@vanelsas/baredom 3.2.0 → 3.4.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 +60 -0
- package/README.md +79 -168
- package/custom-elements.json +3441 -3399
- package/dist/baredom.d.ts +91 -91
- package/dist/base.js +424 -416
- package/dist/integrity.json +108 -108
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +9 -9
- package/dist/x-avatar.js +13 -13
- package/dist/x-badge.js +8 -8
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +13 -13
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +36 -36
- package/dist/x-cancel-dialogue.js +13 -13
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +33 -33
- package/dist/x-chart.js +47 -47
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +26 -26
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.js +43 -43
- package/dist/x-combobox.d.ts +1 -0
- package/dist/x-combobox.js +32 -30
- package/dist/x-command-palette.js +27 -27
- package/dist/x-confetti.js +23 -23
- package/dist/x-container.js +5 -5
- package/dist/x-context-menu.js +19 -19
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.d.ts +6 -4
- package/dist/x-date-picker.js +42 -39
- package/dist/x-divider.js +10 -10
- package/dist/x-drawer.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +5 -5
- package/dist/x-file-upload.js +23 -23
- package/dist/x-form-field.js +14 -14
- package/dist/x-form.js +11 -10
- package/dist/x-gaussian-blur.js +12 -12
- package/dist/x-grid.js +6 -6
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +17 -17
- package/dist/x-kbd.js +11 -11
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +21 -21
- package/dist/x-kinetic-typography.js +31 -31
- package/dist/x-liquid-dock.js +30 -30
- package/dist/x-liquid-fill.js +37 -37
- package/dist/x-liquid-glass.js +32 -32
- package/dist/x-menu-item.js +7 -7
- package/dist/x-menu.js +9 -9
- package/dist/x-metaball-cursor.js +22 -22
- package/dist/x-modal.js +9 -9
- package/dist/x-morph-stack.js +37 -37
- package/dist/x-multi-combobox.d.ts +6 -5
- package/dist/x-multi-combobox.js +38 -35
- package/dist/x-navbar.js +12 -12
- package/dist/x-neural-glow.js +28 -28
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +16 -16
- package/dist/x-organic-progress.js +31 -31
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +20 -20
- package/dist/x-pagination.js +14 -14
- package/dist/x-particle-button.js +42 -42
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +11 -11
- package/dist/x-range-slider.js +26 -26
- package/dist/x-rating.js +23 -23
- package/dist/x-ripple-effect.js +9 -9
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +16 -16
- package/dist/x-scroll-story.js +29 -29
- package/dist/x-scroll-timeline.js +44 -44
- package/dist/x-scroll.js +33 -33
- package/dist/x-search-field.d.ts +1 -0
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.d.ts +2 -0
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +15 -15
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +14 -14
- package/dist/x-soft-body.js +18 -18
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +3 -3
- package/dist/x-splash.js +12 -12
- package/dist/x-split-pane.js +14 -14
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +13 -13
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +6 -6
- package/dist/x-table-cell.js +18 -18
- package/dist/x-table-row.js +8 -8
- 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 +8 -8
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +12 -12
- package/dist/x-trace-history.js +123 -123
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +61 -61
- package/package.json +3 -1
package/dist/x-tabs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b.tagName)},$APP.Cc(a.children)))},
|
|
4
|
-
$APP.U(a,"selected"))},
|
|
5
|
-
h),m=$APP.z.j(
|
|
6
|
-
|
|
7
|
-
"role","tablist");$APP.T(c,"aria-orientation",$APP.
|
|
8
|
-
var k=
|
|
9
|
-
null;break a}k=null}return k}function c(d){d.stopPropagation();return
|
|
10
|
-
$APP.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);
|
|
11
|
-
null},
|
|
12
|
-
$APP.he(["value-change-request",new $APP.M(null,2,[$APP.
|
|
2
|
+
var ET=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Si);var c=$APP.C(b,$APP.Ws),d=$APP.C(b,DT),e=$APP.C(b,$APP.ek);b=$APP.C(b,$APP.iu);c=$APP.cd(kha,c)?c:"horizontal";d=$APP.cd(lha,d)?d:"auto";return new $APP.M(null,5,[$APP.Si,a,$APP.Ws,c,DT,d,$APP.ek,e,$APP.iu,$APP.D(b)],null)},FT=function(a){return new $APP.M(null,5,[$APP.Si,a.getAttribute("value"),$APP.Ws,a.getAttribute("orientation"),DT,a.getAttribute("activation"),$APP.ek,a.getAttribute("label"),$APP.iu,a.hasAttribute("loop")],null)},GT=function(a){return $APP.$e($APP.Ce(function(b){return $APP.z.j("X-TAB",
|
|
3
|
+
b.tagName)},$APP.Cc(a.children)))},HT=function(a){return $APP.p(a.hasAttribute("disabled"))},IT=function(a){return a.getAttribute("value")},mha=function(a){return $APP.ne(function(b){return HT(b)?b:null},a)},JT=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.T(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.n(b?c:b)&&$APP.U(a,"value"))},KT=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?$APP.T(a,"selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&
|
|
4
|
+
$APP.U(a,"selected"))},LT=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&$APP.T(a,"tabindex",b)},MT=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.I(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?$APP.U(a,"hidden"):$APP.T(a,"hidden","")))},NT=function(a){var b=GT(a),c=a.getAttribute("value"),d=$APP.fh($APP.re(IT,b));$APP.n($APP.n(c)?$APP.cd(d,c):c)||(c=mha(b),c=$APP.n(c)?IT(c):null);if($APP.n(c)){a:{d=$APP.q(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.C(null,
|
|
5
|
+
h),m=$APP.z.j(IT(k),c);KT(k,m);m&&HT(k)?LT(k,"0"):LT(k,"-1");h+=1}else if(d=$APP.q(d))$APP.Yc(d)?(e=$APP.Db(d),d=$APP.Eb(d),k=e,f=$APP.w(e),e=k):(k=$APP.u(d),e=$APP.z.j(IT(k),c),KT(k,e),e&&HT(k)?LT(k,"0"):LT(k,"-1"),d=$APP.v(d),e=null,f=0),h=0;else break a}a:for(b=$APP.q(b),d=null,f=e=0;;)if(f<e)k=d.C(null,f),MT(k,$APP.z.j(IT(k),c)),f+=1;else if(b=$APP.q(b))d=b,$APP.Yc(d)?(b=$APP.Db(d),e=$APP.Eb(d),d=b,k=$APP.w(b),b=e,e=k):(k=$APP.u(d),MT(k,$APP.z.j(IT(k),c)),b=$APP.v(d),d=null,e=0),f=0;else break a;
|
|
6
|
+
JT(a,c)}return c},OT=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.I(c,b):b)&&$APP.fj(a,"value-change-request",{value:b,previousValue:$APP.n(c)?c:""})?(JT(a,b),NT(a),$APP.dj(a,"value-change",{value:$APP.n(b)?b:""})):null},PT=function(a,b,c){b=$APP.w(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},QT=function(a,b,c){var d=a-1;b=$APP.w(b)-1;return d>=0?d:$APP.n(c)?b:a},RT=function(a){var b=ET(FT(a));if($APP.I(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");if($APP.n(c)){$APP.T(c,
|
|
7
|
+
"role","tablist");$APP.T(c,"aria-orientation",$APP.Ws.i(b));var d=$APP.ek.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.T(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return NT(a)},nha=function(a){var b=new MutationObserver(function(){return RT(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.Q(a,"__xTabsObserver",b)},ST=function(a){function b(d){a:{var e=$APP.$e($APP.Ce(HT,GT(a))),f=ET(FT(a)),h=$APP.Ws.i(f);
|
|
8
|
+
var k=DT.i(f);f=$APP.iu.i(f);var m=d.key,r=e.indexOf(document.activeElement);if(r>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowRight")?PT(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowLeft")?QT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowDown")?PT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowUp")?QT(r,e,f):$APP.z.j(m,"Home")?0:$APP.z.j(m,"End")?$APP.w(e)-1:null,h!=null)){d.preventDefault();d=$APP.B(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.z.j(k,"auto")?OT(a,IT(d)):null:
|
|
9
|
+
null;break a}k=null}return k}function c(d){d.stopPropagation();return OT(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTabsOnTabSelect",c);$APP.Q(a,"__xTabsOnKeydown",b);nha(a)},oha=function(a){if($APP.Ti(a,"__xTabsInitialized"))return ST(a),RT(a);if(!$APP.Ti(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),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);}";
|
|
10
|
+
$APP.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);ST(a);$APP.Ui(a,"__xTabsInitialized")}RT(a);return a},pha=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.n(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.n(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.n(a)?a.disconnect():null},qha=function(a,b,c,d){return $APP.I(c,d)&&$APP.Ti(a,"__xTabsInitialized")?RT(a):
|
|
11
|
+
null},sha=function(a){return $APP.sj(a,rha)},TT=function(){return $APP.xi("x-tabs",new $APP.M(null,5,[$APP.hi,tha,$APP.fi,oha,$APP.ci,pha,$APP.bi,qha,$APP.gi,sha],null))},DT=new $APP.F(null,"activation","activation",2128521072);var tha=["value","orientation","activation","label","loop"],kha=new $APP.ah(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),lha=new $APP.ah(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),rha=new $APP.M(null,1,[$APP.Si,new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null)],null);
|
|
12
|
+
$APP.he(["value-change-request",new $APP.M(null,2,[$APP.Pt,!0,$APP.V,new $APP.M(null,2,[$APP.Si,$APP.X,$APP.ss,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_tabs.init",TT);export const init=TT;
|
package/dist/x-text-area.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var n7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},o7=function(a,b,c){
|
|
3
|
-
|
|
4
|
-
$APP.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
k
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var n7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},o7=function(a,b,c){$APP.Aj(b,c,new $APP.M(null,4,[$APP.tj,a.hasAttribute("error"),$APP.uj,a.getAttribute("error"),$APP.vj,a.hasAttribute("required"),$APP.wj,$APP.z.j(c.value,"")],null))},w7=function(a){a=$APP.Eg([p7,$APP.Wj,$APP.Tj,$APP.In,$APP.yq,q7,$APP.Xj,r7,$APP.Yj,$APP.ql,$APP.Uj,$APP.Zj,s7,$APP.Vj],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),
|
|
3
|
+
a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,s7),d=$APP.C(b,$APP.Vj),e=$APP.C(b,p7),f=$APP.C(b,$APP.Wj),h=$APP.C(b,$APP.Tj),k=$APP.C(b,$APP.In),m=$APP.C(b,$APP.yq),r=$APP.C(b,q7);a=$APP.C(b,$APP.Xj);var t=$APP.C(b,r7),x=$APP.C(b,$APP.Yj),y=$APP.C(b,
|
|
4
|
+
$APP.ql),A=$APP.C(b,$APP.Uj);b=$APP.C(b,$APP.Zj);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",N=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.cd(Hra,e)?e:"vertical";r=n7(r);return $APP.Eg([$APP.vj,$APP.vl,$APP.dk,$APP.Np,$APP.ck,$APP.Si,t7,$APP.et,$APP.tj,u7,$APP.Bt,v7,$APP.Rq,$APP.ek,$APP.uj,$APP.gk,$APP.fk],[x,y,d,m,
|
|
5
|
+
h,A,c,f,k,e,H,n7(t),$APP.n(r)?r:3,N,E,$APP.n(b)?b:"",$APP.D(a)])},x7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},y7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.gk),m=$APP.C(h,$APP.fk),r=$APP.C(h,$APP.vj),t=$APP.C(h,$APP.vl),x=$APP.C(h,$APP.dk),y=$APP.C(h,t7),A=$APP.C(h,$APP.ck),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.Rq);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=
|
|
6
|
+
t;d.required=r;d.rows=h;d.autocomplete=k;$APP.n(H)?$APP.T(d,"maxlength",""+$APP.P.i(H)):$APP.U(d,"maxlength");$APP.n(y)?$APP.T(d,"minlength",""+$APP.P.i(y)):$APP.U(d,"minlength");a.style.setProperty("--x-text-area-resize",E);r=$APP.G(c);k=$APP.C(r,$APP.vj);m=$APP.C(r,$APP.tj);r=$APP.C(r,$APP.Np);$APP.T(d,"aria-required",$APP.n(k)?"true":"false");$APP.T(d,"aria-invalid",$APP.n(m)?"true":"false");k=$APP.n($APP.n(r)?m:r)?"hint error":$APP.n(r)?"hint":$APP.n(m)?"error":null;$APP.n(k)?$APP.T(d,"aria-describedby",
|
|
7
|
+
k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.ek);m=$APP.C(m,$APP.et);x7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.Bt);k=$APP.C(k,$APP.Np);x7(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.uj);e=$APP.C(e,$APP.tj);x7(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.tj);$APP.Zi(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&o7(a,b,d);return $APP.Q(a,"__xTextAreaModel",c)},z7=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.n(b)?y7(a,b,w7(a)):null},
|
|
8
|
+
Ira=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.fj(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),o7(a,d,b)),$APP.dj(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},Jra=function(a){var b=$APP.l(a,"__xTextAreaRefs");
|
|
9
|
+
if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return Ira(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),o7(a,k,e));e=$APP.dj(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",c);b.addEventListener("change",d);$APP.Q(a,"__xTextAreaHandlers",{input:c,change:d})}},A7=function(a){var b=
|
|
10
|
+
$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},Kra=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return z7(a)},Lra=function(a){$APP.U(a,"value");var b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&b.setFormValue("");
|
|
11
|
+
return z7(a)},Mra=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#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;}}";
|
|
12
12
|
$APP.T(d,"part","field");$APP.T(e,"part","label");$APP.T(e,"id","label");$APP.T(e,"for","textarea");$APP.T(f,"part","textarea-wrapper");$APP.T(h,"part","textarea");$APP.T(h,"id","textarea");$APP.T(h,"aria-labelledby","label");$APP.T(k,"part","hint");$APP.T(k,"id","hint");$APP.T(k,"aria-live","polite");$APP.T(m,"part","error");$APP.T(m,"id","error");$APP.T(m,"role","alert");$APP.T(m,"aria-live","assertive");f.appendChild(h);d.appendChild(e);d.appendChild(f);d.appendChild(k);d.appendChild(m);b.appendChild(c);
|
|
13
|
-
b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));
|
|
14
|
-
"value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},
|
|
15
|
-
$APP.I(b)?""+$APP.P.i(b):"";$APP.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},
|
|
16
|
-
new $APP.M(null,8,[$APP.hi,
|
|
17
|
-
297367086);var
|
|
18
|
-
$APP.Eg([$APP.
|
|
13
|
+
b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));Jra(a);return z7(a)},Nra=function(a){return A7(a)},Ora=function(a,b,c,d){return $APP.I(c,d)?($APP.z.j(b,
|
|
14
|
+
"value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},Pra=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&&
|
|
15
|
+
$APP.I(b)?""+$APP.P.i(b):"";$APP.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},Qra=function(a){Pra(a);$APP.lj(a,"name","name","");$APP.lj(a,"placeholder","placeholder","");$APP.lj(a,"autocomplete","autocomplete","");$APP.ij(a,"disabled","disabled");$APP.ij(a,"readOnly","readonly");$APP.ij(a,"required","required");$APP.nj(a,"rows","rows",3);$APP.nj(a,"maxLength","maxlength",null);return $APP.nj(a,"minLength","minlength",null)},B7=function(){return $APP.xi("x-text-area",
|
|
16
|
+
new $APP.M(null,8,[$APP.hi,Rra,$APP.fi,Mra,$APP.ci,Nra,$APP.bi,Ora,$APP.di,!0,$APP.ai,Kra,$APP.$h,Lra,$APP.gi,Qra],null))},t7=new $APP.F(null,"minlength","minlength",259053545),s7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),r7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),v7=new $APP.F(null,"maxlength","maxlength",-1163911985),p7=new $APP.F(null,"resize-raw","resize-raw",-287517888),q7=new $APP.F(null,"rows-raw","rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",
|
|
17
|
+
297367086);var Rra="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Hra=new $APP.ah(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
|
|
18
|
+
$APP.Eg([$APP.Jm,$APP.ck,$APP.Si,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Rq,$APP.St,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.gk,$APP.bs],[new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"readonly"],
|
|
19
19
|
null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"required"],null)]);
|
|
20
|
-
$APP.he(["x-text-area-change-request",new $APP.M(null,2,[$APP.
|
|
20
|
+
$APP.he(["x-text-area-change-request",new $APP.M(null,2,[$APP.Pt,!0,$APP.V,new $APP.M(null,3,[$APP.ck,$APP.X,$APP.Si,$APP.X,$APP.ss,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.Pt,!1,$APP.V,new $APP.M(null,2,[$APP.ck,$APP.X,$APP.Si,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.Pt,!1,$APP.V,new $APP.M(null,2,[$APP.ck,$APP.X,$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_text_area.init",B7);export const init=B7;
|
package/dist/x-theme.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.ec(
|
|
4
|
-
return $APP.Dd(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.ec(
|
|
5
|
-
":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},
|
|
6
|
-
$APP.P.i(
|
|
7
|
-
b)},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),
|
|
11
|
-
"#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),
|
|
12
|
-
"#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),
|
|
13
|
-
"#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),
|
|
14
|
-
"#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),
|
|
15
|
-
"#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),
|
|
16
|
-
"#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),
|
|
17
|
-
"#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),
|
|
18
|
-
"8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),
|
|
19
|
-
"8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),
|
|
20
|
-
"0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),
|
|
21
|
-
"0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),
|
|
22
|
-
"0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),
|
|
23
|
-
"0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null)
|
|
24
|
-
"#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),
|
|
25
|
-
"#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),
|
|
26
|
-
"default",null],null),null);$APP.fa("baredom.exports.x_theme.registerPreset",
|
|
2
|
+
var mfa=function(a,b){var c=LQ.i(MQ),d=NQ.i(MQ),e=b.light,f=b.dark;b=$APP.Wg($APP.Cc([c,$APP.n(e)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Yc(r)){var t=$APP.Db(r),x=$APP.w(t),y=$APP.Jd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(t,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{t=!0;break a}t=void 0}return t?$APP.Nd(y.ea(),m($APP.Eb(r))):$APP.Nd(y.ea(),null)}y=$APP.u(r);return $APP.Dd(new $APP.J(null,
|
|
3
|
+
2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.ec(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Wg($APP.Cc([d,$APP.n(f)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Yc(r)){var t=$APP.Db(r),x=$APP.w(t),y=$APP.Jd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(t,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));A+=1}else{t=!0;break a}t=void 0}return t?$APP.Nd(y.ea(),m($APP.Eb(r))):$APP.Nd(y.ea(),null)}y=$APP.u(r);
|
|
4
|
+
return $APP.Dd(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.ec(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ja(OQ,a,new $APP.M(null,2,[LQ,b,NQ,d],null))},PQ=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.Yc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.w(d)):(d=$APP.u(a),c=$APP.B(d,0,null),d=$APP.B(d,1,null),b.push(""+$APP.P.i(c)+
|
|
5
|
+
":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},QQ=function(a){var b=new $APP.M(null,1,[$APP.ds,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.ds),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.cd(nfa,c)&&$APP.l(OQ,c)==null?"default":c;var e=$APP.l(OQ,c);$APP.n(e)||(c=$APP.C(ofa,c),e=$APP.n(c)?c:MQ);c=LQ.i(e);e=NQ.i(e);c=":host{display:contents;"+$APP.P.i(PQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
|
|
6
|
+
$APP.P.i(PQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},pfa=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return QQ(a)},qfa=function(){return null},rfa=function(a,b,c,d){return $APP.I(c,d)?QQ(a):null},sfa=function(a){return $APP.mj(a,"preset","preset")},RQ=function(a,b){return mfa(a,
|
|
7
|
+
b)},SQ=function(){return $APP.xi("x-theme",new $APP.M(null,5,[$APP.hi,tfa,$APP.fi,pfa,$APP.ci,qfa,$APP.bi,rfa,$APP.gi,sfa],null))},LQ=new $APP.F(null,"light","light",1918998747),NQ=new $APP.F(null,"dark","dark",1818973999);var tfa=["preset"],TQ=$APP.Eg("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),UQ=$APP.he("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
|
|
8
|
+
VQ=$APP.he(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),WQ=$APP.he("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),XQ=$APP.he("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),YQ=$APP.he(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),ZQ=$APP.he("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
|
|
9
|
+
$Q=$APP.he("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),MQ=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
10
|
+
"#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
11
|
+
"#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),ufa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
12
|
+
"#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
13
|
+
"#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),vfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
14
|
+
"#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
15
|
+
"#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),wfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
16
|
+
"#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
17
|
+
"#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),xfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,VQ,WQ,XQ,YQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
|
|
18
|
+
"8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),NQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
19
|
+
"8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),yfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,WQ,XQ,YQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
20
|
+
"0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),NQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
21
|
+
"0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),zfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([UQ,VQ,WQ,XQ,YQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
22
|
+
"0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),NQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
23
|
+
"0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),Afa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
24
|
+
"#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
25
|
+
"#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),ofa=new $APP.M(null,8,["default",MQ,"ocean",ufa,"forest",vfa,"sunset",wfa,"neo-brutalist",xfa,"aurora",yfa,"mono-ai",zfa,"warm-mineral",Afa],null),OQ=Object.create(null),nfa=new $APP.ah(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
|
|
26
|
+
"default",null],null),null);$APP.fa("baredom.exports.x_theme.registerPreset",RQ);$APP.fa("baredom.exports.x_theme.init",SQ);export const init=SQ;export const registerPreset=RQ;
|
package/dist/x-timeline-item.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b){a=$APP.C(
|
|
4
|
-
$APP.
|
|
5
|
-
$APP.
|
|
6
|
-
m=document.createElement("div"),
|
|
7
|
-
$APP.T(d,"class","timeline-item");$APP.T(e,"class","label-col");$APP.T(f,"name","label");$APP.T(h,"class","label-text");f.appendChild(h);e.appendChild(f);$APP.T(k,"class","track-col");$APP.T(m,"class","marker");$APP.T(
|
|
8
|
-
"class","actions");$APP.T(S,"name","actions");N.appendChild(S);y.appendChild(A);y.appendChild(E);y.appendChild(N);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.Eg([$APP.
|
|
9
|
-
|
|
10
|
-
$APP.C(d,$APP.
|
|
11
|
-
"listitem");$APP.n(h)?($APP.T(a,"aria-disabled","true"),a.tabIndex=-1):($APP.U(a,"aria-disabled"),a.tabIndex=0);k=$APP.I(m,"")?m:$APP.I(k,"")?k:null;$APP.n(k)?$APP.T(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.G(b);k=$APP.C(m,
|
|
12
|
-
null;return a},
|
|
13
|
-
$APP.
|
|
14
|
-
$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}$APP.Q(a,"__xTimelineItemHandlers",null)},
|
|
15
|
-
return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.T(this,"title",""+$APP.P.i(b)):$APP.U(this,"title")},enumerable:!0,configurable:!0});$APP.lj(a,"status","status","pending");$APP.mj(a,"icon","icon");$APP.lj(a,"connector","connector","solid");$APP.lj(a,"position","position","start");return $APP.ij(a,"disabled","disabled")},
|
|
16
|
-
"__xTimelineItemModel");b=$APP.n(b)?b:
|
|
17
|
-
b],null);return $APP.hj("x-timeline-item-disconnected",$APP.
|
|
18
|
-
"actions-slot",1424248629),
|
|
19
|
-
"marker-aria","marker-aria",-353426855),
|
|
20
|
-
$APP.he(["x-timeline-item-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.
|
|
21
|
-
var
|
|
2
|
+
var rv=function(a){a=$APP.C(qv,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Gp},tv=function(a){a=$APP.C(sv,a);return $APP.n(a)?a:"pending"},wv=function(a){a=$APP.C(uv,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:vv},xv=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},yv=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Av=function(a,
|
|
3
|
+
b){a=$APP.C(zv,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(zv,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Rt);return b},Bv=function(a,b,c){a=tv(a);c=c!=null?"Step "+$APP.P.i(c+1)+": ":null;return""+$APP.P.i(c)+$APP.P.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.P.i(b)+" ":null)+"("+$APP.P.i(a)+")"},Lv=function(a){var b=$APP.G(a),c=$APP.C(b,Cv);a=$APP.C(b,$APP.fk);var d=$APP.C(b,$APP.ur),e=$APP.C(b,$APP.Wj),f=$APP.C(b,Dv),h=$APP.C(b,$APP.Xp),k=$APP.C(b,Ev),m=$APP.C(b,
|
|
4
|
+
$APP.sq),r=$APP.C(b,Fv),t=$APP.C(b,$APP.sp),x=$APP.C(b,$APP.Sr);b=$APP.C(b,$APP.dr);var y=rv(m),A=xv(b),E=$APP.n($APP.n(t)?A==null:t)?$APP.Fu:A!=null?$APP.ft:$APP.rj;m=function(){var H=E instanceof $APP.F?E.da:null;switch(H){case "default":return H=$APP.C(Gv,y),$APP.n(H)?H:$APP.C(Gv,$APP.Gp);case "custom":return A;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(H));}}();c=yv(c);d=Av(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.Eg([$APP.Jp,Hv,Iv,Dv,Fv,$APP.os,$APP.Qp,
|
|
5
|
+
$APP.Yr,$APP.ek,Jv,$APP.Pr,$APP.fk,Kv],[wv(h),c,m,$APP.D(f),$APP.D(r),$APP.z.j(E,$APP.ft)?A:null,x,y,e,Bv(y,e,c),E,$APP.D(a),d])},Mv=function(a){a=$APP.G(a);a=$APP.C(a,$APP.fk);return $APP.p(a)},Vv=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),
|
|
6
|
+
m=document.createElement("div"),r=document.createElement("slot"),t=document.createElement("span"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),E=document.createElement("div"),H=document.createElement("slot"),N=document.createElement("div"),S=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,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:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,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:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,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 var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,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
|
+
$APP.T(d,"class","timeline-item");$APP.T(e,"class","label-col");$APP.T(f,"name","label");$APP.T(h,"class","label-text");f.appendChild(h);e.appendChild(f);$APP.T(k,"class","track-col");$APP.T(m,"class","marker");$APP.T(r,"name","icon");$APP.T(t,"class","default-icon");$APP.T(t,"aria-hidden","true");r.appendChild(t);m.appendChild(r);$APP.T(x,"class","connector");k.appendChild(m);k.appendChild(x);$APP.T(y,"class","content-col");$APP.T(A,"class","title");$APP.T(E,"class","body");E.appendChild(H);$APP.T(N,
|
|
8
|
+
"class","actions");$APP.T(S,"name","actions");N.appendChild(S);y.appendChild(A);y.appendChild(E);y.appendChild(N);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.Eg([$APP.Jp,Nv,$APP.qs,$APP.zu,Ov,Pv,$APP.ku,Qv,$APP.cl,Rv,$APP.us,Sv,Tv,Uv,$APP.Xq,$APP.xn],[x,h,m,t,e,k,E,H,b,S,A,y,d,N,r,f]));return $APP.l(a,"__xTimelineItemRefs")},Wv=function(a){return Lv($APP.Eg([$APP.ur,$APP.Wj,Dv,$APP.Xp,Ev,$APP.sq,Fv,$APP.sp,$APP.Sr,$APP.dr,
|
|
9
|
+
Cv,$APP.fk],[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")]))},Xv=function(a){var b=Wv(a);if($APP.I($APP.l(a,"__xTimelineItemModel"),b)){var c=Vv(a),d=$APP.G(c);c=$APP.C(d,Nv);var e=$APP.C(d,$APP.qs),f=$APP.C(d,$APP.us);d=
|
|
10
|
+
$APP.C(d,$APP.zu);var h=$APP.G(b),k=$APP.C(h,$APP.Yr),m=$APP.C(h,Kv);h=$APP.C(h,$APP.Jp);$APP.T(a,"data-status",tv(k));$APP.Q(a,"__xTimelineItemSelfPos",!0);$APP.T(a,"data-position",$APP.ih(m));$APP.Q(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.T(a,"data-connector","dashed");break;case "none":$APP.T(a,"data-connector","none");break;default:$APP.U(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.ek);m=$APP.C(h,$APP.Qp);h=$APP.C(h,$APP.fk);$APP.T(a,"role",
|
|
11
|
+
"listitem");$APP.n(h)?($APP.T(a,"aria-disabled","true"),a.tabIndex=-1):($APP.U(a,"aria-disabled"),a.tabIndex=0);k=$APP.I(m,"")?m:$APP.I(k,"")?k:null;$APP.n(k)?$APP.T(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.G(b);k=$APP.C(m,Iv);m=$APP.C(m,Jv);$APP.T(e,"aria-label",m);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.ek);d=$APP.C(d,$APP.Qp);c.textContent=e;$APP.I(d,"")?($APP.U(f,"hidden"),f.textContent=d):($APP.T(f,"hidden",""),f.textContent="");a=$APP.Q(a,"__xTimelineItemModel",b)}else a=
|
|
12
|
+
null;return a},Yv=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||($APP.Q(a,"__xTimelineItemEntered",!0),$APP.T(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.z.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.U(a,"data-entering")):null}))},Zv=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Wv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Yr);c=$APP.C(c,$APP.ek);b=new $APP.M(null,2,[$APP.Yr,tv(b),$APP.ek,c],null);return $APP.fj(a,"x-timeline-item-click",
|
|
13
|
+
$APP.qm(b))},$v=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:Wv(a),Mv(e)){d.preventDefault();d=Zv(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:Wv(a);return Mv(d)?Zv(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTimelineItemHandlers",{click:c,keydown:b})},aw=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)}$APP.Q(a,"__xTimelineItemHandlers",null)},bw=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.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"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.I(b,""):b)?$APP.T(this,"title",""+$APP.P.i(b)):$APP.U(this,"title")},enumerable:!0,configurable:!0});$APP.lj(a,"status","status","pending");$APP.mj(a,"icon","icon");$APP.lj(a,"connector","connector","solid");$APP.lj(a,"position","position","start");return $APP.ij(a,"disabled","disabled")},cw=function(a){Vv(a);aw(a);$v(a);var b=a.getAttribute("data-position");$APP.n(b)&&$APP.Q(a,"__xTimelineItemParentPos",b);Xv(a);Yv(a);b=$APP.l(a,
|
|
16
|
+
"__xTimelineItemModel");b=$APP.n(b)?b:Wv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Yr);var d=$APP.C(c,$APP.ek),e=$APP.C(c,Kv);c=$APP.C(c,$APP.fk);b=new $APP.M(null,4,[$APP.Yr,tv(b),$APP.ek,d,$APP.Gu,$APP.ih(e),$APP.Jm,$APP.D(c)],null);return $APP.dj(a,"x-timeline-item-connected",$APP.qm(b))},dw=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Wv(a);aw(a);$APP.Q(a,"__xTimelineItemEntered",null);b=$APP.G(b);a=$APP.C(b,$APP.Yr);b=$APP.C(b,$APP.ek);a=new $APP.M(null,2,[$APP.Yr,tv(a),$APP.ek,
|
|
17
|
+
b],null);return $APP.hj("x-timeline-item-disconnected",$APP.qm(a))},ew=function(a,b,c,d){if($APP.I(c,d)){c=$APP.z.j(b,"data-position");if($APP.n(c?$APP.l(a,"__xTimelineItemSelfPos"):c))return null;$APP.z.j(b,"data-position")&&$APP.Q(a,"__xTimelineItemParentPos",d);return Xv(a)}return null},gw=function(){return $APP.xi("x-timeline-item",new $APP.M(null,5,[$APP.hi,fw,$APP.fi,cw,$APP.ci,dw,$APP.bi,ew,$APP.gi,bw],null))},Pv=new $APP.F(null,"track-col","track-col",629248272),Rv=new $APP.F(null,"actions-slot",
|
|
18
|
+
"actions-slot",1424248629),Kv=new $APP.F(null,"effective-position","effective-position",840072317),Ov=new $APP.F(null,"label-col","label-col",1883390160),Nv=new $APP.F(null,"label-text","label-text",-1566972381),Dv=new $APP.F(null,"data-striped?","data-striped?",906911587),Uv=new $APP.F(null,"actions-el","actions-el",1486248509),Sv=new $APP.F(null,"content-col","content-col",767367449),hw=new $APP.F(null,"dashed","dashed",-1449249319),Tv=new $APP.F(null,"item-div","item-div",1630512700),Jv=new $APP.F(null,
|
|
19
|
+
"marker-aria","marker-aria",-353426855),Iv=new $APP.F(null,"marker-icon","marker-icon",424963779),vv=new $APP.F(null,"solid","solid",-2023773691),Qv=new $APP.F(null,"default-slot","default-slot",-1145647151),Fv=new $APP.F(null,"data-last?","data-last?",-1110326839),Ev=new $APP.F(null,"data-position-raw","data-position-raw",256144356),Cv=new $APP.F(null,"data-index-raw","data-index-raw",491574874),Hv=new $APP.F(null,"data-index","data-index",1161508385),iw=new $APP.F(null,"none","none",1333468478);var fw="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
|
|
20
|
+
$APP.he(["x-timeline-item-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.Yr,$APP.X,$APP.ek,$APP.X,$APP.Gu,$APP.X,$APP.Jm,$APP.qj],null),$APP.Pt,!1],null),"x-timeline-item-disconnected",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Yr,$APP.X,$APP.ek,$APP.X],null),$APP.Pt,!1],null),"x-timeline-item-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Yr,$APP.X,$APP.ek,$APP.X],null),$APP.Pt,!0],null)]);
|
|
21
|
+
var qv=new $APP.M(null,5,["pending",$APP.Gp,"active",$APP.jr,"complete",$APP.qu,"error",$APP.uj,"warning",$APP.Mt],null),sv=new $APP.M(null,5,[$APP.Gp,"pending",$APP.jr,"active",$APP.qu,"complete",$APP.uj,"error",$APP.Mt,"warning"],null),Gv=new $APP.M(null,5,[$APP.Gp,"○",$APP.jr,"●",$APP.qu,"✓",$APP.uj,"✕",$APP.Mt,"!"],null),uv=new $APP.M(null,3,["solid",vv,"dashed",hw,"none",iw],null),zv=new $APP.M(null,2,["start",$APP.Rt,"end",$APP.iq],null);$APP.fa("baredom.exports.x_timeline_item.init",gw);export const init=gw;
|
package/dist/x-timeline.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(
|
|
3
|
-
$APP.T(d,"part","label");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.
|
|
4
|
-
$APP.D(b)],null)},B4=function(a){var b=A4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.
|
|
5
|
-
for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.T(f,"data-index",""+$APP.P.i(e));h?$APP.T(f,"data-last",""):$APP.U(f,"data-last");$APP.T(f,"data-position",
|
|
6
|
-
$APP.l(e,"status");e=$APP.l(e,"label");return $APP.dj(a,"x-timeline-select",$APP.
|
|
7
|
-
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)}return $APP.Q(a,"__xTimelineHandlers",null)},
|
|
8
|
-
$APP.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.T(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.ij(a,"striped","striped")},
|
|
9
|
-
null},E4=function(){return $APP.xi("x-timeline",new $APP.M(null,5,[$APP.hi,
|
|
2
|
+
var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(eqa,a)?a:"start"},fqa=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.sd(b,2)===0?"start":"end";default:return"start"}},z4=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:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,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
|
+
$APP.T(d,"part","label");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.cl,b,y4,d,$APP.ht,e],null));return $APP.l(a,"__xTimelineRefs")},A4=function(a){a=new $APP.M(null,3,[$APP.Wj,a.getAttribute("label"),$APP.ur,a.getAttribute("position"),$APP.Ds,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Wj);var c=$APP.C(b,$APP.ur);b=$APP.C(b,$APP.Ds);return new $APP.M(null,3,[$APP.ek,$APP.n(a)?a:"",$APP.Gu,x4(c),$APP.Ds,
|
|
4
|
+
$APP.D(b)],null)},B4=function(a){var b=A4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.ek),d=z4(a);d=$APP.G(d);d=$APP.C(d,y4);$APP.T(a,"role","list");$APP.I(c,"")?$APP.T(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));$APP.Q(a,"__xTimelineModel",b)}},C4=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:A4(a);var c=$APP.G(b);b=$APP.C(c,$APP.Gu);c=$APP.C(c,$APP.Ds);a=a.querySelectorAll("x-timeline-item");
|
|
5
|
+
for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.T(f,"data-index",""+$APP.P.i(e));h?$APP.T(f,"data-last",""):$APP.U(f,"data-last");$APP.T(f,"data-position",fqa(b,e));$APP.n(c)?$APP.T(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},gqa=function(a){function b(){return $APP.n(a.isConnected)?C4(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=
|
|
6
|
+
$APP.l(e,"status");e=$APP.l(e,"label");return $APP.dj(a,"x-timeline-select",$APP.qm(new $APP.M(null,3,[$APP.Cp,$APP.n(f)?f:0,$APP.Yr,$APP.n(h)?h:"",$APP.ek,$APP.n(e)?e:""],null)))}function d(){return C4(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.Q(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},D4=function(a){var b=$APP.l(a,"__xTimelineHandlers");
|
|
7
|
+
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)}return $APP.Q(a,"__xTimelineHandlers",null)},hqa=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)?
|
|
8
|
+
$APP.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.T(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.ij(a,"striped","striped")},iqa=function(a){z4(a);B4(a);D4(a);gqa(a);return C4(a)},jqa=function(a){return D4(a)},kqa=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
|
|
9
|
+
null},E4=function(){return $APP.xi("x-timeline",new $APP.M(null,5,[$APP.hi,lqa,$APP.fi,iqa,$APP.ci,jqa,$APP.bi,kqa,$APP.gi,hqa],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var lqa=["label","position","striped"];$APP.he(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Cp,$APP.Z,$APP.Yr,$APP.X,$APP.ek,$APP.X],null),$APP.Pt,!1],null)]);var eqa=new $APP.ah(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.fa("baredom.exports.x_timeline.init",E4);export const init=E4;
|