@vanelsas/baredom 0.2.6-alpha → 1.0.0-rc.1

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.
Files changed (58) hide show
  1. package/dist/base.js +349 -346
  2. package/dist/x-alert.js +17 -17
  3. package/dist/x-avatar-group.js +11 -11
  4. package/dist/x-avatar.js +17 -17
  5. package/dist/x-badge.js +11 -11
  6. package/dist/x-breadcrumbs.js +14 -14
  7. package/dist/x-button.js +15 -15
  8. package/dist/x-cancel-dialogue.js +16 -16
  9. package/dist/x-card.js +7 -7
  10. package/dist/x-chart.js +47 -47
  11. package/dist/x-checkbox.js +11 -11
  12. package/dist/x-chip.js +8 -8
  13. package/dist/x-collapse.js +10 -10
  14. package/dist/x-command-palette.js +30 -30
  15. package/dist/x-container.js +6 -6
  16. package/dist/x-context-menu.js +19 -19
  17. package/dist/x-copy.js +22 -22
  18. package/dist/x-currency-field.js +21 -21
  19. package/dist/x-date-picker.js +37 -37
  20. package/dist/x-divider.js +13 -10
  21. package/dist/x-drawer.js +11 -11
  22. package/dist/x-dropdown.js +9 -9
  23. package/dist/x-fieldset.js +6 -6
  24. package/dist/x-file-download.js +7 -7
  25. package/dist/x-form-field.js +15 -15
  26. package/dist/x-form.js +9 -9
  27. package/dist/x-grid.js +7 -7
  28. package/dist/x-menu-item.js +10 -10
  29. package/dist/x-menu.js +10 -10
  30. package/dist/x-modal.js +12 -12
  31. package/dist/x-navbar.js +13 -12
  32. package/dist/x-notification-center.js +10 -9
  33. package/dist/x-pagination.js +16 -16
  34. package/dist/x-popover.js +14 -11
  35. package/dist/x-progress-circle.js +7 -7
  36. package/dist/x-progress.js +9 -8
  37. package/dist/x-radio.js +11 -11
  38. package/dist/x-search-field.js +14 -14
  39. package/dist/x-select.js +10 -10
  40. package/dist/x-sidebar.js +17 -26
  41. package/dist/x-skeleton.js +5 -5
  42. package/dist/x-slider.js +16 -16
  43. package/dist/x-spacer.js +5 -5
  44. package/dist/x-spinner.js +5 -5
  45. package/dist/x-stat.js +12 -9
  46. package/dist/x-stepper.js +16 -16
  47. package/dist/x-switch.js +10 -10
  48. package/dist/x-tab.js +8 -8
  49. package/dist/x-table-cell.js +20 -20
  50. package/dist/x-table-row.js +10 -10
  51. package/dist/x-table.js +15 -14
  52. package/dist/x-tabs.js +12 -11
  53. package/dist/x-text-area.js +17 -17
  54. package/dist/x-timeline-item.js +21 -21
  55. package/dist/x-timeline.js +9 -9
  56. package/dist/x-toast.js +23 -23
  57. package/dist/x-toaster.js +8 -8
  58. package/package.json +1 -1
