@eunomia/elements 1.0.0-beta.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -6
- package/dist/angular/forms.d.ts +80 -0
- package/dist/angular/forms.js +267 -0
- package/dist/cdn/components/chunks/chunk-2XPIGFBD.js +1 -0
- package/dist/cdn/components/chunks/chunk-5IUNSTM3.js +1 -0
- package/dist/cdn/components/chunks/chunk-7HXPLZ7C.js +1 -0
- package/dist/cdn/components/chunks/{chunk-J3SZBXM6.js → chunk-A2NO4RSF.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-Q34EQ5HZ.js → chunk-A623JJXJ.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-Y3HOIL64.js → chunk-AW7PU43S.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-FF3I7C3C.js → chunk-DWTNRFWW.js} +1 -3
- package/dist/cdn/components/chunks/chunk-FPNWPMHA.js +1 -0
- package/dist/cdn/components/chunks/chunk-GMWUHGNI.js +319 -0
- package/dist/cdn/components/chunks/{chunk-FQUWHNQT.js → chunk-GXOEPXDW.js} +1 -1
- package/dist/cdn/components/chunks/chunk-HXESKTK2.js +1 -0
- package/dist/cdn/components/chunks/chunk-JDUWKPHW.js +46 -0
- package/dist/cdn/components/chunks/{chunk-D3JJBHXN.js → chunk-JLKCBPD2.js} +2 -2
- package/dist/cdn/components/chunks/chunk-M6ZJHL4Q.js +1 -0
- package/dist/cdn/components/chunks/{chunk-TN3HGHQO.js → chunk-MDSUMP3O.js} +4 -4
- package/dist/cdn/components/chunks/chunk-MSQWOKBB.js +1 -0
- package/dist/cdn/components/chunks/{chunk-3UUZM7X2.js → chunk-NPXRQHUN.js} +3 -3
- package/dist/cdn/components/chunks/chunk-OB7DEGNX.js +1 -0
- package/dist/cdn/components/chunks/{chunk-JANNHW4Q.js → chunk-PADHCLBG.js} +4 -4
- package/dist/cdn/components/chunks/chunk-QMXE3KLT.js +1 -0
- package/dist/cdn/components/chunks/chunk-QNWKRPOW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-KQUUMZ7U.js → chunk-RZF7QQDX.js} +7 -7
- package/dist/cdn/components/chunks/chunk-SCAP7J35.js +1 -0
- package/dist/cdn/components/chunks/chunk-TISMX7UL.js +1 -0
- package/dist/cdn/components/chunks/chunk-TWLI2ZOT.js +1 -0
- package/dist/cdn/components/chunks/chunk-W4VCWRY7.js +210 -0
- package/dist/cdn/components/chunks/{chunk-SZZRMJ65.js → chunk-WEG3KO6T.js} +3 -3
- package/dist/cdn/components/chunks/chunk-WP6ZYBAC.js +1 -0
- package/dist/cdn/components/chunks/{chunk-HGX6GPHM.js → chunk-XCBQ4CKH.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-3UW2LJ7T.js → chunk-XZ3LFOQP.js} +2 -2
- package/dist/cdn/components/eun-alert.js +1 -1
- package/dist/cdn/components/eun-animate.js +92 -180
- package/dist/cdn/components/eun-breadcrumb.js +4 -4
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +188 -115
- package/dist/cdn/components/eun-card.js +1 -1
- package/dist/cdn/components/eun-carousel.js +36 -28
- package/dist/cdn/components/eun-check-card.js +3 -3
- package/dist/cdn/components/eun-checkbox-list.js +2 -2
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +11 -15
- package/dist/cdn/components/eun-collapse.js +21 -10
- package/dist/cdn/components/eun-color-picker.js +32 -32
- package/dist/cdn/components/eun-counter.js +8 -8
- package/dist/cdn/components/eun-date-picker.js +83 -79
- package/dist/cdn/components/eun-description-list.js +1 -1
- package/dist/cdn/components/eun-divider.js +9 -8
- package/dist/cdn/components/eun-drawer.js +8 -6
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +4 -4
- package/dist/cdn/components/eun-fab.js +1 -1
- package/dist/cdn/components/eun-image-card.js +2 -2
- package/dist/cdn/components/eun-image-carousel.js +55 -29
- package/dist/cdn/components/eun-infinite-list.js +2 -2
- package/dist/cdn/components/eun-input-file.js +3 -3
- package/dist/cdn/components/eun-input-phone.js +6 -6
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +1 -1
- package/dist/cdn/components/eun-link.js +18 -329
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +9 -7
- package/dist/cdn/components/eun-nav-menu.js +363 -0
- package/dist/cdn/components/eun-pagination.js +4 -4
- package/dist/cdn/components/eun-password-strength.js +2 -2
- package/dist/cdn/components/eun-progress-bar.js +1 -1
- package/dist/cdn/components/eun-radio-card.js +4 -4
- package/dist/cdn/components/eun-radio-list.js +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-rating.js +9 -9
- package/dist/cdn/components/eun-scheduler-event-editor.js +113 -77
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +137 -79
- package/dist/cdn/components/eun-search.js +6 -6
- package/dist/cdn/components/eun-select.js +1 -1
- package/dist/cdn/components/eun-sidebar.js +23 -14
- package/dist/cdn/components/eun-slider.js +2 -2
- package/dist/cdn/components/eun-sliding-card.js +1 -1
- package/dist/cdn/components/eun-step.js +2 -2
- package/dist/cdn/components/eun-stepper.js +11 -12
- package/dist/cdn/components/eun-switch.js +2 -2
- package/dist/cdn/components/eun-tab-group.js +1 -1
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table.js +13 -10
- package/dist/cdn/components/eun-tag.js +1 -1
- package/dist/cdn/components/eun-textarea.js +4 -4
- package/dist/cdn/components/eun-time-picker.js +28 -25
- package/dist/cdn/components/eun-toast.js +8 -8
- package/dist/cdn/components/eun-toggle-group.js +8 -2
- package/dist/cdn/components/eun-toggle-item.js +8 -2
- package/dist/cdn/components/eun-toggle.js +4 -1
- package/dist/cdn/components/eun-toolbar.js +114 -36
- package/dist/cdn/components/eun-tooltip.js +1 -1
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +2 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/tools/mixins/layout/eunomia-grid.mixin.scss +116 -8
- package/dist/components/action/button/button.styles.js +2 -2
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +4 -0
- package/dist/components/action/dropdown-button/dropdown-button.js +1 -0
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +5 -4
- package/dist/components/action/dropdown-button/dropdown-item.d.ts +1 -0
- package/dist/components/action/dropdown-button/dropdown-item.js +1 -0
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +4 -4
- package/dist/components/action/link/link.d.ts +2 -1
- package/dist/components/action/link/link.js +2 -1
- package/dist/components/action/link/link.styles.d.ts +40 -1
- package/dist/components/action/link/link.styles.js +83 -60
- package/dist/components/action/shared-styles/button-palette.styles.js +1 -1
- package/dist/components/action/toggle/toggle-group.d.ts +1 -0
- package/dist/components/action/toggle/toggle-group.js +1 -0
- package/dist/components/action/toggle/toggle-group.styles.d.ts +1 -0
- package/dist/components/action/toggle/toggle-group.styles.js +9 -2
- package/dist/components/action/toggle/toggle-item.styles.js +8 -2
- package/dist/components/action/toggle/toggle.d.ts +1 -0
- package/dist/components/action/toggle/toggle.js +1 -0
- package/dist/components/action/toggle/toggle.styles.d.ts +1 -0
- package/dist/components/action/toggle/toggle.styles.js +5 -1
- package/dist/components/alert/drawer/drawer.d.ts +14 -13
- package/dist/components/alert/drawer/drawer.js +20 -28
- package/dist/components/alert/modal/modal.d.ts +14 -13
- package/dist/components/alert/modal/modal.js +20 -28
- package/dist/components/alert/modal/modal.styles.js +1 -1
- package/dist/components/alert/toast/toast.d.ts +5 -5
- package/dist/components/alert/toast/toast.js +9 -10
- package/dist/components/alert/toast/toast.styles.js +3 -3
- package/dist/components/content/card/image-card.styles.js +1 -1
- package/dist/components/content/chip/chip.d.ts +7 -9
- package/dist/components/content/chip/chip.js +11 -14
- package/dist/components/content/chip/chip.styles.js +1 -5
- package/dist/components/content/collapse/collapse.d.ts +5 -0
- package/dist/components/content/collapse/collapse.js +7 -0
- package/dist/components/content/collapse/collapse.styles.d.ts +3 -0
- package/dist/components/content/collapse/collapse.styles.js +13 -1
- package/dist/components/content/description-list/description-list.styles.js +1 -1
- package/dist/components/content/image-carousel/image-carousel.d.ts +60 -13
- package/dist/components/content/image-carousel/image-carousel.js +100 -22
- package/dist/components/content/image-carousel/image-carousel.styles.js +32 -6
- package/dist/components/content/password-strength/password-strength.styles.js +1 -1
- package/dist/components/content/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/content/shared-styles/card-link.styles.js +1 -1
- package/dist/components/content/shared-styles/tone-surface.styles.js +1 -3
- package/dist/components/form/checkbox/check-card.styles.js +2 -2
- package/dist/components/form/checkbox/checkbox-list.d.ts +3 -1
- package/dist/components/form/checkbox/checkbox-list.js +3 -1
- package/dist/components/form/checkbox/checkbox.styles.js +1 -1
- package/dist/components/form/color-picker/color-picker.d.ts +28 -3
- package/dist/components/form/color-picker/color-picker.js +53 -7
- package/dist/components/form/counter/counter.js +1 -1
- package/dist/components/form/counter/counter.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-month-grid.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +50 -13
- package/dist/components/form/date-picker/date-picker.js +178 -43
- package/dist/components/form/input/input.js +1 -4
- package/dist/components/form/input-file/input-file.styles.js +2 -2
- package/dist/components/form/input-phone/input-phone.js +4 -3
- package/dist/components/form/label/label.styles.js +1 -1
- package/dist/components/form/radio/radio-card.styles.js +2 -2
- package/dist/components/form/radio/radio.styles.js +1 -1
- package/dist/components/form/rating/rating.js +3 -5
- package/dist/components/form/rating/rating.styles.js +2 -2
- package/dist/components/form/search/search.d.ts +1 -7
- package/dist/components/form/search/search.js +2 -12
- package/dist/components/form/shared-styles/field.styles.js +2 -2
- package/dist/components/form/slider/slider.styles.js +1 -1
- package/dist/components/form/switch/switch.styles.js +1 -1
- package/dist/components/form/textarea/textarea.js +1 -5
- package/dist/components/form/textarea/textarea.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker-columns.d.ts +4 -1
- package/dist/components/form/time-picker/time-picker-columns.js +64 -15
- package/dist/components/form/time-picker/time-picker-columns.styles.js +5 -1
- package/dist/components/form/time-picker/time-picker-list.d.ts +4 -1
- package/dist/components/form/time-picker/time-picker-list.js +15 -8
- package/dist/components/form/time-picker/time-picker.d.ts +11 -2
- package/dist/components/form/time-picker/time-picker.js +22 -8
- package/dist/components/layout/animate/animate.d.ts +35 -17
- package/dist/components/layout/animate/animate.js +27 -14
- package/dist/components/layout/animate/animate.styles.d.ts +2 -1
- package/dist/components/layout/animate/animate.styles.js +107 -179
- package/dist/components/layout/divider/divider.d.ts +1 -0
- package/dist/components/layout/divider/divider.js +2 -1
- package/dist/components/layout/divider/divider.styles.js +7 -6
- package/dist/components/layout/infinite-list/infinite-list.styles.js +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
- package/dist/components/navigation/carousel/carousel.d.ts +23 -14
- package/dist/components/navigation/carousel/carousel.js +39 -27
- package/dist/components/navigation/carousel/carousel.styles.js +16 -8
- package/dist/components/navigation/nav-menu/nav-menu.d.ts +201 -0
- package/dist/components/navigation/nav-menu/nav-menu.js +673 -0
- package/dist/components/navigation/nav-menu/nav-menu.styles.d.ts +1 -0
- package/dist/components/navigation/nav-menu/nav-menu.styles.js +352 -0
- package/dist/components/navigation/pagination/pagination.d.ts +3 -0
- package/dist/components/navigation/pagination/pagination.styles.js +2 -2
- package/dist/components/navigation/sidebar/sidebar.d.ts +8 -10
- package/dist/components/navigation/sidebar/sidebar.js +12 -15
- package/dist/components/navigation/sidebar/sidebar.styles.js +13 -4
- package/dist/components/navigation/stepper/step.styles.js +2 -2
- package/dist/components/navigation/stepper/stepper.d.ts +24 -13
- package/dist/components/navigation/stepper/stepper.js +36 -23
- package/dist/components/navigation/stepper/stepper.styles.js +2 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.js +1 -1
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +121 -20
- package/dist/components/navigation/toolbar/toolbar.js +176 -45
- package/dist/components/navigation/toolbar/toolbar.styles.js +113 -28
- package/dist/events/editor-state-change.event.d.ts +28 -0
- package/dist/events/editor-state-change.event.js +22 -0
- package/dist/events/event-cancel.event.d.ts +20 -0
- package/dist/events/event-cancel.event.js +17 -0
- package/dist/events/period-change.event.d.ts +14 -6
- package/dist/events/period-change.event.js +9 -6
- package/dist/features/scheduler/calendar/calendar.d.ts +52 -20
- package/dist/features/scheduler/calendar/calendar.js +84 -36
- package/dist/features/scheduler/calendar/calendar.styles.js +5 -2
- package/dist/features/scheduler/scheduler/scheduler.d.ts +69 -4
- package/dist/features/scheduler/scheduler/scheduler.js +172 -47
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -0
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +18 -20
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +29 -38
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +102 -18
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +249 -112
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +11 -1
- package/dist/features/scheduler/shared/scheduler-event-popover.d.ts +9 -1
- package/dist/features/scheduler/shared/scheduler-event-popover.js +77 -42
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +14 -3
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +3 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +53 -46
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +13 -7
- package/dist/features/scheduler/shared/scheduler-month-view.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +13 -7
- package/dist/features/scheduler/shared/scheduler-year-view.d.ts +6 -5
- package/dist/features/scheduler/shared/scheduler-year-view.js +11 -7
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +57 -3
- package/dist/features/scheduler/shared/scheduler.types.d.ts +5 -9
- package/dist/features/scheduler/shared/scheduler.utils.d.ts +61 -0
- package/dist/features/scheduler/shared/scheduler.utils.js +78 -4
- package/dist/features/table/table/table-native.styles.js +8 -4
- package/dist/features/table/table/table.d.ts +2 -1
- package/dist/features/table/table/table.js +2 -1
- package/dist/features/table/table/table.styles.js +6 -4
- package/dist/i18n/en.d.ts +17 -0
- package/dist/i18n/en.js +17 -0
- package/dist/i18n/fr.js +17 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -0
- package/dist/jsx.d.ts +48 -6
- package/dist/mixins/anchor-position.mixin.d.ts +17 -0
- package/dist/mixins/anchor-position.mixin.js +45 -7
- package/dist/mixins/button.mixin.js +2 -1
- package/dist/mixins/check.mixin.js +14 -5
- package/dist/mixins/dialog-surface.mixin.d.ts +1 -1
- package/dist/mixins/dialog-surface.mixin.js +5 -5
- package/dist/mixins/form.mixin.js +33 -13
- package/dist/mixins/localizable.mixin.d.ts +1 -0
- package/dist/mixins/localizable.mixin.js +9 -2
- package/dist/mixins/radio.mixin.js +14 -5
- package/dist/mixins/validators.mixin.js +4 -3
- package/dist/react.d.ts +59 -0
- package/dist/react.js +42 -0
- package/dist/ssr/animate-ssr.css +35 -0
- package/dist/ssr/breadcrumb-ssr.css +3 -3
- package/dist/ssr/button-ssr.css +8 -2
- package/dist/ssr/card-ssr.css +1 -1
- package/dist/ssr/carousel-ssr.css +15 -4
- package/dist/ssr/chip-ssr.css +3 -3
- package/dist/ssr/collapse-ssr.css +2 -2
- package/dist/ssr/description-list-ssr.css +1 -1
- package/dist/ssr/divider-ssr.css +23 -0
- package/dist/ssr/field-ssr.css +245 -42
- package/dist/ssr/image-carousel-ssr.css +2 -4
- package/dist/ssr/links-ssr.css +17 -3
- package/dist/ssr/nav-menu-ssr.css +82 -0
- package/dist/ssr/overlay-ssr.css +4 -0
- package/dist/ssr/scheduler-ssr.css +182 -0
- package/dist/ssr/stepper-ssr.css +136 -0
- package/dist/ssr/table-ssr.css +7 -4
- package/dist/ssr/tag-ssr.css +1 -1
- package/dist/ssr/toolbar-ssr.css +7 -5
- package/dist/utils/css-length.utils.d.ts +14 -0
- package/dist/utils/css-length.utils.js +32 -0
- package/dist/utils/form-validation.utils.d.ts +36 -0
- package/dist/utils/form-validation.utils.js +113 -0
- package/dist/utils/implicit-submission.utils.js +2 -14
- package/dist/utils/interactive-content.utils.d.ts +10 -0
- package/dist/utils/interactive-content.utils.js +43 -0
- package/dist/utils/popover.utils.js +3 -2
- package/dist/utils/scroll-lock.utils.d.ts +9 -1
- package/dist/utils/scroll-lock.utils.js +21 -2
- package/dist/utils/theme-generator.utils.d.ts +1 -0
- package/dist/utils/theme-generator.utils.js +23 -10
- package/dist/utils/validity.utils.d.ts +18 -4
- package/dist/utils/validity.utils.js +74 -4
- package/package.json +34 -3
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +2 -2
- package/styles/tools/mixins/layout/eunomia-grid.mixin.scss +116 -8
- package/dist/cdn/components/chunks/chunk-4DRU3IYJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-647ISUF4.js +0 -1
- package/dist/cdn/components/chunks/chunk-6TIEBY34.js +0 -1
- package/dist/cdn/components/chunks/chunk-E6UOI36Q.js +0 -1
- package/dist/cdn/components/chunks/chunk-GNAUNTS5.js +0 -1
- package/dist/cdn/components/chunks/chunk-IJJ67C66.js +0 -1
- package/dist/cdn/components/chunks/chunk-J7ETIRSK.js +0 -1
- package/dist/cdn/components/chunks/chunk-JGV7LHEI.js +0 -1
- package/dist/cdn/components/chunks/chunk-L74LXUGL.js +0 -1
- package/dist/cdn/components/chunks/chunk-MY6ORZJR.js +0 -46
- package/dist/cdn/components/chunks/chunk-QWTFP56P.js +0 -1
- package/dist/cdn/components/chunks/chunk-SFX2LQ4K.js +0 -205
- package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +0 -1
- package/dist/utils/boolean.utils.d.ts +0 -14
- package/dist/utils/boolean.utils.js +0 -20
|
@@ -40,7 +40,7 @@ declare const EunomiaChip_base: import("../../../utils/constructor.type.js").Con
|
|
|
40
40
|
* corner treatment, a circle for a person's photo or a square for a
|
|
41
41
|
* generic image thumbnail, not its placement.
|
|
42
42
|
*
|
|
43
|
-
*
|
|
43
|
+
* removable adds a delete button. A
|
|
44
44
|
* real button fires the close event when activated, reusing the same
|
|
45
45
|
* event an alert's close button fires. Like an alert, a chip has no
|
|
46
46
|
* visibility state of its own, so removing the element from the DOM in
|
|
@@ -67,8 +67,8 @@ declare const EunomiaChip_base: import("../../../utils/constructor.type.js").Con
|
|
|
67
67
|
* @attr {string} [avatar-shape='circle'] - The shape of the leading avatar, initials, or image
|
|
68
68
|
* @prop {string} avatarInitials - One or two characters shown in a colored badge in place of an image. Ignored once an avatar image is set, and takes priority over icon
|
|
69
69
|
* @attr {string} [avatar-initials] - One or two characters shown in a colored badge in place of an image
|
|
70
|
-
* @prop {boolean} [rounded=
|
|
71
|
-
* @prop {boolean} [removable=
|
|
70
|
+
* @prop {boolean} [rounded=false] - Whether the chip is fully rounded, as a pill
|
|
71
|
+
* @prop {boolean} [removable=false] - Shows the delete button. Clicking it fires the close event without changing the chip's own rendering
|
|
72
72
|
* @prop {boolean} [disabled=false] - Disables the delete button, preventing removal
|
|
73
73
|
* @prop {string} [removeLabel] - A prefix combined with the chip's own slotted text to build the delete button's accessible name, such as "Remove Alice Doe", so multiple chips on the same page stay distinguishable to assistive technology. Defaults to the localized string for the current locale (English: "Remove")
|
|
74
74
|
* @attr {string} [remove-label] - A prefix combined with the chip's own slotted text to build the delete button's accessible name. Defaults to the localized string for the current locale (English: "Remove")
|
|
@@ -156,17 +156,15 @@ export declare class EunomiaChip extends EunomiaChip_base {
|
|
|
156
156
|
avatarInitials?: string;
|
|
157
157
|
/**
|
|
158
158
|
* Indicates whether the chip should be fully rounded (a pill) or not.
|
|
159
|
-
* Reflected
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
* write the attribute out explicitly just to keep the default.
|
|
163
|
-
* @default true
|
|
159
|
+
* Reflected so the CSS attribute selector that picks the pill's border
|
|
160
|
+
* radius also matches when set from JS.
|
|
161
|
+
* @default false
|
|
164
162
|
*/
|
|
165
163
|
rounded: boolean;
|
|
166
164
|
/**
|
|
167
165
|
* Shows the delete button ; clicking it fires `eunclose` without changing
|
|
168
166
|
* the chip's own rendering.
|
|
169
|
-
* @default
|
|
167
|
+
* @default false
|
|
170
168
|
*/
|
|
171
169
|
removable: boolean;
|
|
172
170
|
/**
|
|
@@ -10,7 +10,6 @@ import { CloseEvent } from "../../../events/close.event.js";
|
|
|
10
10
|
import { resolveIcon } from "../../../utils/severity-icon.utils.js";
|
|
11
11
|
import { LocalizableMixin } from "../../../mixins/localizable.mixin.js";
|
|
12
12
|
import { chipStyles } from "./chip.styles.js";
|
|
13
|
-
import { defaultTrueConverter } from "../../../utils/boolean.utils.js";
|
|
14
13
|
/**
|
|
15
14
|
* Tag name of the chip component.
|
|
16
15
|
*/
|
|
@@ -45,7 +44,7 @@ const DELETE_ICON_SIZES = {
|
|
|
45
44
|
* corner treatment, a circle for a person's photo or a square for a
|
|
46
45
|
* generic image thumbnail, not its placement.
|
|
47
46
|
*
|
|
48
|
-
*
|
|
47
|
+
* removable adds a delete button. A
|
|
49
48
|
* real button fires the close event when activated, reusing the same
|
|
50
49
|
* event an alert's close button fires. Like an alert, a chip has no
|
|
51
50
|
* visibility state of its own, so removing the element from the DOM in
|
|
@@ -72,8 +71,8 @@ const DELETE_ICON_SIZES = {
|
|
|
72
71
|
* @attr {string} [avatar-shape='circle'] - The shape of the leading avatar, initials, or image
|
|
73
72
|
* @prop {string} avatarInitials - One or two characters shown in a colored badge in place of an image. Ignored once an avatar image is set, and takes priority over icon
|
|
74
73
|
* @attr {string} [avatar-initials] - One or two characters shown in a colored badge in place of an image
|
|
75
|
-
* @prop {boolean} [rounded=
|
|
76
|
-
* @prop {boolean} [removable=
|
|
74
|
+
* @prop {boolean} [rounded=false] - Whether the chip is fully rounded, as a pill
|
|
75
|
+
* @prop {boolean} [removable=false] - Shows the delete button. Clicking it fires the close event without changing the chip's own rendering
|
|
77
76
|
* @prop {boolean} [disabled=false] - Disables the delete button, preventing removal
|
|
78
77
|
* @prop {string} [removeLabel] - A prefix combined with the chip's own slotted text to build the delete button's accessible name, such as "Remove Alice Doe", so multiple chips on the same page stay distinguishable to assistive technology. Defaults to the localized string for the current locale (English: "Remove")
|
|
79
78
|
* @attr {string} [remove-label] - A prefix combined with the chip's own slotted text to build the delete button's accessible name. Defaults to the localized string for the current locale (English: "Remove")
|
|
@@ -130,19 +129,17 @@ let EunomiaChip = class EunomiaChip extends LocalizableMixin(LitElement) {
|
|
|
130
129
|
this.avatarShape = "circle";
|
|
131
130
|
/**
|
|
132
131
|
* Indicates whether the chip should be fully rounded (a pill) or not.
|
|
133
|
-
* Reflected
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* write the attribute out explicitly just to keep the default.
|
|
137
|
-
* @default true
|
|
132
|
+
* Reflected so the CSS attribute selector that picks the pill's border
|
|
133
|
+
* radius also matches when set from JS.
|
|
134
|
+
* @default false
|
|
138
135
|
*/
|
|
139
|
-
this.rounded =
|
|
136
|
+
this.rounded = false;
|
|
140
137
|
/**
|
|
141
138
|
* Shows the delete button ; clicking it fires `eunclose` without changing
|
|
142
139
|
* the chip's own rendering.
|
|
143
|
-
* @default
|
|
140
|
+
* @default false
|
|
144
141
|
*/
|
|
145
|
-
this.removable =
|
|
142
|
+
this.removable = false;
|
|
146
143
|
/**
|
|
147
144
|
* Disables the delete button, preventing removal.
|
|
148
145
|
* @default false
|
|
@@ -364,10 +361,10 @@ __decorate([
|
|
|
364
361
|
property({ attribute: "avatar-initials" })
|
|
365
362
|
], EunomiaChip.prototype, "avatarInitials", void 0);
|
|
366
363
|
__decorate([
|
|
367
|
-
property({
|
|
364
|
+
property({ type: Boolean, reflect: true })
|
|
368
365
|
], EunomiaChip.prototype, "rounded", void 0);
|
|
369
366
|
__decorate([
|
|
370
|
-
property({
|
|
367
|
+
property({ type: Boolean, reflect: true })
|
|
371
368
|
], EunomiaChip.prototype, "removable", void 0);
|
|
372
369
|
__decorate([
|
|
373
370
|
property({ type: Boolean, reflect: true })
|
|
@@ -32,7 +32,6 @@ const base = css `
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
:host {
|
|
35
|
-
/* Unlike a tag's transparent outline, a chip's sits on the surface. */
|
|
36
35
|
--_bg-outline: var(--eun-surface-color, #ffffff);
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -65,7 +64,7 @@ const base = css `
|
|
|
65
64
|
:host {
|
|
66
65
|
--_radius: var(--eun-border-radius-s, 5px);
|
|
67
66
|
}
|
|
68
|
-
:host([rounded]
|
|
67
|
+
:host([rounded]) {
|
|
69
68
|
--_radius: var(--eun-border-radius-xl, 999px);
|
|
70
69
|
}
|
|
71
70
|
|
|
@@ -77,9 +76,6 @@ const base = css `
|
|
|
77
76
|
height: var(--_height);
|
|
78
77
|
--_borderWidth: var(--chip-border-width, var(--eun-border-width-s, 1px));
|
|
79
78
|
background: var(--chip-background-color, var(--_bg));
|
|
80
|
-
/* Every appearance carries the same border box (transparent unless
|
|
81
|
-
drawn), taken out of the padding, so switching appearance or adding a
|
|
82
|
-
--chip-border-* never changes the chip's size. */
|
|
83
79
|
border: var(--_borderWidth) solid var(--chip-border-color, var(--_bd));
|
|
84
80
|
border-radius: var(--chip-border-radius, var(--_radius));
|
|
85
81
|
padding-inline-start: max(
|
|
@@ -53,12 +53,16 @@ export declare const EunomiaCollapseTagName = "eun-collapse";
|
|
|
53
53
|
* @prop {boolean} [disabled=false] - Whether the trigger is disabled
|
|
54
54
|
* @prop {boolean} [independent=false] - Renders the trigger and panel as two fully rounded, separated boxes with a gap instead of the default flush shape with a divider. Use it for instances with no shared exclusivity between them
|
|
55
55
|
* @fires {ChangeEvent} eunchange - Fired whenever open changes
|
|
56
|
+
* @csspart trigger - The trigger button, for effects its custom properties don't cover, such as an active indicator
|
|
57
|
+
* @csspart panel - The panel holding the content, below the trigger
|
|
56
58
|
* @cssprop [--collapse-background] - Sets the background color of the trigger and panel while closed
|
|
57
59
|
* @cssprop [--collapse-background-hover] - Sets the background color of the trigger on hover, while closed
|
|
58
60
|
* @cssprop [--collapse-background-open] - Sets the background color of the trigger and panel while open
|
|
59
61
|
* @cssprop [--collapse-color] - Sets the heading and icon color while closed
|
|
60
62
|
* @cssprop [--collapse-color-hover] - Sets the heading and icon color of the trigger on hover, while closed
|
|
61
63
|
* @cssprop [--collapse-color-open] - Sets the heading and icon color while open
|
|
64
|
+
* @cssprop [--collapse-background-focus] - Sets the background color of the trigger on keyboard focus
|
|
65
|
+
* @cssprop [--collapse-color-focus] - Sets the heading and icon color of the trigger on keyboard focus
|
|
62
66
|
* @cssprop [--collapse-subheading-color] - Sets the color of the subheading
|
|
63
67
|
* @cssprop [--collapse-content-color] - Sets the color of the panel's content. Rich text and slotted content both inherit it by default, and either can still override it locally
|
|
64
68
|
* @cssprop [--collapse-content-font-size] - Sets the font size of the panel's content, inherited by richText and slotted content alike
|
|
@@ -75,6 +79,7 @@ export declare const EunomiaCollapseTagName = "eun-collapse";
|
|
|
75
79
|
* @cssprop [--collapse-panel-padding-block] - Sets the vertical padding of the panel, as one length applied to both sides. Ignored when --collapse-panel-padding or --collapse-padding is set
|
|
76
80
|
* @cssprop [--collapse-panel-padding-inline] - Sets the horizontal padding of the panel, as one length applied to both sides. Ignored when --collapse-panel-padding or --collapse-padding is set
|
|
77
81
|
* @cssprop [--collapse-heading-font-size] - Sets the font size of the heading
|
|
82
|
+
* @cssprop [--collapse-heading-font-weight] - Sets the font weight of the heading
|
|
78
83
|
* @cssprop [--collapse-subheading-font-size] - Sets the font size of the subheading
|
|
79
84
|
* @cssprop [--collapse-divider-width] - Sets the width of the line between the trigger and the panel. Zero removes it
|
|
80
85
|
* @cssprop [--collapse-divider-color] - Sets the color of the line between the trigger and the panel
|
|
@@ -65,12 +65,16 @@ export const EunomiaCollapseTagName = "eun-collapse";
|
|
|
65
65
|
* @prop {boolean} [disabled=false] - Whether the trigger is disabled
|
|
66
66
|
* @prop {boolean} [independent=false] - Renders the trigger and panel as two fully rounded, separated boxes with a gap instead of the default flush shape with a divider. Use it for instances with no shared exclusivity between them
|
|
67
67
|
* @fires {ChangeEvent} eunchange - Fired whenever open changes
|
|
68
|
+
* @csspart trigger - The trigger button, for effects its custom properties don't cover, such as an active indicator
|
|
69
|
+
* @csspart panel - The panel holding the content, below the trigger
|
|
68
70
|
* @cssprop [--collapse-background] - Sets the background color of the trigger and panel while closed
|
|
69
71
|
* @cssprop [--collapse-background-hover] - Sets the background color of the trigger on hover, while closed
|
|
70
72
|
* @cssprop [--collapse-background-open] - Sets the background color of the trigger and panel while open
|
|
71
73
|
* @cssprop [--collapse-color] - Sets the heading and icon color while closed
|
|
72
74
|
* @cssprop [--collapse-color-hover] - Sets the heading and icon color of the trigger on hover, while closed
|
|
73
75
|
* @cssprop [--collapse-color-open] - Sets the heading and icon color while open
|
|
76
|
+
* @cssprop [--collapse-background-focus] - Sets the background color of the trigger on keyboard focus
|
|
77
|
+
* @cssprop [--collapse-color-focus] - Sets the heading and icon color of the trigger on keyboard focus
|
|
74
78
|
* @cssprop [--collapse-subheading-color] - Sets the color of the subheading
|
|
75
79
|
* @cssprop [--collapse-content-color] - Sets the color of the panel's content. Rich text and slotted content both inherit it by default, and either can still override it locally
|
|
76
80
|
* @cssprop [--collapse-content-font-size] - Sets the font size of the panel's content, inherited by richText and slotted content alike
|
|
@@ -87,6 +91,7 @@ export const EunomiaCollapseTagName = "eun-collapse";
|
|
|
87
91
|
* @cssprop [--collapse-panel-padding-block] - Sets the vertical padding of the panel, as one length applied to both sides. Ignored when --collapse-panel-padding or --collapse-padding is set
|
|
88
92
|
* @cssprop [--collapse-panel-padding-inline] - Sets the horizontal padding of the panel, as one length applied to both sides. Ignored when --collapse-panel-padding or --collapse-padding is set
|
|
89
93
|
* @cssprop [--collapse-heading-font-size] - Sets the font size of the heading
|
|
94
|
+
* @cssprop [--collapse-heading-font-weight] - Sets the font weight of the heading
|
|
90
95
|
* @cssprop [--collapse-subheading-font-size] - Sets the font size of the subheading
|
|
91
96
|
* @cssprop [--collapse-divider-width] - Sets the width of the line between the trigger and the panel. Zero removes it
|
|
92
97
|
* @cssprop [--collapse-divider-color] - Sets the color of the line between the trigger and the panel
|
|
@@ -411,6 +416,7 @@ let EunomiaCollapse = class EunomiaCollapse extends LitElement {
|
|
|
411
416
|
<button
|
|
412
417
|
type="button"
|
|
413
418
|
id="header"
|
|
419
|
+
part="trigger"
|
|
414
420
|
aria-expanded=${this.open ? "true" : "false"}
|
|
415
421
|
aria-controls="panel"
|
|
416
422
|
?disabled=${this.disabled}
|
|
@@ -464,6 +470,7 @@ let EunomiaCollapse = class EunomiaCollapse extends LitElement {
|
|
|
464
470
|
${this.renderHeadingWrapper(trigger)}
|
|
465
471
|
<div
|
|
466
472
|
id="panel"
|
|
473
|
+
part="panel"
|
|
467
474
|
?inert=${!this.open && (this.disabled || !supportsUntilFound)}
|
|
468
475
|
hidden=${this.panelHidden ? "until-found" : nothing}
|
|
469
476
|
@beforematch=${this.handleBeforeMatch}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* [--collapse-color] - Set a custom heading/icon color while closed
|
|
9
9
|
* [--collapse-color-hover] - Set a custom heading/icon color for the trigger on hover, while closed
|
|
10
10
|
* [--collapse-color-open] - Set a custom heading/icon color while open
|
|
11
|
+
* [--collapse-background-focus] - Set a custom background color for the trigger on keyboard focus
|
|
12
|
+
* [--collapse-color-focus] - Set a custom heading/icon color for the trigger on keyboard focus
|
|
11
13
|
* [--collapse-subheading-color] - Set a custom color for the subheading
|
|
12
14
|
* [--collapse-content-color] - Set a custom color for the panel's content (rich text and slotted content both inherit it by default, and either can still override it locally)
|
|
13
15
|
* [--collapse-content-font-size] - Set a custom font size for the panel's content, inherited by richText and slotted content alike
|
|
@@ -24,6 +26,7 @@
|
|
|
24
26
|
* [--collapse-panel-padding-block] - Set a custom vertical padding for the panel, as one length applied to both sides. Ignored when --collapse-panel-padding or --collapse-padding is set
|
|
25
27
|
* [--collapse-panel-padding-inline] - Set a custom horizontal padding for the panel, as one length applied to both sides. Ignored when --collapse-panel-padding or --collapse-padding is set
|
|
26
28
|
* [--collapse-heading-font-size] - Set a custom font size for the heading
|
|
29
|
+
* [--collapse-heading-font-weight] - Set a custom font weight for the heading
|
|
27
30
|
* [--collapse-subheading-font-size] - Set a custom font size for the subheading
|
|
28
31
|
* [--collapse-divider-width] - Set a custom width for the line between the trigger and the panel. 0 removes it
|
|
29
32
|
* [--collapse-divider-color] - Set a custom color for the line between the trigger and the panel
|
|
@@ -9,6 +9,8 @@ import { css } from "lit";
|
|
|
9
9
|
* [--collapse-color] - Set a custom heading/icon color while closed
|
|
10
10
|
* [--collapse-color-hover] - Set a custom heading/icon color for the trigger on hover, while closed
|
|
11
11
|
* [--collapse-color-open] - Set a custom heading/icon color while open
|
|
12
|
+
* [--collapse-background-focus] - Set a custom background color for the trigger on keyboard focus
|
|
13
|
+
* [--collapse-color-focus] - Set a custom heading/icon color for the trigger on keyboard focus
|
|
12
14
|
* [--collapse-subheading-color] - Set a custom color for the subheading
|
|
13
15
|
* [--collapse-content-color] - Set a custom color for the panel's content (rich text and slotted content both inherit it by default, and either can still override it locally)
|
|
14
16
|
* [--collapse-content-font-size] - Set a custom font size for the panel's content, inherited by richText and slotted content alike
|
|
@@ -25,6 +27,7 @@ import { css } from "lit";
|
|
|
25
27
|
* [--collapse-panel-padding-block] - Set a custom vertical padding for the panel, as one length applied to both sides. Ignored when --collapse-panel-padding or --collapse-padding is set
|
|
26
28
|
* [--collapse-panel-padding-inline] - Set a custom horizontal padding for the panel, as one length applied to both sides. Ignored when --collapse-panel-padding or --collapse-padding is set
|
|
27
29
|
* [--collapse-heading-font-size] - Set a custom font size for the heading
|
|
30
|
+
* [--collapse-heading-font-weight] - Set a custom font weight for the heading
|
|
28
31
|
* [--collapse-subheading-font-size] - Set a custom font size for the subheading
|
|
29
32
|
* [--collapse-divider-width] - Set a custom width for the line between the trigger and the panel. 0 removes it
|
|
30
33
|
* [--collapse-divider-color] - Set a custom color for the line between the trigger and the panel
|
|
@@ -59,7 +62,7 @@ export const collapseStyles = css `
|
|
|
59
62
|
);
|
|
60
63
|
--_subheadingColor: var(
|
|
61
64
|
--collapse-subheading-color,
|
|
62
|
-
var(--eun-text-secondary, #
|
|
65
|
+
var(--eun-text-secondary, #666e8a)
|
|
63
66
|
);
|
|
64
67
|
--_contentColor: var(
|
|
65
68
|
--collapse-content-color,
|
|
@@ -143,6 +146,10 @@ export const collapseStyles = css `
|
|
|
143
146
|
#wrapper > h6 {
|
|
144
147
|
margin: 0;
|
|
145
148
|
}
|
|
149
|
+
#wrapper:not(.open) #header:focus-visible:not(:disabled) {
|
|
150
|
+
background: var(--collapse-background-focus, var(--_background));
|
|
151
|
+
color: var(--collapse-color-focus, var(--_color));
|
|
152
|
+
}
|
|
146
153
|
#wrapper:not(.open) #header:hover:not(:disabled) {
|
|
147
154
|
background: var(--_backgroundHover);
|
|
148
155
|
color: var(--_colorHover);
|
|
@@ -170,6 +177,7 @@ export const collapseStyles = css `
|
|
|
170
177
|
overflow: hidden;
|
|
171
178
|
text-overflow: ellipsis;
|
|
172
179
|
font-size: var(--collapse-heading-font-size, var(--eun-font-size-s, 14px));
|
|
180
|
+
font-weight: var(--collapse-heading-font-weight, var(--eun-font-weight-l));
|
|
173
181
|
}
|
|
174
182
|
#heading ::slotted(*) {
|
|
175
183
|
margin: 0;
|
|
@@ -250,6 +258,10 @@ export const collapseStyles = css `
|
|
|
250
258
|
background-color var(--_transitionDuration)
|
|
251
259
|
var(--eun-easing-out, ease-out);
|
|
252
260
|
}
|
|
261
|
+
.open #header:focus-visible:not(:disabled) {
|
|
262
|
+
background: var(--collapse-background-focus, var(--_backgroundOpen));
|
|
263
|
+
color: var(--collapse-color-focus, var(--_colorOpen));
|
|
264
|
+
}
|
|
253
265
|
.open #panel {
|
|
254
266
|
grid-template-rows: 1fr;
|
|
255
267
|
background: var(--_backgroundOpen);
|
|
@@ -48,13 +48,13 @@ declare const EunomiaImageCarousel_base: import("../../../utils/constructor.type
|
|
|
48
48
|
* @prop {boolean} [magnifier=false] - Enables a hover-to-zoom effect on the main image, for mouse and pen pointers only. Has no effect on touch, which relies on the lightbox instead
|
|
49
49
|
* @prop {number} [magnifierZoom=2.5] - How much the main image scales up under the cursor while hovering, with magnifier on
|
|
50
50
|
* @attr {number} [magnifier-zoom=2.5] - How much the main image scales up under the cursor while hovering, with magnifier on
|
|
51
|
-
* @prop {boolean} [showThumbnails=
|
|
52
|
-
* @attr {boolean} [show-thumbnails=
|
|
53
|
-
* @prop {boolean} [showDots=
|
|
54
|
-
* @attr {boolean} [show-dots=
|
|
55
|
-
* @prop {boolean} [lightbox=
|
|
56
|
-
* @prop {boolean} [lightboxGrid=
|
|
57
|
-
* @attr {boolean} [lightbox-grid=
|
|
51
|
+
* @prop {boolean} [showThumbnails=false] - Shows the thumbnail strip below the main stage, for jumping directly to an image
|
|
52
|
+
* @attr {boolean} [show-thumbnails=false] - Shows the thumbnail strip below the main stage, for jumping directly to an image
|
|
53
|
+
* @prop {boolean} [showDots=false] - Shows pagination dots below the main stage as a position indicator when the thumbnail strip is off. Has no effect while thumbnails are shown, since they already convey the same information
|
|
54
|
+
* @attr {boolean} [show-dots=false] - Shows pagination dots below the main stage as a position indicator when the thumbnail strip is off. Has no effect while thumbnails are shown, since they already convey the same information
|
|
55
|
+
* @prop {boolean} [lightbox=false] - Whether clicking the main image, or its expand control, opens the full-size lightbox
|
|
56
|
+
* @prop {boolean} [lightboxGrid=false] - Shows a scrollable grid of every image alongside the lightbox's own main image, for jumping directly to one without closing it
|
|
57
|
+
* @attr {boolean} [lightbox-grid=false] - Shows a scrollable grid of every image alongside the lightbox's own main image, for jumping directly to one without closing it
|
|
58
58
|
* @prop {boolean} [loop=false] - Wraps the previous and next controls around at the bounds instead of stopping there, on both the main stage and the lightbox
|
|
59
59
|
* @prop {EunomiaImageCarouselTransition} [transition='slide'] - How the main stage and the lightbox animate between images
|
|
60
60
|
* @prop {boolean} [autoplay=false] - Automatically advances to the next image on a set interval. Pauses on hover or focus and while the lightbox is open, but renders no pause or play control of its own, so pair this with a visible control calling the public pause and resume methods, since a moving gallery nobody can stop fails accessibility guidelines
|
|
@@ -78,6 +78,7 @@ declare const EunomiaImageCarousel_base: import("../../../utils/constructor.type
|
|
|
78
78
|
* @cssprop [--image-carousel-border-color] - Sets the border color of the main stage, which has no border by default
|
|
79
79
|
* @cssprop [--image-carousel-thumbnail-size] - Sets the size of each thumbnail
|
|
80
80
|
* @cssprop [--image-carousel-thumbnail-gap] - Sets the gap between thumbnails, and between the strip and the main stage
|
|
81
|
+
* @cssprop [--image-carousel-thumbnail-fade-size] - Sets the width of the fade on the thumbnail strip's edges that still hide thumbnails
|
|
81
82
|
* @cssprop [--image-carousel-thumbnail-border-color] - Sets the border color of the thumbnails and of the lightbox's grid items at rest, transparent by default
|
|
82
83
|
* @cssprop [--image-carousel-thumbnail-active-border-color] - Sets the border color of the active thumbnail and of the lightbox's active grid item
|
|
83
84
|
* @cssprop [--image-carousel-nav-color] - Sets the icon color of the main stage's previous and next controls
|
|
@@ -94,6 +95,8 @@ declare const EunomiaImageCarousel_base: import("../../../utils/constructor.type
|
|
|
94
95
|
* @cssprop [--image-carousel-dot-gap] - Sets the gap between pagination dots
|
|
95
96
|
* @cssprop [--image-carousel-dot-color] - Sets the color of the pagination dots
|
|
96
97
|
* @cssprop [--image-carousel-dot-active-color] - Sets the color of the active pagination dot
|
|
98
|
+
* @cssprop [--image-carousel-focus-outline-color] - Sets the keyboard focus outline color of the stage, controls, thumbnails, dots and lightbox grid items
|
|
99
|
+
* @cssprop [--image-carousel-lightbox-focus-outline-color] - Sets the keyboard focus outline color of the lightbox's previous and next controls
|
|
97
100
|
* @element eun-image-carousel
|
|
98
101
|
*/
|
|
99
102
|
export declare class EunomiaImageCarousel extends EunomiaImageCarousel_base {
|
|
@@ -135,29 +138,28 @@ export declare class EunomiaImageCarousel extends EunomiaImageCarousel_base {
|
|
|
135
138
|
/**
|
|
136
139
|
* Shows the thumbnail strip below the main stage, for jumping directly
|
|
137
140
|
* to an image.
|
|
138
|
-
* @default
|
|
141
|
+
* @default false
|
|
139
142
|
*/
|
|
140
143
|
showThumbnails: boolean;
|
|
141
144
|
/**
|
|
142
145
|
* Shows pagination dots below the main stage as a position indicator
|
|
143
146
|
* (which image, how many total) when `showThumbnails` is off — without
|
|
144
147
|
* either, there'd be no visible way to tell. No effect while thumbnails
|
|
145
|
-
* are shown, which already convey the same information
|
|
146
|
-
*
|
|
147
|
-
* @default true
|
|
148
|
+
* are shown, which already convey the same information.
|
|
149
|
+
* @default false
|
|
148
150
|
*/
|
|
149
151
|
showDots: boolean;
|
|
150
152
|
/**
|
|
151
153
|
* Whether clicking the main image (or its expand control) opens the
|
|
152
154
|
* full-size lightbox.
|
|
153
|
-
* @default
|
|
155
|
+
* @default false
|
|
154
156
|
*/
|
|
155
157
|
lightbox: boolean;
|
|
156
158
|
/**
|
|
157
159
|
* Shows a scrollable grid of every image alongside the lightbox's own
|
|
158
160
|
* main image — clicking a tile swaps the lightbox's image without
|
|
159
161
|
* closing it, the same way a classifieds site's photo viewer does.
|
|
160
|
-
* @default
|
|
162
|
+
* @default false
|
|
161
163
|
*/
|
|
162
164
|
lightboxGrid: boolean;
|
|
163
165
|
/**
|
|
@@ -259,6 +261,12 @@ export declare class EunomiaImageCarousel extends EunomiaImageCarousel_base {
|
|
|
259
261
|
* @readonly
|
|
260
262
|
*/
|
|
261
263
|
private readonly stageImagesEl?;
|
|
264
|
+
/**
|
|
265
|
+
* The thumbnail strip, `undefined` while `showThumbnails` is off.
|
|
266
|
+
* @internal
|
|
267
|
+
* @readonly
|
|
268
|
+
*/
|
|
269
|
+
private readonly thumbnailsEl?;
|
|
262
270
|
/**
|
|
263
271
|
* Minimum horizontal drag distance (px) for a touch swipe to trigger
|
|
264
272
|
* `previous()`/`next()` — see {@link handleSwipeEnd}. Also
|
|
@@ -361,6 +369,18 @@ export declare class EunomiaImageCarousel extends EunomiaImageCarousel_base {
|
|
|
361
369
|
* @private
|
|
362
370
|
*/
|
|
363
371
|
private manuallyPaused;
|
|
372
|
+
/**
|
|
373
|
+
* Watches the thumbnail strip's size, so its edge fades follow the
|
|
374
|
+
* available width — see {@link updateThumbnailsFade}.
|
|
375
|
+
* @private
|
|
376
|
+
*/
|
|
377
|
+
private thumbnailsObserver?;
|
|
378
|
+
/**
|
|
379
|
+
* The strip {@link thumbnailsObserver} currently watches, to rewire it
|
|
380
|
+
* when `showThumbnails` re-renders the strip.
|
|
381
|
+
* @private
|
|
382
|
+
*/
|
|
383
|
+
private observedThumbnailsEl?;
|
|
364
384
|
/**
|
|
365
385
|
* Debounced announcer for the live region, see {@link announcement}.
|
|
366
386
|
* @private
|
|
@@ -369,6 +389,30 @@ export declare class EunomiaImageCarousel extends EunomiaImageCarousel_base {
|
|
|
369
389
|
connectedCallback(): void;
|
|
370
390
|
protected willUpdate(changed: PropertyValues): void;
|
|
371
391
|
protected updated(changed: PropertyValues): void;
|
|
392
|
+
/**
|
|
393
|
+
* Keeps the thumbnail strip's observer on the current strip, refreshes
|
|
394
|
+
* its edge fades, and scrolls the active thumbnail into view whenever
|
|
395
|
+
* the active image changes.
|
|
396
|
+
*
|
|
397
|
+
* @param changed the properties changed in this update.
|
|
398
|
+
* @private
|
|
399
|
+
*/
|
|
400
|
+
private syncThumbnailsStrip;
|
|
401
|
+
/**
|
|
402
|
+
* Scrolls the strip, and only the strip (unlike `scrollIntoView`, which
|
|
403
|
+
* would also scroll the page), just enough to fully show the active
|
|
404
|
+
* thumbnail clear of the edge fades.
|
|
405
|
+
*
|
|
406
|
+
* @param strip the thumbnail strip.
|
|
407
|
+
* @private
|
|
408
|
+
*/
|
|
409
|
+
private scrollActiveThumbnailIntoView;
|
|
410
|
+
/**
|
|
411
|
+
* Fades out whichever edge of the thumbnail strip still has thumbnails
|
|
412
|
+
* hidden past it, hinting that the strip scrolls that way.
|
|
413
|
+
* @private
|
|
414
|
+
*/
|
|
415
|
+
private readonly updateThumbnailsFade;
|
|
372
416
|
/**
|
|
373
417
|
* Whether `el` is one of the prev/next controls (main stage or
|
|
374
418
|
* lightbox) — the pair {@link restoreNavFocusIfDisabled} manages focus
|
|
@@ -761,5 +805,8 @@ declare global {
|
|
|
761
805
|
interface HTMLElementTagNameMap {
|
|
762
806
|
[EunomiaImageCarouselTagName]: EunomiaImageCarousel;
|
|
763
807
|
}
|
|
808
|
+
interface EunomiaStringAttributeMap {
|
|
809
|
+
[EunomiaImageCarouselTagName]: "images";
|
|
810
|
+
}
|
|
764
811
|
}
|
|
765
812
|
export {};
|