@vanelsas/baredom 2.2.0 → 2.3.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.
- package/CHANGELOG.md +12 -0
- package/README.md +3 -3
- package/dist/base.js +402 -393
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +11 -11
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +11 -11
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +14 -14
- package/dist/x-button.js +15 -15
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +29 -29
- package/dist/x-chart.js +46 -46
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +8 -8
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.js +41 -41
- package/dist/x-combobox.js +28 -0
- package/dist/x-command-palette.js +25 -25
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +18 -18
- package/dist/x-copy.js +22 -22
- package/dist/x-currency-field.js +21 -21
- package/dist/x-date-picker.js +37 -37
- package/dist/x-divider.js +8 -8
- package/dist/x-drawer.js +11 -11
- package/dist/x-dropdown.js +9 -9
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +7 -7
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.js +9 -9
- package/dist/x-gaussian-blur.js +18 -18
- package/dist/x-grid.js +6 -6
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +18 -18
- package/dist/x-kinetic-font.js +28 -28
- package/dist/x-kinetic-typography.js +37 -37
- package/dist/x-liquid-dock.js +35 -35
- package/dist/x-liquid-fill.js +40 -40
- package/dist/x-liquid-glass.js +36 -36
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +25 -25
- package/dist/x-modal.js +12 -12
- package/dist/x-morph-stack.js +39 -39
- package/dist/x-navbar.js +12 -12
- package/dist/x-neural-glow.js +31 -31
- package/dist/x-notification-center.js +10 -10
- package/dist/x-organic-divider.js +15 -15
- package/dist/x-organic-progress.js +35 -35
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +47 -47
- package/dist/x-popover.js +14 -14
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +11 -11
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +18 -18
- package/dist/x-scroll-story.js +34 -34
- package/dist/x-scroll-timeline.js +45 -45
- package/dist/x-scroll.js +40 -40
- package/dist/x-search-field.js +14 -14
- package/dist/x-select.js +9 -9
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.js +15 -0
- package/dist/x-skeleton.js +1 -6
- package/dist/x-slider.js +16 -16
- package/dist/x-soft-body.js +20 -20
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -5
- package/dist/x-splash.js +13 -13
- package/dist/x-stat.js +9 -9
- package/dist/x-stepper.js +15 -16
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +19 -19
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +17 -17
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +20 -20
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +21 -21
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.js +14 -0
- package/dist/x-typography.js +8 -8
- package/package.json +13 -1
package/dist/x-chart.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
g(d+1,$APP.
|
|
4
|
-
h:c}(),e=function(){var h=a.color;return $APP.n(h)?""+$APP.T.g(a.color):h}(),g=a.data;return $APP.n($APP.ma(g))?new $APP.
|
|
5
|
-
b!=null?b.constructor===Object:!1;return d?$APP.ma(b.data):d}())){var c=
|
|
6
|
-
new $APP.O(null,2,5,$APP.P,[$APP.Jd($APP.
|
|
2
|
+
var CQ=function(a){a:for(;;)if(a=$APP.t(a))a=$APP.w(a);else break a},DQ=function(a,b){return function g(d,e){return new $APP.rd(null,function(){var h=$APP.t(e);if(h){if($APP.Nc(h)){for(var l=$APP.yb(h),m=$APP.z(l),p=$APP.ud(m),q=0;;)if(q<m){var v=function(){var x=d+q,y=$APP.yc(l,q);return a.i?a.i(x,y):a.call(null,x,y)}();v!=null&&p.add(v);q+=1}else break;return $APP.xd(p.aa(),g(d+m,$APP.zb(h)))}m=function(){var x=$APP.u(h);return a.i?a.i(d,x):a.call(null,d,x)}();return m==null?g(d+1,$APP.Zb(h)):$APP.od(m,
|
|
3
|
+
g(d+1,$APP.Zb(h)))}return null},null)}(0,b)},EQ=function(a){return $APP.Bd($APP.Xc(function(b,c){var d=$APP.fl.g?$APP.fl.g(c):$APP.fl.call(null,c);c=$APP.ld.i($APP.Bc(b,d,$APP.fe),c);return $APP.ub(b,d,c)},$APP.rb($APP.Rd),a))},FQ=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:b):b},GQ=function(a,b){var c=function(){var h=a.id;h=$APP.n(h)?""+$APP.T.g(a.id):h;return $APP.n(h)?h:"s"+$APP.T.g(b)}(),d=function(){var h=a.label;h=$APP.n(h)?""+$APP.T.g(a.label):h;return $APP.n(h)?
|
|
4
|
+
h:c}(),e=function(){var h=a.color;return $APP.n(h)?""+$APP.T.g(a.color):h}(),g=a.data;return $APP.n($APP.ma(g))?new $APP.Q(null,4,[$APP.fl,c,$APP.U,d,$APP.Ej,e,$APP.Wh,DQ(function(h,l){return $APP.n($APP.n(l)?l.x!=null&&l.y!=null:l)?new $APP.Q(null,2,[$APP.rl,l.x,$APP.ql,l.y],null):null},$APP.uc(g))],null):null},HQ=function(a){if(typeof a!=="string")return $APP.fe;try{var b=JSON.parse(a);if($APP.n($APP.ma(b)))return $APP.xe(DQ(function(d,e){return GQ(e,d)},$APP.uc(b)));if($APP.n(function(){var d=
|
|
5
|
+
b!=null?b.constructor===Object:!1;return d?$APP.ma(b.data):d}())){var c=GQ(b,0);return $APP.n(c)?new $APP.O(null,1,5,$APP.P,[c],null):$APP.fe}return $APP.fe}catch(d){return $APP.fe}},IQ=function(a){a=a==null?null:$APP.u(a);a=a==null?null:$APP.Wh.g(a);a=a==null?null:$APP.u(a);return $APP.n($APP.n(a)?typeof $APP.rl.g(a)==="string":a)?"category":"numeric"},JQ=function(a){a=$APP.be(function(b){return $APP.ae.i($APP.ql,$APP.Wh.g(b))},$APP.uc([a]));return $APP.Hc(a)?new $APP.O(null,2,5,$APP.P,[0,1],null):
|
|
6
|
+
new $APP.O(null,2,5,$APP.P,[$APP.Jd($APP.oh,a),$APP.Jd($APP.nh,a)],null)},KQ=function(a){var b=IQ(a);if($APP.C.i(b,"category"))return a=$APP.Ld($APP.nh,0,$APP.ae.i(function(c){return $APP.z($APP.Wh.g(c))},a)),new $APP.O(null,2,5,$APP.P,[0,$APP.nh.i(1,a)-1],null);a=$APP.be(function(c){return $APP.ae.i($APP.rl,$APP.Wh.g(c))},$APP.uc([a]));return $APP.Hc(a)?new $APP.O(null,2,5,$APP.P,[0,1],null):new $APP.O(null,2,5,$APP.P,[$APP.Jd($APP.oh,a),$APP.Jd($APP.nh,a)],null)},LQ=function(a,b){return b==null?
|
|
7
7
|
(b=Math.abs(a),b>=1E6?""+$APP.T.g(Math.round(a/1E6))+"M":b>=1E3?""+$APP.T.g(Math.round(a/1E3))+"K":$APP.n(Number.isInteger(a))?""+$APP.T.g(a):a.toFixed(1)):$APP.C.i(b,"int")?""+$APP.T.g(Math.round(a)):$APP.C.i(b,"pct")?""+$APP.T.g(a)+"%":$APP.C.i(b,"abbr")?(b=Math.abs(a),b>=1E9?""+$APP.T.g((a/1E9).toFixed(1))+"B":b>=1E6?""+$APP.T.g((a/1E6).toFixed(1))+"M":b>=1E3?""+$APP.T.g((a/1E3).toFixed(1))+"K":""+$APP.T.g(a)):$APP.C.i(b,"raw")?""+$APP.T.g(a):$APP.n(b.startsWith("fixed:"))?(b=parseInt(b.slice(6),
|
|
8
|
-
10),$APP.n(isNaN(b))?""+$APP.T.g(a):a.toFixed(b)):""+$APP.T.g(a)},
|
|
9
|
-
$APP.n(a.hasAttribute("tooltip"))?a.getAttribute("tooltip"):null,a.getAttribute("y-format"),$APP.n(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.n(a.hasAttribute("grid"))?a.getAttribute("grid"):null,$APP.n(a.hasAttribute("axes"))?a.getAttribute("axes"):null,a.getAttribute("height"),a.getAttribute("cursor"),$APP.n(a.hasAttribute("loading"))?a.getAttribute("loading"):null,a.getAttribute("type"),a.getAttribute("data"),a.getAttribute("x-format")]);var b=$APP.M(a);a=$APP.D(b,
|
|
10
|
-
$APP.D(b,
|
|
11
|
-
2,[
|
|
12
|
-
A=G}A=void 0}return $APP.
|
|
13
|
-
a=""+$APP.T.g(a);e.setAttribute("x1",a);b=""+$APP.T.g(b);e.setAttribute("y1",b);c=""+$APP.T.g(c);e.setAttribute("x2",c);d=""+$APP.T.g(d);e.setAttribute("y2",d);e.setAttribute("stroke","var(--x-chart-grid)");d=""+$APP.T.g(1);e.setAttribute("stroke-opacity",d);e.setAttribute("stroke-width","1");return e},
|
|
14
|
-
"var(--x-chart-axis-label)");e.textContent=c;return e},
|
|
15
|
-
|
|
16
|
-
p=$APP.D(e,
|
|
17
|
-
5)|0);
|
|
18
|
-
1;x=x<=1?(h+m)/2:h+q/(x-1)*(m-h)}else x=
|
|
19
|
-
g=$APP.
|
|
20
|
-
e=l===0?0:(h-e)/l;h=e*.08;g=(e-h*2)/g;b*=g;c=$APP.t(c);l=null;for(var m=0,p=0;;)if(p<m){var q=l.
|
|
21
|
-
(m=$APP.
|
|
22
|
-
$APP.u(a);b=typeof $APP.
|
|
23
|
-
|
|
24
|
-
e){var g=$APP.
|
|
25
|
-
|
|
26
|
-
$APP.n(
|
|
27
|
-
"visible");$APP.n(A)&&(G=""+$APP.T.g(x),A.setAttribute("x1",G));$APP.n(A)&&(G=""+$APP.T.g(x),A.setAttribute("x2",G));v.setAttribute("data-visible","true");A=v.offsetWidth;G=v.offsetHeight;H=H+G+8>g?H-G-8:H-4;x=new $APP.
|
|
28
|
-
x:$APP.
|
|
29
|
-
$APP.
|
|
30
|
-
v:0}();h=$APP.
|
|
31
|
-
":"+$APP.T.g(c));case "ArrowUp":return c.preventDefault(),c=$APP.
|
|
32
|
-
a.clientWidth:0;return a>0?a:400},
|
|
33
|
-
|
|
34
|
-
$APP.
|
|
35
|
-
p.setAttribute("visibility","hidden");c.appendChild(p);b.crosshair=p;p=Array(8);for(x=0;;)if(x<8)G=
|
|
36
|
-
p.setAttribute("style","cursor:crosshair;");$APP.n(h)||
|
|
37
|
-
""+$APP.T.g($APP.z(y))+" series chart"}return $APP.n(A)?
|
|
38
|
-
a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=
|
|
8
|
+
10),$APP.n(isNaN(b))?""+$APP.T.g(a):a.toFixed(b)):""+$APP.T.g(a)},MQ=function(a,b){a=EQ(a);return $APP.xe($APP.Yd(function(c){$APP.Ac(c,0,null);c=$APP.Ac(c,1,null);return $APP.Xc(function(d,e){var g=Math.abs($APP.Rk.g(e)-b);return d==null||g<$APP.yl.g(d)?$APP.lh.m(e,$APP.yl,g):d},null,c)},a))},NQ=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},lR=function(a){a=$APP.zf([OQ,PQ,QQ,RQ,$APP.ul,SQ,TQ,UQ,VQ,WQ,$APP.qi,XQ,YQ],[a.getAttribute("selected"),a.getAttribute("padding"),
|
|
9
|
+
$APP.n(a.hasAttribute("tooltip"))?a.getAttribute("tooltip"):null,a.getAttribute("y-format"),$APP.n(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.n(a.hasAttribute("grid"))?a.getAttribute("grid"):null,$APP.n(a.hasAttribute("axes"))?a.getAttribute("axes"):null,a.getAttribute("height"),a.getAttribute("cursor"),$APP.n(a.hasAttribute("loading"))?a.getAttribute("loading"):null,a.getAttribute("type"),a.getAttribute("data"),a.getAttribute("x-format")]);var b=$APP.M(a);a=$APP.D(b,YQ);var c=
|
|
10
|
+
$APP.D(b,OQ),d=$APP.D(b,PQ),e=$APP.D(b,QQ),g=$APP.D(b,RQ),h=$APP.D(b,$APP.ul),l=$APP.D(b,SQ),m=$APP.D(b,TQ),p=$APP.D(b,UQ),q=$APP.D(b,VQ),v=$APP.D(b,WQ),x=$APP.D(b,$APP.qi);b=$APP.D(b,XQ);b=HQ(b);var y=JQ(b),A=$APP.Ac(y,0,null),B=$APP.Ac(y,1,null);y=[ZQ,$APP.dk,$Q,aR,$APP.ui,bR,cR,$APP.Z,$APP.rm,dR,$APP.X,eR,fR,$APP.Tg,gR,hR];var E=new $APP.O(null,2,5,$APP.P,[A,B],null);a:{if(typeof c==="string"&&(c=c.split(":"),$APP.C.i(2,c.length))){var H=parseInt(c[1],10);c=$APP.n(isNaN(H))?null:new $APP.Q(null,
|
|
11
|
+
2,[iR,c[0],$APP.$h,H],null);break a}c=null}m=m==null?!0:$APP.Ig(m);v=$APP.Ig(v);q=typeof q==="string"&&$APP.I(jR,q)?q:"nearest";x=typeof x==="string"&&$APP.I(kR,x)?x:"line";d=FQ(d,12);h=$APP.Ig(h);e=$APP.Ig(e);a:if($APP.C.i(A,B))A=new $APP.O(null,1,5,$APP.P,[A],null);else{H=B-A;if(H===0)H=1;else{var G=H/5;H=Math.pow(10,Math.floor(Math.log10(G)));G/=H;H*=G<=1?1:G<=2?2:G<=2.5?2.5:G<=5?5:10}B=Math.floor(B/H)*H;A=Math.ceil(A/H)*H;for(var J=$APP.fe;;){if(A>B+H*1E-4){A=J;break a}G=A+H;J=$APP.ld.i(J,A);
|
|
12
|
+
A=G}A=void 0}return $APP.zf(y,[E,c,m,b,v,g,q,x,d,a,h,e,A,FQ(p,180),IQ(b),l==null?!0:$APP.Ig(l)])},mR=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},nR=function(a,b,c,d){var e=$APP.Ac(b,0,null);b=$APP.Ac(b,1,null);e=b-e;return e===0?(c+d)/2:c+(b-a)/e*(d-c)},oR=function(a,b,c,d){var e=$APP.Ac(b,0,null);b=$APP.Ac(b,1,null)-e;return b===0?(c+d)/2:c+(a-e)/b*(d-c)},pR=function(a,b,c){a.setAttribute(b,c)},qR=function(a,b,c,d){var e=NQ("line");
|
|
13
|
+
a=""+$APP.T.g(a);e.setAttribute("x1",a);b=""+$APP.T.g(b);e.setAttribute("y1",b);c=""+$APP.T.g(c);e.setAttribute("x2",c);d=""+$APP.T.g(d);e.setAttribute("y2",d);e.setAttribute("stroke","var(--x-chart-grid)");d=""+$APP.T.g(1);e.setAttribute("stroke-opacity",d);e.setAttribute("stroke-width","1");return e},rR=function(a,b,c,d){var e=NQ("text");a=""+$APP.T.g(a);e.setAttribute("x",a);b=""+$APP.T.g(b);e.setAttribute("y",b);e.setAttribute("text-anchor",d);d=""+$APP.T.g(10);e.setAttribute("font-size",d);e.setAttribute("fill",
|
|
14
|
+
"var(--x-chart-axis-label)");e.textContent=c;return e},sR=function(a){return"var(--x-chart-series-"+$APP.T.g($APP.fd(a,4)+1)+")"},uR=function(a){if($APP.t(a)){var b=$APP.t(a);a=$APP.u(b);b=$APP.w(b);return"M "+$APP.T.g($APP.Rk.g(a))+","+$APP.T.g(tR.g(a))+$APP.T.g($APP.Jd($APP.T,$APP.ae.i(function(c){return" L "+$APP.T.g($APP.Rk.g(c))+","+$APP.T.g(tR.g(c))},b)))}return null},vR=function(a){for(;;){var b=a.lastChild;if($APP.n(b))a.removeChild(b);else break}},AR=function(a,b,c){b=$APP.M(b);var d=$APP.D(b,
|
|
15
|
+
fR);b=$APP.D(b,ZQ);var e=$APP.M(c);c=$APP.D(e,wR);var g=$APP.D(e,xR),h=$APP.D(e,yR);e=$APP.D(e,zR);d=$APP.t(d);for(var l=null,m=0,p=0;;)if(p<m){var q=l.F(null,p);q=nR(q,b,g,e);q=qR(c,q,h,q);a.appendChild(q);p+=1}else if(d=$APP.t(d))$APP.Nc(d)?(m=$APP.yb(d),d=$APP.zb(d),l=m,m=$APP.z(m)):(q=$APP.u(d),l=nR(q,b,g,e),l=qR(c,l,h,l),a.appendChild(l),d=$APP.w(d),l=null,m=0),p=0;else break},BR=function(a,b,c,d){var e=$APP.M(b),g=$APP.D(e,fR),h=$APP.D(e,ZQ);b=$APP.D(e,aR);var l=$APP.D(e,gR),m=$APP.D(e,bR),
|
|
16
|
+
p=$APP.D(e,dR);e=$APP.M(c);var q=$APP.D(e,wR);c=$APP.D(e,xR);var v=$APP.D(e,yR),x=$APP.D(e,zR);g=$APP.t(g);e=null;for(var y=0,A=0;;)if(A<y){var B=e.F(null,A),E=nR(B,h,c,x);B=LQ(B,m);E=rR(q-4,E+4,B,"end");a.appendChild(E);A+=1}else if(g=$APP.t(g))$APP.Nc(g)?(y=$APP.yb(g),g=$APP.zb(g),e=y,y=$APP.z(y)):(y=$APP.u(g),e=nR(y,h,c,x),y=LQ(y,m),e=rR(q-4,e+4,y,"end"),a.appendChild(e),g=$APP.w(g),e=null,y=0),A=0;else break;h=$APP.u(b);if($APP.n(h)){h=$APP.Wh.g(h);m=$APP.z(h);var H=KQ(b),G=$APP.nh.i(1,Math.ceil(m/
|
|
17
|
+
5)|0);CQ($APP.Xd(function(J,R){if($APP.fd(J,G)===0){if($APP.C.i(l,"category")){var aa=$APP.u($APP.w(H))-$APP.u(H);J=aa<=1?(q+v)/2:q+J/(aa-1)*(v-q)}else J=oR($APP.rl.g(R),H,q,v);R=$APP.C.i(l,"category")?""+$APP.T.g($APP.rl.g(R)):LQ($APP.rl.g(R),p);R=rR(J,x+d+4,R,"middle");return a.appendChild(R)}return null},h))}},ER=function(a,b,c,d,e,g){e=$APP.M(e);var h=$APP.D(e,wR),l=$APP.D(e,xR),m=$APP.D(e,yR),p=$APP.D(e,zR);return $APP.Xd(function(q,v){if($APP.C.i(c,"category")){var x=$APP.nh.i(1,$APP.z($APP.Wh.g(a)))-
|
|
18
|
+
1;x=x<=1?(h+m)/2:h+q/(x-1)*(m-h)}else x=oR($APP.rl.g(v),d,h,m);var y=nR($APP.ql.g(v),g,l,p);return $APP.lh.C(v,$APP.Rk,x,$APP.uc([tR,y,CR,b,DR,q]))},$APP.Wh.g(a))},FR=function(a,b,c){b=uR(b);if($APP.n(b)){var d=NQ("path");d.setAttribute("d",b);d.setAttribute("fill","none");d.setAttribute("stroke",c);d.setAttribute("stroke-width","2");d.setAttribute("stroke-linejoin","round");d.setAttribute("stroke-linecap","round");return a.appendChild(d)}return null},GR=function(a,b,c,d){if($APP.t(b)){var e=uR(b),
|
|
19
|
+
g=$APP.xc(b);b=$APP.u(b);d=""+$APP.T.g(e)+" L "+$APP.T.g($APP.Rk.g(g))+","+$APP.T.g(d)+" L "+$APP.T.g($APP.Rk.g(b))+","+$APP.T.g(d)+" Z"}else d=null;$APP.n(d)&&(e=NQ("path"),e.setAttribute("d",d),e.setAttribute("fill",c),e.setAttribute("fill-opacity","0.18"),e.setAttribute("stroke",c),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-linecap","round"),a.appendChild(e))},IR=function(a,b,c,d,e,g){var h=$APP.M(e);e=$APP.D(h,wR);h=$APP.D(h,yR);var l=$APP.z(c);
|
|
20
|
+
e=l===0?0:(h-e)/l;h=e*.08;g=(e-h*2)/g;b*=g;c=$APP.t(c);l=null;for(var m=0,p=0;;)if(p<m){var q=l.F(null,p),v=$APP.Rk.g(q)+-(e/2)+h+b,x=$APP.oh.i(tR.g(q),HR.g(q)),y=Math.abs(tR.g(q)-HR.g(q)),A=q=NQ("rect");v=""+$APP.T.g(v);A.setAttribute("x",v);v=q;x=""+$APP.T.g(x);v.setAttribute("y",x);x=q;v=""+$APP.T.g($APP.nh.i(1,g));x.setAttribute("width",v);x=q;y=""+$APP.T.g($APP.nh.i(0,y));x.setAttribute("height",y);q.setAttribute("fill",d);q.setAttribute("rx","2");a.appendChild(q);p+=1}else if(c=$APP.t(c))$APP.Nc(c)?
|
|
21
|
+
(m=$APP.yb(c),c=$APP.zb(c),l=m,m=$APP.z(m)):(q=$APP.u(c),y=$APP.Rk.g(q)+-(e/2)+h+b,p=$APP.oh.i(tR.g(q),HR.g(q)),m=Math.abs(tR.g(q)-HR.g(q)),q=l=NQ("rect"),y=""+$APP.T.g(y),q.setAttribute("x",y),q=l,p=""+$APP.T.g(p),q.setAttribute("y",p),p=l,q=""+$APP.T.g($APP.nh.i(1,g)),p.setAttribute("width",q),p=l,m=""+$APP.T.g($APP.nh.i(0,m)),p.setAttribute("height",m),l.setAttribute("fill",d),l.setAttribute("rx","2"),a.appendChild(l),c=$APP.w(c),l=null,m=0),p=0;else return null},LR=function(a,b,c,d){if($APP.t(a)){var e=
|
|
22
|
+
$APP.u(a);b=typeof $APP.rl.g(e)==="string"?""+$APP.T.g($APP.rl.g(e)):LQ($APP.rl.g(e),b);var g=$APP.We.i($APP.Rd,$APP.Xd(function(h,l){var m=$APP.P,p=$APP.fl.g(l);l=$APP.Ej.g(l);h=$APP.n(l)?l:sR(h);return new $APP.O(null,2,5,m,[p,h],null)},d));d=$APP.ge(function(h){return new $APP.Q(null,5,[$APP.Ej,$APP.Bc(g,$APP.fl.g(h),sR(CR.i(h,0))),$APP.U,""+$APP.T.g($APP.U.g(h)),$APP.Pi,LQ($APP.ql.g(h),c),$APP.Rk,$APP.Rk.g(h),tR,tR.g(h)],null)},a);return new $APP.Q(null,5,[JR,b,$APP.fj,d,$APP.Rk,$APP.Rk.g(e),
|
|
23
|
+
tR,tR.g(e),KR,$APP.ge(function(h){return new $APP.Q(null,3,[$APP.Rk,$APP.Rk.g(h),tR,tR.g(h),$APP.Ej,$APP.Bc(g,$APP.fl.g(h),sR(CR.i(h,0)))],null)},a)],null)}return null},MR=function(a){var b=$APP.k(a,"tooltip"),c=$APP.k(a,"crosshair");a=$APP.k(a,"dots");$APP.n(b)&&b.setAttribute("data-visible","false");$APP.n(c)&&c.setAttribute("visibility","hidden");if($APP.n(a))for(b=0;;)if(b<8)c=a[b],$APP.n(c)&&c.setAttribute("visibility","hidden"),b+=1;else return null;else return null},NR=function(a,b,c){return $APP.Xc(function(d,
|
|
24
|
+
e){var g=$APP.Rk.g(e)-b,h=tR.g(e)-c;g=g*g+h*h;return d==null||g<$APP.yl.g(d)?$APP.lh.m(e,$APP.yl,g):d},null,a)},PR=function(a,b,c,d,e,g,h,l,m,p,q){$APP.C.i(h,"none")||(b.addEventListener("pointermove",function(v){var x=b.getBoundingClientRect(),y=v.clientX-x.x;v=v.clientY-x.y;$APP.C.i(h,"x")?y=MQ(c,y):(y=NR(c,y,v),y=$APP.n(y)?new $APP.O(null,1,5,$APP.P,[y],null):null);v=y;y=$APP.u(v);if($APP.n(y)){if($APP.n(l)&&(x=LR(v,m,p,q),v=$APP.k(d,"tooltip"),$APP.n($APP.n(v)?x:v))){var A=$APP.M(x),B=$APP.D(A,
|
|
25
|
+
JR),E=$APP.D(A,$APP.fj);x=$APP.D(A,$APP.Rk);var H=$APP.D(A,tR),G=$APP.D(A,KR),J=$APP.k(d,"tooltip-header"),R=$APP.k(d,"tooltip-body"),aa=$APP.k(d,"tooltip-rows"),oa=$APP.k(d,"dots");A=$APP.k(d,"crosshair");$APP.n(J)&&(J.textContent=B);if($APP.n($APP.n(R)?aa:R))for(B=0;;)if(B<8){R=aa[B];if($APP.n(R))if(J=$APP.Ac(E,B,null),$APP.n(J)){R.setAttribute("data-hidden","false");R=R.firstChild;var Aa=$APP.n(R)?R.nextSibling:null,La=$APP.n(Aa)?Aa.nextSibling:null;$APP.n(R)&&(R.style.backgroundColor=$APP.Ej.g(J));
|
|
26
|
+
$APP.n(Aa)&&(Aa.textContent=$APP.U.g(J));$APP.n(La)&&(La.textContent=$APP.Pi.g(J))}else R.setAttribute("data-hidden","true");B+=1}else break;if($APP.n(oa))for(E=0;;)if(E<8)aa=oa[E],$APP.n(aa)&&(B=$APP.Ac(G,E,null),$APP.n(B)?(J=aa,R=""+$APP.T.g($APP.Rk.g(B)),J.setAttribute("cx",R),J=aa,R=""+$APP.T.g(tR.g(B)),J.setAttribute("cy",R),J=aa,B=$APP.Ej.g(B),J.setAttribute("fill",B),aa.setAttribute("visibility","visible")):aa.setAttribute("visibility","hidden")),E+=1;else break;$APP.n(A)&&A.setAttribute("visibility",
|
|
27
|
+
"visible");$APP.n(A)&&(G=""+$APP.T.g(x),A.setAttribute("x1",G));$APP.n(A)&&(G=""+$APP.T.g(x),A.setAttribute("x2",G));v.setAttribute("data-visible","true");A=v.offsetWidth;G=v.offsetHeight;H=H+G+8>g?H-G-8:H-4;x=new $APP.Q(null,2,[OR,$APP.nh.i(8,$APP.oh.i(x+A+12+8>e?x-A-12:x+12,e-A-8)),$APP.mi,$APP.nh.i(8,$APP.oh.i(H,g-G-8))],null);H=$APP.M(x);x=$APP.D(H,OR);H=$APP.D(H,$APP.mi);v.style.left=""+$APP.T.g(x)+"px";v.style.top=""+$APP.T.g(H)+"px"}return mR(a,"x-chart-hover",{seriesId:$APP.fl.g(y),index:DR.g(y),
|
|
28
|
+
x:$APP.rl.g(y),y:$APP.ql.g(y),value:$APP.ql.g(y)})}return null}),b.addEventListener("pointerleave",function(){return $APP.n(l)?MR(d):null}),b.addEventListener("click",function(v){var x=b.getBoundingClientRect();v=NR(c,v.clientX-x.x,v.clientY-x.y);return $APP.n(v)?mR(a,"x-chart-select",{seriesId:$APP.fl.g(v),index:DR.g(v),x:$APP.rl.g(v),y:$APP.ql.g(v),value:$APP.ql.g(v)}):null}))},QR=function(a,b){b.addEventListener("keydown",function(c){var d=c.key,e=lR(a),g=$APP.M(e);e=$APP.D(g,aR);var h=$APP.D(g,
|
|
29
|
+
$APP.X),l=$APP.D(g,$APP.dk);g=$APP.D(g,cR);if($APP.r(h)&&$APP.N(g,"none")&&$APP.t(e)){var m=$APP.xe(e);if(l==null)return $APP.n(function(){var v=new $APP.S(null,new $APP.Q(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null);return v.g?v.g(d):v.call(null,d)}())?(c.preventDefault(),a.setAttribute("selected",""+$APP.T.g($APP.fl.g($APP.u(m)))+":0")):null;g=$APP.z(m);var p=function(){var v=$APP.u(DQ(function(x,y){return $APP.C.i($APP.fl.g(y),iR.g(l))?x:null},m));return $APP.n(v)?
|
|
30
|
+
v:0}();h=$APP.pc(m,p);var q=$APP.z($APP.Wh.g(h));e=$APP.$h.g(l);switch(d){case "ArrowRight":return c.preventDefault(),c=$APP.oh.i(q-1,e+1),a.setAttribute("selected",""+$APP.T.g($APP.fl.g(h))+":"+$APP.T.g(c));case "ArrowLeft":return c.preventDefault(),c=$APP.nh.i(0,e-1),a.setAttribute("selected",""+$APP.T.g($APP.fl.g(h))+":"+$APP.T.g(c));case "ArrowDown":return c.preventDefault(),c=$APP.fd(p+1,g),h=$APP.pc(m,c),c=$APP.oh.i(e,$APP.nh.i(1,$APP.z($APP.Wh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.fl.g(h))+
|
|
31
|
+
":"+$APP.T.g(c));case "ArrowUp":return c.preventDefault(),c=$APP.fd(p+(g-1),g),h=$APP.pc(m,c),c=$APP.oh.i(e,$APP.nh.i(1,$APP.z($APP.Wh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.fl.g(h))+":"+$APP.T.g(c));case "Enter":case " ":return c.preventDefault(),c=$APP.Ac($APP.Wh.g(h),e,null),$APP.n(c)?mR(a,"x-chart-select",{seriesId:$APP.fl.g(h),index:e,x:$APP.rl.g(c),y:$APP.ql.g(c),value:$APP.ql.g(c)}):null;default:return null}}else return null})},RR=function(a){a=$APP.k(a,"container");a=$APP.n(a)?
|
|
32
|
+
a.clientWidth:0;return a>0?a:400},SR=function(a){var b=$APP.k(a,"__xChartRefs");if($APP.n(b)){var c=$APP.k(b,"svg"),d=$APP.k(b,"sr"),e=lR(a),g=$APP.M(e),h=$APP.D(g,$APP.X),l=$APP.D(g,$APP.Tg),m=$APP.D(g,eR),p=$APP.D(g,hR),q=$APP.D(g,gR),v=$APP.D(g,ZQ),x=$APP.D(g,$Q),y=$APP.D(g,aR),A=$APP.D(g,$APP.ui),B=$APP.D(g,bR),E=$APP.D(g,cR),H=$APP.D(g,$APP.Z),G=$APP.D(g,$APP.rm);g=$APP.D(g,dR);var J=RR(b),R=new $APP.Q(null,4,[wR,G+36,xR,G,yR,J-G,zR,l-G-18],null),aa=$APP.M(R),oa=$APP.D(aa,wR),Aa=$APP.D(aa,xR),
|
|
33
|
+
La=$APP.D(aa,yR);aa=$APP.D(aa,zR);var bb=KQ(y),cb=nR(0,v,Aa,aa);pR(c,"viewBox","0 0 "+$APP.T.g(J)+" "+$APP.T.g(l));pR(c,"width",""+$APP.T.g(J));pR(c,"height",""+$APP.T.g(l));vR(c);b.crosshair=null;b.dots=null;if(!$APP.n(A)){$APP.n(p)&&AR(c,e,R);var mb=$APP.xe($APP.be(function(db,da){da=ER(db,da,q,bb,R,v);return $APP.ae.i(function(qa){return $APP.lh.C(qa,$APP.fl,$APP.fl.g(db),$APP.uc([$APP.U,$APP.U.g(db),HR,cb]))},da)},$APP.uc([y,$APP.dg(0,Number.MAX_VALUE)])));CQ($APP.Xd(function(db,da){var qa=function(){var Wb=
|
|
34
|
+
$APP.Ej.g(da);return $APP.n(Wb)?Wb:sR(db)}(),Ma=$APP.de(function(Wb){return $APP.C.i($APP.fl.g(Wb),$APP.fl.g(da))},mb);switch(H){case "bar":return IR(c,db,Ma,qa,R,$APP.z(y));case "area":return GR(c,Ma,qa,cb),FR(c,Ma,qa);default:return FR(c,Ma,qa)}},y));$APP.n(x)&&BR(c,e,R,G);p=NQ("line");pR(p,"x1",""+$APP.T.g(oa));pR(p,"y1",""+$APP.T.g(Aa));pR(p,"x2",""+$APP.T.g(oa));pR(p,"y2",""+$APP.T.g(aa));p.setAttribute("stroke","var(--x-chart-crosshair-color)");p.setAttribute("stroke-width","var(--x-chart-crosshair-width)");
|
|
35
|
+
p.setAttribute("visibility","hidden");c.appendChild(p);b.crosshair=p;p=Array(8);for(x=0;;)if(x<8)G=NQ("circle"),pR(G,"r",""+$APP.T.g(4)),G.setAttribute("stroke","var(--x-chart-tooltip-bg)"),G.setAttribute("stroke-width","2"),G.setAttribute("visibility","hidden"),c.appendChild(G),p[x]=G,x+=1;else break;b.dots=p;p=NQ("rect");pR(p,"x",""+$APP.T.g(oa));pR(p,"y",""+$APP.T.g(Aa));pR(p,"width",""+$APP.T.g($APP.nh.i(0,La-oa)));pR(p,"height",""+$APP.T.g($APP.nh.i(0,aa-Aa)));p.setAttribute("fill","transparent");
|
|
36
|
+
p.setAttribute("style","cursor:crosshair;");$APP.n(h)||PR(a,p,mb,b,J,l,E,m,g,B,y);c.appendChild(p);var Lb=$APP.dk.g(e);$APP.n($APP.n(Lb)?$APP.t(y):Lb)?(a=$APP.u($APP.de(function(db){return $APP.C.i($APP.fl.g(db),iR.g(Lb))},y)),e=$APP.n(a)?$APP.Ac($APP.Wh.g(a),$APP.$h.g(Lb),null):null,d.textContent=$APP.n($APP.n(a)?e:a)?""+$APP.T.g($APP.U.g(a))+" "+$APP.T.g(LQ($APP.ql.g(e),B))+" at "+$APP.T.g(typeof $APP.rl.g(e)==="string"?$APP.rl.g(e):LQ($APP.rl.g(e),g)):""+$APP.T.g($APP.z(y))+" series chart"):d.textContent=
|
|
37
|
+
""+$APP.T.g($APP.z(y))+" series chart"}return $APP.n(A)?MR(b):null}return null},TR=function(){var a=document.createElement("div"),b=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");a.setAttribute("part","tooltip-row");a.setAttribute("data-hidden","true");b.setAttribute("part","tooltip-swatch");c.setAttribute("part","tooltip-label");d.setAttribute("part","tooltip-value");a.appendChild(b);a.appendChild(c);a.appendChild(d);return a},UR=function(a){var b=
|
|
38
|
+
a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=NQ("svg"),g=document.createElement("div"),h=document.createElement("div"),l=document.createElement("div"),m=document.createElement("div"),p=Array(8);c.textContent=":host{display:block;color-scheme:light dark;contain:content;--x-chart-series-1:rgba(0,102,204,0.95);--x-chart-series-2:rgba(16,140,72,0.95);--x-chart-series-3:rgba(190,20,40,0.95);--x-chart-series-4:rgba(204,120,0,0.95);--x-chart-border:var(--x-color-border,rgba(0,0,0,0.1));--x-chart-grid:var(--x-color-border,rgba(0,0,0,0.08));--x-chart-axis-label:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-chart-skeleton:linear-gradient(90deg,rgba(0,0,0,0.06) 25%,rgba(0,0,0,0.03) 50%,rgba(0,0,0,0.06) 75%);--x-chart-tooltip-bg:var(--x-color-bg,rgba(255,255,255,0.96));--x-chart-tooltip-border:var(--x-color-border,rgba(0,0,0,0.12));--x-chart-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.14));--x-chart-focus-ring:var(--x-color-focus-ring,rgba(0,102,204,0.55));--x-chart-radius:var(--x-radius-md,0.75rem);--x-chart-tooltip-radius:var(--x-radius-sm,0.5rem);--x-chart-tooltip-padding:0.45rem 0.7rem;--x-chart-tooltip-font-size:0.8125rem;--x-chart-tooltip-header-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-chart-tooltip-label-color:var(--x-color-text-muted,rgba(0,0,0,0.65));--x-chart-tooltip-value-color:var(--x-color-text,rgba(0,0,0,0.9));--x-chart-tooltip-swatch-size:8px;--x-chart-tooltip-gap:0.35rem;--x-chart-crosshair-color:var(--x-color-border,rgba(0,0,0,0.18));--x-chart-crosshair-width:1;}@media(prefers-color-scheme:dark){:host{--x-chart-series-1:rgba(120,190,255,0.95);--x-chart-series-2:rgba(80,230,150,0.92);--x-chart-series-3:rgba(255,100,110,0.93);--x-chart-series-4:rgba(255,190,60,0.93);--x-chart-border:var(--x-color-border,rgba(255,255,255,0.1));--x-chart-grid:var(--x-color-border,rgba(255,255,255,0.08));--x-chart-axis-label:var(--x-color-text-muted,rgba(255,255,255,0.45));--x-chart-skeleton:linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.03) 50%,rgba(255,255,255,0.06) 75%);--x-chart-tooltip-bg:var(--x-color-bg,rgba(30,30,35,0.97));--x-chart-tooltip-border:var(--x-color-border,rgba(255,255,255,0.12));--x-chart-tooltip-shadow:var(--x-shadow-md,0 4px 20px rgba(0,0,0,0.45));--x-chart-focus-ring:var(--x-color-focus-ring,rgba(120,190,255,0.55));--x-chart-tooltip-header-color:var(--x-color-text-muted,rgba(255,255,255,0.45));--x-chart-tooltip-label-color:var(--x-color-text-muted,rgba(255,255,255,0.6));--x-chart-tooltip-value-color:var(--x-color-text,rgba(255,255,255,0.9));--x-chart-crosshair-color:var(--x-color-border,rgba(255,255,255,0.2));}}[part\x3dcontainer]{position:relative;border:1px solid var(--x-chart-border);border-radius:var(--x-chart-radius);overflow:hidden;outline:none;}[part\x3dcontainer]:focus-visible{box-shadow:0 0 0 3px var(--x-chart-focus-ring);}[part\x3dsvg]{display:block;width:100%;height:auto;overflow:visible;}:host([loading]) [part\x3dcontainer]{background:var(--x-chart-skeleton);background-size:200% 100%;animation:x-chart-shimmer 1.4s ease infinite;}@keyframes x-chart-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}@media(prefers-reduced-motion:reduce){:host([loading]) [part\x3dcontainer]{animation:none;}}[part\x3dsr-only]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dtooltip]{visibility:hidden;opacity:0;position:absolute;pointer-events:none;background:var(--x-chart-tooltip-bg);border:1px solid var(--x-chart-tooltip-border);box-shadow:var(--x-chart-tooltip-shadow);border-radius:var(--x-chart-tooltip-radius);padding:var(--x-chart-tooltip-padding);font-size:var(--x-chart-tooltip-font-size);line-height:1.5;white-space:nowrap;z-index:10;}[part\x3dtooltip][data-visible\x3dtrue]{visibility:visible;opacity:1;}@media(prefers-reduced-motion:no-preference){[part\x3dtooltip]{transition:opacity 0.1s ease,left 0.08s ease,top 0.08s ease;}}[part\x3dtooltip-header]{font-size:0.75rem;color:var(--x-chart-tooltip-header-color);margin-bottom:0.25rem;}[part\x3dtooltip-body]{display:flex;flex-direction:column;gap:var(--x-chart-tooltip-gap);}[part\x3dtooltip-row]{display:flex;align-items:center;gap:0.4rem;}[part\x3dtooltip-row][data-hidden\x3dtrue]{display:none;}[part\x3dtooltip-swatch]{display:inline-block;width:var(--x-chart-tooltip-swatch-size);height:var(--x-chart-tooltip-swatch-size);border-radius:50%;flex-shrink:0;}[part\x3dtooltip-label]{color:var(--x-chart-tooltip-label-color);}[part\x3dtooltip-value]{color:var(--x-chart-tooltip-value-color);font-weight:600;margin-left:auto;padding-left:0.5rem;}";
|
|
39
39
|
d.setAttribute("part","container");d.setAttribute("tabindex","0");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("role","img");g.setAttribute("part","sr-only");g.setAttribute("role","status");g.setAttribute("aria-live","polite");h.setAttribute("part","tooltip");h.setAttribute("role","tooltip");h.setAttribute("aria-hidden","true");h.setAttribute("data-visible","false");l.setAttribute("part","tooltip-header");m.setAttribute("part","tooltip-body");for(var q=0;;)if(q<
|
|
40
|
-
8){var v=
|
|
41
|
-
get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},
|
|
42
|
-
this.setAttribute(c,""+$APP.T.g(e|0)):this.removeAttribute(c)}})},
|
|
43
|
-
"__xChartRefs"))||
|
|
44
|
-
"tooltip");
|
|
45
|
-
-839946224),
|
|
46
|
-
"x-fmt","x-fmt",2073358008),
|
|
47
|
-
|
|
48
|
-
$APP.
|
|
49
|
-
2,[$APP.
|
|
40
|
+
8){var v=TR();m.appendChild(v);p[q]=v;q+=1}else break;h.appendChild(l);h.appendChild(m);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.container=d;c.svg=e;c.sr=g;c.tooltip=h;c["tooltip-header"]=l;c["tooltip-body"]=m;c["tooltip-rows"]=p;c.crosshair=null;c.dots=null;a.__xChartRefs=c;b=new ResizeObserver(function(){return SR(a)});b.observe(d);$APP.k(a,"__xChartRefs").ro=b;QR(a,d)},VR=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
|
|
41
|
+
get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},WR=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},YR=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return FQ(this.getAttribute(c),d)},set:function(e){return e!=null?
|
|
42
|
+
this.setAttribute(c,""+$APP.T.g(e|0)):this.removeAttribute(c)}})},ZR=function(a){Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xChartData");if($APP.n(b))return b;b=this.getAttribute("data");return HQ(b)},set:function(b){this.__xChartData=b;return $APP.n($APP.ma(b))?this.setAttribute("data",JSON.stringify(b)):this.removeAttribute("data")}})},aS=function(){var a=class extends HTMLElement{};a.observedAttributes=$R;a.prototype.connectedCallback=function(){$APP.n($APP.k(this,
|
|
43
|
+
"__xChartRefs"))||UR(this);return SR(this)};a.prototype.disconnectedCallback=function(){var c=$APP.k(this,"__xChartRefs");$APP.n(c)?(c=$APP.k(c,"ro"),c=$APP.n(c)?c.disconnect():null):c=null;return c};a.prototype.attributeChangedCallback=function(){return $APP.n($APP.k(this,"__xChartRefs"))?SR(this):null};var b=a.prototype;VR(b,"type","type");VR(b,"cursor","cursor");VR(b,"selected","selected");YR(b,"height","height",180);YR(b,"padding","padding",12);WR(b,"grid","grid");WR(b,"axes","axes");WR(b,"tooltip",
|
|
44
|
+
"tooltip");WR(b,"disabled","disabled");WR(b,"loading","loading");ZR(b);return a},bS=function(){return $APP.n(customElements.get("x-chart"))?null:customElements.define("x-chart",aS())},OR=new $APP.K(null,"left","left",-399115937),JR=new $APP.K(null,"x-label","x-label",802517907),KR=new $APP.K(null,"dot-pts","dot-pts",1732240900),WQ=new $APP.K(null,"loading-present?","loading-present?",-1827648748),RQ=new $APP.K(null,"y-format-raw","y-format-raw",-1098541692),TQ=new $APP.K(null,"axes-raw","axes-raw",
|
|
45
|
+
-839946224),HR=new $APP.K(null,"y0-baseline","y0-baseline",613579610),ZQ=new $APP.K(null,"y-domain","y-domain",-969203007),gR=new $APP.K(null,"x-kind","x-kind",693167455),UQ=new $APP.K(null,"height-raw","height-raw",-867301006),OQ=new $APP.K(null,"selected-raw","selected-raw",-1471626848),aR=new $APP.K(null,"series","series",600710694),XQ=new $APP.K(null,"data-raw","data-raw",822066711),eR=new $APP.K(null,"tooltip?","tooltip?",-642753154),iR=new $APP.K(null,"series-id","series-id",226875035),dR=new $APP.K(null,
|
|
46
|
+
"x-fmt","x-fmt",2073358008),PQ=new $APP.K(null,"padding-raw","padding-raw",-847772255),tR=new $APP.K(null,"py","py",1397985916),YQ=new $APP.K(null,"x-format-raw","x-format-raw",-1683657190),$Q=new $APP.K(null,"axes?","axes?",1786285669),hR=new $APP.K(null,"grid?","grid?",-288406689),VQ=new $APP.K(null,"cursor-raw","cursor-raw",-1169819084),cR=new $APP.K(null,"cursor","cursor",1011937484),QQ=new $APP.K(null,"tooltip-present?","tooltip-present?",-2098824029),bR=new $APP.K(null,"y-fmt","y-fmt",2092412811),
|
|
47
|
+
xR=new $APP.K(null,"y0","y0",111454807),zR=new $APP.K(null,"y1","y1",589123466),DR=new $APP.K(null,"i","i",-1386841315),yR=new $APP.K(null,"x1","x1",-1863922247),wR=new $APP.K(null,"x0","x0",410843387),CR=new $APP.K(null,"si","si",793409822),fR=new $APP.K(null,"y-ticks","y-ticks",-843622722),SQ=new $APP.K(null,"grid-present?","grid-present?",-468948562);var $R="type data height padding x-format y-format grid axes tooltip cursor disabled loading selected".split(" "),kR=new $APP.S(null,new $APP.Q(null,3,["bar",null,"area",null,"line",null],null),null),jR=new $APP.S(null,new $APP.Q(null,3,["none",null,"x",null,"nearest",null],null),null);
|
|
48
|
+
$APP.zf([$APP.dk,$APP.Fj,new $APP.K(null,"axes","axes",1970866440),new $APP.K(null,"grid","grid",402978600),cR,$APP.Z,$APP.el,$APP.rm,new $APP.K(null,"tooltip","tooltip",-1809677058),$APP.Tg,$APP.Wh],[new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"selected"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"axes"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"grid"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"cursor"],null),new $APP.Q(null,
|
|
49
|
+
2,[$APP.Z,$APP.Y,$APP.vk,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"loading"],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.vk,"padding"],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"tooltip"],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.vk,"height"],null),new $APP.Q(null,1,[$APP.Z,$APP.Ji],null)]);$APP.ha("baredom.exports.x_chart.init",bS);export const init=bS;
|
package/dist/x-checkbox.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=$APP.D(b,$APP.
|
|
4
|
-
$APP.k(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=
|
|
5
|
-
h=$APP.
|
|
6
|
-
d=$APP.
|
|
7
|
-
composed:!0,cancelable:!1}))):null},
|
|
8
|
-
b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return
|
|
9
|
-
"checked","checked");
|
|
10
|
-
e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}
|
|
11
|
-
d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.k(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.k(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return
|
|
12
|
-
function(){return
|
|
2
|
+
var AB=function(a,b,c){return a.setAttribute(b,c)},BB=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},DB=function(a){a=$APP.zf([$APP.gl,$APP.ul,$APP.Ih,$APP.Yh,$APP.ij,CB,$APP.Bj,$APP.jm,$APP.Nj,$APP.sj],[a.getAttribute("name"),$APP.Ig(a.getAttribute("disabled")),$APP.Ig(a.getAttribute("required")),a.getAttribute("aria-labelledby"),$APP.Ig(a.getAttribute("checked")),$APP.Ig(a.getAttribute("indeterminate")),$APP.Ig(a.getAttribute("readonly")),a.getAttribute("value"),a.getAttribute("aria-label"),
|
|
3
|
+
a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=$APP.D(b,$APP.Nj);var c=$APP.D(b,$APP.sj),d=$APP.D(b,$APP.gl),e=$APP.D(b,$APP.ul),g=$APP.D(b,$APP.Ih),h=$APP.D(b,$APP.Yh),l=$APP.D(b,$APP.ij),m=$APP.D(b,CB),p=$APP.D(b,$APP.Bj);b=$APP.D(b,$APP.jm);l=$APP.F(l);m=$APP.F(m);g=$APP.F(g);return $APP.zf([$APP.Fl,$APP.hi,$APP.bi,$APP.Im,$APP.uj,$APP.Oh,$APP.qj,$APP.Pi,$APP.Uj,$APP.Em,$APP.wl,$APP.X],[m,g,m?"mixed":l?"true":"false",$APP.F(p),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},EB=function(a){var b=
|
|
4
|
+
$APP.k(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=DB(a);var d=$APP.X.g(b),e=$APP.uj.g(b),g=$APP.Fl.g(b);AB(c,"aria-checked",$APP.bi.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");AB(c,"aria-required",$APP.n($APP.hi.g(b))?"true":"false");AB(c,"aria-readonly",$APP.n($APP.Im.g(b))?"true":"false");var h=$APP.wl.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.Uj.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",h):c.removeAttribute("aria-labelledby");
|
|
5
|
+
h=$APP.Em.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");BB(a,"data-checked",e);BB(a,"data-indeterminate",g);BB(a,"data-disabled",d);a=$APP.k(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.Pi.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},FB=function(a){var b=DB(a),c=$APP.X.g(b),d=$APP.Im.g(b);if($APP.n($APP.n(c)?c:d))return null;c=$APP.uj.g(b);
|
|
6
|
+
d=$APP.Fl.g(b);d=$APP.n(d)?new $APP.Q(null,2,[$APP.uj,!0,$APP.Fl,!1],null):new $APP.Q(null,2,[$APP.uj,$APP.r(c),$APP.Fl,!1],null);var e=$APP.uj.g(d);b=$APP.Pi.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.r(c.defaultPrevented)?(BB(a,"checked",e),BB(a,"indeterminate",$APP.Fl.g(d)),EB(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,checked:e},bubbles:!0,
|
|
7
|
+
composed:!0,cancelable:!1}))):null},GB=function(a){return function(){return FB(a)}},HB=function(a){return function(b){var c=b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),FB(a)):null}},IB=function(a){var b=$APP.k(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.k(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.k(b,"control");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},JB=function(a,
|
|
8
|
+
b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return BB(this,c,$APP.F(d))}})},KB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?AB(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},MB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=LB;JB(b,
|
|
9
|
+
"checked","checked");JB(b,"indeterminate","indeterminate");JB(b,"disabled","disabled");JB(b,"readOnly","readonly");JB(b,"required","required");KB(b,"name","name");KB(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:var(--x-color-border,#6b7280);--x-checkbox-border-radius:4px;--x-checkbox-bg:var(--x-color-surface,#ffffff);--x-checkbox-bg-checked:var(--x-color-primary,#2563eb);--x-checkbox-bg-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-border-checked:var(--x-color-primary,#2563eb);--x-checkbox-border-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-check-color:var(--x-color-surface,#ffffff);--x-checkbox-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:var(--x-color-border,#9ca3af);--x-checkbox-bg:var(--x-color-surface,#1f2937);--x-checkbox-bg-checked:var(--x-color-primary,#3b82f6);--x-checkbox-bg-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-border-checked:var(--x-color-primary,#3b82f6);--x-checkbox-border-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
|
|
10
|
+
e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}IB(this);c=$APP.k(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=GB(this),e=HB(this),g={click:d,keydown:e},c.addEventListener("click",
|
|
11
|
+
d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.k(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.k(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return EB(this)};b.disconnectedCallback=function(){return IB(this)};b.attributeChangedCallback=
|
|
12
|
+
function(){return EB(this)};b.formDisabledCallback=function(c){BB(this,"disabled",$APP.F(c));return EB(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return EB(this)};return a},NB=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",MB())},CB=new $APP.K(null,"indeterminate-present?","indeterminate-present?",-1714683438);var LB="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Qd(["x-checkbox-change-request",new $APP.Q(null,2,[$APP.Rl,!0,$APP.V,new $APP.Q(null,3,[$APP.Pi,$APP.Y,$APP.jk,$APP.Sj,$APP.Bl,$APP.Sj],null)],null),"x-checkbox-change",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,new $APP.Q(null,2,[$APP.Pi,$APP.Y,$APP.wm,$APP.Sj],null)],null)]);$APP.ha("baredom.exports.x_checkbox.init",NB);export const init=NB;
|
package/dist/x-chip.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},
|
|
4
|
-
|
|
5
|
-
"true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},
|
|
6
|
-
b);$APP.
|
|
7
|
-
enumerable:!0,configurable:!0})},
|
|
2
|
+
var vs=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.ki);a=$APP.D(b,$APP.jm);var d=$APP.D(b,ts);b=$APP.D(b,$APP.ul);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.i(d,"false")||$APP.C.i(d,"0"));return new $APP.Q(null,4,[$APP.U,c,$APP.Pi,typeof a==="string"&&a.length>0?a:c,us,d,$APP.X,$APP.F(b)],null)},ws=function(a){var b=$APP.M(a);a=$APP.D(b,us);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},xs=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
|
|
3
|
+
a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},ys=function(a){var b=vs(new $APP.Q(null,4,[$APP.ki,a.getAttribute("label"),$APP.jm,a.getAttribute("value"),ts,a.getAttribute("removable"),$APP.ul,a.hasAttribute("disabled")],null));if($APP.n(ws(b))){var c=$APP.M(b);b=$APP.D(c,$APP.Pi);c=$APP.D(c,$APP.U);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.r(b.defaultPrevented)?
|
|
4
|
+
xs(a):null}else a=null;return a},As=function(a){var b=vs(new $APP.Q(null,4,[$APP.ki,a.getAttribute("label"),$APP.jm,a.getAttribute("value"),ts,a.getAttribute("removable"),$APP.ul,a.hasAttribute("disabled")],null)),c=$APP.M(b),d=$APP.D(c,$APP.U),e=$APP.D(c,us);c=$APP.D(c,$APP.X);var g=$APP.k(a,"__xChipRefs"),h=$APP.vm.g(g);g=zs.g(g);b=ws(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
|
|
5
|
+
"true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},Bs=function(a){function b(e){var g=e.key;return $APP.C.i(g,"Backspace")||$APP.C.i(g,"Delete")?(e.preventDefault(),ys(a)):null}function c(){return ys(a)}var d=zs.g($APP.k(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
|
|
6
|
+
b);$APP.ja(a,"__xChipHandlers",{click:c,keydown:b})},Cs=function(a){var b=$APP.k(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.k(a,"__xChipRefs"),d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=zs.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},Ds=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
|
|
7
|
+
enumerable:!0,configurable:!0})},Es=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Fs=function(a){Ds(a,"label");Ds(a,"value");Es(a,"removable");Es(a,"disabled")},Hs=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Gs}});b.connectedCallback=function(){if(!$APP.n($APP.k(this,
|
|
8
8
|
"__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),l=document.createElement("span");d.textContent=":host{--x-chip-bg:var(--x-color-surface,rgba(0,0,0,0.08));--x-chip-color:var(--x-color-text,rgba(0,0,0,0.80));--x-chip-border:var(--x-color-border,rgba(0,0,0,0.12));--x-chip-radius:var(--x-radius-full, 9999px);--x-chip-font-size:var(--x-font-size-sm, 0.875rem);--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:var(--x-color-surface,rgba(255,255,255,0.10));--x-chip-border:var(--x-color-border,rgba(255,255,255,0.16));--x-chip-color:var(--x-color-text,rgba(255,255,255,0.88));}}:host(:focus-visible){outline:2px solid var(--x-color-focus-ring,currentColor);outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
|
|
9
|
-
e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");l.setAttribute("aria-hidden","true");l.textContent="×";h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.
|
|
10
|
-
d,e){return $APP.N(d,e)?$APP.n($APP.k(this,"__xChipRefs"))?
|
|
9
|
+
e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");l.setAttribute("aria-hidden","true");l.textContent="×";h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.Q(null,4,[$APP.yi,c,$APP.xj,e,$APP.vm,g,zs,h],null)}Cs(this);Bs(this);return As(this)};b.disconnectedCallback=function(){return Cs(this)};b.attributeChangedCallback=function(c,
|
|
10
|
+
d,e){return $APP.N(d,e)?$APP.n($APP.k(this,"__xChipRefs"))?As(this):null:null};Fs(b);return a},Is=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",Hs());return null},ts=new $APP.K(null,"removable-raw","removable-raw",1718453796),zs=new $APP.K(null,"remove-btn","remove-btn",843430290),us=new $APP.K(null,"removable?","removable?",1886800649);var Gs=["label","value","removable","disabled"];$APP.Qd(["x-chip-remove",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Pi,$APP.Y,$APP.U,$APP.Y],null),$APP.Rl,!0],null)]);$APP.ha("baredom.exports.x_chip.init",Is);export const init=Is;
|
package/dist/x-collapse.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b.offsetHeight;var d=""+$APP.T.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},
|
|
4
|
-
"px";a=
|
|
5
|
-
$APP.n(d)?"true":"false");if($APP.n(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},
|
|
6
|
-
a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},
|
|
7
|
-
$APP.k(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},
|
|
8
|
-
b)):b=this.removeAttribute("header");return b}})},
|
|
9
|
-
"observedAttributes",{get:function(){return
|
|
2
|
+
var $4=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},a5=function(a){a=a.getAttribute("duration-ms");return $APP.n(a)?(a=parseInt(a,10),$APP.n(isNaN(a))?300:$APP.nh.i(0,$APP.oh.i(2E3,a))):300},b5=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n($4()))return b.style.height="",b.style.transition="";a=a5(a);b.style.height="0px";
|
|
3
|
+
b.offsetHeight;var d=""+$APP.T.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},c5=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n($4()))return b.style.height="0px",b.style.transition="";var d=""+$APP.T.g(b.offsetHeight)+
|
|
4
|
+
"px";a=a5(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},d5=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(b,"trigger");b=$APP.k(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.n(a)?a:"";c.setAttribute("aria-expanded",
|
|
5
|
+
$APP.n(d)?"true":"false");if($APP.n(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},e5=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-collapse-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),
|
|
6
|
+
a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},f5=function(a){return function(){return e5(a,"pointer")}},g5=function(a){return function(b){var c=b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),e5(a,"keyboard")):null}},h5=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(a,"__xCollapseHandlers");if($APP.n(c)){b=$APP.k(b,"trigger");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",
|
|
7
|
+
$APP.k(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},i5=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},j5=function(a){Object.defineProperty(a,"header",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("header");return $APP.n(b)?b:""},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.T.g(b),b=this.setAttribute("header",
|
|
8
|
+
b)):b=this.removeAttribute("header");return b}})},k5=function(a){Object.defineProperty(a,"durationMs",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("duration-ms");return $APP.n(b)?(b=parseInt(b,10),$APP.n(isNaN(b))?300:b):300},set:function(b){typeof b==="number"&&$APP.r(isNaN(b))?(b=""+$APP.T.g(Math.round(b)),b=this.setAttribute("duration-ms",b)):b=this.removeAttribute("duration-ms");return b}})},m5=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
|
|
9
|
+
"observedAttributes",{get:function(){return l5}});i5(b,"open","open");i5(b,"disabled","disabled");j5(b);k5(b);b.toggle=function(){return e5(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCollapseRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("button"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("div"),p=document.createElement("div"),
|
|
10
10
|
q=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
|
|
11
11
|
e.setAttribute("part","container");g.setAttribute("part","trigger");g.setAttribute("type","button");g.setAttribute("id","trigger");g.setAttribute("aria-controls","panel");h.setAttribute("part","header-text");l.setAttribute("part","chevron");l.setAttribute("aria-hidden","true");m.setAttribute("part","content");m.setAttribute("id","panel");m.setAttribute("role","region");m.setAttribute("aria-labelledby","trigger");p.setAttribute("part","content-inner");q.setAttribute("name","content");l.textContent=
|
|
12
|
-
"▼";g.appendChild(h);g.appendChild(l);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}
|
|
13
|
-
function(c){a:{if($APP.n($APP.k(this,"__xCollapseRefs"))&&(
|
|
12
|
+
"▼";g.appendChild(h);g.appendChild(l);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}h5(this);c=$APP.k(this,"__xCollapseRefs");$APP.n(c)&&(c=$APP.k(c,"trigger"),d=f5(this),e=g5(this),g={click:d,keydown:e},c.addEventListener("click",d),c.addEventListener("keydown",e),this.__xCollapseHandlers=g);return d5(this)};b.disconnectedCallback=function(){return h5(this)};b.attributeChangedCallback=
|
|
13
|
+
function(c){a:{if($APP.n($APP.k(this,"__xCollapseRefs"))&&(d5(this),$APP.C.i(c,"open"))){c=$APP.k(this,"__xCollapseRefs");c=$APP.n(c)?$APP.k(c,"content"):null;var d=this.hasAttribute("open");c=$APP.n(c)?$APP.n(d)?b5(this,c):c5(this,c):null;break a}c=null}return c};return a},n5=function(){return $APP.n(customElements.get("x-collapse"))?null:customElements.define("x-collapse",m5())};var l5=["open","disabled","header","duration-ms"];$APP.Qd(["x-collapse-toggle",new $APP.Q(null,2,[$APP.Rl,!0,$APP.V,new $APP.Q(null,2,[$APP.Ol,$APP.Sj,$APP.$k,$APP.Y],null)],null),"x-collapse-change",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,new $APP.Q(null,1,[$APP.Ol,$APP.Sj],null)],null)]);$APP.ha("baredom.exports.x_collapse.init",n5);export const init=n5;
|