@vanelsas/baredom 2.0.1 → 2.1.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 +25 -0
- package/README.md +26 -7
- package/dist/base.js +405 -403
- package/dist/x-alert.js +19 -19
- package/dist/x-avatar-group.js +11 -11
- package/dist/x-avatar.js +15 -15
- package/dist/x-badge.js +11 -11
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +14 -14
- package/dist/x-button.js +16 -16
- package/dist/x-cancel-dialogue.js +17 -17
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +35 -0
- package/dist/x-chart.js +48 -48
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +9 -9
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +46 -0
- package/dist/x-command-palette.js +27 -32
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +23 -23
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.js +42 -42
- package/dist/x-divider.js +10 -13
- package/dist/x-drawer.js +12 -12
- package/dist/x-dropdown.js +10 -10
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +7 -7
- package/dist/x-form-field.js +16 -16
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +18 -18
- package/dist/x-grid.js +6 -6
- package/dist/x-kinetic-font.js +29 -28
- package/dist/x-kinetic-typography.js +39 -39
- package/dist/x-liquid-dock.js +39 -39
- package/dist/x-liquid-fill.js +45 -44
- package/dist/x-liquid-glass.js +47 -47
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +11 -12
- package/dist/x-metaball-cursor.js +27 -28
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +39 -39
- package/dist/x-navbar.js +13 -13
- package/dist/x-neural-glow.js +34 -34
- package/dist/x-notification-center.js +10 -9
- package/dist/x-organic-divider.js +19 -19
- package/dist/x-organic-progress.js +38 -38
- package/dist/x-organic-shape.js +14 -14
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +53 -0
- package/dist/x-popover.js +15 -15
- package/dist/x-progress-circle.js +11 -11
- package/dist/x-progress.js +11 -11
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +12 -12
- package/dist/x-scroll-parallax.js +19 -19
- package/dist/x-scroll-stack.js +19 -19
- package/dist/x-scroll-story.js +36 -36
- package/dist/x-scroll-timeline.js +47 -47
- package/dist/x-scroll.js +42 -42
- package/dist/x-search-field.js +15 -15
- package/dist/x-select.js +11 -11
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton.js +6 -6
- package/dist/x-slider.js +16 -16
- package/dist/x-soft-body.js +22 -22
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -5
- package/dist/x-splash.js +13 -13
- package/dist/x-stat.js +11 -11
- package/dist/x-stepper.js +16 -16
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +8 -8
- package/dist/x-table-cell.js +24 -24
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +16 -16
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +19 -19
- package/dist/x-theme.js +25 -24
- package/dist/x-timeline-item.js +24 -24
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +25 -25
- package/dist/x-toaster.js +8 -8
- package/dist/x-typography.js +11 -11
- package/package.json +14 -2
package/dist/x-divider.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$APP.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
e.setAttribute("part","container");var g=document.createElement("div");g.setAttribute("part","line");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xDividerRefs={root:c,container:e,mode:"no-label"}}return eO(this)};a.disconnectedCallback=function(){return null};a.attributeChangedCallback=function(c,d,e){return $APP.O(d,e)?$APP.r($APP.l(this,"__xDividerRefs"))?eO(this):null:null};b.observedAttributes=jO;b.prototype=a;return customElements.define("x-divider",b)},lO=function(){return kO()};
|
|
13
|
-
$APP.f=RN.prototype;$APP.f.S=function(a,b){return this===b};$APP.f.wb=function(){return this.state};$APP.f.U=function(){return this.u};$APP.f.T=function(){return $APP.ia(this)};$APP.f.Y=$APP.Ob;$APP.f.P=function(a,b,c){$APP.nb(b,"#object[cljs.core.Atom ");$APP.vg(new $APP.P(null,1,[$APP.mh,this.state],null),b,c);return $APP.nb(b,"]")};
|
|
14
|
-
var XN=new $APP.K(null,"inset-raw","inset-raw",89351124),$N=new $APP.K(null,"inset","inset",-396367740),YN=new $APP.K(null,"role-raw","role-raw",777951354),aO=new $APP.K(null,"length","length",588987862),VN=new $APP.K(null,"length-raw","length-raw",-1832244116),ZN=new $APP.K(null,"thickness","thickness",-940175454),WN=new $APP.K(null,"thickness-raw","thickness-raw",1843812655);var jO="orientation variant thickness color inset length label align role aria-label".split(" "),dO=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),cO=new $APP.R(null,new $APP.P(null,3,["dashed",null,"dotted",null,"solid",null],null),null),bO=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null);$APP.ka("baredom.exports.x_divider.init",lO);export const init=lO;
|
|
2
|
+
var VP=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.J(a,c)?c:b},WP=function(a){for(;;){var b=a.firstChild;if($APP.n(b))a.removeChild(b);else break}},gQ=function(a){var b=$APP.xf([$APP.Jk,$APP.Wh,$APP.yi,XP,YP,$APP.om,ZP,$APP.jl,$APP.uj,$P],[a.getAttribute("variant"),a.getAttribute("label"),a.getAttribute("align"),a.getAttribute("length"),a.getAttribute("thickness"),a.getAttribute("color"),a.getAttribute("inset"),a.getAttribute("orientation"),a.getAttribute("aria-label"),
|
|
3
|
+
a.getAttribute("role")]),c=$APP.M(b);b=$APP.D(c,$APP.uj);var d=$APP.D(c,$P),e=$APP.D(c,$APP.Wh);var g=$APP.D(c,$APP.Jk);var h=$APP.D(c,$APP.yi),l=$APP.D(c,XP),m=$APP.D(c,YP),p=$APP.D(c,$APP.om),q=$APP.D(c,ZP);c=$APP.D(c,$APP.jl);g=$APP.xf([$APP.Ph,$APP.Wi,aQ,bQ,$APP.lj,$APP.Nh,$APP.Gk,$APP.U,cQ,$APP.cl],[d,VP(dQ,"center",h),m,q,p,VP(eQ,"solid",g),VP(fQ,"horizontal",c),e,l,b]);c=$APP.M(g);d=$APP.D(c,$APP.cl);h=$APP.D(c,$APP.Wi);l=$APP.D(c,aQ);m=$APP.D(c,bQ);p=$APP.D(c,$APP.lj);q=$APP.D(c,$APP.Nh);
|
|
4
|
+
e=$APP.D(c,$APP.Gk);b=$APP.D(c,$APP.U);var v=$APP.D(c,cQ);c=typeof b==="string"&&b.trim().length>0;var x=a.style;a.setAttribute("data-orientation",e);a.setAttribute("data-variant",q);a.setAttribute("data-align",h);x.setProperty("--x-divider-thickness",$APP.n(l)?l:"1px");x.setProperty("--x-divider-inset",$APP.n(m)?m:"0px");x.setProperty("--x-divider-length",$APP.n(v)?v:"auto");$APP.n(p)?x.setProperty("--x-divider-color",p):x.removeProperty("--x-divider-color");g=$APP.Ph.g(g);$APP.J(new $APP.S(null,
|
|
5
|
+
new $APP.R(null,2,["none",null,"presentation",null],null),null),g)?a.setAttribute("role","presentation"):a.setAttribute("role","separator");$APP.C.i(e,"vertical")?a.setAttribute("aria-orientation","vertical"):a.removeAttribute("aria-orientation");$APP.n($APP.n(d)?d.length>0:d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");c?(d=$APP.k(a,"__xDividerRefs"),$APP.C.i($APP.k(d,"mode"),"no-label")&&(e=$APP.k(d,"container"),WP(e),g=document.createElement("div"),h=document.createElement("span"),
|
|
6
|
+
l=document.createElement("slot"),m=document.createElement("span"),p=document.createElement("div"),g.setAttribute("part","line-left"),h.setAttribute("part","label"),l.setAttribute("name","label"),m.setAttribute("part","label-text"),p.setAttribute("part","line-right"),h.appendChild(l),h.appendChild(m),e.appendChild(g),e.appendChild(h),e.appendChild(p),d["line-left"]=g,d["label-wrap"]=h,d["label-text"]=m,d["line-right"]=p,d.mode="label"),a=$APP.k($APP.k(a,"__xDividerRefs"),"label-text"),$APP.n(a)&&(a.textContent=
|
|
7
|
+
b)):(a=$APP.k(a,"__xDividerRefs"),$APP.C.i($APP.k(a,"mode"),"label")&&(b=$APP.k(a,"container"),WP(b),d=document.createElement("div"),d.setAttribute("part","line"),b.appendChild(d),a["line-left"]=null,a["label-wrap"]=null,a["label-text"]=null,a["line-right"]=null,a.mode="no-label"));return null},hQ=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},
|
|
8
|
+
iQ=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},jQ=function(a){iQ(a,"orientation","horizontal");iQ(a,"variant","solid");iQ(a,"align","center");hQ(a,"label");hQ(a,"thickness");hQ(a,"color");hQ(a,"inset");hQ(a,"length")},lQ=function(){var a=class extends HTMLElement{};a.observedAttributes=kQ;a.prototype.connectedCallback=
|
|
9
|
+
function(){if(!$APP.n($APP.k(this,"__xDividerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-divider-color:rgba(0,0,0,0.12);--x-divider-thickness:1px;--x-divider-inset:0px;--x-divider-length:auto;}@media (prefers-color-scheme:dark){:host{--x-divider-color:rgba(255,255,255,0.15);}}[part\x3dcontainer]{display:flex;align-items:center;width:var(--x-divider-length,auto);box-sizing:border-box;}:host([data-orientation\x3d'vertical']) [part\x3dcontainer]{flex-direction:column;height:var(--x-divider-length,auto);width:auto;}[part\x3dline],[part\x3dline-left],[part\x3dline-right]{flex:1;border:none;background:var(--x-divider-color,rgba(0,0,0,0.12));height:var(--x-divider-thickness,1px);margin:var(--x-divider-inset,0px) 0;}:host([data-orientation\x3d'vertical']) [part\x3dline],:host([data-orientation\x3d'vertical']) [part\x3dline-left],:host([data-orientation\x3d'vertical']) [part\x3dline-right]{width:var(--x-divider-thickness,1px);height:auto;margin:0 var(--x-divider-inset,0px);}:host([data-variant\x3d'dashed']) [part\x3dline],:host([data-variant\x3d'dashed']) [part\x3dline-left],:host([data-variant\x3d'dashed']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}:host([data-variant\x3d'dotted']) [part\x3dline],:host([data-variant\x3d'dotted']) [part\x3dline-left],:host([data-variant\x3d'dotted']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}[part\x3dlabel]{display:flex;align-items:center;flex-shrink:0;padding:0 0.75em;font-size:0.75rem;font-weight:500;color:var(--x-divider-color);white-space:nowrap;}:host([data-orientation\x3d'vertical']) [part\x3dlabel]{padding:0.75em 0;writing-mode:horizontal-tb;}[part\x3dlabel-text]{display:inline;}:host([data-align\x3d'start']) [part\x3dline-left]{flex:0 0 1rem;}:host([data-align\x3d'end']) [part\x3dline-right]{flex:0 0 1rem;}@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important;}}";
|
|
10
|
+
d.setAttribute("part","container");var e=document.createElement("div");e.setAttribute("part","line");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xDividerRefs={root:b,container:d,mode:"no-label"}}return gQ(this)};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){return $APP.N(c,d)?$APP.n($APP.k(this,"__xDividerRefs"))?gQ(this):null:null};jQ(a.prototype);return a},mQ=function(){$APP.n(customElements.get("x-divider"))||customElements.define("x-divider",
|
|
11
|
+
lQ());return null},ZP=new $APP.K(null,"inset-raw","inset-raw",89351124),bQ=new $APP.K(null,"inset","inset",-396367740),$P=new $APP.K(null,"role-raw","role-raw",777951354),cQ=new $APP.K(null,"length","length",588987862),XP=new $APP.K(null,"length-raw","length-raw",-1832244116),aQ=new $APP.K(null,"thickness","thickness",-940175454),YP=new $APP.K(null,"thickness-raw","thickness-raw",1843812655);var kQ="orientation variant thickness color inset length label align role aria-label".split(" "),fQ=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),eQ=new $APP.S(null,new $APP.R(null,3,["dashed",null,"dotted",null,"solid",null],null),null),dQ=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"end",null],null),null);$APP.fa("baredom.exports.x_divider.init",mQ);export const init=mQ;
|
package/dist/x-drawer.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","backdrop");e.setAttribute("part","panel");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");g.setAttribute("part","header");h.setAttribute("name","header");
|
|
4
|
-
footer:p};return $APP.
|
|
5
|
-
composed:!0,cancelable:!1}))},
|
|
6
|
-
$APP.
|
|
7
|
-
$APP.
|
|
8
|
-
$APP.
|
|
9
|
-
$APP.
|
|
10
|
-
if($APP.
|
|
11
|
-
return $APP.
|
|
12
|
-
writable:!0});Object.defineProperty(a,"hide",{value:function(){return
|
|
13
|
-
function(){
|
|
2
|
+
var fF=function(a){var b=$APP.k(a,"__xDrawerRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("div"),m=document.createElement("slot"),p=document.createElement("div"),q=document.createElement("slot");c.textContent=":host{display:contents;color-scheme:light dark;--x-drawer-size:20rem;--x-drawer-bg:var(--x-color-bg,Canvas);--x-drawer-fg:var(--x-color-text,CanvasText);--x-drawer-backdrop:rgb(0 0 0/0.4);--x-drawer-shadow:var(--x-shadow-lg,0 8px 24px rgb(0 0 0/0.18));--x-drawer-duration:var(--x-transition-duration,200ms);--x-drawer-easing:ease;--x-drawer-z:1000;--x-drawer-header-padding:1rem 1.25rem;--x-drawer-body-padding:1rem 1.25rem;--x-drawer-footer-padding:0.75rem 1.25rem;--x-drawer-border:var(--x-color-border,color-mix(in srgb,currentColor 12%,transparent));}[part\x3dbackdrop]{display:none;position:fixed;inset:0;background:var(--x-drawer-backdrop);z-index:var(--x-drawer-z);}:host([data-open\x3dtrue]) [part\x3dbackdrop]{display:block;}[part\x3dpanel]{position:fixed;background:var(--x-drawer-bg);color:var(--x-drawer-fg);box-shadow:var(--x-drawer-shadow);display:flex;flex-direction:column;overflow:hidden;z-index:calc(var(--x-drawer-z) + 1);transition:transform var(--x-drawer-duration) var(--x-drawer-easing);}:host([data-placement\x3dleft]) [part\x3dpanel],:host([data-placement\x3dright]) [part\x3dpanel]{top:0;bottom:0;width:var(--x-drawer-size);max-width:100%;}:host([data-placement\x3dleft]) [part\x3dpanel]{left:0;transform:translateX(-100%);}:host([data-placement\x3dright]) [part\x3dpanel]{right:0;transform:translateX(100%);}:host([data-placement\x3dtop]) [part\x3dpanel],:host([data-placement\x3dbottom]) [part\x3dpanel]{left:0;right:0;height:var(--x-drawer-size);max-height:100dvh;}:host([data-placement\x3dtop]) [part\x3dpanel]{top:0;transform:translateY(-100%);}:host([data-placement\x3dbottom]) [part\x3dpanel]{bottom:0;transform:translateY(100%);}:host([data-open\x3dtrue]) [part\x3dpanel]{transform:none;}[part\x3dpanel]:focus{outline:none;}[part\x3dheader]{padding:var(--x-drawer-header-padding);border-bottom:1px solid var(--x-drawer-border);flex-shrink:0;}[part\x3dbody]{padding:var(--x-drawer-body-padding);overflow-y:auto;flex:1;}[part\x3dfooter]{padding:var(--x-drawer-footer-padding);border-top:1px solid var(--x-drawer-border);flex-shrink:0;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none;}}@media (prefers-color-scheme:dark){:host{--x-drawer-bg:var(--x-color-bg,#1c1d24);--x-drawer-fg:var(--x-color-text,#e2e4ef);--x-drawer-border:var(--x-color-border,rgb(255 255 255/0.08));--x-drawer-shadow:var(--x-shadow-lg,0 8px 40px rgb(0 0 0/0.55));--x-drawer-backdrop:rgb(0 0 0/0.55);}}";
|
|
3
|
+
d.setAttribute("part","backdrop");e.setAttribute("part","panel");e.setAttribute("role","dialog");e.setAttribute("aria-modal","true");g.setAttribute("part","header");h.setAttribute("name","header");l.setAttribute("part","body");p.setAttribute("part","footer");q.setAttribute("name","footer");g.appendChild(h);l.appendChild(m);p.appendChild(q);e.appendChild(g);e.appendChild(l);e.appendChild(p);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xDrawerRefs={root:b,backdrop:d,panel:e,header:g,body:l,
|
|
4
|
+
footer:p};return $APP.k(a,"__xDrawerRefs")},hF=function(a){a=new $APP.R(null,3,[$APP.ii,a.hasAttribute("open"),$APP.pm,a.getAttribute("placement"),$APP.Wh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.ii);a=$APP.D(b,$APP.pm);b=$APP.D(b,$APP.Wh);c=$APP.F(c);a=typeof a==="string"&&$APP.J(gF,a)?a:"right";b=typeof b==="string"&&$APP.N(b,"")?b:"Drawer";return new $APP.R(null,3,[$APP.Wl,c,$APP.nj,a,$APP.U,b],null)},iF=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,
|
|
5
|
+
composed:!0,cancelable:!1}))},jF=function(a){return $APP.ve($APP.ce(function(b){var c=window.getComputedStyle(b);return $APP.N("none",c.display)&&$APP.N("hidden",c.visibility)&&b.offsetWidth>0&&b.offsetHeight>0},$APP.tc(a.querySelectorAll("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex\x3d'-1'])"))))},kF=function(a){var b=$APP.k(a,"__xDrawerRefs");b=$APP.n(b)?$APP.k(b,"panel"):null;var c=$APP.k(a,"__xDrawerRestore"),d=
|
|
6
|
+
$APP.k(a,"__xDrawerPanelTab")===!0;a.__xDrawerTabbables=null;a.__xDrawerRestore=null;$APP.n($APP.n(b)?d:b)&&(b.removeAttribute("tabindex"),a.__xDrawerPanelTab=!1);$APP.n($APP.n(c)?c.isConnected:c)&&c.focus()},lF=function(a,b){iF(a,"x-drawer-dismiss",{reason:b});a.removeAttribute("open");return null},mF=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");return null},nF=function(a){a.removeAttribute("open");return null},oF=function(a){var b=fF(a);b=$APP.k(b,"panel");var c=hF(a),d=
|
|
7
|
+
$APP.Wl.g(c),e=$APP.k(a,"__xDrawerPrevOpen");a.setAttribute("data-open",$APP.n(d)?"true":"false");a.setAttribute("data-placement",$APP.nj.g(c));b.setAttribute("aria-label",$APP.U.g(c));$APP.n(d)?b.removeAttribute("aria-hidden"):b.setAttribute("aria-hidden","true");$APP.N(e,d)&&(a.__xDrawerPrevOpen=d,iF(a,"x-drawer-toggle",{open:d}),$APP.n(d)?setTimeout(function(){var g=$APP.k(a,"__xDrawerRefs");g=$APP.n(g)?$APP.k(g,"panel"):null;var h=jF(a);a.__xDrawerRestore=document.activeElement;var l=$APP.n(h)?
|
|
8
|
+
$APP.ph(h):null;a.__xDrawerTabbables=l;$APP.t(h)?$APP.u(h).focus():$APP.n(g)&&($APP.n(g.hasAttribute("tabindex"))||(g.setAttribute("tabindex","-1"),a.__xDrawerPanelTab=!0),g.focus());return null},0):kF(a))},pF=function(a){function b(g){var h=g.key;if($APP.C.i(h,"Escape"))g.preventDefault(),lF(a,"escape");else if($APP.C.i(h,"Tab")){h=$APP.k(a,"__xDrawerTabbables");h=$APP.n(h)?$APP.ve($APP.tc(h)):$APP.ee;var l=$APP.k(a,"__xDrawerRefs");l=$APP.n(l)?$APP.k(l,"panel"):null;if($APP.Gc(h))g.preventDefault(),
|
|
9
|
+
$APP.n(l)&&l.focus();else{l=document.activeElement;var m=$APP.u(h);h=$APP.wc(h);var p=g.shiftKey;$APP.n($APP.n(p)?$APP.C.i(l,m):p)?(g.preventDefault(),h.focus()):$APP.r(p)&&$APP.C.i(l,h)&&(g.preventDefault(),m.focus())}}return null}function c(){return lF(a,"backdrop")}var d=fF(a),e=$APP.k(d,"panel");$APP.k(d,"backdrop").addEventListener("click",c);e.addEventListener("keydown",b);$APP.ia(a,"__xDrawerHandlers",{backdrop:c,keydown:b})},qF=function(a){var b=$APP.k(a,"__xDrawerHandlers"),c=$APP.k(a,"__xDrawerRefs");
|
|
10
|
+
if($APP.n($APP.n(b)?c:b)){var d=$APP.k(c,"backdrop");c=$APP.k(c,"panel");var e=$APP.k(b,"backdrop");b=$APP.k(b,"keydown");$APP.n(e)&&d.removeEventListener("click",e);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xDrawerHandlers=null},rF=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.n(b)?mF(this):nF(this)},enumerable:!0,configurable:!0});Object.defineProperty(a,"placement",{get:function(){var b=this.getAttribute("placement");
|
|
11
|
+
return $APP.n(b)?b:"right"},set:function(b){return b==null?this.removeAttribute("placement"):this.setAttribute("placement",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Drawer"},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"show",{value:function(){return mF(this)},enumerable:!0,configurable:!0,
|
|
12
|
+
writable:!0});Object.defineProperty(a,"hide",{value:function(){return nF(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"toggle",{value:function(){$APP.n(this.hasAttribute("open"))?nF(this):mF(this);return null},enumerable:!0,configurable:!0,writable:!0})},tF=function(){if(!$APP.n(customElements.get("x-drawer"))){var a=class extends HTMLElement{};a.observedAttributes=sF;a.prototype.connectedCallback=function(){fF(this);qF(this);pF(this);oF(this);return null};a.prototype.disconnectedCallback=
|
|
13
|
+
function(){qF(this);kF(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&oF(this);return null};rF(a.prototype);customElements.define("x-drawer",a)}return null},uF=function(){return tF()};var gF=new $APP.S(null,new $APP.R(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),sF=["open","placement","label"];$APP.Pd(["x-drawer-toggle",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.tl,$APP.Bj],null)],null),"x-drawer-dismiss",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.ri,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_drawer.init",uF);export const init=uF;
|
package/dist/x-dropdown.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
a)}return null},
|
|
4
|
-
$APP.
|
|
5
|
-
b.key;return $APP.
|
|
6
|
-
"escape"):null}}},
|
|
7
|
-
function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.
|
|
8
|
-
null:
|
|
2
|
+
var $p=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},bq=function(a){var b=$APP.k(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.k(b,"trigger"),d=$APP.k(b,"label");b=$APP.k(b,"panel");var e=a.hasAttribute("open"),g=a.hasAttribute("disabled");var h=a.getAttribute("label");h=$APP.n(h)?h:"";a=a.getAttribute("placement");a=$APP.J(aq,a)?a:"bottom-start";d.textContent=h;c.setAttribute("aria-expanded",$APP.n(e)?"true":"false");$p(c,"disabled",g);return b.setAttribute("data-placement",
|
|
3
|
+
a)}return null},cq=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-dropdown-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),a.dispatchEvent(new CustomEvent("x-dropdown-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},dq=function(a){var b=$APP.k(a,"__xDropdownHandlers");if($APP.n(b)){var c=
|
|
4
|
+
$APP.k(b,"docClick"),d=$APP.k(b,"docKeydown");return setTimeout(function(){return $APP.n(a.hasAttribute("open"))?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},eq=function(a){a=$APP.k(a,"__xDropdownHandlers");if($APP.n(a)){var b=$APP.k(a,"docKeydown");document.removeEventListener("click",$APP.k(a,"docClick"));return document.removeEventListener("keydown",b)}return null},fq=function(a){return{triggerClick:function(){return cq(a,"pointer")},triggerKeydown:function(b){var c=
|
|
5
|
+
b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),cq(a,"keyboard")):null},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.r(a.contains(b))?cq(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.uc(b.composedPath()),b=$APP.Td(function(c){return c===a},b),$APP.n(b)?null:cq(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?cq(a,
|
|
6
|
+
"escape"):null}}},gq=function(a){var b=$APP.k(a,"__xDropdownRefs");if($APP.n(b)){var c=$APP.k(a,"__xDropdownHandlers");$APP.n(c)&&(b=$APP.k(b,"trigger"),b.removeEventListener("click",$APP.k(c,"triggerClick")),b.removeEventListener("keydown",$APP.k(c,"triggerKeydown")),a.removeEventListener("focusout",$APP.k(c,"hostFocusout")))}},hq=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $p(this,c,$APP.F(d))}})},iq=
|
|
7
|
+
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){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},kq=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return jq}});hq(b,"open","open");hq(b,"disabled","disabled");iq(b,"label","label");iq(b,"placement","placement");b.show=function(){return $APP.n(this.hasAttribute("open"))?
|
|
8
|
+
null:cq(this,"programmatic")};b.hide=function(){return $APP.n(this.hasAttribute("open"))?cq(this,"programmatic"):null};b.toggle=function(){return cq(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xDropdownRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("div"),m=document.createElement("div"),p=document.createElement("slot");
|
|
9
9
|
d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-dropdown-trigger-bg:var(--x-color-surface-hover,#f8fafc);--x-dropdown-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-dropdown-trigger-bg-active:var(--x-color-surface-active,#e2e8f0);--x-dropdown-trigger-color:var(--x-color-text,#0f172a);--x-dropdown-trigger-border:1px solid var(--x-color-border,#e2e8f0);--x-dropdown-trigger-radius:var(--x-radius-md,6px);--x-dropdown-trigger-padding:0 0.75rem;--x-dropdown-trigger-height:2.25rem;--x-dropdown-trigger-font-size:var(--x-font-size-sm,0.9375rem);--x-dropdown-trigger-font-weight:500;--x-dropdown-chevron-color:var(--x-color-text-muted,#64748b);--x-dropdown-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-dropdown-panel-bg:var(--x-color-bg,#ffffff);--x-dropdown-panel-border:1px solid var(--x-color-border,#e2e8f0);--x-dropdown-panel-radius:var(--x-radius-md,8px);--x-dropdown-panel-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-dropdown-panel-padding:0.25rem;--x-dropdown-panel-min-width:10rem;--x-dropdown-panel-max-height:20rem;--x-dropdown-panel-offset:4px;--x-dropdown-transition-duration:var(--x-transition-duration,150ms);--x-dropdown-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-dropdown-trigger-bg:var(--x-color-surface-hover,#1e293b);--x-dropdown-trigger-bg-hover:var(--x-color-surface-active,#334155);--x-dropdown-trigger-bg-active:var(--x-color-surface-active,#475569);--x-dropdown-trigger-color:var(--x-color-text,#e2e8f0);--x-dropdown-trigger-border:1px solid var(--x-color-border,#334155);--x-dropdown-chevron-color:var(--x-color-text-muted,#94a3b8);--x-dropdown-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-dropdown-panel-bg:var(--x-color-bg,#1e293b);--x-dropdown-panel-border:1px solid var(--x-color-border,#334155);--x-dropdown-panel-shadow:var(--x-shadow-md,0 4px 24px rgba(0,0,0,0.4));}}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:0.375rem;height:var(--x-dropdown-trigger-height);padding:var(--x-dropdown-trigger-padding);background:var(--x-dropdown-trigger-bg);color:var(--x-dropdown-trigger-color);border:var(--x-dropdown-trigger-border);border-radius:var(--x-dropdown-trigger-radius);font-size:var(--x-dropdown-trigger-font-size);font-weight:var(--x-dropdown-trigger-font-weight);font-family:inherit;cursor:pointer;user-select:none;white-space:nowrap;}[part\x3dtrigger]:hover:not(:disabled){background:var(--x-dropdown-trigger-bg-hover);}[part\x3dtrigger]:active:not(:disabled){background:var(--x-dropdown-trigger-bg-active);}[part\x3dtrigger]:disabled{cursor:default;opacity:0.55;}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-dropdown-focus-ring);}[part\x3dtrigger-label]{flex:1;}[part\x3dchevron]{display:inline-block;color:var(--x-dropdown-chevron-color);font-style:normal;flex-shrink:0;transition:transform 200ms ease;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dpanel]{position:absolute;z-index:1000;box-sizing:border-box;background:var(--x-dropdown-panel-bg);border:var(--x-dropdown-panel-border);border-radius:var(--x-dropdown-panel-radius);box-shadow:var(--x-dropdown-panel-shadow);padding:var(--x-dropdown-panel-padding);min-width:var(--x-dropdown-panel-min-width);max-width:calc(100vw - 1rem);max-height:var(--x-dropdown-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scaleY(0.95);transition:opacity var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),transform var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),visibility 0s var(--x-dropdown-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scaleY(1);transition:opacity var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),transform var(--x-dropdown-transition-duration) var(--x-dropdown-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-dropdown-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-dropdown-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-dropdown-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-dropdown-panel-offset));right:0;transform-origin:bottom right;}[part\x3dpanel-inner]{display:contents;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
|
|
10
|
-
e.setAttribute("part","trigger");e.setAttribute("type","button");e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded","false");e.setAttribute("aria-controls","panel");g.setAttribute("part","trigger-label");h.setAttribute("part","chevron");h.setAttribute("aria-hidden","true");h.textContent="▾";
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
e.setAttribute("part","trigger");e.setAttribute("type","button");e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded","false");e.setAttribute("aria-controls","panel");g.setAttribute("part","trigger-label");h.setAttribute("part","chevron");h.setAttribute("aria-hidden","true");h.textContent="▾";l.setAttribute("part","panel");l.setAttribute("id","panel");l.setAttribute("data-placement","bottom-start");m.setAttribute("part","panel-inner");e.appendChild(g);e.appendChild(h);m.appendChild(p);
|
|
11
|
+
l.appendChild(m);c.appendChild(d);c.appendChild(e);c.appendChild(l);this.__xDropdownRefs={trigger:e,label:g,chevron:h,panel:l}}gq(this);eq(this);this.__xDropdownHandlers=fq(this);d=$APP.k(this,"__xDropdownRefs");$APP.n(d)&&(c=$APP.k(this,"__xDropdownHandlers"),$APP.n(c)&&(d=$APP.k(d,"trigger"),d.addEventListener("click",$APP.k(c,"triggerClick")),d.addEventListener("keydown",$APP.k(c,"triggerKeydown")),this.addEventListener("focusout",$APP.k(c,"hostFocusout"))));$APP.n(this.hasAttribute("open"))&&
|
|
12
|
+
dq(this);return bq(this)};b.disconnectedCallback=function(){gq(this);return eq(this)};b.attributeChangedCallback=function(c){$APP.n($APP.k(this,"__xDropdownRefs"))?(bq(this),c=$APP.C.i(c,"open")?$APP.n(this.hasAttribute("open"))?dq(this):eq(this):null):c=null;return c};return a},lq=function(){return $APP.n(customElements.get("x-dropdown"))?null:customElements.define("x-dropdown",kq())};var aq=new $APP.S(null,new $APP.R(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),jq=["open","disabled","label","placement"];$APP.Pd(["x-dropdown-toggle",new $APP.R(null,2,[$APP.wl,!0,$APP.yj,new $APP.R(null,2,[$APP.tl,$APP.Bj,$APP.Hk,$APP.X],null)],null),"x-dropdown-change",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.tl,$APP.Bj],null)],null)]);$APP.fa("baredom.exports.x_dropdown.init",lq);export const init=lq;
|
package/dist/x-fieldset.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
h:"";
|
|
4
|
-
c.removeAttribute("aria-describedby");
|
|
5
|
-
b)):b=this.removeAttribute("legend");return b}})},
|
|
6
|
-
e.setAttribute("part","root");e.setAttribute("role","group");g.setAttribute("part","legend");g.setAttribute("id","x-fieldset-legend");h.setAttribute("part","content");h.appendChild(
|
|
7
|
-
document.head.appendChild(d));this.__xFieldsetRefs={root:c,"root-el":e,"legend-el":g,"content-el":h}}return
|
|
2
|
+
var OC=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},SC=function(a){var b=$APP.k(a,"__xFieldsetRefs");if($APP.n(b)){var c=$APP.k(b,"root-el"),d=$APP.k(b,"legend-el");b=$APP.k(b,"content-el");var e=a.getAttribute("legend");e=new $APP.R(null,4,[PC,e,$APP.al,a.hasAttribute("disabled"),$APP.uj,a.getAttribute("aria-label"),$APP.$i,a.getAttribute("aria-describedby")],null);var g=$APP.M(e),h=$APP.D(g,PC);var l=$APP.D(g,$APP.al);e=$APP.D(g,$APP.uj);g=$APP.D(g,$APP.$i);h=$APP.n(h)?
|
|
3
|
+
h:"";l=$APP.F(l);l=new $APP.R(null,5,[QC,h,RC,$APP.N(h,""),$APP.W,l,$APP.cl,e,$APP.hm,g],null);h=QC.g(l);g=RC.g(l);e=$APP.W.g(l);d.textContent=h;$APP.n(g)?d.removeAttribute("hidden"):d.setAttribute("hidden","");d=$APP.cl.g(l);$APP.n(d)?(c.setAttribute("aria-label",d),c.removeAttribute("aria-labelledby")):(c.removeAttribute("aria-label"),$APP.n(g)?c.setAttribute("aria-labelledby","x-fieldset-legend"):c.removeAttribute("aria-labelledby"));d=$APP.hm.g(l);$APP.n(d)?c.setAttribute("aria-describedby",d):
|
|
4
|
+
c.removeAttribute("aria-describedby");OC(a,"data-disabled",e);return OC(b,"inert",e)}return null},TC=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return OC(this,"disabled",$APP.F(b))}})},UC=function(a){Object.defineProperty(a,"legend",{configurable:!0,enumerable:!0,get:function(){return this.getAttribute("legend")},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.T.g(b),b=this.setAttribute("legend",
|
|
5
|
+
b)):b=this.removeAttribute("legend");return b}})},WC=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=VC;UC(b);TC(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFieldsetRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),l=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-fieldset-border-color:var(--x-color-border, #d1d5db);--x-fieldset-border-width:1px;--x-fieldset-border-radius:var(--x-radius-md, 8px);--x-fieldset-padding:1rem;--x-fieldset-gap:0.75rem;--x-fieldset-bg:var(--x-color-surface,transparent);--x-fieldset-legend-color:var(--x-color-text-muted,#374151);--x-fieldset-legend-font-size:var(--x-font-size-sm, 0.875rem);--x-fieldset-legend-font-weight:600;--x-fieldset-legend-padding:0 0.375rem;--x-fieldset-disabled-opacity:0.45;--x-fieldset-input-bg:var(--x-color-surface,#ffffff);--x-fieldset-input-color:var(--x-color-text,#0f172a);--x-fieldset-input-border:var(--x-color-border,#d1d5db);--x-fieldset-input-radius:var(--x-radius-sm,0.375rem);--x-fieldset-input-focus:var(--x-color-focus-ring,#60a5fa);}@media (prefers-color-scheme:dark){:host{--x-fieldset-border-color:var(--x-color-border, #374151);--x-fieldset-legend-color:var(--x-color-text-muted,#d1d5db);--x-fieldset-input-bg:var(--x-color-surface,#1f2937);--x-fieldset-input-color:var(--x-color-text,#e5e7eb);--x-fieldset-input-border:var(--x-color-border,#374151);--x-fieldset-input-focus:var(--x-color-focus-ring,#93c5fd);}}[part\x3droot]{display:block;border:var(--x-fieldset-border-width) solid var(--x-fieldset-border-color);border-radius:var(--x-fieldset-border-radius);padding:var(--x-fieldset-padding);background:var(--x-fieldset-bg);position:relative;}:host([data-disabled]) [part\x3droot]{opacity:var(--x-fieldset-disabled-opacity);}[part\x3dlegend]{display:block;position:absolute;top:calc(-0.5em);left:calc(var(--x-fieldset-border-radius) - 0.375rem);padding:var(--x-fieldset-legend-padding);color:var(--x-fieldset-legend-color);font-size:var(--x-fieldset-legend-font-size);font-weight:var(--x-fieldset-legend-font-weight);background:inherit;line-height:1;white-space:nowrap;}[part\x3dlegend][hidden]{display:none;}[part\x3dcontent]{display:flex;flex-direction:column;gap:var(--x-fieldset-gap);}";
|
|
6
|
+
e.setAttribute("part","root");e.setAttribute("role","group");g.setAttribute("part","legend");g.setAttribute("id","x-fieldset-legend");h.setAttribute("part","content");h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);$APP.n(document.getElementById("x-fieldset-input-styles"))||(d=document.createElement("style"),d.setAttribute("id","x-fieldset-input-styles"),d.textContent="x-fieldset input,x-fieldset select,x-fieldset textarea{background:var(--x-fieldset-input-bg);color:var(--x-fieldset-input-color);border:1px solid var(--x-fieldset-input-border);border-radius:var(--x-fieldset-input-radius);padding:0.5rem 0.75rem;font:inherit;outline:none;box-sizing:border-box;}x-fieldset input:focus,x-fieldset select:focus,x-fieldset textarea:focus{border-color:var(--x-fieldset-input-focus);box-shadow:0 0 0 2px var(--x-fieldset-input-focus);}",
|
|
7
|
+
document.head.appendChild(d));this.__xFieldsetRefs={root:c,"root-el":e,"legend-el":g,"content-el":h}}return SC(this)};b.disconnectedCallback=function(){return null};b.attributeChangedCallback=function(){return SC(this)};return a},XC=function(){return $APP.n(customElements.get("x-fieldset"))?null:customElements.define("x-fieldset",WC())},RC=new $APP.K(null,"legend-visible?","legend-visible?",-281107501),PC=new $APP.K(null,"legend-raw","legend-raw",907427195),QC=new $APP.K(null,"legend","legend",-1027192245);var VC=["legend","disabled","aria-label","aria-describedby"];$APP.fa("baredom.exports.x_fieldset.init",XC);export const init=XC;
|
package/dist/x-file-download.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.
|
|
4
|
-
var c=
|
|
5
|
-
b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.
|
|
6
|
-
{get:function(){return
|
|
2
|
+
var mx=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},qx=function(a){a=new $APP.R(null,4,[nx,a.getAttribute("href"),ox,a.getAttribute("filename"),$APP.al,a.hasAttribute("disabled"),$APP.uj,a.getAttribute("aria-label")],null);var b=$APP.M(a);a=$APP.D(b,nx);var c=$APP.D(b,ox),d=$APP.D(b,$APP.al);b=$APP.D(b,$APP.uj);return new $APP.R(null,4,[$APP.im,$APP.Kg(a),px,$APP.n(c)?c:"",$APP.W,$APP.F(d),$APP.cl,b],null)},rx=function(a){var b=$APP.k(a,"__xFileDownloadRefs");if($APP.n(b)){b=
|
|
3
|
+
$APP.k(b,"anchor-el");var c=qx(a),d=$APP.im.g(c),e=px.g(c),g=$APP.W.g(c);c=$APP.cl.g(c);b.href=d;typeof e==="string"&&$APP.N(e,"")?b.setAttribute("download",e):(e=typeof d==="string",$APP.n(e?d.startsWith("data:"):e)?b.setAttribute("download",""):b.removeAttribute("download"));$APP.n(g)?b.setAttribute("aria-disabled","true"):b.removeAttribute("aria-disabled");$APP.n(c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label");return mx(a,"data-disabled",g)}return null},sx=function(a){return function(b){if($APP.n(a.hasAttribute("disabled")))return b.preventDefault();
|
|
4
|
+
var c=qx(a);c={href:$APP.im.g(c),filename:px.g(c)};c=new CustomEvent("x-file-download-click",{detail:c,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.n(c.defaultPrevented)?b.preventDefault():null}},tx=function(a){var b=$APP.k(a,"__xFileDownloadHandlers"),c=$APP.k(a,"__xFileDownloadRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"anchor-el"),b=$APP.k(b,"click"),$APP.n(b)&&c.removeEventListener("click",b));return a.__xFileDownloadHandlers=null},ux=function(a,b,c){Object.defineProperty(a,
|
|
5
|
+
b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},vx=function(a){Object.defineProperty(a,"disabled",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return mx(this,"disabled",$APP.F(b))}})},xx=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",
|
|
6
|
+
{get:function(){return wx}});ux(b,"href","href");ux(b,"filename","filename");vx(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFileDownloadRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("a"),g=document.createElement("span"),h=document.createElement("span"),l=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-file-download-bg:var(--x-color-primary,#2563eb);--x-file-download-color:var(--x-color-surface,#ffffff);--x-file-download-hover-bg:var(--x-color-primary-hover,#1d4ed8);--x-file-download-active-bg:var(--x-color-primary-active,#1e40af);--x-file-download-border-radius:var(--x-radius-md,6px);--x-file-download-padding:0.5rem 1rem;--x-file-download-font-size:var(--x-font-size-sm,0.875rem);--x-file-download-font-weight:500;--x-file-download-gap:0.375rem;--x-file-download-icon-size:1em;--x-file-download-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-file-download-disabled-opacity:0.45;--x-file-download-transition:background var(--x-transition-duration,120ms) ease;}@media (prefers-color-scheme:dark){:host{--x-file-download-bg:var(--x-color-primary,#3b82f6);--x-file-download-hover-bg:var(--x-color-primary-hover,#2563eb);--x-file-download-active-bg:var(--x-color-primary-active,#1d4ed8);--x-file-download-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3danchor]{display:inline-flex;align-items:center;gap:var(--x-file-download-gap);padding:var(--x-file-download-padding);background:var(--x-file-download-bg);color:var(--x-file-download-color);border-radius:var(--x-file-download-border-radius);font-size:var(--x-file-download-font-size);font-weight:var(--x-file-download-font-weight);text-decoration:none;cursor:pointer;box-sizing:border-box;transition:var(--x-file-download-transition);outline:none;user-select:none;-webkit-user-select:none;}[part\x3danchor]:hover{background:var(--x-file-download-hover-bg);}[part\x3danchor]:active{background:var(--x-file-download-active-bg);}[part\x3danchor]:focus-visible{outline:2px solid var(--x-file-download-focus-ring);outline-offset:2px;}[part\x3dicon]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-file-download-icon-size);height:var(--x-file-download-icon-size);flex-shrink:0;}[part\x3dcontent]{display:inline;}:host([data-disabled]) [part\x3danchor]{opacity:var(--x-file-download-disabled-opacity);pointer-events:none;cursor:default;}@media (prefers-reduced-motion:reduce){[part\x3danchor]{transition:none;}}";
|
|
7
7
|
e.setAttribute("part","anchor");g.setAttribute("part","icon");h.setAttribute("part","content");g.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" width\x3d"1em" height\x3d"1em" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 1a.75.75 0 0 1 .75.75v6.19l1.97-1.97a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.03a.75.75 0 0 1 1.06-1.06L7.25 7.94V1.75A.75.75 0 0 1 8 1ZM2.5 13.25a.75.75 0 0 1 .75-.75h9.5a.75.75 0 0 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75Z"/\x3e\x3c/svg\x3e';
|
|
8
|
-
h.appendChild(
|
|
9
|
-
|
|
8
|
+
h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xFileDownloadRefs={"anchor-el":e,"icon-el":g,"content-el":h}}tx(this);c=sx(this);$APP.k($APP.k(this,"__xFileDownloadRefs"),"anchor-el").addEventListener("click",c);this.__xFileDownloadHandlers={click:c};return rx(this)};b.disconnectedCallback=function(){return tx(this)};b.attributeChangedCallback=function(){return rx(this)};return a},yx=function(){return $APP.n(customElements.get("x-file-download"))?null:customElements.define("x-file-download",
|
|
9
|
+
xx())},ox=new $APP.K(null,"filename-raw","filename-raw",-706184256),nx=new $APP.K(null,"href-raw","href-raw",-1680949453),px=new $APP.K(null,"filename","filename",-1428840783);var wx=["href","filename","disabled","aria-label"];$APP.fa("baredom.exports.x_file_download.init",yx);export const init=yx;
|
package/dist/x-form-field.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
e=$APP.
|
|
4
|
-
g=$APP.
|
|
5
|
-
"string"&&$APP.J(
|
|
6
|
-
$APP.
|
|
7
|
-
|
|
8
|
-
if($APP.
|
|
9
|
-
null;return}}return null},
|
|
10
|
-
enumerable:!0,get:function(){var b=$APP.
|
|
11
|
-
"label","label");
|
|
2
|
+
var nQ=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},oQ=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.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},qQ=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(b,"label"),d=$APP.k(b,"input"),
|
|
3
|
+
e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.xf([$APP.Wh,$APP.Ok,$APP.ki,$APP.Bi,$APP.al,$APP.uh,$APP.ij,$APP.Ol,$APP.Vh,$APP.bi,$APP.qi],[a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("type"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,$APP.qi),m=$APP.D(h,$APP.Wh),p=$APP.D(h,$APP.Ok);
|
|
4
|
+
g=$APP.D(h,$APP.ki);var q=$APP.D(h,$APP.Bi),v=$APP.D(h,$APP.al),x=$APP.D(h,$APP.uh),y=$APP.D(h,$APP.ij),A=$APP.D(h,$APP.Ol),B=$APP.D(h,$APP.Vh),E=$APP.D(h,$APP.bi);h=$APP.n(g)?g:"";var H=$APP.n(q)?q:"",G=$APP.n(m)?m:"",I=[$APP.Th,$APP.lm,$APP.Kl,$APP.$h,$APP.Yi,$APP.zi,$APP.Rk,$APP.Z,$APP.sk,$APP.kl,$APP.U,$APP.gi,$APP.ml,$APP.W];x=$APP.F(x);y=$APP.F(y);l=$APP.n(l)?l:"";q=typeof q==="string"&&$APP.N(q,"")&&q!=null;p=$APP.n(p)?p:"";A=$APP.n(A)?A:"";m=typeof m==="string"&&$APP.N(m,"")&&m!=null;E=typeof E===
|
|
5
|
+
"string"&&$APP.J(pQ,E)?E:"text";g=$APP.xf(I,[x,y,l,q,p,A,m,E,typeof g==="string"&&$APP.N(g,"")&&g!=null,H,G,h,$APP.n(B)?B:"",$APP.F(v)]);v=$APP.sk.g(g);B=$APP.$h.g(g);h=$APP.Rk.g(g);d.type=$APP.Z.g(g);d.name=$APP.Yi.g(g);d.placeholder=$APP.Kl.g(g);d.disabled=$APP.W.g(g);d.readOnly=$APP.lm.g(g);d.required=$APP.Th.g(g);d.autocomplete=$APP.ml.g(g);H=$APP.n($APP.Th.g(g))?"true":"false";d.setAttribute("aria-required",H);d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");H=$APP.n($APP.n(B)?v:B)?"hint error":
|
|
6
|
+
$APP.n(B)?"hint":$APP.n(v)?"error":null;$APP.n(H)?d.setAttribute("aria-describedby",H):d.removeAttribute("aria-describedby");c.textContent=$APP.U.g(g);$APP.n(h)?c.classList.remove("label-hidden"):c.classList.add("label-hidden");e.textContent=$APP.kl.g(g);$APP.n(B)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.gi.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");nQ(a,"data-invalid",v);c=$APP.k(a,"__xFormFieldInternals");return $APP.n(c)?
|
|
7
|
+
oQ(a,c,d):null}return null},rQ=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},sQ=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),oQ(a,e,b));return rQ(a,"x-form-field-input",{name:d,value:c})}return null}},tQ=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");
|
|
8
|
+
if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),oQ(a,e,b));return rQ(a,"x-form-field-change",{name:d,value:c})}return null}},uQ=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormFieldHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xFormFieldHandlers=
|
|
9
|
+
null;return}}return null},vQ=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){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},wQ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return nQ(this,c,$APP.F(d))}})},xQ=function(a){Object.defineProperty(a,"value",{configurable:!0,
|
|
10
|
+
enumerable:!0,get:function(){var b=$APP.k(this,"__xFormFieldRefs");if($APP.n(b))return $APP.k(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xFormFieldRefs");return $APP.n(c)?$APP.k(c,"input").value=b:null}})},zQ=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return yQ}});xQ(b);vQ(b,
|
|
11
|
+
"label","label");vQ(b,"type","type");vQ(b,"name","name");vQ(b,"placeholder","placeholder");vQ(b,"autocomplete","autocomplete");wQ(b,"disabled","disabled");wQ(b,"readOnly","readonly");wQ(b,"required","required");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFormFieldRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),l=document.createElement("input"),m=document.createElement("span"),
|
|
12
12
|
p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-form-field-label-color:var(--x-color-text-muted,#374151);--x-form-field-label-font-size:var(--x-font-size-sm,0.875rem);--x-form-field-input-bg:var(--x-color-surface,#ffffff);--x-form-field-input-color:var(--x-color-text,#111827);--x-form-field-input-border:1px solid var(--x-color-border,#d1d5db);--x-form-field-input-border-radius:var(--x-radius-md,6px);--x-form-field-input-padding:0.5rem 0.75rem;--x-form-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-form-field-error-color:var(--x-color-danger,#dc2626);--x-form-field-hint-color:var(--x-color-text-muted,#6b7280);--x-form-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-form-field-label-color:var(--x-color-text-muted,#d1d5db);--x-form-field-input-bg:var(--x-color-surface-hover,#1f2937);--x-form-field-input-color:var(--x-color-text,#f9fafb);--x-form-field-input-border:1px solid var(--x-color-border,#4b5563);--x-form-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-form-field-error-color:var(--x-color-danger,#f87171);--x-form-field-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-form-field-label-font-size);font-weight:500;color:var(--x-form-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:block;}[part\x3dinput]{display:block;width:100%;box-sizing:border-box;padding:var(--x-form-field-input-padding);background:var(--x-form-field-input-bg);color:var(--x-form-field-input-color);border:var(--x-form-field-input-border);border-radius:var(--x-form-field-input-border-radius);font-size:1rem;line-height:1.5;font-family:inherit;outline:none;transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput]:focus{border-color:var(--x-form-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput]{border-color:var(--x-form-field-error-color);}:host([data-invalid]) [part\x3dinput]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-error-color) 20%,transparent);}[part\x3dinput]:disabled{opacity:var(--x-form-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-form-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-form-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]{transition:none;}}";
|
|
13
|
-
e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","input");h.setAttribute("part","input-wrapper");
|
|
14
|
-
e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xFormFieldRefs={field:e,label:g,input:
|
|
15
|
-
"__xFormFieldRefs");$APP.
|
|
16
|
-
return
|
|
17
|
-
$APP.
|
|
18
|
-
[$APP.Z,$APP.X,$APP.
|
|
13
|
+
e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","input");h.setAttribute("part","input-wrapper");l.setAttribute("part","input");l.setAttribute("id","input");l.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(l);
|
|
14
|
+
e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xFormFieldRefs={field:e,label:g,input:l,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xFormFieldInternals=this.attachInternals())}uQ(this);c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=$APP.k(this,
|
|
15
|
+
"__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=sQ(this),e=tQ(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xFormFieldHandlers={input:d,change:e});return qQ(this)};b.disconnectedCallback=function(){return uQ(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.i(c,"value")&&(c=$APP.k(this,"__xFormFieldRefs"),$APP.n(c)&&(c=$APP.k(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return qQ(this)};b.formDisabledCallback=function(c){nQ(this,"disabled",$APP.F(c));
|
|
16
|
+
return qQ(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&($APP.k(c,"input").value="");c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&c.setFormValue("");return qQ(this)};return a},AQ=function(){return $APP.n(customElements.get("x-form-field"))?null:customElements.define("x-form-field",zQ())};var yQ="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),pQ=new $APP.S(null,new $APP.R(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
|
|
17
|
+
$APP.xf([$APP.Kl,$APP.mj,$APP.Yi,$APP.zi,$APP.Zi,$APP.Z,$APP.U,$APP.ml,$APP.Yj],[new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"placeholder"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"type"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"label"],null),new $APP.R(null,
|
|
18
|
+
2,[$APP.Z,$APP.X,$APP.dk,"autocomplete"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"required"],null)]);$APP.fa("baredom.exports.x_form_field.init",AQ);export const init=AQ;
|
package/dist/x-form.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
if($APP.
|
|
4
|
-
(b[g]=function(){var m=e.value;return $APP.
|
|
5
|
-
|
|
6
|
-
var h=$APP.
|
|
7
|
-
b.removeEventListener("reset",$APP.
|
|
8
|
-
b:""},set:function(b){return b!=null&&$APP.
|
|
9
|
-
d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}
|
|
10
|
-
$APP.
|
|
11
|
-
e+=1;else return null};return a},
|
|
2
|
+
var vM=function(a,b){return a.setAttribute("autocomplete",b)},AM=function(a){a=new $APP.R(null,3,[wM,a.getAttribute("loading"),xM,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.Vh,a.getAttribute("autocomplete")],null);var b=$APP.M(a),c=$APP.D(b,wM);a=$APP.D(b,xM);b=$APP.D(b,$APP.Vh);c=c!=null&&$APP.N(c,"false");b=$APP.J(yM,b)?b:"on";return new $APP.R(null,3,[$APP.fi,c,zM,a!=null,$APP.ml,b],null)},BM=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");a=AM(a);vM(b,$APP.ml.g(a));
|
|
3
|
+
if($APP.n($APP.fi.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},CM=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.N(g,""):m}())){var h=e.tagName.toLowerCase(),l=e.getAttribute("type");$APP.C.i(l,"checkbox")||$APP.C.i(l,"radio")||$APP.C.i(h,"x-checkbox")?$APP.n(e.checked)&&
|
|
4
|
+
(b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},DM=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},EM=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");var c=function(g){g.preventDefault();g=AM(a);if($APP.n($APP.fi.g(g)))g=null;else{g=zM.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");for(var h={ok:!0},
|
|
5
|
+
l=g.length,m=0;;)if(m<l){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=CM(a),g=DM(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,l=0;;)if(l<h){var m=g[l];$APP.n(m.formResetCallback)&&m.formResetCallback();l+=1}else break;return DM(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=g.type;
|
|
6
|
+
var h=$APP.k(a,"__xFormRefs");if($APP.n(h)){h=$APP.k(h,"form");g=$APP.C.i(g,"submit")||$APP.C.i(g,"")?h.requestSubmit():$APP.C.i(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.ia(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},FM=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormHandlers");if($APP.n(c)){b=$APP.k(b,"form");b.removeEventListener("submit",$APP.k(c,"submit"));
|
|
7
|
+
b.removeEventListener("reset",$APP.k(c,"reset"));a.removeEventListener("click",$APP.k(c,"click"));a.__xFormHandlers=null;return}}return null},GM=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.F(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},HM=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
|
|
8
|
+
b:""},set:function(b){return b!=null&&$APP.N(b)?vM(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},JM=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return IM}});GM(b,"loading","loading");GM(b,"novalidate","novalidate");HM(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
|
|
9
|
+
d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}FM(this);EM(this);return BM(this)};b.disconnectedCallback=function(){return FM(this)};b.attributeChangedCallback=function(){return BM(this)};b.submit=function(){var c=
|
|
10
|
+
$APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").requestSubmit():null};b.reset=function(){var c=$APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").reset():null};b.setFieldError=function(c,d){c=this.querySelector('[name\x3d"'+$APP.T.g(c)+'"]');return $APP.n(c)?d==null||$APP.C.i(d,"")||$APP.C.i(d,void 0)?c.removeAttribute("error"):c.setAttribute("error",d):null};b.clearErrors=function(){for(var c=this.querySelectorAll("[error]"),d=c.length,e=0;;)if(e<d)c[e].removeAttribute("error"),
|
|
11
|
+
e+=1;else return null};return a},KM=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",JM())},xM=new $APP.K(null,"novalidate-raw","novalidate-raw",1783236714),wM=new $APP.K(null,"loading-raw","loading-raw",-1707143099),zM=new $APP.K(null,"novalidate?","novalidate?",491529885);var IM=["loading","novalidate","autocomplete"],yM=new $APP.S(null,new $APP.R(null,2,["off",null,"on",null],null),null);$APP.fa("baredom.exports.x_form.init",KM);export const init=KM;
|
package/dist/x-gaussian-blur.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
2
|
+
var dS=function(a,b,c){var d=$APP.z(a);return $APP.Ue.m($APP.ee,$APP.$d.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var l=10*Math.sin(e*2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var q=.8+.4*Math.sin(e*1.3),v=-(e/$APP.$g.i(b,1));return new $APP.R(null,7,[$APP.lj,$APP.oc(a,$APP.ed(e,d)),$APP.Yk,h+l,$APP.Xk,g+m,$APP.th,c*p,aS,$APP.ed(e,4),bS,q,cS,v],null)}),$APP.bg(0,b))},eS=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
|
|
3
3
|
d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot");c.textContent=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;box-sizing:border-box;color-scheme:light dark;--x-gaussian-blur-bg:transparent;--x-gaussian-blur-z-index:0;--x-gaussian-blur-border-radius:0;}:host{border-radius:var(--x-gaussian-blur-border-radius);}[part\x3dbackdrop]{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:var(--x-gaussian-blur-z-index);background:var(--x-gaussian-blur-bg);}[part\x3dcontent]{position:relative;z-index:1;width:100%;height:100%;}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;}@keyframes x-gb-float-0{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(12%,-18%);}50%{transform:translate(-50%,-50%) translate(-10%,15%);}75%{transform:translate(-50%,-50%) translate(15%,6%);}}@keyframes x-gb-float-1{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-15%,10%);}50%{transform:translate(-50%,-50%) translate(18%,-12%);}75%{transform:translate(-50%,-50%) translate(-8%,-16%);}}@keyframes x-gb-float-2{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(10%,16%);}50%{transform:translate(-50%,-50%) translate(-18%,-8%);}75%{transform:translate(-50%,-50%) translate(14%,-12%);}}@keyframes x-gb-float-3{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-12%,-10%);}50%{transform:translate(-50%,-50%) translate(16%,18%);}75%{transform:translate(-50%,-50%) translate(-10%,14%);}}@keyframes x-gb-pulse-0{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.2) translate(10%,-14%);}66%{transform:translate(-50%,-50%) scale(0.85) translate(-10%,10%);}}@keyframes x-gb-pulse-1{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.85) translate(-14%,10%);}66%{transform:translate(-50%,-50%) scale(1.2) translate(12%,-8%);}}@keyframes x-gb-pulse-2{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.18) translate(8%,16%);}66%{transform:translate(-50%,-50%) scale(0.82) translate(-16%,-10%);}}@keyframes x-gb-pulse-3{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.88) translate(-10%,-14%);}66%{transform:translate(-50%,-50%) scale(1.15) translate(10%,16%);}}:host([data-paused]) .blob{animation-play-state:paused;}@media (prefers-reduced-motion:reduce){.blob{animation:none!important;}}";
|
|
4
|
-
d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},
|
|
5
|
-
$APP.
|
|
6
|
-
typeof c==="string"&&$APP.
|
|
7
|
-
e:"float";d=d!=null;typeof m==="string"&&$APP.
|
|
8
|
-
|
|
9
|
-
m.length;
|
|
10
|
-
E);
|
|
11
|
-
c)}$APP.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
$APP.
|
|
18
|
-
$APP.
|
|
19
|
-
var
|
|
20
|
-
$APP.
|
|
4
|
+
d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},fS=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},pS=function(a){var b=
|
|
5
|
+
$APP.xf([gS,$APP.Ui,$APP.dj,$APP.Cl,$APP.th,$APP.Rh,$APP.Xh,$APP.xh,hS],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.M(b);b=$APP.D(c,hS);var d=$APP.D(c,gS),e=$APP.D(c,$APP.Ui),g=$APP.D(c,$APP.dj);var h=$APP.D(c,$APP.Cl);var l=$APP.D(c,$APP.th),m=$APP.D(c,$APP.Rh),p=$APP.D(c,$APP.Xh);c=$APP.D(c,$APP.xh);h=iS(h);
|
|
6
|
+
typeof c==="string"&&$APP.N("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.ah.i(12,$APP.$g.i(1,c)):5):c=5;if(typeof l==="string"&&$APP.N("",l.trim())){l=l.trim();var q=$APP.D(jS,l);$APP.n(q)?l=q:(l=parseFloat(l),q=isFinite(l),l=$APP.n($APP.n(q)?l>0:q)?$APP.ah.i(100,$APP.$g.i(10,l)):50)}else l=50;typeof g==="string"&&$APP.N("",g.trim())?(g=g.trim(),q=$APP.D(kS,g),$APP.n(q)?g=q:(g=parseFloat(g),q=isFinite(g),g=$APP.n($APP.n(q)?g>0:q)?g:10)):g=10;e=typeof e==="string"&&$APP.J(lS,e)?
|
|
7
|
+
e:"float";d=d!=null;typeof m==="string"&&$APP.N("",m.trim())?(m=parseFloat(m.trim()),q=isFinite(m),m=$APP.n($APP.n(q)?m>0:q)?m:60):m=60;q=dS(h,c,l);typeof p==="string"&&$APP.N("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.ah.i(1,$APP.$g.i(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.J(mS,b)?b:"normal";h=$APP.xf([gS,$APP.Ui,$APP.Cl,nS,$APP.Rh,$APP.Yl,$APP.Xh,$APP.xh,hS,oS],[d,e,h,g,m,q,p,c,b,l]);b=$APP.M(h);p=$APP.D(b,$APP.Rh);c=$APP.D(b,$APP.Xh);m=$APP.D(b,hS);l=$APP.D(b,$APP.Ui);
|
|
8
|
+
d=$APP.D(b,gS);e=$APP.k(a,"__xGaussianBlurBackdrop");b=$APP.k(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.T.g(p)+"px)");e.style.setProperty("opacity",""+$APP.T.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",l);a:{m=$APP.M(h);h=$APP.D(m,$APP.Yl);p=$APP.D(m,$APP.Ui);c=$APP.D(m,nS);$APP.D(m,$APP.Rh);d=$APP.k(a,"__xGaussianBlurBackdrop");m=$APP.k(a,"__xGaussianBlurBlobs");
|
|
9
|
+
e=m.length;l=$APP.z(h);for(g=e;;)if(g<l)q=document.createElement("div"),q.className="blob",d.appendChild(q),m.push(q),g+=1;else break;for(;;)if(e>l)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<l){var v=m[d];q=$APP.oc(h,d);g=p;e=c;var x=$APP.M(q),y=$APP.D(x,$APP.lj),A=$APP.D(x,$APP.Yk),B=$APP.D(x,$APP.Xk),E=$APP.D(x,$APP.th),H=$APP.D(x,aS);q=$APP.D(x,bS);x=$APP.D(x,cS);v=v.style;E=""+$APP.T.g(E)+"%";v.setProperty("left",""+$APP.T.g(A)+"%");v.setProperty("top",""+$APP.T.g(B)+"%");v.setProperty("width",
|
|
10
|
+
E);v.setProperty("height",E);v.setProperty("background","radial-gradient(circle,"+$APP.T.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=H,g){case "float":g="x-gb-float-"+$APP.T.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.T.g(y);break b;default:g=null}$APP.n(g)?(q*=e,e*=x,v.setProperty("animation",""+$APP.T.g(g)+" "+$APP.T.g(q)+"s ease-in-out "+$APP.T.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}fS(a,b)},qS=function(a){function b(){return fS(a,
|
|
11
|
+
c)}$APP.n($APP.k(a,"__xGaussianBlurInit"))||eS(a);var c=$APP.k(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);pS(a)},rS=function(a){for(var b=$APP.t(new $APP.O(null,8,5,$APP.P,[new $APP.O(null,3,5,$APP.P,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.O(null,3,5,$APP.P,["blur","blur","60"],null),new $APP.O(null,3,5,$APP.P,["speed","speed","medium"],null),new $APP.O(null,3,5,$APP.P,["count","count","5"],null),new $APP.O(null,3,5,$APP.P,
|
|
12
|
+
["size","size","medium"],null),new $APP.O(null,3,5,$APP.P,["opacity","opacity","0.7"],null),new $APP.O(null,3,5,$APP.P,["animation","animation","float"],null),new $APP.O(null,3,5,$APP.P,["blend","blend","normal"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e),h=$APP.zc(g,0,null),l=$APP.zc(g,1,null),m=$APP.zc(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,B,E,H,G){return function(){var I=this.getAttribute(H);return $APP.n(I)?I:G}}(b,c,d,e,g,h,l,m),set:function(v,x,y,A,B,E,H){return function(G){return typeof G===
|
|
13
|
+
"string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,g,h,l,m),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.t(b)){g=h;if($APP.Nc(g))b=$APP.xb(g),e=$APP.yb(g),c=b,d=$APP.z(b),b=e;else{l=$APP.u(g);m=$APP.zc(l,0,null);var p=$APP.zc(l,1,null),q=$APP.zc(l,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,B,E,H,G){return function(){var I=this.getAttribute(H);return $APP.n(I)?I:G}}(b,c,d,e,l,m,p,q,g,h),set:function(v,x,y,A,B,E,H){return function(G){return typeof G===
|
|
14
|
+
"string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,l,m,p,q,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},tS=function(){var a=class extends HTMLElement{};a.observedAttributes=sS;a.prototype.connectedCallback=function(){qS(this);return null};
|
|
15
|
+
a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xGaussianBlurSlot"),c=$APP.k(this,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?c:b)&&b.removeEventListener("slotchange",c);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xGaussianBlurInit"))&&pS(this);return null};rS(a.prototype);return a},uS=function(){$APP.n(customElements.get("x-gaussian-blur"))||customElements.define("x-gaussian-blur",tS());return null},nS=new $APP.K(null,"speed-s",
|
|
16
|
+
"speed-s",-1018350546),hS=new $APP.K(null,"blend","blend",249565561),gS=new $APP.K(null,"paused","paused",-1710376127),oS=new $APP.K(null,"size-pct","size-pct",-741809955),aS=new $APP.K(null,"anim-index","anim-index",-1563021855),cS=new $APP.K(null,"delay-factor","delay-factor",-751650178),bS=new $APP.K(null,"duration-factor","duration-factor",-409465019);var sS="colors blur speed count size opacity animation blend paused".split(" ");
|
|
17
|
+
$APP.xf([gS,$APP.Ui,$APP.dj,$APP.Cl,$APP.th,$APP.Rh,$APP.Xh,$APP.xh,hS],[new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"paused"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"animation"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"speed"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"colors"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"size"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"blur"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"opacity"],null),new $APP.R(null,2,[$APP.Z,$APP.X,
|
|
18
|
+
$APP.dk,"count"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"blend"],null)]);
|
|
19
|
+
var lS=new $APP.S(null,new $APP.R(null,3,["float",null,"none",null,"pulse",null],null),null),mS=new $APP.S(null,new $APP.R(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),kS=new $APP.R(null,3,["slow",18,"medium",10,"fast",5],null),jS=new $APP.R(null,3,["small",30,"medium",50,"large",70],null),iS=function iS(a){return typeof a==="string"&&$APP.N("",a.trim())?(a=a.trim().split(/,/),$APP.Ue.m($APP.ee,$APP.bh.i($APP.$d.g(function(c){return c.trim()}),
|
|
20
|
+
$APP.be(function(c){return $APP.N("",c)})),a)):iS.g?iS.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):iS.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.fa("baredom.exports.x_gaussian_blur.init",uS);export const init=uS;
|