@deepfuture/dui-cdn 1.4.0 → 1.4.2
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/dui.js +41 -24
- package/dui.min.js +314 -329
- package/package.json +1 -1
package/dui.min.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
\f\r]`,bc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j_=/-->/g,K_=/>/g,li=RegExp(`>|${
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),W_=/'/g,Y_=/"/g,Q_=/^(?:script|style|textarea|title)$/i,Tb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),Zr=Tb(1),R6=Tb(2),I6=Tb(3),pi=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),G_=new WeakMap,di=ci.createTreeWalker(ci,129);function Z_(i,r){if(!$b(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return q_!==void 0?q_.createHTML(r):r}var zF=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=bc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===bc?$[1]==="!--"?d=j_:$[1]!==void 0?d=K_:$[2]!==void 0?(Q_.test($[2])&&(s=RegExp("</"+$[2],"g")),d=li):$[3]!==void 0&&(d=li):d===li?$[0]===">"?(d=s??bc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?li:$[3]==='"'?Y_:W_):d===Y_||d===W_?d=li:d===j_||d===K_?d=bc:(d=li,s=void 0);let S=d===li&&i[m+1].startsWith("/>")?" ":"";l+=d===bc?g+IF:y>=0?(e.push(E),g.slice(0,y)+X_+g.slice(y)+Cs+S):g+Cs+(y===-2?m:S)}return[Z_(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},wc=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=zF(r,t);if(this.el=i.createElement(E,e),di.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=di.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(X_)){let _=$[d++],S=s.getAttribute(y).split(Cs),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?yb:O[1]==="?"?wb:O[1]==="@"?kb:Dn}),s.removeAttribute(y)}else y.startsWith(Cs)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(Q_.test(s.tagName)){let y=s.textContent.split(Cs),_=y.length-1;if(_>0){s.textContent=Ah?Ah.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],xc()),di.nextNode(),g.push({type:2,index:++l});s.append(y[_],xc())}}}else if(s.nodeType===8)if(s.data===J_)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(Cs,y+1))!==-1;)g.push({type:7,index:l}),y+=Cs.length-1}l++}}static createElement(r,t){let e=ci.createElement("template");return e.innerHTML=r,e}};function Nn(i,r,t=i,e){if(r===pi)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=yc(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=Nn(i,s._$AS(i,r.values),s,e)),r}var xb=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??ci).importNode(t,!0);di.currentNode=s;let l=di.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new kc(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Eb(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=di.nextNode(),d++)}return di.currentNode=ci,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},kc=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Nn(this,r,t),yc(r)?r===ve||r==null||r===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):r!==this._$AH&&r!==pi&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):LF(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==ve&&yc(this._$AH)?this._$AA.nextSibling.data=r:this.T(ci.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=wc.createElement(Z_(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new xb(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=G_.get(r.strings);return t===void 0&&G_.set(r.strings,t=new wc(r)),t}k(r){$b(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(xc()),this.O(xc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=U_(r).nextSibling;U_(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ve}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=Nn(this,r,t,0),d=!yc(r)||r!==this._$AH&&r!==pi,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=Nn(this,m[e+g],t,g),E===pi&&(E=this._$AH[g]),d||=!yc(E)||E!==this._$AH[g],E===ve?r=ve:r!==ve&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},yb=class extends Dn{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===ve?void 0:r}},wb=class extends Dn{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==ve)}},kb=class extends Dn{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=Nn(this,r,t,0)??ve)===pi)return;let e=this._$AH,s=r===ve&&e!==ve||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==ve&&(e===ve||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Eb=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){Nn(this,r)}};var OF=Cb.litHtmlPolyfillSupport;OF?.(wc,kc),(Cb.litHtmlVersions??=[]).push("3.3.2");var tR=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new kc(r.insertBefore(xc(),l),l,void 0,t??{})}return s._$AI(i),s};var Sb=globalThis,Hn=class extends Qr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=tR(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pi}};Hn._$litElement$=!0,Hn.finalized=!0,Sb.litElementHydrateSupport?.({LitElement:Hn});var MF=Sb.litElementPolyfillSupport;MF?.({LitElement:Hn});(Sb.litElementVersions??=[]).push("4.2.2");var _h=globalThis,Rh=_h.ShadowRoot&&(_h.ShadyCSS===void 0||_h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ab=Symbol(),eR=new WeakMap,Ec=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==Ab)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(Rh&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=eR.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&eR.set(t,r))}return r}toString(){return this.cssText}},oR=i=>new Ec(typeof i=="string"?i:i+"",void 0,Ab),b=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new Ec(t,i,Ab)},Ih=(i,r)=>{if(Rh)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=_h.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},_b=Rh?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return oR(t)})(i):i;var{is:NF,defineProperty:DF,getOwnPropertyDescriptor:HF,getOwnPropertyNames:BF,getOwnPropertySymbols:FF,getPrototypeOf:VF}=Object,Lh=globalThis,rR=Lh.trustedTypes,PF=rR?rR.emptyScript:"",UF=Lh.reactiveElementPolyfillSupport,Cc=(i,r)=>i,$c={toAttribute(i,r){switch(r){case Boolean:i=i?PF:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},zh=(i,r)=>!NF(i,r),sR={attribute:!0,type:String,converter:$c,reflect:!1,useDefault:!1,hasChanged:zh};Symbol.metadata??=Symbol("metadata"),Lh.litPropertyMetadata??=new WeakMap;var ts=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=sR){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&DF(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=HF(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??sR}static _$Ei(){if(this.hasOwnProperty(Cc("elementProperties")))return;let r=VF(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Cc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cc("properties"))){let t=this.properties,e=[...BF(t),...FF(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(_b(s))}else r!==void 0&&t.push(_b(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ih(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$c).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$c;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??zh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};ts.elementStyles=[],ts.shadowRootOptions={mode:"open"},ts[Cc("elementProperties")]=new Map,ts[Cc("finalized")]=new Map,UF?.({ReactiveElement:ts}),(Lh.reactiveElementVersions??=[]).push("2.1.2");var Ib=globalThis,iR=i=>i,Oh=Ib.trustedTypes,nR=Oh?Oh.createPolicy("lit-html",{createHTML:i=>i}):void 0,Lb="$lit$",es=`lit$${Math.random().toFixed(9).slice(2)}$`,zb="?"+es,qF=`<${zb}>`,mi=document,Sc=()=>mi.createComment(""),Ac=i=>i===null||typeof i!="object"&&typeof i!="function",Ob=Array.isArray,hR=i=>Ob(i)||typeof i?.[Symbol.iterator]=="function",Rb=`[
|
|
4
|
-
\f\r]`,Tc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aR=/-->/g,lR=/>/g,hi=RegExp(`>|${
|
|
5
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),dR=/'/g,cR=/"/g,uR=/^(?:script|style|textarea|title)$/i,Mb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),f=Mb(1),Fh=Mb(2),Y6=Mb(3),Ee=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pR=new WeakMap,ui=mi.createTreeWalker(mi,129);function mR(i,r){if(!Ob(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return nR!==void 0?nR.createHTML(r):r}var fR=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=Tc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===Tc?$[1]==="!--"?d=aR:$[1]!==void 0?d=lR:$[2]!==void 0?(uR.test($[2])&&(s=RegExp("</"+$[2],"g")),d=hi):$[3]!==void 0&&(d=hi):d===hi?$[0]===">"?(d=s??Tc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?hi:$[3]==='"'?cR:dR):d===cR||d===dR?d=hi:d===aR||d===lR?d=Tc:(d=hi,s=void 0);let S=d===hi&&i[m+1].startsWith("/>")?" ":"";l+=d===Tc?g+qF:y>=0?(e.push(E),g.slice(0,y)+Lb+g.slice(y)+es+S):g+es+(y===-2?m:S)}return[mR(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},_c=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=fR(r,t);if(this.el=i.createElement(E,e),ui.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=ui.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(Lb)){let _=$[d++],S=s.getAttribute(y).split(es),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?Nh:O[1]==="?"?Dh:O[1]==="@"?Hh:gi}),s.removeAttribute(y)}else y.startsWith(es)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(uR.test(s.tagName)){let y=s.textContent.split(es),_=y.length-1;if(_>0){s.textContent=Oh?Oh.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],Sc()),ui.nextNode(),g.push({type:2,index:++l});s.append(y[_],Sc())}}}else if(s.nodeType===8)if(s.data===zb)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(es,y+1))!==-1;)g.push({type:7,index:l}),y+=es.length-1}l++}}static createElement(r,t){let e=mi.createElement("template");return e.innerHTML=r,e}};function fi(i,r,t=i,e){if(r===Ee)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=Ac(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=fi(i,s._$AS(i,r.values),s,e)),r}var Mh=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??mi).importNode(t,!0);ui.currentNode=s;let l=ui.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new Bn(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Bh(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=ui.nextNode(),d++)}return ui.currentNode=mi,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},Bn=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=fi(this,r,t),Ac(r)?r===L||r==null||r===""?(this._$AH!==L&&this._$AR(),this._$AH=L):r!==this._$AH&&r!==Ee&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):hR(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==L&&Ac(this._$AH)?this._$AA.nextSibling.data=r:this.T(mi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=_c.createElement(mR(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new Mh(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=pR.get(r.strings);return t===void 0&&pR.set(r.strings,t=new _c(r)),t}k(r){Ob(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(Sc()),this.O(Sc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=iR(r).nextSibling;iR(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=L,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=fi(this,r,t,0),d=!Ac(r)||r!==this._$AH&&r!==Ee,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=fi(this,m[e+g],t,g),E===Ee&&(E=this._$AH[g]),d||=!Ac(E)||E!==this._$AH[g],E===L?r=L:r!==L&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Nh=class extends gi{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===L?void 0:r}},Dh=class extends gi{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==L)}},Hh=class extends gi{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=fi(this,r,t,0)??L)===Ee)return;let e=this._$AH,s=r===L&&e!==L||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==L&&(e===L||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Bh=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){fi(this,r)}},gR={M:Lb,P:es,A:zb,C:1,L:fR,R:Mh,D:hR,V:fi,I:Bn,H:gi,N:Dh,U:Hh,B:Nh,F:Bh},jF=Ib.litHtmlPolyfillSupport;jF?.(_c,Bn),(Ib.litHtmlVersions??=[]).push("3.3.2");var Vh=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new Bn(r.insertBefore(Sc(),l),l,void 0,t??{})}return s._$AI(i),s};var Nb=globalThis,x=class extends ts{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Vh(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};x._$litElement$=!0,x.finalized=!0,Nb.litElementHydrateSupport?.({LitElement:x});var KF=Nb.litElementPolyfillSupport;KF?.({LitElement:x});(Nb.litElementVersions??=[]).push("4.2.2");var WF={attribute:!0,type:String,converter:$c,reflect:!1,hasChanged:zh},YF=(i=WF,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(i){return(r,t)=>typeof t=="object"?YF(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}function C(i){return u({...i,state:!0,attribute:!1})}var vi=(i,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,t),t);function vR(i,r){return(t,e,s)=>{let l=d=>d.renderRoot?.querySelector(i)??null;if(r){let{get:d,set:m}=typeof e=="object"?t:s??(()=>{let g=Symbol();return{get(){return this[g]},set(E){this[g]=E}}})();return vi(t,e,{get(){let g=d.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&m.call(this,g)),g}})}return vi(t,e,{get(){return l(this)}})}}var $s=class extends Event{constructor(r,t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t,this.callback=e,this.subscribe=s??!1}};var q=class{constructor(r,t,e,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,d)),this.unsubscribe=d},this.host=r,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new $s(this.context,this.host,this.t,this.subscribe))}};var Ph=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,t=!1){let e=t||!Object.is(r,this.o);this.o=r,e&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},r!==void 0&&(this.value=r)}addCallback(r,t,e){if(!e)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:t});let{disposer:s}=this.subscriptions.get(r);r(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Db=class extends Event{constructor(r,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t}},Fn=class extends Ph{constructor(r,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=s=>{if(s.context!==this.context)return;let l=s.contextTarget??s.composedPath()[0];l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let l=new Set;for(let[d,{consumerHost:m}]of this.subscriptions)l.has(d)||(l.add(d),m.dispatchEvent(new $s(this.context,m,d,!0)));s.stopPropagation()},this.host=r,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Db(this.context,this.host))}};function lt({context:i}){return(r,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return r.get.call(this)},set(s){return e.get(this).setValue(s),r.set.call(this,s)},init(s){return e.set(this,new Fn(this,{context:i,initialValue:s})),s}};{r.constructor.addInitializer(d=>{e.set(d,new Fn(d,{context:i}))});let s=Object.getOwnPropertyDescriptor(r,t),l;if(s===void 0){let d=new WeakMap;l={get(){return d.get(this)},set(m){e.get(this).setValue(m),d.set(this,m)},configurable:!0,enumerable:!0}}else{let d=s.set;l={...s,set(m){e.get(this).setValue(m),d?.call(this,m)}}}return void Object.defineProperty(r,t,l)}}}function Nt({context:i,subscribe:r}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new q(this,{context:i,callback:s=>{t.set.call(this,s)},subscribe:r})}):t.constructor.addInitializer(s=>{new q(s,{context:i,callback:l=>{s[e]=l},subscribe:r})})}}var w=b`
|
|
1
|
+
var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDescriptor;var N_=(i,r)=>(r=Symbol[i])?r:Symbol.for("Symbol."+i),Mn=i=>{throw TypeError(i)};var D_=(i,r,t)=>r in i?fb(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t;var M_=(i,r)=>fb(i,"name",{value:r,configurable:!0});var A=i=>[,,,x3(i?.[N_("metadata")]??null)],H_=["class","method","getter","setter","accessor","field","value","get","set"],mc=i=>i!==void 0&&typeof i!="function"?Mn("Function expected"):i,w3=(i,r,t,e,s)=>({kind:H_[i],name:r,metadata:e,addInitializer:l=>t._?Mn("Already initialized"):s.push(mc(l||null))}),T=(i,r)=>D_(r,N_("metadata"),i[3]),n=(i,r,t,e)=>{for(var s=0,l=i[r>>1],d=l&&l.length;s<d;s++)r&1?l[s].call(t):e=l[s].call(t,e);return e},c=(i,r,t,e,s,l)=>{var d,m,g,E,$,y=r&7,_=!!(r&8),S=!!(r&16),O=y>3?i.length+1:y?_?1:2:0,B=H_[y+5],j=y>3&&(i[O-1]=[]),K=i[O]||(i[O]=[]),F=y&&(!S&&!_&&(s=s.prototype),y<5&&(y>3||!S)&&y3(y<4?s:{get[t](){return o(this,l)},set[t](J){return h(this,l,J)}},t));y?S&&y<4&&M_(l,(y>2?"set ":y>1?"get ":"")+t):M_(s,t);for(var G=e.length-1;G>=0;G--)E=w3(y,t,g={},i[3],K),y&&(E.static=_,E.private=S,$=E.access={has:S?J=>k3(s,J):J=>t in J},y^3&&($.get=S?J=>(y^1?o:p)(J,s,y^4?l:F.get):J=>J[t]),y>2&&($.set=S?(J,ge)=>h(J,s,ge,y^4?l:F.set):(J,ge)=>J[t]=ge)),m=(0,e[G])(y?y<4?S?l:F[B]:y>4?void 0:{get:F.get,set:F.set}:s,E),g._=1,y^4||m===void 0?mc(m)&&(y>4?j.unshift(m):y?S?l=m:F[B]=m:s=m):typeof m!="object"||m===null?Mn("Object expected"):(mc(d=m.get)&&(F.get=d),mc(d=m.set)&&(F.set=d),mc(d=m.init)&&j.unshift(d));return y||T(i,s),F&&fb(s,t,F),S?y^4?l:F:s},v=(i,r,t)=>D_(i,typeof r!="symbol"?r+"":r,t),gb=(i,r,t)=>r.has(i)||Mn("Cannot "+t),k3=(i,r)=>Object(r)!==r?Mn('Cannot use the "in" operator on this value'):i.has(r),o=(i,r,t)=>(gb(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?Mn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),h=(i,r,t,e)=>(gb(i,r,"write to private field"),e?e.call(i,t):r.set(i,t),t),p=(i,r,t)=>(gb(i,r,"access private method"),t);var Es=(i,r,t,e)=>({set _(s){h(i,r,s,t)},get _(){return o(i,r,e)}});var Ch=globalThis,$h=Ch.ShadowRoot&&(Ch.ShadyCSS===void 0||Ch.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vb=Symbol(),B_=new WeakMap,fc=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==vb)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if($h&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=B_.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&B_.set(t,r))}return r}toString(){return this.cssText}},Jr=i=>new fc(typeof i=="string"?i:i+"",void 0,vb),k=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new fc(t,i,vb)},F_=(i,r)=>{if($h)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=Ch.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},bb=$h?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return Jr(t)})(i):i;var{is:E3,defineProperty:C3,getOwnPropertyDescriptor:$3,getOwnPropertyNames:T3,getOwnPropertySymbols:S3,getPrototypeOf:A3}=Object,Th=globalThis,V_=Th.trustedTypes,_3=V_?V_.emptyScript:"",R3=Th.reactiveElementPolyfillSupport,gc=(i,r)=>i,vc={toAttribute(i,r){switch(r){case Boolean:i=i?_3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Sh=(i,r)=>!E3(i,r),P_={attribute:!0,type:String,converter:vc,reflect:!1,useDefault:!1,hasChanged:Sh};Symbol.metadata??=Symbol("metadata"),Th.litPropertyMetadata??=new WeakMap;var Qr=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=P_){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&C3(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=$3(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??P_}static _$Ei(){if(this.hasOwnProperty(gc("elementProperties")))return;let r=A3(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(gc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gc("properties"))){let t=this.properties,e=[...T3(t),...S3(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(bb(s))}else r!==void 0&&t.push(bb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return F_(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:vc).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:vc;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??Sh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};Qr.elementStyles=[],Qr.shadowRootOptions={mode:"open"},Qr[gc("elementProperties")]=new Map,Qr[gc("finalized")]=new Map,R3?.({ReactiveElement:Qr}),(Th.reactiveElementVersions??=[]).push("2.1.2");var $b=globalThis,U_=i=>i,Ah=$b.trustedTypes,q_=Ah?Ah.createPolicy("lit-html",{createHTML:i=>i}):void 0,X_="$lit$",Cs=`lit$${Math.random().toFixed(9).slice(2)}$`,J_="?"+Cs,I3=`<${J_}>`,ci=document,xc=()=>ci.createComment(""),yc=i=>i===null||typeof i!="object"&&typeof i!="function",Tb=Array.isArray,L3=i=>Tb(i)||typeof i?.[Symbol.iterator]=="function",xb=`[
|
|
2
|
+
\f\r]`,bc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j_=/-->/g,K_=/>/g,li=RegExp(`>|${xb}(?:([^\\s"'>=/]+)(${xb}*=${xb}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),W_=/'/g,Y_=/"/g,Q_=/^(?:script|style|textarea|title)$/i,Sb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),Zr=Sb(1),_6=Sb(2),R6=Sb(3),pi=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),G_=new WeakMap,di=ci.createTreeWalker(ci,129);function Z_(i,r){if(!Tb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return q_!==void 0?q_.createHTML(r):r}var z3=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=bc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===bc?$[1]==="!--"?d=j_:$[1]!==void 0?d=K_:$[2]!==void 0?(Q_.test($[2])&&(s=RegExp("</"+$[2],"g")),d=li):$[3]!==void 0&&(d=li):d===li?$[0]===">"?(d=s??bc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?li:$[3]==='"'?Y_:W_):d===Y_||d===W_?d=li:d===j_||d===K_?d=bc:(d=li,s=void 0);let S=d===li&&i[m+1].startsWith("/>")?" ":"";l+=d===bc?g+I3:y>=0?(e.push(E),g.slice(0,y)+X_+g.slice(y)+Cs+S):g+Cs+(y===-2?m:S)}return[Z_(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},wc=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=z3(r,t);if(this.el=i.createElement(E,e),di.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=di.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(X_)){let _=$[d++],S=s.getAttribute(y).split(Cs),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?wb:O[1]==="?"?kb:O[1]==="@"?Eb:Dn}),s.removeAttribute(y)}else y.startsWith(Cs)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(Q_.test(s.tagName)){let y=s.textContent.split(Cs),_=y.length-1;if(_>0){s.textContent=Ah?Ah.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],xc()),di.nextNode(),g.push({type:2,index:++l});s.append(y[_],xc())}}}else if(s.nodeType===8)if(s.data===J_)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(Cs,y+1))!==-1;)g.push({type:7,index:l}),y+=Cs.length-1}l++}}static createElement(r,t){let e=ci.createElement("template");return e.innerHTML=r,e}};function Nn(i,r,t=i,e){if(r===pi)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=yc(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=Nn(i,s._$AS(i,r.values),s,e)),r}var yb=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??ci).importNode(t,!0);di.currentNode=s;let l=di.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new kc(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Cb(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=di.nextNode(),d++)}return di.currentNode=ci,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},kc=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Nn(this,r,t),yc(r)?r===ve||r==null||r===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):r!==this._$AH&&r!==pi&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):L3(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==ve&&yc(this._$AH)?this._$AA.nextSibling.data=r:this.T(ci.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=wc.createElement(Z_(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new yb(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=G_.get(r.strings);return t===void 0&&G_.set(r.strings,t=new wc(r)),t}k(r){Tb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(xc()),this.O(xc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=U_(r).nextSibling;U_(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ve}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=Nn(this,r,t,0),d=!yc(r)||r!==this._$AH&&r!==pi,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=Nn(this,m[e+g],t,g),E===pi&&(E=this._$AH[g]),d||=!yc(E)||E!==this._$AH[g],E===ve?r=ve:r!==ve&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},wb=class extends Dn{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===ve?void 0:r}},kb=class extends Dn{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==ve)}},Eb=class extends Dn{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=Nn(this,r,t,0)??ve)===pi)return;let e=this._$AH,s=r===ve&&e!==ve||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==ve&&(e===ve||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Cb=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){Nn(this,r)}};var O3=$b.litHtmlPolyfillSupport;O3?.(wc,kc),($b.litHtmlVersions??=[]).push("3.3.2");var tR=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new kc(r.insertBefore(xc(),l),l,void 0,t??{})}return s._$AI(i),s};var Ab=globalThis,Hn=class extends Qr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=tR(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pi}};Hn._$litElement$=!0,Hn.finalized=!0,Ab.litElementHydrateSupport?.({LitElement:Hn});var M3=Ab.litElementPolyfillSupport;M3?.({LitElement:Hn});(Ab.litElementVersions??=[]).push("4.2.2");var _h=globalThis,Rh=_h.ShadowRoot&&(_h.ShadyCSS===void 0||_h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_b=Symbol(),eR=new WeakMap,Ec=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==_b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(Rh&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=eR.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&eR.set(t,r))}return r}toString(){return this.cssText}},oR=i=>new Ec(typeof i=="string"?i:i+"",void 0,_b),b=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new Ec(t,i,_b)},Ih=(i,r)=>{if(Rh)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=_h.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},Rb=Rh?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return oR(t)})(i):i;var{is:N3,defineProperty:D3,getOwnPropertyDescriptor:H3,getOwnPropertyNames:B3,getOwnPropertySymbols:F3,getPrototypeOf:V3}=Object,Lh=globalThis,rR=Lh.trustedTypes,P3=rR?rR.emptyScript:"",U3=Lh.reactiveElementPolyfillSupport,Cc=(i,r)=>i,$c={toAttribute(i,r){switch(r){case Boolean:i=i?P3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},zh=(i,r)=>!N3(i,r),sR={attribute:!0,type:String,converter:$c,reflect:!1,useDefault:!1,hasChanged:zh};Symbol.metadata??=Symbol("metadata"),Lh.litPropertyMetadata??=new WeakMap;var ts=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=sR){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&D3(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=H3(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??sR}static _$Ei(){if(this.hasOwnProperty(Cc("elementProperties")))return;let r=V3(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Cc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cc("properties"))){let t=this.properties,e=[...B3(t),...F3(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(Rb(s))}else r!==void 0&&t.push(Rb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ih(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$c).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$c;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??zh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};ts.elementStyles=[],ts.shadowRootOptions={mode:"open"},ts[Cc("elementProperties")]=new Map,ts[Cc("finalized")]=new Map,U3?.({ReactiveElement:ts}),(Lh.reactiveElementVersions??=[]).push("2.1.2");var Lb=globalThis,iR=i=>i,Oh=Lb.trustedTypes,nR=Oh?Oh.createPolicy("lit-html",{createHTML:i=>i}):void 0,zb="$lit$",es=`lit$${Math.random().toFixed(9).slice(2)}$`,Ob="?"+es,q3=`<${Ob}>`,mi=document,Sc=()=>mi.createComment(""),Ac=i=>i===null||typeof i!="object"&&typeof i!="function",Mb=Array.isArray,hR=i=>Mb(i)||typeof i?.[Symbol.iterator]=="function",Ib=`[
|
|
4
|
+
\f\r]`,Tc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aR=/-->/g,lR=/>/g,hi=RegExp(`>|${Ib}(?:([^\\s"'>=/]+)(${Ib}*=${Ib}*(?:[^
|
|
5
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),dR=/'/g,cR=/"/g,uR=/^(?:script|style|textarea|title)$/i,Nb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),f=Nb(1),Fh=Nb(2),W6=Nb(3),Ee=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pR=new WeakMap,ui=mi.createTreeWalker(mi,129);function mR(i,r){if(!Mb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return nR!==void 0?nR.createHTML(r):r}var fR=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=Tc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===Tc?$[1]==="!--"?d=aR:$[1]!==void 0?d=lR:$[2]!==void 0?(uR.test($[2])&&(s=RegExp("</"+$[2],"g")),d=hi):$[3]!==void 0&&(d=hi):d===hi?$[0]===">"?(d=s??Tc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?hi:$[3]==='"'?cR:dR):d===cR||d===dR?d=hi:d===aR||d===lR?d=Tc:(d=hi,s=void 0);let S=d===hi&&i[m+1].startsWith("/>")?" ":"";l+=d===Tc?g+q3:y>=0?(e.push(E),g.slice(0,y)+zb+g.slice(y)+es+S):g+es+(y===-2?m:S)}return[mR(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},_c=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=fR(r,t);if(this.el=i.createElement(E,e),ui.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=ui.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(zb)){let _=$[d++],S=s.getAttribute(y).split(es),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?Nh:O[1]==="?"?Dh:O[1]==="@"?Hh:gi}),s.removeAttribute(y)}else y.startsWith(es)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(uR.test(s.tagName)){let y=s.textContent.split(es),_=y.length-1;if(_>0){s.textContent=Oh?Oh.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],Sc()),ui.nextNode(),g.push({type:2,index:++l});s.append(y[_],Sc())}}}else if(s.nodeType===8)if(s.data===Ob)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(es,y+1))!==-1;)g.push({type:7,index:l}),y+=es.length-1}l++}}static createElement(r,t){let e=mi.createElement("template");return e.innerHTML=r,e}};function fi(i,r,t=i,e){if(r===Ee)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=Ac(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=fi(i,s._$AS(i,r.values),s,e)),r}var Mh=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??mi).importNode(t,!0);ui.currentNode=s;let l=ui.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new Bn(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Bh(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=ui.nextNode(),d++)}return ui.currentNode=mi,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},Bn=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=fi(this,r,t),Ac(r)?r===L||r==null||r===""?(this._$AH!==L&&this._$AR(),this._$AH=L):r!==this._$AH&&r!==Ee&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):hR(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==L&&Ac(this._$AH)?this._$AA.nextSibling.data=r:this.T(mi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=_c.createElement(mR(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new Mh(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=pR.get(r.strings);return t===void 0&&pR.set(r.strings,t=new _c(r)),t}k(r){Mb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(Sc()),this.O(Sc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=iR(r).nextSibling;iR(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=L,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=fi(this,r,t,0),d=!Ac(r)||r!==this._$AH&&r!==Ee,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=fi(this,m[e+g],t,g),E===Ee&&(E=this._$AH[g]),d||=!Ac(E)||E!==this._$AH[g],E===L?r=L:r!==L&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Nh=class extends gi{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===L?void 0:r}},Dh=class extends gi{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==L)}},Hh=class extends gi{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=fi(this,r,t,0)??L)===Ee)return;let e=this._$AH,s=r===L&&e!==L||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==L&&(e===L||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Bh=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){fi(this,r)}},gR={M:zb,P:es,A:Ob,C:1,L:fR,R:Mh,D:hR,V:fi,I:Bn,H:gi,N:Dh,U:Hh,B:Nh,F:Bh},j3=Lb.litHtmlPolyfillSupport;j3?.(_c,Bn),(Lb.litHtmlVersions??=[]).push("3.3.2");var Vh=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new Bn(r.insertBefore(Sc(),l),l,void 0,t??{})}return s._$AI(i),s};var Db=globalThis,x=class extends ts{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Vh(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};x._$litElement$=!0,x.finalized=!0,Db.litElementHydrateSupport?.({LitElement:x});var K3=Db.litElementPolyfillSupport;K3?.({LitElement:x});(Db.litElementVersions??=[]).push("4.2.2");var W3={attribute:!0,type:String,converter:$c,reflect:!1,hasChanged:zh},Y3=(i=W3,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(i){return(r,t)=>typeof t=="object"?Y3(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}function C(i){return u({...i,state:!0,attribute:!1})}var vi=(i,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,t),t);function vR(i,r){return(t,e,s)=>{let l=d=>d.renderRoot?.querySelector(i)??null;if(r){let{get:d,set:m}=typeof e=="object"?t:s??(()=>{let g=Symbol();return{get(){return this[g]},set(E){this[g]=E}}})();return vi(t,e,{get(){let g=d.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&m.call(this,g)),g}})}return vi(t,e,{get(){return l(this)}})}}var $s=class extends Event{constructor(r,t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t,this.callback=e,this.subscribe=s??!1}};var q=class{constructor(r,t,e,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,d)),this.unsubscribe=d},this.host=r,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new $s(this.context,this.host,this.t,this.subscribe))}};var Ph=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,t=!1){let e=t||!Object.is(r,this.o);this.o=r,e&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},r!==void 0&&(this.value=r)}addCallback(r,t,e){if(!e)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:t});let{disposer:s}=this.subscriptions.get(r);r(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Hb=class extends Event{constructor(r,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t}},Fn=class extends Ph{constructor(r,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=s=>{if(s.context!==this.context)return;let l=s.contextTarget??s.composedPath()[0];l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let l=new Set;for(let[d,{consumerHost:m}]of this.subscriptions)l.has(d)||(l.add(d),m.dispatchEvent(new $s(this.context,m,d,!0)));s.stopPropagation()},this.host=r,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Hb(this.context,this.host))}};function lt({context:i}){return(r,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return r.get.call(this)},set(s){return e.get(this).setValue(s),r.set.call(this,s)},init(s){return e.set(this,new Fn(this,{context:i,initialValue:s})),s}};{r.constructor.addInitializer(d=>{e.set(d,new Fn(d,{context:i}))});let s=Object.getOwnPropertyDescriptor(r,t),l;if(s===void 0){let d=new WeakMap;l={get(){return d.get(this)},set(m){e.get(this).setValue(m),d.set(this,m)},configurable:!0,enumerable:!0}}else{let d=s.set;l={...s,set(m){e.get(this).setValue(m),d?.call(this,m)}}}return void Object.defineProperty(r,t,l)}}}function Nt({context:i,subscribe:r}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new q(this,{context:i,callback:s=>{t.set.call(this,s)},subscribe:r})}):t.constructor.addInitializer(s=>{new q(s,{context:i,callback:l=>{s[e]=l},subscribe:r})})}}var w=b`
|
|
6
6
|
* {
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
}
|
|
@@ -92,7 +92,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
|
|
|
92
92
|
scroll-behavior: auto !important;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
`;var M=(i,r={})=>t=>new CustomEvent(i,{...r,detail:t});var Uh=Symbol("dui-accordion");var
|
|
95
|
+
`;var M=(i,r={})=>t=>new CustomEvent(i,{...r,detail:t});var Uh=Symbol("dui-accordion");var Xb=M("value-change",{bubbles:!0,composed:!0}),G3=b`
|
|
96
96
|
:host {
|
|
97
97
|
display: block;
|
|
98
98
|
}
|
|
@@ -101,7 +101,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
|
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
}
|
|
104
|
-
`,bR,xR,yR,wR,kR,ER,CR,$R,TR,SR,_t,
|
|
104
|
+
`,bR,xR,yR,wR,kR,ER,CR,$R,TR,SR,_t,Bb,Fb,Vb,Pb,Ub,qb,jb,Kb,Wb,AR,Gb,Po,Vn,sr,Rc,jh,Kh,Wh,Yh,Yb,qh,xe=class extends(SR=x,TR=[u({type:Array})],$R=[u({type:Array,attribute:"default-value"})],CR=[u({type:Boolean})],ER=[u({type:Boolean})],kR=[u({type:Boolean,attribute:"loop-focus"})],wR=[u({type:String})],yR=[u({type:Boolean,attribute:"keep-mounted"})],xR=[C()],bR=[lt({context:Uh}),C()],SR){constructor(){super(...arguments);a(this,Po);a(this,Bb,n(_t,8,this)),n(_t,11,this);a(this,Fb,n(_t,12,this,[])),n(_t,15,this);a(this,Vb,n(_t,16,this,!1)),n(_t,19,this);a(this,Pb,n(_t,20,this,!1)),n(_t,23,this);a(this,Ub,n(_t,24,this,!0)),n(_t,27,this);a(this,qb,n(_t,28,this,"vertical")),n(_t,31,this);a(this,jb,n(_t,32,this,!1)),n(_t,35,this);a(this,Kb,n(_t,36,this,[])),n(_t,39,this);a(this,Vn,new Map);a(this,sr,[]);a(this,Rc,()=>this.value??o(this,Po,AR));a(this,jh,t=>{let e=[...o(this,Rc).call(this)],s=e.indexOf(t),l;s>=0?l=e.filter(d=>d!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&h(this,Po,l,Gb),this.dispatchEvent(Xb(l))});a(this,Kh,(t,e)=>{o(this,Vn).set(t,e),o(this,sr).includes(t)||o(this,sr).push(t)});a(this,Wh,t=>{o(this,Vn).delete(t),h(this,sr,o(this,sr).filter(e=>e!==t))});a(this,Yh,(t,e)=>{let s=o(this,sr).indexOf(t);if(s===-1)return;let l=o(this,sr).length,d;switch(e){case"next":s<l-1?d=s+1:this.loopFocus&&(d=0);break;case"prev":s>0?d=s-1:this.loopFocus&&(d=l-1);break;case"first":d=0;break;case"last":d=l-1;break}if(d!==void 0){let m=o(this,sr)[d];o(this,Vn).get(m)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});a(this,Yb,n(_t,40,this,p(this,Po,qh).call(this))),n(_t,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Po,[...this.defaultValue],Gb),this._ctx=p(this,Po,qh).call(this)}willUpdate(){this._ctx=p(this,Po,qh).call(this)}render(){return f`
|
|
105
105
|
<div
|
|
106
106
|
part="root"
|
|
107
107
|
data-orientation=${this.orientation}
|
|
@@ -109,7 +109,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
|
|
|
109
109
|
>
|
|
110
110
|
<slot></slot>
|
|
111
111
|
</div>
|
|
112
|
-
`}};_t=A(SR),
|
|
112
|
+
`}};_t=A(SR),Bb=new WeakMap,Fb=new WeakMap,Vb=new WeakMap,Pb=new WeakMap,Ub=new WeakMap,qb=new WeakMap,jb=new WeakMap,Kb=new WeakMap,Po=new WeakSet,Vn=new WeakMap,sr=new WeakMap,Rc=new WeakMap,jh=new WeakMap,Kh=new WeakMap,Wh=new WeakMap,Yh=new WeakMap,Yb=new WeakMap,qh=function(){return{openValues:o(this,Rc).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:o(this,jh),registerItem:o(this,Kh),unregisterItem:o(this,Wh),focusItem:o(this,Yh)}},c(_t,4,"value",TR,xe,Bb),c(_t,4,"defaultValue",$R,xe,Fb),c(_t,4,"disabled",CR,xe,Vb),c(_t,4,"multiple",ER,xe,Pb),c(_t,4,"loopFocus",kR,xe,Ub),c(_t,4,"orientation",wR,xe,qb),c(_t,4,"keepMounted",yR,xe,jb),Wb=c(_t,20,"#internalOpenValues",xR,Po,Kb),AR=Wb.get,Gb=Wb.set,c(_t,4,"_ctx",bR,xe,Yb),T(_t,xe),v(xe,"tagName","dui-accordion"),v(xe,"styles",[w,G3]);var hx=M("open-change",{bubbles:!0,composed:!0}),X3=b`
|
|
113
113
|
:host {
|
|
114
114
|
display: block;
|
|
115
115
|
}
|
|
@@ -137,7 +137,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
|
|
|
137
137
|
contain: content;
|
|
138
138
|
transition-property: height;
|
|
139
139
|
}
|
|
140
|
-
`,_R,RR,IR,LR,zR,OR,MR,NR,qt,
|
|
140
|
+
`,_R,RR,IR,LR,zR,OR,MR,NR,qt,Jb,Qb,Zb,tx,ex,lx,Gh,P,ox,rx,Xh,Jh,sx,ix,DR,bi,nx,ax,dx,Qh,Pn,yi,xi,Ic,cx,px,HR,BR,Zh,tu,eu,wo=class extends(NR=x,MR=[u({type:String})],OR=[u({type:Boolean})],zR=[Nt({context:Uh,subscribe:!0})],LR=[C()],IR=[C()],RR=[C()],_R=[C()],NR){constructor(){super(...arguments);a(this,P);a(this,Jb,n(qt,8,this,"")),n(qt,11,this);a(this,Qb,n(qt,12,this,!1)),n(qt,15,this);a(this,Zb,n(qt,16,this)),n(qt,19,this);a(this,tx,n(qt,20,this,!1)),n(qt,23,this);a(this,ox,n(qt,24,this,!1)),n(qt,27,this);a(this,sx,n(qt,28,this,"0")),n(qt,31,this);a(this,nx,n(qt,32,this,!1)),n(qt,35,this);a(this,Pn);a(this,yi,0);a(this,Zh,t=>{t.propertyName==="height"&&(o(this,P,Xh)?(h(this,P,!1,Jh),this._ctx?.keepMounted||h(this,P,!1,Qh)):o(this,P,xi)&&h(this,P,"auto",bi))});a(this,tu,()=>{o(this,P,Ic)||this._ctx.toggle(this.value)});a(this,eu,t=>{if(o(this,P,Ic))return;let e=this._ctx.orientation==="vertical",s=e?"ArrowDown":"ArrowRight",l=e?"ArrowUp":"ArrowLeft";switch(t.key){case s:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case l:t.preventDefault(),this._ctx.focusItem(this.value,"prev");break;case"Home":t.preventDefault(),this._ctx.focusItem(this.value,"first");break;case"End":t.preventDefault(),this._ctx.focusItem(this.value,"last");break}})}connectedCallback(){super.connectedCallback(),this._ctx?.registerItem(this.value,this)}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(this.value)}willUpdate(){let t=o(this,P,xi);o(this,Pn)===void 0?(h(this,P,t,Qh),h(this,P,t?"auto":"0",bi)):o(this,Pn)!==t&&(t?p(this,P,HR).call(this):p(this,P,BR).call(this),this.dispatchEvent(hx({value:this.value,open:t}))),h(this,Pn,t)}render(){let t=o(this,P,dx)||this._ctx?.keepMounted;return f`
|
|
141
141
|
<div
|
|
142
142
|
part="item"
|
|
143
143
|
?data-open=${o(this,P,xi)}
|
|
@@ -146,9 +146,9 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
|
|
|
146
146
|
<h3 part="header">
|
|
147
147
|
<button
|
|
148
148
|
part="trigger"
|
|
149
|
-
id=${o(this,P,
|
|
149
|
+
id=${o(this,P,cx)}
|
|
150
150
|
aria-expanded=${o(this,P,xi)}
|
|
151
|
-
aria-controls=${o(this,P,
|
|
151
|
+
aria-controls=${o(this,P,px)}
|
|
152
152
|
?data-open=${o(this,P,xi)}
|
|
153
153
|
?data-disabled=${o(this,P,Ic)}
|
|
154
154
|
@click=${o(this,tu)}
|
|
@@ -160,14 +160,14 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
|
|
|
160
160
|
${t?f`
|
|
161
161
|
<div
|
|
162
162
|
part="panel"
|
|
163
|
-
id=${o(this,P,
|
|
163
|
+
id=${o(this,P,px)}
|
|
164
164
|
role="region"
|
|
165
|
-
aria-labelledby=${o(this,P,
|
|
165
|
+
aria-labelledby=${o(this,P,cx)}
|
|
166
166
|
style="height: ${o(this,P,DR)}"
|
|
167
|
-
?data-open=${o(this,P,xi)&&!o(this,P,
|
|
168
|
-
?data-starting-style=${o(this,P,
|
|
167
|
+
?data-open=${o(this,P,xi)&&!o(this,P,lx)}
|
|
168
|
+
?data-starting-style=${o(this,P,lx)}
|
|
169
169
|
?data-ending-style=${o(this,P,Xh)}
|
|
170
|
-
?hidden=${!o(this,P,
|
|
170
|
+
?hidden=${!o(this,P,dx)&&!o(this,P,Xh)}
|
|
171
171
|
@transitionend=${o(this,Zh)}
|
|
172
172
|
>
|
|
173
173
|
<div part="content">
|
|
@@ -176,7 +176,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
|
|
|
176
176
|
</div>
|
|
177
177
|
`:L}
|
|
178
178
|
</div>
|
|
179
|
-
`}};qt=A(NR),
|
|
179
|
+
`}};qt=A(NR),Jb=new WeakMap,Qb=new WeakMap,Zb=new WeakMap,tx=new WeakMap,P=new WeakSet,ox=new WeakMap,sx=new WeakMap,nx=new WeakMap,Pn=new WeakMap,yi=new WeakMap,xi=function(){return this._ctx?.openValues.includes(this.value)??!1},Ic=function(){return this.disabled||this._ctx?.disabled},cx=function(){return`dui-trigger-${this.value}`},px=function(){return`dui-panel-${this.value}`},HR=function(){let t=++Es(this,yi)._;h(this,P,!1,Jh),h(this,P,!0,Qh),h(this,P,!0,Gh),h(this,P,"0",bi),requestAnimationFrame(()=>{if(o(this,yi)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),h(this,P,!1,Gh)})},BR=function(){let t=++Es(this,yi)._;h(this,P,!1,Gh);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),requestAnimationFrame(()=>{o(this,yi)===t&&(h(this,P,!0,Jh),h(this,P,"0",bi))})},Zh=new WeakMap,tu=new WeakMap,eu=new WeakMap,c(qt,4,"value",MR,wo,Jb),c(qt,4,"disabled",OR,wo,Qb),c(qt,4,"_ctx",zR,wo,Zb),ex=c(qt,20,"#starting",LR,P,tx),lx=ex.get,Gh=ex.set,rx=c(qt,20,"#ending",IR,P,ox),Xh=rx.get,Jh=rx.set,ix=c(qt,20,"#panelHeight",RR,P,sx),DR=ix.get,bi=ix.set,ax=c(qt,20,"#visible",_R,P,nx),dx=ax.get,Qh=ax.set,T(qt,wo),v(wo,"tagName","dui-accordion-item"),v(wo,"styles",[w,X3]);var FR=`/* =================================================================
|
|
180
180
|
* DUI Design Tokens
|
|
181
181
|
* =================================================================
|
|
182
182
|
* Combined token system: spacing, typography, borders, elevation,
|
|
@@ -965,7 +965,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
965
965
|
inherits: true;
|
|
966
966
|
initial-value: 0.5rem;
|
|
967
967
|
}
|
|
968
|
-
`;var
|
|
968
|
+
`;var ux=new CSSStyleSheet;ux.replaceSync(VR+`
|
|
969
969
|
`+FR);var PR=`/* =================================================================
|
|
970
970
|
* DUI Prose \u2014 Rich-text / markdown content styles
|
|
971
971
|
* =================================================================
|
|
@@ -1216,11 +1216,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1216
1216
|
cursor: pointer;
|
|
1217
1217
|
font-weight: var(--font-weight-medium);
|
|
1218
1218
|
}
|
|
1219
|
-
`;var
|
|
1219
|
+
`;var mx=new CSSStyleSheet;mx.replaceSync(PR);for(let i of[ux,mx])i&&!document.adoptedStyleSheets.includes(i)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,i]);var J3=k`
|
|
1220
1220
|
::slotted(:last-child) {
|
|
1221
1221
|
--accordion-item-border: none;
|
|
1222
1222
|
}
|
|
1223
|
-
`,Un=class extends xe{static styles=[...xe.styles,
|
|
1223
|
+
`,Un=class extends xe{static styles=[...xe.styles,J3]};customElements.define(Un.tagName,Un);var UR=Jr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`),Q3=k`
|
|
1224
1224
|
/* ── Item ── */
|
|
1225
1225
|
|
|
1226
1226
|
[part="item"] {
|
|
@@ -1314,11 +1314,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1314
1314
|
transition-duration: 0s;
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
|
-
`,qn=class extends wo{static styles=[...wo.styles,
|
|
1317
|
+
`,qn=class extends wo{static styles=[...wo.styles,Q3]};customElements.define(qn.tagName,qn);var Ts=Symbol("dui-alert-dialog");var su=M("open-change",{bubbles:!0,composed:!0}),Z3=b`
|
|
1318
1318
|
:host {
|
|
1319
1319
|
display: contents;
|
|
1320
1320
|
}
|
|
1321
|
-
`,qR,jR,KR,WR,YR,so,
|
|
1321
|
+
`,qR,jR,KR,WR,YR,so,fx,gx,vx,bx,GR,ou,Ve,wi,iu,nu,au,lu,XR,du,cu,xx,ru,ko=class extends(YR=x,WR=[u({type:Boolean,reflect:!0})],KR=[u({type:Boolean,attribute:"default-open"})],jR=[C()],qR=[lt({context:Ts}),C()],YR){constructor(){super(...arguments);a(this,Ve);a(this,fx,n(so,8,this)),n(so,11,this);a(this,gx,n(so,12,this,!1)),n(so,15,this);a(this,vx,n(so,16,this,!1)),n(so,19,this);a(this,wi,crypto.randomUUID().slice(0,8));a(this,iu,`dui-alert-dialog-${o(this,wi)}`);a(this,nu,`dui-alert-trigger-${o(this,wi)}`);a(this,au,`dui-alert-title-${o(this,wi)}`);a(this,lu,`dui-alert-desc-${o(this,wi)}`);a(this,du,()=>{this.open===void 0&&h(this,Ve,!0,ou),this.dispatchEvent(su({open:!0}))});a(this,cu,()=>{this.open===void 0&&h(this,Ve,!1,ou),this.dispatchEvent(su({open:!1}))});a(this,xx,n(so,20,this,p(this,Ve,ru).call(this))),n(so,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ve,!0,ou),this._ctx=p(this,Ve,ru).call(this)}willUpdate(){this._ctx=p(this,Ve,ru).call(this)}render(){return f`<slot></slot>`}};so=A(YR),fx=new WeakMap,gx=new WeakMap,vx=new WeakMap,Ve=new WeakSet,wi=new WeakMap,iu=new WeakMap,nu=new WeakMap,au=new WeakMap,lu=new WeakMap,XR=function(){return this.open??o(this,Ve,GR)},du=new WeakMap,cu=new WeakMap,xx=new WeakMap,ru=function(){return{open:o(this,Ve,XR),dialogId:o(this,iu),triggerId:o(this,nu),titleId:o(this,au),descriptionId:o(this,lu),openDialog:o(this,du),closeDialog:o(this,cu)}},c(so,4,"open",WR,ko,fx),c(so,4,"defaultOpen",KR,ko,gx),bx=c(so,20,"#internalOpen",jR,Ve,vx),GR=bx.get,ou=bx.set,c(so,4,"_ctx",qR,ko,xx),T(so,ko),v(ko,"tagName","dui-alert-dialog"),v(ko,"styles",[w,Z3]);var t4=b`
|
|
1322
1322
|
:host {
|
|
1323
1323
|
display: contents;
|
|
1324
1324
|
}
|
|
@@ -1368,12 +1368,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
1368
1368
|
z-index: 1000;
|
|
1369
1369
|
transition-property: opacity, transform;
|
|
1370
1370
|
}
|
|
1371
|
-
`,QR,ZR,tI,eI,oI,rI,sI,ie,
|
|
1371
|
+
`,QR,ZR,tI,eI,oI,rI,sI,ie,yx,wx,kx,Ex,Cx,Kn,_x,et,$x,Tx,Rx,Ix,Sx,Ax,os,Lx,Wn,Ss,iI,nI,zx,aI,lI,uu,dI,Eo=class extends(sI=x,rI=[u({type:Boolean,attribute:"keep-mounted"})],oI=[u({attribute:"initial-focus"})],eI=[u({attribute:"final-focus"})],tI=[C()],ZR=[C()],QR=[C()],sI){constructor(){super(...arguments);a(this,et);a(this,yx,n(ie,8,this,!1)),n(ie,11,this);a(this,wx,n(ie,12,this)),n(ie,15,this);a(this,kx,n(ie,16,this)),n(ie,19,this);a(this,Ex,n(ie,20,this,!1)),n(ie,23,this);a(this,$x,n(ie,24,this,!1)),n(ie,27,this);a(this,Sx,n(ie,28,this,!1)),n(ie,31,this);a(this,Wn);a(this,Ss,new q(this,{context:Ts,subscribe:!0}));a(this,uu,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,Ss).value?.closeDialog()),t.key==="Tab"&&p(this,et,dI).call(this,t)})}updated(){let t=o(this,Ss).value?.open??!1;t&&!o(this,et,Kn)?p(this,et,iI).call(this):!t&&o(this,et,Kn)&&!o(this,et,os)&&p(this,et,nI).call(this)}willUpdate(){o(this,et,Kn)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,Ss).value?.open??!1,e=o(this,Ss).value?.titleId??"",s=o(this,Ss).value?.descriptionId??"";return!o(this,et,Kn)&&!this.keepMounted?f``:f`
|
|
1372
1372
|
<div
|
|
1373
1373
|
part="backdrop"
|
|
1374
1374
|
?data-open="${t&&!o(this,et,os)}"
|
|
1375
1375
|
?data-closed="${!t||o(this,et,os)}"
|
|
1376
|
-
?data-starting-style="${o(this,et,
|
|
1376
|
+
?data-starting-style="${o(this,et,Rx)}"
|
|
1377
1377
|
?data-ending-style="${o(this,et,os)}"
|
|
1378
1378
|
></div>
|
|
1379
1379
|
<div
|
|
@@ -1384,7 +1384,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1384
1384
|
aria-describedby="${s}"
|
|
1385
1385
|
?data-open="${t&&!o(this,et,os)}"
|
|
1386
1386
|
?data-closed="${!t||o(this,et,os)}"
|
|
1387
|
-
?data-starting-style="${o(this,et,
|
|
1387
|
+
?data-starting-style="${o(this,et,Rx)}"
|
|
1388
1388
|
?data-ending-style="${o(this,et,os)}"
|
|
1389
1389
|
tabindex="-1"
|
|
1390
1390
|
@keydown="${o(this,uu)}"
|
|
@@ -1393,7 +1393,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1393
1393
|
<p part="description" id="${s}"><slot name="description"></slot></p>
|
|
1394
1394
|
<slot></slot>
|
|
1395
1395
|
</div>
|
|
1396
|
-
`}};ie=A(sI),
|
|
1396
|
+
`}};ie=A(sI),yx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Ex=new WeakMap,et=new WeakSet,$x=new WeakMap,Sx=new WeakMap,Wn=new WeakMap,Ss=new WeakMap,iI=async function(){h(this,Wn,document.activeElement??void 0),h(this,et,!0,_x),h(this,et,!0,Ix),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,et,!1,Ix),await this.updateComplete,p(this,et,aI).call(this)},nI=function(){h(this,et,!0,Lx);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,et,zx).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,et,zx).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},zx=function(){!o(this,et,os)&&!o(this,et,Kn)||(h(this,et,!1,Lx),this.keepMounted||h(this,et,!1,_x),p(this,et,lI).call(this))},aI=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},lI=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Wn)?.focus(),h(this,Wn,void 0)},uu=new WeakMap,dI=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},c(ie,4,"keepMounted",rI,Eo,yx),c(ie,4,"initialFocus",oI,Eo,wx),c(ie,4,"finalFocus",eI,Eo,kx),Cx=c(ie,20,"#mounted",tI,et,Ex),Kn=Cx.get,_x=Cx.set,Tx=c(ie,20,"#startingStyle",ZR,et,$x),Rx=Tx.get,Ix=Tx.set,Ax=c(ie,20,"#endingStyle",QR,et,Sx),os=Ax.get,Lx=Ax.set,T(ie,Eo),v(Eo,"tagName","dui-alert-dialog-popup"),v(Eo,"styles",[w,s4,i4]);var n4=b`
|
|
1397
1397
|
:host {
|
|
1398
1398
|
display: contents;
|
|
1399
1399
|
}
|
|
@@ -1468,7 +1468,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1468
1468
|
transition-duration: 0s;
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
|
-
`,Xn=class extends Eo{static styles=[...Eo.styles,l4]};customElements.define(Xn.tagName,Xn);var Jn=class extends Lc{};customElements.define(Jn.tagName,Jn);var
|
|
1471
|
+
`,Xn=class extends Eo{static styles=[...Eo.styles,l4]};customElements.define(Xn.tagName,Xn);var Jn=class extends Lc{};customElements.define(Jn.tagName,Jn);var Kx=M("loading-status-change",{bubbles:!0,composed:!0}),d4=b`
|
|
1472
1472
|
:host {
|
|
1473
1473
|
--avatar-size: var(--space-12);
|
|
1474
1474
|
display: inline-block;
|
|
@@ -1498,7 +1498,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1498
1498
|
height: 100%;
|
|
1499
1499
|
width: 100%;
|
|
1500
1500
|
}
|
|
1501
|
-
`,cI,pI,hI,uI,mI,fI,gI,ne,
|
|
1501
|
+
`,cI,pI,hI,uI,mI,fI,gI,ne,Ox,Mx,Nx,Dx,Hx,Bx,vI,bI,Tt,Fx,Vx,xI,mu,As,ki,Oc,Px,Ux,qx,jx,io=class extends(gI=x,fI=[u()],mI=[u()],uI=[u({type:Number,attribute:"fallback-delay"})],hI=[u({reflect:!0})],pI=[C()],cI=[C()],gI){constructor(){super(...arguments);a(this,Tt);a(this,Ox,n(ne,8,this)),n(ne,11,this);a(this,Mx,n(ne,12,this,"")),n(ne,15,this);a(this,Nx,n(ne,16,this)),n(ne,19,this);a(this,Dx,n(ne,20,this)),n(ne,23,this);a(this,Hx,n(ne,24,this,"idle")),n(ne,27,this);a(this,Fx,n(ne,28,this,!1)),n(ne,31,this);a(this,As);a(this,ki)}connectedCallback(){super.connectedCallback(),p(this,Tt,qx).call(this),p(this,Tt,Px).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Tt,Ux).call(this),p(this,Tt,jx).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&p(this,Tt,Px).call(this),t.has("fallbackDelay")&&p(this,Tt,qx).call(this)}render(){let t=this.src&&o(this,Tt,vI)==="loaded",e=!t&&o(this,Tt,xI);return f`
|
|
1502
1502
|
<span part="root">
|
|
1503
1503
|
${t?f`
|
|
1504
1504
|
<img
|
|
@@ -1510,7 +1510,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1510
1510
|
<span part="fallback"><slot></slot></span>
|
|
1511
1511
|
`:L}
|
|
1512
1512
|
</span>
|
|
1513
|
-
`}};ne=A(gI),
|
|
1513
|
+
`}};ne=A(gI),Ox=new WeakMap,Mx=new WeakMap,Nx=new WeakMap,Dx=new WeakMap,Hx=new WeakMap,Tt=new WeakSet,Fx=new WeakMap,As=new WeakMap,ki=new WeakMap,Oc=function(t){h(this,Tt,t,bI),this.dispatchEvent(Kx({status:t}))},Px=function(){if(p(this,Tt,Ux).call(this),!this.src){p(this,Tt,Oc).call(this,"error");return}p(this,Tt,Oc).call(this,"loading");let t=new Image;t.onload=()=>p(this,Tt,Oc).call(this,"loaded"),t.onerror=()=>p(this,Tt,Oc).call(this,"error"),t.src=this.src,h(this,As,t)},Ux=function(){o(this,As)&&(o(this,As).onload=null,o(this,As).onerror=null,h(this,As,void 0))},qx=function(){if(p(this,Tt,jx).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){h(this,Tt,!0,mu);return}h(this,Tt,!1,mu),h(this,ki,setTimeout(()=>{h(this,Tt,!0,mu)},this.fallbackDelay))},jx=function(){o(this,ki)!==void 0&&(clearTimeout(o(this,ki)),h(this,ki,void 0))},c(ne,4,"src",fI,io,Ox),c(ne,4,"alt",mI,io,Mx),c(ne,4,"fallbackDelay",uI,io,Nx),c(ne,4,"size",hI,io,Dx),Bx=c(ne,20,"#imageStatus",pI,Tt,Hx),vI=Bx.get,bI=Bx.set,Vx=c(ne,20,"#delayPassed",cI,Tt,Fx),xI=Vx.get,mu=Vx.set,T(ne,io),v(io,"tagName","dui-avatar"),v(io,"styles",[w,d4]);var c4=k`
|
|
1514
1514
|
:host {
|
|
1515
1515
|
--avatar-bg: oklch(from var(--foreground) l c h / 0.08);
|
|
1516
1516
|
--avatar-fg: var(--text-2);
|
|
@@ -1770,7 +1770,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1770
1770
|
--icon-size: var(--space-3_5);
|
|
1771
1771
|
color: color-mix(in oklch, var(--text-2) 50%, transparent);
|
|
1772
1772
|
}
|
|
1773
|
-
`,ha=class extends ia{static styles=[...ia.styles,C4]};customElements.define(ha.tagName,ha);var
|
|
1773
|
+
`,ha=class extends ia{static styles=[...ia.styles,C4]};customElements.define(ha.tagName,ha);var Jx=M("dui-navigate",{bubbles:!0,composed:!0}),$4=b`
|
|
1774
1774
|
:host {
|
|
1775
1775
|
display: inline-block;
|
|
1776
1776
|
}
|
|
@@ -1795,7 +1795,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1795
1795
|
user-select: none;
|
|
1796
1796
|
-webkit-tap-highlight-color: transparent;
|
|
1797
1797
|
}
|
|
1798
|
-
`,yI,wI,kI,EI,CI,no,
|
|
1798
|
+
`,yI,wI,kI,EI,CI,no,Wx,Yx,Gx,Xx,fu,gu,ua,$I,TI,Pe=class extends(CI=x,EI=[u({type:Boolean,reflect:!0})],kI=[u({type:Boolean,attribute:"focusable-when-disabled"})],wI=[u()],yI=[u()],CI){constructor(){super(...arguments);a(this,ua);a(this,Wx,n(no,8,this,!1)),n(no,11,this);a(this,Yx,n(no,12,this,!1)),n(no,15,this);a(this,Gx,n(no,16,this,"button")),n(no,19,this);a(this,Xx,n(no,20,this)),n(no,23,this);a(this,fu,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});a(this,gu,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(Jx({href:this.href})))})}render(){return this.href!==void 0?p(this,ua,TI).call(this):p(this,ua,$I).call(this)}};no=A(CI),Wx=new WeakMap,Yx=new WeakMap,Gx=new WeakMap,Xx=new WeakMap,fu=new WeakMap,gu=new WeakMap,ua=new WeakSet,$I=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
|
|
1799
1799
|
<button
|
|
1800
1800
|
part="root"
|
|
1801
1801
|
type="${this.type}"
|
|
@@ -1814,7 +1814,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1814
1814
|
>
|
|
1815
1815
|
<slot></slot>
|
|
1816
1816
|
</a>
|
|
1817
|
-
`},c(no,4,"disabled",EI,Pe,
|
|
1817
|
+
`},c(no,4,"disabled",EI,Pe,Wx),c(no,4,"focusableWhenDisabled",kI,Pe,Yx),c(no,4,"type",wI,Pe,Gx),c(no,4,"href",yI,Pe,Xx),T(no,Pe),v(Pe,"tagName","dui-button"),v(Pe,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Pe,"styles",[w,$4]);var T4=k`
|
|
1818
1818
|
/* =================================================================
|
|
1819
1819
|
* Two-axis variant system:
|
|
1820
1820
|
* variant → semantic intent (neutral, primary, danger)
|
|
@@ -2035,7 +2035,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2035
2035
|
:host([data-open][appearance="soft"]) [part="root"]:not(:disabled):not([aria-disabled="true"]) {
|
|
2036
2036
|
background: oklch(from var(--_intent-base) l c h / 0.18);
|
|
2037
2037
|
}
|
|
2038
|
-
`,ma=class extends Pe{static styles=[...Pe.styles,T4]};customElements.define(ma.tagName,ma);var
|
|
2038
|
+
`,ma=class extends Pe{static styles=[...Pe.styles,T4]};customElements.define(ma.tagName,ma);var xy=M("value-change",{bubbles:!0,composed:!0}),S4=b`
|
|
2039
2039
|
:host {
|
|
2040
2040
|
display: inline-block;
|
|
2041
2041
|
}
|
|
@@ -2095,7 +2095,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2095
2095
|
[part="day"]:disabled {
|
|
2096
2096
|
cursor: not-allowed;
|
|
2097
2097
|
}
|
|
2098
|
-
`,SI,AI,_I,RI,II,LI,zI,OI,MI,NI,DI,HI,ct,
|
|
2098
|
+
`,SI,AI,_I,RI,II,LI,zI,OI,MI,NI,DI,HI,ct,Qx,Zx,ty,ey,oy,ry,sy,iy,ny,BI,uy,D,ay,ly,my,vu,dy,cy,bu,xu,py,hy,yu,wu,fy,Uo,ku,Mc,Eu,gy,FI,VI,PI,vy,by,Cu,$u,Tu,Su,$e=class extends(HI=x,DI=[u()],NI=[u({attribute:"default-value"})],MI=[u()],OI=[u()],zI=[u()],LI=[u({type:Boolean,reflect:!0})],II=[u({type:Boolean,reflect:!0,attribute:"read-only"})],RI=[C()],_I=[C()],AI=[C()],SI=[C()],HI){constructor(){super(...arguments);a(this,D);a(this,Qx,n(ct,8,this)),n(ct,11,this);a(this,Zx,n(ct,12,this)),n(ct,15,this);a(this,ty,n(ct,16,this)),n(ct,19,this);a(this,ey,n(ct,20,this)),n(ct,23,this);a(this,oy,n(ct,24,this,"en-US")),n(ct,27,this);a(this,ry,n(ct,28,this,!1)),n(ct,31,this);a(this,sy,n(ct,32,this,!1)),n(ct,35,this);a(this,iy,n(ct,36,this)),n(ct,39,this);a(this,ay,n(ct,40,this,new Date)),n(ct,43,this);a(this,dy,n(ct,44,this,new Date().getMonth())),n(ct,47,this);a(this,py,n(ct,48,this,new Date().getFullYear())),n(ct,51,this);a(this,Cu,t=>{let e=t.currentTarget,s=e.dataset.date;s&&!e.disabled&&p(this,D,vy).call(this,s)});a(this,$u,t=>{let e=new Date(o(this,D,my)),s=!0;switch(t.key){case"ArrowLeft":e.setDate(e.getDate()-1);break;case"ArrowRight":e.setDate(e.getDate()+1);break;case"ArrowUp":e.setDate(e.getDate()-7);break;case"ArrowDown":e.setDate(e.getDate()+7);break;case"PageUp":t.shiftKey?e.setFullYear(e.getFullYear()-1):e.setMonth(e.getMonth()-1);break;case"PageDown":t.shiftKey?e.setFullYear(e.getFullYear()+1):e.setMonth(e.getMonth()+1);break;case"Home":{e.setDate(1);break}case"End":{let l=p(this,D,Eu).call(this,e.getFullYear(),e.getMonth());e.setDate(l);break}case"Enter":case" ":t.preventDefault(),p(this,D,Mc).call(this,e)||p(this,D,vy).call(this,p(this,D,Uo).call(this,e));return;default:s=!1}s&&(t.preventDefault(),h(this,D,e,vu),h(this,D,e.getMonth(),xu),h(this,D,e.getFullYear(),wu),this.updateComplete.then(()=>{let l=p(this,D,Uo).call(this,e);this.shadowRoot?.querySelector(`[data-date="${l}"]`)?.focus()}))});a(this,Tu,()=>{p(this,D,by).call(this,-1)});a(this,Su,()=>{p(this,D,by).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,D,this.defaultValue,uy);let t=o(this,D,fy);if(t){let e=new Date(t+"T00:00:00");h(this,D,e.getMonth(),xu),h(this,D,e.getFullYear(),wu),h(this,D,e,vu)}}render(){let t=p(this,D,FI).call(this),e=p(this,D,VI).call(this),s=p(this,D,PI).call(this),l=p(this,D,Uo).call(this,o(this,D,my));return f`
|
|
2099
2099
|
<div part="root" role="grid" @keydown="${o(this,$u)}">
|
|
2100
2100
|
<div part="header">
|
|
2101
2101
|
<button
|
|
@@ -2136,7 +2136,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2136
2136
|
`)}
|
|
2137
2137
|
</div>
|
|
2138
2138
|
</div>
|
|
2139
|
-
`}};ct=A(HI),
|
|
2139
|
+
`}};ct=A(HI),Qx=new WeakMap,Zx=new WeakMap,ty=new WeakMap,ey=new WeakMap,oy=new WeakMap,ry=new WeakMap,sy=new WeakMap,iy=new WeakMap,D=new WeakSet,ay=new WeakMap,dy=new WeakMap,py=new WeakMap,fy=function(){return this.value??o(this,D,BI)},Uo=function(t){let e=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${e}-${s}-${l}`},ku=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},Mc=function(t){if(this.disabled)return!0;let e=p(this,D,Uo).call(this,t);return!!(this.min&&e<this.min||this.max&&e>this.max)},Eu=function(t,e){return new Date(t,e+1,0).getDate()},gy=function(){try{let t=new Intl.Locale(this.locale),e=t.weekInfo??t.getWeekInfo?.();return e?.firstDay===7?0:e?.firstDay??0}catch{return 0}},FI=function(){let t=o(this,D,yu),e=o(this,D,bu),s=p(this,D,Eu).call(this,t,e),l=new Date(t,e,1).getDay(),d=p(this,D,gy).call(this),m=new Date,g=o(this,D,fy),E=l-d;E<0&&(E+=7);let $=[],y=e===0?11:e-1,_=e===0?t-1:t,S=p(this,D,Eu).call(this,_,y);for(let F=E-1;F>=0;F--){let G=S-F,J=new Date(_,y,G);$.push({date:J,day:G,iso:p(this,D,Uo).call(this,J),isToday:p(this,D,ku).call(this,J,m),isSelected:p(this,D,Uo).call(this,J)===g,isOutsideMonth:!0,isDisabled:p(this,D,Mc).call(this,J)})}for(let F=1;F<=s;F++){let G=new Date(t,e,F);$.push({date:G,day:F,iso:p(this,D,Uo).call(this,G),isToday:p(this,D,ku).call(this,G,m),isSelected:p(this,D,Uo).call(this,G)===g,isOutsideMonth:!1,isDisabled:p(this,D,Mc).call(this,G)})}let O=42-$.length,B=e===11?0:e+1,j=e===11?t+1:t;for(let F=1;F<=O;F++){let G=new Date(j,B,F);$.push({date:G,day:F,iso:p(this,D,Uo).call(this,G),isToday:p(this,D,ku).call(this,G,m),isSelected:p(this,D,Uo).call(this,G)===g,isOutsideMonth:!0,isDisabled:p(this,D,Mc).call(this,G)})}let K=[];for(let F=0;F<$.length;F+=7)K.push($.slice(F,F+7));return K},VI=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),e=p(this,D,gy).call(this),s=[];for(let l=0;l<7;l++){let d=new Date(2015,0,4+e+l);s.push(t.format(d))}return s},PI=function(){let t=new Date(o(this,D,yu),o(this,D,bu),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},vy=function(t){this.disabled||this.readOnly||(this.value===void 0&&h(this,D,t,uy),this.dispatchEvent(xy({value:t})))},by=function(t){let e=o(this,D,bu)+t,s=o(this,D,yu);e<0?(e=11,s--):e>11&&(e=0,s++),h(this,D,e,xu),h(this,D,s,wu),h(this,D,new Date(s,e,1),vu)},Cu=new WeakMap,$u=new WeakMap,Tu=new WeakMap,Su=new WeakMap,c(ct,4,"value",DI,$e,Qx),c(ct,4,"defaultValue",NI,$e,Zx),c(ct,4,"min",MI,$e,ty),c(ct,4,"max",OI,$e,ey),c(ct,4,"locale",zI,$e,oy),c(ct,4,"disabled",LI,$e,ry),c(ct,4,"readOnly",II,$e,sy),ny=c(ct,20,"#internalValue",RI,D,iy),BI=ny.get,uy=ny.set,ly=c(ct,20,"#focusedDate",_I,D,ay),my=ly.get,vu=ly.set,cy=c(ct,20,"#viewMonth",AI,D,dy),bu=cy.get,xu=cy.set,hy=c(ct,20,"#viewYear",SI,D,py),yu=hy.get,wu=hy.set,T(ct,$e),v($e,"tagName","dui-calendar"),v($e,"styles",[w,S4]);var A4=k`
|
|
2140
2140
|
[part="root"] {
|
|
2141
2141
|
padding: var(--space-3);
|
|
2142
2142
|
font-family: var(--font-sans);
|
|
@@ -2258,7 +2258,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2258
2258
|
display: flex;
|
|
2259
2259
|
align-items: center;
|
|
2260
2260
|
}
|
|
2261
|
-
`,UI,qI,jI,KI,ir,
|
|
2261
|
+
`,UI,qI,jI,KI,ir,yy,wy,ky,WI,YI,ar,Ey,Cy,GI,XI,Nc,Dc,Hc,ga,Au,nr=class extends(KI=x,jI=[u({reflect:!0})],qI=[C()],UI=[C()],KI){constructor(){super(...arguments);a(this,ar);a(this,yy,n(ir,8,this,"")),n(ir,11,this);a(this,wy,n(ir,12,this,!1)),n(ir,15,this);a(this,Ey,n(ir,16,this,!1)),n(ir,19,this);a(this,Nc,!1);a(this,Dc,!1);a(this,Hc,!1);a(this,ga,t=>{let e=t.target,s=e.assignedElements().length>0;e.name==="title"?h(this,Nc,s):e.name==="description"?h(this,Dc,s):e.name==="action"&&h(this,Hc,s),h(this,ar,o(this,Nc)||o(this,Dc)||o(this,Hc),YI)});a(this,Au,t=>{let e=t.target;h(this,ar,e.assignedElements().length>0,XI)})}render(){return f`
|
|
2262
2262
|
<div part="root">
|
|
2263
2263
|
<div part="header" ?hidden=${!o(this,ar,WI)}>
|
|
2264
2264
|
<div part="header-text">
|
|
@@ -2279,7 +2279,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2279
2279
|
<slot name="footer" @slotchange=${o(this,Au)}></slot>
|
|
2280
2280
|
</div>
|
|
2281
2281
|
</div>
|
|
2282
|
-
`}};ir=A(KI),
|
|
2282
|
+
`}};ir=A(KI),yy=new WeakMap,wy=new WeakMap,ar=new WeakSet,Ey=new WeakMap,Nc=new WeakMap,Dc=new WeakMap,Hc=new WeakMap,ga=new WeakMap,Au=new WeakMap,c(ir,4,"size",jI,nr,yy),ky=c(ir,20,"#hasHeader",qI,ar,wy),WI=ky.get,YI=ky.set,Cy=c(ir,20,"#hasFooter",UI,ar,Ey),GI=Cy.get,XI=Cy.set,T(ir,nr),v(nr,"tagName","dui-card"),v(nr,"styles",[w,_4]);var R4=k`
|
|
2283
2283
|
/* ---------------------------------------------------------------
|
|
2284
2284
|
* Size tokens
|
|
2285
2285
|
* --------------------------------------------------------------- */
|
|
@@ -2397,15 +2397,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
2397
2397
|
--_columns: 1;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
`,JI,QI,_u,
|
|
2400
|
+
`,JI,QI,_u,$y,lr=class extends(QI=x,JI=[u({reflect:!0})],QI){constructor(){super(...arguments);a(this,$y,n(_u,8,this,"3")),n(_u,11,this)}render(){return f`
|
|
2401
2401
|
<div part="root">
|
|
2402
2402
|
<slot></slot>
|
|
2403
2403
|
</div>
|
|
2404
|
-
`}};_u=A(QI)
|
|
2404
|
+
`}};_u=A(QI),$y=new WeakMap,c(_u,4,"columns",JI,lr,$y),T(_u,lr),v(lr,"tagName","dui-card-grid"),v(lr,"styles",[w,I4]);var L4=k`
|
|
2405
2405
|
[part="root"] {
|
|
2406
2406
|
gap: var(--space-4);
|
|
2407
2407
|
}
|
|
2408
|
-
`,ba=class extends lr{static styles=[...lr.styles,L4]};customElements.define(ba.tagName,ba);var Ru=Symbol("dui-checkbox-group");var
|
|
2408
|
+
`,ba=class extends lr{static styles=[...lr.styles,L4]};customElements.define(ba.tagName,ba);var Ru=Symbol("dui-checkbox-group");var By=M("checked-change",{bubbles:!0,composed:!0}),z4=b`
|
|
2409
2409
|
:host {
|
|
2410
2410
|
display: inline-flex;
|
|
2411
2411
|
align-items: start;
|
|
@@ -2474,7 +2474,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2474
2474
|
>
|
|
2475
2475
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
2476
2476
|
</svg>
|
|
2477
|
-
`,ZI,tL,eL,oL,rL,sL,iL,nL,aL,lL,dL,xa,gt
|
|
2477
|
+
`,ZI,tL,eL,oL,rL,sL,iL,nL,aL,lL,dL,xa,gt,Ty,Sy,Ay,_y,Ry,Iy,Ly,zy,Oy,My,Ny,cL,Dy,le,Ei,Bc,pL,Hy,hL,Fc,Vc,Iu,ae=class extends(dL=x,lL=[u({type:Boolean,reflect:!0})],aL=[u({type:Boolean,attribute:"default-checked"})],nL=[u({type:Boolean,reflect:!0})],iL=[u({type:Boolean,reflect:!0})],sL=[u({type:Boolean,reflect:!0,attribute:"read-only"})],rL=[u({type:Boolean,reflect:!0})],oL=[u()],eL=[u()],tL=[u({type:Boolean})],ZI=[C()],dL){constructor(){super();a(this,le);a(this,xa);a(this,Ty,n(gt,8,this)),n(gt,11,this);a(this,Sy,n(gt,12,this,!1)),n(gt,15,this);a(this,Ay,n(gt,16,this,!1)),n(gt,19,this);a(this,_y,n(gt,20,this,!1)),n(gt,23,this);a(this,Ry,n(gt,24,this,!1)),n(gt,27,this);a(this,Iy,n(gt,28,this,!1)),n(gt,31,this);a(this,Ly,n(gt,32,this)),n(gt,35,this);a(this,zy,n(gt,36,this)),n(gt,39,this);a(this,Oy,n(gt,40,this,!1)),n(gt,43,this);a(this,My,n(gt,44,this,!1)),n(gt,47,this);a(this,Ei,new q(this,{context:Ru,subscribe:!0}));a(this,Fc,t=>{o(this,Vc).call(this)});a(this,Vc,()=>{if(o(this,le,Hy)||this.readOnly)return;let t=o(this,Ei).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!o(this,le,Bc)):t.toggle(this.value);return}let e=!o(this,le,Bc);this.checked===void 0&&(h(this,le,e,Dy),this.indeterminate=!1),this.dispatchEvent(By({checked:e,indeterminate:!1}))});a(this,Iu,t=>{t.key===" "&&(t.preventDefault(),o(this,Vc).call(this))});h(this,xa,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,le,!0,Dy),this.addEventListener("click",o(this,Fc))}willUpdate(){p(this,le,hL).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Fc))}render(){let t=o(this,le,Bc),e=o(this,le,pL),s=o(this,le,Hy),l=t||e;return f`
|
|
2478
2478
|
<span
|
|
2479
2479
|
part="root"
|
|
2480
2480
|
role="checkbox"
|
|
@@ -2501,7 +2501,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2501
2501
|
</span>
|
|
2502
2502
|
</span>
|
|
2503
2503
|
<slot></slot>
|
|
2504
|
-
`}};gt=A(dL),xa=new WeakMap
|
|
2504
|
+
`}};gt=A(dL),xa=new WeakMap,Ty=new WeakMap,Sy=new WeakMap,Ay=new WeakMap,_y=new WeakMap,Ry=new WeakMap,Iy=new WeakMap,Ly=new WeakMap,zy=new WeakMap,Oy=new WeakMap,My=new WeakMap,le=new WeakSet,Ei=new WeakMap,Bc=function(){let t=o(this,Ei).value;return t&&this.value!==void 0?this.parent?t.allValues.length>0&&t.allValues.every(e=>t.checkedValues.includes(e)):t.checkedValues.includes(this.value):this.checked??o(this,le,cL)},pL=function(){let t=o(this,Ei).value;if(t&&this.parent&&this.value!==void 0){let e=t.allValues.filter(s=>t.checkedValues.includes(s)).length;return e>0&&e<t.allValues.length}return this.indeterminate},Hy=function(){return this.disabled||(o(this,Ei).value?.disabled??!1)},hL=function(){o(this,le,Bc)?o(this,xa).setFormValue(this.value??"on"):o(this,xa).setFormValue(null)},Fc=new WeakMap,Vc=new WeakMap,Iu=new WeakMap,c(gt,4,"checked",lL,ae,Ty),c(gt,4,"defaultChecked",aL,ae,Sy),c(gt,4,"indeterminate",nL,ae,Ay),c(gt,4,"disabled",iL,ae,_y),c(gt,4,"readOnly",sL,ae,Ry),c(gt,4,"required",rL,ae,Iy),c(gt,4,"name",oL,ae,Ly),c(gt,4,"value",eL,ae,zy),c(gt,4,"parent",tL,ae,Oy),Ny=c(gt,20,"#internalChecked",ZI,le,My),cL=Ny.get,Dy=Ny.set,T(gt,ae),v(ae,"tagName","dui-checkbox"),v(ae,"formAssociated",!0),v(ae,"styles",[w,z4]);var Ou=M("value-change",{bubbles:!0,composed:!0}),N4=b`
|
|
2505
2505
|
:host {
|
|
2506
2506
|
display: block;
|
|
2507
2507
|
}
|
|
@@ -2511,7 +2511,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2511
2511
|
flex-direction: column;
|
|
2512
2512
|
align-items: start;
|
|
2513
2513
|
}
|
|
2514
|
-
`,uL,mL,fL,gL,vL,bL,xL,de,
|
|
2514
|
+
`,uL,mL,fL,gL,vL,bL,xL,de,Fy,Vy,Py,Uy,qy,jy,yL,Lu,Co,Pc,Mu,Nu,Ky,zu,Ue=class extends(xL=x,bL=[u({attribute:!1})],vL=[u({attribute:!1})],gL=[u({attribute:!1})],fL=[u({type:Boolean,reflect:!0})],mL=[C()],uL=[lt({context:Ru}),C()],xL){constructor(){super(...arguments);a(this,Co);a(this,Fy,n(de,8,this)),n(de,11,this);a(this,Vy,n(de,12,this,[])),n(de,15,this);a(this,Py,n(de,16,this,[])),n(de,19,this);a(this,Uy,n(de,20,this,!1)),n(de,23,this);a(this,qy,n(de,24,this,[])),n(de,27,this);a(this,Pc,()=>this.value??o(this,Co,yL));a(this,Mu,t=>{let e=o(this,Pc).call(this),s=e.includes(t)?e.filter(l=>l!==t):[...e,t];this.value===void 0&&h(this,Co,s,Lu),this.dispatchEvent(Ou(s))});a(this,Nu,t=>{let e=t?[...this.allValues]:[];this.value===void 0&&h(this,Co,e,Lu),this.dispatchEvent(Ou(e))});a(this,Ky,n(de,28,this,p(this,Co,zu).call(this))),n(de,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Co,[...this.defaultValue],Lu),this._ctx=p(this,Co,zu).call(this)}willUpdate(){this._ctx=p(this,Co,zu).call(this)}render(){return f`
|
|
2515
2515
|
<div
|
|
2516
2516
|
part="root"
|
|
2517
2517
|
role="group"
|
|
@@ -2519,7 +2519,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2519
2519
|
>
|
|
2520
2520
|
<slot></slot>
|
|
2521
2521
|
</div>
|
|
2522
|
-
`}};de=A(xL),
|
|
2522
|
+
`}};de=A(xL),Fy=new WeakMap,Vy=new WeakMap,Py=new WeakMap,Uy=new WeakMap,qy=new WeakMap,Co=new WeakSet,Pc=new WeakMap,Mu=new WeakMap,Nu=new WeakMap,Ky=new WeakMap,zu=function(){return{checkedValues:o(this,Pc).call(this),allValues:this.allValues,disabled:this.disabled,toggle:o(this,Mu),toggleAll:o(this,Nu)}},c(de,4,"value",bL,Ue,Fy),c(de,4,"defaultValue",vL,Ue,Vy),c(de,4,"allValues",gL,Ue,Py),c(de,4,"disabled",fL,Ue,Uy),jy=c(de,20,"#internalValues",mL,Co,qy),yL=jy.get,Lu=jy.set,c(de,4,"_ctx",uL,Ue,Ky),T(de,Ue),v(Ue,"tagName","dui-checkbox-group"),v(Ue,"styles",[w,N4]);var D4=k`
|
|
2523
2523
|
:host {
|
|
2524
2524
|
--checkbox-size: var(--space-4_5);
|
|
2525
2525
|
gap: var(--space-2);
|
|
@@ -2580,7 +2580,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2580
2580
|
[part="root"][data-disabled] {
|
|
2581
2581
|
opacity: 0.4;
|
|
2582
2582
|
}
|
|
2583
|
-
`,wa=class extends Ue{static styles=[...Ue.styles,H4]};customElements.define(wa.tagName,wa);var
|
|
2583
|
+
`,wa=class extends Ue{static styles=[...Ue.styles,H4]};customElements.define(wa.tagName,wa);var c0=M("open-change",{bubbles:!0,composed:!0}),B4=b`
|
|
2584
2584
|
:host {
|
|
2585
2585
|
display: block;
|
|
2586
2586
|
}
|
|
@@ -2613,7 +2613,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2613
2613
|
contain: content;
|
|
2614
2614
|
transition-property: height;
|
|
2615
2615
|
}
|
|
2616
|
-
`,wL,kL,EL,CL,$L,TL,SL,AL,_L,RL,Rt,
|
|
2616
|
+
`,wL,kL,EL,CL,$L,TL,SL,AL,_L,RL,Rt,Wy,Yy,Gy,Xy,Jy,Qy,a0,Du,W,Zy,t0,Hu,Bu,e0,o0,IL,Ci,r0,s0,l0,Fu,i0,n0,LL,d0,$i,Ti,_s,Uc,zL,OL,Vu,Pu,ao=class extends(RL=x,_L=[u({type:Boolean,reflect:!0})],AL=[u({type:Boolean,attribute:"default-open"})],SL=[u({type:Boolean,reflect:!0})],TL=[u({type:Boolean,attribute:"keep-mounted"})],$L=[C()],CL=[C()],EL=[C()],kL=[C()],wL=[C()],RL){constructor(){super(...arguments);a(this,W);a(this,Wy,n(Rt,8,this,!1)),n(Rt,11,this);a(this,Yy,n(Rt,12,this,!1)),n(Rt,15,this);a(this,Gy,n(Rt,16,this,!1)),n(Rt,19,this);a(this,Xy,n(Rt,20,this,!1)),n(Rt,23,this);a(this,Jy,n(Rt,24,this,!1)),n(Rt,27,this);a(this,Zy,n(Rt,28,this,!1)),n(Rt,31,this);a(this,e0,n(Rt,32,this,"0")),n(Rt,35,this);a(this,r0,n(Rt,36,this,!1)),n(Rt,39,this);a(this,i0,n(Rt,40,this,!1)),n(Rt,43,this);a(this,$i);a(this,Ti,0);a(this,_s,!1);a(this,Vu,t=>{t.propertyName==="height"&&(o(this,W,Hu)?(h(this,W,!1,Bu),this.keepMounted||h(this,W,!1,Fu)):o(this,W,Uc)&&h(this,W,"auto",Ci))});a(this,Pu,()=>{if(this.disabled)return;let t=!o(this,W,Uc);o(this,_s)||h(this,W,t,d0),this.dispatchEvent(c0({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,_s,this.hasAttribute("open")),!o(this,_s)&&this.defaultOpen&&h(this,W,!0,d0)}willUpdate(t){t.has("open")&&o(this,$i)!==void 0&&h(this,_s,!0);let e=o(this,W,Uc);o(this,$i)===void 0?(h(this,W,e,Fu),h(this,W,e?"auto":"0",Ci)):o(this,$i)!==e&&(e?p(this,W,zL).call(this):p(this,W,OL).call(this)),h(this,$i,e)}render(){let t=o(this,W,Uc),e=o(this,W,l0)||this.keepMounted;return f`
|
|
2617
2617
|
<button
|
|
2618
2618
|
part="trigger"
|
|
2619
2619
|
aria-expanded=${t}
|
|
@@ -2629,10 +2629,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
2629
2629
|
part="panel"
|
|
2630
2630
|
role="region"
|
|
2631
2631
|
style="height: ${o(this,W,IL)}"
|
|
2632
|
-
?data-open=${t&&!o(this,W,
|
|
2633
|
-
?data-starting-style=${o(this,W,
|
|
2632
|
+
?data-open=${t&&!o(this,W,a0)}
|
|
2633
|
+
?data-starting-style=${o(this,W,a0)}
|
|
2634
2634
|
?data-ending-style=${o(this,W,Hu)}
|
|
2635
|
-
?hidden=${!o(this,W,
|
|
2635
|
+
?hidden=${!o(this,W,l0)&&!o(this,W,Hu)}
|
|
2636
2636
|
@transitionend=${o(this,Vu)}
|
|
2637
2637
|
>
|
|
2638
2638
|
<div part="content">
|
|
@@ -2640,7 +2640,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2640
2640
|
</div>
|
|
2641
2641
|
</div>
|
|
2642
2642
|
`:L}
|
|
2643
|
-
`}};Rt=A(RL),
|
|
2643
|
+
`}};Rt=A(RL),Wy=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,Xy=new WeakMap,Jy=new WeakMap,W=new WeakSet,Zy=new WeakMap,e0=new WeakMap,r0=new WeakMap,i0=new WeakMap,$i=new WeakMap,Ti=new WeakMap,_s=new WeakMap,Uc=function(){return o(this,_s)?this.open:o(this,W,LL)},zL=function(){let t=++Es(this,Ti)._;h(this,W,!1,Bu),h(this,W,!0,Fu),h(this,W,!0,Du),h(this,W,"0",Ci),requestAnimationFrame(()=>{if(o(this,Ti)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),h(this,W,!1,Du)})},OL=function(){let t=++Es(this,Ti)._;h(this,W,!1,Du);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),requestAnimationFrame(()=>{o(this,Ti)===t&&(h(this,W,!0,Bu),h(this,W,"0",Ci))})},Vu=new WeakMap,Pu=new WeakMap,c(Rt,4,"open",_L,ao,Wy),c(Rt,4,"defaultOpen",AL,ao,Yy),c(Rt,4,"disabled",SL,ao,Gy),c(Rt,4,"keepMounted",TL,ao,Xy),Qy=c(Rt,20,"#starting",$L,W,Jy),a0=Qy.get,Du=Qy.set,t0=c(Rt,20,"#ending",CL,W,Zy),Hu=t0.get,Bu=t0.set,o0=c(Rt,20,"#panelHeight",EL,W,e0),IL=o0.get,Ci=o0.set,s0=c(Rt,20,"#visible",kL,W,r0),l0=s0.get,Fu=s0.set,n0=c(Rt,20,"#internalOpen",wL,W,i0),LL=n0.get,d0=n0.set,T(Rt,ao),v(ao,"tagName","dui-collapsible"),v(ao,"styles",[w,B4]);var ML=Jr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`),F4=k`
|
|
2644
2644
|
/* ── Trigger ── */
|
|
2645
2645
|
|
|
2646
2646
|
[part="trigger"] {
|
|
@@ -2725,12 +2725,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
2725
2725
|
transition-duration: 0s;
|
|
2726
2726
|
}
|
|
2727
2727
|
}
|
|
2728
|
-
`,ka=class extends ao{static styles=[...ao.styles,F4]};customElements.define(ka.tagName,ka);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ea=i=>(...r)=>({_$litDirective$:i,values:r}),Rs=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,e){this._$Ct=r,this._$AM=t,this._$Ci=e}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var{I:V4}=gR,NL=i=>i;var HL=i=>i.strings===void 0,DL=()=>document.createComment(""),Ca=(i,r,t)=>{let e=i._$AA.parentNode,s=r===void 0?i._$AB:r._$AA;if(t===void 0){let l=e.insertBefore(DL(),s),d=e.insertBefore(DL(),s);t=new V4(l,d,i,i.options)}else{let l=t._$AB.nextSibling,d=t._$AM,m=d!==i;if(m){let g;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(g=i._$AU)!==d._$AU&&t._$AP(g)}if(l!==s||m){let g=t._$AA;for(;g!==l;){let E=NL(g).nextSibling;NL(e).insertBefore(g,s),g=E}}}return t},Is=(i,r,t=i)=>(i._$AI(r,t),i),P4={},Uu=(i,r=P4)=>i._$AH=r,BL=i=>i._$AH,qu=i=>{i._$AR(),i._$AA.remove()};var FL=(i,r,t)=>{let e=new Map;for(let s=r;s<=t;s++)e.set(i[s],s);return e},Si=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,r,t){let e;t===void 0?t=r:r!==void 0&&(e=r);let s=[],l=[],d=0;for(let m of i)s[d]=e?e(m,d):d,l[d]=t(m,d),d++;return{values:l,keys:s}}render(i,r,t){return this.dt(i,r,t).values}update(i,[r,t,e]){let s=BL(i),{values:l,keys:d}=this.dt(r,t,e);if(!Array.isArray(s))return this.ut=d,l;let m=this.ut??=[],g=[],E,$,y=0,_=s.length-1,S=0,O=l.length-1;for(;y<=_&&S<=O;)if(s[y]===null)y++;else if(s[_]===null)_--;else if(m[y]===d[S])g[S]=Is(s[y],l[S]),y++,S++;else if(m[_]===d[O])g[O]=Is(s[_],l[O]),_--,O--;else if(m[y]===d[O])g[O]=Is(s[y],l[O]),Ca(i,g[O+1],s[y]),y++,O--;else if(m[_]===d[S])g[S]=Is(s[_],l[S]),Ca(i,s[y],s[_]),_--,S++;else if(E===void 0&&(E=FL(d,S,O),$=FL(m,y,_)),E.has(m[y]))if(E.has(m[_])){let B=$.get(d[S]),j=B!==void 0?s[B]:null;if(j===null){let K=Ca(i,s[y]);Is(K,l[S]),g[S]=K}else g[S]=Is(j,l[S]),Ca(i,s[y],j),s[B]=null;S++}else qu(s[_]),_--;else qu(s[y]),y++;for(;S<=O;){let B=Ca(i,g[O+1]);Is(B,l[S]),g[S++]=B}for(;y<=_;){let B=s[y++];B!==null&&qu(B)}return this.ut=d,Uu(i,g),Ee}});var dr=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.PROPERTY&&i.type!==qo.ATTRIBUTE&&i.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!HL(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===Ee||r===L)return r;let t=i.element,e=i.name;if(i.type===qo.PROPERTY){if(r===t[e])return Ee}else if(i.type===qo.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(e))return Ee}else if(i.type===qo.ATTRIBUTE&&t.getAttribute(e)===r+"")return Ee;return Uu(i),r}});var ju=new Map,VL=(i,r)=>{for(let[t,e]of ju)t!==i&&e();ju.clear(),ju.set(i,r)},c0=i=>{ju.delete(i)};var Ls=Math.min,Me=Math.max,jc=Math.round,Kc=Math.floor,jo=i=>({x:i,y:i}),U4={left:"right",right:"left",bottom:"top",top:"bottom"};function p0(i,r,t){return Me(i,Ls(r,t))}function $a(i,r){return typeof i=="function"?i(r):i}function rs(i){return i.split("-")[0]}function Ta(i){return i.split("-")[1]}function h0(i){return i==="x"?"y":"x"}function u0(i){return i==="y"?"height":"width"}function cr(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function m0(i){return h0(cr(i))}function qL(i,r,t){t===void 0&&(t=!1);let e=Ta(i),s=m0(i),l=u0(s),d=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(d=qc(d)),[d,qc(d)]}function jL(i){let r=qc(i);return[Ku(i),r,Ku(r)]}function Ku(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var PL=["left","right"],UL=["right","left"],q4=["top","bottom"],j4=["bottom","top"];function K4(i,r,t){switch(i){case"top":case"bottom":return t?r?UL:PL:r?PL:UL;case"left":case"right":return r?q4:j4;default:return[]}}function KL(i,r,t,e){let s=Ta(i),l=K4(rs(i),t==="start",e);return s&&(l=l.map(d=>d+"-"+s),r&&(l=l.concat(l.map(Ku)))),l}function qc(i){let r=rs(i);return U4[r]+i.slice(r.length)}function W4(i){return{top:0,right:0,bottom:0,left:0,...i}}function WL(i){return typeof i!="number"?W4(i):{top:i,right:i,bottom:i,left:i}}function Ai(i){let{x:r,y:t,width:e,height:s}=i;return{width:e,height:s,top:t,left:r,right:r+e,bottom:t+s,x:r,y:t}}function YL(i,r,t){let{reference:e,floating:s}=i,l=cr(r),d=m0(r),m=u0(d),g=rs(r),E=l==="y",$=e.x+e.width/2-s.width/2,y=e.y+e.height/2-s.height/2,_=e[m]/2-s[m]/2,S;switch(g){case"top":S={x:$,y:e.y-s.height};break;case"bottom":S={x:$,y:e.y+e.height};break;case"right":S={x:e.x+e.width,y};break;case"left":S={x:e.x-s.width,y};break;default:S={x:e.x,y:e.y}}switch(Ta(r)){case"start":S[d]-=_*(t&&E?-1:1);break;case"end":S[d]+=_*(t&&E?-1:1);break}return S}async function GL(i,r){var t;r===void 0&&(r={});let{x:e,y:s,platform:l,rects:d,elements:m,strategy:g}=i,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:y="floating",altBoundary:_=!1,padding:S=0}=$a(r,i),O=WL(S),j=m[_?y==="floating"?"reference":"floating":y],K=Ai(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(j)))==null||t?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:E,rootBoundary:$,strategy:g})),F=y==="floating"?{x:e,y:s,width:d.floating.width,height:d.floating.height}:d.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),J=await(l.isElement==null?void 0:l.isElement(G))?await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1}:{x:1,y:1},ge=Ai(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:F,offsetParent:G,strategy:g}):F);return{top:(K.top-ge.top+O.top)/J.y,bottom:(ge.bottom-K.bottom+O.bottom)/J.y,left:(K.left-ge.left+O.left)/J.x,right:(ge.right-K.right+O.right)/J.x}}var Y4=50,XL=async(i,r,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:d}=t,m=d.detectOverflow?d:{...d,detectOverflow:GL},g=await(d.isRTL==null?void 0:d.isRTL(r)),E=await d.getElementRects({reference:i,floating:r,strategy:s}),{x:$,y}=YL(E,e,g),_=e,S=0,O={};for(let B=0;B<l.length;B++){let j=l[B];if(!j)continue;let{name:K,fn:F}=j,{x:G,y:J,data:ge,reset:Oe}=await F({x:$,y,initialPlacement:e,placement:_,strategy:s,middlewareData:O,rects:E,platform:m,elements:{reference:i,floating:r}});$=G??$,y=J??y,O[K]={...O[K],...ge},Oe&&S<Y4&&(S++,typeof Oe=="object"&&(Oe.placement&&(_=Oe.placement),Oe.rects&&(E=Oe.rects===!0?await d.getElementRects({reference:i,floating:r,strategy:s}):Oe.rects),{x:$,y}=YL(E,_,g)),B=-1)}return{x:$,y,placement:_,strategy:s,middlewareData:O}};var JL=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,e;let{placement:s,middlewareData:l,rects:d,initialPlacement:m,platform:g,elements:E}=r,{mainAxis:$=!0,crossAxis:y=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:B=!0,...j}=$a(i,r);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let K=rs(s),F=cr(m),G=rs(m)===m,J=await(g.isRTL==null?void 0:g.isRTL(E.floating)),ge=_||(G||!B?[qc(m)]:jL(m)),Oe=O!=="none";!_&&Oe&&ge.push(...KL(m,B,O,J));let rr=[m,...ge],si=await g.detectOverflow(r,j),ii=[],Xr=((e=l.flip)==null?void 0:e.overflows)||[];if($&&ii.push(si[K]),y){let ni=qL(s,d,J);ii.push(si[ni[0]],si[ni[1]])}if(Xr=[...Xr,{placement:s,overflows:ii}],!ii.every(ni=>ni<=0)){var cc,pc;let ni=(((cc=l.flip)==null?void 0:cc.index)||0)+1,ub=rr[ni];if(ub&&(!(y==="alignment"?F!==cr(ub):!1)||Xr.every(Vo=>cr(Vo.placement)===F?Vo.overflows[0]>0:!0)))return{data:{index:ni,overflows:Xr},reset:{placement:ub}};let uc=(pc=Xr.filter(ai=>ai.overflows[0]<=0).sort((ai,Vo)=>ai.overflows[1]-Vo.overflows[1])[0])==null?void 0:pc.placement;if(!uc)switch(S){case"bestFit":{var hc;let ai=(hc=Xr.filter(Vo=>{if(Oe){let ks=cr(Vo.placement);return ks===F||ks==="y"}return!0}).map(Vo=>[Vo.placement,Vo.overflows.filter(ks=>ks>0).reduce((ks,bF)=>ks+bF,0)]).sort((Vo,ks)=>Vo[1]-ks[1])[0])==null?void 0:hc[0];ai&&(uc=ai);break}case"initialPlacement":uc=m;break}if(s!==uc)return{reset:{placement:uc}}}return{}}}};var G4=new Set(["left","top"]);async function X4(i,r){let{placement:t,platform:e,elements:s}=i,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),d=rs(t),m=Ta(t),g=cr(t)==="y",E=G4.has(d)?-1:1,$=l&&g?-1:1,y=$a(r,i),{mainAxis:_,crossAxis:S,alignmentAxis:O}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof O=="number"&&(S=m==="end"?O*-1:O),g?{x:S*$,y:_*E}:{x:_*E,y:S*$}}var QL=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,e;let{x:s,y:l,placement:d,middlewareData:m}=r,g=await X4(r,i);return d===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:s+g.x,y:l+g.y,data:{...g,placement:d}}}}},ZL=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:e,placement:s,platform:l}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:K=>{let{x:F,y:G}=K;return{x:F,y:G}}},...E}=$a(i,r),$={x:t,y:e},y=await l.detectOverflow(r,E),_=cr(rs(s)),S=h0(_),O=$[S],B=$[_];if(d){let K=S==="y"?"top":"left",F=S==="y"?"bottom":"right",G=O+y[K],J=O-y[F];O=p0(G,O,J)}if(m){let K=_==="y"?"top":"left",F=_==="y"?"bottom":"right",G=B+y[K],J=B-y[F];B=p0(G,B,J)}let j=g.fn({...r,[S]:O,[_]:B});return{...j,data:{x:j.x-t,y:j.y-e,enabled:{[S]:d,[_]:m}}}}}};var tz=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var t,e;let{placement:s,rects:l,platform:d,elements:m}=r,{apply:g=()=>{},...E}=$a(i,r),$=await d.detectOverflow(r,E),y=rs(s),_=Ta(s),S=cr(s)==="y",{width:O,height:B}=l.floating,j,K;y==="top"||y==="bottom"?(j=y,K=_===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(K=y,j=_==="end"?"top":"bottom");let F=B-$.top-$.bottom,G=O-$.left-$.right,J=Ls(B-$[j],F),ge=Ls(O-$[K],G),Oe=!r.middlewareData.shift,rr=J,si=ge;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(si=G),(e=r.middlewareData.shift)!=null&&e.enabled.y&&(rr=F),Oe&&!_){let Xr=Me($.left,0),cc=Me($.right,0),pc=Me($.top,0),hc=Me($.bottom,0);S?si=O-2*(Xr!==0||cc!==0?Xr+cc:Me($.left,$.right)):rr=B-2*(pc!==0||hc!==0?pc+hc:Me($.top,$.bottom))}await g({...r,availableWidth:si,availableHeight:rr});let ii=await d.getDimensions(m.floating);return O!==ii.width||B!==ii.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<"u"}function Ri(i){return oz(i)?(i.nodeName||"").toLowerCase():"#document"}function qe(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function Ko(i){var r;return(r=(oz(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function oz(i){return Wu()?i instanceof Node||i instanceof qe(i).Node:!1}function $o(i){return Wu()?i instanceof Element||i instanceof qe(i).Element:!1}function pr(i){return Wu()?i instanceof HTMLElement||i instanceof qe(i).HTMLElement:!1}function ez(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof qe(i).ShadowRoot}function Aa(i){let{overflow:r,overflowX:t,overflowY:e,display:s}=To(i);return/auto|scroll|overlay|hidden|clip/.test(r+e+t)&&s!=="inline"&&s!=="contents"}function rz(i){return/^(table|td|th)$/.test(Ri(i))}function Wc(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var J4=/transform|translate|scale|rotate|perspective|filter/,Q4=/paint|layout|strict|content/,_i=i=>!!i&&i!=="none",f0;function Yu(i){let r=$o(i)?To(i):i;return _i(r.transform)||_i(r.translate)||_i(r.scale)||_i(r.rotate)||_i(r.perspective)||!Gu()&&(_i(r.backdropFilter)||_i(r.filter))||J4.test(r.willChange||"")||Q4.test(r.contain||"")}function sz(i){let r=ss(i);for(;pr(r)&&!Ii(r);){if(Yu(r))return r;if(Wc(r))return null;r=ss(r)}return null}function Gu(){return f0==null&&(f0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),f0}function Ii(i){return/^(html|body|#document)$/.test(Ri(i))}function To(i){return qe(i).getComputedStyle(i)}function Yc(i){return $o(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function ss(i){if(Ri(i)==="html")return i;let r=i.assignedSlot||i.parentNode||ez(i)&&i.host||Ko(i);return ez(r)?r.host:r}function iz(i){let r=ss(i);return Ii(r)?i.ownerDocument?i.ownerDocument.body:i.body:pr(r)&&Aa(r)?r:iz(r)}function Sa(i,r,t){var e;r===void 0&&(r=[]),t===void 0&&(t=!0);let s=iz(i),l=s===((e=i.ownerDocument)==null?void 0:e.body),d=qe(s);if(l){let m=Xu(d);return r.concat(d,d.visualViewport||[],Aa(s)?s:[],m&&t?Sa(m):[])}else return r.concat(s,Sa(s,[],t))}function Xu(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function dz(i){let r=To(i),t=parseFloat(r.width)||0,e=parseFloat(r.height)||0,s=pr(i),l=s?i.offsetWidth:t,d=s?i.offsetHeight:e,m=jc(t)!==l||jc(e)!==d;return m&&(t=l,e=d),{width:t,height:e,$:m}}function v0(i){return $o(i)?i:i.contextElement}function _a(i){let r=v0(i);if(!pr(r))return jo(1);let t=r.getBoundingClientRect(),{width:e,height:s,$:l}=dz(r),d=(l?jc(t.width):t.width)/e,m=(l?jc(t.height):t.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}var Z4=jo(0);function cz(i){let r=qe(i);return!Gu()||!r.visualViewport?Z4:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tV(i,r,t){return r===void 0&&(r=!1),!t||r&&t!==qe(i)?!1:r}function Li(i,r,t,e){r===void 0&&(r=!1),t===void 0&&(t=!1);let s=i.getBoundingClientRect(),l=v0(i),d=jo(1);r&&(e?$o(e)&&(d=_a(e)):d=_a(i));let m=tV(l,t,e)?cz(l):jo(0),g=(s.left+m.x)/d.x,E=(s.top+m.y)/d.y,$=s.width/d.x,y=s.height/d.y;if(l){let _=qe(l),S=e&&$o(e)?qe(e):e,O=_,B=Xu(O);for(;B&&e&&S!==O;){let j=_a(B),K=B.getBoundingClientRect(),F=To(B),G=K.left+(B.clientLeft+parseFloat(F.paddingLeft))*j.x,J=K.top+(B.clientTop+parseFloat(F.paddingTop))*j.y;g*=j.x,E*=j.y,$*=j.x,y*=j.y,g+=G,E+=J,O=qe(B),B=Xu(O)}}return Ai({width:$,height:y,x:g,y:E})}function Ju(i,r){let t=Yc(i).scrollLeft;return r?r.left+t:Li(Ko(i)).left+t}function pz(i,r){let t=i.getBoundingClientRect(),e=t.left+r.scrollLeft-Ju(i,t),s=t.top+r.scrollTop;return{x:e,y:s}}function eV(i){let{elements:r,rect:t,offsetParent:e,strategy:s}=i,l=s==="fixed",d=Ko(e),m=r?Wc(r.floating):!1;if(e===d||m&&l)return t;let g={scrollLeft:0,scrollTop:0},E=jo(1),$=jo(0),y=pr(e);if((y||!y&&!l)&&((Ri(e)!=="body"||Aa(d))&&(g=Yc(e)),y)){let S=Li(e);E=_a(e),$.x=S.x+e.clientLeft,$.y=S.y+e.clientTop}let _=d&&!y&&!l?pz(d,g):jo(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-g.scrollLeft*E.x+$.x+_.x,y:t.y*E.y-g.scrollTop*E.y+$.y+_.y}}function oV(i){return Array.from(i.getClientRects())}function rV(i){let r=Ko(i),t=Yc(i),e=i.ownerDocument.body,s=Me(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth),l=Me(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ju(i),m=-t.scrollTop;return To(e).direction==="rtl"&&(d+=Me(r.clientWidth,e.clientWidth)-s),{width:s,height:l,x:d,y:m}}var nz=25;function sV(i,r){let t=qe(i),e=Ko(i),s=t.visualViewport,l=e.clientWidth,d=e.clientHeight,m=0,g=0;if(s){l=s.width,d=s.height;let $=Gu();(!$||$&&r==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}let E=Ju(e);if(E<=0){let $=e.ownerDocument,y=$.body,_=getComputedStyle(y),S=$.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,O=Math.abs(e.clientWidth-y.clientWidth-S);O<=nz&&(l-=O)}else E<=nz&&(l+=E);return{width:l,height:d,x:m,y:g}}function iV(i,r){let t=Li(i,!0,r==="fixed"),e=t.top+i.clientTop,s=t.left+i.clientLeft,l=pr(i)?_a(i):jo(1),d=i.clientWidth*l.x,m=i.clientHeight*l.y,g=s*l.x,E=e*l.y;return{width:d,height:m,x:g,y:E}}function az(i,r,t){let e;if(r==="viewport")e=sV(i,t);else if(r==="document")e=rV(Ko(i));else if($o(r))e=iV(r,t);else{let s=cz(i);e={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Ai(e)}function hz(i,r){let t=ss(i);return t===r||!$o(t)||Ii(t)?!1:To(t).position==="fixed"||hz(t,r)}function nV(i,r){let t=r.get(i);if(t)return t;let e=Sa(i,[],!1).filter(m=>$o(m)&&Ri(m)!=="body"),s=null,l=To(i).position==="fixed",d=l?ss(i):i;for(;$o(d)&&!Ii(d);){let m=To(d),g=Yu(d);!g&&m.position==="fixed"&&(s=null),(l?!g&&!s:!g&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Aa(d)&&!g&&hz(i,d))?e=e.filter($=>$!==d):s=m,d=ss(d)}return r.set(i,e),e}function aV(i){let{element:r,boundary:t,rootBoundary:e,strategy:s}=i,d=[...t==="clippingAncestors"?Wc(r)?[]:nV(r,this._c):[].concat(t),e],m=az(r,d[0],s),g=m.top,E=m.right,$=m.bottom,y=m.left;for(let _=1;_<d.length;_++){let S=az(r,d[_],s);g=Me(S.top,g),E=Ls(S.right,E),$=Ls(S.bottom,$),y=Me(S.left,y)}return{width:E-y,height:$-g,x:y,y:g}}function lV(i){let{width:r,height:t}=dz(i);return{width:r,height:t}}function dV(i,r,t){let e=pr(r),s=Ko(r),l=t==="fixed",d=Li(i,!0,l,r),m={scrollLeft:0,scrollTop:0},g=jo(0);function E(){g.x=Ju(s)}if(e||!e&&!l)if((Ri(r)!=="body"||Aa(s))&&(m=Yc(r)),e){let S=Li(r,!0,l,r);g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}else s&&E();l&&!e&&s&&E();let $=s&&!e&&!l?pz(s,m):jo(0),y=d.left+m.scrollLeft-g.x-$.x,_=d.top+m.scrollTop-g.y-$.y;return{x:y,y:_,width:d.width,height:d.height}}function g0(i){return To(i).position==="static"}function lz(i,r){if(!pr(i)||To(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return Ko(i)===t&&(t=t.ownerDocument.body),t}function uz(i,r){let t=qe(i);if(Wc(i))return t;if(!pr(i)){let s=ss(i);for(;s&&!Ii(s);){if($o(s)&&!g0(s))return s;s=ss(s)}return t}let e=lz(i,r);for(;e&&rz(e)&&g0(e);)e=lz(e,r);return e&&Ii(e)&&g0(e)&&!Yu(e)?t:e||sz(i)||t}var cV=async function(i){let r=this.getOffsetParent||uz,t=this.getDimensions,e=await t(i.floating);return{reference:dV(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function pV(i){return To(i).direction==="rtl"}var b0={convertOffsetParentRelativeRectToViewportRelativeRect:eV,getDocumentElement:Ko,getClippingRect:aV,getOffsetParent:uz,getElementRects:cV,getClientRects:oV,getDimensions:lV,getScale:_a,isElement:$o,isRTL:pV};function mz(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function hV(i,r){let t=null,e,s=Ko(i);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),l();let E=i.getBoundingClientRect(),{left:$,top:y,width:_,height:S}=E;if(m||r(),!_||!S)return;let O=Kc(y),B=Kc(s.clientWidth-($+_)),j=Kc(s.clientHeight-(y+S)),K=Kc($),G={rootMargin:-O+"px "+-B+"px "+-j+"px "+-K+"px",threshold:Me(0,Ls(1,g))||1},J=!0;function ge(Oe){let rr=Oe[0].intersectionRatio;if(rr!==g){if(!J)return d();rr?d(!1,rr):e=setTimeout(()=>{d(!1,1e-7)},1e3)}rr===1&&!mz(E,i.getBoundingClientRect())&&d(),J=!1}try{t=new IntersectionObserver(ge,{...G,root:s.ownerDocument})}catch{t=new IntersectionObserver(ge,G)}t.observe(i)}return d(!0),l}function fz(i,r,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,E=v0(i),$=s||l?[...E?Sa(E):[],...r?Sa(r):[]]:[];$.forEach(K=>{s&&K.addEventListener("scroll",t,{passive:!0}),l&&K.addEventListener("resize",t)});let y=E&&m?hV(E,t):null,_=-1,S=null;d&&(S=new ResizeObserver(K=>{let[F]=K;F&&F.target===E&&S&&r&&(S.unobserve(r),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(r)})),t()}),E&&!g&&S.observe(E),r&&S.observe(r));let O,B=g?Li(i):null;g&&j();function j(){let K=Li(i);B&&!mz(B,K)&&t(),B=K,O=requestAnimationFrame(j)}return t(),()=>{var K;$.forEach(F=>{s&&F.removeEventListener("scroll",t),l&&F.removeEventListener("resize",t)}),y?.(),(K=S)==null||K.disconnect(),S=null,g&&cancelAnimationFrame(O)}}var gz=QL;var vz=ZL,bz=JL,x0=tz;var xz=(i,r,t)=>{let e=new Map,s={platform:b0,...t},l={...s.platform,_c:e};return XL(i,r,{...s,platform:l})};var yz=()=>new Promise(i=>requestAnimationFrame(()=>requestAnimationFrame(()=>i()))),wz=(i,r,t=200)=>{let e=!1,s=()=>{e||(e=!0,i.removeEventListener("transitionend",l),clearTimeout(d),r())},l=()=>s();i.addEventListener("transitionend",l);let d=setTimeout(s,t)},Ra=i=>f`
|
|
2728
|
+
`,ka=class extends ao{static styles=[...ao.styles,F4]};customElements.define(ka.tagName,ka);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ea=i=>(...r)=>({_$litDirective$:i,values:r}),Rs=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,e){this._$Ct=r,this._$AM=t,this._$Ci=e}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var{I:V4}=gR,NL=i=>i;var HL=i=>i.strings===void 0,DL=()=>document.createComment(""),Ca=(i,r,t)=>{let e=i._$AA.parentNode,s=r===void 0?i._$AB:r._$AA;if(t===void 0){let l=e.insertBefore(DL(),s),d=e.insertBefore(DL(),s);t=new V4(l,d,i,i.options)}else{let l=t._$AB.nextSibling,d=t._$AM,m=d!==i;if(m){let g;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(g=i._$AU)!==d._$AU&&t._$AP(g)}if(l!==s||m){let g=t._$AA;for(;g!==l;){let E=NL(g).nextSibling;NL(e).insertBefore(g,s),g=E}}}return t},Is=(i,r,t=i)=>(i._$AI(r,t),i),P4={},Uu=(i,r=P4)=>i._$AH=r,BL=i=>i._$AH,qu=i=>{i._$AR(),i._$AA.remove()};var FL=(i,r,t)=>{let e=new Map;for(let s=r;s<=t;s++)e.set(i[s],s);return e},Si=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,r,t){let e;t===void 0?t=r:r!==void 0&&(e=r);let s=[],l=[],d=0;for(let m of i)s[d]=e?e(m,d):d,l[d]=t(m,d),d++;return{values:l,keys:s}}render(i,r,t){return this.dt(i,r,t).values}update(i,[r,t,e]){let s=BL(i),{values:l,keys:d}=this.dt(r,t,e);if(!Array.isArray(s))return this.ut=d,l;let m=this.ut??=[],g=[],E,$,y=0,_=s.length-1,S=0,O=l.length-1;for(;y<=_&&S<=O;)if(s[y]===null)y++;else if(s[_]===null)_--;else if(m[y]===d[S])g[S]=Is(s[y],l[S]),y++,S++;else if(m[_]===d[O])g[O]=Is(s[_],l[O]),_--,O--;else if(m[y]===d[O])g[O]=Is(s[y],l[O]),Ca(i,g[O+1],s[y]),y++,O--;else if(m[_]===d[S])g[S]=Is(s[_],l[S]),Ca(i,s[y],s[_]),_--,S++;else if(E===void 0&&(E=FL(d,S,O),$=FL(m,y,_)),E.has(m[y]))if(E.has(m[_])){let B=$.get(d[S]),j=B!==void 0?s[B]:null;if(j===null){let K=Ca(i,s[y]);Is(K,l[S]),g[S]=K}else g[S]=Is(j,l[S]),Ca(i,s[y],j),s[B]=null;S++}else qu(s[_]),_--;else qu(s[y]),y++;for(;S<=O;){let B=Ca(i,g[O+1]);Is(B,l[S]),g[S++]=B}for(;y<=_;){let B=s[y++];B!==null&&qu(B)}return this.ut=d,Uu(i,g),Ee}});var dr=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.PROPERTY&&i.type!==qo.ATTRIBUTE&&i.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!HL(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===Ee||r===L)return r;let t=i.element,e=i.name;if(i.type===qo.PROPERTY){if(r===t[e])return Ee}else if(i.type===qo.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(e))return Ee}else if(i.type===qo.ATTRIBUTE&&t.getAttribute(e)===r+"")return Ee;return Uu(i),r}});var ju=new Map,VL=(i,r)=>{for(let[t,e]of ju)t!==i&&e();ju.clear(),ju.set(i,r)},p0=i=>{ju.delete(i)};var Ls=Math.min,Me=Math.max,jc=Math.round,Kc=Math.floor,jo=i=>({x:i,y:i}),U4={left:"right",right:"left",bottom:"top",top:"bottom"};function h0(i,r,t){return Me(i,Ls(r,t))}function $a(i,r){return typeof i=="function"?i(r):i}function rs(i){return i.split("-")[0]}function Ta(i){return i.split("-")[1]}function u0(i){return i==="x"?"y":"x"}function m0(i){return i==="y"?"height":"width"}function cr(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function f0(i){return u0(cr(i))}function qL(i,r,t){t===void 0&&(t=!1);let e=Ta(i),s=f0(i),l=m0(s),d=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(d=qc(d)),[d,qc(d)]}function jL(i){let r=qc(i);return[Ku(i),r,Ku(r)]}function Ku(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var PL=["left","right"],UL=["right","left"],q4=["top","bottom"],j4=["bottom","top"];function K4(i,r,t){switch(i){case"top":case"bottom":return t?r?UL:PL:r?PL:UL;case"left":case"right":return r?q4:j4;default:return[]}}function KL(i,r,t,e){let s=Ta(i),l=K4(rs(i),t==="start",e);return s&&(l=l.map(d=>d+"-"+s),r&&(l=l.concat(l.map(Ku)))),l}function qc(i){let r=rs(i);return U4[r]+i.slice(r.length)}function W4(i){return{top:0,right:0,bottom:0,left:0,...i}}function WL(i){return typeof i!="number"?W4(i):{top:i,right:i,bottom:i,left:i}}function Ai(i){let{x:r,y:t,width:e,height:s}=i;return{width:e,height:s,top:t,left:r,right:r+e,bottom:t+s,x:r,y:t}}function YL(i,r,t){let{reference:e,floating:s}=i,l=cr(r),d=f0(r),m=m0(d),g=rs(r),E=l==="y",$=e.x+e.width/2-s.width/2,y=e.y+e.height/2-s.height/2,_=e[m]/2-s[m]/2,S;switch(g){case"top":S={x:$,y:e.y-s.height};break;case"bottom":S={x:$,y:e.y+e.height};break;case"right":S={x:e.x+e.width,y};break;case"left":S={x:e.x-s.width,y};break;default:S={x:e.x,y:e.y}}switch(Ta(r)){case"start":S[d]-=_*(t&&E?-1:1);break;case"end":S[d]+=_*(t&&E?-1:1);break}return S}async function GL(i,r){var t;r===void 0&&(r={});let{x:e,y:s,platform:l,rects:d,elements:m,strategy:g}=i,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:y="floating",altBoundary:_=!1,padding:S=0}=$a(r,i),O=WL(S),j=m[_?y==="floating"?"reference":"floating":y],K=Ai(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(j)))==null||t?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:E,rootBoundary:$,strategy:g})),F=y==="floating"?{x:e,y:s,width:d.floating.width,height:d.floating.height}:d.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),J=await(l.isElement==null?void 0:l.isElement(G))?await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1}:{x:1,y:1},ge=Ai(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:F,offsetParent:G,strategy:g}):F);return{top:(K.top-ge.top+O.top)/J.y,bottom:(ge.bottom-K.bottom+O.bottom)/J.y,left:(K.left-ge.left+O.left)/J.x,right:(ge.right-K.right+O.right)/J.x}}var Y4=50,XL=async(i,r,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:d}=t,m=d.detectOverflow?d:{...d,detectOverflow:GL},g=await(d.isRTL==null?void 0:d.isRTL(r)),E=await d.getElementRects({reference:i,floating:r,strategy:s}),{x:$,y}=YL(E,e,g),_=e,S=0,O={};for(let B=0;B<l.length;B++){let j=l[B];if(!j)continue;let{name:K,fn:F}=j,{x:G,y:J,data:ge,reset:Oe}=await F({x:$,y,initialPlacement:e,placement:_,strategy:s,middlewareData:O,rects:E,platform:m,elements:{reference:i,floating:r}});$=G??$,y=J??y,O[K]={...O[K],...ge},Oe&&S<Y4&&(S++,typeof Oe=="object"&&(Oe.placement&&(_=Oe.placement),Oe.rects&&(E=Oe.rects===!0?await d.getElementRects({reference:i,floating:r,strategy:s}):Oe.rects),{x:$,y}=YL(E,_,g)),B=-1)}return{x:$,y,placement:_,strategy:s,middlewareData:O}};var JL=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,e;let{placement:s,middlewareData:l,rects:d,initialPlacement:m,platform:g,elements:E}=r,{mainAxis:$=!0,crossAxis:y=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:B=!0,...j}=$a(i,r);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let K=rs(s),F=cr(m),G=rs(m)===m,J=await(g.isRTL==null?void 0:g.isRTL(E.floating)),ge=_||(G||!B?[qc(m)]:jL(m)),Oe=O!=="none";!_&&Oe&&ge.push(...KL(m,B,O,J));let rr=[m,...ge],si=await g.detectOverflow(r,j),ii=[],Xr=((e=l.flip)==null?void 0:e.overflows)||[];if($&&ii.push(si[K]),y){let ni=qL(s,d,J);ii.push(si[ni[0]],si[ni[1]])}if(Xr=[...Xr,{placement:s,overflows:ii}],!ii.every(ni=>ni<=0)){var cc,pc;let ni=(((cc=l.flip)==null?void 0:cc.index)||0)+1,mb=rr[ni];if(mb&&(!(y==="alignment"?F!==cr(mb):!1)||Xr.every(Vo=>cr(Vo.placement)===F?Vo.overflows[0]>0:!0)))return{data:{index:ni,overflows:Xr},reset:{placement:mb}};let uc=(pc=Xr.filter(ai=>ai.overflows[0]<=0).sort((ai,Vo)=>ai.overflows[1]-Vo.overflows[1])[0])==null?void 0:pc.placement;if(!uc)switch(S){case"bestFit":{var hc;let ai=(hc=Xr.filter(Vo=>{if(Oe){let ks=cr(Vo.placement);return ks===F||ks==="y"}return!0}).map(Vo=>[Vo.placement,Vo.overflows.filter(ks=>ks>0).reduce((ks,b3)=>ks+b3,0)]).sort((Vo,ks)=>Vo[1]-ks[1])[0])==null?void 0:hc[0];ai&&(uc=ai);break}case"initialPlacement":uc=m;break}if(s!==uc)return{reset:{placement:uc}}}return{}}}};var G4=new Set(["left","top"]);async function X4(i,r){let{placement:t,platform:e,elements:s}=i,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),d=rs(t),m=Ta(t),g=cr(t)==="y",E=G4.has(d)?-1:1,$=l&&g?-1:1,y=$a(r,i),{mainAxis:_,crossAxis:S,alignmentAxis:O}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof O=="number"&&(S=m==="end"?O*-1:O),g?{x:S*$,y:_*E}:{x:_*E,y:S*$}}var QL=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,e;let{x:s,y:l,placement:d,middlewareData:m}=r,g=await X4(r,i);return d===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:s+g.x,y:l+g.y,data:{...g,placement:d}}}}},ZL=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:e,placement:s,platform:l}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:K=>{let{x:F,y:G}=K;return{x:F,y:G}}},...E}=$a(i,r),$={x:t,y:e},y=await l.detectOverflow(r,E),_=cr(rs(s)),S=u0(_),O=$[S],B=$[_];if(d){let K=S==="y"?"top":"left",F=S==="y"?"bottom":"right",G=O+y[K],J=O-y[F];O=h0(G,O,J)}if(m){let K=_==="y"?"top":"left",F=_==="y"?"bottom":"right",G=B+y[K],J=B-y[F];B=h0(G,B,J)}let j=g.fn({...r,[S]:O,[_]:B});return{...j,data:{x:j.x-t,y:j.y-e,enabled:{[S]:d,[_]:m}}}}}};var tz=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var t,e;let{placement:s,rects:l,platform:d,elements:m}=r,{apply:g=()=>{},...E}=$a(i,r),$=await d.detectOverflow(r,E),y=rs(s),_=Ta(s),S=cr(s)==="y",{width:O,height:B}=l.floating,j,K;y==="top"||y==="bottom"?(j=y,K=_===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(K=y,j=_==="end"?"top":"bottom");let F=B-$.top-$.bottom,G=O-$.left-$.right,J=Ls(B-$[j],F),ge=Ls(O-$[K],G),Oe=!r.middlewareData.shift,rr=J,si=ge;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(si=G),(e=r.middlewareData.shift)!=null&&e.enabled.y&&(rr=F),Oe&&!_){let Xr=Me($.left,0),cc=Me($.right,0),pc=Me($.top,0),hc=Me($.bottom,0);S?si=O-2*(Xr!==0||cc!==0?Xr+cc:Me($.left,$.right)):rr=B-2*(pc!==0||hc!==0?pc+hc:Me($.top,$.bottom))}await g({...r,availableWidth:si,availableHeight:rr});let ii=await d.getDimensions(m.floating);return O!==ii.width||B!==ii.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<"u"}function Ri(i){return oz(i)?(i.nodeName||"").toLowerCase():"#document"}function qe(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function Ko(i){var r;return(r=(oz(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function oz(i){return Wu()?i instanceof Node||i instanceof qe(i).Node:!1}function $o(i){return Wu()?i instanceof Element||i instanceof qe(i).Element:!1}function pr(i){return Wu()?i instanceof HTMLElement||i instanceof qe(i).HTMLElement:!1}function ez(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof qe(i).ShadowRoot}function Aa(i){let{overflow:r,overflowX:t,overflowY:e,display:s}=To(i);return/auto|scroll|overlay|hidden|clip/.test(r+e+t)&&s!=="inline"&&s!=="contents"}function rz(i){return/^(table|td|th)$/.test(Ri(i))}function Wc(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var J4=/transform|translate|scale|rotate|perspective|filter/,Q4=/paint|layout|strict|content/,_i=i=>!!i&&i!=="none",g0;function Yu(i){let r=$o(i)?To(i):i;return _i(r.transform)||_i(r.translate)||_i(r.scale)||_i(r.rotate)||_i(r.perspective)||!Gu()&&(_i(r.backdropFilter)||_i(r.filter))||J4.test(r.willChange||"")||Q4.test(r.contain||"")}function sz(i){let r=ss(i);for(;pr(r)&&!Ii(r);){if(Yu(r))return r;if(Wc(r))return null;r=ss(r)}return null}function Gu(){return g0==null&&(g0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),g0}function Ii(i){return/^(html|body|#document)$/.test(Ri(i))}function To(i){return qe(i).getComputedStyle(i)}function Yc(i){return $o(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function ss(i){if(Ri(i)==="html")return i;let r=i.assignedSlot||i.parentNode||ez(i)&&i.host||Ko(i);return ez(r)?r.host:r}function iz(i){let r=ss(i);return Ii(r)?i.ownerDocument?i.ownerDocument.body:i.body:pr(r)&&Aa(r)?r:iz(r)}function Sa(i,r,t){var e;r===void 0&&(r=[]),t===void 0&&(t=!0);let s=iz(i),l=s===((e=i.ownerDocument)==null?void 0:e.body),d=qe(s);if(l){let m=Xu(d);return r.concat(d,d.visualViewport||[],Aa(s)?s:[],m&&t?Sa(m):[])}else return r.concat(s,Sa(s,[],t))}function Xu(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function dz(i){let r=To(i),t=parseFloat(r.width)||0,e=parseFloat(r.height)||0,s=pr(i),l=s?i.offsetWidth:t,d=s?i.offsetHeight:e,m=jc(t)!==l||jc(e)!==d;return m&&(t=l,e=d),{width:t,height:e,$:m}}function b0(i){return $o(i)?i:i.contextElement}function _a(i){let r=b0(i);if(!pr(r))return jo(1);let t=r.getBoundingClientRect(),{width:e,height:s,$:l}=dz(r),d=(l?jc(t.width):t.width)/e,m=(l?jc(t.height):t.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}var Z4=jo(0);function cz(i){let r=qe(i);return!Gu()||!r.visualViewport?Z4:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tV(i,r,t){return r===void 0&&(r=!1),!t||r&&t!==qe(i)?!1:r}function Li(i,r,t,e){r===void 0&&(r=!1),t===void 0&&(t=!1);let s=i.getBoundingClientRect(),l=b0(i),d=jo(1);r&&(e?$o(e)&&(d=_a(e)):d=_a(i));let m=tV(l,t,e)?cz(l):jo(0),g=(s.left+m.x)/d.x,E=(s.top+m.y)/d.y,$=s.width/d.x,y=s.height/d.y;if(l){let _=qe(l),S=e&&$o(e)?qe(e):e,O=_,B=Xu(O);for(;B&&e&&S!==O;){let j=_a(B),K=B.getBoundingClientRect(),F=To(B),G=K.left+(B.clientLeft+parseFloat(F.paddingLeft))*j.x,J=K.top+(B.clientTop+parseFloat(F.paddingTop))*j.y;g*=j.x,E*=j.y,$*=j.x,y*=j.y,g+=G,E+=J,O=qe(B),B=Xu(O)}}return Ai({width:$,height:y,x:g,y:E})}function Ju(i,r){let t=Yc(i).scrollLeft;return r?r.left+t:Li(Ko(i)).left+t}function pz(i,r){let t=i.getBoundingClientRect(),e=t.left+r.scrollLeft-Ju(i,t),s=t.top+r.scrollTop;return{x:e,y:s}}function eV(i){let{elements:r,rect:t,offsetParent:e,strategy:s}=i,l=s==="fixed",d=Ko(e),m=r?Wc(r.floating):!1;if(e===d||m&&l)return t;let g={scrollLeft:0,scrollTop:0},E=jo(1),$=jo(0),y=pr(e);if((y||!y&&!l)&&((Ri(e)!=="body"||Aa(d))&&(g=Yc(e)),y)){let S=Li(e);E=_a(e),$.x=S.x+e.clientLeft,$.y=S.y+e.clientTop}let _=d&&!y&&!l?pz(d,g):jo(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-g.scrollLeft*E.x+$.x+_.x,y:t.y*E.y-g.scrollTop*E.y+$.y+_.y}}function oV(i){return Array.from(i.getClientRects())}function rV(i){let r=Ko(i),t=Yc(i),e=i.ownerDocument.body,s=Me(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth),l=Me(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ju(i),m=-t.scrollTop;return To(e).direction==="rtl"&&(d+=Me(r.clientWidth,e.clientWidth)-s),{width:s,height:l,x:d,y:m}}var nz=25;function sV(i,r){let t=qe(i),e=Ko(i),s=t.visualViewport,l=e.clientWidth,d=e.clientHeight,m=0,g=0;if(s){l=s.width,d=s.height;let $=Gu();(!$||$&&r==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}let E=Ju(e);if(E<=0){let $=e.ownerDocument,y=$.body,_=getComputedStyle(y),S=$.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,O=Math.abs(e.clientWidth-y.clientWidth-S);O<=nz&&(l-=O)}else E<=nz&&(l+=E);return{width:l,height:d,x:m,y:g}}function iV(i,r){let t=Li(i,!0,r==="fixed"),e=t.top+i.clientTop,s=t.left+i.clientLeft,l=pr(i)?_a(i):jo(1),d=i.clientWidth*l.x,m=i.clientHeight*l.y,g=s*l.x,E=e*l.y;return{width:d,height:m,x:g,y:E}}function az(i,r,t){let e;if(r==="viewport")e=sV(i,t);else if(r==="document")e=rV(Ko(i));else if($o(r))e=iV(r,t);else{let s=cz(i);e={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Ai(e)}function hz(i,r){let t=ss(i);return t===r||!$o(t)||Ii(t)?!1:To(t).position==="fixed"||hz(t,r)}function nV(i,r){let t=r.get(i);if(t)return t;let e=Sa(i,[],!1).filter(m=>$o(m)&&Ri(m)!=="body"),s=null,l=To(i).position==="fixed",d=l?ss(i):i;for(;$o(d)&&!Ii(d);){let m=To(d),g=Yu(d);!g&&m.position==="fixed"&&(s=null),(l?!g&&!s:!g&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Aa(d)&&!g&&hz(i,d))?e=e.filter($=>$!==d):s=m,d=ss(d)}return r.set(i,e),e}function aV(i){let{element:r,boundary:t,rootBoundary:e,strategy:s}=i,d=[...t==="clippingAncestors"?Wc(r)?[]:nV(r,this._c):[].concat(t),e],m=az(r,d[0],s),g=m.top,E=m.right,$=m.bottom,y=m.left;for(let _=1;_<d.length;_++){let S=az(r,d[_],s);g=Me(S.top,g),E=Ls(S.right,E),$=Ls(S.bottom,$),y=Me(S.left,y)}return{width:E-y,height:$-g,x:y,y:g}}function lV(i){let{width:r,height:t}=dz(i);return{width:r,height:t}}function dV(i,r,t){let e=pr(r),s=Ko(r),l=t==="fixed",d=Li(i,!0,l,r),m={scrollLeft:0,scrollTop:0},g=jo(0);function E(){g.x=Ju(s)}if(e||!e&&!l)if((Ri(r)!=="body"||Aa(s))&&(m=Yc(r)),e){let S=Li(r,!0,l,r);g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}else s&&E();l&&!e&&s&&E();let $=s&&!e&&!l?pz(s,m):jo(0),y=d.left+m.scrollLeft-g.x-$.x,_=d.top+m.scrollTop-g.y-$.y;return{x:y,y:_,width:d.width,height:d.height}}function v0(i){return To(i).position==="static"}function lz(i,r){if(!pr(i)||To(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return Ko(i)===t&&(t=t.ownerDocument.body),t}function uz(i,r){let t=qe(i);if(Wc(i))return t;if(!pr(i)){let s=ss(i);for(;s&&!Ii(s);){if($o(s)&&!v0(s))return s;s=ss(s)}return t}let e=lz(i,r);for(;e&&rz(e)&&v0(e);)e=lz(e,r);return e&&Ii(e)&&v0(e)&&!Yu(e)?t:e||sz(i)||t}var cV=async function(i){let r=this.getOffsetParent||uz,t=this.getDimensions,e=await t(i.floating);return{reference:dV(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function pV(i){return To(i).direction==="rtl"}var x0={convertOffsetParentRelativeRectToViewportRelativeRect:eV,getDocumentElement:Ko,getClippingRect:aV,getOffsetParent:uz,getElementRects:cV,getClientRects:oV,getDimensions:lV,getScale:_a,isElement:$o,isRTL:pV};function mz(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function hV(i,r){let t=null,e,s=Ko(i);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),l();let E=i.getBoundingClientRect(),{left:$,top:y,width:_,height:S}=E;if(m||r(),!_||!S)return;let O=Kc(y),B=Kc(s.clientWidth-($+_)),j=Kc(s.clientHeight-(y+S)),K=Kc($),G={rootMargin:-O+"px "+-B+"px "+-j+"px "+-K+"px",threshold:Me(0,Ls(1,g))||1},J=!0;function ge(Oe){let rr=Oe[0].intersectionRatio;if(rr!==g){if(!J)return d();rr?d(!1,rr):e=setTimeout(()=>{d(!1,1e-7)},1e3)}rr===1&&!mz(E,i.getBoundingClientRect())&&d(),J=!1}try{t=new IntersectionObserver(ge,{...G,root:s.ownerDocument})}catch{t=new IntersectionObserver(ge,G)}t.observe(i)}return d(!0),l}function fz(i,r,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,E=b0(i),$=s||l?[...E?Sa(E):[],...r?Sa(r):[]]:[];$.forEach(K=>{s&&K.addEventListener("scroll",t,{passive:!0}),l&&K.addEventListener("resize",t)});let y=E&&m?hV(E,t):null,_=-1,S=null;d&&(S=new ResizeObserver(K=>{let[F]=K;F&&F.target===E&&S&&r&&(S.unobserve(r),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(r)})),t()}),E&&!g&&S.observe(E),r&&S.observe(r));let O,B=g?Li(i):null;g&&j();function j(){let K=Li(i);B&&!mz(B,K)&&t(),B=K,O=requestAnimationFrame(j)}return t(),()=>{var K;$.forEach(F=>{s&&F.removeEventListener("scroll",t),l&&F.removeEventListener("resize",t)}),y?.(),(K=S)==null||K.disconnect(),S=null,g&&cancelAnimationFrame(O)}}var gz=QL;var vz=ZL,bz=JL,y0=tz;var xz=(i,r,t)=>{let e=new Map,s={platform:x0,...t},l={...s.platform,_c:e};return XL(i,r,{...s,platform:l})};var yz=()=>new Promise(i=>requestAnimationFrame(()=>requestAnimationFrame(()=>i()))),wz=(i,r,t=200)=>{let e=!1,s=()=>{e||(e=!0,i.removeEventListener("transitionend",l),clearTimeout(d),r())},l=()=>s();i.addEventListener("transitionend",l);let d=setTimeout(s,t)},Ra=i=>f`
|
|
2729
2729
|
<svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${i}">
|
|
2730
2730
|
<polygon class="arrow-fill" points="0,0 5,6 10,0" />
|
|
2731
2731
|
<path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
|
|
2732
2732
|
</svg>
|
|
2733
|
-
`,uV={...
|
|
2733
|
+
`,uV={...x0,getOffsetParent:()=>window},mV=i=>({name:"alignInner",fn(r){let t=i.getElement();if(!t)return{};let e=i.padding??8,{rects:s}=r,l=r.elements.floating,d=l.getBoundingClientRect(),m=t.getBoundingClientRect(),g=m.top-d.top+m.height/2,E=i.getReferenceInner?.(),y=(E?E.getBoundingClientRect().top+E.getBoundingClientRect().height/2:s.reference.y+s.reference.height/2)-g,_=globalThis.innerHeight,S=d.height,O=e,B=_-S-e,j=Math.max(O,Math.min(y,B)),K=l.shadowRoot?.querySelector(".Popup")??l.querySelector(".Popup");if(K&&j!==y){let J=y-j;K.scrollTop=Math.max(0,K.scrollTop-J)}y=j;let F=m.left-d.left;return{x:E?E.getBoundingClientRect().left-F:s.reference.x,y,reset:!1}}}),fV=(i,r,t={})=>{let{placement:e="bottom-start",offsetPx:s=4,matchWidth:l=!1,minMatchWidth:d=!1,padding:m=8}=t,E=t.alignToInner?.getElement()!=null?[mV(t.alignToInner)]:[gz(s),bz(),vz({padding:m})];return l?E.push(y0({apply({rects:$,elements:y}){Object.assign(y.floating.style,{width:`${$.reference.width}px`})}})):d&&E.push(y0({apply({rects:$,elements:y}){Object.assign(y.floating.style,{minWidth:`${$.reference.width}px`})}})),xz(i,r,{placement:e,strategy:"fixed",middleware:E,platform:uV})},kz=(i,r,t={})=>{let{onPosition:e,...s}=t;return fz(i,r,()=>{fV(i,r,s).then(l=>{Object.assign(r.style,{left:`${l.x}px`,top:`${l.y}px`}),e?.(l)})})};var Te=class{#t;#e;#o;#n;#d;#c;#a;#f;#g;#l;#s;#m;#p;#h;#w;#x;#k;#v=[];#r=null;#b=null;#i=!1;#u=!1;#y=0;get isOpen(){return this.#i}get isAnimating(){return this.#u}get isStarting(){return this.#i&&this.#u}get isEnding(){return!this.#i&&this.#u}get positionerElement(){return this.#r}get renderRoot(){return this.#r?.shadowRoot??this.#r}set placement(r){this.#d=r}set offset(r){this.#c=r}constructor(r,t){this.#t=r,this.#e=t.getAnchor,this.#o=t.matchWidth??!0,this.#n=t.minMatchWidth??!1,this.#d=t.placement??"bottom-start",this.#c=t.offset??4,this.#a=t.styles,this.#f=t.onOpen,this.#g=t.onClose,this.#l=t.onPosition,this.#s=t.renderPopup,this.#m=t.contentContainer,this.#p=t.contentSelector,this.#h=t.forwardProperties??[],this.#w=t.getOverlayRoot??(()=>document.body),this.#x=t.alignToInner,this.#k=t.alignToInnerReference,r.addController(this)}hostConnected(){document.addEventListener("click",this.#C)}hostDisconnected(){document.removeEventListener("click",this.#C),this.#O(),p0(this.#t)}hostUpdated(){if(this.#i?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#s&&(this.#i||this.isEnding)){let r=this.renderRoot;r&&Vh(this.#s(this),r)}this.#m&&this.#i&&this.#v.length===0&&this.#L()}open(){if(this.#i)return;this.#y++;let r=this.#y;VL(this.#t,()=>this.close()),this.#i=!0,this.#u=!0,this.#A(),this.#I(),this.#f?.(),this.#t.requestUpdate(),yz().then(()=>{r===this.#y&&(this.#u=!1,this.#t.requestUpdate())})}close(){if(!this.#i)return;this.#y++,this.#u=!0,this.#t.requestUpdate();let r=this.renderRoot?.querySelector(".Popup");if(!r){this.#E();return}wz(r,()=>this.#E())}#E(){this.#i&&(this.#i=!1,this.#u=!1,this.#T(),p0(this.#t),this.#g?.(),this.#_(),this.#t.requestUpdate())}#C=r=>{if(!this.#i)return;let t=r.composedPath();!t.includes(this.#t)&&!this.#S(t)&&this.close()};#S(r){return this.#r?r.includes(this.#r):!1}#A(){if(this.#r){this.#r.style.display="",this.#$(this.#r);return}let r=this.#w(),t=document.createElement("div");t.style.position="fixed",t.style.zIndex="1000",t.style.pointerEvents="none",t.setAttribute("data-floating-portal",""),t.setAttribute("data-dui-portal-for",this.#t.tagName.toLowerCase());let e=this.#t.constructor,s=d=>d?Array.isArray(d)?d.flatMap(s):[d]:[],l=[...s(e.styles),...this.#a??[]];if(l.length>0){let d=t.attachShadow({mode:"open"});Ih(d,l)}this.#$(t),r.appendChild(t),this.#r=t}#$(r){if(this.#h.length===0)return;let t=getComputedStyle(this.#t);for(let e of this.#h){let s=t.getPropertyValue(e).trim();s&&r.style.setProperty(e,s)}}#_(){this.#r&&(this.#r.style.display="none")}#R(){this.#r?.remove(),this.#r=null}#I(){if(this.#b)return;let r=this.#e(),t=this.#r;!r||!t||(this.#b=kz(r,t,{placement:this.#d,offsetPx:this.#c,matchWidth:this.#o,minMatchWidth:this.#n,onPosition:this.#l,alignToInner:this.#x?{getElement:this.#x,getReferenceInner:this.#k}:void 0}))}#T(){this.#b?.(),this.#b=null}#L(){let r=this.renderRoot?.querySelector(this.#m);if(!r)return;let t=this.#p?Array.from(this.#t.querySelectorAll(`:scope > ${this.#p}`)):Array.from(this.#t.childNodes);for(let e of t)r.appendChild(e),this.#v.push(e)}#z(){for(let r of this.#v)this.#t.appendChild(r);this.#v=[]}#O(){this.#T(),this.#z(),this.#R()}};var M0=M("value-change",{bubbles:!0,composed:!0}),Zu=M("values-change",{bubbles:!0,composed:!0}),gV=b`
|
|
2734
2734
|
:host {
|
|
2735
2735
|
display: block;
|
|
2736
2736
|
}
|
|
@@ -2838,7 +2838,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2838
2838
|
text-overflow: ellipsis;
|
|
2839
2839
|
white-space: nowrap;
|
|
2840
2840
|
}
|
|
2841
|
-
`],Ez,Cz,$z,Tz,Sz,Az,_z,Rz,Iz,Lz,Ia,It,
|
|
2841
|
+
`],Ez,Cz,$z,Tz,Sz,Az,_z,Rz,Iz,Lz,Ia,It,w0,k0,E0,C0,$0,T0,S0,Q,zz,A0,_0,is,hr,R0,I0,Qu,zi,oe,Gc,Oi,L0,tm,em,om,z0,O0,rm,sm,im,nm,am,lm,ye=class extends(Lz=x,Iz=[u({attribute:!1})],Rz=[u({type:String})],_z=[u({attribute:!1})],Az=[u({type:Boolean,reflect:!0})],Sz=[u({type:String})],Tz=[u({type:Boolean,reflect:!0})],$z=[u({type:String})],Cz=[C()],Ez=[C()],Lz){constructor(){super();a(this,Q);a(this,Ia);a(this,w0,n(It,8,this,[])),n(It,11,this);a(this,k0,n(It,12,this,"")),n(It,15,this);a(this,E0,n(It,16,this,new Set)),n(It,19,this);a(this,C0,n(It,20,this,!1)),n(It,23,this);a(this,$0,n(It,24,this,"Search...")),n(It,27,this);a(this,T0,n(It,28,this,!1)),n(It,31,this);a(this,S0,n(It,32,this,"")),n(It,35,this);a(this,A0,n(It,36,this,-1)),n(It,39,this);a(this,R0,n(It,40,this,"")),n(It,43,this);a(this,oe,new Te(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:bV,onOpen:()=>{if(h(this,Q,-1,hr),!this.multiple){h(this,Q,"",zi);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(h(this,Q,-1,hr),!this.multiple){let t=this.options.find(e=>e.value===this.value);h(this,Q,t?.label??"",zi)}},renderPopup:t=>{let e=o(this,Q,L0),s=e.length===0;return f`
|
|
2842
2842
|
<div
|
|
2843
2843
|
class="Popup"
|
|
2844
2844
|
?data-starting-style="${t.isStarting}"
|
|
@@ -2859,7 +2859,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2859
2859
|
</div>
|
|
2860
2860
|
</dui-scroll-area>
|
|
2861
2861
|
</div>
|
|
2862
|
-
`}}));a(this,Gc,`combobox-input-${crypto.randomUUID().slice(0,8)}`);a(this,Oi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);a(this,tm,t=>{let e=t.target;h(this,Q,e.value,zi),o(this,oe).isOpen||this.disabled||o(this,oe).open(),h(this,Q,-1,hr)});a(this,em,()=>{!o(this,oe).isOpen&&!this.disabled&&o(this,oe).open()});a(this,om,t=>{let e=o(this,Q,
|
|
2862
|
+
`}}));a(this,Gc,`combobox-input-${crypto.randomUUID().slice(0,8)}`);a(this,Oi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);a(this,tm,t=>{let e=t.target;h(this,Q,e.value,zi),o(this,oe).isOpen||this.disabled||o(this,oe).open(),h(this,Q,-1,hr)});a(this,em,()=>{!o(this,oe).isOpen&&!this.disabled&&o(this,oe).open()});a(this,om,t=>{let e=o(this,Q,L0);switch(t.key){case"ArrowDown":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.min(o(this,Q,is)+1,e.length-1),hr):this.disabled||o(this,oe).open();break;case"ArrowUp":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.max(o(this,Q,is)-1,0),hr):this.disabled||o(this,oe).open();break;case"Enter":{if(t.preventDefault(),o(this,oe).isOpen){let s=o(this,Q,is)>=0?o(this,Q,is):0,l=e[s];l&&p(this,Q,z0).call(this,l)}else this.disabled||o(this,oe).open();break}case"Escape":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,"",zi),o(this,oe).close());break;case"Tab":o(this,oe).isOpen&&o(this,oe).close();break;case"Home":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,0,hr));break;case"End":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,e.length-1,hr));break;case"Backspace":if(this.multiple&&o(this,Q,Qu)===""&&this.values.size>0){let s=Array.from(this.values).at(-1);s&&p(this,Q,O0).call(this,s)}break}});a(this,rm,t=>{p(this,Q,z0).call(this,t)});a(this,sm,t=>{t.preventDefault()});a(this,im,()=>{o(this,Q,is)!==-1&&h(this,Q,-1,hr)});a(this,nm,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});a(this,am,t=>{let s=this.options.find(l=>l.value===t)?.label??t;return f`
|
|
2863
2863
|
<span class="Chip">
|
|
2864
2864
|
<span class="ChipLabel">${s}</span>
|
|
2865
2865
|
<button
|
|
@@ -2867,7 +2867,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2867
2867
|
type="button"
|
|
2868
2868
|
tabindex="-1"
|
|
2869
2869
|
@mousedown="${l=>l.preventDefault()}"
|
|
2870
|
-
@click="${l=>{l.stopPropagation(),p(this,Q,
|
|
2870
|
+
@click="${l=>{l.stopPropagation(),p(this,Q,O0).call(this,t)}}"
|
|
2871
2871
|
>
|
|
2872
2872
|
<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></dui-icon>
|
|
2873
2873
|
</button>
|
|
@@ -2921,7 +2921,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2921
2921
|
${t}
|
|
2922
2922
|
<dui-icon class="Arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></dui-icon>
|
|
2923
2923
|
</div>
|
|
2924
|
-
`}};It=A(Lz),Ia=new WeakMap,
|
|
2924
|
+
`}};It=A(Lz),Ia=new WeakMap,w0=new WeakMap,k0=new WeakMap,E0=new WeakMap,C0=new WeakMap,$0=new WeakMap,T0=new WeakMap,S0=new WeakMap,Q=new WeakSet,zz=function(){if(this.multiple){let t=new FormData;for(let e of this.values)t.append(this.name||"values",e);o(this,Ia).setFormValue(t)}else o(this,Ia).setFormValue(this.value||null)},A0=new WeakMap,R0=new WeakMap,oe=new WeakMap,Gc=new WeakMap,Oi=new WeakMap,L0=function(){let t=o(this,Q,Qu).toLowerCase(),e=this.options;return t?e.filter(s=>s.label.toLowerCase().includes(t)):e},tm=new WeakMap,em=new WeakMap,om=new WeakMap,z0=function(t){if(this.multiple){let e=new Set(this.values),s=!e.has(t.value);s?e.add(t.value):e.delete(t.value),this.values=e,h(this,Q,"",zi),h(this,Q,-1,hr),this.dispatchEvent(Zu({value:t.value,selected:s,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,h(this,Q,t.label,zi),this.dispatchEvent(M0({value:t.value,option:t})),o(this,oe).close()},O0=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(Zu({value:t,selected:!1,values:e}))},rm=new WeakMap,sm=new WeakMap,im=new WeakMap,nm=new WeakMap,am=new WeakMap,lm=new WeakMap,c(It,4,"options",Iz,ye,w0),c(It,4,"value",Rz,ye,k0),c(It,4,"values",_z,ye,E0),c(It,4,"multiple",Az,ye,C0),c(It,4,"placeholder",Sz,ye,$0),c(It,4,"disabled",Tz,ye,T0),c(It,4,"name",$z,ye,S0),_0=c(It,20,"#highlightedIndex",Cz,Q,A0),is=_0.get,hr=_0.set,I0=c(It,20,"#inputValue",Ez,Q,R0),Qu=I0.get,zi=I0.set,T(It,ye),v(ye,"tagName","dui-combobox"),v(ye,"formAssociated",!0),v(ye,"styles",[w,gV,vV]);var xV=k`
|
|
2925
2925
|
/* ---- Chips (multi-select container) ---- */
|
|
2926
2926
|
|
|
2927
2927
|
.Chips {
|
|
@@ -3083,7 +3083,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3083
3083
|
flex-direction: column;
|
|
3084
3084
|
overflow: hidden;
|
|
3085
3085
|
}
|
|
3086
|
-
`,Oz,Mz,Nz,Dz,Hz,Bz,Fz,Vz,jt,
|
|
3086
|
+
`,Oz,Mz,Nz,Dz,Hz,Bz,Fz,Vz,jt,N0,D0,H0,B0,F0,V0,zs,Pz,pt,P0,U0,Jc,Qc,Os,Ms,Zc,ur,cm,Uz,pm,za,hm,um,mm,fm,gm,vm,bm,xm,ym,tp,ep,q0,dm,je=class extends(Vz=x,Fz=[u({type:Boolean})],Bz=[u({type:Boolean,attribute:"should-filter"})],Hz=[u({type:String})],Dz=[u({attribute:!1})],Nz=[C()],Mz=[C()],Oz=[lt({context:So}),C()],Vz){constructor(){super(...arguments);a(this,pt);a(this,N0,n(jt,8,this,!1)),n(jt,11,this);a(this,D0,n(jt,12,this,!0)),n(jt,15,this);a(this,H0,n(jt,16,this)),n(jt,19,this);a(this,B0,n(jt,20,this)),n(jt,23,this);a(this,F0,n(jt,24,this,"")),n(jt,27,this);a(this,P0,n(jt,28,this)),n(jt,31,this);a(this,Os,new Map);a(this,Ms,[]);a(this,Zc,new Set);a(this,ur,new Map);a(this,cm,CV());a(this,pm,t=>this.shouldFilter?o(this,ur).get(t)??0:1);a(this,hm,()=>p(this,pt,za).call(this).length);a(this,um,t=>p(this,pt,za).call(this).filter(e=>e.groupId===t).length);a(this,mm,t=>{o(this,Os).set(t.id,t),o(this,Ms).includes(t.id)||o(this,Ms).push(t.id);let e=this.filter?this.filter(t.value,o(this,pt,zs),t.keywords):Xc(o(this,pt,zs),t.value,t.textContent,t.keywords);if(o(this,ur).set(t.id,e),!o(this,pt,Jc)){let s=p(this,pt,za).call(this);s.length>0&&!s[0].disabled&&h(this,pt,s[0].id,Qc)}this.requestUpdate()});a(this,fm,t=>{o(this,Os).delete(t),h(this,Ms,o(this,Ms).filter(e=>e!==t)),o(this,ur).delete(t),this.requestUpdate()});a(this,gm,t=>{o(this,Os).set(t.id,t);let e=this.filter?this.filter(t.value,o(this,pt,zs),t.keywords):Xc(o(this,pt,zs),t.value,t.textContent,t.keywords);o(this,ur).set(t.id,e),this.requestUpdate()});a(this,vm,t=>{o(this,Zc).add(t)});a(this,bm,t=>{o(this,Zc).delete(t)});a(this,xm,t=>{h(this,pt,t,Pz),p(this,pt,Uz).call(this);let s=p(this,pt,za).call(this).find(l=>!l.disabled);h(this,pt,s?.id,Qc),this.dispatchEvent(wV(t))});a(this,ym,t=>{h(this,pt,t,Qc)});a(this,tp,t=>{this.dispatchEvent(yV(t))});a(this,ep,t=>{let e=p(this,pt,za).call(this).filter(d=>!d.disabled);if(e.length===0)return;let s=e.findIndex(d=>d.id===o(this,pt,Jc)),l=d=>{let m=e[d];m&&h(this,pt,m.id,Qc)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s<e.length-1?l(s+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s>0?l(s-1):this.loop&&l(e.length-1);break}case"Home":{t.preventDefault(),l(0);break}case"End":{t.preventDefault(),l(e.length-1);break}case"Enter":{t.preventDefault();let d=e.find(m=>m.id===o(this,pt,Jc));d&&o(this,tp).call(this,d.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(kV());break}}});a(this,q0,n(jt,32,this,p(this,pt,dm).call(this))),n(jt,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",o(this,ep)),this._ctx=p(this,pt,dm).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",o(this,ep))}willUpdate(){this._ctx=p(this,pt,dm).call(this)}render(){return f`<slot></slot>`}};jt=A(Vz),N0=new WeakMap,D0=new WeakMap,H0=new WeakMap,B0=new WeakMap,F0=new WeakMap,pt=new WeakSet,P0=new WeakMap,Os=new WeakMap,Ms=new WeakMap,Zc=new WeakMap,ur=new WeakMap,cm=new WeakMap,Uz=function(){o(this,ur).clear();for(let[t,e]of o(this,Os)){let s=this.filter?this.filter(e.value,o(this,pt,zs),e.keywords):Xc(o(this,pt,zs),e.value,e.textContent,e.keywords);o(this,ur).set(t,s)}},pm=new WeakMap,za=function(){return o(this,Ms).map(t=>o(this,Os).get(t)).filter(t=>t?this.shouldFilter?(o(this,ur).get(t.id)??0)>0:!0:!1)},hm=new WeakMap,um=new WeakMap,mm=new WeakMap,fm=new WeakMap,gm=new WeakMap,vm=new WeakMap,bm=new WeakMap,xm=new WeakMap,ym=new WeakMap,tp=new WeakMap,ep=new WeakMap,q0=new WeakMap,dm=function(){return{search:o(this,pt,zs),selectedItemId:o(this,pt,Jc),listId:o(this,cm),loop:this.loop,shouldFilter:this.shouldFilter,getScore:o(this,pm),getVisibleCount:o(this,hm),getGroupVisibleCount:o(this,um),registerItem:o(this,mm),unregisterItem:o(this,fm),updateItem:o(this,gm),registerGroup:o(this,vm),unregisterGroup:o(this,bm),setSearch:o(this,xm),selectItem:o(this,ym),handleItemSelect:o(this,tp)}},c(jt,4,"loop",Fz,je,N0),c(jt,4,"shouldFilter",Bz,je,D0),c(jt,4,"value",Hz,je,H0),c(jt,4,"filter",Dz,je,B0),V0=c(jt,20,"#search",Nz,pt,F0),zs=V0.get,Pz=V0.set,U0=c(jt,20,"#selectedItemId",Mz,pt,P0),Jc=U0.get,Qc=U0.set,c(jt,4,"_ctx",Oz,je,q0),T(jt,je),v(je,"tagName","dui-command"),v(je,"styles",[w,$V]);var TV=b`
|
|
3087
3087
|
:host {
|
|
3088
3088
|
display: block;
|
|
3089
3089
|
}
|
|
@@ -3106,7 +3106,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3106
3106
|
background: transparent;
|
|
3107
3107
|
padding: 0;
|
|
3108
3108
|
}
|
|
3109
|
-
`,qz,jz,Kz,Mi,
|
|
3109
|
+
`,qz,jz,Kz,Mi,j0,K0,Oa,wm,km,Wo=class extends(Kz=x,jz=[u({type:String})],qz=[Nt({context:So,subscribe:!0})],Kz){constructor(){super(...arguments);a(this,j0,n(Mi,8,this,"Search...")),n(Mi,11,this);a(this,K0,n(Mi,12,this)),n(Mi,15,this);a(this,Oa);a(this,wm,t=>{let e=t.target;this._ctx?.setSearch(e.value)});a(this,km,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(o(this,Oa)!==void 0&&this._ctx?.search===""&&o(this,Oa)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}h(this,Oa,this._ctx?.search)}render(){return f`
|
|
3110
3110
|
<div class="InputWrapper">
|
|
3111
3111
|
<svg
|
|
3112
3112
|
class="SearchIcon"
|
|
@@ -3135,7 +3135,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3135
3135
|
@keydown="${o(this,km)}"
|
|
3136
3136
|
/>
|
|
3137
3137
|
</div>
|
|
3138
|
-
`}};Mi=A(Kz),
|
|
3138
|
+
`}};Mi=A(Kz),j0=new WeakMap,K0=new WeakMap,Oa=new WeakMap,wm=new WeakMap,km=new WeakMap,c(Mi,4,"placeholder",jz,Wo,j0),c(Mi,4,"_ctx",qz,Wo,K0),T(Mi,Wo),v(Wo,"tagName","dui-command-input"),v(Wo,"styles",[w,TV]);var SV=b`
|
|
3139
3139
|
:host {
|
|
3140
3140
|
display: block;
|
|
3141
3141
|
}
|
|
@@ -3143,7 +3143,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3143
3143
|
.List {
|
|
3144
3144
|
overflow: hidden;
|
|
3145
3145
|
}
|
|
3146
|
-
`,Wz,Yz,Em,
|
|
3146
|
+
`,Wz,Yz,Em,W0,mr=class extends(Yz=x,Wz=[Nt({context:So,subscribe:!0})],Yz){constructor(){super(...arguments);a(this,W0,n(Em,8,this)),n(Em,11,this)}render(){return f`
|
|
3147
3147
|
<dui-scroll-area>
|
|
3148
3148
|
<div
|
|
3149
3149
|
class="List"
|
|
@@ -3153,7 +3153,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3153
3153
|
<slot></slot>
|
|
3154
3154
|
</div>
|
|
3155
3155
|
</dui-scroll-area>
|
|
3156
|
-
`}};Em=A(Yz),
|
|
3156
|
+
`}};Em=A(Yz),W0=new WeakMap,c(Em,4,"_ctx",Wz,mr,W0),T(Em,mr),v(mr,"tagName","dui-command-list"),v(mr,"styles",[w,SV]);var AV=0,_V=()=>`dui-command-group-${++AV}`,RV=b`
|
|
3157
3157
|
:host {
|
|
3158
3158
|
display: block;
|
|
3159
3159
|
}
|
|
@@ -3165,12 +3165,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
3165
3165
|
.Group {
|
|
3166
3166
|
overflow: hidden;
|
|
3167
3167
|
}
|
|
3168
|
-
`,Gz,Xz,Jz,Ni,
|
|
3168
|
+
`,Gz,Xz,Jz,Ni,Y0,G0,Di,Yo=class extends(Jz=x,Xz=[u({type:String})],Gz=[Nt({context:So,subscribe:!0})],Jz){constructor(){super(...arguments);a(this,Y0,n(Ni,8,this,"")),n(Ni,11,this);a(this,G0,n(Ni,12,this)),n(Ni,15,this);a(this,Di,_V())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",o(this,Di)),this._ctx?.registerGroup(o(this,Di))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(o(this,Di))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(o(this,Di))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
|
|
3169
3169
|
<div class="Group" role="group" aria-label="${this.heading||L}">
|
|
3170
3170
|
${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:L}
|
|
3171
3171
|
<slot></slot>
|
|
3172
3172
|
</div>
|
|
3173
|
-
`}};Ni=A(Jz),
|
|
3173
|
+
`}};Ni=A(Jz),Y0=new WeakMap,G0=new WeakMap,Di=new WeakMap,c(Ni,4,"heading",Xz,Yo,Y0),c(Ni,4,"_ctx",Gz,Yo,G0),T(Ni,Yo),v(Yo,"tagName","dui-command-group"),v(Yo,"styles",[w,RV]);var IV=0,LV=()=>`dui-command-item-${++IV}`,zV=b`
|
|
3174
3174
|
:host {
|
|
3175
3175
|
display: block;
|
|
3176
3176
|
}
|
|
@@ -3187,7 +3187,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3187
3187
|
user-select: none;
|
|
3188
3188
|
outline: none;
|
|
3189
3189
|
}
|
|
3190
|
-
`,Qz,Zz,
|
|
3190
|
+
`,Qz,Zz,tO,eO,oO,lo,X0,J0,Q0,Z0,fr,Ma,Na,Da,Ha,Ke,op,rO,sO,tw,Cm,$m,co=class extends(oO=x,eO=[u({type:String})],tO=[u({type:Array,attribute:!1})],Zz=[u({type:Boolean})],Qz=[Nt({context:So,subscribe:!0})],oO){constructor(){super(...arguments);a(this,Ke);a(this,X0,n(lo,8,this,"")),n(lo,11,this);a(this,J0,n(lo,12,this,[])),n(lo,15,this);a(this,Q0,n(lo,16,this,!1)),n(lo,19,this);a(this,Z0,n(lo,20,this)),n(lo,23,this);a(this,fr,LV());a(this,Ma);a(this,Na);a(this,Da);a(this,Ha,!1);a(this,Cm,()=>{!this.disabled&&this._ctx?.selectedItemId!==o(this,fr)&&this._ctx?.selectItem(o(this,fr))});a(this,$m,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(p(this,Ke,tw).call(this)),h(this,Ha,!0),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(o(this,fr)),h(this,Ha,!1)}willUpdate(){if(o(this,Ha)){let t=o(this,Ma)!==this.value,e=o(this,Na)!==this.keywords,s=o(this,Da)!==this.disabled;(t||e||s)&&(this._ctx?.updateItem(p(this,Ke,tw).call(this)),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))}this._ctx?.shouldFilter?o(this,Ke,rO)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),o(this,Ke,op)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){o(this,Ke,op)&&this.scrollIntoView({block:"nearest"})}render(){return f`
|
|
3191
3191
|
<div
|
|
3192
3192
|
class="Item"
|
|
3193
3193
|
role="option"
|
|
@@ -3201,7 +3201,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3201
3201
|
>
|
|
3202
3202
|
<slot></slot>
|
|
3203
3203
|
</div>
|
|
3204
|
-
`}};lo=A(
|
|
3204
|
+
`}};lo=A(oO),X0=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Z0=new WeakMap,fr=new WeakMap,Ma=new WeakMap,Na=new WeakMap,Da=new WeakMap,Ha=new WeakMap,Ke=new WeakSet,op=function(){return this._ctx?.selectedItemId===o(this,fr)},rO=function(){return this._ctx?this._ctx.getScore(o(this,fr))>0:!0},sO=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},tw=function(){return{id:o(this,fr),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:p(this,Ke,sO).call(this)}},Cm=new WeakMap,$m=new WeakMap,c(lo,4,"value",eO,co,X0),c(lo,4,"keywords",tO,co,J0),c(lo,4,"disabled",Zz,co,Q0),c(lo,4,"_ctx",Qz,co,Z0),T(lo,co),v(co,"tagName","dui-command-item"),v(co,"styles",[w,zV]);var OV=b`
|
|
3205
3205
|
:host {
|
|
3206
3206
|
display: block;
|
|
3207
3207
|
}
|
|
@@ -3213,11 +3213,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3213
3213
|
.Empty {
|
|
3214
3214
|
text-align: center;
|
|
3215
3215
|
}
|
|
3216
|
-
`,
|
|
3216
|
+
`,iO,nO,Tm,ew,gr=class extends(nO=x,iO=[Nt({context:So,subscribe:!0})],nO){constructor(){super(...arguments);a(this,ew,n(Tm,8,this)),n(Tm,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
|
|
3217
3217
|
<div class="Empty" role="status">
|
|
3218
3218
|
<slot></slot>
|
|
3219
3219
|
</div>
|
|
3220
|
-
`}};Tm=A(
|
|
3220
|
+
`}};Tm=A(nO),ew=new WeakMap,c(Tm,4,"_ctx",iO,gr,ew),T(Tm,gr),v(gr,"tagName","dui-command-empty"),v(gr,"styles",[w,OV]);var MV=b`
|
|
3221
3221
|
:host {
|
|
3222
3222
|
display: block;
|
|
3223
3223
|
}
|
|
@@ -3313,7 +3313,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3313
3313
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
3314
3314
|
color: var(--text-2);
|
|
3315
3315
|
}
|
|
3316
|
-
`,Ya=class extends Fa{static styles=[...Fa.styles,qV]};customElements.define(Ya.tagName,Ya);var
|
|
3316
|
+
`,Ya=class extends Fa{static styles=[...Fa.styles,qV]};customElements.define(Ya.tagName,Ya);var aO="important",jV=" !"+aO,Ga=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.ATTRIBUTE||i.name!=="style"||i.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((r,t)=>{let e=i[t];return e==null?r:r+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(i,[r]){let{style:t}=i.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(r)),this.render(r);for(let e of this.ft)r[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in r){let s=r[e];if(s!=null){this.ft.add(e);let l=typeof s=="string"&&s.endsWith(jV);e.includes("-")||l?t.setProperty(e,l?s.slice(0,-11):s,l?aO:""):t[e]=s}}return Ee}});var KV=M("sort-change",{bubbles:!0,composed:!0}),WV=M("page-change",{bubbles:!0,composed:!0}),YV=f`<svg
|
|
3317
3317
|
xmlns="http://www.w3.org/2000/svg"
|
|
3318
3318
|
width="100%"
|
|
3319
3319
|
height="100%"
|
|
@@ -3423,34 +3423,34 @@ label, legend, caption, figcaption, th, td {
|
|
|
3423
3423
|
.PageButton:disabled {
|
|
3424
3424
|
cursor: not-allowed;
|
|
3425
3425
|
}
|
|
3426
|
-
`,
|
|
3426
|
+
`,lO,dO,cO,pO,hO,uO,mO,fO,gO,Dt,ow,rw,sw,iw,nw,aw,lw,ns,Sm,V,dw,cw,as,Am,pw,hw,uw,mw,rp,vO,bO,sp,xO,yO,wO,kO,We=class extends(gO=x,fO=[u({attribute:!1})],mO=[u({attribute:!1})],uO=[u({type:Number,attribute:"page-size"})],hO=[u({attribute:!1})],pO=[u({attribute:"empty-text"})],cO=[C()],dO=[C()],lO=[C()],gO){constructor(){super(...arguments);a(this,V);a(this,ow,n(Dt,8,this,[])),n(Dt,11,this);a(this,rw,n(Dt,12,this,[])),n(Dt,15,this);a(this,sw,n(Dt,16,this,10)),n(Dt,19,this);a(this,iw,n(Dt,20,this)),n(Dt,23,this);a(this,nw,n(Dt,24,this,"No results.")),n(Dt,27,this);a(this,aw,n(Dt,28,this,null)),n(Dt,31,this);a(this,dw,n(Dt,32,this,1)),n(Dt,35,this);a(this,pw,n(Dt,36,this,[])),n(Dt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&h(this,V,1,Am);let e=QV(this.data,o(this,V,ns));this.pageSize>0?h(this,V,ZV(e,o(this,V,as),this.pageSize),mw):h(this,V,e,mw)}}render(){return f`
|
|
3427
3427
|
<div class="DataTable" part="root">
|
|
3428
3428
|
<div class="TableWindow" part="table-window">
|
|
3429
3429
|
<table part="table">
|
|
3430
|
-
${p(this,V,
|
|
3430
|
+
${p(this,V,yO).call(this)} ${p(this,V,wO).call(this)}
|
|
3431
3431
|
</table>
|
|
3432
3432
|
</div>
|
|
3433
|
-
${p(this,V,
|
|
3433
|
+
${p(this,V,kO).call(this)}
|
|
3434
3434
|
</div>
|
|
3435
|
-
`}};Dt=A(
|
|
3435
|
+
`}};Dt=A(gO),ow=new WeakMap,rw=new WeakMap,sw=new WeakMap,iw=new WeakMap,nw=new WeakMap,aw=new WeakMap,V=new WeakSet,dw=new WeakMap,pw=new WeakMap,rp=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},vO=function(){return{page:o(this,V,as),pageSize:this.pageSize,totalRows:this.data.length,totalPages:o(this,V,rp)}},bO=function(t){o(this,V,ns)?.column===t?o(this,V,ns).direction==="asc"?h(this,V,{column:t,direction:"desc"},Sm):h(this,V,null,Sm):h(this,V,{column:t,direction:"asc"},Sm),h(this,V,1,Am),this.dispatchEvent(KV(o(this,V,ns)))},sp=function(t){h(this,V,Math.max(1,Math.min(t,o(this,V,rp))),Am),this.dispatchEvent(WV(o(this,V,vO)))},xO=function(t){return t.sortable?o(this,V,ns)?.column===t.key?f`<span class="SortIcon"
|
|
3436
3436
|
>${o(this,V,ns).direction==="asc"?GV:XV}</span
|
|
3437
|
-
>`:f`<span class="SortIcon">${YV}</span>`:L},
|
|
3437
|
+
>`:f`<span class="SortIcon">${YV}</span>`:L},yO=function(){return f`
|
|
3438
3438
|
<thead>
|
|
3439
3439
|
<tr>
|
|
3440
3440
|
${this.columns.map(t=>{let e=t.width?{width:t.width}:{},s=t.sortable?o(this,V,ns)?.column===t.key?o(this,V,ns).direction==="asc"?"ascending":"descending":"none":void 0;return f`
|
|
3441
3441
|
<th
|
|
3442
3442
|
style=${Ga(e)}
|
|
3443
3443
|
aria-sort=${s??L}
|
|
3444
|
-
@click=${t.sortable?()=>p(this,V,
|
|
3444
|
+
@click=${t.sortable?()=>p(this,V,bO).call(this,t.key):L}
|
|
3445
3445
|
>
|
|
3446
3446
|
<span class="HeaderContent">
|
|
3447
|
-
${t.header} ${p(this,V,
|
|
3447
|
+
${t.header} ${p(this,V,xO).call(this,t)}
|
|
3448
3448
|
</span>
|
|
3449
3449
|
</th>
|
|
3450
3450
|
`})}
|
|
3451
3451
|
</tr>
|
|
3452
3452
|
</thead>
|
|
3453
|
-
`},
|
|
3453
|
+
`},wO=function(){if(o(this,V,uw).length===0)return f`
|
|
3454
3454
|
<tbody>
|
|
3455
3455
|
<tr class="EmptyRow">
|
|
3456
3456
|
<td colspan=${this.columns.length}>${this.emptyText}</td>
|
|
@@ -3458,13 +3458,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
3458
3458
|
</tbody>
|
|
3459
3459
|
`;let t=this.rowKey?(e,s)=>this.rowKey(e):(e,s)=>s;return f`
|
|
3460
3460
|
<tbody>
|
|
3461
|
-
${Si(o(this,V,
|
|
3461
|
+
${Si(o(this,V,uw),t,e=>f`
|
|
3462
3462
|
<tr>
|
|
3463
3463
|
${this.columns.map(s=>{let l=e[s.key],d=s.render?s.render(l,e):l??"";return f`<td>${d}</td>`})}
|
|
3464
3464
|
</tr>
|
|
3465
3465
|
`)}
|
|
3466
3466
|
</tbody>
|
|
3467
|
-
`},
|
|
3467
|
+
`},kO=function(){if(this.pageSize<=0||this.data.length===0)return L;let t=(o(this,V,as)-1)*this.pageSize+1,e=Math.min(o(this,V,as)*this.pageSize,this.data.length),s=o(this,V,as)===1,l=o(this,V,as)===o(this,V,rp);return f`
|
|
3468
3468
|
<div class="Pagination" part="pagination">
|
|
3469
3469
|
<div class="PageInfo">
|
|
3470
3470
|
<span>${t}-${e} of ${this.data.length}</span>
|
|
@@ -3504,7 +3504,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3504
3504
|
</button>
|
|
3505
3505
|
</div>
|
|
3506
3506
|
</div>
|
|
3507
|
-
`},c(Dt,4,"columns",
|
|
3507
|
+
`},c(Dt,4,"columns",fO,We,ow),c(Dt,4,"data",mO,We,rw),c(Dt,4,"pageSize",uO,We,sw),c(Dt,4,"rowKey",hO,We,iw),c(Dt,4,"emptyText",pO,We,nw),lw=c(Dt,20,"#sort",cO,V,aw),ns=lw.get,Sm=lw.set,cw=c(Dt,20,"#page",dO,V,dw),as=cw.get,Am=cw.set,hw=c(Dt,20,"#displayRows",lO,V,pw),uw=hw.get,mw=hw.set,T(Dt,We),v(We,"tagName","dui-data-table"),v(We,"styles",[w,tP,eP]);var oP=k`
|
|
3508
3508
|
.DataTable {
|
|
3509
3509
|
gap: var(--space-2);
|
|
3510
3510
|
}
|
|
@@ -3620,7 +3620,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3620
3620
|
:host {
|
|
3621
3621
|
display: contents;
|
|
3622
3622
|
}
|
|
3623
|
-
`,
|
|
3623
|
+
`,EO,CO,$O,TO,SO,po,fw,gw,vw,bw,AO,_m,Ye,Hi,Lm,zm,Om,Mm,_O,Nm,Dm,xw,Rm,Ao=class extends(SO=x,TO=[u({type:Boolean,reflect:!0})],$O=[u({type:Boolean,attribute:"default-open"})],CO=[C()],EO=[lt({context:Ns}),C()],SO){constructor(){super(...arguments);a(this,Ye);a(this,fw,n(po,8,this)),n(po,11,this);a(this,gw,n(po,12,this,!1)),n(po,15,this);a(this,vw,n(po,16,this,!1)),n(po,19,this);a(this,Hi,crypto.randomUUID().slice(0,8));a(this,Lm,`dui-dialog-${o(this,Hi)}`);a(this,zm,`dui-trigger-${o(this,Hi)}`);a(this,Om,`dui-title-${o(this,Hi)}`);a(this,Mm,`dui-desc-${o(this,Hi)}`);a(this,Nm,()=>{this.open===void 0&&h(this,Ye,!0,_m),this.dispatchEvent(Im({open:!0}))});a(this,Dm,()=>{this.open===void 0&&h(this,Ye,!1,_m),this.dispatchEvent(Im({open:!1}))});a(this,xw,n(po,20,this,p(this,Ye,Rm).call(this))),n(po,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ye,!0,_m),this._ctx=p(this,Ye,Rm).call(this)}willUpdate(){this._ctx=p(this,Ye,Rm).call(this)}render(){return f`<slot></slot>`}};po=A(SO),fw=new WeakMap,gw=new WeakMap,vw=new WeakMap,Ye=new WeakSet,Hi=new WeakMap,Lm=new WeakMap,zm=new WeakMap,Om=new WeakMap,Mm=new WeakMap,_O=function(){return this.open??o(this,Ye,AO)},Nm=new WeakMap,Dm=new WeakMap,xw=new WeakMap,Rm=function(){return{open:o(this,Ye,_O),dialogId:o(this,Lm),triggerId:o(this,zm),titleId:o(this,Om),descriptionId:o(this,Mm),openDialog:o(this,Nm),closeDialog:o(this,Dm)}},c(po,4,"open",TO,Ao,fw),c(po,4,"defaultOpen",$O,Ao,gw),bw=c(po,20,"#internalOpen",CO,Ye,vw),AO=bw.get,_m=bw.set,c(po,4,"_ctx",EO,Ao,xw),T(po,Ao),v(Ao,"tagName","dui-dialog"),v(Ao,"styles",[w,rP]);var sP=b`
|
|
3624
3624
|
:host {
|
|
3625
3625
|
display: contents;
|
|
3626
3626
|
}
|
|
@@ -3670,12 +3670,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
3670
3670
|
z-index: 1000;
|
|
3671
3671
|
transition-property: opacity, transform;
|
|
3672
3672
|
}
|
|
3673
|
-
`,
|
|
3673
|
+
`,RO,IO,LO,zO,OO,MO,NO,DO,Kt,yw,ww,kw,Ew,Cw,$w,Ja,Rw,ot,Tw,Sw,Iw,Lw,Aw,_w,ls,zw,Qa,ds,HO,BO,Ow,FO,VO,Hm,PO,Bm,ho=class extends(DO=x,NO=[u({type:Boolean,attribute:"keep-mounted"})],MO=[u({attribute:"initial-focus"})],OO=[u({attribute:"final-focus"})],zO=[u()],LO=[C()],IO=[C()],RO=[C()],DO){constructor(){super(...arguments);a(this,ot);a(this,yw,n(Kt,8,this,!1)),n(Kt,11,this);a(this,ww,n(Kt,12,this)),n(Kt,15,this);a(this,kw,n(Kt,16,this)),n(Kt,19,this);a(this,Ew,n(Kt,20,this)),n(Kt,23,this);a(this,Cw,n(Kt,24,this,!1)),n(Kt,27,this);a(this,Tw,n(Kt,28,this,!1)),n(Kt,31,this);a(this,Aw,n(Kt,32,this,!1)),n(Kt,35,this);a(this,Qa);a(this,ds,new q(this,{context:Ns,subscribe:!0}));a(this,Hm,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,ds).value?.closeDialog()),t.key==="Tab"&&p(this,ot,PO).call(this,t)});a(this,Bm,()=>{o(this,ds).value?.closeDialog()})}updated(){let t=o(this,ds).value?.open??!1;t&&!o(this,ot,Ja)?p(this,ot,HO).call(this):!t&&o(this,ot,Ja)&&!o(this,ot,ls)&&p(this,ot,BO).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),o(this,ot,Ja)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,ds).value?.open??!1,e=o(this,ds).value?.titleId??"",s=o(this,ds).value?.descriptionId??"";return!o(this,ot,Ja)&&!this.keepMounted?f``:f`
|
|
3674
3674
|
<div
|
|
3675
3675
|
part="backdrop"
|
|
3676
3676
|
?data-open="${t&&!o(this,ot,ls)}"
|
|
3677
3677
|
?data-closed="${!t||o(this,ot,ls)}"
|
|
3678
|
-
?data-starting-style="${o(this,ot,
|
|
3678
|
+
?data-starting-style="${o(this,ot,Iw)}"
|
|
3679
3679
|
?data-ending-style="${o(this,ot,ls)}"
|
|
3680
3680
|
@click="${o(this,Bm)}"
|
|
3681
3681
|
></div>
|
|
@@ -3687,7 +3687,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3687
3687
|
aria-describedby="${s}"
|
|
3688
3688
|
?data-open="${t&&!o(this,ot,ls)}"
|
|
3689
3689
|
?data-closed="${!t||o(this,ot,ls)}"
|
|
3690
|
-
?data-starting-style="${o(this,ot,
|
|
3690
|
+
?data-starting-style="${o(this,ot,Iw)}"
|
|
3691
3691
|
?data-ending-style="${o(this,ot,ls)}"
|
|
3692
3692
|
tabindex="-1"
|
|
3693
3693
|
@keydown="${o(this,Hm)}"
|
|
@@ -3696,7 +3696,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3696
3696
|
<p part="description" id="${s}"><slot name="description"></slot></p>
|
|
3697
3697
|
<slot></slot>
|
|
3698
3698
|
</div>
|
|
3699
|
-
`}};Kt=A(
|
|
3699
|
+
`}};Kt=A(DO),yw=new WeakMap,ww=new WeakMap,kw=new WeakMap,Ew=new WeakMap,Cw=new WeakMap,ot=new WeakSet,Tw=new WeakMap,Aw=new WeakMap,Qa=new WeakMap,ds=new WeakMap,HO=async function(){h(this,Qa,document.activeElement??void 0),h(this,ot,!0,Rw),h(this,ot,!0,Lw),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,ot,!1,Lw),await this.updateComplete,p(this,ot,FO).call(this)},BO=function(){h(this,ot,!0,zw);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,ot,Ow).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,ot,Ow).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},Ow=function(){!o(this,ot,ls)&&!o(this,ot,Ja)||(h(this,ot,!1,zw),this.keepMounted||h(this,ot,!1,Rw),p(this,ot,VO).call(this))},FO=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},VO=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Qa)?.focus(),h(this,Qa,void 0)},Hm=new WeakMap,PO=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},Bm=new WeakMap,c(Kt,4,"keepMounted",NO,ho,yw),c(Kt,4,"initialFocus",MO,ho,ww),c(Kt,4,"finalFocus",OO,ho,kw),c(Kt,4,"width",zO,ho,Ew),$w=c(Kt,20,"#mounted",LO,ot,Cw),Ja=$w.get,Rw=$w.set,Sw=c(Kt,20,"#startingStyle",IO,ot,Tw),Iw=Sw.get,Lw=Sw.set,_w=c(Kt,20,"#endingStyle",RO,ot,Aw),ls=_w.get,zw=_w.set,T(Kt,ho),v(ho,"tagName","dui-dialog-popup"),v(ho,"styles",[w,nP,aP]);var lP=b`
|
|
3700
3700
|
:host {
|
|
3701
3701
|
display: contents;
|
|
3702
3702
|
}
|
|
@@ -3773,7 +3773,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3773
3773
|
transition-duration: 0s;
|
|
3774
3774
|
}
|
|
3775
3775
|
}
|
|
3776
|
-
`,el=class extends ho{static styles=[...ho.styles,cP]};customElements.define(el.tagName,el);var ol=class extends ip{};customElements.define(ol.tagName,ol);var
|
|
3776
|
+
`,el=class extends ho{static styles=[...ho.styles,cP]};customElements.define(el.tagName,el);var ol=class extends ip{};customElements.define(ol.tagName,ol);var Kw=M("drop",{bubbles:!0,composed:!0}),Ww=M("drop-accepted",{bubbles:!0,composed:!0}),Yw=M("drop-rejected",{bubbles:!0,composed:!0}),pP=M("dragenter",{bubbles:!0,composed:!0}),hP=M("dragover",{bubbles:!0,composed:!0}),uP=M("dragleave",{bubbles:!0,composed:!0}),ap=M("dropzone-error",{bubbles:!0,composed:!0}),mP=b`
|
|
3777
3777
|
:host {
|
|
3778
3778
|
display: block;
|
|
3779
3779
|
}
|
|
@@ -3794,11 +3794,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3794
3794
|
input[type="file"] {
|
|
3795
3795
|
display: none;
|
|
3796
3796
|
}
|
|
3797
|
-
`,
|
|
3797
|
+
`,UO,qO,jO,KO,WO,YO,GO,XO,JO,QO,Lt,Mw,Nw,Dw,Hw,Bw,Fw,Vw,Pw,Uw,qw,ZO,Fm,Ne,Vm,Pm,Um,qm,jm,Km,Wm,jw,t2,e2,Wt=class Wt extends(QO=x,JO=[u({type:String,reflect:!0})],XO=[u({type:Boolean,reflect:!0})],GO=[u({type:Boolean,reflect:!0})],YO=[u({type:Number,reflect:!0,attribute:"max-files"})],WO=[u({type:Number,reflect:!0,attribute:"max-size"})],KO=[u({type:Number,reflect:!0,attribute:"min-size"})],jO=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],qO=[u({type:Boolean,reflect:!0,attribute:"no-style"})],UO=[C()],QO){constructor(){super(...arguments);a(this,Ne);a(this,Mw,n(Lt,8,this)),n(Lt,11,this);a(this,Nw,n(Lt,12,this,!1)),n(Lt,15,this);a(this,Dw,n(Lt,16,this,!1)),n(Lt,19,this);a(this,Hw,n(Lt,20,this,1/0)),n(Lt,23,this);a(this,Bw,n(Lt,24,this,1/0)),n(Lt,27,this);a(this,Fw,n(Lt,28,this,0)),n(Lt,31,this);a(this,Vw,n(Lt,32,this,!1)),n(Lt,35,this);a(this,Pw,n(Lt,36,this,!1)),n(Lt,39,this);a(this,Uw,n(Lt,40,this,!1)),n(Lt,43,this);a(this,Vm,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Ne,!0,Fm),this.dispatchEvent(pP()))});a(this,Pm,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(hP()))});a(this,Um,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Ne,!1,Fm),this.dispatchEvent(uP()))});a(this,qm,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){h(this,Ne,!1,Fm);try{let e=Array.from(t.dataTransfer?.files??[]);p(this,Ne,jw).call(this,e)}catch(e){this.dispatchEvent(ap({error:e,code:Wt.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});a(this,jm,()=>{this.disabled||this.openFileDialog()});a(this,Km,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});a(this,Wm,t=>{if(this.disabled)return;let e=t.target,s=Array.from(e.files??[]);try{p(this,Ne,jw).call(this,s)}catch(l){this.dispatchEvent(ap({error:l,code:Wt.ERROR_CODES.FILE_PROCESSING_FAILED}))}finally{e.value=""}})}connectedCallback(){super.connectedCallback(),this.autoFocus&&!this.disabled&&this.updateComplete.then(()=>{this.shadowRoot?.querySelector("[part='root']")?.focus()})}openFileDialog(){if(this.disabled)return;let t=this.shadowRoot?.querySelector('input[type="file"]');if(t)try{t.click()}catch(e){this.dispatchEvent(ap({error:e,code:Wt.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
|
|
3798
3798
|
<div
|
|
3799
3799
|
part="root"
|
|
3800
3800
|
tabindex="${this.disabled?-1:0}"
|
|
3801
|
-
?data-dragover="${o(this,Ne,
|
|
3801
|
+
?data-dragover="${o(this,Ne,ZO)}"
|
|
3802
3802
|
?data-disabled="${this.disabled}"
|
|
3803
3803
|
@dragenter="${o(this,Vm)}"
|
|
3804
3804
|
@dragover="${o(this,Pm)}"
|
|
@@ -3821,7 +3821,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3821
3821
|
aria-hidden="true"
|
|
3822
3822
|
hidden
|
|
3823
3823
|
/>
|
|
3824
|
-
`}};Lt=A(
|
|
3824
|
+
`}};Lt=A(QO),Mw=new WeakMap,Nw=new WeakMap,Dw=new WeakMap,Hw=new WeakMap,Bw=new WeakMap,Fw=new WeakMap,Vw=new WeakMap,Pw=new WeakMap,Uw=new WeakMap,Ne=new WeakSet,Vm=new WeakMap,Pm=new WeakMap,Um=new WeakMap,qm=new WeakMap,jm=new WeakMap,Km=new WeakMap,Wm=new WeakMap,jw=function(t){let{acceptedFiles:e,rejectedFiles:s}=p(this,Ne,t2).call(this,t);this.dispatchEvent(Kw({acceptedFiles:e,rejectedFiles:s})),e.length>0&&this.dispatchEvent(Ww({acceptedFiles:e})),s.length>0&&this.dispatchEvent(Yw({rejectedFiles:s}))},t2=function(t){let e=[],s=[],l=this.multiple?this.maxFiles:1;if(t.length>l){for(let d of t)s.push({file:d,errors:[{code:Wt.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:e,rejectedFiles:s}}for(let d of t){let m=[];d.size>this.maxSize&&m.push({code:Wt.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),d.size<this.minSize&&m.push({code:Wt.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!p(this,Ne,e2).call(this,d)&&m.push({code:Wt.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),m.length>0?s.push({file:d,errors:m}):e.push(d)}return{acceptedFiles:e,rejectedFiles:s}},e2=function(t){if(!this.accept)return!0;let e=this.accept.split(",").map(s=>s.trim().toLowerCase());for(let s of e)if(s.startsWith(".")){if(t.name.toLowerCase().endsWith(s))return!0}else if(s.endsWith("/*")){let l=s.slice(0,-2);if(t.type.toLowerCase().startsWith(l))return!0}else if(t.type.toLowerCase()===s)return!0;return!1},c(Lt,4,"accept",JO,Wt,Mw),c(Lt,4,"multiple",XO,Wt,Nw),c(Lt,4,"disabled",GO,Wt,Dw),c(Lt,4,"maxFiles",YO,Wt,Hw),c(Lt,4,"maxSize",WO,Wt,Bw),c(Lt,4,"minSize",KO,Wt,Fw),c(Lt,4,"autoFocus",jO,Wt,Vw),c(Lt,4,"noStyle",qO,Wt,Pw),qw=c(Lt,20,"#isDragOver",UO,Ne,Uw),ZO=qw.get,Fm=qw.set,T(Lt,Wt),v(Wt,"tagName","dui-dropzone"),v(Wt,"styles",[w,mP]),v(Wt,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),v(Wt,"REJECTION_CODES",{TOO_MANY_FILES:"TOO_MANY_FILES",FILE_TOO_LARGE:"FILE_TOO_LARGE",FILE_TOO_SMALL:"FILE_TOO_SMALL",FILE_INVALID_TYPE:"FILE_INVALID_TYPE"});var rl=Wt;var fP=k`
|
|
3825
3825
|
:host([disabled]) {
|
|
3826
3826
|
opacity: 0.4;
|
|
3827
3827
|
}
|
|
@@ -3877,23 +3877,23 @@ label, legend, caption, figcaption, th, td {
|
|
|
3877
3877
|
|
|
3878
3878
|
[part="error"] { display: none; }
|
|
3879
3879
|
[part="error"][data-invalid] { display: block; }
|
|
3880
|
-
`,
|
|
3880
|
+
`,o2,r2,s2,i2,n2,a2,l2,d2,c2,p2,h2,vt,Gw,Xw,Jw,Qw,Zw,u2,hk,Y,tk,ek,m2,f2,ok,rk,g2,uk,sk,ik,v2,b2,nk,ak,x2,y2,lk,dk,mk,w2,ck,pk,k2,E2,il,C2,fk,gk,Ge,nl,dp,cp,pp,hp,Ym,Gm,Xm,Jm,lp,Qm,_o=class extends(h2=x,p2=[u({type:Boolean,reflect:!0})],c2=[u({type:Boolean,reflect:!0})],d2=[u()],l2=[C()],a2=[C()],n2=[C()],i2=[C()],s2=[C()],r2=[C()],o2=[C()],h2){constructor(){super(...arguments);a(this,Y);a(this,Gw,n(vt,8,this,!1)),n(vt,11,this);a(this,Xw,n(vt,12,this,!1)),n(vt,15,this);a(this,Jw,n(vt,16,this,"vertical")),n(vt,19,this);a(this,Qw,n(vt,20,this,!1)),n(vt,23,this);a(this,tk,n(vt,24,this,!1)),n(vt,27,this);a(this,ok,n(vt,28,this,!1)),n(vt,31,this);a(this,sk,n(vt,32,this,!1)),n(vt,35,this);a(this,nk,n(vt,36,this,!1)),n(vt,39,this);a(this,lk,n(vt,40,this,!1)),n(vt,43,this);a(this,ck,n(vt,44,this,!1)),n(vt,47,this);a(this,il,crypto.randomUUID().slice(0,8));a(this,Ge);a(this,nl,!1);a(this,dp,()=>{h(this,Y,!0,uk)});a(this,cp,()=>{h(this,Y,!1,uk),h(this,Y,!0,f2)});a(this,pp,()=>{h(this,Y,!0,hk),h(this,Y,!0,b2)});a(this,hp,()=>{h(this,Y,!0,hk)});a(this,Ym,()=>{let e=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0})??[];h(this,Ge,e.find(s=>s.matches(gP))),o(this,Ge)&&(p(this,Y,lp).call(this),this.disabled&&(h(this,nl,o(this,Ge).hasAttribute("disabled")),o(this,Ge).setAttribute("disabled","")))});a(this,Gm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,y2)});a(this,Xm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,w2),p(this,Y,lp).call(this)});a(this,Jm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,E2),p(this,Y,lp).call(this)});a(this,Qm,()=>{this.disabled||o(this,Ge)?.focus()})}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",o(this,dp)),this.addEventListener("focusout",o(this,cp)),this.addEventListener("input",o(this,pp)),this.addEventListener("change",o(this,hp))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",o(this,dp)),this.removeEventListener("focusout",o(this,cp)),this.removeEventListener("input",o(this,pp)),this.removeEventListener("change",o(this,hp))}willUpdate(t){t.has("invalid")&&o(this,Ge)&&p(this,Y,lp).call(this),t.has("disabled")&&o(this,Ge)&&(this.disabled?(h(this,nl,o(this,Ge).hasAttribute("disabled")),o(this,Ge).setAttribute("disabled","")):o(this,nl)||o(this,Ge).removeAttribute("disabled"))}render(){return f`
|
|
3881
3881
|
<div
|
|
3882
3882
|
part="root"
|
|
3883
3883
|
role="group"
|
|
3884
3884
|
?data-disabled="${this.disabled}"
|
|
3885
3885
|
?data-invalid="${this.invalid}"
|
|
3886
3886
|
?data-valid="${!this.invalid}"
|
|
3887
|
-
?data-dirty="${o(this,Y,
|
|
3888
|
-
?data-touched="${o(this,Y,
|
|
3889
|
-
?data-filled="${o(this,Y,
|
|
3890
|
-
?data-focused="${o(this,Y,
|
|
3887
|
+
?data-dirty="${o(this,Y,u2)}"
|
|
3888
|
+
?data-touched="${o(this,Y,m2)}"
|
|
3889
|
+
?data-filled="${o(this,Y,v2)}"
|
|
3890
|
+
?data-focused="${o(this,Y,g2)}"
|
|
3891
3891
|
data-orientation="${this.orientation}"
|
|
3892
3892
|
>
|
|
3893
3893
|
<div
|
|
3894
3894
|
part="label"
|
|
3895
|
-
id="${o(this,Y,
|
|
3896
|
-
?data-slotted="${o(this,Y,
|
|
3895
|
+
id="${o(this,Y,C2)}"
|
|
3896
|
+
?data-slotted="${o(this,Y,x2)}"
|
|
3897
3897
|
?data-disabled="${this.disabled}"
|
|
3898
3898
|
@click="${o(this,Qm)}"
|
|
3899
3899
|
>
|
|
@@ -3905,8 +3905,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
3905
3905
|
<slot @slotchange="${o(this,Ym)}"></slot>
|
|
3906
3906
|
<div
|
|
3907
3907
|
part="description"
|
|
3908
|
-
id="${o(this,Y,
|
|
3909
|
-
?data-slotted="${o(this,Y,
|
|
3908
|
+
id="${o(this,Y,fk)}"
|
|
3909
|
+
?data-slotted="${o(this,Y,mk)}"
|
|
3910
3910
|
>
|
|
3911
3911
|
<slot
|
|
3912
3912
|
name="description"
|
|
@@ -3915,7 +3915,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3915
3915
|
</div>
|
|
3916
3916
|
<div
|
|
3917
3917
|
part="error"
|
|
3918
|
-
id="${o(this,Y,
|
|
3918
|
+
id="${o(this,Y,gk)}"
|
|
3919
3919
|
role="alert"
|
|
3920
3920
|
?data-invalid="${this.invalid}"
|
|
3921
3921
|
>
|
|
@@ -3925,7 +3925,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3925
3925
|
></slot>
|
|
3926
3926
|
</div>
|
|
3927
3927
|
</div>
|
|
3928
|
-
`}};vt=A(
|
|
3928
|
+
`}};vt=A(h2),Gw=new WeakMap,Xw=new WeakMap,Jw=new WeakMap,Qw=new WeakMap,Y=new WeakSet,tk=new WeakMap,ok=new WeakMap,sk=new WeakMap,nk=new WeakMap,lk=new WeakMap,ck=new WeakMap,il=new WeakMap,C2=function(){return`field-${o(this,il)}-label`},fk=function(){return`field-${o(this,il)}-desc`},gk=function(){return`field-${o(this,il)}-error`},Ge=new WeakMap,nl=new WeakMap,dp=new WeakMap,cp=new WeakMap,pp=new WeakMap,hp=new WeakMap,Ym=new WeakMap,Gm=new WeakMap,Xm=new WeakMap,Jm=new WeakMap,lp=function(){let t=o(this,Ge);if(!t)return;let e=[];o(this,Y,mk)&&e.push(o(this,Y,fk)),this.invalid&&o(this,Y,k2)&&e.push(o(this,Y,gk));let s=e.join(" ")||null;s?t.setAttribute("aria-describedby",s):t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid",String(this.invalid))},Qm=new WeakMap,c(vt,4,"disabled",p2,_o,Gw),c(vt,4,"invalid",c2,_o,Xw),c(vt,4,"orientation",d2,_o,Jw),Zw=c(vt,20,"#dirty",l2,Y,Qw),u2=Zw.get,hk=Zw.set,ek=c(vt,20,"#touched",a2,Y,tk),m2=ek.get,f2=ek.set,rk=c(vt,20,"#focused",n2,Y,ok),g2=rk.get,uk=rk.set,ik=c(vt,20,"#filled",i2,Y,sk),v2=ik.get,b2=ik.set,ak=c(vt,20,"#hasLabel",s2,Y,nk),x2=ak.get,y2=ak.set,dk=c(vt,20,"#hasDescription",r2,Y,lk),mk=dk.get,w2=dk.set,pk=c(vt,20,"#hasError",o2,Y,ck),k2=pk.get,E2=pk.set,T(vt,_o),v(_o,"tagName","dui-field"),v(_o,"styles",[w,vP]);var bP=k`
|
|
3929
3929
|
[part="root"] {
|
|
3930
3930
|
gap: var(--space-2);
|
|
3931
3931
|
}
|
|
@@ -3975,18 +3975,18 @@ label, legend, caption, figcaption, th, td {
|
|
|
3975
3975
|
|
|
3976
3976
|
[part="legend"]:not([data-slotted]) { display: none; }
|
|
3977
3977
|
[part="legend"] { padding: 0; }
|
|
3978
|
-
`,$
|
|
3978
|
+
`,$2,T2,S2,Bi,vk,bk,xk,A2,_2,ll,Zm,vr=class extends(S2=x,T2=[u({type:Boolean,reflect:!0})],$2=[C()],S2){constructor(){super(...arguments);a(this,ll);a(this,vk,n(Bi,8,this,!1)),n(Bi,11,this);a(this,bk,n(Bi,12,this,!1)),n(Bi,15,this);a(this,Zm,t=>{let e=t.target;h(this,ll,e.assignedNodes({flatten:!0}).length>0,_2)})}render(){return f`
|
|
3979
3979
|
<fieldset
|
|
3980
3980
|
part="root"
|
|
3981
3981
|
?disabled="${this.disabled}"
|
|
3982
3982
|
?data-disabled="${this.disabled}"
|
|
3983
3983
|
>
|
|
3984
|
-
<legend part="legend" ?data-slotted="${o(this,ll,
|
|
3984
|
+
<legend part="legend" ?data-slotted="${o(this,ll,A2)}">
|
|
3985
3985
|
<slot name="legend" @slotchange="${o(this,Zm)}"></slot>
|
|
3986
3986
|
</legend>
|
|
3987
3987
|
<slot></slot>
|
|
3988
3988
|
</fieldset>
|
|
3989
|
-
`}};Bi=A(
|
|
3989
|
+
`}};Bi=A(S2),vk=new WeakMap,bk=new WeakMap,ll=new WeakSet,Zm=new WeakMap,c(Bi,4,"disabled",T2,vr,vk),xk=c(Bi,20,"#hasLegend",$2,ll,bk),A2=xk.get,_2=xk.set,T(Bi,vr),v(vr,"tagName","dui-fieldset"),v(vr,"styles",[w,xP]);var yP=k`
|
|
3990
3990
|
[part="root"] {
|
|
3991
3991
|
display: flex;
|
|
3992
3992
|
flex-direction: column;
|
|
@@ -4019,7 +4019,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4019
4019
|
width: 100%;
|
|
4020
4020
|
height: 100%;
|
|
4021
4021
|
}
|
|
4022
|
-
`,up=class extends x{static tagName="dui-icon";static styles=[w,wP];render(){return f`<slot></slot>`}};var cl=class extends up{};customElements.define(cl.tagName,cl);var mp=i=>i??L;var
|
|
4022
|
+
`,up=class extends x{static tagName="dui-icon";static styles=[w,wP];render(){return f`<slot></slot>`}};var cl=class extends up{};customElements.define(cl.tagName,cl);var mp=i=>i??L;var zk=M("input-change",{bubbles:!0,composed:!0}),kP=b`
|
|
4023
4023
|
:host {
|
|
4024
4024
|
display: block;
|
|
4025
4025
|
}
|
|
@@ -4033,7 +4033,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4033
4033
|
[part="input"]:disabled {
|
|
4034
4034
|
cursor: not-allowed;
|
|
4035
4035
|
}
|
|
4036
|
-
`,
|
|
4036
|
+
`,R2,I2,L2,z2,O2,M2,N2,D2,H2,B2,F2,V2,P2,pl,st,yk,wk,kk,Ek,Ck,$k,Tk,Sk,Ak,_k,Rk,Ik,ef,cs,Lk,tf,Pt=class extends(P2=x,V2=[u({type:String})],F2=[u({type:String})],B2=[u({type:String})],H2=[u({type:Boolean,reflect:!0})],D2=[u({type:Boolean})],N2=[u({type:Boolean})],M2=[u({type:Number,attribute:"minlength"})],O2=[u({type:Number,attribute:"maxlength"})],z2=[u({type:String})],L2=[u({type:String})],I2=[u({type:String})],R2=[u({type:Boolean})],P2){constructor(){super();a(this,cs);a(this,pl);a(this,yk,n(st,8,this,"text")),n(st,11,this);a(this,wk,n(st,12,this,"")),n(st,15,this);a(this,kk,n(st,16,this,"")),n(st,19,this);a(this,Ek,n(st,20,this,!1)),n(st,23,this);a(this,Ck,n(st,24,this,!1)),n(st,27,this);a(this,$k,n(st,28,this,!1)),n(st,31,this);a(this,Tk,n(st,32,this)),n(st,35,this);a(this,Sk,n(st,36,this)),n(st,39,this);a(this,Ak,n(st,40,this)),n(st,43,this);a(this,_k,n(st,44,this,"")),n(st,47,this);a(this,Rk,n(st,48,this)),n(st,51,this);a(this,Ik,n(st,52,this,!1)),n(st,55,this);a(this,ef,t=>{let e=t.target;this.value=e.value,p(this,cs,Lk).call(this),p(this,cs,tf).call(this),this.dispatchEvent(zk({value:this.value}))});h(this,pl,this.attachInternals())}firstUpdated(){p(this,cs,tf).call(this),this.autofocus&&this.focus()}updated(){p(this,cs,tf).call(this)}willUpdate(){p(this,cs,Lk).call(this)}render(){return f`
|
|
4037
4037
|
<input
|
|
4038
4038
|
part="input"
|
|
4039
4039
|
type="${this.type}"
|
|
@@ -4049,7 +4049,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4049
4049
|
autocomplete="${mp(this.autocomplete)}"
|
|
4050
4050
|
@input="${o(this,ef)}"
|
|
4051
4051
|
/>
|
|
4052
|
-
`}};st=A(
|
|
4052
|
+
`}};st=A(P2),pl=new WeakMap,yk=new WeakMap,wk=new WeakMap,kk=new WeakMap,Ek=new WeakMap,Ck=new WeakMap,$k=new WeakMap,Tk=new WeakMap,Sk=new WeakMap,Ak=new WeakMap,_k=new WeakMap,Rk=new WeakMap,Ik=new WeakMap,ef=new WeakMap,cs=new WeakSet,Lk=function(){o(this,pl).setFormValue(this.value)},tf=function(){let t=this.shadowRoot?.querySelector("input");t&&o(this,pl).setValidity(t.validity,t.validationMessage,t)},c(st,4,"type",V2,Pt,yk),c(st,4,"value",F2,Pt,wk),c(st,4,"placeholder",B2,Pt,kk),c(st,4,"disabled",H2,Pt,Ek),c(st,4,"required",D2,Pt,Ck),c(st,4,"readonly",N2,Pt,$k),c(st,4,"minLength",M2,Pt,Tk),c(st,4,"maxLength",O2,Pt,Sk),c(st,4,"pattern",z2,Pt,Ak),c(st,4,"name",L2,Pt,_k),c(st,4,"autocomplete",I2,Pt,Rk),c(st,4,"autofocus",R2,Pt,Ik),T(st,Pt),v(Pt,"tagName","dui-input"),v(Pt,"formAssociated",!0),v(Pt,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Pt,"styles",[w,kP]);var EP=k`
|
|
4053
4053
|
[part="input"] {
|
|
4054
4054
|
padding: var(--space-2);
|
|
4055
4055
|
font-family: var(--font-sans);
|
|
@@ -4120,11 +4120,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
4120
4120
|
align-items: center;
|
|
4121
4121
|
cursor: pointer;
|
|
4122
4122
|
}
|
|
4123
|
-
`,
|
|
4123
|
+
`,U2,q2,of,Ok,Xe=class extends(q2=x,U2=[u({type:Boolean,reflect:!0})],q2){constructor(){super(...arguments);a(this,Ok,n(of,8,this,!1)),n(of,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
|
|
4124
4124
|
<div class="Item" part="root" aria-disabled="${this.disabled}">
|
|
4125
4125
|
<slot></slot>
|
|
4126
4126
|
</div>
|
|
4127
|
-
`}};of=A(
|
|
4127
|
+
`}};of=A(q2),Ok=new WeakMap,c(of,4,"disabled",U2,Xe,Ok),T(of,Xe),v(Xe,"tagName","dui-menu-item"),v(Xe,"styles",[w,CP,$P]);var TP=b`
|
|
4128
4128
|
:host {
|
|
4129
4129
|
display: block;
|
|
4130
4130
|
}
|
|
@@ -4148,7 +4148,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4148
4148
|
.Popup[data-ending-style] {
|
|
4149
4149
|
opacity: 0;
|
|
4150
4150
|
}
|
|
4151
|
-
`],
|
|
4151
|
+
`],j2,K2,W2,Fi,Mk,Nk,Dk,Vi,Ds,Yt,ul,Ut,fp,Hk,Y2,rf,sf,nf,af,br=class extends(W2=x,K2=[u({attribute:"popup-min-width"})],j2=[C()],W2){constructor(){super(...arguments);a(this,Yt);a(this,Mk,n(Fi,8,this,"var(--space-28)")),n(Fi,11,this);a(this,Nk,n(Fi,12,this,-1)),n(Fi,15,this);a(this,ul,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);a(this,Ut,new Te(this,{getAnchor:()=>o(this,ul).call(this)??this,matchWidth:!1,styles:AP,contentContainer:".Menu",contentSelector:"dui-menu-item, dui-separator",onOpen:()=>{h(this,Yt,-1,Ds),o(this,ul).call(this)?.setAttribute("data-open","")},onClose:()=>{h(this,Yt,-1,Ds),o(this,ul).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
|
|
4152
4152
|
<div
|
|
4153
4153
|
class="Popup"
|
|
4154
4154
|
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
@@ -4163,7 +4163,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4163
4163
|
@mousemove="${o(this,af)}"
|
|
4164
4164
|
></div>
|
|
4165
4165
|
</div>
|
|
4166
|
-
`}));a(this,fp,`menu-${crypto.randomUUID().slice(0,8)}`);a(this,rf,t=>{t.stopPropagation(),t.preventDefault(),p(this,Yt,
|
|
4166
|
+
`}));a(this,fp,`menu-${crypto.randomUUID().slice(0,8)}`);a(this,rf,t=>{t.stopPropagation(),t.preventDefault(),p(this,Yt,Y2).call(this)});a(this,sf,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Ut).close()});a(this,nf,t=>{let e=o(this,Yt,Hk);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Yt,s,Ds)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Yt,s,Ds)}break}case"Home":if(o(this,Ut).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Yt,s,Ds)}break;case"End":if(o(this,Ut).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Yt,s,Ds);break}}break;case"Enter":case" ":{if(o(this,Ut).isOpen&&o(this,Yt,Vi)>=0){t.preventDefault();let s=e[o(this,Yt,Vi)];s&&!s.disabled&&(s.click(),o(this,Ut).close())}else o(this,Ut).isOpen||(t.preventDefault(),o(this,Ut).open());break}case"Escape":o(this,Ut).isOpen&&(t.preventDefault(),o(this,Ut).close());break;case"Tab":o(this,Ut).isOpen&&o(this,Ut).close();break}});a(this,af,()=>{o(this,Yt,Vi)>=0&&h(this,Yt,-1,Ds)})}updated(){let t=o(this,Yt,Hk);for(let e=0;e<t.length;e++)e===o(this,Yt,Vi)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
|
|
4167
4167
|
<div
|
|
4168
4168
|
class="Trigger"
|
|
4169
4169
|
aria-haspopup="menu"
|
|
@@ -4174,7 +4174,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4174
4174
|
>
|
|
4175
4175
|
<slot name="trigger"></slot>
|
|
4176
4176
|
</div>
|
|
4177
|
-
`}};Fi=A(
|
|
4177
|
+
`}};Fi=A(W2),Mk=new WeakMap,Nk=new WeakMap,Yt=new WeakSet,ul=new WeakMap,Ut=new WeakMap,fp=new WeakMap,Hk=function(){return[...(o(this,Ut).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},Y2=function(){o(this,Ut).isOpen?o(this,Ut).close():o(this,Ut).open()},rf=new WeakMap,sf=new WeakMap,nf=new WeakMap,af=new WeakMap,c(Fi,4,"popupMinWidth",K2,br,Mk),Dk=c(Fi,20,"#highlightedIndex",j2,Yt,Nk),Vi=Dk.get,Ds=Dk.set,T(Fi,br),v(br,"tagName","dui-menu"),v(br,"styles",[w,TP,SP]);var _P=k`
|
|
4178
4178
|
.Popup {
|
|
4179
4179
|
background: var(--surface-3);
|
|
4180
4180
|
border: var(--border-width-thin) solid var(--border);
|
|
@@ -4233,7 +4233,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4233
4233
|
opacity: 0.4;
|
|
4234
4234
|
cursor: not-allowed;
|
|
4235
4235
|
}
|
|
4236
|
-
`,fl=class extends Xe{static styles=[...Xe.styles,RP]};customElements.define(fl.tagName,fl);var
|
|
4236
|
+
`,fl=class extends Xe{static styles=[...Xe.styles,RP]};customElements.define(fl.tagName,fl);var G2=Symbol("dui-menubar");var IP=b`
|
|
4237
4237
|
:host {
|
|
4238
4238
|
display: block;
|
|
4239
4239
|
}
|
|
@@ -4247,7 +4247,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4247
4247
|
flex-direction: column;
|
|
4248
4248
|
align-items: stretch;
|
|
4249
4249
|
}
|
|
4250
|
-
`,
|
|
4250
|
+
`,X2,J2,Q2,Z2,tM,uo,Bk,Fk,Vk,Pk,qk,lf,Je,eM,df,cf,gl,Uk,jk,pf,Ro=class extends(tM=x,Z2=[u({type:Boolean})],Q2=[u({reflect:!0})],J2=[C()],X2=[lt({context:G2}),C()],tM){constructor(){super(...arguments);a(this,Je);a(this,Bk,n(uo,8,this,!0)),n(uo,11,this);a(this,Fk,n(uo,12,this,"horizontal")),n(uo,15,this);a(this,Vk,n(uo,16,this,null)),n(uo,19,this);a(this,df,t=>{h(this,Je,t,lf)});a(this,cf,()=>{h(this,Je,null,lf)});a(this,gl,t=>{let e=p(this,Je,eM).call(this);if(e.length===0)return;let s=e.findIndex(E=>E.getAttribute("data-menubar-id")===o(this,Je,qk)),l;t==="next"?(l=s+1,l>=e.length&&(l=this.loop?0:e.length-1)):(l=s-1,l<0&&(l=this.loop?e.length-1:0));let d=e[l];if(!d)return;let m=d.getAttribute("data-menubar-id");m&&h(this,Je,m,lf),d.querySelector('[slot="trigger"]')?.focus()});a(this,Uk,n(uo,20,this,p(this,Je,jk).call(this))),n(uo,23,this);a(this,pf,t=>{let e=this.orientation==="horizontal",s=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";t.key===s?(t.preventDefault(),o(this,gl).call(this,"next")):t.key===l&&(t.preventDefault(),o(this,gl).call(this,"prev"))})}willUpdate(){this._ctx=p(this,Je,jk).call(this)}render(){return f`
|
|
4251
4251
|
<div
|
|
4252
4252
|
part="root"
|
|
4253
4253
|
role="menubar"
|
|
@@ -4256,7 +4256,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4256
4256
|
>
|
|
4257
4257
|
<slot></slot>
|
|
4258
4258
|
</div>
|
|
4259
|
-
`}};uo=A(tM),
|
|
4259
|
+
`}};uo=A(tM),Bk=new WeakMap,Fk=new WeakMap,Vk=new WeakMap,Je=new WeakSet,eM=function(){return[...this.querySelectorAll("dui-menu")]},df=new WeakMap,cf=new WeakMap,gl=new WeakMap,Uk=new WeakMap,jk=function(){return{activeMenuId:o(this,Je,qk),openMenu:o(this,df),closeAll:o(this,cf),navigateToMenu:o(this,gl)}},pf=new WeakMap,c(uo,4,"loop",Z2,Ro,Bk),c(uo,4,"orientation",Q2,Ro,Fk),Pk=c(uo,20,"#activeMenuId",J2,Je,Vk),qk=Pk.get,lf=Pk.set,c(uo,4,"_ctx",X2,Ro,Uk),T(uo,Ro),v(Ro,"tagName","dui-menubar"),v(Ro,"styles",[w,IP]);var LP=k`
|
|
4260
4260
|
[part="root"] {
|
|
4261
4261
|
gap: var(--space-1);
|
|
4262
4262
|
border: var(--border-width-thin) solid var(--border);
|
|
@@ -4264,7 +4264,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4264
4264
|
background: var(--background);
|
|
4265
4265
|
padding: var(--space-1);
|
|
4266
4266
|
}
|
|
4267
|
-
`,vl=class extends Ro{static styles=[...Ro.styles,LP]};customElements.define(vl.tagName,vl);var
|
|
4267
|
+
`,vl=class extends Ro{static styles=[...Ro.styles,LP]};customElements.define(vl.tagName,vl);var RE=M("value-change",{bubbles:!0,composed:!0}),mf=M("value-committed",{bubbles:!0,composed:!0}),zP=b`
|
|
4268
4268
|
:host {
|
|
4269
4269
|
display: block;
|
|
4270
4270
|
}
|
|
@@ -4330,7 +4330,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4330
4330
|
pointer-events: none;
|
|
4331
4331
|
}
|
|
4332
4332
|
|
|
4333
|
-
`,OP=3,oM,rM,sM,iM,nM,aM,lM,dM,cM,pM,hM,uM,mM,fM,gM,vM,bM,xM,yM,wM,kM,EM,CM,$M,TM,SM,gp,N,
|
|
4333
|
+
`,OP=3,oM,rM,sM,iM,nM,aM,lM,dM,cM,pM,hM,uM,mM,fM,gM,vM,bM,xM,yM,wM,kM,EM,CM,$M,TM,SM,gp,N,Kk,Wk,Yk,Gk,Xk,Jk,Qk,Zk,tE,eE,oE,rE,sE,iE,nE,aE,lE,dE,cE,pE,hE,uE,mE,AM,wE,I,fE,gE,kE,EE,vE,bE,_M,CE,xE,yE,$E,bl,vp,bp,Wi,Yi,xp,xr,RM,IM,Pi,TE,SE,Ui,LM,zM,hf,qi,AE,ji,xl,yl,_E,uf,Ki,yp,Gi,ff,gf,vf,bf,xf,yf,wf,mt=class extends(SM=x,TM=[u({type:Number})],$M=[u({type:Number,attribute:"default-value"})],CM=[u({type:Number})],EM=[u({type:Number})],kM=[u({type:Number})],wM=[u({type:Number,attribute:"large-step"})],yM=[u({type:Boolean,reflect:!0})],xM=[u({type:Boolean,reflect:!0,attribute:"read-only"})],bM=[u({type:Boolean})],vM=[u()],gM=[u({reflect:!0})],fM=[u({reflect:!0,attribute:"label-position"})],mM=[u({reflect:!0,attribute:"icon-position"})],uM=[u({reflect:!0})],hM=[u({type:Number})],pM=[u({type:Boolean,reflect:!0,attribute:"scrub-label"})],cM=[u({type:Boolean,reflect:!0,attribute:"scrub-value"})],dM=[u({type:Boolean,reflect:!0,attribute:"scrub-field"})],lM=[u({type:Boolean,reflect:!0,attribute:"click-label"})],aM=[u({type:Boolean,reflect:!0,attribute:"click-value"})],nM=[u({type:Boolean,reflect:!0,attribute:"click-field"})],iM=[C()],sM=[C()],rM=[C()],oM=[C()],SM){constructor(){super();a(this,I);a(this,gp);a(this,Kk,n(N,8,this)),n(N,11,this);a(this,Wk,n(N,12,this)),n(N,15,this);a(this,Yk,n(N,16,this)),n(N,19,this);a(this,Gk,n(N,20,this)),n(N,23,this);a(this,Xk,n(N,24,this,1)),n(N,27,this);a(this,Jk,n(N,28,this,10)),n(N,31,this);a(this,Qk,n(N,32,this,!1)),n(N,35,this);a(this,Zk,n(N,36,this,!1)),n(N,39,this);a(this,tE,n(N,40,this,!1)),n(N,43,this);a(this,eE,n(N,44,this)),n(N,47,this);a(this,oE,n(N,48,this,"")),n(N,51,this);a(this,rE,n(N,52,this,"")),n(N,55,this);a(this,sE,n(N,56,this,"")),n(N,59,this);a(this,iE,n(N,60,this,"")),n(N,63,this);a(this,nE,n(N,64,this)),n(N,67,this);a(this,aE,n(N,68,this,!1)),n(N,71,this);a(this,lE,n(N,72,this,!1)),n(N,75,this);a(this,dE,n(N,76,this,!1)),n(N,79,this);a(this,cE,n(N,80,this,!1)),n(N,83,this);a(this,pE,n(N,84,this,!1)),n(N,87,this);a(this,hE,n(N,88,this,!1)),n(N,91,this);a(this,uE,n(N,92,this)),n(N,95,this);a(this,fE,n(N,96,this,"")),n(N,99,this);a(this,vE,n(N,100,this,!1)),n(N,103,this);a(this,xE,n(N,104,this,!1)),n(N,107,this);a(this,vp,0);a(this,bp,0);a(this,Wi,!1);a(this,Yi,null);a(this,xp,!1);a(this,xl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,xr)??this.min??0;p(this,I,ji).call(this,e+t)});a(this,yl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,xr)??this.max??0;p(this,I,ji).call(this,e-t)});a(this,yp,t=>{if(t.pointerId!==o(this,Yi))return;let e=t.clientX-o(this,vp);if(!o(this,Wi)){if(Math.abs(e)<OP)return;h(this,Wi,!0),h(this,I,!0,CE)}let s=this.step;t.shiftKey?s=this.step*.1:(t.ctrlKey||t.metaKey)&&(s=this.largeStep);let l=o(this,bp)+e*s;p(this,I,ji).call(this,l)});a(this,Gi,t=>{if(t.pointerId===o(this,Yi)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",o(this,yp)),this.removeEventListener("pointerup",o(this,Gi)),this.removeEventListener("pointercancel",o(this,Gi)),o(this,Wi)){h(this,I,!1,CE);let e=o(this,I,xr);e!==void 0&&this.dispatchEvent(mf({value:e}))}else o(this,xp)&&p(this,I,uf).call(this);h(this,Yi,null)}});a(this,ff,t=>{if(t.button!==0)return;let e=o(this,I,TE)||o(this,I,Ui),s=o(this,I,LM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,gf,t=>{if(t.button!==0)return;let e=o(this,I,SE)||o(this,I,Ui),s=o(this,I,zM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&h(this,I,!0,bl)});a(this,vf,t=>{if(t.button!==0)return;let e=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==e)return;let s=o(this,I,Ui),l=o(this,I,hf);s&&l?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):s?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):l&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,bf,t=>{h(this,I,t.target.value,EE)});a(this,xf,()=>{o(this,I,$E)&&p(this,I,_E).call(this)});a(this,yf,()=>{h(this,I,!0,bl);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});a(this,wf,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?o(this,xl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,xl).call(this,this.largeStep):o(this,xl).call(this,this.step),p(this,I,qi).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?o(this,yl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,yl).call(this,this.largeStep):o(this,yl).call(this,this.step),p(this,I,qi).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.max));break;case"Enter":p(this,I,_E).call(this);break;case"Escape":{h(this,I,!1,bl),p(this,I,qi).call(this);let e=this.shadowRoot?.querySelector('[part="input"]');e&&e.blur();break}}});h(this,gp,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,I,p(this,I,AE).call(this,this.defaultValue),wE),p(this,I,qi).call(this)}willUpdate(){o(this,I,$E)||p(this,I,qi).call(this),o(this,gp).setFormValue(o(this,I,xr)!==void 0?String(o(this,I,xr)):null)}render(){let t=o(this,I,xr),e=o(this,I,TE)||o(this,I,Ui),s=o(this,I,SE)||o(this,I,Ui),l=o(this,I,Ui);return f`
|
|
4334
4334
|
<span
|
|
4335
4335
|
part="label"
|
|
4336
4336
|
?data-scrub="${e}"
|
|
@@ -4354,7 +4354,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4354
4354
|
type="text"
|
|
4355
4355
|
inputmode="decimal"
|
|
4356
4356
|
?data-scrub="${s}"
|
|
4357
|
-
.value="${dr(o(this,I,
|
|
4357
|
+
.value="${dr(o(this,I,kE))}"
|
|
4358
4358
|
?disabled="${this.disabled}"
|
|
4359
4359
|
?readonly="${this.readOnly}"
|
|
4360
4360
|
?required="${this.required}"
|
|
@@ -4372,7 +4372,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4372
4372
|
<span part="unit">${this.unit}</span>
|
|
4373
4373
|
|
|
4374
4374
|
</div>
|
|
4375
|
-
`}};N=A(SM),gp=new WeakMap,
|
|
4375
|
+
`}};N=A(SM),gp=new WeakMap,Kk=new WeakMap,Wk=new WeakMap,Yk=new WeakMap,Gk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Zk=new WeakMap,tE=new WeakMap,eE=new WeakMap,oE=new WeakMap,rE=new WeakMap,sE=new WeakMap,iE=new WeakMap,nE=new WeakMap,aE=new WeakMap,lE=new WeakMap,dE=new WeakMap,cE=new WeakMap,pE=new WeakMap,hE=new WeakMap,uE=new WeakMap,I=new WeakSet,fE=new WeakMap,vE=new WeakMap,xE=new WeakMap,vp=new WeakMap,bp=new WeakMap,Wi=new WeakMap,Yi=new WeakMap,xp=new WeakMap,xr=function(){return this.value??o(this,I,AM)},RM=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},IM=function(){let t=o(this,I,xr);if(t===void 0)return"";let e=this.precision??o(this,I,RM);return t.toFixed(e)},Pi=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},TE=function(){return o(this,I,Pi)?this.scrubLabel:this.label!==""},SE=function(){return o(this,I,Pi)?this.scrubValue:!1},Ui=function(){return o(this,I,Pi)?this.scrubField:this.label===""},LM=function(){return o(this,I,Pi)?this.clickLabel:!1},zM=function(){return o(this,I,Pi)?this.clickValue:!0},hf=function(){return o(this,I,Pi)?this.clickField:!1},qi=function(){h(this,I,o(this,I,IM),EE)},AE=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},ji=function(t){let e=p(this,I,AE).call(this,t);this.value===void 0&&h(this,I,e,wE),this.dispatchEvent(RE({value:e}))},xl=new WeakMap,yl=new WeakMap,_E=function(){let t=parseFloat(o(this,I,kE));Number.isNaN(t)?p(this,I,qi).call(this):p(this,I,ji).call(this,t),h(this,I,!1,bl);let e=o(this,I,xr);e!==void 0&&this.dispatchEvent(mf({value:e}))},uf=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(h(this,I,!0,bl),t.focus(),t.select())},Ki=function(t,e){this.disabled||this.readOnly||(h(this,Yi,t.pointerId),h(this,vp,t.clientX),h(this,bp,o(this,I,xr)??0),h(this,Wi,!1),h(this,xp,e),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",o(this,yp)),this.addEventListener("pointerup",o(this,Gi)),this.addEventListener("pointercancel",o(this,Gi)))},yp=new WeakMap,Gi=new WeakMap,ff=new WeakMap,gf=new WeakMap,vf=new WeakMap,bf=new WeakMap,xf=new WeakMap,yf=new WeakMap,wf=new WeakMap,c(N,4,"value",TM,mt,Kk),c(N,4,"defaultValue",$M,mt,Wk),c(N,4,"min",CM,mt,Yk),c(N,4,"max",EM,mt,Gk),c(N,4,"step",kM,mt,Xk),c(N,4,"largeStep",wM,mt,Jk),c(N,4,"disabled",yM,mt,Qk),c(N,4,"readOnly",xM,mt,Zk),c(N,4,"required",bM,mt,tE),c(N,4,"name",vM,mt,eE),c(N,4,"label",gM,mt,oE),c(N,4,"labelPosition",fM,mt,rE),c(N,4,"iconPosition",mM,mt,sE),c(N,4,"unit",uM,mt,iE),c(N,4,"precision",hM,mt,nE),c(N,4,"scrubLabel",pM,mt,aE),c(N,4,"scrubValue",cM,mt,lE),c(N,4,"scrubField",dM,mt,dE),c(N,4,"clickLabel",lM,mt,cE),c(N,4,"clickValue",aM,mt,pE),c(N,4,"clickField",nM,mt,hE),mE=c(N,20,"#internalValue",iM,I,uE),AM=mE.get,wE=mE.set,gE=c(N,20,"#inputText",sM,I,fE),kE=gE.get,EE=gE.set,bE=c(N,20,"#dragging",rM,I,vE),_M=bE.get,CE=bE.set,yE=c(N,20,"#editing",oM,I,xE),$E=yE.get,bl=yE.set,T(N,mt),v(mt,"tagName","dui-number-field"),v(mt,"formAssociated",!0),v(mt,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(mt,"styles",[w,zP]);var MP=k`
|
|
4376
4376
|
:host {
|
|
4377
4377
|
--number-field-bg: transparent;
|
|
4378
4378
|
--number-field-fg: var(--text-1);
|
|
@@ -4604,7 +4604,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4604
4604
|
:host {
|
|
4605
4605
|
display: contents;
|
|
4606
4606
|
}
|
|
4607
|
-
`,OM,MM,NM,DM,HM,BM,FM,VM,Gt,
|
|
4607
|
+
`,OM,MM,NM,DM,HM,BM,FM,VM,Gt,IE,LE,zE,OE,ME,NE,kf,Ef,bt,DE,HE,FE,PM,wp,Tf,Sf,BE,kp,VE,Cf,UM,qM,Qe=class extends(VM=x,FM=[u({type:Boolean,reflect:!0})],BM=[u({type:Boolean,attribute:"default-open"})],HM=[u({reflect:!0})],DM=[u({type:Number,attribute:"side-offset"})],NM=[C()],MM=[C()],OM=[lt({context:Hs}),C()],VM){constructor(){super(...arguments);a(this,bt);a(this,IE,n(Gt,8,this,!1)),n(Gt,11,this);a(this,LE,n(Gt,12,this,!1)),n(Gt,15,this);a(this,zE,n(Gt,16,this,"bottom")),n(Gt,19,this);a(this,OE,n(Gt,20,this,8)),n(Gt,23,this);a(this,ME,n(Gt,24,this,!1)),n(Gt,27,this);a(this,DE,n(Gt,28,this)),n(Gt,31,this);a(this,Tf,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Sf,`popover-popup-${crypto.randomUUID().slice(0,8)}`);a(this,BE,n(Gt,32,this,{open:!1,triggerId:o(this,Tf),popupId:o(this,Sf),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>p(this,bt,VE).call(this),closePopover:()=>p(this,bt,Cf).call(this),togglePopover:()=>p(this,bt,UM).call(this),setTriggerEl:t=>p(this,bt,qM).call(this,t)})),n(Gt,35,this);a(this,kp,t=>{o(this,bt,wp)&&t.key==="Escape"&&(t.preventDefault(),p(this,bt,Cf).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,bt,!0,Ef),document.addEventListener("keydown",o(this,kp))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",o(this,kp))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==o(this,bt,wp)||this._ctx.triggerEl!==o(this,bt,FE))&&(this._ctx={...this._ctx,open:o(this,bt,wp),side:this.side,sideOffset:this.sideOffset,triggerEl:o(this,bt,FE)})}render(){return f`<slot></slot>`}};Gt=A(VM),IE=new WeakMap,LE=new WeakMap,zE=new WeakMap,OE=new WeakMap,ME=new WeakMap,bt=new WeakSet,DE=new WeakMap,wp=function(){return this.open||o(this,bt,kf)},Tf=new WeakMap,Sf=new WeakMap,BE=new WeakMap,kp=new WeakMap,VE=function(){o(this,bt,kf)||(h(this,bt,!0,Ef),this.dispatchEvent($f({open:!0})))},Cf=function(){o(this,bt,kf)&&(h(this,bt,!1,Ef),this.dispatchEvent($f({open:!1})))},UM=function(){o(this,bt,wp)?p(this,bt,Cf).call(this):p(this,bt,VE).call(this)},qM=function(t){h(this,bt,t,PM)},c(Gt,4,"open",FM,Qe,IE),c(Gt,4,"defaultOpen",BM,Qe,LE),c(Gt,4,"side",HM,Qe,zE),c(Gt,4,"sideOffset",DM,Qe,OE),NE=c(Gt,20,"#internalOpen",NM,bt,ME),kf=NE.get,Ef=NE.set,HE=c(Gt,20,"#triggerEl",MM,bt,DE),FE=HE.get,PM=HE.set,c(Gt,4,"_ctx",OM,Qe,BE),T(Gt,Qe),v(Qe,"tagName","dui-popover"),v(Qe,"styles",[w,NP]);var DP=b`
|
|
4608
4608
|
:host {
|
|
4609
4609
|
display: contents;
|
|
4610
4610
|
}
|
|
@@ -4674,7 +4674,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4674
4674
|
left: 50%;
|
|
4675
4675
|
transform: translateX(-50%) rotate(180deg);
|
|
4676
4676
|
}
|
|
4677
|
-
`],jM,KM,WM,YM,yr,
|
|
4677
|
+
`],jM,KM,WM,YM,yr,PE,UE,qE,jE,Af,GM,wr,ps,kl,Bs,_f,XM,Go=class extends(YM=x,WM=[u({type:Boolean,attribute:"show-arrow"})],KM=[u({type:Boolean,attribute:"close-on-click"})],jM=[C()],YM){constructor(){super(...arguments);a(this,wr);a(this,PE,n(yr,8,this,!0)),n(yr,11,this);a(this,UE,n(yr,12,this,!1)),n(yr,15,this);a(this,qE,n(yr,16,this,"bottom")),n(yr,19,this);a(this,ps,new q(this,{context:Hs,subscribe:!0}));a(this,kl,!1);a(this,Bs,new Te(this,{getAnchor:()=>o(this,ps).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:FP,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,wr,Af)&&h(this,wr,e,GM)},renderPopup:t=>{let e=o(this,ps).value?.popupId??"";return f`
|
|
4678
4678
|
<div
|
|
4679
4679
|
class="Popup"
|
|
4680
4680
|
id="${e}"
|
|
@@ -4687,7 +4687,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4687
4687
|
<div class="Content"></div>
|
|
4688
4688
|
${this.showArrow?Ra(o(this,wr,Af)):""}
|
|
4689
4689
|
</div>
|
|
4690
|
-
`}}));a(this,_f,()=>{this.closeOnClick&&o(this,ps).value?.closePopover()})}containsEventTarget(t){let e=o(this,Bs).positionerElement;return e!==null&&t.includes(e)}updated(){let t=o(this,ps).value?.open??!1;t&&!o(this,kl)?(p(this,wr,XM).call(this),o(this,Bs).open()):!t&&o(this,kl)&&o(this,Bs).close(),h(this,kl,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};yr=A(YM),
|
|
4690
|
+
`}}));a(this,_f,()=>{this.closeOnClick&&o(this,ps).value?.closePopover()})}containsEventTarget(t){let e=o(this,Bs).positionerElement;return e!==null&&t.includes(e)}updated(){let t=o(this,ps).value?.open??!1;t&&!o(this,kl)?(p(this,wr,XM).call(this),o(this,Bs).open()):!t&&o(this,kl)&&o(this,Bs).close(),h(this,kl,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};yr=A(YM),PE=new WeakMap,UE=new WeakMap,qE=new WeakMap,wr=new WeakSet,ps=new WeakMap,kl=new WeakMap,Bs=new WeakMap,_f=new WeakMap,XM=function(){let t=o(this,ps).value?.side??"bottom";o(this,Bs).placement=t,o(this,Bs).offset=o(this,ps).value?.sideOffset??8},c(yr,4,"showArrow",WM,Go,PE),c(yr,4,"closeOnClick",KM,Go,UE),jE=c(yr,20,"#side",jM,wr,qE),Af=jE.get,GM=jE.set,T(yr,Go),v(Go,"tagName","dui-popover-popup"),v(Go,"styles",[w,BP]);var VP=b`
|
|
4691
4691
|
:host {
|
|
4692
4692
|
display: contents;
|
|
4693
4693
|
}
|
|
@@ -4723,11 +4723,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
4723
4723
|
:host {
|
|
4724
4724
|
display: contents;
|
|
4725
4725
|
}
|
|
4726
|
-
`,JM,QM,ZM,t5,kr,
|
|
4726
|
+
`,JM,QM,ZM,t5,kr,KE,WE,YE,Er,Xi,Fs,Ze,GE,e5,XE,Rf,If,Io=class extends(t5=x,ZM=[u({type:String})],QM=[u({type:String,attribute:"target-root",reflect:!0})],JM=[u({attribute:!1})],t5){constructor(){super(...arguments);a(this,Ze);a(this,KE,n(kr,8,this,"body")),n(kr,11,this);a(this,WE,n(kr,12,this,"document")),n(kr,15,this);a(this,YE,n(kr,16,this)),n(kr,19,this);a(this,Er);a(this,Xi,new Set);a(this,Fs,!1);a(this,If,()=>{o(this,Fs)||!o(this,Er)||p(this,Ze,Rf).call(this)})}connectedCallback(){super.connectedCallback(),h(this,Er,this.targetElement??p(this,Ze,GE).call(this)),o(this,Er)&&this.childNodes.length>0&&p(this,Ze,Rf).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Ze,XE).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(p(this,Ze,XE).call(this),p(this,Ze,e5).call(this))}render(){return f`<slot @slotchange=${o(this,If)}></slot>`}};kr=A(t5),KE=new WeakMap,WE=new WeakMap,YE=new WeakMap,Er=new WeakMap,Xi=new WeakMap,Fs=new WeakMap,Ze=new WeakSet,GE=function(){return JR(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},e5=function(){h(this,Er,this.targetElement??p(this,Ze,GE).call(this)),p(this,Ze,Rf).call(this)},XE=function(){if(o(this,Xi).size!==0){h(this,Fs,!0);for(let t of o(this,Xi))this.append(t);o(this,Xi).clear(),h(this,Fs,!1),h(this,Er,void 0)}},Rf=function(){if(!o(this,Er))throw new Error(`Portal target does not exist: ${this.target}`);h(this,Fs,!0);let t=Array.from(this.childNodes);for(let e of t)o(this,Er).appendChild(e),o(this,Xi).add(e);h(this,Fs,!1)},If=new WeakMap,c(kr,4,"target",ZM,Io,KE),c(kr,4,"targetRoot",QM,Io,WE),c(kr,4,"targetElement",JM,Io,YE),T(kr,Io),v(Io,"tagName","dui-portal"),v(Io,"styles",[qP]);var jP=k``,Sl=class extends Io{static styles=[...Io.styles,jP]};customElements.define(Sl.tagName,Sl);var Al=Symbol("dui-preview-card");var Mf=M("open-change",{bubbles:!0,composed:!0}),KP=b`
|
|
4727
4727
|
:host {
|
|
4728
4728
|
display: contents;
|
|
4729
4729
|
}
|
|
4730
|
-
`,o5,r5,s5,i5,n5,a5,l5,d5,c5,p5,zt,
|
|
4730
|
+
`,o5,r5,s5,i5,n5,a5,l5,d5,c5,p5,zt,JE,QE,ZE,tC,eC,oC,rC,sC,Lf,zf,xt,iC,nC,lC,h5,Ji,Qi,Nf,Df,aC,Of,u5,m5,dC,cC,f5,Se=class extends(p5=x,c5=[u({type:Boolean,reflect:!0})],d5=[u({type:Boolean,attribute:"default-open"})],l5=[u({reflect:!0})],a5=[u({type:Number,attribute:"side-offset"})],n5=[u({type:Number})],i5=[u({type:Number,attribute:"close-delay"})],s5=[C()],r5=[C()],o5=[lt({context:Al}),C()],p5){constructor(){super(...arguments);a(this,xt);a(this,JE,n(zt,8,this,!1)),n(zt,11,this);a(this,QE,n(zt,12,this,!1)),n(zt,15,this);a(this,ZE,n(zt,16,this,"top")),n(zt,19,this);a(this,tC,n(zt,20,this,8)),n(zt,23,this);a(this,eC,n(zt,24,this,400)),n(zt,27,this);a(this,oC,n(zt,28,this,300)),n(zt,31,this);a(this,rC,n(zt,32,this,!1)),n(zt,35,this);a(this,iC,n(zt,36,this)),n(zt,39,this);a(this,Ji);a(this,Qi);a(this,Nf,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Df,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);a(this,aC,n(zt,40,this,{open:!1,triggerId:o(this,Nf),popupId:o(this,Df),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>p(this,xt,u5).call(this),closePreviewCard:()=>p(this,xt,m5).call(this),setTriggerEl:t=>p(this,xt,f5).call(this,t)})),n(zt,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,xt,!0,zf)}disconnectedCallback(){super.disconnectedCallback(),p(this,xt,Of).call(this)}willUpdate(t){let e=this.open||o(this,xt,Lf);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e||this._ctx.triggerEl!==o(this,xt,lC))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,triggerEl:o(this,xt,lC)})}render(){return f`<slot></slot>`}};zt=A(p5),JE=new WeakMap,QE=new WeakMap,ZE=new WeakMap,tC=new WeakMap,eC=new WeakMap,oC=new WeakMap,rC=new WeakMap,xt=new WeakSet,iC=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,Nf=new WeakMap,Df=new WeakMap,aC=new WeakMap,Of=function(){o(this,Ji)&&(clearTimeout(o(this,Ji)),h(this,Ji,void 0)),o(this,Qi)&&(clearTimeout(o(this,Qi)),h(this,Qi,void 0))},u5=function(){p(this,xt,Of).call(this),this.delay<=0?p(this,xt,dC).call(this):h(this,Ji,setTimeout(()=>p(this,xt,dC).call(this),this.delay))},m5=function(){p(this,xt,Of).call(this),this.closeDelay<=0?p(this,xt,cC).call(this):h(this,Qi,setTimeout(()=>p(this,xt,cC).call(this),this.closeDelay))},dC=function(){o(this,xt,Lf)||(h(this,xt,!0,zf),this.dispatchEvent(Mf({open:!0})))},cC=function(){o(this,xt,Lf)&&(h(this,xt,!1,zf),this.dispatchEvent(Mf({open:!1})))},f5=function(t){h(this,xt,t,h5)},c(zt,4,"open",c5,Se,JE),c(zt,4,"defaultOpen",d5,Se,QE),c(zt,4,"side",l5,Se,ZE),c(zt,4,"sideOffset",a5,Se,tC),c(zt,4,"delay",n5,Se,eC),c(zt,4,"closeDelay",i5,Se,oC),sC=c(zt,20,"#internalOpen",s5,xt,rC),Lf=sC.get,zf=sC.set,nC=c(zt,20,"#triggerEl",r5,xt,iC),lC=nC.get,h5=nC.set,c(zt,4,"_ctx",o5,Se,aC),T(zt,Se),v(Se,"tagName","dui-preview-card"),v(Se,"styles",[w,KP]);var WP=b`
|
|
4731
4731
|
:host {
|
|
4732
4732
|
display: contents;
|
|
4733
4733
|
}
|
|
@@ -4800,7 +4800,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4800
4800
|
left: 50%;
|
|
4801
4801
|
transform: translateX(-50%) rotate(180deg);
|
|
4802
4802
|
}
|
|
4803
|
-
`],g5,v5,b5,Zi,
|
|
4803
|
+
`],g5,v5,b5,Zi,pC,hC,uC,Hf,x5,Tr,Cr,_l,tn,Bf,Ff,y5,$r=class extends(b5=x,v5=[u({type:Boolean,attribute:"show-arrow"})],g5=[C()],b5){constructor(){super(...arguments);a(this,Tr);a(this,pC,n(Zi,8,this,!0)),n(Zi,11,this);a(this,hC,n(Zi,12,this,"top")),n(Zi,15,this);a(this,Cr,new q(this,{context:Al,subscribe:!0}));a(this,_l,!1);a(this,tn,new Te(this,{getAnchor:()=>o(this,Cr).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:XP,contentContainer:".PreviewCardContent",forwardProperties:["--preview-card-popup-padding"],onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Tr,Hf)&&h(this,Tr,e,x5)},renderPopup:t=>{let e=o(this,Cr).value?.popupId??"";return f`
|
|
4804
4804
|
<div
|
|
4805
4805
|
class="Popup"
|
|
4806
4806
|
id="${e}"
|
|
@@ -4814,7 +4814,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4814
4814
|
<div class="PreviewCardContent"></div>
|
|
4815
4815
|
${this.showArrow?Ra(o(this,Tr,Hf)):""}
|
|
4816
4816
|
</div>
|
|
4817
|
-
`}}));a(this,Bf,()=>{o(this,Cr).value?.openPreviewCard()});a(this,Ff,()=>{o(this,Cr).value?.closePreviewCard()})}updated(){let t=o(this,Cr).value?.open??!1;t&&!o(this,_l)?(p(this,Tr,y5).call(this),o(this,tn).open()):!t&&o(this,_l)&&o(this,tn).close(),h(this,_l,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Zi=A(b5),
|
|
4817
|
+
`}}));a(this,Bf,()=>{o(this,Cr).value?.openPreviewCard()});a(this,Ff,()=>{o(this,Cr).value?.closePreviewCard()})}updated(){let t=o(this,Cr).value?.open??!1;t&&!o(this,_l)?(p(this,Tr,y5).call(this),o(this,tn).open()):!t&&o(this,_l)&&o(this,tn).close(),h(this,_l,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Zi=A(b5),pC=new WeakMap,hC=new WeakMap,Tr=new WeakSet,Cr=new WeakMap,_l=new WeakMap,tn=new WeakMap,Bf=new WeakMap,Ff=new WeakMap,y5=function(){let t=o(this,Cr).value?.side??"top";o(this,tn).placement=t,o(this,tn).offset=o(this,Cr).value?.sideOffset??8},c(Zi,4,"showArrow",v5,$r,pC),uC=c(Zi,20,"#side",g5,Tr,hC),Hf=uC.get,x5=uC.set,T(Zi,$r),v($r,"tagName","dui-preview-card-popup"),v($r,"styles",[w,GP]);var JP=k``,Rl=class extends Se{static styles=[...Se.styles,JP]};customElements.define(Rl.tagName,Rl);var QP=k`
|
|
4818
4818
|
.Popup {
|
|
4819
4819
|
padding: var(--preview-card-popup-padding, var(--space-4));
|
|
4820
4820
|
border-radius: var(--radius-md);
|
|
@@ -4857,23 +4857,23 @@ label, legend, caption, figcaption, th, td {
|
|
|
4857
4857
|
width: var(--progress-value, 0%);
|
|
4858
4858
|
height: 100%;
|
|
4859
4859
|
}
|
|
4860
|
-
`,w5,k5,E5,C5,Sr,
|
|
4860
|
+
`,w5,k5,E5,C5,Sr,mC,fC,gC,Ar,$5,vC,bC,Lo=class extends(C5=x,E5=[u({type:Number})],k5=[u({type:Number})],w5=[u({type:Number})],C5){constructor(){super(...arguments);a(this,Ar);a(this,mC,n(Sr,8,this,null)),n(Sr,11,this);a(this,fC,n(Sr,12,this,0)),n(Sr,15,this);a(this,gC,n(Sr,16,this,100)),n(Sr,19,this)}render(){let t=o(this,Ar,$5);return f`
|
|
4861
4861
|
<div
|
|
4862
4862
|
part="root"
|
|
4863
4863
|
role="progressbar"
|
|
4864
4864
|
aria-valuenow="${this.value??L}"
|
|
4865
4865
|
aria-valuemin="${this.min}"
|
|
4866
4866
|
aria-valuemax="${this.max}"
|
|
4867
|
-
?data-complete="${o(this,Ar,
|
|
4868
|
-
?data-progressing="${!o(this,Ar,
|
|
4869
|
-
?data-indeterminate="${o(this,Ar,
|
|
4867
|
+
?data-complete="${o(this,Ar,bC)}"
|
|
4868
|
+
?data-progressing="${!o(this,Ar,vC)&&!o(this,Ar,bC)}"
|
|
4869
|
+
?data-indeterminate="${o(this,Ar,vC)}"
|
|
4870
4870
|
style="--progress-value: ${t}%"
|
|
4871
4871
|
>
|
|
4872
4872
|
<div part="track">
|
|
4873
4873
|
<div part="indicator"></div>
|
|
4874
4874
|
</div>
|
|
4875
4875
|
</div>
|
|
4876
|
-
`}};Sr=A(C5),
|
|
4876
|
+
`}};Sr=A(C5),mC=new WeakMap,fC=new WeakMap,gC=new WeakMap,Ar=new WeakSet,$5=function(){if(this.value===null)return 0;let t=this.max-this.min;return t<=0?0:Math.max(0,Math.min(100,(this.value-this.min)/t*100))},vC=function(){return this.value===null},bC=function(){return this.value!==null&&this.value>=this.max},c(Sr,4,"value",E5,Lo,mC),c(Sr,4,"min",k5,Lo,fC),c(Sr,4,"max",w5,Lo,gC),T(Sr,Lo),v(Lo,"tagName","dui-progress"),v(Lo,"styles",[w,ZP]);var tU=k`
|
|
4877
4877
|
:host {
|
|
4878
4878
|
--progress-height: var(--space-2);
|
|
4879
4879
|
}
|
|
@@ -4947,7 +4947,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4947
4947
|
display: none;
|
|
4948
4948
|
}
|
|
4949
4949
|
|
|
4950
|
-
`,T5,S5,A5,_5,Ol,_r,
|
|
4950
|
+
`,T5,S5,A5,_5,Ol,_r,xC,yC,wC,Vs,De,kC,EC,CC,R5,I5,Tp,Ml,Pf,mo=class extends(_5=x,A5=[u()],S5=[u({type:Boolean,reflect:!0})],T5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],_5){constructor(){super();a(this,De);a(this,Ol);a(this,xC,n(_r,8,this,"")),n(_r,11,this);a(this,yC,n(_r,12,this,!1)),n(_r,15,this);a(this,wC,n(_r,16,this,!1)),n(_r,19,this);a(this,Vs,new q(this,{context:Vf,subscribe:!0}));a(this,Tp,t=>{t.target.closest("[part='root']")||o(this,Ml).call(this,t)});a(this,Ml,t=>{if(o(this,De,EC)||o(this,De,CC))return;let e=o(this,Vs).value;e&&e.select(this.value)});a(this,Pf,t=>{t.key===" "&&(t.preventDefault(),o(this,Ml).call(this,t))});h(this,Ol,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",o(this,Tp))}willUpdate(){p(this,De,I5).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Tp))}render(){let t=o(this,De,kC),e=o(this,De,EC),s=o(this,De,CC),l=o(this,De,R5);return f`
|
|
4951
4951
|
<span
|
|
4952
4952
|
part="root"
|
|
4953
4953
|
role="radio"
|
|
@@ -4973,7 +4973,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4973
4973
|
</span>
|
|
4974
4974
|
</span>
|
|
4975
4975
|
<slot></slot>
|
|
4976
|
-
`}};_r=A(_5),Ol=new WeakMap,
|
|
4976
|
+
`}};_r=A(_5),Ol=new WeakMap,xC=new WeakMap,yC=new WeakMap,wC=new WeakMap,Vs=new WeakMap,De=new WeakSet,kC=function(){return o(this,Vs).value?.value===this.value},EC=function(){return this.disabled||(o(this,Vs).value?.disabled??!1)},CC=function(){return this.readOnly||(o(this,Vs).value?.readOnly??!1)},R5=function(){return o(this,Vs).value?.required??!1},I5=function(){o(this,De,kC)?o(this,Ol).setFormValue(this.value):o(this,Ol).setFormValue(null)},Tp=new WeakMap,Ml=new WeakMap,Pf=new WeakMap,c(_r,4,"value",A5,mo,xC),c(_r,4,"disabled",S5,mo,yC),c(_r,4,"readOnly",T5,mo,wC),T(_r,mo),v(mo,"tagName","dui-radio"),v(mo,"formAssociated",!0),v(mo,"styles",[w,eU]);var MC=M("value-change",{bubbles:!0,composed:!0}),oU=b`
|
|
4977
4977
|
:host {
|
|
4978
4978
|
display: block;
|
|
4979
4979
|
}
|
|
@@ -4987,7 +4987,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4987
4987
|
[part="root"][data-disabled] {
|
|
4988
4988
|
opacity: 0.5;
|
|
4989
4989
|
}
|
|
4990
|
-
`,L5,z5,O5,M5,N5,D5,H5,B5,F5,Ht
|
|
4990
|
+
`,L5,z5,O5,M5,N5,D5,H5,B5,F5,Ht,$C,TC,SC,AC,_C,RC,IC,LC,V5,OC,Xo,qf,jf,zC,Uf,Ae=class extends(F5=x,B5=[u()],H5=[u()],D5=[u({attribute:"default-value"})],N5=[u({type:Boolean,reflect:!0})],M5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],O5=[u({type:Boolean,reflect:!0})],z5=[C()],L5=[lt({context:Vf}),C()],F5){constructor(){super(...arguments);a(this,Xo);a(this,$C,n(Ht,8,this)),n(Ht,11,this);a(this,TC,n(Ht,12,this)),n(Ht,15,this);a(this,SC,n(Ht,16,this)),n(Ht,19,this);a(this,AC,n(Ht,20,this,!1)),n(Ht,23,this);a(this,_C,n(Ht,24,this,!1)),n(Ht,27,this);a(this,RC,n(Ht,28,this,!1)),n(Ht,31,this);a(this,IC,n(Ht,32,this)),n(Ht,35,this);a(this,qf,()=>this.value??o(this,Xo,V5));a(this,jf,t=>{this.disabled||this.readOnly||(this.value===void 0&&h(this,Xo,t,OC),this.dispatchEvent(MC({value:t})))});a(this,zC,n(Ht,36,this,p(this,Xo,Uf).call(this))),n(Ht,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,Xo,this.defaultValue,OC),this._ctx=p(this,Xo,Uf).call(this)}willUpdate(){this._ctx=p(this,Xo,Uf).call(this)}render(){return f`
|
|
4991
4991
|
<div
|
|
4992
4992
|
part="root"
|
|
4993
4993
|
role="radiogroup"
|
|
@@ -4997,7 +4997,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4997
4997
|
>
|
|
4998
4998
|
<slot></slot>
|
|
4999
4999
|
</div>
|
|
5000
|
-
`}};Ht=A(F5)
|
|
5000
|
+
`}};Ht=A(F5),$C=new WeakMap,TC=new WeakMap,SC=new WeakMap,AC=new WeakMap,_C=new WeakMap,RC=new WeakMap,IC=new WeakMap,Xo=new WeakSet,qf=new WeakMap,jf=new WeakMap,zC=new WeakMap,Uf=function(){return{name:this.name,value:o(this,qf).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:o(this,jf)}},c(Ht,4,"name",B5,Ae,$C),c(Ht,4,"value",H5,Ae,TC),c(Ht,4,"defaultValue",D5,Ae,SC),c(Ht,4,"disabled",N5,Ae,AC),c(Ht,4,"readOnly",M5,Ae,_C),c(Ht,4,"required",O5,Ae,RC),LC=c(Ht,20,"#internalValue",z5,Xo,IC),V5=LC.get,OC=LC.set,c(Ht,4,"_ctx",L5,Ae,zC),T(Ht,Ae),v(Ae,"tagName","dui-radio-group"),v(Ae,"styles",[w,oU]);var rU=k`
|
|
5001
5001
|
:host {
|
|
5002
5002
|
--radio-size: var(--space-4_5);
|
|
5003
5003
|
gap: var(--space-2);
|
|
@@ -5139,7 +5139,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5139
5139
|
height: 100%;
|
|
5140
5140
|
min-width: 1.25rem;
|
|
5141
5141
|
}
|
|
5142
|
-
`,P5,U5,q5,j5,K5,W5,Y5,G5,X5,J5,Q5,Z5,tN,it,
|
|
5142
|
+
`,P5,U5,q5,j5,K5,W5,Y5,G5,X5,J5,Q5,Z5,tN,it,NC,DC,HC,BC,FC,Kf,eN,H,VC,PC,Wf,oN,UC,qC,r1,s1,jC,KC,Yf,i1,WC,YC,n1,rN,GC,XC,a1,sN,JC,QC,iN,nN,ZC,t1,aN,lN,e1,o1,l1,dN,Gf,hs,Hl,Bl,en,on,rn,sn,Ps,cN,pN,nn,Sp,Xf,Ap,_p,Rp,Ip,Lp,zp,hN,uN,Rr=class Rr extends(tN=x,Z5=[u({reflect:!0})],Q5=[u({type:Boolean,reflect:!0})],J5=[u({attribute:"max-height"})],X5=[C()],G5=[C()],Y5=[C()],W5=[C()],K5=[C()],j5=[C()],q5=[C()],U5=[C()],P5=[C()],tN){constructor(){super(...arguments);a(this,H);a(this,NC,n(it,8,this,"vertical")),n(it,11,this);a(this,DC,n(it,12,this,!1)),n(it,15,this);a(this,HC,n(it,16,this)),n(it,19,this);a(this,BC,n(it,20,this,!1)),n(it,23,this);a(this,VC,n(it,24,this,!1)),n(it,27,this);a(this,UC,n(it,28,this,!1)),n(it,31,this);a(this,jC,n(it,32,this,!1)),n(it,35,this);a(this,WC,n(it,36,this,0)),n(it,39,this);a(this,GC,n(it,40,this,0)),n(it,43,this);a(this,JC,n(it,44,this,0)),n(it,47,this);a(this,ZC,n(it,48,this,0)),n(it,51,this);a(this,e1,n(it,52,this,!0)),n(it,55,this);a(this,hs,!0);a(this,Hl,0);a(this,Bl);a(this,en);a(this,on);a(this,rn,0);a(this,sn,0);a(this,nn,()=>{let t=o(this,H,Ps);if(!t)return;let e=t.scrollHeight>t.clientHeight,s=t.scrollWidth>t.clientWidth;h(this,H,e,oN),h(this,H,s,eN),e&&h(this,H,t.clientHeight/t.scrollHeight*100,rN),s&&h(this,H,t.clientWidth/t.scrollWidth*100,sN),o(this,Sp).call(this,t)});a(this,Sp,t=>{if(o(this,H,Wf)){let e=t.scrollHeight-t.clientHeight;h(this,H,e>0?t.scrollTop/e*(100-o(this,H,n1)):0,nN)}if(o(this,H,Kf)){let e=t.scrollWidth-t.clientWidth;h(this,H,e>0?t.scrollLeft/e*(100-o(this,H,a1)):0,lN)}});a(this,Xf,()=>{let t=o(this,H,Ps);if(!t)return;h(this,H,!0,i1),o(this,Sp).call(this,t);let e=o(this,hs),s=t.scrollTop<o(this,Hl);h(this,H,t.scrollTop<=0,dN),h(this,hs,t.scrollTop+t.clientHeight>=t.scrollHeight-o(Rr,Gf)),s&&e&&!o(this,hs)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&o(this,hs)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),h(this,Hl,t.scrollTop),clearTimeout(o(this,Bl)),h(this,Bl,setTimeout(()=>{h(this,H,!1,i1)},1e3))});a(this,Ap,()=>{h(this,H,!0,s1),o(this,nn).call(this)});a(this,_p,()=>{h(this,H,!1,s1)});a(this,Rp,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Ps);if(s)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientY-d.top)/d.height;s.scrollTop=m*(s.scrollHeight-s.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientX-d.left)/d.width;s.scrollLeft=m*(s.scrollWidth-s.clientWidth)}});a(this,Ip,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Ps);s&&(h(this,on,t),t==="vertical"?(h(this,rn,e.clientY),h(this,sn,s.scrollTop)):(h(this,rn,e.clientX),h(this,sn,s.scrollLeft)),document.addEventListener("pointermove",o(this,Lp)),document.addEventListener("pointerup",o(this,zp)))});a(this,Lp,t=>{let e=o(this,H,Ps);if(!(!e||!o(this,on)))if(o(this,on)==="vertical"){let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!s)return;let l=t.clientY-o(this,rn),d=s.clientHeight,m=e.scrollHeight-e.clientHeight;e.scrollTop=o(this,sn)+l/d*m}else{let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!s)return;let l=t.clientX-o(this,rn),d=s.clientWidth,m=e.scrollWidth-e.clientWidth;e.scrollLeft=o(this,sn)+l/d*m}});a(this,zp,()=>{h(this,on,void 0),document.removeEventListener("pointermove",o(this,Lp)),document.removeEventListener("pointerup",o(this,zp))})}willUpdate(t){t.has("maxHeight")&&(this.maxHeight?this.style.setProperty("--scroll-area-max-height",this.maxHeight):this.style.removeProperty("--scroll-area-max-height"))}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerenter",o(this,Ap)),this.addEventListener("pointerleave",o(this,_p))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,Ap)),this.removeEventListener("pointerleave",o(this,_p)),o(this,en)?.disconnect(),clearTimeout(o(this,Bl))}firstUpdated(){let t=o(this,H,Ps);if(!t)return;h(this,en,new ResizeObserver(()=>o(this,nn).call(this))),o(this,en).observe(t);let e=t.querySelector("slot");if(e){let s=()=>{for(let l of e.assignedElements())o(this,en).observe(l)};e.addEventListener("slotchange",()=>{s(),requestAnimationFrame(()=>o(this,nn).call(this))}),s()}o(this,nn).call(this)}async scrollToBottom(){await this.updateComplete;let t=o(this,H,Ps);t&&(t.scrollTop=t.scrollHeight,h(this,hs,!0),h(this,Hl,t.scrollTop))}get isAtTop(){return o(this,H,l1)}get isAtBottom(){return o(this,hs)}render(){return f`
|
|
5143
5143
|
<div
|
|
5144
5144
|
class="ScrollArea"
|
|
5145
5145
|
part="root"
|
|
@@ -5147,17 +5147,17 @@ label, legend, caption, figcaption, th, td {
|
|
|
5147
5147
|
?data-has-overflow-y="${o(this,H,Wf)}"
|
|
5148
5148
|
?data-scrolling="${o(this,H,Yf)}"
|
|
5149
5149
|
>
|
|
5150
|
-
<div class="Viewport" part="viewport" ?data-scrolled="${!o(this,H,
|
|
5150
|
+
<div class="Viewport" part="viewport" ?data-scrolled="${!o(this,H,l1)}" @scroll="${o(this,Xf)}">
|
|
5151
5151
|
<slot></slot>
|
|
5152
5152
|
</div>
|
|
5153
5153
|
${p(this,H,hN).call(this)} ${p(this,H,uN).call(this)}
|
|
5154
5154
|
</div>
|
|
5155
|
-
`}};it=A(tN),
|
|
5155
|
+
`}};it=A(tN),NC=new WeakMap,DC=new WeakMap,HC=new WeakMap,BC=new WeakMap,H=new WeakSet,VC=new WeakMap,UC=new WeakMap,jC=new WeakMap,WC=new WeakMap,GC=new WeakMap,JC=new WeakMap,ZC=new WeakMap,e1=new WeakMap,Gf=new WeakMap,hs=new WeakMap,Hl=new WeakMap,Bl=new WeakMap,en=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,Ps=function(){return this.shadowRoot?.querySelector(".Viewport")??null},cN=function(){return this.orientation==="vertical"||this.orientation==="both"},pN=function(){return this.orientation==="horizontal"||this.orientation==="both"},nn=new WeakMap,Sp=new WeakMap,Xf=new WeakMap,Ap=new WeakMap,_p=new WeakMap,Rp=new WeakMap,Ip=new WeakMap,Lp=new WeakMap,zp=new WeakMap,hN=function(){return!o(this,H,cN)||!o(this,H,Wf)?L:f`
|
|
5156
5156
|
<div
|
|
5157
5157
|
class="Scrollbar"
|
|
5158
5158
|
part="scrollbar-vertical"
|
|
5159
5159
|
data-orientation="vertical"
|
|
5160
|
-
?data-hovering="${o(this,H,
|
|
5160
|
+
?data-hovering="${o(this,H,r1)}"
|
|
5161
5161
|
?data-scrolling="${o(this,H,Yf)}"
|
|
5162
5162
|
@pointerdown="${t=>o(this,Rp).call(this,"vertical",t)}"
|
|
5163
5163
|
>
|
|
@@ -5165,7 +5165,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5165
5165
|
class="Thumb"
|
|
5166
5166
|
part="thumb-vertical"
|
|
5167
5167
|
data-orientation="vertical"
|
|
5168
|
-
style="height: ${o(this,H,
|
|
5168
|
+
style="height: ${o(this,H,n1)}%; top: ${o(this,H,iN)}%; position: absolute;"
|
|
5169
5169
|
@pointerdown="${t=>o(this,Ip).call(this,"vertical",t)}"
|
|
5170
5170
|
></div>
|
|
5171
5171
|
</div>
|
|
@@ -5174,7 +5174,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5174
5174
|
class="Scrollbar"
|
|
5175
5175
|
part="scrollbar-horizontal"
|
|
5176
5176
|
data-orientation="horizontal"
|
|
5177
|
-
?data-hovering="${o(this,H,
|
|
5177
|
+
?data-hovering="${o(this,H,r1)}"
|
|
5178
5178
|
?data-scrolling="${o(this,H,Yf)}"
|
|
5179
5179
|
@pointerdown="${t=>o(this,Rp).call(this,"horizontal",t)}"
|
|
5180
5180
|
>
|
|
@@ -5182,11 +5182,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
5182
5182
|
class="Thumb"
|
|
5183
5183
|
part="thumb-horizontal"
|
|
5184
5184
|
data-orientation="horizontal"
|
|
5185
|
-
style="width: ${o(this,H,
|
|
5185
|
+
style="width: ${o(this,H,a1)}%; left: ${o(this,H,aN)}%; position: absolute;"
|
|
5186
5186
|
@pointerdown="${t=>o(this,Ip).call(this,"horizontal",t)}"
|
|
5187
5187
|
></div>
|
|
5188
5188
|
</div>
|
|
5189
|
-
`},c(it,4,"orientation",Z5,Rr,
|
|
5189
|
+
`},c(it,4,"orientation",Z5,Rr,NC),c(it,4,"fade",Q5,Rr,DC),c(it,4,"maxHeight",J5,Rr,HC),FC=c(it,20,"#hasOverflowX",X5,H,BC),Kf=FC.get,eN=FC.set,PC=c(it,20,"#hasOverflowY",G5,H,VC),Wf=PC.get,oN=PC.set,qC=c(it,20,"#hovering",Y5,H,UC),r1=qC.get,s1=qC.set,KC=c(it,20,"#scrolling",W5,H,jC),Yf=KC.get,i1=KC.set,YC=c(it,20,"#thumbHeightPercent",K5,H,WC),n1=YC.get,rN=YC.set,XC=c(it,20,"#thumbWidthPercent",j5,H,GC),a1=XC.get,sN=XC.set,QC=c(it,20,"#thumbTopPercent",q5,H,JC),iN=QC.get,nN=QC.set,t1=c(it,20,"#thumbLeftPercent",U5,H,ZC),aN=t1.get,lN=t1.set,o1=c(it,20,"#isAtTop",P5,H,e1),l1=o1.get,dN=o1.set,T(it,Rr),v(Rr,"tagName","dui-scroll-area"),v(Rr,"styles",[w,iU]),a(Rr,Gf,1);var Fl=Rr;var nU=k`
|
|
5190
5190
|
.Scrollbar {
|
|
5191
5191
|
border-radius: var(--radius-sm);
|
|
5192
5192
|
transition: opacity var(--duration-fast);
|
|
@@ -5284,7 +5284,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5284
5284
|
overflow: hidden;
|
|
5285
5285
|
text-overflow: ellipsis;
|
|
5286
5286
|
}
|
|
5287
|
-
`],mN,fN,gN,vN,bN,xN,yN,wN,Mp,Xt,
|
|
5287
|
+
`],mN,fN,gN,vN,bN,xN,yN,wN,Mp,Xt,d1,c1,p1,h1,u1,m1,f1,g1,an,Us,dt,Jf,ln,Jt,v1,kN,EN,Qf,Zf,tg,eg,og,b1,Op,x1,rg,_e=class extends(wN=x,yN=[u({attribute:!1})],xN=[u({type:String})],bN=[u({type:String})],vN=[u({type:Boolean,reflect:!0})],gN=[u({type:Boolean,attribute:"align-item-to-trigger",reflect:!0})],fN=[u({type:String})],mN=[C()],wN){constructor(){super();a(this,dt);a(this,Mp);a(this,d1,n(Xt,8,this,[])),n(Xt,11,this);a(this,c1,n(Xt,12,this,"")),n(Xt,15,this);a(this,p1,n(Xt,16,this,"Select...")),n(Xt,19,this);a(this,h1,n(Xt,20,this,!1)),n(Xt,23,this);a(this,u1,n(Xt,24,this,!0)),n(Xt,27,this);a(this,m1,n(Xt,28,this,"")),n(Xt,31,this);a(this,f1,n(Xt,32,this,-1)),n(Xt,35,this);a(this,Jf,`select-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,ln,`select-listbox-${crypto.randomUUID().slice(0,8)}`);a(this,Jt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:cU,alignToInner:()=>{if(!this.alignItemToTrigger)return null;let e=o(this,Jt).renderRoot?.querySelector("[data-selected]");return e?.querySelector(".ItemText")??e??null},alignToInnerReference:()=>this.alignItemToTrigger?this.shadowRoot?.querySelector(".Value")??null:null,onOpen:()=>{h(this,dt,o(this,dt,kN),Us)},onClose:()=>{h(this,dt,-1,Us)},renderPopup:t=>f`
|
|
5288
5288
|
<div
|
|
5289
5289
|
class="Popup"
|
|
5290
5290
|
?data-align-inner="${this.alignItemToTrigger&&this.value!==""}"
|
|
@@ -5301,7 +5301,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5301
5301
|
${Si(this.options,e=>e.value,o(this,rg))}
|
|
5302
5302
|
</div>
|
|
5303
5303
|
</div>
|
|
5304
|
-
`}));a(this,Qf,t=>{t.stopPropagation(),!this.disabled&&(o(this,Jt).isOpen?o(this,Jt).close():o(this,Jt).open())});a(this,Zf,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),o(this,Jt).isOpen){let e=this.options[o(this,dt,an)];e&&!e.disabled&&p(this,dt,
|
|
5304
|
+
`}));a(this,Qf,t=>{t.stopPropagation(),!this.disabled&&(o(this,Jt).isOpen?o(this,Jt).close():o(this,Jt).open())});a(this,Zf,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),o(this,Jt).isOpen){let e=this.options[o(this,dt,an)];e&&!e.disabled&&p(this,dt,b1).call(this,e)}else o(this,Jt).open();break}case"ArrowDown":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,Op).call(this,o(this,dt,an),1),Us):o(this,Jt).open();break}case"ArrowUp":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,Op).call(this,o(this,dt,an),-1),Us):o(this,Jt).open();break}case"Home":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,Op).call(this,-1,1),Us));break}case"End":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,Op).call(this,this.options.length,-1),Us));break}case"Escape":{o(this,Jt).isOpen&&(t.preventDefault(),o(this,Jt).close(),p(this,dt,x1).call(this));break}case"Tab":{o(this,Jt).isOpen&&o(this,Jt).close();break}}});a(this,tg,t=>{t.preventDefault()});a(this,eg,t=>{t.disabled||p(this,dt,b1).call(this,t)});a(this,og,t=>{this.options[t]?.disabled||h(this,dt,t,Us)});a(this,rg,(t,e)=>{let s=t.value===this.value,l=e===o(this,dt,an);return f`
|
|
5305
5305
|
<div
|
|
5306
5306
|
class="Item"
|
|
5307
5307
|
role="option"
|
|
@@ -5318,7 +5318,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5318
5318
|
</span>
|
|
5319
5319
|
<span class="ItemText">${t.label}</span>
|
|
5320
5320
|
</div>
|
|
5321
|
-
`});h(this,Mp,this.attachInternals())}willUpdate(){o(this,Mp).setFormValue(this.value)}render(){let t=this.value!==""&&o(this,dt,
|
|
5321
|
+
`});h(this,Mp,this.attachInternals())}willUpdate(){o(this,Mp).setFormValue(this.value)}render(){let t=this.value!==""&&o(this,dt,v1)!=null;return f`
|
|
5322
5322
|
<div
|
|
5323
5323
|
class="Trigger"
|
|
5324
5324
|
part="trigger"
|
|
@@ -5346,7 +5346,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5346
5346
|
</span>
|
|
5347
5347
|
</div>
|
|
5348
5348
|
|
|
5349
|
-
`}};Xt=A(wN),Mp=new WeakMap,
|
|
5349
|
+
`}};Xt=A(wN),Mp=new WeakMap,d1=new WeakMap,c1=new WeakMap,p1=new WeakMap,h1=new WeakMap,u1=new WeakMap,m1=new WeakMap,f1=new WeakMap,dt=new WeakSet,Jf=new WeakMap,ln=new WeakMap,Jt=new WeakMap,v1=function(){return this.options.find(t=>t.value===this.value)},kN=function(){return this.options.findIndex(t=>t.value===this.value)},EN=function(){return o(this,dt,v1)?.label??""},Qf=new WeakMap,Zf=new WeakMap,tg=new WeakMap,eg=new WeakMap,og=new WeakMap,b1=function(t){this.value=t.value,this.dispatchEvent(aU({value:t.value,option:t})),o(this,Jt).close(),p(this,dt,x1).call(this)},Op=function(t,e){let s=this.options.length,l=t+e;for(;l>=0&&l<s;){if(!this.options[l].disabled)return l;l+=e}return t},x1=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},rg=new WeakMap,c(Xt,4,"options",yN,_e,d1),c(Xt,4,"value",xN,_e,c1),c(Xt,4,"placeholder",bN,_e,p1),c(Xt,4,"disabled",vN,_e,h1),c(Xt,4,"alignItemToTrigger",gN,_e,u1),c(Xt,4,"name",fN,_e,m1),g1=c(Xt,20,"#highlightedIndex",mN,dt,f1),an=g1.get,Us=g1.set,T(Xt,_e),v(_e,"tagName","dui-select"),v(_e,"formAssociated",!0),v(_e,"styles",[w,lU,dU]);var pU=k`
|
|
5350
5350
|
.Trigger {
|
|
5351
5351
|
height: var(--component-height-md);
|
|
5352
5352
|
gap: var(--space-2);
|
|
@@ -5486,13 +5486,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
5486
5486
|
margin: 0;
|
|
5487
5487
|
padding: 0;
|
|
5488
5488
|
}
|
|
5489
|
-
`,CN,$N,sg,
|
|
5489
|
+
`,CN,$N,sg,y1,Ir=class extends($N=x,CN=[u({reflect:!0})],$N){constructor(){super(...arguments);a(this,y1,n(sg,8,this,"horizontal")),n(sg,11,this)}render(){return f`
|
|
5490
5490
|
<div
|
|
5491
5491
|
part="root"
|
|
5492
5492
|
role="separator"
|
|
5493
5493
|
aria-orientation="${this.orientation}"
|
|
5494
5494
|
></div>
|
|
5495
|
-
`}};sg=A($N),
|
|
5495
|
+
`}};sg=A($N),y1=new WeakMap,c(sg,4,"orientation",CN,Ir,y1),T(sg,Ir),v(Ir,"tagName","dui-separator"),v(Ir,"styles",[w,hU]);var uU=k`
|
|
5496
5496
|
:host {
|
|
5497
5497
|
--separator-margin: 0;
|
|
5498
5498
|
}
|
|
@@ -5522,7 +5522,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5522
5522
|
height: 100%;
|
|
5523
5523
|
min-height: inherit;
|
|
5524
5524
|
}
|
|
5525
|
-
`,TN,SN,AN,_N,RN,IN,LN,zN,ON,MN,Ot,
|
|
5525
|
+
`,TN,SN,AN,_N,RN,IN,LN,zN,ON,MN,Ot,w1,k1,E1,C1,$1,T1,S1,NN,z1,yt,A1,_1,O1,ig,R1,I1,Np,ng,qs,dn,cn,ag,Dp,Hp,dg,cg,L1,lg,He=class extends(MN=x,ON=[u({type:Boolean})],zN=[u({type:Boolean,attribute:"default-open"})],LN=[u({reflect:!0})],IN=[u({reflect:!0})],RN=[u({reflect:!0})],_N=[C()],AN=[C()],SN=[C()],TN=[lt({context:Lr}),C()],MN){constructor(){super(...arguments);a(this,yt);a(this,w1,n(Ot,8,this)),n(Ot,11,this);a(this,k1,n(Ot,12,this,!0)),n(Ot,15,this);a(this,E1,n(Ot,16,this,"left")),n(Ot,19,this);a(this,C1,n(Ot,20,this,"sidebar")),n(Ot,23,this);a(this,$1,n(Ot,24,this,"offcanvas")),n(Ot,27,this);a(this,T1,n(Ot,28,this,!0)),n(Ot,31,this);a(this,A1,n(Ot,32,this,!1)),n(Ot,35,this);a(this,R1,n(Ot,36,this,!1)),n(Ot,39,this);a(this,qs);a(this,dn);a(this,cn);a(this,Dp,t=>{o(this,yt,Np)?h(this,yt,t,ig):(this.open===void 0&&h(this,yt,t,z1),this.dispatchEvent(M1({open:t})))});a(this,Hp,()=>{o(this,yt,Np)?h(this,yt,!o(this,yt,O1),ig):o(this,Dp).call(this,!o(this,yt,ag))});a(this,dg,t=>{h(this,yt,!t.matches,ng),o(this,yt,Np)||h(this,yt,!1,ig)});a(this,cg,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),o(this,Hp).call(this))});a(this,L1,n(Ot,40,this,p(this,yt,lg).call(this))),n(Ot,43,this)}connectedCallback(){super.connectedCallback(),this.collapsible==="always"?h(this,yt,!0,ng):(this.open===void 0&&h(this,yt,this.defaultOpen,z1),h(this,qs,matchMedia("(min-width: 768px)")),h(this,yt,!o(this,qs).matches,ng),h(this,dn,o(this,dg).bind(this)),o(this,qs).addEventListener("change",o(this,dn))),h(this,cn,o(this,cg).bind(this)),document.addEventListener("keydown",o(this,cn)),this._ctx=p(this,yt,lg).call(this)}disconnectedCallback(){super.disconnectedCallback(),o(this,qs)&&o(this,dn)&&o(this,qs).removeEventListener("change",o(this,dn)),o(this,cn)&&document.removeEventListener("keydown",o(this,cn))}willUpdate(){this._ctx=p(this,yt,lg).call(this)}render(){return f`<slot></slot>`}};Ot=A(MN),w1=new WeakMap,k1=new WeakMap,E1=new WeakMap,C1=new WeakMap,$1=new WeakMap,T1=new WeakMap,yt=new WeakSet,A1=new WeakMap,R1=new WeakMap,qs=new WeakMap,dn=new WeakMap,cn=new WeakMap,ag=function(){return this.open??o(this,yt,NN)},Dp=new WeakMap,Hp=new WeakMap,dg=new WeakMap,cg=new WeakMap,L1=new WeakMap,lg=function(){return{state:o(this,yt,ag)?"expanded":"collapsed",open:o(this,yt,ag),openMobile:o(this,yt,O1),isMobile:o(this,yt,Np),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:o(this,Dp),toggleSidebar:o(this,Hp)}},c(Ot,4,"open",ON,He,w1),c(Ot,4,"defaultOpen",zN,He,k1),c(Ot,4,"side",LN,He,E1),c(Ot,4,"variant",IN,He,C1),c(Ot,4,"collapsible",RN,He,$1),S1=c(Ot,20,"#internalOpen",_N,yt,T1),NN=S1.get,z1=S1.set,_1=c(Ot,20,"#openMobile",AN,yt,A1),O1=_1.get,ig=_1.set,I1=c(Ot,20,"#isMobile",SN,yt,R1),Np=I1.get,ng=I1.set,c(Ot,4,"_ctx",TN,He,L1),T(Ot,He),v(He,"tagName","dui-sidebar-provider"),v(He,"styles",[w,mU]);var fU=b`
|
|
5526
5526
|
:host {
|
|
5527
5527
|
display: block;
|
|
5528
5528
|
flex-shrink: 0;
|
|
@@ -5607,13 +5607,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
5607
5607
|
.MobilePanel[data-ending-style] {
|
|
5608
5608
|
transform: translateX(var(--mobile-end-x));
|
|
5609
5609
|
}
|
|
5610
|
-
`,DN,HN,BN,FN,zr,N1,D1,
|
|
5610
|
+
`,DN,HN,BN,FN,zr,N1,D1,pg,P1,St,H1,B1,U1,q1,F1,V1,hg,j1,pn,VN,PN,K1,ug,mg,us=class extends(FN=x,BN=[C()],HN=[C()],DN=[C()],FN){constructor(){super(...arguments);a(this,St);a(this,N1,n(zr,8,this,!1)),n(zr,11,this);a(this,H1,n(zr,12,this,!1)),n(zr,15,this);a(this,F1,n(zr,16,this,!1)),n(zr,19,this);a(this,pn,new q(this,{context:Lr,subscribe:!0}));a(this,ug,()=>{o(this,pn).value?.setOpen(!1)});a(this,mg,t=>{t.key==="Escape"&&(t.preventDefault(),o(this,pn).value?.setOpen(!1))})}willUpdate(){let t=o(this,pn).value;t&&(this.dataset.state=t.state,this.dataset.side=t.side,this.dataset.variant=t.variant,this.dataset.collapsible=t.collapsible,t.isMobile&&(t.openMobile&&!o(this,St,pg)?p(this,St,VN).call(this):!t.openMobile&&o(this,St,pg)&&!o(this,St,hg)&&p(this,St,PN).call(this)))}render(){let t=o(this,pn).value;if(!t)return f``;let s=t.side==="left"?"-100%":"100%";return t.isMobile?o(this,St,pg)?f`
|
|
5611
5611
|
<div
|
|
5612
5612
|
class="Backdrop"
|
|
5613
5613
|
part="backdrop"
|
|
5614
5614
|
?data-starting-style=${o(this,St,U1)}
|
|
5615
|
-
?data-ending-style=${o(this,St,
|
|
5616
|
-
@click=${o(this,
|
|
5615
|
+
?data-ending-style=${o(this,St,hg)}
|
|
5616
|
+
@click=${o(this,ug)}
|
|
5617
5617
|
></div>
|
|
5618
5618
|
<div
|
|
5619
5619
|
class="MobilePanel"
|
|
@@ -5622,8 +5622,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
5622
5622
|
tabindex="-1"
|
|
5623
5623
|
style="--mobile-start-x: ${s}; --mobile-end-x: ${s}"
|
|
5624
5624
|
?data-starting-style=${o(this,St,U1)}
|
|
5625
|
-
?data-ending-style=${o(this,St,
|
|
5626
|
-
@keydown=${o(this,
|
|
5625
|
+
?data-ending-style=${o(this,St,hg)}
|
|
5626
|
+
@keydown=${o(this,mg)}
|
|
5627
5627
|
>
|
|
5628
5628
|
<slot></slot>
|
|
5629
5629
|
</div>
|
|
@@ -5639,27 +5639,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
5639
5639
|
<slot></slot>
|
|
5640
5640
|
</div>
|
|
5641
5641
|
</div>
|
|
5642
|
-
`}};zr=A(FN),N1=new WeakMap,St=new WeakSet,H1=new WeakMap,F1=new WeakMap,pn=new WeakMap,VN=async function(){h(this,St,!0,P1),h(this,St,!0,q1),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,St,!1,q1)},PN=function(){h(this,St,!0,j1);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){p(this,St,K1).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,St,K1).call(this))},l=()=>{s()};t.addEventListener("transitionend",l);let d=setTimeout(s,250)},K1=function(){h(this,St,!1,j1),h(this,St,!1,P1)},
|
|
5642
|
+
`}};zr=A(FN),N1=new WeakMap,St=new WeakSet,H1=new WeakMap,F1=new WeakMap,pn=new WeakMap,VN=async function(){h(this,St,!0,P1),h(this,St,!0,q1),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,St,!1,q1)},PN=function(){h(this,St,!0,j1);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){p(this,St,K1).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,St,K1).call(this))},l=()=>{s()};t.addEventListener("transitionend",l);let d=setTimeout(s,250)},K1=function(){h(this,St,!1,j1),h(this,St,!1,P1)},ug=new WeakMap,mg=new WeakMap,D1=c(zr,20,"#mounted",BN,St,N1),pg=D1.get,P1=D1.set,B1=c(zr,20,"#startingStyle",HN,St,H1),U1=B1.get,q1=B1.set,V1=c(zr,20,"#endingStyle",DN,St,F1),hg=V1.get,j1=V1.set,T(zr,us),v(us,"tagName","dui-sidebar"),v(us,"styles",[w,fU]);var gU=b`
|
|
5643
5643
|
:host {
|
|
5644
5644
|
display: inline-block;
|
|
5645
|
+
cursor: pointer;
|
|
5645
5646
|
}
|
|
5646
|
-
`,
|
|
5647
|
-
viewBox="0 0 24 24"
|
|
5648
|
-
fill="none"
|
|
5649
|
-
stroke="currentColor"
|
|
5650
|
-
stroke-width="2"
|
|
5651
|
-
stroke-linecap="round"
|
|
5652
|
-
stroke-linejoin="round"
|
|
5653
|
-
>
|
|
5654
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
5655
|
-
<path d="M9 3v18" />
|
|
5656
|
-
</svg>`,ql=class extends x{static tagName="dui-sidebar-trigger";static styles=[w,gU];#t=new q(this,{context:Lr,subscribe:!0});#e=()=>{this.#t.value?.toggleSidebar()};render(){return f`
|
|
5657
|
-
<dui-button appearance="ghost" size="sm" @click=${this.#e}>
|
|
5658
|
-
<slot>
|
|
5659
|
-
<dui-icon>${vU}</dui-icon>
|
|
5660
|
-
</slot>
|
|
5661
|
-
</dui-button>
|
|
5662
|
-
`}};var bU=b`
|
|
5647
|
+
`,ql=class extends x{static tagName="dui-sidebar-trigger";static styles=[w,gU];#t=new q(this,{context:Lr,subscribe:!0});connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.addEventListener("click",this.#e),this.addEventListener("keydown",this.#o)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.#e),this.removeEventListener("keydown",this.#o)}#e=()=>{this.#t.value?.toggleSidebar()};#o=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),this.#t.value?.toggleSidebar())};willUpdate(){let r=this.#t.value;if(r){let t=r.isMobile?r.openMobile:r.open;this.setAttribute("aria-expanded",String(t))}}render(){return f`<slot></slot>`}};var vU=b`
|
|
5663
5648
|
:host {
|
|
5664
5649
|
display: flex;
|
|
5665
5650
|
flex-direction: column;
|
|
@@ -5667,31 +5652,31 @@ label, legend, caption, figcaption, th, td {
|
|
|
5667
5652
|
min-height: 0;
|
|
5668
5653
|
overflow: hidden;
|
|
5669
5654
|
}
|
|
5670
|
-
`,jl=class extends x{static tagName="dui-sidebar-content";static styles=[w,
|
|
5655
|
+
`,jl=class extends x{static tagName="dui-sidebar-content";static styles=[w,vU];render(){return f`
|
|
5671
5656
|
<dui-scroll-area>
|
|
5672
5657
|
<slot></slot>
|
|
5673
5658
|
</dui-scroll-area>
|
|
5674
|
-
`}};var
|
|
5659
|
+
`}};var bU=b`
|
|
5675
5660
|
:host {
|
|
5676
5661
|
display: flex;
|
|
5677
5662
|
flex-direction: column;
|
|
5678
5663
|
}
|
|
5679
|
-
`,Kl=class extends x{static tagName="dui-sidebar-header";static styles=[w,
|
|
5664
|
+
`,Kl=class extends x{static tagName="dui-sidebar-header";static styles=[w,bU];render(){return f`<slot></slot>`}};var xU=b`
|
|
5680
5665
|
:host {
|
|
5681
5666
|
display: flex;
|
|
5682
5667
|
flex-direction: column;
|
|
5683
5668
|
}
|
|
5684
|
-
`,Wl=class extends x{static tagName="dui-sidebar-footer";static styles=[w,
|
|
5669
|
+
`,Wl=class extends x{static tagName="dui-sidebar-footer";static styles=[w,xU];render(){return f`<slot></slot>`}};var yU=b`
|
|
5685
5670
|
:host {
|
|
5686
5671
|
display: flex;
|
|
5687
5672
|
flex-direction: column;
|
|
5688
5673
|
position: relative;
|
|
5689
5674
|
overflow: hidden;
|
|
5690
5675
|
}
|
|
5691
|
-
`,Yl=class extends x{static tagName="dui-sidebar-group";static styles=[w,
|
|
5676
|
+
`,Yl=class extends x{static tagName="dui-sidebar-group";static styles=[w,yU];render(){return f`
|
|
5692
5677
|
<slot name="label"></slot>
|
|
5693
5678
|
<slot></slot>
|
|
5694
|
-
`}};var
|
|
5679
|
+
`}};var wU=b`
|
|
5695
5680
|
:host {
|
|
5696
5681
|
display: flex;
|
|
5697
5682
|
align-items: center;
|
|
@@ -5703,7 +5688,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5703
5688
|
:host([data-icon-collapsed]) {
|
|
5704
5689
|
opacity: 0;
|
|
5705
5690
|
}
|
|
5706
|
-
`,Gl=class extends x{static tagName="dui-sidebar-group-label";static styles=[w,
|
|
5691
|
+
`,Gl=class extends x{static tagName="dui-sidebar-group-label";static styles=[w,wU];#t=new q(this,{context:Lr,subscribe:!0});get#e(){let r=this.#t.value;return r?.collapsible==="icon"&&r?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return f`<slot></slot>`}};var kU=b`
|
|
5707
5692
|
.Menu {
|
|
5708
5693
|
display: flex;
|
|
5709
5694
|
flex-direction: column;
|
|
@@ -5711,15 +5696,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
5711
5696
|
margin: 0;
|
|
5712
5697
|
padding: 0;
|
|
5713
5698
|
}
|
|
5714
|
-
`,Xl=class extends x{static tagName="dui-sidebar-menu";static styles=[w,
|
|
5699
|
+
`,Xl=class extends x{static tagName="dui-sidebar-menu";static styles=[w,kU];render(){return f`
|
|
5715
5700
|
<ul class="Menu" role="list">
|
|
5716
5701
|
<slot></slot>
|
|
5717
5702
|
</ul>
|
|
5718
|
-
`}};var
|
|
5703
|
+
`}};var EU=b`
|
|
5719
5704
|
:host {
|
|
5720
5705
|
display: list-item;
|
|
5721
5706
|
}
|
|
5722
|
-
`,Jl=class extends x{static tagName="dui-sidebar-menu-item";static styles=[w,
|
|
5707
|
+
`,Jl=class extends x{static tagName="dui-sidebar-menu-item";static styles=[w,EU];render(){return f`<slot></slot>`}};var CU=b`
|
|
5723
5708
|
:host {
|
|
5724
5709
|
display: block;
|
|
5725
5710
|
}
|
|
@@ -5777,7 +5762,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5777
5762
|
:host([disabled]) .Button {
|
|
5778
5763
|
pointer-events: none;
|
|
5779
5764
|
}
|
|
5780
|
-
`,UN,qN,jN,KN,WN,fo,W1,Y1,G1,X1,
|
|
5765
|
+
`,UN,qN,jN,KN,WN,fo,W1,Y1,G1,X1,fg,zo,J1,gg,YN,GN,Q1,go=class extends(WN=x,KN=[u({type:Boolean,reflect:!0})],jN=[u({type:Boolean,reflect:!0})],qN=[u()],UN=[u()],WN){constructor(){super(...arguments);a(this,zo);a(this,W1,n(fo,8,this,!1)),n(fo,11,this);a(this,Y1,n(fo,12,this,!1)),n(fo,15,this);a(this,G1,n(fo,16,this,"")),n(fo,19,this);a(this,X1,n(fo,20,this)),n(fo,23,this);a(this,fg,new q(this,{context:Lr,subscribe:!0}));a(this,gg,t=>{if(this.disabled){t.preventDefault();return}this.href&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("spa-navigate",{detail:{href:this.href},bubbles:!0,composed:!0})))})}render(){return o(this,zo,J1)&&this.tooltip?f`
|
|
5781
5766
|
<dui-tooltip>
|
|
5782
5767
|
<dui-tooltip-trigger>
|
|
5783
5768
|
${p(this,zo,Q1).call(this)}
|
|
@@ -5786,7 +5771,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5786
5771
|
${this.tooltip}
|
|
5787
5772
|
</dui-tooltip-popup>
|
|
5788
5773
|
</dui-tooltip>
|
|
5789
|
-
`:p(this,zo,Q1).call(this)}};fo=A(WN),W1=new WeakMap,Y1=new WeakMap,G1=new WeakMap,X1=new WeakMap,
|
|
5774
|
+
`:p(this,zo,Q1).call(this)}};fo=A(WN),W1=new WeakMap,Y1=new WeakMap,G1=new WeakMap,X1=new WeakMap,fg=new WeakMap,zo=new WeakSet,J1=function(){let t=o(this,fg).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},gg=new WeakMap,YN=function(){return f`
|
|
5790
5775
|
<button
|
|
5791
5776
|
class="Button"
|
|
5792
5777
|
?disabled=${this.disabled}
|
|
@@ -5802,7 +5787,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5802
5787
|
href=${this.href??L}
|
|
5803
5788
|
aria-disabled=${this.disabled||L}
|
|
5804
5789
|
?data-active=${this.active}
|
|
5805
|
-
@click=${o(this,
|
|
5790
|
+
@click=${o(this,gg)}
|
|
5806
5791
|
>
|
|
5807
5792
|
<slot name="icon"></slot>
|
|
5808
5793
|
<span class="Label"><slot></slot></span>
|
|
@@ -5816,7 +5801,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5816
5801
|
>
|
|
5817
5802
|
${this.href!==void 0?p(this,zo,GN).call(this):p(this,zo,YN).call(this)}
|
|
5818
5803
|
</div>
|
|
5819
|
-
`},c(fo,4,"active",KN,go,W1),c(fo,4,"disabled",jN,go,Y1),c(fo,4,"tooltip",qN,go,G1),c(fo,4,"href",UN,go,X1),T(fo,go),v(go,"tagName","dui-sidebar-menu-button"),v(go,"styles",[w
|
|
5804
|
+
`},c(fo,4,"active",KN,go,W1),c(fo,4,"disabled",jN,go,Y1),c(fo,4,"tooltip",qN,go,G1),c(fo,4,"href",UN,go,X1),T(fo,go),v(go,"tagName","dui-sidebar-menu-button"),v(go,"styles",[w,CU]);var $U=b`
|
|
5820
5805
|
:host {
|
|
5821
5806
|
display: block;
|
|
5822
5807
|
}
|
|
@@ -5824,7 +5809,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5824
5809
|
.Separator {
|
|
5825
5810
|
/* Structural only — height and color from theme */
|
|
5826
5811
|
}
|
|
5827
|
-
`,Ql=class extends x{static tagName="dui-sidebar-separator";static styles=[w
|
|
5812
|
+
`,Ql=class extends x{static tagName="dui-sidebar-separator";static styles=[w,$U];render(){return f`<div class="Separator" role="separator"></div>`}};var TU=b`
|
|
5828
5813
|
:host {
|
|
5829
5814
|
display: flex;
|
|
5830
5815
|
flex-direction: column;
|
|
@@ -5834,7 +5819,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5834
5819
|
overflow: hidden;
|
|
5835
5820
|
container-type: size;
|
|
5836
5821
|
}
|
|
5837
|
-
`,Zl=class extends x{static tagName="dui-sidebar-inset";static styles=[w,
|
|
5822
|
+
`,Zl=class extends x{static tagName="dui-sidebar-inset";static styles=[w,TU];render(){return f`<slot></slot>`}};var SU=k`
|
|
5838
5823
|
/* ── Host: sticky full-viewport height ── */
|
|
5839
5824
|
/* Percentage heights on internal elements need a definite parent.
|
|
5840
5825
|
Using height: 100dvh + sticky keeps the sidebar pinned while
|
|
@@ -5932,11 +5917,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
5932
5917
|
box-shadow: var(--shadow-lg);
|
|
5933
5918
|
transition: transform var(--duration-normal) var(--ease-out-3);
|
|
5934
5919
|
}
|
|
5935
|
-
`,td=class extends us{static styles=[...us.styles,
|
|
5920
|
+
`,td=class extends us{static styles=[...us.styles,SU]};customElements.define(td.tagName,td);var AU=k``,ed=class extends jl{static styles=[...jl.styles,AU]};customElements.define(ed.tagName,ed);var _U=k``,od=class extends Wl{static styles=[...Wl.styles,_U]};customElements.define(od.tagName,od);var RU=k`
|
|
5936
5921
|
:host {
|
|
5937
5922
|
padding: var(--sidebar-group-padding-y) 0;
|
|
5938
5923
|
}
|
|
5939
|
-
`,rd=class extends Yl{static styles=[...Yl.styles,
|
|
5924
|
+
`,rd=class extends Yl{static styles=[...Yl.styles,RU]};customElements.define(rd.tagName,rd);var IU=k`
|
|
5940
5925
|
:host {
|
|
5941
5926
|
margin-left: var(--sidebar-group-label-inset);
|
|
5942
5927
|
height: var(--component-height-sm);
|
|
@@ -5952,15 +5937,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
5952
5937
|
transition-duration: var(--duration-normal);
|
|
5953
5938
|
transition-timing-function: var(--ease-out-3);
|
|
5954
5939
|
}
|
|
5955
|
-
`,sd=class extends Gl{static styles=[...Gl.styles,
|
|
5940
|
+
`,sd=class extends Gl{static styles=[...Gl.styles,IU]};customElements.define(sd.tagName,sd);var LU=k`
|
|
5956
5941
|
:host {
|
|
5957
5942
|
margin-bottom: var(--sidebar-header-content-gap);
|
|
5958
5943
|
}
|
|
5959
|
-
`,id=class extends Kl{static styles=[...Kl.styles,
|
|
5944
|
+
`,id=class extends Kl{static styles=[...Kl.styles,LU]};customElements.define(id.tagName,id);var zU=k``,nd=class extends Zl{static styles=[...Zl.styles,zU]};customElements.define(nd.tagName,nd);var OU=k`
|
|
5960
5945
|
.Menu {
|
|
5961
5946
|
gap: var(--space-px);
|
|
5962
5947
|
}
|
|
5963
|
-
`,ad=class extends Xl{static styles=[...Xl.styles,
|
|
5948
|
+
`,ad=class extends Xl{static styles=[...Xl.styles,OU]};customElements.define(ad.tagName,ad);var MU=k`
|
|
5964
5949
|
:host {
|
|
5965
5950
|
--smb-height: var(--component-height-md);
|
|
5966
5951
|
--smb-padding-x: var(--sidebar-button-inset);
|
|
@@ -6032,7 +6017,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6032
6017
|
font-weight: var(--font-weight-medium);
|
|
6033
6018
|
--icon-color: var(--sidebar-fg);
|
|
6034
6019
|
}
|
|
6035
|
-
`,ld=class extends go{static styles=[...go.styles,
|
|
6020
|
+
`,ld=class extends go{static styles=[...go.styles,MU]};customElements.define(ld.tagName,ld);var NU=k``,dd=class extends Jl{static styles=[...Jl.styles,NU]};customElements.define(dd.tagName,dd);var DU=k`
|
|
6036
6021
|
:host {
|
|
6037
6022
|
--sidebar-width: var(--space-64);
|
|
6038
6023
|
--sidebar-width-mobile: var(--space-72);
|
|
@@ -6050,19 +6035,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
6050
6035
|
--sidebar-muted-fg: var(--text-2);
|
|
6051
6036
|
--sidebar-ring: var(--accent);
|
|
6052
6037
|
}
|
|
6053
|
-
`,cd=class extends He{static styles=[...He.styles,
|
|
6038
|
+
`,cd=class extends He{static styles=[...He.styles,DU]};customElements.define(cd.tagName,cd);var HU=k`
|
|
6054
6039
|
.Separator {
|
|
6055
6040
|
height: var(--border-width-thin);
|
|
6056
6041
|
margin: var(--space-2) var(--space-2);
|
|
6057
6042
|
background: var(--sidebar-separator);
|
|
6058
6043
|
}
|
|
6059
|
-
`,pd=class extends Ql{static styles=[...Ql.styles,
|
|
6044
|
+
`,pd=class extends Ql{static styles=[...Ql.styles,HU]};customElements.define(pd.tagName,pd);var BU=k`
|
|
6060
6045
|
dui-button {
|
|
6061
6046
|
--button-width: var(--button-height);
|
|
6062
6047
|
--button-padding-x: 0;
|
|
6063
6048
|
--button-gap: 0;
|
|
6064
6049
|
}
|
|
6065
|
-
`,hd=class extends ql{static styles=[...ql.styles,
|
|
6050
|
+
`,hd=class extends ql{static styles=[...ql.styles,BU]};customElements.define(hd.tagName,hd);var md=M("value-change",{bubbles:!0,composed:!0}),Bp=M("value-committed",{bubbles:!0,composed:!0}),FU=b`
|
|
6066
6051
|
:host {
|
|
6067
6052
|
display: block;
|
|
6068
6053
|
}
|
|
@@ -6153,14 +6138,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
6153
6138
|
white-space: nowrap;
|
|
6154
6139
|
border: 0;
|
|
6155
6140
|
}
|
|
6156
|
-
`,XN,JN,QN,ZN,tD,eD,oD,rD,sD,iD,nD,Fp,
|
|
6141
|
+
`,XN,JN,QN,ZN,tD,eD,oD,rD,sD,iD,nD,Fp,wt,Z1,t$,e$,o$,r$,s$,i$,n$,a$,l$,d$,vg,c$,Ft,aD,lD,dD,ud,p$,bg,fd,gd,xg,yg,wg,ce=class extends(nD=x,iD=[u({type:Number})],sD=[u({type:Number})],rD=[u({type:Number})],oD=[u({type:Number})],eD=[u({type:Boolean,reflect:!0})],tD=[u()],ZN=[u({reflect:!0})],QN=[u({reflect:!0})],JN=[u({type:Number})],XN=[C()],nD){constructor(){super();a(this,Ft);a(this,Fp);a(this,Z1,n(wt,8,this,0)),n(wt,11,this);a(this,t$,n(wt,12,this,0)),n(wt,15,this);a(this,e$,n(wt,16,this,100)),n(wt,19,this);a(this,o$,n(wt,20,this,1)),n(wt,23,this);a(this,r$,n(wt,24,this,!1)),n(wt,27,this);a(this,s$,n(wt,28,this,"")),n(wt,31,this);a(this,i$,n(wt,32,this,"")),n(wt,35,this);a(this,n$,n(wt,36,this,"")),n(wt,39,this);a(this,a$,n(wt,40,this)),n(wt,43,this);a(this,l$,n(wt,44,this,!1)),n(wt,47,this);a(this,bg,t=>{if(this.disabled)return;t.preventDefault();let e=p(this,Ft,p$).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e}))),document.addEventListener("pointermove",o(this,fd)),document.addEventListener("pointerup",o(this,gd))});a(this,fd,t=>{o(this,Ft,vg)||h(this,Ft,!0,c$);let e=p(this,Ft,p$).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e})))});a(this,gd,()=>{let t=o(this,Ft,vg);h(this,Ft,!1,c$),document.removeEventListener("pointermove",o(this,fd)),document.removeEventListener("pointerup",o(this,gd)),this.dispatchEvent(Bp({value:this.value}))});a(this,xg,t=>{if(this.disabled)return;let e=this.value,s=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value+s);break;case"PageDown":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value-s);break;case"Home":t.preventDefault(),e=this.min;break;case"End":t.preventDefault(),e=this.max;break;default:return}e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e})),this.dispatchEvent(Bp({value:e})))});a(this,yg,t=>{let e=t.target,s=parseFloat(e.value);!isNaN(s)&&s!==this.value&&(this.value=s,this.dispatchEvent(md({value:s})))});a(this,wg,()=>{this.dispatchEvent(Bp({value:this.value}))});h(this,Fp,this.attachInternals())}willUpdate(){o(this,Fp).setFormValue(String(this.value))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",o(this,fd)),document.removeEventListener("pointerup",o(this,gd))}render(){return f`
|
|
6157
6142
|
<div
|
|
6158
6143
|
part="root"
|
|
6159
6144
|
role="group"
|
|
6160
6145
|
?data-disabled=${this.disabled}
|
|
6161
|
-
?data-dragging=${o(this,Ft,
|
|
6146
|
+
?data-dragging=${o(this,Ft,vg)}
|
|
6162
6147
|
style="--slider-progress: ${o(this,Ft,aD)}%"
|
|
6163
|
-
@pointerdown=${o(this,
|
|
6148
|
+
@pointerdown=${o(this,bg)}
|
|
6164
6149
|
>
|
|
6165
6150
|
<span part="label">${this.label}</span>
|
|
6166
6151
|
|
|
@@ -6173,7 +6158,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6173
6158
|
<div
|
|
6174
6159
|
part="thumb"
|
|
6175
6160
|
tabindex=${this.disabled?-1:0}
|
|
6176
|
-
@keydown=${o(this,
|
|
6161
|
+
@keydown=${o(this,xg)}
|
|
6177
6162
|
></div>
|
|
6178
6163
|
</div>
|
|
6179
6164
|
|
|
@@ -6190,11 +6175,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
6190
6175
|
aria-valuemin=${this.min}
|
|
6191
6176
|
aria-valuemax=${this.max}
|
|
6192
6177
|
aria-label=${this.label||"Slider"}
|
|
6193
|
-
@input=${o(this,
|
|
6194
|
-
@change=${o(this,
|
|
6178
|
+
@input=${o(this,yg)}
|
|
6179
|
+
@change=${o(this,wg)}
|
|
6195
6180
|
/>
|
|
6196
6181
|
</div>
|
|
6197
|
-
`}};
|
|
6182
|
+
`}};wt=A(nD),Fp=new WeakMap,Z1=new WeakMap,t$=new WeakMap,e$=new WeakMap,o$=new WeakMap,r$=new WeakMap,s$=new WeakMap,i$=new WeakMap,n$=new WeakMap,a$=new WeakMap,l$=new WeakMap,Ft=new WeakSet,aD=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},lD=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},dD=function(){let t=this.precision??o(this,Ft,lD);return this.value.toFixed(t)},ud=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},p$=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let s=e.getBoundingClientRect(),l=(t-s.left)/s.width,d=this.min+l*(this.max-this.min);return p(this,Ft,ud).call(this,d)},bg=new WeakMap,fd=new WeakMap,gd=new WeakMap,xg=new WeakMap,yg=new WeakMap,wg=new WeakMap,c(wt,4,"value",iD,ce,Z1),c(wt,4,"min",sD,ce,t$),c(wt,4,"max",rD,ce,e$),c(wt,4,"step",oD,ce,o$),c(wt,4,"disabled",eD,ce,r$),c(wt,4,"name",tD,ce,s$),c(wt,4,"label",ZN,ce,i$),c(wt,4,"unit",QN,ce,n$),c(wt,4,"precision",JN,ce,a$),d$=c(wt,20,"#dragging",XN,Ft,l$),vg=d$.get,c$=d$.set,T(wt,ce),v(ce,"tagName","dui-slider"),v(ce,"formAssociated",!0),v(ce,"styles",[w,FU]);var VU=k`
|
|
6198
6183
|
:host {
|
|
6199
6184
|
--slider-track-height: var(--space-1_5);
|
|
6200
6185
|
--slider-thumb-size: var(--space-4_5);
|
|
@@ -6315,7 +6300,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6315
6300
|
:host([variant="field"][disabled]) {
|
|
6316
6301
|
opacity: 0.5;
|
|
6317
6302
|
}
|
|
6318
|
-
`,vd=class extends ce{static styles=[...ce.styles,
|
|
6303
|
+
`,vd=class extends ce{static styles=[...ce.styles,VU]};customElements.define(vd.tagName,vd);var PU=Fh`
|
|
6319
6304
|
<svg
|
|
6320
6305
|
part="svg"
|
|
6321
6306
|
viewBox="0 0 44 44"
|
|
@@ -6344,7 +6329,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6344
6329
|
/>
|
|
6345
6330
|
</circle>
|
|
6346
6331
|
</svg>
|
|
6347
|
-
`,
|
|
6332
|
+
`,UU=Fh`
|
|
6348
6333
|
<svg
|
|
6349
6334
|
part="svg"
|
|
6350
6335
|
data-rotate
|
|
@@ -6367,7 +6352,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6367
6352
|
<path d="M2 12h4" />
|
|
6368
6353
|
<path d="m4.9 4.9 2.9 2.9" />
|
|
6369
6354
|
</svg>
|
|
6370
|
-
`,
|
|
6355
|
+
`,qU=Fh`
|
|
6371
6356
|
<svg
|
|
6372
6357
|
part="svg"
|
|
6373
6358
|
data-rotate
|
|
@@ -6383,7 +6368,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6383
6368
|
>
|
|
6384
6369
|
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
6385
6370
|
</svg>
|
|
6386
|
-
`,
|
|
6371
|
+
`,jU=b`
|
|
6387
6372
|
:host {
|
|
6388
6373
|
display: block;
|
|
6389
6374
|
}
|
|
@@ -6402,7 +6387,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6402
6387
|
from { transform: rotate(0deg); }
|
|
6403
6388
|
to { transform: rotate(360deg); }
|
|
6404
6389
|
}
|
|
6405
|
-
`,cD,pD,
|
|
6390
|
+
`,cD,pD,kg,h$,Eg,hD,Or=class extends(pD=x,cD=[u({reflect:!0})],pD){constructor(){super(...arguments);a(this,Eg);a(this,h$,n(kg,8,this,"")),n(kg,11,this)}render(){return f`${p(this,Eg,hD).call(this)}`}};kg=A(pD),h$=new WeakMap,Eg=new WeakSet,hD=function(){switch(this.variant){case"lucide-loader":return UU;case"lucide-loader-circle":return qU;default:return PU}},c(kg,4,"variant",cD,Or,h$),T(kg,Or),v(Or,"tagName","dui-spinner"),v(Or,"styles",[w,jU]);var KU=k`
|
|
6406
6391
|
:host {
|
|
6407
6392
|
--spinner-size: var(--component-height-xxs);
|
|
6408
6393
|
--spinner-color: currentColor;
|
|
@@ -6424,11 +6409,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
6424
6409
|
animation-duration: 3s;
|
|
6425
6410
|
}
|
|
6426
6411
|
}
|
|
6427
|
-
`,bd=class extends Or{static styles=[...Or.styles,
|
|
6412
|
+
`,bd=class extends Or{static styles=[...Or.styles,KU]};customElements.define(bd.tagName,bd);var Cg=M("dui-action",{bubbles:!0,composed:!0}),WU=b`
|
|
6428
6413
|
:host {
|
|
6429
6414
|
display: inline-block;
|
|
6430
6415
|
}
|
|
6431
|
-
`,
|
|
6416
|
+
`,YU=b`
|
|
6432
6417
|
.Root {
|
|
6433
6418
|
display: inline-flex;
|
|
6434
6419
|
align-items: stretch;
|
|
@@ -6468,7 +6453,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6468
6453
|
justify-content: center;
|
|
6469
6454
|
flex-shrink: 0;
|
|
6470
6455
|
}
|
|
6471
|
-
`,
|
|
6456
|
+
`,GU=[b`
|
|
6472
6457
|
.Popup {
|
|
6473
6458
|
max-height: 240px;
|
|
6474
6459
|
overflow-y: auto;
|
|
@@ -6483,7 +6468,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6483
6468
|
.Popup[data-ending-style] {
|
|
6484
6469
|
opacity: 0;
|
|
6485
6470
|
}
|
|
6486
|
-
`],uD,mD,fD,gD,vD,bD,xD,pe,u$,m$,f$,g$,v$,b$,x$,hn,js,Qt,Vp,Vt,y
|
|
6471
|
+
`],uD,mD,fD,gD,vD,bD,xD,pe,u$,m$,f$,g$,v$,b$,x$,hn,js,Qt,Vp,Vt,y$,$g,Tg,Sg,Ag,_g,Rg,yD,to=class extends(xD=x,bD=[u({reflect:!0})],vD=[u({reflect:!0})],gD=[u({reflect:!0})],fD=[u({attribute:"popup-min-width"})],mD=[u({type:Boolean,reflect:!0})],uD=[C()],xD){constructor(){super(...arguments);a(this,Qt);a(this,u$,n(pe,8,this,"")),n(pe,11,this);a(this,m$,n(pe,12,this,"")),n(pe,15,this);a(this,f$,n(pe,16,this,"")),n(pe,19,this);a(this,g$,n(pe,20,this,"var(--space-28)")),n(pe,23,this);a(this,v$,n(pe,24,this,!1)),n(pe,27,this);a(this,b$,n(pe,28,this,-1)),n(pe,31,this);a(this,Vp,`split-menu-${crypto.randomUUID().slice(0,8)}`);a(this,Vt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:GU,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,Qt,-1,js)},onClose:()=>{h(this,Qt,-1,js)},renderPopup:t=>f`
|
|
6487
6472
|
<div
|
|
6488
6473
|
class="Popup"
|
|
6489
6474
|
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
@@ -6494,19 +6479,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
6494
6479
|
class="Menu"
|
|
6495
6480
|
id="${o(this,Vp)}"
|
|
6496
6481
|
role="menu"
|
|
6497
|
-
@click="${o(this,
|
|
6498
|
-
@mousemove="${o(this,
|
|
6482
|
+
@click="${o(this,_g)}"
|
|
6483
|
+
@mousemove="${o(this,Rg)}"
|
|
6499
6484
|
></div>
|
|
6500
6485
|
</div>
|
|
6501
|
-
`}));a(this,
|
|
6486
|
+
`}));a(this,$g,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(Cg({}))});a(this,Tg,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(Cg({})))});a(this,Sg,t=>{t.stopPropagation(),!this.disabled&&(o(this,Vt).isOpen?o(this,Vt).close():o(this,Vt).open())});a(this,Ag,t=>{if(this.disabled)return;let e=o(this,Qt,y$);switch(t.key){case"Enter":case" ":{if(o(this,Vt).isOpen&&o(this,Qt,hn)>=0){t.preventDefault();let s=e[o(this,Qt,hn)];s&&!s.disabled&&(s.click(),o(this,Vt).close())}else o(this,Vt).isOpen||(t.preventDefault(),o(this,Vt).open());break}case"ArrowDown":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Qt,s,js)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Qt,s,js)}break}case"Home":{if(o(this,Vt).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Qt,s,js)}break}case"End":{if(o(this,Vt).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Qt,s,js);break}}break}case"Escape":{o(this,Vt).isOpen&&(t.preventDefault(),o(this,Vt).close(),p(this,Qt,yD).call(this));break}case"Tab":{o(this,Vt).isOpen&&o(this,Vt).close();break}}});a(this,_g,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Vt).close()});a(this,Rg,()=>{o(this,Qt,hn)>=0&&h(this,Qt,-1,js)})}updated(){let t=o(this,Qt,y$);for(let e=0;e<t.length;e++)e===o(this,Qt,hn)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
|
|
6502
6487
|
<div class="Root" part="root">
|
|
6503
6488
|
<button
|
|
6504
6489
|
class="Action"
|
|
6505
6490
|
part="action"
|
|
6506
6491
|
type="button"
|
|
6507
6492
|
?disabled="${this.disabled}"
|
|
6508
|
-
@click="${o(this
|
|
6509
|
-
@keydown="${o(this
|
|
6493
|
+
@click="${o(this,$g)}"
|
|
6494
|
+
@keydown="${o(this,Tg)}"
|
|
6510
6495
|
>
|
|
6511
6496
|
<slot></slot>
|
|
6512
6497
|
</button>
|
|
@@ -6522,8 +6507,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
6522
6507
|
aria-expanded="${o(this,Vt).isOpen}"
|
|
6523
6508
|
aria-controls="${o(this,Vp)}"
|
|
6524
6509
|
?data-open="${o(this,Vt).isOpen||L}"
|
|
6525
|
-
@click="${o(this,
|
|
6526
|
-
@keydown="${o(this,
|
|
6510
|
+
@click="${o(this,Sg)}"
|
|
6511
|
+
@keydown="${o(this,Ag)}"
|
|
6527
6512
|
>
|
|
6528
6513
|
<slot name="icon">
|
|
6529
6514
|
<dui-icon>
|
|
@@ -6534,7 +6519,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6534
6519
|
</slot>
|
|
6535
6520
|
</button>
|
|
6536
6521
|
</div>
|
|
6537
|
-
`}};pe=A(xD),u$=new WeakMap,m$=new WeakMap,f$=new WeakMap,g$=new WeakMap,v$=new WeakMap,b$=new WeakMap,Qt=new WeakSet,Vp=new WeakMap,Vt=new WeakMap,y$=function(){return[...(o(this,Vt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]}
|
|
6522
|
+
`}};pe=A(xD),u$=new WeakMap,m$=new WeakMap,f$=new WeakMap,g$=new WeakMap,v$=new WeakMap,b$=new WeakMap,Qt=new WeakSet,Vp=new WeakMap,Vt=new WeakMap,y$=function(){return[...(o(this,Vt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},$g=new WeakMap,Tg=new WeakMap,Sg=new WeakMap,Ag=new WeakMap,_g=new WeakMap,Rg=new WeakMap,yD=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},c(pe,4,"variant",bD,to,u$),c(pe,4,"appearance",vD,to,m$),c(pe,4,"size",gD,to,f$),c(pe,4,"popupMinWidth",fD,to,g$),c(pe,4,"disabled",mD,to,v$),x$=c(pe,20,"#highlightedIndex",uD,Qt,b$),hn=x$.get,js=x$.set,T(pe,to),v(to,"tagName","dui-split-button"),v(to,"styles",[w,WU,YU]);var XU=k`
|
|
6538
6523
|
/* =================================================================
|
|
6539
6524
|
* Reuses the button's two-axis variant system:
|
|
6540
6525
|
* variant → semantic intent (neutral, primary, danger)
|
|
@@ -6845,7 +6830,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6845
6830
|
.Menu {
|
|
6846
6831
|
padding: var(--space-1);
|
|
6847
6832
|
}
|
|
6848
|
-
`,xd=class extends to{static styles=[...to.styles,
|
|
6833
|
+
`,xd=class extends to{static styles=[...to.styles,XU]};customElements.define(xd.tagName,xd);var yd=Symbol("dui-splitter");var G$=M("value-change",{bubbles:!0,composed:!0}),X$=M("collapse-change",{bubbles:!0,composed:!0}),JU=b`
|
|
6849
6834
|
:host {
|
|
6850
6835
|
display: block;
|
|
6851
6836
|
/*
|
|
@@ -6873,7 +6858,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6873
6858
|
[part="root"][data-orientation="vertical"] {
|
|
6874
6859
|
flex-direction: column;
|
|
6875
6860
|
}
|
|
6876
|
-
`,
|
|
6861
|
+
`,QU="DUI-SPLITTER-PANEL",ZU="DUI-SPLITTER-HANDLE";function w$(i){if(i.length===0)return[];let t=i.map(d=>d.defaultSize),e=t.reduce((d,m)=>d+(m??0),0),s=t.filter(d=>d===void 0).length,l;if(s===0)l=t.map(d=>d??0);else{let m=Math.max(0,100-e)/s;l=t.map(g=>g??m)}return Pp(l)}function Pp(i){let r=i.length;if(r===0)return[];let t=i.reduce((e,s)=>e+s,0);if(t<=0){let e=100/r;return i.map(()=>e)}return i.map(e=>e*100/t)}function H$(i,r){return r.has(i.id)?0:i.minSize}function tq(i,r,t,e,s,l){let d=[...i],m=t,g=e;if(m<0||g<0||m>=d.length||g>=d.length)return d;let E=H$(r[m],l),$=H$(r[g],l),y=d[m]+s,S=Math.min(r[m].maxSize,Math.max(E,y))-d[m],O=d[g]-S;return O<$?S=d[g]-$:O>r[g].maxSize&&(S=d[g]-r[g].maxSize),d[m]+=S,d[g]-=S,d}function un(i,r,t){if(i.length===0)return[];let s=i.map((l,d)=>t.has(r[d].id)?0:Math.min(r[d].maxSize,Math.max(r[d].minSize,l)));for(let l=0;l<10;l++){let m=100-s.reduce((_,S)=>_+S,0);if(Math.abs(m)<.001)break;let g=s.map((_,S)=>{if(t.has(r[S].id))return{i:S,slack:0};let O=m>0?r[S].maxSize-_:_-r[S].minSize;return{i:S,slack:O}}).filter(({slack:_})=>_>1e-4);if(g.length===0)break;let E=g.reduce((_,S)=>_+S.slack,0),$=Math.min(Math.abs(m),E),y=Math.sign(m);for(let{i:_,slack:S}of g)s[_]+=S/E*$*y}return s}var wD,kD,ED,CD,$D,TD,SD,AD,_D,RD,ID,LD,zD,nt,k$,E$,C$,$$,T$,S$,A$,_$,R$,Ig,eq,R,I$,L$,wd,Lg,Ed,Oo,At,Ws,z$,O$,B$,F$,Jo,Qo,Cd,Og,ut,ms,gn,Mo,M$,N$,OD,V$,vo,Mg,Ng,$d,Dg,Hg,Bg,Fg,qp,vn,mn,Up,jp,Vg,P$,Ks,fn,U$,q$,MD,ND,DD,j$,Pg,Ug,D$,zg,Mr,HD,Td,kd,K$,W$,Y$,Kp,Re=class extends(zD=x,LD=[u({type:String,reflect:!0})],ID=[u({type:Array})],RD=[u({type:Array,attribute:"default-value"})],_D=[u({type:Boolean,reflect:!0})],AD=[u({type:Number,attribute:"keyboard-step"})],SD=[u({type:Number,attribute:"keyboard-step-large"})],TD=[u({type:String,attribute:"auto-save-id"})],$D=[vR("slot")],CD=[C()],ED=[C()],kD=[C()],wD=[lt({context:yd}),C()],zD){constructor(){super(...arguments);a(this,R);a(this,k$,n(nt,8,this,"horizontal")),n(nt,11,this);a(this,E$,n(nt,12,this)),n(nt,15,this);a(this,C$,n(nt,16,this,[])),n(nt,19,this);a(this,$$,n(nt,20,this,!1)),n(nt,23,this);a(this,T$,n(nt,24,this,10)),n(nt,27,this);a(this,S$,n(nt,28,this,25)),n(nt,31,this);a(this,A$,n(nt,32,this)),n(nt,35,this);a(this,_$,n(nt,36,this)),n(nt,39,this);a(this,I$,n(nt,40,this,[])),n(nt,43,this);a(this,Ed,!1);a(this,Oo,[]);a(this,At,new Set);a(this,Ws,new Map);a(this,z$,n(nt,44,this,!1)),n(nt,47,this);a(this,Jo,new Map);a(this,Qo,new Map);a(this,Cd,new WeakMap);a(this,Og,0);a(this,ut,[]);a(this,ms,new Map);a(this,gn,new Map);a(this,Mo,null);a(this,M$,n(nt,48,this)),n(nt,51,this);a(this,vo,null);a(this,Mg,t=>{o(this,Jo).set(t.id,t),p(this,R,kd).call(this)});a(this,Ng,t=>{o(this,Jo).delete(t),p(this,R,kd).call(this)});a(this,$d,t=>{let e=o(this,ut).indexOf(t);return e===-1?0:p(this,R,Mr).call(this)[e]??0});a(this,Dg,t=>{let e=o(this,Cd).get(t.el);return e||(e=`h${Es(this,Og)._++}`,o(this,Cd).set(t.el,e)),o(this,Qo).set(e,t),p(this,R,kd).call(this),e});a(this,Hg,t=>{o(this,Qo).delete(t),p(this,R,kd).call(this)});a(this,Bg,(t,e)=>{let s=o(this,Qo).get(t);s&&(o(this,Qo).set(t,{...s,...e}),this.requestUpdate())});a(this,Fg,(t,e)=>{if(this.disabled)return;let s=o(this,Qo).get(t);if(!s||s.disabled)return;let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return;let m=this.getBoundingClientRect(),g=this.orientation==="horizontal",E=g?m.width:m.height;if(E<=0)return;let $=0;for(let _ of o(this,Qo).values()){let S=_.el.getBoundingClientRect();$+=g?S.width:S.height}let y=E-$;y<=0||(h(this,Mo,{handleId:t,startSizes:[...p(this,R,Mr).call(this)],startCoord:g?e.clientX:e.clientY,rootSize:y,pointerId:e.pointerId,active:!1}),window.addEventListener("pointermove",o(this,qp)),window.addEventListener("pointerup",o(this,vn)),window.addEventListener("pointercancel",o(this,vn)))});a(this,qp,t=>{let e=o(this,Mo);if(!e||t.pointerId!==e.pointerId)return;if(this.disabled){p(this,R,mn).call(this);return}let d=(this.orientation==="horizontal"?t.clientX:t.clientY)-e.startCoord;if(!e.active){if(Math.abs(d)<1)return;e.active=!0,h(this,R,!0,F$),h(this,R,e.handleId,V$)}let m=d/e.rootSize*100,g=p(this,R,P$).call(this,e.handleId,e.startSizes,m);g&&p(this,R,Ks).call(this,g)});a(this,vn,t=>{let e=o(this,Mo);!e||t.pointerId!==e.pointerId||p(this,R,mn).call(this)});a(this,jp,(t,e)=>{if(this.disabled)return;let s=o(this,Qo).get(t);if(!s||s.disabled||!Number.isFinite(e)||e===0)return;let l=[...p(this,R,Mr).call(this)],d=p(this,R,P$).call(this,t,l,e);d&&(p(this,R,Ks).call(this,d),p(this,R,U$).call(this,l))});a(this,Vg,t=>{if(this.disabled)return;let e=o(this,Qo).get(t);if(!e||e.disabled)return;let s=o(this,ms).get(t);if(!s)return;let l=o(this,ut).indexOf(s);if(l===-1||l>=o(this,Oo).length)return;let d=p(this,R,Mr).call(this),g=o(this,Oo)[l]-d[l];Math.abs(g)<.01||o(this,jp).call(this,t,g)});a(this,Pg,t=>o(this,At).has(t));a(this,Ug,t=>{let e=o(this,ms).get(t);if(!e)return null;let s=o(this,Jo).get(e);if(!s)return null;let l=o(this,$d).call(this,e);return{valueNow:Math.round(l),valueMin:s.minSize,valueMax:s.maxSize,controls:e}});a(this,D$,n(nt,52,this,p(this,R,zg).call(this))),n(nt,55,this);a(this,Td,!1);a(this,Kp,()=>{p(this,R,kd).call(this)})}getSizes(){return[...p(this,R,Mr).call(this)]}getPanelSize(t){return o(this,$d).call(this,t)}isPanelCollapsed(t){return o(this,At).has(t)}setSizes(t){if(o(this,ut).length===0)return;if(t.length!==o(this,ut).length){console.warn(`[dui-splitter] setSizes: expected ${o(this,ut).length} sizes, got ${t.length}`);return}let e=p(this,R,Up).call(this);if(!e)return;let s=t.map((d,m)=>o(this,At).has(e[m].id)?0:d),l=un(Pp(s),e,o(this,At));p(this,R,Ks).call(this,l)}resetSizes(){if(o(this,ut).length===0)return;let t=p(this,R,Up).call(this);if(!t)return;o(this,Mo)!==null&&p(this,R,mn).call(this);for(let l of[...o(this,At)])p(this,R,fn).call(this,l,!1);let e=o(this,Oo).length===t.length?[...o(this,Oo)]:w$(t),s=un(e,t,o(this,At));p(this,R,Ks).call(this,s)}collapsePanel(t){if(o(this,ut).length===0||o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1){console.warn(`[dui-splitter] collapsePanel: unknown panel id "${t}"`);return}let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=[...p(this,R,Mr).call(this)],d=l[e];if(d<=0){p(this,R,fn).call(this,t,!0,s[e].defaultSize??100/s.length),p(this,R,Ks).call(this,un(l,s,o(this,At)));return}let m=[...l];m[e]=0;let g=e+1,E=e-1,$=y=>s[y].maxSize-l[y];if(g<s.length&&$(g)>=d-1e-4)m[g]=l[g]+d;else if(E>=0&&$(E)>=d-1e-4)m[E]=l[E]+d;else{let y=s.map((S,O)=>({i:O,slack:O===e?0:Math.max(0,$(O))})).filter(S=>S.slack>1e-4),_=y.reduce((S,O)=>S+O.slack,0);if(_>0){let S=Math.min(d,_);for(let{i:O,slack:B}of y)m[O]=l[O]+B/_*S}}p(this,R,fn).call(this,t,!0,d),p(this,R,Ks).call(this,un(m,s,o(this,At)))}expandPanel(t){if(o(this,ut).length===0||!o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1)return;let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=o(this,Ws).get(t)??s[e].defaultSize??100/s.length;p(this,R,fn).call(this,t,!1);let d=[...p(this,R,Mr).call(this)],m=[...d];m[e]=l;let g=e+1,E=e-1,$=_=>Math.max(0,d[_]-H$(s[_],o(this,At))),y=0;if(g<s.length&&$(g)>=l-1e-4)m[g]=d[g]-l,y=l;else if(E>=0&&$(E)>=l-1e-4)m[E]=d[E]-l,y=l;else{let _=s.map((B,j)=>({i:j,slack:j===e?0:$(j)})).filter(B=>B.slack>1e-4),S=_.reduce((B,j)=>B+j.slack,0),O=Math.min(l,S);for(let{i:B,slack:j}of _)m[B]=d[B]-j/S*O;y=O}y<l-1e-4&&(m[e]=y),p(this,R,Ks).call(this,un(m,s,o(this,At)))}connectedCallback(){super.connectedCallback(),this._ctx=p(this,R,zg).call(this)}willUpdate(t){t.has("disabled")&&this.disabled&&o(this,Mo)!==null&&p(this,R,mn).call(this),this._ctx=p(this,R,zg).call(this)}firstUpdated(){o(this,R,Ig)?.addEventListener("slotchange",o(this,Kp)),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),o(this,R,Ig)?.removeEventListener("slotchange",o(this,Kp)),o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null))}render(){return f`
|
|
6877
6862
|
<div
|
|
6878
6863
|
part="root"
|
|
6879
6864
|
data-orientation=${this.orientation}
|
|
@@ -6882,7 +6867,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6882
6867
|
>
|
|
6883
6868
|
<slot></slot>
|
|
6884
6869
|
</div>
|
|
6885
|
-
`}};nt=A(zD),k$=new WeakMap,E$=new WeakMap,C$=new WeakMap,$$=new WeakMap,T$=new WeakMap,S$=new WeakMap,A$=new WeakMap,_$=new WeakMap,R=new WeakSet,I$=new WeakMap,Ed=new WeakMap,Oo=new WeakMap,At=new WeakMap,Ws=new WeakMap,z$=new WeakMap,Jo=new WeakMap,Qo=new WeakMap,Cd=new WeakMap,
|
|
6870
|
+
`}};nt=A(zD),k$=new WeakMap,E$=new WeakMap,C$=new WeakMap,$$=new WeakMap,T$=new WeakMap,S$=new WeakMap,A$=new WeakMap,_$=new WeakMap,R=new WeakSet,I$=new WeakMap,Ed=new WeakMap,Oo=new WeakMap,At=new WeakMap,Ws=new WeakMap,z$=new WeakMap,Jo=new WeakMap,Qo=new WeakMap,Cd=new WeakMap,Og=new WeakMap,ut=new WeakMap,ms=new WeakMap,gn=new WeakMap,Mo=new WeakMap,M$=new WeakMap,vo=new WeakMap,Mg=new WeakMap,Ng=new WeakMap,$d=new WeakMap,Dg=new WeakMap,Hg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,qp=new WeakMap,vn=new WeakMap,mn=function(){let t=o(this,Mo);if(!t)return;window.removeEventListener("pointermove",o(this,qp)),window.removeEventListener("pointerup",o(this,vn)),window.removeEventListener("pointercancel",o(this,vn));let e=t.active,s=t.startSizes;h(this,Mo,null),h(this,R,!1,F$),h(this,R,void 0,V$),e&&(p(this,R,U$).call(this,s),p(this,R,DD).call(this))},Up=function(){let t=o(this,ut).map(e=>o(this,Jo).get(e)).filter(e=>e!==void 0);return t.length!==o(this,ut).length?null:t},jp=new WeakMap,Vg=new WeakMap,P$=function(t,e,s){let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return null;let m=o(this,ut).indexOf(l),g=o(this,ut).indexOf(d);if(m===-1||g===-1||e.length!==o(this,ut).length)return null;let E=o(this,ut).map($=>o(this,Jo).get($)).filter($=>$!==void 0);return E.length!==o(this,ut).length?null:tq(e,E,m,g,s,o(this,At))},Ks=function(t){if(o(this,At).size>0)for(let e=0;e<o(this,ut).length;e++){let s=o(this,ut)[e];o(this,At).has(s)&&(t[e]??0)>.01&&p(this,R,fn).call(this,s,!1)}this.value===void 0&&(h(this,R,t,Lg),p(this,R,ND).call(this)),this.dispatchEvent(G$([...t])),this.requestUpdate()},fn=function(t,e,s){o(this,At).has(t)!==e&&(e?(o(this,At).add(t),s!==void 0&&s>.01&&o(this,Ws).set(t,s)):(o(this,At).delete(t),o(this,Ws).delete(t)),this.dispatchEvent(X$({panelId:t,collapsed:e})),this.requestUpdate())},U$=function(t){if(o(this,ut).length===0)return;let e=p(this,R,Mr).call(this);for(let s=0;s<o(this,ut).length;s++){let l=o(this,ut)[s];if(o(this,At).has(l))continue;let d=o(this,Jo).get(l);if(!d?.collapsible||(e[s]??0)>=.01)continue;let m=t?.[s],g=m!==void 0&&m>.01?m:d.defaultSize??100/o(this,ut).length;p(this,R,fn).call(this,l,!0,g)}},q$=function(){if(!this.autoSaveId||this.value!==void 0||o(this,ut).length===0)return null;let t=[...o(this,ut)].sort().join("|");return`dui-splitter:${this.autoSaveId}:${t}`},MD=function(){let t=p(this,R,q$).call(this);if(!t)return null;try{let e=globalThis.localStorage?.getItem(t);if(!e)return null;let s=JSON.parse(e);if(Array.isArray(s)&&s.every(l=>typeof l=="number"&&Number.isFinite(l)))return{sizes:s,collapsed:[]};if(s&&typeof s=="object"&&Array.isArray(s.sizes)&&s.sizes.every(l=>typeof l=="number"&&Number.isFinite(l))&&Array.isArray(s.collapsed)&&s.collapsed.every(l=>typeof l=="string"))return{sizes:s.sizes,collapsed:s.collapsed}}catch{}return null},ND=function(){this.autoSaveId&&(o(this,vo)!==null&&clearTimeout(o(this,vo)),h(this,vo,setTimeout(()=>{h(this,vo,null),p(this,R,j$).call(this)},250)))},DD=function(){o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null)),p(this,R,j$).call(this)},j$=function(){let t=p(this,R,q$).call(this);if(t)try{globalThis.localStorage?.setItem(t,JSON.stringify({sizes:o(this,R,wd),collapsed:[...o(this,At)]}))}catch{}},Pg=new WeakMap,Ug=new WeakMap,D$=new WeakMap,zg=function(){return{orientation:this.orientation,disabled:this.disabled,resizing:o(this,R,B$),draggingHandleId:o(this,R,OD),keyboardStep:this.keyboardStep,keyboardStepLarge:this.keyboardStepLarge,registerPanel:o(this,Mg),unregisterPanel:o(this,Ng),getPanelSize:o(this,$d),isPanelCollapsed:o(this,Pg),registerHandle:o(this,Dg),unregisterHandle:o(this,Hg),updateHandle:o(this,Bg),beginDrag:o(this,Fg),nudge:o(this,jp),resetHandle:o(this,Vg),getHandleAria:o(this,Ug)}},Mr=function(){return this.value!==void 0?p(this,R,HD).call(this,this.value):o(this,R,wd)},HD=function(t){if(t.length!==o(this,ut).length){let e=o(this,ut).length;if(e===0)return[];let s=100/e;return Array.from({length:e},()=>s)}return Pp(t)},Td=new WeakMap,kd=function(){o(this,Td)||(h(this,Td,!0),queueMicrotask(()=>{h(this,Td,!1),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}))},K$=function(){let t=o(this,R,Ig);if(!t){h(this,ut,[]),h(this,ms,new Map),h(this,gn,new Map);return}let e=t.assignedElements(),s=[],l=new Map,d=new Map,m=[],g;for(let E of e){let $=E.tagName;if($===QU){let y=E.panelId;if(y&&o(this,Jo).has(y)){s.push(y);for(let _ of m)d.set(_,y);m.length=0,g=y}}else if($===ZU){let y=o(this,Cd).get(E);y&&g&&(l.set(y,g),m.push(y))}}h(this,ut,s),h(this,ms,l),h(this,gn,d)},W$=function(){let t=o(this,ut).map(s=>o(this,Jo).get(s)).filter(s=>s!==void 0);if(t.length===0){h(this,R,[],Lg),h(this,Oo,[]);return}if(this.value!==void 0){h(this,Ed,!0),o(this,Oo).length!==t.length&&h(this,Oo,un(p(this,R,Mr).call(this),t,o(this,At))),p(this,R,Y$).call(this,t);return}let e;if(o(this,Ed))o(this,R,wd).length!==t.length?(p(this,R,Y$).call(this,t),e=w$(t)):e=[...o(this,R,wd)];else{let s=p(this,R,MD).call(this);if(s&&s.sizes.length===t.length){e=Pp(s.sizes);let l=new Set(t.map(d=>d.id));h(this,At,new Set(s.collapsed.filter(d=>l.has(d))));for(let d=0;d<t.length;d++)o(this,At).has(t[d].id)&&(e[d]=0)}else this.defaultValue.length===t.length?e=Pp(this.defaultValue):e=w$(t);h(this,Ed,!0)}h(this,R,un(e,t,o(this,At)),Lg),o(this,Oo).length!==t.length&&h(this,Oo,[...o(this,R,wd)])},Y$=function(t){let e=new Set(t.map(s=>s.id));for(let s of[...o(this,At)])e.has(s)||o(this,At).delete(s);for(let s of[...o(this,Ws).keys()])e.has(s)||o(this,Ws).delete(s)},Kp=new WeakMap,c(nt,4,"orientation",LD,Re,k$),c(nt,4,"value",ID,Re,E$),c(nt,4,"defaultValue",RD,Re,C$),c(nt,4,"disabled",_D,Re,$$),c(nt,4,"keyboardStep",AD,Re,T$),c(nt,4,"keyboardStepLarge",SD,Re,S$),c(nt,4,"autoSaveId",TD,Re,A$),R$=c(nt,20,"#slot",$D,R,_$),Ig=R$.get,eq=R$.set,L$=c(nt,20,"#internalSizes",CD,R,I$),wd=L$.get,Lg=L$.set,O$=c(nt,20,"#resizing",ED,R,z$),B$=O$.get,F$=O$.set,N$=c(nt,20,"#draggingHandleId",kD,R,M$),OD=N$.get,V$=N$.set,c(nt,4,"_ctx",wD,Re,D$),T(nt,Re),v(Re,"tagName","dui-splitter"),v(Re,"styles",[w,JU]);var oq=b`
|
|
6886
6871
|
:host {
|
|
6887
6872
|
display: block;
|
|
6888
6873
|
flex: 0 0 auto;
|
|
@@ -6906,7 +6891,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6906
6891
|
>
|
|
6907
6892
|
<slot></slot>
|
|
6908
6893
|
</div>
|
|
6909
|
-
`}};Zt=A(KD),J$=new WeakMap,Q$=new WeakMap,Z$=new WeakMap,tT=new WeakMap,eT=new WeakMap,oT=new WeakMap,rT=new WeakMap,bn=new WeakMap,Wp=new WeakSet,sT=function(){!this.panelId||!this._ctx||(this._ctx.registerPanel({id:this.panelId,minSize:this.minSize,maxSize:this.maxSize,defaultSize:this.defaultSize,collapsible:this.collapsible,order:this.order,el:this}),h(this,bn,!0))},c(Zt,4,"panelId",jD,Be,J$),c(Zt,4,"defaultSize",qD,Be,Q$),c(Zt,4,"minSize",UD,Be,Z$),c(Zt,4,"maxSize",PD,Be,tT),c(Zt,4,"collapsible",VD,Be,eT),c(Zt,4,"order",FD,Be,oT),c(Zt,4,"_ctx",BD,Be,rT),T(Zt,Be),v(Be,"tagName","dui-splitter-panel"),v(Be,"styles",[w,
|
|
6894
|
+
`}};Zt=A(KD),J$=new WeakMap,Q$=new WeakMap,Z$=new WeakMap,tT=new WeakMap,eT=new WeakMap,oT=new WeakMap,rT=new WeakMap,bn=new WeakMap,Wp=new WeakSet,sT=function(){!this.panelId||!this._ctx||(this._ctx.registerPanel({id:this.panelId,minSize:this.minSize,maxSize:this.maxSize,defaultSize:this.defaultSize,collapsible:this.collapsible,order:this.order,el:this}),h(this,bn,!0))},c(Zt,4,"panelId",jD,Be,J$),c(Zt,4,"defaultSize",qD,Be,Q$),c(Zt,4,"minSize",UD,Be,Z$),c(Zt,4,"maxSize",PD,Be,tT),c(Zt,4,"collapsible",VD,Be,eT),c(Zt,4,"order",FD,Be,oT),c(Zt,4,"_ctx",BD,Be,rT),T(Zt,Be),v(Be,"tagName","dui-splitter-panel"),v(Be,"styles",[w,oq]);var rq=b`
|
|
6910
6895
|
:host {
|
|
6911
6896
|
display: block;
|
|
6912
6897
|
flex: 0 0 auto;
|
|
@@ -6932,7 +6917,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6932
6917
|
box-sizing: border-box;
|
|
6933
6918
|
outline: none;
|
|
6934
6919
|
}
|
|
6935
|
-
`,WD,YD,GD,XD,JD,bo,iT,nT,aT,lT,xo,pT,ft,dT,cT,hT,uT,Ys,
|
|
6920
|
+
`,WD,YD,GD,XD,JD,bo,iT,nT,aT,lT,xo,pT,ft,dT,cT,hT,uT,Ys,qg,jg,Kg,Wg,Yg,Gg,Zo=class extends(JD=x,XD=[u({type:Boolean,reflect:!0})],GD=[Nt({context:yd,subscribe:!0})],YD=[C()],WD=[C()],JD){constructor(){super(...arguments);a(this,ft);a(this,iT,n(bo,8,this,!1)),n(bo,11,this);a(this,nT,n(bo,12,this)),n(bo,15,this);a(this,aT,n(bo,16,this)),n(bo,19,this);a(this,dT,n(bo,20,this,!1)),n(bo,23,this);a(this,qg,t=>{p(this,ft,Ys).call(this)||!o(this,ft,xo)||!this._ctx||t.button!==void 0&&t.button!==0||this._ctx.beginDrag(o(this,ft,xo),t)});a(this,jg,t=>{p(this,ft,Ys).call(this)||t.button===0&&t.preventDefault()});a(this,Kg,t=>{p(this,ft,Ys).call(this)||!o(this,ft,xo)||!this._ctx||(t.preventDefault(),this._ctx.resetHandle(o(this,ft,xo)))});a(this,Wg,t=>{let e=this._ctx,s=o(this,ft,xo);if(p(this,ft,Ys).call(this)||!s||!e)return;let l=e.orientation==="horizontal",d=l?"ArrowLeft":"ArrowUp",m=l?"ArrowRight":"ArrowDown",g=t.shiftKey?e.keyboardStepLarge:e.keyboardStep;switch(t.key){case d:t.preventDefault(),e.nudge(s,-g);break;case m:t.preventDefault(),e.nudge(s,g);break;case"Home":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMin-E.valueNow));break}case"End":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMax-E.valueNow));break}}});a(this,Yg,()=>{h(this,ft,!0,uT)});a(this,Gg,()=>{h(this,ft,!1,uT)})}connectedCallback(){super.connectedCallback(),this._ctx&&h(this,ft,this._ctx.registerHandle({el:this,disabled:p(this,ft,Ys).call(this)}),pT)}disconnectedCallback(){super.disconnectedCallback(),o(this,ft,xo)&&this._ctx&&(this._ctx.unregisterHandle(o(this,ft,xo)),h(this,ft,void 0,pT))}willUpdate(t){t.has("disabled")&&o(this,ft,xo)&&this._ctx&&this._ctx.updateHandle(o(this,ft,xo),{disabled:p(this,ft,Ys).call(this)})}render(){let t=this._ctx,e=t?.orientation??"horizontal",s=p(this,ft,Ys).call(this),l=o(this,ft,xo)&&t?t.getHandleAria(o(this,ft,xo)):null,d=t?.draggingHandleId!==void 0&&t.draggingHandleId===o(this,ft,xo),m=e==="horizontal"?"vertical":"horizontal";return this.isConnected&&(this.dataset.orientation=e,this.toggleAttribute("data-disabled",s),this.toggleAttribute("data-dragging",d),this.toggleAttribute("data-focused",o(this,ft,hT))),f`
|
|
6936
6921
|
<div
|
|
6937
6922
|
part="root"
|
|
6938
6923
|
role="separator"
|
|
@@ -6945,14 +6930,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
6945
6930
|
?data-disabled=${s}
|
|
6946
6931
|
?data-dragging=${d}
|
|
6947
6932
|
?data-focused=${o(this,ft,hT)}
|
|
6948
|
-
@pointerdown=${o(this,
|
|
6949
|
-
@mousedown=${o(this,
|
|
6950
|
-
@dblclick=${o(this,
|
|
6951
|
-
@keydown=${o(this,
|
|
6952
|
-
@focus=${o(this,
|
|
6953
|
-
@blur=${o(this,
|
|
6933
|
+
@pointerdown=${o(this,qg)}
|
|
6934
|
+
@mousedown=${o(this,jg)}
|
|
6935
|
+
@dblclick=${o(this,Kg)}
|
|
6936
|
+
@keydown=${o(this,Wg)}
|
|
6937
|
+
@focus=${o(this,Yg)}
|
|
6938
|
+
@blur=${o(this,Gg)}
|
|
6954
6939
|
></div>
|
|
6955
|
-
`}};bo=A(JD),iT=new WeakMap,nT=new WeakMap,aT=new WeakMap,ft=new WeakSet,dT=new WeakMap,Ys=function(){return this.disabled||(this._ctx?.disabled??!1)},
|
|
6940
|
+
`}};bo=A(JD),iT=new WeakMap,nT=new WeakMap,aT=new WeakMap,ft=new WeakSet,dT=new WeakMap,Ys=function(){return this.disabled||(this._ctx?.disabled??!1)},qg=new WeakMap,jg=new WeakMap,Kg=new WeakMap,Wg=new WeakMap,Yg=new WeakMap,Gg=new WeakMap,c(bo,4,"disabled",XD,Zo,iT),c(bo,4,"_ctx",GD,Zo,nT),lT=c(bo,20,"#handleId",YD,ft,aT),xo=lT.get,pT=lT.set,cT=c(bo,20,"#focused",WD,ft,dT),hT=cT.get,uT=cT.set,T(bo,Zo),v(Zo,"tagName","dui-splitter-handle"),v(Zo,"styles",[w,rq]);var Sd=class extends Re{};customElements.define(Sd.tagName,Sd);var Ad=class extends Be{};customElements.define(Ad.tagName,Ad);var sq=k`
|
|
6956
6941
|
/* Host = interaction target. Cross-axis size depends on orientation. */
|
|
6957
6942
|
:host([data-orientation="horizontal"]) {
|
|
6958
6943
|
width: var(--splitter-handle-size, var(--space-2));
|
|
@@ -7019,7 +7004,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7019
7004
|
background: var(--border);
|
|
7020
7005
|
opacity: 0.5;
|
|
7021
7006
|
}
|
|
7022
|
-
`,_d=class extends Zo{static styles=[...Zo.styles,
|
|
7007
|
+
`,_d=class extends Zo{static styles=[...Zo.styles,sq]};customElements.define(_d.tagName,_d);var zT=M("value-change",{bubbles:!0,composed:!0}),Yp=M("value-committed",{bubbles:!0,composed:!0}),iq=b`
|
|
7023
7008
|
:host {
|
|
7024
7009
|
display: block;
|
|
7025
7010
|
}
|
|
@@ -7072,7 +7057,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7072
7057
|
width: 0;
|
|
7073
7058
|
height: 0;
|
|
7074
7059
|
}
|
|
7075
|
-
`,QD,ZD,tH,eH,oH,rH,sH,iH,nH,aH,lH,dH,cH,at,mT,fT,gT,vT,bT,xT,yT,wT,kT,ET,CT,$T,pH,AT,X,TT,ST,_T,RT,Nr,hH,uH,Rd,IT,Id,Gp,Xp,LT,
|
|
7060
|
+
`,QD,ZD,tH,eH,oH,rH,sH,iH,nH,aH,lH,dH,cH,at,mT,fT,gT,vT,bT,xT,yT,wT,kT,ET,CT,$T,pH,AT,X,TT,ST,_T,RT,Nr,hH,uH,Rd,IT,Id,Gp,Xp,LT,Xg,Jg,Qg,Zg,tv,se=class extends(cH=x,dH=[u({type:Number})],lH=[u({type:Number,attribute:"default-value"})],aH=[u({type:Number})],nH=[u({type:Number})],iH=[u({type:Number})],sH=[u({type:Number,attribute:"large-step"})],rH=[u({type:Boolean,reflect:!0})],oH=[u({type:Boolean,reflect:!0,attribute:"read-only"})],eH=[u({type:Boolean})],tH=[u()],ZD=[C()],QD=[C()],cH){constructor(){super(...arguments);a(this,X);a(this,mT,n(at,8,this)),n(at,11,this);a(this,fT,n(at,12,this)),n(at,15,this);a(this,gT,n(at,16,this)),n(at,19,this);a(this,vT,n(at,20,this)),n(at,23,this);a(this,bT,n(at,24,this,1)),n(at,27,this);a(this,xT,n(at,28,this,10)),n(at,31,this);a(this,yT,n(at,32,this,!1)),n(at,35,this);a(this,wT,n(at,36,this,!1)),n(at,39,this);a(this,kT,n(at,40,this,!1)),n(at,43,this);a(this,ET,n(at,44,this)),n(at,47,this);a(this,CT,n(at,48,this)),n(at,51,this);a(this,TT,n(at,52,this,"")),n(at,55,this);a(this,Gp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Nr)??this.min??0;p(this,X,Id).call(this,e+t)});a(this,Xp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Nr)??this.max??0;p(this,X,Id).call(this,e-t)});a(this,Xg,t=>{h(this,X,t.target.value,RT)});a(this,Jg,()=>{p(this,X,LT).call(this)});a(this,Qg,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),o(this,Gp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"ArrowDown":t.preventDefault(),o(this,Xp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.max));break;case"Enter":p(this,X,LT).call(this);break}});a(this,Zg,()=>{o(this,Xp).call(this,this.step);let t=o(this,X,Nr);t!==void 0&&this.dispatchEvent(Yp({value:t}))});a(this,tv,()=>{o(this,Gp).call(this,this.step);let t=o(this,X,Nr);t!==void 0&&this.dispatchEvent(Yp({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,X,p(this,X,IT).call(this,this.defaultValue),AT),p(this,X,Rd).call(this)}willUpdate(){p(this,X,Rd).call(this)}render(){let t=o(this,X,Nr);return f`
|
|
7076
7061
|
<div
|
|
7077
7062
|
part="root"
|
|
7078
7063
|
?data-disabled="${this.disabled}"
|
|
@@ -7083,7 +7068,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7083
7068
|
tabindex="-1"
|
|
7084
7069
|
aria-label="Decrease"
|
|
7085
7070
|
?disabled="${this.disabled||this.readOnly||!o(this,X,hH)}"
|
|
7086
|
-
@click="${o(this,
|
|
7071
|
+
@click="${o(this,Zg)}"
|
|
7087
7072
|
>
|
|
7088
7073
|
<slot name="decrement">−</slot>
|
|
7089
7074
|
</button>
|
|
@@ -7095,9 +7080,9 @@ label, legend, caption, figcaption, th, td {
|
|
|
7095
7080
|
?disabled="${this.disabled}"
|
|
7096
7081
|
?readonly="${this.readOnly}"
|
|
7097
7082
|
?required="${this.required}"
|
|
7098
|
-
@input="${o(this,
|
|
7099
|
-
@keydown="${o(this,
|
|
7100
|
-
@blur="${o(this,
|
|
7083
|
+
@input="${o(this,Xg)}"
|
|
7084
|
+
@keydown="${o(this,Qg)}"
|
|
7085
|
+
@blur="${o(this,Jg)}"
|
|
7101
7086
|
/>
|
|
7102
7087
|
<button
|
|
7103
7088
|
part="increment"
|
|
@@ -7105,7 +7090,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7105
7090
|
tabindex="-1"
|
|
7106
7091
|
aria-label="Increase"
|
|
7107
7092
|
?disabled="${this.disabled||this.readOnly||!o(this,X,uH)}"
|
|
7108
|
-
@click="${o(this,
|
|
7093
|
+
@click="${o(this,tv)}"
|
|
7109
7094
|
>
|
|
7110
7095
|
<slot name="increment">+</slot>
|
|
7111
7096
|
</button>
|
|
@@ -7115,7 +7100,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7115
7100
|
.value="${String(t??"")}"
|
|
7116
7101
|
/>`:L}
|
|
7117
7102
|
</div>
|
|
7118
|
-
`}};at=A(cH),mT=new WeakMap,fT=new WeakMap,gT=new WeakMap,vT=new WeakMap,bT=new WeakMap,xT=new WeakMap,yT=new WeakMap,wT=new WeakMap,kT=new WeakMap,ET=new WeakMap,CT=new WeakMap,X=new WeakSet,TT=new WeakMap,Nr=function(){return this.value??o(this,X,pH)},hH=function(){let t=o(this,X,Nr);return t===void 0?!0:this.min===void 0||t>this.min},uH=function(){let t=o(this,X,Nr);return t===void 0?!0:this.max===void 0||t<this.max},Rd=function(){let t=o(this,X,Nr);h(this,X,t!==void 0?String(t):"",RT)},IT=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Id=function(t){let e=p(this,X,IT).call(this,t);this.value===void 0&&h(this,X,e,AT),this.dispatchEvent(zT({value:e}))},Gp=new WeakMap,Xp=new WeakMap,LT=function(){let t=parseFloat(o(this,X,_T));Number.isNaN(t)?p(this,X,Rd).call(this):p(this,X,Id).call(this,t);let e=o(this,X,Nr);e!==void 0&&this.dispatchEvent(Yp({value:e}))},
|
|
7103
|
+
`}};at=A(cH),mT=new WeakMap,fT=new WeakMap,gT=new WeakMap,vT=new WeakMap,bT=new WeakMap,xT=new WeakMap,yT=new WeakMap,wT=new WeakMap,kT=new WeakMap,ET=new WeakMap,CT=new WeakMap,X=new WeakSet,TT=new WeakMap,Nr=function(){return this.value??o(this,X,pH)},hH=function(){let t=o(this,X,Nr);return t===void 0?!0:this.min===void 0||t>this.min},uH=function(){let t=o(this,X,Nr);return t===void 0?!0:this.max===void 0||t<this.max},Rd=function(){let t=o(this,X,Nr);h(this,X,t!==void 0?String(t):"",RT)},IT=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Id=function(t){let e=p(this,X,IT).call(this,t);this.value===void 0&&h(this,X,e,AT),this.dispatchEvent(zT({value:e}))},Gp=new WeakMap,Xp=new WeakMap,LT=function(){let t=parseFloat(o(this,X,_T));Number.isNaN(t)?p(this,X,Rd).call(this):p(this,X,Id).call(this,t);let e=o(this,X,Nr);e!==void 0&&this.dispatchEvent(Yp({value:e}))},Xg=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,Zg=new WeakMap,tv=new WeakMap,c(at,4,"value",dH,se,mT),c(at,4,"defaultValue",lH,se,fT),c(at,4,"min",aH,se,gT),c(at,4,"max",nH,se,vT),c(at,4,"step",iH,se,bT),c(at,4,"largeStep",sH,se,xT),c(at,4,"disabled",rH,se,yT),c(at,4,"readOnly",oH,se,wT),c(at,4,"required",eH,se,kT),c(at,4,"name",tH,se,ET),$T=c(at,20,"#internalValue",ZD,X,CT),pH=$T.get,AT=$T.set,ST=c(at,20,"#inputText",QD,X,TT),_T=ST.get,RT=ST.set,T(at,se),v(se,"tagName","dui-stepper"),v(se,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(se,"styles",[w,iq]);var nq=k`
|
|
7119
7104
|
[part="root"] {
|
|
7120
7105
|
border: var(--border-width-thin) solid var(--border);
|
|
7121
7106
|
border-radius: var(--radius-md);
|
|
@@ -7182,7 +7167,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7182
7167
|
[part="increment"]:disabled {
|
|
7183
7168
|
opacity: 0.4;
|
|
7184
7169
|
}
|
|
7185
|
-
`,Ld=class extends se{static styles=[...se.styles,
|
|
7170
|
+
`,Ld=class extends se{static styles=[...se.styles,nq]};customElements.define(Ld.tagName,Ld);var KT=M("checked-change",{bubbles:!0,composed:!0}),aq=b`
|
|
7186
7171
|
:host {
|
|
7187
7172
|
display: inline-flex;
|
|
7188
7173
|
align-items: start;
|
|
@@ -7216,7 +7201,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7216
7201
|
transform: translateX(var(--switch-checked-offset, 0));
|
|
7217
7202
|
}
|
|
7218
7203
|
|
|
7219
|
-
`,mH,fH,gH,vH,bH,xH,yH,wH,kH,EH,Jp,Mt,OT,MT,NT,DT,HT,BT,FT,VT,PT,UT,CH,qT,Ie,
|
|
7204
|
+
`,mH,fH,gH,vH,bH,xH,yH,wH,kH,EH,Jp,Mt,OT,MT,NT,DT,HT,BT,FT,VT,PT,UT,CH,qT,Ie,ev,jT,$H,Qp,Zp,ov,be=class extends(EH=x,kH=[u({type:Boolean,reflect:!0})],wH=[u({type:Boolean,attribute:"default-checked"})],yH=[u({type:Boolean,reflect:!0})],xH=[u({type:Boolean,reflect:!0,attribute:"read-only"})],bH=[u({type:Boolean,reflect:!0})],vH=[u()],gH=[u()],fH=[u({attribute:"unchecked-value"})],mH=[C()],EH){constructor(){super();a(this,Ie);a(this,Jp);a(this,OT,n(Mt,8,this)),n(Mt,11,this);a(this,MT,n(Mt,12,this,!1)),n(Mt,15,this);a(this,NT,n(Mt,16,this,!1)),n(Mt,19,this);a(this,DT,n(Mt,20,this,!1)),n(Mt,23,this);a(this,HT,n(Mt,24,this,!1)),n(Mt,27,this);a(this,BT,n(Mt,28,this)),n(Mt,31,this);a(this,FT,n(Mt,32,this,"on")),n(Mt,35,this);a(this,VT,n(Mt,36,this,"")),n(Mt,39,this);a(this,PT,n(Mt,40,this,!1)),n(Mt,43,this);a(this,Qp,t=>{o(this,Zp).call(this)});a(this,Zp,()=>{if(o(this,Ie,jT)||this.readOnly)return;let t=!o(this,Ie,ev);this.checked===void 0&&h(this,Ie,t,qT),this.dispatchEvent(KT({checked:t}))});a(this,ov,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),o(this,Zp).call(this))});h(this,Jp,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,Ie,!0,qT),this.addEventListener("click",o(this,Qp))}willUpdate(){p(this,Ie,$H).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Qp))}render(){let t=o(this,Ie,ev),e=o(this,Ie,jT);return f`
|
|
7220
7205
|
<span
|
|
7221
7206
|
part="root"
|
|
7222
7207
|
role="switch"
|
|
@@ -7230,12 +7215,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
7230
7215
|
?data-disabled="${e}"
|
|
7231
7216
|
?data-readonly="${this.readOnly}"
|
|
7232
7217
|
?data-required="${this.required}"
|
|
7233
|
-
@keydown="${o(this,
|
|
7218
|
+
@keydown="${o(this,ov)}"
|
|
7234
7219
|
>
|
|
7235
7220
|
<span part="thumb"></span>
|
|
7236
7221
|
</span>
|
|
7237
7222
|
<slot></slot>
|
|
7238
|
-
`}};Mt=A(EH),Jp=new WeakMap,OT=new WeakMap,MT=new WeakMap,NT=new WeakMap,DT=new WeakMap,HT=new WeakMap,BT=new WeakMap,FT=new WeakMap,VT=new WeakMap,PT=new WeakMap,Ie=new WeakSet,
|
|
7223
|
+
`}};Mt=A(EH),Jp=new WeakMap,OT=new WeakMap,MT=new WeakMap,NT=new WeakMap,DT=new WeakMap,HT=new WeakMap,BT=new WeakMap,FT=new WeakMap,VT=new WeakMap,PT=new WeakMap,Ie=new WeakSet,ev=function(){return this.checked??o(this,Ie,CH)},jT=function(){return this.disabled},$H=function(){let t=o(this,Ie,ev)?this.value:this.uncheckedValue;o(this,Jp).setFormValue(t||null)},Qp=new WeakMap,Zp=new WeakMap,ov=new WeakMap,c(Mt,4,"checked",kH,be,OT),c(Mt,4,"defaultChecked",wH,be,MT),c(Mt,4,"disabled",yH,be,NT),c(Mt,4,"readOnly",xH,be,DT),c(Mt,4,"required",bH,be,HT),c(Mt,4,"name",vH,be,BT),c(Mt,4,"value",gH,be,FT),c(Mt,4,"uncheckedValue",fH,be,VT),UT=c(Mt,20,"#internalChecked",mH,Ie,PT),CH=UT.get,qT=UT.set,T(Mt,be),v(be,"tagName","dui-switch"),v(be,"formAssociated",!0),v(be,"styles",[w,aq]);var lq=k`
|
|
7239
7224
|
:host {
|
|
7240
7225
|
--switch-width: var(--space-9);
|
|
7241
7226
|
--switch-height: var(--space-5);
|
|
@@ -7305,7 +7290,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7305
7290
|
[part="root"][data-checked] [part="thumb"] {
|
|
7306
7291
|
background: oklch(from var(--accent) 0.98 0.01 h);
|
|
7307
7292
|
}
|
|
7308
|
-
`,zd=class extends be{static styles=[...be.styles,
|
|
7293
|
+
`,zd=class extends be{static styles=[...be.styles,lq]};customElements.define(zd.tagName,zd);var Gs=Symbol("dui-tabs");var eS=M("value-change",{bubbles:!0,composed:!0}),dq=b`
|
|
7309
7294
|
:host {
|
|
7310
7295
|
display: block;
|
|
7311
7296
|
}
|
|
@@ -7322,11 +7307,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7322
7307
|
:host([controls="footer"]) [part="root"] {
|
|
7323
7308
|
flex-direction: column-reverse;
|
|
7324
7309
|
}
|
|
7325
|
-
`,TH,SH,AH,_H,RH,IH,LH,he,WT,YT,GT,XT,JT,QT,zH,tS,tr,
|
|
7310
|
+
`,TH,SH,AH,_H,RH,IH,LH,he,WT,YT,GT,XT,JT,QT,zH,tS,tr,sv,iv,ZT,rv,eo=class extends(LH=x,IH=[u()],RH=[u({attribute:"default-value"})],_H=[u({reflect:!0})],AH=[u({reflect:!0})],SH=[C()],TH=[lt({context:Gs}),C()],LH){constructor(){super(...arguments);a(this,tr);a(this,WT,n(he,8,this)),n(he,11,this);a(this,YT,n(he,12,this)),n(he,15,this);a(this,GT,n(he,16,this,"horizontal")),n(he,19,this);a(this,XT,n(he,20,this,"header")),n(he,23,this);a(this,JT,n(he,24,this)),n(he,27,this);a(this,sv,()=>this.value??o(this,tr,zH));a(this,iv,t=>{this.value===void 0&&h(this,tr,t,tS),this.dispatchEvent(eS(t))});a(this,ZT,n(he,28,this,p(this,tr,rv).call(this))),n(he,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,tr,this.defaultValue,tS),this._ctx=p(this,tr,rv).call(this)}willUpdate(){this._ctx=p(this,tr,rv).call(this)}render(){return f`
|
|
7326
7311
|
<div part="root" data-orientation=${this.orientation}>
|
|
7327
7312
|
<slot></slot>
|
|
7328
7313
|
</div>
|
|
7329
|
-
`}};he=A(LH),WT=new WeakMap,YT=new WeakMap,GT=new WeakMap,XT=new WeakMap,JT=new WeakMap,tr=new WeakSet,
|
|
7314
|
+
`}};he=A(LH),WT=new WeakMap,YT=new WeakMap,GT=new WeakMap,XT=new WeakMap,JT=new WeakMap,tr=new WeakSet,sv=new WeakMap,iv=new WeakMap,ZT=new WeakMap,rv=function(){return{value:o(this,sv).call(this),orientation:this.orientation,select:o(this,iv)}},c(he,4,"value",IH,eo,WT),c(he,4,"defaultValue",RH,eo,YT),c(he,4,"orientation",_H,eo,GT),c(he,4,"controls",AH,eo,XT),QT=c(he,20,"#internalValue",SH,tr,JT),zH=QT.get,tS=QT.set,c(he,4,"_ctx",TH,eo,ZT),T(he,eo),v(eo,"tagName","dui-tabs"),v(eo,"styles",[w,dq]);var cq=b`
|
|
7330
7315
|
:host {
|
|
7331
7316
|
display: block;
|
|
7332
7317
|
}
|
|
@@ -7340,11 +7325,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7340
7325
|
[part="list"][data-orientation="vertical"] {
|
|
7341
7326
|
flex-direction: column;
|
|
7342
7327
|
}
|
|
7343
|
-
`,OH,MH,
|
|
7328
|
+
`,OH,MH,nv,oS,Od,Md,av,Dr=class extends(MH=x,OH=[Nt({context:Gs,subscribe:!0})],MH){constructor(){super(...arguments);a(this,Md);a(this,oS,n(nv,8,this)),n(nv,11,this);a(this,Od)}connectedCallback(){super.connectedCallback(),h(this,Od,new ResizeObserver(()=>{p(this,Md,av).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),o(this,Od)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&o(this,Od)?.observe(t),p(this,Md,av).call(this)}updated(){p(this,Md,av).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
|
|
7344
7329
|
<div part="list" role="tablist" data-orientation=${t}>
|
|
7345
7330
|
<slot></slot>
|
|
7346
7331
|
</div>
|
|
7347
|
-
`}};
|
|
7332
|
+
`}};nv=A(MH),oS=new WeakMap,Od=new WeakMap,Md=new WeakSet,av=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(d=>d.tagName==="DUI-TAB"&&d.getAttribute("value")===this._ctx?.value);if(l){let d=t.getBoundingClientRect(),m=l.getBoundingClientRect(),g=m.left-d.left,E=m.width;t.style.setProperty("--active-tab-left",`${g}px`),t.style.setProperty("--active-tab-width",`${E}px`)}},c(nv,4,"_ctx",OH,Dr,oS),T(nv,Dr),v(Dr,"tagName","dui-tabs-list"),v(Dr,"styles",[w,cq]);var pq=b`
|
|
7348
7333
|
:host {
|
|
7349
7334
|
display: block;
|
|
7350
7335
|
}
|
|
@@ -7368,7 +7353,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7368
7353
|
[part="tab"][data-disabled] {
|
|
7369
7354
|
cursor: not-allowed;
|
|
7370
7355
|
}
|
|
7371
|
-
`,NH,DH,HH,BH,Hr,rS,sS,iS,
|
|
7356
|
+
`,NH,DH,HH,BH,Hr,rS,sS,iS,lv,FH,dv,cv,No=class extends(BH=x,HH=[u()],DH=[u({type:Boolean,reflect:!0})],NH=[Nt({context:Gs,subscribe:!0})],BH){constructor(){super(...arguments);a(this,lv);a(this,rS,n(Hr,8,this,"")),n(Hr,11,this);a(this,sS,n(Hr,12,this,!1)),n(Hr,15,this);a(this,iS,n(Hr,16,this)),n(Hr,19,this);a(this,dv,()=>{this.disabled||this._ctx?.select(this.value)});a(this,cv,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=o(this,lv,FH);return f`
|
|
7372
7357
|
<button
|
|
7373
7358
|
part="tab"
|
|
7374
7359
|
role="tab"
|
|
@@ -7377,12 +7362,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
7377
7362
|
?data-disabled=${this.disabled}
|
|
7378
7363
|
?disabled=${this.disabled}
|
|
7379
7364
|
tabindex=${t?0:-1}
|
|
7380
|
-
@click=${o(this,
|
|
7381
|
-
@keydown=${o(this,
|
|
7365
|
+
@click=${o(this,dv)}
|
|
7366
|
+
@keydown=${o(this,cv)}
|
|
7382
7367
|
>
|
|
7383
7368
|
<slot></slot>
|
|
7384
7369
|
</button>
|
|
7385
|
-
`}};Hr=A(BH),rS=new WeakMap,sS=new WeakMap,iS=new WeakMap,
|
|
7370
|
+
`}};Hr=A(BH),rS=new WeakMap,sS=new WeakMap,iS=new WeakMap,lv=new WeakSet,FH=function(){return this._ctx?.value===this.value},dv=new WeakMap,cv=new WeakMap,c(Hr,4,"value",HH,No,rS),c(Hr,4,"disabled",DH,No,sS),c(Hr,4,"_ctx",NH,No,iS),T(Hr,No),v(No,"tagName","dui-tab"),v(No,"styles",[w,pq]);var hq=b`
|
|
7386
7371
|
:host {
|
|
7387
7372
|
display: block;
|
|
7388
7373
|
}
|
|
@@ -7403,7 +7388,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7403
7388
|
<div class="wrapper" ?hidden=${!t}>
|
|
7404
7389
|
${t||this.keepMounted?f`<div part="panel" role="tabpanel" tabindex="0"><slot></slot></div>`:L}
|
|
7405
7390
|
</div>
|
|
7406
|
-
`}};Br=A(qH),nS=new WeakMap,aS=new WeakMap,lS=new WeakMap,th=new WeakSet,dS=function(){return this._ctx?.value===this.value},c(Br,4,"value",UH,Do,nS),c(Br,4,"keepMounted",PH,Do,aS),c(Br,4,"_ctx",VH,Do,lS),T(Br,Do),v(Do,"tagName","dui-tabs-panel"),v(Do,"styles",[w,
|
|
7391
|
+
`}};Br=A(qH),nS=new WeakMap,aS=new WeakMap,lS=new WeakMap,th=new WeakSet,dS=function(){return this._ctx?.value===this.value},c(Br,4,"value",UH,Do,nS),c(Br,4,"keepMounted",PH,Do,aS),c(Br,4,"_ctx",VH,Do,lS),T(Br,Do),v(Do,"tagName","dui-tabs-panel"),v(Do,"styles",[w,hq]);var uq=b`
|
|
7407
7392
|
:host {
|
|
7408
7393
|
display: block;
|
|
7409
7394
|
position: absolute;
|
|
@@ -7415,7 +7400,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7415
7400
|
pointer-events: none;
|
|
7416
7401
|
transition-property: translate, width;
|
|
7417
7402
|
}
|
|
7418
|
-
`,Nd=class extends x{static tagName="dui-tabs-indicator";static styles=[w,
|
|
7403
|
+
`,Nd=class extends x{static tagName="dui-tabs-indicator";static styles=[w,uq];render(){return f`<span part="indicator"></span>`}};var mq=k`
|
|
7419
7404
|
[part="tab"] {
|
|
7420
7405
|
color: var(--text-2);
|
|
7421
7406
|
font-size: var(--text-sm); line-height: var(--line-height-snug);
|
|
@@ -7447,7 +7432,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7447
7432
|
[part="tab"][data-disabled] {
|
|
7448
7433
|
opacity: 0.4;
|
|
7449
7434
|
}
|
|
7450
|
-
`,Dd=class extends No{static styles=[...No.styles,
|
|
7435
|
+
`,Dd=class extends No{static styles=[...No.styles,mq]};customElements.define(Dd.tagName,Dd);var fq=k``,Hd=class extends eo{static styles=[...eo.styles,fq]};customElements.define(Hd.tagName,Hd);var gq=k`
|
|
7451
7436
|
:host {
|
|
7452
7437
|
--tabs-indicator-height: var(--component-height-xs);
|
|
7453
7438
|
--tabs-indicator-radius: var(--radius-sm);
|
|
@@ -7461,7 +7446,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7461
7446
|
transition-duration: var(--tabs-indicator-duration);
|
|
7462
7447
|
transition-timing-function: var(--tabs-indicator-easing);
|
|
7463
7448
|
}
|
|
7464
|
-
`,Bd=class extends Nd{static styles=[...Nd.styles,
|
|
7449
|
+
`,Bd=class extends Nd{static styles=[...Nd.styles,gq]};customElements.define(Bd.tagName,Bd);var vq=k`
|
|
7465
7450
|
:host {
|
|
7466
7451
|
--tabs-list-justify: start;
|
|
7467
7452
|
}
|
|
@@ -7477,7 +7462,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7477
7462
|
padding-inline: 0;
|
|
7478
7463
|
padding-block: var(--space-1);
|
|
7479
7464
|
}
|
|
7480
|
-
`,Fd=class extends Dr{static styles=[...Dr.styles,
|
|
7465
|
+
`,Fd=class extends Dr{static styles=[...Dr.styles,vq]};customElements.define(Fd.tagName,Fd);var bq=k`
|
|
7481
7466
|
:host {
|
|
7482
7467
|
--tabs-panel-padding: var(--space-3);
|
|
7483
7468
|
--tabs-panel-border-width: var(--border-width-thin);
|
|
@@ -7511,7 +7496,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7511
7496
|
var(--focus-ring-color);
|
|
7512
7497
|
border-radius: var(--radius-md);
|
|
7513
7498
|
}
|
|
7514
|
-
`,Vd=class extends Do{static styles=[...Do.styles,
|
|
7499
|
+
`,Vd=class extends Do{static styles=[...Do.styles,bq]};customElements.define(Vd.tagName,Vd);var wS=M("textarea-change",{bubbles:!0,composed:!0}),xq=b`
|
|
7515
7500
|
:host {
|
|
7516
7501
|
display: block;
|
|
7517
7502
|
}
|
|
@@ -7549,7 +7534,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7549
7534
|
[part="textarea"]:disabled {
|
|
7550
7535
|
cursor: not-allowed;
|
|
7551
7536
|
}
|
|
7552
|
-
`,jH,KH,WH,YH,GH,XH,JH,QH,ZH,tB,eB,oB,xn,ht,cS,pS,hS,uS,mS,fS,gS,vS,bS,xS,yS,
|
|
7537
|
+
`,jH,KH,WH,YH,GH,XH,JH,QH,ZH,tB,eB,oB,xn,ht,cS,pS,hS,uS,mS,fS,gS,vS,bS,xS,yS,pv,rB,hv,te=class extends(oB=x,eB=[u()],tB=[u()],ZH=[u({type:Boolean,reflect:!0})],QH=[u({type:Boolean})],JH=[u({type:Boolean})],XH=[u({type:Number})],GH=[u({type:Number,attribute:"minlength"})],YH=[u({type:Number,attribute:"maxlength"})],WH=[u()],KH=[u()],jH=[u({attribute:"max-height"})],oB){constructor(){super();a(this,pv);a(this,xn);a(this,cS,n(ht,8,this,"")),n(ht,11,this);a(this,pS,n(ht,12,this,"")),n(ht,15,this);a(this,hS,n(ht,16,this,!1)),n(ht,19,this);a(this,uS,n(ht,20,this,!1)),n(ht,23,this);a(this,mS,n(ht,24,this,!1)),n(ht,27,this);a(this,fS,n(ht,28,this)),n(ht,31,this);a(this,gS,n(ht,32,this)),n(ht,35,this);a(this,vS,n(ht,36,this)),n(ht,39,this);a(this,bS,n(ht,40,this,"")),n(ht,43,this);a(this,xS,n(ht,44,this,"vertical")),n(ht,47,this);a(this,yS,n(ht,48,this)),n(ht,51,this);a(this,hv,t=>{let e=t.target;this.value=e.value,o(this,xn).setFormValue(this.value),this.dispatchEvent(wS({value:this.value}))});h(this,xn,this.attachInternals())}willUpdate(){o(this,xn).setFormValue(this.value)}updated(){p(this,pv,rB).call(this)}render(){let t=Ga({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
|
|
7553
7538
|
<textarea
|
|
7554
7539
|
part="textarea"
|
|
7555
7540
|
style=${t}
|
|
@@ -7563,9 +7548,9 @@ label, legend, caption, figcaption, th, td {
|
|
|
7563
7548
|
maxlength=${this.maxLength??""}
|
|
7564
7549
|
name=${this.name}
|
|
7565
7550
|
data-resize=${this.resize}
|
|
7566
|
-
@input=${o(this,
|
|
7551
|
+
@input=${o(this,hv)}
|
|
7567
7552
|
></textarea>
|
|
7568
|
-
`}};ht=A(oB),xn=new WeakMap,cS=new WeakMap,pS=new WeakMap,hS=new WeakMap,uS=new WeakMap,mS=new WeakMap,fS=new WeakMap,gS=new WeakMap,vS=new WeakMap,bS=new WeakMap,xS=new WeakMap,yS=new WeakMap,
|
|
7553
|
+
`}};ht=A(oB),xn=new WeakMap,cS=new WeakMap,pS=new WeakMap,hS=new WeakMap,uS=new WeakMap,mS=new WeakMap,fS=new WeakMap,gS=new WeakMap,vS=new WeakMap,bS=new WeakMap,xS=new WeakMap,yS=new WeakMap,pv=new WeakSet,rB=function(){let t=this.shadowRoot?.querySelector("textarea");t&&o(this,xn).setValidity(t.validity,t.validationMessage,t)},hv=new WeakMap,c(ht,4,"value",eB,te,cS),c(ht,4,"placeholder",tB,te,pS),c(ht,4,"disabled",ZH,te,hS),c(ht,4,"required",QH,te,uS),c(ht,4,"readonly",JH,te,mS),c(ht,4,"rows",XH,te,fS),c(ht,4,"minLength",GH,te,gS),c(ht,4,"maxLength",YH,te,vS),c(ht,4,"name",WH,te,bS),c(ht,4,"resize",KH,te,xS),c(ht,4,"maxHeight",jH,te,yS),T(ht,te),v(te,"tagName","dui-textarea"),v(te,"formAssociated",!0),v(te,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(te,"styles",[w,xq]);var yq=k`
|
|
7569
7554
|
:host {
|
|
7570
7555
|
--font-size: var(--text-sm);
|
|
7571
7556
|
}
|
|
@@ -7640,7 +7625,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7640
7625
|
:host([variant="ghost"]) [part="textarea"]:focus-visible {
|
|
7641
7626
|
box-shadow: none;
|
|
7642
7627
|
}
|
|
7643
|
-
`,Pd=class extends te{static styles=[...te.styles,
|
|
7628
|
+
`,Pd=class extends te{static styles=[...te.styles,yq]};customElements.define(Pd.tagName,Pd);var wq={attribute:!0,type:String,converter:vc,reflect:!1,hasChanged:Sh},kq=(i=wq,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function kS(i){return(r,t)=>typeof t=="object"?kq(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}var mv=Symbol("dui-toast-region"),Ud=Symbol("dui-toast");function sB(i){if(!i)return;let r=i.trim();if(r===""||r.toLowerCase()==="none")return;let t={alt:!1,ctrl:!1,shift:!1,meta:!1,key:""};for(let e of r.split("+")){let s=e.trim(),l=s.toLowerCase();l==="alt"||l==="option"?t.alt=!0:l==="ctrl"||l==="control"?t.ctrl=!0:l==="shift"?t.shift=!0:l==="meta"||l==="cmd"||l==="command"?t.meta=!0:t.key=s.toLowerCase()}return t.key?t:void 0}function Eq(i,r){return i.altKey===r.alt&&i.ctrlKey===r.ctrl&&i.shiftKey===r.shift&&i.metaKey===r.meta&&i.key.toLowerCase()===r.key}var MS=M("toast-dismiss",{bubbles:!0,composed:!0}),Cq=b`
|
|
7644
7629
|
:host {
|
|
7645
7630
|
/* Region is a fixed overlay; toasts re-enable pointer events. */
|
|
7646
7631
|
position: fixed;
|
|
@@ -7694,14 +7679,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
7694
7679
|
:host([data-position^="top-"]) [part="list"] {
|
|
7695
7680
|
flex-direction: column-reverse;
|
|
7696
7681
|
}
|
|
7697
|
-
`,iB,nB,aB,lB,dB,cB,pB,hB,uB,mB,fB,
|
|
7682
|
+
`,iB,nB,aB,lB,dB,cB,pB,hB,uB,mB,fB,kt,ES,CS,$S,TS,SS,AS,_S,RS,we,Xs,Js,kn,En,IS,LS,fv,gB,Z,Cn,$n,qd,jd,yn,wn,eh,oh,rh,sh,ih,xv,yv,vB,OS,nh,ah,bB,gv,vv,wv,zS,bv,xB,ee=class extends(fB=x,mB=[u({type:String,reflect:!0})],uB=[u({type:Number,attribute:"max-visible"})],hB=[u({type:String,attribute:"label"})],pB=[u({type:Boolean,attribute:"expand-on-hover"})],cB=[u({type:Boolean,reflect:!0})],dB=[u({type:String,attribute:"swipe-directions"})],lB=[u({type:Number,attribute:"swipe-threshold"})],aB=[u({type:String})],nB=[C()],iB=[lt({context:mv}),C()],fB){constructor(){super(...arguments);a(this,Z);a(this,ES,n(kt,8,this,"bottom-right")),n(kt,11,this);a(this,CS,n(kt,12,this,3)),n(kt,15,this);a(this,$S,n(kt,16,this,"Notifications")),n(kt,19,this);a(this,TS,n(kt,20,this,!0)),n(kt,23,this);a(this,SS,n(kt,24,this)),n(kt,27,this);a(this,AS,n(kt,28,this)),n(kt,31,this);a(this,_S,n(kt,32,this,50)),n(kt,35,this);a(this,RS,n(kt,36,this,"Alt+T")),n(kt,39,this);a(this,we,new Map);a(this,Xs,new WeakMap);a(this,Js);a(this,kn);a(this,En);a(this,IS,n(kt,40,this,!1)),n(kt,43,this);a(this,Cn,!1);a(this,$n,!1);a(this,qd,!1);a(this,jd,!1);a(this,eh,()=>{h(this,Cn,!0),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,oh,()=>{h(this,Cn,!1),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,rh,()=>{h(this,$n,!0),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,sh,t=>{let e=t.relatedTarget;e&&this.contains(e)||(h(this,$n,!1),p(this,Z,yn).call(this),p(this,Z,wn).call(this))});a(this,ih,()=>{h(this,qd,document.hidden),p(this,Z,yn).call(this)});a(this,xv,(t,e)=>{o(this,we).has(t)||(o(this,we).set(t,e),p(this,Z,bB).call(this,e),o(this,Js)?.observe(e),o(this,Xs).set(e,e.getBoundingClientRect().height),p(this,Z,gv).call(this),p(this,Z,vv).call(this))});a(this,yv,t=>{let e=o(this,we).get(t);if(!e)return;let s=document.activeElement,l=s instanceof HTMLElement&&(s===e||e.contains(s)),d=l?[...o(this,we).values()].indexOf(e):-1;if(o(this,Js)?.unobserve(e),o(this,Xs).delete(e),o(this,we).delete(t),p(this,Z,gv).call(this),p(this,Z,vv).call(this),l){let m=[...o(this,we).values()];m.length>0?(m[d]??m[d-1]??m[0]).focus():o(this,kn)&&p(this,Z,OS).call(this)}});a(this,nh,t=>{o(this,En)&&Eq(t,o(this,En))&&o(this,we).size!==0&&(t.preventDefault(),p(this,Z,vB).call(this))});a(this,ah,t=>{let e=document.activeElement;if(!(e instanceof HTMLElement))return;let s=[...o(this,we).values()],l=s.findIndex(m=>m===e||m.contains(e));if(l===-1)return;let d=this.position.startsWith("top-");switch(t.key){case"ArrowDown":{t.preventDefault();let m=d?l-1:l+1;s[m]?.focus();break}case"ArrowUp":{t.preventDefault();let m=d?l+1:l-1;s[m]?.focus();break}case"Home":{t.preventDefault(),(d?s[s.length-1]:s[0])?.focus();break}case"End":{t.preventDefault(),(d?s[0]:s[s.length-1])?.focus();break}case"Escape":{t.preventDefault(),p(this,Z,OS).call(this);break}}});a(this,wv,(t,e)=>{let s=o(this,we).get(t);s&&(this.dispatchEvent(MS({id:t,reason:e})),s.dispatchEvent(new CustomEvent("dui-toast-request-dismiss",{detail:{reason:e}})))});a(this,zS,n(kt,44,this,p(this,Z,bv).call(this))),n(kt,47,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.label),this.setAttribute("data-position",this.position),h(this,En,sB(this.hotkey)),this.addEventListener("pointerenter",o(this,eh)),this.addEventListener("pointerleave",o(this,oh)),this.addEventListener("focusin",o(this,rh)),this.addEventListener("focusout",o(this,sh)),this.addEventListener("keydown",o(this,ah)),document.addEventListener("visibilitychange",o(this,ih)),document.addEventListener("keydown",o(this,nh)),h(this,qd,document.hidden),p(this,Z,yn).call(this),p(this,Z,wn).call(this),h(this,Js,new ResizeObserver(t=>{let e=!1;for(let s of t){let l=s.target,d=s.contentRect.height;o(this,Xs).get(l)!==d&&(o(this,Xs).set(l,d),e=!0)}e&&p(this,Z,vv).call(this)})),this._ctx=p(this,Z,bv).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,eh)),this.removeEventListener("pointerleave",o(this,oh)),this.removeEventListener("focusin",o(this,rh)),this.removeEventListener("focusout",o(this,sh)),this.removeEventListener("keydown",o(this,ah)),document.removeEventListener("visibilitychange",o(this,ih)),document.removeEventListener("keydown",o(this,nh)),o(this,Js)?.disconnect(),h(this,Js,void 0)}willUpdate(t){if(t.has("position")){this.setAttribute("data-position",this.position);for(let e of o(this,we).values())e.setAttribute("data-position",this.position)}t.has("label")&&this.setAttribute("aria-label",this.label),t.has("maxVisible")&&p(this,Z,gv).call(this),(t.has("expanded")||t.has("expandOnHover"))&&p(this,Z,wn).call(this),t.has("hotkey")&&h(this,En,sB(this.hotkey)),this._ctx=p(this,Z,bv).call(this)}render(){return f`
|
|
7698
7683
|
<div
|
|
7699
7684
|
part="list"
|
|
7700
|
-
?data-paused=${o(this,Z,
|
|
7685
|
+
?data-paused=${o(this,Z,fv)}
|
|
7701
7686
|
>
|
|
7702
7687
|
<slot></slot>
|
|
7703
7688
|
</div>
|
|
7704
|
-
`}};
|
|
7689
|
+
`}};kt=A(fB),ES=new WeakMap,CS=new WeakMap,$S=new WeakMap,TS=new WeakMap,SS=new WeakMap,AS=new WeakMap,_S=new WeakMap,RS=new WeakMap,we=new WeakMap,Xs=new WeakMap,Js=new WeakMap,kn=new WeakMap,En=new WeakMap,IS=new WeakMap,Z=new WeakSet,Cn=new WeakMap,$n=new WeakMap,qd=new WeakMap,jd=new WeakMap,yn=function(){let t=o(this,Cn)||o(this,$n)||o(this,qd);t!==o(this,Z,fv)&&h(this,Z,t,gB)},wn=function(){let t;if(this.expanded!==void 0?t=this.expanded:this.expandOnHover?t=o(this,Cn)||o(this,$n):t=!1,t!==o(this,jd)){h(this,jd,t),t?this.setAttribute("data-expanded",""):this.removeAttribute("data-expanded");for(let e of o(this,we).values())t?e.setAttribute("data-region-expanded",""):e.removeAttribute("data-region-expanded")}},eh=new WeakMap,oh=new WeakMap,rh=new WeakMap,sh=new WeakMap,ih=new WeakMap,xv=new WeakMap,yv=new WeakMap,vB=function(){let t=[...o(this,we).values()];if(t.length===0)return!1;let e=t[t.length-1],s=document.activeElement;return s instanceof HTMLElement&&!this.contains(s)&&s!==document.body&&h(this,kn,s),e.focus(),!0},OS=function(){let t=o(this,kn);h(this,kn,void 0),t&&t.isConnected?t.focus():document.activeElement instanceof HTMLElement&&this.contains(document.activeElement)&&document.activeElement.blur()},nh=new WeakMap,ah=new WeakMap,bB=function(t){t.setAttribute("data-position",this.position),o(this,jd)&&t.setAttribute("data-region-expanded","")},gv=function(){let t=[...o(this,we).values()],e=t.length;for(let l=0;l<e;l++){let d=e-1-l,m=t[l];m.style.setProperty("--toast-index",String(d)),m.style.setProperty("--toasts-total",String(e)),d===0?m.setAttribute("data-front",""):m.removeAttribute("data-front"),d>=this.maxVisible?m.setAttribute("data-overflow",""):m.removeAttribute("data-overflow")}let s=Math.max(0,e-this.maxVisible);this.style.setProperty("--toasts-overflow-count",String(s)),s>0?this.setAttribute("data-overflow-count",String(s)):this.removeAttribute("data-overflow-count")},vv=function(){let t=[...o(this,we).values()],e=0;for(let s=t.length-1;s>=0;s--){let l=t[s];l.style.setProperty("--toasts-before-height",`${e}px`);let d=o(this,Xs).get(l)??0;l.style.setProperty("--toast-height",`${d}px`),e+=d}this.style.setProperty("--toasts-stack-height",`${e}px`)},wv=new WeakMap,zS=new WeakMap,bv=function(){return{position:this.position,maxVisible:this.maxVisible,paused:o(this,Z,fv),swipeDirections:p(this,Z,xB).call(this),swipeThreshold:this.swipeThreshold,registerToast:o(this,xv),unregisterToast:o(this,yv),dismiss:o(this,wv)}},xB=function(){let t=this.swipeDirections;if(t==="none")return[];if(t&&t.trim().length>0){let e=[];for(let s of t.split(",")){let l=s.trim();(l==="left"||l==="right"||l==="up"||l==="down")&&e.push(l)}return e}switch(this.position){case"top-right":case"bottom-right":return["right"];case"top-left":case"bottom-left":return["left"];case"top-center":return["up"];case"bottom-center":return["down"]}},c(kt,4,"position",mB,ee,ES),c(kt,4,"maxVisible",uB,ee,CS),c(kt,4,"label",hB,ee,$S),c(kt,4,"expandOnHover",pB,ee,TS),c(kt,4,"expanded",cB,ee,SS),c(kt,4,"swipeDirections",dB,ee,AS),c(kt,4,"swipeThreshold",lB,ee,_S),c(kt,4,"hotkey",aB,ee,RS),LS=c(kt,20,"#paused",nB,Z,IS),fv=LS.get,gB=LS.set,c(kt,4,"_ctx",iB,ee,zS),T(kt,ee),v(ee,"tagName","dui-toast-region"),v(ee,"styles",[w,Cq]);var kv=class{#t;#e;#o=-1;#n=0;#d=0;#c=0;#a=0;#f=0;#g=0;#l;#s=!1;#m=!1;#p;constructor(r,t){this.#t=r,this.#e=t}attach(){this.#t.addEventListener("pointerdown",this.#w),this.#t.addEventListener("pointermove",this.#x),this.#t.addEventListener("pointerup",this.#k),this.#t.addEventListener("pointercancel",this.#v),this.#t.addEventListener("click",this.#r,{capture:!0}),this.#t.addEventListener("dragstart",this.#b)}detach(){this.#t.removeEventListener("pointerdown",this.#w),this.#t.removeEventListener("pointermove",this.#x),this.#t.removeEventListener("pointerup",this.#k),this.#t.removeEventListener("pointercancel",this.#v),this.#t.removeEventListener("click",this.#r,{capture:!0}),this.#t.removeEventListener("dragstart",this.#b),this.#p!==void 0&&(clearTimeout(this.#p),this.#p=void 0)}#h(r){return this.#e.getDirections().includes(r)}#w=r=>{r.button!==0&&r.pointerType==="mouse"||this.#e.getDirections().length!==0&&(this.#C(r.target)||(this.#o=r.pointerId,this.#n=this.#a=r.clientX,this.#d=this.#f=r.clientY,this.#c=this.#g=r.timeStamp,this.#l=void 0,this.#s=!1))};#x=r=>{if(r.pointerId!==this.#o)return;let t=r.clientX-this.#n,e=r.clientY-this.#d;if(!this.#s){if(Math.hypot(t,e)<6)return;if(Math.abs(t)>=Math.abs(e)){let g=t>0?"right":"left";if(!this.#h(g)){this.#i();return}this.#l="x"}else{let g=e>0?"down":"up";if(!this.#h(g)){this.#i();return}this.#l="y"}this.#s=!0,this.#t.setAttribute("data-swipe","start");try{this.#t.setPointerCapture(r.pointerId)}catch{}}let s=this.#l==="x"?this.#y(t):0,l=this.#l==="y"?this.#E(e):0;this.#t.style.setProperty("--swipe-amount-x",`${s}px`),this.#t.style.setProperty("--swipe-amount-y",`${l}px`),this.#t.setAttribute("data-swipe","move"),this.#a=r.clientX,this.#f=r.clientY,this.#g=r.timeStamp};#k=r=>{if(r.pointerId!==this.#o||(this.#o=-1,!this.#s))return;let t=r.clientX-this.#n,e=r.clientY-this.#d,s=Math.max(r.timeStamp-this.#c,1),l=this.#l==="x"?Math.abs(t):Math.abs(e),d=l/s*1e3,m=this.#e.getThreshold(),g=l>=m||d>=600;this.#m=!0,queueMicrotask(()=>{this.#m=!1}),g?(this.#t.setAttribute("data-swipe","end"),this.#e.onDismiss("swipe")):(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0};#v=r=>{r.pointerId===this.#o&&(this.#o=-1,this.#s&&(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0)};#r=r=>{this.#m&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation())};#b=r=>{(this.#o!==-1||this.#s)&&r.preventDefault()};#i(){this.#o=-1,this.#s=!1,this.#l=void 0}#u(){this.#p!==void 0&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.#t.removeAttribute("data-swipe"),this.#t.style.removeProperty("--swipe-amount-x"),this.#t.style.removeProperty("--swipe-amount-y"),this.#p=void 0},350)}#y(r){let t=this.#h("left"),e=this.#h("right");return r<0&&!t||r>0&&!e?0:r}#E(r){let t=this.#h("up"),e=this.#h("down");return r<0&&!t||r>0&&!e?0:r}#C(r){return r instanceof Element?!!(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement||r.isContentEditable):!1}};var dh=M("open-change",{bubbles:!0,composed:!0}),Av=M("dismiss",{bubbles:!0,composed:!0}),$q=b`
|
|
7705
7690
|
:host {
|
|
7706
7691
|
display: block;
|
|
7707
7692
|
box-sizing: border-box;
|
|
@@ -7712,7 +7697,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7712
7697
|
:host([data-state="closed"]) {
|
|
7713
7698
|
display: none;
|
|
7714
7699
|
}
|
|
7715
|
-
`,
|
|
7700
|
+
`,Tq=b`
|
|
7716
7701
|
[part="root"] {
|
|
7717
7702
|
box-sizing: border-box;
|
|
7718
7703
|
transition-property: opacity, transform;
|
|
@@ -7757,7 +7742,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7757
7742
|
[part="description"]:empty {
|
|
7758
7743
|
display: none;
|
|
7759
7744
|
}
|
|
7760
|
-
`,yB,wB,kB,EB,CB,$B,TB,SB,AB,_B,RB,IB,LB,zB,OB,tt,NS,DS,HS,BS,FS,VS,PS,US,qS,MB,
|
|
7745
|
+
`,yB,wB,kB,EB,CB,$B,TB,SB,AB,_B,RB,IB,LB,zB,OB,tt,NS,DS,HS,BS,FS,VS,PS,US,qS,MB,Ev,z,jS,KS,fs,Cv,WS,YS,NB,oA,GS,XS,DB,$v,JS,QS,HB,BB,ZS,tA,FB,VB,Wd,ch,ph,Fr,hh,Tn,vs,Vr,Yd,Qs,Pr,uh,rA,Tv,sA,Kd,Sv,PB,gs,iA,nA,aA,UB,qB,lh,mh,fh,gh,_v,Rv,Iv,eA,lA,re=class extends(OB=x,zB=[u({type:Boolean,reflect:!0})],LB=[u({type:Boolean,attribute:"default-open"})],IB=[u({type:Number})],RB=[u({type:String,reflect:!0})],_B=[u({type:String})],AB=[u({type:String,attribute:"toast-id",reflect:!0})],SB=[u({type:Boolean,reflect:!0})],TB=[C()],$B=[C()],CB=[C()],EB=[C()],kB=[C()],wB=[C()],yB=[lt({context:Ud}),C()],OB){constructor(){super(...arguments);a(this,z);a(this,NS,n(tt,8,this)),n(tt,11,this);a(this,DS,n(tt,12,this,!0)),n(tt,15,this);a(this,HS,n(tt,16,this,4e3)),n(tt,19,this);a(this,BS,n(tt,20,this,"default")),n(tt,23,this);a(this,FS,n(tt,24,this,"polite")),n(tt,27,this);a(this,VS,n(tt,28,this)),n(tt,31,this);a(this,PS,n(tt,32,this,!1)),n(tt,35,this);a(this,US,n(tt,36,this,!1)),n(tt,39,this);a(this,jS,n(tt,40,this,"closed")),n(tt,43,this);a(this,WS,n(tt,44,this,!1)),n(tt,47,this);a(this,GS,n(tt,48,this,!1)),n(tt,51,this);a(this,JS,n(tt,52,this,!1)),n(tt,55,this);a(this,ZS,n(tt,56,this,!1)),n(tt,59,this);a(this,Wd,crypto.randomUUID().slice(0,8));a(this,ch,`dui-toast-title-${o(this,Wd)}`);a(this,ph,`dui-toast-desc-${o(this,Wd)}`);a(this,Fr);a(this,hh,0);a(this,Tn,0);a(this,vs,!1);a(this,Vr);a(this,Yd,!1);a(this,Qs,!1);a(this,Pr,new q(this,{context:mv,subscribe:!0}));a(this,uh,new kv(this,{getDirections:()=>o(this,Pr).value?.swipeDirections??[],getThreshold:()=>o(this,Pr).value?.swipeThreshold??50,onDismiss:t=>p(this,z,gs).call(this,t)}));a(this,mh,t=>{t.stopPropagation(),p(this,z,gs).call(this,t.detail?.reason??"programmatic")});a(this,fh,t=>{if(t.key!=="Delete"&&t.key!=="Backspace")return;let e=t.target;e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable||(t.preventDefault(),p(this,z,gs).call(this,"keyboard")))});a(this,gh,t=>{let e=t.composedPath();for(let s of e){if(s===this)break;if(s instanceof Element&&s.hasAttribute("data-toast-dismiss")){let l=s.getAttribute("data-toast-dismiss-reason")??"close";p(this,z,gs).call(this,l);return}}});a(this,_v,t=>{let e=t.target;h(this,z,e.assignedNodes({flatten:!0}).length>0,BB)});a(this,Rv,t=>{let e=t.target;h(this,z,e.assignedNodes({flatten:!0}).length>0,VB)});a(this,Iv,t=>{p(this,z,gs).call(this,t)});a(this,eA,n(tt,60,this,p(this,z,lA).call(this))),n(tt,63,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,z,!0,Ev),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.addEventListener("dui-toast-request-dismiss",o(this,mh)),this.addEventListener("click",o(this,gh)),this.addEventListener("keydown",o(this,fh)),o(this,uh).attach()}disconnectedCallback(){super.disconnectedCallback(),p(this,z,lh).call(this),o(this,Vr)!==void 0&&(clearTimeout(o(this,Vr)),h(this,Vr,void 0)),p(this,z,Tv).call(this),this.removeEventListener("dui-toast-request-dismiss",o(this,mh)),this.removeEventListener("click",o(this,gh)),this.removeEventListener("keydown",o(this,fh)),o(this,uh).detach()}willUpdate(t){t.has("toastId")&&(this._itemCtx=p(this,z,lA).call(this)),this.setAttribute("data-state",o(this,z,fs))}updated(){let t=o(this,z,sA),e=o(this,Yd);if(h(this,Yd,t),o(this,z,fs)==="open"&&!o(this,Qs)&&o(this,Pr).value&&p(this,z,rA).call(this),!t&&e&&o(this,z,fs)==="open"){p(this,z,gs).call(this,"programmatic");return}if(t&&o(this,z,fs)==="closed"){p(this,z,PB).call(this);return}if(o(this,z,fs)==="open"&&!o(this,z,Sv)){let s=o(this,Pr).value?.paused??!1;s&&!o(this,vs)?p(this,z,UB).call(this):!s&&o(this,vs)&&p(this,z,qB).call(this)}}dismiss(t="programmatic"){p(this,z,gs).call(this,t)}resetTimer(){o(this,z,fs)==="open"&&(p(this,z,lh).call(this),p(this,z,nA).call(this))}render(){let t=this.priority==="assertive"?"alert":"status",e=this.priority;return f`
|
|
7761
7746
|
<div
|
|
7762
7747
|
part="root"
|
|
7763
7748
|
role=${t}
|
|
@@ -7773,13 +7758,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
7773
7758
|
<div part="title" id=${o(this,ch)}>
|
|
7774
7759
|
<slot
|
|
7775
7760
|
name="title"
|
|
7776
|
-
@slotchange=${o(this,
|
|
7761
|
+
@slotchange=${o(this,_v)}
|
|
7777
7762
|
></slot>
|
|
7778
7763
|
</div>
|
|
7779
7764
|
<div part="description" id=${o(this,ph)}>
|
|
7780
7765
|
<slot
|
|
7781
7766
|
name="description"
|
|
7782
|
-
@slotchange=${o(this,
|
|
7767
|
+
@slotchange=${o(this,Rv)}
|
|
7783
7768
|
></slot>
|
|
7784
7769
|
</div>
|
|
7785
7770
|
<slot></slot>
|
|
@@ -7787,23 +7772,23 @@ label, legend, caption, figcaption, th, td {
|
|
|
7787
7772
|
<slot name="close"></slot>
|
|
7788
7773
|
`}
|
|
7789
7774
|
</div>
|
|
7790
|
-
`}};tt=A(OB),NS=new WeakMap,DS=new WeakMap,HS=new WeakMap,BS=new WeakMap,FS=new WeakMap,VS=new WeakMap,PS=new WeakMap,US=new WeakMap,z=new WeakSet,jS=new WeakMap,WS=new WeakMap,GS=new WeakMap,JS=new WeakMap,ZS=new WeakMap,Wd=new WeakMap,ch=new WeakMap,ph=new WeakMap,Fr=new WeakMap,hh=new WeakMap,Tn=new WeakMap,vs=new WeakMap,Vr=new WeakMap,Yd=new WeakMap,Qs=new WeakMap,Pr=new WeakMap,uh=new WeakMap,rA=function(){if(o(this,Qs))return;let t=o(this,Pr).value;t&&(t.registerToast(o(this,z,Kd),this),h(this,Qs,!0))}
|
|
7775
|
+
`}};tt=A(OB),NS=new WeakMap,DS=new WeakMap,HS=new WeakMap,BS=new WeakMap,FS=new WeakMap,VS=new WeakMap,PS=new WeakMap,US=new WeakMap,z=new WeakSet,jS=new WeakMap,WS=new WeakMap,GS=new WeakMap,JS=new WeakMap,ZS=new WeakMap,Wd=new WeakMap,ch=new WeakMap,ph=new WeakMap,Fr=new WeakMap,hh=new WeakMap,Tn=new WeakMap,vs=new WeakMap,Vr=new WeakMap,Yd=new WeakMap,Qs=new WeakMap,Pr=new WeakMap,uh=new WeakMap,rA=function(){if(o(this,Qs))return;let t=o(this,Pr).value;t&&(t.registerToast(o(this,z,Kd),this),h(this,Qs,!0))},Tv=function(){o(this,Qs)&&(o(this,Pr).value?.unregisterToast(o(this,z,Kd)),h(this,Qs,!1))},sA=function(){return this.open??o(this,z,MB)},Kd=function(){return this.toastId??`dui-toast-${o(this,Wd)}`},Sv=function(){return this.type==="loading"||this.duration<=0},PB=async function(){p(this,z,rA).call(this),h(this,z,"open",Cv),h(this,z,!0,oA),h(this,z,!1,$v),this.requestUpdate(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,z,!1,oA),this.dispatchEvent(dh({open:!0})),p(this,z,nA).call(this)},gs=function(t){if(o(this,z,fs)==="closed"){if(!o(this,z,sA))return;this.open===void 0&&h(this,z,!1,Ev),h(this,Yd,!1),p(this,z,Tv).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Av({id:o(this,z,Kd),reason:t}));return}if(o(this,z,fs)!=="open")return;p(this,z,lh).call(this),h(this,z,"closing",Cv),h(this,z,!0,$v),this.requestUpdate();let e=this.shadowRoot?.querySelector('[part="root"]');if(!e){p(this,z,iA).call(this,t);return}let s=!1,l=()=>{s||(s=!0,e.removeEventListener("transitionend",d),o(this,Vr)!==void 0&&(clearTimeout(o(this,Vr)),h(this,Vr,void 0)),p(this,z,iA).call(this,t))},d=m=>{m.propertyName==="opacity"&&l()};e.addEventListener("transitionend",d),h(this,Vr,setTimeout(l,400))},iA=function(t){this.isConnected&&(h(this,z,"closed",Cv),h(this,z,!1,$v),this.open===void 0&&h(this,z,!1,Ev),p(this,z,Tv).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Av({id:o(this,z,Kd),reason:t})))},nA=function(){if(o(this,z,Sv))return;if(h(this,Tn,this.duration),o(this,Pr).value?.paused??!1){h(this,vs,!0);return}p(this,z,aA).call(this)},aA=function(){p(this,z,lh).call(this),h(this,hh,performance.now()),h(this,vs,!1),h(this,Fr,setTimeout(()=>{p(this,z,gs).call(this,"auto")},o(this,Tn)))},UB=function(){if(o(this,Fr)===void 0)return;clearTimeout(o(this,Fr)),h(this,Fr,void 0);let t=performance.now()-o(this,hh);h(this,Tn,Math.max(0,o(this,Tn)-t)),h(this,vs,!0)},qB=function(){o(this,z,Sv)||p(this,z,aA).call(this)},lh=function(){o(this,Fr)!==void 0&&(clearTimeout(o(this,Fr)),h(this,Fr,void 0)),h(this,vs,!1)},mh=new WeakMap,fh=new WeakMap,gh=new WeakMap,_v=new WeakMap,Rv=new WeakMap,Iv=new WeakMap,eA=new WeakMap,lA=function(){return{id:o(this,z,Kd),dismiss:o(this,Iv)}},c(tt,4,"open",zB,re,NS),c(tt,4,"defaultOpen",LB,re,DS),c(tt,4,"duration",IB,re,HS),c(tt,4,"type",RB,re,BS),c(tt,4,"priority",_B,re,FS),c(tt,4,"toastId",AB,re,VS),c(tt,4,"headless",SB,re,PS),qS=c(tt,20,"#internalOpen",TB,z,US),MB=qS.get,Ev=qS.set,KS=c(tt,20,"#state",$B,z,jS),fs=KS.get,Cv=KS.set,YS=c(tt,20,"#startingStyle",CB,z,WS),NB=YS.get,oA=YS.set,XS=c(tt,20,"#endingStyle",EB,z,GS),DB=XS.get,$v=XS.set,QS=c(tt,20,"#hasTitle",kB,z,JS),HB=QS.get,BB=QS.set,tA=c(tt,20,"#hasDescription",wB,z,ZS),FB=tA.get,VB=tA.set,c(tt,4,"_itemCtx",yB,re,eA),T(tt,re),v(re,"tagName","dui-toast"),v(re,"styles",[w,$q,Tq]);var Sq=b`
|
|
7791
7776
|
:host {
|
|
7792
7777
|
display: contents;
|
|
7793
7778
|
}
|
|
7794
|
-
`,Ur=class extends x{static tagName="dui-toast-action";static styles=[w,
|
|
7779
|
+
`,Ur=class extends x{static tagName="dui-toast-action";static styles=[w,Sq];#t=new q(this,{context:Ud,subscribe:!0});#e=()=>{this.#t.value?.dismiss("action")};render(){return f`
|
|
7795
7780
|
<span part="action" @click=${this.#e}>
|
|
7796
7781
|
<slot></slot>
|
|
7797
7782
|
</span>
|
|
7798
|
-
`}};var
|
|
7783
|
+
`}};var Aq=b`
|
|
7799
7784
|
:host {
|
|
7800
7785
|
display: contents;
|
|
7801
7786
|
}
|
|
7802
|
-
`,qr=class extends x{static tagName="dui-toast-close";static styles=[w,
|
|
7787
|
+
`,qr=class extends x{static tagName="dui-toast-close";static styles=[w,Aq];#t=new q(this,{context:Ud,subscribe:!0});#e=()=>{this.#t.value?.dismiss("close")};render(){return f`
|
|
7803
7788
|
<span part="close" @click=${this.#e}>
|
|
7804
7789
|
<slot></slot>
|
|
7805
7790
|
</span>
|
|
7806
|
-
`}};var
|
|
7791
|
+
`}};var _q={position:"bottom-right",defaultDuration:4e3,maxVisible:3,closeButton:!1,expandOnHover:!0,target:"body"},Ho={..._q},jr,vh=new Map,Rq=1,WB=()=>`toast-${Rq++}`;function YB(){let i=[[ee.tagName,ee],[re.tagName,re],[Ur.tagName,Ur],[qr.tagName,qr]];for(let[r,t]of i)customElements.get(r)||customElements.define(r,t)}function Iq(i){if(typeof i!="string")return i;let r=document.querySelector(i);if(!r)throw new Error(`[dui-toast] target selector "${i}" did not match any element.`);return r}function Lq(){if(YB(),Ho.region&&Ho.region.isConnected)return Ho.region;if(jr&&jr.isConnected)return jr;let i=document.createElement(ee.tagName);return i.position=Ho.position,i.maxVisible=Ho.maxVisible,i.expandOnHover=Ho.expandOnHover,i.setAttribute("data-auto-region",""),Iq(Ho.target).appendChild(i),jr=i,i}function Zs(i,r){for(let t of Array.from(i.children)){let e=t.getAttribute("slot");r===null?e===null&&t.remove():e===r&&t.remove()}}function jB(i,r,t){Zs(i,r);let e=document.createElement("span");e.setAttribute("slot",r),typeof t=="string"?e.textContent=t:e.appendChild(t),i.appendChild(e)}function zq(i,r){Zs(i,null),i.appendChild(r)}function Oq(i,r){if(Zs(i,"action"),!r)return;let t=document.createElement(Ur.tagName);t.setAttribute("slot","action");let e=document.createElement("button");e.type="button",e.textContent=r.label,r.onClick&&e.addEventListener("click",r.onClick),t.appendChild(e),i.appendChild(t)}function Mq(i,r){if(Zs(i,"close"),!r)return;let t=document.createElement(qr.tagName);t.setAttribute("slot","close");let e=document.createElement("button");e.type="button",e.setAttribute("aria-label","Dismiss"),e.textContent="\xD7",t.appendChild(e),i.appendChild(t)}function KB(i,r,t){i.type=t.type??"default",i.priority=t.priority??"polite",t.duration!==void 0?i.duration=t.duration:t.type==="loading"?i.duration=0:i.duration=Ho.defaultDuration,typeof r=="string"?(jB(i,"title",r),t.description!==void 0?jB(i,"description",t.description):Zs(i,"description"),Zs(i,null)):(zq(i,r),Zs(i,"title"),Zs(i,"description")),Oq(i,t.action),Mq(i,t.closeButton??Ho.closeButton)}function er(i,r={}){YB();let t=r.id??WB(),e=vh.get(t);if(e&&e.isConnected)return KB(e,i,r),e.resetTimer(),t;let s=document.createElement(re.tagName);return s.toastId=t,KB(s,i,r),s.addEventListener("dismiss",()=>{vh.delete(t),queueMicrotask(()=>{s.parentElement&&s.parentElement.removeChild(s)})}),vh.set(t,s),Lq().appendChild(s),t}function Nq(i,r){return er(i,r??{})}var Dq=(i,r)=>er(i,{...r,type:"success"}),Hq=(i,r)=>er(i,{...r,type:"error"}),Bq=(i,r)=>er(i,{...r,type:"warning"}),Fq=(i,r)=>er(i,{...r,type:"info"}),Vq=(i,r)=>er(i,{...r,type:"loading"}),Pq=(i,r)=>er(i,r??{}),Uq=(i,r,t)=>er(r,{...t,id:i}),qq=i=>{if(i===void 0){for(let t of vh.values())t.dismiss("programmatic");return}vh.get(i)?.dismiss("programmatic")},jq=(i,r,t)=>{let e=t?.id??WB();return er(r.loading,{...t,id:e,type:"loading"}),i.then(s=>{let l=typeof r.success=="function"?r.success(s):r.success;er(l,{...t,id:e,type:"success"})},s=>{let l=typeof r.error=="function"?r.error(s):r.error;er(l,{...t,id:e,type:"error"})}),e},Kq=i=>{Ho={...Ho,...i},jr&&jr.isConnected&&(i.position!==void 0&&(jr.position=i.position),i.maxVisible!==void 0&&(jr.maxVisible=i.maxVisible),i.expandOnHover!==void 0&&(jr.expandOnHover=i.expandOnHover))},Wq=()=>({...Ho}),Yq=()=>jr,dA=Object.assign(Nq,{success:Dq,error:Hq,warning:Bq,info:Fq,loading:Vq,custom:Pq,update:Uq,dismiss:qq,promise:jq,configure:Kq,getConfig:Wq,getAutoRegion:Yq});var Gq=k`
|
|
7807
7792
|
/* ── Region-scoped tokens ──
|
|
7808
7793
|
*
|
|
7809
7794
|
* Bump the default region width (primitive ships 22rem; 24rem reads
|
|
@@ -7978,7 +7963,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7978
7963
|
transition-duration: 0s;
|
|
7979
7964
|
}
|
|
7980
7965
|
}
|
|
7981
|
-
`,GB,XB,
|
|
7966
|
+
`,GB,XB,Lv,cA,ti,Bo,zv,pA,hA,bs=class extends(XB=ee,GB=[kS({type:String,reflect:!0})],XB){constructor(){super(...arguments);a(this,Bo);a(this,cA,n(Lv,8,this)),n(Lv,11,this);a(this,ti)}connectedCallback(){super.connectedCallback(),p(this,Bo,zv).call(this),this.theme==="inverted"&&p(this,Bo,pA).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Bo,hA).call(this)}willUpdate(t){super.willUpdate(t),t.has("theme")&&(p(this,Bo,zv).call(this),this.theme==="inverted"?p(this,Bo,pA).call(this):p(this,Bo,hA).call(this))}};Lv=A(XB),cA=new WeakMap,ti=new WeakMap,Bo=new WeakSet,zv=function(){if(!this.theme){this.removeAttribute("data-theme");return}if(this.theme==="inverted"){let e=document.documentElement.getAttribute("data-theme")==="dark"?"light":"dark";this.setAttribute("data-theme",e);return}this.setAttribute("data-theme",this.theme)},pA=function(){o(this,ti)||(h(this,ti,new MutationObserver(()=>p(this,Bo,zv).call(this))),o(this,ti).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}))},hA=function(){o(this,ti)?.disconnect(),h(this,ti,void 0)},c(Lv,4,"theme",GB,bs,cA),T(Lv,bs),v(bs,"styles",[...ee.styles,Gq]);customElements.define(bs.tagName,bs);var Xq=Zr`
|
|
7982
7967
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
7983
7968
|
<path
|
|
7984
7969
|
d="M3 8.5l3 3 6.5-7"
|
|
@@ -7989,7 +7974,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7989
7974
|
stroke-linejoin="round"
|
|
7990
7975
|
/>
|
|
7991
7976
|
</svg>
|
|
7992
|
-
`,
|
|
7977
|
+
`,Jq=Zr`
|
|
7993
7978
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
7994
7979
|
<path
|
|
7995
7980
|
d="M4 4l8 8M12 4l-8 8"
|
|
@@ -7999,7 +7984,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7999
7984
|
stroke-linecap="round"
|
|
8000
7985
|
/>
|
|
8001
7986
|
</svg>
|
|
8002
|
-
`,
|
|
7987
|
+
`,Qq=Zr`
|
|
8003
7988
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
8004
7989
|
<path
|
|
8005
7990
|
d="M8 1.5L14.5 13.5h-13z"
|
|
@@ -8017,7 +8002,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8017
8002
|
/>
|
|
8018
8003
|
<circle cx="8" cy="11.5" r="0.9" fill="currentColor" />
|
|
8019
8004
|
</svg>
|
|
8020
|
-
`,
|
|
8005
|
+
`,Zq=Zr`
|
|
8021
8006
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
8022
8007
|
<circle
|
|
8023
8008
|
cx="8"
|
|
@@ -8036,9 +8021,9 @@ label, legend, caption, figcaption, th, td {
|
|
|
8036
8021
|
/>
|
|
8037
8022
|
<circle cx="8" cy="4.7" r="0.9" fill="currentColor" />
|
|
8038
8023
|
</svg>
|
|
8039
|
-
`,
|
|
8024
|
+
`,t6=Zr`
|
|
8040
8025
|
<dui-spinner part="spinner" aria-hidden="true"></dui-spinner>
|
|
8041
|
-
`;function JB(i){switch(i){case"success":return
|
|
8026
|
+
`;function JB(i){switch(i){case"success":return Xq;case"error":return Jq;case"warning":return Qq;case"info":return Zq;case"loading":return t6;default:return null}}var e6=k`
|
|
8042
8027
|
/* ── Per-type color hook ──
|
|
8043
8028
|
*
|
|
8044
8029
|
* One CSS custom property the consumer can read/override; resolves per
|
|
@@ -8317,7 +8302,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8317
8302
|
transform: none;
|
|
8318
8303
|
}
|
|
8319
8304
|
}
|
|
8320
|
-
`,Gd=class extends re{static styles=[...re.styles,
|
|
8305
|
+
`,Gd=class extends re{static styles=[...re.styles,e6];render(){let r=this.priority==="assertive"?"alert":"status",t=this.priority;if(this.headless)return Zr`
|
|
8321
8306
|
<div
|
|
8322
8307
|
part="root"
|
|
8323
8308
|
role="${r}"
|
|
@@ -8362,7 +8347,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8362
8347
|
<slot name="close" @slotchange="${this.#m}"></slot>
|
|
8363
8348
|
</div>
|
|
8364
8349
|
</div>
|
|
8365
|
-
`}#t=crypto.randomUUID().slice(0,8);#e=!1;#o=!1;#n=!1;#d=!1;#c=!1;#a(r){return r.assignedNodes({flatten:!0}).some(t=>t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.TEXT_NODE&&(t.textContent?.trim().length??0)>0)}#f=r=>{let t=this.#a(r.target);t!==this.#e&&(this.#e=t,this.requestUpdate())};#g=r=>{let t=this.#a(r.target);t!==this.#o&&(this.#o=t,this.requestUpdate())};#l=r=>{let t=this.#a(r.target);t!==this.#n&&(this.#n=t,this.requestUpdate())};#s=r=>{let t=this.#a(r.target);t!==this.#d&&(this.#d=t,this.requestUpdate())};#m=r=>{let t=this.#a(r.target);t!==this.#c&&(this.#c=t,this.requestUpdate())}};customElements.define(Gd.tagName,Gd);var
|
|
8350
|
+
`}#t=crypto.randomUUID().slice(0,8);#e=!1;#o=!1;#n=!1;#d=!1;#c=!1;#a(r){return r.assignedNodes({flatten:!0}).some(t=>t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.TEXT_NODE&&(t.textContent?.trim().length??0)>0)}#f=r=>{let t=this.#a(r.target);t!==this.#e&&(this.#e=t,this.requestUpdate())};#g=r=>{let t=this.#a(r.target);t!==this.#o&&(this.#o=t,this.requestUpdate())};#l=r=>{let t=this.#a(r.target);t!==this.#n&&(this.#n=t,this.requestUpdate())};#s=r=>{let t=this.#a(r.target);t!==this.#d&&(this.#d=t,this.requestUpdate())};#m=r=>{let t=this.#a(r.target);t!==this.#c&&(this.#c=t,this.requestUpdate())}};customElements.define(Gd.tagName,Gd);var o6=k`
|
|
8366
8351
|
/* Style any slotted <button> uniformly — works for both the imperative
|
|
8367
8352
|
facade's auto-created <button>s and consumer-slotted ones. Native
|
|
8368
8353
|
::slotted() can't reach into shadow trees, but this targets light-DOM
|
|
@@ -8395,7 +8380,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8395
8380
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
8396
8381
|
outline-offset: var(--focus-ring-offset);
|
|
8397
8382
|
}
|
|
8398
|
-
`,Xd=class extends Ur{static styles=[...Ur.styles,
|
|
8383
|
+
`,Xd=class extends Ur{static styles=[...Ur.styles,o6]};customElements.define(Xd.tagName,Xd);var r6=k`
|
|
8399
8384
|
/* Style any slotted <button> as a small ghost-icon close affordance.
|
|
8400
8385
|
Hover-to-show behavior lives on the parent <dui-toast> (close-wrapper
|
|
8401
8386
|
part); this just renders the button itself. */
|
|
@@ -8428,7 +8413,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8428
8413
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
8429
8414
|
outline-offset: var(--focus-ring-offset);
|
|
8430
8415
|
}
|
|
8431
|
-
`,Jd=class extends qr{static styles=[...qr.styles,
|
|
8416
|
+
`,Jd=class extends qr{static styles=[...qr.styles,r6]};customElements.define(Jd.tagName,Jd);var Ov=Symbol("dui-toggle-group");var EA=M("pressed-change",{bubbles:!0,composed:!0}),s6=b`
|
|
8432
8417
|
:host {
|
|
8433
8418
|
display: inline-block;
|
|
8434
8419
|
}
|
|
@@ -8450,7 +8435,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8450
8435
|
[part="root"]:disabled {
|
|
8451
8436
|
cursor: not-allowed;
|
|
8452
8437
|
}
|
|
8453
|
-
`,QB,ZB,
|
|
8438
|
+
`,QB,ZB,tF,eF,oF,rF,sF,ue,uA,mA,fA,gA,vA,bA,iF,yA,yo,xA,wA,kA,Mv,Fe=class extends(sF=x,rF=[u({type:Boolean})],oF=[u({type:Boolean,attribute:"default-pressed"})],eF=[u({type:Boolean,reflect:!0})],tF=[u()],ZB=[C()],QB=[Nt({context:Ov,subscribe:!0}),C()],sF){constructor(){super(...arguments);a(this,yo);a(this,uA,n(ue,8,this)),n(ue,11,this);a(this,mA,n(ue,12,this,!1)),n(ue,15,this);a(this,fA,n(ue,16,this,!1)),n(ue,19,this);a(this,gA,n(ue,20,this)),n(ue,23,this);a(this,vA,n(ue,24,this,!1)),n(ue,27,this);a(this,xA,n(ue,28,this)),n(ue,31,this);a(this,Mv,()=>{if(o(this,yo,kA))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!o(this,yo,wA);this.pressed===void 0&&h(this,yo,t,yA),this.dispatchEvent(EA({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&h(this,yo,!0,yA)}render(){let t=o(this,yo,wA),e=o(this,yo,kA);return f`
|
|
8454
8439
|
<button
|
|
8455
8440
|
part="root"
|
|
8456
8441
|
type="button"
|
|
@@ -8458,12 +8443,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
8458
8443
|
?disabled="${e}"
|
|
8459
8444
|
?data-pressed="${t}"
|
|
8460
8445
|
?data-disabled="${e}"
|
|
8461
|
-
@click="${o(this,
|
|
8446
|
+
@click="${o(this,Mv)}"
|
|
8462
8447
|
>
|
|
8463
8448
|
<slot name="icon"></slot>
|
|
8464
8449
|
<slot></slot>
|
|
8465
8450
|
</button>
|
|
8466
|
-
`}};ue=A(
|
|
8451
|
+
`}};ue=A(sF),uA=new WeakMap,mA=new WeakMap,fA=new WeakMap,gA=new WeakMap,vA=new WeakMap,yo=new WeakSet,xA=new WeakMap,wA=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??o(this,yo,iF)},kA=function(){return this.disabled||(this._groupCtx?.disabled??!1)},Mv=new WeakMap,c(ue,4,"pressed",rF,Fe,uA),c(ue,4,"defaultPressed",oF,Fe,mA),c(ue,4,"disabled",eF,Fe,fA),c(ue,4,"value",tF,Fe,gA),bA=c(ue,20,"#internalPressed",ZB,yo,vA),iF=bA.get,yA=bA.set,c(ue,4,"_groupCtx",QB,Fe,xA),T(ue,Fe),v(Fe,"tagName","dui-toggle"),v(Fe,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Fe,"styles",[w,s6]);var MA=M("value-change",{bubbles:!0,composed:!0}),i6=b`
|
|
8467
8452
|
:host {
|
|
8468
8453
|
display: inline-flex;
|
|
8469
8454
|
}
|
|
@@ -8475,16 +8460,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
8475
8460
|
:host([orientation="vertical"]) [part="root"] {
|
|
8476
8461
|
flex-direction: column;
|
|
8477
8462
|
}
|
|
8478
|
-
`,
|
|
8463
|
+
`,nF,aF,lF,dF,cF,pF,hF,uF,mF,Bt,CA,$A,TA,SA,AA,_A,RA,IA,fF,zA,oo,OA,Dv,LA,Nv,Hv,Le=class extends(mF=x,uF=[u({type:Array})],hF=[u({type:Array,attribute:"default-value"})],pF=[u({reflect:!0})],cF=[u({reflect:!0})],dF=[u({type:Boolean,reflect:!0})],lF=[u({type:Boolean})],aF=[C()],nF=[lt({context:Ov}),C()],mF){constructor(){super(...arguments);a(this,oo);a(this,CA,n(Bt,8,this)),n(Bt,11,this);a(this,$A,n(Bt,12,this,[])),n(Bt,15,this);a(this,TA,n(Bt,16,this,"single")),n(Bt,19,this);a(this,SA,n(Bt,20,this,"horizontal")),n(Bt,23,this);a(this,AA,n(Bt,24,this,!1)),n(Bt,27,this);a(this,_A,n(Bt,28,this,!0)),n(Bt,31,this);a(this,RA,n(Bt,32,this,[])),n(Bt,35,this);a(this,Dv,t=>{if(this.disabled)return;let e=o(this,oo,OA),s;this.type==="single"?s=e.includes(t)?[]:[t]:s=e.includes(t)?e.filter(l=>l!==t):[...e,t],this.value===void 0&&h(this,oo,s,zA),this.dispatchEvent(MA({value:s}))});a(this,LA,n(Bt,36,this,p(this,oo,Nv).call(this))),n(Bt,39,this);a(this,Hv,t=>{let e=this.orientation==="horizontal",s=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";if(t.key!==s&&t.key!==l)return;t.preventDefault();let d=[...this.querySelectorAll("dui-toggle")],m=d.filter(_=>!_.hasAttribute("disabled"));if(m.length===0)return;let g=this.shadowRoot?.activeElement??document.activeElement,E=d.find(_=>_===g||_.shadowRoot?.activeElement===g||_.contains(g)),$=E?m.indexOf(E):-1,y;t.key===s?(y=$+1,y>=m.length&&(y=this.loop?0:m.length-1)):(y=$-1,y<0&&(y=this.loop?m.length-1:0)),m[y]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,oo,[...this.defaultValue],zA),this._ctx=p(this,oo,Nv).call(this)}willUpdate(){this._ctx=p(this,oo,Nv).call(this)}render(){return f`
|
|
8479
8464
|
<div
|
|
8480
8465
|
part="root"
|
|
8481
8466
|
role="group"
|
|
8482
8467
|
aria-orientation="${this.orientation}"
|
|
8483
|
-
@keydown="${o(this,
|
|
8468
|
+
@keydown="${o(this,Hv)}"
|
|
8484
8469
|
>
|
|
8485
8470
|
<slot></slot>
|
|
8486
8471
|
</div>
|
|
8487
|
-
`}};Bt=A(
|
|
8472
|
+
`}};Bt=A(mF),CA=new WeakMap,$A=new WeakMap,TA=new WeakMap,SA=new WeakMap,AA=new WeakMap,_A=new WeakMap,RA=new WeakMap,oo=new WeakSet,OA=function(){return this.value??o(this,oo,fF)},Dv=new WeakMap,LA=new WeakMap,Nv=function(){return{value:o(this,oo,OA),disabled:this.disabled,type:this.type,toggle:o(this,Dv)}},Hv=new WeakMap,c(Bt,4,"value",uF,Le,CA),c(Bt,4,"defaultValue",hF,Le,$A),c(Bt,4,"type",pF,Le,TA),c(Bt,4,"orientation",cF,Le,SA),c(Bt,4,"disabled",dF,Le,AA),c(Bt,4,"loop",lF,Le,_A),IA=c(Bt,20,"#internalValue",aF,oo,RA),fF=IA.get,zA=IA.set,c(Bt,4,"_ctx",nF,Le,LA),T(Bt,Le),v(Le,"tagName","dui-toggle-group"),v(Le,"styles",[w,i6]);var n6=k`
|
|
8488
8473
|
/* ---------------------------------------------------------------
|
|
8489
8474
|
* Sizes (swap dimensions)
|
|
8490
8475
|
* --------------------------------------------------------------- */
|
|
@@ -8579,12 +8564,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
8579
8564
|
[part="root"]:disabled {
|
|
8580
8565
|
opacity: 0.4;
|
|
8581
8566
|
}
|
|
8582
|
-
`,Qd=class extends Fe{static styles=[...Fe.styles,
|
|
8567
|
+
`,Qd=class extends Fe{static styles=[...Fe.styles,n6]};customElements.define(Qd.tagName,Qd);var a6=k`
|
|
8583
8568
|
[part="root"] {
|
|
8584
8569
|
gap: var(--space-1);
|
|
8585
8570
|
border-radius: var(--radius-md);
|
|
8586
8571
|
}
|
|
8587
|
-
`,Zd=class extends Le{static styles=[...Le.styles,
|
|
8572
|
+
`,Zd=class extends Le{static styles=[...Le.styles,a6]};customElements.define(Zd.tagName,Zd);var l6=b`
|
|
8588
8573
|
:host {
|
|
8589
8574
|
display: block;
|
|
8590
8575
|
}
|
|
@@ -8615,7 +8600,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8615
8600
|
display: flex;
|
|
8616
8601
|
align-items: center;
|
|
8617
8602
|
}
|
|
8618
|
-
`,
|
|
8603
|
+
`,gF,vF,bF,xF,Kr,NA,DA,HA,Fo=class extends(xF=x,bF=[u({type:Boolean,reflect:!0})],vF=[u({type:Boolean,reflect:!0,attribute:"has-button-left"})],gF=[u({type:Boolean,reflect:!0,attribute:"has-button-right"})],xF){constructor(){super(...arguments);a(this,NA,n(Kr,8,this,!1)),n(Kr,11,this);a(this,DA,n(Kr,12,this,!1)),n(Kr,15,this);a(this,HA,n(Kr,16,this,!1)),n(Kr,19,this)}render(){return f`
|
|
8619
8604
|
<nav part="root" role="toolbar">
|
|
8620
8605
|
<div part="left">
|
|
8621
8606
|
<slot name="left"></slot>
|
|
@@ -8627,7 +8612,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8627
8612
|
<slot name="right"></slot>
|
|
8628
8613
|
</div>
|
|
8629
8614
|
</nav>
|
|
8630
|
-
`}};Kr=A(
|
|
8615
|
+
`}};Kr=A(xF),NA=new WeakMap,DA=new WeakMap,HA=new WeakMap,c(Kr,4,"inset",bF,Fo,NA),c(Kr,4,"hasButtonLeft",vF,Fo,DA),c(Kr,4,"hasButtonRight",gF,Fo,HA),T(Kr,Fo),v(Fo,"tagName","dui-toolbar"),v(Fo,"styles",[w,l6]);var d6=k`
|
|
8631
8616
|
/* ── Root ── */
|
|
8632
8617
|
|
|
8633
8618
|
[part="root"] {
|
|
@@ -8656,15 +8641,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
8656
8641
|
[part="right"] {
|
|
8657
8642
|
gap: var(--space-2);
|
|
8658
8643
|
}
|
|
8659
|
-
`,tc=class extends Fo{static styles=[...Fo.styles,
|
|
8644
|
+
`,tc=class extends Fo{static styles=[...Fo.styles,d6]};customElements.define(tc.tagName,tc);var ec=Symbol("dui-tooltip");var Pv=M("open-change",{bubbles:!0,composed:!0}),c6=b`
|
|
8660
8645
|
:host {
|
|
8661
8646
|
display: contents;
|
|
8662
8647
|
}
|
|
8663
|
-
`,
|
|
8648
|
+
`,yF,wF,kF,EF,CF,$F,TF,SF,AF,_F,RF,Et,BA,FA,VA,PA,UA,qA,jA,KA,WA,Bv,Fv,Ct,YA,GA,JA,IF,Sn,An,Uv,qv,XA,Vv,LF,zF,QA,ZA,OF,ke=class extends(RF=x,_F=[u({type:Boolean,reflect:!0})],AF=[u({type:Boolean,attribute:"default-open"})],SF=[u({reflect:!0})],TF=[u({type:Number,attribute:"side-offset"})],$F=[u({type:Number})],CF=[u({type:Number,attribute:"close-delay"})],EF=[u({type:Boolean,reflect:!0})],kF=[C()],wF=[C()],yF=[lt({context:ec}),C()],RF){constructor(){super(...arguments);a(this,Ct);a(this,BA,n(Et,8,this,!1)),n(Et,11,this);a(this,FA,n(Et,12,this,!1)),n(Et,15,this);a(this,VA,n(Et,16,this,"top")),n(Et,19,this);a(this,PA,n(Et,20,this,6)),n(Et,23,this);a(this,UA,n(Et,24,this,500)),n(Et,27,this);a(this,qA,n(Et,28,this,0)),n(Et,31,this);a(this,jA,n(Et,32,this,!1)),n(Et,35,this);a(this,KA,n(Et,36,this,!1)),n(Et,39,this);a(this,YA,n(Et,40,this)),n(Et,43,this);a(this,Sn);a(this,An);a(this,Uv,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,qv,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);a(this,XA,n(Et,44,this,{open:!1,triggerId:o(this,Uv),popupId:o(this,qv),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>p(this,Ct,LF).call(this),closeTooltip:()=>p(this,Ct,zF).call(this),setTriggerEl:t=>p(this,Ct,OF).call(this,t)})),n(Et,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&h(this,Ct,!0,Fv)}disconnectedCallback(){super.disconnectedCallback(),p(this,Ct,Vv).call(this)}willUpdate(t){let e=this.open||o(this,Ct,Bv);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==e||this._ctx.triggerEl!==o(this,Ct,JA))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:o(this,Ct,JA)})}render(){return f`<slot></slot>`}};Et=A(RF),BA=new WeakMap,FA=new WeakMap,VA=new WeakMap,PA=new WeakMap,UA=new WeakMap,qA=new WeakMap,jA=new WeakMap,KA=new WeakMap,Ct=new WeakSet,YA=new WeakMap,Sn=new WeakMap,An=new WeakMap,Uv=new WeakMap,qv=new WeakMap,XA=new WeakMap,Vv=function(){o(this,Sn)&&(clearTimeout(o(this,Sn)),h(this,Sn,void 0)),o(this,An)&&(clearTimeout(o(this,An)),h(this,An,void 0))},LF=function(){this.disabled||(p(this,Ct,Vv).call(this),this.delay<=0?p(this,Ct,QA).call(this):h(this,Sn,setTimeout(()=>p(this,Ct,QA).call(this),this.delay)))},zF=function(){p(this,Ct,Vv).call(this),this.closeDelay<=0?p(this,Ct,ZA).call(this):h(this,An,setTimeout(()=>p(this,Ct,ZA).call(this),this.closeDelay))},QA=function(){o(this,Ct,Bv)||(h(this,Ct,!0,Fv),this.dispatchEvent(Pv({open:!0})))},ZA=function(){o(this,Ct,Bv)&&(h(this,Ct,!1,Fv),this.dispatchEvent(Pv({open:!1})))},OF=function(t){h(this,Ct,t,IF)},c(Et,4,"open",_F,ke,BA),c(Et,4,"defaultOpen",AF,ke,FA),c(Et,4,"side",SF,ke,VA),c(Et,4,"sideOffset",TF,ke,PA),c(Et,4,"delay",$F,ke,UA),c(Et,4,"closeDelay",CF,ke,qA),c(Et,4,"disabled",EF,ke,jA),WA=c(Et,20,"#internalOpen",kF,Ct,KA),Bv=WA.get,Fv=WA.set,GA=c(Et,20,"#triggerEl",wF,Ct,YA),JA=GA.get,IF=GA.set,c(Et,4,"_ctx",yF,ke,XA),T(Et,ke),v(ke,"tagName","dui-tooltip"),v(ke,"styles",[w,c6]);var p6=b`
|
|
8664
8649
|
:host {
|
|
8665
8650
|
display: contents;
|
|
8666
8651
|
}
|
|
8667
|
-
`,
|
|
8652
|
+
`,h6=b`
|
|
8668
8653
|
.Trigger {
|
|
8669
8654
|
display: inline-flex;
|
|
8670
8655
|
align-items: center;
|
|
@@ -8681,7 +8666,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8681
8666
|
.Trigger[data-disabled] {
|
|
8682
8667
|
cursor: not-allowed;
|
|
8683
8668
|
}
|
|
8684
|
-
`,
|
|
8669
|
+
`,MF,NF,jv,t_,ro,Wv,Yv,Gv,Xv,Jv,ys,e_,Kv,xs=class extends(NF=x,MF=[u({type:Boolean,reflect:!0})],NF){constructor(){super(...arguments);a(this,ys);a(this,t_,n(jv,8,this,!1)),n(jv,11,this);a(this,ro,new q(this,{context:ec,subscribe:!0}));a(this,Wv,()=>{o(this,ys,Kv)||(p(this,ys,e_).call(this),o(this,ro).value?.openTooltip())});a(this,Yv,()=>{o(this,ro).value?.closeTooltip()});a(this,Gv,()=>{o(this,ys,Kv)||(p(this,ys,e_).call(this),o(this,ro).value?.openTooltip())});a(this,Xv,()=>{o(this,ro).value?.closeTooltip()});a(this,Jv,t=>{t.key==="Escape"&&o(this,ro).value?.open&&o(this,ro).value?.closeTooltip()})}render(){let t=o(this,ro).value?.open??!1,e=o(this,ro).value?.popupId??"",s=o(this,ro).value?.triggerId??"";return f`
|
|
8685
8670
|
<span
|
|
8686
8671
|
class="Trigger"
|
|
8687
8672
|
part="trigger"
|
|
@@ -8690,16 +8675,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
8690
8675
|
tabindex="0"
|
|
8691
8676
|
aria-describedby="${t?e:""}"
|
|
8692
8677
|
?data-popup-open="${t}"
|
|
8693
|
-
?data-disabled="${o(this,ys,
|
|
8694
|
-
@mouseenter="${o(this,
|
|
8695
|
-
@mouseleave="${o(this,
|
|
8696
|
-
@focus="${o(this,
|
|
8697
|
-
@blur="${o(this,
|
|
8698
|
-
@keydown="${o(this,
|
|
8678
|
+
?data-disabled="${o(this,ys,Kv)}"
|
|
8679
|
+
@mouseenter="${o(this,Wv)}"
|
|
8680
|
+
@mouseleave="${o(this,Yv)}"
|
|
8681
|
+
@focus="${o(this,Gv)}"
|
|
8682
|
+
@blur="${o(this,Xv)}"
|
|
8683
|
+
@keydown="${o(this,Jv)}"
|
|
8699
8684
|
>
|
|
8700
8685
|
<slot></slot>
|
|
8701
8686
|
</span>
|
|
8702
|
-
`}};
|
|
8687
|
+
`}};jv=A(NF),t_=new WeakMap,ro=new WeakMap,Wv=new WeakMap,Yv=new WeakMap,Gv=new WeakMap,Xv=new WeakMap,Jv=new WeakMap,ys=new WeakSet,e_=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;o(this,ro).value?.setTriggerEl(t)},Kv=function(){return this.disabled||(o(this,ro).value?.disabled??!1)},c(jv,4,"disabled",MF,xs,t_),T(jv,xs),v(xs,"tagName","dui-tooltip-trigger"),v(xs,"styles",[w,p6,h6]);var u6=b`
|
|
8703
8688
|
:host {
|
|
8704
8689
|
display: contents;
|
|
8705
8690
|
}
|
|
@@ -8707,7 +8692,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8707
8692
|
.slot-wrapper {
|
|
8708
8693
|
display: none;
|
|
8709
8694
|
}
|
|
8710
|
-
`,
|
|
8695
|
+
`,m6=[b`
|
|
8711
8696
|
.Popup {
|
|
8712
8697
|
box-sizing: border-box;
|
|
8713
8698
|
pointer-events: auto;
|
|
@@ -8748,19 +8733,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
8748
8733
|
left: 50%;
|
|
8749
8734
|
transform: translateX(-50%) rotate(180deg);
|
|
8750
8735
|
}
|
|
8751
|
-
`],
|
|
8736
|
+
`],DF,HF,BF,_n,o_,r_,s_,Qv,FF,Yr,ei,oc,Rn,VF,Wr=class extends(BF=x,HF=[u({type:Boolean,attribute:"show-arrow"})],DF=[C()],BF){constructor(){super(...arguments);a(this,Yr);a(this,o_,n(_n,8,this,!0)),n(_n,11,this);a(this,r_,n(_n,12,this,"top")),n(_n,15,this);a(this,ei,new q(this,{context:ec,subscribe:!0}));a(this,oc,!1);a(this,Rn,new Te(this,{getAnchor:()=>o(this,ei).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:m6,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Yr,Qv)&&h(this,Yr,e,FF)},renderPopup:t=>{let e=o(this,ei).value?.popupId??"";return f`
|
|
8752
8737
|
<div
|
|
8753
8738
|
class="Popup"
|
|
8754
8739
|
id="${e}"
|
|
8755
8740
|
role="tooltip"
|
|
8756
8741
|
?data-starting-style="${t.isStarting}"
|
|
8757
8742
|
?data-ending-style="${t.isEnding}"
|
|
8758
|
-
data-side="${o(this,Yr,
|
|
8743
|
+
data-side="${o(this,Yr,Qv)}"
|
|
8759
8744
|
>
|
|
8760
8745
|
<div class="Content"></div>
|
|
8761
|
-
${this.showArrow?Ra(o(this,Yr,
|
|
8746
|
+
${this.showArrow?Ra(o(this,Yr,Qv)):""}
|
|
8762
8747
|
</div>
|
|
8763
|
-
`}}))}updated(){let t=o(this,ei).value?.open??!1;t&&!o(this,oc)?(p(this,Yr,
|
|
8748
|
+
`}}))}updated(){let t=o(this,ei).value?.open??!1;t&&!o(this,oc)?(p(this,Yr,VF).call(this),o(this,Rn).open()):!t&&o(this,oc)&&o(this,Rn).close(),h(this,oc,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};_n=A(BF),o_=new WeakMap,r_=new WeakMap,Yr=new WeakSet,ei=new WeakMap,oc=new WeakMap,Rn=new WeakMap,VF=function(){let t=o(this,ei).value?.side??"top";o(this,Rn).placement=t,o(this,Rn).offset=o(this,ei).value?.sideOffset??6},c(_n,4,"showArrow",HF,Wr,o_),s_=c(_n,20,"#side",DF,Yr,r_),Qv=s_.get,FF=s_.set,T(_n,Wr),v(Wr,"tagName","dui-tooltip-popup"),v(Wr,"styles",[w,u6]);var f6=k``,rc=class extends ke{static styles=[...ke.styles,f6]};customElements.define(rc.tagName,rc);var g6=k`
|
|
8764
8749
|
.Popup {
|
|
8765
8750
|
padding: var(--space-2) var(--space-2);
|
|
8766
8751
|
border-radius: var(--radius-sm);
|
|
@@ -8787,7 +8772,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8787
8772
|
fill: none;
|
|
8788
8773
|
stroke: none;
|
|
8789
8774
|
}
|
|
8790
|
-
`,sc=class extends Wr{static styles=[...Wr.styles,
|
|
8775
|
+
`,sc=class extends Wr{static styles=[...Wr.styles,g6]};customElements.define(sc.tagName,sc);var ic=class extends xs{};customElements.define(ic.tagName,ic);var Zv=Symbol("dui-tree");var m_=M("dui-load-children",{bubbles:!0,composed:!0}),v6=b`
|
|
8791
8776
|
:host {
|
|
8792
8777
|
display: block;
|
|
8793
8778
|
}
|
|
@@ -8816,7 +8801,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8816
8801
|
[part="group"][hidden] {
|
|
8817
8802
|
display: none;
|
|
8818
8803
|
}
|
|
8819
|
-
`,
|
|
8804
|
+
`,PF,UF,qF,jF,KF,WF,YF,me,i_,n_,a_,l_,d_,c_,p_,tb,GF,rt,nc,eb,bh,h_,xh,u_,XF,oi,ob,rb,sb,fe=class extends(YF=x,WF=[u()],KF=[u({type:Boolean,reflect:!0})],jF=[u({type:Boolean,attribute:"has-children",reflect:!0})],qF=[u({type:Boolean,reflect:!0})],UF=[Nt({context:Zv,subscribe:!0}),C()],PF=[C()],YF){constructor(){super(...arguments);a(this,rt);a(this,i_,n(me,8,this,"")),n(me,11,this);a(this,n_,n(me,12,this,!1)),n(me,15,this);a(this,a_,n(me,16,this,!1)),n(me,19,this);a(this,l_,n(me,20,this,!1)),n(me,23,this);a(this,d_,n(me,24,this)),n(me,27,this);a(this,c_,n(me,28,this,!1)),n(me,31,this);a(this,nc,!1);a(this,ob,t=>{let s=t.target.assignedElements().some(l=>l.tagName==="DUI-TREE-ITEM");s!==o(this,rt,tb)&&h(this,rt,s,GF)});a(this,rb,t=>{t.stopPropagation(),!o(this,rt,xh)&&this._ctx?.activate(this.value,this.isBranch)});a(this,sb,t=>{this.isBranch&&(t.stopPropagation(),!o(this,rt,xh)&&this._ctx?.toggleExpand(this.value))})}get isBranch(){return o(this,rt,tb)||this.hasChildren}willUpdate(t){this.isBranch&&o(this,rt,bh)?!o(this,rt,tb)&&!o(this,nc)&&(h(this,nc,!0),this.dispatchEvent(m_({value:this.value}))):o(this,rt,bh)||h(this,nc,!1)}updated(){this.style.setProperty("--dui-tree-level",String(o(this,rt,eb))),p(this,rt,oi).call(this,"data-expanded",o(this,rt,bh)&&this.isBranch),p(this,rt,oi).call(this,"data-selected",o(this,rt,h_)),p(this,rt,oi).call(this,"data-disabled",o(this,rt,xh)),p(this,rt,oi).call(this,"data-branch",this.isBranch),p(this,rt,oi).call(this,"data-leaf",!this.isBranch),p(this,rt,oi).call(this,"data-focus",o(this,rt,u_)),p(this,rt,oi).call(this,"data-loading",this.loading),this.setAttribute("data-level",String(o(this,rt,eb))),this.loading?this.setAttribute("aria-busy","true"):this.removeAttribute("aria-busy")}render(){let t=this.isBranch,e=o(this,rt,bh)&&t,s=o(this,rt,xh),l=o(this,rt,h_),d=o(this,rt,u_),m=this.loading,g=o(this,rt,eb),E=o(this,rt,XF),$=this._ctx?.selectionMode??"none";return f`
|
|
8820
8805
|
<div
|
|
8821
8806
|
part="root"
|
|
8822
8807
|
role="treeitem"
|
|
@@ -8836,7 +8821,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8836
8821
|
?data-leaf=${!t}
|
|
8837
8822
|
?data-focus=${d}
|
|
8838
8823
|
?data-loading=${m}
|
|
8839
|
-
@click=${o(this,
|
|
8824
|
+
@click=${o(this,rb)}
|
|
8840
8825
|
>
|
|
8841
8826
|
<div part="content">
|
|
8842
8827
|
<span
|
|
@@ -8844,7 +8829,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8844
8829
|
?data-branch=${t}
|
|
8845
8830
|
?data-leaf=${!t}
|
|
8846
8831
|
?data-loading=${m}
|
|
8847
|
-
@click=${o(this,
|
|
8832
|
+
@click=${o(this,sb)}
|
|
8848
8833
|
></span>
|
|
8849
8834
|
<slot name="label"></slot>
|
|
8850
8835
|
<span class="spacer"></span>
|
|
@@ -8855,10 +8840,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
8855
8840
|
role=${t?"group":L}
|
|
8856
8841
|
?hidden=${!t||!e}
|
|
8857
8842
|
>
|
|
8858
|
-
<slot @slotchange=${o(this,
|
|
8843
|
+
<slot @slotchange=${o(this,ob)}></slot>
|
|
8859
8844
|
</div>
|
|
8860
8845
|
</div>
|
|
8861
|
-
`}};me=A(
|
|
8846
|
+
`}};me=A(YF),i_=new WeakMap,n_=new WeakMap,a_=new WeakMap,l_=new WeakMap,d_=new WeakMap,c_=new WeakMap,rt=new WeakSet,nc=new WeakMap,eb=function(){let t=1,e=this.parentElement;for(;e&&(e.tagName==="DUI-TREE-ITEM"&&t++,e.tagName!=="DUI-TREE");)e=e.parentElement;return t},bh=function(){return this._ctx?.expandedValues.includes(this.value)??!1},h_=function(){return this._ctx?.selectedValues.includes(this.value)??!1},xh=function(){if(this.disabled||this._ctx?.disabled)return!0;let t=this.parentElement;for(;t&&t.tagName!=="DUI-TREE";){if(t.tagName==="DUI-TREE-ITEM"&&t.hasAttribute("disabled"))return!0;t=t.parentElement}return!1},u_=function(){return this._ctx?.focusedValue===this.value},XF=function(){return Array.from(this.parentElement?.children??[]).filter(t=>t.tagName==="DUI-TREE-ITEM")},oi=function(t,e){e?this.hasAttribute(t)||this.setAttribute(t,""):this.hasAttribute(t)&&this.removeAttribute(t)},ob=new WeakMap,rb=new WeakMap,sb=new WeakMap,c(me,4,"value",WF,fe,i_),c(me,4,"disabled",KF,fe,n_),c(me,4,"hasChildren",jF,fe,a_),c(me,4,"loading",qF,fe,l_),c(me,4,"_ctx",UF,fe,d_),p_=c(me,20,"#hasSlottedChildren",PF,rt,c_),tb=p_.get,GF=p_.set,T(me,fe),v(fe,"tagName","dui-tree-item"),v(fe,"styles",[w,v6]);var cb=M("dui-expanded-change",{bubbles:!0,composed:!0}),I_=M("dui-selection-change",{bubbles:!0,composed:!0}),L_=M("dui-action",{bubbles:!0,composed:!0}),b6=b`
|
|
8862
8847
|
:host {
|
|
8863
8848
|
display: block;
|
|
8864
8849
|
}
|
|
@@ -8866,16 +8851,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
8866
8851
|
[part="root"] {
|
|
8867
8852
|
outline: none;
|
|
8868
8853
|
}
|
|
8869
|
-
`,
|
|
8854
|
+
`,JF,QF,ZF,t3,e3,o3,r3,s3,i3,n3,a3,$t,f_,g_,v_,b_,x_,y_,w_,k_,l3,ib,U,E_,C_,A_,yh,$_,T_,nb,ab,In,Gr,Ln,ws,wh,zn,pb,kh,Eh,S_,lb,__,x6,db,d3,c3,ri,R_,hb,ub,p3,h3,ze=class extends(a3=x,n3=[u({type:Array})],i3=[u({type:Array,attribute:"default-expanded-values"})],s3=[u({attribute:"selection-mode",reflect:!0})],r3=[u({type:Array})],o3=[u({type:Array,attribute:"default-selected-values"})],e3=[u({type:Boolean,reflect:!0})],t3=[C()],ZF=[C()],QF=[C()],JF=[lt({context:Zv}),C()],a3){constructor(){super(...arguments);a(this,U);a(this,f_,n($t,8,this)),n($t,11,this);a(this,g_,n($t,12,this,[])),n($t,15,this);a(this,v_,n($t,16,this,"none")),n($t,19,this);a(this,b_,n($t,20,this)),n($t,23,this);a(this,x_,n($t,24,this,[])),n($t,27,this);a(this,y_,n($t,28,this,!1)),n($t,31,this);a(this,w_,n($t,32,this,[])),n($t,35,this);a(this,E_,n($t,36,this,[])),n($t,39,this);a(this,$_,n($t,40,this,null)),n($t,43,this);a(this,In,"");a(this,Gr,null);a(this,Ln,null);a(this,ws,()=>this.expandedValues??o(this,U,l3));a(this,wh,()=>this.selectedValues??o(this,U,A_));a(this,zn,t=>{let e=[...o(this,ws).call(this)],l=e.indexOf(t)>=0?e.filter(d=>d!==t):[...e,t];this.expandedValues===void 0&&h(this,U,l,ib),this.dispatchEvent(cb({values:l}))});a(this,pb,t=>{let e=[...o(this,wh).call(this)],s=e.indexOf(t),l;this.selectionMode==="single"?l=s>=0?[]:[t]:l=s>=0?e.filter(d=>d!==t):[...e,t],this.selectedValues===void 0&&h(this,U,l,yh),this.dispatchEvent(I_({values:l}))});a(this,kh,(t,e)=>{this.disabled||(this.selectionMode!=="none"?o(this,pb).call(this,t):e?o(this,zn).call(this,t):this.dispatchEvent(L_({value:t})))});a(this,Eh,t=>{o(this,U,nb)!==t&&h(this,U,t,ab)});a(this,S_,n($t,44,this,p(this,U,lb).call(this))),n($t,47,this);a(this,hb,t=>{let e=p(this,U,R_).call(this,t);e&&o(this,Eh).call(this,e.value)});a(this,ub,t=>{if(this.disabled)return;let e=p(this,U,R_).call(this,t);if(!e)return;let s=p(this,U,db).call(this),l=s.indexOf(e);switch(t.key){case"ArrowDown":{t.preventDefault(),l<s.length-1&&p(this,U,ri).call(this,s[l+1]);break}case"ArrowUp":{t.preventDefault(),l>0&&p(this,U,ri).call(this,s[l-1]);break}case"ArrowRight":{if(t.preventDefault(),!e.isBranch)break;o(this,ws).call(this).includes(e.value)?l<s.length-1&&p(this,U,ri).call(this,s[l+1]):o(this,zn).call(this,e.value);break}case"ArrowLeft":{if(t.preventDefault(),e.isBranch&&o(this,ws).call(this).includes(e.value))o(this,zn).call(this,e.value);else{let d=p(this,U,c3).call(this,e);d&&p(this,U,ri).call(this,d)}break}case"Enter":case" ":{t.preventDefault(),e.disabled||o(this,kh).call(this,e.value,e.isBranch);break}case"Home":{t.preventDefault(),s[0]&&p(this,U,ri).call(this,s[0]);break}case"End":{t.preventDefault();let d=s[s.length-1];d&&p(this,U,ri).call(this,d);break}case"*":{t.preventDefault(),p(this,U,p3).call(this,e);break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&p(this,U,h3).call(this,e,t.key)}})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tree"),this.expandedValues===void 0&&this.defaultExpandedValues.length>0&&h(this,U,[...this.defaultExpandedValues],ib),this.selectedValues===void 0&&this.defaultSelectedValues.length>0&&h(this,U,[...this.defaultSelectedValues],yh),this._ctx=p(this,U,lb).call(this),h(this,Ln,new MutationObserver(()=>this.requestUpdate())),o(this,Ln).observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled"]})}disconnectedCallback(){super.disconnectedCallback(),o(this,Ln)?.disconnect(),h(this,Ln,null),o(this,Gr)&&clearTimeout(o(this,Gr)),h(this,Gr,null),h(this,In,"")}willUpdate(t){if(this.selectionMode==="multiple"?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),t.has("selectionMode")&&this.selectedValues===void 0){let e=o(this,U,A_);this.selectionMode==="none"&&e.length>0?h(this,U,[],yh):this.selectionMode==="single"&&e.length>1&&h(this,U,[e[0]],yh)}this._ctx=p(this,U,lb).call(this)}updated(){if(o(this,U,nb)===null){let t=p(this,U,db).call(this).find(e=>!e.disabled);t&&h(this,U,t.value,ab)}}render(){return f`
|
|
8870
8855
|
<div
|
|
8871
8856
|
part="root"
|
|
8872
8857
|
?data-disabled=${this.disabled}
|
|
8873
|
-
@keydown=${o(this,
|
|
8874
|
-
@focusin=${o(this,
|
|
8858
|
+
@keydown=${o(this,ub)}
|
|
8859
|
+
@focusin=${o(this,hb)}
|
|
8875
8860
|
>
|
|
8876
8861
|
<slot></slot>
|
|
8877
8862
|
</div>
|
|
8878
|
-
`}}
|
|
8863
|
+
`}};$t=A(a3),f_=new WeakMap,g_=new WeakMap,v_=new WeakMap,b_=new WeakMap,x_=new WeakMap,y_=new WeakMap,w_=new WeakMap,U=new WeakSet,E_=new WeakMap,$_=new WeakMap,In=new WeakMap,Gr=new WeakMap,Ln=new WeakMap,ws=new WeakMap,wh=new WeakMap,zn=new WeakMap,pb=new WeakMap,kh=new WeakMap,Eh=new WeakMap,S_=new WeakMap,lb=function(){return{expandedValues:o(this,ws).call(this),selectedValues:o(this,wh).call(this),selectionMode:this.selectionMode,disabled:this.disabled,focusedValue:o(this,U,nb),toggleExpand:o(this,zn),activate:o(this,kh),setFocused:o(this,Eh)}},__=function(){return[...this.querySelectorAll("dui-tree-item")]},x6=function(t){return p(this,U,__).call(this).find(e=>e.value===t)},db=function(){return p(this,U,__).call(this).filter(t=>p(this,U,d3).call(this,t))},d3=function(t){let e=t.parentElement;for(;e;){if(e===this)return!0;if(e instanceof fe&&!o(this,ws).call(this).includes(e.value))return!1;e=e.parentElement}return!1},c3=function(t){let e=t.parentElement;for(;e;){if(e===this)return null;if(e instanceof fe)return e;e=e.parentElement}return null},ri=function(t){h(this,U,t.value,ab),t.shadowRoot?.querySelector("[part='root']")?.focus()},R_=function(t){return t.composedPath().find(e=>e instanceof fe)??null},hb=new WeakMap,ub=new WeakMap,p3=function(t){let e=Array.from(t.parentElement?.children??[]).filter(m=>m instanceof fe&&m.isBranch&&!m.disabled),s=o(this,ws).call(this),l=e.map(m=>m.value).filter(m=>!s.includes(m));if(l.length===0)return;let d=[...s,...l];this.expandedValues===void 0&&h(this,U,d,ib),this.dispatchEvent(cb({values:d}))},h3=function(t,e){h(this,In,o(this,In)+e.toLowerCase()),o(this,Gr)&&clearTimeout(o(this,Gr)),h(this,Gr,setTimeout(()=>{h(this,In,""),h(this,Gr,null)},500));let s=p(this,U,db).call(this),l=s.indexOf(t),m=[...s.slice(l+1),...s.slice(0,l+1)].find(g=>(g.querySelector("[slot='label']")?.textContent?.trim().toLowerCase()??"").startsWith(o(this,In)));m&&p(this,U,ri).call(this,m)},c($t,4,"expandedValues",n3,ze,f_),c($t,4,"defaultExpandedValues",i3,ze,g_),c($t,4,"selectionMode",s3,ze,v_),c($t,4,"selectedValues",r3,ze,b_),c($t,4,"defaultSelectedValues",o3,ze,x_),c($t,4,"disabled",e3,ze,y_),k_=c($t,20,"#internalExpanded",t3,U,w_),l3=k_.get,ib=k_.set,C_=c($t,20,"#internalSelected",ZF,U,E_),A_=C_.get,yh=C_.set,T_=c($t,20,"#focusedValue",QF,U,$_),nb=T_.get,ab=T_.set,c($t,4,"_ctx",JF,ze,S_),T($t,ze),v(ze,"tagName","dui-tree"),v(ze,"styles",[w,b6]);var y6=k`
|
|
8879
8864
|
/* ── Sizes — write to public tokens on :host so consumer overrides win ── */
|
|
8880
8865
|
|
|
8881
8866
|
:host {
|
|
@@ -8918,7 +8903,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8918
8903
|
--_tree-indicator-size: var(--space-4);
|
|
8919
8904
|
--_tree-inline-gap: var(--space-2_5);
|
|
8920
8905
|
}
|
|
8921
|
-
`,ac=class extends ze{static styles=[...ze.styles,
|
|
8906
|
+
`,ac=class extends ze{static styles=[...ze.styles,y6]};customElements.define(ac.tagName,ac);var u3=Jr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")`),m3=Jr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E")`),w6=k`
|
|
8922
8907
|
/* ── Row container ─────────────────────────────────────────────────── */
|
|
8923
8908
|
|
|
8924
8909
|
/*
|
|
@@ -8995,8 +8980,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
8995
8980
|
width: 100%;
|
|
8996
8981
|
height: 100%;
|
|
8997
8982
|
background: currentColor;
|
|
8998
|
-
-webkit-mask: ${
|
|
8999
|
-
mask: ${
|
|
8983
|
+
-webkit-mask: ${u3} center / contain no-repeat;
|
|
8984
|
+
mask: ${u3} center / contain no-repeat;
|
|
9000
8985
|
transition-property: transform;
|
|
9001
8986
|
transition-duration: var(--duration-fast);
|
|
9002
8987
|
transition-timing-function: var(--ease-out-3);
|
|
@@ -9008,8 +8993,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
9008
8993
|
|
|
9009
8994
|
/* Loading spinner replaces the chevron in-place */
|
|
9010
8995
|
:host([data-loading]) [part="indicator"]::before {
|
|
9011
|
-
-webkit-mask: ${
|
|
9012
|
-
mask: ${
|
|
8996
|
+
-webkit-mask: ${m3} center / contain no-repeat;
|
|
8997
|
+
mask: ${m3} center / contain no-repeat;
|
|
9013
8998
|
transform: none;
|
|
9014
8999
|
animation: dui-tree-spin 0.9s linear infinite;
|
|
9015
9000
|
}
|
|
@@ -9050,7 +9035,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
9050
9035
|
animation: none;
|
|
9051
9036
|
}
|
|
9052
9037
|
}
|
|
9053
|
-
`,lc=class extends fe{static styles=[...fe.styles,
|
|
9038
|
+
`,lc=class extends fe{static styles=[...fe.styles,w6]};customElements.define(lc.tagName,lc);var k6=b`
|
|
9054
9039
|
:host {
|
|
9055
9040
|
display: block;
|
|
9056
9041
|
}
|
|
@@ -9069,10 +9054,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
9069
9054
|
display: -webkit-box;
|
|
9070
9055
|
-webkit-box-orient: vertical;
|
|
9071
9056
|
}
|
|
9072
|
-
`,
|
|
9057
|
+
`,f3,g3,v3,On,z_,O_,or=class extends(v3=x,g3=[u({attribute:"max-width"})],f3=[u({attribute:"max-lines",type:Number,reflect:!0})],v3){constructor(){super(...arguments);a(this,z_,n(On,8,this,"20rem")),n(On,11,this);a(this,O_,n(On,12,this)),n(On,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,e=Ga({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return f`<div part="root" style=${e}><slot></slot></div>`}};On=A(v3),z_=new WeakMap,O_=new WeakMap,c(On,4,"maxWidth",g3,or,z_),c(On,4,"maxLines",f3,or,O_),T(On,or),v(or,"tagName","dui-trunc"),v(or,"styles",[w,k6]);var E6=k`
|
|
9073
9058
|
[part="root"] {
|
|
9074
9059
|
font-family: var(--font-sans);
|
|
9075
9060
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
9076
9061
|
color: var(--text-1);
|
|
9077
9062
|
}
|
|
9078
|
-
`,dc=class extends or{static styles=[...or.styles,
|
|
9063
|
+
`,dc=class extends or{static styles=[...or.styles,E6]};customElements.define(dc.tagName,dc);
|