@eunomia/elements 1.0.0-beta.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -6
- package/dist/angular/forms.d.ts +80 -0
- package/dist/angular/forms.js +267 -0
- package/dist/cdn/components/chunks/chunk-2XPIGFBD.js +1 -0
- package/dist/cdn/components/chunks/chunk-5IUNSTM3.js +1 -0
- package/dist/cdn/components/chunks/chunk-7HXPLZ7C.js +1 -0
- package/dist/cdn/components/chunks/{chunk-J3SZBXM6.js → chunk-A2NO4RSF.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-Q34EQ5HZ.js → chunk-A623JJXJ.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-Y3HOIL64.js → chunk-AW7PU43S.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-FF3I7C3C.js → chunk-DWTNRFWW.js} +1 -3
- package/dist/cdn/components/chunks/chunk-FPNWPMHA.js +1 -0
- package/dist/cdn/components/chunks/chunk-GMWUHGNI.js +319 -0
- package/dist/cdn/components/chunks/{chunk-FQUWHNQT.js → chunk-GXOEPXDW.js} +1 -1
- package/dist/cdn/components/chunks/chunk-HXESKTK2.js +1 -0
- package/dist/cdn/components/chunks/chunk-JDUWKPHW.js +46 -0
- package/dist/cdn/components/chunks/{chunk-D3JJBHXN.js → chunk-JLKCBPD2.js} +2 -2
- package/dist/cdn/components/chunks/chunk-M6ZJHL4Q.js +1 -0
- package/dist/cdn/components/chunks/{chunk-TN3HGHQO.js → chunk-MDSUMP3O.js} +4 -4
- package/dist/cdn/components/chunks/chunk-MSQWOKBB.js +1 -0
- package/dist/cdn/components/chunks/{chunk-3UUZM7X2.js → chunk-NPXRQHUN.js} +3 -3
- package/dist/cdn/components/chunks/chunk-OB7DEGNX.js +1 -0
- package/dist/cdn/components/chunks/{chunk-JANNHW4Q.js → chunk-PADHCLBG.js} +4 -4
- package/dist/cdn/components/chunks/chunk-QMXE3KLT.js +1 -0
- package/dist/cdn/components/chunks/chunk-QNWKRPOW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-KQUUMZ7U.js → chunk-RZF7QQDX.js} +7 -7
- package/dist/cdn/components/chunks/chunk-SCAP7J35.js +1 -0
- package/dist/cdn/components/chunks/chunk-TISMX7UL.js +1 -0
- package/dist/cdn/components/chunks/chunk-TWLI2ZOT.js +1 -0
- package/dist/cdn/components/chunks/chunk-W4VCWRY7.js +210 -0
- package/dist/cdn/components/chunks/{chunk-SZZRMJ65.js → chunk-WEG3KO6T.js} +3 -3
- package/dist/cdn/components/chunks/chunk-WP6ZYBAC.js +1 -0
- package/dist/cdn/components/chunks/{chunk-HGX6GPHM.js → chunk-XCBQ4CKH.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-3UW2LJ7T.js → chunk-XZ3LFOQP.js} +2 -2
- package/dist/cdn/components/eun-alert.js +1 -1
- package/dist/cdn/components/eun-animate.js +92 -180
- package/dist/cdn/components/eun-breadcrumb.js +4 -4
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +188 -115
- package/dist/cdn/components/eun-card.js +1 -1
- package/dist/cdn/components/eun-carousel.js +36 -28
- package/dist/cdn/components/eun-check-card.js +3 -3
- package/dist/cdn/components/eun-checkbox-list.js +2 -2
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +11 -15
- package/dist/cdn/components/eun-collapse.js +21 -10
- package/dist/cdn/components/eun-color-picker.js +32 -32
- package/dist/cdn/components/eun-counter.js +8 -8
- package/dist/cdn/components/eun-date-picker.js +83 -79
- package/dist/cdn/components/eun-description-list.js +1 -1
- package/dist/cdn/components/eun-divider.js +9 -8
- package/dist/cdn/components/eun-drawer.js +8 -6
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +4 -4
- package/dist/cdn/components/eun-fab.js +1 -1
- package/dist/cdn/components/eun-image-card.js +2 -2
- package/dist/cdn/components/eun-image-carousel.js +55 -29
- package/dist/cdn/components/eun-infinite-list.js +2 -2
- package/dist/cdn/components/eun-input-file.js +3 -3
- package/dist/cdn/components/eun-input-phone.js +6 -6
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +1 -1
- package/dist/cdn/components/eun-link.js +18 -329
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +9 -7
- package/dist/cdn/components/eun-nav-menu.js +363 -0
- package/dist/cdn/components/eun-pagination.js +4 -4
- package/dist/cdn/components/eun-password-strength.js +2 -2
- package/dist/cdn/components/eun-progress-bar.js +1 -1
- package/dist/cdn/components/eun-radio-card.js +4 -4
- package/dist/cdn/components/eun-radio-list.js +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-rating.js +9 -9
- package/dist/cdn/components/eun-scheduler-event-editor.js +113 -77
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +137 -79
- package/dist/cdn/components/eun-search.js +6 -6
- package/dist/cdn/components/eun-select.js +1 -1
- package/dist/cdn/components/eun-sidebar.js +23 -14
- package/dist/cdn/components/eun-slider.js +2 -2
- package/dist/cdn/components/eun-sliding-card.js +1 -1
- package/dist/cdn/components/eun-step.js +2 -2
- package/dist/cdn/components/eun-stepper.js +11 -12
- package/dist/cdn/components/eun-switch.js +2 -2
- package/dist/cdn/components/eun-tab-group.js +1 -1
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table.js +13 -10
- package/dist/cdn/components/eun-tag.js +1 -1
- package/dist/cdn/components/eun-textarea.js +4 -4
- package/dist/cdn/components/eun-time-picker.js +28 -25
- package/dist/cdn/components/eun-toast.js +8 -8
- package/dist/cdn/components/eun-toggle-group.js +8 -2
- package/dist/cdn/components/eun-toggle-item.js +8 -2
- package/dist/cdn/components/eun-toggle.js +4 -1
- package/dist/cdn/components/eun-toolbar.js +114 -36
- package/dist/cdn/components/eun-tooltip.js +1 -1
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +2 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/tools/mixins/layout/eunomia-grid.mixin.scss +116 -8
- package/dist/components/action/button/button.styles.js +2 -2
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +4 -0
- package/dist/components/action/dropdown-button/dropdown-button.js +1 -0
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +5 -4
- package/dist/components/action/dropdown-button/dropdown-item.d.ts +1 -0
- package/dist/components/action/dropdown-button/dropdown-item.js +1 -0
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +4 -4
- package/dist/components/action/link/link.d.ts +2 -1
- package/dist/components/action/link/link.js +2 -1
- package/dist/components/action/link/link.styles.d.ts +40 -1
- package/dist/components/action/link/link.styles.js +83 -60
- package/dist/components/action/shared-styles/button-palette.styles.js +1 -1
- package/dist/components/action/toggle/toggle-group.d.ts +1 -0
- package/dist/components/action/toggle/toggle-group.js +1 -0
- package/dist/components/action/toggle/toggle-group.styles.d.ts +1 -0
- package/dist/components/action/toggle/toggle-group.styles.js +9 -2
- package/dist/components/action/toggle/toggle-item.styles.js +8 -2
- package/dist/components/action/toggle/toggle.d.ts +1 -0
- package/dist/components/action/toggle/toggle.js +1 -0
- package/dist/components/action/toggle/toggle.styles.d.ts +1 -0
- package/dist/components/action/toggle/toggle.styles.js +5 -1
- package/dist/components/alert/drawer/drawer.d.ts +14 -13
- package/dist/components/alert/drawer/drawer.js +20 -28
- package/dist/components/alert/modal/modal.d.ts +14 -13
- package/dist/components/alert/modal/modal.js +20 -28
- package/dist/components/alert/modal/modal.styles.js +1 -1
- package/dist/components/alert/toast/toast.d.ts +5 -5
- package/dist/components/alert/toast/toast.js +9 -10
- package/dist/components/alert/toast/toast.styles.js +3 -3
- package/dist/components/content/card/image-card.styles.js +1 -1
- package/dist/components/content/chip/chip.d.ts +7 -9
- package/dist/components/content/chip/chip.js +11 -14
- package/dist/components/content/chip/chip.styles.js +1 -5
- package/dist/components/content/collapse/collapse.d.ts +5 -0
- package/dist/components/content/collapse/collapse.js +7 -0
- package/dist/components/content/collapse/collapse.styles.d.ts +3 -0
- package/dist/components/content/collapse/collapse.styles.js +13 -1
- package/dist/components/content/description-list/description-list.styles.js +1 -1
- package/dist/components/content/image-carousel/image-carousel.d.ts +60 -13
- package/dist/components/content/image-carousel/image-carousel.js +100 -22
- package/dist/components/content/image-carousel/image-carousel.styles.js +32 -6
- package/dist/components/content/password-strength/password-strength.styles.js +1 -1
- package/dist/components/content/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/content/shared-styles/card-link.styles.js +1 -1
- package/dist/components/content/shared-styles/tone-surface.styles.js +1 -3
- package/dist/components/form/checkbox/check-card.styles.js +2 -2
- package/dist/components/form/checkbox/checkbox-list.d.ts +3 -1
- package/dist/components/form/checkbox/checkbox-list.js +3 -1
- package/dist/components/form/checkbox/checkbox.styles.js +1 -1
- package/dist/components/form/color-picker/color-picker.d.ts +28 -3
- package/dist/components/form/color-picker/color-picker.js +53 -7
- package/dist/components/form/counter/counter.js +1 -1
- package/dist/components/form/counter/counter.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-month-grid.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +50 -13
- package/dist/components/form/date-picker/date-picker.js +178 -43
- package/dist/components/form/input/input.js +1 -4
- package/dist/components/form/input-file/input-file.styles.js +2 -2
- package/dist/components/form/input-phone/input-phone.js +4 -3
- package/dist/components/form/label/label.styles.js +1 -1
- package/dist/components/form/radio/radio-card.styles.js +2 -2
- package/dist/components/form/radio/radio.styles.js +1 -1
- package/dist/components/form/rating/rating.js +3 -5
- package/dist/components/form/rating/rating.styles.js +2 -2
- package/dist/components/form/search/search.d.ts +1 -7
- package/dist/components/form/search/search.js +2 -12
- package/dist/components/form/shared-styles/field.styles.js +2 -2
- package/dist/components/form/slider/slider.styles.js +1 -1
- package/dist/components/form/switch/switch.styles.js +1 -1
- package/dist/components/form/textarea/textarea.js +1 -5
- package/dist/components/form/textarea/textarea.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker-columns.d.ts +4 -1
- package/dist/components/form/time-picker/time-picker-columns.js +64 -15
- package/dist/components/form/time-picker/time-picker-columns.styles.js +5 -1
- package/dist/components/form/time-picker/time-picker-list.d.ts +4 -1
- package/dist/components/form/time-picker/time-picker-list.js +15 -8
- package/dist/components/form/time-picker/time-picker.d.ts +11 -2
- package/dist/components/form/time-picker/time-picker.js +22 -8
- package/dist/components/layout/animate/animate.d.ts +35 -17
- package/dist/components/layout/animate/animate.js +27 -14
- package/dist/components/layout/animate/animate.styles.d.ts +2 -1
- package/dist/components/layout/animate/animate.styles.js +107 -179
- package/dist/components/layout/divider/divider.d.ts +1 -0
- package/dist/components/layout/divider/divider.js +2 -1
- package/dist/components/layout/divider/divider.styles.js +7 -6
- package/dist/components/layout/infinite-list/infinite-list.styles.js +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
- package/dist/components/navigation/carousel/carousel.d.ts +23 -14
- package/dist/components/navigation/carousel/carousel.js +39 -27
- package/dist/components/navigation/carousel/carousel.styles.js +16 -8
- package/dist/components/navigation/nav-menu/nav-menu.d.ts +201 -0
- package/dist/components/navigation/nav-menu/nav-menu.js +673 -0
- package/dist/components/navigation/nav-menu/nav-menu.styles.d.ts +1 -0
- package/dist/components/navigation/nav-menu/nav-menu.styles.js +352 -0
- package/dist/components/navigation/pagination/pagination.d.ts +3 -0
- package/dist/components/navigation/pagination/pagination.styles.js +2 -2
- package/dist/components/navigation/sidebar/sidebar.d.ts +8 -10
- package/dist/components/navigation/sidebar/sidebar.js +12 -15
- package/dist/components/navigation/sidebar/sidebar.styles.js +13 -4
- package/dist/components/navigation/stepper/step.styles.js +2 -2
- package/dist/components/navigation/stepper/stepper.d.ts +24 -13
- package/dist/components/navigation/stepper/stepper.js +36 -23
- package/dist/components/navigation/stepper/stepper.styles.js +2 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.js +1 -1
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +121 -20
- package/dist/components/navigation/toolbar/toolbar.js +176 -45
- package/dist/components/navigation/toolbar/toolbar.styles.js +113 -28
- package/dist/events/editor-state-change.event.d.ts +28 -0
- package/dist/events/editor-state-change.event.js +22 -0
- package/dist/events/event-cancel.event.d.ts +20 -0
- package/dist/events/event-cancel.event.js +17 -0
- package/dist/events/period-change.event.d.ts +14 -6
- package/dist/events/period-change.event.js +9 -6
- package/dist/features/scheduler/calendar/calendar.d.ts +52 -20
- package/dist/features/scheduler/calendar/calendar.js +84 -36
- package/dist/features/scheduler/calendar/calendar.styles.js +5 -2
- package/dist/features/scheduler/scheduler/scheduler.d.ts +69 -4
- package/dist/features/scheduler/scheduler/scheduler.js +172 -47
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -0
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +18 -20
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +29 -38
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +102 -18
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +249 -112
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +11 -1
- package/dist/features/scheduler/shared/scheduler-event-popover.d.ts +9 -1
- package/dist/features/scheduler/shared/scheduler-event-popover.js +77 -42
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +14 -3
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +3 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +53 -46
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +13 -7
- package/dist/features/scheduler/shared/scheduler-month-view.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +13 -7
- package/dist/features/scheduler/shared/scheduler-year-view.d.ts +6 -5
- package/dist/features/scheduler/shared/scheduler-year-view.js +11 -7
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +57 -3
- package/dist/features/scheduler/shared/scheduler.types.d.ts +5 -9
- package/dist/features/scheduler/shared/scheduler.utils.d.ts +61 -0
- package/dist/features/scheduler/shared/scheduler.utils.js +78 -4
- package/dist/features/table/table/table-native.styles.js +8 -4
- package/dist/features/table/table/table.d.ts +2 -1
- package/dist/features/table/table/table.js +2 -1
- package/dist/features/table/table/table.styles.js +6 -4
- package/dist/i18n/en.d.ts +17 -0
- package/dist/i18n/en.js +17 -0
- package/dist/i18n/fr.js +17 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -0
- package/dist/jsx.d.ts +48 -6
- package/dist/mixins/anchor-position.mixin.d.ts +17 -0
- package/dist/mixins/anchor-position.mixin.js +45 -7
- package/dist/mixins/button.mixin.js +2 -1
- package/dist/mixins/check.mixin.js +14 -5
- package/dist/mixins/dialog-surface.mixin.d.ts +1 -1
- package/dist/mixins/dialog-surface.mixin.js +5 -5
- package/dist/mixins/form.mixin.js +33 -13
- package/dist/mixins/localizable.mixin.d.ts +1 -0
- package/dist/mixins/localizable.mixin.js +9 -2
- package/dist/mixins/radio.mixin.js +14 -5
- package/dist/mixins/validators.mixin.js +4 -3
- package/dist/react.d.ts +59 -0
- package/dist/react.js +42 -0
- package/dist/ssr/animate-ssr.css +35 -0
- package/dist/ssr/breadcrumb-ssr.css +3 -3
- package/dist/ssr/button-ssr.css +8 -2
- package/dist/ssr/card-ssr.css +1 -1
- package/dist/ssr/carousel-ssr.css +15 -4
- package/dist/ssr/chip-ssr.css +3 -3
- package/dist/ssr/collapse-ssr.css +2 -2
- package/dist/ssr/description-list-ssr.css +1 -1
- package/dist/ssr/divider-ssr.css +23 -0
- package/dist/ssr/field-ssr.css +245 -42
- package/dist/ssr/image-carousel-ssr.css +2 -4
- package/dist/ssr/links-ssr.css +17 -3
- package/dist/ssr/nav-menu-ssr.css +82 -0
- package/dist/ssr/overlay-ssr.css +4 -0
- package/dist/ssr/scheduler-ssr.css +182 -0
- package/dist/ssr/stepper-ssr.css +136 -0
- package/dist/ssr/table-ssr.css +7 -4
- package/dist/ssr/tag-ssr.css +1 -1
- package/dist/ssr/toolbar-ssr.css +7 -5
- package/dist/utils/css-length.utils.d.ts +14 -0
- package/dist/utils/css-length.utils.js +32 -0
- package/dist/utils/form-validation.utils.d.ts +36 -0
- package/dist/utils/form-validation.utils.js +113 -0
- package/dist/utils/implicit-submission.utils.js +2 -14
- package/dist/utils/interactive-content.utils.d.ts +10 -0
- package/dist/utils/interactive-content.utils.js +43 -0
- package/dist/utils/popover.utils.js +3 -2
- package/dist/utils/scroll-lock.utils.d.ts +9 -1
- package/dist/utils/scroll-lock.utils.js +21 -2
- package/dist/utils/theme-generator.utils.d.ts +1 -0
- package/dist/utils/theme-generator.utils.js +23 -10
- package/dist/utils/validity.utils.d.ts +18 -4
- package/dist/utils/validity.utils.js +74 -4
- package/package.json +34 -3
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +2 -2
- package/styles/tools/mixins/layout/eunomia-grid.mixin.scss +116 -8
- package/dist/cdn/components/chunks/chunk-4DRU3IYJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-647ISUF4.js +0 -1
- package/dist/cdn/components/chunks/chunk-6TIEBY34.js +0 -1
- package/dist/cdn/components/chunks/chunk-E6UOI36Q.js +0 -1
- package/dist/cdn/components/chunks/chunk-GNAUNTS5.js +0 -1
- package/dist/cdn/components/chunks/chunk-IJJ67C66.js +0 -1
- package/dist/cdn/components/chunks/chunk-J7ETIRSK.js +0 -1
- package/dist/cdn/components/chunks/chunk-JGV7LHEI.js +0 -1
- package/dist/cdn/components/chunks/chunk-L74LXUGL.js +0 -1
- package/dist/cdn/components/chunks/chunk-MY6ORZJR.js +0 -46
- package/dist/cdn/components/chunks/chunk-QWTFP56P.js +0 -1
- package/dist/cdn/components/chunks/chunk-SFX2LQ4K.js +0 -205
- package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +0 -1
- package/dist/utils/boolean.utils.d.ts +0 -14
- package/dist/utils/boolean.utils.js +0 -20
|
@@ -33,13 +33,13 @@ declare const EunomiaSchedulerEventEditor_base: import("../../../utils/construct
|
|
|
33
33
|
* @prop {EunomiaSchedulerEvent | null} [event] - The event being edited. Unset, or null, puts the form in create mode instead, seeded from initialStart and initialEnd
|
|
34
34
|
* @prop {Date} [initialStart] - The start time to seed a new event with, in create mode. Defaults to the next hour
|
|
35
35
|
* @prop {Date} [initialEnd] - The end time to seed a new event with, in create mode. Defaults to one hour after initialStart
|
|
36
|
-
* @prop {string} [locale] - The locale used by the nested date and time fields. Defaults to the
|
|
36
|
+
* @prop {string} [locale] - The locale used by the nested date and time fields. Defaults to the one set with setDefaultLocale, English otherwise
|
|
37
37
|
* @prop {boolean} [hideActions=false] - Hides the built-in save, cancel, and delete footer, for a host that drives the form itself
|
|
38
38
|
* @prop {string} [titleLabel] - The label of the title field. Defaults to the localized string for the current locale (English: "Title")
|
|
39
39
|
* @prop {string} [descriptionLabel] - The label of the description field. Defaults to the localized string for the current locale (English: "Description")
|
|
40
40
|
* @prop {string} [allDayLabel] - The label of the all day checkbox. Defaults to the localized string for the current locale (English: "All day")
|
|
41
41
|
* @prop {string} [dateLabel] - The label of the date field. Defaults to the localized string for the current locale (English: "Date")
|
|
42
|
-
* @prop {string} [endDateLabel] - The label of the end date field
|
|
42
|
+
* @prop {string} [endDateLabel] - The label of the end date field. Defaults to the localized string for the current locale (English: "End date")
|
|
43
43
|
* @prop {string} [startTimeLabel] - The label of the start time field. Defaults to the localized string for the current locale (English: "Start time")
|
|
44
44
|
* @prop {string} [endTimeLabel] - The label of the end time field. Defaults to the localized string for the current locale (English: "End time")
|
|
45
45
|
* @prop {string} [locationLabel] - The label of the location field. Defaults to the localized string for the current locale (English: "Location")
|
|
@@ -48,13 +48,18 @@ declare const EunomiaSchedulerEventEditor_base: import("../../../utils/construct
|
|
|
48
48
|
* @prop {string} [colorLabel] - The label of the color swatch picker. Defaults to the localized string for the current locale (English: "Color")
|
|
49
49
|
* @prop {string} [guestsLabel] - The label of the guest-sharing field. Defaults to the localized string for the current locale (English: "Guests")
|
|
50
50
|
* @prop {string} [addGuestLabel] - The accessible label of the guest email input's add button. Defaults to the localized string for the current locale (English: "Add guest")
|
|
51
|
+
* @prop {string} [rangeErrorLabel] - The error shown under the time fields when the end isn't after the start. Defaults to the localized string for the current locale (English: "The end must be after the start")
|
|
52
|
+
* @prop {string} [guestErrorLabel] - The error shown under the guest email field when the entered address is malformed. Defaults to the localized string for the current locale (English: "Enter a valid email address")
|
|
51
53
|
* @prop {string} [removeGuestLabel] - A prefix combined with the guest's email to build each guest chip's delete button accessible name, such as "Remove alice@example.com". Defaults to the localized string for the current locale (English: "Remove")
|
|
52
54
|
* @prop {string} [saveLabel] - The label of the built-in save button. Defaults to the localized string for the current locale (English: "Save")
|
|
53
|
-
* @prop {string} [cancelLabel] - The label of the built-in cancel button. Resets the form to its last-seeded values. Defaults to the localized string for the current locale (English: "Cancel")
|
|
55
|
+
* @prop {string} [cancelLabel] - The label of the built-in cancel button. Resets the form to its last-seeded values and fires the cancel event. Defaults to the localized string for the current locale (English: "Cancel")
|
|
54
56
|
* @prop {string} [deleteLabel] - The label of the built-in delete button. Only shown while editing an existing event. Defaults to the localized string for the current locale (English: "Delete")
|
|
57
|
+
* @prop {string} [deleteConfirmLabel] - The question the built-in footer asks before deleting. Defaults to the localized string for the current locale (English: "Delete this event?")
|
|
55
58
|
* @fires {EventCreateEvent} euneventcreate - Fired on a valid save, in create mode
|
|
56
|
-
* @fires {EventUpdateEvent} euneventupdate - Fired on a valid save, in edit mode
|
|
59
|
+
* @fires {EventUpdateEvent} euneventupdate - Fired on a valid save, in edit mode, unless nothing changed
|
|
57
60
|
* @fires {EventDeleteEvent} euneventdelete - Fired when the built-in delete button is activated
|
|
61
|
+
* @fires {EventCancelEvent} euneventcancel - Fired when the built-in cancel button, or requestCancel, resets the form
|
|
62
|
+
* @fires {EditorStateChangeEvent} euneditorstatechange - Fired whenever dirty or valid changes value. Not fired for the initial render
|
|
58
63
|
* @fires {GuestInviteEvent} eunguestinvite - Fired whenever a guest email is added, so a consumer can actually send the share invite
|
|
59
64
|
* @cssprop [--scheduler-event-editor-gap] - Sets the gap between fields
|
|
60
65
|
* @element eun-scheduler-event-editor
|
|
@@ -107,8 +112,7 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
107
112
|
*/
|
|
108
113
|
dateLabel?: string;
|
|
109
114
|
/**
|
|
110
|
-
* Label of the end-date field
|
|
111
|
-
* fields while {@link formAllDay} is set.
|
|
115
|
+
* Label of the end-date field.
|
|
112
116
|
* Falls back to the localized string for the current locale when unset.
|
|
113
117
|
*/
|
|
114
118
|
endDateLabel?: string;
|
|
@@ -139,7 +143,8 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
139
143
|
/**
|
|
140
144
|
* Accessible name appended after {@link titleLabel} when the title field
|
|
141
145
|
* is left empty on submit (e.g. "Title is required").
|
|
142
|
-
*
|
|
146
|
+
* Left unset along with {@link titleLabel}, the whole message is the
|
|
147
|
+
* localized one for the current locale (e.g. "Le titre est obligatoire").
|
|
143
148
|
*/
|
|
144
149
|
requiredLabel?: string;
|
|
145
150
|
/**
|
|
@@ -156,6 +161,18 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
156
161
|
* Falls back to the localized string for the current locale when unset.
|
|
157
162
|
*/
|
|
158
163
|
addGuestLabel?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Error shown under the guest email field when the entered address is
|
|
166
|
+
* malformed.
|
|
167
|
+
* Falls back to the localized string for the current locale when unset.
|
|
168
|
+
*/
|
|
169
|
+
guestErrorLabel?: string;
|
|
170
|
+
/**
|
|
171
|
+
* The error shown under the time fields when the end isn't after the
|
|
172
|
+
* start.
|
|
173
|
+
* Falls back to the localized string for the current locale when unset.
|
|
174
|
+
*/
|
|
175
|
+
rangeErrorLabel?: string;
|
|
159
176
|
/**
|
|
160
177
|
* Prefix combined with the guest's email to build each guest chip's
|
|
161
178
|
* delete button accessible name, forwarded as `eun-chip`'s own
|
|
@@ -173,6 +190,16 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
173
190
|
* Falls back to the localized string for the current locale when unset.
|
|
174
191
|
*/
|
|
175
192
|
deleteLabel?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Falls back to the localized string for the current locale when unset.
|
|
195
|
+
*/
|
|
196
|
+
deleteConfirmLabel?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Whether the built-in Delete was pressed once and now waits for its
|
|
199
|
+
* confirmation. Reset whenever the form is seeded.
|
|
200
|
+
* @internal
|
|
201
|
+
*/
|
|
202
|
+
private confirmingDelete;
|
|
176
203
|
/** @internal */
|
|
177
204
|
private formTitle;
|
|
178
205
|
/** @internal */
|
|
@@ -186,9 +213,9 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
186
213
|
/** @internal */
|
|
187
214
|
private formDate;
|
|
188
215
|
/**
|
|
189
|
-
* The end date of
|
|
190
|
-
* {@link
|
|
191
|
-
*
|
|
216
|
+
* The end date of the event — a single-day event has this equal to
|
|
217
|
+
* {@link formDate}. Combined with {@link formEnd}'s time outside
|
|
218
|
+
* all-day mode.
|
|
192
219
|
* @internal
|
|
193
220
|
*/
|
|
194
221
|
private formEndDate;
|
|
@@ -207,11 +234,10 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
207
234
|
*/
|
|
208
235
|
private formPriority;
|
|
209
236
|
/**
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* show the matching preset swatch as picked in its own radiogroup.
|
|
237
|
+
* Always held as hex (see `toEventColorHex`), seeded from a preset name
|
|
238
|
+
* or hex alike, so the `eun-color-picker` rendered in {@link render}
|
|
239
|
+
* below shows the matching preset swatch as picked, and saved events
|
|
240
|
+
* always carry hex. Defaults to the `blue` preset's hex.
|
|
215
241
|
* @internal
|
|
216
242
|
*/
|
|
217
243
|
private formColor;
|
|
@@ -240,6 +266,12 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
240
266
|
* @internal
|
|
241
267
|
*/
|
|
242
268
|
private seedSnapshot;
|
|
269
|
+
/**
|
|
270
|
+
* The `dirty`/`valid` pair last reported by `EditorStateChangeEvent`,
|
|
271
|
+
* `null` until the first update records it without dispatching.
|
|
272
|
+
* @internal
|
|
273
|
+
*/
|
|
274
|
+
private reportedState;
|
|
243
275
|
connectedCallback(): void;
|
|
244
276
|
/**
|
|
245
277
|
* Re-seeds the form whenever `event`/`initialStart`/`initialEnd` change
|
|
@@ -264,6 +296,13 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
264
296
|
* @param changed the changed properties.
|
|
265
297
|
*/
|
|
266
298
|
protected updated(changed: PropertyValues): void;
|
|
299
|
+
/**
|
|
300
|
+
* Dispatches `EditorStateChangeEvent` when {@link dirty} or
|
|
301
|
+
* {@link valid} differs from what was last reported. The first call only
|
|
302
|
+
* records the initial pair.
|
|
303
|
+
* @private
|
|
304
|
+
*/
|
|
305
|
+
private reportStateChange;
|
|
267
306
|
/**
|
|
268
307
|
* Seeds every form field from {@link event} (edit mode) or
|
|
269
308
|
* {@link initialStart}/{@link initialEnd} (create mode, defaulting to
|
|
@@ -288,8 +327,9 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
288
327
|
* Composes the current form fields into the final `start`/`end` instants
|
|
289
328
|
* — in all-day mode, {@link formDate}/{@link formEndDate} at their own
|
|
290
329
|
* day boundaries (no time-of-day involved) ; otherwise
|
|
291
|
-
* {@link formDate}
|
|
292
|
-
* hour/minute
|
|
330
|
+
* {@link formDate}/{@link formEndDate}'s calendar days with
|
|
331
|
+
* {@link formStart}/{@link formEnd}'s hour/minute. Never rolls the end
|
|
332
|
+
* over to the next day : an end before the start stays invalid.
|
|
293
333
|
* @private
|
|
294
334
|
*/
|
|
295
335
|
private composeStartEnd;
|
|
@@ -302,11 +342,29 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
302
342
|
* Validates the form and, if valid, dispatches
|
|
303
343
|
* `EventCreateEvent`/`EventUpdateEvent` as appropriate. Otherwise turns
|
|
304
344
|
* on inline error messages and returns `false` without dispatching
|
|
305
|
-
* anything.
|
|
345
|
+
* anything. Editing an event without changing anything succeeds without
|
|
346
|
+
* dispatching either, so the consumer's data is left untouched.
|
|
306
347
|
*
|
|
307
348
|
* @returns whether the save succeeded.
|
|
308
349
|
*/
|
|
309
350
|
requestSave(): boolean;
|
|
351
|
+
/**
|
|
352
|
+
* The color to save : the edited event's own value, in whatever form it
|
|
353
|
+
* was given (a preset name, say), while the picked swatch still matches
|
|
354
|
+
* it, {@link formColor}'s hex otherwise.
|
|
355
|
+
* @private
|
|
356
|
+
*/
|
|
357
|
+
private savedColor;
|
|
358
|
+
/**
|
|
359
|
+
* Whether the composed end falls at or before the start.
|
|
360
|
+
* @private
|
|
361
|
+
*/
|
|
362
|
+
private get rangeInvalid();
|
|
363
|
+
/**
|
|
364
|
+
* Resets the form to its last-seeded values and dispatches
|
|
365
|
+
* `EventCancelEvent`, for a host modal or drawer to close itself.
|
|
366
|
+
*/
|
|
367
|
+
requestCancel(): void;
|
|
310
368
|
/**
|
|
311
369
|
* Dispatches `EventDeleteEvent` for the event currently being edited. A
|
|
312
370
|
* no-op in "create" mode (there's nothing to delete yet).
|
|
@@ -316,6 +374,24 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
316
374
|
private handleSaveClick;
|
|
317
375
|
/** @private */
|
|
318
376
|
private handleCancelClick;
|
|
377
|
+
/**
|
|
378
|
+
* Swaps the built-in footer for the delete confirmation, moving focus
|
|
379
|
+
* onto its Cancel button since the pressed Delete button goes away.
|
|
380
|
+
* @private
|
|
381
|
+
*/
|
|
382
|
+
private handleDeleteClick;
|
|
383
|
+
/** @private */
|
|
384
|
+
private handleConfirmDeleteClick;
|
|
385
|
+
/** @private */
|
|
386
|
+
private handleCancelDeleteClick;
|
|
387
|
+
/** @private */
|
|
388
|
+
private focusAction;
|
|
389
|
+
/**
|
|
390
|
+
* Moves {@link formDate} to `date`, shifting {@link formEndDate} by the
|
|
391
|
+
* same number of days so the event keeps its length.
|
|
392
|
+
* @private
|
|
393
|
+
*/
|
|
394
|
+
private moveStartDate;
|
|
319
395
|
/**
|
|
320
396
|
* Reads the priority picker's new selection back into {@link formPriority}
|
|
321
397
|
* — `eun-toggle-group` in `single` mode always has exactly one entry
|
|
@@ -345,6 +421,14 @@ export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEd
|
|
|
345
421
|
/** @private */
|
|
346
422
|
private handleRemoveGuest;
|
|
347
423
|
render(): TemplateResult;
|
|
424
|
+
/**
|
|
425
|
+
* Renders the built-in footer : Delete/Cancel/Save, or the delete
|
|
426
|
+
* confirmation that replaces them once Delete was pressed. Save stays
|
|
427
|
+
* disabled while an edited event has no changes. Nothing with
|
|
428
|
+
* {@link hideActions}.
|
|
429
|
+
* @private
|
|
430
|
+
*/
|
|
431
|
+
private renderActions;
|
|
348
432
|
}
|
|
349
433
|
declare global {
|
|
350
434
|
interface HTMLElementTagNameMap {
|