@vanelsas/baredom 1.0.0 → 1.2.0

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 (71) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +14 -4
  3. package/dist/base.js +368 -349
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +16 -17
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-breadcrumbs.js +14 -14
  9. package/dist/x-button.js +16 -16
  10. package/dist/x-cancel-dialogue.js +17 -17
  11. package/dist/x-card.js +7 -7
  12. package/dist/x-chart.js +46 -46
  13. package/dist/x-checkbox.js +11 -11
  14. package/dist/x-chip.js +8 -8
  15. package/dist/x-collapse.js +11 -11
  16. package/dist/x-command-palette.js +31 -31
  17. package/dist/x-container.js +6 -6
  18. package/dist/x-context-menu.js +19 -20
  19. package/dist/x-copy.js +23 -23
  20. package/dist/x-currency-field.js +23 -23
  21. package/dist/x-date-picker.js +39 -39
  22. package/dist/x-divider.js +12 -12
  23. package/dist/x-drawer.js +12 -12
  24. package/dist/x-dropdown.js +10 -10
  25. package/dist/x-fieldset.js +6 -6
  26. package/dist/x-file-download.js +7 -7
  27. package/dist/x-form-field.js +17 -17
  28. package/dist/x-form.js +10 -10
  29. package/dist/x-gaussian-blur.js +33 -0
  30. package/dist/x-grid.js +7 -7
  31. package/dist/x-kinetic-typography.js +62 -0
  32. package/dist/x-menu-item.js +10 -10
  33. package/dist/x-menu.js +10 -10
  34. package/dist/x-modal.js +13 -13
  35. package/dist/x-navbar.js +13 -13
  36. package/dist/x-notification-center.js +10 -10
  37. package/dist/x-organic-divider.js +20 -0
  38. package/dist/x-organic-shape.js +15 -0
  39. package/dist/x-pagination.js +16 -16
  40. package/dist/x-popover.js +15 -15
  41. package/dist/x-progress-circle.js +10 -10
  42. package/dist/x-progress.js +11 -11
  43. package/dist/x-radio.js +11 -11
  44. package/dist/x-ripple-effect.js +14 -0
  45. package/dist/x-scroll-parallax.js +20 -0
  46. package/dist/x-scroll-stack.js +20 -0
  47. package/dist/x-scroll-story.js +38 -0
  48. package/dist/x-scroll-timeline.js +51 -0
  49. package/dist/x-scroll.js +43 -0
  50. package/dist/x-search-field.js +14 -14
  51. package/dist/x-select.js +9 -9
  52. package/dist/x-sidebar.js +16 -16
  53. package/dist/x-skeleton.js +6 -7
  54. package/dist/x-slider.js +16 -16
  55. package/dist/x-spacer.js +5 -5
  56. package/dist/x-spinner.js +5 -5
  57. package/dist/x-stat.js +11 -11
  58. package/dist/x-stepper.js +16 -16
  59. package/dist/x-switch.js +10 -10
  60. package/dist/x-tab.js +7 -7
  61. package/dist/x-table-cell.js +23 -23
  62. package/dist/x-table-row.js +10 -10
  63. package/dist/x-table.js +15 -15
  64. package/dist/x-tabs.js +11 -12
  65. package/dist/x-text-area.js +19 -19
  66. package/dist/x-timeline-item.js +24 -24
  67. package/dist/x-timeline.js +9 -9
  68. package/dist/x-toast.js +24 -24
  69. package/dist/x-toaster.js +8 -8
  70. package/dist/x-typography.js +11 -0
  71. package/package.json +47 -2
