@vanelsas/baredom 1.0.0 → 1.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 +11 -0
- package/README.md +11 -3
- package/dist/base.js +368 -349
- package/dist/x-alert.js +18 -18
- package/dist/x-avatar-group.js +11 -11
- package/dist/x-avatar.js +16 -17
- package/dist/x-badge.js +11 -11
- 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-chart.js +47 -47
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +8 -8
- package/dist/x-collapse.js +11 -11
- package/dist/x-command-palette.js +31 -31
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +19 -20
- package/dist/x-copy.js +23 -23
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.js +39 -39
- package/dist/x-divider.js +12 -12
- 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 +17 -17
- package/dist/x-form.js +9 -9
- package/dist/x-gaussian-blur.js +33 -0
- package/dist/x-grid.js +7 -7
- package/dist/x-kinetic-typography.js +62 -0
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +10 -10
- package/dist/x-modal.js +13 -13
- package/dist/x-navbar.js +13 -13
- package/dist/x-notification-center.js +10 -10
- package/dist/x-organic-divider.js +20 -0
- package/dist/x-organic-shape.js +15 -0
- package/dist/x-pagination.js +16 -16
- package/dist/x-popover.js +15 -15
- package/dist/x-progress-circle.js +10 -10
- package/dist/x-progress.js +11 -11
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +14 -0
- package/dist/x-scroll-parallax.js +20 -0
- package/dist/x-scroll-story.js +38 -0
- package/dist/x-scroll-timeline.js +51 -0
- package/dist/x-scroll.js +43 -0
- package/dist/x-search-field.js +14 -14
- package/dist/x-select.js +9 -9
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton.js +6 -7
- package/dist/x-slider.js +16 -16
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -5
- package/dist/x-stat.js +11 -11
- package/dist/x-stepper.js +16 -16
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +21 -21
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +14 -14
- package/dist/x-tabs.js +11 -12
- package/dist/x-text-area.js +19 -19
- package/dist/x-timeline-item.js +23 -23
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +23 -23
- package/dist/x-toaster.js +8 -8
- package/dist/x-typography.js +11 -0
- package/package.json +43 -2
package/dist/x-copy.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
[
|
|
4
|
-
$APP.
|
|
2
|
+
var Ju=function(a){return a==null?!0:$APP.C.h(a,"false")?!1:$APP.C.h(a,"0")?!1:!0},Ku=function(a){return typeof a==="string"&&$APP.P(a,"")?(a=parseInt(a,10),$APP.q(isNaN(a))&&a>0?a:1200):1200},Lu=function(a){return Math.min(1E4,Math.max(100,a))},Zu=function(a){var b=$APP.O(a);a=$APP.I(b,Mu);var c=$APP.I(b,Nu),d=$APP.I(b,Ou),e=$APP.I(b,$APP.Og),g=$APP.I(b,$APP.vi),h=$APP.I(b,Pu),k=$APP.I(b,Qu),m=$APP.I(b,$APP.aj),p=$APP.I(b,Ru);b=$APP.I(b,Su);return $APP.ff([Tu,$APP.ij,Uu,Vu,Wu,$APP.bh,Xu,$APP.V,Yu,
|
|
3
|
+
$APP.Ki],[Ju(b),$APP.C.h(g,"html")?"html":"text",typeof k==="string"&&$APP.P(k.trim(),"")?k.trim():null,typeof a==="string"&&$APP.P(a.trim(),"")?a.trim():null,Lu(Ku(c)),typeof d==="string"&&$APP.P(d.trim(),"")?d.trim():null,function(){var r;if(r=typeof h==="string")r=(r=$APP.P(h,""))?h:r;return $APP.n(r)?r:"Copy failed"}(),$APP.K(m),function(){var r;if(r=typeof p==="string")r=(r=$APP.P(p,""))?p:r;return $APP.n(r)?r:"Copied"}(),typeof e==="string"&&$APP.P(e.trim(),"")?e.trim():null])},$u=function(a){var b=
|
|
4
|
+
$APP.O(a);a=$APP.I(b,$APP.Ki);var c=$APP.I(b,$APP.bh),d=$APP.I(b,Uu);b=$APP.I(b,$APP.ij);return{text:$APP.n(a)?a:"",mode:$APP.n(b)?b:"text",from:$APP.n(c)?c:null,fromAttr:$APP.n(d)?d:null}},av=function(a){var b=$APP.l(a,"__xCopyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("button"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span");
|
|
5
5
|
c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-copy-tooltip-bg:#1e293b;--x-copy-tooltip-fg:#f8fafc;--x-copy-tooltip-success-bg:#15803d;--x-copy-tooltip-success-fg:#f0fdf4;--x-copy-tooltip-error-bg:#b91c1c;--x-copy-tooltip-error-fg:#fef2f2;--x-copy-tooltip-radius:6px;--x-copy-tooltip-padding:4px 8px;--x-copy-tooltip-font-size:0.8125rem;--x-copy-tooltip-z:100;}@media (prefers-color-scheme:dark){:host{--x-copy-tooltip-bg:#0f172a;--x-copy-tooltip-fg:#e2e8f0;--x-copy-tooltip-success-bg:#166534;--x-copy-tooltip-success-fg:#dcfce7;--x-copy-tooltip-error-bg:#991b1b;--x-copy-tooltip-error-fg:#fee2e2;}}[part\x3dwrap]{display:inline-flex;align-items:center;justify-content:center;}[part\x3dtrigger]{all:unset;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;}[part\x3dtrigger]:focus-visible{outline:2px solid currentColor;outline-offset:2px;}:host([disabled]) [part\x3dtrigger]{opacity:0.55;pointer-events:none;cursor:default;}[part\x3dtooltip]{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--x-copy-tooltip-bg);color:var(--x-copy-tooltip-fg);border-radius:var(--x-copy-tooltip-radius);padding:var(--x-copy-tooltip-padding);font-size:var(--x-copy-tooltip-font-size);z-index:var(--x-copy-tooltip-z);pointer-events:none;}:host([data-tooltip-open]) [part\x3dtooltip]{display:block;}:host([data-tooltip-kind\x3dsuccess]) [part\x3dtooltip]{background:var(--x-copy-tooltip-success-bg);color:var(--x-copy-tooltip-success-fg);}:host([data-tooltip-kind\x3derror]) [part\x3dtooltip]{background:var(--x-copy-tooltip-error-bg);color:var(--x-copy-tooltip-error-fg);}@media (prefers-reduced-motion:reduce){[part\x3dtrigger]{transition:none;}}";
|
|
6
|
-
d.setAttribute("part","wrap");e.setAttribute("part","trigger");e.setAttribute("type","button");e.appendChild(g);h.setAttribute("part","tooltip");h.setAttribute("role","status");h.setAttribute("aria-live","polite");k.setAttribute("name","tooltip");m.setAttribute("part","tooltip-text");h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xCopyRefs={root:b,wrap:d,trigger:e,tooltip:h,tooltipSlot:k,tooltipText:m};return $APP.l(a,"__xCopyRefs")},
|
|
7
|
-
$APP.
|
|
8
|
-
"string"&&$APP.
|
|
9
|
-
{type:"text/html"}),"text/plain":new Blob([b],{type:"text/plain"})})],null))).then(function(){return d.g?d.g(b):d.call(null,b)}).catch(function(h){return e.g?e.g(h):e.call(null,h)});try{var g=document.createElement("textarea");g.value=b;document.body.appendChild(g);g.select();document.execCommand("copy");g.remove();return d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}else{if($APP.n(navigator.clipboard))return navigator.clipboard.writeText(b).then(function(){return d.g?
|
|
10
|
-
d.g(b):d.call(null,b)}).catch(function(h){try{return document.execCommand("copy"),d.g?d.g(b):d.call(null,b)}catch(k){if(k instanceof Error)return e.g?e.g(h):e.call(null,h);throw k;}});try{return g=document.createElement("textarea"),g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove(),d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}})},
|
|
11
|
-
$APP.l(a,"__xCopyRefs");if($APP.n(e)){var g=$APP.l(a,"__xCopyTid");$APP.n(g)&&(clearTimeout(g),a.__xCopyTid=null);a.setAttribute("data-tooltip-open","");a.setAttribute("data-tooltip-kind",b);$APP.l(e,"tooltipText").textContent=c;$APP.la(a,"__xCopyTid",setTimeout(function(){a.__xCopyTid=null;a.removeAttribute("data-tooltip-open");a.removeAttribute("data-tooltip-kind");var h=$APP.l(a,"__xCopyRefs");$APP.n(h)&&($APP.l(h,"tooltipText").textContent="");return null},d))}},
|
|
12
|
-
{detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);return b},
|
|
13
|
-
return Promise.reject(d)})},
|
|
14
|
-
|
|
15
|
-
"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&document.removeEventListener("keydown",b)}a.__xCopyHandlers=null},
|
|
16
|
-
2,5,$APP
|
|
17
|
-
v,
|
|
18
|
-
this.setAttribute(
|
|
19
|
-
"true"):this.setAttribute("show-tooltip","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"tooltipMs",{get:function(){return
|
|
20
|
-
configurable:!0});Object.defineProperty(a,"copy",{value:function(){return
|
|
21
|
-
customElements.define("x-copy",
|
|
22
|
-
"
|
|
23
|
-
$APP.
|
|
24
|
-
"note","note",1426297904),"property-only override"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.
|
|
25
|
-
$APP.
|
|
6
|
+
d.setAttribute("part","wrap");e.setAttribute("part","trigger");e.setAttribute("type","button");e.appendChild(g);h.setAttribute("part","tooltip");h.setAttribute("role","status");h.setAttribute("aria-live","polite");k.setAttribute("name","tooltip");m.setAttribute("part","tooltip-text");h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xCopyRefs={root:b,wrap:d,trigger:e,tooltip:h,tooltipSlot:k,tooltipText:m};return $APP.l(a,"__xCopyRefs")},bv=function(a){return Zu($APP.ff([Ou,
|
|
7
|
+
$APP.Og,$APP.vi,Pu,Qu,$APP.aj,Ru,Su,Mu,Nu],[a.getAttribute("from"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("error-message"),a.getAttribute("from-attr"),a.hasAttribute("disabled"),a.getAttribute("success-message"),a.getAttribute("show-tooltip"),a.getAttribute("hotkey"),a.getAttribute("tooltip-ms")]))},cv=function(a){var b=$APP.l(a,"__xCopyTextValue");if(typeof b==="string")return b;b=a.getAttribute("text");if(typeof b==="string"&&$APP.P(b,""))return b;b=a.getAttribute("from");
|
|
8
|
+
return typeof b==="string"&&$APP.P(b,"")&&(b=document.querySelector(b),$APP.n(b))?(a=a.getAttribute("from-attr"),a=typeof a==="string"&&$APP.P(a,"")?b.getAttribute(a):b.textContent,$APP.n(a)?a:""):""},dv=function(a){var b=cv(a),c=function(){var d=a.getAttribute("mode");return $APP.n(d)?d:"text"}();return new Promise(function(d,e){if($APP.C.h(c,"html")){if($APP.n(function(){var h=navigator.clipboard;return $APP.n(h)?window.ClipboardItem:h}()))return navigator.clipboard.write($APP.Lg(new $APP.Zd(null,
|
|
9
|
+
1,5,$APP.$d,[new ClipboardItem({"text/html":new Blob([b],{type:"text/html"}),"text/plain":new Blob([b],{type:"text/plain"})})],null))).then(function(){return d.g?d.g(b):d.call(null,b)}).catch(function(h){return e.g?e.g(h):e.call(null,h)});try{var g=document.createElement("textarea");g.value=b;document.body.appendChild(g);g.select();document.execCommand("copy");g.remove();return d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}else{if($APP.n(navigator.clipboard))return navigator.clipboard.writeText(b).then(function(){return d.g?
|
|
10
|
+
d.g(b):d.call(null,b)}).catch(function(h){try{return document.execCommand("copy"),d.g?d.g(b):d.call(null,b)}catch(k){if(k instanceof Error)return e.g?e.g(h):e.call(null,h);throw k;}});try{return g=document.createElement("textarea"),g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove(),d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}})},ev=function(a,b,c,d){var e=
|
|
11
|
+
$APP.l(a,"__xCopyRefs");if($APP.n(e)){var g=$APP.l(a,"__xCopyTid");$APP.n(g)&&(clearTimeout(g),a.__xCopyTid=null);a.setAttribute("data-tooltip-open","");a.setAttribute("data-tooltip-kind",b);$APP.l(e,"tooltipText").textContent=c;$APP.la(a,"__xCopyTid",setTimeout(function(){a.__xCopyTid=null;a.removeAttribute("data-tooltip-open");a.removeAttribute("data-tooltip-kind");var h=$APP.l(a,"__xCopyRefs");$APP.n(h)&&($APP.l(h,"tooltipText").textContent="");return null},d))}},fv=function(a,b,c,d){b=new CustomEvent(b,
|
|
12
|
+
{detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);return b},gv=function(a){if($APP.n(a.hasAttribute("disabled")))return Promise.resolve(null);var b=bv(a),c=$u(b);c=fv(a,"x-copy-request",c,!0);return $APP.n(c.defaultPrevented)?Promise.resolve(null):dv(a).then(function(d){fv(a,"x-copy-success",{text:$APP.n(d)?d:""},!1);$APP.n(Tu.g(b))&&ev(a,"success",Yu.g(b),Wu.g(b));return d}).catch(function(d){fv(a,"x-copy-error",{error:""+$APP.T.g(d)},!1);$APP.n(Tu.g(b))&&ev(a,"error",Xu.g(b),Wu.g(b));
|
|
13
|
+
return Promise.reject(d)})},hv=function(a,b){if(typeof b==="string"&&$APP.P(b,"")){var c=b.toLowerCase().split("+");b=$APP.ic(c);var d=$APP.K($APP.Cd(function(h){return $APP.C.h(h,"ctrl")},c)),e=$APP.K($APP.Cd(function(h){return $APP.C.h(h,"shift")},c)),g=$APP.K($APP.Cd(function(h){return $APP.C.h(h,"alt")},c));c=$APP.K($APP.Cd(function(h){return $APP.C.h(h,"meta")},c));return $APP.C.h(a.key.toLowerCase(),b)&&$APP.C.h(d,a.ctrlKey)&&$APP.C.h(e,a.shiftKey)&&$APP.C.h(g,a.altKey)&&$APP.C.h(c,a.metaKey)}return null},
|
|
14
|
+
iv=function(a){function b(e){var g=a.getAttribute("hotkey");return $APP.n(hv(e,g))?(e.preventDefault(),gv(a)):null}function c(){return gv(a)}var d=av(a);$APP.l(d,"trigger").addEventListener("click",c);document.addEventListener("keydown",b);$APP.la(a,"__xCopyHandlers",{click:c,keydown:b})},jv=function(a){var b=$APP.l(a,"__xCopyTid");$APP.n(b)&&(clearTimeout(b),a.__xCopyTid=null);b=$APP.l(a,"__xCopyHandlers");var c=$APP.l(a,"__xCopyRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.l(c,"trigger");var d=$APP.l(b,
|
|
15
|
+
"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&document.removeEventListener("keydown",b)}a.__xCopyHandlers=null},kv=function(a){var b=av(a),c=a.hasAttribute("disabled");$APP.l(b,"trigger").disabled=$APP.K(c);$APP.n(c)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")},lv=function(a){for(var b=$APP.u(new $APP.Zd(null,7,5,$APP.$d,[new $APP.Zd(null,2,5,$APP.$d,["text","text"],null),new $APP.Zd(null,2,5,$APP.$d,["from","from"],null),new $APP.Zd(null,
|
|
16
|
+
2,5,$APP.$d,["fromAttr","from-attr"],null),new $APP.Zd(null,2,5,$APP.$d,["mode","mode"],null),new $APP.Zd(null,2,5,$APP.$d,["successMessage","success-message"],null),new $APP.Zd(null,2,5,$APP.$d,["errorMessage","error-message"],null),new $APP.Zd(null,2,5,$APP.$d,["hotkey","hotkey"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.H(null,e),h=$APP.H(g,0,null),k=$APP.H(g,1,null);Object.defineProperty(a,h,{get:function(r,v,x,y,A,D,F){return function(){return this.getAttribute(F)}}(b,c,d,e,g,h,k),set:function(r,
|
|
17
|
+
v,x,y,A,D,F){return function(J){return J==null?this.removeAttribute(F):this.setAttribute(F,""+$APP.T.g(J))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.yc(g))b=$APP.nb(g),e=$APP.ob(g),c=b,d=$APP.B(b),b=e;else{k=$APP.w(g);var m=$APP.H(k,0,null),p=$APP.H(k,1,null);Object.defineProperty(a,m,{get:function(r,v,x,y,A,D,F){return function(){return this.getAttribute(F)}}(b,c,d,e,k,m,p,g,h),set:function(r,v,x,y,A,D,F){return function(J){return J==null?this.removeAttribute(F):
|
|
18
|
+
this.setAttribute(F,""+$APP.T.g(J))}}(b,c,d,e,k,m,p,g,h),enumerable:!0,configurable:!0});b=$APP.z(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(r){return $APP.n(r)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showTooltip",{get:function(){return Ju(this.getAttribute("show-tooltip"))},set:function(r){return $APP.n(r)?this.setAttribute("show-tooltip",
|
|
19
|
+
"true"):this.setAttribute("show-tooltip","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"tooltipMs",{get:function(){return Ku(this.getAttribute("tooltip-ms"))},set:function(r){return r==null?this.removeAttribute("tooltip-ms"):this.setAttribute("tooltip-ms",""+$APP.T.g(r|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"textValue",{get:function(){return $APP.l(this,"__xCopyTextValue")},set:function(r){this.__xCopyTextValue=typeof r==="string"?r:void 0},enumerable:!0,
|
|
20
|
+
configurable:!0});Object.defineProperty(a,"copy",{value:function(){return gv(this)},enumerable:!0,configurable:!0,writable:!0})},nv=function(){var a=class extends HTMLElement{};a.observedAttributes=mv;a.prototype.connectedCallback=function(){av(this);jv(this);iv(this);kv(this);return null};a.prototype.disconnectedCallback=function(){jv(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.P(c,d)&&kv(this);return null};lv(a.prototype);return a},ov=function(){$APP.n(customElements.get("x-copy"))||
|
|
21
|
+
customElements.define("x-copy",nv());return null},Tu=new $APP.N(null,"show-tooltip?","show-tooltip?",-1214081087),Nu=new $APP.N(null,"tooltip-ms-raw","tooltip-ms-raw",-1973326401),pv=new $APP.N(null,"fromAttr","fromAttr",-1768252533),Yu=new $APP.N(null,"success-message","success-message",-96541601),Qu=new $APP.N(null,"from-attr-raw","from-attr-raw",761657416),Wu=new $APP.N(null,"tooltip-ms","tooltip-ms",1062450417),Pu=new $APP.N(null,"error-message-raw","error-message-raw",1910536231),Vu=new $APP.N(null,
|
|
22
|
+
"hotkey","hotkey",-329017295),Ru=new $APP.N(null,"success-message-raw","success-message-raw",388691116),Ou=new $APP.N(null,"from-raw","from-raw",-44462428),Uu=new $APP.N(null,"from-attr","from-attr",1217901743),Mu=new $APP.N(null,"hotkey-raw","hotkey-raw",1972404222),Xu=new $APP.N(null,"error-message","error-message",1756021561),Su=new $APP.N(null,"show-tooltip-raw","show-tooltip-raw",453600717);var mv="text from from-attr mode disabled show-tooltip tooltip-ms success-message error-message hotkey".split(" ");
|
|
23
|
+
$APP.ff([new $APP.N(null,"errorMessage","errorMessage",982744869),$APP.Fj,new $APP.N(null,"textValue","textValue",-598870870),$APP.ij,pv,new $APP.N(null,"tooltipMs","tooltipMs",1056463375),Vu,$APP.bh,new $APP.N(null,"showTooltip","showTooltip",482349691),new $APP.N(null,"successMessage","successMessage",-789572803),$APP.Ki],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"error-message"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"disabled"],null),new $APP.Q(null,3,[$APP.Z,$APP.X,$APP.U,null,new $APP.N(null,
|
|
24
|
+
"note","note",1426297904),"property-only override"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"mode"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"from-attr"],null),new $APP.Q(null,2,[$APP.Z,$APP.ui,$APP.U,"tooltip-ms"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"hotkey"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"from"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"show-tooltip"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"success-message"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,
|
|
25
|
+
$APP.U,"text"],null)]);$APP.yd(["x-copy-request",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,new $APP.Q(null,4,[$APP.Ki,$APP.X,$APP.ij,$APP.X,$APP.bh,$APP.X,pv,$APP.X],null)],null),"x-copy-success",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,1,[$APP.Ki,$APP.X],null)],null),"x-copy-error",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,1,[$APP.Uh,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_copy.init",ov);export const init=ov;
|
package/dist/x-currency-field.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
"")?void 0:b,{minimumFractionDigits:2,maximumFractionDigits:2})).format(c)}catch(d){return a}},
|
|
4
|
-
d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","input");g.setAttribute("part","input-wrapper");h.setAttribute("part","symbol");h.setAttribute("aria-hidden","true");k.setAttribute("part","input");k.setAttribute("id","input");k.setAttribute("inputmode","decimal");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");
|
|
5
|
-
"error");
|
|
6
|
-
$APP.
|
|
7
|
-
"Value must be at most "+$APP.T.g(m)+".",c):b.setValidity({},"",c)},
|
|
8
|
-
a.hasAttribute("required"),a.getAttribute("max"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("locale"),a.getAttribute("placeholder")]);var k=$APP.
|
|
9
|
-
$APP.
|
|
10
|
-
"")?parseFloat(r):null,D=$APP.
|
|
11
|
-
|
|
12
|
-
c.classList.add("label-hidden");g.textContent=$APP.
|
|
13
|
-
$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");return b.value=$APP.n(c)?c:""}return null}},
|
|
14
|
-
$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value,d=parseFloat(c);c=$APP.n(isNaN(d))?c:""+$APP.T.g(d);d=a.getAttribute("name");d=$APP.n(d)?d:"";a.setAttribute("value",c);var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),
|
|
15
|
-
c);b.addEventListener("input",d);b.addEventListener("change",e);a.__xCurrencyFieldHandlers={focus:c,input:d,change:e}}},
|
|
16
|
-
(
|
|
17
|
-
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.
|
|
18
|
-
this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.
|
|
19
|
-
|
|
20
|
-
$APP.n(c)&&(c=$APP.l(c,"input"),$APP.C.h(c,this.shadowRoot.activeElement)||(
|
|
21
|
-
return
|
|
22
|
-
"currency","currency",-898327568),
|
|
23
|
-
$APP.
|
|
24
|
-
|
|
2
|
+
var bC=function(a){a=(""+$APP.T.g($APP.n(a)?a:"")).trim().toUpperCase();return $APP.C.h(a,"")?"USD":a},cC=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},dC=function(a,b){try{var c=(new Intl.NumberFormat($APP.C.h(b,"")?"en-US":b,{style:"currency",currency:a})).formatToParts(0),d=$APP.Cd(function(e){return $APP.C.h("currency",e.type)?e.value:null},$APP.fc(c));return $APP.n(d)?d:a}catch(e){return a}},eC=function(a,b){var c=parseFloat(a);if($APP.n(isNaN(c)))return a;try{return(new Intl.NumberFormat($APP.C.h(b,
|
|
3
|
+
"")?void 0:b,{minimumFractionDigits:2,maximumFractionDigits:2})).format(c)}catch(d){return a}},fC=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("input"),m=document.createElement("span"),p=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-currency-field-bg:#ffffff;--x-currency-field-color:#111827;--x-currency-field-border:1px solid #d1d5db;--x-currency-field-border-radius:6px;--x-currency-field-focus-ring-color:#2563eb;--x-currency-field-symbol-color:#6b7280;--x-currency-field-label-color:#374151;--x-currency-field-hint-color:#6b7280;--x-currency-field-error-color:#dc2626;--x-currency-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-currency-field-bg:#1f2937;--x-currency-field-color:#f9fafb;--x-currency-field-border:1px solid #4b5563;--x-currency-field-focus-ring-color:#3b82f6;--x-currency-field-symbol-color:#9ca3af;--x-currency-field-label-color:#d1d5db;--x-currency-field-hint-color:#9ca3af;--x-currency-field-error-color:#f87171;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:0.875rem;font-weight:500;color:var(--x-currency-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:flex;align-items:center;background:var(--x-currency-field-bg);border:var(--x-currency-field-border);border-radius:var(--x-currency-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput-wrapper]:focus-within{border-color:var(--x-currency-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput-wrapper]{border-color:var(--x-currency-field-error-color);}:host([data-invalid]) [part\x3dinput-wrapper]:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-error-color) 20%,transparent);}[part\x3dsymbol]{flex-shrink:0;padding:0.5rem 0 0.5rem 0.75rem;font-size:1rem;color:var(--x-currency-field-symbol-color);user-select:none;pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.75rem;background:transparent;color:var(--x-currency-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]:disabled{opacity:1;cursor:not-allowed;}:host([disabled]) [part\x3dinput-wrapper]{opacity:var(--x-currency-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-currency-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-currency-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput-wrapper]{transition:none;}}";
|
|
4
|
+
d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","input");g.setAttribute("part","input-wrapper");h.setAttribute("part","symbol");h.setAttribute("aria-hidden","true");k.setAttribute("part","input");k.setAttribute("id","input");k.setAttribute("inputmode","decimal");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id",
|
|
5
|
+
"error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");g.appendChild(h);g.appendChild(k);d.appendChild(e);d.appendChild(g);d.appendChild(m);d.appendChild(p);b.appendChild(c);b.appendChild(d);a.__xCurrencyFieldRefs={field:d,label:e,wrapper:g,symbol:h,input:k,hint:m,error:p}},gC=function(a,b,c,d){var e=a.hasAttribute("error");var g=a.getAttribute("error");g=$APP.n(g)?g:"";var h=a.hasAttribute("required"),k=a.getAttribute("min"),m=a.getAttribute("max");a=parseFloat(d);var p=
|
|
6
|
+
$APP.q(isNaN(a));k=$APP.n(k)?parseFloat(k):null;m=$APP.n(m)?parseFloat(m):null;return $APP.n(e)?b.setValidity({customError:!0},g,c):$APP.n($APP.n(h)?$APP.C.h(d,""):h)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):$APP.P(d,"")&&!p?b.setValidity({badInput:!0},"Please enter a valid number.",c):$APP.n(p?$APP.n(k)?$APP.q(isNaN(k))&&a<k:k:p)?b.setValidity({rangeUnderflow:!0},"Value must be at least "+$APP.T.g(k)+".",c):$APP.n(p?$APP.n(m)?$APP.q(isNaN(m))&&a>m:m:p)?b.setValidity({rangeOverflow:!0},
|
|
7
|
+
"Value must be at most "+$APP.T.g(m)+".",c):b.setValidity({},"",c)},lC=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.l(b,"label"),d=$APP.l(b,"symbol"),e=$APP.l(b,"input"),g=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.ff([$APP.Ch,hC,$APP.Ai,$APP.Zh,$APP.ti,$APP.aj,iC,$APP.Sg,$APP.Lh,$APP.Cj,$APP.Rj,jC,$APP.fi],[a.getAttribute("label"),a.getAttribute("currency"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.getAttribute("min"),
|
|
8
|
+
a.hasAttribute("required"),a.getAttribute("max"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("locale"),a.getAttribute("placeholder")]);var k=$APP.O(h);h=$APP.I(k,$APP.fi);var m=$APP.I(k,$APP.Ch),p=$APP.I(k,hC),r=$APP.I(k,$APP.Ai),v=$APP.I(k,$APP.Zh),x=$APP.I(k,$APP.ti),y=$APP.I(k,$APP.aj),A=$APP.I(k,iC),D=$APP.I(k,$APP.Sg),F=$APP.I(k,$APP.Lh),J=$APP.I(k,$APP.Cj),G=$APP.I(k,$APP.Rj);k=$APP.I(k,jC);var R=$APP.n(v)?v:"",ma=$APP.n(x)?x:"",Ca=$APP.n(m)?m:"";h=$APP.ff([$APP.lk,$APP.yh,
|
|
9
|
+
$APP.uk,$APP.Mj,$APP.Ih,$APP.vk,$APP.mj,$APP.ri,$APP.Mi,$APP.Nh,$APP.qj,kC,$APP.Hh,$APP.W,$APP.Uh,$APP.V],[$APP.n(A)?A:"",$APP.K(D),$APP.K(J),$APP.n(h)?h:"",typeof x==="string"&&$APP.P(x,""),$APP.n(k)?k:"",$APP.n(r)?r:"",$APP.n(G)?G:"",typeof m==="string"&&$APP.P(m,""),typeof v==="string"&&$APP.P(v,""),ma,bC(p),$APP.n(F)?F:"",Ca,R,$APP.K(y)]);m=$APP.Nh.g(h);$APP.n(m)?p=null:(v=$APP.O(h),p=$APP.I(v,$APP.ri),r=$APP.I(v,$APP.lk),v=$APP.I(v,$APP.Hh),x=parseFloat(p),y=$APP.P(p,"")&&$APP.q(isNaN(x)),A=
|
|
10
|
+
$APP.P(r,"")?parseFloat(r):null,D=$APP.P(v,"")?parseFloat(v):null,p=$APP.P(p,"")&&!y?"Please enter a valid number.":$APP.n(y?$APP.n(A)?$APP.q(isNaN(A))&&x<A:A:y)?"Value must be at least "+$APP.T.g(r)+".":$APP.n(y?$APP.n(D)?$APP.q(isNaN(D))&&x>D:D:y)?"Value must be at most "+$APP.T.g(v)+".":"");r=p;p=$APP.n(m)?m:$APP.P($APP.n(r)?r:"","");m=$APP.n(m)?$APP.Uh.g(h):$APP.n(r)?r:"";r=$APP.Ih.g(h);v=$APP.Mi.g(h);y=kC.g(h);x=$APP.vk.g(h);d.textContent=dC(y,x);e.name=$APP.mj.g(h);e.placeholder=$APP.Mj.g(h);
|
|
11
|
+
e.disabled=$APP.V.g(h);e.readOnly=$APP.uk.g(h);e.required=$APP.yh.g(h);d=$APP.n($APP.yh.g(h))?"true":"false";e.setAttribute("aria-required",d);e.setAttribute("aria-invalid",$APP.n(p)?"true":"false");d=$APP.n($APP.n(r)?p:r)?"hint error":$APP.n(r)?"hint":$APP.n(p)?"error":null;$APP.n(d)?e.setAttribute("aria-describedby",d):e.removeAttribute("aria-describedby");$APP.C.h(e,a.shadowRoot.activeElement)||(d=$APP.ri.g(h),e.value=$APP.C.h(d,"")?"":eC(d,x));c.textContent=$APP.W.g(h);$APP.n(v)?c.classList.remove("label-hidden"):
|
|
12
|
+
c.classList.add("label-hidden");g.textContent=$APP.qj.g(h);$APP.n(r)?g.classList.remove("hint-hidden"):g.classList.add("hint-hidden");b.textContent=m;$APP.n(p)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");cC(a,"data-invalid",p);c=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(c)?(g=a.getAttribute("value"),a=gC(a,c,e,$APP.n(g)?g:"")):a=null;return a}return null},mC=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},nC=function(a){return function(){var b=
|
|
13
|
+
$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");return b.value=$APP.n(c)?c:""}return null}},oC=function(a){return function(){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),gC(a,e,b,c));return mC(a,"x-currency-field-input",{name:d,value:c})}return null}},pC=function(a){return function(){var b=
|
|
14
|
+
$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value,d=parseFloat(c);c=$APP.n(isNaN(d))?c:""+$APP.T.g(d);d=a.getAttribute("name");d=$APP.n(d)?d:"";a.setAttribute("value",c);var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),gC(a,e,b,c));return mC(a,"x-currency-field-change",{name:d,value:c})}return null}},qC=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=nC(a),d=oC(a),e=pC(a);b.addEventListener("focus",
|
|
15
|
+
c);b.addEventListener("input",d);b.addEventListener("change",e);a.__xCurrencyFieldHandlers={focus:c,input:d,change:e}}},rC=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xCurrencyFieldHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("focus",$APP.l(c,"focus"));b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));a.__xCurrencyFieldHandlers=null;return}}return null},sC=function(a){$APP.n($APP.l(a,"__xCurrencyFieldRefs"))||
|
|
16
|
+
(fC(a),$APP.n(a.attachInternals)&&$APP.la(a,"__xCurrencyFieldInternals",a.attachInternals()));rC(a);var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");bC(a.getAttribute("currency"));var d=function(){var e=a.getAttribute("locale");return $APP.n(e)?e:""}();$APP.n(c)&&(b.value=eC(c,d))}b=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(b)&&b.setFormValue(function(){var e=a.getAttribute("value");return $APP.n(e)?e:""}());qC(a);return lC(a)},tC=function(a,
|
|
17
|
+
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.P(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},uC=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return cC(this,c,$APP.K(d))}})},vC=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=
|
|
18
|
+
this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.P(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xCurrencyFieldRefs");if($APP.n(c)){c=$APP.l(c,"input");bC(this.getAttribute("currency"));var d=this.getAttribute("locale");d=$APP.n(d)?d:"";return $APP.C.h(c,this.shadowRoot.activeElement)?null:c.value=$APP.C.h(b,"")?"":eC(b,d)}return null}})},xC=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
|
|
19
|
+
wC;vC(b);tC(b,"name","name");tC(b,"currency","currency");tC(b,"locale","locale");tC(b,"min","min");tC(b,"max","max");tC(b,"placeholder","placeholder");tC(b,"label","label");tC(b,"hint","hint");tC(b,"error","error");uC(b,"disabled","disabled");uC(b,"readOnly","readonly");uC(b,"required","required");b.connectedCallback=function(){return sC(this)};b.disconnectedCallback=function(){return rC(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xCurrencyFieldRefs"),
|
|
20
|
+
$APP.n(c)&&(c=$APP.l(c,"input"),$APP.C.h(c,this.shadowRoot.activeElement)||(bC(this.getAttribute("currency")),d=this.getAttribute("locale"),d=$APP.n(d)?d:"",c.value=e==null||$APP.C.h(e,"")?"":eC(e,d))));return lC(this)};b.formDisabledCallback=function(c){cC(this,"disabled",$APP.K(c));return lC(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xCurrencyFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xCurrencyFieldInternals");$APP.n(c)&&c.setFormValue("");
|
|
21
|
+
return lC(this)};b.checkValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.reportValidity():!0};return a},yC=function(){return $APP.n(customElements.get("x-currency-field"))?null:customElements.define("x-currency-field",xC())},iC=new $APP.N(null,"min-raw","min-raw",183137548),hC=new $APP.N(null,"currency-raw","currency-raw",1169887491),kC=new $APP.N(null,
|
|
22
|
+
"currency","currency",-898327568),jC=new $APP.N(null,"locale-raw","locale-raw",385401846);var wC="name value currency locale min max placeholder label hint error disabled required readonly".split(" ");
|
|
23
|
+
$APP.ff([$APP.lk,$APP.Mj,$APP.Fj,$APP.vk,$APP.mj,$APP.ri,$APP.qj,kC,$APP.Ij,$APP.Hh,$APP.W,$APP.Uh,$APP.ch],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"placeholder"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"locale"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"hint"],null),
|
|
24
|
+
new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"currency"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.U,"error"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.U,"required"],null)]);$APP.ja("baredom.exports.x_currency_field.init",yC);export const init=yC;
|
package/dist/x-date-picker.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
a):null},
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
a.getUTCMonth());return new $APP.Q(null,2,[
|
|
8
|
-
a.getAttribute("value"),b,a.getAttribute("start"),a.getAttribute("max"),
|
|
9
|
-
e)):$APP.n(
|
|
10
|
-
|
|
11
|
-
$APP.n(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.T.g(b)+'"]');if($APP.n(b))return b.setAttribute("tabindex","0"),b.focus()}return null},
|
|
12
|
-
g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.n($APP.l(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=
|
|
13
|
-
g){e=h.
|
|
14
|
-
$APP.n(A)?"true":"false");
|
|
15
|
-
$APP.
|
|
16
|
-
h.setAttribute("aria-disabled",$APP.n(
|
|
17
|
-
"input"):null;var c=$APP.l(a,"__xDatePickerState");c=$APP.n(c)?$APP.l(c,"disp"):null;a=$APP.l(a,"__xDatePickerFocused");return $APP.n($APP.n(b)?$APP.
|
|
2
|
+
var FH=function(a){return typeof a==="string"?(a=a.trim(),$APP.P(a,"")?a:null):null},GH=function(a){return a!=null&&$APP.P(a,"false")},HH=function(a){return a<10?"0"+$APP.T.g(a):""+$APP.T.g(a)},IH=function(a){return $APP.n(a)?""+$APP.T.g(a.getUTCFullYear())+"-"+$APP.T.g(HH(a.getUTCMonth()+1))+"-"+$APP.T.g(HH(a.getUTCDate())):null},JH=function(a){var b=(b=typeof a==="string")?$APP.Pf(/\d{4}-\d{2}-\d{2}/,a):b;return $APP.n(b)?(a=new Date(""+$APP.T.g(a)+"T00:00:00.000Z"),$APP.n(isNaN(a.getTime()))?null:
|
|
3
|
+
a):null},KH=function(a,b){if(a==null&&b==null)return 0;if(a==null)return-1;if(b==null)return 1;a=a.getTime();b=b.getTime();return a<b?-1:a>b?1:0},LH=function(a,b){return $APP.n(a)?new Date(a.getTime()+b*864E5):null},MH=function(a){return $APP.n(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},NH=function(a,b){if($APP.n(a)){var c=a.getUTCFullYear(),d=a.getUTCDate();a=a.getUTCMonth()+b;b=(new Date(Date.UTC(c,a+1,0))).getUTCDate();return new Date(Date.UTC(c,a,$APP.Ag.h(d,b)))}return null},
|
|
4
|
+
OH=function(a,b,c){a=$APP.n($APP.n(b)?$APP.n(a)?KH(a,b)<0:a:b)?b:a;return $APP.n($APP.n(c)?$APP.n(a)?KH(a,c)>0:a:c)?c:a},PH=function(a,b,c){if($APP.n($APP.n(a)?$APP.n(b)?c:b:a)){var d=KH(b,c)<0?c:b;return!(KH(a,KH(b,c)<0?b:c)<0)&&!(KH(a,d)>0)}return null},SH=function(a,b){var c=$APP.O(b);b=$APP.I(c,QH);c=$APP.I(c,$APP.vk);return $APP.n(a)?$APP.C.h(b,RH)?(new Intl.DateTimeFormat($APP.n(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):IH(a):null},VH=function(a){a=
|
|
5
|
+
FH(a);a=$APP.n(a)?JH(a):null;return new $APP.Q(null,2,[TH,a!=null,UH,a],null)},kI=function(a){var b=$APP.O(a),c=$APP.I(b,$APP.bi),d=$APP.I(b,$APP.Th),e=$APP.I(b,$APP.lk);a=$APP.I(b,QH);var g=$APP.I(b,$APP.vk),h=$APP.I(b,WH),k=$APP.I(b,$APP.ri),m=$APP.I(b,$APP.ij),p=$APP.I(b,$APP.Gj),r=$APP.I(b,$APP.Hh),v=$APP.I(b,XH);b=$APP.C.h(m,"range")?YH:ZH;a=$APP.C.h(a,"localized")?RH:$H;g=FH(g);m=function(){var A=FH(d);return $APP.n(A)?A:" - "}();e=JH(e);r=JH(r);v=$APP.K(v);h=$APP.K(h);if($APP.C.h(b,ZH))return b=
|
|
6
|
+
JH(k),$APP.ff([QH,aI,$APP.vk,bI,$APP.ij,cI,XH,dI,$APP.Th,eI,fI],[a,b,g,h,ZH,r,v,b!=null,m,e,function(){var A=FH(k);return $APP.n(A)?A:""}()]);var x=JH(p),y=JH(c);b=x!=null&&y!=null;return $APP.ff([gI,QH,hI,$APP.vk,bI,$APP.ij,cI,iI,jI,XH,dI,$APP.Th,eI],[function(){var A=FH(c);return $APP.n(A)?A:""}(),a,x,g,h,YH,r,function(){var A=FH(p);return $APP.n(A)?A:""}(),y,v,b,m,e])},mI=function(a){if($APP.n(a)){var b=MH(a),c=LH(b,-($APP.n(b)?b.getUTCDay():0));return $APP.Nd(function(d){d=LH(c,d);var e=$APP.C.h(d.getUTCMonth(),
|
|
7
|
+
a.getUTCMonth());return new $APP.Q(null,2,[UH,d,lI,e],null)},$APP.Of(0,42))}return null},nI=function(a){return document.createElement(a)},oI=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.K(c)});a.dispatchEvent(b);return b},pI=function(a){var b=a.getAttribute("mode");$APP.C.h(b,"range");b=kI($APP.ff([$APP.lk,QH,$APP.vk,WH,$APP.ri,$APP.ij,$APP.Gj,$APP.Hh,XH,$APP.bi,$APP.Th],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),GH(a.getAttribute("range-allow-same-day")),
|
|
8
|
+
a.getAttribute("value"),b,a.getAttribute("start"),a.getAttribute("max"),GH(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.Q(null,2,[QH,QH.g(b),$APP.vk,$APP.vk.g(b)],null);var d=$APP.O(c);var e=$APP.I(d,QH);d=$APP.I(d,$APP.vk);e=new $APP.Q(null,2,[QH,e,$APP.vk,d],null);if($APP.C.h($APP.ij.g(b),ZH))e=$APP.n(aI.g(b))?SH(aI.g(b),e):"";else{d=$APP.Th.g(b);var g=hI.g(b);g=$APP.n(g)?jI.g(b):g;e=$APP.n(g)?""+$APP.T.g(SH(hI.g(b),e))+$APP.T.g(d)+$APP.T.g(SH(jI.g(b),
|
|
9
|
+
e)):$APP.n(hI.g(b))?SH(hI.g(b),e):""}d=$APP.l(a,"__xDatePickerState");d=$APP.n(d)?$APP.l(d,"month"):null;g=aI.g(b);$APP.n(g)||(g=hI.g(b),g=$APP.n(g)?g:new Date(Date.now()));d=$APP.n(d)?d:MH(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},qI=function(a,b){var c=eI.g(b);c=$APP.n(c)?KH(a,eI.g(b))<0:c;if($APP.n(c))return c;c=cI.g(b);return $APP.n(c)?KH(a,cI.g(b))>0:c},tI=function(a,b){if($APP.C.h($APP.ij.g(b),ZH))return new $APP.Q(null,3,[$APP.yi,function(){var k=aI.g(b);return $APP.n(k)?$APP.C.h(0,
|
|
10
|
+
KH(a,aI.g(b))):k}(),rI,!1,sI,!1],null);var c=hI.g(b),d=jI.g(b),e=function(){var k=$APP.n(c)?$APP.C.h(0,KH(a,c)):c;return $APP.n(k)?k:$APP.n(d)?$APP.C.h(0,KH(a,d)):d}(),g=$APP.n(c)?$APP.n(d)?PH(a,c,d):d:c,h=function(){var k=$APP.n(c)?$APP.C.h(0,KH(a,c)):c;return $APP.n(k)?k:$APP.n(d)?$APP.C.h(0,KH(a,d)):d}();return new $APP.Q(null,3,[$APP.yi,e,rI,g,sI,h],null)},uI=function(a,b){a.__xDatePickerGridFocus=b;a=$APP.l(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.l(a,"grid"):null;if($APP.n(a)){var c=a.querySelector('[tabindex\x3d"0"]');
|
|
11
|
+
$APP.n(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.T.g(b)+'"]');if($APP.n(b))return b.setAttribute("tabindex","0"),b.focus()}return null},vI=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.l(b,"month-label"),d=$APP.l(b,"grid"),e=$APP.l(b,"weekdays"),g=$APP.l(a,"__xDatePickerState");b=$APP.n(g)?$APP.l(g,"canon"):null;var h=$APP.n(g)?$APP.l(g,"month"):null;g=$APP.n(g)?$APP.l(g,"cfg"):null;g=$APP.n(g)?$APP.vk.g(g):null;$APP.n(c)&&(h=(new Intl.DateTimeFormat($APP.n(g)?
|
|
12
|
+
g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.n($APP.l(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=nI("div"),g.setAttribute("part","weekday"),g.setAttribute("aria-hidden","true"),g.textContent=c[h],e.appendChild(g),h+=1;else break;if($APP.n($APP.n(d)?b:d)){d.textContent="";e=$APP.l(a,"__xDatePickerState");e=mI($APP.n(e)?$APP.l(e,"month"):null);c=$APP.u(e);h=null;for(var k=g=0;;)if(k<
|
|
13
|
+
g){e=h.H(null,k);e=$APP.O(e);var m=$APP.I(e,UH);e=$APP.I(e,lI);var p=nI("button"),r=IH(m),v=m.getUTCDate(),x=qI(m,b);m=tI(m,b);var y=$APP.O(m);m=$APP.I(y,$APP.yi);var A=$APP.I(y,rI);y=$APP.I(y,sI);p.setAttribute("part","day");p.setAttribute("type","button");p.setAttribute("role","gridcell");p.setAttribute("data-iso",r);p.setAttribute("data-outside",$APP.n(e)?"false":"true");p.setAttribute("data-disabled",$APP.n(x)?"true":"false");p.setAttribute("data-selected",$APP.n(m)?"true":"false");p.setAttribute("data-in-range",
|
|
14
|
+
$APP.n(A)?"true":"false");p.setAttribute("data-range-edge",$APP.n(y)?"true":"false");p.setAttribute("aria-selected",$APP.n(m)?"true":"false");p.setAttribute("aria-disabled",$APP.n(x)?"true":"false");p.setAttribute("tabindex","-1");p.textContent=""+$APP.T.g(v);d.appendChild(p);k+=1}else if(e=$APP.u(c))c=e,$APP.yc(c)?(h=$APP.nb(c),c=$APP.ob(c),e=h,g=$APP.B(h),h=e):(e=$APP.w(c),e=$APP.O(e),m=$APP.I(e,UH),e=$APP.I(e,lI),h=nI("button"),g=IH(m),k=m.getUTCDate(),p=qI(m,b),m=tI(m,b),v=$APP.O(m),m=$APP.I(v,
|
|
15
|
+
$APP.yi),r=$APP.I(v,rI),v=$APP.I(v,sI),h.setAttribute("part","day"),h.setAttribute("type","button"),h.setAttribute("role","gridcell"),h.setAttribute("data-iso",g),h.setAttribute("data-outside",$APP.n(e)?"false":"true"),h.setAttribute("data-disabled",$APP.n(p)?"true":"false"),h.setAttribute("data-selected",$APP.n(m)?"true":"false"),h.setAttribute("data-in-range",$APP.n(r)?"true":"false"),h.setAttribute("data-range-edge",$APP.n(v)?"true":"false"),h.setAttribute("aria-selected",$APP.n(m)?"true":"false"),
|
|
16
|
+
h.setAttribute("aria-disabled",$APP.n(p)?"true":"false"),h.setAttribute("tabindex","-1"),h.textContent=""+$APP.T.g(k),d.appendChild(h),c=$APP.z(c),h=null,g=0),k=0;else break;d=$APP.l(a,"__xDatePickerGridFocus");a=$APP.l(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.l(a,"grid"):null;$APP.n($APP.n(a)?d:a)?(a=a.querySelector('[data-iso\x3d"'+$APP.T.g(d)+'"]'),a=$APP.n(a)?a.setAttribute("tabindex","0"):null):a=null;return a}}return null},wI=function(a){var b=$APP.l(a,"__xDatePickerRefs");b=$APP.n(b)?$APP.l(b,
|
|
17
|
+
"input"):null;var c=$APP.l(a,"__xDatePickerState");c=$APP.n(c)?$APP.l(c,"disp"):null;a=$APP.l(a,"__xDatePickerFocused");return $APP.n($APP.n(b)?$APP.q(a):b)?b.value=$APP.n(c)?c:"":null},xI=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"btn");var d=a.hasAttribute("disabled"),e=a.hasAttribute("readonly"),g=a.getAttribute("placeholder"),h=a.getAttribute("aria-label"),k=a.getAttribute("aria-describedby"),m=a.hasAttribute("open");$APP.n(b)&&($APP.n(d)?
|
|
18
18
|
b.setAttribute("disabled",""):b.removeAttribute("disabled"));$APP.n($APP.n(d)?m:d)&&a.removeAttribute("open");$APP.n(c)&&(c.setAttribute("aria-expanded",$APP.n(m)?"true":"false"),$APP.n(d)?(c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true")):(c.removeAttribute("disabled"),c.removeAttribute("aria-disabled")),$APP.n(e)&&c.setAttribute("readonly",""),$APP.n(e)||c.removeAttribute("readonly"),$APP.n(g)&&c.setAttribute("placeholder",g),$APP.n(h)&&c.setAttribute("aria-label",h),$APP.n(k)&&
|
|
19
|
-
c.setAttribute("aria-describedby",k));
|
|
20
|
-
if($APP.C.h(e,
|
|
21
|
-
$APP.n(
|
|
22
|
-
$APP.l(b,"canon"):null;var v=$APP.n(
|
|
23
|
-
mode:c});if($APP.C.h(g,
|
|
24
|
-
(g=d.indexOf(e),g<0?(d=
|
|
25
|
-
e);a.setAttribute("end",g);a.__xDatePickerRangeStep=0;
|
|
26
|
-
b){if($APP.n(a.hasAttribute("disabled")))return null;b=b.currentTarget.getAttribute("data-nav");return $APP.C.h(b,"prev")?
|
|
27
|
-
-7);case "ArrowDown":return
|
|
28
|
-
$APP.n(e)?$APP.
|
|
29
|
-
$APP.n($APP.n(R)?R:a.hasAttribute("readonly"))?
|
|
30
|
-
"__xDatePickerState");
|
|
31
|
-
"__xDatePickerRefs");
|
|
32
|
-
r);
|
|
19
|
+
c.setAttribute("aria-describedby",k));wI(a);return vI(a)}return null},yI=function(a,b){$APP.n(b)?a.setAttribute("value",IH(b)):a.removeAttribute("value")},zI=function(a,b,c){if($APP.n(a.hasAttribute("readonly")))return null;var d=$APP.l(a,"__xDatePickerState");d=$APP.n(d)?$APP.l(d,"canon"):null;var e=$APP.n(d)?$APP.ij.g(d):null,g=$APP.C.h(e,YH)?"range":"single",h=$APP.C.h(e,ZH)?{value:IH(b),mode:g,reason:c}:{date:IH(b),mode:g,reason:c};h=oI(a,"x-date-picker-change-request",!0,h);if($APP.n(h.defaultPrevented))return null;
|
|
20
|
+
if($APP.C.h(e,ZH))return d=IH(b),yI(a,b),pI(a),xI(a),oI(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.n(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),xI(a)):null;e=function(){var y=$APP.l(a,"__xDatePickerRangeStep");return $APP.n(y)?y:0}();h=hI.g(d);jI.g(d);if($APP.C.h(e,0))a.setAttribute("start",IH(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.C.h(e,1)){var k=bI.g(d),m=KH(b,h);if($APP.n(function(){var y=m>0;return y?y:$APP.n(k)?m===0:k}())){var p=
|
|
21
|
+
$APP.n(XH.g(d))?KH(h,b)<0?h:b:h,r=$APP.n(XH.g(d))?KH(h,b)>0?h:b:b;a.setAttribute("start",IH(p));a.setAttribute("end",IH(r));a.__xDatePickerRangeStep=0;$APP.n(function(){var y=a.hasAttribute("close-on-select");return $APP.n(y)?p!=null&&r!=null:y}())&&a.removeAttribute("open")}else a.setAttribute("start",IH(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",IH(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;pI(a);xI(a);b=$APP.l(a,"__xDatePickerState");b=$APP.n(b)?
|
|
22
|
+
$APP.l(b,"canon"):null;var v=$APP.n(hI.g(b))?IH(hI.g(b)):null,x=$APP.n(jI.g(b))?IH(jI.g(b)):null;b=function(){var y={mode:g,reason:c};$APP.n(v)&&(y.start=v);$APP.n(x)&&(y.end=x);return y}();return oI(a,"x-date-picker-change",!1,b)},AI=function(a,b){var c=$APP.l(a,"__xDatePickerRefs");c=$APP.n(c)?$APP.l(c,"input"):null;var d=$APP.n(c)?c.value:null;c=$APP.l(a,"__xDatePickerState");var e=$APP.n(c)?$APP.l(c,"canon"):null,g=$APP.ij.g(e);c=$APP.C.h(g,YH)?"range":"single";oI(a,"x-date-picker-input",!1,{value:d,
|
|
23
|
+
mode:c});if($APP.C.h(g,ZH)){if(d=VH(d),e=$APP.O(d),d=$APP.I(e,TH),e=$APP.I(e,UH),$APP.n(d)){g=IH(e);d=oI(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;yI(a,e);pI(a);xI(a);return oI(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.Q(null,1,[$APP.Th,$APP.Th.g(e)],null),e=$APP.O(e),e=$APP.I(e,$APP.Th),e=typeof e==="string"&&e.length>0?e:" - ",d=FH(d),d==null?d=new $APP.Q(null,3,[TH,!1,$APP.Gj,null,$APP.bi,null],null):
|
|
24
|
+
(g=d.indexOf(e),g<0?(d=VH(d),e=$APP.O(d),d=$APP.I(e,TH),e=$APP.I(e,UH),d=new $APP.Q(null,3,[TH,d,$APP.Gj,e,$APP.bi,null],null)):(e=d.substring(g+e.length).trim(),d=JH(d.substring(0,g).trim()),e=JH(e),d=new $APP.Q(null,3,[TH,d!=null&&e!=null,$APP.Gj,d,$APP.bi,e],null))),g=$APP.O(d),d=$APP.I(g,TH),e=$APP.I(g,$APP.Gj),g=$APP.I(g,$APP.bi),$APP.n(d)){e=IH(e);g=IH(g);d=oI(a,"x-date-picker-change-request",!0,{start:e,end:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;a.setAttribute("start",
|
|
25
|
+
e);a.setAttribute("end",g);a.__xDatePickerRangeStep=0;pI(a);xI(a);return oI(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},CI=function(a,b){var c=$APP.l(a,"__xDatePickerState"),d=$APP.n(c)?$APP.l(c,"month"):null;if($APP.n(d)){var e=d.getUTCFullYear();d=d.getUTCMonth();b=$APP.C.h(b,BI)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return vI(a)}return null},DI=function(a){return $APP.n(a.hasAttribute("open"))?a.removeAttribute("open"):null},FI=function(a,
|
|
26
|
+
b){if($APP.n(a.hasAttribute("disabled")))return null;b=b.currentTarget.getAttribute("data-nav");return $APP.C.h(b,"prev")?CI(a,EI):CI(a,BI)},GI=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.l(a,"__xDatePickerGridFocus"),e=$APP.n(d)?JH(d):null;d=$APP.l(a,"__xDatePickerState");var g=$APP.n(d)?$APP.l(d,"canon"):null,h=$APP.n(d)?$APP.l(d,"month"):null,k=$APP.n(e)?function(){switch(c){case "ArrowLeft":return LH(e,-1);case "ArrowRight":return LH(e,1);case "ArrowUp":return LH(e,
|
|
27
|
+
-7);case "ArrowDown":return LH(e,7);case "PageUp":return NH(e,-1);case "PageDown":return NH(e,1);case "Home":return $APP.n(e)?LH(e,-($APP.n(e)?e.getUTCDay():0)):null;case "End":return $APP.n(e)?LH(e,6-($APP.n(e)?e.getUTCDay():0)):null;default:return null}}():null;return k!=null?(b.preventDefault(),b=OH(k,eI.g(g),cI.g(g)),g=IH(b),$APP.n($APP.n(h)?$APP.P(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.la(d,"month",MH(b)),vI(a)),uI(a,g)):$APP.n(function(){var m=$APP.C.h(c,"Enter")||$APP.C.h(c," ");return m?
|
|
28
|
+
$APP.n(e)?$APP.q(a.hasAttribute("readonly")):e:m}())?(b.preventDefault(),$APP.n(qI(e,g))?null:zI(a,e,"keyboard")):$APP.C.h(c,"Escape")?(b.preventDefault(),DI(a),d=$APP.l(a,"__xDatePickerRefs"),d=$APP.n(d)?$APP.l(d,"input"):null,$APP.n(d)?d.focus():null):null},HI=function(a){function b(G){return $APP.n(a.hasAttribute("open"))?$APP.n(G.composedPath().some(function(R){return R===a}))?null:DI(a):null}function c(G){return G.preventDefault()}function d(G){return GI(a,G)}function e(G){var R=a.hasAttribute("disabled");
|
|
29
|
+
$APP.n($APP.n(R)?R:a.hasAttribute("readonly"))?G=null:(G=G.target.closest("button[data-iso]"),$APP.n($APP.n(G)?$APP.P("true",G.getAttribute("data-disabled")):G)?(G=G.getAttribute("data-iso"),G=JH(G),G=$APP.n(G)?zI(a,G,"click"):null):G=null);return G}function g(G){return FI(a,G)}function h(G){return FI(a,G)}function k(){if($APP.n(a.hasAttribute("disabled")))var G=null;else if($APP.n(a.hasAttribute("open")))G=DI(a);else if($APP.n(a.hasAttribute("open")))G=null;else{a.setAttribute("open","");G=$APP.l(a,
|
|
30
|
+
"__xDatePickerState");G=$APP.n(G)?$APP.l(G,"canon"):null;var R=aI.g(G);$APP.n(R)?G=R:(G=hI.g(G),G=$APP.n(G)?G:new Date(Date.now()));G=IH(G);G=uI(a,G)}return G}function m(){a.__xDatePickerFocused=!1;$APP.n(a.hasAttribute("disabled"))||AI(a,"blur");return wI(a)}function p(){a.__xDatePickerFocused=!0}function r(G){if($APP.n(a.hasAttribute("disabled")))G=null;else{var R=G.key;$APP.C.h(R,"Enter")?(G.preventDefault(),G=AI(a,"keyboard")):G=$APP.C.h(R,"Escape")?DI(a):null}return G}function v(){var G=$APP.l(a,
|
|
31
|
+
"__xDatePickerRefs");G=$APP.n(G)?$APP.l(G,"input"):null;var R=$APP.l(a,"__xDatePickerState");R=$APP.C.h($APP.ij.g($APP.n(R)?$APP.l(R,"canon"):null),YH)?"range":"single";a.__xDatePickerDisplay=$APP.n(G)?G.value:null;return oI(a,"x-date-picker-input",!1,{value:$APP.n(G)?G.value:null,mode:R})}var x=$APP.l(a,"__xDatePickerRefs"),y=$APP.l(x,"input"),A=$APP.l(x,"btn"),D=$APP.l(x,"nav-prev"),F=$APP.l(x,"nav-next"),J=$APP.l(x,"grid");x=$APP.l(x,"popover");y.addEventListener("input",v);y.addEventListener("keydown",
|
|
32
|
+
r);y.addEventListener("focus",p);y.addEventListener("blur",m);A.addEventListener("click",k);D.addEventListener("click",h);F.addEventListener("click",g);J.addEventListener("click",e);J.addEventListener("keydown",d);x.addEventListener("mousedown",c);document.addEventListener("pointerdown",b,!0);$APP.la(a,"__xDatePickerHandlers",{"pop-md":c,keydown:r,grid:e,"grid-kd":d,next:g,blur:m,prev:h,focus:p,input:v,btn:k,"doc-click":b})},II=function(a){var b=$APP.l(a,"__xDatePickerRefs");a=$APP.l(a,"__xDatePickerHandlers");
|
|
33
33
|
if($APP.n($APP.n(b)?a:b)){var c=$APP.l(b,"input"),d=$APP.l(b,"btn"),e=$APP.l(b,"nav-prev"),g=$APP.l(b,"nav-next"),h=$APP.l(b,"grid");b=$APP.l(b,"popover");c.removeEventListener("input",$APP.l(a,"input"));c.removeEventListener("keydown",$APP.l(a,"keydown"));c.removeEventListener("focus",$APP.l(a,"focus"));c.removeEventListener("blur",$APP.l(a,"blur"));d.removeEventListener("click",$APP.l(a,"btn"));e.removeEventListener("click",$APP.l(a,"prev"));g.removeEventListener("click",$APP.l(a,"next"));h.removeEventListener("click",
|
|
34
|
-
$APP.l(a,"grid"));h.removeEventListener("keydown",$APP.l(a,"grid-kd"));b.removeEventListener("mousedown",$APP.l(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.l(a,"doc-click"),!0)}return null},
|
|
35
|
-
b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},
|
|
36
|
-
(this.removeAttribute("start"),this.removeAttribute("end"));
|
|
34
|
+
$APP.l(a,"grid"));h.removeEventListener("keydown",$APP.l(a,"grid-kd"));b.removeEventListener("mousedown",$APP.l(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.l(a,"doc-click"),!0)}return null},JI=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return typeof d==="string"&&$APP.P(d,"")?this.setAttribute(c,d):this.removeAttribute(c)}})},KI=function(a,b,c){Object.defineProperty(a,
|
|
35
|
+
b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},LI=function(a){a.focus=function(){var b=$APP.l(this,"__xDatePickerRefs");b=$APP.n(b)?$APP.l(b,"input"):null;return $APP.n(b)?b.focus():null};a.commit=function(){return AI(this,"programmatic")};a.clear=function(){var b=$APP.l(this,"__xDatePickerState");$APP.C.h($APP.ij.g($APP.n(b)?$APP.l(b,"canon"):null),ZH)?this.removeAttribute("value"):
|
|
36
|
+
(this.removeAttribute("start"),this.removeAttribute("end"));pI(this);return xI(this)}},NI=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=MI;b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=nI("style"),e=nI("div"),g=nI("input"),h=nI("button"),k=nI("div"),m=nI("div"),p=nI("button"),r=nI("div"),v=nI("button"),x=nI("div"),y=nI("div"),A=nI("div");d.textContent=":host{display:block;color-scheme:light dark;}[part\x3dcontainer]{position:relative;display:flex;align-items:stretch;gap:8px;width:100%;}[part\x3dinput]{flex:1;min-width:0;appearance:none;box-sizing:border-box;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);padding:8px 12px;font-size:0.9375rem;background:var(--x-date-picker-input-bg,#fff);color:var(--x-date-picker-text,inherit);outline:none;}[part\x3dinput]:focus{border-color:var(--x-date-picker-focus,#60a5fa);box-shadow:0 0 0 3px rgba(96,165,250,0.25);}[part\x3dinput][disabled]{opacity:0.5;cursor:default;}[part\x3dbtn][disabled]{opacity:0.5;cursor:default;pointer-events:none;}[part\x3dinput]::placeholder{color:var(--x-date-picker-placeholder,#94a3b8);}[part\x3dbtn]{all:unset;cursor:pointer;flex:0 0 auto;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);background:var(--x-date-picker-btn-bg,#f8fafc);color:var(--x-date-picker-text,inherit);box-sizing:border-box;}[part\x3dbtn]:hover{background:var(--x-date-picker-btn-hover,#f1f5f9);}[part\x3dbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dpopover]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;background:var(--x-date-picker-popover-bg,#fff);border:1px solid var(--x-date-picker-border,#e2e8f0);border-radius:var(--x-date-picker-popover-radius,12px);box-shadow:0 8px 32px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);padding:16px;width:var(--x-date-picker-popover-width,304px);box-sizing:border-box;}:host([open]) [part\x3dpopover]{display:block;}[part\x3dnav]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}[part\x3dnavbtn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--x-date-picker-text,inherit);}[part\x3dnavbtn]:hover{background:var(--x-date-picker-nav-hover,#f1f5f9);}[part\x3dnavbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dmonthlabel]{font-weight:600;font-size:0.9375rem;}[part\x3dweekdays]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;}[part\x3dweekday]{text-align:center;font-size:0.75rem;font-weight:600;color:var(--x-date-picker-weekday,#94a3b8);padding:4px 0;}[part\x3dgrid]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}[part\x3dday]{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;border-radius:6px;font-size:0.875rem;color:var(--x-date-picker-day-text,inherit);}[part\x3dday]:hover:not([disabled]){background:var(--x-date-picker-day-hover,#f1f5f9);}[part\x3dday]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dday][data-outside\x3dtrue]{opacity:0.4;}[part\x3dday][data-disabled\x3dtrue]{opacity:0.3;cursor:default;pointer-events:none;}[part\x3dday][data-selected\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dday][data-in-range\x3dtrue]:not([data-range-edge\x3dtrue]){background:var(--x-date-picker-range-bg,#dbeafe);color:var(--x-date-picker-range-text,#1e40af);border-radius:0;}[part\x3dday][data-range-edge\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dsr-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}@media (prefers-color-scheme:dark){:host{--x-date-picker-border:#334155;--x-date-picker-input-bg:#0f172a;--x-date-picker-btn-bg:#1e293b;--x-date-picker-btn-hover:#334155;--x-date-picker-popover-bg:#1e293b;--x-date-picker-day-hover:#334155;--x-date-picker-selected-bg:#3b82f6;--x-date-picker-range-bg:#1e3a8a;--x-date-picker-range-text:#93c5fd;--x-date-picker-nav-hover:#334155;}}@media (prefers-reduced-motion:reduce){[part\x3dpopover]{transition:none;}}";
|
|
37
37
|
e.setAttribute("part","container");g.setAttribute("part","input");g.setAttribute("type","text");g.setAttribute("inputmode","none");g.setAttribute("autocomplete","off");g.setAttribute("role","combobox");g.setAttribute("aria-haspopup","dialog");g.setAttribute("aria-expanded","false");h.setAttribute("part","btn");h.setAttribute("type","button");h.setAttribute("aria-label","Open calendar");h.textContent="\ud83d\udcc5";k.setAttribute("part","popover");k.setAttribute("role","dialog");k.setAttribute("aria-modal",
|
|
38
|
-
"true");k.setAttribute("aria-label","Calendar");m.setAttribute("part","nav");
|
|
39
|
-
|
|
40
|
-
"nav-next":v,"month-label":r,input:g,btn:h,sr:A,"nav-prev":
|
|
41
|
-
|
|
42
|
-
-814680979),
|
|
43
|
-
-1597069226),
|
|
38
|
+
"true");k.setAttribute("aria-label","Calendar");m.setAttribute("part","nav");p.setAttribute("part","navbtn");p.setAttribute("data-nav","prev");p.setAttribute("type","button");p.setAttribute("aria-label","Previous month");p.textContent="‹";r.setAttribute("part","monthlabel");r.setAttribute("aria-live","polite");v.setAttribute("part","navbtn");v.setAttribute("data-nav","next");v.setAttribute("type","button");v.setAttribute("aria-label","Next month");v.textContent="›";x.setAttribute("part","weekdays");
|
|
39
|
+
x.setAttribute("aria-hidden","true");y.setAttribute("part","grid");y.setAttribute("role","grid");y.setAttribute("aria-label","Calendar grid");A.setAttribute("part","sr-status");A.setAttribute("aria-live","polite");A.setAttribute("aria-atomic","true");m.appendChild(p);m.appendChild(r);m.appendChild(v);k.appendChild(m);k.appendChild(x);k.appendChild(y);k.appendChild(A);e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xDatePickerRefs={weekdays:x,grid:y,popover:k,
|
|
40
|
+
"nav-next":v,"month-label":r,input:g,btn:h,sr:A,"nav-prev":p}}II(this);HI(this);pI(this);return xI(this)};b.disconnectedCallback=function(){return II(this)};b.attributeChangedCallback=function(){pI(this);return xI(this)};JI(b,"mode","mode");JI(b,"value","value");JI(b,"start","start");JI(b,"end","end");KI(b,"open","open");KI(b,"disabled","disabled");KI(b,"readOnly","readonly");KI(b,"required","required");LI(b);return a},OI=function(){return $APP.n(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
|
|
41
|
+
NI())},hI=new $APP.N(null,"start-d","start-d",-1546785820),TH=new $APP.N(null,"ok?","ok?",447310304),UH=new $APP.N(null,"date","date",-1463434462),XH=new $APP.N(null,"auto-swap?","auto-swap?",-1675454411),gI=new $APP.N(null,"end-str","end-str",-558112319),RH=new $APP.N(null,"localized","localized",1722109655),sI=new $APP.N(null,"edge?","edge?",203916303),fI=new $APP.N(null,"value-str","value-str",989198845),dI=new $APP.N(null,"complete?","complete?",-892991879),cI=new $APP.N(null,"max-d","max-d",
|
|
42
|
+
-814680979),ZH=new $APP.N(null,"single","single",1551466437),iI=new $APP.N(null,"start-str","start-str",1077409677),YH=new $APP.N(null,"range","range",1639692286),$H=new $APP.N(null,"iso","iso",-1366207543),lI=new $APP.N(null,"in-month?","in-month?",-1630426251),eI=new $APP.N(null,"min-d","min-d",-1118792932),QH=new $APP.N(null,"format","format",-1306924766),aI=new $APP.N(null,"value-d","value-d",-1768534876),rI=new $APP.N(null,"in-range?","in-range?",-291779262),EI=new $APP.N(null,"prev","prev",
|
|
43
|
+
-1597069226),BI=new $APP.N(null,"next","next",-117701485),jI=new $APP.N(null,"end-d","end-d",-1316370898),bI=new $APP.N(null,"allow-same-day?","allow-same-day?",-1971558934),WH=new $APP.N(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var MI="mode value start end min max format locale separator auto-swap range-allow-same-day close-on-select placeholder disabled readonly required name autocomplete aria-label aria-describedby open".split(" ");$APP.ja("baredom.exports.x_date_picker.init",OI);export const init=OI;
|
package/dist/x-divider.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.u(a.
|
|
4
|
-
else break}},
|
|
5
|
-
|
|
6
|
-
r);a.setAttribute("data-align",h);
|
|
7
|
-
"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.l(a,"__xDividerRefs"),$APP.C.h($APP.l(d,"mode"),"no-label")&&(e=$APP.l(d,"container"),
|
|
8
|
-
m.setAttribute("part","label-text"),
|
|
9
|
-
null,a["label-wrap"]=null,a["label-text"]=null,a["line-right"]=null,a.mode="no-label"));return null},
|
|
10
|
-
enumerable:!0,configurable:!0})},
|
|
2
|
+
var UG=function(a,b){if(a!=null&&a.nc!=null)a.nc(a,b);else{var c=UG[$APP.da(a==null?null:a)];if(c!=null)c.h?c.h(a,b):c.call(null,a,b);else if(c=UG._,c!=null)c.h?c.h(a,b):c.call(null,a,b);else throw $APP.ra("IReset.-reset!",a);}},VG=function(){this.cc=this.vc=this.s=this.state=null;this.D=16386;this.o=6455296},WG=function(a,b){if(a instanceof VG){var c=a.vc;if(c!=null&&!$APP.n(c.g?c.g(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;if(a.cc!=null)a:for(var d=
|
|
3
|
+
$APP.u(a.cc),e=null,g=0,h=0;;)if(h<g){var k=e.H(null,h),m=$APP.H(k,0,null);k=$APP.H(k,1,null);k.Z?k.Z(m,a,c,b):k.call(null,m,a,c,b);h+=1}else if(d=$APP.u(d))$APP.yc(d)?(e=$APP.nb(d),d=$APP.ob(d),m=e,g=$APP.B(e),e=m):(e=$APP.w(d),m=$APP.H(e,0,null),k=$APP.H(e,1,null),k.Z?k.Z(m,a,c,b):k.call(null,m,a,c,b),d=$APP.z(d),e=null,g=0),h=0;else break a}else UG(a,b)},XG=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.M(a,c)?c:b},YG=function(a){for(;;){var b=a.firstChild;if($APP.n(b))a.removeChild(b);
|
|
4
|
+
else break}},jH=function(a){var b=$APP.ff([$APP.qi,$APP.Ch,$APP.pi,ZG,$G,aH,bH,$APP.pj,$APP.Nj,cH],[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"),a.getAttribute("role")]),c=$APP.O(b);b=$APP.I(c,$APP.Nj);var d=$APP.I(c,cH),e=$APP.I(c,$APP.Ch);var g=$APP.I(c,$APP.qi);var h=$APP.I(c,$APP.pi),k=$APP.I(c,ZG),m=$APP.I(c,
|
|
5
|
+
$G),p=$APP.I(c,aH),r=$APP.I(c,bH);c=$APP.I(c,$APP.pj);g=$APP.ff([$APP.uh,$APP.hj,dH,eH,$APP.Ej,$APP.sh,$APP.ki,$APP.W,fH,$APP.cj],[d,XG(gH,"center",h),m,r,p,XG(hH,"solid",g),XG(iH,"horizontal",c),e,k,b]);c=$APP.O(g);d=$APP.I(c,$APP.cj);h=$APP.I(c,$APP.hj);k=$APP.I(c,dH);m=$APP.I(c,eH);p=$APP.I(c,$APP.Ej);r=$APP.I(c,$APP.sh);e=$APP.I(c,$APP.ki);b=$APP.I(c,$APP.W);var v=$APP.I(c,fH);c=typeof b==="string"&&b.trim().length>0;var x=a.style;a.setAttribute("data-orientation",e);a.setAttribute("data-variant",
|
|
6
|
+
r);a.setAttribute("data-align",h);x.setProperty("--x-divider-thickness",$APP.n(k)?k:"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.uh.g(g);$APP.M(new $APP.S(null,new $APP.Q(null,2,["none",null,"presentation",null],null),null),g)?a.setAttribute("role","presentation"):a.setAttribute("role","separator");$APP.C.h(e,"vertical")?a.setAttribute("aria-orientation",
|
|
7
|
+
"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.l(a,"__xDividerRefs"),$APP.C.h($APP.l(d,"mode"),"no-label")&&(e=$APP.l(d,"container"),YG(e),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span"),p=document.createElement("div"),g.setAttribute("part","line-left"),h.setAttribute("part","label"),k.setAttribute("name","label"),
|
|
8
|
+
m.setAttribute("part","label-text"),p.setAttribute("part","line-right"),h.appendChild(k),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.l($APP.l(a,"__xDividerRefs"),"label-text"),$APP.n(a)&&(a.textContent=b)):(a=$APP.l(a,"__xDividerRefs"),$APP.C.h($APP.l(a,"mode"),"label")&&(b=$APP.l(a,"container"),YG(b),d=document.createElement("div"),d.setAttribute("part","line"),b.appendChild(d),a["line-left"]=
|
|
9
|
+
null,a["label-wrap"]=null,a["label-text"]=null,a["line-right"]=null,a.mode="no-label"));return null},kH=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})},lH=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)},
|
|
10
|
+
enumerable:!0,configurable:!0})},mH=function(a){lH(a,"orientation","horizontal");lH(a,"variant","solid");lH(a,"align","center");kH(a,"label");kH(a,"thickness");kH(a,"color");kH(a,"inset");kH(a,"length")},nH=function(){function a(){return Reflect.construct(HTMLElement,[],$APP.Qa(b))}var b=new VG;WG(b,a);return a},pH=function(){if($APP.n(customElements.get("x-divider")))return null;var a=Object.create(HTMLElement.prototype),b=nH();Object.setPrototypeOf(b,HTMLElement);a.constructor=b;mH(a);a.connectedCallback=
|
|
11
11
|
function(){if(!$APP.n($APP.l(this,"__xDividerRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div");d.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;}}";
|
|
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
|
|
13
|
-
$APP.f=
|
|
14
|
-
var
|
|
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 jH(this)};a.disconnectedCallback=function(){return null};a.attributeChangedCallback=function(c,d,e){return $APP.P(d,e)?$APP.n($APP.l(this,"__xDividerRefs"))?jH(this):null:null};b.observedAttributes=oH;b.prototype=a;return customElements.define("x-divider",b)},qH=function(){return pH()};
|
|
13
|
+
$APP.f=VG.prototype;$APP.f.R=function(a,b){return this===b};$APP.f.Ob=function(){return this.state};$APP.f.U=function(){return this.s};$APP.f.T=function(){return $APP.ha(this)};$APP.f.$=$APP.t;$APP.f.S=function(a,b,c){$APP.db(b,"#object[cljs.core.Atom ");$APP.dg(new $APP.Q(null,1,[$APP.Kj,this.state],null),b,c);return $APP.db(b,"]")};
|
|
14
|
+
var ZG=new $APP.N(null,"length-raw","length-raw",-1832244116),bH=new $APP.N(null,"inset-raw","inset-raw",89351124),eH=new $APP.N(null,"inset","inset",-396367740),dH=new $APP.N(null,"thickness","thickness",-940175454),$G=new $APP.N(null,"thickness-raw","thickness-raw",1843812655),cH=new $APP.N(null,"role-raw","role-raw",777951354),fH=new $APP.N(null,"length","length",588987862),aH=new $APP.N(null,"color-raw","color-raw",1277647215);var oH="orientation variant thickness color inset length label align role aria-label".split(" "),iH=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),hH=new $APP.S(null,new $APP.Q(null,3,["dashed",null,"dotted",null,"solid",null],null),null),gH=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null);$APP.ja("baredom.exports.x_divider.init",qH);export const init=qH;
|