@eunomia/elements 1.0.0-beta.7 → 1.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/components/chunks/{chunk-3PNGQEG4.js → chunk-32L2QYWQ.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-Z3OFIE7S.js → chunk-3UUZM7X2.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-BVASCT2V.js → chunk-55PUDL7D.js} +13 -13
- package/dist/cdn/components/chunks/chunk-5LA5DQMP.js +1 -0
- package/dist/cdn/components/chunks/chunk-5LXGJVJR.js +1 -0
- package/dist/cdn/components/chunks/chunk-6TIEBY34.js +1 -0
- package/dist/cdn/components/chunks/{chunk-LVKMAHMU.js → chunk-AH2SKZ7T.js} +4 -1
- package/dist/cdn/components/chunks/chunk-JAGZL7JH.js +1 -0
- package/dist/cdn/components/chunks/{chunk-DGI7TKCU.js → chunk-LD35BFNK.js} +5 -9
- package/dist/cdn/components/chunks/chunk-P6LGU3FT.js +1 -0
- package/dist/cdn/components/chunks/{chunk-UYZR4JXZ.js → chunk-QSZO4GIH.js} +45 -9
- package/dist/cdn/components/chunks/{chunk-PXF554MD.js → chunk-QYB6Z6FG.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-RIFF2D2F.js → chunk-RGC3I6MK.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-N6ZW5CDN.js → chunk-TCSB2MLU.js} +1 -1
- package/dist/cdn/components/chunks/chunk-WIUERJII.js +1 -0
- package/dist/cdn/components/eun-animate.js +4 -4
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-carousel.js +10 -9
- package/dist/cdn/components/eun-chip.js +17 -11
- package/dist/cdn/components/eun-collapse.js +1 -1
- package/dist/cdn/components/eun-color-picker.js +18 -5
- package/dist/cdn/components/eun-counter.js +10 -8
- package/dist/cdn/components/eun-date-picker.js +46 -43
- package/dist/cdn/components/eun-drawer.js +19 -20
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +3 -3
- package/dist/cdn/components/eun-fab.js +1 -1
- package/dist/cdn/components/eun-image-carousel.js +4 -4
- package/dist/cdn/components/eun-input-phone.js +11 -8
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-link.js +59 -13
- package/dist/cdn/components/eun-modal.js +23 -13
- package/dist/cdn/components/eun-scheduler-event-editor.js +1 -1
- package/dist/cdn/components/eun-search.js +34 -28
- package/dist/cdn/components/eun-select.js +3 -3
- package/dist/cdn/components/eun-sidebar.js +66 -21
- package/dist/cdn/components/eun-sliding-card.js +1 -1
- package/dist/cdn/components/eun-stepper.js +16 -16
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table.js +2 -2
- package/dist/cdn/components/eun-textarea.js +16 -13
- package/dist/cdn/components/eun-time-picker.js +25 -23
- package/dist/cdn/components/eun-toast.js +8 -8
- package/dist/cdn/components/eun-toggle-group.js +71 -35
- package/dist/cdn/components/eun-toggle-item.js +8 -8
- package/dist/cdn/components/eun-toolbar.js +20 -20
- package/dist/cdn/components/eun-tooltip.js +6 -6
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/components/action/button/button.d.ts +2 -2
- package/dist/components/action/button/button.js +3 -7
- package/dist/components/action/button/button.styles.js +3 -3
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +4 -6
- package/dist/components/action/dropdown-button/dropdown-button.js +6 -8
- package/dist/components/action/dropdown-button/dropdown-item.d.ts +10 -2
- package/dist/components/action/dropdown-button/dropdown-item.js +24 -9
- package/dist/components/action/link/link.d.ts +10 -1
- package/dist/components/action/link/link.js +13 -1
- package/dist/components/action/link/link.styles.js +50 -3
- package/dist/components/action/toggle/toggle-group.d.ts +12 -2
- package/dist/components/action/toggle/toggle-group.js +17 -2
- package/dist/components/action/toggle/toggle-group.styles.js +54 -18
- package/dist/components/action/toggle/toggle-item.js +1 -3
- package/dist/components/action/toggle/toggle-item.styles.js +7 -7
- package/dist/components/alert/drawer/drawer.d.ts +25 -0
- package/dist/components/alert/drawer/drawer.js +42 -3
- package/dist/components/alert/drawer/drawer.styles.js +6 -6
- package/dist/components/alert/modal/modal.d.ts +25 -0
- package/dist/components/alert/modal/modal.js +42 -3
- package/dist/components/alert/modal/modal.styles.js +17 -6
- package/dist/components/alert/toast/toast.js +3 -2
- package/dist/components/alert/toast/toast.styles.js +3 -3
- package/dist/components/content/chip/chip.js +3 -2
- package/dist/components/content/chip/chip.styles.js +9 -3
- package/dist/components/content/image-carousel/image-carousel.js +5 -4
- package/dist/components/content/tooltip/tooltip.d.ts +16 -9
- package/dist/components/content/tooltip/tooltip.js +28 -12
- package/dist/components/content/tooltip/tooltip.styles.js +1 -1
- package/dist/components/form/color-picker/color-picker.d.ts +7 -1
- package/dist/components/form/color-picker/color-picker.js +8 -2
- package/dist/components/form/color-picker/color-picker.styles.js +13 -0
- package/dist/components/form/counter/counter.d.ts +3 -1
- package/dist/components/form/counter/counter.js +3 -1
- package/dist/components/form/counter/counter.styles.js +6 -4
- package/dist/components/form/date-picker/date-picker.d.ts +6 -1
- package/dist/components/form/date-picker/date-picker.js +7 -2
- package/dist/components/form/date-picker/date-picker.styles.js +9 -6
- package/dist/components/form/input/input.d.ts +6 -1
- package/dist/components/form/input/input.js +7 -2
- package/dist/components/form/input-phone/input-phone.d.ts +7 -1
- package/dist/components/form/input-phone/input-phone.js +7 -1
- package/dist/components/form/input-phone/input-phone.styles.js +6 -3
- package/dist/components/form/search/search.d.ts +64 -10
- package/dist/components/form/search/search.js +112 -31
- package/dist/components/form/search/search.styles.js +2 -0
- package/dist/components/form/select/select.d.ts +7 -1
- package/dist/components/form/select/select.js +7 -1
- package/dist/components/form/shared-styles/field.styles.js +45 -8
- package/dist/components/form/shared-styles/listbox.styles.js +5 -1
- package/dist/components/form/textarea/textarea.d.ts +1 -0
- package/dist/components/form/textarea/textarea.js +2 -1
- package/dist/components/form/textarea/textarea.styles.js +3 -0
- package/dist/components/form/time-picker/time-picker.d.ts +6 -1
- package/dist/components/form/time-picker/time-picker.js +7 -2
- package/dist/components/form/time-picker/time-picker.styles.js +7 -5
- package/dist/components/layout/animate/animate.js +2 -1
- package/dist/components/navigation/carousel/carousel.d.ts +1 -2
- package/dist/components/navigation/carousel/carousel.js +14 -6
- package/dist/components/navigation/carousel/carousel.styles.js +5 -4
- package/dist/components/navigation/sidebar/sidebar.d.ts +98 -52
- package/dist/components/navigation/sidebar/sidebar.js +140 -85
- package/dist/components/navigation/sidebar/sidebar.styles.d.ts +1 -1
- package/dist/components/navigation/sidebar/sidebar.styles.js +69 -21
- package/dist/components/navigation/stepper/stepper.d.ts +1 -3
- package/dist/components/navigation/stepper/stepper.js +3 -21
- package/dist/components/navigation/toolbar/toolbar.d.ts +10 -0
- package/dist/components/navigation/toolbar/toolbar.js +8 -1
- package/dist/components/navigation/toolbar/toolbar.styles.js +18 -17
- package/dist/events/select.event.d.ts +3 -2
- package/dist/events/select.event.js +2 -1
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +1 -1
- package/dist/features/table/table/table.js +1 -1
- package/dist/features/table/table-action-bar/table-action-bar.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/mixins/button.mixin.d.ts +1 -1
- package/dist/mixins/button.mixin.js +6 -4
- package/dist/mixins/dialog-surface.mixin.d.ts +8 -0
- package/dist/mixins/field-size.mixin.d.ts +19 -0
- package/dist/mixins/field-size.mixin.js +33 -0
- package/dist/mixins/rounded.mixin.d.ts +18 -0
- package/dist/mixins/rounded.mixin.js +32 -0
- package/dist/ssr/button-ssr.css +5 -5
- package/dist/ssr/carousel-ssr.css +9 -0
- package/dist/ssr/chip-ssr.css +8 -0
- package/dist/ssr/collapse-ssr.css +29 -0
- package/dist/ssr/field-ssr.css +43 -4
- package/dist/ssr/image-carousel-ssr.css +10 -0
- package/dist/ssr/links-ssr.css +38 -1
- package/dist/ssr/sidebar-ssr.css +95 -4
- package/dist/ssr/toggle-group-ssr.css +64 -13
- package/dist/ssr/toolbar-ssr.css +50 -0
- package/dist/types/variant.type.d.ts +4 -1
- package/dist/utils/boolean.utils.d.ts +14 -0
- package/dist/utils/boolean.utils.js +20 -0
- package/dist/utils/dropdown-menu.utils.d.ts +1 -1
- package/dist/utils/focusable-elements.utils.d.ts +12 -0
- package/dist/utils/focusable-elements.utils.js +26 -0
- package/dist/utils/input-modality.utils.d.ts +13 -0
- package/dist/utils/input-modality.utils.js +34 -0
- package/dist/utils/theme-generator.utils.d.ts +8 -2
- package/dist/utils/theme-generator.utils.js +30 -9
- package/package.json +1 -1
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
- package/dist/cdn/components/chunks/chunk-6VK6SHCG.js +0 -1
- package/dist/cdn/components/chunks/chunk-UDOZRIJZ.js +0 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk-L74LXUGL.js";import{a as X}from"./chunks/chunk-
|
|
1
|
+
import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk-L74LXUGL.js";import{a as X}from"./chunks/chunk-QSZO4GIH.js";import{a as W}from"./chunks/chunk-GVS6IUKC.js";import{a as q}from"./chunks/chunk-BO3JOEWM.js";import{a as S,c as K,d as j,e as G,f as C}from"./chunks/chunk-TLBXTBMM.js";import{a as H}from"./chunks/chunk-YYCEPZUN.js";import{a as $,b as y,c as N,d as A,e as O,f as R,g as B}from"./chunks/chunk-GDBPWZN6.js";import{a as z}from"./chunks/chunk-3BMACIDO.js";import{a as v}from"./chunks/chunk-PPCHQG7P.js";import{a as P}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as V}from"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as c,f as I,h as D,j as u,k as E,l as w,p as g,r as b,u as _}from"./chunks/chunk-YITWLCD3.js";var ae=D`
|
|
2
|
+
:host {
|
|
3
|
+
--_defaultLineHeight: normal;
|
|
4
|
+
}
|
|
2
5
|
#field {
|
|
3
6
|
resize: vertical;
|
|
4
7
|
min-height: 6rem;
|
|
@@ -153,8 +156,8 @@ import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk
|
|
|
153
156
|
#char-count[data-exceeded] {
|
|
154
157
|
color: var(--_errorColor);
|
|
155
158
|
}
|
|
156
|
-
`,J=[X,ae];var se="eun-textarea",F={bold:"STRONG",italic:"EM",underline:"U"},T={bold:()=>document.createElement("strong"),italic:()=>document.createElement("em"),underline:()=>document.createElement("u")},ce={b:"bold",i:"italic",u:"underline"};function de(o){return!(o.ctrlKey||o.metaKey)||o.altKey?null:ce[o.key.toLowerCase()]??null}function Q(o,l){let e=l;for(;e&&e.parentNode!==o;)e=e.parentNode;return e}function
|
|
157
|
-
`);if(a.length===1){let d=document.createTextNode(a[0]);r.insertNode(d),r.setStartAfter(d),r.collapse(!0)}else{let d=Q(t,r.startContainer),h=r.cloneRange();d&&h.setEndAfter(d.lastChild??d);let p=h.extractContents();r.insertNode(document.createTextNode(a[0]));let f=d;for(let M=1;M<a.length;M+=1){let L=document.createElement("p");L.textContent=a[M],f?.after(L),f=L}f?.appendChild(p),f&&r.selectNodeContents(f),r.collapse(!1)}n.removeAllRanges(),n.addRange(r),this.handleEditableInput()};this.handleEditableKeydown=e=>{let t=this.fieldEl;if(!(t instanceof HTMLDivElement))return;let i=de(e);if(i){e.preventDefault();let f=ie(t).includes(i);this.applyFormat(i,!f);return}if(e.key!=="Enter")return;e.preventDefault();let n=
|
|
159
|
+
`,J=[X,ae];var se="eun-textarea",F={bold:"STRONG",italic:"EM",underline:"U"},T={bold:()=>document.createElement("strong"),italic:()=>document.createElement("em"),underline:()=>document.createElement("u")},ce={b:"bold",i:"italic",u:"underline"};function de(o){return!(o.ctrlKey||o.metaKey)||o.altKey?null:ce[o.key.toLowerCase()]??null}function Q(o,l){let e=l;for(;e&&e.parentNode!==o;)e=e.parentNode;return e}function m(o){let l=o.getRootNode();return l instanceof ShadowRoot&&typeof l.getSelection=="function"?l.getSelection():window.getSelection()}function k(o){let l=m(o);if(!l||!l.rangeCount)return null;let e=l.getRangeAt(0);return e.collapsed||!o.contains(e.commonAncestorContainer)?null:e}function oe(o,l){let e=document.createRange();e.selectNodeContents(l),o.removeAllRanges(),o.addRange(e)}function Z(o){let l=m(o);if(!l||!l.rangeCount)return null;let e=l.getRangeAt(0);return!e.collapsed||!o.contains(e.commonAncestorContainer)?null:e}function ue(o){return!o.bold&&!o.italic&&!o.underline&&!o.color&&!o.highlight}var x="\u200B";function he(o){let l=[];if(o.bold&&l.push(T.bold()),o.italic&&l.push(T.italic()),o.underline&&l.push(T.underline()),o.color){let e=y(o.color),t=document.createElement("span");t.setAttribute("data-color",o.color),t.style.color=e?.text??"inherit",l.push(t)}if(o.highlight){let e=y(o.highlight),t=document.createElement("span");t.setAttribute("data-highlight",o.highlight),t.style.backgroundColor=e?.highlight??"transparent",l.push(t)}if(!l.length)return null;for(let e=0;e<l.length-1;e+=1)l[e].appendChild(l[e+1]);return l[l.length-1].appendChild(document.createTextNode(x)),l[0]}function pe(o,l){let e=l;for(;e.parentNode&&e.parentNode!==o&&e.parentNode.childNodes.length===1;)e=e.parentNode;return e}function ee(o,l){let e=pe(o,l),t=e.parentNode,i=Array.from(t.childNodes).indexOf(e);t.removeChild(e);let n=document.createRange();return n.setStart(t,i),n.collapse(!0),n}function te(o,l,e,t){let i=l,n=e;for(;;){let r=i.parentNode;if(!r||r===o)break;let a=i.nodeType===Node.TEXT_NODE?i.textContent?.length??0:i.childNodes.length;if(!(t?n===0:n===a))break;let h=Array.from(r.childNodes).indexOf(i);i=r,n=t?h:h+1}return{container:i,offset:n}}function le(o,l){let e=te(o,l.startContainer,l.startOffset,!0),t=te(o,l.endContainer,l.endOffset,!1);l.setStart(e.container,e.offset),l.setEnd(t.container,t.offset)}function re(o,l){o.querySelectorAll("*").forEach(e=>{if(!l(e))return;let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}})}function ge(o,l,e){let t=m(o),i=k(o);if(!t||!i)return!1;le(o,i);let n=F[l],r=i.extractContents();re(r,d=>d.tagName===n);let a=r;if(e){let d=T[l]();d.appendChild(r),a=d}return i.insertNode(a),oe(t,a),!0}function fe(o,l,e){let t=m(o),i=k(o);if(!t||!i)return!1;le(o,i);let n=l==="color"?"color":"highlight",r=i.extractContents();re(r,d=>d.tagName==="SPAN"&&d.hasAttribute(`data-${n}`));let a=r;if(e){let d=y(e),h=document.createElement("span");h.setAttribute(`data-${n}`,e),h.style.cssText=l==="color"?`color: ${d?.text??"inherit"}`:`background-color: ${d?.highlight??"transparent"}`,h.appendChild(r),a=h}return i.insertNode(a),oe(t,a),!0}function ie(o){let l=m(o);if(!l||!l.anchorNode||!o.contains(l.anchorNode))return[];let e=new Set,t=l.anchorNode;for(;t&&t!==o;){if(t instanceof HTMLElement){let i=Object.entries(F).find(([,n])=>n===t.tagName)?.[0];i&&e.add(i)}t=t.parentNode}return Array.from(e)}function ne(o,l){let e=m(o);if(!e||!e.anchorNode||!o.contains(e.anchorNode))return null;let t=e.anchorNode;for(;t&&t!==o;){if(t instanceof HTMLElement){let i=l==="color"?t.getAttribute("data-color"):t.getAttribute("data-highlight");if(i)return i}t=t.parentNode}return null}var me=z(G(_)),be=V(W(q(j(U(K(me)))))),s=class extends be{constructor(){super(...arguments);this.formatting=!1;this.formatToolbarLabel="Text formatting";this.formatBoldLabel="Bold";this.formatItalicLabel="Italic";this.formatUnderlineLabel="Underline";this.formatAlignLabel="Text alignment";this.formatAlignStartLabel="Align left";this.formatAlignCenterLabel="Center";this.formatAlignEndLabel="Align right";this.formatAlignJustifyLabel="Justify";this.formatTextColorLabel="Text color";this.formatHighlightLabel="Highlight";this.formatColorClearLabel="Default";this.colorLabels=Object.fromEntries($.map(e=>[e.name,e.label]));this.autocomplete="off";this.openPicker=null;this.activeTextColor=null;this.activeHighlight=null;this.previousActiveFormats=[];this.pendingMarks={bold:!1,italic:!1,underline:!1,color:null,highlight:null};this.pendingCaretNode=null;this.toolbarFocusIndex=0;this.checkLocalValidators=()=>this.formatting?this.checkEditableValidators():Y(this.fieldEl,["valueMissing","tooShort","tooLong"]);this.handleEditableInput=()=>{let e=this.fieldEl;if(!(e instanceof HTMLDivElement))return;let t=B(e);this.lastSyncedValue=t,this.value=t,this.resizeEditableField(),this.dispatchEvent(new H(this.value)),this.syncToolbarToSelection()};this.handleEditableBeforeInput=e=>{if(this.maxlength===void 0)return;let t=this.fieldEl;if(!(t instanceof HTMLDivElement)||!e.inputType.startsWith("insert"))return;let i=m(t);!(i&&!i.isCollapsed)&&(t.textContent?.length??0)>=this.maxlength&&e.preventDefault()};this.handleEditablePaste=e=>{let t=this.fieldEl;if(!(t instanceof HTMLDivElement))return;e.preventDefault();let i=e.clipboardData?.getData("text/plain")??"";if(!i)return;let n=m(t);if(!n||!n.rangeCount)return;let r=n.getRangeAt(0);r.deleteContents();let a=i.split(`
|
|
160
|
+
`);if(a.length===1){let d=document.createTextNode(a[0]);r.insertNode(d),r.setStartAfter(d),r.collapse(!0)}else{let d=Q(t,r.startContainer),h=r.cloneRange();d&&h.setEndAfter(d.lastChild??d);let p=h.extractContents();r.insertNode(document.createTextNode(a[0]));let f=d;for(let M=1;M<a.length;M+=1){let L=document.createElement("p");L.textContent=a[M],f?.after(L),f=L}f?.appendChild(p),f&&r.selectNodeContents(f),r.collapse(!1)}n.removeAllRanges(),n.addRange(r),this.handleEditableInput()};this.handleEditableKeydown=e=>{let t=this.fieldEl;if(!(t instanceof HTMLDivElement))return;let i=de(e);if(i){e.preventDefault();let f=ie(t).includes(i);this.applyFormat(i,!f);return}if(e.key!=="Enter")return;e.preventDefault();let n=m(t);if(!n||!n.rangeCount)return;let r=n.getRangeAt(0);r.deleteContents();let a=Q(t,r.startContainer);if(!a)return;a.hasChildNodes()||a.appendChild(document.createElement("br"));let d=r.cloneRange();d.setEndAfter(a.lastChild??a);let h=d.extractContents();a.hasChildNodes()||a.appendChild(document.createElement("br"));let p=document.createElement("p");p.appendChild(h),p.hasChildNodes()||p.appendChild(document.createElement("br")),a.after(p),r.selectNodeContents(p),r.collapse(!0),n.removeAllRanges(),n.addRange(r),this.handleEditableInput()};this.handleSelectionChange=()=>{this.cleanupAbandonedPendingMarker(),this.syncToolbarToSelection()};this.handleOutsideClick=e=>{e.composedPath().some(n=>n instanceof HTMLElement&&n.classList.contains("color-picker"))||this.closeColorPicker()};this.handleToolbarKeydown={handleEvent:e=>{let t=this.toolbarControls().filter(a=>!a.hasAttribute("disabled")),i=t.indexOf(e.target);if(i===-1)return;let n=t[i];if((e.key==="Enter"||e.key===" ")&&n.closest("#align-toolbar")){e.preventDefault(),e.stopPropagation(),n.click();return}let r;switch(e.key){case"ArrowRight":r=(i+1)%t.length;break;case"ArrowLeft":r=(i-1+t.length)%t.length;break;case"Home":r=0;break;case"End":r=t.length-1;break;default:return}e.preventDefault(),e.stopPropagation(),t[r].focus()},capture:!0}}get defaultValue(){return super.defaultValue}set defaultValue(e){super.defaultValue=e}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick,{capture:!0}),clearTimeout(this.toolbarRovingTimer),super.disconnectedCallback?.()}firstUpdated(){this.formatting&&this.fieldEl instanceof HTMLDivElement?(R(this.fieldEl,this.value??""),this.lastSyncedValue=this.value,this.resizeEditableField()):this.resizeToContent()}updated(e){if(super.updated(e),e.has("editing")&&this.editing&&this.fieldEl?.focus(),!this.formatting){(e.has("value")||e.has("editing"))&&this.resizeToContent();return}this.scheduleToolbarRoving(),(e.has("editing")&&this.editing||e.has("formatting")&&this.formatting||e.has("value")&&this.value!==this.lastSyncedValue)&&this.fieldEl instanceof HTMLDivElement&&this.fieldEl instanceof HTMLDivElement&&(R(this.fieldEl,this.value??""),this.lastSyncedValue=this.value),(e.has("value")||e.has("editing"))&&this.resizeEditableField()}checkEditableValidators(){let e=A(this.value??"");return this.minlength!==void 0&&e>0&&e<this.minlength?{validity:{tooShort:!0},message:this.validationDictionary.validation.tooShort(this.minlength,e)}:this.maxlength!==void 0&&e>this.maxlength?{validity:{tooLong:!0},message:this.validationDictionary.validation.tooLong(this.maxlength,e)}:{validity:{}}}get hostTabStop(){return!1}getFocusAnchor(){return this.fieldEl??void 0}focus(){super.focus?.(),this.fieldEl?.focus()}resizeToContent(){let e=this.fieldEl;if(!e||this.rows!==void 0)return;e.style.height="";let t=e.clientHeight;e.style.height="0px";let i=e.scrollHeight;e.style.height=i>t?`${i}px`:""}resizeEditableField(){let e=this.fieldEl;if(!e||!(e instanceof HTMLDivElement))return;if(this.rows===void 0){e.style.height="",e.style.overflowY="";return}let t=parseFloat(getComputedStyle(e).lineHeight)||20;e.style.height=`${t*this.rows}px`,e.style.overflowY="auto"}handleInput(e){this.value=e.target.value,this.resizeToContent(),this.dispatchEvent(new H(this.value))}syncToolbarToSelection(){if(!(!this.formatting||!this.fieldEl)){if(this.toolbarEl){let e=ie(this.fieldEl);this.previousActiveFormats=e,this.toolbarEl.value=e}this.activeTextColor=ne(this.fieldEl,"color"),this.activeHighlight=ne(this.fieldEl,"highlight")}}cleanupAbandonedPendingMarker(){let e=this.fieldEl,t=this.pendingCaretNode;if(!t||!(e instanceof HTMLDivElement))return;let i=m(e),n=i?.rangeCount?i.getRangeAt(0):null;n&&n.collapsed&&n.startContainer===t||(t.data===x?ee(e,t):t.data=t.data.replace(x,""),this.pendingCaretNode=null,this.pendingMarks={bold:!1,italic:!1,underline:!1,color:null,highlight:null})}updatePendingMarker(e,t){let i=t,n=this.pendingCaretNode,r=!!n&&t.startContainer===n;if(r&&n.data===x?(i=ee(e,n),this.pendingCaretNode=null):r&&(n.data=n.data.replace(x,""),this.pendingCaretNode=null),ue(this.pendingMarks))return;let a=he(this.pendingMarks);if(!a)return;i.insertNode(a);let h=document.createTreeWalker(a,NodeFilter.SHOW_TEXT).nextNode();if(!h)return;this.pendingCaretNode=h;let p=m(e);if(!p)return;let f=document.createRange();f.setStart(h,h.data.length),f.collapse(!0),p.removeAllRanges(),p.addRange(f)}applyFormat(e,t){let i=this.fieldEl;if(!(i instanceof HTMLDivElement))return;if(k(i)){if(!ge(i,e,t))return;this.handleEditableInput(),this.updateComplete.then(()=>{i.focus(),this.syncToolbarToSelection()});return}let r=Z(i);r&&(this.pendingMarks={...this.pendingMarks,[e]:t},this.updatePendingMarker(i,r),i.focus(),this.syncToolbarToSelection())}handleToolbarChange(e){e.stopPropagation();let i=e.target.value;Object.keys(F).forEach(n=>{let r=this.previousActiveFormats.includes(n),a=i.includes(n);r!==a&&this.applyFormat(n,a)}),this.previousActiveFormats=i}handleAlignChange(e){e.stopPropagation();let t=this.fieldEl;if(!(t instanceof HTMLDivElement))return;let[i]=e.target.value;t.style.textAlign=i==="start"?"":i,this.handleEditableInput(),this.updateComplete.then(()=>t.focus())}toggleColorPicker(e){if(this.openPicker===e){this.closeColorPicker();return}this.openPicker=e,document.addEventListener("click",this.handleOutsideClick,{capture:!0}),this.updateComplete.then(()=>{let t=this.colorSwatches();(t.find(i=>i.ariaChecked==="true")??t[0])?.focus()})}colorSwatches(){return Array.from(this.shadowRoot?.querySelectorAll(".color-picker-panel .color-swatch")??[])}handleColorPickerKeydown(e){let i=e.currentTarget.previousElementSibling;if(e.key==="Escape"||e.key==="Tab"){e.key==="Escape"&&e.preventDefault(),this.closeColorPicker(),i?.focus();return}let n=this.colorSwatches(),r=n.indexOf(this.shadowRoot?.activeElement),a;switch(e.key){case"ArrowRight":case"ArrowDown":a=(r+1)%n.length;break;case"ArrowLeft":case"ArrowUp":a=(r-1+n.length)%n.length;break;case"Home":a=0;break;case"End":a=n.length-1;break;default:return}e.preventDefault(),n[a]?.focus()}closeColorPicker(){this.openPicker!==null&&(this.openPicker=null,document.removeEventListener("click",this.handleOutsideClick,{capture:!0}))}selectColor(e,t){let i=this.fieldEl;if(i instanceof HTMLDivElement)if(k(i))fe(i,e,t)&&this.handleEditableInput();else{let r=Z(i);r&&(this.pendingMarks={...this.pendingMarks,[e]:t},this.updatePendingMarker(i,r),this.syncToolbarToSelection())}this.closeColorPicker(),this.updateComplete.then(()=>this.fieldEl?.focus())}toolbarControls(){return Array.from(this.shadowRoot?.querySelectorAll("#toolbar-groups eun-toggle-item, #toolbar-groups .color-picker-trigger")??[])}scheduleToolbarRoving(){clearTimeout(this.toolbarRovingTimer),this.toolbarRovingTimer=setTimeout(()=>this.applyToolbarRoving())}applyToolbarRoving(){if(this.disabled||this.readonly)return;let e=this.toolbarControls(),t=Math.min(this.toolbarFocusIndex,e.length-1);e.forEach((i,n)=>{i.setAttribute("tabindex",n===t?"0":"-1")})}handleToolbarFocusIn(e){let t=this.toolbarControls().indexOf(e.target);t!==-1&&t!==this.toolbarFocusIndex&&(this.toolbarFocusIndex=t,this.applyToolbarRoving())}renderToolbar(){let e=this.disabled||this.readonly,t=N(this.value??"").align;return g`
|
|
158
161
|
<div
|
|
159
162
|
id="toolbar-groups"
|
|
160
163
|
role="toolbar"
|
|
@@ -259,7 +262,7 @@ import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk
|
|
|
259
262
|
></button>
|
|
260
263
|
`)}
|
|
261
264
|
</div>
|
|
262
|
-
`:
|
|
265
|
+
`:b}
|
|
263
266
|
</div>
|
|
264
267
|
`}renderCharCount(){let e=this.formatting?A(this.value??""):this.value?.length??0,t=this.maxlength!==void 0&&e>this.maxlength;return g`
|
|
265
268
|
<span id="char-count" ?data-exceeded=${t}
|
|
@@ -294,7 +297,7 @@ import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk
|
|
|
294
297
|
maxlength=${v(this.maxlength)}
|
|
295
298
|
aria-invalid=${this.showError}
|
|
296
299
|
aria-label=${v(this.label)}
|
|
297
|
-
aria-describedby=${e||
|
|
300
|
+
aria-describedby=${e||b}
|
|
298
301
|
@input=${this.handleInput}
|
|
299
302
|
@select=${this.handleSelectionChange}
|
|
300
303
|
@keyup=${this.handleSelectionChange}
|
|
@@ -308,10 +311,10 @@ import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk
|
|
|
308
311
|
tabindex=${this.disabled?"-1":"0"}
|
|
309
312
|
role="textbox"
|
|
310
313
|
aria-multiline="true"
|
|
311
|
-
aria-required=${this.required?"true":
|
|
314
|
+
aria-required=${this.required?"true":b}
|
|
312
315
|
aria-invalid=${this.showError}
|
|
313
316
|
aria-label=${v(this.label)}
|
|
314
|
-
aria-describedby=${e||
|
|
317
|
+
aria-describedby=${e||b}
|
|
315
318
|
@beforeinput=${this.handleEditableBeforeInput}
|
|
316
319
|
@input=${this.handleEditableInput}
|
|
317
320
|
@paste=${this.handleEditablePaste}
|
|
@@ -321,9 +324,9 @@ import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk
|
|
|
321
324
|
@click=${this.handleSelectionChange}
|
|
322
325
|
@focus=${this.handleSelectionChange}
|
|
323
326
|
></div>
|
|
324
|
-
${!this.value&&this.placeholder?g`<span id="editable-placeholder">${this.placeholder}</span>`:
|
|
327
|
+
${!this.value&&this.placeholder?g`<span id="editable-placeholder">${this.placeholder}</span>`:b}
|
|
325
328
|
`}renderField(e){let t=[e?"description":null,this.maxlength!==void 0?"char-count":null].filter(i=>!!i).join(" ");return g`
|
|
326
|
-
${this.formatting?this.renderToolbar():
|
|
329
|
+
${this.formatting?this.renderToolbar():b}
|
|
327
330
|
<div id="field-wrapper">
|
|
328
331
|
${this.formatting?this.renderEditableField(t):this.renderNativeField(t)}
|
|
329
332
|
</div>
|
|
@@ -332,7 +335,7 @@ import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk
|
|
|
332
335
|
<eun-button
|
|
333
336
|
class="confirm"
|
|
334
337
|
size="s"
|
|
335
|
-
appearance="
|
|
338
|
+
appearance="soft"
|
|
336
339
|
rounded
|
|
337
340
|
type="button"
|
|
338
341
|
@click=${this.confirmEdit}
|
|
@@ -353,10 +356,10 @@ import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk
|
|
|
353
356
|
`}render(){let e=this.readonlyAvailable&&!this.editing,t=this.renderDescription(),i=this.maxlength!==void 0&&!e;return g`
|
|
354
357
|
<div id="wrapper">
|
|
355
358
|
${this.renderFormLabels(e?void 0:"field")}
|
|
356
|
-
${e?this.renderReadonlyDisplay():this.renderField(t!==
|
|
357
|
-
${S(t!==
|
|
359
|
+
${e?this.renderReadonlyDisplay():this.renderField(t!==b)}
|
|
360
|
+
${S(t!==b||i,()=>g`
|
|
358
361
|
<div id="description-row">
|
|
359
|
-
${t} ${i?this.renderCharCount():
|
|
362
|
+
${t} ${i?this.renderCharCount():b}
|
|
360
363
|
</div>
|
|
361
364
|
`)}
|
|
362
365
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as ie,b as $,c as oe,d as re,e as ne,f as ae,g as E,h as D,i as se,j as I,k as le,m as h,o as H,p as de,q as ue,r as ce,s as me}from"./chunks/chunk-36KLGY6U.js";import"./chunks/chunk-VJCNHMQZ.js";import{a as J}from"./chunks/chunk-LK5BJ4SH.js";import{a as Z}from"./chunks/chunk-WIUERJII.js";import{a as Q}from"./chunks/chunk-QSZO4GIH.js";import{b as X,c as T}from"./chunks/chunk-624VJYNA.js";import{a as A}from"./chunks/chunk-LYYQAALT.js";import{a as ee,b as te}from"./chunks/chunk-WW4BTWMH.js";import{a as G}from"./chunks/chunk-GVS6IUKC.js";import{a as W}from"./chunks/chunk-P6LGU3FT.js";import{a as Y}from"./chunks/chunk-BO3JOEWM.js";import{b as B,c as j,d as U,e as q,f as C}from"./chunks/chunk-TLBXTBMM.js";import{a as P}from"./chunks/chunk-YYCEPZUN.js";import{a as N}from"./chunks/chunk-3BMACIDO.js";import{b as K}from"./chunks/chunk-BKZGTCMF.js";import"./chunks/chunk-PPCHQG7P.js";import"./chunks/chunk-SD2H5UDZ.js";import{a as V}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as R}from"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as r,f as _,h as x,j as s,k as M,l as g,p as u,r as S,u as O}from"./chunks/chunk-YITWLCD3.js";var be=x`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: 100%;
|
|
@@ -8,15 +8,15 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
gap: var(--eun-space-xs, 4px);
|
|
11
|
-
width: 100%;
|
|
12
11
|
color: var(--_textColor);
|
|
13
12
|
background-color: var(--_background);
|
|
14
13
|
border: var(--eun-border-width-m, 1.5px) solid var(--_borderColor);
|
|
15
14
|
border-radius: var(--_borderRadius);
|
|
16
|
-
padding: var(--
|
|
17
|
-
var(--
|
|
15
|
+
padding: var(--_paddingBlock) calc(var(--_defaultPaddingInline) / 2)
|
|
16
|
+
var(--_paddingBlock) var(--_defaultPaddingInline);
|
|
18
17
|
outline: 1px solid transparent;
|
|
19
|
-
box-sizing:
|
|
18
|
+
box-sizing: content-box;
|
|
19
|
+
height: var(--_lineHeight);
|
|
20
20
|
transition:
|
|
21
21
|
border-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease),
|
|
22
22
|
outline-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease);
|
|
@@ -71,9 +71,10 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
71
71
|
box-sizing: content-box;
|
|
72
72
|
border: none;
|
|
73
73
|
background: none;
|
|
74
|
-
padding:
|
|
74
|
+
padding: 0 1px;
|
|
75
75
|
color: inherit;
|
|
76
76
|
font: inherit;
|
|
77
|
+
line-height: var(--_lineHeight);
|
|
77
78
|
text-align: center;
|
|
78
79
|
outline: none;
|
|
79
80
|
overflow: visible;
|
|
@@ -99,6 +100,7 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
99
100
|
padding-inline: 2px;
|
|
100
101
|
}
|
|
101
102
|
#clock-trigger {
|
|
103
|
+
--icon-size: min(16px, var(--_lineHeight));
|
|
102
104
|
display: flex;
|
|
103
105
|
align-items: center;
|
|
104
106
|
justify-content: center;
|
|
@@ -180,7 +182,7 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
180
182
|
#modal-time .modal-footer {
|
|
181
183
|
padding: var(--eun-space-m);
|
|
182
184
|
}
|
|
183
|
-
`,
|
|
185
|
+
`,pe=[Q,be],ye=x`
|
|
184
186
|
@supports (anchor-name: --a) {
|
|
185
187
|
#clock-popover:popover-open {
|
|
186
188
|
position-try-fallbacks: --eun-time-picker-above;
|
|
@@ -192,7 +194,7 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
192
194
|
bottom: calc(anchor(top) + 4px);
|
|
193
195
|
}
|
|
194
196
|
}
|
|
195
|
-
`,
|
|
197
|
+
`,he=ye;var xe=x`
|
|
196
198
|
.tp-list {
|
|
197
199
|
display: flex;
|
|
198
200
|
flex-direction: column;
|
|
@@ -243,20 +245,20 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
243
245
|
cursor: not-allowed;
|
|
244
246
|
opacity: 0.4;
|
|
245
247
|
}
|
|
246
|
-
`,
|
|
248
|
+
`,fe=xe;var Me=1440;function ve(d){let{format:b,hour:e,minute:t,locale:i,disabled:n=!1,onPick:c}=d,m=Math.max(1,Math.round(d.stepMinutes)),k=new Intl.DateTimeFormat(i,{hour:"numeric",minute:"2-digit",hourCycle:b===12?"h12":"h23"}),f=[];for(let a=0;a<Me;a+=m){let l=Math.floor(a/60),p=a%60;f.push({hour24:l,minute:p,text:k.format(new Date(2e3,0,1,l,p)),selected:l===e&&p===t})}let F=f.findIndex(a=>a.selected),z=F===-1?0:F,v=(a,l)=>{let p=a.querySelectorAll('[role="option"]'),w=Math.min(Math.max(l,0),p.length-1);p[w]?.focus()},ge=a=>{let l=a.currentTarget,p=Array.from(l.querySelectorAll('[role="option"]')),w=p.indexOf(document.activeElement),y=w===-1?z:w;switch(a.key){case"ArrowDown":a.preventDefault(),v(l,y+1);break;case"ArrowUp":a.preventDefault(),v(l,y-1);break;case"PageDown":a.preventDefault(),v(l,y+5);break;case"PageUp":a.preventDefault(),v(l,y-5);break;case"Home":a.preventDefault(),v(l,0);break;case"End":a.preventDefault(),v(l,p.length-1);break;case"Enter":case" ":{a.preventDefault();let L=f[y];L&&c(L.hour24,L.minute);break}default:break}};return u`
|
|
247
249
|
<div
|
|
248
250
|
class="tp-list"
|
|
249
251
|
role="listbox"
|
|
250
|
-
aria-label=${
|
|
252
|
+
aria-label=${d.ariaLabel??"Time"}
|
|
251
253
|
aria-disabled=${n?"true":"false"}
|
|
252
|
-
@keydown=${
|
|
254
|
+
@keydown=${ge}
|
|
253
255
|
>
|
|
254
|
-
${f.map((a,l)=>
|
|
256
|
+
${f.map((a,l)=>u`
|
|
255
257
|
<button
|
|
256
258
|
type="button"
|
|
257
259
|
role="option"
|
|
258
|
-
class=${
|
|
259
|
-
tabindex=${n?"-1":l===
|
|
260
|
+
class=${V({"tp-list-item":!0,selected:a.selected})}
|
|
261
|
+
tabindex=${n?"-1":l===z?"0":"-1"}
|
|
260
262
|
aria-selected=${a.selected?"true":"false"}
|
|
261
263
|
?disabled=${n}
|
|
262
264
|
@click=${()=>c(a.hour24,a.minute)}
|
|
@@ -265,7 +267,7 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
265
267
|
</button>
|
|
266
268
|
`)}
|
|
267
269
|
</div>
|
|
268
|
-
`}var
|
|
270
|
+
`}var Se="eun-time-picker",ke=N(q(O)),we=R(J(W(Z(G(Y(U(j(ke)))))))),o=class extends we{constructor(){super();this.stepMinute=1;this.mobileMode="wheel";this.panelMode="columns";this.listStepMinutes=30;this.noAnimation=!1;this.applyLabel="Apply";this.hourPlaceholder="hh";this.minutePlaceholder="mm";this.hideTimezoneLabel=!1;this.isOpen=!1;this.handleImplicitSubmission=e=>{let t=this.internals.form,i=e.composedPath()[0];!t||this.isOpen||!(i instanceof Element&&i.matches(".segment"))||!ee(e)||(e.preventDefault(),te(t))};this.isModalOpen=!1;this.stagingValue=null;this.segments={hour:"",minute:"",period:""};this.checkLocalValidators=()=>{let e=this.resolvedHourFormat();if(Pe(this.segments)&&!D(this.segments,e))return{validity:{badInput:!0},message:this.dictionary.validation.invalidTime};if(this.value){let{hour:t,minute:i}=h(this.value,this.timezone),n=le({hour:t,minute:i},I(this.minTime),I(this.maxTime));if(!n.valid)return n.violation==="min"?{validity:{rangeUnderflow:!0},message:this.dictionary.timePicker.mustBeAtOrAfter(this.minTime??"")}:{validity:{rangeOverflow:!0},message:this.dictionary.timePicker.mustBeAtOrBefore(this.maxTime??"")}}return{validity:{}}};this.handleHourColumnChange=e=>{let{minute:t}=h(this.displaySource,this.timezone);this.commitAdjustment(e,t)};this.handleMinuteColumnChange=e=>{let{hour:t}=h(this.displaySource,this.timezone);this.commitAdjustment(t,e)};this.handlePeriodColumnChange=e=>{let{hour:t,minute:i}=h(this.displaySource,this.timezone),{hour:n}=$(t);this.commitAdjustment(oe(n,e),i)};this.handleTriggerClick=()=>{if(!(this.disabled||this.readonly)){if(this.resetStaging(),this.panelMode!=="list"&&this.isMobileViewport()){this.isModalOpen=!0;return}this.updateComplete.then(()=>{let e=this.popoverEl;if(!e)return;let t=this.popoverAnimation!==void 0;this.popoverAnimation?.cancel(),this.popoverAnimation=void 0;let i=!e.matches(":popover-open");i&&e.showPopover(),(i||t)&&this.playPopoverOpenAnimation(e)})}};this.handlePopoverToggle=e=>{if(e.newState==="open"){this.isOpen=!0,this.fieldWrapperEl&&this.popoverEl&&this.anchorFloatingElement(this.fieldWrapperEl,this.popoverEl,{forceFallback:A}),this.observeAnchorVisibility(this.fieldWrapperEl,()=>this.closePopover()),this.updateComplete.then(()=>this.panelMode==="list"?this.focusListSelection():this.focusFirstSpinbutton());return}this.isOpen=!1,this.unanchorFloatingElement(),this.unobserveAnchorVisibility(),this.triggerEl?.focus()};this.handleModalConfirm=()=>{this.commitStaged(),this.isModalOpen=!1};this.handleModalCancel=()=>{this.isModalOpen=!1};this.handleListPick=(e,t)=>{this.commitAdjustment(e,t),this.closePopover()};this.handlePeriodSegmentClick=()=>{this.setPeriodSegment(re(this.segments.period||"AM"))};this.handlePeriodSegmentKeydown=e=>{switch(e.key){case"ArrowUp":case"ArrowDown":case"Enter":case" ":e.preventDefault(),this.handlePeriodSegmentClick();break;case"a":case"A":e.preventDefault(),this.setPeriodSegment("AM");break;case"p":case"P":e.preventDefault(),this.setPeriodSegment("PM");break;case"ArrowLeft":e.preventDefault(),this.focusPreviousSegment("period");break;case"ArrowRight":e.preventDefault(),this.focusNextSegment("period");break;default:break}};this.addEventListener("keydown",this.handleImplicitSubmission)}get defaultValue(){return super.defaultValue}set defaultValue(e){super.defaultValue=e}willUpdate(e){let t=e.has("segments")||e.has("minTime")||e.has("maxTime");if(e.has("value")||e.has("timezone")||e.has("hourFormat")||e.has("locale")){let i=this.resolvedHourFormat();if(this.value){let n=h(this.value,this.timezone);this.segments=E(n.hour,n.minute,i)}else this.segments=E(null,null,i);t=!0}t&&this.checkValidity(this.value??null),super.willUpdate(e)}updated(e){super.updated(e),B(e)&&this.setAttribute("aria-invalid",String(this.showError))}get hostTabStop(){return!1}getFocusAnchor(){return this.firstSegmentEl??void 0}focus(){super.focus?.(),this.firstSegmentEl?.focus()}isMobileViewport(){return window.matchMedia(K("tablet")).matches}resolvedHourFormat(){return ie(this.locale,this.hourFormat)}get displaySource(){return this.stagingValue??this.value??new Date}resetStaging(){this.stagingValue=this.value??null}commitStaged(){this.value=this.stagingValue,this.dispatchEvent(new P(this.value))}commitAdjustment(e,t){let i=H(this.displaySource,this.timezone,e,t);this.stagingValue=i,!this.isModalOpen&&(this.value=i,this.dispatchEvent(new P(this.value)))}commitTypedTime(e,t){this.value=H(this.value??new Date,this.timezone,e,t),this.dispatchEvent(new P(this.value)),(this.isOpen||this.isModalOpen)&&this.resetStaging()}commitSegmentGroupIfComplete(e){let t=this.resolvedHourFormat();if(!se(e,t))return;let i=D(e,t);i&&this.commitTypedTime(i.hour,i.minute)}popoverAnimationDuration(e){return this.noAnimation||window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:X(e,"--time-picker-panel-transition-duration","m",200)}playPopoverOpenAnimation(e){e.style.removeProperty("pointer-events");let t=this.popoverAnimationDuration(e);t!==0&&(this.popoverAnimation=e.animate([{opacity:0,transform:"scaleY(0.01)"},{opacity:1,transform:"scaleY(1)"}],{duration:t,easing:T(e),fill:"forwards"}))}closePopover(){let e=this.popoverEl;this.popoverAnimation?.cancel(),this.popoverAnimation=void 0,e?.matches(":popover-open")&&this.playPopoverCloseAnimation(e)}playPopoverCloseAnimation(e){e.style.pointerEvents="none";let t=this.popoverAnimationDuration(e);if(t===0){e.hidePopover();return}let i=e.animate([{opacity:1,transform:"scaleY(1)"},{opacity:0,transform:"scaleY(0.01)"}],{duration:t,easing:T(e),fill:"forwards"});this.popoverAnimation=i,i.finished.then(()=>{this.popoverAnimation===i&&(this.popoverAnimation=void 0),e.hidePopover()}).catch(()=>{})}focusFirstSpinbutton(){(this.isModalOpen?this.shadowRoot:this.popoverEl)?.querySelector('[role="spinbutton"]')?.focus({preventScroll:!0})}focusListSelection(){let e=this.popoverEl?.querySelector('[role="option"][aria-selected="true"]')??this.popoverEl?.querySelector('[role="option"]');e?.focus({preventScroll:!0}),e?.scrollIntoView({block:"center",behavior:this.noAnimation?"instant":"smooth"})}visibleSegmentOrder(){let e=ne(this.resolvedHourFormat());return ae(this.locale).filter(t=>e.includes(t))}focusPreviousSegment(e){let t=this.visibleSegmentOrder(),i=t.indexOf(e);i<=0||this.focusSegment(t[i-1])}focusNextSegment(e){let t=this.visibleSegmentOrder(),i=t.indexOf(e);i===-1||i>=t.length-1||this.focusSegment(t[i+1])}focusSegment(e){this.shadowRoot?.querySelector(`.segment-${e}`)?.focus()}handleSegmentInput(e,t){let i=e.target,n=i.value.replace(/\D/g,"").slice(0,2);i.value=n;let c={...this.segments,[t]:n};this.segments=c,n.length===2&&this.focusNextSegment(t),this.commitSegmentGroupIfComplete(c)}handleSegmentKeydown(e,t){let i=e.target;e.key==="Backspace"&&i.value===""||e.key==="ArrowLeft"?(e.preventDefault(),this.focusPreviousSegment(t)):e.key==="ArrowRight"?(e.preventDefault(),this.focusNextSegment(t)):e.key==="ArrowUp"?(e.preventDefault(),this.adjustSegment(t,1)):e.key==="ArrowDown"&&(e.preventDefault(),this.adjustSegment(t,-1))}adjustSegment(e,t){let i=this.resolvedHourFormat(),n=e==="hour"?i===12?{min:1,max:12}:{min:0,max:23}:{min:0,max:59},c=Number(this.segments[e]),m;if(this.segments[e]===""||Number.isNaN(c)){let f=h(this.displaySource,this.timezone);m=e==="hour"?i===12?$(f.hour).hour:f.hour:f.minute}else m=c+t,m>n.max?m=n.min:m<n.min&&(m=n.max);let k={...this.segments,[e]:String(m).padStart(2,"0")};this.segments=k,this.commitSegmentGroupIfComplete(k)}setPeriodSegment(e){if(this.disabled||this.readonly)return;let t={...this.segments,period:e};this.segments=t,this.commitSegmentGroupIfComplete(t)}renderSegment(e){return e==="period"?u`
|
|
269
271
|
<button
|
|
270
272
|
type="button"
|
|
271
273
|
class="segment segment-period"
|
|
@@ -277,7 +279,7 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
277
279
|
>
|
|
278
280
|
${this.segments.period||"--"}
|
|
279
281
|
</button>
|
|
280
|
-
`:
|
|
282
|
+
`:u`
|
|
281
283
|
<input
|
|
282
284
|
class="segment segment-${e}"
|
|
283
285
|
type="text"
|
|
@@ -293,7 +295,7 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
293
295
|
@input=${t=>this.handleSegmentInput(t,e)}
|
|
294
296
|
@keydown=${t=>this.handleSegmentKeydown(t,e)}
|
|
295
297
|
/>
|
|
296
|
-
`}renderField(){let e=this.visibleSegmentOrder();return
|
|
298
|
+
`}renderField(){let e=this.visibleSegmentOrder();return u`
|
|
297
299
|
<div id="field-wrapper">
|
|
298
300
|
<div
|
|
299
301
|
class="segment-group"
|
|
@@ -301,8 +303,8 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
301
303
|
aria-label=${this.label??this.dictionary.timePicker.time}
|
|
302
304
|
aria-describedby=${this.description?.length?"description":S}
|
|
303
305
|
>
|
|
304
|
-
${e.map((t,i)=>{let n=e[i-1];return
|
|
305
|
-
${i===0?S:
|
|
306
|
+
${e.map((t,i)=>{let n=e[i-1];return u`
|
|
307
|
+
${i===0?S:u`<span class="segment-divider" aria-hidden="true"
|
|
306
308
|
>${n==="hour"&&t==="minute"||n==="minute"&&t==="hour"?":":" "}</span
|
|
307
309
|
>`}
|
|
308
310
|
${this.renderSegment(t)}
|
|
@@ -317,10 +319,10 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
317
319
|
?disabled=${this.disabled}
|
|
318
320
|
@click=${this.handleTriggerClick}
|
|
319
321
|
>
|
|
320
|
-
<eun-icon name="access_time"
|
|
322
|
+
<eun-icon name="access_time"></eun-icon>
|
|
321
323
|
</button>
|
|
322
324
|
</div>
|
|
323
|
-
`}renderTimezoneLabel(){if(this.hideTimezoneLabel||!this.timezone||
|
|
325
|
+
`}renderTimezoneLabel(){if(this.hideTimezoneLabel||!this.timezone||de(this.timezone))return S;let e=ue(this.value??new Date,this.timezone,{locale:this.locale});return u`<p id="timezone-label">${e}</p>`}renderPanelContent(e){let t=this.resolvedHourFormat(),i=h(this.displaySource,this.timezone),n=i.hour<12?"AM":"PM";return ce({visual:e,format:t,hour:i.hour,minute:i.minute,period:n,stepMinute:this.stepMinute,disabled:this.disabled,noAnimation:this.noAnimation,ariaLabelGroup:this.dictionary.timePicker.time,ariaLabelHour:this.dictionary.timePicker.hour,ariaLabelMinute:this.dictionary.timePicker.minute,ariaLabelPeriod:this.dictionary.timePicker.amPm,onHourChange:this.handleHourColumnChange,onMinuteChange:this.handleMinuteColumnChange,onPeriodChange:this.handlePeriodColumnChange})}renderListPanelContent(){let e=this.resolvedHourFormat(),t=h(this.displaySource,this.timezone);return ve({format:e,hour:t.hour,minute:t.minute,locale:this.locale,stepMinutes:this.listStepMinutes,disabled:this.disabled,ariaLabel:this.label??this.dictionary.timePicker.time,onPick:this.handleListPick})}formatModalPreview(){if(!this.stagingValue)return this.dictionary.timePicker.selectATime;let e=this.resolvedHourFormat();return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"2-digit",hourCycle:e===12?"h12":"h23",timeZone:this.timezone}).format(this.stagingValue)}render(){return u`
|
|
324
326
|
<div id="wrapper">
|
|
325
327
|
${this.renderFormLabels("clock-trigger")} ${this.renderField()}
|
|
326
328
|
${this.renderTimezoneLabel()} ${this.renderDescription()}
|
|
@@ -342,7 +344,7 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
342
344
|
@euncancel=${this.handleModalCancel}
|
|
343
345
|
id="modal-time"
|
|
344
346
|
>
|
|
345
|
-
${this.isModalOpen?
|
|
347
|
+
${this.isModalOpen?u`
|
|
346
348
|
<div id="modal-time-heading">${this.formatModalPreview()}</div>
|
|
347
349
|
${this.renderPanelContent(this.mobileMode==="wheel"?"wheel":"buttons")}
|
|
348
350
|
`:S}
|
|
@@ -359,4 +361,4 @@ import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as
|
|
|
359
361
|
</eun-button>
|
|
360
362
|
</div>
|
|
361
363
|
</eun-modal>
|
|
362
|
-
`}};o.styles=[
|
|
364
|
+
`}};o.styles=[pe,...A?[]:[he],me,fe,C.base,C.errorMessages,C.hintMessages],r([s()],o.prototype,"timezone",2),r([s({type:Number,attribute:"hour-format"})],o.prototype,"hourFormat",2),r([s({type:Number,attribute:"step-minute"})],o.prototype,"stepMinute",2),r([s({attribute:"min-time"})],o.prototype,"minTime",2),r([s({attribute:"max-time"})],o.prototype,"maxTime",2),r([s({attribute:"mobile-mode"})],o.prototype,"mobileMode",2),r([s({attribute:"panel-mode"})],o.prototype,"panelMode",2),r([s({type:Number,attribute:"list-step-minutes"})],o.prototype,"listStepMinutes",2),r([s({type:Boolean,reflect:!0,attribute:"no-animation"})],o.prototype,"noAnimation",2),r([s({attribute:"apply-label"})],o.prototype,"applyLabel",2),r([s({attribute:"cancel-label"})],o.prototype,"cancelLabel",2),r([s({attribute:"clock-label"})],o.prototype,"clockLabel",2),r([s({attribute:"hour-placeholder"})],o.prototype,"hourPlaceholder",2),r([s({attribute:"minute-placeholder"})],o.prototype,"minutePlaceholder",2),r([s({type:Boolean,attribute:"hide-timezone-label"})],o.prototype,"hideTimezoneLabel",2),r([s({attribute:"default-value",converter:{fromAttribute:e=>Ce(e),toAttribute:e=>e?Le(e):null}})],o.prototype,"defaultValue",1),r([M()],o.prototype,"isOpen",2),r([M()],o.prototype,"isModalOpen",2),r([M()],o.prototype,"stagingValue",2),r([M()],o.prototype,"segments",2),r([g("#clock-trigger")],o.prototype,"triggerEl",2),r([g("#clock-popover")],o.prototype,"popoverEl",2),r([g("#field-wrapper")],o.prototype,"fieldWrapperEl",2),r([g("#modal-time")],o.prototype,"modalEl",2),r([g(".segment")],o.prototype,"firstSegmentEl",2),o=r([_(Se)],o);function Pe(d){return d.hour!==""||d.minute!==""||d.period!==""}function Ce(d){if(!d)return null;let b=new Date(d);return Number.isNaN(b.getTime())?null:b}function Le(d){return d?d.toISOString():""}export{o as EunomiaTimePicker,Se as EunomiaTimePickerTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as _}from"./chunks/chunk-YQU6RVX4.js";import{e as y}from"./chunks/chunk-GDBPWZN6.js";import{a as k}from"./chunks/chunk-UP4M7TER.js";import{a as x}from"./chunks/chunk-PPCHQG7P.js";import{a as u}from"./chunks/chunk-6TIEBY34.js";import{a as h}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as E}from"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as i,f as g,h as m,j as a,n as d,p as s,r as p,u as b}from"./chunks/chunk-YITWLCD3.js";var c=new Map;function w(r){let n=getComputedStyle(r).getPropertyValue("--toast-stack-gap").trim(),t=Number.parseFloat(n);return Number.isNaN(t)?8:t}function C(r){let n=c.get(r);if(!n||n.length===0)return;let t=0;for(let o=n.length-1;o>=0;o-=1){let l=n[o];l.el.style.setProperty("--_toastStackOffset",`${t}px`);let T=l.el.getBoundingClientRect().height;t+=T+w(l.el)}}function v(r,n){let t=c.get(r)??[];t.some(o=>o.el===n)||(t.push({position:r,el:n}),c.set(r,t)),C(r)}function f(r,n){let t=c.get(r);if(!t)return;let o=t.findIndex(l=>l.el===n);if(o!==-1){if(t.splice(o,1),t.length===0){c.delete(r);return}C(r)}}var F=m`
|
|
2
2
|
:host {
|
|
3
3
|
position: fixed;
|
|
4
4
|
display: block;
|
|
@@ -24,7 +24,7 @@ import{a as x}from"./chunks/chunk-YQU6RVX4.js";import{e as _}from"./chunks/chunk
|
|
|
24
24
|
visibility 0s linear var(--_transitionDuration);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:host([open]) {
|
|
27
|
+
:host([open]:not([open="false"])) {
|
|
28
28
|
visibility: visible;
|
|
29
29
|
opacity: 1;
|
|
30
30
|
--_baseX: 0px;
|
|
@@ -35,7 +35,7 @@ import{a as x}from"./chunks/chunk-YQU6RVX4.js";import{e as _}from"./chunks/chunk
|
|
|
35
35
|
visibility 0s linear 0s;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
:host([open][entering]) {
|
|
38
|
+
:host([open]:not([open="false"])[entering]) {
|
|
39
39
|
visibility: hidden;
|
|
40
40
|
opacity: 0;
|
|
41
41
|
--_baseX: var(--_enterX, 0px);
|
|
@@ -288,7 +288,7 @@ import{a as x}from"./chunks/chunk-YQU6RVX4.js";import{e as _}from"./chunks/chunk
|
|
|
288
288
|
--button-text: var(--_onFilled, #fff);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
:host([closeable]) #toast {
|
|
291
|
+
:host([closeable]:not([closeable="false"])) #toast {
|
|
292
292
|
padding-right: calc(
|
|
293
293
|
var(
|
|
294
294
|
--toast-padding,
|
|
@@ -323,7 +323,7 @@ import{a as x}from"./chunks/chunk-YQU6RVX4.js";import{e as _}from"./chunks/chunk
|
|
|
323
323
|
transition-duration: 0.01ms;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
`,S=
|
|
326
|
+
`,S=F;var I="eun-toast",D=600,e=class extends E(b){constructor(){super(...arguments);this.appearance="default";this.position="top-right";this.hideIcon=!1;this.closeable=!0;this.duration=5e3;this.open=!0;this.remainingMs=0;this.deadline=0;this.paused=!1;this.exitDispatched=!1;this.stacked=!1;this.handlePauseStart=()=>{this.isPersistent()||this.timerId===void 0||(this.paused=!0,this.remainingMs=Math.max(this.deadline-Date.now(),0),this.clearTimer())};this.handlePauseEnd=()=>{if(this.paused){if(this.paused=!1,this.remainingMs<=0){this.hide();return}this.armTimer()}};this.handleSlotChange=()=>{this.requestUpdate()};this.handleCloseClick=()=>{this.hide()}}connectedCallback(){super.connectedCallback(),this.open&&(this.setAttribute("entering",""),this.enteringFrameId=requestAnimationFrame(()=>{this.enteringFrameId=requestAnimationFrame(()=>{this.enteringFrameId=void 0,this.removeAttribute("entering")})}))}disconnectedCallback(){this.enteringFrameId!==void 0&&(cancelAnimationFrame(this.enteringFrameId),this.enteringFrameId=void 0),this.clearTimer(),this.clearExitDispatch(),this.leaveStack(),super.disconnectedCallback()}updated(t){if(super.updated(t),t.has("open")){this.open?(this.exitDispatched=!1,this.joinStack(),this.scheduleAutoClose()):(this.clearTimer(),this.leaveStack(),this.armExitDispatch());return}t.has("position")&&this.open&&this.stacked&&(f(t.get("position"),this),v(this.position,this)),(t.has("duration")||t.has("severity"))&&this.open&&!this.paused&&this.scheduleAutoClose()}isFixedPositioned(){return getComputedStyle(this).position==="fixed"}joinStack(){this.isFixedPositioned()&&(this.stacked=!0,v(this.position,this))}leaveStack(){this.stacked&&(this.stacked=!1,f(this.position,this))}show(){this.open=!0}hide(){this.open=!1}isPersistent(){return this.severity==="critical"||this.duration<=0}scheduleAutoClose(){this.clearTimer(),!this.isPersistent()&&(this.remainingMs=this.duration,this.paused=!1,this.armTimer())}armTimer(){this.deadline=Date.now()+this.remainingMs,this.timerId=setTimeout(()=>this.hide(),this.remainingMs)}clearTimer(){this.timerId!==void 0&&(clearTimeout(this.timerId),this.timerId=void 0)}armExitDispatch(){this.clearExitDispatch(),this.exitDispatched=!1;let t=()=>{this.exitDispatched||(this.exitDispatched=!0,this.clearExitDispatch(),this.dispatchEvent(new _))};this.exitTransitionListener=o=>{o.target===this&&o.propertyName==="opacity"&&t()},this.addEventListener("transitionend",this.exitTransitionListener),this.exitFallbackId=setTimeout(t,D)}clearExitDispatch(){this.exitTransitionListener&&(this.removeEventListener("transitionend",this.exitTransitionListener),this.exitTransitionListener=void 0),this.exitFallbackId!==void 0&&(clearTimeout(this.exitFallbackId),this.exitFallbackId=void 0)}getIconName(){return k(this.icon,this.severity,"severity")}shouldHideIcon(){return this.hideIcon?!0:this.iconSlotEls.length>0||this.severity?!1:!this.icon}shouldShowCloseButton(){return this.closeable||this.severity==="critical"}hasDescription(){return!!this.richText||this.descriptionSlotEls.length>0}hasAction(){return this.actionSlotEls.length>0}render(){let t=this.severity==="warning"||this.severity==="critical"?"alert":"status",o=this.shouldHideIcon();return s`
|
|
327
327
|
<div
|
|
328
328
|
id="toast"
|
|
329
329
|
role=${t}
|
|
@@ -351,7 +351,7 @@ import{a as x}from"./chunks/chunk-YQU6RVX4.js";import{e as _}from"./chunks/chunk
|
|
|
351
351
|
id="icon"
|
|
352
352
|
size="20"
|
|
353
353
|
shape="round"
|
|
354
|
-
name=${
|
|
354
|
+
name=${x(this.getIconName())}
|
|
355
355
|
></eun-icon>
|
|
356
356
|
`}
|
|
357
357
|
</slot>
|
|
@@ -362,11 +362,11 @@ import{a as x}from"./chunks/chunk-YQU6RVX4.js";import{e as _}from"./chunks/chunk
|
|
|
362
362
|
id="description"
|
|
363
363
|
class=${h({hidden:!this.hasDescription()})}
|
|
364
364
|
>
|
|
365
|
-
${this.richText?s`<div id="rich-text">${
|
|
365
|
+
${this.richText?s`<div id="rich-text">${y(this.richText)}</div>`:p}
|
|
366
366
|
<slot name="description" @slotchange=${this.handleSlotChange}></slot>
|
|
367
367
|
</div>
|
|
368
368
|
<div id="action" class=${h({hidden:!this.hasAction()})}>
|
|
369
369
|
<slot name="action" @slotchange=${this.handleSlotChange}></slot>
|
|
370
370
|
</div>
|
|
371
371
|
</div>
|
|
372
|
-
`}};e.styles=S,i([a({reflect:!0})],e.prototype,"severity",2),i([a({reflect:!0,useDefault:!0})],e.prototype,"appearance",2),i([a({reflect:!0,useDefault:!0})],e.prototype,"position",2),i([a({reflect:!0})],e.prototype,"slide",2),i([a()],e.prototype,"heading",2),i([a()],e.prototype,"icon",2),i([a({type:Boolean,attribute:"hide-icon"})],e.prototype,"hideIcon",2),i([a({attribute:"rich-text"})],e.prototype,"richText",2),i([a({
|
|
372
|
+
`}};e.styles=S,i([a({reflect:!0})],e.prototype,"severity",2),i([a({reflect:!0,useDefault:!0})],e.prototype,"appearance",2),i([a({reflect:!0,useDefault:!0})],e.prototype,"position",2),i([a({reflect:!0})],e.prototype,"slide",2),i([a()],e.prototype,"heading",2),i([a()],e.prototype,"icon",2),i([a({type:Boolean,attribute:"hide-icon"})],e.prototype,"hideIcon",2),i([a({attribute:"rich-text"})],e.prototype,"richText",2),i([a({converter:u,reflect:!0})],e.prototype,"closeable",2),i([a({attribute:"close-label"})],e.prototype,"closeLabel",2),i([a({type:Number})],e.prototype,"duration",2),i([a({converter:u,reflect:!0})],e.prototype,"open",2),i([d({slot:"description"})],e.prototype,"descriptionSlotEls",2),i([d({slot:"action"})],e.prototype,"actionSlotEls",2),i([d({slot:"icon"})],e.prototype,"iconSlotEls",2),e=i([g(I)],e);export{e as EunomiaToast,I as EunomiaToastTagName};
|