@eunomia/elements 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/components/chunks/{chunk-EAGGN3ZI.js → chunk-2XASWWKR.js} +9 -9
- package/dist/cdn/components/chunks/chunk-32DTNR52.js +1 -0
- package/dist/cdn/components/chunks/chunk-3MTUVMM5.js +1 -0
- package/dist/cdn/components/chunks/chunk-5GKM5DIB.js +1 -0
- package/dist/cdn/components/chunks/{chunk-32KRPOPV.js → chunk-5XJGYXW7.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-O2HNWH65.js → chunk-5XJLIHAU.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-TBKKTJOX.js → chunk-6ETDXUH2.js} +3 -3
- package/dist/cdn/components/chunks/{chunk-5GF2Q3NR.js → chunk-74AOAB4X.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-WYMBUIKX.js → chunk-A6KGFALA.js} +4 -4
- package/dist/cdn/components/chunks/{chunk-NEYBPT3D.js → chunk-AIS3UICU.js} +9 -9
- package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
- package/dist/cdn/components/chunks/chunk-DKOPI7QA.js +415 -0
- package/dist/cdn/components/chunks/{chunk-53QH6MPM.js → chunk-EAKYD33D.js} +3 -3
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-IDKZKLJR.js} +7 -7
- package/dist/cdn/components/chunks/chunk-JRGM3W7I.js +53 -0
- package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-L65WUTXM.js} +12 -12
- package/dist/cdn/components/chunks/chunk-LFCXUVDO.js +1 -0
- package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
- package/dist/cdn/components/chunks/chunk-MPQP4R54.js +263 -0
- package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-NBIENHLV.js} +6 -6
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
- package/dist/cdn/components/chunks/chunk-OW7XKDCH.js +124 -0
- package/dist/cdn/components/chunks/chunk-P32B7BFD.js +118 -0
- package/dist/cdn/components/chunks/{chunk-ZPFHTJSS.js → chunk-PCM7D3YF.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-ABYEBP57.js → chunk-PED5ATYN.js} +11 -8
- package/dist/cdn/components/chunks/{chunk-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
- package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-SD2WHGPF.js} +7 -6
- package/dist/cdn/components/chunks/chunk-SJWRE6PW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
- package/dist/cdn/components/eun-alert.js +65 -45
- package/dist/cdn/components/eun-animate.js +5 -3
- package/dist/cdn/components/eun-badge.js +8 -8
- package/dist/cdn/components/eun-breadcrumb-item.js +14 -10
- package/dist/cdn/components/eun-breadcrumb.js +11 -7
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +20 -20
- package/dist/cdn/components/eun-card.js +61 -13
- package/dist/cdn/components/eun-carousel.js +35 -27
- package/dist/cdn/components/eun-check-card.js +3 -3
- package/dist/cdn/components/eun-checkbox-list.js +3 -3
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +45 -207
- package/dist/cdn/components/eun-collapse.js +49 -29
- package/dist/cdn/components/eun-color-picker.js +13 -13
- package/dist/cdn/components/eun-counter.js +15 -15
- package/dist/cdn/components/eun-date-picker.js +62 -62
- package/dist/cdn/components/eun-drawer.js +12 -12
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -6
- package/dist/cdn/components/eun-fab.js +31 -53
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +18 -11
- package/dist/cdn/components/eun-image-carousel.js +18 -18
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +12 -12
- package/dist/cdn/components/eun-input-phone.js +28 -28
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +134 -18
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +21 -21
- package/dist/cdn/components/eun-pagination.js +3 -3
- package/dist/cdn/components/eun-password-strength.js +9 -6
- package/dist/cdn/components/eun-progress-bar.js +13 -13
- package/dist/cdn/components/eun-radio-card.js +2 -2
- package/dist/cdn/components/eun-radio-list.js +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +9 -9
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +26 -26
- package/dist/cdn/components/eun-search.js +21 -21
- package/dist/cdn/components/eun-select.js +10 -10
- package/dist/cdn/components/eun-sidebar.js +9 -9
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +8 -8
- package/dist/cdn/components/eun-sliding-card.js +4 -3
- package/dist/cdn/components/eun-step.js +8 -8
- package/dist/cdn/components/eun-stepper.js +8 -8
- package/dist/cdn/components/eun-switch.js +10 -10
- package/dist/cdn/components/eun-tab-group.js +19 -11
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-tab.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table-cell.js +1 -1
- package/dist/cdn/components/eun-table-column.js +1 -1
- package/dist/cdn/components/eun-table-header.js +1 -1
- package/dist/cdn/components/eun-table-item.js +1 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +1 -1
- package/dist/cdn/components/eun-table.js +3 -3
- package/dist/cdn/components/eun-tag.js +34 -126
- package/dist/cdn/components/eun-textarea.js +23 -23
- package/dist/cdn/components/eun-time-picker.js +32 -32
- package/dist/cdn/components/eun-toast.js +40 -36
- package/dist/cdn/components/eun-toggle-group.js +213 -72
- package/dist/cdn/components/eun-toggle-item.js +49 -30
- package/dist/cdn/components/eun-toggle.js +12 -9
- package/dist/cdn/components/eun-toolbar.js +15 -8
- package/dist/cdn/components/eun-tooltip.js +122 -87
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.scss +1 -0
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/dist/cdn/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/dist/cdn/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/components/action/button/button.d.ts +44 -15
- package/dist/components/action/button/button.js +100 -20
- package/dist/components/action/button/button.styles.js +179 -393
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +13 -6
- package/dist/components/action/dropdown-button/dropdown-button.js +16 -5
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +8 -8
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +6 -6
- package/dist/components/action/fab/fab.d.ts +7 -4
- package/dist/components/action/fab/fab.js +11 -6
- package/dist/components/action/fab/fab.styles.js +26 -49
- package/dist/components/action/link/link.d.ts +115 -6
- package/dist/components/action/link/link.js +245 -21
- package/dist/components/action/link/link.styles.js +105 -3
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +27 -0
- package/dist/components/action/shared-styles/button-palette.styles.js +151 -0
- package/dist/components/action/toggle/toggle-group.d.ts +55 -11
- package/dist/components/action/toggle/toggle-group.js +193 -52
- package/dist/components/action/toggle/toggle-group.styles.d.ts +7 -5
- package/dist/components/action/toggle/toggle-group.styles.js +166 -41
- package/dist/components/action/toggle/toggle-item.d.ts +4 -4
- package/dist/components/action/toggle/toggle-item.js +2 -2
- package/dist/components/action/toggle/toggle-item.styles.js +45 -26
- package/dist/components/action/toggle/toggle.d.ts +1 -1
- package/dist/components/action/toggle/toggle.js +1 -1
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -2
- package/dist/components/action/toggle/toggle.styles.js +13 -10
- package/dist/components/alert/alert/alert.d.ts +4 -3
- package/dist/components/alert/alert/alert.js +4 -3
- package/dist/components/alert/alert/alert.styles.js +57 -36
- package/dist/components/alert/drawer/drawer.js +1 -1
- package/dist/components/alert/drawer/drawer.styles.js +3 -3
- package/dist/components/alert/modal/modal.d.ts +8 -8
- package/dist/components/alert/modal/modal.js +11 -11
- package/dist/components/alert/modal/modal.styles.js +6 -6
- package/dist/components/alert/toast/toast.d.ts +4 -3
- package/dist/components/alert/toast/toast.js +4 -3
- package/dist/components/alert/toast/toast.styles.js +41 -36
- package/dist/components/content/badge/badge.d.ts +6 -6
- package/dist/components/content/badge/badge.js +4 -4
- package/dist/components/content/badge/badge.styles.js +5 -5
- package/dist/components/content/card/card.d.ts +36 -8
- package/dist/components/content/card/card.js +68 -8
- package/dist/components/content/card/card.styles.js +52 -11
- package/dist/components/content/card/image-card.d.ts +3 -2
- package/dist/components/content/card/image-card.js +2 -1
- package/dist/components/content/card/image-card.styles.js +17 -10
- package/dist/components/content/card/sliding-card.d.ts +2 -1
- package/dist/components/content/card/sliding-card.js +1 -0
- package/dist/components/content/card/sliding-card.styles.js +3 -2
- package/dist/components/content/chip/chip.d.ts +16 -7
- package/dist/components/content/chip/chip.js +18 -6
- package/dist/components/content/chip/chip.styles.d.ts +1 -1
- package/dist/components/content/chip/chip.styles.js +43 -207
- package/dist/components/content/collapse/collapse.d.ts +29 -11
- package/dist/components/content/collapse/collapse.js +53 -23
- package/dist/components/content/collapse/collapse.styles.js +23 -9
- package/dist/components/content/icon/icon.d.ts +12 -2
- package/dist/components/content/icon/icon.js +52 -22
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +5 -2
- package/dist/components/content/image-carousel/image-carousel.styles.js +14 -14
- package/dist/components/content/password-strength/password-strength.styles.js +7 -4
- package/dist/components/content/progress-bar/progress-bar.styles.js +9 -9
- package/dist/components/content/shared-styles/card-link.styles.js +1 -0
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +31 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +149 -0
- package/dist/components/content/tag/tag.d.ts +16 -6
- package/dist/components/content/tag/tag.js +19 -6
- package/dist/components/content/tag/tag.styles.d.ts +1 -1
- package/dist/components/content/tag/tag.styles.js +40 -125
- package/dist/components/content/tooltip/tooltip.d.ts +15 -4
- package/dist/components/content/tooltip/tooltip.js +21 -4
- package/dist/components/content/tooltip/tooltip.styles.js +115 -79
- package/dist/components/form/checkbox/check-card.styles.js +2 -2
- package/dist/components/form/checkbox/checkbox-list.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.styles.js +6 -6
- package/dist/components/form/color-picker/color-picker.d.ts +3 -3
- package/dist/components/form/color-picker/color-picker.js +4 -4
- package/dist/components/form/color-picker/color-picker.styles.js +7 -7
- package/dist/components/form/counter/counter.d.ts +3 -3
- package/dist/components/form/counter/counter.js +3 -3
- package/dist/components/form/counter/counter.styles.js +12 -12
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-grid.styles.js +15 -15
- package/dist/components/form/date-picker/date-picker-month-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-year-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +3 -3
- package/dist/components/form/date-picker/date-picker.js +3 -3
- package/dist/components/form/date-picker/date-picker.styles.js +17 -17
- package/dist/components/form/input/input.d.ts +3 -3
- package/dist/components/form/input/input.js +4 -4
- package/dist/components/form/input-file/input-file.d.ts +1 -1
- package/dist/components/form/input-file/input-file.styles.js +9 -9
- package/dist/components/form/input-phone/input-phone.d.ts +3 -3
- package/dist/components/form/input-phone/input-phone.js +3 -3
- package/dist/components/form/input-phone/input-phone.styles.js +19 -19
- package/dist/components/form/label/label.styles.js +4 -4
- package/dist/components/form/radio/radio-card.styles.js +1 -1
- package/dist/components/form/radio/radio-list.d.ts +1 -1
- package/dist/components/form/radio/radio.d.ts +1 -1
- package/dist/components/form/radio/radio.styles.js +2 -2
- package/dist/components/form/search/search.styles.js +9 -9
- package/dist/components/form/select/select.d.ts +3 -3
- package/dist/components/form/select/select.js +3 -3
- package/dist/components/form/select/select.styles.js +6 -6
- package/dist/components/form/shared-styles/card.styles.js +1 -1
- package/dist/components/form/shared-styles/field.styles.js +12 -12
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/shared-styles/listbox.styles.js +6 -6
- package/dist/components/form/slider/slider.d.ts +1 -1
- package/dist/components/form/slider/slider.styles.js +6 -6
- package/dist/components/form/switch/switch.d.ts +1 -1
- package/dist/components/form/switch/switch.styles.js +8 -8
- package/dist/components/form/textarea/textarea.d.ts +3 -3
- package/dist/components/form/textarea/textarea.js +4 -4
- package/dist/components/form/textarea/textarea.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-columns.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker.d.ts +3 -3
- package/dist/components/form/time-picker/time-picker.js +3 -3
- package/dist/components/form/time-picker/time-picker.styles.js +13 -13
- package/dist/components/layout/animate/animate.d.ts +8 -0
- package/dist/components/layout/animate/animate.js +20 -8
- package/dist/components/loader/loader/loader.styles.js +2 -2
- package/dist/components/loader/skeleton/skeleton.styles.js +8 -5
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +7 -0
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +15 -1
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +3 -3
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +1 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +7 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
- package/dist/components/navigation/carousel/carousel.d.ts +40 -6
- package/dist/components/navigation/carousel/carousel.js +61 -12
- package/dist/components/navigation/carousel/carousel.styles.js +19 -7
- package/dist/components/navigation/pagination/pagination.styles.js +3 -3
- package/dist/components/navigation/sidebar/sidebar.styles.js +9 -9
- package/dist/components/navigation/stepper/step.styles.js +8 -8
- package/dist/components/navigation/stepper/stepper.styles.js +8 -8
- package/dist/components/navigation/tabs/tab/tab.styles.js +5 -5
- package/dist/components/navigation/tabs/tab-group/tab-group.d.ts +9 -0
- package/dist/components/navigation/tabs/tab-group/tab-group.js +19 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +12 -4
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +2 -0
- package/dist/components/navigation/toolbar/toolbar.js +2 -0
- package/dist/components/navigation/toolbar/toolbar.styles.js +16 -7
- package/dist/features/scheduler/calendar/calendar.d.ts +6 -6
- package/dist/features/scheduler/calendar/calendar.js +10 -10
- package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
- package/dist/features/scheduler/scheduler/scheduler.d.ts +6 -6
- package/dist/features/scheduler/scheduler/scheduler.js +13 -13
- package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +10 -8
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +7 -7
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +8 -8
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +5 -5
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +3 -3
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.d.ts +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.js +2 -2
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +1 -1
- package/dist/features/table/native-table.css +11 -11
- package/dist/features/table/table/table.styles.js +2 -2
- package/dist/features/table/table/table.types.d.ts +7 -3
- package/dist/features/table/table-action-bar/table-action-bar.js +3 -3
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +2 -2
- package/dist/features/table/table-cell/table-cell.styles.js +2 -2
- package/dist/features/table/table-column/table-column.styles.js +3 -3
- package/dist/features/table/table-header/table-header.styles.js +4 -4
- package/dist/features/table/table-item/table-item.styles.js +6 -6
- package/dist/features/table/table-managed/table-managed.js +2 -2
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n/fr.js +3 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +5 -2
- package/dist/jsx.d.ts +19 -6
- package/dist/mixins/button.mixin.d.ts +11 -9
- package/dist/mixins/button.mixin.js +23 -5
- package/dist/mixins/card-link.mixin.d.ts +3 -2
- package/dist/mixins/card-link.mixin.js +12 -5
- package/dist/mixins/check.mixin.d.ts +1 -1
- package/dist/mixins/disabled.mixin.d.ts +3 -3
- package/dist/mixins/disabled.mixin.js +10 -5
- package/dist/mixins/editable.mixin.d.ts +1 -1
- package/dist/mixins/field-appearance.mixin.d.ts +19 -0
- package/dist/mixins/{field-variant.mixin.js → field-appearance.mixin.js} +11 -11
- package/dist/mixins/form.mixin.d.ts +5 -1
- package/dist/mixins/form.mixin.js +32 -12
- package/dist/mixins/overflow-navigation.mixin.js +2 -1
- package/dist/mixins/radio.mixin.d.ts +1 -1
- package/dist/mixins/validators.mixin.d.ts +9 -3
- package/dist/ssr/animate-ssr.css +26 -72
- package/dist/ssr/links-ssr.css +35 -0
- package/dist/ssr/overlay-ssr.css +0 -41
- package/dist/ssr/rich-text.css +38 -0
- package/dist/ssr/sidebar-ssr.css +0 -38
- package/dist/ssr/toolbar-ssr.css +73 -39
- package/dist/types/variant.type.d.ts +26 -10
- package/dist/utils/navigation.utils.d.ts +14 -0
- package/dist/utils/navigation.utils.js +33 -0
- package/dist/utils/new-tab-anchor.controller.d.ts +44 -0
- package/dist/utils/new-tab-anchor.controller.js +102 -0
- package/dist/utils/rich-text.utils.d.ts +33 -0
- package/dist/utils/rich-text.utils.js +140 -49
- package/dist/utils/severity-icon.utils.d.ts +1 -1
- package/dist/utils/severity-icon.utils.js +1 -1
- package/dist/utils/theme-generator.utils.d.ts +26 -3
- package/dist/utils/theme-generator.utils.js +68 -21
- package/package.json +13 -2
- package/styles/themes/eunomia-theme.scss +1 -0
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/cdn/components/chunks/chunk-3LMI7KUA.js +0 -48
- package/dist/cdn/components/chunks/chunk-5TH3P53V.js +0 -16
- package/dist/cdn/components/chunks/chunk-ATH2OAMU.js +0 -1
- package/dist/cdn/components/chunks/chunk-BKHD4S57.js +0 -1
- package/dist/cdn/components/chunks/chunk-KNM5QHDK.js +0 -38
- package/dist/cdn/components/chunks/chunk-MBF52GEL.js +0 -1
- package/dist/cdn/components/chunks/chunk-T7WABJEJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-XSMCT4DF.js +0 -1
- package/dist/cdn/components/chunks/chunk-Z6PJYSC3.js +0 -622
- package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
- package/dist/mixins/field-variant.mixin.d.ts +0 -22
|
@@ -34,8 +34,8 @@ import{a as N}from"./chunks/chunk-5EVP7YNE.js";import{a,f as y,g as $,h as i,n a
|
|
|
34
34
|
height: var(--pagination-item-size, 32px);
|
|
35
35
|
padding-inline: var(--eun-space-xs, 4px);
|
|
36
36
|
font-family: inherit;
|
|
37
|
-
font-size: var(--pagination-font-size, var(--eun-
|
|
38
|
-
font-weight: var(--eun-
|
|
37
|
+
font-size: var(--pagination-font-size, var(--eun-font-size-s, 14px));
|
|
38
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
39
39
|
line-height: 1;
|
|
40
40
|
}
|
|
41
41
|
:host([show-labels]) button.control {
|
|
@@ -50,7 +50,7 @@ import{a as N}from"./chunks/chunk-5EVP7YNE.js";import{a,f as y,g as $,h as i,n a
|
|
|
50
50
|
border: none;
|
|
51
51
|
border-radius: var(
|
|
52
52
|
--pagination-border-radius,
|
|
53
|
-
var(--eun-
|
|
53
|
+
var(--eun-border-radius-m, 8px)
|
|
54
54
|
);
|
|
55
55
|
background: transparent;
|
|
56
56
|
color: var(--pagination-item-color, var(--eun-text-secondary, #484e61));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as x}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as f}from"./chunks/chunk-5EVP7YNE.js";import{a as s,f as c,g as
|
|
1
|
+
import{a as x}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as f}from"./chunks/chunk-5EVP7YNE.js";import{a as s,f as c,g as u,h as l,j as v,n as i,p as g,s as h}from"./chunks/chunk-XH6NREVZ.js";var L=u`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: 100%;
|
|
@@ -50,11 +50,11 @@ import{a as x}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
50
50
|
height: var(--password-strength-track-height, 6px);
|
|
51
51
|
border-radius: var(
|
|
52
52
|
--password-strength-border-radius,
|
|
53
|
-
var(--eun-
|
|
53
|
+
var(--eun-border-radius-full, 999px)
|
|
54
54
|
);
|
|
55
55
|
background: var(
|
|
56
56
|
--password-strength-track-color,
|
|
57
|
-
var(--eun-
|
|
57
|
+
var(--eun-surface-sunken-strong, #ecedf0)
|
|
58
58
|
);
|
|
59
59
|
transition: background-color
|
|
60
60
|
var(--password-strength-transition-duration, 0.3s) ease;
|
|
@@ -71,7 +71,10 @@ import{a as x}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
71
71
|
display: flex;
|
|
72
72
|
align-items: baseline;
|
|
73
73
|
gap: var(--eun-space-xxs, 1.6px);
|
|
74
|
-
font-size: var(
|
|
74
|
+
font-size: var(
|
|
75
|
+
--password-strength-font-size,
|
|
76
|
+
var(--eun-font-size-xs, 12px)
|
|
77
|
+
);
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
#caption {
|
|
@@ -84,7 +87,7 @@ import{a as x}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
84
87
|
#level-name {
|
|
85
88
|
font-weight: var(
|
|
86
89
|
--password-strength-level-font-weight,
|
|
87
|
-
var(--eun-
|
|
90
|
+
var(--eun-font-weight-m, 600)
|
|
88
91
|
);
|
|
89
92
|
color: var(
|
|
90
93
|
--_levelColor,
|
|
@@ -131,4 +134,4 @@ import{a as x}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
131
134
|
aria-live="polite"
|
|
132
135
|
class="visually-hidden"
|
|
133
136
|
></div>
|
|
134
|
-
`}};t.styles=[w],s([l()],t.prototype,"value",2),s([l()],t.prototype,"label",2),s([l({type:Array})],t.prototype,"rules",2),s([l({type:Array})],t.prototype,"levels",2),s([l({type:Boolean,attribute:"hide-label"})],t.prototype,"hideLabel",2),s([
|
|
137
|
+
`}};t.styles=[w],s([l()],t.prototype,"value",2),s([l()],t.prototype,"label",2),s([l({type:Array})],t.prototype,"rules",2),s([l({type:Array})],t.prototype,"levels",2),s([l({type:Boolean,attribute:"hide-label"})],t.prototype,"hideLabel",2),s([v("#announcer")],t.prototype,"announcerEl",2),t=s([c(T)],t);export{t as EunomiaPasswordStrength,T as EunomiaPasswordStrengthTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as s}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a}from"./chunks/chunk-5EVP7YNE.js";import{a as e,f as i,g as l,h as o,l as t,n,s as u}from"./chunks/chunk-XH6NREVZ.js";var p=l`
|
|
2
2
|
:host {
|
|
3
3
|
--_optimumColor: var(
|
|
4
4
|
--progress-bar-fill-color,
|
|
@@ -76,7 +76,7 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
76
76
|
color: var(--progress-bar-corner-color, var(--eun-text-secondary, #484e61));
|
|
77
77
|
font-size: var(
|
|
78
78
|
--progress-bar-corner-font-size,
|
|
79
|
-
var(--eun-
|
|
79
|
+
var(--eun-font-size-xs, 12px)
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -97,11 +97,11 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
97
97
|
border: none;
|
|
98
98
|
border-radius: var(
|
|
99
99
|
--progress-bar-border-radius,
|
|
100
|
-
var(--eun-
|
|
100
|
+
var(--eun-border-radius-full, 999px)
|
|
101
101
|
);
|
|
102
102
|
background: var(
|
|
103
103
|
--progress-bar-track-color,
|
|
104
|
-
var(--eun-
|
|
104
|
+
var(--eun-surface-sunken-strong, #ecedf0)
|
|
105
105
|
);
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -111,11 +111,11 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
111
111
|
height: var(--progress-bar-track-height, 8px);
|
|
112
112
|
border-radius: var(
|
|
113
113
|
--progress-bar-border-radius,
|
|
114
|
-
var(--eun-
|
|
114
|
+
var(--eun-border-radius-full, 999px)
|
|
115
115
|
);
|
|
116
116
|
background: var(
|
|
117
117
|
--progress-bar-track-color,
|
|
118
|
-
var(--eun-
|
|
118
|
+
var(--eun-surface-sunken-strong, #ecedf0)
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -123,7 +123,7 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
123
123
|
background: var(--_optimumColor);
|
|
124
124
|
border-radius: var(
|
|
125
125
|
--progress-bar-border-radius,
|
|
126
|
-
var(--eun-
|
|
126
|
+
var(--eun-border-radius-full, 999px)
|
|
127
127
|
);
|
|
128
128
|
transition: width var(--progress-bar-transition-duration, 0.3s) ease;
|
|
129
129
|
}
|
|
@@ -132,7 +132,7 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
132
132
|
background: var(--_subOptimumColor);
|
|
133
133
|
border-radius: var(
|
|
134
134
|
--progress-bar-border-radius,
|
|
135
|
-
var(--eun-
|
|
135
|
+
var(--eun-border-radius-full, 999px)
|
|
136
136
|
);
|
|
137
137
|
transition: width var(--progress-bar-transition-duration, 0.3s) ease;
|
|
138
138
|
}
|
|
@@ -141,7 +141,7 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
141
141
|
background: var(--_subSubOptimumColor);
|
|
142
142
|
border-radius: var(
|
|
143
143
|
--progress-bar-border-radius,
|
|
144
|
-
var(--eun-
|
|
144
|
+
var(--eun-border-radius-full, 999px)
|
|
145
145
|
);
|
|
146
146
|
transition: width var(--progress-bar-transition-duration, 0.3s) ease;
|
|
147
147
|
}
|
|
@@ -150,7 +150,7 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
150
150
|
border: none;
|
|
151
151
|
border-radius: var(
|
|
152
152
|
--progress-bar-border-radius,
|
|
153
|
-
var(--eun-
|
|
153
|
+
var(--eun-border-radius-full, 999px)
|
|
154
154
|
);
|
|
155
155
|
background: var(--_optimumColor);
|
|
156
156
|
transition: width var(--progress-bar-transition-duration, 0.3s) ease;
|
|
@@ -175,7 +175,7 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
175
175
|
`,m=p;var b="eun-progress-bar",r=class extends u{constructor(){super(...arguments);this.value=0;this.min=0;this.max=100;this.handleSlotChange=()=>{this.requestUpdate()}}render(){return n`
|
|
176
176
|
<div id="wrapper">
|
|
177
177
|
<div
|
|
178
|
-
class=${
|
|
178
|
+
class=${s({"corner-row":!0,empty:!this.topLeftEls.length&&!this.topRightEls.length})}
|
|
179
179
|
>
|
|
180
180
|
<span class="corner">
|
|
181
181
|
<slot name="top-left" @slotchange=${this.handleSlotChange}></slot>
|
|
@@ -195,7 +195,7 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
195
195
|
aria-label=${a(this.ariaLabel??void 0)}
|
|
196
196
|
></meter>
|
|
197
197
|
<div
|
|
198
|
-
class=${
|
|
198
|
+
class=${s({"corner-row":!0,empty:!this.bottomLeftEls?.length&&!this.bottomRightEls?.length})}
|
|
199
199
|
>
|
|
200
200
|
<span class="corner">
|
|
201
201
|
<slot
|
|
@@ -211,4 +211,4 @@ import{a as i}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
211
211
|
</span>
|
|
212
212
|
</div>
|
|
213
213
|
</div>
|
|
214
|
-
`}};r.styles=[m],e([o({type:Number})],r.prototype,"value",2),e([o({type:Number})],r.prototype,"min",2),e([o({type:Number})],r.prototype,"max",2),e([o({type:Number})],r.prototype,"low",2),e([o({type:Number})],r.prototype,"high",2),e([o({type:Number})],r.prototype,"optimum",2),e([o({reflect:!0})],r.prototype,"severity",2),e([t({slot:"top-left"})],r.prototype,"topLeftEls",2),e([t({slot:"top-right"})],r.prototype,"topRightEls",2),e([t({slot:"bottom-left"})],r.prototype,"bottomLeftEls",2),e([t({slot:"bottom-right"})],r.prototype,"bottomRightEls",2),r=e([
|
|
214
|
+
`}};r.styles=[m],e([o({type:Number})],r.prototype,"value",2),e([o({type:Number})],r.prototype,"min",2),e([o({type:Number})],r.prototype,"max",2),e([o({type:Number})],r.prototype,"low",2),e([o({type:Number})],r.prototype,"high",2),e([o({type:Number})],r.prototype,"optimum",2),e([o({reflect:!0})],r.prototype,"severity",2),e([t({slot:"top-left"})],r.prototype,"topLeftEls",2),e([t({slot:"top-right"})],r.prototype,"topRightEls",2),e([t({slot:"bottom-left"})],r.prototype,"bottomLeftEls",2),e([t({slot:"bottom-right"})],r.prototype,"bottomRightEls",2),r=e([i(b)],r);export{r as EunomiaProgressBar,b as EunomiaProgressBarTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as u}from"./chunks/chunk-
|
|
1
|
+
import{b as u}from"./chunks/chunk-6ETDXUH2.js";import{a as s}from"./chunks/chunk-74AOAB4X.js";import{e as a}from"./chunks/chunk-OAULRKHQ.js";import"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-32DTNR52.js";import{a as l}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as o,f as d,g as i,h as c,l as t,n as e,p as n}from"./chunks/chunk-XH6NREVZ.js";var h=i`
|
|
2
2
|
:host {
|
|
3
3
|
--_borderWidth: var(--radio-card-border-width, 1px);
|
|
4
4
|
--_borderColor: var(
|
|
@@ -27,7 +27,7 @@ import{b as u}from"./chunks/chunk-TBKKTJOX.js";import{a as s}from"./chunks/chunk
|
|
|
27
27
|
--_padding: var(--radio-card-padding, var(--eun-space-m, 16px));
|
|
28
28
|
--_borderRadius: var(
|
|
29
29
|
--radio-card-border-radius,
|
|
30
|
-
var(--eun-
|
|
30
|
+
var(--eun-border-radius-m, 10px)
|
|
31
31
|
);
|
|
32
32
|
--_indicatorBorder: var(--_borderColor);
|
|
33
33
|
--_indicatorDot: transparent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as E}from"./chunks/chunk-BQHYZB2W.js";import{a as y}from"./chunks/chunk-GW3VP2L7.js";import{a as m,c as b,d as g,e as d}from"./chunks/chunk-
|
|
1
|
+
import{a as E}from"./chunks/chunk-BQHYZB2W.js";import{a as y}from"./chunks/chunk-GW3VP2L7.js";import{a as m,c as b,d as g,e as d}from"./chunks/chunk-OAULRKHQ.js";import{a as v}from"./chunks/chunk-YYCEPZUN.js";import{a as p}from"./chunks/chunk-32DTNR52.js";import{a as f}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-5EVP7YNE.js";import{a as r,f as l,g as h,h as o,j as u,n as c,s as n}from"./chunks/chunk-XH6NREVZ.js";var $=h`
|
|
2
2
|
:host {
|
|
3
3
|
--_container-gap: var(--radio-list-gap, var(--eun-space-s, 8px));
|
|
4
4
|
--_options-gap: var(--radio-list-options-gap, var(--eun-space-s, 8px));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunks/chunk-
|
|
1
|
+
import{a,b}from"./chunks/chunk-6ETDXUH2.js";import"./chunks/chunk-OAULRKHQ.js";import"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-32DTNR52.js";import"./chunks/chunk-XH6NREVZ.js";export{b as EunomiaRadio,a as EunomiaRadioTagName};
|
|
@@ -24,8 +24,8 @@ import{a as L,b as k}from"./chunks/chunk-IKAZYVB7.js";import{a as D}from"./chunk
|
|
|
24
24
|
display: block;
|
|
25
25
|
margin-bottom: var(--eun-space-xs, 4px);
|
|
26
26
|
color: var(--eun-text-color, #071621);
|
|
27
|
-
font-size: var(--eun-
|
|
28
|
-
font-weight: var(--eun-
|
|
27
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
28
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.guest-input-row {
|
|
@@ -66,7 +66,7 @@ import{a as L,b as k}from"./chunks/chunk-IKAZYVB7.js";import{a as D}from"./chunk
|
|
|
66
66
|
#actions .spacer {
|
|
67
67
|
flex: 1 1 auto;
|
|
68
68
|
}
|
|
69
|
-
`,T=x;var h=class u extends Event{static{this.eventName="eunguestinvite"}constructor(m,t){super(u.eventName,{bubbles:!0,composed:!1}),this.email=m,this.eventId=t}};var w="eun-scheduler-event-editor",
|
|
69
|
+
`,T=x;var h=class u extends Event{static{this.eventName="eunguestinvite"}constructor(m,t){super(u.eventName,{bubbles:!0,composed:!1}),this.email=m,this.eventId=t}};var w="eun-scheduler-event-editor",C=[{name:"red",value:"#f14959"},{name:"purple",value:"#9562e3"},{name:"yellow",value:"#f0f050"},{name:"blue",value:"#3bb3b9"},{name:"green",value:"#49f15f"},{name:"pink",value:"#d05df3"}],G=["low","medium","high","critical"],P={low:"success",high:"warning",critical:"critical"},I=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,i=class extends v{constructor(){super(...arguments);this.hideActions=!1;this.titleLabel="Title";this.descriptionLabel="Description";this.allDayLabel="All day";this.dateLabel="Date";this.endDateLabel="End date";this.startTimeLabel="Start time";this.endTimeLabel="End time";this.locationLabel="Location";this.notesLabel="Notes";this.priorityLabel="Priority";this.colorLabel="Color";this.requiredLabel="is required";this.colorLabels={red:"Red",purple:"Purple",yellow:"Yellow",blue:"Blue",green:"Green",pink:"Pink"};this.guestsLabel="Guests";this.addGuestLabel="Add guest";this.removeGuestLabel="Remove";this.saveLabel="Save";this.cancelLabel="Cancel";this.deleteLabel="Delete";this.formTitle="";this.formDescription="";this.formAllDay=!1;this.formDate=n(new Date);this.formEndDate=n(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.handleSaveClick=()=>{this.requestSave()};this.handleCancelClick=()=>{this.seedForm()};this.handlePriorityChange=t=>{this.formPriority=t.target.value[0]};this.handleGuestInputChange=t=>{this.guestInputValue=t.target.value??"",this.guestInputError=!1};this.handleGuestInputKeydown=t=>{t.key==="Enter"&&(t.preventDefault(),this.addGuest())};this.handleAddGuestClick=()=>{this.addGuest()};this.handleRemoveGuest=t=>{this.formGuests=this.formGuests.filter(e=>e.email!==t)}}connectedCallback(){super.connectedCallback?.(),this.seedForm()}willUpdate(t){(t.has("event")||t.has("initialStart")||t.has("initialEnd"))&&this.seedForm(),super.willUpdate(t)}updated(t){super.updated(t),["formTitle","formDescription","formAllDay","formDate","formEndDate","formStart","formEnd","formLocation","formNotes","formPriority","formColor","formGuests"].some(o=>t.has(o))&&this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}seedForm(){let t=this.event;if(t)this.formTitle=t.title,this.formDescription=t.description??"",this.formAllDay=!!t.allDay,this.formDate=n(t.start),this.formEndDate=n(t.end),this.formStart=t.start,this.formEnd=t.end,this.formLocation=t.location??"",this.formNotes=t.notes??"",this.formPriority=t.priority??"medium",this.formColor=t.color,this.formGuests=t.guests?t.guests.map(e=>({...e})):[];else{let e=this.initialStart??A(new Date),o=this.initialEnd??y(e,1);this.formTitle="",this.formDescription="",this.formAllDay=!1,this.formDate=n(e),this.formEndDate=n(e),this.formStart=e,this.formEnd=o,this.formLocation="",this.formNotes="",this.formPriority="medium",this.formColor="blue",this.formGuests=[]}this.guestInputValue="",this.guestInputError=!1,this.showErrors=!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:n(this.formDate),end:g(this.formEndDate)};if(!this.formStart||!this.formEnd)return null;let t=new Date(this.formDate);t.setHours(this.formStart.getHours(),this.formStart.getMinutes(),0,0);let e=new Date(this.formDate);return e.setHours(this.formEnd.getHours(),this.formEnd.getMinutes(),0,0),e.getTime()<=t.getTime()&&e.setDate(e.getDate()+1),{start:t,end:e}}get valid(){if(!this.formTitle.trim())return!1;let t=this.composeStartEnd();return!!t&&t.end.getTime()>t.start.getTime()}requestSave(){if(!this.valid)return this.showErrors=!0,!1;let t=this.composeStartEnd(),e={id:this.event?.id??crypto.randomUUID(),title:this.formTitle.trim(),description:this.formDescription||void 0,allDay:this.formAllDay,start:t.start,end:t.end,location:this.formLocation||void 0,notes:this.formNotes||void 0,color:this.formColor,priority:this.formPriority,guests:this.formGuests.length?this.formGuests:void 0};return this.dispatchEvent(this.event?new D(e):new L(e)),this.event=e,this.seedSnapshot=this.snapshot(),!0}requestDelete(){this.event&&this.dispatchEvent(new k(this.event.id))}addGuest(){let t=this.guestInputValue.trim();if(!t)return;if(!I.test(t)){this.guestInputError=!0;return}let e=this.formGuests.some(o=>o.email.toLowerCase()===t.toLowerCase());this.guestInputValue="",this.guestInputError=!1,!e&&(this.formGuests=[...this.formGuests,{email:t,status:"pending"}],this.dispatchEvent(new h(t,this.event?.id)))}render(){let t=this.showErrors&&!this.formTitle.trim();return l`
|
|
70
70
|
<div id="fields">
|
|
71
71
|
<eun-input
|
|
72
72
|
label=${this.titleLabel}
|
|
@@ -165,7 +165,7 @@ import{a as L,b as k}from"./chunks/chunk-IKAZYVB7.js";import{a as D}from"./chunk
|
|
|
165
165
|
<eun-button
|
|
166
166
|
appearance="default"
|
|
167
167
|
id="guest-add-button"
|
|
168
|
-
|
|
168
|
+
color="secondary"
|
|
169
169
|
aria-label=${this.addGuestLabel}
|
|
170
170
|
@click=${this.handleAddGuestClick}
|
|
171
171
|
>
|
|
@@ -215,10 +215,10 @@ import{a as L,b as k}from"./chunks/chunk-IKAZYVB7.js";import{a as D}from"./chunk
|
|
|
215
215
|
.value=${[this.formPriority]}
|
|
216
216
|
@eunchange=${this.handlePriorityChange}
|
|
217
217
|
>
|
|
218
|
-
${
|
|
218
|
+
${G.map(e=>l`
|
|
219
219
|
<eun-toggle-item
|
|
220
220
|
value=${e}
|
|
221
|
-
|
|
221
|
+
color=${p(P[e])}
|
|
222
222
|
>
|
|
223
223
|
${N(e)}
|
|
224
224
|
</eun-toggle-item>
|
|
@@ -233,7 +233,7 @@ import{a as L,b as k}from"./chunks/chunk-IKAZYVB7.js";import{a as D}from"./chunk
|
|
|
233
233
|
.value=${this.formColor}
|
|
234
234
|
@eunchange=${e=>{this.formColor=e.target.value}}
|
|
235
235
|
>
|
|
236
|
-
${
|
|
236
|
+
${C.map(e=>l`
|
|
237
237
|
<option value=${e.value}>
|
|
238
238
|
${this.colorLabels[e.name]}
|
|
239
239
|
</option>
|
|
@@ -244,7 +244,7 @@ import{a as L,b as k}from"./chunks/chunk-IKAZYVB7.js";import{a as D}from"./chunk
|
|
|
244
244
|
${this.hideActions?c:l`
|
|
245
245
|
<div id="actions">
|
|
246
246
|
${this.event?l`
|
|
247
|
-
<eun-button
|
|
247
|
+
<eun-button color="critical" @click=${this.requestDelete}>
|
|
248
248
|
${this.deleteLabel}
|
|
249
249
|
</eun-button>
|
|
250
250
|
`:c}
|
|
@@ -252,7 +252,7 @@ import{a as L,b as k}from"./chunks/chunk-IKAZYVB7.js";import{a as D}from"./chunk
|
|
|
252
252
|
<eun-button appearance="ghost" @click=${this.handleCancelClick}>
|
|
253
253
|
${this.cancelLabel}
|
|
254
254
|
</eun-button>
|
|
255
|
-
<eun-button
|
|
255
|
+
<eun-button color="primary" @click=${this.handleSaveClick}>
|
|
256
256
|
${this.saveLabel}
|
|
257
257
|
</eun-button>
|
|
258
258
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunks/chunk-
|
|
1
|
+
import{a,b}from"./chunks/chunk-AIS3UICU.js";import"./chunks/chunk-647ISUF4.js";import"./chunks/chunk-MJ4RDZLL.js";import"./chunks/chunk-XH6NREVZ.js";export{b as EunomiaSchedulerEventCard,a as EunomiaSchedulerEventCardTagName};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as
|
|
1
|
+
import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as S}from"./chunks/chunk-LK5BJ4SH.js";import{a as T}from"./chunks/chunk-IJJ67C66.js";import{a as w}from"./chunks/chunk-BRSNQMCD.js";import{a as k,b as C,d as y,e as P,f as M}from"./chunks/chunk-647ISUF4.js";import{j as E}from"./chunks/chunk-MJ4RDZLL.js";import{a as D}from"./chunks/chunk-SJWRE6PW.js";import{a as c}from"./chunks/chunk-5EVP7YNE.js";import{a as i,f as x,g,h as o,i as p,j as h,n as s,p as d,s as L}from"./chunks/chunk-XH6NREVZ.js";var R=g`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
border: 1px solid
|
|
6
6
|
var(--scheduler-border-color, var(--eun-border-color, #dee0e7));
|
|
7
|
-
border-radius: var(--eun-
|
|
7
|
+
border-radius: var(--eun-border-radius-m, 10px);
|
|
8
8
|
background: var(--scheduler-background, var(--eun-surface-color, #ffffff));
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -72,7 +72,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
72
72
|
#period-label {
|
|
73
73
|
margin: 0 var(--eun-space-xs, 4px);
|
|
74
74
|
font-size: 15px;
|
|
75
|
-
font-weight: var(--eun-
|
|
75
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
76
76
|
color: var(--eun-text-color, #071621);
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -126,7 +126,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
126
126
|
clip: rect(0 0 0 0);
|
|
127
127
|
white-space: nowrap;
|
|
128
128
|
}
|
|
129
|
-
`,z=
|
|
129
|
+
`,z=R;var Q=g`
|
|
130
130
|
#event-popover {
|
|
131
131
|
box-sizing: border-box;
|
|
132
132
|
width: var(--scheduler-popover-width, 300px);
|
|
@@ -136,7 +136,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
136
136
|
margin: 0;
|
|
137
137
|
padding: 0;
|
|
138
138
|
border: 1px solid var(--eun-border-color, #dee0e7);
|
|
139
|
-
border-radius: var(--eun-
|
|
139
|
+
border-radius: var(--eun-border-radius-m, 10px);
|
|
140
140
|
background: var(--eun-surface-color, #ffffff);
|
|
141
141
|
box-shadow: var(--eun-shadow-m, 0 8px 24px rgba(7, 22, 33, 0.16));
|
|
142
142
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -172,8 +172,8 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
172
172
|
|
|
173
173
|
.event-popover-bar {
|
|
174
174
|
height: 4px;
|
|
175
|
-
border-radius: var(--eun-
|
|
176
|
-
var(--eun-
|
|
175
|
+
border-radius: var(--eun-border-radius-m, 10px)
|
|
176
|
+
var(--eun-border-radius-m, 10px) 0 0;
|
|
177
177
|
background: var(--_accent, var(--eun-color-blue-600, #0aa5a8));
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -195,7 +195,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
195
195
|
margin: 0;
|
|
196
196
|
padding-right: 28px;
|
|
197
197
|
font-size: 16px;
|
|
198
|
-
font-weight: var(--eun-
|
|
198
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.event-popover-row {
|
|
@@ -249,7 +249,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
249
249
|
gap: var(--eun-space-s, 8px);
|
|
250
250
|
padding: 0 var(--eun-space-m, 16px) var(--eun-space-m, 16px);
|
|
251
251
|
}
|
|
252
|
-
`,
|
|
252
|
+
`,O=Q;function N(l){let{event:n,locale:e,editLabel:a,deleteLabel:r,closeLabel:u,priorityLabels:v,readonly:b,onEdit:m,onDelete:_,onClose:W}=l;return s`
|
|
253
253
|
<div
|
|
254
254
|
class="event-popover-bar"
|
|
255
255
|
style="--_accent: var(--eun-color-${n.color}-600);"
|
|
@@ -260,7 +260,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
260
260
|
rounded
|
|
261
261
|
size="s"
|
|
262
262
|
aria-label=${u}
|
|
263
|
-
@click=${
|
|
263
|
+
@click=${W}
|
|
264
264
|
>
|
|
265
265
|
<eun-icon name="close" size="16"></eun-icon>
|
|
266
266
|
</eun-button>
|
|
@@ -295,8 +295,8 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
295
295
|
size="s"
|
|
296
296
|
hide-icon
|
|
297
297
|
color="primary"
|
|
298
|
-
.severity=${
|
|
299
|
-
>${
|
|
298
|
+
.severity=${k[n.priority]}
|
|
299
|
+
>${v[n.priority]??n.priority}</eun-tag
|
|
300
300
|
>
|
|
301
301
|
</div>
|
|
302
302
|
`:d}
|
|
@@ -307,7 +307,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
307
307
|
${n.guests.map(f=>s`
|
|
308
308
|
<li class="event-popover-guest" data-status=${f.status}>
|
|
309
309
|
<eun-icon
|
|
310
|
-
name=${
|
|
310
|
+
name=${C[f.status]}
|
|
311
311
|
size="14"
|
|
312
312
|
aria-hidden="true"
|
|
313
313
|
></eun-icon>
|
|
@@ -321,19 +321,19 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
321
321
|
${b?d:s`
|
|
322
322
|
<div class="event-popover-actions">
|
|
323
323
|
<eun-button
|
|
324
|
-
|
|
324
|
+
color="critical"
|
|
325
325
|
size="s"
|
|
326
326
|
appearance="outline"
|
|
327
327
|
rounded
|
|
328
328
|
@click=${_}
|
|
329
329
|
>${r}</eun-button
|
|
330
330
|
>
|
|
331
|
-
<eun-button
|
|
331
|
+
<eun-button color="primary" size="s" rounded @click=${m}
|
|
332
332
|
>${a}</eun-button
|
|
333
333
|
>
|
|
334
334
|
</div>
|
|
335
335
|
`}
|
|
336
|
-
`}function I(l,n){let e={weekday:"long",day:"numeric",month:"long"};if(
|
|
336
|
+
`}function I(l,n){let e={weekday:"long",day:"numeric",month:"long"};if(M(l)){let v=l.start.toLocaleDateString(n,e),b=l.end.toLocaleDateString(n,e),m=v===b?v:`${v} \u2013 ${b}`;return l.allDay?`All day \xB7 ${m}`:m}let a=l.start.toLocaleDateString(n,e),r=l.start.toLocaleTimeString(n,{hour:"numeric",minute:"2-digit"}),u=l.end.toLocaleTimeString(n,{hour:"numeric",minute:"2-digit"});return`${a} \xB7 ${r} \u2013 ${u}`}var j="eun-scheduler",V=["day","week","work-week","month","year"],t=class extends D(S(L)){constructor(){super(...arguments);this.events=[];this.view="week";this.displayedDate=new Date;this.weekStartsOn=1;this.dayStartHour=0;this.dayEndHour=24;this.slotDuration=30;this.readonly=!1;this.noAnimation=!1;this.todayLabel="Today";this.newEventLabel="New event";this.ariaLabelPrevious="Previous period";this.ariaLabelNext="Next period";this.viewDayLabel="Day";this.viewWeekLabel="Week";this.viewWorkWeekLabel="Work week";this.viewMonthLabel="Month";this.viewYearLabel="Year";this.applyLabel="Apply";this.cancelLabel="Cancel";this.deleteLabel="Delete";this.editLabel="Edit";this.closeLabel="Close";this.moreEventsLabel="+{count} more";this.eventAppearance="default";this.isDrawerOpen=!1;this.isModalOpen=!1;this.editingEvent=null;this.createStart=H(new Date);this.createEnd=E(this.createStart,1);this.editorDirty=!1;this.isMobile=!1;this.selectedEvent=null;this.handleMobileMediaChange=e=>{this.isMobile=e.matches};this.handleToday=()=>{this.displayedDate=new Date};this.handlePrevious=()=>this.navigate(-1);this.handleNext=()=>this.navigate(1);this.handleViewChange=e=>{let[a]=e.target.value;a&&(this.view=a)};this.handleMobileViewSelect=e=>{this.view=e.key};this.handleCalendarPeriodChange=()=>{this.calendarEl&&(this.view=this.calendarEl.view,this.displayedDate=this.calendarEl.displayedDate)};this.handleCalendarEventClick=e=>{this.openEventPopover(e.event,e.anchor)};this.handleCalendarSlotClick=e=>{this.openCreateEditor(e.start)};this.handleEventPopoverToggle=e=>{if(e.newState==="open"){this.popoverTriggerEl&&this.eventPopoverEl&&(this.anchorFloatingElement(this.popoverTriggerEl,this.eventPopoverEl,{axis:"horizontal",forceFallback:!0}),this.observeAnchorVisibility(this.popoverTriggerEl,()=>this.closeEventPopover()));return}this.unanchorFloatingElement(),this.unobserveAnchorVisibility(),this.popoverTriggerEl?.focus(),this.popoverTriggerEl=void 0};this.handlePopoverEdit=()=>{let e=this.selectedEvent;this.closeEventPopover(),e&&this.openEditEditor(e)};this.handlePopoverDelete=()=>{let e=this.selectedEvent;this.closeEventPopover(),e&&this.dispatchEvent(new $(e.id))};this.handlePopoverClose=()=>{this.closeEventPopover()};this.handleEditorCreate=e=>{this.dispatchEvent(new A(e.event)),this.closeEditor()};this.handleEditorUpdate=e=>{this.dispatchEvent(new w(e.event)),this.closeEditor()};this.handleCalendarEventMove=e=>{this.dispatchEvent(new w(e.event))};this.handleEditorDelete=e=>{this.dispatchEvent(new $(e.eventId)),this.closeEditor()};this.handleEditorInput=()=>{this.editorDirty=this.drawerEditorEl?.dirty??!1};this.handleDrawerSave=()=>{this.drawerEditorEl?.requestSave()};this.handleDrawerCancel=()=>{this.closeEditor()};this.handleDrawerDelete=()=>{this.drawerEditorEl?.requestDelete()};this.handleModalSave=()=>{this.modalEditorEl?.requestSave()};this.handleModalDelete=()=>{this.modalEditorEl?.requestDelete()};this.handleModalCancel=()=>{this.closeEditor()}}updated(e){if(super.updated(e),e.has("view")||e.has("displayedDate")||e.has("weekStartsOn")){let a=y(this.view,this.displayedDate,this.weekStartsOn);this.dispatchEvent(new T(this.view,a.start,a.end))}}updateMobileMediaQuery(){this.mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaChange),this.mobileMediaQuery=window.matchMedia("(max-width: 767px)"),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=P(this.view,this.displayedDate,e)}openCreateEditor(e){this.readonly||(this.editingEvent=null,this.createStart=e,this.createEnd=E(e,1),this.openEditorSurface())}openEditEditor(e){this.readonly||(this.editingEvent=e,this.openEditorSurface())}openEventPopover(e,a){this.selectedEvent=e,this.popoverTriggerEl=a,this.updateComplete.then(()=>{let r=this.eventPopoverEl;if(!r)return;let u=this.eventPopoverAnimation!==void 0;this.eventPopoverAnimation?.cancel(),this.eventPopoverAnimation=void 0;let v=!r.matches(":popover-open");v&&r.showPopover(),(v||u)&&this.playEventPopoverOpenAnimation(r)})}eventPopoverAnimationDuration(e){if(this.noAnimation||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return 0;let a=getComputedStyle(e).getPropertyValue("--scheduler-popover-transition-duration").trim();if(a){let r=a.endsWith("ms")?Number.parseFloat(a):Number.parseFloat(a)*1e3;if(Number.isFinite(r)&&r>=0)return r}return 160}playEventPopoverOpenAnimation(e){e.style.removeProperty("pointer-events");let a=this.eventPopoverAnimationDuration(e);a!==0&&(this.eventPopoverAnimation=e.animate([{opacity:0,transform:"scale(0.98)"},{opacity:1,transform:"scale(1)"}],{duration:a,easing:"ease",fill:"forwards"}))}closeEventPopover(){let e=this.eventPopoverEl;this.eventPopoverAnimation?.cancel(),this.eventPopoverAnimation=void 0,e?.matches(":popover-open")&&this.playEventPopoverCloseAnimation(e)}playEventPopoverCloseAnimation(e){e.style.pointerEvents="none";let a=this.eventPopoverAnimationDuration(e);if(a===0){e.hidePopover();return}let r=e.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.98)"}],{duration:a,easing:"ease",fill:"forwards"});this.eventPopoverAnimation=r,r.finished.then(()=>{this.eventPopoverAnimation===r&&(this.eventPopoverAnimation=void 0),e.hidePopover()}).catch(()=>{})}openEditorSurface(){this.editorDirty=!1,this.isMobile?this.isModalOpen=!0:this.isDrawerOpen=!0}closeEditor(){this.isDrawerOpen=!1,this.isModalOpen=!1,this.editingEvent=null,this.editorDirty=!1}renderNavArrows(){return s`
|
|
337
337
|
<div id="header-nav-arrows">
|
|
338
338
|
<eun-button
|
|
339
339
|
appearance="ghost"
|
|
@@ -384,7 +384,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
384
384
|
appearance="flat"
|
|
385
385
|
size="s"
|
|
386
386
|
label=${this.viewLabel(this.view)}
|
|
387
|
-
.options=${
|
|
387
|
+
.options=${V.map(a=>({key:a,label:this.viewLabel(a)}))}
|
|
388
388
|
@eunselect=${this.handleMobileViewSelect}
|
|
389
389
|
></eun-dropdown-button>
|
|
390
390
|
</div>
|
|
@@ -393,7 +393,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
393
393
|
<eun-toggle-group
|
|
394
394
|
single
|
|
395
395
|
aria-label=${this.dictionary.scheduler.calendarView}
|
|
396
|
-
.options=${
|
|
396
|
+
.options=${V.map(a=>({label:this.viewLabel(a),value:a}))}
|
|
397
397
|
.value=${[this.view]}
|
|
398
398
|
@eunchange=${this.handleViewChange}
|
|
399
399
|
></eun-toggle-group>
|
|
@@ -414,7 +414,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
414
414
|
?readonly=${this.readonly}
|
|
415
415
|
?no-animation=${this.noAnimation}
|
|
416
416
|
more-events-label=${this.moreEventsLabel}
|
|
417
|
-
event-
|
|
417
|
+
event-appearance=${this.eventAppearance}
|
|
418
418
|
@eunperiodchange=${this.handleCalendarPeriodChange}
|
|
419
419
|
@euneventclick=${this.handleCalendarEventClick}
|
|
420
420
|
@eunslotclick=${this.handleCalendarSlotClick}
|
|
@@ -443,7 +443,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
443
443
|
></eun-scheduler-event-editor>
|
|
444
444
|
<div slot="footer" style="display: contents">
|
|
445
445
|
${this.editingEvent?s`<eun-button
|
|
446
|
-
|
|
446
|
+
color="critical"
|
|
447
447
|
appearance="outline"
|
|
448
448
|
@click=${this.handleDrawerDelete}
|
|
449
449
|
>${this.deleteLabel}</eun-button
|
|
@@ -452,7 +452,7 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
452
452
|
<eun-button appearance="ghost" @click=${this.handleDrawerCancel}
|
|
453
453
|
>${this.cancelLabel}</eun-button
|
|
454
454
|
>
|
|
455
|
-
<eun-button
|
|
455
|
+
<eun-button color="primary" @click=${this.handleDrawerSave}
|
|
456
456
|
>${this.applyLabel}</eun-button
|
|
457
457
|
>
|
|
458
458
|
</div>
|
|
@@ -477,21 +477,21 @@ import{a as A,b as $}from"./chunks/chunk-IKAZYVB7.js";import{a as T}from"./chunk
|
|
|
477
477
|
></eun-scheduler-event-editor>
|
|
478
478
|
<div slot="footer">
|
|
479
479
|
${this.editingEvent?s`<eun-button
|
|
480
|
-
|
|
480
|
+
color="critical"
|
|
481
481
|
@click=${this.handleModalDelete}
|
|
482
482
|
>${this.deleteLabel}</eun-button
|
|
483
483
|
>`:d}
|
|
484
484
|
<span style="flex: 1 1 auto;"></span>
|
|
485
|
-
<eun-button
|
|
485
|
+
<eun-button color="secondary" @click=${this.handleModalCancel}
|
|
486
486
|
>${this.cancelLabel}</eun-button
|
|
487
487
|
>
|
|
488
|
-
<eun-button
|
|
488
|
+
<eun-button color="primary" @click=${this.handleModalSave}
|
|
489
489
|
>${this.applyLabel}</eun-button
|
|
490
490
|
>
|
|
491
491
|
</div>
|
|
492
492
|
</eun-modal>
|
|
493
493
|
|
|
494
494
|
<div id="event-popover" popover @toggle=${this.handleEventPopoverToggle}>
|
|
495
|
-
${this.selectedEvent?
|
|
495
|
+
${this.selectedEvent?N({event:this.selectedEvent,locale:this.locale,editLabel:this.editLabel,deleteLabel:this.deleteLabel,closeLabel:this.closeLabel,priorityLabels:{low:"Low",medium:"Medium",high:"High",critical:"Critical"},readonly:this.readonly,onEdit:this.handlePopoverEdit,onDelete:this.handlePopoverDelete,onClose:this.handlePopoverClose}):d}
|
|
496
496
|
</div>
|
|
497
|
-
`}viewLabel(e){switch(e){case"day":return this.viewDayLabel;case"week":return this.viewWeekLabel;case"work-week":return this.viewWorkWeekLabel;case"month":return this.viewMonthLabel;case"year":return this.viewYearLabel;default:return e}}};t.styles=[z,
|
|
497
|
+
`}viewLabel(e){switch(e){case"day":return this.viewDayLabel;case"week":return this.viewWeekLabel;case"work-week":return this.viewWorkWeekLabel;case"month":return this.viewMonthLabel;case"year":return this.viewYearLabel;default:return e}}};t.styles=[z,O],i([o({attribute:!1})],t.prototype,"events",2),i([o({reflect:!0})],t.prototype,"view",2),i([o({attribute:!1})],t.prototype,"displayedDate",2),i([o({type:Number,attribute:"week-starts-on"})],t.prototype,"weekStartsOn",2),i([o({type:Number,attribute:"day-start-hour"})],t.prototype,"dayStartHour",2),i([o({type:Number,attribute:"day-end-hour"})],t.prototype,"dayEndHour",2),i([o({type:Number,attribute:"slot-duration"})],t.prototype,"slotDuration",2),i([o({type:Boolean,reflect:!0})],t.prototype,"readonly",2),i([o({type:Boolean,reflect:!0,attribute:"no-animation"})],t.prototype,"noAnimation",2),i([o({attribute:"today-label"})],t.prototype,"todayLabel",2),i([o({attribute:"new-event-label"})],t.prototype,"newEventLabel",2),i([o({attribute:"aria-label-previous"})],t.prototype,"ariaLabelPrevious",2),i([o({attribute:"aria-label-next"})],t.prototype,"ariaLabelNext",2),i([o({attribute:"view-day-label"})],t.prototype,"viewDayLabel",2),i([o({attribute:"view-week-label"})],t.prototype,"viewWeekLabel",2),i([o({attribute:"view-work-week-label"})],t.prototype,"viewWorkWeekLabel",2),i([o({attribute:"view-month-label"})],t.prototype,"viewMonthLabel",2),i([o({attribute:"view-year-label"})],t.prototype,"viewYearLabel",2),i([o({attribute:"apply-label"})],t.prototype,"applyLabel",2),i([o({attribute:"cancel-label"})],t.prototype,"cancelLabel",2),i([o({attribute:"delete-label"})],t.prototype,"deleteLabel",2),i([o({attribute:"edit-label"})],t.prototype,"editLabel",2),i([o({attribute:"close-label"})],t.prototype,"closeLabel",2),i([o({attribute:"more-events-label"})],t.prototype,"moreEventsLabel",2),i([o({attribute:"event-appearance"})],t.prototype,"eventAppearance",2),i([p()],t.prototype,"isDrawerOpen",2),i([p()],t.prototype,"isModalOpen",2),i([p()],t.prototype,"editingEvent",2),i([p()],t.prototype,"createStart",2),i([p()],t.prototype,"createEnd",2),i([p()],t.prototype,"editorDirty",2),i([p()],t.prototype,"isMobile",2),i([h("#editor")],t.prototype,"drawerEditorEl",2),i([h("#editor-mobile")],t.prototype,"modalEditorEl",2),i([p()],t.prototype,"selectedEvent",2),i([h("#event-popover")],t.prototype,"eventPopoverEl",2),i([h("#calendar")],t.prototype,"calendarEl",2),t=i([x(j)],t);function H(l){let n=new Date(l);return n.setHours(n.getHours()+1,0,0,0),n}function F(l,n,e,a,r){switch(l){case"day":return e.toLocaleDateString(r,{weekday:"long",day:"numeric",month:"long",year:"numeric"});case"year":return String(n.getFullYear());case"month":return n.toLocaleDateString(r,{month:"long",year:"numeric"});default:return`${e.toLocaleDateString(r,{day:"numeric",month:"short"})} \u2013 ${a.toLocaleDateString(r,{day:"numeric",month:"short",year:"numeric"})}`}}export{t as EunomiaScheduler,j as EunomiaSchedulerTagName};
|