@@ -1,11 +1,11 @@
1
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.N(a);a=$APP.I(b,Cp);b=$APP.I(b,$APP.V);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.Q(null,2,[$APP.kh,b,$APP.Jh,d],null)}},Hp=function(a){a=new $APP.Q(null,4,[$APP.Ch,a.hasAttribute("selected"),$APP.V,a.hasAttribute("disabled"),Cp,a.hasAttribute("interactive"),Fp,a.getAttribute("row-index")],null);var b=$APP.N(a);a=$APP.I(b,$APP.Ch);var c=$APP.I(b,$APP.V),d=$APP.I(b,Cp);b=$APP.I(b,Fp);return new $APP.Q(null,4,[$APP.Ch,$APP.K(a),$APP.V,$APP.K(c),Cp,$APP.K(d),Gp,Bp(b)],null)},Ip=function(a){var b=Hp(a);if($APP.O($APP.l(a,
4
- "__xTableRowModel"),b)){Ep(a);var c=$APP.N(b),d=$APP.I(c,$APP.Ch),e=$APP.I(c,$APP.V),g=$APP.I(c,Cp),h=$APP.I(c,Gp);a.setAttribute("role","row");var k=$APP.N(c);var m=$APP.I(k,$APP.Ch);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.T.g(h)):a.removeAttribute("aria-rowindex");$APP.n(d)?
5
- a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.n(g)?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.N(c);c=$APP.I(e,$APP.Ch);var g=$APP.I(e,$APP.V);e=$APP.I(e,Gp);b.call(a,new d("x-table-row-click",{detail:$APP.pg(new $APP.Q(null,3,[$APP.ki,$APP.n(e)?e:0,$APP.Ui,c,$APP.pi,g],
6
- null)),bubbles:!0,composed:!0,cancelable:!0}))},Kp=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.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.la(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.T.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.N(c);c=$APP.I(e,$APP.Ch);var g=$APP.I(e,$APP.V),h=$APP.I(e,Cp);e=$APP.I(e,Gp);b.call(this,new d("x-table-row-connected",{detail:$APP.pg(new $APP.Q(null,
10
- 4,[$APP.ki,$APP.n(e)?e:0,$APP.Ui,c,$APP.pi,g,$APP.Lh,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.O(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.M(null,"interactive?","interactive?",367617676),Gp=new $APP.M(null,"row-index","row-index",-828710296),Fp=new $APP.M(null,"row-index-raw","row-index-raw",1490649093);var Np=["selected","disabled","interactive","row-index"];$APP.sd(["x-table-row-click",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.ki,$APP.zh,$APP.Ui,$APP.Di,$APP.pi,$APP.Di],null),$APP.ni,!0],null),"x-table-row-connected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.ki,$APP.zh,$APP.Ui,$APP.Di,$APP.pi,$APP.Di,$APP.Lh,$APP.Di],null),$APP.ni,!1],null),"x-table-row-disconnected",new $APP.Q(null,2,[$APP.Y,$APP.td,$APP.ni,!1],null)]);$APP.ja("baredom.exports.x_table_row.init",Pp);export const init=Pp;
2
+ var ys=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.q(isNaN(a))&&a>0?Math.floor(a):null):null},As=function(a){var b=$APP.N(a);a=$APP.H(b,zs);b=$APP.H(b,$APP.V);return $APP.n(a)?$APP.q(b):a},Bs=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.Q(null,2,[$APP.Yh,b,$APP.Pi,d],null)}},Es=function(a){a=new $APP.Q(null,4,[$APP.yi,a.hasAttribute("selected"),$APP.V,a.hasAttribute("disabled"),zs,a.hasAttribute("interactive"),Cs,a.getAttribute("row-index")],null);var b=$APP.N(a);a=$APP.H(b,$APP.yi);var c=$APP.H(b,$APP.V),d=$APP.H(b,zs);b=$APP.H(b,Cs);return new $APP.Q(null,4,[$APP.yi,$APP.J(a),$APP.V,$APP.J(c),zs,$APP.J(d),Ds,ys(b)],null)},Fs=function(a){var b=Es(a);if($APP.O($APP.l(a,
4
+ "__xTableRowModel"),b)){Bs(a);var c=$APP.N(b),d=$APP.H(c,$APP.yi),e=$APP.H(c,$APP.V),g=$APP.H(c,zs),h=$APP.H(c,Ds);a.setAttribute("role","row");var k=$APP.N(c);var m=$APP.H(k,$APP.yi);k=$APP.H(k,zs);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(g)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.n(As(c))?0:-1;a.__xTableRowModel=b}},Gs=function(a){var b=$APP.l(a,"__xTableRowModel");var c=$APP.n(b)?b:Es(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.H(e,$APP.yi);var g=$APP.H(e,$APP.V);e=$APP.H(e,Ds);b.call(a,new d("x-table-row-click",{detail:$APP.Mg(new $APP.Q(null,3,[$APP.Aj,$APP.n(e)?e:0,$APP.tk,c,$APP.Fj,g],
6
+ null)),bubbles:!0,composed:!0,cancelable:!0}))},Hs=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.h(e," "))e=$APP.l(a,"__xTableRowModel"),e=$APP.n(e)?e:Es(a),$APP.n(As(e))&&(d.preventDefault(),Gs(a));return null}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:Es(a);$APP.n(As(d))&&Gs(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTableRowHandlers",{click:c,keydown:b})},Is=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},Js=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 ys(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.q(isNaN(b))&&
9
+ b>0?this.setAttribute("row-index",""+$APP.S.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},Ls=function(){var a=class extends HTMLElement{};a.observedAttributes=Ks;a.prototype.connectedCallback=function(){Bs(this);Is(this);Hs(this);Fs(this);var b=$APP.l(this,"__xTableRowModel");var c=$APP.n(b)?b:Es(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.H(e,$APP.yi);var g=$APP.H(e,$APP.V),h=$APP.H(e,zs);e=$APP.H(e,Ds);b.call(this,new d("x-table-row-connected",{detail:$APP.Mg(new $APP.Q(null,
10
+ 4,[$APP.Aj,$APP.n(e)?e:0,$APP.tk,c,$APP.Fj,g,$APP.Ti,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){Is(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.O(c,d)&&Fs(this);return null};Js(a.prototype);return a},Ms=function(){$APP.n(customElements.get("x-table-row"))||customElements.define("x-table-row",
11
+ Ls());return null},zs=new $APP.M(null,"interactive?","interactive?",367617676),Ds=new $APP.M(null,"row-index","row-index",-828710296),Cs=new $APP.M(null,"row-index-raw","row-index-raw",1490649093);var Ks=["selected","disabled","interactive","row-index"];$APP.zd(["x-table-row-click",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.Aj,$APP.U,$APP.tk,$APP.Yj,$APP.Fj,$APP.Yj],null),$APP.Dj,!0],null),"x-table-row-connected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.Aj,$APP.U,$APP.tk,$APP.Yj,$APP.Fj,$APP.Yj,$APP.Ti,$APP.Yj],null),$APP.Dj,!1],null),"x-table-row-disconnected",new $APP.Q(null,2,[$APP.Y,$APP.Ad,$APP.Dj,!1],null)]);$APP.ja("baredom.exports.x_table_row.init",Ms);export const init=Ms;
package/dist/x-table.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var vs=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},xs=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.Q(null,3,[$APP.kh,b,ws,d,$APP.Jh,e],null);return $APP.l(a,"__xTableRefs")},Js=function(a){a=new $APP.Q(null,8,[ys,a.getAttribute("columns"),zs,a.getAttribute("caption"),As,a.getAttribute("selectable"),$APP.dh,a.hasAttribute("striped"),Bs,a.hasAttribute("bordered"),Cs,a.hasAttribute("full-width"),Ds,a.hasAttribute("compact"),Es,a.getAttribute("row-count")],null);var b=
4
- $APP.N(a),c=$APP.I(b,ys),d=$APP.I(b,zs),e=$APP.I(b,As);a=$APP.I(b,$APP.dh);var g=$APP.I(b,Bs),h=$APP.I(b,Cs),k=$APP.I(b,Ds);b=$APP.I(b,Es);a:{if(typeof c==="string"&&(c=c.trim(),$APP.O(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.C.h(c,""+$APP.T.g(m))?"repeat("+$APP.T.g(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.yc(Fs,e)?e:"none";return new $APP.Q(null,8,[$APP.Kg,c,Gs,d,Hs,e,$APP.dh,$APP.K(a),Bs,$APP.K(g),Cs,$APP.K(h),Ds,$APP.K(k),
5
- Is,vs(b)],null)},Ks=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.Lc(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},Ls=function(a){var b=Js(a);if($APP.O($APP.l(a,"__xTableModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.Kg),d=$APP.I(b,Gs),e=$APP.I(b,Hs),g=$APP.I(b,$APP.dh),h=$APP.I(b,Bs),k=$APP.I(b,Cs),m=$APP.I(b,Ds),q=$APP.I(b,Is),r=xs(a);r=$APP.N(r);r=$APP.I(r,ws);a.style.gridTemplateColumns=$APP.n(c)?
6
- c:"";a.setAttribute("role",$APP.C.h(e,"none")?"table":"grid");c=$APP.C.h(e,"multi")?"true":null;$APP.n(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");q!=null?a.setAttribute("aria-rowcount",""+$APP.T.g(q)):a.removeAttribute("aria-rowcount");$APP.O(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.O(d,"")?(r.textContent=d,r.removeAttribute("hidden")):(r.textContent="",r.setAttribute("hidden",""));$APP.n(g)?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(g)&&Ks(a);a.__xTableModel=b}},Os=function(a){function b(){var e=$APP.l(a,"__xTableModel");e=$APP.n(e)?e:Js(a);$APP.n($APP.dh.g(e))&&Ks(a);return null}function c(e){var g=$APP.l(a,"__xTableModel");g=$APP.n(g)?g:Js(a);
8
- var h=Hs.g(g);if($APP.O(h,"none"))if(g=e.target,e=$APP.l(e.detail,"rowIndex"),e=$APP.pg(new $APP.Q(null,3,[$APP.ki,$APP.n(e)?e:0,$APP.Ui,$APP.p(g.hasAttribute("selected")),Ms,h],null)),a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0})),$APP.C.h(h,"single")){e=g.hasAttribute("selected");h=a.querySelectorAll("x-table-row[selected]");for(var k=h.length,m=0;;)if(m<k)h[m].removeAttribute("selected"),m+=1;else break;$APP.n(e)||g.setAttribute("selected",
9
- "")}else $APP.C.h(h,"multi")&&($APP.n(g.hasAttribute("selected"))?g.removeAttribute("selected"):g.setAttribute("selected",""));return null}function d(e){var g=e.target;g=Array.from(g.parentElement.querySelectorAll("x-table-cell")).indexOf(g);var h=$APP.l(e.detail,"direction"),k=$APP.l(e.detail,"previousDirection");g>=0&&(e.stopPropagation(),e=$APP.pg(new $APP.Q(null,3,[Ns,g,$APP.Vh,h,$APP.Bi,k],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));
10
- return null}a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.la(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},Ps=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",
11
- b)}a.__xTableHandlers=null},Qs=function(a){Object.defineProperty(a,"columns",{get:function(){var b=this.getAttribute("columns");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("columns",""+$APP.T.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.T.g(b)):this.removeAttribute("caption")},
12
- enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",{get:function(){var b=this.getAttribute("selectable");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("selectable",""+$APP.T.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});
2
+ var $v=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.q(isNaN(a))&&a>0?Math.floor(a):null):null},bw=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.Q(null,3,[$APP.Yh,b,aw,d,$APP.Pi,e],null);return $APP.l(a,"__xTableRefs")},nw=function(a){a=new $APP.Q(null,8,[cw,a.getAttribute("columns"),dw,a.getAttribute("caption"),ew,a.getAttribute("selectable"),$APP.Ph,a.hasAttribute("striped"),fw,a.hasAttribute("bordered"),gw,a.hasAttribute("full-width"),hw,a.hasAttribute("compact"),iw,a.getAttribute("row-count")],null);var b=
4
+ $APP.N(a),c=$APP.H(b,cw),d=$APP.H(b,dw),e=$APP.H(b,ew);a=$APP.H(b,$APP.Ph);var g=$APP.H(b,fw),h=$APP.H(b,gw),k=$APP.H(b,hw);b=$APP.H(b,iw);a:{if(typeof c==="string"&&(c=c.trim(),$APP.O(c,""))){var m=parseInt(c,10);c=$APP.q(isNaN(m))&&m>0&&$APP.C.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.K(jw,e)?e:"none";return new $APP.Q(null,8,[$APP.lh,c,kw,d,lw,e,$APP.Ph,$APP.J(a),fw,$APP.J(g),gw,$APP.J(h),hw,$APP.J(k),
5
+ mw,$v(b)],null)},ow=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.Sc(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},pw=function(a){var b=nw(a);if($APP.O($APP.l(a,"__xTableModel"),b)){b=$APP.N(b);var c=$APP.H(b,$APP.lh),d=$APP.H(b,kw),e=$APP.H(b,lw),g=$APP.H(b,$APP.Ph),h=$APP.H(b,fw),k=$APP.H(b,gw),m=$APP.H(b,hw),p=$APP.H(b,mw),r=bw(a);r=$APP.N(r);r=$APP.H(r,aw);a.style.gridTemplateColumns=$APP.n(c)?
6
+ c:"";a.setAttribute("role",$APP.C.h(e,"none")?"table":"grid");c=$APP.C.h(e,"multi")?"true":null;$APP.n(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");p!=null?a.setAttribute("aria-rowcount",""+$APP.S.g(p)):a.removeAttribute("aria-rowcount");$APP.O(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.O(d,"")?(r.textContent=d,r.removeAttribute("hidden")):(r.textContent="",r.setAttribute("hidden",""));$APP.n(g)?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(g)&&ow(a);a.__xTableModel=b}},sw=function(a){function b(){var e=$APP.l(a,"__xTableModel");e=$APP.n(e)?e:nw(a);$APP.n($APP.Ph.g(e))&&ow(a);return null}function c(e){var g=$APP.l(a,"__xTableModel");g=$APP.n(g)?g:nw(a);
8
+ var h=lw.g(g);if($APP.O(h,"none"))if(g=e.target,e=$APP.l(e.detail,"rowIndex"),e=$APP.Mg(new $APP.Q(null,3,[$APP.Aj,$APP.n(e)?e:0,$APP.tk,$APP.q(g.hasAttribute("selected")),qw,h],null)),a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0})),$APP.C.h(h,"single")){e=g.hasAttribute("selected");h=a.querySelectorAll("x-table-row[selected]");for(var k=h.length,m=0;;)if(m<k)h[m].removeAttribute("selected"),m+=1;else break;$APP.n(e)||g.setAttribute("selected",
9
+ "")}else $APP.C.h(h,"multi")&&($APP.n(g.hasAttribute("selected"))?g.removeAttribute("selected"):g.setAttribute("selected",""));return null}function d(e){var g=e.target;g=Array.from(g.parentElement.querySelectorAll("x-table-cell")).indexOf(g);var h=$APP.l(e.detail,"direction"),k=$APP.l(e.detail,"previousDirection");g>=0&&(e.stopPropagation(),e=$APP.Mg(new $APP.Q(null,3,[rw,g,$APP.dj,h,$APP.Wj,k],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));
10
+ return null}a.addEventListener("x-table-cell-sort",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})},tw=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",
11
+ b)}a.__xTableHandlers=null},uw=function(a){Object.defineProperty(a,"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")},
12
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",{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});
13
13
  Object.defineProperty(a,"bordered",{get:function(){return this.hasAttribute("bordered")},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")},
14
- set:function(b){return $APP.n(b)?this.setAttribute("full-width",""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return vs(this.getAttribute("row-count"))},set:function(b){return b==null?this.removeAttribute("row-count"):this.setAttribute("row-count",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0})},Ss=function(){var a=class extends HTMLElement{};a.observedAttributes=Rs;a.prototype.connectedCallback=function(){xs(this);
15
- Ps(this);Os(this);Ls(this);return null};a.prototype.disconnectedCallback=function(){Ps(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Ls(this);return null};Qs(a.prototype);return a},Ts=function(){$APP.n(customElements.get("x-table"))||customElements.define("x-table",Ss());return null},Hs=new $APP.M(null,"selectable","selectable",370587038),Cs=new $APP.M(null,"full-width?","full-width?",1477288349),Es=new $APP.M(null,"row-count-raw","row-count-raw",-1432781274),
16
- As=new $APP.M(null,"selectable-raw","selectable-raw",-1276314763),Ns=new $APP.M(null,"colIndex","colIndex",171239635),Gs=new $APP.M(null,"caption","caption",-855383902),Bs=new $APP.M(null,"bordered?","bordered?",562358476),Is=new $APP.M(null,"row-count","row-count",1060167988),ws=new $APP.M(null,"caption-div","caption-div",1485363333),zs=new $APP.M(null,"caption-raw","caption-raw",-375935083),Ms=new $APP.M(null,"selectionMode","selectionMode",1264773367),ys=new $APP.M(null,"columns-raw","columns-raw",
17
- -2093994046),Ds=new $APP.M(null,"compact?","compact?",1216893298);var Rs="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.sd(["x-table-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[Ns,$APP.zh,$APP.Vh,$APP.X,$APP.Bi,$APP.X],null),$APP.ni,!0],null),"x-table-row-select",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.ki,$APP.zh,$APP.Ui,$APP.Di,Ms,$APP.X],null),$APP.ni,!0],null)]);var Fs=new $APP.S(null,new $APP.Q(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ja("baredom.exports.x_table.init",Ts);export const init=Ts;
14
+ set:function(b){return $APP.n(b)?this.setAttribute("full-width",""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return $v(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})},ww=function(){var a=class extends HTMLElement{};a.observedAttributes=vw;a.prototype.connectedCallback=function(){bw(this);
15
+ tw(this);sw(this);pw(this);return null};a.prototype.disconnectedCallback=function(){tw(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&pw(this);return null};uw(a.prototype);return a},xw=function(){$APP.n(customElements.get("x-table"))||customElements.define("x-table",ww());return null},lw=new $APP.M(null,"selectable","selectable",370587038),gw=new $APP.M(null,"full-width?","full-width?",1477288349),iw=new $APP.M(null,"row-count-raw","row-count-raw",-1432781274),
16
+ ew=new $APP.M(null,"selectable-raw","selectable-raw",-1276314763),rw=new $APP.M(null,"colIndex","colIndex",171239635),kw=new $APP.M(null,"caption","caption",-855383902),fw=new $APP.M(null,"bordered?","bordered?",562358476),mw=new $APP.M(null,"row-count","row-count",1060167988),aw=new $APP.M(null,"caption-div","caption-div",1485363333),dw=new $APP.M(null,"caption-raw","caption-raw",-375935083),qw=new $APP.M(null,"selectionMode","selectionMode",1264773367),cw=new $APP.M(null,"columns-raw","columns-raw",
17
+ -2093994046),hw=new $APP.M(null,"compact?","compact?",1216893298);var vw="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.zd(["x-table-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[rw,$APP.U,$APP.dj,$APP.X,$APP.Wj,$APP.X],null),$APP.Dj,!0],null),"x-table-row-select",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.Aj,$APP.U,$APP.tk,$APP.Yj,qw,$APP.X],null),$APP.Dj,!0],null)]);var jw=new $APP.R(null,new $APP.Q(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ja("baredom.exports.x_table.init",xw);export const init=xw;
package/dist/x-tabs.js CHANGED
@@ -1,13 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var vt=function(a){if($APP.pc(a))return $APP.mc(a,null);a=$APP.u(a);if(a==null)return $APP.mf;if(a instanceof $APP.Fb&&a.s===0)return $APP.nf(a.i);for(var b=$APP.fb($APP.mf);;)if(a!=null){var c=$APP.y(a);b=$APP.gb(b,$APP.Ba(a));a=c}else return $APP.hb(b)},At=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.U);var c=$APP.I(b,$APP.th),d=$APP.I(b,wt),e=$APP.I(b,$APP.W);b=$APP.I(b,xt);c=$APP.yc(yt,c)?c:"horizontal";d=$APP.yc(zt,d)?d:"auto";return new $APP.Q(null,5,[$APP.U,a,$APP.th,c,wt,d,$APP.W,e,xt,$APP.K(b)],
3
- null)},Bt=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},Ct=function(a){return new $APP.Q(null,5,[$APP.U,a.getAttribute("value"),$APP.th,a.getAttribute("orientation"),wt,a.getAttribute("activation"),$APP.W,a.getAttribute("label"),xt,a.hasAttribute("loop")],null)},Dt=function(a){return $APP.Wd($APP.Ed(function(b){return $APP.C.h("X-TAB",b.tagName)},$APP.dc(a.children)))},Et=function(a){return $APP.p(a.hasAttribute("disabled"))},Ft=function(a){return a.getAttribute("value")},Gt=function(a){return $APP.xd(function(b){return Et(b)?
4
- b:null},a)},Ht=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.O(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.C.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},It=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"))},Jt=function(a,b){var c=a.getAttribute("tabindex");$APP.O(c,b)&&a.setAttribute("tabindex",b)},Kt=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?
5
- $APP.O(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Lt=function(a){var b=Dt(a),c=a.getAttribute("value"),d=vt($APP.zd(Ft,b));$APP.n($APP.n(c)?$APP.yc(d,c):c)||(c=Gt(b),c=$APP.n(c)?Ft(c):null);if($APP.n(c)){a:{d=$APP.u(b);for(var e=null,g=0,h=0;;)if(h<g){var k=e.D(null,h),m=$APP.C.h(Ft(k),c);It(k,m);m&&Et(k)?Jt(k,"0"):Jt(k,"-1");h+=1}else if(d=$APP.u(d))$APP.uc(d)?(e=$APP.mb(d),d=$APP.nb(d),k=e,g=$APP.B(e),e=k):(k=$APP.x(d),
6
- e=$APP.C.h(Ft(k),c),It(k,e),e&&Et(k)?Jt(k,"0"):Jt(k,"-1"),d=$APP.y(d),e=null,g=0),h=0;else break a}a:for(b=$APP.u(b),d=null,g=e=0;;)if(g<e)k=d.D(null,g),Kt(k,$APP.C.h(Ft(k),c)),g+=1;else if(b=$APP.u(b))d=b,$APP.uc(d)?(b=$APP.mb(d),e=$APP.nb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.x(d),Kt(k,$APP.C.h(Ft(k),c)),b=$APP.y(d),d=null,e=0),g=0;else break a;Ht(a,c)}return c},Mt=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.O(c,b):b)?(Ht(a,b),Lt(a),a.dispatchEvent(new CustomEvent("value-change",
7
- {detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},Nt=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},Ot=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:$APP.n(c)?b:a},Pt=function(a){var b=$APP.l(a,"__x_tabs_base"),c=At(Ct(a));$APP.n(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.th.g(c)),c=$APP.W.g(c),$APP.n($APP.n(c)?$APP.O(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return Lt(a)},Qt=function(a){var b=
8
- new MutationObserver(function(){return Pt(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},Rt=function(a){function b(d){a:{var e=$APP.Wd($APP.Ed(Et,Dt(a))),g=At(Ct(a)),h=$APP.th.g(g);var k=wt.g(g);g=xt.g(g);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowRight")?Nt(q,e,g):$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowLeft")?Ot(q,e,g):$APP.C.h(h,"vertical")&&
9
- $APP.C.h(m,"ArrowDown")?Nt(q,e,g):$APP.C.h(h,"vertical")&&$APP.C.h(m,"ArrowUp")?Ot(q,e,g):$APP.C.h(m,"Home")?0:$APP.C.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.C.h(k,"auto")?Mt(a,Ft(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return Mt(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;Qt(a)},St=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})},Ut=function(){var a=class extends HTMLElement{};a.observedAttributes=Tt;a.prototype.connectedCallback=function(){if(Bt(this)){Rt(this);var b=Pt(this)}else{if(!Bt(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:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-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;Rt(this);this.__x_tabs_initialized=
12
- !0}Pt(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,"__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 Bt(this)?Pt(this):null};St(a);return a},Vt=function(){return $APP.n(customElements.get("x-tabs"))?null:customElements.define("x-tabs",
13
- Ut())},wt=new $APP.M(null,"activation","activation",2128521072),xt=new $APP.M(null,"loop","loop",-395552849);var Tt=["value","orientation","activation","label","loop"],yt=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),zt=new $APP.S(null,new $APP.Q(null,2,["auto",null,"manual",null],null),null);$APP.sd(["value-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.U,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_tabs.init",Vt);export const init=Vt;
2
+ var px=function(a){var b=$APP.N(a);a=$APP.H(b,$APP.si);var c=$APP.H(b,$APP.li),d=$APP.H(b,mx),e=$APP.H(b,$APP.W);b=$APP.H(b,$APP.Zj);c=$APP.K(nx,c)?c:"horizontal";d=$APP.K(ox,d)?d:"auto";return new $APP.Q(null,5,[$APP.si,a,$APP.li,c,mx,d,$APP.W,e,$APP.Zj,$APP.J(b)],null)},qx=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},rx=function(a){return new $APP.Q(null,5,[$APP.si,a.getAttribute("value"),$APP.li,a.getAttribute("orientation"),mx,a.getAttribute("activation"),$APP.W,a.getAttribute("label"),
3
+ $APP.Zj,a.hasAttribute("loop")],null)},sx=function(a){return $APP.fe($APP.Ld(function(b){return $APP.C.h("X-TAB",b.tagName)},$APP.ic(a.children)))},tx=function(a){return $APP.q(a.hasAttribute("disabled"))},ux=function(a){return a.getAttribute("value")},vx=function(a){return $APP.Dd(function(b){return tx(b)?b:null},a)},wx=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.O(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.C.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},xx=function(a,
4
+ b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.q(c):b)?a.setAttribute("selected",""):(b=$APP.q(b),$APP.n(b?c:b)&&a.removeAttribute("selected"))},yx=function(a,b){var c=a.getAttribute("tabindex");$APP.O(c,b)&&a.setAttribute("tabindex",b)},zx=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.O(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Ax=function(a){var b=sx(a),c=a.getAttribute("value"),d=$APP.If($APP.Gd(ux,
5
+ b));$APP.n($APP.n(c)?$APP.K(d,c):c)||(c=vx(b),c=$APP.n(c)?ux(c):null);if($APP.n(c)){a:{d=$APP.u(b);for(var e=null,g=0,h=0;;)if(h<g){var k=e.H(null,h),m=$APP.C.h(ux(k),c);xx(k,m);m&&tx(k)?yx(k,"0"):yx(k,"-1");h+=1}else if(d=$APP.u(d))$APP.Ac(d)?(e=$APP.ob(d),d=$APP.pb(d),k=e,g=$APP.B(e),e=k):(k=$APP.w(d),e=$APP.C.h(ux(k),c),xx(k,e),e&&tx(k)?yx(k,"0"):yx(k,"-1"),d=$APP.z(d),e=null,g=0),h=0;else break a}a:for(b=$APP.u(b),d=null,g=e=0;;)if(g<e)k=d.H(null,g),zx(k,$APP.C.h(ux(k),c)),g+=1;else if(b=$APP.u(b))d=
6
+ b,$APP.Ac(d)?(b=$APP.ob(d),e=$APP.pb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.w(d),zx(k,$APP.C.h(ux(k),c)),b=$APP.z(d),d=null,e=0),g=0;else break a;wx(a,c)}return c},Bx=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.O(c,b):b)?(wx(a,b),Ax(a),a.dispatchEvent(new CustomEvent("value-change",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},Cx=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},Dx=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:
7
+ $APP.n(c)?b:a},Ex=function(a){var b=$APP.l(a,"__x_tabs_base"),c=px(rx(a));$APP.n(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.li.g(c)),c=$APP.W.g(c),$APP.n($APP.n(c)?$APP.O(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return Ax(a)},Fx=function(a){var b=new MutationObserver(function(){return Ex(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},Gx=function(a){function b(d){a:{var e=
8
+ $APP.fe($APP.Ld(tx,sx(a))),g=px(rx(a)),h=$APP.li.g(g);var k=mx.g(g);g=$APP.Zj.g(g);var m=d.key,p=e.indexOf(document.activeElement);if(p>=0&&(h=$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowRight")?Cx(p,e,g):$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowLeft")?Dx(p,e,g):$APP.C.h(h,"vertical")&&$APP.C.h(m,"ArrowDown")?Cx(p,e,g):$APP.C.h(h,"vertical")&&$APP.C.h(m,"ArrowUp")?Dx(p,e,g):$APP.C.h(m,"Home")?0:$APP.C.h(m,"End")?$APP.B(e)-1:null,h!=null)){d.preventDefault();d=$APP.E(e,h,null);$APP.n(d)?d.focus():
9
+ d=null;k=$APP.n(d)?$APP.C.h(k,"auto")?Bx(a,ux(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return Bx(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;Fx(a)},Hx=function(a){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})},
10
+ Jx=function(){var a=class extends HTMLElement{};a.observedAttributes=Ix;a.prototype.connectedCallback=function(){if(qx(this)){Gx(this);var b=Ex(this)}else{if(!qx(this)){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
11
+ 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;Gx(this);this.__x_tabs_initialized=!0}Ex(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,"__x_tabs_on_keydown");$APP.n(b)&&this.removeEventListener("keydown",b);b=$APP.l(this,"__x_tabs_observer");return $APP.n(b)?
12
+ b.disconnect():null};a.prototype.attributeChangedCallback=function(){return qx(this)?Ex(this):null};Hx(a);return a},Kx=function(){return $APP.n(customElements.get("x-tabs"))?null:customElements.define("x-tabs",Jx())},mx=new $APP.M(null,"activation","activation",2128521072);var Ix=["value","orientation","activation","label","loop"],nx=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),ox=new $APP.R(null,new $APP.Q(null,2,["auto",null,"manual",null],null),null);$APP.zd(["value-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.si,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_tabs.init",Kx);export const init=Kx;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var LF=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},MF=function(a,b,c){return a.setAttribute(b,c)},NF=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},OF=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
- c):b.setValidity({},"",c)},XF=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 g=$APP.Xe([PF,$APP.Wg,$APP.Dh,$APP.lh,$APP.yh,QF,$APP.Sh,RF,$APP.ug,$APP.mi,$APP.yi,$APP.Vg,SF,$APP.ph],[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.N(g),k=$APP.I(h,SF),m=$APP.I(h,$APP.ph),q=$APP.I(h,PF),r=$APP.I(h,$APP.Wg),v=$APP.I(h,$APP.Dh),w=$APP.I(h,$APP.lh),z=$APP.I(h,$APP.yh),A=$APP.I(h,QF);g=$APP.I(h,$APP.Sh);var D=$APP.I(h,RF),G=$APP.I(h,$APP.ug),J=$APP.I(h,$APP.mi),E=$APP.I(h,$APP.yi);h=$APP.I(h,$APP.Vg);var R=$APP.n(w)?w:"",ha=$APP.n(z)?z:"",ua=$APP.n(r)?r:"";G=$APP.K(G);J=$APP.K(J);
5
- m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.O(z,"")&&z!=null;v=$APP.n(v)?v:"";E=$APP.n(E)?E:"";k=LF(k);r=typeof r==="string"&&$APP.O(r,"")&&r!=null;w=typeof w==="string"&&$APP.O(w,"")&&w!=null;q=typeof q==="string"&&$APP.yc(TF,q)?q:"vertical";A=LF(A);g=$APP.Xe([$APP.Tg,$APP.Vi,$APP.vi,$APP.Zg,$APP.ai,$APP.U,UF,$APP.Gh,$APP.ch,VF,$APP.ei,WF,$APP.Ph,$APP.W,$APP.ih,$APP.gi,$APP.V],[G,J,m,z,v,E,k,r,w,q,ha,LF(D),$APP.n(A)?A:3,ua,R,$APP.n(h)?h:"",$APP.K(g)]);D=$APP.ch.g(g);A=$APP.Zg.g(g);h=$APP.Gh.g(g);
6
- c.name=$APP.ai.g(g);c.placeholder=$APP.vi.g(g);c.disabled=$APP.V.g(g);c.readOnly=$APP.Vi.g(g);c.required=$APP.Tg.g(g);c.rows=$APP.Ph.g(g);c.autocomplete=$APP.gi.g(g);R=WF.g(g);$APP.n(R)?MF(c,"maxlength",""+$APP.T.g(R)):c.removeAttribute("maxlength");R=UF.g(g);$APP.n(R)?MF(c,"minlength",""+$APP.T.g(R)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",VF.g(g));MF(c,"aria-required",$APP.n($APP.Tg.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(D)?"true":"false");R=
7
- $APP.n($APP.n(A)?D:A)?"hint error":$APP.n(A)?"hint":$APP.n(D)?"error":null;$APP.n(R)?c.setAttribute("aria-describedby",R):c.removeAttribute("aria-describedby");d.textContent=$APP.W.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.ei.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.ih.g(g);$APP.n(D)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");NF(a,"data-invalid",D);d=$APP.l(a,
8
- "__xTextAreaInternals");return $APP.n(d)?OF(a,d,c):null}return null},YF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},ZF=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),OF(a,e,b));return YF(a,"x-text-area-input",{name:d,value:c})}return null}},$F=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),OF(a,e,b));return YF(a,"x-text-area-change",{name:d,value:c})}return null}},aG=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},bG=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.O(d)?MF(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},cG=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return NF(this,c,$APP.K(d))}})},dG=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
- enumerable:!0,get:function(){var e=LF(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.O(e)&&e>0?MF(this,c,""+$APP.T.g(Math.floor(e))):this.removeAttribute(c)}})},eG=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.O(b)?""+$APP.T.g(b):"";this.setAttribute("value",
12
- b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},gG=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return fG}});eG(b);bG(b,"name","name");bG(b,"placeholder","placeholder");bG(b,"autocomplete","autocomplete");cG(b,"disabled","disabled");cG(b,"readOnly","readonly");cG(b,"required","required");dG(b,"rows","rows",3);dG(b,"maxLength","maxlength",null);dG(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"),g=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");g.setAttribute("part","label");g.setAttribute("id","label");g.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(g);e.appendChild(h);e.appendChild(m);e.appendChild(q);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:k,hint:m,error:q};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}aG(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=ZF(this),e=$F(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return XF(this)};b.disconnectedCallback=function(){return aG(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.l(c,"textarea"),$APP.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return XF(this)};b.formDisabledCallback=function(c){NF(this,
17
- "disabled",$APP.K(c));return XF(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 XF(this)};return a},hG=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",gG())},UF=new $APP.M(null,"minlength","minlength",259053545),SF=new $APP.M(null,"minlength-raw","minlength-raw",-1245403779),
18
- RF=new $APP.M(null,"maxlength-raw","maxlength-raw",-886656470),PF=new $APP.M(null,"resize-raw","resize-raw",-287517888),WF=new $APP.M(null,"maxlength","maxlength",-1163911985),QF=new $APP.M(null,"rows-raw","rows-raw",-1828357145),VF=new $APP.M(null,"resize","resize",297367086);var fG="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),TF=new $APP.S(null,new $APP.Q(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
- $APP.Xe([$APP.pi,$APP.ai,$APP.U,new $APP.M(null,"minLength","minLength",-1538722770),$APP.Ph,$APP.si,new $APP.M(null,"maxLength","maxLength",-1633020073),$APP.gi,$APP.Eg],[new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.zh,$APP.Hg,"minlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.zh,$APP.Hg,"rows"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,
20
- "readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.zh,$APP.Hg,"maxlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"required"],null)]);$APP.ja("baredom.exports.x_text_area.init",hG);export const init=hG;
2
+ var DN=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.q(isNaN(a))&&a>0?a:null):null},EN=function(a,b,c){return a.setAttribute(b,c)},FN=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},GN=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
+ c):b.setValidity({},"",c)},PN=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 g=$APP.gf([HN,$APP.Dh,$APP.Ai,$APP.$h,$APP.ui,IN,$APP.aj,JN,$APP.Tg,$APP.Cj,$APP.Rj,$APP.Ch,KN,$APP.gi],[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.N(g),k=$APP.H(h,KN),m=$APP.H(h,$APP.gi),p=$APP.H(h,HN),r=$APP.H(h,$APP.Dh),v=$APP.H(h,$APP.Ai),x=$APP.H(h,$APP.$h),y=$APP.H(h,$APP.ui),A=$APP.H(h,IN);g=$APP.H(h,$APP.aj);var D=$APP.H(h,JN),G=$APP.H(h,$APP.Tg),I=$APP.H(h,$APP.Cj),F=$APP.H(h,$APP.Rj);h=$APP.H(h,$APP.Ch);var P=$APP.n(x)?x:"",la=$APP.n(y)?y:"",Ca=$APP.n(r)?r:"";G=$APP.J(G);I=$APP.J(I);
5
+ m=$APP.n(m)?m:"";y=typeof y==="string"&&$APP.O(y,"")&&y!=null;v=$APP.n(v)?v:"";F=$APP.n(F)?F:"";k=DN(k);r=typeof r==="string"&&$APP.O(r,"")&&r!=null;x=typeof x==="string"&&$APP.O(x,"")&&x!=null;p=typeof p==="string"&&$APP.K(LN,p)?p:"vertical";A=DN(A);g=$APP.gf([$APP.zh,$APP.uk,$APP.Mj,$APP.Jh,$APP.mj,$APP.si,MN,$APP.Fi,$APP.Oh,NN,$APP.qj,ON,$APP.Yi,$APP.W,$APP.Vh,$APP.sj,$APP.V],[G,I,m,y,v,F,k,r,x,p,la,DN(D),$APP.n(A)?A:3,Ca,P,$APP.n(h)?h:"",$APP.J(g)]);D=$APP.Oh.g(g);A=$APP.Jh.g(g);h=$APP.Fi.g(g);
6
+ c.name=$APP.mj.g(g);c.placeholder=$APP.Mj.g(g);c.disabled=$APP.V.g(g);c.readOnly=$APP.uk.g(g);c.required=$APP.zh.g(g);c.rows=$APP.Yi.g(g);c.autocomplete=$APP.sj.g(g);P=ON.g(g);$APP.n(P)?EN(c,"maxlength",""+$APP.S.g(P)):c.removeAttribute("maxlength");P=MN.g(g);$APP.n(P)?EN(c,"minlength",""+$APP.S.g(P)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",NN.g(g));EN(c,"aria-required",$APP.n($APP.zh.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(D)?"true":"false");P=
7
+ $APP.n($APP.n(A)?D:A)?"hint error":$APP.n(A)?"hint":$APP.n(D)?"error":null;$APP.n(P)?c.setAttribute("aria-describedby",P):c.removeAttribute("aria-describedby");d.textContent=$APP.W.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.qj.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Vh.g(g);$APP.n(D)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");FN(a,"data-invalid",D);d=$APP.l(a,
8
+ "__xTextAreaInternals");return $APP.n(d)?GN(a,d,c):null}return null},QN=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},RN=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),GN(a,e,b));return QN(a,"x-text-area-input",{name:d,value:c})}return null}},SN=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),GN(a,e,b));return QN(a,"x-text-area-change",{name:d,value:c})}return null}},TN=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},UN=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.O(d)?EN(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},VN=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return FN(this,c,$APP.J(d))}})},WN=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
+ enumerable:!0,get:function(){var e=DN(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.O(e)&&e>0?EN(this,c,""+$APP.S.g(Math.floor(e))):this.removeAttribute(c)}})},XN=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.O(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}})},ZN=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return YN}});XN(b);UN(b,"name","name");UN(b,"placeholder","placeholder");UN(b,"autocomplete","autocomplete");VN(b,"disabled","disabled");VN(b,"readOnly","readonly");VN(b,"required","required");WN(b,"rows","rows",3);WN(b,"maxLength","maxlength",null);WN(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"),g=document.createElement("label"),h=document.createElement("div"),k=document.createElement("textarea"),m=document.createElement("span"),p=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");g.setAttribute("part","label");g.setAttribute("id","label");g.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");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(k);
15
+ e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:k,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}TN(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=RN(this),e=SN(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return PN(this)};b.disconnectedCallback=function(){return TN(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.l(c,"textarea"),$APP.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return PN(this)};b.formDisabledCallback=function(c){FN(this,
17
+ "disabled",$APP.J(c));return PN(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 PN(this)};return a},$N=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",ZN())},MN=new $APP.M(null,"minlength","minlength",259053545),KN=new $APP.M(null,"minlength-raw","minlength-raw",-1245403779),
18
+ JN=new $APP.M(null,"maxlength-raw","maxlength-raw",-886656470),HN=new $APP.M(null,"resize-raw","resize-raw",-287517888),ON=new $APP.M(null,"maxlength","maxlength",-1163911985),IN=new $APP.M(null,"rows-raw","rows-raw",-1828357145),NN=new $APP.M(null,"resize","resize",297367086);var YN="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),LN=new $APP.R(null,new $APP.Q(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
+ $APP.gf([$APP.Fj,$APP.mj,$APP.si,new $APP.M(null,"minLength","minLength",-1538722770),$APP.Yi,$APP.Ij,new $APP.M(null,"maxLength","maxLength",-1633020073),$APP.sj,$APP.dh],[new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.U,$APP.T,"minlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.U,$APP.T,"rows"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"readonly"],
20
+ null),new $APP.Q(null,2,[$APP.Z,$APP.U,$APP.T,"maxlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"required"],null)]);$APP.ja("baredom.exports.x_text_area.init",$N);export const init=$N;
@@ -1,25 +1,25 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var rj=function(a){a=$APP.I(qj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Qg},tj=function(a){a=$APP.I(sj,a);return $APP.n(a)?a:"pending"},wj=function(a){a=$APP.I(uj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:vj},Bj=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},Cj=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Ej=function(a,
3
- b){a=$APP.I(Dj,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.I(Dj,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.qi);return b},Fj=function(a,b,c){a=tj(a);c=c!=null?"Step "+$APP.T.g(c+1)+": ":null;return""+$APP.T.g(c)+$APP.T.g(typeof b==="string"&&$APP.O(b,"")?""+$APP.T.g(b)+" ":null)+"("+$APP.T.g(a)+")"},Tj=function(a){var b=$APP.N(a),c=$APP.I(b,Gj);a=$APP.I(b,$APP.V);var d=$APP.I(b,$APP.Ai),e=$APP.I(b,$APP.Wg),g=$APP.I(b,Hj),h=$APP.I(b,Ij),k=$APP.I(b,Jj),m=$APP.I(b,
4
- $APP.uh),q=$APP.I(b,Kj),r=$APP.I(b,$APP.Bg),v=$APP.I(b,Lj);b=$APP.I(b,$APP.fi);var w=rj(m),z=Bj(b),A=$APP.n($APP.n(r)?z==null:r)?$APP.Ri:z!=null?$APP.Hh:$APP.Sg;m=function(){var D=A instanceof $APP.M?A.na:null;switch(D){case "default":return D=$APP.I(Mj,w),$APP.n(D)?D:$APP.I(Mj,$APP.Qg);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.T.g(D));}}();c=Cj(c);d=Ej(k,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.Xe([Nj,Oj,Pj,Hj,Kj,$APP.Rg,Qj,$APP.yg,$APP.W,
5
- Rj,$APP.Xi,$APP.V,Sj],[wj(h),c,m,$APP.K(g),$APP.K(q),$APP.C.h(A,$APP.Hh)?z:null,v,w,e,Fj(w,e,c),A,$APP.K(a),d])},Uj=function(a){a=$APP.N(a);a=$APP.I(a,$APP.V);return $APP.p(a)},gk=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
- q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),w=document.createElement("div"),z=document.createElement("div"),A=document.createElement("div"),D=document.createElement("slot"),G=document.createElement("div"),J=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
- d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);k.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);v.setAttribute("class","connector");k.appendChild(m);k.appendChild(v);w.setAttribute("class","content-col");z.setAttribute("class",
8
- "title");A.setAttribute("class","body");A.appendChild(D);G.setAttribute("class","actions");J.setAttribute("name","actions");G.appendChild(J);w.appendChild(z);w.appendChild(A);w.appendChild(G);d.appendChild(e);d.appendChild(k);d.appendChild(w);b.appendChild(c);b.appendChild(d);b=$APP.Xe([Nj,Vj,Wj,$APP.Mi,Xj,Yj,$APP.Ei,Zj,$APP.kh,ak,bk,ck,dk,ek,$APP.Wh,fk],[v,h,m,r,e,k,A,D,b,J,z,w,d,G,q,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},hk=function(a){return Tj($APP.Xe([$APP.Ai,$APP.Wg,
9
- Hj,Ij,Jj,$APP.uh,Kj,$APP.Bg,Lj,$APP.fi,Gj,$APP.V],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},kk=function(a){var b=hk(a);if($APP.O($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.W),d=$APP.I(b,
10
- Qj),e=$APP.I(b,$APP.yg),g=$APP.I(b,Sj),h=$APP.I(b,$APP.V),k=$APP.I(b,Pj),m=$APP.I(b,Rj),q=gk(a),r=$APP.N(q);q=$APP.I(r,Vj);var v=$APP.I(r,Wj),w=$APP.I(r,bk);r=$APP.I(r,$APP.Mi);a.setAttribute("data-status",tj(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.qf(g));a.__xTimelineItemSelfPos=null;$APP.C.h(Nj.g(b),ik)?a.setAttribute("data-connector","dashed"):$APP.C.h(Nj.g(b),jk)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role","listitem");
11
- $APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.O(d,"")?d:$APP.O(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=k!=null?k:"";$APP.O(d,"")?(w.removeAttribute("hidden"),w.textContent=d):(w.setAttribute("hidden",""),w.textContent="");a.__xTimelineItemModel=b}},lk=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=
12
- !0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.C.h(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},mk=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.n(b)?b:hk(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.I(e,$APP.yg);e=$APP.I(e,$APP.W);c=new $APP.Q(null,2,[$APP.yg,tj(c),$APP.W,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.pg(c),bubbles:!0,composed:!0,cancelable:!0}))},
13
- nk=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.h(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:hk(a),Uj(e)&&(d.preventDefault(),mk(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:hk(a);Uj(d)&&mk(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.la(a,"__xTimelineItemHandlers",{click:c,keydown:b})},ok=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,
14
- "keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},pk=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?
15
- b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("title",""+$APP.T.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});Object.defineProperty(a,"status",{get:function(){var b=this.getAttribute("status");return $APP.n(b)?b:"pending"},set:function(b){return $APP.n(b)?this.setAttribute("status",""+$APP.T.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
- set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"connector",{get:function(){var b=this.getAttribute("connector");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("connector",""+$APP.T.g(b)):this.removeAttribute("connector")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){var b=this.getAttribute("position");return $APP.n(b)?
17
- b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},rk=function(){var a=class extends HTMLElement{};a.observedAttributes=qk;a.prototype.connectedCallback=function(){gk(this);ok(this);
18
- nk(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);kk(this);lk(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:hk(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.I(e,$APP.yg);var g=$APP.I(e,$APP.W),h=$APP.I(e,Sj);e=$APP.I(e,$APP.V);c=new $APP.Q(null,4,[$APP.yg,tj(c),$APP.W,g,$APP.Ti,$APP.qf(h),$APP.pi,$APP.K(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.pg(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
- a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:hk(this);ok(this);this.__xTimelineItemEntered=null;b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.N(c);c=$APP.I(g,$APP.yg);g=$APP.I(g,$APP.W);c=new $APP.Q(null,2,[$APP.yg,tj(c),$APP.W,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.pg(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.O(c,d))c=$APP.C.h(b,
20
- "data-position"),c=!$APP.n(c?$APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.C.h(b,"data-position")&&(this.__xTimelineItemParentPos=d),kk(this));return null};pk(a.prototype);return a},sk=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",rk());return null},Lj=new $APP.M(null,"title-raw","title-raw",976469452),Yj=new $APP.M(null,"track-col","track-col",629248272),ak=new $APP.M(null,"actions-slot","actions-slot",1424248629),Pj=new $APP.M(null,"marker-icon",
21
- "marker-icon",424963779),Wj=new $APP.M(null,"marker","marker",865118313),Nj=new $APP.M(null,"connector","connector",-1517293248),vj=new $APP.M(null,"solid","solid",-2023773691),bk=new $APP.M(null,"title-el","title-el",-401767816),Qj=new $APP.M(null,"title","title",636505583),Ij=new $APP.M(null,"connector-raw","connector-raw",106333796),Zj=new $APP.M(null,"default-slot","default-slot",-1145647151),Sj=new $APP.M(null,"effective-position","effective-position",840072317),Xj=new $APP.M(null,"label-col",
22
- "label-col",1883390160),Kj=new $APP.M(null,"data-last?","data-last?",-1110326839),Vj=new $APP.M(null,"label-text","label-text",-1566972381),Hj=new $APP.M(null,"data-striped?","data-striped?",906911587),Jj=new $APP.M(null,"data-position-raw","data-position-raw",256144356),ek=new $APP.M(null,"actions-el","actions-el",1486248509),ck=new $APP.M(null,"content-col","content-col",767367449),ik=new $APP.M(null,"dashed","dashed",-1449249319),Gj=new $APP.M(null,"data-index-raw","data-index-raw",491574874),
23
- dk=new $APP.M(null,"item-div","item-div",1630512700),tk=new $APP.M(null,"active","active",1895962068),Oj=new $APP.M(null,"data-index","data-index",1161508385),fk=new $APP.M(null,"label-slot","label-slot",-1755862561),jk=new $APP.M(null,"none","none",1333468478),Rj=new $APP.M(null,"marker-aria","marker-aria",-353426855);var qk="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
24
- $APP.sd(["x-timeline-item-connected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.yg,$APP.X,$APP.W,$APP.X,$APP.Ti,$APP.X,$APP.pi,$APP.Di],null),$APP.ni,!1],null),"x-timeline-item-disconnected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.yg,$APP.X,$APP.W,$APP.X],null),$APP.ni,!1],null),"x-timeline-item-click",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.yg,$APP.X,$APP.W,$APP.X],null),$APP.ni,!0],null)]);
25
- var qj=new $APP.Q(null,5,["pending",$APP.Qg,"active",tk,"complete",$APP.Ii,"error",$APP.ih,"warning",$APP.li],null),sj=new $APP.Q(null,5,[$APP.Qg,"pending",tk,"active",$APP.Ii,"complete",$APP.ih,"error",$APP.li,"warning"],null),Mj=new $APP.Q(null,5,[$APP.Qg,"○",tk,"●",$APP.Ii,"✓",$APP.ih,"✕",$APP.li,"!"],null),uj=new $APP.Q(null,3,["solid",vj,"dashed",ik,"none",jk],null),Dj=new $APP.Q(null,2,["start",$APP.qi,"end",$APP.nh],null);$APP.ja("baredom.exports.x_timeline_item.init",sk);export const init=sk;
2
+ var Uk=function(a){a=$APP.H(Tk,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.wh},Wk=function(a){a=$APP.H(Vk,a);return $APP.n(a)?a:"pending"},Zk=function(a){a=$APP.H(Xk,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Yk},$k=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},al=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.q(isNaN(a))&&a>=0?a:null):null},cl=function(a,
3
+ b){a=$APP.H(bl,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.H(bl,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Gj);return b},dl=function(a,b,c){a=Wk(a);c=c!=null?"Step "+$APP.S.g(c+1)+": ":null;return""+$APP.S.g(c)+$APP.S.g(typeof b==="string"&&$APP.O(b,"")?""+$APP.S.g(b)+" ":null)+"("+$APP.S.g(a)+")"},rl=function(a){var b=$APP.N(a),c=$APP.H(b,el);a=$APP.H(b,$APP.V);var d=$APP.H(b,$APP.Uj),e=$APP.H(b,$APP.Dh),g=$APP.H(b,fl),h=$APP.H(b,gl),k=$APP.H(b,hl),m=$APP.H(b,
4
+ $APP.mi),p=$APP.H(b,il),r=$APP.H(b,$APP.ah),v=$APP.H(b,jl);b=$APP.H(b,$APP.rj);var x=Uk(m),y=$k(b),A=$APP.n($APP.n(r)?y==null:r)?$APP.qk:y!=null?$APP.Ni:$APP.yh;m=function(){var D=A instanceof $APP.M?A.ra:null;switch(D){case "default":return D=$APP.H(kl,x),$APP.n(D)?D:$APP.H(kl,$APP.wh);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.S.g(D));}}();c=al(c);d=cl(k,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.gf([ll,ml,nl,fl,il,$APP.xh,ol,$APP.Xg,$APP.W,
5
+ pl,$APP.yk,$APP.V,ql],[Zk(h),c,m,$APP.J(g),$APP.J(p),$APP.C.h(A,$APP.Ni)?y:null,v,x,e,dl(x,e,c),A,$APP.J(a),d])},sl=function(a){a=$APP.N(a);a=$APP.H(a,$APP.V);return $APP.q(a)},Nl=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
+ p=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),D=document.createElement("slot"),G=document.createElement("div"),I=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
+ d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);k.setAttribute("class","track-col");m.setAttribute("class","marker");p.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");p.appendChild(r);m.appendChild(p);v.setAttribute("class","connector");k.appendChild(m);k.appendChild(v);x.setAttribute("class","content-col");y.setAttribute("class",
8
+ "title");A.setAttribute("class","body");A.appendChild(D);G.setAttribute("class","actions");I.setAttribute("name","actions");G.appendChild(I);x.appendChild(y);x.appendChild(A);x.appendChild(G);d.appendChild(e);d.appendChild(k);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.gf([ll,tl,$APP.Ah,$APP.kk,ul,vl,$APP.ak,wl,$APP.Yh,xl,yl,Jl,Kl,Ll,$APP.gj,Ml],[v,h,m,r,e,k,A,D,b,I,y,x,d,G,p,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},Ol=function(a){return rl($APP.gf([$APP.Uj,
9
+ $APP.Dh,fl,gl,hl,$APP.mi,il,$APP.ah,jl,$APP.rj,el,$APP.V],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},Rl=function(a){var b=Ol(a);if($APP.O($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.N(b);var c=$APP.H(b,$APP.W),d=$APP.H(b,
10
+ ol),e=$APP.H(b,$APP.Xg),g=$APP.H(b,ql),h=$APP.H(b,$APP.V),k=$APP.H(b,nl),m=$APP.H(b,pl),p=Nl(a),r=$APP.N(p);p=$APP.H(r,tl);var v=$APP.H(r,$APP.Ah),x=$APP.H(r,yl);r=$APP.H(r,$APP.kk);a.setAttribute("data-status",Wk(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.Jf(g));a.__xTimelineItemSelfPos=null;$APP.C.h(ll.g(b),Pl)?a.setAttribute("data-connector","dashed"):$APP.C.h(ll.g(b),Ql)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role",
11
+ "listitem");$APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.O(d,"")?d:$APP.O(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);p.textContent=c;r.textContent=k!=null?k:"";$APP.O(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},Sl=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||
12
+ (a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.C.h(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},Tl=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.n(b)?b:Ol(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.H(e,$APP.Xg);e=$APP.H(e,$APP.W);c=new $APP.Q(null,2,[$APP.Xg,Wk(c),$APP.W,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.Mg(c),bubbles:!0,
13
+ composed:!0,cancelable:!0}))},Ul=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.h(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:Ol(a),sl(e)&&(d.preventDefault(),Tl(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:Ol(a);sl(d)&&Tl(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Vl=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
+ $APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},Wl=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
+ return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(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})},Yl=function(){var a=class extends HTMLElement{};a.observedAttributes=Xl;a.prototype.connectedCallback=function(){Nl(this);Vl(this);
18
+ Ul(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);Rl(this);Sl(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:Ol(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.H(e,$APP.Xg);var g=$APP.H(e,$APP.W),h=$APP.H(e,ql);e=$APP.H(e,$APP.V);c=new $APP.Q(null,4,[$APP.Xg,Wk(c),$APP.W,g,$APP.sk,$APP.Jf(h),$APP.Fj,$APP.J(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.Mg(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:Ol(this);Vl(this);this.__xTimelineItemEntered=null;b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.N(c);c=$APP.H(g,$APP.Xg);g=$APP.H(g,$APP.W);c=new $APP.Q(null,2,[$APP.Xg,Wk(c),$APP.W,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.Mg(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.O(c,d))c=$APP.C.h(b,
20
+ "data-position"),c=!$APP.n(c?$APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.C.h(b,"data-position")&&(this.__xTimelineItemParentPos=d),Rl(this));return null};Wl(a.prototype);return a},Zl=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",Yl());return null},jl=new $APP.M(null,"title-raw","title-raw",976469452),vl=new $APP.M(null,"track-col","track-col",629248272),xl=new $APP.M(null,"actions-slot","actions-slot",1424248629),nl=new $APP.M(null,"marker-icon",
21
+ "marker-icon",424963779),ll=new $APP.M(null,"connector","connector",-1517293248),Yk=new $APP.M(null,"solid","solid",-2023773691),yl=new $APP.M(null,"title-el","title-el",-401767816),ol=new $APP.M(null,"title","title",636505583),gl=new $APP.M(null,"connector-raw","connector-raw",106333796),wl=new $APP.M(null,"default-slot","default-slot",-1145647151),ql=new $APP.M(null,"effective-position","effective-position",840072317),ul=new $APP.M(null,"label-col","label-col",1883390160),il=new $APP.M(null,"data-last?",
22
+ "data-last?",-1110326839),tl=new $APP.M(null,"label-text","label-text",-1566972381),fl=new $APP.M(null,"data-striped?","data-striped?",906911587),hl=new $APP.M(null,"data-position-raw","data-position-raw",256144356),Ll=new $APP.M(null,"actions-el","actions-el",1486248509),Jl=new $APP.M(null,"content-col","content-col",767367449),Pl=new $APP.M(null,"dashed","dashed",-1449249319),el=new $APP.M(null,"data-index-raw","data-index-raw",491574874),Kl=new $APP.M(null,"item-div","item-div",1630512700),$l=
23
+ new $APP.M(null,"active","active",1895962068),ml=new $APP.M(null,"data-index","data-index",1161508385),Ml=new $APP.M(null,"label-slot","label-slot",-1755862561),Ql=new $APP.M(null,"none","none",1333468478),pl=new $APP.M(null,"marker-aria","marker-aria",-353426855);var Xl="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
24
+ $APP.zd(["x-timeline-item-connected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.Xg,$APP.X,$APP.W,$APP.X,$APP.sk,$APP.X,$APP.Fj,$APP.Yj],null),$APP.Dj,!1],null),"x-timeline-item-disconnected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Xg,$APP.X,$APP.W,$APP.X],null),$APP.Dj,!1],null),"x-timeline-item-click",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Xg,$APP.X,$APP.W,$APP.X],null),$APP.Dj,!0],null)]);
25
+ var Tk=new $APP.Q(null,5,["pending",$APP.wh,"active",$l,"complete",$APP.gk,"error",$APP.Vh,"warning",$APP.Bj],null),Vk=new $APP.Q(null,5,[$APP.wh,"pending",$l,"active",$APP.gk,"complete",$APP.Vh,"error",$APP.Bj,"warning"],null),kl=new $APP.Q(null,5,[$APP.wh,"○",$l,"●",$APP.gk,"✓",$APP.Vh,"✕",$APP.Bj,"!"],null),Xk=new $APP.Q(null,3,["solid",Yk,"dashed",Pl,"none",Ql],null),bl=new $APP.Q(null,2,["start",$APP.Gj,"end",$APP.ci],null);$APP.ja("baredom.exports.x_timeline_item.init",Zl);export const init=Zl;
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var jE=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.yc(iE,a)?a:"start"},kE=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.Lc(b,2)===0?"start":"end";default:return"start"}},mE=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:inherit;--x-timeline-label-font-size:0.875rem;--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
- d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.Q(null,3,[$APP.kh,b,lE,d,$APP.Jh,e],null);return $APP.l(a,"__xTimelineRefs")},nE=function(a){a=new $APP.Q(null,3,[$APP.Wg,a.getAttribute("label"),$APP.Ai,a.getAttribute("position"),$APP.dh,a.hasAttribute("striped")],null);var b=$APP.N(a);a=$APP.I(b,$APP.Wg);var c=$APP.I(b,$APP.Ai);b=$APP.I(b,$APP.dh);return new $APP.Q(null,3,[$APP.W,$APP.n(a)?a:"",$APP.Ti,jE(c),
4
- $APP.dh,$APP.K(b)],null)},oE=function(a){var b=nE(a);if($APP.O($APP.l(a,"__xTimelineModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.W),d=mE(a);d=$APP.N(d);d=$APP.I(d,lE);a.setAttribute("role","list");$APP.O(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.O(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},pE=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:nE(a);var c=$APP.N(b);b=$APP.I(c,$APP.Ti);
5
- c=$APP.I(c,$APP.dh);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.C.h(e,d-1);g.setAttribute("data-index",""+$APP.T.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",kE(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},qE=function(a){function b(){$APP.n(a.isConnected)&&pE(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
- e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.pg(new $APP.Q(null,3,[$APP.Mg,$APP.n(g)?g:0,$APP.yg,$APP.n(h)?h:"",$APP.W,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){pE(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
- b);$APP.la(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},rE=function(a){var b=$APP.l(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},sE=function(a){Object.defineProperty(a,
8
- "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return jE(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
- "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},uE=function(){var a=class extends HTMLElement{};a.observedAttributes=tE;a.prototype.connectedCallback=function(){mE(this);oE(this);rE(this);qE(this);pE(this);return null};a.prototype.disconnectedCallback=function(){rE(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(oE(this),
10
- pE(this));return null};sE(a.prototype);return a},vE=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",uE());return null},lE=new $APP.M(null,"label-div","label-div",1505730697);var tE=["label","position","striped"];$APP.sd(["x-timeline-select",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.Mg,$APP.zh,$APP.yg,$APP.X,$APP.W,$APP.X],null),$APP.ni,!1],null)]);var iE=new $APP.S(null,new $APP.Q(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ja("baredom.exports.x_timeline.init",vE);export const init=vE;
2
+ var gM=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.K(fM,a)?a:"start"},hM=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.Sc(b,2)===0?"start":"end";default:return"start"}},jM=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:inherit;--x-timeline-label-font-size:0.875rem;--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
+ d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.Q(null,3,[$APP.Yh,b,iM,d,$APP.Pi,e],null);return $APP.l(a,"__xTimelineRefs")},kM=function(a){a=new $APP.Q(null,3,[$APP.Dh,a.getAttribute("label"),$APP.Uj,a.getAttribute("position"),$APP.Ph,a.hasAttribute("striped")],null);var b=$APP.N(a);a=$APP.H(b,$APP.Dh);var c=$APP.H(b,$APP.Uj);b=$APP.H(b,$APP.Ph);return new $APP.Q(null,3,[$APP.W,$APP.n(a)?a:"",$APP.sk,gM(c),
4
+ $APP.Ph,$APP.J(b)],null)},lM=function(a){var b=kM(a);if($APP.O($APP.l(a,"__xTimelineModel"),b)){b=$APP.N(b);var c=$APP.H(b,$APP.W),d=jM(a);d=$APP.N(d);d=$APP.H(d,iM);a.setAttribute("role","list");$APP.O(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.O(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},mM=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:kM(a);var c=$APP.N(b);b=$APP.H(c,$APP.sk);
5
+ c=$APP.H(c,$APP.Ph);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.C.h(e,d-1);g.setAttribute("data-index",""+$APP.S.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",hM(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},nM=function(a){function b(){$APP.n(a.isConnected)&&mM(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
+ e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.Mg(new $APP.Q(null,3,[$APP.sh,$APP.n(g)?g:0,$APP.Xg,$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(){mM(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})},oM=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},pM=function(a){Object.defineProperty(a,
8
+ "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return gM(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})},rM=function(){var a=class extends HTMLElement{};a.observedAttributes=qM;a.prototype.connectedCallback=function(){jM(this);lM(this);oM(this);nM(this);mM(this);return null};a.prototype.disconnectedCallback=function(){oM(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(lM(this),
10
+ mM(this));return null};pM(a.prototype);return a},sM=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",rM());return null},iM=new $APP.M(null,"label-div","label-div",1505730697);var qM=["label","position","striped"];$APP.zd(["x-timeline-select",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.sh,$APP.U,$APP.Xg,$APP.X,$APP.W,$APP.X],null),$APP.Dj,!1],null)]);var fM=new $APP.R(null,new $APP.Q(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ja("baredom.exports.x_timeline.init",sM);export const init=sM;