@vanelsas/baredom 0.1.0-alpha

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 (61) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE +21 -0
  3. package/README.md +444 -0
  4. package/dist/base.js +352 -0
  5. package/dist/x-alert.js +20 -0
  6. package/dist/x-avatar-group.js +12 -0
  7. package/dist/x-avatar.js +18 -0
  8. package/dist/x-badge.js +12 -0
  9. package/dist/x-breadcrumbs.js +15 -0
  10. package/dist/x-button.js +17 -0
  11. package/dist/x-cancel-dialogue.js +20 -0
  12. package/dist/x-card.js +8 -0
  13. package/dist/x-chart.js +45 -0
  14. package/dist/x-checkbox.js +12 -0
  15. package/dist/x-chip.js +10 -0
  16. package/dist/x-collapse.js +13 -0
  17. package/dist/x-command-palette.js +33 -0
  18. package/dist/x-container.js +7 -0
  19. package/dist/x-context-menu.js +20 -0
  20. package/dist/x-copy.js +26 -0
  21. package/dist/x-currency-field.js +22 -0
  22. package/dist/x-date-picker.js +37 -0
  23. package/dist/x-divider.js +11 -0
  24. package/dist/x-drawer.js +13 -0
  25. package/dist/x-dropdown.js +12 -0
  26. package/dist/x-fieldset.js +7 -0
  27. package/dist/x-file-download.js +9 -0
  28. package/dist/x-form-field.js +16 -0
  29. package/dist/x-form.js +11 -0
  30. package/dist/x-grid.js +8 -0
  31. package/dist/x-menu-item.js +11 -0
  32. package/dist/x-menu.js +13 -0
  33. package/dist/x-modal.js +14 -0
  34. package/dist/x-navbar.js +13 -0
  35. package/dist/x-notification-center.js +10 -0
  36. package/dist/x-pagination.js +17 -0
  37. package/dist/x-popover.js +13 -0
  38. package/dist/x-progress-circle.js +12 -0
  39. package/dist/x-progress.js +11 -0
  40. package/dist/x-radio.js +13 -0
  41. package/dist/x-search-field.js +17 -0
  42. package/dist/x-select.js +12 -0
  43. package/dist/x-sidebar.js +27 -0
  44. package/dist/x-skeleton.js +8 -0
  45. package/dist/x-slider.js +17 -0
  46. package/dist/x-spacer.js +6 -0
  47. package/dist/x-spinner.js +7 -0
  48. package/dist/x-stat.js +10 -0
  49. package/dist/x-stepper.js +17 -0
  50. package/dist/x-switch.js +12 -0
  51. package/dist/x-tab.js +9 -0
  52. package/dist/x-table-cell.js +26 -0
  53. package/dist/x-table-row.js +11 -0
  54. package/dist/x-table.js +16 -0
  55. package/dist/x-tabs.js +12 -0
  56. package/dist/x-text-area.js +20 -0
  57. package/dist/x-timeline-item.js +25 -0
  58. package/dist/x-timeline.js +10 -0
  59. package/dist/x-toast.js +26 -0
  60. package/dist/x-toaster.js +9 -0
  61. package/package.json +276 -0
