@eunomia/elements 1.0.0-beta.6 → 1.0.0-beta.8
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-KDN4O5W2.js → chunk-32L2QYWQ.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-JYIIWN2P.js → chunk-36KLGY6U.js} +8 -8
- package/dist/cdn/components/chunks/chunk-3BMACIDO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-2Y2EU2CI.js → chunk-3UUZM7X2.js} +1 -1
- package/dist/cdn/components/chunks/chunk-55PUDL7D.js +109 -0
- package/dist/cdn/components/chunks/chunk-5LA5DQMP.js +1 -0
- package/dist/cdn/components/chunks/chunk-5LXGJVJR.js +1 -0
- package/dist/cdn/components/chunks/{chunk-ZKZV2YG5.js → chunk-5XPOGBPL.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-LMVW522V.js → chunk-62RLISRD.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-PMPSJG5V.js → chunk-6FYW5TQU.js} +3 -3
- package/dist/cdn/components/chunks/chunk-6TIEBY34.js +1 -0
- package/dist/cdn/components/chunks/{chunk-MOMYII3P.js → chunk-AH2SKZ7T.js} +14 -1
- package/dist/cdn/components/chunks/chunk-AK2DIJX7.js +1 -0
- package/dist/cdn/components/chunks/chunk-B5XMGWM7.js +10 -0
- package/dist/cdn/components/chunks/chunk-GVS6IUKC.js +1 -0
- package/dist/cdn/components/chunks/chunk-GWLD2I3P.js +8 -0
- package/dist/cdn/components/chunks/{chunk-UDVB4LAE.js → chunk-I4ERDXSM.js} +5 -3
- package/dist/cdn/components/chunks/{chunk-QZ5SHR3I.js → chunk-J3SZBXM6.js} +2 -2
- package/dist/cdn/components/chunks/chunk-JAGZL7JH.js +1 -0
- package/dist/cdn/components/chunks/{chunk-VYFR364B.js → chunk-LD35BFNK.js} +18 -17
- package/dist/cdn/components/chunks/{chunk-XDPRWUKN.js → chunk-MQQJ6DID.js} +1 -1
- package/dist/cdn/components/chunks/chunk-P6LGU3FT.js +1 -0
- package/dist/cdn/components/chunks/chunk-QL5GSW2A.js +1 -0
- package/dist/cdn/components/chunks/{chunk-UYZR4JXZ.js → chunk-QSZO4GIH.js} +45 -9
- package/dist/cdn/components/chunks/{chunk-7KKWYPHY.js → chunk-QXQ25SQS.js} +21 -19
- package/dist/cdn/components/chunks/{chunk-SZYEBMG6.js → chunk-QYB6Z6FG.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-RIFF2D2F.js → chunk-RGC3I6MK.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-L2ADCEN7.js → chunk-SVGWCKWT.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-N6ZW5CDN.js → chunk-TCSB2MLU.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-MQQ4BGVJ.js → chunk-TFTRCIIK.js} +7 -6
- package/dist/cdn/components/chunks/chunk-TLBXTBMM.js +46 -0
- package/dist/cdn/components/chunks/chunk-UVHVQRPT.js +1 -0
- package/dist/cdn/components/chunks/chunk-WIUERJII.js +1 -0
- package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +1 -0
- package/dist/cdn/components/eun-alert.js +13 -6
- package/dist/cdn/components/eun-animate.js +6 -6
- package/dist/cdn/components/eun-badge.js +1 -1
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +2 -2
- package/dist/cdn/components/eun-card.js +4 -4
- package/dist/cdn/components/eun-carousel.js +26 -22
- package/dist/cdn/components/eun-check-card.js +1 -1
- package/dist/cdn/components/eun-checkbox-list.js +11 -8
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +17 -11
- package/dist/cdn/components/eun-collapse.js +1 -1
- package/dist/cdn/components/eun-color-picker.js +74 -69
- package/dist/cdn/components/eun-counter.js +16 -14
- package/dist/cdn/components/eun-date-picker.js +67 -63
- package/dist/cdn/components/eun-description-list.js +2 -2
- package/dist/cdn/components/eun-divider.js +3 -3
- package/dist/cdn/components/eun-drawer.js +21 -22
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +3 -3
- package/dist/cdn/components/eun-fab.js +2 -2
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +1 -1
- package/dist/cdn/components/eun-image-carousel.js +10 -10
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +21 -21
- package/dist/cdn/components/eun-input-phone.js +16 -12
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-link.js +59 -13
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +33 -23
- package/dist/cdn/components/eun-pagination.js +16 -16
- package/dist/cdn/components/eun-password-strength.js +14 -10
- package/dist/cdn/components/eun-radio-card.js +1 -1
- package/dist/cdn/components/eun-radio-list.js +11 -8
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-rating.js +276 -0
- package/dist/cdn/components/eun-scheduler-event-editor.js +11 -11
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +28 -28
- package/dist/cdn/components/eun-search.js +36 -32
- package/dist/cdn/components/eun-select.js +27 -27
- package/dist/cdn/components/eun-sidebar.js +73 -26
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +3 -3
- package/dist/cdn/components/eun-sliding-card.js +1 -1
- package/dist/cdn/components/eun-step.js +5 -4
- package/dist/cdn/components/eun-stepper.js +30 -30
- package/dist/cdn/components/eun-switch.js +1 -1
- package/dist/cdn/components/eun-tab-group.js +4 -4
- 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.js +2 -2
- package/dist/cdn/components/eun-tag.js +3 -3
- package/dist/cdn/components/eun-textarea.js +36 -28
- package/dist/cdn/components/eun-time-picker.js +31 -28
- package/dist/cdn/components/eun-toast.js +24 -15
- package/dist/cdn/components/eun-toggle-group.js +75 -37
- package/dist/cdn/components/eun-toggle-item.js +9 -9
- package/dist/cdn/components/eun-toggle.js +2 -2
- package/dist/cdn/components/eun-toolbar.js +22 -22
- package/dist/cdn/components/eun-tooltip.js +6 -6
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/components/action/button/button.d.ts +4 -3
- package/dist/components/action/button/button.js +6 -9
- package/dist/components/action/button/button.styles.js +13 -8
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +4 -6
- package/dist/components/action/dropdown-button/dropdown-button.js +16 -13
- package/dist/components/action/dropdown-button/dropdown-item.d.ts +10 -2
- package/dist/components/action/dropdown-button/dropdown-item.js +24 -9
- package/dist/components/action/link/link.d.ts +10 -1
- package/dist/components/action/link/link.js +13 -1
- package/dist/components/action/link/link.styles.js +50 -3
- package/dist/components/action/toggle/toggle-group.d.ts +12 -2
- package/dist/components/action/toggle/toggle-group.js +18 -3
- package/dist/components/action/toggle/toggle-group.styles.js +58 -20
- package/dist/components/action/toggle/toggle-item.js +1 -3
- package/dist/components/action/toggle/toggle-item.styles.js +7 -7
- package/dist/components/action/toggle/toggle.js +1 -1
- package/dist/components/alert/alert/alert.d.ts +9 -7
- package/dist/components/alert/alert/alert.js +11 -14
- package/dist/components/alert/alert/alert.styles.js +9 -2
- package/dist/components/alert/drawer/drawer.d.ts +30 -5
- package/dist/components/alert/drawer/drawer.js +48 -13
- package/dist/components/alert/drawer/drawer.styles.js +7 -7
- package/dist/components/alert/modal/modal.d.ts +35 -10
- package/dist/components/alert/modal/modal.js +55 -28
- package/dist/components/alert/modal/modal.styles.js +17 -6
- package/dist/components/alert/toast/toast.d.ts +7 -5
- package/dist/components/alert/toast/toast.js +12 -15
- package/dist/components/alert/toast/toast.styles.js +18 -9
- package/dist/components/content/badge/badge.js +2 -2
- package/dist/components/content/card/card.js +1 -1
- package/dist/components/content/card/card.styles.js +2 -2
- package/dist/components/content/chip/chip.d.ts +4 -4
- package/dist/components/content/chip/chip.js +11 -10
- package/dist/components/content/chip/chip.styles.js +9 -3
- package/dist/components/content/description-list/description-list.js +3 -3
- package/dist/components/content/icon/icon.d.ts +3 -0
- package/dist/components/content/icon/icon.js +3 -0
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +4 -0
- package/dist/components/content/image-carousel/image-carousel.d.ts +12 -12
- package/dist/components/content/image-carousel/image-carousel.js +29 -28
- package/dist/components/content/password-strength/password-strength.d.ts +21 -6
- package/dist/components/content/password-strength/password-strength.js +37 -16
- package/dist/components/content/password-strength/password-strength.styles.js +4 -0
- package/dist/components/content/tag/tag.js +2 -2
- package/dist/components/content/tooltip/tooltip.d.ts +16 -9
- package/dist/components/content/tooltip/tooltip.js +31 -15
- package/dist/components/content/tooltip/tooltip.styles.js +1 -1
- package/dist/components/form/checkbox/check-card.d.ts +1 -0
- package/dist/components/form/checkbox/check-card.js +1 -0
- package/dist/components/form/checkbox/checkbox-list.d.ts +17 -0
- package/dist/components/form/checkbox/checkbox-list.js +39 -10
- package/dist/components/form/checkbox/checkbox.d.ts +1 -0
- package/dist/components/form/checkbox/checkbox.js +3 -1
- package/dist/components/form/checkbox/checkbox.styles.js +3 -2
- package/dist/components/form/color-picker/color-picker.d.ts +47 -28
- package/dist/components/form/color-picker/color-picker.js +73 -51
- package/dist/components/form/color-picker/color-picker.styles.js +14 -1
- package/dist/components/form/counter/counter.d.ts +24 -18
- package/dist/components/form/counter/counter.js +61 -61
- package/dist/components/form/counter/counter.styles.js +6 -4
- package/dist/components/form/date-picker/date-picker.d.ts +33 -7
- package/dist/components/form/date-picker/date-picker.js +82 -56
- package/dist/components/form/date-picker/date-picker.styles.js +9 -6
- package/dist/components/form/input/input.d.ts +43 -39
- package/dist/components/form/input/input.js +91 -110
- package/dist/components/form/input-file/input-file.d.ts +26 -13
- package/dist/components/form/input-file/input-file.js +35 -35
- package/dist/components/form/input-file/input-file.styles.js +4 -4
- package/dist/components/form/input-phone/input-phone.d.ts +28 -5
- package/dist/components/form/input-phone/input-phone.js +47 -13
- package/dist/components/form/input-phone/input-phone.styles.js +6 -3
- package/dist/components/form/radio/radio-card.d.ts +1 -0
- package/dist/components/form/radio/radio-card.js +1 -0
- package/dist/components/form/radio/radio-list.d.ts +23 -7
- package/dist/components/form/radio/radio-list.js +47 -22
- package/dist/components/form/radio/radio.d.ts +1 -0
- package/dist/components/form/radio/radio.js +1 -0
- package/dist/components/form/rating/rating.d.ts +349 -0
- package/dist/components/form/rating/rating.js +665 -0
- package/dist/components/form/rating/rating.styles.d.ts +1 -0
- package/dist/components/form/rating/rating.styles.js +213 -0
- package/dist/components/form/search/search.d.ts +72 -18
- package/dist/components/form/search/search.js +135 -72
- package/dist/components/form/search/search.styles.js +2 -0
- package/dist/components/form/select/select.d.ts +29 -10
- package/dist/components/form/select/select.js +65 -41
- package/dist/components/form/shared-styles/field.styles.js +45 -8
- package/dist/components/form/shared-styles/listbox.styles.js +15 -1
- package/dist/components/form/slider/slider.d.ts +7 -8
- package/dist/components/form/slider/slider.js +9 -12
- package/dist/components/form/switch/switch.d.ts +1 -0
- package/dist/components/form/switch/switch.js +1 -0
- package/dist/components/form/textarea/textarea.d.ts +90 -23
- package/dist/components/form/textarea/textarea.js +194 -44
- package/dist/components/form/textarea/textarea.styles.js +3 -0
- package/dist/components/form/time-picker/time-picker-columns.d.ts +2 -2
- package/dist/components/form/time-picker/time-picker-columns.js +8 -8
- package/dist/components/form/time-picker/time-picker.d.ts +30 -9
- package/dist/components/form/time-picker/time-picker.js +66 -40
- package/dist/components/form/time-picker/time-picker.styles.js +7 -5
- package/dist/components/layout/animate/animate.js +3 -2
- package/dist/components/layout/animate/animate.styles.js +2 -2
- package/dist/components/layout/divider/divider.js +1 -1
- package/dist/components/layout/divider/divider.styles.js +1 -1
- package/dist/components/loader/loader/loader.js +2 -2
- package/dist/components/loader/loader/loader.styles.js +14 -12
- package/dist/components/loader/skeleton/skeleton.js +1 -1
- package/dist/components/navigation/carousel/carousel.d.ts +32 -9
- package/dist/components/navigation/carousel/carousel.js +88 -41
- package/dist/components/navigation/carousel/carousel.styles.js +10 -6
- package/dist/components/navigation/pagination/pagination.d.ts +23 -21
- package/dist/components/navigation/pagination/pagination.js +30 -53
- package/dist/components/navigation/sidebar/sidebar.d.ts +113 -65
- package/dist/components/navigation/sidebar/sidebar.js +161 -118
- package/dist/components/navigation/sidebar/sidebar.styles.d.ts +1 -1
- package/dist/components/navigation/sidebar/sidebar.styles.js +74 -24
- package/dist/components/navigation/stepper/step.js +9 -8
- package/dist/components/navigation/stepper/stepper.d.ts +1 -3
- package/dist/components/navigation/stepper/stepper.js +15 -26
- package/dist/components/navigation/tabs/tab-group/tab-group.js +2 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +2 -2
- package/dist/components/navigation/toolbar/toolbar.d.ts +23 -13
- package/dist/components/navigation/toolbar/toolbar.js +28 -35
- package/dist/components/navigation/toolbar/toolbar.styles.js +18 -17
- package/dist/events/select.event.d.ts +3 -2
- package/dist/events/select.event.js +2 -1
- package/dist/features/scheduler/calendar/calendar.js +1 -1
- package/dist/features/scheduler/scheduler/scheduler.d.ts +7 -7
- package/dist/features/scheduler/scheduler/scheduler.js +15 -24
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +3 -3
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +1 -1
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +6 -4
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +7 -8
- package/dist/features/table/table/table.js +1 -1
- package/dist/features/table/table-action-bar/table-action-bar.js +2 -2
- package/dist/i18n/en.d.ts +68 -0
- package/dist/i18n/en.js +68 -0
- package/dist/i18n/fr.js +68 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/mixins/button.mixin.d.ts +1 -1
- package/dist/mixins/button.mixin.js +9 -6
- package/dist/mixins/check.mixin.js +11 -10
- package/dist/mixins/dialog-surface.mixin.d.ts +8 -0
- package/dist/mixins/disabled.mixin.d.ts +5 -0
- package/dist/mixins/disabled.mixin.js +21 -1
- package/dist/mixins/editable.mixin.js +28 -5
- package/dist/mixins/field-appearance.mixin.js +3 -2
- package/dist/mixins/field-size.mixin.d.ts +19 -0
- package/dist/mixins/field-size.mixin.js +33 -0
- package/dist/mixins/form.mixin.d.ts +4 -0
- package/dist/mixins/form.mixin.js +87 -13
- package/dist/mixins/localizable.mixin.d.ts +1 -1
- package/dist/mixins/localizable.mixin.js +1 -1
- package/dist/mixins/radio.mixin.js +11 -10
- package/dist/mixins/readonly.mixin.d.ts +2 -1
- package/dist/mixins/readonly.mixin.js +10 -3
- package/dist/mixins/rounded.mixin.d.ts +18 -0
- package/dist/mixins/rounded.mixin.js +32 -0
- package/dist/ssr/alert-ssr.css +187 -0
- package/dist/ssr/badge-ssr.css +67 -0
- package/dist/ssr/breadcrumb-ssr.css +41 -0
- package/dist/ssr/button-ssr.css +5 -5
- package/dist/ssr/card-ssr.css +27 -15
- package/dist/ssr/carousel-ssr.css +247 -0
- package/dist/ssr/checkbox-ssr.css +67 -0
- package/dist/ssr/chip-ssr.css +250 -0
- package/dist/ssr/collapse-ssr.css +180 -0
- package/dist/ssr/field-ssr.css +202 -0
- package/dist/ssr/icon-ssr.css +266 -0
- package/dist/ssr/image-carousel-ssr.css +34 -0
- package/dist/ssr/links-ssr.css +44 -1
- package/dist/ssr/pagination-ssr.css +4 -0
- package/dist/ssr/rating-ssr.css +254 -0
- package/dist/ssr/sidebar-ssr.css +102 -3
- package/dist/ssr/skeleton-ssr.css +63 -0
- package/dist/ssr/tabs-ssr.css +129 -0
- package/dist/ssr/toggle-group-ssr.css +233 -0
- package/dist/ssr/toolbar-ssr.css +81 -2
- package/dist/types/variant.type.d.ts +4 -1
- package/dist/utils/boolean.utils.d.ts +14 -0
- package/dist/utils/boolean.utils.js +20 -0
- package/dist/utils/dropdown-menu.utils.d.ts +1 -1
- package/dist/utils/focusable-elements.utils.d.ts +12 -0
- package/dist/utils/focusable-elements.utils.js +26 -0
- package/dist/utils/implicit-submission.utils.d.ts +18 -0
- package/dist/utils/implicit-submission.utils.js +79 -0
- package/dist/utils/input-modality.utils.d.ts +13 -0
- package/dist/utils/input-modality.utils.js +34 -0
- package/dist/utils/listbox-options.utils.d.ts +11 -0
- package/dist/utils/listbox-options.utils.js +41 -3
- package/dist/utils/theme-generator.utils.d.ts +8 -2
- package/dist/utils/theme-generator.utils.js +30 -9
- package/package.json +26 -7
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
- package/dist/cdn/components/chunks/chunk-4PI6RDUS.js +0 -1
- package/dist/cdn/components/chunks/chunk-6VK6SHCG.js +0 -1
- package/dist/cdn/components/chunks/chunk-A3X4KD2X.js +0 -1
- package/dist/cdn/components/chunks/chunk-BQFJR2UP.js +0 -110
- package/dist/cdn/components/chunks/chunk-G5SBDQQ3.js +0 -1
- package/dist/cdn/components/chunks/chunk-KSZRQRN4.js +0 -1
- package/dist/cdn/components/chunks/chunk-PE4DAXHQ.js +0 -3
- package/dist/cdn/components/chunks/chunk-RS7TWEMQ.js +0 -1
- package/dist/cdn/components/chunks/chunk-UDOZRIJZ.js +0 -1
- package/dist/cdn/components/chunks/chunk-VOTRXBDS.js +0 -38
|
@@ -28,6 +28,7 @@ import { css } from "lit";
|
|
|
28
28
|
* [--toolbar-panel-padding] - Set a custom padding for the mobile panel
|
|
29
29
|
* [--toolbar-panel-padding-block] - Set a custom vertical padding, as one length applied to both sides. Ignored when --toolbar-panel-padding is set
|
|
30
30
|
* [--toolbar-panel-padding-inline] - Set a custom horizontal padding, as one length applied to both sides. Ignored when --toolbar-panel-padding is set
|
|
31
|
+
* [--toolbar-panel-offset] - Set the room reserved above the mobile panel content for the burger, added to its padding. Defaults to the bar's height, or 0 for panel-direction="bottom"
|
|
31
32
|
* [--toolbar-burger-align] - Set the vertical alignment of the burger button within the bar's height, default center ; set flex-start to pin it to the top instead
|
|
32
33
|
* [--toolbar-burger-padding] - Set a custom padding around the burger button, default 0 on the block axis and --toolbar-panel-padding on the inline axis
|
|
33
34
|
* [--toolbar-burger-padding-block] - Set a custom vertical padding, as one length applied to both sides. Ignored when --toolbar-burger-padding is set
|
|
@@ -92,6 +93,10 @@ const base = css `
|
|
|
92
93
|
--toolbar-panel-padding,
|
|
93
94
|
var(--toolbar-panel-padding-inline, 14px)
|
|
94
95
|
);
|
|
96
|
+
--_panelOffset: var(
|
|
97
|
+
--toolbar-panel-offset,
|
|
98
|
+
calc(var(--_currentHeight) - var(--eun-border-width-s, 1px))
|
|
99
|
+
);
|
|
95
100
|
--_burgerAlign: var(--toolbar-burger-align, center);
|
|
96
101
|
--_burgerPadding: var(
|
|
97
102
|
--toolbar-burger-padding,
|
|
@@ -191,6 +196,12 @@ const base = css `
|
|
|
191
196
|
min-width: 0;
|
|
192
197
|
}
|
|
193
198
|
|
|
199
|
+
:host([mobile][mobile-hide~="start"]) #start,
|
|
200
|
+
:host([mobile][mobile-hide~="center"]) #center,
|
|
201
|
+
:host([mobile][mobile-hide~="end"]) #end {
|
|
202
|
+
display: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
194
205
|
#start ::slotted(*),
|
|
195
206
|
#center ::slotted(*),
|
|
196
207
|
#end ::slotted(*) {
|
|
@@ -320,22 +331,6 @@ const base = css `
|
|
|
320
331
|
pointer-events: none;
|
|
321
332
|
transition-duration: var(--_transitionDuration);
|
|
322
333
|
}
|
|
323
|
-
#panel[data-direction="top"] {
|
|
324
|
-
inset-block-end: auto;
|
|
325
|
-
height: var(--_panelSize);
|
|
326
|
-
}
|
|
327
|
-
#panel[data-direction="bottom"] {
|
|
328
|
-
inset-block-start: auto;
|
|
329
|
-
height: var(--_panelSize);
|
|
330
|
-
}
|
|
331
|
-
#panel[data-direction="left"] {
|
|
332
|
-
inset-inline-end: auto;
|
|
333
|
-
width: var(--_panelSize);
|
|
334
|
-
}
|
|
335
|
-
#panel[data-direction="right"] {
|
|
336
|
-
inset-inline-start: auto;
|
|
337
|
-
width: var(--_panelSize);
|
|
338
|
-
}
|
|
339
334
|
#panel::backdrop {
|
|
340
335
|
background: transparent;
|
|
341
336
|
}
|
|
@@ -360,7 +355,8 @@ const base = css `
|
|
|
360
355
|
inset: 0;
|
|
361
356
|
display: flex;
|
|
362
357
|
flex-direction: column;
|
|
363
|
-
padding: var(--
|
|
358
|
+
padding: calc(var(--_panelOffset) + var(--_panelPaddingBlock))
|
|
359
|
+
var(--_panelPaddingInline) var(--_panelPaddingBlock);
|
|
364
360
|
background: var(--_panelBackground);
|
|
365
361
|
backdrop-filter: blur(var(--_panelBackdropBlur));
|
|
366
362
|
-webkit-backdrop-filter: blur(var(--_panelBackdropBlur));
|
|
@@ -373,15 +369,20 @@ const base = css `
|
|
|
373
369
|
transform var(--_transitionDuration) var(--eun-easing-default, ease);
|
|
374
370
|
}
|
|
375
371
|
#panel[data-direction="top"] #panel-body {
|
|
372
|
+
inset-block-end: calc(100% - var(--_panelSize));
|
|
376
373
|
transform: translateY(-100%);
|
|
377
374
|
}
|
|
378
375
|
#panel[data-direction="bottom"] #panel-body {
|
|
376
|
+
--_panelOffset: var(--toolbar-panel-offset, 0px);
|
|
377
|
+
inset-block-start: calc(100% - var(--_panelSize));
|
|
379
378
|
transform: translateY(100%);
|
|
380
379
|
}
|
|
381
380
|
#panel[data-direction="left"] #panel-body {
|
|
381
|
+
inset-inline-end: calc(100% - var(--_panelSize));
|
|
382
382
|
transform: translateX(-100%);
|
|
383
383
|
}
|
|
384
384
|
#panel[data-direction="right"] #panel-body {
|
|
385
|
+
inset-inline-start: calc(100% - var(--_panelSize));
|
|
385
386
|
transform: translateX(100%);
|
|
386
387
|
}
|
|
387
388
|
#panel:popover-open #panel-body {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dispatched when an option is chosen from a `eun-dropdown-button` menu
|
|
2
|
+
* Dispatched when an option is chosen from a `eun-dropdown-button` menu, or
|
|
3
|
+
* a suggestion is picked in a `eun-search`.
|
|
3
4
|
*/
|
|
4
5
|
export declare class SelectEvent extends Event {
|
|
5
6
|
/**
|
|
@@ -9,7 +10,7 @@ export declare class SelectEvent extends Event {
|
|
|
9
10
|
*/
|
|
10
11
|
static readonly eventName = "eunselect";
|
|
11
12
|
/**
|
|
12
|
-
* The `key` of the chosen option.
|
|
13
|
+
* The `key` of the chosen option, or the `value` of the picked suggestion.
|
|
13
14
|
*/
|
|
14
15
|
readonly key: string;
|
|
15
16
|
constructor(key: string);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dispatched when an option is chosen from a `eun-dropdown-button` menu
|
|
2
|
+
* Dispatched when an option is chosen from a `eun-dropdown-button` menu, or
|
|
3
|
+
* a suggestion is picked in a `eun-search`.
|
|
3
4
|
*/
|
|
4
5
|
export class SelectEvent extends Event {
|
|
5
6
|
constructor(key) {
|
|
@@ -1103,7 +1103,7 @@ __decorate([
|
|
|
1103
1103
|
property({ attribute: false })
|
|
1104
1104
|
], EunomiaCalendar.prototype, "events", void 0);
|
|
1105
1105
|
__decorate([
|
|
1106
|
-
property({ reflect: true })
|
|
1106
|
+
property({ reflect: true, useDefault: true })
|
|
1107
1107
|
], EunomiaCalendar.prototype, "view", void 0);
|
|
1108
1108
|
__decorate([
|
|
1109
1109
|
property({ attribute: false })
|
|
@@ -43,8 +43,8 @@ declare const EunomiaScheduler_base: import("../../../utils/constructor.type.js"
|
|
|
43
43
|
* @prop {boolean} [noAnimation=false] - Disables the mobile swipe slide animation and the drawer or modal's own transitions
|
|
44
44
|
* @prop {string} [todayLabel='Today'] - The label of the jump-to-today button
|
|
45
45
|
* @prop {string} [newEventLabel='New event'] - The label of the create-a-new-event button
|
|
46
|
-
* @prop {string} [
|
|
47
|
-
* @prop {string} [
|
|
46
|
+
* @prop {string} [previousLabel] - The accessible label of the previous-period button. Defaults to the localized string for the current locale (English: "Previous period")
|
|
47
|
+
* @prop {string} [nextLabel] - The accessible label of the next-period button. Defaults to the localized string for the current locale (English: "Next period")
|
|
48
48
|
* @prop {string} [viewDayLabel='Day'] - The label of the day view switcher option
|
|
49
49
|
* @prop {string} [viewWeekLabel='Week'] - The label of the week view switcher option
|
|
50
50
|
* @prop {string} [viewWorkWeekLabel='Work week'] - The label of the work week view switcher option
|
|
@@ -126,9 +126,9 @@ export declare class EunomiaScheduler extends EunomiaScheduler_base {
|
|
|
126
126
|
/** @default New event */
|
|
127
127
|
newEventLabel: string;
|
|
128
128
|
/** @default Previous period */
|
|
129
|
-
|
|
129
|
+
previousLabel?: string;
|
|
130
130
|
/** @default Next period */
|
|
131
|
-
|
|
131
|
+
nextLabel?: string;
|
|
132
132
|
/** @default Day */
|
|
133
133
|
viewDayLabel: string;
|
|
134
134
|
/** @default Week */
|
|
@@ -142,7 +142,7 @@ export declare class EunomiaScheduler extends EunomiaScheduler_base {
|
|
|
142
142
|
/** @default Apply */
|
|
143
143
|
applyLabel: string;
|
|
144
144
|
/** @default Cancel */
|
|
145
|
-
cancelLabel
|
|
145
|
+
cancelLabel?: string;
|
|
146
146
|
/** @default Delete */
|
|
147
147
|
deleteLabel: string;
|
|
148
148
|
/**
|
|
@@ -152,9 +152,9 @@ export declare class EunomiaScheduler extends EunomiaScheduler_base {
|
|
|
152
152
|
editLabel: string;
|
|
153
153
|
/**
|
|
154
154
|
* Accessible label of the read-only event popover's close (✕) button.
|
|
155
|
-
*
|
|
155
|
+
* Falls back to the localized string for the current locale when unset.
|
|
156
156
|
*/
|
|
157
|
-
closeLabel
|
|
157
|
+
closeLabel?: string;
|
|
158
158
|
/** @default +{count} more */
|
|
159
159
|
moreEventsLabel: string;
|
|
160
160
|
/**
|
|
@@ -67,8 +67,8 @@ const VIEWS = [
|
|
|
67
67
|
* @prop {boolean} [noAnimation=false] - Disables the mobile swipe slide animation and the drawer or modal's own transitions
|
|
68
68
|
* @prop {string} [todayLabel='Today'] - The label of the jump-to-today button
|
|
69
69
|
* @prop {string} [newEventLabel='New event'] - The label of the create-a-new-event button
|
|
70
|
-
* @prop {string} [
|
|
71
|
-
* @prop {string} [
|
|
70
|
+
* @prop {string} [previousLabel] - The accessible label of the previous-period button. Defaults to the localized string for the current locale (English: "Previous period")
|
|
71
|
+
* @prop {string} [nextLabel] - The accessible label of the next-period button. Defaults to the localized string for the current locale (English: "Next period")
|
|
72
72
|
* @prop {string} [viewDayLabel='Day'] - The label of the day view switcher option
|
|
73
73
|
* @prop {string} [viewWeekLabel='Week'] - The label of the week view switcher option
|
|
74
74
|
* @prop {string} [viewWorkWeekLabel='Work week'] - The label of the work week view switcher option
|
|
@@ -143,10 +143,6 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
143
143
|
this.todayLabel = "Today";
|
|
144
144
|
/** @default New event */
|
|
145
145
|
this.newEventLabel = "New event";
|
|
146
|
-
/** @default Previous period */
|
|
147
|
-
this.ariaLabelPrevious = "Previous period";
|
|
148
|
-
/** @default Next period */
|
|
149
|
-
this.ariaLabelNext = "Next period";
|
|
150
146
|
/** @default Day */
|
|
151
147
|
this.viewDayLabel = "Day";
|
|
152
148
|
/** @default Week */
|
|
@@ -159,8 +155,6 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
159
155
|
this.viewYearLabel = "Year";
|
|
160
156
|
/** @default Apply */
|
|
161
157
|
this.applyLabel = "Apply";
|
|
162
|
-
/** @default Cancel */
|
|
163
|
-
this.cancelLabel = "Cancel";
|
|
164
158
|
/** @default Delete */
|
|
165
159
|
this.deleteLabel = "Delete";
|
|
166
160
|
/**
|
|
@@ -168,11 +162,6 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
168
162
|
* @default Edit
|
|
169
163
|
*/
|
|
170
164
|
this.editLabel = "Edit";
|
|
171
|
-
/**
|
|
172
|
-
* Accessible label of the read-only event popover's close (✕) button.
|
|
173
|
-
* @default Close
|
|
174
|
-
*/
|
|
175
|
-
this.closeLabel = "Close";
|
|
176
165
|
/** @default +{count} more */
|
|
177
166
|
this.moreEventsLabel = "+{count} more";
|
|
178
167
|
/**
|
|
@@ -285,7 +274,9 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
285
274
|
if (!this.calendarEl) {
|
|
286
275
|
return;
|
|
287
276
|
}
|
|
288
|
-
this.view
|
|
277
|
+
if (this.view !== this.calendarEl.view) {
|
|
278
|
+
this.view = this.calendarEl.view;
|
|
279
|
+
}
|
|
289
280
|
this.displayedDate = this.calendarEl.displayedDate;
|
|
290
281
|
};
|
|
291
282
|
/**
|
|
@@ -676,7 +667,7 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
676
667
|
<eun-button
|
|
677
668
|
appearance="ghost"
|
|
678
669
|
size="s"
|
|
679
|
-
aria-label=${this.
|
|
670
|
+
aria-label=${this.previousLabel ?? this.dictionary.scheduler.previous}
|
|
680
671
|
@click=${this.handlePrevious}
|
|
681
672
|
>
|
|
682
673
|
<eun-icon name="chevron_left" size="18"></eun-icon>
|
|
@@ -687,7 +678,7 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
687
678
|
<eun-button
|
|
688
679
|
appearance="ghost"
|
|
689
680
|
size="s"
|
|
690
|
-
aria-label=${this.
|
|
681
|
+
aria-label=${this.nextLabel ?? this.dictionary.scheduler.next}
|
|
691
682
|
@click=${this.handleNext}
|
|
692
683
|
>
|
|
693
684
|
<eun-icon name="chevron_right" size="18"></eun-icon>
|
|
@@ -820,7 +811,7 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
820
811
|
: nothing}
|
|
821
812
|
<span style="flex: 1 1 auto;"></span>
|
|
822
813
|
<eun-button appearance="ghost" @click=${this.handleDrawerCancel}
|
|
823
|
-
>${this.cancelLabel}</eun-button
|
|
814
|
+
>${this.cancelLabel ?? this.dictionary.common.cancel}</eun-button
|
|
824
815
|
>
|
|
825
816
|
<eun-button color="primary" @click=${this.handleDrawerSave}
|
|
826
817
|
>${this.applyLabel}</eun-button
|
|
@@ -855,7 +846,7 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
855
846
|
: nothing}
|
|
856
847
|
<span style="flex: 1 1 auto;"></span>
|
|
857
848
|
<eun-button color="secondary" @click=${this.handleModalCancel}
|
|
858
|
-
>${this.cancelLabel}</eun-button
|
|
849
|
+
>${this.cancelLabel ?? this.dictionary.common.cancel}</eun-button
|
|
859
850
|
>
|
|
860
851
|
<eun-button color="primary" @click=${this.handleModalSave}
|
|
861
852
|
>${this.applyLabel}</eun-button
|
|
@@ -870,7 +861,7 @@ let EunomiaScheduler = class EunomiaScheduler extends LocalizableMixin(AnchorPos
|
|
|
870
861
|
locale: this.locale,
|
|
871
862
|
editLabel: this.editLabel,
|
|
872
863
|
deleteLabel: this.deleteLabel,
|
|
873
|
-
closeLabel: this.closeLabel,
|
|
864
|
+
closeLabel: this.closeLabel ?? this.dictionary.common.close,
|
|
874
865
|
priorityLabels: {
|
|
875
866
|
low: "Low",
|
|
876
867
|
medium: "Medium",
|
|
@@ -916,7 +907,7 @@ __decorate([
|
|
|
916
907
|
property({ attribute: false })
|
|
917
908
|
], EunomiaScheduler.prototype, "events", void 0);
|
|
918
909
|
__decorate([
|
|
919
|
-
property({ reflect: true })
|
|
910
|
+
property({ reflect: true, useDefault: true })
|
|
920
911
|
], EunomiaScheduler.prototype, "view", void 0);
|
|
921
912
|
__decorate([
|
|
922
913
|
property({ attribute: false })
|
|
@@ -946,11 +937,11 @@ __decorate([
|
|
|
946
937
|
property({ attribute: "new-event-label" })
|
|
947
938
|
], EunomiaScheduler.prototype, "newEventLabel", void 0);
|
|
948
939
|
__decorate([
|
|
949
|
-
property({ attribute: "
|
|
950
|
-
], EunomiaScheduler.prototype, "
|
|
940
|
+
property({ attribute: "previous-label" })
|
|
941
|
+
], EunomiaScheduler.prototype, "previousLabel", void 0);
|
|
951
942
|
__decorate([
|
|
952
|
-
property({ attribute: "
|
|
953
|
-
], EunomiaScheduler.prototype, "
|
|
943
|
+
property({ attribute: "next-label" })
|
|
944
|
+
], EunomiaScheduler.prototype, "nextLabel", void 0);
|
|
954
945
|
__decorate([
|
|
955
946
|
property({ attribute: "view-day-label" })
|
|
956
947
|
], EunomiaScheduler.prototype, "viewDayLabel", void 0);
|
|
@@ -182,13 +182,13 @@ __decorate([
|
|
|
182
182
|
property({ attribute: false })
|
|
183
183
|
], EunomiaSchedulerEventCard.prototype, "end", void 0);
|
|
184
184
|
__decorate([
|
|
185
|
-
property({ reflect: true })
|
|
185
|
+
property({ reflect: true, useDefault: true })
|
|
186
186
|
], EunomiaSchedulerEventCard.prototype, "color", void 0);
|
|
187
187
|
__decorate([
|
|
188
|
-
property({ reflect: true })
|
|
188
|
+
property({ reflect: true, useDefault: true })
|
|
189
189
|
], EunomiaSchedulerEventCard.prototype, "appearance", void 0);
|
|
190
190
|
__decorate([
|
|
191
|
-
property({ reflect: true })
|
|
191
|
+
property({ reflect: true, useDefault: true })
|
|
192
192
|
], EunomiaSchedulerEventCard.prototype, "direction", void 0);
|
|
193
193
|
__decorate([
|
|
194
194
|
property()
|
|
@@ -33,7 +33,7 @@ const base = css `
|
|
|
33
33
|
--_accent: var(--eun-color-yellow-600, #e0e000);
|
|
34
34
|
--_tintBase: var(--eun-color-yellow-500, #f0f050);
|
|
35
35
|
}
|
|
36
|
-
:host([color="blue"]) {
|
|
36
|
+
:host(:is([color="blue"], :not([color]))) {
|
|
37
37
|
--_accent: var(--eun-color-blue-600, #0aa5a8);
|
|
38
38
|
--_tintBase: var(--eun-color-blue-500, #3bb3b9);
|
|
39
39
|
}
|
|
@@ -4,6 +4,7 @@ import { EunomiaSchedulerEvent, EunomiaSchedulerEventColor } from "../shared/sch
|
|
|
4
4
|
* Tag name of the scheduler event editor component.
|
|
5
5
|
*/
|
|
6
6
|
export declare const EunomiaSchedulerEventEditorTagName = "eun-scheduler-event-editor";
|
|
7
|
+
declare const EunomiaSchedulerEventEditor_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/localizable.mixin.js").LocalizableMixinInterface> & typeof LitElement;
|
|
7
8
|
/**
|
|
8
9
|
* The create and edit form for a single scheduler event: title,
|
|
9
10
|
* description, date, start and end time, location, notes, priority, and
|
|
@@ -49,7 +50,7 @@ export declare const EunomiaSchedulerEventEditorTagName = "eun-scheduler-event-e
|
|
|
49
50
|
* @prop {string} [addGuestLabel='Add guest'] - The accessible label of the guest email input's add button
|
|
50
51
|
* @prop {string} [removeGuestLabel='Remove'] - A prefix combined with the guest's email to build each guest chip's delete button accessible name, such as "Remove alice@example.com"
|
|
51
52
|
* @prop {string} [saveLabel='Save'] - The label of the built-in save button
|
|
52
|
-
* @prop {string} [cancelLabel
|
|
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")
|
|
53
54
|
* @prop {string} [deleteLabel='Delete'] - The label of the built-in delete button. Only shown while editing an existing event
|
|
54
55
|
* @fires {EventCreateEvent} euneventcreate - Fired on a valid save, in create mode
|
|
55
56
|
* @fires {EventUpdateEvent} euneventupdate - Fired on a valid save, in edit mode
|
|
@@ -58,7 +59,7 @@ export declare const EunomiaSchedulerEventEditorTagName = "eun-scheduler-event-e
|
|
|
58
59
|
* @cssprop [--scheduler-event-editor-gap] - Sets the gap between fields
|
|
59
60
|
* @element eun-scheduler-event-editor
|
|
60
61
|
*/
|
|
61
|
-
export declare class EunomiaSchedulerEventEditor extends
|
|
62
|
+
export declare class EunomiaSchedulerEventEditor extends EunomiaSchedulerEventEditor_base {
|
|
62
63
|
/**
|
|
63
64
|
* Styles to import to the component.
|
|
64
65
|
*
|
|
@@ -133,14 +134,14 @@ export declare class EunomiaSchedulerEventEditor extends LitElement {
|
|
|
133
134
|
/**
|
|
134
135
|
* Prefix combined with the guest's email to build each guest chip's
|
|
135
136
|
* delete button accessible name, forwarded as `eun-chip`'s own
|
|
136
|
-
* `
|
|
137
|
+
* `removeLabel`.
|
|
137
138
|
* @default Remove
|
|
138
139
|
*/
|
|
139
140
|
removeGuestLabel: string;
|
|
140
141
|
/** @default Save */
|
|
141
142
|
saveLabel: string;
|
|
142
143
|
/** @default Cancel */
|
|
143
|
-
cancelLabel
|
|
144
|
+
cancelLabel?: string;
|
|
144
145
|
/** @default Delete */
|
|
145
146
|
deleteLabel: string;
|
|
146
147
|
/** @internal */
|
|
@@ -321,3 +322,4 @@ declare global {
|
|
|
321
322
|
[EunomiaSchedulerEventEditorTagName]: EunomiaSchedulerEventEditor;
|
|
322
323
|
}
|
|
323
324
|
}
|
|
325
|
+
export {};
|
|
@@ -14,6 +14,7 @@ import { EventDeleteEvent } from "../../../events/event-delete.event.js";
|
|
|
14
14
|
import { GuestInviteEvent } from "../../../events/event-guest-invite.event.js";
|
|
15
15
|
import { addHours, endOfDay, startOfDay } from "../../../utils/date.utils.js";
|
|
16
16
|
import { GUEST_STATUS_ICON, GUEST_STATUS_SEMANTIC_STATE, } from "../shared/scheduler.utils.js";
|
|
17
|
+
import { LocalizableMixin } from "../../../mixins/localizable.mixin.js";
|
|
17
18
|
/**
|
|
18
19
|
* Tag name of the scheduler event editor component.
|
|
19
20
|
*/
|
|
@@ -96,7 +97,7 @@ const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
|
96
97
|
* @prop {string} [addGuestLabel='Add guest'] - The accessible label of the guest email input's add button
|
|
97
98
|
* @prop {string} [removeGuestLabel='Remove'] - A prefix combined with the guest's email to build each guest chip's delete button accessible name, such as "Remove alice@example.com"
|
|
98
99
|
* @prop {string} [saveLabel='Save'] - The label of the built-in save button
|
|
99
|
-
* @prop {string} [cancelLabel
|
|
100
|
+
* @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")
|
|
100
101
|
* @prop {string} [deleteLabel='Delete'] - The label of the built-in delete button. Only shown while editing an existing event
|
|
101
102
|
* @fires {EventCreateEvent} euneventcreate - Fired on a valid save, in create mode
|
|
102
103
|
* @fires {EventUpdateEvent} euneventupdate - Fired on a valid save, in edit mode
|
|
@@ -105,7 +106,7 @@ const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
|
105
106
|
* @cssprop [--scheduler-event-editor-gap] - Sets the gap between fields
|
|
106
107
|
* @element eun-scheduler-event-editor
|
|
107
108
|
*/
|
|
108
|
-
let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LitElement {
|
|
109
|
+
let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LocalizableMixin(LitElement) {
|
|
109
110
|
constructor() {
|
|
110
111
|
super(...arguments);
|
|
111
112
|
/**
|
|
@@ -164,14 +165,12 @@ let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LitE
|
|
|
164
165
|
/**
|
|
165
166
|
* Prefix combined with the guest's email to build each guest chip's
|
|
166
167
|
* delete button accessible name, forwarded as `eun-chip`'s own
|
|
167
|
-
* `
|
|
168
|
+
* `removeLabel`.
|
|
168
169
|
* @default Remove
|
|
169
170
|
*/
|
|
170
171
|
this.removeGuestLabel = "Remove";
|
|
171
172
|
/** @default Save */
|
|
172
173
|
this.saveLabel = "Save";
|
|
173
|
-
/** @default Cancel */
|
|
174
|
-
this.cancelLabel = "Cancel";
|
|
175
174
|
/** @default Delete */
|
|
176
175
|
this.deleteLabel = "Delete";
|
|
177
176
|
/** @internal */
|
|
@@ -649,7 +648,7 @@ let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LitE
|
|
|
649
648
|
@keydown=${this.handleGuestInputKeydown}
|
|
650
649
|
></eun-input>
|
|
651
650
|
<eun-button
|
|
652
|
-
appearance="
|
|
651
|
+
appearance="soft"
|
|
653
652
|
id="guest-add-button"
|
|
654
653
|
color="secondary"
|
|
655
654
|
aria-label=${this.addGuestLabel}
|
|
@@ -676,7 +675,7 @@ let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LitE
|
|
|
676
675
|
appearance="outline"
|
|
677
676
|
icon=${GUEST_STATUS_ICON[guest.status]}
|
|
678
677
|
.severity=${GUEST_STATUS_SEMANTIC_STATE[guest.status]}
|
|
679
|
-
.
|
|
678
|
+
.removeLabel=${this.removeGuestLabel}
|
|
680
679
|
@eunclose=${() => this.handleRemoveGuest(guest.email)}
|
|
681
680
|
>
|
|
682
681
|
${guest.email}
|
|
@@ -748,7 +747,7 @@ let EunomiaSchedulerEventEditor = class EunomiaSchedulerEventEditor extends LitE
|
|
|
748
747
|
: nothing}
|
|
749
748
|
<span class="spacer"></span>
|
|
750
749
|
<eun-button appearance="ghost" @click=${this.handleCancelClick}>
|
|
751
|
-
${this.cancelLabel}
|
|
750
|
+
${this.cancelLabel ?? this.dictionary.common.cancel}
|
|
752
751
|
</eun-button>
|
|
753
752
|
<eun-button color="primary" @click=${this.handleSaveClick}>
|
|
754
753
|
${this.saveLabel}
|
|
@@ -1078,7 +1078,7 @@ let EunomiaTable = class EunomiaTable extends LocalizableMixin(LoadMoreSentinelM
|
|
|
1078
1078
|
}
|
|
1079
1079
|
return html `<eun-button
|
|
1080
1080
|
size="xs"
|
|
1081
|
-
appearance=${action.color ? "
|
|
1081
|
+
appearance=${action.color ? "soft" : "ghost"}
|
|
1082
1082
|
color=${ifDefined(action.color)}
|
|
1083
1083
|
aria-label=${action.label}
|
|
1084
1084
|
?disabled=${action.disabled?.(row) ?? false}
|
|
@@ -102,7 +102,7 @@ let EunomiaTableActionBar = class EunomiaTableActionBar extends LocalizableMixin
|
|
|
102
102
|
label=${action.label}
|
|
103
103
|
icon=${ifDefined(action.icon)}
|
|
104
104
|
color=${ifDefined(isCritical ? "critical" : undefined)}
|
|
105
|
-
appearance=${isCritical ? "
|
|
105
|
+
appearance=${isCritical ? "soft" : "flat"}
|
|
106
106
|
.options=${action.dropdown}
|
|
107
107
|
?disabled=${action.disabled}
|
|
108
108
|
@eunselect=${(event) => this.handleActionSelect(action, event)}
|
|
@@ -122,7 +122,7 @@ let EunomiaTableActionBar = class EunomiaTableActionBar extends LocalizableMixin
|
|
|
122
122
|
<eun-button
|
|
123
123
|
color=${ifDefined(isCritical ? "critical" : undefined)}
|
|
124
124
|
label=${action.label}
|
|
125
|
-
appearance=${isCritical ? "
|
|
125
|
+
appearance=${isCritical ? "soft" : "flat"}
|
|
126
126
|
?disabled=${action.disabled}
|
|
127
127
|
@click=${() => this.handleActionClick(action)}
|
|
128
128
|
>
|
package/dist/i18n/en.d.ts
CHANGED
|
@@ -6,7 +6,15 @@
|
|
|
6
6
|
* silent runtime fallback.
|
|
7
7
|
*/
|
|
8
8
|
export declare const en: {
|
|
9
|
+
common: {
|
|
10
|
+
close: string;
|
|
11
|
+
cancel: string;
|
|
12
|
+
confirm: string;
|
|
13
|
+
noValue: string;
|
|
14
|
+
save: string;
|
|
15
|
+
};
|
|
9
16
|
datePicker: {
|
|
17
|
+
openCalendar: string;
|
|
10
18
|
previousMonth: string;
|
|
11
19
|
chooseMonthYear: string;
|
|
12
20
|
nextMonth: string;
|
|
@@ -19,6 +27,11 @@ export declare const en: {
|
|
|
19
27
|
amPm: string;
|
|
20
28
|
hour: string;
|
|
21
29
|
minute: string;
|
|
30
|
+
day: string;
|
|
31
|
+
month: string;
|
|
32
|
+
year: string;
|
|
33
|
+
startDate: string;
|
|
34
|
+
endDate: string;
|
|
22
35
|
heading: {
|
|
23
36
|
day: {
|
|
24
37
|
single: string;
|
|
@@ -49,6 +62,7 @@ export declare const en: {
|
|
|
49
62
|
};
|
|
50
63
|
};
|
|
51
64
|
timePicker: {
|
|
65
|
+
openClock: string;
|
|
52
66
|
amPm: string;
|
|
53
67
|
hour: string;
|
|
54
68
|
minute: string;
|
|
@@ -58,6 +72,8 @@ export declare const en: {
|
|
|
58
72
|
mustBeAtOrBefore: (time: string) => string;
|
|
59
73
|
};
|
|
60
74
|
scheduler: {
|
|
75
|
+
previous: string;
|
|
76
|
+
next: string;
|
|
61
77
|
calendarView: string;
|
|
62
78
|
};
|
|
63
79
|
carousel: {
|
|
@@ -82,6 +98,11 @@ export declare const en: {
|
|
|
82
98
|
chip: {
|
|
83
99
|
remove: string;
|
|
84
100
|
};
|
|
101
|
+
passwordStrength: {
|
|
102
|
+
label: string;
|
|
103
|
+
levels: string[];
|
|
104
|
+
caption: (label: string) => string;
|
|
105
|
+
};
|
|
85
106
|
infiniteList: {
|
|
86
107
|
loadingMore: string;
|
|
87
108
|
itemsLoaded: (count: number) => string;
|
|
@@ -102,6 +123,53 @@ export declare const en: {
|
|
|
102
123
|
link: {
|
|
103
124
|
opensInNewTab: string;
|
|
104
125
|
};
|
|
126
|
+
input: {
|
|
127
|
+
clear: string;
|
|
128
|
+
showPassword: string;
|
|
129
|
+
hidePassword: string;
|
|
130
|
+
};
|
|
131
|
+
search: {
|
|
132
|
+
panel: string;
|
|
133
|
+
};
|
|
134
|
+
counter: {
|
|
135
|
+
increment: string;
|
|
136
|
+
decrement: string;
|
|
137
|
+
};
|
|
138
|
+
inputFile: {
|
|
139
|
+
remove: string;
|
|
140
|
+
select: string;
|
|
141
|
+
open: string;
|
|
142
|
+
};
|
|
143
|
+
inputPhone: {
|
|
144
|
+
selectCountry: string;
|
|
145
|
+
};
|
|
146
|
+
colorPicker: {
|
|
147
|
+
noColor: string;
|
|
148
|
+
};
|
|
149
|
+
pagination: {
|
|
150
|
+
previous: string;
|
|
151
|
+
next: string;
|
|
152
|
+
first: string;
|
|
153
|
+
last: string;
|
|
154
|
+
page: string;
|
|
155
|
+
};
|
|
156
|
+
sidebar: {
|
|
157
|
+
expand: string;
|
|
158
|
+
collapse: string;
|
|
159
|
+
resize: string;
|
|
160
|
+
};
|
|
161
|
+
toolbar: {
|
|
162
|
+
menuOpen: string;
|
|
163
|
+
menuClose: string;
|
|
164
|
+
menu: string;
|
|
165
|
+
};
|
|
166
|
+
rating: {
|
|
167
|
+
label: string;
|
|
168
|
+
valueText: (value: string, max: string) => string;
|
|
169
|
+
summary: (label: string, valueText: string) => string;
|
|
170
|
+
noValue: string;
|
|
171
|
+
clear: string;
|
|
172
|
+
};
|
|
105
173
|
validation: {
|
|
106
174
|
valueMissing: string;
|
|
107
175
|
tooShort: (min: number, length: number) => string;
|