@eunomia/elements 1.0.0-beta.6 → 1.0.0-beta.8
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/README.md +1 -1
- package/dist/cdn/components/chunks/{chunk-KDN4O5W2.js → chunk-32L2QYWQ.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-JYIIWN2P.js → chunk-36KLGY6U.js} +8 -8
- package/dist/cdn/components/chunks/chunk-3BMACIDO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-2Y2EU2CI.js → chunk-3UUZM7X2.js} +1 -1
- package/dist/cdn/components/chunks/chunk-55PUDL7D.js +109 -0
- package/dist/cdn/components/chunks/chunk-5LA5DQMP.js +1 -0
- package/dist/cdn/components/chunks/chunk-5LXGJVJR.js +1 -0
- package/dist/cdn/components/chunks/{chunk-ZKZV2YG5.js → chunk-5XPOGBPL.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-LMVW522V.js → chunk-62RLISRD.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-PMPSJG5V.js → chunk-6FYW5TQU.js} +3 -3
- package/dist/cdn/components/chunks/chunk-6TIEBY34.js +1 -0
- package/dist/cdn/components/chunks/{chunk-MOMYII3P.js → chunk-AH2SKZ7T.js} +14 -1
- package/dist/cdn/components/chunks/chunk-AK2DIJX7.js +1 -0
- package/dist/cdn/components/chunks/chunk-B5XMGWM7.js +10 -0
- package/dist/cdn/components/chunks/chunk-GVS6IUKC.js +1 -0
- package/dist/cdn/components/chunks/chunk-GWLD2I3P.js +8 -0
- package/dist/cdn/components/chunks/{chunk-UDVB4LAE.js → chunk-I4ERDXSM.js} +5 -3
- package/dist/cdn/components/chunks/{chunk-QZ5SHR3I.js → chunk-J3SZBXM6.js} +2 -2
- package/dist/cdn/components/chunks/chunk-JAGZL7JH.js +1 -0
- package/dist/cdn/components/chunks/{chunk-VYFR364B.js → chunk-LD35BFNK.js} +18 -17
- package/dist/cdn/components/chunks/{chunk-XDPRWUKN.js → chunk-MQQJ6DID.js} +1 -1
- package/dist/cdn/components/chunks/chunk-P6LGU3FT.js +1 -0
- package/dist/cdn/components/chunks/chunk-QL5GSW2A.js +1 -0
- package/dist/cdn/components/chunks/{chunk-UYZR4JXZ.js → chunk-QSZO4GIH.js} +45 -9
- package/dist/cdn/components/chunks/{chunk-7KKWYPHY.js → chunk-QXQ25SQS.js} +21 -19
- package/dist/cdn/components/chunks/{chunk-SZYEBMG6.js → chunk-QYB6Z6FG.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-RIFF2D2F.js → chunk-RGC3I6MK.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-L2ADCEN7.js → chunk-SVGWCKWT.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-N6ZW5CDN.js → chunk-TCSB2MLU.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-MQQ4BGVJ.js → chunk-TFTRCIIK.js} +7 -6
- package/dist/cdn/components/chunks/chunk-TLBXTBMM.js +46 -0
- package/dist/cdn/components/chunks/chunk-UVHVQRPT.js +1 -0
- package/dist/cdn/components/chunks/chunk-WIUERJII.js +1 -0
- package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +1 -0
- package/dist/cdn/components/eun-alert.js +13 -6
- package/dist/cdn/components/eun-animate.js +6 -6
- package/dist/cdn/components/eun-badge.js +1 -1
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +2 -2
- package/dist/cdn/components/eun-card.js +4 -4
- package/dist/cdn/components/eun-carousel.js +26 -22
- package/dist/cdn/components/eun-check-card.js +1 -1
- package/dist/cdn/components/eun-checkbox-list.js +11 -8
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +17 -11
- package/dist/cdn/components/eun-collapse.js +1 -1
- package/dist/cdn/components/eun-color-picker.js +74 -69
- package/dist/cdn/components/eun-counter.js +16 -14
- package/dist/cdn/components/eun-date-picker.js +67 -63
- package/dist/cdn/components/eun-description-list.js +2 -2
- package/dist/cdn/components/eun-divider.js +3 -3
- package/dist/cdn/components/eun-drawer.js +21 -22
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +3 -3
- package/dist/cdn/components/eun-fab.js +2 -2
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +1 -1
- package/dist/cdn/components/eun-image-carousel.js +10 -10
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +21 -21
- package/dist/cdn/components/eun-input-phone.js +16 -12
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-link.js +59 -13
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +33 -23
- package/dist/cdn/components/eun-pagination.js +16 -16
- package/dist/cdn/components/eun-password-strength.js +14 -10
- package/dist/cdn/components/eun-radio-card.js +1 -1
- package/dist/cdn/components/eun-radio-list.js +11 -8
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-rating.js +276 -0
- package/dist/cdn/components/eun-scheduler-event-editor.js +11 -11
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +28 -28
- package/dist/cdn/components/eun-search.js +36 -32
- package/dist/cdn/components/eun-select.js +27 -27
- package/dist/cdn/components/eun-sidebar.js +73 -26
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +3 -3
- package/dist/cdn/components/eun-sliding-card.js +1 -1
- package/dist/cdn/components/eun-step.js +5 -4
- package/dist/cdn/components/eun-stepper.js +30 -30
- package/dist/cdn/components/eun-switch.js +1 -1
- package/dist/cdn/components/eun-tab-group.js +4 -4
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-tab.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table.js +2 -2
- package/dist/cdn/components/eun-tag.js +3 -3
- package/dist/cdn/components/eun-textarea.js +36 -28
- package/dist/cdn/components/eun-time-picker.js +31 -28
- package/dist/cdn/components/eun-toast.js +24 -15
- package/dist/cdn/components/eun-toggle-group.js +75 -37
- package/dist/cdn/components/eun-toggle-item.js +9 -9
- package/dist/cdn/components/eun-toggle.js +2 -2
- package/dist/cdn/components/eun-toolbar.js +22 -22
- package/dist/cdn/components/eun-tooltip.js +6 -6
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/components/action/button/button.d.ts +4 -3
- package/dist/components/action/button/button.js +6 -9
- package/dist/components/action/button/button.styles.js +13 -8
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +4 -6
- package/dist/components/action/dropdown-button/dropdown-button.js +16 -13
- package/dist/components/action/dropdown-button/dropdown-item.d.ts +10 -2
- package/dist/components/action/dropdown-button/dropdown-item.js +24 -9
- package/dist/components/action/link/link.d.ts +10 -1
- package/dist/components/action/link/link.js +13 -1
- package/dist/components/action/link/link.styles.js +50 -3
- package/dist/components/action/toggle/toggle-group.d.ts +12 -2
- package/dist/components/action/toggle/toggle-group.js +18 -3
- package/dist/components/action/toggle/toggle-group.styles.js +58 -20
- package/dist/components/action/toggle/toggle-item.js +1 -3
- package/dist/components/action/toggle/toggle-item.styles.js +7 -7
- package/dist/components/action/toggle/toggle.js +1 -1
- package/dist/components/alert/alert/alert.d.ts +9 -7
- package/dist/components/alert/alert/alert.js +11 -14
- package/dist/components/alert/alert/alert.styles.js +9 -2
- package/dist/components/alert/drawer/drawer.d.ts +30 -5
- package/dist/components/alert/drawer/drawer.js +48 -13
- package/dist/components/alert/drawer/drawer.styles.js +7 -7
- package/dist/components/alert/modal/modal.d.ts +35 -10
- package/dist/components/alert/modal/modal.js +55 -28
- package/dist/components/alert/modal/modal.styles.js +17 -6
- package/dist/components/alert/toast/toast.d.ts +7 -5
- package/dist/components/alert/toast/toast.js +12 -15
- package/dist/components/alert/toast/toast.styles.js +18 -9
- package/dist/components/content/badge/badge.js +2 -2
- package/dist/components/content/card/card.js +1 -1
- package/dist/components/content/card/card.styles.js +2 -2
- package/dist/components/content/chip/chip.d.ts +4 -4
- package/dist/components/content/chip/chip.js +11 -10
- package/dist/components/content/chip/chip.styles.js +9 -3
- package/dist/components/content/description-list/description-list.js +3 -3
- package/dist/components/content/icon/icon.d.ts +3 -0
- package/dist/components/content/icon/icon.js +3 -0
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +4 -0
- package/dist/components/content/image-carousel/image-carousel.d.ts +12 -12
- package/dist/components/content/image-carousel/image-carousel.js +29 -28
- package/dist/components/content/password-strength/password-strength.d.ts +21 -6
- package/dist/components/content/password-strength/password-strength.js +37 -16
- package/dist/components/content/password-strength/password-strength.styles.js +4 -0
- package/dist/components/content/tag/tag.js +2 -2
- package/dist/components/content/tooltip/tooltip.d.ts +16 -9
- package/dist/components/content/tooltip/tooltip.js +31 -15
- package/dist/components/content/tooltip/tooltip.styles.js +1 -1
- package/dist/components/form/checkbox/check-card.d.ts +1 -0
- package/dist/components/form/checkbox/check-card.js +1 -0
- package/dist/components/form/checkbox/checkbox-list.d.ts +17 -0
- package/dist/components/form/checkbox/checkbox-list.js +39 -10
- package/dist/components/form/checkbox/checkbox.d.ts +1 -0
- package/dist/components/form/checkbox/checkbox.js +3 -1
- package/dist/components/form/checkbox/checkbox.styles.js +3 -2
- package/dist/components/form/color-picker/color-picker.d.ts +47 -28
- package/dist/components/form/color-picker/color-picker.js +73 -51
- package/dist/components/form/color-picker/color-picker.styles.js +14 -1
- package/dist/components/form/counter/counter.d.ts +24 -18
- package/dist/components/form/counter/counter.js +61 -61
- package/dist/components/form/counter/counter.styles.js +6 -4
- package/dist/components/form/date-picker/date-picker.d.ts +33 -7
- package/dist/components/form/date-picker/date-picker.js +82 -56
- package/dist/components/form/date-picker/date-picker.styles.js +9 -6
- package/dist/components/form/input/input.d.ts +43 -39
- package/dist/components/form/input/input.js +91 -110
- package/dist/components/form/input-file/input-file.d.ts +26 -13
- package/dist/components/form/input-file/input-file.js +35 -35
- package/dist/components/form/input-file/input-file.styles.js +4 -4
- package/dist/components/form/input-phone/input-phone.d.ts +28 -5
- package/dist/components/form/input-phone/input-phone.js +47 -13
- package/dist/components/form/input-phone/input-phone.styles.js +6 -3
- package/dist/components/form/radio/radio-card.d.ts +1 -0
- package/dist/components/form/radio/radio-card.js +1 -0
- package/dist/components/form/radio/radio-list.d.ts +23 -7
- package/dist/components/form/radio/radio-list.js +47 -22
- package/dist/components/form/radio/radio.d.ts +1 -0
- package/dist/components/form/radio/radio.js +1 -0
- package/dist/components/form/rating/rating.d.ts +349 -0
- package/dist/components/form/rating/rating.js +665 -0
- package/dist/components/form/rating/rating.styles.d.ts +1 -0
- package/dist/components/form/rating/rating.styles.js +213 -0
- package/dist/components/form/search/search.d.ts +72 -18
- package/dist/components/form/search/search.js +135 -72
- package/dist/components/form/search/search.styles.js +2 -0
- package/dist/components/form/select/select.d.ts +29 -10
- package/dist/components/form/select/select.js +65 -41
- package/dist/components/form/shared-styles/field.styles.js +45 -8
- package/dist/components/form/shared-styles/listbox.styles.js +15 -1
- package/dist/components/form/slider/slider.d.ts +7 -8
- package/dist/components/form/slider/slider.js +9 -12
- package/dist/components/form/switch/switch.d.ts +1 -0
- package/dist/components/form/switch/switch.js +1 -0
- package/dist/components/form/textarea/textarea.d.ts +90 -23
- package/dist/components/form/textarea/textarea.js +194 -44
- package/dist/components/form/textarea/textarea.styles.js +3 -0
- package/dist/components/form/time-picker/time-picker-columns.d.ts +2 -2
- package/dist/components/form/time-picker/time-picker-columns.js +8 -8
- package/dist/components/form/time-picker/time-picker.d.ts +30 -9
- package/dist/components/form/time-picker/time-picker.js +66 -40
- package/dist/components/form/time-picker/time-picker.styles.js +7 -5
- package/dist/components/layout/animate/animate.js +3 -2
- package/dist/components/layout/animate/animate.styles.js +2 -2
- package/dist/components/layout/divider/divider.js +1 -1
- package/dist/components/layout/divider/divider.styles.js +1 -1
- package/dist/components/loader/loader/loader.js +2 -2
- package/dist/components/loader/loader/loader.styles.js +14 -12
- package/dist/components/loader/skeleton/skeleton.js +1 -1
- package/dist/components/navigation/carousel/carousel.d.ts +32 -9
- package/dist/components/navigation/carousel/carousel.js +88 -41
- package/dist/components/navigation/carousel/carousel.styles.js +10 -6
- package/dist/components/navigation/pagination/pagination.d.ts +23 -21
- package/dist/components/navigation/pagination/pagination.js +30 -53
- package/dist/components/navigation/sidebar/sidebar.d.ts +113 -65
- package/dist/components/navigation/sidebar/sidebar.js +161 -118
- package/dist/components/navigation/sidebar/sidebar.styles.d.ts +1 -1
- package/dist/components/navigation/sidebar/sidebar.styles.js +74 -24
- package/dist/components/navigation/stepper/step.js +9 -8
- package/dist/components/navigation/stepper/stepper.d.ts +1 -3
- package/dist/components/navigation/stepper/stepper.js +15 -26
- package/dist/components/navigation/tabs/tab-group/tab-group.js +2 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +2 -2
- package/dist/components/navigation/toolbar/toolbar.d.ts +23 -13
- package/dist/components/navigation/toolbar/toolbar.js +28 -35
- package/dist/components/navigation/toolbar/toolbar.styles.js +18 -17
- package/dist/events/select.event.d.ts +3 -2
- package/dist/events/select.event.js +2 -1
- package/dist/features/scheduler/calendar/calendar.js +1 -1
- package/dist/features/scheduler/scheduler/scheduler.d.ts +7 -7
- package/dist/features/scheduler/scheduler/scheduler.js +15 -24
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +3 -3
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +1 -1
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +6 -4
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +7 -8
- package/dist/features/table/table/table.js +1 -1
- package/dist/features/table/table-action-bar/table-action-bar.js +2 -2
- package/dist/i18n/en.d.ts +68 -0
- package/dist/i18n/en.js +68 -0
- package/dist/i18n/fr.js +68 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/mixins/button.mixin.d.ts +1 -1
- package/dist/mixins/button.mixin.js +9 -6
- package/dist/mixins/check.mixin.js +11 -10
- package/dist/mixins/dialog-surface.mixin.d.ts +8 -0
- package/dist/mixins/disabled.mixin.d.ts +5 -0
- package/dist/mixins/disabled.mixin.js +21 -1
- package/dist/mixins/editable.mixin.js +28 -5
- package/dist/mixins/field-appearance.mixin.js +3 -2
- package/dist/mixins/field-size.mixin.d.ts +19 -0
- package/dist/mixins/field-size.mixin.js +33 -0
- package/dist/mixins/form.mixin.d.ts +4 -0
- package/dist/mixins/form.mixin.js +87 -13
- package/dist/mixins/localizable.mixin.d.ts +1 -1
- package/dist/mixins/localizable.mixin.js +1 -1
- package/dist/mixins/radio.mixin.js +11 -10
- package/dist/mixins/readonly.mixin.d.ts +2 -1
- package/dist/mixins/readonly.mixin.js +10 -3
- package/dist/mixins/rounded.mixin.d.ts +18 -0
- package/dist/mixins/rounded.mixin.js +32 -0
- package/dist/ssr/alert-ssr.css +187 -0
- package/dist/ssr/badge-ssr.css +67 -0
- package/dist/ssr/breadcrumb-ssr.css +41 -0
- package/dist/ssr/button-ssr.css +5 -5
- package/dist/ssr/card-ssr.css +27 -15
- package/dist/ssr/carousel-ssr.css +247 -0
- package/dist/ssr/checkbox-ssr.css +67 -0
- package/dist/ssr/chip-ssr.css +250 -0
- package/dist/ssr/collapse-ssr.css +180 -0
- package/dist/ssr/field-ssr.css +202 -0
- package/dist/ssr/icon-ssr.css +266 -0
- package/dist/ssr/image-carousel-ssr.css +34 -0
- package/dist/ssr/links-ssr.css +44 -1
- package/dist/ssr/pagination-ssr.css +4 -0
- package/dist/ssr/rating-ssr.css +254 -0
- package/dist/ssr/sidebar-ssr.css +102 -3
- package/dist/ssr/skeleton-ssr.css +63 -0
- package/dist/ssr/tabs-ssr.css +129 -0
- package/dist/ssr/toggle-group-ssr.css +233 -0
- package/dist/ssr/toolbar-ssr.css +81 -2
- package/dist/types/variant.type.d.ts +4 -1
- package/dist/utils/boolean.utils.d.ts +14 -0
- package/dist/utils/boolean.utils.js +20 -0
- package/dist/utils/dropdown-menu.utils.d.ts +1 -1
- package/dist/utils/focusable-elements.utils.d.ts +12 -0
- package/dist/utils/focusable-elements.utils.js +26 -0
- package/dist/utils/implicit-submission.utils.d.ts +18 -0
- package/dist/utils/implicit-submission.utils.js +79 -0
- package/dist/utils/input-modality.utils.d.ts +13 -0
- package/dist/utils/input-modality.utils.js +34 -0
- package/dist/utils/listbox-options.utils.d.ts +11 -0
- package/dist/utils/listbox-options.utils.js +41 -3
- package/dist/utils/theme-generator.utils.d.ts +8 -2
- package/dist/utils/theme-generator.utils.js +30 -9
- package/package.json +26 -7
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
- package/dist/cdn/components/chunks/chunk-4PI6RDUS.js +0 -1
- package/dist/cdn/components/chunks/chunk-6VK6SHCG.js +0 -1
- package/dist/cdn/components/chunks/chunk-A3X4KD2X.js +0 -1
- package/dist/cdn/components/chunks/chunk-BQFJR2UP.js +0 -110
- package/dist/cdn/components/chunks/chunk-G5SBDQQ3.js +0 -1
- package/dist/cdn/components/chunks/chunk-KSZRQRN4.js +0 -1
- package/dist/cdn/components/chunks/chunk-PE4DAXHQ.js +0 -3
- package/dist/cdn/components/chunks/chunk-RS7TWEMQ.js +0 -1
- package/dist/cdn/components/chunks/chunk-UDOZRIJZ.js +0 -1
- package/dist/cdn/components/chunks/chunk-VOTRXBDS.js +0 -38
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
|
+
import { EunomiaBreakpoint } from "../../../breakpoints.js";
|
|
2
3
|
/**
|
|
3
4
|
* Tag name of the sidebar component.
|
|
4
5
|
*/
|
|
@@ -16,6 +17,11 @@ export type EunomiaSidebarCollapseMode = "mini" | "hidden";
|
|
|
16
17
|
* Where the built-in collapse/expand toggle button renders.
|
|
17
18
|
*/
|
|
18
19
|
export type EunomiaSidebarTogglePlacement = "edge" | "inline";
|
|
20
|
+
/**
|
|
21
|
+
* The sidebar's color scheme.
|
|
22
|
+
*/
|
|
23
|
+
export type EunomiaSidebarTheme = "light" | "dark";
|
|
24
|
+
declare const EunomiaSidebar_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/localizable.mixin.js").LocalizableMixinInterface> & typeof LitElement;
|
|
19
25
|
/**
|
|
20
26
|
* A persistent, non-modal navigation panel that lays out beside page
|
|
21
27
|
* content, sticky by default, so dropping it into a full-height flex
|
|
@@ -43,34 +49,40 @@ export type EunomiaSidebarTogglePlacement = "edge" | "inline";
|
|
|
43
49
|
* @slot footer - Optional footer content, such as a user menu, fixed below the scrollable body. Omitted entirely when nothing is slotted
|
|
44
50
|
* @prop {'start' | 'end'} [position='start'] - Which edge of the layout the sidebar is pinned against
|
|
45
51
|
* @prop {string} heading - An optional heading, rendered as the header slot's fallback content, and used as the accessible name when set
|
|
46
|
-
* @prop {
|
|
52
|
+
* @prop {'mobile' | 'tablet' | 'laptop' | 'desktop'} hideBelow - Hides the sidebar below this breakpoint, for a layout where another navigation takes over on small screens, such as the toolbar's mobile panel. Also applies before the component loads when sidebar-ssr.css is linked
|
|
53
|
+
* @attr {'mobile' | 'tablet' | 'laptop' | 'desktop'} hide-below - Hides the sidebar below this breakpoint
|
|
54
|
+
* @prop {'light' | 'dark'} [theme='light'] - The sidebar's color scheme. Dark uses the inverse surface, for a sidebar on a dark background
|
|
55
|
+
* @prop {boolean} [collapsible=true] - Whether the built-in toggle button renders at all. The collapse, expand, and toggle methods still work regardless, for driving collapse from elsewhere, such as a page header menu button. Set to false, or the attribute to "false", to rely on resizable alone
|
|
47
56
|
* @prop {'edge' | 'inline'} [togglePlacement='edge'] - Where the built-in toggle button renders: edge floats on the border, and inline sits inside the panel, pinned below the body and footer
|
|
48
57
|
* @attr {'edge' | 'inline'} [toggle-placement='edge'] - Where the built-in toggle button renders: edge floats on the border, and inline sits inside the panel, pinned below the body and footer
|
|
49
58
|
* @prop {'mini' | 'hidden'} [collapseMode='mini'] - The shape the collapsed state takes
|
|
50
59
|
* @attr {'mini' | 'hidden'} [collapse-mode='mini'] - The shape the collapsed state takes
|
|
51
60
|
* @prop {boolean} [collapsed=false] - Whether the sidebar is currently collapsed
|
|
52
|
-
* @prop {string}
|
|
53
|
-
* @attr {string} [
|
|
54
|
-
* @prop {string}
|
|
55
|
-
* @attr {string} [
|
|
56
|
-
* @prop {boolean} [resizable=true] - Whether the border can be dragged, or, once focused, adjusted with arrow keys, to resize the panel
|
|
57
|
-
* @prop {string}
|
|
58
|
-
* @attr {string} [
|
|
59
|
-
* @fires {ChangeEvent} eunchange - Fired whenever collapsed changes, including as a result of dragging or keyboard-resizing
|
|
61
|
+
* @prop {string} [expandLabel] - The accessible label of the toggle button while collapsed. Defaults to the localized string for the current locale (English: "Expand sidebar")
|
|
62
|
+
* @attr {string} [expand-label] - The accessible label of the toggle button while collapsed. Defaults to the localized string for the current locale (English: "Expand sidebar")
|
|
63
|
+
* @prop {string} [collapseLabel] - The accessible label of the toggle button while expanded. Defaults to the localized string for the current locale (English: "Collapse sidebar")
|
|
64
|
+
* @attr {string} [collapse-label] - The accessible label of the toggle button while expanded. Defaults to the localized string for the current locale (English: "Collapse sidebar")
|
|
65
|
+
* @prop {boolean} [resizable=true] - Whether the border can be dragged, or, once focused, adjusted with arrow keys, to resize the panel. Set to false, or the attribute to "false", to turn it off
|
|
66
|
+
* @prop {string} [resizeLabel] - The accessible label of the drag-to-resize border. Defaults to the localized string for the current locale (English: "Resize sidebar")
|
|
67
|
+
* @attr {string} [resize-label] - The accessible label of the drag-to-resize border. Defaults to the localized string for the current locale (English: "Resize sidebar")
|
|
68
|
+
* @fires {ChangeEvent} eunchange - Fired whenever collapsed changes, including as a result of dragging or keyboard-resizing below the mini width. A collapse reached this way takes the shape set by collapseMode, and expanding again returns to --sidebar-width
|
|
60
69
|
* @cssprop [--sidebar-width] - Sets the expanded width of the sidebar, also the floor of the drag-resize range and, once resized, holds the user's chosen width
|
|
61
70
|
* @cssprop [--sidebar-mini-width] - Sets the width of the mini collapsed state, also the floor of the drag-resize range
|
|
62
71
|
* @cssprop [--sidebar-max-width] - Sets the ceiling of the drag-resize range
|
|
63
|
-
* @cssprop [--sidebar-background] - Sets the background color of the sidebar
|
|
72
|
+
* @cssprop [--sidebar-background] - Sets the background color of the sidebar. Use an opaque color, or transparent to show the background behind the sidebar
|
|
64
73
|
* @cssprop [--sidebar-color] - Sets the text color of the sidebar
|
|
65
74
|
* @cssprop [--sidebar-border-color] - Sets the color of the sidebar's side border
|
|
66
75
|
* @cssprop [--sidebar-padding] - Sets the padding of the header, body, and footer
|
|
67
76
|
* @cssprop [--sidebar-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --sidebar-padding is set
|
|
68
77
|
* @cssprop [--sidebar-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --sidebar-padding is set
|
|
69
78
|
* @cssprop [--sidebar-gap] - Sets the gap inside the header and footer rows
|
|
79
|
+
* @cssprop [--sidebar-toggle-color] - Sets the color of the toggle button
|
|
80
|
+
* @cssprop [--sidebar-toggle-background-hover] - Sets the background color of the toggle button on hover
|
|
81
|
+
* @cssprop [--sidebar-resize-handle-delay] - Sets how long the pointer must rest on the border before the resize handle shows. Set to 0 to show it right away
|
|
70
82
|
* @cssprop [--sidebar-transition-duration] - Sets the duration of the collapse and resize transition
|
|
71
83
|
* @element eun-sidebar
|
|
72
84
|
*/
|
|
73
|
-
export declare class EunomiaSidebar extends
|
|
85
|
+
export declare class EunomiaSidebar extends EunomiaSidebar_base {
|
|
74
86
|
/**
|
|
75
87
|
* Styles to import to the component.
|
|
76
88
|
*
|
|
@@ -78,7 +90,7 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
78
90
|
* @internal
|
|
79
91
|
* @readonly
|
|
80
92
|
*/
|
|
81
|
-
static readonly styles: import("lit").CSSResult;
|
|
93
|
+
static readonly styles: import("lit").CSSResult[];
|
|
82
94
|
/**
|
|
83
95
|
* Which edge of the layout the sidebar is pinned against — decides which
|
|
84
96
|
* edge the border, toggle button, and resize handle render on : always
|
|
@@ -86,6 +98,20 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
86
98
|
* @default start
|
|
87
99
|
*/
|
|
88
100
|
position: EunomiaSidebarPosition;
|
|
101
|
+
/**
|
|
102
|
+
* Hides the sidebar below this breakpoint (`display: none`), for a layout
|
|
103
|
+
* where another navigation takes over on small screens, such as
|
|
104
|
+
* `eun-toolbar`'s mobile panel, which switches at `tablet` by default.
|
|
105
|
+
* A plain `@media` switch in the stylesheet, mirrored in
|
|
106
|
+
* `sidebar-ssr.css`, so it applies from first paint.
|
|
107
|
+
*/
|
|
108
|
+
hideBelow?: EunomiaBreakpoint;
|
|
109
|
+
/**
|
|
110
|
+
* The sidebar's color scheme : `dark` uses the inverse surface, the same
|
|
111
|
+
* one `eun-toolbar`'s own `theme="dark"` does.
|
|
112
|
+
* @default light
|
|
113
|
+
*/
|
|
114
|
+
theme: EunomiaSidebarTheme;
|
|
89
115
|
/**
|
|
90
116
|
* Optional heading text, rendered as the `header` slot's fallback
|
|
91
117
|
* content, and used as the accessible name (there's no dialog to
|
|
@@ -97,7 +123,9 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
97
123
|
* for where) ; `collapse()`/`expand()`/`toggleCollapse()` work regardless,
|
|
98
124
|
* for driving collapse from elsewhere (e.g. a page header menu button) —
|
|
99
125
|
* set this to `false` to drop the built-in button entirely and rely on
|
|
100
|
-
* `resizable` (dragging the border past the mini floor) alone.
|
|
126
|
+
* `resizable` (dragging the border past the mini floor) alone. The
|
|
127
|
+
* attribute value `"false"` turns it off too (see {@link
|
|
128
|
+
* defaultTrueConverter}).
|
|
101
129
|
* @default true
|
|
102
130
|
*/
|
|
103
131
|
collapsible: boolean;
|
|
@@ -124,27 +152,28 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
124
152
|
collapsed: boolean;
|
|
125
153
|
/**
|
|
126
154
|
* Accessible label of the toggle button while collapsed (offering to expand it).
|
|
127
|
-
*
|
|
155
|
+
* Falls back to the localized string for the current locale when unset.
|
|
128
156
|
*/
|
|
129
|
-
|
|
157
|
+
expandLabel?: string;
|
|
130
158
|
/**
|
|
131
159
|
* Accessible label of the toggle button while expanded (offering to collapse it).
|
|
132
|
-
*
|
|
160
|
+
* Falls back to the localized string for the current locale when unset.
|
|
133
161
|
*/
|
|
134
|
-
|
|
162
|
+
collapseLabel?: string;
|
|
135
163
|
/**
|
|
136
164
|
* Whether the border can be dragged (or, once focused, adjusted with the
|
|
137
165
|
* arrow keys) to resize the panel between `--sidebar-mini-width` and
|
|
138
166
|
* `--sidebar-max-width`. Independent of `collapsible`, which only
|
|
139
|
-
* controls the discrete toggle button.
|
|
167
|
+
* controls the discrete toggle button. The attribute value `"false"`
|
|
168
|
+
* turns it off too (see {@link defaultTrueConverter}).
|
|
140
169
|
* @default true
|
|
141
170
|
*/
|
|
142
171
|
resizable: boolean;
|
|
143
172
|
/**
|
|
144
173
|
* Accessible label of the drag-to-resize border.
|
|
145
|
-
*
|
|
174
|
+
* Falls back to the localized string for the current locale when unset.
|
|
146
175
|
*/
|
|
147
|
-
|
|
176
|
+
resizeLabel?: string;
|
|
148
177
|
/**
|
|
149
178
|
* The drag-to-resize border.
|
|
150
179
|
* @internal
|
|
@@ -170,8 +199,7 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
170
199
|
private dragStartWidth;
|
|
171
200
|
/**
|
|
172
201
|
* The last *unclamped* width computed during a drag, used on release to
|
|
173
|
-
* decide whether the drag went
|
|
174
|
-
* into a full `collapse-mode="hidden"` collapse.
|
|
202
|
+
* decide whether the drag went below the mini floor and collapses.
|
|
175
203
|
* @internal
|
|
176
204
|
*/
|
|
177
205
|
private lastRawWidth;
|
|
@@ -184,13 +212,6 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
184
212
|
* @internal
|
|
185
213
|
*/
|
|
186
214
|
private dragStartCollapsed;
|
|
187
|
-
/**
|
|
188
|
-
* Whether `draggedHidden` was set right before the current drag started
|
|
189
|
-
* — compared against the final state at release for the same reason
|
|
190
|
-
* `dragStartCollapsed` is.
|
|
191
|
-
* @internal
|
|
192
|
-
*/
|
|
193
|
-
private dragStartHidden;
|
|
194
215
|
/**
|
|
195
216
|
* Whether `pointermove` actually fired at least once since the current
|
|
196
217
|
* `pointerdown` — a plain click on the resize handle (no movement)
|
|
@@ -205,18 +226,18 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
205
226
|
*/
|
|
206
227
|
private dragging;
|
|
207
228
|
/**
|
|
208
|
-
* Whether
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
*
|
|
229
|
+
* Whether the resize handle shows its highlight and resize cursor : set
|
|
230
|
+
* once the pointer has rested on the border for
|
|
231
|
+
* `--sidebar-resize-handle-delay`, or right away on `pointerdown`, so
|
|
232
|
+
* merely crossing the border on the way to the content doesn't flash it.
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
private resizeHandleArmed;
|
|
236
|
+
/**
|
|
237
|
+
* The pending timer arming {@link resizeHandleArmed}, if any.
|
|
217
238
|
* @internal
|
|
218
239
|
*/
|
|
219
|
-
private
|
|
240
|
+
private resizeHandleArmTimer?;
|
|
220
241
|
/**
|
|
221
242
|
* The width, in px, applied by the current (or most recent) drag/keyboard
|
|
222
243
|
* resize — `undefined` until the panel has been manually resized at
|
|
@@ -256,6 +277,11 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
256
277
|
* @param changed the changed properties.
|
|
257
278
|
*/
|
|
258
279
|
protected updated(changed: PropertyValues): void;
|
|
280
|
+
/**
|
|
281
|
+
* Lifecycle hook called when the element is disconnected from the DOM.
|
|
282
|
+
* Clears a pending resize handle arming timer.
|
|
283
|
+
*/
|
|
284
|
+
disconnectedCallback(): void;
|
|
259
285
|
/**
|
|
260
286
|
* Collapses the sidebar.
|
|
261
287
|
*/
|
|
@@ -276,6 +302,13 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
276
302
|
* @private
|
|
277
303
|
*/
|
|
278
304
|
private setCollapsed;
|
|
305
|
+
/**
|
|
306
|
+
* Drops the width a drag or keyboard resize applied, so the next expand
|
|
307
|
+
* returns to `--sidebar-width` instead of the narrow width the resize
|
|
308
|
+
* collapsed from.
|
|
309
|
+
* @private
|
|
310
|
+
*/
|
|
311
|
+
private forgetResizedWidth;
|
|
279
312
|
/**
|
|
280
313
|
* Reads a length custom property off the host's computed style, parsed
|
|
281
314
|
* as a px number.
|
|
@@ -318,16 +351,16 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
318
351
|
* `--sidebar-width` override, so a drag tracks the pointer immediately
|
|
319
352
|
* rather than waiting on Lit's render cycle) and reactively (via
|
|
320
353
|
* `liveWidthPx`, so `#resize-handle`'s `aria-valuenow` stays in sync).
|
|
321
|
-
* Also clears `collapsed
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
354
|
+
* Also clears `collapsed` without dispatching : while it reflects, its
|
|
355
|
+
* CSS rule sets `--_width` directly and would otherwise ignore every live
|
|
356
|
+
* update below — `settleWidth`/`settleCollapsedState` restore the correct
|
|
357
|
+
* final truth (and their one authoritative `eunchange`) once the
|
|
358
|
+
* interaction ends.
|
|
326
359
|
*
|
|
327
360
|
* @param px the requested width, in px.
|
|
328
|
-
* @param floor the minimum to clamp to — the mini width by default
|
|
329
|
-
*
|
|
330
|
-
*
|
|
361
|
+
* @param floor the minimum to clamp to — the mini width by default, or
|
|
362
|
+
* `0` during a `collapse-mode="hidden"` drag so it can visually approach
|
|
363
|
+
* a full hide.
|
|
331
364
|
* @private
|
|
332
365
|
*/
|
|
333
366
|
private applyWidth;
|
|
@@ -335,9 +368,10 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
335
368
|
* Reconciles `collapsed` once a *keyboard* resize ends, comparing the
|
|
336
369
|
* interaction's start and end states so exactly one `eunchange` fires
|
|
337
370
|
* for a genuine transition — and none at all for a resize that never
|
|
338
|
-
* crossed the mini floor.
|
|
339
|
-
*
|
|
340
|
-
* `handleResizeKeydown`).
|
|
371
|
+
* crossed the mini floor. Only `collapse-mode="mini"` collapses here :
|
|
372
|
+
* under `hidden`, collapsing would hide the panel entirely, which stays
|
|
373
|
+
* the toggle button's job (see `handleResizeKeydown`). A collapse forgets
|
|
374
|
+
* the resized width, so the next expand returns to `--sidebar-width`.
|
|
341
375
|
*
|
|
342
376
|
* @param widthPx the final width the interaction landed on.
|
|
343
377
|
* @param wasCollapsed whether the sidebar was collapsed when the
|
|
@@ -346,21 +380,35 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
346
380
|
*/
|
|
347
381
|
private settleCollapsedState;
|
|
348
382
|
/**
|
|
349
|
-
* Reconciles
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
* either flag actually changed from where the interaction started.
|
|
383
|
+
* Reconciles `collapsed` once a *drag* resize ends : a drag that lands
|
|
384
|
+
* below the mini floor collapses into whichever shape `collapse-mode`
|
|
385
|
+
* sets (the icon rail for `mini`, a full hide for `hidden`), and forgets
|
|
386
|
+
* the dragged width so the next expand returns to `--sidebar-width`.
|
|
387
|
+
* Anywhere else keeps the dragged width, clamped to the resize range.
|
|
388
|
+
* Fires exactly one `eunchange` iff `collapsed` actually changed from
|
|
389
|
+
* where the interaction started.
|
|
357
390
|
*
|
|
358
391
|
* @param rawWidth the final unclamped width the drag landed on.
|
|
359
392
|
* @param wasCollapsed whether `collapsed` was set when the drag started.
|
|
360
|
-
* @param wasHidden whether `draggedHidden` was set when the drag started.
|
|
361
393
|
* @private
|
|
362
394
|
*/
|
|
363
395
|
private settleWidth;
|
|
396
|
+
/**
|
|
397
|
+
* Arms the resize handle once the pointer has rested on the border for
|
|
398
|
+
* `--sidebar-resize-handle-delay` (300ms by default).
|
|
399
|
+
* @private
|
|
400
|
+
*/
|
|
401
|
+
private readonly handleResizePointerEnter;
|
|
402
|
+
/**
|
|
403
|
+
* Disarms the resize handle as soon as the pointer leaves the border.
|
|
404
|
+
* @private
|
|
405
|
+
*/
|
|
406
|
+
private readonly handleResizePointerLeave;
|
|
407
|
+
/**
|
|
408
|
+
* Clears {@link resizeHandleArmed} and its pending timer, if any.
|
|
409
|
+
* @private
|
|
410
|
+
*/
|
|
411
|
+
private disarmResizeHandle;
|
|
364
412
|
/**
|
|
365
413
|
* Starts a drag-resize : captures the pointer on the handle itself (so
|
|
366
414
|
* subsequent `pointermove`/`pointerup` keep firing there even once the
|
|
@@ -373,10 +421,10 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
373
421
|
/**
|
|
374
422
|
* Tracks an in-progress drag-resize, applying the live width as the
|
|
375
423
|
* pointer moves. Direction is flipped for `position="end"`, where
|
|
376
|
-
* dragging left (toward the panel) grows it.
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
* it actually
|
|
424
|
+
* dragging left (toward the panel) grows it. Under `collapse-mode="mini"`
|
|
425
|
+
* the panel stops at the mini floor, the narrowest it can ever be ; under
|
|
426
|
+
* `hidden` it tracks all the way down to `0`, previewing the full hide —
|
|
427
|
+
* `handleResizePointerUp` decides whether it actually collapses.
|
|
380
428
|
*
|
|
381
429
|
* @param event the pointermove event.
|
|
382
430
|
* @private
|
|
@@ -384,8 +432,7 @@ export declare class EunomiaSidebar extends LitElement {
|
|
|
384
432
|
private readonly handleResizePointerMove;
|
|
385
433
|
/**
|
|
386
434
|
* Ends a drag-resize : a plain click (no movement) is a no-op ; see
|
|
387
|
-
* `settleWidth` for how the final width resolves into `collapsed
|
|
388
|
-
* `draggedHidden`.
|
|
435
|
+
* `settleWidth` for how the final width resolves into `collapsed`.
|
|
389
436
|
*
|
|
390
437
|
* @param event the pointerup/pointercancel event.
|
|
391
438
|
* @private
|
|
@@ -491,3 +538,4 @@ declare global {
|
|
|
491
538
|
[EunomiaSidebarTagName]: EunomiaSidebar;
|
|
492
539
|
}
|
|
493
540
|
}
|
|
541
|
+
export {};
|