package/dist/x-stat.js ADDED
@@ -0,0 +1,10 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Iy=function(a,b,c){return $APP.Cc(b,a)?a:c},Jy=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},Sy=function(a){var b=$APP.M(a),c=$APP.I(b,Ky),d=$APP.I(b,Ly),e=$APP.I(b,$APP.ei),f=$APP.I(b,$APP.Wg);a=$APP.I(b,$APP.T);var h=$APP.I(b,$APP.mi),k=$APP.I(b,$APP.Ag),m=$APP.I(b,$APP.Hh);b=$APP.I(b,$APP.W);f=Iy(f,My,"default");e=Iy(e,Ny,"start");k=Iy(k,Oy,"md");c=Iy(c,Py,"normal");d=Iy(d,Qy,"neutral");m=$APP.J(m);return $APP.bf([Ly,$APP.ei,$APP.Wg,$APP.T,$APP.mi,$APP.Ag,$APP.Hh,$APP.W,Ry,Ky],
3
+ [d,e,f,Jy(a),Jy(h),k,m,Jy(b),m?"true":null,c])},Ty=function(a){return $APP.bf([Ly,$APP.ei,$APP.Wg,$APP.T,$APP.mi,$APP.Ag,$APP.Hh,$APP.W,Ky],[a.getAttribute("trend"),a.getAttribute("align"),a.getAttribute("variant"),a.getAttribute("value"),a.getAttribute("hint"),a.getAttribute("size"),a.hasAttribute("loading"),a.getAttribute("label"),a.getAttribute("emphasis")])},Uy=function(a,b){a.setAttribute("role","figure");var c=Ry.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
+ $APP.W.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},Vy=function(a,b){a.setAttribute("data-variant",$APP.Wg.g(b));a.setAttribute("data-align",$APP.ei.g(b));a.setAttribute("data-size",$APP.Ag.g(b));a.setAttribute("data-emphasis",Ky.g(b));a.setAttribute("data-trend",Ly.g(b));$APP.n($APP.Hh.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},Wy=function(a){var b=Sy(Ty(a)),c=$APP.l(a,"__x_stat_base"),d=$APP.l(a,"__x_stat_label"),e=$APP.l(a,"__x_stat_value"),
5
+ f=$APP.l(a,"__x_stat_hint");return $APP.n(c)?(Uy(a,b),Vy(c,b),d.textContent=function(){var h=$APP.W.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.T.g(b);return $APP.n(h)?h:""}(),f.textContent=function(){var h=$APP.mi.g(b);return $APP.n(h)?h:""}()):null},Xy=function(a){if($APP.l(a,"__x_stat_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("div"),
6
+ k=document.createElement("div"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),u=document.createElement("span"),w=document.createElement("slot"),z=document.createElement("slot"),A=document.createElement("slot"),C=document.createElement("slot"),F=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:grid;gap:6px;}.label{font-size:12px;opacity:0.8;}.value{font-weight:600;font-size:20px;}.hint{font-size:12px;opacity:0.7;}.base[data-loading\x3d'true']{opacity:0.6;}";
7
+ d.setAttribute("part","base");e.setAttribute("part","icon");f.setAttribute("part","body");h.setAttribute("part","label");k.setAttribute("part","value");m.setAttribute("part","hint");w.setAttribute("name","icon");z.setAttribute("name","label");A.setAttribute("name","value");C.setAttribute("name","hint");e.appendChild(w);h.appendChild(z);h.appendChild(q);k.appendChild(A);k.appendChild(r);m.appendChild(C);m.appendChild(u);f.appendChild(h);f.appendChild(k);f.appendChild(m);f.appendChild(F);d.appendChild(e);
8
+ d.appendChild(f);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=q;a.__x_stat_value=r;a.__x_stat_hint=u;a.__x_stat_initialized=!0}Wy(a);return a},Zy=function(){var a=class extends HTMLElement{};a.observedAttributes=Yy;a.prototype.connectedCallback=function(){return Xy(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_stat_initialized")===!0?Wy(this):Xy(this)};return a},$y=function(){return $APP.n(customElements.get("x-stat"))?null:
9
+ customElements.define("x-stat",Zy())},Ky=new $APP.K(null,"emphasis","emphasis",293543451),Ry=new $APP.K(null,"aria-busy","aria-busy",793864247),Ly=new $APP.K(null,"trend","trend",54563841);var Yy="variant align size emphasis trend loading label value hint".split(" "),My=new $APP.R(null,new $APP.P(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),Ny=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null),Oy=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),Py=new $APP.R(null,new $APP.P(null,2,["high",null,"normal",null],null),null),Qy=new $APP.R(null,new $APP.P(null,3,["neutral",null,
10
+ "up",null,"down",null],null),null);$APP.ka("app.exports.x_stat.init",$y);export const init=$y;
@@ -0,0 +1,17 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Rk=function(a){a=$APP.I(Pk,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Qk},Tk=function(a){a=$APP.I(Sk,a);return $APP.n(a)?a:"horizontal"},Wk=function(a){a=$APP.I(Uk,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Vk},Yk=function(a){a=$APP.I(Xk,a);return $APP.n(a)?a:"md"},Zk=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:0):0},$k=function(a){if(typeof a==="string"){var b=a.trim();if($APP.n($APP.Df(/^\d+$/,
3
+ b)))return a=parseInt(b,10),a>0&&a<=200?$APP.Md(function(d){return new $APP.P(null,2,[$APP.W,"Step "+$APP.S.g(d),$APP.Dg,null],null)},$APP.Bf(1,a+1)):$APP.Ld;if($APP.n(function(){var d=$APP.N("",b);return d?b.startsWith("["):d}()))try{var c=JSON.parse(b);return $APP.n(Array.isArray(c))?$APP.Md(function(d){return new $APP.P(null,2,[$APP.W,function(){var e=$APP.l(d,"label");return typeof e==="string"?e:""}(),$APP.Dg,function(){var e=$APP.l(d,"description");return typeof e==="string"?e:null}()],null)},
4
+ $APP.gc(c)):$APP.Ld}catch(d){return $APP.Ld}else return $APP.Ld}else return $APP.Ld},al=function(a){var b=$APP.l(a,"__xStepperRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-stepper-indicator-size:2rem;--x-stepper-connector-thickness:2px;--x-stepper-step-gap:0.75rem;--x-stepper-font-size:0.875rem;--x-stepper-label-font-weight:500;--x-stepper-desc-font-size:0.75rem;--x-stepper-radius:999px;--x-stepper-motion:120ms;--x-stepper-press-scale:0.93;--x-stepper-focus-ring:rgba(0,0,0,0.55);--x-stepper-disabled-opacity:0.5;--x-stepper-complete-bg:rgba(16,140,72,1);--x-stepper-complete-color:#fff;--x-stepper-complete-connector:rgba(16,140,72,1);--x-stepper-current-bg:rgba(0,102,204,1);--x-stepper-current-color:#fff;--x-stepper-upcoming-bg:rgba(0,0,0,0.08);--x-stepper-upcoming-color:rgba(0,0,0,0.45);--x-stepper-idle-connector:rgba(0,0,0,0.12);--x-stepper-label-done-color:rgba(0,0,0,0.85);--x-stepper-label-current-color:rgba(0,0,0,0.85);--x-stepper-label-upcoming-color:rgba(0,0,0,0.4);--x-stepper-desc-color:rgba(0,0,0,0.4);}@media (prefers-color-scheme:dark){:host{--x-stepper-focus-ring:rgba(255,255,255,0.7);--x-stepper-complete-bg:rgba(60,210,120,1);--x-stepper-complete-color:#000;--x-stepper-complete-connector:rgba(60,210,120,1);--x-stepper-current-bg:rgba(80,160,255,1);--x-stepper-current-color:#000;--x-stepper-upcoming-bg:rgba(255,255,255,0.1);--x-stepper-upcoming-color:rgba(255,255,255,0.35);--x-stepper-idle-connector:rgba(255,255,255,0.12);--x-stepper-label-done-color:rgba(255,255,255,0.9);--x-stepper-label-current-color:rgba(255,255,255,0.9);--x-stepper-label-upcoming-color:rgba(255,255,255,0.3);--x-stepper-desc-color:rgba(255,255,255,0.35);}}[part\x3dcontainer]{display:flex;align-items:flex-start;margin:0;padding:0;list-style:none;}:host([data-orientation\x3dhorizontal]) [part\x3dcontainer]{flex-direction:row;}:host([data-orientation\x3dhorizontal]) [part\x3dstep]{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-track]{display:flex;align-items:center;width:100%;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-connector]{flex:1;height:var(--x-stepper-connector-thickness);min-width:8px;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-content]{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--x-stepper-step-gap) 4px 0;width:100%;}:host([data-orientation\x3dvertical]) [part\x3dcontainer]{flex-direction:column;}:host([data-orientation\x3dvertical]) [part\x3dstep]{display:flex;flex-direction:row;gap:var(--x-stepper-step-gap);}:host([data-orientation\x3dvertical]) [part\x3dstep-track]{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:var(--x-stepper-indicator-size);}:host([data-orientation\x3dvertical]) [part\x3dstep-connector]{flex:1;width:var(--x-stepper-connector-thickness);min-height:16px;margin:4px 0;}:host([data-orientation\x3dvertical]) [part\x3dstep-content]{display:flex;flex-direction:column;flex:1;min-width:0;padding-bottom:var(--x-stepper-step-gap);}[part\x3dstep-indicator]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-stepper-indicator-size);height:var(--x-stepper-indicator-size);border-radius:var(--x-stepper-radius);border:none;padding:0;margin:0;cursor:pointer;font-size:0.875em;font-weight:600;font-family:inherit;flex-shrink:0;position:relative;z-index:1;transition:background var(--x-stepper-motion) ease,color var(--x-stepper-motion) ease,transform 80ms ease;}[part\x3dstep-indicator]:focus{outline:none;}[part\x3dstep-indicator]:focus-visible{outline:2px solid var(--x-stepper-focus-ring);outline-offset:3px;}[data-state\x3dcomplete] [part\x3dstep-indicator]{background:var(--x-stepper-complete-bg);color:var(--x-stepper-complete-color);}[data-state\x3dcurrent] [part\x3dstep-indicator]{background:var(--x-stepper-current-bg);color:var(--x-stepper-current-color);cursor:default;}[data-state\x3dupcoming] [part\x3dstep-indicator]{background:var(--x-stepper-upcoming-bg);color:var(--x-stepper-upcoming-color);}[data-state\x3dcomplete] [part\x3dstep-connector]{background:var(--x-stepper-complete-connector);}[data-state\x3dcurrent] [part\x3dstep-connector],[data-state\x3dupcoming] [part\x3dstep-connector]{background:var(--x-stepper-idle-connector);}[part\x3dstep]:last-child [part\x3dstep-connector]{display:none;}[part\x3dstep-label]{font-size:var(--x-stepper-font-size);line-height:1.3;font-family:inherit;}[data-state\x3dcomplete] [part\x3dstep-label]{color:var(--x-stepper-label-done-color);}[data-state\x3dcurrent] [part\x3dstep-label]{color:var(--x-stepper-label-current-color);font-weight:var(--x-stepper-label-font-weight);}[data-state\x3dupcoming] [part\x3dstep-label]{color:var(--x-stepper-label-upcoming-color);}[part\x3dstep-description]{font-size:var(--x-stepper-desc-font-size);color:var(--x-stepper-desc-color);line-height:1.3;margin-top:0.2em;}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:hover,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:hover{filter:brightness(0.88);}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:active,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:active{transform:scale(var(--x-stepper-press-scale));}:host([disabled]){opacity:var(--x-stepper-disabled-opacity);}:host([disabled]) [part\x3dstep-indicator]{cursor:default;pointer-events:none;}:host([data-size\x3dsm]){--x-stepper-indicator-size:1.5rem;--x-stepper-font-size:0.8125rem;--x-stepper-desc-font-size:0.6875rem;}:host([data-size\x3dlg]){--x-stepper-indicator-size:2.5rem;--x-stepper-font-size:1rem;--x-stepper-desc-font-size:0.875rem;}@media (prefers-reduced-motion:reduce){[part\x3dstep-indicator]{transition:none;}}";
5
+ d.setAttribute("part","container");d.setAttribute("role","list");b.appendChild(c);b.appendChild(d);a.__xStepperRefs=new $APP.P(null,2,[$APP.sh,b,$APP.ri,d],null);return $APP.l(a,"__xStepperRefs")},fl=function(a){a=new $APP.P(null,5,[bl,a.getAttribute("steps"),cl,a.getAttribute("current"),$APP.li,a.getAttribute("orientation"),$APP.hi,a.getAttribute("size"),$APP.U,a.hasAttribute("disabled")],null);var b=$APP.M(a),c=$APP.I(b,bl);a=$APP.I(b,cl);var d=$APP.I(b,$APP.li),e=$APP.I(b,$APP.hi);b=$APP.I(b,$APP.U);
6
+ c=$k(c);var f=$APP.B(c);return new $APP.P(null,5,[dl,c,el,f===0?0:$APP.kg.h(0,$APP.lg.h(Zk(a),f-1)),$APP.Ah,Rk(d),$APP.Ag,Wk(e),$APP.U,$APP.J(b)],null)},gl=function(a,b,c){return"Step "+$APP.S.g(a+1)+": "+$APP.S.g(b)+" ("+$APP.S.g(function(){var d=c instanceof $APP.K?c.oa:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.S.g(d));}}())+")"},hl=function(a,b,c,d){var e=$APP.M(b);b=$APP.I(e,
7
+ $APP.W);e=$APP.I(e,$APP.Dg);var f=document.createElement("div"),h=document.createElement("div"),k=document.createElement("button"),m=document.createElement("span"),q=document.createElement("div"),r=document.createElement("div"),u=document.createElement("span"),w=document.createElement("span");a:{var z=c instanceof $APP.K?c.oa:null;switch(z){case "complete":z="complete";break a;case "current":z="current";break a;case "upcoming":z="upcoming";break a;default:throw Error("No matching clause: "+$APP.S.g(z));
8
+ }}b=$APP.n(b)?b:"";f.setAttribute("part","step");f.setAttribute("role","listitem");f.setAttribute("data-index",""+$APP.S.g(a));f.setAttribute("data-state",z);h.setAttribute("part","step-track");k.setAttribute("part","step-indicator");k.setAttribute("type","button");k.setAttribute("aria-label",gl(a,b,c));$APP.D.h(c,el)?k.setAttribute("aria-current","step"):k.removeAttribute("aria-current");k.setAttribute("tabindex",$APP.n(d)?"-1":"0");m.setAttribute("part","step-number");m.setAttribute("aria-hidden",
9
+ "true");m.textContent=$APP.D.h(c,$APP.Qi)?"✓":""+$APP.S.g(a+1);q.setAttribute("part","step-connector");q.setAttribute("aria-hidden","true");r.setAttribute("part","step-content");u.setAttribute("part","step-label");u.textContent=b;w.setAttribute("part","step-description");$APP.n($APP.n(e)?$APP.N(e,""):e)?(w.textContent=e,w.style.display="block"):w.style.display="none";k.appendChild(m);h.appendChild(k);h.appendChild(q);r.appendChild(u);r.appendChild(w);f.appendChild(h);f.appendChild(r);return f},jl=
10
+ function(a){var b=fl(a);if($APP.N($APP.l(a,"__xStepperModel"),b)){b=$APP.M(b);var c=$APP.I(b,dl),d=$APP.I(b,el),e=$APP.I(b,$APP.Ah),f=$APP.I(b,$APP.Ag),h=$APP.I(b,$APP.U),k=al(a);k=$APP.M(k);k=$APP.I(k,$APP.ri);a.setAttribute("data-orientation",Tk(e));a.setAttribute("data-size",Yk(f));k.innerHTML="";c=$APP.v($APP.Bd($APP.og,c));e=null;for(var m=f=0;;)if(m<f){var q=e.F(null,m),r=$APP.H(q,0,null);q=$APP.H(q,1,null);var u=r<d?$APP.Qi:$APP.D.h(r,d)?el:il;k.appendChild(hl(r,q,u,h));m+=1}else if(c=$APP.v(c))$APP.yc(c)?
11
+ (f=$APP.ob(c),c=$APP.pb(c),e=f,f=$APP.B(f)):(f=$APP.x(c),e=$APP.H(f,0,null),f=$APP.H(f,1,null),m=e<d?$APP.Qi:$APP.D.h(e,d)?el:il,k.appendChild(hl(e,f,m,h)),c=$APP.y(c),e=null,f=0),m=0;else break;a.__xStepperModel=b}},ll=function(a){function b(d){var e=$APP.l(a,"__xStepperModel");e=$APP.n(e)?e:fl(a);$APP.n($APP.U.g(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),10),e=el.g(e),typeof d==="number"&&$APP.p(isNaN(d))&&$APP.N(d,
12
+ e)&&(e=$APP.xg(new $APP.P(null,2,[$APP.Mg,e,kl,d],null)),e=new CustomEvent("x-stepper-change",{detail:e,bubbles:!0,composed:!0,cancelable:!0}),e=a.dispatchEvent(e),$APP.n(e)&&a.setAttribute("current",""+$APP.S.g(d)))));return null}var c=al(a);c=$APP.M(c);$APP.I(c,$APP.ri).addEventListener("click",b);$APP.ma(a,"__xStepperHandlers",{click:b})},ml=function(a){var b=$APP.l(a,"__xStepperHandlers");if($APP.n(b)){var c=$APP.l(a,"__xStepperRefs");$APP.n(c)&&(c=$APP.ri.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?
13
+ b:c)&&c.removeEventListener("click",b))}a.__xStepperHandlers=null},nl=function(a){Object.defineProperty(a,"steps",{get:function(){var b=this.getAttribute("steps");return $APP.n(b)?b:"[]"},set:function(b){return $APP.n(b)?this.setAttribute("steps",""+$APP.S.g(b)):this.removeAttribute("steps")},enumerable:!0,configurable:!0});Object.defineProperty(a,"current",{get:function(){return Zk(this.getAttribute("current"))},set:function(b){return b==null?this.removeAttribute("current"):this.setAttribute("current",
14
+ ""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return Tk(Rk(this.getAttribute("orientation")))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.S.g(b)):this.removeAttribute("orientation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){return Yk(Wk(this.getAttribute("size")))},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.S.g(b)):this.removeAttribute("size")},enumerable:!0,
15
+ 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})},pl=function(){var a=class extends HTMLElement{};a.observedAttributes=ol;a.prototype.connectedCallback=function(){al(this);ml(this);ll(this);jl(this);return null};a.prototype.disconnectedCallback=function(){ml(this);return null};a.prototype.attributeChangedCallback=
16
+ function(b,c,d){$APP.N(c,d)&&jl(this);return null};nl(a.prototype);return a},ql=function(){$APP.n(customElements.get("x-stepper"))||customElements.define("x-stepper",pl());return null},il=new $APP.K(null,"upcoming","upcoming",1873315471),el=new $APP.K(null,"current","current",-1088038603),bl=new $APP.K(null,"steps-raw","steps-raw",1741812533),Vk=new $APP.K(null,"md","md",707286655),rl=new $APP.K(null,"lg","lg",-80787836),Qk=new $APP.K(null,"horizontal","horizontal",2062109475),sl=new $APP.K(null,
17
+ "vertical","vertical",718696748),tl=new $APP.K(null,"sm","sm",-1402575065),kl=new $APP.K(null,"to","to",192099007),dl=new $APP.K(null,"steps","steps",-128433302),cl=new $APP.K(null,"current-raw","current-raw",-1440665509);var ol=["steps","current","orientation","size","disabled"];$APP.wd(["x-stepper-change",new $APP.P(null,2,[$APP.Y,new $APP.P(null,2,[$APP.Mg,$APP.Gh,kl,$APP.Gh],null),$APP.wi,!0],null)]);var Pk=new $APP.P(null,2,["horizontal",Qk,"vertical",sl],null),Sk=new $APP.P(null,2,[Qk,"horizontal",sl,"vertical"],null),Uk=new $APP.P(null,3,["sm",tl,"md",Vk,"lg",rl],null),Xk=new $APP.P(null,3,[tl,"sm",Vk,"md",rl,"lg"],null);$APP.ka("app.exports.x_stepper.init",ql);export const init=ql;
@@ -0,0 +1,12 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var WA=function(a,b,c){return a.setAttribute(b,c)},XA=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},YA=function(a){a=$APP.bf([$APP.Kh,$APP.$h,$APP.Cg,$APP.Rg,$APP.ai,$APP.vi,$APP.Gi,$APP.Ei,$APP.ki],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
+ $APP.I(b,$APP.Ei);var c=$APP.I(b,$APP.ki),d=$APP.I(b,$APP.Kh),e=$APP.I(b,$APP.$h),f=$APP.I(b,$APP.Cg),h=$APP.I(b,$APP.Rg),k=$APP.I(b,$APP.ai),m=$APP.I(b,$APP.vi);b=$APP.I(b,$APP.Gi);k=$APP.J(k);f=$APP.J(f);return $APP.bf([$APP.bh,$APP.Xg,$APP.cj,$APP.pi,$APP.Ig,$APP.ii,$APP.T,$APP.Oi,$APP.Xi,$APP.bi,$APP.U],[f,k?"true":"false",$APP.J(m),k,$APP.n(f)?k:!0,d,b!=null?b:"on",h,c,a,$APP.J(e)])},ZA=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=YA(a);var d=$APP.U.g(b),
4
+ e=$APP.pi.g(b);WA(c,"aria-checked",$APP.Xg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");WA(c,"aria-required",$APP.n($APP.bh.g(b))?"true":"false");WA(c,"aria-readonly",$APP.n($APP.cj.g(b))?"true":"false");var f=$APP.bi.g(b);$APP.n(f)?c.setAttribute("aria-label",f):c.removeAttribute("aria-label");f=$APP.Oi.g(b);$APP.n(f)?c.setAttribute("aria-labelledby",f):c.removeAttribute("aria-labelledby");f=$APP.Xi.g(b);$APP.n(f)?c.setAttribute("aria-describedby",f):c.removeAttribute("aria-describedby");
5
+ c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");XA(a,"data-checked",e);XA(a,"data-disabled",d);a=$APP.l(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.T.g(b):null):null}return null},$A=function(a){var b=YA(a),c=$APP.U.g(b),d=$APP.cj.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.pi.g(b);c=$APP.p(d);b=$APP.T.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
6
+ cancelable:!0});a.dispatchEvent(d);return $APP.p(d.defaultPrevented)?(XA(a,"checked",c),ZA(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},aB=function(a){return function(){return $A(a)}},bB=function(a){return function(b){var c=b.key;return $APP.D.h(c," ")||$APP.D.h(c,"Enter")?(b.preventDefault(),$A(a)):null}},cB=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(a,"__xSwitchHandlers");if($APP.n(c)){b=
7
+ $APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},dB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return XA(this,c,$APP.J(d))}})},eB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
8
+ null&&$APP.N(d)?WA(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},gB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return fB}});dB(b,"checked","checked");dB(b,"disabled","disabled");dB(b,"readOnly","readonly");dB(b,"required","required");eB(b,"name","name");eB(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
9
+ e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-switch-track-width:44px;--x-switch-track-height:24px;--x-switch-thumb-size:18px;--x-switch-thumb-offset:3px;--x-switch-track-radius:999px;--x-switch-track-bg:#d1d5db;--x-switch-track-bg-checked:#2563eb;--x-switch-thumb-bg:#ffffff;--x-switch-focus-ring:#60a5fa;--x-switch-disabled-opacity:0.45;--x-switch-transition:background 150ms ease,transform 150ms ease;}@media (prefers-color-scheme:dark){:host{--x-switch-track-bg:#4b5563;--x-switch-track-bg-checked:#3b82f6;--x-switch-thumb-bg:#f9fafb;--x-switch-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-switch-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-switch-focus-ring);border-radius:calc(var(--x-switch-track-radius) + 2px);}[part\x3dtrack]{position:relative;display:inline-block;width:var(--x-switch-track-width);height:var(--x-switch-track-height);border-radius:var(--x-switch-track-radius);background:var(--x-switch-track-bg);transition:background 150ms ease;flex-shrink:0;}:host([data-checked]) [part\x3dtrack]{background:var(--x-switch-track-bg-checked);}[part\x3dthumb]{position:absolute;top:var(--x-switch-thumb-offset);left:var(--x-switch-thumb-offset);width:var(--x-switch-thumb-size);height:var(--x-switch-thumb-size);border-radius:50%;background:var(--x-switch-thumb-bg);box-shadow:0 1px 3px rgba(0,0,0,0.25);transition:transform 150ms ease;}:host([data-checked]) [part\x3dthumb]{transform:translateX(calc(var(--x-switch-track-width) - var(--x-switch-thumb-size) - calc(var(--x-switch-thumb-offset) * 2)));}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none;}[part\x3dthumb]{transition:none;}}";
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");f.setAttribute("part","track");h.setAttribute("part","thumb");f.appendChild(h);e.appendChild(f);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:f,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}cB(this);c=$APP.l(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=aB(this),e=bB(this),f={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xSwitchHandlers=f);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.S.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.S.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xSwitchRefs"),$APP.n(d)&&$APP.l(d,"control").setAttribute("aria-labelledby",c)));return ZA(this)};b.disconnectedCallback=function(){return cB(this)};b.attributeChangedCallback=function(){return ZA(this)};b.formDisabledCallback=
12
+ function(c){XA(this,"disabled",$APP.J(c));return ZA(this)};b.formResetCallback=function(){this.removeAttribute("checked");return ZA(this)};return a},hB=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",gB())};var fB="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.wd(["x-switch-change-request",new $APP.P(null,2,[$APP.wi,!0,$APP.Y,new $APP.P(null,3,[$APP.T,$APP.X,$APP.Bg,$APP.Li,$APP.gi,$APP.Li],null)],null),"x-switch-change",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.Si,$APP.Li],null)],null)]);$APP.ka("app.exports.x_switch.init",hB);export const init=hB;
package/dist/x-tab.js ADDED
@@ -0,0 +1,9 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var jj=function(a,b,c){return $APP.Cc(b,a)?a:c},rj=function(a){var b=$APP.M(a),c=$APP.I(b,$APP.bj),d=$APP.I(b,$APP.yi);a=$APP.I(b,$APP.Ah);var e=$APP.I(b,$APP.Ag),f=$APP.I(b,$APP.Wg),h=$APP.I(b,$APP.W);b=$APP.I(b,kj);c=$APP.J(c);var k=(d=$APP.J(d))?"-1":c?"0":"-1";return new $APP.P(null,8,[$APP.bj,c,$APP.yi,d,$APP.Ah,jj(a,lj,"horizontal"),$APP.Ag,jj(e,mj,"md"),$APP.Wg,jj(f,qj,"default"),$APP.W,h,kj,b,$APP.Ug,k],null)},sj=function(a){return new $APP.P(null,8,[$APP.T,a.getAttribute("value"),$APP.bj,
3
+ a.hasAttribute("selected"),$APP.yi,a.hasAttribute("disabled"),$APP.Ah,a.getAttribute("orientation"),$APP.Ag,a.getAttribute("size"),$APP.Wg,a.getAttribute("variant"),$APP.W,a.getAttribute("label"),kj,a.getAttribute("controls")],null)},tj=function(a){var b=rj(sj(a)),c=$APP.l(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.bj.g(b))?"true":"false");$APP.n($APP.yi.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
4
+ $APP.Ug.g(b));var d=kj.g(b),e=$APP.W.g(b);$APP.n($APP.n(d)?$APP.N(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.N(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.bj.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.yi.g(b))?"true":"false");c.setAttribute("data-size",$APP.Ag.g(b));c.setAttribute("data-variant",$APP.Wg.g(b));return c.setAttribute("data-orientation",
5
+ $APP.Ah.g(b))}return null},uj=function(a){var b=rj(sj(a)),c=$APP.M(b);b=$APP.I(c,$APP.bj);c=$APP.I(c,$APP.yi);$APP.p(c)&&$APP.p(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},vj=function(a){a.addEventListener("click",function(){return uj(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.D.h(c,"Enter")||$APP.D.h(c," ")?(b.preventDefault(),b=uj(a)):b=null;return b})},wj=function(a){if($APP.l(a,
6
+ "__x_tab_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:inline-block;color-scheme:light dark;outline:none;--x-tab-color:#0f172a;--x-tab-hover-background:rgba(15,23,42,0.05);--x-tab-selected-color:#1d4ed8;--x-tab-selected-background:rgba(59,130,246,0.12);--x-tab-selected-border-color:transparent;}@media (prefers-color-scheme:dark){:host{--x-tab-color:#94a3b8;--x-tab-hover-background:rgba(248,250,252,0.06);--x-tab-selected-color:#60a5fa;--x-tab-selected-background:rgba(59,130,246,0.18);--x-tab-selected-border-color:#60a5fa;}}.base{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;user-select:none;padding:var(--x-tab-padding-md,10px 16px);border-radius:var(--x-tab-radius,8px);color:var(--x-tab-color);background:var(--x-tab-background,transparent);border:1px solid var(--x-tab-border-color,transparent);transition:background var(--x-tab-transition-duration,120ms) ease,color var(--x-tab-transition-duration,120ms) ease,border-color var(--x-tab-transition-duration,120ms) ease;}.base[data-size\x3d'sm']{padding:var(--x-tab-padding-sm,6px 12px);}.base[data-size\x3d'md']{padding:var(--x-tab-padding-md,10px 16px);}.base[data-size\x3d'lg']{padding:var(--x-tab-padding-lg,14px 20px);}.base:hover{background:var(--x-tab-hover-background);}.base[data-selected\x3d'true']{color:var(--x-tab-selected-color);background:var(--x-tab-selected-background);border-color:var(--x-tab-selected-border-color);}.base[data-variant\x3d'underline'][data-selected\x3d'true']{border-bottom:2px solid var(--x-tab-selected-color);background:transparent;}.base[data-variant\x3d'pill'][data-selected\x3d'true']{background:var(--x-tab-selected-background);}.base[data-disabled\x3d'true']{opacity:var(--x-tab-disabled-opacity,0.5);cursor:default;}:host(:focus-visible) .base{box-shadow:0 0 0 3px var(--x-tab-focus-ring,rgba(59,130,246,0.4));}@media (prefers-reduced-motion: reduce){.base{transition:none;}}";
7
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;vj(a);a.__x_tab_initialized=!0}tj(a);return a},xj=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},zj=function(){var a=class extends HTMLElement{};a.observedAttributes=yj;a.prototype.connectedCallback=function(){return wj(this)};a.prototype.attributeChangedCallback=
9
+ function(){return $APP.l(this,"__x_tab_initialized")===!0?tj(this):wj(this)};xj(a);return a},Aj=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",zj())},kj=new $APP.K(null,"controls","controls",1340701452);var yj="value selected disabled orientation size variant label controls".split(" "),lj=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),mj=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),qj=new $APP.R(null,new $APP.P(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.wd(["tab-select",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.T,$APP.X],null)],null)]);$APP.ka("app.exports.x_tab.init",Aj);export const init=Aj;
@@ -0,0 +1,26 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Dx=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(b,a)?a:c},Ex=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},Hx=function(a){var b=$APP.M(a);a=$APP.I(b,Fx);b=$APP.I(b,Gx);if($APP.n($APP.n(a)?a:$APP.N(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},Ix=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.Z);b=$APP.I(b,Fx);return(a=$APP.D.h(a,
3
+ "header"))?b:a},Jx=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},Kx=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},Px=function(a){var b=$APP.l(a,"__xTableCellRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),
4
+ f=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("slot"),m=document.createElement("span");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-table-cell-padding:0.5rem 0.75rem;--x-table-cell-bg:transparent;--x-table-cell-header-bg:rgba(0,0,0,0.04);--x-table-cell-border-color:rgba(0,0,0,0.1);--x-table-cell-border-width:1px;--x-table-cell-color:inherit;--x-table-cell-header-color:inherit;--x-table-cell-font-size:inherit;--x-table-cell-header-font-weight:600;--x-table-cell-min-width:0;--x-table-cell-max-width:none;--x-table-cell-sort-color:rgba(0,0,0,0.4);--x-table-cell-sort-hover-color:rgba(0,0,0,0.7);--x-table-cell-focus-ring:rgba(59,130,246,0.5);--x-table-cell-transition-duration:150ms;--x-table-cell-sticky-bg:#ffffff;--x-table-cell-disabled-opacity:0.45;min-width:var(--x-table-cell-min-width);max-width:var(--x-table-cell-max-width);}@media (prefers-color-scheme:dark){:host{--x-table-cell-header-bg:rgba(255,255,255,0.06);--x-table-cell-border-color:rgba(255,255,255,0.1);--x-table-cell-sort-color:rgba(255,255,255,0.4);--x-table-cell-sort-hover-color:rgba(255,255,255,0.7);--x-table-cell-sticky-bg:#1f2937;}}:host([data-sticky\x3d'start']){position:sticky;inset-inline-start:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([data-sticky\x3d'end']){position:sticky;inset-inline-end:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([disabled]){opacity:var(--x-table-cell-disabled-opacity);}[part\x3dcell]{display:flex;align-items:center;justify-content:flex-start;padding:var(--x-table-cell-padding);background:var(--x-table-cell-bg);border-bottom:var(--x-table-cell-border-width) solid var(--x-table-cell-border-color);color:var(--x-table-cell-color);font-size:var(--x-table-cell-font-size);min-width:0;box-sizing:border-box;}:host([data-type\x3d'header']) [part\x3dcell]{background:var(--x-table-cell-header-bg);color:var(--x-table-cell-header-color);font-weight:var(--x-table-cell-header-font-weight);}:host([data-align\x3d'start']) [part\x3dcell]{justify-content:flex-start;}:host([data-align\x3d'center']) [part\x3dcell]{justify-content:center;}:host([data-align\x3d'end']) [part\x3dcell]{justify-content:flex-end;}:host([data-valign\x3d'top']) [part\x3dcell]{align-items:flex-start;}:host([data-valign\x3d'middle']) [part\x3dcell]{align-items:center;}:host([data-valign\x3d'bottom']) [part\x3dcell]{align-items:flex-end;}[part\x3dcontent]{flex:1 1 auto;min-width:0;}:host([data-truncate]) [part\x3dcontent]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}[part\x3dsort-btn]{flex:0 0 auto;appearance:none;border:0;background:transparent;padding:2px;margin:0 0 0 4px;cursor:pointer;color:var(--x-table-cell-sort-color);display:inline-flex;align-items:center;justify-content:center;border-radius:4px;transition:color var(--x-table-cell-transition-duration) ease;line-height:1;}[part\x3dsort-btn]:hover{color:var(--x-table-cell-sort-hover-color);}[part\x3dsort-btn]:focus{outline:none;}[part\x3dsort-btn]:focus-visible{outline:2px solid var(--x-table-cell-focus-ring);outline-offset:2px;}[part\x3dsort-btn][disabled]{cursor:default;pointer-events:none;opacity:0.4;}[part\x3dsort-btn][hidden]{display:none !important;}@media (prefers-reduced-motion:reduce){[part\x3dsort-btn]{transition:none !important;}}";
5
+ d.setAttribute("part","cell");e.setAttribute("part","content");e.appendChild(f);h.setAttribute("part","sort-btn");h.setAttribute("type","button");k.setAttribute("name","sort-icon");m.setAttribute("part","sort-icon-default");m.setAttribute("aria-hidden","true");m.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e';k.appendChild(m);h.appendChild(k);d.appendChild(e);d.appendChild(h);
6
+ b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.P(null,5,[$APP.sh,b,Lx,d,Mx,e,Nx,h,Ox,m],null);return $APP.l(a,"__xTableCellRefs")},gy=function(a){a=$APP.bf([$APP.Dh,Qx,Rx,Sx,Fx,Tx,$APP.jh,Ux,Vx,$APP.U,Wx],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);
7
+ var b=$APP.M(a);a=$APP.I(b,$APP.U);var c=$APP.I(b,Wx),d=$APP.I(b,$APP.Dh),e=$APP.I(b,Qx),f=$APP.I(b,Rx),h=$APP.I(b,Sx),k=$APP.I(b,Fx),m=$APP.I(b,Tx),q=$APP.I(b,$APP.jh),r=$APP.I(b,Ux);b=$APP.I(b,Vx);return $APP.bf([$APP.ei,Gx,Xx,$APP.Z,Yx,Fx,$APP.Rh,Zx,Tx,$APP.U,$x],[Dx(d,ay,"start"),Dx(h,by,"none"),Dx(f,cy,"middle"),Dx(q,dy,"data"),Dx(b,ey,"col"),$APP.J(k),Dx(r,fy,"none"),Ex(c),$APP.J(m),$APP.J(a),Ex(e)])},hy=function(a){var b=gy(a);if($APP.N($APP.l(a,"__xTableCellModel"),b)){b=$APP.M(b);var c=$APP.I(b,
8
+ Zx),d=$APP.I(b,$x),e=$APP.I(b,$APP.U),f=$APP.I(b,Gx),h=Px(a);h=$APP.M(h);var k=$APP.I(h,Nx);h=$APP.I(h,Ox);var m=Ix(b),q=$APP.M(b),r=$APP.I(q,$APP.Z),u=$APP.I(q,$APP.ei),w=$APP.I(q,Xx),z=$APP.I(q,$APP.Rh),A=$APP.I(q,Tx),C=$APP.I(q,$APP.U);$APP.I(q,Fx);$APP.I(q,Gx);var F=a.setAttribute,E=$APP.M(q);var Q=$APP.I(E,$APP.Z);E=$APP.I(E,Yx);Q=$APP.D.h(Q,"header")?$APP.D.h(E,"row")||$APP.D.h(E,"rowgroup")?"rowheader":"columnheader":"cell";F.call(a,"role",Q);q=Hx(q);$APP.n(q)?a.setAttribute("aria-sort",q):
9
+ a.removeAttribute("aria-sort");$APP.n(C)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",r);a.setAttribute("data-align",u);a.setAttribute("data-valign",w);$APP.D.h(z,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",z);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.S.g(c):"";a.style.gridRow=d>1?"span "+$APP.S.g(d):"";k.hidden=$APP.p(m);c=parseInt;r=$APP.M(b);
10
+ m=$APP.I(r,$APP.Z);d=$APP.I(r,Fx);r=$APP.I(r,$APP.U);m=$APP.D.h(m,"header");k.tabIndex=c($APP.n(m?$APP.n(d)?$APP.p(r):d:m)?"0":"-1",10);k.setAttribute("aria-label",Kx(f));k.disabled=$APP.J(e);a:switch(e=$APP.M(b),$APP.I(e,Gx)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';
11
+ break a;default:e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a.__xTableCellModel=b}},iy=function(a){var b=a.getAttribute("sort-direction");b=Dx(b,by,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:Jx(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},jy=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");
12
+ return $APP.n(c)?c:gy(a)}();$APP.n(function(){var c=Ix(b);return $APP.n(c)?$APP.p($APP.U.g(b)):c}())&&iy(a);return null},ky=function(a){function b(){return jy(a)}var c=Px(a);c=$APP.M(c);$APP.I(c,Nx).addEventListener("click",b);$APP.ma(a,"__xTableCellHandlers",{"sort-click":b})},ly=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.M(c),c=$APP.I(c,Nx),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
13
+ null},my=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"data"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.S.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scope",{get:function(){var b=this.getAttribute("scope");return $APP.n(b)?b:"col"},set:function(b){return $APP.n(b)?this.setAttribute("scope",""+$APP.S.g(b)):this.removeAttribute("scope")},enumerable:!0,configurable:!0});
14
+ Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");return $APP.n(b)?b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.S.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"valign",{get:function(){var b=this.getAttribute("valign");return $APP.n(b)?b:"middle"},set:function(b){return $APP.n(b)?this.setAttribute("valign",""+$APP.S.g(b)):this.removeAttribute("valign")},enumerable:!0,configurable:!0});Object.defineProperty(a,
15
+ "truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sticky",{get:function(){var b=this.getAttribute("sticky");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("sticky",""+$APP.S.g(b)):this.removeAttribute("sticky")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortable",{get:function(){return this.hasAttribute("sortable")},
16
+ set:function(b){return $APP.n(b)?this.setAttribute("sortable",""):this.removeAttribute("sortable")},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,"colSpan",{get:function(){return Ex(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&
17
+ b>0?this.setAttribute("col-span",""+$APP.S.g(b)):this.removeAttribute("col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowSpan",{get:function(){return Ex(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?this.setAttribute("row-span",""+$APP.S.g(b)):this.removeAttribute("row-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortDirection",{get:function(){var b=this.getAttribute("sort-direction");return $APP.n(b)?b:"none"},
18
+ set:function(b){return $APP.n(b)?this.setAttribute("sort-direction",""+$APP.S.g(b)):this.removeAttribute("sort-direction")},enumerable:!0,configurable:!0})},qy=function(){var a=class extends HTMLElement{};a.observedAttributes=ny;a.prototype.connectedCallback=function(){Px(this);ly(this);ky(this);hy(this);var b=$APP.l(this,"__xTableCellModel");var c=$APP.n(b)?b:gy(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Z);var f=$APP.I(e,Yx),h=$APP.I(e,Zx),k=$APP.I(e,$x);e=$APP.I(e,
19
+ $APP.ei);b.call(this,new d("x-table-cell-connected",{detail:$APP.xg(new $APP.P(null,5,[$APP.Z,c,Yx,f,oy,h,py,k,$APP.ei,e],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){ly(this);this.dispatchEvent(new CustomEvent("x-table-cell-disconnected",{detail:{},bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&hy(this);return null};my(a.prototype);return a},ry=function(){$APP.n(customElements.get("x-table-cell"))||
20
+ customElements.define("x-table-cell",qy());return null},$x=new $APP.K(null,"row-span","row-span",-365554241),Yx=new $APP.K(null,"scope","scope",-439358418),Nx=new $APP.K(null,"sort-btn","sort-btn",1913954560),Mx=new $APP.K(null,"content","content",15833224),Tx=new $APP.K(null,"truncate?","truncate?",135673334),oy=new $APP.K(null,"colSpan","colSpan",872137394),Lx=new $APP.K(null,"cell","cell",764245084),Xx=new $APP.K(null,"valign","valign",1485197511),Fx=new $APP.K(null,"sortable?","sortable?",291547474),
21
+ Ox=new $APP.K(null,"sort-icon-default","sort-icon-default",-596209230),Wx=new $APP.K(null,"col-span-raw","col-span-raw",1425293661),Rx=new $APP.K(null,"valign-raw","valign-raw",-1083375124),Sx=new $APP.K(null,"sort-direction-raw","sort-direction-raw",-1822100883),Ux=new $APP.K(null,"sticky-raw","sticky-raw",1857578519),Zx=new $APP.K(null,"col-span","col-span",-232603210),py=new $APP.K(null,"rowSpan","rowSpan",826884002),Qx=new $APP.K(null,"row-span-raw","row-span-raw",-1130003707),Vx=new $APP.K(null,
22
+ "scope-raw","scope-raw",-773628648),Gx=new $APP.K(null,"sort-direction","sort-direction",-1635889628);var ny="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
23
+ $APP.bf([$APP.ei,py,new $APP.K(null,"truncate","truncate",-1327322939),$APP.yi,Xx,$APP.Z,Yx,oy,$APP.Rh,new $APP.K(null,"sortable","sortable",2109633621),new $APP.K(null,"sortDirection","sortDirection",-45816999)],[new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.Gh],null),new $APP.P(null,1,[$APP.Z,$APP.Li],null),new $APP.P(null,1,[$APP.Z,$APP.Li],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,
24
+ 1,[$APP.Z,$APP.Gh],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.Li],null),new $APP.P(null,1,[$APP.Z,$APP.X],null)]);$APP.wd(["x-table-cell-sort",new $APP.P(null,2,[$APP.Y,new $APP.P(null,2,[$APP.ci,$APP.X,$APP.Ji,$APP.X],null),$APP.wi,!0],null),"x-table-cell-connected",new $APP.P(null,1,[$APP.Y,new $APP.P(null,5,[$APP.Z,$APP.X,Yx,$APP.X,oy,$APP.Gh,py,$APP.Gh,$APP.ei,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.P(null,1,[$APP.Y,$APP.xd],null)]);
25
+ var dy=new $APP.R(null,new $APP.P(null,2,["data",null,"header",null],null),null),ey=new $APP.R(null,new $APP.P(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),ay=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null),cy=new $APP.R(null,new $APP.P(null,3,["top",null,"middle",null,"bottom",null],null),null),fy=new $APP.R(null,new $APP.P(null,3,["none",null,"start",null,"end",null],null),null),by=new $APP.R(null,new $APP.P(null,3,["none",null,
26
+ "desc",null,"asc",null],null),null);$APP.ka("app.exports.x_table_cell.init",ry);export const init=ry;
@@ -0,0 +1,11 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Bp=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},Dp=function(a){var b=$APP.M(a);a=$APP.I(b,Cp);b=$APP.I(b,$APP.U);return $APP.n(a)?$APP.p(b):a},Ep=function(a){if(!$APP.n($APP.l(a,"__xTableRowRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring:rgba(59,130,246,0.5);--x-table-row-transition-duration:150ms;--x-table-row-disabled-opacity:0.45;--x-table-row-cursor:pointer;background:var(--x-table-row-bg);transition:background var(--x-table-row-transition-duration) ease;}@media (prefers-color-scheme:dark){:host{--x-table-row-hover-bg:rgba(255,255,255,0.04);--x-table-row-selected-bg:rgba(99,160,255,0.12);--x-table-row-selected-hover-bg:rgba(99,160,255,0.16);}}:host([data-selected]){background:var(--x-table-row-selected-bg);}:host([data-interactive]){cursor:var(--x-table-row-cursor);}:host([data-interactive]:hover){background:var(--x-table-row-hover-bg);}:host([data-interactive][data-selected]:hover){background:var(--x-table-row-selected-hover-bg);}:host([data-interactive]:focus){outline:none;}:host([data-interactive]:focus-visible){outline:2px solid var(--x-table-row-focus-ring);outline-offset:-2px;}:host([disabled]){opacity:var(--x-table-row-disabled-opacity);pointer-events:none;}slot{display:contents;}@media (prefers-reduced-motion:reduce){:host{transition:none !important;}}";
3
+ b.appendChild(c);b.appendChild(d);a.__xTableRowRefs=new $APP.P(null,2,[$APP.sh,b,$APP.Qh,d],null)}},Hp=function(a){a=new $APP.P(null,4,[$APP.Jh,a.hasAttribute("selected"),$APP.U,a.hasAttribute("disabled"),Cp,a.hasAttribute("interactive"),Fp,a.getAttribute("row-index")],null);var b=$APP.M(a);a=$APP.I(b,$APP.Jh);var c=$APP.I(b,$APP.U),d=$APP.I(b,Cp);b=$APP.I(b,Fp);return new $APP.P(null,4,[$APP.Jh,$APP.J(a),$APP.U,$APP.J(c),Cp,$APP.J(d),Gp,Bp(b)],null)},Ip=function(a){var b=Hp(a);if($APP.N($APP.l(a,
4
+ "__xTableRowModel"),b)){Ep(a);var c=$APP.M(b),d=$APP.I(c,$APP.Jh),e=$APP.I(c,$APP.U),f=$APP.I(c,Cp),h=$APP.I(c,Gp);a.setAttribute("role","row");var k=$APP.M(c);var m=$APP.I(k,$APP.Jh);k=$APP.I(k,Cp);m=$APP.n(m)?"true":$APP.n(k)?"false":null;$APP.n(m)?a.setAttribute("aria-selected",m):a.removeAttribute("aria-selected");$APP.n(e)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");h!=null?a.setAttribute("aria-rowindex",""+$APP.S.g(h)):a.removeAttribute("aria-rowindex");$APP.n(d)?
5
+ a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.n(f)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.n(Dp(c))?0:-1;a.__xTableRowModel=b}},Jp=function(a){var b=$APP.l(a,"__xTableRowModel");var c=$APP.n(b)?b:Hp(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Jh);var f=$APP.I(e,$APP.U);e=$APP.I(e,Gp);b.call(a,new d("x-table-row-click",{detail:$APP.xg(new $APP.P(null,3,[$APP.ti,$APP.n(e)?e:0,$APP.bj,c,$APP.yi,f],
6
+ null)),bubbles:!0,composed:!0,cancelable:!0}))},Kp=function(a){function b(d){var e=d.key;if($APP.D.h(e,"Enter")||$APP.D.h(e," "))e=$APP.l(a,"__xTableRowModel"),e=$APP.n(e)?e:Hp(a),$APP.n(Dp(e))&&(d.preventDefault(),Jp(a));return null}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:Hp(a);$APP.n(Dp(d))&&Jp(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTableRowHandlers",{click:c,keydown:b})},Lp=function(a){var b=$APP.l(a,"__xTableRowHandlers");
7
+ if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTableRowHandlers=null},Mp=function(a){Object.defineProperty(a,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowIndex",{get:function(){return Bp(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&
9
+ b>0?this.setAttribute("row-index",""+$APP.S.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},Op=function(){var a=class extends HTMLElement{};a.observedAttributes=Np;a.prototype.connectedCallback=function(){Ep(this);Lp(this);Kp(this);Ip(this);var b=$APP.l(this,"__xTableRowModel");var c=$APP.n(b)?b:Hp(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Jh);var f=$APP.I(e,$APP.U),h=$APP.I(e,Cp);e=$APP.I(e,Gp);b.call(this,new d("x-table-row-connected",{detail:$APP.xg(new $APP.P(null,
10
+ 4,[$APP.ti,$APP.n(e)?e:0,$APP.bj,c,$APP.yi,f,$APP.Sh,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){Lp(this);document.dispatchEvent(new CustomEvent("x-table-row-disconnected",{detail:{},bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Ip(this);return null};Mp(a.prototype);return a},Pp=function(){$APP.n(customElements.get("x-table-row"))||customElements.define("x-table-row",
11
+ Op());return null},Cp=new $APP.K(null,"interactive?","interactive?",367617676),Gp=new $APP.K(null,"row-index","row-index",-828710296),Fp=new $APP.K(null,"row-index-raw","row-index-raw",1490649093);var Np=["selected","disabled","interactive","row-index"];$APP.wd(["x-table-row-click",new $APP.P(null,2,[$APP.Y,new $APP.P(null,3,[$APP.ti,$APP.Gh,$APP.bj,$APP.Li,$APP.yi,$APP.Li],null),$APP.wi,!0],null),"x-table-row-connected",new $APP.P(null,2,[$APP.Y,new $APP.P(null,4,[$APP.ti,$APP.Gh,$APP.bj,$APP.Li,$APP.yi,$APP.Li,$APP.Sh,$APP.Li],null),$APP.wi,!1],null),"x-table-row-disconnected",new $APP.P(null,2,[$APP.Y,$APP.xd,$APP.wi,!1],null)]);$APP.ka("app.exports.x_table_row.init",Pp);export const init=Pp;
@@ -0,0 +1,16 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var ws=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},ys=function(a){var b=$APP.l(a,"__xTableRefs");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:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:rgba(0,0,0,0.1);--x-table-border-radius:8px;--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:inherit;--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:rgba(255,255,255,0.1);--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
3
+ d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.P(null,3,[$APP.sh,b,xs,d,$APP.Qh,e],null);return $APP.l(a,"__xTableRefs")},Ks=function(a){a=new $APP.P(null,8,[zs,a.getAttribute("columns"),As,a.getAttribute("caption"),Bs,a.getAttribute("selectable"),$APP.lh,a.hasAttribute("striped"),Cs,a.hasAttribute("bordered"),Ds,a.hasAttribute("full-width"),Es,a.hasAttribute("compact"),Fs,a.getAttribute("row-count")],null);var b=
4
+ $APP.M(a),c=$APP.I(b,zs),d=$APP.I(b,As),e=$APP.I(b,Bs);a=$APP.I(b,$APP.lh);var f=$APP.I(b,Cs),h=$APP.I(b,Ds),k=$APP.I(b,Es);b=$APP.I(b,Fs);a:{if(typeof c==="string"&&(c=c.trim(),$APP.N(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.D.h(c,""+$APP.S.g(m))?"repeat("+$APP.S.g(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.Cc(Gs,e)?e:"none";return new $APP.P(null,8,[$APP.Tg,c,Hs,d,Is,e,$APP.lh,$APP.J(a),Cs,$APP.J(f),Ds,$APP.J(h),Es,$APP.J(k),
5
+ Js,ws(b)],null)},Ls=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.Qc(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},Ms=function(a){var b=Ks(a);if($APP.N($APP.l(a,"__xTableModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.Tg),d=$APP.I(b,Hs),e=$APP.I(b,Is),f=$APP.I(b,$APP.lh),h=$APP.I(b,Cs),k=$APP.I(b,Ds),m=$APP.I(b,Es),q=$APP.I(b,Js),r=ys(a);r=$APP.M(r);r=$APP.I(r,xs);a.style.gridTemplateColumns=$APP.n(c)?
6
+ c:"";a.setAttribute("role",$APP.D.h(e,"none")?"table":"grid");c=$APP.D.h(e,"multi")?"true":null;$APP.n(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");q!=null?a.setAttribute("aria-rowcount",""+$APP.S.g(q)):a.removeAttribute("aria-rowcount");$APP.N(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.N(d,"")?(r.textContent=d,r.removeAttribute("hidden")):(r.textContent="",r.setAttribute("hidden",""));$APP.n(f)?a.setAttribute("data-striped",
7
+ ""):a.removeAttribute("data-striped");$APP.n(h)?a.setAttribute("data-bordered",""):a.removeAttribute("data-bordered");$APP.n(k)?a.setAttribute("data-full-width",""):a.removeAttribute("data-full-width");$APP.n(m)?a.setAttribute("data-compact",""):a.removeAttribute("data-compact");$APP.n(f)&&Ls(a);a.__xTableModel=b}},Ps=function(a){function b(){var e=$APP.l(a,"__xTableModel");e=$APP.n(e)?e:Ks(a);$APP.n($APP.lh.g(e))&&Ls(a);return null}function c(e){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:Ks(a);
8
+ var h=Is.g(f);if($APP.N(h,"none")){f=e.target;e=$APP.l(e.detail,"rowIndex");var k=f.hasAttribute("selected");k=($APP.D.h(h,"single"),$APP.p(k));e=$APP.xg(new $APP.P(null,3,[$APP.ti,$APP.n(e)?e:0,$APP.bj,k,Ns,h],null));a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0}));if($APP.D.h(h,"single")){h=a.querySelectorAll("x-table-row[selected]");e=h.length;for(k=0;;)if(k<e)h[k].removeAttribute("selected"),k+=1;else break;f.setAttribute("selected","")}else $APP.D.h(h,
9
+ "multi")&&($APP.n(f.hasAttribute("selected"))?f.removeAttribute("selected"):f.setAttribute("selected",""))}return null}function d(e){var f=e.target;f=Array.from(f.parentElement.querySelectorAll("x-table-cell")).indexOf(f);var h=$APP.l(e.detail,"direction"),k=$APP.l(e.detail,"previousDirection");f>=0&&(e.stopPropagation(),e=$APP.xg(new $APP.P(null,3,[Os,f,$APP.ci,h,$APP.Ji,k],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));return null}a.addEventListener("x-table-cell-sort",
10
+ d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.ma(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},Qs=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}a.__xTableHandlers=null},Rs=function(a){Object.defineProperty(a,
11
+ "columns",{get:function(){var b=this.getAttribute("columns");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("columns",""+$APP.S.g(b)):this.removeAttribute("columns")},enumerable:!0,configurable:!0});Object.defineProperty(a,"caption",{get:function(){var b=this.getAttribute("caption");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("caption",""+$APP.S.g(b)):this.removeAttribute("caption")},enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",
12
+ {get:function(){var b=this.getAttribute("selectable");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("selectable",""+$APP.S.g(b)):this.removeAttribute("selectable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0});Object.defineProperty(a,"bordered",{get:function(){return this.hasAttribute("bordered")},
13
+ set:function(b){return $APP.n(b)?this.setAttribute("bordered",""):this.removeAttribute("bordered")},enumerable:!0,configurable:!0});Object.defineProperty(a,"compact",{get:function(){return this.hasAttribute("compact")},set:function(b){return $APP.n(b)?this.setAttribute("compact",""):this.removeAttribute("compact")},enumerable:!0,configurable:!0});Object.defineProperty(a,"fullWidth",{get:function(){return this.hasAttribute("full-width")},set:function(b){return $APP.n(b)?this.setAttribute("full-width",
14
+ ""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return ws(this.getAttribute("row-count"))},set:function(b){return b==null?this.removeAttribute("row-count"):this.setAttribute("row-count",""+$APP.S.g(Math.floor(b)))},enumerable:!0,configurable:!0})},Ts=function(){var a=class extends HTMLElement{};a.observedAttributes=Ss;a.prototype.connectedCallback=function(){ys(this);Qs(this);Ps(this);Ms(this);return null};a.prototype.disconnectedCallback=
15
+ function(){Qs(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Ms(this);return null};Rs(a.prototype);return a},Us=function(){$APP.n(customElements.get("x-table"))||customElements.define("x-table",Ts());return null},Is=new $APP.K(null,"selectable","selectable",370587038),Ds=new $APP.K(null,"full-width?","full-width?",1477288349),Fs=new $APP.K(null,"row-count-raw","row-count-raw",-1432781274),Bs=new $APP.K(null,"selectable-raw","selectable-raw",-1276314763),Os=new $APP.K(null,
16
+ "colIndex","colIndex",171239635),Hs=new $APP.K(null,"caption","caption",-855383902),Cs=new $APP.K(null,"bordered?","bordered?",562358476),Js=new $APP.K(null,"row-count","row-count",1060167988),xs=new $APP.K(null,"caption-div","caption-div",1485363333),As=new $APP.K(null,"caption-raw","caption-raw",-375935083),Ns=new $APP.K(null,"selectionMode","selectionMode",1264773367),zs=new $APP.K(null,"columns-raw","columns-raw",-2093994046),Es=new $APP.K(null,"compact?","compact?",1216893298);var Ss="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.wd(["x-table-sort",new $APP.P(null,2,[$APP.Y,new $APP.P(null,3,[Os,$APP.Gh,$APP.ci,$APP.X,$APP.Ji,$APP.X],null),$APP.wi,!0],null),"x-table-row-select",new $APP.P(null,2,[$APP.Y,new $APP.P(null,3,[$APP.ti,$APP.Gh,$APP.bj,$APP.Li,Ns,$APP.X],null),$APP.wi,!0],null)]);var Gs=new $APP.R(null,new $APP.P(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ka("app.exports.x_table.init",Us);export const init=Us;
package/dist/x-tabs.js ADDED
@@ -0,0 +1,12 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var wt=function(a){if($APP.tc(a))return $APP.pc(a,null);a=$APP.v(a);if(a==null)return $APP.rf;if(a instanceof $APP.Ib&&a.u===0)return $APP.sf(a.i);for(var b=$APP.hb($APP.rf);;)if(a!=null){var c=$APP.y(a);b=$APP.ib(b,$APP.Da(a));a=c}else return $APP.jb(b)},Bt=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.T);var c=$APP.I(b,$APP.Ah),d=$APP.I(b,xt),e=$APP.I(b,$APP.W);b=$APP.I(b,yt);c=$APP.Cc(zt,c)?c:"horizontal";d=$APP.Cc(At,d)?d:"auto";return new $APP.P(null,5,[$APP.T,a,$APP.Ah,c,xt,d,$APP.W,e,yt,$APP.J(b)],
3
+ null)},Ct=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},Dt=function(a){return new $APP.P(null,5,[$APP.T,a.getAttribute("value"),$APP.Ah,a.getAttribute("orientation"),xt,a.getAttribute("activation"),$APP.W,a.getAttribute("label"),yt,a.hasAttribute("loop")],null)},Et=function(a){return $APP.be($APP.Kd(function(b){return $APP.D.h("X-TAB",b.tagName)},$APP.gc(a.children)))},Ft=function(a){return $APP.p(a.hasAttribute("disabled"))},Gt=function(a){return a.getAttribute("value")},Ht=function(a){return $APP.Ad(function(b){return Ft(b)?
4
+ b:null},a)},It=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.N(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.D.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},Jt=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?a.setAttribute("selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&a.removeAttribute("selected"))},Kt=function(a,b){var c=a.getAttribute("tabindex");$APP.N(c,b)&&a.setAttribute("tabindex",b)},Lt=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?
5
+ $APP.N(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Mt=function(a){var b=Et(a),c=a.getAttribute("value"),d=wt($APP.Cd(Gt,b));$APP.n($APP.n(c)?$APP.Cc(d,c):c)||(c=Ht(b),c=$APP.n(c)?Gt(c):null);if($APP.n(c)){a:{d=$APP.v(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.F(null,h),m=$APP.D.h(Gt(k),c);Jt(k,m);m&&Ft(k)?Kt(k,"0"):Kt(k,"-1");h+=1}else if(d=$APP.v(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),k=e,f=$APP.B(e),e=k):(k=$APP.x(d),
6
+ e=$APP.D.h(Gt(k),c),Jt(k,e),e&&Ft(k)?Kt(k,"0"):Kt(k,"-1"),d=$APP.y(d),e=null,f=0),h=0;else break a}a:for(b=$APP.v(b),d=null,f=e=0;;)if(f<e)k=d.F(null,f),Lt(k,$APP.D.h(Gt(k),c)),f+=1;else if(b=$APP.v(b))d=b,$APP.yc(d)?(b=$APP.ob(d),e=$APP.pb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.x(d),Lt(k,$APP.D.h(Gt(k),c)),b=$APP.y(d),d=null,e=0),f=0;else break a;It(a,c)}return c},Nt=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.N(c,b):b)?(It(a,b),Mt(a),a.dispatchEvent(new CustomEvent("value-change",
7
+ {detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},Ot=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},Pt=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:$APP.n(c)?b:a},Qt=function(a){var b=$APP.l(a,"__x_tabs_base"),c=Bt(Dt(a));$APP.n(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.Ah.g(c)),c=$APP.W.g(c),$APP.n($APP.n(c)?$APP.N(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return Mt(a)},Rt=function(a){var b=
8
+ new MutationObserver(function(){return Qt(a)});b.observe(a,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},St=function(a){function b(d){a:{var e=$APP.be($APP.Kd(Ft,Et(a))),f=Bt(Dt(a)),h=$APP.Ah.g(f);var k=xt.g(f);f=yt.g(f);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.D.h(h,"horizontal")&&$APP.D.h(m,"ArrowRight")?Ot(q,e,f):$APP.D.h(h,"horizontal")&&$APP.D.h(m,"ArrowLeft")?Pt(q,e,f):$APP.D.h(h,"vertical")&&
9
+ $APP.D.h(m,"ArrowDown")?Ot(q,e,f):$APP.D.h(h,"vertical")&&$APP.D.h(m,"ArrowUp")?Pt(q,e,f):$APP.D.h(m,"Home")?0:$APP.D.h(m,"End")?$APP.B(e)-1:null,h!=null)){d.preventDefault();d=$APP.H(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.D.h(k,"auto")?Nt(a,Gt(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return Nt(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;Rt(a)},Tt=function(a){Object.defineProperty(a.prototype,
10
+ "value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},Vt=function(){var a=class extends HTMLElement{};a.observedAttributes=Ut;a.prototype.connectedCallback=function(){if(Ct(this)){St(this);var b=Qt(this)}else{if(!Ct(this)){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
11
+ ":host{display:block;color-scheme:light dark;}.base{display:block;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}";d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_tabs_root=b;this.__x_tabs_base=d;this.__x_tabs_slot=e;St(this);this.__x_tabs_initialized=!0}Qt(this);b=this}return b};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__x_tabs_on_tab_select");$APP.n(b)&&this.removeEventListener("tab-select",b);b=$APP.l(this,
12
+ "__x_tabs_on_keydown");$APP.n(b)&&this.removeEventListener("keydown",b);b=$APP.l(this,"__x_tabs_observer");return $APP.n(b)?b.disconnect():null};a.prototype.attributeChangedCallback=function(){return Ct(this)?Qt(this):null};Tt(a);return a},Wt=function(){return $APP.n(customElements.get("x-tabs"))?null:customElements.define("x-tabs",Vt())},xt=new $APP.K(null,"activation","activation",2128521072),yt=new $APP.K(null,"loop","loop",-395552849);var Ut=["value","orientation","activation","label","loop"],zt=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),At=new $APP.R(null,new $APP.P(null,2,["auto",null,"manual",null],null),null);$APP.wd(["value-change",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.T,$APP.X],null)],null)]);$APP.ka("app.exports.x_tabs.init",Wt);export const init=Wt;
@@ -0,0 +1,20 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var BF=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},CF=function(a,b,c){return a.setAttribute(b,c)},DF=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},EF=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var f=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.D.h(f,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
+ c):b.setValidity({},"",c)},NF=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(b,"textarea"),d=$APP.l(b,"label"),e=$APP.l(b,"hint");b=$APP.l(b,"error");var f=$APP.bf([FF,$APP.dh,$APP.Kh,$APP.th,$APP.Fh,GF,$APP.$h,HF,$APP.Cg,$APP.vi,$APP.Gi,$APP.ch,IF,$APP.wh],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
+ a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(f),k=$APP.I(h,IF),m=$APP.I(h,$APP.wh),q=$APP.I(h,FF),r=$APP.I(h,$APP.dh),u=$APP.I(h,$APP.Kh),w=$APP.I(h,$APP.th),z=$APP.I(h,$APP.Fh),A=$APP.I(h,GF);f=$APP.I(h,$APP.$h);var C=$APP.I(h,HF),F=$APP.I(h,$APP.Cg),E=$APP.I(h,$APP.vi),Q=$APP.I(h,$APP.Gi);h=$APP.I(h,$APP.ch);var V=$APP.n(w)?w:"",ea=$APP.n(z)?z:"",wa=$APP.n(r)?r:"";F=$APP.J(F);E=$APP.J(E);
5
+ m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.N(z,"")&&z!=null;u=$APP.n(u)?u:"";Q=$APP.n(Q)?Q:"";k=BF(k);r=typeof r==="string"&&$APP.N(r,"")&&r!=null;w=typeof w==="string"&&$APP.N(w,"")&&w!=null;q=typeof q==="string"&&$APP.Cc(JF,q)?q:"vertical";A=BF(A);f=$APP.bf([$APP.bh,$APP.cj,$APP.Di,$APP.gh,$APP.ii,$APP.T,KF,$APP.Nh,$APP.kh,LF,$APP.mi,MF,$APP.Xh,$APP.W,$APP.qh,$APP.oi,$APP.U],[F,E,m,z,u,Q,k,r,w,q,ea,BF(C),$APP.n(A)?A:3,wa,V,$APP.n(h)?h:"",$APP.J(f)]);C=$APP.kh.g(f);A=$APP.gh.g(f);h=$APP.Nh.g(f);
6
+ c.name=$APP.ii.g(f);c.placeholder=$APP.Di.g(f);c.disabled=$APP.U.g(f);c.readOnly=$APP.cj.g(f);c.required=$APP.bh.g(f);c.rows=$APP.Xh.g(f);c.autocomplete=$APP.oi.g(f);V=MF.g(f);$APP.n(V)?CF(c,"maxlength",""+$APP.S.g(V)):c.removeAttribute("maxlength");V=KF.g(f);$APP.n(V)?CF(c,"minlength",""+$APP.S.g(V)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",LF.g(f));CF(c,"aria-required",$APP.n($APP.bh.g(f))?"true":"false");c.setAttribute("aria-invalid",$APP.n(C)?"true":"false");V=
7
+ $APP.n($APP.n(A)?C:A)?"hint error":$APP.n(A)?"hint":$APP.n(C)?"error":null;$APP.n(V)?c.setAttribute("aria-describedby",V):c.removeAttribute("aria-describedby");d.textContent=$APP.W.g(f);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.mi.g(f);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.qh.g(f);$APP.n(C)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");DF(a,"data-invalid",C);d=$APP.l(a,
8
+ "__xTextAreaInternals");return $APP.n(d)?EF(a,d,c):null}return null},OF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},PF=function(a){return function(){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),EF(a,e,b));return OF(a,"x-text-area-input",{name:d,value:c})}return null}},QF=function(a){return function(){var b=
9
+ $APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),EF(a,e,b));return OF(a,"x-text-area-change",{name:d,value:c})}return null}},RF=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.l(b,"textarea");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));
10
+ a.__xTextAreaHandlers=null;return}}return null},SF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.N(d)?CF(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},TF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return DF(this,c,$APP.J(d))}})},UF=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
+ enumerable:!0,get:function(){var e=BF(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.N(e)&&e>0?CF(this,c,""+$APP.S.g(Math.floor(e))):this.removeAttribute(c)}})},VF=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.S.g(b):"";this.setAttribute("value",
12
+ b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},XF=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return WF}});VF(b);SF(b,"name","name");SF(b,"placeholder","placeholder");SF(b,"autocomplete","autocomplete");TF(b,"disabled","disabled");TF(b,"readOnly","readonly");TF(b,"required","required");UF(b,"rows","rows",3);UF(b,"maxLength","maxlength",null);UF(b,"minLength",
13
+ "minlength",null);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),f=document.createElement("label"),h=document.createElement("div"),k=document.createElement("textarea"),m=document.createElement("span"),q=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:0.875rem;--x-text-area-bg:#ffffff;--x-text-area-color:#111827;--x-text-area-border:1px solid #d1d5db;--x-text-area-border-radius:6px;--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:#2563eb;--x-text-area-error-color:#dc2626;--x-text-area-hint-color:#6b7280;--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:1rem;--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:#d1d5db;--x-text-area-bg:#1f2937;--x-text-area-color:#f9fafb;--x-text-area-border:1px solid #4b5563;--x-text-area-focus-ring-color:#3b82f6;--x-text-area-error-color:#f87171;--x-text-area-hint-color:#9ca3af;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
14
+ e.setAttribute("part","field");f.setAttribute("part","label");f.setAttribute("id","label");f.setAttribute("for","textarea");h.setAttribute("part","textarea-wrapper");k.setAttribute("part","textarea");k.setAttribute("id","textarea");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");q.setAttribute("part","error");q.setAttribute("id","error");q.setAttribute("role","alert");q.setAttribute("aria-live","assertive");h.appendChild(k);
15
+ e.appendChild(f);e.appendChild(h);e.appendChild(m);e.appendChild(q);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:f,textarea:k,hint:m,error:q};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}RF(this);c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=
16
+ $APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=PF(this),e=QF(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return NF(this)};b.disconnectedCallback=function(){return RF(this)};b.attributeChangedCallback=function(c,d,e){$APP.D.h(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.l(c,"textarea"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return NF(this)};b.formDisabledCallback=function(c){DF(this,
17
+ "disabled",$APP.J(c));return NF(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&($APP.l(c,"textarea").value="");c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&c.setFormValue("");return NF(this)};return a},YF=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",XF())},KF=new $APP.K(null,"minlength","minlength",259053545),IF=new $APP.K(null,"minlength-raw","minlength-raw",-1245403779),
18
+ HF=new $APP.K(null,"maxlength-raw","maxlength-raw",-886656470),FF=new $APP.K(null,"resize-raw","resize-raw",-287517888),MF=new $APP.K(null,"maxlength","maxlength",-1163911985),GF=new $APP.K(null,"rows-raw","rows-raw",-1828357145),LF=new $APP.K(null,"resize","resize",297367086);var WF="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),JF=new $APP.R(null,new $APP.P(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
+ $APP.bf([$APP.yi,$APP.ii,$APP.T,new $APP.K(null,"minLength","minLength",-1538722770),$APP.Xh,$APP.Bi,new $APP.K(null,"maxLength","maxLength",-1633020073),$APP.oi,$APP.Ng],[new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.Gh,$APP.Qg,"minlength"],null),new $APP.P(null,2,[$APP.Z,$APP.Gh,$APP.Qg,"rows"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,
20
+ "readonly"],null),new $APP.P(null,2,[$APP.Z,$APP.Gh,$APP.Qg,"maxlength"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"autocomplete"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"required"],null)]);$APP.ka("app.exports.x_text_area.init",YF);export const init=YF;
@@ -0,0 +1,25 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Cj=function(a){a=$APP.I(Bj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Zg},Ej=function(a){a=$APP.I(Dj,a);return $APP.n(a)?a:"pending"},Hj=function(a){a=$APP.I(Fj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Gj},Ij=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},Jj=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Lj=function(a,
3
+ b){a=$APP.I(Kj,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.I(Kj,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.zi);return b},Mj=function(a,b,c){a=Ej(a);c=c!=null?"Step "+$APP.S.g(c+1)+": ":null;return""+$APP.S.g(c)+$APP.S.g(typeof b==="string"&&$APP.N(b,"")?""+$APP.S.g(b)+" ":null)+"("+$APP.S.g(a)+")"},ak=function(a){var b=$APP.M(a),c=$APP.I(b,Nj);a=$APP.I(b,$APP.U);var d=$APP.I(b,$APP.Ii),e=$APP.I(b,$APP.dh),f=$APP.I(b,Oj),h=$APP.I(b,Pj),k=$APP.I(b,Qj),m=$APP.I(b,
4
+ $APP.Bh),q=$APP.I(b,Rj),r=$APP.I(b,$APP.Kg),u=$APP.I(b,Sj);b=$APP.I(b,$APP.ni);var w=Cj(m),z=Ij(b),A=$APP.n($APP.n(r)?z==null:r)?$APP.Zi:z!=null?$APP.Oh:$APP.ah;m=function(){var C=A instanceof $APP.K?A.oa:null;switch(C){case "default":return C=$APP.I(Tj,w),$APP.n(C)?C:$APP.I(Tj,$APP.Zg);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.S.g(C));}}();c=Jj(c);d=Lj(k,d);e=$APP.n(e)?e:"";u=$APP.n(u)?u:"";return $APP.bf([Uj,Vj,Wj,Oj,Rj,$APP.$g,Xj,$APP.Gg,$APP.W,
5
+ Yj,$APP.ej,$APP.U,Zj],[Hj(h),c,m,$APP.J(f),$APP.J(q),$APP.D.h(A,$APP.Oh)?z:null,u,w,e,Mj(w,e,c),A,$APP.J(a),d])},bk=function(a){a=$APP.M(a);a=$APP.I(a,$APP.U);return $APP.p(a)},nk=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"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
+ q=document.createElement("slot"),r=document.createElement("span"),u=document.createElement("div"),w=document.createElement("div"),z=document.createElement("div"),A=document.createElement("div"),C=document.createElement("slot"),F=document.createElement("div"),E=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
+ d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");f.setAttribute("name","label");h.setAttribute("class","label-text");f.appendChild(h);e.appendChild(f);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);u.setAttribute("class","connector");k.appendChild(m);k.appendChild(u);w.setAttribute("class","content-col");z.setAttribute("class",
8
+ "title");A.setAttribute("class","body");A.appendChild(C);F.setAttribute("class","actions");E.setAttribute("name","actions");F.appendChild(E);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.bf([Uj,ck,dk,$APP.Ui,ek,fk,$APP.Mi,gk,$APP.sh,hk,ik,jk,kk,lk,$APP.di,mk],[u,h,m,r,e,k,A,C,b,E,z,w,d,F,q,f]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},ok=function(a){return ak($APP.bf([$APP.Ii,$APP.dh,
9
+ Oj,Pj,Qj,$APP.Bh,Rj,$APP.Kg,Sj,$APP.ni,Nj,$APP.U],[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")]))},rk=function(a){var b=ok(a);if($APP.N($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.W),d=$APP.I(b,
10
+ Xj),e=$APP.I(b,$APP.Gg),f=$APP.I(b,Zj),h=$APP.I(b,$APP.U),k=$APP.I(b,Wj),m=$APP.I(b,Yj),q=nk(a),r=$APP.M(q);q=$APP.I(r,ck);var u=$APP.I(r,dk),w=$APP.I(r,ik);r=$APP.I(r,$APP.Ui);a.setAttribute("data-status",Ej(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.vf(f));a.__xTimelineItemSelfPos=null;$APP.D.h(Uj.g(b),pk)?a.setAttribute("data-connector","dashed"):$APP.D.h(Uj.g(b),qk)?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.N(d,"")?d:$APP.N(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");u.setAttribute("aria-label",m);q.textContent=c;r.textContent=k!=null?k:"";$APP.N(d,"")?(w.removeAttribute("hidden"),w.textContent=d):(w.setAttribute("hidden",""),w.textContent="");a.__xTimelineItemModel=b}},sk=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=
12
+ !0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.D.h(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},tk=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.n(b)?b:ok(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Gg);e=$APP.I(e,$APP.W);c=new $APP.P(null,2,[$APP.Gg,Ej(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
+ uk=function(a){function b(d){var e=d.key;if($APP.D.h(e,"Enter")||$APP.D.h(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:ok(a),bk(e)&&(d.preventDefault(),tk(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:ok(a);bk(d)&&tk(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTimelineItemHandlers",{click:c,keydown:b})},vk=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},wk=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.N(b,""):b)?this.setAttribute("label",""+$APP.S.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
+ b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("title",""+$APP.S.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.S.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
+ set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.S.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.S.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.S.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})},yk=function(){var a=class extends HTMLElement{};a.observedAttributes=xk;a.prototype.connectedCallback=function(){nk(this);vk(this);
18
+ uk(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);rk(this);sk(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:ok(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Gg);var f=$APP.I(e,$APP.W),h=$APP.I(e,Zj);e=$APP.I(e,$APP.U);c=new $APP.P(null,4,[$APP.Gg,Ej(c),$APP.W,f,$APP.aj,$APP.vf(h),$APP.yi,$APP.J(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:ok(this);vk(this);b=document;var d=b.dispatchEvent,e=CustomEvent,f=$APP.M(c);c=$APP.I(f,$APP.Gg);f=$APP.I(f,$APP.W);c=new $APP.P(null,2,[$APP.Gg,Ej(c),$APP.W,f],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.N(c,d))c=$APP.D.h(b,"data-position"),c=!$APP.n(c?
20
+ $APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.D.h(b,"data-position")&&(this.__xTimelineItemParentPos=d),rk(this));return null};wk(a.prototype);return a},zk=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",yk());return null},Sj=new $APP.K(null,"title-raw","title-raw",976469452),fk=new $APP.K(null,"track-col","track-col",629248272),hk=new $APP.K(null,"actions-slot","actions-slot",1424248629),Wj=new $APP.K(null,"marker-icon","marker-icon",424963779),
21
+ dk=new $APP.K(null,"marker","marker",865118313),Uj=new $APP.K(null,"connector","connector",-1517293248),Gj=new $APP.K(null,"solid","solid",-2023773691),ik=new $APP.K(null,"title-el","title-el",-401767816),Xj=new $APP.K(null,"title","title",636505583),Pj=new $APP.K(null,"connector-raw","connector-raw",106333796),gk=new $APP.K(null,"default-slot","default-slot",-1145647151),Zj=new $APP.K(null,"effective-position","effective-position",840072317),ek=new $APP.K(null,"label-col","label-col",1883390160),
22
+ Rj=new $APP.K(null,"data-last?","data-last?",-1110326839),ck=new $APP.K(null,"label-text","label-text",-1566972381),Oj=new $APP.K(null,"data-striped?","data-striped?",906911587),Qj=new $APP.K(null,"data-position-raw","data-position-raw",256144356),lk=new $APP.K(null,"actions-el","actions-el",1486248509),jk=new $APP.K(null,"content-col","content-col",767367449),pk=new $APP.K(null,"dashed","dashed",-1449249319),Nj=new $APP.K(null,"data-index-raw","data-index-raw",491574874),kk=new $APP.K(null,"item-div",
23
+ "item-div",1630512700),Ak=new $APP.K(null,"active","active",1895962068),Vj=new $APP.K(null,"data-index","data-index",1161508385),mk=new $APP.K(null,"label-slot","label-slot",-1755862561),qk=new $APP.K(null,"none","none",1333468478),Yj=new $APP.K(null,"marker-aria","marker-aria",-353426855);var xk="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.P(null,2,[$APP.Y,new $APP.P(null,4,[$APP.Gg,$APP.X,$APP.W,$APP.X,$APP.aj,$APP.X,$APP.yi,$APP.Li],null),$APP.wi,!1],null),"x-timeline-item-disconnected",new $APP.P(null,2,[$APP.Y,new $APP.P(null,2,[$APP.Gg,$APP.X,$APP.W,$APP.X],null),$APP.wi,!1],null),"x-timeline-item-click",new $APP.P(null,2,[$APP.Y,new $APP.P(null,2,[$APP.Gg,$APP.X,$APP.W,$APP.X],null),$APP.wi,!0],null)]);
25
+ var Bj=new $APP.P(null,5,["pending",$APP.Zg,"active",Ak,"complete",$APP.Qi,"error",$APP.qh,"warning",$APP.ui],null),Dj=new $APP.P(null,5,[$APP.Zg,"pending",Ak,"active",$APP.Qi,"complete",$APP.qh,"error",$APP.ui,"warning"],null),Tj=new $APP.P(null,5,[$APP.Zg,"○",Ak,"●",$APP.Qi,"✓",$APP.qh,"✕",$APP.ui,"!"],null),Fj=new $APP.P(null,3,["solid",Gj,"dashed",pk,"none",qk],null),Kj=new $APP.P(null,2,["start",$APP.zi,"end",$APP.uh],null);$APP.ka("app.exports.x_timeline_item.init",zk);export const init=zk;
@@ -0,0 +1,10 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var $D=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(ZD,a)?a:"start"},aE=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"}},cE=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.P(null,3,[$APP.sh,b,bE,d,$APP.Qh,e],null);return $APP.l(a,"__xTimelineRefs")},dE=function(a){a=new $APP.P(null,3,[$APP.dh,a.getAttribute("label"),$APP.Ii,a.getAttribute("position"),$APP.lh,a.hasAttribute("striped")],null);var b=$APP.M(a);a=$APP.I(b,$APP.dh);var c=$APP.I(b,$APP.Ii);b=$APP.I(b,$APP.lh);return new $APP.P(null,3,[$APP.W,$APP.n(a)?a:"",$APP.aj,$D(c),
4
+ $APP.lh,$APP.J(b)],null)},eE=function(a){var b=dE(a);if($APP.N($APP.l(a,"__xTimelineModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.W),d=cE(a);d=$APP.M(d);d=$APP.I(d,bE);a.setAttribute("role","list");$APP.N(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.N(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},fE=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:dE(a);var c=$APP.M(b);b=$APP.I(c,$APP.aj);
5
+ c=$APP.I(c,$APP.lh);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.D.h(e,d-1);f.setAttribute("data-index",""+$APP.S.g(e));h?f.setAttribute("data-last",""):f.removeAttribute("data-last");f.setAttribute("data-position",aE(b,e));$APP.n(c)?f.setAttribute("data-striped",""):f.removeAttribute("data-striped");e+=1}else break},gE=function(a){function b(){$APP.n(a.isConnected)&&fE(a);return null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");
6
+ e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.xg(new $APP.P(null,3,[$APP.Vg,$APP.n(f)?f: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(){fE(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})},hE=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},iE=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.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return $D(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.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})},kE=function(){var a=class extends HTMLElement{};a.observedAttributes=jE;a.prototype.connectedCallback=function(){cE(this);eE(this);hE(this);gE(this);fE(this);return null};a.prototype.disconnectedCallback=function(){hE(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(eE(this),
10
+ fE(this));return null};iE(a.prototype);return a},lE=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",kE());return null},bE=new $APP.K(null,"label-div","label-div",1505730697);var jE=["label","position","striped"];$APP.wd(["x-timeline-select",new $APP.P(null,2,[$APP.Y,new $APP.P(null,3,[$APP.Vg,$APP.Gh,$APP.Gg,$APP.X,$APP.W,$APP.X],null),$APP.wi,!1],null)]);var ZD=new $APP.R(null,new $APP.P(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ka("app.exports.x_timeline.init",lE);export const init=lE;
@@ -0,0 +1,26 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var Zl=function(a){a=$APP.I(Yl,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.yh},am=function(a){a=$APP.I($l,a);return $APP.n(a)?a:"info"},bm=function(a){return a==null?!0:$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},cm=function(a){return a==null?!1:$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},dm=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},em=function(a){return typeof a==="string"?(a=
3
+ a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},hm=function(a){var b=$APP.M(a),c=$APP.I(b,$APP.Lg),d=$APP.I(b,$APP.Lh);a=$APP.I(b,$APP.Zh);var e=$APP.I(b,$APP.$h),f=$APP.I(b,$APP.hh),h=$APP.I(b,$APP.Kg),k=$APP.I(b,fm),m=$APP.I(b,$APP.jh);b=$APP.I(b,$APP.ni);m=Zl(m);b=em(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.Zi:b!=null?$APP.Oh:$APP.ah;return $APP.bf([gm,$APP.vh,$APP.Z,$APP.$g,$APP.ej,$APP.U,$APP.Fi,$APP.Lg,$APP.Lh],[cm(k),bm(a),m,$APP.D.h(h,$APP.Oh)?b:null,h,$APP.J(e),dm(f),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:""}()])},im=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.vh);b=$APP.I(b,$APP.U);return $APP.n(a)?$APP.p(b):a},jm=function(a,b){var c=$APP.M(a);a=$APP.I(c,$APP.Z);var d=$APP.I(c,$APP.Lh);c=$APP.I(c,$APP.Lg);return new $APP.P(null,4,[$APP.Z,am(a),$APP.xh,b,$APP.Lh,d,$APP.Lg,c],null)},km=function(a){var b=$APP.M(a);a=$APP.I(b,gm);b=$APP.I(b,$APP.Fi);return $APP.J($APP.n(a)?
5
+ b!=null&&b>0:a)},qm=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"),f=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),u=document.createElement("button"),w=document.createElement("span"),z=document.createElement("div"),
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
+ d.setAttribute("part","container");e.setAttribute("part","inner");f.setAttribute("part","icon");f.setAttribute("aria-hidden","true");h.setAttribute("name","icon");k.setAttribute("part","default-icon");h.appendChild(k);f.appendChild(h);m.setAttribute("part","body");q.setAttribute("part","heading");r.setAttribute("part","message");m.appendChild(q);m.appendChild(r);u.setAttribute("part","dismiss");u.setAttribute("type","button");u.setAttribute("aria-label","Dismiss toast");w.setAttribute("aria-hidden",
8
+ "true");w.textContent="×";u.appendChild(w);e.appendChild(f);e.appendChild(m);e.appendChild(u);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.bf([lm,$APP.Ui,mm,$APP.eh,$APP.Mi,nm,$APP.sh,$APP.ri,om,$APP.Fg,$APP.di,pm],[A,k,r,u,m,e,b,d,z,f,h,q]);a.__xToastRefs=b;return $APP.l(a,"__xToastRefs")},rm=function(a){return hm($APP.bf([$APP.Zh,$APP.$h,$APP.hh,$APP.Kg,fm,$APP.ni,$APP.jh,$APP.Lg,
9
+ $APP.Lh],[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")]))},tm=function(a){var b=rm(a);if($APP.N($APP.l(a,"__xToastModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.Z),d=$APP.I(b,$APP.Lh),e=$APP.I(b,$APP.Lg),f=$APP.I(b,$APP.ej),h=$APP.I(b,$APP.$g),k=$APP.I(b,$APP.vh),m=$APP.I(b,$APP.U),q=$APP.I(b,$APP.Fi),r=qm(a),
10
+ u=$APP.M(r),w=$APP.I(u,$APP.di);r=$APP.I(u,pm);var z=$APP.I(u,lm),A=$APP.I(u,$APP.Ui),C=$APP.I(u,mm),F=$APP.I(u,$APP.eh),E=$APP.I(u,$APP.ri),Q=$APP.I(u,om);u=$APP.I(u,$APP.Fg);w=$APP.n(w)?w.assignedNodes().length>0:null;$APP.D.h(f,$APP.Oh)||(h=$APP.I(sm,c),h=$APP.n(h)?h:$APP.I(sm,$APP.yh));f=$APP.p(w)&&$APP.D.h(f,$APP.Zi);w=km(b);a.setAttribute("data-type",am(c));var V=E.setAttribute;c=$APP.D.h(c,$APP.ui)||$APP.D.h(c,$APP.qh)?"alert":"status";V.call(E,"role",c);r.textContent=d;r.style.display=$APP.D.h(d,
11
+ "")?"none":"";C.textContent=e;f?(A.textContent="",u.style.display="none"):(A.textContent=h,u.style.display="inline");$APP.n(k)?(F.disabled=$APP.J(m),F.style.display="inline-flex"):(F.disabled=!0,F.style.display="none");w?(Q.style.display="block",z.style.setProperty("--x-toast-timeout",""+$APP.S.g(q)+"ms")):Q.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}},um=function(a){a=typeof a==="string"?a.trim():"";return $APP.D.h(a,"")||$APP.D.h(a,"0")||$APP.D.h(a,"0ms")||$APP.D.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},vm=function(a){var b=window.getComputedStyle(a);a=um(b.getPropertyValue("--x-toast-exit-duration"));
13
+ b=um(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},wm=function(a){var b=$APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},ym=function(a){wm(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:rm(a)}();$APP.n(function(){var c=im(b);return $APP.n(c)?typeof $APP.Fi.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:rm(a)}();if($APP.n(im(c)))return c=$APP.xg(jm(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?xm.g?xm.g(a):xm.call(null,a):null}return null},$APP.Fi.g(b)))},zm=function(a){if(!$APP.n($APP.l(a,"__xToastEntered"))){a.__xToastEntered=!0;a.setAttribute("data-entering","");var b=qm(a);b=$APP.M(b);
15
+ var c=$APP.I(b,$APP.ri);c.addEventListener("animationend",function f(e){return $APP.D.h(e.target,c)?(c.removeEventListener("animationend",f),a.removeAttribute("data-entering"),e=$APP.l(a,"__xToastModel"),$APP.n($APP.n(e)?km(e):e)?a.setAttribute("data-progress-active",""):null):null})}},xm=function(a){if(!$APP.n($APP.l(a,"__xToastExiting"))){a.__xToastExiting=!0;wm(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=vm(a);if(b===0||$APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches))a.remove();
16
+ else{var c=qm(a);c=$APP.M(c);var d=$APP.I(c,$APP.ri),e=function k(h){return $APP.D.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},Am=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:rm(a);b=$APP.xg(jm(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&xm(a)},Bm=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:rm(a)}();$APP.n(function(){var d=im(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),Am(a,"button"));return null},
18
+ Cm=function(a,b){if($APP.D.h(b.key,"Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:rm(a)}();$APP.n(function(){var d=im(c);return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),Am(a,"keyboard"))}return null},Dm=function(a){function b(e){return Cm(a,e)}function c(e){return Bm(a,e)}var d=qm(a);d=$APP.M(d);$APP.I(d,$APP.eh).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xToastHandlers",{click:c,keydown:b})},Em=function(a){wm(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.eh.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},Fm=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.S.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.S.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.S.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.S.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"dismissible",{get:function(){return bm(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 dm(this.getAttribute("timeout-ms"))},set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,
23
+ "showProgress",{get:function(){return cm(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Gm=function(a){a.dismiss=function(b){var c=$APP.p($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&Am(this,typeof b==="string"?b:"api");return null}},Im=function(){var a=class extends HTMLElement{};a.observedAttributes=Hm;a.prototype.connectedCallback=function(){qm(this);
24
+ Em(this);Dm(this);tm(this);zm(this);ym(this);return null};a.prototype.disconnectedCallback=function(){Em(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(tm(this),$APP.n(this.isConnected)&&ym(this));return null};Fm(a.prototype);Gm(a.prototype);return a},Jm=function(){$APP.n(customElements.get("x-toast"))||customElements.define("x-toast",Im());return null},pm=new $APP.K(null,"heading-el","heading-el",-1277272161),nm=new $APP.K(null,"inner","inner",-1383171215),
25
+ om=new $APP.K(null,"progress-el","progress-el",-184081515),mm=new $APP.K(null,"message-el","message-el",-683533234),gm=new $APP.K(null,"show-progress?","show-progress?",-1681518912),lm=new $APP.K(null,"progress-bar","progress-bar",-123877022),fm=new $APP.K(null,"show-progress-attr","show-progress-attr",1680262066);var Hm="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.wd(["x-toast-dismiss",new $APP.P(null,2,[$APP.Y,new $APP.P(null,4,[$APP.Z,$APP.X,$APP.xh,$APP.X,$APP.Lh,$APP.X,$APP.Lg,$APP.X],null),$APP.wi,!0],null)]);
26
+ var Yl=new $APP.P(null,4,["info",$APP.yh,"success",$APP.Sg,"warning",$APP.ui,"error",$APP.qh],null),$l=new $APP.P(null,4,[$APP.yh,"info",$APP.Sg,"success",$APP.ui,"warning",$APP.qh,"error"],null),sm=new $APP.P(null,4,[$APP.yh,"ℹ",$APP.Sg,"✓",$APP.ui,"!",$APP.qh,"⨯"],null);$APP.ka("app.exports.x_toast.init",Jm);export const init=Jm;
@@ -0,0 +1,9 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var so=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(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.P(null,2,[$APP.sh,b,$APP.Qh,d],null)}},yo=function(a){a=
3
+ new $APP.P(null,3,[$APP.Ii,a.getAttribute("position"),wo,a.getAttribute("max-toasts"),$APP.dh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.I(b,$APP.Ii);a=$APP.I(b,wo);b=$APP.I(b,$APP.dh);c=so(c);a=to(a);return new $APP.P(null,3,[$APP.aj,c,xo,$APP.n(a)?a:5,$APP.W,typeof b==="string"&&$APP.N(b.trim(),"")?b:"Notifications"],null)},zo=function(a){var b=yo(a);if($APP.N($APP.l(a,"__xToasterModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.aj),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.N($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type");var f=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.xg(new $APP.P(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.xh,$APP.n(f)?f:"",$APP.Lh,$APP.n(h)?h:"",$APP.Lg,$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})},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.S.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.N(b,""):b)?this.setAttribute("label",""+$APP.S.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.S.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.S.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.N(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.K(null,"max-toasts","max-toasts",-1982289139),wo=new $APP.K(null,"max-toasts-raw","max-toasts-raw",-815087069);var Do=["position","max-toasts","label"];$APP.wd(["x-toaster-dismiss",new $APP.P(null,2,[$APP.Y,new $APP.P(null,4,[$APP.Z,$APP.X,$APP.xh,$APP.X,$APP.Lh,$APP.X,$APP.Lg,$APP.X],null),$APP.wi,!0],null)]);var ro=new $APP.R(null,new $APP.P(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.S.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("app.exports.x_toaster.init",Fo);export const init=Fo;