@vanelsas/baredom 0.2.2-alpha → 0.2.6-alpha
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 +14 -0
- package/README.md +4 -4
- package/dist/base.js +207 -207
- package/dist/x-alert.js +19 -19
- package/dist/x-avatar-group.js +11 -11
- package/dist/x-avatar.js +17 -17
- package/dist/x-badge.js +11 -11
- package/dist/x-breadcrumbs.js +14 -14
- package/dist/x-button.js +15 -15
- package/dist/x-cancel-dialogue.js +16 -18
- package/dist/x-card.js +7 -7
- package/dist/x-chart.js +48 -44
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +9 -9
- package/dist/x-collapse.js +12 -12
- package/dist/x-command-palette.js +31 -31
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +20 -19
- package/dist/x-copy.js +22 -23
- package/dist/x-currency-field.js +22 -20
- package/dist/x-date-picker.js +42 -36
- package/dist/x-divider.js +9 -9
- package/dist/x-drawer.js +11 -11
- package/dist/x-dropdown.js +9 -9
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +7 -7
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.js +10 -10
- package/dist/x-grid.js +7 -7
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +10 -10
- package/dist/x-modal.js +12 -12
- package/dist/x-navbar.js +12 -12
- package/dist/x-notification-center.js +9 -9
- package/dist/x-pagination.js +16 -16
- package/dist/x-popover.js +11 -11
- package/dist/x-progress-circle.js +9 -9
- package/dist/x-progress.js +9 -9
- package/dist/x-radio.js +11 -11
- package/dist/x-search-field.js +14 -14
- package/dist/x-select.js +9 -9
- package/dist/x-sidebar.js +25 -25
- package/dist/x-skeleton.js +6 -6
- package/dist/x-slider.js +16 -16
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -5
- package/dist/x-stat.js +9 -9
- package/dist/x-stepper.js +16 -16
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +23 -23
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +14 -14
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +17 -17
- package/dist/x-timeline-item.js +23 -23
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +23 -23
- package/dist/x-toaster.js +8 -8
- package/package.json +1 -1
package/dist/x-switch.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.
|
|
4
|
-
e=$APP.
|
|
5
|
-
c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");
|
|
6
|
-
cancelable:!0});a.dispatchEvent(d);return $APP.p(d.defaultPrevented)?(
|
|
7
|
-
$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSwitchHandlers=null;return}}return null}
|
|
8
|
-
null&&$APP.
|
|
2
|
+
var SA=function(a,b,c){return a.setAttribute(b,c)},TA=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},UA=function(a){a=$APP.cf([$APP.Jh,$APP.Yh,$APP.Cg,$APP.Qg,$APP.Zh,$APP.ti,$APP.Ei,$APP.Ci,$APP.ii],[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.N(a);a=
|
|
3
|
+
$APP.J(b,$APP.Ci);var c=$APP.J(b,$APP.ii),d=$APP.J(b,$APP.Jh),e=$APP.J(b,$APP.Yh),g=$APP.J(b,$APP.Cg),h=$APP.J(b,$APP.Qg),k=$APP.J(b,$APP.Zh),m=$APP.J(b,$APP.ti);b=$APP.J(b,$APP.Ei);k=$APP.K(k);g=$APP.K(g);return $APP.cf([$APP.ah,$APP.Wg,$APP.aj,$APP.ni,$APP.Ig,$APP.gi,$APP.U,$APP.Mi,$APP.Vi,$APP.$h,$APP.V],[g,k?"true":"false",$APP.K(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.K(e)])},VA=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=UA(a);var d=$APP.V.g(b),
|
|
4
|
+
e=$APP.ni.g(b);SA(c,"aria-checked",$APP.Wg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");SA(c,"aria-required",$APP.n($APP.ah.g(b))?"true":"false");SA(c,"aria-readonly",$APP.n($APP.aj.g(b))?"true":"false");var g=$APP.$h.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Mi.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Vi.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
|
|
5
|
+
c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");TA(a,"data-checked",e);TA(a,"data-disabled",d);a=$APP.l(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.U.g(b):null):null}return null},WA=function(a){var b=UA(a),c=$APP.V.g(b),d=$APP.aj.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.ni.g(b);c=$APP.p(d);b=$APP.U.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
|
|
6
|
+
cancelable:!0});a.dispatchEvent(d);return $APP.p(d.defaultPrevented)?(TA(a,"checked",c),VA(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},XA=function(a){return function(){return WA(a)}},YA=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),WA(a)):null}},ZA=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(a,"__xSwitchHandlers");if($APP.n(c)){b=
|
|
7
|
+
$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},$A=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return TA(this,c,$APP.K(d))}})},aB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
|
|
8
|
+
null&&$APP.O(d)?SA(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},cB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return bB}});$A(b,"checked","checked");$A(b,"disabled","disabled");$A(b,"readOnly","readonly");$A(b,"required","required");aB(b,"name","name");aB(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
|
|
9
9
|
e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-switch-track-width:44px;--x-switch-track-height:24px;--x-switch-thumb-size:18px;--x-switch-thumb-offset:3px;--x-switch-track-radius:999px;--x-switch-track-bg:#d1d5db;--x-switch-track-bg-checked:#2563eb;--x-switch-thumb-bg:#ffffff;--x-switch-focus-ring:#60a5fa;--x-switch-disabled-opacity:0.45;--x-switch-transition:background 150ms ease,transform 150ms ease;}@media (prefers-color-scheme:dark){:host{--x-switch-track-bg:#4b5563;--x-switch-track-bg-checked:#3b82f6;--x-switch-thumb-bg:#f9fafb;--x-switch-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;}}";
|
|
10
|
-
e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");g.setAttribute("part","track");h.setAttribute("part","thumb");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:g,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}
|
|
11
|
-
d),c.addEventListener("keydown",e),this.__xSwitchHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.
|
|
12
|
-
function(c){
|
|
10
|
+
e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");g.setAttribute("part","track");h.setAttribute("part","thumb");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:g,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}ZA(this);c=$APP.l(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=XA(this),e=YA(this),g={click:d,keydown:e},c.addEventListener("click",
|
|
11
|
+
d),c.addEventListener("keydown",e),this.__xSwitchHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xSwitchRefs"),$APP.n(d)&&$APP.l(d,"control").setAttribute("aria-labelledby",c)));return VA(this)};b.disconnectedCallback=function(){return ZA(this)};b.attributeChangedCallback=function(){return VA(this)};b.formDisabledCallback=
|
|
12
|
+
function(c){TA(this,"disabled",$APP.K(c));return VA(this)};b.formResetCallback=function(){this.removeAttribute("checked");return VA(this)};return a},dB=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",cB())};var bB="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.wd(["x-switch-change-request",new $APP.Q(null,2,[$APP.ui,!0,$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.X,$APP.Bg,$APP.Ji,$APP.ei,$APP.Ji],null)],null),"x-switch-change",new $APP.Q(null,2,[$APP.ui,!1,$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.Qi,$APP.Ji],null)],null)]);$APP.ka("baredom.exports.x_switch.init",dB);export const init=dB;
|
package/dist/x-tab.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
a.hasAttribute("selected"),$APP.
|
|
4
|
-
$APP.
|
|
5
|
-
$APP.
|
|
2
|
+
var hj=function(a,b,c){return $APP.Cc(b,a)?a:c},mj=function(a){var b=$APP.N(a),c=$APP.J(b,$APP.$i),d=$APP.J(b,$APP.wi);a=$APP.J(b,$APP.zh);var e=$APP.J(b,$APP.Ag),g=$APP.J(b,$APP.Vg),h=$APP.J(b,$APP.W);b=$APP.J(b,ij);c=$APP.K(c);var k=(d=$APP.K(d))?"-1":c?"0":"-1";return new $APP.Q(null,8,[$APP.$i,c,$APP.wi,d,$APP.zh,hj(a,jj,"horizontal"),$APP.Ag,hj(e,kj,"md"),$APP.Vg,hj(g,lj,"default"),$APP.W,h,ij,b,$APP.Tg,k],null)},nj=function(a){return new $APP.Q(null,8,[$APP.U,a.getAttribute("value"),$APP.$i,
|
|
3
|
+
a.hasAttribute("selected"),$APP.wi,a.hasAttribute("disabled"),$APP.zh,a.getAttribute("orientation"),$APP.Ag,a.getAttribute("size"),$APP.Vg,a.getAttribute("variant"),$APP.W,a.getAttribute("label"),ij,a.getAttribute("controls")],null)},oj=function(a){var b=mj(nj(a)),c=$APP.l(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.$i.g(b))?"true":"false");$APP.n($APP.wi.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
|
|
4
|
+
$APP.Tg.g(b));var d=ij.g(b),e=$APP.W.g(b);$APP.n($APP.n(d)?$APP.O(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.O(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.$i.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.wi.g(b))?"true":"false");c.setAttribute("data-size",$APP.Ag.g(b));c.setAttribute("data-variant",$APP.Vg.g(b));return c.setAttribute("data-orientation",
|
|
5
|
+
$APP.zh.g(b))}return null},pj=function(a){var b=mj(nj(a)),c=$APP.N(b);b=$APP.J(c,$APP.$i);c=$APP.J(c,$APP.wi);$APP.p(c)&&$APP.p(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},qj=function(a){a.addEventListener("click",function(){return pj(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.C.h(c,"Enter")||$APP.C.h(c," ")?(b.preventDefault(),b=pj(a)):b=null;return b})},rj=function(a){if($APP.l(a,
|
|
6
6
|
"__x_tab_initialized")!==!0){var b=a.attachShadow({mode:"open"}),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:#0f172a;--x-tab-hover-background:rgba(15,23,42,0.05);--x-tab-selected-color:#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:#94a3b8;--x-tab-hover-background:rgba(248,250,252,0.06);--x-tab-selected-color:#60a5fa;--x-tab-selected-background:rgba(59,130,246,0.18);--x-tab-selected-border-color:#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) ease,color var(--x-tab-transition-duration,120ms) ease,border-color var(--x-tab-transition-duration,120ms) 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
|
-
d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;
|
|
8
|
-
set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},
|
|
9
|
-
function(){return $APP.l(this,"__x_tab_initialized")===!0?
|
|
7
|
+
d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;qj(a);a.__x_tab_initialized=!0}oj(a);return a},sj=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
|
|
8
|
+
set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},uj=function(){var a=class extends HTMLElement{};a.observedAttributes=tj;a.prototype.connectedCallback=function(){return rj(this)};a.prototype.attributeChangedCallback=
|
|
9
|
+
function(){return $APP.l(this,"__x_tab_initialized")===!0?oj(this):rj(this)};sj(a);return a},zj=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",uj())},ij=new $APP.M(null,"controls","controls",1340701452);var tj="value selected disabled orientation size variant label controls".split(" "),jj=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),kj=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),lj=new $APP.S(null,new $APP.Q(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.wd(["tab-select",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.U,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_tab.init",zj);export const init=zj;
|
package/dist/x-table-cell.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
"header"))?b:a},
|
|
2
|
+
var yx=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(b,a)?a:c},zx=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},Cx=function(a){var b=$APP.N(a);a=$APP.J(b,Ax);b=$APP.J(b,Bx);if($APP.n($APP.n(a)?a:$APP.O(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},Dx=function(a){var b=$APP.N(a);a=$APP.J(b,$APP.Z);b=$APP.J(b,Ax);return(a=$APP.C.h(a,
|
|
3
|
+
"header"))?b:a},Ex=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},Fx=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},Kx=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
|
g=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:rgba(0,0,0,0.1);--x-table-cell-border-width:1px;--x-table-cell-color:inherit;--x-table-cell-header-color: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:rgba(0,0,0,0.4);--x-table-cell-sort-hover-color:rgba(0,0,0,0.7);--x-table-cell-focus-ring:rgba(59,130,246,0.5);--x-table-cell-transition-duration:150ms;--x-table-cell-sticky-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:rgba(255,255,255,0.1);--x-table-cell-sort-color:rgba(255,255,255,0.4);--x-table-cell-sort-hover-color:rgba(255,255,255,0.7);--x-table-cell-sticky-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;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
|
d.setAttribute("part","cell");e.setAttribute("part","content");e.appendChild(g);h.setAttribute("part","sort-btn");h.setAttribute("type","button");k.setAttribute("name","sort-icon");m.setAttribute("part","sort-icon-default");m.setAttribute("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);
|
|
6
|
-
b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.
|
|
7
|
-
var b=$APP.
|
|
8
|
-
|
|
9
|
-
a.removeAttribute("aria-sort");$APP.n(
|
|
10
|
-
m=$APP.
|
|
11
|
-
break a;default: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 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a.__xTableCellModel=b}},
|
|
12
|
-
return $APP.n(c)?c:
|
|
13
|
-
null},
|
|
14
|
-
Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");return $APP.n(b)?b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.
|
|
15
|
-
"truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sticky",{get:function(){var b=this.getAttribute("sticky");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("sticky",""+$APP.
|
|
16
|
-
set:function(b){return $APP.n(b)?this.setAttribute("sortable",""):this.removeAttribute("sortable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"colSpan",{get:function(){return
|
|
17
|
-
b>0?this.setAttribute("col-span",""+$APP.
|
|
18
|
-
set:function(b){return $APP.n(b)?this.setAttribute("sort-direction",""+$APP.
|
|
19
|
-
$APP.
|
|
20
|
-
customElements.define("x-table-cell",
|
|
21
|
-
|
|
22
|
-
"scope-raw","scope-raw",-773628648),
|
|
23
|
-
$APP.
|
|
24
|
-
1,[$APP.Z,$APP.
|
|
25
|
-
var
|
|
26
|
-
"desc",null,"asc",null],null),null);$APP.ka("baredom.exports.x_table_cell.init",
|
|
6
|
+
b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.Q(null,5,[$APP.rh,b,Gx,d,Hx,e,Ix,h,Jx,m],null);return $APP.l(a,"__xTableCellRefs")},by=function(a){a=$APP.cf([$APP.Ch,Lx,Mx,Nx,Ax,Ox,$APP.ih,Px,Qx,$APP.V,Rx],[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")]);
|
|
7
|
+
var b=$APP.N(a);a=$APP.J(b,$APP.V);var c=$APP.J(b,Rx),d=$APP.J(b,$APP.Ch),e=$APP.J(b,Lx),g=$APP.J(b,Mx),h=$APP.J(b,Nx),k=$APP.J(b,Ax),m=$APP.J(b,Ox),q=$APP.J(b,$APP.ih),r=$APP.J(b,Px);b=$APP.J(b,Qx);return $APP.cf([$APP.ci,Bx,Sx,$APP.Z,Tx,Ax,$APP.Qh,Ux,Ox,$APP.V,Vx],[yx(d,Wx,"start"),yx(h,Xx,"none"),yx(g,Yx,"middle"),yx(q,Zx,"data"),yx(b,$x,"col"),$APP.K(k),yx(r,ay,"none"),zx(c),$APP.K(m),$APP.K(a),zx(e)])},cy=function(a){var b=by(a);if($APP.O($APP.l(a,"__xTableCellModel"),b)){b=$APP.N(b);var c=$APP.J(b,
|
|
8
|
+
Ux),d=$APP.J(b,Vx),e=$APP.J(b,$APP.V),g=$APP.J(b,Bx),h=Kx(a);h=$APP.N(h);var k=$APP.J(h,Ix);h=$APP.J(h,Jx);var m=Dx(b),q=$APP.N(b),r=$APP.J(q,$APP.Z),v=$APP.J(q,$APP.ci),w=$APP.J(q,Sx),z=$APP.J(q,$APP.Qh),A=$APP.J(q,Ox),D=$APP.J(q,$APP.V);$APP.J(q,Ax);$APP.J(q,Bx);var F=a.setAttribute,I=$APP.N(q);var E=$APP.J(I,$APP.Z);I=$APP.J(I,Tx);E=$APP.C.h(E,"header")?$APP.C.h(I,"row")||$APP.C.h(I,"rowgroup")?"rowheader":"columnheader":"cell";F.call(a,"role",E);q=Cx(q);$APP.n(q)?a.setAttribute("aria-sort",q):
|
|
9
|
+
a.removeAttribute("aria-sort");$APP.n(D)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",r);a.setAttribute("data-align",v);a.setAttribute("data-valign",w);$APP.C.h(z,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",z);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.T.g(c):"";a.style.gridRow=d>1?"span "+$APP.T.g(d):"";k.hidden=$APP.p(m);c=parseInt;r=$APP.N(b);
|
|
10
|
+
m=$APP.J(r,$APP.Z);d=$APP.J(r,Ax);r=$APP.J(r,$APP.V);m=$APP.C.h(m,"header");k.tabIndex=c($APP.n(m?$APP.n(d)?$APP.p(r):d:m)?"0":"-1",10);k.setAttribute("aria-label",Fx(g));k.disabled=$APP.K(e);a:switch(e=$APP.N(b),$APP.J(e,Bx)){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';
|
|
11
|
+
break a;default: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 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a.__xTableCellModel=b}},dy=function(a){var b=a.getAttribute("sort-direction");b=yx(b,Xx,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:Ex(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},ey=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");
|
|
12
|
+
return $APP.n(c)?c:by(a)}();$APP.n(function(){var c=Dx(b);return $APP.n(c)?$APP.p($APP.V.g(b)):c}())&&dy(a);return null},fy=function(a){function b(){return ey(a)}var c=Kx(a);c=$APP.N(c);$APP.J(c,Ix).addEventListener("click",b);$APP.ma(a,"__xTableCellHandlers",{"sort-click":b})},gy=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.N(c),c=$APP.J(c,Ix),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
|
|
13
|
+
null},hy=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"data"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scope",{get:function(){var b=this.getAttribute("scope");return $APP.n(b)?b:"col"},set:function(b){return $APP.n(b)?this.setAttribute("scope",""+$APP.T.g(b)):this.removeAttribute("scope")},enumerable:!0,configurable:!0});
|
|
14
|
+
Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");return $APP.n(b)?b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"valign",{get:function(){var b=this.getAttribute("valign");return $APP.n(b)?b:"middle"},set:function(b){return $APP.n(b)?this.setAttribute("valign",""+$APP.T.g(b)):this.removeAttribute("valign")},enumerable:!0,configurable:!0});Object.defineProperty(a,
|
|
15
|
+
"truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sticky",{get:function(){var b=this.getAttribute("sticky");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("sticky",""+$APP.T.g(b)):this.removeAttribute("sticky")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortable",{get:function(){return this.hasAttribute("sortable")},
|
|
16
|
+
set:function(b){return $APP.n(b)?this.setAttribute("sortable",""):this.removeAttribute("sortable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"colSpan",{get:function(){return zx(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&
|
|
17
|
+
b>0?this.setAttribute("col-span",""+$APP.T.g(b)):this.removeAttribute("col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowSpan",{get:function(){return zx(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?this.setAttribute("row-span",""+$APP.T.g(b)):this.removeAttribute("row-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortDirection",{get:function(){var b=this.getAttribute("sort-direction");return $APP.n(b)?b:"none"},
|
|
18
|
+
set:function(b){return $APP.n(b)?this.setAttribute("sort-direction",""+$APP.T.g(b)):this.removeAttribute("sort-direction")},enumerable:!0,configurable:!0})},ly=function(){var a=class extends HTMLElement{};a.observedAttributes=iy;a.prototype.connectedCallback=function(){Kx(this);gy(this);fy(this);cy(this);var b=$APP.l(this,"__xTableCellModel");var c=$APP.n(b)?b:by(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.J(e,$APP.Z);var g=$APP.J(e,Tx),h=$APP.J(e,Ux),k=$APP.J(e,Vx);e=$APP.J(e,
|
|
19
|
+
$APP.ci);b.call(this,new d("x-table-cell-connected",{detail:$APP.xg(new $APP.Q(null,5,[$APP.Z,c,Tx,g,jy,h,ky,k,$APP.ci,e],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){gy(this);this.dispatchEvent(new CustomEvent("x-table-cell-disconnected",{detail:{},bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&cy(this);return null};hy(a.prototype);return a},my=function(){$APP.n(customElements.get("x-table-cell"))||
|
|
20
|
+
customElements.define("x-table-cell",ly());return null},Vx=new $APP.M(null,"row-span","row-span",-365554241),Tx=new $APP.M(null,"scope","scope",-439358418),Ix=new $APP.M(null,"sort-btn","sort-btn",1913954560),Hx=new $APP.M(null,"content","content",15833224),Ox=new $APP.M(null,"truncate?","truncate?",135673334),jy=new $APP.M(null,"colSpan","colSpan",872137394),Gx=new $APP.M(null,"cell","cell",764245084),Sx=new $APP.M(null,"valign","valign",1485197511),Ax=new $APP.M(null,"sortable?","sortable?",291547474),
|
|
21
|
+
Jx=new $APP.M(null,"sort-icon-default","sort-icon-default",-596209230),Rx=new $APP.M(null,"col-span-raw","col-span-raw",1425293661),Mx=new $APP.M(null,"valign-raw","valign-raw",-1083375124),Nx=new $APP.M(null,"sort-direction-raw","sort-direction-raw",-1822100883),Px=new $APP.M(null,"sticky-raw","sticky-raw",1857578519),Ux=new $APP.M(null,"col-span","col-span",-232603210),ky=new $APP.M(null,"rowSpan","rowSpan",826884002),Lx=new $APP.M(null,"row-span-raw","row-span-raw",-1130003707),Qx=new $APP.M(null,
|
|
22
|
+
"scope-raw","scope-raw",-773628648),Bx=new $APP.M(null,"sort-direction","sort-direction",-1635889628);var iy="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
|
|
23
|
+
$APP.cf([$APP.ci,ky,new $APP.M(null,"truncate","truncate",-1327322939),$APP.wi,Sx,$APP.Z,Tx,jy,$APP.Qh,new $APP.M(null,"sortable","sortable",2109633621),new $APP.M(null,"sortDirection","sortDirection",-45816999)],[new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Fh],null),new $APP.Q(null,1,[$APP.Z,$APP.Ji],null),new $APP.Q(null,1,[$APP.Z,$APP.Ji],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,
|
|
24
|
+
1,[$APP.Z,$APP.Fh],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Ji],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null)]);$APP.wd(["x-table-cell-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.ai,$APP.X,$APP.Hi,$APP.X],null),$APP.ui,!0],null),"x-table-cell-connected",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,5,[$APP.Z,$APP.X,Tx,$APP.X,jy,$APP.Fh,ky,$APP.Fh,$APP.ci,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.Q(null,1,[$APP.Y,$APP.xd],null)]);
|
|
25
|
+
var Zx=new $APP.S(null,new $APP.Q(null,2,["data",null,"header",null],null),null),$x=new $APP.S(null,new $APP.Q(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),Wx=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),Yx=new $APP.S(null,new $APP.Q(null,3,["top",null,"middle",null,"bottom",null],null),null),ay=new $APP.S(null,new $APP.Q(null,3,["none",null,"start",null,"end",null],null),null),Xx=new $APP.S(null,new $APP.Q(null,3,["none",null,
|
|
26
|
+
"desc",null,"asc",null],null),null);$APP.ka("baredom.exports.x_table_cell.init",my);export const init=my;
|
package/dist/x-table-row.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b.appendChild(c);b.appendChild(d);a.__xTableRowRefs=new $APP.
|
|
4
|
-
"__xTableRowModel"),b)){
|
|
5
|
-
a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.n(g)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.n(
|
|
6
|
-
null)),bubbles:!0,composed:!0,cancelable:!0}))},
|
|
7
|
-
if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTableRowHandlers=null},
|
|
8
|
-
set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowIndex",{get:function(){return
|
|
9
|
-
b>0?this.setAttribute("row-index",""+$APP.
|
|
10
|
-
4,[$APP.
|
|
11
|
-
|
|
2
|
+
var zp=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},Bp=function(a){var b=$APP.N(a);a=$APP.J(b,Ap);b=$APP.J(b,$APP.V);return $APP.n(a)?$APP.p(b):a},Cp=function(a){if(!$APP.n($APP.l(a,"__xTableRowRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring:rgba(59,130,246,0.5);--x-table-row-transition-duration:150ms;--x-table-row-disabled-opacity:0.45;--x-table-row-cursor:pointer;background:var(--x-table-row-bg);transition:background var(--x-table-row-transition-duration) ease;}@media (prefers-color-scheme:dark){:host{--x-table-row-hover-bg:rgba(255,255,255,0.04);--x-table-row-selected-bg:rgba(99,160,255,0.12);--x-table-row-selected-hover-bg:rgba(99,160,255,0.16);}}:host([data-selected]){background:var(--x-table-row-selected-bg);}:host([data-interactive]){cursor:var(--x-table-row-cursor);}:host([data-interactive]:hover){background:var(--x-table-row-hover-bg);}:host([data-interactive][data-selected]:hover){background:var(--x-table-row-selected-hover-bg);}:host([data-interactive]:focus){outline:none;}:host([data-interactive]:focus-visible){outline:2px solid var(--x-table-row-focus-ring);outline-offset:-2px;}:host([disabled]){opacity:var(--x-table-row-disabled-opacity);pointer-events:none;}slot{display:contents;}@media (prefers-reduced-motion:reduce){:host{transition:none !important;}}";
|
|
3
|
+
b.appendChild(c);b.appendChild(d);a.__xTableRowRefs=new $APP.Q(null,2,[$APP.rh,b,$APP.Ph,d],null)}},Fp=function(a){a=new $APP.Q(null,4,[$APP.Ih,a.hasAttribute("selected"),$APP.V,a.hasAttribute("disabled"),Ap,a.hasAttribute("interactive"),Dp,a.getAttribute("row-index")],null);var b=$APP.N(a);a=$APP.J(b,$APP.Ih);var c=$APP.J(b,$APP.V),d=$APP.J(b,Ap);b=$APP.J(b,Dp);return new $APP.Q(null,4,[$APP.Ih,$APP.K(a),$APP.V,$APP.K(c),Ap,$APP.K(d),Ep,zp(b)],null)},Gp=function(a){var b=Fp(a);if($APP.O($APP.l(a,
|
|
4
|
+
"__xTableRowModel"),b)){Cp(a);var c=$APP.N(b),d=$APP.J(c,$APP.Ih),e=$APP.J(c,$APP.V),g=$APP.J(c,Ap),h=$APP.J(c,Ep);a.setAttribute("role","row");var k=$APP.N(c);var m=$APP.J(k,$APP.Ih);k=$APP.J(k,Ap);m=$APP.n(m)?"true":$APP.n(k)?"false":null;$APP.n(m)?a.setAttribute("aria-selected",m):a.removeAttribute("aria-selected");$APP.n(e)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");h!=null?a.setAttribute("aria-rowindex",""+$APP.T.g(h)):a.removeAttribute("aria-rowindex");$APP.n(d)?
|
|
5
|
+
a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.n(g)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.n(Bp(c))?0:-1;a.__xTableRowModel=b}},Hp=function(a){var b=$APP.l(a,"__xTableRowModel");var c=$APP.n(b)?b:Fp(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.J(e,$APP.Ih);var g=$APP.J(e,$APP.V);e=$APP.J(e,Ep);b.call(a,new d("x-table-row-click",{detail:$APP.xg(new $APP.Q(null,3,[$APP.ri,$APP.n(e)?e:0,$APP.$i,c,$APP.wi,g],
|
|
6
|
+
null)),bubbles:!0,composed:!0,cancelable:!0}))},Ip=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.h(e," "))e=$APP.l(a,"__xTableRowModel"),e=$APP.n(e)?e:Fp(a),$APP.n(Bp(e))&&(d.preventDefault(),Hp(a));return null}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:Fp(a);$APP.n(Bp(d))&&Hp(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTableRowHandlers",{click:c,keydown:b})},Jp=function(a){var b=$APP.l(a,"__xTableRowHandlers");
|
|
7
|
+
if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTableRowHandlers=null},Kp=function(a){Object.defineProperty(a,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
|
|
8
|
+
set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowIndex",{get:function(){return zp(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&
|
|
9
|
+
b>0?this.setAttribute("row-index",""+$APP.T.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},Mp=function(){var a=class extends HTMLElement{};a.observedAttributes=Lp;a.prototype.connectedCallback=function(){Cp(this);Jp(this);Ip(this);Gp(this);var b=$APP.l(this,"__xTableRowModel");var c=$APP.n(b)?b:Fp(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.J(e,$APP.Ih);var g=$APP.J(e,$APP.V),h=$APP.J(e,Ap);e=$APP.J(e,Ep);b.call(this,new d("x-table-row-connected",{detail:$APP.xg(new $APP.Q(null,
|
|
10
|
+
4,[$APP.ri,$APP.n(e)?e:0,$APP.$i,c,$APP.wi,g,$APP.Rh,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){Jp(this);document.dispatchEvent(new CustomEvent("x-table-row-disconnected",{detail:{},bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Gp(this);return null};Kp(a.prototype);return a},Np=function(){$APP.n(customElements.get("x-table-row"))||customElements.define("x-table-row",
|
|
11
|
+
Mp());return null},Ap=new $APP.M(null,"interactive?","interactive?",367617676),Ep=new $APP.M(null,"row-index","row-index",-828710296),Dp=new $APP.M(null,"row-index-raw","row-index-raw",1490649093);var Lp=["selected","disabled","interactive","row-index"];$APP.wd(["x-table-row-click",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.ri,$APP.Fh,$APP.$i,$APP.Ji,$APP.wi,$APP.Ji],null),$APP.ui,!0],null),"x-table-row-connected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.ri,$APP.Fh,$APP.$i,$APP.Ji,$APP.wi,$APP.Ji,$APP.Rh,$APP.Ji],null),$APP.ui,!1],null),"x-table-row-disconnected",new $APP.Q(null,2,[$APP.Y,$APP.xd,$APP.ui,!1],null)]);$APP.ka("baredom.exports.x_table_row.init",Np);export const init=Np;
|
package/dist/x-table.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.
|
|
4
|
-
$APP.
|
|
5
|
-
|
|
6
|
-
c:"";a.setAttribute("role",$APP.
|
|
7
|
-
""):a.removeAttribute("data-striped");$APP.n(h)?a.setAttribute("data-bordered",""):a.removeAttribute("data-bordered");$APP.n(k)?a.setAttribute("data-full-width",""):a.removeAttribute("data-full-width");$APP.n(m)?a.setAttribute("data-compact",""):a.removeAttribute("data-compact");$APP.n(g)&&
|
|
8
|
-
var h=
|
|
9
|
-
"multi")&&($APP.n(g.hasAttribute("selected"))?g.removeAttribute("selected"):g.setAttribute("selected",""))}return null}function d(e){var g=e.target;g=Array.from(g.parentElement.querySelectorAll("x-table-cell")).indexOf(g);var h=$APP.l(e.detail,"direction"),k=$APP.l(e.detail,"previousDirection");g>=0&&(e.stopPropagation(),e=$APP.xg(new $APP.
|
|
10
|
-
d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.ma(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},
|
|
11
|
-
"columns",{get:function(){var b=this.getAttribute("columns");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("columns",""+$APP.
|
|
12
|
-
{get:function(){var b=this.getAttribute("selectable");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("selectable",""+$APP.
|
|
2
|
+
var ts=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},vs=function(a){var b=$APP.l(a,"__xTableRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:rgba(0,0,0,0.1);--x-table-border-radius:8px;--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:inherit;--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:rgba(255,255,255,0.1);--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
|
|
3
|
+
d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.Q(null,3,[$APP.rh,b,us,d,$APP.Ph,e],null);return $APP.l(a,"__xTableRefs")},Hs=function(a){a=new $APP.Q(null,8,[ws,a.getAttribute("columns"),xs,a.getAttribute("caption"),ys,a.getAttribute("selectable"),$APP.kh,a.hasAttribute("striped"),zs,a.hasAttribute("bordered"),As,a.hasAttribute("full-width"),Bs,a.hasAttribute("compact"),Cs,a.getAttribute("row-count")],null);var b=
|
|
4
|
+
$APP.N(a),c=$APP.J(b,ws),d=$APP.J(b,xs),e=$APP.J(b,ys);a=$APP.J(b,$APP.kh);var g=$APP.J(b,zs),h=$APP.J(b,As),k=$APP.J(b,Bs);b=$APP.J(b,Cs);a:{if(typeof c==="string"&&(c=c.trim(),$APP.O(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.C.h(c,""+$APP.T.g(m))?"repeat("+$APP.T.g(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.Cc(Ds,e)?e:"none";return new $APP.Q(null,8,[$APP.Sg,c,Es,d,Fs,e,$APP.kh,$APP.K(a),zs,$APP.K(g),As,$APP.K(h),Bs,$APP.K(k),
|
|
5
|
+
Gs,ts(b)],null)},Is=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.Qc(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},Js=function(a){var b=Hs(a);if($APP.O($APP.l(a,"__xTableModel"),b)){b=$APP.N(b);var c=$APP.J(b,$APP.Sg),d=$APP.J(b,Es),e=$APP.J(b,Fs),g=$APP.J(b,$APP.kh),h=$APP.J(b,zs),k=$APP.J(b,As),m=$APP.J(b,Bs),q=$APP.J(b,Gs),r=vs(a);r=$APP.N(r);r=$APP.J(r,us);a.style.gridTemplateColumns=$APP.n(c)?
|
|
6
|
+
c:"";a.setAttribute("role",$APP.C.h(e,"none")?"table":"grid");c=$APP.C.h(e,"multi")?"true":null;$APP.n(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");q!=null?a.setAttribute("aria-rowcount",""+$APP.T.g(q)):a.removeAttribute("aria-rowcount");$APP.O(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.O(d,"")?(r.textContent=d,r.removeAttribute("hidden")):(r.textContent="",r.setAttribute("hidden",""));$APP.n(g)?a.setAttribute("data-striped",
|
|
7
|
+
""):a.removeAttribute("data-striped");$APP.n(h)?a.setAttribute("data-bordered",""):a.removeAttribute("data-bordered");$APP.n(k)?a.setAttribute("data-full-width",""):a.removeAttribute("data-full-width");$APP.n(m)?a.setAttribute("data-compact",""):a.removeAttribute("data-compact");$APP.n(g)&&Is(a);a.__xTableModel=b}},Ms=function(a){function b(){var e=$APP.l(a,"__xTableModel");e=$APP.n(e)?e:Hs(a);$APP.n($APP.kh.g(e))&&Is(a);return null}function c(e){var g=$APP.l(a,"__xTableModel");g=$APP.n(g)?g:Hs(a);
|
|
8
|
+
var h=Fs.g(g);if($APP.O(h,"none")){g=e.target;e=$APP.l(e.detail,"rowIndex");var k=g.hasAttribute("selected");k=($APP.C.h(h,"single"),$APP.p(k));e=$APP.xg(new $APP.Q(null,3,[$APP.ri,$APP.n(e)?e:0,$APP.$i,k,Ks,h],null));a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0}));if($APP.C.h(h,"single")){h=a.querySelectorAll("x-table-row[selected]");e=h.length;for(k=0;;)if(k<e)h[k].removeAttribute("selected"),k+=1;else break;g.setAttribute("selected","")}else $APP.C.h(h,
|
|
9
|
+
"multi")&&($APP.n(g.hasAttribute("selected"))?g.removeAttribute("selected"):g.setAttribute("selected",""))}return null}function d(e){var g=e.target;g=Array.from(g.parentElement.querySelectorAll("x-table-cell")).indexOf(g);var h=$APP.l(e.detail,"direction"),k=$APP.l(e.detail,"previousDirection");g>=0&&(e.stopPropagation(),e=$APP.xg(new $APP.Q(null,3,[Ls,g,$APP.ai,h,$APP.Hi,k],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));return null}a.addEventListener("x-table-cell-sort",
|
|
10
|
+
d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.ma(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},Ns=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)}a.__xTableHandlers=null},Os=function(a){Object.defineProperty(a,
|
|
11
|
+
"columns",{get:function(){var b=this.getAttribute("columns");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("columns",""+$APP.T.g(b)):this.removeAttribute("columns")},enumerable:!0,configurable:!0});Object.defineProperty(a,"caption",{get:function(){var b=this.getAttribute("caption");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("caption",""+$APP.T.g(b)):this.removeAttribute("caption")},enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",
|
|
12
|
+
{get:function(){var b=this.getAttribute("selectable");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("selectable",""+$APP.T.g(b)):this.removeAttribute("selectable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0});Object.defineProperty(a,"bordered",{get:function(){return this.hasAttribute("bordered")},
|
|
13
13
|
set:function(b){return $APP.n(b)?this.setAttribute("bordered",""):this.removeAttribute("bordered")},enumerable:!0,configurable:!0});Object.defineProperty(a,"compact",{get:function(){return this.hasAttribute("compact")},set:function(b){return $APP.n(b)?this.setAttribute("compact",""):this.removeAttribute("compact")},enumerable:!0,configurable:!0});Object.defineProperty(a,"fullWidth",{get:function(){return this.hasAttribute("full-width")},set:function(b){return $APP.n(b)?this.setAttribute("full-width",
|
|
14
|
-
""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return
|
|
15
|
-
function(){
|
|
16
|
-
"colIndex","colIndex",171239635),
|
|
14
|
+
""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return ts(this.getAttribute("row-count"))},set:function(b){return b==null?this.removeAttribute("row-count"):this.setAttribute("row-count",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0})},Qs=function(){var a=class extends HTMLElement{};a.observedAttributes=Ps;a.prototype.connectedCallback=function(){vs(this);Ns(this);Ms(this);Js(this);return null};a.prototype.disconnectedCallback=
|
|
15
|
+
function(){Ns(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Js(this);return null};Os(a.prototype);return a},Rs=function(){$APP.n(customElements.get("x-table"))||customElements.define("x-table",Qs());return null},Fs=new $APP.M(null,"selectable","selectable",370587038),As=new $APP.M(null,"full-width?","full-width?",1477288349),Cs=new $APP.M(null,"row-count-raw","row-count-raw",-1432781274),ys=new $APP.M(null,"selectable-raw","selectable-raw",-1276314763),Ls=new $APP.M(null,
|
|
16
|
+
"colIndex","colIndex",171239635),Es=new $APP.M(null,"caption","caption",-855383902),zs=new $APP.M(null,"bordered?","bordered?",562358476),Gs=new $APP.M(null,"row-count","row-count",1060167988),us=new $APP.M(null,"caption-div","caption-div",1485363333),xs=new $APP.M(null,"caption-raw","caption-raw",-375935083),Ks=new $APP.M(null,"selectionMode","selectionMode",1264773367),ws=new $APP.M(null,"columns-raw","columns-raw",-2093994046),Bs=new $APP.M(null,"compact?","compact?",1216893298);var Ps="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.wd(["x-table-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[Ls,$APP.Fh,$APP.ai,$APP.X,$APP.Hi,$APP.X],null),$APP.ui,!0],null),"x-table-row-select",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.ri,$APP.Fh,$APP.$i,$APP.Ji,Ks,$APP.X],null),$APP.ui,!0],null)]);var Ds=new $APP.S(null,new $APP.Q(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ka("baredom.exports.x_table.init",Rs);export const init=Rs;
|
package/dist/x-tabs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
null)},
|
|
4
|
-
b:null},a)},
|
|
5
|
-
$APP.
|
|
6
|
-
e=$APP.
|
|
7
|
-
{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},
|
|
8
|
-
new MutationObserver(function(){return
|
|
9
|
-
$APP.
|
|
10
|
-
"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},
|
|
11
|
-
":host{display:block;color-scheme:light dark;}.base{display:block;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}";d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_tabs_root=b;this.__x_tabs_base=d;this.__x_tabs_slot=e;
|
|
12
|
-
"__x_tabs_on_keydown");$APP.n(b)&&this.removeEventListener("keydown",b);b=$APP.l(this,"__x_tabs_observer");return $APP.n(b)?b.disconnect():null};a.prototype.attributeChangedCallback=function(){return
|
|
2
|
+
var tt=function(a){if($APP.tc(a))return $APP.pc(a,null);a=$APP.u(a);if(a==null)return $APP.sf;if(a instanceof $APP.Ib&&a.u===0)return $APP.tf(a.i);for(var b=$APP.hb($APP.sf);;)if(a!=null){var c=$APP.y(a);b=$APP.ib(b,$APP.Da(a));a=c}else return $APP.jb(b)},yt=function(a){var b=$APP.N(a);a=$APP.J(b,$APP.U);var c=$APP.J(b,$APP.zh),d=$APP.J(b,ut),e=$APP.J(b,$APP.W);b=$APP.J(b,vt);c=$APP.Cc(wt,c)?c:"horizontal";d=$APP.Cc(xt,d)?d:"auto";return new $APP.Q(null,5,[$APP.U,a,$APP.zh,c,ut,d,$APP.W,e,vt,$APP.K(b)],
|
|
3
|
+
null)},zt=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},At=function(a){return new $APP.Q(null,5,[$APP.U,a.getAttribute("value"),$APP.zh,a.getAttribute("orientation"),ut,a.getAttribute("activation"),$APP.W,a.getAttribute("label"),vt,a.hasAttribute("loop")],null)},Bt=function(a){return $APP.be($APP.Kd(function(b){return $APP.C.h("X-TAB",b.tagName)},$APP.gc(a.children)))},Ct=function(a){return $APP.p(a.hasAttribute("disabled"))},Dt=function(a){return a.getAttribute("value")},Et=function(a){return $APP.Ad(function(b){return Ct(b)?
|
|
4
|
+
b:null},a)},Ft=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.O(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.C.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},Gt=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?a.setAttribute("selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&a.removeAttribute("selected"))},Ht=function(a,b){var c=a.getAttribute("tabindex");$APP.O(c,b)&&a.setAttribute("tabindex",b)},It=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?
|
|
5
|
+
$APP.O(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Jt=function(a){var b=Bt(a),c=a.getAttribute("value"),d=tt($APP.Cd(Dt,b));$APP.n($APP.n(c)?$APP.Cc(d,c):c)||(c=Et(b),c=$APP.n(c)?Dt(c):null);if($APP.n(c)){a:{d=$APP.u(b);for(var e=null,g=0,h=0;;)if(h<g){var k=e.F(null,h),m=$APP.C.h(Dt(k),c);Gt(k,m);m&&Ct(k)?Ht(k,"0"):Ht(k,"-1");h+=1}else if(d=$APP.u(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),k=e,g=$APP.B(e),e=k):(k=$APP.x(d),
|
|
6
|
+
e=$APP.C.h(Dt(k),c),Gt(k,e),e&&Ct(k)?Ht(k,"0"):Ht(k,"-1"),d=$APP.y(d),e=null,g=0),h=0;else break a}a:for(b=$APP.u(b),d=null,g=e=0;;)if(g<e)k=d.F(null,g),It(k,$APP.C.h(Dt(k),c)),g+=1;else if(b=$APP.u(b))d=b,$APP.yc(d)?(b=$APP.ob(d),e=$APP.pb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.x(d),It(k,$APP.C.h(Dt(k),c)),b=$APP.y(d),d=null,e=0),g=0;else break a;Ft(a,c)}return c},Kt=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.O(c,b):b)?(Ft(a,b),Jt(a),a.dispatchEvent(new CustomEvent("value-change",
|
|
7
|
+
{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},Lt=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},Mt=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:$APP.n(c)?b:a},Nt=function(a){var b=$APP.l(a,"__x_tabs_base"),c=yt(At(a));$APP.n(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.zh.g(c)),c=$APP.W.g(c),$APP.n($APP.n(c)?$APP.O(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return Jt(a)},Ot=function(a){var b=
|
|
8
|
+
new MutationObserver(function(){return Nt(a)});b.observe(a,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},Pt=function(a){function b(d){a:{var e=$APP.be($APP.Kd(Ct,Bt(a))),g=yt(At(a)),h=$APP.zh.g(g);var k=ut.g(g);g=vt.g(g);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowRight")?Lt(q,e,g):$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowLeft")?Mt(q,e,g):$APP.C.h(h,"vertical")&&
|
|
9
|
+
$APP.C.h(m,"ArrowDown")?Lt(q,e,g):$APP.C.h(h,"vertical")&&$APP.C.h(m,"ArrowUp")?Mt(q,e,g):$APP.C.h(m,"Home")?0:$APP.C.h(m,"End")?$APP.B(e)-1:null,h!=null)){d.preventDefault();d=$APP.H(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.C.h(k,"auto")?Kt(a,Dt(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return Kt(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;Ot(a)},Qt=function(a){Object.defineProperty(a.prototype,
|
|
10
|
+
"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},St=function(){var a=class extends HTMLElement{};a.observedAttributes=Rt;a.prototype.connectedCallback=function(){if(zt(this)){Pt(this);var b=Nt(this)}else{if(!zt(this)){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
|
|
11
|
+
":host{display:block;color-scheme:light dark;}.base{display:block;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}";d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_tabs_root=b;this.__x_tabs_base=d;this.__x_tabs_slot=e;Pt(this);this.__x_tabs_initialized=!0}Nt(this);b=this}return b};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__x_tabs_on_tab_select");$APP.n(b)&&this.removeEventListener("tab-select",b);b=$APP.l(this,
|
|
12
|
+
"__x_tabs_on_keydown");$APP.n(b)&&this.removeEventListener("keydown",b);b=$APP.l(this,"__x_tabs_observer");return $APP.n(b)?b.disconnect():null};a.prototype.attributeChangedCallback=function(){return zt(this)?Nt(this):null};Qt(a);return a},Tt=function(){return $APP.n(customElements.get("x-tabs"))?null:customElements.define("x-tabs",St())},ut=new $APP.M(null,"activation","activation",2128521072),vt=new $APP.M(null,"loop","loop",-395552849);var Rt=["value","orientation","activation","label","loop"],wt=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),xt=new $APP.S(null,new $APP.Q(null,2,["auto",null,"manual",null],null),null);$APP.wd(["value-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.U,$APP.X],null)],null)]);$APP.ka("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
|
|
3
|
-
c):b.setValidity({},"",c)},
|
|
4
|
-
a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.
|
|
5
|
-
m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.
|
|
6
|
-
c.name=$APP.
|
|
7
|
-
$APP.n($APP.n(A)?
|
|
8
|
-
"__xTextAreaInternals");return $APP.n(d)?
|
|
9
|
-
$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),
|
|
10
|
-
a.__xTextAreaHandlers=null;return}}return null},
|
|
11
|
-
enumerable:!0,get:function(){var e=
|
|
12
|
-
b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},
|
|
2
|
+
var CF=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},DF=function(a,b,c){return a.setAttribute(b,c)},EF=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},FF=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
|
|
3
|
+
c):b.setValidity({},"",c)},OF=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(b,"textarea"),d=$APP.l(b,"label"),e=$APP.l(b,"hint");b=$APP.l(b,"error");var g=$APP.cf([GF,$APP.ch,$APP.Jh,$APP.sh,$APP.Eh,HF,$APP.Yh,IF,$APP.Cg,$APP.ti,$APP.Ei,$APP.bh,JF,$APP.vh],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
|
|
4
|
+
a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.N(g),k=$APP.J(h,JF),m=$APP.J(h,$APP.vh),q=$APP.J(h,GF),r=$APP.J(h,$APP.ch),v=$APP.J(h,$APP.Jh),w=$APP.J(h,$APP.sh),z=$APP.J(h,$APP.Eh),A=$APP.J(h,HF);g=$APP.J(h,$APP.Yh);var D=$APP.J(h,IF),F=$APP.J(h,$APP.Cg),I=$APP.J(h,$APP.ti),E=$APP.J(h,$APP.Ei);h=$APP.J(h,$APP.bh);var R=$APP.n(w)?w:"",ha=$APP.n(z)?z:"",wa=$APP.n(r)?r:"";F=$APP.K(F);I=$APP.K(I);
|
|
5
|
+
m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.O(z,"")&&z!=null;v=$APP.n(v)?v:"";E=$APP.n(E)?E:"";k=CF(k);r=typeof r==="string"&&$APP.O(r,"")&&r!=null;w=typeof w==="string"&&$APP.O(w,"")&&w!=null;q=typeof q==="string"&&$APP.Cc(KF,q)?q:"vertical";A=CF(A);g=$APP.cf([$APP.ah,$APP.aj,$APP.Bi,$APP.fh,$APP.gi,$APP.U,LF,$APP.Mh,$APP.jh,MF,$APP.ki,NF,$APP.Vh,$APP.W,$APP.ph,$APP.mi,$APP.V],[F,I,m,z,v,E,k,r,w,q,ha,CF(D),$APP.n(A)?A:3,wa,R,$APP.n(h)?h:"",$APP.K(g)]);D=$APP.jh.g(g);A=$APP.fh.g(g);h=$APP.Mh.g(g);
|
|
6
|
+
c.name=$APP.gi.g(g);c.placeholder=$APP.Bi.g(g);c.disabled=$APP.V.g(g);c.readOnly=$APP.aj.g(g);c.required=$APP.ah.g(g);c.rows=$APP.Vh.g(g);c.autocomplete=$APP.mi.g(g);R=NF.g(g);$APP.n(R)?DF(c,"maxlength",""+$APP.T.g(R)):c.removeAttribute("maxlength");R=LF.g(g);$APP.n(R)?DF(c,"minlength",""+$APP.T.g(R)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",MF.g(g));DF(c,"aria-required",$APP.n($APP.ah.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(D)?"true":"false");R=
|
|
7
|
+
$APP.n($APP.n(A)?D:A)?"hint error":$APP.n(A)?"hint":$APP.n(D)?"error":null;$APP.n(R)?c.setAttribute("aria-describedby",R):c.removeAttribute("aria-describedby");d.textContent=$APP.W.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.ki.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.ph.g(g);$APP.n(D)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");EF(a,"data-invalid",D);d=$APP.l(a,
|
|
8
|
+
"__xTextAreaInternals");return $APP.n(d)?FF(a,d,c):null}return null},PF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},QF=function(a){return function(){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),FF(a,e,b));return PF(a,"x-text-area-input",{name:d,value:c})}return null}},RF=function(a){return function(){var b=
|
|
9
|
+
$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),FF(a,e,b));return PF(a,"x-text-area-change",{name:d,value:c})}return null}},SF=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.l(b,"textarea");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));
|
|
10
|
+
a.__xTextAreaHandlers=null;return}}return null},TF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.O(d)?DF(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},UF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return EF(this,c,$APP.K(d))}})},VF=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
|
|
11
|
+
enumerable:!0,get:function(){var e=CF(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.O(e)&&e>0?DF(this,c,""+$APP.T.g(Math.floor(e))):this.removeAttribute(c)}})},WF=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.T.g(b):"";this.setAttribute("value",
|
|
12
|
+
b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},YF=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return XF}});WF(b);TF(b,"name","name");TF(b,"placeholder","placeholder");TF(b,"autocomplete","autocomplete");UF(b,"disabled","disabled");UF(b,"readOnly","readonly");UF(b,"required","required");VF(b,"rows","rows",3);VF(b,"maxLength","maxlength",null);VF(b,"minLength",
|
|
13
13
|
"minlength",null);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),k=document.createElement("textarea"),m=document.createElement("span"),q=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:0.875rem;--x-text-area-bg:#ffffff;--x-text-area-color:#111827;--x-text-area-border:1px solid #d1d5db;--x-text-area-border-radius:6px;--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:#2563eb;--x-text-area-error-color:#dc2626;--x-text-area-hint-color:#6b7280;--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:1rem;--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:#d1d5db;--x-text-area-bg:#1f2937;--x-text-area-color:#f9fafb;--x-text-area-border:1px solid #4b5563;--x-text-area-focus-ring-color:#3b82f6;--x-text-area-error-color:#f87171;--x-text-area-hint-color:#9ca3af;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
|
|
14
14
|
e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","textarea");h.setAttribute("part","textarea-wrapper");k.setAttribute("part","textarea");k.setAttribute("id","textarea");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");q.setAttribute("part","error");q.setAttribute("id","error");q.setAttribute("role","alert");q.setAttribute("aria-live","assertive");h.appendChild(k);
|
|
15
|
-
e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(q);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:k,hint:m,error:q};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}
|
|
16
|
-
$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=
|
|
17
|
-
"disabled",$APP.
|
|
18
|
-
|
|
19
|
-
$APP.
|
|
20
|
-
"readonly"],null),new $APP.
|
|
15
|
+
e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(q);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:k,hint:m,error:q};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}SF(this);c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=
|
|
16
|
+
$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=QF(this),e=RF(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return OF(this)};b.disconnectedCallback=function(){return SF(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.l(c,"textarea"),$APP.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return OF(this)};b.formDisabledCallback=function(c){EF(this,
|
|
17
|
+
"disabled",$APP.K(c));return OF(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&($APP.l(c,"textarea").value="");c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&c.setFormValue("");return OF(this)};return a},ZF=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",YF())},LF=new $APP.M(null,"minlength","minlength",259053545),JF=new $APP.M(null,"minlength-raw","minlength-raw",-1245403779),
|
|
18
|
+
IF=new $APP.M(null,"maxlength-raw","maxlength-raw",-886656470),GF=new $APP.M(null,"resize-raw","resize-raw",-287517888),NF=new $APP.M(null,"maxlength","maxlength",-1163911985),HF=new $APP.M(null,"rows-raw","rows-raw",-1828357145),MF=new $APP.M(null,"resize","resize",297367086);var XF="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),KF=new $APP.S(null,new $APP.Q(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
|
|
19
|
+
$APP.cf([$APP.wi,$APP.gi,$APP.U,new $APP.M(null,"minLength","minLength",-1538722770),$APP.Vh,$APP.zi,new $APP.M(null,"maxLength","maxLength",-1633020073),$APP.mi,$APP.Mg],[new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Fh,$APP.Pg,"minlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.Fh,$APP.Pg,"rows"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,
|
|
20
|
+
"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.Fh,$APP.Pg,"maxlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"required"],null)]);$APP.ka("baredom.exports.x_text_area.init",ZF);export const init=ZF;
|