@eunomia/elements 1.0.0-beta.5 → 1.0.0-beta.7
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 +2 -2
- package/dist/breakpoints.d.ts +37 -10
- package/dist/breakpoints.js +38 -10
- package/dist/cdn/components/chunks/{chunk-MMLIPCOY.js → chunk-22D3SRFR.js} +1 -1
- package/dist/cdn/components/chunks/chunk-36KLGY6U.js +209 -0
- package/dist/cdn/components/chunks/chunk-3BMACIDO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-IDKZKLJR.js → chunk-3PNGQEG4.js} +24 -11
- package/dist/cdn/components/chunks/{chunk-NBIENHLV.js → chunk-5XPOGBPL.js} +18 -18
- package/dist/cdn/components/chunks/chunk-624VJYNA.js +1 -0
- package/dist/cdn/components/chunks/chunk-62RLISRD.js +1 -0
- package/dist/cdn/components/chunks/{chunk-6ETDXUH2.js → chunk-6FYW5TQU.js} +7 -7
- 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-BKZGTCMF.js +1 -0
- package/dist/cdn/components/chunks/{chunk-GW3VP2L7.js → chunk-BO3JOEWM.js} +1 -1
- package/dist/cdn/components/chunks/chunk-BVASCT2V.js +109 -0
- package/dist/cdn/components/chunks/{chunk-DKOPI7QA.js → chunk-DGI7TKCU.js} +83 -68
- package/dist/cdn/components/chunks/chunk-EUWUDCBZ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-P32B7BFD.js → chunk-FF3I7C3C.js} +15 -15
- package/dist/cdn/components/chunks/{chunk-74AOAB4X.js → chunk-FOILAXLL.js} +6 -5
- package/dist/cdn/components/chunks/{chunk-LGLQ36QB.js → chunk-GDBPWZN6.js} +1 -1
- 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-JRGM3W7I.js → chunk-I4ERDXSM.js} +9 -4
- package/dist/cdn/components/chunks/{chunk-AIS3UICU.js → chunk-J3SZBXM6.js} +11 -7
- package/dist/cdn/components/chunks/{chunk-5XJGYXW7.js → chunk-LVKMAHMU.js} +11 -1
- package/dist/cdn/components/chunks/{chunk-SD2WHGPF.js → chunk-MQQJ6DID.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-A4EQSU36.js → chunk-O7PHBLH2.js} +1 -1
- package/dist/cdn/components/chunks/chunk-PD62MBOJ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5EVP7YNE.js → chunk-PPCHQG7P.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-MPQP4R54.js → chunk-PXF554MD.js} +10 -9
- package/dist/cdn/components/chunks/chunk-QL5GSW2A.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5XJLIHAU.js → chunk-QXQ25SQS.js} +24 -20
- package/dist/cdn/components/chunks/chunk-SMTIDNGW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-PED5ATYN.js → chunk-SVGWCKWT.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-2XASWWKR.js → chunk-TFTRCIIK.js} +9 -8
- 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-L65WUTXM.js → chunk-UYZR4JXZ.js} +12 -7
- package/dist/cdn/components/chunks/chunk-VG6NAAIV.js +1 -0
- package/dist/cdn/components/chunks/chunk-VJCNHMQZ.js +10 -0
- package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +1 -0
- package/dist/cdn/components/chunks/{chunk-XH6NREVZ.js → chunk-YITWLCD3.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-OW7XKDCH.js → chunk-Z3OFIE7S.js} +16 -16
- package/dist/cdn/components/chunks/{chunk-BQHYZB2W.js → chunk-ZBN4HTWP.js} +1 -1
- package/dist/cdn/components/eun-alert.js +33 -18
- package/dist/cdn/components/eun-animate.js +14 -10
- package/dist/cdn/components/eun-badge.js +2 -2
- package/dist/cdn/components/eun-breadcrumb.js +25 -41
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +67 -65
- package/dist/cdn/components/eun-card.js +34 -19
- package/dist/cdn/components/eun-carousel.js +76 -42
- package/dist/cdn/components/eun-check-card.js +13 -6
- 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 +3 -3
- package/dist/cdn/components/eun-collapse.js +56 -27
- package/dist/cdn/components/eun-color-picker.js +79 -86
- package/dist/cdn/components/eun-counter.js +16 -15
- package/dist/cdn/components/eun-date-picker.js +71 -67
- package/dist/cdn/components/eun-description-list.js +152 -0
- package/dist/cdn/components/eun-divider.js +3 -3
- package/dist/cdn/components/eun-drawer.js +34 -20
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -5
- package/dist/cdn/components/eun-fab.js +17 -16
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +79 -22
- package/dist/cdn/components/eun-image-carousel.js +92 -47
- package/dist/cdn/components/eun-infinite-list.js +23 -11
- package/dist/cdn/components/eun-input-file.js +20 -19
- package/dist/cdn/components/eun-input-phone.js +17 -16
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +78 -29
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +27 -20
- package/dist/cdn/components/eun-pagination.js +24 -19
- package/dist/cdn/components/eun-password-strength.js +19 -11
- package/dist/cdn/components/eun-progress-bar.js +13 -5
- package/dist/cdn/components/eun-radio-card.js +16 -9
- package/dist/cdn/components/eun-radio-list.js +12 -9
- 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 +10 -10
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +27 -27
- package/dist/cdn/components/eun-search.js +24 -25
- package/dist/cdn/components/eun-select.js +32 -31
- package/dist/cdn/components/eun-sidebar.js +40 -24
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +15 -14
- package/dist/cdn/components/eun-sliding-card.js +8 -4
- package/dist/cdn/components/eun-step.js +22 -10
- package/dist/cdn/components/eun-stepper.js +41 -30
- package/dist/cdn/components/eun-switch.js +10 -8
- package/dist/cdn/components/eun-tab-group.js +24 -19
- package/dist/cdn/components/eun-tab-panel.js +11 -3
- 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 +572 -31
- package/dist/cdn/components/eun-tag.js +13 -7
- package/dist/cdn/components/eun-textarea.js +34 -29
- package/dist/cdn/components/eun-time-picker.js +24 -21
- package/dist/cdn/components/eun-toast.js +51 -22
- package/dist/cdn/components/eun-toggle-group.js +57 -36
- package/dist/cdn/components/eun-toggle-item.js +16 -15
- package/dist/cdn/components/eun-toggle.js +12 -10
- package/dist/cdn/components/eun-toolbar.js +64 -54
- package/dist/cdn/components/eun-tooltip.js +30 -14
- package/dist/cdn/styles/breakpoints.scss +8 -0
- package/dist/cdn/styles/eunomia-grid.scss +6 -0
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.scss +4 -3
- package/dist/cdn/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/dist/cdn/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +3 -2
- package/dist/cdn/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/dist/cdn/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/dist/cdn/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/components/action/button/button.d.ts +9 -3
- package/dist/components/action/button/button.js +10 -4
- package/dist/components/action/button/button.styles.js +61 -41
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +2 -2
- package/dist/components/action/dropdown-button/dropdown-button.js +21 -15
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +3 -2
- package/dist/components/action/dropdown-button/dropdown-item.js +5 -6
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +3 -2
- package/dist/components/action/fab/fab.styles.js +14 -13
- package/dist/components/action/link/link.d.ts +7 -3
- package/dist/components/action/link/link.js +11 -7
- package/dist/components/action/link/link.styles.js +66 -15
- package/dist/components/action/shared-styles/button-palette.styles.js +15 -15
- package/dist/components/action/toggle/toggle-group.d.ts +2 -0
- package/dist/components/action/toggle/toggle-group.js +6 -4
- package/dist/components/action/toggle/toggle-group.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle-group.styles.js +46 -23
- package/dist/components/action/toggle/toggle-item.styles.js +13 -12
- package/dist/components/action/toggle/toggle.d.ts +2 -0
- package/dist/components/action/toggle/toggle.js +3 -1
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle.styles.js +12 -8
- package/dist/components/alert/alert/alert.d.ts +11 -7
- package/dist/components/alert/alert/alert.js +13 -14
- package/dist/components/alert/alert/alert.styles.js +32 -15
- package/dist/components/alert/drawer/drawer.d.ts +8 -6
- package/dist/components/alert/drawer/drawer.js +12 -14
- package/dist/components/alert/drawer/drawer.styles.js +26 -10
- package/dist/components/alert/modal/modal.d.ts +13 -11
- package/dist/components/alert/modal/modal.js +17 -27
- package/dist/components/alert/modal/modal.styles.js +16 -7
- package/dist/components/alert/toast/toast.d.ts +9 -5
- package/dist/components/alert/toast/toast.js +11 -13
- package/dist/components/alert/toast/toast.styles.js +49 -18
- package/dist/components/content/badge/badge.js +2 -2
- package/dist/components/content/card/card.d.ts +7 -3
- package/dist/components/content/card/card.js +8 -4
- package/dist/components/content/card/card.styles.js +28 -13
- package/dist/components/content/card/image-card.d.ts +60 -6
- package/dist/components/content/card/image-card.js +120 -11
- package/dist/components/content/card/image-card.styles.js +66 -15
- package/dist/components/content/card/sliding-card.d.ts +2 -0
- package/dist/components/content/card/sliding-card.js +2 -0
- package/dist/components/content/card/sliding-card.styles.js +5 -1
- package/dist/components/content/chip/chip.d.ts +4 -4
- package/dist/components/content/chip/chip.js +8 -8
- package/dist/components/content/collapse/collapse.d.ts +10 -1
- package/dist/components/content/collapse/collapse.js +12 -2
- package/dist/components/content/collapse/collapse.styles.d.ts +10 -1
- package/dist/components/content/collapse/collapse.styles.js +56 -18
- package/dist/components/content/description-list/description-list.d.ts +87 -0
- package/dist/components/content/description-list/description-list.js +107 -0
- package/dist/components/content/description-list/description-list.styles.d.ts +1 -0
- package/dist/components/content/description-list/description-list.styles.js +185 -0
- package/dist/components/content/icon/icon.d.ts +5 -0
- package/dist/components/content/icon/icon.js +5 -0
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +8 -1
- package/dist/components/content/image-carousel/image-carousel.d.ts +30 -19
- package/dist/components/content/image-carousel/image-carousel.js +58 -55
- package/dist/components/content/image-carousel/image-carousel.styles.js +69 -30
- 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 +9 -1
- package/dist/components/content/progress-bar/progress-bar.styles.js +12 -4
- package/dist/components/content/shared-styles/card-link.styles.js +4 -3
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +5 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +19 -14
- package/dist/components/content/tag/tag.d.ts +4 -0
- package/dist/components/content/tag/tag.js +6 -2
- package/dist/components/content/tag/tag.styles.js +14 -4
- package/dist/components/content/tooltip/tooltip.d.ts +3 -2
- package/dist/components/content/tooltip/tooltip.js +12 -19
- package/dist/components/content/tooltip/tooltip.styles.js +25 -7
- package/dist/components/form/checkbox/check-card.d.ts +5 -1
- package/dist/components/form/checkbox/check-card.js +5 -1
- package/dist/components/form/checkbox/check-card.styles.js +13 -4
- package/dist/components/form/checkbox/checkbox-list.d.ts +21 -1
- package/dist/components/form/checkbox/checkbox-list.js +50 -17
- package/dist/components/form/checkbox/checkbox.d.ts +5 -1
- package/dist/components/form/checkbox/checkbox.js +7 -2
- package/dist/components/form/checkbox/checkbox.styles.js +5 -4
- package/dist/components/form/color-picker/color-picker.d.ts +48 -29
- package/dist/components/form/color-picker/color-picker.js +85 -71
- package/dist/components/form/color-picker/color-picker.styles.js +7 -6
- package/dist/components/form/counter/counter.d.ts +26 -19
- package/dist/components/form/counter/counter.js +64 -63
- package/dist/components/form/counter/counter.styles.js +5 -4
- package/dist/components/form/date-picker/date-picker.d.ts +64 -39
- package/dist/components/form/date-picker/date-picker.js +107 -96
- package/dist/components/form/date-picker/date-picker.styles.js +8 -5
- package/dist/components/form/input/input.d.ts +45 -40
- package/dist/components/form/input/input.js +93 -111
- package/dist/components/form/input-file/input-file.d.ts +30 -14
- package/dist/components/form/input-file/input-file.js +43 -40
- package/dist/components/form/input-file/input-file.styles.js +7 -6
- package/dist/components/form/input-phone/input-phone.d.ts +30 -7
- package/dist/components/form/input-phone/input-phone.js +54 -30
- package/dist/components/form/input-phone/input-phone.styles.js +4 -4
- package/dist/components/form/label/label.styles.js +3 -3
- package/dist/components/form/radio/radio-card.d.ts +6 -2
- package/dist/components/form/radio/radio-card.js +6 -2
- package/dist/components/form/radio/radio-card.styles.js +14 -5
- package/dist/components/form/radio/radio-list.d.ts +28 -9
- package/dist/components/form/radio/radio-list.js +61 -32
- package/dist/components/form/radio/radio.d.ts +6 -2
- package/dist/components/form/radio/radio.js +6 -2
- package/dist/components/form/radio/radio.styles.js +4 -4
- 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 +10 -9
- package/dist/components/form/search/search.js +29 -56
- package/dist/components/form/search/search.styles.js +5 -4
- package/dist/components/form/select/select.d.ts +32 -12
- package/dist/components/form/select/select.js +74 -59
- package/dist/components/form/select/select.styles.js +3 -2
- package/dist/components/form/shared-styles/card.styles.js +5 -4
- package/dist/components/form/shared-styles/field.styles.js +16 -6
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/shared-styles/listbox.styles.js +10 -0
- package/dist/components/form/slider/slider.d.ts +11 -9
- package/dist/components/form/slider/slider.js +14 -14
- package/dist/components/form/slider/slider.styles.js +8 -7
- package/dist/components/form/switch/switch.d.ts +5 -1
- package/dist/components/form/switch/switch.js +5 -1
- package/dist/components/form/switch/switch.styles.js +7 -5
- package/dist/components/form/textarea/textarea.d.ts +96 -24
- package/dist/components/form/textarea/textarea.js +206 -51
- 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-columns.styles.js +4 -2
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -1
- package/dist/components/form/time-picker/time-picker.d.ts +30 -10
- package/dist/components/form/time-picker/time-picker.js +81 -64
- package/dist/components/form/time-picker/time-picker.styles.js +4 -3
- package/dist/components/layout/animate/animate.d.ts +37 -15
- package/dist/components/layout/animate/animate.js +36 -16
- package/dist/components/layout/animate/animate.styles.js +11 -18
- package/dist/components/layout/divider/divider.js +1 -1
- package/dist/components/layout/divider/divider.styles.js +1 -1
- package/dist/components/layout/infinite-list/infinite-list.d.ts +33 -10
- package/dist/components/layout/infinite-list/infinite-list.js +115 -18
- package/dist/components/layout/infinite-list/infinite-list.styles.d.ts +3 -0
- package/dist/components/layout/infinite-list/infinite-list.styles.js +17 -5
- package/dist/components/loader/loader/loader.js +2 -2
- package/dist/components/loader/loader/loader.styles.js +17 -13
- package/dist/components/loader/skeleton/skeleton.js +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +31 -45
- package/dist/components/navigation/breadcrumb/breadcrumb.js +111 -77
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.d.ts +3 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +22 -26
- package/dist/components/navigation/carousel/carousel.d.ts +55 -11
- package/dist/components/navigation/carousel/carousel.js +101 -43
- package/dist/components/navigation/carousel/carousel.styles.js +65 -22
- package/dist/components/navigation/pagination/pagination.d.ts +23 -21
- package/dist/components/navigation/pagination/pagination.js +30 -53
- package/dist/components/navigation/pagination/pagination.styles.js +8 -3
- package/dist/components/navigation/sidebar/sidebar.d.ts +17 -13
- package/dist/components/navigation/sidebar/sidebar.js +23 -33
- package/dist/components/navigation/sidebar/sidebar.styles.js +32 -14
- package/dist/components/navigation/stepper/step.js +9 -8
- package/dist/components/navigation/stepper/step.styles.js +16 -5
- package/dist/components/navigation/stepper/stepper.js +12 -5
- package/dist/components/navigation/stepper/stepper.styles.js +16 -5
- package/dist/components/navigation/tabs/tab/tab.d.ts +11 -0
- package/dist/components/navigation/tabs/tab/tab.js +11 -0
- package/dist/components/navigation/tabs/tab/tab.styles.js +22 -16
- package/dist/components/navigation/tabs/tab-group/tab-group.js +9 -10
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +21 -16
- package/dist/components/navigation/tabs/tab-panel/tab-panel.d.ts +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.js +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +18 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +30 -62
- package/dist/components/navigation/toolbar/toolbar.js +43 -105
- package/dist/components/navigation/toolbar/toolbar.styles.js +59 -36
- package/dist/events/table-row-click.event.d.ts +5 -4
- package/dist/events/table-row-click.event.js +10 -5
- package/dist/features/scheduler/calendar/calendar.d.ts +6 -6
- package/dist/features/scheduler/calendar/calendar.js +7 -6
- package/dist/features/scheduler/calendar/calendar.styles.js +8 -6
- package/dist/features/scheduler/scheduler/scheduler.d.ts +8 -8
- package/dist/features/scheduler/scheduler/scheduler.js +24 -47
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -4
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +2 -0
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +5 -3
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +11 -5
- 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 +6 -7
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +2 -2
- package/dist/features/table/table/table-native.styles.d.ts +28 -0
- package/dist/features/table/table/table-native.styles.js +502 -0
- package/dist/features/table/table/table.d.ts +342 -294
- package/dist/features/table/table/table.js +820 -546
- package/dist/features/table/table/table.styles.js +31 -17
- package/dist/features/table/table/table.types.d.ts +11 -20
- package/dist/features/table/table/table.utils.d.ts +6 -36
- package/dist/features/table/table/table.utils.js +16 -65
- package/dist/features/table/table-action-bar/table-action-bar.d.ts +33 -16
- package/dist/features/table/table-action-bar/table-action-bar.js +15 -22
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +15 -3
- package/dist/i18n/en.d.ts +99 -0
- package/dist/i18n/en.js +99 -0
- package/dist/i18n/fr.js +103 -2
- package/dist/index.d.ts +6 -10
- package/dist/index.js +7 -10
- package/dist/mixins/button.mixin.js +3 -2
- package/dist/mixins/check.mixin.js +15 -15
- 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/form.mixin.d.ts +21 -1
- package/dist/mixins/form.mixin.js +156 -27
- package/dist/mixins/localizable.mixin.d.ts +1 -1
- package/dist/mixins/localizable.mixin.js +1 -1
- package/dist/mixins/radio.mixin.js +15 -15
- package/dist/mixins/readonly.mixin.d.ts +2 -1
- package/dist/mixins/readonly.mixin.js +10 -3
- package/dist/mixins/validators.mixin.d.ts +7 -1
- package/dist/mixins/validators.mixin.js +36 -17
- package/dist/ssr/alert-ssr.css +187 -0
- package/dist/ssr/animate-ssr.css +3 -2
- package/dist/ssr/badge-ssr.css +67 -0
- package/dist/ssr/breadcrumb-ssr.css +41 -0
- package/dist/ssr/button-ssr.css +319 -0
- package/dist/ssr/card-ssr.css +196 -0
- package/dist/ssr/carousel-ssr.css +238 -0
- package/dist/ssr/checkbox-ssr.css +67 -0
- package/dist/ssr/chip-ssr.css +242 -0
- package/dist/ssr/collapse-ssr.css +151 -0
- package/dist/ssr/description-list-ssr.css +150 -0
- package/dist/ssr/field-ssr.css +163 -0
- package/dist/ssr/icon-ssr.css +266 -0
- package/dist/ssr/image-carousel-ssr.css +24 -0
- package/dist/ssr/links-ssr.css +8 -2
- package/dist/ssr/pagination-ssr.css +4 -0
- package/dist/ssr/rating-ssr.css +254 -0
- package/dist/ssr/sidebar-ssr.css +9 -1
- package/dist/ssr/skeleton-ssr.css +63 -0
- package/dist/ssr/table-ssr.css +472 -0
- package/dist/ssr/tabs-ssr.css +129 -0
- package/dist/ssr/tag-ssr.css +197 -0
- package/dist/ssr/toggle-group-ssr.css +182 -0
- package/dist/ssr/toolbar-ssr.css +34 -1
- package/dist/utils/drag-drop.utils.js +18 -2
- package/dist/utils/dropdown-menu.utils.d.ts +2 -2
- package/dist/utils/dropdown-menu.utils.js +4 -14
- package/dist/utils/implicit-submission.utils.d.ts +18 -0
- package/dist/utils/implicit-submission.utils.js +79 -0
- package/dist/utils/light-dom-styles.utils.d.ts +14 -0
- package/dist/utils/light-dom-styles.utils.js +37 -0
- package/dist/utils/listbox-options.utils.d.ts +11 -0
- package/dist/utils/listbox-options.utils.js +41 -3
- package/dist/utils/media.styles.d.ts +19 -0
- package/dist/utils/media.styles.js +23 -0
- package/dist/utils/motion.utils.d.ts +40 -0
- package/dist/utils/motion.utils.js +51 -0
- package/dist/utils/theme-generator.utils.d.ts +6 -1
- package/dist/utils/theme-generator.utils.js +59 -20
- package/package.json +39 -31
- package/styles/breakpoints.scss +8 -0
- package/styles/eunomia-grid.scss +6 -0
- package/styles/themes/eunomia-theme.scss +4 -3
- package/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +3 -2
- package/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/cdn/components/chunks/chunk-32DTNR52.js +0 -1
- package/dist/cdn/components/chunks/chunk-A6KGFALA.js +0 -132
- package/dist/cdn/components/chunks/chunk-CEDHJUUH.js +0 -1
- package/dist/cdn/components/chunks/chunk-D2M4BV5Y.js +0 -328
- package/dist/cdn/components/chunks/chunk-E4IS25H7.js +0 -1
- package/dist/cdn/components/chunks/chunk-E74CM7UG.js +0 -66
- package/dist/cdn/components/chunks/chunk-EAKYD33D.js +0 -110
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +0 -1
- package/dist/cdn/components/chunks/chunk-GU6BVMFJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-KBH5PCUO.js +0 -3
- package/dist/cdn/components/chunks/chunk-KVYUNKUO.js +0 -27
- package/dist/cdn/components/chunks/chunk-LFCXUVDO.js +0 -1
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +0 -38
- package/dist/cdn/components/chunks/chunk-PCM7D3YF.js +0 -84
- package/dist/cdn/components/chunks/chunk-S2UCEWNG.js +0 -207
- package/dist/cdn/components/chunks/chunk-SJWRE6PW.js +0 -1
- package/dist/cdn/components/chunks/chunk-T4PTHUYF.js +0 -10
- package/dist/cdn/components/chunks/chunk-VRGRCYIO.js +0 -1
- package/dist/cdn/components/chunks/chunk-X2AUBZD2.js +0 -30
- package/dist/cdn/components/eun-breadcrumb-item.js +0 -93
- package/dist/cdn/components/eun-table-cell.js +0 -1
- package/dist/cdn/components/eun-table-column.js +0 -1
- package/dist/cdn/components/eun-table-header.js +0 -1
- package/dist/cdn/components/eun-table-item.js +0 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +0 -1
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +0 -77
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +0 -130
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.d.ts +0 -6
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +0 -78
- package/dist/features/table/native-table.css +0 -276
- package/dist/features/table/shared-styles/table-row.styles.d.ts +0 -7
- package/dist/features/table/shared-styles/table-row.styles.js +0 -47
- package/dist/features/table/shared-styles/table-shared.styles.d.ts +0 -23
- package/dist/features/table/shared-styles/table-shared.styles.js +0 -33
- package/dist/features/table/table-cell/table-cell.d.ts +0 -59
- package/dist/features/table/table-cell/table-cell.js +0 -73
- package/dist/features/table/table-cell/table-cell.styles.d.ts +0 -1
- package/dist/features/table/table-cell/table-cell.styles.js +0 -46
- package/dist/features/table/table-column/table-column.d.ts +0 -73
- package/dist/features/table/table-column/table-column.js +0 -89
- package/dist/features/table/table-column/table-column.styles.d.ts +0 -1
- package/dist/features/table/table-column/table-column.styles.js +0 -51
- package/dist/features/table/table-header/table-header.d.ts +0 -102
- package/dist/features/table/table-header/table-header.js +0 -165
- package/dist/features/table/table-header/table-header.styles.d.ts +0 -1
- package/dist/features/table/table-header/table-header.styles.js +0 -147
- package/dist/features/table/table-item/table-item.d.ts +0 -179
- package/dist/features/table/table-item/table-item.js +0 -291
- package/dist/features/table/table-item/table-item.styles.d.ts +0 -1
- package/dist/features/table/table-item/table-item.styles.js +0 -404
- package/dist/features/table/table-managed/table-managed.d.ts +0 -19
- package/dist/features/table/table-managed/table-managed.js +0 -128
- package/dist/features/table/table-skeleton-row/table-skeleton-row.d.ts +0 -46
- package/dist/features/table/table-skeleton-row/table-skeleton-row.js +0 -110
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.d.ts +0 -12
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +0 -65
- package/dist/mixins/table-row.mixin.d.ts +0 -37
- package/dist/mixins/table-row.mixin.js +0 -103
- package/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as H,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunks/chunk-LK5BJ4SH.js";import{b as O,c as $}from"./chunks/chunk-624VJYNA.js";import{a as A}from"./chunks/chunk-IJJ67C66.js";import{a as w}from"./chunks/chunk-BRSNQMCD.js";import{a as M,b as P,d as y,e as T,f as S}from"./chunks/chunk-647ISUF4.js";import{j as E}from"./chunks/chunk-MJ4RDZLL.js";import{b as C}from"./chunks/chunk-BKZGTCMF.js";import{a as c}from"./chunks/chunk-PPCHQG7P.js";import{a as k}from"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as i,f as D,h as g,j as o,k as p,l as h,p as s,r as d,u as L}from"./chunks/chunk-YITWLCD3.js";var j=g`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -82,13 +82,15 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
#view.swiping-next #view-content {
|
|
85
|
-
animation: scheduler-slide-from-right
|
|
86
|
-
|
|
85
|
+
animation: scheduler-slide-from-right
|
|
86
|
+
var(--scheduler-swipe-duration, var(--eun-duration-m, 200ms))
|
|
87
|
+
var(--eun-easing-out, ease-out);
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
#view.swiping-previous #view-content {
|
|
90
|
-
animation: scheduler-slide-from-left
|
|
91
|
-
|
|
91
|
+
animation: scheduler-slide-from-left
|
|
92
|
+
var(--scheduler-swipe-duration, var(--eun-duration-m, 200ms))
|
|
93
|
+
var(--eun-easing-out, ease-out);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
@keyframes scheduler-slide-from-right {
|
|
@@ -126,7 +128,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
126
128
|
clip: rect(0 0 0 0);
|
|
127
129
|
white-space: nowrap;
|
|
128
130
|
}
|
|
129
|
-
`,
|
|
131
|
+
`,V=j;var U=g`
|
|
130
132
|
#event-popover {
|
|
131
133
|
box-sizing: border-box;
|
|
132
134
|
width: var(--scheduler-popover-width, 300px);
|
|
@@ -249,7 +251,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
249
251
|
gap: var(--eun-space-s, 8px);
|
|
250
252
|
padding: 0 var(--eun-space-m, 16px) var(--eun-space-m, 16px);
|
|
251
253
|
}
|
|
252
|
-
`,
|
|
254
|
+
`,_=U;function N(l){let{event:n,locale:e,editLabel:a,deleteLabel:r,closeLabel:u,priorityLabels:v,readonly:m,onEdit:b,onDelete:Q,onClose:I}=l;return s`
|
|
253
255
|
<div
|
|
254
256
|
class="event-popover-bar"
|
|
255
257
|
style="--_accent: var(--eun-color-${n.color}-600);"
|
|
@@ -260,7 +262,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
260
262
|
rounded
|
|
261
263
|
size="s"
|
|
262
264
|
aria-label=${u}
|
|
263
|
-
@click=${
|
|
265
|
+
@click=${I}
|
|
264
266
|
>
|
|
265
267
|
<eun-icon name="close" size="16"></eun-icon>
|
|
266
268
|
</eun-button>
|
|
@@ -268,7 +270,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
268
270
|
<h3 class="event-popover-title">${n.title}</h3>
|
|
269
271
|
<div class="event-popover-row">
|
|
270
272
|
<eun-icon name="schedule" size="16"></eun-icon>
|
|
271
|
-
<span>${
|
|
273
|
+
<span>${B(n,e)}</span>
|
|
272
274
|
</div>
|
|
273
275
|
${n.location?s`
|
|
274
276
|
<div class="event-popover-row">
|
|
@@ -295,7 +297,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
295
297
|
size="s"
|
|
296
298
|
hide-icon
|
|
297
299
|
color="primary"
|
|
298
|
-
.severity=${
|
|
300
|
+
.severity=${M[n.priority]}
|
|
299
301
|
>${v[n.priority]??n.priority}</eun-tag
|
|
300
302
|
>
|
|
301
303
|
</div>
|
|
@@ -307,7 +309,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
307
309
|
${n.guests.map(f=>s`
|
|
308
310
|
<li class="event-popover-guest" data-status=${f.status}>
|
|
309
311
|
<eun-icon
|
|
310
|
-
name=${
|
|
312
|
+
name=${P[f.status]}
|
|
311
313
|
size="14"
|
|
312
314
|
aria-hidden="true"
|
|
313
315
|
></eun-icon>
|
|
@@ -318,27 +320,27 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
318
320
|
</div>
|
|
319
321
|
`:d}
|
|
320
322
|
</div>
|
|
321
|
-
${
|
|
323
|
+
${m?d:s`
|
|
322
324
|
<div class="event-popover-actions">
|
|
323
325
|
<eun-button
|
|
324
326
|
color="critical"
|
|
325
327
|
size="s"
|
|
326
328
|
appearance="outline"
|
|
327
329
|
rounded
|
|
328
|
-
@click=${
|
|
330
|
+
@click=${Q}
|
|
329
331
|
>${r}</eun-button
|
|
330
332
|
>
|
|
331
|
-
<eun-button color="primary" size="s" rounded @click=${
|
|
333
|
+
<eun-button color="primary" size="s" rounded @click=${b}
|
|
332
334
|
>${a}</eun-button
|
|
333
335
|
>
|
|
334
336
|
</div>
|
|
335
337
|
`}
|
|
336
|
-
`}function
|
|
338
|
+
`}function B(l,n){let e={weekday:"long",day:"numeric",month:"long"};if(S(l)){let v=l.start.toLocaleDateString(n,e),m=l.end.toLocaleDateString(n,e),b=v===m?v:`${v} \u2013 ${m}`;return l.allDay?`All day \xB7 ${b}`:b}let a=l.start.toLocaleDateString(n,e),r=l.start.toLocaleTimeString(n,{hour:"numeric",minute:"2-digit"}),u=l.end.toLocaleTimeString(n,{hour:"numeric",minute:"2-digit"});return`${a} \xB7 ${r} \u2013 ${u}`}var q="eun-scheduler",R=["day","week","work-week","month","year"],t=class extends k(z(L)){constructor(){super(...arguments);this.events=[];this.view="week";this.displayedDate=new Date;this.weekStartsOn=1;this.dayStartHour=0;this.dayEndHour=24;this.slotDuration=30;this.readonly=!1;this.noAnimation=!1;this.todayLabel="Today";this.newEventLabel="New event";this.viewDayLabel="Day";this.viewWeekLabel="Week";this.viewWorkWeekLabel="Work week";this.viewMonthLabel="Month";this.viewYearLabel="Year";this.applyLabel="Apply";this.deleteLabel="Delete";this.editLabel="Edit";this.moreEventsLabel="+{count} more";this.eventAppearance="default";this.isDrawerOpen=!1;this.isModalOpen=!1;this.editingEvent=null;this.createStart=W(new Date);this.createEnd=E(this.createStart,1);this.editorDirty=!1;this.isMobile=!1;this.selectedEvent=null;this.handleMobileMediaChange=e=>{this.isMobile=e.matches};this.handleToday=()=>{this.displayedDate=new Date};this.handlePrevious=()=>this.navigate(-1);this.handleNext=()=>this.navigate(1);this.handleViewChange=e=>{let[a]=e.target.value;a&&(this.view=a)};this.handleMobileViewSelect=e=>{this.view=e.key};this.handleCalendarPeriodChange=()=>{this.calendarEl&&(this.view!==this.calendarEl.view&&(this.view=this.calendarEl.view),this.displayedDate=this.calendarEl.displayedDate)};this.handleCalendarEventClick=e=>{this.openEventPopover(e.event,e.anchor)};this.handleCalendarSlotClick=e=>{this.openCreateEditor(e.start)};this.handleEventPopoverToggle=e=>{if(e.newState==="open"){this.popoverTriggerEl&&this.eventPopoverEl&&(this.anchorFloatingElement(this.popoverTriggerEl,this.eventPopoverEl,{axis:"horizontal",forceFallback:!0}),this.observeAnchorVisibility(this.popoverTriggerEl,()=>this.closeEventPopover()));return}this.unanchorFloatingElement(),this.unobserveAnchorVisibility(),this.popoverTriggerEl?.focus(),this.popoverTriggerEl=void 0};this.handlePopoverEdit=()=>{let e=this.selectedEvent;this.closeEventPopover(),e&&this.openEditEditor(e)};this.handlePopoverDelete=()=>{let e=this.selectedEvent;this.closeEventPopover(),e&&this.dispatchEvent(new x(e.id))};this.handlePopoverClose=()=>{this.closeEventPopover()};this.handleEditorCreate=e=>{this.dispatchEvent(new H(e.event)),this.closeEditor()};this.handleEditorUpdate=e=>{this.dispatchEvent(new w(e.event)),this.closeEditor()};this.handleCalendarEventMove=e=>{this.dispatchEvent(new w(e.event))};this.handleEditorDelete=e=>{this.dispatchEvent(new x(e.eventId)),this.closeEditor()};this.handleEditorInput=()=>{this.editorDirty=this.drawerEditorEl?.dirty??!1};this.handleDrawerSave=()=>{this.drawerEditorEl?.requestSave()};this.handleDrawerCancel=()=>{this.closeEditor()};this.handleDrawerDelete=()=>{this.drawerEditorEl?.requestDelete()};this.handleModalSave=()=>{this.modalEditorEl?.requestSave()};this.handleModalDelete=()=>{this.modalEditorEl?.requestDelete()};this.handleModalCancel=()=>{this.closeEditor()}}updated(e){if(super.updated(e),e.has("view")||e.has("displayedDate")||e.has("weekStartsOn")){let a=y(this.view,this.displayedDate,this.weekStartsOn);this.dispatchEvent(new A(this.view,a.start,a.end))}}updateMobileMediaQuery(){this.mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaChange),this.mobileMediaQuery=window.matchMedia(C("tablet")),this.mobileMediaQuery.addEventListener("change",this.handleMobileMediaChange),this.isMobile=this.mobileMediaQuery.matches}connectedCallback(){super.connectedCallback?.(),this.updateMobileMediaQuery()}disconnectedCallback(){this.mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaChange),super.disconnectedCallback?.()}navigate(e){this.displayedDate=T(this.view,this.displayedDate,e)}openCreateEditor(e){this.readonly||(this.editingEvent=null,this.createStart=e,this.createEnd=E(e,1),this.openEditorSurface())}openEditEditor(e){this.readonly||(this.editingEvent=e,this.openEditorSurface())}openEventPopover(e,a){this.selectedEvent=e,this.popoverTriggerEl=a,this.updateComplete.then(()=>{let r=this.eventPopoverEl;if(!r)return;let u=this.eventPopoverAnimation!==void 0;this.eventPopoverAnimation?.cancel(),this.eventPopoverAnimation=void 0;let v=!r.matches(":popover-open");v&&r.showPopover(),(v||u)&&this.playEventPopoverOpenAnimation(r)})}eventPopoverAnimationDuration(e){return this.noAnimation||window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:O(e,"--scheduler-popover-transition-duration","s",160)}playEventPopoverOpenAnimation(e){e.style.removeProperty("pointer-events");let a=this.eventPopoverAnimationDuration(e);a!==0&&(this.eventPopoverAnimation=e.animate([{opacity:0,transform:"scale(0.98)"},{opacity:1,transform:"scale(1)"}],{duration:a,easing:$(e),fill:"forwards"}))}closeEventPopover(){let e=this.eventPopoverEl;this.eventPopoverAnimation?.cancel(),this.eventPopoverAnimation=void 0,e?.matches(":popover-open")&&this.playEventPopoverCloseAnimation(e)}playEventPopoverCloseAnimation(e){e.style.pointerEvents="none";let a=this.eventPopoverAnimationDuration(e);if(a===0){e.hidePopover();return}let r=e.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.98)"}],{duration:a,easing:$(e),fill:"forwards"});this.eventPopoverAnimation=r,r.finished.then(()=>{this.eventPopoverAnimation===r&&(this.eventPopoverAnimation=void 0),e.hidePopover()}).catch(()=>{})}openEditorSurface(){this.editorDirty=!1,this.isMobile?this.isModalOpen=!0:this.isDrawerOpen=!0}closeEditor(){this.isDrawerOpen=!1,this.isModalOpen=!1,this.editingEvent=null,this.editorDirty=!1}renderNavArrows(){return s`
|
|
337
339
|
<div id="header-nav-arrows">
|
|
338
340
|
<eun-button
|
|
339
341
|
appearance="ghost"
|
|
340
342
|
size="s"
|
|
341
|
-
aria-label=${this.
|
|
343
|
+
aria-label=${this.previousLabel??this.dictionary.scheduler.previous}
|
|
342
344
|
@click=${this.handlePrevious}
|
|
343
345
|
>
|
|
344
346
|
<eun-icon name="chevron_left" size="18"></eun-icon>
|
|
@@ -349,7 +351,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
349
351
|
<eun-button
|
|
350
352
|
appearance="ghost"
|
|
351
353
|
size="s"
|
|
352
|
-
aria-label=${this.
|
|
354
|
+
aria-label=${this.nextLabel??this.dictionary.scheduler.next}
|
|
353
355
|
@click=${this.handleNext}
|
|
354
356
|
>
|
|
355
357
|
<eun-icon name="chevron_right" size="18"></eun-icon>
|
|
@@ -361,7 +363,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
361
363
|
id=${c(e?void 0:"header-create-button")}
|
|
362
364
|
size=${c(e?"s":void 0)}
|
|
363
365
|
aria-label=${this.newEventLabel}
|
|
364
|
-
@click=${()=>this.openCreateEditor(
|
|
366
|
+
@click=${()=>this.openCreateEditor(W(new Date))}
|
|
365
367
|
>
|
|
366
368
|
<eun-icon name="add" size=${e?"12":"18"}></eun-icon>
|
|
367
369
|
</eun-button>
|
|
@@ -384,7 +386,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
384
386
|
appearance="flat"
|
|
385
387
|
size="s"
|
|
386
388
|
label=${this.viewLabel(this.view)}
|
|
387
|
-
.options=${
|
|
389
|
+
.options=${R.map(a=>({key:a,label:this.viewLabel(a)}))}
|
|
388
390
|
@eunselect=${this.handleMobileViewSelect}
|
|
389
391
|
></eun-dropdown-button>
|
|
390
392
|
</div>
|
|
@@ -393,7 +395,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
393
395
|
<eun-toggle-group
|
|
394
396
|
single
|
|
395
397
|
aria-label=${this.dictionary.scheduler.calendarView}
|
|
396
|
-
.options=${
|
|
398
|
+
.options=${R.map(a=>({label:this.viewLabel(a),value:a}))}
|
|
397
399
|
.value=${[this.view]}
|
|
398
400
|
@eunchange=${this.handleViewChange}
|
|
399
401
|
></eun-toggle-group>
|
|
@@ -450,7 +452,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
450
452
|
>`:d}
|
|
451
453
|
<span style="flex: 1 1 auto;"></span>
|
|
452
454
|
<eun-button appearance="ghost" @click=${this.handleDrawerCancel}
|
|
453
|
-
>${this.cancelLabel}</eun-button
|
|
455
|
+
>${this.cancelLabel??this.dictionary.common.cancel}</eun-button
|
|
454
456
|
>
|
|
455
457
|
<eun-button color="primary" @click=${this.handleDrawerSave}
|
|
456
458
|
>${this.applyLabel}</eun-button
|
|
@@ -476,14 +478,12 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
476
478
|
@euneventdelete=${this.handleEditorDelete}
|
|
477
479
|
></eun-scheduler-event-editor>
|
|
478
480
|
<div slot="footer">
|
|
479
|
-
${this.editingEvent?s`<eun-button
|
|
480
|
-
color="critical"
|
|
481
|
-
@click=${this.handleModalDelete}
|
|
481
|
+
${this.editingEvent?s`<eun-button color="critical" @click=${this.handleModalDelete}
|
|
482
482
|
>${this.deleteLabel}</eun-button
|
|
483
483
|
>`:d}
|
|
484
484
|
<span style="flex: 1 1 auto;"></span>
|
|
485
485
|
<eun-button color="secondary" @click=${this.handleModalCancel}
|
|
486
|
-
>${this.cancelLabel}</eun-button
|
|
486
|
+
>${this.cancelLabel??this.dictionary.common.cancel}</eun-button
|
|
487
487
|
>
|
|
488
488
|
<eun-button color="primary" @click=${this.handleModalSave}
|
|
489
489
|
>${this.applyLabel}</eun-button
|
|
@@ -492,6 +492,6 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunk
|
|
|
492
492
|
</eun-modal>
|
|
493
493
|
|
|
494
494
|
<div id="event-popover" popover @toggle=${this.handleEventPopoverToggle}>
|
|
495
|
-
${this.selectedEvent?N({event:this.selectedEvent,locale:this.locale,editLabel:this.editLabel,deleteLabel:this.deleteLabel,closeLabel:this.closeLabel,priorityLabels:{low:"Low",medium:"Medium",high:"High",critical:"Critical"},readonly:this.readonly,onEdit:this.handlePopoverEdit,onDelete:this.handlePopoverDelete,onClose:this.handlePopoverClose}):d}
|
|
495
|
+
${this.selectedEvent?N({event:this.selectedEvent,locale:this.locale,editLabel:this.editLabel,deleteLabel:this.deleteLabel,closeLabel:this.closeLabel??this.dictionary.common.close,priorityLabels:{low:"Low",medium:"Medium",high:"High",critical:"Critical"},readonly:this.readonly,onEdit:this.handlePopoverEdit,onDelete:this.handlePopoverDelete,onClose:this.handlePopoverClose}):d}
|
|
496
496
|
</div>
|
|
497
|
-
`}viewLabel(e){switch(e){case"day":return this.viewDayLabel;case"week":return this.viewWeekLabel;case"work-week":return this.viewWorkWeekLabel;case"month":return this.viewMonthLabel;case"year":return this.viewYearLabel;default:return e}}};t.styles=[
|
|
497
|
+
`}viewLabel(e){switch(e){case"day":return this.viewDayLabel;case"week":return this.viewWeekLabel;case"work-week":return this.viewWorkWeekLabel;case"month":return this.viewMonthLabel;case"year":return this.viewYearLabel;default:return e}}};t.styles=[V,_],i([o({attribute:!1})],t.prototype,"events",2),i([o({reflect:!0,useDefault:!0})],t.prototype,"view",2),i([o({attribute:!1})],t.prototype,"displayedDate",2),i([o({type:Number,attribute:"week-starts-on"})],t.prototype,"weekStartsOn",2),i([o({type:Number,attribute:"day-start-hour"})],t.prototype,"dayStartHour",2),i([o({type:Number,attribute:"day-end-hour"})],t.prototype,"dayEndHour",2),i([o({type:Number,attribute:"slot-duration"})],t.prototype,"slotDuration",2),i([o({type:Boolean,reflect:!0})],t.prototype,"readonly",2),i([o({type:Boolean,reflect:!0,attribute:"no-animation"})],t.prototype,"noAnimation",2),i([o({attribute:"today-label"})],t.prototype,"todayLabel",2),i([o({attribute:"new-event-label"})],t.prototype,"newEventLabel",2),i([o({attribute:"previous-label"})],t.prototype,"previousLabel",2),i([o({attribute:"next-label"})],t.prototype,"nextLabel",2),i([o({attribute:"view-day-label"})],t.prototype,"viewDayLabel",2),i([o({attribute:"view-week-label"})],t.prototype,"viewWeekLabel",2),i([o({attribute:"view-work-week-label"})],t.prototype,"viewWorkWeekLabel",2),i([o({attribute:"view-month-label"})],t.prototype,"viewMonthLabel",2),i([o({attribute:"view-year-label"})],t.prototype,"viewYearLabel",2),i([o({attribute:"apply-label"})],t.prototype,"applyLabel",2),i([o({attribute:"cancel-label"})],t.prototype,"cancelLabel",2),i([o({attribute:"delete-label"})],t.prototype,"deleteLabel",2),i([o({attribute:"edit-label"})],t.prototype,"editLabel",2),i([o({attribute:"close-label"})],t.prototype,"closeLabel",2),i([o({attribute:"more-events-label"})],t.prototype,"moreEventsLabel",2),i([o({attribute:"event-appearance"})],t.prototype,"eventAppearance",2),i([p()],t.prototype,"isDrawerOpen",2),i([p()],t.prototype,"isModalOpen",2),i([p()],t.prototype,"editingEvent",2),i([p()],t.prototype,"createStart",2),i([p()],t.prototype,"createEnd",2),i([p()],t.prototype,"editorDirty",2),i([p()],t.prototype,"isMobile",2),i([h("#editor")],t.prototype,"drawerEditorEl",2),i([h("#editor-mobile")],t.prototype,"modalEditorEl",2),i([p()],t.prototype,"selectedEvent",2),i([h("#event-popover")],t.prototype,"eventPopoverEl",2),i([h("#calendar")],t.prototype,"calendarEl",2),t=i([D(q)],t);function W(l){let n=new Date(l);return n.setHours(n.getHours()+1,0,0,0),n}function F(l,n,e,a,r){switch(l){case"day":return e.toLocaleDateString(r,{weekday:"long",day:"numeric",month:"long",year:"numeric"});case"year":return String(n.getFullYear());case"month":return n.toLocaleDateString(r,{month:"long",year:"numeric"});default:return`${e.toLocaleDateString(r,{day:"numeric",month:"short"})} \u2013 ${a.toLocaleDateString(r,{day:"numeric",month:"short",year:"numeric"})}`}}export{t as EunomiaScheduler,q as EunomiaSchedulerTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as g}from"./chunks/chunk-
|
|
1
|
+
import{b as g}from"./chunks/chunk-BVASCT2V.js";import{a as A,b as L,c as k}from"./chunks/chunk-GWLD2I3P.js";import"./chunks/chunk-UVHVQRPT.js";import{a as y,b as w}from"./chunks/chunk-LVKMAHMU.js";import"./chunks/chunk-L74LXUGL.js";import{a as x}from"./chunks/chunk-LK5BJ4SH.js";import"./chunks/chunk-UYZR4JXZ.js";import{b as T,c}from"./chunks/chunk-624VJYNA.js";import{a as h}from"./chunks/chunk-LYYQAALT.js";import"./chunks/chunk-WW4BTWMH.js";import"./chunks/chunk-GVS6IUKC.js";import"./chunks/chunk-BO3JOEWM.js";import"./chunks/chunk-TLBXTBMM.js";import{a as m}from"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-3BMACIDO.js";import{a as d}from"./chunks/chunk-PPCHQG7P.js";import{a as v}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as r,f,h as b,j as n,k as u,l,p as o,r as a}from"./chunks/chunk-YITWLCD3.js";var D=b`
|
|
2
2
|
#shortcut-hint {
|
|
3
3
|
flex-shrink: 0;
|
|
4
4
|
display: inline-flex;
|
|
@@ -20,15 +20,16 @@ import{b as g}from"./chunks/chunk-EAKYD33D.js";import{a as L,b as k}from"./chunk
|
|
|
20
20
|
:host([loading]) #clear {
|
|
21
21
|
display: none;
|
|
22
22
|
}
|
|
23
|
+
#field-loader {
|
|
24
|
+
color: var(--field-loader-color, var(--_iconColor));
|
|
25
|
+
}
|
|
23
26
|
#field-wrapper #field-loader {
|
|
24
27
|
position: absolute;
|
|
25
28
|
right: var(--eun-space-s, 8px);
|
|
26
29
|
pointer-events: none;
|
|
27
|
-
color: var(--_iconColor);
|
|
28
30
|
}
|
|
29
31
|
#search-trigger #field-loader {
|
|
30
32
|
flex-shrink: 0;
|
|
31
|
-
color: var(--_iconColor);
|
|
32
33
|
}
|
|
33
34
|
#search-trigger {
|
|
34
35
|
position: relative;
|
|
@@ -48,8 +49,8 @@ import{b as g}from"./chunks/chunk-EAKYD33D.js";import{a as L,b as k}from"./chunk
|
|
|
48
49
|
appearance: none;
|
|
49
50
|
outline: 1px solid transparent;
|
|
50
51
|
transition:
|
|
51
|
-
outline
|
|
52
|
-
border-color
|
|
52
|
+
outline var(--eun-duration-s, 150ms) var(--eun-easing-default, ease),
|
|
53
|
+
border-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease);
|
|
53
54
|
}
|
|
54
55
|
:host(:not([aria-disabled="true"])) #search-trigger:hover {
|
|
55
56
|
border-color: var(
|
|
@@ -137,24 +138,22 @@ import{b as g}from"./chunks/chunk-EAKYD33D.js";import{a as L,b as k}from"./chunk
|
|
|
137
138
|
gap: var(--eun-space-xs, 4px);
|
|
138
139
|
padding: var(--eun-space-s, 8px) var(--eun-space-m, 16px);
|
|
139
140
|
}
|
|
140
|
-
`,
|
|
141
|
-
${a.group}
|
|
142
|
-
</li>`)),t.push(o`
|
|
141
|
+
`,I=D;var O="eun-search",i=class extends x(g){constructor(){super(...arguments);this.type="search";this.icon="search";this.clearable=!0;this.shortcut=!1;this.panel=!1;this.loading=!1;this.loadingLabel="Loading\u2026";this.suggestions=!1;this.noResultsLabel="No results";this.isOpen=!1;this.highlightedIndex=-1;this.handleFieldPointerDown=()=>{this.fieldPointerDownAt=performance.now()};this.handleSuggestionsFieldActivate=()=>{!this.suggestions||this.panel||this.isOpen||this.openSuggestions()};this.handleSuggestionsInput=()=>{!this.suggestions||this.panel||(this.highlightedIndex=-1,this.isOpen||this.openSuggestions())};this.handleSuggestionsKeydown=e=>{if(!(!this.suggestions||this.panel))switch(e.key){case"ArrowDown":{e.preventDefault(),this.isOpen||this.openSuggestions(),this.filteredOptions.length&&(this.highlightedIndex=Math.min(this.highlightedIndex+1,this.filteredOptions.length-1));break}case"ArrowUp":{e.preventDefault(),this.isOpen||this.openSuggestions(),this.filteredOptions.length&&(this.highlightedIndex=Math.max(this.highlightedIndex-1,0));break}case"Enter":{let t=this.filteredOptions[this.highlightedIndex];t&&(e.preventDefault(),this.handleSelect(t));break}default:break}};this.handleSuggestionsPopoverToggle=e=>{if(e.newState==="open"){this.isOpen=!0,this.fieldWrapperEl&&this.listboxEl&&this.anchorFloatingElement(this.fieldWrapperEl,this.listboxEl,{forceFallback:h}),this.observeAnchorVisibility(this.fieldWrapperEl,()=>this.closeSuggestions());return}if(this.fieldPointerDownAt!==void 0&&performance.now()-this.fieldPointerDownAt<i.FIELD_POINTER_DOWN_WINDOW_MS){this.fieldPointerDownAt=void 0,this.openSuggestions();return}this.isOpen=!1,this.highlightedIndex=-1,this.unanchorFloatingElement(),this.unobserveAnchorVisibility()};this.handleShortcut=e=>{!this.shortcut||this.disabled||(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()==="k"&&(e.preventDefault(),this.panel?this.openPanel():this.focus())}}connectedCallback(){super.connectedCallback?.(),window.addEventListener("keydown",this.handleShortcut)}disconnectedCallback(){window.removeEventListener("keydown",this.handleShortcut),super.disconnectedCallback?.()}willUpdate(e){super.willUpdate(e),this.type!=="search"&&(this.type="search")}focusTarget(){return this.panel?this.triggerEl:super.focusTarget()}openPanel(){this.modalEl?.show()}closePanel(){this.modalEl?.hide()}firstUpdated(e){super.firstUpdated(e);let t=this.shadowRoot?.getElementById("field");t&&(t.addEventListener("pointerdown",this.handleFieldPointerDown),t.addEventListener("focus",this.handleSuggestionsFieldActivate),t.addEventListener("click",this.handleSuggestionsFieldActivate),t.addEventListener("input",this.handleSuggestionsInput),t.addEventListener("keydown",this.handleSuggestionsKeydown))}get options(){return A(this.children)}get effectiveQuery(){return(this.value??"").trim().toLowerCase()}get filteredOptions(){let e=this.effectiveQuery;return e?this.options.filter(t=>t.label.toLowerCase().includes(e)):this.options}openSuggestions(){if(this.disabled||this.readonly){this.fieldPointerDownAt=void 0;return}let e=this.listboxEl;this.listboxAnimation?.cancel(),this.listboxAnimation=void 0,e?.matches(":popover-open")||e?.showPopover(),e&&this.playListboxOpenAnimation(e)}static listboxAnimationDuration(e){return window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:T(e,"--field-listbox-transition-duration","m",200)}playListboxOpenAnimation(e){e.style.removeProperty("pointer-events");let t=i.listboxAnimationDuration(e);t!==0&&(this.listboxAnimation=e.animate([{opacity:0,transform:"scaleY(0.01)"},{opacity:1,transform:"scaleY(1)"}],{duration:t,easing:c(e),fill:"forwards"}))}closeSuggestions(){let e=this.listboxEl;this.listboxAnimation?.cancel(),this.listboxAnimation=void 0,e?.matches(":popover-open")&&this.playListboxCloseAnimation(e)}playListboxCloseAnimation(e){e.style.pointerEvents="none";let t=i.listboxAnimationDuration(e);if(t===0){e.hidePopover();return}let s=e.animate([{opacity:1,transform:"scaleY(1)"},{opacity:0,transform:"scaleY(0.01)"}],{duration:t,easing:c(e),fill:"forwards"});this.listboxAnimation=s,s.finished.then(()=>{this.listboxAnimation===s&&(this.listboxAnimation=void 0),e.hidePopover()}).catch(()=>{})}handleSelect(e){this.value=e.label,this.dispatchEvent(new m),this.closeSuggestions()}renderSuggestionOptionRows(e){let t=this.effectiveQuery;return k(e,(s,p)=>o`
|
|
143
142
|
<li
|
|
144
|
-
id="listbox-option-${
|
|
143
|
+
id="listbox-option-${p}"
|
|
145
144
|
role="option"
|
|
146
|
-
aria-selected=${
|
|
147
|
-
class=${
|
|
148
|
-
@mousedown=${
|
|
149
|
-
@mouseenter=${()=>{this.highlightedIndex=
|
|
145
|
+
aria-selected=${s.label.toLowerCase()===t}
|
|
146
|
+
class=${v({highlighted:p===this.highlightedIndex,selected:s.label.toLowerCase()===t})}
|
|
147
|
+
@mousedown=${$=>{$.preventDefault(),this.handleSelect(s)}}
|
|
148
|
+
@mouseenter=${()=>{this.highlightedIndex=p}}
|
|
150
149
|
>
|
|
151
|
-
${
|
|
150
|
+
${L(s.label,t)}
|
|
152
151
|
</li>
|
|
153
|
-
`)}
|
|
152
|
+
`)}renderSuggestionsListbox(){return o`
|
|
154
153
|
<ul
|
|
155
154
|
id="listbox"
|
|
156
155
|
role="listbox"
|
|
157
|
-
aria-label=${
|
|
156
|
+
aria-label=${d(this.label)}
|
|
158
157
|
popover="auto"
|
|
159
158
|
@toggle=${this.handleSuggestionsPopoverToggle}
|
|
160
159
|
>
|
|
@@ -169,19 +168,19 @@ import{b as g}from"./chunks/chunk-EAKYD33D.js";import{a as L,b as k}from"./chunk
|
|
|
169
168
|
variant="spinner"
|
|
170
169
|
size="16"
|
|
171
170
|
label=${this.loadingLabel}
|
|
172
|
-
></eun-loader>`:e?
|
|
171
|
+
></eun-loader>`:e?a:this.panel?o`<kbd id="shortcut-hint" aria-hidden="true">Esc</kbd>`:this.shortcut?o`<kbd id="shortcut-hint" aria-hidden="true"
|
|
173
172
|
>${this.shortcutLabel}</kbd
|
|
174
|
-
>`:
|
|
173
|
+
>`:a}hasTrailingAddon(){return this.loading||this.panel||this.shortcut}renderTriggerIndicator(){return this.shortcut?o`<kbd id="shortcut-hint" aria-hidden="true"
|
|
175
174
|
>${this.shortcutLabel}</kbd
|
|
176
|
-
>`:
|
|
175
|
+
>`:a}updated(e){super.updated(e);let t=this.shadowRoot?.getElementById("field");t&&(this.shortcut&&!this.panel?t.hasAttribute("aria-keyshortcuts")||t.setAttribute("aria-keyshortcuts","Control+K Meta+K"):t.removeAttribute("aria-keyshortcuts"),this.panel?t.hasAttribute("autofocus")||t.setAttribute("autofocus",""):t.removeAttribute("autofocus"),this.syncSuggestionsAria(t))}syncSuggestionsAria(e){if(!this.suggestions||this.panel){e.removeAttribute("role"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-autocomplete"),e.removeAttribute("aria-activedescendant");return}e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",this.isOpen?"true":"false"),e.setAttribute("aria-controls","listbox"),this.highlightedIndex>=0?e.setAttribute("aria-activedescendant",`listbox-option-${this.highlightedIndex}`):e.removeAttribute("aria-activedescendant")}render(){if(!this.panel)return super.render();let e=this.renderDescription();return o`
|
|
177
176
|
<div id="wrapper">
|
|
178
177
|
${this.renderFormLabels("search-trigger")}
|
|
179
178
|
<button
|
|
180
179
|
id="search-trigger"
|
|
181
180
|
type="button"
|
|
182
181
|
aria-haspopup="dialog"
|
|
183
|
-
aria-label=${
|
|
184
|
-
aria-keyshortcuts=${
|
|
182
|
+
aria-label=${d(this.label)}
|
|
183
|
+
aria-keyshortcuts=${d(this.shortcut?"Control+K Meta+K":void 0)}
|
|
185
184
|
?disabled=${this.disabled}
|
|
186
185
|
@click=${this.openPanel}
|
|
187
186
|
>
|
|
@@ -189,7 +188,7 @@ import{b as g}from"./chunks/chunk-EAKYD33D.js";import{a as L,b as k}from"./chunk
|
|
|
189
188
|
id="trigger-icon"
|
|
190
189
|
name=${this.icon}
|
|
191
190
|
size="16"
|
|
192
|
-
></eun-icon>`:
|
|
191
|
+
></eun-icon>`:a}
|
|
193
192
|
<span id="trigger-text" class="empty">${this.placeholder||""}</span>
|
|
194
193
|
${this.renderTriggerIndicator()}
|
|
195
194
|
</button>
|
|
@@ -198,10 +197,10 @@ import{b as g}from"./chunks/chunk-EAKYD33D.js";import{a as L,b as k}from"./chunk
|
|
|
198
197
|
kind="search"
|
|
199
198
|
hide-actions
|
|
200
199
|
.closeable=${!1}
|
|
201
|
-
aria-label=${this.label||this.
|
|
200
|
+
aria-label=${this.label||(this.panelLabel??this.dictionary.search.panel)}
|
|
202
201
|
>
|
|
203
202
|
<div id="panel-field">
|
|
204
|
-
${this.renderField(e!==
|
|
203
|
+
${this.renderField(e!==a)}
|
|
205
204
|
</div>
|
|
206
205
|
<div id="panel-results">
|
|
207
206
|
<slot name="results"></slot>
|
|
@@ -209,4 +208,4 @@ import{b as g}from"./chunks/chunk-EAKYD33D.js";import{a as L,b as k}from"./chunk
|
|
|
209
208
|
</eun-modal>
|
|
210
209
|
${e}
|
|
211
210
|
</div>
|
|
212
|
-
`}};i.styles=[g.styles,
|
|
211
|
+
`}};i.styles=[g.styles,y,...h?[]:[w],I],i.FIELD_POINTER_DOWN_WINDOW_MS=100,r([n({reflect:!0,converter:{toAttribute:()=>null}})],i.prototype,"type",2),r([n()],i.prototype,"icon",2),r([n({type:Boolean})],i.prototype,"clearable",2),r([n({type:Boolean})],i.prototype,"shortcut",2),r([n({type:Boolean})],i.prototype,"panel",2),r([n({attribute:"panel-label"})],i.prototype,"panelLabel",2),r([n({type:Boolean,reflect:!0})],i.prototype,"loading",2),r([n({attribute:"loading-label"})],i.prototype,"loadingLabel",2),r([n({type:Boolean,reflect:!0})],i.prototype,"suggestions",2),r([n({attribute:"no-results-label"})],i.prototype,"noResultsLabel",2),r([u()],i.prototype,"isOpen",2),r([u()],i.prototype,"highlightedIndex",2),r([l("#panel")],i.prototype,"modalEl",2),r([l("#field-wrapper")],i.prototype,"fieldWrapperEl",2),r([l("#search-trigger")],i.prototype,"triggerEl",2),r([l("#listbox")],i.prototype,"listboxEl",2),i=r([f(O)],i);export{i as EunomiaSearch,O as EunomiaSearchTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as H,b as P,c as R}from"./chunks/chunk-GWLD2I3P.js";import{a as A}from"./chunks/chunk-UVHVQRPT.js";import{a as D,b as F}from"./chunks/chunk-LVKMAHMU.js";import{a as C}from"./chunks/chunk-LK5BJ4SH.js";import{a as E}from"./chunks/chunk-UYZR4JXZ.js";import{b as V,c as g}from"./chunks/chunk-624VJYNA.js";import{a as b}from"./chunks/chunk-LYYQAALT.js";import{a as k}from"./chunks/chunk-GVS6IUKC.js";import{a as T}from"./chunks/chunk-BO3JOEWM.js";import{c as M,d as I,e as O,f as u}from"./chunks/chunk-TLBXTBMM.js";import{a as f}from"./chunks/chunk-YYCEPZUN.js";import{a as $}from"./chunks/chunk-3BMACIDO.js";import{a as p}from"./chunks/chunk-PPCHQG7P.js";import{a as d}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as w}from"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as n,f as x,h as y,j as r,k as h,l as c,n as m,p as o,r as l,u as L}from"./chunks/chunk-YITWLCD3.js";var N=y`
|
|
2
2
|
#field {
|
|
3
3
|
padding-inline-end: calc(var(--eun-space-l, 32px) * 1.2);
|
|
4
4
|
}
|
|
@@ -24,7 +24,8 @@ import{a as D,b as P}from"./chunks/chunk-KBH5PCUO.js";import{a as O}from"./chunk
|
|
|
24
24
|
pointer-events: none;
|
|
25
25
|
color: var(--_iconColor);
|
|
26
26
|
font-size: var(--eun-font-size-s, 14px);
|
|
27
|
-
transition: transform
|
|
27
|
+
transition: transform var(--eun-duration-s, 150ms)
|
|
28
|
+
var(--eun-easing-default, ease);
|
|
28
29
|
}
|
|
29
30
|
#select-arrow.open {
|
|
30
31
|
transform: rotate(180deg);
|
|
@@ -33,7 +34,7 @@ import{a as D,b as P}from"./chunks/chunk-KBH5PCUO.js";import{a as O}from"./chunk
|
|
|
33
34
|
position: absolute;
|
|
34
35
|
right: var(--eun-space-m, 16px);
|
|
35
36
|
pointer-events: none;
|
|
36
|
-
color: var(--_iconColor);
|
|
37
|
+
color: var(--field-loader-color, var(--_iconColor));
|
|
37
38
|
}
|
|
38
39
|
.has-icon #field {
|
|
39
40
|
padding-inline-start: calc(
|
|
@@ -104,38 +105,38 @@ import{a as D,b as P}from"./chunks/chunk-KBH5PCUO.js";import{a as O}from"./chunk
|
|
|
104
105
|
outline-offset: 2px;
|
|
105
106
|
border-radius: var(--eun-border-radius-m);
|
|
106
107
|
}
|
|
107
|
-
`,
|
|
108
|
-
${r.group}
|
|
109
|
-
</li>`));let g=this.isSelected(r);i.push(o`
|
|
108
|
+
`,B=[E,D,...b?[]:[F],N];var W="eun-select",q=$(O(L)),z=w(C(k(T(I(A(M(q))))))),t=class extends z{constructor(){super(...arguments);this.errorOnChange=!0;this.searchable=!1;this.native=!1;this.multiple=!1;this.noAnimation=!1;this.searchPlaceholder="Search\u2026";this.selectPlaceholder="Select\u2026";this.noResultsLabel="No results";this.loading=!1;this.loadingLabel="Loading\u2026";this.searchQuery="";this.isOpen=!1;this.highlightedIndex=-1;this.typeaheadBuffer="";this.handleIconSlotChange=()=>{this.requestUpdate()};this.handleActionsSlotChange=()=>{this.requestUpdate()};this.handleHostFocus=()=>{this.fieldEl?.focus()};this.handleWindowBlur=()=>{this.isOpen&&this.closeListbox()};this.handleFocusOut=()=>{this.isOpen&&requestAnimationFrame(()=>{this.matches(":focus-within")||this.closeListbox()})};this.handleFieldPointerDown=()=>{this.fieldPointerDownAt=performance.now()};this.handlePopoverToggle=e=>{if(e.newState==="open"){this.isOpen=!0,this.fieldWrapperEl&&this.listboxEl&&this.anchorFloatingElement(this.fieldWrapperEl,this.listboxEl,{forceFallback:b}),this.observeAnchorVisibility(this.fieldWrapperEl,()=>this.closeListbox());return}if(this.fieldPointerDownAt!==void 0&&performance.now()-this.fieldPointerDownAt<t.FIELD_POINTER_DOWN_WINDOW_MS){this.fieldPointerDownAt=void 0,this.openListbox();return}this.isOpen=!1,this.searchQuery=this.selectedLabel,this.highlightedIndex=-1,this.unanchorFloatingElement(),this.unobserveAnchorVisibility(),this.readonlyAvailable&&this.editing&&this.cancelEdit()};this.handleConfirmClick=()=>{this.closeListbox(),this.confirmEdit()}}get defaultValue(){return super.defaultValue}set defaultValue(e){let i=this.hasAttribute("multiple")&&typeof e=="string"?e.split(",").filter(Boolean):e;super.defaultValue=i}get value(){return super.value}set value(e){let i=this.hasAttribute("multiple")&&typeof e=="string"?e.split(",").filter(Boolean):e;super.value=i}connectedCallback(){super.connectedCallback?.(),this.addEventListener("focus",this.handleHostFocus),window.addEventListener("blur",this.handleWindowBlur)}disconnectedCallback(){this.removeEventListener("focus",this.handleHostFocus),window.removeEventListener("blur",this.handleWindowBlur),clearTimeout(this.typeaheadTimer),super.disconnectedCallback?.()}get options(){return H(this.children)}get selectedValues(){return this.multiple?this.value??[]:this.value?[this.value]:[]}isSelected(e){return this.selectedValues.includes(e.value)}get selectedLabel(){let e=this.selectedValues;return this.options.filter(i=>e.includes(i.value)).map(i=>i.label).join(", ")}get hasConfirmSlot(){return this.querySelector('[slot="confirm"]')!==null}get hasConfirmContent(){return this.hasConfirmSlot||!!(this.confirmLabel??this.dictionary.common.confirm)}get effectiveQuery(){if(!this.searchable)return"";let e=this.searchQuery.trim().toLowerCase();return e&&e!==this.selectedLabel.toLowerCase()?e:""}get filteredOptions(){let e=this.effectiveQuery;return e?this.options.filter(i=>i.label.toLowerCase().includes(e)):this.options}get effectivePlaceholder(){return this.placeholder??(this.searchable?this.searchPlaceholder:this.selectPlaceholder)}willUpdate(e){super.willUpdate(e),e.has("value")&&this.searchable&&!this.isOpen&&(this.searchQuery=this.selectedLabel)}firstUpdated(e){super.firstUpdated(e),this.syncOptions()}updated(e){super.updated(e),e.has("editing")&&this.editing&&(this.native?(this.syncOptions(),this.fieldEl?.focus()):this.openListbox()),this.native&&(e.has("value")&&this.fieldEl instanceof HTMLSelectElement&&(this.fieldEl.value=this.value??""),(e.has("readonly")||e.has("disabled"))&&(this.disabled||this.readonly?this.setAttribute("tabindex","-1"):this.removeAttribute("tabindex")))}get hostTabStop(){return!1}getFocusAnchor(){return this.fieldEl??void 0}focus(){super.focus?.(),this.fieldEl?.focus()}openListbox(){if(this.disabled||this.readonly){this.fieldPointerDownAt=void 0;return}let e=this.listboxEl;this.listboxAnimation?.cancel(),this.listboxAnimation=void 0,e?.matches(":popover-open")||e?.showPopover(),e&&this.playListboxOpenAnimation(e),this.fieldEl?.focus(),this.fieldEl instanceof HTMLInputElement&&this.fieldEl.select()}listboxAnimationDuration(e){return this.noAnimation||window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:V(e,"--field-listbox-transition-duration","m",200)}playListboxOpenAnimation(e){e.style.removeProperty("pointer-events");let i=this.listboxAnimationDuration(e);i!==0&&(this.listboxAnimation=e.animate([{opacity:0,transform:"scaleY(0.01)"},{opacity:1,transform:"scaleY(1)"}],{duration:i,easing:g(e),fill:"forwards"}))}closeListbox(){let e=this.listboxEl;this.listboxAnimation?.cancel(),this.listboxAnimation=void 0,e?.matches(":popover-open")&&this.playListboxCloseAnimation(e)}playListboxCloseAnimation(e){e.style.pointerEvents="none";let i=this.listboxAnimationDuration(e);if(i===0){e.hidePopover();return}let s=e.animate([{opacity:1,transform:"scaleY(1)"},{opacity:0,transform:"scaleY(0.01)"}],{duration:i,easing:g(e),fill:"forwards"});this.listboxAnimation=s,s.finished.then(()=>{this.listboxAnimation===s&&(this.listboxAnimation=void 0),e.hidePopover()}).catch(()=>{})}handleFieldActivate(){this.isOpen||this.openListbox()}handleFieldInput(e){this.searchable&&(this.searchQuery=e.target.value,this.highlightedIndex=-1,this.isOpen||this.openListbox())}handleSelect(e){if(this.multiple){let i=this.selectedValues;this.value=i.includes(e.value)?i.filter(s=>s!==e.value):[...i,e.value],this.dispatchEvent(new f(this.value));return}this.value=e.value,this.dispatchEvent(new f(this.value)),this.closeListbox(),this.readonlyAvailable&&this.confirmEdit()}handleNativeChange(e){this.value=e.target.value,this.dispatchEvent(new f(this.value)),this.readonlyAvailable&&this.confirmEdit()}syncOptions(){if(!this.native||!(this.fieldEl instanceof HTMLSelectElement))return;let e=Array.from(this.children).filter(i=>i instanceof HTMLOptionElement||i instanceof HTMLOptGroupElement);this.fieldEl.replaceChildren(...e.map(i=>i.cloneNode(!0))),this.fieldEl.value=this.value??""}handleSlotChange(){this.syncOptions()}handleKeydown(e){switch(e.key){case"ArrowDown":{e.preventDefault(),this.isOpen||this.openListbox();let i=this.filteredOptions;i.length&&(this.highlightedIndex=Math.min(this.highlightedIndex+1,i.length-1));break}case"ArrowUp":{e.preventDefault(),this.isOpen||this.openListbox(),this.filteredOptions.length&&(this.highlightedIndex=Math.max(this.highlightedIndex-1,0));break}case"Home":{if(this.searchable)return;e.preventDefault(),this.isOpen||this.openListbox(),this.filteredOptions.length&&(this.highlightedIndex=0);break}case"End":{if(this.searchable)return;e.preventDefault(),this.isOpen||this.openListbox();let i=this.filteredOptions;i.length&&(this.highlightedIndex=i.length-1);break}case"Enter":{e.preventDefault();let i=this.filteredOptions[this.highlightedIndex];i&&this.handleSelect(i);break}case" ":{if(this.searchable||this.typeaheadBuffer){this.searchable||this.handleTypeahead(e);break}if(e.preventDefault(),!this.isOpen){this.openListbox();break}let i=this.filteredOptions[this.highlightedIndex];i&&this.handleSelect(i);break}default:this.searchable||this.handleTypeahead(e);break}}handleTypeahead(e){if(e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;e.preventDefault(),this.isOpen||this.openListbox();let i=this.filteredOptions;if(!i.length)return;clearTimeout(this.typeaheadTimer),this.typeaheadBuffer+=e.key.toLowerCase(),this.typeaheadTimer=setTimeout(()=>{this.typeaheadBuffer=""},600);let s=(this.highlightedIndex+1)%i.length,a=[...i.slice(s),...i.slice(0,s)].findIndex(v=>v.label.toLowerCase().startsWith(this.typeaheadBuffer));a!==-1&&(this.highlightedIndex=(s+a)%i.length)}renderHighlighted(e){return P(e,this.effectiveQuery)}renderOptionRows(e){return R(e,(i,s)=>{let a=this.isSelected(i);return o`
|
|
110
109
|
<li
|
|
111
|
-
id="listbox-option-${
|
|
110
|
+
id="listbox-option-${s}"
|
|
112
111
|
role="option"
|
|
113
|
-
aria-selected=${
|
|
114
|
-
class=${d({highlighted:
|
|
115
|
-
@mousedown=${
|
|
116
|
-
@mouseenter=${()=>{this.highlightedIndex=
|
|
112
|
+
aria-selected=${a}
|
|
113
|
+
class=${d({highlighted:s===this.highlightedIndex,selected:a})}
|
|
114
|
+
@mousedown=${v=>{v.preventDefault(),this.handleSelect(i)}}
|
|
115
|
+
@mouseenter=${()=>{this.highlightedIndex=s}}
|
|
117
116
|
>
|
|
118
117
|
${this.multiple?o`<span class="option-checkbox" aria-hidden="true"
|
|
119
118
|
><eun-icon name="check" size="12px"></eun-icon
|
|
120
|
-
></span>`:
|
|
121
|
-
${this.searchable?this.renderHighlighted(
|
|
119
|
+
></span>`:l}
|
|
120
|
+
${this.searchable?this.renderHighlighted(i.label):i.label}
|
|
122
121
|
</li>
|
|
123
|
-
`
|
|
122
|
+
`})}get showConfirmLink(){return this.editing||this.multiple&&this.isOpen}renderConfirmLink(){return this.hasConfirmContent?o`
|
|
124
123
|
<button type="button" id="confirm-link" @click=${this.handleConfirmClick}>
|
|
125
|
-
<slot name="confirm"
|
|
124
|
+
<slot name="confirm"
|
|
125
|
+
>${this.confirmLabel??this.dictionary.common.confirm}</slot
|
|
126
|
+
>
|
|
126
127
|
</button>
|
|
127
|
-
`:
|
|
128
|
+
`:l}renderReadonlyDisplay(){let e=this.selectedLabel;return o`
|
|
128
129
|
<div
|
|
129
130
|
id="readonly-display"
|
|
130
131
|
role="button"
|
|
131
132
|
tabindex="0"
|
|
132
|
-
aria-label=${
|
|
133
|
+
aria-label=${p(this.label)}
|
|
133
134
|
@click=${this.startEdit}
|
|
134
135
|
@keydown=${i=>(i.key==="Enter"||i.key===" ")&&this.startEdit()}
|
|
135
136
|
>
|
|
136
137
|
<slot name="readonly-content">
|
|
137
138
|
<span class=${d({empty:!e})}
|
|
138
|
-
>${e||this.emptyValueLabel}</span
|
|
139
|
+
>${e||(this.emptyValueLabel??this.dictionary.common.noValue)}</span
|
|
139
140
|
>
|
|
140
141
|
</slot>
|
|
141
142
|
</div>
|
|
@@ -155,18 +156,18 @@ import{a as D,b as P}from"./chunks/chunk-KBH5PCUO.js";import{a as O}from"./chunk
|
|
|
155
156
|
class=${d({"has-icon":!!this.icon||!!this.iconSlotEls?.length,"has-confirm":this.showConfirmLink})}
|
|
156
157
|
>
|
|
157
158
|
<slot name="icon" @slotchange=${this.handleIconSlotChange}>
|
|
158
|
-
${this.icon?o`<eun-icon id="icon" name=${this.icon} size="16"></eun-icon>`:
|
|
159
|
+
${this.icon?o`<eun-icon id="icon" name=${this.icon} size="16"></eun-icon>`:l}
|
|
159
160
|
</slot>
|
|
160
161
|
<select
|
|
161
162
|
id="field"
|
|
162
163
|
.value=${this.value??""}
|
|
163
|
-
aria-describedby=${e?"description":
|
|
164
|
+
aria-describedby=${e?"description":l}
|
|
164
165
|
?disabled=${this.disabled||this.readonly}
|
|
165
166
|
?required=${this.required}
|
|
166
|
-
aria-invalid=${
|
|
167
|
+
aria-invalid=${this.showError}
|
|
167
168
|
@change=${this.handleNativeChange}
|
|
168
169
|
></select>
|
|
169
|
-
${this.showConfirmLink?this.renderConfirmLink():
|
|
170
|
+
${this.showConfirmLink?this.renderConfirmLink():l}
|
|
170
171
|
${this.renderTrailingIndicator()}
|
|
171
172
|
</div>
|
|
172
173
|
`}renderField(e){let i=this.filteredOptions;return o`
|
|
@@ -175,38 +176,38 @@ import{a as D,b as P}from"./chunks/chunk-KBH5PCUO.js";import{a as O}from"./chunk
|
|
|
175
176
|
class=${d({"has-icon":!!this.icon||!!this.iconSlotEls?.length,"has-confirm":this.showConfirmLink})}
|
|
176
177
|
>
|
|
177
178
|
<slot name="icon" @slotchange=${this.handleIconSlotChange}>
|
|
178
|
-
${this.icon?o`<eun-icon id="icon" name=${this.icon} size="16"></eun-icon>`:
|
|
179
|
+
${this.icon?o`<eun-icon id="icon" name=${this.icon} size="16"></eun-icon>`:l}
|
|
179
180
|
</slot>
|
|
180
181
|
<input
|
|
181
182
|
id="field"
|
|
182
183
|
type="text"
|
|
183
184
|
role="combobox"
|
|
184
|
-
aria-label=${
|
|
185
|
+
aria-label=${p(this.label)}
|
|
185
186
|
aria-expanded=${this.isOpen}
|
|
186
187
|
aria-controls="listbox"
|
|
187
188
|
aria-autocomplete=${this.searchable?"list":"none"}
|
|
188
189
|
aria-activedescendant=${this.highlightedIndex>=0?`listbox-option-${this.highlightedIndex}`:""}
|
|
189
|
-
aria-describedby=${e?"description":
|
|
190
|
+
aria-describedby=${e?"description":l}
|
|
190
191
|
autocomplete="off"
|
|
191
192
|
.value=${this.searchable?this.searchQuery:this.selectedLabel}
|
|
192
193
|
placeholder=${this.effectivePlaceholder}
|
|
193
194
|
?disabled=${this.disabled}
|
|
194
195
|
?readonly=${this.readonly||!this.searchable}
|
|
195
196
|
aria-required=${this.required?"true":"false"}
|
|
196
|
-
aria-invalid=${
|
|
197
|
+
aria-invalid=${this.showError}
|
|
197
198
|
@pointerdown=${this.handleFieldPointerDown}
|
|
198
199
|
@focus=${this.handleFieldActivate}
|
|
199
200
|
@click=${this.handleFieldActivate}
|
|
200
201
|
@input=${this.handleFieldInput}
|
|
201
202
|
@keydown=${this.handleKeydown}
|
|
202
203
|
/>
|
|
203
|
-
${this.showConfirmLink?this.renderConfirmLink():
|
|
204
|
+
${this.showConfirmLink?this.renderConfirmLink():l}
|
|
204
205
|
${this.renderTrailingIndicator()}
|
|
205
206
|
</div>
|
|
206
207
|
<ul
|
|
207
208
|
id="listbox"
|
|
208
209
|
role="listbox"
|
|
209
|
-
aria-label=${
|
|
210
|
+
aria-label=${p(this.label)}
|
|
210
211
|
aria-multiselectable=${this.multiple?"true":"false"}
|
|
211
212
|
popover="auto"
|
|
212
213
|
@toggle=${this.handlePopoverToggle}
|
|
@@ -227,10 +228,10 @@ import{a as D,b as P}from"./chunks/chunk-KBH5PCUO.js";import{a as O}from"./chunk
|
|
|
227
228
|
${this.loadingLabel}
|
|
228
229
|
</li>`]:e.length?this.renderOptionRows(e):[o`<li id="listbox-empty" class="no-results" role="presentation">
|
|
229
230
|
${this.noResultsLabel}
|
|
230
|
-
</li>`]}render(){let e=this.readonlyAvailable&&!this.editing,i=this.renderDescription(),
|
|
231
|
+
</li>`]}render(){let e=this.readonlyAvailable&&!this.editing,i=this.renderDescription(),s=i!==l,a;return e?a=this.renderReadonlyDisplay():this.native?a=this.renderNativeField(s):a=this.renderField(s),o`
|
|
231
232
|
<div id="wrapper" @focusout=${this.handleFocusOut}>
|
|
232
233
|
${this.renderFormLabels(e?void 0:"field")}
|
|
233
|
-
${
|
|
234
|
+
${a} ${i}
|
|
234
235
|
<slot hidden @slotchange=${this.handleSlotChange}></slot>
|
|
235
236
|
</div>
|
|
236
|
-
`}};t.styles=[
|
|
237
|
+
`}};t.styles=[B,u.base,u.errorMessages,u.hintMessages],t.FIELD_POINTER_DOWN_WINDOW_MS=100,n([r({attribute:"default-value"})],t.prototype,"defaultValue",1),n([r()],t.prototype,"value",1),n([r({type:Boolean,reflect:!0})],t.prototype,"searchable",2),n([r({type:Boolean,reflect:!0})],t.prototype,"native",2),n([r({type:Boolean,reflect:!0})],t.prototype,"multiple",2),n([r({type:Boolean,reflect:!0,attribute:"no-animation"})],t.prototype,"noAnimation",2),n([r()],t.prototype,"icon",2),n([r()],t.prototype,"placeholder",2),n([r({attribute:"search-placeholder"})],t.prototype,"searchPlaceholder",2),n([r({attribute:"select-placeholder"})],t.prototype,"selectPlaceholder",2),n([r({attribute:"empty-value-label"})],t.prototype,"emptyValueLabel",2),n([r({attribute:"no-results-label"})],t.prototype,"noResultsLabel",2),n([r({attribute:"confirm-label"})],t.prototype,"confirmLabel",2),n([r({type:Boolean,reflect:!0})],t.prototype,"loading",2),n([r({attribute:"loading-label"})],t.prototype,"loadingLabel",2),n([h()],t.prototype,"searchQuery",2),n([h()],t.prototype,"isOpen",2),n([h()],t.prototype,"highlightedIndex",2),n([c("#field")],t.prototype,"fieldEl",2),n([c("#field-wrapper")],t.prototype,"fieldWrapperEl",2),n([c("#listbox")],t.prototype,"listboxEl",2),n([m({slot:"icon"})],t.prototype,"iconSlotEls",2),n([m({slot:"actions"})],t.prototype,"actionsSlotEls",2),t=n([x(W)],t);export{t as EunomiaSelect,W as EunomiaSelectTagName};
|