@eunomia/elements 1.0.0-beta.4 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/components/chunks/{chunk-SIHZFOTK.js → chunk-2XASWWKR.js} +1 -1
- package/dist/cdn/components/chunks/chunk-32DTNR52.js +1 -0
- package/dist/cdn/components/chunks/chunk-3MTUVMM5.js +1 -0
- package/dist/cdn/components/chunks/chunk-5GKM5DIB.js +1 -0
- package/dist/cdn/components/chunks/{chunk-GSJEJLFA.js → chunk-6ETDXUH2.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-EJIX2D4Z.js → chunk-AIS3UICU.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-BMQOI7HX.js → chunk-DKOPI7QA.js} +99 -55
- package/dist/cdn/components/chunks/{chunk-NHFWATVN.js → chunk-EAKYD33D.js} +3 -3
- package/dist/cdn/components/chunks/{chunk-EOWBYZV7.js → chunk-IDKZKLJR.js} +5 -5
- package/dist/cdn/components/chunks/chunk-JRGM3W7I.js +53 -0
- package/dist/cdn/components/chunks/{chunk-UAGCQF23.js → chunk-L65WUTXM.js} +5 -5
- package/dist/cdn/components/chunks/chunk-LFCXUVDO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-YGUJJ25C.js → chunk-MPQP4R54.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-RJCJXB7Y.js → chunk-NBIENHLV.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-4MXL6PZC.js → chunk-OW7XKDCH.js} +13 -13
- package/dist/cdn/components/chunks/{chunk-IJ5WFMK4.js → chunk-SD2WHGPF.js} +7 -6
- package/dist/cdn/components/chunks/chunk-SJWRE6PW.js +1 -0
- package/dist/cdn/components/eun-animate.js +5 -3
- package/dist/cdn/components/eun-badge.js +7 -7
- package/dist/cdn/components/eun-breadcrumb-item.js +1 -1
- package/dist/cdn/components/eun-breadcrumb.js +1 -1
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +13 -13
- package/dist/cdn/components/eun-card.js +42 -3
- package/dist/cdn/components/eun-carousel.js +2 -2
- package/dist/cdn/components/eun-check-card.js +1 -1
- package/dist/cdn/components/eun-checkbox-list.js +1 -1
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +1 -1
- package/dist/cdn/components/eun-collapse.js +39 -20
- package/dist/cdn/components/eun-color-picker.js +3 -3
- package/dist/cdn/components/eun-counter.js +8 -8
- package/dist/cdn/components/eun-date-picker.js +19 -19
- package/dist/cdn/components/eun-drawer.js +9 -9
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-fab.js +6 -6
- 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 +3 -3
- package/dist/cdn/components/eun-input-file.js +1 -1
- package/dist/cdn/components/eun-input-phone.js +18 -18
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-link.js +116 -18
- package/dist/cdn/components/eun-modal.js +15 -15
- package/dist/cdn/components/eun-radio-card.js +1 -1
- package/dist/cdn/components/eun-radio-list.js +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +7 -7
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +18 -18
- package/dist/cdn/components/eun-search.js +15 -15
- package/dist/cdn/components/eun-select.js +2 -2
- package/dist/cdn/components/eun-slider.js +1 -1
- package/dist/cdn/components/eun-sliding-card.js +1 -1
- package/dist/cdn/components/eun-switch.js +1 -1
- package/dist/cdn/components/eun-tab-group.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 +1 -1
- package/dist/cdn/components/eun-textarea.js +2 -2
- package/dist/cdn/components/eun-time-picker.js +11 -11
- package/dist/cdn/components/eun-toggle-group.js +30 -22
- package/dist/cdn/components/eun-toggle-item.js +10 -8
- package/dist/cdn/components/eun-toggle.js +1 -1
- package/dist/cdn/components/eun-toolbar.js +1 -1
- package/dist/components/action/button/button.d.ts +44 -17
- package/dist/components/action/button/button.js +100 -22
- package/dist/components/action/button/button.styles.js +77 -39
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +8 -8
- package/dist/components/action/dropdown-button/dropdown-button.js +7 -7
- package/dist/components/action/fab/fab.d.ts +7 -6
- package/dist/components/action/fab/fab.js +11 -8
- package/dist/components/action/fab/fab.styles.js +4 -4
- package/dist/components/action/link/link.d.ts +65 -6
- package/dist/components/action/link/link.js +176 -20
- package/dist/components/action/link/link.styles.js +86 -1
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +3 -3
- package/dist/components/action/shared-styles/button-palette.styles.js +14 -14
- package/dist/components/action/toggle/toggle-group.d.ts +15 -5
- package/dist/components/action/toggle/toggle-group.js +42 -17
- package/dist/components/action/toggle/toggle-group.styles.d.ts +2 -1
- package/dist/components/action/toggle/toggle-group.styles.js +15 -7
- package/dist/components/action/toggle/toggle-item.d.ts +4 -4
- package/dist/components/action/toggle/toggle-item.js +2 -2
- package/dist/components/action/toggle/toggle-item.styles.js +8 -6
- package/dist/components/alert/drawer/drawer.js +1 -1
- package/dist/components/alert/modal/modal.d.ts +8 -8
- package/dist/components/alert/modal/modal.js +11 -11
- package/dist/components/content/badge/badge.d.ts +6 -6
- package/dist/components/content/badge/badge.js +4 -4
- package/dist/components/content/badge/badge.styles.js +4 -4
- package/dist/components/content/card/card.d.ts +32 -4
- package/dist/components/content/card/card.js +64 -4
- package/dist/components/content/card/card.styles.js +33 -1
- package/dist/components/content/card/image-card.d.ts +2 -1
- package/dist/components/content/card/image-card.js +1 -0
- package/dist/components/content/card/sliding-card.d.ts +2 -1
- package/dist/components/content/card/sliding-card.js +1 -0
- package/dist/components/content/collapse/collapse.d.ts +29 -11
- package/dist/components/content/collapse/collapse.js +53 -23
- package/dist/components/content/collapse/collapse.styles.js +13 -0
- package/dist/components/content/icon/icon.d.ts +12 -2
- package/dist/components/content/icon/icon.js +52 -22
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +4 -1
- package/dist/components/content/shared-styles/card-link.styles.js +1 -0
- package/dist/components/form/color-picker/color-picker.d.ts +3 -3
- package/dist/components/form/color-picker/color-picker.js +4 -4
- package/dist/components/form/counter/counter.d.ts +3 -3
- package/dist/components/form/counter/counter.js +3 -3
- package/dist/components/form/counter/counter.styles.js +5 -5
- package/dist/components/form/date-picker/date-picker.d.ts +3 -3
- package/dist/components/form/date-picker/date-picker.js +3 -3
- package/dist/components/form/date-picker/date-picker.styles.js +5 -5
- package/dist/components/form/input/input.d.ts +3 -3
- package/dist/components/form/input/input.js +4 -4
- package/dist/components/form/input-phone/input-phone.d.ts +3 -3
- package/dist/components/form/input-phone/input-phone.js +3 -3
- package/dist/components/form/input-phone/input-phone.styles.js +12 -12
- package/dist/components/form/search/search.styles.js +3 -3
- package/dist/components/form/select/select.d.ts +3 -3
- package/dist/components/form/select/select.js +3 -3
- package/dist/components/form/shared-styles/field.styles.js +5 -5
- package/dist/components/form/textarea/textarea.d.ts +3 -3
- package/dist/components/form/textarea/textarea.js +4 -4
- package/dist/components/form/time-picker/time-picker.d.ts +3 -3
- package/dist/components/form/time-picker/time-picker.js +3 -3
- package/dist/components/form/time-picker/time-picker.styles.js +5 -5
- package/dist/components/layout/animate/animate.d.ts +8 -0
- package/dist/components/layout/animate/animate.js +20 -8
- package/dist/features/scheduler/calendar/calendar.d.ts +6 -6
- package/dist/features/scheduler/calendar/calendar.js +9 -9
- package/dist/features/scheduler/scheduler/scheduler.d.ts +6 -6
- package/dist/features/scheduler/scheduler/scheduler.js +13 -13
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +10 -8
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +7 -7
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +6 -6
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +5 -5
- package/dist/features/scheduler/shared/scheduler-event-popover.js +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.d.ts +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.js +2 -2
- package/dist/features/table/table/table.types.d.ts +7 -3
- package/dist/features/table/table-action-bar/table-action-bar.js +3 -3
- package/dist/features/table/table-managed/table-managed.js +2 -2
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n/fr.js +3 -0
- package/dist/index.d.ts +3 -3
- package/dist/jsx.d.ts +1 -1
- package/dist/mixins/button.mixin.d.ts +10 -9
- package/dist/mixins/button.mixin.js +14 -6
- package/dist/mixins/card-link.mixin.d.ts +3 -2
- package/dist/mixins/card-link.mixin.js +12 -5
- package/dist/mixins/disabled.mixin.d.ts +3 -3
- package/dist/mixins/disabled.mixin.js +10 -5
- package/dist/mixins/field-appearance.mixin.d.ts +19 -0
- package/dist/mixins/{field-variant.mixin.js → field-appearance.mixin.js} +11 -11
- package/dist/ssr/animate-ssr.css +26 -72
- package/dist/ssr/links-ssr.css +35 -0
- package/dist/ssr/overlay-ssr.css +0 -41
- package/dist/ssr/rich-text.css +38 -0
- package/dist/ssr/sidebar-ssr.css +0 -38
- package/dist/ssr/toolbar-ssr.css +73 -39
- package/dist/types/variant.type.d.ts +26 -10
- package/dist/utils/navigation.utils.d.ts +14 -0
- package/dist/utils/navigation.utils.js +33 -0
- package/dist/utils/new-tab-anchor.controller.d.ts +44 -0
- package/dist/utils/new-tab-anchor.controller.js +102 -0
- package/dist/utils/severity-icon.utils.d.ts +1 -1
- package/dist/utils/severity-icon.utils.js +1 -1
- package/dist/utils/theme-generator.utils.d.ts +3 -1
- package/dist/utils/theme-generator.utils.js +3 -1
- package/package.json +8 -2
- package/dist/cdn/components/chunks/chunk-2JLDJFYD.js +0 -48
- package/dist/cdn/components/chunks/chunk-ATH2OAMU.js +0 -1
- package/dist/cdn/components/chunks/chunk-BKHD4S57.js +0 -1
- package/dist/cdn/components/chunks/chunk-T7WABJEJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-XSMCT4DF.js +0 -1
- package/dist/mixins/field-variant.mixin.d.ts +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as r,g as s,h as
|
|
1
|
+
import{a as r,g as s,h as t}from"./chunk-XH6NREVZ.js";var v=n=>{class e extends n{constructor(){super(...arguments);this.type="button";this.fixedColor=!1;this.size="m";this.rounded=!1;this.slide=!1;this.loading=!1}connectedCallback(){super.connectedCallback?.(),!(this.href||this.querySelector(":scope > a"))&&(this.hasAttribute("role")||this.setAttribute("role","button"),this.addEventListener("click",this.handleClick,!0),this.addEventListener("keydown",this.handleKeydown,!0))}disconnectedCallback(){this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback?.()}handleClick(o){if(this.disabled||this.loading){o.stopImmediatePropagation();return}if(this.hasAttribute("commandfor")){this.handleCommandClick?.();return}if(this.hasAttribute("popovertarget")){this.handlePopoverClick?.();return}this.handleFormBehavior()}handleKeydown(o){this.disabled||this.loading||!["Enter"," "].includes(o.key)||(o.preventDefault(),this.handleFormBehavior()||this.dispatchEvent(new Event("click")))}handleFormBehavior(){if(this.type!=="submit"&&this.type!=="reset")return!1;let o;if(this.form?o=this.getRootNode()?.getElementById(this.form):o=this.closest("form"),!o||!(o instanceof HTMLFormElement))throw new Error("The element link to the button does not exist or is invalid");return this.type==="reset"&&o.reset(),this.type==="submit"&&o.requestSubmit(),!0}}return r([t({reflect:!0,converter:{toAttribute:o=>o==="button"?null:o}})],e.prototype,"type",2),r([t({reflect:!0})],e.prototype,"color",2),r([t({type:Boolean,reflect:!0,attribute:"fixed-color"})],e.prototype,"fixedColor",2),r([t({reflect:!0})],e.prototype,"size",2),r([t({type:Boolean,reflect:!0})],e.prototype,"rounded",2),r([t({type:Boolean,reflect:!0})],e.prototype,"slide",2),r([t()],e.prototype,"form",2),r([t()],e.prototype,"href",2),r([t()],e.prototype,"target",2),r([t()],e.prototype,"download",2),r([t({type:Boolean,reflect:!0})],e.prototype,"loading",2),e};var c=class n extends Event{static{this.eventName="command"}constructor(e,a){super(n.eventName,{bubbles:!1,composed:!0,cancelable:!0}),this.command=e,this.source=a}};function d(n,e){let a=globalThis.CommandEvent;return typeof a=="function"?new a(c.eventName,{command:n,source:e,cancelable:!0,composed:!0}):new c(n,e)}var g=n=>{class e extends n{handleCommandClick(){let i=this.getAttribute("commandfor");if(!i)return;let l=this.getRootNode().getElementById(i);if(!l)throw new Error(`The given id [${i}] do not correspond to any command target`);l.dispatchEvent(d(this.getAttribute("command")??"",this))}}return r([t({reflect:!0})],e.prototype,"command",2),r([t({attribute:"commandfor"})],e.prototype,"commandFor",2),e};var x=s`
|
|
2
2
|
:host {
|
|
3
3
|
--_solid: var(--eun-color-primary-500, #3d6fff);
|
|
4
4
|
--_solid-hover: var(--eun-color-primary-700, #3662e0);
|
|
@@ -16,7 +16,7 @@ import{a as r,g as s,h as o}from"./chunk-XH6NREVZ.js";var u=n=>{class e extends
|
|
|
16
16
|
--_flatFg: var(--eun-text-secondary, #484e61);
|
|
17
17
|
--_ring: var(--eun-color-primary-700, #3662e0);
|
|
18
18
|
}
|
|
19
|
-
:host([
|
|
19
|
+
:host([color="secondary"]) {
|
|
20
20
|
--_solid: var(--eun-color-secondary-500, #e5a030);
|
|
21
21
|
--_solid-hover: var(--eun-color-secondary-700, #ca8d2a);
|
|
22
22
|
--_solid-active: var(--eun-color-secondary-800, #a97624);
|
|
@@ -27,7 +27,7 @@ import{a as r,g as s,h as o}from"./chunk-XH6NREVZ.js";var u=n=>{class e extends
|
|
|
27
27
|
--_tint-active: var(--eun-color-secondary-transparent-active, #e5a03066);
|
|
28
28
|
--_ring: var(--eun-color-secondary-700, #ca8d2a);
|
|
29
29
|
}
|
|
30
|
-
:host([
|
|
30
|
+
:host([color="critical"]) {
|
|
31
31
|
--_solid: var(--eun-color-critical-100, #aa0014);
|
|
32
32
|
--_solid-hover: var(--eun-color-critical-100, #aa0014);
|
|
33
33
|
--_solid-active: var(--eun-color-critical-100, #aa0014);
|
|
@@ -38,7 +38,7 @@ import{a as r,g as s,h as o}from"./chunk-XH6NREVZ.js";var u=n=>{class e extends
|
|
|
38
38
|
--_tint-active: var(--eun-color-critical-90, #e4adb4);
|
|
39
39
|
--_ring: var(--eun-color-critical-100, #aa0014);
|
|
40
40
|
}
|
|
41
|
-
:host([
|
|
41
|
+
:host([color="success"]) {
|
|
42
42
|
--_solid: var(--eun-color-success-100, #1a9948);
|
|
43
43
|
--_solid-hover: var(--eun-color-success-100, #1a9948);
|
|
44
44
|
--_solid-active: var(--eun-color-success-100, #1a9948);
|
|
@@ -49,7 +49,7 @@ import{a as r,g as s,h as o}from"./chunk-XH6NREVZ.js";var u=n=>{class e extends
|
|
|
49
49
|
--_tint-active: var(--eun-color-success-90, #b6dec4);
|
|
50
50
|
--_ring: var(--eun-color-success-100, #1a9948);
|
|
51
51
|
}
|
|
52
|
-
:host([
|
|
52
|
+
:host([color="warning"]) {
|
|
53
53
|
--_solid: var(--eun-color-warning-100, #c85207);
|
|
54
54
|
--_solid-hover: var(--eun-color-warning-100, #c85207);
|
|
55
55
|
--_solid-active: var(--eun-color-warning-100, #c85207);
|
|
@@ -60,7 +60,7 @@ import{a as r,g as s,h as o}from"./chunk-XH6NREVZ.js";var u=n=>{class e extends
|
|
|
60
60
|
--_tint-active: var(--eun-color-warning-90, #edc8b0);
|
|
61
61
|
--_ring: var(--eun-color-warning-100, #c85207);
|
|
62
62
|
}
|
|
63
|
-
:host([
|
|
63
|
+
:host([color="medium"]) {
|
|
64
64
|
--_solid: var(--eun-color-grey-700, #484e61);
|
|
65
65
|
--_solid-hover: var(--eun-color-grey-800, #071621);
|
|
66
66
|
--_solid-active: var(--eun-color-grey-900, #000000);
|
|
@@ -83,32 +83,32 @@ import{a as r,g as s,h as o}from"./chunk-XH6NREVZ.js";var u=n=>{class e extends
|
|
|
83
83
|
);
|
|
84
84
|
--_ring: var(--eun-color-grey-700, #484e61);
|
|
85
85
|
}
|
|
86
|
-
:host([
|
|
86
|
+
:host([color="light"]) {
|
|
87
87
|
--_solid: var(--eun-color-grey-0, #ffffff);
|
|
88
88
|
--_solid-hover: var(--eun-color-grey-200, #ecedf0);
|
|
89
89
|
--_solid-active: var(--eun-color-grey-300, #dee0e7);
|
|
90
90
|
--_onSolid: var(--eun-color-grey-900, #000000);
|
|
91
91
|
}
|
|
92
|
-
:host([
|
|
92
|
+
:host([color="light"][fixed-color]) {
|
|
93
93
|
--_solid: #ffffff;
|
|
94
94
|
--_solid-hover: #ecedf0;
|
|
95
95
|
--_solid-active: #dee0e7;
|
|
96
96
|
--_onSolid: #000000;
|
|
97
97
|
}
|
|
98
|
-
:host([
|
|
98
|
+
:host([color="dark"]) {
|
|
99
99
|
--_solid: var(--eun-color-grey-800, #071621);
|
|
100
100
|
--_solid-hover: var(--eun-color-grey-900, #000000);
|
|
101
101
|
--_solid-active: var(--eun-color-grey-900, #000000);
|
|
102
102
|
--_onSolid: var(--eun-color-grey-0, #ffffff);
|
|
103
103
|
}
|
|
104
|
-
:host([
|
|
104
|
+
:host([color="dark"][fixed-color]) {
|
|
105
105
|
--_solid: #071621;
|
|
106
106
|
--_solid-hover: #000000;
|
|
107
107
|
--_solid-active: #000000;
|
|
108
108
|
--_onSolid: #ffffff;
|
|
109
109
|
}
|
|
110
|
-
:host([
|
|
111
|
-
:host([
|
|
110
|
+
:host([color="light"]),
|
|
111
|
+
:host([color="dark"]) {
|
|
112
112
|
--_accent: var(--_solid);
|
|
113
113
|
--_tint: var(--_solid);
|
|
114
114
|
--_tint-hover: var(--_solid-hover);
|
|
@@ -121,4 +121,4 @@ import{a as r,g as s,h as o}from"./chunk-XH6NREVZ.js";var u=n=>{class e extends
|
|
|
121
121
|
--_flatFg: var(--_solid);
|
|
122
122
|
--_ring: var(--_solid);
|
|
123
123
|
}
|
|
124
|
-
`;export{
|
|
124
|
+
`;export{v as a,x as b,g as c};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import{a as t}from"./chunk-5EVP7YNE.js";import{a as l}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-SJWRE6PW.js";import{a as t}from"./chunk-5EVP7YNE.js";import{a as l}from"./chunk-5GKM5DIB.js";import{a as r,g as s,h as i,n as a,p as o}from"./chunk-XH6NREVZ.js";var w=p=>{class n extends d(p){get isExternal(){return this.target==="_blank"}get linkAriaLabel(){let e=this.ariaLabel??void 0;return this.isExternal&&e?`${e} (${this.dictionary.link.opensInNewTab})`:e}handleCardLinkClick(e){this.download||l(this,e,this.href,this.target)}renderNewTabHint(){if(!(this.href&&this.isExternal)||this.ariaLabel)return o;let e=this.dictionary.link.opensInNewTab;return a`<span class="sr-only"> (${e})</span>`}renderExternalLinkBadge(e=!1){return!(this.href&&this.isExternal)&&!e?o:a`
|
|
2
2
|
<span id="external-link-badge" aria-hidden="true">
|
|
3
3
|
<eun-icon name="arrow_forward" shape="round" size="12"></eun-icon>
|
|
4
4
|
</span>
|
|
5
|
-
|
|
5
|
+
`}renderCardLink(e,c,h){return a`
|
|
6
6
|
<a
|
|
7
7
|
id=${e}
|
|
8
8
|
part=${e}
|
|
9
|
-
class=${t(
|
|
9
|
+
class=${t(h)}
|
|
10
10
|
href=${t(this.href)}
|
|
11
11
|
target=${t(this.target)}
|
|
12
12
|
rel=${t(this.isExternal?"noopener noreferrer":void 0)}
|
|
13
13
|
download=${t(this.download)}
|
|
14
14
|
aria-label=${t(this.linkAriaLabel)}
|
|
15
15
|
@click=${this.handleCardLinkClick}
|
|
16
|
-
>${
|
|
16
|
+
>${c}${this.renderNewTabHint()}</a
|
|
17
17
|
>
|
|
18
|
-
`}}return
|
|
18
|
+
`}}return r([i({reflect:!0})],n.prototype,"href",2),r([i()],n.prototype,"target",2),r([i()],n.prototype,"download",2),n};var g=s`
|
|
19
19
|
:host([href]) {
|
|
20
20
|
cursor: pointer;
|
|
21
21
|
}
|
|
@@ -34,6 +34,7 @@ import{a as t}from"./chunk-5EVP7YNE.js";import{a as l}from"./chunk-BKHD4S57.js";
|
|
|
34
34
|
display: inline-flex;
|
|
35
35
|
align-items: center;
|
|
36
36
|
justify-content: center;
|
|
37
|
+
pointer-events: none;
|
|
37
38
|
width: var(--card-link-badge-size, 18px);
|
|
38
39
|
height: var(--card-link-badge-size, 18px);
|
|
39
40
|
border-radius: 50%;
|
|
@@ -57,4 +58,4 @@ import{a as t}from"./chunk-5EVP7YNE.js";import{a as l}from"./chunk-BKHD4S57.js";
|
|
|
57
58
|
white-space: nowrap;
|
|
58
59
|
border: 0;
|
|
59
60
|
}
|
|
60
|
-
`,
|
|
61
|
+
`,E=g;export{w as a,E as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,h as i}from"./chunk-XH6NREVZ.js";var o={datePicker:{previousMonth:"Previous month",chooseMonthYear:"Choose month and year",nextMonth:"Next month",previousYear:"Previous year",chooseYear:"Choose year",nextYear:"Next year",previousYears:"Previous years",nextYears:"Next years",time:"Time",amPm:"AM/PM",hour:"Hour",minute:"Minute",heading:{day:{single:"Select a date",range:"Select a date range"},month:{single:"Select a month",range:"Select a month range"},year:{single:"Select a year",range:"Select a year range"}},modalPreview:{day:{single:"Select date",range:"Select date range"},month:{single:"Select month",range:"Select month range"},year:{single:"Select year",range:"Select year range"}}},timePicker:{amPm:"AM/PM",hour:"Hour",minute:"Minute",time:"Time",selectATime:"Select a time",mustBeAtOrAfter:e=>`Time must be at or after ${e}`,mustBeAtOrBefore:e=>`Time must be at or before ${e}`},scheduler:{calendarView:"Calendar view"},carousel:{ofTotal:(e,n)=>`${e} of ${n}`,slideNavigation:"Slide navigation",goToSlide:(e,n)=>`Go to slide ${e} of ${n}`},imageCarousel:{selectImage:"Select image",showImage:(e,n)=>`Show image ${e} of ${n}`,imageNavigation:"Image navigation",goToImage:(e,n)=>`Go to image ${e} of ${n}`,allImages:"All images"},chip:{remove:"Remove"},link:{opensInNewTab:"opens in a new tab"}};var s={datePicker:{previousMonth:"Mois pr\xE9c\xE9dent",chooseMonthYear:"Choisir le mois et l'ann\xE9e",nextMonth:"Mois suivant",previousYear:"Ann\xE9e pr\xE9c\xE9dente",chooseYear:"Choisir l'ann\xE9e",nextYear:"Ann\xE9e suivante",previousYears:"Ann\xE9es pr\xE9c\xE9dentes",nextYears:"Ann\xE9es suivantes",time:"Heure",amPm:"AM/PM",hour:"Heure",minute:"Minute",heading:{day:{single:"S\xE9lectionner une date",range:"S\xE9lectionner une plage de dates"},month:{single:"S\xE9lectionner un mois",range:"S\xE9lectionner une plage de mois"},year:{single:"S\xE9lectionner une ann\xE9e",range:"S\xE9lectionner une plage d'ann\xE9es"}},modalPreview:{day:{single:"S\xE9lectionner une date",range:"S\xE9lectionner une plage de dates"},month:{single:"S\xE9lectionner un mois",range:"S\xE9lectionner une plage de mois"},year:{single:"S\xE9lectionner une ann\xE9e",range:"S\xE9lectionner une plage d'ann\xE9es"}}},timePicker:{amPm:"AM/PM",hour:"Heure",minute:"Minute",time:"Heure",selectATime:"S\xE9lectionner une heure",mustBeAtOrAfter:e=>`L'heure doit \xEAtre \xE0 ${e} ou apr\xE8s`,mustBeAtOrBefore:e=>`L'heure doit \xEAtre \xE0 ${e} ou avant`},scheduler:{calendarView:"Vue du calendrier"},carousel:{ofTotal:(e,n)=>`${e} sur ${n}`,slideNavigation:"Navigation des diapositives",goToSlide:(e,n)=>`Aller \xE0 la diapositive ${e} sur ${n}`},imageCarousel:{selectImage:"S\xE9lectionner une image",showImage:(e,n)=>`Afficher l'image ${e} sur ${n}`,imageNavigation:"Navigation des images",goToImage:(e,n)=>`Aller \xE0 l'image ${e} sur ${n}`,allImages:"Toutes les images"},chip:{remove:"Retirer"},link:{opensInNewTab:"ouvre dans un nouvel onglet"}};var m="en";function r(){return m}var t={en:o,fr:s};var P=e=>{class n extends e{get dictionary(){let l=this.locale??r();return t[l]??t.en}}return a([i({reflect:!0})],n.prototype,"locale",2),n};export{P as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o,f as
|
|
1
|
+
import{a as o,f as e,g as i,h as r,n,p as s,s as l}from"./chunks/chunk-XH6NREVZ.js";var p=i`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
--_distance: var(--animate-distance, 80px);
|
|
@@ -92,7 +92,7 @@ import{a as o,f as n,g as i,h as r,n as e,s}from"./chunks/chunk-XH6NREVZ.js";var
|
|
|
92
92
|
transition-duration: 0.01ms;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,f=i`
|
|
96
96
|
@media (max-width: 768px) {
|
|
97
97
|
:host([tablet-animation="none"]) {
|
|
98
98
|
opacity: 1;
|
|
@@ -268,4 +268,6 @@ import{a as o,f as n,g as i,h as r,n as e,s}from"./chunks/chunk-XH6NREVZ.js";var
|
|
|
268
268
|
transform: translateY(0);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
`,
|
|
271
|
+
`,m=[p,f];var d="eun-animate",c="in-view",t=class extends l{constructor(){super(...arguments);this.animation="fade";this.duration=600;this.delay=0;this.once=!0;this.threshold=.1;this.rootMargin="0px"}get hasAnyAnimation(){return this.animation!=="none"||this.tabletAnimation!==void 0&&this.tabletAnimation!=="none"||this.mobileAnimation!==void 0&&this.mobileAnimation!=="none"}connectedCallback(){super.connectedCallback?.(),this.setupObserver()}disconnectedCallback(){this.teardownObserver(),super.disconnectedCallback?.()}updated(a){super.updated(a),this.isConnected&&(a.has("animation")||a.has("tabletAnimation")||a.has("mobileAnimation")||a.has("threshold")||a.has("rootMargin")||a.has("once"))&&this.setupObserver()}setupObserver(){this.teardownObserver(),this.hasAnyAnimation&&(this.observer=new IntersectionObserver(([a])=>{a.isIntersecting?(this.toggleAttribute(c,!0),this.once&&this.observer?.unobserve(this)):this.once||this.toggleAttribute(c,!1)},{threshold:this.threshold,rootMargin:this.rootMargin}),this.observer.observe(this))}teardownObserver(){this.observer?.disconnect(),this.observer=void 0}renderTiming(){let a=[this.duration!==600?`--_duration: ${Number(this.duration)}ms;`:"",this.delay!==0?`--_delay: ${Number(this.delay)}ms;`:""].join("");return a?n`<style>
|
|
272
|
+
:host { ${a} }
|
|
273
|
+
</style>`:s}render(){return n`${this.renderTiming()}<slot></slot>`}};t.styles=m,o([r({reflect:!0})],t.prototype,"animation",2),o([r({type:Number})],t.prototype,"duration",2),o([r({type:Number})],t.prototype,"delay",2),o([r({type:Boolean})],t.prototype,"once",2),o([r({type:Number})],t.prototype,"threshold",2),o([r({attribute:"root-margin"})],t.prototype,"rootMargin",2),o([r({attribute:"tablet-animation",reflect:!0})],t.prototype,"tabletAnimation",2),o([r({attribute:"mobile-animation",reflect:!0})],t.prototype,"mobileAnimation",2),t=o([e(d)],t);export{t as EunomiaAnimate,d as EunomiaAnimateTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a,f as
|
|
1
|
+
import{a,f as o,g as i,h as t,n,s}from"./chunks/chunk-XH6NREVZ.js";var d=i`
|
|
2
2
|
:host {
|
|
3
3
|
--_background: var(
|
|
4
4
|
--badge-background,
|
|
@@ -47,7 +47,7 @@ import{a,f as i,g as o,h as t,n,s}from"./chunks/chunk-XH6NREVZ.js";var d=o`
|
|
|
47
47
|
--_fontSize: var(--badge-font-size, 12px);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
:host([
|
|
50
|
+
:host([color="primary"]) {
|
|
51
51
|
--_background: var(
|
|
52
52
|
--badge-background,
|
|
53
53
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -55,7 +55,7 @@ import{a,f as i,g as o,h as t,n,s}from"./chunks/chunk-XH6NREVZ.js";var d=o`
|
|
|
55
55
|
--_color: var(--badge-color, var(--eun-color-on-primary-500, #ffffff));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
:host([
|
|
58
|
+
:host([color="secondary"]) {
|
|
59
59
|
--_background: var(
|
|
60
60
|
--badge-background,
|
|
61
61
|
var(--eun-color-secondary-500, #e5a030)
|
|
@@ -63,7 +63,7 @@ import{a,f as i,g as o,h as t,n,s}from"./chunks/chunk-XH6NREVZ.js";var d=o`
|
|
|
63
63
|
--_color: var(--badge-color, var(--eun-color-on-secondary-500, #000000de));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
:host([
|
|
66
|
+
:host([color="success"]) {
|
|
67
67
|
--_background: var(
|
|
68
68
|
--badge-background,
|
|
69
69
|
var(--eun-color-success-100, #1a9948)
|
|
@@ -71,13 +71,13 @@ import{a,f as i,g as o,h as t,n,s}from"./chunks/chunk-XH6NREVZ.js";var d=o`
|
|
|
71
71
|
--_color: var(--badge-color, #fff);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
:host([
|
|
74
|
+
:host([color="warning"]) {
|
|
75
75
|
--_background: var(
|
|
76
76
|
--badge-background,
|
|
77
77
|
var(--eun-color-warning-100, #c85207)
|
|
78
78
|
);
|
|
79
79
|
--_color: var(--badge-color, #fff);
|
|
80
80
|
}
|
|
81
|
-
`,l=d;var c="eun-badge",e=class extends s{constructor(){super(...arguments);this.
|
|
81
|
+
`,l=d;var c="eun-badge",e=class extends s{constructor(){super(...arguments);this.color="critical";this.size="m"}connectedCallback(){super.connectedCallback?.(),this.syncAccessibility(),this.updateEmptyState()}updated(r){super.updated(r),r.has("label")&&this.syncAccessibility()}syncAccessibility(){this.label?(this.setAttribute("role","status"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}updateEmptyState(){this.toggleAttribute("empty",!this.textContent?.trim())}render(){return n`<span id="badge" part="badge"
|
|
82
82
|
><slot @slotchange=${this.updateEmptyState}></slot
|
|
83
|
-
></span>`}};e.styles=l,a([t({reflect:!0})],e.prototype,"
|
|
83
|
+
></span>`}};e.styles=l,a([t({reflect:!0})],e.prototype,"color",2),a([t({reflect:!0})],e.prototype,"size",2),a([t()],e.prototype,"label",2),e=a([o(c)],e);export{e as EunomiaBadge,c as EunomiaBadgeTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as b}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as u}from"./chunks/chunk-5EVP7YNE.js";import{a as m}from"./chunks/chunk-
|
|
1
|
+
import{a as b}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as u}from"./chunks/chunk-5EVP7YNE.js";import{a as m}from"./chunks/chunk-5GKM5DIB.js";import{a as r,f as i,g as s,h as l,l as c,n as a,p,s as d}from"./chunks/chunk-XH6NREVZ.js";var f=s`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as u}from"./chunks/chunk-
|
|
1
|
+
import{a as d}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as u}from"./chunks/chunk-5GKM5DIB.js";import{a as n,f as o,g as s,h as c,n as r,p,s as m}from"./chunks/chunk-XH6NREVZ.js";var b=s`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunks/chunk-
|
|
1
|
+
import{a,b}from"./chunks/chunk-DKOPI7QA.js";import"./chunks/chunk-OW7XKDCH.js";import"./chunks/chunk-32DTNR52.js";import"./chunks/chunk-UP4M7TER.js";import"./chunks/chunk-3MTUVMM5.js";import"./chunks/chunk-SJWRE6PW.js";import"./chunks/chunk-5EVP7YNE.js";import"./chunks/chunk-5GKM5DIB.js";import"./chunks/chunk-XH6NREVZ.js";export{b as EunomiaButton,a as EunomiaButtonTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as de}from"./chunks/chunk-
|
|
1
|
+
import{a as de}from"./chunks/chunk-AIS3UICU.js";import{a as ce}from"./chunks/chunk-IJJ67C66.js";import{a as ue}from"./chunks/chunk-BRSNQMCD.js";import{d as ee,e as te,f as re,g as ie,h as oe,i as ne,j as ae,k as se,l as le}from"./chunks/chunk-647ISUF4.js";import{a as k}from"./chunks/chunk-VRGRCYIO.js";import{a as B,c as R,d as Z,h as D,k as F,m as H,n as L,p as E,q as I,s as W}from"./chunks/chunk-MJ4RDZLL.js";import{a as b}from"./chunks/chunk-MMLIPCOY.js";import{a as f}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as h,f as j,g as M,h as g,i as T,j as Q,n as d,s as J}from"./chunks/chunk-XH6NREVZ.js";var Ee=M`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -527,7 +527,7 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
527
527
|
border-radius: 999px;
|
|
528
528
|
background: currentColor;
|
|
529
529
|
}
|
|
530
|
-
`,me=Me;var $e=34,ge=22;function
|
|
530
|
+
`,me=Me;var $e=34,ge=22;function V(i){let{days:a,events:e,dayStartHour:t,dayEndHour:r,slotDuration:o,locale:s}=i,n=60/o,p=r-t,w=Array.from({length:p},(l,v)=>t+v),y=new Date,S=ae(e,a),c=S.reduce((l,v)=>Math.max(l,v.row+1),0);return d`
|
|
531
531
|
<div id="hour-grid-scroll">
|
|
532
532
|
<div class="hour-grid-header">
|
|
533
533
|
<div class="hour-grid-gutter-spacer"></div>
|
|
@@ -558,7 +558,7 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
558
558
|
.start=${l.event.start}
|
|
559
559
|
.end=${l.event.end}
|
|
560
560
|
color=${l.event.color}
|
|
561
|
-
|
|
561
|
+
appearance=${i.eventAppearance}
|
|
562
562
|
hide-time
|
|
563
563
|
@click=${C=>i.onEventClick(l.event,C)}
|
|
564
564
|
></eun-scheduler-event>
|
|
@@ -581,7 +581,7 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
581
581
|
${a.map(l=>Ce(l,i,y,w.length))}
|
|
582
582
|
</div>
|
|
583
583
|
</div>
|
|
584
|
-
`}function Ce(i,a,e,t){let{events:r,dayStartHour:o,dayEndHour:s,slotDuration:n,slotHeight:p,
|
|
584
|
+
`}function Ce(i,a,e,t){let{events:r,dayStartHour:o,dayEndHour:s,slotDuration:n,slotHeight:p,eventAppearance:w,onSlotClick:y,onEventClick:S,draggingEventId:c,onEventDragStart:l}=a,v=o*60,x=s*60,$=ie(r,i),C=ne($),xe=m=>{if(m.target.closest("eun-scheduler-event"))return;let A=m.currentTarget.getBoundingClientRect(),z=(m.clientY-A.top)/p*n,G=Math.floor(z/n)*n+v,O=new Date(i);O.setHours(0,G,0,0),y(O)},_=e.getHours()*60+e.getMinutes(),De=H(i,e)&&_>=v&&_<=x;return d`
|
|
585
585
|
<div
|
|
586
586
|
class=${f({"hour-grid-day-column":!0,today:E(i)})}
|
|
587
587
|
data-date=${i.toISOString()}
|
|
@@ -595,10 +595,10 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
595
595
|
style=${b({top:`${(_-v)/n*p}px`})}
|
|
596
596
|
></div>
|
|
597
597
|
`:null}
|
|
598
|
-
${C.map(m=>{let P=Math.max(m.event.start.getHours()*60+m.event.start.getMinutes(),v),
|
|
598
|
+
${C.map(m=>{let P=Math.max(m.event.start.getHours()*60+m.event.start.getMinutes(),v),A=Math.min(m.event.end.getHours()*60+m.event.end.getMinutes(),x);if(A<=v||P>=x)return null;let q=(P-v)/n*p,z=Math.max((A-P)/n*p,p/2),G=100/m.columnCount;return d`
|
|
599
599
|
<div
|
|
600
600
|
class=${f({"hour-grid-event":!0,"dragging-source":m.event.id===c})}
|
|
601
|
-
style=${b({top:`${q}px`,height:`${z}px`,left:`${m.column*
|
|
601
|
+
style=${b({top:`${q}px`,height:`${z}px`,left:`${m.column*G}%`,width:`${G}%`})}
|
|
602
602
|
@pointerdown=${O=>l?.(m.event,O)}
|
|
603
603
|
>
|
|
604
604
|
<eun-scheduler-event
|
|
@@ -606,14 +606,14 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
606
606
|
.start=${m.event.start}
|
|
607
607
|
.end=${m.event.end}
|
|
608
608
|
color=${m.event.color}
|
|
609
|
-
|
|
609
|
+
appearance=${w}
|
|
610
610
|
?hide-time=${z<$e}
|
|
611
611
|
@click=${O=>S(m.event,O)}
|
|
612
612
|
></eun-scheduler-event>
|
|
613
613
|
</div>
|
|
614
614
|
`})}
|
|
615
615
|
</div>
|
|
616
|
-
`}function K(i,a){return
|
|
616
|
+
`}function K(i,a){return V({...a,days:[i]})}function ye(i,a,e,t){let r=R(i,a),o=Array.from({length:7},(s,n)=>D(r,n)).filter(s=>!e||!I(s));return V({...t,days:o})}var U=22;function be(i){let{displayedMonth:a,weekStartsOn:e,locale:t}=i,r=W(a,e),o=Oe(e,t);return d`
|
|
617
617
|
<div class="month-scroll">
|
|
618
618
|
<div class="month-grid-weekdays" role="row">
|
|
619
619
|
${o.map(s=>d`<span role="columnheader">${s}</span>`)}
|
|
@@ -637,7 +637,7 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
637
637
|
.start=${c.event.start}
|
|
638
638
|
.end=${c.event.end}
|
|
639
639
|
color=${c.event.color}
|
|
640
|
-
|
|
640
|
+
appearance=${re(c.event)?"default":"ghost"}
|
|
641
641
|
direction=${s?"row":"column"}
|
|
642
642
|
?hide-time=${!s||!!c.event.allDay}
|
|
643
643
|
@click=${l=>o(c.event,l)}
|
|
@@ -678,7 +678,7 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
678
678
|
</div>
|
|
679
679
|
${o.map(n=>Re(n,e,t,i))}
|
|
680
680
|
</div>
|
|
681
|
-
`}function Re(i,a,e,t){let r=
|
|
681
|
+
`}function Re(i,a,e,t){let r=W(i,a);return d`
|
|
682
682
|
<div class="year-month-section">
|
|
683
683
|
<button
|
|
684
684
|
type="button"
|
|
@@ -708,7 +708,7 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
708
708
|
<span class="year-day-number">${i.getDate()}</span>
|
|
709
709
|
${o?d`<span class="year-day-dot" aria-hidden="true"></span>`:null}
|
|
710
710
|
</button>
|
|
711
|
-
`}function Pe(i,a){let e=new Date(1970,0,4);return Array.from({length:7},(t,r)=>D(e,i+r)).map(t=>t.toLocaleDateString(a,{weekday:"short"}))}var N=class i extends Event{static{this.eventName="euneventclick"}constructor(a,e){super(i.eventName,{bubbles:!0,composed:!1}),this.event=a,this.anchor=e}};var Y=class i extends Event{static{this.eventName="eunslotclick"}constructor(a){super(i.eventName,{bubbles:!0,composed:!1}),this.start=a}};var Ve="eun-calendar",ze=40,Ae="(max-width: 767px)",Ge=4,X=24,u=class extends J{constructor(){super(...arguments);this.events=[];this.view="week";this.displayedDate=new Date;this.weekStartsOn=1;this.dayStartHour=0;this.dayEndHour=24;this.slotDuration=30;this.readonly=!1;this.noAnimation=!1;this.moreEventsLabel="+{count} more";this.eventVariant="default";this.focusedDate=B(new Date);this.selectedWeekDay=null;this.swipeDirection=null;this.isMobile=!1;this.swipeStart=null;this.draggingEventId=null;this.dragEvent=null;this.dragPointerId=null;this.dragActivated=!1;this.dragStartClientX=0;this.dragStartClientY=0;this.dragGrabOffsetX=0;this.dragGrabOffsetY=0;this.dragChipWidth=0;this.dragChipHeight=0;this.dragDurationMs=0;this.dragGhostEl=null;this.dragFinalStart=null;this.suppressNextClick=!1;this.monthMaxEventsPerCell=3;this.observedMonthCell=null;this.handleMonthDayKeydown=e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),this.moveMonthFocus(-1);break;case"ArrowRight":e.preventDefault(),this.moveMonthFocus(1);break;case"ArrowUp":e.preventDefault(),this.moveMonthFocus(-7);break;case"ArrowDown":e.preventDefault(),this.moveMonthFocus(7);break;case"Home":e.preventDefault(),this.jumpMonthFocus(R(this.focusedDate,this.weekStartsOn));break;case"End":e.preventDefault(),this.jumpMonthFocus(D(R(this.focusedDate,this.weekStartsOn),6));break;case"PageUp":e.preventDefault(),this.jumpMonthFocus(F(this.focusedDate,e.shiftKey?-12:-1));break;case"PageDown":e.preventDefault(),this.jumpMonthFocus(F(this.focusedDate,e.shiftKey?12:1));break;default:break}};this.handleMobileMediaChange=e=>{this.isMobile=e.matches};this.handleEventClick=(e,t)=>{if(this.suppressNextClick){this.suppressNextClick=!1;return}this.dispatchEvent(new N(e,t.currentTarget))};this.handleSlotClick=e=>{this.readonly||this.dispatchEvent(new Y(e))};this.handleEventDragStart=(e,t)=>{if(this.readonly||t.pointerType==="touch"||t.button!==0)return;let r=t.currentTarget.getBoundingClientRect();this.dragEvent=e,this.dragPointerId=t.pointerId,this.dragActivated=!1,this.dragStartClientX=t.clientX,this.dragStartClientY=t.clientY,this.dragGrabOffsetX=t.clientX-r.left,this.dragGrabOffsetY=t.clientY-r.top,this.dragChipWidth=r.width,this.dragChipHeight=r.height,this.dragDurationMs=e.end.getTime()-e.start.getTime(),document.addEventListener("pointermove",this.handleDragPointerMove),document.addEventListener("pointerup",this.handleDragPointerUp),document.addEventListener("pointercancel",this.handleDragPointerCancel),document.addEventListener("keydown",this.handleDragKeydown)};this.handleDragPointerMove=e=>{if(!this.dragEvent||e.pointerId!==this.dragPointerId)return;let t=e.clientX-this.dragStartClientX,r=e.clientY-this.dragStartClientY;if(!this.dragActivated){if(Math.hypot(t,r)<Ge)return;this.dragActivated=!0,this.draggingEventId=this.dragEvent.id,this.mountDragGhost(this.dragEvent)}e.preventDefault(),this.updateDragGhost(e.clientX,e.clientY)};this.handleDragPointerUp=e=>{if(!this.dragEvent||e.pointerId!==this.dragPointerId)return;let t=this.dragEvent,r=this.dragActivated,o=this.dragFinalStart;this.teardownDrag(),!(!r||!o)&&(this.suppressNextClick=!0,o.getTime()!==t.start.getTime()&&this.dispatchEvent(new ue({...t,start:o,end:new Date(o.getTime()+this.dragDurationMs)})))};this.handleDragPointerCancel=e=>{!this.dragEvent||e.pointerId!==this.dragPointerId||this.teardownDrag()};this.handleDragKeydown=e=>{e.key==="Escape"&&this.dragEvent&&(e.stopPropagation(),this.teardownDrag())};this.goToDayView=e=>{this.view="day",this.displayedDate=e};this.handleSwipeStart=e=>{e.pointerType==="touch"&&(this.swipeStart={x:e.clientX,y:e.clientY})};this.handleSwipeEnd=e=>{let t=this.swipeStart;if(this.swipeStart=null,e.pointerType!=="touch"||!t)return;let r=e.clientX-t.x,o=e.clientY-t.y;Math.abs(r)<ze||Math.abs(r)<Math.abs(o)||(r<0?(this.navigate(1),this.playSwipeAnimation("next")):(this.navigate(-1),this.playSwipeAnimation("previous")))};this.handleSwipeCancel=()=>{this.swipeStart=null}}willUpdate(e){e.has("displayedDate")&&!e.has("focusedDate")&&(this.focusedDate=B(this.displayedDate))}syncDisplayedMonth(){L(this.focusedDate,this.displayedDate)||(this.displayedDate=Z(this.focusedDate))}focusMonthCell(){this.shadowRoot?.querySelector('.month-cell-day[tabindex="0"]')?.focus()}moveMonthFocus(e){this.focusedDate=D(this.focusedDate,e),this.syncDisplayedMonth(),this.updateComplete.then(()=>this.focusMonthCell())}jumpMonthFocus(e){this.focusedDate=e,this.syncDisplayedMonth(),this.updateComplete.then(()=>this.focusMonthCell())}updated(e){if(super.updated(e),e.has("view")||e.has("displayedDate")||e.has("weekStartsOn")){let t=ee(this.view,this.displayedDate,this.weekStartsOn);this.dispatchEvent(new ce(this.view,t.start,t.end))}this.syncMonthCellObserver()}firstUpdated(e){super.firstUpdated(e),this.view==="year"?this.runOnceVisible(".year-scroll",()=>this.scrollYearViewToCurrentMonth()):this.view!=="month"&&this.runOnceVisible("#hour-grid-scroll",()=>this.scrollHourGridToNow())}runOnceVisible(e,t){let r=this.shadowRoot?.querySelector(e);if(r){if(r.clientHeight>0){t();return}this.initialScrollObserver?.disconnect(),this.initialScrollObserver=new ResizeObserver(()=>{r.clientHeight>0&&(this.initialScrollObserver?.disconnect(),this.initialScrollObserver=void 0,t())}),this.initialScrollObserver.observe(r)}}scrollHourGridToNow(){let e=this.shadowRoot?.querySelector("#hour-grid-scroll"),t=this.shadowRoot?.querySelector(".hour-grid-body"),r=this.shadowRoot?.querySelector(".hour-grid-day-column.today");if(!e||!t||!r)return;let o=new Date,s=this.dayStartHour*60,n=this.dayEndHour*60,w=(Math.min(Math.max(o.getHours()*60+o.getMinutes(),s),n)-s)/this.slotDuration*X,y=t.getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop;e.scrollTop=Math.max(0,y+w-e.clientHeight/3)}scrollYearViewToCurrentMonth(){let e=new Date;if(this.displayedDate.getFullYear()!==e.getFullYear())return;let t=this.shadowRoot?.querySelector(".year-scroll"),o=this.shadowRoot?.querySelectorAll(".year-month-section")?.[e.getMonth()];if(!t||!o)return;let s=this.shadowRoot?.querySelector(".year-weekday-header")?.getBoundingClientRect().height??0,n=o.getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop;t.scrollTop=Math.max(0,n-s)}syncMonthCellObserver(){if(this.view!=="month"){this.monthCellResizeObserver?.disconnect(),this.monthCellResizeObserver=void 0,this.observedMonthCell=null;return}let e=this.shadowRoot?.querySelector(".month-cell");!e||e===this.observedMonthCell||(this.monthCellResizeObserver?.disconnect(),this.observedMonthCell=e,this.monthCellResizeObserver=new ResizeObserver(()=>this.measureMonthCellCapacity()),this.monthCellResizeObserver.observe(e))}measureMonthCellCapacity(){let e=this.observedMonthCell,t=e?.closest(".month-week"),r=t?.querySelector(".month-cell-day");if(!e||!t||!r)return;let o=Number.parseFloat(getComputedStyle(t).rowGap)||0,s=e.clientHeight-r.offsetHeight-o,n=Math.max(1,Math.floor((s+o)/(U+o)));n!==this.monthMaxEventsPerCell&&(this.monthMaxEventsPerCell=n)}updateMobileMediaQuery(){this.mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaChange),this.mobileMediaQuery=window.matchMedia(Ae),this.mobileMediaQuery.addEventListener("change",this.handleMobileMediaChange),this.isMobile=this.mobileMediaQuery.matches}connectedCallback(){super.connectedCallback?.(),this.updateMobileMediaQuery()}disconnectedCallback(){this.mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaChange),this.monthCellResizeObserver?.disconnect(),this.initialScrollObserver?.disconnect(),this.teardownDrag(),super.disconnectedCallback?.()}navigate(e){this.displayedDate=te(this.view,this.displayedDate,e)}mountDragGhost(e){let t=document.createElement(de);t.label=e.title,t.color=e.color,t.variant=this.eventVariant,t.locale=this.locale,t.start=e.start,t.end=e.end,Object.assign(t.style,{position:"fixed",width:`${this.dragChipWidth}px`,height:`${this.dragChipHeight}px`,pointerEvents:"none",zIndex:"1000",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",borderRadius:"var(--eun-border-radius-s, 5px)"}),this.dragGhostLayerEl?.appendChild(t),this.dragGhostEl=t}updateDragGhost(e,t){if(!this.dragGhostEl||!this.dragEvent)return;let r=e-this.dragGrabOffsetX,o=t-this.dragGrabOffsetY;this.dragGhostEl.style.left=`${r}px`,this.dragGhostEl.style.top=`${o}px`;let s=Array.from(this.shadowRoot?.querySelectorAll(".hour-grid-day-column")??[]);if(!s.length)return;let n=s[0];for(let $ of s){let C=$.getBoundingClientRect();if(e>=C.left&&e<=C.right){n=$;break}e>C.right&&(n=$)}let p=n.dataset.date?new Date(n.dataset.date):null;if(!p)return;let w=n.getBoundingClientRect(),y=this.dayStartHour*60,S=this.dayEndHour*60,c=this.dragDurationMs/6e4,l=(o-w.top)/X*this.slotDuration,v=Math.min(Math.max(Math.round(l/this.slotDuration)*this.slotDuration+y,y),S-c),x=new Date(p);x.setHours(0,v,0,0),this.dragFinalStart=x,this.dragGhostEl.start=x,this.dragGhostEl.end=new Date(x.getTime()+this.dragDurationMs)}teardownDrag(){document.removeEventListener("pointermove",this.handleDragPointerMove),document.removeEventListener("pointerup",this.handleDragPointerUp),document.removeEventListener("pointercancel",this.handleDragPointerCancel),document.removeEventListener("keydown",this.handleDragKeydown),this.dragGhostEl?.remove(),this.dragGhostEl=null,this.dragEvent=null,this.dragPointerId=null,this.dragActivated=!1,this.dragFinalStart=null,this.draggingEventId=null}playSwipeAnimation(e){this.swipeDirection=null,this.updateComplete.then(()=>{this.shadowRoot?.querySelector("#view")?.offsetWidth,this.swipeDirection=e})}render(){return d`
|
|
711
|
+
`}function Pe(i,a){let e=new Date(1970,0,4);return Array.from({length:7},(t,r)=>D(e,i+r)).map(t=>t.toLocaleDateString(a,{weekday:"short"}))}var N=class i extends Event{static{this.eventName="euneventclick"}constructor(a,e){super(i.eventName,{bubbles:!0,composed:!1}),this.event=a,this.anchor=e}};var Y=class i extends Event{static{this.eventName="eunslotclick"}constructor(a){super(i.eventName,{bubbles:!0,composed:!1}),this.start=a}};var Ae="eun-calendar",ze=40,Ge="(max-width: 767px)",Ie=4,X=24,u=class extends J{constructor(){super(...arguments);this.events=[];this.view="week";this.displayedDate=new Date;this.weekStartsOn=1;this.dayStartHour=0;this.dayEndHour=24;this.slotDuration=30;this.readonly=!1;this.noAnimation=!1;this.moreEventsLabel="+{count} more";this.eventAppearance="default";this.focusedDate=B(new Date);this.selectedWeekDay=null;this.swipeDirection=null;this.isMobile=!1;this.swipeStart=null;this.draggingEventId=null;this.dragEvent=null;this.dragPointerId=null;this.dragActivated=!1;this.dragStartClientX=0;this.dragStartClientY=0;this.dragGrabOffsetX=0;this.dragGrabOffsetY=0;this.dragChipWidth=0;this.dragChipHeight=0;this.dragDurationMs=0;this.dragGhostEl=null;this.dragFinalStart=null;this.suppressNextClick=!1;this.monthMaxEventsPerCell=3;this.observedMonthCell=null;this.handleMonthDayKeydown=e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),this.moveMonthFocus(-1);break;case"ArrowRight":e.preventDefault(),this.moveMonthFocus(1);break;case"ArrowUp":e.preventDefault(),this.moveMonthFocus(-7);break;case"ArrowDown":e.preventDefault(),this.moveMonthFocus(7);break;case"Home":e.preventDefault(),this.jumpMonthFocus(R(this.focusedDate,this.weekStartsOn));break;case"End":e.preventDefault(),this.jumpMonthFocus(D(R(this.focusedDate,this.weekStartsOn),6));break;case"PageUp":e.preventDefault(),this.jumpMonthFocus(F(this.focusedDate,e.shiftKey?-12:-1));break;case"PageDown":e.preventDefault(),this.jumpMonthFocus(F(this.focusedDate,e.shiftKey?12:1));break;default:break}};this.handleMobileMediaChange=e=>{this.isMobile=e.matches};this.handleEventClick=(e,t)=>{if(this.suppressNextClick){this.suppressNextClick=!1;return}this.dispatchEvent(new N(e,t.currentTarget))};this.handleSlotClick=e=>{this.readonly||this.dispatchEvent(new Y(e))};this.handleEventDragStart=(e,t)=>{if(this.readonly||t.pointerType==="touch"||t.button!==0)return;let r=t.currentTarget.getBoundingClientRect();this.dragEvent=e,this.dragPointerId=t.pointerId,this.dragActivated=!1,this.dragStartClientX=t.clientX,this.dragStartClientY=t.clientY,this.dragGrabOffsetX=t.clientX-r.left,this.dragGrabOffsetY=t.clientY-r.top,this.dragChipWidth=r.width,this.dragChipHeight=r.height,this.dragDurationMs=e.end.getTime()-e.start.getTime(),document.addEventListener("pointermove",this.handleDragPointerMove),document.addEventListener("pointerup",this.handleDragPointerUp),document.addEventListener("pointercancel",this.handleDragPointerCancel),document.addEventListener("keydown",this.handleDragKeydown)};this.handleDragPointerMove=e=>{if(!this.dragEvent||e.pointerId!==this.dragPointerId)return;let t=e.clientX-this.dragStartClientX,r=e.clientY-this.dragStartClientY;if(!this.dragActivated){if(Math.hypot(t,r)<Ie)return;this.dragActivated=!0,this.draggingEventId=this.dragEvent.id,this.mountDragGhost(this.dragEvent)}e.preventDefault(),this.updateDragGhost(e.clientX,e.clientY)};this.handleDragPointerUp=e=>{if(!this.dragEvent||e.pointerId!==this.dragPointerId)return;let t=this.dragEvent,r=this.dragActivated,o=this.dragFinalStart;this.teardownDrag(),!(!r||!o)&&(this.suppressNextClick=!0,o.getTime()!==t.start.getTime()&&this.dispatchEvent(new ue({...t,start:o,end:new Date(o.getTime()+this.dragDurationMs)})))};this.handleDragPointerCancel=e=>{!this.dragEvent||e.pointerId!==this.dragPointerId||this.teardownDrag()};this.handleDragKeydown=e=>{e.key==="Escape"&&this.dragEvent&&(e.stopPropagation(),this.teardownDrag())};this.goToDayView=e=>{this.view="day",this.displayedDate=e};this.handleSwipeStart=e=>{e.pointerType==="touch"&&(this.swipeStart={x:e.clientX,y:e.clientY})};this.handleSwipeEnd=e=>{let t=this.swipeStart;if(this.swipeStart=null,e.pointerType!=="touch"||!t)return;let r=e.clientX-t.x,o=e.clientY-t.y;Math.abs(r)<ze||Math.abs(r)<Math.abs(o)||(r<0?(this.navigate(1),this.playSwipeAnimation("next")):(this.navigate(-1),this.playSwipeAnimation("previous")))};this.handleSwipeCancel=()=>{this.swipeStart=null}}willUpdate(e){e.has("displayedDate")&&!e.has("focusedDate")&&(this.focusedDate=B(this.displayedDate))}syncDisplayedMonth(){L(this.focusedDate,this.displayedDate)||(this.displayedDate=Z(this.focusedDate))}focusMonthCell(){this.shadowRoot?.querySelector('.month-cell-day[tabindex="0"]')?.focus()}moveMonthFocus(e){this.focusedDate=D(this.focusedDate,e),this.syncDisplayedMonth(),this.updateComplete.then(()=>this.focusMonthCell())}jumpMonthFocus(e){this.focusedDate=e,this.syncDisplayedMonth(),this.updateComplete.then(()=>this.focusMonthCell())}updated(e){if(super.updated(e),e.has("view")||e.has("displayedDate")||e.has("weekStartsOn")){let t=ee(this.view,this.displayedDate,this.weekStartsOn);this.dispatchEvent(new ce(this.view,t.start,t.end))}this.syncMonthCellObserver()}firstUpdated(e){super.firstUpdated(e),this.view==="year"?this.runOnceVisible(".year-scroll",()=>this.scrollYearViewToCurrentMonth()):this.view!=="month"&&this.runOnceVisible("#hour-grid-scroll",()=>this.scrollHourGridToNow())}runOnceVisible(e,t){let r=this.shadowRoot?.querySelector(e);if(r){if(r.clientHeight>0){t();return}this.initialScrollObserver?.disconnect(),this.initialScrollObserver=new ResizeObserver(()=>{r.clientHeight>0&&(this.initialScrollObserver?.disconnect(),this.initialScrollObserver=void 0,t())}),this.initialScrollObserver.observe(r)}}scrollHourGridToNow(){let e=this.shadowRoot?.querySelector("#hour-grid-scroll"),t=this.shadowRoot?.querySelector(".hour-grid-body"),r=this.shadowRoot?.querySelector(".hour-grid-day-column.today");if(!e||!t||!r)return;let o=new Date,s=this.dayStartHour*60,n=this.dayEndHour*60,w=(Math.min(Math.max(o.getHours()*60+o.getMinutes(),s),n)-s)/this.slotDuration*X,y=t.getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop;e.scrollTop=Math.max(0,y+w-e.clientHeight/3)}scrollYearViewToCurrentMonth(){let e=new Date;if(this.displayedDate.getFullYear()!==e.getFullYear())return;let t=this.shadowRoot?.querySelector(".year-scroll"),o=this.shadowRoot?.querySelectorAll(".year-month-section")?.[e.getMonth()];if(!t||!o)return;let s=this.shadowRoot?.querySelector(".year-weekday-header")?.getBoundingClientRect().height??0,n=o.getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop;t.scrollTop=Math.max(0,n-s)}syncMonthCellObserver(){if(this.view!=="month"){this.monthCellResizeObserver?.disconnect(),this.monthCellResizeObserver=void 0,this.observedMonthCell=null;return}let e=this.shadowRoot?.querySelector(".month-cell");!e||e===this.observedMonthCell||(this.monthCellResizeObserver?.disconnect(),this.observedMonthCell=e,this.monthCellResizeObserver=new ResizeObserver(()=>this.measureMonthCellCapacity()),this.monthCellResizeObserver.observe(e))}measureMonthCellCapacity(){let e=this.observedMonthCell,t=e?.closest(".month-week"),r=t?.querySelector(".month-cell-day");if(!e||!t||!r)return;let o=Number.parseFloat(getComputedStyle(t).rowGap)||0,s=e.clientHeight-r.offsetHeight-o,n=Math.max(1,Math.floor((s+o)/(U+o)));n!==this.monthMaxEventsPerCell&&(this.monthMaxEventsPerCell=n)}updateMobileMediaQuery(){this.mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaChange),this.mobileMediaQuery=window.matchMedia(Ge),this.mobileMediaQuery.addEventListener("change",this.handleMobileMediaChange),this.isMobile=this.mobileMediaQuery.matches}connectedCallback(){super.connectedCallback?.(),this.updateMobileMediaQuery()}disconnectedCallback(){this.mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaChange),this.monthCellResizeObserver?.disconnect(),this.initialScrollObserver?.disconnect(),this.teardownDrag(),super.disconnectedCallback?.()}navigate(e){this.displayedDate=te(this.view,this.displayedDate,e)}mountDragGhost(e){let t=document.createElement(de);t.label=e.title,t.color=e.color,t.appearance=this.eventAppearance,t.locale=this.locale,t.start=e.start,t.end=e.end,Object.assign(t.style,{position:"fixed",width:`${this.dragChipWidth}px`,height:`${this.dragChipHeight}px`,pointerEvents:"none",zIndex:"1000",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",borderRadius:"var(--eun-border-radius-s, 5px)"}),this.dragGhostLayerEl?.appendChild(t),this.dragGhostEl=t}updateDragGhost(e,t){if(!this.dragGhostEl||!this.dragEvent)return;let r=e-this.dragGrabOffsetX,o=t-this.dragGrabOffsetY;this.dragGhostEl.style.left=`${r}px`,this.dragGhostEl.style.top=`${o}px`;let s=Array.from(this.shadowRoot?.querySelectorAll(".hour-grid-day-column")??[]);if(!s.length)return;let n=s[0];for(let $ of s){let C=$.getBoundingClientRect();if(e>=C.left&&e<=C.right){n=$;break}e>C.right&&(n=$)}let p=n.dataset.date?new Date(n.dataset.date):null;if(!p)return;let w=n.getBoundingClientRect(),y=this.dayStartHour*60,S=this.dayEndHour*60,c=this.dragDurationMs/6e4,l=(o-w.top)/X*this.slotDuration,v=Math.min(Math.max(Math.round(l/this.slotDuration)*this.slotDuration+y,y),S-c),x=new Date(p);x.setHours(0,v,0,0),this.dragFinalStart=x,this.dragGhostEl.start=x,this.dragGhostEl.end=new Date(x.getTime()+this.dragDurationMs)}teardownDrag(){document.removeEventListener("pointermove",this.handleDragPointerMove),document.removeEventListener("pointerup",this.handleDragPointerUp),document.removeEventListener("pointercancel",this.handleDragPointerCancel),document.removeEventListener("keydown",this.handleDragKeydown),this.dragGhostEl?.remove(),this.dragGhostEl=null,this.dragEvent=null,this.dragPointerId=null,this.dragActivated=!1,this.dragFinalStart=null,this.draggingEventId=null}playSwipeAnimation(e){this.swipeDirection=null,this.updateComplete.then(()=>{this.shadowRoot?.querySelector("#view")?.offsetWidth,this.swipeDirection=e})}render(){return d`
|
|
712
712
|
<div
|
|
713
713
|
id="view"
|
|
714
714
|
class=${f({"swiping-next":this.swipeDirection==="next","swiping-previous":this.swipeDirection==="previous"})}
|
|
@@ -719,7 +719,7 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
719
719
|
<div id="view-content">${this.renderActiveView()}</div>
|
|
720
720
|
</div>
|
|
721
721
|
<div id="drag-ghost-layer"></div>
|
|
722
|
-
`}renderActiveView(){let e={events:this.events,dayStartHour:this.dayStartHour,dayEndHour:this.dayEndHour,slotDuration:this.slotDuration,locale:this.locale,slotHeight:X,
|
|
722
|
+
`}renderActiveView(){let e={events:this.events,dayStartHour:this.dayStartHour,dayEndHour:this.dayEndHour,slotDuration:this.slotDuration,locale:this.locale,slotHeight:X,eventAppearance:this.eventAppearance,onSlotClick:this.handleSlotClick,onEventClick:this.handleEventClick,draggingEventId:this.draggingEventId,onEventDragStart:this.handleEventDragStart};switch(this.view){case"day":return K(this.displayedDate,e);case"week":return this.renderWeekOrWorkWeek(!1,e);case"work-week":return this.renderWeekOrWorkWeek(!0,e);case"month":return be({displayedMonth:this.displayedDate,events:this.events,weekStartsOn:this.weekStartsOn,focusedDate:this.focusedDate,locale:this.locale,desktop:!this.isMobile,maxEventsPerCell:this.monthMaxEventsPerCell,moreLabel:t=>this.moreEventsLabel.replace("{count}",String(t)),onDayClick:this.goToDayView,onEventClick:this.handleEventClick,onDayKeydown:this.handleMonthDayKeydown});case"year":return we({displayedYear:this.displayedDate,events:this.events,weekStartsOn:this.weekStartsOn,locale:this.locale,onDayClick:this.goToDayView,onMonthLabelClick:t=>{this.view="month",this.displayedDate=t}});default:return d``}}renderWeekOrWorkWeek(e,t){if(!this.isMobile)return ye(this.displayedDate,this.weekStartsOn,e,t);let r=R(this.displayedDate,this.weekStartsOn),o=Array.from({length:7},(n,p)=>D(r,p)).filter(n=>!e||!I(n)),s=this.selectedWeekDay&&o.some(n=>H(n,this.selectedWeekDay))?this.selectedWeekDay:o.find(n=>E(n))??o[0];return d`
|
|
723
723
|
${this.renderWeekDayStrip(o,s)}
|
|
724
724
|
${K(s,t)}
|
|
725
725
|
`}renderWeekDayStrip(e,t){return d`
|
|
@@ -739,4 +739,4 @@ import{a as de}from"./chunks/chunk-EJIX2D4Z.js";import{a as ce}from"./chunks/chu
|
|
|
739
739
|
</button>
|
|
740
740
|
`})}
|
|
741
741
|
</div>
|
|
742
|
-
`}};u.styles=[he,pe,ve,me],h([g({attribute:!1})],u.prototype,"events",2),h([g({reflect:!0})],u.prototype,"view",2),h([g({attribute:!1})],u.prototype,"displayedDate",2),h([g({type:Number,attribute:"week-starts-on"})],u.prototype,"weekStartsOn",2),h([g({type:Number,attribute:"day-start-hour"})],u.prototype,"dayStartHour",2),h([g({type:Number,attribute:"day-end-hour"})],u.prototype,"dayEndHour",2),h([g({type:Number,attribute:"slot-duration"})],u.prototype,"slotDuration",2),h([g()],u.prototype,"locale",2),h([g({type:Boolean,reflect:!0})],u.prototype,"readonly",2),h([g({type:Boolean,reflect:!0,attribute:"no-animation"})],u.prototype,"noAnimation",2),h([g({attribute:"more-events-label"})],u.prototype,"moreEventsLabel",2),h([g({attribute:"event-
|
|
742
|
+
`}};u.styles=[he,pe,ve,me],h([g({attribute:!1})],u.prototype,"events",2),h([g({reflect:!0})],u.prototype,"view",2),h([g({attribute:!1})],u.prototype,"displayedDate",2),h([g({type:Number,attribute:"week-starts-on"})],u.prototype,"weekStartsOn",2),h([g({type:Number,attribute:"day-start-hour"})],u.prototype,"dayStartHour",2),h([g({type:Number,attribute:"day-end-hour"})],u.prototype,"dayEndHour",2),h([g({type:Number,attribute:"slot-duration"})],u.prototype,"slotDuration",2),h([g()],u.prototype,"locale",2),h([g({type:Boolean,reflect:!0})],u.prototype,"readonly",2),h([g({type:Boolean,reflect:!0,attribute:"no-animation"})],u.prototype,"noAnimation",2),h([g({attribute:"more-events-label"})],u.prototype,"moreEventsLabel",2),h([g({attribute:"event-appearance"})],u.prototype,"eventAppearance",2),h([T()],u.prototype,"focusedDate",2),h([T()],u.prototype,"selectedWeekDay",2),h([T()],u.prototype,"swipeDirection",2),h([T()],u.prototype,"isMobile",2),h([T()],u.prototype,"draggingEventId",2),h([Q("#drag-ghost-layer")],u.prototype,"dragGhostLayerEl",2),h([T()],u.prototype,"monthMaxEventsPerCell",2),u=h([j(Ae)],u);export{u as EunomiaCalendar,Ae as EunomiaCalendarTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as u,b as v}from"./chunks/chunk-SD2WHGPF.js";import{a as h}from"./chunks/chunk-3MTUVMM5.js";import"./chunks/chunk-SJWRE6PW.js";import{a as p}from"./chunks/chunk-5EVP7YNE.js";import{b as f}from"./chunks/chunk-5GKM5DIB.js";import{a as o,b as d,c as n,f as s,g as i,h as c,n as t,s as l}from"./chunks/chunk-XH6NREVZ.js";var m=i`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -125,9 +125,48 @@ import{a as n,b as i}from"./chunks/chunk-IJ5WFMK4.js";import"./chunks/chunk-5EVP
|
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
#card.slotted-link {
|
|
129
|
+
--_hoverLift: translateY(-4px);
|
|
130
|
+
--_hoverBorderDefault: var(--eun-color-primary-500, #3d6fff);
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
::slotted(a) {
|
|
134
|
+
color: inherit;
|
|
135
|
+
text-decoration: none;
|
|
136
|
+
outline: none !important;
|
|
137
|
+
}
|
|
138
|
+
::slotted(a)::after {
|
|
139
|
+
content: "";
|
|
140
|
+
position: absolute;
|
|
141
|
+
inset: calc(-1 * var(--card-border-width, var(--eun-border-width-s, 1px)));
|
|
142
|
+
z-index: 1;
|
|
143
|
+
border-radius: var(--card-border-radius, var(--eun-border-radius-m, 8px));
|
|
144
|
+
outline: 2px solid transparent;
|
|
145
|
+
transition: outline 0.2s ease-out;
|
|
146
|
+
}
|
|
147
|
+
::slotted(a:focus-visible)::after {
|
|
148
|
+
outline-color: var(
|
|
149
|
+
--card-focus-outline-color,
|
|
150
|
+
var(--eun-color-primary-500, #3d6fff)
|
|
151
|
+
);
|
|
152
|
+
outline-offset: 2px;
|
|
153
|
+
}
|
|
154
|
+
:host(:focus-within) #card.slotted-link {
|
|
155
|
+
transform: var(--card-hover-transform, var(--_hoverLift));
|
|
156
|
+
border-color: var(--card-hover-border-color, var(--_hoverBorderDefault));
|
|
157
|
+
}
|
|
158
|
+
|
|
128
159
|
@media (prefers-reduced-motion: reduce) {
|
|
129
|
-
#card
|
|
160
|
+
#card,
|
|
161
|
+
::slotted(a)::after {
|
|
130
162
|
transition: none;
|
|
131
163
|
}
|
|
132
164
|
}
|
|
133
|
-
`,
|
|
165
|
+
`,b=m;var x="eun-card",a,r=class extends u(l){constructor(){super(...arguments);this.appearance="default";n(this,a,new h(this,()=>this.slottedAnchor,()=>this.dictionary.link.opensInNewTab));this.handleSlotChange=()=>{this.requestUpdate()}}get hasSlottedAnchor(){return!!this.slottedAnchor}get slottedAnchor(){return this.href?null:this.querySelector(":scope > a")}updated(e){super.updated(e),this.hasSlottedAnchor&&f(this)}render(){let e=t`<slot @slotchange=${this.handleSlotChange}></slot
|
|
166
|
+
>${this.renderExternalLinkBadge(d(this,a).isBlank)}`;return this.href?this.renderCardLink("card",e):t`<div
|
|
167
|
+
id="card"
|
|
168
|
+
part="card"
|
|
169
|
+
class=${p(this.hasSlottedAnchor?"slotted-link":void 0)}
|
|
170
|
+
>
|
|
171
|
+
${e}
|
|
172
|
+
</div>`}};a=new WeakMap,r.styles=[b,v],o([c({reflect:!0})],r.prototype,"appearance",2),r=o([s(x)],r);export{r as EunomiaCard,x as EunomiaCardTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as A}from"./chunks/chunk-SD2H5UDZ.js";import{a as y}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as I}from"./chunks/chunk-SJWRE6PW.js";import{a as r,f as k,g as S,h as a,i as n,j as x,l as P,n as u,p as d,s as T}from"./chunks/chunk-XH6NREVZ.js";var v=class g extends Event{static{this.eventName="eunslidechange"}constructor(f){super(g.eventName,{bubbles:!0,composed:!1}),this.index=f.index,this.count=f.count}};var $=S`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
--_visibleCount: 1;
|
|
@@ -268,7 +268,7 @@ import{a as I}from"./chunks/chunk-SD2H5UDZ.js";import{a as A}from"./chunks/chunk
|
|
|
268
268
|
transition: none;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
`,C=$;var L="eun-carousel",N="eun-carousel-active-slide",t=class extends
|
|
271
|
+
`,C=$;var L="eun-carousel",N="eun-carousel-active-slide",t=class extends I(T){constructor(){super(...arguments);this.layout="inline";this.navPlacement="end";this.responsiveBreakpoint=480;this.visibleSlides=1;this.fullSlides=!0;this.scrollStep=1;this.centerSnap=!1;this.edgeFade=!0;this.loop=!1;this.autoplay=!1;this.autoplayInterval=4e3;this.showArrows=!0;this.showDots=!0;this.ariaLabelPrevious="Previous slide";this.ariaLabelNext="Next slide";this.currentIndex=0;this.slideCount=0;this.manuallyPaused=!1;this.announcement="";this.hasTitle=!1;this.narrow=!1;this.effectiveVisibleSlides=1;this.effectiveScrollStep=1;this.resizeObserver=new ResizeObserver(()=>{this.resizeRaf!==void 0&&cancelAnimationFrame(this.resizeRaf),this.resizeRaf=requestAnimationFrame(()=>{this.resizeRaf=void 0,this.syncCssOverrides(),this.updateFromScrollPosition(),this.updateCenterPadding(),this.updateNarrow()})});this.handleScroll=()=>{this.scrollRaf===void 0&&(this.scrollRaf=requestAnimationFrame(()=>{this.scrollRaf=void 0,this.updateFromScrollPosition()}))};this.scheduleAnnounce=A(()=>{this.announcement=this.buildAnnouncement(),this.dispatchEvent(new v({index:this.currentIndex,count:this.slideCount}))},200);this.maxIndex=0;this.handleTransientPause=()=>{this.stopAutoplay()};this.handleTransientResume=()=>{this.startAutoplay()}}connectedCallback(){super.connectedCallback?.(),this.addEventListener("mouseenter",this.handleTransientPause),this.addEventListener("mouseleave",this.handleTransientResume),this.addEventListener("focusin",this.handleTransientPause),this.addEventListener("focusout",this.handleTransientResume)}disconnectedCallback(){this.stopAutoplay(),this.resizeObserver.disconnect(),this.removeEventListener("mouseenter",this.handleTransientPause),this.removeEventListener("mouseleave",this.handleTransientResume),this.removeEventListener("focusin",this.handleTransientPause),this.removeEventListener("focusout",this.handleTransientResume),this.scrollRaf!==void 0&&cancelAnimationFrame(this.scrollRaf),this.resizeRaf!==void 0&&cancelAnimationFrame(this.resizeRaf),super.disconnectedCallback?.()}firstUpdated(e){super.firstUpdated(e),this.syncCssOverrides(),this.resizeObserver.observe(this)}updated(e){super.updated(e),e.has("visibleSlides")&&this.style.setProperty("--_visibleCount",String(Math.max(1,this.visibleSlides))),(e.has("visibleSlides")||e.has("scrollStep"))&&this.syncCssOverrides(),e.has("centerSnap")&&(this.style.setProperty("--_snapAlign",this.centerSnap?"center":"start"),this.updateCenterPadding(),this.updateFromScrollPosition()),e.has("autoplay")&&(this.autoplay?this.startAutoplay():this.stopAutoplay()),e.has("responsiveBreakpoint")&&this.updateNarrow()}previous(){this.step(-1)}next(){this.step(1)}goTo(e){this.goToIndex(e)}getCssPixelValue(e,s){let i=Number.parseFloat(getComputedStyle(this).getPropertyValue(e));return Number.isNaN(i)?s:i}get pageCount(){return Math.ceil(this.maxIndex/this.effectiveScrollStep)+1}syncCssOverrides(){this.effectiveVisibleSlides=Math.max(1,Math.round(this.getCssPixelValue("--carousel-visible-slides",this.visibleSlides))),this.effectiveScrollStep=Math.max(1,Math.round(this.getCssPixelValue("--carousel-scroll-step",this.scrollStep)))}measureMaxIndex(){if(!this.trackEl||!this.slides.length)return 0;if(this.centerSnap)return this.slides.length-1;let e=this.trackEl,s=e.getBoundingClientRect(),i=Math.max(0,e.scrollWidth-e.clientWidth),o=0,l=1/0;return this.slides.forEach((p,b)=>{let h=p.getBoundingClientRect().left-s.left+e.scrollLeft,c=Math.abs(h-i);c<l&&(l=c,o=b)}),o}updateCenterPadding(){if(!this.centerSnap||!this.trackEl||!this.slides.length){this.style.setProperty("--_centerPadding","0px");return}let e=this.trackEl.clientWidth,s=this.slides[0].getBoundingClientRect().width,i=Math.max(0,(e-s)/2);this.style.setProperty("--_centerPadding",`${i}px`)}updateNarrow(){let e=this.getCssPixelValue("--carousel-responsive-breakpoint",this.responsiveBreakpoint);this.narrow=e>0&&this.getBoundingClientRect().width<e}handleSlotChange(){this.slideCount=this.slides.length,this.slides.forEach((e,s)=>{e.setAttribute("role","group"),e.setAttribute("aria-roledescription","slide"),e.setAttribute("aria-label",this.dictionary.carousel.ofTotal(s+1,this.slideCount))}),this.updateFromScrollPosition(),this.updateCenterPadding(),this.startAutoplay()}handleTitleSlotChange(){this.hasTitle=(this.titleSlotEl?.assignedNodes({flatten:!0}).length??0)>0}scrollBehavior(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}goToIndex(e){if(!this.slides.length||!this.trackEl)return;let s=this.maxIndex,i=this.loop?(e%(s+1)+(s+1))%(s+1):Math.max(0,Math.min(e,s));if(!this.centerSnap&&i===s){this.trackEl.scrollTo({left:this.trackEl.scrollWidth-this.trackEl.clientWidth,behavior:this.scrollBehavior()});return}let o=this.slides[i];o&&o.scrollIntoView({behavior:this.scrollBehavior(),inline:this.centerSnap?"center":"start",block:"nearest"})}step(e){this.syncCssOverrides(),this.goToIndex(this.currentIndex+e*this.effectiveScrollStep)}startAutoplay(){this.autoplayTimer||!this.autoplay||this.manuallyPaused||this.maxIndex<=0||(this.autoplayTimer=setInterval(()=>this.step(1),this.autoplayInterval))}stopAutoplay(){clearInterval(this.autoplayTimer),this.autoplayTimer=void 0}pauseAutoplay(){this.manuallyPaused=!0,this.stopAutoplay()}resumeAutoplay(){this.manuallyPaused=!1,this.startAutoplay()}buildAnnouncement(){if(!this.slideCount)return"";let e=this.currentIndex+1,s=Math.max(1,Math.min(this.effectiveVisibleSlides,this.slideCount-this.currentIndex)),i=Math.min(e+s-1,this.slideCount);return i>e?`Showing slides ${e} to ${i} of ${this.slideCount}`:`Slide ${e} of ${this.slideCount}`}updateFromScrollPosition(){if(!this.trackEl||!this.slides.length)return;let e=this.trackEl.getBoundingClientRect(),s=this.centerSnap?e.left+e.width/2:e.left,i=0,o=1/0;this.slides.forEach((h,c)=>{let m=h.getBoundingClientRect(),R=this.centerSnap?m.left+m.width/2:m.left,w=Math.abs(R-s);w<o&&(o=w,i=c)}),this.maxIndex=this.measureMaxIndex(),i=Math.min(i,this.maxIndex),this.slides.forEach((h,c)=>{h.classList.toggle(N,c===i)});let l=i!==this.currentIndex;this.currentIndex=i;let{scrollLeft:p}=this.trackEl,b=this.trackEl.scrollWidth-this.trackEl.clientWidth;this.style.setProperty("--_showLeftFade",p>1?"1":"0"),this.style.setProperty("--_showRightFade",p<b-1?"1":"0"),l&&this.scheduleAnnounce()}handleKeydown(e){switch(e.key){case"ArrowLeft":e.preventDefault(),this.previous();break;case"ArrowRight":e.preventDefault(),this.next();break;case"Home":e.preventDefault(),this.goToIndex(0);break;case"End":e.preventDefault(),this.goToIndex(this.maxIndex);break;default:break}}renderDots(){if(!this.showDots||this.pageCount<=1)return d;let e=this.effectiveScrollStep,s=Math.round(this.currentIndex/e);return u`
|
|
272
272
|
<div
|
|
273
273
|
id="dots"
|
|
274
274
|
role="group"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as u}from"./chunks/chunk-74AOAB4X.js";import{b as s}from"./chunks/chunk-
|
|
1
|
+
import{a as u}from"./chunks/chunk-74AOAB4X.js";import{b as s}from"./chunks/chunk-2XASWWKR.js";import"./chunks/chunk-GU6BVMFJ.js";import{e as o}from"./chunks/chunk-OAULRKHQ.js";import"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-32DTNR52.js";import{a as l}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as e,f as c,g as d,h as n,l as i,n as a,p as t}from"./chunks/chunk-XH6NREVZ.js";var v=d`
|
|
2
2
|
:host {
|
|
3
3
|
--_borderWidth: var(--check-card-border-width, 1px);
|
|
4
4
|
--_borderColor: var(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as g}from"./chunks/chunk-BQHYZB2W.js";import{a as b}from"./chunks/chunk-GW3VP2L7.js";import{a as f,c as m,d as v,e as o}from"./chunks/chunk-OAULRKHQ.js";import{a as u}from"./chunks/chunk-YYCEPZUN.js";import{a as p}from"./chunks/chunk-
|
|
1
|
+
import{a as g}from"./chunks/chunk-BQHYZB2W.js";import{a as b}from"./chunks/chunk-GW3VP2L7.js";import{a as f,c as m,d as v,e as o}from"./chunks/chunk-OAULRKHQ.js";import{a as u}from"./chunks/chunk-YYCEPZUN.js";import{a as p}from"./chunks/chunk-32DTNR52.js";import{a as c}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-5EVP7YNE.js";import{a as s,f as l,g as r,h as n,j as d,n as h,s as a}from"./chunks/chunk-XH6NREVZ.js";var x=r`
|
|
2
2
|
:host {
|
|
3
3
|
--_container-gap: var(--checkbox-list-gap, var(--eun-space-s, 8px));
|
|
4
4
|
--_options-gap: var(--checkbox-list-options-gap, var(--eun-space-s, 8px));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunks/chunk-
|
|
1
|
+
import{a,b}from"./chunks/chunk-2XASWWKR.js";import"./chunks/chunk-GU6BVMFJ.js";import"./chunks/chunk-OAULRKHQ.js";import"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-32DTNR52.js";import"./chunks/chunk-XH6NREVZ.js";export{b as EunomiaCheckbox,a as EunomiaCheckboxTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m}from"./chunks/chunk-P32B7BFD.js";import{a as
|
|
1
|
+
import{a as m}from"./chunks/chunk-P32B7BFD.js";import{a as h}from"./chunks/chunk-YQU6RVX4.js";import{a as v}from"./chunks/chunk-UP4M7TER.js";import{a as u}from"./chunks/chunk-SJWRE6PW.js";import{a,f as l,g as s,h as t,i as p,l as c,n as i,p as n,s as d}from"./chunks/chunk-XH6NREVZ.js";var g=s`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
max-width: 100%;
|