@deepfuture/dui-cdn 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dui.js +799 -12
- package/dui.min.js +802 -539
- package/package.json +1 -1
package/dui.min.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),b$=/'/g,x$=/"/g,E$=/^(?:script|style|textarea|title)$/i,lf=s=>(o,...t)=>({_$litType$:s,strings:o,values:t}),nB=lf(1),aB=lf(2),lB=lf(3),ns=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),y$=new WeakMap,ss=is.createTreeWalker(is,129);function C$(s,o){if(!af(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return f$!==void 0?f$.createHTML(o):o}var i5=(s,o)=>{let t=s.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",c=Al;for(let f=0;f<t;f++){let x=s[f],C,S,w=-1,R=0;for(;R<x.length&&(c.lastIndex=R,S=c.exec(x),S!==null);)R=c.lastIndex,c===Al?S[1]==="!--"?c=g$:S[1]!==void 0?c=v$:S[2]!==void 0?(E$.test(S[2])&&(a=RegExp("</"+S[2],"g")),c=rs):S[3]!==void 0&&(c=rs):c===rs?S[0]===">"?(c=a??Al,w=-1):S[1]===void 0?w=-2:(w=c.lastIndex-S[2].length,C=S[1],c=S[3]===void 0?rs:S[3]==='"'?x$:b$):c===x$||c===b$?c=rs:c===g$||c===v$?c=Al:(c=rs,a=void 0);let _=c===rs&&s[f+1].startsWith("/>")?" ":"";l+=c===Al?x+r5:w>=0?(e.push(C),x.slice(0,w)+w$+x.slice(w)+Ar+_):x+Ar+(w===-2?f:_)}return[C$(s,l+(s[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Ol=class s{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,c=0,f=o.length-1,x=this.parts,[C,S]=i5(o,t);if(this.el=s.createElement(C,e),ss.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=ss.nextNode())!==null&&x.length<f;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(w$)){let R=S[c++],_=a.getAttribute(w).split(Ar),z=/([.?@])?(.*)/.exec(R);x.push({type:1,index:l,name:z[2],strings:_,ctor:z[1]==="."?ef:z[1]==="?"?of:z[1]==="@"?rf:gi}),a.removeAttribute(w)}else w.startsWith(Ar)&&(x.push({type:6,index:l}),a.removeAttribute(w));if(E$.test(a.tagName)){let w=a.textContent.split(Ar),R=w.length-1;if(R>0){a.textContent=dc?dc.emptyScript:"";for(let _=0;_<R;_++)a.append(w[_],Rl()),ss.nextNode(),x.push({type:2,index:++l});a.append(w[R],Rl())}}}else if(a.nodeType===8)if(a.data===k$)x.push({type:2,index:l});else{let w=-1;for(;(w=a.data.indexOf(Ar,w+1))!==-1;)x.push({type:7,index:l}),w+=Ar.length-1}l++}}static createElement(o,t){let e=is.createElement("template");return e.innerHTML=o,e}};function fi(s,o,t=s,e){if(o===ns)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=Il(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=fi(s,a._$AS(s,o.values),a,e)),o}var tf=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??is).importNode(t,!0);ss.currentNode=a;let l=ss.nextNode(),c=0,f=0,x=e[0];for(;x!==void 0;){if(c===x.index){let C;x.type===2?C=new Ll(l,l.nextSibling,this,o):x.type===1?C=new x.ctor(l,x.name,x.strings,this,o):x.type===6&&(C=new sf(l,this,o)),this._$AV.push(C),x=e[++f]}c!==x?.index&&(l=ss.nextNode(),c++)}return ss.currentNode=is,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Ll=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=fi(this,o,t),Il(o)?o===te||o==null||o===""?(this._$AH!==te&&this._$AR(),this._$AH=te):o!==this._$AH&&o!==ns&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):s5(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==te&&Il(this._$AH)?this._$AA.nextSibling.data=o:this.T(is.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Ol.createElement(C$(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new tf(a,this),c=l.u(this.options);l.p(t),this.T(c),this._$AH=l}}_$AC(o){let t=y$.get(o.strings);return t===void 0&&y$.set(o.strings,t=new Ol(o)),t}k(o){af(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new s(this.O(Rl()),this.O(Rl()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=m$(o).nextSibling;m$(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=te,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=te}_$AI(o,t=this,e,a){let l=this.strings,c=!1;if(l===void 0)o=fi(this,o,t,0),c=!Il(o)||o!==this._$AH&&o!==ns,c&&(this._$AH=o);else{let f=o,x,C;for(o=l[0],x=0;x<l.length-1;x++)C=fi(this,f[e+x],t,x),C===ns&&(C=this._$AH[x]),c||=!Il(C)||C!==this._$AH[x],C===te?o=te:o!==te&&(o+=(C??"")+l[x+1]),this._$AH[x]=C}c&&!a&&this.j(o)}j(o){o===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},ef=class extends gi{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===te?void 0:o}},of=class extends gi{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==te)}},rf=class extends gi{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=fi(this,o,t,0)??te)===ns)return;let e=this._$AH,a=o===te&&e!==te||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==te&&(e===te||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},sf=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){fi(this,o)}};var n5=nf.litHtmlPolyfillSupport;n5?.(Ol,Ll),(nf.litHtmlVersions??=[]).push("3.3.2");var $$=(s,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new Ll(o.insertBefore(Rl(),l),l,void 0,t??{})}return a._$AI(s),a};var df=globalThis,vi=class extends pr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=$$(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ns}};vi._$litElement$=!0,vi.finalized=!0,df.litElementHydrateSupport?.({LitElement:vi});var a5=df.litElementPolyfillSupport;a5?.({LitElement:vi});(df.litElementVersions??=[]).push("4.2.2");var cc=globalThis,pc=cc.ShadowRoot&&(cc.ShadyCSS===void 0||cc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cf=Symbol(),S$=new WeakMap,zl=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==cf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(pc&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=S$.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&S$.set(t,o))}return o}toString(){return this.cssText}},T$=s=>new zl(typeof s=="string"?s:s+"",void 0,cf),g=(s,...o)=>{let t=s.length===1?s[0]:o.reduce((e,a,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+s[l+1],s[0]);return new zl(t,s,cf)},hc=(s,o)=>{if(pc)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=cc.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,s.appendChild(e)}},pf=pc?s=>s:s=>s instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return T$(t)})(s):s;var{is:l5,defineProperty:d5,getOwnPropertyDescriptor:c5,getOwnPropertyNames:p5,getOwnPropertySymbols:h5,getPrototypeOf:u5}=Object,uc=globalThis,_$=uc.trustedTypes,m5=_$?_$.emptyScript:"",f5=uc.reactiveElementPolyfillSupport,Ml=(s,o)=>s,Nl={toAttribute(s,o){switch(o){case Boolean:s=s?m5:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,o){let t=s;switch(o){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},mc=(s,o)=>!l5(s,o),A$={attribute:!0,type:String,converter:Nl,reflect:!1,useDefault:!1,hasChanged:mc};Symbol.metadata??=Symbol("metadata"),uc.litPropertyMetadata??=new WeakMap;var hr=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=A$){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&d5(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=c5(this.prototype,o)??{get(){return this[t]},set(c){this[t]=c}};return{get:a,set(c){let f=a?.call(this);l?.call(this,c),this.requestUpdate(o,f,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??A$}static _$Ei(){if(this.hasOwnProperty(Ml("elementProperties")))return;let o=u5(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Ml("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ml("properties"))){let t=this.properties,e=[...p5(t),...h5(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(pf(a))}else o!==void 0&&t.push(pf(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.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(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return hc(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:Nl).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),c=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Nl;this._$Em=a;let f=c.fromAttribute(t,l.type);this[a]=f??this._$Ej?.get(a)??f,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let c=this.constructor;if(a===!1&&(l=this[o]),e??=c.getPropertyOptions(o),!((e.hasChanged??mc)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(c._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},c){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,c??t??this[o]),l!==!0||c!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:c}=l,f=this[a];c!==!0||this._$AL.has(a)||f===void 0||this.C(a,void 0,l,f)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};hr.elementStyles=[],hr.shadowRootOptions={mode:"open"},hr[Ml("elementProperties")]=new Map,hr[Ml("finalized")]=new Map,f5?.({ReactiveElement:hr}),(uc.reactiveElementVersions??=[]).push("2.1.2");var uf=globalThis,R$=s=>s,fc=uf.trustedTypes,I$=fc?fc.createPolicy("lit-html",{createHTML:s=>s}):void 0,mf="$lit$",ur=`lit$${Math.random().toFixed(9).slice(2)}$`,ff="?"+ur,g5=`<${ff}>`,ds=document,Hl=()=>ds.createComment(""),Bl=s=>s===null||typeof s!="object"&&typeof s!="function",gf=Array.isArray,D$=s=>gf(s)||typeof s?.[Symbol.iterator]=="function",hf=`[
|
|
4
|
-
\f\r]`,
|
|
5
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),z$=/'/g,M$=/"/g,H$=/^(?:script|style|textarea|title)$/i,vf=s=>(o,...t)=>({_$litType$:s,strings:o,values:t}),m=vf(1),wc=vf(2),$B=vf(3),ie=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),N$=new WeakMap,ls=ds.createTreeWalker(ds,129);function B$(s,o){if(!gf(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return I$!==void 0?I$.createHTML(o):o}var F$=(s,o)=>{let t=s.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",c=Dl;for(let f=0;f<t;f++){let x=s[f],C,S,w=-1,R=0;for(;R<x.length&&(c.lastIndex=R,S=c.exec(x),S!==null);)R=c.lastIndex,c===Dl?S[1]==="!--"?c=O$:S[1]!==void 0?c=L$:S[2]!==void 0?(H$.test(S[2])&&(a=RegExp("</"+S[2],"g")),c=as):S[3]!==void 0&&(c=as):c===as?S[0]===">"?(c=a??Dl,w=-1):S[1]===void 0?w=-2:(w=c.lastIndex-S[2].length,C=S[1],c=S[3]===void 0?as:S[3]==='"'?M$:z$):c===M$||c===z$?c=as:c===O$||c===L$?c=Dl:(c=as,a=void 0);let _=c===as&&s[f+1].startsWith("/>")?" ":"";l+=c===Dl?x+g5:w>=0?(e.push(C),x.slice(0,w)+mf+x.slice(w)+ur+_):x+ur+(w===-2?f:_)}return[B$(s,l+(s[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Fl=class s{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,c=0,f=o.length-1,x=this.parts,[C,S]=F$(o,t);if(this.el=s.createElement(C,e),ls.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=ls.nextNode())!==null&&x.length<f;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(mf)){let R=S[c++],_=a.getAttribute(w).split(ur),z=/([.?@])?(.*)/.exec(R);x.push({type:1,index:l,name:z[2],strings:_,ctor:z[1]==="."?vc:z[1]==="?"?bc:z[1]==="@"?xc:ps}),a.removeAttribute(w)}else w.startsWith(ur)&&(x.push({type:6,index:l}),a.removeAttribute(w));if(H$.test(a.tagName)){let w=a.textContent.split(ur),R=w.length-1;if(R>0){a.textContent=fc?fc.emptyScript:"";for(let _=0;_<R;_++)a.append(w[_],Hl()),ls.nextNode(),x.push({type:2,index:++l});a.append(w[R],Hl())}}}else if(a.nodeType===8)if(a.data===ff)x.push({type:2,index:l});else{let w=-1;for(;(w=a.data.indexOf(ur,w+1))!==-1;)x.push({type:7,index:l}),w+=ur.length-1}l++}}static createElement(o,t){let e=ds.createElement("template");return e.innerHTML=o,e}};function cs(s,o,t=s,e){if(o===ie)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=Bl(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=cs(s,a._$AS(s,o.values),a,e)),o}var gc=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??ds).importNode(t,!0);ls.currentNode=a;let l=ls.nextNode(),c=0,f=0,x=e[0];for(;x!==void 0;){if(c===x.index){let C;x.type===2?C=new bi(l,l.nextSibling,this,o):x.type===1?C=new x.ctor(l,x.name,x.strings,this,o):x.type===6&&(C=new yc(l,this,o)),this._$AV.push(C),x=e[++f]}c!==x?.index&&(l=ls.nextNode(),c++)}return ls.currentNode=ds,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},bi=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=cs(this,o,t),Bl(o)?o===I||o==null||o===""?(this._$AH!==I&&this._$AR(),this._$AH=I):o!==this._$AH&&o!==ie&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):D$(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==I&&Bl(this._$AH)?this._$AA.nextSibling.data=o:this.T(ds.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Fl.createElement(B$(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new gc(a,this),c=l.u(this.options);l.p(t),this.T(c),this._$AH=l}}_$AC(o){let t=N$.get(o.strings);return t===void 0&&N$.set(o.strings,t=new Fl(o)),t}k(o){gf(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new s(this.O(Hl()),this.O(Hl()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=R$(o).nextSibling;R$(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},ps=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=I,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=I}_$AI(o,t=this,e,a){let l=this.strings,c=!1;if(l===void 0)o=cs(this,o,t,0),c=!Bl(o)||o!==this._$AH&&o!==ie,c&&(this._$AH=o);else{let f=o,x,C;for(o=l[0],x=0;x<l.length-1;x++)C=cs(this,f[e+x],t,x),C===ie&&(C=this._$AH[x]),c||=!Bl(C)||C!==this._$AH[x],C===I?o=I:o!==I&&(o+=(C??"")+l[x+1]),this._$AH[x]=C}c&&!a&&this.j(o)}j(o){o===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},vc=class extends ps{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===I?void 0:o}},bc=class extends ps{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==I)}},xc=class extends ps{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=cs(this,o,t,0)??I)===ie)return;let e=this._$AH,a=o===I&&e!==I||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==I&&(e===I||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},yc=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){cs(this,o)}},U$={M:mf,P:ur,A:ff,C:1,L:F$,R:gc,D:D$,V:cs,I:bi,H:ps,N:bc,U:xc,B:vc,F:yc},v5=uf.litHtmlPolyfillSupport;v5?.(Fl,bi),(uf.litHtmlVersions??=[]).push("3.3.2");var kc=(s,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new bi(o.insertBefore(Hl(),l),l,void 0,t??{})}return a._$AI(s),a};var bf=globalThis,b=class extends hr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=kc(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ie}};b._$litElement$=!0,b.finalized=!0,bf.litElementHydrateSupport?.({LitElement:b});var b5=bf.litElementPolyfillSupport;b5?.({LitElement:b});(bf.litElementVersions??=[]).push("4.2.2");var x5={attribute:!0,type:String,converter:Nl,reflect:!1,hasChanged:mc},y5=(s=x5,o,t)=>{let{kind:e,metadata:a}=t,l=globalThis.litPropertyMetadata.get(a);if(l===void 0&&globalThis.litPropertyMetadata.set(a,l=new Map),e==="setter"&&((s=Object.create(s)).wrapped=!0),l.set(t.name,s),e==="accessor"){let{name:c}=t;return{set(f){let x=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,x,s,!0,f)},init(f){return f!==void 0&&this.C(c,void 0,s,f),f}}}if(e==="setter"){let{name:c}=t;return function(f){let x=this[c];o.call(this,f),this.requestUpdate(c,x,s,!0,f)}}throw Error("Unsupported decorator location: "+e)};function h(s){return(o,t)=>typeof t=="object"?y5(s,o,t):((e,a,l)=>{let c=a.hasOwnProperty(l);return a.constructor.createProperty(l,e),c?Object.getOwnPropertyDescriptor(a,l):void 0})(s,o,t)}function E(s){return h({...s,state:!0,attribute:!1})}var Rr=class extends Event{constructor(o,t,e,a){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t,this.callback=e,this.subscribe=a??!1}};var W=class{constructor(o,t,e,a){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(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,c)),this.unsubscribe=c},this.host=o,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=a??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Rr(this.context,this.host,this.t,this.subscribe))}};var Cc=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var xf=class extends Event{constructor(o,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t}},xi=class extends Cc{constructor(o,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=a=>{if(a.context!==this.context)return;let l=a.contextTarget??a.composedPath()[0];l!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,l,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;let l=new Set;for(let[c,{consumerHost:f}]of this.subscriptions)l.has(c)||(l.add(c),f.dispatchEvent(new Rr(this.context,f,c,!0)));a.stopPropagation()},this.host=o,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 xf(this.context,this.host))}};function Et({context:s}){return(o,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return o.get.call(this)},set(a){return e.get(this).setValue(a),o.set.call(this,a)},init(a){return e.set(this,new xi(this,{context:s,initialValue:a})),a}};{o.constructor.addInitializer(c=>{e.set(c,new xi(c,{context:s}))});let a=Object.getOwnPropertyDescriptor(o,t),l;if(a===void 0){let c=new WeakMap;l={get(){return c.get(this)},set(f){e.get(this).setValue(f),c.set(this,f)},configurable:!0,enumerable:!0}}else{let c=a.set;l={...a,set(f){e.get(this).setValue(f),c?.call(this,f)}}}return void Object.defineProperty(o,t,l)}}}function Ut({context:s,subscribe:o}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new W(this,{context:s,callback:a=>{t.set.call(this,a)},subscribe:o})}):t.constructor.addInitializer(a=>{new W(a,{context:s,callback:l=>{a[e]=l},subscribe:o})})}}var y=g`
|
|
1
|
+
var A5=Object.create;var Of=Object.defineProperty;var R5=Object.getOwnPropertyDescriptor;var v1=(s,o)=>(o=Symbol[s])?o:Symbol.for("Symbol."+s),Si=s=>{throw TypeError(s)};var b1=(s,o,t)=>o in s?Of(s,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[o]=t;var g1=(s,o)=>Of(s,"name",{value:o,configurable:!0});var S=s=>[,,,A5(s?.[v1("metadata")]??null)],x1=["class","method","getter","setter","accessor","field","value","get","set"],Ul=s=>s!==void 0&&typeof s!="function"?Si("Function expected"):s,I5=(s,o,t,e,a)=>({kind:x1[s],name:o,metadata:e,addInitializer:l=>t._?Si("Already initialized"):a.push(Ul(l||null))}),$=(s,o)=>b1(o,v1("metadata"),s[3]),i=(s,o,t,e)=>{for(var a=0,l=s[o>>1],c=l&&l.length;a<c;a++)o&1?l[a].call(t):e=l[a].call(t,e);return e},d=(s,o,t,e,a,l)=>{var c,m,x,C,T,w=o&7,R=!!(o&8),_=!!(o&16),z=w>3?s.length+1:w?R?1:2:0,V=x1[w+5],Q=w>3&&(s[z-1]=[]),U=s[z]||(s[z]=[]),D=w&&(!_&&!R&&(a=a.prototype),w<5&&(w>3||!_)&&R5(w<4?a:{get[t](){return r(this,l)},set[t](G){return p(this,l,G)}},t));w?_&&w<4&&g1(l,(w>2?"set ":w>1?"get ":"")+t):g1(a,t);for(var j=e.length-1;j>=0;j--)C=I5(w,t,x={},s[3],U),w&&(C.static=R,C.private=_,T=C.access={has:_?G=>O5(a,G):G=>t in G},w^3&&(T.get=_?G=>(w^1?r:h)(G,a,w^4?l:D.get):G=>G[t]),w>2&&(T.set=_?(G,se)=>p(G,a,se,w^4?l:D.set):(G,se)=>G[t]=se)),m=(0,e[j])(w?w<4?_?l:D[V]:w>4?void 0:{get:D.get,set:D.set}:a,C),x._=1,w^4||m===void 0?Ul(m)&&(w>4?Q.unshift(m):w?_?l=m:D[V]=m:a=m):typeof m!="object"||m===null?Si("Object expected"):(Ul(c=m.get)&&(D.get=c),Ul(c=m.set)&&(D.set=c),Ul(c=m.init)&&Q.unshift(c));return w||$(s,a),D&&Of(a,t,D),_?w^4?l:D:a},g=(s,o,t)=>b1(s,typeof o!="symbol"?o+"":o,t),Lf=(s,o,t)=>o.has(s)||Si("Cannot "+t),O5=(s,o)=>Object(o)!==o?Si('Cannot use the "in" operator on this value'):s.has(o),r=(s,o,t)=>(Lf(s,o,"read from private field"),t?t.call(s):o.get(s)),n=(s,o,t)=>o.has(s)?Si("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(s):o.set(s,t),p=(s,o,t,e)=>(Lf(s,o,"write to private field"),e?e.call(s,t):o.set(s,t),t),h=(s,o,t)=>(Lf(s,o,"access private method"),t);var Ti=(s,o,t,e)=>({set _(a){p(s,o,a,t)},get _(){return r(s,o,e)}});var _c=globalThis,Ac=_c.ShadowRoot&&(_c.ShadyCSS===void 0||_c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zf=Symbol(),y1=new WeakMap,ql=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==zf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Ac&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=y1.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&y1.set(t,o))}return o}toString(){return this.cssText}},bo=s=>new ql(typeof s=="string"?s:s+"",void 0,zf),k=(s,...o)=>{let t=s.length===1?s[0]:o.reduce((e,a,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+s[l+1],s[0]);return new ql(t,s,zf)},w1=(s,o)=>{if(Ac)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=_c.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,s.appendChild(e)}},Mf=Ac?s=>s:s=>s instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return bo(t)})(s):s;var{is:L5,defineProperty:z5,getOwnPropertyDescriptor:M5,getOwnPropertyNames:N5,getOwnPropertySymbols:D5,getPrototypeOf:H5}=Object,Rc=globalThis,k1=Rc.trustedTypes,B5=k1?k1.emptyScript:"",F5=Rc.reactiveElementPolyfillSupport,Pl=(s,o)=>s,Nf={toAttribute(s,o){switch(o){case Boolean:s=s?B5:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,o){let t=s;switch(o){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},C1=(s,o)=>!L5(s,o),E1={attribute:!0,type:String,converter:Nf,reflect:!1,useDefault:!1,hasChanged:C1};Symbol.metadata??=Symbol("metadata"),Rc.litPropertyMetadata??=new WeakMap;var xo=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=E1){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&z5(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=M5(this.prototype,o)??{get(){return this[t]},set(c){this[t]=c}};return{get:a,set(c){let m=a?.call(this);l?.call(this,c),this.requestUpdate(o,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??E1}static _$Ei(){if(this.hasOwnProperty(Pl("elementProperties")))return;let o=H5(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Pl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pl("properties"))){let t=this.properties,e=[...N5(t),...D5(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(Mf(a))}else o!==void 0&&t.push(Mf(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.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(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return w1(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:Nf).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),c=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Nf;this._$Em=a;let m=c.fromAttribute(t,l.type);this[a]=m??this._$Ej?.get(a)??m,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let c=this.constructor;if(a===!1&&(l=this[o]),e??=c.getPropertyOptions(o),!((e.hasChanged??C1)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(c._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},c){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,c??t??this[o]),l!==!0||c!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:c}=l,m=this[a];c!==!0||this._$AL.has(a)||m===void 0||this.C(a,void 0,l,m)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};xo.elementStyles=[],xo.shadowRootOptions={mode:"open"},xo[Pl("elementProperties")]=new Map,xo[Pl("finalized")]=new Map,F5?.({ReactiveElement:xo}),(Rc.reactiveElementVersions??=[]).push("2.1.2");var qf=globalThis,$1=s=>s,Ic=qf.trustedTypes,S1=Ic?Ic.createPolicy("lit-html",{createHTML:s=>s}):void 0,O1="$lit$",Ho=`lit$${Math.random().toFixed(9).slice(2)}$`,L1="?"+Ho,V5=`<${L1}>`,gs=document,Wl=()=>gs.createComment(""),Kl=s=>s===null||typeof s!="object"&&typeof s!="function",Pf=Array.isArray,U5=s=>Pf(s)||typeof s?.[Symbol.iterator]=="function",Df=`[
|
|
2
|
+
\f\r]`,jl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T1=/-->/g,_1=/>/g,ms=RegExp(`>|${Df}(?:([^\\s"'>=/]+)(${Df}*=${Df}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),A1=/'/g,R1=/"/g,z1=/^(?:script|style|textarea|title)$/i,jf=s=>(o,...t)=>({_$litType$:s,strings:o,values:t}),Y4=jf(1),X4=jf(2),J4=jf(3),vs=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),I1=new WeakMap,fs=gs.createTreeWalker(gs,129);function M1(s,o){if(!Pf(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return S1!==void 0?S1.createHTML(o):o}var q5=(s,o)=>{let t=s.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",c=jl;for(let m=0;m<t;m++){let x=s[m],C,T,w=-1,R=0;for(;R<x.length&&(c.lastIndex=R,T=c.exec(x),T!==null);)R=c.lastIndex,c===jl?T[1]==="!--"?c=T1:T[1]!==void 0?c=_1:T[2]!==void 0?(z1.test(T[2])&&(a=RegExp("</"+T[2],"g")),c=ms):T[3]!==void 0&&(c=ms):c===ms?T[0]===">"?(c=a??jl,w=-1):T[1]===void 0?w=-2:(w=c.lastIndex-T[2].length,C=T[1],c=T[3]===void 0?ms:T[3]==='"'?R1:A1):c===R1||c===A1?c=ms:c===T1||c===_1?c=jl:(c=ms,a=void 0);let _=c===ms&&s[m+1].startsWith("/>")?" ":"";l+=c===jl?x+V5:w>=0?(e.push(C),x.slice(0,w)+O1+x.slice(w)+Ho+_):x+Ho+(w===-2?m:_)}return[M1(s,l+(s[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Gl=class s{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,c=0,m=o.length-1,x=this.parts,[C,T]=q5(o,t);if(this.el=s.createElement(C,e),fs.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=fs.nextNode())!==null&&x.length<m;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(O1)){let R=T[c++],_=a.getAttribute(w).split(Ho),z=/([.?@])?(.*)/.exec(R);x.push({type:1,index:l,name:z[2],strings:_,ctor:z[1]==="."?Bf:z[1]==="?"?Ff:z[1]==="@"?Vf:Ai}),a.removeAttribute(w)}else w.startsWith(Ho)&&(x.push({type:6,index:l}),a.removeAttribute(w));if(z1.test(a.tagName)){let w=a.textContent.split(Ho),R=w.length-1;if(R>0){a.textContent=Ic?Ic.emptyScript:"";for(let _=0;_<R;_++)a.append(w[_],Wl()),fs.nextNode(),x.push({type:2,index:++l});a.append(w[R],Wl())}}}else if(a.nodeType===8)if(a.data===L1)x.push({type:2,index:l});else{let w=-1;for(;(w=a.data.indexOf(Ho,w+1))!==-1;)x.push({type:7,index:l}),w+=Ho.length-1}l++}}static createElement(o,t){let e=gs.createElement("template");return e.innerHTML=o,e}};function _i(s,o,t=s,e){if(o===vs)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=Kl(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=_i(s,a._$AS(s,o.values),a,e)),o}var Hf=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??gs).importNode(t,!0);fs.currentNode=a;let l=fs.nextNode(),c=0,m=0,x=e[0];for(;x!==void 0;){if(c===x.index){let C;x.type===2?C=new Yl(l,l.nextSibling,this,o):x.type===1?C=new x.ctor(l,x.name,x.strings,this,o):x.type===6&&(C=new Uf(l,this,o)),this._$AV.push(C),x=e[++m]}c!==x?.index&&(l=fs.nextNode(),c++)}return fs.currentNode=gs,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Yl=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=_i(this,o,t),Kl(o)?o===ie||o==null||o===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):o!==this._$AH&&o!==vs&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):U5(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==ie&&Kl(this._$AH)?this._$AA.nextSibling.data=o:this.T(gs.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Gl.createElement(M1(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new Hf(a,this),c=l.u(this.options);l.p(t),this.T(c),this._$AH=l}}_$AC(o){let t=I1.get(o.strings);return t===void 0&&I1.set(o.strings,t=new Gl(o)),t}k(o){Pf(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new s(this.O(Wl()),this.O(Wl()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=$1(o).nextSibling;$1(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Ai=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ie}_$AI(o,t=this,e,a){let l=this.strings,c=!1;if(l===void 0)o=_i(this,o,t,0),c=!Kl(o)||o!==this._$AH&&o!==vs,c&&(this._$AH=o);else{let m=o,x,C;for(o=l[0],x=0;x<l.length-1;x++)C=_i(this,m[e+x],t,x),C===vs&&(C=this._$AH[x]),c||=!Kl(C)||C!==this._$AH[x],C===ie?o=ie:o!==ie&&(o+=(C??"")+l[x+1]),this._$AH[x]=C}c&&!a&&this.j(o)}j(o){o===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Bf=class extends Ai{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===ie?void 0:o}},Ff=class extends Ai{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==ie)}},Vf=class extends Ai{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=_i(this,o,t,0)??ie)===vs)return;let e=this._$AH,a=o===ie&&e!==ie||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==ie&&(e===ie||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},Uf=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){_i(this,o)}};var P5=qf.litHtmlPolyfillSupport;P5?.(Gl,Yl),(qf.litHtmlVersions??=[]).push("3.3.2");var N1=(s,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new Yl(o.insertBefore(Wl(),l),l,void 0,t??{})}return a._$AI(s),a};var Wf=globalThis,Ri=class extends xo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=N1(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return vs}};Ri._$litElement$=!0,Ri.finalized=!0,Wf.litElementHydrateSupport?.({LitElement:Ri});var j5=Wf.litElementPolyfillSupport;j5?.({LitElement:Ri});(Wf.litElementVersions??=[]).push("4.2.2");var Oc=globalThis,Lc=Oc.ShadowRoot&&(Oc.ShadyCSS===void 0||Oc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kf=Symbol(),D1=new WeakMap,Xl=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Kf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Lc&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=D1.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&D1.set(t,o))}return o}toString(){return this.cssText}},H1=s=>new Xl(typeof s=="string"?s:s+"",void 0,Kf),v=(s,...o)=>{let t=s.length===1?s[0]:o.reduce((e,a,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+s[l+1],s[0]);return new Xl(t,s,Kf)},zc=(s,o)=>{if(Lc)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=Oc.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,s.appendChild(e)}},Gf=Lc?s=>s:s=>s instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return H1(t)})(s):s;var{is:W5,defineProperty:K5,getOwnPropertyDescriptor:G5,getOwnPropertyNames:Y5,getOwnPropertySymbols:X5,getPrototypeOf:J5}=Object,Mc=globalThis,B1=Mc.trustedTypes,Q5=B1?B1.emptyScript:"",Z5=Mc.reactiveElementPolyfillSupport,Jl=(s,o)=>s,Ql={toAttribute(s,o){switch(o){case Boolean:s=s?Q5:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,o){let t=s;switch(o){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Nc=(s,o)=>!W5(s,o),F1={attribute:!0,type:String,converter:Ql,reflect:!1,useDefault:!1,hasChanged:Nc};Symbol.metadata??=Symbol("metadata"),Mc.litPropertyMetadata??=new WeakMap;var yo=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=F1){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&K5(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=G5(this.prototype,o)??{get(){return this[t]},set(c){this[t]=c}};return{get:a,set(c){let m=a?.call(this);l?.call(this,c),this.requestUpdate(o,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??F1}static _$Ei(){if(this.hasOwnProperty(Jl("elementProperties")))return;let o=J5(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Jl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jl("properties"))){let t=this.properties,e=[...Y5(t),...X5(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(Gf(a))}else o!==void 0&&t.push(Gf(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.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(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zc(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:Ql).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),c=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Ql;this._$Em=a;let m=c.fromAttribute(t,l.type);this[a]=m??this._$Ej?.get(a)??m,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let c=this.constructor;if(a===!1&&(l=this[o]),e??=c.getPropertyOptions(o),!((e.hasChanged??Nc)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(c._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},c){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,c??t??this[o]),l!==!0||c!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:c}=l,m=this[a];c!==!0||this._$AL.has(a)||m===void 0||this.C(a,void 0,l,m)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};yo.elementStyles=[],yo.shadowRootOptions={mode:"open"},yo[Jl("elementProperties")]=new Map,yo[Jl("finalized")]=new Map,Z5?.({ReactiveElement:yo}),(Mc.reactiveElementVersions??=[]).push("2.1.2");var Xf=globalThis,V1=s=>s,Dc=Xf.trustedTypes,U1=Dc?Dc.createPolicy("lit-html",{createHTML:s=>s}):void 0,Jf="$lit$",wo=`lit$${Math.random().toFixed(9).slice(2)}$`,Qf="?"+wo,tN=`<${Qf}>`,ys=document,td=()=>ys.createComment(""),ed=s=>s===null||typeof s!="object"&&typeof s!="function",Zf=Array.isArray,G1=s=>Zf(s)||typeof s?.[Symbol.iterator]=="function",Yf=`[
|
|
4
|
+
\f\r]`,Zl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q1=/-->/g,P1=/>/g,bs=RegExp(`>|${Yf}(?:([^\\s"'>=/]+)(${Yf}*=${Yf}*(?:[^
|
|
5
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),j1=/'/g,W1=/"/g,Y1=/^(?:script|style|textarea|title)$/i,tg=s=>(o,...t)=>({_$litType$:s,strings:o,values:t}),f=tg(1),qc=tg(2),mF=tg(3),ce=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),K1=new WeakMap,xs=ys.createTreeWalker(ys,129);function X1(s,o){if(!Zf(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return U1!==void 0?U1.createHTML(o):o}var J1=(s,o)=>{let t=s.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",c=Zl;for(let m=0;m<t;m++){let x=s[m],C,T,w=-1,R=0;for(;R<x.length&&(c.lastIndex=R,T=c.exec(x),T!==null);)R=c.lastIndex,c===Zl?T[1]==="!--"?c=q1:T[1]!==void 0?c=P1:T[2]!==void 0?(Y1.test(T[2])&&(a=RegExp("</"+T[2],"g")),c=bs):T[3]!==void 0&&(c=bs):c===bs?T[0]===">"?(c=a??Zl,w=-1):T[1]===void 0?w=-2:(w=c.lastIndex-T[2].length,C=T[1],c=T[3]===void 0?bs:T[3]==='"'?W1:j1):c===W1||c===j1?c=bs:c===q1||c===P1?c=Zl:(c=bs,a=void 0);let _=c===bs&&s[m+1].startsWith("/>")?" ":"";l+=c===Zl?x+tN:w>=0?(e.push(C),x.slice(0,w)+Jf+x.slice(w)+wo+_):x+wo+(w===-2?m:_)}return[X1(s,l+(s[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},rd=class s{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,c=0,m=o.length-1,x=this.parts,[C,T]=J1(o,t);if(this.el=s.createElement(C,e),xs.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=xs.nextNode())!==null&&x.length<m;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(Jf)){let R=T[c++],_=a.getAttribute(w).split(wo),z=/([.?@])?(.*)/.exec(R);x.push({type:1,index:l,name:z[2],strings:_,ctor:z[1]==="."?Bc:z[1]==="?"?Fc:z[1]==="@"?Vc:ks}),a.removeAttribute(w)}else w.startsWith(wo)&&(x.push({type:6,index:l}),a.removeAttribute(w));if(Y1.test(a.tagName)){let w=a.textContent.split(wo),R=w.length-1;if(R>0){a.textContent=Dc?Dc.emptyScript:"";for(let _=0;_<R;_++)a.append(w[_],td()),xs.nextNode(),x.push({type:2,index:++l});a.append(w[R],td())}}}else if(a.nodeType===8)if(a.data===Qf)x.push({type:2,index:l});else{let w=-1;for(;(w=a.data.indexOf(wo,w+1))!==-1;)x.push({type:7,index:l}),w+=wo.length-1}l++}}static createElement(o,t){let e=ys.createElement("template");return e.innerHTML=o,e}};function ws(s,o,t=s,e){if(o===ce)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=ed(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=ws(s,a._$AS(s,o.values),a,e)),o}var Hc=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??ys).importNode(t,!0);xs.currentNode=a;let l=xs.nextNode(),c=0,m=0,x=e[0];for(;x!==void 0;){if(c===x.index){let C;x.type===2?C=new Ii(l,l.nextSibling,this,o):x.type===1?C=new x.ctor(l,x.name,x.strings,this,o):x.type===6&&(C=new Uc(l,this,o)),this._$AV.push(C),x=e[++m]}c!==x?.index&&(l=xs.nextNode(),c++)}return xs.currentNode=ys,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Ii=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=ws(this,o,t),ed(o)?o===I||o==null||o===""?(this._$AH!==I&&this._$AR(),this._$AH=I):o!==this._$AH&&o!==ce&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):G1(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==I&&ed(this._$AH)?this._$AA.nextSibling.data=o:this.T(ys.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=rd.createElement(X1(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new Hc(a,this),c=l.u(this.options);l.p(t),this.T(c),this._$AH=l}}_$AC(o){let t=K1.get(o.strings);return t===void 0&&K1.set(o.strings,t=new rd(o)),t}k(o){Zf(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new s(this.O(td()),this.O(td()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=V1(o).nextSibling;V1(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},ks=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=I,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=I}_$AI(o,t=this,e,a){let l=this.strings,c=!1;if(l===void 0)o=ws(this,o,t,0),c=!ed(o)||o!==this._$AH&&o!==ce,c&&(this._$AH=o);else{let m=o,x,C;for(o=l[0],x=0;x<l.length-1;x++)C=ws(this,m[e+x],t,x),C===ce&&(C=this._$AH[x]),c||=!ed(C)||C!==this._$AH[x],C===I?o=I:o!==I&&(o+=(C??"")+l[x+1]),this._$AH[x]=C}c&&!a&&this.j(o)}j(o){o===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Bc=class extends ks{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===I?void 0:o}},Fc=class extends ks{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==I)}},Vc=class extends ks{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=ws(this,o,t,0)??I)===ce)return;let e=this._$AH,a=o===I&&e!==I||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==I&&(e===I||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},Uc=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){ws(this,o)}},Q1={M:Jf,P:wo,A:Qf,C:1,L:J1,R:Hc,D:G1,V:ws,I:Ii,H:ks,N:Fc,U:Vc,B:Bc,F:Uc},eN=Xf.litHtmlPolyfillSupport;eN?.(rd,Ii),(Xf.litHtmlVersions??=[]).push("3.3.2");var Pc=(s,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new Ii(o.insertBefore(td(),l),l,void 0,t??{})}return a._$AI(s),a};var eg=globalThis,b=class extends yo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=Pc(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ce}};b._$litElement$=!0,b.finalized=!0,eg.litElementHydrateSupport?.({LitElement:b});var rN=eg.litElementPolyfillSupport;rN?.({LitElement:b});(eg.litElementVersions??=[]).push("4.2.2");var oN={attribute:!0,type:String,converter:Ql,reflect:!1,hasChanged:Nc},sN=(s=oN,o,t)=>{let{kind:e,metadata:a}=t,l=globalThis.litPropertyMetadata.get(a);if(l===void 0&&globalThis.litPropertyMetadata.set(a,l=new Map),e==="setter"&&((s=Object.create(s)).wrapped=!0),l.set(t.name,s),e==="accessor"){let{name:c}=t;return{set(m){let x=o.get.call(this);o.set.call(this,m),this.requestUpdate(c,x,s,!0,m)},init(m){return m!==void 0&&this.C(c,void 0,s,m),m}}}if(e==="setter"){let{name:c}=t;return function(m){let x=this[c];o.call(this,m),this.requestUpdate(c,x,s,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(s){return(o,t)=>typeof t=="object"?sN(s,o,t):((e,a,l)=>{let c=a.hasOwnProperty(l);return a.constructor.createProperty(l,e),c?Object.getOwnPropertyDescriptor(a,l):void 0})(s,o,t)}function E(s){return u({...s,state:!0,attribute:!1})}var Bo=class extends Event{constructor(o,t,e,a){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t,this.callback=e,this.subscribe=a??!1}};var K=class{constructor(o,t,e,a){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(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,c)),this.unsubscribe=c},this.host=o,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=a??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Bo(this.context,this.host,this.t,this.subscribe))}};var Wc=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var rg=class extends Event{constructor(o,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t}},Oi=class extends Wc{constructor(o,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=a=>{if(a.context!==this.context)return;let l=a.contextTarget??a.composedPath()[0];l!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,l,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;let l=new Set;for(let[c,{consumerHost:m}]of this.subscriptions)l.has(c)||(l.add(c),m.dispatchEvent(new Bo(this.context,m,c,!0)));a.stopPropagation()},this.host=o,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 rg(this.context,this.host))}};function vt({context:s}){return(o,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return o.get.call(this)},set(a){return e.get(this).setValue(a),o.set.call(this,a)},init(a){return e.set(this,new Oi(this,{context:s,initialValue:a})),a}};{o.constructor.addInitializer(c=>{e.set(c,new Oi(c,{context:s}))});let a=Object.getOwnPropertyDescriptor(o,t),l;if(a===void 0){let c=new WeakMap;l={get(){return c.get(this)},set(m){e.get(this).setValue(m),c.set(this,m)},configurable:!0,enumerable:!0}}else{let c=a.set;l={...a,set(m){e.get(this).setValue(m),c?.call(this,m)}}}return void Object.defineProperty(o,t,l)}}}function Ot({context:s,subscribe:o}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new K(this,{context:s,callback:a=>{t.set.call(this,a)},subscribe:o})}):t.constructor.addInitializer(a=>{new K(a,{context:s,callback:l=>{a[e]=l},subscribe:o})})}}var y=v`
|
|
6
6
|
* {
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
}
|
|
@@ -92,7 +92,7 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
|
|
|
92
92
|
scroll-behavior: auto !important;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
`;var
|
|
95
|
+
`;var O=(s,o={})=>t=>new CustomEvent(s,{...o,detail:t});var Kc=Symbol("dui-accordion");var mg=O("value-change",{bubbles:!0,composed:!0}),iN=v`
|
|
96
96
|
:host {
|
|
97
97
|
display: block;
|
|
98
98
|
}
|
|
@@ -101,7 +101,7 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
|
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,Z1,tS,eS,rS,oS,sS,iS,nS,aS,lS,yt,og,sg,ig,ng,ag,lg,dg,cg,pg,dS,ug,xr,Li,Ir,od,Yc,Xc,Jc,Qc,hg,Gc,ae=class extends(lS=b,aS=[u({type:Array})],nS=[u({type:Array,attribute:"default-value"})],iS=[u({type:Boolean})],sS=[u({type:Boolean})],oS=[u({type:Boolean,attribute:"loop-focus"})],rS=[u({type:String})],eS=[u({type:Boolean,attribute:"keep-mounted"})],tS=[E()],Z1=[vt({context:Kc}),E()],lS){constructor(){super(...arguments);n(this,xr);n(this,og,i(yt,8,this)),i(yt,11,this);n(this,sg,i(yt,12,this,[])),i(yt,15,this);n(this,ig,i(yt,16,this,!1)),i(yt,19,this);n(this,ng,i(yt,20,this,!1)),i(yt,23,this);n(this,ag,i(yt,24,this,!0)),i(yt,27,this);n(this,lg,i(yt,28,this,"vertical")),i(yt,31,this);n(this,dg,i(yt,32,this,!1)),i(yt,35,this);n(this,cg,i(yt,36,this,[])),i(yt,39,this);n(this,Li,new Map);n(this,Ir,[]);n(this,od,()=>this.value??r(this,xr,dS));n(this,Yc,t=>{let e=[...r(this,od).call(this)],a=e.indexOf(t),l;a>=0?l=e.filter(c=>c!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&p(this,xr,l,ug),this.dispatchEvent(mg(l))});n(this,Xc,(t,e)=>{r(this,Li).set(t,e),r(this,Ir).includes(t)||r(this,Ir).push(t)});n(this,Jc,t=>{r(this,Li).delete(t),p(this,Ir,r(this,Ir).filter(e=>e!==t))});n(this,Qc,(t,e)=>{let a=r(this,Ir).indexOf(t);if(a===-1)return;let l=r(this,Ir).length,c;switch(e){case"next":a<l-1?c=a+1:this.loopFocus&&(c=0);break;case"prev":a>0?c=a-1:this.loopFocus&&(c=l-1);break;case"first":c=0;break;case"last":c=l-1;break}if(c!==void 0){let m=r(this,Ir)[c];r(this,Li).get(m)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});n(this,hg,i(yt,40,this,h(this,xr,Gc).call(this))),i(yt,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,xr,[...this.defaultValue],ug),this._ctx=h(this,xr,Gc).call(this)}willUpdate(){this._ctx=h(this,xr,Gc).call(this)}render(){return f`
|
|
105
105
|
<div
|
|
106
106
|
part="root"
|
|
107
107
|
data-orientation=${this.orientation}
|
|
@@ -109,7 +109,7 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
|
|
|
109
109
|
>
|
|
110
110
|
<slot></slot>
|
|
111
111
|
</div>
|
|
112
|
-
`}};
|
|
112
|
+
`}};yt=S(lS),og=new WeakMap,sg=new WeakMap,ig=new WeakMap,ng=new WeakMap,ag=new WeakMap,lg=new WeakMap,dg=new WeakMap,cg=new WeakMap,xr=new WeakSet,Li=new WeakMap,Ir=new WeakMap,od=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,Jc=new WeakMap,Qc=new WeakMap,hg=new WeakMap,Gc=function(){return{openValues:r(this,od).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:r(this,Yc),registerItem:r(this,Xc),unregisterItem:r(this,Jc),focusItem:r(this,Qc)}},d(yt,4,"value",aS,ae,og),d(yt,4,"defaultValue",nS,ae,sg),d(yt,4,"disabled",iS,ae,ig),d(yt,4,"multiple",sS,ae,ng),d(yt,4,"loopFocus",oS,ae,ag),d(yt,4,"orientation",rS,ae,lg),d(yt,4,"keepMounted",eS,ae,dg),pg=d(yt,20,"#internalOpenValues",tS,xr,cg),dS=pg.get,ug=pg.set,d(yt,4,"_ctx",Z1,ae,hg),$(yt,ae),g(ae,"tagName","dui-accordion"),g(ae,"styles",[y,iN]);var Rg=O("open-change",{bubbles:!0,composed:!0}),nN=v`
|
|
113
113
|
:host {
|
|
114
114
|
display: block;
|
|
115
115
|
}
|
|
@@ -137,38 +137,38 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
|
|
|
137
137
|
contain: content;
|
|
138
138
|
transition-property: height;
|
|
139
139
|
}
|
|
140
|
-
`,
|
|
140
|
+
`,cS,pS,hS,uS,mS,fS,gS,vS,Mt,fg,gg,vg,bg,xg,Sg,Zc,B,yg,wg,tp,ep,kg,Eg,bS,Es,Cg,$g,Tg,rp,zi,$s,Cs,sd,_g,Ag,xS,yS,op,sp,ip,rr=class extends(vS=b,gS=[u({type:String})],fS=[u({type:Boolean})],mS=[Ot({context:Kc,subscribe:!0})],uS=[E()],hS=[E()],pS=[E()],cS=[E()],vS){constructor(){super(...arguments);n(this,B);n(this,fg,i(Mt,8,this,"")),i(Mt,11,this);n(this,gg,i(Mt,12,this,!1)),i(Mt,15,this);n(this,vg,i(Mt,16,this)),i(Mt,19,this);n(this,bg,i(Mt,20,this,!1)),i(Mt,23,this);n(this,yg,i(Mt,24,this,!1)),i(Mt,27,this);n(this,kg,i(Mt,28,this,"0")),i(Mt,31,this);n(this,Cg,i(Mt,32,this,!1)),i(Mt,35,this);n(this,zi);n(this,$s,0);n(this,op,t=>{t.propertyName==="height"&&(r(this,B,tp)?(p(this,B,!1,ep),this._ctx?.keepMounted||p(this,B,!1,rp)):r(this,B,Cs)&&p(this,B,"auto",Es))});n(this,sp,()=>{r(this,B,sd)||this._ctx.toggle(this.value)});n(this,ip,t=>{if(r(this,B,sd))return;let e=this._ctx.orientation==="vertical",a=e?"ArrowDown":"ArrowRight",l=e?"ArrowUp":"ArrowLeft";switch(t.key){case a: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=r(this,B,Cs);r(this,zi)===void 0?(p(this,B,t,rp),p(this,B,t?"auto":"0",Es)):r(this,zi)!==t&&(t?h(this,B,xS).call(this):h(this,B,yS).call(this),this.dispatchEvent(Rg({value:this.value,open:t}))),p(this,zi,t)}render(){let t=r(this,B,Tg)||this._ctx?.keepMounted;return f`
|
|
141
141
|
<div
|
|
142
142
|
part="item"
|
|
143
|
-
?data-open=${r(this,B,
|
|
144
|
-
?data-disabled=${r(this,B,
|
|
143
|
+
?data-open=${r(this,B,Cs)}
|
|
144
|
+
?data-disabled=${r(this,B,sd)}
|
|
145
145
|
>
|
|
146
146
|
<h3 part="header">
|
|
147
147
|
<button
|
|
148
148
|
part="trigger"
|
|
149
|
-
id=${r(this,B,
|
|
150
|
-
aria-expanded=${r(this,B,
|
|
151
|
-
aria-controls=${r(this,B,
|
|
152
|
-
?data-open=${r(this,B,
|
|
153
|
-
?data-disabled=${r(this,B,
|
|
154
|
-
@click=${r(this,
|
|
155
|
-
@keydown=${r(this,
|
|
149
|
+
id=${r(this,B,_g)}
|
|
150
|
+
aria-expanded=${r(this,B,Cs)}
|
|
151
|
+
aria-controls=${r(this,B,Ag)}
|
|
152
|
+
?data-open=${r(this,B,Cs)}
|
|
153
|
+
?data-disabled=${r(this,B,sd)}
|
|
154
|
+
@click=${r(this,sp)}
|
|
155
|
+
@keydown=${r(this,ip)}
|
|
156
156
|
>
|
|
157
157
|
<slot name="trigger"></slot>
|
|
158
158
|
</button>
|
|
159
159
|
</h3>
|
|
160
|
-
${t?
|
|
160
|
+
${t?f`
|
|
161
161
|
<div
|
|
162
162
|
part="panel"
|
|
163
|
-
id=${r(this,B,
|
|
163
|
+
id=${r(this,B,Ag)}
|
|
164
164
|
role="region"
|
|
165
|
-
aria-labelledby=${r(this,B,
|
|
166
|
-
style="height: ${r(this,B,
|
|
167
|
-
?data-open=${r(this,B,
|
|
168
|
-
?data-starting-style=${r(this,B,
|
|
169
|
-
?data-ending-style=${r(this,B,
|
|
170
|
-
?hidden=${!r(this,B,
|
|
171
|
-
@transitionend=${r(this,
|
|
165
|
+
aria-labelledby=${r(this,B,_g)}
|
|
166
|
+
style="height: ${r(this,B,bS)}"
|
|
167
|
+
?data-open=${r(this,B,Cs)&&!r(this,B,Sg)}
|
|
168
|
+
?data-starting-style=${r(this,B,Sg)}
|
|
169
|
+
?data-ending-style=${r(this,B,tp)}
|
|
170
|
+
?hidden=${!r(this,B,Tg)&&!r(this,B,tp)}
|
|
171
|
+
@transitionend=${r(this,op)}
|
|
172
172
|
>
|
|
173
173
|
<div part="content">
|
|
174
174
|
<slot></slot>
|
|
@@ -176,7 +176,7 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
|
|
|
176
176
|
</div>
|
|
177
177
|
`:I}
|
|
178
178
|
</div>
|
|
179
|
-
`}};
|
|
179
|
+
`}};Mt=S(vS),fg=new WeakMap,gg=new WeakMap,vg=new WeakMap,bg=new WeakMap,B=new WeakSet,yg=new WeakMap,kg=new WeakMap,Cg=new WeakMap,zi=new WeakMap,$s=new WeakMap,Cs=function(){return this._ctx?.openValues.includes(this.value)??!1},sd=function(){return this.disabled||this._ctx?.disabled},_g=function(){return`dui-trigger-${this.value}`},Ag=function(){return`dui-panel-${this.value}`},xS=function(){let t=++Ti(this,$s)._;p(this,B,!1,ep),p(this,B,!0,rp),p(this,B,!0,Zc),p(this,B,"0",Es),requestAnimationFrame(()=>{if(r(this,$s)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,B,`${e.scrollHeight}px`,Es),p(this,B,!1,Zc)})},yS=function(){let t=++Ti(this,$s)._;p(this,B,!1,Zc);let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,B,`${e.scrollHeight}px`,Es),requestAnimationFrame(()=>{r(this,$s)===t&&(p(this,B,!0,ep),p(this,B,"0",Es))})},op=new WeakMap,sp=new WeakMap,ip=new WeakMap,d(Mt,4,"value",gS,rr,fg),d(Mt,4,"disabled",fS,rr,gg),d(Mt,4,"_ctx",mS,rr,vg),xg=d(Mt,20,"#starting",uS,B,bg),Sg=xg.get,Zc=xg.set,wg=d(Mt,20,"#ending",hS,B,yg),tp=wg.get,ep=wg.set,Eg=d(Mt,20,"#panelHeight",pS,B,kg),bS=Eg.get,Es=Eg.set,$g=d(Mt,20,"#visible",cS,B,Cg),Tg=$g.get,rp=$g.set,$(Mt,rr),g(rr,"tagName","dui-accordion-item"),g(rr,"styles",[y,nN]);var wS=`/* =================================================================
|
|
180
180
|
* DUI Design Tokens
|
|
181
181
|
* =================================================================
|
|
182
182
|
* Combined token system: spacing, typography, borders, elevation,
|
|
@@ -586,7 +586,7 @@ p, li, blockquote, dt, dd,
|
|
|
586
586
|
label, legend, caption, figcaption, th, td {
|
|
587
587
|
text-box: trim-both cap alphabetic;
|
|
588
588
|
}
|
|
589
|
-
`;var
|
|
589
|
+
`;var kS=`/* =================================================================
|
|
590
590
|
* CSS @property Declarations
|
|
591
591
|
* =================================================================
|
|
592
592
|
* Typed API surface for theme-default's component-level CSS custom
|
|
@@ -947,8 +947,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
947
947
|
inherits: true;
|
|
948
948
|
initial-value: 0.5rem;
|
|
949
949
|
}
|
|
950
|
-
`;var
|
|
951
|
-
`+
|
|
950
|
+
`;var Ig=new CSSStyleSheet;Ig.replaceSync(kS+`
|
|
951
|
+
`+wS);var ES=`/* =================================================================
|
|
952
952
|
* DUI Prose \u2014 Rich-text / markdown content styles
|
|
953
953
|
* =================================================================
|
|
954
954
|
* Apply class="dui-prose" to any container with rendered HTML
|
|
@@ -1198,11 +1198,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1198
1198
|
cursor: pointer;
|
|
1199
1199
|
font-weight: var(--font-weight-medium);
|
|
1200
1200
|
}
|
|
1201
|
-
`;var
|
|
1201
|
+
`;var Og=new CSSStyleSheet;Og.replaceSync(ES);for(let s of[Ig,Og])s&&!document.adoptedStyleSheets.includes(s)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s]);var aN=k`
|
|
1202
1202
|
::slotted(:last-child) {
|
|
1203
1203
|
--accordion-item-border: none;
|
|
1204
1204
|
}
|
|
1205
|
-
`,
|
|
1205
|
+
`,Mi=class extends ae{static styles=[...ae.styles,aN]};customElements.define(Mi.tagName,Mi);var CS=bo(`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")`),lN=k`
|
|
1206
1206
|
/* ── Item ── */
|
|
1207
1207
|
|
|
1208
1208
|
[part="item"] {
|
|
@@ -1255,8 +1255,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
1255
1255
|
height: var(--space-4);
|
|
1256
1256
|
flex-shrink: 0;
|
|
1257
1257
|
background: currentColor;
|
|
1258
|
-
-webkit-mask: ${
|
|
1259
|
-
mask: ${
|
|
1258
|
+
-webkit-mask: ${CS} center / contain no-repeat;
|
|
1259
|
+
mask: ${CS} center / contain no-repeat;
|
|
1260
1260
|
transition-property: transform;
|
|
1261
1261
|
transition-duration: var(--duration-fast);
|
|
1262
1262
|
transition-timing-function: var(--ease-out-3);
|
|
@@ -1296,19 +1296,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
1296
1296
|
transition-duration: 0s;
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
`,
|
|
1299
|
+
`,Ni=class extends rr{static styles=[...rr.styles,lN]};customElements.define(Ni.tagName,Ni);var Fo=Symbol("dui-alert-dialog");var lp=O("open-change",{bubbles:!0,composed:!0}),dN=v`
|
|
1300
1300
|
:host {
|
|
1301
1301
|
display: contents;
|
|
1302
1302
|
}
|
|
1303
|
-
|
|
1303
|
+
`,$S,SS,TS,_S,AS,qe,Lg,zg,Mg,Ng,RS,np,Se,Ss,dp,cp,pp,hp,IS,up,mp,Dg,ap,or=class extends(AS=b,_S=[u({type:Boolean,reflect:!0})],TS=[u({type:Boolean,attribute:"default-open"})],SS=[E()],$S=[vt({context:Fo}),E()],AS){constructor(){super(...arguments);n(this,Se);n(this,Lg,i(qe,8,this)),i(qe,11,this);n(this,zg,i(qe,12,this,!1)),i(qe,15,this);n(this,Mg,i(qe,16,this,!1)),i(qe,19,this);n(this,Ss,crypto.randomUUID().slice(0,8));n(this,dp,`dui-alert-dialog-${r(this,Ss)}`);n(this,cp,`dui-alert-trigger-${r(this,Ss)}`);n(this,pp,`dui-alert-title-${r(this,Ss)}`);n(this,hp,`dui-alert-desc-${r(this,Ss)}`);n(this,up,()=>{this.open===void 0&&p(this,Se,!0,np),this.dispatchEvent(lp({open:!0}))});n(this,mp,()=>{this.open===void 0&&p(this,Se,!1,np),this.dispatchEvent(lp({open:!1}))});n(this,Dg,i(qe,20,this,h(this,Se,ap).call(this))),i(qe,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&p(this,Se,!0,np),this._ctx=h(this,Se,ap).call(this)}willUpdate(){this._ctx=h(this,Se,ap).call(this)}render(){return f`<slot></slot>`}};qe=S(AS),Lg=new WeakMap,zg=new WeakMap,Mg=new WeakMap,Se=new WeakSet,Ss=new WeakMap,dp=new WeakMap,cp=new WeakMap,pp=new WeakMap,hp=new WeakMap,IS=function(){return this.open??r(this,Se,RS)},up=new WeakMap,mp=new WeakMap,Dg=new WeakMap,ap=function(){return{open:r(this,Se,IS),dialogId:r(this,dp),triggerId:r(this,cp),titleId:r(this,pp),descriptionId:r(this,hp),openDialog:r(this,up),closeDialog:r(this,mp)}},d(qe,4,"open",_S,or,Lg),d(qe,4,"defaultOpen",TS,or,zg),Ng=d(qe,20,"#internalOpen",SS,Se,Mg),RS=Ng.get,np=Ng.set,d(qe,4,"_ctx",$S,or,Dg),$(qe,or),g(or,"tagName","dui-alert-dialog"),g(or,"styles",[y,dN]);var cN=v`
|
|
1304
1304
|
:host {
|
|
1305
1305
|
display: contents;
|
|
1306
1306
|
}
|
|
1307
|
-
`,
|
|
1307
|
+
`,pN=v`
|
|
1308
1308
|
.Trigger {
|
|
1309
1309
|
display: contents;
|
|
1310
1310
|
}
|
|
1311
|
-
`,
|
|
1311
|
+
`,id=class extends b{static tagName="dui-alert-dialog-trigger";static styles=[y,cN,pN];#t=new K(this,{context:Fo,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
|
|
1312
1312
|
<span
|
|
1313
1313
|
class="Trigger"
|
|
1314
1314
|
part="trigger"
|
|
@@ -1321,7 +1321,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1321
1321
|
>
|
|
1322
1322
|
<slot></slot>
|
|
1323
1323
|
</span>
|
|
1324
|
-
`}};var
|
|
1324
|
+
`}};var OS=(s,{composed:o=!0}={})=>{let t=s.getRootNode({composed:o});if(t instanceof DocumentFragment)return t;if(t instanceof Document)return t},hN='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',fp=s=>s instanceof HTMLSlotElement?s.assignedNodes({flatten:!0}):s instanceof Element&&s.shadowRoot?Array.from(s.shadowRoot.childNodes):Array.from(s.childNodes),Di=s=>{let o=[],t=e=>{if(e instanceof HTMLElement&&e.matches(hN)&&!e.hasAttribute("disabled")){o.push(e);return}for(let a of fp(e))t(a)};for(let e of fp(s))t(e);return o},uN=(s,o)=>{let t=e=>{if(e instanceof HTMLElement&&e.matches(o))return e;for(let a of fp(e)){let l=t(a);if(l)return l}return null};for(let e of fp(s)){let a=t(e);if(a)return a}return null},gp=s=>uN(s,"[autofocus]");var mN=v`
|
|
1325
1325
|
:host {
|
|
1326
1326
|
display: contents;
|
|
1327
1327
|
}
|
|
@@ -1330,7 +1330,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1330
1330
|
:host(:not([mounted])) [part="popup"] {
|
|
1331
1331
|
display: none;
|
|
1332
1332
|
}
|
|
1333
|
-
`,
|
|
1333
|
+
`,fN=v`
|
|
1334
1334
|
[part="backdrop"] {
|
|
1335
1335
|
position: fixed;
|
|
1336
1336
|
min-height: 100dvh;
|
|
@@ -1350,13 +1350,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
1350
1350
|
z-index: 1000;
|
|
1351
1351
|
transition-property: opacity, transform;
|
|
1352
1352
|
}
|
|
1353
|
-
`,
|
|
1353
|
+
`,LS,zS,MS,NS,DS,HS,BS,Kt,Hg,Bg,Fg,Vg,Ug,Hi,Kg,X,qg,Pg,Gg,Yg,jg,Wg,ko,Xg,Bi,Vo,FS,VS,Jg,US,qS,vp,PS,sr=class extends(BS=b,HS=[u({type:Boolean,attribute:"keep-mounted"})],DS=[u({attribute:"initial-focus"})],NS=[u({attribute:"final-focus"})],MS=[E()],zS=[E()],LS=[E()],BS){constructor(){super(...arguments);n(this,X);n(this,Hg,i(Kt,8,this,!1)),i(Kt,11,this);n(this,Bg,i(Kt,12,this)),i(Kt,15,this);n(this,Fg,i(Kt,16,this)),i(Kt,19,this);n(this,Vg,i(Kt,20,this,!1)),i(Kt,23,this);n(this,qg,i(Kt,24,this,!1)),i(Kt,27,this);n(this,jg,i(Kt,28,this,!1)),i(Kt,31,this);n(this,Bi);n(this,Vo,new K(this,{context:Fo,subscribe:!0}));n(this,vp,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,Vo).value?.closeDialog()),t.key==="Tab"&&h(this,X,PS).call(this,t)})}updated(){let t=r(this,Vo).value?.open??!1;t&&!r(this,X,Hi)?h(this,X,FS).call(this):!t&&r(this,X,Hi)&&!r(this,X,ko)&&h(this,X,VS).call(this)}willUpdate(){r(this,X,Hi)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,Vo).value?.open??!1,e=r(this,Vo).value?.titleId??"",a=r(this,Vo).value?.descriptionId??"";return!r(this,X,Hi)&&!this.keepMounted?f``:f`
|
|
1354
1354
|
<div
|
|
1355
1355
|
part="backdrop"
|
|
1356
|
-
?data-open="${t&&!r(this,
|
|
1357
|
-
?data-closed="${!t||r(this,
|
|
1358
|
-
?data-starting-style="${r(this,
|
|
1359
|
-
?data-ending-style="${r(this,
|
|
1356
|
+
?data-open="${t&&!r(this,X,ko)}"
|
|
1357
|
+
?data-closed="${!t||r(this,X,ko)}"
|
|
1358
|
+
?data-starting-style="${r(this,X,Gg)}"
|
|
1359
|
+
?data-ending-style="${r(this,X,ko)}"
|
|
1360
1360
|
></div>
|
|
1361
1361
|
<div
|
|
1362
1362
|
part="popup"
|
|
@@ -1364,26 +1364,26 @@ label, legend, caption, figcaption, th, td {
|
|
|
1364
1364
|
aria-modal="true"
|
|
1365
1365
|
aria-labelledby="${e}"
|
|
1366
1366
|
aria-describedby="${a}"
|
|
1367
|
-
?data-open="${t&&!r(this,
|
|
1368
|
-
?data-closed="${!t||r(this,
|
|
1369
|
-
?data-starting-style="${r(this,
|
|
1370
|
-
?data-ending-style="${r(this,
|
|
1367
|
+
?data-open="${t&&!r(this,X,ko)}"
|
|
1368
|
+
?data-closed="${!t||r(this,X,ko)}"
|
|
1369
|
+
?data-starting-style="${r(this,X,Gg)}"
|
|
1370
|
+
?data-ending-style="${r(this,X,ko)}"
|
|
1371
1371
|
tabindex="-1"
|
|
1372
|
-
@keydown="${r(this,
|
|
1372
|
+
@keydown="${r(this,vp)}"
|
|
1373
1373
|
>
|
|
1374
1374
|
<h2 part="title" id="${e}"><slot name="title"></slot></h2>
|
|
1375
1375
|
<p part="description" id="${a}"><slot name="description"></slot></p>
|
|
1376
1376
|
<slot></slot>
|
|
1377
1377
|
</div>
|
|
1378
|
-
`}};
|
|
1378
|
+
`}};Kt=S(BS),Hg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,Vg=new WeakMap,X=new WeakSet,qg=new WeakMap,jg=new WeakMap,Bi=new WeakMap,Vo=new WeakMap,FS=async function(){p(this,Bi,document.activeElement??void 0),p(this,X,!0,Kg),p(this,X,!0,Yg),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,X,!1,Yg),await this.updateComplete,h(this,X,US).call(this)},VS=function(){p(this,X,!0,Xg);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){h(this,X,Jg).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(c),h(this,X,Jg).call(this))},l=m=>{m.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let c=setTimeout(a,200)},Jg=function(){!r(this,X,ko)&&!r(this,X,Hi)||(p(this,X,!1,Xg),this.keepMounted||p(this,X,!1,Kg),h(this,X,qS).call(this))},US=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=gp(t);if(e){e.focus();return}let a=Di(t);if(a.length>0){a[0].focus();return}t.focus()},qS=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,Bi)?.focus(),p(this,Bi,void 0)},vp=new WeakMap,PS=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Di(e);if(a.length===0){t.preventDefault();return}let l=a[0],c=a[a.length-1],m=l.matches(":focus"),x=c.matches(":focus"),C=!a.some(T=>T.matches(":focus"));t.shiftKey&&(m||C)?(t.preventDefault(),c.focus()):!t.shiftKey&&x&&(t.preventDefault(),l.focus())},d(Kt,4,"keepMounted",HS,sr,Hg),d(Kt,4,"initialFocus",DS,sr,Bg),d(Kt,4,"finalFocus",NS,sr,Fg),Ug=d(Kt,20,"#mounted",MS,X,Vg),Hi=Ug.get,Kg=Ug.set,Pg=d(Kt,20,"#startingStyle",zS,X,qg),Gg=Pg.get,Yg=Pg.set,Wg=d(Kt,20,"#endingStyle",LS,X,jg),ko=Wg.get,Xg=Wg.set,$(Kt,sr),g(sr,"tagName","dui-alert-dialog-popup"),g(sr,"styles",[y,mN,fN]);var gN=v`
|
|
1379
1379
|
:host {
|
|
1380
1380
|
display: contents;
|
|
1381
1381
|
}
|
|
1382
|
-
`,
|
|
1382
|
+
`,nd=class extends b{static tagName="dui-alert-dialog-close";static styles=[y,gN];#t=new K(this,{context:Fo,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
1383
1383
|
<span @click="${this.#e}">
|
|
1384
1384
|
<slot></slot>
|
|
1385
1385
|
</span>
|
|
1386
|
-
`}};var
|
|
1386
|
+
`}};var vN=k``,Fi=class extends or{static styles=[...or.styles,vN]};customElements.define(Fi.tagName,Fi);var Vi=class extends nd{};customElements.define(Vi.tagName,Vi);var bN=k`
|
|
1387
1387
|
/* ── Backdrop ── */
|
|
1388
1388
|
|
|
1389
1389
|
[part="backdrop"] {
|
|
@@ -1450,7 +1450,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1450
1450
|
transition-duration: 0s;
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
`,
|
|
1453
|
+
`,Ui=class extends sr{static styles=[...sr.styles,bN]};customElements.define(Ui.tagName,Ui);var qi=class extends id{};customElements.define(qi.tagName,qi);var cv=O("loading-status-change",{bubbles:!0,composed:!0}),xN=v`
|
|
1454
1454
|
:host {
|
|
1455
1455
|
--avatar-size: var(--space-12);
|
|
1456
1456
|
display: inline-block;
|
|
@@ -1480,19 +1480,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
1480
1480
|
height: 100%;
|
|
1481
1481
|
width: 100%;
|
|
1482
1482
|
}
|
|
1483
|
-
`,
|
|
1483
|
+
`,jS,WS,KS,GS,YS,XS,JS,Gt,Qg,Zg,tv,ev,rv,ov,QS,ZS,bt,sv,iv,tT,bp,Uo,Ts,ad,nv,av,lv,dv,Pe=class extends(JS=b,XS=[u()],YS=[u()],GS=[u({type:Number,attribute:"fallback-delay"})],KS=[u({reflect:!0})],WS=[E()],jS=[E()],JS){constructor(){super(...arguments);n(this,bt);n(this,Qg,i(Gt,8,this)),i(Gt,11,this);n(this,Zg,i(Gt,12,this,"")),i(Gt,15,this);n(this,tv,i(Gt,16,this)),i(Gt,19,this);n(this,ev,i(Gt,20,this)),i(Gt,23,this);n(this,rv,i(Gt,24,this,"idle")),i(Gt,27,this);n(this,sv,i(Gt,28,this,!1)),i(Gt,31,this);n(this,Uo);n(this,Ts)}connectedCallback(){super.connectedCallback(),h(this,bt,lv).call(this),h(this,bt,nv).call(this)}disconnectedCallback(){super.disconnectedCallback(),h(this,bt,av).call(this),h(this,bt,dv).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&h(this,bt,nv).call(this),t.has("fallbackDelay")&&h(this,bt,lv).call(this)}render(){let t=this.src&&r(this,bt,QS)==="loaded",e=!t&&r(this,bt,tT);return f`
|
|
1484
1484
|
<span part="root">
|
|
1485
|
-
${t?
|
|
1485
|
+
${t?f`
|
|
1486
1486
|
<img
|
|
1487
1487
|
part="image"
|
|
1488
1488
|
src="${this.src}"
|
|
1489
1489
|
alt="${this.alt}"
|
|
1490
1490
|
/>
|
|
1491
|
-
`:e?
|
|
1491
|
+
`:e?f`
|
|
1492
1492
|
<span part="fallback"><slot></slot></span>
|
|
1493
1493
|
`:I}
|
|
1494
1494
|
</span>
|
|
1495
|
-
`}};
|
|
1495
|
+
`}};Gt=S(JS),Qg=new WeakMap,Zg=new WeakMap,tv=new WeakMap,ev=new WeakMap,rv=new WeakMap,bt=new WeakSet,sv=new WeakMap,Uo=new WeakMap,Ts=new WeakMap,ad=function(t){p(this,bt,t,ZS),this.dispatchEvent(cv({status:t}))},nv=function(){if(h(this,bt,av).call(this),!this.src){h(this,bt,ad).call(this,"error");return}h(this,bt,ad).call(this,"loading");let t=new Image;t.onload=()=>h(this,bt,ad).call(this,"loaded"),t.onerror=()=>h(this,bt,ad).call(this,"error"),t.src=this.src,p(this,Uo,t)},av=function(){r(this,Uo)&&(r(this,Uo).onload=null,r(this,Uo).onerror=null,p(this,Uo,void 0))},lv=function(){if(h(this,bt,dv).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){p(this,bt,!0,bp);return}p(this,bt,!1,bp),p(this,Ts,setTimeout(()=>{p(this,bt,!0,bp)},this.fallbackDelay))},dv=function(){r(this,Ts)!==void 0&&(clearTimeout(r(this,Ts)),p(this,Ts,void 0))},d(Gt,4,"src",XS,Pe,Qg),d(Gt,4,"alt",YS,Pe,Zg),d(Gt,4,"fallbackDelay",GS,Pe,tv),d(Gt,4,"size",KS,Pe,ev),ov=d(Gt,20,"#imageStatus",WS,bt,rv),QS=ov.get,ZS=ov.set,iv=d(Gt,20,"#delayPassed",jS,bt,sv),tT=iv.get,bp=iv.set,$(Gt,Pe),g(Pe,"tagName","dui-avatar"),g(Pe,"styles",[y,xN]);var yN=k`
|
|
1496
1496
|
:host {
|
|
1497
1497
|
--avatar-bg: oklch(from var(--foreground) l c h / 0.08);
|
|
1498
1498
|
--avatar-fg: var(--text-2);
|
|
@@ -1512,7 +1512,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1512
1512
|
font-weight: var(--font-weight-medium);
|
|
1513
1513
|
line-height: var(--line-height-none);
|
|
1514
1514
|
}
|
|
1515
|
-
`,
|
|
1515
|
+
`,Pi=class extends Pe{static styles=[...Pe.styles,yN]};customElements.define(Pi.tagName,Pi);var wN=v`
|
|
1516
1516
|
:host {
|
|
1517
1517
|
display: inline-block;
|
|
1518
1518
|
}
|
|
@@ -1521,11 +1521,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1521
1521
|
display: inline-flex;
|
|
1522
1522
|
align-items: center;
|
|
1523
1523
|
}
|
|
1524
|
-
`,
|
|
1524
|
+
`,ji=class extends b{static tagName="dui-badge";static styles=[y,wN];render(){return f`
|
|
1525
1525
|
<span part="root">
|
|
1526
1526
|
<slot></slot>
|
|
1527
1527
|
</span>
|
|
1528
|
-
`}};var
|
|
1528
|
+
`}};var kN=k`
|
|
1529
1529
|
/* =================================================================
|
|
1530
1530
|
* Two-axis variant system:
|
|
1531
1531
|
* variant → semantic intent (neutral, accent, danger)
|
|
@@ -1612,7 +1612,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1612
1612
|
white-space: nowrap;
|
|
1613
1613
|
border: var(--border-width-thin) solid var(--badge-border);
|
|
1614
1614
|
}
|
|
1615
|
-
`,
|
|
1615
|
+
`,Wi=class extends ji{static styles=[...ji.styles,kN]};customElements.define(Wi.tagName,Wi);var EN=v`
|
|
1616
1616
|
:host {
|
|
1617
1617
|
display: block;
|
|
1618
1618
|
}
|
|
@@ -1625,13 +1625,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
1625
1625
|
margin: 0;
|
|
1626
1626
|
padding: 0;
|
|
1627
1627
|
}
|
|
1628
|
-
`,
|
|
1628
|
+
`,Ki=class extends b{static tagName="dui-breadcrumb";static styles=[y,EN];render(){return f`
|
|
1629
1629
|
<nav aria-label="breadcrumb">
|
|
1630
1630
|
<ol part="root">
|
|
1631
1631
|
<slot></slot>
|
|
1632
1632
|
</ol>
|
|
1633
1633
|
</nav>
|
|
1634
|
-
`}};var
|
|
1634
|
+
`}};var CN=v`
|
|
1635
1635
|
:host {
|
|
1636
1636
|
display: inline-flex;
|
|
1637
1637
|
}
|
|
@@ -1640,11 +1640,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1640
1640
|
display: inline-flex;
|
|
1641
1641
|
align-items: center;
|
|
1642
1642
|
}
|
|
1643
|
-
`,
|
|
1643
|
+
`,Gi=class extends b{static tagName="dui-breadcrumb-item";static styles=[y,CN];render(){return f`
|
|
1644
1644
|
<li part="root">
|
|
1645
1645
|
<slot></slot>
|
|
1646
1646
|
</li>
|
|
1647
|
-
`}};var
|
|
1647
|
+
`}};var $N=v`
|
|
1648
1648
|
:host {
|
|
1649
1649
|
display: inline-flex;
|
|
1650
1650
|
}
|
|
@@ -1653,11 +1653,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1653
1653
|
display: inline-flex;
|
|
1654
1654
|
align-items: center;
|
|
1655
1655
|
}
|
|
1656
|
-
`,
|
|
1656
|
+
`,Yi=class extends b{static tagName="dui-breadcrumb-link";static styles=[y,$N];render(){return f`
|
|
1657
1657
|
<span part="root">
|
|
1658
1658
|
<slot></slot>
|
|
1659
1659
|
</span>
|
|
1660
|
-
`}};var
|
|
1660
|
+
`}};var SN=v`
|
|
1661
1661
|
:host {
|
|
1662
1662
|
display: inline-flex;
|
|
1663
1663
|
}
|
|
@@ -1666,7 +1666,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1666
1666
|
display: inline-flex;
|
|
1667
1667
|
align-items: center;
|
|
1668
1668
|
}
|
|
1669
|
-
`,
|
|
1669
|
+
`,Xi=class extends b{static tagName="dui-breadcrumb-page";static styles=[y,SN];render(){return f`
|
|
1670
1670
|
<span
|
|
1671
1671
|
role="link"
|
|
1672
1672
|
aria-disabled="true"
|
|
@@ -1675,7 +1675,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1675
1675
|
>
|
|
1676
1676
|
<slot></slot>
|
|
1677
1677
|
</span>
|
|
1678
|
-
`}};var
|
|
1678
|
+
`}};var TN=v`
|
|
1679
1679
|
:host {
|
|
1680
1680
|
display: flex;
|
|
1681
1681
|
}
|
|
@@ -1684,7 +1684,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1684
1684
|
display: flex;
|
|
1685
1685
|
align-items: center;
|
|
1686
1686
|
}
|
|
1687
|
-
`,
|
|
1687
|
+
`,Ji=class extends b{static tagName="dui-breadcrumb-separator";static styles=[y,TN];render(){return f`
|
|
1688
1688
|
<li
|
|
1689
1689
|
role="presentation"
|
|
1690
1690
|
aria-hidden="true"
|
|
@@ -1692,7 +1692,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1692
1692
|
>
|
|
1693
1693
|
<slot>/</slot>
|
|
1694
1694
|
</li>
|
|
1695
|
-
`}};var
|
|
1695
|
+
`}};var _N=v`
|
|
1696
1696
|
:host {
|
|
1697
1697
|
display: flex;
|
|
1698
1698
|
align-items: center;
|
|
@@ -1704,7 +1704,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1704
1704
|
align-items: center;
|
|
1705
1705
|
justify-content: center;
|
|
1706
1706
|
}
|
|
1707
|
-
`,
|
|
1707
|
+
`,Qi=class extends b{static tagName="dui-breadcrumb-ellipsis";static styles=[y,_N];render(){return f`
|
|
1708
1708
|
<span
|
|
1709
1709
|
role="presentation"
|
|
1710
1710
|
aria-hidden="true"
|
|
@@ -1712,23 +1712,23 @@ label, legend, caption, figcaption, th, td {
|
|
|
1712
1712
|
>
|
|
1713
1713
|
<slot>…</slot>
|
|
1714
1714
|
</span>
|
|
1715
|
-
`}};var
|
|
1715
|
+
`}};var AN=k`
|
|
1716
1716
|
[part="root"] {
|
|
1717
1717
|
gap: var(--space-2);
|
|
1718
1718
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
1719
1719
|
font-family: var(--font-sans);
|
|
1720
1720
|
color: var(--text-2);
|
|
1721
1721
|
}
|
|
1722
|
-
`,
|
|
1722
|
+
`,Zi=class extends Ki{static styles=[...Ki.styles,AN]};customElements.define(Zi.tagName,Zi);var RN=k`
|
|
1723
1723
|
[part="root"] {
|
|
1724
1724
|
color: var(--text-2);
|
|
1725
1725
|
width: var(--space-4);
|
|
1726
1726
|
}
|
|
1727
|
-
`,
|
|
1727
|
+
`,tn=class extends Qi{static styles=[...Qi.styles,RN]};customElements.define(tn.tagName,tn);var IN=k`
|
|
1728
1728
|
[part="root"] {
|
|
1729
1729
|
gap: var(--space-1_5);
|
|
1730
1730
|
}
|
|
1731
|
-
`,
|
|
1731
|
+
`,en=class extends Gi{static styles=[...Gi.styles,IN]};customElements.define(en.tagName,en);var ON=k`
|
|
1732
1732
|
[part="root"] {
|
|
1733
1733
|
color: var(--text-2);
|
|
1734
1734
|
}
|
|
@@ -1742,17 +1742,17 @@ label, legend, caption, figcaption, th, td {
|
|
|
1742
1742
|
[part="root"] ::slotted(a:hover) {
|
|
1743
1743
|
color: var(--text-1);
|
|
1744
1744
|
}
|
|
1745
|
-
`,
|
|
1745
|
+
`,rn=class extends Yi{static styles=[...Yi.styles,ON]};customElements.define(rn.tagName,rn);var LN=k`
|
|
1746
1746
|
[part="root"] {
|
|
1747
1747
|
color: var(--text-1);
|
|
1748
1748
|
font-weight: var(--font-weight-regular);
|
|
1749
1749
|
}
|
|
1750
|
-
`,
|
|
1750
|
+
`,on=class extends Xi{static styles=[...Xi.styles,LN]};customElements.define(on.tagName,on);var zN=k`
|
|
1751
1751
|
[part="root"] {
|
|
1752
1752
|
--icon-size: var(--space-3_5);
|
|
1753
1753
|
color: color-mix(in oklch, var(--text-2) 50%, transparent);
|
|
1754
1754
|
}
|
|
1755
|
-
`,
|
|
1755
|
+
`,sn=class extends Ji{static styles=[...Ji.styles,zN]};customElements.define(sn.tagName,sn);var fv=O("dui-navigate",{bubbles:!0,composed:!0}),MN=v`
|
|
1756
1756
|
:host {
|
|
1757
1757
|
display: inline-block;
|
|
1758
1758
|
}
|
|
@@ -1777,26 +1777,26 @@ label, legend, caption, figcaption, th, td {
|
|
|
1777
1777
|
user-select: none;
|
|
1778
1778
|
-webkit-tap-highlight-color: transparent;
|
|
1779
1779
|
}
|
|
1780
|
-
`,
|
|
1780
|
+
`,eT,rT,oT,sT,iT,je,pv,hv,uv,mv,xp,yp,nn,nT,aT,Te=class extends(iT=b,sT=[u({type:Boolean,reflect:!0})],oT=[u({type:Boolean,attribute:"focusable-when-disabled"})],rT=[u()],eT=[u()],iT){constructor(){super(...arguments);n(this,nn);n(this,pv,i(je,8,this,!1)),i(je,11,this);n(this,hv,i(je,12,this,!1)),i(je,15,this);n(this,uv,i(je,16,this,"button")),i(je,19,this);n(this,mv,i(je,20,this)),i(je,23,this);n(this,xp,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});n(this,yp,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(fv({href:this.href})))})}render(){return this.href!==void 0?h(this,nn,aT).call(this):h(this,nn,nT).call(this)}};je=S(iT),pv=new WeakMap,hv=new WeakMap,uv=new WeakMap,mv=new WeakMap,xp=new WeakMap,yp=new WeakMap,nn=new WeakSet,nT=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
|
|
1781
1781
|
<button
|
|
1782
1782
|
part="root"
|
|
1783
1783
|
type="${this.type}"
|
|
1784
1784
|
?disabled="${this.disabled&&!this.focusableWhenDisabled}"
|
|
1785
1785
|
aria-disabled="${t||I}"
|
|
1786
|
-
@click="${r(this,
|
|
1786
|
+
@click="${r(this,xp)}"
|
|
1787
1787
|
>
|
|
1788
1788
|
<slot></slot>
|
|
1789
1789
|
</button>
|
|
1790
|
-
`},
|
|
1790
|
+
`},aT=function(){return f`
|
|
1791
1791
|
<a
|
|
1792
1792
|
part="root"
|
|
1793
1793
|
href="${this.href??I}"
|
|
1794
1794
|
aria-disabled="${this.disabled||I}"
|
|
1795
|
-
@click="${r(this,
|
|
1795
|
+
@click="${r(this,yp)}"
|
|
1796
1796
|
>
|
|
1797
1797
|
<slot></slot>
|
|
1798
1798
|
</a>
|
|
1799
|
-
`},d(
|
|
1799
|
+
`},d(je,4,"disabled",sT,Te,pv),d(je,4,"focusableWhenDisabled",oT,Te,hv),d(je,4,"type",rT,Te,uv),d(je,4,"href",eT,Te,mv),$(je,Te),g(Te,"tagName","dui-button"),g(Te,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Te,"styles",[y,MN]);var NN=k`
|
|
1800
1800
|
/* =================================================================
|
|
1801
1801
|
* Two-axis variant system:
|
|
1802
1802
|
* variant → semantic intent (neutral, primary, danger)
|
|
@@ -2017,7 +2017,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2017
2017
|
:host([data-open][appearance="soft"]) [part="root"]:not(:disabled):not([aria-disabled="true"]) {
|
|
2018
2018
|
background: oklch(from var(--_intent-base) l c h / 0.18);
|
|
2019
2019
|
}
|
|
2020
|
-
`,
|
|
2020
|
+
`,an=class extends Te{static styles=[...Te.styles,NN]};customElements.define(an.tagName,an);var Dv=O("value-change",{bubbles:!0,composed:!0}),DN=v`
|
|
2021
2021
|
:host {
|
|
2022
2022
|
display: inline-block;
|
|
2023
2023
|
}
|
|
@@ -2077,14 +2077,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
2077
2077
|
[part="day"]:disabled {
|
|
2078
2078
|
cursor: not-allowed;
|
|
2079
2079
|
}
|
|
2080
|
-
`,
|
|
2081
|
-
<div part="root" role="grid" @keydown="${r(this,
|
|
2080
|
+
`,lT,dT,cT,pT,hT,uT,mT,fT,gT,vT,bT,xT,st,gv,vv,bv,xv,yv,wv,kv,Ev,Cv,yT,Iv,M,$v,Sv,Ov,wp,Tv,_v,kp,Ep,Av,Rv,Cp,$p,Lv,yr,Sp,ld,Tp,zv,wT,kT,ET,Mv,Nv,_p,Ap,Rp,Ip,pe=class extends(xT=b,bT=[u()],vT=[u({attribute:"default-value"})],gT=[u()],fT=[u()],mT=[u()],uT=[u({type:Boolean,reflect:!0})],hT=[u({type:Boolean,reflect:!0,attribute:"read-only"})],pT=[E()],cT=[E()],dT=[E()],lT=[E()],xT){constructor(){super(...arguments);n(this,M);n(this,gv,i(st,8,this)),i(st,11,this);n(this,vv,i(st,12,this)),i(st,15,this);n(this,bv,i(st,16,this)),i(st,19,this);n(this,xv,i(st,20,this)),i(st,23,this);n(this,yv,i(st,24,this,"en-US")),i(st,27,this);n(this,wv,i(st,28,this,!1)),i(st,31,this);n(this,kv,i(st,32,this,!1)),i(st,35,this);n(this,Ev,i(st,36,this)),i(st,39,this);n(this,$v,i(st,40,this,new Date)),i(st,43,this);n(this,Tv,i(st,44,this,new Date().getMonth())),i(st,47,this);n(this,Av,i(st,48,this,new Date().getFullYear())),i(st,51,this);n(this,_p,t=>{let e=t.currentTarget,a=e.dataset.date;a&&!e.disabled&&h(this,M,Mv).call(this,a)});n(this,Ap,t=>{let e=new Date(r(this,M,Ov)),a=!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=h(this,M,Tp).call(this,e.getFullYear(),e.getMonth());e.setDate(l);break}case"Enter":case" ":t.preventDefault(),h(this,M,ld).call(this,e)||h(this,M,Mv).call(this,h(this,M,yr).call(this,e));return;default:a=!1}a&&(t.preventDefault(),p(this,M,e,wp),p(this,M,e.getMonth(),Ep),p(this,M,e.getFullYear(),$p),this.updateComplete.then(()=>{let l=h(this,M,yr).call(this,e);this.shadowRoot?.querySelector(`[data-date="${l}"]`)?.focus()}))});n(this,Rp,()=>{h(this,M,Nv).call(this,-1)});n(this,Ip,()=>{h(this,M,Nv).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,M,this.defaultValue,Iv);let t=r(this,M,Lv);if(t){let e=new Date(t+"T00:00:00");p(this,M,e.getMonth(),Ep),p(this,M,e.getFullYear(),$p),p(this,M,e,wp)}}render(){let t=h(this,M,wT).call(this),e=h(this,M,kT).call(this),a=h(this,M,ET).call(this),l=h(this,M,yr).call(this,r(this,M,Ov));return f`
|
|
2081
|
+
<div part="root" role="grid" @keydown="${r(this,Ap)}">
|
|
2082
2082
|
<div part="header">
|
|
2083
2083
|
<button
|
|
2084
2084
|
part="prev"
|
|
2085
2085
|
type="button"
|
|
2086
2086
|
aria-label="Previous month"
|
|
2087
|
-
@click="${r(this,
|
|
2087
|
+
@click="${r(this,Rp)}"
|
|
2088
2088
|
>
|
|
2089
2089
|
<slot name="prev">‹</slot>
|
|
2090
2090
|
</button>
|
|
@@ -2093,15 +2093,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
2093
2093
|
part="next"
|
|
2094
2094
|
type="button"
|
|
2095
2095
|
aria-label="Next month"
|
|
2096
|
-
@click="${r(this,
|
|
2096
|
+
@click="${r(this,Ip)}"
|
|
2097
2097
|
>
|
|
2098
2098
|
<slot name="next">›</slot>
|
|
2099
2099
|
</button>
|
|
2100
2100
|
</div>
|
|
2101
2101
|
|
|
2102
2102
|
<div part="grid" role="grid">
|
|
2103
|
-
${e.map(c=>
|
|
2104
|
-
${t.flat().map(c=>
|
|
2103
|
+
${e.map(c=>f`<div part="weekday" role="columnheader">${c}</div>`)}
|
|
2104
|
+
${t.flat().map(c=>f`
|
|
2105
2105
|
<button
|
|
2106
2106
|
part="day"
|
|
2107
2107
|
type="button"
|
|
@@ -2113,12 +2113,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
2113
2113
|
?data-outside-month="${c.isOutsideMonth}"
|
|
2114
2114
|
?disabled="${c.isDisabled}"
|
|
2115
2115
|
aria-selected="${c.isSelected?"true":"false"}"
|
|
2116
|
-
@click="${r(this,
|
|
2116
|
+
@click="${r(this,_p)}"
|
|
2117
2117
|
>${c.day}</button>
|
|
2118
2118
|
`)}
|
|
2119
2119
|
</div>
|
|
2120
2120
|
</div>
|
|
2121
|
-
`}};
|
|
2121
|
+
`}};st=S(xT),gv=new WeakMap,vv=new WeakMap,bv=new WeakMap,xv=new WeakMap,yv=new WeakMap,wv=new WeakMap,kv=new WeakMap,Ev=new WeakMap,M=new WeakSet,$v=new WeakMap,Tv=new WeakMap,Av=new WeakMap,Lv=function(){return this.value??r(this,M,yT)},yr=function(t){let e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${e}-${a}-${l}`},Sp=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},ld=function(t){if(this.disabled)return!0;let e=h(this,M,yr).call(this,t);return!!(this.min&&e<this.min||this.max&&e>this.max)},Tp=function(t,e){return new Date(t,e+1,0).getDate()},zv=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}},wT=function(){let t=r(this,M,Cp),e=r(this,M,kp),a=h(this,M,Tp).call(this,t,e),l=new Date(t,e,1).getDay(),c=h(this,M,zv).call(this),m=new Date,x=r(this,M,Lv),C=l-c;C<0&&(C+=7);let T=[],w=e===0?11:e-1,R=e===0?t-1:t,_=h(this,M,Tp).call(this,R,w);for(let D=C-1;D>=0;D--){let j=_-D,G=new Date(R,w,j);T.push({date:G,day:j,iso:h(this,M,yr).call(this,G),isToday:h(this,M,Sp).call(this,G,m),isSelected:h(this,M,yr).call(this,G)===x,isOutsideMonth:!0,isDisabled:h(this,M,ld).call(this,G)})}for(let D=1;D<=a;D++){let j=new Date(t,e,D);T.push({date:j,day:D,iso:h(this,M,yr).call(this,j),isToday:h(this,M,Sp).call(this,j,m),isSelected:h(this,M,yr).call(this,j)===x,isOutsideMonth:!1,isDisabled:h(this,M,ld).call(this,j)})}let z=42-T.length,V=e===11?0:e+1,Q=e===11?t+1:t;for(let D=1;D<=z;D++){let j=new Date(Q,V,D);T.push({date:j,day:D,iso:h(this,M,yr).call(this,j),isToday:h(this,M,Sp).call(this,j,m),isSelected:h(this,M,yr).call(this,j)===x,isOutsideMonth:!0,isDisabled:h(this,M,ld).call(this,j)})}let U=[];for(let D=0;D<T.length;D+=7)U.push(T.slice(D,D+7));return U},kT=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),e=h(this,M,zv).call(this),a=[];for(let l=0;l<7;l++){let c=new Date(2015,0,4+e+l);a.push(t.format(c))}return a},ET=function(){let t=new Date(r(this,M,Cp),r(this,M,kp),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},Mv=function(t){this.disabled||this.readOnly||(this.value===void 0&&p(this,M,t,Iv),this.dispatchEvent(Dv({value:t})))},Nv=function(t){let e=r(this,M,kp)+t,a=r(this,M,Cp);e<0?(e=11,a--):e>11&&(e=0,a++),p(this,M,e,Ep),p(this,M,a,$p),p(this,M,new Date(a,e,1),wp)},_p=new WeakMap,Ap=new WeakMap,Rp=new WeakMap,Ip=new WeakMap,d(st,4,"value",bT,pe,gv),d(st,4,"defaultValue",vT,pe,vv),d(st,4,"min",gT,pe,bv),d(st,4,"max",fT,pe,xv),d(st,4,"locale",mT,pe,yv),d(st,4,"disabled",uT,pe,wv),d(st,4,"readOnly",hT,pe,kv),Cv=d(st,20,"#internalValue",pT,M,Ev),yT=Cv.get,Iv=Cv.set,Sv=d(st,20,"#focusedDate",cT,M,$v),Ov=Sv.get,wp=Sv.set,_v=d(st,20,"#viewMonth",dT,M,Tv),kp=_v.get,Ep=_v.set,Rv=d(st,20,"#viewYear",lT,M,Av),Cp=Rv.get,$p=Rv.set,$(st,pe),g(pe,"tagName","dui-calendar"),g(pe,"styles",[y,DN]);var HN=k`
|
|
2122
2122
|
[part="root"] {
|
|
2123
2123
|
padding: var(--space-3);
|
|
2124
2124
|
font-family: var(--font-sans);
|
|
@@ -2206,7 +2206,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2206
2206
|
0 0 0 var(--focus-ring-offset) var(--background),
|
|
2207
2207
|
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
|
|
2208
2208
|
}
|
|
2209
|
-
`,
|
|
2209
|
+
`,ln=class extends pe{static styles=[...pe.styles,HN]};customElements.define(ln.tagName,ln);var BN=v`
|
|
2210
2210
|
:host {
|
|
2211
2211
|
display: block;
|
|
2212
2212
|
}
|
|
@@ -2240,28 +2240,28 @@ label, legend, caption, figcaption, th, td {
|
|
|
2240
2240
|
display: flex;
|
|
2241
2241
|
align-items: center;
|
|
2242
2242
|
}
|
|
2243
|
-
`,
|
|
2243
|
+
`,CT,$T,ST,TT,Or,Hv,Bv,Fv,_T,AT,zr,Vv,Uv,RT,IT,dd,cd,pd,dn,Op,Lr=class extends(TT=b,ST=[u({reflect:!0})],$T=[E()],CT=[E()],TT){constructor(){super(...arguments);n(this,zr);n(this,Hv,i(Or,8,this,"")),i(Or,11,this);n(this,Bv,i(Or,12,this,!1)),i(Or,15,this);n(this,Vv,i(Or,16,this,!1)),i(Or,19,this);n(this,dd,!1);n(this,cd,!1);n(this,pd,!1);n(this,dn,t=>{let e=t.target,a=e.assignedElements().length>0;e.name==="title"?p(this,dd,a):e.name==="description"?p(this,cd,a):e.name==="action"&&p(this,pd,a),p(this,zr,r(this,dd)||r(this,cd)||r(this,pd),AT)});n(this,Op,t=>{let e=t.target;p(this,zr,e.assignedElements().length>0,IT)})}render(){return f`
|
|
2244
2244
|
<div part="root">
|
|
2245
|
-
<div part="header" ?hidden=${!r(this,
|
|
2245
|
+
<div part="header" ?hidden=${!r(this,zr,_T)}>
|
|
2246
2246
|
<div part="header-text">
|
|
2247
|
-
<slot name="title" @slotchange=${r(this,
|
|
2247
|
+
<slot name="title" @slotchange=${r(this,dn)}></slot>
|
|
2248
2248
|
<slot
|
|
2249
2249
|
name="description"
|
|
2250
|
-
@slotchange=${r(this,
|
|
2250
|
+
@slotchange=${r(this,dn)}
|
|
2251
2251
|
></slot>
|
|
2252
2252
|
</div>
|
|
2253
2253
|
<div part="action">
|
|
2254
|
-
<slot name="action" @slotchange=${r(this,
|
|
2254
|
+
<slot name="action" @slotchange=${r(this,dn)}></slot>
|
|
2255
2255
|
</div>
|
|
2256
2256
|
</div>
|
|
2257
2257
|
<div part="content">
|
|
2258
2258
|
<slot></slot>
|
|
2259
2259
|
</div>
|
|
2260
|
-
<div part="footer" ?hidden=${!r(this,
|
|
2261
|
-
<slot name="footer" @slotchange=${r(this,
|
|
2260
|
+
<div part="footer" ?hidden=${!r(this,zr,RT)}>
|
|
2261
|
+
<slot name="footer" @slotchange=${r(this,Op)}></slot>
|
|
2262
2262
|
</div>
|
|
2263
2263
|
</div>
|
|
2264
|
-
`}};
|
|
2264
|
+
`}};Or=S(TT),Hv=new WeakMap,Bv=new WeakMap,zr=new WeakSet,Vv=new WeakMap,dd=new WeakMap,cd=new WeakMap,pd=new WeakMap,dn=new WeakMap,Op=new WeakMap,d(Or,4,"size",ST,Lr,Hv),Fv=d(Or,20,"#hasHeader",$T,zr,Bv),_T=Fv.get,AT=Fv.set,Uv=d(Or,20,"#hasFooter",CT,zr,Vv),RT=Uv.get,IT=Uv.set,$(Or,Lr),g(Lr,"tagName","dui-card"),g(Lr,"styles",[y,BN]);var FN=k`
|
|
2265
2265
|
/* ---------------------------------------------------------------
|
|
2266
2266
|
* Size tokens
|
|
2267
2267
|
* --------------------------------------------------------------- */
|
|
@@ -2349,7 +2349,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2349
2349
|
gap: var(--space-2);
|
|
2350
2350
|
justify-content: flex-end;
|
|
2351
2351
|
}
|
|
2352
|
-
`,
|
|
2352
|
+
`,cn=class extends Lr{static styles=[...Lr.styles,FN]};customElements.define(cn.tagName,cn);var VN=v`
|
|
2353
2353
|
:host {
|
|
2354
2354
|
display: block;
|
|
2355
2355
|
min-width: 100%;
|
|
@@ -2379,15 +2379,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
2379
2379
|
--_columns: 1;
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
|
-
`,
|
|
2382
|
+
`,OT,LT,Lp,qv,Mr=class extends(LT=b,OT=[u({reflect:!0})],LT){constructor(){super(...arguments);n(this,qv,i(Lp,8,this,"3")),i(Lp,11,this)}render(){return f`
|
|
2383
2383
|
<div part="root">
|
|
2384
2384
|
<slot></slot>
|
|
2385
2385
|
</div>
|
|
2386
|
-
`}};
|
|
2386
|
+
`}};Lp=S(LT),qv=new WeakMap,d(Lp,4,"columns",OT,Mr,qv),$(Lp,Mr),g(Mr,"tagName","dui-card-grid"),g(Mr,"styles",[y,VN]);var UN=k`
|
|
2387
2387
|
[part="root"] {
|
|
2388
2388
|
gap: var(--space-4);
|
|
2389
2389
|
}
|
|
2390
|
-
`,
|
|
2390
|
+
`,pn=class extends Mr{static styles=[...Mr.styles,UN]};customElements.define(pn.tagName,pn);var zp=Symbol("dui-checkbox-group");var ob=O("checked-change",{bubbles:!0,composed:!0}),qN=v`
|
|
2391
2391
|
:host {
|
|
2392
2392
|
display: inline-flex;
|
|
2393
2393
|
align-items: start;
|
|
@@ -2430,7 +2430,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2430
2430
|
display: none;
|
|
2431
2431
|
}
|
|
2432
2432
|
|
|
2433
|
-
`,
|
|
2433
|
+
`,PN=f`
|
|
2434
2434
|
<svg
|
|
2435
2435
|
class="Icon"
|
|
2436
2436
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -2443,7 +2443,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2443
2443
|
>
|
|
2444
2444
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
2445
2445
|
</svg>
|
|
2446
|
-
`,
|
|
2446
|
+
`,jN=f`
|
|
2447
2447
|
<svg
|
|
2448
2448
|
class="Icon"
|
|
2449
2449
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -2456,7 +2456,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2456
2456
|
>
|
|
2457
2457
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
2458
2458
|
</svg>
|
|
2459
|
-
`,
|
|
2459
|
+
`,zT,MT,NT,DT,HT,BT,FT,VT,UT,qT,PT,hn,lt,Pv,jv,Wv,Kv,Gv,Yv,Xv,Jv,Qv,Zv,tb,jT,eb,Xt,_s,hd,WT,rb,KT,ud,md,Mp,Yt=class extends(PT=b,qT=[u({type:Boolean,reflect:!0})],UT=[u({type:Boolean,attribute:"default-checked"})],VT=[u({type:Boolean,reflect:!0})],FT=[u({type:Boolean,reflect:!0})],BT=[u({type:Boolean,reflect:!0,attribute:"read-only"})],HT=[u({type:Boolean,reflect:!0})],DT=[u()],NT=[u()],MT=[u({type:Boolean})],zT=[E()],PT){constructor(){super();n(this,Xt);n(this,hn);n(this,Pv,i(lt,8,this)),i(lt,11,this);n(this,jv,i(lt,12,this,!1)),i(lt,15,this);n(this,Wv,i(lt,16,this,!1)),i(lt,19,this);n(this,Kv,i(lt,20,this,!1)),i(lt,23,this);n(this,Gv,i(lt,24,this,!1)),i(lt,27,this);n(this,Yv,i(lt,28,this,!1)),i(lt,31,this);n(this,Xv,i(lt,32,this)),i(lt,35,this);n(this,Jv,i(lt,36,this)),i(lt,39,this);n(this,Qv,i(lt,40,this,!1)),i(lt,43,this);n(this,Zv,i(lt,44,this,!1)),i(lt,47,this);n(this,_s,new K(this,{context:zp,subscribe:!0}));n(this,ud,t=>{r(this,md).call(this)});n(this,md,()=>{if(r(this,Xt,rb)||this.readOnly)return;let t=r(this,_s).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!r(this,Xt,hd)):t.toggle(this.value);return}let e=!r(this,Xt,hd);this.checked===void 0&&(p(this,Xt,e,eb),this.indeterminate=!1),this.dispatchEvent(ob({checked:e,indeterminate:!1}))});n(this,Mp,t=>{t.key===" "&&(t.preventDefault(),r(this,md).call(this))});p(this,hn,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&p(this,Xt,!0,eb),this.addEventListener("click",r(this,ud))}willUpdate(){h(this,Xt,KT).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,ud))}render(){let t=r(this,Xt,hd),e=r(this,Xt,WT),a=r(this,Xt,rb),l=t||e;return f`
|
|
2460
2460
|
<span
|
|
2461
2461
|
part="root"
|
|
2462
2462
|
role="checkbox"
|
|
@@ -2471,7 +2471,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2471
2471
|
?data-disabled="${a}"
|
|
2472
2472
|
?data-readonly="${this.readOnly}"
|
|
2473
2473
|
?data-required="${this.required}"
|
|
2474
|
-
@keydown="${r(this,
|
|
2474
|
+
@keydown="${r(this,Mp)}"
|
|
2475
2475
|
>
|
|
2476
2476
|
<span
|
|
2477
2477
|
part="indicator"
|
|
@@ -2479,11 +2479,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
2479
2479
|
?data-unchecked="${!t&&!e}"
|
|
2480
2480
|
?data-indeterminate="${e}"
|
|
2481
2481
|
>
|
|
2482
|
-
${l?e?
|
|
2482
|
+
${l?e?jN:PN:I}
|
|
2483
2483
|
</span>
|
|
2484
2484
|
</span>
|
|
2485
2485
|
<slot></slot>
|
|
2486
|
-
`}};
|
|
2486
|
+
`}};lt=S(PT),hn=new WeakMap,Pv=new WeakMap,jv=new WeakMap,Wv=new WeakMap,Kv=new WeakMap,Gv=new WeakMap,Yv=new WeakMap,Xv=new WeakMap,Jv=new WeakMap,Qv=new WeakMap,Zv=new WeakMap,Xt=new WeakSet,_s=new WeakMap,hd=function(){let t=r(this,_s).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??r(this,Xt,jT)},WT=function(){let t=r(this,_s).value;if(t&&this.parent&&this.value!==void 0){let e=t.allValues.filter(a=>t.checkedValues.includes(a)).length;return e>0&&e<t.allValues.length}return this.indeterminate},rb=function(){return this.disabled||(r(this,_s).value?.disabled??!1)},KT=function(){r(this,Xt,hd)?r(this,hn).setFormValue(this.value??"on"):r(this,hn).setFormValue(null)},ud=new WeakMap,md=new WeakMap,Mp=new WeakMap,d(lt,4,"checked",qT,Yt,Pv),d(lt,4,"defaultChecked",UT,Yt,jv),d(lt,4,"indeterminate",VT,Yt,Wv),d(lt,4,"disabled",FT,Yt,Kv),d(lt,4,"readOnly",BT,Yt,Gv),d(lt,4,"required",HT,Yt,Yv),d(lt,4,"name",DT,Yt,Xv),d(lt,4,"value",NT,Yt,Jv),d(lt,4,"parent",MT,Yt,Qv),tb=d(lt,20,"#internalChecked",zT,Xt,Zv),jT=tb.get,eb=tb.set,$(lt,Yt),g(Yt,"tagName","dui-checkbox"),g(Yt,"formAssociated",!0),g(Yt,"styles",[y,qN]);var Hp=O("value-change",{bubbles:!0,composed:!0}),WN=v`
|
|
2487
2487
|
:host {
|
|
2488
2488
|
display: block;
|
|
2489
2489
|
}
|
|
@@ -2493,7 +2493,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2493
2493
|
flex-direction: column;
|
|
2494
2494
|
align-items: start;
|
|
2495
2495
|
}
|
|
2496
|
-
`,
|
|
2496
|
+
`,GT,YT,XT,JT,QT,ZT,t_,Jt,sb,ib,nb,ab,lb,db,e_,Np,ir,fd,Bp,Fp,cb,Dp,_e=class extends(t_=b,ZT=[u({attribute:!1})],QT=[u({attribute:!1})],JT=[u({attribute:!1})],XT=[u({type:Boolean,reflect:!0})],YT=[E()],GT=[vt({context:zp}),E()],t_){constructor(){super(...arguments);n(this,ir);n(this,sb,i(Jt,8,this)),i(Jt,11,this);n(this,ib,i(Jt,12,this,[])),i(Jt,15,this);n(this,nb,i(Jt,16,this,[])),i(Jt,19,this);n(this,ab,i(Jt,20,this,!1)),i(Jt,23,this);n(this,lb,i(Jt,24,this,[])),i(Jt,27,this);n(this,fd,()=>this.value??r(this,ir,e_));n(this,Bp,t=>{let e=r(this,fd).call(this),a=e.includes(t)?e.filter(l=>l!==t):[...e,t];this.value===void 0&&p(this,ir,a,Np),this.dispatchEvent(Hp(a))});n(this,Fp,t=>{let e=t?[...this.allValues]:[];this.value===void 0&&p(this,ir,e,Np),this.dispatchEvent(Hp(e))});n(this,cb,i(Jt,28,this,h(this,ir,Dp).call(this))),i(Jt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,ir,[...this.defaultValue],Np),this._ctx=h(this,ir,Dp).call(this)}willUpdate(){this._ctx=h(this,ir,Dp).call(this)}render(){return f`
|
|
2497
2497
|
<div
|
|
2498
2498
|
part="root"
|
|
2499
2499
|
role="group"
|
|
@@ -2501,7 +2501,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2501
2501
|
>
|
|
2502
2502
|
<slot></slot>
|
|
2503
2503
|
</div>
|
|
2504
|
-
`}};
|
|
2504
|
+
`}};Jt=S(t_),sb=new WeakMap,ib=new WeakMap,nb=new WeakMap,ab=new WeakMap,lb=new WeakMap,ir=new WeakSet,fd=new WeakMap,Bp=new WeakMap,Fp=new WeakMap,cb=new WeakMap,Dp=function(){return{checkedValues:r(this,fd).call(this),allValues:this.allValues,disabled:this.disabled,toggle:r(this,Bp),toggleAll:r(this,Fp)}},d(Jt,4,"value",ZT,_e,sb),d(Jt,4,"defaultValue",QT,_e,ib),d(Jt,4,"allValues",JT,_e,nb),d(Jt,4,"disabled",XT,_e,ab),db=d(Jt,20,"#internalValues",YT,ir,lb),e_=db.get,Np=db.set,d(Jt,4,"_ctx",GT,_e,cb),$(Jt,_e),g(_e,"tagName","dui-checkbox-group"),g(_e,"styles",[y,WN]);var KN=k`
|
|
2505
2505
|
:host {
|
|
2506
2506
|
--checkbox-size: var(--space-4_5);
|
|
2507
2507
|
gap: var(--space-2);
|
|
@@ -2554,7 +2554,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2554
2554
|
width: var(--space-3);
|
|
2555
2555
|
height: var(--space-3);
|
|
2556
2556
|
}
|
|
2557
|
-
`,
|
|
2557
|
+
`,un=class extends Yt{static styles=[...Yt.styles,KN]};customElements.define(un.tagName,un);var GN=k`
|
|
2558
2558
|
[part="root"] {
|
|
2559
2559
|
gap: var(--space-1);
|
|
2560
2560
|
}
|
|
@@ -2562,7 +2562,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2562
2562
|
[part="root"][data-disabled] {
|
|
2563
2563
|
opacity: 0.4;
|
|
2564
2564
|
}
|
|
2565
|
-
`,
|
|
2565
|
+
`,mn=class extends _e{static styles=[..._e.styles,GN]};customElements.define(mn.tagName,mn);var _b=O("open-change",{bubbles:!0,composed:!0}),YN=v`
|
|
2566
2566
|
:host {
|
|
2567
2567
|
display: block;
|
|
2568
2568
|
}
|
|
@@ -2595,34 +2595,34 @@ label, legend, caption, figcaption, th, td {
|
|
|
2595
2595
|
contain: content;
|
|
2596
2596
|
transition-property: height;
|
|
2597
2597
|
}
|
|
2598
|
-
`,
|
|
2598
|
+
`,r_,o_,s_,i_,n_,a_,l_,d_,c_,p_,wt,pb,hb,ub,mb,fb,gb,$b,Vp,q,vb,bb,Up,qp,xb,yb,h_,As,wb,kb,Sb,Pp,Eb,Cb,u_,Tb,Rs,Is,qo,gd,m_,f_,jp,Wp,We=class extends(p_=b,c_=[u({type:Boolean,reflect:!0})],d_=[u({type:Boolean,attribute:"default-open"})],l_=[u({type:Boolean,reflect:!0})],a_=[u({type:Boolean,attribute:"keep-mounted"})],n_=[E()],i_=[E()],s_=[E()],o_=[E()],r_=[E()],p_){constructor(){super(...arguments);n(this,q);n(this,pb,i(wt,8,this,!1)),i(wt,11,this);n(this,hb,i(wt,12,this,!1)),i(wt,15,this);n(this,ub,i(wt,16,this,!1)),i(wt,19,this);n(this,mb,i(wt,20,this,!1)),i(wt,23,this);n(this,fb,i(wt,24,this,!1)),i(wt,27,this);n(this,vb,i(wt,28,this,!1)),i(wt,31,this);n(this,xb,i(wt,32,this,"0")),i(wt,35,this);n(this,wb,i(wt,36,this,!1)),i(wt,39,this);n(this,Eb,i(wt,40,this,!1)),i(wt,43,this);n(this,Rs);n(this,Is,0);n(this,qo,!1);n(this,jp,t=>{t.propertyName==="height"&&(r(this,q,Up)?(p(this,q,!1,qp),this.keepMounted||p(this,q,!1,Pp)):r(this,q,gd)&&p(this,q,"auto",As))});n(this,Wp,()=>{if(this.disabled)return;let t=!r(this,q,gd);r(this,qo)||p(this,q,t,Tb),this.dispatchEvent(_b({open:t}))})}connectedCallback(){super.connectedCallback(),p(this,qo,this.hasAttribute("open")),!r(this,qo)&&this.defaultOpen&&p(this,q,!0,Tb)}willUpdate(t){t.has("open")&&r(this,Rs)!==void 0&&p(this,qo,!0);let e=r(this,q,gd);r(this,Rs)===void 0?(p(this,q,e,Pp),p(this,q,e?"auto":"0",As)):r(this,Rs)!==e&&(e?h(this,q,m_).call(this):h(this,q,f_).call(this)),p(this,Rs,e)}render(){let t=r(this,q,gd),e=r(this,q,Sb)||this.keepMounted;return f`
|
|
2599
2599
|
<button
|
|
2600
2600
|
part="trigger"
|
|
2601
2601
|
aria-expanded=${t}
|
|
2602
2602
|
?data-open=${t}
|
|
2603
2603
|
?data-disabled=${this.disabled}
|
|
2604
2604
|
?disabled=${this.disabled}
|
|
2605
|
-
@click=${r(this,
|
|
2605
|
+
@click=${r(this,Wp)}
|
|
2606
2606
|
>
|
|
2607
2607
|
<slot name="trigger"></slot>
|
|
2608
2608
|
</button>
|
|
2609
|
-
${e?
|
|
2609
|
+
${e?f`
|
|
2610
2610
|
<div
|
|
2611
2611
|
part="panel"
|
|
2612
2612
|
role="region"
|
|
2613
|
-
style="height: ${r(this,
|
|
2614
|
-
?data-open=${t&&!r(this,
|
|
2615
|
-
?data-starting-style=${r(this,
|
|
2616
|
-
?data-ending-style=${r(this,
|
|
2617
|
-
?hidden=${!r(this,
|
|
2618
|
-
@transitionend=${r(this,
|
|
2613
|
+
style="height: ${r(this,q,h_)}"
|
|
2614
|
+
?data-open=${t&&!r(this,q,$b)}
|
|
2615
|
+
?data-starting-style=${r(this,q,$b)}
|
|
2616
|
+
?data-ending-style=${r(this,q,Up)}
|
|
2617
|
+
?hidden=${!r(this,q,Sb)&&!r(this,q,Up)}
|
|
2618
|
+
@transitionend=${r(this,jp)}
|
|
2619
2619
|
>
|
|
2620
2620
|
<div part="content">
|
|
2621
2621
|
<slot></slot>
|
|
2622
2622
|
</div>
|
|
2623
2623
|
</div>
|
|
2624
2624
|
`:I}
|
|
2625
|
-
`}};
|
|
2625
|
+
`}};wt=S(p_),pb=new WeakMap,hb=new WeakMap,ub=new WeakMap,mb=new WeakMap,fb=new WeakMap,q=new WeakSet,vb=new WeakMap,xb=new WeakMap,wb=new WeakMap,Eb=new WeakMap,Rs=new WeakMap,Is=new WeakMap,qo=new WeakMap,gd=function(){return r(this,qo)?this.open:r(this,q,u_)},m_=function(){let t=++Ti(this,Is)._;p(this,q,!1,qp),p(this,q,!0,Pp),p(this,q,!0,Vp),p(this,q,"0",As),requestAnimationFrame(()=>{if(r(this,Is)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,q,`${e.scrollHeight}px`,As),p(this,q,!1,Vp)})},f_=function(){let t=++Ti(this,Is)._;p(this,q,!1,Vp);let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,q,`${e.scrollHeight}px`,As),requestAnimationFrame(()=>{r(this,Is)===t&&(p(this,q,!0,qp),p(this,q,"0",As))})},jp=new WeakMap,Wp=new WeakMap,d(wt,4,"open",c_,We,pb),d(wt,4,"defaultOpen",d_,We,hb),d(wt,4,"disabled",l_,We,ub),d(wt,4,"keepMounted",a_,We,mb),gb=d(wt,20,"#starting",n_,q,fb),$b=gb.get,Vp=gb.set,bb=d(wt,20,"#ending",i_,q,vb),Up=bb.get,qp=bb.set,yb=d(wt,20,"#panelHeight",s_,q,xb),h_=yb.get,As=yb.set,kb=d(wt,20,"#visible",o_,q,wb),Sb=kb.get,Pp=kb.set,Cb=d(wt,20,"#internalOpen",r_,q,Eb),u_=Cb.get,Tb=Cb.set,$(wt,We),g(We,"tagName","dui-collapsible"),g(We,"styles",[y,YN]);var g_=bo(`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")`),XN=k`
|
|
2626
2626
|
/* ── Trigger ── */
|
|
2627
2627
|
|
|
2628
2628
|
[part="trigger"] {
|
|
@@ -2666,8 +2666,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
2666
2666
|
height: var(--space-4);
|
|
2667
2667
|
flex-shrink: 0;
|
|
2668
2668
|
background: currentColor;
|
|
2669
|
-
-webkit-mask: ${
|
|
2670
|
-
mask: ${
|
|
2669
|
+
-webkit-mask: ${g_} center / contain no-repeat;
|
|
2670
|
+
mask: ${g_} center / contain no-repeat;
|
|
2671
2671
|
transition-property: transform;
|
|
2672
2672
|
transition-duration: var(--duration-fast);
|
|
2673
2673
|
transition-timing-function: var(--ease-out-3);
|
|
@@ -2707,16 +2707,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
2707
2707
|
transition-duration: 0s;
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
|
-
`,en=class extends Fe{static styles=[...Fe.styles,hM]};customElements.define(en.tagName,en);var go={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},on=s=>(...o)=>({_$litDirective$:s,values:o}),Mr=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this._$Ct=o,this._$AM=t,this._$Ci=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var{I:uM}=U$,nT=s=>s;var lT=s=>s.strings===void 0,aT=()=>document.createComment(""),rn=(s,o,t)=>{let e=s._$AA.parentNode,a=o===void 0?s._$AB:o._$AA;if(t===void 0){let l=e.insertBefore(aT(),a),c=e.insertBefore(aT(),a);t=new uM(l,c,s,s.options)}else{let l=t._$AB.nextSibling,c=t._$AM,f=c!==s;if(f){let x;t._$AQ?.(s),t._$AM=s,t._$AP!==void 0&&(x=s._$AU)!==c._$AU&&t._$AP(x)}if(l!==a||f){let x=t._$AA;for(;x!==l;){let C=nT(x).nextSibling;nT(e).insertBefore(x,a),x=C}}}return t},Nr=(s,o,t=s)=>(s._$AI(o,t),s),mM={},$p=(s,o=mM)=>s._$AH=o,dT=s=>s._$AH,Sp=s=>{s._$AR(),s._$AA.remove()};var cT=(s,o,t)=>{let e=new Map;for(let a=o;a<=t;a++)e.set(s[a],a);return e},ws=on(class extends Mr{constructor(s){if(super(s),s.type!==go.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let a=[],l=[],c=0;for(let f of s)a[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:a}}render(s,o,t){return this.dt(s,o,t).values}update(s,[o,t,e]){let a=dT(s),{values:l,keys:c}=this.dt(o,t,e);if(!Array.isArray(a))return this.ut=c,l;let f=this.ut??=[],x=[],C,S,w=0,R=a.length-1,_=0,z=l.length-1;for(;w<=R&&_<=z;)if(a[w]===null)w++;else if(a[R]===null)R--;else if(f[w]===c[_])x[_]=Nr(a[w],l[_]),w++,_++;else if(f[R]===c[z])x[z]=Nr(a[R],l[z]),R--,z--;else if(f[w]===c[z])x[z]=Nr(a[w],l[z]),rn(s,x[z+1],a[w]),w++,z--;else if(f[R]===c[_])x[_]=Nr(a[R],l[_]),rn(s,a[w],a[R]),R--,_++;else if(C===void 0&&(C=cT(c,_,z),S=cT(f,w,R)),C.has(f[w]))if(C.has(f[R])){let F=S.get(c[_]),J=F!==void 0?a[F]:null;if(J===null){let U=rn(s,a[w]);Nr(U,l[_]),x[_]=U}else x[_]=Nr(J,l[_]),rn(s,a[w],J),a[F]=null;_++}else Sp(a[R]),R--;else Sp(a[w]),w++;for(;_<=z;){let F=rn(s,x[z+1]);Nr(F,l[_]),x[_++]=F}for(;w<=R;){let F=a[w++];F!==null&&Sp(F)}return this.ut=c,$p(s,x),ie}});var Io=on(class extends Mr{constructor(s){if(super(s),s.type!==go.PROPERTY&&s.type!==go.ATTRIBUTE&&s.type!==go.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!lT(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[o]){if(o===ie||o===I)return o;let t=s.element,e=s.name;if(s.type===go.PROPERTY){if(o===t[e])return ie}else if(s.type===go.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return ie}else if(s.type===go.ATTRIBUTE&&t.getAttribute(e)===o+"")return ie;return $p(s),o}});var Tp=new Map,pT=(s,o)=>{for(let[t,e]of Tp)t!==s&&e();Tp.clear(),Tp.set(s,o)},Wv=s=>{Tp.delete(s)};var Dr=Math.min,me=Math.max,od=Math.round,rd=Math.floor,vo=s=>({x:s,y:s}),fM={left:"right",right:"left",bottom:"top",top:"bottom"};function Kv(s,o,t){return me(s,Dr(o,t))}function sn(s,o){return typeof s=="function"?s(o):s}function fr(s){return s.split("-")[0]}function nn(s){return s.split("-")[1]}function Gv(s){return s==="x"?"y":"x"}function Yv(s){return s==="y"?"height":"width"}function Oo(s){let o=s[0];return o==="t"||o==="b"?"y":"x"}function Xv(s){return Gv(Oo(s))}function mT(s,o,t){t===void 0&&(t=!1);let e=nn(s),a=Xv(s),l=Yv(a),c=a==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=ed(c)),[c,ed(c)]}function fT(s){let o=ed(s);return[_p(s),o,_p(o)]}function _p(s){return s.includes("start")?s.replace("start","end"):s.replace("end","start")}var hT=["left","right"],uT=["right","left"],gM=["top","bottom"],vM=["bottom","top"];function bM(s,o,t){switch(s){case"top":case"bottom":return t?o?uT:hT:o?hT:uT;case"left":case"right":return o?gM:vM;default:return[]}}function gT(s,o,t,e){let a=nn(s),l=bM(fr(s),t==="start",e);return a&&(l=l.map(c=>c+"-"+a),o&&(l=l.concat(l.map(_p)))),l}function ed(s){let o=fr(s);return fM[o]+s.slice(o.length)}function xM(s){return{top:0,right:0,bottom:0,left:0,...s}}function vT(s){return typeof s!="number"?xM(s):{top:s,right:s,bottom:s,left:s}}function ks(s){let{x:o,y:t,width:e,height:a}=s;return{width:e,height:a,top:t,left:o,right:o+e,bottom:t+a,x:o,y:t}}function bT(s,o,t){let{reference:e,floating:a}=s,l=Oo(o),c=Xv(o),f=Yv(c),x=fr(o),C=l==="y",S=e.x+e.width/2-a.width/2,w=e.y+e.height/2-a.height/2,R=e[f]/2-a[f]/2,_;switch(x){case"top":_={x:S,y:e.y-a.height};break;case"bottom":_={x:S,y:e.y+e.height};break;case"right":_={x:e.x+e.width,y:w};break;case"left":_={x:e.x-a.width,y:w};break;default:_={x:e.x,y:e.y}}switch(nn(o)){case"start":_[c]-=R*(t&&C?-1:1);break;case"end":_[c]+=R*(t&&C?-1:1);break}return _}async function xT(s,o){var t;o===void 0&&(o={});let{x:e,y:a,platform:l,rects:c,elements:f,strategy:x}=s,{boundary:C="clippingAncestors",rootBoundary:S="viewport",elementContext:w="floating",altBoundary:R=!1,padding:_=0}=sn(o,s),z=vT(_),J=f[R?w==="floating"?"reference":"floating":w],U=ks(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(f.floating)),boundary:C,rootBoundary:S,strategy:x})),D=w==="floating"?{x:e,y:a,width:c.floating.width,height:c.floating.height}:c.reference,P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),K=await(l.isElement==null?void 0:l.isElement(P))?await(l.getScale==null?void 0:l.getScale(P))||{x:1,y:1}:{x:1,y:1},Zt=ks(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:D,offsetParent:P,strategy:x}):D);return{top:(U.top-Zt.top+z.top)/K.y,bottom:(Zt.bottom-U.bottom+z.bottom)/K.y,left:(U.left-Zt.left+z.left)/K.x,right:(Zt.right-U.right+z.right)/K.x}}var yM=50,yT=async(s,o,t)=>{let{placement:e="bottom",strategy:a="absolute",middleware:l=[],platform:c}=t,f=c.detectOverflow?c:{...c,detectOverflow:xT},x=await(c.isRTL==null?void 0:c.isRTL(o)),C=await c.getElementRects({reference:s,floating:o,strategy:a}),{x:S,y:w}=bT(C,e,x),R=e,_=0,z={};for(let F=0;F<l.length;F++){let J=l[F];if(!J)continue;let{name:U,fn:D}=J,{x:P,y:K,data:Zt,reset:ue}=await D({x:S,y:w,initialPlacement:e,placement:R,strategy:a,middlewareData:z,rects:C,platform:f,elements:{reference:s,floating:o}});S=P??S,w=K??w,z[U]={...z[U],...Zt},ue&&_<yM&&(_++,typeof ue=="object"&&(ue.placement&&(R=ue.placement),ue.rects&&(C=ue.rects===!0?await c.getElementRects({reference:s,floating:o,strategy:a}):ue.rects),{x:S,y:w}=bT(C,R,x)),F=-1)}return{x:S,y:w,placement:R,strategy:a,middlewareData:z}};var wT=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(o){var t,e;let{placement:a,middlewareData:l,rects:c,initialPlacement:f,platform:x,elements:C}=o,{mainAxis:S=!0,crossAxis:w=!0,fallbackPlacements:R,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:F=!0,...J}=sn(s,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let U=fr(a),D=Oo(f),P=fr(f)===f,K=await(x.isRTL==null?void 0:x.isRTL(C.floating)),Zt=R||(P||!F?[ed(f)]:fT(f)),ue=z!=="none";!R&&ue&&Zt.push(...gT(f,F,z,K));let $o=[f,...Zt],Zr=await x.detectOverflow(o,J),ts=[],cr=((e=l.flip)==null?void 0:e.overflows)||[];if(S&&ts.push(Zr[U]),w){let es=mT(a,c,K);ts.push(Zr[es[0]],Zr[es[1]])}if(cr=[...cr,{placement:a,overflows:ts}],!ts.every(es=>es<=0)){var kl,El;let es=(((kl=l.flip)==null?void 0:kl.index)||0)+1,Km=$o[es];if(Km&&(!(w==="alignment"?D!==Oo(Km):!1)||cr.every(uo=>Oo(uo.placement)===D?uo.overflows[0]>0:!0)))return{data:{index:es,overflows:cr},reset:{placement:Km}};let $l=(El=cr.filter(os=>os.overflows[0]<=0).sort((os,uo)=>os.overflows[1]-uo.overflows[1])[0])==null?void 0:El.placement;if(!$l)switch(_){case"bestFit":{var Cl;let os=(Cl=cr.filter(uo=>{if(ue){let _r=Oo(uo.placement);return _r===D||_r==="y"}return!0}).map(uo=>[uo.placement,uo.overflows.filter(_r=>_r>0).reduce((_r,Pz)=>_r+Pz,0)]).sort((uo,_r)=>uo[1]-_r[1])[0])==null?void 0:Cl[0];os&&($l=os);break}case"initialPlacement":$l=f;break}if(a!==$l)return{reset:{placement:$l}}}return{}}}};var wM=new Set(["left","top"]);async function kM(s,o){let{placement:t,platform:e,elements:a}=s,l=await(e.isRTL==null?void 0:e.isRTL(a.floating)),c=fr(t),f=nn(t),x=Oo(t)==="y",C=wM.has(c)?-1:1,S=l&&x?-1:1,w=sn(o,s),{mainAxis:R,crossAxis:_,alignmentAxis:z}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return f&&typeof z=="number"&&(_=f==="end"?z*-1:z),x?{x:_*S,y:R*C}:{x:R*C,y:_*S}}var kT=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(o){var t,e;let{x:a,y:l,placement:c,middlewareData:f}=o,x=await kM(o,s);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:a+x.x,y:l+x.y,data:{...x,placement:c}}}}},ET=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(o){let{x:t,y:e,placement:a,platform:l}=o,{mainAxis:c=!0,crossAxis:f=!1,limiter:x={fn:U=>{let{x:D,y:P}=U;return{x:D,y:P}}},...C}=sn(s,o),S={x:t,y:e},w=await l.detectOverflow(o,C),R=Oo(fr(a)),_=Gv(R),z=S[_],F=S[R];if(c){let U=_==="y"?"top":"left",D=_==="y"?"bottom":"right",P=z+w[U],K=z-w[D];z=Kv(P,z,K)}if(f){let U=R==="y"?"top":"left",D=R==="y"?"bottom":"right",P=F+w[U],K=F-w[D];F=Kv(P,F,K)}let J=x.fn({...o,[_]:z,[R]:F});return{...J,data:{x:J.x-t,y:J.y-e,enabled:{[_]:c,[R]:f}}}}}};var CT=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(o){var t,e;let{placement:a,rects:l,platform:c,elements:f}=o,{apply:x=()=>{},...C}=sn(s,o),S=await c.detectOverflow(o,C),w=fr(a),R=nn(a),_=Oo(a)==="y",{width:z,height:F}=l.floating,J,U;w==="top"||w==="bottom"?(J=w,U=R===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(U=w,J=R==="end"?"top":"bottom");let D=F-S.top-S.bottom,P=z-S.left-S.right,K=Dr(F-S[J],D),Zt=Dr(z-S[U],P),ue=!o.middlewareData.shift,$o=K,Zr=Zt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(Zr=P),(e=o.middlewareData.shift)!=null&&e.enabled.y&&($o=D),ue&&!R){let cr=me(S.left,0),kl=me(S.right,0),El=me(S.top,0),Cl=me(S.bottom,0);_?Zr=z-2*(cr!==0||kl!==0?cr+kl:me(S.left,S.right)):$o=F-2*(El!==0||Cl!==0?El+Cl:me(S.top,S.bottom))}await x({...o,availableWidth:Zr,availableHeight:$o});let ts=await c.getDimensions(f.floating);return z!==ts.width||F!==ts.height?{reset:{rects:!0}}:{}}}};function Ap(){return typeof window<"u"}function Cs(s){return ST(s)?(s.nodeName||"").toLowerCase():"#document"}function ke(s){var o;return(s==null||(o=s.ownerDocument)==null?void 0:o.defaultView)||window}function bo(s){var o;return(o=(ST(s)?s.ownerDocument:s.document)||window.document)==null?void 0:o.documentElement}function ST(s){return Ap()?s instanceof Node||s instanceof ke(s).Node:!1}function to(s){return Ap()?s instanceof Element||s instanceof ke(s).Element:!1}function Lo(s){return Ap()?s instanceof HTMLElement||s instanceof ke(s).HTMLElement:!1}function $T(s){return!Ap()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof ke(s).ShadowRoot}function ln(s){let{overflow:o,overflowX:t,overflowY:e,display:a}=eo(s);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&a!=="inline"&&a!=="contents"}function TT(s){return/^(table|td|th)$/.test(Cs(s))}function sd(s){try{if(s.matches(":popover-open"))return!0}catch{}try{return s.matches(":modal")}catch{return!1}}var EM=/transform|translate|scale|rotate|perspective|filter/,CM=/paint|layout|strict|content/,Es=s=>!!s&&s!=="none",Jv;function Rp(s){let o=to(s)?eo(s):s;return Es(o.transform)||Es(o.translate)||Es(o.scale)||Es(o.rotate)||Es(o.perspective)||!Ip()&&(Es(o.backdropFilter)||Es(o.filter))||EM.test(o.willChange||"")||CM.test(o.contain||"")}function _T(s){let o=gr(s);for(;Lo(o)&&!$s(o);){if(Rp(o))return o;if(sd(o))return null;o=gr(o)}return null}function Ip(){return Jv==null&&(Jv=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jv}function $s(s){return/^(html|body|#document)$/.test(Cs(s))}function eo(s){return ke(s).getComputedStyle(s)}function id(s){return to(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function gr(s){if(Cs(s)==="html")return s;let o=s.assignedSlot||s.parentNode||$T(s)&&s.host||bo(s);return $T(o)?o.host:o}function AT(s){let o=gr(s);return $s(o)?s.ownerDocument?s.ownerDocument.body:s.body:Lo(o)&&ln(o)?o:AT(o)}function an(s,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=AT(s),l=a===((e=s.ownerDocument)==null?void 0:e.body),c=ke(a);if(l){let f=Op(c);return o.concat(c,c.visualViewport||[],ln(a)?a:[],f&&t?an(f):[])}else return o.concat(a,an(a,[],t))}function Op(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function LT(s){let o=eo(s),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,a=Lo(s),l=a?s.offsetWidth:t,c=a?s.offsetHeight:e,f=od(t)!==l||od(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Zv(s){return to(s)?s:s.contextElement}function dn(s){let o=Zv(s);if(!Lo(o))return vo(1);let t=o.getBoundingClientRect(),{width:e,height:a,$:l}=LT(o),c=(l?od(t.width):t.width)/e,f=(l?od(t.height):t.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var $M=vo(0);function zT(s){let o=ke(s);return!Ip()||!o.visualViewport?$M:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function SM(s,o,t){return o===void 0&&(o=!1),!t||o&&t!==ke(s)?!1:o}function Ss(s,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=s.getBoundingClientRect(),l=Zv(s),c=vo(1);o&&(e?to(e)&&(c=dn(e)):c=dn(s));let f=SM(l,t,e)?zT(l):vo(0),x=(a.left+f.x)/c.x,C=(a.top+f.y)/c.y,S=a.width/c.x,w=a.height/c.y;if(l){let R=ke(l),_=e&&to(e)?ke(e):e,z=R,F=Op(z);for(;F&&e&&_!==z;){let J=dn(F),U=F.getBoundingClientRect(),D=eo(F),P=U.left+(F.clientLeft+parseFloat(D.paddingLeft))*J.x,K=U.top+(F.clientTop+parseFloat(D.paddingTop))*J.y;x*=J.x,C*=J.y,S*=J.x,w*=J.y,x+=P,C+=K,z=ke(F),F=Op(z)}}return ks({width:S,height:w,x,y:C})}function Lp(s,o){let t=id(s).scrollLeft;return o?o.left+t:Ss(bo(s)).left+t}function MT(s,o){let t=s.getBoundingClientRect(),e=t.left+o.scrollLeft-Lp(s,t),a=t.top+o.scrollTop;return{x:e,y:a}}function TM(s){let{elements:o,rect:t,offsetParent:e,strategy:a}=s,l=a==="fixed",c=bo(e),f=o?sd(o.floating):!1;if(e===c||f&&l)return t;let x={scrollLeft:0,scrollTop:0},C=vo(1),S=vo(0),w=Lo(e);if((w||!w&&!l)&&((Cs(e)!=="body"||ln(c))&&(x=id(e)),w)){let _=Ss(e);C=dn(e),S.x=_.x+e.clientLeft,S.y=_.y+e.clientTop}let R=c&&!w&&!l?MT(c,x):vo(0);return{width:t.width*C.x,height:t.height*C.y,x:t.x*C.x-x.scrollLeft*C.x+S.x+R.x,y:t.y*C.y-x.scrollTop*C.y+S.y+R.y}}function _M(s){return Array.from(s.getClientRects())}function AM(s){let o=bo(s),t=id(s),e=s.ownerDocument.body,a=me(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=me(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Lp(s),f=-t.scrollTop;return eo(e).direction==="rtl"&&(c+=me(o.clientWidth,e.clientWidth)-a),{width:a,height:l,x:c,y:f}}var RT=25;function RM(s,o){let t=ke(s),e=bo(s),a=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,x=0;if(a){l=a.width,c=a.height;let S=Ip();(!S||S&&o==="fixed")&&(f=a.offsetLeft,x=a.offsetTop)}let C=Lp(e);if(C<=0){let S=e.ownerDocument,w=S.body,R=getComputedStyle(w),_=S.compatMode==="CSS1Compat"&&parseFloat(R.marginLeft)+parseFloat(R.marginRight)||0,z=Math.abs(e.clientWidth-w.clientWidth-_);z<=RT&&(l-=z)}else C<=RT&&(l+=C);return{width:l,height:c,x:f,y:x}}function IM(s,o){let t=Ss(s,!0,o==="fixed"),e=t.top+s.clientTop,a=t.left+s.clientLeft,l=Lo(s)?dn(s):vo(1),c=s.clientWidth*l.x,f=s.clientHeight*l.y,x=a*l.x,C=e*l.y;return{width:c,height:f,x,y:C}}function IT(s,o,t){let e;if(o==="viewport")e=RM(s,t);else if(o==="document")e=AM(bo(s));else if(to(o))e=IM(o,t);else{let a=zT(s);e={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return ks(e)}function NT(s,o){let t=gr(s);return t===o||!to(t)||$s(t)?!1:eo(t).position==="fixed"||NT(t,o)}function OM(s,o){let t=o.get(s);if(t)return t;let e=an(s,[],!1).filter(f=>to(f)&&Cs(f)!=="body"),a=null,l=eo(s).position==="fixed",c=l?gr(s):s;for(;to(c)&&!$s(c);){let f=eo(c),x=Rp(c);!x&&f.position==="fixed"&&(a=null),(l?!x&&!a:!x&&f.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ln(c)&&!x&&NT(s,c))?e=e.filter(S=>S!==c):a=f,c=gr(c)}return o.set(s,e),e}function LM(s){let{element:o,boundary:t,rootBoundary:e,strategy:a}=s,c=[...t==="clippingAncestors"?sd(o)?[]:OM(o,this._c):[].concat(t),e],f=IT(o,c[0],a),x=f.top,C=f.right,S=f.bottom,w=f.left;for(let R=1;R<c.length;R++){let _=IT(o,c[R],a);x=me(_.top,x),C=Dr(_.right,C),S=Dr(_.bottom,S),w=me(_.left,w)}return{width:C-w,height:S-x,x:w,y:x}}function zM(s){let{width:o,height:t}=LT(s);return{width:o,height:t}}function MM(s,o,t){let e=Lo(o),a=bo(o),l=t==="fixed",c=Ss(s,!0,l,o),f={scrollLeft:0,scrollTop:0},x=vo(0);function C(){x.x=Lp(a)}if(e||!e&&!l)if((Cs(o)!=="body"||ln(a))&&(f=id(o)),e){let _=Ss(o,!0,l,o);x.x=_.x+o.clientLeft,x.y=_.y+o.clientTop}else a&&C();l&&!e&&a&&C();let S=a&&!e&&!l?MT(a,f):vo(0),w=c.left+f.scrollLeft-x.x-S.x,R=c.top+f.scrollTop-x.y-S.y;return{x:w,y:R,width:c.width,height:c.height}}function Qv(s){return eo(s).position==="static"}function OT(s,o){if(!Lo(s)||eo(s).position==="fixed")return null;if(o)return o(s);let t=s.offsetParent;return bo(s)===t&&(t=t.ownerDocument.body),t}function DT(s,o){let t=ke(s);if(sd(s))return t;if(!Lo(s)){let a=gr(s);for(;a&&!$s(a);){if(to(a)&&!Qv(a))return a;a=gr(a)}return t}let e=OT(s,o);for(;e&&TT(e)&&Qv(e);)e=OT(e,o);return e&&$s(e)&&Qv(e)&&!Rp(e)?t:e||_T(s)||t}var NM=async function(s){let o=this.getOffsetParent||DT,t=this.getDimensions,e=await t(s.floating);return{reference:MM(s.reference,await o(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function DM(s){return eo(s).direction==="rtl"}var tb={convertOffsetParentRelativeRectToViewportRelativeRect:TM,getDocumentElement:bo,getClippingRect:LM,getOffsetParent:DT,getElementRects:NM,getClientRects:_M,getDimensions:zM,getScale:dn,isElement:to,isRTL:DM};function HT(s,o){return s.x===o.x&&s.y===o.y&&s.width===o.width&&s.height===o.height}function HM(s,o){let t=null,e,a=bo(s);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,x){f===void 0&&(f=!1),x===void 0&&(x=1),l();let C=s.getBoundingClientRect(),{left:S,top:w,width:R,height:_}=C;if(f||o(),!R||!_)return;let z=rd(w),F=rd(a.clientWidth-(S+R)),J=rd(a.clientHeight-(w+_)),U=rd(S),P={rootMargin:-z+"px "+-F+"px "+-J+"px "+-U+"px",threshold:me(0,Dr(1,x))||1},K=!0;function Zt(ue){let $o=ue[0].intersectionRatio;if($o!==x){if(!K)return c();$o?c(!1,$o):e=setTimeout(()=>{c(!1,1e-7)},1e3)}$o===1&&!HT(C,s.getBoundingClientRect())&&c(),K=!1}try{t=new IntersectionObserver(Zt,{...P,root:a.ownerDocument})}catch{t=new IntersectionObserver(Zt,P)}t.observe(s)}return c(!0),l}function BT(s,o,t,e){e===void 0&&(e={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:x=!1}=e,C=Zv(s),S=a||l?[...C?an(C):[],...o?an(o):[]]:[];S.forEach(U=>{a&&U.addEventListener("scroll",t,{passive:!0}),l&&U.addEventListener("resize",t)});let w=C&&f?HM(C,t):null,R=-1,_=null;c&&(_=new ResizeObserver(U=>{let[D]=U;D&&D.target===C&&_&&o&&(_.unobserve(o),cancelAnimationFrame(R),R=requestAnimationFrame(()=>{var P;(P=_)==null||P.observe(o)})),t()}),C&&!x&&_.observe(C),o&&_.observe(o));let z,F=x?Ss(s):null;x&&J();function J(){let U=Ss(s);F&&!HT(F,U)&&t(),F=U,z=requestAnimationFrame(J)}return t(),()=>{var U;S.forEach(D=>{a&&D.removeEventListener("scroll",t),l&&D.removeEventListener("resize",t)}),w?.(),(U=_)==null||U.disconnect(),_=null,x&&cancelAnimationFrame(z)}}var FT=kT;var UT=ET,VT=wT,eb=CT;var qT=(s,o,t)=>{let e=new Map,a={platform:tb,...t},l={...a.platform,_c:e};return yT(s,o,{...a,platform:l})};var PT=()=>new Promise(s=>requestAnimationFrame(()=>requestAnimationFrame(()=>s()))),jT=(s,o,t=200)=>{let e=!1,a=()=>{e||(e=!0,s.removeEventListener("transitionend",l),clearTimeout(c),o())},l=()=>a();s.addEventListener("transitionend",l);let c=setTimeout(a,t)},cn=s=>m`
|
|
2710
|
+
`,fn=class extends We{static styles=[...We.styles,XN]};customElements.define(fn.tagName,fn);var wr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},gn=s=>(...o)=>({_$litDirective$:s,values:o}),Po=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this._$Ct=o,this._$AM=t,this._$Ci=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var{I:JN}=Q1,v_=s=>s;var x_=s=>s.strings===void 0,b_=()=>document.createComment(""),vn=(s,o,t)=>{let e=s._$AA.parentNode,a=o===void 0?s._$AB:o._$AA;if(t===void 0){let l=e.insertBefore(b_(),a),c=e.insertBefore(b_(),a);t=new JN(l,c,s,s.options)}else{let l=t._$AB.nextSibling,c=t._$AM,m=c!==s;if(m){let x;t._$AQ?.(s),t._$AM=s,t._$AP!==void 0&&(x=s._$AU)!==c._$AU&&t._$AP(x)}if(l!==a||m){let x=t._$AA;for(;x!==l;){let C=v_(x).nextSibling;v_(e).insertBefore(x,a),x=C}}}return t},jo=(s,o,t=s)=>(s._$AI(o,t),s),QN={},Kp=(s,o=QN)=>s._$AH=o,y_=s=>s._$AH,Gp=s=>{s._$AR(),s._$AA.remove()};var w_=(s,o,t)=>{let e=new Map;for(let a=o;a<=t;a++)e.set(s[a],a);return e},Os=gn(class extends Po{constructor(s){if(super(s),s.type!==wr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let a=[],l=[],c=0;for(let m of s)a[c]=e?e(m,c):c,l[c]=t(m,c),c++;return{values:l,keys:a}}render(s,o,t){return this.dt(s,o,t).values}update(s,[o,t,e]){let a=y_(s),{values:l,keys:c}=this.dt(o,t,e);if(!Array.isArray(a))return this.ut=c,l;let m=this.ut??=[],x=[],C,T,w=0,R=a.length-1,_=0,z=l.length-1;for(;w<=R&&_<=z;)if(a[w]===null)w++;else if(a[R]===null)R--;else if(m[w]===c[_])x[_]=jo(a[w],l[_]),w++,_++;else if(m[R]===c[z])x[z]=jo(a[R],l[z]),R--,z--;else if(m[w]===c[z])x[z]=jo(a[w],l[z]),vn(s,x[z+1],a[w]),w++,z--;else if(m[R]===c[_])x[_]=jo(a[R],l[_]),vn(s,a[w],a[R]),R--,_++;else if(C===void 0&&(C=w_(c,_,z),T=w_(m,w,R)),C.has(m[w]))if(C.has(m[R])){let V=T.get(c[_]),Q=V!==void 0?a[V]:null;if(Q===null){let U=vn(s,a[w]);jo(U,l[_]),x[_]=U}else x[_]=jo(Q,l[_]),vn(s,a[w],Q),a[V]=null;_++}else Gp(a[R]),R--;else Gp(a[w]),w++;for(;_<=z;){let V=vn(s,x[z+1]);jo(V,l[_]),x[_++]=V}for(;w<=R;){let V=a[w++];V!==null&&Gp(V)}return this.ut=c,Kp(s,x),ce}});var Nr=gn(class extends Po{constructor(s){if(super(s),s.type!==wr.PROPERTY&&s.type!==wr.ATTRIBUTE&&s.type!==wr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!x_(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[o]){if(o===ce||o===I)return o;let t=s.element,e=s.name;if(s.type===wr.PROPERTY){if(o===t[e])return ce}else if(s.type===wr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return ce}else if(s.type===wr.ATTRIBUTE&&t.getAttribute(e)===o+"")return ce;return Kp(s),o}});var Yp=new Map,k_=(s,o)=>{for(let[t,e]of Yp)t!==s&&e();Yp.clear(),Yp.set(s,o)},Ab=s=>{Yp.delete(s)};var Wo=Math.min,ye=Math.max,bd=Math.round,xd=Math.floor,kr=s=>({x:s,y:s}),ZN={left:"right",right:"left",bottom:"top",top:"bottom"};function Rb(s,o,t){return ye(s,Wo(o,t))}function bn(s,o){return typeof s=="function"?s(o):s}function Eo(s){return s.split("-")[0]}function xn(s){return s.split("-")[1]}function Ib(s){return s==="x"?"y":"x"}function Ob(s){return s==="y"?"height":"width"}function Dr(s){let o=s[0];return o==="t"||o==="b"?"y":"x"}function Lb(s){return Ib(Dr(s))}function $_(s,o,t){t===void 0&&(t=!1);let e=xn(s),a=Lb(s),l=Ob(a),c=a==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=vd(c)),[c,vd(c)]}function S_(s){let o=vd(s);return[Xp(s),o,Xp(o)]}function Xp(s){return s.includes("start")?s.replace("start","end"):s.replace("end","start")}var E_=["left","right"],C_=["right","left"],tD=["top","bottom"],eD=["bottom","top"];function rD(s,o,t){switch(s){case"top":case"bottom":return t?o?C_:E_:o?E_:C_;case"left":case"right":return o?tD:eD;default:return[]}}function T_(s,o,t,e){let a=xn(s),l=rD(Eo(s),t==="start",e);return a&&(l=l.map(c=>c+"-"+a),o&&(l=l.concat(l.map(Xp)))),l}function vd(s){let o=Eo(s);return ZN[o]+s.slice(o.length)}function oD(s){return{top:0,right:0,bottom:0,left:0,...s}}function __(s){return typeof s!="number"?oD(s):{top:s,right:s,bottom:s,left:s}}function Ls(s){let{x:o,y:t,width:e,height:a}=s;return{width:e,height:a,top:t,left:o,right:o+e,bottom:t+a,x:o,y:t}}function A_(s,o,t){let{reference:e,floating:a}=s,l=Dr(o),c=Lb(o),m=Ob(c),x=Eo(o),C=l==="y",T=e.x+e.width/2-a.width/2,w=e.y+e.height/2-a.height/2,R=e[m]/2-a[m]/2,_;switch(x){case"top":_={x:T,y:e.y-a.height};break;case"bottom":_={x:T,y:e.y+e.height};break;case"right":_={x:e.x+e.width,y:w};break;case"left":_={x:e.x-a.width,y:w};break;default:_={x:e.x,y:e.y}}switch(xn(o)){case"start":_[c]-=R*(t&&C?-1:1);break;case"end":_[c]+=R*(t&&C?-1:1);break}return _}async function R_(s,o){var t;o===void 0&&(o={});let{x:e,y:a,platform:l,rects:c,elements:m,strategy:x}=s,{boundary:C="clippingAncestors",rootBoundary:T="viewport",elementContext:w="floating",altBoundary:R=!1,padding:_=0}=bn(o,s),z=__(_),Q=m[R?w==="floating"?"reference":"floating":w],U=Ls(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(Q)))==null||t?Q:Q.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:C,rootBoundary:T,strategy:x})),D=w==="floating"?{x:e,y:a,width:c.floating.width,height:c.floating.height}:c.reference,j=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),G=await(l.isElement==null?void 0:l.isElement(j))?await(l.getScale==null?void 0:l.getScale(j))||{x:1,y:1}:{x:1,y:1},se=Ls(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:D,offsetParent:j,strategy:x}):D);return{top:(U.top-se.top+z.top)/G.y,bottom:(se.bottom-U.bottom+z.bottom)/G.y,left:(U.left-se.left+z.left)/G.x,right:(se.right-U.right+z.right)/G.x}}var sD=50,I_=async(s,o,t)=>{let{placement:e="bottom",strategy:a="absolute",middleware:l=[],platform:c}=t,m=c.detectOverflow?c:{...c,detectOverflow:R_},x=await(c.isRTL==null?void 0:c.isRTL(o)),C=await c.getElementRects({reference:s,floating:o,strategy:a}),{x:T,y:w}=A_(C,e,x),R=e,_=0,z={};for(let V=0;V<l.length;V++){let Q=l[V];if(!Q)continue;let{name:U,fn:D}=Q,{x:j,y:G,data:se,reset:xe}=await D({x:T,y:w,initialPlacement:e,placement:R,strategy:a,middlewareData:z,rects:C,platform:m,elements:{reference:s,floating:o}});T=j??T,w=G??w,z[U]={...z[U],...se},xe&&_<sD&&(_++,typeof xe=="object"&&(xe.placement&&(R=xe.placement),xe.rects&&(C=xe.rects===!0?await c.getElementRects({reference:s,floating:o,strategy:a}):xe.rects),{x:T,y:w}=A_(C,R,x)),V=-1)}return{x:T,y:w,placement:R,strategy:a,middlewareData:z}};var O_=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(o){var t,e;let{placement:a,middlewareData:l,rects:c,initialPlacement:m,platform:x,elements:C}=o,{mainAxis:T=!0,crossAxis:w=!0,fallbackPlacements:R,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:V=!0,...Q}=bn(s,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let U=Eo(a),D=Dr(m),j=Eo(m)===m,G=await(x.isRTL==null?void 0:x.isRTL(C.floating)),se=R||(j||!V?[vd(m)]:S_(m)),xe=z!=="none";!R&&xe&&se.push(...T_(m,V,z,G));let Rr=[m,...se],cs=await x.detectOverflow(o,Q),ps=[],vo=((e=l.flip)==null?void 0:e.overflows)||[];if(T&&ps.push(cs[U]),w){let hs=$_(a,c,G);ps.push(cs[hs[0]],cs[hs[1]])}if(vo=[...vo,{placement:a,overflows:ps}],!ps.every(hs=>hs<=0)){var Hl,Bl;let hs=(((Hl=l.flip)==null?void 0:Hl.index)||0)+1,If=Rr[hs];if(If&&(!(w==="alignment"?D!==Dr(If):!1)||vo.every(br=>Dr(br.placement)===D?br.overflows[0]>0:!0)))return{data:{index:hs,overflows:vo},reset:{placement:If}};let Vl=(Bl=vo.filter(us=>us.overflows[0]<=0).sort((us,br)=>us.overflows[1]-br.overflows[1])[0])==null?void 0:Bl.placement;if(!Vl)switch(_){case"bestFit":{var Fl;let us=(Fl=vo.filter(br=>{if(xe){let Do=Dr(br.placement);return Do===D||Do==="y"}return!0}).map(br=>[br.placement,br.overflows.filter(Do=>Do>0).reduce((Do,_5)=>Do+_5,0)]).sort((br,Do)=>br[1]-Do[1])[0])==null?void 0:Fl[0];us&&(Vl=us);break}case"initialPlacement":Vl=m;break}if(a!==Vl)return{reset:{placement:Vl}}}return{}}}};var iD=new Set(["left","top"]);async function nD(s,o){let{placement:t,platform:e,elements:a}=s,l=await(e.isRTL==null?void 0:e.isRTL(a.floating)),c=Eo(t),m=xn(t),x=Dr(t)==="y",C=iD.has(c)?-1:1,T=l&&x?-1:1,w=bn(o,s),{mainAxis:R,crossAxis:_,alignmentAxis:z}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return m&&typeof z=="number"&&(_=m==="end"?z*-1:z),x?{x:_*T,y:R*C}:{x:R*C,y:_*T}}var L_=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(o){var t,e;let{x:a,y:l,placement:c,middlewareData:m}=o,x=await nD(o,s);return c===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:a+x.x,y:l+x.y,data:{...x,placement:c}}}}},z_=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(o){let{x:t,y:e,placement:a,platform:l}=o,{mainAxis:c=!0,crossAxis:m=!1,limiter:x={fn:U=>{let{x:D,y:j}=U;return{x:D,y:j}}},...C}=bn(s,o),T={x:t,y:e},w=await l.detectOverflow(o,C),R=Dr(Eo(a)),_=Ib(R),z=T[_],V=T[R];if(c){let U=_==="y"?"top":"left",D=_==="y"?"bottom":"right",j=z+w[U],G=z-w[D];z=Rb(j,z,G)}if(m){let U=R==="y"?"top":"left",D=R==="y"?"bottom":"right",j=V+w[U],G=V-w[D];V=Rb(j,V,G)}let Q=x.fn({...o,[_]:z,[R]:V});return{...Q,data:{x:Q.x-t,y:Q.y-e,enabled:{[_]:c,[R]:m}}}}}};var M_=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(o){var t,e;let{placement:a,rects:l,platform:c,elements:m}=o,{apply:x=()=>{},...C}=bn(s,o),T=await c.detectOverflow(o,C),w=Eo(a),R=xn(a),_=Dr(a)==="y",{width:z,height:V}=l.floating,Q,U;w==="top"||w==="bottom"?(Q=w,U=R===(await(c.isRTL==null?void 0:c.isRTL(m.floating))?"start":"end")?"left":"right"):(U=w,Q=R==="end"?"top":"bottom");let D=V-T.top-T.bottom,j=z-T.left-T.right,G=Wo(V-T[Q],D),se=Wo(z-T[U],j),xe=!o.middlewareData.shift,Rr=G,cs=se;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(cs=j),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Rr=D),xe&&!R){let vo=ye(T.left,0),Hl=ye(T.right,0),Bl=ye(T.top,0),Fl=ye(T.bottom,0);_?cs=z-2*(vo!==0||Hl!==0?vo+Hl:ye(T.left,T.right)):Rr=V-2*(Bl!==0||Fl!==0?Bl+Fl:ye(T.top,T.bottom))}await x({...o,availableWidth:cs,availableHeight:Rr});let ps=await c.getDimensions(m.floating);return z!==ps.width||V!==ps.height?{reset:{rects:!0}}:{}}}};function Jp(){return typeof window<"u"}function Ms(s){return D_(s)?(s.nodeName||"").toLowerCase():"#document"}function Ae(s){var o;return(s==null||(o=s.ownerDocument)==null?void 0:o.defaultView)||window}function Er(s){var o;return(o=(D_(s)?s.ownerDocument:s.document)||window.document)==null?void 0:o.documentElement}function D_(s){return Jp()?s instanceof Node||s instanceof Ae(s).Node:!1}function nr(s){return Jp()?s instanceof Element||s instanceof Ae(s).Element:!1}function Hr(s){return Jp()?s instanceof HTMLElement||s instanceof Ae(s).HTMLElement:!1}function N_(s){return!Jp()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof Ae(s).ShadowRoot}function wn(s){let{overflow:o,overflowX:t,overflowY:e,display:a}=ar(s);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&a!=="inline"&&a!=="contents"}function H_(s){return/^(table|td|th)$/.test(Ms(s))}function yd(s){try{if(s.matches(":popover-open"))return!0}catch{}try{return s.matches(":modal")}catch{return!1}}var aD=/transform|translate|scale|rotate|perspective|filter/,lD=/paint|layout|strict|content/,zs=s=>!!s&&s!=="none",zb;function Qp(s){let o=nr(s)?ar(s):s;return zs(o.transform)||zs(o.translate)||zs(o.scale)||zs(o.rotate)||zs(o.perspective)||!Zp()&&(zs(o.backdropFilter)||zs(o.filter))||aD.test(o.willChange||"")||lD.test(o.contain||"")}function B_(s){let o=Co(s);for(;Hr(o)&&!Ns(o);){if(Qp(o))return o;if(yd(o))return null;o=Co(o)}return null}function Zp(){return zb==null&&(zb=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zb}function Ns(s){return/^(html|body|#document)$/.test(Ms(s))}function ar(s){return Ae(s).getComputedStyle(s)}function wd(s){return nr(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Co(s){if(Ms(s)==="html")return s;let o=s.assignedSlot||s.parentNode||N_(s)&&s.host||Er(s);return N_(o)?o.host:o}function F_(s){let o=Co(s);return Ns(o)?s.ownerDocument?s.ownerDocument.body:s.body:Hr(o)&&wn(o)?o:F_(o)}function yn(s,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=F_(s),l=a===((e=s.ownerDocument)==null?void 0:e.body),c=Ae(a);if(l){let m=th(c);return o.concat(c,c.visualViewport||[],wn(a)?a:[],m&&t?yn(m):[])}else return o.concat(a,yn(a,[],t))}function th(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function P_(s){let o=ar(s),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,a=Hr(s),l=a?s.offsetWidth:t,c=a?s.offsetHeight:e,m=bd(t)!==l||bd(e)!==c;return m&&(t=l,e=c),{width:t,height:e,$:m}}function Nb(s){return nr(s)?s:s.contextElement}function kn(s){let o=Nb(s);if(!Hr(o))return kr(1);let t=o.getBoundingClientRect(),{width:e,height:a,$:l}=P_(o),c=(l?bd(t.width):t.width)/e,m=(l?bd(t.height):t.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!m||!Number.isFinite(m))&&(m=1),{x:c,y:m}}var dD=kr(0);function j_(s){let o=Ae(s);return!Zp()||!o.visualViewport?dD:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function cD(s,o,t){return o===void 0&&(o=!1),!t||o&&t!==Ae(s)?!1:o}function Ds(s,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=s.getBoundingClientRect(),l=Nb(s),c=kr(1);o&&(e?nr(e)&&(c=kn(e)):c=kn(s));let m=cD(l,t,e)?j_(l):kr(0),x=(a.left+m.x)/c.x,C=(a.top+m.y)/c.y,T=a.width/c.x,w=a.height/c.y;if(l){let R=Ae(l),_=e&&nr(e)?Ae(e):e,z=R,V=th(z);for(;V&&e&&_!==z;){let Q=kn(V),U=V.getBoundingClientRect(),D=ar(V),j=U.left+(V.clientLeft+parseFloat(D.paddingLeft))*Q.x,G=U.top+(V.clientTop+parseFloat(D.paddingTop))*Q.y;x*=Q.x,C*=Q.y,T*=Q.x,w*=Q.y,x+=j,C+=G,z=Ae(V),V=th(z)}}return Ls({width:T,height:w,x,y:C})}function eh(s,o){let t=wd(s).scrollLeft;return o?o.left+t:Ds(Er(s)).left+t}function W_(s,o){let t=s.getBoundingClientRect(),e=t.left+o.scrollLeft-eh(s,t),a=t.top+o.scrollTop;return{x:e,y:a}}function pD(s){let{elements:o,rect:t,offsetParent:e,strategy:a}=s,l=a==="fixed",c=Er(e),m=o?yd(o.floating):!1;if(e===c||m&&l)return t;let x={scrollLeft:0,scrollTop:0},C=kr(1),T=kr(0),w=Hr(e);if((w||!w&&!l)&&((Ms(e)!=="body"||wn(c))&&(x=wd(e)),w)){let _=Ds(e);C=kn(e),T.x=_.x+e.clientLeft,T.y=_.y+e.clientTop}let R=c&&!w&&!l?W_(c,x):kr(0);return{width:t.width*C.x,height:t.height*C.y,x:t.x*C.x-x.scrollLeft*C.x+T.x+R.x,y:t.y*C.y-x.scrollTop*C.y+T.y+R.y}}function hD(s){return Array.from(s.getClientRects())}function uD(s){let o=Er(s),t=wd(s),e=s.ownerDocument.body,a=ye(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=ye(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+eh(s),m=-t.scrollTop;return ar(e).direction==="rtl"&&(c+=ye(o.clientWidth,e.clientWidth)-a),{width:a,height:l,x:c,y:m}}var V_=25;function mD(s,o){let t=Ae(s),e=Er(s),a=t.visualViewport,l=e.clientWidth,c=e.clientHeight,m=0,x=0;if(a){l=a.width,c=a.height;let T=Zp();(!T||T&&o==="fixed")&&(m=a.offsetLeft,x=a.offsetTop)}let C=eh(e);if(C<=0){let T=e.ownerDocument,w=T.body,R=getComputedStyle(w),_=T.compatMode==="CSS1Compat"&&parseFloat(R.marginLeft)+parseFloat(R.marginRight)||0,z=Math.abs(e.clientWidth-w.clientWidth-_);z<=V_&&(l-=z)}else C<=V_&&(l+=C);return{width:l,height:c,x:m,y:x}}function fD(s,o){let t=Ds(s,!0,o==="fixed"),e=t.top+s.clientTop,a=t.left+s.clientLeft,l=Hr(s)?kn(s):kr(1),c=s.clientWidth*l.x,m=s.clientHeight*l.y,x=a*l.x,C=e*l.y;return{width:c,height:m,x,y:C}}function U_(s,o,t){let e;if(o==="viewport")e=mD(s,t);else if(o==="document")e=uD(Er(s));else if(nr(o))e=fD(o,t);else{let a=j_(s);e={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Ls(e)}function K_(s,o){let t=Co(s);return t===o||!nr(t)||Ns(t)?!1:ar(t).position==="fixed"||K_(t,o)}function gD(s,o){let t=o.get(s);if(t)return t;let e=yn(s,[],!1).filter(m=>nr(m)&&Ms(m)!=="body"),a=null,l=ar(s).position==="fixed",c=l?Co(s):s;for(;nr(c)&&!Ns(c);){let m=ar(c),x=Qp(c);!x&&m.position==="fixed"&&(a=null),(l?!x&&!a:!x&&m.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||wn(c)&&!x&&K_(s,c))?e=e.filter(T=>T!==c):a=m,c=Co(c)}return o.set(s,e),e}function vD(s){let{element:o,boundary:t,rootBoundary:e,strategy:a}=s,c=[...t==="clippingAncestors"?yd(o)?[]:gD(o,this._c):[].concat(t),e],m=U_(o,c[0],a),x=m.top,C=m.right,T=m.bottom,w=m.left;for(let R=1;R<c.length;R++){let _=U_(o,c[R],a);x=ye(_.top,x),C=Wo(_.right,C),T=Wo(_.bottom,T),w=ye(_.left,w)}return{width:C-w,height:T-x,x:w,y:x}}function bD(s){let{width:o,height:t}=P_(s);return{width:o,height:t}}function xD(s,o,t){let e=Hr(o),a=Er(o),l=t==="fixed",c=Ds(s,!0,l,o),m={scrollLeft:0,scrollTop:0},x=kr(0);function C(){x.x=eh(a)}if(e||!e&&!l)if((Ms(o)!=="body"||wn(a))&&(m=wd(o)),e){let _=Ds(o,!0,l,o);x.x=_.x+o.clientLeft,x.y=_.y+o.clientTop}else a&&C();l&&!e&&a&&C();let T=a&&!e&&!l?W_(a,m):kr(0),w=c.left+m.scrollLeft-x.x-T.x,R=c.top+m.scrollTop-x.y-T.y;return{x:w,y:R,width:c.width,height:c.height}}function Mb(s){return ar(s).position==="static"}function q_(s,o){if(!Hr(s)||ar(s).position==="fixed")return null;if(o)return o(s);let t=s.offsetParent;return Er(s)===t&&(t=t.ownerDocument.body),t}function G_(s,o){let t=Ae(s);if(yd(s))return t;if(!Hr(s)){let a=Co(s);for(;a&&!Ns(a);){if(nr(a)&&!Mb(a))return a;a=Co(a)}return t}let e=q_(s,o);for(;e&&H_(e)&&Mb(e);)e=q_(e,o);return e&&Ns(e)&&Mb(e)&&!Qp(e)?t:e||B_(s)||t}var yD=async function(s){let o=this.getOffsetParent||G_,t=this.getDimensions,e=await t(s.floating);return{reference:xD(s.reference,await o(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function wD(s){return ar(s).direction==="rtl"}var Db={convertOffsetParentRelativeRectToViewportRelativeRect:pD,getDocumentElement:Er,getClippingRect:vD,getOffsetParent:G_,getElementRects:yD,getClientRects:hD,getDimensions:bD,getScale:kn,isElement:nr,isRTL:wD};function Y_(s,o){return s.x===o.x&&s.y===o.y&&s.width===o.width&&s.height===o.height}function kD(s,o){let t=null,e,a=Er(s);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function c(m,x){m===void 0&&(m=!1),x===void 0&&(x=1),l();let C=s.getBoundingClientRect(),{left:T,top:w,width:R,height:_}=C;if(m||o(),!R||!_)return;let z=xd(w),V=xd(a.clientWidth-(T+R)),Q=xd(a.clientHeight-(w+_)),U=xd(T),j={rootMargin:-z+"px "+-V+"px "+-Q+"px "+-U+"px",threshold:ye(0,Wo(1,x))||1},G=!0;function se(xe){let Rr=xe[0].intersectionRatio;if(Rr!==x){if(!G)return c();Rr?c(!1,Rr):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Rr===1&&!Y_(C,s.getBoundingClientRect())&&c(),G=!1}try{t=new IntersectionObserver(se,{...j,root:a.ownerDocument})}catch{t=new IntersectionObserver(se,j)}t.observe(s)}return c(!0),l}function X_(s,o,t,e){e===void 0&&(e={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:x=!1}=e,C=Nb(s),T=a||l?[...C?yn(C):[],...o?yn(o):[]]:[];T.forEach(U=>{a&&U.addEventListener("scroll",t,{passive:!0}),l&&U.addEventListener("resize",t)});let w=C&&m?kD(C,t):null,R=-1,_=null;c&&(_=new ResizeObserver(U=>{let[D]=U;D&&D.target===C&&_&&o&&(_.unobserve(o),cancelAnimationFrame(R),R=requestAnimationFrame(()=>{var j;(j=_)==null||j.observe(o)})),t()}),C&&!x&&_.observe(C),o&&_.observe(o));let z,V=x?Ds(s):null;x&&Q();function Q(){let U=Ds(s);V&&!Y_(V,U)&&t(),V=U,z=requestAnimationFrame(Q)}return t(),()=>{var U;T.forEach(D=>{a&&D.removeEventListener("scroll",t),l&&D.removeEventListener("resize",t)}),w?.(),(U=_)==null||U.disconnect(),_=null,x&&cancelAnimationFrame(z)}}var J_=L_;var Q_=z_,Z_=O_,Hb=M_;var tA=(s,o,t)=>{let e=new Map,a={platform:Db,...t},l={...a.platform,_c:e};return I_(s,o,{...a,platform:l})};var eA=()=>new Promise(s=>requestAnimationFrame(()=>requestAnimationFrame(()=>s()))),rA=(s,o,t=200)=>{let e=!1,a=()=>{e||(e=!0,s.removeEventListener("transitionend",l),clearTimeout(c),o())},l=()=>a();s.addEventListener("transitionend",l);let c=setTimeout(a,t)},En=s=>f`
|
|
2711
2711
|
<svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${s}">
|
|
2712
2712
|
<polygon class="arrow-fill" points="0,0 5,6 10,0" />
|
|
2713
2713
|
<path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
|
|
2714
2714
|
</svg>
|
|
2715
|
-
`,
|
|
2715
|
+
`,ED={...Db,getOffsetParent:()=>window},CD=s=>({name:"alignInner",fn(o){let t=s.getElement();if(!t)return{};let e=s.padding??8,{rects:a}=o,l=o.elements.floating,c=l.getBoundingClientRect(),m=t.getBoundingClientRect(),x=m.top-c.top+m.height/2,C=s.getReferenceInner?.(),w=(C?C.getBoundingClientRect().top+C.getBoundingClientRect().height/2:a.reference.y+a.reference.height/2)-x,R=globalThis.innerHeight,_=c.height,z=e,V=R-_-e,Q=Math.max(z,Math.min(w,V)),U=l.shadowRoot?.querySelector(".Popup")??l.querySelector(".Popup");if(U&&Q!==w){let G=w-Q;U.scrollTop=Math.max(0,U.scrollTop-G)}w=Q;let D=m.left-c.left;return{x:C?C.getBoundingClientRect().left-D:a.reference.x,y:w,reset:!1}}}),$D=(s,o,t={})=>{let{placement:e="bottom-start",offsetPx:a=4,matchWidth:l=!1,minMatchWidth:c=!1,padding:m=8}=t,C=t.alignToInner?.getElement()!=null?[CD(t.alignToInner)]:[J_(a),Z_(),Q_({padding:m})];return l?C.push(Hb({apply({rects:T,elements:w}){Object.assign(w.floating.style,{width:`${T.reference.width}px`})}})):c&&C.push(Hb({apply({rects:T,elements:w}){Object.assign(w.floating.style,{minWidth:`${T.reference.width}px`})}})),tA(s,o,{placement:e,strategy:"fixed",middleware:C,platform:ED})},oA=(s,o,t={})=>{let{onPosition:e,...a}=t;return X_(s,o,()=>{$D(s,o,a).then(l=>{Object.assign(o.style,{left:`${l.x}px`,top:`${l.y}px`}),e?.(l)})})};var he=class{#t;#e;#i;#n;#a;#l;#d;#b;#x;#y;#u;#m;#f;#g;#w;#v;#k;#c=[];#r=null;#p=null;#o=!1;#s=!1;#h=0;get isOpen(){return this.#o}get isAnimating(){return this.#s}get isStarting(){return this.#o&&this.#s}get isEnding(){return!this.#o&&this.#s}get positionerElement(){return this.#r}get renderRoot(){return this.#r?.shadowRoot??this.#r}set placement(o){this.#a=o}set offset(o){this.#l=o}constructor(o,t){this.#t=o,this.#e=t.getAnchor,this.#i=t.matchWidth??!0,this.#n=t.minMatchWidth??!1,this.#a=t.placement??"bottom-start",this.#l=t.offset??4,this.#d=t.styles,this.#b=t.onOpen,this.#x=t.onClose,this.#y=t.onPosition,this.#u=t.renderPopup,this.#m=t.contentContainer,this.#f=t.contentSelector,this.#g=t.forwardProperties??[],this.#w=t.getOverlayRoot??(()=>document.body),this.#v=t.alignToInner,this.#k=t.alignToInnerReference,o.addController(this)}hostConnected(){document.addEventListener("click",this.#C)}hostDisconnected(){document.removeEventListener("click",this.#C),this.#z(),Ab(this.#t)}hostUpdated(){if(this.#o?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#u&&(this.#o||this.isEnding)){let o=this.renderRoot;o&&Pc(this.#u(this),o)}this.#m&&this.#o&&this.#c.length===0&&this.#O()}open(){if(this.#o)return;this.#h++;let o=this.#h;k_(this.#t,()=>this.close()),this.#o=!0,this.#s=!0,this.#_(),this.#I(),this.#b?.(),this.#t.requestUpdate(),eA().then(()=>{o===this.#h&&(this.#s=!1,this.#t.requestUpdate())})}close(){if(!this.#o)return;this.#h++,this.#s=!0,this.#t.requestUpdate();let o=this.renderRoot?.querySelector(".Popup");if(!o){this.#E();return}rA(o,()=>this.#E())}#E(){this.#o&&(this.#o=!1,this.#s=!1,this.#S(),Ab(this.#t),this.#x?.(),this.#A(),this.#t.requestUpdate())}#C=o=>{if(!this.#o)return;let t=o.composedPath();!t.includes(this.#t)&&!this.#T(t)&&this.close()};#T(o){return this.#r?o.includes(this.#r):!1}#_(){if(this.#r){this.#r.style.display="",this.#$(this.#r);return}let o=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,a=c=>c?Array.isArray(c)?c.flatMap(a):[c]:[],l=[...a(e.styles),...this.#d??[]];if(l.length>0){let c=t.attachShadow({mode:"open"});zc(c,l)}this.#$(t),o.appendChild(t),this.#r=t}#$(o){if(this.#g.length===0)return;let t=getComputedStyle(this.#t);for(let e of this.#g){let a=t.getPropertyValue(e).trim();a&&o.style.setProperty(e,a)}}#A(){this.#r&&(this.#r.style.display="none")}#R(){this.#r?.remove(),this.#r=null}#I(){if(this.#p)return;let o=this.#e(),t=this.#r;!o||!t||(this.#p=oA(o,t,{placement:this.#a,offsetPx:this.#l,matchWidth:this.#i,minMatchWidth:this.#n,onPosition:this.#y,alignToInner:this.#v?{getElement:this.#v,getReferenceInner:this.#k}:void 0}))}#S(){this.#p?.(),this.#p=null}#O(){let o=this.renderRoot?.querySelector(this.#m);if(!o)return;let t=this.#f?Array.from(this.#t.querySelectorAll(`:scope > ${this.#f}`)):Array.from(this.#t.childNodes);for(let e of t)o.appendChild(e),this.#c.push(e)}#L(){for(let o of this.#c)this.#t.appendChild(o);this.#c=[]}#z(){this.#S(),this.#L(),this.#R()}};var Zb=O("value-change",{bubbles:!0,composed:!0}),oh=O("values-change",{bubbles:!0,composed:!0}),SD=v`
|
|
2716
2716
|
:host {
|
|
2717
2717
|
display: block;
|
|
2718
2718
|
}
|
|
2719
|
-
`,
|
|
2719
|
+
`,TD=v`
|
|
2720
2720
|
/* ---- Input area (structural) ---- */
|
|
2721
2721
|
|
|
2722
2722
|
.Chips {
|
|
@@ -2783,7 +2783,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2783
2783
|
cursor: pointer;
|
|
2784
2784
|
flex-shrink: 0;
|
|
2785
2785
|
}
|
|
2786
|
-
`,
|
|
2786
|
+
`,_D=[v`
|
|
2787
2787
|
.Popup {
|
|
2788
2788
|
opacity: 1;
|
|
2789
2789
|
transform: translateY(0);
|
|
@@ -2820,7 +2820,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2820
2820
|
text-overflow: ellipsis;
|
|
2821
2821
|
white-space: nowrap;
|
|
2822
2822
|
}
|
|
2823
|
-
`],
|
|
2823
|
+
`],sA,iA,nA,aA,lA,dA,cA,pA,hA,uA,Cn,kt,Bb,Fb,Vb,Ub,qb,Pb,jb,Y,mA,Wb,Kb,$o,Br,Gb,Yb,rh,Hs,jt,kd,Bs,Xb,sh,ih,nh,Jb,Qb,ah,lh,dh,ch,ph,hh,le=class extends(uA=b,hA=[u({attribute:!1})],pA=[u({type:String})],cA=[u({attribute:!1})],dA=[u({type:Boolean,reflect:!0})],lA=[u({type:String})],aA=[u({type:Boolean,reflect:!0})],nA=[u({type:String})],iA=[E()],sA=[E()],uA){constructor(){super();n(this,Y);n(this,Cn);n(this,Bb,i(kt,8,this,[])),i(kt,11,this);n(this,Fb,i(kt,12,this,"")),i(kt,15,this);n(this,Vb,i(kt,16,this,new Set)),i(kt,19,this);n(this,Ub,i(kt,20,this,!1)),i(kt,23,this);n(this,qb,i(kt,24,this,"Search...")),i(kt,27,this);n(this,Pb,i(kt,28,this,!1)),i(kt,31,this);n(this,jb,i(kt,32,this,"")),i(kt,35,this);n(this,Wb,i(kt,36,this,-1)),i(kt,39,this);n(this,Gb,i(kt,40,this,"")),i(kt,43,this);n(this,jt,new he(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:_D,onOpen:()=>{if(p(this,Y,-1,Br),!this.multiple){p(this,Y,"",Hs);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(p(this,Y,-1,Br),!this.multiple){let t=this.options.find(e=>e.value===this.value);p(this,Y,t?.label??"",Hs)}},renderPopup:t=>{let e=r(this,Y,Xb),a=e.length===0;return f`
|
|
2824
2824
|
<div
|
|
2825
2825
|
class="Popup"
|
|
2826
2826
|
?data-starting-style="${t.isStarting}"
|
|
@@ -2829,19 +2829,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
2829
2829
|
<dui-scroll-area>
|
|
2830
2830
|
<div
|
|
2831
2831
|
class="List"
|
|
2832
|
-
id="${r(this,
|
|
2832
|
+
id="${r(this,Bs)}"
|
|
2833
2833
|
role="listbox"
|
|
2834
|
-
aria-labelledby="${r(this,
|
|
2834
|
+
aria-labelledby="${r(this,kd)}"
|
|
2835
2835
|
?data-empty="${a}"
|
|
2836
|
-
@mousedown="${r(this,
|
|
2837
|
-
@mousemove="${r(this,
|
|
2836
|
+
@mousedown="${r(this,lh)}"
|
|
2837
|
+
@mousemove="${r(this,dh)}"
|
|
2838
2838
|
>
|
|
2839
|
-
${
|
|
2840
|
-
${a?
|
|
2839
|
+
${Os(e,l=>l.value,r(this,hh))}
|
|
2840
|
+
${a?f` <div class="Empty">No results</div> `:I}
|
|
2841
2841
|
</div>
|
|
2842
2842
|
</dui-scroll-area>
|
|
2843
2843
|
</div>
|
|
2844
|
-
`}}));n(this,
|
|
2844
|
+
`}}));n(this,kd,`combobox-input-${crypto.randomUUID().slice(0,8)}`);n(this,Bs,`combobox-list-${crypto.randomUUID().slice(0,8)}`);n(this,sh,t=>{let e=t.target;p(this,Y,e.value,Hs),r(this,jt).isOpen||this.disabled||r(this,jt).open(),p(this,Y,-1,Br)});n(this,ih,()=>{!r(this,jt).isOpen&&!this.disabled&&r(this,jt).open()});n(this,nh,t=>{let e=r(this,Y,Xb);switch(t.key){case"ArrowDown":t.preventDefault(),r(this,jt).isOpen?p(this,Y,Math.min(r(this,Y,$o)+1,e.length-1),Br):this.disabled||r(this,jt).open();break;case"ArrowUp":t.preventDefault(),r(this,jt).isOpen?p(this,Y,Math.max(r(this,Y,$o)-1,0),Br):this.disabled||r(this,jt).open();break;case"Enter":{if(t.preventDefault(),r(this,jt).isOpen){let a=r(this,Y,$o)>=0?r(this,Y,$o):0,l=e[a];l&&h(this,Y,Jb).call(this,l)}else this.disabled||r(this,jt).open();break}case"Escape":r(this,jt).isOpen&&(t.preventDefault(),p(this,Y,"",Hs),r(this,jt).close());break;case"Tab":r(this,jt).isOpen&&r(this,jt).close();break;case"Home":r(this,jt).isOpen&&(t.preventDefault(),p(this,Y,0,Br));break;case"End":r(this,jt).isOpen&&(t.preventDefault(),p(this,Y,e.length-1,Br));break;case"Backspace":if(this.multiple&&r(this,Y,rh)===""&&this.values.size>0){let a=Array.from(this.values).at(-1);a&&h(this,Y,Qb).call(this,a)}break}});n(this,ah,t=>{h(this,Y,Jb).call(this,t)});n(this,lh,t=>{t.preventDefault()});n(this,dh,()=>{r(this,Y,$o)!==-1&&p(this,Y,-1,Br)});n(this,ch,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});n(this,ph,t=>{let a=this.options.find(l=>l.value===t)?.label??t;return f`
|
|
2845
2845
|
<span class="Chip">
|
|
2846
2846
|
<span class="ChipLabel">${a}</span>
|
|
2847
2847
|
<button
|
|
@@ -2849,61 +2849,61 @@ label, legend, caption, figcaption, th, td {
|
|
|
2849
2849
|
type="button"
|
|
2850
2850
|
tabindex="-1"
|
|
2851
2851
|
@mousedown="${l=>l.preventDefault()}"
|
|
2852
|
-
@click="${l=>{l.stopPropagation(),
|
|
2852
|
+
@click="${l=>{l.stopPropagation(),h(this,Y,Qb).call(this,t)}}"
|
|
2853
2853
|
>
|
|
2854
2854
|
<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>
|
|
2855
2855
|
</button>
|
|
2856
2856
|
</span>
|
|
2857
|
-
`});n(this,
|
|
2857
|
+
`});n(this,hh,(t,e)=>{let a=this.multiple?this.values.has(t.value):t.value===this.value,l=e===r(this,Y,$o);return f`
|
|
2858
2858
|
<div
|
|
2859
2859
|
class="Item"
|
|
2860
2860
|
role="option"
|
|
2861
|
-
id="${r(this,
|
|
2861
|
+
id="${r(this,Bs)}-option-${e}"
|
|
2862
2862
|
aria-selected="${a}"
|
|
2863
2863
|
?data-selected="${a}"
|
|
2864
2864
|
?data-highlighted="${l}"
|
|
2865
|
-
@click="${()=>r(this,
|
|
2865
|
+
@click="${()=>r(this,ah).call(this,t)}"
|
|
2866
2866
|
>
|
|
2867
2867
|
<span class="ItemText">${t.label}</span>
|
|
2868
2868
|
<span class="ItemIndicator">
|
|
2869
|
-
${a?
|
|
2869
|
+
${a?f`<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="M20 6 9 17l-5-5"/></svg></dui-icon>`:I}
|
|
2870
2870
|
</span>
|
|
2871
2871
|
</div>
|
|
2872
|
-
`});p(this,
|
|
2872
|
+
`});p(this,Cn,this.attachInternals())}willUpdate(){h(this,Y,mA).call(this)}render(){let t=f`
|
|
2873
2873
|
<input
|
|
2874
2874
|
class="Input"
|
|
2875
|
-
id="${r(this,
|
|
2875
|
+
id="${r(this,kd)}"
|
|
2876
2876
|
type="text"
|
|
2877
2877
|
role="combobox"
|
|
2878
2878
|
autocomplete="off"
|
|
2879
2879
|
aria-haspopup="listbox"
|
|
2880
|
-
aria-expanded="${r(this,
|
|
2881
|
-
aria-controls="${r(this,
|
|
2882
|
-
aria-activedescendant="${r(this,
|
|
2883
|
-
.value="${
|
|
2880
|
+
aria-expanded="${r(this,jt).isOpen}"
|
|
2881
|
+
aria-controls="${r(this,Bs)}"
|
|
2882
|
+
aria-activedescendant="${r(this,Y,$o)>=0?`${r(this,Bs)}-option-${r(this,Y,$o)}`:I}"
|
|
2883
|
+
.value="${Nr(r(this,Y,rh))}"
|
|
2884
2884
|
.placeholder="${this.placeholder}"
|
|
2885
2885
|
?disabled="${this.disabled}"
|
|
2886
|
-
@input="${r(this,
|
|
2887
|
-
@focus="${r(this,
|
|
2888
|
-
@keydown="${r(this,
|
|
2886
|
+
@input="${r(this,sh)}"
|
|
2887
|
+
@focus="${r(this,ih)}"
|
|
2888
|
+
@keydown="${r(this,nh)}"
|
|
2889
2889
|
/>
|
|
2890
|
-
`;return this.multiple?
|
|
2890
|
+
`;return this.multiple?f`
|
|
2891
2891
|
<div
|
|
2892
2892
|
class="Chips"
|
|
2893
2893
|
part="chips"
|
|
2894
2894
|
?data-disabled="${this.disabled}"
|
|
2895
|
-
@click="${r(this,
|
|
2895
|
+
@click="${r(this,ch)}"
|
|
2896
2896
|
>
|
|
2897
|
-
${
|
|
2897
|
+
${Os(Array.from(this.values),e=>e,r(this,ph))}
|
|
2898
2898
|
${t}
|
|
2899
2899
|
<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>
|
|
2900
2900
|
</div>
|
|
2901
|
-
`:
|
|
2901
|
+
`:f`
|
|
2902
2902
|
<div class="InputWrapper" part="input-wrapper">
|
|
2903
2903
|
${t}
|
|
2904
2904
|
<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>
|
|
2905
2905
|
</div>
|
|
2906
|
-
`}};
|
|
2906
|
+
`}};kt=S(uA),Cn=new WeakMap,Bb=new WeakMap,Fb=new WeakMap,Vb=new WeakMap,Ub=new WeakMap,qb=new WeakMap,Pb=new WeakMap,jb=new WeakMap,Y=new WeakSet,mA=function(){if(this.multiple){let t=new FormData;for(let e of this.values)t.append(this.name||"values",e);r(this,Cn).setFormValue(t)}else r(this,Cn).setFormValue(this.value||null)},Wb=new WeakMap,Gb=new WeakMap,jt=new WeakMap,kd=new WeakMap,Bs=new WeakMap,Xb=function(){let t=r(this,Y,rh).toLowerCase(),e=this.options;return t?e.filter(a=>a.label.toLowerCase().includes(t)):e},sh=new WeakMap,ih=new WeakMap,nh=new WeakMap,Jb=function(t){if(this.multiple){let e=new Set(this.values),a=!e.has(t.value);a?e.add(t.value):e.delete(t.value),this.values=e,p(this,Y,"",Hs),p(this,Y,-1,Br),this.dispatchEvent(oh({value:t.value,selected:a,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,p(this,Y,t.label,Hs),this.dispatchEvent(Zb({value:t.value,option:t})),r(this,jt).close()},Qb=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(oh({value:t,selected:!1,values:e}))},ah=new WeakMap,lh=new WeakMap,dh=new WeakMap,ch=new WeakMap,ph=new WeakMap,hh=new WeakMap,d(kt,4,"options",hA,le,Bb),d(kt,4,"value",pA,le,Fb),d(kt,4,"values",cA,le,Vb),d(kt,4,"multiple",dA,le,Ub),d(kt,4,"placeholder",lA,le,qb),d(kt,4,"disabled",aA,le,Pb),d(kt,4,"name",nA,le,jb),Kb=d(kt,20,"#highlightedIndex",iA,Y,Wb),$o=Kb.get,Br=Kb.set,Yb=d(kt,20,"#inputValue",sA,Y,Gb),rh=Yb.get,Hs=Yb.set,$(kt,le),g(le,"tagName","dui-combobox"),g(le,"formAssociated",!0),g(le,"styles",[y,SD,TD]);var AD=k`
|
|
2907
2907
|
/* ---- Chips (multi-select container) ---- */
|
|
2908
2908
|
|
|
2909
2909
|
.Chips {
|
|
@@ -3059,13 +3059,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
3059
3059
|
color: var(--text-2);
|
|
3060
3060
|
text-align: center;
|
|
3061
3061
|
}
|
|
3062
|
-
|
|
3062
|
+
`,$n=class extends le{static styles=[...le.styles,AD]};customElements.define($n.tagName,$n);var lr=Symbol("dui-command");var Ed=(s,o,t,e)=>{if(!s)return 1;let a=s.toLowerCase(),l=o.toLowerCase(),c=t.toLowerCase();if(l===a)return 1;if(l.startsWith(a))return .8;if(c.startsWith(a))return .75;if(l.includes(a))return .7;if(c.includes(a))return .6;for(let m of e)if(m.toLowerCase().startsWith(a))return .5;for(let m of e)if(m.toLowerCase().includes(a))return .4;return 0};var RD=O("select",{bubbles:!0,composed:!0}),ID=O("search-change",{bubbles:!0,composed:!0}),OD=O("escape",{bubbles:!0,composed:!0}),LD=0,zD=()=>`dui-command-${++LD}`,MD=v`
|
|
3063
3063
|
:host {
|
|
3064
3064
|
display: flex;
|
|
3065
3065
|
flex-direction: column;
|
|
3066
3066
|
overflow: hidden;
|
|
3067
3067
|
}
|
|
3068
|
-
`,
|
|
3068
|
+
`,fA,gA,vA,bA,xA,yA,wA,kA,Nt,tx,ex,rx,ox,sx,ix,Ko,EA,it,nx,ax,Cd,$d,Go,Yo,Sd,Fr,mh,CA,fh,Sn,gh,vh,bh,xh,yh,wh,kh,Eh,Ch,Td,_d,lx,uh,Re=class extends(kA=b,wA=[u({type:Boolean})],yA=[u({type:Boolean,attribute:"should-filter"})],xA=[u({type:String})],bA=[u({attribute:!1})],vA=[E()],gA=[E()],fA=[vt({context:lr}),E()],kA){constructor(){super(...arguments);n(this,it);n(this,tx,i(Nt,8,this,!1)),i(Nt,11,this);n(this,ex,i(Nt,12,this,!0)),i(Nt,15,this);n(this,rx,i(Nt,16,this)),i(Nt,19,this);n(this,ox,i(Nt,20,this)),i(Nt,23,this);n(this,sx,i(Nt,24,this,"")),i(Nt,27,this);n(this,nx,i(Nt,28,this)),i(Nt,31,this);n(this,Go,new Map);n(this,Yo,[]);n(this,Sd,new Set);n(this,Fr,new Map);n(this,mh,zD());n(this,fh,t=>this.shouldFilter?r(this,Fr).get(t)??0:1);n(this,gh,()=>h(this,it,Sn).call(this).length);n(this,vh,t=>h(this,it,Sn).call(this).filter(e=>e.groupId===t).length);n(this,bh,t=>{r(this,Go).set(t.id,t),r(this,Yo).includes(t.id)||r(this,Yo).push(t.id);let e=this.filter?this.filter(t.value,r(this,it,Ko),t.keywords):Ed(r(this,it,Ko),t.value,t.textContent,t.keywords);if(r(this,Fr).set(t.id,e),!r(this,it,Cd)){let a=h(this,it,Sn).call(this);a.length>0&&!a[0].disabled&&p(this,it,a[0].id,$d)}this.requestUpdate()});n(this,xh,t=>{r(this,Go).delete(t),p(this,Yo,r(this,Yo).filter(e=>e!==t)),r(this,Fr).delete(t),this.requestUpdate()});n(this,yh,t=>{r(this,Go).set(t.id,t);let e=this.filter?this.filter(t.value,r(this,it,Ko),t.keywords):Ed(r(this,it,Ko),t.value,t.textContent,t.keywords);r(this,Fr).set(t.id,e),this.requestUpdate()});n(this,wh,t=>{r(this,Sd).add(t)});n(this,kh,t=>{r(this,Sd).delete(t)});n(this,Eh,t=>{p(this,it,t,EA),h(this,it,CA).call(this);let a=h(this,it,Sn).call(this).find(l=>!l.disabled);p(this,it,a?.id,$d),this.dispatchEvent(ID(t))});n(this,Ch,t=>{p(this,it,t,$d)});n(this,Td,t=>{this.dispatchEvent(RD(t))});n(this,_d,t=>{let e=h(this,it,Sn).call(this).filter(c=>!c.disabled);if(e.length===0)return;let a=e.findIndex(c=>c.id===r(this,it,Cd)),l=c=>{let m=e[c];m&&p(this,it,m.id,$d)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a<e.length-1?l(a+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a>0?l(a-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 c=e.find(m=>m.id===r(this,it,Cd));c&&r(this,Td).call(this,c.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(OD());break}}});n(this,lx,i(Nt,32,this,h(this,it,uh).call(this))),i(Nt,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",r(this,_d)),this._ctx=h(this,it,uh).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",r(this,_d))}willUpdate(){this._ctx=h(this,it,uh).call(this)}render(){return f`<slot></slot>`}};Nt=S(kA),tx=new WeakMap,ex=new WeakMap,rx=new WeakMap,ox=new WeakMap,sx=new WeakMap,it=new WeakSet,nx=new WeakMap,Go=new WeakMap,Yo=new WeakMap,Sd=new WeakMap,Fr=new WeakMap,mh=new WeakMap,CA=function(){r(this,Fr).clear();for(let[t,e]of r(this,Go)){let a=this.filter?this.filter(e.value,r(this,it,Ko),e.keywords):Ed(r(this,it,Ko),e.value,e.textContent,e.keywords);r(this,Fr).set(t,a)}},fh=new WeakMap,Sn=function(){return r(this,Yo).map(t=>r(this,Go).get(t)).filter(t=>t?this.shouldFilter?(r(this,Fr).get(t.id)??0)>0:!0:!1)},gh=new WeakMap,vh=new WeakMap,bh=new WeakMap,xh=new WeakMap,yh=new WeakMap,wh=new WeakMap,kh=new WeakMap,Eh=new WeakMap,Ch=new WeakMap,Td=new WeakMap,_d=new WeakMap,lx=new WeakMap,uh=function(){return{search:r(this,it,Ko),selectedItemId:r(this,it,Cd),listId:r(this,mh),loop:this.loop,shouldFilter:this.shouldFilter,getScore:r(this,fh),getVisibleCount:r(this,gh),getGroupVisibleCount:r(this,vh),registerItem:r(this,bh),unregisterItem:r(this,xh),updateItem:r(this,yh),registerGroup:r(this,wh),unregisterGroup:r(this,kh),setSearch:r(this,Eh),selectItem:r(this,Ch),handleItemSelect:r(this,Td)}},d(Nt,4,"loop",wA,Re,tx),d(Nt,4,"shouldFilter",yA,Re,ex),d(Nt,4,"value",xA,Re,rx),d(Nt,4,"filter",bA,Re,ox),ix=d(Nt,20,"#search",vA,it,sx),Ko=ix.get,EA=ix.set,ax=d(Nt,20,"#selectedItemId",gA,it,nx),Cd=ax.get,$d=ax.set,d(Nt,4,"_ctx",fA,Re,lx),$(Nt,Re),g(Re,"tagName","dui-command"),g(Re,"styles",[y,MD]);var ND=v`
|
|
3069
3069
|
:host {
|
|
3070
3070
|
display: block;
|
|
3071
3071
|
}
|
|
@@ -3088,7 +3088,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3088
3088
|
background: transparent;
|
|
3089
3089
|
padding: 0;
|
|
3090
3090
|
}
|
|
3091
|
-
|
|
3091
|
+
`,$A,SA,TA,Fs,dx,cx,Tn,$h,Sh,Cr=class extends(TA=b,SA=[u({type:String})],$A=[Ot({context:lr,subscribe:!0})],TA){constructor(){super(...arguments);n(this,dx,i(Fs,8,this,"Search...")),i(Fs,11,this);n(this,cx,i(Fs,12,this)),i(Fs,15,this);n(this,Tn);n(this,$h,t=>{let e=t.target;this._ctx?.setSearch(e.value)});n(this,Sh,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(r(this,Tn)!==void 0&&this._ctx?.search===""&&r(this,Tn)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}p(this,Tn,this._ctx?.search)}render(){return f`
|
|
3092
3092
|
<div class="InputWrapper">
|
|
3093
3093
|
<svg
|
|
3094
3094
|
class="SearchIcon"
|
|
@@ -3113,11 +3113,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3113
3113
|
aria-controls="${this._ctx?.listId??I}"
|
|
3114
3114
|
aria-activedescendant="${this._ctx?.selectedItemId??I}"
|
|
3115
3115
|
.placeholder="${this.placeholder}"
|
|
3116
|
-
@input="${r(this
|
|
3117
|
-
@keydown="${r(this,
|
|
3116
|
+
@input="${r(this,$h)}"
|
|
3117
|
+
@keydown="${r(this,Sh)}"
|
|
3118
3118
|
/>
|
|
3119
3119
|
</div>
|
|
3120
|
-
`}};
|
|
3120
|
+
`}};Fs=S(TA),dx=new WeakMap,cx=new WeakMap,Tn=new WeakMap,$h=new WeakMap,Sh=new WeakMap,d(Fs,4,"placeholder",SA,Cr,dx),d(Fs,4,"_ctx",$A,Cr,cx),$(Fs,Cr),g(Cr,"tagName","dui-command-input"),g(Cr,"styles",[y,ND]);var DD=v`
|
|
3121
3121
|
:host {
|
|
3122
3122
|
display: block;
|
|
3123
3123
|
}
|
|
@@ -3125,7 +3125,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3125
3125
|
.List {
|
|
3126
3126
|
overflow: hidden;
|
|
3127
3127
|
}
|
|
3128
|
-
`,
|
|
3128
|
+
`,_A,AA,Th,px,Vr=class extends(AA=b,_A=[Ot({context:lr,subscribe:!0})],AA){constructor(){super(...arguments);n(this,px,i(Th,8,this)),i(Th,11,this)}render(){return f`
|
|
3129
3129
|
<dui-scroll-area>
|
|
3130
3130
|
<div
|
|
3131
3131
|
class="List"
|
|
@@ -3135,7 +3135,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3135
3135
|
<slot></slot>
|
|
3136
3136
|
</div>
|
|
3137
3137
|
</dui-scroll-area>
|
|
3138
|
-
`}};
|
|
3138
|
+
`}};Th=S(AA),px=new WeakMap,d(Th,4,"_ctx",_A,Vr,px),$(Th,Vr),g(Vr,"tagName","dui-command-list"),g(Vr,"styles",[y,DD]);var HD=0,BD=()=>`dui-command-group-${++HD}`,FD=v`
|
|
3139
3139
|
:host {
|
|
3140
3140
|
display: block;
|
|
3141
3141
|
}
|
|
@@ -3147,12 +3147,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
3147
3147
|
.Group {
|
|
3148
3148
|
overflow: hidden;
|
|
3149
3149
|
}
|
|
3150
|
-
`,
|
|
3150
|
+
`,RA,IA,OA,Vs,hx,ux,Us,$r=class extends(OA=b,IA=[u({type:String})],RA=[Ot({context:lr,subscribe:!0})],OA){constructor(){super(...arguments);n(this,hx,i(Vs,8,this,"")),i(Vs,11,this);n(this,ux,i(Vs,12,this)),i(Vs,15,this);n(this,Us,BD())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",r(this,Us)),this._ctx?.registerGroup(r(this,Us))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(r(this,Us))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(r(this,Us))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
|
|
3151
3151
|
<div class="Group" role="group" aria-label="${this.heading||I}">
|
|
3152
|
-
${this.heading?
|
|
3152
|
+
${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:I}
|
|
3153
3153
|
<slot></slot>
|
|
3154
3154
|
</div>
|
|
3155
|
-
`}};
|
|
3155
|
+
`}};Vs=S(OA),hx=new WeakMap,ux=new WeakMap,Us=new WeakMap,d(Vs,4,"heading",IA,$r,hx),d(Vs,4,"_ctx",RA,$r,ux),$(Vs,$r),g($r,"tagName","dui-command-group"),g($r,"styles",[y,FD]);var VD=0,UD=()=>`dui-command-item-${++VD}`,qD=v`
|
|
3156
3156
|
:host {
|
|
3157
3157
|
display: block;
|
|
3158
3158
|
}
|
|
@@ -3169,21 +3169,21 @@ label, legend, caption, figcaption, th, td {
|
|
|
3169
3169
|
user-select: none;
|
|
3170
3170
|
outline: none;
|
|
3171
3171
|
}
|
|
3172
|
-
`,
|
|
3172
|
+
`,LA,zA,MA,NA,DA,Ke,mx,fx,gx,vx,Ur,_n,An,Rn,In,Ie,Ad,HA,BA,bx,_h,Ah,Ge=class extends(DA=b,NA=[u({type:String})],MA=[u({type:Array,attribute:!1})],zA=[u({type:Boolean})],LA=[Ot({context:lr,subscribe:!0})],DA){constructor(){super(...arguments);n(this,Ie);n(this,mx,i(Ke,8,this,"")),i(Ke,11,this);n(this,fx,i(Ke,12,this,[])),i(Ke,15,this);n(this,gx,i(Ke,16,this,!1)),i(Ke,19,this);n(this,vx,i(Ke,20,this)),i(Ke,23,this);n(this,Ur,UD());n(this,_n);n(this,An);n(this,Rn);n(this,In,!1);n(this,_h,()=>{!this.disabled&&this._ctx?.selectedItemId!==r(this,Ur)&&this._ctx?.selectItem(r(this,Ur))});n(this,Ah,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(h(this,Ie,bx).call(this)),p(this,In,!0),p(this,_n,this.value),p(this,An,this.keywords),p(this,Rn,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(r(this,Ur)),p(this,In,!1)}willUpdate(){if(r(this,In)){let t=r(this,_n)!==this.value,e=r(this,An)!==this.keywords,a=r(this,Rn)!==this.disabled;(t||e||a)&&(this._ctx?.updateItem(h(this,Ie,bx).call(this)),p(this,_n,this.value),p(this,An,this.keywords),p(this,Rn,this.disabled))}this._ctx?.shouldFilter?r(this,Ie,HA)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),r(this,Ie,Ad)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){r(this,Ie,Ad)&&this.scrollIntoView({block:"nearest"})}render(){return f`
|
|
3173
3173
|
<div
|
|
3174
3174
|
class="Item"
|
|
3175
3175
|
role="option"
|
|
3176
|
-
id="${r(this,
|
|
3177
|
-
aria-selected="${r(this,
|
|
3176
|
+
id="${r(this,Ur)}"
|
|
3177
|
+
aria-selected="${r(this,Ie,Ad)}"
|
|
3178
3178
|
aria-disabled="${this.disabled}"
|
|
3179
|
-
?data-selected="${r(this,
|
|
3179
|
+
?data-selected="${r(this,Ie,Ad)}"
|
|
3180
3180
|
?data-disabled="${this.disabled}"
|
|
3181
|
-
@mousemove="${r(this,
|
|
3182
|
-
@click="${r(this,
|
|
3181
|
+
@mousemove="${r(this,_h)}"
|
|
3182
|
+
@click="${r(this,Ah)}"
|
|
3183
3183
|
>
|
|
3184
3184
|
<slot></slot>
|
|
3185
3185
|
</div>
|
|
3186
|
-
`}};
|
|
3186
|
+
`}};Ke=S(DA),mx=new WeakMap,fx=new WeakMap,gx=new WeakMap,vx=new WeakMap,Ur=new WeakMap,_n=new WeakMap,An=new WeakMap,Rn=new WeakMap,In=new WeakMap,Ie=new WeakSet,Ad=function(){return this._ctx?.selectedItemId===r(this,Ur)},HA=function(){return this._ctx?this._ctx.getScore(r(this,Ur))>0:!0},BA=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},bx=function(){return{id:r(this,Ur),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:h(this,Ie,BA).call(this)}},_h=new WeakMap,Ah=new WeakMap,d(Ke,4,"value",NA,Ge,mx),d(Ke,4,"keywords",MA,Ge,fx),d(Ke,4,"disabled",zA,Ge,gx),d(Ke,4,"_ctx",LA,Ge,vx),$(Ke,Ge),g(Ge,"tagName","dui-command-item"),g(Ge,"styles",[y,qD]);var PD=v`
|
|
3187
3187
|
:host {
|
|
3188
3188
|
display: block;
|
|
3189
3189
|
}
|
|
@@ -3195,32 +3195,32 @@ label, legend, caption, figcaption, th, td {
|
|
|
3195
3195
|
.Empty {
|
|
3196
3196
|
text-align: center;
|
|
3197
3197
|
}
|
|
3198
|
-
`,
|
|
3198
|
+
`,FA,VA,Rh,xx,qr=class extends(VA=b,FA=[Ot({context:lr,subscribe:!0})],VA){constructor(){super(...arguments);n(this,xx,i(Rh,8,this)),i(Rh,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
|
|
3199
3199
|
<div class="Empty" role="status">
|
|
3200
3200
|
<slot></slot>
|
|
3201
3201
|
</div>
|
|
3202
|
-
`}};
|
|
3202
|
+
`}};Rh=S(VA),xx=new WeakMap,d(Rh,4,"_ctx",FA,qr,xx),$(Rh,qr),g(qr,"tagName","dui-command-empty"),g(qr,"styles",[y,PD]);var jD=v`
|
|
3203
3203
|
:host {
|
|
3204
3204
|
display: block;
|
|
3205
3205
|
}
|
|
3206
|
-
`,
|
|
3206
|
+
`,On=class extends b{static tagName="dui-command-separator";static styles=[y,jD];render(){return f`<div class="Separator" role="separator"></div>`}};var WD=v`
|
|
3207
3207
|
:host {
|
|
3208
3208
|
display: inline-flex;
|
|
3209
3209
|
margin-left: auto;
|
|
3210
3210
|
}
|
|
3211
|
-
`,
|
|
3211
|
+
`,Ln=class extends b{static tagName="dui-command-shortcut";static styles=[y,WD];render(){return f`<span class="Shortcut"><slot></slot></span>`}};var KD=k`
|
|
3212
3212
|
:host {
|
|
3213
3213
|
border-radius: var(--radius-md);
|
|
3214
3214
|
background: var(--surface-3);
|
|
3215
3215
|
color: var(--text-1);
|
|
3216
3216
|
}
|
|
3217
|
-
`,
|
|
3217
|
+
`,zn=class extends Re{static styles=[...Re.styles,KD]};customElements.define(zn.tagName,zn);var GD=k`
|
|
3218
3218
|
.Empty {
|
|
3219
3219
|
padding: var(--space-6);
|
|
3220
3220
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
3221
3221
|
color: var(--text-2);
|
|
3222
3222
|
}
|
|
3223
|
-
`,
|
|
3223
|
+
`,Mn=class extends qr{static styles=[...qr.styles,GD]};customElements.define(Mn.tagName,Mn);var YD=k`
|
|
3224
3224
|
.Group {
|
|
3225
3225
|
padding: var(--space-1_5);
|
|
3226
3226
|
}
|
|
@@ -3231,7 +3231,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3231
3231
|
font-weight: var(--font-weight-medium);
|
|
3232
3232
|
color: var(--text-2);
|
|
3233
3233
|
}
|
|
3234
|
-
`,
|
|
3234
|
+
`,Nn=class extends $r{static styles=[...$r.styles,YD]};customElements.define(Nn.tagName,Nn);var XD=k`
|
|
3235
3235
|
.InputWrapper {
|
|
3236
3236
|
gap: var(--space-2);
|
|
3237
3237
|
border-bottom: var(--border-width-thin) solid var(--border);
|
|
@@ -3253,7 +3253,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3253
3253
|
.Input::placeholder {
|
|
3254
3254
|
color: var(--text-3);
|
|
3255
3255
|
}
|
|
3256
|
-
`,
|
|
3256
|
+
`,Dn=class extends Cr{static styles=[...Cr.styles,XD]};customElements.define(Dn.tagName,Dn);var JD=k`
|
|
3257
3257
|
.Item {
|
|
3258
3258
|
gap: var(--space-2);
|
|
3259
3259
|
border-radius: var(--radius-sm);
|
|
@@ -3275,7 +3275,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3275
3275
|
--icon-size: var(--space-4);
|
|
3276
3276
|
color: var(--text-2);
|
|
3277
3277
|
}
|
|
3278
|
-
|
|
3278
|
+
`,Hn=class extends Ge{static styles=[...Ge.styles,JD]};customElements.define(Hn.tagName,Hn);var QD=k`
|
|
3279
3279
|
dui-scroll-area {
|
|
3280
3280
|
max-height: calc(var(--space-5) * 15);
|
|
3281
3281
|
height: auto;
|
|
@@ -3284,18 +3284,18 @@ label, legend, caption, figcaption, th, td {
|
|
|
3284
3284
|
.List {
|
|
3285
3285
|
padding: var(--space-1) 0;
|
|
3286
3286
|
}
|
|
3287
|
-
`,
|
|
3287
|
+
`,Bn=class extends Vr{static styles=[...Vr.styles,QD]};customElements.define(Bn.tagName,Bn);var ZD=k`
|
|
3288
3288
|
.Separator {
|
|
3289
3289
|
height: var(--border-width-thin);
|
|
3290
3290
|
margin-inline: calc(-1 * var(--space-1));
|
|
3291
3291
|
background: var(--border);
|
|
3292
3292
|
}
|
|
3293
|
-
`,
|
|
3293
|
+
`,Fn=class extends On{static styles=[...On.styles,ZD]};customElements.define(Fn.tagName,Fn);var tH=k`
|
|
3294
3294
|
.Shortcut {
|
|
3295
3295
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
3296
3296
|
color: var(--text-2);
|
|
3297
3297
|
}
|
|
3298
|
-
`,
|
|
3298
|
+
`,Vn=class extends Ln{static styles=[...Ln.styles,tH]};customElements.define(Vn.tagName,Vn);var UA="important",eH=" !"+UA,Un=gn(class extends Po{constructor(s){if(super(s),s.type!==wr.ATTRIBUTE||s.name!=="style"||s.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(s){return Object.keys(s).reduce((o,t)=>{let e=s[t];return e==null?o:o+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(s,[o]){let{style:t}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(o)),this.render(o);for(let e of this.ft)o[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in o){let a=o[e];if(a!=null){this.ft.add(e);let l=typeof a=="string"&&a.endsWith(eH);e.includes("-")||l?t.setProperty(e,l?a.slice(0,-11):a,l?UA:""):t[e]=a}}return ce}});var rH=O("sort-change",{bubbles:!0,composed:!0}),oH=O("page-change",{bubbles:!0,composed:!0}),sH=f`<svg
|
|
3299
3299
|
xmlns="http://www.w3.org/2000/svg"
|
|
3300
3300
|
width="100%"
|
|
3301
3301
|
height="100%"
|
|
@@ -3308,7 +3308,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3308
3308
|
>
|
|
3309
3309
|
<path d="m7 15 5 5 5-5" />
|
|
3310
3310
|
<path d="m7 9 5-5 5 5" />
|
|
3311
|
-
</svg>`,
|
|
3311
|
+
</svg>`,iH=f`<svg
|
|
3312
3312
|
xmlns="http://www.w3.org/2000/svg"
|
|
3313
3313
|
width="100%"
|
|
3314
3314
|
height="100%"
|
|
@@ -3320,7 +3320,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3320
3320
|
stroke-linejoin="round"
|
|
3321
3321
|
>
|
|
3322
3322
|
<path d="m18 15-6-6-6 6" />
|
|
3323
|
-
</svg>`,
|
|
3323
|
+
</svg>`,nH=f`<svg
|
|
3324
3324
|
xmlns="http://www.w3.org/2000/svg"
|
|
3325
3325
|
width="100%"
|
|
3326
3326
|
height="100%"
|
|
@@ -3332,11 +3332,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3332
3332
|
stroke-linejoin="round"
|
|
3333
3333
|
>
|
|
3334
3334
|
<path d="m6 9 6 6 6-6" />
|
|
3335
|
-
</svg>`;function
|
|
3335
|
+
</svg>`;function aH(s,o){return s==null&&o==null?0:s==null?-1:o==null?1:typeof s=="number"&&typeof o=="number"?s-o:typeof s=="string"&&typeof o=="string"?s.localeCompare(o):s instanceof Date&&o instanceof Date?s.getTime()-o.getTime():String(s).localeCompare(String(o))}function lH(s,o){if(!o)return[...s];let{column:t,direction:e}=o,a=e==="asc"?1:-1;return[...s].sort((l,c)=>a*aH(l[t],c[t]))}function dH(s,o,t){let e=(o-1)*t;return s.slice(e,e+t)}var cH=v`
|
|
3336
3336
|
:host {
|
|
3337
3337
|
display: block;
|
|
3338
3338
|
}
|
|
3339
|
-
`,
|
|
3339
|
+
`,pH=v`
|
|
3340
3340
|
.DataTable {
|
|
3341
3341
|
display: flex;
|
|
3342
3342
|
flex-direction: column;
|
|
@@ -3405,48 +3405,48 @@ label, legend, caption, figcaption, th, td {
|
|
|
3405
3405
|
.PageButton:disabled {
|
|
3406
3406
|
cursor: not-allowed;
|
|
3407
3407
|
}
|
|
3408
|
-
`,
|
|
3408
|
+
`,qA,PA,jA,WA,KA,GA,YA,XA,JA,Tt,yx,wx,kx,Ex,Cx,$x,Sx,So,Ih,H,Tx,_x,To,Oh,Ax,Rx,Ix,Ox,Rd,QA,ZA,Id,tR,eR,rR,oR,Oe=class extends(JA=b,XA=[u({attribute:!1})],YA=[u({attribute:!1})],GA=[u({type:Number,attribute:"page-size"})],KA=[u({attribute:!1})],WA=[u({attribute:"empty-text"})],jA=[E()],PA=[E()],qA=[E()],JA){constructor(){super(...arguments);n(this,H);n(this,yx,i(Tt,8,this,[])),i(Tt,11,this);n(this,wx,i(Tt,12,this,[])),i(Tt,15,this);n(this,kx,i(Tt,16,this,10)),i(Tt,19,this);n(this,Ex,i(Tt,20,this)),i(Tt,23,this);n(this,Cx,i(Tt,24,this,"No results.")),i(Tt,27,this);n(this,$x,i(Tt,28,this,null)),i(Tt,31,this);n(this,Tx,i(Tt,32,this,1)),i(Tt,35,this);n(this,Ax,i(Tt,36,this,[])),i(Tt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&p(this,H,1,Oh);let e=lH(this.data,r(this,H,So));this.pageSize>0?p(this,H,dH(e,r(this,H,To),this.pageSize),Ox):p(this,H,e,Ox)}}render(){return f`
|
|
3409
3409
|
<div class="DataTable" part="root">
|
|
3410
3410
|
<div class="TableWindow" part="table-window">
|
|
3411
3411
|
<table part="table">
|
|
3412
|
-
${
|
|
3412
|
+
${h(this,H,eR).call(this)} ${h(this,H,rR).call(this)}
|
|
3413
3413
|
</table>
|
|
3414
3414
|
</div>
|
|
3415
|
-
${
|
|
3415
|
+
${h(this,H,oR).call(this)}
|
|
3416
3416
|
</div>
|
|
3417
|
-
`}};
|
|
3418
|
-
>${r(this,H,
|
|
3419
|
-
>`:
|
|
3417
|
+
`}};Tt=S(JA),yx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Ex=new WeakMap,Cx=new WeakMap,$x=new WeakMap,H=new WeakSet,Tx=new WeakMap,Ax=new WeakMap,Rd=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},QA=function(){return{page:r(this,H,To),pageSize:this.pageSize,totalRows:this.data.length,totalPages:r(this,H,Rd)}},ZA=function(t){r(this,H,So)?.column===t?r(this,H,So).direction==="asc"?p(this,H,{column:t,direction:"desc"},Ih):p(this,H,null,Ih):p(this,H,{column:t,direction:"asc"},Ih),p(this,H,1,Oh),this.dispatchEvent(rH(r(this,H,So)))},Id=function(t){p(this,H,Math.max(1,Math.min(t,r(this,H,Rd))),Oh),this.dispatchEvent(oH(r(this,H,QA)))},tR=function(t){return t.sortable?r(this,H,So)?.column===t.key?f`<span class="SortIcon"
|
|
3418
|
+
>${r(this,H,So).direction==="asc"?iH:nH}</span
|
|
3419
|
+
>`:f`<span class="SortIcon">${sH}</span>`:I},eR=function(){return f`
|
|
3420
3420
|
<thead>
|
|
3421
3421
|
<tr>
|
|
3422
|
-
${this.columns.map(t=>{let e=t.width?{width:t.width}:{},a=t.sortable?r(this,H,
|
|
3422
|
+
${this.columns.map(t=>{let e=t.width?{width:t.width}:{},a=t.sortable?r(this,H,So)?.column===t.key?r(this,H,So).direction==="asc"?"ascending":"descending":"none":void 0;return f`
|
|
3423
3423
|
<th
|
|
3424
|
-
style=${
|
|
3424
|
+
style=${Un(e)}
|
|
3425
3425
|
aria-sort=${a??I}
|
|
3426
|
-
@click=${t.sortable?()=>
|
|
3426
|
+
@click=${t.sortable?()=>h(this,H,ZA).call(this,t.key):I}
|
|
3427
3427
|
>
|
|
3428
3428
|
<span class="HeaderContent">
|
|
3429
|
-
${t.header} ${
|
|
3429
|
+
${t.header} ${h(this,H,tR).call(this,t)}
|
|
3430
3430
|
</span>
|
|
3431
3431
|
</th>
|
|
3432
3432
|
`})}
|
|
3433
3433
|
</tr>
|
|
3434
3434
|
</thead>
|
|
3435
|
-
`},
|
|
3435
|
+
`},rR=function(){if(r(this,H,Ix).length===0)return f`
|
|
3436
3436
|
<tbody>
|
|
3437
3437
|
<tr class="EmptyRow">
|
|
3438
3438
|
<td colspan=${this.columns.length}>${this.emptyText}</td>
|
|
3439
3439
|
</tr>
|
|
3440
3440
|
</tbody>
|
|
3441
|
-
`;let t=this.rowKey?(e,a)=>this.rowKey(e):(e,a)=>a;return
|
|
3441
|
+
`;let t=this.rowKey?(e,a)=>this.rowKey(e):(e,a)=>a;return f`
|
|
3442
3442
|
<tbody>
|
|
3443
|
-
${
|
|
3443
|
+
${Os(r(this,H,Ix),t,e=>f`
|
|
3444
3444
|
<tr>
|
|
3445
|
-
${this.columns.map(a=>{let l=e[a.key],c=a.render?a.render(l,e):l??"";return
|
|
3445
|
+
${this.columns.map(a=>{let l=e[a.key],c=a.render?a.render(l,e):l??"";return f`<td>${c}</td>`})}
|
|
3446
3446
|
</tr>
|
|
3447
3447
|
`)}
|
|
3448
3448
|
</tbody>
|
|
3449
|
-
`},
|
|
3449
|
+
`},oR=function(){if(this.pageSize<=0||this.data.length===0)return I;let t=(r(this,H,To)-1)*this.pageSize+1,e=Math.min(r(this,H,To)*this.pageSize,this.data.length),a=r(this,H,To)===1,l=r(this,H,To)===r(this,H,Rd);return f`
|
|
3450
3450
|
<div class="Pagination" part="pagination">
|
|
3451
3451
|
<div class="PageInfo">
|
|
3452
3452
|
<span>${t}-${e} of ${this.data.length}</span>
|
|
@@ -3455,7 +3455,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3455
3455
|
<button
|
|
3456
3456
|
class="PageButton"
|
|
3457
3457
|
?disabled=${a}
|
|
3458
|
-
@click=${()=>
|
|
3458
|
+
@click=${()=>h(this,H,Id).call(this,1)}
|
|
3459
3459
|
aria-label="First page"
|
|
3460
3460
|
>
|
|
3461
3461
|
<dui-icon style="--icon-size: var(--text-sm)"><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="m11 17-5-5 5-5"/><path d="m18 17-5-5 5-5"/></svg></dui-icon>
|
|
@@ -3463,7 +3463,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3463
3463
|
<button
|
|
3464
3464
|
class="PageButton"
|
|
3465
3465
|
?disabled=${a}
|
|
3466
|
-
@click=${()=>
|
|
3466
|
+
@click=${()=>h(this,H,Id).call(this,r(this,H,To)-1)}
|
|
3467
3467
|
aria-label="Previous page"
|
|
3468
3468
|
>
|
|
3469
3469
|
<dui-icon style="--icon-size: var(--text-sm)"><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="m15 18-6-6 6-6"/></svg></dui-icon>
|
|
@@ -3471,7 +3471,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3471
3471
|
<button
|
|
3472
3472
|
class="PageButton"
|
|
3473
3473
|
?disabled=${l}
|
|
3474
|
-
@click=${()=>
|
|
3474
|
+
@click=${()=>h(this,H,Id).call(this,r(this,H,To)+1)}
|
|
3475
3475
|
aria-label="Next page"
|
|
3476
3476
|
>
|
|
3477
3477
|
<dui-icon style="--icon-size: var(--text-sm)"><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="m9 18 6-6-6-6"/></svg></dui-icon>
|
|
@@ -3479,14 +3479,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
3479
3479
|
<button
|
|
3480
3480
|
class="PageButton"
|
|
3481
3481
|
?disabled=${l}
|
|
3482
|
-
@click=${()=>
|
|
3482
|
+
@click=${()=>h(this,H,Id).call(this,r(this,H,Rd))}
|
|
3483
3483
|
aria-label="Last page"
|
|
3484
3484
|
>
|
|
3485
3485
|
<dui-icon style="--icon-size: var(--text-sm)"><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 17 5-5-5-5"/><path d="m13 17 5-5-5-5"/></svg></dui-icon>
|
|
3486
3486
|
</button>
|
|
3487
3487
|
</div>
|
|
3488
3488
|
</div>
|
|
3489
|
-
`},d(
|
|
3489
|
+
`},d(Tt,4,"columns",XA,Oe,yx),d(Tt,4,"data",YA,Oe,wx),d(Tt,4,"pageSize",GA,Oe,kx),d(Tt,4,"rowKey",KA,Oe,Ex),d(Tt,4,"emptyText",WA,Oe,Cx),Sx=d(Tt,20,"#sort",jA,H,$x),So=Sx.get,Ih=Sx.set,_x=d(Tt,20,"#page",PA,H,Tx),To=_x.get,Oh=_x.set,Rx=d(Tt,20,"#displayRows",qA,H,Ax),Ix=Rx.get,Ox=Rx.set,$(Tt,Oe),g(Oe,"tagName","dui-data-table"),g(Oe,"styles",[y,cH,pH]);var hH=k`
|
|
3490
3490
|
.DataTable {
|
|
3491
3491
|
gap: var(--space-2);
|
|
3492
3492
|
}
|
|
@@ -3598,19 +3598,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
3598
3598
|
0 0 0 var(--focus-ring-offset) var(--background),
|
|
3599
3599
|
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
|
|
3600
3600
|
}
|
|
3601
|
-
`,
|
|
3601
|
+
`,qn=class extends Oe{static styles=[...Oe.styles,hH]};customElements.define(qn.tagName,qn);var Xo=Symbol("dui-dialog");var Mh=O("open-change",{bubbles:!0,composed:!0}),uH=v`
|
|
3602
3602
|
:host {
|
|
3603
3603
|
display: contents;
|
|
3604
3604
|
}
|
|
3605
|
-
`,
|
|
3605
|
+
`,sR,iR,nR,aR,lR,Ye,Lx,zx,Mx,Nx,dR,Lh,Le,qs,Nh,Dh,Hh,Bh,cR,Fh,Vh,Dx,zh,dr=class extends(lR=b,aR=[u({type:Boolean,reflect:!0})],nR=[u({type:Boolean,attribute:"default-open"})],iR=[E()],sR=[vt({context:Xo}),E()],lR){constructor(){super(...arguments);n(this,Le);n(this,Lx,i(Ye,8,this)),i(Ye,11,this);n(this,zx,i(Ye,12,this,!1)),i(Ye,15,this);n(this,Mx,i(Ye,16,this,!1)),i(Ye,19,this);n(this,qs,crypto.randomUUID().slice(0,8));n(this,Nh,`dui-dialog-${r(this,qs)}`);n(this,Dh,`dui-trigger-${r(this,qs)}`);n(this,Hh,`dui-title-${r(this,qs)}`);n(this,Bh,`dui-desc-${r(this,qs)}`);n(this,Fh,()=>{this.open===void 0&&p(this,Le,!0,Lh),this.dispatchEvent(Mh({open:!0}))});n(this,Vh,()=>{this.open===void 0&&p(this,Le,!1,Lh),this.dispatchEvent(Mh({open:!1}))});n(this,Dx,i(Ye,20,this,h(this,Le,zh).call(this))),i(Ye,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&p(this,Le,!0,Lh),this._ctx=h(this,Le,zh).call(this)}willUpdate(){this._ctx=h(this,Le,zh).call(this)}render(){return f`<slot></slot>`}};Ye=S(lR),Lx=new WeakMap,zx=new WeakMap,Mx=new WeakMap,Le=new WeakSet,qs=new WeakMap,Nh=new WeakMap,Dh=new WeakMap,Hh=new WeakMap,Bh=new WeakMap,cR=function(){return this.open??r(this,Le,dR)},Fh=new WeakMap,Vh=new WeakMap,Dx=new WeakMap,zh=function(){return{open:r(this,Le,cR),dialogId:r(this,Nh),triggerId:r(this,Dh),titleId:r(this,Hh),descriptionId:r(this,Bh),openDialog:r(this,Fh),closeDialog:r(this,Vh)}},d(Ye,4,"open",aR,dr,Lx),d(Ye,4,"defaultOpen",nR,dr,zx),Nx=d(Ye,20,"#internalOpen",iR,Le,Mx),dR=Nx.get,Lh=Nx.set,d(Ye,4,"_ctx",sR,dr,Dx),$(Ye,dr),g(dr,"tagName","dui-dialog"),g(dr,"styles",[y,uH]);var mH=v`
|
|
3606
3606
|
:host {
|
|
3607
3607
|
display: contents;
|
|
3608
3608
|
}
|
|
3609
|
-
`,
|
|
3609
|
+
`,fH=v`
|
|
3610
3610
|
.Trigger {
|
|
3611
3611
|
display: contents;
|
|
3612
3612
|
}
|
|
3613
|
-
`,
|
|
3613
|
+
`,Od=class extends b{static tagName="dui-dialog-trigger";static styles=[y,mH,fH];#t=new K(this,{context:Xo,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
|
|
3614
3614
|
<span
|
|
3615
3615
|
class="Trigger"
|
|
3616
3616
|
part="trigger"
|
|
@@ -3623,7 +3623,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3623
3623
|
>
|
|
3624
3624
|
<slot></slot>
|
|
3625
3625
|
</span>
|
|
3626
|
-
`}};var
|
|
3626
|
+
`}};var gH=v`
|
|
3627
3627
|
:host {
|
|
3628
3628
|
display: contents;
|
|
3629
3629
|
}
|
|
@@ -3632,7 +3632,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3632
3632
|
:host(:not([mounted])) [part="popup"] {
|
|
3633
3633
|
display: none;
|
|
3634
3634
|
}
|
|
3635
|
-
`,
|
|
3635
|
+
`,vH=v`
|
|
3636
3636
|
[part="backdrop"] {
|
|
3637
3637
|
position: fixed;
|
|
3638
3638
|
min-height: 100dvh;
|
|
@@ -3652,14 +3652,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
3652
3652
|
z-index: 1000;
|
|
3653
3653
|
transition-property: opacity, transform;
|
|
3654
3654
|
}
|
|
3655
|
-
`,
|
|
3655
|
+
`,pR,hR,uR,mR,fR,gR,vR,bR,Dt,Hx,Bx,Fx,Vx,Ux,qx,Pn,Gx,J,Px,jx,Yx,Xx,Wx,Kx,_o,Jx,jn,Ao,xR,yR,Qx,wR,kR,Uh,ER,qh,Xe=class extends(bR=b,vR=[u({type:Boolean,attribute:"keep-mounted"})],gR=[u({attribute:"initial-focus"})],fR=[u({attribute:"final-focus"})],mR=[u()],uR=[E()],hR=[E()],pR=[E()],bR){constructor(){super(...arguments);n(this,J);n(this,Hx,i(Dt,8,this,!1)),i(Dt,11,this);n(this,Bx,i(Dt,12,this)),i(Dt,15,this);n(this,Fx,i(Dt,16,this)),i(Dt,19,this);n(this,Vx,i(Dt,20,this)),i(Dt,23,this);n(this,Ux,i(Dt,24,this,!1)),i(Dt,27,this);n(this,Px,i(Dt,28,this,!1)),i(Dt,31,this);n(this,Wx,i(Dt,32,this,!1)),i(Dt,35,this);n(this,jn);n(this,Ao,new K(this,{context:Xo,subscribe:!0}));n(this,Uh,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,Ao).value?.closeDialog()),t.key==="Tab"&&h(this,J,ER).call(this,t)});n(this,qh,()=>{r(this,Ao).value?.closeDialog()})}updated(){let t=r(this,Ao).value?.open??!1;t&&!r(this,J,Pn)?h(this,J,xR).call(this):!t&&r(this,J,Pn)&&!r(this,J,_o)&&h(this,J,yR).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),r(this,J,Pn)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,Ao).value?.open??!1,e=r(this,Ao).value?.titleId??"",a=r(this,Ao).value?.descriptionId??"";return!r(this,J,Pn)&&!this.keepMounted?f``:f`
|
|
3656
3656
|
<div
|
|
3657
3657
|
part="backdrop"
|
|
3658
|
-
?data-open="${t&&!r(this,
|
|
3659
|
-
?data-closed="${!t||r(this,
|
|
3660
|
-
?data-starting-style="${r(this,
|
|
3661
|
-
?data-ending-style="${r(this,
|
|
3662
|
-
@click="${r(this,
|
|
3658
|
+
?data-open="${t&&!r(this,J,_o)}"
|
|
3659
|
+
?data-closed="${!t||r(this,J,_o)}"
|
|
3660
|
+
?data-starting-style="${r(this,J,Yx)}"
|
|
3661
|
+
?data-ending-style="${r(this,J,_o)}"
|
|
3662
|
+
@click="${r(this,qh)}"
|
|
3663
3663
|
></div>
|
|
3664
3664
|
<div
|
|
3665
3665
|
part="popup"
|
|
@@ -3667,26 +3667,26 @@ label, legend, caption, figcaption, th, td {
|
|
|
3667
3667
|
aria-modal="true"
|
|
3668
3668
|
aria-labelledby="${e}"
|
|
3669
3669
|
aria-describedby="${a}"
|
|
3670
|
-
?data-open="${t&&!r(this,
|
|
3671
|
-
?data-closed="${!t||r(this,
|
|
3672
|
-
?data-starting-style="${r(this,
|
|
3673
|
-
?data-ending-style="${r(this,
|
|
3670
|
+
?data-open="${t&&!r(this,J,_o)}"
|
|
3671
|
+
?data-closed="${!t||r(this,J,_o)}"
|
|
3672
|
+
?data-starting-style="${r(this,J,Yx)}"
|
|
3673
|
+
?data-ending-style="${r(this,J,_o)}"
|
|
3674
3674
|
tabindex="-1"
|
|
3675
|
-
@keydown="${r(this,
|
|
3675
|
+
@keydown="${r(this,Uh)}"
|
|
3676
3676
|
>
|
|
3677
3677
|
<h2 part="title" id="${e}"><slot name="title"></slot></h2>
|
|
3678
3678
|
<p part="description" id="${a}"><slot name="description"></slot></p>
|
|
3679
3679
|
<slot></slot>
|
|
3680
3680
|
</div>
|
|
3681
|
-
`}};
|
|
3681
|
+
`}};Dt=S(bR),Hx=new WeakMap,Bx=new WeakMap,Fx=new WeakMap,Vx=new WeakMap,Ux=new WeakMap,J=new WeakSet,Px=new WeakMap,Wx=new WeakMap,jn=new WeakMap,Ao=new WeakMap,xR=async function(){p(this,jn,document.activeElement??void 0),p(this,J,!0,Gx),p(this,J,!0,Xx),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,J,!1,Xx),await this.updateComplete,h(this,J,wR).call(this)},yR=function(){p(this,J,!0,Jx);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){h(this,J,Qx).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(c),h(this,J,Qx).call(this))},l=m=>{m.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let c=setTimeout(a,200)},Qx=function(){!r(this,J,_o)&&!r(this,J,Pn)||(p(this,J,!1,Jx),this.keepMounted||p(this,J,!1,Gx),h(this,J,kR).call(this))},wR=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=gp(t);if(e){e.focus();return}let a=Di(t);if(a.length>0){a[0].focus();return}t.focus()},kR=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,jn)?.focus(),p(this,jn,void 0)},Uh=new WeakMap,ER=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Di(e);if(a.length===0){t.preventDefault();return}let l=a[0],c=a[a.length-1],m=l.matches(":focus"),x=c.matches(":focus"),C=!a.some(T=>T.matches(":focus"));t.shiftKey&&(m||C)?(t.preventDefault(),c.focus()):!t.shiftKey&&x&&(t.preventDefault(),l.focus())},qh=new WeakMap,d(Dt,4,"keepMounted",vR,Xe,Hx),d(Dt,4,"initialFocus",gR,Xe,Bx),d(Dt,4,"finalFocus",fR,Xe,Fx),d(Dt,4,"width",mR,Xe,Vx),qx=d(Dt,20,"#mounted",uR,J,Ux),Pn=qx.get,Gx=qx.set,jx=d(Dt,20,"#startingStyle",hR,J,Px),Yx=jx.get,Xx=jx.set,Kx=d(Dt,20,"#endingStyle",pR,J,Wx),_o=Kx.get,Jx=Kx.set,$(Dt,Xe),g(Xe,"tagName","dui-dialog-popup"),g(Xe,"styles",[y,gH,vH]);var bH=v`
|
|
3682
3682
|
:host {
|
|
3683
3683
|
display: contents;
|
|
3684
3684
|
}
|
|
3685
|
-
`,
|
|
3685
|
+
`,Ld=class extends b{static tagName="dui-dialog-close";static styles=[y,bH];#t=new K(this,{context:Xo,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
3686
3686
|
<span @click="${this.#e}">
|
|
3687
3687
|
<slot></slot>
|
|
3688
3688
|
</span>
|
|
3689
|
-
`}};var
|
|
3689
|
+
`}};var xH=k``,Wn=class extends dr{static styles=[...dr.styles,xH]};customElements.define(Wn.tagName,Wn);var Kn=class extends Ld{};customElements.define(Kn.tagName,Kn);var yH=k`
|
|
3690
3690
|
|
|
3691
3691
|
/* ── Backdrop ── */
|
|
3692
3692
|
|
|
@@ -3755,7 +3755,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3755
3755
|
transition-duration: 0s;
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
3758
|
-
`,
|
|
3758
|
+
`,Gn=class extends Xe{static styles=[...Xe.styles,yH]};customElements.define(Gn.tagName,Gn);var Yn=class extends Od{};customElements.define(Yn.tagName,Yn);var cy=O("drop",{bubbles:!0,composed:!0}),py=O("drop-accepted",{bubbles:!0,composed:!0}),hy=O("drop-rejected",{bubbles:!0,composed:!0}),wH=O("dragenter",{bubbles:!0,composed:!0}),kH=O("dragover",{bubbles:!0,composed:!0}),EH=O("dragleave",{bubbles:!0,composed:!0}),zd=O("dropzone-error",{bubbles:!0,composed:!0}),CH=v`
|
|
3759
3759
|
:host {
|
|
3760
3760
|
display: block;
|
|
3761
3761
|
}
|
|
@@ -3776,18 +3776,18 @@ label, legend, caption, figcaption, th, td {
|
|
|
3776
3776
|
input[type="file"] {
|
|
3777
3777
|
display: none;
|
|
3778
3778
|
}
|
|
3779
|
-
`,
|
|
3779
|
+
`,CR,$R,SR,TR,_R,AR,RR,IR,OR,LR,Et,Zx,ty,ey,ry,oy,sy,iy,ny,ay,ly,zR,Ph,we,jh,Wh,Kh,Gh,Yh,Xh,Jh,dy,MR,NR,Ht=class Ht extends(LR=b,OR=[u({type:String,reflect:!0})],IR=[u({type:Boolean,reflect:!0})],RR=[u({type:Boolean,reflect:!0})],AR=[u({type:Number,reflect:!0,attribute:"max-files"})],_R=[u({type:Number,reflect:!0,attribute:"max-size"})],TR=[u({type:Number,reflect:!0,attribute:"min-size"})],SR=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],$R=[u({type:Boolean,reflect:!0,attribute:"no-style"})],CR=[E()],LR){constructor(){super(...arguments);n(this,we);n(this,Zx,i(Et,8,this)),i(Et,11,this);n(this,ty,i(Et,12,this,!1)),i(Et,15,this);n(this,ey,i(Et,16,this,!1)),i(Et,19,this);n(this,ry,i(Et,20,this,1/0)),i(Et,23,this);n(this,oy,i(Et,24,this,1/0)),i(Et,27,this);n(this,sy,i(Et,28,this,0)),i(Et,31,this);n(this,iy,i(Et,32,this,!1)),i(Et,35,this);n(this,ny,i(Et,36,this,!1)),i(Et,39,this);n(this,ay,i(Et,40,this,!1)),i(Et,43,this);n(this,jh,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(p(this,we,!0,Ph),this.dispatchEvent(wH()))});n(this,Wh,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(kH()))});n(this,Kh,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(p(this,we,!1,Ph),this.dispatchEvent(EH()))});n(this,Gh,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){p(this,we,!1,Ph);try{let e=Array.from(t.dataTransfer?.files??[]);h(this,we,dy).call(this,e)}catch(e){this.dispatchEvent(zd({error:e,code:Ht.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});n(this,Yh,()=>{this.disabled||this.openFileDialog()});n(this,Xh,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});n(this,Jh,t=>{if(this.disabled)return;let e=t.target,a=Array.from(e.files??[]);try{h(this,we,dy).call(this,a)}catch(l){this.dispatchEvent(zd({error:l,code:Ht.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(zd({error:e,code:Ht.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
|
|
3780
3780
|
<div
|
|
3781
3781
|
part="root"
|
|
3782
3782
|
tabindex="${this.disabled?-1:0}"
|
|
3783
|
-
?data-dragover="${r(this,
|
|
3783
|
+
?data-dragover="${r(this,we,zR)}"
|
|
3784
3784
|
?data-disabled="${this.disabled}"
|
|
3785
|
-
@dragenter="${r(this,
|
|
3786
|
-
@dragover="${r(this,
|
|
3787
|
-
@dragleave="${r(this
|
|
3788
|
-
@drop="${r(this,
|
|
3789
|
-
@click="${r(this,
|
|
3790
|
-
@keydown="${r(this,
|
|
3785
|
+
@dragenter="${r(this,jh)}"
|
|
3786
|
+
@dragover="${r(this,Wh)}"
|
|
3787
|
+
@dragleave="${r(this,Kh)}"
|
|
3788
|
+
@drop="${r(this,Gh)}"
|
|
3789
|
+
@click="${r(this,Yh)}"
|
|
3790
|
+
@keydown="${r(this,Xh)}"
|
|
3791
3791
|
>
|
|
3792
3792
|
<slot>
|
|
3793
3793
|
<span>Drag and drop files here or click to select</span>
|
|
@@ -3798,12 +3798,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
3798
3798
|
?multiple="${this.multiple}"
|
|
3799
3799
|
accept="${this.accept||""}"
|
|
3800
3800
|
?disabled="${this.disabled}"
|
|
3801
|
-
@change="${r(this,
|
|
3801
|
+
@change="${r(this,Jh)}"
|
|
3802
3802
|
tabindex="-1"
|
|
3803
3803
|
aria-hidden="true"
|
|
3804
3804
|
hidden
|
|
3805
3805
|
/>
|
|
3806
|
-
`}};
|
|
3806
|
+
`}};Et=S(LR),Zx=new WeakMap,ty=new WeakMap,ey=new WeakMap,ry=new WeakMap,oy=new WeakMap,sy=new WeakMap,iy=new WeakMap,ny=new WeakMap,ay=new WeakMap,we=new WeakSet,jh=new WeakMap,Wh=new WeakMap,Kh=new WeakMap,Gh=new WeakMap,Yh=new WeakMap,Xh=new WeakMap,Jh=new WeakMap,dy=function(t){let{acceptedFiles:e,rejectedFiles:a}=h(this,we,MR).call(this,t);this.dispatchEvent(cy({acceptedFiles:e,rejectedFiles:a})),e.length>0&&this.dispatchEvent(py({acceptedFiles:e})),a.length>0&&this.dispatchEvent(hy({rejectedFiles:a}))},MR=function(t){let e=[],a=[],l=this.multiple?this.maxFiles:1;if(t.length>l){for(let c of t)a.push({file:c,errors:[{code:Ht.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:e,rejectedFiles:a}}for(let c of t){let m=[];c.size>this.maxSize&&m.push({code:Ht.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),c.size<this.minSize&&m.push({code:Ht.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!h(this,we,NR).call(this,c)&&m.push({code:Ht.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),m.length>0?a.push({file:c,errors:m}):e.push(c)}return{acceptedFiles:e,rejectedFiles:a}},NR=function(t){if(!this.accept)return!0;let e=this.accept.split(",").map(a=>a.trim().toLowerCase());for(let a of e)if(a.startsWith(".")){if(t.name.toLowerCase().endsWith(a))return!0}else if(a.endsWith("/*")){let l=a.slice(0,-2);if(t.type.toLowerCase().startsWith(l))return!0}else if(t.type.toLowerCase()===a)return!0;return!1},d(Et,4,"accept",OR,Ht,Zx),d(Et,4,"multiple",IR,Ht,ty),d(Et,4,"disabled",RR,Ht,ey),d(Et,4,"maxFiles",AR,Ht,ry),d(Et,4,"maxSize",_R,Ht,oy),d(Et,4,"minSize",TR,Ht,sy),d(Et,4,"autoFocus",SR,Ht,iy),d(Et,4,"noStyle",$R,Ht,ny),ly=d(Et,20,"#isDragOver",CR,we,ay),zR=ly.get,Ph=ly.set,$(Et,Ht),g(Ht,"tagName","dui-dropzone"),g(Ht,"styles",[y,CH]),g(Ht,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),g(Ht,"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 Xn=Ht;var $H=k`
|
|
3807
3807
|
:host([disabled]) {
|
|
3808
3808
|
opacity: 0.4;
|
|
3809
3809
|
}
|
|
@@ -3835,7 +3835,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3835
3835
|
border-color: var(--accent);
|
|
3836
3836
|
background: var(--accent-subtle);
|
|
3837
3837
|
}
|
|
3838
|
-
`,
|
|
3838
|
+
`,Jn=class extends Xn{static styles=[...Xn.styles,$H]};customElements.define(Jn.tagName,Jn);var SH=["dui-input","dui-textarea","dui-select","dui-checkbox","dui-checkbox-group","dui-radio","dui-radio-group","dui-switch","dui-number-field","dui-stepper","dui-slider","dui-combobox","dui-dropzone"].join(", "),TH=v`
|
|
3839
3839
|
:host {
|
|
3840
3840
|
display: block;
|
|
3841
3841
|
}
|
|
@@ -3859,55 +3859,55 @@ label, legend, caption, figcaption, th, td {
|
|
|
3859
3859
|
|
|
3860
3860
|
[part="error"] { display: none; }
|
|
3861
3861
|
[part="error"][data-invalid] { display: block; }
|
|
3862
|
-
`,
|
|
3862
|
+
`,DR,HR,BR,FR,VR,UR,qR,PR,jR,WR,KR,dt,uy,my,fy,gy,vy,GR,Ry,P,by,xy,YR,XR,yy,wy,JR,Iy,ky,Ey,QR,ZR,Cy,$y,tI,eI,Sy,Ty,Oy,rI,_y,Ay,oI,sI,Qn,iI,Ly,zy,ze,Zn,Nd,Dd,Hd,Bd,Qh,Zh,tu,eu,Md,ru,cr=class extends(KR=b,WR=[u({type:Boolean,reflect:!0})],jR=[u({type:Boolean,reflect:!0})],PR=[u()],qR=[E()],UR=[E()],VR=[E()],FR=[E()],BR=[E()],HR=[E()],DR=[E()],KR){constructor(){super(...arguments);n(this,P);n(this,uy,i(dt,8,this,!1)),i(dt,11,this);n(this,my,i(dt,12,this,!1)),i(dt,15,this);n(this,fy,i(dt,16,this,"vertical")),i(dt,19,this);n(this,gy,i(dt,20,this,!1)),i(dt,23,this);n(this,by,i(dt,24,this,!1)),i(dt,27,this);n(this,yy,i(dt,28,this,!1)),i(dt,31,this);n(this,ky,i(dt,32,this,!1)),i(dt,35,this);n(this,Cy,i(dt,36,this,!1)),i(dt,39,this);n(this,Sy,i(dt,40,this,!1)),i(dt,43,this);n(this,_y,i(dt,44,this,!1)),i(dt,47,this);n(this,Qn,crypto.randomUUID().slice(0,8));n(this,ze);n(this,Zn,!1);n(this,Nd,()=>{p(this,P,!0,Iy)});n(this,Dd,()=>{p(this,P,!1,Iy),p(this,P,!0,XR)});n(this,Hd,()=>{p(this,P,!0,Ry),p(this,P,!0,ZR)});n(this,Bd,()=>{p(this,P,!0,Ry)});n(this,Qh,()=>{let e=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0})??[];p(this,ze,e.find(a=>a.matches(SH))),r(this,ze)&&(h(this,P,Md).call(this),this.disabled&&(p(this,Zn,r(this,ze).hasAttribute("disabled")),r(this,ze).setAttribute("disabled","")))});n(this,Zh,t=>{let e=t.target;p(this,P,e.assignedNodes({flatten:!0}).length>0,eI)});n(this,tu,t=>{let e=t.target;p(this,P,e.assignedNodes({flatten:!0}).length>0,rI),h(this,P,Md).call(this)});n(this,eu,t=>{let e=t.target;p(this,P,e.assignedNodes({flatten:!0}).length>0,sI),h(this,P,Md).call(this)});n(this,ru,()=>{this.disabled||r(this,ze)?.focus()})}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",r(this,Nd)),this.addEventListener("focusout",r(this,Dd)),this.addEventListener("input",r(this,Hd)),this.addEventListener("change",r(this,Bd))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",r(this,Nd)),this.removeEventListener("focusout",r(this,Dd)),this.removeEventListener("input",r(this,Hd)),this.removeEventListener("change",r(this,Bd))}willUpdate(t){t.has("invalid")&&r(this,ze)&&h(this,P,Md).call(this),t.has("disabled")&&r(this,ze)&&(this.disabled?(p(this,Zn,r(this,ze).hasAttribute("disabled")),r(this,ze).setAttribute("disabled","")):r(this,Zn)||r(this,ze).removeAttribute("disabled"))}render(){return f`
|
|
3863
3863
|
<div
|
|
3864
3864
|
part="root"
|
|
3865
3865
|
role="group"
|
|
3866
3866
|
?data-disabled="${this.disabled}"
|
|
3867
3867
|
?data-invalid="${this.invalid}"
|
|
3868
3868
|
?data-valid="${!this.invalid}"
|
|
3869
|
-
?data-dirty="${r(this,
|
|
3870
|
-
?data-touched="${r(this,
|
|
3871
|
-
?data-filled="${r(this,
|
|
3872
|
-
?data-focused="${r(this,
|
|
3869
|
+
?data-dirty="${r(this,P,GR)}"
|
|
3870
|
+
?data-touched="${r(this,P,YR)}"
|
|
3871
|
+
?data-filled="${r(this,P,QR)}"
|
|
3872
|
+
?data-focused="${r(this,P,JR)}"
|
|
3873
3873
|
data-orientation="${this.orientation}"
|
|
3874
3874
|
>
|
|
3875
3875
|
<div
|
|
3876
3876
|
part="label"
|
|
3877
|
-
id="${r(this,
|
|
3878
|
-
?data-slotted="${r(this,
|
|
3877
|
+
id="${r(this,P,iI)}"
|
|
3878
|
+
?data-slotted="${r(this,P,tI)}"
|
|
3879
3879
|
?data-disabled="${this.disabled}"
|
|
3880
|
-
@click="${r(this,
|
|
3880
|
+
@click="${r(this,ru)}"
|
|
3881
3881
|
>
|
|
3882
3882
|
<slot
|
|
3883
3883
|
name="label"
|
|
3884
|
-
@slotchange="${r(this,
|
|
3884
|
+
@slotchange="${r(this,Zh)}"
|
|
3885
3885
|
></slot>
|
|
3886
3886
|
</div>
|
|
3887
|
-
<slot @slotchange="${r(this,
|
|
3887
|
+
<slot @slotchange="${r(this,Qh)}"></slot>
|
|
3888
3888
|
<div
|
|
3889
3889
|
part="description"
|
|
3890
|
-
id="${r(this,
|
|
3891
|
-
?data-slotted="${r(this,
|
|
3890
|
+
id="${r(this,P,Ly)}"
|
|
3891
|
+
?data-slotted="${r(this,P,Oy)}"
|
|
3892
3892
|
>
|
|
3893
3893
|
<slot
|
|
3894
3894
|
name="description"
|
|
3895
|
-
@slotchange="${r(this,
|
|
3895
|
+
@slotchange="${r(this,tu)}"
|
|
3896
3896
|
></slot>
|
|
3897
3897
|
</div>
|
|
3898
3898
|
<div
|
|
3899
3899
|
part="error"
|
|
3900
|
-
id="${r(this,
|
|
3900
|
+
id="${r(this,P,zy)}"
|
|
3901
3901
|
role="alert"
|
|
3902
3902
|
?data-invalid="${this.invalid}"
|
|
3903
3903
|
>
|
|
3904
3904
|
<slot
|
|
3905
3905
|
name="error"
|
|
3906
|
-
@slotchange="${r(this,
|
|
3906
|
+
@slotchange="${r(this,eu)}"
|
|
3907
3907
|
></slot>
|
|
3908
3908
|
</div>
|
|
3909
3909
|
</div>
|
|
3910
|
-
`}};
|
|
3910
|
+
`}};dt=S(KR),uy=new WeakMap,my=new WeakMap,fy=new WeakMap,gy=new WeakMap,P=new WeakSet,by=new WeakMap,yy=new WeakMap,ky=new WeakMap,Cy=new WeakMap,Sy=new WeakMap,_y=new WeakMap,Qn=new WeakMap,iI=function(){return`field-${r(this,Qn)}-label`},Ly=function(){return`field-${r(this,Qn)}-desc`},zy=function(){return`field-${r(this,Qn)}-error`},ze=new WeakMap,Zn=new WeakMap,Nd=new WeakMap,Dd=new WeakMap,Hd=new WeakMap,Bd=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,tu=new WeakMap,eu=new WeakMap,Md=function(){let t=r(this,ze);if(!t)return;let e=[];r(this,P,Oy)&&e.push(r(this,P,Ly)),this.invalid&&r(this,P,oI)&&e.push(r(this,P,zy));let a=e.join(" ")||null;a?t.setAttribute("aria-describedby",a):t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid",String(this.invalid))},ru=new WeakMap,d(dt,4,"disabled",WR,cr,uy),d(dt,4,"invalid",jR,cr,my),d(dt,4,"orientation",PR,cr,fy),vy=d(dt,20,"#dirty",qR,P,gy),GR=vy.get,Ry=vy.set,xy=d(dt,20,"#touched",UR,P,by),YR=xy.get,XR=xy.set,wy=d(dt,20,"#focused",VR,P,yy),JR=wy.get,Iy=wy.set,Ey=d(dt,20,"#filled",FR,P,ky),QR=Ey.get,ZR=Ey.set,$y=d(dt,20,"#hasLabel",BR,P,Cy),tI=$y.get,eI=$y.set,Ty=d(dt,20,"#hasDescription",HR,P,Sy),Oy=Ty.get,rI=Ty.set,Ay=d(dt,20,"#hasError",DR,P,_y),oI=Ay.get,sI=Ay.set,$(dt,cr),g(cr,"tagName","dui-field"),g(cr,"styles",[y,TH]);var _H=k`
|
|
3911
3911
|
[part="root"] {
|
|
3912
3912
|
gap: var(--space-2);
|
|
3913
3913
|
}
|
|
@@ -3943,7 +3943,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3943
3943
|
color: var(--destructive);
|
|
3944
3944
|
margin: 0;
|
|
3945
3945
|
}
|
|
3946
|
-
`,
|
|
3946
|
+
`,ta=class extends cr{static styles=[...cr.styles,_H]};customElements.define(ta.tagName,ta);var AH=v`
|
|
3947
3947
|
:host {
|
|
3948
3948
|
display: block;
|
|
3949
3949
|
}
|
|
@@ -3957,18 +3957,18 @@ label, legend, caption, figcaption, th, td {
|
|
|
3957
3957
|
|
|
3958
3958
|
[part="legend"]:not([data-slotted]) { display: none; }
|
|
3959
3959
|
[part="legend"] { padding: 0; }
|
|
3960
|
-
`,
|
|
3960
|
+
`,nI,aI,lI,Ps,My,Ny,Dy,dI,cI,ea,ou,Pr=class extends(lI=b,aI=[u({type:Boolean,reflect:!0})],nI=[E()],lI){constructor(){super(...arguments);n(this,ea);n(this,My,i(Ps,8,this,!1)),i(Ps,11,this);n(this,Ny,i(Ps,12,this,!1)),i(Ps,15,this);n(this,ou,t=>{let e=t.target;p(this,ea,e.assignedNodes({flatten:!0}).length>0,cI)})}render(){return f`
|
|
3961
3961
|
<fieldset
|
|
3962
3962
|
part="root"
|
|
3963
3963
|
?disabled="${this.disabled}"
|
|
3964
3964
|
?data-disabled="${this.disabled}"
|
|
3965
3965
|
>
|
|
3966
|
-
<legend part="legend" ?data-slotted="${r(this,
|
|
3967
|
-
<slot name="legend" @slotchange="${r(this,
|
|
3966
|
+
<legend part="legend" ?data-slotted="${r(this,ea,dI)}">
|
|
3967
|
+
<slot name="legend" @slotchange="${r(this,ou)}"></slot>
|
|
3968
3968
|
</legend>
|
|
3969
3969
|
<slot></slot>
|
|
3970
3970
|
</fieldset>
|
|
3971
|
-
`}};
|
|
3971
|
+
`}};Ps=S(lI),My=new WeakMap,Ny=new WeakMap,ea=new WeakSet,ou=new WeakMap,d(Ps,4,"disabled",aI,Pr,My),Dy=d(Ps,20,"#hasLegend",nI,ea,Ny),dI=Dy.get,cI=Dy.set,$(Ps,Pr),g(Pr,"tagName","dui-fieldset"),g(Pr,"styles",[y,AH]);var RH=k`
|
|
3972
3972
|
[part="root"] {
|
|
3973
3973
|
display: flex;
|
|
3974
3974
|
flex-direction: column;
|
|
@@ -3987,7 +3987,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3987
3987
|
color: var(--text-1);
|
|
3988
3988
|
margin-bottom: var(--space-2);
|
|
3989
3989
|
}
|
|
3990
|
-
`,
|
|
3990
|
+
`,ra=class extends Pr{static styles=[...Pr.styles,RH]};customElements.define(ra.tagName,ra);var IH=v`
|
|
3991
3991
|
:host {
|
|
3992
3992
|
display: inline-flex;
|
|
3993
3993
|
align-items: center;
|
|
@@ -4001,7 +4001,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4001
4001
|
width: 100%;
|
|
4002
4002
|
height: 100%;
|
|
4003
4003
|
}
|
|
4004
|
-
`,
|
|
4004
|
+
`,Fd=class extends b{static tagName="dui-icon";static styles=[y,IH];render(){return f`<slot></slot>`}};var oa=class extends Fd{};customElements.define(oa.tagName,oa);var Vd=s=>s??I;var Jy=O("input-change",{bubbles:!0,composed:!0}),OH=v`
|
|
4005
4005
|
:host {
|
|
4006
4006
|
display: block;
|
|
4007
4007
|
}
|
|
@@ -4015,23 +4015,23 @@ label, legend, caption, figcaption, th, td {
|
|
|
4015
4015
|
[part="input"]:disabled {
|
|
4016
4016
|
cursor: not-allowed;
|
|
4017
4017
|
}
|
|
4018
|
-
`,
|
|
4018
|
+
`,pI,hI,uI,mI,fI,gI,vI,bI,xI,yI,wI,kI,EI,sa,tt,Hy,By,Fy,Vy,Uy,qy,Py,jy,Wy,Ky,Gy,Yy,iu,Ro,Xy,su,Lt=class extends(EI=b,kI=[u({type:String})],wI=[u({type:String})],yI=[u({type:String})],xI=[u({type:Boolean,reflect:!0})],bI=[u({type:Boolean})],vI=[u({type:Boolean})],gI=[u({type:Number,attribute:"minlength"})],fI=[u({type:Number,attribute:"maxlength"})],mI=[u({type:String})],uI=[u({type:String})],hI=[u({type:String})],pI=[u({type:Boolean})],EI){constructor(){super();n(this,Ro);n(this,sa);n(this,Hy,i(tt,8,this,"text")),i(tt,11,this);n(this,By,i(tt,12,this,"")),i(tt,15,this);n(this,Fy,i(tt,16,this,"")),i(tt,19,this);n(this,Vy,i(tt,20,this,!1)),i(tt,23,this);n(this,Uy,i(tt,24,this,!1)),i(tt,27,this);n(this,qy,i(tt,28,this,!1)),i(tt,31,this);n(this,Py,i(tt,32,this)),i(tt,35,this);n(this,jy,i(tt,36,this)),i(tt,39,this);n(this,Wy,i(tt,40,this)),i(tt,43,this);n(this,Ky,i(tt,44,this,"")),i(tt,47,this);n(this,Gy,i(tt,48,this)),i(tt,51,this);n(this,Yy,i(tt,52,this,!1)),i(tt,55,this);n(this,iu,t=>{let e=t.target;this.value=e.value,h(this,Ro,Xy).call(this),h(this,Ro,su).call(this),this.dispatchEvent(Jy({value:this.value}))});p(this,sa,this.attachInternals())}firstUpdated(){h(this,Ro,su).call(this),this.autofocus&&this.focus()}updated(){h(this,Ro,su).call(this)}willUpdate(){h(this,Ro,Xy).call(this)}render(){return f`
|
|
4019
4019
|
<input
|
|
4020
4020
|
part="input"
|
|
4021
4021
|
type="${this.type}"
|
|
4022
|
-
.value="${
|
|
4022
|
+
.value="${Nr(this.value)}"
|
|
4023
4023
|
placeholder="${this.placeholder}"
|
|
4024
4024
|
?disabled="${this.disabled}"
|
|
4025
4025
|
?required="${this.required}"
|
|
4026
4026
|
?readonly="${this.readonly}"
|
|
4027
|
-
minlength="${
|
|
4028
|
-
maxlength="${
|
|
4029
|
-
pattern="${
|
|
4027
|
+
minlength="${Vd(this.minLength)}"
|
|
4028
|
+
maxlength="${Vd(this.maxLength)}"
|
|
4029
|
+
pattern="${Vd(this.pattern)}"
|
|
4030
4030
|
name="${this.name}"
|
|
4031
|
-
autocomplete="${
|
|
4032
|
-
@input="${r(this,
|
|
4031
|
+
autocomplete="${Vd(this.autocomplete)}"
|
|
4032
|
+
@input="${r(this,iu)}"
|
|
4033
4033
|
/>
|
|
4034
|
-
`}};
|
|
4034
|
+
`}};tt=S(EI),sa=new WeakMap,Hy=new WeakMap,By=new WeakMap,Fy=new WeakMap,Vy=new WeakMap,Uy=new WeakMap,qy=new WeakMap,Py=new WeakMap,jy=new WeakMap,Wy=new WeakMap,Ky=new WeakMap,Gy=new WeakMap,Yy=new WeakMap,iu=new WeakMap,Ro=new WeakSet,Xy=function(){r(this,sa).setFormValue(this.value)},su=function(){let t=this.shadowRoot?.querySelector("input");t&&r(this,sa).setValidity(t.validity,t.validationMessage,t)},d(tt,4,"type",kI,Lt,Hy),d(tt,4,"value",wI,Lt,By),d(tt,4,"placeholder",yI,Lt,Fy),d(tt,4,"disabled",xI,Lt,Vy),d(tt,4,"required",bI,Lt,Uy),d(tt,4,"readonly",vI,Lt,qy),d(tt,4,"minLength",gI,Lt,Py),d(tt,4,"maxLength",fI,Lt,jy),d(tt,4,"pattern",mI,Lt,Wy),d(tt,4,"name",uI,Lt,Ky),d(tt,4,"autocomplete",hI,Lt,Gy),d(tt,4,"autofocus",pI,Lt,Yy),$(tt,Lt),g(Lt,"tagName","dui-input"),g(Lt,"formAssociated",!0),g(Lt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Lt,"styles",[y,OH]);var LH=k`
|
|
4035
4035
|
[part="input"] {
|
|
4036
4036
|
padding: var(--space-2);
|
|
4037
4037
|
font-family: var(--font-sans);
|
|
@@ -4088,7 +4088,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4088
4088
|
-webkit-text-fill-color: var(--text-1);
|
|
4089
4089
|
transition: background-color 5000s ease-in-out 0s;
|
|
4090
4090
|
}
|
|
4091
|
-
`,
|
|
4091
|
+
`,ia=class extends Lt{static styles=[...Lt.styles,LH]};customElements.define(ia.tagName,ia);var zH=v`
|
|
4092
4092
|
:host {
|
|
4093
4093
|
display: block;
|
|
4094
4094
|
}
|
|
@@ -4096,26 +4096,26 @@ label, legend, caption, figcaption, th, td {
|
|
|
4096
4096
|
:host([disabled]) {
|
|
4097
4097
|
pointer-events: none;
|
|
4098
4098
|
}
|
|
4099
|
-
`,
|
|
4099
|
+
`,MH=v`
|
|
4100
4100
|
.Item {
|
|
4101
4101
|
display: flex;
|
|
4102
4102
|
align-items: center;
|
|
4103
4103
|
cursor: pointer;
|
|
4104
4104
|
}
|
|
4105
|
-
`,
|
|
4105
|
+
`,CI,$I,nu,Qy,Me=class extends($I=b,CI=[u({type:Boolean,reflect:!0})],$I){constructor(){super(...arguments);n(this,Qy,i(nu,8,this,!1)),i(nu,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
|
|
4106
4106
|
<div class="Item" part="root" aria-disabled="${this.disabled}">
|
|
4107
4107
|
<slot></slot>
|
|
4108
4108
|
</div>
|
|
4109
|
-
`}};
|
|
4109
|
+
`}};nu=S($I),Qy=new WeakMap,d(nu,4,"disabled",CI,Me,Qy),$(nu,Me),g(Me,"tagName","dui-menu-item"),g(Me,"styles",[y,zH,MH]);var NH=v`
|
|
4110
4110
|
:host {
|
|
4111
4111
|
display: block;
|
|
4112
4112
|
}
|
|
4113
|
-
`,
|
|
4113
|
+
`,DH=v`
|
|
4114
4114
|
.Trigger {
|
|
4115
4115
|
display: contents;
|
|
4116
4116
|
cursor: pointer;
|
|
4117
4117
|
}
|
|
4118
|
-
`,
|
|
4118
|
+
`,HH=[v`
|
|
4119
4119
|
.Popup {
|
|
4120
4120
|
max-height: 240px;
|
|
4121
4121
|
overflow-y: auto;
|
|
@@ -4130,7 +4130,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4130
4130
|
.Popup[data-ending-style] {
|
|
4131
4131
|
opacity: 0;
|
|
4132
4132
|
}
|
|
4133
|
-
`],
|
|
4133
|
+
`],SI,TI,_I,js,Zy,t0,e0,Ws,Jo,Bt,na,zt,Ud,r0,AI,au,lu,du,cu,jr=class extends(_I=b,TI=[u({attribute:"popup-min-width"})],SI=[E()],_I){constructor(){super(...arguments);n(this,Bt);n(this,Zy,i(js,8,this,"var(--space-28)")),i(js,11,this);n(this,t0,i(js,12,this,-1)),i(js,15,this);n(this,na,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);n(this,zt,new he(this,{getAnchor:()=>r(this,na).call(this)??this,matchWidth:!1,styles:HH,contentContainer:".Menu",contentSelector:"dui-menu-item, dui-separator",onOpen:()=>{p(this,Bt,-1,Jo),r(this,na).call(this)?.setAttribute("data-open","")},onClose:()=>{p(this,Bt,-1,Jo),r(this,na).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
|
|
4134
4134
|
<div
|
|
4135
4135
|
class="Popup"
|
|
4136
4136
|
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
@@ -4139,24 +4139,24 @@ label, legend, caption, figcaption, th, td {
|
|
|
4139
4139
|
>
|
|
4140
4140
|
<div
|
|
4141
4141
|
class="Menu"
|
|
4142
|
-
id="${r(this,
|
|
4142
|
+
id="${r(this,Ud)}"
|
|
4143
4143
|
role="menu"
|
|
4144
|
-
@click="${r(this,
|
|
4145
|
-
@mousemove="${r(this,
|
|
4144
|
+
@click="${r(this,lu)}"
|
|
4145
|
+
@mousemove="${r(this,cu)}"
|
|
4146
4146
|
></div>
|
|
4147
4147
|
</div>
|
|
4148
|
-
`}));n(this,
|
|
4148
|
+
`}));n(this,Ud,`menu-${crypto.randomUUID().slice(0,8)}`);n(this,au,t=>{t.stopPropagation(),t.preventDefault(),h(this,Bt,AI).call(this)});n(this,lu,t=>{let e=t.composedPath().find(a=>a instanceof HTMLElement&&a.matches(Me.tagName));e&&!e.disabled&&r(this,zt).close()});n(this,du,t=>{let e=r(this,Bt,r0);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!r(this,zt).isOpen)r(this,zt).open();else{let a=r(this,Bt,Ws)+1;for(;a<e.length&&e[a]?.disabled;)a++;a<e.length&&p(this,Bt,a,Jo)}break}case"ArrowUp":{if(t.preventDefault(),!r(this,zt).isOpen)r(this,zt).open();else{let a=r(this,Bt,Ws)-1;for(;a>=0&&e[a]?.disabled;)a--;a>=0&&p(this,Bt,a,Jo)}break}case"Home":if(r(this,zt).isOpen){t.preventDefault();let a=e.findIndex(l=>!l.disabled);a>=0&&p(this,Bt,a,Jo)}break;case"End":if(r(this,zt).isOpen){t.preventDefault();for(let a=e.length-1;a>=0;a--)if(!e[a]?.disabled){p(this,Bt,a,Jo);break}}break;case"Enter":case" ":{if(r(this,zt).isOpen&&r(this,Bt,Ws)>=0){t.preventDefault();let a=e[r(this,Bt,Ws)];a&&!a.disabled&&(a.click(),r(this,zt).close())}else r(this,zt).isOpen||(t.preventDefault(),r(this,zt).open());break}case"Escape":r(this,zt).isOpen&&(t.preventDefault(),r(this,zt).close());break;case"Tab":r(this,zt).isOpen&&r(this,zt).close();break}});n(this,cu,()=>{r(this,Bt,Ws)>=0&&p(this,Bt,-1,Jo)})}updated(){let t=r(this,Bt,r0);for(let e=0;e<t.length;e++)e===r(this,Bt,Ws)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
|
|
4149
4149
|
<div
|
|
4150
4150
|
class="Trigger"
|
|
4151
4151
|
aria-haspopup="menu"
|
|
4152
|
-
aria-expanded="${r(this,
|
|
4153
|
-
aria-controls="${r(this,
|
|
4154
|
-
@click="${r(this,
|
|
4155
|
-
@keydown="${r(this,
|
|
4152
|
+
aria-expanded="${r(this,zt).isOpen}"
|
|
4153
|
+
aria-controls="${r(this,Ud)}"
|
|
4154
|
+
@click="${r(this,au)}"
|
|
4155
|
+
@keydown="${r(this,du)}"
|
|
4156
4156
|
>
|
|
4157
4157
|
<slot name="trigger"></slot>
|
|
4158
4158
|
</div>
|
|
4159
|
-
`}};
|
|
4159
|
+
`}};js=S(_I),Zy=new WeakMap,t0=new WeakMap,Bt=new WeakSet,na=new WeakMap,zt=new WeakMap,Ud=new WeakMap,r0=function(){return[...(r(this,zt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},AI=function(){r(this,zt).isOpen?r(this,zt).close():r(this,zt).open()},au=new WeakMap,lu=new WeakMap,du=new WeakMap,cu=new WeakMap,d(js,4,"popupMinWidth",TI,jr,Zy),e0=d(js,20,"#highlightedIndex",SI,Bt,t0),Ws=e0.get,Jo=e0.set,$(js,jr),g(jr,"tagName","dui-menu"),g(jr,"styles",[y,NH,DH]);var BH=k`
|
|
4160
4160
|
.Popup {
|
|
4161
4161
|
background: var(--surface-3);
|
|
4162
4162
|
border: var(--border-width-thin) solid var(--border);
|
|
@@ -4178,7 +4178,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4178
4178
|
.Menu dui-separator {
|
|
4179
4179
|
margin: var(--space-1) var(--space-2);
|
|
4180
4180
|
}
|
|
4181
|
-
`,
|
|
4181
|
+
`,aa=class extends jr{static styles=[...jr.styles,BH]};customElements.define(aa.tagName,aa);var FH=k`
|
|
4182
4182
|
.Item {
|
|
4183
4183
|
--icon-size: var(--space-4);
|
|
4184
4184
|
--icon-color: var(--text-2);
|
|
@@ -4215,7 +4215,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4215
4215
|
opacity: 0.4;
|
|
4216
4216
|
cursor: not-allowed;
|
|
4217
4217
|
}
|
|
4218
|
-
`,
|
|
4218
|
+
`,la=class extends Me{static styles=[...Me.styles,FH]};customElements.define(la.tagName,la);var RI=Symbol("dui-menubar");var VH=v`
|
|
4219
4219
|
:host {
|
|
4220
4220
|
display: block;
|
|
4221
4221
|
}
|
|
@@ -4229,16 +4229,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
4229
4229
|
flex-direction: column;
|
|
4230
4230
|
align-items: stretch;
|
|
4231
4231
|
}
|
|
4232
|
-
`,
|
|
4232
|
+
`,II,OI,LI,zI,MI,Je,o0,s0,i0,n0,l0,pu,Ne,NI,hu,uu,da,a0,d0,mu,pr=class extends(MI=b,zI=[u({type:Boolean})],LI=[u({reflect:!0})],OI=[E()],II=[vt({context:RI}),E()],MI){constructor(){super(...arguments);n(this,Ne);n(this,o0,i(Je,8,this,!0)),i(Je,11,this);n(this,s0,i(Je,12,this,"horizontal")),i(Je,15,this);n(this,i0,i(Je,16,this,null)),i(Je,19,this);n(this,hu,t=>{p(this,Ne,t,pu)});n(this,uu,()=>{p(this,Ne,null,pu)});n(this,da,t=>{let e=h(this,Ne,NI).call(this);if(e.length===0)return;let a=e.findIndex(C=>C.getAttribute("data-menubar-id")===r(this,Ne,l0)),l;t==="next"?(l=a+1,l>=e.length&&(l=this.loop?0:e.length-1)):(l=a-1,l<0&&(l=this.loop?e.length-1:0));let c=e[l];if(!c)return;let m=c.getAttribute("data-menubar-id");m&&p(this,Ne,m,pu),c.querySelector('[slot="trigger"]')?.focus()});n(this,a0,i(Je,20,this,h(this,Ne,d0).call(this))),i(Je,23,this);n(this,mu,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";t.key===a?(t.preventDefault(),r(this,da).call(this,"next")):t.key===l&&(t.preventDefault(),r(this,da).call(this,"prev"))})}willUpdate(){this._ctx=h(this,Ne,d0).call(this)}render(){return f`
|
|
4233
4233
|
<div
|
|
4234
4234
|
part="root"
|
|
4235
4235
|
role="menubar"
|
|
4236
4236
|
aria-orientation="${this.orientation}"
|
|
4237
|
-
@keydown="${r(this,
|
|
4237
|
+
@keydown="${r(this,mu)}"
|
|
4238
4238
|
>
|
|
4239
4239
|
<slot></slot>
|
|
4240
4240
|
</div>
|
|
4241
|
-
`}};
|
|
4241
|
+
`}};Je=S(MI),o0=new WeakMap,s0=new WeakMap,i0=new WeakMap,Ne=new WeakSet,NI=function(){return[...this.querySelectorAll("dui-menu")]},hu=new WeakMap,uu=new WeakMap,da=new WeakMap,a0=new WeakMap,d0=function(){return{activeMenuId:r(this,Ne,l0),openMenu:r(this,hu),closeAll:r(this,uu),navigateToMenu:r(this,da)}},mu=new WeakMap,d(Je,4,"loop",zI,pr,o0),d(Je,4,"orientation",LI,pr,s0),n0=d(Je,20,"#activeMenuId",OI,Ne,i0),l0=n0.get,pu=n0.set,d(Je,4,"_ctx",II,pr,a0),$(Je,pr),g(pr,"tagName","dui-menubar"),g(pr,"styles",[y,VH]);var UH=k`
|
|
4242
4242
|
[part="root"] {
|
|
4243
4243
|
gap: var(--space-1);
|
|
4244
4244
|
border: var(--border-width-thin) solid var(--border);
|
|
@@ -4246,7 +4246,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4246
4246
|
background: var(--background);
|
|
4247
4247
|
padding: var(--space-1);
|
|
4248
4248
|
}
|
|
4249
|
-
`,
|
|
4249
|
+
`,ca=class extends pr{static styles=[...pr.styles,UH]};customElements.define(ca.tagName,ca);var G0=O("value-change",{bubbles:!0,composed:!0}),vu=O("value-committed",{bubbles:!0,composed:!0}),qH=v`
|
|
4250
4250
|
:host {
|
|
4251
4251
|
display: block;
|
|
4252
4252
|
}
|
|
@@ -4312,20 +4312,20 @@ label, legend, caption, figcaption, th, td {
|
|
|
4312
4312
|
pointer-events: none;
|
|
4313
4313
|
}
|
|
4314
4314
|
|
|
4315
|
-
`,
|
|
4315
|
+
`,PH=3,DI,HI,BI,FI,VI,UI,qI,PI,jI,WI,KI,GI,YI,XI,JI,QI,ZI,t2,e2,r2,o2,s2,i2,n2,a2,l2,qd,L,c0,p0,h0,u0,m0,f0,g0,v0,b0,x0,y0,w0,k0,E0,C0,$0,S0,T0,_0,A0,R0,I0,O0,d2,B0,A,L0,z0,F0,V0,M0,N0,c2,U0,D0,H0,q0,pa,Pd,jd,Qs,Zs,Wd,Wr,p2,h2,Ks,P0,j0,Gs,u2,m2,fu,Ys,W0,Xs,ha,ua,K0,gu,Js,Kd,ti,bu,xu,yu,wu,ku,Eu,Cu,at=class extends(l2=b,a2=[u({type:Number})],n2=[u({type:Number,attribute:"default-value"})],i2=[u({type:Number})],s2=[u({type:Number})],o2=[u({type:Number})],r2=[u({type:Number,attribute:"large-step"})],e2=[u({type:Boolean,reflect:!0})],t2=[u({type:Boolean,reflect:!0,attribute:"read-only"})],ZI=[u({type:Boolean})],QI=[u()],JI=[u({reflect:!0})],XI=[u({reflect:!0,attribute:"label-position"})],YI=[u({reflect:!0,attribute:"icon-position"})],GI=[u({reflect:!0})],KI=[u({type:Number})],WI=[u({type:Boolean,reflect:!0,attribute:"scrub-label"})],jI=[u({type:Boolean,reflect:!0,attribute:"scrub-value"})],PI=[u({type:Boolean,reflect:!0,attribute:"scrub-field"})],qI=[u({type:Boolean,reflect:!0,attribute:"click-label"})],UI=[u({type:Boolean,reflect:!0,attribute:"click-value"})],VI=[u({type:Boolean,reflect:!0,attribute:"click-field"})],FI=[E()],BI=[E()],HI=[E()],DI=[E()],l2){constructor(){super();n(this,A);n(this,qd);n(this,c0,i(L,8,this)),i(L,11,this);n(this,p0,i(L,12,this)),i(L,15,this);n(this,h0,i(L,16,this)),i(L,19,this);n(this,u0,i(L,20,this)),i(L,23,this);n(this,m0,i(L,24,this,1)),i(L,27,this);n(this,f0,i(L,28,this,10)),i(L,31,this);n(this,g0,i(L,32,this,!1)),i(L,35,this);n(this,v0,i(L,36,this,!1)),i(L,39,this);n(this,b0,i(L,40,this,!1)),i(L,43,this);n(this,x0,i(L,44,this)),i(L,47,this);n(this,y0,i(L,48,this,"")),i(L,51,this);n(this,w0,i(L,52,this,"")),i(L,55,this);n(this,k0,i(L,56,this,"")),i(L,59,this);n(this,E0,i(L,60,this,"")),i(L,63,this);n(this,C0,i(L,64,this)),i(L,67,this);n(this,$0,i(L,68,this,!1)),i(L,71,this);n(this,S0,i(L,72,this,!1)),i(L,75,this);n(this,T0,i(L,76,this,!1)),i(L,79,this);n(this,_0,i(L,80,this,!1)),i(L,83,this);n(this,A0,i(L,84,this,!1)),i(L,87,this);n(this,R0,i(L,88,this,!1)),i(L,91,this);n(this,I0,i(L,92,this)),i(L,95,this);n(this,L0,i(L,96,this,"")),i(L,99,this);n(this,M0,i(L,100,this,!1)),i(L,103,this);n(this,D0,i(L,104,this,!1)),i(L,107,this);n(this,Pd,0);n(this,jd,0);n(this,Qs,!1);n(this,Zs,null);n(this,Wd,!1);n(this,ha,t=>{if(this.disabled||this.readOnly)return;let e=r(this,A,Wr)??this.min??0;h(this,A,Xs).call(this,e+t)});n(this,ua,t=>{if(this.disabled||this.readOnly)return;let e=r(this,A,Wr)??this.max??0;h(this,A,Xs).call(this,e-t)});n(this,Kd,t=>{if(t.pointerId!==r(this,Zs))return;let e=t.clientX-r(this,Pd);if(!r(this,Qs)){if(Math.abs(e)<PH)return;p(this,Qs,!0),p(this,A,!0,U0)}let a=this.step;t.shiftKey?a=this.step*.1:(t.ctrlKey||t.metaKey)&&(a=this.largeStep);let l=r(this,jd)+e*a;h(this,A,Xs).call(this,l)});n(this,ti,t=>{if(t.pointerId===r(this,Zs)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",r(this,Kd)),this.removeEventListener("pointerup",r(this,ti)),this.removeEventListener("pointercancel",r(this,ti)),r(this,Qs)){p(this,A,!1,U0);let e=r(this,A,Wr);e!==void 0&&this.dispatchEvent(vu({value:e}))}else r(this,Wd)&&h(this,A,gu).call(this);p(this,Zs,null)}});n(this,bu,t=>{if(t.button!==0)return;let e=r(this,A,P0)||r(this,A,Gs),a=r(this,A,u2)||r(this,A,fu);e&&a?(t.preventDefault(),h(this,A,Js).call(this,t,!0)):e?(t.preventDefault(),h(this,A,Js).call(this,t,!1)):a&&(t.preventDefault(),h(this,A,gu).call(this))});n(this,xu,t=>{if(t.button!==0)return;let e=r(this,A,j0)||r(this,A,Gs),a=r(this,A,m2)||r(this,A,fu);e&&a?(t.preventDefault(),h(this,A,Js).call(this,t,!0)):e?(t.preventDefault(),h(this,A,Js).call(this,t,!1)):a&&p(this,A,!0,pa)});n(this,yu,t=>{if(t.button!==0)return;let e=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==e)return;let a=r(this,A,Gs),l=r(this,A,fu);a&&l?(t.preventDefault(),h(this,A,Js).call(this,t,!0)):a?(t.preventDefault(),h(this,A,Js).call(this,t,!1)):l&&(t.preventDefault(),h(this,A,gu).call(this))});n(this,wu,t=>{p(this,A,t.target.value,V0)});n(this,ku,()=>{r(this,A,q0)&&h(this,A,K0).call(this)});n(this,Eu,()=>{p(this,A,!0,pa);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});n(this,Cu,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?r(this,ha).call(this,this.step*.1):t.ctrlKey||t.metaKey?r(this,ha).call(this,this.largeStep):r(this,ha).call(this,this.step),h(this,A,Ys).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?r(this,ua).call(this,this.step*.1):t.ctrlKey||t.metaKey?r(this,ua).call(this,this.largeStep):r(this,ua).call(this,this.step),h(this,A,Ys).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),h(this,A,Xs).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),h(this,A,Xs).call(this,this.max));break;case"Enter":h(this,A,K0).call(this);break;case"Escape":{p(this,A,!1,pa),h(this,A,Ys).call(this);let e=this.shadowRoot?.querySelector('[part="input"]');e&&e.blur();break}}});p(this,qd,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,A,h(this,A,W0).call(this,this.defaultValue),B0),h(this,A,Ys).call(this)}willUpdate(){r(this,A,q0)||h(this,A,Ys).call(this),r(this,qd).setFormValue(r(this,A,Wr)!==void 0?String(r(this,A,Wr)):null)}render(){let t=r(this,A,Wr),e=r(this,A,P0)||r(this,A,Gs),a=r(this,A,j0)||r(this,A,Gs),l=r(this,A,Gs);return f`
|
|
4316
4316
|
<span
|
|
4317
4317
|
part="label"
|
|
4318
4318
|
?data-scrub="${e}"
|
|
4319
|
-
@pointerdown="${r(this,
|
|
4319
|
+
@pointerdown="${r(this,bu)}"
|
|
4320
4320
|
>${this.label}</span>
|
|
4321
4321
|
|
|
4322
4322
|
<div
|
|
4323
4323
|
part="root"
|
|
4324
4324
|
?data-scrub="${l}"
|
|
4325
|
-
?data-dragging="${r(this,A,
|
|
4325
|
+
?data-dragging="${r(this,A,c2)}"
|
|
4326
4326
|
?data-disabled="${this.disabled}"
|
|
4327
4327
|
?data-readonly="${this.readOnly}"
|
|
4328
|
-
@pointerdown="${r(this,
|
|
4328
|
+
@pointerdown="${r(this,yu)}"
|
|
4329
4329
|
>
|
|
4330
4330
|
<span part="icon">
|
|
4331
4331
|
<slot name="icon"></slot>
|
|
@@ -4336,7 +4336,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4336
4336
|
type="text"
|
|
4337
4337
|
inputmode="decimal"
|
|
4338
4338
|
?data-scrub="${a}"
|
|
4339
|
-
.value="${
|
|
4339
|
+
.value="${Nr(r(this,A,F0))}"
|
|
4340
4340
|
?disabled="${this.disabled}"
|
|
4341
4341
|
?readonly="${this.readOnly}"
|
|
4342
4342
|
?required="${this.required}"
|
|
@@ -4344,17 +4344,17 @@ label, legend, caption, figcaption, th, td {
|
|
|
4344
4344
|
aria-valuenow="${t??I}"
|
|
4345
4345
|
aria-valuemin="${this.min??I}"
|
|
4346
4346
|
aria-valuemax="${this.max??I}"
|
|
4347
|
-
@pointerdown="${r(this,
|
|
4348
|
-
@input="${r(this,
|
|
4349
|
-
@keydown="${r(this,
|
|
4350
|
-
@focus="${r(this,
|
|
4351
|
-
@blur="${r(this,
|
|
4347
|
+
@pointerdown="${r(this,xu)}"
|
|
4348
|
+
@input="${r(this,wu)}"
|
|
4349
|
+
@keydown="${r(this,Cu)}"
|
|
4350
|
+
@focus="${r(this,Eu)}"
|
|
4351
|
+
@blur="${r(this,ku)}"
|
|
4352
4352
|
/>
|
|
4353
4353
|
|
|
4354
4354
|
<span part="unit">${this.unit}</span>
|
|
4355
4355
|
|
|
4356
4356
|
</div>
|
|
4357
|
-
`}};
|
|
4357
|
+
`}};L=S(l2),qd=new WeakMap,c0=new WeakMap,p0=new WeakMap,h0=new WeakMap,u0=new WeakMap,m0=new WeakMap,f0=new WeakMap,g0=new WeakMap,v0=new WeakMap,b0=new WeakMap,x0=new WeakMap,y0=new WeakMap,w0=new WeakMap,k0=new WeakMap,E0=new WeakMap,C0=new WeakMap,$0=new WeakMap,S0=new WeakMap,T0=new WeakMap,_0=new WeakMap,A0=new WeakMap,R0=new WeakMap,I0=new WeakMap,A=new WeakSet,L0=new WeakMap,M0=new WeakMap,D0=new WeakMap,Pd=new WeakMap,jd=new WeakMap,Qs=new WeakMap,Zs=new WeakMap,Wd=new WeakMap,Wr=function(){return this.value??r(this,A,d2)},p2=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},h2=function(){let t=r(this,A,Wr);if(t===void 0)return"";let e=this.precision??r(this,A,p2);return t.toFixed(e)},Ks=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},P0=function(){return r(this,A,Ks)?this.scrubLabel:this.label!==""},j0=function(){return r(this,A,Ks)?this.scrubValue:!1},Gs=function(){return r(this,A,Ks)?this.scrubField:this.label===""},u2=function(){return r(this,A,Ks)?this.clickLabel:!1},m2=function(){return r(this,A,Ks)?this.clickValue:!0},fu=function(){return r(this,A,Ks)?this.clickField:!1},Ys=function(){p(this,A,r(this,A,h2),V0)},W0=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Xs=function(t){let e=h(this,A,W0).call(this,t);this.value===void 0&&p(this,A,e,B0),this.dispatchEvent(G0({value:e}))},ha=new WeakMap,ua=new WeakMap,K0=function(){let t=parseFloat(r(this,A,F0));Number.isNaN(t)?h(this,A,Ys).call(this):h(this,A,Xs).call(this,t),p(this,A,!1,pa);let e=r(this,A,Wr);e!==void 0&&this.dispatchEvent(vu({value:e}))},gu=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(p(this,A,!0,pa),t.focus(),t.select())},Js=function(t,e){this.disabled||this.readOnly||(p(this,Zs,t.pointerId),p(this,Pd,t.clientX),p(this,jd,r(this,A,Wr)??0),p(this,Qs,!1),p(this,Wd,e),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",r(this,Kd)),this.addEventListener("pointerup",r(this,ti)),this.addEventListener("pointercancel",r(this,ti)))},Kd=new WeakMap,ti=new WeakMap,bu=new WeakMap,xu=new WeakMap,yu=new WeakMap,wu=new WeakMap,ku=new WeakMap,Eu=new WeakMap,Cu=new WeakMap,d(L,4,"value",a2,at,c0),d(L,4,"defaultValue",n2,at,p0),d(L,4,"min",i2,at,h0),d(L,4,"max",s2,at,u0),d(L,4,"step",o2,at,m0),d(L,4,"largeStep",r2,at,f0),d(L,4,"disabled",e2,at,g0),d(L,4,"readOnly",t2,at,v0),d(L,4,"required",ZI,at,b0),d(L,4,"name",QI,at,x0),d(L,4,"label",JI,at,y0),d(L,4,"labelPosition",XI,at,w0),d(L,4,"iconPosition",YI,at,k0),d(L,4,"unit",GI,at,E0),d(L,4,"precision",KI,at,C0),d(L,4,"scrubLabel",WI,at,$0),d(L,4,"scrubValue",jI,at,S0),d(L,4,"scrubField",PI,at,T0),d(L,4,"clickLabel",qI,at,_0),d(L,4,"clickValue",UI,at,A0),d(L,4,"clickField",VI,at,R0),O0=d(L,20,"#internalValue",FI,A,I0),d2=O0.get,B0=O0.set,z0=d(L,20,"#inputText",BI,A,L0),F0=z0.get,V0=z0.set,N0=d(L,20,"#dragging",HI,A,M0),c2=N0.get,U0=N0.set,H0=d(L,20,"#editing",DI,A,D0),q0=H0.get,pa=H0.set,$(L,at),g(at,"tagName","dui-number-field"),g(at,"formAssociated",!0),g(at,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(at,"styles",[y,qH]);var jH=k`
|
|
4358
4358
|
:host {
|
|
4359
4359
|
--number-field-bg: transparent;
|
|
4360
4360
|
--number-field-fg: var(--text-1);
|
|
@@ -4582,19 +4582,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
4582
4582
|
:host([disabled]) {
|
|
4583
4583
|
opacity: 0.5;
|
|
4584
4584
|
}
|
|
4585
|
-
`,
|
|
4585
|
+
`,ma=class extends at{static styles=[...at.styles,jH]};customElements.define(ma.tagName,ma);var Qo=Symbol("dui-popover");var _u=O("open-change",{bubbles:!0,composed:!0}),WH=v`
|
|
4586
4586
|
:host {
|
|
4587
4587
|
display: contents;
|
|
4588
4588
|
}
|
|
4589
|
-
`,
|
|
4589
|
+
`,f2,g2,v2,b2,x2,y2,w2,k2,Ft,Y0,X0,J0,Q0,Z0,tw,$u,Su,ct,ew,rw,sw,E2,Gd,Au,Ru,ow,Yd,iw,Tu,C2,$2,De=class extends(k2=b,w2=[u({type:Boolean,reflect:!0})],y2=[u({type:Boolean,attribute:"default-open"})],x2=[u({reflect:!0})],b2=[u({type:Number,attribute:"side-offset"})],v2=[E()],g2=[E()],f2=[vt({context:Qo}),E()],k2){constructor(){super(...arguments);n(this,ct);n(this,Y0,i(Ft,8,this,!1)),i(Ft,11,this);n(this,X0,i(Ft,12,this,!1)),i(Ft,15,this);n(this,J0,i(Ft,16,this,"bottom")),i(Ft,19,this);n(this,Q0,i(Ft,20,this,8)),i(Ft,23,this);n(this,Z0,i(Ft,24,this,!1)),i(Ft,27,this);n(this,ew,i(Ft,28,this)),i(Ft,31,this);n(this,Au,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,Ru,`popover-popup-${crypto.randomUUID().slice(0,8)}`);n(this,ow,i(Ft,32,this,{open:!1,triggerId:r(this,Au),popupId:r(this,Ru),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>h(this,ct,iw).call(this),closePopover:()=>h(this,ct,Tu).call(this),togglePopover:()=>h(this,ct,C2).call(this),setTriggerEl:t=>h(this,ct,$2).call(this,t)})),i(Ft,35,this);n(this,Yd,t=>{r(this,ct,Gd)&&t.key==="Escape"&&(t.preventDefault(),h(this,ct,Tu).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&p(this,ct,!0,Su),document.addEventListener("keydown",r(this,Yd))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",r(this,Yd))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==r(this,ct,Gd)||this._ctx.triggerEl!==r(this,ct,sw))&&(this._ctx={...this._ctx,open:r(this,ct,Gd),side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,ct,sw)})}render(){return f`<slot></slot>`}};Ft=S(k2),Y0=new WeakMap,X0=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Z0=new WeakMap,ct=new WeakSet,ew=new WeakMap,Gd=function(){return this.open||r(this,ct,$u)},Au=new WeakMap,Ru=new WeakMap,ow=new WeakMap,Yd=new WeakMap,iw=function(){r(this,ct,$u)||(p(this,ct,!0,Su),this.dispatchEvent(_u({open:!0})))},Tu=function(){r(this,ct,$u)&&(p(this,ct,!1,Su),this.dispatchEvent(_u({open:!1})))},C2=function(){r(this,ct,Gd)?h(this,ct,Tu).call(this):h(this,ct,iw).call(this)},$2=function(t){p(this,ct,t,E2)},d(Ft,4,"open",w2,De,Y0),d(Ft,4,"defaultOpen",y2,De,X0),d(Ft,4,"side",x2,De,J0),d(Ft,4,"sideOffset",b2,De,Q0),tw=d(Ft,20,"#internalOpen",v2,ct,Z0),$u=tw.get,Su=tw.set,rw=d(Ft,20,"#triggerEl",g2,ct,ew),sw=rw.get,E2=rw.set,d(Ft,4,"_ctx",f2,De,ow),$(Ft,De),g(De,"tagName","dui-popover"),g(De,"styles",[y,WH]);var KH=v`
|
|
4590
4590
|
:host {
|
|
4591
4591
|
display: contents;
|
|
4592
4592
|
}
|
|
4593
|
-
`,
|
|
4593
|
+
`,GH=v`
|
|
4594
4594
|
.Trigger {
|
|
4595
4595
|
display: contents;
|
|
4596
4596
|
}
|
|
4597
|
-
`,
|
|
4597
|
+
`,Xd=class extends b{static tagName="dui-popover-trigger";static styles=[y,KH,GH];#t=new K(this,{context:Qo,subscribe:!0});#e=o=>{o.stopPropagation(),this.#i(),this.#t.value?.togglePopover()};#i(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0]??this;this.#t.value?.setTriggerEl(t)}#n(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0];if(!t)return;this.#t.value?.open??!1?t.setAttribute("data-open",""):t.removeAttribute("data-open")}updated(){this.#n()}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return f`
|
|
4598
4598
|
<span
|
|
4599
4599
|
class="Trigger"
|
|
4600
4600
|
part="trigger"
|
|
@@ -4607,7 +4607,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4607
4607
|
>
|
|
4608
4608
|
<slot></slot>
|
|
4609
4609
|
</span>
|
|
4610
|
-
`}};var
|
|
4610
|
+
`}};var YH=v`
|
|
4611
4611
|
:host {
|
|
4612
4612
|
display: contents;
|
|
4613
4613
|
}
|
|
@@ -4615,7 +4615,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4615
4615
|
.slot-wrapper {
|
|
4616
4616
|
display: none;
|
|
4617
4617
|
}
|
|
4618
|
-
`,
|
|
4618
|
+
`,XH=[v`
|
|
4619
4619
|
.Popup {
|
|
4620
4620
|
box-sizing: border-box;
|
|
4621
4621
|
pointer-events: auto;
|
|
@@ -4656,28 +4656,28 @@ label, legend, caption, figcaption, th, td {
|
|
|
4656
4656
|
left: 50%;
|
|
4657
4657
|
transform: translateX(-50%) rotate(180deg);
|
|
4658
4658
|
}
|
|
4659
|
-
`],
|
|
4659
|
+
`],S2,T2,_2,A2,Kr,nw,aw,lw,dw,Iu,R2,Gr,Io,fa,Zo,Ou,I2,Sr=class extends(A2=b,_2=[u({type:Boolean,attribute:"show-arrow"})],T2=[u({type:Boolean,attribute:"close-on-click"})],S2=[E()],A2){constructor(){super(...arguments);n(this,Gr);n(this,nw,i(Kr,8,this,!0)),i(Kr,11,this);n(this,aw,i(Kr,12,this,!1)),i(Kr,15,this);n(this,lw,i(Kr,16,this,"bottom")),i(Kr,19,this);n(this,Io,new K(this,{context:Qo,subscribe:!0}));n(this,fa,!1);n(this,Zo,new he(this,{getAnchor:()=>r(this,Io).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:XH,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,Gr,Iu)&&p(this,Gr,e,R2)},renderPopup:t=>{let e=r(this,Io).value?.popupId??"";return f`
|
|
4660
4660
|
<div
|
|
4661
4661
|
class="Popup"
|
|
4662
4662
|
id="${e}"
|
|
4663
4663
|
role="dialog"
|
|
4664
4664
|
?data-starting-style="${t.isStarting}"
|
|
4665
4665
|
?data-ending-style="${t.isEnding}"
|
|
4666
|
-
data-side="${r(this,
|
|
4667
|
-
@click="${r(this,
|
|
4666
|
+
data-side="${r(this,Gr,Iu)}"
|
|
4667
|
+
@click="${r(this,Ou)}"
|
|
4668
4668
|
>
|
|
4669
4669
|
<div class="Content"></div>
|
|
4670
|
-
${this.showArrow?
|
|
4670
|
+
${this.showArrow?En(r(this,Gr,Iu)):""}
|
|
4671
4671
|
</div>
|
|
4672
|
-
`}}));n(this,
|
|
4672
|
+
`}}));n(this,Ou,()=>{this.closeOnClick&&r(this,Io).value?.closePopover()})}containsEventTarget(t){let e=r(this,Zo).positionerElement;return e!==null&&t.includes(e)}updated(){let t=r(this,Io).value?.open??!1;t&&!r(this,fa)?(h(this,Gr,I2).call(this),r(this,Zo).open()):!t&&r(this,fa)&&r(this,Zo).close(),p(this,fa,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Kr=S(A2),nw=new WeakMap,aw=new WeakMap,lw=new WeakMap,Gr=new WeakSet,Io=new WeakMap,fa=new WeakMap,Zo=new WeakMap,Ou=new WeakMap,I2=function(){let t=r(this,Io).value?.side??"bottom";r(this,Zo).placement=t,r(this,Zo).offset=r(this,Io).value?.sideOffset??8},d(Kr,4,"showArrow",_2,Sr,nw),d(Kr,4,"closeOnClick",T2,Sr,aw),dw=d(Kr,20,"#side",S2,Gr,lw),Iu=dw.get,R2=dw.set,$(Kr,Sr),g(Sr,"tagName","dui-popover-popup"),g(Sr,"styles",[y,YH]);var JH=v`
|
|
4673
4673
|
:host {
|
|
4674
4674
|
display: contents;
|
|
4675
4675
|
}
|
|
4676
|
-
`,
|
|
4676
|
+
`,Jd=class extends b{static tagName="dui-popover-close";static styles=[y,JH];#t=new K(this,{context:Qo,subscribe:!0});#e=()=>{this.#t.value?.closePopover()};render(){return f`
|
|
4677
4677
|
<span @click="${this.#e}">
|
|
4678
4678
|
<slot></slot>
|
|
4679
4679
|
</span>
|
|
4680
|
-
`}};var
|
|
4680
|
+
`}};var QH=k``,ga=class extends De{static styles=[...De.styles,QH]};customElements.define(ga.tagName,ga);var va=class extends Jd{};customElements.define(va.tagName,va);var ZH=k`
|
|
4681
4681
|
.Popup {
|
|
4682
4682
|
padding: var(--popover-popup-padding, var(--space-4));
|
|
4683
4683
|
border-radius: var(--radius-md);
|
|
@@ -4701,23 +4701,23 @@ label, legend, caption, figcaption, th, td {
|
|
|
4701
4701
|
stroke: var(--border);
|
|
4702
4702
|
stroke-width: 1px;
|
|
4703
4703
|
}
|
|
4704
|
-
`,
|
|
4704
|
+
`,ba=class extends Sr{static styles=[...Sr.styles,ZH]};customElements.define(ba.tagName,ba);var xa=class extends Xd{};customElements.define(xa.tagName,xa);var tB=v`
|
|
4705
4705
|
:host {
|
|
4706
4706
|
display: contents;
|
|
4707
4707
|
}
|
|
4708
|
-
`,
|
|
4708
|
+
`,O2,L2,z2,M2,Yr,cw,pw,hw,Xr,ei,ts,He,uw,N2,mw,Lu,zu,hr=class extends(M2=b,z2=[u({type:String})],L2=[u({type:String,attribute:"target-root",reflect:!0})],O2=[u({attribute:!1})],M2){constructor(){super(...arguments);n(this,He);n(this,cw,i(Yr,8,this,"body")),i(Yr,11,this);n(this,pw,i(Yr,12,this,"document")),i(Yr,15,this);n(this,hw,i(Yr,16,this)),i(Yr,19,this);n(this,Xr);n(this,ei,new Set);n(this,ts,!1);n(this,zu,()=>{r(this,ts)||!r(this,Xr)||h(this,He,Lu).call(this)})}connectedCallback(){super.connectedCallback(),p(this,Xr,this.targetElement??h(this,He,uw).call(this)),r(this,Xr)&&this.childNodes.length>0&&h(this,He,Lu).call(this)}disconnectedCallback(){super.disconnectedCallback(),h(this,He,mw).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(h(this,He,mw).call(this),h(this,He,N2).call(this))}render(){return f`<slot @slotchange=${r(this,zu)}></slot>`}};Yr=S(M2),cw=new WeakMap,pw=new WeakMap,hw=new WeakMap,Xr=new WeakMap,ei=new WeakMap,ts=new WeakMap,He=new WeakSet,uw=function(){return OS(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},N2=function(){p(this,Xr,this.targetElement??h(this,He,uw).call(this)),h(this,He,Lu).call(this)},mw=function(){if(r(this,ei).size!==0){p(this,ts,!0);for(let t of r(this,ei))this.append(t);r(this,ei).clear(),p(this,ts,!1),p(this,Xr,void 0)}},Lu=function(){if(!r(this,Xr))throw new Error(`Portal target does not exist: ${this.target}`);p(this,ts,!0);let t=Array.from(this.childNodes);for(let e of t)r(this,Xr).appendChild(e),r(this,ei).add(e);p(this,ts,!1)},zu=new WeakMap,d(Yr,4,"target",z2,hr,cw),d(Yr,4,"targetRoot",L2,hr,pw),d(Yr,4,"targetElement",O2,hr,hw),$(Yr,hr),g(hr,"tagName","dui-portal"),g(hr,"styles",[tB]);var eB=k``,ya=class extends hr{static styles=[...hr.styles,eB]};customElements.define(ya.tagName,ya);var wa=Symbol("dui-preview-card");var Hu=O("open-change",{bubbles:!0,composed:!0}),rB=v`
|
|
4709
4709
|
:host {
|
|
4710
4710
|
display: contents;
|
|
4711
4711
|
}
|
|
4712
|
-
`,
|
|
4712
|
+
`,D2,H2,B2,F2,V2,U2,q2,P2,j2,W2,Ct,fw,gw,vw,bw,xw,yw,ww,kw,Mu,Nu,pt,Ew,Cw,Sw,K2,ri,oi,Bu,Fu,$w,Du,G2,Y2,Tw,_w,X2,ue=class extends(W2=b,j2=[u({type:Boolean,reflect:!0})],P2=[u({type:Boolean,attribute:"default-open"})],q2=[u({reflect:!0})],U2=[u({type:Number,attribute:"side-offset"})],V2=[u({type:Number})],F2=[u({type:Number,attribute:"close-delay"})],B2=[E()],H2=[E()],D2=[vt({context:wa}),E()],W2){constructor(){super(...arguments);n(this,pt);n(this,fw,i(Ct,8,this,!1)),i(Ct,11,this);n(this,gw,i(Ct,12,this,!1)),i(Ct,15,this);n(this,vw,i(Ct,16,this,"top")),i(Ct,19,this);n(this,bw,i(Ct,20,this,8)),i(Ct,23,this);n(this,xw,i(Ct,24,this,400)),i(Ct,27,this);n(this,yw,i(Ct,28,this,300)),i(Ct,31,this);n(this,ww,i(Ct,32,this,!1)),i(Ct,35,this);n(this,Ew,i(Ct,36,this)),i(Ct,39,this);n(this,ri);n(this,oi);n(this,Bu,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,Fu,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);n(this,$w,i(Ct,40,this,{open:!1,triggerId:r(this,Bu),popupId:r(this,Fu),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>h(this,pt,G2).call(this),closePreviewCard:()=>h(this,pt,Y2).call(this),setTriggerEl:t=>h(this,pt,X2).call(this,t)})),i(Ct,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&p(this,pt,!0,Nu)}disconnectedCallback(){super.disconnectedCallback(),h(this,pt,Du).call(this)}willUpdate(t){let e=this.open||r(this,pt,Mu);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,pt,Sw))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,pt,Sw)})}render(){return f`<slot></slot>`}};Ct=S(W2),fw=new WeakMap,gw=new WeakMap,vw=new WeakMap,bw=new WeakMap,xw=new WeakMap,yw=new WeakMap,ww=new WeakMap,pt=new WeakSet,Ew=new WeakMap,ri=new WeakMap,oi=new WeakMap,Bu=new WeakMap,Fu=new WeakMap,$w=new WeakMap,Du=function(){r(this,ri)&&(clearTimeout(r(this,ri)),p(this,ri,void 0)),r(this,oi)&&(clearTimeout(r(this,oi)),p(this,oi,void 0))},G2=function(){h(this,pt,Du).call(this),this.delay<=0?h(this,pt,Tw).call(this):p(this,ri,setTimeout(()=>h(this,pt,Tw).call(this),this.delay))},Y2=function(){h(this,pt,Du).call(this),this.closeDelay<=0?h(this,pt,_w).call(this):p(this,oi,setTimeout(()=>h(this,pt,_w).call(this),this.closeDelay))},Tw=function(){r(this,pt,Mu)||(p(this,pt,!0,Nu),this.dispatchEvent(Hu({open:!0})))},_w=function(){r(this,pt,Mu)&&(p(this,pt,!1,Nu),this.dispatchEvent(Hu({open:!1})))},X2=function(t){p(this,pt,t,K2)},d(Ct,4,"open",j2,ue,fw),d(Ct,4,"defaultOpen",P2,ue,gw),d(Ct,4,"side",q2,ue,vw),d(Ct,4,"sideOffset",U2,ue,bw),d(Ct,4,"delay",V2,ue,xw),d(Ct,4,"closeDelay",F2,ue,yw),kw=d(Ct,20,"#internalOpen",B2,pt,ww),Mu=kw.get,Nu=kw.set,Cw=d(Ct,20,"#triggerEl",H2,pt,Ew),Sw=Cw.get,K2=Cw.set,d(Ct,4,"_ctx",D2,ue,$w),$(Ct,ue),g(ue,"tagName","dui-preview-card"),g(ue,"styles",[y,rB]);var oB=v`
|
|
4713
4713
|
:host {
|
|
4714
4714
|
display: contents;
|
|
4715
4715
|
}
|
|
4716
|
-
`,
|
|
4716
|
+
`,sB=v`
|
|
4717
4717
|
.Trigger {
|
|
4718
4718
|
display: contents;
|
|
4719
4719
|
}
|
|
4720
|
-
`,
|
|
4720
|
+
`,Qd=class extends b{static tagName="dui-preview-card-trigger";static styles=[y,oB,sB];#t=new K(this,{context:wa,subscribe:!0});#e=()=>{this.#d(),this.#t.value?.openPreviewCard()};#i=()=>{this.#t.value?.closePreviewCard()};#n=()=>{this.#d(),this.#t.value?.openPreviewCard()};#a=()=>{this.#t.value?.closePreviewCard()};#l=o=>{o.key==="Escape"&&this.#t.value?.open&&this.#t.value?.closePreviewCard()};#d(){let e=this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})?.[0]??this;this.#t.value?.setTriggerEl(e)}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return f`
|
|
4721
4721
|
<span
|
|
4722
4722
|
class="Trigger"
|
|
4723
4723
|
part="trigger"
|
|
@@ -4733,7 +4733,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4733
4733
|
>
|
|
4734
4734
|
<slot></slot>
|
|
4735
4735
|
</span>
|
|
4736
|
-
`}};var
|
|
4736
|
+
`}};var iB=v`
|
|
4737
4737
|
:host {
|
|
4738
4738
|
display: contents;
|
|
4739
4739
|
}
|
|
@@ -4741,7 +4741,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4741
4741
|
.slot-wrapper {
|
|
4742
4742
|
display: none;
|
|
4743
4743
|
}
|
|
4744
|
-
`,
|
|
4744
|
+
`,nB=[v`
|
|
4745
4745
|
.Popup {
|
|
4746
4746
|
box-sizing: border-box;
|
|
4747
4747
|
pointer-events: auto;
|
|
@@ -4782,21 +4782,21 @@ label, legend, caption, figcaption, th, td {
|
|
|
4782
4782
|
left: 50%;
|
|
4783
4783
|
transform: translateX(-50%) rotate(180deg);
|
|
4784
4784
|
}
|
|
4785
|
-
`],
|
|
4785
|
+
`],J2,Q2,Z2,si,Aw,Rw,Iw,Vu,tO,Zr,Jr,ka,ii,Uu,qu,eO,Qr=class extends(Z2=b,Q2=[u({type:Boolean,attribute:"show-arrow"})],J2=[E()],Z2){constructor(){super(...arguments);n(this,Zr);n(this,Aw,i(si,8,this,!0)),i(si,11,this);n(this,Rw,i(si,12,this,"top")),i(si,15,this);n(this,Jr,new K(this,{context:wa,subscribe:!0}));n(this,ka,!1);n(this,ii,new he(this,{getAnchor:()=>r(this,Jr).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:nB,contentContainer:".PreviewCardContent",forwardProperties:["--preview-card-popup-padding"],onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,Zr,Vu)&&p(this,Zr,e,tO)},renderPopup:t=>{let e=r(this,Jr).value?.popupId??"";return f`
|
|
4786
4786
|
<div
|
|
4787
4787
|
class="Popup"
|
|
4788
4788
|
id="${e}"
|
|
4789
4789
|
role="tooltip"
|
|
4790
4790
|
?data-starting-style="${t.isStarting}"
|
|
4791
4791
|
?data-ending-style="${t.isEnding}"
|
|
4792
|
-
data-side="${r(this,
|
|
4793
|
-
@mouseenter="${r(this,
|
|
4794
|
-
@mouseleave="${r(this,
|
|
4792
|
+
data-side="${r(this,Zr,Vu)}"
|
|
4793
|
+
@mouseenter="${r(this,Uu)}"
|
|
4794
|
+
@mouseleave="${r(this,qu)}"
|
|
4795
4795
|
>
|
|
4796
4796
|
<div class="PreviewCardContent"></div>
|
|
4797
|
-
${this.showArrow?
|
|
4797
|
+
${this.showArrow?En(r(this,Zr,Vu)):""}
|
|
4798
4798
|
</div>
|
|
4799
|
-
`}}));n(this,
|
|
4799
|
+
`}}));n(this,Uu,()=>{r(this,Jr).value?.openPreviewCard()});n(this,qu,()=>{r(this,Jr).value?.closePreviewCard()})}updated(){let t=r(this,Jr).value?.open??!1;t&&!r(this,ka)?(h(this,Zr,eO).call(this),r(this,ii).open()):!t&&r(this,ka)&&r(this,ii).close(),p(this,ka,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};si=S(Z2),Aw=new WeakMap,Rw=new WeakMap,Zr=new WeakSet,Jr=new WeakMap,ka=new WeakMap,ii=new WeakMap,Uu=new WeakMap,qu=new WeakMap,eO=function(){let t=r(this,Jr).value?.side??"top";r(this,ii).placement=t,r(this,ii).offset=r(this,Jr).value?.sideOffset??8},d(si,4,"showArrow",Q2,Qr,Aw),Iw=d(si,20,"#side",J2,Zr,Rw),Vu=Iw.get,tO=Iw.set,$(si,Qr),g(Qr,"tagName","dui-preview-card-popup"),g(Qr,"styles",[y,iB]);var aB=k``,Ea=class extends ue{static styles=[...ue.styles,aB]};customElements.define(Ea.tagName,Ea);var lB=k`
|
|
4800
4800
|
.Popup {
|
|
4801
4801
|
padding: var(--preview-card-popup-padding, var(--space-4));
|
|
4802
4802
|
border-radius: var(--radius-md);
|
|
@@ -4821,7 +4821,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4821
4821
|
stroke: var(--border);
|
|
4822
4822
|
stroke-width: 1px;
|
|
4823
4823
|
}
|
|
4824
|
-
`,
|
|
4824
|
+
`,Ca=class extends Qr{static styles=[...Qr.styles,lB]};customElements.define(Ca.tagName,Ca);var $a=class extends Qd{};customElements.define($a.tagName,$a);var dB=v`
|
|
4825
4825
|
:host {
|
|
4826
4826
|
display: block;
|
|
4827
4827
|
}
|
|
@@ -4839,23 +4839,23 @@ label, legend, caption, figcaption, th, td {
|
|
|
4839
4839
|
width: var(--progress-value, 0%);
|
|
4840
4840
|
height: 100%;
|
|
4841
4841
|
}
|
|
4842
|
-
`,
|
|
4842
|
+
`,rO,oO,sO,iO,to,Ow,Lw,zw,eo,nO,Mw,Nw,ur=class extends(iO=b,sO=[u({type:Number})],oO=[u({type:Number})],rO=[u({type:Number})],iO){constructor(){super(...arguments);n(this,eo);n(this,Ow,i(to,8,this,null)),i(to,11,this);n(this,Lw,i(to,12,this,0)),i(to,15,this);n(this,zw,i(to,16,this,100)),i(to,19,this)}render(){let t=r(this,eo,nO);return f`
|
|
4843
4843
|
<div
|
|
4844
4844
|
part="root"
|
|
4845
4845
|
role="progressbar"
|
|
4846
4846
|
aria-valuenow="${this.value??I}"
|
|
4847
4847
|
aria-valuemin="${this.min}"
|
|
4848
4848
|
aria-valuemax="${this.max}"
|
|
4849
|
-
?data-complete="${r(this,
|
|
4850
|
-
?data-progressing="${!r(this,
|
|
4851
|
-
?data-indeterminate="${r(this,
|
|
4849
|
+
?data-complete="${r(this,eo,Nw)}"
|
|
4850
|
+
?data-progressing="${!r(this,eo,Mw)&&!r(this,eo,Nw)}"
|
|
4851
|
+
?data-indeterminate="${r(this,eo,Mw)}"
|
|
4852
4852
|
style="--progress-value: ${t}%"
|
|
4853
4853
|
>
|
|
4854
4854
|
<div part="track">
|
|
4855
4855
|
<div part="indicator"></div>
|
|
4856
4856
|
</div>
|
|
4857
4857
|
</div>
|
|
4858
|
-
`}};
|
|
4858
|
+
`}};to=S(iO),Ow=new WeakMap,Lw=new WeakMap,zw=new WeakMap,eo=new WeakSet,nO=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))},Mw=function(){return this.value===null},Nw=function(){return this.value!==null&&this.value>=this.max},d(to,4,"value",sO,ur,Ow),d(to,4,"min",oO,ur,Lw),d(to,4,"max",rO,ur,zw),$(to,ur),g(ur,"tagName","dui-progress"),g(ur,"styles",[y,dB]);var cB=k`
|
|
4859
4859
|
:host {
|
|
4860
4860
|
--progress-height: var(--space-2);
|
|
4861
4861
|
}
|
|
@@ -4885,7 +4885,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4885
4885
|
left: 100%;
|
|
4886
4886
|
}
|
|
4887
4887
|
}
|
|
4888
|
-
`,
|
|
4888
|
+
`,Sa=class extends ur{static styles=[...ur.styles,cB]};customElements.define(Sa.tagName,Sa);var Pu=Symbol("dui-radio-group");var pB=v`
|
|
4889
4889
|
:host {
|
|
4890
4890
|
display: inline-flex;
|
|
4891
4891
|
align-items: center;
|
|
@@ -4929,7 +4929,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4929
4929
|
display: none;
|
|
4930
4930
|
}
|
|
4931
4931
|
|
|
4932
|
-
`,
|
|
4932
|
+
`,aO,lO,dO,cO,Ta,ro,Dw,Hw,Bw,es,ke,Fw,Vw,Uw,pO,hO,Zd,_a,ju,Qe=class extends(cO=b,dO=[u()],lO=[u({type:Boolean,reflect:!0})],aO=[u({type:Boolean,reflect:!0,attribute:"read-only"})],cO){constructor(){super();n(this,ke);n(this,Ta);n(this,Dw,i(ro,8,this,"")),i(ro,11,this);n(this,Hw,i(ro,12,this,!1)),i(ro,15,this);n(this,Bw,i(ro,16,this,!1)),i(ro,19,this);n(this,es,new K(this,{context:Pu,subscribe:!0}));n(this,Zd,t=>{t.target.closest("[part='root']")||r(this,_a).call(this,t)});n(this,_a,t=>{if(r(this,ke,Vw)||r(this,ke,Uw))return;let e=r(this,es).value;e&&e.select(this.value)});n(this,ju,t=>{t.key===" "&&(t.preventDefault(),r(this,_a).call(this,t))});p(this,Ta,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",r(this,Zd))}willUpdate(){h(this,ke,hO).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,Zd))}render(){let t=r(this,ke,Fw),e=r(this,ke,Vw),a=r(this,ke,Uw),l=r(this,ke,pO);return f`
|
|
4933
4933
|
<span
|
|
4934
4934
|
part="root"
|
|
4935
4935
|
role="radio"
|
|
@@ -4943,19 +4943,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
4943
4943
|
?data-disabled="${e}"
|
|
4944
4944
|
?data-readonly="${a}"
|
|
4945
4945
|
?data-required="${l}"
|
|
4946
|
-
@click="${r(this,
|
|
4947
|
-
@keydown="${r(this,
|
|
4946
|
+
@click="${r(this,_a)}"
|
|
4947
|
+
@keydown="${r(this,ju)}"
|
|
4948
4948
|
>
|
|
4949
4949
|
<span
|
|
4950
4950
|
part="indicator"
|
|
4951
4951
|
?data-checked="${t}"
|
|
4952
4952
|
?data-unchecked="${!t}"
|
|
4953
4953
|
>
|
|
4954
|
-
${t?
|
|
4954
|
+
${t?f`<span part="dot"></span>`:I}
|
|
4955
4955
|
</span>
|
|
4956
4956
|
</span>
|
|
4957
4957
|
<slot></slot>
|
|
4958
|
-
`}};
|
|
4958
|
+
`}};ro=S(cO),Ta=new WeakMap,Dw=new WeakMap,Hw=new WeakMap,Bw=new WeakMap,es=new WeakMap,ke=new WeakSet,Fw=function(){return r(this,es).value?.value===this.value},Vw=function(){return this.disabled||(r(this,es).value?.disabled??!1)},Uw=function(){return this.readOnly||(r(this,es).value?.readOnly??!1)},pO=function(){return r(this,es).value?.required??!1},hO=function(){r(this,ke,Fw)?r(this,Ta).setFormValue(this.value):r(this,Ta).setFormValue(null)},Zd=new WeakMap,_a=new WeakMap,ju=new WeakMap,d(ro,4,"value",dO,Qe,Dw),d(ro,4,"disabled",lO,Qe,Hw),d(ro,4,"readOnly",aO,Qe,Bw),$(ro,Qe),g(Qe,"tagName","dui-radio"),g(Qe,"formAssociated",!0),g(Qe,"styles",[y,pB]);var Zw=O("value-change",{bubbles:!0,composed:!0}),hB=v`
|
|
4959
4959
|
:host {
|
|
4960
4960
|
display: block;
|
|
4961
4961
|
}
|
|
@@ -4969,7 +4969,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4969
4969
|
[part="root"][data-disabled] {
|
|
4970
4970
|
opacity: 0.5;
|
|
4971
4971
|
}
|
|
4972
|
-
`,
|
|
4972
|
+
`,uO,mO,fO,gO,vO,bO,xO,yO,wO,_t,qw,Pw,jw,Ww,Kw,Gw,Yw,Xw,kO,Qw,Tr,Ku,Gu,Jw,Wu,me=class extends(wO=b,yO=[u()],xO=[u()],bO=[u({attribute:"default-value"})],vO=[u({type:Boolean,reflect:!0})],gO=[u({type:Boolean,reflect:!0,attribute:"read-only"})],fO=[u({type:Boolean,reflect:!0})],mO=[E()],uO=[vt({context:Pu}),E()],wO){constructor(){super(...arguments);n(this,Tr);n(this,qw,i(_t,8,this)),i(_t,11,this);n(this,Pw,i(_t,12,this)),i(_t,15,this);n(this,jw,i(_t,16,this)),i(_t,19,this);n(this,Ww,i(_t,20,this,!1)),i(_t,23,this);n(this,Kw,i(_t,24,this,!1)),i(_t,27,this);n(this,Gw,i(_t,28,this,!1)),i(_t,31,this);n(this,Yw,i(_t,32,this)),i(_t,35,this);n(this,Ku,()=>this.value??r(this,Tr,kO));n(this,Gu,t=>{this.disabled||this.readOnly||(this.value===void 0&&p(this,Tr,t,Qw),this.dispatchEvent(Zw({value:t})))});n(this,Jw,i(_t,36,this,h(this,Tr,Wu).call(this))),i(_t,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,Tr,this.defaultValue,Qw),this._ctx=h(this,Tr,Wu).call(this)}willUpdate(){this._ctx=h(this,Tr,Wu).call(this)}render(){return f`
|
|
4973
4973
|
<div
|
|
4974
4974
|
part="root"
|
|
4975
4975
|
role="radiogroup"
|
|
@@ -4979,7 +4979,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4979
4979
|
>
|
|
4980
4980
|
<slot></slot>
|
|
4981
4981
|
</div>
|
|
4982
|
-
`}}
|
|
4982
|
+
`}};_t=S(wO),qw=new WeakMap,Pw=new WeakMap,jw=new WeakMap,Ww=new WeakMap,Kw=new WeakMap,Gw=new WeakMap,Yw=new WeakMap,Tr=new WeakSet,Ku=new WeakMap,Gu=new WeakMap,Jw=new WeakMap,Wu=function(){return{name:this.name,value:r(this,Ku).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:r(this,Gu)}},d(_t,4,"name",yO,me,qw),d(_t,4,"value",xO,me,Pw),d(_t,4,"defaultValue",bO,me,jw),d(_t,4,"disabled",vO,me,Ww),d(_t,4,"readOnly",gO,me,Kw),d(_t,4,"required",fO,me,Gw),Xw=d(_t,20,"#internalValue",mO,Tr,Yw),kO=Xw.get,Qw=Xw.set,d(_t,4,"_ctx",uO,me,Jw),$(_t,me),g(me,"tagName","dui-radio-group"),g(me,"styles",[y,hB]);var uB=k`
|
|
4983
4983
|
:host {
|
|
4984
4984
|
--radio-size: var(--space-4_5);
|
|
4985
4985
|
gap: var(--space-2);
|
|
@@ -5026,11 +5026,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
5026
5026
|
border-radius: 50%;
|
|
5027
5027
|
background: oklch(from var(--accent) 0.98 0.01 h);
|
|
5028
5028
|
}
|
|
5029
|
-
`,
|
|
5029
|
+
`,Aa=class extends Qe{static styles=[...Qe.styles,uB]};customElements.define(Aa.tagName,Aa);var mB=k`
|
|
5030
5030
|
[part="root"] {
|
|
5031
5031
|
gap: var(--space-1_5);
|
|
5032
5032
|
}
|
|
5033
|
-
`,
|
|
5033
|
+
`,Ra=class extends me{static styles=[...me.styles,mB]};customElements.define(Ra.tagName,Ra);var fB=v`
|
|
5034
5034
|
:host {
|
|
5035
5035
|
display: block;
|
|
5036
5036
|
position: relative;
|
|
@@ -5121,54 +5121,54 @@ label, legend, caption, figcaption, th, td {
|
|
|
5121
5121
|
height: 100%;
|
|
5122
5122
|
min-width: 1.25rem;
|
|
5123
5123
|
}
|
|
5124
|
-
`,
|
|
5124
|
+
`,EO,CO,$O,SO,TO,_O,AO,RO,IO,OO,LO,zO,MO,et,tk,ek,rk,ok,sk,Yu,NO,N,ik,nk,Xu,DO,ak,lk,wk,kk,dk,ck,Ju,Ek,pk,hk,Ck,HO,uk,mk,$k,BO,fk,gk,FO,VO,vk,bk,UO,qO,xk,yk,Sk,PO,Qu,Oo,Ia,Oa,ni,ai,li,di,rs,jO,WO,ci,tc,Zu,ec,rc,oc,sc,ic,nc,KO,GO,oo=class oo extends(MO=b,zO=[u({reflect:!0})],LO=[u({type:Boolean,reflect:!0})],OO=[u({attribute:"max-height"})],IO=[E()],RO=[E()],AO=[E()],_O=[E()],TO=[E()],SO=[E()],$O=[E()],CO=[E()],EO=[E()],MO){constructor(){super(...arguments);n(this,N);n(this,tk,i(et,8,this,"vertical")),i(et,11,this);n(this,ek,i(et,12,this,!1)),i(et,15,this);n(this,rk,i(et,16,this)),i(et,19,this);n(this,ok,i(et,20,this,!1)),i(et,23,this);n(this,ik,i(et,24,this,!1)),i(et,27,this);n(this,ak,i(et,28,this,!1)),i(et,31,this);n(this,dk,i(et,32,this,!1)),i(et,35,this);n(this,pk,i(et,36,this,0)),i(et,39,this);n(this,uk,i(et,40,this,0)),i(et,43,this);n(this,fk,i(et,44,this,0)),i(et,47,this);n(this,vk,i(et,48,this,0)),i(et,51,this);n(this,xk,i(et,52,this,!0)),i(et,55,this);n(this,Oo,!0);n(this,Ia,0);n(this,Oa);n(this,ni);n(this,ai);n(this,li,0);n(this,di,0);n(this,ci,()=>{let t=r(this,N,rs);if(!t)return;let e=t.scrollHeight>t.clientHeight,a=t.scrollWidth>t.clientWidth;p(this,N,e,DO),p(this,N,a,NO),e&&p(this,N,t.clientHeight/t.scrollHeight*100,HO),a&&p(this,N,t.clientWidth/t.scrollWidth*100,BO),r(this,tc).call(this,t)});n(this,tc,t=>{if(r(this,N,Xu)){let e=t.scrollHeight-t.clientHeight;p(this,N,e>0?t.scrollTop/e*(100-r(this,N,Ck)):0,VO)}if(r(this,N,Yu)){let e=t.scrollWidth-t.clientWidth;p(this,N,e>0?t.scrollLeft/e*(100-r(this,N,$k)):0,qO)}});n(this,Zu,()=>{let t=r(this,N,rs);if(!t)return;p(this,N,!0,Ek),r(this,tc).call(this,t);let e=r(this,Oo),a=t.scrollTop<r(this,Ia);p(this,N,t.scrollTop<=0,PO),p(this,Oo,t.scrollTop+t.clientHeight>=t.scrollHeight-r(oo,Qu)),a&&e&&!r(this,Oo)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&r(this,Oo)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),p(this,Ia,t.scrollTop),clearTimeout(r(this,Oa)),p(this,Oa,setTimeout(()=>{p(this,N,!1,Ek)},1e3))});n(this,ec,()=>{p(this,N,!0,kk),r(this,ci).call(this)});n(this,rc,()=>{p(this,N,!1,kk)});n(this,oc,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,N,rs);if(a)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let c=l.getBoundingClientRect(),m=(e.clientY-c.top)/c.height;a.scrollTop=m*(a.scrollHeight-a.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let c=l.getBoundingClientRect(),m=(e.clientX-c.left)/c.width;a.scrollLeft=m*(a.scrollWidth-a.clientWidth)}});n(this,sc,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,N,rs);a&&(p(this,ai,t),t==="vertical"?(p(this,li,e.clientY),p(this,di,a.scrollTop)):(p(this,li,e.clientX),p(this,di,a.scrollLeft)),document.addEventListener("pointermove",r(this,ic)),document.addEventListener("pointerup",r(this,nc)))});n(this,ic,t=>{let e=r(this,N,rs);if(!(!e||!r(this,ai)))if(r(this,ai)==="vertical"){let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!a)return;let l=t.clientY-r(this,li),c=a.clientHeight,m=e.scrollHeight-e.clientHeight;e.scrollTop=r(this,di)+l/c*m}else{let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!a)return;let l=t.clientX-r(this,li),c=a.clientWidth,m=e.scrollWidth-e.clientWidth;e.scrollLeft=r(this,di)+l/c*m}});n(this,nc,()=>{p(this,ai,void 0),document.removeEventListener("pointermove",r(this,ic)),document.removeEventListener("pointerup",r(this,nc))})}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",r(this,ec)),this.addEventListener("pointerleave",r(this,rc))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",r(this,ec)),this.removeEventListener("pointerleave",r(this,rc)),r(this,ni)?.disconnect(),clearTimeout(r(this,Oa))}firstUpdated(){let t=r(this,N,rs);if(!t)return;p(this,ni,new ResizeObserver(()=>r(this,ci).call(this))),r(this,ni).observe(t);let e=t.querySelector("slot");if(e){let a=()=>{for(let l of e.assignedElements())r(this,ni).observe(l)};e.addEventListener("slotchange",()=>{a(),requestAnimationFrame(()=>r(this,ci).call(this))}),a()}r(this,ci).call(this)}async scrollToBottom(){await this.updateComplete;let t=r(this,N,rs);t&&(t.scrollTop=t.scrollHeight,p(this,Oo,!0),p(this,Ia,t.scrollTop))}get isAtTop(){return r(this,N,Sk)}get isAtBottom(){return r(this,Oo)}render(){return f`
|
|
5125
5125
|
<div
|
|
5126
5126
|
class="ScrollArea"
|
|
5127
5127
|
part="root"
|
|
5128
|
-
?data-has-overflow-x="${r(this,N,
|
|
5129
|
-
?data-has-overflow-y="${r(this,N,
|
|
5130
|
-
?data-scrolling="${r(this,N,
|
|
5128
|
+
?data-has-overflow-x="${r(this,N,Yu)}"
|
|
5129
|
+
?data-has-overflow-y="${r(this,N,Xu)}"
|
|
5130
|
+
?data-scrolling="${r(this,N,Ju)}"
|
|
5131
5131
|
>
|
|
5132
|
-
<div class="Viewport" part="viewport" ?data-scrolled="${!r(this,N,
|
|
5132
|
+
<div class="Viewport" part="viewport" ?data-scrolled="${!r(this,N,Sk)}" @scroll="${r(this,Zu)}">
|
|
5133
5133
|
<slot></slot>
|
|
5134
5134
|
</div>
|
|
5135
|
-
${
|
|
5135
|
+
${h(this,N,KO).call(this)} ${h(this,N,GO).call(this)}
|
|
5136
5136
|
</div>
|
|
5137
|
-
`}};
|
|
5137
|
+
`}};et=S(MO),tk=new WeakMap,ek=new WeakMap,rk=new WeakMap,ok=new WeakMap,N=new WeakSet,ik=new WeakMap,ak=new WeakMap,dk=new WeakMap,pk=new WeakMap,uk=new WeakMap,fk=new WeakMap,vk=new WeakMap,xk=new WeakMap,Qu=new WeakMap,Oo=new WeakMap,Ia=new WeakMap,Oa=new WeakMap,ni=new WeakMap,ai=new WeakMap,li=new WeakMap,di=new WeakMap,rs=function(){return this.shadowRoot?.querySelector(".Viewport")??null},jO=function(){return this.orientation==="vertical"||this.orientation==="both"},WO=function(){return this.orientation==="horizontal"||this.orientation==="both"},ci=new WeakMap,tc=new WeakMap,Zu=new WeakMap,ec=new WeakMap,rc=new WeakMap,oc=new WeakMap,sc=new WeakMap,ic=new WeakMap,nc=new WeakMap,KO=function(){return!r(this,N,jO)||!r(this,N,Xu)?I:f`
|
|
5138
5138
|
<div
|
|
5139
5139
|
class="Scrollbar"
|
|
5140
5140
|
part="scrollbar-vertical"
|
|
5141
5141
|
data-orientation="vertical"
|
|
5142
|
-
?data-hovering="${r(this,N,
|
|
5143
|
-
?data-scrolling="${r(this,N,
|
|
5144
|
-
@pointerdown="${t=>r(this,
|
|
5142
|
+
?data-hovering="${r(this,N,wk)}"
|
|
5143
|
+
?data-scrolling="${r(this,N,Ju)}"
|
|
5144
|
+
@pointerdown="${t=>r(this,oc).call(this,"vertical",t)}"
|
|
5145
5145
|
>
|
|
5146
5146
|
<div
|
|
5147
5147
|
class="Thumb"
|
|
5148
5148
|
part="thumb-vertical"
|
|
5149
5149
|
data-orientation="vertical"
|
|
5150
|
-
style="height: ${r(this,N,
|
|
5151
|
-
@pointerdown="${t=>r(this,
|
|
5150
|
+
style="height: ${r(this,N,Ck)}%; top: ${r(this,N,FO)}%; position: absolute;"
|
|
5151
|
+
@pointerdown="${t=>r(this,sc).call(this,"vertical",t)}"
|
|
5152
5152
|
></div>
|
|
5153
5153
|
</div>
|
|
5154
|
-
`},
|
|
5154
|
+
`},GO=function(){return!r(this,N,WO)||!r(this,N,Yu)?I:f`
|
|
5155
5155
|
<div
|
|
5156
5156
|
class="Scrollbar"
|
|
5157
5157
|
part="scrollbar-horizontal"
|
|
5158
5158
|
data-orientation="horizontal"
|
|
5159
|
-
?data-hovering="${r(this,N,
|
|
5160
|
-
?data-scrolling="${r(this,N,
|
|
5161
|
-
@pointerdown="${t=>r(this,
|
|
5159
|
+
?data-hovering="${r(this,N,wk)}"
|
|
5160
|
+
?data-scrolling="${r(this,N,Ju)}"
|
|
5161
|
+
@pointerdown="${t=>r(this,oc).call(this,"horizontal",t)}"
|
|
5162
5162
|
>
|
|
5163
5163
|
<div
|
|
5164
5164
|
class="Thumb"
|
|
5165
5165
|
part="thumb-horizontal"
|
|
5166
5166
|
data-orientation="horizontal"
|
|
5167
|
-
style="width: ${r(this,N
|
|
5168
|
-
@pointerdown="${t=>r(this,
|
|
5167
|
+
style="width: ${r(this,N,$k)}%; left: ${r(this,N,UO)}%; position: absolute;"
|
|
5168
|
+
@pointerdown="${t=>r(this,sc).call(this,"horizontal",t)}"
|
|
5169
5169
|
></div>
|
|
5170
5170
|
</div>
|
|
5171
|
-
`},d(
|
|
5171
|
+
`},d(et,4,"orientation",zO,oo,tk),d(et,4,"fade",LO,oo,ek),d(et,4,"maxHeight",OO,oo,rk),sk=d(et,20,"#hasOverflowX",IO,N,ok),Yu=sk.get,NO=sk.set,nk=d(et,20,"#hasOverflowY",RO,N,ik),Xu=nk.get,DO=nk.set,lk=d(et,20,"#hovering",AO,N,ak),wk=lk.get,kk=lk.set,ck=d(et,20,"#scrolling",_O,N,dk),Ju=ck.get,Ek=ck.set,hk=d(et,20,"#thumbHeightPercent",TO,N,pk),Ck=hk.get,HO=hk.set,mk=d(et,20,"#thumbWidthPercent",SO,N,uk),$k=mk.get,BO=mk.set,gk=d(et,20,"#thumbTopPercent",$O,N,fk),FO=gk.get,VO=gk.set,bk=d(et,20,"#thumbLeftPercent",CO,N,vk),UO=bk.get,qO=bk.set,yk=d(et,20,"#isAtTop",EO,N,xk),Sk=yk.get,PO=yk.set,$(et,oo),g(oo,"tagName","dui-scroll-area"),g(oo,"styles",[y,fB]),n(oo,Qu,1);var La=oo;var gB=k`
|
|
5172
5172
|
.Scrollbar {
|
|
5173
5173
|
border-radius: var(--radius-sm);
|
|
5174
5174
|
transition: opacity var(--duration-fast);
|
|
@@ -5198,11 +5198,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
5198
5198
|
opacity: 0.8;
|
|
5199
5199
|
}
|
|
5200
5200
|
}
|
|
5201
|
-
`,
|
|
5201
|
+
`,za=class extends La{static styles=[...La.styles,gB]};customElements.define(za.tagName,za);var vB=O("value-change",{bubbles:!0,composed:!0}),bB=v`
|
|
5202
5202
|
:host {
|
|
5203
5203
|
display: block;
|
|
5204
5204
|
}
|
|
5205
|
-
`,
|
|
5205
|
+
`,xB=v`
|
|
5206
5206
|
.Trigger {
|
|
5207
5207
|
display: flex;
|
|
5208
5208
|
align-items: center;
|
|
@@ -5227,7 +5227,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5227
5227
|
.Icon {
|
|
5228
5228
|
flex-shrink: 0;
|
|
5229
5229
|
}
|
|
5230
|
-
`,
|
|
5230
|
+
`,yB=[v`
|
|
5231
5231
|
.Popup {
|
|
5232
5232
|
max-height: 240px;
|
|
5233
5233
|
overflow-y: auto;
|
|
@@ -5266,7 +5266,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5266
5266
|
overflow: hidden;
|
|
5267
5267
|
text-overflow: ellipsis;
|
|
5268
5268
|
}
|
|
5269
|
-
`],
|
|
5269
|
+
`],YO,XO,JO,QO,ZO,tL,eL,rL,lc,Vt,Tk,_k,Ak,Rk,Ik,Ok,Lk,zk,pi,os,ot,tm,hi,Ut,Mk,oL,sL,em,rm,om,sm,im,Nk,ac,Dk,nm,fe=class extends(rL=b,eL=[u({attribute:!1})],tL=[u({type:String})],ZO=[u({type:String})],QO=[u({type:Boolean,reflect:!0})],JO=[u({type:Boolean,attribute:"align-item-to-trigger",reflect:!0})],XO=[u({type:String})],YO=[E()],rL){constructor(){super();n(this,ot);n(this,lc);n(this,Tk,i(Vt,8,this,[])),i(Vt,11,this);n(this,_k,i(Vt,12,this,"")),i(Vt,15,this);n(this,Ak,i(Vt,16,this,"Select...")),i(Vt,19,this);n(this,Rk,i(Vt,20,this,!1)),i(Vt,23,this);n(this,Ik,i(Vt,24,this,!0)),i(Vt,27,this);n(this,Ok,i(Vt,28,this,"")),i(Vt,31,this);n(this,Lk,i(Vt,32,this,-1)),i(Vt,35,this);n(this,tm,`select-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,hi,`select-listbox-${crypto.randomUUID().slice(0,8)}`);n(this,Ut,new he(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:yB,alignToInner:()=>{if(!this.alignItemToTrigger)return null;let e=r(this,Ut).renderRoot?.querySelector("[data-selected]");return e?.querySelector(".ItemText")??e??null},alignToInnerReference:()=>this.alignItemToTrigger?this.shadowRoot?.querySelector(".Value")??null:null,onOpen:()=>{p(this,ot,r(this,ot,oL),os)},onClose:()=>{p(this,ot,-1,os)},renderPopup:t=>f`
|
|
5270
5270
|
<div
|
|
5271
5271
|
class="Popup"
|
|
5272
5272
|
?data-align-inner="${this.alignItemToTrigger&&this.value!==""}"
|
|
@@ -5275,60 +5275,60 @@ label, legend, caption, figcaption, th, td {
|
|
|
5275
5275
|
>
|
|
5276
5276
|
<div
|
|
5277
5277
|
class="Listbox"
|
|
5278
|
-
id="${r(this,
|
|
5278
|
+
id="${r(this,hi)}"
|
|
5279
5279
|
role="listbox"
|
|
5280
5280
|
|
|
5281
|
-
@mousedown="${r(this,
|
|
5281
|
+
@mousedown="${r(this,om)}"
|
|
5282
5282
|
>
|
|
5283
|
-
${
|
|
5283
|
+
${Os(this.options,e=>e.value,r(this,nm))}
|
|
5284
5284
|
</div>
|
|
5285
5285
|
</div>
|
|
5286
|
-
`}));n(this,
|
|
5286
|
+
`}));n(this,em,t=>{t.stopPropagation(),!this.disabled&&(r(this,Ut).isOpen?r(this,Ut).close():r(this,Ut).open())});n(this,rm,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),r(this,Ut).isOpen){let e=this.options[r(this,ot,pi)];e&&!e.disabled&&h(this,ot,Nk).call(this,e)}else r(this,Ut).open();break}case"ArrowDown":{t.preventDefault(),r(this,Ut).isOpen?p(this,ot,h(this,ot,ac).call(this,r(this,ot,pi),1),os):r(this,Ut).open();break}case"ArrowUp":{t.preventDefault(),r(this,Ut).isOpen?p(this,ot,h(this,ot,ac).call(this,r(this,ot,pi),-1),os):r(this,Ut).open();break}case"Home":{r(this,Ut).isOpen&&(t.preventDefault(),p(this,ot,h(this,ot,ac).call(this,-1,1),os));break}case"End":{r(this,Ut).isOpen&&(t.preventDefault(),p(this,ot,h(this,ot,ac).call(this,this.options.length,-1),os));break}case"Escape":{r(this,Ut).isOpen&&(t.preventDefault(),r(this,Ut).close(),h(this,ot,Dk).call(this));break}case"Tab":{r(this,Ut).isOpen&&r(this,Ut).close();break}}});n(this,om,t=>{t.preventDefault()});n(this,sm,t=>{t.disabled||h(this,ot,Nk).call(this,t)});n(this,im,t=>{this.options[t]?.disabled||p(this,ot,t,os)});n(this,nm,(t,e)=>{let a=t.value===this.value,l=e===r(this,ot,pi);return f`
|
|
5287
5287
|
<div
|
|
5288
5288
|
class="Item"
|
|
5289
5289
|
role="option"
|
|
5290
|
-
id="${r(this,
|
|
5290
|
+
id="${r(this,hi)}-option-${e}"
|
|
5291
5291
|
aria-selected="${a}"
|
|
5292
5292
|
?data-selected="${a}"
|
|
5293
5293
|
?data-highlighted="${l}"
|
|
5294
5294
|
?data-disabled="${t.disabled}"
|
|
5295
|
-
@click="${()=>r(this,
|
|
5296
|
-
@mouseenter="${()=>r(this,
|
|
5295
|
+
@click="${()=>r(this,sm).call(this,t)}"
|
|
5296
|
+
@mouseenter="${()=>r(this,im).call(this,e)}"
|
|
5297
5297
|
>
|
|
5298
5298
|
<span class="ItemIndicator">
|
|
5299
|
-
${a?
|
|
5299
|
+
${a?f`<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="M20 6 9 17l-5-5"/></svg></dui-icon>`:I}
|
|
5300
5300
|
</span>
|
|
5301
5301
|
<span class="ItemText">${t.label}</span>
|
|
5302
5302
|
</div>
|
|
5303
|
-
`});p(this,
|
|
5303
|
+
`});p(this,lc,this.attachInternals())}willUpdate(){r(this,lc).setFormValue(this.value)}render(){let t=this.value!==""&&r(this,ot,Mk)!=null;return f`
|
|
5304
5304
|
<div
|
|
5305
5305
|
class="Trigger"
|
|
5306
5306
|
part="trigger"
|
|
5307
|
-
id="${r(this,
|
|
5307
|
+
id="${r(this,tm)}"
|
|
5308
5308
|
role="combobox"
|
|
5309
5309
|
tabindex="${this.disabled?-1:0}"
|
|
5310
5310
|
aria-haspopup="listbox"
|
|
5311
|
-
aria-expanded="${r(this,
|
|
5312
|
-
aria-controls="${r(this,
|
|
5313
|
-
aria-activedescendant="${r(this,
|
|
5311
|
+
aria-expanded="${r(this,Ut).isOpen}"
|
|
5312
|
+
aria-controls="${r(this,hi)}"
|
|
5313
|
+
aria-activedescendant="${r(this,ot,pi)>=0?`${r(this,hi)}-option-${r(this,ot,pi)}`:I}"
|
|
5314
5314
|
?data-disabled="${this.disabled}"
|
|
5315
|
-
?data-open="${r(this,
|
|
5316
|
-
@click="${r(this,
|
|
5317
|
-
@keydown="${r(this,
|
|
5315
|
+
?data-open="${r(this,Ut).isOpen}"
|
|
5316
|
+
@click="${r(this,em)}"
|
|
5317
|
+
@keydown="${r(this,rm)}"
|
|
5318
5318
|
>
|
|
5319
5319
|
<span
|
|
5320
5320
|
class="Value"
|
|
5321
5321
|
part="value"
|
|
5322
5322
|
?data-placeholder="${!t}"
|
|
5323
5323
|
>
|
|
5324
|
-
${t?r(this,
|
|
5324
|
+
${t?r(this,ot,sL):this.placeholder}
|
|
5325
5325
|
</span>
|
|
5326
5326
|
<span class="Icon">
|
|
5327
5327
|
<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="m6 9 6 6 6-6"/></svg></dui-icon>
|
|
5328
5328
|
</span>
|
|
5329
5329
|
</div>
|
|
5330
5330
|
|
|
5331
|
-
`}};
|
|
5331
|
+
`}};Vt=S(rL),lc=new WeakMap,Tk=new WeakMap,_k=new WeakMap,Ak=new WeakMap,Rk=new WeakMap,Ik=new WeakMap,Ok=new WeakMap,Lk=new WeakMap,ot=new WeakSet,tm=new WeakMap,hi=new WeakMap,Ut=new WeakMap,Mk=function(){return this.options.find(t=>t.value===this.value)},oL=function(){return this.options.findIndex(t=>t.value===this.value)},sL=function(){return r(this,ot,Mk)?.label??""},em=new WeakMap,rm=new WeakMap,om=new WeakMap,sm=new WeakMap,im=new WeakMap,Nk=function(t){this.value=t.value,this.dispatchEvent(vB({value:t.value,option:t})),r(this,Ut).close(),h(this,ot,Dk).call(this)},ac=function(t,e){let a=this.options.length,l=t+e;for(;l>=0&&l<a;){if(!this.options[l].disabled)return l;l+=e}return t},Dk=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},nm=new WeakMap,d(Vt,4,"options",eL,fe,Tk),d(Vt,4,"value",tL,fe,_k),d(Vt,4,"placeholder",ZO,fe,Ak),d(Vt,4,"disabled",QO,fe,Rk),d(Vt,4,"alignItemToTrigger",JO,fe,Ik),d(Vt,4,"name",XO,fe,Ok),zk=d(Vt,20,"#highlightedIndex",YO,ot,Lk),pi=zk.get,os=zk.set,$(Vt,fe),g(fe,"tagName","dui-select"),g(fe,"formAssociated",!0),g(fe,"styles",[y,bB,xB]);var wB=k`
|
|
5332
5332
|
.Trigger {
|
|
5333
5333
|
height: var(--component-height-md);
|
|
5334
5334
|
gap: var(--space-2);
|
|
@@ -5452,7 +5452,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5452
5452
|
.ItemIndicator dui-icon {
|
|
5453
5453
|
--icon-size: var(--space-3_5);
|
|
5454
5454
|
}
|
|
5455
|
-
`,
|
|
5455
|
+
`,Ma=class extends fe{static styles=[...fe.styles,wB]};customElements.define(Ma.tagName,Ma);var kB=v`
|
|
5456
5456
|
:host {
|
|
5457
5457
|
display: block;
|
|
5458
5458
|
}
|
|
@@ -5468,13 +5468,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
5468
5468
|
margin: 0;
|
|
5469
5469
|
padding: 0;
|
|
5470
5470
|
}
|
|
5471
|
-
`,
|
|
5471
|
+
`,iL,nL,am,Hk,so=class extends(nL=b,iL=[u({reflect:!0})],nL){constructor(){super(...arguments);n(this,Hk,i(am,8,this,"horizontal")),i(am,11,this)}render(){return f`
|
|
5472
5472
|
<div
|
|
5473
5473
|
part="root"
|
|
5474
5474
|
role="separator"
|
|
5475
5475
|
aria-orientation="${this.orientation}"
|
|
5476
5476
|
></div>
|
|
5477
|
-
`}};
|
|
5477
|
+
`}};am=S(nL),Hk=new WeakMap,d(am,4,"orientation",iL,so,Hk),$(am,so),g(so,"tagName","dui-separator"),g(so,"styles",[y,kB]);var EB=k`
|
|
5478
5478
|
:host {
|
|
5479
5479
|
--separator-margin: 0;
|
|
5480
5480
|
}
|
|
@@ -5497,14 +5497,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
5497
5497
|
margin-left: var(--separator-margin);
|
|
5498
5498
|
margin-right: var(--separator-margin);
|
|
5499
5499
|
}
|
|
5500
|
-
`,
|
|
5500
|
+
`,Na=class extends so{static styles=[...so.styles,EB]};customElements.define(Na.tagName,Na);var io=Symbol("dui-sidebar");var tE=O("open-change",{bubbles:!0,composed:!0}),CB=v`
|
|
5501
5501
|
:host {
|
|
5502
5502
|
display: flex;
|
|
5503
5503
|
width: 100%;
|
|
5504
5504
|
height: 100%;
|
|
5505
5505
|
min-height: inherit;
|
|
5506
5506
|
}
|
|
5507
|
-
`,
|
|
5507
|
+
`,aL,lL,dL,cL,pL,hL,uL,mL,fL,gL,$t,Bk,Fk,Vk,Uk,qk,Pk,jk,vL,Jk,gt,Wk,Kk,Qk,lm,Gk,Yk,dc,Zk,ss,ui,mi,dm,cc,pc,pm,hm,Xk,cm,Ee=class extends(gL=b,fL=[u({type:Boolean})],mL=[u({type:Boolean,attribute:"default-open"})],uL=[u({reflect:!0})],hL=[u({reflect:!0})],pL=[u({reflect:!0})],cL=[E()],dL=[E()],lL=[E()],aL=[vt({context:io}),E()],gL){constructor(){super(...arguments);n(this,gt);n(this,Bk,i($t,8,this)),i($t,11,this);n(this,Fk,i($t,12,this,!0)),i($t,15,this);n(this,Vk,i($t,16,this,"left")),i($t,19,this);n(this,Uk,i($t,20,this,"sidebar")),i($t,23,this);n(this,qk,i($t,24,this,"offcanvas")),i($t,27,this);n(this,Pk,i($t,28,this,!0)),i($t,31,this);n(this,Wk,i($t,32,this,!1)),i($t,35,this);n(this,Gk,i($t,36,this,!1)),i($t,39,this);n(this,ss);n(this,ui);n(this,mi);n(this,cc,t=>{r(this,gt,dc)?p(this,gt,t,lm):(this.open===void 0&&p(this,gt,t,Jk),this.dispatchEvent(tE({open:t})))});n(this,pc,()=>{r(this,gt,dc)?p(this,gt,!r(this,gt,Qk),lm):r(this,cc).call(this,!r(this,gt,dm))});n(this,pm,t=>{p(this,gt,!t.matches,Zk),r(this,gt,dc)||p(this,gt,!1,lm)});n(this,hm,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),r(this,pc).call(this))});n(this,Xk,i($t,40,this,h(this,gt,cm).call(this))),i($t,43,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&p(this,gt,this.defaultOpen,Jk),p(this,ss,matchMedia("(min-width: 768px)")),p(this,gt,!r(this,ss).matches,Zk),p(this,ui,r(this,pm).bind(this)),r(this,ss).addEventListener("change",r(this,ui)),p(this,mi,r(this,hm).bind(this)),document.addEventListener("keydown",r(this,mi)),this._ctx=h(this,gt,cm).call(this)}disconnectedCallback(){super.disconnectedCallback(),r(this,ss)&&r(this,ui)&&r(this,ss).removeEventListener("change",r(this,ui)),r(this,mi)&&document.removeEventListener("keydown",r(this,mi))}willUpdate(){this._ctx=h(this,gt,cm).call(this)}render(){return f`<slot></slot>`}};$t=S(gL),Bk=new WeakMap,Fk=new WeakMap,Vk=new WeakMap,Uk=new WeakMap,qk=new WeakMap,Pk=new WeakMap,gt=new WeakSet,Wk=new WeakMap,Gk=new WeakMap,ss=new WeakMap,ui=new WeakMap,mi=new WeakMap,dm=function(){return this.open??r(this,gt,vL)},cc=new WeakMap,pc=new WeakMap,pm=new WeakMap,hm=new WeakMap,Xk=new WeakMap,cm=function(){return{state:r(this,gt,dm)?"expanded":"collapsed",open:r(this,gt,dm),openMobile:r(this,gt,Qk),isMobile:r(this,gt,dc),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:r(this,cc),toggleSidebar:r(this,pc)}},d($t,4,"open",fL,Ee,Bk),d($t,4,"defaultOpen",mL,Ee,Fk),d($t,4,"side",uL,Ee,Vk),d($t,4,"variant",hL,Ee,Uk),d($t,4,"collapsible",pL,Ee,qk),jk=d($t,20,"#internalOpen",cL,gt,Pk),vL=jk.get,Jk=jk.set,Kk=d($t,20,"#openMobile",dL,gt,Wk),Qk=Kk.get,lm=Kk.set,Yk=d($t,20,"#isMobile",lL,gt,Gk),dc=Yk.get,Zk=Yk.set,d($t,4,"_ctx",aL,Ee,Xk),$($t,Ee),g(Ee,"tagName","dui-sidebar-provider"),g(Ee,"styles",[y,CB]);var $B=v`
|
|
5508
5508
|
:host {
|
|
5509
5509
|
display: block;
|
|
5510
5510
|
flex-shrink: 0;
|
|
@@ -5589,13 +5589,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
5589
5589
|
.MobilePanel[data-ending-style] {
|
|
5590
5590
|
transform: translateX(var(--mobile-end-x));
|
|
5591
5591
|
}
|
|
5592
|
-
`,
|
|
5592
|
+
`,bL,xL,yL,wL,no,eE,rE,um,aE,xt,oE,sE,lE,dE,iE,nE,mm,cE,fi,kL,EL,pE,fm,gm,Lo=class extends(wL=b,yL=[E()],xL=[E()],bL=[E()],wL){constructor(){super(...arguments);n(this,xt);n(this,eE,i(no,8,this,!1)),i(no,11,this);n(this,oE,i(no,12,this,!1)),i(no,15,this);n(this,iE,i(no,16,this,!1)),i(no,19,this);n(this,fi,new K(this,{context:io,subscribe:!0}));n(this,fm,()=>{r(this,fi).value?.setOpen(!1)});n(this,gm,t=>{t.key==="Escape"&&(t.preventDefault(),r(this,fi).value?.setOpen(!1))})}willUpdate(){let t=r(this,fi).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&&!r(this,xt,um)?h(this,xt,kL).call(this):!t.openMobile&&r(this,xt,um)&&!r(this,xt,mm)&&h(this,xt,EL).call(this)))}render(){let t=r(this,fi).value;if(!t)return f``;let a=t.side==="left"?"-100%":"100%";return t.isMobile?r(this,xt,um)?f`
|
|
5593
5593
|
<div
|
|
5594
5594
|
class="Backdrop"
|
|
5595
5595
|
part="backdrop"
|
|
5596
|
-
?data-starting-style=${r(this,
|
|
5597
|
-
?data-ending-style=${r(this,
|
|
5598
|
-
@click=${r(this,
|
|
5596
|
+
?data-starting-style=${r(this,xt,lE)}
|
|
5597
|
+
?data-ending-style=${r(this,xt,mm)}
|
|
5598
|
+
@click=${r(this,fm)}
|
|
5599
5599
|
></div>
|
|
5600
5600
|
<div
|
|
5601
5601
|
class="MobilePanel"
|
|
@@ -5603,29 +5603,29 @@ label, legend, caption, figcaption, th, td {
|
|
|
5603
5603
|
role="dialog"
|
|
5604
5604
|
tabindex="-1"
|
|
5605
5605
|
style="--mobile-start-x: ${a}; --mobile-end-x: ${a}"
|
|
5606
|
-
?data-starting-style=${r(this,
|
|
5607
|
-
?data-ending-style=${r(this,
|
|
5608
|
-
@keydown=${r(this,
|
|
5606
|
+
?data-starting-style=${r(this,xt,lE)}
|
|
5607
|
+
?data-ending-style=${r(this,xt,mm)}
|
|
5608
|
+
@keydown=${r(this,gm)}
|
|
5609
5609
|
>
|
|
5610
5610
|
<slot></slot>
|
|
5611
5611
|
</div>
|
|
5612
|
-
`:
|
|
5612
|
+
`:f``:t.collapsible==="none"?f`
|
|
5613
5613
|
<div class="DesktopOuter" part="desktop-outer">
|
|
5614
5614
|
<div class="DesktopInner" part="desktop-inner">
|
|
5615
5615
|
<slot></slot>
|
|
5616
5616
|
</div>
|
|
5617
5617
|
</div>
|
|
5618
|
-
`:
|
|
5618
|
+
`:f`
|
|
5619
5619
|
<div class="DesktopOuter" part="desktop-outer">
|
|
5620
5620
|
<div class="DesktopInner" part="desktop-inner">
|
|
5621
5621
|
<slot></slot>
|
|
5622
5622
|
</div>
|
|
5623
5623
|
</div>
|
|
5624
|
-
`}};
|
|
5624
|
+
`}};no=S(wL),eE=new WeakMap,xt=new WeakSet,oE=new WeakMap,iE=new WeakMap,fi=new WeakMap,kL=async function(){p(this,xt,!0,aE),p(this,xt,!0,dE),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,xt,!1,dE)},EL=function(){p(this,xt,!0,cE);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){h(this,xt,pE).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(c),h(this,xt,pE).call(this))},l=()=>{a()};t.addEventListener("transitionend",l);let c=setTimeout(a,250)},pE=function(){p(this,xt,!1,cE),p(this,xt,!1,aE)},fm=new WeakMap,gm=new WeakMap,rE=d(no,20,"#mounted",yL,xt,eE),um=rE.get,aE=rE.set,sE=d(no,20,"#startingStyle",xL,xt,oE),lE=sE.get,dE=sE.set,nE=d(no,20,"#endingStyle",bL,xt,iE),mm=nE.get,cE=nE.set,$(no,Lo),g(Lo,"tagName","dui-sidebar"),g(Lo,"styles",[y,$B]);var SB=v`
|
|
5625
5625
|
:host {
|
|
5626
5626
|
display: inline-block;
|
|
5627
5627
|
}
|
|
5628
|
-
`,
|
|
5628
|
+
`,TB=f`<svg
|
|
5629
5629
|
viewBox="0 0 24 24"
|
|
5630
5630
|
fill="none"
|
|
5631
5631
|
stroke="currentColor"
|
|
@@ -5635,13 +5635,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
5635
5635
|
>
|
|
5636
5636
|
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
5637
5637
|
<path d="M9 3v18" />
|
|
5638
|
-
</svg>`,
|
|
5638
|
+
</svg>`,Da=class extends b{static tagName="dui-sidebar-trigger";static styles=[y,SB];#t=new K(this,{context:io,subscribe:!0});#e=()=>{this.#t.value?.toggleSidebar()};render(){return f`
|
|
5639
5639
|
<dui-button appearance="ghost" size="sm" @click=${this.#e}>
|
|
5640
5640
|
<slot>
|
|
5641
|
-
<dui-icon>${
|
|
5641
|
+
<dui-icon>${TB}</dui-icon>
|
|
5642
5642
|
</slot>
|
|
5643
5643
|
</dui-button>
|
|
5644
|
-
`}};var
|
|
5644
|
+
`}};var _B=v`
|
|
5645
5645
|
:host {
|
|
5646
5646
|
display: flex;
|
|
5647
5647
|
flex-direction: column;
|
|
@@ -5649,31 +5649,31 @@ label, legend, caption, figcaption, th, td {
|
|
|
5649
5649
|
min-height: 0;
|
|
5650
5650
|
overflow: hidden;
|
|
5651
5651
|
}
|
|
5652
|
-
|
|
5652
|
+
`,Ha=class extends b{static tagName="dui-sidebar-content";static styles=[y,_B];render(){return f`
|
|
5653
5653
|
<dui-scroll-area>
|
|
5654
5654
|
<slot></slot>
|
|
5655
5655
|
</dui-scroll-area>
|
|
5656
|
-
`}};var
|
|
5656
|
+
`}};var AB=v`
|
|
5657
5657
|
:host {
|
|
5658
5658
|
display: flex;
|
|
5659
5659
|
flex-direction: column;
|
|
5660
5660
|
}
|
|
5661
|
-
`,
|
|
5661
|
+
`,Ba=class extends b{static tagName="dui-sidebar-header";static styles=[y,AB];render(){return f`<slot></slot>`}};var RB=v`
|
|
5662
5662
|
:host {
|
|
5663
5663
|
display: flex;
|
|
5664
5664
|
flex-direction: column;
|
|
5665
5665
|
}
|
|
5666
|
-
`,
|
|
5666
|
+
`,Fa=class extends b{static tagName="dui-sidebar-footer";static styles=[y,RB];render(){return f`<slot></slot>`}};var IB=v`
|
|
5667
5667
|
:host {
|
|
5668
5668
|
display: flex;
|
|
5669
5669
|
flex-direction: column;
|
|
5670
5670
|
position: relative;
|
|
5671
5671
|
overflow: hidden;
|
|
5672
5672
|
}
|
|
5673
|
-
`,
|
|
5673
|
+
`,Va=class extends b{static tagName="dui-sidebar-group";static styles=[y,IB];render(){return f`
|
|
5674
5674
|
<slot name="label"></slot>
|
|
5675
5675
|
<slot></slot>
|
|
5676
|
-
`}};var
|
|
5676
|
+
`}};var OB=v`
|
|
5677
5677
|
:host {
|
|
5678
5678
|
display: flex;
|
|
5679
5679
|
align-items: center;
|
|
@@ -5685,7 +5685,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5685
5685
|
:host([data-icon-collapsed]) {
|
|
5686
5686
|
opacity: 0;
|
|
5687
5687
|
}
|
|
5688
|
-
`,
|
|
5688
|
+
`,Ua=class extends b{static tagName="dui-sidebar-group-label";static styles=[y,OB];#t=new K(this,{context:io,subscribe:!0});get#e(){let o=this.#t.value;return o?.collapsible==="icon"&&o?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return f`<slot></slot>`}};var LB=v`
|
|
5689
5689
|
.Menu {
|
|
5690
5690
|
display: flex;
|
|
5691
5691
|
flex-direction: column;
|
|
@@ -5693,15 +5693,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
5693
5693
|
margin: 0;
|
|
5694
5694
|
padding: 0;
|
|
5695
5695
|
}
|
|
5696
|
-
`,
|
|
5696
|
+
`,qa=class extends b{static tagName="dui-sidebar-menu";static styles=[y,LB];render(){return f`
|
|
5697
5697
|
<ul class="Menu" role="list">
|
|
5698
5698
|
<slot></slot>
|
|
5699
5699
|
</ul>
|
|
5700
|
-
`}};var
|
|
5700
|
+
`}};var zB=v`
|
|
5701
5701
|
:host {
|
|
5702
5702
|
display: list-item;
|
|
5703
5703
|
}
|
|
5704
|
-
`,
|
|
5704
|
+
`,Pa=class extends b{static tagName="dui-sidebar-menu-item";static styles=[y,zB];render(){return f`<slot></slot>`}};var MB=v`
|
|
5705
5705
|
:host {
|
|
5706
5706
|
display: block;
|
|
5707
5707
|
}
|
|
@@ -5759,16 +5759,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
5759
5759
|
:host([disabled]) .Button {
|
|
5760
5760
|
pointer-events: none;
|
|
5761
5761
|
}
|
|
5762
|
-
`,
|
|
5762
|
+
`,CL,$L,SL,TL,_L,Ze,hE,uE,mE,fE,vm,mr,gE,bm,AL,RL,vE,tr=class extends(_L=b,TL=[u({type:Boolean,reflect:!0})],SL=[u({type:Boolean,reflect:!0})],$L=[u()],CL=[u()],_L){constructor(){super(...arguments);n(this,mr);n(this,hE,i(Ze,8,this,!1)),i(Ze,11,this);n(this,uE,i(Ze,12,this,!1)),i(Ze,15,this);n(this,mE,i(Ze,16,this,"")),i(Ze,19,this);n(this,fE,i(Ze,20,this)),i(Ze,23,this);n(this,vm,new K(this,{context:io,subscribe:!0}));n(this,bm,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 r(this,mr,gE)&&this.tooltip?f`
|
|
5763
5763
|
<dui-tooltip>
|
|
5764
5764
|
<dui-tooltip-trigger>
|
|
5765
|
-
${
|
|
5765
|
+
${h(this,mr,vE).call(this)}
|
|
5766
5766
|
</dui-tooltip-trigger>
|
|
5767
5767
|
<dui-tooltip-popup side="right">
|
|
5768
5768
|
${this.tooltip}
|
|
5769
5769
|
</dui-tooltip-popup>
|
|
5770
5770
|
</dui-tooltip>
|
|
5771
|
-
`:
|
|
5771
|
+
`:h(this,mr,vE).call(this)}};Ze=S(_L),hE=new WeakMap,uE=new WeakMap,mE=new WeakMap,fE=new WeakMap,vm=new WeakMap,mr=new WeakSet,gE=function(){let t=r(this,vm).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},bm=new WeakMap,AL=function(){return f`
|
|
5772
5772
|
<button
|
|
5773
5773
|
class="Button"
|
|
5774
5774
|
?disabled=${this.disabled}
|
|
@@ -5778,27 +5778,27 @@ label, legend, caption, figcaption, th, td {
|
|
|
5778
5778
|
<span class="Label"><slot></slot></span>
|
|
5779
5779
|
<span class="Suffix"><slot name="suffix"></slot></span>
|
|
5780
5780
|
</button>
|
|
5781
|
-
`},
|
|
5781
|
+
`},RL=function(){return f`
|
|
5782
5782
|
<a
|
|
5783
5783
|
class="Button"
|
|
5784
5784
|
href=${this.href??I}
|
|
5785
5785
|
aria-disabled=${this.disabled||I}
|
|
5786
5786
|
?data-active=${this.active}
|
|
5787
|
-
@click=${r(this,
|
|
5787
|
+
@click=${r(this,bm)}
|
|
5788
5788
|
>
|
|
5789
5789
|
<slot name="icon"></slot>
|
|
5790
5790
|
<span class="Label"><slot></slot></span>
|
|
5791
5791
|
<span class="Suffix"><slot name="suffix"></slot></span>
|
|
5792
5792
|
</a>
|
|
5793
|
-
`},
|
|
5793
|
+
`},vE=function(){let t=r(this,mr,gE);return f`
|
|
5794
5794
|
<div
|
|
5795
5795
|
class="Row"
|
|
5796
5796
|
?data-icon-collapsed=${t}
|
|
5797
5797
|
?data-active=${this.active}
|
|
5798
5798
|
>
|
|
5799
|
-
${this.href!==void 0?
|
|
5799
|
+
${this.href!==void 0?h(this,mr,RL).call(this):h(this,mr,AL).call(this)}
|
|
5800
5800
|
</div>
|
|
5801
|
-
`},d(
|
|
5801
|
+
`},d(Ze,4,"active",TL,tr,hE),d(Ze,4,"disabled",SL,tr,uE),d(Ze,4,"tooltip",$L,tr,mE),d(Ze,4,"href",CL,tr,fE),$(Ze,tr),g(tr,"tagName","dui-sidebar-menu-button"),g(tr,"styles",[y,MB]);var NB=v`
|
|
5802
5802
|
:host {
|
|
5803
5803
|
display: block;
|
|
5804
5804
|
}
|
|
@@ -5806,7 +5806,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5806
5806
|
.Separator {
|
|
5807
5807
|
/* Structural only — height and color from theme */
|
|
5808
5808
|
}
|
|
5809
|
-
`,
|
|
5809
|
+
`,ja=class extends b{static tagName="dui-sidebar-separator";static styles=[y,NB];render(){return f`<div class="Separator" role="separator"></div>`}};var DB=v`
|
|
5810
5810
|
:host {
|
|
5811
5811
|
display: flex;
|
|
5812
5812
|
flex-direction: column;
|
|
@@ -5816,7 +5816,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5816
5816
|
overflow: hidden;
|
|
5817
5817
|
container-type: size;
|
|
5818
5818
|
}
|
|
5819
|
-
`,
|
|
5819
|
+
`,Wa=class extends b{static tagName="dui-sidebar-inset";static styles=[y,DB];render(){return f`<slot></slot>`}};var HB=k`
|
|
5820
5820
|
/* ── Host: sticky full-viewport height ── */
|
|
5821
5821
|
/* Percentage heights on internal elements need a definite parent.
|
|
5822
5822
|
Using height: 100dvh + sticky keeps the sidebar pinned while
|
|
@@ -5914,11 +5914,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
5914
5914
|
box-shadow: var(--shadow-lg);
|
|
5915
5915
|
transition: transform var(--duration-normal) var(--ease-out-3);
|
|
5916
5916
|
}
|
|
5917
|
-
`,
|
|
5917
|
+
`,Ka=class extends Lo{static styles=[...Lo.styles,HB]};customElements.define(Ka.tagName,Ka);var BB=k``,Ga=class extends Ha{static styles=[...Ha.styles,BB]};customElements.define(Ga.tagName,Ga);var FB=k``,Ya=class extends Fa{static styles=[...Fa.styles,FB]};customElements.define(Ya.tagName,Ya);var VB=k`
|
|
5918
5918
|
:host {
|
|
5919
5919
|
padding: var(--sidebar-group-padding-y) 0;
|
|
5920
5920
|
}
|
|
5921
|
-
`,
|
|
5921
|
+
`,Xa=class extends Va{static styles=[...Va.styles,VB]};customElements.define(Xa.tagName,Xa);var UB=k`
|
|
5922
5922
|
:host {
|
|
5923
5923
|
margin-left: var(--sidebar-group-label-inset);
|
|
5924
5924
|
height: var(--component-height-sm);
|
|
@@ -5934,15 +5934,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
5934
5934
|
transition-duration: var(--duration-normal);
|
|
5935
5935
|
transition-timing-function: var(--ease-out-3);
|
|
5936
5936
|
}
|
|
5937
|
-
`,
|
|
5937
|
+
`,Ja=class extends Ua{static styles=[...Ua.styles,UB]};customElements.define(Ja.tagName,Ja);var qB=k`
|
|
5938
5938
|
:host {
|
|
5939
5939
|
margin-bottom: var(--sidebar-header-content-gap);
|
|
5940
5940
|
}
|
|
5941
|
-
`,
|
|
5941
|
+
`,Qa=class extends Ba{static styles=[...Ba.styles,qB]};customElements.define(Qa.tagName,Qa);var PB=k``,Za=class extends Wa{static styles=[...Wa.styles,PB]};customElements.define(Za.tagName,Za);var jB=k`
|
|
5942
5942
|
.Menu {
|
|
5943
5943
|
gap: var(--space-px);
|
|
5944
5944
|
}
|
|
5945
|
-
`,
|
|
5945
|
+
`,tl=class extends qa{static styles=[...qa.styles,jB]};customElements.define(tl.tagName,tl);var WB=k`
|
|
5946
5946
|
:host {
|
|
5947
5947
|
--smb-height: var(--component-height-md);
|
|
5948
5948
|
--smb-padding-x: var(--sidebar-button-inset);
|
|
@@ -6014,7 +6014,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6014
6014
|
font-weight: var(--font-weight-medium);
|
|
6015
6015
|
--icon-color: var(--sidebar-fg);
|
|
6016
6016
|
}
|
|
6017
|
-
`,
|
|
6017
|
+
`,el=class extends tr{static styles=[...tr.styles,WB]};customElements.define(el.tagName,el);var KB=k``,rl=class extends Pa{static styles=[...Pa.styles,KB]};customElements.define(rl.tagName,rl);var GB=k`
|
|
6018
6018
|
:host {
|
|
6019
6019
|
--sidebar-width: var(--space-64);
|
|
6020
6020
|
--sidebar-width-mobile: var(--space-72);
|
|
@@ -6032,19 +6032,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
6032
6032
|
--sidebar-muted-fg: var(--text-2);
|
|
6033
6033
|
--sidebar-ring: var(--accent);
|
|
6034
6034
|
}
|
|
6035
|
-
`,
|
|
6035
|
+
`,ol=class extends Ee{static styles=[...Ee.styles,GB]};customElements.define(ol.tagName,ol);var YB=k`
|
|
6036
6036
|
.Separator {
|
|
6037
6037
|
height: var(--border-width-thin);
|
|
6038
6038
|
margin: var(--space-2) var(--space-2);
|
|
6039
6039
|
background: var(--sidebar-separator);
|
|
6040
6040
|
}
|
|
6041
|
-
`,
|
|
6041
|
+
`,sl=class extends ja{static styles=[...ja.styles,YB]};customElements.define(sl.tagName,sl);var XB=k`
|
|
6042
6042
|
dui-button {
|
|
6043
6043
|
--button-width: var(--button-height);
|
|
6044
6044
|
--button-padding-x: 0;
|
|
6045
6045
|
--button-gap: 0;
|
|
6046
6046
|
}
|
|
6047
|
-
`,
|
|
6047
|
+
`,il=class extends Da{static styles=[...Da.styles,XB]};customElements.define(il.tagName,il);var al=O("value-change",{bubbles:!0,composed:!0}),hc=O("value-committed",{bubbles:!0,composed:!0}),JB=v`
|
|
6048
6048
|
:host {
|
|
6049
6049
|
display: block;
|
|
6050
6050
|
}
|
|
@@ -6135,27 +6135,27 @@ label, legend, caption, figcaption, th, td {
|
|
|
6135
6135
|
white-space: nowrap;
|
|
6136
6136
|
border: 0;
|
|
6137
6137
|
}
|
|
6138
|
-
`,
|
|
6138
|
+
`,IL,OL,LL,zL,ML,NL,DL,HL,BL,FL,VL,uc,ht,bE,xE,yE,wE,kE,EE,CE,$E,SE,TE,_E,xm,AE,Rt,UL,qL,PL,nl,RE,ym,ll,dl,wm,km,Em,Qt=class extends(VL=b,FL=[u({type:Number})],BL=[u({type:Number})],HL=[u({type:Number})],DL=[u({type:Number})],NL=[u({type:Boolean,reflect:!0})],ML=[u()],zL=[u({reflect:!0})],LL=[u({reflect:!0})],OL=[u({type:Number})],IL=[E()],VL){constructor(){super();n(this,Rt);n(this,uc);n(this,bE,i(ht,8,this,0)),i(ht,11,this);n(this,xE,i(ht,12,this,0)),i(ht,15,this);n(this,yE,i(ht,16,this,100)),i(ht,19,this);n(this,wE,i(ht,20,this,1)),i(ht,23,this);n(this,kE,i(ht,24,this,!1)),i(ht,27,this);n(this,EE,i(ht,28,this,"")),i(ht,31,this);n(this,CE,i(ht,32,this,"")),i(ht,35,this);n(this,$E,i(ht,36,this,"")),i(ht,39,this);n(this,SE,i(ht,40,this)),i(ht,43,this);n(this,TE,i(ht,44,this,!1)),i(ht,47,this);n(this,ym,t=>{if(this.disabled)return;t.preventDefault();let e=h(this,Rt,RE).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(al({value:e}))),document.addEventListener("pointermove",r(this,ll)),document.addEventListener("pointerup",r(this,dl))});n(this,ll,t=>{r(this,Rt,xm)||p(this,Rt,!0,AE);let e=h(this,Rt,RE).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(al({value:e})))});n(this,dl,()=>{let t=r(this,Rt,xm);p(this,Rt,!1,AE),document.removeEventListener("pointermove",r(this,ll)),document.removeEventListener("pointerup",r(this,dl)),this.dispatchEvent(hc({value:this.value}))});n(this,wm,t=>{if(this.disabled)return;let e=this.value,a=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),e=h(this,Rt,nl).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),e=h(this,Rt,nl).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),e=h(this,Rt,nl).call(this,this.value+a);break;case"PageDown":t.preventDefault(),e=h(this,Rt,nl).call(this,this.value-a);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(al({value:e})),this.dispatchEvent(hc({value:e})))});n(this,km,t=>{let e=t.target,a=parseFloat(e.value);!isNaN(a)&&a!==this.value&&(this.value=a,this.dispatchEvent(al({value:a})))});n(this,Em,()=>{this.dispatchEvent(hc({value:this.value}))});p(this,uc,this.attachInternals())}willUpdate(){r(this,uc).setFormValue(String(this.value))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",r(this,ll)),document.removeEventListener("pointerup",r(this,dl))}render(){return f`
|
|
6139
6139
|
<div
|
|
6140
6140
|
part="root"
|
|
6141
6141
|
role="group"
|
|
6142
6142
|
?data-disabled=${this.disabled}
|
|
6143
|
-
?data-dragging=${r(this,
|
|
6144
|
-
style="--slider-progress: ${r(this,
|
|
6145
|
-
@pointerdown=${r(this,
|
|
6143
|
+
?data-dragging=${r(this,Rt,xm)}
|
|
6144
|
+
style="--slider-progress: ${r(this,Rt,UL)}%"
|
|
6145
|
+
@pointerdown=${r(this,ym)}
|
|
6146
6146
|
>
|
|
6147
6147
|
<span part="label">${this.label}</span>
|
|
6148
6148
|
|
|
6149
6149
|
<div class="slider-row">
|
|
6150
6150
|
<div part="track">
|
|
6151
6151
|
<div part="indicator"></div>
|
|
6152
|
-
<span part="readout">${r(this,
|
|
6152
|
+
<span part="readout">${r(this,Rt,PL)}</span>
|
|
6153
6153
|
<span part="unit">${this.unit}</span>
|
|
6154
6154
|
</div>
|
|
6155
6155
|
<div
|
|
6156
6156
|
part="thumb"
|
|
6157
6157
|
tabindex=${this.disabled?-1:0}
|
|
6158
|
-
@keydown=${r(this,
|
|
6158
|
+
@keydown=${r(this,wm)}
|
|
6159
6159
|
></div>
|
|
6160
6160
|
</div>
|
|
6161
6161
|
|
|
@@ -6172,11 +6172,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
6172
6172
|
aria-valuemin=${this.min}
|
|
6173
6173
|
aria-valuemax=${this.max}
|
|
6174
6174
|
aria-label=${this.label||"Slider"}
|
|
6175
|
-
@input=${r(this,
|
|
6176
|
-
@change=${r(this,
|
|
6175
|
+
@input=${r(this,km)}
|
|
6176
|
+
@change=${r(this,Em)}
|
|
6177
6177
|
/>
|
|
6178
6178
|
</div>
|
|
6179
|
-
`}};
|
|
6179
|
+
`}};ht=S(VL),uc=new WeakMap,bE=new WeakMap,xE=new WeakMap,yE=new WeakMap,wE=new WeakMap,kE=new WeakMap,EE=new WeakMap,CE=new WeakMap,$E=new WeakMap,SE=new WeakMap,TE=new WeakMap,Rt=new WeakSet,UL=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},qL=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},PL=function(){let t=this.precision??r(this,Rt,qL);return this.value.toFixed(t)},nl=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},RE=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let a=e.getBoundingClientRect(),l=(t-a.left)/a.width,c=this.min+l*(this.max-this.min);return h(this,Rt,nl).call(this,c)},ym=new WeakMap,ll=new WeakMap,dl=new WeakMap,wm=new WeakMap,km=new WeakMap,Em=new WeakMap,d(ht,4,"value",FL,Qt,bE),d(ht,4,"min",BL,Qt,xE),d(ht,4,"max",HL,Qt,yE),d(ht,4,"step",DL,Qt,wE),d(ht,4,"disabled",NL,Qt,kE),d(ht,4,"name",ML,Qt,EE),d(ht,4,"label",zL,Qt,CE),d(ht,4,"unit",LL,Qt,$E),d(ht,4,"precision",OL,Qt,SE),_E=d(ht,20,"#dragging",IL,Rt,TE),xm=_E.get,AE=_E.set,$(ht,Qt),g(Qt,"tagName","dui-slider"),g(Qt,"formAssociated",!0),g(Qt,"styles",[y,JB]);var QB=k`
|
|
6180
6180
|
:host {
|
|
6181
6181
|
--slider-track-height: var(--space-1_5);
|
|
6182
6182
|
--slider-thumb-size: var(--space-4_5);
|
|
@@ -6297,7 +6297,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6297
6297
|
:host([variant="field"][disabled]) {
|
|
6298
6298
|
opacity: 0.5;
|
|
6299
6299
|
}
|
|
6300
|
-
`,
|
|
6300
|
+
`,cl=class extends Qt{static styles=[...Qt.styles,QB]};customElements.define(cl.tagName,cl);var ZB=qc`
|
|
6301
6301
|
<svg
|
|
6302
6302
|
part="svg"
|
|
6303
6303
|
viewBox="0 0 44 44"
|
|
@@ -6326,7 +6326,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6326
6326
|
/>
|
|
6327
6327
|
</circle>
|
|
6328
6328
|
</svg>
|
|
6329
|
-
`,
|
|
6329
|
+
`,t4=qc`
|
|
6330
6330
|
<svg
|
|
6331
6331
|
part="svg"
|
|
6332
6332
|
data-rotate
|
|
@@ -6349,7 +6349,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6349
6349
|
<path d="M2 12h4" />
|
|
6350
6350
|
<path d="m4.9 4.9 2.9 2.9" />
|
|
6351
6351
|
</svg>
|
|
6352
|
-
`,
|
|
6352
|
+
`,e4=qc`
|
|
6353
6353
|
<svg
|
|
6354
6354
|
part="svg"
|
|
6355
6355
|
data-rotate
|
|
@@ -6365,7 +6365,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6365
6365
|
>
|
|
6366
6366
|
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
6367
6367
|
</svg>
|
|
6368
|
-
`,
|
|
6368
|
+
`,r4=v`
|
|
6369
6369
|
:host {
|
|
6370
6370
|
display: block;
|
|
6371
6371
|
}
|
|
@@ -6384,7 +6384,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6384
6384
|
from { transform: rotate(0deg); }
|
|
6385
6385
|
to { transform: rotate(360deg); }
|
|
6386
6386
|
}
|
|
6387
|
-
`,
|
|
6387
|
+
`,jL,WL,Cm,IE,$m,KL,ao=class extends(WL=b,jL=[u({reflect:!0})],WL){constructor(){super(...arguments);n(this,$m);n(this,IE,i(Cm,8,this,"")),i(Cm,11,this)}render(){return f`${h(this,$m,KL).call(this)}`}};Cm=S(WL),IE=new WeakMap,$m=new WeakSet,KL=function(){switch(this.variant){case"lucide-loader":return t4;case"lucide-loader-circle":return e4;default:return ZB}},d(Cm,4,"variant",jL,ao,IE),$(Cm,ao),g(ao,"tagName","dui-spinner"),g(ao,"styles",[y,r4]);var o4=k`
|
|
6388
6388
|
:host {
|
|
6389
6389
|
--spinner-size: var(--component-height-xxs);
|
|
6390
6390
|
--spinner-color: currentColor;
|
|
@@ -6406,11 +6406,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
6406
6406
|
animation-duration: 3s;
|
|
6407
6407
|
}
|
|
6408
6408
|
}
|
|
6409
|
-
`,
|
|
6409
|
+
`,pl=class extends ao{static styles=[...ao.styles,o4]};customElements.define(pl.tagName,pl);var Sm=O("dui-action",{bubbles:!0,composed:!0}),s4=v`
|
|
6410
6410
|
:host {
|
|
6411
6411
|
display: inline-block;
|
|
6412
6412
|
}
|
|
6413
|
-
`,
|
|
6413
|
+
`,i4=v`
|
|
6414
6414
|
.Root {
|
|
6415
6415
|
display: inline-flex;
|
|
6416
6416
|
align-items: stretch;
|
|
@@ -6450,7 +6450,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6450
6450
|
justify-content: center;
|
|
6451
6451
|
flex-shrink: 0;
|
|
6452
6452
|
}
|
|
6453
|
-
`,
|
|
6453
|
+
`,n4=[v`
|
|
6454
6454
|
.Popup {
|
|
6455
6455
|
max-height: 240px;
|
|
6456
6456
|
overflow-y: auto;
|
|
@@ -6465,7 +6465,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6465
6465
|
.Popup[data-ending-style] {
|
|
6466
6466
|
opacity: 0;
|
|
6467
6467
|
}
|
|
6468
|
-
`],
|
|
6468
|
+
`],GL,YL,XL,JL,QL,ZL,tz,Zt,OE,LE,zE,ME,NE,DE,HE,gi,is,qt,mc,It,BE,Tm,_m,Am,Rm,Im,Om,ez,Be=class extends(tz=b,ZL=[u({reflect:!0})],QL=[u({reflect:!0})],JL=[u({reflect:!0})],XL=[u({attribute:"popup-min-width"})],YL=[u({type:Boolean,reflect:!0})],GL=[E()],tz){constructor(){super(...arguments);n(this,qt);n(this,OE,i(Zt,8,this,"")),i(Zt,11,this);n(this,LE,i(Zt,12,this,"")),i(Zt,15,this);n(this,zE,i(Zt,16,this,"")),i(Zt,19,this);n(this,ME,i(Zt,20,this,"var(--space-28)")),i(Zt,23,this);n(this,NE,i(Zt,24,this,!1)),i(Zt,27,this);n(this,DE,i(Zt,28,this,-1)),i(Zt,31,this);n(this,mc,`split-menu-${crypto.randomUUID().slice(0,8)}`);n(this,It,new he(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:n4,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{p(this,qt,-1,is)},onClose:()=>{p(this,qt,-1,is)},renderPopup:t=>f`
|
|
6469
6469
|
<div
|
|
6470
6470
|
class="Popup"
|
|
6471
6471
|
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
@@ -6474,21 +6474,21 @@ label, legend, caption, figcaption, th, td {
|
|
|
6474
6474
|
>
|
|
6475
6475
|
<div
|
|
6476
6476
|
class="Menu"
|
|
6477
|
-
id="${r(this,
|
|
6477
|
+
id="${r(this,mc)}"
|
|
6478
6478
|
role="menu"
|
|
6479
|
-
@click="${r(this,
|
|
6480
|
-
@mousemove="${r(this,
|
|
6479
|
+
@click="${r(this,Im)}"
|
|
6480
|
+
@mousemove="${r(this,Om)}"
|
|
6481
6481
|
></div>
|
|
6482
6482
|
</div>
|
|
6483
|
-
`}));n(this,
|
|
6483
|
+
`}));n(this,Tm,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(Sm({}))});n(this,_m,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(Sm({})))});n(this,Am,t=>{t.stopPropagation(),!this.disabled&&(r(this,It).isOpen?r(this,It).close():r(this,It).open())});n(this,Rm,t=>{if(this.disabled)return;let e=r(this,qt,BE);switch(t.key){case"Enter":case" ":{if(r(this,It).isOpen&&r(this,qt,gi)>=0){t.preventDefault();let a=e[r(this,qt,gi)];a&&!a.disabled&&(a.click(),r(this,It).close())}else r(this,It).isOpen||(t.preventDefault(),r(this,It).open());break}case"ArrowDown":{if(t.preventDefault(),!r(this,It).isOpen)r(this,It).open();else{let a=r(this,qt,gi)+1;for(;a<e.length&&e[a]?.disabled;)a++;a<e.length&&p(this,qt,a,is)}break}case"ArrowUp":{if(t.preventDefault(),!r(this,It).isOpen)r(this,It).open();else{let a=r(this,qt,gi)-1;for(;a>=0&&e[a]?.disabled;)a--;a>=0&&p(this,qt,a,is)}break}case"Home":{if(r(this,It).isOpen){t.preventDefault();let a=e.findIndex(l=>!l.disabled);a>=0&&p(this,qt,a,is)}break}case"End":{if(r(this,It).isOpen){t.preventDefault();for(let a=e.length-1;a>=0;a--)if(!e[a]?.disabled){p(this,qt,a,is);break}}break}case"Escape":{r(this,It).isOpen&&(t.preventDefault(),r(this,It).close(),h(this,qt,ez).call(this));break}case"Tab":{r(this,It).isOpen&&r(this,It).close();break}}});n(this,Im,t=>{let e=t.composedPath().find(a=>a instanceof HTMLElement&&a.matches(Me.tagName));e&&!e.disabled&&r(this,It).close()});n(this,Om,()=>{r(this,qt,gi)>=0&&p(this,qt,-1,is)})}updated(){let t=r(this,qt,BE);for(let e=0;e<t.length;e++)e===r(this,qt,gi)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
|
|
6484
6484
|
<div class="Root" part="root">
|
|
6485
6485
|
<button
|
|
6486
6486
|
class="Action"
|
|
6487
6487
|
part="action"
|
|
6488
6488
|
type="button"
|
|
6489
6489
|
?disabled="${this.disabled}"
|
|
6490
|
-
@click="${r(this,
|
|
6491
|
-
@keydown="${r(this,
|
|
6490
|
+
@click="${r(this,Tm)}"
|
|
6491
|
+
@keydown="${r(this,_m)}"
|
|
6492
6492
|
>
|
|
6493
6493
|
<slot></slot>
|
|
6494
6494
|
</button>
|
|
@@ -6501,11 +6501,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
6501
6501
|
type="button"
|
|
6502
6502
|
?disabled="${this.disabled}"
|
|
6503
6503
|
aria-haspopup="menu"
|
|
6504
|
-
aria-expanded="${r(this,
|
|
6505
|
-
aria-controls="${r(this,
|
|
6506
|
-
?data-open="${r(this,
|
|
6507
|
-
@click="${r(this,
|
|
6508
|
-
@keydown="${r(this,
|
|
6504
|
+
aria-expanded="${r(this,It).isOpen}"
|
|
6505
|
+
aria-controls="${r(this,mc)}"
|
|
6506
|
+
?data-open="${r(this,It).isOpen||I}"
|
|
6507
|
+
@click="${r(this,Am)}"
|
|
6508
|
+
@keydown="${r(this,Rm)}"
|
|
6509
6509
|
>
|
|
6510
6510
|
<slot name="icon">
|
|
6511
6511
|
<dui-icon>
|
|
@@ -6516,7 +6516,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6516
6516
|
</slot>
|
|
6517
6517
|
</button>
|
|
6518
6518
|
</div>
|
|
6519
|
-
`}};
|
|
6519
|
+
`}};Zt=S(tz),OE=new WeakMap,LE=new WeakMap,zE=new WeakMap,ME=new WeakMap,NE=new WeakMap,DE=new WeakMap,qt=new WeakSet,mc=new WeakMap,It=new WeakMap,BE=function(){return[...(r(this,It).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},Tm=new WeakMap,_m=new WeakMap,Am=new WeakMap,Rm=new WeakMap,Im=new WeakMap,Om=new WeakMap,ez=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},d(Zt,4,"variant",ZL,Be,OE),d(Zt,4,"appearance",QL,Be,LE),d(Zt,4,"size",JL,Be,zE),d(Zt,4,"popupMinWidth",XL,Be,ME),d(Zt,4,"disabled",YL,Be,NE),HE=d(Zt,20,"#highlightedIndex",GL,qt,DE),gi=HE.get,is=HE.set,$(Zt,Be),g(Be,"tagName","dui-split-button"),g(Be,"styles",[y,s4,i4]);var a4=k`
|
|
6520
6520
|
/* =================================================================
|
|
6521
6521
|
* Reuses the button's two-axis variant system:
|
|
6522
6522
|
* variant → semantic intent (neutral, primary, danger)
|
|
@@ -6827,7 +6827,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6827
6827
|
.Menu {
|
|
6828
6828
|
padding: var(--space-1);
|
|
6829
6829
|
}
|
|
6830
|
-
`,
|
|
6830
|
+
`,hl=class extends Be{static styles=[...Be.styles,a4]};customElements.define(hl.tagName,hl);var iC=O("value-change",{bubbles:!0,composed:!0}),fc=O("value-committed",{bubbles:!0,composed:!0}),l4=v`
|
|
6831
6831
|
:host {
|
|
6832
6832
|
display: block;
|
|
6833
6833
|
}
|
|
@@ -6880,7 +6880,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6880
6880
|
width: 0;
|
|
6881
6881
|
height: 0;
|
|
6882
6882
|
}
|
|
6883
|
-
`,
|
|
6883
|
+
`,rz,oz,sz,iz,nz,az,lz,dz,cz,pz,hz,uz,mz,rt,FE,VE,UE,qE,PE,jE,WE,KE,GE,YE,XE,JE,fz,tC,W,QE,ZE,eC,rC,lo,gz,vz,ul,oC,ml,gc,vc,sC,Lm,zm,Mm,Nm,Dm,Wt=class extends(mz=b,uz=[u({type:Number})],hz=[u({type:Number,attribute:"default-value"})],pz=[u({type:Number})],cz=[u({type:Number})],dz=[u({type:Number})],lz=[u({type:Number,attribute:"large-step"})],az=[u({type:Boolean,reflect:!0})],nz=[u({type:Boolean,reflect:!0,attribute:"read-only"})],iz=[u({type:Boolean})],sz=[u()],oz=[E()],rz=[E()],mz){constructor(){super(...arguments);n(this,W);n(this,FE,i(rt,8,this)),i(rt,11,this);n(this,VE,i(rt,12,this)),i(rt,15,this);n(this,UE,i(rt,16,this)),i(rt,19,this);n(this,qE,i(rt,20,this)),i(rt,23,this);n(this,PE,i(rt,24,this,1)),i(rt,27,this);n(this,jE,i(rt,28,this,10)),i(rt,31,this);n(this,WE,i(rt,32,this,!1)),i(rt,35,this);n(this,KE,i(rt,36,this,!1)),i(rt,39,this);n(this,GE,i(rt,40,this,!1)),i(rt,43,this);n(this,YE,i(rt,44,this)),i(rt,47,this);n(this,XE,i(rt,48,this)),i(rt,51,this);n(this,QE,i(rt,52,this,"")),i(rt,55,this);n(this,gc,t=>{if(this.disabled||this.readOnly)return;let e=r(this,W,lo)??this.min??0;h(this,W,ml).call(this,e+t)});n(this,vc,t=>{if(this.disabled||this.readOnly)return;let e=r(this,W,lo)??this.max??0;h(this,W,ml).call(this,e-t)});n(this,Lm,t=>{p(this,W,t.target.value,rC)});n(this,zm,()=>{h(this,W,sC).call(this)});n(this,Mm,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),r(this,gc).call(this,t.shiftKey?this.largeStep:this.step),h(this,W,ul).call(this);break;case"ArrowDown":t.preventDefault(),r(this,vc).call(this,t.shiftKey?this.largeStep:this.step),h(this,W,ul).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),h(this,W,ml).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),h(this,W,ml).call(this,this.max));break;case"Enter":h(this,W,sC).call(this);break}});n(this,Nm,()=>{r(this,vc).call(this,this.step);let t=r(this,W,lo);t!==void 0&&this.dispatchEvent(fc({value:t}))});n(this,Dm,()=>{r(this,gc).call(this,this.step);let t=r(this,W,lo);t!==void 0&&this.dispatchEvent(fc({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,W,h(this,W,oC).call(this,this.defaultValue),tC),h(this,W,ul).call(this)}willUpdate(){h(this,W,ul).call(this)}render(){let t=r(this,W,lo);return f`
|
|
6884
6884
|
<div
|
|
6885
6885
|
part="root"
|
|
6886
6886
|
?data-disabled="${this.disabled}"
|
|
@@ -6890,8 +6890,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
6890
6890
|
type="button"
|
|
6891
6891
|
tabindex="-1"
|
|
6892
6892
|
aria-label="Decrease"
|
|
6893
|
-
?disabled="${this.disabled||this.readOnly||!r(this,
|
|
6894
|
-
@click="${r(this,
|
|
6893
|
+
?disabled="${this.disabled||this.readOnly||!r(this,W,gz)}"
|
|
6894
|
+
@click="${r(this,Nm)}"
|
|
6895
6895
|
>
|
|
6896
6896
|
<slot name="decrement">−</slot>
|
|
6897
6897
|
</button>
|
|
@@ -6899,31 +6899,31 @@ label, legend, caption, figcaption, th, td {
|
|
|
6899
6899
|
part="input"
|
|
6900
6900
|
type="text"
|
|
6901
6901
|
inputmode="decimal"
|
|
6902
|
-
.value="${
|
|
6902
|
+
.value="${Nr(r(this,W,eC))}"
|
|
6903
6903
|
?disabled="${this.disabled}"
|
|
6904
6904
|
?readonly="${this.readOnly}"
|
|
6905
6905
|
?required="${this.required}"
|
|
6906
|
-
@input="${r(this,
|
|
6907
|
-
@keydown="${r(this,
|
|
6908
|
-
@blur="${r(this,
|
|
6906
|
+
@input="${r(this,Lm)}"
|
|
6907
|
+
@keydown="${r(this,Mm)}"
|
|
6908
|
+
@blur="${r(this,zm)}"
|
|
6909
6909
|
/>
|
|
6910
6910
|
<button
|
|
6911
6911
|
part="increment"
|
|
6912
6912
|
type="button"
|
|
6913
6913
|
tabindex="-1"
|
|
6914
6914
|
aria-label="Increase"
|
|
6915
|
-
?disabled="${this.disabled||this.readOnly||!r(this,
|
|
6916
|
-
@click="${r(this,
|
|
6915
|
+
?disabled="${this.disabled||this.readOnly||!r(this,W,vz)}"
|
|
6916
|
+
@click="${r(this,Dm)}"
|
|
6917
6917
|
>
|
|
6918
6918
|
<slot name="increment">+</slot>
|
|
6919
6919
|
</button>
|
|
6920
|
-
${this.name?
|
|
6920
|
+
${this.name?f`<input
|
|
6921
6921
|
type="hidden"
|
|
6922
6922
|
name="${this.name}"
|
|
6923
6923
|
.value="${String(t??"")}"
|
|
6924
6924
|
/>`:I}
|
|
6925
6925
|
</div>
|
|
6926
|
-
`}};
|
|
6926
|
+
`}};rt=S(mz),FE=new WeakMap,VE=new WeakMap,UE=new WeakMap,qE=new WeakMap,PE=new WeakMap,jE=new WeakMap,WE=new WeakMap,KE=new WeakMap,GE=new WeakMap,YE=new WeakMap,XE=new WeakMap,W=new WeakSet,QE=new WeakMap,lo=function(){return this.value??r(this,W,fz)},gz=function(){let t=r(this,W,lo);return t===void 0?!0:this.min===void 0||t>this.min},vz=function(){let t=r(this,W,lo);return t===void 0?!0:this.max===void 0||t<this.max},ul=function(){let t=r(this,W,lo);p(this,W,t!==void 0?String(t):"",rC)},oC=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},ml=function(t){let e=h(this,W,oC).call(this,t);this.value===void 0&&p(this,W,e,tC),this.dispatchEvent(iC({value:e}))},gc=new WeakMap,vc=new WeakMap,sC=function(){let t=parseFloat(r(this,W,eC));Number.isNaN(t)?h(this,W,ul).call(this):h(this,W,ml).call(this,t);let e=r(this,W,lo);e!==void 0&&this.dispatchEvent(fc({value:e}))},Lm=new WeakMap,zm=new WeakMap,Mm=new WeakMap,Nm=new WeakMap,Dm=new WeakMap,d(rt,4,"value",uz,Wt,FE),d(rt,4,"defaultValue",hz,Wt,VE),d(rt,4,"min",pz,Wt,UE),d(rt,4,"max",cz,Wt,qE),d(rt,4,"step",dz,Wt,PE),d(rt,4,"largeStep",lz,Wt,jE),d(rt,4,"disabled",az,Wt,WE),d(rt,4,"readOnly",nz,Wt,KE),d(rt,4,"required",iz,Wt,GE),d(rt,4,"name",sz,Wt,YE),JE=d(rt,20,"#internalValue",oz,W,XE),fz=JE.get,tC=JE.set,ZE=d(rt,20,"#inputText",rz,W,QE),eC=ZE.get,rC=ZE.set,$(rt,Wt),g(Wt,"tagName","dui-stepper"),g(Wt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Wt,"styles",[y,l4]);var d4=k`
|
|
6927
6927
|
[part="root"] {
|
|
6928
6928
|
border: var(--border-width-thin) solid var(--border);
|
|
6929
6929
|
border-radius: var(--radius-md);
|
|
@@ -6990,7 +6990,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6990
6990
|
[part="increment"]:disabled {
|
|
6991
6991
|
opacity: 0.4;
|
|
6992
6992
|
}
|
|
6993
|
-
`,
|
|
6993
|
+
`,fl=class extends Wt{static styles=[...Wt.styles,d4]};customElements.define(fl.tagName,fl);var bC=O("checked-change",{bubbles:!0,composed:!0}),c4=v`
|
|
6994
6994
|
:host {
|
|
6995
6995
|
display: inline-flex;
|
|
6996
6996
|
align-items: start;
|
|
@@ -7024,7 +7024,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7024
7024
|
transform: translateX(var(--switch-checked-offset, 0));
|
|
7025
7025
|
}
|
|
7026
7026
|
|
|
7027
|
-
`,
|
|
7027
|
+
`,bz,xz,yz,wz,kz,Ez,Cz,$z,Sz,Tz,bc,St,nC,aC,lC,dC,cC,pC,hC,uC,mC,fC,_z,gC,ge,Hm,vC,Az,xc,yc,Bm,ne=class extends(Tz=b,Sz=[u({type:Boolean,reflect:!0})],$z=[u({type:Boolean,attribute:"default-checked"})],Cz=[u({type:Boolean,reflect:!0})],Ez=[u({type:Boolean,reflect:!0,attribute:"read-only"})],kz=[u({type:Boolean,reflect:!0})],wz=[u()],yz=[u()],xz=[u({attribute:"unchecked-value"})],bz=[E()],Tz){constructor(){super();n(this,ge);n(this,bc);n(this,nC,i(St,8,this)),i(St,11,this);n(this,aC,i(St,12,this,!1)),i(St,15,this);n(this,lC,i(St,16,this,!1)),i(St,19,this);n(this,dC,i(St,20,this,!1)),i(St,23,this);n(this,cC,i(St,24,this,!1)),i(St,27,this);n(this,pC,i(St,28,this)),i(St,31,this);n(this,hC,i(St,32,this,"on")),i(St,35,this);n(this,uC,i(St,36,this,"")),i(St,39,this);n(this,mC,i(St,40,this,!1)),i(St,43,this);n(this,xc,t=>{r(this,yc).call(this)});n(this,yc,()=>{if(r(this,ge,vC)||this.readOnly)return;let t=!r(this,ge,Hm);this.checked===void 0&&p(this,ge,t,gC),this.dispatchEvent(bC({checked:t}))});n(this,Bm,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),r(this,yc).call(this))});p(this,bc,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&p(this,ge,!0,gC),this.addEventListener("click",r(this,xc))}willUpdate(){h(this,ge,Az).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,xc))}render(){let t=r(this,ge,Hm),e=r(this,ge,vC);return f`
|
|
7028
7028
|
<span
|
|
7029
7029
|
part="root"
|
|
7030
7030
|
role="switch"
|
|
@@ -7038,12 +7038,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
7038
7038
|
?data-disabled="${e}"
|
|
7039
7039
|
?data-readonly="${this.readOnly}"
|
|
7040
7040
|
?data-required="${this.required}"
|
|
7041
|
-
@keydown="${r(this,
|
|
7041
|
+
@keydown="${r(this,Bm)}"
|
|
7042
7042
|
>
|
|
7043
7043
|
<span part="thumb"></span>
|
|
7044
7044
|
</span>
|
|
7045
7045
|
<slot></slot>
|
|
7046
|
-
`}};
|
|
7046
|
+
`}};St=S(Tz),bc=new WeakMap,nC=new WeakMap,aC=new WeakMap,lC=new WeakMap,dC=new WeakMap,cC=new WeakMap,pC=new WeakMap,hC=new WeakMap,uC=new WeakMap,mC=new WeakMap,ge=new WeakSet,Hm=function(){return this.checked??r(this,ge,_z)},vC=function(){return this.disabled},Az=function(){let t=r(this,ge,Hm)?this.value:this.uncheckedValue;r(this,bc).setFormValue(t||null)},xc=new WeakMap,yc=new WeakMap,Bm=new WeakMap,d(St,4,"checked",Sz,ne,nC),d(St,4,"defaultChecked",$z,ne,aC),d(St,4,"disabled",Cz,ne,lC),d(St,4,"readOnly",Ez,ne,dC),d(St,4,"required",kz,ne,cC),d(St,4,"name",wz,ne,pC),d(St,4,"value",yz,ne,hC),d(St,4,"uncheckedValue",xz,ne,uC),fC=d(St,20,"#internalChecked",bz,ge,mC),_z=fC.get,gC=fC.set,$(St,ne),g(ne,"tagName","dui-switch"),g(ne,"formAssociated",!0),g(ne,"styles",[y,c4]);var p4=k`
|
|
7047
7047
|
:host {
|
|
7048
7048
|
--switch-width: var(--space-9);
|
|
7049
7049
|
--switch-height: var(--space-5);
|
|
@@ -7113,7 +7113,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7113
7113
|
[part="root"][data-checked] [part="thumb"] {
|
|
7114
7114
|
background: oklch(from var(--accent) 0.98 0.01 h);
|
|
7115
7115
|
}
|
|
7116
|
-
`,
|
|
7116
|
+
`,gl=class extends ne{static styles=[...ne.styles,p4]};customElements.define(gl.tagName,gl);var ns=Symbol("dui-tabs");var TC=O("value-change",{bubbles:!0,composed:!0}),h4=v`
|
|
7117
7117
|
:host {
|
|
7118
7118
|
display: block;
|
|
7119
7119
|
}
|
|
@@ -7130,11 +7130,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7130
7130
|
:host([controls="footer"]) [part="root"] {
|
|
7131
7131
|
flex-direction: column-reverse;
|
|
7132
7132
|
}
|
|
7133
|
-
`,
|
|
7133
|
+
`,Rz,Iz,Oz,Lz,zz,Mz,Nz,te,xC,yC,wC,kC,EC,CC,Dz,SC,_r,Vm,Um,$C,Fm,Fe=class extends(Nz=b,Mz=[u()],zz=[u({attribute:"default-value"})],Lz=[u({reflect:!0})],Oz=[u({reflect:!0})],Iz=[E()],Rz=[vt({context:ns}),E()],Nz){constructor(){super(...arguments);n(this,_r);n(this,xC,i(te,8,this)),i(te,11,this);n(this,yC,i(te,12,this)),i(te,15,this);n(this,wC,i(te,16,this,"horizontal")),i(te,19,this);n(this,kC,i(te,20,this,"header")),i(te,23,this);n(this,EC,i(te,24,this)),i(te,27,this);n(this,Vm,()=>this.value??r(this,_r,Dz));n(this,Um,t=>{this.value===void 0&&p(this,_r,t,SC),this.dispatchEvent(TC(t))});n(this,$C,i(te,28,this,h(this,_r,Fm).call(this))),i(te,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,_r,this.defaultValue,SC),this._ctx=h(this,_r,Fm).call(this)}willUpdate(){this._ctx=h(this,_r,Fm).call(this)}render(){return f`
|
|
7134
7134
|
<div part="root" data-orientation=${this.orientation}>
|
|
7135
7135
|
<slot></slot>
|
|
7136
7136
|
</div>
|
|
7137
|
-
`}};
|
|
7137
|
+
`}};te=S(Nz),xC=new WeakMap,yC=new WeakMap,wC=new WeakMap,kC=new WeakMap,EC=new WeakMap,_r=new WeakSet,Vm=new WeakMap,Um=new WeakMap,$C=new WeakMap,Fm=function(){return{value:r(this,Vm).call(this),orientation:this.orientation,select:r(this,Um)}},d(te,4,"value",Mz,Fe,xC),d(te,4,"defaultValue",zz,Fe,yC),d(te,4,"orientation",Lz,Fe,wC),d(te,4,"controls",Oz,Fe,kC),CC=d(te,20,"#internalValue",Iz,_r,EC),Dz=CC.get,SC=CC.set,d(te,4,"_ctx",Rz,Fe,$C),$(te,Fe),g(Fe,"tagName","dui-tabs"),g(Fe,"styles",[y,h4]);var u4=v`
|
|
7138
7138
|
:host {
|
|
7139
7139
|
display: block;
|
|
7140
7140
|
}
|
|
@@ -7148,11 +7148,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7148
7148
|
[part="list"][data-orientation="vertical"] {
|
|
7149
7149
|
flex-direction: column;
|
|
7150
7150
|
}
|
|
7151
|
-
`,
|
|
7151
|
+
`,Hz,Bz,qm,_C,vl,bl,Pm,co=class extends(Bz=b,Hz=[Ot({context:ns,subscribe:!0})],Bz){constructor(){super(...arguments);n(this,bl);n(this,_C,i(qm,8,this)),i(qm,11,this);n(this,vl)}connectedCallback(){super.connectedCallback(),p(this,vl,new ResizeObserver(()=>{h(this,bl,Pm).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),r(this,vl)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&r(this,vl)?.observe(t),h(this,bl,Pm).call(this)}updated(){h(this,bl,Pm).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
|
|
7152
7152
|
<div part="list" role="tablist" data-orientation=${t}>
|
|
7153
7153
|
<slot></slot>
|
|
7154
7154
|
</div>
|
|
7155
|
-
`}};
|
|
7155
|
+
`}};qm=S(Bz),_C=new WeakMap,vl=new WeakMap,bl=new WeakSet,Pm=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(c=>c.tagName==="DUI-TAB"&&c.getAttribute("value")===this._ctx?.value);if(l){let c=t.getBoundingClientRect(),m=l.getBoundingClientRect(),x=m.left-c.left,C=m.width;t.style.setProperty("--active-tab-left",`${x}px`),t.style.setProperty("--active-tab-width",`${C}px`)}},d(qm,4,"_ctx",Hz,co,_C),$(qm,co),g(co,"tagName","dui-tabs-list"),g(co,"styles",[y,u4]);var m4=v`
|
|
7156
7156
|
:host {
|
|
7157
7157
|
display: block;
|
|
7158
7158
|
}
|
|
@@ -7176,7 +7176,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7176
7176
|
[part="tab"][data-disabled] {
|
|
7177
7177
|
cursor: not-allowed;
|
|
7178
7178
|
}
|
|
7179
|
-
`,
|
|
7179
|
+
`,Fz,Vz,Uz,qz,po,AC,RC,IC,jm,Pz,Wm,Km,fr=class extends(qz=b,Uz=[u()],Vz=[u({type:Boolean,reflect:!0})],Fz=[Ot({context:ns,subscribe:!0})],qz){constructor(){super(...arguments);n(this,jm);n(this,AC,i(po,8,this,"")),i(po,11,this);n(this,RC,i(po,12,this,!1)),i(po,15,this);n(this,IC,i(po,16,this)),i(po,19,this);n(this,Wm,()=>{this.disabled||this._ctx?.select(this.value)});n(this,Km,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=r(this,jm,Pz);return f`
|
|
7180
7180
|
<button
|
|
7181
7181
|
part="tab"
|
|
7182
7182
|
role="tab"
|
|
@@ -7185,12 +7185,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
7185
7185
|
?data-disabled=${this.disabled}
|
|
7186
7186
|
?disabled=${this.disabled}
|
|
7187
7187
|
tabindex=${t?0:-1}
|
|
7188
|
-
@click=${r(this,
|
|
7189
|
-
@keydown=${r(this
|
|
7188
|
+
@click=${r(this,Wm)}
|
|
7189
|
+
@keydown=${r(this,Km)}
|
|
7190
7190
|
>
|
|
7191
7191
|
<slot></slot>
|
|
7192
7192
|
</button>
|
|
7193
|
-
`}};
|
|
7193
|
+
`}};po=S(qz),AC=new WeakMap,RC=new WeakMap,IC=new WeakMap,jm=new WeakSet,Pz=function(){return this._ctx?.value===this.value},Wm=new WeakMap,Km=new WeakMap,d(po,4,"value",Uz,fr,AC),d(po,4,"disabled",Vz,fr,RC),d(po,4,"_ctx",Fz,fr,IC),$(po,fr),g(fr,"tagName","dui-tab"),g(fr,"styles",[y,m4]);var f4=v`
|
|
7194
7194
|
:host {
|
|
7195
7195
|
display: block;
|
|
7196
7196
|
}
|
|
@@ -7207,11 +7207,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7207
7207
|
position: relative;
|
|
7208
7208
|
outline: 0;
|
|
7209
7209
|
}
|
|
7210
|
-
`,
|
|
7210
|
+
`,jz,Wz,Kz,Gz,ho,OC,LC,zC,wc,MC,gr=class extends(Gz=b,Kz=[u()],Wz=[u({type:Boolean,attribute:"keep-mounted"})],jz=[Ot({context:ns,subscribe:!0})],Gz){constructor(){super(...arguments);n(this,wc);n(this,OC,i(ho,8,this,"")),i(ho,11,this);n(this,LC,i(ho,12,this,!1)),i(ho,15,this);n(this,zC,i(ho,16,this)),i(ho,19,this)}willUpdate(){r(this,wc,MC)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=r(this,wc,MC);return f`
|
|
7211
7211
|
<div class="wrapper" ?hidden=${!t}>
|
|
7212
|
-
${t||this.keepMounted?
|
|
7212
|
+
${t||this.keepMounted?f`<div part="panel" role="tabpanel" tabindex="0"><slot></slot></div>`:I}
|
|
7213
7213
|
</div>
|
|
7214
|
-
`}};
|
|
7214
|
+
`}};ho=S(Gz),OC=new WeakMap,LC=new WeakMap,zC=new WeakMap,wc=new WeakSet,MC=function(){return this._ctx?.value===this.value},d(ho,4,"value",Kz,gr,OC),d(ho,4,"keepMounted",Wz,gr,LC),d(ho,4,"_ctx",jz,gr,zC),$(ho,gr),g(gr,"tagName","dui-tabs-panel"),g(gr,"styles",[y,f4]);var g4=v`
|
|
7215
7215
|
:host {
|
|
7216
7216
|
display: block;
|
|
7217
7217
|
position: absolute;
|
|
@@ -7223,7 +7223,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7223
7223
|
pointer-events: none;
|
|
7224
7224
|
transition-property: translate, width;
|
|
7225
7225
|
}
|
|
7226
|
-
`,
|
|
7226
|
+
`,xl=class extends b{static tagName="dui-tabs-indicator";static styles=[y,g4];render(){return f`<span part="indicator"></span>`}};var v4=k`
|
|
7227
7227
|
[part="tab"] {
|
|
7228
7228
|
color: var(--text-2);
|
|
7229
7229
|
font-size: var(--text-sm); line-height: var(--line-height-snug);
|
|
@@ -7255,7 +7255,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7255
7255
|
[part="tab"][data-disabled] {
|
|
7256
7256
|
opacity: 0.4;
|
|
7257
7257
|
}
|
|
7258
|
-
`,
|
|
7258
|
+
`,yl=class extends fr{static styles=[...fr.styles,v4]};customElements.define(yl.tagName,yl);var b4=k``,wl=class extends Fe{static styles=[...Fe.styles,b4]};customElements.define(wl.tagName,wl);var x4=k`
|
|
7259
7259
|
:host {
|
|
7260
7260
|
--tabs-indicator-height: var(--component-height-xs);
|
|
7261
7261
|
--tabs-indicator-radius: var(--radius-sm);
|
|
@@ -7269,7 +7269,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7269
7269
|
transition-duration: var(--tabs-indicator-duration);
|
|
7270
7270
|
transition-timing-function: var(--tabs-indicator-easing);
|
|
7271
7271
|
}
|
|
7272
|
-
`,
|
|
7272
|
+
`,kl=class extends xl{static styles=[...xl.styles,x4]};customElements.define(kl.tagName,kl);var y4=k`
|
|
7273
7273
|
:host {
|
|
7274
7274
|
--tabs-list-justify: start;
|
|
7275
7275
|
}
|
|
@@ -7285,7 +7285,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7285
7285
|
padding-inline: 0;
|
|
7286
7286
|
padding-block: var(--space-1);
|
|
7287
7287
|
}
|
|
7288
|
-
`,
|
|
7288
|
+
`,El=class extends co{static styles=[...co.styles,y4]};customElements.define(El.tagName,El);var w4=k`
|
|
7289
7289
|
:host {
|
|
7290
7290
|
--tabs-panel-padding: var(--space-3);
|
|
7291
7291
|
--tabs-panel-border-width: var(--border-width-thin);
|
|
@@ -7319,7 +7319,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7319
7319
|
var(--focus-ring-color);
|
|
7320
7320
|
border-radius: var(--radius-md);
|
|
7321
7321
|
}
|
|
7322
|
-
`,
|
|
7322
|
+
`,Cl=class extends gr{static styles=[...gr.styles,w4]};customElements.define(Cl.tagName,Cl);var KC=O("textarea-change",{bubbles:!0,composed:!0}),k4=v`
|
|
7323
7323
|
:host {
|
|
7324
7324
|
display: block;
|
|
7325
7325
|
}
|
|
@@ -7357,11 +7357,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7357
7357
|
[part="textarea"]:disabled {
|
|
7358
7358
|
cursor: not-allowed;
|
|
7359
7359
|
}
|
|
7360
|
-
`,
|
|
7360
|
+
`,Yz,Xz,Jz,Qz,Zz,tM,eM,rM,oM,sM,iM,nM,vi,nt,NC,DC,HC,BC,FC,VC,UC,qC,PC,jC,WC,Gm,aM,Ym,Pt=class extends(nM=b,iM=[u()],sM=[u()],oM=[u({type:Boolean,reflect:!0})],rM=[u({type:Boolean})],eM=[u({type:Boolean})],tM=[u({type:Number})],Zz=[u({type:Number,attribute:"minlength"})],Qz=[u({type:Number,attribute:"maxlength"})],Jz=[u()],Xz=[u()],Yz=[u({attribute:"max-height"})],nM){constructor(){super();n(this,Gm);n(this,vi);n(this,NC,i(nt,8,this,"")),i(nt,11,this);n(this,DC,i(nt,12,this,"")),i(nt,15,this);n(this,HC,i(nt,16,this,!1)),i(nt,19,this);n(this,BC,i(nt,20,this,!1)),i(nt,23,this);n(this,FC,i(nt,24,this,!1)),i(nt,27,this);n(this,VC,i(nt,28,this)),i(nt,31,this);n(this,UC,i(nt,32,this)),i(nt,35,this);n(this,qC,i(nt,36,this)),i(nt,39,this);n(this,PC,i(nt,40,this,"")),i(nt,43,this);n(this,jC,i(nt,44,this,"vertical")),i(nt,47,this);n(this,WC,i(nt,48,this)),i(nt,51,this);n(this,Ym,t=>{let e=t.target;this.value=e.value,r(this,vi).setFormValue(this.value),this.dispatchEvent(KC({value:this.value}))});p(this,vi,this.attachInternals())}willUpdate(){r(this,vi).setFormValue(this.value)}updated(){h(this,Gm,aM).call(this)}render(){let t=Un({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
|
|
7361
7361
|
<textarea
|
|
7362
7362
|
part="textarea"
|
|
7363
7363
|
style=${t}
|
|
7364
|
-
.value=${
|
|
7364
|
+
.value=${Nr(this.value)}
|
|
7365
7365
|
placeholder=${this.placeholder}
|
|
7366
7366
|
rows=${this.rows??""}
|
|
7367
7367
|
?disabled=${this.disabled}
|
|
@@ -7371,9 +7371,9 @@ label, legend, caption, figcaption, th, td {
|
|
|
7371
7371
|
maxlength=${this.maxLength??""}
|
|
7372
7372
|
name=${this.name}
|
|
7373
7373
|
data-resize=${this.resize}
|
|
7374
|
-
@input=${r(this,
|
|
7374
|
+
@input=${r(this,Ym)}
|
|
7375
7375
|
></textarea>
|
|
7376
|
-
`}};
|
|
7376
|
+
`}};nt=S(nM),vi=new WeakMap,NC=new WeakMap,DC=new WeakMap,HC=new WeakMap,BC=new WeakMap,FC=new WeakMap,VC=new WeakMap,UC=new WeakMap,qC=new WeakMap,PC=new WeakMap,jC=new WeakMap,WC=new WeakMap,Gm=new WeakSet,aM=function(){let t=this.shadowRoot?.querySelector("textarea");t&&r(this,vi).setValidity(t.validity,t.validationMessage,t)},Ym=new WeakMap,d(nt,4,"value",iM,Pt,NC),d(nt,4,"placeholder",sM,Pt,DC),d(nt,4,"disabled",oM,Pt,HC),d(nt,4,"required",rM,Pt,BC),d(nt,4,"readonly",eM,Pt,FC),d(nt,4,"rows",tM,Pt,VC),d(nt,4,"minLength",Zz,Pt,UC),d(nt,4,"maxLength",Qz,Pt,qC),d(nt,4,"name",Jz,Pt,PC),d(nt,4,"resize",Xz,Pt,jC),d(nt,4,"maxHeight",Yz,Pt,WC),$(nt,Pt),g(Pt,"tagName","dui-textarea"),g(Pt,"formAssociated",!0),g(Pt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Pt,"styles",[y,k4]);var E4=k`
|
|
7377
7377
|
:host {
|
|
7378
7378
|
--font-size: var(--text-sm);
|
|
7379
7379
|
}
|
|
@@ -7448,7 +7448,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7448
7448
|
:host([variant="ghost"]) [part="textarea"]:focus-visible {
|
|
7449
7449
|
box-shadow: none;
|
|
7450
7450
|
}
|
|
7451
|
-
|
|
7451
|
+
`,$l=class extends Pt{static styles=[...Pt.styles,E4]};customElements.define($l.tagName,$l);var Xm=Symbol("dui-toggle-group");var s$=O("pressed-change",{bubbles:!0,composed:!0}),C4=v`
|
|
7452
7452
|
:host {
|
|
7453
7453
|
display: inline-block;
|
|
7454
7454
|
}
|
|
@@ -7470,7 +7470,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7470
7470
|
[part="root"]:disabled {
|
|
7471
7471
|
cursor: not-allowed;
|
|
7472
7472
|
}
|
|
7473
|
-
`,
|
|
7473
|
+
`,lM,dM,cM,pM,hM,uM,mM,ee,GC,YC,XC,JC,QC,ZC,fM,e$,er,t$,r$,o$,Jm,Ce=class extends(mM=b,uM=[u({type:Boolean})],hM=[u({type:Boolean,attribute:"default-pressed"})],pM=[u({type:Boolean,reflect:!0})],cM=[u()],dM=[E()],lM=[Ot({context:Xm,subscribe:!0}),E()],mM){constructor(){super(...arguments);n(this,er);n(this,GC,i(ee,8,this)),i(ee,11,this);n(this,YC,i(ee,12,this,!1)),i(ee,15,this);n(this,XC,i(ee,16,this,!1)),i(ee,19,this);n(this,JC,i(ee,20,this)),i(ee,23,this);n(this,QC,i(ee,24,this,!1)),i(ee,27,this);n(this,t$,i(ee,28,this)),i(ee,31,this);n(this,Jm,()=>{if(r(this,er,o$))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!r(this,er,r$);this.pressed===void 0&&p(this,er,t,e$),this.dispatchEvent(s$({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&p(this,er,!0,e$)}render(){let t=r(this,er,r$),e=r(this,er,o$);return f`
|
|
7474
7474
|
<button
|
|
7475
7475
|
part="root"
|
|
7476
7476
|
type="button"
|
|
@@ -7478,12 +7478,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
7478
7478
|
?disabled="${e}"
|
|
7479
7479
|
?data-pressed="${t}"
|
|
7480
7480
|
?data-disabled="${e}"
|
|
7481
|
-
@click="${r(this,
|
|
7481
|
+
@click="${r(this,Jm)}"
|
|
7482
7482
|
>
|
|
7483
7483
|
<slot name="icon"></slot>
|
|
7484
7484
|
<slot></slot>
|
|
7485
7485
|
</button>
|
|
7486
|
-
`}};
|
|
7486
|
+
`}};ee=S(mM),GC=new WeakMap,YC=new WeakMap,XC=new WeakMap,JC=new WeakMap,QC=new WeakMap,er=new WeakSet,t$=new WeakMap,r$=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??r(this,er,fM)},o$=function(){return this.disabled||(this._groupCtx?.disabled??!1)},Jm=new WeakMap,d(ee,4,"pressed",uM,Ce,GC),d(ee,4,"defaultPressed",hM,Ce,YC),d(ee,4,"disabled",pM,Ce,XC),d(ee,4,"value",cM,Ce,JC),ZC=d(ee,20,"#internalPressed",dM,er,QC),fM=ZC.get,e$=ZC.set,d(ee,4,"_groupCtx",lM,Ce,t$),$(ee,Ce),g(Ce,"tagName","dui-toggle"),g(Ce,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Ce,"styles",[y,C4]);var g$=O("value-change",{bubbles:!0,composed:!0}),$4=v`
|
|
7487
7487
|
:host {
|
|
7488
7488
|
display: inline-flex;
|
|
7489
7489
|
}
|
|
@@ -7495,16 +7495,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
7495
7495
|
:host([orientation="vertical"]) [part="root"] {
|
|
7496
7496
|
flex-direction: column;
|
|
7497
7497
|
}
|
|
7498
|
-
`,
|
|
7498
|
+
`,gM,vM,bM,xM,yM,wM,kM,EM,CM,At,i$,n$,a$,l$,d$,c$,p$,h$,$M,m$,Ve,f$,Zm,u$,Qm,tf,ve=class extends(CM=b,EM=[u({type:Array})],kM=[u({type:Array,attribute:"default-value"})],wM=[u({reflect:!0})],yM=[u({reflect:!0})],xM=[u({type:Boolean,reflect:!0})],bM=[u({type:Boolean})],vM=[E()],gM=[vt({context:Xm}),E()],CM){constructor(){super(...arguments);n(this,Ve);n(this,i$,i(At,8,this)),i(At,11,this);n(this,n$,i(At,12,this,[])),i(At,15,this);n(this,a$,i(At,16,this,"single")),i(At,19,this);n(this,l$,i(At,20,this,"horizontal")),i(At,23,this);n(this,d$,i(At,24,this,!1)),i(At,27,this);n(this,c$,i(At,28,this,!0)),i(At,31,this);n(this,p$,i(At,32,this,[])),i(At,35,this);n(this,Zm,t=>{if(this.disabled)return;let e=r(this,Ve,f$),a;this.type==="single"?a=e.includes(t)?[]:[t]:a=e.includes(t)?e.filter(l=>l!==t):[...e,t],this.value===void 0&&p(this,Ve,a,m$),this.dispatchEvent(g$({value:a}))});n(this,u$,i(At,36,this,h(this,Ve,Qm).call(this))),i(At,39,this);n(this,tf,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";if(t.key!==a&&t.key!==l)return;t.preventDefault();let c=[...this.querySelectorAll("dui-toggle")],m=c.filter(R=>!R.hasAttribute("disabled"));if(m.length===0)return;let x=this.shadowRoot?.activeElement??document.activeElement,C=c.find(R=>R===x||R.shadowRoot?.activeElement===x||R.contains(x)),T=C?m.indexOf(C):-1,w;t.key===a?(w=T+1,w>=m.length&&(w=this.loop?0:m.length-1)):(w=T-1,w<0&&(w=this.loop?m.length-1:0)),m[w]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,Ve,[...this.defaultValue],m$),this._ctx=h(this,Ve,Qm).call(this)}willUpdate(){this._ctx=h(this,Ve,Qm).call(this)}render(){return f`
|
|
7499
7499
|
<div
|
|
7500
7500
|
part="root"
|
|
7501
7501
|
role="group"
|
|
7502
7502
|
aria-orientation="${this.orientation}"
|
|
7503
|
-
@keydown="${r(this,
|
|
7503
|
+
@keydown="${r(this,tf)}"
|
|
7504
7504
|
>
|
|
7505
7505
|
<slot></slot>
|
|
7506
7506
|
</div>
|
|
7507
|
-
`}};
|
|
7507
|
+
`}};At=S(CM),i$=new WeakMap,n$=new WeakMap,a$=new WeakMap,l$=new WeakMap,d$=new WeakMap,c$=new WeakMap,p$=new WeakMap,Ve=new WeakSet,f$=function(){return this.value??r(this,Ve,$M)},Zm=new WeakMap,u$=new WeakMap,Qm=function(){return{value:r(this,Ve,f$),disabled:this.disabled,type:this.type,toggle:r(this,Zm)}},tf=new WeakMap,d(At,4,"value",EM,ve,i$),d(At,4,"defaultValue",kM,ve,n$),d(At,4,"type",wM,ve,a$),d(At,4,"orientation",yM,ve,l$),d(At,4,"disabled",xM,ve,d$),d(At,4,"loop",bM,ve,c$),h$=d(At,20,"#internalValue",vM,Ve,p$),$M=h$.get,m$=h$.set,d(At,4,"_ctx",gM,ve,u$),$(At,ve),g(ve,"tagName","dui-toggle-group"),g(ve,"styles",[y,$4]);var S4=k`
|
|
7508
7508
|
/* ---------------------------------------------------------------
|
|
7509
7509
|
* Sizes (swap dimensions)
|
|
7510
7510
|
* --------------------------------------------------------------- */
|
|
@@ -7599,12 +7599,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
7599
7599
|
[part="root"]:disabled {
|
|
7600
7600
|
opacity: 0.4;
|
|
7601
7601
|
}
|
|
7602
|
-
`,
|
|
7602
|
+
`,Sl=class extends Ce{static styles=[...Ce.styles,S4]};customElements.define(Sl.tagName,Sl);var T4=k`
|
|
7603
7603
|
[part="root"] {
|
|
7604
7604
|
gap: var(--space-1);
|
|
7605
7605
|
border-radius: var(--radius-md);
|
|
7606
7606
|
}
|
|
7607
|
-
`,
|
|
7607
|
+
`,Tl=class extends ve{static styles=[...ve.styles,T4]};customElements.define(Tl.tagName,Tl);var _4=v`
|
|
7608
7608
|
:host {
|
|
7609
7609
|
display: block;
|
|
7610
7610
|
}
|
|
@@ -7635,7 +7635,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7635
7635
|
display: flex;
|
|
7636
7636
|
align-items: center;
|
|
7637
7637
|
}
|
|
7638
|
-
`,
|
|
7638
|
+
`,SM,TM,_M,AM,uo,v$,b$,x$,vr=class extends(AM=b,_M=[u({type:Boolean,reflect:!0})],TM=[u({type:Boolean,reflect:!0,attribute:"has-button-left"})],SM=[u({type:Boolean,reflect:!0,attribute:"has-button-right"})],AM){constructor(){super(...arguments);n(this,v$,i(uo,8,this,!1)),i(uo,11,this);n(this,b$,i(uo,12,this,!1)),i(uo,15,this);n(this,x$,i(uo,16,this,!1)),i(uo,19,this)}render(){return f`
|
|
7639
7639
|
<nav part="root" role="toolbar">
|
|
7640
7640
|
<div part="left">
|
|
7641
7641
|
<slot name="left"></slot>
|
|
@@ -7647,7 +7647,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7647
7647
|
<slot name="right"></slot>
|
|
7648
7648
|
</div>
|
|
7649
7649
|
</nav>
|
|
7650
|
-
`}};
|
|
7650
|
+
`}};uo=S(AM),v$=new WeakMap,b$=new WeakMap,x$=new WeakMap,d(uo,4,"inset",_M,vr,v$),d(uo,4,"hasButtonLeft",TM,vr,b$),d(uo,4,"hasButtonRight",SM,vr,x$),$(uo,vr),g(vr,"tagName","dui-toolbar"),g(vr,"styles",[y,_4]);var A4=k`
|
|
7651
7651
|
/* ── Root ── */
|
|
7652
7652
|
|
|
7653
7653
|
[part="root"] {
|
|
@@ -7676,15 +7676,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
7676
7676
|
[part="right"] {
|
|
7677
7677
|
gap: var(--space-2);
|
|
7678
7678
|
}
|
|
7679
|
-
`,
|
|
7679
|
+
`,_l=class extends vr{static styles=[...vr.styles,A4]};customElements.define(_l.tagName,_l);var Al=Symbol("dui-tooltip");var sf=O("open-change",{bubbles:!0,composed:!0}),R4=v`
|
|
7680
7680
|
:host {
|
|
7681
7681
|
display: contents;
|
|
7682
7682
|
}
|
|
7683
|
-
`,
|
|
7683
|
+
`,RM,IM,OM,LM,zM,MM,NM,DM,HM,BM,FM,ut,y$,w$,k$,E$,C$,$$,S$,T$,_$,ef,rf,mt,A$,R$,O$,VM,bi,xi,nf,af,I$,of,UM,qM,L$,z$,PM,de=class extends(FM=b,BM=[u({type:Boolean,reflect:!0})],HM=[u({type:Boolean,attribute:"default-open"})],DM=[u({reflect:!0})],NM=[u({type:Number,attribute:"side-offset"})],MM=[u({type:Number})],zM=[u({type:Number,attribute:"close-delay"})],LM=[u({type:Boolean,reflect:!0})],OM=[E()],IM=[E()],RM=[vt({context:Al}),E()],FM){constructor(){super(...arguments);n(this,mt);n(this,y$,i(ut,8,this,!1)),i(ut,11,this);n(this,w$,i(ut,12,this,!1)),i(ut,15,this);n(this,k$,i(ut,16,this,"top")),i(ut,19,this);n(this,E$,i(ut,20,this,6)),i(ut,23,this);n(this,C$,i(ut,24,this,500)),i(ut,27,this);n(this,$$,i(ut,28,this,0)),i(ut,31,this);n(this,S$,i(ut,32,this,!1)),i(ut,35,this);n(this,T$,i(ut,36,this,!1)),i(ut,39,this);n(this,A$,i(ut,40,this)),i(ut,43,this);n(this,bi);n(this,xi);n(this,nf,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,af,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);n(this,I$,i(ut,44,this,{open:!1,triggerId:r(this,nf),popupId:r(this,af),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>h(this,mt,UM).call(this),closeTooltip:()=>h(this,mt,qM).call(this),setTriggerEl:t=>h(this,mt,PM).call(this,t)})),i(ut,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&p(this,mt,!0,rf)}disconnectedCallback(){super.disconnectedCallback(),h(this,mt,of).call(this)}willUpdate(t){let e=this.open||r(this,mt,ef);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,mt,O$))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:r(this,mt,O$)})}render(){return f`<slot></slot>`}};ut=S(FM),y$=new WeakMap,w$=new WeakMap,k$=new WeakMap,E$=new WeakMap,C$=new WeakMap,$$=new WeakMap,S$=new WeakMap,T$=new WeakMap,mt=new WeakSet,A$=new WeakMap,bi=new WeakMap,xi=new WeakMap,nf=new WeakMap,af=new WeakMap,I$=new WeakMap,of=function(){r(this,bi)&&(clearTimeout(r(this,bi)),p(this,bi,void 0)),r(this,xi)&&(clearTimeout(r(this,xi)),p(this,xi,void 0))},UM=function(){this.disabled||(h(this,mt,of).call(this),this.delay<=0?h(this,mt,L$).call(this):p(this,bi,setTimeout(()=>h(this,mt,L$).call(this),this.delay)))},qM=function(){h(this,mt,of).call(this),this.closeDelay<=0?h(this,mt,z$).call(this):p(this,xi,setTimeout(()=>h(this,mt,z$).call(this),this.closeDelay))},L$=function(){r(this,mt,ef)||(p(this,mt,!0,rf),this.dispatchEvent(sf({open:!0})))},z$=function(){r(this,mt,ef)&&(p(this,mt,!1,rf),this.dispatchEvent(sf({open:!1})))},PM=function(t){p(this,mt,t,VM)},d(ut,4,"open",BM,de,y$),d(ut,4,"defaultOpen",HM,de,w$),d(ut,4,"side",DM,de,k$),d(ut,4,"sideOffset",NM,de,E$),d(ut,4,"delay",MM,de,C$),d(ut,4,"closeDelay",zM,de,$$),d(ut,4,"disabled",LM,de,S$),_$=d(ut,20,"#internalOpen",OM,mt,T$),ef=_$.get,rf=_$.set,R$=d(ut,20,"#triggerEl",IM,mt,A$),O$=R$.get,VM=R$.set,d(ut,4,"_ctx",RM,de,I$),$(ut,de),g(de,"tagName","dui-tooltip"),g(de,"styles",[y,R4]);var I4=v`
|
|
7684
7684
|
:host {
|
|
7685
7685
|
display: contents;
|
|
7686
7686
|
}
|
|
7687
|
-
`,
|
|
7687
|
+
`,O4=v`
|
|
7688
7688
|
.Trigger {
|
|
7689
7689
|
display: inline-flex;
|
|
7690
7690
|
align-items: center;
|
|
@@ -7701,7 +7701,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7701
7701
|
.Trigger[data-disabled] {
|
|
7702
7702
|
cursor: not-allowed;
|
|
7703
7703
|
}
|
|
7704
|
-
`,
|
|
7704
|
+
`,jM,WM,lf,M$,Ue,cf,pf,hf,uf,mf,Mo,N$,df,zo=class extends(WM=b,jM=[u({type:Boolean,reflect:!0})],WM){constructor(){super(...arguments);n(this,Mo);n(this,M$,i(lf,8,this,!1)),i(lf,11,this);n(this,Ue,new K(this,{context:Al,subscribe:!0}));n(this,cf,()=>{r(this,Mo,df)||(h(this,Mo,N$).call(this),r(this,Ue).value?.openTooltip())});n(this,pf,()=>{r(this,Ue).value?.closeTooltip()});n(this,hf,()=>{r(this,Mo,df)||(h(this,Mo,N$).call(this),r(this,Ue).value?.openTooltip())});n(this,uf,()=>{r(this,Ue).value?.closeTooltip()});n(this,mf,t=>{t.key==="Escape"&&r(this,Ue).value?.open&&r(this,Ue).value?.closeTooltip()})}render(){let t=r(this,Ue).value?.open??!1,e=r(this,Ue).value?.popupId??"",a=r(this,Ue).value?.triggerId??"";return f`
|
|
7705
7705
|
<span
|
|
7706
7706
|
class="Trigger"
|
|
7707
7707
|
part="trigger"
|
|
@@ -7710,16 +7710,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
7710
7710
|
tabindex="0"
|
|
7711
7711
|
aria-describedby="${t?e:""}"
|
|
7712
7712
|
?data-popup-open="${t}"
|
|
7713
|
-
?data-disabled="${r(this,
|
|
7714
|
-
@mouseenter="${r(this,
|
|
7715
|
-
@mouseleave="${r(this,
|
|
7716
|
-
@focus="${r(this,
|
|
7717
|
-
@blur="${r(this,
|
|
7718
|
-
@keydown="${r(this,
|
|
7713
|
+
?data-disabled="${r(this,Mo,df)}"
|
|
7714
|
+
@mouseenter="${r(this,cf)}"
|
|
7715
|
+
@mouseleave="${r(this,pf)}"
|
|
7716
|
+
@focus="${r(this,hf)}"
|
|
7717
|
+
@blur="${r(this,uf)}"
|
|
7718
|
+
@keydown="${r(this,mf)}"
|
|
7719
7719
|
>
|
|
7720
7720
|
<slot></slot>
|
|
7721
7721
|
</span>
|
|
7722
|
-
`}};
|
|
7722
|
+
`}};lf=S(WM),M$=new WeakMap,Ue=new WeakMap,cf=new WeakMap,pf=new WeakMap,hf=new WeakMap,uf=new WeakMap,mf=new WeakMap,Mo=new WeakSet,N$=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;r(this,Ue).value?.setTriggerEl(t)},df=function(){return this.disabled||(r(this,Ue).value?.disabled??!1)},d(lf,4,"disabled",jM,zo,M$),$(lf,zo),g(zo,"tagName","dui-tooltip-trigger"),g(zo,"styles",[y,I4,O4]);var L4=v`
|
|
7723
7723
|
:host {
|
|
7724
7724
|
display: contents;
|
|
7725
7725
|
}
|
|
@@ -7727,7 +7727,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7727
7727
|
.slot-wrapper {
|
|
7728
7728
|
display: none;
|
|
7729
7729
|
}
|
|
7730
|
-
`,
|
|
7730
|
+
`,z4=[v`
|
|
7731
7731
|
.Popup {
|
|
7732
7732
|
box-sizing: border-box;
|
|
7733
7733
|
pointer-events: auto;
|
|
@@ -7768,19 +7768,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
7768
7768
|
left: 50%;
|
|
7769
7769
|
transform: translateX(-50%) rotate(180deg);
|
|
7770
7770
|
}
|
|
7771
|
-
`],
|
|
7771
|
+
`],KM,GM,YM,yi,D$,H$,B$,ff,XM,fo,as,Rl,wi,JM,mo=class extends(YM=b,GM=[u({type:Boolean,attribute:"show-arrow"})],KM=[E()],YM){constructor(){super(...arguments);n(this,fo);n(this,D$,i(yi,8,this,!0)),i(yi,11,this);n(this,H$,i(yi,12,this,"top")),i(yi,15,this);n(this,as,new K(this,{context:Al,subscribe:!0}));n(this,Rl,!1);n(this,wi,new he(this,{getAnchor:()=>r(this,as).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:z4,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,fo,ff)&&p(this,fo,e,XM)},renderPopup:t=>{let e=r(this,as).value?.popupId??"";return f`
|
|
7772
7772
|
<div
|
|
7773
7773
|
class="Popup"
|
|
7774
7774
|
id="${e}"
|
|
7775
7775
|
role="tooltip"
|
|
7776
7776
|
?data-starting-style="${t.isStarting}"
|
|
7777
7777
|
?data-ending-style="${t.isEnding}"
|
|
7778
|
-
data-side="${r(this,
|
|
7778
|
+
data-side="${r(this,fo,ff)}"
|
|
7779
7779
|
>
|
|
7780
7780
|
<div class="Content"></div>
|
|
7781
|
-
${this.showArrow?
|
|
7781
|
+
${this.showArrow?En(r(this,fo,ff)):""}
|
|
7782
7782
|
</div>
|
|
7783
|
-
`}}))}updated(){let t=r(this,
|
|
7783
|
+
`}}))}updated(){let t=r(this,as).value?.open??!1;t&&!r(this,Rl)?(h(this,fo,JM).call(this),r(this,wi).open()):!t&&r(this,Rl)&&r(this,wi).close(),p(this,Rl,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};yi=S(YM),D$=new WeakMap,H$=new WeakMap,fo=new WeakSet,as=new WeakMap,Rl=new WeakMap,wi=new WeakMap,JM=function(){let t=r(this,as).value?.side??"top";r(this,wi).placement=t,r(this,wi).offset=r(this,as).value?.sideOffset??6},d(yi,4,"showArrow",GM,mo,D$),B$=d(yi,20,"#side",KM,fo,H$),ff=B$.get,XM=B$.set,$(yi,mo),g(mo,"tagName","dui-tooltip-popup"),g(mo,"styles",[y,L4]);var M4=k``,Il=class extends de{static styles=[...de.styles,M4]};customElements.define(Il.tagName,Il);var N4=k`
|
|
7784
7784
|
.Popup {
|
|
7785
7785
|
padding: var(--space-2) var(--space-2);
|
|
7786
7786
|
border-radius: var(--radius-sm);
|
|
@@ -7807,7 +7807,270 @@ label, legend, caption, figcaption, th, td {
|
|
|
7807
7807
|
fill: none;
|
|
7808
7808
|
stroke: none;
|
|
7809
7809
|
}
|
|
7810
|
-
`,
|
|
7810
|
+
`,Ol=class extends mo{static styles=[...mo.styles,N4]};customElements.define(Ol.tagName,Ol);var Ll=class extends zo{};customElements.define(Ll.tagName,Ll);var gf=Symbol("dui-tree");var Y$=O("dui-load-children",{bubbles:!0,composed:!0}),D4=v`
|
|
7811
|
+
:host {
|
|
7812
|
+
display: block;
|
|
7813
|
+
}
|
|
7814
|
+
|
|
7815
|
+
[part="root"] {
|
|
7816
|
+
outline: none;
|
|
7817
|
+
}
|
|
7818
|
+
|
|
7819
|
+
[part="content"] {
|
|
7820
|
+
display: flex;
|
|
7821
|
+
align-items: center;
|
|
7822
|
+
}
|
|
7823
|
+
|
|
7824
|
+
[part="indicator"] {
|
|
7825
|
+
display: inline-flex;
|
|
7826
|
+
flex-shrink: 0;
|
|
7827
|
+
align-items: center;
|
|
7828
|
+
justify-content: center;
|
|
7829
|
+
}
|
|
7830
|
+
|
|
7831
|
+
.spacer {
|
|
7832
|
+
flex: 1;
|
|
7833
|
+
min-width: 0;
|
|
7834
|
+
}
|
|
7835
|
+
|
|
7836
|
+
[part="group"][hidden] {
|
|
7837
|
+
display: none;
|
|
7838
|
+
}
|
|
7839
|
+
`,QM,ZM,t5,e5,r5,o5,s5,re,F$,V$,U$,q$,P$,j$,W$,vf,i5,Z,zl,bf,kc,K$,Ec,G$,n5,ls,xf,yf,wf,oe=class extends(s5=b,o5=[u()],r5=[u({type:Boolean,reflect:!0})],e5=[u({type:Boolean,attribute:"has-children",reflect:!0})],t5=[u({type:Boolean,reflect:!0})],ZM=[Ot({context:gf,subscribe:!0}),E()],QM=[E()],s5){constructor(){super(...arguments);n(this,Z);n(this,F$,i(re,8,this,"")),i(re,11,this);n(this,V$,i(re,12,this,!1)),i(re,15,this);n(this,U$,i(re,16,this,!1)),i(re,19,this);n(this,q$,i(re,20,this,!1)),i(re,23,this);n(this,P$,i(re,24,this)),i(re,27,this);n(this,j$,i(re,28,this,!1)),i(re,31,this);n(this,zl,!1);n(this,xf,t=>{let a=t.target.assignedElements().some(l=>l.tagName==="DUI-TREE-ITEM");a!==r(this,Z,vf)&&p(this,Z,a,i5)});n(this,yf,t=>{t.stopPropagation(),!r(this,Z,Ec)&&this._ctx?.activate(this.value,this.isBranch)});n(this,wf,t=>{this.isBranch&&(t.stopPropagation(),!r(this,Z,Ec)&&this._ctx?.toggleExpand(this.value))})}get isBranch(){return r(this,Z,vf)||this.hasChildren}willUpdate(t){this.isBranch&&r(this,Z,kc)?!r(this,Z,vf)&&!r(this,zl)&&(p(this,zl,!0),this.dispatchEvent(Y$({value:this.value}))):r(this,Z,kc)||p(this,zl,!1)}updated(){this.style.setProperty("--dui-tree-level",String(r(this,Z,bf))),h(this,Z,ls).call(this,"data-expanded",r(this,Z,kc)&&this.isBranch),h(this,Z,ls).call(this,"data-selected",r(this,Z,K$)),h(this,Z,ls).call(this,"data-disabled",r(this,Z,Ec)),h(this,Z,ls).call(this,"data-branch",this.isBranch),h(this,Z,ls).call(this,"data-leaf",!this.isBranch),h(this,Z,ls).call(this,"data-focus",r(this,Z,G$)),h(this,Z,ls).call(this,"data-loading",this.loading),this.setAttribute("data-level",String(r(this,Z,bf))),this.loading?this.setAttribute("aria-busy","true"):this.removeAttribute("aria-busy")}render(){let t=this.isBranch,e=r(this,Z,kc)&&t,a=r(this,Z,Ec),l=r(this,Z,K$),c=r(this,Z,G$),m=this.loading,x=r(this,Z,bf),C=r(this,Z,n5),T=this._ctx?.selectionMode??"none";return f`
|
|
7840
|
+
<div
|
|
7841
|
+
part="root"
|
|
7842
|
+
role="treeitem"
|
|
7843
|
+
tabindex=${c?0:-1}
|
|
7844
|
+
aria-level=${x}
|
|
7845
|
+
aria-setsize=${C.length}
|
|
7846
|
+
aria-posinset=${C.indexOf(this)+1}
|
|
7847
|
+
aria-expanded=${t?String(e):I}
|
|
7848
|
+
aria-selected=${T!=="none"?String(l):I}
|
|
7849
|
+
aria-disabled=${a?"true":I}
|
|
7850
|
+
aria-busy=${m?"true":I}
|
|
7851
|
+
data-level=${x}
|
|
7852
|
+
?data-expanded=${e}
|
|
7853
|
+
?data-selected=${l}
|
|
7854
|
+
?data-disabled=${a}
|
|
7855
|
+
?data-branch=${t}
|
|
7856
|
+
?data-leaf=${!t}
|
|
7857
|
+
?data-focus=${c}
|
|
7858
|
+
?data-loading=${m}
|
|
7859
|
+
@click=${r(this,yf)}
|
|
7860
|
+
>
|
|
7861
|
+
<div part="content">
|
|
7862
|
+
<span
|
|
7863
|
+
part="indicator"
|
|
7864
|
+
?data-branch=${t}
|
|
7865
|
+
?data-leaf=${!t}
|
|
7866
|
+
?data-loading=${m}
|
|
7867
|
+
@click=${r(this,wf)}
|
|
7868
|
+
></span>
|
|
7869
|
+
<slot name="label"></slot>
|
|
7870
|
+
<span class="spacer"></span>
|
|
7871
|
+
<slot name="end"></slot>
|
|
7872
|
+
</div>
|
|
7873
|
+
<div
|
|
7874
|
+
part="group"
|
|
7875
|
+
role=${t?"group":I}
|
|
7876
|
+
?hidden=${!t||!e}
|
|
7877
|
+
>
|
|
7878
|
+
<slot @slotchange=${r(this,xf)}></slot>
|
|
7879
|
+
</div>
|
|
7880
|
+
</div>
|
|
7881
|
+
`}};re=S(s5),F$=new WeakMap,V$=new WeakMap,U$=new WeakMap,q$=new WeakMap,P$=new WeakMap,j$=new WeakMap,Z=new WeakSet,zl=new WeakMap,bf=function(){let t=1,e=this.parentElement;for(;e&&(e.tagName==="DUI-TREE-ITEM"&&t++,e.tagName!=="DUI-TREE");)e=e.parentElement;return t},kc=function(){return this._ctx?.expandedValues.includes(this.value)??!1},K$=function(){return this._ctx?.selectedValues.includes(this.value)??!1},Ec=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},G$=function(){return this._ctx?.focusedValue===this.value},n5=function(){return Array.from(this.parentElement?.children??[]).filter(t=>t.tagName==="DUI-TREE-ITEM")},ls=function(t,e){e?this.hasAttribute(t)||this.setAttribute(t,""):this.hasAttribute(t)&&this.removeAttribute(t)},xf=new WeakMap,yf=new WeakMap,wf=new WeakMap,d(re,4,"value",o5,oe,F$),d(re,4,"disabled",r5,oe,V$),d(re,4,"hasChildren",e5,oe,U$),d(re,4,"loading",t5,oe,q$),d(re,4,"_ctx",ZM,oe,P$),W$=d(re,20,"#hasSlottedChildren",QM,Z,j$),vf=W$.get,i5=W$.set,$(re,oe),g(oe,"tagName","dui-tree-item"),g(oe,"styles",[y,D4]);var Tf=O("dui-expanded-change",{bubbles:!0,composed:!0}),h1=O("dui-selection-change",{bubbles:!0,composed:!0}),u1=O("dui-action",{bubbles:!0,composed:!0}),H4=v`
|
|
7882
|
+
:host {
|
|
7883
|
+
display: block;
|
|
7884
|
+
}
|
|
7885
|
+
|
|
7886
|
+
[part="root"] {
|
|
7887
|
+
outline: none;
|
|
7888
|
+
}
|
|
7889
|
+
`,a5,l5,d5,c5,p5,h5,u5,m5,f5,g5,v5,ft,X$,J$,Q$,Z$,t1,e1,r1,o1,b5,kf,F,s1,i1,d1,Cc,n1,a1,Ef,Cf,ki,go,Ei,No,$c,Ci,_f,Sc,Tc,l1,$f,c1,B4,Sf,x5,y5,ds,p1,Af,Rf,w5,k5,be=class extends(v5=b,g5=[u({type:Array})],f5=[u({type:Array,attribute:"default-expanded-values"})],m5=[u({attribute:"selection-mode",reflect:!0})],u5=[u({type:Array})],h5=[u({type:Array,attribute:"default-selected-values"})],p5=[u({type:Boolean,reflect:!0})],c5=[E()],d5=[E()],l5=[E()],a5=[vt({context:gf}),E()],v5){constructor(){super(...arguments);n(this,F);n(this,X$,i(ft,8,this)),i(ft,11,this);n(this,J$,i(ft,12,this,[])),i(ft,15,this);n(this,Q$,i(ft,16,this,"none")),i(ft,19,this);n(this,Z$,i(ft,20,this)),i(ft,23,this);n(this,t1,i(ft,24,this,[])),i(ft,27,this);n(this,e1,i(ft,28,this,!1)),i(ft,31,this);n(this,r1,i(ft,32,this,[])),i(ft,35,this);n(this,s1,i(ft,36,this,[])),i(ft,39,this);n(this,n1,i(ft,40,this,null)),i(ft,43,this);n(this,ki,"");n(this,go,null);n(this,Ei,null);n(this,No,()=>this.expandedValues??r(this,F,b5));n(this,$c,()=>this.selectedValues??r(this,F,d1));n(this,Ci,t=>{let e=[...r(this,No).call(this)],l=e.indexOf(t)>=0?e.filter(c=>c!==t):[...e,t];this.expandedValues===void 0&&p(this,F,l,kf),this.dispatchEvent(Tf({values:l}))});n(this,_f,t=>{let e=[...r(this,$c).call(this)],a=e.indexOf(t),l;this.selectionMode==="single"?l=a>=0?[]:[t]:l=a>=0?e.filter(c=>c!==t):[...e,t],this.selectedValues===void 0&&p(this,F,l,Cc),this.dispatchEvent(h1({values:l}))});n(this,Sc,(t,e)=>{this.disabled||(this.selectionMode!=="none"?r(this,_f).call(this,t):e?r(this,Ci).call(this,t):this.dispatchEvent(u1({value:t})))});n(this,Tc,t=>{r(this,F,Ef)!==t&&p(this,F,t,Cf)});n(this,l1,i(ft,44,this,h(this,F,$f).call(this))),i(ft,47,this);n(this,Af,t=>{let e=h(this,F,p1).call(this,t);e&&r(this,Tc).call(this,e.value)});n(this,Rf,t=>{if(this.disabled)return;let e=h(this,F,p1).call(this,t);if(!e)return;let a=h(this,F,Sf).call(this),l=a.indexOf(e);switch(t.key){case"ArrowDown":{t.preventDefault(),l<a.length-1&&h(this,F,ds).call(this,a[l+1]);break}case"ArrowUp":{t.preventDefault(),l>0&&h(this,F,ds).call(this,a[l-1]);break}case"ArrowRight":{if(t.preventDefault(),!e.isBranch)break;r(this,No).call(this).includes(e.value)?l<a.length-1&&h(this,F,ds).call(this,a[l+1]):r(this,Ci).call(this,e.value);break}case"ArrowLeft":{if(t.preventDefault(),e.isBranch&&r(this,No).call(this).includes(e.value))r(this,Ci).call(this,e.value);else{let c=h(this,F,y5).call(this,e);c&&h(this,F,ds).call(this,c)}break}case"Enter":case" ":{t.preventDefault(),e.disabled||r(this,Sc).call(this,e.value,e.isBranch);break}case"Home":{t.preventDefault(),a[0]&&h(this,F,ds).call(this,a[0]);break}case"End":{t.preventDefault();let c=a[a.length-1];c&&h(this,F,ds).call(this,c);break}case"*":{t.preventDefault(),h(this,F,w5).call(this,e);break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&h(this,F,k5).call(this,e,t.key)}})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tree"),this.expandedValues===void 0&&this.defaultExpandedValues.length>0&&p(this,F,[...this.defaultExpandedValues],kf),this.selectedValues===void 0&&this.defaultSelectedValues.length>0&&p(this,F,[...this.defaultSelectedValues],Cc),this._ctx=h(this,F,$f).call(this),p(this,Ei,new MutationObserver(()=>this.requestUpdate())),r(this,Ei).observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled"]})}disconnectedCallback(){super.disconnectedCallback(),r(this,Ei)?.disconnect(),p(this,Ei,null),r(this,go)&&clearTimeout(r(this,go)),p(this,go,null),p(this,ki,"")}willUpdate(t){if(this.selectionMode==="multiple"?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),t.has("selectionMode")&&this.selectedValues===void 0){let e=r(this,F,d1);this.selectionMode==="none"&&e.length>0?p(this,F,[],Cc):this.selectionMode==="single"&&e.length>1&&p(this,F,[e[0]],Cc)}this._ctx=h(this,F,$f).call(this)}updated(){if(r(this,F,Ef)===null){let t=h(this,F,Sf).call(this).find(e=>!e.disabled);t&&p(this,F,t.value,Cf)}}render(){return f`
|
|
7890
|
+
<div
|
|
7891
|
+
part="root"
|
|
7892
|
+
?data-disabled=${this.disabled}
|
|
7893
|
+
@keydown=${r(this,Rf)}
|
|
7894
|
+
@focusin=${r(this,Af)}
|
|
7895
|
+
>
|
|
7896
|
+
<slot></slot>
|
|
7897
|
+
</div>
|
|
7898
|
+
`}};ft=S(v5),X$=new WeakMap,J$=new WeakMap,Q$=new WeakMap,Z$=new WeakMap,t1=new WeakMap,e1=new WeakMap,r1=new WeakMap,F=new WeakSet,s1=new WeakMap,n1=new WeakMap,ki=new WeakMap,go=new WeakMap,Ei=new WeakMap,No=new WeakMap,$c=new WeakMap,Ci=new WeakMap,_f=new WeakMap,Sc=new WeakMap,Tc=new WeakMap,l1=new WeakMap,$f=function(){return{expandedValues:r(this,No).call(this),selectedValues:r(this,$c).call(this),selectionMode:this.selectionMode,disabled:this.disabled,focusedValue:r(this,F,Ef),toggleExpand:r(this,Ci),activate:r(this,Sc),setFocused:r(this,Tc)}},c1=function(){return[...this.querySelectorAll("dui-tree-item")]},B4=function(t){return h(this,F,c1).call(this).find(e=>e.value===t)},Sf=function(){return h(this,F,c1).call(this).filter(t=>h(this,F,x5).call(this,t))},x5=function(t){let e=t.parentElement;for(;e;){if(e===this)return!0;if(e instanceof oe&&!r(this,No).call(this).includes(e.value))return!1;e=e.parentElement}return!1},y5=function(t){let e=t.parentElement;for(;e;){if(e===this)return null;if(e instanceof oe)return e;e=e.parentElement}return null},ds=function(t){p(this,F,t.value,Cf),t.shadowRoot?.querySelector("[part='root']")?.focus()},p1=function(t){return t.composedPath().find(e=>e instanceof oe)??null},Af=new WeakMap,Rf=new WeakMap,w5=function(t){let e=Array.from(t.parentElement?.children??[]).filter(m=>m instanceof oe&&m.isBranch&&!m.disabled),a=r(this,No).call(this),l=e.map(m=>m.value).filter(m=>!a.includes(m));if(l.length===0)return;let c=[...a,...l];this.expandedValues===void 0&&p(this,F,c,kf),this.dispatchEvent(Tf({values:c}))},k5=function(t,e){p(this,ki,r(this,ki)+e.toLowerCase()),r(this,go)&&clearTimeout(r(this,go)),p(this,go,setTimeout(()=>{p(this,ki,""),p(this,go,null)},500));let a=h(this,F,Sf).call(this),l=a.indexOf(t),m=[...a.slice(l+1),...a.slice(0,l+1)].find(x=>(x.querySelector("[slot='label']")?.textContent?.trim().toLowerCase()??"").startsWith(r(this,ki)));m&&h(this,F,ds).call(this,m)},d(ft,4,"expandedValues",g5,be,X$),d(ft,4,"defaultExpandedValues",f5,be,J$),d(ft,4,"selectionMode",m5,be,Q$),d(ft,4,"selectedValues",u5,be,Z$),d(ft,4,"defaultSelectedValues",h5,be,t1),d(ft,4,"disabled",p5,be,e1),o1=d(ft,20,"#internalExpanded",c5,F,r1),b5=o1.get,kf=o1.set,i1=d(ft,20,"#internalSelected",d5,F,s1),d1=i1.get,Cc=i1.set,a1=d(ft,20,"#focusedValue",l5,F,n1),Ef=a1.get,Cf=a1.set,d(ft,4,"_ctx",a5,be,l1),$(ft,be),g(be,"tagName","dui-tree"),g(be,"styles",[y,H4]);var F4=k`
|
|
7899
|
+
/* ── Sizes — write to public tokens on :host so consumer overrides win ── */
|
|
7900
|
+
|
|
7901
|
+
:host {
|
|
7902
|
+
/* Default = sm */
|
|
7903
|
+
--dui-tree-row-height: var(--component-height-sm);
|
|
7904
|
+
--dui-tree-indent: var(--space-4);
|
|
7905
|
+
--dui-tree-row-spacing: 0;
|
|
7906
|
+
--dui-tree-row-radius: var(--radius-sm);
|
|
7907
|
+
--dui-tree-hover-bg: oklch(from var(--foreground) l c h / 0.05);
|
|
7908
|
+
--dui-tree-selected-bg: oklch(from var(--foreground) l c h / 0.10);
|
|
7909
|
+
|
|
7910
|
+
/* Internal-only (not part of public token surface) */
|
|
7911
|
+
--_tree-label-font-size: var(--text-xs);
|
|
7912
|
+
--_tree-label-line-height: var(--text-xs--line-height);
|
|
7913
|
+
--_tree-end-font-size: var(--text-2xs);
|
|
7914
|
+
--_tree-end-line-height: var(--text-2xs--line-height);
|
|
7915
|
+
--_tree-indicator-size: 14px;
|
|
7916
|
+
--_tree-row-px: var(--space-2);
|
|
7917
|
+
--_tree-inline-gap: var(--space-2);
|
|
7918
|
+
}
|
|
7919
|
+
|
|
7920
|
+
:host([size="md"]) {
|
|
7921
|
+
--dui-tree-row-height: var(--component-height-md);
|
|
7922
|
+
--dui-tree-indent: var(--space-5);
|
|
7923
|
+
--_tree-label-font-size: var(--text-sm);
|
|
7924
|
+
--_tree-label-line-height: var(--text-sm--line-height);
|
|
7925
|
+
--_tree-end-font-size: var(--text-xs);
|
|
7926
|
+
--_tree-end-line-height: var(--text-xs--line-height);
|
|
7927
|
+
--_tree-indicator-size: var(--space-4);
|
|
7928
|
+
--_tree-inline-gap: var(--space-2);
|
|
7929
|
+
}
|
|
7930
|
+
|
|
7931
|
+
:host([size="lg"]) {
|
|
7932
|
+
--dui-tree-row-height: var(--component-height-lg);
|
|
7933
|
+
--dui-tree-indent: var(--space-6);
|
|
7934
|
+
--_tree-label-font-size: var(--text-sm);
|
|
7935
|
+
--_tree-label-line-height: var(--text-sm--line-height);
|
|
7936
|
+
--_tree-end-font-size: var(--text-xs);
|
|
7937
|
+
--_tree-end-line-height: var(--text-xs--line-height);
|
|
7938
|
+
--_tree-indicator-size: var(--space-4);
|
|
7939
|
+
--_tree-inline-gap: var(--space-2_5);
|
|
7940
|
+
}
|
|
7941
|
+
`,Ml=class extends be{static styles=[...be.styles,F4]};customElements.define(Ml.tagName,Ml);var E5=bo(`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")`),C5=bo(`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")`),V4=k`
|
|
7942
|
+
/* ── Row container ─────────────────────────────────────────────────── */
|
|
7943
|
+
|
|
7944
|
+
/*
|
|
7945
|
+
* IMPORTANT: All visual styling lives on [part="content"], NOT [part="root"].
|
|
7946
|
+
* [part="root"] wraps both the row and the children group, so :hover on it
|
|
7947
|
+
* would bleed onto descendant rows. See the hover-bleed regression demo.
|
|
7948
|
+
*/
|
|
7949
|
+
[part="content"] {
|
|
7950
|
+
height: var(--dui-tree-row-height);
|
|
7951
|
+
padding-inline-start: calc(
|
|
7952
|
+
var(--_tree-row-px) +
|
|
7953
|
+
(var(--dui-tree-level, 1) - 1) * var(--dui-tree-indent)
|
|
7954
|
+
);
|
|
7955
|
+
padding-inline-end: var(--_tree-row-px);
|
|
7956
|
+
margin-block: calc(var(--dui-tree-row-spacing) / 2);
|
|
7957
|
+
margin-inline: var(--space-1);
|
|
7958
|
+
border-radius: var(--dui-tree-row-radius);
|
|
7959
|
+
gap: var(--_tree-inline-gap);
|
|
7960
|
+
color: var(--text-1);
|
|
7961
|
+
font-family: var(--font-sans);
|
|
7962
|
+
font-size: var(--_tree-label-font-size);
|
|
7963
|
+
line-height: var(--_tree-label-line-height);
|
|
7964
|
+
cursor: pointer;
|
|
7965
|
+
transition-property: background, box-shadow, color;
|
|
7966
|
+
transition-duration: var(--duration-faster);
|
|
7967
|
+
transition-timing-function: var(--ease-out-3);
|
|
7968
|
+
/* Allow children to truncate */
|
|
7969
|
+
min-width: 0;
|
|
7970
|
+
}
|
|
7971
|
+
|
|
7972
|
+
@media (hover: hover) {
|
|
7973
|
+
[part="content"]:hover {
|
|
7974
|
+
background: var(--dui-tree-hover-bg);
|
|
7975
|
+
}
|
|
7976
|
+
}
|
|
7977
|
+
|
|
7978
|
+
:host([data-selected]) [part="content"] {
|
|
7979
|
+
background: var(--dui-tree-selected-bg);
|
|
7980
|
+
}
|
|
7981
|
+
|
|
7982
|
+
:host([data-disabled]) [part="content"] {
|
|
7983
|
+
opacity: 0.4;
|
|
7984
|
+
cursor: not-allowed;
|
|
7985
|
+
}
|
|
7986
|
+
|
|
7987
|
+
/* ── Focus ring ─────────────────────────────────────────────────────── */
|
|
7988
|
+
|
|
7989
|
+
[part="root"]:focus-visible {
|
|
7990
|
+
outline: none;
|
|
7991
|
+
}
|
|
7992
|
+
|
|
7993
|
+
[part="root"]:focus-visible [part="content"] {
|
|
7994
|
+
box-shadow:
|
|
7995
|
+
0 0 0 var(--focus-ring-offset) var(--background),
|
|
7996
|
+
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width))
|
|
7997
|
+
var(--focus-ring-color);
|
|
7998
|
+
/* Keep the highlighted row above siblings so the ring isn't clipped. */
|
|
7999
|
+
position: relative;
|
|
8000
|
+
z-index: 1;
|
|
8001
|
+
}
|
|
8002
|
+
|
|
8003
|
+
/* ── Indicator (chevron / spinner / leaf placeholder) ─────────────── */
|
|
8004
|
+
|
|
8005
|
+
[part="indicator"] {
|
|
8006
|
+
width: var(--_tree-indicator-size);
|
|
8007
|
+
height: var(--_tree-indicator-size);
|
|
8008
|
+
color: var(--text-2);
|
|
8009
|
+
}
|
|
8010
|
+
|
|
8011
|
+
/* Branch chevron */
|
|
8012
|
+
:host([data-branch]) [part="indicator"]::before {
|
|
8013
|
+
content: "";
|
|
8014
|
+
display: block;
|
|
8015
|
+
width: 100%;
|
|
8016
|
+
height: 100%;
|
|
8017
|
+
background: currentColor;
|
|
8018
|
+
-webkit-mask: ${E5} center / contain no-repeat;
|
|
8019
|
+
mask: ${E5} center / contain no-repeat;
|
|
8020
|
+
transition-property: transform;
|
|
8021
|
+
transition-duration: var(--duration-fast);
|
|
8022
|
+
transition-timing-function: var(--ease-out-3);
|
|
8023
|
+
}
|
|
8024
|
+
|
|
8025
|
+
:host([data-expanded]) [part="indicator"]::before {
|
|
8026
|
+
transform: rotate(90deg);
|
|
8027
|
+
}
|
|
8028
|
+
|
|
8029
|
+
/* Loading spinner replaces the chevron in-place */
|
|
8030
|
+
:host([data-loading]) [part="indicator"]::before {
|
|
8031
|
+
-webkit-mask: ${C5} center / contain no-repeat;
|
|
8032
|
+
mask: ${C5} center / contain no-repeat;
|
|
8033
|
+
transform: none;
|
|
8034
|
+
animation: dui-tree-spin 0.9s linear infinite;
|
|
8035
|
+
}
|
|
8036
|
+
|
|
8037
|
+
@keyframes dui-tree-spin {
|
|
8038
|
+
from {
|
|
8039
|
+
transform: rotate(0deg);
|
|
8040
|
+
}
|
|
8041
|
+
to {
|
|
8042
|
+
transform: rotate(360deg);
|
|
8043
|
+
}
|
|
8044
|
+
}
|
|
8045
|
+
|
|
8046
|
+
/* ── Slotted content ────────────────────────────────────────────────── */
|
|
8047
|
+
|
|
8048
|
+
::slotted([slot="label"]) {
|
|
8049
|
+
min-width: 0;
|
|
8050
|
+
overflow: hidden;
|
|
8051
|
+
text-overflow: ellipsis;
|
|
8052
|
+
white-space: nowrap;
|
|
8053
|
+
}
|
|
8054
|
+
|
|
8055
|
+
::slotted([slot="end"]) {
|
|
8056
|
+
flex-shrink: 0;
|
|
8057
|
+
color: var(--text-2);
|
|
8058
|
+
font-size: var(--_tree-end-font-size);
|
|
8059
|
+
line-height: var(--_tree-end-line-height);
|
|
8060
|
+
}
|
|
8061
|
+
|
|
8062
|
+
/* ── Reduced motion ────────────────────────────────────────────────── */
|
|
8063
|
+
|
|
8064
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8065
|
+
[part="content"],
|
|
8066
|
+
:host([data-branch]) [part="indicator"]::before {
|
|
8067
|
+
transition-duration: 0s;
|
|
8068
|
+
}
|
|
8069
|
+
:host([data-loading]) [part="indicator"]::before {
|
|
8070
|
+
animation: none;
|
|
8071
|
+
}
|
|
8072
|
+
}
|
|
8073
|
+
`,Nl=class extends oe{static styles=[...oe.styles,V4]};customElements.define(Nl.tagName,Nl);var U4=v`
|
|
7811
8074
|
:host {
|
|
7812
8075
|
display: block;
|
|
7813
8076
|
}
|
|
@@ -7826,10 +8089,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
7826
8089
|
display: -webkit-box;
|
|
7827
8090
|
-webkit-box-orient: vertical;
|
|
7828
8091
|
}
|
|
7829
|
-
|
|
8092
|
+
`,$5,S5,T5,$i,m1,f1,Ar=class extends(T5=b,S5=[u({attribute:"max-width"})],$5=[u({attribute:"max-lines",type:Number,reflect:!0})],T5){constructor(){super(...arguments);n(this,m1,i($i,8,this,"20rem")),i($i,11,this);n(this,f1,i($i,12,this)),i($i,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,e=Un({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return f`<div part="root" style=${e}><slot></slot></div>`}};$i=S(T5),m1=new WeakMap,f1=new WeakMap,d($i,4,"maxWidth",S5,Ar,m1),d($i,4,"maxLines",$5,Ar,f1),$($i,Ar),g(Ar,"tagName","dui-trunc"),g(Ar,"styles",[y,U4]);var q4=k`
|
|
7830
8093
|
[part="root"] {
|
|
7831
8094
|
font-family: var(--font-sans);
|
|
7832
8095
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
7833
8096
|
color: var(--text-1);
|
|
7834
8097
|
}
|
|
7835
|
-
`,
|
|
8098
|
+
`,Dl=class extends Ar{static styles=[...Ar.styles,q4]};customElements.define(Dl.tagName,Dl);
|