@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,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as G,b as I}from"./chunks/chunk-IKAZYVB7.js";import{a as w}from"./chunks/chunk-BRSNQMCD.js";import{b as T,c as g,d as k,e as m}from"./chunks/chunk-QMXE3KLT.js";import"./chunks/chunk-TWLI2ZOT.js";import{a as l,b as C,h as E,j as x}from"./chunks/chunk-MJ4RDZLL.js";import{a as p}from"./chunks/chunk-PPCHQG7P.js";import{a as L}from"./chunks/chunk-WP6ZYBAC.js";import"./chunks/chunk-2XPIGFBD.js";import{a as i,f as y,h as D,j as s,k as o,p as n,r as d,u as $}from"./chunks/chunk-YITWLCD3.js";var A=D`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -36,7 +36,7 @@ import{a as T,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as k}from"./chunk
|
|
|
36
36
|
flex: 0 0 auto;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.
|
|
39
|
+
.field-error {
|
|
40
40
|
display: block;
|
|
41
41
|
margin-top: var(--eun-space-xs, 4px);
|
|
42
42
|
color: var(--eun-color-critical-100, #aa0014);
|
|
@@ -66,85 +66,89 @@ import{a as T,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as k}from"./chunk
|
|
|
66
66
|
#actions .spacer {
|
|
67
67
|
flex: 1 1 auto;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
|
|
70
|
+
#actions.confirm {
|
|
71
|
+
flex-wrap: wrap;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
#confirm-text {
|
|
76
|
+
flex: 1 1 auto;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
}
|
|
79
|
+
`,P=A;var f=class u extends Event{static{this.eventName="euneventcancel"}constructor(){super(u.eventName,{bubbles:!0,composed:!1})}};var b=class u extends Event{static{this.eventName="euneditorstatechange"}constructor(c,e){super(u.eventName,{bubbles:!0,composed:!1}),this.dirty=c,this.valid=e}};var v=class u extends Event{static{this.eventName="eunguestinvite"}constructor(c,e){super(u.eventName,{bubbles:!0,composed:!1}),this.email=c,this.eventId=e}};var N="eun-scheduler-event-editor",S=["low","medium","high","critical"],q={low:"success",high:"warning",critical:"critical"},R=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,t=class extends L($){constructor(){super(...arguments);this.hideActions=!1;this.confirmingDelete=!1;this.formTitle="";this.formDescription="";this.formAllDay=!1;this.formDate=l(new Date);this.formEndDate=l(new Date);this.formStart=null;this.formEnd=null;this.formLocation="";this.formNotes="";this.formPriority="medium";this.formColor="#3bb3b9";this.formGuests=[];this.guestInputValue="";this.guestInputError=!1;this.showErrors=!1;this.seedSnapshot="";this.reportedState=null;this.handleSaveClick=()=>{this.requestSave()};this.handleCancelClick=()=>{this.requestCancel()};this.handleDeleteClick=()=>{this.confirmingDelete=!0,this.updateComplete.then(()=>this.focusAction("#confirm-cancel"))};this.handleConfirmDeleteClick=()=>{this.confirmingDelete=!1,this.requestDelete()};this.handleCancelDeleteClick=()=>{this.confirmingDelete=!1,this.updateComplete.then(()=>this.focusAction("#delete"))};this.handlePriorityChange=e=>{this.formPriority=e.target.value[0]};this.handleGuestInputChange=e=>{this.guestInputValue=e.target.value??"",this.guestInputError=!1};this.handleGuestInputKeydown=e=>{e.key==="Enter"&&(e.preventDefault(),this.addGuest())};this.handleAddGuestClick=()=>{this.addGuest()};this.handleRemoveGuest=e=>{this.formGuests=this.formGuests.filter(a=>a.email!==e)}}connectedCallback(){super.connectedCallback?.(),this.seedForm()}willUpdate(e){(e.has("event")||e.has("initialStart")||e.has("initialEnd"))&&this.seedForm(),super.willUpdate(e)}updated(e){super.updated(e),["formTitle","formDescription","formAllDay","formDate","formEndDate","formStart","formEnd","formLocation","formNotes","formPriority","formColor","formGuests"].some(r=>e.has(r))&&this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.reportStateChange()}reportStateChange(){let e={dirty:this.dirty,valid:this.valid},a=this.reportedState;this.reportedState=e,a&&(a.dirty!==e.dirty||a.valid!==e.valid)&&this.dispatchEvent(new b(e.dirty,e.valid))}seedForm(){let e=this.event;if(e)this.formTitle=e.title,this.formDescription=e.description??"",this.formAllDay=!!e.allDay,this.formDate=l(e.start),this.formEndDate=l(e.end),this.formStart=e.start,this.formEnd=e.end,this.formLocation=e.location??"",this.formNotes=e.notes??"",this.formPriority=e.priority??"medium",this.formColor=m(e.color),this.formGuests=e.guests?e.guests.map(a=>({...a})):[];else{let a=this.initialStart??H(new Date),r=this.initialEnd??x(a,1);this.formTitle="",this.formDescription="",this.formAllDay=!1,this.formDate=l(a),this.formEndDate=l(a),this.formStart=a,this.formEnd=r,this.formLocation="",this.formNotes="",this.formPriority="medium",this.formColor=m("blue"),this.formGuests=[]}this.guestInputValue="",this.guestInputError=!1,this.showErrors=!1,this.confirmingDelete=!1,this.seedSnapshot=this.snapshot()}snapshot(){return JSON.stringify({title:this.formTitle,description:this.formDescription,allDay:this.formAllDay,date:this.formDate.getTime(),endDate:this.formEndDate.getTime(),start:this.formStart?.getTime(),end:this.formEnd?.getTime(),location:this.formLocation,notes:this.formNotes,priority:this.formPriority,color:this.formColor,guests:this.formGuests})}get dirty(){return this.snapshot()!==this.seedSnapshot}get isEditing(){return!!this.event}composeStartEnd(){if(this.formAllDay)return{start:l(this.formDate),end:C(this.formEndDate)};if(!this.formStart||!this.formEnd)return null;let e=new Date(this.formDate);e.setHours(this.formStart.getHours(),this.formStart.getMinutes(),0,0);let a=new Date(this.formEndDate);return a.setHours(this.formEnd.getHours(),this.formEnd.getMinutes(),0,0),{start:e,end:a}}get valid(){if(!this.formTitle.trim())return!1;let e=this.composeStartEnd();return!!e&&e.end.getTime()>e.start.getTime()}requestSave(){if(!this.valid)return this.showErrors=!0,!1;if(this.event&&!this.dirty)return!0;let e=this.composeStartEnd(),a={id:this.event?.id??crypto.randomUUID(),title:this.formTitle.trim(),description:this.formDescription||void 0,allDay:this.formAllDay,start:e.start,end:e.end,location:this.formLocation||void 0,notes:this.formNotes||void 0,color:this.savedColor(),priority:this.formPriority,guests:this.formGuests.length?this.formGuests:void 0};return this.dispatchEvent(this.event?new w(a):new G(a)),this.event=a,this.seedSnapshot=this.snapshot(),!0}savedColor(){let e=this.event?.color;return e&&m(e)===this.formColor?e:this.formColor}get rangeInvalid(){let e=this.composeStartEnd();return!!e&&e.end.getTime()<=e.start.getTime()}requestCancel(){this.seedForm(),this.dispatchEvent(new f)}requestDelete(){this.event&&this.dispatchEvent(new I(this.event.id))}focusAction(e){this.shadowRoot?.querySelector(e)?.focus()}moveStartDate(e){let a=Math.round((l(e).getTime()-this.formDate.getTime())/864e5);this.formDate=l(e),this.formEndDate=E(this.formEndDate,a)}addGuest(){let e=this.guestInputValue.trim();if(!e)return;if(!R.test(e)){this.guestInputError=!0;return}let a=this.formGuests.some(r=>r.email.toLowerCase()===e.toLowerCase());this.guestInputValue="",this.guestInputError=!1,!a&&(this.formGuests=[...this.formGuests,{email:e,status:"pending"}],this.dispatchEvent(new v(e,this.event?.id)))}render(){let e=this.showErrors&&!this.formTitle.trim(),a=this.colorLabels??this.dictionary.schedulerEventEditor.colors;return n`
|
|
70
80
|
<div id="fields">
|
|
71
81
|
<eun-input
|
|
72
82
|
label=${this.titleLabel??this.dictionary.schedulerEventEditor.title}
|
|
73
83
|
.value=${this.formTitle}
|
|
74
84
|
?required=${!0}
|
|
75
85
|
hide-error
|
|
76
|
-
@eunchange=${
|
|
86
|
+
@eunchange=${r=>{this.formTitle=r.target.value??""}}
|
|
77
87
|
></eun-input>
|
|
78
|
-
${e?
|
|
88
|
+
${e?n`<span
|
|
79
89
|
role="alert"
|
|
80
90
|
style="color: var(--eun-color-critical-100, #aa0014); font-size: 12px;"
|
|
81
|
-
>${this.titleLabel??this.dictionary.schedulerEventEditor.title}
|
|
82
|
-
|
|
83
|
-
>`:m}
|
|
91
|
+
>${this.titleLabel===void 0&&this.requiredLabel===void 0?this.dictionary.schedulerEventEditor.titleRequired:`${this.titleLabel??this.dictionary.schedulerEventEditor.title} ${this.requiredLabel??this.dictionary.schedulerEventEditor.required}`}</span
|
|
92
|
+
>`:d}
|
|
84
93
|
|
|
85
94
|
<eun-textarea
|
|
86
95
|
label=${this.descriptionLabel??this.dictionary.schedulerEventEditor.description}
|
|
87
96
|
.value=${this.formDescription}
|
|
88
|
-
@eunchange=${
|
|
97
|
+
@eunchange=${r=>{this.formDescription=r.target.value??""}}
|
|
89
98
|
></eun-textarea>
|
|
90
99
|
|
|
91
100
|
<eun-checkbox
|
|
92
101
|
label=${this.allDayLabel??this.dictionary.schedulerEventEditor.allDay}
|
|
93
102
|
?checked=${this.formAllDay}
|
|
94
|
-
@eunchange=${
|
|
103
|
+
@eunchange=${r=>{this.formAllDay=r.target.checked}}
|
|
95
104
|
></eun-checkbox>
|
|
96
105
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
</div>
|
|
114
|
-
`:l`
|
|
115
|
-
<eun-date-picker
|
|
116
|
-
?required=${!0}
|
|
117
|
-
label=${this.dateLabel??this.dictionary.schedulerEventEditor.date}
|
|
118
|
-
.value=${this.formDate}
|
|
119
|
-
locale=${c(this.locale)}
|
|
120
|
-
@eunchange=${i=>{let u=i.target.value;u&&(this.formDate=n(u))}}
|
|
121
|
-
></eun-date-picker>
|
|
106
|
+
<div class="row">
|
|
107
|
+
<eun-date-picker
|
|
108
|
+
?required=${!0}
|
|
109
|
+
label=${this.dateLabel??this.dictionary.schedulerEventEditor.date}
|
|
110
|
+
.value=${this.formDate}
|
|
111
|
+
locale=${p(this.locale)}
|
|
112
|
+
@eunchange=${r=>{let h=r.target.value;h&&this.moveStartDate(h)}}
|
|
113
|
+
></eun-date-picker>
|
|
114
|
+
<eun-date-picker
|
|
115
|
+
?required=${!0}
|
|
116
|
+
label=${this.endDateLabel??this.dictionary.schedulerEventEditor.endDate}
|
|
117
|
+
.value=${this.formEndDate}
|
|
118
|
+
locale=${p(this.locale)}
|
|
119
|
+
@eunchange=${r=>{let h=r.target.value;h&&(this.formEndDate=l(h))}}
|
|
120
|
+
></eun-date-picker>
|
|
121
|
+
</div>
|
|
122
122
|
|
|
123
|
+
${this.formAllDay?d:n`
|
|
123
124
|
<div class="row">
|
|
124
125
|
<eun-time-picker
|
|
125
126
|
?required=${!0}
|
|
126
127
|
label=${this.startTimeLabel??this.dictionary.schedulerEventEditor.startTime}
|
|
127
128
|
.value=${this.formStart}
|
|
128
|
-
locale=${
|
|
129
|
+
locale=${p(this.locale)}
|
|
129
130
|
mobile-mode="wheel"
|
|
130
|
-
@eunchange=${
|
|
131
|
+
@eunchange=${r=>{this.formStart=r.target.value}}
|
|
131
132
|
></eun-time-picker>
|
|
132
133
|
<eun-time-picker
|
|
133
134
|
?required=${!0}
|
|
134
135
|
label=${this.endTimeLabel??this.dictionary.schedulerEventEditor.endTime}
|
|
135
136
|
.value=${this.formEnd}
|
|
136
|
-
locale=${
|
|
137
|
+
locale=${p(this.locale)}
|
|
137
138
|
mobile-mode="wheel"
|
|
138
|
-
@eunchange=${
|
|
139
|
+
@eunchange=${r=>{this.formEnd=r.target.value}}
|
|
139
140
|
></eun-time-picker>
|
|
140
141
|
</div>
|
|
141
142
|
`}
|
|
143
|
+
${this.rangeInvalid?n`<span role="alert" id="range-error" class="field-error"
|
|
144
|
+
>${this.rangeErrorLabel??this.dictionary.schedulerEventEditor.endBeforeStart}</span
|
|
145
|
+
>`:d}
|
|
142
146
|
|
|
143
147
|
<eun-input
|
|
144
148
|
label=${this.locationLabel??this.dictionary.schedulerEventEditor.location}
|
|
145
149
|
.value=${this.formLocation}
|
|
146
150
|
icon="location_on"
|
|
147
|
-
@eunchange=${
|
|
151
|
+
@eunchange=${r=>{this.formLocation=r.target.value??""}}
|
|
148
152
|
></eun-input>
|
|
149
153
|
|
|
150
154
|
<div>
|
|
@@ -173,36 +177,38 @@ import{a as T,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as k}from"./chunk
|
|
|
173
177
|
<eun-icon name="person_add" size="16"></eun-icon>
|
|
174
178
|
</eun-button>
|
|
175
179
|
</div>
|
|
176
|
-
${this.guestInputError?
|
|
177
|
-
>${this.
|
|
178
|
-
>`:
|
|
179
|
-
${this.formGuests.length?
|
|
180
|
+
${this.guestInputError?n`<span role="alert" class="field-error"
|
|
181
|
+
>${this.guestErrorLabel??this.dictionary.validation.typeMismatch.email}</span
|
|
182
|
+
>`:d}
|
|
183
|
+
${this.formGuests.length?n`
|
|
180
184
|
<ul id="guests">
|
|
181
|
-
${this.formGuests.map(
|
|
185
|
+
${this.formGuests.map(r=>n`
|
|
182
186
|
<li
|
|
183
187
|
class="guest-chip"
|
|
184
|
-
data-status=${
|
|
185
|
-
data-state=${
|
|
188
|
+
data-status=${r.status}
|
|
189
|
+
data-state=${g[r.status]}
|
|
186
190
|
>
|
|
187
191
|
<eun-chip
|
|
188
192
|
appearance="outline"
|
|
189
|
-
|
|
190
|
-
|
|
193
|
+
rounded
|
|
194
|
+
removable
|
|
195
|
+
icon=${T[r.status]}
|
|
196
|
+
.severity=${g[r.status]}
|
|
191
197
|
.removeLabel=${this.removeGuestLabel??this.dictionary.schedulerEventEditor.removeGuest}
|
|
192
|
-
@eunclose=${()=>this.handleRemoveGuest(
|
|
198
|
+
@eunclose=${()=>this.handleRemoveGuest(r.email)}
|
|
193
199
|
>
|
|
194
|
-
${
|
|
200
|
+
${r.email}
|
|
195
201
|
</eun-chip>
|
|
196
202
|
</li>
|
|
197
203
|
`)}
|
|
198
204
|
</ul>
|
|
199
|
-
`:
|
|
205
|
+
`:d}
|
|
200
206
|
</div>
|
|
201
207
|
|
|
202
208
|
<eun-textarea
|
|
203
209
|
label=${this.notesLabel??this.dictionary.schedulerEventEditor.notes}
|
|
204
210
|
.value=${this.formNotes}
|
|
205
|
-
@eunchange=${
|
|
211
|
+
@eunchange=${r=>{this.formNotes=r.target.value??""}}
|
|
206
212
|
></eun-textarea>
|
|
207
213
|
|
|
208
214
|
<div>
|
|
@@ -216,12 +222,12 @@ import{a as T,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as k}from"./chunk
|
|
|
216
222
|
.value=${[this.formPriority]}
|
|
217
223
|
@eunchange=${this.handlePriorityChange}
|
|
218
224
|
>
|
|
219
|
-
${
|
|
225
|
+
${S.map(r=>n`
|
|
220
226
|
<eun-toggle-item
|
|
221
|
-
value=${
|
|
222
|
-
color=${
|
|
227
|
+
value=${r}
|
|
228
|
+
color=${p(q[r])}
|
|
223
229
|
>
|
|
224
|
-
${this.dictionary.scheduler.priorities[
|
|
230
|
+
${this.dictionary.scheduler.priorities[r]}
|
|
225
231
|
</eun-toggle-item>
|
|
226
232
|
`)}
|
|
227
233
|
</eun-toggle-group>
|
|
@@ -232,28 +238,58 @@ import{a as T,b as x}from"./chunks/chunk-IKAZYVB7.js";import{a as k}from"./chunk
|
|
|
232
238
|
label=${this.colorLabel??this.dictionary.schedulerEventEditor.color}
|
|
233
239
|
hide-error
|
|
234
240
|
.value=${this.formColor}
|
|
235
|
-
@eunchange=${
|
|
241
|
+
@eunchange=${r=>{this.formColor=r.target.value}}
|
|
236
242
|
>
|
|
237
|
-
${
|
|
238
|
-
<option value=${
|
|
243
|
+
${k.map(r=>n`
|
|
244
|
+
<option value=${r.hex}>${a[r.name]}</option>
|
|
239
245
|
`)}
|
|
240
246
|
</eun-color-picker>
|
|
241
247
|
</div>
|
|
242
248
|
|
|
243
|
-
${this.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
249
|
+
${this.renderActions()}
|
|
250
|
+
`}renderActions(){if(this.hideActions)return d;let e=this.deleteLabel??this.dictionary.common.delete,a=this.cancelLabel??this.dictionary.common.cancel;return this.confirmingDelete?n`
|
|
251
|
+
<div
|
|
252
|
+
id="actions"
|
|
253
|
+
class="confirm"
|
|
254
|
+
role="group"
|
|
255
|
+
aria-labelledby="confirm-text"
|
|
256
|
+
>
|
|
257
|
+
<span id="confirm-text"
|
|
258
|
+
>${this.deleteConfirmLabel??this.dictionary.scheduler.deleteConfirm}</span
|
|
259
|
+
>
|
|
260
|
+
<eun-button
|
|
261
|
+
id="confirm-cancel"
|
|
262
|
+
appearance="ghost"
|
|
263
|
+
@click=${this.handleCancelDeleteClick}
|
|
264
|
+
>${a}</eun-button
|
|
265
|
+
>
|
|
266
|
+
<eun-button
|
|
267
|
+
id="confirm-delete"
|
|
268
|
+
color="critical"
|
|
269
|
+
@click=${this.handleConfirmDeleteClick}
|
|
270
|
+
>${e}</eun-button
|
|
271
|
+
>
|
|
272
|
+
</div>
|
|
273
|
+
`:n`
|
|
274
|
+
<div id="actions">
|
|
275
|
+
${this.event?n`
|
|
276
|
+
<eun-button
|
|
277
|
+
id="delete"
|
|
278
|
+
color="critical"
|
|
279
|
+
@click=${this.handleDeleteClick}
|
|
280
|
+
>${e}</eun-button
|
|
281
|
+
>
|
|
282
|
+
`:d}
|
|
283
|
+
<span class="spacer"></span>
|
|
284
|
+
<eun-button appearance="ghost" @click=${this.handleCancelClick}
|
|
285
|
+
>${a}</eun-button
|
|
286
|
+
>
|
|
287
|
+
<eun-button
|
|
288
|
+
id="save"
|
|
289
|
+
color="primary"
|
|
290
|
+
?disabled=${!!this.event&&!this.dirty}
|
|
291
|
+
@click=${this.handleSaveClick}
|
|
292
|
+
>${this.saveLabel??this.dictionary.common.save}</eun-button
|
|
293
|
+
>
|
|
294
|
+
</div>
|
|
295
|
+
`}};t.styles=P,i([s({attribute:!1})],t.prototype,"event",2),i([s({attribute:!1})],t.prototype,"initialStart",2),i([s({attribute:!1})],t.prototype,"initialEnd",2),i([s()],t.prototype,"locale",2),i([s({type:Boolean,attribute:"hide-actions"})],t.prototype,"hideActions",2),i([s({attribute:"title-label"})],t.prototype,"titleLabel",2),i([s({attribute:"description-label"})],t.prototype,"descriptionLabel",2),i([s({attribute:"all-day-label"})],t.prototype,"allDayLabel",2),i([s({attribute:"date-label"})],t.prototype,"dateLabel",2),i([s({attribute:"end-date-label"})],t.prototype,"endDateLabel",2),i([s({attribute:"start-time-label"})],t.prototype,"startTimeLabel",2),i([s({attribute:"end-time-label"})],t.prototype,"endTimeLabel",2),i([s({attribute:"location-label"})],t.prototype,"locationLabel",2),i([s({attribute:"notes-label"})],t.prototype,"notesLabel",2),i([s({attribute:"priority-label"})],t.prototype,"priorityLabel",2),i([s({attribute:"color-label"})],t.prototype,"colorLabel",2),i([s({attribute:"required-label"})],t.prototype,"requiredLabel",2),i([s({attribute:!1})],t.prototype,"colorLabels",2),i([s({attribute:"guests-label"})],t.prototype,"guestsLabel",2),i([s({attribute:"add-guest-label"})],t.prototype,"addGuestLabel",2),i([s({attribute:"guest-error-label"})],t.prototype,"guestErrorLabel",2),i([s({attribute:"range-error-label"})],t.prototype,"rangeErrorLabel",2),i([s({attribute:"remove-guest-label"})],t.prototype,"removeGuestLabel",2),i([s({attribute:"save-label"})],t.prototype,"saveLabel",2),i([s({attribute:"cancel-label"})],t.prototype,"cancelLabel",2),i([s({attribute:"delete-label"})],t.prototype,"deleteLabel",2),i([s({attribute:"delete-confirm-label"})],t.prototype,"deleteConfirmLabel",2),i([o()],t.prototype,"confirmingDelete",2),i([o()],t.prototype,"formTitle",2),i([o()],t.prototype,"formDescription",2),i([o()],t.prototype,"formAllDay",2),i([o()],t.prototype,"formDate",2),i([o()],t.prototype,"formEndDate",2),i([o()],t.prototype,"formStart",2),i([o()],t.prototype,"formEnd",2),i([o()],t.prototype,"formLocation",2),i([o()],t.prototype,"formNotes",2),i([o()],t.prototype,"formPriority",2),i([o()],t.prototype,"formColor",2),i([o()],t.prototype,"formGuests",2),i([o()],t.prototype,"guestInputValue",2),i([o()],t.prototype,"guestInputError",2),i([o()],t.prototype,"showErrors",2),t=i([y(N)],t);function H(u){let c=new Date(u);return c.setHours(c.getHours()+1,0,0,0),c}export{t as EunomiaSchedulerEventEditor,N as EunomiaSchedulerEventEditorTagName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunks/chunk-
|
|
1
|
+
import{a,b}from"./chunks/chunk-A2NO4RSF.js";import"./chunks/chunk-QMXE3KLT.js";import"./chunks/chunk-TWLI2ZOT.js";import"./chunks/chunk-MJ4RDZLL.js";import"./chunks/chunk-2XPIGFBD.js";import"./chunks/chunk-YITWLCD3.js";export{b as EunomiaSchedulerEventCard,a as EunomiaSchedulerEventCardTagName};
|