@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
|
@@ -101,8 +101,8 @@ const HOUR_GRID_SLOT_HEIGHT = 24;
|
|
|
101
101
|
* @prop {boolean} [readonly=false] - Disables the slot click event, removing the create-here affordance, and event-chip dragging. View only
|
|
102
102
|
* @prop {boolean} [noAnimation=false] - Disables the mobile swipe slide animation
|
|
103
103
|
* @prop {string} [moreEventsLabel='+{count} more'] - The template for the month view's overflow affordance, with the placeholder replaced by the hidden event count
|
|
104
|
-
* @prop {'default' | 'transparent' | 'ghost'} [
|
|
105
|
-
* @attr {'default' | 'transparent' | 'ghost'} [event-
|
|
104
|
+
* @prop {'default' | 'transparent' | 'ghost'} [eventAppearance='default'] - The appearance applied to day, week, and work week event chips. Month view is unaffected, always picking ghost, or default for multi-day bars, itself
|
|
105
|
+
* @attr {'default' | 'transparent' | 'ghost'} [event-appearance='default'] - The visual variant applied to day, week, and work week event chips
|
|
106
106
|
* @fires {EventClickEvent} euneventclick - Fired when an event chip is clicked
|
|
107
107
|
* @fires {SlotClickEvent} eunslotclick - Fired when an empty hour-grid slot is clicked
|
|
108
108
|
* @fires {EventUpdateEvent} euneventupdate - Fired when a day, week, or work week event chip is dragged to a new time or day and dropped
|
|
@@ -164,13 +164,13 @@ let EunomiaCalendar = class EunomiaCalendar extends LitElement {
|
|
|
164
164
|
/** @default +{count} more */
|
|
165
165
|
this.moreEventsLabel = "+{count} more";
|
|
166
166
|
/**
|
|
167
|
-
* The
|
|
168
|
-
* `month` view is unaffected — it always picks its own
|
|
167
|
+
* The appearance applied to day/week/work-week event chips.
|
|
168
|
+
* `month` view is unaffected — it always picks its own appearance per
|
|
169
169
|
* event (`ghost` unless the event spans multiple days ; see
|
|
170
170
|
* `scheduler-month-view.ts`'s own doc on `MonthViewProps`).
|
|
171
171
|
* @default default
|
|
172
172
|
*/
|
|
173
|
-
this.
|
|
173
|
+
this.eventAppearance = "default";
|
|
174
174
|
/**
|
|
175
175
|
* The calendar cell currently in the roving-tabindex focus position, in
|
|
176
176
|
* month/year view — kept in sync with {@link displayedDate} (see
|
|
@@ -856,7 +856,7 @@ let EunomiaCalendar = class EunomiaCalendar extends LitElement {
|
|
|
856
856
|
const ghost = document.createElement(EunomiaSchedulerEventCardTagName);
|
|
857
857
|
ghost.label = event.title;
|
|
858
858
|
ghost.color = event.color;
|
|
859
|
-
ghost.
|
|
859
|
+
ghost.appearance = this.eventAppearance;
|
|
860
860
|
ghost.locale = this.locale;
|
|
861
861
|
ghost.start = event.start;
|
|
862
862
|
ghost.end = event.end;
|
|
@@ -867,7 +867,7 @@ let EunomiaCalendar = class EunomiaCalendar extends LitElement {
|
|
|
867
867
|
pointerEvents: "none",
|
|
868
868
|
zIndex: "1000",
|
|
869
869
|
boxShadow: "0 8px 20px rgba(0, 0, 0, 0.2)",
|
|
870
|
-
borderRadius: "var(--eun-
|
|
870
|
+
borderRadius: "var(--eun-border-radius-s, 5px)",
|
|
871
871
|
});
|
|
872
872
|
this.dragGhostLayerEl?.appendChild(ghost);
|
|
873
873
|
this.dragGhostEl = ghost;
|
|
@@ -989,7 +989,7 @@ let EunomiaCalendar = class EunomiaCalendar extends LitElement {
|
|
|
989
989
|
slotDuration: this.slotDuration,
|
|
990
990
|
locale: this.locale,
|
|
991
991
|
slotHeight: HOUR_GRID_SLOT_HEIGHT,
|
|
992
|
-
|
|
992
|
+
eventAppearance: this.eventAppearance,
|
|
993
993
|
onSlotClick: this.handleSlotClick,
|
|
994
994
|
onEventClick: this.handleEventClick,
|
|
995
995
|
draggingEventId: this.draggingEventId,
|
|
@@ -1132,8 +1132,8 @@ __decorate([
|
|
|
1132
1132
|
property({ attribute: "more-events-label" })
|
|
1133
1133
|
], EunomiaCalendar.prototype, "moreEventsLabel", void 0);
|
|
1134
1134
|
__decorate([
|
|
1135
|
-
property({ attribute: "event-
|
|
1136
|
-
], EunomiaCalendar.prototype, "
|
|
1135
|
+
property({ attribute: "event-appearance" })
|
|
1136
|
+
], EunomiaCalendar.prototype, "eventAppearance", void 0);
|
|
1137
1137
|
__decorate([
|
|
1138
1138
|
state()
|
|
1139
1139
|
], EunomiaCalendar.prototype, "focusedDate", void 0);
|
|
@@ -86,7 +86,7 @@ const base = css `
|
|
|
86
86
|
gap: 2px;
|
|
87
87
|
min-width: 36px;
|
|
88
88
|
padding: var(--eun-space-xs, 4px) 2px;
|
|
89
|
-
border-radius: var(--eun-
|
|
89
|
+
border-radius: var(--eun-border-radius-s, 5px);
|
|
90
90
|
cursor: pointer;
|
|
91
91
|
text-align: center;
|
|
92
92
|
}
|
|
@@ -109,13 +109,13 @@ const base = css `
|
|
|
109
109
|
|
|
110
110
|
.week-day-strip-day.today .week-day-strip-daynum {
|
|
111
111
|
color: var(--eun-color-info-100, #097faf);
|
|
112
|
-
font-weight: var(--eun-
|
|
112
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.week-day-strip-day.selected .week-day-strip-daynum {
|
|
116
116
|
background: var(--eun-color-info-100, #097faf);
|
|
117
117
|
color: #fff;
|
|
118
|
-
font-weight: var(--eun-
|
|
118
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.week-day-strip-day:focus-visible {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
2
|
import { WeekStartsOn } from "../../../utils/date.utils.js";
|
|
3
3
|
import { EunomiaSchedulerEvent, EunomiaSchedulerView } from "../shared/scheduler.types.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { EunomiaSchedulerEventAppearance } from "../scheduler-event/scheduler-event.js";
|
|
5
5
|
/**
|
|
6
6
|
* Tag name of the scheduler component.
|
|
7
7
|
*/
|
|
@@ -51,8 +51,8 @@ declare const EunomiaScheduler_base: import("../../../utils/constructor.type.js"
|
|
|
51
51
|
* @prop {string} [viewMonthLabel='Month'] - The label of the month view switcher option
|
|
52
52
|
* @prop {string} [viewYearLabel='Year'] - The label of the year view switcher option
|
|
53
53
|
* @prop {string} [moreEventsLabel='+{count} more'] - The template for the month view's overflow affordance, with the placeholder replaced by the hidden event count
|
|
54
|
-
* @prop {'default' | 'transparent' | 'ghost'} [
|
|
55
|
-
* @attr {'default' | 'transparent' | 'ghost'} [event-
|
|
54
|
+
* @prop {'default' | 'transparent' | 'ghost'} [eventAppearance='default'] - The appearance applied to day, week, and work week event chips. Month view is unaffected, always picking ghost, or default for multi-day bars, itself
|
|
55
|
+
* @attr {'default' | 'transparent' | 'ghost'} [event-appearance='default'] - The visual variant applied to day, week, and work week event chips
|
|
56
56
|
* @fires {EventCreateEvent} euneventcreate - Fired when a new event is saved
|
|
57
57
|
* @fires {EventUpdateEvent} euneventupdate - Fired when an existing event is saved, or a day, week, or work week chip is dragged to a new time or day
|
|
58
58
|
* @fires {EventDeleteEvent} euneventdelete - Fired when an event is deleted
|
|
@@ -158,12 +158,12 @@ export declare class EunomiaScheduler extends EunomiaScheduler_base {
|
|
|
158
158
|
/** @default +{count} more */
|
|
159
159
|
moreEventsLabel: string;
|
|
160
160
|
/**
|
|
161
|
-
* The
|
|
162
|
-
* `month` view is unaffected — it always picks its own
|
|
161
|
+
* The appearance applied to day/week/work-week event chips.
|
|
162
|
+
* `month` view is unaffected — it always picks its own appearance per
|
|
163
163
|
* event (`ghost` unless the event spans multiple days).
|
|
164
164
|
* @default default
|
|
165
165
|
*/
|
|
166
|
-
|
|
166
|
+
eventAppearance: EunomiaSchedulerEventAppearance;
|
|
167
167
|
/**
|
|
168
168
|
* Whether the desktop editing drawer is open.
|
|
169
169
|
* @internal
|
|
@@ -73,8 +73,8 @@ const VIEWS = [
|
|
|
73
73
|
* @prop {string} [viewMonthLabel='Month'] - The label of the month view switcher option
|
|
74
74
|
* @prop {string} [viewYearLabel='Year'] - The label of the year view switcher option
|
|
75
75
|
* @prop {string} [moreEventsLabel='+{count} more'] - The template for the month view's overflow affordance, with the placeholder replaced by the hidden event count
|
|
76
|
-
* @prop {'default' | 'transparent' | 'ghost'} [
|
|
77
|
-
* @attr {'default' | 'transparent' | 'ghost'} [event-
|
|
76
|
+
* @prop {'default' | 'transparent' | 'ghost'} [eventAppearance='default'] - The appearance applied to day, week, and work week event chips. Month view is unaffected, always picking ghost, or default for multi-day bars, itself
|
|
77
|
+
* @attr {'default' | 'transparent' | 'ghost'} [event-appearance='default'] - The visual variant applied to day, week, and work week event chips
|
|
78
78
|
* @fires {EventCreateEvent} euneventcreate - Fired when a new event is saved
|
|
79
79
|
* @fires {EventUpdateEvent} euneventupdate - Fired when an existing event is saved, or a day, week, or work week chip is dragged to a new time or day
|
|
80
80
|
* @fires {EventDeleteEvent} euneventdelete - Fired when an event is deleted
|
|
@@ -174,12 +174,12 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
174
174
|
/** @default +{count} more */
|
|
175
175
|
this.moreEventsLabel = "+{count} more";
|
|
176
176
|
/**
|
|
177
|
-
* The
|
|
178
|
-
* `month` view is unaffected — it always picks its own
|
|
177
|
+
* The appearance applied to day/week/work-week event chips.
|
|
178
|
+
* `month` view is unaffected — it always picks its own appearance per
|
|
179
179
|
* event (`ghost` unless the event spans multiple days).
|
|
180
180
|
* @default default
|
|
181
181
|
*/
|
|
182
|
-
this.
|
|
182
|
+
this.eventAppearance = "default";
|
|
183
183
|
/**
|
|
184
184
|
* Whether the desktop editing drawer is open.
|
|
185
185
|
* @internal
|
|
@@ -792,7 +792,7 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
792
792
|
?readonly=${this.readonly}
|
|
793
793
|
?no-animation=${this.noAnimation}
|
|
794
794
|
more-events-label=${this.moreEventsLabel}
|
|
795
|
-
event-
|
|
795
|
+
event-appearance=${this.eventAppearance}
|
|
796
796
|
@eunperiodchange=${this.handleCalendarPeriodChange}
|
|
797
797
|
@euneventclick=${this.handleCalendarEventClick}
|
|
798
798
|
@eunslotclick=${this.handleCalendarSlotClick}
|
|
@@ -824,7 +824,7 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
824
824
|
<div slot="footer" style="display: contents">
|
|
825
825
|
${this.editingEvent
|
|
826
826
|
? html `<eun-button
|
|
827
|
-
|
|
827
|
+
color="critical"
|
|
828
828
|
appearance="outline"
|
|
829
829
|
@click=${this.handleDrawerDelete}
|
|
830
830
|
>${this.deleteLabel}</eun-button
|
|
@@ -834,7 +834,7 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
834
834
|
<eun-button appearance="ghost" @click=${this.handleDrawerCancel}
|
|
835
835
|
>${this.cancelLabel}</eun-button
|
|
836
836
|
>
|
|
837
|
-
<eun-button
|
|
837
|
+
<eun-button color="primary" @click=${this.handleDrawerSave}
|
|
838
838
|
>${this.applyLabel}</eun-button
|
|
839
839
|
>
|
|
840
840
|
</div>
|
|
@@ -862,16 +862,16 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
862
862
|
<div slot="footer">
|
|
863
863
|
${this.editingEvent
|
|
864
864
|
? html `<eun-button
|
|
865
|
-
|
|
865
|
+
color="critical"
|
|
866
866
|
@click=${this.handleModalDelete}
|
|
867
867
|
>${this.deleteLabel}</eun-button
|
|
868
868
|
>`
|
|
869
869
|
: nothing}
|
|
870
870
|
<span style="flex: 1 1 auto;"></span>
|
|
871
|
-
<eun-button
|
|
871
|
+
<eun-button color="secondary" @click=${this.handleModalCancel}
|
|
872
872
|
>${this.cancelLabel}</eun-button
|
|
873
873
|
>
|
|
874
|
-
<eun-button
|
|
874
|
+
<eun-button color="primary" @click=${this.handleModalSave}
|
|
875
875
|
>${this.applyLabel}</eun-button
|
|
876
876
|
>
|
|
877
877
|
</div>
|
|
@@ -999,8 +999,8 @@ __decorate([
|
|
|
999
999
|
property({ attribute: "more-events-label" })
|
|
1000
1000
|
], EunomiaScheduler.prototype, "moreEventsLabel", void 0);
|
|
1001
1001
|
__decorate([
|
|
1002
|
-
property({ attribute: "event-
|
|
1003
|
-
], EunomiaScheduler.prototype, "
|
|
1002
|
+
property({ attribute: "event-appearance" })
|
|
1003
|
+
], EunomiaScheduler.prototype, "eventAppearance", void 0);
|
|
1004
1004
|
__decorate([
|
|
1005
1005
|
state()
|
|
1006
1006
|
], EunomiaScheduler.prototype, "isDrawerOpen", void 0);
|
|
@@ -15,7 +15,7 @@ const base = css `
|
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
border: 1px solid
|
|
17
17
|
var(--scheduler-border-color, var(--eun-border-color, #dee0e7));
|
|
18
|
-
border-radius: var(--eun-
|
|
18
|
+
border-radius: var(--eun-border-radius-m, 10px);
|
|
19
19
|
background: var(--scheduler-background, var(--eun-surface-color, #ffffff));
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -83,7 +83,7 @@ const base = css `
|
|
|
83
83
|
#period-label {
|
|
84
84
|
margin: 0 var(--eun-space-xs, 4px);
|
|
85
85
|
font-size: 15px;
|
|
86
|
-
font-weight: var(--eun-
|
|
86
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
87
87
|
color: var(--eun-text-color, #071621);
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EunomiaAppearance } from "../../../types/variant.type.js";
|
|
1
2
|
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
3
|
import { EunomiaSchedulerEventColor } from "../shared/scheduler.types.js";
|
|
3
4
|
/**
|
|
@@ -5,9 +6,10 @@ import { EunomiaSchedulerEventColor } from "../shared/scheduler.types.js";
|
|
|
5
6
|
*/
|
|
6
7
|
export declare const EunomiaSchedulerEventCardTagName = "eun-scheduler-event";
|
|
7
8
|
/**
|
|
8
|
-
* All available scheduler event chip
|
|
9
|
+
* All available scheduler event chip appearances : the shared `default`
|
|
10
|
+
* and `ghost` meanings, plus the chip's own `transparent`.
|
|
9
11
|
*/
|
|
10
|
-
export type
|
|
12
|
+
export type EunomiaSchedulerEventAppearance = Extract<EunomiaAppearance, "default" | "transparent" | "ghost">;
|
|
11
13
|
/**
|
|
12
14
|
* All available scheduler event chip layout directions.
|
|
13
15
|
*/
|
|
@@ -26,7 +28,7 @@ export type EunomiaSchedulerEventCardDirection = "row" | "column";
|
|
|
26
28
|
* The accessible name still includes the time either way, only the
|
|
27
29
|
* visual line disappears.
|
|
28
30
|
*
|
|
29
|
-
* There are
|
|
31
|
+
* There are three appearances. Default renders an opaque tint, with
|
|
30
32
|
* color mixed toward the current theme's own surface color, automatically
|
|
31
33
|
* light in light mode and dark in dark mode with no extra work needed.
|
|
32
34
|
* Transparent mixes the same accent toward transparent instead, for a
|
|
@@ -40,7 +42,7 @@ export type EunomiaSchedulerEventCardDirection = "row" | "column";
|
|
|
40
42
|
* @prop {Date} start - The event's start time, shown as the chip's compact time label
|
|
41
43
|
* @prop {Date} [end] - The event's end time. Used only to build a fuller accessible name, such as "Team sync, 9:00 AM to 10:00 AM", never shown visually on the chip
|
|
42
44
|
* @prop {string} [color='blue'] - The event's accent color : one of the six preset names (red/purple/yellow/blue/green/pink), each with its own tuned two-tone CSS, or a `#rrggbb` hex string for a fully custom color
|
|
43
|
-
* @prop {'default' | 'transparent' | 'ghost'} [
|
|
45
|
+
* @prop {'default' | 'transparent' | 'ghost'} [appearance='default'] - How the chip's surface is drawn
|
|
44
46
|
* @prop {'row' | 'column'} [direction='column'] - Column stacks the title above the time as two lines. Row lays them out side by side on one line instead, the title truncating with an ellipsis while the time never does, for the month view's single-day chips on desktop, where a cell is wide but not tall
|
|
45
47
|
* @attr {'row' | 'column'} [direction='column'] - Column stacks the title above the time as two lines. Row lays them out side by side on one line instead
|
|
46
48
|
* @prop {string} [locale] - The locale used to format the time label. Defaults to the runtime's own
|
|
@@ -51,8 +53,8 @@ export type EunomiaSchedulerEventCardDirection = "row" | "column";
|
|
|
51
53
|
* @cssprop [--scheduler-event-bar-width] - Sets the width of the color bar
|
|
52
54
|
* @cssprop [--scheduler-event-gap] - Sets the gap between the bar and the text
|
|
53
55
|
* @cssprop [--scheduler-event-padding] - Sets the inner padding
|
|
54
|
-
* @cssprop [--scheduler-event-opaque-tint] - Sets the mix percentage for the default
|
|
55
|
-
* @cssprop [--scheduler-event-transparent-tint] - Sets the mix percentage for the transparent
|
|
56
|
+
* @cssprop [--scheduler-event-opaque-tint] - Sets the mix percentage for the default appearance's background
|
|
57
|
+
* @cssprop [--scheduler-event-transparent-tint] - Sets the mix percentage for the transparent appearance's background
|
|
56
58
|
* @cssprop [--scheduler-event-title-color] - Sets the title text color
|
|
57
59
|
* @cssprop [--scheduler-event-time-color] - Sets the time text color
|
|
58
60
|
* @element eun-scheduler-event
|
|
@@ -93,10 +95,10 @@ export declare class EunomiaSchedulerEventCard extends LitElement {
|
|
|
93
95
|
*/
|
|
94
96
|
private static readonly PRESET_COLORS;
|
|
95
97
|
/**
|
|
96
|
-
*
|
|
98
|
+
* How the chip's surface is drawn.
|
|
97
99
|
* @default default
|
|
98
100
|
*/
|
|
99
|
-
|
|
101
|
+
appearance: EunomiaSchedulerEventAppearance;
|
|
100
102
|
/**
|
|
101
103
|
* `column` stacks the title above the time (two lines) ; `row` lays them
|
|
102
104
|
* out side by side on one line instead, the title truncating with an
|
|
@@ -27,7 +27,7 @@ export const EunomiaSchedulerEventCardTagName = "eun-scheduler-event";
|
|
|
27
27
|
* The accessible name still includes the time either way, only the
|
|
28
28
|
* visual line disappears.
|
|
29
29
|
*
|
|
30
|
-
* There are
|
|
30
|
+
* There are three appearances. Default renders an opaque tint, with
|
|
31
31
|
* color mixed toward the current theme's own surface color, automatically
|
|
32
32
|
* light in light mode and dark in dark mode with no extra work needed.
|
|
33
33
|
* Transparent mixes the same accent toward transparent instead, for a
|
|
@@ -41,7 +41,7 @@ export const EunomiaSchedulerEventCardTagName = "eun-scheduler-event";
|
|
|
41
41
|
* @prop {Date} start - The event's start time, shown as the chip's compact time label
|
|
42
42
|
* @prop {Date} [end] - The event's end time. Used only to build a fuller accessible name, such as "Team sync, 9:00 AM to 10:00 AM", never shown visually on the chip
|
|
43
43
|
* @prop {string} [color='blue'] - The event's accent color : one of the six preset names (red/purple/yellow/blue/green/pink), each with its own tuned two-tone CSS, or a `#rrggbb` hex string for a fully custom color
|
|
44
|
-
* @prop {'default' | 'transparent' | 'ghost'} [
|
|
44
|
+
* @prop {'default' | 'transparent' | 'ghost'} [appearance='default'] - How the chip's surface is drawn
|
|
45
45
|
* @prop {'row' | 'column'} [direction='column'] - Column stacks the title above the time as two lines. Row lays them out side by side on one line instead, the title truncating with an ellipsis while the time never does, for the month view's single-day chips on desktop, where a cell is wide but not tall
|
|
46
46
|
* @attr {'row' | 'column'} [direction='column'] - Column stacks the title above the time as two lines. Row lays them out side by side on one line instead
|
|
47
47
|
* @prop {string} [locale] - The locale used to format the time label. Defaults to the runtime's own
|
|
@@ -52,8 +52,8 @@ export const EunomiaSchedulerEventCardTagName = "eun-scheduler-event";
|
|
|
52
52
|
* @cssprop [--scheduler-event-bar-width] - Sets the width of the color bar
|
|
53
53
|
* @cssprop [--scheduler-event-gap] - Sets the gap between the bar and the text
|
|
54
54
|
* @cssprop [--scheduler-event-padding] - Sets the inner padding
|
|
55
|
-
* @cssprop [--scheduler-event-opaque-tint] - Sets the mix percentage for the default
|
|
56
|
-
* @cssprop [--scheduler-event-transparent-tint] - Sets the mix percentage for the transparent
|
|
55
|
+
* @cssprop [--scheduler-event-opaque-tint] - Sets the mix percentage for the default appearance's background
|
|
56
|
+
* @cssprop [--scheduler-event-transparent-tint] - Sets the mix percentage for the transparent appearance's background
|
|
57
57
|
* @cssprop [--scheduler-event-title-color] - Sets the title text color
|
|
58
58
|
* @cssprop [--scheduler-event-time-color] - Sets the time text color
|
|
59
59
|
* @element eun-scheduler-event
|
|
@@ -75,10 +75,10 @@ let EunomiaSchedulerEventCard = EunomiaSchedulerEventCard_1 = class EunomiaSched
|
|
|
75
75
|
*/
|
|
76
76
|
this.color = "blue";
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* How the chip's surface is drawn.
|
|
79
79
|
* @default default
|
|
80
80
|
*/
|
|
81
|
-
this.
|
|
81
|
+
this.appearance = "default";
|
|
82
82
|
/**
|
|
83
83
|
* `column` stacks the title above the time (two lines) ; `row` lays them
|
|
84
84
|
* out side by side on one line instead, the title truncating with an
|
|
@@ -184,7 +184,7 @@ __decorate([
|
|
|
184
184
|
], EunomiaSchedulerEventCard.prototype, "color", void 0);
|
|
185
185
|
__decorate([
|
|
186
186
|
property({ reflect: true })
|
|
187
|
-
], EunomiaSchedulerEventCard.prototype, "
|
|
187
|
+
], EunomiaSchedulerEventCard.prototype, "appearance", void 0);
|
|
188
188
|
__decorate([
|
|
189
189
|
property({ reflect: true })
|
|
190
190
|
], EunomiaSchedulerEventCard.prototype, "direction", void 0);
|
|
@@ -7,8 +7,8 @@ import { css } from "lit";
|
|
|
7
7
|
* [--scheduler-event-bar-width] - Set a custom width for the color bar
|
|
8
8
|
* [--scheduler-event-gap] - Set a custom gap between the bar and the text
|
|
9
9
|
* [--scheduler-event-padding] - Set a custom inner padding
|
|
10
|
-
* [--scheduler-event-opaque-tint] - Set a custom mix percentage for the `default`
|
|
11
|
-
* [--scheduler-event-transparent-tint] - Set a custom mix percentage for the `transparent`
|
|
10
|
+
* [--scheduler-event-opaque-tint] - Set a custom mix percentage for the `default` appearance's background (mixed against the current theme's own `--eun-surface-color`, so it's automatically a light tint in light mode and a dark tint in dark mode)
|
|
11
|
+
* [--scheduler-event-transparent-tint] - Set a custom mix percentage for the `transparent` appearance's background (mixed against `transparent`)
|
|
12
12
|
* [--scheduler-event-title-color] - Set a custom title text color
|
|
13
13
|
* [--scheduler-event-time-color] - Set a custom time text color
|
|
14
14
|
*/
|
|
@@ -57,7 +57,7 @@ const base = css `
|
|
|
57
57
|
padding: var(--scheduler-event-padding, var(--eun-space-xs, 4px));
|
|
58
58
|
border-radius: var(
|
|
59
59
|
--scheduler-event-radius,
|
|
60
|
-
var(--eun-
|
|
60
|
+
var(--eun-border-radius-s, 5px)
|
|
61
61
|
);
|
|
62
62
|
outline: 2px solid transparent;
|
|
63
63
|
cursor: pointer;
|
|
@@ -74,7 +74,7 @@ const base = css `
|
|
|
74
74
|
outline 0.2s ease-out;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
:host([
|
|
77
|
+
:host([appearance="transparent"]) #chip {
|
|
78
78
|
background: color-mix(
|
|
79
79
|
in srgb,
|
|
80
80
|
var(--_tintBase) var(--scheduler-event-transparent-tint, 22%),
|
|
@@ -82,12 +82,12 @@ const base = css `
|
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
:host([
|
|
85
|
+
:host([appearance="ghost"]) #chip {
|
|
86
86
|
background: transparent;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
:host([
|
|
90
|
-
:host([
|
|
89
|
+
:host([appearance="ghost"]) #chip:hover,
|
|
90
|
+
:host([appearance="ghost"]) #chip:hover {
|
|
91
91
|
background: color-mix(
|
|
92
92
|
in srgb,
|
|
93
93
|
var(--_tintBase) var(--scheduler-event-transparent-tint, 22%),
|
|
@@ -143,7 +143,7 @@ const base = css `
|
|
|
143
143
|
white-space: nowrap;
|
|
144
144
|
color: var(--scheduler-event-title-color, var(--eun-text-color, #071621));
|
|
145
145
|
font-size: 12px;
|
|
146
|
-
font-weight: var(--eun-
|
|
146
|
+
font-weight: var(--eun-font-weight-m, 600);
|
|
147
147
|
line-height: 1.3;
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -39,7 +39,7 @@ const PRIORITIES = [
|
|
|
39
39
|
"high",
|
|
40
40
|
"critical",
|
|
41
41
|
];
|
|
42
|
-
const
|
|
42
|
+
const PRIORITY_COLOR = {
|
|
43
43
|
low: "success",
|
|
44
44
|
high: "warning",
|
|
45
45
|
critical: "critical",
|
|
@@ -651,7 +651,7 @@ let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LitE
|
|
|
651
651
|
<eun-button
|
|
652
652
|
appearance="default"
|
|
653
653
|
id="guest-add-button"
|
|
654
|
-
|
|
654
|
+
color="secondary"
|
|
655
655
|
aria-label=${this.addGuestLabel}
|
|
656
656
|
@click=${this.handleAddGuestClick}
|
|
657
657
|
>
|
|
@@ -710,7 +710,7 @@ let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LitE
|
|
|
710
710
|
${PRIORITIES.map((priority) => html `
|
|
711
711
|
<eun-toggle-item
|
|
712
712
|
value=${priority}
|
|
713
|
-
|
|
713
|
+
color=${ifDefined(PRIORITY_COLOR[priority])}
|
|
714
714
|
>
|
|
715
715
|
${priorityLabel(priority)}
|
|
716
716
|
</eun-toggle-item>
|
|
@@ -741,7 +741,7 @@ let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LitE
|
|
|
741
741
|
<div id="actions">
|
|
742
742
|
${this.event
|
|
743
743
|
? html `
|
|
744
|
-
<eun-button
|
|
744
|
+
<eun-button color="critical" @click=${this.requestDelete}>
|
|
745
745
|
${this.deleteLabel}
|
|
746
746
|
</eun-button>
|
|
747
747
|
`
|
|
@@ -750,7 +750,7 @@ let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LitE
|
|
|
750
750
|
<eun-button appearance="ghost" @click=${this.handleCancelClick}>
|
|
751
751
|
${this.cancelLabel}
|
|
752
752
|
</eun-button>
|
|
753
|
-
<eun-button
|
|
753
|
+
<eun-button color="primary" @click=${this.handleSaveClick}>
|
|
754
754
|
${this.saveLabel}
|
|
755
755
|
</eun-button>
|
|
756
756
|
</div>
|
|
@@ -31,8 +31,8 @@ const base = css `
|
|
|
31
31
|
display: block;
|
|
32
32
|
margin-bottom: var(--eun-space-xs, 4px);
|
|
33
33
|
color: var(--eun-text-color, #071621);
|
|
34
|
-
font-size: var(--eun-
|
|
35
|
-
font-weight: var(--eun-
|
|
34
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
35
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.guest-input-row {
|
|
@@ -104,14 +104,14 @@ export function renderEventPopover(props) {
|
|
|
104
104
|
: html `
|
|
105
105
|
<div class="event-popover-actions">
|
|
106
106
|
<eun-button
|
|
107
|
-
|
|
107
|
+
color="critical"
|
|
108
108
|
size="s"
|
|
109
109
|
appearance="outline"
|
|
110
110
|
rounded
|
|
111
111
|
@click=${onDelete}
|
|
112
112
|
>${deleteLabel}</eun-button
|
|
113
113
|
>
|
|
114
|
-
<eun-button
|
|
114
|
+
<eun-button color="primary" size="s" rounded @click=${onEdit}
|
|
115
115
|
>${editLabel}</eun-button
|
|
116
116
|
>
|
|
117
117
|
</div>
|
|
@@ -16,7 +16,7 @@ const base = css `
|
|
|
16
16
|
margin: 0;
|
|
17
17
|
padding: 0;
|
|
18
18
|
border: 1px solid var(--eun-border-color, #dee0e7);
|
|
19
|
-
border-radius: var(--eun-
|
|
19
|
+
border-radius: var(--eun-border-radius-m, 10px);
|
|
20
20
|
background: var(--eun-surface-color, #ffffff);
|
|
21
21
|
box-shadow: var(--eun-shadow-m, 0 8px 24px rgba(7, 22, 33, 0.16));
|
|
22
22
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -52,8 +52,8 @@ const base = css `
|
|
|
52
52
|
|
|
53
53
|
.event-popover-bar {
|
|
54
54
|
height: 4px;
|
|
55
|
-
border-radius: var(--eun-
|
|
56
|
-
var(--eun-
|
|
55
|
+
border-radius: var(--eun-border-radius-m, 10px)
|
|
56
|
+
var(--eun-border-radius-m, 10px) 0 0;
|
|
57
57
|
background: var(--_accent, var(--eun-color-blue-600, #0aa5a8));
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -75,7 +75,7 @@ const base = css `
|
|
|
75
75
|
margin: 0;
|
|
76
76
|
padding-right: 28px;
|
|
77
77
|
font-size: 16px;
|
|
78
|
-
font-weight: var(--eun-
|
|
78
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.event-popover-row {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateResult } from "lit";
|
|
2
2
|
import { EunomiaSchedulerEvent } from "./scheduler.types.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { EunomiaSchedulerEventAppearance } from "../scheduler-event/scheduler-event.js";
|
|
4
4
|
/**
|
|
5
5
|
* Props for {@link renderHourGrid}.
|
|
6
6
|
*/
|
|
@@ -12,7 +12,7 @@ export interface HourGridProps {
|
|
|
12
12
|
slotDuration: number;
|
|
13
13
|
locale?: string;
|
|
14
14
|
slotHeight: number;
|
|
15
|
-
|
|
15
|
+
eventAppearance: EunomiaSchedulerEventAppearance;
|
|
16
16
|
onSlotClick: (start: Date) => void;
|
|
17
17
|
onEventClick: (event: EunomiaSchedulerEvent, domEvent: MouseEvent) => void;
|
|
18
18
|
draggingEventId?: string | null;
|
|
@@ -102,7 +102,7 @@ export function renderHourGrid(props) {
|
|
|
102
102
|
.start=${slot.event.start}
|
|
103
103
|
.end=${slot.event.end}
|
|
104
104
|
color=${slot.event.color}
|
|
105
|
-
|
|
105
|
+
appearance=${props.eventAppearance}
|
|
106
106
|
hide-time
|
|
107
107
|
@click=${(domEvent) => props.onEventClick(slot.event, domEvent)}
|
|
108
108
|
></eun-scheduler-event>
|
|
@@ -139,7 +139,7 @@ export function renderHourGrid(props) {
|
|
|
139
139
|
*/
|
|
140
140
|
/* eslint-disable lit-a11y/click-events-have-key-events */
|
|
141
141
|
function renderDayColumn(day, props, now, hourCount) {
|
|
142
|
-
const { events, dayStartHour, dayEndHour, slotDuration, slotHeight,
|
|
142
|
+
const { events, dayStartHour, dayEndHour, slotDuration, slotHeight, eventAppearance, onSlotClick, onEventClick, draggingEventId, onEventDragStart, } = props;
|
|
143
143
|
const gridStartMinutes = dayStartHour * 60;
|
|
144
144
|
const gridEndMinutes = dayEndHour * 60;
|
|
145
145
|
const dayEvents = timedEventsForDay(events, day);
|
|
@@ -210,7 +210,7 @@ function renderDayColumn(day, props, now, hourCount) {
|
|
|
210
210
|
.start=${slot.event.start}
|
|
211
211
|
.end=${slot.event.end}
|
|
212
212
|
color=${slot.event.color}
|
|
213
|
-
|
|
213
|
+
appearance=${eventAppearance}
|
|
214
214
|
?hide-time=${height < CONDENSED_HEIGHT_THRESHOLD}
|
|
215
215
|
@click=${(domEvent) => onEventClick(slot.event, domEvent)}
|
|
216
216
|
></eun-scheduler-event>
|
|
@@ -13,10 +13,10 @@ import { EunomiaSchedulerEvent } from "./scheduler.types.js";
|
|
|
13
13
|
export declare const MONTH_EVENT_ROW_HEIGHT = 22;
|
|
14
14
|
/**
|
|
15
15
|
* Props for {@link renderSchedulerMonthView}. Deliberately has no
|
|
16
|
-
* `
|
|
17
|
-
* its own bar
|
|
16
|
+
* `eventAppearance` field, unlike `HourGridProps` : month view always picks
|
|
17
|
+
* its own bar appearance itself (`ghost` unless the event spans multiple
|
|
18
18
|
* days — see {@link renderMonthWeek}), regardless of `eun-calendar`'s own
|
|
19
|
-
* `
|
|
19
|
+
* `eventAppearance` prop, which only reaches day/week/work-week's chips.
|
|
20
20
|
*/
|
|
21
21
|
export interface MonthViewProps {
|
|
22
22
|
displayedMonth: Date;
|
|
@@ -74,7 +74,7 @@ function slotsTouchingDay(slots, dayIndex) {
|
|
|
74
74
|
* about and never needs to visually split a bar around a day that ran out
|
|
75
75
|
* of room.
|
|
76
76
|
*
|
|
77
|
-
* Each bar's own
|
|
77
|
+
* Each bar's own appearance is `ghost` (no fill, just the accent bar and
|
|
78
78
|
* text — the density this view actually needs, a whole week's worth of
|
|
79
79
|
* single-day bars packed into a few rows) unless {@link isMultiDay}, which
|
|
80
80
|
* keeps `default`'s opaque tint instead : a bar spanning several day
|
|
@@ -120,7 +120,7 @@ function renderMonthWeek(week, props) {
|
|
|
120
120
|
.start=${slot.event.start}
|
|
121
121
|
.end=${slot.event.end}
|
|
122
122
|
color=${slot.event.color}
|
|
123
|
-
|
|
123
|
+
appearance=${isMultiDay(slot.event) ? "default" : "ghost"}
|
|
124
124
|
direction=${desktop ? "row" : "column"}
|
|
125
125
|
?hide-time=${!desktop || !!slot.event.allDay}
|
|
126
126
|
@click=${(domEvent) => onEventClick(slot.event, domEvent)}
|