@vanelsas/baredom 2.9.0 → 3.0.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 +17 -0
- package/README.md +1 -1
- package/dist/baredom.d.ts +20 -0
- package/dist/base.js +541 -455
- package/dist/integrity.json +103 -102
- package/dist/x-alert.js +16 -17
- package/dist/x-avatar-group.js +9 -9
- package/dist/x-avatar.js +14 -15
- package/dist/x-badge.js +9 -9
- 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 -17
- package/dist/x-cancel-dialogue.js +13 -13
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +31 -31
- package/dist/x-chart.js +47 -47
- package/dist/x-checkbox.js +1 -11
- package/dist/x-chip.js +1 -1
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.js +45 -45
- package/dist/x-combobox.js +26 -26
- package/dist/x-command-palette.js +24 -24
- package/dist/x-confetti.js +24 -22
- package/dist/x-container.js +5 -4
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +20 -20
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.js +40 -40
- package/dist/x-divider.js +9 -9
- package/dist/x-drawer.js +9 -9
- package/dist/x-dropdown.js +11 -11
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +7 -7
- package/dist/x-file-upload.js +22 -22
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.js +9 -9
- package/dist/x-gaussian-blur.js +12 -12
- package/dist/x-grid.js +7 -6
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +6 -6
- package/dist/x-image.js +16 -17
- package/dist/x-kbd.js +15 -15
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +27 -27
- package/dist/x-kinetic-typography.js +33 -33
- package/dist/x-liquid-dock.js +38 -38
- package/dist/x-liquid-fill.js +43 -43
- package/dist/x-liquid-glass.js +47 -47
- package/dist/x-menu-item.js +8 -8
- package/dist/x-menu.js +10 -9
- package/dist/x-metaball-cursor.js +26 -26
- package/dist/x-modal.js +10 -10
- package/dist/x-morph-stack.js +36 -37
- package/dist/x-multi-combobox.js +36 -36
- package/dist/x-navbar.js +12 -12
- package/dist/x-neural-glow.js +32 -32
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -17
- package/dist/x-organic-progress.js +37 -37
- package/dist/x-organic-shape.js +13 -13
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +15 -15
- package/dist/x-particle-button.js +51 -51
- package/dist/x-popover.js +25 -26
- package/dist/x-progress-circle.js +8 -8
- package/dist/x-progress.js +10 -10
- package/dist/x-proximity-list.js +20 -19
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +10 -10
- package/dist/x-scroll-parallax.js +18 -18
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +34 -34
- package/dist/x-scroll-timeline.js +44 -44
- package/dist/x-scroll.js +38 -38
- package/dist/x-search-field.js +1 -15
- package/dist/x-select.js +1 -11
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +15 -15
- package/dist/x-soft-body.js +22 -22
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +12 -12
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +18 -18
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.js +12 -12
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +19 -19
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +20 -21
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +22 -23
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.js +12 -12
- package/dist/x-trace-history.d.ts +242 -0
- package/dist/x-trace-history.js +118 -0
- package/dist/x-typography.js +9 -9
- package/dist/x-welcome-tour.js +60 -59
- package/package.json +6 -1
package/dist/x-table.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.
|
|
4
|
-
$APP.
|
|
5
|
-
|
|
6
|
-
c:"";$APP.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
var YL=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},$L=function(a){var b=$APP.k(a,"__xTableRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:var(--x-color-text,inherit);--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
|
|
3
|
+
d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.O(null,3,[$APP.jj,b,ZL,d,$APP.Vp,e],null);return $APP.k(a,"__xTableRefs")},lM=function(a){a=new $APP.O(null,8,[aM,a.getAttribute("columns"),bM,a.getAttribute("caption"),cM,a.getAttribute("selectable"),$APP.op,a.hasAttribute("striped"),dM,a.hasAttribute("bordered"),eM,a.hasAttribute("full-width"),fM,a.hasAttribute("compact"),gM,a.getAttribute("row-count")],null);var b=
|
|
4
|
+
$APP.G(a),c=$APP.C(b,aM),d=$APP.C(b,bM),e=$APP.C(b,cM);a=$APP.C(b,$APP.op);var f=$APP.C(b,dM),h=$APP.C(b,eM),l=$APP.C(b,fM);b=$APP.C(b,gM);a:{if(typeof c==="string"&&(c=c.trim(),$APP.I(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.A.j(c,""+$APP.V.i(m))?"repeat("+$APP.V.i(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.$c(hM,e)?e:"none";return new $APP.O(null,8,[$APP.Wo,c,iM,d,jM,e,$APP.op,$APP.D(a),dM,$APP.D(f),eM,$APP.D(h),fM,$APP.D(l),
|
|
5
|
+
kM,YL(b)],null)},mM=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.qd(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},nM=function(a){var b=lM(a);if($APP.I($APP.k(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Wo),d=$APP.C(b,iM),e=$APP.C(b,jM),f=$APP.C(b,$APP.op),h=$APP.C(b,dM),l=$APP.C(b,eM),m=$APP.C(b,fM),q=$APP.C(b,kM),r=$L(a);r=$APP.G(r);r=$APP.C(r,ZL);a.style.gridTemplateColumns=$APP.n(c)?
|
|
6
|
+
c:"";$APP.S(a,"role",$APP.A.j(e,"none")?"table":"grid");c=$APP.A.j(e,"multi")?"true":null;$APP.n(c)?$APP.S(a,"aria-multiselectable",c):$APP.T(a,"aria-multiselectable");q!=null?$APP.S(a,"aria-rowcount",""+$APP.V.i(q)):$APP.T(a,"aria-rowcount");$APP.I(d,"")?$APP.S(a,"aria-label",d):$APP.T(a,"aria-label");$APP.I(d,"")?(r.textContent=d,r.removeAttribute("hidden")):(r.textContent="",r.setAttribute("hidden",""));$APP.n(f)?$APP.S(a,"data-striped",""):$APP.T(a,"data-striped");$APP.n(h)?$APP.S(a,"data-bordered",
|
|
7
|
+
""):$APP.T(a,"data-bordered");$APP.n(l)?$APP.S(a,"data-full-width",""):$APP.T(a,"data-full-width");$APP.n(m)?$APP.S(a,"data-compact",""):$APP.T(a,"data-compact");$APP.n(f)&&mM(a);a.__xTableModel=b}},qM=function(a){function b(){var e=$APP.k(a,"__xTableModel");e=$APP.n(e)?e:lM(a);$APP.n($APP.op.i(e))&&mM(a);return null}function c(e){var f=$APP.k(a,"__xTableModel");f=$APP.n(f)?f:lM(a);var h=jM.i(f);if($APP.I(h,"none"))if(f=e.target,e=$APP.k(e.detail,"rowIndex"),$APP.Ph(a,"x-table-row-select",$APP.$l(new $APP.O(null,
|
|
8
|
+
3,[$APP.Pn,$APP.n(e)?e:0,$APP.ro,$APP.p(f.hasAttribute("selected")),oM,h],null))),$APP.A.j(h,"single")){e=f.hasAttribute("selected");h=a.querySelectorAll("x-table-row[selected]");for(var l=h.length,m=0;;)if(m<l)h[m].removeAttribute("selected"),m+=1;else break;$APP.n(e)||f.setAttribute("selected","")}else $APP.A.j(h,"multi")&&($APP.n(f.hasAttribute("selected"))?f.removeAttribute("selected"):f.setAttribute("selected",""));return null}function d(e){var f=e.target;f=Array.from(f.parentElement.querySelectorAll("x-table-cell")).indexOf(f);
|
|
9
|
+
var h=$APP.k(e.detail,"direction"),l=$APP.k(e.detail,"previousDirection");f>=0&&(e.stopPropagation(),$APP.Ph(a,"x-table-sort",$APP.$l(new $APP.O(null,3,[pM,f,$APP.Dn,h,$APP.Rq,l],null))));return null}a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.ja(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},rM=function(a){var b=$APP.k(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.k(b,"sort"),d=$APP.k(b,"row-click");
|
|
10
|
+
b=$APP.k(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}a.__xTableHandlers=null},sM=function(a){$APP.Th(a,"columns","columns","");$APP.Th(a,"caption","caption","");$APP.Th(a,"selectable","selectable","none");$APP.Sh(a,"striped","striped");$APP.Sh(a,"bordered","bordered");$APP.Sh(a,"compact","compact");$APP.Sh(a,"fullWidth","full-width");return Object.defineProperty(a,
|
|
11
|
+
"rowCount",{get:function(){return YL(this.getAttribute("row-count"))},set:function(b){return b==null?this.removeAttribute("row-count"):this.setAttribute("row-count",""+$APP.V.i(Math.floor(b)))},enumerable:!0,configurable:!0})},tM=function(a){$L(a);rM(a);qM(a);nM(a);return null},uM=function(a){rM(a);return null},vM=function(a,b,c,d){$APP.I(c,d)&&nM(a);return null},xM=function(){return $APP.Ah("x-table",new $APP.O(null,5,[$APP.qh,wM,$APP.oh,tM,$APP.lh,uM,$APP.kh,vM,$APP.ph,sM],null))},eM=new $APP.F(null,
|
|
12
|
+
"full-width?","full-width?",1477288349),gM=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),cM=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),pM=new $APP.F(null,"colIndex","colIndex",171239635),kM=new $APP.F(null,"row-count","row-count",1060167988),bM=new $APP.F(null,"caption-raw","caption-raw",-375935083),oM=new $APP.F(null,"selectionMode","selectionMode",1264773367),aM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),jM=new $APP.F(null,"selectable","selectable",
|
|
13
|
+
370587038),iM=new $APP.F(null,"caption","caption",-855383902),dM=new $APP.F(null,"bordered?","bordered?",562358476),ZL=new $APP.F(null,"caption-div","caption-div",1485363333),fM=new $APP.F(null,"compact?","compact?",1216893298);var wM="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.ce(["x-table-sort",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[pM,$APP.Y,$APP.Dn,$APP.X,$APP.Rq,$APP.X],null),$APP.Aq,!0],null),"x-table-row-select",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.Pn,$APP.Y,$APP.ro,$APP.Xh,oM,$APP.X],null),$APP.Aq,!0],null)]);var hM=new $APP.pg(null,new $APP.O(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ha("baredom.exports.x_table.init",xM);export const init=xM;
|
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.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.
|
|
8
|
-
|
|
9
|
-
break a}l=null}return l}function c(d){d.stopPropagation();return
|
|
10
|
-
d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d)
|
|
11
|
-
|
|
12
|
-
$APP.
|
|
2
|
+
var HV=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Eh);var c=$APP.C(b,$APP.Hp),d=$APP.C(b,EV),e=$APP.C(b,$APP.Z);b=$APP.C(b,$APP.Sq);c=$APP.$c(FV,c)?c:"horizontal";d=$APP.$c(GV,d)?d:"auto";return new $APP.O(null,5,[$APP.Eh,a,$APP.Hp,c,EV,d,$APP.Z,e,$APP.Sq,$APP.D(b)],null)},IV=function(a){return new $APP.O(null,5,[$APP.Eh,a.getAttribute("value"),$APP.Hp,a.getAttribute("orientation"),EV,a.getAttribute("activation"),$APP.Z,a.getAttribute("label"),$APP.Sq,a.hasAttribute("loop")],null)},JV=function(a){return $APP.Qe($APP.we(function(b){return $APP.A.j("X-TAB",
|
|
3
|
+
b.tagName)},$APP.zc(a.children)))},KV=function(a){return $APP.p(a.hasAttribute("disabled"))},LV=function(a){return a.getAttribute("value")},aaa=function(a){return $APP.ge(function(b){return KV(b)?b:null},a)},MV=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.S(a,"value",b):(b=b==null||$APP.A.j(b,""),$APP.n(b?c:b)&&$APP.T(a,"value"))},NV=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?a.setAttribute("selected",""):(b=$APP.p(b),$APP.n(b?
|
|
4
|
+
c:b)&&a.removeAttribute("selected"))},OV=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&a.setAttribute("tabindex",b)},PV=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)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},QV=function(a){var b=JV(a),c=a.getAttribute("value"),d=$APP.vg($APP.ke(LV,b));$APP.n($APP.n(c)?$APP.$c(d,c):c)||(c=aaa(b),c=$APP.n(c)?LV(c):null);if($APP.n(c)){a:{d=$APP.t(b);for(var e=
|
|
5
|
+
null,f=0,h=0;;)if(h<f){var l=e.F(null,h),m=$APP.A.j(LV(l),c);NV(l,m);m&&KV(l)?OV(l,"0"):OV(l,"-1");h+=1}else if(d=$APP.t(d))$APP.Wc(d)?(e=$APP.Ab(d),d=$APP.Bb(d),l=e,f=$APP.y(e),e=l):(l=$APP.u(d),e=$APP.A.j(LV(l),c),NV(l,e),e&&KV(l)?OV(l,"0"):OV(l,"-1"),d=$APP.w(d),e=null,f=0),h=0;else break a}a:for(b=$APP.t(b),d=null,f=e=0;;)if(f<e)l=d.F(null,f),PV(l,$APP.A.j(LV(l),c)),f+=1;else if(b=$APP.t(b))d=b,$APP.Wc(d)?(b=$APP.Ab(d),e=$APP.Bb(d),d=b,l=$APP.y(b),b=e,e=l):(l=$APP.u(d),PV(l,$APP.A.j(LV(l),c)),
|
|
6
|
+
b=$APP.w(d),d=null,e=0),f=0;else break a;MV(a,c)}return c},RV=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.I(c,b):b)&&$APP.Ph(a,"value-change-request",{value:b,previousValue:$APP.n(c)?c:""})?(MV(a,b),QV(a),$APP.Nh(a,"value-change",{value:$APP.n(b)?b:""})):null},SV=function(a,b,c){b=$APP.y(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},TV=function(a,b,c){var d=a-1;b=$APP.y(b)-1;return d>=0?d:$APP.n(c)?b:a},UV=function(a){var b=$APP.k(a,"__xTabsBase"),c=HV(IV(a));$APP.n(b)&&
|
|
7
|
+
(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.Hp.i(c)),c=$APP.Z.i(c),$APP.n($APP.n(c)?$APP.I(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return QV(a)},baa=function(a){var b=new MutationObserver(function(){return UV(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.R(a,"__xTabsObserver",b)},VV=function(a){function b(d){a:{var e=$APP.Qe($APP.we(KV,JV(a))),f=HV(IV(a)),h=$APP.Hp.i(f);
|
|
8
|
+
var l=EV.i(f);f=$APP.Sq.i(f);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.A.j(h,"horizontal")&&$APP.A.j(m,"ArrowRight")?SV(q,e,f):$APP.A.j(h,"horizontal")&&$APP.A.j(m,"ArrowLeft")?TV(q,e,f):$APP.A.j(h,"vertical")&&$APP.A.j(m,"ArrowDown")?SV(q,e,f):$APP.A.j(h,"vertical")&&$APP.A.j(m,"ArrowUp")?TV(q,e,f):$APP.A.j(m,"Home")?0:$APP.A.j(m,"End")?$APP.y(e)-1:null,h!=null)){d.preventDefault();d=$APP.Gc(e,h,null);$APP.n(d)?d.focus():d=null;l=$APP.n(d)?$APP.A.j(l,"auto")?RV(a,LV(d)):null:
|
|
9
|
+
null;break a}l=null}return l}function c(d){d.stopPropagation();return RV(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.R(a,"__xTabsOnTabSelect",c);$APP.R(a,"__xTabsOnKeydown",b);baa(a)},caa=function(a){if($APP.Fh(a,"__xTabsInitialized"))return VV(a),UV(a);if(!$APP.Fh(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
|
+
d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.R(a,"__xTabsRoot",b);$APP.R(a,"__xTabsBase",d);$APP.R(a,"__xTabsSlot",e);VV(a);$APP.R(a,"__xTabsInitialized",!0)}UV(a);return a},daa=function(a){var b=$APP.k(a,"__xTabsOnTabSelect");$APP.n(b)&&a.removeEventListener("tab-select",b);b=$APP.k(a,"__xTabsOnKeydown");$APP.n(b)&&a.removeEventListener("keydown",b);a=$APP.k(a,"__xTabsObserver");return $APP.n(a)?a.disconnect():null},eaa=function(a){return $APP.Fh(a,
|
|
11
|
+
"__xTabsInitialized")?UV(a):null},gaa=function(a){return $APP.Zh(a,faa)},WV=function(){return $APP.Ah("x-tabs",new $APP.O(null,5,[$APP.qh,haa,$APP.oh,caa,$APP.lh,daa,$APP.kh,eaa,$APP.ph,gaa],null))},EV=new $APP.F(null,"activation","activation",2128521072);var haa=["value","orientation","activation","label","loop"],FV=new $APP.pg(null,new $APP.O(null,2,["vertical",null,"horizontal",null],null),null),GV=new $APP.pg(null,new $APP.O(null,2,["auto",null,"manual",null],null),null),faa=new $APP.O(null,1,[$APP.Eh,new $APP.O(null,2,[$APP.Q,$APP.X,$APP.W,"value"],null)],null);
|
|
12
|
+
$APP.ce(["value-change-request",new $APP.O(null,2,[$APP.Aq,!0,$APP.U,new $APP.O(null,2,[$APP.Eh,$APP.X,$APP.dp,$APP.X],null)],null),"value-change",new $APP.O(null,1,[$APP.U,new $APP.O(null,1,[$APP.Eh,$APP.X],null)],null)]);$APP.ha("baredom.exports.x_tabs.init",WV);export const init=WV;
|
package/dist/x-text-area.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d=$APP.k(b,"label"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var f=$APP.
|
|
4
|
-
a.getAttribute("placeholder")]);var h=$APP.
|
|
5
|
-
"string"&&$APP.
|
|
6
|
-
c.rows=$APP.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
$APP.
|
|
19
|
-
null),new $APP.
|
|
20
|
-
$APP.
|
|
2
|
+
var q7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},r7=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var f=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.A.j(f,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},z7=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(b,"textarea"),
|
|
3
|
+
d=$APP.k(b,"label"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var f=$APP.Wf([s7,$APP.ui,$APP.ri,$APP.Sm,$APP.hn,t7,$APP.vi,u7,$APP.wi,$APP.xj,$APP.si,$APP.xi,v7,$APP.ti],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),
|
|
4
|
+
a.getAttribute("placeholder")]);var h=$APP.G(f),l=$APP.C(h,v7),m=$APP.C(h,$APP.ti),q=$APP.C(h,s7),r=$APP.C(h,$APP.ui),v=$APP.C(h,$APP.ri),x=$APP.C(h,$APP.Sm),z=$APP.C(h,$APP.hn),B=$APP.C(h,t7);f=$APP.C(h,$APP.vi);var E=$APP.C(h,u7),H=$APP.C(h,$APP.wi),K=$APP.C(h,$APP.xj),J=$APP.C(h,$APP.si);h=$APP.C(h,$APP.xi);var P=$APP.n(x)?x:"",ea=$APP.n(z)?z:"",la=$APP.n(r)?r:"";H=$APP.D(H);K=$APP.D(K);m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.I(z,"")&&z!=null;v=$APP.n(v)?v:"";J=$APP.n(J)?J:"";l=q7(l);r=typeof r===
|
|
5
|
+
"string"&&$APP.I(r,"")&&r!=null;x=typeof x==="string"&&$APP.I(x,"")&&x!=null;q=typeof q==="string"&&$APP.$c(Rja,q)?q:"vertical";B=q7(B);f=$APP.Wf([$APP.Ci,$APP.Cj,$APP.Ai,$APP.Dm,$APP.zi,$APP.Eh,w7,$APP.Sp,$APP.np,x7,$APP.nq,y7,$APP.zn,$APP.Z,$APP.Nm,$APP.Di,$APP.Bi],[H,K,m,z,v,J,l,r,x,q,ea,q7(E),$APP.n(B)?B:3,la,P,$APP.n(h)?h:"",$APP.D(f)]);E=$APP.np.i(f);B=$APP.Dm.i(f);h=$APP.Sp.i(f);c.name=$APP.zi.i(f);c.placeholder=$APP.Ai.i(f);c.disabled=$APP.Bi.i(f);c.readOnly=$APP.Cj.i(f);c.required=$APP.Ci.i(f);
|
|
6
|
+
c.rows=$APP.zn.i(f);c.autocomplete=$APP.Di.i(f);P=y7.i(f);$APP.n(P)?$APP.S(c,"maxlength",""+$APP.V.i(P)):$APP.T(c,"maxlength");P=w7.i(f);$APP.n(P)?$APP.S(c,"minlength",""+$APP.V.i(P)):$APP.T(c,"minlength");a.style.setProperty("--x-text-area-resize",x7.i(f));$APP.S(c,"aria-required",$APP.n($APP.Ci.i(f))?"true":"false");$APP.S(c,"aria-invalid",$APP.n(E)?"true":"false");P=$APP.n($APP.n(B)?E:B)?"hint error":$APP.n(B)?"hint":$APP.n(E)?"error":null;$APP.n(P)?$APP.S(c,"aria-describedby",P):$APP.T(c,"aria-describedby");
|
|
7
|
+
d.textContent=$APP.Z.i(f);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.nq.i(f);$APP.n(B)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Nm.i(f);$APP.n(E)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");$APP.Ih(a,"data-invalid",E);d=$APP.k(a,"__xTextAreaInternals");return $APP.n(d)?r7(a,d,c):null}return null},Sja=function(a){return function(){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=
|
|
8
|
+
$APP.k(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.Ph(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.k(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),r7(a,d,b)),$APP.Nh(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null}},Tja=function(a){return function(){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");
|
|
9
|
+
var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),r7(a,e,b));return $APP.Nh(a,"x-text-area-change",{name:d,value:c})}return null}},A7=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.k(b,"textarea");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xTextAreaHandlers=null;return}}return null},Uja=function(a,
|
|
10
|
+
b){$APP.Ih(a,"disabled",$APP.D(b));return z7(a)},Vja=function(a){$APP.T(a,"value");var b=$APP.k(a,"__xTextAreaRefs");$APP.n(b)&&($APP.k(b,"textarea").value="");b=$APP.k(a,"__xTextAreaInternals");$APP.n(b)&&b.setFormValue("");return z7(a)},Wja=function(a){if(!$APP.n($APP.k(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"),
|
|
11
|
+
l=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
|
+
$APP.S(d,"part","field");$APP.S(e,"part","label");$APP.S(e,"id","label");$APP.S(e,"for","textarea");$APP.S(f,"part","textarea-wrapper");$APP.S(h,"part","textarea");$APP.S(h,"id","textarea");$APP.S(h,"aria-labelledby","label");$APP.S(l,"part","hint");$APP.S(l,"id","hint");$APP.S(l,"aria-live","polite");$APP.S(m,"part","error");$APP.S(m,"id","error");$APP.S(m,"role","alert");$APP.S(m,"aria-live","assertive");f.appendChild(h);d.appendChild(e);d.appendChild(f);d.appendChild(l);d.appendChild(m);b.appendChild(c);
|
|
13
|
+
b.appendChild(d);a.__xTextAreaRefs={field:d,label:e,textarea:h,hint:l,error:m};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xTextAreaInternals=b)}A7(a);b=$APP.k(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.k(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.k(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));b=$APP.k(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.k(b,"textarea"),c=Sja(a),d=Tja(a),b.addEventListener("input",
|
|
14
|
+
c),b.addEventListener("change",d),a.__xTextAreaHandlers={input:c,change:d});return z7(a)},Xja=function(a){return A7(a)},Yja=function(a,b,c,d){$APP.A.j(b,"value")&&(b=$APP.k(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.k(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:"")));return z7(a)},Zja=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xTextAreaRefs");if($APP.n(b))return $APP.k(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?
|
|
15
|
+
b:""},set:function(b){b=b!=null&&$APP.I(b)?""+$APP.V.i(b):"";$APP.S(this,"value",b);var c=$APP.k(this,"__xTextAreaRefs");return $APP.n(c)?$APP.k(c,"textarea").value=b:null}})},$ja=function(a){Zja(a);$APP.Th(a,"name","name","");$APP.Th(a,"placeholder","placeholder","");$APP.Th(a,"autocomplete","autocomplete","");$APP.Sh(a,"disabled","disabled");$APP.Sh(a,"readOnly","readonly");$APP.Sh(a,"required","required");$APP.Vh(a,"rows","rows",3);$APP.Vh(a,"maxLength","maxlength",null);return $APP.Vh(a,"minLength",
|
|
16
|
+
"minlength",null)},B7=function(){return $APP.Ah("x-text-area",new $APP.O(null,8,[$APP.qh,aka,$APP.oh,Wja,$APP.lh,Xja,$APP.kh,Yja,$APP.mh,!0,$APP.jh,Uja,$APP.ih,Vja,$APP.ph,$ja],null))},w7=new $APP.F(null,"minlength","minlength",259053545),v7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),u7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),y7=new $APP.F(null,"maxlength","maxlength",-1163911985),s7=new $APP.F(null,"resize-raw","resize-raw",-287517888),t7=new $APP.F(null,"rows-raw",
|
|
17
|
+
"rows-raw",-1828357145),x7=new $APP.F(null,"resize","resize",297367086);var aka="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Rja=new $APP.pg(null,new $APP.O(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
|
|
18
|
+
$APP.Wf([$APP.ck,$APP.zi,$APP.Eh,new $APP.F(null,"minLength","minLength",-1538722770),$APP.zn,$APP.Cq,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.Di,$APP.Ho],[new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"disabled"],null),new $APP.O(null,2,[$APP.Q,$APP.X,$APP.W,"name"],null),new $APP.O(null,2,[$APP.Q,$APP.X,$APP.W,"value"],null),new $APP.O(null,2,[$APP.Q,$APP.Y,$APP.W,"minlength"],null),new $APP.O(null,2,[$APP.Q,$APP.Y,$APP.W,"rows"],null),new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"readonly"],
|
|
19
|
+
null),new $APP.O(null,2,[$APP.Q,$APP.Y,$APP.W,"maxlength"],null),new $APP.O(null,2,[$APP.Q,$APP.X,$APP.W,"autocomplete"],null),new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"required"],null)]);
|
|
20
|
+
$APP.ce(["x-text-area-change-request",new $APP.O(null,2,[$APP.Aq,!0,$APP.U,new $APP.O(null,3,[$APP.zi,$APP.X,$APP.Eh,$APP.X,$APP.dp,$APP.X],null)],null),"x-text-area-input",new $APP.O(null,2,[$APP.Aq,!1,$APP.U,new $APP.O(null,2,[$APP.zi,$APP.X,$APP.Eh,$APP.X],null)],null),"x-text-area-change",new $APP.O(null,2,[$APP.Aq,!1,$APP.U,new $APP.O(null,2,[$APP.zi,$APP.X,$APP.Eh,$APP.X],null)],null)]);$APP.ha("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.
|
|
4
|
-
return $APP.
|
|
5
|
-
":"+$APP.
|
|
6
|
-
c.textContent=
|
|
7
|
-
1918998747),
|
|
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
|
-
null],null),null);$APP.
|
|
2
|
+
var PR=function(a,b){var c=LR.i(MR),d=NR.i(MR),e=b.light,f=b.dark;b=$APP.ng($APP.zc([c,$APP.n(e)?$APP.sf.j($APP.de,function(){return function m(l){return new $APP.Cd(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Wc(q)){var r=$APP.Ab(q),v=$APP.y(r),x=$APP.Hd(v);a:{for(var z=0;;)if(z<v){var B=$APP.Ec(r,z);x.add(new $APP.M(null,2,5,$APP.N,[B,$APP.k(e,B)],null));z+=1}else{r=!0;break a}r=void 0}return r?$APP.Kd(x.ca(),m($APP.Bb(q))):$APP.Kd(x.ca(),null)}x=$APP.u(q);return $APP.zd(new $APP.M(null,
|
|
3
|
+
2,5,$APP.N,[x,$APP.k(e,x)],null),m($APP.bc(q)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.ng($APP.zc([d,$APP.n(f)?$APP.sf.j($APP.de,function(){return function m(l){return new $APP.Cd(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Wc(q)){var r=$APP.Ab(q),v=$APP.y(r),x=$APP.Hd(v);a:{for(var z=0;;)if(z<v){var B=$APP.Ec(r,z);x.add(new $APP.M(null,2,5,$APP.N,[B,$APP.k(f,B)],null));z+=1}else{r=!0;break a}r=void 0}return r?$APP.Kd(x.ca(),m($APP.Bb(q))):$APP.Kd(x.ca(),null)}x=$APP.u(q);
|
|
4
|
+
return $APP.zd(new $APP.M(null,2,5,$APP.N,[x,$APP.k(f,x)],null),m($APP.bc(q)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ja(OR,a,new $APP.O(null,2,[LR,b,NR,d],null))},QR=function(a){var b=[];a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e),h=$APP.Gc(f,0,null);f=$APP.Gc(f,1,null);b.push(""+$APP.V.i(h)+":"+$APP.V.i(f)+";");e+=1}else if(a=$APP.t(a))$APP.Wc(a)?(d=$APP.Ab(a),a=$APP.Bb(a),c=d,d=$APP.y(d)):(d=$APP.u(a),c=$APP.Gc(d,0,null),d=$APP.Gc(d,1,null),b.push(""+$APP.V.i(c)+
|
|
5
|
+
":"+$APP.V.i(d)+";"),a=$APP.w(a),c=null,d=0),e=0;else break;return b.join("")},TR=function(a){a=typeof a!=="string"||!$APP.$c(RR,a)&&$APP.k(OR,a)==null?"default":a;var b=$APP.k(OR,a);$APP.n(b)||(a=$APP.C(SR,a),b=$APP.n(a)?a:MR);a=LR.i(b);b=NR.i(b);return":host{display:contents;"+$APP.V.i(QR(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.V.i(QR(b))+"}}"},UR=function(a){if($APP.n($APP.k(a,"__xThemeRefs")))a=null;else{var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");
|
|
6
|
+
c.textContent=TR(a.getAttribute("preset"));b.appendChild(c);b.appendChild(d);a.__xThemeRefs={style:c};a=void 0}return a},VR=function(){return null},WR=function(a){var b=$APP.k(a,"__xThemeRefs");return $APP.n(b)?b.style.textContent=TR(a.getAttribute("preset")):null},YR=function(a){return $APP.Uh(a,"preset","preset")},ZR=function(a,b){return PR(a,b)},aS=function(){return $APP.Ah("x-theme",new $APP.O(null,5,[$APP.qh,$R,$APP.oh,UR,$APP.lh,VR,$APP.kh,WR,$APP.ph,YR],null))},LR=new $APP.F(null,"light","light",
|
|
7
|
+
1918998747),NR=new $APP.F(null,"dark","dark",1818973999);var $R=["preset"],bS=$APP.Wf("--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(";")),cS=$APP.ce("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
|
|
8
|
+
dS=$APP.ce(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),eS=$APP.ce("--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(" ")),fS=$APP.ce("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),gS=$APP.ce(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),hS=$APP.ce("--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
|
+
iS=$APP.ce("--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(";")),MR=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),jS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),kS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),lS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),mS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,dS,eS,fS,gS,$APP.Wf("--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(";"))])),NR,$APP.Wf("--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),nS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,eS,fS,gS,$APP.Wf("--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(";"))])),NR,$APP.Wf("--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),oS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([cS,dS,eS,fS,gS,$APP.Wf("--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(";"))])),NR,$APP.Wf("--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),pS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),SR=new $APP.O(null,8,["default",MR,"ocean",jS,"forest",kS,"sunset",lS,"neo-brutalist",mS,"aurora",nS,"mono-ai",oS,"warm-mineral",pS],null),OR=Object.create(null),RR=new $APP.pg(null,new $APP.O(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,"default",
|
|
26
|
+
null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",ZR);$APP.ha("baredom.exports.x_theme.init",aS);export const init=aS;export const registerPreset=ZR;
|
package/dist/x-timeline-item.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b){a=$APP.C(
|
|
4
|
-
$APP.
|
|
5
|
-
$APP.
|
|
6
|
-
document.createElement("div"),q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),
|
|
7
|
-
d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");f.setAttribute("name","label");h.setAttribute("class","label-text");f.appendChild(h);e.appendChild(f);l.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);v.setAttribute("class","connector");l.appendChild(m);l.appendChild(v);
|
|
8
|
-
"title");
|
|
9
|
-
$APP.
|
|
10
|
-
d=$APP.C(b,$APP.
|
|
11
|
-
"listitem");$APP.n(h)?(
|
|
12
|
-
(a
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
$APP.
|
|
22
|
-
var kp=new $APP.P(null,5,["pending",$APP.xj,"active",$APP.$k,"complete",$APP.uo,"error",$APP.Qj,"warning",$APP.Rn],null),mp=new $APP.P(null,5,[$APP.xj,"pending",$APP.$k,"active",$APP.uo,"complete",$APP.Qj,"error",$APP.Rn,"warning"],null),Ap=new $APP.P(null,5,[$APP.xj,"○",$APP.$k,"●",$APP.uo,"✓",$APP.Qj,"✕",$APP.Rn,"!"],null),op=new $APP.P(null,3,["solid",pp,"dashed",Sp,"none",Tp],null),tp=new $APP.P(null,2,["start",$APP.Vn,"end",$APP.Wj],null);$APP.da("baredom.exports.x_timeline_item.init",dq);export const init=dq;
|
|
2
|
+
var Qr=function(a){a=$APP.C(Pr,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.wm},Sr=function(a){a=$APP.C(Rr,a);return $APP.n(a)?a:"pending"},Vr=function(a){a=$APP.C(Tr,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Ur},Wr=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Xr=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Zr=function(a,
|
|
3
|
+
b){a=$APP.C(Yr,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(Yr,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Bq);return b},$r=function(a,b,c){a=Sr(a);c=c!=null?"Step "+$APP.V.i(c+1)+": ":null;return""+$APP.V.i(c)+$APP.V.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.V.i(b)+" ":null)+"("+$APP.V.i(a)+")"},js=function(a){var b=$APP.G(a),c=$APP.C(b,as);a=$APP.C(b,$APP.Bi);var d=$APP.C(b,$APP.ao),e=$APP.C(b,$APP.ui),f=$APP.C(b,bs),h=$APP.C(b,$APP.Mm),l=$APP.C(b,cs),m=$APP.C(b,
|
|
4
|
+
$APP.bn),q=$APP.C(b,ds),r=$APP.C(b,$APP.lm),v=$APP.C(b,$APP.xo);b=$APP.C(b,$APP.Kn);var x=Qr(m),z=Wr(b),B=$APP.n($APP.n(r)?z==null:r)?$APP.mr:z!=null?$APP.Tp:$APP.Yh;m=function(){var E=B instanceof $APP.F?B.ga:null;switch(E){case "default":return E=$APP.C(es,x),$APP.n(E)?E:$APP.C(es,$APP.wm);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.V.i(E));}}();c=Xr(c);d=Zr(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.Wf([$APP.zm,fs,gs,bs,ds,$APP.$o,$APP.Gm,
|
|
5
|
+
$APP.Do,$APP.Z,hs,$APP.uo,$APP.Bi,is],[Vr(h),c,m,$APP.D(f),$APP.D(q),$APP.A.j(B,$APP.Tp)?z:null,v,x,e,$r(x,e,c),B,$APP.D(a),d])},ks=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Bi);return $APP.p(a)},us=function(a){var b=$APP.k(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"),l=document.createElement("div"),
|
|
6
|
+
m=document.createElement("div"),q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),z=document.createElement("div"),B=document.createElement("div"),E=document.createElement("slot"),H=document.createElement("div"),K=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
|
+
d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");f.setAttribute("name","label");h.setAttribute("class","label-text");f.appendChild(h);e.appendChild(f);l.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);v.setAttribute("class","connector");l.appendChild(m);l.appendChild(v);x.setAttribute("class","content-col");z.setAttribute("class",
|
|
8
|
+
"title");B.setAttribute("class","body");B.appendChild(E);H.setAttribute("class","actions");K.setAttribute("name","actions");H.appendChild(K);x.appendChild(z);x.appendChild(B);x.appendChild(H);d.appendChild(e);d.appendChild(l);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.Wf([$APP.zm,ls,$APP.bp,$APP.gr,ms,ns,$APP.Uq,os,$APP.jj,ps,$APP.fp,qs,rs,ss,$APP.En,ts],[v,h,m,r,e,l,B,E,b,K,z,x,d,H,q,f]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},vs=function(a){return js($APP.Wf([$APP.ao,
|
|
9
|
+
$APP.ui,bs,$APP.Mm,cs,$APP.bn,ds,$APP.lm,$APP.xo,$APP.Kn,as,$APP.Bi],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.k(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")]))},ys=function(a){var b=vs(a);if($APP.I($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.G(b);var c=$APP.C(b,
|
|
10
|
+
$APP.Z),d=$APP.C(b,$APP.Gm),e=$APP.C(b,$APP.Do),f=$APP.C(b,is),h=$APP.C(b,$APP.Bi),l=$APP.C(b,gs),m=$APP.C(b,hs),q=us(a),r=$APP.G(q);q=$APP.C(r,ls);var v=$APP.C(r,$APP.bp),x=$APP.C(r,$APP.fp);r=$APP.C(r,$APP.gr);$APP.S(a,"data-status",Sr(e));a.__xTimelineItemSelfPos=!0;$APP.S(a,"data-position",$APP.yg(f));a.__xTimelineItemSelfPos=null;$APP.A.j($APP.zm.i(b),ws)?$APP.S(a,"data-connector","dashed"):$APP.A.j($APP.zm.i(b),xs)?$APP.S(a,"data-connector","none"):$APP.T(a,"data-connector");$APP.S(a,"role",
|
|
11
|
+
"listitem");$APP.n(h)?($APP.S(a,"aria-disabled","true"),a.tabIndex=-1):($APP.T(a,"aria-disabled"),a.tabIndex=0);e=$APP.I(d,"")?d:$APP.I(c,"")?c:null;$APP.n(e)?$APP.S(a,"aria-label",e):$APP.T(a,"aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=l!=null?l:"";$APP.I(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},zs=function(a){$APP.n($APP.k(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=!0,
|
|
12
|
+
$APP.S(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.A.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.T(a,"data-entering")):null}))},As=function(a){var b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:vs(a);var c=$APP.G(b);b=$APP.C(c,$APP.Do);c=$APP.C(c,$APP.Z);b=new $APP.O(null,2,[$APP.Do,Sr(b),$APP.Z,c],null);$APP.Ph(a,"x-timeline-item-click",$APP.$l(b))},Bs=function(a){function b(d){var e=d.key;if($APP.A.j(e,"Enter")||$APP.A.j(e," "))e=$APP.k(a,
|
|
13
|
+
"__xTimelineItemModel"),e=$APP.n(e)?e:vs(a),ks(e)&&(d.preventDefault(),As(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:vs(a);ks(d)&&As(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Cs=function(a){var b=$APP.k(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",
|
|
14
|
+
b)}a.__xTimelineItemHandlers=null},Ds=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)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("title",
|
|
15
|
+
""+$APP.V.i(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});$APP.Th(a,"status","status","pending");$APP.Uh(a,"icon","icon");$APP.Th(a,"connector","connector","solid");$APP.Th(a,"position","position","start");return $APP.Sh(a,"disabled","disabled")},Es=function(a){us(a);Cs(a);Bs(a);var b=a.getAttribute("data-position");$APP.n(b)&&(a.__xTimelineItemParentPos=b);ys(a);zs(a);b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:vs(a);var c=$APP.G(b);b=$APP.C(c,$APP.Do);var d=$APP.C(c,$APP.Z),
|
|
16
|
+
e=$APP.C(c,is);c=$APP.C(c,$APP.Bi);b=new $APP.O(null,4,[$APP.Do,Sr(b),$APP.Z,d,$APP.nr,$APP.yg(e),$APP.ck,$APP.D(c)],null);$APP.Nh(a,"x-timeline-item-connected",$APP.$l(b));return null},Fs=function(a){var b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:vs(a);Cs(a);a.__xTimelineItemEntered=null;b=$APP.G(b);a=$APP.C(b,$APP.Do);b=$APP.C(b,$APP.Z);a=new $APP.O(null,2,[$APP.Do,Sr(a),$APP.Z,b],null);$APP.Rh("x-timeline-item-disconnected",$APP.$l(a));return null},Gs=function(a,b,c,d){if(c=$APP.I(c,d))c=
|
|
17
|
+
$APP.A.j(b,"data-position"),c=!$APP.n(c?$APP.k(a,"__xTimelineItemSelfPos"):c);c&&($APP.A.j(b,"data-position")&&(a.__xTimelineItemParentPos=d),ys(a));return null},Is=function(){return $APP.Ah("x-timeline-item",new $APP.O(null,5,[$APP.qh,Hs,$APP.oh,Es,$APP.lh,Fs,$APP.kh,Gs,$APP.ph,Ds],null))},ns=new $APP.F(null,"track-col","track-col",629248272),ps=new $APP.F(null,"actions-slot","actions-slot",1424248629),is=new $APP.F(null,"effective-position","effective-position",840072317),ms=new $APP.F(null,"label-col",
|
|
18
|
+
"label-col",1883390160),ls=new $APP.F(null,"label-text","label-text",-1566972381),bs=new $APP.F(null,"data-striped?","data-striped?",906911587),ss=new $APP.F(null,"actions-el","actions-el",1486248509),qs=new $APP.F(null,"content-col","content-col",767367449),ws=new $APP.F(null,"dashed","dashed",-1449249319),rs=new $APP.F(null,"item-div","item-div",1630512700),hs=new $APP.F(null,"marker-aria","marker-aria",-353426855),gs=new $APP.F(null,"marker-icon","marker-icon",424963779),Ur=new $APP.F(null,"solid",
|
|
19
|
+
"solid",-2023773691),os=new $APP.F(null,"default-slot","default-slot",-1145647151),ds=new $APP.F(null,"data-last?","data-last?",-1110326839),cs=new $APP.F(null,"data-position-raw","data-position-raw",256144356),as=new $APP.F(null,"data-index-raw","data-index-raw",491574874),fs=new $APP.F(null,"data-index","data-index",1161508385),ts=new $APP.F(null,"label-slot","label-slot",-1755862561),xs=new $APP.F(null,"none","none",1333468478);var Hs="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
|
|
20
|
+
$APP.ce(["x-timeline-item-connected",new $APP.O(null,2,[$APP.U,new $APP.O(null,4,[$APP.Do,$APP.X,$APP.Z,$APP.X,$APP.nr,$APP.X,$APP.ck,$APP.Xh],null),$APP.Aq,!1],null),"x-timeline-item-disconnected",new $APP.O(null,2,[$APP.U,new $APP.O(null,2,[$APP.Do,$APP.X,$APP.Z,$APP.X],null),$APP.Aq,!1],null),"x-timeline-item-click",new $APP.O(null,2,[$APP.U,new $APP.O(null,2,[$APP.Do,$APP.X,$APP.Z,$APP.X],null),$APP.Aq,!0],null)]);
|
|
21
|
+
var Pr=new $APP.O(null,5,["pending",$APP.wm,"active",$APP.Qn,"complete",$APP.$q,"error",$APP.Nm,"warning",$APP.xq],null),Rr=new $APP.O(null,5,[$APP.wm,"pending",$APP.Qn,"active",$APP.$q,"complete",$APP.Nm,"error",$APP.xq,"warning"],null),es=new $APP.O(null,5,[$APP.wm,"○",$APP.Qn,"●",$APP.$q,"✓",$APP.Nm,"✕",$APP.xq,"!"],null),Tr=new $APP.O(null,3,["solid",Ur,"dashed",ws,"none",xs],null),Yr=new $APP.O(null,2,["start",$APP.Bq,"end",$APP.Um],null);$APP.ha("baredom.exports.x_timeline_item.init",Is);export const init=Is;
|
package/dist/x-timeline.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.
|
|
4
|
-
$APP.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"item-click":c,"item-disconnected-doc":b})},
|
|
8
|
-
this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.
|
|
9
|
-
|
|
2
|
+
var P4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.$c(wia,a)?a:"start"},xia=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.qd(b,2)===0?"start":"end";default:return"start"}},R4=function(a){var b=$APP.k(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
|
+
d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.O(null,3,[$APP.jj,b,Q4,d,$APP.Vp,e],null);return $APP.k(a,"__xTimelineRefs")},S4=function(a){a=new $APP.O(null,3,[$APP.ui,a.getAttribute("label"),$APP.ao,a.getAttribute("position"),$APP.op,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.ui);var c=$APP.C(b,$APP.ao);b=$APP.C(b,$APP.op);return new $APP.O(null,3,[$APP.Z,$APP.n(a)?a:"",$APP.nr,P4(c),
|
|
4
|
+
$APP.op,$APP.D(b)],null)},T4=function(a){var b=S4(a);if($APP.I($APP.k(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Z),d=R4(a);d=$APP.G(d);d=$APP.C(d,Q4);$APP.S(a,"role","list");$APP.I(c,"")?$APP.S(a,"aria-label",c):$APP.T(a,"aria-label");$APP.I(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},U4=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:S4(a);var c=$APP.G(b);b=$APP.C(c,$APP.nr);c=$APP.C(c,$APP.op);
|
|
5
|
+
a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.A.j(e,d-1);f.setAttribute("data-index",""+$APP.V.i(e));h?f.setAttribute("data-last",""):f.removeAttribute("data-last");f.setAttribute("data-position",xia(b,e));$APP.n(c)?f.setAttribute("data-striped",""):f.removeAttribute("data-striped");e+=1}else break},yia=function(a){function b(){$APP.n(a.isConnected)&&U4(a);return null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;
|
|
6
|
+
typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=$APP.k(e,"status");e=$APP.k(e,"label");$APP.Nh(a,"x-timeline-select",$APP.$l(new $APP.O(null,3,[$APP.sm,$APP.n(f)?f:0,$APP.Do,$APP.n(h)?h:"",$APP.Z,$APP.n(e)?e:""],null)));return null}function d(){U4(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.ja(a,"__xTimelineHandlers",{"item-connected":d,
|
|
7
|
+
"item-click":c,"item-disconnected-doc":b})},V4=function(a){var b=$APP.k(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.k(b,"item-connected"),d=$APP.k(b,"item-click");b=$APP.k(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},zia=function(a){Object.defineProperty(a,"label",{get:function(){var b=
|
|
8
|
+
this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return P4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.V.i(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});return $APP.Sh(a,"striped","striped")},Aia=function(a){R4(a);
|
|
9
|
+
T4(a);V4(a);yia(a);U4(a);return null},Bia=function(a){V4(a);return null},Cia=function(a,b,c,d){$APP.I(c,d)&&(T4(a),U4(a));return null},W4=function(){return $APP.Ah("x-timeline",new $APP.O(null,5,[$APP.qh,Dia,$APP.oh,Aia,$APP.lh,Bia,$APP.kh,Cia,$APP.ph,zia],null))},Q4=new $APP.F(null,"label-div","label-div",1505730697);var Dia=["label","position","striped"];$APP.ce(["x-timeline-select",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.sm,$APP.Y,$APP.Do,$APP.X,$APP.Z,$APP.X],null),$APP.Aq,!1],null)]);var wia=new $APP.pg(null,new $APP.O(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",W4);export const init=W4;
|