@vanelsas/baredom 2.5.0 → 2.7.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 +26 -0
- package/README.md +23 -337
- package/custom-elements.json +36 -1
- package/dist/base.js +358 -352
- package/dist/integrity.json +93 -93
- package/dist/x-alert.js +18 -19
- package/dist/x-avatar-group.js +10 -11
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +10 -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 +18 -16
- package/dist/x-cancel-dialogue.js +17 -17
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +34 -34
- package/dist/x-chart.js +46 -48
- package/dist/x-checkbox.js +10 -11
- package/dist/x-chip.js +9 -9
- package/dist/x-collapse.js +10 -12
- package/dist/x-color-picker.js +44 -45
- package/dist/x-combobox.d.ts +1 -0
- package/dist/x-combobox.js +26 -27
- package/dist/x-command-palette.js +26 -27
- package/dist/x-container.js +5 -6
- package/dist/x-context-menu.js +18 -18
- package/dist/x-copy.js +22 -22
- package/dist/x-currency-field.d.ts +1 -0
- package/dist/x-currency-field.js +22 -23
- package/dist/x-date-picker.js +41 -42
- package/dist/x-divider.js +8 -9
- package/dist/x-drawer.js +11 -12
- package/dist/x-dropdown.js +10 -11
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +7 -8
- package/dist/x-file-upload.js +22 -25
- package/dist/x-form-field.js +15 -17
- package/dist/x-form.js +8 -10
- package/dist/x-gaussian-blur.js +18 -18
- package/dist/x-grid.js +6 -6
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +19 -19
- package/dist/x-kinetic-font.js +28 -29
- package/dist/x-kinetic-typography.js +39 -39
- package/dist/x-liquid-dock.js +39 -39
- package/dist/x-liquid-fill.js +44 -44
- package/dist/x-liquid-glass.js +47 -47
- package/dist/x-menu-item.js +9 -10
- package/dist/x-menu.js +11 -11
- package/dist/x-metaball-cursor.js +27 -27
- package/dist/x-modal.js +12 -13
- package/dist/x-morph-stack.js +38 -39
- package/dist/x-navbar.js +12 -13
- package/dist/x-neural-glow.js +32 -33
- package/dist/x-notification-center.js +9 -10
- package/dist/x-organic-divider.js +18 -19
- package/dist/x-organic-progress.js +37 -38
- package/dist/x-organic-shape.js +13 -14
- package/dist/x-pagination.d.ts +2 -1
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +48 -49
- package/dist/x-popover.js +24 -25
- package/dist/x-progress-circle.js +8 -9
- package/dist/x-progress.js +11 -11
- package/dist/x-radio.js +10 -12
- package/dist/x-ripple-effect.js +11 -11
- package/dist/x-scroll-parallax.js +19 -19
- package/dist/x-scroll-stack.js +18 -18
- package/dist/x-scroll-story.js +36 -36
- package/dist/x-scroll-timeline.js +46 -47
- package/dist/x-scroll.js +40 -41
- package/dist/x-search-field.js +15 -17
- package/dist/x-select.d.ts +1 -0
- package/dist/x-select.js +10 -11
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.js +12 -14
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.d.ts +1 -0
- package/dist/x-slider.js +16 -16
- package/dist/x-soft-body.js +21 -21
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -6
- package/dist/x-splash.js +13 -13
- package/dist/x-stat.js +11 -11
- package/dist/x-stepper.js +15 -15
- package/dist/x-switch.js +9 -11
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +22 -22
- package/dist/x-table-row.js +9 -10
- package/dist/x-table.js +14 -15
- package/dist/x-tabs.d.ts +1 -0
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.d.ts +1 -0
- package/dist/x-text-area.js +19 -19
- package/dist/x-theme.d.ts +1 -1
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +23 -23
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +24 -24
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.js +11 -13
- package/dist/x-typography.js +11 -11
- package/dist/x-welcome-tour.js +64 -65
- package/package.json +186 -182
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","container");d.setAttribute("role","log");d.setAttribute("aria-live","polite");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.k(a,"__xNcRefs")},
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
return $APP.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
$APP.Pd(["x-notification-center-push",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.yl,$APP.Y,$APP.Rh,$APP.W],null),$APP.km,!1],null),"x-notification-center-dismiss",new $APP.R(null,2,[$APP.V,new $APP.R(null,5,[$APP.yl,$APP.Y,$APP.Z,$APP.Y,$APP.Qi,$APP.Y,$APP.Bl,$APP.Y,$APP.Rh,$APP.W],null),$APP.km,!1],null),"x-notification-center-empty",new $APP.R(null,2,[$APP.V,$APP.Qd,$APP.km,!1],null)]);var Do={v:0};$APP.ha("baredom.exports.x_notification_center.init",Io);export const init=Io;
|
|
2
|
+
var So=function(a){return typeof a==="string"&&$APP.I(Ro,a.toLowerCase())?a.toLowerCase():"top-right"},To=function(a){if(a==null)return 5;a=parseInt(""+$APP.S.g(a),10);return typeof a==="number"&&$APP.q(isNaN(a))&&a>0?a:5},Uo=function(a){var b=$APP.k(a,"__xNcRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;position:fixed;z-index:var(--x-notification-center-z-index,9999);--x-notification-center-width:360px;--x-notification-center-gap:8px;--x-notification-center-offset-x:16px;--x-notification-center-offset-y:16px;--x-notification-center-z-index:9999;pointer-events:none;}:host([data-position\x3d'top-right']){top:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-left']){top:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-right']){bottom:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-left']){bottom:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-center']){top:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}:host([data-position\x3d'bottom-center']){bottom:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-notification-center-gap);width:var(--x-notification-center-width);pointer-events:auto;}:host([data-position\x3d'bottom-right']) [part\x3dcontainer],:host([data-position\x3d'bottom-left']) [part\x3dcontainer],:host([data-position\x3d'bottom-center']) [part\x3dcontainer]{flex-direction:column-reverse;}";
|
|
3
|
+
d.setAttribute("part","container");d.setAttribute("role","log");d.setAttribute("aria-live","polite");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.k(a,"__xNcRefs")},Vo=function(a){var b=a.getAttribute("position");b=So(b);a.setAttribute("data-position",b)},Wo=function(a){function b(d){var e=Uo(a),g=$APP.k(e,"container"),h=d.target;e=h.getAttribute("data-notification-id");g=g.querySelectorAll("x-alert").length-1;h=h.getAttribute("type");var l=d.detail.reason;d=d.detail.text;
|
|
4
|
+
$APP.Qg(a,"x-notification-center-dismiss",{id:e,type:$APP.n(h)?h:"info",reason:$APP.n(l)?l:"",text:$APP.n(d)?d:"",count:g});g===0&&$APP.Qg(a,"x-notification-center-empty",{});return null}var c=Uo(a);$APP.k(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.ja(a,"__xNcHandlers",{dismiss:b})},Xo=function(a){var b=$APP.k(a,"__xNcHandlers"),c=$APP.k(a,"__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"root"),b=$APP.k(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));
|
|
5
|
+
a.__xNcHandlers=null},Zo=function(a,b){var c=Uo(a);c=$APP.k(c,"container");if(c.querySelectorAll("x-alert").length<function(){var r=$APP.k(a,"__xNcMax");return $APP.n(r)?r:5}()){var d=document.createElement("x-alert"),e=function(){var r=$APP.k(b,"id");$APP.n(r)||(r=Yo.v,Yo.v=r+1,r="xnc-"+$APP.S.g(r));return r}(),g=$APP.k(b,"type"),h=$APP.k(b,"text"),l=$APP.k(b,"icon"),m=$APP.k(b,"timeoutMs"),p=$APP.k(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&
|
|
6
|
+
d.setAttribute("text",h);$APP.n(l)&&d.setAttribute("icon",l);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.S.g(m|0));p===!1&&d.setAttribute("dismissible","false");c.appendChild(d);$APP.Qg(a,"x-notification-center-push",{id:e,count:c.querySelectorAll("x-alert").length});return e}return null},$o=function(a){Object.defineProperty(a,"position",{get:function(){return So(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},
|
|
7
|
+
enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){return To(this.getAttribute("max"))},set:function(b){return $APP.n(b)?this.setAttribute("max",""+$APP.S.g(b|0)):this.removeAttribute("max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.k(this,"__xNcRefs");return $APP.n(b)?$APP.k(b,"container").querySelectorAll("x-alert").length:0},enumerable:!0,configurable:!0})},ap=function(a){Uo(a);Xo(a);Wo(a);Vo(a);return null},bp=function(a){Xo(a);
|
|
8
|
+
return null},cp=function(a,b){$APP.B.i(b,"position")?Vo(a):$APP.B.i(b,"max")&&(b=To(a.getAttribute("max")),a.__xNcMax=b);return null},dp=function(a){a.push=function(b){return Zo(this,b)};return a.clear=function(){var b=Uo(this);b=$APP.t($APP.uc($APP.k(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.F(null,e).remove(),e+=1;else if(b=$APP.t(b))c=b,$APP.Nc(c)?(b=$APP.xb(c),e=$APP.yb(c),c=b,d=$APP.z(b),b=e):($APP.u(c).remove(),b=$APP.w(c),c=null,d=0),e=0;else break;return null}},
|
|
9
|
+
fp=function(){return $APP.Lg("x-notification-center",new $APP.Q(null,5,[$APP.Cg,ep,$APP.Dg,ap,$APP.Eg,bp,$APP.Fg,cp,$APP.Jg,function(a){$o(a);return dp(a)}],null))},gp=function(){return fp()};var ep=["position","max"],Ro=new $APP.R(null,new $APP.Q(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
|
|
10
|
+
$APP.Pd(["x-notification-center-push",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Rl,$APP.Y,$APP.ii,$APP.W],null),$APP.Km,!1],null),"x-notification-center-dismiss",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,5,[$APP.Rl,$APP.Y,$APP.Z,$APP.Y,$APP.hj,$APP.Y,$APP.Ul,$APP.Y,$APP.ii,$APP.W],null),$APP.Km,!1],null),"x-notification-center-empty",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.Km,!1],null)]);var Yo={v:0};$APP.ha("baredom.exports.x_notification_center.init",gp);export const init=gp;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.
|
|
4
|
-
p=$APP.B.i(p,"morph")&&m==null?"none":p;g=g!=null;var v=
|
|
5
|
-
var A=$APP.B.i(c,"drift");p=$APP.B.i(c,"morph");v=A?v:x;y.setAttribute("viewBox",A?"0 0 1800 120":"0 0 1200 120");a:if(x=
|
|
6
|
-
$APP.
|
|
7
|
-
h);$APP.n(g)?a.setAttribute("data-flip",""):a.removeAttribute("data-flip");$APP.n(b)?a.setAttribute("data-mirror",""):a.removeAttribute("data-mirror");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation")},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return $APP.n(b)?b:"
|
|
11
|
-
function(){
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
null),"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
null);$APP.ha("baredom.exports.x_organic_divider.init",iT);export const init=iT;
|
|
2
|
+
var EU=function(a){return typeof a==="string"&&$APP.I(DU,a)?a:"wave"},HU=function(a){return $APP.fe(function(b){return new $APP.Q(null,2,[FU,b*20,GU,b*8],null)},$APP.dg(0,a))},RU=function(a){var b=new $APP.Q(null,7,[$APP.Ck,a.getAttribute("shape"),$APP.xj,a.getAttribute("layers"),$APP.oh,a.getAttribute("height"),IU,a.getAttribute("flip"),JU,a.getAttribute("mirror"),$APP.mh,a.getAttribute("animation"),$APP.ql,a.getAttribute("path")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Ck),e=$APP.D(c,$APP.xj);b=$APP.D(c,
|
|
3
|
+
$APP.oh);var g=$APP.D(c,IU),h=$APP.D(c,JU),l=$APP.D(c,$APP.mh);c=$APP.D(c,$APP.ql);typeof c==="string"?(c=$APP.Wg(c,KU).trim(),c=$APP.N(c,"")?c:null):c=null;d=EU(d);e=typeof e==="string"?parseInt(e,10):null;var m=e==null;m||(m=isNaN(e),m=$APP.n(m)?m:e<1);e=$APP.n(m)?1:e>5?5:e;var p=typeof l==="string"&&$APP.I(LU,l)?l:"none";l=c!=null?c:$APP.he(MU,new $APP.O(null,2,5,$APP.P,[EU(d),$APP.ql],null));m=c==null?$APP.he(MU,new $APP.O(null,2,5,$APP.P,[EU(d),NU],null)):null;var r=c!=null?c:$APP.D(OU,EU(d));
|
|
4
|
+
p=$APP.B.i(p,"morph")&&m==null?"none":p;g=g!=null;var v=HU(e);h=h!=null;b=typeof b==="string"&&$APP.N("",b.trim())?b.trim():"120px";b=$APP.zf([$APP.ql,$APP.nk,$APP.mh,IU,PU,NU,$APP.Ck,$APP.xj,JU,$APP.oh,QU],[c,l,p,g,v,m,d,e,h,b,r]);e=$APP.M(b);b=$APP.D(e,JU);h=$APP.D(e,$APP.oh);v=$APP.D(e,QU);var x=$APP.D(e,$APP.nk);c=$APP.D(e,$APP.mh);g=$APP.D(e,IU);d=$APP.D(e,PU);l=$APP.D(e,NU);e=$APP.D(e,$APP.xj);m=$APP.k(a,"__xOrganicDividerBase");var y=$APP.k(a,"__xOrganicDividerSvg");r=$APP.k(a,"__xOrganicDividerPaths");
|
|
5
|
+
var A=$APP.B.i(c,"drift");p=$APP.B.i(c,"morph");v=A?v:x;y.setAttribute("viewBox",A?"0 0 1800 120":"0 0 1200 120");a:if(x=r.length,x<e)for(x=e-x,A=0;;)if(A<x){var C=document.createElementNS("http://www.w3.org/2000/svg","path");y.appendChild(C);r.push(C);A+=1}else break a;else if(x>e)for(x-=e,A=0;;)if(A<x)C=r.pop(),y.removeChild(C),A+=1;else break a;for(y=0;;)if(y<e){x=r[y];A=$APP.pc(d,y);C=$APP.M(A);A=$APP.D(C,FU);C=$APP.D(C,GU);var E=y+1;x.setAttribute("d",v);x.setAttribute("fill","var(--x-organic-divider-color-"+
|
|
6
|
+
$APP.S.g(E)+")");x.setAttribute("opacity",""+$APP.S.g(e<=1?1:.3+y/(e-1)*.7));A>0||C>0?x.setAttribute("transform","translate("+$APP.S.g(A)+","+$APP.S.g(C)+")"):x.removeAttribute("transform");p&&(x.style.setProperty("--x-organic-divider-d",'path("'+$APP.S.g(v)+'")'),$APP.n(l)&&x.style.setProperty("--x-organic-divider-d-alt",'path("'+$APP.S.g(l)+'")'));p||(x.style.removeProperty("--x-organic-divider-d"),x.style.removeProperty("--x-organic-divider-d-alt"));y+=1}else break;m.style.setProperty("height",
|
|
7
|
+
h);$APP.n(g)?a.setAttribute("data-flip",""):a.removeAttribute("data-flip");$APP.n(b)?a.setAttribute("data-mirror",""):a.removeAttribute("data-mirror");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation")},SU=function(a){if(!$APP.n($APP.k(a,"__xOrganicDividerInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;line-height:0;font-size:0;overflow:hidden;--x-organic-divider-color:var(--x-color-primary,#6366f1);--x-organic-divider-color-1:color-mix(in srgb,var(--x-organic-divider-color) 15%,transparent);--x-organic-divider-color-2:color-mix(in srgb,var(--x-organic-divider-color) 25%,transparent);--x-organic-divider-color-3:color-mix(in srgb,var(--x-organic-divider-color) 40%,transparent);--x-organic-divider-color-4:color-mix(in srgb,var(--x-organic-divider-color) 60%,transparent);--x-organic-divider-color-5:color-mix(in srgb,var(--x-organic-divider-color) 85%,transparent);--x-organic-divider-height:120px;--x-organic-divider-animate-duration:6s;--x-organic-divider-animate-timing:ease-in-out;}@media (prefers-color-scheme:dark){:host{--x-organic-divider-color:var(--x-color-primary,#818cf8);}}[part\x3dbase]{width:100%;position:relative;overflow:hidden;}[part\x3dbase] svg{display:block;width:100%;height:100%;}:host([data-flip]) [part\x3dbase]{transform:scaleY(-1);}:host([data-mirror]) [part\x3dbase]{transform:scaleX(-1);}:host([data-flip][data-mirror]) [part\x3dbase]{transform:scaleX(-1) scaleY(-1);}@keyframes x-organic-divider-drift{0%{transform:translateX(0);}100%{transform:translateX(-33.333%);}}:host([data-animation\x3ddrift]) [part\x3dbase] svg{width:150%;animation:x-organic-divider-drift var(--x-organic-divider-animate-duration) linear infinite;}@keyframes x-organic-divider-morph{0%,100%{d:var(--x-organic-divider-d);}50%{d:var(--x-organic-divider-d-alt);}}:host([data-animation\x3dmorph]) [part\x3dbase] path{animation:x-organic-divider-morph var(--x-organic-divider-animate-duration) var(--x-organic-divider-animate-timing) infinite;}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dbase] svg,:host([data-animation]) [part\x3dbase] path{animation:none;}}";
|
|
8
|
+
d.setAttribute("part","base");e.setAttribute("xmlns","http://www.w3.org/2000/svg");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.setAttribute("role","presentation");a.setAttribute("aria-hidden","true");a.__xOrganicDividerBase=d;a.__xOrganicDividerSvg=e;a.__xOrganicDividerPaths=[];a.__xOrganicDividerInit=!0}RU(a);return null},TU=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xOrganicDividerInit"))&&RU(a);return null},
|
|
9
|
+
UU=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"wave"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"layers",{get:function(){var b=this.getAttribute("layers");return $APP.n(b)?b:"1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("layers",b):this.removeAttribute("layers")},enumerable:!0,
|
|
10
|
+
configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:"120px"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0});Object.defineProperty(a,"flip",{get:function(){return this.hasAttribute("flip")},set:function(b){return $APP.n(b)?this.setAttribute("flip",""):this.removeAttribute("flip")},enumerable:!0,configurable:!0});Object.defineProperty(a,
|
|
11
|
+
"mirror",{get:function(){return this.hasAttribute("mirror")},set:function(b){return $APP.n(b)?this.setAttribute("mirror",""):this.removeAttribute("mirror")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},
|
|
12
|
+
set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0})},WU=function(){return $APP.Lg("x-organic-divider",new $APP.Q(null,4,[$APP.Cg,VU,$APP.Dg,SU,$APP.Fg,TU,$APP.Jg,UU],null))},KU=/[^MmLlHhVvCcSsQqTtAaZz0-9\s,.\-+eE]/,IU=new $APP.K(null,"flip","flip",2033871302),PU=new $APP.K(null,"transforms","transforms",793344554),FU=new $APP.K(null,"x-offset","x-offset",-1499732449),NU=new $APP.K(null,"path-alt","path-alt",
|
|
13
|
+
1724994068),GU=new $APP.K(null,"y-offset","y-offset",-1716542),QU=new $APP.K(null,"drift-d","drift-d",-1241526977),JU=new $APP.K(null,"mirror","mirror",1914600218);var VU="shape layers height flip mirror animation path".split(" "),LU=new $APP.R(null,new $APP.Q(null,3,["none",null,"drift",null,"morph",null],null),null),DU=new $APP.R(null,new $APP.Q(null,8,["drip",null,"cloud",null,"scallop",null,"waves",null,"mountain",null,"slant",null,"blob-edge",null,"wave",null],null),null),MU=new $APP.Q(null,8,["wave",new $APP.Q(null,2,[$APP.ql,"M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z",NU,"M0,45 C200,85 400,15 600,55 C800,90 1000,10 1200,50 L1200,120 L0,120 Z"],
|
|
14
|
+
null),"waves",new $APP.Q(null,2,[$APP.ql,"M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 L1200,120 L0,120 Z",NU,"M0,55 C150,15 300,85 450,50 C600,10 750,80 900,35 C1050,5 1150,75 1200,40 L1200,120 L0,120 Z"],null),"blob-edge",new $APP.Q(null,2,[$APP.ql,"M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 L1200,120 L0,120 Z",NU,"M0,40 C80,65 160,25 240,60 C320,80 400,20 500,45 C600,70 680,15 780,55 C880,75 960,10 1060,35 C1120,55 1180,30 1200,55 L1200,120 L0,120 Z"],
|
|
15
|
+
null),"mountain",new $APP.Q(null,2,[$APP.ql,"M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1200,60 L1200,120 L0,120 Z",NU,"M0,80 C100,80 200,45 350,45 C500,45 450,75 600,75 C750,75 700,30 850,30 C1000,30 950,70 1100,70 C1150,70 1200,50 1200,50 L1200,120 L0,120 Z"],null),"drip",new $APP.Q(null,2,[$APP.ql,"M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 L1200,120 L0,120 Z",
|
|
16
|
+
NU,"M0,20 C50,20 100,20 170,20 C195,20 205,55 220,72 C235,90 245,90 260,72 C275,55 285,20 310,20 L470,20 C495,20 505,45 520,62 C535,80 545,80 560,62 C575,45 585,20 610,20 L820,20 C845,20 855,65 870,85 C885,105 895,105 910,85 C925,65 935,20 960,20 L1200,20 L1200,120 L0,120 Z"],null),"slant",new $APP.Q(null,2,[$APP.ql,"M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 L1200,120 L0,120 Z",NU,"M0,80 C300,70 600,50 900,30 C1000,20 1100,10 1200,20 L1200,120 L0,120 Z"],null),"scallop",new $APP.Q(null,2,
|
|
17
|
+
[$APP.ql,"M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 L1200,120 L0,120 Z",NU,"M0,50 Q75,110 150,50 Q225,-10 300,50 Q375,110 450,50 Q525,-10 600,50 Q675,110 750,50 Q825,-10 900,50 Q975,110 1050,50 Q1125,-10 1200,50 L1200,120 L0,120 Z"],null),"cloud",new $APP.Q(null,2,[$APP.ql,"M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 L1200,120 L0,120 Z",
|
|
18
|
+
NU,"M0,70 C50,70 80,50 140,50 C180,50 200,70 220,70 C240,70 260,30 320,30 C380,30 400,60 440,60 C480,60 500,20 560,20 C620,20 640,50 700,50 C760,50 780,35 840,35 C900,35 920,65 960,65 C1000,65 1040,40 1100,40 C1140,40 1180,70 1200,70 L1200,120 L0,120 Z"],null)],null),OU=new $APP.Q(null,8,"wave;M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 C1400,20 1600,100 1800,60 L1800,120 L0,120 Z;waves;M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 C1350,80 1500,0 1650,40 C1800,80 1800,50 1800,50 L1800,120 L0,120 Z;blob-edge;M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 C1280,30 1360,70 1440,45 C1520,20 1600,80 1700,55 C1800,30 1800,50 1800,50 L1800,120 L0,120 Z;mountain;M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1300,60 C1400,60 1400,30 1500,30 C1600,30 1550,80 1700,80 C1750,80 1800,60 1800,60 L1800,120 L0,120 Z;drip;M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 C1225,20 1235,60 1250,80 C1265,100 1275,100 1290,80 C1305,60 1315,20 1340,20 L1500,20 C1525,20 1535,50 1550,70 C1565,90 1575,90 1590,70 C1605,50 1615,20 1640,20 L1800,20 L1800,120 L0,120 Z;slant;M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 C1300,2 1500,90 1800,100 L1800,120 L0,120 Z;scallop;M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 Q1275,0 1350,60 Q1425,120 1500,60 Q1575,0 1650,60 Q1725,120 1800,60 L1800,120 L0,120 Z;cloud;M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 C1240,60 1260,20 1320,20 C1380,20 1400,50 1440,50 C1480,50 1500,10 1560,10 C1620,10 1640,40 1700,40 C1760,40 1780,60 1800,60 L1800,120 L0,120 Z".split(";"),
|
|
19
|
+
null);$APP.ha("baredom.exports.x_organic_divider.init",WU);export const init=WU;
|
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
"number"&&$APP.
|
|
4
|
-
l=g>h?1:0,m=g>h?0:1,p=g+-l
|
|
5
|
-
c){var d=[],e=[];c=
|
|
6
|
-
g[0]*.2;return b.i?b.i(H,200):b.call(null,H,200)}();h[2]+=.436+.1*p;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(p=e.pop(),h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3])}m+=1}else break;d.sort(function(H,G){var J=$APP.k(H,"x2")-20;H=$APP.k(H,"y2")-100;var
|
|
7
|
-
return $APP.Rc(a,c)<0?""+$APP.
|
|
8
|
-
"key")-$APP.k(G,"key")});c={};d=[];e=[0];g=a.length;for(h=0;;)if(h<g){
|
|
9
|
-
b*d,b]},
|
|
10
|
-
c=
|
|
11
|
-
$APP.k(a,"__xOrganicProgressLines");return $APP.n(y)?y:[]}();for(var g=d.length,h=[],l=0;;)if(l<b){var m=l<g?d[l]:function(){var y=document.createElementNS("http://www.w3.org/2000/svg","line");y.setAttribute("stroke-linecap","round");e.appendChild(y);return y}(),p=c[l],
|
|
12
|
-
"0");h.push(m);l+=1}else break;for(;;)if(b<g)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},
|
|
13
|
-
","+$APP.
|
|
14
|
-
""+$APP.
|
|
15
|
-
c=$APP.k(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(g)?c>0:g))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=g[e],$APP.n(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},
|
|
16
|
-
[],l=0;;)if(l<c){var m=b[l];if($APP.k(m,"depth")>=2){var p=document.createElementNS("http://www.w3.org/2000/svg","circle"),
|
|
17
|
-
0},
|
|
18
|
-
"__xOrganicProgressBEls"),b=1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){g=a[e];var h=$APP.k(g,"__dx")*b*8,l=$APP.k(g,"__dy")*b*8;g.setAttribute("r",""+$APP.
|
|
19
|
-
!1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return
|
|
20
|
-
return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.
|
|
21
|
-
"progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.
|
|
22
|
-
"honeycomb");d=$APP.Bc(
|
|
23
|
-
($APP.n(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));$APP.n($APP.n(d)?$APP.
|
|
24
|
-
|
|
25
|
-
"color",{get:function(){return
|
|
26
|
-
set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute("density",""+$APP.
|
|
27
|
-
this.setAttribute("label",""+$APP.
|
|
28
|
-
"g")
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
$APP.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var C4=new $APP.S(null,new $APP.R(null,2,["honeycomb",null,"vine",null],null),null),F4=new $APP.S(null,new $APP.R(null,3,["dense",null,"normal",null,"sparse",null],null),null),q5=new $APP.R(null,3,["sparse",2,"normal",3,"dense",4],null),P4=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,
|
|
2
|
+
var O6=function(a){return typeof a==="string"&&(a=a.trim(),$APP.N(a,""))?(a=parseFloat(a),$APP.n(isNaN(a))?null:Math.min(100,Math.max(0,a))):null},Q6=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(P6,a)?a:"vine"},R6=function(a){return a==null?!0:$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},T6=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(S6,a)?a:"normal"},U6=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
|
|
3
|
+
"number"&&$APP.q(isNaN(a))&&a>0?a:42):42},V6=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},W6=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},X6=function(a){a=(typeof a==="number"&&$APP.q(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},Y6=function(a){var b=a[0];b^=b<<13;b^=b>>>17;b=b^b<<5|0;a[0]=b;return Math.abs(b)/2147483647},c7=function(a,b){var c=(a+b)*Z6,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*$6,g=a-(d-e),h=b-(c-e),
|
|
4
|
+
l=g>h?1:0,m=g>h?0:1,p=g+-l-$6,r=h+-m-$6,v=g+-1-2*$6,x=h+-1-2*$6,y=d&255,A=c&255,C=.5-g*g-h*h,E=.5-p*p-r*r,H=.5-v*v-x*x;return 70*((C<0?0:function(){var G=C*C,J=a7[b7[y+b7[A&255]&255]&11];return G*G*(J[0]*g+J[1]*h)}())+(E<0?0:function(){var G=E*E,J=a7[b7[y+l+b7[A+m&255]&255]&11];return G*G*(J[0]*p+J[1]*r)}())+(H<0?0:function(){var G=H*H,J=a7[b7[y+1+b7[A+1&255]&255]&11];return G*G*(J[0]*v+J[1]*x)}()))},d7=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return c7(d+b,e+c)}},e7=function(a,b,
|
|
5
|
+
c){var d=[],e=[];c=X6(c);for(var g=[0],h=[20,100,0,0],l=a.length,m=0;;)if(m<l){switch(a.charAt(m)){case "F":var p=h[0],r=h[1],v=h[2],x=h[3],y=g[0],A=38*Math.pow(.7,x)*(.8+.4*Y6(c)),C=function(){var H=y*.3;var G=x*.5;H=b.i?b.i(H,G):b.call(null,H,G);return v+.15*H}(),E=p+A*Math.cos(C);A=r+A*Math.sin(C);d.push({x1:p,y1:r,x2:E,y2:A,depth:x,index:y});h[0]=E;h[1]=A;g[0]=y+1;break;case "+":p=function(){var H=g[0]*.2;return b.i?b.i(H,100):b.call(null,H,100)}();h[2]-=.436+.1*p;break;case "-":p=function(){var H=
|
|
6
|
+
g[0]*.2;return b.i?b.i(H,200):b.call(null,H,200)}();h[2]+=.436+.1*p;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(p=e.pop(),h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3])}m+=1}else break;d.sort(function(H,G){var J=$APP.k(H,"x2")-20;H=$APP.k(H,"y2")-100;var U=$APP.k(G,"x2")-20;G=$APP.k(G,"y2")-100;return J*J+H*H-(U*U+G*G)});return[d,d.length]},f7=function(a,b,c,d){a=""+$APP.S.g(a.toFixed(1))+","+$APP.S.g(b.toFixed(1));c=""+$APP.S.g(c.toFixed(1))+","+$APP.S.g(d.toFixed(1));
|
|
7
|
+
return $APP.Rc(a,c)<0?""+$APP.S.g(a)+"-"+$APP.S.g(c):""+$APP.S.g(c)+"-"+$APP.S.g(a)},h7=function(a,b){b=$APP.Bc(g7,b,25);var c=X6(a),d=1.5*b,e=Math.sqrt(3)*b,g=Math.ceil(800/d)+4,h=Math.ceil(200/e)+4;a=[];for(var l=Math.sqrt(17E4),m=-2;;)if(m<g){for(var p=m*d,r=$APP.Ud(m)?0:e/2,v=-2;;)if(v<h){var x=v*e+r;if(p>0-b&&p<800+b&&x>0-b&&x<200+b){var y=p-400,A=x-100;y=Math.sqrt(y*y+A*A);A=y*.7+Y6(c)*.3*l;a.push({cx:p,cy:x,dist:y,key:A})}v+=1}else break;m+=1}else break;a.sort(function(H,G){return $APP.k(H,
|
|
8
|
+
"key")-$APP.k(G,"key")});c={};d=[];e=[0];g=a.length;for(h=0;;)if(h<g){r=a[h];m=$APP.k(r,"cx");p=$APP.k(r,"cy");r=Math.min(2,Math.floor($APP.k(r,"dist")*3/(l+.001)));for(v=0;;)if(v<6){y=Math.PI/3*v;var C=Math.PI/3*(v+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(C);C=p+b*Math.sin(C);var E=f7(x,y,A,C);$APP.n($APP.k(c,E))||(c[E]=!0,E=e[0],d.push({x1:x,y1:y,x2:A,y2:C,depth:r,index:E}),e[0]=E+1);v+=1}else break;h+=1}else break;return[d,d.length]},i7=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
|
|
9
|
+
b*d,b]},j7=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},q7=function(a){a=new $APP.Q(null,7,[$APP.xk,a.getAttribute("progress"),$APP.Ml,a.getAttribute("variant"),$APP.zn,a.getAttribute("color"),k7,a.getAttribute("bloom"),l7,a.getAttribute("density"),m7,a.getAttribute("seed"),$APP.Hi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.xk);a=$APP.D(b,$APP.Ml);var d=$APP.D(b,$APP.zn),e=$APP.D(b,k7),g=$APP.D(b,l7),h=$APP.D(b,m7);b=$APP.D(b,$APP.Hi);
|
|
10
|
+
c=O6(c);var l=c==null,m=$APP.n(c)?c:0,p=!l&&m>=100;return $APP.zf([$APP.rm,$APP.jk,$APP.lh,n7,o7,$APP.rn,$APP.T,$APP.em,$APP.Dl,$APP.um,p7],[l,W6(d),Q6(a),R6(e),U6(h),l?"Loading...":""+$APP.S.g(Math.round(m))+"%",V6(b),m,p,c,T6(g)])},r7=function(a,b){a=window.getComputedStyle(a).getPropertyValue("--x-organic-progress-branch-width").trim();return $APP.N(a,"")?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},t7=function(a,b,c){var d=$APP.M($APP.k(a,"__xOrganicProgressRefs")),e=$APP.D(d,s7);d=function(){var y=
|
|
11
|
+
$APP.k(a,"__xOrganicProgressLines");return $APP.n(y)?y:[]}();for(var g=d.length,h=[],l=0;;)if(l<b){var m=l<g?d[l]:function(){var y=document.createElementNS("http://www.w3.org/2000/svg","line");y.setAttribute("stroke-linecap","round");e.appendChild(y);return y}(),p=c[l],r=$APP.k(p,"y1"),v=$APP.k(p,"x2"),x=$APP.k(p,"y2");m.setAttribute("x1",""+$APP.S.g($APP.k(p,"x1")));m.setAttribute("y1",""+$APP.S.g(r));m.setAttribute("x2",""+$APP.S.g(v));m.setAttribute("y2",""+$APP.S.g(x));m.setAttribute("opacity",
|
|
12
|
+
"0");h.push(m);l+=1}else break;for(;;)if(b<g)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},u7=function(a){var b=$APP.k(a,"__xOrganicProgressLines"),c=$APP.k(a,"__xOrganicProgressSegs"),d=$APP.k(a,"__xOrganicProgressSegN"),e=$APP.k(a,"__xOrganicProgressModel"),g=$APP.B.i($APP.lh.g(e),"honeycomb");e=$APP.jk.g(e);var h=$APP.n(e)?e:"var("+$APP.S.g("--x-organic-progress-color-primary")+","+$APP.S.g(g?"#818cf8":"#22c55e")+")",l="var("+$APP.S.g("--x-organic-progress-color-secondary")+
|
|
13
|
+
","+$APP.S.g(g?"#a5b4fc":"#16a34a")+")";a=r7(a,g?1.5:3);if(g)for(g=0;;)if(g<d){e=b[g];var m=$APP.k(c[g],"depth");e.setAttribute("stroke-width",""+$APP.S.g(a));e.style.stroke=function(){switch(m){case 0:return h;case 1:return l;default:return l}}();e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity",function(){switch(m){case 0:return"0.9";case 1:return"0.7";default:return"0.5"}}());g+=1}else break;else for(g=0;;)if(g<d){e=b[g];var p=$APP.k(c[g],"depth"),r=p===0?h:l;e.setAttribute("stroke-width",
|
|
14
|
+
""+$APP.S.g(Math.max(.5,a-p*.6)));e.style.stroke=r;e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity","1");g+=1}else break},v7=function(a){var b=$APP.k(a,"__xOrganicProgressSPos"),c=$APP.k(a,"__xOrganicProgressSegN"),d=Math.floor(b/100*c),e=$APP.k(a,"__xOrganicProgressPV"),g=$APP.k(a,"__xOrganicProgressLines");if($APP.N(d,e)){c=Math.max(d,e<0?c:e);for(e=Math.min(d,e<0?0:e);;)if(e<c){var h=g[e];$APP.n(h)&&h.setAttribute("opacity",e<d?"1":"0");e+=1}else break;g=$APP.k(a,"__xOrganicProgressNodes");
|
|
15
|
+
c=$APP.k(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(g)?c>0:g))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=g[e],$APP.n(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},x7=function(a){var b=$APP.k(a,"__xOrganicProgressSegs"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));d=$APP.D(d,w7);var e=$APP.k(a,"__xOrganicProgressModel"),g="var("+$APP.S.g("--x-organic-progress-bloom-color")+",#f472b6)";e=X6(o7.g(e)+7);for(var h=
|
|
16
|
+
[],l=0;;)if(l<c){var m=b[l];if($APP.k(m,"depth")>=2){var p=document.createElementNS("http://www.w3.org/2000/svg","circle"),r=$APP.k(m,"x2");m=$APP.k(m,"y2");var v=2*Y6(e)-1,x=2*Y6(e)-1;p.setAttribute("cx",""+$APP.S.g(r));p.setAttribute("cy",""+$APP.S.g(m));p.setAttribute("r","0");p.style.fill=g;p.setAttribute("opacity","0");p.setAttribute("class","bloom-petal");p.__dx=v;p.__dy=x;d.appendChild(p);h.push(p)}l+=1}else break;a.__xOrganicProgressBEls=h;a.__xOrganicProgressBloom=!0;a.__xOrganicProgressBT=
|
|
17
|
+
0},y7=function(a,b){b=$APP.k(a,"__xOrganicProgressBT")+b;var c=b/1.5;a.__xOrganicProgressBT=b;if(c>1){b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,w7);c=$APP.k(a,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1;a.dispatchEvent(new CustomEvent("x-organic-progress-bloom-end",{bubbles:!0,composed:!0,detail:{progress:100}}))}else for(a=$APP.k(a,
|
|
18
|
+
"__xOrganicProgressBEls"),b=1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){g=a[e];var h=$APP.k(g,"__dx")*b*8,l=$APP.k(g,"__dy")*b*8;g.setAttribute("r",""+$APP.S.g(b*2.5));g.setAttribute("opacity",""+$APP.S.g(c));g.setAttribute("transform","translate("+$APP.S.g(h)+","+$APP.S.g(l)+")");e+=1}else break},A7=function(a){a.__xOrganicProgressTime=0;a.__xOrganicProgressSPos=0;a.__xOrganicProgressSVel=0;$APP.ja(a,"__xOrganicProgressLF",performance.now());a.__xOrganicProgressDone=
|
|
19
|
+
!1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return z7(a)}))},B7=function(a){for(var b=$APP.k(a,"__xOrganicProgressModel"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.n($APP.rm.g(b))?50:$APP.em.g(b),e=Math.floor(d/100*c),g=$APP.k(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var l=g[h];$APP.n(l)&&l.setAttribute("opacity",h<e?"1":"0");h+=1}else break;c=$APP.k(a,"__xOrganicProgressNodes");g=function(){var m=$APP.k(a,"__xOrganicProgressNN");
|
|
20
|
+
return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.Dl.g(b);return $APP.n(m)?$APP.q($APP.k(a,"__xOrganicProgressDone")):m}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})))},F7=function(a,b){var c=q7(a);a.__xOrganicProgressModel=c;a.setAttribute("role",
|
|
21
|
+
"progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.rm.g(c))?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext","Loading...")):(a.setAttribute("aria-valuenow",""+$APP.S.g(Math.round($APP.em.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.rn.g(c)));var d=$APP.T.g(c);$APP.n(d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");if(b==null||$APP.I(C7,b)){b=$APP.B.i($APP.lh.g(c),
|
|
22
|
+
"honeycomb");d=$APP.Bc(D7,p7.g(c),3);if(b)c=h7(o7.g(c),p7.g(c));else{a:{for(var e=new $APP.Q(null,1,["F","F[+F]F[-F]F"],null),g="F",h=0;;){if(h>=d){d=g;break a}for(var l=[],m=g.length,p=0;;)if(p<m){var r=g.charAt(p),v=$APP.D(e,r);$APP.n(v)?l.push(v):l.push(r);p+=1}else break;h+=1;g=l.join("")}d=void 0}e=d7(o7.g(c));c=e7(d,e,o7.g(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=c;a.__xOrganicProgressSegN=d;t7(a,d,c);d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));c=$APP.D(d,s7);d=$APP.D(d,$APP.Fj);$APP.n(c)&&
|
|
23
|
+
($APP.n(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));$APP.n($APP.n(d)?$APP.q(b):d)&&d.setAttribute("stdDeviation","2");b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,E7);c=$APP.k(a,"__xOrganicProgressNodes");if($APP.n($APP.n(b)?c:b))for(d=c.length,e=0;;)if(e<d)g=c[e],$APP.n(g.parentNode)&&b.removeChild(g),e+=1;else break;a.__xOrganicProgressNodes=null;a.__xOrganicProgressND=null;a.__xOrganicProgressNN=0;u7(a);a.__xOrganicProgressPV=-1;j7()&&B7(a)}},
|
|
24
|
+
G7=function(a){Object.defineProperty(a,"progress",{get:function(){return O6(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){return Q6(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
|
|
25
|
+
"color",{get:function(){return W6(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"bloom",{get:function(){return R6(this.getAttribute("bloom"))},set:function(b){return $APP.n(b)?this.removeAttribute("bloom"):this.setAttribute("bloom","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"density",{get:function(){return T6(this.getAttribute("density"))},
|
|
26
|
+
set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute("density",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"seed",{get:function(){return U6(this.getAttribute("seed"))},set:function(b){return b==null?this.removeAttribute("seed"):this.setAttribute("seed",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"label",{get:function(){return V6(this.getAttribute("label"))},set:function(b){return b==null?this.removeAttribute("label"):
|
|
27
|
+
this.setAttribute("label",""+$APP.S.g(b))},enumerable:!0,configurable:!0})},I7=function(a){var b=q7(a);a.__xOrganicProgressModel=b;if(!$APP.n($APP.k(a,"__xOrganicProgressRefs"))){b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","defs"),g=document.createElementNS("http://www.w3.org/2000/svg","g"),h=document.createElementNS("http://www.w3.org/2000/svg","g"),l=document.createElementNS("http://www.w3.org/2000/svg",
|
|
28
|
+
"g");c.textContent=H7;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 800 200");d.setAttribute("preserveAspectRatio","xMidYMid slice");d.setAttribute("aria-hidden","true");g.setAttribute("part","branches");g.setAttribute("filter","url(#"+$APP.S.g("x-organic-progress-gooey")+")");h.setAttribute("part","nodes");l.setAttribute("part","blooms");var m=document.createElementNS("http://www.w3.org/2000/svg","filter");var p=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),
|
|
29
|
+
r=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id","x-organic-progress-gooey");m.setAttribute("x","-10%");m.setAttribute("y","-10%");m.setAttribute("width","120%");m.setAttribute("height","120%");p.setAttribute("in","SourceGraphic");p.setAttribute("stdDeviation",""+$APP.S.g(2));p.setAttribute("result","blur");r.setAttribute("in","blur");r.setAttribute("type","matrix");r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(p);
|
|
30
|
+
m.appendChild(r);e.appendChild(m);m=new $APP.Q(null,3,[$APP.Cl,m,$APP.Fj,p,$APP.nn,r],null);d.appendChild(e);d.appendChild(g);d.appendChild(h);d.appendChild(l);b.appendChild(c);b.appendChild(d);b=$APP.Rf($APP.uc([m,new $APP.Q(null,5,[$APP.Zi,b,$APP.Ek,d,s7,g,E7,h,w7,l],null)]));a.__xOrganicProgressRefs=b}F7(a,null);u7(a);j7()?B7(a):A7(a);return null},J7=function(a){var b=$APP.k(a,"__xOrganicProgressRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xOrganicProgressRaf=null);if($APP.n($APP.k(a,"__xOrganicProgressBloom"))){b=
|
|
31
|
+
$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,w7);var c=$APP.k(a,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1}return null},K7=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xOrganicProgressRefs"))&&(F7(a,b),$APP.I(C7,b)||u7(a));return null},M7=function(){return $APP.Lg("x-organic-progress",new $APP.Q(null,5,[$APP.Cg,L7,$APP.Dg,I7,$APP.Eg,
|
|
32
|
+
J7,$APP.Fg,K7,$APP.Jg,G7],null))},E7=new $APP.K(null,"nodes-g","nodes-g",89420858),l7=new $APP.K(null,"density-raw","density-raw",1719413082),s7=new $APP.K(null,"branches-g","branches-g",548989635),n7=new $APP.K(null,"bloom?","bloom?",-326837587),k7=new $APP.K(null,"bloom-attr","bloom-attr",-1778398039),p7=new $APP.K(null,"density","density",-1664155941),o7=new $APP.K(null,"seed","seed",68613327),m7=new $APP.K(null,"seed-raw","seed-raw",2146438207),w7=new $APP.K(null,"blooms-g","blooms-g",-1476393864);var L7="progress variant color bloom density seed label".split(" ");$APP.Pd(["x-organic-progress-complete",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null),"x-organic-progress-bloom-end",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null)]);
|
|
33
|
+
var P6=new $APP.R(null,new $APP.Q(null,2,["honeycomb",null,"vine",null],null),null),S6=new $APP.R(null,new $APP.Q(null,3,["dense",null,"normal",null,"sparse",null],null),null),D7=new $APP.Q(null,3,["sparse",2,"normal",3,"dense",4],null),b7=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,
|
|
35
34
|
83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,
|
|
36
|
-
107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],
|
|
37
|
-
":1;background:var("+$APP.
|
|
38
|
-
|
|
39
|
-
$APP.
|
|
40
|
-
requestAnimationFrame(function(){return
|
|
35
|
+
107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],a7=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],Z6=(Math.sqrt(3)-1)/2,$6=(3-Math.sqrt(3))/6,g7=new $APP.Q(null,3,["sparse",40,"normal",25,"dense",16],null);var H7=":host{display:block;position:relative;min-height:60px;width:100%;overflow:hidden;"+$APP.S.g("--x-organic-progress-color-primary")+":var(--x-color-success,#22c55e);"+$APP.S.g("--x-organic-progress-color-secondary")+":var(--x-color-success,#16a34a);"+$APP.S.g("--x-organic-progress-bloom-color")+":var(--x-color-danger,#f472b6);"+$APP.S.g("--x-organic-progress-bg")+":transparent;"+$APP.S.g("--x-organic-progress-branch-width")+":3;"+$APP.S.g("--x-organic-progress-glow")+":2;"+$APP.S.g("--x-organic-progress-opacity")+
|
|
36
|
+
":1;background:var("+$APP.S.g("--x-organic-progress-bg")+",transparent);opacity:var("+$APP.S.g("--x-organic-progress-opacity")+",1);}[part\x3dsvg]{display:block;width:100%;height:100%;}[part\x3dnodes] circle{fill:var("+$APP.S.g("--x-organic-progress-color-primary")+",#22c55e);}@media(prefers-color-scheme:dark){:host{--x-organic-progress-color-primary:var(--x-color-success,#4ade80);--x-organic-progress-color-secondary:var(--x-color-success,#22c55e);--x-organic-progress-bloom-color:var(--x-color-danger,#f9a8d4);}}@media(prefers-reduced-motion:reduce){[part\x3dsvg]{transition:none!important;}.bloom-petal{transition:none!important;animation:none!important;}}",
|
|
37
|
+
z7=function z7(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.k(a,"__xOrganicProgressTime")+e;d=$APP.n($APP.rm.g(c))?50+20*Math.sin($APP.k(a,"__xOrganicProgressTime")*1.5):$APP.em.g(c);d=i7($APP.k(a,"__xOrganicProgressSPos"),d,$APP.k(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];v7(a);$APP.n(function(){var g=
|
|
38
|
+
$APP.Dl.g(c);return $APP.n(g)?$APP.q($APP.k(a,"__xOrganicProgressDone")):g}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})),$APP.n(n7.g(c))&&x7(a));$APP.n(function(){var g=$APP.q($APP.Dl.g(c));return g?(g=$APP.k(a,"__xOrganicProgressDone"),$APP.n(g)?$APP.q($APP.k(a,"__xOrganicProgressBloom")):g):g}())&&(a.__xOrganicProgressDone=!1);$APP.n($APP.k(a,"__xOrganicProgressBloom"))&&y7(a,e);$APP.ja(a,"__xOrganicProgressRaf",
|
|
39
|
+
requestAnimationFrame(function(){return z7.g?z7.g(a):z7.call(null,a)}))}return null},C7=$APP.Uf(["variant","density","seed"]);$APP.ha("baredom.exports.x_organic_progress.init",M7);export const init=M7;
|
package/dist/x-organic-shape.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},
|
|
4
|
-
$APP.
|
|
5
|
-
"morph")&&m==null?"none":l;h=typeof h==="string"&&$APP.N("",h.trim())?h.trim():"1/1";b=new $APP.
|
|
6
|
-
m.style.setProperty("clip-path",b);m.style.setProperty("aspect-ratio",e);$APP.n(d)?m.style.setProperty("width",d):m.style.removeProperty("width");$APP.n(g)?m.style.setProperty("height",g):m.style.removeProperty("height");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation");
|
|
7
|
-
b);
|
|
8
|
-
Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"ratio",{get:function(){var b=this.getAttribute("ratio");return $APP.n(b)?b:"1/1"},set:function(b){return typeof b===
|
|
9
|
-
configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b===
|
|
10
|
-
configurable:!0})},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
eM,"polygon(0% 30%, 15% 25%, 30% 35%, 50% 20%, 70% 32%, 85% 22%, 100% 35%, 100% 70%, 85% 80%, 70% 68%, 50% 80%, 30% 70%, 15% 78%, 0% 65%)"],null)],null);$APP.ha("baredom.exports.x_organic_shape.init",kM);export const init=kM;
|
|
2
|
+
var pN=function(a){return typeof a==="string"&&$APP.I(oN,a)?a:"blob-1"},qN=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},rN=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-organic-shape-fill:rgba(99,102,241,0.12);--x-organic-shape-stroke:transparent;--x-organic-shape-stroke-width:0;--x-organic-shape-opacity:1;--x-organic-shape-shadow:none;--x-organic-shape-animate-duration:8s;--x-organic-shape-animate-timing:ease-in-out;--x-organic-shape-animate-direction:normal;--x-organic-shape-animate-delay:0s;}@media (prefers-color-scheme:dark){:host{--x-organic-shape-fill:rgba(129,140,248,0.18);}}[part\x3dshape]{width:100%;height:100%;position:relative;overflow:hidden;background:var(--x-organic-shape-fill);outline:var(--x-organic-shape-stroke-width) solid var(--x-organic-shape-stroke);outline-offset:calc(-1 * var(--x-organic-shape-stroke-width));opacity:var(--x-organic-shape-opacity);filter:var(--x-organic-shape-shadow);display:flex;align-items:center;justify-content:center;transition:clip-path 0.3s ease,opacity 0.3s ease;}@keyframes x-organic-shape-morph{0%,100%{clip-path:var(--x-organic-shape-clip);}50%{clip-path:var(--x-organic-shape-clip-alt);}}@keyframes x-organic-shape-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.06);}}@keyframes x-organic-shape-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-6%);}}@keyframes x-organic-shape-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}:host([data-animation\x3dmorph]) [part\x3dshape]{animation:x-organic-shape-morph var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dpulse]) [part\x3dshape]{animation:x-organic-shape-pulse var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dfloat]) [part\x3dshape]{animation:x-organic-shape-float var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dspin]) [part\x3dshape]{animation:x-organic-shape-spin var(--x-organic-shape-animate-duration) linear var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dshape]{animation:none;}}";
|
|
3
|
+
d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},sN=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")},xN=function(a){var b=new $APP.Q(null,6,[$APP.Ck,a.getAttribute("shape"),$APP.ql,a.getAttribute("path"),$APP.mh,a.getAttribute("animation"),
|
|
4
|
+
$APP.Pj,a.getAttribute("ratio"),$APP.nh,a.getAttribute("width"),$APP.oh,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Ck),e=$APP.D(c,$APP.ql),g=$APP.D(c,$APP.mh),h=$APP.D(c,$APP.Pj);b=$APP.D(c,$APP.nh);c=$APP.D(c,$APP.oh);e=typeof e==="string"&&$APP.N("",e.trim())?e.trim():null;d=pN(d);var l=typeof g==="string"&&$APP.I(tN,g)?g:"none";g=e!=null?e:$APP.he(uN,new $APP.O(null,2,5,$APP.P,[pN(d),vN],null));var m=e==null?$APP.he(uN,new $APP.O(null,2,5,$APP.P,[pN(d),wN],null)):null;l=$APP.B.i(l,
|
|
5
|
+
"morph")&&m==null?"none":l;h=typeof h==="string"&&$APP.N("",h.trim())?h.trim():"1/1";b=new $APP.Q(null,8,[$APP.Ck,d,$APP.ql,e,vN,g,wN,m,$APP.mh,l,$APP.Pj,h,$APP.nh,qN(b),$APP.oh,qN(c)],null);g=$APP.M(b);b=$APP.D(g,vN);h=$APP.D(g,wN);c=$APP.D(g,$APP.mh);e=$APP.D(g,$APP.Pj);d=$APP.D(g,$APP.nh);g=$APP.D(g,$APP.oh);m=$APP.k(a,"__xOrganicShapeBase");l=$APP.k(a,"__xOrganicShapeSlot");m.style.setProperty("--x-organic-shape-clip",b);$APP.n(h)?m.style.setProperty("--x-organic-shape-clip-alt",h):m.style.removeProperty("--x-organic-shape-clip-alt");
|
|
6
|
+
m.style.setProperty("clip-path",b);m.style.setProperty("aspect-ratio",e);$APP.n(d)?m.style.setProperty("width",d):m.style.removeProperty("width");$APP.n(g)?m.style.setProperty("height",g):m.style.removeProperty("height");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation");sN(a,l)},yN=function(a){function b(){return sN(a,c)}$APP.n($APP.k(a,"__xOrganicShapeInit"))||rN(a);var c=$APP.k(a,"__xOrganicShapeSlot");a.__xOrganicShapeSlotHandler=b;c.addEventListener("slotchange",
|
|
7
|
+
b);xN(a);return null},zN=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xOrganicShapeInit"))&&xN(a);return null},AN=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"blob-1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b===
|
|
8
|
+
"string"&&$APP.N("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"ratio",{get:function(){var b=this.getAttribute("ratio");return $APP.n(b)?b:"1/1"},set:function(b){return typeof b===
|
|
9
|
+
"string"&&$APP.N("",b)?this.setAttribute("ratio",b):this.removeAttribute("ratio")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b===
|
|
10
|
+
"string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},CN=function(){return $APP.Lg("x-organic-shape",new $APP.Q(null,4,[$APP.Cg,BN,$APP.Dg,yN,$APP.Fg,zN,$APP.Jg,AN],null))},vN=new $APP.K(null,"clip","clip",830998499),wN=new $APP.K(null,"clip-alt","clip-alt",-684562835);var BN="shape path animation ratio width height".split(" "),tN=new $APP.R(null,new $APP.Q(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),oN=new $APP.R(null,new $APP.Q(null,8,["cloud",null,"blob-3",null,"leaf",null,"pebble",null,"blob-1",null,"blob-2",null,"wave",null,"droplet",null],null),null),uN=new $APP.Q(null,8,["blob-1",new $APP.Q(null,2,[vN,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",wN,"polygon(25% 5%, 75% 0%, 95% 25%, 100% 65%, 75% 95%, 25% 100%, 0% 65%, 5% 25%)"],
|
|
11
|
+
null),"blob-2",new $APP.Q(null,2,[vN,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",wN,"polygon(50% 5%, 85% 15%, 100% 45%, 90% 80%, 65% 95%, 35% 95%, 10% 80%, 0% 45%, 15% 15%)"],null),"blob-3",new $APP.Q(null,2,[vN,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",wN,"polygon(25% 5%, 75% 5%, 95% 25%, 100% 55%, 85% 85%, 65% 95%, 35% 95%, 15% 85%, 0% 55%, 5% 25%)"],null),"pebble",new $APP.Q(null,2,[vN,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
|
|
12
|
+
wN,"polygon(50% 5%, 75% 12%, 93% 32%, 96% 58%, 82% 85%, 52% 96%, 28% 90%, 8% 62%, 5% 38%, 25% 12%)"],null),"leaf",new $APP.Q(null,2,[vN,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",wN,"polygon(50% 3%, 78% 18%, 95% 42%, 88% 72%, 62% 95%, 50% 97%, 38% 95%, 12% 72%, 5% 42%, 22% 18%)"],null),"droplet",new $APP.Q(null,2,[vN,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",wN,"polygon(50% 5%, 70% 22%, 88% 48%, 92% 70%, 78% 90%, 50% 97%, 22% 90%, 8% 70%, 12% 48%, 30% 22%)"],
|
|
13
|
+
null),"cloud",new $APP.Q(null,2,[vN,"polygon(10% 60%, 0% 45%, 5% 30%, 18% 20%, 32% 15%, 45% 8%, 58% 12%, 72% 8%, 85% 18%, 95% 32%, 100% 50%, 95% 65%, 80% 75%, 55% 80%, 30% 78%, 15% 72%)",wN,"polygon(12% 58%, 2% 43%, 8% 28%, 20% 18%, 35% 12%, 48% 10%, 60% 14%, 75% 10%, 88% 20%, 97% 35%, 98% 52%, 92% 68%, 78% 78%, 52% 82%, 28% 80%, 13% 70%)"],null),"wave",new $APP.Q(null,2,[vN,"polygon(0% 35%, 15% 20%, 30% 30%, 50% 15%, 70% 28%, 85% 18%, 100% 30%, 100% 75%, 85% 85%, 70% 72%, 50% 85%, 30% 75%, 15% 82%, 0% 70%)",
|
|
14
|
+
wN,"polygon(0% 30%, 15% 25%, 30% 35%, 50% 20%, 70% 32%, 85% 22%, 100% 35%, 100% 70%, 85% 80%, 70% 68%, 50% 80%, 30% 70%, 15% 78%, 0% 65%)"],null)],null);$APP.ha("baredom.exports.x_organic_shape.init",CN);export const init=CN;
|
package/dist/x-pagination.d.ts
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
export function init(): void;
|
|
4
4
|
|
|
5
5
|
export interface XPaginationEventMap {
|
|
6
|
-
"
|
|
6
|
+
"page-change-request": CustomEvent<{ page: number; previousPage: number }>;
|
|
7
|
+
"page-change": CustomEvent<{ page: number }>;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export interface XPagination extends HTMLElement {
|
package/dist/x-pagination.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
var g=document.createElement("li");var h=document.createElement("button"),l=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");l.setAttribute("name","prev");l.textContent="Prev";h.appendChild(l);g.appendChild(h);g=new $APP.
|
|
4
|
-
l.setAttribute("part","button button-next");l.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";l.appendChild(m);h.appendChild(l);h=new $APP.
|
|
5
|
-
d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(
|
|
6
|
-
"button button-page");e.setAttribute("aria-label","Page "+$APP.
|
|
7
|
-
"…";a.appendChild(b);return a},
|
|
8
|
-
parseInt(e,10);var l=isFinite(e);e=$APP.n($APP.n(l)?e>=0:l)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),l=isFinite(g),l=$APP.n($APP.n(l)?g>=0:l)?g:1):l=1;g=e;e=l;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.I(
|
|
9
|
-
|
|
10
|
-
[$APP.Z,
|
|
11
|
-
c.appendChild(
|
|
12
|
-
d=0;;)if(d<c){var e=b[d];if($APP.B.i("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.
|
|
13
|
-
d)}var c=
|
|
14
|
-
""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},
|
|
15
|
-
configurable:!0})},
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
var wQ=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Wc($APP.ya,$APP.Yh,0<b.length?new $APP.Tb(b.slice(0),0,null):null)},xQ=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:1}return 1},CQ=function(a){var b=$APP.k(a,"__xPaginationRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
|
|
3
|
+
var g=document.createElement("li");var h=document.createElement("button"),l=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");l.setAttribute("name","prev");l.textContent="Prev";h.appendChild(l);g.appendChild(h);g=new $APP.Q(null,2,[yQ,g,zQ,h],null);h=document.createElement("li");l=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
|
|
4
|
+
l.setAttribute("part","button button-next");l.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";l.appendChild(m);h.appendChild(l);h=new $APP.Q(null,2,[yQ,h,zQ,l],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:var(--x-radius-sm,0.375rem);--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:var(--x-font-size-sm,0.875rem);--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}@media (pointer:coarse){[part~\x3d'button']{min-width:2.75rem;height:2.75rem;}}";
|
|
5
|
+
d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(yQ.g(g));e.appendChild(yQ.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.Q(null,6,[$APP.Ti,d,$APP.ul,e,AQ,yQ.g(g),$APP.zj,zQ.g(g),BQ,yQ.g(h),$APP.ji,zQ.g(h)],null);a.__xPaginationRefs=b;return $APP.k(a,"__xPaginationRefs")},DQ=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.S.g(a));e.setAttribute("part",
|
|
6
|
+
"button button-page");e.setAttribute("aria-label","Page "+$APP.S.g(a));e.setAttribute("data-page",""+$APP.S.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.S.g(a);d.appendChild(e);return d},EQ=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
|
|
7
|
+
"…";a.appendChild(b);return a},OQ=function(a){a=new $APP.Q(null,7,[FQ,a.getAttribute("page"),GQ,a.getAttribute("total-pages"),HQ,a.getAttribute("sibling-count"),IQ,a.getAttribute("boundary-count"),$APP.nm,a.getAttribute("size"),$APP.fm,a.hasAttribute("disabled"),$APP.Hi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,FQ),d=$APP.D(b,GQ),e=$APP.D(b,HQ),g=$APP.D(b,IQ),h=$APP.D(b,$APP.nm);a=$APP.D(b,$APP.fm);b=$APP.D(b,$APP.Hi);d=xQ(d);c=$APP.Jh.i(1,$APP.Kh.i(xQ(c),d));if(typeof e==="string"){e=
|
|
8
|
+
parseInt(e,10);var l=isFinite(e);e=$APP.n($APP.n(l)?e>=0:l)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),l=isFinite(g),l=$APP.n($APP.n(l)?g>=0:l)?g:1):l=1;g=e;e=l;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.I(JQ,h)?h:"md";return new $APP.Q(null,7,[KQ,c,LQ,d,MQ,g,NQ,e,$APP.di,h,$APP.kk,$APP.F(a),$APP.T,$APP.n(b)?b:"Pagination"],null)},RQ=function(a){var b=CQ(a),c=$APP.ul.g(b),d=$APP.Ti.g(b),e=$APP.zj.g(b),g=$APP.ji.g(b),h=AQ.g(b);b=BQ.g(b);var l=OQ(a),m=$APP.M(l),p=$APP.D(m,KQ),
|
|
9
|
+
r=$APP.D(m,LQ),v=$APP.D(m,MQ),x=$APP.D(m,NQ),y=$APP.D(m,$APP.di);m=$APP.D(m,$APP.T);a:if(r<=0)r=$APP.ee;else{var A=$APP.Kh.i(x,r);x=$APP.Jh.i(r-x- -1,1);var C=$APP.Jh.i(1,p-v);v=$APP.Kh.i(r,p+v);r=$APP.We.i($APP.We.i($APP.We.i(wQ(),$APP.dg(1,A+1)),$APP.dg(x,r+1)),$APP.dg(C,v+1));r=$APP.xe(r);C=$APP.ee;for(v=0;;){if(v>=$APP.z(r)){r=C;break a}A=$APP.pc(r,v);var E=x=v>0?$APP.pc(r,v-1):null;x=$APP.n($APP.n(E)?A>x+1:E)?$APP.ld.i(C,new $APP.Q(null,1,[$APP.Z,PQ],null)):C;A=$APP.ld.i(x,new $APP.Q(null,2,
|
|
10
|
+
[$APP.Z,KQ,QQ,A],null));v+=1;C=A}r=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.M(l);a=$APP.D(d,KQ);d=$APP.D(d,$APP.kk);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.M(l);e=$APP.D(d,KQ);a=$APP.D(d,LQ);d=$APP.D(d,$APP.kk);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.t(r);h=null;for(a=e=0;;)if(a<e)d=h.F(null,a),$APP.B.i(PQ,$APP.Z.g(d))?c.appendChild(EQ()):
|
|
11
|
+
c.appendChild(DQ(QQ.g(d),$APP.B.i(QQ.g(d),p),$APP.kk.g(l))),a+=1;else if(g=$APP.t(g))h=g,$APP.Nc(h)?(g=$APP.xb(h),a=$APP.yb(h),h=g,e=$APP.z(g),g=a):(g=$APP.u(h),$APP.B.i(PQ,$APP.Z.g(g))?c.appendChild(EQ()):c.appendChild(DQ(QQ.g(g),$APP.B.i(QQ.g(g),p),$APP.kk.g(l))),g=$APP.w(h),h=null,e=0),a=0;else break;c.appendChild(b)},SQ=function(a,b){var c=OQ(a);c=KQ.g(c);return $APP.Rg(a,"page-change-request",{page:b,previousPage:c})?a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,
|
|
12
|
+
cancelable:!1})):null},TQ=function(a,b){a:{b=b.composedPath();for(var c=b.length,d=0;;)if(d<c){var e=b[d];if($APP.B.i("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.q(b.hasAttribute("disabled")):b)){d=$APP.k(a,"__xPaginationRefs");c=$APP.zj.g(d);d=$APP.ji.g(d);e=b.getAttribute("data-page");if(b===c)return c=OQ(a),b=KQ.g(c),b>1?SQ(a,b-1):null;if(b===d)return c=OQ(a),b=KQ.g(c),c=LQ.g(c),b<c?SQ(a,b+1):null;if(e!=null)return b=parseInt(e,10),
|
|
13
|
+
$APP.n(isFinite(b))?SQ(a,b):null}return null},UQ=function(a){function b(d){return TQ(a,d)}var c=CQ(a);$APP.ul.g(c).addEventListener("click",b);$APP.ja(a,"__xPaginationHandlers",{click:b})},VQ=function(a){var b=$APP.k(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.k(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.ul.g(c),b=$APP.k(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},WQ=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
|
|
14
|
+
set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},XQ=function(a,b,c){Object.defineProperty(a,b,{get:function(){return xQ(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.S.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},YQ=function(a,b,c,d){return Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.n(e)?e:d},set:function(e){return e!=null?
|
|
15
|
+
this.setAttribute(c,""+$APP.S.g(e)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},ZQ=function(a){XQ(a,"page","page");XQ(a,"total-pages","total-pages");XQ(a,"sibling-count","sibling-count");XQ(a,"boundary-count","boundary-count");YQ(a,"size","size","md");WQ(a);return YQ(a,"label","label","Pagination")},$Q=function(a){CQ(a);VQ(a);UQ(a);RQ(a);return null},aR=function(a){VQ(a);return null},bR=function(a,b,c,d){$APP.N(c,d)&&RQ(a);return null},dR=function(){return $APP.Lg("x-pagination",new $APP.Q(null,
|
|
16
|
+
5,[$APP.Cg,cR,$APP.Dg,$Q,$APP.Eg,aR,$APP.Fg,bR,$APP.Jg,ZQ],null))},GQ=new $APP.K(null,"total-pages-raw","total-pages-raw",430880208),NQ=new $APP.K(null,"boundary-count","boundary-count",1637925987),IQ=new $APP.K(null,"boundary-count-raw","boundary-count-raw",410083250),LQ=new $APP.K(null,"total-pages","total-pages",685894112),KQ=new $APP.K(null,"page","page",849072397),BQ=new $APP.K(null,"next-li","next-li",648524823),zQ=new $APP.K(null,"btn","btn",1978294651),AQ=new $APP.K(null,"prev-li","prev-li",
|
|
17
|
+
940258334),FQ=new $APP.K(null,"page-raw","page-raw",-1198808870),yQ=new $APP.K(null,"li","li",723558921),PQ=new $APP.K(null,"ellipsis","ellipsis",998505738),QQ=new $APP.K(null,"n","n",562130025),HQ=new $APP.K(null,"sibling-count-raw","sibling-count-raw",-620117200),MQ=new $APP.K(null,"sibling-count","sibling-count",1756034573);var cR="page total-pages sibling-count boundary-count size disabled label".split(" "),JQ=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.Pd(["page-change-request",new $APP.Q(null,2,[$APP.Km,!0,$APP.V,new $APP.Q(null,2,[KQ,$APP.W,new $APP.K(null,"previousPage","previousPage",1452478108),$APP.W],null)],null),"page-change",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,1,[KQ,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_pagination.init",dR);export const init=dR;
|