@@ -1,25 +1,25 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Bj=function(a){a=$APP.J(Aj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Yg},Dj=function(a){a=$APP.J(Cj,a);return $APP.n(a)?a:"pending"},Gj=function(a){a=$APP.J(Ej,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Fj},Hj=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},Ij=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Kj=function(a,
3
- b){a=$APP.J(Jj,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.J(Jj,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.xi);return b},Lj=function(a,b,c){a=Dj(a);c=c!=null?"Step "+$APP.T.g(c+1)+": ":null;return""+$APP.T.g(c)+$APP.T.g(typeof b==="string"&&$APP.O(b,"")?""+$APP.T.g(b)+" ":null)+"("+$APP.T.g(a)+")"},Zj=function(a){var b=$APP.N(a),c=$APP.J(b,Mj);a=$APP.J(b,$APP.V);var d=$APP.J(b,$APP.Gi),e=$APP.J(b,$APP.ch),g=$APP.J(b,Nj),h=$APP.J(b,Oj),k=$APP.J(b,Pj),m=$APP.J(b,
4
- $APP.Ah),q=$APP.J(b,Qj),r=$APP.J(b,$APP.Jg),v=$APP.J(b,Rj);b=$APP.J(b,$APP.li);var w=Bj(m),z=Hj(b),A=$APP.n($APP.n(r)?z==null:r)?$APP.Xi:z!=null?$APP.Nh:$APP.$g;m=function(){var D=A instanceof $APP.M?A.oa:null;switch(D){case "default":return D=$APP.J(Sj,w),$APP.n(D)?D:$APP.J(Sj,$APP.Yg);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.T.g(D));}}();c=Ij(c);d=Kj(k,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.cf([Tj,Uj,Vj,Nj,Qj,$APP.Zg,Wj,$APP.Gg,$APP.W,
5
- Xj,$APP.cj,$APP.V,Yj],[Gj(h),c,m,$APP.K(g),$APP.K(q),$APP.C.h(A,$APP.Nh)?z:null,v,w,e,Lj(w,e,c),A,$APP.K(a),d])},ak=function(a){a=$APP.N(a);a=$APP.J(a,$APP.V);return $APP.p(a)},mk=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
- q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),w=document.createElement("div"),z=document.createElement("div"),A=document.createElement("div"),D=document.createElement("slot"),F=document.createElement("div"),I=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
2
+ var rj=function(a){a=$APP.I(qj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Qg},tj=function(a){a=$APP.I(sj,a);return $APP.n(a)?a:"pending"},wj=function(a){a=$APP.I(uj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:vj},Bj=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},Cj=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Ej=function(a,
3
+ b){a=$APP.I(Dj,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.I(Dj,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.qi);return b},Fj=function(a,b,c){a=tj(a);c=c!=null?"Step "+$APP.T.g(c+1)+": ":null;return""+$APP.T.g(c)+$APP.T.g(typeof b==="string"&&$APP.O(b,"")?""+$APP.T.g(b)+" ":null)+"("+$APP.T.g(a)+")"},Tj=function(a){var b=$APP.N(a),c=$APP.I(b,Gj);a=$APP.I(b,$APP.V);var d=$APP.I(b,$APP.Ai),e=$APP.I(b,$APP.Wg),g=$APP.I(b,Hj),h=$APP.I(b,Ij),k=$APP.I(b,Jj),m=$APP.I(b,
4
+ $APP.uh),q=$APP.I(b,Kj),r=$APP.I(b,$APP.Bg),v=$APP.I(b,Lj);b=$APP.I(b,$APP.fi);var w=rj(m),z=Bj(b),A=$APP.n($APP.n(r)?z==null:r)?$APP.Ri:z!=null?$APP.Hh:$APP.Sg;m=function(){var D=A instanceof $APP.M?A.na:null;switch(D){case "default":return D=$APP.I(Mj,w),$APP.n(D)?D:$APP.I(Mj,$APP.Qg);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.T.g(D));}}();c=Cj(c);d=Ej(k,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.Xe([Nj,Oj,Pj,Hj,Kj,$APP.Rg,Qj,$APP.yg,$APP.W,
5
+ Rj,$APP.Xi,$APP.V,Sj],[wj(h),c,m,$APP.K(g),$APP.K(q),$APP.C.h(A,$APP.Hh)?z:null,v,w,e,Fj(w,e,c),A,$APP.K(a),d])},Uj=function(a){a=$APP.N(a);a=$APP.I(a,$APP.V);return $APP.p(a)},gk=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
+ q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),w=document.createElement("div"),z=document.createElement("div"),A=document.createElement("div"),D=document.createElement("slot"),G=document.createElement("div"),J=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
7
  d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);k.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);v.setAttribute("class","connector");k.appendChild(m);k.appendChild(v);w.setAttribute("class","content-col");z.setAttribute("class",
8
- "title");A.setAttribute("class","body");A.appendChild(D);F.setAttribute("class","actions");I.setAttribute("name","actions");F.appendChild(I);w.appendChild(z);w.appendChild(A);w.appendChild(F);d.appendChild(e);d.appendChild(k);d.appendChild(w);b.appendChild(c);b.appendChild(d);b=$APP.cf([Tj,bk,ck,$APP.Si,dk,ek,$APP.Ki,fk,$APP.rh,gk,hk,ik,jk,kk,$APP.bi,lk],[v,h,m,r,e,k,A,D,b,I,z,w,d,F,q,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},nk=function(a){return Zj($APP.cf([$APP.Gi,$APP.ch,
9
- Nj,Oj,Pj,$APP.Ah,Qj,$APP.Jg,Rj,$APP.li,Mj,$APP.V],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},qk=function(a){var b=nk(a);if($APP.O($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.N(b);var c=$APP.J(b,$APP.W),d=$APP.J(b,
10
- Wj),e=$APP.J(b,$APP.Gg),g=$APP.J(b,Yj),h=$APP.J(b,$APP.V),k=$APP.J(b,Vj),m=$APP.J(b,Xj),q=mk(a),r=$APP.N(q);q=$APP.J(r,bk);var v=$APP.J(r,ck),w=$APP.J(r,hk);r=$APP.J(r,$APP.Si);a.setAttribute("data-status",Dj(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.wf(g));a.__xTimelineItemSelfPos=null;$APP.C.h(Tj.g(b),ok)?a.setAttribute("data-connector","dashed"):$APP.C.h(Tj.g(b),pk)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role","listitem");
11
- $APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.O(d,"")?d:$APP.O(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=k!=null?k:"";$APP.O(d,"")?(w.removeAttribute("hidden"),w.textContent=d):(w.setAttribute("hidden",""),w.textContent="");a.__xTimelineItemModel=b}},rk=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=
12
- !0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.C.h(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},sk=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.n(b)?b:nk(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.J(e,$APP.Gg);e=$APP.J(e,$APP.W);c=new $APP.Q(null,2,[$APP.Gg,Dj(c),$APP.W,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.xg(c),bubbles:!0,composed:!0,cancelable:!0}))},
13
- tk=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.h(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:nk(a),ak(e)&&(d.preventDefault(),sk(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:nk(a);ak(d)&&sk(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTimelineItemHandlers",{click:c,keydown:b})},uk=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,
14
- "keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},vk=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?
8
+ "title");A.setAttribute("class","body");A.appendChild(D);G.setAttribute("class","actions");J.setAttribute("name","actions");G.appendChild(J);w.appendChild(z);w.appendChild(A);w.appendChild(G);d.appendChild(e);d.appendChild(k);d.appendChild(w);b.appendChild(c);b.appendChild(d);b=$APP.Xe([Nj,Vj,Wj,$APP.Mi,Xj,Yj,$APP.Ei,Zj,$APP.kh,ak,bk,ck,dk,ek,$APP.Wh,fk],[v,h,m,r,e,k,A,D,b,J,z,w,d,G,q,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},hk=function(a){return Tj($APP.Xe([$APP.Ai,$APP.Wg,
9
+ Hj,Ij,Jj,$APP.uh,Kj,$APP.Bg,Lj,$APP.fi,Gj,$APP.V],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},kk=function(a){var b=hk(a);if($APP.O($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.W),d=$APP.I(b,
10
+ Qj),e=$APP.I(b,$APP.yg),g=$APP.I(b,Sj),h=$APP.I(b,$APP.V),k=$APP.I(b,Pj),m=$APP.I(b,Rj),q=gk(a),r=$APP.N(q);q=$APP.I(r,Vj);var v=$APP.I(r,Wj),w=$APP.I(r,bk);r=$APP.I(r,$APP.Mi);a.setAttribute("data-status",tj(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.qf(g));a.__xTimelineItemSelfPos=null;$APP.C.h(Nj.g(b),ik)?a.setAttribute("data-connector","dashed"):$APP.C.h(Nj.g(b),jk)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role","listitem");
11
+ $APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.O(d,"")?d:$APP.O(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=k!=null?k:"";$APP.O(d,"")?(w.removeAttribute("hidden"),w.textContent=d):(w.setAttribute("hidden",""),w.textContent="");a.__xTimelineItemModel=b}},lk=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=
12
+ !0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.C.h(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},mk=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.n(b)?b:hk(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.I(e,$APP.yg);e=$APP.I(e,$APP.W);c=new $APP.Q(null,2,[$APP.yg,tj(c),$APP.W,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.pg(c),bubbles:!0,composed:!0,cancelable:!0}))},
13
+ nk=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.h(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:hk(a),Uj(e)&&(d.preventDefault(),mk(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:hk(a);Uj(d)&&mk(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.la(a,"__xTimelineItemHandlers",{click:c,keydown:b})},ok=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,
14
+ "keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},pk=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?
15
15
  b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("title",""+$APP.T.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});Object.defineProperty(a,"status",{get:function(){var b=this.getAttribute("status");return $APP.n(b)?b:"pending"},set:function(b){return $APP.n(b)?this.setAttribute("status",""+$APP.T.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
16
  set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"connector",{get:function(){var b=this.getAttribute("connector");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("connector",""+$APP.T.g(b)):this.removeAttribute("connector")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){var b=this.getAttribute("position");return $APP.n(b)?
17
- b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},xk=function(){var a=class extends HTMLElement{};a.observedAttributes=wk;a.prototype.connectedCallback=function(){mk(this);uk(this);
18
- tk(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);qk(this);rk(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:nk(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.J(e,$APP.Gg);var g=$APP.J(e,$APP.W),h=$APP.J(e,Yj);e=$APP.J(e,$APP.V);c=new $APP.Q(null,4,[$APP.Gg,Dj(c),$APP.W,g,$APP.Zi,$APP.wf(h),$APP.wi,$APP.K(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.xg(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
- a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:nk(this);uk(this);b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.N(c);c=$APP.J(g,$APP.Gg);g=$APP.J(g,$APP.W);c=new $APP.Q(null,2,[$APP.Gg,Dj(c),$APP.W,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.xg(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.O(c,d))c=$APP.C.h(b,"data-position"),c=!$APP.n(c?
20
- $APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.C.h(b,"data-position")&&(this.__xTimelineItemParentPos=d),qk(this));return null};vk(a.prototype);return a},yk=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",xk());return null},Rj=new $APP.M(null,"title-raw","title-raw",976469452),ek=new $APP.M(null,"track-col","track-col",629248272),gk=new $APP.M(null,"actions-slot","actions-slot",1424248629),Vj=new $APP.M(null,"marker-icon","marker-icon",424963779),
21
- ck=new $APP.M(null,"marker","marker",865118313),Tj=new $APP.M(null,"connector","connector",-1517293248),Fj=new $APP.M(null,"solid","solid",-2023773691),hk=new $APP.M(null,"title-el","title-el",-401767816),Wj=new $APP.M(null,"title","title",636505583),Oj=new $APP.M(null,"connector-raw","connector-raw",106333796),fk=new $APP.M(null,"default-slot","default-slot",-1145647151),Yj=new $APP.M(null,"effective-position","effective-position",840072317),dk=new $APP.M(null,"label-col","label-col",1883390160),
22
- Qj=new $APP.M(null,"data-last?","data-last?",-1110326839),bk=new $APP.M(null,"label-text","label-text",-1566972381),Nj=new $APP.M(null,"data-striped?","data-striped?",906911587),Pj=new $APP.M(null,"data-position-raw","data-position-raw",256144356),kk=new $APP.M(null,"actions-el","actions-el",1486248509),ik=new $APP.M(null,"content-col","content-col",767367449),ok=new $APP.M(null,"dashed","dashed",-1449249319),Mj=new $APP.M(null,"data-index-raw","data-index-raw",491574874),jk=new $APP.M(null,"item-div",
23
- "item-div",1630512700),zk=new $APP.M(null,"active","active",1895962068),Uj=new $APP.M(null,"data-index","data-index",1161508385),lk=new $APP.M(null,"label-slot","label-slot",-1755862561),pk=new $APP.M(null,"none","none",1333468478),Xj=new $APP.M(null,"marker-aria","marker-aria",-353426855);var wk="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
24
- $APP.wd(["x-timeline-item-connected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.Gg,$APP.X,$APP.W,$APP.X,$APP.Zi,$APP.X,$APP.wi,$APP.Ji],null),$APP.ui,!1],null),"x-timeline-item-disconnected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Gg,$APP.X,$APP.W,$APP.X],null),$APP.ui,!1],null),"x-timeline-item-click",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Gg,$APP.X,$APP.W,$APP.X],null),$APP.ui,!0],null)]);
25
- var Aj=new $APP.Q(null,5,["pending",$APP.Yg,"active",zk,"complete",$APP.Oi,"error",$APP.ph,"warning",$APP.si],null),Cj=new $APP.Q(null,5,[$APP.Yg,"pending",zk,"active",$APP.Oi,"complete",$APP.ph,"error",$APP.si,"warning"],null),Sj=new $APP.Q(null,5,[$APP.Yg,"○",zk,"●",$APP.Oi,"✓",$APP.ph,"✕",$APP.si,"!"],null),Ej=new $APP.Q(null,3,["solid",Fj,"dashed",ok,"none",pk],null),Jj=new $APP.Q(null,2,["start",$APP.xi,"end",$APP.th],null);$APP.ka("baredom.exports.x_timeline_item.init",yk);export const init=yk;
17
+ b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},rk=function(){var a=class extends HTMLElement{};a.observedAttributes=qk;a.prototype.connectedCallback=function(){gk(this);ok(this);
18
+ nk(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);kk(this);lk(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:hk(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.I(e,$APP.yg);var g=$APP.I(e,$APP.W),h=$APP.I(e,Sj);e=$APP.I(e,$APP.V);c=new $APP.Q(null,4,[$APP.yg,tj(c),$APP.W,g,$APP.Ti,$APP.qf(h),$APP.pi,$APP.K(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.pg(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
+ a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:hk(this);ok(this);this.__xTimelineItemEntered=null;b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.N(c);c=$APP.I(g,$APP.yg);g=$APP.I(g,$APP.W);c=new $APP.Q(null,2,[$APP.yg,tj(c),$APP.W,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.pg(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.O(c,d))c=$APP.C.h(b,
20
+ "data-position"),c=!$APP.n(c?$APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.C.h(b,"data-position")&&(this.__xTimelineItemParentPos=d),kk(this));return null};pk(a.prototype);return a},sk=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",rk());return null},Lj=new $APP.M(null,"title-raw","title-raw",976469452),Yj=new $APP.M(null,"track-col","track-col",629248272),ak=new $APP.M(null,"actions-slot","actions-slot",1424248629),Pj=new $APP.M(null,"marker-icon",
21
+ "marker-icon",424963779),Wj=new $APP.M(null,"marker","marker",865118313),Nj=new $APP.M(null,"connector","connector",-1517293248),vj=new $APP.M(null,"solid","solid",-2023773691),bk=new $APP.M(null,"title-el","title-el",-401767816),Qj=new $APP.M(null,"title","title",636505583),Ij=new $APP.M(null,"connector-raw","connector-raw",106333796),Zj=new $APP.M(null,"default-slot","default-slot",-1145647151),Sj=new $APP.M(null,"effective-position","effective-position",840072317),Xj=new $APP.M(null,"label-col",
22
+ "label-col",1883390160),Kj=new $APP.M(null,"data-last?","data-last?",-1110326839),Vj=new $APP.M(null,"label-text","label-text",-1566972381),Hj=new $APP.M(null,"data-striped?","data-striped?",906911587),Jj=new $APP.M(null,"data-position-raw","data-position-raw",256144356),ek=new $APP.M(null,"actions-el","actions-el",1486248509),ck=new $APP.M(null,"content-col","content-col",767367449),ik=new $APP.M(null,"dashed","dashed",-1449249319),Gj=new $APP.M(null,"data-index-raw","data-index-raw",491574874),
23
+ dk=new $APP.M(null,"item-div","item-div",1630512700),tk=new $APP.M(null,"active","active",1895962068),Oj=new $APP.M(null,"data-index","data-index",1161508385),fk=new $APP.M(null,"label-slot","label-slot",-1755862561),jk=new $APP.M(null,"none","none",1333468478),Rj=new $APP.M(null,"marker-aria","marker-aria",-353426855);var qk="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
24
+ $APP.sd(["x-timeline-item-connected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.yg,$APP.X,$APP.W,$APP.X,$APP.Ti,$APP.X,$APP.pi,$APP.Di],null),$APP.ni,!1],null),"x-timeline-item-disconnected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.yg,$APP.X,$APP.W,$APP.X],null),$APP.ni,!1],null),"x-timeline-item-click",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.yg,$APP.X,$APP.W,$APP.X],null),$APP.ni,!0],null)]);
25
+ var qj=new $APP.Q(null,5,["pending",$APP.Qg,"active",tk,"complete",$APP.Ii,"error",$APP.ih,"warning",$APP.li],null),sj=new $APP.Q(null,5,[$APP.Qg,"pending",tk,"active",$APP.Ii,"complete",$APP.ih,"error",$APP.li,"warning"],null),Mj=new $APP.Q(null,5,[$APP.Qg,"○",tk,"●",$APP.Ii,"✓",$APP.ih,"✕",$APP.li,"!"],null),uj=new $APP.Q(null,3,["solid",vj,"dashed",ik,"none",jk],null),Dj=new $APP.Q(null,2,["start",$APP.qi,"end",$APP.nh],null);$APP.ja("baredom.exports.x_timeline_item.init",sk);export const init=sk;
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var aE=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc($D,a)?a:"start"},bE=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.Qc(b,2)===0?"start":"end";default:return"start"}},dE=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:inherit;--x-timeline-label-font-size:0.875rem;--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
- d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.Q(null,3,[$APP.rh,b,cE,d,$APP.Ph,e],null);return $APP.l(a,"__xTimelineRefs")},eE=function(a){a=new $APP.Q(null,3,[$APP.ch,a.getAttribute("label"),$APP.Gi,a.getAttribute("position"),$APP.kh,a.hasAttribute("striped")],null);var b=$APP.N(a);a=$APP.J(b,$APP.ch);var c=$APP.J(b,$APP.Gi);b=$APP.J(b,$APP.kh);return new $APP.Q(null,3,[$APP.W,$APP.n(a)?a:"",$APP.Zi,aE(c),
4
- $APP.kh,$APP.K(b)],null)},fE=function(a){var b=eE(a);if($APP.O($APP.l(a,"__xTimelineModel"),b)){b=$APP.N(b);var c=$APP.J(b,$APP.W),d=dE(a);d=$APP.N(d);d=$APP.J(d,cE);a.setAttribute("role","list");$APP.O(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.O(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},gE=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:eE(a);var c=$APP.N(b);b=$APP.J(c,$APP.Zi);
5
- c=$APP.J(c,$APP.kh);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.C.h(e,d-1);g.setAttribute("data-index",""+$APP.T.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",bE(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},hE=function(a){function b(){$APP.n(a.isConnected)&&gE(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
- e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.xg(new $APP.Q(null,3,[$APP.Ug,$APP.n(g)?g:0,$APP.Gg,$APP.n(h)?h:"",$APP.W,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){gE(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
- b);$APP.ma(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},iE=function(a){var b=$APP.l(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},jE=function(a){Object.defineProperty(a,
8
- "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return aE(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
- "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},lE=function(){var a=class extends HTMLElement{};a.observedAttributes=kE;a.prototype.connectedCallback=function(){dE(this);fE(this);iE(this);hE(this);gE(this);return null};a.prototype.disconnectedCallback=function(){iE(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(fE(this),
10
- gE(this));return null};jE(a.prototype);return a},mE=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",lE());return null},cE=new $APP.M(null,"label-div","label-div",1505730697);var kE=["label","position","striped"];$APP.wd(["x-timeline-select",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.Ug,$APP.Fh,$APP.Gg,$APP.X,$APP.W,$APP.X],null),$APP.ui,!1],null)]);var $D=new $APP.S(null,new $APP.Q(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ka("baredom.exports.x_timeline.init",mE);export const init=mE;
2
+ var jE=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.yc(iE,a)?a:"start"},kE=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.Lc(b,2)===0?"start":"end";default:return"start"}},mE=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:inherit;--x-timeline-label-font-size:0.875rem;--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
+ d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.Q(null,3,[$APP.kh,b,lE,d,$APP.Jh,e],null);return $APP.l(a,"__xTimelineRefs")},nE=function(a){a=new $APP.Q(null,3,[$APP.Wg,a.getAttribute("label"),$APP.Ai,a.getAttribute("position"),$APP.dh,a.hasAttribute("striped")],null);var b=$APP.N(a);a=$APP.I(b,$APP.Wg);var c=$APP.I(b,$APP.Ai);b=$APP.I(b,$APP.dh);return new $APP.Q(null,3,[$APP.W,$APP.n(a)?a:"",$APP.Ti,jE(c),
4
+ $APP.dh,$APP.K(b)],null)},oE=function(a){var b=nE(a);if($APP.O($APP.l(a,"__xTimelineModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.W),d=mE(a);d=$APP.N(d);d=$APP.I(d,lE);a.setAttribute("role","list");$APP.O(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.O(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},pE=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:nE(a);var c=$APP.N(b);b=$APP.I(c,$APP.Ti);
5
+ c=$APP.I(c,$APP.dh);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.C.h(e,d-1);g.setAttribute("data-index",""+$APP.T.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",kE(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},qE=function(a){function b(){$APP.n(a.isConnected)&&pE(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
+ e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.pg(new $APP.Q(null,3,[$APP.Mg,$APP.n(g)?g:0,$APP.yg,$APP.n(h)?h:"",$APP.W,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){pE(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
+ b);$APP.la(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},rE=function(a){var b=$APP.l(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},sE=function(a){Object.defineProperty(a,
8
+ "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return jE(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
+ "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},uE=function(){var a=class extends HTMLElement{};a.observedAttributes=tE;a.prototype.connectedCallback=function(){mE(this);oE(this);rE(this);qE(this);pE(this);return null};a.prototype.disconnectedCallback=function(){rE(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(oE(this),
10
+ pE(this));return null};sE(a.prototype);return a},vE=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",uE());return null},lE=new $APP.M(null,"label-div","label-div",1505730697);var tE=["label","position","striped"];$APP.sd(["x-timeline-select",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.Mg,$APP.zh,$APP.yg,$APP.X,$APP.W,$APP.X],null),$APP.ni,!1],null)]);var iE=new $APP.S(null,new $APP.Q(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ja("baredom.exports.x_timeline.init",vE);export const init=vE;
package/dist/x-toast.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Yl=function(a){a=$APP.J(Xl,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.xh},$l=function(a){a=$APP.J(Zl,a);return $APP.n(a)?a:"info"},am=function(a){return a==null?!0:$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},bm=function(a){return a==null?!1:$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},cm=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},dm=function(a){return typeof a==="string"?(a=
3
- a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},gm=function(a){var b=$APP.N(a),c=$APP.J(b,$APP.Kg),d=$APP.J(b,$APP.Kh);a=$APP.J(b,$APP.Xh);var e=$APP.J(b,$APP.Yh),g=$APP.J(b,$APP.gh),h=$APP.J(b,$APP.Jg),k=$APP.J(b,em),m=$APP.J(b,$APP.ih);b=$APP.J(b,$APP.li);m=Yl(m);b=dm(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.Xi:b!=null?$APP.Nh:$APP.$g;return $APP.cf([fm,$APP.uh,$APP.Z,$APP.Zg,$APP.cj,$APP.V,$APP.Di,$APP.Kg,$APP.Kh],[bm(k),am(a),m,$APP.C.h(h,$APP.Nh)?b:null,h,$APP.K(e),cm(g),function(){var q=
4
- typeof c==="string"?c.trim():null;return $APP.n(q)?q:""}(),function(){var q=typeof d==="string"?d.trim():null;return $APP.n(q)?q:""}()])},hm=function(a){var b=$APP.N(a);a=$APP.J(b,$APP.uh);b=$APP.J(b,$APP.V);return $APP.n(a)?$APP.p(b):a},im=function(a,b){var c=$APP.N(a);a=$APP.J(c,$APP.Z);var d=$APP.J(c,$APP.Kh);c=$APP.J(c,$APP.Kg);return new $APP.Q(null,4,[$APP.Z,$l(a),$APP.wh,b,$APP.Kh,d,$APP.Kg,c],null)},jm=function(a){var b=$APP.N(a);a=$APP.J(b,fm);b=$APP.J(b,$APP.Di);return $APP.K($APP.n(a)?
5
- b!=null&&b>0:a)},pm=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("button"),w=document.createElement("span"),z=document.createElement("div"),
2
+ var Tl=function(a){a=$APP.I(Sl,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.rh},Vl=function(a){a=$APP.I(Ul,a);return $APP.n(a)?a:"info"},Wl=function(a){return a==null?!0:$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},Xl=function(a){return a==null?!1:$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},Yl=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},Zl=function(a){return typeof a==="string"?(a=
3
+ a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},bm=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.Cg),d=$APP.I(b,$APP.Eh);a=$APP.I(b,$APP.Rh);var e=$APP.I(b,$APP.Sh),g=$APP.I(b,$APP.$g),h=$APP.I(b,$APP.Bg),k=$APP.I(b,$l),m=$APP.I(b,$APP.bh);b=$APP.I(b,$APP.fi);m=Tl(m);b=Zl(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.Ri:b!=null?$APP.Hh:$APP.Sg;return $APP.Xe([am,$APP.oh,$APP.Z,$APP.Rg,$APP.Xi,$APP.V,$APP.xi,$APP.Cg,$APP.Eh],[Xl(k),Wl(a),m,$APP.C.h(h,$APP.Hh)?b:null,h,$APP.K(e),Yl(g),function(){var q=
4
+ typeof c==="string"?c.trim():null;return $APP.n(q)?q:""}(),function(){var q=typeof d==="string"?d.trim():null;return $APP.n(q)?q:""}()])},cm=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.oh);b=$APP.I(b,$APP.V);return $APP.n(a)?$APP.p(b):a},dm=function(a,b){var c=$APP.N(a);a=$APP.I(c,$APP.Z);var d=$APP.I(c,$APP.Eh);c=$APP.I(c,$APP.Cg);return new $APP.Q(null,4,[$APP.Z,Vl(a),$APP.qh,b,$APP.Eh,d,$APP.Cg,c],null)},em=function(a){var b=$APP.N(a);a=$APP.I(b,am);b=$APP.I(b,$APP.xi);return $APP.K($APP.n(a)?
5
+ b!=null&&b>0:a)},km=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("button"),w=document.createElement("span"),z=document.createElement("div"),
6
6
  A=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:12px;--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:0.875rem;--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:280px;--x-toast-max-width:480px;--x-toast-border-width:1px;--x-toast-shadow:0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08);--x-toast-motion-fast:120ms;--x-toast-motion-ease:cubic-bezier(0.2,0,0,1);--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:rgba(0,0,0,0.6);--x-toast-dismiss-color:rgba(0,0,0,0.50);--x-toast-dismiss-hover-bg:rgba(0,0,0,0.06);--x-toast-progress-height:3px;--x-toast-progress-bg:rgba(0,0,0,0.08);--x-toast-info-bg:#ffffff;--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:#ffffff;--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:#ffffff;--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:#ffffff;--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30);--x-toast-focus-ring:rgba(255,255,255,0.75);--x-toast-dismiss-color:rgba(255,255,255,0.65);--x-toast-dismiss-hover-bg:rgba(255,255,255,0.12);--x-toast-progress-bg:rgba(255,255,255,0.10);--x-toast-info-bg:#1e293b;--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:#1e293b;--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:#1e293b;--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:#1e293b;--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
7
7
  d.setAttribute("part","container");e.setAttribute("part","inner");g.setAttribute("part","icon");g.setAttribute("aria-hidden","true");h.setAttribute("name","icon");k.setAttribute("part","default-icon");h.appendChild(k);g.appendChild(h);m.setAttribute("part","body");q.setAttribute("part","heading");r.setAttribute("part","message");m.appendChild(q);m.appendChild(r);v.setAttribute("part","dismiss");v.setAttribute("type","button");v.setAttribute("aria-label","Dismiss toast");w.setAttribute("aria-hidden",
8
- "true");w.textContent="×";v.appendChild(w);e.appendChild(g);e.appendChild(m);e.appendChild(v);z.setAttribute("part","progress");A.setAttribute("part","progress-bar");z.appendChild(A);d.appendChild(e);d.appendChild(z);b.appendChild(c);b.appendChild(d);b=$APP.cf([km,$APP.Si,lm,$APP.dh,$APP.Ki,mm,$APP.rh,$APP.pi,nm,$APP.Fg,$APP.bi,om],[A,k,r,v,m,e,b,d,z,g,h,q]);a.__xToastRefs=b;return $APP.l(a,"__xToastRefs")},qm=function(a){return gm($APP.cf([$APP.Xh,$APP.Yh,$APP.gh,$APP.Jg,em,$APP.li,$APP.ih,$APP.Kg,
9
- $APP.Kh],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},sm=function(a){var b=qm(a);if($APP.O($APP.l(a,"__xToastModel"),b)){b=$APP.N(b);var c=$APP.J(b,$APP.Z),d=$APP.J(b,$APP.Kh),e=$APP.J(b,$APP.Kg),g=$APP.J(b,$APP.cj),h=$APP.J(b,$APP.Zg),k=$APP.J(b,$APP.uh),m=$APP.J(b,$APP.V),q=$APP.J(b,$APP.Di),r=pm(a),
10
- v=$APP.N(r),w=$APP.J(v,$APP.bi);r=$APP.J(v,om);var z=$APP.J(v,km),A=$APP.J(v,$APP.Si),D=$APP.J(v,lm),F=$APP.J(v,$APP.dh),I=$APP.J(v,$APP.pi),E=$APP.J(v,nm);v=$APP.J(v,$APP.Fg);w=$APP.n(w)?w.assignedNodes().length>0:null;$APP.C.h(g,$APP.Nh)||(h=$APP.J(rm,c),h=$APP.n(h)?h:$APP.J(rm,$APP.xh));g=$APP.p(w)&&$APP.C.h(g,$APP.Xi);w=jm(b);a.setAttribute("data-type",$l(c));var R=I.setAttribute;c=$APP.C.h(c,$APP.si)||$APP.C.h(c,$APP.ph)?"alert":"status";R.call(I,"role",c);r.textContent=d;r.style.display=$APP.C.h(d,
11
- "")?"none":"";D.textContent=e;g?(A.textContent="",v.style.display="none"):(A.textContent=h,v.style.display="inline");$APP.n(k)?(F.disabled=$APP.K(m),F.style.display="inline-flex"):(F.disabled=!0,F.style.display="none");w?(E.style.display="block",z.style.setProperty("--x-toast-timeout",""+$APP.T.g(q)+"ms")):E.style.display="none";d=$APP.n(k)?$APP.p(m):k;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts",
12
- "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},tm=function(a){a=typeof a==="string"?a.trim():"";return $APP.C.h(a,"")||$APP.C.h(a,"0")||$APP.C.h(a,"0ms")||$APP.C.h(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},um=function(a){var b=window.getComputedStyle(a);a=tm(b.getPropertyValue("--x-toast-exit-duration"));
13
- b=tm(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},vm=function(a){var b=$APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},xm=function(a){vm(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:qm(a)}();$APP.n(function(){var c=hm(b);return $APP.n(c)?typeof $APP.Di.g(b)==="number"&&$APP.p($APP.l(a,"__xToastExiting")):c}())&&$APP.ma(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;
14
- return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:qm(a)}();if($APP.n(hm(c)))return c=$APP.xg(im(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?wm.g?wm.g(a):wm.call(null,a):null}return null},$APP.Di.g(b)))},ym=function(a){if(!$APP.n($APP.l(a,"__xToastEntered"))){a.__xToastEntered=!0;a.setAttribute("data-entering","");var b=pm(a);b=$APP.N(b);
15
- var c=$APP.J(b,$APP.pi);c.addEventListener("animationend",function g(e){return $APP.C.h(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering"),e=$APP.l(a,"__xToastModel"),$APP.n($APP.n(e)?jm(e):e)?a.setAttribute("data-progress-active",""):null):null})}},wm=function(a){if(!$APP.n($APP.l(a,"__xToastExiting"))){a.__xToastExiting=!0;vm(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=um(a);if(b===0||$APP.K(window.matchMedia("(prefers-reduced-motion:reduce)").matches))a.remove();
16
- else{var c=pm(a);c=$APP.N(c);var d=$APP.J(c,$APP.pi),e=function k(h){return $APP.C.h(h.target,d)?(d.removeEventListener("animationend",k),h=$APP.l(a,"__xToastExitTimer"),$APP.n(h)&&(clearTimeout(h),a.__xToastExitTimer=null),$APP.n(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);$APP.ma(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.l(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",
17
- e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},zm=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:qm(a);b=$APP.xg(im(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&wm(a)},Am=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:qm(a)}();$APP.n(function(){var d=hm(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),zm(a,"button"));return null},
18
- Bm=function(a,b){if($APP.C.h(b.key,"Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:qm(a)}();$APP.n(function(){var d=hm(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),zm(a,"keyboard"))}return null},Cm=function(a){function b(e){return Bm(a,e)}function c(e){return Am(a,e)}var d=pm(a);d=$APP.N(d);$APP.J(d,$APP.dh).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xToastHandlers",{click:c,keydown:b})},Dm=function(a){vm(a);
19
- var b=$APP.l(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.dh.g(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xToastHandlers=null},Em=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"info"},set:function(b){return $APP.n(b)?
20
- this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"heading",{get:function(){var b=this.getAttribute("heading");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("heading",""+$APP.T.g(b)):this.removeAttribute("heading")},enumerable:!0,configurable:!0});Object.defineProperty(a,"message",{get:function(){var b=this.getAttribute("message");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("message",
21
- ""+$APP.T.g(b)):this.removeAttribute("message")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"dismissible",{get:function(){return am(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},
22
- enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return cm(this.getAttribute("timeout-ms"))},set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,
23
- "showProgress",{get:function(){return bm(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Fm=function(a){a.dismiss=function(b){var c=$APP.p($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&zm(this,typeof b==="string"?b:"api");return null}},Hm=function(){var a=class extends HTMLElement{};a.observedAttributes=Gm;a.prototype.connectedCallback=function(){pm(this);
24
- Dm(this);Cm(this);sm(this);ym(this);xm(this);return null};a.prototype.disconnectedCallback=function(){Dm(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(sm(this),$APP.n(this.isConnected)&&xm(this));return null};Em(a.prototype);Fm(a.prototype);return a},Im=function(){$APP.n(customElements.get("x-toast"))||customElements.define("x-toast",Hm());return null},om=new $APP.M(null,"heading-el","heading-el",-1277272161),mm=new $APP.M(null,"inner","inner",-1383171215),
25
- nm=new $APP.M(null,"progress-el","progress-el",-184081515),lm=new $APP.M(null,"message-el","message-el",-683533234),fm=new $APP.M(null,"show-progress?","show-progress?",-1681518912),km=new $APP.M(null,"progress-bar","progress-bar",-123877022),em=new $APP.M(null,"show-progress-attr","show-progress-attr",1680262066);var Gm="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.wd(["x-toast-dismiss",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.Z,$APP.X,$APP.wh,$APP.X,$APP.Kh,$APP.X,$APP.Kg,$APP.X],null),$APP.ui,!0],null)]);
26
- var Xl=new $APP.Q(null,4,["info",$APP.xh,"success",$APP.Rg,"warning",$APP.si,"error",$APP.ph],null),Zl=new $APP.Q(null,4,[$APP.xh,"info",$APP.Rg,"success",$APP.si,"warning",$APP.ph,"error"],null),rm=new $APP.Q(null,4,[$APP.xh,"ℹ",$APP.Rg,"✓",$APP.si,"!",$APP.ph,"⨯"],null);$APP.ka("baredom.exports.x_toast.init",Im);export const init=Im;
8
+ "true");w.textContent="×";v.appendChild(w);e.appendChild(g);e.appendChild(m);e.appendChild(v);z.setAttribute("part","progress");A.setAttribute("part","progress-bar");z.appendChild(A);d.appendChild(e);d.appendChild(z);b.appendChild(c);b.appendChild(d);b=$APP.Xe([fm,$APP.Mi,gm,$APP.Xg,$APP.Ei,hm,$APP.kh,$APP.ii,im,$APP.xg,$APP.Wh,jm],[A,k,r,v,m,e,b,d,z,g,h,q]);a.__xToastRefs=b;return $APP.l(a,"__xToastRefs")},lm=function(a){return bm($APP.Xe([$APP.Rh,$APP.Sh,$APP.$g,$APP.Bg,$l,$APP.fi,$APP.bh,$APP.Cg,
9
+ $APP.Eh],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},nm=function(a){var b=lm(a);if($APP.O($APP.l(a,"__xToastModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.Z),d=$APP.I(b,$APP.Eh),e=$APP.I(b,$APP.Cg),g=$APP.I(b,$APP.Xi),h=$APP.I(b,$APP.Rg),k=$APP.I(b,$APP.oh),m=$APP.I(b,$APP.V),q=$APP.I(b,$APP.xi),r=km(a),
10
+ v=$APP.N(r),w=$APP.I(v,$APP.Wh);r=$APP.I(v,jm);var z=$APP.I(v,fm),A=$APP.I(v,$APP.Mi),D=$APP.I(v,gm),G=$APP.I(v,$APP.Xg),J=$APP.I(v,$APP.ii),E=$APP.I(v,im);v=$APP.I(v,$APP.xg);w=$APP.n(w)?w.assignedNodes().length>0:null;$APP.C.h(g,$APP.Hh)||(h=$APP.I(mm,c),h=$APP.n(h)?h:$APP.I(mm,$APP.rh));g=$APP.p(w)&&$APP.C.h(g,$APP.Ri);w=em(b);a.setAttribute("data-type",Vl(c));var R=J.setAttribute;c=$APP.C.h(c,$APP.li)||$APP.C.h(c,$APP.ih)?"alert":"status";R.call(J,"role",c);r.textContent=d;r.style.display=$APP.C.h(d,
11
+ "")?"none":"";D.textContent=e;g?(A.textContent="",v.style.display="none"):(A.textContent=h,v.style.display="inline");$APP.n(k)?(G.disabled=$APP.K(m),G.style.display="inline-flex"):(G.disabled=!0,G.style.display="none");w?(E.style.display="block",z.style.setProperty("--x-toast-timeout",""+$APP.T.g(q)+"ms")):E.style.display="none";d=$APP.n(k)?$APP.p(m):k;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts",
12
+ "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},om=function(){return $APP.K(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},pm=function(a){a=typeof a==="string"?a.trim():"";return $APP.C.h(a,"")||$APP.C.h(a,"0")||$APP.C.h(a,"0ms")||$APP.C.h(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*
13
+ a))):0},qm=function(a){var b=window.getComputedStyle(a);a=pm(b.getPropertyValue("--x-toast-exit-duration"));b=pm(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},rm=function(a){var b=$APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},tm=function(a){rm(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:lm(a)}();$APP.n(function(){var c=cm(b);return $APP.n(c)?typeof $APP.xi.g(b)==="number"&&$APP.p($APP.l(a,"__xToastExiting")):c}())&&
14
+ $APP.la(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:lm(a)}();if($APP.n(cm(c)))return c=$APP.pg(dm(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?sm.g?sm.g(a):sm.call(null,a):null}return null},$APP.xi.g(b)));return null},um=function(a){var b=
15
+ $APP.l(a,"__xToastModel");$APP.n($APP.n(b)?em(b):b)&&a.setAttribute("data-progress-active","");return tm(a)},vm=function(a){if(!$APP.n($APP.l(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),om())a.removeAttribute("data-entering"),um(a);else{var b=km(a);b=$APP.N(b);var c=$APP.I(b,$APP.ii);c.addEventListener("animationend",function g(e){return $APP.C.h(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering"),um(a)):null})}},sm=function(a){if(!$APP.n($APP.l(a,
16
+ "__xToastExiting"))){a.__xToastExiting=!0;rm(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=qm(a);if(b===0||om())a.remove();else{var c=km(a);c=$APP.N(c);var d=$APP.I(c,$APP.ii),e=function k(h){return $APP.C.h(h.target,d)?(d.removeEventListener("animationend",k),h=$APP.l(a,"__xToastExitTimer"),$APP.n(h)&&(clearTimeout(h),a.__xToastExitTimer=null),$APP.n(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);
17
+ $APP.la(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.l(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},wm=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:lm(a);b=$APP.pg(dm(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&sm(a)},xm=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");
18
+ return $APP.n(d)?d:lm(a)}();$APP.n(function(){var d=cm(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),wm(a,"button"));return null},ym=function(a,b){if($APP.C.h(b.key,"Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:lm(a)}();$APP.n(function(){var d=cm(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),wm(a,"keyboard"))}return null},zm=function(a){function b(e){return ym(a,e)}function c(e){return xm(a,
19
+ e)}var d=km(a);d=$APP.N(d);$APP.I(d,$APP.Xg).addEventListener("click",c);a.addEventListener("keydown",b);$APP.la(a,"__xToastHandlers",{click:c,keydown:b})},Am=function(a){rm(a);var b=$APP.l(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.Xg.g(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",
20
+ b)}a.__xToastHandlers=null},Bm=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"info"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"heading",{get:function(){var b=this.getAttribute("heading");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("heading",""+$APP.T.g(b)):this.removeAttribute("heading")},
21
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"message",{get:function(){var b=this.getAttribute("message");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("message",""+$APP.T.g(b)):this.removeAttribute("message")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,
22
+ "dismissible",{get:function(){return Wl(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return Yl(this.getAttribute("timeout-ms"))},
23
+ set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return Xl(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Cm=function(a){a.dismiss=function(b){var c=$APP.p($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:
24
+ c)&&wm(this,typeof b==="string"?b:"api");return null}},Em=function(){var a=class extends HTMLElement{};a.observedAttributes=Dm;a.prototype.connectedCallback=function(){km(this);Am(this);zm(this);nm(this);vm(this);return null};a.prototype.disconnectedCallback=function(){Am(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(nm(this),$APP.n(this.isConnected)&&tm(this));return null};Bm(a.prototype);Cm(a.prototype);return a},Fm=function(){$APP.n(customElements.get("x-toast"))||
25
+ customElements.define("x-toast",Em());return null},jm=new $APP.M(null,"heading-el","heading-el",-1277272161),hm=new $APP.M(null,"inner","inner",-1383171215),im=new $APP.M(null,"progress-el","progress-el",-184081515),gm=new $APP.M(null,"message-el","message-el",-683533234),am=new $APP.M(null,"show-progress?","show-progress?",-1681518912),fm=new $APP.M(null,"progress-bar","progress-bar",-123877022),$l=new $APP.M(null,"show-progress-attr","show-progress-attr",1680262066);var Dm="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.sd(["x-toast-dismiss",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.Z,$APP.X,$APP.qh,$APP.X,$APP.Eh,$APP.X,$APP.Cg,$APP.X],null),$APP.ni,!0],null)]);
26
+ var Sl=new $APP.Q(null,4,["info",$APP.rh,"success",$APP.Jg,"warning",$APP.li,"error",$APP.ih],null),Ul=new $APP.Q(null,4,[$APP.rh,"info",$APP.Jg,"success",$APP.li,"warning",$APP.ih,"error"],null),mm=new $APP.Q(null,4,[$APP.rh,"ℹ",$APP.Jg,"✓",$APP.li,"!",$APP.ih,"⨯"],null);$APP.ja("baredom.exports.x_toast.init",Fm);export const init=Fm;
package/dist/x-toaster.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ro=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(qo,a)?a:"top-end"},so=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},uo=function(a){if(!$APP.n($APP.l(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=to;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.Q(null,2,[$APP.rh,b,$APP.Ph,d],null)}},xo=function(a){a=
3
- new $APP.Q(null,3,[$APP.Gi,a.getAttribute("position"),vo,a.getAttribute("max-toasts"),$APP.ch,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.J(b,$APP.Gi);a=$APP.J(b,vo);b=$APP.J(b,$APP.ch);c=ro(c);a=so(a);return new $APP.Q(null,3,[$APP.Zi,c,wo,$APP.n(a)?a:5,$APP.W,typeof b==="string"&&$APP.O(b.trim(),"")?b:"Notifications"],null)},yo=function(a){var b=xo(a);if($APP.O($APP.l(a,"__xToasterModel"),b)){b=$APP.N(b);var c=$APP.J(b,$APP.Zi),d=$APP.J(b,$APP.W);uo(a);a.setAttribute("role","region");
4
- a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},zo=function(a){function b(c){var d=c.detail;if($APP.O($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type");var g=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.xg(new $APP.Q(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.wh,$APP.n(g)?g:"",$APP.Kh,$APP.n(h)?h:"",$APP.Kg,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
- e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.ma(a,"__xToasterHandlers",{dismiss:b})},Ao=function(a){var b=$APP.l(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.l(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Bo=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return ro(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
- ""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=so(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
- null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.l(this,"__xToasterModel");c=$APP.n(c)?c:xo(this);var d=wo.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.l(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.l(b,
8
- "heading");$APP.n(d)&&c.setAttribute("heading",d);d=$APP.l(b,"message");$APP.n(d)&&c.setAttribute("message",d);d=$APP.l(b,"icon");$APP.n(d)&&c.setAttribute("icon",d);$APP.l(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.l(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.T.g(d));$APP.n($APP.l(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Do=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
- Co;a.prototype.connectedCallback=function(){uo(this);Ao(this);zo(this);yo(this);return null};a.prototype.disconnectedCallback=function(){Ao(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&yo(this);return null};Bo(a);return a},Eo=function(){$APP.n(customElements.get("x-toaster"))||customElements.define("x-toaster",Do());return null},wo=new $APP.M(null,"max-toasts","max-toasts",-1982289139),vo=new $APP.M(null,"max-toasts-raw","max-toasts-raw",-815087069);var Co=["position","max-toasts","label"];$APP.wd(["x-toaster-dismiss",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.Z,$APP.X,$APP.wh,$APP.X,$APP.Kh,$APP.X,$APP.Kg,$APP.X],null),$APP.ui,!0],null)]);var qo=new $APP.S(null,new $APP.Q(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var to=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,480px);box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.T.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ka("baredom.exports.x_toaster.init",Eo);export const init=Eo;
2
+ var so=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.yc(ro,a)?a:"top-end"},to=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},vo=function(a){if(!$APP.n($APP.l(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=uo;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.Q(null,2,[$APP.kh,b,$APP.Jh,d],null)}},yo=function(a){a=
3
+ new $APP.Q(null,3,[$APP.Ai,a.getAttribute("position"),wo,a.getAttribute("max-toasts"),$APP.Wg,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.I(b,$APP.Ai);a=$APP.I(b,wo);b=$APP.I(b,$APP.Wg);c=so(c);a=to(a);return new $APP.Q(null,3,[$APP.Ti,c,xo,$APP.n(a)?a:5,$APP.W,typeof b==="string"&&$APP.O(b.trim(),"")?b:"Notifications"],null)},zo=function(a){var b=yo(a);if($APP.O($APP.l(a,"__xToasterModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.Ti),d=$APP.I(b,$APP.W);vo(a);a.setAttribute("role","region");
4
+ a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Ao=function(a){function b(c){var d=c.detail;if($APP.O($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type");var g=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.pg(new $APP.Q(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.qh,$APP.n(g)?g:"",$APP.Eh,$APP.n(h)?h:"",$APP.Cg,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
+ e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.la(a,"__xToasterHandlers",{dismiss:b})},Bo=function(a){var b=$APP.l(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.l(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Co=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return so(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
+ ""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=to(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
+ null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.l(this,"__xToasterModel");c=$APP.n(c)?c:yo(this);var d=xo.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.l(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.l(b,
8
+ "heading");$APP.n(d)&&c.setAttribute("heading",d);d=$APP.l(b,"message");$APP.n(d)&&c.setAttribute("message",d);d=$APP.l(b,"icon");$APP.n(d)&&c.setAttribute("icon",d);$APP.l(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.l(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.T.g(d));$APP.n($APP.l(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Eo=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
+ Do;a.prototype.connectedCallback=function(){vo(this);Bo(this);Ao(this);zo(this);return null};a.prototype.disconnectedCallback=function(){Bo(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&zo(this);return null};Co(a);return a},Fo=function(){$APP.n(customElements.get("x-toaster"))||customElements.define("x-toaster",Eo());return null},xo=new $APP.M(null,"max-toasts","max-toasts",-1982289139),wo=new $APP.M(null,"max-toasts-raw","max-toasts-raw",-815087069);var Do=["position","max-toasts","label"];$APP.sd(["x-toaster-dismiss",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.Z,$APP.X,$APP.qh,$APP.X,$APP.Eh,$APP.X,$APP.Cg,$APP.X],null),$APP.ni,!0],null)]);var ro=new $APP.S(null,new $APP.Q(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var uo=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,480px);box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.T.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ja("baredom.exports.x_toaster.init",Fo);export const init=Fo;
package/package.json CHANGED
@@ -259,6 +259,6 @@
259
259
  "shadow-cljs" : "^3.3.6"
260
260
  },
261
261
  "files" : [ "dist", "README.md", "LICENSE", "CHANGELOG.md" ],
262
- "version" : "0.2.6-alpha",
262
+ "version" : "1.0.0-rc.1",
263
263
  "sideEffects" : [ "./dist/*.js" ]
264
264
  }