@deepfuture/dui-cdn 0.0.16 → 0.0.18
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 +118 -74
- package/dui.min.js +433 -405
- package/package.json +1 -1
package/dui.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDescriptor;var Uk=(n,i)=>(i=Symbol[n])?i:Symbol.for("Symbol."+n),Gi=n=>{throw TypeError(n)};var jk=(n,i,t)=>i in n?nh(n,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[i]=t;var Vk=(n,i)=>nh(n,"name",{value:i,configurable:!0});var S=n=>[,,,dO(n?.[Uk("metadata")]??null)],Kk=["class","method","getter","setter","accessor","field","value","get","set"],Ks=n=>n!==void 0&&typeof n!="function"?Gi("Function expected"):n,pO=(n,i,t,r,a)=>({kind:Kk[n],name:i,metadata:r,addInitializer:d=>t._?Gi("Already initialized"):a.push(Ks(d||null))}),C=(n,i)=>jk(i,Uk("metadata"),n[3]),o=(n,i,t,r)=>{for(var a=0,d=n[i>>1],p=d&&d.length;a<p;a++)i&1?d[a].call(t):r=d[a].call(t,r);return r},l=(n,i,t,r,a,d)=>{var p,v,x,E,R,w=i&7,I=!!(i&8),_=!!(i&16),P=w>3?n.length+1:w?I?1:2:0,D=Kk[w+5],Z=w>3&&(n[P-1]=[]),j=n[P]||(n[P]=[]),F=w&&(!_&&!I&&(a=a.prototype),w<5&&(w>3||!_)&&cO(w<4?a:{get[t](){return e(this,d)},set[t](Y){return h(this,d,Y)}},t));w?_&&w<4&&Vk(d,(w>2?"set ":w>1?"get ":"")+t):Vk(a,t);for(var V=r.length-1;V>=0;V--)E=pO(w,t,x={},n[3],j),w&&(E.static=I,E.private=_,R=E.access={has:_?Y=>hO(a,Y):Y=>t in Y},w^3&&(R.get=_?Y=>(w^1?e:m)(Y,a,w^4?d:F.get):Y=>Y[t]),w>2&&(R.set=_?(Y,Wt)=>h(Y,a,Wt,w^4?d:F.set):(Y,Wt)=>Y[t]=Wt)),v=(0,r[V])(w?w<4?_?d:F[D]:w>4?void 0:{get:F.get,set:F.set}:a,E),x._=1,w^4||v===void 0?Ks(v)&&(w>4?Z.unshift(v):w?_?d=v:F[D]=v:a=v):typeof v!="object"||v===null?Gi("Object expected"):(Ks(p=v.get)&&(F.get=p),Ks(p=v.set)&&(F.set=p),Ks(p=v.init)&&Z.unshift(p));return w||C(n,a),F&&nh(a,t,F),_?w^4?d:F:a},b=(n,i,t)=>jk(n,typeof i!="symbol"?i+"":i,t),ah=(n,i,t)=>i.has(n)||Gi("Cannot "+t),hO=(n,i)=>Object(i)!==i?Gi('Cannot use the "in" operator on this value'):n.has(i),e=(n,i,t)=>(ah(n,i,"read from private field"),t?t.call(n):i.get(n)),s=(n,i,t)=>i.has(n)?Gi("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,t),h=(n,i,t,r)=>(ah(n,i,"write to private field"),r?r.call(n,t):i.set(n,t),t),m=(n,i,t)=>(ah(n,i,"access private method"),t);var Yi=(n,i,t,r)=>({set _(a){h(n,i,a,t)},get _(){return e(n,i,r)}});var Wk=null;function Gk(){return Wk}function Yk({theme:n,components:i}){Wk=n,document.adoptedStyleSheets.includes(n.tokens)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,n.tokens]),n.prose&&!document.adoptedStyleSheets.includes(n.prose)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,n.prose]);for(let t of i){let r=t.tagName;if(customElements.get(r))continue;let a=n.styles.get(r),p=[...Array.isArray(t.styles)?t.styles:t.styles?[t.styles]:[],n.base,...a?[a]:[]],v=class extends t{static styles=p};customElements.define(r,v)}}var _a=globalThis,Ia=_a.ShadowRoot&&(_a.ShadyCSS===void 0||_a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lh=Symbol(),Xk=new WeakMap,Ws=class{constructor(i,t,r){if(this._$cssResult$=!0,r!==lh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(Ia&&i===void 0){let r=t!==void 0&&t.length===1;r&&(i=Xk.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&Xk.set(t,i))}return i}toString(){return this.cssText}},Aa=n=>new Ws(typeof n=="string"?n:n+"",void 0,lh),c=(n,...i)=>{let t=n.length===1?n[0]:i.reduce((r,a,d)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+n[d+1],n[0]);return new Ws(t,n,lh)},za=(n,i)=>{if(Ia)n.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let r=document.createElement("style"),a=_a.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=t.cssText,n.appendChild(r)}},dh=Ia?n=>n:n=>n instanceof CSSStyleSheet?(i=>{let t="";for(let r of i.cssRules)t+=r.cssText;return Aa(t)})(n):n;var{is:uO,defineProperty:mO,getOwnPropertyDescriptor:fO,getOwnPropertyNames:vO,getOwnPropertySymbols:gO,getPrototypeOf:bO}=Object,Oa=globalThis,Qk=Oa.trustedTypes,yO=Qk?Qk.emptyScript:"",xO=Oa.reactiveElementPolyfillSupport,Gs=(n,i)=>n,Ys={toAttribute(n,i){switch(i){case Boolean:n=n?yO:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,i){let t=n;switch(i){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},La=(n,i)=>!uO(n,i),Jk={attribute:!0,type:String,converter:Ys,reflect:!1,useDefault:!1,hasChanged:La};Symbol.metadata??=Symbol("metadata"),Oa.litPropertyMetadata??=new WeakMap;var Wr=class extends HTMLElement{static addInitializer(i){this._$Ei(),(this.l??=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Jk){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(i,t),!t.noAccessor){let r=Symbol(),a=this.getPropertyDescriptor(i,r,t);a!==void 0&&mO(this.prototype,i,a)}}static getPropertyDescriptor(i,t,r){let{get:a,set:d}=fO(this.prototype,i)??{get(){return this[t]},set(p){this[t]=p}};return{get:a,set(p){let v=a?.call(this);d?.call(this,p),this.requestUpdate(i,v,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)??Jk}static _$Ei(){if(this.hasOwnProperty(Gs("elementProperties")))return;let i=bO(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Gs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Gs("properties"))){let t=this.properties,r=[...vO(t),...gO(t)];for(let a of r)this.createProperty(a,t[a])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[r,a]of t)this.elementProperties.set(r,a)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let a=this._$Eu(t,r);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let r=new Set(i.flat(1/0).reverse());for(let a of r)t.unshift(dh(a))}else i!==void 0&&t.push(dh(i));return t}static _$Eu(i,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.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(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(i=>i(this))}addController(i){(this._$EO??=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&i.hostConnected?.()}removeController(i){this._$EO?.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){let i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return za(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(i=>i.hostConnected?.())}enableUpdating(i){}disconnectedCallback(){this._$EO?.forEach(i=>i.hostDisconnected?.())}attributeChangedCallback(i,t,r){this._$AK(i,r)}_$ET(i,t){let r=this.constructor.elementProperties.get(i),a=this.constructor._$Eu(i,r);if(a!==void 0&&r.reflect===!0){let d=(r.converter?.toAttribute!==void 0?r.converter:Ys).toAttribute(t,r.type);this._$Em=i,d==null?this.removeAttribute(a):this.setAttribute(a,d),this._$Em=null}}_$AK(i,t){let r=this.constructor,a=r._$Eh.get(i);if(a!==void 0&&this._$Em!==a){let d=r.getPropertyOptions(a),p=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:Ys;this._$Em=a;let v=p.fromAttribute(t,d.type);this[a]=v??this._$Ej?.get(a)??v,this._$Em=null}}requestUpdate(i,t,r,a=!1,d){if(i!==void 0){let p=this.constructor;if(a===!1&&(d=this[i]),r??=p.getPropertyOptions(i),!((r.hasChanged??La)(d,t)||r.useDefault&&r.reflect&&d===this._$Ej?.get(i)&&!this.hasAttribute(p._$Eu(i,r))))return;this.C(i,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,t,{useDefault:r,reflect:a,wrapped:d},p){r&&!(this._$Ej??=new Map).has(i)&&(this._$Ej.set(i,p??t??this[i]),d!==!0||p!==void 0)||(this._$AL.has(i)||(this.hasUpdated||r||(t=void 0),this._$AL.set(i,t)),a===!0&&this._$Em!==i&&(this._$Eq??=new Set).add(i))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,d]of this._$Ep)this[a]=d;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[a,d]of r){let{wrapped:p}=d,v=this[a];p!==!0||this._$AL.has(a)||v===void 0||this.C(a,void 0,d,v)}}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw i=!1,this._$EM(),r}i&&this._$AE(t)}willUpdate(i){}_$AE(i){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(i){}firstUpdated(i){}};Wr.elementStyles=[],Wr.shadowRootOptions={mode:"open"},Wr[Gs("elementProperties")]=new Map,Wr[Gs("finalized")]=new Map,xO?.({ReactiveElement:Wr}),(Oa.reactiveElementVersions??=[]).push("2.1.2");var ph=globalThis,Zk=n=>n,Pa=ph.trustedTypes,tC=Pa?Pa.createPolicy("lit-html",{createHTML:n=>n}):void 0,hh="$lit$",Gr=`lit$${Math.random().toFixed(9).slice(2)}$`,uh="?"+Gr,wO=`<${uh}>`,Xo=document,Qs=()=>Xo.createComment(""),Js=n=>n===null||typeof n!="object"&&typeof n!="function",mh=Array.isArray,nC=n=>mh(n)||typeof n?.[Symbol.iterator]=="function",ch=`[
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
1
|
+
var h2=Object.create;var nh=Object.defineProperty;var u2=Object.getOwnPropertyDescriptor;var jk=(a,i)=>(i=Symbol[a])?i:Symbol.for("Symbol."+a),Yi=a=>{throw TypeError(a)};var Kk=(a,i,t)=>i in a?nh(a,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[i]=t;var Uk=(a,i)=>nh(a,"name",{value:i,configurable:!0});var S=a=>[,,,h2(a?.[jk("metadata")]??null)],Wk=["class","method","getter","setter","accessor","field","value","get","set"],Ws=a=>a!==void 0&&typeof a!="function"?Yi("Function expected"):a,m2=(a,i,t,r,n)=>({kind:Wk[a],name:i,metadata:r,addInitializer:d=>t._?Yi("Already initialized"):n.push(Ws(d||null))}),C=(a,i)=>Kk(i,jk("metadata"),a[3]),o=(a,i,t,r)=>{for(var n=0,d=a[i>>1],p=d&&d.length;n<p;n++)i&1?d[n].call(t):r=d[n].call(t,r);return r},l=(a,i,t,r,n,d)=>{var p,v,x,E,R,w=i&7,I=!!(i&8),_=!!(i&16),P=w>3?a.length+1:w?I?1:2:0,D=Wk[w+5],Z=w>3&&(a[P-1]=[]),j=a[P]||(a[P]=[]),F=w&&(!_&&!I&&(n=n.prototype),w<5&&(w>3||!_)&&u2(w<4?n:{get[t](){return e(this,d)},set[t](Y){return h(this,d,Y)}},t));w?_&&w<4&&Uk(d,(w>2?"set ":w>1?"get ":"")+t):Uk(n,t);for(var V=r.length-1;V>=0;V--)E=m2(w,t,x={},a[3],j),w&&(E.static=I,E.private=_,R=E.access={has:_?Y=>f2(n,Y):Y=>t in Y},w^3&&(R.get=_?Y=>(w^1?e:m)(Y,n,w^4?d:F.get):Y=>Y[t]),w>2&&(R.set=_?(Y,Wt)=>h(Y,n,Wt,w^4?d:F.set):(Y,Wt)=>Y[t]=Wt)),v=(0,r[V])(w?w<4?_?d:F[D]:w>4?void 0:{get:F.get,set:F.set}:n,E),x._=1,w^4||v===void 0?Ws(v)&&(w>4?Z.unshift(v):w?_?d=v:F[D]=v:n=v):typeof v!="object"||v===null?Yi("Object expected"):(Ws(p=v.get)&&(F.get=p),Ws(p=v.set)&&(F.set=p),Ws(p=v.init)&&Z.unshift(p));return w||C(a,n),F&&nh(n,t,F),_?w^4?d:F:n},b=(a,i,t)=>Kk(a,typeof i!="symbol"?i+"":i,t),ah=(a,i,t)=>i.has(a)||Yi("Cannot "+t),f2=(a,i)=>Object(i)!==i?Yi('Cannot use the "in" operator on this value'):a.has(i),e=(a,i,t)=>(ah(a,i,"read from private field"),t?t.call(a):i.get(a)),s=(a,i,t)=>i.has(a)?Yi("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(a):i.set(a,t),h=(a,i,t,r)=>(ah(a,i,"write to private field"),r?r.call(a,t):i.set(a,t),t),m=(a,i,t)=>(ah(a,i,"access private method"),t);var Xi=(a,i,t,r)=>({set _(n){h(a,i,n,t)},get _(){return e(a,i,r)}});function v2(a){let i=new Set,t=[];function r(n){if(!i.has(n.tagName)){if(i.add(n.tagName),n.dependencies)for(let d of n.dependencies)r(d);t.push(n)}}for(let n of a)r(n);return t}var Gk=null;function Yk(){return Gk}function Xk({theme:a,components:i}){Gk=a,document.adoptedStyleSheets.includes(a.tokens)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,a.tokens]),a.prose&&!document.adoptedStyleSheets.includes(a.prose)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,a.prose]);let t=v2(i);for(let r of t){let n=r.tagName;if(customElements.get(n))continue;let d=a.styles.get(n),v=[...Array.isArray(r.styles)?r.styles:r.styles?[r.styles]:[],a.base,...d?[d]:[]],x=class extends r{static styles=v};customElements.define(n,x)}}var Ia=globalThis,Aa=Ia.ShadowRoot&&(Ia.ShadyCSS===void 0||Ia.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lh=Symbol(),Qk=new WeakMap,Gs=class{constructor(i,t,r){if(this._$cssResult$=!0,r!==lh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(Aa&&i===void 0){let r=t!==void 0&&t.length===1;r&&(i=Qk.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&Qk.set(t,i))}return i}toString(){return this.cssText}},bo=a=>new Gs(typeof a=="string"?a:a+"",void 0,lh),c=(a,...i)=>{let t=a.length===1?a[0]:i.reduce((r,n,d)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+a[d+1],a[0]);return new Gs(t,a,lh)},za=(a,i)=>{if(Aa)a.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let r=document.createElement("style"),n=Ia.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,a.appendChild(r)}},dh=Aa?a=>a:a=>a instanceof CSSStyleSheet?(i=>{let t="";for(let r of i.cssRules)t+=r.cssText;return bo(t)})(a):a;var{is:g2,defineProperty:b2,getOwnPropertyDescriptor:y2,getOwnPropertyNames:x2,getOwnPropertySymbols:w2,getPrototypeOf:k2}=Object,Oa=globalThis,Jk=Oa.trustedTypes,C2=Jk?Jk.emptyScript:"",S2=Oa.reactiveElementPolyfillSupport,Ys=(a,i)=>a,Xs={toAttribute(a,i){switch(i){case Boolean:a=a?C2:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,i){let t=a;switch(i){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},La=(a,i)=>!g2(a,i),Zk={attribute:!0,type:String,converter:Xs,reflect:!1,useDefault:!1,hasChanged:La};Symbol.metadata??=Symbol("metadata"),Oa.litPropertyMetadata??=new WeakMap;var Wr=class extends HTMLElement{static addInitializer(i){this._$Ei(),(this.l??=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Zk){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(i,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(i,r,t);n!==void 0&&b2(this.prototype,i,n)}}static getPropertyDescriptor(i,t,r){let{get:n,set:d}=y2(this.prototype,i)??{get(){return this[t]},set(p){this[t]=p}};return{get:n,set(p){let v=n?.call(this);d?.call(this,p),this.requestUpdate(i,v,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)??Zk}static _$Ei(){if(this.hasOwnProperty(Ys("elementProperties")))return;let i=k2(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Ys("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ys("properties"))){let t=this.properties,r=[...x2(t),...w2(t)];for(let n of r)this.createProperty(n,t[n])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let r=new Set(i.flat(1/0).reverse());for(let n of r)t.unshift(dh(n))}else i!==void 0&&t.push(dh(i));return t}static _$Eu(i,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.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(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(i=>i(this))}addController(i){(this._$EO??=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&i.hostConnected?.()}removeController(i){this._$EO?.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){let i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return za(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(i=>i.hostConnected?.())}enableUpdating(i){}disconnectedCallback(){this._$EO?.forEach(i=>i.hostDisconnected?.())}attributeChangedCallback(i,t,r){this._$AK(i,r)}_$ET(i,t){let r=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,r);if(n!==void 0&&r.reflect===!0){let d=(r.converter?.toAttribute!==void 0?r.converter:Xs).toAttribute(t,r.type);this._$Em=i,d==null?this.removeAttribute(n):this.setAttribute(n,d),this._$Em=null}}_$AK(i,t){let r=this.constructor,n=r._$Eh.get(i);if(n!==void 0&&this._$Em!==n){let d=r.getPropertyOptions(n),p=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:Xs;this._$Em=n;let v=p.fromAttribute(t,d.type);this[n]=v??this._$Ej?.get(n)??v,this._$Em=null}}requestUpdate(i,t,r,n=!1,d){if(i!==void 0){let p=this.constructor;if(n===!1&&(d=this[i]),r??=p.getPropertyOptions(i),!((r.hasChanged??La)(d,t)||r.useDefault&&r.reflect&&d===this._$Ej?.get(i)&&!this.hasAttribute(p._$Eu(i,r))))return;this.C(i,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,t,{useDefault:r,reflect:n,wrapped:d},p){r&&!(this._$Ej??=new Map).has(i)&&(this._$Ej.set(i,p??t??this[i]),d!==!0||p!==void 0)||(this._$AL.has(i)||(this.hasUpdated||r||(t=void 0),this._$AL.set(i,t)),n===!0&&this._$Em!==i&&(this._$Eq??=new Set).add(i))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,d]of this._$Ep)this[n]=d;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,d]of r){let{wrapped:p}=d,v=this[n];p!==!0||this._$AL.has(n)||v===void 0||this.C(n,void 0,d,v)}}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw i=!1,this._$EM(),r}i&&this._$AE(t)}willUpdate(i){}_$AE(i){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(i){}firstUpdated(i){}};Wr.elementStyles=[],Wr.shadowRootOptions={mode:"open"},Wr[Ys("elementProperties")]=new Map,Wr[Ys("finalized")]=new Map,S2?.({ReactiveElement:Wr}),(Oa.reactiveElementVersions??=[]).push("2.1.2");var ph=globalThis,tC=a=>a,Pa=ph.trustedTypes,eC=Pa?Pa.createPolicy("lit-html",{createHTML:a=>a}):void 0,hh="$lit$",Gr=`lit$${Math.random().toFixed(9).slice(2)}$`,uh="?"+Gr,E2=`<${uh}>`,Qo=document,Js=()=>Qo.createComment(""),Zs=a=>a===null||typeof a!="object"&&typeof a!="function",mh=Array.isArray,aC=a=>mh(a)||typeof a?.[Symbol.iterator]=="function",ch=`[
|
|
2
|
+
\f\r]`,Qs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rC=/-->/g,oC=/>/g,Yo=RegExp(`>|${ch}(?:([^\\s"'>=/]+)(${ch}*=${ch}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),iC=/'/g,sC=/"/g,lC=/^(?:script|style|textarea|title)$/i,fh=a=>(i,...t)=>({_$litType$:a,strings:i,values:t}),f=fh(1),Da=fh(2),WP=fh(3),Jt=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),nC=new WeakMap,Xo=Qo.createTreeWalker(Qo,129);function dC(a,i){if(!mh(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return eC!==void 0?eC.createHTML(i):i}var cC=(a,i)=>{let t=a.length-1,r=[],n,d=i===2?"<svg>":i===3?"<math>":"",p=Qs;for(let v=0;v<t;v++){let x=a[v],E,R,w=-1,I=0;for(;I<x.length&&(p.lastIndex=I,R=p.exec(x),R!==null);)I=p.lastIndex,p===Qs?R[1]==="!--"?p=rC:R[1]!==void 0?p=oC:R[2]!==void 0?(lC.test(R[2])&&(n=RegExp("</"+R[2],"g")),p=Yo):R[3]!==void 0&&(p=Yo):p===Yo?R[0]===">"?(p=n??Qs,w=-1):R[1]===void 0?w=-2:(w=p.lastIndex-R[2].length,E=R[1],p=R[3]===void 0?Yo:R[3]==='"'?sC:iC):p===sC||p===iC?p=Yo:p===rC||p===oC?p=Qs:(p=Yo,n=void 0);let _=p===Yo&&a[v+1].startsWith("/>")?" ":"";d+=p===Qs?x+E2:w>=0?(r.push(E),x.slice(0,w)+hh+x.slice(w)+Gr+_):x+Gr+(w===-2?v:_)}return[dC(a,d+(a[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]},tn=class a{constructor({strings:i,_$litType$:t},r){let n;this.parts=[];let d=0,p=0,v=i.length-1,x=this.parts,[E,R]=cC(i,t);if(this.el=a.createElement(E,r),Xo.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(n=Xo.nextNode())!==null&&x.length<v;){if(n.nodeType===1){if(n.hasAttributes())for(let w of n.getAttributeNames())if(w.endsWith(hh)){let I=R[p++],_=n.getAttribute(w).split(Gr),P=/([.?@])?(.*)/.exec(I);x.push({type:1,index:d,name:P[2],strings:_,ctor:P[1]==="."?Fa:P[1]==="?"?Ha:P[1]==="@"?Na:Zo}),n.removeAttribute(w)}else w.startsWith(Gr)&&(x.push({type:6,index:d}),n.removeAttribute(w));if(lC.test(n.tagName)){let w=n.textContent.split(Gr),I=w.length-1;if(I>0){n.textContent=Pa?Pa.emptyScript:"";for(let _=0;_<I;_++)n.append(w[_],Js()),Xo.nextNode(),x.push({type:2,index:++d});n.append(w[I],Js())}}}else if(n.nodeType===8)if(n.data===uh)x.push({type:2,index:d});else{let w=-1;for(;(w=n.data.indexOf(Gr,w+1))!==-1;)x.push({type:7,index:d}),w+=Gr.length-1}d++}}static createElement(i,t){let r=Qo.createElement("template");return r.innerHTML=i,r}};function Jo(a,i,t=a,r){if(i===Jt)return i;let n=r!==void 0?t._$Co?.[r]:t._$Cl,d=Zs(i)?void 0:i._$litDirective$;return n?.constructor!==d&&(n?._$AO?.(!1),d===void 0?n=void 0:(n=new d(a),n._$AT(a,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(i=Jo(a,n._$AS(a,i.values),n,r)),i}var Ma=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){let{el:{content:t},parts:r}=this._$AD,n=(i?.creationScope??Qo).importNode(t,!0);Xo.currentNode=n;let d=Xo.nextNode(),p=0,v=0,x=r[0];for(;x!==void 0;){if(p===x.index){let E;x.type===2?E=new Qi(d,d.nextSibling,this,i):x.type===1?E=new x.ctor(d,x.name,x.strings,this,i):x.type===6&&(E=new Ba(d,this,i)),this._$AV.push(E),x=r[++v]}p!==x?.index&&(d=Xo.nextNode(),p++)}return Xo.currentNode=Qo,n}p(i){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,t),t+=r.strings.length-2):r._$AI(i[t])),t++}},Qi=class a{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(i,t,r,n){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&i?.nodeType===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=Jo(this,i,t),Zs(i)?i===$||i==null||i===""?(this._$AH!==$&&this._$AR(),this._$AH=$):i!==this._$AH&&i!==Jt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):aC(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==$&&Zs(this._$AH)?this._$AA.nextSibling.data=i:this.T(Qo.createTextNode(i)),this._$AH=i}$(i){let{values:t,_$litType$:r}=i,n=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=tn.createElement(dC(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let d=new Ma(n,this),p=d.u(this.options);d.p(t),this.T(p),this._$AH=d}}_$AC(i){let t=nC.get(i.strings);return t===void 0&&nC.set(i.strings,t=new tn(i)),t}k(i){mh(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let d of i)n===t.length?t.push(r=new a(this.O(Js()),this.O(Js()),this,this.options)):r=t[n],r._$AI(d),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(i=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);i!==this._$AB;){let r=tC(i).nextSibling;tC(i).remove(),i=r}}setConnected(i){this._$AM===void 0&&(this._$Cv=i,this._$AP?.(i))}},Zo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,r,n,d){this.type=1,this._$AH=$,this._$AN=void 0,this.element=i,this.name=t,this._$AM=n,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=$}_$AI(i,t=this,r,n){let d=this.strings,p=!1;if(d===void 0)i=Jo(this,i,t,0),p=!Zs(i)||i!==this._$AH&&i!==Jt,p&&(this._$AH=i);else{let v=i,x,E;for(i=d[0],x=0;x<d.length-1;x++)E=Jo(this,v[r+x],t,x),E===Jt&&(E=this._$AH[x]),p||=!Zs(E)||E!==this._$AH[x],E===$?i=$:i!==$&&(i+=(E??"")+d[x+1]),this._$AH[x]=E}p&&!n&&this.j(i)}j(i){i===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i??"")}},Fa=class extends Zo{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===$?void 0:i}},Ha=class extends Zo{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==$)}},Na=class extends Zo{constructor(i,t,r,n,d){super(i,t,r,n,d),this.type=5}_$AI(i,t=this){if((i=Jo(this,i,t,0)??$)===Jt)return;let r=this._$AH,n=i===$&&r!==$||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,d=i!==$&&(r===$||n);n&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,i):this._$AH.handleEvent(i)}},Ba=class{constructor(i,t,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){Jo(this,i)}},pC={M:hh,P:Gr,A:uh,C:1,L:cC,R:Ma,D:aC,V:Jo,I:Qi,H:Zo,N:Ha,U:Na,B:Fa,F:Ba},$2=ph.litHtmlPolyfillSupport;$2?.(tn,Qi),(ph.litHtmlVersions??=[]).push("3.3.2");var qa=(a,i,t)=>{let r=t?.renderBefore??i,n=r._$litPart$;if(n===void 0){let d=t?.renderBefore??null;r._$litPart$=n=new Qi(i.insertBefore(Js(),d),d,void 0,t??{})}return n._$AI(a),n};var vh=globalThis,g=class extends Wr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let i=super.createRenderRoot();return this.renderOptions.renderBefore??=i.firstChild,i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=qa(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Jt}};g._$litElement$=!0,g.finalized=!0,vh.litElementHydrateSupport?.({LitElement:g});var T2=vh.litElementPolyfillSupport;T2?.({LitElement:g});(vh.litElementVersions??=[]).push("4.2.2");var gh=c`
|
|
4
4
|
:host {
|
|
5
5
|
font-size: inherit;
|
|
6
6
|
letter-spacing: inherit;
|
|
@@ -10,7 +10,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
10
10
|
::slotted(:last-child) {
|
|
11
11
|
--accordion-item-border: none;
|
|
12
12
|
}
|
|
13
|
-
`;var
|
|
13
|
+
`;var hC={"2xs":{fontSize:"var(--font-size-2xs)",letterSpacing:"var(--letter-spacing-wider)",lineHeight:"var(--line-height-normal)"},xs:{fontSize:"var(--font-size-xs)",letterSpacing:"var(--letter-spacing-wide)",lineHeight:"var(--line-height-normal)"},sm:{fontSize:"var(--font-size-sm)",letterSpacing:"var(--letter-spacing-wide)",lineHeight:"var(--line-height-normal)"},base:{fontSize:"var(--font-size-base)",letterSpacing:"var(--letter-spacing-normal)",lineHeight:"var(--line-height-normal)"},md:{fontSize:"var(--font-size-md)",letterSpacing:"var(--letter-spacing-normal)",lineHeight:"var(--line-height-normal)"},lg:{fontSize:"var(--font-size-lg)",letterSpacing:"var(--letter-spacing-tight)",lineHeight:"var(--line-height-snug)"},xl:{fontSize:"var(--font-size-xl)",letterSpacing:"var(--letter-spacing-tight)",lineHeight:"var(--line-height-snug)"},"2xl":{fontSize:"var(--font-size-2xl)",letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"},"3xl":{fontSize:"var(--font-size-3xl)",letterSpacing:"var(--letter-spacing-tighter)",lineHeight:"var(--line-height-tight)"},"4xl":{fontSize:"var(--font-size-4xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-tight)"},"5xl":{fontSize:"var(--font-size-5xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-none)"},"6xl":{fontSize:"var(--font-size-6xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-none)"},"7xl":{fontSize:"var(--font-size-7xl)",letterSpacing:"var(--letter-spacing-tightest)",lineHeight:"var(--line-height-none)"}};function M(a,i){let t=hC[a],r=i?.letterSpacing??t.letterSpacing,n=i?.lineHeight??t.lineHeight;return bo(`font-size: ${t.fontSize}; letter-spacing: ${r}; line-height: ${n};`)}var uC=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")`),yh=c`
|
|
14
14
|
/* ── Item ── */
|
|
15
15
|
|
|
16
16
|
[part="item"] {
|
|
@@ -54,17 +54,23 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
54
54
|
opacity: 0.4;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
/* ── Indicator ── */
|
|
57
|
+
/* ── Indicator (theme-owned) ── */
|
|
58
58
|
|
|
59
|
-
[part="
|
|
59
|
+
[part="trigger"]::after {
|
|
60
|
+
content: "";
|
|
61
|
+
display: var(--collapsible-indicator-display, block);
|
|
60
62
|
width: var(--space-4);
|
|
61
63
|
height: var(--space-4);
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
background: currentColor;
|
|
66
|
+
-webkit-mask: ${uC} center / contain no-repeat;
|
|
67
|
+
mask: ${uC} center / contain no-repeat;
|
|
62
68
|
transition-property: transform;
|
|
63
69
|
transition-duration: var(--duration-fast);
|
|
64
70
|
transition-timing-function: var(--ease-out-3);
|
|
65
71
|
}
|
|
66
72
|
|
|
67
|
-
[part="trigger"][data-open]
|
|
73
|
+
[part="trigger"][data-open]::after {
|
|
68
74
|
transform: rotate(180deg);
|
|
69
75
|
}
|
|
70
76
|
|
|
@@ -92,7 +98,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
92
98
|
|
|
93
99
|
@media (prefers-reduced-motion: reduce) {
|
|
94
100
|
[part="trigger"],
|
|
95
|
-
[part="
|
|
101
|
+
[part="trigger"]::after,
|
|
96
102
|
[part="panel"] {
|
|
97
103
|
transition-duration: 0s;
|
|
98
104
|
}
|
|
@@ -961,13 +967,13 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
961
967
|
[part="root"][data-disabled] {
|
|
962
968
|
opacity: 0.4;
|
|
963
969
|
}
|
|
964
|
-
`;var Vh=c`
|
|
970
|
+
`;var mC=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")`),Vh=c`
|
|
965
971
|
/* ── Trigger ── */
|
|
966
972
|
|
|
967
973
|
[part="trigger"] {
|
|
968
974
|
gap: var(--space-4);
|
|
969
975
|
padding-block: var(--space-2);
|
|
970
|
-
padding-inline: var(--space-
|
|
976
|
+
padding-inline: var(--space-2);
|
|
971
977
|
color: var(--text-1);
|
|
972
978
|
font-family: var(--font-sans);
|
|
973
979
|
font-weight: var(--font-weight-semibold);
|
|
@@ -996,17 +1002,23 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
996
1002
|
opacity: 0.4;
|
|
997
1003
|
}
|
|
998
1004
|
|
|
999
|
-
/* ── Indicator ── */
|
|
1005
|
+
/* ── Indicator (theme-owned) ── */
|
|
1000
1006
|
|
|
1001
|
-
[part="
|
|
1007
|
+
[part="trigger"]::after {
|
|
1008
|
+
content: "";
|
|
1009
|
+
display: var(--collapsible-indicator-display, block);
|
|
1002
1010
|
width: var(--space-4);
|
|
1003
1011
|
height: var(--space-4);
|
|
1012
|
+
flex-shrink: 0;
|
|
1013
|
+
background: currentColor;
|
|
1014
|
+
-webkit-mask: ${mC} center / contain no-repeat;
|
|
1015
|
+
mask: ${mC} center / contain no-repeat;
|
|
1004
1016
|
transition-property: transform;
|
|
1005
1017
|
transition-duration: var(--duration-fast);
|
|
1006
1018
|
transition-timing-function: var(--ease-out-3);
|
|
1007
1019
|
}
|
|
1008
1020
|
|
|
1009
|
-
[part="trigger"][data-open]
|
|
1021
|
+
[part="trigger"][data-open]::after {
|
|
1010
1022
|
transform: rotate(180deg);
|
|
1011
1023
|
}
|
|
1012
1024
|
|
|
@@ -1023,7 +1035,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
1023
1035
|
}
|
|
1024
1036
|
|
|
1025
1037
|
[part="content"] {
|
|
1026
|
-
padding: var(--space-1) var(--space-
|
|
1038
|
+
padding: var(--space-1) var(--space-2) var(--space-3);
|
|
1027
1039
|
font-family: var(--font-sans);
|
|
1028
1040
|
${M("sm")}
|
|
1029
1041
|
font-weight: var(--font-weight-regular);
|
|
@@ -1034,7 +1046,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
1034
1046
|
|
|
1035
1047
|
@media (prefers-reduced-motion: reduce) {
|
|
1036
1048
|
[part="trigger"],
|
|
1037
|
-
[part="
|
|
1049
|
+
[part="trigger"]::after,
|
|
1038
1050
|
[part="panel"] {
|
|
1039
1051
|
transition-duration: 0s;
|
|
1040
1052
|
}
|
|
@@ -1263,14 +1275,25 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
1263
1275
|
}
|
|
1264
1276
|
`;var Gh=c``;var Yh=c`
|
|
1265
1277
|
:host {
|
|
1266
|
-
height: var(--component-height-xs);
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1278
|
+
--tabs-indicator-height: var(--component-height-xs);
|
|
1279
|
+
--tabs-indicator-radius: var(--radius-sm);
|
|
1280
|
+
--tabs-indicator-bg: oklch(from var(--foreground) l c h / 0.08);
|
|
1281
|
+
--tabs-indicator-duration: var(--duration-normal);
|
|
1282
|
+
--tabs-indicator-easing: var(--ease-in-out-3);
|
|
1283
|
+
|
|
1284
|
+
height: var(--tabs-indicator-height);
|
|
1285
|
+
border-radius: var(--tabs-indicator-radius);
|
|
1286
|
+
background: var(--tabs-indicator-bg);
|
|
1287
|
+
transition-duration: var(--tabs-indicator-duration);
|
|
1288
|
+
transition-timing-function: var(--tabs-indicator-easing);
|
|
1271
1289
|
}
|
|
1272
1290
|
`;var Xh=c`
|
|
1291
|
+
:host {
|
|
1292
|
+
--tabs-list-justify: start;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1273
1295
|
[part="list"] {
|
|
1296
|
+
justify-content: var(--tabs-list-justify);
|
|
1274
1297
|
padding-inline: 0;
|
|
1275
1298
|
gap: 0;
|
|
1276
1299
|
}
|
|
@@ -1281,15 +1304,37 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
1281
1304
|
padding-block: var(--space-1);
|
|
1282
1305
|
}
|
|
1283
1306
|
`;var Qh=c`
|
|
1307
|
+
:host {
|
|
1308
|
+
--tabs-panel-padding: var(--space-3);
|
|
1309
|
+
--tabs-panel-border-width: var(--border-width-thin);
|
|
1310
|
+
--tabs-panel-border-color: var(--border);
|
|
1311
|
+
--tabs-panel-border-radius: var(--radius-md);
|
|
1312
|
+
--tabs-panel-background: none;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
:host(:not([data-hidden])) {
|
|
1316
|
+
flex: 1;
|
|
1317
|
+
min-height: 0;
|
|
1318
|
+
padding: var(--tabs-panel-padding);
|
|
1319
|
+
border: var(--tabs-panel-border-width) solid var(--tabs-panel-border-color);
|
|
1320
|
+
border-radius: var(--tabs-panel-border-radius);
|
|
1321
|
+
background: var(--tabs-panel-background);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1284
1324
|
[part="panel"] {
|
|
1285
1325
|
transition-property: box-shadow;
|
|
1286
1326
|
transition-duration: var(--duration-fast);
|
|
1327
|
+
font-family: var(--font-sans);
|
|
1328
|
+
${M("sm")}
|
|
1329
|
+
font-weight: var(--font-weight-regular);
|
|
1330
|
+
color: var(--text-2);
|
|
1287
1331
|
}
|
|
1288
1332
|
|
|
1289
1333
|
[part="panel"]:focus-visible {
|
|
1290
1334
|
box-shadow:
|
|
1291
1335
|
0 0 0 var(--focus-ring-offset) var(--background),
|
|
1292
|
-
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width))
|
|
1336
|
+
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width))
|
|
1337
|
+
var(--focus-ring-color);
|
|
1293
1338
|
border-radius: var(--radius-md);
|
|
1294
1339
|
}
|
|
1295
1340
|
`;var Jh=c`
|
|
@@ -2375,7 +2420,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
2375
2420
|
|
|
2376
2421
|
[part="track"] {
|
|
2377
2422
|
height: var(--progress-height);
|
|
2378
|
-
background: var(--
|
|
2423
|
+
background: color-mix(in oklch, var(--foreground) 08%, transparent);
|
|
2379
2424
|
border-radius: var(--radius-full);
|
|
2380
2425
|
}
|
|
2381
2426
|
|
|
@@ -2887,7 +2932,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
2887
2932
|
0 0 0 var(--focus-ring-offset) var(--background),
|
|
2888
2933
|
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
|
|
2889
2934
|
}
|
|
2890
|
-
`;var
|
|
2935
|
+
`;var Du=c`
|
|
2936
|
+
[part="root"] {
|
|
2937
|
+
gap: var(--space-4);
|
|
2938
|
+
}
|
|
2939
|
+
`;var fC=`/* =================================================================
|
|
2891
2940
|
* DUI Prose \u2014 Rich-text / markdown content styles
|
|
2892
2941
|
* =================================================================
|
|
2893
2942
|
* Apply class="dui-prose" to any container with rendered HTML
|
|
@@ -3137,7 +3186,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
3137
3186
|
cursor: pointer;
|
|
3138
3187
|
font-weight: var(--font-weight-medium);
|
|
3139
3188
|
}
|
|
3140
|
-
`;var Va=new CSSStyleSheet;Va.replaceSync(
|
|
3189
|
+
`;var Va=new CSSStyleSheet;Va.replaceSync(fC);var vC=`/* =================================================================
|
|
3141
3190
|
* DUI Design Tokens
|
|
3142
3191
|
* =================================================================
|
|
3143
3192
|
* Combined token system: spacing, typography, borders, elevation,
|
|
@@ -3222,6 +3271,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
3222
3271
|
--letter-spacing-normal: 0em;
|
|
3223
3272
|
--letter-spacing-wide: 0.006em;
|
|
3224
3273
|
--letter-spacing-wider: 0.012em;
|
|
3274
|
+
--letter-spacing-widest: 0.018em;
|
|
3225
3275
|
|
|
3226
3276
|
--font-size-fluid-sm: clamp(0.813rem, 0.75rem + 0.315vw, 0.875rem);
|
|
3227
3277
|
--font-size-fluid-md: clamp(0.875rem, 0.813rem + 0.315vw, 1rem);
|
|
@@ -3498,7 +3548,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
3498
3548
|
-webkit-font-smoothing: antialiased;
|
|
3499
3549
|
-moz-osx-font-smoothing: grayscale;
|
|
3500
3550
|
}
|
|
3501
|
-
`;var
|
|
3551
|
+
`;var gC=`/* =================================================================
|
|
3502
3552
|
* CSS @property Declarations
|
|
3503
3553
|
* =================================================================
|
|
3504
3554
|
* Typed API surface for theme-default's component-level CSS custom
|
|
@@ -3860,8 +3910,8 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
3860
3910
|
inherits: true;
|
|
3861
3911
|
initial-value: 0.5rem;
|
|
3862
3912
|
}
|
|
3863
|
-
`;var
|
|
3864
|
-
`+
|
|
3913
|
+
`;var qu=new CSSStyleSheet;qu.replaceSync(gC+`
|
|
3914
|
+
`+vC);var bC={tokens:qu,base:gh,prose:Va,styles:new Map([["dui-accordion",bh],["dui-accordion-item",yh],["dui-button",xh],["dui-switch",wh],["dui-badge",kh],["dui-scroll-area",Ch],["dui-combobox",Sh],["dui-menu",Eh],["dui-menu-item",$h],["dui-popover",Th],["dui-popover-popup",Rh],["dui-tooltip",_h],["dui-tooltip-popup",Ih],["dui-dialog",Ah],["dui-dialog-popup",zh],["dui-alert-dialog",Oh],["dui-alert-dialog-popup",Lh],["dui-breadcrumb",Ph],["dui-breadcrumb-item",Mh],["dui-breadcrumb-link",Fh],["dui-breadcrumb-page",Hh],["dui-breadcrumb-separator",Nh],["dui-breadcrumb-ellipsis",Bh],["dui-checkbox",Dh],["dui-checkbox-group",qh],["dui-collapsible",Vh],["dui-toolbar",Uh],["dui-slider",jh],["dui-spinner",Kh],["dui-tab",Wh],["dui-tabs",Gh],["dui-tabs-indicator",Yh],["dui-tabs-list",Xh],["dui-tabs-panel",Qh],["dui-textarea",Jh],["dui-trunc",Zh],["dui-link",tu],["dui-avatar",eu],["dui-portal",ru],["dui-input",ou],["dui-radio",iu],["dui-radio-group",su],["dui-dropzone",nu],["dui-select",au],["dui-preview-card",lu],["dui-preview-card-popup",du],["dui-data-table",cu],["dui-command",pu],["dui-command-input",hu],["dui-command-item",uu],["dui-command-list",mu],["dui-command-group",fu],["dui-command-empty",vu],["dui-command-separator",gu],["dui-command-shortcut",bu],["dui-sidebar-provider",yu],["dui-sidebar",xu],["dui-sidebar-trigger",wu],["dui-sidebar-content",ku],["dui-sidebar-header",Cu],["dui-sidebar-footer",Su],["dui-sidebar-group",Eu],["dui-sidebar-group-label",$u],["dui-sidebar-menu",Tu],["dui-sidebar-menu-item",Ru],["dui-sidebar-menu-button",_u],["dui-sidebar-separator",Iu],["dui-sidebar-inset",Au],["dui-separator",zu],["dui-split-button",Ou],["dui-progress",Lu],["dui-toggle",Pu],["dui-toggle-group",Mu],["dui-number-field",Fu],["dui-stepper",Hu],["dui-menubar",Nu],["dui-calendar",Bu],["dui-card-grid",Du]])};var R2={attribute:!0,type:String,converter:Xs,reflect:!1,hasChanged:La},_2=(a=R2,i,t)=>{let{kind:r,metadata:n}=t,d=globalThis.litPropertyMetadata.get(n);if(d===void 0&&globalThis.litPropertyMetadata.set(n,d=new Map),r==="setter"&&((a=Object.create(a)).wrapped=!0),d.set(t.name,a),r==="accessor"){let{name:p}=t;return{set(v){let x=i.get.call(this);i.set.call(this,v),this.requestUpdate(p,x,a,!0,v)},init(v){return v!==void 0&&this.C(p,void 0,a,v),v}}}if(r==="setter"){let{name:p}=t;return function(v){let x=this[p];i.call(this,v),this.requestUpdate(p,x,a,!0,v)}}throw Error("Unsupported decorator location: "+r)};function u(a){return(i,t)=>typeof t=="object"?_2(a,i,t):((r,n,d)=>{let p=n.hasOwnProperty(d);return n.constructor.createProperty(d,r),p?Object.getOwnPropertyDescriptor(n,d):void 0})(a,i,t)}function k(a){return u({...a,state:!0,attribute:!1})}var yo=class extends Event{constructor(i,t,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=i,this.contextTarget=t,this.callback=r,this.subscribe=n??!1}};var U=class{constructor(i,t,r,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(d,p)=>{this.unsubscribe&&(this.unsubscribe!==p&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=d,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(d,p)),this.unsubscribe=p},this.host=i,t.context!==void 0){let d=t;this.context=d.context,this.callback=d.callback,this.subscribe=d.subscribe??!1}else this.context=t,this.callback=r,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new yo(this.context,this.host,this.t,this.subscribe))}};var ja=class{get value(){return this.o}set value(i){this.setValue(i)}setValue(i,t=!1){let r=t||!Object.is(i,this.o);this.o=i,r&&this.updateObservers()}constructor(i){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:r}]of this.subscriptions)t(this.o,r)},i!==void 0&&(this.value=i)}addCallback(i,t,r){if(!r)return void i(this.value);this.subscriptions.has(i)||this.subscriptions.set(i,{disposer:()=>{this.subscriptions.delete(i)},consumerHost:t});let{disposer:n}=this.subscriptions.get(i);i(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Vu=class extends Event{constructor(i,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=i,this.contextTarget=t}},Ji=class extends ja{constructor(i,t,r){super(t.context!==void 0?t.initialValue:r),this.onContextRequest=n=>{if(n.context!==this.context)return;let d=n.contextTarget??n.composedPath()[0];d!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,d,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let d=new Set;for(let[p,{consumerHost:v}]of this.subscriptions)d.has(p)||(d.add(p),v.dispatchEvent(new yo(this.context,v,p,!0)));n.stopPropagation()},this.host=i,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 Vu(this.context,this.host))}};function kt({context:a}){return(i,t)=>{let r=new WeakMap;if(typeof t=="object")return{get(){return i.get.call(this)},set(n){return r.get(this).setValue(n),i.set.call(this,n)},init(n){return r.set(this,new Ji(this,{context:a,initialValue:n})),n}};{i.constructor.addInitializer(p=>{r.set(p,new Ji(p,{context:a}))});let n=Object.getOwnPropertyDescriptor(i,t),d;if(n===void 0){let p=new WeakMap;d={get(){return p.get(this)},set(v){r.get(this).setValue(v),p.set(this,v)},configurable:!0,enumerable:!0}}else{let p=n.set;d={...n,set(v){r.get(this).setValue(v),p?.call(this,v)}}}return void Object.defineProperty(i,t,d)}}}function et({context:a,subscribe:i}){return(t,r)=>{typeof r=="object"?r.addInitializer(function(){new U(this,{context:a,callback:n=>{t.set.call(this,n)},subscribe:i})}):t.constructor.addInitializer(n=>{new U(n,{context:a,callback:d=>{n[r]=d},subscribe:i})})}}var y=c`
|
|
3865
3915
|
* {
|
|
3866
3916
|
box-sizing: border-box;
|
|
3867
3917
|
}
|
|
@@ -3929,7 +3979,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
3929
3979
|
scroll-behavior: auto !important;
|
|
3930
3980
|
}
|
|
3931
3981
|
}
|
|
3932
|
-
`;var z=(
|
|
3982
|
+
`;var z=(a,i={})=>t=>new CustomEvent(a,{...i,detail:t});var Ka=Symbol("dui-accordion");var _C=z("value-change",{bubbles:!0,composed:!0}),I2=c`
|
|
3933
3983
|
:host {
|
|
3934
3984
|
display: block;
|
|
3935
3985
|
}
|
|
@@ -3938,7 +3988,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
3938
3988
|
display: flex;
|
|
3939
3989
|
flex-direction: column;
|
|
3940
3990
|
}
|
|
3941
|
-
`,
|
|
3991
|
+
`,yC,xC,wC,kC,CC,SC,EC,$C,TC,RC,vt,Uu,ju,Ku,Wu,Gu,Yu,Xu,Qu,Ju,IC,tm,er,Zi,xr,en,Ga,Ya,Xa,Qa,Zu,Wa,Zt=class extends(RC=g,TC=[u({type:Array})],$C=[u({type:Array,attribute:"default-value"})],EC=[u({type:Boolean})],SC=[u({type:Boolean})],CC=[u({type:Boolean,attribute:"loop-focus"})],kC=[u({type:String})],wC=[u({type:Boolean,attribute:"keep-mounted"})],xC=[k()],yC=[kt({context:Ka}),k()],RC){constructor(){super(...arguments);s(this,er);s(this,Uu,o(vt,8,this)),o(vt,11,this);s(this,ju,o(vt,12,this,[])),o(vt,15,this);s(this,Ku,o(vt,16,this,!1)),o(vt,19,this);s(this,Wu,o(vt,20,this,!1)),o(vt,23,this);s(this,Gu,o(vt,24,this,!0)),o(vt,27,this);s(this,Yu,o(vt,28,this,"vertical")),o(vt,31,this);s(this,Xu,o(vt,32,this,!1)),o(vt,35,this);s(this,Qu,o(vt,36,this,[])),o(vt,39,this);s(this,Zi,new Map);s(this,xr,[]);s(this,en,()=>this.value??e(this,er,IC));s(this,Ga,t=>{let r=[...e(this,en).call(this)],n=r.indexOf(t),d;n>=0?d=r.filter(p=>p!==t):this.multiple?d=[...r,t]:d=[t],this.value===void 0&&h(this,er,d,tm),this.dispatchEvent(_C(d))});s(this,Ya,(t,r)=>{e(this,Zi).set(t,r),e(this,xr).includes(t)||e(this,xr).push(t)});s(this,Xa,t=>{e(this,Zi).delete(t),h(this,xr,e(this,xr).filter(r=>r!==t))});s(this,Qa,(t,r)=>{let n=e(this,xr).indexOf(t);if(n===-1)return;let d=e(this,xr).length,p;switch(r){case"next":n<d-1?p=n+1:this.loopFocus&&(p=0);break;case"prev":n>0?p=n-1:this.loopFocus&&(p=d-1);break;case"first":p=0;break;case"last":p=d-1;break}if(p!==void 0){let v=e(this,xr)[p];e(this,Zi).get(v)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});s(this,Zu,o(vt,40,this,m(this,er,Wa).call(this))),o(vt,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,er,[...this.defaultValue],tm),this._ctx=m(this,er,Wa).call(this)}willUpdate(){this._ctx=m(this,er,Wa).call(this)}render(){return f`
|
|
3942
3992
|
<div
|
|
3943
3993
|
part="root"
|
|
3944
3994
|
data-orientation=${this.orientation}
|
|
@@ -3946,7 +3996,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
3946
3996
|
>
|
|
3947
3997
|
<slot></slot>
|
|
3948
3998
|
</div>
|
|
3949
|
-
`}};vt=S(
|
|
3999
|
+
`}};vt=S(RC),Uu=new WeakMap,ju=new WeakMap,Ku=new WeakMap,Wu=new WeakMap,Gu=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Qu=new WeakMap,er=new WeakSet,Zi=new WeakMap,xr=new WeakMap,en=new WeakMap,Ga=new WeakMap,Ya=new WeakMap,Xa=new WeakMap,Qa=new WeakMap,Zu=new WeakMap,Wa=function(){return{openValues:e(this,en).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:e(this,Ga),registerItem:e(this,Ya),unregisterItem:e(this,Xa),focusItem:e(this,Qa)}},l(vt,4,"value",TC,Zt,Uu),l(vt,4,"defaultValue",$C,Zt,ju),l(vt,4,"disabled",EC,Zt,Ku),l(vt,4,"multiple",SC,Zt,Wu),l(vt,4,"loopFocus",CC,Zt,Gu),l(vt,4,"orientation",kC,Zt,Yu),l(vt,4,"keepMounted",wC,Zt,Xu),Ju=l(vt,20,"#internalOpenValues",xC,er,Qu),IC=Ju.get,tm=Ju.set,l(vt,4,"_ctx",yC,Zt,Zu),C(vt,Zt),b(Zt,"tagName","dui-accordion"),b(Zt,"styles",[y,I2]);var NC=z("open-change",{bubbles:!0,composed:!0}),A2=c`
|
|
3950
4000
|
:host {
|
|
3951
4001
|
display: block;
|
|
3952
4002
|
}
|
|
@@ -3969,59 +4019,42 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
3969
4019
|
cursor: default;
|
|
3970
4020
|
}
|
|
3971
4021
|
|
|
3972
|
-
[part="indicator"] {
|
|
3973
|
-
flex-shrink: 0;
|
|
3974
|
-
}
|
|
3975
|
-
|
|
3976
4022
|
[part="panel"] {
|
|
3977
4023
|
overflow: hidden;
|
|
3978
4024
|
contain: content;
|
|
3979
4025
|
transition-property: height;
|
|
3980
4026
|
}
|
|
3981
|
-
`,
|
|
3982
|
-
part="indicator"
|
|
3983
|
-
width="16"
|
|
3984
|
-
height="16"
|
|
3985
|
-
viewBox="0 0 24 24"
|
|
3986
|
-
fill="none"
|
|
3987
|
-
stroke="currentColor"
|
|
3988
|
-
stroke-width="2"
|
|
3989
|
-
stroke-linecap="round"
|
|
3990
|
-
stroke-linejoin="round"
|
|
3991
|
-
>
|
|
3992
|
-
<path d="m6 9 6 6 6-6" />
|
|
3993
|
-
</svg>`,RC,_C,IC,AC,zC,OC,LC,PC,_t,tm,em,rm,om,im,pm,Ja,N,sm,nm,Za,tl,am,lm,FC,Zo,dm,cm,hm,el,Zi,ei,ti,en,um,mm,HC,NC,rl,ol,il,rr=class extends(PC=g,LC=[u({type:String})],OC=[u({type:Boolean})],zC=[et({context:Ka,subscribe:!0})],AC=[k()],IC=[k()],_C=[k()],RC=[k()],PC){constructor(){super(...arguments);s(this,N);s(this,tm,o(_t,8,this,"")),o(_t,11,this);s(this,em,o(_t,12,this,!1)),o(_t,15,this);s(this,rm,o(_t,16,this)),o(_t,19,this);s(this,om,o(_t,20,this,!1)),o(_t,23,this);s(this,sm,o(_t,24,this,!1)),o(_t,27,this);s(this,am,o(_t,28,this,"0")),o(_t,31,this);s(this,dm,o(_t,32,this,!1)),o(_t,35,this);s(this,Zi);s(this,ei,0);s(this,rl,t=>{t.propertyName==="height"&&(e(this,N,Za)?(h(this,N,!1,tl),this._ctx?.keepMounted||h(this,N,!1,el)):e(this,N,ti)&&h(this,N,"auto",Zo))});s(this,ol,()=>{e(this,N,en)||this._ctx.toggle(this.value)});s(this,il,t=>{if(e(this,N,en))return;let r=this._ctx.orientation==="vertical",a=r?"ArrowDown":"ArrowRight",d=r?"ArrowUp":"ArrowLeft";switch(t.key){case a:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case d: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=e(this,N,ti);e(this,Zi)===void 0?(h(this,N,t,el),h(this,N,t?"auto":"0",Zo)):e(this,Zi)!==t&&(t?m(this,N,HC).call(this):m(this,N,NC).call(this),this.dispatchEvent(MC({value:this.value,open:t}))),h(this,Zi,t)}render(){let t=e(this,N,hm)||this._ctx?.keepMounted;return f`
|
|
4027
|
+
`,AC,zC,OC,LC,PC,MC,FC,HC,_t,em,rm,om,im,sm,hm,Ja,N,nm,am,Za,tl,lm,dm,BC,ti,cm,pm,um,el,ts,ri,ei,rn,mm,fm,DC,qC,rl,ol,il,rr=class extends(HC=g,FC=[u({type:String})],MC=[u({type:Boolean})],PC=[et({context:Ka,subscribe:!0})],LC=[k()],OC=[k()],zC=[k()],AC=[k()],HC){constructor(){super(...arguments);s(this,N);s(this,em,o(_t,8,this,"")),o(_t,11,this);s(this,rm,o(_t,12,this,!1)),o(_t,15,this);s(this,om,o(_t,16,this)),o(_t,19,this);s(this,im,o(_t,20,this,!1)),o(_t,23,this);s(this,nm,o(_t,24,this,!1)),o(_t,27,this);s(this,lm,o(_t,28,this,"0")),o(_t,31,this);s(this,cm,o(_t,32,this,!1)),o(_t,35,this);s(this,ts);s(this,ri,0);s(this,rl,t=>{t.propertyName==="height"&&(e(this,N,Za)?(h(this,N,!1,tl),this._ctx?.keepMounted||h(this,N,!1,el)):e(this,N,ei)&&h(this,N,"auto",ti))});s(this,ol,()=>{e(this,N,rn)||this._ctx.toggle(this.value)});s(this,il,t=>{if(e(this,N,rn))return;let r=this._ctx.orientation==="vertical",n=r?"ArrowDown":"ArrowRight",d=r?"ArrowUp":"ArrowLeft";switch(t.key){case n:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case d: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=e(this,N,ei);e(this,ts)===void 0?(h(this,N,t,el),h(this,N,t?"auto":"0",ti)):e(this,ts)!==t&&(t?m(this,N,DC).call(this):m(this,N,qC).call(this),this.dispatchEvent(NC({value:this.value,open:t}))),h(this,ts,t)}render(){let t=e(this,N,um)||this._ctx?.keepMounted;return f`
|
|
3994
4028
|
<div
|
|
3995
4029
|
part="item"
|
|
3996
|
-
?data-open=${e(this,N,
|
|
3997
|
-
?data-disabled=${e(this,N,
|
|
4030
|
+
?data-open=${e(this,N,ei)}
|
|
4031
|
+
?data-disabled=${e(this,N,rn)}
|
|
3998
4032
|
>
|
|
3999
4033
|
<h3 part="header">
|
|
4000
4034
|
<button
|
|
4001
4035
|
part="trigger"
|
|
4002
|
-
id=${e(this,N,
|
|
4003
|
-
aria-expanded=${e(this,N,
|
|
4004
|
-
aria-controls=${e(this,N,
|
|
4005
|
-
?data-open=${e(this,N,
|
|
4006
|
-
?data-disabled=${e(this,N,
|
|
4036
|
+
id=${e(this,N,mm)}
|
|
4037
|
+
aria-expanded=${e(this,N,ei)}
|
|
4038
|
+
aria-controls=${e(this,N,fm)}
|
|
4039
|
+
?data-open=${e(this,N,ei)}
|
|
4040
|
+
?data-disabled=${e(this,N,rn)}
|
|
4007
4041
|
@click=${e(this,ol)}
|
|
4008
4042
|
@keydown=${e(this,il)}
|
|
4009
4043
|
>
|
|
4010
4044
|
<slot name="trigger"></slot>
|
|
4011
|
-
${RO}
|
|
4012
4045
|
</button>
|
|
4013
4046
|
</h3>
|
|
4014
4047
|
${t?f`
|
|
4015
4048
|
<div
|
|
4016
4049
|
part="panel"
|
|
4017
|
-
id=${e(this,N,
|
|
4050
|
+
id=${e(this,N,fm)}
|
|
4018
4051
|
role="region"
|
|
4019
|
-
aria-labelledby=${e(this,N,
|
|
4020
|
-
style="height: ${e(this,N,
|
|
4021
|
-
?data-open=${e(this,N,
|
|
4022
|
-
?data-starting-style=${e(this,N,
|
|
4052
|
+
aria-labelledby=${e(this,N,mm)}
|
|
4053
|
+
style="height: ${e(this,N,BC)}"
|
|
4054
|
+
?data-open=${e(this,N,ei)&&!e(this,N,hm)}
|
|
4055
|
+
?data-starting-style=${e(this,N,hm)}
|
|
4023
4056
|
?data-ending-style=${e(this,N,Za)}
|
|
4024
|
-
?hidden=${!e(this,N,
|
|
4057
|
+
?hidden=${!e(this,N,um)&&!e(this,N,Za)}
|
|
4025
4058
|
@transitionend=${e(this,rl)}
|
|
4026
4059
|
>
|
|
4027
4060
|
<div part="content">
|
|
@@ -4030,19 +4063,19 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4030
4063
|
</div>
|
|
4031
4064
|
`:$}
|
|
4032
4065
|
</div>
|
|
4033
|
-
`}};_t=S(
|
|
4066
|
+
`}};_t=S(HC),em=new WeakMap,rm=new WeakMap,om=new WeakMap,im=new WeakMap,N=new WeakSet,nm=new WeakMap,lm=new WeakMap,cm=new WeakMap,ts=new WeakMap,ri=new WeakMap,ei=function(){return this._ctx?.openValues.includes(this.value)??!1},rn=function(){return this.disabled||this._ctx?.disabled},mm=function(){return`dui-trigger-${this.value}`},fm=function(){return`dui-panel-${this.value}`},DC=function(){let t=++Xi(this,ri)._;h(this,N,!1,tl),h(this,N,!0,el),h(this,N,!0,Ja),h(this,N,"0",ti),requestAnimationFrame(()=>{if(e(this,ri)!==t)return;let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,N,`${r.scrollHeight}px`,ti),h(this,N,!1,Ja)})},qC=function(){let t=++Xi(this,ri)._;h(this,N,!1,Ja);let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,N,`${r.scrollHeight}px`,ti),requestAnimationFrame(()=>{e(this,ri)===t&&(h(this,N,!0,tl),h(this,N,"0",ti))})},rl=new WeakMap,ol=new WeakMap,il=new WeakMap,l(_t,4,"value",FC,rr,em),l(_t,4,"disabled",MC,rr,rm),l(_t,4,"_ctx",PC,rr,om),sm=l(_t,20,"#starting",LC,N,im),hm=sm.get,Ja=sm.set,am=l(_t,20,"#ending",OC,N,nm),Za=am.get,tl=am.set,dm=l(_t,20,"#panelHeight",zC,N,lm),BC=dm.get,ti=dm.set,pm=l(_t,20,"#visible",AC,N,cm),um=pm.get,el=pm.set,C(_t,rr),b(rr,"tagName","dui-accordion-item"),b(rr,"styles",[y,A2]);var xo=Symbol("dui-alert-dialog");var wm=z("open-change",{bubbles:!0,composed:!0}),z2=c`
|
|
4034
4067
|
:host {
|
|
4035
4068
|
display: contents;
|
|
4036
4069
|
}
|
|
4037
|
-
`,
|
|
4070
|
+
`,VC,UC,jC,KC,WC,Te,vm,gm,bm,ym,GC,sl,fe,oi,al,ll,dl,cl,YC,pl,hl,xm,nl,or=class extends(WC=g,KC=[u({type:Boolean,reflect:!0})],jC=[u({type:Boolean,attribute:"default-open"})],UC=[k()],VC=[kt({context:xo}),k()],WC){constructor(){super(...arguments);s(this,fe);s(this,vm,o(Te,8,this)),o(Te,11,this);s(this,gm,o(Te,12,this,!1)),o(Te,15,this);s(this,bm,o(Te,16,this,!1)),o(Te,19,this);s(this,oi,crypto.randomUUID().slice(0,8));s(this,al,`dui-alert-dialog-${e(this,oi)}`);s(this,ll,`dui-alert-trigger-${e(this,oi)}`);s(this,dl,`dui-alert-title-${e(this,oi)}`);s(this,cl,`dui-alert-desc-${e(this,oi)}`);s(this,pl,()=>{this.open===void 0&&h(this,fe,!0,sl),this.dispatchEvent(wm({open:!0}))});s(this,hl,()=>{this.open===void 0&&h(this,fe,!1,sl),this.dispatchEvent(wm({open:!1}))});s(this,xm,o(Te,20,this,m(this,fe,nl).call(this))),o(Te,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,fe,!0,sl),this._ctx=m(this,fe,nl).call(this)}willUpdate(){this._ctx=m(this,fe,nl).call(this)}render(){return f`<slot></slot>`}};Te=S(WC),vm=new WeakMap,gm=new WeakMap,bm=new WeakMap,fe=new WeakSet,oi=new WeakMap,al=new WeakMap,ll=new WeakMap,dl=new WeakMap,cl=new WeakMap,YC=function(){return this.open??e(this,fe,GC)},pl=new WeakMap,hl=new WeakMap,xm=new WeakMap,nl=function(){return{open:e(this,fe,YC),dialogId:e(this,al),triggerId:e(this,ll),titleId:e(this,dl),descriptionId:e(this,cl),openDialog:e(this,pl),closeDialog:e(this,hl)}},l(Te,4,"open",KC,or,vm),l(Te,4,"defaultOpen",jC,or,gm),ym=l(Te,20,"#internalOpen",UC,fe,bm),GC=ym.get,sl=ym.set,l(Te,4,"_ctx",VC,or,xm),C(Te,or),b(or,"tagName","dui-alert-dialog"),b(or,"styles",[y,z2]);var O2=c`
|
|
4038
4071
|
:host {
|
|
4039
4072
|
display: contents;
|
|
4040
4073
|
}
|
|
4041
|
-
`,
|
|
4074
|
+
`,L2=c`
|
|
4042
4075
|
.Trigger {
|
|
4043
4076
|
display: contents;
|
|
4044
4077
|
}
|
|
4045
|
-
`,
|
|
4078
|
+
`,on=class extends g{static tagName="dui-alert-dialog-trigger";static styles=[y,O2,L2];#t=new U(this,{context:xo,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let i=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",r=this.#t.value?.dialogId??"";return f`
|
|
4046
4079
|
<span
|
|
4047
4080
|
class="Trigger"
|
|
4048
4081
|
part="trigger"
|
|
@@ -4055,7 +4088,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4055
4088
|
>
|
|
4056
4089
|
<slot></slot>
|
|
4057
4090
|
</span>
|
|
4058
|
-
`}};var
|
|
4091
|
+
`}};var XC=(a,{composed:i=!0}={})=>{let t=a.getRootNode({composed:i});if(t instanceof DocumentFragment)return t;if(t instanceof Document)return t},P2='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',ul=a=>a instanceof HTMLSlotElement?a.assignedNodes({flatten:!0}):a instanceof Element&&a.shadowRoot?Array.from(a.shadowRoot.childNodes):Array.from(a.childNodes),es=a=>{let i=[],t=r=>{if(r instanceof HTMLElement&&r.matches(P2)&&!r.hasAttribute("disabled")){i.push(r);return}for(let n of ul(r))t(n)};for(let r of ul(a))t(r);return i},M2=(a,i)=>{let t=r=>{if(r instanceof HTMLElement&&r.matches(i))return r;for(let n of ul(r)){let d=t(n);if(d)return d}return null};for(let r of ul(a)){let n=t(r);if(n)return n}return null},ml=a=>M2(a,"[autofocus]");var F2=c`
|
|
4059
4092
|
:host {
|
|
4060
4093
|
display: contents;
|
|
4061
4094
|
}
|
|
@@ -4064,7 +4097,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4064
4097
|
:host(:not([mounted])) [part="popup"] {
|
|
4065
4098
|
display: none;
|
|
4066
4099
|
}
|
|
4067
|
-
`,
|
|
4100
|
+
`,H2=c`
|
|
4068
4101
|
[part="backdrop"] {
|
|
4069
4102
|
position: fixed;
|
|
4070
4103
|
min-height: 100dvh;
|
|
@@ -4084,12 +4117,12 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4084
4117
|
z-index: 1000;
|
|
4085
4118
|
transition-property: opacity, transform;
|
|
4086
4119
|
}
|
|
4087
|
-
`,
|
|
4120
|
+
`,QC,JC,ZC,tS,eS,rS,oS,qt,km,Cm,Sm,Em,$m,rs,Am,W,Tm,Rm,zm,Om,_m,Im,Yr,Lm,os,wo,iS,sS,Pm,nS,aS,fl,lS,ir=class extends(oS=g,rS=[u({type:Boolean,attribute:"keep-mounted"})],eS=[u({attribute:"initial-focus"})],tS=[u({attribute:"final-focus"})],ZC=[k()],JC=[k()],QC=[k()],oS){constructor(){super(...arguments);s(this,W);s(this,km,o(qt,8,this,!1)),o(qt,11,this);s(this,Cm,o(qt,12,this)),o(qt,15,this);s(this,Sm,o(qt,16,this)),o(qt,19,this);s(this,Em,o(qt,20,this,!1)),o(qt,23,this);s(this,Tm,o(qt,24,this,!1)),o(qt,27,this);s(this,_m,o(qt,28,this,!1)),o(qt,31,this);s(this,os);s(this,wo,new U(this,{context:xo,subscribe:!0}));s(this,fl,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),e(this,wo).value?.closeDialog()),t.key==="Tab"&&m(this,W,lS).call(this,t)})}updated(){let t=e(this,wo).value?.open??!1;t&&!e(this,W,rs)?m(this,W,iS).call(this):!t&&e(this,W,rs)&&!e(this,W,Yr)&&m(this,W,sS).call(this)}willUpdate(){e(this,W,rs)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=e(this,wo).value?.open??!1,r=e(this,wo).value?.titleId??"",n=e(this,wo).value?.descriptionId??"";return!e(this,W,rs)&&!this.keepMounted?f``:f`
|
|
4088
4121
|
<div
|
|
4089
4122
|
part="backdrop"
|
|
4090
4123
|
?data-open="${t&&!e(this,W,Yr)}"
|
|
4091
4124
|
?data-closed="${!t||e(this,W,Yr)}"
|
|
4092
|
-
?data-starting-style="${e(this,W,
|
|
4125
|
+
?data-starting-style="${e(this,W,zm)}"
|
|
4093
4126
|
?data-ending-style="${e(this,W,Yr)}"
|
|
4094
4127
|
></div>
|
|
4095
4128
|
<div
|
|
@@ -4097,27 +4130,27 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4097
4130
|
role="alertdialog"
|
|
4098
4131
|
aria-modal="true"
|
|
4099
4132
|
aria-labelledby="${r}"
|
|
4100
|
-
aria-describedby="${
|
|
4133
|
+
aria-describedby="${n}"
|
|
4101
4134
|
?data-open="${t&&!e(this,W,Yr)}"
|
|
4102
4135
|
?data-closed="${!t||e(this,W,Yr)}"
|
|
4103
|
-
?data-starting-style="${e(this,W,
|
|
4136
|
+
?data-starting-style="${e(this,W,zm)}"
|
|
4104
4137
|
?data-ending-style="${e(this,W,Yr)}"
|
|
4105
4138
|
tabindex="-1"
|
|
4106
4139
|
@keydown="${e(this,fl)}"
|
|
4107
4140
|
>
|
|
4108
4141
|
<h2 part="title" id="${r}"><slot name="title"></slot></h2>
|
|
4109
|
-
<p part="description" id="${
|
|
4142
|
+
<p part="description" id="${n}"><slot name="description"></slot></p>
|
|
4110
4143
|
<slot></slot>
|
|
4111
4144
|
</div>
|
|
4112
|
-
`}};qt=S(
|
|
4145
|
+
`}};qt=S(oS),km=new WeakMap,Cm=new WeakMap,Sm=new WeakMap,Em=new WeakMap,W=new WeakSet,Tm=new WeakMap,_m=new WeakMap,os=new WeakMap,wo=new WeakMap,iS=async function(){h(this,os,document.activeElement??void 0),h(this,W,!0,Am),h(this,W,!0,Om),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,W,!1,Om),await this.updateComplete,m(this,W,nS).call(this)},sS=function(){h(this,W,!0,Lm);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,W,Pm).call(this);return}let r=!1,n=()=>{r||(r=!0,t.removeEventListener("transitionend",d),clearTimeout(p),m(this,W,Pm).call(this))},d=v=>{v.propertyName==="opacity"&&n()};t.addEventListener("transitionend",d);let p=setTimeout(n,200)},Pm=function(){!e(this,W,Yr)&&!e(this,W,rs)||(h(this,W,!1,Lm),this.keepMounted||h(this,W,!1,Am),m(this,W,aS).call(this))},nS=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let d=t.querySelector(this.initialFocus);if(d){d.focus();return}}let r=ml(t);if(r){r.focus();return}let n=es(t);if(n.length>0){n[0].focus();return}t.focus()},aS=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}e(this,os)?.focus(),h(this,os,void 0)},fl=new WeakMap,lS=function(t){let r=this.shadowRoot?.querySelector('[part="popup"]');if(!r)return;let n=es(r);if(n.length===0){t.preventDefault();return}let d=n[0],p=n[n.length-1],v=d.matches(":focus"),x=p.matches(":focus"),E=!n.some(R=>R.matches(":focus"));t.shiftKey&&(v||E)?(t.preventDefault(),p.focus()):!t.shiftKey&&x&&(t.preventDefault(),d.focus())},l(qt,4,"keepMounted",rS,ir,km),l(qt,4,"initialFocus",eS,ir,Cm),l(qt,4,"finalFocus",tS,ir,Sm),$m=l(qt,20,"#mounted",ZC,W,Em),rs=$m.get,Am=$m.set,Rm=l(qt,20,"#startingStyle",JC,W,Tm),zm=Rm.get,Om=Rm.set,Im=l(qt,20,"#endingStyle",QC,W,_m),Yr=Im.get,Lm=Im.set,C(qt,ir),b(ir,"tagName","dui-alert-dialog-popup"),b(ir,"styles",[y,F2,H2]);var N2=c`
|
|
4113
4146
|
:host {
|
|
4114
4147
|
display: contents;
|
|
4115
4148
|
}
|
|
4116
|
-
`,
|
|
4149
|
+
`,sn=class extends g{static tagName="dui-alert-dialog-close";static styles=[y,N2];#t=new U(this,{context:xo,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
4117
4150
|
<span @click="${this.#e}">
|
|
4118
4151
|
<slot></slot>
|
|
4119
4152
|
</span>
|
|
4120
|
-
`}};var
|
|
4153
|
+
`}};var vS=z("loading-status-change",{bubbles:!0,composed:!0}),B2=c`
|
|
4121
4154
|
:host {
|
|
4122
4155
|
--avatar-size: var(--space-12);
|
|
4123
4156
|
display: inline-block;
|
|
@@ -4147,7 +4180,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4147
4180
|
height: 100%;
|
|
4148
4181
|
width: 100%;
|
|
4149
4182
|
}
|
|
4150
|
-
`,
|
|
4183
|
+
`,dS,cS,pS,hS,uS,mS,fS,Vt,Mm,Fm,Hm,Nm,Bm,Dm,gS,bS,mt,qm,Vm,yS,vl,ko,ii,nn,Um,jm,Km,Wm,qe=class extends(fS=g,mS=[u()],uS=[u()],hS=[u({type:Number,attribute:"fallback-delay"})],pS=[u({reflect:!0})],cS=[k()],dS=[k()],fS){constructor(){super(...arguments);s(this,mt);s(this,Mm,o(Vt,8,this)),o(Vt,11,this);s(this,Fm,o(Vt,12,this,"")),o(Vt,15,this);s(this,Hm,o(Vt,16,this)),o(Vt,19,this);s(this,Nm,o(Vt,20,this)),o(Vt,23,this);s(this,Bm,o(Vt,24,this,"idle")),o(Vt,27,this);s(this,qm,o(Vt,28,this,!1)),o(Vt,31,this);s(this,ko);s(this,ii)}connectedCallback(){super.connectedCallback(),m(this,mt,Km).call(this),m(this,mt,Um).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,mt,jm).call(this),m(this,mt,Wm).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&m(this,mt,Um).call(this),t.has("fallbackDelay")&&m(this,mt,Km).call(this)}render(){let t=this.src&&e(this,mt,gS)==="loaded",r=!t&&e(this,mt,yS);return f`
|
|
4151
4184
|
<span part="root">
|
|
4152
4185
|
${t?f`
|
|
4153
4186
|
<img
|
|
@@ -4159,7 +4192,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4159
4192
|
<span part="fallback"><slot></slot></span>
|
|
4160
4193
|
`:$}
|
|
4161
4194
|
</span>
|
|
4162
|
-
`}};Vt=S(
|
|
4195
|
+
`}};Vt=S(fS),Mm=new WeakMap,Fm=new WeakMap,Hm=new WeakMap,Nm=new WeakMap,Bm=new WeakMap,mt=new WeakSet,qm=new WeakMap,ko=new WeakMap,ii=new WeakMap,nn=function(t){h(this,mt,t,bS),this.dispatchEvent(vS({status:t}))},Um=function(){if(m(this,mt,jm).call(this),!this.src){m(this,mt,nn).call(this,"error");return}m(this,mt,nn).call(this,"loading");let t=new Image;t.onload=()=>m(this,mt,nn).call(this,"loaded"),t.onerror=()=>m(this,mt,nn).call(this,"error"),t.src=this.src,h(this,ko,t)},jm=function(){e(this,ko)&&(e(this,ko).onload=null,e(this,ko).onerror=null,h(this,ko,void 0))},Km=function(){if(m(this,mt,Wm).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){h(this,mt,!0,vl);return}h(this,mt,!1,vl),h(this,ii,setTimeout(()=>{h(this,mt,!0,vl)},this.fallbackDelay))},Wm=function(){e(this,ii)!==void 0&&(clearTimeout(e(this,ii)),h(this,ii,void 0))},l(Vt,4,"src",mS,qe,Mm),l(Vt,4,"alt",uS,qe,Fm),l(Vt,4,"fallbackDelay",hS,qe,Hm),l(Vt,4,"size",pS,qe,Nm),Dm=l(Vt,20,"#imageStatus",cS,mt,Bm),gS=Dm.get,bS=Dm.set,Vm=l(Vt,20,"#delayPassed",dS,mt,qm),yS=Vm.get,vl=Vm.set,C(Vt,qe),b(qe,"tagName","dui-avatar"),b(qe,"styles",[y,B2]);var D2=c`
|
|
4163
4196
|
:host {
|
|
4164
4197
|
display: inline-block;
|
|
4165
4198
|
}
|
|
@@ -4168,11 +4201,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4168
4201
|
display: inline-flex;
|
|
4169
4202
|
align-items: center;
|
|
4170
4203
|
}
|
|
4171
|
-
`,
|
|
4204
|
+
`,an=class extends g{static tagName="dui-badge";static styles=[y,D2];render(){return f`
|
|
4172
4205
|
<span part="root">
|
|
4173
4206
|
<slot></slot>
|
|
4174
4207
|
</span>
|
|
4175
|
-
`}};var
|
|
4208
|
+
`}};var q2=c`
|
|
4176
4209
|
:host {
|
|
4177
4210
|
display: block;
|
|
4178
4211
|
}
|
|
@@ -4185,13 +4218,13 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4185
4218
|
margin: 0;
|
|
4186
4219
|
padding: 0;
|
|
4187
4220
|
}
|
|
4188
|
-
`,
|
|
4221
|
+
`,ln=class extends g{static tagName="dui-breadcrumb";static styles=[y,q2];render(){return f`
|
|
4189
4222
|
<nav aria-label="breadcrumb">
|
|
4190
4223
|
<ol part="root">
|
|
4191
4224
|
<slot></slot>
|
|
4192
4225
|
</ol>
|
|
4193
4226
|
</nav>
|
|
4194
|
-
`}};var
|
|
4227
|
+
`}};var V2=c`
|
|
4195
4228
|
:host {
|
|
4196
4229
|
display: inline-flex;
|
|
4197
4230
|
}
|
|
@@ -4200,11 +4233,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4200
4233
|
display: inline-flex;
|
|
4201
4234
|
align-items: center;
|
|
4202
4235
|
}
|
|
4203
|
-
`,
|
|
4236
|
+
`,dn=class extends g{static tagName="dui-breadcrumb-item";static styles=[y,V2];render(){return f`
|
|
4204
4237
|
<li part="root">
|
|
4205
4238
|
<slot></slot>
|
|
4206
4239
|
</li>
|
|
4207
|
-
`}};var
|
|
4240
|
+
`}};var U2=c`
|
|
4208
4241
|
:host {
|
|
4209
4242
|
display: inline-flex;
|
|
4210
4243
|
}
|
|
@@ -4213,11 +4246,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4213
4246
|
display: inline-flex;
|
|
4214
4247
|
align-items: center;
|
|
4215
4248
|
}
|
|
4216
|
-
`,
|
|
4249
|
+
`,cn=class extends g{static tagName="dui-breadcrumb-link";static styles=[y,U2];render(){return f`
|
|
4217
4250
|
<span part="root">
|
|
4218
4251
|
<slot></slot>
|
|
4219
4252
|
</span>
|
|
4220
|
-
`}};var
|
|
4253
|
+
`}};var j2=c`
|
|
4221
4254
|
:host {
|
|
4222
4255
|
display: inline-flex;
|
|
4223
4256
|
}
|
|
@@ -4226,7 +4259,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4226
4259
|
display: inline-flex;
|
|
4227
4260
|
align-items: center;
|
|
4228
4261
|
}
|
|
4229
|
-
`,
|
|
4262
|
+
`,pn=class extends g{static tagName="dui-breadcrumb-page";static styles=[y,j2];render(){return f`
|
|
4230
4263
|
<span
|
|
4231
4264
|
role="link"
|
|
4232
4265
|
aria-disabled="true"
|
|
@@ -4235,7 +4268,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4235
4268
|
>
|
|
4236
4269
|
<slot></slot>
|
|
4237
4270
|
</span>
|
|
4238
|
-
`}};var
|
|
4271
|
+
`}};var K2=c`
|
|
4239
4272
|
:host {
|
|
4240
4273
|
display: flex;
|
|
4241
4274
|
}
|
|
@@ -4244,7 +4277,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4244
4277
|
display: flex;
|
|
4245
4278
|
align-items: center;
|
|
4246
4279
|
}
|
|
4247
|
-
`,
|
|
4280
|
+
`,hn=class extends g{static tagName="dui-breadcrumb-separator";static styles=[y,K2];render(){return f`
|
|
4248
4281
|
<li
|
|
4249
4282
|
role="presentation"
|
|
4250
4283
|
aria-hidden="true"
|
|
@@ -4252,7 +4285,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4252
4285
|
>
|
|
4253
4286
|
<slot>/</slot>
|
|
4254
4287
|
</li>
|
|
4255
|
-
`}};var
|
|
4288
|
+
`}};var W2=c`
|
|
4256
4289
|
:host {
|
|
4257
4290
|
display: flex;
|
|
4258
4291
|
align-items: center;
|
|
@@ -4264,7 +4297,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4264
4297
|
align-items: center;
|
|
4265
4298
|
justify-content: center;
|
|
4266
4299
|
}
|
|
4267
|
-
`,
|
|
4300
|
+
`,un=class extends g{static tagName="dui-breadcrumb-ellipsis";static styles=[y,W2];render(){return f`
|
|
4268
4301
|
<span
|
|
4269
4302
|
role="presentation"
|
|
4270
4303
|
aria-hidden="true"
|
|
@@ -4272,7 +4305,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4272
4305
|
>
|
|
4273
4306
|
<slot>…</slot>
|
|
4274
4307
|
</span>
|
|
4275
|
-
`}};var
|
|
4308
|
+
`}};var ES=z("dui-navigate",{bubbles:!0,composed:!0}),G2=c`
|
|
4276
4309
|
:host {
|
|
4277
4310
|
display: inline-block;
|
|
4278
4311
|
}
|
|
@@ -4297,7 +4330,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4297
4330
|
user-select: none;
|
|
4298
4331
|
-webkit-tap-highlight-color: transparent;
|
|
4299
4332
|
}
|
|
4300
|
-
`,
|
|
4333
|
+
`,xS,wS,kS,CS,SS,Re,Gm,Ym,Xm,Qm,gl,bl,is,$S,TS,_e=class extends(SS=g,CS=[u({type:Boolean,reflect:!0})],kS=[u({type:Boolean,attribute:"focusable-when-disabled"})],wS=[u()],xS=[u()],SS){constructor(){super(...arguments);s(this,is);s(this,Gm,o(Re,8,this,!1)),o(Re,11,this);s(this,Ym,o(Re,12,this,!1)),o(Re,15,this);s(this,Xm,o(Re,16,this,"button")),o(Re,19,this);s(this,Qm,o(Re,20,this)),o(Re,23,this);s(this,gl,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});s(this,bl,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(ES({href:this.href})))})}render(){return this.href!==void 0?m(this,is,TS).call(this):m(this,is,$S).call(this)}};Re=S(SS),Gm=new WeakMap,Ym=new WeakMap,Xm=new WeakMap,Qm=new WeakMap,gl=new WeakMap,bl=new WeakMap,is=new WeakSet,$S=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
|
|
4301
4334
|
<button
|
|
4302
4335
|
part="root"
|
|
4303
4336
|
type="${this.type}"
|
|
@@ -4307,7 +4340,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4307
4340
|
>
|
|
4308
4341
|
<slot></slot>
|
|
4309
4342
|
</button>
|
|
4310
|
-
`},
|
|
4343
|
+
`},TS=function(){return f`
|
|
4311
4344
|
<a
|
|
4312
4345
|
part="root"
|
|
4313
4346
|
href="${this.href??$}"
|
|
@@ -4316,7 +4349,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4316
4349
|
>
|
|
4317
4350
|
<slot></slot>
|
|
4318
4351
|
</a>
|
|
4319
|
-
`},l(Re,4,"disabled",
|
|
4352
|
+
`},l(Re,4,"disabled",CS,_e,Gm),l(Re,4,"focusableWhenDisabled",kS,_e,Ym),l(Re,4,"type",wS,_e,Xm),l(Re,4,"href",xS,_e,Qm),C(Re,_e),b(_e,"tagName","dui-button"),b(_e,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(_e,"styles",[y,G2]);var BS=z("value-change",{bubbles:!0,composed:!0}),Y2=c`
|
|
4320
4353
|
:host {
|
|
4321
4354
|
display: inline-block;
|
|
4322
4355
|
}
|
|
@@ -4376,7 +4409,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4376
4409
|
[part="day"]:disabled {
|
|
4377
4410
|
cursor: not-allowed;
|
|
4378
4411
|
}
|
|
4379
|
-
`,
|
|
4412
|
+
`,RS,_S,IS,AS,zS,OS,LS,PS,MS,FS,HS,NS,rt,Jm,Zm,tf,ef,rf,of,sf,nf,af,DS,mf,O,lf,df,ff,yl,cf,pf,xl,wl,hf,uf,kl,Cl,vf,sr,Sl,mn,El,gf,qS,VS,US,bf,yf,$l,Tl,Rl,_l,se=class extends(NS=g,HS=[u()],FS=[u({attribute:"default-value"})],MS=[u()],PS=[u()],LS=[u()],OS=[u({type:Boolean,reflect:!0})],zS=[u({type:Boolean,reflect:!0,attribute:"read-only"})],AS=[k()],IS=[k()],_S=[k()],RS=[k()],NS){constructor(){super(...arguments);s(this,O);s(this,Jm,o(rt,8,this)),o(rt,11,this);s(this,Zm,o(rt,12,this)),o(rt,15,this);s(this,tf,o(rt,16,this)),o(rt,19,this);s(this,ef,o(rt,20,this)),o(rt,23,this);s(this,rf,o(rt,24,this,"en-US")),o(rt,27,this);s(this,of,o(rt,28,this,!1)),o(rt,31,this);s(this,sf,o(rt,32,this,!1)),o(rt,35,this);s(this,nf,o(rt,36,this)),o(rt,39,this);s(this,lf,o(rt,40,this,new Date)),o(rt,43,this);s(this,cf,o(rt,44,this,new Date().getMonth())),o(rt,47,this);s(this,hf,o(rt,48,this,new Date().getFullYear())),o(rt,51,this);s(this,$l,t=>{let r=t.currentTarget,n=r.dataset.date;n&&!r.disabled&&m(this,O,bf).call(this,n)});s(this,Tl,t=>{let r=new Date(e(this,O,ff)),n=!0;switch(t.key){case"ArrowLeft":r.setDate(r.getDate()-1);break;case"ArrowRight":r.setDate(r.getDate()+1);break;case"ArrowUp":r.setDate(r.getDate()-7);break;case"ArrowDown":r.setDate(r.getDate()+7);break;case"PageUp":t.shiftKey?r.setFullYear(r.getFullYear()-1):r.setMonth(r.getMonth()-1);break;case"PageDown":t.shiftKey?r.setFullYear(r.getFullYear()+1):r.setMonth(r.getMonth()+1);break;case"Home":{r.setDate(1);break}case"End":{let d=m(this,O,El).call(this,r.getFullYear(),r.getMonth());r.setDate(d);break}case"Enter":case" ":t.preventDefault(),m(this,O,mn).call(this,r)||m(this,O,bf).call(this,m(this,O,sr).call(this,r));return;default:n=!1}n&&(t.preventDefault(),h(this,O,r,yl),h(this,O,r.getMonth(),wl),h(this,O,r.getFullYear(),Cl),this.updateComplete.then(()=>{let d=m(this,O,sr).call(this,r);this.shadowRoot?.querySelector(`[data-date="${d}"]`)?.focus()}))});s(this,Rl,()=>{m(this,O,yf).call(this,-1)});s(this,_l,()=>{m(this,O,yf).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,O,this.defaultValue,mf);let t=e(this,O,vf);if(t){let r=new Date(t+"T00:00:00");h(this,O,r.getMonth(),wl),h(this,O,r.getFullYear(),Cl),h(this,O,r,yl)}}render(){let t=m(this,O,qS).call(this),r=m(this,O,VS).call(this),n=m(this,O,US).call(this),d=m(this,O,sr).call(this,e(this,O,ff));return f`
|
|
4380
4413
|
<div part="root" role="grid" @keydown="${e(this,Tl)}">
|
|
4381
4414
|
<div part="header">
|
|
4382
4415
|
<button
|
|
@@ -4387,7 +4420,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4387
4420
|
>
|
|
4388
4421
|
<slot name="prev">‹</slot>
|
|
4389
4422
|
</button>
|
|
4390
|
-
<div part="heading" aria-live="polite">${
|
|
4423
|
+
<div part="heading" aria-live="polite">${n}</div>
|
|
4391
4424
|
<button
|
|
4392
4425
|
part="next"
|
|
4393
4426
|
type="button"
|
|
@@ -4417,7 +4450,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4417
4450
|
`)}
|
|
4418
4451
|
</div>
|
|
4419
4452
|
</div>
|
|
4420
|
-
`}};rt=S(
|
|
4453
|
+
`}};rt=S(NS),Jm=new WeakMap,Zm=new WeakMap,tf=new WeakMap,ef=new WeakMap,rf=new WeakMap,of=new WeakMap,sf=new WeakMap,nf=new WeakMap,O=new WeakSet,lf=new WeakMap,cf=new WeakMap,hf=new WeakMap,vf=function(){return this.value??e(this,O,DS)},sr=function(t){let r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),d=String(t.getDate()).padStart(2,"0");return`${r}-${n}-${d}`},Sl=function(t,r){return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()},mn=function(t){if(this.disabled)return!0;let r=m(this,O,sr).call(this,t);return!!(this.min&&r<this.min||this.max&&r>this.max)},El=function(t,r){return new Date(t,r+1,0).getDate()},gf=function(){try{let t=new Intl.Locale(this.locale),r=t.weekInfo??t.getWeekInfo?.();return r?.firstDay===7?0:r?.firstDay??0}catch{return 0}},qS=function(){let t=e(this,O,kl),r=e(this,O,xl),n=m(this,O,El).call(this,t,r),d=new Date(t,r,1).getDay(),p=m(this,O,gf).call(this),v=new Date,x=e(this,O,vf),E=d-p;E<0&&(E+=7);let R=[],w=r===0?11:r-1,I=r===0?t-1:t,_=m(this,O,El).call(this,I,w);for(let F=E-1;F>=0;F--){let V=_-F,Y=new Date(I,w,V);R.push({date:Y,day:V,iso:m(this,O,sr).call(this,Y),isToday:m(this,O,Sl).call(this,Y,v),isSelected:m(this,O,sr).call(this,Y)===x,isOutsideMonth:!0,isDisabled:m(this,O,mn).call(this,Y)})}for(let F=1;F<=n;F++){let V=new Date(t,r,F);R.push({date:V,day:F,iso:m(this,O,sr).call(this,V),isToday:m(this,O,Sl).call(this,V,v),isSelected:m(this,O,sr).call(this,V)===x,isOutsideMonth:!1,isDisabled:m(this,O,mn).call(this,V)})}let P=42-R.length,D=r===11?0:r+1,Z=r===11?t+1:t;for(let F=1;F<=P;F++){let V=new Date(Z,D,F);R.push({date:V,day:F,iso:m(this,O,sr).call(this,V),isToday:m(this,O,Sl).call(this,V,v),isSelected:m(this,O,sr).call(this,V)===x,isOutsideMonth:!0,isDisabled:m(this,O,mn).call(this,V)})}let j=[];for(let F=0;F<R.length;F+=7)j.push(R.slice(F,F+7));return j},VS=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),r=m(this,O,gf).call(this),n=[];for(let d=0;d<7;d++){let p=new Date(2015,0,4+r+d);n.push(t.format(p))}return n},US=function(){let t=new Date(e(this,O,kl),e(this,O,xl),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},bf=function(t){this.disabled||this.readOnly||(this.value===void 0&&h(this,O,t,mf),this.dispatchEvent(BS({value:t})))},yf=function(t){let r=e(this,O,xl)+t,n=e(this,O,kl);r<0?(r=11,n--):r>11&&(r=0,n++),h(this,O,r,wl),h(this,O,n,Cl),h(this,O,new Date(n,r,1),yl)},$l=new WeakMap,Tl=new WeakMap,Rl=new WeakMap,_l=new WeakMap,l(rt,4,"value",HS,se,Jm),l(rt,4,"defaultValue",FS,se,Zm),l(rt,4,"min",MS,se,tf),l(rt,4,"max",PS,se,ef),l(rt,4,"locale",LS,se,rf),l(rt,4,"disabled",OS,se,of),l(rt,4,"readOnly",zS,se,sf),af=l(rt,20,"#internalValue",AS,O,nf),DS=af.get,mf=af.set,df=l(rt,20,"#focusedDate",IS,O,lf),ff=df.get,yl=df.set,pf=l(rt,20,"#viewMonth",_S,O,cf),xl=pf.get,wl=pf.set,uf=l(rt,20,"#viewYear",RS,O,hf),kl=uf.get,Cl=uf.set,C(rt,se),b(se,"tagName","dui-calendar"),b(se,"styles",[y,Y2]);var ne=Symbol("dui-field");var Il=Symbol("dui-checkbox-group");var oE=z("checked-change",{bubbles:!0,composed:!0}),X2=c`
|
|
4421
4454
|
:host {
|
|
4422
4455
|
display: inline-flex;
|
|
4423
4456
|
align-items: start;
|
|
@@ -4467,7 +4500,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4467
4500
|
width: 0;
|
|
4468
4501
|
height: 0;
|
|
4469
4502
|
}
|
|
4470
|
-
`,
|
|
4503
|
+
`,Q2=f`
|
|
4471
4504
|
<svg
|
|
4472
4505
|
class="Icon"
|
|
4473
4506
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -4480,7 +4513,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4480
4513
|
>
|
|
4481
4514
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
4482
4515
|
</svg>
|
|
4483
|
-
`,
|
|
4516
|
+
`,J2=f`
|
|
4484
4517
|
<svg
|
|
4485
4518
|
class="Icon"
|
|
4486
4519
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -4493,21 +4526,21 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4493
4526
|
>
|
|
4494
4527
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
4495
4528
|
</svg>
|
|
4496
|
-
`,
|
|
4529
|
+
`,jS,KS,WS,GS,YS,XS,QS,JS,ZS,tE,eE,rE,ot,xf,wf,kf,Cf,Sf,Ef,$f,Tf,Rf,_f,If,iE,zf,Yt,si,Af,Al,sE,Of,nE,fn,vn,zl,Gt=class extends(rE=g,eE=[u({type:Boolean,reflect:!0})],tE=[u({type:Boolean,attribute:"default-checked"})],ZS=[u({type:Boolean,reflect:!0})],JS=[u({type:Boolean,reflect:!0})],QS=[u({type:Boolean,reflect:!0,attribute:"read-only"})],XS=[u({type:Boolean,reflect:!0})],YS=[u()],GS=[u()],WS=[u({type:Boolean})],KS=[k()],jS=[et({context:ne,subscribe:!0}),k()],rE){constructor(){super(...arguments);s(this,Yt);s(this,xf,o(ot,8,this)),o(ot,11,this);s(this,wf,o(ot,12,this,!1)),o(ot,15,this);s(this,kf,o(ot,16,this,!1)),o(ot,19,this);s(this,Cf,o(ot,20,this,!1)),o(ot,23,this);s(this,Sf,o(ot,24,this,!1)),o(ot,27,this);s(this,Ef,o(ot,28,this,!1)),o(ot,31,this);s(this,$f,o(ot,32,this)),o(ot,35,this);s(this,Tf,o(ot,36,this)),o(ot,39,this);s(this,Rf,o(ot,40,this,!1)),o(ot,43,this);s(this,_f,o(ot,44,this,!1)),o(ot,47,this);s(this,si,new U(this,{context:Il,subscribe:!0}));s(this,Af,o(ot,48,this)),o(ot,51,this);s(this,fn,t=>{e(this,vn).call(this)});s(this,vn,()=>{if(e(this,Yt,Of)||this.readOnly)return;let t=e(this,si).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!e(this,Yt,Al)):t.toggle(this.value),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched();return}let r=!e(this,Yt,Al);this.checked===void 0&&(h(this,Yt,r,zf),this.indeterminate=!1),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched(),this.dispatchEvent(oE({checked:r,indeterminate:!1}))});s(this,zl,t=>{t.key===" "&&(t.preventDefault(),e(this,vn).call(this))})}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,Yt,!0,zf),this.addEventListener("click",e(this,fn))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,fn))}render(){let t=e(this,Yt,Al),r=e(this,Yt,sE),n=e(this,Yt,Of),d=e(this,Yt,nE),p=t||r,v=this._fieldCtx?.controlId??"";return f`
|
|
4497
4530
|
<span
|
|
4498
4531
|
part="root"
|
|
4499
4532
|
role="checkbox"
|
|
4500
4533
|
id="${v||$}"
|
|
4501
4534
|
aria-checked="${r?"mixed":String(t)}"
|
|
4502
|
-
aria-disabled="${
|
|
4535
|
+
aria-disabled="${n?"true":$}"
|
|
4503
4536
|
aria-readonly="${this.readOnly?"true":$}"
|
|
4504
4537
|
aria-required="${this.required?"true":$}"
|
|
4505
4538
|
aria-invalid="${d?"true":$}"
|
|
4506
|
-
tabindex="${
|
|
4539
|
+
tabindex="${n?$:"0"}"
|
|
4507
4540
|
?data-checked="${t&&!r}"
|
|
4508
4541
|
?data-unchecked="${!t&&!r}"
|
|
4509
4542
|
?data-indeterminate="${r}"
|
|
4510
|
-
?data-disabled="${
|
|
4543
|
+
?data-disabled="${n}"
|
|
4511
4544
|
?data-readonly="${this.readOnly}"
|
|
4512
4545
|
?data-required="${this.required}"
|
|
4513
4546
|
?data-invalid="${d}"
|
|
@@ -4519,7 +4552,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4519
4552
|
?data-unchecked="${!t&&!r}"
|
|
4520
4553
|
?data-indeterminate="${r}"
|
|
4521
4554
|
>
|
|
4522
|
-
${p?r?
|
|
4555
|
+
${p?r?J2:Q2:$}
|
|
4523
4556
|
</span>
|
|
4524
4557
|
<input
|
|
4525
4558
|
type="checkbox"
|
|
@@ -4527,7 +4560,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4527
4560
|
value="${this.value??$}"
|
|
4528
4561
|
.checked="${t}"
|
|
4529
4562
|
.indeterminate="${r}"
|
|
4530
|
-
?disabled="${
|
|
4563
|
+
?disabled="${n}"
|
|
4531
4564
|
?required="${this.required}"
|
|
4532
4565
|
class="HiddenInput"
|
|
4533
4566
|
aria-hidden="true"
|
|
@@ -4535,7 +4568,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4535
4568
|
/>
|
|
4536
4569
|
</span>
|
|
4537
4570
|
<slot></slot>
|
|
4538
|
-
`}};ot=S(
|
|
4571
|
+
`}};ot=S(rE),xf=new WeakMap,wf=new WeakMap,kf=new WeakMap,Cf=new WeakMap,Sf=new WeakMap,Ef=new WeakMap,$f=new WeakMap,Tf=new WeakMap,Rf=new WeakMap,_f=new WeakMap,Yt=new WeakSet,si=new WeakMap,Af=new WeakMap,Al=function(){let t=e(this,si).value;return t&&this.value!==void 0?this.parent?t.allValues.length>0&&t.allValues.every(r=>t.checkedValues.includes(r)):t.checkedValues.includes(this.value):this.checked??e(this,Yt,iE)},sE=function(){let t=e(this,si).value;if(t&&this.parent&&this.value!==void 0){let r=t.allValues.filter(n=>t.checkedValues.includes(n)).length;return r>0&&r<t.allValues.length}return this.indeterminate},Of=function(){return this.disabled||(e(this,si).value?.disabled??!1)||(this._fieldCtx?.disabled??!1)},nE=function(){return this._fieldCtx?.invalid??!1},fn=new WeakMap,vn=new WeakMap,zl=new WeakMap,l(ot,4,"checked",eE,Gt,xf),l(ot,4,"defaultChecked",tE,Gt,wf),l(ot,4,"indeterminate",ZS,Gt,kf),l(ot,4,"disabled",JS,Gt,Cf),l(ot,4,"readOnly",QS,Gt,Sf),l(ot,4,"required",XS,Gt,Ef),l(ot,4,"name",YS,Gt,$f),l(ot,4,"value",GS,Gt,Tf),l(ot,4,"parent",WS,Gt,Rf),If=l(ot,20,"#internalChecked",KS,Yt,_f),iE=If.get,zf=If.set,l(ot,4,"_fieldCtx",jS,Gt,Af),C(ot,Gt),b(Gt,"tagName","dui-checkbox"),b(Gt,"styles",[y,X2]);var Df=z("value-change",{bubbles:!0,composed:!0}),Z2=c`
|
|
4539
4572
|
:host {
|
|
4540
4573
|
display: block;
|
|
4541
4574
|
}
|
|
@@ -4545,7 +4578,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4545
4578
|
flex-direction: column;
|
|
4546
4579
|
align-items: start;
|
|
4547
4580
|
}
|
|
4548
|
-
`,
|
|
4581
|
+
`,aE,lE,dE,cE,pE,hE,uE,Ut,Lf,Pf,Mf,Ff,Hf,Nf,mE,Ol,Ve,gn,Pl,Ml,Bf,Ll,Ie=class extends(uE=g,hE=[u({attribute:!1})],pE=[u({attribute:!1})],cE=[u({attribute:!1})],dE=[u({type:Boolean,reflect:!0})],lE=[k()],aE=[kt({context:Il}),k()],uE){constructor(){super(...arguments);s(this,Ve);s(this,Lf,o(Ut,8,this)),o(Ut,11,this);s(this,Pf,o(Ut,12,this,[])),o(Ut,15,this);s(this,Mf,o(Ut,16,this,[])),o(Ut,19,this);s(this,Ff,o(Ut,20,this,!1)),o(Ut,23,this);s(this,Hf,o(Ut,24,this,[])),o(Ut,27,this);s(this,gn,()=>this.value??e(this,Ve,mE));s(this,Pl,t=>{let r=e(this,gn).call(this),n=r.includes(t)?r.filter(d=>d!==t):[...r,t];this.value===void 0&&h(this,Ve,n,Ol),this.dispatchEvent(Df(n))});s(this,Ml,t=>{let r=t?[...this.allValues]:[];this.value===void 0&&h(this,Ve,r,Ol),this.dispatchEvent(Df(r))});s(this,Bf,o(Ut,28,this,m(this,Ve,Ll).call(this))),o(Ut,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Ve,[...this.defaultValue],Ol),this._ctx=m(this,Ve,Ll).call(this)}willUpdate(){this._ctx=m(this,Ve,Ll).call(this)}render(){return f`
|
|
4549
4582
|
<div
|
|
4550
4583
|
part="root"
|
|
4551
4584
|
role="group"
|
|
@@ -4553,7 +4586,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4553
4586
|
>
|
|
4554
4587
|
<slot></slot>
|
|
4555
4588
|
</div>
|
|
4556
|
-
`}};Ut=S(
|
|
4589
|
+
`}};Ut=S(uE),Lf=new WeakMap,Pf=new WeakMap,Mf=new WeakMap,Ff=new WeakMap,Hf=new WeakMap,Ve=new WeakSet,gn=new WeakMap,Pl=new WeakMap,Ml=new WeakMap,Bf=new WeakMap,Ll=function(){return{checkedValues:e(this,gn).call(this),allValues:this.allValues,disabled:this.disabled,toggle:e(this,Pl),toggleAll:e(this,Ml)}},l(Ut,4,"value",hE,Ie,Lf),l(Ut,4,"defaultValue",pE,Ie,Pf),l(Ut,4,"allValues",cE,Ie,Mf),l(Ut,4,"disabled",dE,Ie,Ff),Nf=l(Ut,20,"#internalValues",lE,Ve,Hf),mE=Nf.get,Ol=Nf.set,l(Ut,4,"_ctx",aE,Ie,Bf),C(Ut,Ie),b(Ie,"tagName","dui-checkbox-group"),b(Ie,"styles",[y,Z2]);var EE=z("open-change",{bubbles:!0,composed:!0}),tO=c`
|
|
4557
4590
|
:host {
|
|
4558
4591
|
display: block;
|
|
4559
4592
|
}
|
|
@@ -4576,8 +4609,9 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4576
4609
|
cursor: default;
|
|
4577
4610
|
}
|
|
4578
4611
|
|
|
4579
|
-
[
|
|
4580
|
-
flex
|
|
4612
|
+
slot[name="trigger"] {
|
|
4613
|
+
flex: 1;
|
|
4614
|
+
min-width: 0;
|
|
4581
4615
|
}
|
|
4582
4616
|
|
|
4583
4617
|
[part="panel"] {
|
|
@@ -4585,19 +4619,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4585
4619
|
contain: content;
|
|
4586
4620
|
transition-property: height;
|
|
4587
4621
|
}
|
|
4588
|
-
`,
|
|
4589
|
-
part="indicator"
|
|
4590
|
-
width="16"
|
|
4591
|
-
height="16"
|
|
4592
|
-
viewBox="0 0 24 24"
|
|
4593
|
-
fill="none"
|
|
4594
|
-
stroke="currentColor"
|
|
4595
|
-
stroke-width="2"
|
|
4596
|
-
stroke-linecap="round"
|
|
4597
|
-
stroke-linejoin="round"
|
|
4598
|
-
>
|
|
4599
|
-
<path d="m6 9 6 6 6-6" />
|
|
4600
|
-
</svg>`,hE,uE,mE,fE,vE,gE,bE,yE,xE,wE,gt,Df,qf,Vf,Uf,jf,Kf,ev,Fl,q,Wf,Gf,Hl,Nl,Yf,Xf,CE,si,Qf,Jf,rv,Bl,Zf,tv,SE,ov,ni,ai,ko,gn,EE,$E,Dl,ql,Ue=class extends(wE=g,xE=[u({type:Boolean,reflect:!0})],yE=[u({type:Boolean,attribute:"default-open"})],bE=[u({type:Boolean,reflect:!0})],gE=[u({type:Boolean,attribute:"keep-mounted"})],vE=[k()],fE=[k()],mE=[k()],uE=[k()],hE=[k()],wE){constructor(){super(...arguments);s(this,q);s(this,Df,o(gt,8,this,!1)),o(gt,11,this);s(this,qf,o(gt,12,this,!1)),o(gt,15,this);s(this,Vf,o(gt,16,this,!1)),o(gt,19,this);s(this,Uf,o(gt,20,this,!1)),o(gt,23,this);s(this,jf,o(gt,24,this,!1)),o(gt,27,this);s(this,Wf,o(gt,28,this,!1)),o(gt,31,this);s(this,Yf,o(gt,32,this,"0")),o(gt,35,this);s(this,Qf,o(gt,36,this,!1)),o(gt,39,this);s(this,Zf,o(gt,40,this,!1)),o(gt,43,this);s(this,ni);s(this,ai,0);s(this,ko,!1);s(this,Dl,t=>{t.propertyName==="height"&&(e(this,q,Hl)?(h(this,q,!1,Nl),this.keepMounted||h(this,q,!1,Bl)):e(this,q,gn)&&h(this,q,"auto",si))});s(this,ql,()=>{if(this.disabled)return;let t=!e(this,q,gn);e(this,ko)||h(this,q,t,ov),this.dispatchEvent(kE({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,ko,this.hasAttribute("open")),!e(this,ko)&&this.defaultOpen&&h(this,q,!0,ov)}willUpdate(t){t.has("open")&&e(this,ni)!==void 0&&h(this,ko,!0);let r=e(this,q,gn);e(this,ni)===void 0?(h(this,q,r,Bl),h(this,q,r?"auto":"0",si)):e(this,ni)!==r&&(r?m(this,q,EE).call(this):m(this,q,$E).call(this)),h(this,ni,r)}render(){let t=e(this,q,gn),r=e(this,q,rv)||this.keepMounted;return f`
|
|
4622
|
+
`,fE,vE,gE,bE,yE,xE,wE,kE,CE,SE,gt,qf,Vf,Uf,jf,Kf,Wf,rv,Fl,q,Gf,Yf,Hl,Nl,Xf,Qf,$E,ni,Jf,Zf,ov,Bl,tv,ev,TE,iv,ai,li,Co,bn,RE,_E,Dl,ql,Ue=class extends(SE=g,CE=[u({type:Boolean,reflect:!0})],kE=[u({type:Boolean,attribute:"default-open"})],wE=[u({type:Boolean,reflect:!0})],xE=[u({type:Boolean,attribute:"keep-mounted"})],yE=[k()],bE=[k()],gE=[k()],vE=[k()],fE=[k()],SE){constructor(){super(...arguments);s(this,q);s(this,qf,o(gt,8,this,!1)),o(gt,11,this);s(this,Vf,o(gt,12,this,!1)),o(gt,15,this);s(this,Uf,o(gt,16,this,!1)),o(gt,19,this);s(this,jf,o(gt,20,this,!1)),o(gt,23,this);s(this,Kf,o(gt,24,this,!1)),o(gt,27,this);s(this,Gf,o(gt,28,this,!1)),o(gt,31,this);s(this,Xf,o(gt,32,this,"0")),o(gt,35,this);s(this,Jf,o(gt,36,this,!1)),o(gt,39,this);s(this,tv,o(gt,40,this,!1)),o(gt,43,this);s(this,ai);s(this,li,0);s(this,Co,!1);s(this,Dl,t=>{t.propertyName==="height"&&(e(this,q,Hl)?(h(this,q,!1,Nl),this.keepMounted||h(this,q,!1,Bl)):e(this,q,bn)&&h(this,q,"auto",ni))});s(this,ql,()=>{if(this.disabled)return;let t=!e(this,q,bn);e(this,Co)||h(this,q,t,iv),this.dispatchEvent(EE({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,Co,this.hasAttribute("open")),!e(this,Co)&&this.defaultOpen&&h(this,q,!0,iv)}willUpdate(t){t.has("open")&&e(this,ai)!==void 0&&h(this,Co,!0);let r=e(this,q,bn);e(this,ai)===void 0?(h(this,q,r,Bl),h(this,q,r?"auto":"0",ni)):e(this,ai)!==r&&(r?m(this,q,RE).call(this):m(this,q,_E).call(this)),h(this,ai,r)}render(){let t=e(this,q,bn),r=e(this,q,ov)||this.keepMounted;return f`
|
|
4601
4623
|
<button
|
|
4602
4624
|
part="trigger"
|
|
4603
4625
|
aria-expanded=${t}
|
|
@@ -4607,17 +4629,16 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4607
4629
|
@click=${e(this,ql)}
|
|
4608
4630
|
>
|
|
4609
4631
|
<slot name="trigger"></slot>
|
|
4610
|
-
${JO}
|
|
4611
4632
|
</button>
|
|
4612
4633
|
${r?f`
|
|
4613
4634
|
<div
|
|
4614
4635
|
part="panel"
|
|
4615
4636
|
role="region"
|
|
4616
|
-
style="height: ${e(this,q
|
|
4617
|
-
?data-open=${t&&!e(this,q,
|
|
4618
|
-
?data-starting-style=${e(this,q,
|
|
4637
|
+
style="height: ${e(this,q,$E)}"
|
|
4638
|
+
?data-open=${t&&!e(this,q,rv)}
|
|
4639
|
+
?data-starting-style=${e(this,q,rv)}
|
|
4619
4640
|
?data-ending-style=${e(this,q,Hl)}
|
|
4620
|
-
?hidden=${!e(this,q,
|
|
4641
|
+
?hidden=${!e(this,q,ov)&&!e(this,q,Hl)}
|
|
4621
4642
|
@transitionend=${e(this,Dl)}
|
|
4622
4643
|
>
|
|
4623
4644
|
<div part="content">
|
|
@@ -4625,16 +4646,16 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4625
4646
|
</div>
|
|
4626
4647
|
</div>
|
|
4627
4648
|
`:$}
|
|
4628
|
-
`}};gt=S(wE),Df=new WeakMap,qf=new WeakMap,Vf=new WeakMap,Uf=new WeakMap,jf=new WeakMap,q=new WeakSet,Wf=new WeakMap,Yf=new WeakMap,Qf=new WeakMap,Zf=new WeakMap,ni=new WeakMap,ai=new WeakMap,ko=new WeakMap,gn=function(){return e(this,ko)?this.open:e(this,q,SE)},EE=function(){let t=++Yi(this,ai)._;h(this,q,!1,Nl),h(this,q,!0,Bl),h(this,q,!0,Fl),h(this,q,"0",si),requestAnimationFrame(()=>{if(e(this,ai)!==t)return;let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,q,`${r.scrollHeight}px`,si),h(this,q,!1,Fl)})},$E=function(){let t=++Yi(this,ai)._;h(this,q,!1,Fl);let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,q,`${r.scrollHeight}px`,si),requestAnimationFrame(()=>{e(this,ai)===t&&(h(this,q,!0,Nl),h(this,q,"0",si))})},Dl=new WeakMap,ql=new WeakMap,l(gt,4,"open",xE,Ue,Df),l(gt,4,"defaultOpen",yE,Ue,qf),l(gt,4,"disabled",bE,Ue,Vf),l(gt,4,"keepMounted",gE,Ue,Uf),Kf=l(gt,20,"#starting",vE,q,jf),ev=Kf.get,Fl=Kf.set,Gf=l(gt,20,"#ending",fE,q,Wf),Hl=Gf.get,Nl=Gf.set,Xf=l(gt,20,"#panelHeight",mE,q,Yf),CE=Xf.get,si=Xf.set,Jf=l(gt,20,"#visible",uE,q,Qf),rv=Jf.get,Bl=Jf.set,tv=l(gt,20,"#internalOpen",hE,q,Zf),SE=tv.get,ov=tv.set,C(gt,Ue),b(Ue,"tagName","dui-collapsible"),b(Ue,"styles",[y,QO]);var nr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},is=n=>(...i)=>({_$litDirective$:n,values:i}),Co=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,r){this._$Ct=i,this._$AM=t,this._$Ci=r}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var{I:ZO}=cC,TE=n=>n;var _E=n=>n.strings===void 0,RE=()=>document.createComment(""),ss=(n,i,t)=>{let r=n._$AA.parentNode,a=i===void 0?n._$AB:i._$AA;if(t===void 0){let d=r.insertBefore(RE(),a),p=r.insertBefore(RE(),a);t=new ZO(d,p,n,n.options)}else{let d=t._$AB.nextSibling,p=t._$AM,v=p!==n;if(v){let x;t._$AQ?.(n),t._$AM=n,t._$AP!==void 0&&(x=n._$AU)!==p._$AU&&t._$AP(x)}if(d!==a||v){let x=t._$AA;for(;x!==d;){let E=TE(x).nextSibling;TE(r).insertBefore(x,a),x=E}}}return t},So=(n,i,t=n)=>(n._$AI(i,t),n),t2={},Vl=(n,i=t2)=>n._$AH=i,IE=n=>n._$AH,Ul=n=>{n._$AR(),n._$AA.remove()};var AE=(n,i,t)=>{let r=new Map;for(let a=i;a<=t;a++)r.set(n[a],a);return r},Eo=is(class extends Co{constructor(n){if(super(n),n.type!==nr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,i,t){let r;t===void 0?t=i:i!==void 0&&(r=i);let a=[],d=[],p=0;for(let v of n)a[p]=r?r(v,p):p,d[p]=t(v,p),p++;return{values:d,keys:a}}render(n,i,t){return this.dt(n,i,t).values}update(n,[i,t,r]){let a=IE(n),{values:d,keys:p}=this.dt(i,t,r);if(!Array.isArray(a))return this.ut=p,d;let v=this.ut??=[],x=[],E,R,w=0,I=a.length-1,_=0,P=d.length-1;for(;w<=I&&_<=P;)if(a[w]===null)w++;else if(a[I]===null)I--;else if(v[w]===p[_])x[_]=So(a[w],d[_]),w++,_++;else if(v[I]===p[P])x[P]=So(a[I],d[P]),I--,P--;else if(v[w]===p[P])x[P]=So(a[w],d[P]),ss(n,x[P+1],a[w]),w++,P--;else if(v[I]===p[_])x[_]=So(a[I],d[_]),ss(n,a[w],a[I]),I--,_++;else if(E===void 0&&(E=AE(p,_,P),R=AE(v,w,I)),E.has(v[w]))if(E.has(v[I])){let D=R.get(p[_]),Z=D!==void 0?a[D]:null;if(Z===null){let j=ss(n,a[w]);So(j,d[_]),x[_]=j}else x[_]=So(Z,d[_]),ss(n,a[w],Z),a[D]=null;_++}else Ul(a[I]),I--;else Ul(a[w]),w++;for(;_<=P;){let D=ss(n,x[P+1]);So(D,d[_]),x[_++]=D}for(;w<=I;){let D=a[w++];D!==null&&Ul(D)}return this.ut=p,Vl(n,x),Jt}});var wr=is(class extends Co{constructor(n){if(super(n),n.type!==nr.PROPERTY&&n.type!==nr.ATTRIBUTE&&n.type!==nr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!_E(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[i]){if(i===Jt||i===$)return i;let t=n.element,r=n.name;if(n.type===nr.PROPERTY){if(i===t[r])return Jt}else if(n.type===nr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(r))return Jt}else if(n.type===nr.ATTRIBUTE&&t.getAttribute(r)===i+"")return Jt;return Vl(n),i}});var jl=new Map,zE=(n,i)=>{for(let[t,r]of jl)t!==n&&r();jl.clear(),jl.set(n,i)},iv=n=>{jl.delete(n)};var $o=Math.min,ae=Math.max,yn=Math.round,xn=Math.floor,ar=n=>({x:n,y:n}),e2={left:"right",right:"left",bottom:"top",top:"bottom"},r2={start:"end",end:"start"};function sv(n,i,t){return ae(n,$o(i,t))}function ns(n,i){return typeof n=="function"?n(i):n}function Xr(n){return n.split("-")[0]}function as(n){return n.split("-")[1]}function nv(n){return n==="x"?"y":"x"}function av(n){return n==="y"?"height":"width"}var o2=new Set(["top","bottom"]);function kr(n){return o2.has(Xr(n))?"y":"x"}function lv(n){return nv(kr(n))}function PE(n,i,t){t===void 0&&(t=!1);let r=as(n),a=lv(n),d=av(a),p=a==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(p=bn(p)),[p,bn(p)]}function ME(n){let i=bn(n);return[Kl(n),i,Kl(i)]}function Kl(n){return n.replace(/start|end/g,i=>r2[i])}var OE=["left","right"],LE=["right","left"],i2=["top","bottom"],s2=["bottom","top"];function n2(n,i,t){switch(n){case"top":case"bottom":return t?i?LE:OE:i?OE:LE;case"left":case"right":return i?i2:s2;default:return[]}}function FE(n,i,t,r){let a=as(n),d=n2(Xr(n),t==="start",r);return a&&(d=d.map(p=>p+"-"+a),i&&(d=d.concat(d.map(Kl)))),d}function bn(n){return n.replace(/left|right|bottom|top/g,i=>e2[i])}function a2(n){return{top:0,right:0,bottom:0,left:0,...n}}function HE(n){return typeof n!="number"?a2(n):{top:n,right:n,bottom:n,left:n}}function li(n){let{x:i,y:t,width:r,height:a}=n;return{width:r,height:a,top:t,left:i,right:i+r,bottom:t+a,x:i,y:t}}function NE(n,i,t){let{reference:r,floating:a}=n,d=kr(i),p=lv(i),v=av(p),x=Xr(i),E=d==="y",R=r.x+r.width/2-a.width/2,w=r.y+r.height/2-a.height/2,I=r[v]/2-a[v]/2,_;switch(x){case"top":_={x:R,y:r.y-a.height};break;case"bottom":_={x:R,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:w};break;case"left":_={x:r.x-a.width,y:w};break;default:_={x:r.x,y:r.y}}switch(as(i)){case"start":_[p]-=I*(t&&E?-1:1);break;case"end":_[p]+=I*(t&&E?-1:1);break}return _}async function BE(n,i){var t;i===void 0&&(i={});let{x:r,y:a,platform:d,rects:p,elements:v,strategy:x}=n,{boundary:E="clippingAncestors",rootBoundary:R="viewport",elementContext:w="floating",altBoundary:I=!1,padding:_=0}=ns(i,n),P=HE(_),Z=v[I?w==="floating"?"reference":"floating":w],j=li(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(Z)))==null||t?Z:Z.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:E,rootBoundary:R,strategy:x})),F=w==="floating"?{x:r,y:a,width:p.floating.width,height:p.floating.height}:p.reference,V=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),Y=await(d.isElement==null?void 0:d.isElement(V))?await(d.getScale==null?void 0:d.getScale(V))||{x:1,y:1}:{x:1,y:1},Wt=li(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:F,offsetParent:V,strategy:x}):F);return{top:(j.top-Wt.top+P.top)/Y.y,bottom:(Wt.bottom-j.bottom+P.bottom)/Y.y,left:(j.left-Wt.left+P.left)/Y.x,right:(Wt.right-j.right+P.right)/Y.x}}var DE=async(n,i,t)=>{let{placement:r="bottom",strategy:a="absolute",middleware:d=[],platform:p}=t,v=d.filter(Boolean),x=await(p.isRTL==null?void 0:p.isRTL(i)),E=await p.getElementRects({reference:n,floating:i,strategy:a}),{x:R,y:w}=NE(E,r,x),I=r,_={},P=0;for(let Z=0;Z<v.length;Z++){var D;let{name:j,fn:F}=v[Z],{x:V,y:Y,data:Wt,reset:ie}=await F({x:R,y:w,initialPlacement:r,placement:I,strategy:a,middlewareData:_,rects:E,platform:{...p,detectOverflow:(D=p.detectOverflow)!=null?D:BE},elements:{reference:n,floating:i}});R=V??R,w=Y??w,_={..._,[j]:{..._[j],...Wt}},ie&&P<=50&&(P++,typeof ie=="object"&&(ie.placement&&(I=ie.placement),ie.rects&&(E=ie.rects===!0?await p.getElementRects({reference:n,floating:i,strategy:a}):ie.rects),{x:R,y:w}=NE(E,I,x)),Z=-1)}return{x:R,y:w,placement:I,strategy:a,middlewareData:_}};var qE=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var t,r;let{placement:a,middlewareData:d,rects:p,initialPlacement:v,platform:x,elements:E}=i,{mainAxis:R=!0,crossAxis:w=!0,fallbackPlacements:I,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:D=!0,...Z}=ns(n,i);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let j=Xr(a),F=kr(v),V=Xr(v)===v,Y=await(x.isRTL==null?void 0:x.isRTL(E.floating)),Wt=I||(V||!D?[bn(v)]:ME(v)),ie=P!=="none";!I&&ie&&Wt.push(...FE(v,D,P,Y));let yr=[v,...Wt],Uo=await x.detectOverflow(i,Z),jo=[],Kr=((r=d.flip)==null?void 0:r.overflows)||[];if(R&&jo.push(Uo[j]),w){let Ko=PE(a,p,Y);jo.push(Uo[Ko[0]],Uo[Ko[1]])}if(Kr=[...Kr,{placement:a,overflows:jo}],!jo.every(Ko=>Ko<=0)){var qs,Vs;let Ko=(((qs=d.flip)==null?void 0:qs.index)||0)+1,sh=yr[Ko];if(sh&&(!(w==="alignment"?F!==kr(sh):!1)||Kr.every(tr=>kr(tr.placement)===F?tr.overflows[0]>0:!0)))return{data:{index:Ko,overflows:Kr},reset:{placement:sh}};let js=(Vs=Kr.filter(Wo=>Wo.overflows[0]<=0).sort((Wo,tr)=>Wo.overflows[1]-tr.overflows[1])[0])==null?void 0:Vs.placement;if(!js)switch(_){case"bestFit":{var Us;let Wo=(Us=Kr.filter(tr=>{if(ie){let go=kr(tr.placement);return go===F||go==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(go=>go>0).reduce((go,lO)=>go+lO,0)]).sort((tr,go)=>tr[1]-go[1])[0])==null?void 0:Us[0];Wo&&(js=Wo);break}case"initialPlacement":js=v;break}if(a!==js)return{reset:{placement:js}}}return{}}}};var l2=new Set(["left","top"]);async function d2(n,i){let{placement:t,platform:r,elements:a}=n,d=await(r.isRTL==null?void 0:r.isRTL(a.floating)),p=Xr(t),v=as(t),x=kr(t)==="y",E=l2.has(p)?-1:1,R=d&&x?-1:1,w=ns(i,n),{mainAxis:I,crossAxis:_,alignmentAxis:P}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return v&&typeof P=="number"&&(_=v==="end"?P*-1:P),x?{x:_*R,y:I*E}:{x:I*E,y:_*R}}var VE=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var t,r;let{x:a,y:d,placement:p,middlewareData:v}=i,x=await d2(i,n);return p===((t=v.offset)==null?void 0:t.placement)&&(r=v.arrow)!=null&&r.alignmentOffset?{}:{x:a+x.x,y:d+x.y,data:{...x,placement:p}}}}},UE=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){let{x:t,y:r,placement:a,platform:d}=i,{mainAxis:p=!0,crossAxis:v=!1,limiter:x={fn:j=>{let{x:F,y:V}=j;return{x:F,y:V}}},...E}=ns(n,i),R={x:t,y:r},w=await d.detectOverflow(i,E),I=kr(Xr(a)),_=nv(I),P=R[_],D=R[I];if(p){let j=_==="y"?"top":"left",F=_==="y"?"bottom":"right",V=P+w[j],Y=P-w[F];P=sv(V,P,Y)}if(v){let j=I==="y"?"top":"left",F=I==="y"?"bottom":"right",V=D+w[j],Y=D-w[F];D=sv(V,D,Y)}let Z=x.fn({...i,[_]:P,[I]:D});return{...Z,data:{x:Z.x-t,y:Z.y-r,enabled:{[_]:p,[I]:v}}}}}};var jE=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var t,r;let{placement:a,rects:d,platform:p,elements:v}=i,{apply:x=()=>{},...E}=ns(n,i),R=await p.detectOverflow(i,E),w=Xr(a),I=as(a),_=kr(a)==="y",{width:P,height:D}=d.floating,Z,j;w==="top"||w==="bottom"?(Z=w,j=I===(await(p.isRTL==null?void 0:p.isRTL(v.floating))?"start":"end")?"left":"right"):(j=w,Z=I==="end"?"top":"bottom");let F=D-R.top-R.bottom,V=P-R.left-R.right,Y=$o(D-R[Z],F),Wt=$o(P-R[j],V),ie=!i.middlewareData.shift,yr=Y,Uo=Wt;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(Uo=V),(r=i.middlewareData.shift)!=null&&r.enabled.y&&(yr=F),ie&&!I){let Kr=ae(R.left,0),qs=ae(R.right,0),Vs=ae(R.top,0),Us=ae(R.bottom,0);_?Uo=P-2*(Kr!==0||qs!==0?Kr+qs:ae(R.left,R.right)):yr=D-2*(Vs!==0||Us!==0?Vs+Us:ae(R.top,R.bottom))}await x({...i,availableWidth:Uo,availableHeight:yr});let jo=await p.getDimensions(v.floating);return P!==jo.width||D!==jo.height?{reset:{rects:!0}}:{}}}};function Wl(){return typeof window<"u"}function di(n){return WE(n)?(n.nodeName||"").toLowerCase():"#document"}function ve(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function lr(n){var i;return(i=(WE(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function WE(n){return Wl()?n instanceof Node||n instanceof ve(n).Node:!1}function je(n){return Wl()?n instanceof Element||n instanceof ve(n).Element:!1}function dr(n){return Wl()?n instanceof HTMLElement||n instanceof ve(n).HTMLElement:!1}function KE(n){return!Wl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ve(n).ShadowRoot}var c2=new Set(["inline","contents"]);function ds(n){let{overflow:i,overflowX:t,overflowY:r,display:a}=Ke(n);return/auto|scroll|overlay|hidden|clip/.test(i+r+t)&&!c2.has(a)}var p2=new Set(["table","td","th"]);function GE(n){return p2.has(di(n))}var h2=[":popover-open",":modal"];function wn(n){return h2.some(i=>{try{return n.matches(i)}catch{return!1}})}var u2=["transform","translate","scale","rotate","perspective"],m2=["transform","translate","scale","rotate","perspective","filter"],f2=["paint","layout","strict","content"];function Gl(n){let i=Yl(),t=je(n)?Ke(n):n;return u2.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||m2.some(r=>(t.willChange||"").includes(r))||f2.some(r=>(t.contain||"").includes(r))}function YE(n){let i=Qr(n);for(;dr(i)&&!ci(i);){if(Gl(i))return i;if(wn(i))return null;i=Qr(i)}return null}function Yl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var v2=new Set(["html","body","#document"]);function ci(n){return v2.has(di(n))}function Ke(n){return ve(n).getComputedStyle(n)}function kn(n){return je(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Qr(n){if(di(n)==="html")return n;let i=n.assignedSlot||n.parentNode||KE(n)&&n.host||lr(n);return KE(i)?i.host:i}function XE(n){let i=Qr(n);return ci(i)?n.ownerDocument?n.ownerDocument.body:n.body:dr(i)&&ds(i)?i:XE(i)}function ls(n,i,t){var r;i===void 0&&(i=[]),t===void 0&&(t=!0);let a=XE(n),d=a===((r=n.ownerDocument)==null?void 0:r.body),p=ve(a);if(d){let v=Xl(p);return i.concat(p,p.visualViewport||[],ds(a)?a:[],v&&t?ls(v):[])}return i.concat(a,ls(a,[],t))}function Xl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function t1(n){let i=Ke(n),t=parseFloat(i.width)||0,r=parseFloat(i.height)||0,a=dr(n),d=a?n.offsetWidth:t,p=a?n.offsetHeight:r,v=yn(t)!==d||yn(r)!==p;return v&&(t=d,r=p),{width:t,height:r,$:v}}function cv(n){return je(n)?n:n.contextElement}function cs(n){let i=cv(n);if(!dr(i))return ar(1);let t=i.getBoundingClientRect(),{width:r,height:a,$:d}=t1(i),p=(d?yn(t.width):t.width)/r,v=(d?yn(t.height):t.height)/a;return(!p||!Number.isFinite(p))&&(p=1),(!v||!Number.isFinite(v))&&(v=1),{x:p,y:v}}var g2=ar(0);function e1(n){let i=ve(n);return!Yl()||!i.visualViewport?g2:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function b2(n,i,t){return i===void 0&&(i=!1),!t||i&&t!==ve(n)?!1:i}function pi(n,i,t,r){i===void 0&&(i=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=cv(n),p=ar(1);i&&(r?je(r)&&(p=cs(r)):p=cs(n));let v=b2(d,t,r)?e1(d):ar(0),x=(a.left+v.x)/p.x,E=(a.top+v.y)/p.y,R=a.width/p.x,w=a.height/p.y;if(d){let I=ve(d),_=r&&je(r)?ve(r):r,P=I,D=Xl(P);for(;D&&r&&_!==P;){let Z=cs(D),j=D.getBoundingClientRect(),F=Ke(D),V=j.left+(D.clientLeft+parseFloat(F.paddingLeft))*Z.x,Y=j.top+(D.clientTop+parseFloat(F.paddingTop))*Z.y;x*=Z.x,E*=Z.y,R*=Z.x,w*=Z.y,x+=V,E+=Y,P=ve(D),D=Xl(P)}}return li({width:R,height:w,x,y:E})}function Ql(n,i){let t=kn(n).scrollLeft;return i?i.left+t:pi(lr(n)).left+t}function r1(n,i){let t=n.getBoundingClientRect(),r=t.left+i.scrollLeft-Ql(n,t),a=t.top+i.scrollTop;return{x:r,y:a}}function y2(n){let{elements:i,rect:t,offsetParent:r,strategy:a}=n,d=a==="fixed",p=lr(r),v=i?wn(i.floating):!1;if(r===p||v&&d)return t;let x={scrollLeft:0,scrollTop:0},E=ar(1),R=ar(0),w=dr(r);if((w||!w&&!d)&&((di(r)!=="body"||ds(p))&&(x=kn(r)),dr(r))){let _=pi(r);E=cs(r),R.x=_.x+r.clientLeft,R.y=_.y+r.clientTop}let I=p&&!w&&!d?r1(p,x):ar(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-x.scrollLeft*E.x+R.x+I.x,y:t.y*E.y-x.scrollTop*E.y+R.y+I.y}}function x2(n){return Array.from(n.getClientRects())}function w2(n){let i=lr(n),t=kn(n),r=n.ownerDocument.body,a=ae(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),d=ae(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight),p=-t.scrollLeft+Ql(n),v=-t.scrollTop;return Ke(r).direction==="rtl"&&(p+=ae(i.clientWidth,r.clientWidth)-a),{width:a,height:d,x:p,y:v}}var QE=25;function k2(n,i){let t=ve(n),r=lr(n),a=t.visualViewport,d=r.clientWidth,p=r.clientHeight,v=0,x=0;if(a){d=a.width,p=a.height;let R=Yl();(!R||R&&i==="fixed")&&(v=a.offsetLeft,x=a.offsetTop)}let E=Ql(r);if(E<=0){let R=r.ownerDocument,w=R.body,I=getComputedStyle(w),_=R.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,P=Math.abs(r.clientWidth-w.clientWidth-_);P<=QE&&(d-=P)}else E<=QE&&(d+=E);return{width:d,height:p,x:v,y:x}}var C2=new Set(["absolute","fixed"]);function S2(n,i){let t=pi(n,!0,i==="fixed"),r=t.top+n.clientTop,a=t.left+n.clientLeft,d=dr(n)?cs(n):ar(1),p=n.clientWidth*d.x,v=n.clientHeight*d.y,x=a*d.x,E=r*d.y;return{width:p,height:v,x,y:E}}function JE(n,i,t){let r;if(i==="viewport")r=k2(n,t);else if(i==="document")r=w2(lr(n));else if(je(i))r=S2(i,t);else{let a=e1(n);r={x:i.x-a.x,y:i.y-a.y,width:i.width,height:i.height}}return li(r)}function o1(n,i){let t=Qr(n);return t===i||!je(t)||ci(t)?!1:Ke(t).position==="fixed"||o1(t,i)}function E2(n,i){let t=i.get(n);if(t)return t;let r=ls(n,[],!1).filter(v=>je(v)&&di(v)!=="body"),a=null,d=Ke(n).position==="fixed",p=d?Qr(n):n;for(;je(p)&&!ci(p);){let v=Ke(p),x=Gl(p);!x&&v.position==="fixed"&&(a=null),(d?!x&&!a:!x&&v.position==="static"&&!!a&&C2.has(a.position)||ds(p)&&!x&&o1(n,p))?r=r.filter(R=>R!==p):a=v,p=Qr(p)}return i.set(n,r),r}function $2(n){let{element:i,boundary:t,rootBoundary:r,strategy:a}=n,p=[...t==="clippingAncestors"?wn(i)?[]:E2(i,this._c):[].concat(t),r],v=p[0],x=p.reduce((E,R)=>{let w=JE(i,R,a);return E.top=ae(w.top,E.top),E.right=$o(w.right,E.right),E.bottom=$o(w.bottom,E.bottom),E.left=ae(w.left,E.left),E},JE(i,v,a));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function T2(n){let{width:i,height:t}=t1(n);return{width:i,height:t}}function R2(n,i,t){let r=dr(i),a=lr(i),d=t==="fixed",p=pi(n,!0,d,i),v={scrollLeft:0,scrollTop:0},x=ar(0);function E(){x.x=Ql(a)}if(r||!r&&!d)if((di(i)!=="body"||ds(a))&&(v=kn(i)),r){let _=pi(i,!0,d,i);x.x=_.x+i.clientLeft,x.y=_.y+i.clientTop}else a&&E();d&&!r&&a&&E();let R=a&&!r&&!d?r1(a,v):ar(0),w=p.left+v.scrollLeft-x.x-R.x,I=p.top+v.scrollTop-x.y-R.y;return{x:w,y:I,width:p.width,height:p.height}}function dv(n){return Ke(n).position==="static"}function ZE(n,i){if(!dr(n)||Ke(n).position==="fixed")return null;if(i)return i(n);let t=n.offsetParent;return lr(n)===t&&(t=t.ownerDocument.body),t}function i1(n,i){let t=ve(n);if(wn(n))return t;if(!dr(n)){let a=Qr(n);for(;a&&!ci(a);){if(je(a)&&!dv(a))return a;a=Qr(a)}return t}let r=ZE(n,i);for(;r&&GE(r)&&dv(r);)r=ZE(r,i);return r&&ci(r)&&dv(r)&&!Gl(r)?t:r||YE(n)||t}var _2=async function(n){let i=this.getOffsetParent||i1,t=this.getDimensions,r=await t(n.floating);return{reference:R2(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function I2(n){return Ke(n).direction==="rtl"}var pv={convertOffsetParentRelativeRectToViewportRelativeRect:y2,getDocumentElement:lr,getClippingRect:$2,getOffsetParent:i1,getElementRects:_2,getClientRects:x2,getDimensions:T2,getScale:cs,isElement:je,isRTL:I2};function s1(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function A2(n,i){let t=null,r,a=lr(n);function d(){var v;clearTimeout(r),(v=t)==null||v.disconnect(),t=null}function p(v,x){v===void 0&&(v=!1),x===void 0&&(x=1),d();let E=n.getBoundingClientRect(),{left:R,top:w,width:I,height:_}=E;if(v||i(),!I||!_)return;let P=xn(w),D=xn(a.clientWidth-(R+I)),Z=xn(a.clientHeight-(w+_)),j=xn(R),V={rootMargin:-P+"px "+-D+"px "+-Z+"px "+-j+"px",threshold:ae(0,$o(1,x))||1},Y=!0;function Wt(ie){let yr=ie[0].intersectionRatio;if(yr!==x){if(!Y)return p();yr?p(!1,yr):r=setTimeout(()=>{p(!1,1e-7)},1e3)}yr===1&&!s1(E,n.getBoundingClientRect())&&p(),Y=!1}try{t=new IntersectionObserver(Wt,{...V,root:a.ownerDocument})}catch{t=new IntersectionObserver(Wt,V)}t.observe(n)}return p(!0),d}function n1(n,i,t,r){r===void 0&&(r={});let{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:x=!1}=r,E=cv(n),R=a||d?[...E?ls(E):[],...ls(i)]:[];R.forEach(j=>{a&&j.addEventListener("scroll",t,{passive:!0}),d&&j.addEventListener("resize",t)});let w=E&&v?A2(E,t):null,I=-1,_=null;p&&(_=new ResizeObserver(j=>{let[F]=j;F&&F.target===E&&_&&(_.unobserve(i),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var V;(V=_)==null||V.observe(i)})),t()}),E&&!x&&_.observe(E),_.observe(i));let P,D=x?pi(n):null;x&&Z();function Z(){let j=pi(n);D&&!s1(D,j)&&t(),D=j,P=requestAnimationFrame(Z)}return t(),()=>{var j;R.forEach(F=>{a&&F.removeEventListener("scroll",t),d&&F.removeEventListener("resize",t)}),w?.(),(j=_)==null||j.disconnect(),_=null,x&&cancelAnimationFrame(P)}}var a1=VE;var l1=UE,d1=qE,hv=jE;var c1=(n,i,t)=>{let r=new Map,a={platform:pv,...t},d={...a.platform,_c:r};return DE(n,i,{...a,platform:d})};var p1=()=>new Promise(n=>requestAnimationFrame(()=>requestAnimationFrame(()=>n()))),h1=(n,i,t=200)=>{let r=!1,a=()=>{r||(r=!0,n.removeEventListener("transitionend",d),clearTimeout(p),i())},d=()=>a();n.addEventListener("transitionend",d);let p=setTimeout(a,t)},ps=n=>f`
|
|
4629
|
-
<svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${
|
|
4649
|
+
`}};gt=S(SE),qf=new WeakMap,Vf=new WeakMap,Uf=new WeakMap,jf=new WeakMap,Kf=new WeakMap,q=new WeakSet,Gf=new WeakMap,Xf=new WeakMap,Jf=new WeakMap,tv=new WeakMap,ai=new WeakMap,li=new WeakMap,Co=new WeakMap,bn=function(){return e(this,Co)?this.open:e(this,q,TE)},RE=function(){let t=++Xi(this,li)._;h(this,q,!1,Nl),h(this,q,!0,Bl),h(this,q,!0,Fl),h(this,q,"0",ni),requestAnimationFrame(()=>{if(e(this,li)!==t)return;let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,q,`${r.scrollHeight}px`,ni),h(this,q,!1,Fl)})},_E=function(){let t=++Xi(this,li)._;h(this,q,!1,Fl);let r=this.shadowRoot?.querySelector("[part='panel']");r&&h(this,q,`${r.scrollHeight}px`,ni),requestAnimationFrame(()=>{e(this,li)===t&&(h(this,q,!0,Nl),h(this,q,"0",ni))})},Dl=new WeakMap,ql=new WeakMap,l(gt,4,"open",CE,Ue,qf),l(gt,4,"defaultOpen",kE,Ue,Vf),l(gt,4,"disabled",wE,Ue,Uf),l(gt,4,"keepMounted",xE,Ue,jf),Wf=l(gt,20,"#starting",yE,q,Kf),rv=Wf.get,Fl=Wf.set,Yf=l(gt,20,"#ending",bE,q,Gf),Hl=Yf.get,Nl=Yf.set,Qf=l(gt,20,"#panelHeight",gE,q,Xf),$E=Qf.get,ni=Qf.set,Zf=l(gt,20,"#visible",vE,q,Jf),ov=Zf.get,Bl=Zf.set,ev=l(gt,20,"#internalOpen",fE,q,tv),TE=ev.get,iv=ev.set,C(gt,Ue),b(Ue,"tagName","dui-collapsible"),b(Ue,"styles",[y,tO]);var nr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ss=a=>(...i)=>({_$litDirective$:a,values:i}),So=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,r){this._$Ct=i,this._$AM=t,this._$Ci=r}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var{I:eO}=pC,IE=a=>a;var zE=a=>a.strings===void 0,AE=()=>document.createComment(""),ns=(a,i,t)=>{let r=a._$AA.parentNode,n=i===void 0?a._$AB:i._$AA;if(t===void 0){let d=r.insertBefore(AE(),n),p=r.insertBefore(AE(),n);t=new eO(d,p,a,a.options)}else{let d=t._$AB.nextSibling,p=t._$AM,v=p!==a;if(v){let x;t._$AQ?.(a),t._$AM=a,t._$AP!==void 0&&(x=a._$AU)!==p._$AU&&t._$AP(x)}if(d!==n||v){let x=t._$AA;for(;x!==d;){let E=IE(x).nextSibling;IE(r).insertBefore(x,n),x=E}}}return t},Eo=(a,i,t=a)=>(a._$AI(i,t),a),rO={},Vl=(a,i=rO)=>a._$AH=i,OE=a=>a._$AH,Ul=a=>{a._$AR(),a._$AA.remove()};var LE=(a,i,t)=>{let r=new Map;for(let n=i;n<=t;n++)r.set(a[n],n);return r},$o=ss(class extends So{constructor(a){if(super(a),a.type!==nr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,i,t){let r;t===void 0?t=i:i!==void 0&&(r=i);let n=[],d=[],p=0;for(let v of a)n[p]=r?r(v,p):p,d[p]=t(v,p),p++;return{values:d,keys:n}}render(a,i,t){return this.dt(a,i,t).values}update(a,[i,t,r]){let n=OE(a),{values:d,keys:p}=this.dt(i,t,r);if(!Array.isArray(n))return this.ut=p,d;let v=this.ut??=[],x=[],E,R,w=0,I=n.length-1,_=0,P=d.length-1;for(;w<=I&&_<=P;)if(n[w]===null)w++;else if(n[I]===null)I--;else if(v[w]===p[_])x[_]=Eo(n[w],d[_]),w++,_++;else if(v[I]===p[P])x[P]=Eo(n[I],d[P]),I--,P--;else if(v[w]===p[P])x[P]=Eo(n[w],d[P]),ns(a,x[P+1],n[w]),w++,P--;else if(v[I]===p[_])x[_]=Eo(n[I],d[_]),ns(a,n[w],n[I]),I--,_++;else if(E===void 0&&(E=LE(p,_,P),R=LE(v,w,I)),E.has(v[w]))if(E.has(v[I])){let D=R.get(p[_]),Z=D!==void 0?n[D]:null;if(Z===null){let j=ns(a,n[w]);Eo(j,d[_]),x[_]=j}else x[_]=Eo(Z,d[_]),ns(a,n[w],Z),n[D]=null;_++}else Ul(n[I]),I--;else Ul(n[w]),w++;for(;_<=P;){let D=ns(a,x[P+1]);Eo(D,d[_]),x[_++]=D}for(;w<=I;){let D=n[w++];D!==null&&Ul(D)}return this.ut=p,Vl(a,x),Jt}});var wr=ss(class extends So{constructor(a){if(super(a),a.type!==nr.PROPERTY&&a.type!==nr.ATTRIBUTE&&a.type!==nr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!zE(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[i]){if(i===Jt||i===$)return i;let t=a.element,r=a.name;if(a.type===nr.PROPERTY){if(i===t[r])return Jt}else if(a.type===nr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(r))return Jt}else if(a.type===nr.ATTRIBUTE&&t.getAttribute(r)===i+"")return Jt;return Vl(a),i}});var jl=new Map,PE=(a,i)=>{for(let[t,r]of jl)t!==a&&r();jl.clear(),jl.set(a,i)},sv=a=>{jl.delete(a)};var To=Math.min,ae=Math.max,xn=Math.round,wn=Math.floor,ar=a=>({x:a,y:a}),oO={left:"right",right:"left",bottom:"top",top:"bottom"},iO={start:"end",end:"start"};function nv(a,i,t){return ae(a,To(i,t))}function as(a,i){return typeof a=="function"?a(i):a}function Xr(a){return a.split("-")[0]}function ls(a){return a.split("-")[1]}function av(a){return a==="x"?"y":"x"}function lv(a){return a==="y"?"height":"width"}var sO=new Set(["top","bottom"]);function kr(a){return sO.has(Xr(a))?"y":"x"}function dv(a){return av(kr(a))}function HE(a,i,t){t===void 0&&(t=!1);let r=ls(a),n=dv(a),d=lv(n),p=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(p=yn(p)),[p,yn(p)]}function NE(a){let i=yn(a);return[Kl(a),i,Kl(i)]}function Kl(a){return a.replace(/start|end/g,i=>iO[i])}var ME=["left","right"],FE=["right","left"],nO=["top","bottom"],aO=["bottom","top"];function lO(a,i,t){switch(a){case"top":case"bottom":return t?i?FE:ME:i?ME:FE;case"left":case"right":return i?nO:aO;default:return[]}}function BE(a,i,t,r){let n=ls(a),d=lO(Xr(a),t==="start",r);return n&&(d=d.map(p=>p+"-"+n),i&&(d=d.concat(d.map(Kl)))),d}function yn(a){return a.replace(/left|right|bottom|top/g,i=>oO[i])}function dO(a){return{top:0,right:0,bottom:0,left:0,...a}}function DE(a){return typeof a!="number"?dO(a):{top:a,right:a,bottom:a,left:a}}function di(a){let{x:i,y:t,width:r,height:n}=a;return{width:r,height:n,top:t,left:i,right:i+r,bottom:t+n,x:i,y:t}}function qE(a,i,t){let{reference:r,floating:n}=a,d=kr(i),p=dv(i),v=lv(p),x=Xr(i),E=d==="y",R=r.x+r.width/2-n.width/2,w=r.y+r.height/2-n.height/2,I=r[v]/2-n[v]/2,_;switch(x){case"top":_={x:R,y:r.y-n.height};break;case"bottom":_={x:R,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:w};break;case"left":_={x:r.x-n.width,y:w};break;default:_={x:r.x,y:r.y}}switch(ls(i)){case"start":_[p]-=I*(t&&E?-1:1);break;case"end":_[p]+=I*(t&&E?-1:1);break}return _}async function VE(a,i){var t;i===void 0&&(i={});let{x:r,y:n,platform:d,rects:p,elements:v,strategy:x}=a,{boundary:E="clippingAncestors",rootBoundary:R="viewport",elementContext:w="floating",altBoundary:I=!1,padding:_=0}=as(i,a),P=DE(_),Z=v[I?w==="floating"?"reference":"floating":w],j=di(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(Z)))==null||t?Z:Z.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:E,rootBoundary:R,strategy:x})),F=w==="floating"?{x:r,y:n,width:p.floating.width,height:p.floating.height}:p.reference,V=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),Y=await(d.isElement==null?void 0:d.isElement(V))?await(d.getScale==null?void 0:d.getScale(V))||{x:1,y:1}:{x:1,y:1},Wt=di(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:F,offsetParent:V,strategy:x}):F);return{top:(j.top-Wt.top+P.top)/Y.y,bottom:(Wt.bottom-j.bottom+P.bottom)/Y.y,left:(j.left-Wt.left+P.left)/Y.x,right:(Wt.right-j.right+P.right)/Y.x}}var UE=async(a,i,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:d=[],platform:p}=t,v=d.filter(Boolean),x=await(p.isRTL==null?void 0:p.isRTL(i)),E=await p.getElementRects({reference:a,floating:i,strategy:n}),{x:R,y:w}=qE(E,r,x),I=r,_={},P=0;for(let Z=0;Z<v.length;Z++){var D;let{name:j,fn:F}=v[Z],{x:V,y:Y,data:Wt,reset:ie}=await F({x:R,y:w,initialPlacement:r,placement:I,strategy:n,middlewareData:_,rects:E,platform:{...p,detectOverflow:(D=p.detectOverflow)!=null?D:VE},elements:{reference:a,floating:i}});R=V??R,w=Y??w,_={..._,[j]:{..._[j],...Wt}},ie&&P<=50&&(P++,typeof ie=="object"&&(ie.placement&&(I=ie.placement),ie.rects&&(E=ie.rects===!0?await p.getElementRects({reference:a,floating:i,strategy:n}):ie.rects),{x:R,y:w}=qE(E,I,x)),Z=-1)}return{x:R,y:w,placement:I,strategy:n,middlewareData:_}};var jE=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var t,r;let{placement:n,middlewareData:d,rects:p,initialPlacement:v,platform:x,elements:E}=i,{mainAxis:R=!0,crossAxis:w=!0,fallbackPlacements:I,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:D=!0,...Z}=as(a,i);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let j=Xr(n),F=kr(v),V=Xr(v)===v,Y=await(x.isRTL==null?void 0:x.isRTL(E.floating)),Wt=I||(V||!D?[yn(v)]:NE(v)),ie=P!=="none";!I&&ie&&Wt.push(...BE(v,D,P,Y));let yr=[v,...Wt],jo=await x.detectOverflow(i,Z),Ko=[],Kr=((r=d.flip)==null?void 0:r.overflows)||[];if(R&&Ko.push(jo[j]),w){let Wo=HE(n,p,Y);Ko.push(jo[Wo[0]],jo[Wo[1]])}if(Kr=[...Kr,{placement:n,overflows:Ko}],!Ko.every(Wo=>Wo<=0)){var Vs,Us;let Wo=(((Vs=d.flip)==null?void 0:Vs.index)||0)+1,sh=yr[Wo];if(sh&&(!(w==="alignment"?F!==kr(sh):!1)||Kr.every(tr=>kr(tr.placement)===F?tr.overflows[0]>0:!0)))return{data:{index:Wo,overflows:Kr},reset:{placement:sh}};let Ks=(Us=Kr.filter(Go=>Go.overflows[0]<=0).sort((Go,tr)=>Go.overflows[1]-tr.overflows[1])[0])==null?void 0:Us.placement;if(!Ks)switch(_){case"bestFit":{var js;let Go=(js=Kr.filter(tr=>{if(ie){let go=kr(tr.placement);return go===F||go==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(go=>go>0).reduce((go,p2)=>go+p2,0)]).sort((tr,go)=>tr[1]-go[1])[0])==null?void 0:js[0];Go&&(Ks=Go);break}case"initialPlacement":Ks=v;break}if(n!==Ks)return{reset:{placement:Ks}}}return{}}}};var cO=new Set(["left","top"]);async function pO(a,i){let{placement:t,platform:r,elements:n}=a,d=await(r.isRTL==null?void 0:r.isRTL(n.floating)),p=Xr(t),v=ls(t),x=kr(t)==="y",E=cO.has(p)?-1:1,R=d&&x?-1:1,w=as(i,a),{mainAxis:I,crossAxis:_,alignmentAxis:P}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return v&&typeof P=="number"&&(_=v==="end"?P*-1:P),x?{x:_*R,y:I*E}:{x:I*E,y:_*R}}var KE=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var t,r;let{x:n,y:d,placement:p,middlewareData:v}=i,x=await pO(i,a);return p===((t=v.offset)==null?void 0:t.placement)&&(r=v.arrow)!=null&&r.alignmentOffset?{}:{x:n+x.x,y:d+x.y,data:{...x,placement:p}}}}},WE=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){let{x:t,y:r,placement:n,platform:d}=i,{mainAxis:p=!0,crossAxis:v=!1,limiter:x={fn:j=>{let{x:F,y:V}=j;return{x:F,y:V}}},...E}=as(a,i),R={x:t,y:r},w=await d.detectOverflow(i,E),I=kr(Xr(n)),_=av(I),P=R[_],D=R[I];if(p){let j=_==="y"?"top":"left",F=_==="y"?"bottom":"right",V=P+w[j],Y=P-w[F];P=nv(V,P,Y)}if(v){let j=I==="y"?"top":"left",F=I==="y"?"bottom":"right",V=D+w[j],Y=D-w[F];D=nv(V,D,Y)}let Z=x.fn({...i,[_]:P,[I]:D});return{...Z,data:{x:Z.x-t,y:Z.y-r,enabled:{[_]:p,[I]:v}}}}}};var GE=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var t,r;let{placement:n,rects:d,platform:p,elements:v}=i,{apply:x=()=>{},...E}=as(a,i),R=await p.detectOverflow(i,E),w=Xr(n),I=ls(n),_=kr(n)==="y",{width:P,height:D}=d.floating,Z,j;w==="top"||w==="bottom"?(Z=w,j=I===(await(p.isRTL==null?void 0:p.isRTL(v.floating))?"start":"end")?"left":"right"):(j=w,Z=I==="end"?"top":"bottom");let F=D-R.top-R.bottom,V=P-R.left-R.right,Y=To(D-R[Z],F),Wt=To(P-R[j],V),ie=!i.middlewareData.shift,yr=Y,jo=Wt;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(jo=V),(r=i.middlewareData.shift)!=null&&r.enabled.y&&(yr=F),ie&&!I){let Kr=ae(R.left,0),Vs=ae(R.right,0),Us=ae(R.top,0),js=ae(R.bottom,0);_?jo=P-2*(Kr!==0||Vs!==0?Kr+Vs:ae(R.left,R.right)):yr=D-2*(Us!==0||js!==0?Us+js:ae(R.top,R.bottom))}await x({...i,availableWidth:jo,availableHeight:yr});let Ko=await p.getDimensions(v.floating);return P!==Ko.width||D!==Ko.height?{reset:{rects:!0}}:{}}}};function Wl(){return typeof window<"u"}function ci(a){return XE(a)?(a.nodeName||"").toLowerCase():"#document"}function ve(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function lr(a){var i;return(i=(XE(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function XE(a){return Wl()?a instanceof Node||a instanceof ve(a).Node:!1}function je(a){return Wl()?a instanceof Element||a instanceof ve(a).Element:!1}function dr(a){return Wl()?a instanceof HTMLElement||a instanceof ve(a).HTMLElement:!1}function YE(a){return!Wl()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ve(a).ShadowRoot}var hO=new Set(["inline","contents"]);function cs(a){let{overflow:i,overflowX:t,overflowY:r,display:n}=Ke(a);return/auto|scroll|overlay|hidden|clip/.test(i+r+t)&&!hO.has(n)}var uO=new Set(["table","td","th"]);function QE(a){return uO.has(ci(a))}var mO=[":popover-open",":modal"];function kn(a){return mO.some(i=>{try{return a.matches(i)}catch{return!1}})}var fO=["transform","translate","scale","rotate","perspective"],vO=["transform","translate","scale","rotate","perspective","filter"],gO=["paint","layout","strict","content"];function Gl(a){let i=Yl(),t=je(a)?Ke(a):a;return fO.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||vO.some(r=>(t.willChange||"").includes(r))||gO.some(r=>(t.contain||"").includes(r))}function JE(a){let i=Qr(a);for(;dr(i)&&!pi(i);){if(Gl(i))return i;if(kn(i))return null;i=Qr(i)}return null}function Yl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var bO=new Set(["html","body","#document"]);function pi(a){return bO.has(ci(a))}function Ke(a){return ve(a).getComputedStyle(a)}function Cn(a){return je(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Qr(a){if(ci(a)==="html")return a;let i=a.assignedSlot||a.parentNode||YE(a)&&a.host||lr(a);return YE(i)?i.host:i}function ZE(a){let i=Qr(a);return pi(i)?a.ownerDocument?a.ownerDocument.body:a.body:dr(i)&&cs(i)?i:ZE(i)}function ds(a,i,t){var r;i===void 0&&(i=[]),t===void 0&&(t=!0);let n=ZE(a),d=n===((r=a.ownerDocument)==null?void 0:r.body),p=ve(n);if(d){let v=Xl(p);return i.concat(p,p.visualViewport||[],cs(n)?n:[],v&&t?ds(v):[])}return i.concat(n,ds(n,[],t))}function Xl(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function o1(a){let i=Ke(a),t=parseFloat(i.width)||0,r=parseFloat(i.height)||0,n=dr(a),d=n?a.offsetWidth:t,p=n?a.offsetHeight:r,v=xn(t)!==d||xn(r)!==p;return v&&(t=d,r=p),{width:t,height:r,$:v}}function pv(a){return je(a)?a:a.contextElement}function ps(a){let i=pv(a);if(!dr(i))return ar(1);let t=i.getBoundingClientRect(),{width:r,height:n,$:d}=o1(i),p=(d?xn(t.width):t.width)/r,v=(d?xn(t.height):t.height)/n;return(!p||!Number.isFinite(p))&&(p=1),(!v||!Number.isFinite(v))&&(v=1),{x:p,y:v}}var yO=ar(0);function i1(a){let i=ve(a);return!Yl()||!i.visualViewport?yO:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function xO(a,i,t){return i===void 0&&(i=!1),!t||i&&t!==ve(a)?!1:i}function hi(a,i,t,r){i===void 0&&(i=!1),t===void 0&&(t=!1);let n=a.getBoundingClientRect(),d=pv(a),p=ar(1);i&&(r?je(r)&&(p=ps(r)):p=ps(a));let v=xO(d,t,r)?i1(d):ar(0),x=(n.left+v.x)/p.x,E=(n.top+v.y)/p.y,R=n.width/p.x,w=n.height/p.y;if(d){let I=ve(d),_=r&&je(r)?ve(r):r,P=I,D=Xl(P);for(;D&&r&&_!==P;){let Z=ps(D),j=D.getBoundingClientRect(),F=Ke(D),V=j.left+(D.clientLeft+parseFloat(F.paddingLeft))*Z.x,Y=j.top+(D.clientTop+parseFloat(F.paddingTop))*Z.y;x*=Z.x,E*=Z.y,R*=Z.x,w*=Z.y,x+=V,E+=Y,P=ve(D),D=Xl(P)}}return di({width:R,height:w,x,y:E})}function Ql(a,i){let t=Cn(a).scrollLeft;return i?i.left+t:hi(lr(a)).left+t}function s1(a,i){let t=a.getBoundingClientRect(),r=t.left+i.scrollLeft-Ql(a,t),n=t.top+i.scrollTop;return{x:r,y:n}}function wO(a){let{elements:i,rect:t,offsetParent:r,strategy:n}=a,d=n==="fixed",p=lr(r),v=i?kn(i.floating):!1;if(r===p||v&&d)return t;let x={scrollLeft:0,scrollTop:0},E=ar(1),R=ar(0),w=dr(r);if((w||!w&&!d)&&((ci(r)!=="body"||cs(p))&&(x=Cn(r)),dr(r))){let _=hi(r);E=ps(r),R.x=_.x+r.clientLeft,R.y=_.y+r.clientTop}let I=p&&!w&&!d?s1(p,x):ar(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-x.scrollLeft*E.x+R.x+I.x,y:t.y*E.y-x.scrollTop*E.y+R.y+I.y}}function kO(a){return Array.from(a.getClientRects())}function CO(a){let i=lr(a),t=Cn(a),r=a.ownerDocument.body,n=ae(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),d=ae(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight),p=-t.scrollLeft+Ql(a),v=-t.scrollTop;return Ke(r).direction==="rtl"&&(p+=ae(i.clientWidth,r.clientWidth)-n),{width:n,height:d,x:p,y:v}}var t1=25;function SO(a,i){let t=ve(a),r=lr(a),n=t.visualViewport,d=r.clientWidth,p=r.clientHeight,v=0,x=0;if(n){d=n.width,p=n.height;let R=Yl();(!R||R&&i==="fixed")&&(v=n.offsetLeft,x=n.offsetTop)}let E=Ql(r);if(E<=0){let R=r.ownerDocument,w=R.body,I=getComputedStyle(w),_=R.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,P=Math.abs(r.clientWidth-w.clientWidth-_);P<=t1&&(d-=P)}else E<=t1&&(d+=E);return{width:d,height:p,x:v,y:x}}var EO=new Set(["absolute","fixed"]);function $O(a,i){let t=hi(a,!0,i==="fixed"),r=t.top+a.clientTop,n=t.left+a.clientLeft,d=dr(a)?ps(a):ar(1),p=a.clientWidth*d.x,v=a.clientHeight*d.y,x=n*d.x,E=r*d.y;return{width:p,height:v,x,y:E}}function e1(a,i,t){let r;if(i==="viewport")r=SO(a,t);else if(i==="document")r=CO(lr(a));else if(je(i))r=$O(i,t);else{let n=i1(a);r={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return di(r)}function n1(a,i){let t=Qr(a);return t===i||!je(t)||pi(t)?!1:Ke(t).position==="fixed"||n1(t,i)}function TO(a,i){let t=i.get(a);if(t)return t;let r=ds(a,[],!1).filter(v=>je(v)&&ci(v)!=="body"),n=null,d=Ke(a).position==="fixed",p=d?Qr(a):a;for(;je(p)&&!pi(p);){let v=Ke(p),x=Gl(p);!x&&v.position==="fixed"&&(n=null),(d?!x&&!n:!x&&v.position==="static"&&!!n&&EO.has(n.position)||cs(p)&&!x&&n1(a,p))?r=r.filter(R=>R!==p):n=v,p=Qr(p)}return i.set(a,r),r}function RO(a){let{element:i,boundary:t,rootBoundary:r,strategy:n}=a,p=[...t==="clippingAncestors"?kn(i)?[]:TO(i,this._c):[].concat(t),r],v=p[0],x=p.reduce((E,R)=>{let w=e1(i,R,n);return E.top=ae(w.top,E.top),E.right=To(w.right,E.right),E.bottom=To(w.bottom,E.bottom),E.left=ae(w.left,E.left),E},e1(i,v,n));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function _O(a){let{width:i,height:t}=o1(a);return{width:i,height:t}}function IO(a,i,t){let r=dr(i),n=lr(i),d=t==="fixed",p=hi(a,!0,d,i),v={scrollLeft:0,scrollTop:0},x=ar(0);function E(){x.x=Ql(n)}if(r||!r&&!d)if((ci(i)!=="body"||cs(n))&&(v=Cn(i)),r){let _=hi(i,!0,d,i);x.x=_.x+i.clientLeft,x.y=_.y+i.clientTop}else n&&E();d&&!r&&n&&E();let R=n&&!r&&!d?s1(n,v):ar(0),w=p.left+v.scrollLeft-x.x-R.x,I=p.top+v.scrollTop-x.y-R.y;return{x:w,y:I,width:p.width,height:p.height}}function cv(a){return Ke(a).position==="static"}function r1(a,i){if(!dr(a)||Ke(a).position==="fixed")return null;if(i)return i(a);let t=a.offsetParent;return lr(a)===t&&(t=t.ownerDocument.body),t}function a1(a,i){let t=ve(a);if(kn(a))return t;if(!dr(a)){let n=Qr(a);for(;n&&!pi(n);){if(je(n)&&!cv(n))return n;n=Qr(n)}return t}let r=r1(a,i);for(;r&&QE(r)&&cv(r);)r=r1(r,i);return r&&pi(r)&&cv(r)&&!Gl(r)?t:r||JE(a)||t}var AO=async function(a){let i=this.getOffsetParent||a1,t=this.getDimensions,r=await t(a.floating);return{reference:IO(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zO(a){return Ke(a).direction==="rtl"}var hv={convertOffsetParentRelativeRectToViewportRelativeRect:wO,getDocumentElement:lr,getClippingRect:RO,getOffsetParent:a1,getElementRects:AO,getClientRects:kO,getDimensions:_O,getScale:ps,isElement:je,isRTL:zO};function l1(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function OO(a,i){let t=null,r,n=lr(a);function d(){var v;clearTimeout(r),(v=t)==null||v.disconnect(),t=null}function p(v,x){v===void 0&&(v=!1),x===void 0&&(x=1),d();let E=a.getBoundingClientRect(),{left:R,top:w,width:I,height:_}=E;if(v||i(),!I||!_)return;let P=wn(w),D=wn(n.clientWidth-(R+I)),Z=wn(n.clientHeight-(w+_)),j=wn(R),V={rootMargin:-P+"px "+-D+"px "+-Z+"px "+-j+"px",threshold:ae(0,To(1,x))||1},Y=!0;function Wt(ie){let yr=ie[0].intersectionRatio;if(yr!==x){if(!Y)return p();yr?p(!1,yr):r=setTimeout(()=>{p(!1,1e-7)},1e3)}yr===1&&!l1(E,a.getBoundingClientRect())&&p(),Y=!1}try{t=new IntersectionObserver(Wt,{...V,root:n.ownerDocument})}catch{t=new IntersectionObserver(Wt,V)}t.observe(a)}return p(!0),d}function d1(a,i,t,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:d=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:x=!1}=r,E=pv(a),R=n||d?[...E?ds(E):[],...ds(i)]:[];R.forEach(j=>{n&&j.addEventListener("scroll",t,{passive:!0}),d&&j.addEventListener("resize",t)});let w=E&&v?OO(E,t):null,I=-1,_=null;p&&(_=new ResizeObserver(j=>{let[F]=j;F&&F.target===E&&_&&(_.unobserve(i),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var V;(V=_)==null||V.observe(i)})),t()}),E&&!x&&_.observe(E),_.observe(i));let P,D=x?hi(a):null;x&&Z();function Z(){let j=hi(a);D&&!l1(D,j)&&t(),D=j,P=requestAnimationFrame(Z)}return t(),()=>{var j;R.forEach(F=>{n&&F.removeEventListener("scroll",t),d&&F.removeEventListener("resize",t)}),w?.(),(j=_)==null||j.disconnect(),_=null,x&&cancelAnimationFrame(P)}}var c1=KE;var p1=WE,h1=jE,uv=GE;var u1=(a,i,t)=>{let r=new Map,n={platform:hv,...t},d={...n.platform,_c:r};return UE(a,i,{...n,platform:d})};var m1=()=>new Promise(a=>requestAnimationFrame(()=>requestAnimationFrame(()=>a()))),f1=(a,i,t=200)=>{let r=!1,n=()=>{r||(r=!0,a.removeEventListener("transitionend",d),clearTimeout(p),i())},d=()=>n();a.addEventListener("transitionend",d);let p=setTimeout(n,t)},hs=a=>f`
|
|
4650
|
+
<svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${a}">
|
|
4630
4651
|
<polygon class="arrow-fill" points="0,0 5,6 10,0" />
|
|
4631
4652
|
<path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
|
|
4632
4653
|
</svg>
|
|
4633
|
-
`,
|
|
4654
|
+
`,LO={...hv,getOffsetParent:()=>window},PO=(a,i,t={})=>{let{placement:r="bottom-start",offsetPx:n=4,matchWidth:d=!1,minMatchWidth:p=!1,padding:v=8}=t,x=[c1(n),h1(),p1({padding:v})];return d?x.push(uv({apply({rects:E,elements:R}){Object.assign(R.floating.style,{width:`${E.reference.width}px`})}})):p&&x.push(uv({apply({rects:E,elements:R}){Object.assign(R.floating.style,{minWidth:`${E.reference.width}px`})}})),u1(a,i,{placement:r,strategy:"fixed",middleware:x,platform:LO})},v1=(a,i,t={})=>{let{onPosition:r,...n}=t;return d1(a,i,()=>{PO(a,i,n).then(d=>{Object.assign(i.style,{left:`${d.x}px`,top:`${d.y}px`}),r?.(d)})})};var te=class{#t;#e;#s;#n;#a;#l;#d;#v;#g;#b;#u;#m;#f;#y;#c=[];#r=null;#p=null;#o=!1;#i=!1;#h=0;get isOpen(){return this.#o}get isAnimating(){return this.#i}get isStarting(){return this.#o&&this.#i}get isEnding(){return!this.#o&&this.#i}get positionerElement(){return this.#r}get renderRoot(){return this.#r?.shadowRoot??this.#r}set placement(i){this.#a=i}set offset(i){this.#l=i}constructor(i,t){this.#t=i,this.#e=t.getAnchor,this.#s=t.matchWidth??!0,this.#n=t.minMatchWidth??!1,this.#a=t.placement??"bottom-start",this.#l=t.offset??4,this.#d=t.styles,this.#v=t.onOpen,this.#g=t.onClose,this.#b=t.onPosition,this.#u=t.renderPopup,this.#m=t.contentContainer,this.#f=t.contentSelector,this.#y=t.getOverlayRoot??(()=>document.body),i.addController(this)}hostConnected(){document.addEventListener("click",this.#w)}hostDisconnected(){document.removeEventListener("click",this.#w),this.#I(),sv(this.#t)}hostUpdated(){if(this.#o?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#u&&(this.#o||this.isEnding)){let i=this.renderRoot;i&&qa(this.#u(this),i)}this.#m&&this.#o&&this.#c.length===0&&this.#R()}open(){if(this.#o)return;this.#h++;let i=this.#h;PE(this.#t,()=>this.close()),this.#o=!0,this.#i=!0,this.#S(),this.#T(),this.#v?.(),this.#t.requestUpdate(),m1().then(()=>{i===this.#h&&(this.#i=!1,this.#t.requestUpdate())})}close(){if(!this.#o)return;this.#h++,this.#i=!0,this.#t.requestUpdate();let i=this.renderRoot?.querySelector(".Popup");if(!i){this.#x();return}f1(i,()=>this.#x())}#x(){this.#o&&(this.#o=!1,this.#i=!1,this.#k(),sv(this.#t),this.#g?.(),this.#E(),this.#t.requestUpdate())}#w=i=>{if(!this.#o)return;let t=i.composedPath();!t.includes(this.#t)&&!this.#C(t)&&this.close()};#C(i){return this.#r?i.includes(this.#r):!1}#S(){if(this.#r){this.#r.style.display="";return}let i=this.#y(),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 r=Yk(),n=this.#t.tagName.toLowerCase(),d=r?.styles.get(n),p=[...this.#d??[],...r?.base?[r.base]:[],...d?[d]:[]];if(p.length>0){let v=t.attachShadow({mode:"open"});za(v,p)}i.appendChild(t),this.#r=t}#E(){this.#r&&(this.#r.style.display="none")}#$(){this.#r?.remove(),this.#r=null}#T(){if(this.#p)return;let i=this.#e(),t=this.#r;!i||!t||(this.#p=v1(i,t,{placement:this.#a,offsetPx:this.#l,matchWidth:this.#s,minMatchWidth:this.#n,onPosition:this.#b}))}#k(){this.#p?.(),this.#p=null}#R(){let i=this.renderRoot?.querySelector(this.#m);if(!i)return;let t=this.#f?Array.from(this.#t.querySelectorAll(`:scope > ${this.#f}`)):Array.from(this.#t.childNodes);for(let r of t)i.appendChild(r),this.#c.push(r)}#_(){for(let i of this.#c)this.#t.appendChild(i);this.#c=[]}#I(){this.#k(),this.#_(),this.#$()}};var T1=z("value-change",{bubbles:!0,composed:!0}),Ev=z("values-change",{bubbles:!0,composed:!0}),MO=c`
|
|
4634
4655
|
:host {
|
|
4635
4656
|
display: block;
|
|
4636
4657
|
}
|
|
4637
|
-
`,
|
|
4658
|
+
`,FO=c`
|
|
4638
4659
|
/* ---- Input area (structural) ---- */
|
|
4639
4660
|
|
|
4640
4661
|
.Chips {
|
|
@@ -4701,7 +4722,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4701
4722
|
cursor: pointer;
|
|
4702
4723
|
flex-shrink: 0;
|
|
4703
4724
|
}
|
|
4704
|
-
`,
|
|
4725
|
+
`,HO=[c`
|
|
4705
4726
|
.Popup {
|
|
4706
4727
|
opacity: 1;
|
|
4707
4728
|
transform: translateY(0);
|
|
@@ -4738,7 +4759,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4738
4759
|
text-overflow: ellipsis;
|
|
4739
4760
|
white-space: nowrap;
|
|
4740
4761
|
}
|
|
4741
|
-
`],
|
|
4762
|
+
`],g1,b1,y1,x1,w1,k1,C1,S1,E1,$1,bt,mv,fv,vv,gv,bv,yv,xv,wv,kv,Jr,Cr,X,Cv,Sv,Jl,ui,Ht,Sn,mi,$v,Zl,td,ed,Tv,Rv,rd,od,id,sd,nd,ad,le=class extends($1=g,E1=[u({attribute:!1})],S1=[u({type:String})],C1=[u({attribute:!1})],k1=[u({type:Boolean,reflect:!0})],w1=[u({type:String})],x1=[u({type:Boolean,reflect:!0})],y1=[u({type:String})],b1=[k()],g1=[k()],$1){constructor(){super(...arguments);s(this,X);s(this,mv,o(bt,8,this,[])),o(bt,11,this);s(this,fv,o(bt,12,this,"")),o(bt,15,this);s(this,vv,o(bt,16,this,new Set)),o(bt,19,this);s(this,gv,o(bt,20,this,!1)),o(bt,23,this);s(this,bv,o(bt,24,this,"Search...")),o(bt,27,this);s(this,yv,o(bt,28,this,!1)),o(bt,31,this);s(this,xv,o(bt,32,this,"")),o(bt,35,this);s(this,wv,o(bt,36,this,-1)),o(bt,39,this);s(this,Cv,o(bt,40,this,"")),o(bt,43,this);s(this,Ht,new te(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:HO,onOpen:()=>{if(h(this,X,-1,Cr),!this.multiple){h(this,X,"",ui);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(h(this,X,-1,Cr),!this.multiple){let t=this.options.find(r=>r.value===this.value);h(this,X,t?.label??"",ui)}},renderPopup:t=>{let r=e(this,X,$v),n=r.length===0;return f`
|
|
4742
4763
|
<div
|
|
4743
4764
|
class="Popup"
|
|
4744
4765
|
?data-starting-style="${t.isStarting}"
|
|
@@ -4747,57 +4768,57 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4747
4768
|
<dui-scroll-area>
|
|
4748
4769
|
<div
|
|
4749
4770
|
class="List"
|
|
4750
|
-
id="${e(this,
|
|
4771
|
+
id="${e(this,mi)}"
|
|
4751
4772
|
role="listbox"
|
|
4752
|
-
aria-labelledby="${e(this,
|
|
4753
|
-
?data-empty="${
|
|
4773
|
+
aria-labelledby="${e(this,Sn)}"
|
|
4774
|
+
?data-empty="${n}"
|
|
4754
4775
|
@mousedown="${e(this,od)}"
|
|
4755
4776
|
@mousemove="${e(this,id)}"
|
|
4756
4777
|
>
|
|
4757
|
-
${
|
|
4758
|
-
${
|
|
4778
|
+
${$o(r,d=>d.value,e(this,ad))}
|
|
4779
|
+
${n?f` <div class="Empty">No results</div> `:$}
|
|
4759
4780
|
</div>
|
|
4760
4781
|
</dui-scroll-area>
|
|
4761
4782
|
</div>
|
|
4762
|
-
`}}));s(this,
|
|
4783
|
+
`}}));s(this,Sn,`combobox-input-${crypto.randomUUID().slice(0,8)}`);s(this,mi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);s(this,Zl,t=>{let r=t.target;h(this,X,r.value,ui),e(this,Ht).isOpen||this.disabled||e(this,Ht).open(),h(this,X,-1,Cr)});s(this,td,()=>{!e(this,Ht).isOpen&&!this.disabled&&e(this,Ht).open()});s(this,ed,t=>{let r=e(this,X,$v);switch(t.key){case"ArrowDown":t.preventDefault(),e(this,Ht).isOpen?h(this,X,Math.min(e(this,X,Jr)+1,r.length-1),Cr):this.disabled||e(this,Ht).open();break;case"ArrowUp":t.preventDefault(),e(this,Ht).isOpen?h(this,X,Math.max(e(this,X,Jr)-1,0),Cr):this.disabled||e(this,Ht).open();break;case"Enter":{if(t.preventDefault(),e(this,Ht).isOpen){let n=e(this,X,Jr)>=0?e(this,X,Jr):0,d=r[n];d&&m(this,X,Tv).call(this,d)}else this.disabled||e(this,Ht).open();break}case"Escape":e(this,Ht).isOpen&&(t.preventDefault(),h(this,X,"",ui),e(this,Ht).close());break;case"Tab":e(this,Ht).isOpen&&e(this,Ht).close();break;case"Home":e(this,Ht).isOpen&&(t.preventDefault(),h(this,X,0,Cr));break;case"End":e(this,Ht).isOpen&&(t.preventDefault(),h(this,X,r.length-1,Cr));break;case"Backspace":if(this.multiple&&e(this,X,Jl)===""&&this.values.size>0){let n=Array.from(this.values).at(-1);n&&m(this,X,Rv).call(this,n)}break}});s(this,rd,t=>{m(this,X,Tv).call(this,t)});s(this,od,t=>{t.preventDefault()});s(this,id,()=>{e(this,X,Jr)!==-1&&h(this,X,-1,Cr)});s(this,sd,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});s(this,nd,t=>{let n=this.options.find(d=>d.value===t)?.label??t;return f`
|
|
4763
4784
|
<span class="Chip">
|
|
4764
|
-
<span class="ChipLabel">${
|
|
4785
|
+
<span class="ChipLabel">${n}</span>
|
|
4765
4786
|
<button
|
|
4766
4787
|
class="ChipRemove"
|
|
4767
4788
|
type="button"
|
|
4768
4789
|
tabindex="-1"
|
|
4769
4790
|
@mousedown="${d=>d.preventDefault()}"
|
|
4770
|
-
@click="${d=>{d.stopPropagation(),m(this,X,
|
|
4791
|
+
@click="${d=>{d.stopPropagation(),m(this,X,Rv).call(this,t)}}"
|
|
4771
4792
|
>
|
|
4772
4793
|
<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>
|
|
4773
4794
|
</button>
|
|
4774
4795
|
</span>
|
|
4775
|
-
`});s(this,ad,(t,r)=>{let
|
|
4796
|
+
`});s(this,ad,(t,r)=>{let n=this.multiple?this.values.has(t.value):t.value===this.value,d=r===e(this,X,Jr);return f`
|
|
4776
4797
|
<div
|
|
4777
4798
|
class="Item"
|
|
4778
4799
|
role="option"
|
|
4779
|
-
id="${e(this,
|
|
4780
|
-
aria-selected="${
|
|
4781
|
-
?data-selected="${
|
|
4800
|
+
id="${e(this,mi)}-option-${r}"
|
|
4801
|
+
aria-selected="${n}"
|
|
4802
|
+
?data-selected="${n}"
|
|
4782
4803
|
?data-highlighted="${d}"
|
|
4783
4804
|
@click="${()=>e(this,rd).call(this,t)}"
|
|
4784
4805
|
>
|
|
4785
4806
|
<span class="ItemText">${t.label}</span>
|
|
4786
4807
|
<span class="ItemIndicator">
|
|
4787
|
-
${
|
|
4808
|
+
${n?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>`:$}
|
|
4788
4809
|
</span>
|
|
4789
4810
|
</div>
|
|
4790
4811
|
`})}render(){let t=f`
|
|
4791
4812
|
<input
|
|
4792
4813
|
class="Input"
|
|
4793
|
-
id="${e(this,
|
|
4814
|
+
id="${e(this,Sn)}"
|
|
4794
4815
|
type="text"
|
|
4795
4816
|
role="combobox"
|
|
4796
4817
|
autocomplete="off"
|
|
4797
4818
|
aria-haspopup="listbox"
|
|
4798
4819
|
aria-expanded="${e(this,Ht).isOpen}"
|
|
4799
|
-
aria-controls="${e(this,
|
|
4800
|
-
aria-activedescendant="${e(this,X,Jr)>=0?`${e(this,
|
|
4820
|
+
aria-controls="${e(this,mi)}"
|
|
4821
|
+
aria-activedescendant="${e(this,X,Jr)>=0?`${e(this,mi)}-option-${e(this,X,Jr)}`:$}"
|
|
4801
4822
|
.value="${wr(e(this,X,Jl))}"
|
|
4802
4823
|
.placeholder="${this.placeholder}"
|
|
4803
4824
|
?disabled="${this.disabled}"
|
|
@@ -4812,11 +4833,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4812
4833
|
?data-disabled="${this.disabled}"
|
|
4813
4834
|
@click="${e(this,sd)}"
|
|
4814
4835
|
>
|
|
4815
|
-
${
|
|
4836
|
+
${$o(Array.from(this.values),r=>r,e(this,nd))}
|
|
4816
4837
|
${t}
|
|
4817
4838
|
<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>
|
|
4818
4839
|
</div>
|
|
4819
|
-
${this.name
|
|
4840
|
+
${this.name?$o(Array.from(this.values),r=>r,r=>f`
|
|
4820
4841
|
<input type="hidden" name="${this.name}" .value="${r}" />
|
|
4821
4842
|
`):$}
|
|
4822
4843
|
`:f`
|
|
@@ -4827,13 +4848,13 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4827
4848
|
${this.name?f`
|
|
4828
4849
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
4829
4850
|
`:$}
|
|
4830
|
-
`}};bt=S(
|
|
4851
|
+
`}};bt=S($1),mv=new WeakMap,fv=new WeakMap,vv=new WeakMap,gv=new WeakMap,bv=new WeakMap,yv=new WeakMap,xv=new WeakMap,wv=new WeakMap,X=new WeakSet,Cv=new WeakMap,Ht=new WeakMap,Sn=new WeakMap,mi=new WeakMap,$v=function(){let t=e(this,X,Jl).toLowerCase(),r=this.options;return t?r.filter(n=>n.label.toLowerCase().includes(t)):r},Zl=new WeakMap,td=new WeakMap,ed=new WeakMap,Tv=function(t){if(this.multiple){let r=new Set(this.values),n=!r.has(t.value);n?r.add(t.value):r.delete(t.value),this.values=r,h(this,X,"",ui),h(this,X,-1,Cr),this.dispatchEvent(Ev({value:t.value,selected:n,values:r})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,h(this,X,t.label,ui),this.dispatchEvent(T1({value:t.value,option:t})),e(this,Ht).close()},Rv=function(t){let r=new Set(this.values);r.delete(t),this.values=r,this.dispatchEvent(Ev({value:t,selected:!1,values:r}))},rd=new WeakMap,od=new WeakMap,id=new WeakMap,sd=new WeakMap,nd=new WeakMap,ad=new WeakMap,l(bt,4,"options",E1,le,mv),l(bt,4,"value",S1,le,fv),l(bt,4,"values",C1,le,vv),l(bt,4,"multiple",k1,le,gv),l(bt,4,"placeholder",w1,le,bv),l(bt,4,"disabled",x1,le,yv),l(bt,4,"name",y1,le,xv),kv=l(bt,20,"#highlightedIndex",b1,X,wv),Jr=kv.get,Cr=kv.set,Sv=l(bt,20,"#inputValue",g1,X,Cv),Jl=Sv.get,ui=Sv.set,C(bt,le),b(le,"tagName","dui-combobox"),b(le,"styles",[y,MO,FO]);var We=Symbol("dui-command");var En=(a,i,t,r)=>{if(!a)return 1;let n=a.toLowerCase(),d=i.toLowerCase(),p=t.toLowerCase();if(d===n)return 1;if(d.startsWith(n))return .8;if(p.startsWith(n))return .75;if(d.includes(n))return .7;if(p.includes(n))return .6;for(let v of r)if(v.toLowerCase().startsWith(n))return .5;for(let v of r)if(v.toLowerCase().includes(n))return .4;return 0};var NO=z("select",{bubbles:!0,composed:!0}),BO=z("search-change",{bubbles:!0,composed:!0}),DO=z("escape",{bubbles:!0,composed:!0}),qO=0,VO=()=>`dui-command-${++qO}`,UO=c`
|
|
4831
4852
|
:host {
|
|
4832
4853
|
display: flex;
|
|
4833
4854
|
flex-direction: column;
|
|
4834
4855
|
overflow: hidden;
|
|
4835
4856
|
}
|
|
4836
|
-
`,
|
|
4857
|
+
`,R1,_1,I1,A1,z1,O1,L1,P1,It,_v,Iv,Av,zv,Ov,Lv,Ro,M1,it,Pv,Mv,$n,Tn,_o,Io,Rn,Sr,dd,F1,cd,us,pd,hd,ud,md,fd,vd,gd,bd,yd,_n,In,Fv,ld,Ae=class extends(P1=g,L1=[u({type:Boolean})],O1=[u({type:Boolean,attribute:"should-filter"})],z1=[u({type:String})],A1=[u({attribute:!1})],I1=[k()],_1=[k()],R1=[kt({context:We}),k()],P1){constructor(){super(...arguments);s(this,it);s(this,_v,o(It,8,this,!1)),o(It,11,this);s(this,Iv,o(It,12,this,!0)),o(It,15,this);s(this,Av,o(It,16,this)),o(It,19,this);s(this,zv,o(It,20,this)),o(It,23,this);s(this,Ov,o(It,24,this,"")),o(It,27,this);s(this,Pv,o(It,28,this)),o(It,31,this);s(this,_o,new Map);s(this,Io,[]);s(this,Rn,new Set);s(this,Sr,new Map);s(this,dd,VO());s(this,cd,t=>this.shouldFilter?e(this,Sr).get(t)??0:1);s(this,pd,()=>m(this,it,us).call(this).length);s(this,hd,t=>m(this,it,us).call(this).filter(r=>r.groupId===t).length);s(this,ud,t=>{e(this,_o).set(t.id,t),e(this,Io).includes(t.id)||e(this,Io).push(t.id);let r=this.filter?this.filter(t.value,e(this,it,Ro),t.keywords):En(e(this,it,Ro),t.value,t.textContent,t.keywords);if(e(this,Sr).set(t.id,r),!e(this,it,$n)){let n=m(this,it,us).call(this);n.length>0&&!n[0].disabled&&h(this,it,n[0].id,Tn)}this.requestUpdate()});s(this,md,t=>{e(this,_o).delete(t),h(this,Io,e(this,Io).filter(r=>r!==t)),e(this,Sr).delete(t),this.requestUpdate()});s(this,fd,t=>{e(this,_o).set(t.id,t);let r=this.filter?this.filter(t.value,e(this,it,Ro),t.keywords):En(e(this,it,Ro),t.value,t.textContent,t.keywords);e(this,Sr).set(t.id,r),this.requestUpdate()});s(this,vd,t=>{e(this,Rn).add(t)});s(this,gd,t=>{e(this,Rn).delete(t)});s(this,bd,t=>{h(this,it,t,M1),m(this,it,F1).call(this);let n=m(this,it,us).call(this).find(d=>!d.disabled);h(this,it,n?.id,Tn),this.dispatchEvent(BO(t))});s(this,yd,t=>{h(this,it,t,Tn)});s(this,_n,t=>{this.dispatchEvent(NO(t))});s(this,In,t=>{let r=m(this,it,us).call(this).filter(p=>!p.disabled);if(r.length===0)return;let n=r.findIndex(p=>p.id===e(this,it,$n)),d=p=>{let v=r[p];v&&h(this,it,v.id,Tn)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),n<r.length-1?d(n+1):this.loop&&d(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),n>0?d(n-1):this.loop&&d(r.length-1);break}case"Home":{t.preventDefault(),d(0);break}case"End":{t.preventDefault(),d(r.length-1);break}case"Enter":{t.preventDefault();let p=r.find(v=>v.id===e(this,it,$n));p&&e(this,_n).call(this,p.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(DO());break}}});s(this,Fv,o(It,32,this,m(this,it,ld).call(this))),o(It,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,In)),this._ctx=m(this,it,ld).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,In))}willUpdate(){this._ctx=m(this,it,ld).call(this)}render(){return f`<slot></slot>`}};It=S(P1),_v=new WeakMap,Iv=new WeakMap,Av=new WeakMap,zv=new WeakMap,Ov=new WeakMap,it=new WeakSet,Pv=new WeakMap,_o=new WeakMap,Io=new WeakMap,Rn=new WeakMap,Sr=new WeakMap,dd=new WeakMap,F1=function(){e(this,Sr).clear();for(let[t,r]of e(this,_o)){let n=this.filter?this.filter(r.value,e(this,it,Ro),r.keywords):En(e(this,it,Ro),r.value,r.textContent,r.keywords);e(this,Sr).set(t,n)}},cd=new WeakMap,us=function(){return e(this,Io).map(t=>e(this,_o).get(t)).filter(t=>t?this.shouldFilter?(e(this,Sr).get(t.id)??0)>0:!0:!1)},pd=new WeakMap,hd=new WeakMap,ud=new WeakMap,md=new WeakMap,fd=new WeakMap,vd=new WeakMap,gd=new WeakMap,bd=new WeakMap,yd=new WeakMap,_n=new WeakMap,In=new WeakMap,Fv=new WeakMap,ld=function(){return{search:e(this,it,Ro),selectedItemId:e(this,it,$n),listId:e(this,dd),loop:this.loop,shouldFilter:this.shouldFilter,getScore:e(this,cd),getVisibleCount:e(this,pd),getGroupVisibleCount:e(this,hd),registerItem:e(this,ud),unregisterItem:e(this,md),updateItem:e(this,fd),registerGroup:e(this,vd),unregisterGroup:e(this,gd),setSearch:e(this,bd),selectItem:e(this,yd),handleItemSelect:e(this,_n)}},l(It,4,"loop",L1,Ae,_v),l(It,4,"shouldFilter",O1,Ae,Iv),l(It,4,"value",z1,Ae,Av),l(It,4,"filter",A1,Ae,zv),Lv=l(It,20,"#search",I1,it,Ov),Ro=Lv.get,M1=Lv.set,Mv=l(It,20,"#selectedItemId",_1,it,Pv),$n=Mv.get,Tn=Mv.set,l(It,4,"_ctx",R1,Ae,Fv),C(It,Ae),b(Ae,"tagName","dui-command"),b(Ae,"styles",[y,UO]);var jO=c`
|
|
4837
4858
|
:host {
|
|
4838
4859
|
display: block;
|
|
4839
4860
|
}
|
|
@@ -4856,7 +4877,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4856
4877
|
background: transparent;
|
|
4857
4878
|
padding: 0;
|
|
4858
4879
|
}
|
|
4859
|
-
`,
|
|
4880
|
+
`,H1,N1,B1,fi,Hv,Nv,ms,xd,wd,Er=class extends(B1=g,N1=[u({type:String})],H1=[et({context:We,subscribe:!0})],B1){constructor(){super(...arguments);s(this,Hv,o(fi,8,this,"Search...")),o(fi,11,this);s(this,Nv,o(fi,12,this)),o(fi,15,this);s(this,ms);s(this,xd,t=>{let r=t.target;this._ctx?.setSearch(r.value)});s(this,wd,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(e(this,ms)!==void 0&&this._ctx?.search===""&&e(this,ms)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}h(this,ms,this._ctx?.search)}render(){return f`
|
|
4860
4881
|
<div class="InputWrapper">
|
|
4861
4882
|
<svg
|
|
4862
4883
|
class="SearchIcon"
|
|
@@ -4885,7 +4906,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4885
4906
|
@keydown="${e(this,wd)}"
|
|
4886
4907
|
/>
|
|
4887
4908
|
</div>
|
|
4888
|
-
`}};
|
|
4909
|
+
`}};fi=S(B1),Hv=new WeakMap,Nv=new WeakMap,ms=new WeakMap,xd=new WeakMap,wd=new WeakMap,l(fi,4,"placeholder",N1,Er,Hv),l(fi,4,"_ctx",H1,Er,Nv),C(fi,Er),b(Er,"tagName","dui-command-input"),b(Er,"styles",[y,jO]);var KO=c`
|
|
4889
4910
|
:host {
|
|
4890
4911
|
display: block;
|
|
4891
4912
|
}
|
|
@@ -4893,7 +4914,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4893
4914
|
.List {
|
|
4894
4915
|
overflow: hidden;
|
|
4895
4916
|
}
|
|
4896
|
-
`,
|
|
4917
|
+
`,D1,q1,kd,Bv,Zr=class extends(q1=g,D1=[et({context:We,subscribe:!0})],q1){constructor(){super(...arguments);s(this,Bv,o(kd,8,this)),o(kd,11,this)}render(){return f`
|
|
4897
4918
|
<dui-scroll-area>
|
|
4898
4919
|
<div
|
|
4899
4920
|
class="List"
|
|
@@ -4903,29 +4924,29 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4903
4924
|
<slot></slot>
|
|
4904
4925
|
</div>
|
|
4905
4926
|
</dui-scroll-area>
|
|
4906
|
-
`}};kd=S(
|
|
4927
|
+
`}};kd=S(q1),Bv=new WeakMap,l(kd,4,"_ctx",D1,Zr,Bv),C(kd,Zr),b(Zr,"tagName","dui-command-list"),b(Zr,"styles",[y,KO]);var WO=0,GO=()=>`dui-command-group-${++WO}`,YO=c`
|
|
4907
4928
|
:host {
|
|
4908
4929
|
display: block;
|
|
4909
4930
|
}
|
|
4910
4931
|
|
|
4911
|
-
:host([data-hidden]) {
|
|
4932
|
+
:host([data-hidden]) .Group {
|
|
4912
4933
|
display: none;
|
|
4913
4934
|
}
|
|
4914
4935
|
|
|
4915
4936
|
.Group {
|
|
4916
4937
|
overflow: hidden;
|
|
4917
4938
|
}
|
|
4918
|
-
`,
|
|
4939
|
+
`,V1,U1,j1,vi,Dv,qv,gi,$r=class extends(j1=g,U1=[u({type:String})],V1=[et({context:We,subscribe:!0})],j1){constructor(){super(...arguments);s(this,Dv,o(vi,8,this,"")),o(vi,11,this);s(this,qv,o(vi,12,this)),o(vi,15,this);s(this,gi,GO())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",e(this,gi)),this._ctx?.registerGroup(e(this,gi))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(e(this,gi))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(e(this,gi))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
|
|
4919
4940
|
<div class="Group" role="group" aria-label="${this.heading||$}">
|
|
4920
4941
|
${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:$}
|
|
4921
4942
|
<slot></slot>
|
|
4922
4943
|
</div>
|
|
4923
|
-
`}};
|
|
4944
|
+
`}};vi=S(j1),Dv=new WeakMap,qv=new WeakMap,gi=new WeakMap,l(vi,4,"heading",U1,$r,Dv),l(vi,4,"_ctx",V1,$r,qv),C(vi,$r),b($r,"tagName","dui-command-group"),b($r,"styles",[y,YO]);var XO=0,QO=()=>`dui-command-item-${++XO}`,JO=c`
|
|
4924
4945
|
:host {
|
|
4925
4946
|
display: block;
|
|
4926
4947
|
}
|
|
4927
4948
|
|
|
4928
|
-
:host([data-hidden]) {
|
|
4949
|
+
:host([data-hidden]) .Item {
|
|
4929
4950
|
display: none;
|
|
4930
4951
|
}
|
|
4931
4952
|
|
|
@@ -4937,46 +4958,46 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4937
4958
|
user-select: none;
|
|
4938
4959
|
outline: none;
|
|
4939
4960
|
}
|
|
4940
|
-
`,
|
|
4961
|
+
`,K1,W1,G1,Y1,X1,ze,Vv,Uv,jv,Kv,Tr,fs,vs,gs,bs,ge,An,Q1,J1,Wv,Cd,Sd,Ge=class extends(X1=g,Y1=[u({type:String})],G1=[u({type:Array,attribute:!1})],W1=[u({type:Boolean})],K1=[et({context:We,subscribe:!0})],X1){constructor(){super(...arguments);s(this,ge);s(this,Vv,o(ze,8,this,"")),o(ze,11,this);s(this,Uv,o(ze,12,this,[])),o(ze,15,this);s(this,jv,o(ze,16,this,!1)),o(ze,19,this);s(this,Kv,o(ze,20,this)),o(ze,23,this);s(this,Tr,QO());s(this,fs);s(this,vs);s(this,gs);s(this,bs,!1);s(this,Cd,()=>{!this.disabled&&this._ctx?.selectedItemId!==e(this,Tr)&&this._ctx?.selectItem(e(this,Tr))});s(this,Sd,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(m(this,ge,Wv).call(this)),h(this,bs,!0),h(this,fs,this.value),h(this,vs,this.keywords),h(this,gs,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(e(this,Tr)),h(this,bs,!1)}willUpdate(){if(e(this,bs)){let t=e(this,fs)!==this.value,r=e(this,vs)!==this.keywords,n=e(this,gs)!==this.disabled;(t||r||n)&&(this._ctx?.updateItem(m(this,ge,Wv).call(this)),h(this,fs,this.value),h(this,vs,this.keywords),h(this,gs,this.disabled))}this._ctx?.shouldFilter?e(this,ge,Q1)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),e(this,ge,An)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){e(this,ge,An)&&this.scrollIntoView({block:"nearest"})}render(){return f`
|
|
4941
4962
|
<div
|
|
4942
4963
|
class="Item"
|
|
4943
4964
|
role="option"
|
|
4944
4965
|
id="${e(this,Tr)}"
|
|
4945
|
-
aria-selected="${e(this,ge,
|
|
4966
|
+
aria-selected="${e(this,ge,An)}"
|
|
4946
4967
|
aria-disabled="${this.disabled}"
|
|
4947
|
-
?data-selected="${e(this,ge,
|
|
4968
|
+
?data-selected="${e(this,ge,An)}"
|
|
4948
4969
|
?data-disabled="${this.disabled}"
|
|
4949
4970
|
@mousemove="${e(this,Cd)}"
|
|
4950
4971
|
@click="${e(this,Sd)}"
|
|
4951
4972
|
>
|
|
4952
4973
|
<slot></slot>
|
|
4953
4974
|
</div>
|
|
4954
|
-
`}};ze=S(
|
|
4975
|
+
`}};ze=S(X1),Vv=new WeakMap,Uv=new WeakMap,jv=new WeakMap,Kv=new WeakMap,Tr=new WeakMap,fs=new WeakMap,vs=new WeakMap,gs=new WeakMap,bs=new WeakMap,ge=new WeakSet,An=function(){return this._ctx?.selectedItemId===e(this,Tr)},Q1=function(){return this._ctx?this._ctx.getScore(e(this,Tr))>0:!0},J1=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},Wv=function(){return{id:e(this,Tr),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:m(this,ge,J1).call(this)}},Cd=new WeakMap,Sd=new WeakMap,l(ze,4,"value",Y1,Ge,Vv),l(ze,4,"keywords",G1,Ge,Uv),l(ze,4,"disabled",W1,Ge,jv),l(ze,4,"_ctx",K1,Ge,Kv),C(ze,Ge),b(Ge,"tagName","dui-command-item"),b(Ge,"styles",[y,JO]);var ZO=c`
|
|
4955
4976
|
:host {
|
|
4956
4977
|
display: block;
|
|
4957
4978
|
}
|
|
4958
4979
|
|
|
4959
|
-
:host([data-hidden]) {
|
|
4980
|
+
:host([data-hidden]) .Empty {
|
|
4960
4981
|
display: none;
|
|
4961
4982
|
}
|
|
4962
4983
|
|
|
4963
4984
|
.Empty {
|
|
4964
4985
|
text-align: center;
|
|
4965
4986
|
}
|
|
4966
|
-
`,
|
|
4987
|
+
`,Z1,t$,Ed,Gv,to=class extends(t$=g,Z1=[et({context:We,subscribe:!0})],t$){constructor(){super(...arguments);s(this,Gv,o(Ed,8,this)),o(Ed,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
|
|
4967
4988
|
<div class="Empty" role="status">
|
|
4968
4989
|
<slot></slot>
|
|
4969
4990
|
</div>
|
|
4970
|
-
`}};Ed=S(
|
|
4991
|
+
`}};Ed=S(t$),Gv=new WeakMap,l(Ed,4,"_ctx",Z1,to,Gv),C(Ed,to),b(to,"tagName","dui-command-empty"),b(to,"styles",[y,ZO]);var tL=c`
|
|
4971
4992
|
:host {
|
|
4972
4993
|
display: block;
|
|
4973
4994
|
}
|
|
4974
|
-
`,
|
|
4995
|
+
`,zn=class extends g{static tagName="dui-command-separator";static styles=[y,tL];render(){return f`<div class="Separator" role="separator"></div>`}};var eL=c`
|
|
4975
4996
|
:host {
|
|
4976
4997
|
display: inline-flex;
|
|
4977
4998
|
margin-left: auto;
|
|
4978
4999
|
}
|
|
4979
|
-
`,
|
|
5000
|
+
`,On=class extends g{static tagName="dui-command-shortcut";static styles=[y,eL];render(){return f`<span class="Shortcut"><slot></slot></span>`}};var e$="important",rL=" !"+e$,ys=ss(class extends So{constructor(a){if(super(a),a.type!==nr.ATTRIBUTE||a.name!=="style"||a.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(a){return Object.keys(a).reduce((i,t)=>{let r=a[t];return r==null?i:i+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(a,[i]){let{style:t}=a.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(i)),this.render(i);for(let r of this.ft)i[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(let r in i){let n=i[r];if(n!=null){this.ft.add(r);let d=typeof n=="string"&&n.endsWith(rL);r.includes("-")||d?t.setProperty(r,d?n.slice(0,-11):n,d?e$:""):t[r]=n}}return Jt}});var oL=z("sort-change",{bubbles:!0,composed:!0}),iL=z("page-change",{bubbles:!0,composed:!0}),sL=f`<svg
|
|
4980
5001
|
xmlns="http://www.w3.org/2000/svg"
|
|
4981
5002
|
width="100%"
|
|
4982
5003
|
height="100%"
|
|
@@ -4989,7 +5010,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
4989
5010
|
>
|
|
4990
5011
|
<path d="m7 15 5 5 5-5" />
|
|
4991
5012
|
<path d="m7 9 5-5 5 5" />
|
|
4992
|
-
</svg>`,
|
|
5013
|
+
</svg>`,nL=f`<svg
|
|
4993
5014
|
xmlns="http://www.w3.org/2000/svg"
|
|
4994
5015
|
width="100%"
|
|
4995
5016
|
height="100%"
|
|
@@ -5001,7 +5022,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5001
5022
|
stroke-linejoin="round"
|
|
5002
5023
|
>
|
|
5003
5024
|
<path d="m18 15-6-6-6 6" />
|
|
5004
|
-
</svg>`,
|
|
5025
|
+
</svg>`,aL=f`<svg
|
|
5005
5026
|
xmlns="http://www.w3.org/2000/svg"
|
|
5006
5027
|
width="100%"
|
|
5007
5028
|
height="100%"
|
|
@@ -5013,11 +5034,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5013
5034
|
stroke-linejoin="round"
|
|
5014
5035
|
>
|
|
5015
5036
|
<path d="m6 9 6 6 6-6" />
|
|
5016
|
-
</svg>`;function
|
|
5037
|
+
</svg>`;function lL(a,i){return a==null&&i==null?0:a==null?-1:i==null?1:typeof a=="number"&&typeof i=="number"?a-i:typeof a=="string"&&typeof i=="string"?a.localeCompare(i):a instanceof Date&&i instanceof Date?a.getTime()-i.getTime():String(a).localeCompare(String(i))}function dL(a,i){if(!i)return[...a];let{column:t,direction:r}=i,n=r==="asc"?1:-1;return[...a].sort((d,p)=>n*lL(d[t],p[t]))}function cL(a,i,t){let r=(i-1)*t;return a.slice(r,r+t)}var pL=c`
|
|
5017
5038
|
:host {
|
|
5018
5039
|
display: block;
|
|
5019
5040
|
}
|
|
5020
|
-
`,
|
|
5041
|
+
`,hL=c`
|
|
5021
5042
|
.DataTable {
|
|
5022
5043
|
display: flex;
|
|
5023
5044
|
flex-direction: column;
|
|
@@ -5086,48 +5107,48 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5086
5107
|
.PageButton:disabled {
|
|
5087
5108
|
cursor: not-allowed;
|
|
5088
5109
|
}
|
|
5089
|
-
`,
|
|
5110
|
+
`,r$,o$,i$,s$,n$,a$,l$,d$,c$,Ct,Yv,Xv,Qv,Jv,Zv,tg,eg,eo,$d,H,rg,og,ro,Td,ig,sg,ng,ag,Ln,p$,h$,Pn,u$,m$,f$,v$,Oe=class extends(c$=g,d$=[u({attribute:!1})],l$=[u({attribute:!1})],a$=[u({type:Number,attribute:"page-size"})],n$=[u({attribute:!1})],s$=[u({attribute:"empty-text"})],i$=[k()],o$=[k()],r$=[k()],c$){constructor(){super(...arguments);s(this,H);s(this,Yv,o(Ct,8,this,[])),o(Ct,11,this);s(this,Xv,o(Ct,12,this,[])),o(Ct,15,this);s(this,Qv,o(Ct,16,this,10)),o(Ct,19,this);s(this,Jv,o(Ct,20,this)),o(Ct,23,this);s(this,Zv,o(Ct,24,this,"No results.")),o(Ct,27,this);s(this,tg,o(Ct,28,this,null)),o(Ct,31,this);s(this,rg,o(Ct,32,this,1)),o(Ct,35,this);s(this,ig,o(Ct,36,this,[])),o(Ct,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&h(this,H,1,Td);let r=dL(this.data,e(this,H,eo));this.pageSize>0?h(this,H,cL(r,e(this,H,ro),this.pageSize),ag):h(this,H,r,ag)}}render(){return f`
|
|
5090
5111
|
<div class="DataTable" part="root">
|
|
5091
5112
|
<div class="TableWindow" part="table-window">
|
|
5092
5113
|
<table part="table">
|
|
5093
|
-
${m(this,H,
|
|
5114
|
+
${m(this,H,m$).call(this)} ${m(this,H,f$).call(this)}
|
|
5094
5115
|
</table>
|
|
5095
5116
|
</div>
|
|
5096
|
-
${m(this,H,
|
|
5117
|
+
${m(this,H,v$).call(this)}
|
|
5097
5118
|
</div>
|
|
5098
|
-
`}};Ct=S(
|
|
5099
|
-
>${e(this,H,eo).direction==="asc"?
|
|
5100
|
-
>`:f`<span class="SortIcon">${
|
|
5119
|
+
`}};Ct=S(c$),Yv=new WeakMap,Xv=new WeakMap,Qv=new WeakMap,Jv=new WeakMap,Zv=new WeakMap,tg=new WeakMap,H=new WeakSet,rg=new WeakMap,ig=new WeakMap,Ln=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},p$=function(){return{page:e(this,H,ro),pageSize:this.pageSize,totalRows:this.data.length,totalPages:e(this,H,Ln)}},h$=function(t){e(this,H,eo)?.column===t?e(this,H,eo).direction==="asc"?h(this,H,{column:t,direction:"desc"},$d):h(this,H,null,$d):h(this,H,{column:t,direction:"asc"},$d),h(this,H,1,Td),this.dispatchEvent(oL(e(this,H,eo)))},Pn=function(t){h(this,H,Math.max(1,Math.min(t,e(this,H,Ln))),Td),this.dispatchEvent(iL(e(this,H,p$)))},u$=function(t){return t.sortable?e(this,H,eo)?.column===t.key?f`<span class="SortIcon"
|
|
5120
|
+
>${e(this,H,eo).direction==="asc"?nL:aL}</span
|
|
5121
|
+
>`:f`<span class="SortIcon">${sL}</span>`:$},m$=function(){return f`
|
|
5101
5122
|
<thead>
|
|
5102
5123
|
<tr>
|
|
5103
|
-
${this.columns.map(t=>{let r=t.width?{width:t.width}:{},
|
|
5124
|
+
${this.columns.map(t=>{let r=t.width?{width:t.width}:{},n=t.sortable?e(this,H,eo)?.column===t.key?e(this,H,eo).direction==="asc"?"ascending":"descending":"none":void 0;return f`
|
|
5104
5125
|
<th
|
|
5105
|
-
style=${
|
|
5106
|
-
aria-sort=${
|
|
5107
|
-
@click=${t.sortable?()=>m(this,H,
|
|
5126
|
+
style=${ys(r)}
|
|
5127
|
+
aria-sort=${n??$}
|
|
5128
|
+
@click=${t.sortable?()=>m(this,H,h$).call(this,t.key):$}
|
|
5108
5129
|
>
|
|
5109
5130
|
<span class="HeaderContent">
|
|
5110
|
-
${t.header} ${m(this,H,
|
|
5131
|
+
${t.header} ${m(this,H,u$).call(this,t)}
|
|
5111
5132
|
</span>
|
|
5112
5133
|
</th>
|
|
5113
5134
|
`})}
|
|
5114
5135
|
</tr>
|
|
5115
5136
|
</thead>
|
|
5116
|
-
`},
|
|
5137
|
+
`},f$=function(){if(e(this,H,ng).length===0)return f`
|
|
5117
5138
|
<tbody>
|
|
5118
5139
|
<tr class="EmptyRow">
|
|
5119
5140
|
<td colspan=${this.columns.length}>${this.emptyText}</td>
|
|
5120
5141
|
</tr>
|
|
5121
5142
|
</tbody>
|
|
5122
|
-
`;let t=this.rowKey?(r,
|
|
5143
|
+
`;let t=this.rowKey?(r,n)=>this.rowKey(r):(r,n)=>n;return f`
|
|
5123
5144
|
<tbody>
|
|
5124
|
-
${
|
|
5145
|
+
${$o(e(this,H,ng),t,r=>f`
|
|
5125
5146
|
<tr>
|
|
5126
|
-
${this.columns.map(
|
|
5147
|
+
${this.columns.map(n=>{let d=r[n.key],p=n.render?n.render(d,r):d??"";return f`<td>${p}</td>`})}
|
|
5127
5148
|
</tr>
|
|
5128
5149
|
`)}
|
|
5129
5150
|
</tbody>
|
|
5130
|
-
`},
|
|
5151
|
+
`},v$=function(){if(this.pageSize<=0||this.data.length===0)return $;let t=(e(this,H,ro)-1)*this.pageSize+1,r=Math.min(e(this,H,ro)*this.pageSize,this.data.length),n=e(this,H,ro)===1,d=e(this,H,ro)===e(this,H,Ln);return f`
|
|
5131
5152
|
<div class="Pagination" part="pagination">
|
|
5132
5153
|
<div class="PageInfo">
|
|
5133
5154
|
<span>${t}-${r} of ${this.data.length}</span>
|
|
@@ -5135,16 +5156,16 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5135
5156
|
<div class="PageControls">
|
|
5136
5157
|
<button
|
|
5137
5158
|
class="PageButton"
|
|
5138
|
-
?disabled=${
|
|
5139
|
-
@click=${()=>m(this,H,
|
|
5159
|
+
?disabled=${n}
|
|
5160
|
+
@click=${()=>m(this,H,Pn).call(this,1)}
|
|
5140
5161
|
aria-label="First page"
|
|
5141
5162
|
>
|
|
5142
5163
|
<dui-icon style="--icon-size: var(--font-size-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>
|
|
5143
5164
|
</button>
|
|
5144
5165
|
<button
|
|
5145
5166
|
class="PageButton"
|
|
5146
|
-
?disabled=${
|
|
5147
|
-
@click=${()=>m(this,H,
|
|
5167
|
+
?disabled=${n}
|
|
5168
|
+
@click=${()=>m(this,H,Pn).call(this,e(this,H,ro)-1)}
|
|
5148
5169
|
aria-label="Previous page"
|
|
5149
5170
|
>
|
|
5150
5171
|
<dui-icon style="--icon-size: var(--font-size-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>
|
|
@@ -5152,7 +5173,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5152
5173
|
<button
|
|
5153
5174
|
class="PageButton"
|
|
5154
5175
|
?disabled=${d}
|
|
5155
|
-
@click=${()=>m(this,H,
|
|
5176
|
+
@click=${()=>m(this,H,Pn).call(this,e(this,H,ro)+1)}
|
|
5156
5177
|
aria-label="Next page"
|
|
5157
5178
|
>
|
|
5158
5179
|
<dui-icon style="--icon-size: var(--font-size-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>
|
|
@@ -5160,26 +5181,26 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5160
5181
|
<button
|
|
5161
5182
|
class="PageButton"
|
|
5162
5183
|
?disabled=${d}
|
|
5163
|
-
@click=${()=>m(this,H,
|
|
5184
|
+
@click=${()=>m(this,H,Pn).call(this,e(this,H,Ln))}
|
|
5164
5185
|
aria-label="Last page"
|
|
5165
5186
|
>
|
|
5166
5187
|
<dui-icon style="--icon-size: var(--font-size-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>
|
|
5167
5188
|
</button>
|
|
5168
5189
|
</div>
|
|
5169
5190
|
</div>
|
|
5170
|
-
`},l(Ct,4,"columns",
|
|
5191
|
+
`},l(Ct,4,"columns",d$,Oe,Yv),l(Ct,4,"data",l$,Oe,Xv),l(Ct,4,"pageSize",a$,Oe,Qv),l(Ct,4,"rowKey",n$,Oe,Jv),l(Ct,4,"emptyText",s$,Oe,Zv),eg=l(Ct,20,"#sort",i$,H,tg),eo=eg.get,$d=eg.set,og=l(Ct,20,"#page",o$,H,rg),ro=og.get,Td=og.set,sg=l(Ct,20,"#displayRows",r$,H,ig),ng=sg.get,ag=sg.set,C(Ct,Oe),b(Oe,"tagName","dui-data-table"),b(Oe,"styles",[y,pL,hL]);var Ao=Symbol("dui-dialog");var ug=z("open-change",{bubbles:!0,composed:!0}),uL=c`
|
|
5171
5192
|
:host {
|
|
5172
5193
|
display: contents;
|
|
5173
5194
|
}
|
|
5174
|
-
`,
|
|
5195
|
+
`,g$,b$,y$,x$,w$,Le,lg,dg,cg,pg,k$,Rd,be,bi,Id,Ad,zd,Od,C$,Ld,Pd,hg,_d,cr=class extends(w$=g,x$=[u({type:Boolean,reflect:!0})],y$=[u({type:Boolean,attribute:"default-open"})],b$=[k()],g$=[kt({context:Ao}),k()],w$){constructor(){super(...arguments);s(this,be);s(this,lg,o(Le,8,this)),o(Le,11,this);s(this,dg,o(Le,12,this,!1)),o(Le,15,this);s(this,cg,o(Le,16,this,!1)),o(Le,19,this);s(this,bi,crypto.randomUUID().slice(0,8));s(this,Id,`dui-dialog-${e(this,bi)}`);s(this,Ad,`dui-trigger-${e(this,bi)}`);s(this,zd,`dui-title-${e(this,bi)}`);s(this,Od,`dui-desc-${e(this,bi)}`);s(this,Ld,()=>{this.open===void 0&&h(this,be,!0,Rd),this.dispatchEvent(ug({open:!0}))});s(this,Pd,()=>{this.open===void 0&&h(this,be,!1,Rd),this.dispatchEvent(ug({open:!1}))});s(this,hg,o(Le,20,this,m(this,be,_d).call(this))),o(Le,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,be,!0,Rd),this._ctx=m(this,be,_d).call(this)}willUpdate(){this._ctx=m(this,be,_d).call(this)}render(){return f`<slot></slot>`}};Le=S(w$),lg=new WeakMap,dg=new WeakMap,cg=new WeakMap,be=new WeakSet,bi=new WeakMap,Id=new WeakMap,Ad=new WeakMap,zd=new WeakMap,Od=new WeakMap,C$=function(){return this.open??e(this,be,k$)},Ld=new WeakMap,Pd=new WeakMap,hg=new WeakMap,_d=function(){return{open:e(this,be,C$),dialogId:e(this,Id),triggerId:e(this,Ad),titleId:e(this,zd),descriptionId:e(this,Od),openDialog:e(this,Ld),closeDialog:e(this,Pd)}},l(Le,4,"open",x$,cr,lg),l(Le,4,"defaultOpen",y$,cr,dg),pg=l(Le,20,"#internalOpen",b$,be,cg),k$=pg.get,Rd=pg.set,l(Le,4,"_ctx",g$,cr,hg),C(Le,cr),b(cr,"tagName","dui-dialog"),b(cr,"styles",[y,uL]);var mL=c`
|
|
5175
5196
|
:host {
|
|
5176
5197
|
display: contents;
|
|
5177
5198
|
}
|
|
5178
|
-
`,
|
|
5199
|
+
`,fL=c`
|
|
5179
5200
|
.Trigger {
|
|
5180
5201
|
display: contents;
|
|
5181
5202
|
}
|
|
5182
|
-
`,
|
|
5203
|
+
`,Mn=class extends g{static tagName="dui-dialog-trigger";static styles=[y,mL,fL];#t=new U(this,{context:Ao,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let i=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",r=this.#t.value?.dialogId??"";return f`
|
|
5183
5204
|
<span
|
|
5184
5205
|
class="Trigger"
|
|
5185
5206
|
part="trigger"
|
|
@@ -5192,7 +5213,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5192
5213
|
>
|
|
5193
5214
|
<slot></slot>
|
|
5194
5215
|
</span>
|
|
5195
|
-
`}};var
|
|
5216
|
+
`}};var vL=c`
|
|
5196
5217
|
:host {
|
|
5197
5218
|
display: contents;
|
|
5198
5219
|
}
|
|
@@ -5201,7 +5222,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5201
5222
|
:host(:not([mounted])) [part="popup"] {
|
|
5202
5223
|
display: none;
|
|
5203
5224
|
}
|
|
5204
|
-
`,
|
|
5225
|
+
`,gL=c`
|
|
5205
5226
|
[part="backdrop"] {
|
|
5206
5227
|
position: fixed;
|
|
5207
5228
|
min-height: 100dvh;
|
|
@@ -5221,12 +5242,12 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5221
5242
|
z-index: 1000;
|
|
5222
5243
|
transition-property: opacity, transform;
|
|
5223
5244
|
}
|
|
5224
|
-
`,
|
|
5245
|
+
`,S$,E$,$$,T$,R$,_$,I$,A$,At,mg,fg,vg,gg,bg,yg,xs,Sg,G,xg,wg,Eg,$g,kg,Cg,oo,Tg,ws,io,z$,O$,Rg,L$,P$,Md,M$,Fd,Ye=class extends(A$=g,I$=[u({type:Boolean,attribute:"keep-mounted"})],_$=[u({attribute:"initial-focus"})],R$=[u({attribute:"final-focus"})],T$=[u()],$$=[k()],E$=[k()],S$=[k()],A$){constructor(){super(...arguments);s(this,G);s(this,mg,o(At,8,this,!1)),o(At,11,this);s(this,fg,o(At,12,this)),o(At,15,this);s(this,vg,o(At,16,this)),o(At,19,this);s(this,gg,o(At,20,this)),o(At,23,this);s(this,bg,o(At,24,this,!1)),o(At,27,this);s(this,xg,o(At,28,this,!1)),o(At,31,this);s(this,kg,o(At,32,this,!1)),o(At,35,this);s(this,ws);s(this,io,new U(this,{context:Ao,subscribe:!0}));s(this,Md,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),e(this,io).value?.closeDialog()),t.key==="Tab"&&m(this,G,M$).call(this,t)});s(this,Fd,()=>{e(this,io).value?.closeDialog()})}updated(){let t=e(this,io).value?.open??!1;t&&!e(this,G,xs)?m(this,G,z$).call(this):!t&&e(this,G,xs)&&!e(this,G,oo)&&m(this,G,O$).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),e(this,G,xs)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=e(this,io).value?.open??!1,r=e(this,io).value?.titleId??"",n=e(this,io).value?.descriptionId??"";return!e(this,G,xs)&&!this.keepMounted?f``:f`
|
|
5225
5246
|
<div
|
|
5226
5247
|
part="backdrop"
|
|
5227
5248
|
?data-open="${t&&!e(this,G,oo)}"
|
|
5228
5249
|
?data-closed="${!t||e(this,G,oo)}"
|
|
5229
|
-
?data-starting-style="${e(this,G,
|
|
5250
|
+
?data-starting-style="${e(this,G,Eg)}"
|
|
5230
5251
|
?data-ending-style="${e(this,G,oo)}"
|
|
5231
5252
|
@click="${e(this,Fd)}"
|
|
5232
5253
|
></div>
|
|
@@ -5235,27 +5256,27 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5235
5256
|
role="dialog"
|
|
5236
5257
|
aria-modal="true"
|
|
5237
5258
|
aria-labelledby="${r}"
|
|
5238
|
-
aria-describedby="${
|
|
5259
|
+
aria-describedby="${n}"
|
|
5239
5260
|
?data-open="${t&&!e(this,G,oo)}"
|
|
5240
5261
|
?data-closed="${!t||e(this,G,oo)}"
|
|
5241
|
-
?data-starting-style="${e(this,G,
|
|
5262
|
+
?data-starting-style="${e(this,G,Eg)}"
|
|
5242
5263
|
?data-ending-style="${e(this,G,oo)}"
|
|
5243
5264
|
tabindex="-1"
|
|
5244
5265
|
@keydown="${e(this,Md)}"
|
|
5245
5266
|
>
|
|
5246
5267
|
<h2 part="title" id="${r}"><slot name="title"></slot></h2>
|
|
5247
|
-
<p part="description" id="${
|
|
5268
|
+
<p part="description" id="${n}"><slot name="description"></slot></p>
|
|
5248
5269
|
<slot></slot>
|
|
5249
5270
|
</div>
|
|
5250
|
-
`}};At=S(
|
|
5271
|
+
`}};At=S(A$),mg=new WeakMap,fg=new WeakMap,vg=new WeakMap,gg=new WeakMap,bg=new WeakMap,G=new WeakSet,xg=new WeakMap,kg=new WeakMap,ws=new WeakMap,io=new WeakMap,z$=async function(){h(this,ws,document.activeElement??void 0),h(this,G,!0,Sg),h(this,G,!0,$g),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,G,!1,$g),await this.updateComplete,m(this,G,L$).call(this)},O$=function(){h(this,G,!0,Tg);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,G,Rg).call(this);return}let r=!1,n=()=>{r||(r=!0,t.removeEventListener("transitionend",d),clearTimeout(p),m(this,G,Rg).call(this))},d=v=>{v.propertyName==="opacity"&&n()};t.addEventListener("transitionend",d);let p=setTimeout(n,200)},Rg=function(){!e(this,G,oo)&&!e(this,G,xs)||(h(this,G,!1,Tg),this.keepMounted||h(this,G,!1,Sg),m(this,G,P$).call(this))},L$=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let d=t.querySelector(this.initialFocus);if(d){d.focus();return}}let r=ml(t);if(r){r.focus();return}let n=es(t);if(n.length>0){n[0].focus();return}t.focus()},P$=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}e(this,ws)?.focus(),h(this,ws,void 0)},Md=new WeakMap,M$=function(t){let r=this.shadowRoot?.querySelector('[part="popup"]');if(!r)return;let n=es(r);if(n.length===0){t.preventDefault();return}let d=n[0],p=n[n.length-1],v=d.matches(":focus"),x=p.matches(":focus"),E=!n.some(R=>R.matches(":focus"));t.shiftKey&&(v||E)?(t.preventDefault(),p.focus()):!t.shiftKey&&x&&(t.preventDefault(),d.focus())},Fd=new WeakMap,l(At,4,"keepMounted",I$,Ye,mg),l(At,4,"initialFocus",_$,Ye,fg),l(At,4,"finalFocus",R$,Ye,vg),l(At,4,"width",T$,Ye,gg),yg=l(At,20,"#mounted",$$,G,bg),xs=yg.get,Sg=yg.set,wg=l(At,20,"#startingStyle",E$,G,xg),Eg=wg.get,$g=wg.set,Cg=l(At,20,"#endingStyle",S$,G,kg),oo=Cg.get,Tg=Cg.set,C(At,Ye),b(Ye,"tagName","dui-dialog-popup"),b(Ye,"styles",[y,vL,gL]);var bL=c`
|
|
5251
5272
|
:host {
|
|
5252
5273
|
display: contents;
|
|
5253
5274
|
}
|
|
5254
|
-
`,
|
|
5275
|
+
`,Fn=class extends g{static tagName="dui-dialog-close";static styles=[y,bL];#t=new U(this,{context:Ao,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
5255
5276
|
<span @click="${this.#e}">
|
|
5256
5277
|
<slot></slot>
|
|
5257
5278
|
</span>
|
|
5258
|
-
`}};var
|
|
5279
|
+
`}};var W$=z("drop",{bubbles:!0,composed:!0}),G$=z("drop-accepted",{bubbles:!0,composed:!0}),Y$=z("drop-rejected",{bubbles:!0,composed:!0}),yL=z("dragenter",{bubbles:!0,composed:!0}),xL=z("dragover",{bubbles:!0,composed:!0}),wL=z("dragleave",{bubbles:!0,composed:!0}),Hd=z("dropzone-error",{bubbles:!0,composed:!0}),kL=c`
|
|
5259
5280
|
:host {
|
|
5260
5281
|
display: block;
|
|
5261
5282
|
}
|
|
@@ -5276,11 +5297,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5276
5297
|
input[type="file"] {
|
|
5277
5298
|
display: none;
|
|
5278
5299
|
}
|
|
5279
|
-
`,
|
|
5300
|
+
`,F$,H$,N$,B$,D$,q$,V$,U$,j$,K$,yt,_g,Ig,Ag,zg,Og,Lg,Pg,Mg,Fg,Hg,X$,Nd,de,Bd,Dd,qd,Vd,Ud,jd,Kd,Ng,Q$,J$,zt=class zt extends(K$=g,j$=[u({type:String,reflect:!0})],U$=[u({type:Boolean,reflect:!0})],V$=[u({type:Boolean,reflect:!0})],q$=[u({type:Number,reflect:!0,attribute:"max-files"})],D$=[u({type:Number,reflect:!0,attribute:"max-size"})],B$=[u({type:Number,reflect:!0,attribute:"min-size"})],N$=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],H$=[u({type:Boolean,reflect:!0,attribute:"no-style"})],F$=[k()],K$){constructor(){super(...arguments);s(this,de);s(this,_g,o(yt,8,this)),o(yt,11,this);s(this,Ig,o(yt,12,this,!1)),o(yt,15,this);s(this,Ag,o(yt,16,this,!1)),o(yt,19,this);s(this,zg,o(yt,20,this,1/0)),o(yt,23,this);s(this,Og,o(yt,24,this,1/0)),o(yt,27,this);s(this,Lg,o(yt,28,this,0)),o(yt,31,this);s(this,Pg,o(yt,32,this,!1)),o(yt,35,this);s(this,Mg,o(yt,36,this,!1)),o(yt,39,this);s(this,Fg,o(yt,40,this,!1)),o(yt,43,this);s(this,Bd,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,de,!0,Nd),this.dispatchEvent(yL()))});s(this,Dd,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(xL()))});s(this,qd,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,de,!1,Nd),this.dispatchEvent(wL()))});s(this,Vd,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){h(this,de,!1,Nd);try{let r=Array.from(t.dataTransfer?.files??[]);m(this,de,Ng).call(this,r)}catch(r){this.dispatchEvent(Hd({error:r,code:zt.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});s(this,Ud,()=>{this.disabled||this.openFileDialog()});s(this,jd,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});s(this,Kd,t=>{if(this.disabled)return;let r=t.target,n=Array.from(r.files??[]);try{m(this,de,Ng).call(this,n)}catch(d){this.dispatchEvent(Hd({error:d,code:zt.ERROR_CODES.FILE_PROCESSING_FAILED}))}finally{r.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(r){this.dispatchEvent(Hd({error:r,code:zt.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
|
|
5280
5301
|
<div
|
|
5281
5302
|
part="root"
|
|
5282
5303
|
tabindex="${this.disabled?-1:0}"
|
|
5283
|
-
?data-dragover="${e(this,de,
|
|
5304
|
+
?data-dragover="${e(this,de,X$)}"
|
|
5284
5305
|
@dragenter="${e(this,Bd)}"
|
|
5285
5306
|
@dragover="${e(this,Dd)}"
|
|
5286
5307
|
@dragleave="${e(this,qd)}"
|
|
@@ -5302,7 +5323,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5302
5323
|
aria-hidden="true"
|
|
5303
5324
|
hidden
|
|
5304
5325
|
/>
|
|
5305
|
-
`}};yt=S(
|
|
5326
|
+
`}};yt=S(K$),_g=new WeakMap,Ig=new WeakMap,Ag=new WeakMap,zg=new WeakMap,Og=new WeakMap,Lg=new WeakMap,Pg=new WeakMap,Mg=new WeakMap,Fg=new WeakMap,de=new WeakSet,Bd=new WeakMap,Dd=new WeakMap,qd=new WeakMap,Vd=new WeakMap,Ud=new WeakMap,jd=new WeakMap,Kd=new WeakMap,Ng=function(t){let{acceptedFiles:r,rejectedFiles:n}=m(this,de,Q$).call(this,t);this.dispatchEvent(W$({acceptedFiles:r,rejectedFiles:n})),r.length>0&&this.dispatchEvent(G$({acceptedFiles:r})),n.length>0&&this.dispatchEvent(Y$({rejectedFiles:n}))},Q$=function(t){let r=[],n=[],d=this.multiple?this.maxFiles:1;if(t.length>d){for(let p of t)n.push({file:p,errors:[{code:zt.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:r,rejectedFiles:n}}for(let p of t){let v=[];p.size>this.maxSize&&v.push({code:zt.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),p.size<this.minSize&&v.push({code:zt.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!m(this,de,J$).call(this,p)&&v.push({code:zt.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),v.length>0?n.push({file:p,errors:v}):r.push(p)}return{acceptedFiles:r,rejectedFiles:n}},J$=function(t){if(!this.accept)return!0;let r=this.accept.split(",").map(n=>n.trim().toLowerCase());for(let n of r)if(n.startsWith(".")){if(t.name.toLowerCase().endsWith(n))return!0}else if(n.endsWith("/*")){let d=n.slice(0,-2);if(t.type.toLowerCase().startsWith(d))return!0}else if(t.type.toLowerCase()===n)return!0;return!1},l(yt,4,"accept",j$,zt,_g),l(yt,4,"multiple",U$,zt,Ig),l(yt,4,"disabled",V$,zt,Ag),l(yt,4,"maxFiles",q$,zt,zg),l(yt,4,"maxSize",D$,zt,Og),l(yt,4,"minSize",B$,zt,Lg),l(yt,4,"autoFocus",N$,zt,Pg),l(yt,4,"noStyle",H$,zt,Mg),Hg=l(yt,20,"#isDragOver",F$,de,Fg),X$=Hg.get,Nd=Hg.set,C(yt,zt),b(zt,"tagName","dui-dropzone"),b(zt,"styles",[y,kL]),b(zt,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),b(zt,"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 Hn=zt;var CL=c`
|
|
5306
5327
|
:host {
|
|
5307
5328
|
display: inline-flex;
|
|
5308
5329
|
align-items: center;
|
|
@@ -5316,7 +5337,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5316
5337
|
width: 100%;
|
|
5317
5338
|
height: 100%;
|
|
5318
5339
|
}
|
|
5319
|
-
`,
|
|
5340
|
+
`,Nn=class extends g{static tagName="dui-icon";static styles=[y,CL];render(){return f`<slot></slot>`}};var ks=a=>a??$;var uT=z("input-change",{bubbles:!0,composed:!0}),SL=c`
|
|
5320
5341
|
:host {
|
|
5321
5342
|
display: block;
|
|
5322
5343
|
}
|
|
@@ -5330,26 +5351,26 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5330
5351
|
[part="input"]:disabled {
|
|
5331
5352
|
cursor: not-allowed;
|
|
5332
5353
|
}
|
|
5333
|
-
`,
|
|
5354
|
+
`,Z$,tT,eT,rT,oT,iT,sT,nT,aT,lT,dT,cT,pT,hT,Q,Bg,Dg,qg,Vg,Ug,jg,Kg,Wg,Gg,Yg,Xg,Qg,Jg,ee,mT,fT,vT,Zg,Bn,Wd,Gd,Yd,Ot=class extends(hT=g,pT=[u({type:String})],cT=[u({type:String})],dT=[u({type:String})],lT=[u({type:Boolean,reflect:!0})],aT=[u({type:Boolean})],nT=[u({type:Boolean})],sT=[u({type:Number,attribute:"minlength"})],iT=[u({type:Number,attribute:"maxlength"})],oT=[u({type:String})],rT=[u({type:String})],eT=[u({type:String})],tT=[u({type:Boolean})],Z$=[et({context:ne,subscribe:!0}),k()],hT){constructor(){super(...arguments);s(this,ee);s(this,Bg,o(Q,8,this,"text")),o(Q,11,this);s(this,Dg,o(Q,12,this,"")),o(Q,15,this);s(this,qg,o(Q,16,this,"")),o(Q,19,this);s(this,Vg,o(Q,20,this,!1)),o(Q,23,this);s(this,Ug,o(Q,24,this,!1)),o(Q,27,this);s(this,jg,o(Q,28,this,!1)),o(Q,31,this);s(this,Kg,o(Q,32,this)),o(Q,35,this);s(this,Wg,o(Q,36,this)),o(Q,39,this);s(this,Gg,o(Q,40,this)),o(Q,43,this);s(this,Yg,o(Q,44,this,"")),o(Q,47,this);s(this,Xg,o(Q,48,this)),o(Q,51,this);s(this,Qg,o(Q,52,this,!1)),o(Q,55,this);s(this,Jg,o(Q,56,this)),o(Q,59,this);s(this,Wd,t=>{let r=t.target;this.value=r.value,this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(this.value.length>0),this.dispatchEvent(uT({value:this.value}))});s(this,Gd,()=>{this._fieldCtx?.setFocused(!0)});s(this,Yd,()=>{this._fieldCtx?.setFocused(!1),this._fieldCtx?.markTouched()})}firstUpdated(){this.autofocus&&this.focus()}render(){let t=[e(this,ee,fT),e(this,ee,Bn)?e(this,ee,vT):void 0].filter(Boolean).join(" ")||void 0;return f`
|
|
5334
5355
|
<input
|
|
5335
5356
|
part="input"
|
|
5336
|
-
id="${e(this,ee,
|
|
5357
|
+
id="${e(this,ee,mT)}"
|
|
5337
5358
|
type="${this.type}"
|
|
5338
5359
|
.value="${wr(this.value)}"
|
|
5339
5360
|
placeholder="${this.placeholder}"
|
|
5340
|
-
?disabled="${e(this,ee,
|
|
5361
|
+
?disabled="${e(this,ee,Zg)}"
|
|
5341
5362
|
?required="${this.required}"
|
|
5342
5363
|
?readonly="${this.readonly}"
|
|
5343
|
-
minlength="${
|
|
5344
|
-
maxlength="${
|
|
5345
|
-
pattern="${
|
|
5364
|
+
minlength="${ks(this.minLength)}"
|
|
5365
|
+
maxlength="${ks(this.maxLength)}"
|
|
5366
|
+
pattern="${ks(this.pattern)}"
|
|
5346
5367
|
name="${this.name}"
|
|
5347
|
-
autocomplete="${
|
|
5348
|
-
aria-describedby="${
|
|
5349
|
-
aria-invalid="${e(this,ee,
|
|
5350
|
-
?data-disabled="${e(this,ee,
|
|
5351
|
-
?data-invalid="${e(this,ee,
|
|
5352
|
-
?data-valid="${!e(this,ee,
|
|
5368
|
+
autocomplete="${ks(this.autocomplete)}"
|
|
5369
|
+
aria-describedby="${ks(t)}"
|
|
5370
|
+
aria-invalid="${e(this,ee,Bn)}"
|
|
5371
|
+
?data-disabled="${e(this,ee,Zg)}"
|
|
5372
|
+
?data-invalid="${e(this,ee,Bn)}"
|
|
5373
|
+
?data-valid="${!e(this,ee,Bn)}"
|
|
5353
5374
|
?data-dirty="${this._fieldCtx?.dirty}"
|
|
5354
5375
|
?data-touched="${this._fieldCtx?.touched}"
|
|
5355
5376
|
?data-filled="${this._fieldCtx?.filled}"
|
|
@@ -5358,7 +5379,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5358
5379
|
@focus="${e(this,Gd)}"
|
|
5359
5380
|
@blur="${e(this,Yd)}"
|
|
5360
5381
|
/>
|
|
5361
|
-
`}};Q=S(
|
|
5382
|
+
`}};Q=S(hT),Bg=new WeakMap,Dg=new WeakMap,qg=new WeakMap,Vg=new WeakMap,Ug=new WeakMap,jg=new WeakMap,Kg=new WeakMap,Wg=new WeakMap,Gg=new WeakMap,Yg=new WeakMap,Xg=new WeakMap,Qg=new WeakMap,Jg=new WeakMap,ee=new WeakSet,mT=function(){return this._fieldCtx?.controlId??""},fT=function(){return this._fieldCtx?.descriptionId},vT=function(){return this._fieldCtx?.errorId},Zg=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},Bn=function(){return this._fieldCtx?.invalid??!1},Wd=new WeakMap,Gd=new WeakMap,Yd=new WeakMap,l(Q,4,"type",pT,Ot,Bg),l(Q,4,"value",cT,Ot,Dg),l(Q,4,"placeholder",dT,Ot,qg),l(Q,4,"disabled",lT,Ot,Vg),l(Q,4,"required",aT,Ot,Ug),l(Q,4,"readonly",nT,Ot,jg),l(Q,4,"minLength",sT,Ot,Kg),l(Q,4,"maxLength",iT,Ot,Wg),l(Q,4,"pattern",oT,Ot,Gg),l(Q,4,"name",rT,Ot,Yg),l(Q,4,"autocomplete",eT,Ot,Xg),l(Q,4,"autofocus",tT,Ot,Qg),l(Q,4,"_fieldCtx",Z$,Ot,Jg),C(Q,Ot),b(Ot,"tagName","dui-input"),b(Ot,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Ot,"styles",[y,SL]);var yT=z("spa-navigate",{bubbles:!0,composed:!0}),EL=c`
|
|
5362
5383
|
:host {
|
|
5363
5384
|
display: contents;
|
|
5364
5385
|
}
|
|
@@ -5368,7 +5389,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5368
5389
|
color: inherit;
|
|
5369
5390
|
text-decoration: none;
|
|
5370
5391
|
}
|
|
5371
|
-
`,
|
|
5392
|
+
`,gT,bT,Xd,tb,Qd,so=class extends(bT=g,gT=[u()],bT){constructor(){super(...arguments);s(this,tb,o(Xd,8,this,"")),o(Xd,11,this);s(this,Qd,t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.button!==0||(t.preventDefault(),this.dispatchEvent(yT({href:this.href})))})}render(){return f`<a href="${this.href}" @click="${e(this,Qd)}"><slot></slot></a>`}};Xd=S(bT),tb=new WeakMap,Qd=new WeakMap,l(Xd,4,"href",gT,so,tb),C(Xd,so),b(so,"tagName","dui-link"),b(so,"styles",[y,EL]);var $L=c`
|
|
5372
5393
|
:host {
|
|
5373
5394
|
display: block;
|
|
5374
5395
|
}
|
|
@@ -5376,26 +5397,26 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5376
5397
|
:host([disabled]) {
|
|
5377
5398
|
pointer-events: none;
|
|
5378
5399
|
}
|
|
5379
|
-
`,
|
|
5400
|
+
`,TL=c`
|
|
5380
5401
|
.Item {
|
|
5381
5402
|
display: flex;
|
|
5382
5403
|
align-items: center;
|
|
5383
5404
|
cursor: pointer;
|
|
5384
5405
|
}
|
|
5385
|
-
`,
|
|
5406
|
+
`,xT,wT,Jd,eb,Pe=class extends(wT=g,xT=[u({type:Boolean,reflect:!0})],wT){constructor(){super(...arguments);s(this,eb,o(Jd,8,this,!1)),o(Jd,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
|
|
5386
5407
|
<div class="Item" part="root" aria-disabled="${this.disabled}">
|
|
5387
5408
|
<slot></slot>
|
|
5388
5409
|
</div>
|
|
5389
|
-
`}};Jd=S(
|
|
5410
|
+
`}};Jd=S(wT),eb=new WeakMap,l(Jd,4,"disabled",xT,Pe,eb),C(Jd,Pe),b(Pe,"tagName","dui-menu-item"),b(Pe,"styles",[y,$L,TL]);var RL=c`
|
|
5390
5411
|
:host {
|
|
5391
5412
|
display: block;
|
|
5392
5413
|
}
|
|
5393
|
-
`,
|
|
5414
|
+
`,_L=c`
|
|
5394
5415
|
.Trigger {
|
|
5395
5416
|
display: contents;
|
|
5396
5417
|
cursor: pointer;
|
|
5397
5418
|
}
|
|
5398
|
-
`,
|
|
5419
|
+
`,IL=[c`
|
|
5399
5420
|
.Popup {
|
|
5400
5421
|
max-height: 240px;
|
|
5401
5422
|
overflow-y: auto;
|
|
@@ -5410,7 +5431,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5410
5431
|
.Popup[data-ending-style] {
|
|
5411
5432
|
opacity: 0;
|
|
5412
5433
|
}
|
|
5413
|
-
`],
|
|
5434
|
+
`],kT,CT,Zd,rb,ob,yi,zo,Lt,Cs,Rt,Dn,ib,ST,tc,ec,rc,oc,Oo=class extends(CT=g,kT=[k()],CT){constructor(){super(...arguments);s(this,Lt);s(this,rb,o(Zd,8,this,-1)),o(Zd,11,this);s(this,Cs,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);s(this,Rt,new te(this,{getAnchor:()=>e(this,Cs).call(this)??this,matchWidth:!1,styles:IL,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,Lt,-1,zo),e(this,Cs).call(this)?.setAttribute("data-open","")},onClose:()=>{h(this,Lt,-1,zo),e(this,Cs).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
|
|
5414
5435
|
<div
|
|
5415
5436
|
class="Popup"
|
|
5416
5437
|
?data-starting-style="${t.isStarting}"
|
|
@@ -5418,24 +5439,24 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5418
5439
|
>
|
|
5419
5440
|
<div
|
|
5420
5441
|
class="Menu"
|
|
5421
|
-
id="${e(this,
|
|
5442
|
+
id="${e(this,Dn)}"
|
|
5422
5443
|
role="menu"
|
|
5423
5444
|
@click="${e(this,ec)}"
|
|
5424
5445
|
@mousemove="${e(this,oc)}"
|
|
5425
5446
|
></div>
|
|
5426
5447
|
</div>
|
|
5427
|
-
`}));s(this,
|
|
5448
|
+
`}));s(this,Dn,`menu-${crypto.randomUUID().slice(0,8)}`);s(this,tc,t=>{t.stopPropagation(),t.preventDefault(),m(this,Lt,ST).call(this)});s(this,ec,t=>{let r=t.composedPath().find(n=>n instanceof HTMLElement&&n.matches(Pe.tagName));r&&!r.disabled&&e(this,Rt).close()});s(this,rc,t=>{let r=e(this,Lt,ib);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!e(this,Rt).isOpen)e(this,Rt).open();else{let n=e(this,Lt,yi)+1;for(;n<r.length&&r[n]?.disabled;)n++;n<r.length&&h(this,Lt,n,zo)}break}case"ArrowUp":{if(t.preventDefault(),!e(this,Rt).isOpen)e(this,Rt).open();else{let n=e(this,Lt,yi)-1;for(;n>=0&&r[n]?.disabled;)n--;n>=0&&h(this,Lt,n,zo)}break}case"Home":if(e(this,Rt).isOpen){t.preventDefault();let n=r.findIndex(d=>!d.disabled);n>=0&&h(this,Lt,n,zo)}break;case"End":if(e(this,Rt).isOpen){t.preventDefault();for(let n=r.length-1;n>=0;n--)if(!r[n]?.disabled){h(this,Lt,n,zo);break}}break;case"Enter":case" ":{if(e(this,Rt).isOpen&&e(this,Lt,yi)>=0){t.preventDefault();let n=r[e(this,Lt,yi)];n&&!n.disabled&&(n.click(),e(this,Rt).close())}else e(this,Rt).isOpen||(t.preventDefault(),e(this,Rt).open());break}case"Escape":e(this,Rt).isOpen&&(t.preventDefault(),e(this,Rt).close());break;case"Tab":e(this,Rt).isOpen&&e(this,Rt).close();break}});s(this,oc,()=>{e(this,Lt,yi)>=0&&h(this,Lt,-1,zo)})}updated(){let t=e(this,Lt,ib);for(let r=0;r<t.length;r++)r===e(this,Lt,yi)?t[r].setAttribute("data-highlighted",""):t[r].removeAttribute("data-highlighted")}render(){return f`
|
|
5428
5449
|
<div
|
|
5429
5450
|
class="Trigger"
|
|
5430
5451
|
aria-haspopup="menu"
|
|
5431
5452
|
aria-expanded="${e(this,Rt).isOpen}"
|
|
5432
|
-
aria-controls="${e(this,
|
|
5453
|
+
aria-controls="${e(this,Dn)}"
|
|
5433
5454
|
@click="${e(this,tc)}"
|
|
5434
5455
|
@keydown="${e(this,rc)}"
|
|
5435
5456
|
>
|
|
5436
5457
|
<slot name="trigger"></slot>
|
|
5437
5458
|
</div>
|
|
5438
|
-
`}};Zd=S(
|
|
5459
|
+
`}};Zd=S(CT),rb=new WeakMap,Lt=new WeakSet,Cs=new WeakMap,Rt=new WeakMap,Dn=new WeakMap,ib=function(){return[...(e(this,Rt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},ST=function(){e(this,Rt).isOpen?e(this,Rt).close():e(this,Rt).open()},tc=new WeakMap,ec=new WeakMap,rc=new WeakMap,oc=new WeakMap,ob=l(Zd,20,"#highlightedIndex",kT,Lt,rb),yi=ob.get,zo=ob.set,C(Zd,Oo),b(Oo,"tagName","dui-menu"),b(Oo,"styles",[y,RL,_L]);var ET=Symbol("dui-menubar");var AL=c`
|
|
5439
5460
|
:host {
|
|
5440
5461
|
display: block;
|
|
5441
5462
|
}
|
|
@@ -5449,7 +5470,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5449
5470
|
flex-direction: column;
|
|
5450
5471
|
align-items: stretch;
|
|
5451
5472
|
}
|
|
5452
|
-
|
|
5473
|
+
`,$T,TT,RT,_T,IT,Me,sb,nb,ab,lb,cb,ic,ye,AT,sc,nc,Ss,db,pb,ac,pr=class extends(IT=g,_T=[u({type:Boolean})],RT=[u({reflect:!0})],TT=[k()],$T=[kt({context:ET}),k()],IT){constructor(){super(...arguments);s(this,ye);s(this,sb,o(Me,8,this,!0)),o(Me,11,this);s(this,nb,o(Me,12,this,"horizontal")),o(Me,15,this);s(this,ab,o(Me,16,this,null)),o(Me,19,this);s(this,sc,t=>{h(this,ye,t,ic)});s(this,nc,()=>{h(this,ye,null,ic)});s(this,Ss,t=>{let r=m(this,ye,AT).call(this);if(r.length===0)return;let n=r.findIndex(E=>E.getAttribute("data-menubar-id")===e(this,ye,cb)),d;t==="next"?(d=n+1,d>=r.length&&(d=this.loop?0:r.length-1)):(d=n-1,d<0&&(d=this.loop?r.length-1:0));let p=r[d];if(!p)return;let v=p.getAttribute("data-menubar-id");v&&h(this,ye,v,ic),p.querySelector('[slot="trigger"]')?.focus()});s(this,db,o(Me,20,this,m(this,ye,pb).call(this))),o(Me,23,this);s(this,ac,t=>{let r=this.orientation==="horizontal",n=r?"ArrowRight":"ArrowDown",d=r?"ArrowLeft":"ArrowUp";t.key===n?(t.preventDefault(),e(this,Ss).call(this,"next")):t.key===d&&(t.preventDefault(),e(this,Ss).call(this,"prev"))})}willUpdate(){this._ctx=m(this,ye,pb).call(this)}render(){return f`
|
|
5453
5474
|
<div
|
|
5454
5475
|
part="root"
|
|
5455
5476
|
role="menubar"
|
|
@@ -5458,7 +5479,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5458
5479
|
>
|
|
5459
5480
|
<slot></slot>
|
|
5460
5481
|
</div>
|
|
5461
|
-
`}};Me=S(
|
|
5482
|
+
`}};Me=S(IT),sb=new WeakMap,nb=new WeakMap,ab=new WeakMap,ye=new WeakSet,AT=function(){return[...this.querySelectorAll("dui-menu")]},sc=new WeakMap,nc=new WeakMap,Ss=new WeakMap,db=new WeakMap,pb=function(){return{activeMenuId:e(this,ye,cb),openMenu:e(this,sc),closeAll:e(this,nc),navigateToMenu:e(this,Ss)}},ac=new WeakMap,l(Me,4,"loop",_T,pr,sb),l(Me,4,"orientation",RT,pr,nb),lb=l(Me,20,"#activeMenuId",TT,ye,ab),cb=lb.get,ic=lb.set,l(Me,4,"_ctx",$T,pr,db),C(Me,pr),b(pr,"tagName","dui-menubar"),b(pr,"styles",[y,AL]);var sR=z("value-change",{bubbles:!0,composed:!0}),qb=z("value-committed",{bubbles:!0,composed:!0}),zL=c`
|
|
5462
5483
|
:host {
|
|
5463
5484
|
display: block;
|
|
5464
5485
|
}
|
|
@@ -5532,7 +5553,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5532
5553
|
width: 0;
|
|
5533
5554
|
height: 0;
|
|
5534
5555
|
}
|
|
5535
|
-
`,
|
|
5556
|
+
`,OL=3,zT,OT,LT,PT,MT,FT,HT,NT,BT,DT,qT,VT,UT,jT,KT,WT,GT,YT,XT,QT,JT,ZT,tR,eR,rR,oR,iR,A,hb,ub,mb,fb,vb,gb,bb,yb,xb,wb,kb,Cb,Sb,Eb,$b,Tb,Rb,_b,Ib,Ab,zb,Ob,Lb,nR,Vb,T,Pb,Mb,Ub,jb,Fb,Hb,aR,Kb,Nb,Bb,Wb,Es,Db,Vn,Un,Ei,$i,jn,Lo,qn,lR,dR,cR,xi,Gb,Yb,wi,pR,hR,lc,ki,Xb,Ci,$s,Ts,Qb,dc,Si,Kn,Ti,cc,pc,hc,uc,mc,fc,vc,nt=class extends(iR=g,oR=[u({type:Number})],rR=[u({type:Number,attribute:"default-value"})],eR=[u({type:Number})],tR=[u({type:Number})],ZT=[u({type:Number})],JT=[u({type:Number,attribute:"large-step"})],QT=[u({type:Boolean,reflect:!0})],XT=[u({type:Boolean,reflect:!0,attribute:"read-only"})],YT=[u({type:Boolean})],GT=[u()],WT=[u({reflect:!0})],KT=[u({reflect:!0,attribute:"label-position"})],jT=[u({reflect:!0,attribute:"icon-position"})],UT=[u({reflect:!0})],VT=[u({type:Number})],qT=[u({type:Boolean,reflect:!0,attribute:"scrub-label"})],DT=[u({type:Boolean,reflect:!0,attribute:"scrub-value"})],BT=[u({type:Boolean,reflect:!0,attribute:"scrub-field"})],NT=[u({type:Boolean,reflect:!0,attribute:"click-label"})],HT=[u({type:Boolean,reflect:!0,attribute:"click-value"})],FT=[u({type:Boolean,reflect:!0,attribute:"click-field"})],MT=[k()],PT=[k()],LT=[k()],OT=[k()],zT=[et({context:ne,subscribe:!0}),k()],iR){constructor(){super(...arguments);s(this,T);s(this,hb,o(A,8,this)),o(A,11,this);s(this,ub,o(A,12,this)),o(A,15,this);s(this,mb,o(A,16,this)),o(A,19,this);s(this,fb,o(A,20,this)),o(A,23,this);s(this,vb,o(A,24,this,1)),o(A,27,this);s(this,gb,o(A,28,this,10)),o(A,31,this);s(this,bb,o(A,32,this,!1)),o(A,35,this);s(this,yb,o(A,36,this,!1)),o(A,39,this);s(this,xb,o(A,40,this,!1)),o(A,43,this);s(this,wb,o(A,44,this)),o(A,47,this);s(this,kb,o(A,48,this,"")),o(A,51,this);s(this,Cb,o(A,52,this,"")),o(A,55,this);s(this,Sb,o(A,56,this,"")),o(A,59,this);s(this,Eb,o(A,60,this,"")),o(A,63,this);s(this,$b,o(A,64,this)),o(A,67,this);s(this,Tb,o(A,68,this,!1)),o(A,71,this);s(this,Rb,o(A,72,this,!1)),o(A,75,this);s(this,_b,o(A,76,this,!1)),o(A,79,this);s(this,Ib,o(A,80,this,!1)),o(A,83,this);s(this,Ab,o(A,84,this,!1)),o(A,87,this);s(this,zb,o(A,88,this,!1)),o(A,91,this);s(this,Ob,o(A,92,this)),o(A,95,this);s(this,Pb,o(A,96,this,"")),o(A,99,this);s(this,Fb,o(A,100,this,!1)),o(A,103,this);s(this,Nb,o(A,104,this,!1)),o(A,107,this);s(this,Db,o(A,108,this)),o(A,111,this);s(this,Vn,0);s(this,Un,0);s(this,Ei,!1);s(this,$i,null);s(this,jn,!1);s(this,$s,t=>{if(e(this,T,qn)||this.readOnly)return;let r=e(this,T,Lo)??this.min??0;m(this,T,Ci).call(this,r+t)});s(this,Ts,t=>{if(e(this,T,qn)||this.readOnly)return;let r=e(this,T,Lo)??this.max??0;m(this,T,Ci).call(this,r-t)});s(this,Kn,t=>{if(t.pointerId!==e(this,$i))return;let r=t.clientX-e(this,Vn);if(!e(this,Ei)){if(Math.abs(r)<OL)return;h(this,Ei,!0),h(this,T,!0,Kb)}let n=this.step;t.shiftKey?n=this.step*.1:(t.ctrlKey||t.metaKey)&&(n=this.largeStep);let d=e(this,Un)+r*n;m(this,T,Ci).call(this,d)});s(this,Ti,t=>{if(t.pointerId===e(this,$i)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",e(this,Kn)),this.removeEventListener("pointerup",e(this,Ti)),this.removeEventListener("pointercancel",e(this,Ti)),e(this,Ei)){h(this,T,!1,Kb);let r=e(this,T,Lo);r!==void 0&&this.dispatchEvent(qb({value:r}))}else e(this,jn)&&m(this,T,dc).call(this);h(this,$i,null)}});s(this,cc,t=>{if(t.button!==0)return;let r=e(this,T,Gb)||e(this,T,wi),n=e(this,T,pR)||e(this,T,lc);r&&n?(t.preventDefault(),m(this,T,Si).call(this,t,!0)):r?(t.preventDefault(),m(this,T,Si).call(this,t,!1)):n&&(t.preventDefault(),m(this,T,dc).call(this))});s(this,pc,t=>{if(t.button!==0)return;let r=e(this,T,Yb)||e(this,T,wi),n=e(this,T,hR)||e(this,T,lc);r&&n?(t.preventDefault(),m(this,T,Si).call(this,t,!0)):r?(t.preventDefault(),m(this,T,Si).call(this,t,!1)):n&&h(this,T,!0,Es)});s(this,hc,t=>{if(t.button!==0)return;let r=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==r)return;let n=e(this,T,wi),d=e(this,T,lc);n&&d?(t.preventDefault(),m(this,T,Si).call(this,t,!0)):n?(t.preventDefault(),m(this,T,Si).call(this,t,!1)):d&&(t.preventDefault(),m(this,T,dc).call(this))});s(this,uc,t=>{h(this,T,t.target.value,jb)});s(this,mc,()=>{e(this,T,Wb)&&m(this,T,Qb).call(this),this._fieldCtx?.setFocused(!1),this._fieldCtx?.markTouched()});s(this,fc,()=>{h(this,T,!0,Es),this._fieldCtx?.setFocused(!0);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});s(this,vc,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?e(this,$s).call(this,this.step*.1):t.ctrlKey||t.metaKey?e(this,$s).call(this,this.largeStep):e(this,$s).call(this,this.step),m(this,T,ki).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?e(this,Ts).call(this,this.step*.1):t.ctrlKey||t.metaKey?e(this,Ts).call(this,this.largeStep):e(this,Ts).call(this,this.step),m(this,T,ki).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),m(this,T,Ci).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),m(this,T,Ci).call(this,this.max));break;case"Enter":m(this,T,Qb).call(this);break;case"Escape":{h(this,T,!1,Es),m(this,T,ki).call(this);let r=this.shadowRoot?.querySelector('[part="input"]');r&&r.blur();break}}})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,T,m(this,T,Xb).call(this,this.defaultValue),Vb),m(this,T,ki).call(this)}willUpdate(){e(this,T,Wb)||m(this,T,ki).call(this)}render(){let t=e(this,T,qn),r=e(this,T,lR),n=this._fieldCtx?.controlId??"",d=e(this,T,Lo),p=e(this,T,Gb)||e(this,T,wi),v=e(this,T,Yb)||e(this,T,wi),x=e(this,T,wi);return f`
|
|
5536
5557
|
<span
|
|
5537
5558
|
part="label"
|
|
5538
5559
|
?data-scrub="${p}"
|
|
@@ -5542,7 +5563,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5542
5563
|
<div
|
|
5543
5564
|
part="root"
|
|
5544
5565
|
?data-scrub="${x}"
|
|
5545
|
-
?data-dragging="${e(this,T,
|
|
5566
|
+
?data-dragging="${e(this,T,aR)}"
|
|
5546
5567
|
?data-disabled="${t}"
|
|
5547
5568
|
?data-readonly="${this.readOnly}"
|
|
5548
5569
|
?data-invalid="${r}"
|
|
@@ -5554,11 +5575,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5554
5575
|
|
|
5555
5576
|
<input
|
|
5556
5577
|
part="input"
|
|
5557
|
-
id="${
|
|
5578
|
+
id="${n||$}"
|
|
5558
5579
|
type="text"
|
|
5559
5580
|
inputmode="decimal"
|
|
5560
5581
|
?data-scrub="${v}"
|
|
5561
|
-
.value="${wr(e(this,T,
|
|
5582
|
+
.value="${wr(e(this,T,Ub))}"
|
|
5562
5583
|
?disabled="${t}"
|
|
5563
5584
|
?readonly="${this.readOnly}"
|
|
5564
5585
|
?required="${this.required}"
|
|
@@ -5583,7 +5604,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5583
5604
|
.value="${String(d??"")}"
|
|
5584
5605
|
/>`:$}
|
|
5585
5606
|
</div>
|
|
5586
|
-
`}};A=S(
|
|
5607
|
+
`}};A=S(iR),hb=new WeakMap,ub=new WeakMap,mb=new WeakMap,fb=new WeakMap,vb=new WeakMap,gb=new WeakMap,bb=new WeakMap,yb=new WeakMap,xb=new WeakMap,wb=new WeakMap,kb=new WeakMap,Cb=new WeakMap,Sb=new WeakMap,Eb=new WeakMap,$b=new WeakMap,Tb=new WeakMap,Rb=new WeakMap,_b=new WeakMap,Ib=new WeakMap,Ab=new WeakMap,zb=new WeakMap,Ob=new WeakMap,T=new WeakSet,Pb=new WeakMap,Fb=new WeakMap,Nb=new WeakMap,Db=new WeakMap,Vn=new WeakMap,Un=new WeakMap,Ei=new WeakMap,$i=new WeakMap,jn=new WeakMap,Lo=function(){return this.value??e(this,T,nR)},qn=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},lR=function(){return this._fieldCtx?.invalid??!1},dR=function(){let t=String(this.step),r=t.indexOf(".");return r===-1?0:t.length-r-1},cR=function(){let t=e(this,T,Lo);if(t===void 0)return"";let r=this.precision??e(this,T,dR);return t.toFixed(r)},xi=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},Gb=function(){return e(this,T,xi)?this.scrubLabel:this.label!==""},Yb=function(){return e(this,T,xi)?this.scrubValue:!1},wi=function(){return e(this,T,xi)?this.scrubField:this.label===""},pR=function(){return e(this,T,xi)?this.clickLabel:!1},hR=function(){return e(this,T,xi)?this.clickValue:!0},lc=function(){return e(this,T,xi)?this.clickField:!1},ki=function(){h(this,T,e(this,T,cR),jb)},Xb=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Ci=function(t){let r=m(this,T,Xb).call(this,t);this.value===void 0&&h(this,T,r,Vb),this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(!0),this.dispatchEvent(sR({value:r}))},$s=new WeakMap,Ts=new WeakMap,Qb=function(){let t=parseFloat(e(this,T,Ub));Number.isNaN(t)?m(this,T,ki).call(this):m(this,T,Ci).call(this,t),h(this,T,!1,Es);let r=e(this,T,Lo);r!==void 0&&this.dispatchEvent(qb({value:r}))},dc=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(h(this,T,!0,Es),t.focus(),t.select())},Si=function(t,r){e(this,T,qn)||this.readOnly||(h(this,$i,t.pointerId),h(this,Vn,t.clientX),h(this,Un,e(this,T,Lo)??0),h(this,Ei,!1),h(this,jn,r),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",e(this,Kn)),this.addEventListener("pointerup",e(this,Ti)),this.addEventListener("pointercancel",e(this,Ti)))},Kn=new WeakMap,Ti=new WeakMap,cc=new WeakMap,pc=new WeakMap,hc=new WeakMap,uc=new WeakMap,mc=new WeakMap,fc=new WeakMap,vc=new WeakMap,l(A,4,"value",oR,nt,hb),l(A,4,"defaultValue",rR,nt,ub),l(A,4,"min",eR,nt,mb),l(A,4,"max",tR,nt,fb),l(A,4,"step",ZT,nt,vb),l(A,4,"largeStep",JT,nt,gb),l(A,4,"disabled",QT,nt,bb),l(A,4,"readOnly",XT,nt,yb),l(A,4,"required",YT,nt,xb),l(A,4,"name",GT,nt,wb),l(A,4,"label",WT,nt,kb),l(A,4,"labelPosition",KT,nt,Cb),l(A,4,"iconPosition",jT,nt,Sb),l(A,4,"unit",UT,nt,Eb),l(A,4,"precision",VT,nt,$b),l(A,4,"scrubLabel",qT,nt,Tb),l(A,4,"scrubValue",DT,nt,Rb),l(A,4,"scrubField",BT,nt,_b),l(A,4,"clickLabel",NT,nt,Ib),l(A,4,"clickValue",HT,nt,Ab),l(A,4,"clickField",FT,nt,zb),Lb=l(A,20,"#internalValue",MT,T,Ob),nR=Lb.get,Vb=Lb.set,Mb=l(A,20,"#inputText",PT,T,Pb),Ub=Mb.get,jb=Mb.set,Hb=l(A,20,"#dragging",LT,T,Fb),aR=Hb.get,Kb=Hb.set,Bb=l(A,20,"#editing",OT,T,Nb),Wb=Bb.get,Es=Bb.set,l(A,4,"_fieldCtx",zT,nt,Db),C(A,nt),b(nt,"tagName","dui-number-field"),b(nt,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(nt,"styles",[y,zL]);var TR=z("value-change",{bubbles:!0,composed:!0}),gc=z("value-committed",{bubbles:!0,composed:!0}),LL=c`
|
|
5587
5608
|
:host {
|
|
5588
5609
|
display: block;
|
|
5589
5610
|
}
|
|
@@ -5636,7 +5657,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5636
5657
|
width: 0;
|
|
5637
5658
|
height: 0;
|
|
5638
5659
|
}
|
|
5639
|
-
`,
|
|
5660
|
+
`,uR,mR,fR,vR,gR,bR,yR,xR,wR,kR,CR,SR,ER,$R,J,Jb,Zb,ty,ey,ry,oy,iy,sy,ny,ay,ly,dy,RR,uy,B,cy,py,my,fy,hy,Rr,bc,_R,IR,AR,Rs,vy,_s,Wn,Gn,gy,yc,xc,wc,kc,Cc,Sc,Bt=class extends($R=g,ER=[u({type:Number})],SR=[u({type:Number,attribute:"default-value"})],CR=[u({type:Number})],kR=[u({type:Number})],wR=[u({type:Number})],xR=[u({type:Number,attribute:"large-step"})],yR=[u({type:Boolean,reflect:!0})],bR=[u({type:Boolean,reflect:!0,attribute:"read-only"})],gR=[u({type:Boolean})],vR=[u()],fR=[k()],mR=[k()],uR=[et({context:ne,subscribe:!0}),k()],$R){constructor(){super(...arguments);s(this,B);s(this,Jb,o(J,8,this)),o(J,11,this);s(this,Zb,o(J,12,this)),o(J,15,this);s(this,ty,o(J,16,this)),o(J,19,this);s(this,ey,o(J,20,this)),o(J,23,this);s(this,ry,o(J,24,this,1)),o(J,27,this);s(this,oy,o(J,28,this,10)),o(J,31,this);s(this,iy,o(J,32,this,!1)),o(J,35,this);s(this,sy,o(J,36,this,!1)),o(J,39,this);s(this,ny,o(J,40,this,!1)),o(J,43,this);s(this,ay,o(J,44,this)),o(J,47,this);s(this,ly,o(J,48,this)),o(J,51,this);s(this,cy,o(J,52,this,"")),o(J,55,this);s(this,hy,o(J,56,this)),o(J,59,this);s(this,Wn,t=>{if(e(this,B,bc)||this.readOnly)return;let r=e(this,B,Rr)??this.min??0;m(this,B,_s).call(this,r+t)});s(this,Gn,t=>{if(e(this,B,bc)||this.readOnly)return;let r=e(this,B,Rr)??this.max??0;m(this,B,_s).call(this,r-t)});s(this,yc,t=>{h(this,B,t.target.value,fy)});s(this,xc,()=>{m(this,B,gy).call(this),this._fieldCtx?.setFocused(!1),this._fieldCtx?.markTouched()});s(this,wc,()=>{this._fieldCtx?.setFocused(!0)});s(this,kc,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),e(this,Wn).call(this,t.shiftKey?this.largeStep:this.step),m(this,B,Rs).call(this);break;case"ArrowDown":t.preventDefault(),e(this,Gn).call(this,t.shiftKey?this.largeStep:this.step),m(this,B,Rs).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),m(this,B,_s).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),m(this,B,_s).call(this,this.max));break;case"Enter":m(this,B,gy).call(this);break}});s(this,Cc,()=>{e(this,Gn).call(this,this.step);let t=e(this,B,Rr);t!==void 0&&this.dispatchEvent(gc({value:t}))});s(this,Sc,()=>{e(this,Wn).call(this,this.step);let t=e(this,B,Rr);t!==void 0&&this.dispatchEvent(gc({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,B,m(this,B,vy).call(this,this.defaultValue),uy),m(this,B,Rs).call(this)}willUpdate(){m(this,B,Rs).call(this)}render(){let t=e(this,B,bc),r=e(this,B,_R),n=this._fieldCtx?.controlId??"",d=e(this,B,Rr);return f`
|
|
5640
5661
|
<div
|
|
5641
5662
|
part="root"
|
|
5642
5663
|
?data-disabled="${t}"
|
|
@@ -5647,17 +5668,17 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5647
5668
|
type="button"
|
|
5648
5669
|
tabindex="-1"
|
|
5649
5670
|
aria-label="Decrease"
|
|
5650
|
-
?disabled="${t||this.readOnly||!e(this,B,
|
|
5671
|
+
?disabled="${t||this.readOnly||!e(this,B,IR)}"
|
|
5651
5672
|
@click="${e(this,Cc)}"
|
|
5652
5673
|
>
|
|
5653
5674
|
<slot name="decrement">−</slot>
|
|
5654
5675
|
</button>
|
|
5655
5676
|
<input
|
|
5656
5677
|
part="input"
|
|
5657
|
-
id="${
|
|
5678
|
+
id="${n||$}"
|
|
5658
5679
|
type="text"
|
|
5659
5680
|
inputmode="decimal"
|
|
5660
|
-
.value="${wr(e(this,B,
|
|
5681
|
+
.value="${wr(e(this,B,my))}"
|
|
5661
5682
|
?disabled="${t}"
|
|
5662
5683
|
?readonly="${this.readOnly}"
|
|
5663
5684
|
?required="${this.required}"
|
|
@@ -5673,7 +5694,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5673
5694
|
type="button"
|
|
5674
5695
|
tabindex="-1"
|
|
5675
5696
|
aria-label="Increase"
|
|
5676
|
-
?disabled="${t||this.readOnly||!e(this,B,
|
|
5697
|
+
?disabled="${t||this.readOnly||!e(this,B,AR)}"
|
|
5677
5698
|
@click="${e(this,Sc)}"
|
|
5678
5699
|
>
|
|
5679
5700
|
<slot name="increment">+</slot>
|
|
@@ -5684,19 +5705,19 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5684
5705
|
.value="${String(d??"")}"
|
|
5685
5706
|
/>`:$}
|
|
5686
5707
|
</div>
|
|
5687
|
-
`}};J=S(
|
|
5708
|
+
`}};J=S($R),Jb=new WeakMap,Zb=new WeakMap,ty=new WeakMap,ey=new WeakMap,ry=new WeakMap,oy=new WeakMap,iy=new WeakMap,sy=new WeakMap,ny=new WeakMap,ay=new WeakMap,ly=new WeakMap,B=new WeakSet,cy=new WeakMap,hy=new WeakMap,Rr=function(){return this.value??e(this,B,RR)},bc=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},_R=function(){return this._fieldCtx?.invalid??!1},IR=function(){let t=e(this,B,Rr);return t===void 0?!0:this.min===void 0||t>this.min},AR=function(){let t=e(this,B,Rr);return t===void 0?!0:this.max===void 0||t<this.max},Rs=function(){let t=e(this,B,Rr);h(this,B,t!==void 0?String(t):"",fy)},vy=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},_s=function(t){let r=m(this,B,vy).call(this,t);this.value===void 0&&h(this,B,r,uy),this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(!0),this.dispatchEvent(TR({value:r}))},Wn=new WeakMap,Gn=new WeakMap,gy=function(){let t=parseFloat(e(this,B,my));Number.isNaN(t)?m(this,B,Rs).call(this):m(this,B,_s).call(this,t);let r=e(this,B,Rr);r!==void 0&&this.dispatchEvent(gc({value:r}))},yc=new WeakMap,xc=new WeakMap,wc=new WeakMap,kc=new WeakMap,Cc=new WeakMap,Sc=new WeakMap,l(J,4,"value",ER,Bt,Jb),l(J,4,"defaultValue",SR,Bt,Zb),l(J,4,"min",CR,Bt,ty),l(J,4,"max",kR,Bt,ey),l(J,4,"step",wR,Bt,ry),l(J,4,"largeStep",xR,Bt,oy),l(J,4,"disabled",yR,Bt,iy),l(J,4,"readOnly",bR,Bt,sy),l(J,4,"required",gR,Bt,ny),l(J,4,"name",vR,Bt,ay),dy=l(J,20,"#internalValue",fR,B,ly),RR=dy.get,uy=dy.set,py=l(J,20,"#inputText",mR,B,cy),my=py.get,fy=py.set,l(J,4,"_fieldCtx",uR,Bt,hy),C(J,Bt),b(Bt,"tagName","dui-stepper"),b(Bt,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Bt,"styles",[y,LL]);var Po=Symbol("dui-popover");var Ty=z("open-change",{bubbles:!0,composed:!0}),PL=c`
|
|
5688
5709
|
:host {
|
|
5689
5710
|
display: contents;
|
|
5690
5711
|
}
|
|
5691
|
-
`,
|
|
5712
|
+
`,zR,OR,LR,PR,MR,FR,HR,NR,Pt,by,yy,xy,wy,ky,Cy,Ec,$c,at,Sy,Ey,Ry,BR,Yn,Rc,_c,$y,Xn,_y,Tc,DR,qR,Fe=class extends(NR=g,HR=[u({type:Boolean,reflect:!0})],FR=[u({type:Boolean,attribute:"default-open"})],MR=[u({reflect:!0})],PR=[u({type:Number,attribute:"side-offset"})],LR=[k()],OR=[k()],zR=[kt({context:Po}),k()],NR){constructor(){super(...arguments);s(this,at);s(this,by,o(Pt,8,this,!1)),o(Pt,11,this);s(this,yy,o(Pt,12,this,!1)),o(Pt,15,this);s(this,xy,o(Pt,16,this,"bottom")),o(Pt,19,this);s(this,wy,o(Pt,20,this,8)),o(Pt,23,this);s(this,ky,o(Pt,24,this,!1)),o(Pt,27,this);s(this,Sy,o(Pt,28,this)),o(Pt,31,this);s(this,Rc,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,_c,`popover-popup-${crypto.randomUUID().slice(0,8)}`);s(this,$y,o(Pt,32,this,{open:!1,triggerId:e(this,Rc),popupId:e(this,_c),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>m(this,at,_y).call(this),closePopover:()=>m(this,at,Tc).call(this),togglePopover:()=>m(this,at,DR).call(this),setTriggerEl:t=>m(this,at,qR).call(this,t)})),o(Pt,35,this);s(this,Xn,t=>{e(this,at,Yn)&&t.key==="Escape"&&(t.preventDefault(),m(this,at,Tc).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,at,!0,$c),document.addEventListener("keydown",e(this,Xn))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",e(this,Xn))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e(this,at,Yn)||this._ctx.triggerEl!==e(this,at,Ry))&&(this._ctx={...this._ctx,open:e(this,at,Yn),side:this.side,sideOffset:this.sideOffset,triggerEl:e(this,at,Ry)})}render(){return f`<slot></slot>`}};Pt=S(NR),by=new WeakMap,yy=new WeakMap,xy=new WeakMap,wy=new WeakMap,ky=new WeakMap,at=new WeakSet,Sy=new WeakMap,Yn=function(){return this.open||e(this,at,Ec)},Rc=new WeakMap,_c=new WeakMap,$y=new WeakMap,Xn=new WeakMap,_y=function(){e(this,at,Ec)||(h(this,at,!0,$c),this.dispatchEvent(Ty({open:!0})))},Tc=function(){e(this,at,Ec)&&(h(this,at,!1,$c),this.dispatchEvent(Ty({open:!1})))},DR=function(){e(this,at,Yn)?m(this,at,Tc).call(this):m(this,at,_y).call(this)},qR=function(t){h(this,at,t,BR)},l(Pt,4,"open",HR,Fe,by),l(Pt,4,"defaultOpen",FR,Fe,yy),l(Pt,4,"side",MR,Fe,xy),l(Pt,4,"sideOffset",PR,Fe,wy),Cy=l(Pt,20,"#internalOpen",LR,at,ky),Ec=Cy.get,$c=Cy.set,Ey=l(Pt,20,"#triggerEl",OR,at,Sy),Ry=Ey.get,BR=Ey.set,l(Pt,4,"_ctx",zR,Fe,$y),C(Pt,Fe),b(Fe,"tagName","dui-popover"),b(Fe,"styles",[y,PL]);var ML=c`
|
|
5692
5713
|
:host {
|
|
5693
5714
|
display: contents;
|
|
5694
5715
|
}
|
|
5695
|
-
`,
|
|
5716
|
+
`,FL=c`
|
|
5696
5717
|
.Trigger {
|
|
5697
5718
|
display: contents;
|
|
5698
5719
|
}
|
|
5699
|
-
`,
|
|
5720
|
+
`,Qn=class extends g{static tagName="dui-popover-trigger";static styles=[y,ML,FL];#t=new U(this,{context:Po,subscribe:!0});#e=i=>{i.stopPropagation(),this.#s(),this.#t.value?.togglePopover()};#s(){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 i=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",r=this.#t.value?.triggerId??"";return f`
|
|
5700
5721
|
<span
|
|
5701
5722
|
class="Trigger"
|
|
5702
5723
|
part="trigger"
|
|
@@ -5709,11 +5730,15 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5709
5730
|
>
|
|
5710
5731
|
<slot></slot>
|
|
5711
5732
|
</span>
|
|
5712
|
-
`}};var
|
|
5733
|
+
`}};var HL=c`
|
|
5713
5734
|
:host {
|
|
5735
|
+
display: contents;
|
|
5736
|
+
}
|
|
5737
|
+
|
|
5738
|
+
.slot-wrapper {
|
|
5714
5739
|
display: none;
|
|
5715
5740
|
}
|
|
5716
|
-
`,
|
|
5741
|
+
`,NL=[c`
|
|
5717
5742
|
.Popup {
|
|
5718
5743
|
box-sizing: border-box;
|
|
5719
5744
|
pointer-events: auto;
|
|
@@ -5754,7 +5779,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5754
5779
|
left: 50%;
|
|
5755
5780
|
transform: translateX(-50%) rotate(180deg);
|
|
5756
5781
|
}
|
|
5757
|
-
`],
|
|
5782
|
+
`],VR,UR,jR,KR,_r,Iy,Ay,zy,Oy,Ic,WR,Ar,no,Is,Mo,Ac,GR,Ir=class extends(KR=g,jR=[u({type:Boolean,attribute:"show-arrow"})],UR=[u({type:Boolean,attribute:"close-on-click"})],VR=[k()],KR){constructor(){super(...arguments);s(this,Ar);s(this,Iy,o(_r,8,this,!0)),o(_r,11,this);s(this,Ay,o(_r,12,this,!1)),o(_r,15,this);s(this,zy,o(_r,16,this,"bottom")),o(_r,19,this);s(this,no,new U(this,{context:Po,subscribe:!0}));s(this,Is,!1);s(this,Mo,new te(this,{getAnchor:()=>e(this,no).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:NL,contentContainer:".Content",onPosition:({placement:t})=>{let r=t.split("-")[0];r!==e(this,Ar,Ic)&&h(this,Ar,r,WR)},renderPopup:t=>{let r=e(this,no).value?.popupId??"";return f`
|
|
5758
5783
|
<div
|
|
5759
5784
|
class="Popup"
|
|
5760
5785
|
id="${r}"
|
|
@@ -5765,33 +5790,33 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5765
5790
|
@click="${e(this,Ac)}"
|
|
5766
5791
|
>
|
|
5767
5792
|
<div class="Content"></div>
|
|
5768
|
-
${this.showArrow?
|
|
5793
|
+
${this.showArrow?hs(e(this,Ar,Ic)):""}
|
|
5769
5794
|
</div>
|
|
5770
|
-
`}}));s(this,Ac,()=>{this.closeOnClick&&e(this,no).value?.closePopover()})}containsEventTarget(t){let r=e(this,
|
|
5795
|
+
`}}));s(this,Ac,()=>{this.closeOnClick&&e(this,no).value?.closePopover()})}containsEventTarget(t){let r=e(this,Mo).positionerElement;return r!==null&&t.includes(r)}updated(){let t=e(this,no).value?.open??!1;t&&!e(this,Is)?(m(this,Ar,GR).call(this),e(this,Mo).open()):!t&&e(this,Is)&&e(this,Mo).close(),h(this,Is,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};_r=S(KR),Iy=new WeakMap,Ay=new WeakMap,zy=new WeakMap,Ar=new WeakSet,no=new WeakMap,Is=new WeakMap,Mo=new WeakMap,Ac=new WeakMap,GR=function(){let t=e(this,no).value?.side??"bottom";e(this,Mo).placement=t,e(this,Mo).offset=e(this,no).value?.sideOffset??8},l(_r,4,"showArrow",jR,Ir,Iy),l(_r,4,"closeOnClick",UR,Ir,Ay),Oy=l(_r,20,"#side",VR,Ar,zy),Ic=Oy.get,WR=Oy.set,C(_r,Ir),b(Ir,"tagName","dui-popover-popup"),b(Ir,"styles",[y,HL]);var BL=c`
|
|
5771
5796
|
:host {
|
|
5772
5797
|
display: contents;
|
|
5773
5798
|
}
|
|
5774
|
-
`,
|
|
5799
|
+
`,Jn=class extends g{static tagName="dui-popover-close";static styles=[y,BL];#t=new U(this,{context:Po,subscribe:!0});#e=()=>{this.#t.value?.closePopover()};render(){return f`
|
|
5775
5800
|
<span @click="${this.#e}">
|
|
5776
5801
|
<slot></slot>
|
|
5777
5802
|
</span>
|
|
5778
|
-
`}};var
|
|
5803
|
+
`}};var DL=c`
|
|
5779
5804
|
:host {
|
|
5780
5805
|
display: contents;
|
|
5781
5806
|
}
|
|
5782
|
-
`,
|
|
5807
|
+
`,YR,XR,QR,JR,zr,Ly,Py,My,Or,Ri,Fo,xe,Fy,ZR,Hy,zc,Oc,hr=class extends(JR=g,QR=[u({type:String})],XR=[u({type:String,attribute:"target-root",reflect:!0})],YR=[u({attribute:!1})],JR){constructor(){super(...arguments);s(this,xe);s(this,Ly,o(zr,8,this,"body")),o(zr,11,this);s(this,Py,o(zr,12,this,"document")),o(zr,15,this);s(this,My,o(zr,16,this)),o(zr,19,this);s(this,Or);s(this,Ri,new Set);s(this,Fo,!1);s(this,Oc,()=>{e(this,Fo)||!e(this,Or)||m(this,xe,zc).call(this)})}connectedCallback(){super.connectedCallback(),h(this,Or,this.targetElement??m(this,xe,Fy).call(this)),e(this,Or)&&this.childNodes.length>0&&m(this,xe,zc).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,xe,Hy).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(m(this,xe,Hy).call(this),m(this,xe,ZR).call(this))}render(){return f`<slot @slotchange=${e(this,Oc)}></slot>`}};zr=S(JR),Ly=new WeakMap,Py=new WeakMap,My=new WeakMap,Or=new WeakMap,Ri=new WeakMap,Fo=new WeakMap,xe=new WeakSet,Fy=function(){return XC(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},ZR=function(){h(this,Or,this.targetElement??m(this,xe,Fy).call(this)),m(this,xe,zc).call(this)},Hy=function(){if(e(this,Ri).size!==0){h(this,Fo,!0);for(let t of e(this,Ri))this.append(t);e(this,Ri).clear(),h(this,Fo,!1),h(this,Or,void 0)}},zc=function(){if(!e(this,Or))throw new Error(`Portal target does not exist: ${this.target}`);h(this,Fo,!0);let t=Array.from(this.childNodes);for(let r of t)e(this,Or).appendChild(r),e(this,Ri).add(r);h(this,Fo,!1)},Oc=new WeakMap,l(zr,4,"target",QR,hr,Ly),l(zr,4,"targetRoot",XR,hr,Py),l(zr,4,"targetElement",YR,hr,My),C(zr,hr),b(hr,"tagName","dui-portal"),b(hr,"styles",[DL]);var As=Symbol("dui-preview-card");var Xy=z("open-change",{bubbles:!0,composed:!0}),qL=c`
|
|
5783
5808
|
:host {
|
|
5784
5809
|
display: contents;
|
|
5785
5810
|
}
|
|
5786
|
-
`,
|
|
5811
|
+
`,t_,e_,r_,o_,i_,s_,n_,a_,l_,d_,xt,Ny,By,Dy,qy,Vy,Uy,jy,Ky,Lc,Pc,lt,Wy,Gy,Qy,c_,_i,Ii,Fc,Hc,Yy,Mc,p_,h_,Jy,Zy,u_,ce=class extends(d_=g,l_=[u({type:Boolean,reflect:!0})],a_=[u({type:Boolean,attribute:"default-open"})],n_=[u({reflect:!0})],s_=[u({type:Number,attribute:"side-offset"})],i_=[u({type:Number})],o_=[u({type:Number,attribute:"close-delay"})],r_=[k()],e_=[k()],t_=[kt({context:As}),k()],d_){constructor(){super(...arguments);s(this,lt);s(this,Ny,o(xt,8,this,!1)),o(xt,11,this);s(this,By,o(xt,12,this,!1)),o(xt,15,this);s(this,Dy,o(xt,16,this,"top")),o(xt,19,this);s(this,qy,o(xt,20,this,8)),o(xt,23,this);s(this,Vy,o(xt,24,this,400)),o(xt,27,this);s(this,Uy,o(xt,28,this,300)),o(xt,31,this);s(this,jy,o(xt,32,this,!1)),o(xt,35,this);s(this,Wy,o(xt,36,this)),o(xt,39,this);s(this,_i);s(this,Ii);s(this,Fc,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,Hc,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);s(this,Yy,o(xt,40,this,{open:!1,triggerId:e(this,Fc),popupId:e(this,Hc),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>m(this,lt,p_).call(this),closePreviewCard:()=>m(this,lt,h_).call(this),setTriggerEl:t=>m(this,lt,u_).call(this,t)})),o(xt,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,lt,!0,Pc)}disconnectedCallback(){super.disconnectedCallback(),m(this,lt,Mc).call(this)}willUpdate(t){let r=this.open||e(this,lt,Lc);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==r||this._ctx.triggerEl!==e(this,lt,Qy))&&(this._ctx={...this._ctx,open:r,side:this.side,sideOffset:this.sideOffset,triggerEl:e(this,lt,Qy)})}render(){return f`<slot></slot>`}};xt=S(d_),Ny=new WeakMap,By=new WeakMap,Dy=new WeakMap,qy=new WeakMap,Vy=new WeakMap,Uy=new WeakMap,jy=new WeakMap,lt=new WeakSet,Wy=new WeakMap,_i=new WeakMap,Ii=new WeakMap,Fc=new WeakMap,Hc=new WeakMap,Yy=new WeakMap,Mc=function(){e(this,_i)&&(clearTimeout(e(this,_i)),h(this,_i,void 0)),e(this,Ii)&&(clearTimeout(e(this,Ii)),h(this,Ii,void 0))},p_=function(){m(this,lt,Mc).call(this),this.delay<=0?m(this,lt,Jy).call(this):h(this,_i,setTimeout(()=>m(this,lt,Jy).call(this),this.delay))},h_=function(){m(this,lt,Mc).call(this),this.closeDelay<=0?m(this,lt,Zy).call(this):h(this,Ii,setTimeout(()=>m(this,lt,Zy).call(this),this.closeDelay))},Jy=function(){e(this,lt,Lc)||(h(this,lt,!0,Pc),this.dispatchEvent(Xy({open:!0})))},Zy=function(){e(this,lt,Lc)&&(h(this,lt,!1,Pc),this.dispatchEvent(Xy({open:!1})))},u_=function(t){h(this,lt,t,c_)},l(xt,4,"open",l_,ce,Ny),l(xt,4,"defaultOpen",a_,ce,By),l(xt,4,"side",n_,ce,Dy),l(xt,4,"sideOffset",s_,ce,qy),l(xt,4,"delay",i_,ce,Vy),l(xt,4,"closeDelay",o_,ce,Uy),Ky=l(xt,20,"#internalOpen",r_,lt,jy),Lc=Ky.get,Pc=Ky.set,Gy=l(xt,20,"#triggerEl",e_,lt,Wy),Qy=Gy.get,c_=Gy.set,l(xt,4,"_ctx",t_,ce,Yy),C(xt,ce),b(ce,"tagName","dui-preview-card"),b(ce,"styles",[y,qL]);var VL=c`
|
|
5787
5812
|
:host {
|
|
5788
5813
|
display: contents;
|
|
5789
5814
|
}
|
|
5790
|
-
`,
|
|
5815
|
+
`,UL=c`
|
|
5791
5816
|
.Trigger {
|
|
5792
5817
|
display: contents;
|
|
5793
5818
|
}
|
|
5794
|
-
`,
|
|
5819
|
+
`,Zn=class extends g{static tagName="dui-preview-card-trigger";static styles=[y,VL,UL];#t=new U(this,{context:As,subscribe:!0});#e=()=>{this.#d(),this.#t.value?.openPreviewCard()};#s=()=>{this.#t.value?.closePreviewCard()};#n=()=>{this.#d(),this.#t.value?.openPreviewCard()};#a=()=>{this.#t.value?.closePreviewCard()};#l=i=>{i.key==="Escape"&&this.#t.value?.open&&this.#t.value?.closePreviewCard()};#d(){let r=this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})?.[0]??this;this.#t.value?.setTriggerEl(r)}render(){let i=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",r=this.#t.value?.triggerId??"";return f`
|
|
5795
5820
|
<span
|
|
5796
5821
|
class="Trigger"
|
|
5797
5822
|
part="trigger"
|
|
@@ -5807,11 +5832,15 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5807
5832
|
>
|
|
5808
5833
|
<slot></slot>
|
|
5809
5834
|
</span>
|
|
5810
|
-
`}};var
|
|
5835
|
+
`}};var jL=c`
|
|
5811
5836
|
:host {
|
|
5837
|
+
display: contents;
|
|
5838
|
+
}
|
|
5839
|
+
|
|
5840
|
+
.slot-wrapper {
|
|
5812
5841
|
display: none;
|
|
5813
5842
|
}
|
|
5814
|
-
`,
|
|
5843
|
+
`,KL=[c`
|
|
5815
5844
|
.Popup {
|
|
5816
5845
|
box-sizing: border-box;
|
|
5817
5846
|
pointer-events: auto;
|
|
@@ -5852,7 +5881,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5852
5881
|
left: 50%;
|
|
5853
5882
|
transform: translateX(-50%) rotate(180deg);
|
|
5854
5883
|
}
|
|
5855
|
-
`],
|
|
5884
|
+
`],m_,f_,v_,Ai,tx,ex,rx,Nc,g_,Pr,Lr,zs,zi,Bc,Dc,b_,ao=class extends(v_=g,f_=[u({type:Boolean,attribute:"show-arrow"})],m_=[k()],v_){constructor(){super(...arguments);s(this,Pr);s(this,tx,o(Ai,8,this,!0)),o(Ai,11,this);s(this,ex,o(Ai,12,this,"top")),o(Ai,15,this);s(this,Lr,new U(this,{context:As,subscribe:!0}));s(this,zs,!1);s(this,zi,new te(this,{getAnchor:()=>e(this,Lr).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:KL,contentContainer:".PreviewCardContent",onPosition:({placement:t})=>{let r=t.split("-")[0];r!==e(this,Pr,Nc)&&h(this,Pr,r,g_)},renderPopup:t=>{let r=e(this,Lr).value?.popupId??"";return f`
|
|
5856
5885
|
<div
|
|
5857
5886
|
class="Popup"
|
|
5858
5887
|
id="${r}"
|
|
@@ -5864,9 +5893,9 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5864
5893
|
@mouseleave="${e(this,Dc)}"
|
|
5865
5894
|
>
|
|
5866
5895
|
<div class="PreviewCardContent"></div>
|
|
5867
|
-
${this.showArrow?
|
|
5896
|
+
${this.showArrow?hs(e(this,Pr,Nc)):""}
|
|
5868
5897
|
</div>
|
|
5869
|
-
`}}));s(this,Bc,()=>{e(this,Lr).value?.openPreviewCard()});s(this,Dc,()=>{e(this,Lr).value?.closePreviewCard()})}updated(){let t=e(this,Lr).value?.open??!1;t&&!e(this,
|
|
5898
|
+
`}}));s(this,Bc,()=>{e(this,Lr).value?.openPreviewCard()});s(this,Dc,()=>{e(this,Lr).value?.closePreviewCard()})}updated(){let t=e(this,Lr).value?.open??!1;t&&!e(this,zs)?(m(this,Pr,b_).call(this),e(this,zi).open()):!t&&e(this,zs)&&e(this,zi).close(),h(this,zs,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Ai=S(v_),tx=new WeakMap,ex=new WeakMap,Pr=new WeakSet,Lr=new WeakMap,zs=new WeakMap,zi=new WeakMap,Bc=new WeakMap,Dc=new WeakMap,b_=function(){let t=e(this,Lr).value?.side??"top";e(this,zi).placement=t,e(this,zi).offset=e(this,Lr).value?.sideOffset??8},l(Ai,4,"showArrow",f_,ao,tx),rx=l(Ai,20,"#side",m_,Pr,ex),Nc=rx.get,g_=rx.set,C(Ai,ao),b(ao,"tagName","dui-preview-card-popup"),b(ao,"styles",[y,jL]);var WL=c`
|
|
5870
5899
|
:host {
|
|
5871
5900
|
display: block;
|
|
5872
5901
|
}
|
|
@@ -5884,23 +5913,23 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5884
5913
|
width: var(--progress-value, 0%);
|
|
5885
5914
|
height: 100%;
|
|
5886
5915
|
}
|
|
5887
|
-
`,
|
|
5916
|
+
`,y_,x_,w_,k_,Mr,ox,ix,sx,Fr,C_,nx,ax,ur=class extends(k_=g,w_=[u({type:Number})],x_=[u({type:Number})],y_=[u({type:Number})],k_){constructor(){super(...arguments);s(this,Fr);s(this,ox,o(Mr,8,this,null)),o(Mr,11,this);s(this,ix,o(Mr,12,this,0)),o(Mr,15,this);s(this,sx,o(Mr,16,this,100)),o(Mr,19,this)}render(){let t=e(this,Fr,C_);return f`
|
|
5888
5917
|
<div
|
|
5889
5918
|
part="root"
|
|
5890
5919
|
role="progressbar"
|
|
5891
5920
|
aria-valuenow="${this.value??$}"
|
|
5892
5921
|
aria-valuemin="${this.min}"
|
|
5893
5922
|
aria-valuemax="${this.max}"
|
|
5894
|
-
?data-complete="${e(this,Fr,
|
|
5895
|
-
?data-progressing="${!e(this,Fr,
|
|
5896
|
-
?data-indeterminate="${e(this,Fr,
|
|
5923
|
+
?data-complete="${e(this,Fr,ax)}"
|
|
5924
|
+
?data-progressing="${!e(this,Fr,nx)&&!e(this,Fr,ax)}"
|
|
5925
|
+
?data-indeterminate="${e(this,Fr,nx)}"
|
|
5897
5926
|
style="--progress-value: ${t}%"
|
|
5898
5927
|
>
|
|
5899
5928
|
<div part="track">
|
|
5900
5929
|
<div part="indicator"></div>
|
|
5901
5930
|
</div>
|
|
5902
5931
|
</div>
|
|
5903
|
-
`}};Mr=S(
|
|
5932
|
+
`}};Mr=S(k_),ox=new WeakMap,ix=new WeakMap,sx=new WeakMap,Fr=new WeakSet,C_=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))},nx=function(){return this.value===null},ax=function(){return this.value!==null&&this.value>=this.max},l(Mr,4,"value",w_,ur,ox),l(Mr,4,"min",x_,ur,ix),l(Mr,4,"max",y_,ur,sx),C(Mr,ur),b(ur,"tagName","dui-progress"),b(ur,"styles",[y,WL]);var qc=Symbol("dui-radio-group");var GL=c`
|
|
5904
5933
|
:host {
|
|
5905
5934
|
display: inline-flex;
|
|
5906
5935
|
align-items: center;
|
|
@@ -5951,24 +5980,24 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5951
5980
|
width: 0;
|
|
5952
5981
|
height: 0;
|
|
5953
5982
|
}
|
|
5954
|
-
`,
|
|
5983
|
+
`,S_,E_,$_,T_,R_,He,lx,dx,cx,lo,px,we,__,hx,ux,I_,A_,ta,Os,Vc,Xe=class extends(R_=g,T_=[u()],$_=[u({type:Boolean,reflect:!0})],E_=[u({type:Boolean,reflect:!0,attribute:"read-only"})],S_=[et({context:ne,subscribe:!0}),k()],R_){constructor(){super(...arguments);s(this,we);s(this,lx,o(He,8,this,"")),o(He,11,this);s(this,dx,o(He,12,this,!1)),o(He,15,this);s(this,cx,o(He,16,this,!1)),o(He,19,this);s(this,lo,new U(this,{context:qc,subscribe:!0}));s(this,px,o(He,20,this)),o(He,23,this);s(this,ta,t=>{t.target.closest("[part='root']")||e(this,Os).call(this,t)});s(this,Os,t=>{if(e(this,we,hx)||e(this,we,ux))return;let r=e(this,lo).value;r&&(r.select(this.value),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched())});s(this,Vc,t=>{t.key===" "&&(t.preventDefault(),e(this,Os).call(this,t))})}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,ta))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,ta))}render(){let t=e(this,we,__),r=e(this,we,hx),n=e(this,we,ux),d=e(this,we,I_),p=e(this,we,A_),v=this._fieldCtx?.controlId??"";return f`
|
|
5955
5984
|
<span
|
|
5956
5985
|
part="root"
|
|
5957
5986
|
role="radio"
|
|
5958
5987
|
id="${v||$}"
|
|
5959
5988
|
aria-checked="${String(t)}"
|
|
5960
5989
|
aria-disabled="${r?"true":$}"
|
|
5961
|
-
aria-readonly="${
|
|
5990
|
+
aria-readonly="${n?"true":$}"
|
|
5962
5991
|
aria-required="${d?"true":$}"
|
|
5963
5992
|
aria-invalid="${p?"true":$}"
|
|
5964
5993
|
tabindex="${r?$:"0"}"
|
|
5965
5994
|
?data-checked="${t}"
|
|
5966
5995
|
?data-unchecked="${!t}"
|
|
5967
5996
|
?data-disabled="${r}"
|
|
5968
|
-
?data-readonly="${
|
|
5997
|
+
?data-readonly="${n}"
|
|
5969
5998
|
?data-required="${d}"
|
|
5970
5999
|
?data-invalid="${p}"
|
|
5971
|
-
@click="${e(this,
|
|
6000
|
+
@click="${e(this,Os)}"
|
|
5972
6001
|
@keydown="${e(this,Vc)}"
|
|
5973
6002
|
>
|
|
5974
6003
|
<span
|
|
@@ -5991,7 +6020,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
5991
6020
|
/>
|
|
5992
6021
|
</span>
|
|
5993
6022
|
<slot></slot>
|
|
5994
|
-
`}};He=S(
|
|
6023
|
+
`}};He=S(R_),lx=new WeakMap,dx=new WeakMap,cx=new WeakMap,lo=new WeakMap,px=new WeakMap,we=new WeakSet,__=function(){return e(this,lo).value?.value===this.value},hx=function(){return this.disabled||(e(this,lo).value?.disabled??!1)||(this._fieldCtx?.disabled??!1)},ux=function(){return this.readOnly||(e(this,lo).value?.readOnly??!1)},I_=function(){return e(this,lo).value?.required??!1},A_=function(){return this._fieldCtx?.invalid??!1},ta=new WeakMap,Os=new WeakMap,Vc=new WeakMap,l(He,4,"value",T_,Xe,lx),l(He,4,"disabled",$_,Xe,dx),l(He,4,"readOnly",E_,Xe,cx),l(He,4,"_fieldCtx",S_,Xe,px),C(He,Xe),b(Xe,"tagName","dui-radio"),b(Xe,"styles",[y,GL]);var D_=z("value-change",{bubbles:!0,composed:!0}),YL=c`
|
|
5995
6024
|
:host {
|
|
5996
6025
|
display: block;
|
|
5997
6026
|
}
|
|
@@ -6005,7 +6034,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6005
6034
|
[part="root"][data-disabled] {
|
|
6006
6035
|
opacity: 0.5;
|
|
6007
6036
|
}
|
|
6008
|
-
`,
|
|
6037
|
+
`,z_,O_,L_,P_,M_,F_,H_,N_,B_,St,mx,fx,vx,gx,bx,yx,xx,wx,q_,Cx,mr,jc,Kc,kx,Uc,pe=class extends(B_=g,N_=[u()],H_=[u()],F_=[u({attribute:"default-value"})],M_=[u({type:Boolean,reflect:!0})],P_=[u({type:Boolean,reflect:!0,attribute:"read-only"})],L_=[u({type:Boolean,reflect:!0})],O_=[k()],z_=[kt({context:qc}),k()],B_){constructor(){super(...arguments);s(this,mr);s(this,mx,o(St,8,this)),o(St,11,this);s(this,fx,o(St,12,this)),o(St,15,this);s(this,vx,o(St,16,this)),o(St,19,this);s(this,gx,o(St,20,this,!1)),o(St,23,this);s(this,bx,o(St,24,this,!1)),o(St,27,this);s(this,yx,o(St,28,this,!1)),o(St,31,this);s(this,xx,o(St,32,this)),o(St,35,this);s(this,jc,()=>this.value??e(this,mr,q_));s(this,Kc,t=>{this.disabled||this.readOnly||(this.value===void 0&&h(this,mr,t,Cx),this.dispatchEvent(D_({value:t})))});s(this,kx,o(St,36,this,m(this,mr,Uc).call(this))),o(St,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,mr,this.defaultValue,Cx),this._ctx=m(this,mr,Uc).call(this)}willUpdate(){this._ctx=m(this,mr,Uc).call(this)}render(){return f`
|
|
6009
6038
|
<div
|
|
6010
6039
|
part="root"
|
|
6011
6040
|
role="radiogroup"
|
|
@@ -6015,7 +6044,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6015
6044
|
>
|
|
6016
6045
|
<slot></slot>
|
|
6017
6046
|
</div>
|
|
6018
|
-
`}};St=S(
|
|
6047
|
+
`}};St=S(B_),mx=new WeakMap,fx=new WeakMap,vx=new WeakMap,gx=new WeakMap,bx=new WeakMap,yx=new WeakMap,xx=new WeakMap,mr=new WeakSet,jc=new WeakMap,Kc=new WeakMap,kx=new WeakMap,Uc=function(){return{name:this.name,value:e(this,jc).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:e(this,Kc)}},l(St,4,"name",N_,pe,mx),l(St,4,"value",H_,pe,fx),l(St,4,"defaultValue",F_,pe,vx),l(St,4,"disabled",M_,pe,gx),l(St,4,"readOnly",P_,pe,bx),l(St,4,"required",L_,pe,yx),wx=l(St,20,"#internalValue",O_,mr,xx),q_=wx.get,Cx=wx.set,l(St,4,"_ctx",z_,pe,kx),C(St,pe),b(pe,"tagName","dui-radio-group"),b(pe,"styles",[y,YL]);var XL=c`
|
|
6019
6048
|
:host {
|
|
6020
6049
|
display: block;
|
|
6021
6050
|
position: relative;
|
|
@@ -6111,7 +6140,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6111
6140
|
height: 100%;
|
|
6112
6141
|
min-width: 1.25rem;
|
|
6113
6142
|
}
|
|
6114
|
-
`,
|
|
6143
|
+
`,V_,U_,j_,K_,W_,G_,Y_,X_,Q_,J_,Z_,tI,eI,tt,Sx,Ex,$x,Tx,Rx,Wc,rI,L,_x,Ix,Gc,oI,Ax,zx,jx,Kx,Ox,Lx,Yc,Wx,Px,Mx,Gx,iI,Fx,Hx,Yx,sI,Nx,Bx,nI,aI,Dx,qx,lI,dI,Vx,Ux,Xx,cI,Xc,co,Ls,Ps,Oi,Li,Pi,Mi,Ho,pI,hI,Fi,ra,Qc,oa,ia,sa,na,aa,la,uI,mI,Hr=class Hr extends(eI=g,tI=[u({reflect:!0})],Z_=[u({type:Boolean,reflect:!0})],J_=[u({attribute:"max-height"})],Q_=[k()],X_=[k()],Y_=[k()],G_=[k()],W_=[k()],K_=[k()],j_=[k()],U_=[k()],V_=[k()],eI){constructor(){super(...arguments);s(this,L);s(this,Sx,o(tt,8,this,"vertical")),o(tt,11,this);s(this,Ex,o(tt,12,this,!1)),o(tt,15,this);s(this,$x,o(tt,16,this)),o(tt,19,this);s(this,Tx,o(tt,20,this,!1)),o(tt,23,this);s(this,_x,o(tt,24,this,!1)),o(tt,27,this);s(this,Ax,o(tt,28,this,!1)),o(tt,31,this);s(this,Ox,o(tt,32,this,!1)),o(tt,35,this);s(this,Px,o(tt,36,this,0)),o(tt,39,this);s(this,Fx,o(tt,40,this,0)),o(tt,43,this);s(this,Nx,o(tt,44,this,0)),o(tt,47,this);s(this,Dx,o(tt,48,this,0)),o(tt,51,this);s(this,Vx,o(tt,52,this,!0)),o(tt,55,this);s(this,co,!0);s(this,Ls,0);s(this,Ps);s(this,Oi);s(this,Li);s(this,Pi,0);s(this,Mi,0);s(this,Fi,()=>{let t=e(this,L,Ho);if(!t)return;let r=t.scrollHeight>t.clientHeight,n=t.scrollWidth>t.clientWidth;h(this,L,r,oI),h(this,L,n,rI),r&&h(this,L,t.clientHeight/t.scrollHeight*100,iI),n&&h(this,L,t.clientWidth/t.scrollWidth*100,sI),e(this,ra).call(this,t)});s(this,ra,t=>{if(e(this,L,Gc)){let r=t.scrollHeight-t.clientHeight;h(this,L,r>0?t.scrollTop/r*(100-e(this,L,Gx)):0,aI)}if(e(this,L,Wc)){let r=t.scrollWidth-t.clientWidth;h(this,L,r>0?t.scrollLeft/r*(100-e(this,L,Yx)):0,dI)}});s(this,Qc,()=>{let t=e(this,L,Ho);if(!t)return;h(this,L,!0,Wx),e(this,ra).call(this,t);let r=e(this,co),n=t.scrollTop<e(this,Ls);h(this,L,t.scrollTop<=0,cI),h(this,co,t.scrollTop+t.clientHeight>=t.scrollHeight-e(Hr,Xc)),n&&r&&!e(this,co)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!r&&e(this,co)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),h(this,Ls,t.scrollTop),clearTimeout(e(this,Ps)),h(this,Ps,setTimeout(()=>{h(this,L,!1,Wx)},1e3))});s(this,oa,()=>{h(this,L,!0,Kx),e(this,Fi).call(this)});s(this,ia,()=>{h(this,L,!1,Kx)});s(this,sa,(t,r)=>{r.preventDefault(),r.stopPropagation();let n=e(this,L,Ho);if(n)if(t==="vertical"){let d=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!d)return;let p=d.getBoundingClientRect(),v=(r.clientY-p.top)/p.height;n.scrollTop=v*(n.scrollHeight-n.clientHeight)}else{let d=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!d)return;let p=d.getBoundingClientRect(),v=(r.clientX-p.left)/p.width;n.scrollLeft=v*(n.scrollWidth-n.clientWidth)}});s(this,na,(t,r)=>{r.preventDefault(),r.stopPropagation();let n=e(this,L,Ho);n&&(h(this,Li,t),t==="vertical"?(h(this,Pi,r.clientY),h(this,Mi,n.scrollTop)):(h(this,Pi,r.clientX),h(this,Mi,n.scrollLeft)),document.addEventListener("pointermove",e(this,aa)),document.addEventListener("pointerup",e(this,la)))});s(this,aa,t=>{let r=e(this,L,Ho);if(!(!r||!e(this,Li)))if(e(this,Li)==="vertical"){let n=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!n)return;let d=t.clientY-e(this,Pi),p=n.clientHeight,v=r.scrollHeight-r.clientHeight;r.scrollTop=e(this,Mi)+d/p*v}else{let n=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!n)return;let d=t.clientX-e(this,Pi),p=n.clientWidth,v=r.scrollWidth-r.clientWidth;r.scrollLeft=e(this,Mi)+d/p*v}});s(this,la,()=>{h(this,Li,void 0),document.removeEventListener("pointermove",e(this,aa)),document.removeEventListener("pointerup",e(this,la))})}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",e(this,oa)),this.addEventListener("pointerleave",e(this,ia))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",e(this,oa)),this.removeEventListener("pointerleave",e(this,ia)),e(this,Oi)?.disconnect(),clearTimeout(e(this,Ps))}firstUpdated(){let t=e(this,L,Ho);if(!t)return;h(this,Oi,new ResizeObserver(()=>e(this,Fi).call(this))),e(this,Oi).observe(t);let r=t.querySelector("slot");if(r){let n=()=>{for(let d of r.assignedElements())e(this,Oi).observe(d)};r.addEventListener("slotchange",()=>{n(),requestAnimationFrame(()=>e(this,Fi).call(this))}),n()}e(this,Fi).call(this)}async scrollToBottom(){await this.updateComplete;let t=e(this,L,Ho);t&&(t.scrollTop=t.scrollHeight,h(this,co,!0),h(this,Ls,t.scrollTop))}get isAtTop(){return e(this,L,Xx)}get isAtBottom(){return e(this,co)}render(){return f`
|
|
6115
6144
|
<div
|
|
6116
6145
|
class="ScrollArea"
|
|
6117
6146
|
part="root"
|
|
@@ -6121,52 +6150,52 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6121
6150
|
>
|
|
6122
6151
|
${this.fade?f`<div
|
|
6123
6152
|
class="ScrollFade"
|
|
6124
|
-
?data-scrolled="${!e(this,L,
|
|
6153
|
+
?data-scrolled="${!e(this,L,Xx)}"
|
|
6125
6154
|
></div>`:$}
|
|
6126
6155
|
<div class="Viewport" part="viewport" @scroll="${e(this,Qc)}">
|
|
6127
6156
|
<slot></slot>
|
|
6128
6157
|
</div>
|
|
6129
|
-
${m(this,L,
|
|
6158
|
+
${m(this,L,uI).call(this)} ${m(this,L,mI).call(this)}
|
|
6130
6159
|
</div>
|
|
6131
|
-
`}};tt=S(
|
|
6160
|
+
`}};tt=S(eI),Sx=new WeakMap,Ex=new WeakMap,$x=new WeakMap,Tx=new WeakMap,L=new WeakSet,_x=new WeakMap,Ax=new WeakMap,Ox=new WeakMap,Px=new WeakMap,Fx=new WeakMap,Nx=new WeakMap,Dx=new WeakMap,Vx=new WeakMap,Xc=new WeakMap,co=new WeakMap,Ls=new WeakMap,Ps=new WeakMap,Oi=new WeakMap,Li=new WeakMap,Pi=new WeakMap,Mi=new WeakMap,Ho=function(){return this.shadowRoot?.querySelector(".Viewport")??null},pI=function(){return this.orientation==="vertical"||this.orientation==="both"},hI=function(){return this.orientation==="horizontal"||this.orientation==="both"},Fi=new WeakMap,ra=new WeakMap,Qc=new WeakMap,oa=new WeakMap,ia=new WeakMap,sa=new WeakMap,na=new WeakMap,aa=new WeakMap,la=new WeakMap,uI=function(){return!e(this,L,pI)||!e(this,L,Gc)?$:f`
|
|
6132
6161
|
<div
|
|
6133
6162
|
class="Scrollbar"
|
|
6134
6163
|
part="scrollbar-vertical"
|
|
6135
6164
|
data-orientation="vertical"
|
|
6136
|
-
?data-hovering="${e(this,L,
|
|
6165
|
+
?data-hovering="${e(this,L,jx)}"
|
|
6137
6166
|
?data-scrolling="${e(this,L,Yc)}"
|
|
6138
|
-
@pointerdown="${t=>e(this,
|
|
6167
|
+
@pointerdown="${t=>e(this,sa).call(this,"vertical",t)}"
|
|
6139
6168
|
>
|
|
6140
6169
|
<div
|
|
6141
6170
|
class="Thumb"
|
|
6142
6171
|
part="thumb-vertical"
|
|
6143
6172
|
data-orientation="vertical"
|
|
6144
|
-
style="height: ${e(this,L,
|
|
6145
|
-
@pointerdown="${t=>e(this,
|
|
6173
|
+
style="height: ${e(this,L,Gx)}%; top: ${e(this,L,nI)}%; position: absolute;"
|
|
6174
|
+
@pointerdown="${t=>e(this,na).call(this,"vertical",t)}"
|
|
6146
6175
|
></div>
|
|
6147
6176
|
</div>
|
|
6148
|
-
`},
|
|
6177
|
+
`},mI=function(){return!e(this,L,hI)||!e(this,L,Wc)?$:f`
|
|
6149
6178
|
<div
|
|
6150
6179
|
class="Scrollbar"
|
|
6151
6180
|
part="scrollbar-horizontal"
|
|
6152
6181
|
data-orientation="horizontal"
|
|
6153
|
-
?data-hovering="${e(this,L,
|
|
6182
|
+
?data-hovering="${e(this,L,jx)}"
|
|
6154
6183
|
?data-scrolling="${e(this,L,Yc)}"
|
|
6155
|
-
@pointerdown="${t=>e(this,
|
|
6184
|
+
@pointerdown="${t=>e(this,sa).call(this,"horizontal",t)}"
|
|
6156
6185
|
>
|
|
6157
6186
|
<div
|
|
6158
6187
|
class="Thumb"
|
|
6159
6188
|
part="thumb-horizontal"
|
|
6160
6189
|
data-orientation="horizontal"
|
|
6161
|
-
style="width: ${e(this,L,
|
|
6162
|
-
@pointerdown="${t=>e(this,
|
|
6190
|
+
style="width: ${e(this,L,Yx)}%; left: ${e(this,L,lI)}%; position: absolute;"
|
|
6191
|
+
@pointerdown="${t=>e(this,na).call(this,"horizontal",t)}"
|
|
6163
6192
|
></div>
|
|
6164
6193
|
</div>
|
|
6165
|
-
`},l(tt,4,"orientation",
|
|
6194
|
+
`},l(tt,4,"orientation",tI,Hr,Sx),l(tt,4,"fade",Z_,Hr,Ex),l(tt,4,"maxHeight",J_,Hr,$x),Rx=l(tt,20,"#hasOverflowX",Q_,L,Tx),Wc=Rx.get,rI=Rx.set,Ix=l(tt,20,"#hasOverflowY",X_,L,_x),Gc=Ix.get,oI=Ix.set,zx=l(tt,20,"#hovering",Y_,L,Ax),jx=zx.get,Kx=zx.set,Lx=l(tt,20,"#scrolling",G_,L,Ox),Yc=Lx.get,Wx=Lx.set,Mx=l(tt,20,"#thumbHeightPercent",W_,L,Px),Gx=Mx.get,iI=Mx.set,Hx=l(tt,20,"#thumbWidthPercent",K_,L,Fx),Yx=Hx.get,sI=Hx.set,Bx=l(tt,20,"#thumbTopPercent",j_,L,Nx),nI=Bx.get,aI=Bx.set,qx=l(tt,20,"#thumbLeftPercent",U_,L,Dx),lI=qx.get,dI=qx.set,Ux=l(tt,20,"#isAtTop",V_,L,Vx),Xx=Ux.get,cI=Ux.set,C(tt,Hr),b(Hr,"tagName","dui-scroll-area"),b(Hr,"styles",[y,XL]),s(Hr,Xc,1);var ea=Hr;var QL=z("value-change",{bubbles:!0,composed:!0}),JL=c`
|
|
6166
6195
|
:host {
|
|
6167
6196
|
display: block;
|
|
6168
6197
|
}
|
|
6169
|
-
`,
|
|
6198
|
+
`,ZL=c`
|
|
6170
6199
|
.Trigger {
|
|
6171
6200
|
display: flex;
|
|
6172
6201
|
align-items: center;
|
|
@@ -6191,7 +6220,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6191
6220
|
.Icon {
|
|
6192
6221
|
flex-shrink: 0;
|
|
6193
6222
|
}
|
|
6194
|
-
`,
|
|
6223
|
+
`,tP=[c`
|
|
6195
6224
|
.Popup {
|
|
6196
6225
|
max-height: 240px;
|
|
6197
6226
|
overflow-y: auto;
|
|
@@ -6230,7 +6259,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6230
6259
|
overflow: hidden;
|
|
6231
6260
|
text-overflow: ellipsis;
|
|
6232
6261
|
}
|
|
6233
|
-
`],
|
|
6262
|
+
`],fI,vI,gI,bI,yI,xI,wI,kI,Mt,Qx,Jx,Zx,t0,e0,r0,o0,i0,Hi,No,K,Jc,Ni,Nt,da,s0,n0,CI,SI,Zc,tp,ep,rp,op,a0,ca,l0,ip,ke=class extends(kI=g,wI=[u({attribute:!1})],xI=[u({type:String})],yI=[u({type:String})],bI=[u({type:Boolean,reflect:!0})],gI=[u({type:String})],vI=[et({context:ne,subscribe:!0}),k()],fI=[k()],kI){constructor(){super(...arguments);s(this,K);s(this,Qx,o(Mt,8,this,[])),o(Mt,11,this);s(this,Jx,o(Mt,12,this,"")),o(Mt,15,this);s(this,Zx,o(Mt,16,this,"Select...")),o(Mt,19,this);s(this,t0,o(Mt,20,this,!1)),o(Mt,23,this);s(this,e0,o(Mt,24,this,"")),o(Mt,27,this);s(this,r0,o(Mt,28,this)),o(Mt,31,this);s(this,o0,o(Mt,32,this,-1)),o(Mt,35,this);s(this,Jc,`select-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,Ni,`select-listbox-${crypto.randomUUID().slice(0,8)}`);s(this,Nt,new te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:tP,onOpen:()=>{h(this,K,e(this,K,CI),No)},onClose:()=>{h(this,K,-1,No),this._fieldCtx?.markTouched()},renderPopup:t=>f`
|
|
6234
6263
|
<div
|
|
6235
6264
|
class="Popup"
|
|
6236
6265
|
?data-starting-style="${t.isStarting}"
|
|
@@ -6238,46 +6267,46 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6238
6267
|
>
|
|
6239
6268
|
<div
|
|
6240
6269
|
class="Listbox"
|
|
6241
|
-
id="${e(this,
|
|
6270
|
+
id="${e(this,Ni)}"
|
|
6242
6271
|
role="listbox"
|
|
6243
6272
|
aria-labelledby="${this._fieldCtx?.labelId??""}"
|
|
6244
6273
|
@mousedown="${e(this,ep)}"
|
|
6245
6274
|
>
|
|
6246
|
-
${
|
|
6275
|
+
${$o(this.options,r=>r.value,e(this,ip))}
|
|
6247
6276
|
</div>
|
|
6248
6277
|
</div>
|
|
6249
|
-
`}));s(this,Zc,t=>{t.stopPropagation(),!e(this,K,
|
|
6278
|
+
`}));s(this,Zc,t=>{t.stopPropagation(),!e(this,K,da)&&(e(this,Nt).isOpen?e(this,Nt).close():e(this,Nt).open())});s(this,tp,t=>{if(!e(this,K,da))switch(t.key){case"Enter":case" ":{if(t.preventDefault(),e(this,Nt).isOpen){let r=this.options[e(this,K,Hi)];r&&!r.disabled&&m(this,K,a0).call(this,r)}else e(this,Nt).open();break}case"ArrowDown":{t.preventDefault(),e(this,Nt).isOpen?h(this,K,m(this,K,ca).call(this,e(this,K,Hi),1),No):e(this,Nt).open();break}case"ArrowUp":{t.preventDefault(),e(this,Nt).isOpen?h(this,K,m(this,K,ca).call(this,e(this,K,Hi),-1),No):e(this,Nt).open();break}case"Home":{e(this,Nt).isOpen&&(t.preventDefault(),h(this,K,m(this,K,ca).call(this,-1,1),No));break}case"End":{e(this,Nt).isOpen&&(t.preventDefault(),h(this,K,m(this,K,ca).call(this,this.options.length,-1),No));break}case"Escape":{e(this,Nt).isOpen&&(t.preventDefault(),e(this,Nt).close(),m(this,K,l0).call(this));break}case"Tab":{e(this,Nt).isOpen&&e(this,Nt).close();break}}});s(this,ep,t=>{t.preventDefault()});s(this,rp,t=>{t.disabled||m(this,K,a0).call(this,t)});s(this,op,t=>{this.options[t]?.disabled||h(this,K,t,No)});s(this,ip,(t,r)=>{let n=t.value===this.value,d=r===e(this,K,Hi);return f`
|
|
6250
6279
|
<div
|
|
6251
6280
|
class="Item"
|
|
6252
6281
|
role="option"
|
|
6253
|
-
id="${e(this,
|
|
6254
|
-
aria-selected="${
|
|
6255
|
-
?data-selected="${
|
|
6282
|
+
id="${e(this,Ni)}-option-${r}"
|
|
6283
|
+
aria-selected="${n}"
|
|
6284
|
+
?data-selected="${n}"
|
|
6256
6285
|
?data-highlighted="${d}"
|
|
6257
6286
|
?data-disabled="${t.disabled}"
|
|
6258
6287
|
@click="${()=>e(this,rp).call(this,t)}"
|
|
6259
6288
|
@mouseenter="${()=>e(this,op).call(this,r)}"
|
|
6260
6289
|
>
|
|
6261
6290
|
<span class="ItemIndicator">
|
|
6262
|
-
${
|
|
6291
|
+
${n?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>`:$}
|
|
6263
6292
|
</span>
|
|
6264
6293
|
<span class="ItemText">${t.label}</span>
|
|
6265
6294
|
</div>
|
|
6266
|
-
`})}render(){let t=this.value!==""&&e(this,K,
|
|
6295
|
+
`})}render(){let t=this.value!==""&&e(this,K,n0)!=null;return f`
|
|
6267
6296
|
<div
|
|
6268
6297
|
class="Trigger"
|
|
6269
6298
|
part="trigger"
|
|
6270
6299
|
id="${e(this,Jc)}"
|
|
6271
6300
|
role="combobox"
|
|
6272
|
-
tabindex="${e(this,K,
|
|
6301
|
+
tabindex="${e(this,K,da)?-1:0}"
|
|
6273
6302
|
aria-haspopup="listbox"
|
|
6274
6303
|
aria-expanded="${e(this,Nt).isOpen}"
|
|
6275
|
-
aria-controls="${e(this,
|
|
6276
|
-
aria-activedescendant="${e(this,K,
|
|
6304
|
+
aria-controls="${e(this,Ni)}"
|
|
6305
|
+
aria-activedescendant="${e(this,K,Hi)>=0?`${e(this,Ni)}-option-${e(this,K,Hi)}`:$}"
|
|
6277
6306
|
aria-labelledby="${this._fieldCtx?.labelId??""}"
|
|
6278
|
-
aria-invalid="${e(this,K,
|
|
6279
|
-
?data-disabled="${e(this,K,
|
|
6280
|
-
?data-invalid="${e(this,K,
|
|
6307
|
+
aria-invalid="${e(this,K,s0)}"
|
|
6308
|
+
?data-disabled="${e(this,K,da)}"
|
|
6309
|
+
?data-invalid="${e(this,K,s0)}"
|
|
6281
6310
|
?data-open="${e(this,Nt).isOpen}"
|
|
6282
6311
|
@click="${e(this,Zc)}"
|
|
6283
6312
|
@keydown="${e(this,tp)}"
|
|
@@ -6289,7 +6318,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6289
6318
|
part="value"
|
|
6290
6319
|
?data-placeholder="${!t}"
|
|
6291
6320
|
>
|
|
6292
|
-
${t?e(this,K,
|
|
6321
|
+
${t?e(this,K,SI):this.placeholder}
|
|
6293
6322
|
</span>
|
|
6294
6323
|
<span class="Icon">
|
|
6295
6324
|
<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>
|
|
@@ -6297,7 +6326,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6297
6326
|
</div>
|
|
6298
6327
|
|
|
6299
6328
|
${this.name?f`<input type="hidden" name="${this.name}" .value="${this.value}" />`:$}
|
|
6300
|
-
`}};Mt=S(
|
|
6329
|
+
`}};Mt=S(kI),Qx=new WeakMap,Jx=new WeakMap,Zx=new WeakMap,t0=new WeakMap,e0=new WeakMap,r0=new WeakMap,o0=new WeakMap,K=new WeakSet,Jc=new WeakMap,Ni=new WeakMap,Nt=new WeakMap,da=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},s0=function(){return this._fieldCtx?.invalid??!1},n0=function(){return this.options.find(t=>t.value===this.value)},CI=function(){return this.options.findIndex(t=>t.value===this.value)},SI=function(){return e(this,K,n0)?.label??""},Zc=new WeakMap,tp=new WeakMap,ep=new WeakMap,rp=new WeakMap,op=new WeakMap,a0=function(t){this.value=t.value,this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(this.value.length>0),this.dispatchEvent(QL({value:t.value,option:t})),e(this,Nt).close(),m(this,K,l0).call(this)},ca=function(t,r){let n=this.options.length,d=t+r;for(;d>=0&&d<n;){if(!this.options[d].disabled)return d;d+=r}return t},l0=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},ip=new WeakMap,l(Mt,4,"options",wI,ke,Qx),l(Mt,4,"value",xI,ke,Jx),l(Mt,4,"placeholder",yI,ke,Zx),l(Mt,4,"disabled",bI,ke,t0),l(Mt,4,"name",gI,ke,e0),l(Mt,4,"_fieldCtx",vI,ke,r0),i0=l(Mt,20,"#highlightedIndex",fI,K,o0),Hi=i0.get,No=i0.set,C(Mt,ke),b(ke,"tagName","dui-select"),b(ke,"styles",[y,JL,ZL]);var eP=c`
|
|
6301
6330
|
:host {
|
|
6302
6331
|
display: block;
|
|
6303
6332
|
}
|
|
@@ -6312,17 +6341,17 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6312
6341
|
margin: 0;
|
|
6313
6342
|
padding: 0;
|
|
6314
6343
|
}
|
|
6315
|
-
`,
|
|
6344
|
+
`,EI,$I,sp,d0,po=class extends($I=g,EI=[u({reflect:!0})],$I){constructor(){super(...arguments);s(this,d0,o(sp,8,this,"horizontal")),o(sp,11,this)}render(){return f`
|
|
6316
6345
|
<div
|
|
6317
6346
|
part="root"
|
|
6318
6347
|
role="separator"
|
|
6319
6348
|
aria-orientation="${this.orientation}"
|
|
6320
6349
|
></div>
|
|
6321
|
-
`}};sp=S(
|
|
6350
|
+
`}};sp=S($I),d0=new WeakMap,l(sp,4,"orientation",EI,po,d0),C(sp,po),b(po,"tagName","dui-separator"),b(po,"styles",[y,eP]);var v0=z("dui-action",{bubbles:!0,composed:!0}),rP=c`
|
|
6322
6351
|
:host {
|
|
6323
6352
|
display: inline-block;
|
|
6324
6353
|
}
|
|
6325
|
-
`,
|
|
6354
|
+
`,oP=c`
|
|
6326
6355
|
.Root {
|
|
6327
6356
|
display: inline-flex;
|
|
6328
6357
|
align-items: stretch;
|
|
@@ -6362,7 +6391,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6362
6391
|
justify-content: center;
|
|
6363
6392
|
flex-shrink: 0;
|
|
6364
6393
|
}
|
|
6365
|
-
`,
|
|
6394
|
+
`,iP=[c`
|
|
6366
6395
|
.Popup {
|
|
6367
6396
|
max-height: 240px;
|
|
6368
6397
|
overflow-y: auto;
|
|
@@ -6377,7 +6406,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6377
6406
|
.Popup[data-ending-style] {
|
|
6378
6407
|
opacity: 0;
|
|
6379
6408
|
}
|
|
6380
|
-
`],
|
|
6409
|
+
`],TI,RI,_I,II,AI,zI,re,c0,p0,h0,u0,m0,f0,Bi,Bo,Ft,pa,$t,g0,np,ap,lp,dp,cp,pp,OI,Qe=class extends(zI=g,AI=[u({reflect:!0})],II=[u({reflect:!0})],_I=[u({reflect:!0})],RI=[u({type:Boolean,reflect:!0})],TI=[k()],zI){constructor(){super(...arguments);s(this,Ft);s(this,c0,o(re,8,this,"")),o(re,11,this);s(this,p0,o(re,12,this,"")),o(re,15,this);s(this,h0,o(re,16,this,"")),o(re,19,this);s(this,u0,o(re,20,this,!1)),o(re,23,this);s(this,m0,o(re,24,this,-1)),o(re,27,this);s(this,pa,`split-menu-${crypto.randomUUID().slice(0,8)}`);s(this,$t,new te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:iP,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,Ft,-1,Bo)},onClose:()=>{h(this,Ft,-1,Bo)},renderPopup:t=>f`
|
|
6381
6410
|
<div
|
|
6382
6411
|
class="Popup"
|
|
6383
6412
|
?data-starting-style="${t.isStarting}"
|
|
@@ -6385,13 +6414,13 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6385
6414
|
>
|
|
6386
6415
|
<div
|
|
6387
6416
|
class="Menu"
|
|
6388
|
-
id="${e(this,
|
|
6417
|
+
id="${e(this,pa)}"
|
|
6389
6418
|
role="menu"
|
|
6390
6419
|
@click="${e(this,cp)}"
|
|
6391
6420
|
@mousemove="${e(this,pp)}"
|
|
6392
6421
|
></div>
|
|
6393
6422
|
</div>
|
|
6394
|
-
`}));s(this,np,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(
|
|
6423
|
+
`}));s(this,np,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(v0({}))});s(this,ap,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(v0({})))});s(this,lp,t=>{t.stopPropagation(),!this.disabled&&(e(this,$t).isOpen?e(this,$t).close():e(this,$t).open())});s(this,dp,t=>{if(this.disabled)return;let r=e(this,Ft,g0);switch(t.key){case"Enter":case" ":{if(e(this,$t).isOpen&&e(this,Ft,Bi)>=0){t.preventDefault();let n=r[e(this,Ft,Bi)];n&&!n.disabled&&(n.click(),e(this,$t).close())}else e(this,$t).isOpen||(t.preventDefault(),e(this,$t).open());break}case"ArrowDown":{if(t.preventDefault(),!e(this,$t).isOpen)e(this,$t).open();else{let n=e(this,Ft,Bi)+1;for(;n<r.length&&r[n]?.disabled;)n++;n<r.length&&h(this,Ft,n,Bo)}break}case"ArrowUp":{if(t.preventDefault(),!e(this,$t).isOpen)e(this,$t).open();else{let n=e(this,Ft,Bi)-1;for(;n>=0&&r[n]?.disabled;)n--;n>=0&&h(this,Ft,n,Bo)}break}case"Home":{if(e(this,$t).isOpen){t.preventDefault();let n=r.findIndex(d=>!d.disabled);n>=0&&h(this,Ft,n,Bo)}break}case"End":{if(e(this,$t).isOpen){t.preventDefault();for(let n=r.length-1;n>=0;n--)if(!r[n]?.disabled){h(this,Ft,n,Bo);break}}break}case"Escape":{e(this,$t).isOpen&&(t.preventDefault(),e(this,$t).close(),m(this,Ft,OI).call(this));break}case"Tab":{e(this,$t).isOpen&&e(this,$t).close();break}}});s(this,cp,t=>{let r=t.composedPath().find(n=>n instanceof HTMLElement&&n.matches(Pe.tagName));r&&!r.disabled&&e(this,$t).close()});s(this,pp,()=>{e(this,Ft,Bi)>=0&&h(this,Ft,-1,Bo)})}updated(){let t=e(this,Ft,g0);for(let r=0;r<t.length;r++)r===e(this,Ft,Bi)?t[r].setAttribute("data-highlighted",""):t[r].removeAttribute("data-highlighted")}render(){return f`
|
|
6395
6424
|
<div class="Root" part="root">
|
|
6396
6425
|
<button
|
|
6397
6426
|
class="Action"
|
|
@@ -6413,7 +6442,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6413
6442
|
?disabled="${this.disabled}"
|
|
6414
6443
|
aria-haspopup="menu"
|
|
6415
6444
|
aria-expanded="${e(this,$t).isOpen}"
|
|
6416
|
-
aria-controls="${e(this,
|
|
6445
|
+
aria-controls="${e(this,pa)}"
|
|
6417
6446
|
?data-open="${e(this,$t).isOpen||$}"
|
|
6418
6447
|
@click="${e(this,lp)}"
|
|
6419
6448
|
@keydown="${e(this,dp)}"
|
|
@@ -6427,13 +6456,13 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6427
6456
|
</slot>
|
|
6428
6457
|
</button>
|
|
6429
6458
|
</div>
|
|
6430
|
-
`}};re=S(
|
|
6459
|
+
`}};re=S(zI),c0=new WeakMap,p0=new WeakMap,h0=new WeakMap,u0=new WeakMap,m0=new WeakMap,Ft=new WeakSet,pa=new WeakMap,$t=new WeakMap,g0=function(){return[...(e(this,$t).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},np=new WeakMap,ap=new WeakMap,lp=new WeakMap,dp=new WeakMap,cp=new WeakMap,pp=new WeakMap,OI=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},l(re,4,"variant",AI,Qe,c0),l(re,4,"appearance",II,Qe,p0),l(re,4,"size",_I,Qe,h0),l(re,4,"disabled",RI,Qe,u0),f0=l(re,20,"#highlightedIndex",TI,Ft,m0),Bi=f0.get,Bo=f0.set,C(re,Qe),b(Qe,"tagName","dui-split-button"),b(Qe,"styles",[y,rP,oP]);var Nr=Symbol("dui-sidebar");var UI=z("open-change",{bubbles:!0,composed:!0}),sP=c`
|
|
6431
6460
|
:host {
|
|
6432
6461
|
display: flex;
|
|
6433
6462
|
width: 100%;
|
|
6434
6463
|
height: 100%;
|
|
6435
6464
|
}
|
|
6436
|
-
`,
|
|
6465
|
+
`,LI,PI,MI,FI,HI,NI,BI,DI,qI,VI,wt,b0,y0,x0,w0,k0,C0,S0,jI,I0,ut,E0,$0,A0,hp,T0,R0,ha,z0,Do,Di,qi,up,ua,ma,fp,vp,_0,mp,Ce=class extends(VI=g,qI=[u({type:Boolean})],DI=[u({type:Boolean,attribute:"default-open"})],BI=[u({reflect:!0})],NI=[u({reflect:!0})],HI=[u({reflect:!0})],FI=[k()],MI=[k()],PI=[k()],LI=[kt({context:Nr}),k()],VI){constructor(){super(...arguments);s(this,ut);s(this,b0,o(wt,8,this)),o(wt,11,this);s(this,y0,o(wt,12,this,!0)),o(wt,15,this);s(this,x0,o(wt,16,this,"left")),o(wt,19,this);s(this,w0,o(wt,20,this,"")),o(wt,23,this);s(this,k0,o(wt,24,this,"offcanvas")),o(wt,27,this);s(this,C0,o(wt,28,this,!0)),o(wt,31,this);s(this,E0,o(wt,32,this,!1)),o(wt,35,this);s(this,T0,o(wt,36,this,!1)),o(wt,39,this);s(this,Do);s(this,Di);s(this,qi);s(this,ua,t=>{e(this,ut,ha)?h(this,ut,t,hp):(this.open===void 0&&h(this,ut,t,I0),this.dispatchEvent(UI({open:t})))});s(this,ma,()=>{e(this,ut,ha)?h(this,ut,!e(this,ut,A0),hp):e(this,ua).call(this,!e(this,ut,up))});s(this,fp,t=>{h(this,ut,!t.matches,z0),e(this,ut,ha)||h(this,ut,!1,hp)});s(this,vp,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e(this,ma).call(this))});s(this,_0,o(wt,40,this,m(this,ut,mp).call(this))),o(wt,43,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&h(this,ut,this.defaultOpen,I0),h(this,Do,matchMedia("(min-width: 768px)")),h(this,ut,!e(this,Do).matches,z0),h(this,Di,e(this,fp).bind(this)),e(this,Do).addEventListener("change",e(this,Di)),h(this,qi,e(this,vp).bind(this)),document.addEventListener("keydown",e(this,qi)),this._ctx=m(this,ut,mp).call(this)}disconnectedCallback(){super.disconnectedCallback(),e(this,Do)&&e(this,Di)&&e(this,Do).removeEventListener("change",e(this,Di)),e(this,qi)&&document.removeEventListener("keydown",e(this,qi))}willUpdate(){this._ctx=m(this,ut,mp).call(this)}render(){return f`<slot></slot>`}};wt=S(VI),b0=new WeakMap,y0=new WeakMap,x0=new WeakMap,w0=new WeakMap,k0=new WeakMap,C0=new WeakMap,ut=new WeakSet,E0=new WeakMap,T0=new WeakMap,Do=new WeakMap,Di=new WeakMap,qi=new WeakMap,up=function(){return this.open??e(this,ut,jI)},ua=new WeakMap,ma=new WeakMap,fp=new WeakMap,vp=new WeakMap,_0=new WeakMap,mp=function(){return{state:e(this,ut,up)?"expanded":"collapsed",open:e(this,ut,up),openMobile:e(this,ut,A0),isMobile:e(this,ut,ha),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:e(this,ua),toggleSidebar:e(this,ma)}},l(wt,4,"open",qI,Ce,b0),l(wt,4,"defaultOpen",DI,Ce,y0),l(wt,4,"side",BI,Ce,x0),l(wt,4,"variant",NI,Ce,w0),l(wt,4,"collapsible",HI,Ce,k0),S0=l(wt,20,"#internalOpen",FI,ut,C0),jI=S0.get,I0=S0.set,$0=l(wt,20,"#openMobile",MI,ut,E0),A0=$0.get,hp=$0.set,R0=l(wt,20,"#isMobile",PI,ut,T0),ha=R0.get,z0=R0.set,l(wt,4,"_ctx",LI,Ce,_0),C(wt,Ce),b(Ce,"tagName","dui-sidebar-provider"),b(Ce,"styles",[y,sP]);var nP=c`
|
|
6437
6466
|
:host {
|
|
6438
6467
|
display: block;
|
|
6439
6468
|
flex-shrink: 0;
|
|
@@ -6519,11 +6548,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6519
6548
|
.MobilePanel[data-ending-style] {
|
|
6520
6549
|
transform: translateX(var(--mobile-end-x));
|
|
6521
6550
|
}
|
|
6522
|
-
`,
|
|
6551
|
+
`,KI,WI,GI,YI,Br,O0,L0,gp,N0,ft,P0,M0,B0,D0,F0,H0,bp,q0,Vi,XI,QI,V0,yp,xp,qo=class extends(YI=g,GI=[k()],WI=[k()],KI=[k()],YI){constructor(){super(...arguments);s(this,ft);s(this,O0,o(Br,8,this,!1)),o(Br,11,this);s(this,P0,o(Br,12,this,!1)),o(Br,15,this);s(this,F0,o(Br,16,this,!1)),o(Br,19,this);s(this,Vi,new U(this,{context:Nr,subscribe:!0}));s(this,yp,()=>{e(this,Vi).value?.setOpen(!1)});s(this,xp,t=>{t.key==="Escape"&&(t.preventDefault(),e(this,Vi).value?.setOpen(!1))})}willUpdate(){let t=e(this,Vi).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&&!e(this,ft,gp)?m(this,ft,XI).call(this):!t.openMobile&&e(this,ft,gp)&&!e(this,ft,bp)&&m(this,ft,QI).call(this)))}render(){let t=e(this,Vi).value;if(!t)return f``;let n=t.side==="left"?"-100%":"100%";return t.isMobile?e(this,ft,gp)?f`
|
|
6523
6552
|
<div
|
|
6524
6553
|
class="Backdrop"
|
|
6525
6554
|
part="backdrop"
|
|
6526
|
-
?data-starting-style=${e(this,ft,
|
|
6555
|
+
?data-starting-style=${e(this,ft,B0)}
|
|
6527
6556
|
?data-ending-style=${e(this,ft,bp)}
|
|
6528
6557
|
@click=${e(this,yp)}
|
|
6529
6558
|
></div>
|
|
@@ -6532,8 +6561,8 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6532
6561
|
part="mobile-panel"
|
|
6533
6562
|
role="dialog"
|
|
6534
6563
|
tabindex="-1"
|
|
6535
|
-
style="--mobile-start-x: ${
|
|
6536
|
-
?data-starting-style=${e(this,ft,
|
|
6564
|
+
style="--mobile-start-x: ${n}; --mobile-end-x: ${n}"
|
|
6565
|
+
?data-starting-style=${e(this,ft,B0)}
|
|
6537
6566
|
?data-ending-style=${e(this,ft,bp)}
|
|
6538
6567
|
@keydown=${e(this,xp)}
|
|
6539
6568
|
>
|
|
@@ -6551,11 +6580,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6551
6580
|
<slot></slot>
|
|
6552
6581
|
</div>
|
|
6553
6582
|
</div>
|
|
6554
|
-
`}};Br=S(
|
|
6583
|
+
`}};Br=S(YI),O0=new WeakMap,ft=new WeakSet,P0=new WeakMap,F0=new WeakMap,Vi=new WeakMap,XI=async function(){h(this,ft,!0,N0),h(this,ft,!0,D0),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,ft,!1,D0)},QI=function(){h(this,ft,!0,q0);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){m(this,ft,V0).call(this);return}let r=!1,n=()=>{r||(r=!0,t.removeEventListener("transitionend",d),clearTimeout(p),m(this,ft,V0).call(this))},d=()=>{n()};t.addEventListener("transitionend",d);let p=setTimeout(n,250)},V0=function(){h(this,ft,!1,q0),h(this,ft,!1,N0)},yp=new WeakMap,xp=new WeakMap,L0=l(Br,20,"#mounted",GI,ft,O0),gp=L0.get,N0=L0.set,M0=l(Br,20,"#startingStyle",WI,ft,P0),B0=M0.get,D0=M0.set,H0=l(Br,20,"#endingStyle",KI,ft,F0),bp=H0.get,q0=H0.set,C(Br,qo),b(qo,"tagName","dui-sidebar"),b(qo,"styles",[y,nP]);var aP=c`
|
|
6555
6584
|
:host {
|
|
6556
6585
|
display: inline-block;
|
|
6557
6586
|
}
|
|
6558
|
-
`,
|
|
6587
|
+
`,lP=f`<svg
|
|
6559
6588
|
viewBox="0 0 24 24"
|
|
6560
6589
|
fill="none"
|
|
6561
6590
|
stroke="currentColor"
|
|
@@ -6565,13 +6594,13 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6565
6594
|
>
|
|
6566
6595
|
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
6567
6596
|
<path d="M9 3v18" />
|
|
6568
|
-
</svg>`,
|
|
6597
|
+
</svg>`,fa=class extends g{static tagName="dui-sidebar-trigger";static styles=[y,aP];#t=new U(this,{context:Nr,subscribe:!0});#e=()=>{this.#t.value?.toggleSidebar()};render(){return f`
|
|
6569
6598
|
<dui-button appearance="ghost" size="sm" @click=${this.#e}>
|
|
6570
6599
|
<slot>
|
|
6571
|
-
<dui-icon>${
|
|
6600
|
+
<dui-icon>${lP}</dui-icon>
|
|
6572
6601
|
</slot>
|
|
6573
6602
|
</dui-button>
|
|
6574
|
-
`}};var
|
|
6603
|
+
`}};var dP=c`
|
|
6575
6604
|
:host {
|
|
6576
6605
|
display: flex;
|
|
6577
6606
|
flex-direction: column;
|
|
@@ -6579,31 +6608,31 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6579
6608
|
min-height: 0;
|
|
6580
6609
|
overflow: hidden;
|
|
6581
6610
|
}
|
|
6582
|
-
`,
|
|
6611
|
+
`,va=class extends g{static tagName="dui-sidebar-content";static styles=[y,dP];render(){return f`
|
|
6583
6612
|
<dui-scroll-area>
|
|
6584
6613
|
<slot></slot>
|
|
6585
6614
|
</dui-scroll-area>
|
|
6586
|
-
`}};var
|
|
6615
|
+
`}};var cP=c`
|
|
6587
6616
|
:host {
|
|
6588
6617
|
display: flex;
|
|
6589
6618
|
flex-direction: column;
|
|
6590
6619
|
}
|
|
6591
|
-
`,
|
|
6620
|
+
`,ga=class extends g{static tagName="dui-sidebar-header";static styles=[y,cP];render(){return f`<slot></slot>`}};var pP=c`
|
|
6592
6621
|
:host {
|
|
6593
6622
|
display: flex;
|
|
6594
6623
|
flex-direction: column;
|
|
6595
6624
|
}
|
|
6596
|
-
`,
|
|
6625
|
+
`,ba=class extends g{static tagName="dui-sidebar-footer";static styles=[y,pP];render(){return f`<slot></slot>`}};var hP=c`
|
|
6597
6626
|
:host {
|
|
6598
6627
|
display: flex;
|
|
6599
6628
|
flex-direction: column;
|
|
6600
6629
|
position: relative;
|
|
6601
6630
|
overflow: hidden;
|
|
6602
6631
|
}
|
|
6603
|
-
`,
|
|
6632
|
+
`,ya=class extends g{static tagName="dui-sidebar-group";static styles=[y,hP];render(){return f`
|
|
6604
6633
|
<slot name="label"></slot>
|
|
6605
6634
|
<slot></slot>
|
|
6606
|
-
`}};var
|
|
6635
|
+
`}};var uP=c`
|
|
6607
6636
|
:host {
|
|
6608
6637
|
display: flex;
|
|
6609
6638
|
align-items: center;
|
|
@@ -6615,7 +6644,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6615
6644
|
:host([data-icon-collapsed]) {
|
|
6616
6645
|
opacity: 0;
|
|
6617
6646
|
}
|
|
6618
|
-
`,
|
|
6647
|
+
`,xa=class extends g{static tagName="dui-sidebar-group-label";static styles=[y,uP];#t=new U(this,{context:Nr,subscribe:!0});get#e(){let i=this.#t.value;return i?.collapsible==="icon"&&i?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return f`<slot></slot>`}};var mP=c`
|
|
6619
6648
|
.Menu {
|
|
6620
6649
|
display: flex;
|
|
6621
6650
|
flex-direction: column;
|
|
@@ -6623,15 +6652,15 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6623
6652
|
margin: 0;
|
|
6624
6653
|
padding: 0;
|
|
6625
6654
|
}
|
|
6626
|
-
`,
|
|
6655
|
+
`,wa=class extends g{static tagName="dui-sidebar-menu";static styles=[y,mP];render(){return f`
|
|
6627
6656
|
<ul class="Menu" role="list">
|
|
6628
6657
|
<slot></slot>
|
|
6629
6658
|
</ul>
|
|
6630
|
-
`}};var
|
|
6659
|
+
`}};var fP=c`
|
|
6631
6660
|
:host {
|
|
6632
6661
|
display: list-item;
|
|
6633
6662
|
}
|
|
6634
|
-
`,
|
|
6663
|
+
`,ka=class extends g{static tagName="dui-sidebar-menu-item";static styles=[y,fP];render(){return f`<slot></slot>`}};var vP=c`
|
|
6635
6664
|
:host {
|
|
6636
6665
|
display: block;
|
|
6637
6666
|
}
|
|
@@ -6689,16 +6718,16 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6689
6718
|
:host([disabled]) .Button {
|
|
6690
6719
|
pointer-events: none;
|
|
6691
6720
|
}
|
|
6692
|
-
`,
|
|
6721
|
+
`,JI,ZI,tA,eA,rA,Ne,U0,j0,K0,W0,wp,Ze,G0,kp,oA,iA,Y0,Je=class extends(rA=g,eA=[u({type:Boolean,reflect:!0})],tA=[u({type:Boolean,reflect:!0})],ZI=[u()],JI=[u()],rA){constructor(){super(...arguments);s(this,Ze);s(this,U0,o(Ne,8,this,!1)),o(Ne,11,this);s(this,j0,o(Ne,12,this,!1)),o(Ne,15,this);s(this,K0,o(Ne,16,this,"")),o(Ne,19,this);s(this,W0,o(Ne,20,this)),o(Ne,23,this);s(this,wp,new U(this,{context:Nr,subscribe:!0}));s(this,kp,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 e(this,Ze,G0)&&this.tooltip?f`
|
|
6693
6722
|
<dui-tooltip>
|
|
6694
6723
|
<dui-tooltip-trigger>
|
|
6695
|
-
${m(this,Ze,
|
|
6724
|
+
${m(this,Ze,Y0).call(this)}
|
|
6696
6725
|
</dui-tooltip-trigger>
|
|
6697
6726
|
<dui-tooltip-popup side="right">
|
|
6698
6727
|
${this.tooltip}
|
|
6699
6728
|
</dui-tooltip-popup>
|
|
6700
6729
|
</dui-tooltip>
|
|
6701
|
-
`:m(this,Ze,
|
|
6730
|
+
`:m(this,Ze,Y0).call(this)}};Ne=S(rA),U0=new WeakMap,j0=new WeakMap,K0=new WeakMap,W0=new WeakMap,wp=new WeakMap,Ze=new WeakSet,G0=function(){let t=e(this,wp).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},kp=new WeakMap,oA=function(){return f`
|
|
6702
6731
|
<button
|
|
6703
6732
|
class="Button"
|
|
6704
6733
|
?disabled=${this.disabled}
|
|
@@ -6708,7 +6737,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6708
6737
|
<span class="Label"><slot></slot></span>
|
|
6709
6738
|
<span class="Suffix"><slot name="suffix"></slot></span>
|
|
6710
6739
|
</button>
|
|
6711
|
-
`},
|
|
6740
|
+
`},iA=function(){return f`
|
|
6712
6741
|
<a
|
|
6713
6742
|
class="Button"
|
|
6714
6743
|
href=${this.href??$}
|
|
@@ -6720,15 +6749,15 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6720
6749
|
<span class="Label"><slot></slot></span>
|
|
6721
6750
|
<span class="Suffix"><slot name="suffix"></slot></span>
|
|
6722
6751
|
</a>
|
|
6723
|
-
`},
|
|
6752
|
+
`},Y0=function(){let t=e(this,Ze,G0);return f`
|
|
6724
6753
|
<div
|
|
6725
6754
|
class="Row"
|
|
6726
6755
|
?data-icon-collapsed=${t}
|
|
6727
6756
|
?data-active=${this.active}
|
|
6728
6757
|
>
|
|
6729
|
-
${this.href!==void 0?m(this,Ze,
|
|
6758
|
+
${this.href!==void 0?m(this,Ze,iA).call(this):m(this,Ze,oA).call(this)}
|
|
6730
6759
|
</div>
|
|
6731
|
-
`},l(Ne,4,"active",
|
|
6760
|
+
`},l(Ne,4,"active",eA,Je,U0),l(Ne,4,"disabled",tA,Je,j0),l(Ne,4,"tooltip",ZI,Je,K0),l(Ne,4,"href",JI,Je,W0),C(Ne,Je),b(Je,"tagName","dui-sidebar-menu-button"),b(Je,"styles",[y,vP]);var gP=c`
|
|
6732
6761
|
:host {
|
|
6733
6762
|
display: block;
|
|
6734
6763
|
}
|
|
@@ -6736,7 +6765,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6736
6765
|
.Separator {
|
|
6737
6766
|
/* Structural only — height and color from theme */
|
|
6738
6767
|
}
|
|
6739
|
-
`,
|
|
6768
|
+
`,Ca=class extends g{static tagName="dui-sidebar-separator";static styles=[y,gP];render(){return f`<div class="Separator" role="separator"></div>`}};var bP=c`
|
|
6740
6769
|
:host {
|
|
6741
6770
|
display: flex;
|
|
6742
6771
|
flex-direction: column;
|
|
@@ -6746,7 +6775,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6746
6775
|
overflow: hidden;
|
|
6747
6776
|
container-type: size;
|
|
6748
6777
|
}
|
|
6749
|
-
`,
|
|
6778
|
+
`,Sa=class extends g{static tagName="dui-sidebar-inset";static styles=[y,bP];render(){return f`<slot></slot>`}};var Ea=z("value-change",{bubbles:!0,composed:!0}),Cp=z("value-committed",{bubbles:!0,composed:!0}),yP=c`
|
|
6750
6779
|
:host {
|
|
6751
6780
|
display: block;
|
|
6752
6781
|
}
|
|
@@ -6837,13 +6866,13 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6837
6866
|
white-space: nowrap;
|
|
6838
6867
|
border: 0;
|
|
6839
6868
|
}
|
|
6840
|
-
`,
|
|
6869
|
+
`,sA,nA,aA,lA,dA,cA,pA,hA,uA,mA,fA,dt,X0,Q0,J0,Z0,tw,ew,rw,ow,iw,sw,nw,Sp,aw,Tt,vA,gA,bA,Ms,lw,Ep,Fs,Hs,$p,Tp,Rp,Xt=class extends(fA=g,mA=[u({type:Number})],uA=[u({type:Number})],hA=[u({type:Number})],pA=[u({type:Number})],cA=[u({type:Boolean,reflect:!0})],dA=[u()],lA=[u({reflect:!0})],aA=[u({reflect:!0})],nA=[u({type:Number})],sA=[k()],fA){constructor(){super(...arguments);s(this,Tt);s(this,X0,o(dt,8,this,0)),o(dt,11,this);s(this,Q0,o(dt,12,this,0)),o(dt,15,this);s(this,J0,o(dt,16,this,100)),o(dt,19,this);s(this,Z0,o(dt,20,this,1)),o(dt,23,this);s(this,tw,o(dt,24,this,!1)),o(dt,27,this);s(this,ew,o(dt,28,this,"")),o(dt,31,this);s(this,rw,o(dt,32,this,"")),o(dt,35,this);s(this,ow,o(dt,36,this,"")),o(dt,39,this);s(this,iw,o(dt,40,this)),o(dt,43,this);s(this,sw,o(dt,44,this,!1)),o(dt,47,this);s(this,Ep,t=>{if(this.disabled)return;t.preventDefault(),h(this,Tt,!0,aw);let r=m(this,Tt,lw).call(this,t.clientX);r!==this.value&&(this.value=r,this.dispatchEvent(Ea({value:r}))),document.addEventListener("pointermove",e(this,Fs)),document.addEventListener("pointerup",e(this,Hs))});s(this,Fs,t=>{if(!e(this,Tt,Sp))return;let r=m(this,Tt,lw).call(this,t.clientX);r!==this.value&&(this.value=r,this.dispatchEvent(Ea({value:r})))});s(this,Hs,()=>{e(this,Tt,Sp)&&(h(this,Tt,!1,aw),this.dispatchEvent(Cp({value:this.value})),document.removeEventListener("pointermove",e(this,Fs)),document.removeEventListener("pointerup",e(this,Hs)))});s(this,$p,t=>{if(this.disabled)return;let r=this.value,n=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),r=m(this,Tt,Ms).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),r=m(this,Tt,Ms).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),r=m(this,Tt,Ms).call(this,this.value+n);break;case"PageDown":t.preventDefault(),r=m(this,Tt,Ms).call(this,this.value-n);break;case"Home":t.preventDefault(),r=this.min;break;case"End":t.preventDefault(),r=this.max;break;default:return}r!==this.value&&(this.value=r,this.dispatchEvent(Ea({value:r})),this.dispatchEvent(Cp({value:r})))});s(this,Tp,t=>{let r=t.target,n=parseFloat(r.value);!isNaN(n)&&n!==this.value&&(this.value=n,this.dispatchEvent(Ea({value:n})))});s(this,Rp,()=>{this.dispatchEvent(Cp({value:this.value}))})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",e(this,Fs)),document.removeEventListener("pointerup",e(this,Hs))}render(){return f`
|
|
6841
6870
|
<div
|
|
6842
6871
|
part="root"
|
|
6843
6872
|
role="group"
|
|
6844
6873
|
?data-disabled=${this.disabled}
|
|
6845
6874
|
?data-dragging=${e(this,Tt,Sp)}
|
|
6846
|
-
style="--slider-progress: ${e(this,Tt,
|
|
6875
|
+
style="--slider-progress: ${e(this,Tt,vA)}%"
|
|
6847
6876
|
@pointerdown=${e(this,Ep)}
|
|
6848
6877
|
>
|
|
6849
6878
|
<span part="label">${this.label}</span>
|
|
@@ -6851,7 +6880,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6851
6880
|
<div class="slider-row">
|
|
6852
6881
|
<div part="track">
|
|
6853
6882
|
<div part="indicator"></div>
|
|
6854
|
-
<span part="readout">${e(this,Tt,
|
|
6883
|
+
<span part="readout">${e(this,Tt,bA)}</span>
|
|
6855
6884
|
<span part="unit">${this.unit}</span>
|
|
6856
6885
|
</div>
|
|
6857
6886
|
<div
|
|
@@ -6878,7 +6907,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6878
6907
|
@change=${e(this,Rp)}
|
|
6879
6908
|
/>
|
|
6880
6909
|
</div>
|
|
6881
|
-
`}};dt=S(
|
|
6910
|
+
`}};dt=S(fA),X0=new WeakMap,Q0=new WeakMap,J0=new WeakMap,Z0=new WeakMap,tw=new WeakMap,ew=new WeakMap,rw=new WeakMap,ow=new WeakMap,iw=new WeakMap,sw=new WeakMap,Tt=new WeakSet,vA=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},gA=function(){let t=String(this.step),r=t.indexOf(".");return r===-1?0:t.length-r-1},bA=function(){let t=this.precision??e(this,Tt,gA);return this.value.toFixed(t)},Ms=function(t){let r=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,r))},lw=function(t){let r=this.shadowRoot?.querySelector("[part='track']");if(!r)return this.value;let n=r.getBoundingClientRect(),d=(t-n.left)/n.width,p=this.min+d*(this.max-this.min);return m(this,Tt,Ms).call(this,p)},Ep=new WeakMap,Fs=new WeakMap,Hs=new WeakMap,$p=new WeakMap,Tp=new WeakMap,Rp=new WeakMap,l(dt,4,"value",mA,Xt,X0),l(dt,4,"min",uA,Xt,Q0),l(dt,4,"max",hA,Xt,J0),l(dt,4,"step",pA,Xt,Z0),l(dt,4,"disabled",cA,Xt,tw),l(dt,4,"name",dA,Xt,ew),l(dt,4,"label",lA,Xt,rw),l(dt,4,"unit",aA,Xt,ow),l(dt,4,"precision",nA,Xt,iw),nw=l(dt,20,"#dragging",sA,Tt,sw),Sp=nw.get,aw=nw.set,C(dt,Xt),b(Xt,"tagName","dui-slider"),b(Xt,"styles",[y,yP]);var xP=Da`
|
|
6882
6911
|
<svg
|
|
6883
6912
|
part="svg"
|
|
6884
6913
|
viewBox="0 0 44 44"
|
|
@@ -6907,7 +6936,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6907
6936
|
/>
|
|
6908
6937
|
</circle>
|
|
6909
6938
|
</svg>
|
|
6910
|
-
`,
|
|
6939
|
+
`,wP=Da`
|
|
6911
6940
|
<svg
|
|
6912
6941
|
part="svg"
|
|
6913
6942
|
data-rotate
|
|
@@ -6930,7 +6959,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6930
6959
|
<path d="M2 12h4" />
|
|
6931
6960
|
<path d="m4.9 4.9 2.9 2.9" />
|
|
6932
6961
|
</svg>
|
|
6933
|
-
`,
|
|
6962
|
+
`,kP=Da`
|
|
6934
6963
|
<svg
|
|
6935
6964
|
part="svg"
|
|
6936
6965
|
data-rotate
|
|
@@ -6946,7 +6975,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6946
6975
|
>
|
|
6947
6976
|
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
6948
6977
|
</svg>
|
|
6949
|
-
`,
|
|
6978
|
+
`,CP=c`
|
|
6950
6979
|
:host {
|
|
6951
6980
|
display: block;
|
|
6952
6981
|
}
|
|
@@ -6965,7 +6994,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
6965
6994
|
from { transform: rotate(0deg); }
|
|
6966
6995
|
to { transform: rotate(360deg); }
|
|
6967
6996
|
}
|
|
6968
|
-
`,
|
|
6997
|
+
`,yA,xA,_p,dw,Ip,wA,ho=class extends(xA=g,yA=[u({reflect:!0})],xA){constructor(){super(...arguments);s(this,Ip);s(this,dw,o(_p,8,this,"")),o(_p,11,this)}render(){return f`${m(this,Ip,wA).call(this)}`}};_p=S(xA),dw=new WeakMap,Ip=new WeakSet,wA=function(){switch(this.variant){case"lucide-loader":return wP;case"lucide-loader-circle":return kP;default:return xP}},l(_p,4,"variant",yA,ho,dw),C(_p,ho),b(ho,"tagName","dui-spinner"),b(ho,"styles",[y,CP]);var OA=z("checked-change",{bubbles:!0,composed:!0}),SP=c`
|
|
6969
6998
|
:host {
|
|
6970
6999
|
display: inline-flex;
|
|
6971
7000
|
align-items: start;
|
|
@@ -7006,7 +7035,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7006
7035
|
width: 0;
|
|
7007
7036
|
height: 0;
|
|
7008
7037
|
}
|
|
7009
|
-
`,
|
|
7038
|
+
`,kA,CA,SA,EA,$A,TA,RA,_A,IA,AA,zA,ct,cw,pw,hw,uw,mw,fw,vw,gw,bw,yw,LA,ww,he,xw,kw,Cw,PA,$a,Ta,Ap,Qt=class extends(zA=g,AA=[u({type:Boolean,reflect:!0})],IA=[u({type:Boolean,attribute:"default-checked"})],_A=[u({type:Boolean,reflect:!0})],RA=[u({type:Boolean,reflect:!0,attribute:"read-only"})],TA=[u({type:Boolean,reflect:!0})],$A=[u()],EA=[u()],SA=[u({attribute:"unchecked-value"})],CA=[k()],kA=[et({context:ne,subscribe:!0}),k()],zA){constructor(){super(...arguments);s(this,he);s(this,cw,o(ct,8,this)),o(ct,11,this);s(this,pw,o(ct,12,this,!1)),o(ct,15,this);s(this,hw,o(ct,16,this,!1)),o(ct,19,this);s(this,uw,o(ct,20,this,!1)),o(ct,23,this);s(this,mw,o(ct,24,this,!1)),o(ct,27,this);s(this,fw,o(ct,28,this)),o(ct,31,this);s(this,vw,o(ct,32,this,"on")),o(ct,35,this);s(this,gw,o(ct,36,this,"")),o(ct,39,this);s(this,bw,o(ct,40,this,!1)),o(ct,43,this);s(this,xw,o(ct,44,this)),o(ct,47,this);s(this,$a,t=>{e(this,Ta).call(this)});s(this,Ta,()=>{if(e(this,he,Cw)||this.readOnly)return;let t=!e(this,he,kw);this.checked===void 0&&h(this,he,t,ww),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched(),this.dispatchEvent(OA({checked:t}))});s(this,Ap,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),e(this,Ta).call(this))})}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,he,!0,ww),this.addEventListener("click",e(this,$a))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,$a))}render(){let t=e(this,he,kw),r=e(this,he,Cw),n=e(this,he,PA),d=this._fieldCtx?.controlId??"";return f`
|
|
7010
7039
|
<span
|
|
7011
7040
|
part="root"
|
|
7012
7041
|
role="switch"
|
|
@@ -7015,14 +7044,14 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7015
7044
|
aria-disabled="${r?"true":$}"
|
|
7016
7045
|
aria-readonly="${this.readOnly?"true":$}"
|
|
7017
7046
|
aria-required="${this.required?"true":$}"
|
|
7018
|
-
aria-invalid="${
|
|
7047
|
+
aria-invalid="${n?"true":$}"
|
|
7019
7048
|
tabindex="${r?$:"0"}"
|
|
7020
7049
|
?data-checked="${t}"
|
|
7021
7050
|
?data-unchecked="${!t}"
|
|
7022
7051
|
?data-disabled="${r}"
|
|
7023
7052
|
?data-readonly="${this.readOnly}"
|
|
7024
7053
|
?data-required="${this.required}"
|
|
7025
|
-
?data-invalid="${
|
|
7054
|
+
?data-invalid="${n}"
|
|
7026
7055
|
@keydown="${e(this,Ap)}"
|
|
7027
7056
|
>
|
|
7028
7057
|
<span part="thumb"></span>
|
|
@@ -7039,7 +7068,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7039
7068
|
/>
|
|
7040
7069
|
</span>
|
|
7041
7070
|
<slot></slot>
|
|
7042
|
-
`}};ct=S(
|
|
7071
|
+
`}};ct=S(zA),cw=new WeakMap,pw=new WeakMap,hw=new WeakMap,uw=new WeakMap,mw=new WeakMap,fw=new WeakMap,vw=new WeakMap,gw=new WeakMap,bw=new WeakMap,he=new WeakSet,xw=new WeakMap,kw=function(){return this.checked??e(this,he,LA)},Cw=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},PA=function(){return this._fieldCtx?.invalid??!1},$a=new WeakMap,Ta=new WeakMap,Ap=new WeakMap,l(ct,4,"checked",AA,Qt,cw),l(ct,4,"defaultChecked",IA,Qt,pw),l(ct,4,"disabled",_A,Qt,hw),l(ct,4,"readOnly",RA,Qt,uw),l(ct,4,"required",TA,Qt,mw),l(ct,4,"name",$A,Qt,fw),l(ct,4,"value",EA,Qt,vw),l(ct,4,"uncheckedValue",SA,Qt,gw),yw=l(ct,20,"#internalChecked",CA,he,bw),LA=yw.get,ww=yw.set,l(ct,4,"_fieldCtx",kA,Qt,xw),C(ct,Qt),b(Qt,"tagName","dui-switch"),b(Qt,"styles",[y,SP]);var Vo=Symbol("dui-tabs");var VA=z("value-change",{bubbles:!0,composed:!0}),EP=c`
|
|
7043
7072
|
:host {
|
|
7044
7073
|
display: block;
|
|
7045
7074
|
}
|
|
@@ -7056,11 +7085,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7056
7085
|
:host([controls="footer"]) [part="root"] {
|
|
7057
7086
|
flex-direction: column-reverse;
|
|
7058
7087
|
}
|
|
7059
|
-
`,
|
|
7088
|
+
`,MA,FA,HA,NA,BA,DA,qA,jt,Sw,Ew,$w,Tw,Rw,_w,UA,Aw,fr,Op,Lp,Iw,zp,Be=class extends(qA=g,DA=[u()],BA=[u({attribute:"default-value"})],NA=[u({reflect:!0})],HA=[u({reflect:!0})],FA=[k()],MA=[kt({context:Vo}),k()],qA){constructor(){super(...arguments);s(this,fr);s(this,Sw,o(jt,8,this)),o(jt,11,this);s(this,Ew,o(jt,12,this)),o(jt,15,this);s(this,$w,o(jt,16,this,"horizontal")),o(jt,19,this);s(this,Tw,o(jt,20,this,"header")),o(jt,23,this);s(this,Rw,o(jt,24,this)),o(jt,27,this);s(this,Op,()=>this.value??e(this,fr,UA));s(this,Lp,t=>{this.value===void 0&&h(this,fr,t,Aw),this.dispatchEvent(VA(t))});s(this,Iw,o(jt,28,this,m(this,fr,zp).call(this))),o(jt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,fr,this.defaultValue,Aw),this._ctx=m(this,fr,zp).call(this)}willUpdate(){this._ctx=m(this,fr,zp).call(this)}render(){return f`
|
|
7060
7089
|
<div part="root" data-orientation=${this.orientation}>
|
|
7061
7090
|
<slot></slot>
|
|
7062
7091
|
</div>
|
|
7063
|
-
`}};jt=S(
|
|
7092
|
+
`}};jt=S(qA),Sw=new WeakMap,Ew=new WeakMap,$w=new WeakMap,Tw=new WeakMap,Rw=new WeakMap,fr=new WeakSet,Op=new WeakMap,Lp=new WeakMap,Iw=new WeakMap,zp=function(){return{value:e(this,Op).call(this),orientation:this.orientation,select:e(this,Lp)}},l(jt,4,"value",DA,Be,Sw),l(jt,4,"defaultValue",BA,Be,Ew),l(jt,4,"orientation",NA,Be,$w),l(jt,4,"controls",HA,Be,Tw),_w=l(jt,20,"#internalValue",FA,fr,Rw),UA=_w.get,Aw=_w.set,l(jt,4,"_ctx",MA,Be,Iw),C(jt,Be),b(Be,"tagName","dui-tabs"),b(Be,"styles",[y,EP]);var $P=c`
|
|
7064
7093
|
:host {
|
|
7065
7094
|
display: block;
|
|
7066
7095
|
}
|
|
@@ -7074,11 +7103,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7074
7103
|
[part="list"][data-orientation="vertical"] {
|
|
7075
7104
|
flex-direction: column;
|
|
7076
7105
|
}
|
|
7077
|
-
`,
|
|
7106
|
+
`,jA,KA,Pp,zw,Ns,Bs,Mp,uo=class extends(KA=g,jA=[et({context:Vo,subscribe:!0})],KA){constructor(){super(...arguments);s(this,Bs);s(this,zw,o(Pp,8,this)),o(Pp,11,this);s(this,Ns)}connectedCallback(){super.connectedCallback(),h(this,Ns,new ResizeObserver(()=>{m(this,Bs,Mp).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),e(this,Ns)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&e(this,Ns)?.observe(t),m(this,Bs,Mp).call(this)}updated(){m(this,Bs,Mp).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
|
|
7078
7107
|
<div part="list" role="tablist" data-orientation=${t}>
|
|
7079
7108
|
<slot></slot>
|
|
7080
7109
|
</div>
|
|
7081
|
-
`}};Pp=S(
|
|
7110
|
+
`}};Pp=S(KA),zw=new WeakMap,Ns=new WeakMap,Bs=new WeakSet,Mp=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let d=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(p=>p.tagName==="DUI-TAB"&&p.getAttribute("value")===this._ctx?.value);if(d){let p=t.getBoundingClientRect(),v=d.getBoundingClientRect(),x=v.left-p.left,E=v.width;t.style.setProperty("--active-tab-left",`${x}px`),t.style.setProperty("--active-tab-width",`${E}px`)}},l(Pp,4,"_ctx",jA,uo,zw),C(Pp,uo),b(uo,"tagName","dui-tabs-list"),b(uo,"styles",[y,$P]);var TP=c`
|
|
7082
7111
|
:host {
|
|
7083
7112
|
display: block;
|
|
7084
7113
|
}
|
|
@@ -7102,7 +7131,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7102
7131
|
[part="tab"][data-disabled] {
|
|
7103
7132
|
cursor: not-allowed;
|
|
7104
7133
|
}
|
|
7105
|
-
`,
|
|
7134
|
+
`,WA,GA,YA,XA,Dr,Ow,Lw,Pw,Fp,QA,Hp,Np,vr=class extends(XA=g,YA=[u()],GA=[u({type:Boolean,reflect:!0})],WA=[et({context:Vo,subscribe:!0})],XA){constructor(){super(...arguments);s(this,Fp);s(this,Ow,o(Dr,8,this,"")),o(Dr,11,this);s(this,Lw,o(Dr,12,this,!1)),o(Dr,15,this);s(this,Pw,o(Dr,16,this)),o(Dr,19,this);s(this,Hp,()=>{this.disabled||this._ctx?.select(this.value)});s(this,Np,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=e(this,Fp,QA);return f`
|
|
7106
7135
|
<button
|
|
7107
7136
|
part="tab"
|
|
7108
7137
|
role="tab"
|
|
@@ -7116,12 +7145,16 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7116
7145
|
>
|
|
7117
7146
|
<slot></slot>
|
|
7118
7147
|
</button>
|
|
7119
|
-
`}};Dr=S(
|
|
7148
|
+
`}};Dr=S(XA),Ow=new WeakMap,Lw=new WeakMap,Pw=new WeakMap,Fp=new WeakSet,QA=function(){return this._ctx?.value===this.value},Hp=new WeakMap,Np=new WeakMap,l(Dr,4,"value",YA,vr,Ow),l(Dr,4,"disabled",GA,vr,Lw),l(Dr,4,"_ctx",WA,vr,Pw),C(Dr,vr),b(vr,"tagName","dui-tab"),b(vr,"styles",[y,TP]);var RP=c`
|
|
7120
7149
|
:host {
|
|
7121
7150
|
display: block;
|
|
7122
7151
|
}
|
|
7123
7152
|
|
|
7124
|
-
|
|
7153
|
+
.wrapper {
|
|
7154
|
+
display: contents;
|
|
7155
|
+
}
|
|
7156
|
+
|
|
7157
|
+
.wrapper[hidden] {
|
|
7125
7158
|
display: none;
|
|
7126
7159
|
}
|
|
7127
7160
|
|
|
@@ -7129,20 +7162,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7129
7162
|
position: relative;
|
|
7130
7163
|
outline: 0;
|
|
7131
7164
|
}
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
}
|
|
7136
|
-
`,YA,XA,QA,JA,qr,Pw,Mw,Fw,Ta,Hw,gr=class extends(JA=g,QA=[u()],XA=[u({type:Boolean,attribute:"keep-mounted"})],YA=[et({context:qo,subscribe:!0})],JA){constructor(){super(...arguments);s(this,Ta);s(this,Pw,o(qr,8,this,"")),o(qr,11,this);s(this,Mw,o(qr,12,this,!1)),o(qr,15,this);s(this,Fw,o(qr,16,this)),o(qr,19,this)}willUpdate(){e(this,Ta,Hw)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=e(this,Ta,Hw);return!t&&!this.keepMounted?$:f`
|
|
7137
|
-
<div
|
|
7138
|
-
part="panel"
|
|
7139
|
-
role="tabpanel"
|
|
7140
|
-
?hidden=${!t}
|
|
7141
|
-
tabindex="0"
|
|
7142
|
-
>
|
|
7143
|
-
<slot></slot>
|
|
7165
|
+
`,JA,ZA,tz,ez,qr,Mw,Fw,Hw,Ra,Nw,gr=class extends(ez=g,tz=[u()],ZA=[u({type:Boolean,attribute:"keep-mounted"})],JA=[et({context:Vo,subscribe:!0})],ez){constructor(){super(...arguments);s(this,Ra);s(this,Mw,o(qr,8,this,"")),o(qr,11,this);s(this,Fw,o(qr,12,this,!1)),o(qr,15,this);s(this,Hw,o(qr,16,this)),o(qr,19,this)}willUpdate(){e(this,Ra,Nw)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=e(this,Ra,Nw);return f`
|
|
7166
|
+
<div class="wrapper" ?hidden=${!t}>
|
|
7167
|
+
${t||this.keepMounted?f`<div part="panel" role="tabpanel" tabindex="0"><slot></slot></div>`:$}
|
|
7144
7168
|
</div>
|
|
7145
|
-
`}};qr=S(
|
|
7169
|
+
`}};qr=S(ez),Mw=new WeakMap,Fw=new WeakMap,Hw=new WeakMap,Ra=new WeakSet,Nw=function(){return this._ctx?.value===this.value},l(qr,4,"value",tz,gr,Mw),l(qr,4,"keepMounted",ZA,gr,Fw),l(qr,4,"_ctx",JA,gr,Hw),C(qr,gr),b(gr,"tagName","dui-tabs-panel"),b(gr,"styles",[y,RP]);var _P=c`
|
|
7146
7170
|
:host {
|
|
7147
7171
|
display: block;
|
|
7148
7172
|
position: absolute;
|
|
@@ -7154,7 +7178,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7154
7178
|
pointer-events: none;
|
|
7155
7179
|
transition-property: translate, width;
|
|
7156
7180
|
}
|
|
7157
|
-
`,
|
|
7181
|
+
`,_a=class extends g{static tagName="dui-tabs-indicator";static styles=[y,_P];render(){return f`<span part="indicator"></span>`}};var mz=z("textarea-change",{bubbles:!0,composed:!0}),IP=c`
|
|
7158
7182
|
:host {
|
|
7159
7183
|
display: block;
|
|
7160
7184
|
}
|
|
@@ -7191,7 +7215,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7191
7215
|
[part="textarea"]:disabled {
|
|
7192
7216
|
cursor: not-allowed;
|
|
7193
7217
|
}
|
|
7194
|
-
`,
|
|
7218
|
+
`,rz,oz,iz,sz,nz,az,lz,dz,cz,pz,hz,uz,st,Bw,Dw,qw,Vw,Uw,jw,Kw,Ww,Gw,Yw,Xw,Bp,Dt=class extends(uz=g,hz=[u()],pz=[u()],cz=[u({type:Boolean,reflect:!0})],dz=[u({type:Boolean})],lz=[u({type:Boolean})],az=[u({type:Number})],nz=[u({type:Number,attribute:"minlength"})],sz=[u({type:Number,attribute:"maxlength"})],iz=[u()],oz=[u()],rz=[u({attribute:"max-height"})],uz){constructor(){super(...arguments);s(this,Bw,o(st,8,this,"")),o(st,11,this);s(this,Dw,o(st,12,this,"")),o(st,15,this);s(this,qw,o(st,16,this,!1)),o(st,19,this);s(this,Vw,o(st,20,this,!1)),o(st,23,this);s(this,Uw,o(st,24,this,!1)),o(st,27,this);s(this,jw,o(st,28,this)),o(st,31,this);s(this,Kw,o(st,32,this)),o(st,35,this);s(this,Ww,o(st,36,this)),o(st,39,this);s(this,Gw,o(st,40,this,"")),o(st,43,this);s(this,Yw,o(st,44,this,"vertical")),o(st,47,this);s(this,Xw,o(st,48,this)),o(st,51,this);s(this,Bp,t=>{let r=t.target;this.value=r.value,this.dispatchEvent(mz({value:this.value}))})}render(){let t=ys({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
|
|
7195
7219
|
<textarea
|
|
7196
7220
|
part="textarea"
|
|
7197
7221
|
style=${t}
|
|
@@ -7207,7 +7231,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7207
7231
|
data-resize=${this.resize}
|
|
7208
7232
|
@input=${e(this,Bp)}
|
|
7209
7233
|
></textarea>
|
|
7210
|
-
`}};st=S(
|
|
7234
|
+
`}};st=S(uz),Bw=new WeakMap,Dw=new WeakMap,qw=new WeakMap,Vw=new WeakMap,Uw=new WeakMap,jw=new WeakMap,Kw=new WeakMap,Ww=new WeakMap,Gw=new WeakMap,Yw=new WeakMap,Xw=new WeakMap,Bp=new WeakMap,l(st,4,"value",hz,Dt,Bw),l(st,4,"placeholder",pz,Dt,Dw),l(st,4,"disabled",cz,Dt,qw),l(st,4,"required",dz,Dt,Vw),l(st,4,"readonly",lz,Dt,Uw),l(st,4,"rows",az,Dt,jw),l(st,4,"minLength",nz,Dt,Kw),l(st,4,"maxLength",sz,Dt,Ww),l(st,4,"name",iz,Dt,Gw),l(st,4,"resize",oz,Dt,Yw),l(st,4,"maxHeight",rz,Dt,Xw),C(st,Dt),b(Dt,"tagName","dui-textarea"),b(Dt,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Dt,"styles",[y,IP]);var Dp=Symbol("dui-toggle-group");var kz=z("pressed-change",{bubbles:!0,composed:!0}),AP=c`
|
|
7211
7235
|
:host {
|
|
7212
7236
|
display: inline-block;
|
|
7213
7237
|
}
|
|
@@ -7229,7 +7253,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7229
7253
|
[part="root"]:disabled {
|
|
7230
7254
|
cursor: not-allowed;
|
|
7231
7255
|
}
|
|
7232
|
-
`,
|
|
7256
|
+
`,fz,vz,gz,bz,yz,xz,wz,Kt,Qw,Jw,Zw,tk,ek,rk,Cz,ik,De,ok,sk,nk,qp,Se=class extends(wz=g,xz=[u({type:Boolean})],yz=[u({type:Boolean,attribute:"default-pressed"})],bz=[u({type:Boolean,reflect:!0})],gz=[u()],vz=[k()],fz=[et({context:Dp,subscribe:!0}),k()],wz){constructor(){super(...arguments);s(this,De);s(this,Qw,o(Kt,8,this)),o(Kt,11,this);s(this,Jw,o(Kt,12,this,!1)),o(Kt,15,this);s(this,Zw,o(Kt,16,this,!1)),o(Kt,19,this);s(this,tk,o(Kt,20,this)),o(Kt,23,this);s(this,ek,o(Kt,24,this,!1)),o(Kt,27,this);s(this,ok,o(Kt,28,this)),o(Kt,31,this);s(this,qp,()=>{if(e(this,De,nk))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!e(this,De,sk);this.pressed===void 0&&h(this,De,t,ik),this.dispatchEvent(kz({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&h(this,De,!0,ik)}render(){let t=e(this,De,sk),r=e(this,De,nk);return f`
|
|
7233
7257
|
<button
|
|
7234
7258
|
part="root"
|
|
7235
7259
|
type="button"
|
|
@@ -7242,7 +7266,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7242
7266
|
<slot name="icon"></slot>
|
|
7243
7267
|
<slot></slot>
|
|
7244
7268
|
</button>
|
|
7245
|
-
`}};Kt=S(
|
|
7269
|
+
`}};Kt=S(wz),Qw=new WeakMap,Jw=new WeakMap,Zw=new WeakMap,tk=new WeakMap,ek=new WeakMap,De=new WeakSet,ok=new WeakMap,sk=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??e(this,De,Cz)},nk=function(){return this.disabled||(this._groupCtx?.disabled??!1)},qp=new WeakMap,l(Kt,4,"pressed",xz,Se,Qw),l(Kt,4,"defaultPressed",yz,Se,Jw),l(Kt,4,"disabled",bz,Se,Zw),l(Kt,4,"value",gz,Se,tk),rk=l(Kt,20,"#internalPressed",vz,De,ek),Cz=rk.get,ik=rk.set,l(Kt,4,"_groupCtx",fz,Se,ok),C(Kt,Se),b(Se,"tagName","dui-toggle"),b(Se,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Se,"styles",[y,AP]);var Oz=z("value-change",{bubbles:!0,composed:!0}),zP=c`
|
|
7246
7270
|
:host {
|
|
7247
7271
|
display: inline-flex;
|
|
7248
7272
|
}
|
|
@@ -7254,7 +7278,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7254
7278
|
:host([orientation="vertical"]) [part="root"] {
|
|
7255
7279
|
flex-direction: column;
|
|
7256
7280
|
}
|
|
7257
|
-
`,
|
|
7281
|
+
`,Sz,Ez,$z,Tz,Rz,_z,Iz,Az,zz,Et,ak,lk,dk,ck,pk,hk,uk,mk,Lz,vk,Ee,gk,Up,fk,Vp,jp,ue=class extends(zz=g,Az=[u({type:Array})],Iz=[u({type:Array,attribute:"default-value"})],_z=[u({reflect:!0})],Rz=[u({reflect:!0})],Tz=[u({type:Boolean,reflect:!0})],$z=[u({type:Boolean})],Ez=[k()],Sz=[kt({context:Dp}),k()],zz){constructor(){super(...arguments);s(this,Ee);s(this,ak,o(Et,8,this)),o(Et,11,this);s(this,lk,o(Et,12,this,[])),o(Et,15,this);s(this,dk,o(Et,16,this,"single")),o(Et,19,this);s(this,ck,o(Et,20,this,"horizontal")),o(Et,23,this);s(this,pk,o(Et,24,this,!1)),o(Et,27,this);s(this,hk,o(Et,28,this,!0)),o(Et,31,this);s(this,uk,o(Et,32,this,[])),o(Et,35,this);s(this,Up,t=>{if(this.disabled)return;let r=e(this,Ee,gk),n;this.type==="single"?n=r.includes(t)?[]:[t]:n=r.includes(t)?r.filter(d=>d!==t):[...r,t],this.value===void 0&&h(this,Ee,n,vk),this.dispatchEvent(Oz({value:n}))});s(this,fk,o(Et,36,this,m(this,Ee,Vp).call(this))),o(Et,39,this);s(this,jp,t=>{let r=this.orientation==="horizontal",n=r?"ArrowRight":"ArrowDown",d=r?"ArrowLeft":"ArrowUp";if(t.key!==n&&t.key!==d)return;t.preventDefault();let p=[...this.querySelectorAll("dui-toggle")],v=p.filter(I=>!I.hasAttribute("disabled"));if(v.length===0)return;let x=this.shadowRoot?.activeElement??document.activeElement,E=p.find(I=>I===x||I.shadowRoot?.activeElement===x||I.contains(x)),R=E?v.indexOf(E):-1,w;t.key===n?(w=R+1,w>=v.length&&(w=this.loop?0:v.length-1)):(w=R-1,w<0&&(w=this.loop?v.length-1:0)),v[w]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Ee,[...this.defaultValue],vk),this._ctx=m(this,Ee,Vp).call(this)}willUpdate(){this._ctx=m(this,Ee,Vp).call(this)}render(){return f`
|
|
7258
7282
|
<div
|
|
7259
7283
|
part="root"
|
|
7260
7284
|
role="group"
|
|
@@ -7263,7 +7287,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7263
7287
|
>
|
|
7264
7288
|
<slot></slot>
|
|
7265
7289
|
</div>
|
|
7266
|
-
`}};Et=S(
|
|
7290
|
+
`}};Et=S(zz),ak=new WeakMap,lk=new WeakMap,dk=new WeakMap,ck=new WeakMap,pk=new WeakMap,hk=new WeakMap,uk=new WeakMap,Ee=new WeakSet,gk=function(){return this.value??e(this,Ee,Lz)},Up=new WeakMap,fk=new WeakMap,Vp=function(){return{value:e(this,Ee,gk),disabled:this.disabled,type:this.type,toggle:e(this,Up)}},jp=new WeakMap,l(Et,4,"value",Az,ue,ak),l(Et,4,"defaultValue",Iz,ue,lk),l(Et,4,"type",_z,ue,dk),l(Et,4,"orientation",Rz,ue,ck),l(Et,4,"disabled",Tz,ue,pk),l(Et,4,"loop",$z,ue,hk),mk=l(Et,20,"#internalValue",Ez,Ee,uk),Lz=mk.get,vk=mk.set,l(Et,4,"_ctx",Sz,ue,fk),C(Et,ue),b(ue,"tagName","dui-toggle-group"),b(ue,"styles",[y,zP]);var OP=c`
|
|
7267
7291
|
:host {
|
|
7268
7292
|
display: block;
|
|
7269
7293
|
}
|
|
@@ -7294,7 +7318,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7294
7318
|
display: flex;
|
|
7295
7319
|
align-items: center;
|
|
7296
7320
|
}
|
|
7297
|
-
`,
|
|
7321
|
+
`,Pz,Mz,Fz,Hz,Vr,bk,yk,xk,br=class extends(Hz=g,Fz=[u({type:Boolean,reflect:!0})],Mz=[u({type:Boolean,reflect:!0,attribute:"has-button-left"})],Pz=[u({type:Boolean,reflect:!0,attribute:"has-button-right"})],Hz){constructor(){super(...arguments);s(this,bk,o(Vr,8,this,!1)),o(Vr,11,this);s(this,yk,o(Vr,12,this,!1)),o(Vr,15,this);s(this,xk,o(Vr,16,this,!1)),o(Vr,19,this)}render(){return f`
|
|
7298
7322
|
<nav part="root" role="toolbar">
|
|
7299
7323
|
<div part="left">
|
|
7300
7324
|
<slot name="left"></slot>
|
|
@@ -7306,15 +7330,15 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7306
7330
|
<slot name="right"></slot>
|
|
7307
7331
|
</div>
|
|
7308
7332
|
</nav>
|
|
7309
|
-
`}};Vr=S(
|
|
7333
|
+
`}};Vr=S(Hz),bk=new WeakMap,yk=new WeakMap,xk=new WeakMap,l(Vr,4,"inset",Fz,br,bk),l(Vr,4,"hasButtonLeft",Mz,br,yk),l(Vr,4,"hasButtonRight",Pz,br,xk),C(Vr,br),b(br,"tagName","dui-toolbar"),b(br,"styles",[y,OP]);var Ds=Symbol("dui-tooltip");var Ok=z("open-change",{bubbles:!0,composed:!0}),LP=c`
|
|
7310
7334
|
:host {
|
|
7311
7335
|
display: contents;
|
|
7312
7336
|
}
|
|
7313
|
-
`,
|
|
7337
|
+
`,Nz,Bz,Dz,qz,Vz,Uz,jz,Kz,Wz,Gz,Yz,pt,wk,kk,Ck,Sk,Ek,$k,Tk,Rk,_k,Kp,Wp,ht,Ik,Ak,Lk,Xz,Ui,ji,Yp,Xp,zk,Gp,Qz,Jz,Pk,Mk,Zz,oe=class extends(Yz=g,Gz=[u({type:Boolean,reflect:!0})],Wz=[u({type:Boolean,attribute:"default-open"})],Kz=[u({reflect:!0})],jz=[u({type:Number,attribute:"side-offset"})],Uz=[u({type:Number})],Vz=[u({type:Number,attribute:"close-delay"})],qz=[u({type:Boolean,reflect:!0})],Dz=[k()],Bz=[k()],Nz=[kt({context:Ds}),k()],Yz){constructor(){super(...arguments);s(this,ht);s(this,wk,o(pt,8,this,!1)),o(pt,11,this);s(this,kk,o(pt,12,this,!1)),o(pt,15,this);s(this,Ck,o(pt,16,this,"top")),o(pt,19,this);s(this,Sk,o(pt,20,this,6)),o(pt,23,this);s(this,Ek,o(pt,24,this,500)),o(pt,27,this);s(this,$k,o(pt,28,this,0)),o(pt,31,this);s(this,Tk,o(pt,32,this,!1)),o(pt,35,this);s(this,Rk,o(pt,36,this,!1)),o(pt,39,this);s(this,Ik,o(pt,40,this)),o(pt,43,this);s(this,Ui);s(this,ji);s(this,Yp,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,Xp,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);s(this,zk,o(pt,44,this,{open:!1,triggerId:e(this,Yp),popupId:e(this,Xp),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>m(this,ht,Qz).call(this),closeTooltip:()=>m(this,ht,Jz).call(this),setTriggerEl:t=>m(this,ht,Zz).call(this,t)})),o(pt,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&h(this,ht,!0,Wp)}disconnectedCallback(){super.disconnectedCallback(),m(this,ht,Gp).call(this)}willUpdate(t){let r=this.open||e(this,ht,Kp);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==r||this._ctx.triggerEl!==e(this,ht,Lk))&&(this._ctx={...this._ctx,open:r,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:e(this,ht,Lk)})}render(){return f`<slot></slot>`}};pt=S(Yz),wk=new WeakMap,kk=new WeakMap,Ck=new WeakMap,Sk=new WeakMap,Ek=new WeakMap,$k=new WeakMap,Tk=new WeakMap,Rk=new WeakMap,ht=new WeakSet,Ik=new WeakMap,Ui=new WeakMap,ji=new WeakMap,Yp=new WeakMap,Xp=new WeakMap,zk=new WeakMap,Gp=function(){e(this,Ui)&&(clearTimeout(e(this,Ui)),h(this,Ui,void 0)),e(this,ji)&&(clearTimeout(e(this,ji)),h(this,ji,void 0))},Qz=function(){this.disabled||(m(this,ht,Gp).call(this),this.delay<=0?m(this,ht,Pk).call(this):h(this,Ui,setTimeout(()=>m(this,ht,Pk).call(this),this.delay)))},Jz=function(){m(this,ht,Gp).call(this),this.closeDelay<=0?m(this,ht,Mk).call(this):h(this,ji,setTimeout(()=>m(this,ht,Mk).call(this),this.closeDelay))},Pk=function(){e(this,ht,Kp)||(h(this,ht,!0,Wp),this.dispatchEvent(Ok({open:!0})))},Mk=function(){e(this,ht,Kp)&&(h(this,ht,!1,Wp),this.dispatchEvent(Ok({open:!1})))},Zz=function(t){h(this,ht,t,Xz)},l(pt,4,"open",Gz,oe,wk),l(pt,4,"defaultOpen",Wz,oe,kk),l(pt,4,"side",Kz,oe,Ck),l(pt,4,"sideOffset",jz,oe,Sk),l(pt,4,"delay",Uz,oe,Ek),l(pt,4,"closeDelay",Vz,oe,$k),l(pt,4,"disabled",qz,oe,Tk),_k=l(pt,20,"#internalOpen",Dz,ht,Rk),Kp=_k.get,Wp=_k.set,Ak=l(pt,20,"#triggerEl",Bz,ht,Ik),Lk=Ak.get,Xz=Ak.set,l(pt,4,"_ctx",Nz,oe,zk),C(pt,oe),b(oe,"tagName","dui-tooltip"),b(oe,"styles",[y,LP]);var PP=c`
|
|
7314
7338
|
:host {
|
|
7315
7339
|
display: contents;
|
|
7316
7340
|
}
|
|
7317
|
-
`,
|
|
7341
|
+
`,MP=c`
|
|
7318
7342
|
.Trigger {
|
|
7319
7343
|
display: inline-flex;
|
|
7320
7344
|
align-items: center;
|
|
@@ -7331,11 +7355,11 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7331
7355
|
.Trigger[data-disabled] {
|
|
7332
7356
|
cursor: not-allowed;
|
|
7333
7357
|
}
|
|
7334
|
-
`,
|
|
7358
|
+
`,t2,e2,Qp,Fk,$e,Zp,th,eh,rh,oh,fo,Hk,Jp,mo=class extends(e2=g,t2=[u({type:Boolean,reflect:!0})],e2){constructor(){super(...arguments);s(this,fo);s(this,Fk,o(Qp,8,this,!1)),o(Qp,11,this);s(this,$e,new U(this,{context:Ds,subscribe:!0}));s(this,Zp,()=>{e(this,fo,Jp)||(m(this,fo,Hk).call(this),e(this,$e).value?.openTooltip())});s(this,th,()=>{e(this,$e).value?.closeTooltip()});s(this,eh,()=>{e(this,fo,Jp)||(m(this,fo,Hk).call(this),e(this,$e).value?.openTooltip())});s(this,rh,()=>{e(this,$e).value?.closeTooltip()});s(this,oh,t=>{t.key==="Escape"&&e(this,$e).value?.open&&e(this,$e).value?.closeTooltip()})}render(){let t=e(this,$e).value?.open??!1,r=e(this,$e).value?.popupId??"",n=e(this,$e).value?.triggerId??"";return f`
|
|
7335
7359
|
<span
|
|
7336
7360
|
class="Trigger"
|
|
7337
7361
|
part="trigger"
|
|
7338
|
-
id="${
|
|
7362
|
+
id="${n}"
|
|
7339
7363
|
role="button"
|
|
7340
7364
|
tabindex="0"
|
|
7341
7365
|
aria-describedby="${t?r:""}"
|
|
@@ -7349,11 +7373,15 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7349
7373
|
>
|
|
7350
7374
|
<slot></slot>
|
|
7351
7375
|
</span>
|
|
7352
|
-
`}};Qp=S(
|
|
7376
|
+
`}};Qp=S(e2),Fk=new WeakMap,$e=new WeakMap,Zp=new WeakMap,th=new WeakMap,eh=new WeakMap,rh=new WeakMap,oh=new WeakMap,fo=new WeakSet,Hk=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;e(this,$e).value?.setTriggerEl(t)},Jp=function(){return this.disabled||(e(this,$e).value?.disabled??!1)},l(Qp,4,"disabled",t2,mo,Fk),C(Qp,mo),b(mo,"tagName","dui-tooltip-trigger"),b(mo,"styles",[y,PP,MP]);var FP=c`
|
|
7353
7377
|
:host {
|
|
7378
|
+
display: contents;
|
|
7379
|
+
}
|
|
7380
|
+
|
|
7381
|
+
.slot-wrapper {
|
|
7354
7382
|
display: none;
|
|
7355
7383
|
}
|
|
7356
|
-
`,
|
|
7384
|
+
`,HP=[c`
|
|
7357
7385
|
.Popup {
|
|
7358
7386
|
box-sizing: border-box;
|
|
7359
7387
|
pointer-events: auto;
|
|
@@ -7394,7 +7422,7 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7394
7422
|
left: 50%;
|
|
7395
7423
|
transform: translateX(-50%) rotate(180deg);
|
|
7396
7424
|
}
|
|
7397
|
-
`],
|
|
7425
|
+
`],r2,o2,i2,Ki,Nk,Bk,Dk,ih,s2,Ur,Uo,qs,Wi,n2,vo=class extends(i2=g,o2=[u({type:Boolean,attribute:"show-arrow"})],r2=[k()],i2){constructor(){super(...arguments);s(this,Ur);s(this,Nk,o(Ki,8,this,!0)),o(Ki,11,this);s(this,Bk,o(Ki,12,this,"top")),o(Ki,15,this);s(this,Uo,new U(this,{context:Ds,subscribe:!0}));s(this,qs,!1);s(this,Wi,new te(this,{getAnchor:()=>e(this,Uo).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:HP,contentContainer:".Content",onPosition:({placement:t})=>{let r=t.split("-")[0];r!==e(this,Ur,ih)&&h(this,Ur,r,s2)},renderPopup:t=>{let r=e(this,Uo).value?.popupId??"";return f`
|
|
7398
7426
|
<div
|
|
7399
7427
|
class="Popup"
|
|
7400
7428
|
id="${r}"
|
|
@@ -7404,9 +7432,9 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7404
7432
|
data-side="${e(this,Ur,ih)}"
|
|
7405
7433
|
>
|
|
7406
7434
|
<div class="Content"></div>
|
|
7407
|
-
${this.showArrow?
|
|
7435
|
+
${this.showArrow?hs(e(this,Ur,ih)):""}
|
|
7408
7436
|
</div>
|
|
7409
|
-
`}}))}updated(){let t=e(this,
|
|
7437
|
+
`}}))}updated(){let t=e(this,Uo).value?.open??!1;t&&!e(this,qs)?(m(this,Ur,n2).call(this),e(this,Wi).open()):!t&&e(this,qs)&&e(this,Wi).close(),h(this,qs,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Ki=S(i2),Nk=new WeakMap,Bk=new WeakMap,Ur=new WeakSet,Uo=new WeakMap,qs=new WeakMap,Wi=new WeakMap,n2=function(){let t=e(this,Uo).value?.side??"top";e(this,Wi).placement=t,e(this,Wi).offset=e(this,Uo).value?.sideOffset??6},l(Ki,4,"showArrow",o2,vo,Nk),Dk=l(Ki,20,"#side",r2,Ur,Bk),ih=Dk.get,s2=Dk.set,C(Ki,vo),b(vo,"tagName","dui-tooltip-popup"),b(vo,"styles",[y,FP]);var NP=c`
|
|
7410
7438
|
:host {
|
|
7411
7439
|
display: block;
|
|
7412
7440
|
}
|
|
@@ -7425,4 +7453,4 @@ var dO=Object.create;var nh=Object.defineProperty;var cO=Object.getOwnPropertyDe
|
|
|
7425
7453
|
display: -webkit-box;
|
|
7426
7454
|
-webkit-box-orient: vertical;
|
|
7427
7455
|
}
|
|
7428
|
-
`,
|
|
7456
|
+
`,a2,l2,d2,Gi,qk,Vk,jr=class extends(d2=g,l2=[u({attribute:"max-width"})],a2=[u({attribute:"max-lines",type:Number,reflect:!0})],d2){constructor(){super(...arguments);s(this,qk,o(Gi,8,this,"20rem")),o(Gi,11,this);s(this,Vk,o(Gi,12,this)),o(Gi,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,r=ys({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return f`<div part="root" style=${r}><slot></slot></div>`}};Gi=S(d2),qk=new WeakMap,Vk=new WeakMap,l(Gi,4,"maxWidth",l2,jr,qk),l(Gi,4,"maxLines",a2,jr,Vk),C(Gi,jr),b(jr,"tagName","dui-trunc"),b(jr,"styles",[y,NP]);var c2=[Zt,rr,or,on,ir,sn,qe,an,ln,dn,cn,pn,hn,un,_e,se,Gt,Ie,Ue,le,Ae,Er,Zr,$r,Ge,to,zn,On,Oe,cr,Mn,Ye,Fn,Hn,Nn,Ot,so,Oo,Pe,pr,nt,Bt,Fe,Qn,Ir,Jn,hr,ce,Zn,ao,ur,Xe,pe,ea,ke,po,Qe,Ce,qo,fa,va,ga,ba,ya,xa,wa,ka,Je,Ca,Sa,Xt,ho,Qt,Be,uo,vr,gr,_a,Dt,Se,ue,br,oe,mo,vo,jr];Xk({theme:bC,components:c2});export{c2 as allComponents,Xk as applyTheme,bC as defaultTheme};
|