@riverty/web-components 6.3.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/focusable-Oll_rmtP.js +28 -0
- package/dist/cjs/formData-B2DZyLxP.js +44 -0
- package/dist/cjs/index-BnETQtSf.js +1834 -0
- package/dist/cjs/index.cjs.js +37 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/r-accordion-panel.cjs.entry.js +24 -0
- package/dist/cjs/r-accordion-section.cjs.entry.js +125 -0
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +93 -0
- package/dist/cjs/r-accordion.cjs.entry.js +20 -0
- package/dist/cjs/r-alert.cjs.entry.js +146 -0
- package/dist/cjs/r-badge.cjs.entry.js +41 -0
- package/dist/cjs/r-button.cjs.entry.js +149 -0
- package/dist/cjs/r-checkbox-group.cjs.entry.js +237 -0
- package/dist/cjs/r-checkbox.cjs.entry.js +274 -0
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +31 -0
- package/dist/cjs/r-dialog.cjs.entry.js +107 -0
- package/dist/cjs/r-hint_2.cjs.entry.js +50 -0
- package/dist/cjs/r-icon-button_2.cjs.entry.js +492 -0
- package/dist/cjs/r-icon.cjs.entry.js +284 -0
- package/dist/cjs/r-illustration.cjs.entry.js +396 -0
- package/dist/cjs/r-input-code.cjs.entry.js +437 -0
- package/dist/cjs/r-input-date.cjs.entry.js +524 -0
- package/dist/cjs/r-input-password.cjs.entry.js +270 -0
- package/dist/cjs/r-input-phone-number.cjs.entry.js +2525 -0
- package/dist/cjs/r-input.cjs.entry.js +618 -0
- package/dist/cjs/r-list-item.cjs.entry.js +109 -0
- package/dist/cjs/r-pagination.cjs.entry.js +320 -0
- package/dist/cjs/r-panel.cjs.entry.js +184 -0
- package/dist/cjs/r-popover-action.cjs.entry.js +80 -0
- package/dist/cjs/r-popover-content.cjs.entry.js +62 -0
- package/dist/cjs/r-popover-headline.cjs.entry.js +28 -0
- package/dist/cjs/r-popover-trigger.cjs.entry.js +70 -0
- package/dist/cjs/r-popover.cjs.entry.js +347 -0
- package/dist/cjs/r-progress-bar.cjs.entry.js +25 -0
- package/dist/cjs/r-radio-button-description.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-title.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button.cjs.entry.js +139 -0
- package/dist/cjs/r-radio-group.cjs.entry.js +428 -0
- package/dist/cjs/r-select-option.cjs.entry.js +130 -0
- package/dist/cjs/r-select.cjs.entry.js +1107 -0
- package/dist/cjs/r-skip-link.cjs.entry.js +19 -0
- package/dist/cjs/r-stepper-item.cjs.entry.js +42 -0
- package/dist/cjs/r-stepper.cjs.entry.js +99 -0
- package/dist/cjs/r-tab-panel.cjs.entry.js +26 -0
- package/dist/cjs/r-tab.cjs.entry.js +62 -0
- package/dist/cjs/r-tabs-list.cjs.entry.js +175 -0
- package/dist/cjs/r-tabs.cjs.entry.js +277 -0
- package/dist/cjs/r-textarea.cjs.entry.js +270 -0
- package/dist/cjs/r-toast-group.cjs.entry.js +46 -0
- package/dist/cjs/r-toast.cjs.entry.js +314 -0
- package/dist/cjs/style-observer-D9zSP9wP.js +1118 -0
- package/dist/cjs/theming-NqxjhVJS.js +109 -0
- package/dist/cjs/web-components.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +60 -0
- package/dist/collection/components/accordion/accordion.css +24 -0
- package/dist/collection/components/accordion/accordion.js +90 -0
- package/dist/collection/components/accordion/exports.js +1 -0
- package/dist/collection/components/accordion-panel/accordion-panel.css +50 -0
- package/dist/collection/components/accordion-panel/accordion-panel.js +86 -0
- package/dist/collection/components/accordion-section/accordion-section.css +27 -0
- package/dist/collection/components/accordion-section/accordion-section.js +235 -0
- package/dist/collection/components/accordion-trigger/accordion-trigger.css +93 -0
- package/dist/collection/components/accordion-trigger/accordion-trigger.js +220 -0
- package/dist/collection/components/alert/alert.css +120 -0
- package/dist/collection/components/alert/alert.js +526 -0
- package/dist/collection/components/alert/exports.js +2 -0
- package/dist/collection/components/badge/badge.css +62 -0
- package/dist/collection/components/badge/badge.js +124 -0
- package/dist/collection/components/badge/exports.js +1 -0
- package/dist/collection/components/button/button.css +180 -0
- package/dist/collection/components/button/button.js +510 -0
- package/dist/collection/components/button/exports.js +5 -0
- package/dist/collection/components/checkbox/checkbox.css +116 -0
- package/dist/collection/components/checkbox/checkbox.js +803 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +48 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +744 -0
- package/dist/collection/components/design-system-devtools/design-system-devtools.js +59 -0
- package/dist/collection/components/dialog/dialog.css +125 -0
- package/dist/collection/components/dialog/dialog.js +345 -0
- package/dist/collection/components/dialog/exports.js +9 -0
- package/dist/collection/components/hint/exports.js +1 -0
- package/dist/collection/components/hint/hint.css +63 -0
- package/dist/collection/components/hint/hint.js +114 -0
- package/dist/collection/components/icon/all-kit.js +2 -0
- package/dist/collection/components/icon/data.js +90 -0
- package/dist/collection/components/icon/exports.js +7 -0
- package/dist/collection/components/icon/icon.css +105 -0
- package/dist/collection/components/icon/icon.js +379 -0
- package/dist/collection/components/icon/riverty-kit.js +2 -0
- package/dist/collection/components/icon-button/icon-button.css +105 -0
- package/dist/collection/components/icon-button/icon-button.js +343 -0
- package/dist/collection/components/illustration/data.js +112 -0
- package/dist/collection/components/illustration/exports.js +3 -0
- package/dist/collection/components/illustration/illustration.css +52 -0
- package/dist/collection/components/illustration/illustration.js +540 -0
- package/dist/collection/components/illustration/illustrations-ui-kit.js +2 -0
- package/dist/collection/components/input/exports.js +62 -0
- package/dist/collection/components/input/input.css +186 -0
- package/dist/collection/components/input/input.js +1861 -0
- package/dist/collection/components/input-code/exports.js +2 -0
- package/dist/collection/components/input-code/input-code.css +127 -0
- package/dist/collection/components/input-code/input-code.js +1165 -0
- package/dist/collection/components/input-date/exports.js +1 -0
- package/dist/collection/components/input-date/input-date.css +148 -0
- package/dist/collection/components/input-date/input-date.js +1254 -0
- package/dist/collection/components/input-password/exports.js +1 -0
- package/dist/collection/components/input-password/input-password.css +25 -0
- package/dist/collection/components/input-password/input-password.js +1077 -0
- package/dist/collection/components/input-phone-number/input-phone-number.css +61 -0
- package/dist/collection/components/input-phone-number/input-phone-number.js +893 -0
- package/dist/collection/components/label/label.css +38 -0
- package/dist/collection/components/label/label.js +47 -0
- package/dist/collection/components/list-item/list-item/exports.js +2 -0
- package/dist/collection/components/list-item/list-item/list-item.css +199 -0
- package/dist/collection/components/list-item/list-item/list-item.js +467 -0
- package/dist/collection/components/pagination/exports.js +3 -0
- package/dist/collection/components/pagination/pagination.css +118 -0
- package/dist/collection/components/pagination/pagination.js +814 -0
- package/dist/collection/components/panel/exports.js +1 -0
- package/dist/collection/components/panel/panel.css +192 -0
- package/dist/collection/components/panel/panel.js +473 -0
- package/dist/collection/components/popover/exports.js +3 -0
- package/dist/collection/components/popover/popover.css +251 -0
- package/dist/collection/components/popover/popover.js +741 -0
- package/dist/collection/components/popover-action/popover-action.css +21 -0
- package/dist/collection/components/popover-action/popover-action.js +150 -0
- package/dist/collection/components/popover-content/popover-content.css +9 -0
- package/dist/collection/components/popover-content/popover-content.js +130 -0
- package/dist/collection/components/popover-headline/popover-headline.css +7 -0
- package/dist/collection/components/popover-headline/popover-headline.js +28 -0
- package/dist/collection/components/popover-trigger/exports.js +1 -0
- package/dist/collection/components/popover-trigger/popover-trigger.css +4 -0
- package/dist/collection/components/popover-trigger/popover-trigger.js +163 -0
- package/dist/collection/components/progress-bar/progress-bar.css +41 -0
- package/dist/collection/components/progress-bar/progress-bar.js +71 -0
- package/dist/collection/components/radio-button/radio-button.css +126 -0
- package/dist/collection/components/radio-button/radio-button.js +559 -0
- package/dist/collection/components/radio-button-description/radio-button-description.css +5 -0
- package/dist/collection/components/radio-button-description/radio-button-description.js +22 -0
- package/dist/collection/components/radio-button-leading/radio-button-leading.css +3 -0
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +22 -0
- package/dist/collection/components/radio-button-title/radio-button-title.css +8 -0
- package/dist/collection/components/radio-button-title/radio-button-title.js +22 -0
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +6 -0
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +22 -0
- package/dist/collection/components/radio-group/exports.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +65 -0
- package/dist/collection/components/radio-group/radio-group.js +1023 -0
- package/dist/collection/components/select/exports.js +1 -0
- package/dist/collection/components/select/select.css +247 -0
- package/dist/collection/components/select/select.js +2038 -0
- package/dist/collection/components/select-option/select-option.css +93 -0
- package/dist/collection/components/select-option/select-option.js +459 -0
- package/dist/collection/components/skip-link/exports.js +1 -0
- package/dist/collection/components/skip-link/skip-link.css +37 -0
- package/dist/collection/components/skip-link/skip-link.js +52 -0
- package/dist/collection/components/stepper/stepper.css +25 -0
- package/dist/collection/components/stepper/stepper.js +216 -0
- package/dist/collection/components/stepper-item/stepper-item.css +62 -0
- package/dist/collection/components/stepper-item/stepper-item.js +171 -0
- package/dist/collection/components/tab/tab.css +81 -0
- package/dist/collection/components/tab/tab.js +169 -0
- package/dist/collection/components/tab-panel/tab-panel.css +19 -0
- package/dist/collection/components/tab-panel/tab-panel.js +72 -0
- package/dist/collection/components/tabs/tabs.css +4 -0
- package/dist/collection/components/tabs/tabs.js +345 -0
- package/dist/collection/components/tabs-list/exports.js +2 -0
- package/dist/collection/components/tabs-list/tabs-list.css +58 -0
- package/dist/collection/components/tabs-list/tabs-list.js +294 -0
- package/dist/collection/components/textarea/exports.js +8 -0
- package/dist/collection/components/textarea/textarea.css +148 -0
- package/dist/collection/components/textarea/textarea.js +1055 -0
- package/dist/collection/components/toast/exports.js +3 -0
- package/dist/collection/components/toast/toast.css +179 -0
- package/dist/collection/components/toast/toast.js +820 -0
- package/dist/collection/components/toast-group/exports.js +1 -0
- package/dist/collection/components/toast-group/toast-group.css +37 -0
- package/dist/collection/components/toast-group/toast-group.js +49 -0
- package/dist/collection/components/tooltip/exports.js +3 -0
- package/dist/collection/components/tooltip/tooltip.css +77 -0
- package/dist/collection/components/tooltip/tooltip.js +525 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/focusable.js +24 -0
- package/dist/collection/utils/formData.js +40 -0
- package/dist/collection/utils/theming.js +103 -0
- package/dist/collection/utils/version-checker.js +33 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/focusable-ky1yonnS.js +26 -0
- package/dist/esm/formData-DvLT8-y3.js +42 -0
- package/dist/esm/index-CTxpqopm.js +1806 -0
- package/dist/esm/index.js +35 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/r-accordion-panel.entry.js +22 -0
- package/dist/esm/r-accordion-section.entry.js +123 -0
- package/dist/esm/r-accordion-trigger.entry.js +91 -0
- package/dist/esm/r-accordion.entry.js +18 -0
- package/dist/esm/r-alert.entry.js +144 -0
- package/dist/esm/r-badge.entry.js +39 -0
- package/dist/esm/r-button.entry.js +147 -0
- package/dist/esm/r-checkbox-group.entry.js +235 -0
- package/dist/esm/r-checkbox.entry.js +272 -0
- package/dist/esm/r-design-system-devtools.entry.js +29 -0
- package/dist/esm/r-dialog.entry.js +105 -0
- package/dist/esm/r-hint_2.entry.js +47 -0
- package/dist/esm/r-icon-button_2.entry.js +489 -0
- package/dist/esm/r-icon.entry.js +282 -0
- package/dist/esm/r-illustration.entry.js +394 -0
- package/dist/esm/r-input-code.entry.js +435 -0
- package/dist/esm/r-input-date.entry.js +522 -0
- package/dist/esm/r-input-password.entry.js +268 -0
- package/dist/esm/r-input-phone-number.entry.js +2523 -0
- package/dist/esm/r-input.entry.js +616 -0
- package/dist/esm/r-list-item.entry.js +107 -0
- package/dist/esm/r-pagination.entry.js +318 -0
- package/dist/esm/r-panel.entry.js +182 -0
- package/dist/esm/r-popover-action.entry.js +78 -0
- package/dist/esm/r-popover-content.entry.js +60 -0
- package/dist/esm/r-popover-headline.entry.js +26 -0
- package/dist/esm/r-popover-trigger.entry.js +68 -0
- package/dist/esm/r-popover.entry.js +345 -0
- package/dist/esm/r-progress-bar.entry.js +23 -0
- package/dist/esm/r-radio-button-description.entry.js +16 -0
- package/dist/esm/r-radio-button-leading.entry.js +16 -0
- package/dist/esm/r-radio-button-title.entry.js +16 -0
- package/dist/esm/r-radio-button-trailing.entry.js +16 -0
- package/dist/esm/r-radio-button.entry.js +137 -0
- package/dist/esm/r-radio-group.entry.js +426 -0
- package/dist/esm/r-select-option.entry.js +128 -0
- package/dist/esm/r-select.entry.js +1105 -0
- package/dist/esm/r-skip-link.entry.js +17 -0
- package/dist/esm/r-stepper-item.entry.js +40 -0
- package/dist/esm/r-stepper.entry.js +97 -0
- package/dist/esm/r-tab-panel.entry.js +24 -0
- package/dist/esm/r-tab.entry.js +60 -0
- package/dist/esm/r-tabs-list.entry.js +173 -0
- package/dist/esm/r-tabs.entry.js +275 -0
- package/dist/esm/r-textarea.entry.js +268 -0
- package/dist/esm/r-toast-group.entry.js +44 -0
- package/dist/esm/r-toast.entry.js +312 -0
- package/dist/esm/style-observer-4Uv3PpKT.js +1116 -0
- package/dist/esm/theming-DD2IrjpG.js +106 -0
- package/dist/esm/web-components.js +21 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/accordion/accordion.d.ts +27 -0
- package/dist/types/components/accordion/exports.d.ts +2 -0
- package/dist/types/components/accordion-panel/accordion-panel.d.ts +10 -0
- package/dist/types/components/accordion-section/accordion-section.d.ts +36 -0
- package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +33 -0
- package/dist/types/components/alert/alert.d.ts +67 -0
- package/dist/types/components/alert/exports.d.ts +4 -0
- package/dist/types/components/badge/badge.d.ts +26 -0
- package/dist/types/components/badge/exports.d.ts +2 -0
- package/dist/types/components/button/button.d.ts +89 -0
- package/dist/types/components/button/exports.d.ts +10 -0
- package/dist/types/components/checkbox/checkbox.d.ts +138 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +124 -0
- package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +15 -0
- package/dist/types/components/dialog/dialog.d.ts +69 -0
- package/dist/types/components/dialog/exports.d.ts +10 -0
- package/dist/types/components/hint/exports.d.ts +2 -0
- package/dist/types/components/hint/hint.d.ts +20 -0
- package/dist/types/components/icon/all-kit.d.ts +2890 -0
- package/dist/types/components/icon/data.d.ts +145 -0
- package/dist/types/components/icon/exports.d.ts +152 -0
- package/dist/types/components/icon/icon.d.ts +37 -0
- package/dist/types/components/icon/riverty-kit.d.ts +139 -0
- package/dist/types/components/icon-button/icon-button.d.ts +69 -0
- package/dist/types/components/illustration/data.d.ts +52 -0
- package/dist/types/components/illustration/exports.d.ts +23 -0
- package/dist/types/components/illustration/illustration.d.ts +51 -0
- package/dist/types/components/illustration/illustrations-ui-kit.d.ts +21 -0
- package/dist/types/components/input/exports.d.ts +55 -0
- package/dist/types/components/input/input.d.ts +365 -0
- package/dist/types/components/input-code/exports.d.ts +4 -0
- package/dist/types/components/input-code/input-code.d.ts +177 -0
- package/dist/types/components/input-date/exports.d.ts +5 -0
- package/dist/types/components/input-date/input-date.d.ts +174 -0
- package/dist/types/components/input-password/exports.d.ts +1 -0
- package/dist/types/components/input-password/input-password.d.ts +186 -0
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +130 -0
- package/dist/types/components/label/label.d.ts +9 -0
- package/dist/types/components/list-item/list-item/exports.d.ts +4 -0
- package/dist/types/components/list-item/list-item/list-item.d.ts +61 -0
- package/dist/types/components/pagination/exports.d.ts +6 -0
- package/dist/types/components/pagination/pagination.d.ts +140 -0
- package/dist/types/components/panel/exports.d.ts +2 -0
- package/dist/types/components/panel/panel.d.ts +56 -0
- package/dist/types/components/popover/exports.d.ts +6 -0
- package/dist/types/components/popover/popover.d.ts +131 -0
- package/dist/types/components/popover-action/popover-action.d.ts +24 -0
- package/dist/types/components/popover-content/popover-content.d.ts +22 -0
- package/dist/types/components/popover-headline/popover-headline.d.ts +6 -0
- package/dist/types/components/popover-trigger/exports.d.ts +2 -0
- package/dist/types/components/popover-trigger/popover-trigger.d.ts +31 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +10 -0
- package/dist/types/components/radio-button/radio-button.d.ts +92 -0
- package/dist/types/components/radio-button-description/radio-button-description.d.ts +8 -0
- package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +8 -0
- package/dist/types/components/radio-button-title/radio-button-title.d.ts +8 -0
- package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +8 -0
- package/dist/types/components/radio-group/exports.d.ts +2 -0
- package/dist/types/components/radio-group/radio-group.d.ts +179 -0
- package/dist/types/components/select/exports.d.ts +2 -0
- package/dist/types/components/select/select.d.ts +319 -0
- package/dist/types/components/select-option/select-option.d.ts +113 -0
- package/dist/types/components/skip-link/exports.d.ts +2 -0
- package/dist/types/components/skip-link/skip-link.d.ts +6 -0
- package/dist/types/components/stepper/stepper.d.ts +22 -0
- package/dist/types/components/stepper-item/stepper-item.d.ts +23 -0
- package/dist/types/components/tab/tab.d.ts +23 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +7 -0
- package/dist/types/components/tabs/tabs.d.ts +49 -0
- package/dist/types/components/tabs-list/exports.d.ts +4 -0
- package/dist/types/components/tabs-list/tabs-list.d.ts +41 -0
- package/dist/types/components/textarea/exports.d.ts +2 -0
- package/dist/types/components/textarea/textarea.d.ts +158 -0
- package/dist/types/components/toast/exports.d.ts +6 -0
- package/dist/types/components/toast/toast.d.ts +146 -0
- package/dist/types/components/toast-group/exports.d.ts +2 -0
- package/dist/types/components/toast-group/toast-group.d.ts +9 -0
- package/dist/types/components/tooltip/exports.d.ts +6 -0
- package/dist/types/components/tooltip/tooltip.d.ts +132 -0
- package/dist/types/components.d.ts +6347 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1732 -0
- package/dist/types/types/jsx-shim.d.ts +13 -0
- package/dist/types/types/style-observer.d.ts +20 -0
- package/dist/types/utils/focusable.d.ts +1 -0
- package/dist/types/utils/formData.d.ts +1 -0
- package/dist/types/utils/theming.d.ts +15 -0
- package/dist/types/utils/version-checker.d.ts +1 -0
- package/dist/web-components/index.esm.js +1 -0
- package/dist/web-components/p-01aefcf0.entry.js +1 -0
- package/dist/web-components/p-05cb55db.entry.js +1 -0
- package/dist/web-components/p-0a34d33b.entry.js +1 -0
- package/dist/web-components/p-11b22309.entry.js +1 -0
- package/dist/web-components/p-2d878934.entry.js +1 -0
- package/dist/web-components/p-325dbedf.entry.js +1 -0
- package/dist/web-components/p-34b9457b.entry.js +1 -0
- package/dist/web-components/p-36abd05a.entry.js +1 -0
- package/dist/web-components/p-386d1ef9.entry.js +1 -0
- package/dist/web-components/p-3d67b77b.entry.js +1 -0
- package/dist/web-components/p-4Uv3PpKT.js +1 -0
- package/dist/web-components/p-4b12fbc0.entry.js +1 -0
- package/dist/web-components/p-52f7b505.entry.js +1 -0
- package/dist/web-components/p-55600d47.entry.js +1 -0
- package/dist/web-components/p-57ebc474.entry.js +1 -0
- package/dist/web-components/p-57edf7f4.entry.js +1 -0
- package/dist/web-components/p-69a24fe2.entry.js +1 -0
- package/dist/web-components/p-6d92648c.entry.js +1 -0
- package/dist/web-components/p-75052597.entry.js +1 -0
- package/dist/web-components/p-7b2c5b63.entry.js +1 -0
- package/dist/web-components/p-7bf463ff.entry.js +1 -0
- package/dist/web-components/p-838e43d4.entry.js +1 -0
- package/dist/web-components/p-8c16d038.entry.js +1 -0
- package/dist/web-components/p-8f8313de.entry.js +1 -0
- package/dist/web-components/p-9026d5a2.entry.js +1 -0
- package/dist/web-components/p-95396b5c.entry.js +1 -0
- package/dist/web-components/p-9c31c7c4.entry.js +1 -0
- package/dist/web-components/p-9c415b9c.entry.js +1 -0
- package/dist/web-components/p-9f583ed1.entry.js +1 -0
- package/dist/web-components/p-B9rsR6cQ.js +1 -0
- package/dist/web-components/p-CTxpqopm.js +2 -0
- package/dist/web-components/p-DQuL1Twl.js +1 -0
- package/dist/web-components/p-DvLT8-y3.js +1 -0
- package/dist/web-components/p-b303b2cc.entry.js +1 -0
- package/dist/web-components/p-b8df041d.entry.js +1 -0
- package/dist/web-components/p-bc30844f.entry.js +1 -0
- package/dist/web-components/p-c4a77a65.entry.js +1 -0
- package/dist/web-components/p-c549addf.entry.js +1 -0
- package/dist/web-components/p-c65df19f.entry.js +1 -0
- package/dist/web-components/p-c80a5541.entry.js +1 -0
- package/dist/web-components/p-c96ee61a.entry.js +1 -0
- package/dist/web-components/p-cf3f044d.entry.js +1 -0
- package/dist/web-components/p-d1412932.entry.js +1 -0
- package/dist/web-components/p-d9778cfa.entry.js +1 -0
- package/dist/web-components/p-dbe4ccb8.entry.js +1 -0
- package/dist/web-components/p-ded50850.entry.js +1 -0
- package/dist/web-components/p-e5be895b.entry.js +1 -0
- package/dist/web-components/p-e6b34c1e.entry.js +1 -0
- package/dist/web-components/p-ec3c4800.entry.js +1 -0
- package/dist/web-components/p-f670fd87.entry.js +1 -0
- package/dist/web-components/p-f867e4c3.entry.js +1 -0
- package/dist/web-components/p-ff6b1b8f.entry.js +1 -0
- package/dist/web-components/p-ky1yonnS.js +1 -0
- package/dist/web-components/web-components.esm.js +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getSvgElementByNameFromCdn, getSvgElementByName, addToIllustrationsData } from "./data";
|
|
3
|
+
export class RIllustration {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** Defines initial width of an illustration. */
|
|
6
|
+
this.width = '342px';
|
|
7
|
+
/** Theme mode for illustration rendering */
|
|
8
|
+
this.theme = 'auto';
|
|
9
|
+
/** Error message text to display when illustration fails to load */
|
|
10
|
+
this.errorMessage = 'Failed to load illustration';
|
|
11
|
+
/** Accessibility: title for the image representing "failed-to-load" state */
|
|
12
|
+
this.emptyImageTitle = 'Failed to load illustration';
|
|
13
|
+
/** Accessibility: title for the marker representing "failed-to-load" state */
|
|
14
|
+
this.emptyMarkerTitle = 'Failed to load illustration marker';
|
|
15
|
+
this.detectedTheme = null;
|
|
16
|
+
this.error = false;
|
|
17
|
+
// SVG attributes extracted from the element
|
|
18
|
+
this.svgAttributes = {};
|
|
19
|
+
// SVG inner content (without the <svg> wrapper)
|
|
20
|
+
this.svgInnerHTML = '';
|
|
21
|
+
// Unique ID for aria references
|
|
22
|
+
this.uniqueId = `r-illustration-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
23
|
+
this._setElementAttrs = (el, attrs = {}) => {
|
|
24
|
+
if (!el)
|
|
25
|
+
return;
|
|
26
|
+
const keys = Object.keys(attrs);
|
|
27
|
+
keys.forEach(key => {
|
|
28
|
+
const elHasNoAttr = el.getAttribute(key) === null;
|
|
29
|
+
const attrHasValue = attrs[key] !== undefined;
|
|
30
|
+
if (elHasNoAttr && attrHasValue) {
|
|
31
|
+
el.setAttribute(key, attrs[key]);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
// Combine attributes for <SVG>
|
|
36
|
+
this._defineSvgAttrs = () => {
|
|
37
|
+
const attrs = {
|
|
38
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
39
|
+
role: this.ariaRole,
|
|
40
|
+
'aria-labelledby': this.ariaLabelledBy,
|
|
41
|
+
'aria-hidden': this.ariaRole === 'presentation'
|
|
42
|
+
};
|
|
43
|
+
return attrs;
|
|
44
|
+
};
|
|
45
|
+
// Pass attributes from <r-illustration> to <SVG>
|
|
46
|
+
this._passAttributesToSvg = () => {
|
|
47
|
+
// Search for an <svg> within <r-illustration> component
|
|
48
|
+
const svgElement = this.host.querySelector('svg');
|
|
49
|
+
// If an SVG was not found inside <r-illustration>
|
|
50
|
+
// Exit function
|
|
51
|
+
if (svgElement === null)
|
|
52
|
+
return;
|
|
53
|
+
// Set values of attributes of an <SVG>
|
|
54
|
+
this._setElementAttrs(svgElement, {
|
|
55
|
+
role: this.ariaRole,
|
|
56
|
+
'aria-labelledby': this.ariaLabelledBy,
|
|
57
|
+
'aria-hidden': this.ariaRole === 'presentation'
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
this._defineIllustrationElement = async () => {
|
|
61
|
+
let svgElement = null;
|
|
62
|
+
// Check name attribute
|
|
63
|
+
if (!this.name) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
this.error = false;
|
|
67
|
+
if (this.name) {
|
|
68
|
+
// Getting an <SVG> element by name
|
|
69
|
+
svgElement = getSvgElementByName(this.name);
|
|
70
|
+
if (svgElement !== null) {
|
|
71
|
+
this._setElementAttrs(svgElement, this._defineSvgAttrs());
|
|
72
|
+
return svgElement;
|
|
73
|
+
}
|
|
74
|
+
// If element was NOT found by name, fetch from CDN
|
|
75
|
+
try {
|
|
76
|
+
svgElement = await getSvgElementByNameFromCdn(this.name);
|
|
77
|
+
}
|
|
78
|
+
catch (error) {
|
|
79
|
+
console.info(`Error while fetching illustration "${this.name}":`, error);
|
|
80
|
+
this.error = true;
|
|
81
|
+
this.rFailed.emit();
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
if (!svgElement) {
|
|
85
|
+
console.info(`
|
|
86
|
+
No SVG Element received after fetching "${this.name}".
|
|
87
|
+
`);
|
|
88
|
+
this.error = true;
|
|
89
|
+
this.rFailed.emit();
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
// Add set of attributes to SVG
|
|
93
|
+
this._setElementAttrs(svgElement, this._defineSvgAttrs());
|
|
94
|
+
// Save illustration content to data object
|
|
95
|
+
addToIllustrationsData(this.name, `${svgElement.outerHTML}`);
|
|
96
|
+
return svgElement;
|
|
97
|
+
}
|
|
98
|
+
return null;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
get cssVars() {
|
|
102
|
+
const styles = {};
|
|
103
|
+
if (this.minWidth) {
|
|
104
|
+
styles['--r-illustration--min-width'] = this.minWidth;
|
|
105
|
+
}
|
|
106
|
+
if (this.maxWidth) {
|
|
107
|
+
styles['--r-illustration--max-width'] = this.maxWidth;
|
|
108
|
+
}
|
|
109
|
+
if (this.width) {
|
|
110
|
+
styles['--r-illustration--width'] = this.width;
|
|
111
|
+
}
|
|
112
|
+
return Object.keys(styles).length > 0 ? styles : undefined;
|
|
113
|
+
}
|
|
114
|
+
get ariaRole() {
|
|
115
|
+
// Use 'img' role when text is provided
|
|
116
|
+
// Use 'presentation' for decorative illustrations
|
|
117
|
+
return (this.svgTitle || this.svgDescription) ? 'img' : 'presentation';
|
|
118
|
+
}
|
|
119
|
+
get ariaLabelledBy() {
|
|
120
|
+
return [
|
|
121
|
+
this.svgTitle ? `${this.uniqueId}-title` : '',
|
|
122
|
+
this.svgDescription ? `${this.uniqueId}-desc` : ''
|
|
123
|
+
].filter(Boolean).join(' ') || undefined;
|
|
124
|
+
}
|
|
125
|
+
componentWillLoad() {
|
|
126
|
+
// If an <SVG> within <r-illustration> slot exists
|
|
127
|
+
// Collect attributes and pass them to an <SVG>
|
|
128
|
+
// According to defined priority (host -> svg -> default)
|
|
129
|
+
this._passAttributesToSvg();
|
|
130
|
+
// Set up theme detection for auto mode
|
|
131
|
+
this._setupAutoThemeDetection();
|
|
132
|
+
}
|
|
133
|
+
async componentWillRender() {
|
|
134
|
+
// Define the <SVG> element from name
|
|
135
|
+
this.svgElement = await this._defineIllustrationElement();
|
|
136
|
+
// Extract SVG attributes and inner content
|
|
137
|
+
if (this.svgElement) {
|
|
138
|
+
this._extractSvgData();
|
|
139
|
+
// Emit rComplete event after successful load
|
|
140
|
+
this.rComplete.emit();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
_extractSvgData() {
|
|
144
|
+
if (!this.svgElement)
|
|
145
|
+
return;
|
|
146
|
+
// Extract attributes from SVG element
|
|
147
|
+
const attrs = this.svgElement.attributes;
|
|
148
|
+
this.svgAttributes = {};
|
|
149
|
+
let width = null;
|
|
150
|
+
let height = null;
|
|
151
|
+
for (let i = 0; i < attrs.length; i++) {
|
|
152
|
+
const attr = attrs[i];
|
|
153
|
+
// Capture width and height for viewBox conversion
|
|
154
|
+
if (attr.name === 'width') {
|
|
155
|
+
width = attr.value;
|
|
156
|
+
}
|
|
157
|
+
else if (attr.name === 'height') {
|
|
158
|
+
height = attr.value;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
// Copy all other attributes
|
|
162
|
+
this.svgAttributes[attr.name] = attr.value;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
// Convert width/height to viewBox if not already present
|
|
166
|
+
if (width && height && !this.svgAttributes['viewBox']) {
|
|
167
|
+
// Remove 'px' or other units and get numeric values
|
|
168
|
+
const numericWidth = parseFloat(width);
|
|
169
|
+
const numericHeight = parseFloat(height);
|
|
170
|
+
if (!isNaN(numericWidth) && !isNaN(numericHeight)) {
|
|
171
|
+
this.svgAttributes['viewBox'] = `0 0 ${numericWidth} ${numericHeight}`;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
// Extract inner HTML (everything inside <svg>...</svg>)
|
|
175
|
+
this.svgInnerHTML = this.svgElement.innerHTML;
|
|
176
|
+
}
|
|
177
|
+
_buildSvgContent() {
|
|
178
|
+
let content = '';
|
|
179
|
+
// Start with the original SVG inner content
|
|
180
|
+
let svgContent = this.svgInnerHTML;
|
|
181
|
+
// Add title element if provided
|
|
182
|
+
if (this.svgTitle) {
|
|
183
|
+
// Remove existing <title> elements
|
|
184
|
+
svgContent = svgContent.replace(/<title[^>]*>[\s\S]*?<\/title>/gi, '');
|
|
185
|
+
content += `<title id="${this.uniqueId}-title">${this.svgTitle}</title>`;
|
|
186
|
+
}
|
|
187
|
+
// Add description element if provided
|
|
188
|
+
if (this.svgDescription) {
|
|
189
|
+
// Remove existing <desc> elements
|
|
190
|
+
svgContent = svgContent.replace(/<desc[^>]*>[\s\S]*?<\/desc>/gi, '');
|
|
191
|
+
content += `<desc id="${this.uniqueId}-desc">${this.svgDescription}</desc>`;
|
|
192
|
+
}
|
|
193
|
+
// Add the cleaned SVG content
|
|
194
|
+
content += svgContent;
|
|
195
|
+
return content;
|
|
196
|
+
}
|
|
197
|
+
disconnectedCallback() {
|
|
198
|
+
// Clean up observer when component is removed
|
|
199
|
+
if (this.themeObserver) {
|
|
200
|
+
this.themeObserver.disconnect();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
_setupAutoThemeDetection() {
|
|
204
|
+
if (this.theme !== 'auto')
|
|
205
|
+
return;
|
|
206
|
+
// Detect parent theme changes (e.g., Storybook theme switcher)
|
|
207
|
+
const detectParentTheme = () => {
|
|
208
|
+
// Find closest parent with data-theme attribute
|
|
209
|
+
let element = this.host;
|
|
210
|
+
// Traverse up the DOM tree looking for data-theme
|
|
211
|
+
while (element && element !== document.documentElement) {
|
|
212
|
+
element = element.parentElement;
|
|
213
|
+
if (element && element.hasAttribute('data-theme')) {
|
|
214
|
+
this.detectedTheme = element.getAttribute('data-theme');
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
// If no parent data-theme found, check document root
|
|
219
|
+
if (!this.detectedTheme) {
|
|
220
|
+
const documentTheme = document.documentElement.getAttribute('data-theme');
|
|
221
|
+
const bodyTheme = document.body.getAttribute('data-theme');
|
|
222
|
+
this.detectedTheme = documentTheme || bodyTheme;
|
|
223
|
+
}
|
|
224
|
+
const isDark = this.detectedTheme === 'dark';
|
|
225
|
+
const isLight = this.detectedTheme === 'light';
|
|
226
|
+
// Apply detected theme as data attribute for CSS to use
|
|
227
|
+
// If no explicit theme found, remove attribute to use media query fallback
|
|
228
|
+
if (isDark || isLight) {
|
|
229
|
+
this.host.setAttribute('data-detected-theme', this.detectedTheme);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
this.host.removeAttribute('data-detected-theme');
|
|
233
|
+
};
|
|
234
|
+
// Initial detection
|
|
235
|
+
detectParentTheme();
|
|
236
|
+
// Observe changes to document elements and all parents
|
|
237
|
+
this.themeObserver = new MutationObserver(detectParentTheme);
|
|
238
|
+
// Observe document root
|
|
239
|
+
this.themeObserver.observe(document.documentElement, {
|
|
240
|
+
attributes: true,
|
|
241
|
+
attributeFilter: ['data-theme']
|
|
242
|
+
});
|
|
243
|
+
// Observe body
|
|
244
|
+
this.themeObserver.observe(document.body, {
|
|
245
|
+
attributes: true,
|
|
246
|
+
attributeFilter: ['data-theme']
|
|
247
|
+
});
|
|
248
|
+
// Observe all parent elements up the tree
|
|
249
|
+
let parent = this.host.parentElement;
|
|
250
|
+
while (parent && parent !== document.documentElement) {
|
|
251
|
+
this.themeObserver.observe(parent, {
|
|
252
|
+
attributes: true,
|
|
253
|
+
attributeFilter: ['data-theme']
|
|
254
|
+
});
|
|
255
|
+
parent = parent.parentElement;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
render() {
|
|
259
|
+
const styleAttrs = this.cssVars ? { style: this.cssVars } : {};
|
|
260
|
+
const errorStateImageTitleId = `${this.uniqueId}-error-state-image-title`;
|
|
261
|
+
const errorStateMarkerTitleId = `${this.uniqueId}--error-state-marker-title`;
|
|
262
|
+
// If error state, render fallback content
|
|
263
|
+
if (this.error) {
|
|
264
|
+
return (h(Host, { "data-error": "true" }, h("div", Object.assign({ class: "r-illustration" }, styleAttrs), h("slot", { name: "error" }, h("div", { class: "status" }, h("div", { class: "status-icon" }, h("svg", { role: "img", "aria-labelledby": errorStateImageTitleId, viewBox: "0 0 49 35", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", { id: errorStateImageTitleId }, this.emptyImageTitle), h("rect", { x: "3.88477", y: "3.88477", width: "40.8361", height: "26.9672", stroke: "#686868", "stroke-width": "1.60519" }), h("rect", { x: "0.802734", y: "0.802734", width: "47", height: "33.1311", stroke: "#686868", "stroke-width": "1.60519" }), h("path", { d: "M3.88477 29.3104L17.887 20.835L26.9995 25.6117", stroke: "#686868", "stroke-width": "1.60519", "stroke-linecap": "round" }), h("path", { d: "M22.377 23.1472L40.5297 10.0488L44.7212 12.7455", stroke: "#686868", "stroke-width": "1.60519", "stroke-linecap": "round" }), h("circle", { cx: "10.434", cy: "10.434", r: "2.69672", stroke: "#686868", "stroke-width": "1.60519" })), h("div", { class: "status-marker" }, h("svg", { role: "img", "aria-labelledby": errorStateMarkerTitleId, viewBox: "0 0 21 21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", { id: errorStateMarkerTitleId }, this.emptyMarkerTitle), h("circle", { cx: "10.4776", cy: "10.4776", r: "7.37313", fill: "#E4E2E0", stroke: "#B00C15", "stroke-width": "1.61692" }), h("circle", { cx: "10.4774", cy: "10.4774", r: "9.31343", stroke: "#E4E2E0", "stroke-width": "2.32836" }), h("path", { d: "M7.81841 13.2929L13.3154 7.7959", stroke: "#B00C15", "stroke-width": "1.61692", "stroke-linecap": "round" }), h("path", { d: "M13.4062 13.2929L7.90918 7.7959", stroke: "#B00C15", "stroke-width": "1.61692", "stroke-linecap": "round" })))))))));
|
|
265
|
+
}
|
|
266
|
+
// If no <SVG> Element defined at this point
|
|
267
|
+
if (!this.svgElement) {
|
|
268
|
+
// Render slot content
|
|
269
|
+
return (h(Host, null, h("div", Object.assign({ class: "r-illustration" }, styleAttrs), h("slot", null))));
|
|
270
|
+
}
|
|
271
|
+
// Determine the current effective theme
|
|
272
|
+
const effectiveTheme = this.theme === 'auto'
|
|
273
|
+
? this.detectedTheme : this.theme;
|
|
274
|
+
// Render SVG with wrapper element to ensure CSS variables cascade
|
|
275
|
+
return (h(Host, null, h("div", Object.assign({ class: "r-illustration" }, styleAttrs), h("svg", Object.assign({}, this.svgAttributes, { "data-theme": effectiveTheme, ref: (el) => el && (el.innerHTML = this._buildSvgContent()) })))));
|
|
276
|
+
}
|
|
277
|
+
static get is() { return "r-illustration"; }
|
|
278
|
+
static get encapsulation() { return "shadow"; }
|
|
279
|
+
static get originalStyleUrls() {
|
|
280
|
+
return {
|
|
281
|
+
"$": ["illustration.css"]
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
static get styleUrls() {
|
|
285
|
+
return {
|
|
286
|
+
"$": ["illustration.css"]
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
static get properties() {
|
|
290
|
+
return {
|
|
291
|
+
"name": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"attribute": "name",
|
|
294
|
+
"mutable": false,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "IllustrationName",
|
|
297
|
+
"resolved": "string",
|
|
298
|
+
"references": {
|
|
299
|
+
"IllustrationName": {
|
|
300
|
+
"location": "import",
|
|
301
|
+
"path": "./exports",
|
|
302
|
+
"id": "src/components/illustration/exports.ts::IllustrationName"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"required": false,
|
|
307
|
+
"optional": true,
|
|
308
|
+
"docs": {
|
|
309
|
+
"tags": [],
|
|
310
|
+
"text": "Name of illustration to select from the set"
|
|
311
|
+
},
|
|
312
|
+
"getter": false,
|
|
313
|
+
"setter": false,
|
|
314
|
+
"reflect": true
|
|
315
|
+
},
|
|
316
|
+
"width": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"attribute": "width",
|
|
319
|
+
"mutable": false,
|
|
320
|
+
"complexType": {
|
|
321
|
+
"original": "string",
|
|
322
|
+
"resolved": "string",
|
|
323
|
+
"references": {}
|
|
324
|
+
},
|
|
325
|
+
"required": false,
|
|
326
|
+
"optional": true,
|
|
327
|
+
"docs": {
|
|
328
|
+
"tags": [],
|
|
329
|
+
"text": "Defines initial width of an illustration."
|
|
330
|
+
},
|
|
331
|
+
"getter": false,
|
|
332
|
+
"setter": false,
|
|
333
|
+
"reflect": true,
|
|
334
|
+
"defaultValue": "'342px'"
|
|
335
|
+
},
|
|
336
|
+
"theme": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"attribute": "theme",
|
|
339
|
+
"mutable": false,
|
|
340
|
+
"complexType": {
|
|
341
|
+
"original": "IllustrationTheme",
|
|
342
|
+
"resolved": "\"auto\" | \"dark\" | \"light\"",
|
|
343
|
+
"references": {
|
|
344
|
+
"IllustrationTheme": {
|
|
345
|
+
"location": "import",
|
|
346
|
+
"path": "./exports",
|
|
347
|
+
"id": "src/components/illustration/exports.ts::IllustrationTheme"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Theme mode for illustration rendering"
|
|
356
|
+
},
|
|
357
|
+
"getter": false,
|
|
358
|
+
"setter": false,
|
|
359
|
+
"reflect": true,
|
|
360
|
+
"defaultValue": "'auto'"
|
|
361
|
+
},
|
|
362
|
+
"minWidth": {
|
|
363
|
+
"type": "string",
|
|
364
|
+
"attribute": "min-width",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "string",
|
|
368
|
+
"resolved": "string",
|
|
369
|
+
"references": {}
|
|
370
|
+
},
|
|
371
|
+
"required": false,
|
|
372
|
+
"optional": true,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [],
|
|
375
|
+
"text": "Minimum width constraint for responsive behavior"
|
|
376
|
+
},
|
|
377
|
+
"getter": false,
|
|
378
|
+
"setter": false,
|
|
379
|
+
"reflect": false
|
|
380
|
+
},
|
|
381
|
+
"maxWidth": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"attribute": "max-width",
|
|
384
|
+
"mutable": false,
|
|
385
|
+
"complexType": {
|
|
386
|
+
"original": "string",
|
|
387
|
+
"resolved": "string",
|
|
388
|
+
"references": {}
|
|
389
|
+
},
|
|
390
|
+
"required": false,
|
|
391
|
+
"optional": true,
|
|
392
|
+
"docs": {
|
|
393
|
+
"tags": [],
|
|
394
|
+
"text": "Maximum width constraint for responsive behavior"
|
|
395
|
+
},
|
|
396
|
+
"getter": false,
|
|
397
|
+
"setter": false,
|
|
398
|
+
"reflect": false
|
|
399
|
+
},
|
|
400
|
+
"svgTitle": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"attribute": "svg-title",
|
|
403
|
+
"mutable": false,
|
|
404
|
+
"complexType": {
|
|
405
|
+
"original": "string",
|
|
406
|
+
"resolved": "string",
|
|
407
|
+
"references": {}
|
|
408
|
+
},
|
|
409
|
+
"required": false,
|
|
410
|
+
"optional": true,
|
|
411
|
+
"docs": {
|
|
412
|
+
"tags": [],
|
|
413
|
+
"text": "Optional title element to be added inside the SVG for accessibility"
|
|
414
|
+
},
|
|
415
|
+
"getter": false,
|
|
416
|
+
"setter": false,
|
|
417
|
+
"reflect": false
|
|
418
|
+
},
|
|
419
|
+
"svgDescription": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"attribute": "svg-description",
|
|
422
|
+
"mutable": false,
|
|
423
|
+
"complexType": {
|
|
424
|
+
"original": "string",
|
|
425
|
+
"resolved": "string",
|
|
426
|
+
"references": {}
|
|
427
|
+
},
|
|
428
|
+
"required": false,
|
|
429
|
+
"optional": true,
|
|
430
|
+
"docs": {
|
|
431
|
+
"tags": [],
|
|
432
|
+
"text": "Optional description element to be added inside the SVG for accessibility"
|
|
433
|
+
},
|
|
434
|
+
"getter": false,
|
|
435
|
+
"setter": false,
|
|
436
|
+
"reflect": false
|
|
437
|
+
},
|
|
438
|
+
"errorMessage": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"attribute": "error-message",
|
|
441
|
+
"mutable": false,
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "string",
|
|
444
|
+
"resolved": "string",
|
|
445
|
+
"references": {}
|
|
446
|
+
},
|
|
447
|
+
"required": false,
|
|
448
|
+
"optional": true,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [],
|
|
451
|
+
"text": "Error message text to display when illustration fails to load"
|
|
452
|
+
},
|
|
453
|
+
"getter": false,
|
|
454
|
+
"setter": false,
|
|
455
|
+
"reflect": false,
|
|
456
|
+
"defaultValue": "'Failed to load illustration'"
|
|
457
|
+
},
|
|
458
|
+
"emptyImageTitle": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"attribute": "empty-image-title",
|
|
461
|
+
"mutable": false,
|
|
462
|
+
"complexType": {
|
|
463
|
+
"original": "string",
|
|
464
|
+
"resolved": "string",
|
|
465
|
+
"references": {}
|
|
466
|
+
},
|
|
467
|
+
"required": false,
|
|
468
|
+
"optional": true,
|
|
469
|
+
"docs": {
|
|
470
|
+
"tags": [],
|
|
471
|
+
"text": "Accessibility: title for the image representing \"failed-to-load\" state"
|
|
472
|
+
},
|
|
473
|
+
"getter": false,
|
|
474
|
+
"setter": false,
|
|
475
|
+
"reflect": false,
|
|
476
|
+
"defaultValue": "'Failed to load illustration'"
|
|
477
|
+
},
|
|
478
|
+
"emptyMarkerTitle": {
|
|
479
|
+
"type": "string",
|
|
480
|
+
"attribute": "empty-marker-title",
|
|
481
|
+
"mutable": false,
|
|
482
|
+
"complexType": {
|
|
483
|
+
"original": "string",
|
|
484
|
+
"resolved": "string",
|
|
485
|
+
"references": {}
|
|
486
|
+
},
|
|
487
|
+
"required": false,
|
|
488
|
+
"optional": true,
|
|
489
|
+
"docs": {
|
|
490
|
+
"tags": [],
|
|
491
|
+
"text": "Accessibility: title for the marker representing \"failed-to-load\" state"
|
|
492
|
+
},
|
|
493
|
+
"getter": false,
|
|
494
|
+
"setter": false,
|
|
495
|
+
"reflect": false,
|
|
496
|
+
"defaultValue": "'Failed to load illustration marker'"
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
static get states() {
|
|
501
|
+
return {
|
|
502
|
+
"detectedTheme": {},
|
|
503
|
+
"error": {}
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
static get events() {
|
|
507
|
+
return [{
|
|
508
|
+
"method": "rFailed",
|
|
509
|
+
"name": "rFailed",
|
|
510
|
+
"bubbles": true,
|
|
511
|
+
"cancelable": true,
|
|
512
|
+
"composed": true,
|
|
513
|
+
"docs": {
|
|
514
|
+
"tags": [],
|
|
515
|
+
"text": "Emitted when illustration fails to load"
|
|
516
|
+
},
|
|
517
|
+
"complexType": {
|
|
518
|
+
"original": "void",
|
|
519
|
+
"resolved": "void",
|
|
520
|
+
"references": {}
|
|
521
|
+
}
|
|
522
|
+
}, {
|
|
523
|
+
"method": "rComplete",
|
|
524
|
+
"name": "rComplete",
|
|
525
|
+
"bubbles": true,
|
|
526
|
+
"cancelable": true,
|
|
527
|
+
"composed": true,
|
|
528
|
+
"docs": {
|
|
529
|
+
"tags": [],
|
|
530
|
+
"text": "Emitted when illustration completes loading"
|
|
531
|
+
},
|
|
532
|
+
"complexType": {
|
|
533
|
+
"original": "void",
|
|
534
|
+
"resolved": "void",
|
|
535
|
+
"references": {}
|
|
536
|
+
}
|
|
537
|
+
}];
|
|
538
|
+
}
|
|
539
|
+
static get elementRef() { return "host"; }
|
|
540
|
+
}
|