@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 @@
|
|
|
1
|
+
export const panelVariantArray = ['visible', 'drawer', 'modal'];
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--r-panel--min-width: 18.75rem;
|
|
3
|
+
--r-panel--background-color: var(--r-background-soft, #F3F1F0);
|
|
4
|
+
--r-panel--display: flex;
|
|
5
|
+
--r-panel--flex-direction: column;
|
|
6
|
+
--r-panel--position: fixed;
|
|
7
|
+
--r-panel--align-items: flex-start;
|
|
8
|
+
--r-panel--top: 0;
|
|
9
|
+
--r-panel--padding: 8px 0;
|
|
10
|
+
--r-panel--width: 18.75rem;
|
|
11
|
+
--r-panel--height: 100%;
|
|
12
|
+
--r-panel--color: var(--r-text-regular, #282828);
|
|
13
|
+
--r-panel--transition: all 250ms ease-in-out;
|
|
14
|
+
--r-panel--transform: none;
|
|
15
|
+
--r-panel--font-family: var(--r-font-family-text);
|
|
16
|
+
--r-panel--left: 0;
|
|
17
|
+
--r-panel--header--display: flex;
|
|
18
|
+
--r-panel--header--padding: 12px 16px;
|
|
19
|
+
--r-panel--header--justify-content: space-between;
|
|
20
|
+
--r-panel--header--align-items: center;
|
|
21
|
+
--r-panel--header--align-self: stretch;
|
|
22
|
+
--r-panel--header--icon-rotate: none;
|
|
23
|
+
--r-panel--header--flex-direction: row;
|
|
24
|
+
--r-panel--header--gap: 3.125rem;
|
|
25
|
+
--r-panel--header--logo--img--width: 100%;
|
|
26
|
+
--r-panel--header--logo--img--height: auto;
|
|
27
|
+
--r-panel--header--logo--img--expanded--width: 12rem;
|
|
28
|
+
--r-panel--header--logo--img--collapsed--width: 1.875rem;
|
|
29
|
+
--r-panel--header--height: unset;
|
|
30
|
+
--r-panel--body--display: block;
|
|
31
|
+
--r-panel--body--flex-grow: 1;
|
|
32
|
+
--r-panel--body--align-self: stretch;
|
|
33
|
+
--r-panel--body--overflow: auto;
|
|
34
|
+
--r-panel--body--padding: 4px 8px 0;
|
|
35
|
+
--r-panel--body-header--color: var(--r-text-soft, #686868);
|
|
36
|
+
--r-panel--body-header--font-size: var(--r-font-size-400, 1rem);
|
|
37
|
+
--r-panel--body-header--font-weight: var(--r-font-weight-regular, 400);
|
|
38
|
+
--r-panel--body-header--padding: 16px 0;
|
|
39
|
+
--r-panel--body-header--width: 16.75rem;
|
|
40
|
+
--r-panel--body-header--margin: 0px;
|
|
41
|
+
--r-panel--footer--dispay: flex;
|
|
42
|
+
--r-panel--footer--width: 100%;
|
|
43
|
+
--r-panel--footer--padding: 16px 16px 24px;
|
|
44
|
+
--r-panel--footer--flex-direction: column;
|
|
45
|
+
--r-panel--footer--justify-content: center;
|
|
46
|
+
--r-panel--footer-gap: var(--spacing-100, 1rem);
|
|
47
|
+
--r-panel--footer--align-self: stretch;
|
|
48
|
+
--r-panel--footer--text-align: center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([variant=drawer]) r-button {
|
|
52
|
+
--r-button--padding: 0.625rem;
|
|
53
|
+
--r-button--background: var(--r-background-interactive-softer, #E7E4E2);
|
|
54
|
+
--r-button--border-radius: 10%;
|
|
55
|
+
--r-button--slot--position: relative;
|
|
56
|
+
--r-button--left: 5%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([variant=drawer][collapsed]) {
|
|
60
|
+
--r-panel--width: var(--r-spacing-450, 4.5rem);
|
|
61
|
+
--r-panel--header--display: none;
|
|
62
|
+
--r-panel--header--icon-rotate: rotate(180deg);
|
|
63
|
+
--r-panel--header--logo--expaned--display: none;
|
|
64
|
+
--r-panel--header--logo--collapsed--display: block;
|
|
65
|
+
--r-panel--header--flex-direction: column;
|
|
66
|
+
--r-panel--header--gap: 0.625rem;
|
|
67
|
+
--r-list-item--epxanded--background-color: rgba(40, 40, 40, 0.08);
|
|
68
|
+
}
|
|
69
|
+
:host([variant=drawer][collapsed]) r-button {
|
|
70
|
+
--r-button--slot--position: inherit;
|
|
71
|
+
transition: transform 250ms ease-in-out;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([variant=modal][collapsed]) {
|
|
75
|
+
--r-panel--transform: translate(-100%);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host([collapsed]:not([variant=modal])) {
|
|
79
|
+
--r-panel--min-width: 0;
|
|
80
|
+
--r-list-item--sr-text--display: block;
|
|
81
|
+
--r-list-item--text--display: none;
|
|
82
|
+
--r-list-item--trailing--display: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([variant=drawer]:not([has-header]):not([collapsed])),
|
|
86
|
+
:host([variant=drawer][has-header=false]:not([collapsed])) {
|
|
87
|
+
--r-panel--header--height: var(--spacing-150, 1.5rem);
|
|
88
|
+
--r-panel--header--padding: 12px 8px 0 16px;
|
|
89
|
+
}
|
|
90
|
+
:host([variant=drawer]:not([has-header]):not([collapsed])) r-button,
|
|
91
|
+
:host([variant=drawer][has-header=false]:not([collapsed])) r-button {
|
|
92
|
+
--r-button--top: 20%;
|
|
93
|
+
--r-button--left: 97%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([collapsed]) {
|
|
97
|
+
--r-list-item--active-parent--background-color: rgba(40, 40, 40, 0.08);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.r-panel {
|
|
101
|
+
z-index: 2;
|
|
102
|
+
min-width: var(--r-panel--min-width);
|
|
103
|
+
background-color: var(--r-panel--background-color);
|
|
104
|
+
display: var(--r-panel--display);
|
|
105
|
+
flex-direction: var(--r-panel--flex-direction);
|
|
106
|
+
align-items: var(--r-panel--align-items);
|
|
107
|
+
width: var(--r-panel--width);
|
|
108
|
+
height: var(--r-panel--height);
|
|
109
|
+
position: var(--r-panel--position);
|
|
110
|
+
top: var(--r-panel--top);
|
|
111
|
+
padding: var(--r-panel--padding);
|
|
112
|
+
color: var(--r-panel--color);
|
|
113
|
+
transition: var(--r-panel--transition);
|
|
114
|
+
transform: var(--r-panel--transform);
|
|
115
|
+
left: var(--r-panel--left);
|
|
116
|
+
font-family: var(--r-panel--font-family);
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
}
|
|
119
|
+
.r-panel .logo-wrapper .logo-expanded {
|
|
120
|
+
width: var(--r-panel--header--logo--img--expanded--width);
|
|
121
|
+
}
|
|
122
|
+
.r-panel .logo-wrapper .logo-collapsed {
|
|
123
|
+
width: var(--r-panel--header--logo--img--collapsed--width);
|
|
124
|
+
}
|
|
125
|
+
.r-panel .logo-wrapper img {
|
|
126
|
+
width: var(--r-panel--header--logo--img--width);
|
|
127
|
+
height: var(--r-panel--header--logo--img--height);
|
|
128
|
+
}
|
|
129
|
+
.r-panel .logo-wrapper:focus, .r-panel .logo-wrapper:focus-visible {
|
|
130
|
+
box-shadow: 0 0 0 6px var(--r-border-focused-outlined, #fff);
|
|
131
|
+
outline: 2px solid var(--r-border-focused, #0071e3);
|
|
132
|
+
outline-offset: 2px;
|
|
133
|
+
}
|
|
134
|
+
.r-panel--header {
|
|
135
|
+
display: flex;
|
|
136
|
+
padding: var(--r-panel--header--padding);
|
|
137
|
+
justify-content: var(--r-panel--header--justify-content);
|
|
138
|
+
align-items: var(--r-panel--header--align-items);
|
|
139
|
+
align-self: var(--r-panel--header--align-self);
|
|
140
|
+
flex-direction: var(--r-panel--header--flex-direction);
|
|
141
|
+
gap: var(--r-panel--header--gap);
|
|
142
|
+
height: var(--r-panel--header--height);
|
|
143
|
+
}
|
|
144
|
+
.r-panel--header r-button {
|
|
145
|
+
--r-button--padding: 0;
|
|
146
|
+
transform: var(--r-panel--header--icon-rotate);
|
|
147
|
+
background: var(--r-button--background);
|
|
148
|
+
position: var(--r-button--slot--position);
|
|
149
|
+
left: var(--r-button--left);
|
|
150
|
+
top: var(--r-button--top);
|
|
151
|
+
border-radius: var(--r-button--border-radius);
|
|
152
|
+
}
|
|
153
|
+
.r-panel--body {
|
|
154
|
+
flex-grow: var(--r-panel--body--flex-grow);
|
|
155
|
+
align-self: var(--r-panel--body--align-self);
|
|
156
|
+
display: var(--r-panel--body--display);
|
|
157
|
+
overflow: var(--r-panel--body--overflow);
|
|
158
|
+
padding: var(--r-panel--body--padding);
|
|
159
|
+
}
|
|
160
|
+
.r-panel--body ::slotted(.header) {
|
|
161
|
+
color: var(--r-panel--body-header--color);
|
|
162
|
+
font-size: var(--r-panel--body-header--font-size);
|
|
163
|
+
font-weight: var(--r-panel--body-header--font-weight);
|
|
164
|
+
padding: var(--r-panel--body-header--padding);
|
|
165
|
+
display: var(--r-panel--header--display);
|
|
166
|
+
width: var(--r-panel--body-header--width);
|
|
167
|
+
margin: var(--r-panel--body-header--margin);
|
|
168
|
+
}
|
|
169
|
+
.r-panel--footer {
|
|
170
|
+
width: var(--r-panel--footer--width);
|
|
171
|
+
}
|
|
172
|
+
.r-panel ::slotted([slot=footer]) {
|
|
173
|
+
display: var(--r-panel--footer--dispay);
|
|
174
|
+
padding: var(--r-panel--footer--padding);
|
|
175
|
+
flex-direction: var(--r-panel--footer--flex-direction);
|
|
176
|
+
justify-content: var(--r-panel--footer--justify-content);
|
|
177
|
+
gap: var(--r-panel--footer-gap);
|
|
178
|
+
align-self: var(--r-panel--footer--align-self);
|
|
179
|
+
text-align: var(--r-panel--footer--text-align);
|
|
180
|
+
}
|
|
181
|
+
.r-panel ::slotted(ul) {
|
|
182
|
+
margin: var(--r-panel--item-list--margin, 0);
|
|
183
|
+
padding: var(--r-panel--item-list--padding, 0);
|
|
184
|
+
list-style-type: var(--r-panel--item-list--list-style-type, "");
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@media (prefers-reduced-motion) {
|
|
188
|
+
.r-panel,
|
|
189
|
+
:host([variant=drawer][collapsed]) r-button {
|
|
190
|
+
transition: none;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class Panel {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** A boolean property that indicates whether the component includes a header */
|
|
5
|
+
this.hasHeader = false;
|
|
6
|
+
/** A boolean property that indicates whether the navitems are active of not */
|
|
7
|
+
this.active = false;
|
|
8
|
+
/** A boolean property that indicates whether the component includes a footer */
|
|
9
|
+
this.hasFooter = false;
|
|
10
|
+
/** Presentational style */
|
|
11
|
+
this.variant = 'visible';
|
|
12
|
+
/** A boolean property that determines the collapsed state of the component. The default state is `false`. */
|
|
13
|
+
this.collapsed = false;
|
|
14
|
+
/** Aria-label text for collapse */
|
|
15
|
+
this.labelCollapse = 'Collapse panel';
|
|
16
|
+
/** Aria-label text for expand */
|
|
17
|
+
this.labelExpand = 'Expand panel';
|
|
18
|
+
this.isCollapsed = this.collapsed;
|
|
19
|
+
// Pre-bound method for event listeners
|
|
20
|
+
this.updateCurrentLocationBound = this.updateCurrentLocation.bind(this);
|
|
21
|
+
this.handleSemiCollapsedButtonClick = () => {
|
|
22
|
+
this.togglePanel();
|
|
23
|
+
const parentPanels = document.querySelectorAll('r-list-item[expanded]');
|
|
24
|
+
if (this.isCollapsed) {
|
|
25
|
+
parentPanels.forEach(parentPanel => {
|
|
26
|
+
parentPanel.removeAttribute('expanded');
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
parentPanels.forEach(parentPanel => {
|
|
31
|
+
parentPanel.setAttribute('expanded', '');
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
this.handleFullyCollapsedButtonClick = () => {
|
|
36
|
+
this.collapsePanel();
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
toggleSubItems(event) {
|
|
40
|
+
const target = event.target;
|
|
41
|
+
if (target.tagName === 'R-LIST-ITEM' && this.isCollapsed && this.variant) {
|
|
42
|
+
const hasSubItems = target.hasAttribute('has-sub-items');
|
|
43
|
+
if (hasSubItems) {
|
|
44
|
+
this.expandPanel();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/** Expand/Collapse Panel */
|
|
49
|
+
async togglePanel() {
|
|
50
|
+
this.isCollapsed = !this.isCollapsed;
|
|
51
|
+
}
|
|
52
|
+
/** Expand Panel */
|
|
53
|
+
async expandPanel() {
|
|
54
|
+
this.isCollapsed = false;
|
|
55
|
+
}
|
|
56
|
+
/** Collapse Panel */
|
|
57
|
+
async collapsePanel() {
|
|
58
|
+
this.isCollapsed = true;
|
|
59
|
+
}
|
|
60
|
+
handleCollapseChange(collapsed) {
|
|
61
|
+
this.isCollapsed = collapsed;
|
|
62
|
+
// Save the state to localStorage whenever it changes
|
|
63
|
+
if (this.variant === 'drawer' || this.variant === 'modal') {
|
|
64
|
+
localStorage.setItem('panelState', JSON.stringify(collapsed));
|
|
65
|
+
this.panelStateChanged.emit({ collapsed });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
watchVariant(newVariant) {
|
|
69
|
+
this.isCollapsed = newVariant === 'modal';
|
|
70
|
+
}
|
|
71
|
+
handleDocumentClick(event) {
|
|
72
|
+
this.handleClickOutside(event);
|
|
73
|
+
}
|
|
74
|
+
getNavLinks() {
|
|
75
|
+
return document.querySelectorAll('r-list-item[href]');
|
|
76
|
+
}
|
|
77
|
+
get isVariantCollapsible() {
|
|
78
|
+
return this.variant === 'modal';
|
|
79
|
+
}
|
|
80
|
+
/*
|
|
81
|
+
* Collapse the panel when a click occurs outside of it (in mobile/when variant is 'modal'):
|
|
82
|
+
* Check if the clicked target is not an R-BUTTON element (that is the button[hamburger] that toggles the panel in mobile)
|
|
83
|
+
* Check if the click happened outside of the host element
|
|
84
|
+
* Ensure the variant is 'modal' and the panel is currently expanded
|
|
85
|
+
*/
|
|
86
|
+
handleClickOutside(event) {
|
|
87
|
+
if (event.target.tagName !== 'R-BUTTON' &&
|
|
88
|
+
!this.host.contains(event.target) &&
|
|
89
|
+
this.isVariantCollapsible &&
|
|
90
|
+
!this.isCollapsed) {
|
|
91
|
+
this.collapsePanel();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
componentWillLoad() {
|
|
95
|
+
this.isCollapsed = this.isVariantCollapsible;
|
|
96
|
+
if (this.variant === 'drawer') {
|
|
97
|
+
const savedState = localStorage.getItem('panelState');
|
|
98
|
+
this.isCollapsed = savedState ? JSON.parse(savedState) : this.isCollapsed;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
componentWillRender() {
|
|
102
|
+
window.addEventListener('popstate', this.updateCurrentLocationBound);
|
|
103
|
+
window.addEventListener('hashchange', this.updateCurrentLocationBound);
|
|
104
|
+
this.highlightCurrentLink();
|
|
105
|
+
}
|
|
106
|
+
componentDidRender() {
|
|
107
|
+
this.highlightCurrentLink();
|
|
108
|
+
}
|
|
109
|
+
disconnectedCallback() {
|
|
110
|
+
window.removeEventListener('popstate', this.updateCurrentLocationBound);
|
|
111
|
+
window.removeEventListener('hashchange', this.updateCurrentLocationBound);
|
|
112
|
+
}
|
|
113
|
+
updateCurrentLocation() {
|
|
114
|
+
this.currentLocation = window.location.hash ? window.location.hash.slice(1) : window.location.href;
|
|
115
|
+
this.highlightCurrentLink();
|
|
116
|
+
}
|
|
117
|
+
// Highlight the current link based on the current URL
|
|
118
|
+
// Scroll the active link into view
|
|
119
|
+
highlightCurrentLink() {
|
|
120
|
+
const navLinks = this.getNavLinks();
|
|
121
|
+
navLinks.forEach((link) => {
|
|
122
|
+
if (link instanceof HTMLElement) {
|
|
123
|
+
const linkHref = link.getAttribute('href');
|
|
124
|
+
const isActive = linkHref === this.currentLocation || linkHref === window.location.pathname + window.location.hash;
|
|
125
|
+
this.updateLinkState(link, isActive);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
const activeLink = document.querySelector('.active');
|
|
129
|
+
if (activeLink) {
|
|
130
|
+
activeLink.scrollIntoView({
|
|
131
|
+
behavior: 'smooth',
|
|
132
|
+
block: 'end'
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
// Update link attributes based on active state
|
|
137
|
+
updateLinkState(link, isActive) {
|
|
138
|
+
if (isActive) {
|
|
139
|
+
link.setAttribute('active', '');
|
|
140
|
+
link.classList.add('active');
|
|
141
|
+
this.expandParentMenus(link);
|
|
142
|
+
this.highlightParent(link);
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
link.removeAttribute('active');
|
|
146
|
+
link.classList.remove('active');
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
highlightParent(link) {
|
|
150
|
+
const parentActive = link.parentElement;
|
|
151
|
+
if (parentActive && parentActive.tagName === 'R-LIST-ITEM') {
|
|
152
|
+
parentActive.setAttribute('active-parent', '');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
expandParentMenus(link) {
|
|
156
|
+
var _a;
|
|
157
|
+
let parentPanel = link.closest('r-list-item[has-sub-items]');
|
|
158
|
+
while (parentPanel && !this.isCollapsed) {
|
|
159
|
+
parentPanel.setAttribute('expanded', '');
|
|
160
|
+
parentPanel = (_a = parentPanel.parentElement) === null || _a === void 0 ? void 0 : _a.closest('r-panel');
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
render() {
|
|
164
|
+
return (h(Host, { key: '44996078c23da8ce9b5b48044d24d45778e688b4', role: "navigation", collapsed: this.isCollapsed }, h("div", { key: 'a217b08d3fda5e4f8761d971074e3de797363f32', class: "r-panel" }, h("div", { key: '8ff71b762feffd1cc9478014e011fc60875a5e3d', class: "r-panel--header" }, this.hasHeader && (h("a", { key: '9ad8475299e9f04341cc1c4b5b9e65551f2f6ca2', class: "logo-wrapper", href: this.logoLink }, this.isCollapsed ?
|
|
165
|
+
h("slot", { name: "logo-collapsed" })
|
|
166
|
+
:
|
|
167
|
+
h("slot", { name: "logo-expanded" }))), this.variant === 'modal' ? (h("r-button", { class: "r-panel--trigger", variant: "blank", icon: "cross", rAriaLabel: `${this.labelCollapse}`, onClick: this.handleFullyCollapsedButtonClick })) : this.variant === 'drawer' ? (h("r-button", { class: "r-panel--trigger", variant: "blank", icon: "angle-left", rAriaLabel: this.isCollapsed ? `${this.labelExpand}` : `${this.labelCollapse}`, onClick: this.handleSemiCollapsedButtonClick })) : this.variant === 'visible' ? (null) : null), h("div", { key: '14b5a3ee0e11eda6585a84e0f05aa682950fbce2', class: "r-panel--body" }, h("slot", { key: 'e008d4f4796415779cd8e3dbda696b966b4ac184' })), this.hasFooter && !this.isCollapsed && (h("div", { key: '702c5859f2a7aa60903ec1df29f8977cf46dd0b8', class: "r-panel--footer" }, h("slot", { key: '347796d3e0bbffed77ae9368270f6e27eb93e156', name: "footer" }))))));
|
|
168
|
+
}
|
|
169
|
+
static get is() { return "r-panel"; }
|
|
170
|
+
static get encapsulation() { return "shadow"; }
|
|
171
|
+
static get originalStyleUrls() {
|
|
172
|
+
return {
|
|
173
|
+
"$": ["panel.css"]
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
static get styleUrls() {
|
|
177
|
+
return {
|
|
178
|
+
"$": ["panel.css"]
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
static get properties() {
|
|
182
|
+
return {
|
|
183
|
+
"header": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"attribute": "header",
|
|
186
|
+
"mutable": false,
|
|
187
|
+
"complexType": {
|
|
188
|
+
"original": "string",
|
|
189
|
+
"resolved": "string",
|
|
190
|
+
"references": {}
|
|
191
|
+
},
|
|
192
|
+
"required": false,
|
|
193
|
+
"optional": true,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": "The `header` property is a string that specifies the header text."
|
|
197
|
+
},
|
|
198
|
+
"getter": false,
|
|
199
|
+
"setter": false,
|
|
200
|
+
"reflect": false
|
|
201
|
+
},
|
|
202
|
+
"hasHeader": {
|
|
203
|
+
"type": "boolean",
|
|
204
|
+
"attribute": "has-header",
|
|
205
|
+
"mutable": false,
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "boolean",
|
|
208
|
+
"resolved": "boolean",
|
|
209
|
+
"references": {}
|
|
210
|
+
},
|
|
211
|
+
"required": false,
|
|
212
|
+
"optional": false,
|
|
213
|
+
"docs": {
|
|
214
|
+
"tags": [],
|
|
215
|
+
"text": "A boolean property that indicates whether the component includes a header"
|
|
216
|
+
},
|
|
217
|
+
"getter": false,
|
|
218
|
+
"setter": false,
|
|
219
|
+
"reflect": false,
|
|
220
|
+
"defaultValue": "false"
|
|
221
|
+
},
|
|
222
|
+
"active": {
|
|
223
|
+
"type": "boolean",
|
|
224
|
+
"attribute": "active",
|
|
225
|
+
"mutable": false,
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "boolean",
|
|
228
|
+
"resolved": "boolean",
|
|
229
|
+
"references": {}
|
|
230
|
+
},
|
|
231
|
+
"required": false,
|
|
232
|
+
"optional": false,
|
|
233
|
+
"docs": {
|
|
234
|
+
"tags": [],
|
|
235
|
+
"text": "A boolean property that indicates whether the navitems are active of not"
|
|
236
|
+
},
|
|
237
|
+
"getter": false,
|
|
238
|
+
"setter": false,
|
|
239
|
+
"reflect": false,
|
|
240
|
+
"defaultValue": "false"
|
|
241
|
+
},
|
|
242
|
+
"hasFooter": {
|
|
243
|
+
"type": "boolean",
|
|
244
|
+
"attribute": "has-footer",
|
|
245
|
+
"mutable": false,
|
|
246
|
+
"complexType": {
|
|
247
|
+
"original": "boolean",
|
|
248
|
+
"resolved": "boolean",
|
|
249
|
+
"references": {}
|
|
250
|
+
},
|
|
251
|
+
"required": false,
|
|
252
|
+
"optional": false,
|
|
253
|
+
"docs": {
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": "A boolean property that indicates whether the component includes a footer"
|
|
256
|
+
},
|
|
257
|
+
"getter": false,
|
|
258
|
+
"setter": false,
|
|
259
|
+
"reflect": false,
|
|
260
|
+
"defaultValue": "false"
|
|
261
|
+
},
|
|
262
|
+
"variant": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"attribute": "variant",
|
|
265
|
+
"mutable": false,
|
|
266
|
+
"complexType": {
|
|
267
|
+
"original": "PanelVariant",
|
|
268
|
+
"resolved": "\"drawer\" | \"modal\" | \"visible\"",
|
|
269
|
+
"references": {
|
|
270
|
+
"PanelVariant": {
|
|
271
|
+
"location": "import",
|
|
272
|
+
"path": "./exports",
|
|
273
|
+
"id": "src/components/panel/exports.ts::PanelVariant"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"required": false,
|
|
278
|
+
"optional": false,
|
|
279
|
+
"docs": {
|
|
280
|
+
"tags": [],
|
|
281
|
+
"text": "Presentational style"
|
|
282
|
+
},
|
|
283
|
+
"getter": false,
|
|
284
|
+
"setter": false,
|
|
285
|
+
"reflect": true,
|
|
286
|
+
"defaultValue": "'visible'"
|
|
287
|
+
},
|
|
288
|
+
"collapsed": {
|
|
289
|
+
"type": "boolean",
|
|
290
|
+
"attribute": "collapsed",
|
|
291
|
+
"mutable": false,
|
|
292
|
+
"complexType": {
|
|
293
|
+
"original": "boolean",
|
|
294
|
+
"resolved": "boolean",
|
|
295
|
+
"references": {}
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"optional": false,
|
|
299
|
+
"docs": {
|
|
300
|
+
"tags": [],
|
|
301
|
+
"text": "A boolean property that determines the collapsed state of the component. The default state is `false`."
|
|
302
|
+
},
|
|
303
|
+
"getter": false,
|
|
304
|
+
"setter": false,
|
|
305
|
+
"reflect": false,
|
|
306
|
+
"defaultValue": "false"
|
|
307
|
+
},
|
|
308
|
+
"logoLink": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"attribute": "logo-link",
|
|
311
|
+
"mutable": false,
|
|
312
|
+
"complexType": {
|
|
313
|
+
"original": "string",
|
|
314
|
+
"resolved": "string",
|
|
315
|
+
"references": {}
|
|
316
|
+
},
|
|
317
|
+
"required": false,
|
|
318
|
+
"optional": false,
|
|
319
|
+
"docs": {
|
|
320
|
+
"tags": [],
|
|
321
|
+
"text": "Logo link"
|
|
322
|
+
},
|
|
323
|
+
"getter": false,
|
|
324
|
+
"setter": false,
|
|
325
|
+
"reflect": false
|
|
326
|
+
},
|
|
327
|
+
"labelCollapse": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"attribute": "label-collapse",
|
|
330
|
+
"mutable": false,
|
|
331
|
+
"complexType": {
|
|
332
|
+
"original": "string",
|
|
333
|
+
"resolved": "string",
|
|
334
|
+
"references": {}
|
|
335
|
+
},
|
|
336
|
+
"required": false,
|
|
337
|
+
"optional": false,
|
|
338
|
+
"docs": {
|
|
339
|
+
"tags": [],
|
|
340
|
+
"text": "Aria-label text for collapse"
|
|
341
|
+
},
|
|
342
|
+
"getter": false,
|
|
343
|
+
"setter": false,
|
|
344
|
+
"reflect": false,
|
|
345
|
+
"defaultValue": "'Collapse panel'"
|
|
346
|
+
},
|
|
347
|
+
"labelExpand": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"attribute": "label-expand",
|
|
350
|
+
"mutable": false,
|
|
351
|
+
"complexType": {
|
|
352
|
+
"original": "string",
|
|
353
|
+
"resolved": "string",
|
|
354
|
+
"references": {}
|
|
355
|
+
},
|
|
356
|
+
"required": false,
|
|
357
|
+
"optional": false,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [],
|
|
360
|
+
"text": "Aria-label text for expand"
|
|
361
|
+
},
|
|
362
|
+
"getter": false,
|
|
363
|
+
"setter": false,
|
|
364
|
+
"reflect": false,
|
|
365
|
+
"defaultValue": "'Expand panel'"
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
static get states() {
|
|
370
|
+
return {
|
|
371
|
+
"currentLocation": {},
|
|
372
|
+
"isCollapsed": {}
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
static get events() {
|
|
376
|
+
return [{
|
|
377
|
+
"method": "panelStateChanged",
|
|
378
|
+
"name": "panelStateChanged",
|
|
379
|
+
"bubbles": true,
|
|
380
|
+
"cancelable": true,
|
|
381
|
+
"composed": true,
|
|
382
|
+
"docs": {
|
|
383
|
+
"tags": [],
|
|
384
|
+
"text": "Event emitted when the panel state changes"
|
|
385
|
+
},
|
|
386
|
+
"complexType": {
|
|
387
|
+
"original": "{ collapsed: boolean }",
|
|
388
|
+
"resolved": "{ collapsed: boolean; }",
|
|
389
|
+
"references": {}
|
|
390
|
+
}
|
|
391
|
+
}];
|
|
392
|
+
}
|
|
393
|
+
static get methods() {
|
|
394
|
+
return {
|
|
395
|
+
"togglePanel": {
|
|
396
|
+
"complexType": {
|
|
397
|
+
"signature": "() => Promise<void>",
|
|
398
|
+
"parameters": [],
|
|
399
|
+
"references": {
|
|
400
|
+
"Promise": {
|
|
401
|
+
"location": "global",
|
|
402
|
+
"id": "global::Promise"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"return": "Promise<void>"
|
|
406
|
+
},
|
|
407
|
+
"docs": {
|
|
408
|
+
"text": "Expand/Collapse Panel",
|
|
409
|
+
"tags": []
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"expandPanel": {
|
|
413
|
+
"complexType": {
|
|
414
|
+
"signature": "() => Promise<void>",
|
|
415
|
+
"parameters": [],
|
|
416
|
+
"references": {
|
|
417
|
+
"Promise": {
|
|
418
|
+
"location": "global",
|
|
419
|
+
"id": "global::Promise"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"return": "Promise<void>"
|
|
423
|
+
},
|
|
424
|
+
"docs": {
|
|
425
|
+
"text": "Expand Panel",
|
|
426
|
+
"tags": []
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"collapsePanel": {
|
|
430
|
+
"complexType": {
|
|
431
|
+
"signature": "() => Promise<void>",
|
|
432
|
+
"parameters": [],
|
|
433
|
+
"references": {
|
|
434
|
+
"Promise": {
|
|
435
|
+
"location": "global",
|
|
436
|
+
"id": "global::Promise"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"return": "Promise<void>"
|
|
440
|
+
},
|
|
441
|
+
"docs": {
|
|
442
|
+
"text": "Collapse Panel",
|
|
443
|
+
"tags": []
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
static get elementRef() { return "host"; }
|
|
449
|
+
static get watchers() {
|
|
450
|
+
return [{
|
|
451
|
+
"propName": "isCollapsed",
|
|
452
|
+
"methodName": "handleCollapseChange"
|
|
453
|
+
}, {
|
|
454
|
+
"propName": "variant",
|
|
455
|
+
"methodName": "watchVariant"
|
|
456
|
+
}];
|
|
457
|
+
}
|
|
458
|
+
static get listeners() {
|
|
459
|
+
return [{
|
|
460
|
+
"name": "click",
|
|
461
|
+
"method": "toggleSubItems",
|
|
462
|
+
"target": undefined,
|
|
463
|
+
"capture": true,
|
|
464
|
+
"passive": false
|
|
465
|
+
}, {
|
|
466
|
+
"name": "click",
|
|
467
|
+
"method": "handleDocumentClick",
|
|
468
|
+
"target": "document",
|
|
469
|
+
"capture": false,
|
|
470
|
+
"passive": false
|
|
471
|
+
}];
|
|
472
|
+
}
|
|
473
|
+
}
|