@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
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as O,b as E}from"./chunks/chunk-IKAZYVB7.js";import{a as A}from"./chunks/chunk-7HXPLZ7C.js";import{b as z,c as g}from"./chunks/chunk-624VJYNA.js";import{a as S}from"./chunks/chunk-TISMX7UL.js";import{a as f}from"./chunks/chunk-BRSNQMCD.js";import{a as L,b as C,f as k,g as P,h as M,i as T}from"./chunks/chunk-QMXE3KLT.js";import"./chunks/chunk-TWLI2ZOT.js";import"./chunks/chunk-MJ4RDZLL.js";import{b as x}from"./chunks/chunk-OTX6FWAF.js";import{a as u}from"./chunks/chunk-PPCHQG7P.js";import{a as D}from"./chunks/chunk-WP6ZYBAC.js";import"./chunks/chunk-2XPIGFBD.js";import{a as i,f as w,h as b,j as o,k as c,l as m,p as s,r as d,u as $}from"./chunks/chunk-YITWLCD3.js";var F=b`
|
|
2
|
+
.editor-confirm-text {
|
|
3
|
+
flex: 1 1 auto;
|
|
4
|
+
align-self: center;
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
}
|
|
7
|
+
|
|
2
8
|
:host {
|
|
3
9
|
display: block;
|
|
4
10
|
box-sizing: border-box;
|
|
@@ -128,7 +134,7 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
128
134
|
clip: rect(0 0 0 0);
|
|
129
135
|
white-space: nowrap;
|
|
130
136
|
}
|
|
131
|
-
`,
|
|
137
|
+
`,R=F;var W=b`
|
|
132
138
|
#event-popover {
|
|
133
139
|
box-sizing: border-box;
|
|
134
140
|
width: var(--scheduler-popover-width, 300px);
|
|
@@ -205,13 +211,13 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
205
211
|
align-items: flex-start;
|
|
206
212
|
gap: var(--eun-space-s, 8px);
|
|
207
213
|
font-size: 13px;
|
|
208
|
-
color: var(--eun-text-secondary, #
|
|
214
|
+
color: var(--eun-text-secondary, #666e8a);
|
|
209
215
|
}
|
|
210
216
|
|
|
211
217
|
.event-popover-row eun-icon {
|
|
212
218
|
flex: 0 0 auto;
|
|
213
219
|
margin-top: 1px;
|
|
214
|
-
color: var(--eun-text-secondary, #
|
|
220
|
+
color: var(--eun-text-secondary, #666e8a);
|
|
215
221
|
}
|
|
216
222
|
|
|
217
223
|
.event-popover-guests {
|
|
@@ -232,7 +238,7 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
232
238
|
.event-popover-guest eun-icon {
|
|
233
239
|
flex: 0 0 auto;
|
|
234
240
|
margin-top: 0;
|
|
235
|
-
color: var(--_guestStatusColor, var(--eun-text-secondary, #
|
|
241
|
+
color: var(--_guestStatusColor, var(--eun-text-secondary, #666e8a));
|
|
236
242
|
}
|
|
237
243
|
|
|
238
244
|
.event-popover-guest[data-status="confirmed"] {
|
|
@@ -251,91 +257,159 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
251
257
|
gap: var(--eun-space-s, 8px);
|
|
252
258
|
padding: 0 var(--eun-space-m, 16px) var(--eun-space-m, 16px);
|
|
253
259
|
}
|
|
254
|
-
|
|
260
|
+
|
|
261
|
+
.event-popover-confirm {
|
|
262
|
+
flex-wrap: wrap;
|
|
263
|
+
align-items: center;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
#event-popover-confirm-text {
|
|
267
|
+
flex: 1 1 100%;
|
|
268
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
269
|
+
font-weight: 600;
|
|
270
|
+
}
|
|
271
|
+
`,H=W;function V(a){let{event:r,locale:e,closeLabel:n,allDayLabel:l,priorityLabels:v,onClose:p}=a;return s`
|
|
255
272
|
<div
|
|
256
273
|
class="event-popover-bar"
|
|
257
|
-
style
|
|
274
|
+
style=${`--_accent: ${k(r.color)?.accent??"var(--eun-color-blue-600)"};`}
|
|
258
275
|
></div>
|
|
259
276
|
<eun-button
|
|
260
277
|
id="event-popover-close"
|
|
261
278
|
appearance="ghost"
|
|
262
279
|
rounded
|
|
263
280
|
size="s"
|
|
264
|
-
aria-label=${
|
|
265
|
-
@click=${
|
|
281
|
+
aria-label=${n}
|
|
282
|
+
@click=${p}
|
|
266
283
|
>
|
|
267
284
|
<eun-icon name="close" size="16"></eun-icon>
|
|
268
285
|
</eun-button>
|
|
269
286
|
<div class="event-popover-body">
|
|
270
|
-
<h3 class="event-popover-title">${
|
|
287
|
+
<h3 class="event-popover-title">${r.title}</h3>
|
|
271
288
|
<div class="event-popover-row">
|
|
272
289
|
<eun-icon name="schedule" size="16"></eun-icon>
|
|
273
|
-
<span>${
|
|
290
|
+
<span>${Q(r,l,e)}</span>
|
|
274
291
|
</div>
|
|
275
|
-
${
|
|
292
|
+
${r.location?s`
|
|
276
293
|
<div class="event-popover-row">
|
|
277
294
|
<eun-icon name="location_on" size="16"></eun-icon>
|
|
278
|
-
<span>${
|
|
295
|
+
<span>${r.location}</span>
|
|
279
296
|
</div>
|
|
280
297
|
`:d}
|
|
281
|
-
${
|
|
298
|
+
${r.description?s`
|
|
282
299
|
<div class="event-popover-row">
|
|
283
300
|
<eun-icon name="description" size="16"></eun-icon>
|
|
284
|
-
<span>${
|
|
301
|
+
<span>${r.description}</span>
|
|
285
302
|
</div>
|
|
286
303
|
`:d}
|
|
287
|
-
${
|
|
304
|
+
${r.notes?s`
|
|
288
305
|
<div class="event-popover-row">
|
|
289
306
|
<eun-icon name="notes" size="16"></eun-icon>
|
|
290
|
-
<span>${
|
|
307
|
+
<span>${r.notes}</span>
|
|
291
308
|
</div>
|
|
292
309
|
`:d}
|
|
293
|
-
${
|
|
310
|
+
${r.priority?s`
|
|
294
311
|
<div class="event-popover-row">
|
|
295
312
|
<eun-icon name="priority_high" size="16"></eun-icon>
|
|
296
313
|
<eun-tag
|
|
297
314
|
size="s"
|
|
298
315
|
hide-icon
|
|
299
316
|
color="primary"
|
|
300
|
-
.severity=${
|
|
301
|
-
>${
|
|
317
|
+
.severity=${L[r.priority]}
|
|
318
|
+
>${v[r.priority]??r.priority}</eun-tag
|
|
302
319
|
>
|
|
303
320
|
</div>
|
|
304
321
|
`:d}
|
|
305
|
-
${
|
|
322
|
+
${r.guests&&r.guests.length>0?s`
|
|
306
323
|
<div class="event-popover-row">
|
|
307
324
|
<eun-icon name="group" size="16"></eun-icon>
|
|
308
325
|
<ul class="event-popover-guests">
|
|
309
|
-
${
|
|
310
|
-
<li class="event-popover-guest" data-status=${
|
|
326
|
+
${r.guests.map(h=>s`
|
|
327
|
+
<li class="event-popover-guest" data-status=${h.status}>
|
|
311
328
|
<eun-icon
|
|
312
|
-
name=${
|
|
329
|
+
name=${C[h.status]}
|
|
313
330
|
size="14"
|
|
314
331
|
aria-hidden="true"
|
|
315
332
|
></eun-icon>
|
|
316
|
-
${
|
|
333
|
+
${h.email}
|
|
317
334
|
</li>
|
|
318
335
|
`)}
|
|
319
336
|
</ul>
|
|
320
337
|
</div>
|
|
321
338
|
`:d}
|
|
322
339
|
</div>
|
|
323
|
-
${
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
</
|
|
337
|
-
|
|
338
|
-
|
|
340
|
+
${I(a)}
|
|
341
|
+
`}function I(a){return a.readonly?d:a.confirmingDelete?s`
|
|
342
|
+
<div
|
|
343
|
+
class="event-popover-actions event-popover-confirm"
|
|
344
|
+
role="group"
|
|
345
|
+
aria-labelledby="event-popover-confirm-text"
|
|
346
|
+
>
|
|
347
|
+
<span id="event-popover-confirm-text">${a.deleteConfirmLabel}</span>
|
|
348
|
+
<eun-button
|
|
349
|
+
id="event-popover-confirm-cancel"
|
|
350
|
+
appearance="ghost"
|
|
351
|
+
rounded
|
|
352
|
+
@click=${a.onCancelDelete}
|
|
353
|
+
>${a.cancelLabel}</eun-button
|
|
354
|
+
>
|
|
355
|
+
<eun-button
|
|
356
|
+
id="event-popover-confirm-delete"
|
|
357
|
+
color="critical"
|
|
358
|
+
rounded
|
|
359
|
+
@click=${a.onConfirmDelete}
|
|
360
|
+
>${a.deleteLabel}</eun-button
|
|
361
|
+
>
|
|
362
|
+
</div>
|
|
363
|
+
`:s`
|
|
364
|
+
<div class="event-popover-actions">
|
|
365
|
+
<eun-button
|
|
366
|
+
id="event-popover-delete"
|
|
367
|
+
color="critical"
|
|
368
|
+
appearance="outline"
|
|
369
|
+
rounded
|
|
370
|
+
@click=${a.onDelete}
|
|
371
|
+
>${a.deleteLabel}</eun-button
|
|
372
|
+
>
|
|
373
|
+
<eun-button color="primary" rounded @click=${a.onEdit}
|
|
374
|
+
>${a.editLabel}</eun-button
|
|
375
|
+
>
|
|
376
|
+
</div>
|
|
377
|
+
`}function Q(a,r,e){let n={weekday:"long",day:"numeric",month:"long"},l={hour:"numeric",minute:"2-digit"},v=a.start.toLocaleDateString(e,n),p=a.end.toLocaleDateString(e,n);if(a.allDay){let B=v===p?v:`${v} \u2013 ${p}`;return`${r} \xB7 ${B}`}let h=a.start.toLocaleTimeString(e,l),y=a.end.toLocaleTimeString(e,l);return T(a)?`${v} \xB7 ${h} \u2013 ${p} \xB7 ${y}`:`${v} \xB7 ${h} \u2013 ${y}`}var j="eun-scheduler",_=["day","week","work-week","month","year"],t=class extends D(A($)){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.hideNowLine=!1;this.eventAppearance="default";this.isDrawerOpen=!1;this.isModalOpen=!1;this.editingEvent=null;this.createStart=N(new Date);this.createEnd=this.defaultCreateEnd(this.createStart);this.editorDirty=!1;this.isMobile=!1;this.selectedEvent=null;this.confirmingDelete=!1;this.confirmingEditorDelete=!1;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[n]=e.target.value;n&&(this.view=n)};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=()=>{this.confirmingDelete=!0,this.updateComplete.then(()=>this.focusPopoverButton("#event-popover-confirm-cancel"))};this.handlePopoverConfirmDelete=()=>{let e=this.selectedEvent;this.closeEventPopover(),e&&this.dispatchEvent(new E(e.id))};this.handlePopoverCancelDelete=()=>{this.confirmingDelete=!1,this.updateComplete.then(()=>this.focusPopoverButton("#event-popover-delete"))};this.handlePopoverClose=()=>{this.closeEventPopover()};this.handleEditorCreate=e=>{this.dispatchEvent(new O(e.event)),this.closeEditor()};this.handleEditorUpdate=e=>{this.dispatchEvent(new f(e.event)),this.closeEditor()};this.handleCalendarEventMove=e=>{this.dispatchEvent(new f(e.event))};this.handleEditorDelete=e=>{this.dispatchEvent(new E(e.eventId)),this.closeEditor()};this.handleEditorInput=e=>{this.editorDirty=e.currentTarget.dirty};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()};this.handleEditorDeleteClick=()=>{this.confirmingEditorDelete=!0,this.updateComplete.then(()=>this.focusOpenFooterButton(".editor-confirm-cancel"))};this.handleEditorCancelDelete=()=>{this.confirmingEditorDelete=!1,this.updateComplete.then(()=>this.focusOpenFooterButton(".editor-delete"))}}get visibleRange(){return P(this.view,this.displayedDate,this.weekStartsOn)}updated(e){if(super.updated(e),["view","displayedDate","weekStartsOn"].some(l=>e.has(l)&&e.get(l)!==void 0)){let l=this.visibleRange;this.dispatchEvent(new S(this.view,l.start,l.end,this.displayedDate))}}updateMobileMediaQuery(){this.mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaChange),this.mobileMediaQuery=window.matchMedia(x("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=M(this.view,this.displayedDate,e)}defaultCreateEnd(e){return new Date(e.getTime()+this.slotDuration*6e4)}openCreateEditor(e){this.readonly||(this.editingEvent=null,this.createStart=e,this.createEnd=this.defaultCreateEnd(e),this.openEditorSurface())}openEditEditor(e){this.readonly||(this.editingEvent=e,this.openEditorSurface())}openEventPopover(e,n){this.selectedEvent=e,this.confirmingDelete=!1,this.popoverTriggerEl=n,this.updateComplete.then(()=>{let l=this.eventPopoverEl;if(!l)return;let v=this.eventPopoverAnimation!==void 0;this.eventPopoverAnimation?.cancel(),this.eventPopoverAnimation=void 0;let p=!l.matches(":popover-open");p&&l.showPopover(),(p||v)&&this.playEventPopoverOpenAnimation(l)})}eventPopoverAnimationDuration(e){return this.noAnimation||window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:z(e,"--scheduler-popover-transition-duration","s",160)}playEventPopoverOpenAnimation(e){e.style.removeProperty("pointer-events");let n=this.eventPopoverAnimationDuration(e);n!==0&&(this.eventPopoverAnimation=e.animate([{opacity:0,transform:"scale(0.98)"},{opacity:1,transform:"scale(1)"}],{duration:n,easing:g(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 n=this.eventPopoverAnimationDuration(e);if(n===0){e.hidePopover();return}let l=e.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.98)"}],{duration:n,easing:g(e),fill:"forwards"});this.eventPopoverAnimation=l,l.finished.then(()=>{this.eventPopoverAnimation===l&&(this.eventPopoverAnimation=void 0),e.hidePopover()}).catch(()=>{})}focusPopoverButton(e){this.eventPopoverEl?.querySelector(e)?.focus()}openEditorSurface(){this.editorDirty=!1,this.confirmingEditorDelete=!1,this.isMobile?this.isModalOpen=!0:this.isDrawerOpen=!0}closeEditor(){this.isDrawerOpen=!1,this.isModalOpen=!1,this.editingEvent=null,this.editorDirty=!1}renderEditorFooter(e,n,l){let v=this.deleteLabel??this.dictionary.common.delete,p=this.cancelLabel??this.dictionary.common.cancel;return this.confirmingEditorDelete?s`
|
|
378
|
+
<span class="editor-confirm-text"
|
|
379
|
+
>${this.deleteConfirmLabel??this.dictionary.scheduler.deleteConfirm}</span
|
|
380
|
+
>
|
|
381
|
+
<eun-button
|
|
382
|
+
class="editor-confirm-cancel"
|
|
383
|
+
appearance="ghost"
|
|
384
|
+
@click=${this.handleEditorCancelDelete}
|
|
385
|
+
>${p}</eun-button
|
|
386
|
+
>
|
|
387
|
+
<eun-button
|
|
388
|
+
class="editor-confirm-delete"
|
|
389
|
+
color="critical"
|
|
390
|
+
@click=${()=>{this.confirmingEditorDelete=!1,l()}}
|
|
391
|
+
>${v}</eun-button
|
|
392
|
+
>
|
|
393
|
+
`:s`
|
|
394
|
+
${this.editingEvent?s`<eun-button
|
|
395
|
+
class="editor-delete"
|
|
396
|
+
color="critical"
|
|
397
|
+
appearance="outline"
|
|
398
|
+
@click=${this.handleEditorDeleteClick}
|
|
399
|
+
>${v}</eun-button
|
|
400
|
+
>`:d}
|
|
401
|
+
<span style="flex: 1 1 auto;"></span>
|
|
402
|
+
<eun-button appearance="ghost" @click=${n}
|
|
403
|
+
>${p}</eun-button
|
|
404
|
+
>
|
|
405
|
+
<eun-button
|
|
406
|
+
class="editor-apply"
|
|
407
|
+
color="primary"
|
|
408
|
+
?disabled=${!!this.editingEvent&&!this.editorDirty}
|
|
409
|
+
@click=${e}
|
|
410
|
+
>${this.applyLabel??this.dictionary.common.apply}</eun-button
|
|
411
|
+
>
|
|
412
|
+
`}focusOpenFooterButton(e){let n=this.isModalOpen?"#modal":"#drawer";this.shadowRoot?.querySelector(`${n} ${e}`)?.focus()}renderNavArrows(){return s`
|
|
339
413
|
<div id="header-nav-arrows">
|
|
340
414
|
<eun-button
|
|
341
415
|
appearance="ghost"
|
|
@@ -360,18 +434,18 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
360
434
|
`}renderCreateEventButton(e){return s`
|
|
361
435
|
<eun-button
|
|
362
436
|
appearance="flat"
|
|
363
|
-
id=${
|
|
364
|
-
size=${
|
|
437
|
+
id=${u(e?void 0:"header-create-button")}
|
|
438
|
+
size=${u(e?"s":void 0)}
|
|
365
439
|
aria-label=${this.newEventLabel??this.dictionary.scheduler.newEvent}
|
|
366
|
-
@click=${()=>this.openCreateEditor(
|
|
440
|
+
@click=${()=>this.openCreateEditor(N(new Date))}
|
|
367
441
|
>
|
|
368
442
|
<eun-icon name="add" size=${e?"12":"18"}></eun-icon>
|
|
369
443
|
</eun-button>
|
|
370
|
-
`}render(){let e=
|
|
444
|
+
`}render(){let e=this.visibleRange;return s`
|
|
371
445
|
<div id="header">
|
|
372
446
|
<div id="header-nav">
|
|
373
447
|
<span id="period-label" role="status" aria-live="polite">
|
|
374
|
-
${
|
|
448
|
+
${U(this.view,this.displayedDate,e.start,e.end,this.resolvedLocale)}
|
|
375
449
|
</span>
|
|
376
450
|
${this.isMobile?d:this.renderNavArrows()}
|
|
377
451
|
</div>
|
|
@@ -386,7 +460,7 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
386
460
|
appearance="flat"
|
|
387
461
|
size="s"
|
|
388
462
|
label=${this.viewLabel(this.view)}
|
|
389
|
-
.options=${
|
|
463
|
+
.options=${_.map(n=>({key:n,label:this.viewLabel(n)}))}
|
|
390
464
|
@eunselect=${this.handleMobileViewSelect}
|
|
391
465
|
></eun-dropdown-button>
|
|
392
466
|
</div>
|
|
@@ -395,7 +469,7 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
395
469
|
<eun-toggle-group
|
|
396
470
|
single
|
|
397
471
|
aria-label=${this.dictionary.scheduler.calendarView}
|
|
398
|
-
.options=${
|
|
472
|
+
.options=${_.map(n=>({label:this.viewLabel(n),value:n}))}
|
|
399
473
|
.value=${[this.view]}
|
|
400
474
|
@eunchange=${this.handleViewChange}
|
|
401
475
|
></eun-toggle-group>
|
|
@@ -412,11 +486,11 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
412
486
|
.dayStartHour=${this.dayStartHour}
|
|
413
487
|
.dayEndHour=${this.dayEndHour}
|
|
414
488
|
.slotDuration=${this.slotDuration}
|
|
415
|
-
locale=${
|
|
489
|
+
locale=${u(this.locale)}
|
|
416
490
|
?readonly=${this.readonly}
|
|
417
491
|
?no-animation=${this.noAnimation}
|
|
418
492
|
?hide-now-line=${this.hideNowLine}
|
|
419
|
-
more-events-label=${
|
|
493
|
+
more-events-label=${u(this.moreEventsLabel)}
|
|
420
494
|
event-appearance=${this.eventAppearance}
|
|
421
495
|
@eunperiodchange=${this.handleCalendarPeriodChange}
|
|
422
496
|
@euneventclick=${this.handleCalendarEventClick}
|
|
@@ -427,10 +501,12 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
427
501
|
<eun-drawer
|
|
428
502
|
id="drawer"
|
|
429
503
|
position="end"
|
|
504
|
+
closeable
|
|
505
|
+
close-on-backdrop
|
|
430
506
|
heading=${this.editingEvent?this.editingEvent.title:this.newEventLabel??this.dictionary.scheduler.newEvent}
|
|
431
507
|
?open=${this.isDrawerOpen}
|
|
432
508
|
?dirty=${this.editorDirty}
|
|
433
|
-
locale=${
|
|
509
|
+
locale=${u(this.locale)}
|
|
434
510
|
@euncancel=${this.handleDrawerCancel}
|
|
435
511
|
>
|
|
436
512
|
<eun-scheduler-event-editor
|
|
@@ -439,34 +515,24 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
439
515
|
.event=${this.editingEvent}
|
|
440
516
|
.initialStart=${this.createStart}
|
|
441
517
|
.initialEnd=${this.createEnd}
|
|
442
|
-
locale=${
|
|
518
|
+
locale=${u(this.locale)}
|
|
443
519
|
@euneventcreate=${this.handleEditorCreate}
|
|
444
520
|
@euneventupdate=${this.handleEditorUpdate}
|
|
445
521
|
@euneventdelete=${this.handleEditorDelete}
|
|
446
522
|
@input=${this.handleEditorInput}
|
|
447
523
|
></eun-scheduler-event-editor>
|
|
448
524
|
<div slot="footer" style="display: contents">
|
|
449
|
-
${this.
|
|
450
|
-
color="critical"
|
|
451
|
-
appearance="outline"
|
|
452
|
-
@click=${this.handleDrawerDelete}
|
|
453
|
-
>${this.deleteLabel??this.dictionary.common.delete}</eun-button
|
|
454
|
-
>`:d}
|
|
455
|
-
<span style="flex: 1 1 auto;"></span>
|
|
456
|
-
<eun-button appearance="ghost" @click=${this.handleDrawerCancel}
|
|
457
|
-
>${this.cancelLabel??this.dictionary.common.cancel}</eun-button
|
|
458
|
-
>
|
|
459
|
-
<eun-button color="primary" @click=${this.handleDrawerSave}
|
|
460
|
-
>${this.applyLabel??this.dictionary.common.apply}</eun-button
|
|
461
|
-
>
|
|
525
|
+
${this.renderEditorFooter(this.handleDrawerSave,this.handleDrawerCancel,this.handleDrawerDelete)}
|
|
462
526
|
</div>
|
|
463
527
|
</eun-drawer>
|
|
464
528
|
|
|
465
529
|
<eun-modal
|
|
466
530
|
id="modal"
|
|
531
|
+
closeable
|
|
532
|
+
close-on-backdrop
|
|
467
533
|
heading=${this.editingEvent?this.editingEvent.title:this.newEventLabel??this.dictionary.scheduler.newEvent}
|
|
468
534
|
?open=${this.isModalOpen}
|
|
469
|
-
locale=${
|
|
535
|
+
locale=${u(this.locale)}
|
|
470
536
|
@euncancel=${this.handleModalCancel}
|
|
471
537
|
>
|
|
472
538
|
<eun-scheduler-event-editor
|
|
@@ -475,26 +541,18 @@ import{a as V,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as z}from"./chunk
|
|
|
475
541
|
.event=${this.editingEvent}
|
|
476
542
|
.initialStart=${this.createStart}
|
|
477
543
|
.initialEnd=${this.createEnd}
|
|
478
|
-
locale=${
|
|
544
|
+
locale=${u(this.locale)}
|
|
479
545
|
@euneventcreate=${this.handleEditorCreate}
|
|
480
546
|
@euneventupdate=${this.handleEditorUpdate}
|
|
481
547
|
@euneventdelete=${this.handleEditorDelete}
|
|
548
|
+
@input=${this.handleEditorInput}
|
|
482
549
|
></eun-scheduler-event-editor>
|
|
483
550
|
<div slot="footer">
|
|
484
|
-
${this.
|
|
485
|
-
>${this.deleteLabel??this.dictionary.common.delete}</eun-button
|
|
486
|
-
>`:d}
|
|
487
|
-
<span style="flex: 1 1 auto;"></span>
|
|
488
|
-
<eun-button color="secondary" @click=${this.handleModalCancel}
|
|
489
|
-
>${this.cancelLabel??this.dictionary.common.cancel}</eun-button
|
|
490
|
-
>
|
|
491
|
-
<eun-button color="primary" @click=${this.handleModalSave}
|
|
492
|
-
>${this.applyLabel??this.dictionary.common.apply}</eun-button
|
|
493
|
-
>
|
|
551
|
+
${this.renderEditorFooter(this.handleModalSave,this.handleModalCancel,this.handleModalDelete)}
|
|
494
552
|
</div>
|
|
495
553
|
</eun-modal>
|
|
496
554
|
|
|
497
555
|
<div id="event-popover" popover @toggle=${this.handleEventPopoverToggle}>
|
|
498
|
-
${this.selectedEvent?
|
|
556
|
+
${this.selectedEvent?V({event:this.selectedEvent,locale:this.resolvedLocale,editLabel:this.editLabel??this.dictionary.common.edit,deleteLabel:this.deleteLabel??this.dictionary.common.delete,deleteConfirmLabel:this.deleteConfirmLabel??this.dictionary.scheduler.deleteConfirm,cancelLabel:this.cancelLabel??this.dictionary.common.cancel,closeLabel:this.closeLabel??this.dictionary.common.close,allDayLabel:this.dictionary.schedulerEventEditor.allDay,priorityLabels:this.dictionary.scheduler.priorities,readonly:this.readonly,confirmingDelete:this.confirmingDelete,onEdit:this.handlePopoverEdit,onDelete:this.handlePopoverDelete,onConfirmDelete:this.handlePopoverConfirmDelete,onCancelDelete:this.handlePopoverCancelDelete,onClose:this.handlePopoverClose}):d}
|
|
499
557
|
</div>
|
|
500
|
-
`}viewLabel(e){switch(e){case"day":return this.viewDayLabel??this.dictionary.scheduler.viewDay;case"week":return this.viewWeekLabel??this.dictionary.scheduler.viewWeek;case"work-week":return this.viewWorkWeekLabel??this.dictionary.scheduler.viewWorkWeek;case"month":return this.viewMonthLabel??this.dictionary.scheduler.viewMonth;case"year":return this.viewYearLabel??this.dictionary.scheduler.viewYear;default:return e}}};t.styles=[H
|
|
558
|
+
`}viewLabel(e){switch(e){case"day":return this.viewDayLabel??this.dictionary.scheduler.viewDay;case"week":return this.viewWeekLabel??this.dictionary.scheduler.viewWeek;case"work-week":return this.viewWorkWeekLabel??this.dictionary.scheduler.viewWorkWeek;case"month":return this.viewMonthLabel??this.dictionary.scheduler.viewMonth;case"year":return this.viewYearLabel??this.dictionary.scheduler.viewYear;default:return e}}};t.styles=[R,H],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({type:Boolean,reflect:!0,attribute:"hide-now-line"})],t.prototype,"hideNowLine",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:"delete-confirm-label"})],t.prototype,"deleteConfirmLabel",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([c()],t.prototype,"isDrawerOpen",2),i([c()],t.prototype,"isModalOpen",2),i([c()],t.prototype,"editingEvent",2),i([c()],t.prototype,"createStart",2),i([c()],t.prototype,"createEnd",2),i([c()],t.prototype,"editorDirty",2),i([c()],t.prototype,"isMobile",2),i([m("#editor")],t.prototype,"drawerEditorEl",2),i([m("#editor-mobile")],t.prototype,"modalEditorEl",2),i([c()],t.prototype,"selectedEvent",2),i([c()],t.prototype,"confirmingDelete",2),i([c()],t.prototype,"confirmingEditorDelete",2),i([m("#event-popover")],t.prototype,"eventPopoverEl",2),i([m("#calendar")],t.prototype,"calendarEl",2),t=i([w(j)],t);function N(a){let r=new Date(a);return r.setHours(r.getHours()+1,0,0,0),r}function U(a,r,e,n,l){switch(a){case"day":return e.toLocaleDateString(l,{weekday:"long",day:"numeric",month:"long",year:"numeric"});case"year":return String(r.getFullYear());case"month":return r.toLocaleDateString(l,{month:"long",year:"numeric"});default:return`${e.toLocaleDateString(l,{day:"numeric",month:"short"})} \u2013 ${n.toLocaleDateString(l,{day:"numeric",month:"short",year:"numeric"})}`}}export{t as EunomiaScheduler,j as EunomiaSchedulerTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as g}from"./chunks/chunk-
|
|
1
|
+
import{b as g}from"./chunks/chunk-WEG3KO6T.js";import{a as O}from"./chunks/chunk-5LA5DQMP.js";import{a as A,b as L,c as k}from"./chunks/chunk-GWLD2I3P.js";import"./chunks/chunk-GBSAVPKA.js";import{a as y,b as w}from"./chunks/chunk-SK3YHD6O.js";import"./chunks/chunk-SCAP7J35.js";import{a as x}from"./chunks/chunk-7HXPLZ7C.js";import"./chunks/chunk-WIUERJII.js";import"./chunks/chunk-AW7PU43S.js";import{b as T,c}from"./chunks/chunk-624VJYNA.js";import{a as u}from"./chunks/chunk-LYYQAALT.js";import"./chunks/chunk-MSQWOKBB.js";import"./chunks/chunk-GVS6IUKC.js";import"./chunks/chunk-P6LGU3FT.js";import"./chunks/chunk-7PEODUNH.js";import"./chunks/chunk-JDUWKPHW.js";import{a as m}from"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-QNWKRPOW.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-WP6ZYBAC.js";import"./chunks/chunk-2XPIGFBD.js";import{a as r,f,h as b,j as s,k as h,l as a,p as o,r as l}from"./chunks/chunk-YITWLCD3.js";var $=b`
|
|
2
2
|
#shortcut-hint {
|
|
3
3
|
flex-shrink: 0;
|
|
4
4
|
display: inline-flex;
|
|
@@ -140,16 +140,16 @@ import{b as g}from"./chunks/chunk-SZZRMJ65.js";import{a as I}from"./chunks/chunk
|
|
|
140
140
|
gap: var(--eun-space-xs, 4px);
|
|
141
141
|
padding: var(--eun-space-s, 8px) var(--eun-space-m, 16px);
|
|
142
142
|
}
|
|
143
|
-
`,
|
|
143
|
+
`,I=$;var C="eun-search",i=class extends x(g){constructor(){super(...arguments);this.type="search";this.icon="search";this.shortcut=!1;this.panel=!1;this.loading=!1;this.suggestions=!1;this.filter="contains";this.isOpen=!1;this.highlightedIndex=-1;this.optionsObserver=new MutationObserver(()=>{this.highlightedIndex>=this.filteredOptions.length&&(this.highlightedIndex=-1),this.requestUpdate()});this.handleTriggerClick=()=>{this.disabled||this.openPanel()};this.handleFieldPointerDown=()=>{this.fieldPointerDownAt=performance.now()};this.handleSuggestionsFieldActivate=()=>{!this.suggestions||this.panel||this.isOpen||this.openSuggestions()};this.handleSuggestionsFocusOut=()=>{requestAnimationFrame(()=>{this.matches(":focus-within")||this.closeSuggestions()})};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:u}),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||!this.checkVisibility()||(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()==="k"&&(e.preventDefault(),this.panel?this.openPanel():this.focus())}}connectedCallback(){super.connectedCallback?.(),window.addEventListener("keydown",this.handleShortcut),this.optionsObserver.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["value","label"]})}disconnectedCallback(){window.removeEventListener("keydown",this.handleShortcut),this.optionsObserver.disconnect(),super.disconnectedCallback?.()}willUpdate(e){super.willUpdate(e),this.type!=="search"&&(this.type="search")}focusTarget(){if(this.panel){let[e]=this.triggerSlot?.assignedElements()??[];return e instanceof HTMLElement?e:this.triggerEl}return 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),this.addEventListener("focusout",this.handleSuggestionsFocusOut))}get options(){return A(this.children)}get effectiveQuery(){return(this.value??"").trim().toLowerCase()}get filteredOptions(){let e=this.effectiveQuery;return!e||this.filter==="none"?this.options:this.options.filter(t=>t.label.toLowerCase().includes(e))}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 n=e.animate([{opacity:1,transform:"scaleY(1)"},{opacity:0,transform:"scaleY(0.01)"}],{duration:t,easing:c(e),fill:"forwards"});this.listboxAnimation=n,n.finished.then(()=>{this.listboxAnimation===n&&(this.listboxAnimation=void 0),e.hidePopover()}).catch(()=>{})}handleSelect(e){this.value=e.label,this.dispatchEvent(new m(this.value)),this.dispatchEvent(new O(e.value)),this.closeSuggestions()}renderSuggestionOptionRows(e){let t=this.effectiveQuery;return k(e,(n,p)=>o`
|
|
144
144
|
<li
|
|
145
145
|
id="listbox-option-${p}"
|
|
146
146
|
role="option"
|
|
147
147
|
aria-selected=${n.label.toLowerCase()===t}
|
|
148
148
|
class=${v({highlighted:p===this.highlightedIndex,selected:n.label.toLowerCase()===t})}
|
|
149
|
-
@mousedown=${
|
|
149
|
+
@mousedown=${D=>{D.preventDefault(),this.handleSelect(n)}}
|
|
150
150
|
@mouseenter=${()=>{this.highlightedIndex=p}}
|
|
151
151
|
>
|
|
152
|
-
${
|
|
152
|
+
${L(n.label,t)}
|
|
153
153
|
</li>
|
|
154
154
|
`)}renderSuggestionsListbox(){return o`
|
|
155
155
|
<ul
|
|
@@ -202,7 +202,7 @@ import{b as g}from"./chunks/chunk-SZZRMJ65.js";import{a as I}from"./chunks/chunk
|
|
|
202
202
|
id="panel"
|
|
203
203
|
kind="search"
|
|
204
204
|
hide-actions
|
|
205
|
-
|
|
205
|
+
close-on-backdrop
|
|
206
206
|
aria-label=${this.label||(this.panelLabel??this.dictionary.search.panel)}
|
|
207
207
|
>
|
|
208
208
|
<div id="panel-field">
|
|
@@ -214,4 +214,4 @@ import{b as g}from"./chunks/chunk-SZZRMJ65.js";import{a as I}from"./chunks/chunk
|
|
|
214
214
|
</eun-modal>
|
|
215
215
|
${e}
|
|
216
216
|
</div>
|
|
217
|
-
`}};i.styles=[g.styles,
|
|
217
|
+
`}};i.styles=[g.styles,y,...u?[]:[w],I],i.FIELD_POINTER_DOWN_WINDOW_MS=100,r([s({reflect:!0,converter:{toAttribute:()=>null}})],i.prototype,"type",2),r([s()],i.prototype,"icon",2),r([s({type:Boolean})],i.prototype,"shortcut",2),r([s({type:Boolean})],i.prototype,"panel",2),r([s({attribute:"panel-label"})],i.prototype,"panelLabel",2),r([s({type:Boolean,reflect:!0})],i.prototype,"loading",2),r([s({attribute:"loading-label"})],i.prototype,"loadingLabel",2),r([s({type:Boolean,reflect:!0})],i.prototype,"suggestions",2),r([s({attribute:"no-results-label"})],i.prototype,"noResultsLabel",2),r([s()],i.prototype,"filter",2),r([h()],i.prototype,"isOpen",2),r([h()],i.prototype,"highlightedIndex",2),r([a("#panel")],i.prototype,"modalEl",2),r([a("#field-wrapper")],i.prototype,"fieldWrapperEl",2),r([a('slot[name="trigger"]')],i.prototype,"triggerSlot",2),r([a("#search-trigger")],i.prototype,"triggerEl",2),r([a("#listbox")],i.prototype,"listboxEl",2),i=r([f(C)],i);export{i as EunomiaSearch,C as EunomiaSearchTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as W,c as z}from"./chunks/chunk-RANI7H4F.js";import{a as H,b as V,c as B}from"./chunks/chunk-GWLD2I3P.js";import{a as A}from"./chunks/chunk-GBSAVPKA.js";import{a as P,b as R}from"./chunks/chunk-SK3YHD6O.js";import{a as F}from"./chunks/chunk-
|
|
1
|
+
import{a as W,c as z}from"./chunks/chunk-RANI7H4F.js";import{a as H,b as V,c as B}from"./chunks/chunk-GWLD2I3P.js";import{a as A}from"./chunks/chunk-GBSAVPKA.js";import{a as P,b as R}from"./chunks/chunk-SK3YHD6O.js";import{a as F}from"./chunks/chunk-7HXPLZ7C.js";import{a as C}from"./chunks/chunk-WIUERJII.js";import{a as D}from"./chunks/chunk-AW7PU43S.js";import{b as N,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 E}from"./chunks/chunk-P6LGU3FT.js";import{a as T}from"./chunks/chunk-7PEODUNH.js";import{c as I,d as O,e as $,f as u}from"./chunks/chunk-JDUWKPHW.js";import{a as f}from"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-QNWKRPOW.js";import{a as M}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-WP6ZYBAC.js";import"./chunks/chunk-2XPIGFBD.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 K=y`
|
|
2
2
|
#field {
|
|
3
3
|
padding-inline-end: calc(var(--eun-space-l, 32px) * 1.2);
|
|
4
4
|
}
|