@eunomia/elements 1.0.0-beta.6 → 1.0.0-beta.7
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-JYIIWN2P.js → chunk-36KLGY6U.js} +8 -8
- package/dist/cdn/components/chunks/chunk-3BMACIDO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-KDN4O5W2.js → chunk-3PNGQEG4.js} +3 -3
- 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-AK2DIJX7.js +1 -0
- package/dist/cdn/components/chunks/chunk-B5XMGWM7.js +10 -0
- package/dist/cdn/components/chunks/chunk-BVASCT2V.js +109 -0
- package/dist/cdn/components/chunks/{chunk-VYFR364B.js → chunk-DGI7TKCU.js} +14 -9
- 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-MOMYII3P.js → chunk-LVKMAHMU.js} +10 -0
- package/dist/cdn/components/chunks/{chunk-XDPRWUKN.js → chunk-MQQJ6DID.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-SZYEBMG6.js → chunk-PXF554MD.js} +1 -1
- package/dist/cdn/components/chunks/chunk-QL5GSW2A.js +1 -0
- package/dist/cdn/components/chunks/{chunk-7KKWYPHY.js → chunk-QXQ25SQS.js} +21 -19
- package/dist/cdn/components/chunks/{chunk-L2ADCEN7.js → chunk-SVGWCKWT.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-WW4BTWMH.js +1 -0
- package/dist/cdn/components/chunks/{chunk-2Y2EU2CI.js → chunk-Z3OFIE7S.js} +1 -1
- package/dist/cdn/components/eun-alert.js +13 -6
- package/dist/cdn/components/eun-animate.js +3 -3
- 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 +21 -18
- 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 +3 -3
- package/dist/cdn/components/eun-color-picker.js +60 -68
- package/dist/cdn/components/eun-counter.js +10 -10
- package/dist/cdn/components/eun-date-picker.js +47 -46
- 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 +5 -5
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- 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 +10 -9
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-link.js +2 -2
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +13 -13
- 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 +10 -10
- 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 +19 -21
- package/dist/cdn/components/eun-select.js +27 -27
- package/dist/cdn/components/eun-sidebar.js +10 -8
- 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 +25 -25
- 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.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table.js +1 -1
- package/dist/cdn/components/eun-tag.js +3 -3
- package/dist/cdn/components/eun-textarea.js +39 -34
- package/dist/cdn/components/eun-time-picker.js +15 -14
- package/dist/cdn/components/eun-toast.js +19 -10
- package/dist/cdn/components/eun-toggle-group.js +6 -4
- package/dist/cdn/components/eun-toggle-item.js +1 -1
- package/dist/cdn/components/eun-toggle.js +2 -2
- package/dist/cdn/components/eun-toolbar.js +5 -5
- package/dist/cdn/components/eun-tooltip.js +3 -3
- package/dist/components/action/button/button.d.ts +2 -1
- package/dist/components/action/button/button.js +3 -2
- package/dist/components/action/button/button.styles.js +10 -5
- package/dist/components/action/dropdown-button/dropdown-button.js +10 -5
- package/dist/components/action/toggle/toggle-group.js +1 -1
- package/dist/components/action/toggle/toggle-group.styles.js +4 -2
- 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 +5 -5
- package/dist/components/alert/drawer/drawer.js +8 -12
- package/dist/components/alert/drawer/drawer.styles.js +1 -1
- package/dist/components/alert/modal/modal.d.ts +10 -10
- package/dist/components/alert/modal/modal.js +13 -25
- package/dist/components/alert/toast/toast.d.ts +7 -5
- package/dist/components/alert/toast/toast.js +9 -13
- package/dist/components/alert/toast/toast.styles.js +15 -6
- 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 +8 -8
- 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 +24 -24
- 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.js +3 -3
- 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 +41 -28
- package/dist/components/form/color-picker/color-picker.js +66 -50
- package/dist/components/form/color-picker/color-picker.styles.js +1 -1
- package/dist/components/form/counter/counter.d.ts +22 -18
- package/dist/components/form/counter/counter.js +59 -61
- package/dist/components/form/date-picker/date-picker.d.ts +27 -6
- package/dist/components/form/date-picker/date-picker.js +75 -54
- package/dist/components/form/input/input.d.ts +38 -39
- package/dist/components/form/input/input.js +85 -109
- 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 +22 -5
- package/dist/components/form/input-phone/input-phone.js +41 -13
- 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 +8 -8
- package/dist/components/form/search/search.js +23 -41
- package/dist/components/form/select/select.d.ts +23 -10
- package/dist/components/form/select/select.js +59 -41
- package/dist/components/form/shared-styles/listbox.styles.js +10 -0
- 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 +89 -23
- package/dist/components/form/textarea/textarea.js +192 -43
- 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 +24 -8
- package/dist/components/form/time-picker/time-picker.js +59 -38
- package/dist/components/layout/animate/animate.js +1 -1
- 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 +31 -7
- package/dist/components/navigation/carousel/carousel.js +74 -35
- package/dist/components/navigation/carousel/carousel.styles.js +5 -2
- 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 +15 -13
- package/dist/components/navigation/sidebar/sidebar.js +21 -33
- package/dist/components/navigation/sidebar/sidebar.styles.js +5 -3
- package/dist/components/navigation/stepper/step.js +9 -8
- package/dist/components/navigation/stepper/stepper.js +12 -5
- 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 +13 -13
- package/dist/components/navigation/toolbar/toolbar.js +20 -34
- 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 +6 -7
- 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 +2 -0
- package/dist/index.js +1 -0
- package/dist/mixins/button.mixin.js +3 -2
- package/dist/mixins/check.mixin.js +11 -10
- 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/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/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/card-ssr.css +27 -15
- package/dist/ssr/carousel-ssr.css +238 -0
- package/dist/ssr/checkbox-ssr.css +67 -0
- package/dist/ssr/chip-ssr.css +242 -0
- package/dist/ssr/collapse-ssr.css +151 -0
- package/dist/ssr/field-ssr.css +163 -0
- package/dist/ssr/icon-ssr.css +266 -0
- package/dist/ssr/image-carousel-ssr.css +24 -0
- package/dist/ssr/links-ssr.css +7 -1
- package/dist/ssr/pagination-ssr.css +4 -0
- package/dist/ssr/rating-ssr.css +254 -0
- package/dist/ssr/sidebar-ssr.css +9 -1
- package/dist/ssr/skeleton-ssr.css +63 -0
- package/dist/ssr/tabs-ssr.css +129 -0
- package/dist/ssr/toggle-group-ssr.css +182 -0
- package/dist/ssr/toolbar-ssr.css +31 -2
- package/dist/utils/implicit-submission.utils.d.ts +18 -0
- package/dist/utils/implicit-submission.utils.js +79 -0
- package/dist/utils/listbox-options.utils.d.ts +11 -0
- package/dist/utils/listbox-options.utils.js +41 -3
- package/package.json +26 -7
- package/dist/cdn/components/chunks/chunk-4PI6RDUS.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-VOTRXBDS.js +0 -38
|
@@ -10,6 +10,7 @@ import { ChangeEvent } from "../../../events/change.event.js";
|
|
|
10
10
|
import { DialogSurfaceMixin } from "../../../mixins/dialog-surface.mixin.js";
|
|
11
11
|
import { EUNOMIA_BREAKPOINTS } from "../../../breakpoints.js";
|
|
12
12
|
import { toolbarStyles } from "./toolbar.styles.js";
|
|
13
|
+
import { LocalizableMixin } from "../../../mixins/localizable.mixin.js";
|
|
13
14
|
/**
|
|
14
15
|
* Tag name of the toolbar component.
|
|
15
16
|
*/
|
|
@@ -70,12 +71,12 @@ export const EunomiaToolbarTagName = "eun-toolbar";
|
|
|
70
71
|
* @attr {string} panel-size - A custom open size for the mobile panel
|
|
71
72
|
* @prop {boolean} [closeOnBackdrop=true] - Whether clicking outside the mobile panel closes it
|
|
72
73
|
* @attr {boolean} [close-on-backdrop=true] - Whether clicking outside the mobile panel closes it
|
|
73
|
-
* @prop {string} [
|
|
74
|
-
* @attr {string} [
|
|
75
|
-
* @prop {string} [
|
|
76
|
-
* @attr {string} [
|
|
77
|
-
* @prop {string} [
|
|
78
|
-
* @attr {string} [
|
|
74
|
+
* @prop {string} [menuOpenLabel] - The accessible label of the burger button while the panel is closed. Defaults to the localized string for the current locale (English: "Open menu")
|
|
75
|
+
* @attr {string} [menu-open-label] - The accessible label of the burger button while the panel is closed. Defaults to the localized string for the current locale (English: "Open menu")
|
|
76
|
+
* @prop {string} [menuCloseLabel] - The accessible label of the burger button while the panel is open. Defaults to the localized string for the current locale (English: "Close menu")
|
|
77
|
+
* @attr {string} [menu-close-label] - The accessible label of the burger button while the panel is open. Defaults to the localized string for the current locale (English: "Close menu")
|
|
78
|
+
* @prop {string} [menuLabel] - The accessible name of the mobile panel itself. Defaults to the localized string for the current locale (English: "Menu")
|
|
79
|
+
* @attr {string} [menu-label] - The accessible name of the mobile panel itself. Defaults to the localized string for the current locale (English: "Menu")
|
|
79
80
|
* @attr {string} [aria-label='Main navigation'] - The accessible name of the toolbar's navigation landmark
|
|
80
81
|
* @prop {boolean} [collapseOnScroll=false] - Enables the scroll-triggered collapse mode
|
|
81
82
|
* @attr {boolean} [collapse-on-scroll=false] - Enables the scroll-triggered collapse mode
|
|
@@ -138,7 +139,7 @@ export const EunomiaToolbarTagName = "eun-toolbar";
|
|
|
138
139
|
* @cssprop [--toolbar-skip-links-gap] - Sets the gap between skip links, with the divider centered in it
|
|
139
140
|
* @element eun-toolbar
|
|
140
141
|
*/
|
|
141
|
-
let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LitElement) {
|
|
142
|
+
let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LocalizableMixin(LitElement)) {
|
|
142
143
|
constructor() {
|
|
143
144
|
super(...arguments);
|
|
144
145
|
/**
|
|
@@ -167,21 +168,6 @@ let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LitElement)
|
|
|
167
168
|
* @default true
|
|
168
169
|
*/
|
|
169
170
|
this.closeOnBackdrop = true;
|
|
170
|
-
/**
|
|
171
|
-
* Accessible label of the burger button while the panel is closed.
|
|
172
|
-
* @default Open menu
|
|
173
|
-
*/
|
|
174
|
-
this.ariaLabelMenuOpen = "Open menu";
|
|
175
|
-
/**
|
|
176
|
-
* Accessible label of the burger button while the panel is open.
|
|
177
|
-
* @default Close menu
|
|
178
|
-
*/
|
|
179
|
-
this.ariaLabelMenuClose = "Close menu";
|
|
180
|
-
/**
|
|
181
|
-
* Accessible name of the mobile panel itself.
|
|
182
|
-
* @default Menu
|
|
183
|
-
*/
|
|
184
|
-
this.ariaLabelMenu = "Menu";
|
|
185
171
|
/**
|
|
186
172
|
* Enables the scroll-triggered collapse mode.
|
|
187
173
|
* @default false
|
|
@@ -821,8 +807,8 @@ let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LitElement)
|
|
|
821
807
|
size="s"
|
|
822
808
|
aria-expanded=${this.open}
|
|
823
809
|
aria-label=${this.open
|
|
824
|
-
? this.
|
|
825
|
-
: this.
|
|
810
|
+
? (this.menuCloseLabel ?? this.dictionary.toolbar.menuClose)
|
|
811
|
+
: (this.menuOpenLabel ?? this.dictionary.toolbar.menuOpen)}
|
|
826
812
|
@click=${() => this.toggle()}
|
|
827
813
|
>
|
|
828
814
|
<slot name=${slotName} @slotchange=${this.handleIconSlotChange}>
|
|
@@ -859,7 +845,7 @@ let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LitElement)
|
|
|
859
845
|
popover="manual"
|
|
860
846
|
role="dialog"
|
|
861
847
|
aria-modal="true"
|
|
862
|
-
aria-label=${this.
|
|
848
|
+
aria-label=${this.menuLabel ?? this.dictionary.toolbar.menu}
|
|
863
849
|
data-direction=${this.panelDirection}
|
|
864
850
|
tabindex="-1"
|
|
865
851
|
@toggle=${this.handlePanelToggle}
|
|
@@ -896,7 +882,7 @@ let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LitElement)
|
|
|
896
882
|
*/
|
|
897
883
|
EunomiaToolbar.styles = toolbarStyles;
|
|
898
884
|
__decorate([
|
|
899
|
-
property({ reflect: true })
|
|
885
|
+
property({ reflect: true, useDefault: true })
|
|
900
886
|
], EunomiaToolbar.prototype, "position", void 0);
|
|
901
887
|
__decorate([
|
|
902
888
|
property({ type: Number, attribute: "mobile-breakpoint" })
|
|
@@ -905,7 +891,7 @@ __decorate([
|
|
|
905
891
|
property({ type: Boolean, reflect: true })
|
|
906
892
|
], EunomiaToolbar.prototype, "open", void 0);
|
|
907
893
|
__decorate([
|
|
908
|
-
property({ reflect: true, attribute: "panel-direction" })
|
|
894
|
+
property({ reflect: true, attribute: "panel-direction", useDefault: true })
|
|
909
895
|
], EunomiaToolbar.prototype, "panelDirection", void 0);
|
|
910
896
|
__decorate([
|
|
911
897
|
property({ attribute: "panel-size" })
|
|
@@ -914,14 +900,14 @@ __decorate([
|
|
|
914
900
|
property({ type: Boolean, attribute: "close-on-backdrop" })
|
|
915
901
|
], EunomiaToolbar.prototype, "closeOnBackdrop", void 0);
|
|
916
902
|
__decorate([
|
|
917
|
-
property({ attribute: "
|
|
918
|
-
], EunomiaToolbar.prototype, "
|
|
903
|
+
property({ attribute: "menu-open-label" })
|
|
904
|
+
], EunomiaToolbar.prototype, "menuOpenLabel", void 0);
|
|
919
905
|
__decorate([
|
|
920
|
-
property({ attribute: "
|
|
921
|
-
], EunomiaToolbar.prototype, "
|
|
906
|
+
property({ attribute: "menu-close-label" })
|
|
907
|
+
], EunomiaToolbar.prototype, "menuCloseLabel", void 0);
|
|
922
908
|
__decorate([
|
|
923
|
-
property({ attribute: "
|
|
924
|
-
], EunomiaToolbar.prototype, "
|
|
909
|
+
property({ attribute: "menu-label" })
|
|
910
|
+
], EunomiaToolbar.prototype, "menuLabel", void 0);
|
|
925
911
|
__decorate([
|
|
926
912
|
property({ type: Boolean, attribute: "collapse-on-scroll" })
|
|
927
913
|
], EunomiaToolbar.prototype, "collapseOnScroll", void 0);
|
|
@@ -947,7 +933,7 @@ __decorate([
|
|
|
947
933
|
property({ attribute: "adaptive-theme-selector" })
|
|
948
934
|
], EunomiaToolbar.prototype, "adaptiveThemeSelector", void 0);
|
|
949
935
|
__decorate([
|
|
950
|
-
property({ reflect: true })
|
|
936
|
+
property({ reflect: true, useDefault: true })
|
|
951
937
|
], EunomiaToolbar.prototype, "theme", void 0);
|
|
952
938
|
__decorate([
|
|
953
939
|
property({ attribute: "default-theme" })
|
|
@@ -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 */
|
|
@@ -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}
|
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;
|
package/dist/i18n/en.js
CHANGED
|
@@ -6,7 +6,15 @@
|
|
|
6
6
|
* silent runtime fallback.
|
|
7
7
|
*/
|
|
8
8
|
export const en = {
|
|
9
|
+
common: {
|
|
10
|
+
close: "Close",
|
|
11
|
+
cancel: "Cancel",
|
|
12
|
+
confirm: "Confirm",
|
|
13
|
+
noValue: "No value set",
|
|
14
|
+
save: "Save",
|
|
15
|
+
},
|
|
9
16
|
datePicker: {
|
|
17
|
+
openCalendar: "Open calendar",
|
|
10
18
|
previousMonth: "Previous month",
|
|
11
19
|
chooseMonthYear: "Choose month and year",
|
|
12
20
|
nextMonth: "Next month",
|
|
@@ -19,6 +27,11 @@ export const en = {
|
|
|
19
27
|
amPm: "AM/PM",
|
|
20
28
|
hour: "Hour",
|
|
21
29
|
minute: "Minute",
|
|
30
|
+
day: "Day",
|
|
31
|
+
month: "Month",
|
|
32
|
+
year: "Year",
|
|
33
|
+
startDate: "Start date",
|
|
34
|
+
endDate: "End date",
|
|
22
35
|
heading: {
|
|
23
36
|
day: { single: "Select a date", range: "Select a date range" },
|
|
24
37
|
month: { single: "Select a month", range: "Select a month range" },
|
|
@@ -31,6 +44,7 @@ export const en = {
|
|
|
31
44
|
},
|
|
32
45
|
},
|
|
33
46
|
timePicker: {
|
|
47
|
+
openClock: "Open clock",
|
|
34
48
|
amPm: "AM/PM",
|
|
35
49
|
hour: "Hour",
|
|
36
50
|
minute: "Minute",
|
|
@@ -40,6 +54,8 @@ export const en = {
|
|
|
40
54
|
mustBeAtOrBefore: (time) => `Time must be at or before ${time}`,
|
|
41
55
|
},
|
|
42
56
|
scheduler: {
|
|
57
|
+
previous: "Previous period",
|
|
58
|
+
next: "Next period",
|
|
43
59
|
calendarView: "Calendar view",
|
|
44
60
|
},
|
|
45
61
|
carousel: {
|
|
@@ -64,6 +80,11 @@ export const en = {
|
|
|
64
80
|
chip: {
|
|
65
81
|
remove: "Remove",
|
|
66
82
|
},
|
|
83
|
+
passwordStrength: {
|
|
84
|
+
label: "Password strength",
|
|
85
|
+
levels: ["Weak", "Fair", "Good", "Strong"],
|
|
86
|
+
caption: (label) => `${label}:`,
|
|
87
|
+
},
|
|
67
88
|
infiniteList: {
|
|
68
89
|
loadingMore: "Loading more items…",
|
|
69
90
|
itemsLoaded: (count) => `${count} more item${count > 1 ? "s" : ""} loaded`,
|
|
@@ -84,6 +105,53 @@ export const en = {
|
|
|
84
105
|
link: {
|
|
85
106
|
opensInNewTab: "opens in a new tab",
|
|
86
107
|
},
|
|
108
|
+
input: {
|
|
109
|
+
clear: "Clear field",
|
|
110
|
+
showPassword: "Show password",
|
|
111
|
+
hidePassword: "Hide password",
|
|
112
|
+
},
|
|
113
|
+
search: {
|
|
114
|
+
panel: "Search",
|
|
115
|
+
},
|
|
116
|
+
counter: {
|
|
117
|
+
increment: "Increase value",
|
|
118
|
+
decrement: "Decrease value",
|
|
119
|
+
},
|
|
120
|
+
inputFile: {
|
|
121
|
+
remove: "Remove file",
|
|
122
|
+
select: "Select file",
|
|
123
|
+
open: "Open in a new tab",
|
|
124
|
+
},
|
|
125
|
+
inputPhone: {
|
|
126
|
+
selectCountry: "Select a country",
|
|
127
|
+
},
|
|
128
|
+
colorPicker: {
|
|
129
|
+
noColor: "No color selected",
|
|
130
|
+
},
|
|
131
|
+
pagination: {
|
|
132
|
+
previous: "Previous page",
|
|
133
|
+
next: "Next page",
|
|
134
|
+
first: "First page",
|
|
135
|
+
last: "Last page",
|
|
136
|
+
page: "Page",
|
|
137
|
+
},
|
|
138
|
+
sidebar: {
|
|
139
|
+
expand: "Expand sidebar",
|
|
140
|
+
collapse: "Collapse sidebar",
|
|
141
|
+
resize: "Resize sidebar",
|
|
142
|
+
},
|
|
143
|
+
toolbar: {
|
|
144
|
+
menuOpen: "Open menu",
|
|
145
|
+
menuClose: "Close menu",
|
|
146
|
+
menu: "Menu",
|
|
147
|
+
},
|
|
148
|
+
rating: {
|
|
149
|
+
label: "Rating",
|
|
150
|
+
valueText: (value, max) => `${value} out of ${max}`,
|
|
151
|
+
summary: (label, valueText) => `${label}: ${valueText}`,
|
|
152
|
+
noValue: "Not rated",
|
|
153
|
+
clear: "Clear rating",
|
|
154
|
+
},
|
|
87
155
|
validation: {
|
|
88
156
|
valueMissing: "This field is required",
|
|
89
157
|
tooShort: (min, length) => `Please lengthen this text to ${min} characters or more (you are currently using ${length} characters).`,
|