@vanelsas/baredom 3.5.0 → 3.6.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 +2 -2
- package/custom-elements.json +116 -0
- package/dist/baredom.d.ts +1 -0
- package/dist/base.js +282 -282
- package/dist/integrity.json +104 -103
- 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-calendar.js +33 -33
- package/dist/x-cancel-dialogue.js +13 -13
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +32 -32
- package/dist/x-chart.js +44 -44
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +24 -24
- package/dist/x-collapse.js +8 -8
- package/dist/x-color-picker.js +44 -44
- package/dist/x-combobox.js +31 -31
- package/dist/x-command-palette.js +28 -28
- package/dist/x-confetti.js +22 -22
- package/dist/x-container.js +3 -3
- package/dist/x-context-menu.js +19 -19
- package/dist/x-currency-field.js +22 -22
- package/dist/x-date-picker.js +33 -33
- package/dist/x-divider.js +9 -9
- package/dist/x-drawer.js +10 -10
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +4 -4
- package/dist/x-file-download.js +5 -5
- package/dist/x-file-upload.js +24 -24
- package/dist/x-floating-panel.d.ts +50 -0
- package/dist/x-floating-panel.js +25 -0
- package/dist/x-form-field.js +13 -13
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +12 -12
- package/dist/x-grid.js +6 -6
- package/dist/x-i18n-provider.js +6 -6
- 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 +24 -24
- package/dist/x-kinetic-font.js +21 -21
- package/dist/x-kinetic-typography.js +33 -33
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +40 -40
- package/dist/x-liquid-glass.js +28 -28
- package/dist/x-menu-item.js +6 -6
- package/dist/x-menu.js +7 -7
- package/dist/x-metaball-cursor.js +21 -21
- package/dist/x-modal.js +9 -9
- package/dist/x-morph-stack.js +37 -37
- package/dist/x-multi-combobox.js +37 -37
- package/dist/x-navbar.js +11 -11
- package/dist/x-neural-glow.js +21 -21
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +15 -15
- package/dist/x-organic-progress.js +33 -33
- package/dist/x-organic-shape.js +7 -7
- package/dist/x-otp-input.js +20 -20
- package/dist/x-pagination.js +11 -11
- package/dist/x-particle-button.js +40 -40
- package/dist/x-popover.js +25 -25
- 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 +27 -27
- package/dist/x-rating.js +21 -21
- package/dist/x-ripple-effect.js +8 -8
- package/dist/x-scroll-parallax.js +16 -16
- package/dist/x-scroll-stack.js +14 -14
- package/dist/x-scroll-story.js +28 -28
- package/dist/x-scroll-timeline.js +45 -45
- package/dist/x-scroll.js +30 -30
- package/dist/x-search-field.js +1 -1
- package/dist/x-sidebar.js +13 -13
- package/dist/x-skeleton-group.js +11 -11
- package/dist/x-slider.js +15 -15
- package/dist/x-soft-body.js +15 -15
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +3 -3
- package/dist/x-splash.js +10 -10
- package/dist/x-split-pane.js +14 -14
- package/dist/x-spotlight-card.js +11 -11
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +13 -13
- package/dist/x-switch.js +9 -9
- package/dist/x-tab.js +6 -6
- package/dist/x-table-cell.js +16 -16
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.js +12 -12
- package/dist/x-tabs.js +10 -10
- package/dist/x-text-area.js +18 -18
- package/dist/x-theme.js +14 -14
- 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 +94 -94
- package/dist/x-typography.js +4 -4
- package/dist/x-welcome-tour.js +62 -62
- package/package.json +6 -1
package/dist/x-switch.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var M0=function(a){a=$APP.ug([$APP.Kj,$APP.
|
|
3
|
-
$APP.rl),m=$APP.C(b,$APP.tl);b=$APP.C(b,$APP.
|
|
2
|
+
var M0=function(a){a=$APP.ug([$APP.Kj,$APP.Oj,$APP.Pj,$APP.ql,$APP.rl,$APP.tl,$APP.Lj,$APP.ul,$APP.vl],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.G(a);a=$APP.C(b,$APP.ul);var c=$APP.C(b,$APP.vl),d=$APP.C(b,$APP.Kj),e=$APP.C(b,$APP.Oj),f=$APP.C(b,$APP.Pj),h=$APP.C(b,$APP.ql),k=$APP.C(b,
|
|
3
|
+
$APP.rl),m=$APP.C(b,$APP.tl);b=$APP.C(b,$APP.Lj);k=$APP.D(k);f=$APP.D(f);return $APP.ug([$APP.vj,$APP.xl,$APP.yl,$APP.zl,$APP.Al,$APP.fk,$APP.Si,$APP.Bl,$APP.Cl,$APP.Dl,$APP.ik],[f,k?"true":"false",$APP.D(m),k,$APP.n(f)?k:!0,d,b!=null?b:"on",h,c,a,$APP.D(e)])},N0=function(a,b,c){b=$APP.l(b,"control");var d=$APP.G(c),e=$APP.C(d,$APP.xl),f=$APP.C(d,$APP.ik),h=$APP.C(d,$APP.vj),k=$APP.C(d,$APP.yl),m=$APP.C(d,$APP.Dl),r=$APP.C(d,$APP.Bl);d=$APP.C(d,$APP.Cl);$APP.T(b,"aria-checked",e);$APP.T(b,"aria-disabled",
|
|
4
4
|
$APP.n(f)?"true":"false");$APP.T(b,"aria-required",$APP.n(h)?"true":"false");$APP.T(b,"aria-readonly",$APP.n(k)?"true":"false");$APP.n(m)?$APP.T(b,"aria-label",m):$APP.U(b,"aria-label");$APP.n(r)?$APP.T(b,"aria-labelledby",r):$APP.U(b,"aria-labelledby");$APP.n(d)?$APP.T(b,"aria-describedby",d):$APP.U(b,"aria-describedby");e=$APP.G(c);e=$APP.C(e,$APP.ik);b.tabIndex=$APP.n(e)?-1:0;$APP.n(e)?$APP.T(b,"disabled",""):$APP.U(b,"disabled");e=$APP.G(c);b=$APP.C(e,$APP.zl);e=$APP.C(e,$APP.ik);$APP.Zi(a,"data-checked",
|
|
5
5
|
b);$APP.Zi(a,"data-disabled",e);e=$APP.G(c);b=$APP.C(e,$APP.zl);e=$APP.C(e,$APP.Si);f=$APP.l(a,"__xSwitchInternals");$APP.n(f)&&f.setFormValue($APP.n(b)?e:null);return $APP.Q(a,"__xSwitchModel",c)},O0=function(a){var b=$APP.l(a,"__xSwitchRefs");return $APP.n(b)?N0(a,b,M0(a)):null},P0=function(a){var b=M0(a),c=$APP.ik.i(b),d=$APP.yl.i(b);if($APP.n($APP.n(c)?c:d))return null;c=$APP.zl.i(b);d=$APP.p(c);b=$APP.Si.i(b);return $APP.fj(a,"x-switch-change-request",{value:b,previousChecked:c,nextChecked:d})?
|
|
6
|
-
($APP.Zi(a,"checked",d),O0(a),$APP.dj(a,"x-switch-change",{value:b,checked:d})):null},
|
|
7
|
-
if($APP.n(c))return b=$APP.l(b,"control"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.Q(a,"__xSwitchHandlers",null)}return null},
|
|
6
|
+
($APP.Zi(a,"checked",d),O0(a),$APP.dj(a,"x-switch-change",{value:b,checked:d})):null},eoa=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){b=$APP.l(b,"control");var c=function(){return P0(a)},d=function(f){var h=f.key;return $APP.z.j(h," ")||$APP.z.j(h,"Enter")?(f.preventDefault(),P0(a)):null},e={click:c,keydown:d};b.addEventListener("click",c);b.addEventListener("keydown",d);$APP.Q(a,"__xSwitchHandlers",e)}},Q0=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(a,"__xSwitchHandlers");
|
|
7
|
+
if($APP.n(c))return b=$APP.l(b,"control"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.Q(a,"__xSwitchHandlers",null)}return null},foa=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return O0(a)},goa=function(a){$APP.U(a,"checked");return O0(a)},hoa=function(a){if(!$APP.n($APP.l(a,"__xSwitchRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("button"),e=document.createElement("span"),f=
|
|
8
8
|
document.createElement("span");c.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-switch-track-width:44px;--x-switch-track-height:24px;--x-switch-thumb-size:18px;--x-switch-thumb-offset:3px;--x-switch-track-radius:var(--x-radius-full,999px);--x-switch-track-bg:var(--x-color-border,#d1d5db);--x-switch-track-bg-checked:var(--x-color-primary,#2563eb);--x-switch-thumb-bg:var(--x-color-bg,#ffffff);--x-switch-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-switch-disabled-opacity:0.45;--x-switch-transition:background var(--x-transition-duration,150ms) var(--x-transition-easing,ease),transform var(--x-transition-duration,150ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-switch-track-bg:var(--x-color-border,#4b5563);--x-switch-track-bg-checked:var(--x-color-primary,#3b82f6);--x-switch-thumb-bg:var(--x-color-bg,#f9fafb);--x-switch-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-switch-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-switch-focus-ring);border-radius:calc(var(--x-switch-track-radius) + 2px);}[part\x3dtrack]{position:relative;display:inline-block;width:var(--x-switch-track-width);height:var(--x-switch-track-height);border-radius:var(--x-switch-track-radius);background:var(--x-switch-track-bg);transition:background 150ms ease;flex-shrink:0;}:host([data-checked]) [part\x3dtrack]{background:var(--x-switch-track-bg-checked);}[part\x3dthumb]{position:absolute;top:var(--x-switch-thumb-offset);left:var(--x-switch-thumb-offset);width:var(--x-switch-thumb-size);height:var(--x-switch-thumb-size);border-radius:50%;background:var(--x-switch-thumb-bg);box-shadow:0 1px 3px rgba(0,0,0,0.25);transition:transform 150ms ease;}:host([data-checked]) [part\x3dthumb]{transform:translateX(calc(var(--x-switch-track-width) - var(--x-switch-thumb-size) - calc(var(--x-switch-thumb-offset) * 2)));}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none;}[part\x3dthumb]{transition:none;}}";
|
|
9
|
-
$APP.T(d,"part","control");$APP.T(d,"type","button");$APP.T(d,"role","switch");$APP.T(e,"part","track");$APP.T(f,"part","thumb");e.appendChild(f);d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xSwitchRefs",{root:b,control:d,track:e,thumb:f});$APP.n(a.attachInternals)&&$APP.Q(a,"__xSwitchInternals",a.attachInternals())}Q0(a);
|
|
10
|
-
$APP.P.i(c),$APP.T(b,"id",c),b=c),c=$APP.l(a,"__xSwitchRefs"),$APP.n(c)&&$APP.T($APP.l(c,"control"),"aria-labelledby",b)));return O0(a)},
|
|
11
|
-
|
|
12
|
-
$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.
|
|
13
|
-
$APP.he(["x-switch-change-request",new $APP.M(null,2,[$APP.
|
|
9
|
+
$APP.T(d,"part","control");$APP.T(d,"type","button");$APP.T(d,"role","switch");$APP.T(e,"part","track");$APP.T(f,"part","thumb");e.appendChild(f);d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xSwitchRefs",{root:b,control:d,track:e,thumb:f});$APP.n(a.attachInternals)&&$APP.Q(a,"__xSwitchInternals",a.attachInternals())}Q0(a);eoa(a);c=a.getAttribute("id");$APP.n(c)&&(b=document.querySelector("label[for\x3d'"+$APP.P.i(c)+"']"),$APP.n(b)&&(d=b.getAttribute("id"),$APP.n(d)?b=d:(c="x-sw-lbl-"+
|
|
10
|
+
$APP.P.i(c),$APP.T(b,"id",c),b=c),c=$APP.l(a,"__xSwitchRefs"),$APP.n(c)&&$APP.T($APP.l(c,"control"),"aria-labelledby",b)));return O0(a)},ioa=function(a){return Q0(a)},joa=function(a,b,c,d){$APP.I(c,d)?(b=$APP.l(a,"__xSwitchRefs"),$APP.n(b)?(c=M0(a),a=$APP.I(c,$APP.l(a,"__xSwitchModel"))?N0(a,b,c):null):a=null):a=null;return a},loa=function(a){$APP.Ej(a,"__xSwitchInternals");return $APP.sj(a,koa)},R0=function(){return $APP.qi("x-switch",new $APP.M(null,8,[$APP.hi,moa,$APP.fi,hoa,$APP.ci,ioa,$APP.bi,
|
|
11
|
+
joa,$APP.di,!0,$APP.ai,foa,$APP.$h,goa,$APP.gi,loa],null))};var moa="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" "),koa=$APP.ug([$APP.bv,$APP.ou,$APP.br,$APP.Mm,$APP.fk,$APP.Si,$APP.du,$APP.Gu,$APP.dt,$APP.ks,$APP.rs],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.pj,!0],null),new $APP.M(null,2,[$APP.N,$APP.Ir,$APP.pj,!0],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.pj,!0],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,
|
|
12
|
+
$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"checked"],null),new $APP.M(null,2,[$APP.N,$APP.As,$APP.pj,!0],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"required"],null),new $APP.M(null,2,[$APP.N,$APP.Zr,$APP.pj,!0],null)]);
|
|
13
|
+
$APP.he(["x-switch-change-request",new $APP.M(null,2,[$APP.au,!0,$APP.V,new $APP.M(null,3,[$APP.Si,$APP.X,$APP.as,$APP.qj,$APP.Jt,$APP.qj],null)],null),"x-switch-change",new $APP.M(null,2,[$APP.au,!1,$APP.V,new $APP.M(null,2,[$APP.Si,$APP.X,$APP.Gu,$APP.qj],null)],null)]);$APP.fa("baredom.exports.x_switch.init",R0);export const init=R0;
|
package/dist/x-tab.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.
|
|
4
|
-
"aria-disabled");$APP.T(a,"tabindex",$APP.
|
|
5
|
-
"__xTabModel",b)}else a=null;return a},
|
|
2
|
+
var ov=function(a,b,c){return $APP.bd(b,a)?a:c},sv=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.Sr),d=$APP.C(b,$APP.Mm);a=$APP.C(b,$APP.ht);var e=$APP.C(b,$APP.Tm),f=$APP.C(b,$APP.Sm),h=$APP.C(b,$APP.hk);b=$APP.C(b,$APP.pu);c=$APP.D(c);var k=(d=$APP.D(d))?"-1":c?"0":"-1";return new $APP.M(null,8,[$APP.Sr,c,$APP.Mm,d,$APP.ht,ov(a,pv,"horizontal"),$APP.Tm,ov(e,qv,"md"),$APP.Sm,ov(f,rv,"default"),$APP.hk,h,$APP.pu,b,$APP.vs,k],null)},tv=function(a){return new $APP.M(null,8,[$APP.Si,a.getAttribute("value"),
|
|
3
|
+
$APP.Sr,a.hasAttribute("selected"),$APP.Mm,a.hasAttribute("disabled"),$APP.ht,a.getAttribute("orientation"),$APP.Tm,a.getAttribute("size"),$APP.Sm,a.getAttribute("variant"),$APP.hk,a.getAttribute("label"),$APP.pu,a.getAttribute("controls")],null)},uv=function(a){var b=sv(tv(a));if($APP.I(b,$APP.l(a,"__xTabModel"))){var c=$APP.l(a,"__xTabBase");if($APP.n(c)){$APP.T(a,"role","tab");$APP.T(a,"aria-selected",$APP.n($APP.Sr.i(b))?"true":"false");$APP.n($APP.Mm.i(b))?$APP.T(a,"aria-disabled","true"):$APP.U(a,
|
|
4
|
+
"aria-disabled");$APP.T(a,"tabindex",$APP.vs.i(b));var d=$APP.pu.i(b),e=$APP.hk.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.T(a,"aria-controls",d):$APP.U(a,"aria-controls");$APP.n($APP.n(e)?$APP.I(e,""):e)?$APP.T(a,"aria-label",e):$APP.U(a,"aria-label");$APP.T(c,"data-selected",$APP.n($APP.Sr.i(b))?"true":"false");$APP.T(c,"data-disabled",$APP.n($APP.Mm.i(b))?"true":"false");$APP.T(c,"data-size",$APP.Tm.i(b));$APP.T(c,"data-variant",$APP.Sm.i(b));$APP.T(c,"data-orientation",$APP.ht.i(b))}a=$APP.Q(a,
|
|
5
|
+
"__xTabModel",b)}else a=null;return a},vv=function(a){var b=sv(tv(a)),c=$APP.G(b);b=$APP.C(c,$APP.Sr);c=$APP.C(c,$APP.Mm);$APP.p(c)&&$APP.p(b)?(b=a.getAttribute("value"),a=$APP.dj(a,"tab-select",{value:$APP.n(b)?b:""})):a=null;return a},wv=function(a){a.addEventListener("click",function(){return vv(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.z.j(c,"Enter")||$APP.z.j(c," ")?(b.preventDefault(),b=vv(a)):b=null;return b})},xv=function(a){if(!$APP.Ti(a,"__xTabInitialized")){var b=a.attachShadow({mode:"open"}),
|
|
6
6
|
c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:inline-block;color-scheme:light dark;outline:none;--x-tab-color:var(--x-color-text,#0f172a);--x-tab-hover-background:rgba(15,23,42,0.05);--x-tab-selected-color:var(--x-color-primary-hover,#1d4ed8);--x-tab-selected-background:rgba(59,130,246,0.12);--x-tab-selected-border-color:transparent;}@media (prefers-color-scheme:dark){:host{--x-tab-color:var(--x-color-text-muted,#94a3b8);--x-tab-hover-background:rgba(248,250,252,0.06);--x-tab-selected-color:var(--x-color-focus-ring,#60a5fa);--x-tab-selected-background:rgba(59,130,246,0.18);--x-tab-selected-border-color:var(--x-color-focus-ring,#60a5fa);}}.base{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;user-select:none;padding:var(--x-tab-padding-md,10px 16px);border-radius:var(--x-tab-radius,8px);color:var(--x-tab-color);background:var(--x-tab-background,transparent);border:1px solid var(--x-tab-border-color,transparent);transition:background var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease),color var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease),border-color var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease);}.base[data-size\x3d'sm']{padding:var(--x-tab-padding-sm,6px 12px);}.base[data-size\x3d'md']{padding:var(--x-tab-padding-md,10px 16px);}.base[data-size\x3d'lg']{padding:var(--x-tab-padding-lg,14px 20px);}.base:hover{background:var(--x-tab-hover-background);}.base[data-selected\x3d'true']{color:var(--x-tab-selected-color);background:var(--x-tab-selected-background);border-color:var(--x-tab-selected-border-color);}.base[data-variant\x3d'underline'][data-selected\x3d'true']{border-bottom:2px solid var(--x-tab-selected-color);background:transparent;}.base[data-variant\x3d'pill'][data-selected\x3d'true']{background:var(--x-tab-selected-background);}.base[data-disabled\x3d'true']{opacity:var(--x-tab-disabled-opacity,0.5);cursor:default;}:host(:focus-visible) .base{box-shadow:0 0 0 3px var(--x-tab-focus-ring,rgba(59,130,246,0.4));}@media (prefers-reduced-motion: reduce){.base{transition:none;}}";
|
|
7
|
-
$APP.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabBase",d);
|
|
8
|
-
$APP.Si,new $APP.M(null,2,[$APP.
|
|
7
|
+
$APP.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabBase",d);wv(a);$APP.Ui(a,"__xTabInitialized")}uv(a);return a},yv=function(a){return xv(a)},zv=function(a,b,c,d){return $APP.I(c,d)?$APP.Ti(a,"__xTabInitialized")?uv(a):xv(a):null},Bv=function(a){return $APP.sj(a,Av)},Dv=function(){return $APP.qi("x-tab",new $APP.M(null,4,[$APP.hi,Cv,$APP.fi,yv,$APP.bi,zv,$APP.gi,Bv],null))};var Cv="value selected disabled orientation size variant label controls".split(" "),pv=new $APP.ah(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),qv=new $APP.ah(null,new $APP.M(null,3,["md",null,"lg",null,"sm",null],null),null),rv=new $APP.ah(null,new $APP.M(null,3,["default",null,"underline",null,"pill",null],null),null),Av=new $APP.M(null,3,[$APP.Sr,new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"selected"],null),$APP.Mm,new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"disabled"],null),
|
|
8
|
+
$APP.Si,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null)],null);$APP.he(["tab-select",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_tab.init",Dv);export const init=Dv;
|
package/dist/x-table-cell.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var BZ=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.bd(b,a)?a:c},CZ=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},
|
|
3
|
-
"header"))?b:a},
|
|
2
|
+
var BZ=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.bd(b,a)?a:c},CZ=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},Gma=function(a){var b=$APP.G(a);a=$APP.C(b,DZ);b=$APP.C(b,EZ);if($APP.n($APP.n(a)?a:$APP.I(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},FZ=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.N);b=$APP.C(b,DZ);return(a=$APP.z.j(a,
|
|
3
|
+
"header"))?b:a},Hma=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},Ima=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},IZ=function(a){var b=$APP.l(a,"__xTableCellRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),
|
|
4
4
|
f=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("slot"),m=document.createElement("span");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-table-cell-padding:0.5rem 0.75rem;--x-table-cell-bg:transparent;--x-table-cell-header-bg:rgba(0,0,0,0.04);--x-table-cell-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-cell-border-width:1px;--x-table-cell-color:var(--x-color-text,inherit);--x-table-cell-header-color:var(--x-color-text,inherit);--x-table-cell-font-size:inherit;--x-table-cell-header-font-weight:600;--x-table-cell-min-width:0;--x-table-cell-max-width:none;--x-table-cell-sort-color:var(--x-color-text-muted,rgba(0,0,0,0.4));--x-table-cell-sort-hover-color:var(--x-color-text,rgba(0,0,0,0.7));--x-table-cell-focus-ring:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-cell-transition-duration:var(--x-transition-duration,150ms);--x-table-cell-sticky-bg:var(--x-color-bg,#ffffff);--x-table-cell-disabled-opacity:0.45;min-width:var(--x-table-cell-min-width);max-width:var(--x-table-cell-max-width);}@media (prefers-color-scheme:dark){:host{--x-table-cell-header-bg:rgba(255,255,255,0.06);--x-table-cell-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-cell-sort-color:var(--x-color-text-muted,rgba(255,255,255,0.4));--x-table-cell-sort-hover-color:var(--x-color-text,rgba(255,255,255,0.7));--x-table-cell-sticky-bg:var(--x-color-bg,#1f2937);}}:host([data-sticky\x3d'start']){position:sticky;inset-inline-start:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([data-sticky\x3d'end']){position:sticky;inset-inline-end:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([disabled]){opacity:var(--x-table-cell-disabled-opacity);}[part\x3dcell]{display:flex;align-items:center;justify-content:flex-start;padding:var(--x-table-cell-padding);background:var(--x-table-cell-bg);border-bottom:var(--x-table-cell-border-width) solid var(--x-table-cell-border-color);color:var(--x-table-cell-color);font-size:var(--x-table-cell-font-size);min-width:0;height:100%;box-sizing:border-box;}:host([data-type\x3d'header']) [part\x3dcell]{background:var(--x-table-cell-header-bg);color:var(--x-table-cell-header-color);font-weight:var(--x-table-cell-header-font-weight);}:host([data-align\x3d'start']) [part\x3dcell]{justify-content:flex-start;}:host([data-align\x3d'center']) [part\x3dcell]{justify-content:center;}:host([data-align\x3d'end']) [part\x3dcell]{justify-content:flex-end;}:host([data-valign\x3d'top']) [part\x3dcell]{align-items:flex-start;}:host([data-valign\x3d'middle']) [part\x3dcell]{align-items:center;}:host([data-valign\x3d'bottom']) [part\x3dcell]{align-items:flex-end;}[part\x3dcontent]{flex:1 1 auto;min-width:0;}:host([data-truncate]) [part\x3dcontent]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}[part\x3dsort-btn]{flex:0 0 auto;appearance:none;border:0;background:transparent;padding:2px;margin:0 0 0 4px;cursor:pointer;color:var(--x-table-cell-sort-color);display:inline-flex;align-items:center;justify-content:center;border-radius:4px;transition:color var(--x-table-cell-transition-duration) ease;line-height:1;}[part\x3dsort-btn]:hover{color:var(--x-table-cell-sort-hover-color);}[part\x3dsort-btn]:focus{outline:none;}[part\x3dsort-btn]:focus-visible{outline:2px solid var(--x-table-cell-focus-ring);outline-offset:2px;}[part\x3dsort-btn][disabled]{cursor:default;pointer-events:none;opacity:0.4;}[part\x3dsort-btn][hidden]{display:none !important;}@media (prefers-reduced-motion:reduce){[part\x3dsort-btn]{transition:none !important;}}";
|
|
5
5
|
$APP.T(d,"part","cell");$APP.T(e,"part","content");e.appendChild(f);$APP.T(h,"part","sort-btn");$APP.T(h,"type","button");$APP.T(k,"name","sort-icon");$APP.T(m,"part","sort-icon-default");$APP.T(m,"aria-hidden","true");m.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e';k.appendChild(m);h.appendChild(k);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);
|
|
6
|
-
$APP.Q(a,"__xTableCellRefs",new $APP.M(null,5,[$APP.Sk,b,
|
|
7
|
-
$APP.G(a);a=$APP.C(b,$APP.ik);var c=$APP.C(b,OZ),d=$APP.C(b,$APP.zq),e=$APP.C(b,JZ),f=$APP.C(b,KZ),h=$APP.C(b,LZ),k=$APP.C(b,DZ),m=$APP.C(b,$APP.jq),r=$APP.C(b,$APP.Vp),
|
|
8
|
-
$APP.G(b);var c=$APP.C(b,$APP.
|
|
9
|
-
"aria-sort");$APP.n(H)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.T(a,"data-type",
|
|
10
|
-
c($APP.n(m?$APP.n(d)?$APP.p(
|
|
11
|
-
'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a=$APP.Q(a,"__xTableCellModel",b)}else a=null;return a},
|
|
12
|
-
FZ(b);return $APP.n(c)?$APP.p($APP.ik.i(b)):c}())?
|
|
6
|
+
$APP.Q(a,"__xTableCellRefs",new $APP.M(null,5,[$APP.Sk,b,Jma,d,$APP.Wp,e,GZ,h,HZ,m],null));return $APP.l(a,"__xTableCellRefs")},SZ=function(a){a=$APP.ug([$APP.zq,JZ,KZ,LZ,DZ,$APP.jq,$APP.Vp,MZ,NZ,$APP.ik,OZ],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);var b=
|
|
7
|
+
$APP.G(a);a=$APP.C(b,$APP.ik);var c=$APP.C(b,OZ),d=$APP.C(b,$APP.zq),e=$APP.C(b,JZ),f=$APP.C(b,KZ),h=$APP.C(b,LZ),k=$APP.C(b,DZ),m=$APP.C(b,$APP.jq),r=$APP.C(b,$APP.Vp),u=$APP.C(b,MZ);b=$APP.C(b,NZ);return $APP.ug([$APP.cr,EZ,PZ,$APP.N,QZ,DZ,$APP.vt,$APP.mu,$APP.jq,$APP.ik,$APP.Cp],[BZ(d,Kma,"start"),BZ(h,RZ,"none"),BZ(f,Lma,"middle"),BZ(r,Mma,"data"),BZ(b,Nma,"col"),$APP.D(k),BZ(u,Oma,"none"),CZ(c),$APP.D(m),$APP.D(a),CZ(e)])},TZ=function(a){var b=SZ(a);if($APP.I($APP.l(a,"__xTableCellModel"),b)){b=
|
|
8
|
+
$APP.G(b);var c=$APP.C(b,$APP.mu),d=$APP.C(b,$APP.Cp),e=$APP.C(b,$APP.ik),f=$APP.C(b,EZ),h=IZ(a);h=$APP.G(h);var k=$APP.C(h,GZ);h=$APP.C(h,HZ);var m=FZ(b),r=$APP.G(b),u=$APP.C(r,$APP.N),x=$APP.C(r,$APP.cr),y=$APP.C(r,PZ),A=$APP.C(r,$APP.vt),E=$APP.C(r,$APP.jq),H=$APP.C(r,$APP.ik),O=$APP.G(r);var S=$APP.C(O,$APP.N);O=$APP.C(O,QZ);S=$APP.z.j(S,"header")?$APP.z.j(O,"row")||$APP.z.j(O,"rowgroup")?"rowheader":"columnheader":"cell";$APP.T(a,"role",S);r=Gma(r);$APP.n(r)?$APP.T(a,"aria-sort",r):$APP.U(a,
|
|
9
|
+
"aria-sort");$APP.n(H)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.T(a,"data-type",u);$APP.T(a,"data-align",x);$APP.T(a,"data-valign",y);$APP.z.j(A,"none")?$APP.U(a,"data-sticky"):$APP.T(a,"data-sticky",A);$APP.n(E)?$APP.T(a,"data-truncate",""):$APP.U(a,"data-truncate");a.style.gridColumn=c>1?"span "+$APP.P.i(c):"";a.style.gridRow=d>1?"span "+$APP.P.i(d):"";k.hidden=$APP.p(m);c=parseInt;u=$APP.G(b);m=$APP.C(u,$APP.N);d=$APP.C(u,DZ);u=$APP.C(u,$APP.ik);m=$APP.z.j(m,"header");k.tabIndex=
|
|
10
|
+
c($APP.n(m?$APP.n(d)?$APP.p(u):d:m)?"0":"-1",10);$APP.T(k,"aria-label",Ima(f));k.disabled=$APP.D(e);a:switch(e=$APP.G(b),$APP.C(e,EZ)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';break a;default:e=
|
|
11
|
+
'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a=$APP.Q(a,"__xTableCellModel",b)}else a=null;return a},Pma=function(a){var b=a.getAttribute("sort-direction");b=BZ(b,RZ,"none");return $APP.fj(a,"x-table-cell-sort",{direction:Hma(b),previousDirection:b})},Qma=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");return $APP.n(c)?c:SZ(a)}();return $APP.n(function(){var c=
|
|
12
|
+
FZ(b);return $APP.n(c)?$APP.p($APP.ik.i(b)):c}())?Pma(a):null},Rma=function(a){function b(){return Qma(a)}var c=IZ(a);c=$APP.G(c);$APP.C(c,GZ).addEventListener("click",b);$APP.Q(a,"__xTableCellHandlers",{"sort-click":b})},UZ=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.G(c),c=$APP.C(c,GZ),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));$APP.Q(a,"__xTableCellHandlers",null)},Sma=function(a){$APP.lj(a,"type","type",
|
|
13
13
|
"data");$APP.lj(a,"scope","scope","col");$APP.lj(a,"align","align","start");$APP.lj(a,"valign","valign","middle");$APP.ij(a,"truncate","truncate");$APP.lj(a,"sticky","sticky","none");$APP.ij(a,"sortable","sortable");$APP.ij(a,"disabled","disabled");Object.defineProperty(a,"colSpan",{get:function(){return CZ(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"col-span",""+$APP.P.i(b)):$APP.U(this,"col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,
|
|
14
|
-
"rowSpan",{get:function(){return CZ(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"row-span",""+$APP.P.i(b)):$APP.U(this,"row-span")},enumerable:!0,configurable:!0});return $APP.lj(a,"sortDirection","sort-direction","none")},
|
|
15
|
-
"x-table-cell-connected",$APP.tm(new $APP.M(null,5,[$APP.
|
|
14
|
+
"rowSpan",{get:function(){return CZ(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"row-span",""+$APP.P.i(b)):$APP.U(this,"row-span")},enumerable:!0,configurable:!0});return $APP.lj(a,"sortDirection","sort-direction","none")},Tma=function(a){IZ(a);UZ(a);Rma(a);TZ(a);var b=$APP.l(a,"__xTableCellModel");b=$APP.n(b)?b:SZ(a);var c=$APP.G(b);b=$APP.C(c,$APP.N);var d=$APP.C(c,QZ),e=$APP.C(c,$APP.mu),f=$APP.C(c,$APP.Cp);c=$APP.C(c,$APP.cr);return $APP.dj(a,
|
|
15
|
+
"x-table-cell-connected",$APP.tm(new $APP.M(null,5,[$APP.N,b,QZ,d,VZ,e,WZ,f,$APP.cr,c],null)))},Uma=function(a){UZ(a);return $APP.dj(a,"x-table-cell-disconnected",{})},Vma=function(a,b,c,d){return $APP.I(c,d)?TZ(a):null},XZ=function(){return $APP.qi("x-table-cell",new $APP.M(null,5,[$APP.hi,Wma,$APP.fi,Tma,$APP.ci,Uma,$APP.bi,Vma,$APP.gi,Sma],null))},GZ=new $APP.F(null,"sort-btn","sort-btn",1913954560),VZ=new $APP.F(null,"colSpan","colSpan",872137394),Jma=new $APP.F(null,"cell","cell",764245084),
|
|
16
16
|
PZ=new $APP.F(null,"valign","valign",1485197511),HZ=new $APP.F(null,"sort-icon-default","sort-icon-default",-596209230),OZ=new $APP.F(null,"col-span-raw","col-span-raw",1425293661),LZ=new $APP.F(null,"sort-direction-raw","sort-direction-raw",-1822100883),MZ=new $APP.F(null,"sticky-raw","sticky-raw",1857578519),JZ=new $APP.F(null,"row-span-raw","row-span-raw",-1130003707),NZ=new $APP.F(null,"scope-raw","scope-raw",-773628648),EZ=new $APP.F(null,"sort-direction","sort-direction",-1635889628),QZ=new $APP.F(null,
|
|
17
|
-
"scope","scope",-439358418),DZ=new $APP.F(null,"sortable?","sortable?",291547474),KZ=new $APP.F(null,"valign-raw","valign-raw",-1083375124),WZ=new $APP.F(null,"rowSpan","rowSpan",826884002);var
|
|
18
|
-
$APP.ug([$APP.cr,WZ,$APP.wq,$APP.Mm,PZ,$APP.
|
|
19
|
-
null),new $APP.M(null,2,[$APP.
|
|
20
|
-
$APP.he(["x-table-cell-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Yq,$APP.X,$APP.
|
|
21
|
-
var
|
|
17
|
+
"scope","scope",-439358418),DZ=new $APP.F(null,"sortable?","sortable?",291547474),KZ=new $APP.F(null,"valign-raw","valign-raw",-1083375124),WZ=new $APP.F(null,"rowSpan","rowSpan",826884002);var Wma="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
|
|
18
|
+
$APP.ug([$APP.cr,WZ,$APP.wq,$APP.Mm,PZ,$APP.N,QZ,VZ,$APP.vt,new $APP.F(null,"sortable","sortable",2109633621),new $APP.F(null,"sortDirection","sortDirection",-45816999)],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"align"],null),new $APP.M(null,2,[$APP.N,$APP.Z,$APP.W,"row-span"],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"truncate"],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"valign"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"type"],
|
|
19
|
+
null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"scope"],null),new $APP.M(null,2,[$APP.N,$APP.Z,$APP.W,"col-span"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"sticky"],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"sortable"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"sort-direction"],null)]);
|
|
20
|
+
$APP.he(["x-table-cell-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Yq,$APP.X,$APP.uu,$APP.X],null),$APP.au,!0],null),"x-table-cell-connected",new $APP.M(null,1,[$APP.V,new $APP.M(null,5,[$APP.N,$APP.X,QZ,$APP.X,VZ,$APP.Z,WZ,$APP.Z,$APP.cr,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.M(null,1,[$APP.V,$APP.ie],null)]);
|
|
21
|
+
var Mma=new $APP.ah(null,new $APP.M(null,2,["data",null,"header",null],null),null),Nma=new $APP.ah(null,new $APP.M(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),Kma=new $APP.ah(null,new $APP.M(null,3,["center",null,"start",null,"end",null],null),null),Lma=new $APP.ah(null,new $APP.M(null,3,["top",null,"middle",null,"bottom",null],null),null),Oma=new $APP.ah(null,new $APP.M(null,3,["none",null,"start",null,"end",null],null),null),RZ=new $APP.ah(null,new $APP.M(null,3,["none",
|
|
22
22
|
null,"desc",null,"asc",null],null),null);$APP.fa("baredom.exports.x_table_cell.init",XZ);export const init=XZ;
|
package/dist/x-table-row.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b.appendChild(c);b.appendChild(d);$APP.Ui(a,"__xTableRowInitialized")}},
|
|
4
|
-
b)){
|
|
5
|
-
$APP.T(a,"data-interactive",""):$APP.U(a,"data-interactive");a.tabIndex=$APP.n(
|
|
6
|
-
"__xTableRowModel"),e=$APP.n(e)?e:
|
|
7
|
-
b)}$APP.Q(a,"__xTableRowHandlers",null)},
|
|
8
|
-
$APP.n(b)?b:
|
|
9
|
-
"row-index","row-index",-828710296),
|
|
2
|
+
var cI=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},dI=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.xt);b=$APP.C(b,$APP.ik);return $APP.n(a)?$APP.p(b):a},eI=function(a){if(!$APP.Ti(a,"__xTableRowInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-row-transition-duration:var(--x-transition-duration,150ms);--x-table-row-disabled-opacity:0.45;--x-table-row-cursor:pointer;background:var(--x-table-row-bg);transition:background var(--x-table-row-transition-duration) ease;}@media (prefers-color-scheme:dark){:host{--x-table-row-hover-bg:rgba(255,255,255,0.04);--x-table-row-selected-bg:rgba(99,160,255,0.12);--x-table-row-selected-hover-bg:rgba(99,160,255,0.16);}}:host([data-selected]){background:var(--x-table-row-selected-bg);}:host([data-interactive]){cursor:var(--x-table-row-cursor);}:host([data-interactive]:hover){background:var(--x-table-row-hover-bg);}:host([data-interactive][data-selected]:hover){background:var(--x-table-row-selected-hover-bg);}:host([data-interactive]:focus){outline:none;}:host([data-interactive]:focus-visible){outline:2px solid var(--x-table-row-focus-ring);outline-offset:-2px;}:host([disabled]){opacity:var(--x-table-row-disabled-opacity);pointer-events:none;}slot{display:contents;}@media (prefers-reduced-motion:reduce){:host{transition:none !important;}}";
|
|
3
|
+
b.appendChild(c);b.appendChild(d);$APP.Ui(a,"__xTableRowInitialized")}},hI=function(a){a=new $APP.M(null,4,[$APP.Gq,a.hasAttribute("selected"),$APP.ik,a.hasAttribute("disabled"),$APP.xt,a.hasAttribute("interactive"),fI,a.getAttribute("row-index")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Gq);var c=$APP.C(b,$APP.ik),d=$APP.C(b,$APP.xt);b=$APP.C(b,fI);return new $APP.M(null,4,[$APP.Gq,$APP.D(a),$APP.ik,$APP.D(c),$APP.xt,$APP.D(d),gI,cI(b)],null)},iI=function(a){var b=hI(a);if($APP.I($APP.l(a,"__xTableRowModel"),
|
|
4
|
+
b)){eI(a);var c=$APP.G(b),d=$APP.C(c,$APP.Gq),e=$APP.C(c,$APP.ik),f=$APP.C(c,$APP.xt),h=$APP.C(c,gI);$APP.T(a,"role","row");var k=$APP.G(c);var m=$APP.C(k,$APP.Gq);k=$APP.C(k,$APP.xt);m=$APP.n(m)?"true":$APP.n(k)?"false":null;$APP.n(m)?$APP.T(a,"aria-selected",m):$APP.U(a,"aria-selected");$APP.n(e)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");h!=null?$APP.T(a,"aria-rowindex",""+$APP.P.i(h)):$APP.U(a,"aria-rowindex");$APP.n(d)?$APP.T(a,"data-selected",""):$APP.U(a,"data-selected");$APP.n(f)?
|
|
5
|
+
$APP.T(a,"data-interactive",""):$APP.U(a,"data-interactive");a.tabIndex=$APP.n(dI(c))?0:-1;a=$APP.Q(a,"__xTableRowModel",b)}else a=null;return a},jI=function(a){var b=$APP.l(a,"__xTableRowModel");b=$APP.n(b)?b:hI(a);var c=$APP.G(b);b=$APP.C(c,$APP.Gq);var d=$APP.C(c,$APP.ik);c=$APP.C(c,gI);return $APP.fj(a,"x-table-row-click",$APP.tm(new $APP.M(null,3,[$APP.mr,$APP.n(c)?c:0,$APP.Sr,b,$APP.Mm,d],null)))},kca=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,
|
|
6
|
+
"__xTableRowModel"),e=$APP.n(e)?e:hI(a),$APP.n(dI(e))){d.preventDefault();d=jI(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:hI(a);return $APP.n(dI(d))?jI(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTableRowHandlers",{click:c,keydown:b})},kI=function(a){var b=$APP.l(a,"__xTableRowHandlers");if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",
|
|
7
|
+
b)}$APP.Q(a,"__xTableRowHandlers",null)},lca=function(a){$APP.ij(a,"selected","selected");$APP.ij(a,"disabled","disabled");$APP.ij(a,"interactive","interactive");return Object.defineProperty(a,"rowIndex",{get:function(){return cI(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"row-index",""+$APP.P.i(b)):$APP.U(this,"row-index")},enumerable:!0,configurable:!0})},mca=function(a){eI(a);kI(a);kca(a);iI(a);var b=$APP.l(a,"__xTableRowModel");b=
|
|
8
|
+
$APP.n(b)?b:hI(a);var c=$APP.G(b);b=$APP.C(c,$APP.Gq);var d=$APP.C(c,$APP.ik),e=$APP.C(c,$APP.xt);c=$APP.C(c,gI);return $APP.dj(a,"x-table-row-connected",$APP.tm(new $APP.M(null,4,[$APP.mr,$APP.n(c)?c:0,$APP.Sr,b,$APP.Mm,d,$APP.Qq,e],null)))},nca=function(a){kI(a);return $APP.hj("x-table-row-disconnected",{})},oca=function(a,b,c,d){return $APP.I(c,d)?iI(a):null},lI=function(){return $APP.qi("x-table-row",new $APP.M(null,5,[$APP.hi,pca,$APP.fi,mca,$APP.ci,nca,$APP.bi,oca,$APP.gi,lca],null))},gI=new $APP.F(null,
|
|
9
|
+
"row-index","row-index",-828710296),fI=new $APP.F(null,"row-index-raw","row-index-raw",1490649093);var pca=["selected","disabled","interactive","row-index"];$APP.he(["x-table-row-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.mr,$APP.Z,$APP.Sr,$APP.qj,$APP.Mm,$APP.qj],null),$APP.au,!0],null),"x-table-row-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.mr,$APP.Z,$APP.Sr,$APP.qj,$APP.Mm,$APP.qj,$APP.Qq,$APP.qj],null),$APP.au,!1],null),"x-table-row-disconnected",new $APP.M(null,2,[$APP.V,$APP.ie,$APP.au,!1],null)]);$APP.fa("baredom.exports.x_table_row.init",lI);export const init=lI;
|
package/dist/x-table.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
2
|
var UM=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},WM=function(a){var b=$APP.l(a,"__xTableRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color: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
|
-
$APP.T(d,"part","caption");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Sk,b,VM,d,$APP.
|
|
4
|
-
$APP.G(a),c=$APP.C(b,XM),d=$APP.C(b,YM),e=$APP.C(b,ZM);a=$APP.C(b,$APP.
|
|
5
|
-
bN,$APP.D(k),fN,UM(b)],null)},hN=function(a){a=$APP.q($APP.we.m($APP.Yo,$APP.Cc(a.querySelectorAll("x-table-row")),$APP.oh(0,Number.MAX_VALUE)));for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.Yc(a)?(b=$APP.Db(a),a=$APP.Eb(a),f=b,c=$APP.w(b),b=f):(b=$APP.
|
|
6
|
-
"data-stripe"),a=$APP.v(a),b=null,c=0),d=0;else return null},iN=function(a){var b=gN(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.
|
|
7
|
-
"aria-multiselectable");e!=null?$APP.T(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.T(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,dN);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.
|
|
8
|
-
"data-full-width",""):$APP.U(a,"data-full-width");$APP.n(f)?$APP.T(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&hN(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},
|
|
9
|
-
3,[$APP.mr,$APP.n(f)?f:0,$APP.
|
|
10
|
-
"")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?$APP.U(h,"selected"):$APP.T(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.fj(a,"x-table-sort",$APP.tm(new $APP.M(null,3,[kN,h,$APP.Yq,k,$APP.
|
|
11
|
-
c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},lN=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}return $APP.Q(a,"__xTableHandlers",null)},
|
|
12
|
-
"columns","");$APP.lj(a,"caption","caption","");$APP.lj(a,"selectable","selectable","none");$APP.ij(a,"striped","striped");$APP.ij(a,"bordered","bordered");$APP.ij(a,"compact","compact");$APP.ij(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return UM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.T(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},
|
|
13
|
-
return iN(a)},
|
|
14
|
-
1060167988),YM=new $APP.F(null,"caption-raw","caption-raw",-375935083),jN=new $APP.F(null,"selectionMode","selectionMode",1264773367),XM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),eN=new $APP.F(null,"selectable","selectable",370587038),dN=new $APP.F(null,"caption","caption",-855383902),$M=new $APP.F(null,"bordered?","bordered?",562358476),VM=new $APP.F(null,"caption-div","caption-div",1485363333),bN=new $APP.F(null,"compact?","compact?",1216893298);var
|
|
3
|
+
$APP.T(d,"part","caption");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Sk,b,VM,d,$APP.tt,e],null));return $APP.l(a,"__xTableRefs")},gN=function(a){a=new $APP.M(null,8,[XM,a.getAttribute("columns"),YM,a.getAttribute("caption"),ZM,a.getAttribute("selectable"),$APP.Os,a.hasAttribute("striped"),$M,a.hasAttribute("bordered"),aN,a.hasAttribute("full-width"),bN,a.hasAttribute("compact"),cN,a.getAttribute("row-count")],null);var b=
|
|
4
|
+
$APP.G(a),c=$APP.C(b,XM),d=$APP.C(b,YM),e=$APP.C(b,ZM);a=$APP.C(b,$APP.Os);var f=$APP.C(b,$M),h=$APP.C(b,aN),k=$APP.C(b,bN);b=$APP.C(b,cN);a:{if(typeof c==="string"&&(c=c.trim(),$APP.I(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.z.j(c,""+$APP.P.i(m))?"repeat("+$APP.P.i(m)+",minmax(0,1fr))":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.bd(Bea,e)?e:"none";return new $APP.M(null,8,[$APP.us,c,dN,d,eN,e,$APP.Os,$APP.D(a),$M,$APP.D(f),aN,$APP.D(h),
|
|
5
|
+
bN,$APP.D(k),fN,UM(b)],null)},hN=function(a){a=$APP.q($APP.we.m($APP.Yo,$APP.Cc(a.querySelectorAll("x-table-row")),$APP.oh(0,Number.MAX_VALUE)));for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.Yc(a)?(b=$APP.Db(a),a=$APP.Eb(a),f=b,c=$APP.w(b),b=f):(b=$APP.t(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,
|
|
6
|
+
"data-stripe"),a=$APP.v(a),b=null,c=0),d=0;else return null},iN=function(a){var b=gN(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Os),d=WM(a);d=$APP.G(d);d=$APP.C(d,VM);var e=$APP.G(b);e=$APP.C(e,$APP.us);$APP.n(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,eN);e=$APP.C(f,fN);f=$APP.C(f,dN);$APP.T(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.n(h)?$APP.T(a,"aria-multiselectable",h):$APP.U(a,
|
|
7
|
+
"aria-multiselectable");e!=null?$APP.T(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.T(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,dN);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Os);e=$APP.C(f,$M);h=$APP.C(f,aN);f=$APP.C(f,bN);$APP.n(d)?$APP.T(a,"data-striped",""):$APP.U(a,"data-striped");$APP.n(e)?$APP.T(a,"data-bordered",""):$APP.U(a,"data-bordered");$APP.n(h)?$APP.T(a,
|
|
8
|
+
"data-full-width",""):$APP.U(a,"data-full-width");$APP.n(f)?$APP.T(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&hN(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},Cea=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:gN(a);return $APP.n($APP.Os.i(f))?hN(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.n(h)?h:gN(a);var k=eN.i(h);if($APP.I(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.fj(a,"x-table-row-select",$APP.tm(new $APP.M(null,
|
|
9
|
+
3,[$APP.mr,$APP.n(f)?f:0,$APP.Sr,$APP.p(h.hasAttribute("selected")),jN,k],null))),$APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Dc(a.querySelectorAll(""+$APP.P.i("x-table-row")+"["+$APP.P.i("selected")+"]"));k=$APP.q(k);for(var m=null,r=0,u=0;;)if(u<r){var x=m.C(null,u);$APP.U(x,"selected");u+=1}else if(k=$APP.q(k))m=k,$APP.Yc(m)?(k=$APP.Db(m),u=$APP.Eb(m),m=k,r=$APP.w(k),k=u):(k=$APP.t(m),$APP.U(k,"selected"),k=$APP.v(m),m=null,r=0),u=0;else break;h=$APP.n(f)?null:$APP.T(h,"selected",
|
|
10
|
+
"")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?$APP.U(h,"selected"):$APP.T(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.fj(a,"x-table-sort",$APP.tm(new $APP.M(null,3,[kN,h,$APP.Yq,k,$APP.uu,m],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",
|
|
11
|
+
c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},lN=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}return $APP.Q(a,"__xTableHandlers",null)},Dea=function(a){$APP.lj(a,"columns",
|
|
12
|
+
"columns","");$APP.lj(a,"caption","caption","");$APP.lj(a,"selectable","selectable","none");$APP.ij(a,"striped","striped");$APP.ij(a,"bordered","bordered");$APP.ij(a,"compact","compact");$APP.ij(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return UM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.T(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},Eea=function(a){WM(a);lN(a);Cea(a);
|
|
13
|
+
return iN(a)},Fea=function(a){return lN(a)},Gea=function(a,b,c,d){return $APP.I(c,d)?iN(a):null},mN=function(){return $APP.qi("x-table",new $APP.M(null,5,[$APP.hi,Hea,$APP.fi,Eea,$APP.ci,Fea,$APP.bi,Gea,$APP.gi,Dea],null))},aN=new $APP.F(null,"full-width?","full-width?",1477288349),cN=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),ZM=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),kN=new $APP.F(null,"colIndex","colIndex",171239635),fN=new $APP.F(null,"row-count","row-count",
|
|
14
|
+
1060167988),YM=new $APP.F(null,"caption-raw","caption-raw",-375935083),jN=new $APP.F(null,"selectionMode","selectionMode",1264773367),XM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),eN=new $APP.F(null,"selectable","selectable",370587038),dN=new $APP.F(null,"caption","caption",-855383902),$M=new $APP.F(null,"bordered?","bordered?",562358476),VM=new $APP.F(null,"caption-div","caption-div",1485363333),bN=new $APP.F(null,"compact?","compact?",1216893298);var Hea="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.he(["x-table-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[kN,$APP.Z,$APP.Yq,$APP.X,$APP.uu,$APP.X],null),$APP.au,!0],null),"x-table-row-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.mr,$APP.Z,$APP.Sr,$APP.qj,jN,$APP.X],null),$APP.au,!0],null)]);var Bea=new $APP.ah(null,new $APP.M(null,3,["none",null,"single",null,"multi",null],null),null);$APP.fa("baredom.exports.x_table.init",mN);export const init=mN;
|
package/dist/x-tabs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var ET=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Si);var c=$APP.C(b,$APP.
|
|
3
|
-
b.tagName)},$APP.Cc(a.children)))},HT=function(a){return $APP.p(a.hasAttribute("disabled"))},IT=function(a){return a.getAttribute("value")},
|
|
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.bd(d,c):c)||(c=
|
|
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.
|
|
2
|
+
var ET=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Si);var c=$APP.C(b,$APP.ht),d=$APP.C(b,DT),e=$APP.C(b,$APP.hk);b=$APP.C(b,$APP.vu);c=$APP.bd(nia,c)?c:"horizontal";d=$APP.bd(oia,d)?d:"auto";return new $APP.M(null,5,[$APP.Si,a,$APP.ht,c,DT,d,$APP.hk,e,$APP.vu,$APP.D(b)],null)},FT=function(a){return new $APP.M(null,5,[$APP.Si,a.getAttribute("value"),$APP.ht,a.getAttribute("orientation"),DT,a.getAttribute("activation"),$APP.hk,a.getAttribute("label"),$APP.vu,a.hasAttribute("loop")],null)},GT=function(a){return $APP.Ye($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")},pia=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.bd(d,c):c)||(c=pia(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.t(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.t(d),MT(k,$APP.z.j(IT(k),c)),b=$APP.v(d),d=null,e=0),f=0;else break a;
|
|
6
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.
|
|
8
|
-
var k=DT.i(f);f=$APP.
|
|
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);
|
|
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},
|
|
11
|
-
null},
|
|
12
|
-
$APP.he(["value-change-request",new $APP.M(null,2,[$APP.
|
|
7
|
+
"role","tablist");$APP.T(c,"aria-orientation",$APP.ht.i(b));var d=$APP.hk.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)},qia=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.Ye($APP.Ce(HT,GT(a))),f=ET(FT(a)),h=$APP.ht.i(f);
|
|
8
|
+
var k=DT.i(f);f=$APP.vu.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);qia(a)},ria=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},sia=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},tia=function(a,b,c,d){return $APP.I(c,d)&&$APP.Ti(a,"__xTabsInitialized")?RT(a):
|
|
11
|
+
null},via=function(a){return $APP.sj(a,uia)},TT=function(){return $APP.qi("x-tabs",new $APP.M(null,5,[$APP.hi,wia,$APP.fi,ria,$APP.ci,sia,$APP.bi,tia,$APP.gi,via],null))},DT=new $APP.F(null,"activation","activation",2128521072);var wia=["value","orientation","activation","label","loop"],nia=new $APP.ah(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),oia=new $APP.ah(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),uia=new $APP.M(null,1,[$APP.Si,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null)],null);
|
|
12
|
+
$APP.he(["value-change-request",new $APP.M(null,2,[$APP.au,!0,$APP.V,new $APP.M(null,2,[$APP.Si,$APP.X,$APP.Ds,$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){$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.ug([p7,$APP.
|
|
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.
|
|
4
|
-
$APP.tl),A=$APP.C(b,$APP.
|
|
5
|
-
h,A,c,f,k,e,H,n7(
|
|
6
|
-
|
|
7
|
-
k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.hk);m=$APP.C(m,$APP.
|
|
8
|
-
|
|
9
|
-
if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return
|
|
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},
|
|
11
|
-
$APP.n(b)&&b.setFormValue("");return z7(a)},
|
|
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.ug([p7,$APP.Nj,$APP.Kj,$APP.Ln,$APP.Bq,q7,$APP.Oj,r7,$APP.Pj,$APP.tl,$APP.Lj,$APP.ck,s7,$APP.Mj],[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.Mj),e=$APP.C(b,p7),f=$APP.C(b,$APP.Nj),h=$APP.C(b,$APP.Kj),k=$APP.C(b,$APP.Ln),m=$APP.C(b,$APP.Bq),r=$APP.C(b,q7);a=$APP.C(b,$APP.Oj);var u=$APP.C(b,r7),x=$APP.C(b,$APP.Pj),y=$APP.C(b,
|
|
4
|
+
$APP.tl),A=$APP.C(b,$APP.Lj);b=$APP.C(b,$APP.ck);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",O=$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.bd(Jsa,e)?e:"vertical";r=n7(r);return $APP.ug([$APP.vj,$APP.yl,$APP.gk,$APP.Qp,$APP.fk,$APP.Si,t7,$APP.qt,$APP.tj,u7,$APP.Nt,v7,$APP.Uq,$APP.hk,$APP.uj,$APP.jk,$APP.ik],[x,y,d,m,
|
|
5
|
+
h,A,c,f,k,e,H,n7(u),$APP.n(r)?r:3,O,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.jk),m=$APP.C(h,$APP.ik),r=$APP.C(h,$APP.vj),u=$APP.C(h,$APP.yl),x=$APP.C(h,$APP.gk),y=$APP.C(h,t7),A=$APP.C(h,$APP.fk),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.Uq);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=
|
|
6
|
+
u;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.Qp);$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.hk);m=$APP.C(m,$APP.qt);x7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.Nt);k=$APP.C(k,$APP.Qp);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
|
+
Ksa=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},Lsa=function(a){var b=$APP.l(a,"__xTextAreaRefs");
|
|
9
|
+
if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return Ksa(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},Msa=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return z7(a)},Nsa=function(a){$APP.U(a,"value");$APP.U(a,"error");var b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");
|
|
11
|
+
$APP.n(b)&&b.setFormValue("");return z7(a)},Osa=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
|
-
"minlength",null)},B7=function(){return $APP.qi("x-text-area",new $APP.M(null,8,[$APP.hi,
|
|
17
|
-
"rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",297367086);var
|
|
18
|
-
$APP.ug([$APP.
|
|
19
|
-
$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.
|
|
20
|
-
$APP.he(["x-text-area-change-request",new $APP.M(null,2,[$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:""));Lsa(a);return z7(a)},Psa=function(a){return A7(a)},Qsa=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},Rsa=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}})},Ssa=function(a){$APP.Ej(a,"__xTextAreaInternals");Rsa(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",
|
|
16
|
+
"minlength",null)},B7=function(){return $APP.qi("x-text-area",new $APP.M(null,8,[$APP.hi,Tsa,$APP.fi,Osa,$APP.ci,Psa,$APP.bi,Qsa,$APP.di,!0,$APP.ai,Msa,$APP.$h,Nsa,$APP.gi,Ssa],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",
|
|
17
|
+
"rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",297367086);var Tsa="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Jsa=new $APP.ah(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
|
|
18
|
+
$APP.ug([$APP.bv,$APP.ou,$APP.br,$APP.Mm,$APP.fk,$APP.Si,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Uq,$APP.du,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.jk,$APP.dt,$APP.ks,$APP.rs],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.pj,!0],null),new $APP.M(null,2,[$APP.N,$APP.Ir,$APP.pj,!0],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.pj,!0],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,
|
|
19
|
+
$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.Z,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.N,$APP.Z,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.N,$APP.Z,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.N,$APP.As,$APP.pj,!0],null),new $APP.M(null,2,[$APP.N,$APP.qj,$APP.W,"required"],null),new $APP.M(null,2,[$APP.N,$APP.Zr,$APP.pj,!0],null)]);
|
|
20
|
+
$APP.he(["x-text-area-change-request",new $APP.M(null,2,[$APP.au,!0,$APP.V,new $APP.M(null,3,[$APP.fk,$APP.X,$APP.Si,$APP.X,$APP.Ds,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.au,!1,$APP.V,new $APP.M(null,2,[$APP.fk,$APP.X,$APP.Si,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.au,!1,$APP.V,new $APP.M(null,2,[$APP.fk,$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(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
|
|
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.
|
|
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.
|
|
6
|
-
$APP.P.i(PQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},
|
|
7
|
-
b)},SQ=function(){return $APP.qi("x-theme",new $APP.M(null,5,[$APP.hi,
|
|
2
|
+
var pga=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 u=$APP.Db(r),x=$APP.w(u),y=$APP.Jd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Md(y.ea(),m($APP.Eb(r))):$APP.Md(y.ea(),null)}y=$APP.t(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 u=$APP.Db(r),x=$APP.w(u),y=$APP.Jd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Md(y.ea(),m($APP.Eb(r))):$APP.Md(y.ea(),null)}y=$APP.t(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.t(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.ms,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.ms),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.bd(qga,c)&&$APP.l(OQ,c)==null?"default":c;var e=$APP.l(OQ,c);$APP.n(e)||(c=$APP.C(rga,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},sga=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)},tga=function(){return null},uga=function(a,b,c,d){return $APP.I(c,d)?QQ(a):null},vga=function(a){return $APP.mj(a,"preset","preset")},RQ=function(a,b){return pga(a,
|
|
7
|
+
b)},SQ=function(){return $APP.qi("x-theme",new $APP.M(null,5,[$APP.hi,wga,$APP.fi,sga,$APP.ci,tga,$APP.bi,uga,$APP.gi,vga],null))},LQ=new $APP.F(null,"light","light",1918998747),NQ=new $APP.F(null,"dark","dark",1818973999);var wga=["preset"],TQ=$APP.ug("--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
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
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.ug("--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
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.ug("--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),
|
|
11
|
+
"#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),xga=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--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
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.ug("--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),
|
|
13
|
+
"#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),yga=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--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
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.ug("--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),
|
|
15
|
+
"#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),zga=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--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
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.ug("--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),
|
|
17
|
+
"#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),Aga=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,VQ,WQ,XQ,YQ,$APP.ug("--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
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.ug("--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),
|
|
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),Bga=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,WQ,XQ,YQ,$APP.ug("--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
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.ug("--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),
|
|
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),Cga=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([UQ,VQ,WQ,XQ,YQ,$APP.ug("--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
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.ug("--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),
|
|
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),Dga=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--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
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.ug("--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),
|
|
25
|
+
"#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),rga=new $APP.M(null,8,["default",MQ,"ocean",xga,"forest",yga,"sunset",zga,"neo-brutalist",Aga,"aurora",Bga,"mono-ai",Cga,"warm-mineral",Dga],null),OQ=Object.create(null),qga=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
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;
|