@deepfuture/dui-cdn 0.0.13 → 0.0.15
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 +888 -453
- package/dui.min.js +602 -475
- package/package.json +1 -1
package/dui.min.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDescriptor;var T0=(n,o)=>(o=Symbol[n])?o:Symbol.for("Symbol."+n),Ti=n=>{throw TypeError(n)};var R0=(n,o,t)=>o in n?Vc(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t;var $0=(n,o)=>Vc(n,"name",{value:o,configurable:!0});var S=n=>[,,,tA(n?.[T0("metadata")]??null)],I0=["class","method","getter","setter","accessor","field","value","get","set"],Cs=n=>n!==void 0&&typeof n!="function"?Ti("Function expected"):n,rA=(n,o,t,e,a)=>({kind:I0[n],name:o,metadata:e,addInitializer:l=>t._?Ti("Already initialized"):a.push(Cs(l||null))}),C=(n,o)=>R0(o,T0("metadata"),n[3]),i=(n,o,t,e)=>{for(var a=0,l=n[o>>1],p=l&&l.length;a<p;a++)o&1?l[a].call(t):e=l[a].call(t,e);return e},d=(n,o,t,e,a,l)=>{var p,f,y,E,$,x=o&7,I=!!(o&8),R=!!(o&16),P=x>3?n.length+1:x?I?1:2:0,F=I0[x+5],X=x>3&&(n[P-1]=[]),q=n[P]||(n[P]=[]),z=x&&(!R&&!I&&(a=a.prototype),x<5&&(x>3||!R)&&eA(x<4?a:{get[t](){return r(this,l)},set[t](K){return h(this,l,K)}},t));x?R&&x<4&&$0(l,(x>2?"set ":x>1?"get ":"")+t):$0(a,t);for(var B=e.length-1;B>=0;B--)E=rA(x,t,y={},n[3],q),x&&(E.static=I,E.private=R,$=E.access={has:R?K=>oA(a,K):K=>t in K},x^3&&($.get=R?K=>(x^1?r:m)(K,a,x^4?l:z.get):K=>K[t]),x>2&&($.set=R?(K,qt)=>h(K,a,qt,x^4?l:z.set):(K,qt)=>K[t]=qt)),f=(0,e[B])(x?x<4?R?l:z[F]:x>4?void 0:{get:z.get,set:z.set}:a,E),y._=1,x^4||f===void 0?Cs(f)&&(x>4?X.unshift(f):x?R?l=f:z[F]=f:a=f):typeof f!="object"||f===null?Ti("Object expected"):(Cs(p=f.get)&&(z.get=p),Cs(p=f.set)&&(z.set=p),Cs(p=f.init)&&X.unshift(p));return x||C(n,a),z&&Vc(a,t,z),R?x^4?l:z:a},g=(n,o,t)=>R0(n,typeof o!="symbol"?o+"":o,t),Uc=(n,o,t)=>o.has(n)||Ti("Cannot "+t),oA=(n,o)=>Object(o)!==o?Ti('Cannot use the "in" operator on this value'):n.has(o),r=(n,o,t)=>(Uc(n,o,"read from private field"),t?t.call(n):o.get(n)),s=(n,o,t)=>o.has(n)?Ti("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(n):o.set(n,t),h=(n,o,t,e)=>(Uc(n,o,"write to private field"),e?e.call(n,t):o.set(n,t),t),m=(n,o,t)=>(Uc(n,o,"access private method"),t);var Ri=(n,o,t,e)=>({set _(a){h(n,o,a,t)},get _(){return r(n,o,e)}});var A0=null;function _0(){return A0}function O0({theme:n,components:o}){A0=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 o){let e=t.tagName;if(customElements.get(e))continue;let a=n.styles.get(e),p=[...Array.isArray(t.styles)?t.styles:t.styles?[t.styles]:[],n.base,...a?[a]:[]],f=class extends t{static styles=p};customElements.define(e,f)}}var En=globalThis,$n=En.ShadowRoot&&(En.ShadyCSS===void 0||En.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jc=Symbol(),L0=new WeakMap,Ss=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==jc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if($n&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=L0.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&L0.set(t,o))}return o}toString(){return this.cssText}},Tn=n=>new Ss(typeof n=="string"?n:n+"",void 0,jc),c=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,a,l)=>e+(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[l+1],n[0]);return new Ss(t,n,jc)},Rn=(n,o)=>{if($n)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=En.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,n.appendChild(e)}},Kc=$n?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return Tn(t)})(n):n;var{is:iA,defineProperty:sA,getOwnPropertyDescriptor:nA,getOwnPropertyNames:aA,getOwnPropertySymbols:lA,getPrototypeOf:dA}=Object,In=globalThis,P0=In.trustedTypes,cA=P0?P0.emptyScript:"",pA=In.reactiveElementPolyfillSupport,Es=(n,o)=>n,$s={toAttribute(n,o){switch(o){case Boolean:n=n?cA:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){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}},An=(n,o)=>!iA(n,o),z0={attribute:!0,type:String,converter:$s,reflect:!1,useDefault:!1,hasChanged:An};Symbol.metadata??=Symbol("metadata"),In.litPropertyMetadata??=new WeakMap;var Lr=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=z0){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&sA(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=nA(this.prototype,o)??{get(){return this[t]},set(p){this[t]=p}};return{get:a,set(p){let f=a?.call(this);l?.call(this,p),this.requestUpdate(o,f,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??z0}static _$Ei(){if(this.hasOwnProperty(Es("elementProperties")))return;let o=dA(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Es("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Es("properties"))){let t=this.properties,e=[...aA(t),...lA(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(Kc(a))}else o!==void 0&&t.push(Kc(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Rn(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$s).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),p=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$s;this._$Em=a;let f=p.fromAttribute(t,l.type);this[a]=f??this._$Ej?.get(a)??f,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let p=this.constructor;if(a===!1&&(l=this[o]),e??=p.getPropertyOptions(o),!((e.hasChanged??An)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(p._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},p){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,p??t??this[o]),l!==!0||p!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:p}=l,f=this[a];p!==!0||this._$AL.has(a)||f===void 0||this.C(a,void 0,l,f)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};Lr.elementStyles=[],Lr.shadowRootOptions={mode:"open"},Lr[Es("elementProperties")]=new Map,Lr[Es("finalized")]=new Map,pA?.({ReactiveElement:Lr}),(In.reactiveElementVersions??=[]).push("2.1.2");var Gc=globalThis,M0=n=>n,_n=Gc.trustedTypes,D0=_n?_n.createPolicy("lit-html",{createHTML:n=>n}):void 0,Yc="$lit$",Pr=`lit$${Math.random().toFixed(9).slice(2)}$`,Xc="?"+Pr,hA=`<${Xc}>`,zo=document,Rs=()=>zo.createComment(""),Is=n=>n===null||typeof n!="object"&&typeof n!="function",Qc=Array.isArray,V0=n=>Qc(n)||typeof n?.[Symbol.iterator]=="function",Wc=`[
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
1
|
+
var RA=Object.create;var gp=Object.defineProperty;var IA=Object.getOwnPropertyDescriptor;var ew=(n,o)=>(o=Symbol[n])?o:Symbol.for("Symbol."+n),Ai=n=>{throw TypeError(n)};var rw=(n,o,t)=>o in n?gp(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t;var tw=(n,o)=>gp(n,"name",{value:o,configurable:!0});var S=n=>[,,,RA(n?.[ew("metadata")]??null)],ow=["class","method","getter","setter","accessor","field","value","get","set"],Ss=n=>n!==void 0&&typeof n!="function"?Ai("Function expected"):n,AA=(n,o,t,e,a)=>({kind:ow[n],name:o,metadata:e,addInitializer:l=>t._?Ai("Already initialized"):a.push(Ss(l||null))}),C=(n,o)=>rw(o,ew("metadata"),n[3]),i=(n,o,t,e)=>{for(var a=0,l=n[o>>1],p=l&&l.length;a<p;a++)o&1?l[a].call(t):e=l[a].call(t,e);return e},d=(n,o,t,e,a,l)=>{var p,v,x,E,$,w=o&7,I=!!(o&8),R=!!(o&16),P=w>3?n.length+1:w?I?1:2:0,H=ow[w+5],Q=w>3&&(n[P-1]=[]),V=n[P]||(n[P]=[]),z=w&&(!R&&!I&&(a=a.prototype),w<5&&(w>3||!R)&&IA(w<4?a:{get[t](){return r(this,l)},set[t](W){return h(this,l,W)}},t));w?R&&w<4&&tw(l,(w>2?"set ":w>1?"get ":"")+t):tw(a,t);for(var D=e.length-1;D>=0;D--)E=AA(w,t,x={},n[3],V),w&&(E.static=I,E.private=R,$=E.access={has:R?W=>_A(a,W):W=>t in W},w^3&&($.get=R?W=>(w^1?r:m)(W,a,w^4?l:z.get):W=>W[t]),w>2&&($.set=R?(W,qt)=>h(W,a,qt,w^4?l:z.set):(W,qt)=>W[t]=qt)),v=(0,e[D])(w?w<4?R?l:z[H]:w>4?void 0:{get:z.get,set:z.set}:a,E),x._=1,w^4||v===void 0?Ss(v)&&(w>4?Q.unshift(v):w?R?l=v:z[H]=v:a=v):typeof v!="object"||v===null?Ai("Object expected"):(Ss(p=v.get)&&(z.get=p),Ss(p=v.set)&&(z.set=p),Ss(p=v.init)&&Q.unshift(p));return w||C(n,a),z&&gp(a,t,z),R?w^4?l:z:a},b=(n,o,t)=>rw(n,typeof o!="symbol"?o+"":o,t),bp=(n,o,t)=>o.has(n)||Ai("Cannot "+t),_A=(n,o)=>Object(o)!==o?Ai('Cannot use the "in" operator on this value'):n.has(o),r=(n,o,t)=>(bp(n,o,"read from private field"),t?t.call(n):o.get(n)),s=(n,o,t)=>o.has(n)?Ai("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(n):o.set(n,t),h=(n,o,t,e)=>(bp(n,o,"write to private field"),e?e.call(n,t):o.set(n,t),t),m=(n,o,t)=>(bp(n,o,"access private method"),t);var _i=(n,o,t,e)=>({set _(a){h(n,o,a,t)},get _(){return r(n,o,e)}});var iw=null;function sw(){return iw}function nw({theme:n,components:o}){iw=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 o){let e=t.tagName;if(customElements.get(e))continue;let a=n.styles.get(e),p=[...Array.isArray(t.styles)?t.styles:t.styles?[t.styles]:[],n.base,...a?[a]:[]],v=class extends t{static styles=p};customElements.define(e,v)}}var ea=globalThis,ra=ea.ShadowRoot&&(ea.ShadyCSS===void 0||ea.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yp=Symbol(),aw=new WeakMap,Es=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==yp)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(ra&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=aw.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&aw.set(t,o))}return o}toString(){return this.cssText}},oa=n=>new Es(typeof n=="string"?n:n+"",void 0,yp),c=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,a,l)=>e+(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[l+1],n[0]);return new Es(t,n,yp)},ia=(n,o)=>{if(ra)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=ea.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,n.appendChild(e)}},xp=ra?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return oa(t)})(n):n;var{is:OA,defineProperty:LA,getOwnPropertyDescriptor:PA,getOwnPropertyNames:zA,getOwnPropertySymbols:MA,getPrototypeOf:FA}=Object,sa=globalThis,lw=sa.trustedTypes,HA=lw?lw.emptyScript:"",NA=sa.reactiveElementPolyfillSupport,$s=(n,o)=>n,Ts={toAttribute(n,o){switch(o){case Boolean:n=n?HA:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){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}},na=(n,o)=>!OA(n,o),dw={attribute:!0,type:String,converter:Ts,reflect:!1,useDefault:!1,hasChanged:na};Symbol.metadata??=Symbol("metadata"),sa.litPropertyMetadata??=new WeakMap;var Hr=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=dw){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&LA(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=PA(this.prototype,o)??{get(){return this[t]},set(p){this[t]=p}};return{get:a,set(p){let v=a?.call(this);l?.call(this,p),this.requestUpdate(o,v,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??dw}static _$Ei(){if(this.hasOwnProperty($s("elementProperties")))return;let o=FA(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty($s("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($s("properties"))){let t=this.properties,e=[...zA(t),...MA(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(xp(a))}else o!==void 0&&t.push(xp(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ia(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:Ts).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),p=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Ts;this._$Em=a;let v=p.fromAttribute(t,l.type);this[a]=v??this._$Ej?.get(a)??v,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let p=this.constructor;if(a===!1&&(l=this[o]),e??=p.getPropertyOptions(o),!((e.hasChanged??na)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(p._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},p){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,p??t??this[o]),l!==!0||p!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:p}=l,v=this[a];p!==!0||this._$AL.has(a)||v===void 0||this.C(a,void 0,l,v)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};Hr.elementStyles=[],Hr.shadowRootOptions={mode:"open"},Hr[$s("elementProperties")]=new Map,Hr[$s("finalized")]=new Map,NA?.({ReactiveElement:Hr}),(sa.reactiveElementVersions??=[]).push("2.1.2");var kp=globalThis,cw=n=>n,aa=kp.trustedTypes,pw=aa?aa.createPolicy("lit-html",{createHTML:n=>n}):void 0,Cp="$lit$",Nr=`lit$${Math.random().toFixed(9).slice(2)}$`,Sp="?"+Nr,BA=`<${Sp}>`,Bo=document,Is=()=>Bo.createComment(""),As=n=>n===null||typeof n!="object"&&typeof n!="function",Ep=Array.isArray,gw=n=>Ep(n)||typeof n?.[Symbol.iterator]=="function",wp=`[
|
|
2
|
+
\f\r]`,Rs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hw=/-->/g,uw=/>/g,Ho=RegExp(`>|${wp}(?:([^\\s"'>=/]+)(${wp}*=${wp}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),mw=/'/g,fw=/"/g,bw=/^(?:script|style|textarea|title)$/i,$p=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),f=$p(1),ua=$p(2),s2=$p(3),Kt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),vw=new WeakMap,No=Bo.createTreeWalker(Bo,129);function yw(n,o){if(!Ep(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return pw!==void 0?pw.createHTML(o):o}var xw=(n,o)=>{let t=n.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",p=Rs;for(let v=0;v<t;v++){let x=n[v],E,$,w=-1,I=0;for(;I<x.length&&(p.lastIndex=I,$=p.exec(x),$!==null);)I=p.lastIndex,p===Rs?$[1]==="!--"?p=hw:$[1]!==void 0?p=uw:$[2]!==void 0?(bw.test($[2])&&(a=RegExp("</"+$[2],"g")),p=Ho):$[3]!==void 0&&(p=Ho):p===Ho?$[0]===">"?(p=a??Rs,w=-1):$[1]===void 0?w=-2:(w=p.lastIndex-$[2].length,E=$[1],p=$[3]===void 0?Ho:$[3]==='"'?fw:mw):p===fw||p===mw?p=Ho:p===hw||p===uw?p=Rs:(p=Ho,a=void 0);let R=p===Ho&&n[v+1].startsWith("/>")?" ":"";l+=p===Rs?x+BA:w>=0?(e.push(E),x.slice(0,w)+Cp+x.slice(w)+Nr+R):x+Nr+(w===-2?v:R)}return[yw(n,l+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},_s=class n{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,p=0,v=o.length-1,x=this.parts,[E,$]=xw(o,t);if(this.el=n.createElement(E,e),No.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=No.nextNode())!==null&&x.length<v;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(Cp)){let I=$[p++],R=a.getAttribute(w).split(Nr),P=/([.?@])?(.*)/.exec(I);x.push({type:1,index:l,name:P[2],strings:R,ctor:P[1]==="."?da:P[1]==="?"?ca:P[1]==="@"?pa:qo}),a.removeAttribute(w)}else w.startsWith(Nr)&&(x.push({type:6,index:l}),a.removeAttribute(w));if(bw.test(a.tagName)){let w=a.textContent.split(Nr),I=w.length-1;if(I>0){a.textContent=aa?aa.emptyScript:"";for(let R=0;R<I;R++)a.append(w[R],Is()),No.nextNode(),x.push({type:2,index:++l});a.append(w[I],Is())}}}else if(a.nodeType===8)if(a.data===Sp)x.push({type:2,index:l});else{let w=-1;for(;(w=a.data.indexOf(Nr,w+1))!==-1;)x.push({type:7,index:l}),w+=Nr.length-1}l++}}static createElement(o,t){let e=Bo.createElement("template");return e.innerHTML=o,e}};function Do(n,o,t=n,e){if(o===Kt)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=As(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(n),a._$AT(n,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=Do(n,a._$AS(n,o.values),a,e)),o}var la=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??Bo).importNode(t,!0);No.currentNode=a;let l=No.nextNode(),p=0,v=0,x=e[0];for(;x!==void 0;){if(p===x.index){let E;x.type===2?E=new Oi(l,l.nextSibling,this,o):x.type===1?E=new x.ctor(l,x.name,x.strings,this,o):x.type===6&&(E=new ha(l,this,o)),this._$AV.push(E),x=e[++v]}p!==x?.index&&(l=No.nextNode(),p++)}return No.currentNode=Bo,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Oi=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Do(this,o,t),As(o)?o===T||o==null||o===""?(this._$AH!==T&&this._$AR(),this._$AH=T):o!==this._$AH&&o!==Kt&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):gw(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==T&&As(this._$AH)?this._$AA.nextSibling.data=o:this.T(Bo.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=_s.createElement(yw(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new la(a,this),p=l.u(this.options);l.p(t),this.T(p),this._$AH=l}}_$AC(o){let t=vw.get(o.strings);return t===void 0&&vw.set(o.strings,t=new _s(o)),t}k(o){Ep(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new n(this.O(Is()),this.O(Is()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=cw(o).nextSibling;cw(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},qo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=T,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=T}_$AI(o,t=this,e,a){let l=this.strings,p=!1;if(l===void 0)o=Do(this,o,t,0),p=!As(o)||o!==this._$AH&&o!==Kt,p&&(this._$AH=o);else{let v=o,x,E;for(o=l[0],x=0;x<l.length-1;x++)E=Do(this,v[e+x],t,x),E===Kt&&(E=this._$AH[x]),p||=!As(E)||E!==this._$AH[x],E===T?o=T:o!==T&&(o+=(E??"")+l[x+1]),this._$AH[x]=E}p&&!a&&this.j(o)}j(o){o===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},da=class extends qo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===T?void 0:o}},ca=class extends qo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==T)}},pa=class extends qo{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=Do(this,o,t,0)??T)===Kt)return;let e=this._$AH,a=o===T&&e!==T||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==T&&(e===T||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},ha=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Do(this,o)}},ww={M:Cp,P:Nr,A:Sp,C:1,L:xw,R:la,D:gw,V:Do,I:Oi,H:qo,N:ca,U:pa,B:da,F:ha},DA=kp.litHtmlPolyfillSupport;DA?.(_s,Oi),(kp.litHtmlVersions??=[]).push("3.3.2");var ma=(n,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new Oi(o.insertBefore(Is(),l),l,void 0,t??{})}return a._$AI(n),a};var Tp=globalThis,g=class extends Hr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=ma(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Kt}};g._$litElement$=!0,g.finalized=!0,Tp.litElementHydrateSupport?.({LitElement:g});var qA=Tp.litElementPolyfillSupport;qA?.({LitElement:g});(Tp.litElementVersions??=[]).push("4.2.2");var Rp=c`
|
|
4
4
|
:host {
|
|
5
5
|
font-size: inherit;
|
|
6
6
|
letter-spacing: inherit;
|
|
7
7
|
font-optical-sizing: auto;
|
|
8
8
|
}
|
|
9
|
-
`;var
|
|
9
|
+
`;var Ip=c`
|
|
10
10
|
::slotted(:last-child) {
|
|
11
11
|
--accordion-item-border: none;
|
|
12
12
|
}
|
|
13
|
-
`;var
|
|
13
|
+
`;var kw={"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 L(n,o){let t=kw[n],e=o?.letterSpacing??t.letterSpacing,a=o?.lineHeight??t.lineHeight;return oa(`font-size: ${t.fontSize}; letter-spacing: ${e}; line-height: ${a};`)}var Ap=c`
|
|
14
14
|
/* ── Item ── */
|
|
15
15
|
|
|
16
16
|
[part="item"] {
|
|
@@ -97,7 +97,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
97
97
|
transition-duration: 0s;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
`;var
|
|
100
|
+
`;var _p=c`
|
|
101
101
|
/* =================================================================
|
|
102
102
|
* Two-axis variant system:
|
|
103
103
|
* variant → semantic intent (neutral, primary, danger)
|
|
@@ -269,7 +269,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
269
269
|
:host([data-open]) [part="root"]:not(:disabled):not([aria-disabled="true"]) {
|
|
270
270
|
background: oklch(from var(--foreground) l c h / 0.05);
|
|
271
271
|
}
|
|
272
|
-
`;var
|
|
272
|
+
`;var Op=c`
|
|
273
273
|
:host {
|
|
274
274
|
--switch-width: var(--space-9);
|
|
275
275
|
--switch-height: var(--space-5);
|
|
@@ -337,7 +337,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
337
337
|
[part="root"][data-checked] [part="thumb"] {
|
|
338
338
|
background: oklch(from var(--accent) 0.98 0.01 h);
|
|
339
339
|
}
|
|
340
|
-
`;var
|
|
340
|
+
`;var Lp=c`
|
|
341
341
|
/* =================================================================
|
|
342
342
|
* Two-axis variant system:
|
|
343
343
|
* variant → semantic intent (neutral, accent, danger)
|
|
@@ -418,7 +418,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
418
418
|
white-space: nowrap;
|
|
419
419
|
border: var(--border-width-thin) solid var(--badge-border);
|
|
420
420
|
}
|
|
421
|
-
`;var
|
|
421
|
+
`;var Pp=c`
|
|
422
422
|
.ScrollFade {
|
|
423
423
|
box-shadow: var(--scroll-fade-offset-x, 0) var(--scroll-fade-offset-y, 0)
|
|
424
424
|
var(--scroll-fade-blur-radius, var(--space-3))
|
|
@@ -461,7 +461,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
461
461
|
opacity: 0.8;
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
`;var
|
|
464
|
+
`;var zp=c`
|
|
465
465
|
/* ---- Chips (multi-select container) ---- */
|
|
466
466
|
|
|
467
467
|
.Chips {
|
|
@@ -603,7 +603,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
603
603
|
color: var(--text-2);
|
|
604
604
|
text-align: center;
|
|
605
605
|
}
|
|
606
|
-
`;var
|
|
606
|
+
`;var Mp=c`
|
|
607
607
|
.Popup {
|
|
608
608
|
background: var(--surface-3);
|
|
609
609
|
border: var(--border-width-thin) solid var(--border);
|
|
@@ -621,7 +621,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
621
621
|
.Menu {
|
|
622
622
|
padding: var(--space-1);
|
|
623
623
|
}
|
|
624
|
-
`;var
|
|
624
|
+
`;var Fp=c`
|
|
625
625
|
.Item {
|
|
626
626
|
--icon-size: var(--space-4);
|
|
627
627
|
--icon-color: var(--text-2);
|
|
@@ -656,7 +656,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
656
656
|
opacity: 0.4;
|
|
657
657
|
cursor: not-allowed;
|
|
658
658
|
}
|
|
659
|
-
`;var
|
|
659
|
+
`;var Hp=c``;var Np=c`
|
|
660
660
|
.Popup {
|
|
661
661
|
padding: var(--space-1);
|
|
662
662
|
border-radius: var(--radius-md);
|
|
@@ -679,7 +679,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
679
679
|
stroke: var(--border);
|
|
680
680
|
stroke-width: 1px;
|
|
681
681
|
}
|
|
682
|
-
`;var
|
|
682
|
+
`;var Bp=c``;var Dp=c`
|
|
683
683
|
.Popup {
|
|
684
684
|
padding: var(--space-0_5) var(--space-1_5);
|
|
685
685
|
border-radius: var(--radius-sm);
|
|
@@ -706,7 +706,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
706
706
|
fill: none;
|
|
707
707
|
stroke: none;
|
|
708
708
|
}
|
|
709
|
-
`;var
|
|
709
|
+
`;var qp=c``;var Vp=c`
|
|
710
710
|
/* ── Backdrop ── */
|
|
711
711
|
|
|
712
712
|
[part="backdrop"] {
|
|
@@ -767,7 +767,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
767
767
|
transition-duration: 0s;
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
`;var
|
|
770
|
+
`;var Up=c``;var jp=c`
|
|
771
771
|
/* ── Backdrop ── */
|
|
772
772
|
|
|
773
773
|
[part="backdrop"] {
|
|
@@ -828,18 +828,18 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
828
828
|
transition-duration: 0s;
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
`;var
|
|
831
|
+
`;var Kp=c`
|
|
832
832
|
[part="root"] {
|
|
833
833
|
gap: var(--space-2);
|
|
834
834
|
${L("sm")}
|
|
835
835
|
font-family: var(--font-sans);
|
|
836
836
|
color: var(--text-2);
|
|
837
837
|
}
|
|
838
|
-
`;var
|
|
838
|
+
`;var Wp=c`
|
|
839
839
|
[part="root"] {
|
|
840
840
|
gap: var(--space-1_5);
|
|
841
841
|
}
|
|
842
|
-
`;var
|
|
842
|
+
`;var Gp=c`
|
|
843
843
|
[part="root"] {
|
|
844
844
|
color: var(--text-2);
|
|
845
845
|
}
|
|
@@ -853,22 +853,22 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
853
853
|
[part="root"] ::slotted(a:hover) {
|
|
854
854
|
color: var(--text-1);
|
|
855
855
|
}
|
|
856
|
-
`;var
|
|
856
|
+
`;var Yp=c`
|
|
857
857
|
[part="root"] {
|
|
858
858
|
color: var(--text-1);
|
|
859
859
|
font-weight: var(--font-weight-regular);
|
|
860
860
|
}
|
|
861
|
-
`;var
|
|
861
|
+
`;var Xp=c`
|
|
862
862
|
[part="root"] {
|
|
863
863
|
--icon-size: var(--space-3_5);
|
|
864
864
|
color: color-mix(in oklch, var(--text-2) 50%, transparent);
|
|
865
865
|
}
|
|
866
|
-
`;var
|
|
866
|
+
`;var Qp=c`
|
|
867
867
|
[part="root"] {
|
|
868
868
|
color: var(--text-2);
|
|
869
869
|
width: var(--space-4);
|
|
870
870
|
}
|
|
871
|
-
`;var
|
|
871
|
+
`;var Jp=c`
|
|
872
872
|
:host {
|
|
873
873
|
--checkbox-size: var(--space-4_5);
|
|
874
874
|
gap: var(--space-2);
|
|
@@ -920,7 +920,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
920
920
|
width: var(--space-3);
|
|
921
921
|
height: var(--space-3);
|
|
922
922
|
}
|
|
923
|
-
`;var
|
|
923
|
+
`;var Zp=c`
|
|
924
924
|
[part="root"] {
|
|
925
925
|
gap: var(--space-1);
|
|
926
926
|
}
|
|
@@ -928,7 +928,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
928
928
|
[part="root"][data-disabled] {
|
|
929
929
|
opacity: 0.4;
|
|
930
930
|
}
|
|
931
|
-
`;var
|
|
931
|
+
`;var th=c`
|
|
932
932
|
/* ── Trigger ── */
|
|
933
933
|
|
|
934
934
|
[part="trigger"] {
|
|
@@ -1006,7 +1006,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1006
1006
|
transition-duration: 0s;
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
|
-
`;var
|
|
1009
|
+
`;var eh=c`
|
|
1010
1010
|
/* ── Root ── */
|
|
1011
1011
|
|
|
1012
1012
|
[part="root"] {
|
|
@@ -1053,7 +1053,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1053
1053
|
[part="right"] {
|
|
1054
1054
|
gap: var(--space-2);
|
|
1055
1055
|
}
|
|
1056
|
-
`;var
|
|
1056
|
+
`;var rh=c`
|
|
1057
1057
|
:host {
|
|
1058
1058
|
--slider-track-height: var(--space-1_5);
|
|
1059
1059
|
--slider-thumb-size: var(--space-4_5);
|
|
@@ -1109,7 +1109,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1109
1109
|
0 0 0 var(--focus-ring-offset) var(--background),
|
|
1110
1110
|
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
|
|
1111
1111
|
}
|
|
1112
|
-
`;var
|
|
1112
|
+
`;var oh=c`
|
|
1113
1113
|
:host {
|
|
1114
1114
|
--spinner-size: var(--component-height-xxs);
|
|
1115
1115
|
--spinner-color: currentColor;
|
|
@@ -1131,7 +1131,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1131
1131
|
animation-duration: 3s;
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
`;var
|
|
1134
|
+
`;var ih=c`
|
|
1135
1135
|
[part="tab"] {
|
|
1136
1136
|
color: var(--text-2);
|
|
1137
1137
|
${L("sm",{lineHeight:"var(--line-height-snug)"})}
|
|
@@ -1163,7 +1163,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1163
1163
|
[part="tab"][data-disabled] {
|
|
1164
1164
|
opacity: 0.4;
|
|
1165
1165
|
}
|
|
1166
|
-
`;var
|
|
1166
|
+
`;var sh=c``;var nh=c`
|
|
1167
1167
|
:host {
|
|
1168
1168
|
height: var(--space-6);
|
|
1169
1169
|
border-radius: var(--radius-sm);
|
|
@@ -1171,7 +1171,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1171
1171
|
transition-duration: var(--duration-normal);
|
|
1172
1172
|
transition-timing-function: var(--ease-in-out-3);
|
|
1173
1173
|
}
|
|
1174
|
-
`;var
|
|
1174
|
+
`;var ah=c`
|
|
1175
1175
|
[part="list"] {
|
|
1176
1176
|
padding-inline: 0;
|
|
1177
1177
|
gap: 0;
|
|
@@ -1182,7 +1182,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1182
1182
|
padding-inline: 0;
|
|
1183
1183
|
padding-block: var(--space-1);
|
|
1184
1184
|
}
|
|
1185
|
-
`;var
|
|
1185
|
+
`;var lh=c`
|
|
1186
1186
|
[part="panel"] {
|
|
1187
1187
|
transition-property: box-shadow;
|
|
1188
1188
|
transition-duration: var(--duration-fast);
|
|
@@ -1194,7 +1194,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1194
1194
|
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
|
|
1195
1195
|
border-radius: var(--radius-md);
|
|
1196
1196
|
}
|
|
1197
|
-
`;var
|
|
1197
|
+
`;var dh=c`
|
|
1198
1198
|
:host {
|
|
1199
1199
|
--font-size: var(--font-size-sm);
|
|
1200
1200
|
}
|
|
@@ -1269,13 +1269,13 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1269
1269
|
:host([variant="ghost"]) [part="textarea"]:focus-visible {
|
|
1270
1270
|
box-shadow: none;
|
|
1271
1271
|
}
|
|
1272
|
-
`;var
|
|
1272
|
+
`;var ch=c`
|
|
1273
1273
|
[part="root"] {
|
|
1274
1274
|
font-family: var(--font-sans);
|
|
1275
1275
|
${L("sm")}
|
|
1276
1276
|
color: var(--text-1);
|
|
1277
1277
|
}
|
|
1278
|
-
`;var
|
|
1278
|
+
`;var ph=c``;var hh=c`
|
|
1279
1279
|
:host {
|
|
1280
1280
|
--avatar-bg: var(--surface-1);
|
|
1281
1281
|
--avatar-fg: var(--text-2);
|
|
@@ -1295,7 +1295,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1295
1295
|
font-weight: var(--font-weight-medium);
|
|
1296
1296
|
line-height: var(--line-height-none);
|
|
1297
1297
|
}
|
|
1298
|
-
`;var
|
|
1298
|
+
`;var uh=c``;var mh=c`
|
|
1299
1299
|
[part="input"] {
|
|
1300
1300
|
padding: var(--space-2);
|
|
1301
1301
|
font-family: var(--font-sans);
|
|
@@ -1346,7 +1346,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1346
1346
|
-webkit-text-fill-color: var(--text-1);
|
|
1347
1347
|
transition: background-color 5000s ease-in-out 0s;
|
|
1348
1348
|
}
|
|
1349
|
-
`;var
|
|
1349
|
+
`;var fh=c`
|
|
1350
1350
|
:host {
|
|
1351
1351
|
--radio-size: var(--space-4_5);
|
|
1352
1352
|
gap: var(--space-2);
|
|
@@ -1392,11 +1392,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1392
1392
|
border-radius: 50%;
|
|
1393
1393
|
background: oklch(from var(--accent) 0.98 0.01 h);
|
|
1394
1394
|
}
|
|
1395
|
-
`;var
|
|
1395
|
+
`;var vh=c`
|
|
1396
1396
|
[part="root"] {
|
|
1397
1397
|
gap: var(--space-1);
|
|
1398
1398
|
}
|
|
1399
|
-
`;var
|
|
1399
|
+
`;var gh=c`
|
|
1400
1400
|
:host([disabled]) {
|
|
1401
1401
|
opacity: 0.4;
|
|
1402
1402
|
}
|
|
@@ -1427,7 +1427,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1427
1427
|
border-color: var(--accent);
|
|
1428
1428
|
background: var(--accent-subtle);
|
|
1429
1429
|
}
|
|
1430
|
-
`;var
|
|
1430
|
+
`;var bh=c`
|
|
1431
1431
|
.Trigger {
|
|
1432
1432
|
height: var(--component-height-md);
|
|
1433
1433
|
gap: var(--space-2);
|
|
@@ -1520,7 +1520,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1520
1520
|
.ItemIndicator dui-icon {
|
|
1521
1521
|
--icon-size: var(--space-3_5);
|
|
1522
1522
|
}
|
|
1523
|
-
`;var
|
|
1523
|
+
`;var yh=c``;var xh=c`
|
|
1524
1524
|
.Popup {
|
|
1525
1525
|
padding: var(--space-4);
|
|
1526
1526
|
border-radius: var(--radius-md);
|
|
@@ -1544,7 +1544,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1544
1544
|
stroke: var(--border);
|
|
1545
1545
|
stroke-width: 1px;
|
|
1546
1546
|
}
|
|
1547
|
-
`;var
|
|
1547
|
+
`;var wh=c`
|
|
1548
1548
|
.DataTable {
|
|
1549
1549
|
gap: var(--space-2);
|
|
1550
1550
|
}
|
|
@@ -1655,13 +1655,13 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1655
1655
|
0 0 0 var(--focus-ring-offset) var(--background),
|
|
1656
1656
|
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
|
|
1657
1657
|
}
|
|
1658
|
-
`;var
|
|
1658
|
+
`;var kh=c`
|
|
1659
1659
|
:host {
|
|
1660
1660
|
border-radius: var(--radius-md);
|
|
1661
1661
|
background: var(--surface-3);
|
|
1662
1662
|
color: var(--text-1);
|
|
1663
1663
|
}
|
|
1664
|
-
`;var
|
|
1664
|
+
`;var Ch=c`
|
|
1665
1665
|
.InputWrapper {
|
|
1666
1666
|
gap: var(--space-2);
|
|
1667
1667
|
border-bottom: var(--border-width-thin) solid var(--border);
|
|
@@ -1683,7 +1683,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1683
1683
|
.Input::placeholder {
|
|
1684
1684
|
color: var(--text-3);
|
|
1685
1685
|
}
|
|
1686
|
-
`;var
|
|
1686
|
+
`;var Sh=c`
|
|
1687
1687
|
.Item {
|
|
1688
1688
|
gap: var(--space-2);
|
|
1689
1689
|
border-radius: var(--radius-sm);
|
|
@@ -1705,7 +1705,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1705
1705
|
--icon-size: var(--space-4);
|
|
1706
1706
|
color: var(--text-2);
|
|
1707
1707
|
}
|
|
1708
|
-
`;var
|
|
1708
|
+
`;var Eh=c`
|
|
1709
1709
|
dui-scroll-area {
|
|
1710
1710
|
max-height: calc(var(--space-5) * 15);
|
|
1711
1711
|
height: auto;
|
|
@@ -1714,7 +1714,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1714
1714
|
.List {
|
|
1715
1715
|
padding: var(--space-1) 0;
|
|
1716
1716
|
}
|
|
1717
|
-
`;var
|
|
1717
|
+
`;var $h=c`
|
|
1718
1718
|
.Group {
|
|
1719
1719
|
padding: var(--space-1_5);
|
|
1720
1720
|
}
|
|
@@ -1725,24 +1725,24 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1725
1725
|
font-weight: var(--font-weight-medium);
|
|
1726
1726
|
color: var(--text-2);
|
|
1727
1727
|
}
|
|
1728
|
-
`;var
|
|
1728
|
+
`;var Th=c`
|
|
1729
1729
|
.Empty {
|
|
1730
1730
|
padding: var(--space-6);
|
|
1731
1731
|
${L("sm")}
|
|
1732
1732
|
color: var(--text-2);
|
|
1733
1733
|
}
|
|
1734
|
-
`;var
|
|
1734
|
+
`;var Rh=c`
|
|
1735
1735
|
.Separator {
|
|
1736
1736
|
height: var(--border-width-thin);
|
|
1737
1737
|
margin-inline: calc(-1 * var(--space-1));
|
|
1738
1738
|
background: var(--border);
|
|
1739
1739
|
}
|
|
1740
|
-
`;var
|
|
1740
|
+
`;var Ih=c`
|
|
1741
1741
|
.Shortcut {
|
|
1742
1742
|
${L("xs")}
|
|
1743
1743
|
color: var(--text-2);
|
|
1744
1744
|
}
|
|
1745
|
-
`;var
|
|
1745
|
+
`;var Ah=c`
|
|
1746
1746
|
:host {
|
|
1747
1747
|
--sidebar-width: var(--space-64);
|
|
1748
1748
|
--sidebar-width-mobile: var(--space-72);
|
|
@@ -1760,7 +1760,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1760
1760
|
--sidebar-muted-fg: var(--text-2);
|
|
1761
1761
|
--sidebar-ring: var(--accent);
|
|
1762
1762
|
}
|
|
1763
|
-
`;var
|
|
1763
|
+
`;var _h=c`
|
|
1764
1764
|
/* ── Desktop Outer ── */
|
|
1765
1765
|
|
|
1766
1766
|
.DesktopOuter {
|
|
@@ -1848,21 +1848,21 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1848
1848
|
box-shadow: var(--shadow-lg);
|
|
1849
1849
|
transition: transform var(--duration-normal) var(--ease-out-3);
|
|
1850
1850
|
}
|
|
1851
|
-
`;var
|
|
1851
|
+
`;var Oh=c`
|
|
1852
1852
|
dui-button {
|
|
1853
1853
|
--button-width: var(--button-height);
|
|
1854
1854
|
--button-padding-x: 0;
|
|
1855
1855
|
--button-gap: 0;
|
|
1856
1856
|
}
|
|
1857
|
-
`;var
|
|
1857
|
+
`;var Lh=c``;var Ph=c`
|
|
1858
1858
|
:host {
|
|
1859
1859
|
margin-bottom: var(--sidebar-header-content-gap);
|
|
1860
1860
|
}
|
|
1861
|
-
`;var
|
|
1861
|
+
`;var zh=c``;var Mh=c`
|
|
1862
1862
|
:host {
|
|
1863
1863
|
padding: var(--sidebar-group-padding-y) 0;
|
|
1864
1864
|
}
|
|
1865
|
-
`;var
|
|
1865
|
+
`;var Fh=c`
|
|
1866
1866
|
:host {
|
|
1867
1867
|
margin-left: var(--sidebar-group-label-inset);
|
|
1868
1868
|
height: var(--component-height-sm);
|
|
@@ -1878,11 +1878,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1878
1878
|
transition-duration: var(--duration-normal);
|
|
1879
1879
|
transition-timing-function: var(--ease-out-3);
|
|
1880
1880
|
}
|
|
1881
|
-
`;var
|
|
1881
|
+
`;var Hh=c`
|
|
1882
1882
|
.Menu {
|
|
1883
1883
|
gap: var(--space-px);
|
|
1884
1884
|
}
|
|
1885
|
-
`;var
|
|
1885
|
+
`;var Nh=c``;var Bh=c`
|
|
1886
1886
|
:host {
|
|
1887
1887
|
--smb-height: var(--component-height-md);
|
|
1888
1888
|
--smb-padding-x: var(--sidebar-button-inset);
|
|
@@ -1954,13 +1954,13 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1954
1954
|
font-weight: var(--font-weight-medium);
|
|
1955
1955
|
--icon-color: var(--sidebar-fg);
|
|
1956
1956
|
}
|
|
1957
|
-
`;var
|
|
1957
|
+
`;var Dh=c`
|
|
1958
1958
|
.Separator {
|
|
1959
1959
|
height: var(--border-width-thin);
|
|
1960
1960
|
margin: var(--space-2) var(--space-2);
|
|
1961
1961
|
background: var(--sidebar-separator);
|
|
1962
1962
|
}
|
|
1963
|
-
`;var
|
|
1963
|
+
`;var qh=c``;var Vh=c`
|
|
1964
1964
|
[part="root"] {
|
|
1965
1965
|
border: none;
|
|
1966
1966
|
}
|
|
@@ -1975,7 +1975,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
1975
1975
|
height: 100%;
|
|
1976
1976
|
border-left: var(--border-width-thin) solid var(--border);
|
|
1977
1977
|
}
|
|
1978
|
-
`;var
|
|
1978
|
+
`;var Uh=c`
|
|
1979
1979
|
:host {
|
|
1980
1980
|
--progress-height: var(--space-2);
|
|
1981
1981
|
}
|
|
@@ -2005,7 +2005,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
2005
2005
|
left: 100%;
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
|
-
`;var
|
|
2008
|
+
`;var jh=c`
|
|
2009
2009
|
/* --_select / --_interact alpha overlay pattern */
|
|
2010
2010
|
|
|
2011
2011
|
[part="root"] {
|
|
@@ -2053,13 +2053,13 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
2053
2053
|
[part="root"]:disabled {
|
|
2054
2054
|
opacity: 0.4;
|
|
2055
2055
|
}
|
|
2056
|
-
`;var
|
|
2056
|
+
`;var Kh=c`
|
|
2057
2057
|
[part="root"] {
|
|
2058
2058
|
gap: var(--space-1);
|
|
2059
2059
|
border-radius: var(--radius-md);
|
|
2060
2060
|
padding: var(--space-0_5);
|
|
2061
2061
|
}
|
|
2062
|
-
`;var
|
|
2062
|
+
`;var Wh=c`
|
|
2063
2063
|
[part="root"] {
|
|
2064
2064
|
border: var(--border-width-thin) solid var(--border);
|
|
2065
2065
|
border-radius: var(--radius-md);
|
|
@@ -2113,7 +2113,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
2113
2113
|
[part="increment"]:disabled {
|
|
2114
2114
|
opacity: 0.4;
|
|
2115
2115
|
}
|
|
2116
|
-
`;var
|
|
2116
|
+
`;var Gh=c`
|
|
2117
2117
|
[part="root"] {
|
|
2118
2118
|
gap: var(--space-1);
|
|
2119
2119
|
border: var(--border-width-thin) solid var(--border);
|
|
@@ -2121,7 +2121,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
2121
2121
|
background: var(--background);
|
|
2122
2122
|
padding: var(--space-1);
|
|
2123
2123
|
}
|
|
2124
|
-
`;var
|
|
2124
|
+
`;var Yh=c`
|
|
2125
2125
|
[part="root"] {
|
|
2126
2126
|
padding: var(--space-3);
|
|
2127
2127
|
font-family: var(--font-sans);
|
|
@@ -2209,7 +2209,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
2209
2209
|
0 0 0 var(--focus-ring-offset) var(--background),
|
|
2210
2210
|
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
|
|
2211
2211
|
}
|
|
2212
|
-
`;var
|
|
2212
|
+
`;var Cw=`/* =================================================================
|
|
2213
2213
|
* DUI Prose \u2014 Rich-text / markdown content styles
|
|
2214
2214
|
* =================================================================
|
|
2215
2215
|
* Apply class="dui-prose" to any container with rendered HTML
|
|
@@ -2459,7 +2459,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
2459
2459
|
cursor: pointer;
|
|
2460
2460
|
font-weight: var(--font-weight-medium);
|
|
2461
2461
|
}
|
|
2462
|
-
`;var
|
|
2462
|
+
`;var fa=new CSSStyleSheet;fa.replaceSync(Cw);var Sw=`/* =================================================================
|
|
2463
2463
|
* DUI Design Tokens
|
|
2464
2464
|
* =================================================================
|
|
2465
2465
|
* Combined token system: spacing, typography, borders, elevation,
|
|
@@ -2820,7 +2820,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
2820
2820
|
-webkit-font-smoothing: antialiased;
|
|
2821
2821
|
-moz-osx-font-smoothing: grayscale;
|
|
2822
2822
|
}
|
|
2823
|
-
`;var
|
|
2823
|
+
`;var Ew=`/* =================================================================
|
|
2824
2824
|
* CSS @property Declarations
|
|
2825
2825
|
* =================================================================
|
|
2826
2826
|
* Typed API surface for theme-default's component-level CSS custom
|
|
@@ -3182,8 +3182,8 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3182
3182
|
inherits: true;
|
|
3183
3183
|
initial-value: 0.5rem;
|
|
3184
3184
|
}
|
|
3185
|
-
`;var
|
|
3186
|
-
`+
|
|
3185
|
+
`;var Xh=new CSSStyleSheet;Xh.replaceSync(Ew+`
|
|
3186
|
+
`+Sw);var $w={tokens:Xh,base:Rp,prose:fa,styles:new Map([["dui-accordion",Ip],["dui-accordion-item",Ap],["dui-button",_p],["dui-switch",Op],["dui-badge",Lp],["dui-scroll-area",Pp],["dui-combobox",zp],["dui-menu",Mp],["dui-menu-item",Fp],["dui-popover",Hp],["dui-popover-popup",Np],["dui-tooltip",Bp],["dui-tooltip-popup",Dp],["dui-dialog",qp],["dui-dialog-popup",Vp],["dui-alert-dialog",Up],["dui-alert-dialog-popup",jp],["dui-breadcrumb",Kp],["dui-breadcrumb-item",Wp],["dui-breadcrumb-link",Gp],["dui-breadcrumb-page",Yp],["dui-breadcrumb-separator",Xp],["dui-breadcrumb-ellipsis",Qp],["dui-checkbox",Jp],["dui-checkbox-group",Zp],["dui-collapsible",th],["dui-toolbar",eh],["dui-slider",rh],["dui-spinner",oh],["dui-tab",ih],["dui-tabs",sh],["dui-tabs-indicator",nh],["dui-tabs-list",ah],["dui-tabs-panel",lh],["dui-textarea",dh],["dui-trunc",ch],["dui-link",ph],["dui-avatar",hh],["dui-portal",uh],["dui-input",mh],["dui-radio",fh],["dui-radio-group",vh],["dui-dropzone",gh],["dui-select",bh],["dui-preview-card",yh],["dui-preview-card-popup",xh],["dui-data-table",wh],["dui-command",kh],["dui-command-input",Ch],["dui-command-item",Sh],["dui-command-list",Eh],["dui-command-group",$h],["dui-command-empty",Th],["dui-command-separator",Rh],["dui-command-shortcut",Ih],["dui-sidebar-provider",Ah],["dui-sidebar",_h],["dui-sidebar-trigger",Oh],["dui-sidebar-content",Lh],["dui-sidebar-header",Ph],["dui-sidebar-footer",zh],["dui-sidebar-group",Mh],["dui-sidebar-group-label",Fh],["dui-sidebar-menu",Hh],["dui-sidebar-menu-item",Nh],["dui-sidebar-menu-button",Bh],["dui-sidebar-separator",Dh],["dui-sidebar-inset",qh],["dui-separator",Vh],["dui-progress",Uh],["dui-toggle",jh],["dui-toggle-group",Kh],["dui-number-field",Wh],["dui-menubar",Gh],["dui-calendar",Yh]])};var VA={attribute:!0,type:String,converter:Ts,reflect:!1,hasChanged:na},UA=(n=VA,o,t)=>{let{kind:e,metadata:a}=t,l=globalThis.litPropertyMetadata.get(a);if(l===void 0&&globalThis.litPropertyMetadata.set(a,l=new Map),e==="setter"&&((n=Object.create(n)).wrapped=!0),l.set(t.name,n),e==="accessor"){let{name:p}=t;return{set(v){let x=o.get.call(this);o.set.call(this,v),this.requestUpdate(p,x,n,!0,v)},init(v){return v!==void 0&&this.C(p,void 0,n,v),v}}}if(e==="setter"){let{name:p}=t;return function(v){let x=this[p];o.call(this,v),this.requestUpdate(p,x,n,!0,v)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?UA(n,o,t):((e,a,l)=>{let p=a.hasOwnProperty(l);return a.constructor.createProperty(l,e),p?Object.getOwnPropertyDescriptor(a,l):void 0})(n,o,t)}function k(n){return u({...n,state:!0,attribute:!1})}var lo=class extends Event{constructor(o,t,e,a){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t,this.callback=e,this.subscribe=a??!1}};var q=class{constructor(o,t,e,a){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,p)=>{this.unsubscribe&&(this.unsubscribe!==p&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,p)),this.unsubscribe=p},this.host=o,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=a??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new lo(this.context,this.host,this.t,this.subscribe))}};var ga=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var Qh=class extends Event{constructor(o,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t}},Li=class extends ga{constructor(o,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=a=>{if(a.context!==this.context)return;let l=a.contextTarget??a.composedPath()[0];l!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,l,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;let l=new Set;for(let[p,{consumerHost:v}]of this.subscriptions)l.has(p)||(l.add(p),v.dispatchEvent(new lo(this.context,v,p,!0)));a.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Qh(this.context,this.host))}};function bt({context:n}){return(o,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return o.get.call(this)},set(a){return e.get(this).setValue(a),o.set.call(this,a)},init(a){return e.set(this,new Li(this,{context:n,initialValue:a})),a}};{o.constructor.addInitializer(p=>{e.set(p,new Li(p,{context:n}))});let a=Object.getOwnPropertyDescriptor(o,t),l;if(a===void 0){let p=new WeakMap;l={get(){return p.get(this)},set(v){e.get(this).setValue(v),p.set(this,v)},configurable:!0,enumerable:!0}}else{let p=a.set;l={...a,set(v){e.get(this).setValue(v),p?.call(this,v)}}}return void Object.defineProperty(o,t,l)}}}function ot({context:n,subscribe:o}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new q(this,{context:n,callback:a=>{t.set.call(this,a)},subscribe:o})}):t.constructor.addInitializer(a=>{new q(a,{context:n,callback:l=>{a[e]=l},subscribe:o})})}}var y=c`
|
|
3187
3187
|
* {
|
|
3188
3188
|
box-sizing: border-box;
|
|
3189
3189
|
}
|
|
@@ -3251,7 +3251,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3251
3251
|
scroll-behavior: auto !important;
|
|
3252
3252
|
}
|
|
3253
3253
|
}
|
|
3254
|
-
`;var _=(n,o={})=>t=>new CustomEvent(n,{...o,detail:t});var
|
|
3254
|
+
`;var _=(n,o={})=>t=>new CustomEvent(n,{...o,detail:t});var ba=Symbol("dui-accordion");var Fw=_("value-change",{bubbles:!0,composed:!0}),jA=c`
|
|
3255
3255
|
:host {
|
|
3256
3256
|
display: block;
|
|
3257
3257
|
}
|
|
@@ -3260,7 +3260,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3260
3260
|
display: flex;
|
|
3261
3261
|
flex-direction: column;
|
|
3262
3262
|
}
|
|
3263
|
-
`,
|
|
3263
|
+
`,Tw,Rw,Iw,Aw,_w,Ow,Lw,Pw,zw,Mw,ht,Jh,Zh,tu,eu,ru,ou,iu,su,nu,Hw,lu,We,Pi,ur,Os,xa,wa,ka,Ca,au,ya,Wt=class extends(Mw=g,zw=[u({type:Array})],Pw=[u({type:Array,attribute:"default-value"})],Lw=[u({type:Boolean})],Ow=[u({type:Boolean})],_w=[u({type:Boolean,attribute:"loop-focus"})],Aw=[u({type:String})],Iw=[u({type:Boolean,attribute:"keep-mounted"})],Rw=[k()],Tw=[bt({context:ba}),k()],Mw){constructor(){super(...arguments);s(this,We);s(this,Jh,i(ht,8,this)),i(ht,11,this);s(this,Zh,i(ht,12,this,[])),i(ht,15,this);s(this,tu,i(ht,16,this,!1)),i(ht,19,this);s(this,eu,i(ht,20,this,!1)),i(ht,23,this);s(this,ru,i(ht,24,this,!0)),i(ht,27,this);s(this,ou,i(ht,28,this,"vertical")),i(ht,31,this);s(this,iu,i(ht,32,this,!1)),i(ht,35,this);s(this,su,i(ht,36,this,[])),i(ht,39,this);s(this,Pi,new Map);s(this,ur,[]);s(this,Os,()=>this.value??r(this,We,Hw));s(this,xa,t=>{let e=[...r(this,Os).call(this)],a=e.indexOf(t),l;a>=0?l=e.filter(p=>p!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&h(this,We,l,lu),this.dispatchEvent(Fw(l))});s(this,wa,(t,e)=>{r(this,Pi).set(t,e),r(this,ur).includes(t)||r(this,ur).push(t)});s(this,ka,t=>{r(this,Pi).delete(t),h(this,ur,r(this,ur).filter(e=>e!==t))});s(this,Ca,(t,e)=>{let a=r(this,ur).indexOf(t);if(a===-1)return;let l=r(this,ur).length,p;switch(e){case"next":a<l-1?p=a+1:this.loopFocus&&(p=0);break;case"prev":a>0?p=a-1:this.loopFocus&&(p=l-1);break;case"first":p=0;break;case"last":p=l-1;break}if(p!==void 0){let v=r(this,ur)[p];r(this,Pi).get(v)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});s(this,au,i(ht,40,this,m(this,We,ya).call(this))),i(ht,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,We,[...this.defaultValue],lu),this._ctx=m(this,We,ya).call(this)}willUpdate(){this._ctx=m(this,We,ya).call(this)}render(){return f`
|
|
3264
3264
|
<div
|
|
3265
3265
|
part="root"
|
|
3266
3266
|
data-orientation=${this.orientation}
|
|
@@ -3268,7 +3268,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3268
3268
|
>
|
|
3269
3269
|
<slot></slot>
|
|
3270
3270
|
</div>
|
|
3271
|
-
`}};ht=S(
|
|
3271
|
+
`}};ht=S(Mw),Jh=new WeakMap,Zh=new WeakMap,tu=new WeakMap,eu=new WeakMap,ru=new WeakMap,ou=new WeakMap,iu=new WeakMap,su=new WeakMap,We=new WeakSet,Pi=new WeakMap,ur=new WeakMap,Os=new WeakMap,xa=new WeakMap,wa=new WeakMap,ka=new WeakMap,Ca=new WeakMap,au=new WeakMap,ya=function(){return{openValues:r(this,Os).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:r(this,xa),registerItem:r(this,wa),unregisterItem:r(this,ka),focusItem:r(this,Ca)}},d(ht,4,"value",zw,Wt,Jh),d(ht,4,"defaultValue",Pw,Wt,Zh),d(ht,4,"disabled",Lw,Wt,tu),d(ht,4,"multiple",Ow,Wt,eu),d(ht,4,"loopFocus",_w,Wt,ru),d(ht,4,"orientation",Aw,Wt,ou),d(ht,4,"keepMounted",Iw,Wt,iu),nu=d(ht,20,"#internalOpenValues",Rw,We,su),Hw=nu.get,lu=nu.set,d(ht,4,"_ctx",Tw,Wt,au),C(ht,Wt),b(Wt,"tagName","dui-accordion"),b(Wt,"styles",[y,jA]);var Ww=_("open-change",{bubbles:!0,composed:!0}),KA=c`
|
|
3272
3272
|
:host {
|
|
3273
3273
|
display: block;
|
|
3274
3274
|
}
|
|
@@ -3299,7 +3299,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3299
3299
|
overflow: hidden;
|
|
3300
3300
|
transition-property: height;
|
|
3301
3301
|
}
|
|
3302
|
-
`,
|
|
3302
|
+
`,WA=f`<svg
|
|
3303
3303
|
part="indicator"
|
|
3304
3304
|
width="16"
|
|
3305
3305
|
height="16"
|
|
@@ -3311,39 +3311,39 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3311
3311
|
stroke-linejoin="round"
|
|
3312
3312
|
>
|
|
3313
3313
|
<path d="m6 9 6 6 6-6" />
|
|
3314
|
-
</svg>`,
|
|
3314
|
+
</svg>`,Nw,Bw,Dw,qw,Vw,Uw,jw,Kw,Ct,du,cu,pu,hu,uu,xu,Sa,F,mu,fu,Ea,$a,vu,gu,Gw,Vo,bu,yu,wu,Ta,zi,jo,Uo,Ls,ku,Cu,Yw,Xw,Ra,Ia,Aa,Ge=class extends(Kw=g,jw=[u({type:String})],Uw=[u({type:Boolean})],Vw=[ot({context:ba,subscribe:!0})],qw=[k()],Dw=[k()],Bw=[k()],Nw=[k()],Kw){constructor(){super(...arguments);s(this,F);s(this,du,i(Ct,8,this,"")),i(Ct,11,this);s(this,cu,i(Ct,12,this,!1)),i(Ct,15,this);s(this,pu,i(Ct,16,this)),i(Ct,19,this);s(this,hu,i(Ct,20,this,!1)),i(Ct,23,this);s(this,mu,i(Ct,24,this,!1)),i(Ct,27,this);s(this,vu,i(Ct,28,this,"0")),i(Ct,31,this);s(this,bu,i(Ct,32,this,!1)),i(Ct,35,this);s(this,zi);s(this,jo,0);s(this,Ra,t=>{t.propertyName==="height"&&(r(this,F,Ea)?(h(this,F,!1,$a),this._ctx?.keepMounted||h(this,F,!1,Ta)):r(this,F,Uo)&&h(this,F,"auto",Vo))});s(this,Ia,()=>{r(this,F,Ls)||this._ctx.toggle(this.value)});s(this,Aa,t=>{if(r(this,F,Ls))return;let e=this._ctx.orientation==="vertical",a=e?"ArrowDown":"ArrowRight",l=e?"ArrowUp":"ArrowLeft";switch(t.key){case a:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case l:t.preventDefault(),this._ctx.focusItem(this.value,"prev");break;case"Home":t.preventDefault(),this._ctx.focusItem(this.value,"first");break;case"End":t.preventDefault(),this._ctx.focusItem(this.value,"last");break}})}connectedCallback(){super.connectedCallback(),this._ctx?.registerItem(this.value,this)}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(this.value)}willUpdate(){let t=r(this,F,Uo);r(this,zi)===void 0?(h(this,F,t,Ta),h(this,F,t?"auto":"0",Vo)):r(this,zi)!==t&&(t?m(this,F,Yw).call(this):m(this,F,Xw).call(this),this.dispatchEvent(Ww({value:this.value,open:t}))),h(this,zi,t)}render(){let t=r(this,F,wu)||this._ctx?.keepMounted;return f`
|
|
3315
3315
|
<div
|
|
3316
3316
|
part="item"
|
|
3317
|
-
?data-open=${r(this,
|
|
3318
|
-
?data-disabled=${r(this,
|
|
3317
|
+
?data-open=${r(this,F,Uo)}
|
|
3318
|
+
?data-disabled=${r(this,F,Ls)}
|
|
3319
3319
|
>
|
|
3320
3320
|
<h3 part="header">
|
|
3321
3321
|
<button
|
|
3322
3322
|
part="trigger"
|
|
3323
|
-
id=${r(this,
|
|
3324
|
-
aria-expanded=${r(this,
|
|
3325
|
-
aria-controls=${r(this,
|
|
3326
|
-
?data-open=${r(this,
|
|
3327
|
-
?data-disabled=${r(this,
|
|
3328
|
-
@click=${r(this,
|
|
3329
|
-
@keydown=${r(this,
|
|
3323
|
+
id=${r(this,F,ku)}
|
|
3324
|
+
aria-expanded=${r(this,F,Uo)}
|
|
3325
|
+
aria-controls=${r(this,F,Cu)}
|
|
3326
|
+
?data-open=${r(this,F,Uo)}
|
|
3327
|
+
?data-disabled=${r(this,F,Ls)}
|
|
3328
|
+
@click=${r(this,Ia)}
|
|
3329
|
+
@keydown=${r(this,Aa)}
|
|
3330
3330
|
>
|
|
3331
3331
|
<slot name="trigger"></slot>
|
|
3332
|
-
${
|
|
3332
|
+
${WA}
|
|
3333
3333
|
</button>
|
|
3334
3334
|
</h3>
|
|
3335
|
-
${t?
|
|
3335
|
+
${t?f`
|
|
3336
3336
|
<div
|
|
3337
3337
|
part="panel"
|
|
3338
|
-
id=${r(this,
|
|
3338
|
+
id=${r(this,F,Cu)}
|
|
3339
3339
|
role="region"
|
|
3340
|
-
aria-labelledby=${r(this,
|
|
3341
|
-
style="height: ${r(this,
|
|
3342
|
-
?data-open=${r(this,
|
|
3343
|
-
?data-starting-style=${r(this,
|
|
3344
|
-
?data-ending-style=${r(this,
|
|
3345
|
-
?hidden=${!r(this,
|
|
3346
|
-
@transitionend=${r(this,
|
|
3340
|
+
aria-labelledby=${r(this,F,ku)}
|
|
3341
|
+
style="height: ${r(this,F,Gw)}"
|
|
3342
|
+
?data-open=${r(this,F,Uo)&&!r(this,F,xu)}
|
|
3343
|
+
?data-starting-style=${r(this,F,xu)}
|
|
3344
|
+
?data-ending-style=${r(this,F,Ea)}
|
|
3345
|
+
?hidden=${!r(this,F,wu)&&!r(this,F,Ea)}
|
|
3346
|
+
@transitionend=${r(this,Ra)}
|
|
3347
3347
|
>
|
|
3348
3348
|
<div part="content">
|
|
3349
3349
|
<slot></slot>
|
|
@@ -3351,19 +3351,32 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3351
3351
|
</div>
|
|
3352
3352
|
`:T}
|
|
3353
3353
|
</div>
|
|
3354
|
-
`}};Ct=S(
|
|
3354
|
+
`}};Ct=S(Kw),du=new WeakMap,cu=new WeakMap,pu=new WeakMap,hu=new WeakMap,F=new WeakSet,mu=new WeakMap,vu=new WeakMap,bu=new WeakMap,zi=new WeakMap,jo=new WeakMap,Uo=function(){return this._ctx?.openValues.includes(this.value)??!1},Ls=function(){return this.disabled||this._ctx?.disabled},ku=function(){return`dui-trigger-${this.value}`},Cu=function(){return`dui-panel-${this.value}`},Yw=function(){let t=++_i(this,jo)._;h(this,F,!1,$a),h(this,F,!0,Ta),h(this,F,!0,Sa),h(this,F,"0",Vo),requestAnimationFrame(()=>{if(r(this,jo)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,F,`${e.scrollHeight}px`,Vo),h(this,F,!1,Sa)})},Xw=function(){let t=++_i(this,jo)._;h(this,F,!1,Sa);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,F,`${e.scrollHeight}px`,Vo),requestAnimationFrame(()=>{r(this,jo)===t&&(h(this,F,!0,$a),h(this,F,"0",Vo))})},Ra=new WeakMap,Ia=new WeakMap,Aa=new WeakMap,d(Ct,4,"value",jw,Ge,du),d(Ct,4,"disabled",Uw,Ge,cu),d(Ct,4,"_ctx",Vw,Ge,pu),uu=d(Ct,20,"#starting",qw,F,hu),xu=uu.get,Sa=uu.set,fu=d(Ct,20,"#ending",Dw,F,mu),Ea=fu.get,$a=fu.set,gu=d(Ct,20,"#panelHeight",Bw,F,vu),Gw=gu.get,Vo=gu.set,yu=d(Ct,20,"#visible",Nw,F,bu),wu=yu.get,Ta=yu.set,C(Ct,Ge),b(Ge,"tagName","dui-accordion-item"),b(Ge,"styles",[y,KA]);var co=Symbol("dui-alert-dialog");var Iu=_("open-change",{bubbles:!0,composed:!0}),GA=c`
|
|
3355
3355
|
:host {
|
|
3356
3356
|
display: contents;
|
|
3357
3357
|
}
|
|
3358
|
-
`,
|
|
3358
|
+
`,Qw,Jw,Zw,tk,ek,xe,Su,Eu,$u,Tu,rk,_a,ne,Ko,La,Pa,za,Ma,ok,Fa,Ha,Ru,Oa,Ye=class extends(ek=g,tk=[u({type:Boolean,reflect:!0})],Zw=[u({type:Boolean,attribute:"default-open"})],Jw=[k()],Qw=[bt({context:co}),k()],ek){constructor(){super(...arguments);s(this,ne);s(this,Su,i(xe,8,this)),i(xe,11,this);s(this,Eu,i(xe,12,this,!1)),i(xe,15,this);s(this,$u,i(xe,16,this,!1)),i(xe,19,this);s(this,Ko,crypto.randomUUID().slice(0,8));s(this,La,`dui-alert-dialog-${r(this,Ko)}`);s(this,Pa,`dui-alert-trigger-${r(this,Ko)}`);s(this,za,`dui-alert-title-${r(this,Ko)}`);s(this,Ma,`dui-alert-desc-${r(this,Ko)}`);s(this,Fa,()=>{this.open===void 0&&h(this,ne,!0,_a),this.dispatchEvent(Iu({open:!0}))});s(this,Ha,()=>{this.open===void 0&&h(this,ne,!1,_a),this.dispatchEvent(Iu({open:!1}))});s(this,Ru,i(xe,20,this,m(this,ne,Oa).call(this))),i(xe,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,ne,!0,_a),this._ctx=m(this,ne,Oa).call(this)}willUpdate(){this._ctx=m(this,ne,Oa).call(this)}render(){return f`<slot></slot>`}};xe=S(ek),Su=new WeakMap,Eu=new WeakMap,$u=new WeakMap,ne=new WeakSet,Ko=new WeakMap,La=new WeakMap,Pa=new WeakMap,za=new WeakMap,Ma=new WeakMap,ok=function(){return this.open??r(this,ne,rk)},Fa=new WeakMap,Ha=new WeakMap,Ru=new WeakMap,Oa=function(){return{open:r(this,ne,ok),dialogId:r(this,La),triggerId:r(this,Pa),titleId:r(this,za),descriptionId:r(this,Ma),openDialog:r(this,Fa),closeDialog:r(this,Ha)}},d(xe,4,"open",tk,Ye,Su),d(xe,4,"defaultOpen",Zw,Ye,Eu),Tu=d(xe,20,"#internalOpen",Jw,ne,$u),rk=Tu.get,_a=Tu.set,d(xe,4,"_ctx",Qw,Ye,Ru),C(xe,Ye),b(Ye,"tagName","dui-alert-dialog"),b(Ye,"styles",[y,GA]);var YA=c`
|
|
3359
3359
|
:host {
|
|
3360
3360
|
display: contents;
|
|
3361
3361
|
}
|
|
3362
|
-
`,
|
|
3362
|
+
`,XA=c`
|
|
3363
3363
|
.Trigger {
|
|
3364
3364
|
display: contents;
|
|
3365
3365
|
}
|
|
3366
|
-
|
|
3366
|
+
`,Ps=class extends g{static tagName="dui-alert-dialog-trigger";static styles=[y,YA,XA];#t=new q(this,{context:co,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
|
|
3367
|
+
<span
|
|
3368
|
+
class="Trigger"
|
|
3369
|
+
part="trigger"
|
|
3370
|
+
id="${t}"
|
|
3371
|
+
aria-haspopup="dialog"
|
|
3372
|
+
aria-expanded="${o}"
|
|
3373
|
+
aria-controls="${o?e:""}"
|
|
3374
|
+
?data-popup-open="${o}"
|
|
3375
|
+
@click="${this.#e}"
|
|
3376
|
+
>
|
|
3377
|
+
<slot></slot>
|
|
3378
|
+
</span>
|
|
3379
|
+
`}};var ik=(n,{composed:o=!0}={})=>{let t=n.getRootNode({composed:o});if(t instanceof DocumentFragment)return t;if(t instanceof Document)return t},QA='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',Na=n=>n instanceof HTMLSlotElement?n.assignedNodes({flatten:!0}):n instanceof Element&&n.shadowRoot?Array.from(n.shadowRoot.childNodes):Array.from(n.childNodes),Mi=n=>{let o=[],t=e=>{if(e instanceof HTMLElement&&e.matches(QA)&&!e.hasAttribute("disabled")){o.push(e);return}for(let a of Na(e))t(a)};for(let e of Na(n))t(e);return o},JA=(n,o)=>{let t=e=>{if(e instanceof HTMLElement&&e.matches(o))return e;for(let a of Na(e)){let l=t(a);if(l)return l}return null};for(let e of Na(n)){let a=t(e);if(a)return a}return null},Ba=n=>JA(n,"[autofocus]");var ZA=c`
|
|
3367
3380
|
:host {
|
|
3368
3381
|
display: contents;
|
|
3369
3382
|
}
|
|
@@ -3372,7 +3385,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3372
3385
|
:host(:not([mounted])) [part="popup"] {
|
|
3373
3386
|
display: none;
|
|
3374
3387
|
}
|
|
3375
|
-
`,
|
|
3388
|
+
`,t_=c`
|
|
3376
3389
|
[part="backdrop"] {
|
|
3377
3390
|
position: fixed;
|
|
3378
3391
|
min-height: 100dvh;
|
|
@@ -3392,13 +3405,13 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3392
3405
|
z-index: 1000;
|
|
3393
3406
|
transition-property: opacity, transform;
|
|
3394
3407
|
}
|
|
3395
|
-
`,
|
|
3408
|
+
`,sk,nk,ak,lk,dk,ck,pk,Ft,Au,_u,Ou,Lu,Pu,Fi,Nu,j,zu,Mu,Bu,Du,Fu,Hu,Br,qu,Hi,po,hk,uk,Vu,mk,fk,Da,vk,Xe=class extends(pk=g,ck=[u({type:Boolean,attribute:"keep-mounted"})],dk=[u({attribute:"initial-focus"})],lk=[u({attribute:"final-focus"})],ak=[k()],nk=[k()],sk=[k()],pk){constructor(){super(...arguments);s(this,j);s(this,Au,i(Ft,8,this,!1)),i(Ft,11,this);s(this,_u,i(Ft,12,this)),i(Ft,15,this);s(this,Ou,i(Ft,16,this)),i(Ft,19,this);s(this,Lu,i(Ft,20,this,!1)),i(Ft,23,this);s(this,zu,i(Ft,24,this,!1)),i(Ft,27,this);s(this,Fu,i(Ft,28,this,!1)),i(Ft,31,this);s(this,Hi);s(this,po,new q(this,{context:co,subscribe:!0}));s(this,Da,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,po).value?.closeDialog()),t.key==="Tab"&&m(this,j,vk).call(this,t)})}updated(){let t=r(this,po).value?.open??!1;t&&!r(this,j,Fi)?m(this,j,hk).call(this):!t&&r(this,j,Fi)&&!r(this,j,Br)&&m(this,j,uk).call(this)}willUpdate(){r(this,j,Fi)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,po).value?.open??!1,e=r(this,po).value?.titleId??"",a=r(this,po).value?.descriptionId??"";return!r(this,j,Fi)&&!this.keepMounted?f``:f`
|
|
3396
3409
|
<div
|
|
3397
3410
|
part="backdrop"
|
|
3398
|
-
?data-open="${t&&!r(this,
|
|
3399
|
-
?data-closed="${!t||r(this,
|
|
3400
|
-
?data-starting-style="${r(this,
|
|
3401
|
-
?data-ending-style="${r(this,
|
|
3411
|
+
?data-open="${t&&!r(this,j,Br)}"
|
|
3412
|
+
?data-closed="${!t||r(this,j,Br)}"
|
|
3413
|
+
?data-starting-style="${r(this,j,Bu)}"
|
|
3414
|
+
?data-ending-style="${r(this,j,Br)}"
|
|
3402
3415
|
></div>
|
|
3403
3416
|
<div
|
|
3404
3417
|
part="popup"
|
|
@@ -3406,22 +3419,26 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3406
3419
|
aria-modal="true"
|
|
3407
3420
|
aria-labelledby="${e}"
|
|
3408
3421
|
aria-describedby="${a}"
|
|
3409
|
-
?data-open="${t&&!r(this,
|
|
3410
|
-
?data-closed="${!t||r(this,
|
|
3411
|
-
?data-starting-style="${r(this,
|
|
3412
|
-
?data-ending-style="${r(this,
|
|
3422
|
+
?data-open="${t&&!r(this,j,Br)}"
|
|
3423
|
+
?data-closed="${!t||r(this,j,Br)}"
|
|
3424
|
+
?data-starting-style="${r(this,j,Bu)}"
|
|
3425
|
+
?data-ending-style="${r(this,j,Br)}"
|
|
3413
3426
|
tabindex="-1"
|
|
3414
|
-
@keydown="${r(this,
|
|
3427
|
+
@keydown="${r(this,Da)}"
|
|
3415
3428
|
>
|
|
3416
3429
|
<h2 part="title" id="${e}"><slot name="title"></slot></h2>
|
|
3417
3430
|
<p part="description" id="${a}"><slot name="description"></slot></p>
|
|
3418
3431
|
<slot></slot>
|
|
3419
3432
|
</div>
|
|
3420
|
-
`}};
|
|
3433
|
+
`}};Ft=S(pk),Au=new WeakMap,_u=new WeakMap,Ou=new WeakMap,Lu=new WeakMap,j=new WeakSet,zu=new WeakMap,Fu=new WeakMap,Hi=new WeakMap,po=new WeakMap,hk=async function(){h(this,Hi,document.activeElement??void 0),h(this,j,!0,Nu),h(this,j,!0,Du),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,j,!1,Du),await this.updateComplete,m(this,j,mk).call(this)},uk=function(){h(this,j,!0,qu);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,j,Vu).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(p),m(this,j,Vu).call(this))},l=v=>{v.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let p=setTimeout(a,200)},Vu=function(){!r(this,j,Br)&&!r(this,j,Fi)||(h(this,j,!1,qu),this.keepMounted||h(this,j,!1,Nu),m(this,j,fk).call(this))},mk=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=Ba(t);if(e){e.focus();return}let a=Mi(t);if(a.length>0){a[0].focus();return}t.focus()},fk=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,Hi)?.focus(),h(this,Hi,void 0)},Da=new WeakMap,vk=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Mi(e);if(a.length===0){t.preventDefault();return}let l=a[0],p=a[a.length-1],v=l.matches(":focus"),x=p.matches(":focus"),E=!a.some($=>$.matches(":focus"));t.shiftKey&&(v||E)?(t.preventDefault(),p.focus()):!t.shiftKey&&x&&(t.preventDefault(),l.focus())},d(Ft,4,"keepMounted",ck,Xe,Au),d(Ft,4,"initialFocus",dk,Xe,_u),d(Ft,4,"finalFocus",lk,Xe,Ou),Pu=d(Ft,20,"#mounted",ak,j,Lu),Fi=Pu.get,Nu=Pu.set,Mu=d(Ft,20,"#startingStyle",nk,j,zu),Bu=Mu.get,Du=Mu.set,Hu=d(Ft,20,"#endingStyle",sk,j,Fu),Br=Hu.get,qu=Hu.set,C(Ft,Xe),b(Xe,"tagName","dui-alert-dialog-popup"),b(Xe,"styles",[y,ZA,t_]);var e_=c`
|
|
3421
3434
|
:host {
|
|
3422
3435
|
display: contents;
|
|
3423
3436
|
}
|
|
3424
|
-
|
|
3437
|
+
`,zs=class extends g{static tagName="dui-alert-dialog-close";static styles=[y,e_];#t=new q(this,{context:co,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
3438
|
+
<span @click="${this.#e}">
|
|
3439
|
+
<slot></slot>
|
|
3440
|
+
</span>
|
|
3441
|
+
`}};var Sk=_("loading-status-change",{bubbles:!0,composed:!0}),r_=c`
|
|
3425
3442
|
:host {
|
|
3426
3443
|
--avatar-size: var(--space-12);
|
|
3427
3444
|
display: inline-block;
|
|
@@ -3451,19 +3468,19 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3451
3468
|
height: 100%;
|
|
3452
3469
|
width: 100%;
|
|
3453
3470
|
}
|
|
3454
|
-
`,
|
|
3471
|
+
`,gk,bk,yk,xk,wk,kk,Ck,Ht,Uu,ju,Ku,Wu,Gu,Yu,Ek,$k,ct,Xu,Qu,Tk,qa,ho,Wo,Ms,Ju,Zu,tm,em,ze=class extends(Ck=g,kk=[u()],wk=[u()],xk=[u({type:Number,attribute:"fallback-delay"})],yk=[u({reflect:!0})],bk=[k()],gk=[k()],Ck){constructor(){super(...arguments);s(this,ct);s(this,Uu,i(Ht,8,this)),i(Ht,11,this);s(this,ju,i(Ht,12,this,"")),i(Ht,15,this);s(this,Ku,i(Ht,16,this)),i(Ht,19,this);s(this,Wu,i(Ht,20,this)),i(Ht,23,this);s(this,Gu,i(Ht,24,this,"idle")),i(Ht,27,this);s(this,Xu,i(Ht,28,this,!1)),i(Ht,31,this);s(this,ho);s(this,Wo)}connectedCallback(){super.connectedCallback(),m(this,ct,tm).call(this),m(this,ct,Ju).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,ct,Zu).call(this),m(this,ct,em).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,ct,Ju).call(this),t.has("fallbackDelay")&&m(this,ct,tm).call(this)}render(){let t=this.src&&r(this,ct,Ek)==="loaded",e=!t&&r(this,ct,Tk);return f`
|
|
3455
3472
|
<span part="root">
|
|
3456
|
-
${t?
|
|
3473
|
+
${t?f`
|
|
3457
3474
|
<img
|
|
3458
3475
|
part="image"
|
|
3459
3476
|
src="${this.src}"
|
|
3460
3477
|
alt="${this.alt}"
|
|
3461
3478
|
/>
|
|
3462
|
-
`:e?
|
|
3479
|
+
`:e?f`
|
|
3463
3480
|
<span part="fallback"><slot></slot></span>
|
|
3464
3481
|
`:T}
|
|
3465
3482
|
</span>
|
|
3466
|
-
`}};
|
|
3483
|
+
`}};Ht=S(Ck),Uu=new WeakMap,ju=new WeakMap,Ku=new WeakMap,Wu=new WeakMap,Gu=new WeakMap,ct=new WeakSet,Xu=new WeakMap,ho=new WeakMap,Wo=new WeakMap,Ms=function(t){h(this,ct,t,$k),this.dispatchEvent(Sk({status:t}))},Ju=function(){if(m(this,ct,Zu).call(this),!this.src){m(this,ct,Ms).call(this,"error");return}m(this,ct,Ms).call(this,"loading");let t=new Image;t.onload=()=>m(this,ct,Ms).call(this,"loaded"),t.onerror=()=>m(this,ct,Ms).call(this,"error"),t.src=this.src,h(this,ho,t)},Zu=function(){r(this,ho)&&(r(this,ho).onload=null,r(this,ho).onerror=null,h(this,ho,void 0))},tm=function(){if(m(this,ct,em).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){h(this,ct,!0,qa);return}h(this,ct,!1,qa),h(this,Wo,setTimeout(()=>{h(this,ct,!0,qa)},this.fallbackDelay))},em=function(){r(this,Wo)!==void 0&&(clearTimeout(r(this,Wo)),h(this,Wo,void 0))},d(Ht,4,"src",kk,ze,Uu),d(Ht,4,"alt",wk,ze,ju),d(Ht,4,"fallbackDelay",xk,ze,Ku),d(Ht,4,"size",yk,ze,Wu),Yu=d(Ht,20,"#imageStatus",bk,ct,Gu),Ek=Yu.get,$k=Yu.set,Qu=d(Ht,20,"#delayPassed",gk,ct,Xu),Tk=Qu.get,qa=Qu.set,C(Ht,ze),b(ze,"tagName","dui-avatar"),b(ze,"styles",[y,r_]);var o_=c`
|
|
3467
3484
|
:host {
|
|
3468
3485
|
display: inline-block;
|
|
3469
3486
|
}
|
|
@@ -3472,7 +3489,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3472
3489
|
display: inline-flex;
|
|
3473
3490
|
align-items: center;
|
|
3474
3491
|
}
|
|
3475
|
-
|
|
3492
|
+
`,Fs=class extends g{static tagName="dui-badge";static styles=[y,o_];render(){return f`
|
|
3493
|
+
<span part="root">
|
|
3494
|
+
<slot></slot>
|
|
3495
|
+
</span>
|
|
3496
|
+
`}};var i_=c`
|
|
3476
3497
|
:host {
|
|
3477
3498
|
display: block;
|
|
3478
3499
|
}
|
|
@@ -3485,7 +3506,13 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3485
3506
|
margin: 0;
|
|
3486
3507
|
padding: 0;
|
|
3487
3508
|
}
|
|
3488
|
-
|
|
3509
|
+
`,Hs=class extends g{static tagName="dui-breadcrumb";static styles=[y,i_];render(){return f`
|
|
3510
|
+
<nav aria-label="breadcrumb">
|
|
3511
|
+
<ol part="root">
|
|
3512
|
+
<slot></slot>
|
|
3513
|
+
</ol>
|
|
3514
|
+
</nav>
|
|
3515
|
+
`}};var s_=c`
|
|
3489
3516
|
:host {
|
|
3490
3517
|
display: inline-flex;
|
|
3491
3518
|
}
|
|
@@ -3494,7 +3521,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3494
3521
|
display: inline-flex;
|
|
3495
3522
|
align-items: center;
|
|
3496
3523
|
}
|
|
3497
|
-
|
|
3524
|
+
`,Ns=class extends g{static tagName="dui-breadcrumb-item";static styles=[y,s_];render(){return f`
|
|
3525
|
+
<li part="root">
|
|
3526
|
+
<slot></slot>
|
|
3527
|
+
</li>
|
|
3528
|
+
`}};var n_=c`
|
|
3498
3529
|
:host {
|
|
3499
3530
|
display: inline-flex;
|
|
3500
3531
|
}
|
|
@@ -3503,7 +3534,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3503
3534
|
display: inline-flex;
|
|
3504
3535
|
align-items: center;
|
|
3505
3536
|
}
|
|
3506
|
-
|
|
3537
|
+
`,Bs=class extends g{static tagName="dui-breadcrumb-link";static styles=[y,n_];render(){return f`
|
|
3538
|
+
<span part="root">
|
|
3539
|
+
<slot></slot>
|
|
3540
|
+
</span>
|
|
3541
|
+
`}};var a_=c`
|
|
3507
3542
|
:host {
|
|
3508
3543
|
display: inline-flex;
|
|
3509
3544
|
}
|
|
@@ -3512,7 +3547,16 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3512
3547
|
display: inline-flex;
|
|
3513
3548
|
align-items: center;
|
|
3514
3549
|
}
|
|
3515
|
-
|
|
3550
|
+
`,Ds=class extends g{static tagName="dui-breadcrumb-page";static styles=[y,a_];render(){return f`
|
|
3551
|
+
<span
|
|
3552
|
+
role="link"
|
|
3553
|
+
aria-disabled="true"
|
|
3554
|
+
aria-current="page"
|
|
3555
|
+
part="root"
|
|
3556
|
+
>
|
|
3557
|
+
<slot></slot>
|
|
3558
|
+
</span>
|
|
3559
|
+
`}};var l_=c`
|
|
3516
3560
|
:host {
|
|
3517
3561
|
display: flex;
|
|
3518
3562
|
}
|
|
@@ -3521,7 +3565,15 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3521
3565
|
display: flex;
|
|
3522
3566
|
align-items: center;
|
|
3523
3567
|
}
|
|
3524
|
-
|
|
3568
|
+
`,qs=class extends g{static tagName="dui-breadcrumb-separator";static styles=[y,l_];render(){return f`
|
|
3569
|
+
<li
|
|
3570
|
+
role="presentation"
|
|
3571
|
+
aria-hidden="true"
|
|
3572
|
+
part="root"
|
|
3573
|
+
>
|
|
3574
|
+
<slot>/</slot>
|
|
3575
|
+
</li>
|
|
3576
|
+
`}};var d_=c`
|
|
3525
3577
|
:host {
|
|
3526
3578
|
display: flex;
|
|
3527
3579
|
align-items: center;
|
|
@@ -3533,7 +3585,15 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3533
3585
|
align-items: center;
|
|
3534
3586
|
justify-content: center;
|
|
3535
3587
|
}
|
|
3536
|
-
|
|
3588
|
+
`,Vs=class extends g{static tagName="dui-breadcrumb-ellipsis";static styles=[y,d_];render(){return f`
|
|
3589
|
+
<span
|
|
3590
|
+
role="presentation"
|
|
3591
|
+
aria-hidden="true"
|
|
3592
|
+
part="root"
|
|
3593
|
+
>
|
|
3594
|
+
<slot>…</slot>
|
|
3595
|
+
</span>
|
|
3596
|
+
`}};var Lk=_("dui-navigate",{bubbles:!0,composed:!0}),c_=c`
|
|
3537
3597
|
:host {
|
|
3538
3598
|
display: inline-block;
|
|
3539
3599
|
}
|
|
@@ -3558,26 +3618,26 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3558
3618
|
user-select: none;
|
|
3559
3619
|
-webkit-tap-highlight-color: transparent;
|
|
3560
3620
|
}
|
|
3561
|
-
`,
|
|
3621
|
+
`,Rk,Ik,Ak,_k,Ok,we,rm,om,im,sm,Va,Ua,Ni,Pk,zk,ke=class extends(Ok=g,_k=[u({type:Boolean,reflect:!0})],Ak=[u({type:Boolean,attribute:"focusable-when-disabled"})],Ik=[u()],Rk=[u()],Ok){constructor(){super(...arguments);s(this,Ni);s(this,rm,i(we,8,this,!1)),i(we,11,this);s(this,om,i(we,12,this,!1)),i(we,15,this);s(this,im,i(we,16,this,"button")),i(we,19,this);s(this,sm,i(we,20,this)),i(we,23,this);s(this,Va,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});s(this,Ua,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(Lk({href:this.href})))})}render(){return this.href!==void 0?m(this,Ni,zk).call(this):m(this,Ni,Pk).call(this)}};we=S(Ok),rm=new WeakMap,om=new WeakMap,im=new WeakMap,sm=new WeakMap,Va=new WeakMap,Ua=new WeakMap,Ni=new WeakSet,Pk=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
|
|
3562
3622
|
<button
|
|
3563
3623
|
part="root"
|
|
3564
3624
|
type="${this.type}"
|
|
3565
3625
|
?disabled="${this.disabled&&!this.focusableWhenDisabled}"
|
|
3566
3626
|
aria-disabled="${t||T}"
|
|
3567
|
-
@click="${r(this,
|
|
3627
|
+
@click="${r(this,Va)}"
|
|
3568
3628
|
>
|
|
3569
3629
|
<slot></slot>
|
|
3570
3630
|
</button>
|
|
3571
|
-
`},
|
|
3631
|
+
`},zk=function(){return f`
|
|
3572
3632
|
<a
|
|
3573
3633
|
part="root"
|
|
3574
3634
|
href="${this.href??T}"
|
|
3575
3635
|
aria-disabled="${this.disabled||T}"
|
|
3576
|
-
@click="${r(this,
|
|
3636
|
+
@click="${r(this,Ua)}"
|
|
3577
3637
|
>
|
|
3578
3638
|
<slot></slot>
|
|
3579
3639
|
</a>
|
|
3580
|
-
`},d(
|
|
3640
|
+
`},d(we,4,"disabled",_k,ke,rm),d(we,4,"focusableWhenDisabled",Ak,ke,om),d(we,4,"type",Ik,ke,im),d(we,4,"href",Rk,ke,sm),C(we,ke),b(ke,"tagName","dui-button"),b(ke,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(ke,"styles",[y,c_]);var Gk=_("value-change",{bubbles:!0,composed:!0}),p_=c`
|
|
3581
3641
|
:host {
|
|
3582
3642
|
display: inline-block;
|
|
3583
3643
|
}
|
|
@@ -3637,14 +3697,14 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3637
3697
|
[part="day"]:disabled {
|
|
3638
3698
|
cursor: not-allowed;
|
|
3639
3699
|
}
|
|
3640
|
-
`,
|
|
3641
|
-
<div part="root" role="grid" @keydown="${r(this,
|
|
3700
|
+
`,Mk,Fk,Hk,Nk,Bk,Dk,qk,Vk,Uk,jk,Kk,Wk,Z,nm,am,lm,dm,cm,pm,hm,um,mm,Yk,wm,A,fm,vm,km,ja,gm,bm,Ka,Wa,ym,xm,Ga,Ya,Cm,Qe,Xa,Us,Qa,Sm,Xk,Qk,Jk,Em,$m,Ja,Za,tl,el,Qt=class extends(Wk=g,Kk=[u()],jk=[u({attribute:"default-value"})],Uk=[u()],Vk=[u()],qk=[u()],Dk=[u({type:Boolean,reflect:!0})],Bk=[u({type:Boolean,reflect:!0,attribute:"read-only"})],Nk=[k()],Hk=[k()],Fk=[k()],Mk=[k()],Wk){constructor(){super(...arguments);s(this,A);s(this,nm,i(Z,8,this)),i(Z,11,this);s(this,am,i(Z,12,this)),i(Z,15,this);s(this,lm,i(Z,16,this)),i(Z,19,this);s(this,dm,i(Z,20,this)),i(Z,23,this);s(this,cm,i(Z,24,this,"en-US")),i(Z,27,this);s(this,pm,i(Z,28,this,!1)),i(Z,31,this);s(this,hm,i(Z,32,this,!1)),i(Z,35,this);s(this,um,i(Z,36,this)),i(Z,39,this);s(this,fm,i(Z,40,this,new Date)),i(Z,43,this);s(this,gm,i(Z,44,this,new Date().getMonth())),i(Z,47,this);s(this,ym,i(Z,48,this,new Date().getFullYear())),i(Z,51,this);s(this,Ja,t=>{let e=t.currentTarget,a=e.dataset.date;a&&!e.disabled&&m(this,A,Em).call(this,a)});s(this,Za,t=>{let e=new Date(r(this,A,km)),a=!0;switch(t.key){case"ArrowLeft":e.setDate(e.getDate()-1);break;case"ArrowRight":e.setDate(e.getDate()+1);break;case"ArrowUp":e.setDate(e.getDate()-7);break;case"ArrowDown":e.setDate(e.getDate()+7);break;case"PageUp":t.shiftKey?e.setFullYear(e.getFullYear()-1):e.setMonth(e.getMonth()-1);break;case"PageDown":t.shiftKey?e.setFullYear(e.getFullYear()+1):e.setMonth(e.getMonth()+1);break;case"Home":{e.setDate(1);break}case"End":{let l=m(this,A,Qa).call(this,e.getFullYear(),e.getMonth());e.setDate(l);break}case"Enter":case" ":t.preventDefault(),m(this,A,Us).call(this,e)||m(this,A,Em).call(this,m(this,A,Qe).call(this,e));return;default:a=!1}a&&(t.preventDefault(),h(this,A,e,ja),h(this,A,e.getMonth(),Wa),h(this,A,e.getFullYear(),Ya),this.updateComplete.then(()=>{let l=m(this,A,Qe).call(this,e);this.shadowRoot?.querySelector(`[data-date="${l}"]`)?.focus()}))});s(this,tl,()=>{m(this,A,$m).call(this,-1)});s(this,el,()=>{m(this,A,$m).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,A,this.defaultValue,wm);let t=r(this,A,Cm);if(t){let e=new Date(t+"T00:00:00");h(this,A,e.getMonth(),Wa),h(this,A,e.getFullYear(),Ya),h(this,A,e,ja)}}render(){let t=m(this,A,Xk).call(this),e=m(this,A,Qk).call(this),a=m(this,A,Jk).call(this),l=m(this,A,Qe).call(this,r(this,A,km));return f`
|
|
3701
|
+
<div part="root" role="grid" @keydown="${r(this,Za)}">
|
|
3642
3702
|
<div part="header">
|
|
3643
3703
|
<button
|
|
3644
3704
|
part="prev"
|
|
3645
3705
|
type="button"
|
|
3646
3706
|
aria-label="Previous month"
|
|
3647
|
-
@click="${r(this,
|
|
3707
|
+
@click="${r(this,tl)}"
|
|
3648
3708
|
>
|
|
3649
3709
|
<slot name="prev">‹</slot>
|
|
3650
3710
|
</button>
|
|
@@ -3653,15 +3713,15 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3653
3713
|
part="next"
|
|
3654
3714
|
type="button"
|
|
3655
3715
|
aria-label="Next month"
|
|
3656
|
-
@click="${r(this,
|
|
3716
|
+
@click="${r(this,el)}"
|
|
3657
3717
|
>
|
|
3658
3718
|
<slot name="next">›</slot>
|
|
3659
3719
|
</button>
|
|
3660
3720
|
</div>
|
|
3661
3721
|
|
|
3662
3722
|
<div part="grid" role="grid">
|
|
3663
|
-
${e.map(p=>
|
|
3664
|
-
${t.flat().map(p=>
|
|
3723
|
+
${e.map(p=>f`<div part="weekday" role="columnheader">${p}</div>`)}
|
|
3724
|
+
${t.flat().map(p=>f`
|
|
3665
3725
|
<button
|
|
3666
3726
|
part="day"
|
|
3667
3727
|
type="button"
|
|
@@ -3673,12 +3733,12 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3673
3733
|
?data-outside-month="${p.isOutsideMonth}"
|
|
3674
3734
|
?disabled="${p.isDisabled}"
|
|
3675
3735
|
aria-selected="${p.isSelected?"true":"false"}"
|
|
3676
|
-
@click="${r(this,
|
|
3736
|
+
@click="${r(this,Ja)}"
|
|
3677
3737
|
>${p.day}</button>
|
|
3678
3738
|
`)}
|
|
3679
3739
|
</div>
|
|
3680
3740
|
</div>
|
|
3681
|
-
`}};Z=S(
|
|
3741
|
+
`}};Z=S(Wk),nm=new WeakMap,am=new WeakMap,lm=new WeakMap,dm=new WeakMap,cm=new WeakMap,pm=new WeakMap,hm=new WeakMap,um=new WeakMap,A=new WeakSet,fm=new WeakMap,gm=new WeakMap,ym=new WeakMap,Cm=function(){return this.value??r(this,A,Yk)},Qe=function(t){let e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${e}-${a}-${l}`},Xa=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},Us=function(t){if(this.disabled)return!0;let e=m(this,A,Qe).call(this,t);return!!(this.min&&e<this.min||this.max&&e>this.max)},Qa=function(t,e){return new Date(t,e+1,0).getDate()},Sm=function(){try{let t=new Intl.Locale(this.locale),e=t.weekInfo??t.getWeekInfo?.();return e?.firstDay===7?0:e?.firstDay??0}catch{return 0}},Xk=function(){let t=r(this,A,Ga),e=r(this,A,Ka),a=m(this,A,Qa).call(this,t,e),l=new Date(t,e,1).getDay(),p=m(this,A,Sm).call(this),v=new Date,x=r(this,A,Cm),E=l-p;E<0&&(E+=7);let $=[],w=e===0?11:e-1,I=e===0?t-1:t,R=m(this,A,Qa).call(this,I,w);for(let z=E-1;z>=0;z--){let D=R-z,W=new Date(I,w,D);$.push({date:W,day:D,iso:m(this,A,Qe).call(this,W),isToday:m(this,A,Xa).call(this,W,v),isSelected:m(this,A,Qe).call(this,W)===x,isOutsideMonth:!0,isDisabled:m(this,A,Us).call(this,W)})}for(let z=1;z<=a;z++){let D=new Date(t,e,z);$.push({date:D,day:z,iso:m(this,A,Qe).call(this,D),isToday:m(this,A,Xa).call(this,D,v),isSelected:m(this,A,Qe).call(this,D)===x,isOutsideMonth:!1,isDisabled:m(this,A,Us).call(this,D)})}let P=42-$.length,H=e===11?0:e+1,Q=e===11?t+1:t;for(let z=1;z<=P;z++){let D=new Date(Q,H,z);$.push({date:D,day:z,iso:m(this,A,Qe).call(this,D),isToday:m(this,A,Xa).call(this,D,v),isSelected:m(this,A,Qe).call(this,D)===x,isOutsideMonth:!0,isDisabled:m(this,A,Us).call(this,D)})}let V=[];for(let z=0;z<$.length;z+=7)V.push($.slice(z,z+7));return V},Qk=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),e=m(this,A,Sm).call(this),a=[];for(let l=0;l<7;l++){let p=new Date(2015,0,4+e+l);a.push(t.format(p))}return a},Jk=function(){let t=new Date(r(this,A,Ga),r(this,A,Ka),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},Em=function(t){this.disabled||this.readOnly||(this.value===void 0&&h(this,A,t,wm),this.dispatchEvent(Gk({value:t})))},$m=function(t){let e=r(this,A,Ka)+t,a=r(this,A,Ga);e<0?(e=11,a--):e>11&&(e=0,a++),h(this,A,e,Wa),h(this,A,a,Ya),h(this,A,new Date(a,e,1),ja)},Ja=new WeakMap,Za=new WeakMap,tl=new WeakMap,el=new WeakMap,d(Z,4,"value",Kk,Qt,nm),d(Z,4,"defaultValue",jk,Qt,am),d(Z,4,"min",Uk,Qt,lm),d(Z,4,"max",Vk,Qt,dm),d(Z,4,"locale",qk,Qt,cm),d(Z,4,"disabled",Dk,Qt,pm),d(Z,4,"readOnly",Bk,Qt,hm),mm=d(Z,20,"#internalValue",Nk,A,um),Yk=mm.get,wm=mm.set,vm=d(Z,20,"#focusedDate",Hk,A,fm),km=vm.get,ja=vm.set,bm=d(Z,20,"#viewMonth",Fk,A,gm),Ka=bm.get,Wa=bm.set,xm=d(Z,20,"#viewYear",Mk,A,ym),Ga=xm.get,Ya=xm.set,C(Z,Qt),b(Qt,"tagName","dui-calendar"),b(Qt,"styles",[y,p_]);var Ce=Symbol("dui-field");var rl=Symbol("dui-checkbox-group");var pC=_("checked-change",{bubbles:!0,composed:!0}),h_=c`
|
|
3682
3742
|
:host {
|
|
3683
3743
|
display: inline-flex;
|
|
3684
3744
|
align-items: start;
|
|
@@ -3728,7 +3788,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3728
3788
|
width: 0;
|
|
3729
3789
|
height: 0;
|
|
3730
3790
|
}
|
|
3731
|
-
`,
|
|
3791
|
+
`,u_=f`
|
|
3732
3792
|
<svg
|
|
3733
3793
|
class="Icon"
|
|
3734
3794
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -3741,7 +3801,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3741
3801
|
>
|
|
3742
3802
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
3743
3803
|
</svg>
|
|
3744
|
-
`,
|
|
3804
|
+
`,m_=f`
|
|
3745
3805
|
<svg
|
|
3746
3806
|
class="Icon"
|
|
3747
3807
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -3754,11 +3814,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3754
3814
|
>
|
|
3755
3815
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
3756
3816
|
</svg>
|
|
3757
|
-
`,
|
|
3817
|
+
`,Zk,tC,eC,rC,oC,iC,sC,nC,aC,lC,dC,cC,tt,Tm,Rm,Im,Am,_m,Om,Lm,Pm,zm,Mm,Fm,hC,Nm,Ut,Go,Hm,ol,uC,Bm,mC,js,Ks,il,Vt=class extends(cC=g,dC=[u({type:Boolean,reflect:!0})],lC=[u({type:Boolean,attribute:"default-checked"})],aC=[u({type:Boolean,reflect:!0})],nC=[u({type:Boolean,reflect:!0})],sC=[u({type:Boolean,reflect:!0,attribute:"read-only"})],iC=[u({type:Boolean,reflect:!0})],oC=[u()],rC=[u()],eC=[u({type:Boolean})],tC=[k()],Zk=[ot({context:Ce,subscribe:!0}),k()],cC){constructor(){super(...arguments);s(this,Ut);s(this,Tm,i(tt,8,this)),i(tt,11,this);s(this,Rm,i(tt,12,this,!1)),i(tt,15,this);s(this,Im,i(tt,16,this,!1)),i(tt,19,this);s(this,Am,i(tt,20,this,!1)),i(tt,23,this);s(this,_m,i(tt,24,this,!1)),i(tt,27,this);s(this,Om,i(tt,28,this,!1)),i(tt,31,this);s(this,Lm,i(tt,32,this)),i(tt,35,this);s(this,Pm,i(tt,36,this)),i(tt,39,this);s(this,zm,i(tt,40,this,!1)),i(tt,43,this);s(this,Mm,i(tt,44,this,!1)),i(tt,47,this);s(this,Go,new q(this,{context:rl,subscribe:!0}));s(this,Hm,i(tt,48,this)),i(tt,51,this);s(this,js,t=>{r(this,Ks).call(this)});s(this,Ks,()=>{if(r(this,Ut,Bm)||this.readOnly)return;let t=r(this,Go).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!r(this,Ut,ol)):t.toggle(this.value),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched();return}let e=!r(this,Ut,ol);this.checked===void 0&&(h(this,Ut,e,Nm),this.indeterminate=!1),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched(),this.dispatchEvent(pC({checked:e,indeterminate:!1}))});s(this,il,t=>{t.key===" "&&(t.preventDefault(),r(this,Ks).call(this))})}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,Ut,!0,Nm),this.addEventListener("click",r(this,js))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,js))}render(){let t=r(this,Ut,ol),e=r(this,Ut,uC),a=r(this,Ut,Bm),l=r(this,Ut,mC),p=t||e,v=this._fieldCtx?.controlId??"";return f`
|
|
3758
3818
|
<span
|
|
3759
3819
|
part="root"
|
|
3760
3820
|
role="checkbox"
|
|
3761
|
-
id="${
|
|
3821
|
+
id="${v||T}"
|
|
3762
3822
|
aria-checked="${e?"mixed":String(t)}"
|
|
3763
3823
|
aria-disabled="${a?"true":T}"
|
|
3764
3824
|
aria-readonly="${this.readOnly?"true":T}"
|
|
@@ -3772,7 +3832,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3772
3832
|
?data-readonly="${this.readOnly}"
|
|
3773
3833
|
?data-required="${this.required}"
|
|
3774
3834
|
?data-invalid="${l}"
|
|
3775
|
-
@keydown="${r(this,
|
|
3835
|
+
@keydown="${r(this,il)}"
|
|
3776
3836
|
>
|
|
3777
3837
|
<span
|
|
3778
3838
|
part="indicator"
|
|
@@ -3780,7 +3840,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3780
3840
|
?data-unchecked="${!t&&!e}"
|
|
3781
3841
|
?data-indeterminate="${e}"
|
|
3782
3842
|
>
|
|
3783
|
-
${p?e?
|
|
3843
|
+
${p?e?m_:u_:T}
|
|
3784
3844
|
</span>
|
|
3785
3845
|
<input
|
|
3786
3846
|
type="checkbox"
|
|
@@ -3796,7 +3856,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3796
3856
|
/>
|
|
3797
3857
|
</span>
|
|
3798
3858
|
<slot></slot>
|
|
3799
|
-
`}};tt=S(
|
|
3859
|
+
`}};tt=S(cC),Tm=new WeakMap,Rm=new WeakMap,Im=new WeakMap,Am=new WeakMap,_m=new WeakMap,Om=new WeakMap,Lm=new WeakMap,Pm=new WeakMap,zm=new WeakMap,Mm=new WeakMap,Ut=new WeakSet,Go=new WeakMap,Hm=new WeakMap,ol=function(){let t=r(this,Go).value;return t&&this.value!==void 0?this.parent?t.allValues.length>0&&t.allValues.every(e=>t.checkedValues.includes(e)):t.checkedValues.includes(this.value):this.checked??r(this,Ut,hC)},uC=function(){let t=r(this,Go).value;if(t&&this.parent&&this.value!==void 0){let e=t.allValues.filter(a=>t.checkedValues.includes(a)).length;return e>0&&e<t.allValues.length}return this.indeterminate},Bm=function(){return this.disabled||(r(this,Go).value?.disabled??!1)||(this._fieldCtx?.disabled??!1)},mC=function(){return this._fieldCtx?.invalid??!1},js=new WeakMap,Ks=new WeakMap,il=new WeakMap,d(tt,4,"checked",dC,Vt,Tm),d(tt,4,"defaultChecked",lC,Vt,Rm),d(tt,4,"indeterminate",aC,Vt,Im),d(tt,4,"disabled",nC,Vt,Am),d(tt,4,"readOnly",sC,Vt,_m),d(tt,4,"required",iC,Vt,Om),d(tt,4,"name",oC,Vt,Lm),d(tt,4,"value",rC,Vt,Pm),d(tt,4,"parent",eC,Vt,zm),Fm=d(tt,20,"#internalChecked",tC,Ut,Mm),hC=Fm.get,Nm=Fm.set,d(tt,4,"_fieldCtx",Zk,Vt,Hm),C(tt,Vt),b(Vt,"tagName","dui-checkbox"),b(Vt,"styles",[y,h_]);var Gm=_("value-change",{bubbles:!0,composed:!0}),f_=c`
|
|
3800
3860
|
:host {
|
|
3801
3861
|
display: block;
|
|
3802
3862
|
}
|
|
@@ -3806,7 +3866,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3806
3866
|
flex-direction: column;
|
|
3807
3867
|
align-items: start;
|
|
3808
3868
|
}
|
|
3809
|
-
`,
|
|
3869
|
+
`,fC,vC,gC,bC,yC,xC,wC,Nt,Dm,qm,Vm,Um,jm,Km,kC,sl,Me,Ws,al,ll,Wm,nl,Se=class extends(wC=g,xC=[u({attribute:!1})],yC=[u({attribute:!1})],bC=[u({attribute:!1})],gC=[u({type:Boolean,reflect:!0})],vC=[k()],fC=[bt({context:rl}),k()],wC){constructor(){super(...arguments);s(this,Me);s(this,Dm,i(Nt,8,this)),i(Nt,11,this);s(this,qm,i(Nt,12,this,[])),i(Nt,15,this);s(this,Vm,i(Nt,16,this,[])),i(Nt,19,this);s(this,Um,i(Nt,20,this,!1)),i(Nt,23,this);s(this,jm,i(Nt,24,this,[])),i(Nt,27,this);s(this,Ws,()=>this.value??r(this,Me,kC));s(this,al,t=>{let e=r(this,Ws).call(this),a=e.includes(t)?e.filter(l=>l!==t):[...e,t];this.value===void 0&&h(this,Me,a,sl),this.dispatchEvent(Gm(a))});s(this,ll,t=>{let e=t?[...this.allValues]:[];this.value===void 0&&h(this,Me,e,sl),this.dispatchEvent(Gm(e))});s(this,Wm,i(Nt,28,this,m(this,Me,nl).call(this))),i(Nt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Me,[...this.defaultValue],sl),this._ctx=m(this,Me,nl).call(this)}willUpdate(){this._ctx=m(this,Me,nl).call(this)}render(){return f`
|
|
3810
3870
|
<div
|
|
3811
3871
|
part="root"
|
|
3812
3872
|
role="group"
|
|
@@ -3814,7 +3874,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3814
3874
|
>
|
|
3815
3875
|
<slot></slot>
|
|
3816
3876
|
</div>
|
|
3817
|
-
`}};
|
|
3877
|
+
`}};Nt=S(wC),Dm=new WeakMap,qm=new WeakMap,Vm=new WeakMap,Um=new WeakMap,jm=new WeakMap,Me=new WeakSet,Ws=new WeakMap,al=new WeakMap,ll=new WeakMap,Wm=new WeakMap,nl=function(){return{checkedValues:r(this,Ws).call(this),allValues:this.allValues,disabled:this.disabled,toggle:r(this,al),toggleAll:r(this,ll)}},d(Nt,4,"value",xC,Se,Dm),d(Nt,4,"defaultValue",yC,Se,qm),d(Nt,4,"allValues",bC,Se,Vm),d(Nt,4,"disabled",gC,Se,Um),Km=d(Nt,20,"#internalValues",vC,Me,jm),kC=Km.get,sl=Km.set,d(Nt,4,"_ctx",fC,Se,Wm),C(Nt,Se),b(Se,"tagName","dui-checkbox-group"),b(Se,"styles",[y,f_]);var LC=_("open-change",{bubbles:!0,composed:!0}),v_=c`
|
|
3818
3878
|
:host {
|
|
3819
3879
|
display: block;
|
|
3820
3880
|
}
|
|
@@ -3845,7 +3905,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3845
3905
|
overflow: hidden;
|
|
3846
3906
|
transition-property: height;
|
|
3847
3907
|
}
|
|
3848
|
-
`,
|
|
3908
|
+
`,g_=f`<svg
|
|
3849
3909
|
part="indicator"
|
|
3850
3910
|
width="16"
|
|
3851
3911
|
height="16"
|
|
@@ -3857,44 +3917,44 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3857
3917
|
stroke-linejoin="round"
|
|
3858
3918
|
>
|
|
3859
3919
|
<path d="m6 9 6 6 6-6" />
|
|
3860
|
-
</svg>`,
|
|
3920
|
+
</svg>`,CC,SC,EC,$C,TC,RC,IC,AC,_C,OC,ut,Ym,Xm,Qm,Jm,Zm,tf,cf,dl,N,ef,rf,cl,pl,of,sf,PC,Yo,nf,af,pf,hl,lf,df,zC,hf,Xo,Qo,uo,Gs,MC,FC,ul,ml,Fe=class extends(OC=g,_C=[u({type:Boolean,reflect:!0})],AC=[u({type:Boolean,attribute:"default-open"})],IC=[u({type:Boolean,reflect:!0})],RC=[u({type:Boolean,attribute:"keep-mounted"})],TC=[k()],$C=[k()],EC=[k()],SC=[k()],CC=[k()],OC){constructor(){super(...arguments);s(this,N);s(this,Ym,i(ut,8,this,!1)),i(ut,11,this);s(this,Xm,i(ut,12,this,!1)),i(ut,15,this);s(this,Qm,i(ut,16,this,!1)),i(ut,19,this);s(this,Jm,i(ut,20,this,!1)),i(ut,23,this);s(this,Zm,i(ut,24,this,!1)),i(ut,27,this);s(this,ef,i(ut,28,this,!1)),i(ut,31,this);s(this,of,i(ut,32,this,"0")),i(ut,35,this);s(this,nf,i(ut,36,this,!1)),i(ut,39,this);s(this,lf,i(ut,40,this,!1)),i(ut,43,this);s(this,Xo);s(this,Qo,0);s(this,uo,!1);s(this,ul,t=>{t.propertyName==="height"&&(r(this,N,cl)?(h(this,N,!1,pl),this.keepMounted||h(this,N,!1,hl)):r(this,N,Gs)&&h(this,N,"auto",Yo))});s(this,ml,()=>{if(this.disabled)return;let t=!r(this,N,Gs);r(this,uo)||h(this,N,t,hf),this.dispatchEvent(LC({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,uo,this.hasAttribute("open")),!r(this,uo)&&this.defaultOpen&&h(this,N,!0,hf)}willUpdate(t){t.has("open")&&r(this,Xo)!==void 0&&h(this,uo,!0);let e=r(this,N,Gs);r(this,Xo)===void 0?(h(this,N,e,hl),h(this,N,e?"auto":"0",Yo)):r(this,Xo)!==e&&(e?m(this,N,MC).call(this):m(this,N,FC).call(this)),h(this,Xo,e)}render(){let t=r(this,N,Gs),e=r(this,N,pf)||this.keepMounted;return f`
|
|
3861
3921
|
<button
|
|
3862
3922
|
part="trigger"
|
|
3863
3923
|
aria-expanded=${t}
|
|
3864
3924
|
?data-open=${t}
|
|
3865
3925
|
?data-disabled=${this.disabled}
|
|
3866
3926
|
?disabled=${this.disabled}
|
|
3867
|
-
@click=${r(this,
|
|
3927
|
+
@click=${r(this,ml)}
|
|
3868
3928
|
>
|
|
3869
3929
|
<slot name="trigger"></slot>
|
|
3870
|
-
${
|
|
3930
|
+
${g_}
|
|
3871
3931
|
</button>
|
|
3872
|
-
${e?
|
|
3932
|
+
${e?f`
|
|
3873
3933
|
<div
|
|
3874
3934
|
part="panel"
|
|
3875
3935
|
role="region"
|
|
3876
|
-
style="height: ${r(this,
|
|
3877
|
-
?data-open=${t&&!r(this,
|
|
3878
|
-
?data-starting-style=${r(this,
|
|
3879
|
-
?data-ending-style=${r(this,
|
|
3880
|
-
?hidden=${!r(this,
|
|
3881
|
-
@transitionend=${r(this,
|
|
3936
|
+
style="height: ${r(this,N,PC)}"
|
|
3937
|
+
?data-open=${t&&!r(this,N,cf)}
|
|
3938
|
+
?data-starting-style=${r(this,N,cf)}
|
|
3939
|
+
?data-ending-style=${r(this,N,cl)}
|
|
3940
|
+
?hidden=${!r(this,N,pf)&&!r(this,N,cl)}
|
|
3941
|
+
@transitionend=${r(this,ul)}
|
|
3882
3942
|
>
|
|
3883
3943
|
<div part="content">
|
|
3884
3944
|
<slot></slot>
|
|
3885
3945
|
</div>
|
|
3886
3946
|
</div>
|
|
3887
3947
|
`:T}
|
|
3888
|
-
`}};ut=S(iC),wm=new WeakMap,km=new WeakMap,Cm=new WeakMap,Sm=new WeakMap,Em=new WeakMap,H=new WeakSet,Tm=new WeakMap,Im=new WeakMap,_m=new WeakMap,Lm=new WeakMap,jo=new WeakMap,Ko=new WeakMap,eo=new WeakMap,Fs=function(){return r(this,eo)?this.open:r(this,H,aC)},lC=function(){let t=++Ri(this,Ko)._;h(this,H,!1,za),h(this,H,!0,Ma),h(this,H,!0,La),h(this,H,"0",Uo),requestAnimationFrame(()=>{if(r(this,Ko)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,H,`${e.scrollHeight}px`,Uo),h(this,H,!1,La)})},dC=function(){let t=++Ri(this,Ko)._;h(this,H,!1,La);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,H,`${e.scrollHeight}px`,Uo),requestAnimationFrame(()=>{r(this,Ko)===t&&(h(this,H,!0,za),h(this,H,"0",Uo))})},Da=new WeakMap,Fa=new WeakMap,d(ut,4,"open",oC,Ue,wm),d(ut,4,"defaultOpen",rC,Ue,km),d(ut,4,"disabled",eC,Ue,Cm),d(ut,4,"keepMounted",tC,Ue,Sm),$m=d(ut,20,"#starting",Zk,H,Em),zm=$m.get,La=$m.set,Rm=d(ut,20,"#ending",Jk,H,Tm),Pa=Rm.get,za=Rm.set,Am=d(ut,20,"#panelHeight",Qk,H,Im),nC=Am.get,Uo=Am.set,Om=d(ut,20,"#visible",Xk,H,_m),Mm=Om.get,Ma=Om.set,Pm=d(ut,20,"#internalOpen",Yk,H,Lm),aC=Pm.get,Dm=Pm.set,C(ut,Ue),g(Ue,"tagName","dui-collapsible"),g(Ue,"styles",[w,BA]);var je={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Fi=n=>(...o)=>({_$litDirective$:n,values:o}),ro=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this._$Ct=o,this._$AM=t,this._$Ci=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var{I:VA}=W0,cC=n=>n;var hC=n=>n.strings===void 0,pC=()=>document.createComment(""),Hi=(n,o,t)=>{let e=n._$AA.parentNode,a=o===void 0?n._$AB:o._$AA;if(t===void 0){let l=e.insertBefore(pC(),a),p=e.insertBefore(pC(),a);t=new VA(l,p,n,n.options)}else{let l=t._$AB.nextSibling,p=t._$AM,f=p!==n;if(f){let y;t._$AQ?.(n),t._$AM=n,t._$AP!==void 0&&(y=n._$AU)!==p._$AU&&t._$AP(y)}if(l!==a||f){let y=t._$AA;for(;y!==l;){let E=cC(y).nextSibling;cC(e).insertBefore(y,a),y=E}}}return t},oo=(n,o,t=n)=>(n._$AI(o,t),n),UA={},Ha=(n,o=UA)=>n._$AH=o,uC=n=>n._$AH,Na=n=>{n._$AR(),n._$AA.remove()};var mC=(n,o,t)=>{let e=new Map;for(let a=o;a<=t;a++)e.set(n[a],a);return e},io=Fi(class extends ro{constructor(n){if(super(n),n.type!==je.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let a=[],l=[],p=0;for(let f of n)a[p]=e?e(f,p):p,l[p]=t(f,p),p++;return{values:l,keys:a}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,e]){let a=uC(n),{values:l,keys:p}=this.dt(o,t,e);if(!Array.isArray(a))return this.ut=p,l;let f=this.ut??=[],y=[],E,$,x=0,I=a.length-1,R=0,P=l.length-1;for(;x<=I&&R<=P;)if(a[x]===null)x++;else if(a[I]===null)I--;else if(f[x]===p[R])y[R]=oo(a[x],l[R]),x++,R++;else if(f[I]===p[P])y[P]=oo(a[I],l[P]),I--,P--;else if(f[x]===p[P])y[P]=oo(a[x],l[P]),Hi(n,y[P+1],a[x]),x++,P--;else if(f[I]===p[R])y[R]=oo(a[I],l[R]),Hi(n,a[x],a[I]),I--,R++;else if(E===void 0&&(E=mC(p,R,P),$=mC(f,x,I)),E.has(f[x]))if(E.has(f[I])){let F=$.get(p[R]),X=F!==void 0?a[F]:null;if(X===null){let q=Hi(n,a[x]);oo(q,l[R]),y[R]=q}else y[R]=oo(X,l[R]),Hi(n,a[x],X),a[F]=null;R++}else Na(a[I]),I--;else Na(a[x]),x++;for(;R<=P;){let F=Hi(n,y[P+1]);oo(F,l[R]),y[R++]=F}for(;x<=I;){let F=a[x++];F!==null&&Na(F)}return this.ut=p,Ha(n,y),jt}});var so=Fi(class extends ro{constructor(n){if(super(n),n.type!==je.PROPERTY&&n.type!==je.ATTRIBUTE&&n.type!==je.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!hC(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===jt||o===T)return o;let t=n.element,e=n.name;if(n.type===je.PROPERTY){if(o===t[e])return jt}else if(n.type===je.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return jt}else if(n.type===je.ATTRIBUTE&&t.getAttribute(e)===o+"")return jt;return Ha(n),o}});var Ba=new Map,fC=(n,o)=>{for(let[t,e]of Ba)t!==n&&e();Ba.clear(),Ba.set(n,o)},Fm=n=>{Ba.delete(n)};var no=Math.min,Xt=Math.max,Ns=Math.round,Bs=Math.floor,Ke=n=>({x:n,y:n}),jA={left:"right",right:"left",bottom:"top",top:"bottom"},KA={start:"end",end:"start"};function Hm(n,o,t){return Xt(n,no(o,t))}function Ni(n,o){return typeof n=="function"?n(o):n}function Mr(n){return n.split("-")[0]}function Bi(n){return n.split("-")[1]}function Nm(n){return n==="x"?"y":"x"}function Bm(n){return n==="y"?"height":"width"}var WA=new Set(["top","bottom"]);function nr(n){return WA.has(Mr(n))?"y":"x"}function qm(n){return Nm(nr(n))}function bC(n,o,t){t===void 0&&(t=!1);let e=Bi(n),a=qm(n),l=Bm(a),p=a==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(p=Hs(p)),[p,Hs(p)]}function yC(n){let o=Hs(n);return[qa(n),o,qa(o)]}function qa(n){return n.replace(/start|end/g,o=>KA[o])}var vC=["left","right"],gC=["right","left"],GA=["top","bottom"],YA=["bottom","top"];function XA(n,o,t){switch(n){case"top":case"bottom":return t?o?gC:vC:o?vC:gC;case"left":case"right":return o?GA:YA;default:return[]}}function xC(n,o,t,e){let a=Bi(n),l=XA(Mr(n),t==="start",e);return a&&(l=l.map(p=>p+"-"+a),o&&(l=l.concat(l.map(qa)))),l}function Hs(n){return n.replace(/left|right|bottom|top/g,o=>jA[o])}function QA(n){return{top:0,right:0,bottom:0,left:0,...n}}function wC(n){return typeof n!="number"?QA(n):{top:n,right:n,bottom:n,left:n}}function Wo(n){let{x:o,y:t,width:e,height:a}=n;return{width:e,height:a,top:t,left:o,right:o+e,bottom:t+a,x:o,y:t}}function kC(n,o,t){let{reference:e,floating:a}=n,l=nr(o),p=qm(o),f=Bm(p),y=Mr(o),E=l==="y",$=e.x+e.width/2-a.width/2,x=e.y+e.height/2-a.height/2,I=e[f]/2-a[f]/2,R;switch(y){case"top":R={x:$,y:e.y-a.height};break;case"bottom":R={x:$,y:e.y+e.height};break;case"right":R={x:e.x+e.width,y:x};break;case"left":R={x:e.x-a.width,y:x};break;default:R={x:e.x,y:e.y}}switch(Bi(o)){case"start":R[p]-=I*(t&&E?-1:1);break;case"end":R[p]+=I*(t&&E?-1:1);break}return R}async function CC(n,o){var t;o===void 0&&(o={});let{x:e,y:a,platform:l,rects:p,elements:f,strategy:y}=n,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:x="floating",altBoundary:I=!1,padding:R=0}=Ni(o,n),P=wC(R),X=f[I?x==="floating"?"reference":"floating":x],q=Wo(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(X)))==null||t?X:X.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:E,rootBoundary:$,strategy:y})),z=x==="floating"?{x:e,y:a,width:p.floating.width,height:p.floating.height}:p.reference,B=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),K=await(l.isElement==null?void 0:l.isElement(B))?await(l.getScale==null?void 0:l.getScale(B))||{x:1,y:1}:{x:1,y:1},qt=Wo(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:z,offsetParent:B,strategy:y}):z);return{top:(q.top-qt.top+P.top)/K.y,bottom:(qt.bottom-q.bottom+P.bottom)/K.y,left:(q.left-qt.left+P.left)/K.x,right:(qt.right-q.right+P.right)/K.x}}var SC=async(n,o,t)=>{let{placement:e="bottom",strategy:a="absolute",middleware:l=[],platform:p}=t,f=l.filter(Boolean),y=await(p.isRTL==null?void 0:p.isRTL(o)),E=await p.getElementRects({reference:n,floating:o,strategy:a}),{x:$,y:x}=kC(E,e,y),I=e,R={},P=0;for(let X=0;X<f.length;X++){var F;let{name:q,fn:z}=f[X],{x:B,y:K,data:qt,reset:Gt}=await z({x:$,y:x,initialPlacement:e,placement:I,strategy:a,middlewareData:R,rects:E,platform:{...p,detectOverflow:(F=p.detectOverflow)!=null?F:CC},elements:{reference:n,floating:o}});$=B??$,x=K??x,R={...R,[q]:{...R[q],...qt}},Gt&&P<=50&&(P++,typeof Gt=="object"&&(Gt.placement&&(I=Gt.placement),Gt.rects&&(E=Gt.rects===!0?await p.getElementRects({reference:n,floating:o,strategy:a}):Gt.rects),{x:$,y:x}=kC(E,I,y)),X=-1)}return{x:$,y:x,placement:I,strategy:a,middlewareData:R}};var EC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:a,middlewareData:l,rects:p,initialPlacement:f,platform:y,elements:E}=o,{mainAxis:$=!0,crossAxis:x=!0,fallbackPlacements:I,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:F=!0,...X}=Ni(n,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let q=Mr(a),z=nr(f),B=Mr(f)===f,K=await(y.isRTL==null?void 0:y.isRTL(E.floating)),qt=I||(B||!F?[Hs(f)]:yC(f)),Gt=P!=="none";!I&&Gt&&qt.push(...xC(f,F,P,K));let er=[f,...qt],Io=await y.detectOverflow(o,X),Ao=[],Or=((e=l.flip)==null?void 0:e.overflows)||[];if($&&Ao.push(Io[q]),x){let _o=bC(a,p,K);Ao.push(Io[_o[0]],Io[_o[1]])}if(Or=[...Or,{placement:a,overflows:Ao}],!Ao.every(_o=>_o<=0)){var ys,xs;let _o=(((ys=l.flip)==null?void 0:ys.index)||0)+1,qc=er[_o];if(qc&&(!(x==="alignment"?z!==nr(qc):!1)||Or.every(Ne=>nr(Ne.placement)===z?Ne.overflows[0]>0:!0)))return{data:{index:_o,overflows:Or},reset:{placement:qc}};let ks=(xs=Or.filter(Oo=>Oo.overflows[0]<=0).sort((Oo,Ne)=>Oo.overflows[1]-Ne.overflows[1])[0])==null?void 0:xs.placement;if(!ks)switch(R){case"bestFit":{var ws;let Oo=(ws=Or.filter(Ne=>{if(Gt){let Qr=nr(Ne.placement);return Qr===z||Qr==="y"}return!0}).map(Ne=>[Ne.placement,Ne.overflows.filter(Qr=>Qr>0).reduce((Qr,ZI)=>Qr+ZI,0)]).sort((Ne,Qr)=>Ne[1]-Qr[1])[0])==null?void 0:ws[0];Oo&&(ks=Oo);break}case"initialPlacement":ks=f;break}if(a!==ks)return{reset:{placement:ks}}}return{}}}};var JA=new Set(["left","top"]);async function ZA(n,o){let{placement:t,platform:e,elements:a}=n,l=await(e.isRTL==null?void 0:e.isRTL(a.floating)),p=Mr(t),f=Bi(t),y=nr(t)==="y",E=JA.has(p)?-1:1,$=l&&y?-1:1,x=Ni(o,n),{mainAxis:I,crossAxis:R,alignmentAxis:P}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return f&&typeof P=="number"&&(R=f==="end"?P*-1:P),y?{x:R*$,y:I*E}:{x:I*E,y:R*$}}var $C=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:a,y:l,placement:p,middlewareData:f}=o,y=await ZA(o,n);return p===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:a+y.x,y:l+y.y,data:{...y,placement:p}}}}},TC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:a,platform:l}=o,{mainAxis:p=!0,crossAxis:f=!1,limiter:y={fn:q=>{let{x:z,y:B}=q;return{x:z,y:B}}},...E}=Ni(n,o),$={x:t,y:e},x=await l.detectOverflow(o,E),I=nr(Mr(a)),R=Nm(I),P=$[R],F=$[I];if(p){let q=R==="y"?"top":"left",z=R==="y"?"bottom":"right",B=P+x[q],K=P-x[z];P=Hm(B,P,K)}if(f){let q=I==="y"?"top":"left",z=I==="y"?"bottom":"right",B=F+x[q],K=F-x[z];F=Hm(B,F,K)}let X=y.fn({...o,[R]:P,[I]:F});return{...X,data:{x:X.x-t,y:X.y-e,enabled:{[R]:p,[I]:f}}}}}};var RC=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:a,rects:l,platform:p,elements:f}=o,{apply:y=()=>{},...E}=Ni(n,o),$=await p.detectOverflow(o,E),x=Mr(a),I=Bi(a),R=nr(a)==="y",{width:P,height:F}=l.floating,X,q;x==="top"||x==="bottom"?(X=x,q=I===(await(p.isRTL==null?void 0:p.isRTL(f.floating))?"start":"end")?"left":"right"):(q=x,X=I==="end"?"top":"bottom");let z=F-$.top-$.bottom,B=P-$.left-$.right,K=no(F-$[X],z),qt=no(P-$[q],B),Gt=!o.middlewareData.shift,er=K,Io=qt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(Io=B),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(er=z),Gt&&!I){let Or=Xt($.left,0),ys=Xt($.right,0),xs=Xt($.top,0),ws=Xt($.bottom,0);R?Io=P-2*(Or!==0||ys!==0?Or+ys:Xt($.left,$.right)):er=F-2*(xs!==0||ws!==0?xs+ws:Xt($.top,$.bottom))}await y({...o,availableWidth:Io,availableHeight:er});let Ao=await p.getDimensions(f.floating);return P!==Ao.width||F!==Ao.height?{reset:{rects:!0}}:{}}}};function Va(){return typeof window<"u"}function Go(n){return AC(n)?(n.nodeName||"").toLowerCase():"#document"}function oe(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function We(n){var o;return(o=(AC(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function AC(n){return Va()?n instanceof Node||n instanceof oe(n).Node:!1}function Oe(n){return Va()?n instanceof Element||n instanceof oe(n).Element:!1}function Ge(n){return Va()?n instanceof HTMLElement||n instanceof oe(n).HTMLElement:!1}function IC(n){return!Va()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof oe(n).ShadowRoot}var t_=new Set(["inline","contents"]);function Vi(n){let{overflow:o,overflowX:t,overflowY:e,display:a}=Le(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!t_.has(a)}var e_=new Set(["table","td","th"]);function _C(n){return e_.has(Go(n))}var r_=[":popover-open",":modal"];function qs(n){return r_.some(o=>{try{return n.matches(o)}catch{return!1}})}var o_=["transform","translate","scale","rotate","perspective"],i_=["transform","translate","scale","rotate","perspective","filter"],s_=["paint","layout","strict","content"];function Ua(n){let o=ja(),t=Oe(n)?Le(n):n;return o_.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||i_.some(e=>(t.willChange||"").includes(e))||s_.some(e=>(t.contain||"").includes(e))}function OC(n){let o=Dr(n);for(;Ge(o)&&!Yo(o);){if(Ua(o))return o;if(qs(o))return null;o=Dr(o)}return null}function ja(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var n_=new Set(["html","body","#document"]);function Yo(n){return n_.has(Go(n))}function Le(n){return oe(n).getComputedStyle(n)}function Vs(n){return Oe(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dr(n){if(Go(n)==="html")return n;let o=n.assignedSlot||n.parentNode||IC(n)&&n.host||We(n);return IC(o)?o.host:o}function LC(n){let o=Dr(n);return Yo(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ge(o)&&Vi(o)?o:LC(o)}function qi(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=LC(n),l=a===((e=n.ownerDocument)==null?void 0:e.body),p=oe(a);if(l){let f=Ka(p);return o.concat(p,p.visualViewport||[],Vi(a)?a:[],f&&t?qi(f):[])}return o.concat(a,qi(a,[],t))}function Ka(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function DC(n){let o=Le(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,a=Ge(n),l=a?n.offsetWidth:t,p=a?n.offsetHeight:e,f=Ns(t)!==l||Ns(e)!==p;return f&&(t=l,e=p),{width:t,height:e,$:f}}function Um(n){return Oe(n)?n:n.contextElement}function Ui(n){let o=Um(n);if(!Ge(o))return Ke(1);let t=o.getBoundingClientRect(),{width:e,height:a,$:l}=DC(o),p=(l?Ns(t.width):t.width)/e,f=(l?Ns(t.height):t.height)/a;return(!p||!Number.isFinite(p))&&(p=1),(!f||!Number.isFinite(f))&&(f=1),{x:p,y:f}}var a_=Ke(0);function FC(n){let o=oe(n);return!ja()||!o.visualViewport?a_:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function l_(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==oe(n)?!1:o}function Xo(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),l=Um(n),p=Ke(1);o&&(e?Oe(e)&&(p=Ui(e)):p=Ui(n));let f=l_(l,t,e)?FC(l):Ke(0),y=(a.left+f.x)/p.x,E=(a.top+f.y)/p.y,$=a.width/p.x,x=a.height/p.y;if(l){let I=oe(l),R=e&&Oe(e)?oe(e):e,P=I,F=Ka(P);for(;F&&e&&R!==P;){let X=Ui(F),q=F.getBoundingClientRect(),z=Le(F),B=q.left+(F.clientLeft+parseFloat(z.paddingLeft))*X.x,K=q.top+(F.clientTop+parseFloat(z.paddingTop))*X.y;y*=X.x,E*=X.y,$*=X.x,x*=X.y,y+=B,E+=K,P=oe(F),F=Ka(P)}}return Wo({width:$,height:x,x:y,y:E})}function Wa(n,o){let t=Vs(n).scrollLeft;return o?o.left+t:Xo(We(n)).left+t}function HC(n,o){let t=n.getBoundingClientRect(),e=t.left+o.scrollLeft-Wa(n,t),a=t.top+o.scrollTop;return{x:e,y:a}}function d_(n){let{elements:o,rect:t,offsetParent:e,strategy:a}=n,l=a==="fixed",p=We(e),f=o?qs(o.floating):!1;if(e===p||f&&l)return t;let y={scrollLeft:0,scrollTop:0},E=Ke(1),$=Ke(0),x=Ge(e);if((x||!x&&!l)&&((Go(e)!=="body"||Vi(p))&&(y=Vs(e)),Ge(e))){let R=Xo(e);E=Ui(e),$.x=R.x+e.clientLeft,$.y=R.y+e.clientTop}let I=p&&!x&&!l?HC(p,y):Ke(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-y.scrollLeft*E.x+$.x+I.x,y:t.y*E.y-y.scrollTop*E.y+$.y+I.y}}function c_(n){return Array.from(n.getClientRects())}function p_(n){let o=We(n),t=Vs(n),e=n.ownerDocument.body,a=Xt(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=Xt(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),p=-t.scrollLeft+Wa(n),f=-t.scrollTop;return Le(e).direction==="rtl"&&(p+=Xt(o.clientWidth,e.clientWidth)-a),{width:a,height:l,x:p,y:f}}var PC=25;function h_(n,o){let t=oe(n),e=We(n),a=t.visualViewport,l=e.clientWidth,p=e.clientHeight,f=0,y=0;if(a){l=a.width,p=a.height;let $=ja();(!$||$&&o==="fixed")&&(f=a.offsetLeft,y=a.offsetTop)}let E=Wa(e);if(E<=0){let $=e.ownerDocument,x=$.body,I=getComputedStyle(x),R=$.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,P=Math.abs(e.clientWidth-x.clientWidth-R);P<=PC&&(l-=P)}else E<=PC&&(l+=E);return{width:l,height:p,x:f,y}}var u_=new Set(["absolute","fixed"]);function m_(n,o){let t=Xo(n,!0,o==="fixed"),e=t.top+n.clientTop,a=t.left+n.clientLeft,l=Ge(n)?Ui(n):Ke(1),p=n.clientWidth*l.x,f=n.clientHeight*l.y,y=a*l.x,E=e*l.y;return{width:p,height:f,x:y,y:E}}function zC(n,o,t){let e;if(o==="viewport")e=h_(n,t);else if(o==="document")e=p_(We(n));else if(Oe(o))e=m_(o,t);else{let a=FC(n);e={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Wo(e)}function NC(n,o){let t=Dr(n);return t===o||!Oe(t)||Yo(t)?!1:Le(t).position==="fixed"||NC(t,o)}function f_(n,o){let t=o.get(n);if(t)return t;let e=qi(n,[],!1).filter(f=>Oe(f)&&Go(f)!=="body"),a=null,l=Le(n).position==="fixed",p=l?Dr(n):n;for(;Oe(p)&&!Yo(p);){let f=Le(p),y=Ua(p);!y&&f.position==="fixed"&&(a=null),(l?!y&&!a:!y&&f.position==="static"&&!!a&&u_.has(a.position)||Vi(p)&&!y&&NC(n,p))?e=e.filter($=>$!==p):a=f,p=Dr(p)}return o.set(n,e),e}function v_(n){let{element:o,boundary:t,rootBoundary:e,strategy:a}=n,p=[...t==="clippingAncestors"?qs(o)?[]:f_(o,this._c):[].concat(t),e],f=p[0],y=p.reduce((E,$)=>{let x=zC(o,$,a);return E.top=Xt(x.top,E.top),E.right=no(x.right,E.right),E.bottom=no(x.bottom,E.bottom),E.left=Xt(x.left,E.left),E},zC(o,f,a));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function g_(n){let{width:o,height:t}=DC(n);return{width:o,height:t}}function b_(n,o,t){let e=Ge(o),a=We(o),l=t==="fixed",p=Xo(n,!0,l,o),f={scrollLeft:0,scrollTop:0},y=Ke(0);function E(){y.x=Wa(a)}if(e||!e&&!l)if((Go(o)!=="body"||Vi(a))&&(f=Vs(o)),e){let R=Xo(o,!0,l,o);y.x=R.x+o.clientLeft,y.y=R.y+o.clientTop}else a&&E();l&&!e&&a&&E();let $=a&&!e&&!l?HC(a,f):Ke(0),x=p.left+f.scrollLeft-y.x-$.x,I=p.top+f.scrollTop-y.y-$.y;return{x,y:I,width:p.width,height:p.height}}function Vm(n){return Le(n).position==="static"}function MC(n,o){if(!Ge(n)||Le(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return We(n)===t&&(t=t.ownerDocument.body),t}function BC(n,o){let t=oe(n);if(qs(n))return t;if(!Ge(n)){let a=Dr(n);for(;a&&!Yo(a);){if(Oe(a)&&!Vm(a))return a;a=Dr(a)}return t}let e=MC(n,o);for(;e&&_C(e)&&Vm(e);)e=MC(e,o);return e&&Yo(e)&&Vm(e)&&!Ua(e)?t:e||OC(n)||t}var y_=async function(n){let o=this.getOffsetParent||BC,t=this.getDimensions,e=await t(n.floating);return{reference:b_(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function x_(n){return Le(n).direction==="rtl"}var jm={convertOffsetParentRelativeRectToViewportRelativeRect:d_,getDocumentElement:We,getClippingRect:v_,getOffsetParent:BC,getElementRects:y_,getClientRects:c_,getDimensions:g_,getScale:Ui,isElement:Oe,isRTL:x_};function qC(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function w_(n,o){let t=null,e,a=We(n);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function p(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let E=n.getBoundingClientRect(),{left:$,top:x,width:I,height:R}=E;if(f||o(),!I||!R)return;let P=Bs(x),F=Bs(a.clientWidth-($+I)),X=Bs(a.clientHeight-(x+R)),q=Bs($),B={rootMargin:-P+"px "+-F+"px "+-X+"px "+-q+"px",threshold:Xt(0,no(1,y))||1},K=!0;function qt(Gt){let er=Gt[0].intersectionRatio;if(er!==y){if(!K)return p();er?p(!1,er):e=setTimeout(()=>{p(!1,1e-7)},1e3)}er===1&&!qC(E,n.getBoundingClientRect())&&p(),K=!1}try{t=new IntersectionObserver(qt,{...B,root:a.ownerDocument})}catch{t=new IntersectionObserver(qt,B)}t.observe(n)}return p(!0),l}function VC(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,E=Um(n),$=a||l?[...E?qi(E):[],...qi(o)]:[];$.forEach(q=>{a&&q.addEventListener("scroll",t,{passive:!0}),l&&q.addEventListener("resize",t)});let x=E&&f?w_(E,t):null,I=-1,R=null;p&&(R=new ResizeObserver(q=>{let[z]=q;z&&z.target===E&&R&&(R.unobserve(o),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var B;(B=R)==null||B.observe(o)})),t()}),E&&!y&&R.observe(E),R.observe(o));let P,F=y?Xo(n):null;y&&X();function X(){let q=Xo(n);F&&!qC(F,q)&&t(),F=q,P=requestAnimationFrame(X)}return t(),()=>{var q;$.forEach(z=>{a&&z.removeEventListener("scroll",t),l&&z.removeEventListener("resize",t)}),x?.(),(q=R)==null||q.disconnect(),R=null,y&&cancelAnimationFrame(P)}}var UC=$C;var jC=TC,KC=EC,WC=RC;var GC=(n,o,t)=>{let e=new Map,a={platform:jm,...t},l={...a.platform,_c:e};return SC(n,o,{...a,platform:l})};var YC=()=>new Promise(n=>requestAnimationFrame(()=>requestAnimationFrame(()=>n()))),XC=(n,o,t=200)=>{let e=!1,a=()=>{e||(e=!0,n.removeEventListener("transitionend",l),clearTimeout(p),o())},l=()=>a();n.addEventListener("transitionend",l);let p=setTimeout(a,t)},ji=n=>v`
|
|
3948
|
+
`}};ut=S(OC),Ym=new WeakMap,Xm=new WeakMap,Qm=new WeakMap,Jm=new WeakMap,Zm=new WeakMap,N=new WeakSet,ef=new WeakMap,of=new WeakMap,nf=new WeakMap,lf=new WeakMap,Xo=new WeakMap,Qo=new WeakMap,uo=new WeakMap,Gs=function(){return r(this,uo)?this.open:r(this,N,zC)},MC=function(){let t=++_i(this,Qo)._;h(this,N,!1,pl),h(this,N,!0,hl),h(this,N,!0,dl),h(this,N,"0",Yo),requestAnimationFrame(()=>{if(r(this,Qo)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,N,`${e.scrollHeight}px`,Yo),h(this,N,!1,dl)})},FC=function(){let t=++_i(this,Qo)._;h(this,N,!1,dl);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,N,`${e.scrollHeight}px`,Yo),requestAnimationFrame(()=>{r(this,Qo)===t&&(h(this,N,!0,pl),h(this,N,"0",Yo))})},ul=new WeakMap,ml=new WeakMap,d(ut,4,"open",_C,Fe,Ym),d(ut,4,"defaultOpen",AC,Fe,Xm),d(ut,4,"disabled",IC,Fe,Qm),d(ut,4,"keepMounted",RC,Fe,Jm),tf=d(ut,20,"#starting",TC,N,Zm),cf=tf.get,dl=tf.set,rf=d(ut,20,"#ending",$C,N,ef),cl=rf.get,pl=rf.set,sf=d(ut,20,"#panelHeight",EC,N,of),PC=sf.get,Yo=sf.set,af=d(ut,20,"#visible",SC,N,nf),pf=af.get,hl=af.set,df=d(ut,20,"#internalOpen",CC,N,lf),zC=df.get,hf=df.set,C(ut,Fe),b(Fe,"tagName","dui-collapsible"),b(Fe,"styles",[y,v_]);var Je={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Bi=n=>(...o)=>({_$litDirective$:n,values:o}),mo=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this._$Ct=o,this._$AM=t,this._$Ci=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var{I:b_}=ww,HC=n=>n;var BC=n=>n.strings===void 0,NC=()=>document.createComment(""),Di=(n,o,t)=>{let e=n._$AA.parentNode,a=o===void 0?n._$AB:o._$AA;if(t===void 0){let l=e.insertBefore(NC(),a),p=e.insertBefore(NC(),a);t=new b_(l,p,n,n.options)}else{let l=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(l!==a||v){let x=t._$AA;for(;x!==l;){let E=HC(x).nextSibling;HC(e).insertBefore(x,a),x=E}}}return t},fo=(n,o,t=n)=>(n._$AI(o,t),n),y_={},fl=(n,o=y_)=>n._$AH=o,DC=n=>n._$AH,vl=n=>{n._$AR(),n._$AA.remove()};var qC=(n,o,t)=>{let e=new Map;for(let a=o;a<=t;a++)e.set(n[a],a);return e},vo=Bi(class extends mo{constructor(n){if(super(n),n.type!==Je.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let a=[],l=[],p=0;for(let v of n)a[p]=e?e(v,p):p,l[p]=t(v,p),p++;return{values:l,keys:a}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,e]){let a=DC(n),{values:l,keys:p}=this.dt(o,t,e);if(!Array.isArray(a))return this.ut=p,l;let v=this.ut??=[],x=[],E,$,w=0,I=a.length-1,R=0,P=l.length-1;for(;w<=I&&R<=P;)if(a[w]===null)w++;else if(a[I]===null)I--;else if(v[w]===p[R])x[R]=fo(a[w],l[R]),w++,R++;else if(v[I]===p[P])x[P]=fo(a[I],l[P]),I--,P--;else if(v[w]===p[P])x[P]=fo(a[w],l[P]),Di(n,x[P+1],a[w]),w++,P--;else if(v[I]===p[R])x[R]=fo(a[I],l[R]),Di(n,a[w],a[I]),I--,R++;else if(E===void 0&&(E=qC(p,R,P),$=qC(v,w,I)),E.has(v[w]))if(E.has(v[I])){let H=$.get(p[R]),Q=H!==void 0?a[H]:null;if(Q===null){let V=Di(n,a[w]);fo(V,l[R]),x[R]=V}else x[R]=fo(Q,l[R]),Di(n,a[w],Q),a[H]=null;R++}else vl(a[I]),I--;else vl(a[w]),w++;for(;R<=P;){let H=Di(n,x[P+1]);fo(H,l[R]),x[R++]=H}for(;w<=I;){let H=a[w++];H!==null&&vl(H)}return this.ut=p,fl(n,x),Kt}});var go=Bi(class extends mo{constructor(n){if(super(n),n.type!==Je.PROPERTY&&n.type!==Je.ATTRIBUTE&&n.type!==Je.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!BC(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===Kt||o===T)return o;let t=n.element,e=n.name;if(n.type===Je.PROPERTY){if(o===t[e])return Kt}else if(n.type===Je.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return Kt}else if(n.type===Je.ATTRIBUTE&&t.getAttribute(e)===o+"")return Kt;return fl(n),o}});var gl=new Map,VC=(n,o)=>{for(let[t,e]of gl)t!==n&&e();gl.clear(),gl.set(n,o)},uf=n=>{gl.delete(n)};var bo=Math.min,Jt=Math.max,Xs=Math.round,Qs=Math.floor,Ze=n=>({x:n,y:n}),x_={left:"right",right:"left",bottom:"top",top:"bottom"},w_={start:"end",end:"start"};function mf(n,o,t){return Jt(n,bo(o,t))}function qi(n,o){return typeof n=="function"?n(o):n}function Dr(n){return n.split("-")[0]}function Vi(n){return n.split("-")[1]}function ff(n){return n==="x"?"y":"x"}function vf(n){return n==="y"?"height":"width"}var k_=new Set(["top","bottom"]);function mr(n){return k_.has(Dr(n))?"y":"x"}function gf(n){return ff(mr(n))}function KC(n,o,t){t===void 0&&(t=!1);let e=Vi(n),a=gf(n),l=vf(a),p=a==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(p=Ys(p)),[p,Ys(p)]}function WC(n){let o=Ys(n);return[bl(n),o,bl(o)]}function bl(n){return n.replace(/start|end/g,o=>w_[o])}var UC=["left","right"],jC=["right","left"],C_=["top","bottom"],S_=["bottom","top"];function E_(n,o,t){switch(n){case"top":case"bottom":return t?o?jC:UC:o?UC:jC;case"left":case"right":return o?C_:S_;default:return[]}}function GC(n,o,t,e){let a=Vi(n),l=E_(Dr(n),t==="start",e);return a&&(l=l.map(p=>p+"-"+a),o&&(l=l.concat(l.map(bl)))),l}function Ys(n){return n.replace(/left|right|bottom|top/g,o=>x_[o])}function $_(n){return{top:0,right:0,bottom:0,left:0,...n}}function YC(n){return typeof n!="number"?$_(n):{top:n,right:n,bottom:n,left:n}}function Jo(n){let{x:o,y:t,width:e,height:a}=n;return{width:e,height:a,top:t,left:o,right:o+e,bottom:t+a,x:o,y:t}}function XC(n,o,t){let{reference:e,floating:a}=n,l=mr(o),p=gf(o),v=vf(p),x=Dr(o),E=l==="y",$=e.x+e.width/2-a.width/2,w=e.y+e.height/2-a.height/2,I=e[v]/2-a[v]/2,R;switch(x){case"top":R={x:$,y:e.y-a.height};break;case"bottom":R={x:$,y:e.y+e.height};break;case"right":R={x:e.x+e.width,y:w};break;case"left":R={x:e.x-a.width,y:w};break;default:R={x:e.x,y:e.y}}switch(Vi(o)){case"start":R[p]-=I*(t&&E?-1:1);break;case"end":R[p]+=I*(t&&E?-1:1);break}return R}async function QC(n,o){var t;o===void 0&&(o={});let{x:e,y:a,platform:l,rects:p,elements:v,strategy:x}=n,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:w="floating",altBoundary:I=!1,padding:R=0}=qi(o,n),P=YC(R),Q=v[I?w==="floating"?"reference":"floating":w],V=Jo(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(Q)))==null||t?Q:Q.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(v.floating)),boundary:E,rootBoundary:$,strategy:x})),z=w==="floating"?{x:e,y:a,width:p.floating.width,height:p.floating.height}:p.reference,D=await(l.getOffsetParent==null?void 0:l.getOffsetParent(v.floating)),W=await(l.isElement==null?void 0:l.isElement(D))?await(l.getScale==null?void 0:l.getScale(D))||{x:1,y:1}:{x:1,y:1},qt=Jo(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:z,offsetParent:D,strategy:x}):z);return{top:(V.top-qt.top+P.top)/W.y,bottom:(qt.bottom-V.bottom+P.bottom)/W.y,left:(V.left-qt.left+P.left)/W.x,right:(qt.right-V.right+P.right)/W.x}}var JC=async(n,o,t)=>{let{placement:e="bottom",strategy:a="absolute",middleware:l=[],platform:p}=t,v=l.filter(Boolean),x=await(p.isRTL==null?void 0:p.isRTL(o)),E=await p.getElementRects({reference:n,floating:o,strategy:a}),{x:$,y:w}=XC(E,e,x),I=e,R={},P=0;for(let Q=0;Q<v.length;Q++){var H;let{name:V,fn:z}=v[Q],{x:D,y:W,data:qt,reset:Xt}=await z({x:$,y:w,initialPlacement:e,placement:I,strategy:a,middlewareData:R,rects:E,platform:{...p,detectOverflow:(H=p.detectOverflow)!=null?H:QC},elements:{reference:n,floating:o}});$=D??$,w=W??w,R={...R,[V]:{...R[V],...qt}},Xt&&P<=50&&(P++,typeof Xt=="object"&&(Xt.placement&&(I=Xt.placement),Xt.rects&&(E=Xt.rects===!0?await p.getElementRects({reference:n,floating:o,strategy:a}):Xt.rects),{x:$,y:w}=XC(E,I,x)),Q=-1)}return{x:$,y:w,placement:I,strategy:a,middlewareData:R}};var ZC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:a,middlewareData:l,rects:p,initialPlacement:v,platform:x,elements:E}=o,{mainAxis:$=!0,crossAxis:w=!0,fallbackPlacements:I,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:H=!0,...Q}=qi(n,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let V=Dr(a),z=mr(v),D=Dr(v)===v,W=await(x.isRTL==null?void 0:x.isRTL(E.floating)),qt=I||(D||!H?[Ys(v)]:WC(v)),Xt=P!=="none";!I&&Xt&&qt.push(...GC(v,H,P,W));let hr=[v,...qt],Po=await x.detectOverflow(o,Q),zo=[],Fr=((e=l.flip)==null?void 0:e.overflows)||[];if($&&zo.push(Po[V]),w){let Mo=KC(a,p,W);zo.push(Po[Mo[0]],Po[Mo[1]])}if(Fr=[...Fr,{placement:a,overflows:zo}],!zo.every(Mo=>Mo<=0)){var xs,ws;let Mo=(((xs=l.flip)==null?void 0:xs.index)||0)+1,vp=hr[Mo];if(vp&&(!(w==="alignment"?z!==mr(vp):!1)||Fr.every(Ke=>mr(Ke.placement)===z?Ke.overflows[0]>0:!0)))return{data:{index:Mo,overflows:Fr},reset:{placement:vp}};let Cs=(ws=Fr.filter(Fo=>Fo.overflows[0]<=0).sort((Fo,Ke)=>Fo.overflows[1]-Ke.overflows[1])[0])==null?void 0:ws.placement;if(!Cs)switch(R){case"bestFit":{var ks;let Fo=(ks=Fr.filter(Ke=>{if(Xt){let ao=mr(Ke.placement);return ao===z||ao==="y"}return!0}).map(Ke=>[Ke.placement,Ke.overflows.filter(ao=>ao>0).reduce((ao,TA)=>ao+TA,0)]).sort((Ke,ao)=>Ke[1]-ao[1])[0])==null?void 0:ks[0];Fo&&(Cs=Fo);break}case"initialPlacement":Cs=v;break}if(a!==Cs)return{reset:{placement:Cs}}}return{}}}};var T_=new Set(["left","top"]);async function R_(n,o){let{placement:t,platform:e,elements:a}=n,l=await(e.isRTL==null?void 0:e.isRTL(a.floating)),p=Dr(t),v=Vi(t),x=mr(t)==="y",E=T_.has(p)?-1:1,$=l&&x?-1:1,w=qi(o,n),{mainAxis:I,crossAxis:R,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"&&(R=v==="end"?P*-1:P),x?{x:R*$,y:I*E}:{x:I*E,y:R*$}}var tS=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:a,y:l,placement:p,middlewareData:v}=o,x=await R_(o,n);return p===((t=v.offset)==null?void 0:t.placement)&&(e=v.arrow)!=null&&e.alignmentOffset?{}:{x:a+x.x,y:l+x.y,data:{...x,placement:p}}}}},eS=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:a,platform:l}=o,{mainAxis:p=!0,crossAxis:v=!1,limiter:x={fn:V=>{let{x:z,y:D}=V;return{x:z,y:D}}},...E}=qi(n,o),$={x:t,y:e},w=await l.detectOverflow(o,E),I=mr(Dr(a)),R=ff(I),P=$[R],H=$[I];if(p){let V=R==="y"?"top":"left",z=R==="y"?"bottom":"right",D=P+w[V],W=P-w[z];P=mf(D,P,W)}if(v){let V=I==="y"?"top":"left",z=I==="y"?"bottom":"right",D=H+w[V],W=H-w[z];H=mf(D,H,W)}let Q=x.fn({...o,[R]:P,[I]:H});return{...Q,data:{x:Q.x-t,y:Q.y-e,enabled:{[R]:p,[I]:v}}}}}};var rS=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:a,rects:l,platform:p,elements:v}=o,{apply:x=()=>{},...E}=qi(n,o),$=await p.detectOverflow(o,E),w=Dr(a),I=Vi(a),R=mr(a)==="y",{width:P,height:H}=l.floating,Q,V;w==="top"||w==="bottom"?(Q=w,V=I===(await(p.isRTL==null?void 0:p.isRTL(v.floating))?"start":"end")?"left":"right"):(V=w,Q=I==="end"?"top":"bottom");let z=H-$.top-$.bottom,D=P-$.left-$.right,W=bo(H-$[Q],z),qt=bo(P-$[V],D),Xt=!o.middlewareData.shift,hr=W,Po=qt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(Po=D),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(hr=z),Xt&&!I){let Fr=Jt($.left,0),xs=Jt($.right,0),ws=Jt($.top,0),ks=Jt($.bottom,0);R?Po=P-2*(Fr!==0||xs!==0?Fr+xs:Jt($.left,$.right)):hr=H-2*(ws!==0||ks!==0?ws+ks:Jt($.top,$.bottom))}await x({...o,availableWidth:Po,availableHeight:hr});let zo=await p.getDimensions(v.floating);return P!==zo.width||H!==zo.height?{reset:{rects:!0}}:{}}}};function yl(){return typeof window<"u"}function Zo(n){return iS(n)?(n.nodeName||"").toLowerCase():"#document"}function ae(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function tr(n){var o;return(o=(iS(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function iS(n){return yl()?n instanceof Node||n instanceof ae(n).Node:!1}function He(n){return yl()?n instanceof Element||n instanceof ae(n).Element:!1}function er(n){return yl()?n instanceof HTMLElement||n instanceof ae(n).HTMLElement:!1}function oS(n){return!yl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ae(n).ShadowRoot}var I_=new Set(["inline","contents"]);function ji(n){let{overflow:o,overflowX:t,overflowY:e,display:a}=Ne(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!I_.has(a)}var A_=new Set(["table","td","th"]);function sS(n){return A_.has(Zo(n))}var __=[":popover-open",":modal"];function Js(n){return __.some(o=>{try{return n.matches(o)}catch{return!1}})}var O_=["transform","translate","scale","rotate","perspective"],L_=["transform","translate","scale","rotate","perspective","filter"],P_=["paint","layout","strict","content"];function xl(n){let o=wl(),t=He(n)?Ne(n):n;return O_.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||L_.some(e=>(t.willChange||"").includes(e))||P_.some(e=>(t.contain||"").includes(e))}function nS(n){let o=qr(n);for(;er(o)&&!ti(o);){if(xl(o))return o;if(Js(o))return null;o=qr(o)}return null}function wl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var z_=new Set(["html","body","#document"]);function ti(n){return z_.has(Zo(n))}function Ne(n){return ae(n).getComputedStyle(n)}function Zs(n){return He(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function qr(n){if(Zo(n)==="html")return n;let o=n.assignedSlot||n.parentNode||oS(n)&&n.host||tr(n);return oS(o)?o.host:o}function aS(n){let o=qr(n);return ti(o)?n.ownerDocument?n.ownerDocument.body:n.body:er(o)&&ji(o)?o:aS(o)}function Ui(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=aS(n),l=a===((e=n.ownerDocument)==null?void 0:e.body),p=ae(a);if(l){let v=kl(p);return o.concat(p,p.visualViewport||[],ji(a)?a:[],v&&t?Ui(v):[])}return o.concat(a,Ui(a,[],t))}function kl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function pS(n){let o=Ne(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,a=er(n),l=a?n.offsetWidth:t,p=a?n.offsetHeight:e,v=Xs(t)!==l||Xs(e)!==p;return v&&(t=l,e=p),{width:t,height:e,$:v}}function yf(n){return He(n)?n:n.contextElement}function Ki(n){let o=yf(n);if(!er(o))return Ze(1);let t=o.getBoundingClientRect(),{width:e,height:a,$:l}=pS(o),p=(l?Xs(t.width):t.width)/e,v=(l?Xs(t.height):t.height)/a;return(!p||!Number.isFinite(p))&&(p=1),(!v||!Number.isFinite(v))&&(v=1),{x:p,y:v}}var M_=Ze(0);function hS(n){let o=ae(n);return!wl()||!o.visualViewport?M_:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function F_(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==ae(n)?!1:o}function ei(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),l=yf(n),p=Ze(1);o&&(e?He(e)&&(p=Ki(e)):p=Ki(n));let v=F_(l,t,e)?hS(l):Ze(0),x=(a.left+v.x)/p.x,E=(a.top+v.y)/p.y,$=a.width/p.x,w=a.height/p.y;if(l){let I=ae(l),R=e&&He(e)?ae(e):e,P=I,H=kl(P);for(;H&&e&&R!==P;){let Q=Ki(H),V=H.getBoundingClientRect(),z=Ne(H),D=V.left+(H.clientLeft+parseFloat(z.paddingLeft))*Q.x,W=V.top+(H.clientTop+parseFloat(z.paddingTop))*Q.y;x*=Q.x,E*=Q.y,$*=Q.x,w*=Q.y,x+=D,E+=W,P=ae(H),H=kl(P)}}return Jo({width:$,height:w,x,y:E})}function Cl(n,o){let t=Zs(n).scrollLeft;return o?o.left+t:ei(tr(n)).left+t}function uS(n,o){let t=n.getBoundingClientRect(),e=t.left+o.scrollLeft-Cl(n,t),a=t.top+o.scrollTop;return{x:e,y:a}}function H_(n){let{elements:o,rect:t,offsetParent:e,strategy:a}=n,l=a==="fixed",p=tr(e),v=o?Js(o.floating):!1;if(e===p||v&&l)return t;let x={scrollLeft:0,scrollTop:0},E=Ze(1),$=Ze(0),w=er(e);if((w||!w&&!l)&&((Zo(e)!=="body"||ji(p))&&(x=Zs(e)),er(e))){let R=ei(e);E=Ki(e),$.x=R.x+e.clientLeft,$.y=R.y+e.clientTop}let I=p&&!w&&!l?uS(p,x):Ze(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-x.scrollLeft*E.x+$.x+I.x,y:t.y*E.y-x.scrollTop*E.y+$.y+I.y}}function N_(n){return Array.from(n.getClientRects())}function B_(n){let o=tr(n),t=Zs(n),e=n.ownerDocument.body,a=Jt(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=Jt(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),p=-t.scrollLeft+Cl(n),v=-t.scrollTop;return Ne(e).direction==="rtl"&&(p+=Jt(o.clientWidth,e.clientWidth)-a),{width:a,height:l,x:p,y:v}}var lS=25;function D_(n,o){let t=ae(n),e=tr(n),a=t.visualViewport,l=e.clientWidth,p=e.clientHeight,v=0,x=0;if(a){l=a.width,p=a.height;let $=wl();(!$||$&&o==="fixed")&&(v=a.offsetLeft,x=a.offsetTop)}let E=Cl(e);if(E<=0){let $=e.ownerDocument,w=$.body,I=getComputedStyle(w),R=$.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,P=Math.abs(e.clientWidth-w.clientWidth-R);P<=lS&&(l-=P)}else E<=lS&&(l+=E);return{width:l,height:p,x:v,y:x}}var q_=new Set(["absolute","fixed"]);function V_(n,o){let t=ei(n,!0,o==="fixed"),e=t.top+n.clientTop,a=t.left+n.clientLeft,l=er(n)?Ki(n):Ze(1),p=n.clientWidth*l.x,v=n.clientHeight*l.y,x=a*l.x,E=e*l.y;return{width:p,height:v,x,y:E}}function dS(n,o,t){let e;if(o==="viewport")e=D_(n,t);else if(o==="document")e=B_(tr(n));else if(He(o))e=V_(o,t);else{let a=hS(n);e={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Jo(e)}function mS(n,o){let t=qr(n);return t===o||!He(t)||ti(t)?!1:Ne(t).position==="fixed"||mS(t,o)}function U_(n,o){let t=o.get(n);if(t)return t;let e=Ui(n,[],!1).filter(v=>He(v)&&Zo(v)!=="body"),a=null,l=Ne(n).position==="fixed",p=l?qr(n):n;for(;He(p)&&!ti(p);){let v=Ne(p),x=xl(p);!x&&v.position==="fixed"&&(a=null),(l?!x&&!a:!x&&v.position==="static"&&!!a&&q_.has(a.position)||ji(p)&&!x&&mS(n,p))?e=e.filter($=>$!==p):a=v,p=qr(p)}return o.set(n,e),e}function j_(n){let{element:o,boundary:t,rootBoundary:e,strategy:a}=n,p=[...t==="clippingAncestors"?Js(o)?[]:U_(o,this._c):[].concat(t),e],v=p[0],x=p.reduce((E,$)=>{let w=dS(o,$,a);return E.top=Jt(w.top,E.top),E.right=bo(w.right,E.right),E.bottom=bo(w.bottom,E.bottom),E.left=Jt(w.left,E.left),E},dS(o,v,a));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function K_(n){let{width:o,height:t}=pS(n);return{width:o,height:t}}function W_(n,o,t){let e=er(o),a=tr(o),l=t==="fixed",p=ei(n,!0,l,o),v={scrollLeft:0,scrollTop:0},x=Ze(0);function E(){x.x=Cl(a)}if(e||!e&&!l)if((Zo(o)!=="body"||ji(a))&&(v=Zs(o)),e){let R=ei(o,!0,l,o);x.x=R.x+o.clientLeft,x.y=R.y+o.clientTop}else a&&E();l&&!e&&a&&E();let $=a&&!e&&!l?uS(a,v):Ze(0),w=p.left+v.scrollLeft-x.x-$.x,I=p.top+v.scrollTop-x.y-$.y;return{x:w,y:I,width:p.width,height:p.height}}function bf(n){return Ne(n).position==="static"}function cS(n,o){if(!er(n)||Ne(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return tr(n)===t&&(t=t.ownerDocument.body),t}function fS(n,o){let t=ae(n);if(Js(n))return t;if(!er(n)){let a=qr(n);for(;a&&!ti(a);){if(He(a)&&!bf(a))return a;a=qr(a)}return t}let e=cS(n,o);for(;e&&sS(e)&&bf(e);)e=cS(e,o);return e&&ti(e)&&bf(e)&&!xl(e)?t:e||nS(n)||t}var G_=async function(n){let o=this.getOffsetParent||fS,t=this.getDimensions,e=await t(n.floating);return{reference:W_(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function Y_(n){return Ne(n).direction==="rtl"}var xf={convertOffsetParentRelativeRectToViewportRelativeRect:H_,getDocumentElement:tr,getClippingRect:j_,getOffsetParent:fS,getElementRects:G_,getClientRects:N_,getDimensions:K_,getScale:Ki,isElement:He,isRTL:Y_};function vS(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function X_(n,o){let t=null,e,a=tr(n);function l(){var v;clearTimeout(e),(v=t)==null||v.disconnect(),t=null}function p(v,x){v===void 0&&(v=!1),x===void 0&&(x=1),l();let E=n.getBoundingClientRect(),{left:$,top:w,width:I,height:R}=E;if(v||o(),!I||!R)return;let P=Qs(w),H=Qs(a.clientWidth-($+I)),Q=Qs(a.clientHeight-(w+R)),V=Qs($),D={rootMargin:-P+"px "+-H+"px "+-Q+"px "+-V+"px",threshold:Jt(0,bo(1,x))||1},W=!0;function qt(Xt){let hr=Xt[0].intersectionRatio;if(hr!==x){if(!W)return p();hr?p(!1,hr):e=setTimeout(()=>{p(!1,1e-7)},1e3)}hr===1&&!vS(E,n.getBoundingClientRect())&&p(),W=!1}try{t=new IntersectionObserver(qt,{...D,root:a.ownerDocument})}catch{t=new IntersectionObserver(qt,D)}t.observe(n)}return p(!0),l}function gS(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:x=!1}=e,E=yf(n),$=a||l?[...E?Ui(E):[],...Ui(o)]:[];$.forEach(V=>{a&&V.addEventListener("scroll",t,{passive:!0}),l&&V.addEventListener("resize",t)});let w=E&&v?X_(E,t):null,I=-1,R=null;p&&(R=new ResizeObserver(V=>{let[z]=V;z&&z.target===E&&R&&(R.unobserve(o),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var D;(D=R)==null||D.observe(o)})),t()}),E&&!x&&R.observe(E),R.observe(o));let P,H=x?ei(n):null;x&&Q();function Q(){let V=ei(n);H&&!vS(H,V)&&t(),H=V,P=requestAnimationFrame(Q)}return t(),()=>{var V;$.forEach(z=>{a&&z.removeEventListener("scroll",t),l&&z.removeEventListener("resize",t)}),w?.(),(V=R)==null||V.disconnect(),R=null,x&&cancelAnimationFrame(P)}}var bS=tS;var yS=eS,xS=ZC,wS=rS;var kS=(n,o,t)=>{let e=new Map,a={platform:xf,...t},l={...a.platform,_c:e};return JC(n,o,{...a,platform:l})};var CS=()=>new Promise(n=>requestAnimationFrame(()=>requestAnimationFrame(()=>n()))),SS=(n,o,t=200)=>{let e=!1,a=()=>{e||(e=!0,n.removeEventListener("transitionend",l),clearTimeout(p),o())},l=()=>a();n.addEventListener("transitionend",l);let p=setTimeout(a,t)},Wi=n=>f`
|
|
3889
3949
|
<svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${n}">
|
|
3890
3950
|
<polygon class="arrow-fill" points="0,0 5,6 10,0" />
|
|
3891
3951
|
<path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
|
|
3892
3952
|
</svg>
|
|
3893
|
-
`,
|
|
3953
|
+
`,Q_={...xf,getOffsetParent:()=>window},J_=(n,o,t={})=>{let{placement:e="bottom-start",offsetPx:a=4,matchWidth:l=!1,padding:p=8}=t,v=[bS(a),xS(),yS({padding:p})];return l&&v.push(wS({apply({rects:x,elements:E}){Object.assign(E.floating.style,{width:`${x.reference.width}px`})}})),kS(n,o,{placement:e,strategy:"fixed",middleware:v,platform:Q_})},ES=(n,o,t={})=>{let{onPosition:e,...a}=t;return gS(n,o,()=>{J_(n,o,a).then(l=>{Object.assign(o.style,{left:`${l.x}px`,top:`${l.y}px`}),e?.(l)})})};var le=class{#t;#e;#s;#n;#a;#d;#l;#v;#g;#u;#m;#f;#b;#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(o){this.#n=o}set offset(o){this.#a=o}constructor(o,t){this.#t=o,this.#e=t.getAnchor,this.#s=t.matchWidth??!0,this.#n=t.placement??"bottom-start",this.#a=t.offset??4,this.#d=t.styles,this.#l=t.onOpen,this.#v=t.onClose,this.#g=t.onPosition,this.#u=t.renderPopup,this.#m=t.contentContainer,this.#f=t.contentSelector,this.#b=t.getOverlayRoot??(()=>document.body),o.addController(this)}hostConnected(){document.addEventListener("click",this.#x)}hostDisconnected(){document.removeEventListener("click",this.#x),this.#I(),uf(this.#t)}hostUpdated(){if(this.#o?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#u&&(this.#o||this.isEnding)){let o=this.renderRoot;o&&ma(this.#u(this),o)}this.#m&&this.#o&&this.#c.length===0&&this.#T()}open(){if(this.#o)return;this.#h++;let o=this.#h;VC(this.#t,()=>this.close()),this.#o=!0,this.#i=!0,this.#C(),this.#$(),this.#l?.(),this.#t.requestUpdate(),CS().then(()=>{o===this.#h&&(this.#i=!1,this.#t.requestUpdate())})}close(){if(!this.#o)return;this.#h++,this.#i=!0,this.#t.requestUpdate();let o=this.renderRoot?.querySelector(".Popup");if(!o){this.#y();return}SS(o,()=>this.#y())}#y(){this.#o&&(this.#o=!1,this.#i=!1,this.#w(),uf(this.#t),this.#v?.(),this.#S(),this.#t.requestUpdate())}#x=o=>{if(!this.#o)return;let t=o.composedPath();!t.includes(this.#t)&&!this.#k(t)&&this.close()};#k(o){return this.#r?o.includes(this.#r):!1}#C(){if(this.#r){this.#r.style.display="";return}let o=this.#b(),t=document.createElement("div");t.style.position="fixed",t.style.zIndex="1000",t.style.pointerEvents="none",t.setAttribute("data-floating-portal",""),t.setAttribute("data-dui-portal-for",this.#t.tagName.toLowerCase());let e=sw(),a=this.#t.tagName.toLowerCase(),l=e?.styles.get(a),p=[...this.#d??[],...e?.base?[e.base]:[],...l?[l]:[]];if(p.length>0){let v=t.attachShadow({mode:"open"});ia(v,p)}o.appendChild(t),this.#r=t}#S(){this.#r&&(this.#r.style.display="none")}#E(){this.#r?.remove(),this.#r=null}#$(){if(this.#p)return;let o=this.#e(),t=this.#r;!o||!t||(this.#p=ES(o,t,{placement:this.#n,offsetPx:this.#a,matchWidth:this.#s,onPosition:this.#g}))}#w(){this.#p?.(),this.#p=null}#T(){let o=this.renderRoot?.querySelector(this.#m);if(!o)return;let t=this.#f?Array.from(this.#t.querySelectorAll(`:scope > ${this.#f}`)):Array.from(this.#t.childNodes);for(let e of t)o.appendChild(e),this.#c.push(e)}#R(){for(let o of this.#c)this.#t.appendChild(o);this.#c=[]}#I(){this.#w(),this.#R(),this.#E()}};var MS=_("value-change",{bubbles:!0,composed:!0}),Of=_("values-change",{bubbles:!0,composed:!0}),Z_=c`
|
|
3894
3954
|
:host {
|
|
3895
3955
|
display: block;
|
|
3896
3956
|
}
|
|
3897
|
-
`,
|
|
3957
|
+
`,tO=c`
|
|
3898
3958
|
/* ---- Input area (structural) ---- */
|
|
3899
3959
|
|
|
3900
3960
|
.Chips {
|
|
@@ -3961,7 +4021,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3961
4021
|
cursor: pointer;
|
|
3962
4022
|
flex-shrink: 0;
|
|
3963
4023
|
}
|
|
3964
|
-
|
|
4024
|
+
`,eO=[c`
|
|
3965
4025
|
.Popup {
|
|
3966
4026
|
opacity: 1;
|
|
3967
4027
|
transform: translateY(0);
|
|
@@ -3998,7 +4058,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
3998
4058
|
text-overflow: ellipsis;
|
|
3999
4059
|
white-space: nowrap;
|
|
4000
4060
|
}
|
|
4001
|
-
`],
|
|
4061
|
+
`],$S,TS,RS,IS,AS,_S,OS,LS,PS,zS,mt,wf,kf,Cf,Sf,Ef,$f,Tf,Rf,If,Vr,fr,G,Af,_f,Sl,ri,Ot,tn,oi,Lf,El,$l,Tl,Pf,zf,Rl,Il,Al,_l,Ol,Ll,Zt=class extends(zS=g,PS=[u({attribute:!1})],LS=[u({type:String})],OS=[u({attribute:!1})],_S=[u({type:Boolean,reflect:!0})],AS=[u({type:String})],IS=[u({type:Boolean,reflect:!0})],RS=[u({type:String})],TS=[k()],$S=[k()],zS){constructor(){super(...arguments);s(this,G);s(this,wf,i(mt,8,this,[])),i(mt,11,this);s(this,kf,i(mt,12,this,"")),i(mt,15,this);s(this,Cf,i(mt,16,this,new Set)),i(mt,19,this);s(this,Sf,i(mt,20,this,!1)),i(mt,23,this);s(this,Ef,i(mt,24,this,"Search...")),i(mt,27,this);s(this,$f,i(mt,28,this,!1)),i(mt,31,this);s(this,Tf,i(mt,32,this,"")),i(mt,35,this);s(this,Rf,i(mt,36,this,-1)),i(mt,39,this);s(this,Af,i(mt,40,this,"")),i(mt,43,this);s(this,Ot,new le(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:eO,onOpen:()=>{if(h(this,G,-1,fr),!this.multiple){h(this,G,"",ri);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(h(this,G,-1,fr),!this.multiple){let t=this.options.find(e=>e.value===this.value);h(this,G,t?.label??"",ri)}},renderPopup:t=>{let e=r(this,G,Lf),a=e.length===0;return f`
|
|
4002
4062
|
<div
|
|
4003
4063
|
class="Popup"
|
|
4004
4064
|
?data-starting-style="${t.isStarting}"
|
|
@@ -4007,19 +4067,19 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4007
4067
|
<dui-scroll-area>
|
|
4008
4068
|
<div
|
|
4009
4069
|
class="List"
|
|
4010
|
-
id="${r(this,
|
|
4070
|
+
id="${r(this,oi)}"
|
|
4011
4071
|
role="listbox"
|
|
4012
|
-
aria-labelledby="${r(this,
|
|
4072
|
+
aria-labelledby="${r(this,tn)}"
|
|
4013
4073
|
?data-empty="${a}"
|
|
4014
|
-
@mousedown="${r(this,
|
|
4015
|
-
@mousemove="${r(this,
|
|
4074
|
+
@mousedown="${r(this,Il)}"
|
|
4075
|
+
@mousemove="${r(this,Al)}"
|
|
4016
4076
|
>
|
|
4017
|
-
${
|
|
4018
|
-
${a?
|
|
4077
|
+
${vo(e,l=>l.value,r(this,Ll))}
|
|
4078
|
+
${a?f` <div class="Empty">No results</div> `:T}
|
|
4019
4079
|
</div>
|
|
4020
4080
|
</dui-scroll-area>
|
|
4021
4081
|
</div>
|
|
4022
|
-
`}}));s(this,
|
|
4082
|
+
`}}));s(this,tn,`combobox-input-${crypto.randomUUID().slice(0,8)}`);s(this,oi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);s(this,El,t=>{let e=t.target;h(this,G,e.value,ri),r(this,Ot).isOpen||this.disabled||r(this,Ot).open(),h(this,G,-1,fr)});s(this,$l,()=>{!r(this,Ot).isOpen&&!this.disabled&&r(this,Ot).open()});s(this,Tl,t=>{let e=r(this,G,Lf);switch(t.key){case"ArrowDown":t.preventDefault(),r(this,Ot).isOpen?h(this,G,Math.min(r(this,G,Vr)+1,e.length-1),fr):this.disabled||r(this,Ot).open();break;case"ArrowUp":t.preventDefault(),r(this,Ot).isOpen?h(this,G,Math.max(r(this,G,Vr)-1,0),fr):this.disabled||r(this,Ot).open();break;case"Enter":{if(t.preventDefault(),r(this,Ot).isOpen){let a=r(this,G,Vr)>=0?r(this,G,Vr):0,l=e[a];l&&m(this,G,Pf).call(this,l)}else this.disabled||r(this,Ot).open();break}case"Escape":r(this,Ot).isOpen&&(t.preventDefault(),h(this,G,"",ri),r(this,Ot).close());break;case"Tab":r(this,Ot).isOpen&&r(this,Ot).close();break;case"Home":r(this,Ot).isOpen&&(t.preventDefault(),h(this,G,0,fr));break;case"End":r(this,Ot).isOpen&&(t.preventDefault(),h(this,G,e.length-1,fr));break;case"Backspace":if(this.multiple&&r(this,G,Sl)===""&&this.values.size>0){let a=Array.from(this.values).at(-1);a&&m(this,G,zf).call(this,a)}break}});s(this,Rl,t=>{m(this,G,Pf).call(this,t)});s(this,Il,t=>{t.preventDefault()});s(this,Al,()=>{r(this,G,Vr)!==-1&&h(this,G,-1,fr)});s(this,_l,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});s(this,Ol,t=>{let a=this.options.find(l=>l.value===t)?.label??t;return f`
|
|
4023
4083
|
<span class="Chip">
|
|
4024
4084
|
<span class="ChipLabel">${a}</span>
|
|
4025
4085
|
<button
|
|
@@ -4027,73 +4087,73 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4027
4087
|
type="button"
|
|
4028
4088
|
tabindex="-1"
|
|
4029
4089
|
@mousedown="${l=>l.preventDefault()}"
|
|
4030
|
-
@click="${l=>{l.stopPropagation(),m(this,
|
|
4090
|
+
@click="${l=>{l.stopPropagation(),m(this,G,zf).call(this,t)}}"
|
|
4031
4091
|
>
|
|
4032
4092
|
<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>
|
|
4033
4093
|
</button>
|
|
4034
4094
|
</span>
|
|
4035
|
-
`});s(this,
|
|
4095
|
+
`});s(this,Ll,(t,e)=>{let a=this.multiple?this.values.has(t.value):t.value===this.value,l=e===r(this,G,Vr);return f`
|
|
4036
4096
|
<div
|
|
4037
4097
|
class="Item"
|
|
4038
4098
|
role="option"
|
|
4039
|
-
id="${r(this,
|
|
4099
|
+
id="${r(this,oi)}-option-${e}"
|
|
4040
4100
|
aria-selected="${a}"
|
|
4041
4101
|
?data-selected="${a}"
|
|
4042
4102
|
?data-highlighted="${l}"
|
|
4043
|
-
@click="${()=>r(this,
|
|
4103
|
+
@click="${()=>r(this,Rl).call(this,t)}"
|
|
4044
4104
|
>
|
|
4045
4105
|
<span class="ItemText">${t.label}</span>
|
|
4046
4106
|
<span class="ItemIndicator">
|
|
4047
|
-
${a?
|
|
4107
|
+
${a?f`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:T}
|
|
4048
4108
|
</span>
|
|
4049
4109
|
</div>
|
|
4050
|
-
`})}render(){let t=
|
|
4110
|
+
`})}render(){let t=f`
|
|
4051
4111
|
<input
|
|
4052
4112
|
class="Input"
|
|
4053
|
-
id="${r(this,
|
|
4113
|
+
id="${r(this,tn)}"
|
|
4054
4114
|
type="text"
|
|
4055
4115
|
role="combobox"
|
|
4056
4116
|
autocomplete="off"
|
|
4057
4117
|
aria-haspopup="listbox"
|
|
4058
|
-
aria-expanded="${r(this,
|
|
4059
|
-
aria-controls="${r(this,
|
|
4060
|
-
aria-activedescendant="${r(this,
|
|
4061
|
-
.value="${
|
|
4118
|
+
aria-expanded="${r(this,Ot).isOpen}"
|
|
4119
|
+
aria-controls="${r(this,oi)}"
|
|
4120
|
+
aria-activedescendant="${r(this,G,Vr)>=0?`${r(this,oi)}-option-${r(this,G,Vr)}`:T}"
|
|
4121
|
+
.value="${go(r(this,G,Sl))}"
|
|
4062
4122
|
.placeholder="${this.placeholder}"
|
|
4063
4123
|
?disabled="${this.disabled}"
|
|
4064
|
-
@input="${r(this,
|
|
4065
|
-
@focus="${r(this
|
|
4066
|
-
@keydown="${r(this,
|
|
4124
|
+
@input="${r(this,El)}"
|
|
4125
|
+
@focus="${r(this,$l)}"
|
|
4126
|
+
@keydown="${r(this,Tl)}"
|
|
4067
4127
|
/>
|
|
4068
|
-
`;return this.multiple?
|
|
4128
|
+
`;return this.multiple?f`
|
|
4069
4129
|
<div
|
|
4070
4130
|
class="Chips"
|
|
4071
4131
|
part="chips"
|
|
4072
4132
|
?data-disabled="${this.disabled}"
|
|
4073
|
-
@click="${r(this,
|
|
4133
|
+
@click="${r(this,_l)}"
|
|
4074
4134
|
>
|
|
4075
|
-
${
|
|
4135
|
+
${vo(Array.from(this.values),e=>e,r(this,Ol))}
|
|
4076
4136
|
${t}
|
|
4077
4137
|
<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>
|
|
4078
4138
|
</div>
|
|
4079
|
-
${this.name?
|
|
4139
|
+
${this.name?vo(Array.from(this.values),e=>e,e=>f`
|
|
4080
4140
|
<input type="hidden" name="${this.name}" .value="${e}" />
|
|
4081
4141
|
`):T}
|
|
4082
|
-
`:
|
|
4142
|
+
`:f`
|
|
4083
4143
|
<div class="InputWrapper" part="input-wrapper">
|
|
4084
4144
|
${t}
|
|
4085
4145
|
<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>
|
|
4086
4146
|
</div>
|
|
4087
|
-
${this.name?
|
|
4147
|
+
${this.name?f`
|
|
4088
4148
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
4089
4149
|
`:T}
|
|
4090
|
-
`}};mt=S(
|
|
4150
|
+
`}};mt=S(zS),wf=new WeakMap,kf=new WeakMap,Cf=new WeakMap,Sf=new WeakMap,Ef=new WeakMap,$f=new WeakMap,Tf=new WeakMap,Rf=new WeakMap,G=new WeakSet,Af=new WeakMap,Ot=new WeakMap,tn=new WeakMap,oi=new WeakMap,Lf=function(){let t=r(this,G,Sl).toLowerCase(),e=this.options;return t?e.filter(a=>a.label.toLowerCase().includes(t)):e},El=new WeakMap,$l=new WeakMap,Tl=new WeakMap,Pf=function(t){if(this.multiple){let e=new Set(this.values),a=!e.has(t.value);a?e.add(t.value):e.delete(t.value),this.values=e,h(this,G,"",ri),h(this,G,-1,fr),this.dispatchEvent(Of({value:t.value,selected:a,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,h(this,G,t.label,ri),this.dispatchEvent(MS({value:t.value,option:t})),r(this,Ot).close()},zf=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(Of({value:t,selected:!1,values:e}))},Rl=new WeakMap,Il=new WeakMap,Al=new WeakMap,_l=new WeakMap,Ol=new WeakMap,Ll=new WeakMap,d(mt,4,"options",PS,Zt,wf),d(mt,4,"value",LS,Zt,kf),d(mt,4,"values",OS,Zt,Cf),d(mt,4,"multiple",_S,Zt,Sf),d(mt,4,"placeholder",AS,Zt,Ef),d(mt,4,"disabled",IS,Zt,$f),d(mt,4,"name",RS,Zt,Tf),If=d(mt,20,"#highlightedIndex",TS,G,Rf),Vr=If.get,fr=If.set,_f=d(mt,20,"#inputValue",$S,G,Af),Sl=_f.get,ri=_f.set,C(mt,Zt),b(Zt,"tagName","dui-combobox"),b(Zt,"styles",[y,Z_,tO]);var Be=Symbol("dui-command");var en=(n,o,t,e)=>{if(!n)return 1;let a=n.toLowerCase(),l=o.toLowerCase(),p=t.toLowerCase();if(l===a)return 1;if(l.startsWith(a))return .8;if(p.startsWith(a))return .75;if(l.includes(a))return .7;if(p.includes(a))return .6;for(let v of e)if(v.toLowerCase().startsWith(a))return .5;for(let v of e)if(v.toLowerCase().includes(a))return .4;return 0};var rO=_("select",{bubbles:!0,composed:!0}),oO=_("search-change",{bubbles:!0,composed:!0}),iO=_("escape",{bubbles:!0,composed:!0}),sO=0,nO=()=>`dui-command-${++sO}`,aO=c`
|
|
4091
4151
|
:host {
|
|
4092
4152
|
display: flex;
|
|
4093
4153
|
flex-direction: column;
|
|
4094
4154
|
overflow: hidden;
|
|
4095
4155
|
}
|
|
4096
|
-
`,
|
|
4156
|
+
`,FS,HS,NS,BS,DS,qS,VS,US,St,Mf,Ff,Hf,Nf,Bf,Df,yo,jS,et,qf,Vf,rn,on,xo,wo,sn,vr,zl,KS,Ml,Gi,Fl,Hl,Nl,Bl,Dl,ql,Vl,Ul,jl,nn,an,Uf,Pl,Ee=class extends(US=g,VS=[u({type:Boolean})],qS=[u({type:Boolean,attribute:"should-filter"})],DS=[u({type:String})],BS=[u({attribute:!1})],NS=[k()],HS=[k()],FS=[bt({context:Be}),k()],US){constructor(){super(...arguments);s(this,et);s(this,Mf,i(St,8,this,!1)),i(St,11,this);s(this,Ff,i(St,12,this,!0)),i(St,15,this);s(this,Hf,i(St,16,this)),i(St,19,this);s(this,Nf,i(St,20,this)),i(St,23,this);s(this,Bf,i(St,24,this,"")),i(St,27,this);s(this,qf,i(St,28,this)),i(St,31,this);s(this,xo,new Map);s(this,wo,[]);s(this,sn,new Set);s(this,vr,new Map);s(this,zl,nO());s(this,Ml,t=>this.shouldFilter?r(this,vr).get(t)??0:1);s(this,Fl,()=>m(this,et,Gi).call(this).length);s(this,Hl,t=>m(this,et,Gi).call(this).filter(e=>e.groupId===t).length);s(this,Nl,t=>{r(this,xo).set(t.id,t),r(this,wo).includes(t.id)||r(this,wo).push(t.id);let e=this.filter?this.filter(t.value,r(this,et,yo),t.keywords):en(r(this,et,yo),t.value,t.textContent,t.keywords);if(r(this,vr).set(t.id,e),!r(this,et,rn)){let a=m(this,et,Gi).call(this);a.length>0&&!a[0].disabled&&h(this,et,a[0].id,on)}this.requestUpdate()});s(this,Bl,t=>{r(this,xo).delete(t),h(this,wo,r(this,wo).filter(e=>e!==t)),r(this,vr).delete(t),this.requestUpdate()});s(this,Dl,t=>{r(this,xo).set(t.id,t);let e=this.filter?this.filter(t.value,r(this,et,yo),t.keywords):en(r(this,et,yo),t.value,t.textContent,t.keywords);r(this,vr).set(t.id,e),this.requestUpdate()});s(this,ql,t=>{r(this,sn).add(t)});s(this,Vl,t=>{r(this,sn).delete(t)});s(this,Ul,t=>{h(this,et,t,jS),m(this,et,KS).call(this);let a=m(this,et,Gi).call(this).find(l=>!l.disabled);h(this,et,a?.id,on),this.dispatchEvent(oO(t))});s(this,jl,t=>{h(this,et,t,on)});s(this,nn,t=>{this.dispatchEvent(rO(t))});s(this,an,t=>{let e=m(this,et,Gi).call(this).filter(p=>!p.disabled);if(e.length===0)return;let a=e.findIndex(p=>p.id===r(this,et,rn)),l=p=>{let v=e[p];v&&h(this,et,v.id,on)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a<e.length-1?l(a+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a>0?l(a-1):this.loop&&l(e.length-1);break}case"Home":{t.preventDefault(),l(0);break}case"End":{t.preventDefault(),l(e.length-1);break}case"Enter":{t.preventDefault();let p=e.find(v=>v.id===r(this,et,rn));p&&r(this,nn).call(this,p.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(iO());break}}});s(this,Uf,i(St,32,this,m(this,et,Pl).call(this))),i(St,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",r(this,an)),this._ctx=m(this,et,Pl).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",r(this,an))}willUpdate(){this._ctx=m(this,et,Pl).call(this)}render(){return f`<slot></slot>`}};St=S(US),Mf=new WeakMap,Ff=new WeakMap,Hf=new WeakMap,Nf=new WeakMap,Bf=new WeakMap,et=new WeakSet,qf=new WeakMap,xo=new WeakMap,wo=new WeakMap,sn=new WeakMap,vr=new WeakMap,zl=new WeakMap,KS=function(){r(this,vr).clear();for(let[t,e]of r(this,xo)){let a=this.filter?this.filter(e.value,r(this,et,yo),e.keywords):en(r(this,et,yo),e.value,e.textContent,e.keywords);r(this,vr).set(t,a)}},Ml=new WeakMap,Gi=function(){return r(this,wo).map(t=>r(this,xo).get(t)).filter(t=>t?this.shouldFilter?(r(this,vr).get(t.id)??0)>0:!0:!1)},Fl=new WeakMap,Hl=new WeakMap,Nl=new WeakMap,Bl=new WeakMap,Dl=new WeakMap,ql=new WeakMap,Vl=new WeakMap,Ul=new WeakMap,jl=new WeakMap,nn=new WeakMap,an=new WeakMap,Uf=new WeakMap,Pl=function(){return{search:r(this,et,yo),selectedItemId:r(this,et,rn),listId:r(this,zl),loop:this.loop,shouldFilter:this.shouldFilter,getScore:r(this,Ml),getVisibleCount:r(this,Fl),getGroupVisibleCount:r(this,Hl),registerItem:r(this,Nl),unregisterItem:r(this,Bl),updateItem:r(this,Dl),registerGroup:r(this,ql),unregisterGroup:r(this,Vl),setSearch:r(this,Ul),selectItem:r(this,jl),handleItemSelect:r(this,nn)}},d(St,4,"loop",VS,Ee,Mf),d(St,4,"shouldFilter",qS,Ee,Ff),d(St,4,"value",DS,Ee,Hf),d(St,4,"filter",BS,Ee,Nf),Df=d(St,20,"#search",NS,et,Bf),yo=Df.get,jS=Df.set,Vf=d(St,20,"#selectedItemId",HS,et,qf),rn=Vf.get,on=Vf.set,d(St,4,"_ctx",FS,Ee,Uf),C(St,Ee),b(Ee,"tagName","dui-command"),b(Ee,"styles",[y,aO]);var lO=c`
|
|
4097
4157
|
:host {
|
|
4098
4158
|
display: block;
|
|
4099
4159
|
}
|
|
@@ -4116,7 +4176,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4116
4176
|
background: transparent;
|
|
4117
4177
|
padding: 0;
|
|
4118
4178
|
}
|
|
4119
|
-
`,
|
|
4179
|
+
`,WS,GS,YS,ii,jf,Kf,Yi,Kl,Wl,gr=class extends(YS=g,GS=[u({type:String})],WS=[ot({context:Be,subscribe:!0})],YS){constructor(){super(...arguments);s(this,jf,i(ii,8,this,"Search...")),i(ii,11,this);s(this,Kf,i(ii,12,this)),i(ii,15,this);s(this,Yi);s(this,Kl,t=>{let e=t.target;this._ctx?.setSearch(e.value)});s(this,Wl,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(r(this,Yi)!==void 0&&this._ctx?.search===""&&r(this,Yi)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}h(this,Yi,this._ctx?.search)}render(){return f`
|
|
4120
4180
|
<div class="InputWrapper">
|
|
4121
4181
|
<svg
|
|
4122
4182
|
class="SearchIcon"
|
|
@@ -4141,11 +4201,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4141
4201
|
aria-controls="${this._ctx?.listId??T}"
|
|
4142
4202
|
aria-activedescendant="${this._ctx?.selectedItemId??T}"
|
|
4143
4203
|
.placeholder="${this.placeholder}"
|
|
4144
|
-
@input="${r(this,
|
|
4145
|
-
@keydown="${r(this,
|
|
4204
|
+
@input="${r(this,Kl)}"
|
|
4205
|
+
@keydown="${r(this,Wl)}"
|
|
4146
4206
|
/>
|
|
4147
4207
|
</div>
|
|
4148
|
-
`}};
|
|
4208
|
+
`}};ii=S(YS),jf=new WeakMap,Kf=new WeakMap,Yi=new WeakMap,Kl=new WeakMap,Wl=new WeakMap,d(ii,4,"placeholder",GS,gr,jf),d(ii,4,"_ctx",WS,gr,Kf),C(ii,gr),b(gr,"tagName","dui-command-input"),b(gr,"styles",[y,lO]);var dO=c`
|
|
4149
4209
|
:host {
|
|
4150
4210
|
display: block;
|
|
4151
4211
|
}
|
|
@@ -4153,7 +4213,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4153
4213
|
.List {
|
|
4154
4214
|
overflow: hidden;
|
|
4155
4215
|
}
|
|
4156
|
-
`,
|
|
4216
|
+
`,XS,QS,Gl,Wf,Ur=class extends(QS=g,XS=[ot({context:Be,subscribe:!0})],QS){constructor(){super(...arguments);s(this,Wf,i(Gl,8,this)),i(Gl,11,this)}render(){return f`
|
|
4157
4217
|
<dui-scroll-area>
|
|
4158
4218
|
<div
|
|
4159
4219
|
class="List"
|
|
@@ -4163,7 +4223,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4163
4223
|
<slot></slot>
|
|
4164
4224
|
</div>
|
|
4165
4225
|
</dui-scroll-area>
|
|
4166
|
-
`}};
|
|
4226
|
+
`}};Gl=S(QS),Wf=new WeakMap,d(Gl,4,"_ctx",XS,Ur,Wf),C(Gl,Ur),b(Ur,"tagName","dui-command-list"),b(Ur,"styles",[y,dO]);var cO=0,pO=()=>`dui-command-group-${++cO}`,hO=c`
|
|
4167
4227
|
:host {
|
|
4168
4228
|
display: block;
|
|
4169
4229
|
}
|
|
@@ -4175,12 +4235,12 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4175
4235
|
.Group {
|
|
4176
4236
|
overflow: hidden;
|
|
4177
4237
|
}
|
|
4178
|
-
`,
|
|
4238
|
+
`,JS,ZS,tE,si,Gf,Yf,ni,br=class extends(tE=g,ZS=[u({type:String})],JS=[ot({context:Be,subscribe:!0})],tE){constructor(){super(...arguments);s(this,Gf,i(si,8,this,"")),i(si,11,this);s(this,Yf,i(si,12,this)),i(si,15,this);s(this,ni,pO())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",r(this,ni)),this._ctx?.registerGroup(r(this,ni))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(r(this,ni))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(r(this,ni))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
|
|
4179
4239
|
<div class="Group" role="group" aria-label="${this.heading||T}">
|
|
4180
|
-
${this.heading?
|
|
4240
|
+
${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:T}
|
|
4181
4241
|
<slot></slot>
|
|
4182
4242
|
</div>
|
|
4183
|
-
`}};
|
|
4243
|
+
`}};si=S(tE),Gf=new WeakMap,Yf=new WeakMap,ni=new WeakMap,d(si,4,"heading",ZS,br,Gf),d(si,4,"_ctx",JS,br,Yf),C(si,br),b(br,"tagName","dui-command-group"),b(br,"styles",[y,hO]);var uO=0,mO=()=>`dui-command-item-${++uO}`,fO=c`
|
|
4184
4244
|
:host {
|
|
4185
4245
|
display: block;
|
|
4186
4246
|
}
|
|
@@ -4197,21 +4257,21 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4197
4257
|
user-select: none;
|
|
4198
4258
|
outline: none;
|
|
4199
4259
|
}
|
|
4200
|
-
`,
|
|
4260
|
+
`,eE,rE,oE,iE,sE,$e,Xf,Qf,Jf,Zf,yr,Xi,Qi,Ji,Zi,de,ln,nE,aE,tv,Yl,Xl,De=class extends(sE=g,iE=[u({type:String})],oE=[u({type:Array,attribute:!1})],rE=[u({type:Boolean})],eE=[ot({context:Be,subscribe:!0})],sE){constructor(){super(...arguments);s(this,de);s(this,Xf,i($e,8,this,"")),i($e,11,this);s(this,Qf,i($e,12,this,[])),i($e,15,this);s(this,Jf,i($e,16,this,!1)),i($e,19,this);s(this,Zf,i($e,20,this)),i($e,23,this);s(this,yr,mO());s(this,Xi);s(this,Qi);s(this,Ji);s(this,Zi,!1);s(this,Yl,()=>{!this.disabled&&this._ctx?.selectedItemId!==r(this,yr)&&this._ctx?.selectItem(r(this,yr))});s(this,Xl,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(m(this,de,tv).call(this)),h(this,Zi,!0),h(this,Xi,this.value),h(this,Qi,this.keywords),h(this,Ji,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(r(this,yr)),h(this,Zi,!1)}willUpdate(){if(r(this,Zi)){let t=r(this,Xi)!==this.value,e=r(this,Qi)!==this.keywords,a=r(this,Ji)!==this.disabled;(t||e||a)&&(this._ctx?.updateItem(m(this,de,tv).call(this)),h(this,Xi,this.value),h(this,Qi,this.keywords),h(this,Ji,this.disabled))}this._ctx?.shouldFilter?r(this,de,nE)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),r(this,de,ln)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){r(this,de,ln)&&this.scrollIntoView({block:"nearest"})}render(){return f`
|
|
4201
4261
|
<div
|
|
4202
4262
|
class="Item"
|
|
4203
4263
|
role="option"
|
|
4204
|
-
id="${r(this,
|
|
4205
|
-
aria-selected="${r(this,
|
|
4264
|
+
id="${r(this,yr)}"
|
|
4265
|
+
aria-selected="${r(this,de,ln)}"
|
|
4206
4266
|
aria-disabled="${this.disabled}"
|
|
4207
|
-
?data-selected="${r(this,
|
|
4267
|
+
?data-selected="${r(this,de,ln)}"
|
|
4208
4268
|
?data-disabled="${this.disabled}"
|
|
4209
|
-
@mousemove="${r(this,
|
|
4210
|
-
@click="${r(this,
|
|
4269
|
+
@mousemove="${r(this,Yl)}"
|
|
4270
|
+
@click="${r(this,Xl)}"
|
|
4211
4271
|
>
|
|
4212
4272
|
<slot></slot>
|
|
4213
4273
|
</div>
|
|
4214
|
-
`}}
|
|
4274
|
+
`}};$e=S(sE),Xf=new WeakMap,Qf=new WeakMap,Jf=new WeakMap,Zf=new WeakMap,yr=new WeakMap,Xi=new WeakMap,Qi=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,de=new WeakSet,ln=function(){return this._ctx?.selectedItemId===r(this,yr)},nE=function(){return this._ctx?this._ctx.getScore(r(this,yr))>0:!0},aE=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},tv=function(){return{id:r(this,yr),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:m(this,de,aE).call(this)}},Yl=new WeakMap,Xl=new WeakMap,d($e,4,"value",iE,De,Xf),d($e,4,"keywords",oE,De,Qf),d($e,4,"disabled",rE,De,Jf),d($e,4,"_ctx",eE,De,Zf),C($e,De),b(De,"tagName","dui-command-item"),b(De,"styles",[y,fO]);var vO=c`
|
|
4215
4275
|
:host {
|
|
4216
4276
|
display: block;
|
|
4217
4277
|
}
|
|
@@ -4223,20 +4283,20 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4223
4283
|
.Empty {
|
|
4224
4284
|
text-align: center;
|
|
4225
4285
|
}
|
|
4226
|
-
`,
|
|
4286
|
+
`,lE,dE,Ql,ev,jr=class extends(dE=g,lE=[ot({context:Be,subscribe:!0})],dE){constructor(){super(...arguments);s(this,ev,i(Ql,8,this)),i(Ql,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
|
|
4227
4287
|
<div class="Empty" role="status">
|
|
4228
4288
|
<slot></slot>
|
|
4229
4289
|
</div>
|
|
4230
|
-
`}};
|
|
4290
|
+
`}};Ql=S(dE),ev=new WeakMap,d(Ql,4,"_ctx",lE,jr,ev),C(Ql,jr),b(jr,"tagName","dui-command-empty"),b(jr,"styles",[y,vO]);var gO=c`
|
|
4231
4291
|
:host {
|
|
4232
4292
|
display: block;
|
|
4233
4293
|
}
|
|
4234
|
-
|
|
4294
|
+
`,dn=class extends g{static tagName="dui-command-separator";static styles=[y,gO];render(){return f`<div class="Separator" role="separator"></div>`}};var bO=c`
|
|
4235
4295
|
:host {
|
|
4236
4296
|
display: inline-flex;
|
|
4237
4297
|
margin-left: auto;
|
|
4238
4298
|
}
|
|
4239
|
-
|
|
4299
|
+
`,cn=class extends g{static tagName="dui-command-shortcut";static styles=[y,bO];render(){return f`<span class="Shortcut"><slot></slot></span>`}};var cE="important",yO=" !"+cE,ts=Bi(class extends mo{constructor(n){if(super(n),n.type!==Je.ATTRIBUTE||n.name!=="style"||n.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(n){return Object.keys(n).reduce((o,t)=>{let e=n[t];return e==null?o:o+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(n,[o]){let{style:t}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(o)),this.render(o);for(let e of this.ft)o[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in o){let a=o[e];if(a!=null){this.ft.add(e);let l=typeof a=="string"&&a.endsWith(yO);e.includes("-")||l?t.setProperty(e,l?a.slice(0,-11):a,l?cE:""):t[e]=a}}return Kt}});var xO=_("sort-change",{bubbles:!0,composed:!0}),wO=_("page-change",{bubbles:!0,composed:!0}),kO=f`<svg
|
|
4240
4300
|
xmlns="http://www.w3.org/2000/svg"
|
|
4241
4301
|
width="100%"
|
|
4242
4302
|
height="100%"
|
|
@@ -4249,7 +4309,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4249
4309
|
>
|
|
4250
4310
|
<path d="m7 15 5 5 5-5" />
|
|
4251
4311
|
<path d="m7 9 5-5 5 5" />
|
|
4252
|
-
</svg>`,
|
|
4312
|
+
</svg>`,CO=f`<svg
|
|
4253
4313
|
xmlns="http://www.w3.org/2000/svg"
|
|
4254
4314
|
width="100%"
|
|
4255
4315
|
height="100%"
|
|
@@ -4261,7 +4321,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4261
4321
|
stroke-linejoin="round"
|
|
4262
4322
|
>
|
|
4263
4323
|
<path d="m18 15-6-6-6 6" />
|
|
4264
|
-
</svg>`,
|
|
4324
|
+
</svg>`,SO=f`<svg
|
|
4265
4325
|
xmlns="http://www.w3.org/2000/svg"
|
|
4266
4326
|
width="100%"
|
|
4267
4327
|
height="100%"
|
|
@@ -4273,11 +4333,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4273
4333
|
stroke-linejoin="round"
|
|
4274
4334
|
>
|
|
4275
4335
|
<path d="m6 9 6 6 6-6" />
|
|
4276
|
-
</svg>`;function
|
|
4336
|
+
</svg>`;function EO(n,o){return n==null&&o==null?0:n==null?-1:o==null?1:typeof n=="number"&&typeof o=="number"?n-o:typeof n=="string"&&typeof o=="string"?n.localeCompare(o):n instanceof Date&&o instanceof Date?n.getTime()-o.getTime():String(n).localeCompare(String(o))}function $O(n,o){if(!o)return[...n];let{column:t,direction:e}=o,a=e==="asc"?1:-1;return[...n].sort((l,p)=>a*EO(l[t],p[t]))}function TO(n,o,t){let e=(o-1)*t;return n.slice(e,e+t)}var RO=c`
|
|
4277
4337
|
:host {
|
|
4278
4338
|
display: block;
|
|
4279
4339
|
}
|
|
4280
|
-
`,
|
|
4340
|
+
`,IO=c`
|
|
4281
4341
|
.DataTable {
|
|
4282
4342
|
display: flex;
|
|
4283
4343
|
flex-direction: column;
|
|
@@ -4346,48 +4406,48 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4346
4406
|
.PageButton:disabled {
|
|
4347
4407
|
cursor: not-allowed;
|
|
4348
4408
|
}
|
|
4349
|
-
`,
|
|
4409
|
+
`,pE,hE,uE,mE,fE,vE,gE,bE,yE,yt,rv,ov,iv,sv,nv,av,lv,Kr,Jl,M,dv,cv,Wr,Zl,pv,hv,uv,mv,pn,xE,wE,hn,kE,CE,SE,EE,Te=class extends(yE=g,bE=[u({attribute:!1})],gE=[u({attribute:!1})],vE=[u({type:Number,attribute:"page-size"})],fE=[u({attribute:!1})],mE=[u({attribute:"empty-text"})],uE=[k()],hE=[k()],pE=[k()],yE){constructor(){super(...arguments);s(this,M);s(this,rv,i(yt,8,this,[])),i(yt,11,this);s(this,ov,i(yt,12,this,[])),i(yt,15,this);s(this,iv,i(yt,16,this,10)),i(yt,19,this);s(this,sv,i(yt,20,this)),i(yt,23,this);s(this,nv,i(yt,24,this,"No results.")),i(yt,27,this);s(this,av,i(yt,28,this,null)),i(yt,31,this);s(this,dv,i(yt,32,this,1)),i(yt,35,this);s(this,pv,i(yt,36,this,[])),i(yt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&h(this,M,1,Zl);let e=$O(this.data,r(this,M,Kr));this.pageSize>0?h(this,M,TO(e,r(this,M,Wr),this.pageSize),mv):h(this,M,e,mv)}}render(){return f`
|
|
4350
4410
|
<div class="DataTable" part="root">
|
|
4351
4411
|
<div class="TableWindow" part="table-window">
|
|
4352
4412
|
<table part="table">
|
|
4353
|
-
${m(this,M,
|
|
4413
|
+
${m(this,M,CE).call(this)} ${m(this,M,SE).call(this)}
|
|
4354
4414
|
</table>
|
|
4355
4415
|
</div>
|
|
4356
|
-
${m(this,M,
|
|
4416
|
+
${m(this,M,EE).call(this)}
|
|
4357
4417
|
</div>
|
|
4358
|
-
`}};yt=S(
|
|
4359
|
-
>${r(this,M,
|
|
4360
|
-
>`:
|
|
4418
|
+
`}};yt=S(yE),rv=new WeakMap,ov=new WeakMap,iv=new WeakMap,sv=new WeakMap,nv=new WeakMap,av=new WeakMap,M=new WeakSet,dv=new WeakMap,pv=new WeakMap,pn=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},xE=function(){return{page:r(this,M,Wr),pageSize:this.pageSize,totalRows:this.data.length,totalPages:r(this,M,pn)}},wE=function(t){r(this,M,Kr)?.column===t?r(this,M,Kr).direction==="asc"?h(this,M,{column:t,direction:"desc"},Jl):h(this,M,null,Jl):h(this,M,{column:t,direction:"asc"},Jl),h(this,M,1,Zl),this.dispatchEvent(xO(r(this,M,Kr)))},hn=function(t){h(this,M,Math.max(1,Math.min(t,r(this,M,pn))),Zl),this.dispatchEvent(wO(r(this,M,xE)))},kE=function(t){return t.sortable?r(this,M,Kr)?.column===t.key?f`<span class="SortIcon"
|
|
4419
|
+
>${r(this,M,Kr).direction==="asc"?CO:SO}</span
|
|
4420
|
+
>`:f`<span class="SortIcon">${kO}</span>`:T},CE=function(){return f`
|
|
4361
4421
|
<thead>
|
|
4362
4422
|
<tr>
|
|
4363
|
-
${this.columns.map(t=>{let e=t.width?{width:t.width}:{},a=t.sortable?r(this,M,
|
|
4423
|
+
${this.columns.map(t=>{let e=t.width?{width:t.width}:{},a=t.sortable?r(this,M,Kr)?.column===t.key?r(this,M,Kr).direction==="asc"?"ascending":"descending":"none":void 0;return f`
|
|
4364
4424
|
<th
|
|
4365
|
-
style=${
|
|
4425
|
+
style=${ts(e)}
|
|
4366
4426
|
aria-sort=${a??T}
|
|
4367
|
-
@click=${t.sortable?()=>m(this,M,
|
|
4427
|
+
@click=${t.sortable?()=>m(this,M,wE).call(this,t.key):T}
|
|
4368
4428
|
>
|
|
4369
4429
|
<span class="HeaderContent">
|
|
4370
|
-
${t.header} ${m(this,M,
|
|
4430
|
+
${t.header} ${m(this,M,kE).call(this,t)}
|
|
4371
4431
|
</span>
|
|
4372
4432
|
</th>
|
|
4373
4433
|
`})}
|
|
4374
4434
|
</tr>
|
|
4375
4435
|
</thead>
|
|
4376
|
-
`},
|
|
4436
|
+
`},SE=function(){if(r(this,M,uv).length===0)return f`
|
|
4377
4437
|
<tbody>
|
|
4378
4438
|
<tr class="EmptyRow">
|
|
4379
4439
|
<td colspan=${this.columns.length}>${this.emptyText}</td>
|
|
4380
4440
|
</tr>
|
|
4381
4441
|
</tbody>
|
|
4382
|
-
`;let t=this.rowKey?(e,a)=>this.rowKey(e):(e,a)=>a;return
|
|
4442
|
+
`;let t=this.rowKey?(e,a)=>this.rowKey(e):(e,a)=>a;return f`
|
|
4383
4443
|
<tbody>
|
|
4384
|
-
${
|
|
4444
|
+
${vo(r(this,M,uv),t,e=>f`
|
|
4385
4445
|
<tr>
|
|
4386
|
-
${this.columns.map(a=>{let l=e[a.key],p=a.render?a.render(l,e):l??"";return
|
|
4446
|
+
${this.columns.map(a=>{let l=e[a.key],p=a.render?a.render(l,e):l??"";return f`<td>${p}</td>`})}
|
|
4387
4447
|
</tr>
|
|
4388
4448
|
`)}
|
|
4389
4449
|
</tbody>
|
|
4390
|
-
`},
|
|
4450
|
+
`},EE=function(){if(this.pageSize<=0||this.data.length===0)return T;let t=(r(this,M,Wr)-1)*this.pageSize+1,e=Math.min(r(this,M,Wr)*this.pageSize,this.data.length),a=r(this,M,Wr)===1,l=r(this,M,Wr)===r(this,M,pn);return f`
|
|
4391
4451
|
<div class="Pagination" part="pagination">
|
|
4392
4452
|
<div class="PageInfo">
|
|
4393
4453
|
<span>${t}-${e} of ${this.data.length}</span>
|
|
@@ -4396,7 +4456,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4396
4456
|
<button
|
|
4397
4457
|
class="PageButton"
|
|
4398
4458
|
?disabled=${a}
|
|
4399
|
-
@click=${()=>m(this,M,
|
|
4459
|
+
@click=${()=>m(this,M,hn).call(this,1)}
|
|
4400
4460
|
aria-label="First page"
|
|
4401
4461
|
>
|
|
4402
4462
|
<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>
|
|
@@ -4404,7 +4464,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4404
4464
|
<button
|
|
4405
4465
|
class="PageButton"
|
|
4406
4466
|
?disabled=${a}
|
|
4407
|
-
@click=${()=>m(this,M,
|
|
4467
|
+
@click=${()=>m(this,M,hn).call(this,r(this,M,Wr)-1)}
|
|
4408
4468
|
aria-label="Previous page"
|
|
4409
4469
|
>
|
|
4410
4470
|
<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>
|
|
@@ -4412,7 +4472,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4412
4472
|
<button
|
|
4413
4473
|
class="PageButton"
|
|
4414
4474
|
?disabled=${l}
|
|
4415
|
-
@click=${()=>m(this,M,
|
|
4475
|
+
@click=${()=>m(this,M,hn).call(this,r(this,M,Wr)+1)}
|
|
4416
4476
|
aria-label="Next page"
|
|
4417
4477
|
>
|
|
4418
4478
|
<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>
|
|
@@ -4420,26 +4480,39 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4420
4480
|
<button
|
|
4421
4481
|
class="PageButton"
|
|
4422
4482
|
?disabled=${l}
|
|
4423
|
-
@click=${()=>m(this,M,
|
|
4483
|
+
@click=${()=>m(this,M,hn).call(this,r(this,M,pn))}
|
|
4424
4484
|
aria-label="Last page"
|
|
4425
4485
|
>
|
|
4426
4486
|
<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>
|
|
4427
4487
|
</button>
|
|
4428
4488
|
</div>
|
|
4429
4489
|
</div>
|
|
4430
|
-
`},d(yt,4,"columns",
|
|
4490
|
+
`},d(yt,4,"columns",bE,Te,rv),d(yt,4,"data",gE,Te,ov),d(yt,4,"pageSize",vE,Te,iv),d(yt,4,"rowKey",fE,Te,sv),d(yt,4,"emptyText",mE,Te,nv),lv=d(yt,20,"#sort",uE,M,av),Kr=lv.get,Jl=lv.set,cv=d(yt,20,"#page",hE,M,dv),Wr=cv.get,Zl=cv.set,hv=d(yt,20,"#displayRows",pE,M,pv),uv=hv.get,mv=hv.set,C(yt,Te),b(Te,"tagName","dui-data-table"),b(Te,"styles",[y,RO,IO]);var ko=Symbol("dui-dialog");var xv=_("open-change",{bubbles:!0,composed:!0}),AO=c`
|
|
4431
4491
|
:host {
|
|
4432
4492
|
display: contents;
|
|
4433
4493
|
}
|
|
4434
|
-
|
|
4494
|
+
`,$E,TE,RE,IE,AE,Re,fv,vv,gv,bv,_E,td,ce,ai,rd,od,id,sd,OE,nd,ad,yv,ed,rr=class extends(AE=g,IE=[u({type:Boolean,reflect:!0})],RE=[u({type:Boolean,attribute:"default-open"})],TE=[k()],$E=[bt({context:ko}),k()],AE){constructor(){super(...arguments);s(this,ce);s(this,fv,i(Re,8,this)),i(Re,11,this);s(this,vv,i(Re,12,this,!1)),i(Re,15,this);s(this,gv,i(Re,16,this,!1)),i(Re,19,this);s(this,ai,crypto.randomUUID().slice(0,8));s(this,rd,`dui-dialog-${r(this,ai)}`);s(this,od,`dui-trigger-${r(this,ai)}`);s(this,id,`dui-title-${r(this,ai)}`);s(this,sd,`dui-desc-${r(this,ai)}`);s(this,nd,()=>{this.open===void 0&&h(this,ce,!0,td),this.dispatchEvent(xv({open:!0}))});s(this,ad,()=>{this.open===void 0&&h(this,ce,!1,td),this.dispatchEvent(xv({open:!1}))});s(this,yv,i(Re,20,this,m(this,ce,ed).call(this))),i(Re,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,ce,!0,td),this._ctx=m(this,ce,ed).call(this)}willUpdate(){this._ctx=m(this,ce,ed).call(this)}render(){return f`<slot></slot>`}};Re=S(AE),fv=new WeakMap,vv=new WeakMap,gv=new WeakMap,ce=new WeakSet,ai=new WeakMap,rd=new WeakMap,od=new WeakMap,id=new WeakMap,sd=new WeakMap,OE=function(){return this.open??r(this,ce,_E)},nd=new WeakMap,ad=new WeakMap,yv=new WeakMap,ed=function(){return{open:r(this,ce,OE),dialogId:r(this,rd),triggerId:r(this,od),titleId:r(this,id),descriptionId:r(this,sd),openDialog:r(this,nd),closeDialog:r(this,ad)}},d(Re,4,"open",IE,rr,fv),d(Re,4,"defaultOpen",RE,rr,vv),bv=d(Re,20,"#internalOpen",TE,ce,gv),_E=bv.get,td=bv.set,d(Re,4,"_ctx",$E,rr,yv),C(Re,rr),b(rr,"tagName","dui-dialog"),b(rr,"styles",[y,AO]);var _O=c`
|
|
4435
4495
|
:host {
|
|
4436
4496
|
display: contents;
|
|
4437
4497
|
}
|
|
4438
|
-
`,
|
|
4498
|
+
`,OO=c`
|
|
4439
4499
|
.Trigger {
|
|
4440
4500
|
display: contents;
|
|
4441
4501
|
}
|
|
4442
|
-
|
|
4502
|
+
`,un=class extends g{static tagName="dui-dialog-trigger";static styles=[y,_O,OO];#t=new q(this,{context:ko,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
|
|
4503
|
+
<span
|
|
4504
|
+
class="Trigger"
|
|
4505
|
+
part="trigger"
|
|
4506
|
+
id="${t}"
|
|
4507
|
+
aria-haspopup="dialog"
|
|
4508
|
+
aria-expanded="${o}"
|
|
4509
|
+
aria-controls="${o?e:""}"
|
|
4510
|
+
?data-popup-open="${o}"
|
|
4511
|
+
@click="${this.#e}"
|
|
4512
|
+
>
|
|
4513
|
+
<slot></slot>
|
|
4514
|
+
</span>
|
|
4515
|
+
`}};var LO=c`
|
|
4443
4516
|
:host {
|
|
4444
4517
|
display: contents;
|
|
4445
4518
|
}
|
|
@@ -4448,7 +4521,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4448
4521
|
:host(:not([mounted])) [part="popup"] {
|
|
4449
4522
|
display: none;
|
|
4450
4523
|
}
|
|
4451
|
-
`,
|
|
4524
|
+
`,PO=c`
|
|
4452
4525
|
[part="backdrop"] {
|
|
4453
4526
|
position: fixed;
|
|
4454
4527
|
min-height: 100dvh;
|
|
@@ -4468,14 +4541,14 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4468
4541
|
z-index: 1000;
|
|
4469
4542
|
transition-property: opacity, transform;
|
|
4470
4543
|
}
|
|
4471
|
-
`,
|
|
4544
|
+
`,LE,PE,zE,ME,FE,HE,NE,BE,Et,wv,kv,Cv,Sv,Ev,$v,es,_v,K,Tv,Rv,Ov,Lv,Iv,Av,Gr,Pv,rs,Yr,DE,qE,zv,VE,UE,ld,jE,dd,qe=class extends(BE=g,NE=[u({type:Boolean,attribute:"keep-mounted"})],HE=[u({attribute:"initial-focus"})],FE=[u({attribute:"final-focus"})],ME=[u()],zE=[k()],PE=[k()],LE=[k()],BE){constructor(){super(...arguments);s(this,K);s(this,wv,i(Et,8,this,!1)),i(Et,11,this);s(this,kv,i(Et,12,this)),i(Et,15,this);s(this,Cv,i(Et,16,this)),i(Et,19,this);s(this,Sv,i(Et,20,this)),i(Et,23,this);s(this,Ev,i(Et,24,this,!1)),i(Et,27,this);s(this,Tv,i(Et,28,this,!1)),i(Et,31,this);s(this,Iv,i(Et,32,this,!1)),i(Et,35,this);s(this,rs);s(this,Yr,new q(this,{context:ko,subscribe:!0}));s(this,ld,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,Yr).value?.closeDialog()),t.key==="Tab"&&m(this,K,jE).call(this,t)});s(this,dd,()=>{r(this,Yr).value?.closeDialog()})}updated(){let t=r(this,Yr).value?.open??!1;t&&!r(this,K,es)?m(this,K,DE).call(this):!t&&r(this,K,es)&&!r(this,K,Gr)&&m(this,K,qE).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),r(this,K,es)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,Yr).value?.open??!1,e=r(this,Yr).value?.titleId??"",a=r(this,Yr).value?.descriptionId??"";return!r(this,K,es)&&!this.keepMounted?f``:f`
|
|
4472
4545
|
<div
|
|
4473
4546
|
part="backdrop"
|
|
4474
|
-
?data-open="${t&&!r(this,
|
|
4475
|
-
?data-closed="${!t||r(this,
|
|
4476
|
-
?data-starting-style="${r(this,
|
|
4477
|
-
?data-ending-style="${r(this,
|
|
4478
|
-
@click="${r(this,
|
|
4547
|
+
?data-open="${t&&!r(this,K,Gr)}"
|
|
4548
|
+
?data-closed="${!t||r(this,K,Gr)}"
|
|
4549
|
+
?data-starting-style="${r(this,K,Ov)}"
|
|
4550
|
+
?data-ending-style="${r(this,K,Gr)}"
|
|
4551
|
+
@click="${r(this,dd)}"
|
|
4479
4552
|
></div>
|
|
4480
4553
|
<div
|
|
4481
4554
|
part="popup"
|
|
@@ -4483,22 +4556,26 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4483
4556
|
aria-modal="true"
|
|
4484
4557
|
aria-labelledby="${e}"
|
|
4485
4558
|
aria-describedby="${a}"
|
|
4486
|
-
?data-open="${t&&!r(this,
|
|
4487
|
-
?data-closed="${!t||r(this,
|
|
4488
|
-
?data-starting-style="${r(this,
|
|
4489
|
-
?data-ending-style="${r(this,
|
|
4559
|
+
?data-open="${t&&!r(this,K,Gr)}"
|
|
4560
|
+
?data-closed="${!t||r(this,K,Gr)}"
|
|
4561
|
+
?data-starting-style="${r(this,K,Ov)}"
|
|
4562
|
+
?data-ending-style="${r(this,K,Gr)}"
|
|
4490
4563
|
tabindex="-1"
|
|
4491
|
-
@keydown="${r(this,
|
|
4564
|
+
@keydown="${r(this,ld)}"
|
|
4492
4565
|
>
|
|
4493
4566
|
<h2 part="title" id="${e}"><slot name="title"></slot></h2>
|
|
4494
4567
|
<p part="description" id="${a}"><slot name="description"></slot></p>
|
|
4495
4568
|
<slot></slot>
|
|
4496
4569
|
</div>
|
|
4497
|
-
`}};Et=S(
|
|
4570
|
+
`}};Et=S(BE),wv=new WeakMap,kv=new WeakMap,Cv=new WeakMap,Sv=new WeakMap,Ev=new WeakMap,K=new WeakSet,Tv=new WeakMap,Iv=new WeakMap,rs=new WeakMap,Yr=new WeakMap,DE=async function(){h(this,rs,document.activeElement??void 0),h(this,K,!0,_v),h(this,K,!0,Lv),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,K,!1,Lv),await this.updateComplete,m(this,K,VE).call(this)},qE=function(){h(this,K,!0,Pv);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,K,zv).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(p),m(this,K,zv).call(this))},l=v=>{v.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let p=setTimeout(a,200)},zv=function(){!r(this,K,Gr)&&!r(this,K,es)||(h(this,K,!1,Pv),this.keepMounted||h(this,K,!1,_v),m(this,K,UE).call(this))},VE=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=Ba(t);if(e){e.focus();return}let a=Mi(t);if(a.length>0){a[0].focus();return}t.focus()},UE=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,rs)?.focus(),h(this,rs,void 0)},ld=new WeakMap,jE=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Mi(e);if(a.length===0){t.preventDefault();return}let l=a[0],p=a[a.length-1],v=l.matches(":focus"),x=p.matches(":focus"),E=!a.some($=>$.matches(":focus"));t.shiftKey&&(v||E)?(t.preventDefault(),p.focus()):!t.shiftKey&&x&&(t.preventDefault(),l.focus())},dd=new WeakMap,d(Et,4,"keepMounted",NE,qe,wv),d(Et,4,"initialFocus",HE,qe,kv),d(Et,4,"finalFocus",FE,qe,Cv),d(Et,4,"width",ME,qe,Sv),$v=d(Et,20,"#mounted",zE,K,Ev),es=$v.get,_v=$v.set,Rv=d(Et,20,"#startingStyle",PE,K,Tv),Ov=Rv.get,Lv=Rv.set,Av=d(Et,20,"#endingStyle",LE,K,Iv),Gr=Av.get,Pv=Av.set,C(Et,qe),b(qe,"tagName","dui-dialog-popup"),b(qe,"styles",[y,LO,PO]);var zO=c`
|
|
4498
4571
|
:host {
|
|
4499
4572
|
display: contents;
|
|
4500
4573
|
}
|
|
4501
|
-
|
|
4574
|
+
`,mn=class extends g{static tagName="dui-dialog-close";static styles=[y,zO];#t=new q(this,{context:ko,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
4575
|
+
<span @click="${this.#e}">
|
|
4576
|
+
<slot></slot>
|
|
4577
|
+
</span>
|
|
4578
|
+
`}};var r1=_("drop",{bubbles:!0,composed:!0}),o1=_("drop-accepted",{bubbles:!0,composed:!0}),i1=_("drop-rejected",{bubbles:!0,composed:!0}),MO=_("dragenter",{bubbles:!0,composed:!0}),FO=_("dragover",{bubbles:!0,composed:!0}),HO=_("dragleave",{bubbles:!0,composed:!0}),cd=_("dropzone-error",{bubbles:!0,composed:!0}),NO=c`
|
|
4502
4579
|
:host {
|
|
4503
4580
|
display: block;
|
|
4504
4581
|
}
|
|
@@ -4519,17 +4596,17 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4519
4596
|
input[type="file"] {
|
|
4520
4597
|
display: none;
|
|
4521
4598
|
}
|
|
4522
|
-
`,
|
|
4599
|
+
`,KE,WE,GE,YE,XE,QE,JE,ZE,t1,e1,ft,Mv,Fv,Hv,Nv,Bv,Dv,qv,Vv,Uv,jv,s1,pd,te,hd,ud,md,fd,vd,gd,bd,Kv,n1,a1,$t=class $t extends(e1=g,t1=[u({type:String,reflect:!0})],ZE=[u({type:Boolean,reflect:!0})],JE=[u({type:Boolean,reflect:!0})],QE=[u({type:Number,reflect:!0,attribute:"max-files"})],XE=[u({type:Number,reflect:!0,attribute:"max-size"})],YE=[u({type:Number,reflect:!0,attribute:"min-size"})],GE=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],WE=[u({type:Boolean,reflect:!0,attribute:"no-style"})],KE=[k()],e1){constructor(){super(...arguments);s(this,te);s(this,Mv,i(ft,8,this)),i(ft,11,this);s(this,Fv,i(ft,12,this,!1)),i(ft,15,this);s(this,Hv,i(ft,16,this,!1)),i(ft,19,this);s(this,Nv,i(ft,20,this,1/0)),i(ft,23,this);s(this,Bv,i(ft,24,this,1/0)),i(ft,27,this);s(this,Dv,i(ft,28,this,0)),i(ft,31,this);s(this,qv,i(ft,32,this,!1)),i(ft,35,this);s(this,Vv,i(ft,36,this,!1)),i(ft,39,this);s(this,Uv,i(ft,40,this,!1)),i(ft,43,this);s(this,hd,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,te,!0,pd),this.dispatchEvent(MO()))});s(this,ud,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(FO()))});s(this,md,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,te,!1,pd),this.dispatchEvent(HO()))});s(this,fd,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){h(this,te,!1,pd);try{let e=Array.from(t.dataTransfer?.files??[]);m(this,te,Kv).call(this,e)}catch(e){this.dispatchEvent(cd({error:e,code:$t.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});s(this,vd,()=>{this.disabled||this.openFileDialog()});s(this,gd,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});s(this,bd,t=>{if(this.disabled)return;let e=t.target,a=Array.from(e.files??[]);try{m(this,te,Kv).call(this,a)}catch(l){this.dispatchEvent(cd({error:l,code:$t.ERROR_CODES.FILE_PROCESSING_FAILED}))}finally{e.value=""}})}connectedCallback(){super.connectedCallback(),this.autoFocus&&!this.disabled&&this.updateComplete.then(()=>{this.shadowRoot?.querySelector("[part='root']")?.focus()})}openFileDialog(){if(this.disabled)return;let t=this.shadowRoot?.querySelector('input[type="file"]');if(t)try{t.click()}catch(e){this.dispatchEvent(cd({error:e,code:$t.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
|
|
4523
4600
|
<div
|
|
4524
4601
|
part="root"
|
|
4525
4602
|
tabindex="${this.disabled?-1:0}"
|
|
4526
|
-
?data-dragover="${r(this,
|
|
4527
|
-
@dragenter="${r(this,
|
|
4528
|
-
@dragover="${r(this,
|
|
4529
|
-
@dragleave="${r(this,
|
|
4530
|
-
@drop="${r(this,
|
|
4531
|
-
@click="${r(this,
|
|
4532
|
-
@keydown="${r(this,
|
|
4603
|
+
?data-dragover="${r(this,te,s1)}"
|
|
4604
|
+
@dragenter="${r(this,hd)}"
|
|
4605
|
+
@dragover="${r(this,ud)}"
|
|
4606
|
+
@dragleave="${r(this,md)}"
|
|
4607
|
+
@drop="${r(this,fd)}"
|
|
4608
|
+
@click="${r(this,vd)}"
|
|
4609
|
+
@keydown="${r(this,gd)}"
|
|
4533
4610
|
>
|
|
4534
4611
|
<slot>
|
|
4535
4612
|
<span>Drag and drop files here or click to select</span>
|
|
@@ -4540,12 +4617,12 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4540
4617
|
?multiple="${this.multiple}"
|
|
4541
4618
|
accept="${this.accept||""}"
|
|
4542
4619
|
?disabled="${this.disabled}"
|
|
4543
|
-
@change="${r(this,
|
|
4620
|
+
@change="${r(this,bd)}"
|
|
4544
4621
|
tabindex="-1"
|
|
4545
4622
|
aria-hidden="true"
|
|
4546
4623
|
hidden
|
|
4547
4624
|
/>
|
|
4548
|
-
`}};ft=S(
|
|
4625
|
+
`}};ft=S(e1),Mv=new WeakMap,Fv=new WeakMap,Hv=new WeakMap,Nv=new WeakMap,Bv=new WeakMap,Dv=new WeakMap,qv=new WeakMap,Vv=new WeakMap,Uv=new WeakMap,te=new WeakSet,hd=new WeakMap,ud=new WeakMap,md=new WeakMap,fd=new WeakMap,vd=new WeakMap,gd=new WeakMap,bd=new WeakMap,Kv=function(t){let{acceptedFiles:e,rejectedFiles:a}=m(this,te,n1).call(this,t);this.dispatchEvent(r1({acceptedFiles:e,rejectedFiles:a})),e.length>0&&this.dispatchEvent(o1({acceptedFiles:e})),a.length>0&&this.dispatchEvent(i1({rejectedFiles:a}))},n1=function(t){let e=[],a=[],l=this.multiple?this.maxFiles:1;if(t.length>l){for(let p of t)a.push({file:p,errors:[{code:$t.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:e,rejectedFiles:a}}for(let p of t){let v=[];p.size>this.maxSize&&v.push({code:$t.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),p.size<this.minSize&&v.push({code:$t.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!m(this,te,a1).call(this,p)&&v.push({code:$t.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),v.length>0?a.push({file:p,errors:v}):e.push(p)}return{acceptedFiles:e,rejectedFiles:a}},a1=function(t){if(!this.accept)return!0;let e=this.accept.split(",").map(a=>a.trim().toLowerCase());for(let a of e)if(a.startsWith(".")){if(t.name.toLowerCase().endsWith(a))return!0}else if(a.endsWith("/*")){let l=a.slice(0,-2);if(t.type.toLowerCase().startsWith(l))return!0}else if(t.type.toLowerCase()===a)return!0;return!1},d(ft,4,"accept",t1,$t,Mv),d(ft,4,"multiple",ZE,$t,Fv),d(ft,4,"disabled",JE,$t,Hv),d(ft,4,"maxFiles",QE,$t,Nv),d(ft,4,"maxSize",XE,$t,Bv),d(ft,4,"minSize",YE,$t,Dv),d(ft,4,"autoFocus",GE,$t,qv),d(ft,4,"noStyle",WE,$t,Vv),jv=d(ft,20,"#isDragOver",KE,te,Uv),s1=jv.get,pd=jv.set,C(ft,$t),b($t,"tagName","dui-dropzone"),b($t,"styles",[y,NO]),b($t,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),b($t,"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 fn=$t;var BO=c`
|
|
4549
4626
|
:host {
|
|
4550
4627
|
display: inline-flex;
|
|
4551
4628
|
align-items: center;
|
|
@@ -4559,7 +4636,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4559
4636
|
width: 100%;
|
|
4560
4637
|
height: 100%;
|
|
4561
4638
|
}
|
|
4562
|
-
|
|
4639
|
+
`,vn=class extends g{static tagName="dui-icon";static styles=[y,BO];render(){return f`<slot></slot>`}};var os=n=>n??T;var k1=_("input-change",{bubbles:!0,composed:!0}),DO=c`
|
|
4563
4640
|
:host {
|
|
4564
4641
|
display: block;
|
|
4565
4642
|
}
|
|
@@ -4573,35 +4650,35 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4573
4650
|
[part="input"]:disabled {
|
|
4574
4651
|
cursor: not-allowed;
|
|
4575
4652
|
}
|
|
4576
|
-
`,
|
|
4653
|
+
`,l1,d1,c1,p1,h1,u1,m1,f1,v1,g1,b1,y1,x1,w1,Y,Wv,Gv,Yv,Xv,Qv,Jv,Zv,tg,eg,rg,og,ig,sg,Gt,C1,S1,E1,ng,gn,yd,xd,wd,Tt=class extends(w1=g,x1=[u({type:String})],y1=[u({type:String})],b1=[u({type:String})],g1=[u({type:Boolean,reflect:!0})],v1=[u({type:Boolean})],f1=[u({type:Boolean})],m1=[u({type:Number,attribute:"minlength"})],u1=[u({type:Number,attribute:"maxlength"})],h1=[u({type:String})],p1=[u({type:String})],c1=[u({type:String})],d1=[u({type:Boolean})],l1=[ot({context:Ce,subscribe:!0}),k()],w1){constructor(){super(...arguments);s(this,Gt);s(this,Wv,i(Y,8,this,"text")),i(Y,11,this);s(this,Gv,i(Y,12,this,"")),i(Y,15,this);s(this,Yv,i(Y,16,this,"")),i(Y,19,this);s(this,Xv,i(Y,20,this,!1)),i(Y,23,this);s(this,Qv,i(Y,24,this,!1)),i(Y,27,this);s(this,Jv,i(Y,28,this,!1)),i(Y,31,this);s(this,Zv,i(Y,32,this)),i(Y,35,this);s(this,tg,i(Y,36,this)),i(Y,39,this);s(this,eg,i(Y,40,this)),i(Y,43,this);s(this,rg,i(Y,44,this,"")),i(Y,47,this);s(this,og,i(Y,48,this)),i(Y,51,this);s(this,ig,i(Y,52,this,!1)),i(Y,55,this);s(this,sg,i(Y,56,this)),i(Y,59,this);s(this,yd,t=>{let e=t.target;this.value=e.value,this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(this.value.length>0),this.dispatchEvent(k1({value:this.value}))});s(this,xd,()=>{this._fieldCtx?.setFocused(!0)});s(this,wd,()=>{this._fieldCtx?.setFocused(!1),this._fieldCtx?.markTouched()})}firstUpdated(){this.autofocus&&this.focus()}render(){let t=[r(this,Gt,S1),r(this,Gt,gn)?r(this,Gt,E1):void 0].filter(Boolean).join(" ")||void 0;return f`
|
|
4577
4654
|
<input
|
|
4578
4655
|
part="input"
|
|
4579
|
-
id="${r(this,
|
|
4656
|
+
id="${r(this,Gt,C1)}"
|
|
4580
4657
|
type="${this.type}"
|
|
4581
|
-
.value="${
|
|
4658
|
+
.value="${go(this.value)}"
|
|
4582
4659
|
placeholder="${this.placeholder}"
|
|
4583
|
-
?disabled="${r(this,
|
|
4660
|
+
?disabled="${r(this,Gt,ng)}"
|
|
4584
4661
|
?required="${this.required}"
|
|
4585
4662
|
?readonly="${this.readonly}"
|
|
4586
|
-
minlength="${
|
|
4587
|
-
maxlength="${
|
|
4588
|
-
pattern="${
|
|
4663
|
+
minlength="${os(this.minLength)}"
|
|
4664
|
+
maxlength="${os(this.maxLength)}"
|
|
4665
|
+
pattern="${os(this.pattern)}"
|
|
4589
4666
|
name="${this.name}"
|
|
4590
|
-
autocomplete="${
|
|
4591
|
-
aria-describedby="${
|
|
4592
|
-
aria-invalid="${r(this,
|
|
4593
|
-
?data-disabled="${r(this,
|
|
4594
|
-
?data-invalid="${r(this,
|
|
4595
|
-
?data-valid="${!r(this,
|
|
4667
|
+
autocomplete="${os(this.autocomplete)}"
|
|
4668
|
+
aria-describedby="${os(t)}"
|
|
4669
|
+
aria-invalid="${r(this,Gt,gn)}"
|
|
4670
|
+
?data-disabled="${r(this,Gt,ng)}"
|
|
4671
|
+
?data-invalid="${r(this,Gt,gn)}"
|
|
4672
|
+
?data-valid="${!r(this,Gt,gn)}"
|
|
4596
4673
|
?data-dirty="${this._fieldCtx?.dirty}"
|
|
4597
4674
|
?data-touched="${this._fieldCtx?.touched}"
|
|
4598
4675
|
?data-filled="${this._fieldCtx?.filled}"
|
|
4599
4676
|
?data-focused="${this._fieldCtx?.focused}"
|
|
4600
|
-
@input="${r(this,
|
|
4601
|
-
@focus="${r(this,
|
|
4602
|
-
@blur="${r(this,
|
|
4677
|
+
@input="${r(this,yd)}"
|
|
4678
|
+
@focus="${r(this,xd)}"
|
|
4679
|
+
@blur="${r(this,wd)}"
|
|
4603
4680
|
/>
|
|
4604
|
-
`}};
|
|
4681
|
+
`}};Y=S(w1),Wv=new WeakMap,Gv=new WeakMap,Yv=new WeakMap,Xv=new WeakMap,Qv=new WeakMap,Jv=new WeakMap,Zv=new WeakMap,tg=new WeakMap,eg=new WeakMap,rg=new WeakMap,og=new WeakMap,ig=new WeakMap,sg=new WeakMap,Gt=new WeakSet,C1=function(){return this._fieldCtx?.controlId??""},S1=function(){return this._fieldCtx?.descriptionId},E1=function(){return this._fieldCtx?.errorId},ng=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},gn=function(){return this._fieldCtx?.invalid??!1},yd=new WeakMap,xd=new WeakMap,wd=new WeakMap,d(Y,4,"type",x1,Tt,Wv),d(Y,4,"value",y1,Tt,Gv),d(Y,4,"placeholder",b1,Tt,Yv),d(Y,4,"disabled",g1,Tt,Xv),d(Y,4,"required",v1,Tt,Qv),d(Y,4,"readonly",f1,Tt,Jv),d(Y,4,"minLength",m1,Tt,Zv),d(Y,4,"maxLength",u1,Tt,tg),d(Y,4,"pattern",h1,Tt,eg),d(Y,4,"name",p1,Tt,rg),d(Y,4,"autocomplete",c1,Tt,og),d(Y,4,"autofocus",d1,Tt,ig),d(Y,4,"_fieldCtx",l1,Tt,sg),C(Y,Tt),b(Tt,"tagName","dui-input"),b(Tt,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Tt,"styles",[y,DO]);var R1=_("spa-navigate",{bubbles:!0,composed:!0}),qO=c`
|
|
4605
4682
|
:host {
|
|
4606
4683
|
display: contents;
|
|
4607
4684
|
}
|
|
@@ -4611,7 +4688,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4611
4688
|
color: inherit;
|
|
4612
4689
|
text-decoration: none;
|
|
4613
4690
|
}
|
|
4614
|
-
|
|
4691
|
+
`,$1,T1,kd,ag,Cd,Xr=class extends(T1=g,$1=[u()],T1){constructor(){super(...arguments);s(this,ag,i(kd,8,this,"")),i(kd,11,this);s(this,Cd,t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.button!==0||(t.preventDefault(),this.dispatchEvent(R1({href:this.href})))})}render(){return f`<a href="${this.href}" @click="${r(this,Cd)}"><slot></slot></a>`}};kd=S(T1),ag=new WeakMap,Cd=new WeakMap,d(kd,4,"href",$1,Xr,ag),C(kd,Xr),b(Xr,"tagName","dui-link"),b(Xr,"styles",[y,qO]);var VO=c`
|
|
4615
4692
|
:host {
|
|
4616
4693
|
display: block;
|
|
4617
4694
|
}
|
|
@@ -4619,26 +4696,26 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4619
4696
|
:host([disabled]) {
|
|
4620
4697
|
pointer-events: none;
|
|
4621
4698
|
}
|
|
4622
|
-
`,
|
|
4699
|
+
`,UO=c`
|
|
4623
4700
|
.Item {
|
|
4624
4701
|
display: flex;
|
|
4625
4702
|
align-items: center;
|
|
4626
4703
|
cursor: pointer;
|
|
4627
4704
|
}
|
|
4628
|
-
`,
|
|
4705
|
+
`,I1,A1,Sd,lg,or=class extends(A1=g,I1=[u({type:Boolean,reflect:!0})],A1){constructor(){super(...arguments);s(this,lg,i(Sd,8,this,!1)),i(Sd,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
|
|
4629
4706
|
<div class="Item" part="root" aria-disabled="${this.disabled}">
|
|
4630
4707
|
<slot></slot>
|
|
4631
4708
|
</div>
|
|
4632
|
-
`}};
|
|
4709
|
+
`}};Sd=S(A1),lg=new WeakMap,d(Sd,4,"disabled",I1,or,lg),C(Sd,or),b(or,"tagName","dui-menu-item"),b(or,"styles",[y,VO,UO]);var jO=c`
|
|
4633
4710
|
:host {
|
|
4634
4711
|
display: block;
|
|
4635
4712
|
}
|
|
4636
|
-
`,
|
|
4713
|
+
`,KO=c`
|
|
4637
4714
|
.Trigger {
|
|
4638
4715
|
display: contents;
|
|
4639
4716
|
cursor: pointer;
|
|
4640
4717
|
}
|
|
4641
|
-
`,
|
|
4718
|
+
`,WO=[c`
|
|
4642
4719
|
.Popup {
|
|
4643
4720
|
max-height: 240px;
|
|
4644
4721
|
overflow-y: auto;
|
|
@@ -4653,7 +4730,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4653
4730
|
.Popup[data-ending-style] {
|
|
4654
4731
|
opacity: 0;
|
|
4655
4732
|
}
|
|
4656
|
-
`],
|
|
4733
|
+
`],_1,O1,Ed,dg,cg,li,Co,Rt,is,kt,bn,pg,L1,$d,Td,Rd,Id,So=class extends(O1=g,_1=[k()],O1){constructor(){super(...arguments);s(this,Rt);s(this,dg,i(Ed,8,this,-1)),i(Ed,11,this);s(this,is,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);s(this,kt,new le(this,{getAnchor:()=>r(this,is).call(this)??this,matchWidth:!1,styles:WO,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,Rt,-1,Co),r(this,is).call(this)?.setAttribute("data-open","")},onClose:()=>{h(this,Rt,-1,Co),r(this,is).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
|
|
4657
4734
|
<div
|
|
4658
4735
|
class="Popup"
|
|
4659
4736
|
?data-starting-style="${t.isStarting}"
|
|
@@ -4661,24 +4738,24 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4661
4738
|
>
|
|
4662
4739
|
<div
|
|
4663
4740
|
class="Menu"
|
|
4664
|
-
id="${r(this,
|
|
4741
|
+
id="${r(this,bn)}"
|
|
4665
4742
|
role="menu"
|
|
4666
|
-
@click="${r(this,
|
|
4667
|
-
@mousemove="${r(this,
|
|
4743
|
+
@click="${r(this,Td)}"
|
|
4744
|
+
@mousemove="${r(this,Id)}"
|
|
4668
4745
|
></div>
|
|
4669
4746
|
</div>
|
|
4670
|
-
`}));s(this,
|
|
4747
|
+
`}));s(this,bn,`menu-${crypto.randomUUID().slice(0,8)}`);s(this,$d,t=>{t.stopPropagation(),t.preventDefault(),m(this,Rt,L1).call(this)});s(this,Td,t=>{let e=t.composedPath().find(a=>a instanceof HTMLElement&&a.matches(or.tagName));e&&!e.disabled&&r(this,kt).close()});s(this,Rd,t=>{let e=r(this,Rt,pg);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!r(this,kt).isOpen)r(this,kt).open();else{let a=r(this,Rt,li)+1;for(;a<e.length&&e[a]?.disabled;)a++;a<e.length&&h(this,Rt,a,Co)}break}case"ArrowUp":{if(t.preventDefault(),!r(this,kt).isOpen)r(this,kt).open();else{let a=r(this,Rt,li)-1;for(;a>=0&&e[a]?.disabled;)a--;a>=0&&h(this,Rt,a,Co)}break}case"Home":if(r(this,kt).isOpen){t.preventDefault();let a=e.findIndex(l=>!l.disabled);a>=0&&h(this,Rt,a,Co)}break;case"End":if(r(this,kt).isOpen){t.preventDefault();for(let a=e.length-1;a>=0;a--)if(!e[a]?.disabled){h(this,Rt,a,Co);break}}break;case"Enter":case" ":{if(r(this,kt).isOpen&&r(this,Rt,li)>=0){t.preventDefault();let a=e[r(this,Rt,li)];a&&!a.disabled&&(a.click(),r(this,kt).close())}else r(this,kt).isOpen||(t.preventDefault(),r(this,kt).open());break}case"Escape":r(this,kt).isOpen&&(t.preventDefault(),r(this,kt).close());break;case"Tab":r(this,kt).isOpen&&r(this,kt).close();break}});s(this,Id,()=>{r(this,Rt,li)>=0&&h(this,Rt,-1,Co)})}updated(){let t=r(this,Rt,pg);for(let e=0;e<t.length;e++)e===r(this,Rt,li)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
|
|
4671
4748
|
<div
|
|
4672
4749
|
class="Trigger"
|
|
4673
4750
|
aria-haspopup="menu"
|
|
4674
4751
|
aria-expanded="${r(this,kt).isOpen}"
|
|
4675
|
-
aria-controls="${r(this,
|
|
4676
|
-
@click="${r(this
|
|
4677
|
-
@keydown="${r(this,
|
|
4752
|
+
aria-controls="${r(this,bn)}"
|
|
4753
|
+
@click="${r(this,$d)}"
|
|
4754
|
+
@keydown="${r(this,Rd)}"
|
|
4678
4755
|
>
|
|
4679
4756
|
<slot name="trigger"></slot>
|
|
4680
4757
|
</div>
|
|
4681
|
-
`}};
|
|
4758
|
+
`}};Ed=S(O1),dg=new WeakMap,Rt=new WeakSet,is=new WeakMap,kt=new WeakMap,bn=new WeakMap,pg=function(){return[...(r(this,kt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},L1=function(){r(this,kt).isOpen?r(this,kt).close():r(this,kt).open()},$d=new WeakMap,Td=new WeakMap,Rd=new WeakMap,Id=new WeakMap,cg=d(Ed,20,"#highlightedIndex",_1,Rt,dg),li=cg.get,Co=cg.set,C(Ed,So),b(So,"tagName","dui-menu"),b(So,"styles",[y,jO,KO]);var P1=Symbol("dui-menubar");var GO=c`
|
|
4682
4759
|
:host {
|
|
4683
4760
|
display: block;
|
|
4684
4761
|
}
|
|
@@ -4692,16 +4769,16 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4692
4769
|
flex-direction: column;
|
|
4693
4770
|
align-items: stretch;
|
|
4694
4771
|
}
|
|
4695
|
-
`,
|
|
4772
|
+
`,z1,M1,F1,H1,N1,Ie,hg,ug,mg,fg,gg,Ad,pe,B1,_d,Od,ss,vg,bg,Ld,ir=class extends(N1=g,H1=[u({type:Boolean})],F1=[u({reflect:!0})],M1=[k()],z1=[bt({context:P1}),k()],N1){constructor(){super(...arguments);s(this,pe);s(this,hg,i(Ie,8,this,!0)),i(Ie,11,this);s(this,ug,i(Ie,12,this,"horizontal")),i(Ie,15,this);s(this,mg,i(Ie,16,this,null)),i(Ie,19,this);s(this,_d,t=>{h(this,pe,t,Ad)});s(this,Od,()=>{h(this,pe,null,Ad)});s(this,ss,t=>{let e=m(this,pe,B1).call(this);if(e.length===0)return;let a=e.findIndex(E=>E.getAttribute("data-menubar-id")===r(this,pe,gg)),l;t==="next"?(l=a+1,l>=e.length&&(l=this.loop?0:e.length-1)):(l=a-1,l<0&&(l=this.loop?e.length-1:0));let p=e[l];if(!p)return;let v=p.getAttribute("data-menubar-id");v&&h(this,pe,v,Ad),p.querySelector('[slot="trigger"]')?.focus()});s(this,vg,i(Ie,20,this,m(this,pe,bg).call(this))),i(Ie,23,this);s(this,Ld,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";t.key===a?(t.preventDefault(),r(this,ss).call(this,"next")):t.key===l&&(t.preventDefault(),r(this,ss).call(this,"prev"))})}willUpdate(){this._ctx=m(this,pe,bg).call(this)}render(){return f`
|
|
4696
4773
|
<div
|
|
4697
4774
|
part="root"
|
|
4698
4775
|
role="menubar"
|
|
4699
4776
|
aria-orientation="${this.orientation}"
|
|
4700
|
-
@keydown="${r(this,
|
|
4777
|
+
@keydown="${r(this,Ld)}"
|
|
4701
4778
|
>
|
|
4702
4779
|
<slot></slot>
|
|
4703
4780
|
</div>
|
|
4704
|
-
`}};
|
|
4781
|
+
`}};Ie=S(N1),hg=new WeakMap,ug=new WeakMap,mg=new WeakMap,pe=new WeakSet,B1=function(){return[...this.querySelectorAll("dui-menu")]},_d=new WeakMap,Od=new WeakMap,ss=new WeakMap,vg=new WeakMap,bg=function(){return{activeMenuId:r(this,pe,gg),openMenu:r(this,_d),closeAll:r(this,Od),navigateToMenu:r(this,ss)}},Ld=new WeakMap,d(Ie,4,"loop",H1,ir,hg),d(Ie,4,"orientation",F1,ir,ug),fg=d(Ie,20,"#activeMenuId",M1,pe,mg),gg=fg.get,Ad=fg.set,d(Ie,4,"_ctx",z1,ir,vg),C(Ie,ir),b(ir,"tagName","dui-menubar"),b(ir,"styles",[y,GO]);var e$=_("value-change",{bubbles:!0,composed:!0}),YO=c`
|
|
4705
4782
|
:host {
|
|
4706
4783
|
display: block;
|
|
4707
4784
|
}
|
|
@@ -4754,7 +4831,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4754
4831
|
width: 0;
|
|
4755
4832
|
height: 0;
|
|
4756
4833
|
}
|
|
4757
|
-
`,
|
|
4834
|
+
`,D1,q1,V1,U1,j1,K1,W1,G1,Y1,X1,Q1,J1,Z1,t$,X,yg,xg,wg,kg,Cg,Sg,Eg,$g,Tg,Rg,Ig,Ag,r$,Pg,B,_g,Og,zg,Mg,Lg,di,Pd,o$,i$,s$,zd,Fg,ns,yn,xn,Hg,Md,Fd,Hd,Nd,Bd,Dd,Pt=class extends(t$=g,Z1=[u({type:Number})],J1=[u({type:Number,attribute:"default-value"})],Q1=[u({type:Number})],X1=[u({type:Number})],Y1=[u({type:Number})],G1=[u({type:Number,attribute:"large-step"})],W1=[u({type:Boolean,reflect:!0})],K1=[u({type:Boolean,reflect:!0,attribute:"read-only"})],j1=[u({type:Boolean})],U1=[u()],V1=[k()],q1=[k()],D1=[ot({context:Ce,subscribe:!0}),k()],t$){constructor(){super(...arguments);s(this,B);s(this,yg,i(X,8,this)),i(X,11,this);s(this,xg,i(X,12,this)),i(X,15,this);s(this,wg,i(X,16,this)),i(X,19,this);s(this,kg,i(X,20,this)),i(X,23,this);s(this,Cg,i(X,24,this,1)),i(X,27,this);s(this,Sg,i(X,28,this,10)),i(X,31,this);s(this,Eg,i(X,32,this,!1)),i(X,35,this);s(this,$g,i(X,36,this,!1)),i(X,39,this);s(this,Tg,i(X,40,this,!1)),i(X,43,this);s(this,Rg,i(X,44,this)),i(X,47,this);s(this,Ig,i(X,48,this)),i(X,51,this);s(this,_g,i(X,52,this,"")),i(X,55,this);s(this,Lg,i(X,56,this)),i(X,59,this);s(this,yn,t=>{if(r(this,B,Pd)||this.readOnly)return;let e=r(this,B,di)??this.min??0;m(this,B,ns).call(this,e+t)});s(this,xn,t=>{if(r(this,B,Pd)||this.readOnly)return;let e=r(this,B,di)??this.max??0;m(this,B,ns).call(this,e-t)});s(this,Md,t=>{h(this,B,t.target.value,Mg)});s(this,Fd,()=>{m(this,B,Hg).call(this),this._fieldCtx?.setFocused(!1),this._fieldCtx?.markTouched()});s(this,Hd,()=>{this._fieldCtx?.setFocused(!0)});s(this,Nd,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),r(this,yn).call(this,t.shiftKey?this.largeStep:this.step);break;case"ArrowDown":t.preventDefault(),r(this,xn).call(this,t.shiftKey?this.largeStep:this.step);break;case"Home":this.min!==void 0&&(t.preventDefault(),m(this,B,ns).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),m(this,B,ns).call(this,this.max));break;case"Enter":m(this,B,Hg).call(this);break}});s(this,Bd,()=>{r(this,xn).call(this,this.step)});s(this,Dd,()=>{r(this,yn).call(this,this.step)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,B,m(this,B,Fg).call(this,this.defaultValue),Pg),m(this,B,zd).call(this)}willUpdate(){m(this,B,zd).call(this)}render(){let t=r(this,B,Pd),e=r(this,B,o$),a=this._fieldCtx?.controlId??"",l=r(this,B,di);return f`
|
|
4758
4835
|
<div
|
|
4759
4836
|
part="root"
|
|
4760
4837
|
?data-disabled="${t}"
|
|
@@ -4765,8 +4842,8 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4765
4842
|
type="button"
|
|
4766
4843
|
tabindex="-1"
|
|
4767
4844
|
aria-label="Decrease"
|
|
4768
|
-
?disabled="${t||this.readOnly||!r(this,
|
|
4769
|
-
@click="${r(this,
|
|
4845
|
+
?disabled="${t||this.readOnly||!r(this,B,i$)}"
|
|
4846
|
+
@click="${r(this,Bd)}"
|
|
4770
4847
|
>
|
|
4771
4848
|
<slot name="decrement">−</slot>
|
|
4772
4849
|
</button>
|
|
@@ -4775,50 +4852,63 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4775
4852
|
id="${a||T}"
|
|
4776
4853
|
type="text"
|
|
4777
4854
|
inputmode="decimal"
|
|
4778
|
-
.value="${
|
|
4855
|
+
.value="${go(r(this,B,zg))}"
|
|
4779
4856
|
?disabled="${t}"
|
|
4780
4857
|
?readonly="${this.readOnly}"
|
|
4781
4858
|
?required="${this.required}"
|
|
4782
4859
|
aria-invalid="${e?"true":T}"
|
|
4783
4860
|
?data-disabled="${t}"
|
|
4784
|
-
@input="${r(this,
|
|
4785
|
-
@keydown="${r(this,
|
|
4786
|
-
@focus="${r(this,
|
|
4787
|
-
@blur="${r(this,
|
|
4861
|
+
@input="${r(this,Md)}"
|
|
4862
|
+
@keydown="${r(this,Nd)}"
|
|
4863
|
+
@focus="${r(this,Hd)}"
|
|
4864
|
+
@blur="${r(this,Fd)}"
|
|
4788
4865
|
/>
|
|
4789
4866
|
<button
|
|
4790
4867
|
part="increment"
|
|
4791
4868
|
type="button"
|
|
4792
4869
|
tabindex="-1"
|
|
4793
4870
|
aria-label="Increase"
|
|
4794
|
-
?disabled="${t||this.readOnly||!r(this,
|
|
4795
|
-
@click="${r(this,
|
|
4871
|
+
?disabled="${t||this.readOnly||!r(this,B,s$)}"
|
|
4872
|
+
@click="${r(this,Dd)}"
|
|
4796
4873
|
>
|
|
4797
4874
|
<slot name="increment">+</slot>
|
|
4798
4875
|
</button>
|
|
4799
|
-
${this.name?
|
|
4876
|
+
${this.name?f`<input
|
|
4800
4877
|
type="hidden"
|
|
4801
4878
|
name="${this.name}"
|
|
4802
4879
|
.value="${String(l??"")}"
|
|
4803
4880
|
/>`:T}
|
|
4804
4881
|
</div>
|
|
4805
|
-
`}};
|
|
4882
|
+
`}};X=S(t$),yg=new WeakMap,xg=new WeakMap,wg=new WeakMap,kg=new WeakMap,Cg=new WeakMap,Sg=new WeakMap,Eg=new WeakMap,$g=new WeakMap,Tg=new WeakMap,Rg=new WeakMap,Ig=new WeakMap,B=new WeakSet,_g=new WeakMap,Lg=new WeakMap,di=function(){return this.value??r(this,B,r$)},Pd=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},o$=function(){return this._fieldCtx?.invalid??!1},i$=function(){let t=r(this,B,di);return t===void 0?!0:this.min===void 0||t>this.min},s$=function(){let t=r(this,B,di);return t===void 0?!0:this.max===void 0||t<this.max},zd=function(){let t=r(this,B,di);h(this,B,t!==void 0?String(t):"",Mg)},Fg=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},ns=function(t){let e=m(this,B,Fg).call(this,t);this.value===void 0&&h(this,B,e,Pg),this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(!0),this.dispatchEvent(e$({value:e}))},yn=new WeakMap,xn=new WeakMap,Hg=function(){let t=parseFloat(r(this,B,zg));Number.isNaN(t)?m(this,B,zd).call(this):m(this,B,ns).call(this,t)},Md=new WeakMap,Fd=new WeakMap,Hd=new WeakMap,Nd=new WeakMap,Bd=new WeakMap,Dd=new WeakMap,d(X,4,"value",Z1,Pt,yg),d(X,4,"defaultValue",J1,Pt,xg),d(X,4,"min",Q1,Pt,wg),d(X,4,"max",X1,Pt,kg),d(X,4,"step",Y1,Pt,Cg),d(X,4,"largeStep",G1,Pt,Sg),d(X,4,"disabled",W1,Pt,Eg),d(X,4,"readOnly",K1,Pt,$g),d(X,4,"required",j1,Pt,Tg),d(X,4,"name",U1,Pt,Rg),Ag=d(X,20,"#internalValue",V1,B,Ig),r$=Ag.get,Pg=Ag.set,Og=d(X,20,"#inputText",q1,B,_g),zg=Og.get,Mg=Og.set,d(X,4,"_fieldCtx",D1,Pt,Lg),C(X,Pt),b(Pt,"tagName","dui-number-field"),b(Pt,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Pt,"styles",[y,YO]);var Eo=Symbol("dui-popover");var Gg=_("open-change",{bubbles:!0,composed:!0}),XO=c`
|
|
4806
4883
|
:host {
|
|
4807
4884
|
display: contents;
|
|
4808
4885
|
}
|
|
4809
|
-
`,
|
|
4886
|
+
`,n$,a$,l$,d$,c$,p$,h$,u$,It,Ng,Bg,Dg,qg,Vg,Ug,qd,Vd,it,jg,Kg,Yg,m$,wn,jd,Kd,Wg,kn,Xg,Ud,f$,v$,Ae=class extends(u$=g,h$=[u({type:Boolean,reflect:!0})],p$=[u({type:Boolean,attribute:"default-open"})],c$=[u({reflect:!0})],d$=[u({type:Number,attribute:"side-offset"})],l$=[k()],a$=[k()],n$=[bt({context:Eo}),k()],u$){constructor(){super(...arguments);s(this,it);s(this,Ng,i(It,8,this,!1)),i(It,11,this);s(this,Bg,i(It,12,this,!1)),i(It,15,this);s(this,Dg,i(It,16,this,"bottom")),i(It,19,this);s(this,qg,i(It,20,this,8)),i(It,23,this);s(this,Vg,i(It,24,this,!1)),i(It,27,this);s(this,jg,i(It,28,this)),i(It,31,this);s(this,jd,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,Kd,`popover-popup-${crypto.randomUUID().slice(0,8)}`);s(this,Wg,i(It,32,this,{open:!1,triggerId:r(this,jd),popupId:r(this,Kd),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>m(this,it,Xg).call(this),closePopover:()=>m(this,it,Ud).call(this),togglePopover:()=>m(this,it,f$).call(this),setTriggerEl:t=>m(this,it,v$).call(this,t)})),i(It,35,this);s(this,kn,t=>{r(this,it,wn)&&t.key==="Escape"&&(t.preventDefault(),m(this,it,Ud).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,it,!0,Vd),document.addEventListener("keydown",r(this,kn))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",r(this,kn))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==r(this,it,wn)||this._ctx.triggerEl!==r(this,it,Yg))&&(this._ctx={...this._ctx,open:r(this,it,wn),side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,it,Yg)})}render(){return f`<slot></slot>`}};It=S(u$),Ng=new WeakMap,Bg=new WeakMap,Dg=new WeakMap,qg=new WeakMap,Vg=new WeakMap,it=new WeakSet,jg=new WeakMap,wn=function(){return this.open||r(this,it,qd)},jd=new WeakMap,Kd=new WeakMap,Wg=new WeakMap,kn=new WeakMap,Xg=function(){r(this,it,qd)||(h(this,it,!0,Vd),this.dispatchEvent(Gg({open:!0})))},Ud=function(){r(this,it,qd)&&(h(this,it,!1,Vd),this.dispatchEvent(Gg({open:!1})))},f$=function(){r(this,it,wn)?m(this,it,Ud).call(this):m(this,it,Xg).call(this)},v$=function(t){h(this,it,t,m$)},d(It,4,"open",h$,Ae,Ng),d(It,4,"defaultOpen",p$,Ae,Bg),d(It,4,"side",c$,Ae,Dg),d(It,4,"sideOffset",d$,Ae,qg),Ug=d(It,20,"#internalOpen",l$,it,Vg),qd=Ug.get,Vd=Ug.set,Kg=d(It,20,"#triggerEl",a$,it,jg),Yg=Kg.get,m$=Kg.set,d(It,4,"_ctx",n$,Ae,Wg),C(It,Ae),b(Ae,"tagName","dui-popover"),b(Ae,"styles",[y,XO]);var QO=c`
|
|
4810
4887
|
:host {
|
|
4811
4888
|
display: contents;
|
|
4812
4889
|
}
|
|
4813
|
-
`,
|
|
4890
|
+
`,JO=c`
|
|
4814
4891
|
.Trigger {
|
|
4815
4892
|
display: contents;
|
|
4816
4893
|
}
|
|
4817
|
-
|
|
4894
|
+
`,Cn=class extends g{static tagName="dui-popover-trigger";static styles=[y,QO,JO];#t=new q(this,{context:Eo,subscribe:!0});#e=o=>{o.stopPropagation(),this.#s(),this.#t.value?.togglePopover()};#s(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0]??this;this.#t.value?.setTriggerEl(t)}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return f`
|
|
4895
|
+
<span
|
|
4896
|
+
class="Trigger"
|
|
4897
|
+
part="trigger"
|
|
4898
|
+
id="${e}"
|
|
4899
|
+
aria-haspopup="dialog"
|
|
4900
|
+
aria-expanded="${o}"
|
|
4901
|
+
aria-controls="${o?t:""}"
|
|
4902
|
+
?data-popup-open="${o}"
|
|
4903
|
+
@click="${this.#e}"
|
|
4904
|
+
>
|
|
4905
|
+
<slot></slot>
|
|
4906
|
+
</span>
|
|
4907
|
+
`}};var ZO=c`
|
|
4818
4908
|
:host {
|
|
4819
4909
|
display: none;
|
|
4820
4910
|
}
|
|
4821
|
-
`,
|
|
4911
|
+
`,tL=[c`
|
|
4822
4912
|
.Popup {
|
|
4823
4913
|
box-sizing: border-box;
|
|
4824
4914
|
pointer-events: auto;
|
|
@@ -4859,44 +4949,64 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4859
4949
|
left: 50%;
|
|
4860
4950
|
transform: translateX(-50%) rotate(180deg);
|
|
4861
4951
|
}
|
|
4862
|
-
`],
|
|
4952
|
+
`],g$,b$,y$,x$,xr,Qg,Jg,Zg,tb,Wd,w$,kr,Qr,as,$o,Gd,k$,wr=class extends(x$=g,y$=[u({type:Boolean,attribute:"show-arrow"})],b$=[u({type:Boolean,attribute:"close-on-click"})],g$=[k()],x$){constructor(){super(...arguments);s(this,kr);s(this,Qg,i(xr,8,this,!0)),i(xr,11,this);s(this,Jg,i(xr,12,this,!1)),i(xr,15,this);s(this,Zg,i(xr,16,this,"bottom")),i(xr,19,this);s(this,Qr,new q(this,{context:Eo,subscribe:!0}));s(this,as,!1);s(this,$o,new le(this,{getAnchor:()=>r(this,Qr).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:tL,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,kr,Wd)&&h(this,kr,e,w$)},renderPopup:t=>{let e=r(this,Qr).value?.popupId??"";return f`
|
|
4863
4953
|
<div
|
|
4864
4954
|
class="Popup"
|
|
4865
4955
|
id="${e}"
|
|
4866
4956
|
role="dialog"
|
|
4867
4957
|
?data-starting-style="${t.isStarting}"
|
|
4868
4958
|
?data-ending-style="${t.isEnding}"
|
|
4869
|
-
data-side="${r(this,
|
|
4870
|
-
@click="${r(this,
|
|
4959
|
+
data-side="${r(this,kr,Wd)}"
|
|
4960
|
+
@click="${r(this,Gd)}"
|
|
4871
4961
|
>
|
|
4872
4962
|
<div class="Content"></div>
|
|
4873
|
-
${this.showArrow?
|
|
4963
|
+
${this.showArrow?Wi(r(this,kr,Wd)):""}
|
|
4874
4964
|
</div>
|
|
4875
|
-
`}}));s(this,
|
|
4965
|
+
`}}));s(this,Gd,()=>{this.closeOnClick&&r(this,Qr).value?.closePopover()})}containsEventTarget(t){let e=r(this,$o).positionerElement;return e!==null&&t.includes(e)}updated(){let t=r(this,Qr).value?.open??!1;t&&!r(this,as)?(m(this,kr,k$).call(this),r(this,$o).open()):!t&&r(this,as)&&r(this,$o).close(),h(this,as,t)}render(){return f`<slot></slot>`}};xr=S(x$),Qg=new WeakMap,Jg=new WeakMap,Zg=new WeakMap,kr=new WeakSet,Qr=new WeakMap,as=new WeakMap,$o=new WeakMap,Gd=new WeakMap,k$=function(){let t=r(this,Qr).value?.side??"bottom";r(this,$o).placement=t,r(this,$o).offset=r(this,Qr).value?.sideOffset??8},d(xr,4,"showArrow",y$,wr,Qg),d(xr,4,"closeOnClick",b$,wr,Jg),tb=d(xr,20,"#side",g$,kr,Zg),Wd=tb.get,w$=tb.set,C(xr,wr),b(wr,"tagName","dui-popover-popup"),b(wr,"styles",[y,ZO]);var eL=c`
|
|
4876
4966
|
:host {
|
|
4877
4967
|
display: contents;
|
|
4878
4968
|
}
|
|
4879
|
-
|
|
4969
|
+
`,Sn=class extends g{static tagName="dui-popover-close";static styles=[y,eL];#t=new q(this,{context:Eo,subscribe:!0});#e=()=>{this.#t.value?.closePopover()};render(){return f`
|
|
4970
|
+
<span @click="${this.#e}">
|
|
4971
|
+
<slot></slot>
|
|
4972
|
+
</span>
|
|
4973
|
+
`}};var rL=c`
|
|
4880
4974
|
:host {
|
|
4881
4975
|
display: contents;
|
|
4882
4976
|
}
|
|
4883
|
-
`,
|
|
4977
|
+
`,C$,S$,E$,$$,Cr,eb,rb,ob,Sr,ci,To,he,ib,T$,sb,Yd,Xd,sr=class extends($$=g,E$=[u({type:String})],S$=[u({type:String,attribute:"target-root",reflect:!0})],C$=[u({attribute:!1})],$$){constructor(){super(...arguments);s(this,he);s(this,eb,i(Cr,8,this,"body")),i(Cr,11,this);s(this,rb,i(Cr,12,this,"document")),i(Cr,15,this);s(this,ob,i(Cr,16,this)),i(Cr,19,this);s(this,Sr);s(this,ci,new Set);s(this,To,!1);s(this,Xd,()=>{r(this,To)||!r(this,Sr)||m(this,he,Yd).call(this)})}connectedCallback(){super.connectedCallback(),h(this,Sr,this.targetElement??m(this,he,ib).call(this)),r(this,Sr)&&this.childNodes.length>0&&m(this,he,Yd).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,he,sb).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(m(this,he,sb).call(this),m(this,he,T$).call(this))}render(){return f`<slot @slotchange=${r(this,Xd)}></slot>`}};Cr=S($$),eb=new WeakMap,rb=new WeakMap,ob=new WeakMap,Sr=new WeakMap,ci=new WeakMap,To=new WeakMap,he=new WeakSet,ib=function(){return ik(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},T$=function(){h(this,Sr,this.targetElement??m(this,he,ib).call(this)),m(this,he,Yd).call(this)},sb=function(){if(r(this,ci).size!==0){h(this,To,!0);for(let t of r(this,ci))this.append(t);r(this,ci).clear(),h(this,To,!1),h(this,Sr,void 0)}},Yd=function(){if(!r(this,Sr))throw new Error(`Portal target does not exist: ${this.target}`);h(this,To,!0);let t=Array.from(this.childNodes);for(let e of t)r(this,Sr).appendChild(e),r(this,ci).add(e);h(this,To,!1)},Xd=new WeakMap,d(Cr,4,"target",E$,sr,eb),d(Cr,4,"targetRoot",S$,sr,rb),d(Cr,4,"targetElement",C$,sr,ob),C(Cr,sr),b(sr,"tagName","dui-portal"),b(sr,"styles",[rL]);var ls=Symbol("dui-preview-card");var gb=_("open-change",{bubbles:!0,composed:!0}),oL=c`
|
|
4884
4978
|
:host {
|
|
4885
4979
|
display: contents;
|
|
4886
4980
|
}
|
|
4887
|
-
`,
|
|
4981
|
+
`,R$,I$,A$,_$,O$,L$,P$,z$,M$,F$,vt,nb,ab,lb,db,cb,pb,hb,ub,Qd,Jd,st,mb,fb,bb,H$,pi,hi,tc,ec,vb,Zd,N$,B$,yb,xb,D$,ee=class extends(F$=g,M$=[u({type:Boolean,reflect:!0})],z$=[u({type:Boolean,attribute:"default-open"})],P$=[u({reflect:!0})],L$=[u({type:Number,attribute:"side-offset"})],O$=[u({type:Number})],_$=[u({type:Number,attribute:"close-delay"})],A$=[k()],I$=[k()],R$=[bt({context:ls}),k()],F$){constructor(){super(...arguments);s(this,st);s(this,nb,i(vt,8,this,!1)),i(vt,11,this);s(this,ab,i(vt,12,this,!1)),i(vt,15,this);s(this,lb,i(vt,16,this,"top")),i(vt,19,this);s(this,db,i(vt,20,this,8)),i(vt,23,this);s(this,cb,i(vt,24,this,400)),i(vt,27,this);s(this,pb,i(vt,28,this,300)),i(vt,31,this);s(this,hb,i(vt,32,this,!1)),i(vt,35,this);s(this,mb,i(vt,36,this)),i(vt,39,this);s(this,pi);s(this,hi);s(this,tc,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,ec,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);s(this,vb,i(vt,40,this,{open:!1,triggerId:r(this,tc),popupId:r(this,ec),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>m(this,st,N$).call(this),closePreviewCard:()=>m(this,st,B$).call(this),setTriggerEl:t=>m(this,st,D$).call(this,t)})),i(vt,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,st,!0,Jd)}disconnectedCallback(){super.disconnectedCallback(),m(this,st,Zd).call(this)}willUpdate(t){let e=this.open||r(this,st,Qd);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,st,bb))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,st,bb)})}render(){return f`<slot></slot>`}};vt=S(F$),nb=new WeakMap,ab=new WeakMap,lb=new WeakMap,db=new WeakMap,cb=new WeakMap,pb=new WeakMap,hb=new WeakMap,st=new WeakSet,mb=new WeakMap,pi=new WeakMap,hi=new WeakMap,tc=new WeakMap,ec=new WeakMap,vb=new WeakMap,Zd=function(){r(this,pi)&&(clearTimeout(r(this,pi)),h(this,pi,void 0)),r(this,hi)&&(clearTimeout(r(this,hi)),h(this,hi,void 0))},N$=function(){m(this,st,Zd).call(this),this.delay<=0?m(this,st,yb).call(this):h(this,pi,setTimeout(()=>m(this,st,yb).call(this),this.delay))},B$=function(){m(this,st,Zd).call(this),this.closeDelay<=0?m(this,st,xb).call(this):h(this,hi,setTimeout(()=>m(this,st,xb).call(this),this.closeDelay))},yb=function(){r(this,st,Qd)||(h(this,st,!0,Jd),this.dispatchEvent(gb({open:!0})))},xb=function(){r(this,st,Qd)&&(h(this,st,!1,Jd),this.dispatchEvent(gb({open:!1})))},D$=function(t){h(this,st,t,H$)},d(vt,4,"open",M$,ee,nb),d(vt,4,"defaultOpen",z$,ee,ab),d(vt,4,"side",P$,ee,lb),d(vt,4,"sideOffset",L$,ee,db),d(vt,4,"delay",O$,ee,cb),d(vt,4,"closeDelay",_$,ee,pb),ub=d(vt,20,"#internalOpen",A$,st,hb),Qd=ub.get,Jd=ub.set,fb=d(vt,20,"#triggerEl",I$,st,mb),bb=fb.get,H$=fb.set,d(vt,4,"_ctx",R$,ee,vb),C(vt,ee),b(ee,"tagName","dui-preview-card"),b(ee,"styles",[y,oL]);var iL=c`
|
|
4888
4982
|
:host {
|
|
4889
4983
|
display: contents;
|
|
4890
4984
|
}
|
|
4891
|
-
`,
|
|
4985
|
+
`,sL=c`
|
|
4892
4986
|
.Trigger {
|
|
4893
4987
|
display: contents;
|
|
4894
4988
|
}
|
|
4895
|
-
|
|
4989
|
+
`,En=class extends g{static tagName="dui-preview-card-trigger";static styles=[y,iL,sL];#t=new q(this,{context:ls,subscribe:!0});#e=()=>{this.#l(),this.#t.value?.openPreviewCard()};#s=()=>{this.#t.value?.closePreviewCard()};#n=()=>{this.#l(),this.#t.value?.openPreviewCard()};#a=()=>{this.#t.value?.closePreviewCard()};#d=o=>{o.key==="Escape"&&this.#t.value?.open&&this.#t.value?.closePreviewCard()};#l(){let e=this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})?.[0]??this;this.#t.value?.setTriggerEl(e)}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return f`
|
|
4990
|
+
<span
|
|
4991
|
+
class="Trigger"
|
|
4992
|
+
part="trigger"
|
|
4993
|
+
id="${e}"
|
|
4994
|
+
tabindex="0"
|
|
4995
|
+
aria-describedby="${o?t:""}"
|
|
4996
|
+
?data-popup-open="${o}"
|
|
4997
|
+
@mouseenter="${this.#e}"
|
|
4998
|
+
@mouseleave="${this.#s}"
|
|
4999
|
+
@focus="${this.#n}"
|
|
5000
|
+
@blur="${this.#a}"
|
|
5001
|
+
@keydown="${this.#d}"
|
|
5002
|
+
>
|
|
5003
|
+
<slot></slot>
|
|
5004
|
+
</span>
|
|
5005
|
+
`}};var nL=c`
|
|
4896
5006
|
:host {
|
|
4897
5007
|
display: none;
|
|
4898
5008
|
}
|
|
4899
|
-
`,
|
|
5009
|
+
`,aL=[c`
|
|
4900
5010
|
.Popup {
|
|
4901
5011
|
box-sizing: border-box;
|
|
4902
5012
|
pointer-events: auto;
|
|
@@ -4937,21 +5047,21 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4937
5047
|
left: 50%;
|
|
4938
5048
|
transform: translateX(-50%) rotate(180deg);
|
|
4939
5049
|
}
|
|
4940
|
-
`],
|
|
5050
|
+
`],q$,V$,U$,ui,wb,kb,Cb,rc,j$,$r,Er,ds,mi,oc,ic,K$,Jr=class extends(U$=g,V$=[u({type:Boolean,attribute:"show-arrow"})],q$=[k()],U$){constructor(){super(...arguments);s(this,$r);s(this,wb,i(ui,8,this,!0)),i(ui,11,this);s(this,kb,i(ui,12,this,"top")),i(ui,15,this);s(this,Er,new q(this,{context:ls,subscribe:!0}));s(this,ds,!1);s(this,mi,new le(this,{getAnchor:()=>r(this,Er).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:aL,contentContainer:".PreviewCardContent",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,$r,rc)&&h(this,$r,e,j$)},renderPopup:t=>{let e=r(this,Er).value?.popupId??"";return f`
|
|
4941
5051
|
<div
|
|
4942
5052
|
class="Popup"
|
|
4943
5053
|
id="${e}"
|
|
4944
5054
|
role="tooltip"
|
|
4945
5055
|
?data-starting-style="${t.isStarting}"
|
|
4946
5056
|
?data-ending-style="${t.isEnding}"
|
|
4947
|
-
data-side="${r(this,
|
|
4948
|
-
@mouseenter="${r(this,
|
|
4949
|
-
@mouseleave="${r(this,
|
|
5057
|
+
data-side="${r(this,$r,rc)}"
|
|
5058
|
+
@mouseenter="${r(this,oc)}"
|
|
5059
|
+
@mouseleave="${r(this,ic)}"
|
|
4950
5060
|
>
|
|
4951
5061
|
<div class="PreviewCardContent"></div>
|
|
4952
|
-
${this.showArrow?
|
|
5062
|
+
${this.showArrow?Wi(r(this,$r,rc)):""}
|
|
4953
5063
|
</div>
|
|
4954
|
-
`}}));s(this,
|
|
5064
|
+
`}}));s(this,oc,()=>{r(this,Er).value?.openPreviewCard()});s(this,ic,()=>{r(this,Er).value?.closePreviewCard()})}updated(){let t=r(this,Er).value?.open??!1;t&&!r(this,ds)?(m(this,$r,K$).call(this),r(this,mi).open()):!t&&r(this,ds)&&r(this,mi).close(),h(this,ds,t)}render(){return f`<slot></slot>`}};ui=S(U$),wb=new WeakMap,kb=new WeakMap,$r=new WeakSet,Er=new WeakMap,ds=new WeakMap,mi=new WeakMap,oc=new WeakMap,ic=new WeakMap,K$=function(){let t=r(this,Er).value?.side??"top";r(this,mi).placement=t,r(this,mi).offset=r(this,Er).value?.sideOffset??8},d(ui,4,"showArrow",V$,Jr,wb),Cb=d(ui,20,"#side",q$,$r,kb),rc=Cb.get,j$=Cb.set,C(ui,Jr),b(Jr,"tagName","dui-preview-card-popup"),b(Jr,"styles",[y,nL]);var lL=c`
|
|
4955
5065
|
:host {
|
|
4956
5066
|
display: block;
|
|
4957
5067
|
}
|
|
@@ -4969,23 +5079,23 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
4969
5079
|
width: var(--progress-value, 0%);
|
|
4970
5080
|
height: 100%;
|
|
4971
5081
|
}
|
|
4972
|
-
`,
|
|
5082
|
+
`,W$,G$,Y$,X$,Tr,Sb,Eb,$b,Rr,Q$,Tb,Rb,nr=class extends(X$=g,Y$=[u({type:Number})],G$=[u({type:Number})],W$=[u({type:Number})],X$){constructor(){super(...arguments);s(this,Rr);s(this,Sb,i(Tr,8,this,null)),i(Tr,11,this);s(this,Eb,i(Tr,12,this,0)),i(Tr,15,this);s(this,$b,i(Tr,16,this,100)),i(Tr,19,this)}render(){let t=r(this,Rr,Q$);return f`
|
|
4973
5083
|
<div
|
|
4974
5084
|
part="root"
|
|
4975
5085
|
role="progressbar"
|
|
4976
5086
|
aria-valuenow="${this.value??T}"
|
|
4977
5087
|
aria-valuemin="${this.min}"
|
|
4978
5088
|
aria-valuemax="${this.max}"
|
|
4979
|
-
?data-complete="${r(this,
|
|
4980
|
-
?data-progressing="${!r(this,
|
|
4981
|
-
?data-indeterminate="${r(this,
|
|
5089
|
+
?data-complete="${r(this,Rr,Rb)}"
|
|
5090
|
+
?data-progressing="${!r(this,Rr,Tb)&&!r(this,Rr,Rb)}"
|
|
5091
|
+
?data-indeterminate="${r(this,Rr,Tb)}"
|
|
4982
5092
|
style="--progress-value: ${t}%"
|
|
4983
5093
|
>
|
|
4984
5094
|
<div part="track">
|
|
4985
5095
|
<div part="indicator"></div>
|
|
4986
5096
|
</div>
|
|
4987
5097
|
</div>
|
|
4988
|
-
`}};
|
|
5098
|
+
`}};Tr=S(X$),Sb=new WeakMap,Eb=new WeakMap,$b=new WeakMap,Rr=new WeakSet,Q$=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))},Tb=function(){return this.value===null},Rb=function(){return this.value!==null&&this.value>=this.max},d(Tr,4,"value",Y$,nr,Sb),d(Tr,4,"min",G$,nr,Eb),d(Tr,4,"max",W$,nr,$b),C(Tr,nr),b(nr,"tagName","dui-progress"),b(nr,"styles",[y,lL]);var sc=Symbol("dui-radio-group");var dL=c`
|
|
4989
5099
|
:host {
|
|
4990
5100
|
display: inline-flex;
|
|
4991
5101
|
align-items: center;
|
|
@@ -5036,11 +5146,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5036
5146
|
width: 0;
|
|
5037
5147
|
height: 0;
|
|
5038
5148
|
}
|
|
5039
|
-
`,
|
|
5149
|
+
`,J$,Z$,tT,eT,rT,_e,Ib,Ab,_b,Zr,Ob,ue,oT,Lb,Pb,iT,sT,$n,cs,nc,Ve=class extends(rT=g,eT=[u()],tT=[u({type:Boolean,reflect:!0})],Z$=[u({type:Boolean,reflect:!0,attribute:"read-only"})],J$=[ot({context:Ce,subscribe:!0}),k()],rT){constructor(){super(...arguments);s(this,ue);s(this,Ib,i(_e,8,this,"")),i(_e,11,this);s(this,Ab,i(_e,12,this,!1)),i(_e,15,this);s(this,_b,i(_e,16,this,!1)),i(_e,19,this);s(this,Zr,new q(this,{context:sc,subscribe:!0}));s(this,Ob,i(_e,20,this)),i(_e,23,this);s(this,$n,t=>{t.target.closest("[part='root']")||r(this,cs).call(this,t)});s(this,cs,t=>{if(r(this,ue,Lb)||r(this,ue,Pb))return;let e=r(this,Zr).value;e&&(e.select(this.value),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched())});s(this,nc,t=>{t.key===" "&&(t.preventDefault(),r(this,cs).call(this,t))})}connectedCallback(){super.connectedCallback(),this.addEventListener("click",r(this,$n))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,$n))}render(){let t=r(this,ue,oT),e=r(this,ue,Lb),a=r(this,ue,Pb),l=r(this,ue,iT),p=r(this,ue,sT),v=this._fieldCtx?.controlId??"";return f`
|
|
5040
5150
|
<span
|
|
5041
5151
|
part="root"
|
|
5042
5152
|
role="radio"
|
|
5043
|
-
id="${
|
|
5153
|
+
id="${v||T}"
|
|
5044
5154
|
aria-checked="${String(t)}"
|
|
5045
5155
|
aria-disabled="${e?"true":T}"
|
|
5046
5156
|
aria-readonly="${a?"true":T}"
|
|
@@ -5053,19 +5163,19 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5053
5163
|
?data-readonly="${a}"
|
|
5054
5164
|
?data-required="${l}"
|
|
5055
5165
|
?data-invalid="${p}"
|
|
5056
|
-
@click="${r(this,
|
|
5057
|
-
@keydown="${r(this,
|
|
5166
|
+
@click="${r(this,cs)}"
|
|
5167
|
+
@keydown="${r(this,nc)}"
|
|
5058
5168
|
>
|
|
5059
5169
|
<span
|
|
5060
5170
|
part="indicator"
|
|
5061
5171
|
?data-checked="${t}"
|
|
5062
5172
|
?data-unchecked="${!t}"
|
|
5063
5173
|
>
|
|
5064
|
-
${t?
|
|
5174
|
+
${t?f`<span part="dot"></span>`:T}
|
|
5065
5175
|
</span>
|
|
5066
5176
|
<input
|
|
5067
5177
|
type="radio"
|
|
5068
|
-
name="${r(this,
|
|
5178
|
+
name="${r(this,Zr).value?.name??T}"
|
|
5069
5179
|
value="${this.value}"
|
|
5070
5180
|
.checked="${t}"
|
|
5071
5181
|
?disabled="${e}"
|
|
@@ -5076,7 +5186,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5076
5186
|
/>
|
|
5077
5187
|
</span>
|
|
5078
5188
|
<slot></slot>
|
|
5079
|
-
`}};
|
|
5189
|
+
`}};_e=S(rT),Ib=new WeakMap,Ab=new WeakMap,_b=new WeakMap,Zr=new WeakMap,Ob=new WeakMap,ue=new WeakSet,oT=function(){return r(this,Zr).value?.value===this.value},Lb=function(){return this.disabled||(r(this,Zr).value?.disabled??!1)||(this._fieldCtx?.disabled??!1)},Pb=function(){return this.readOnly||(r(this,Zr).value?.readOnly??!1)},iT=function(){return r(this,Zr).value?.required??!1},sT=function(){return this._fieldCtx?.invalid??!1},$n=new WeakMap,cs=new WeakMap,nc=new WeakMap,d(_e,4,"value",eT,Ve,Ib),d(_e,4,"disabled",tT,Ve,Ab),d(_e,4,"readOnly",Z$,Ve,_b),d(_e,4,"_fieldCtx",J$,Ve,Ob),C(_e,Ve),b(Ve,"tagName","dui-radio"),b(Ve,"styles",[y,dL]);var fT=_("value-change",{bubbles:!0,composed:!0}),cL=c`
|
|
5080
5190
|
:host {
|
|
5081
5191
|
display: block;
|
|
5082
5192
|
}
|
|
@@ -5090,7 +5200,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5090
5200
|
[part="root"][data-disabled] {
|
|
5091
5201
|
opacity: 0.5;
|
|
5092
5202
|
}
|
|
5093
|
-
`,
|
|
5203
|
+
`,nT,aT,lT,dT,cT,pT,hT,uT,mT,xt,zb,Mb,Fb,Hb,Nb,Bb,Db,qb,vT,Ub,ar,lc,dc,Vb,ac,re=class extends(mT=g,uT=[u()],hT=[u()],pT=[u({attribute:"default-value"})],cT=[u({type:Boolean,reflect:!0})],dT=[u({type:Boolean,reflect:!0,attribute:"read-only"})],lT=[u({type:Boolean,reflect:!0})],aT=[k()],nT=[bt({context:sc}),k()],mT){constructor(){super(...arguments);s(this,ar);s(this,zb,i(xt,8,this)),i(xt,11,this);s(this,Mb,i(xt,12,this)),i(xt,15,this);s(this,Fb,i(xt,16,this)),i(xt,19,this);s(this,Hb,i(xt,20,this,!1)),i(xt,23,this);s(this,Nb,i(xt,24,this,!1)),i(xt,27,this);s(this,Bb,i(xt,28,this,!1)),i(xt,31,this);s(this,Db,i(xt,32,this)),i(xt,35,this);s(this,lc,()=>this.value??r(this,ar,vT));s(this,dc,t=>{this.disabled||this.readOnly||(this.value===void 0&&h(this,ar,t,Ub),this.dispatchEvent(fT({value:t})))});s(this,Vb,i(xt,36,this,m(this,ar,ac).call(this))),i(xt,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,ar,this.defaultValue,Ub),this._ctx=m(this,ar,ac).call(this)}willUpdate(){this._ctx=m(this,ar,ac).call(this)}render(){return f`
|
|
5094
5204
|
<div
|
|
5095
5205
|
part="root"
|
|
5096
5206
|
role="radiogroup"
|
|
@@ -5100,7 +5210,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5100
5210
|
>
|
|
5101
5211
|
<slot></slot>
|
|
5102
5212
|
</div>
|
|
5103
|
-
`}};xt=S(
|
|
5213
|
+
`}};xt=S(mT),zb=new WeakMap,Mb=new WeakMap,Fb=new WeakMap,Hb=new WeakMap,Nb=new WeakMap,Bb=new WeakMap,Db=new WeakMap,ar=new WeakSet,lc=new WeakMap,dc=new WeakMap,Vb=new WeakMap,ac=function(){return{name:this.name,value:r(this,lc).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:r(this,dc)}},d(xt,4,"name",uT,re,zb),d(xt,4,"value",hT,re,Mb),d(xt,4,"defaultValue",pT,re,Fb),d(xt,4,"disabled",cT,re,Hb),d(xt,4,"readOnly",dT,re,Nb),d(xt,4,"required",lT,re,Bb),qb=d(xt,20,"#internalValue",aT,ar,Db),vT=qb.get,Ub=qb.set,d(xt,4,"_ctx",nT,re,Vb),C(xt,re),b(re,"tagName","dui-radio-group"),b(re,"styles",[y,cL]);var pL=c`
|
|
5104
5214
|
:host {
|
|
5105
5215
|
display: block;
|
|
5106
5216
|
position: relative;
|
|
@@ -5196,62 +5306,62 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5196
5306
|
height: 100%;
|
|
5197
5307
|
min-width: 1.25rem;
|
|
5198
5308
|
}
|
|
5199
|
-
`,
|
|
5309
|
+
`,gT,bT,yT,xT,wT,kT,CT,ST,ET,$T,TT,RT,IT,J,jb,Kb,Wb,Gb,Yb,cc,AT,O,Xb,Qb,pc,_T,Jb,Zb,hy,uy,ty,ey,hc,my,ry,oy,fy,OT,iy,sy,vy,LT,ny,ay,PT,zT,ly,dy,MT,FT,cy,py,gy,HT,uc,to,ps,hs,fi,vi,gi,bi,Ro,NT,BT,yi,Rn,mc,In,An,_n,On,Ln,Pn,DT,qT,Ir=class Ir extends(IT=g,RT=[u({reflect:!0})],TT=[u({type:Boolean,reflect:!0})],$T=[u({attribute:"max-height"})],ET=[k()],ST=[k()],CT=[k()],kT=[k()],wT=[k()],xT=[k()],yT=[k()],bT=[k()],gT=[k()],IT){constructor(){super(...arguments);s(this,O);s(this,jb,i(J,8,this,"vertical")),i(J,11,this);s(this,Kb,i(J,12,this,!1)),i(J,15,this);s(this,Wb,i(J,16,this)),i(J,19,this);s(this,Gb,i(J,20,this,!1)),i(J,23,this);s(this,Xb,i(J,24,this,!1)),i(J,27,this);s(this,Jb,i(J,28,this,!1)),i(J,31,this);s(this,ty,i(J,32,this,!1)),i(J,35,this);s(this,ry,i(J,36,this,0)),i(J,39,this);s(this,iy,i(J,40,this,0)),i(J,43,this);s(this,ny,i(J,44,this,0)),i(J,47,this);s(this,ly,i(J,48,this,0)),i(J,51,this);s(this,cy,i(J,52,this,!0)),i(J,55,this);s(this,to,!0);s(this,ps,0);s(this,hs);s(this,fi);s(this,vi);s(this,gi,0);s(this,bi,0);s(this,yi,()=>{let t=r(this,O,Ro);if(!t)return;let e=t.scrollHeight>t.clientHeight,a=t.scrollWidth>t.clientWidth;h(this,O,e,_T),h(this,O,a,AT),e&&h(this,O,t.clientHeight/t.scrollHeight*100,OT),a&&h(this,O,t.clientWidth/t.scrollWidth*100,LT),r(this,Rn).call(this,t)});s(this,Rn,t=>{if(r(this,O,pc)){let e=t.scrollHeight-t.clientHeight;h(this,O,e>0?t.scrollTop/e*(100-r(this,O,fy)):0,zT)}if(r(this,O,cc)){let e=t.scrollWidth-t.clientWidth;h(this,O,e>0?t.scrollLeft/e*(100-r(this,O,vy)):0,FT)}});s(this,mc,()=>{let t=r(this,O,Ro);if(!t)return;h(this,O,!0,my),r(this,Rn).call(this,t);let e=r(this,to),a=t.scrollTop<r(this,ps);h(this,O,t.scrollTop<=0,HT),h(this,to,t.scrollTop+t.clientHeight>=t.scrollHeight-r(Ir,uc)),a&&e&&!r(this,to)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&r(this,to)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),h(this,ps,t.scrollTop),clearTimeout(r(this,hs)),h(this,hs,setTimeout(()=>{h(this,O,!1,my)},1e3))});s(this,In,()=>{h(this,O,!0,uy),r(this,yi).call(this)});s(this,An,()=>{h(this,O,!1,uy)});s(this,_n,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,O,Ro);if(a)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let p=l.getBoundingClientRect(),v=(e.clientY-p.top)/p.height;a.scrollTop=v*(a.scrollHeight-a.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let p=l.getBoundingClientRect(),v=(e.clientX-p.left)/p.width;a.scrollLeft=v*(a.scrollWidth-a.clientWidth)}});s(this,On,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,O,Ro);a&&(h(this,vi,t),t==="vertical"?(h(this,gi,e.clientY),h(this,bi,a.scrollTop)):(h(this,gi,e.clientX),h(this,bi,a.scrollLeft)),document.addEventListener("pointermove",r(this,Ln)),document.addEventListener("pointerup",r(this,Pn)))});s(this,Ln,t=>{let e=r(this,O,Ro);if(!(!e||!r(this,vi)))if(r(this,vi)==="vertical"){let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!a)return;let l=t.clientY-r(this,gi),p=a.clientHeight,v=e.scrollHeight-e.clientHeight;e.scrollTop=r(this,bi)+l/p*v}else{let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!a)return;let l=t.clientX-r(this,gi),p=a.clientWidth,v=e.scrollWidth-e.clientWidth;e.scrollLeft=r(this,bi)+l/p*v}});s(this,Pn,()=>{h(this,vi,void 0),document.removeEventListener("pointermove",r(this,Ln)),document.removeEventListener("pointerup",r(this,Pn))})}willUpdate(t){t.has("maxHeight")&&(this.maxHeight?this.style.setProperty("--scroll-area-max-height",this.maxHeight):this.style.removeProperty("--scroll-area-max-height"))}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerenter",r(this,In)),this.addEventListener("pointerleave",r(this,An))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",r(this,In)),this.removeEventListener("pointerleave",r(this,An)),r(this,fi)?.disconnect(),clearTimeout(r(this,hs))}firstUpdated(){let t=r(this,O,Ro);if(!t)return;h(this,fi,new ResizeObserver(()=>r(this,yi).call(this))),r(this,fi).observe(t);let e=t.querySelector("slot");if(e){let a=()=>{for(let l of e.assignedElements())r(this,fi).observe(l)};e.addEventListener("slotchange",()=>{a(),requestAnimationFrame(()=>r(this,yi).call(this))}),a()}r(this,yi).call(this)}async scrollToBottom(){await this.updateComplete;let t=r(this,O,Ro);t&&(t.scrollTop=t.scrollHeight,h(this,to,!0),h(this,ps,t.scrollTop))}get isAtTop(){return r(this,O,gy)}get isAtBottom(){return r(this,to)}render(){return f`
|
|
5200
5310
|
<div
|
|
5201
5311
|
class="ScrollArea"
|
|
5202
5312
|
part="root"
|
|
5203
|
-
?data-has-overflow-x="${r(this,O,
|
|
5204
|
-
?data-has-overflow-y="${r(this,O,
|
|
5205
|
-
?data-scrolling="${r(this,O,
|
|
5313
|
+
?data-has-overflow-x="${r(this,O,cc)}"
|
|
5314
|
+
?data-has-overflow-y="${r(this,O,pc)}"
|
|
5315
|
+
?data-scrolling="${r(this,O,hc)}"
|
|
5206
5316
|
>
|
|
5207
|
-
${this.fade?
|
|
5317
|
+
${this.fade?f`<div
|
|
5208
5318
|
class="ScrollFade"
|
|
5209
|
-
?data-scrolled="${!r(this,O,
|
|
5319
|
+
?data-scrolled="${!r(this,O,gy)}"
|
|
5210
5320
|
></div>`:T}
|
|
5211
|
-
<div class="Viewport" part="viewport" @scroll="${r(this,
|
|
5321
|
+
<div class="Viewport" part="viewport" @scroll="${r(this,mc)}">
|
|
5212
5322
|
<slot></slot>
|
|
5213
5323
|
</div>
|
|
5214
|
-
${m(this,O,
|
|
5324
|
+
${m(this,O,DT).call(this)} ${m(this,O,qT).call(this)}
|
|
5215
5325
|
</div>
|
|
5216
|
-
`}};
|
|
5326
|
+
`}};J=S(IT),jb=new WeakMap,Kb=new WeakMap,Wb=new WeakMap,Gb=new WeakMap,O=new WeakSet,Xb=new WeakMap,Jb=new WeakMap,ty=new WeakMap,ry=new WeakMap,iy=new WeakMap,ny=new WeakMap,ly=new WeakMap,cy=new WeakMap,uc=new WeakMap,to=new WeakMap,ps=new WeakMap,hs=new WeakMap,fi=new WeakMap,vi=new WeakMap,gi=new WeakMap,bi=new WeakMap,Ro=function(){return this.shadowRoot?.querySelector(".Viewport")??null},NT=function(){return this.orientation==="vertical"||this.orientation==="both"},BT=function(){return this.orientation==="horizontal"||this.orientation==="both"},yi=new WeakMap,Rn=new WeakMap,mc=new WeakMap,In=new WeakMap,An=new WeakMap,_n=new WeakMap,On=new WeakMap,Ln=new WeakMap,Pn=new WeakMap,DT=function(){return!r(this,O,NT)||!r(this,O,pc)?T:f`
|
|
5217
5327
|
<div
|
|
5218
5328
|
class="Scrollbar"
|
|
5219
5329
|
part="scrollbar-vertical"
|
|
5220
5330
|
data-orientation="vertical"
|
|
5221
|
-
?data-hovering="${r(this,O,
|
|
5222
|
-
?data-scrolling="${r(this,O,
|
|
5223
|
-
@pointerdown="${t=>r(this,
|
|
5331
|
+
?data-hovering="${r(this,O,hy)}"
|
|
5332
|
+
?data-scrolling="${r(this,O,hc)}"
|
|
5333
|
+
@pointerdown="${t=>r(this,_n).call(this,"vertical",t)}"
|
|
5224
5334
|
>
|
|
5225
5335
|
<div
|
|
5226
5336
|
class="Thumb"
|
|
5227
5337
|
part="thumb-vertical"
|
|
5228
5338
|
data-orientation="vertical"
|
|
5229
|
-
style="height: ${r(this,O,
|
|
5230
|
-
@pointerdown="${t=>r(this,
|
|
5339
|
+
style="height: ${r(this,O,fy)}%; top: ${r(this,O,PT)}%; position: absolute;"
|
|
5340
|
+
@pointerdown="${t=>r(this,On).call(this,"vertical",t)}"
|
|
5231
5341
|
></div>
|
|
5232
5342
|
</div>
|
|
5233
|
-
`},
|
|
5343
|
+
`},qT=function(){return!r(this,O,BT)||!r(this,O,cc)?T:f`
|
|
5234
5344
|
<div
|
|
5235
5345
|
class="Scrollbar"
|
|
5236
5346
|
part="scrollbar-horizontal"
|
|
5237
5347
|
data-orientation="horizontal"
|
|
5238
|
-
?data-hovering="${r(this,O,
|
|
5239
|
-
?data-scrolling="${r(this,O,
|
|
5240
|
-
@pointerdown="${t=>r(this,
|
|
5348
|
+
?data-hovering="${r(this,O,hy)}"
|
|
5349
|
+
?data-scrolling="${r(this,O,hc)}"
|
|
5350
|
+
@pointerdown="${t=>r(this,_n).call(this,"horizontal",t)}"
|
|
5241
5351
|
>
|
|
5242
5352
|
<div
|
|
5243
5353
|
class="Thumb"
|
|
5244
5354
|
part="thumb-horizontal"
|
|
5245
5355
|
data-orientation="horizontal"
|
|
5246
|
-
style="width: ${r(this,O,
|
|
5247
|
-
@pointerdown="${t=>r(this,
|
|
5356
|
+
style="width: ${r(this,O,vy)}%; left: ${r(this,O,MT)}%; position: absolute;"
|
|
5357
|
+
@pointerdown="${t=>r(this,On).call(this,"horizontal",t)}"
|
|
5248
5358
|
></div>
|
|
5249
5359
|
</div>
|
|
5250
|
-
`},d(
|
|
5360
|
+
`},d(J,4,"orientation",RT,Ir,jb),d(J,4,"fade",TT,Ir,Kb),d(J,4,"maxHeight",$T,Ir,Wb),Yb=d(J,20,"#hasOverflowX",ET,O,Gb),cc=Yb.get,AT=Yb.set,Qb=d(J,20,"#hasOverflowY",ST,O,Xb),pc=Qb.get,_T=Qb.set,Zb=d(J,20,"#hovering",CT,O,Jb),hy=Zb.get,uy=Zb.set,ey=d(J,20,"#scrolling",kT,O,ty),hc=ey.get,my=ey.set,oy=d(J,20,"#thumbHeightPercent",wT,O,ry),fy=oy.get,OT=oy.set,sy=d(J,20,"#thumbWidthPercent",xT,O,iy),vy=sy.get,LT=sy.set,ay=d(J,20,"#thumbTopPercent",yT,O,ny),PT=ay.get,zT=ay.set,dy=d(J,20,"#thumbLeftPercent",bT,O,ly),MT=dy.get,FT=dy.set,py=d(J,20,"#isAtTop",gT,O,cy),gy=py.get,HT=py.set,C(J,Ir),b(Ir,"tagName","dui-scroll-area"),b(Ir,"styles",[y,pL]),s(Ir,uc,1);var Tn=Ir;var hL=_("value-change",{bubbles:!0,composed:!0}),uL=c`
|
|
5251
5361
|
:host {
|
|
5252
5362
|
display: block;
|
|
5253
5363
|
}
|
|
5254
|
-
`,
|
|
5364
|
+
`,mL=c`
|
|
5255
5365
|
.Trigger {
|
|
5256
5366
|
display: flex;
|
|
5257
5367
|
align-items: center;
|
|
@@ -5276,7 +5386,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5276
5386
|
.Icon {
|
|
5277
5387
|
flex-shrink: 0;
|
|
5278
5388
|
}
|
|
5279
|
-
`,
|
|
5389
|
+
`,fL=[c`
|
|
5280
5390
|
.Popup {
|
|
5281
5391
|
max-height: 240px;
|
|
5282
5392
|
overflow-y: auto;
|
|
@@ -5312,7 +5422,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5312
5422
|
.ItemText {
|
|
5313
5423
|
flex: 1;
|
|
5314
5424
|
}
|
|
5315
|
-
`],
|
|
5425
|
+
`],VT,UT,jT,KT,WT,GT,YT,XT,At,by,yy,xy,wy,ky,Cy,Sy,Ey,xi,Io,U,fc,wi,Lt,zn,$y,Ty,QT,JT,vc,gc,bc,yc,xc,Ry,Mn,Iy,wc,me=class extends(XT=g,YT=[u({attribute:!1})],GT=[u({type:String})],WT=[u({type:String})],KT=[u({type:Boolean,reflect:!0})],jT=[u({type:String})],UT=[ot({context:Ce,subscribe:!0}),k()],VT=[k()],XT){constructor(){super(...arguments);s(this,U);s(this,by,i(At,8,this,[])),i(At,11,this);s(this,yy,i(At,12,this,"")),i(At,15,this);s(this,xy,i(At,16,this,"Select...")),i(At,19,this);s(this,wy,i(At,20,this,!1)),i(At,23,this);s(this,ky,i(At,24,this,"")),i(At,27,this);s(this,Cy,i(At,28,this)),i(At,31,this);s(this,Sy,i(At,32,this,-1)),i(At,35,this);s(this,fc,`select-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,wi,`select-listbox-${crypto.randomUUID().slice(0,8)}`);s(this,Lt,new le(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),styles:fL,onOpen:()=>{h(this,U,r(this,U,QT),Io)},onClose:()=>{h(this,U,-1,Io),this._fieldCtx?.markTouched()},renderPopup:t=>f`
|
|
5316
5426
|
<div
|
|
5317
5427
|
class="Popup"
|
|
5318
5428
|
?data-starting-style="${t.isStarting}"
|
|
@@ -5320,49 +5430,49 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5320
5430
|
>
|
|
5321
5431
|
<div
|
|
5322
5432
|
class="Listbox"
|
|
5323
|
-
id="${r(this,
|
|
5433
|
+
id="${r(this,wi)}"
|
|
5324
5434
|
role="listbox"
|
|
5325
5435
|
aria-labelledby="${this._fieldCtx?.labelId??""}"
|
|
5326
|
-
@mousedown="${r(this,
|
|
5436
|
+
@mousedown="${r(this,bc)}"
|
|
5327
5437
|
>
|
|
5328
|
-
${
|
|
5438
|
+
${vo(this.options,e=>e.value,r(this,wc))}
|
|
5329
5439
|
</div>
|
|
5330
5440
|
</div>
|
|
5331
|
-
`}));s(this,
|
|
5441
|
+
`}));s(this,vc,t=>{t.stopPropagation(),!r(this,U,zn)&&(r(this,Lt).isOpen?r(this,Lt).close():r(this,Lt).open())});s(this,gc,t=>{if(!r(this,U,zn))switch(t.key){case"Enter":case" ":{if(t.preventDefault(),r(this,Lt).isOpen){let e=this.options[r(this,U,xi)];e&&!e.disabled&&m(this,U,Ry).call(this,e)}else r(this,Lt).open();break}case"ArrowDown":{t.preventDefault(),r(this,Lt).isOpen?h(this,U,m(this,U,Mn).call(this,r(this,U,xi),1),Io):r(this,Lt).open();break}case"ArrowUp":{t.preventDefault(),r(this,Lt).isOpen?h(this,U,m(this,U,Mn).call(this,r(this,U,xi),-1),Io):r(this,Lt).open();break}case"Home":{r(this,Lt).isOpen&&(t.preventDefault(),h(this,U,m(this,U,Mn).call(this,-1,1),Io));break}case"End":{r(this,Lt).isOpen&&(t.preventDefault(),h(this,U,m(this,U,Mn).call(this,this.options.length,-1),Io));break}case"Escape":{r(this,Lt).isOpen&&(t.preventDefault(),r(this,Lt).close(),m(this,U,Iy).call(this));break}case"Tab":{r(this,Lt).isOpen&&r(this,Lt).close();break}}});s(this,bc,t=>{t.preventDefault()});s(this,yc,t=>{t.disabled||m(this,U,Ry).call(this,t)});s(this,xc,t=>{this.options[t]?.disabled||h(this,U,t,Io)});s(this,wc,(t,e)=>{let a=t.value===this.value,l=e===r(this,U,xi);return f`
|
|
5332
5442
|
<div
|
|
5333
5443
|
class="Item"
|
|
5334
5444
|
role="option"
|
|
5335
|
-
id="${r(this,
|
|
5445
|
+
id="${r(this,wi)}-option-${e}"
|
|
5336
5446
|
aria-selected="${a}"
|
|
5337
5447
|
?data-selected="${a}"
|
|
5338
5448
|
?data-highlighted="${l}"
|
|
5339
5449
|
?data-disabled="${t.disabled}"
|
|
5340
|
-
@click="${()=>r(this,
|
|
5341
|
-
@mouseenter="${()=>r(this,
|
|
5450
|
+
@click="${()=>r(this,yc).call(this,t)}"
|
|
5451
|
+
@mouseenter="${()=>r(this,xc).call(this,e)}"
|
|
5342
5452
|
>
|
|
5343
5453
|
<span class="ItemIndicator">
|
|
5344
|
-
${a?
|
|
5454
|
+
${a?f`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:T}
|
|
5345
5455
|
</span>
|
|
5346
5456
|
<span class="ItemText">${t.label}</span>
|
|
5347
5457
|
</div>
|
|
5348
|
-
`})}render(){let t=this.value!==""&&r(this,
|
|
5458
|
+
`})}render(){let t=this.value!==""&&r(this,U,Ty)!=null;return f`
|
|
5349
5459
|
<div
|
|
5350
5460
|
class="Trigger"
|
|
5351
5461
|
part="trigger"
|
|
5352
|
-
id="${r(this,
|
|
5462
|
+
id="${r(this,fc)}"
|
|
5353
5463
|
role="combobox"
|
|
5354
|
-
tabindex="${r(this,
|
|
5464
|
+
tabindex="${r(this,U,zn)?-1:0}"
|
|
5355
5465
|
aria-haspopup="listbox"
|
|
5356
5466
|
aria-expanded="${r(this,Lt).isOpen}"
|
|
5357
|
-
aria-controls="${r(this,
|
|
5358
|
-
aria-activedescendant="${r(this,
|
|
5467
|
+
aria-controls="${r(this,wi)}"
|
|
5468
|
+
aria-activedescendant="${r(this,U,xi)>=0?`${r(this,wi)}-option-${r(this,U,xi)}`:T}"
|
|
5359
5469
|
aria-labelledby="${this._fieldCtx?.labelId??""}"
|
|
5360
|
-
aria-invalid="${r(this,
|
|
5361
|
-
?data-disabled="${r(this,
|
|
5362
|
-
?data-invalid="${r(this,
|
|
5470
|
+
aria-invalid="${r(this,U,$y)}"
|
|
5471
|
+
?data-disabled="${r(this,U,zn)}"
|
|
5472
|
+
?data-invalid="${r(this,U,$y)}"
|
|
5363
5473
|
?data-open="${r(this,Lt).isOpen}"
|
|
5364
|
-
@click="${r(this,
|
|
5365
|
-
@keydown="${r(this,
|
|
5474
|
+
@click="${r(this,vc)}"
|
|
5475
|
+
@keydown="${r(this,gc)}"
|
|
5366
5476
|
@focus="${()=>this._fieldCtx?.setFocused(!0)}"
|
|
5367
5477
|
@blur="${()=>this._fieldCtx?.setFocused(!1)}"
|
|
5368
5478
|
>
|
|
@@ -5371,15 +5481,15 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5371
5481
|
part="value"
|
|
5372
5482
|
?data-placeholder="${!t}"
|
|
5373
5483
|
>
|
|
5374
|
-
${t?r(this,
|
|
5484
|
+
${t?r(this,U,JT):this.placeholder}
|
|
5375
5485
|
</span>
|
|
5376
5486
|
<span class="Icon">
|
|
5377
5487
|
<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>
|
|
5378
5488
|
</span>
|
|
5379
5489
|
</div>
|
|
5380
5490
|
|
|
5381
|
-
${this.name?
|
|
5382
|
-
`}};
|
|
5491
|
+
${this.name?f`<input type="hidden" name="${this.name}" .value="${this.value}" />`:T}
|
|
5492
|
+
`}};At=S(XT),by=new WeakMap,yy=new WeakMap,xy=new WeakMap,wy=new WeakMap,ky=new WeakMap,Cy=new WeakMap,Sy=new WeakMap,U=new WeakSet,fc=new WeakMap,wi=new WeakMap,Lt=new WeakMap,zn=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},$y=function(){return this._fieldCtx?.invalid??!1},Ty=function(){return this.options.find(t=>t.value===this.value)},QT=function(){return this.options.findIndex(t=>t.value===this.value)},JT=function(){return r(this,U,Ty)?.label??""},vc=new WeakMap,gc=new WeakMap,bc=new WeakMap,yc=new WeakMap,xc=new WeakMap,Ry=function(t){this.value=t.value,this._fieldCtx?.markDirty(),this._fieldCtx?.setFilled(this.value.length>0),this.dispatchEvent(hL({value:t.value,option:t})),r(this,Lt).close(),m(this,U,Iy).call(this)},Mn=function(t,e){let a=this.options.length,l=t+e;for(;l>=0&&l<a;){if(!this.options[l].disabled)return l;l+=e}return t},Iy=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},wc=new WeakMap,d(At,4,"options",YT,me,by),d(At,4,"value",GT,me,yy),d(At,4,"placeholder",WT,me,xy),d(At,4,"disabled",KT,me,wy),d(At,4,"name",jT,me,ky),d(At,4,"_fieldCtx",UT,me,Cy),Ey=d(At,20,"#highlightedIndex",VT,U,Sy),xi=Ey.get,Io=Ey.set,C(At,me),b(me,"tagName","dui-select"),b(me,"styles",[y,uL,mL]);var vL=c`
|
|
5383
5493
|
:host {
|
|
5384
5494
|
display: block;
|
|
5385
5495
|
}
|
|
@@ -5394,19 +5504,19 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5394
5504
|
margin: 0;
|
|
5395
5505
|
padding: 0;
|
|
5396
5506
|
}
|
|
5397
|
-
`,
|
|
5507
|
+
`,ZT,tR,kc,Ay,eo=class extends(tR=g,ZT=[u({reflect:!0})],tR){constructor(){super(...arguments);s(this,Ay,i(kc,8,this,"horizontal")),i(kc,11,this)}render(){return f`
|
|
5398
5508
|
<div
|
|
5399
5509
|
part="root"
|
|
5400
5510
|
role="separator"
|
|
5401
5511
|
aria-orientation="${this.orientation}"
|
|
5402
5512
|
></div>
|
|
5403
|
-
`}};
|
|
5513
|
+
`}};kc=S(tR),Ay=new WeakMap,d(kc,4,"orientation",ZT,eo,Ay),C(kc,eo),b(eo,"tagName","dui-separator"),b(eo,"styles",[y,vL]);var Ar=Symbol("dui-sidebar");var pR=_("open-change",{bubbles:!0,composed:!0}),gL=c`
|
|
5404
5514
|
:host {
|
|
5405
5515
|
display: flex;
|
|
5406
5516
|
width: 100%;
|
|
5407
5517
|
height: 100%;
|
|
5408
5518
|
}
|
|
5409
|
-
`,
|
|
5519
|
+
`,eR,rR,oR,iR,sR,nR,aR,lR,dR,cR,gt,_y,Oy,Ly,Py,zy,My,Fy,hR,Vy,dt,Hy,Ny,Uy,Cc,By,Dy,Fn,jy,Ao,ki,Ci,Sc,Hn,Nn,$c,Tc,qy,Ec,fe=class extends(cR=g,dR=[u({type:Boolean})],lR=[u({type:Boolean,attribute:"default-open"})],aR=[u({reflect:!0})],nR=[u({reflect:!0})],sR=[u({reflect:!0})],iR=[k()],oR=[k()],rR=[k()],eR=[bt({context:Ar}),k()],cR){constructor(){super(...arguments);s(this,dt);s(this,_y,i(gt,8,this)),i(gt,11,this);s(this,Oy,i(gt,12,this,!0)),i(gt,15,this);s(this,Ly,i(gt,16,this,"left")),i(gt,19,this);s(this,Py,i(gt,20,this,"")),i(gt,23,this);s(this,zy,i(gt,24,this,"offcanvas")),i(gt,27,this);s(this,My,i(gt,28,this,!0)),i(gt,31,this);s(this,Hy,i(gt,32,this,!1)),i(gt,35,this);s(this,By,i(gt,36,this,!1)),i(gt,39,this);s(this,Ao);s(this,ki);s(this,Ci);s(this,Hn,t=>{r(this,dt,Fn)?h(this,dt,t,Cc):(this.open===void 0&&h(this,dt,t,Vy),this.dispatchEvent(pR({open:t})))});s(this,Nn,()=>{r(this,dt,Fn)?h(this,dt,!r(this,dt,Uy),Cc):r(this,Hn).call(this,!r(this,dt,Sc))});s(this,$c,t=>{h(this,dt,!t.matches,jy),r(this,dt,Fn)||h(this,dt,!1,Cc)});s(this,Tc,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),r(this,Nn).call(this))});s(this,qy,i(gt,40,this,m(this,dt,Ec).call(this))),i(gt,43,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&h(this,dt,this.defaultOpen,Vy),h(this,Ao,matchMedia("(min-width: 768px)")),h(this,dt,!r(this,Ao).matches,jy),h(this,ki,r(this,$c).bind(this)),r(this,Ao).addEventListener("change",r(this,ki)),h(this,Ci,r(this,Tc).bind(this)),document.addEventListener("keydown",r(this,Ci)),this._ctx=m(this,dt,Ec).call(this)}disconnectedCallback(){super.disconnectedCallback(),r(this,Ao)&&r(this,ki)&&r(this,Ao).removeEventListener("change",r(this,ki)),r(this,Ci)&&document.removeEventListener("keydown",r(this,Ci))}willUpdate(){this._ctx=m(this,dt,Ec).call(this)}render(){return f`<slot></slot>`}};gt=S(cR),_y=new WeakMap,Oy=new WeakMap,Ly=new WeakMap,Py=new WeakMap,zy=new WeakMap,My=new WeakMap,dt=new WeakSet,Hy=new WeakMap,By=new WeakMap,Ao=new WeakMap,ki=new WeakMap,Ci=new WeakMap,Sc=function(){return this.open??r(this,dt,hR)},Hn=new WeakMap,Nn=new WeakMap,$c=new WeakMap,Tc=new WeakMap,qy=new WeakMap,Ec=function(){return{state:r(this,dt,Sc)?"expanded":"collapsed",open:r(this,dt,Sc),openMobile:r(this,dt,Uy),isMobile:r(this,dt,Fn),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:r(this,Hn),toggleSidebar:r(this,Nn)}},d(gt,4,"open",dR,fe,_y),d(gt,4,"defaultOpen",lR,fe,Oy),d(gt,4,"side",aR,fe,Ly),d(gt,4,"variant",nR,fe,Py),d(gt,4,"collapsible",sR,fe,zy),Fy=d(gt,20,"#internalOpen",iR,dt,My),hR=Fy.get,Vy=Fy.set,Ny=d(gt,20,"#openMobile",oR,dt,Hy),Uy=Ny.get,Cc=Ny.set,Dy=d(gt,20,"#isMobile",rR,dt,By),Fn=Dy.get,jy=Dy.set,d(gt,4,"_ctx",eR,fe,qy),C(gt,fe),b(fe,"tagName","dui-sidebar-provider"),b(fe,"styles",[y,gL]);var bL=c`
|
|
5410
5520
|
:host {
|
|
5411
5521
|
display: block;
|
|
5412
5522
|
flex-shrink: 0;
|
|
@@ -5492,13 +5602,13 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5492
5602
|
.MobilePanel[data-ending-style] {
|
|
5493
5603
|
transform: translateX(var(--mobile-end-x));
|
|
5494
5604
|
}
|
|
5495
|
-
`,
|
|
5605
|
+
`,uR,mR,fR,vR,_r,Ky,Wy,Rc,Jy,pt,Gy,Yy,Zy,tx,Xy,Qy,Ic,ex,Si,gR,bR,rx,Ac,_c,_o=class extends(vR=g,fR=[k()],mR=[k()],uR=[k()],vR){constructor(){super(...arguments);s(this,pt);s(this,Ky,i(_r,8,this,!1)),i(_r,11,this);s(this,Gy,i(_r,12,this,!1)),i(_r,15,this);s(this,Xy,i(_r,16,this,!1)),i(_r,19,this);s(this,Si,new q(this,{context:Ar,subscribe:!0}));s(this,Ac,()=>{r(this,Si).value?.setOpen(!1)});s(this,_c,t=>{t.key==="Escape"&&(t.preventDefault(),r(this,Si).value?.setOpen(!1))})}willUpdate(){let t=r(this,Si).value;t&&(this.dataset.state=t.state,this.dataset.side=t.side,this.dataset.variant=t.variant,this.dataset.collapsible=t.collapsible,t.isMobile&&(t.openMobile&&!r(this,pt,Rc)?m(this,pt,gR).call(this):!t.openMobile&&r(this,pt,Rc)&&!r(this,pt,Ic)&&m(this,pt,bR).call(this)))}render(){let t=r(this,Si).value;if(!t)return f``;let a=t.side==="left"?"-100%":"100%";return t.isMobile?r(this,pt,Rc)?f`
|
|
5496
5606
|
<div
|
|
5497
5607
|
class="Backdrop"
|
|
5498
5608
|
part="backdrop"
|
|
5499
|
-
?data-starting-style=${r(this,pt,
|
|
5500
|
-
?data-ending-style=${r(this,pt,
|
|
5501
|
-
@click=${r(this,
|
|
5609
|
+
?data-starting-style=${r(this,pt,Zy)}
|
|
5610
|
+
?data-ending-style=${r(this,pt,Ic)}
|
|
5611
|
+
@click=${r(this,Ac)}
|
|
5502
5612
|
></div>
|
|
5503
5613
|
<div
|
|
5504
5614
|
class="MobilePanel"
|
|
@@ -5506,29 +5616,29 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5506
5616
|
role="dialog"
|
|
5507
5617
|
tabindex="-1"
|
|
5508
5618
|
style="--mobile-start-x: ${a}; --mobile-end-x: ${a}"
|
|
5509
|
-
?data-starting-style=${r(this,pt,
|
|
5510
|
-
?data-ending-style=${r(this,pt,
|
|
5511
|
-
@keydown=${r(this,
|
|
5619
|
+
?data-starting-style=${r(this,pt,Zy)}
|
|
5620
|
+
?data-ending-style=${r(this,pt,Ic)}
|
|
5621
|
+
@keydown=${r(this,_c)}
|
|
5512
5622
|
>
|
|
5513
5623
|
<slot></slot>
|
|
5514
5624
|
</div>
|
|
5515
|
-
`:
|
|
5625
|
+
`:f``:t.collapsible==="none"?f`
|
|
5516
5626
|
<div class="DesktopOuter" part="desktop-outer">
|
|
5517
5627
|
<div class="DesktopInner" part="desktop-inner">
|
|
5518
5628
|
<slot></slot>
|
|
5519
5629
|
</div>
|
|
5520
5630
|
</div>
|
|
5521
|
-
`:
|
|
5631
|
+
`:f`
|
|
5522
5632
|
<div class="DesktopOuter" part="desktop-outer">
|
|
5523
5633
|
<div class="DesktopInner" part="desktop-inner">
|
|
5524
5634
|
<slot></slot>
|
|
5525
5635
|
</div>
|
|
5526
5636
|
</div>
|
|
5527
|
-
`}};
|
|
5637
|
+
`}};_r=S(vR),Ky=new WeakMap,pt=new WeakSet,Gy=new WeakMap,Xy=new WeakMap,Si=new WeakMap,gR=async function(){h(this,pt,!0,Jy),h(this,pt,!0,tx),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,pt,!1,tx)},bR=function(){h(this,pt,!0,ex);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){m(this,pt,rx).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(p),m(this,pt,rx).call(this))},l=()=>{a()};t.addEventListener("transitionend",l);let p=setTimeout(a,250)},rx=function(){h(this,pt,!1,ex),h(this,pt,!1,Jy)},Ac=new WeakMap,_c=new WeakMap,Wy=d(_r,20,"#mounted",fR,pt,Ky),Rc=Wy.get,Jy=Wy.set,Yy=d(_r,20,"#startingStyle",mR,pt,Gy),Zy=Yy.get,tx=Yy.set,Qy=d(_r,20,"#endingStyle",uR,pt,Xy),Ic=Qy.get,ex=Qy.set,C(_r,_o),b(_o,"tagName","dui-sidebar"),b(_o,"styles",[y,bL]);var yL=c`
|
|
5528
5638
|
:host {
|
|
5529
5639
|
display: inline-block;
|
|
5530
5640
|
}
|
|
5531
|
-
`,
|
|
5641
|
+
`,xL=f`<svg
|
|
5532
5642
|
viewBox="0 0 24 24"
|
|
5533
5643
|
fill="none"
|
|
5534
5644
|
stroke="currentColor"
|
|
@@ -5538,7 +5648,13 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5538
5648
|
>
|
|
5539
5649
|
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
5540
5650
|
<path d="M9 3v18" />
|
|
5541
|
-
</svg
|
|
5651
|
+
</svg>`,Bn=class extends g{static tagName="dui-sidebar-trigger";static styles=[y,yL];#t=new q(this,{context:Ar,subscribe:!0});#e=()=>{this.#t.value?.toggleSidebar()};render(){return f`
|
|
5652
|
+
<dui-button appearance="ghost" size="sm" @click=${this.#e}>
|
|
5653
|
+
<slot>
|
|
5654
|
+
<dui-icon>${xL}</dui-icon>
|
|
5655
|
+
</slot>
|
|
5656
|
+
</dui-button>
|
|
5657
|
+
`}};var wL=c`
|
|
5542
5658
|
:host {
|
|
5543
5659
|
display: flex;
|
|
5544
5660
|
flex-direction: column;
|
|
@@ -5546,24 +5662,31 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5546
5662
|
min-height: 0;
|
|
5547
5663
|
overflow: hidden;
|
|
5548
5664
|
}
|
|
5549
|
-
|
|
5665
|
+
`,Dn=class extends g{static tagName="dui-sidebar-content";static styles=[y,wL];render(){return f`
|
|
5666
|
+
<dui-scroll-area>
|
|
5667
|
+
<slot></slot>
|
|
5668
|
+
</dui-scroll-area>
|
|
5669
|
+
`}};var kL=c`
|
|
5550
5670
|
:host {
|
|
5551
5671
|
display: flex;
|
|
5552
5672
|
flex-direction: column;
|
|
5553
5673
|
}
|
|
5554
|
-
|
|
5674
|
+
`,qn=class extends g{static tagName="dui-sidebar-header";static styles=[y,kL];render(){return f`<slot></slot>`}};var CL=c`
|
|
5555
5675
|
:host {
|
|
5556
5676
|
display: flex;
|
|
5557
5677
|
flex-direction: column;
|
|
5558
5678
|
}
|
|
5559
|
-
|
|
5679
|
+
`,Vn=class extends g{static tagName="dui-sidebar-footer";static styles=[y,CL];render(){return f`<slot></slot>`}};var SL=c`
|
|
5560
5680
|
:host {
|
|
5561
5681
|
display: flex;
|
|
5562
5682
|
flex-direction: column;
|
|
5563
5683
|
position: relative;
|
|
5564
5684
|
overflow: hidden;
|
|
5565
5685
|
}
|
|
5566
|
-
|
|
5686
|
+
`,Un=class extends g{static tagName="dui-sidebar-group";static styles=[y,SL];render(){return f`
|
|
5687
|
+
<slot name="label"></slot>
|
|
5688
|
+
<slot></slot>
|
|
5689
|
+
`}};var EL=c`
|
|
5567
5690
|
:host {
|
|
5568
5691
|
display: flex;
|
|
5569
5692
|
align-items: center;
|
|
@@ -5575,7 +5698,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5575
5698
|
:host([data-icon-collapsed]) {
|
|
5576
5699
|
opacity: 0;
|
|
5577
5700
|
}
|
|
5578
|
-
|
|
5701
|
+
`,jn=class extends g{static tagName="dui-sidebar-group-label";static styles=[y,EL];#t=new q(this,{context:Ar,subscribe:!0});get#e(){let o=this.#t.value;return o?.collapsible==="icon"&&o?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return f`<slot></slot>`}};var $L=c`
|
|
5579
5702
|
.Menu {
|
|
5580
5703
|
display: flex;
|
|
5581
5704
|
flex-direction: column;
|
|
@@ -5583,11 +5706,15 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5583
5706
|
margin: 0;
|
|
5584
5707
|
padding: 0;
|
|
5585
5708
|
}
|
|
5586
|
-
|
|
5709
|
+
`,Kn=class extends g{static tagName="dui-sidebar-menu";static styles=[y,$L];render(){return f`
|
|
5710
|
+
<ul class="Menu" role="list">
|
|
5711
|
+
<slot></slot>
|
|
5712
|
+
</ul>
|
|
5713
|
+
`}};var TL=c`
|
|
5587
5714
|
:host {
|
|
5588
5715
|
display: list-item;
|
|
5589
5716
|
}
|
|
5590
|
-
|
|
5717
|
+
`,Wn=class extends g{static tagName="dui-sidebar-menu-item";static styles=[y,TL];render(){return f`<slot></slot>`}};var RL=c`
|
|
5591
5718
|
:host {
|
|
5592
5719
|
display: block;
|
|
5593
5720
|
}
|
|
@@ -5645,16 +5772,16 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5645
5772
|
:host([disabled]) .Button {
|
|
5646
5773
|
pointer-events: none;
|
|
5647
5774
|
}
|
|
5648
|
-
`,
|
|
5775
|
+
`,yR,xR,wR,kR,CR,Oe,ox,ix,sx,nx,Oc,je,ax,Lc,SR,ER,lx,Ue=class extends(CR=g,kR=[u({type:Boolean,reflect:!0})],wR=[u({type:Boolean,reflect:!0})],xR=[u()],yR=[u()],CR){constructor(){super(...arguments);s(this,je);s(this,ox,i(Oe,8,this,!1)),i(Oe,11,this);s(this,ix,i(Oe,12,this,!1)),i(Oe,15,this);s(this,sx,i(Oe,16,this,"")),i(Oe,19,this);s(this,nx,i(Oe,20,this)),i(Oe,23,this);s(this,Oc,new q(this,{context:Ar,subscribe:!0}));s(this,Lc,t=>{if(this.disabled){t.preventDefault();return}this.href&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("spa-navigate",{detail:{href:this.href},bubbles:!0,composed:!0})))})}render(){return r(this,je,ax)&&this.tooltip?f`
|
|
5649
5776
|
<dui-tooltip>
|
|
5650
5777
|
<dui-tooltip-trigger>
|
|
5651
|
-
${m(this,
|
|
5778
|
+
${m(this,je,lx).call(this)}
|
|
5652
5779
|
</dui-tooltip-trigger>
|
|
5653
5780
|
<dui-tooltip-popup side="right">
|
|
5654
5781
|
${this.tooltip}
|
|
5655
5782
|
</dui-tooltip-popup>
|
|
5656
5783
|
</dui-tooltip>
|
|
5657
|
-
`:m(this,
|
|
5784
|
+
`:m(this,je,lx).call(this)}};Oe=S(CR),ox=new WeakMap,ix=new WeakMap,sx=new WeakMap,nx=new WeakMap,Oc=new WeakMap,je=new WeakSet,ax=function(){let t=r(this,Oc).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},Lc=new WeakMap,SR=function(){return f`
|
|
5658
5785
|
<button
|
|
5659
5786
|
class="Button"
|
|
5660
5787
|
?disabled=${this.disabled}
|
|
@@ -5664,27 +5791,27 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5664
5791
|
<span class="Label"><slot></slot></span>
|
|
5665
5792
|
<span class="Suffix"><slot name="suffix"></slot></span>
|
|
5666
5793
|
</button>
|
|
5667
|
-
`},
|
|
5794
|
+
`},ER=function(){return f`
|
|
5668
5795
|
<a
|
|
5669
5796
|
class="Button"
|
|
5670
5797
|
href=${this.href??T}
|
|
5671
5798
|
aria-disabled=${this.disabled||T}
|
|
5672
5799
|
?data-active=${this.active}
|
|
5673
|
-
@click=${r(this,
|
|
5800
|
+
@click=${r(this,Lc)}
|
|
5674
5801
|
>
|
|
5675
5802
|
<slot name="icon"></slot>
|
|
5676
5803
|
<span class="Label"><slot></slot></span>
|
|
5677
5804
|
<span class="Suffix"><slot name="suffix"></slot></span>
|
|
5678
5805
|
</a>
|
|
5679
|
-
`},
|
|
5806
|
+
`},lx=function(){let t=r(this,je,ax);return f`
|
|
5680
5807
|
<div
|
|
5681
5808
|
class="Row"
|
|
5682
5809
|
?data-icon-collapsed=${t}
|
|
5683
5810
|
?data-active=${this.active}
|
|
5684
5811
|
>
|
|
5685
|
-
${this.href!==void 0?m(this,
|
|
5812
|
+
${this.href!==void 0?m(this,je,ER).call(this):m(this,je,SR).call(this)}
|
|
5686
5813
|
</div>
|
|
5687
|
-
`},d(
|
|
5814
|
+
`},d(Oe,4,"active",kR,Ue,ox),d(Oe,4,"disabled",wR,Ue,ix),d(Oe,4,"tooltip",xR,Ue,sx),d(Oe,4,"href",yR,Ue,nx),C(Oe,Ue),b(Ue,"tagName","dui-sidebar-menu-button"),b(Ue,"styles",[y,RL]);var IL=c`
|
|
5688
5815
|
:host {
|
|
5689
5816
|
display: block;
|
|
5690
5817
|
}
|
|
@@ -5692,7 +5819,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5692
5819
|
.Separator {
|
|
5693
5820
|
/* Structural only — height and color from theme */
|
|
5694
5821
|
}
|
|
5695
|
-
|
|
5822
|
+
`,Gn=class extends g{static tagName="dui-sidebar-separator";static styles=[y,IL];render(){return f`<div class="Separator" role="separator"></div>`}};var AL=c`
|
|
5696
5823
|
:host {
|
|
5697
5824
|
display: flex;
|
|
5698
5825
|
flex-direction: column;
|
|
@@ -5702,7 +5829,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5702
5829
|
overflow: hidden;
|
|
5703
5830
|
container-type: size;
|
|
5704
5831
|
}
|
|
5705
|
-
|
|
5832
|
+
`,Yn=class extends g{static tagName="dui-sidebar-inset";static styles=[y,AL];render(){return f`<slot></slot>`}};var Xn=_("value-change",{bubbles:!0,composed:!0}),Pc=_("value-committed",{bubbles:!0,composed:!0}),_L=c`
|
|
5706
5833
|
:host {
|
|
5707
5834
|
display: block;
|
|
5708
5835
|
}
|
|
@@ -5758,14 +5885,14 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5758
5885
|
white-space: nowrap;
|
|
5759
5886
|
border: 0;
|
|
5760
5887
|
}
|
|
5761
|
-
|
|
5888
|
+
`,$R,TR,RR,IR,AR,_R,OR,LR,_t,dx,cx,px,hx,ux,mx,fx,vx,zc,gx,zt,PR,us,bx,Mc,ms,fs,Fc,Hc,Nc,ve=class extends(LR=g,OR=[u({type:Number})],_R=[u({type:Number})],AR=[u({type:Number})],IR=[u({type:Number})],RR=[u({type:Boolean,reflect:!0})],TR=[u()],$R=[k()],LR){constructor(){super(...arguments);s(this,zt);s(this,dx,i(_t,8,this,0)),i(_t,11,this);s(this,cx,i(_t,12,this,0)),i(_t,15,this);s(this,px,i(_t,16,this,100)),i(_t,19,this);s(this,hx,i(_t,20,this,1)),i(_t,23,this);s(this,ux,i(_t,24,this,!1)),i(_t,27,this);s(this,mx,i(_t,28,this,"")),i(_t,31,this);s(this,fx,i(_t,32,this,!1)),i(_t,35,this);s(this,Mc,t=>{if(this.disabled)return;t.preventDefault(),h(this,zt,!0,gx);let e=m(this,zt,bx).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(Xn({value:e}))),document.addEventListener("pointermove",r(this,ms)),document.addEventListener("pointerup",r(this,fs))});s(this,ms,t=>{if(!r(this,zt,zc))return;let e=m(this,zt,bx).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(Xn({value:e})))});s(this,fs,()=>{r(this,zt,zc)&&(h(this,zt,!1,gx),this.dispatchEvent(Pc({value:this.value})),document.removeEventListener("pointermove",r(this,ms)),document.removeEventListener("pointerup",r(this,fs)))});s(this,Fc,t=>{if(this.disabled)return;let e=this.value,a=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),e=m(this,zt,us).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),e=m(this,zt,us).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),e=m(this,zt,us).call(this,this.value+a);break;case"PageDown":t.preventDefault(),e=m(this,zt,us).call(this,this.value-a);break;case"Home":t.preventDefault(),e=this.min;break;case"End":t.preventDefault(),e=this.max;break;default:return}e!==this.value&&(this.value=e,this.dispatchEvent(Xn({value:e})),this.dispatchEvent(Pc({value:e})))});s(this,Hc,t=>{let e=t.target,a=parseFloat(e.value);!isNaN(a)&&a!==this.value&&(this.value=a,this.dispatchEvent(Xn({value:a})))});s(this,Nc,()=>{this.dispatchEvent(Pc({value:this.value}))})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",r(this,ms)),document.removeEventListener("pointerup",r(this,fs))}render(){return f`
|
|
5762
5889
|
<div
|
|
5763
5890
|
part="root"
|
|
5764
5891
|
role="group"
|
|
5765
5892
|
?data-disabled=${this.disabled}
|
|
5766
|
-
?data-dragging=${r(this,
|
|
5767
|
-
style="--slider-progress: ${r(this,
|
|
5768
|
-
@pointerdown=${r(this,
|
|
5893
|
+
?data-dragging=${r(this,zt,zc)}
|
|
5894
|
+
style="--slider-progress: ${r(this,zt,PR)}%"
|
|
5895
|
+
@pointerdown=${r(this,Mc)}
|
|
5769
5896
|
>
|
|
5770
5897
|
<div part="track">
|
|
5771
5898
|
<div part="indicator"></div>
|
|
@@ -5773,7 +5900,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5773
5900
|
<div
|
|
5774
5901
|
part="thumb"
|
|
5775
5902
|
tabindex=${this.disabled?-1:0}
|
|
5776
|
-
@keydown=${r(this,
|
|
5903
|
+
@keydown=${r(this,Fc)}
|
|
5777
5904
|
></div>
|
|
5778
5905
|
<input
|
|
5779
5906
|
class="native-input"
|
|
@@ -5787,11 +5914,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5787
5914
|
aria-valuenow=${this.value}
|
|
5788
5915
|
aria-valuemin=${this.min}
|
|
5789
5916
|
aria-valuemax=${this.max}
|
|
5790
|
-
@input=${r(this,
|
|
5791
|
-
@change=${r(this,
|
|
5917
|
+
@input=${r(this,Hc)}
|
|
5918
|
+
@change=${r(this,Nc)}
|
|
5792
5919
|
/>
|
|
5793
5920
|
</div>
|
|
5794
|
-
`}};
|
|
5921
|
+
`}};_t=S(LR),dx=new WeakMap,cx=new WeakMap,px=new WeakMap,hx=new WeakMap,ux=new WeakMap,mx=new WeakMap,fx=new WeakMap,zt=new WeakSet,PR=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},us=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},bx=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let a=e.getBoundingClientRect(),l=(t-a.left)/a.width,p=this.min+l*(this.max-this.min);return m(this,zt,us).call(this,p)},Mc=new WeakMap,ms=new WeakMap,fs=new WeakMap,Fc=new WeakMap,Hc=new WeakMap,Nc=new WeakMap,d(_t,4,"value",OR,ve,dx),d(_t,4,"min",_R,ve,cx),d(_t,4,"max",AR,ve,px),d(_t,4,"step",IR,ve,hx),d(_t,4,"disabled",RR,ve,ux),d(_t,4,"name",TR,ve,mx),vx=d(_t,20,"#dragging",$R,zt,fx),zc=vx.get,gx=vx.set,C(_t,ve),b(ve,"tagName","dui-slider"),b(ve,"styles",[y,_L]);var OL=ua`
|
|
5795
5922
|
<svg
|
|
5796
5923
|
part="svg"
|
|
5797
5924
|
viewBox="0 0 44 44"
|
|
@@ -5820,7 +5947,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5820
5947
|
/>
|
|
5821
5948
|
</circle>
|
|
5822
5949
|
</svg>
|
|
5823
|
-
`,
|
|
5950
|
+
`,LL=ua`
|
|
5824
5951
|
<svg
|
|
5825
5952
|
part="svg"
|
|
5826
5953
|
data-rotate
|
|
@@ -5843,7 +5970,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5843
5970
|
<path d="M2 12h4" />
|
|
5844
5971
|
<path d="m4.9 4.9 2.9 2.9" />
|
|
5845
5972
|
</svg>
|
|
5846
|
-
`,
|
|
5973
|
+
`,PL=ua`
|
|
5847
5974
|
<svg
|
|
5848
5975
|
part="svg"
|
|
5849
5976
|
data-rotate
|
|
@@ -5859,7 +5986,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5859
5986
|
>
|
|
5860
5987
|
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
5861
5988
|
</svg>
|
|
5862
|
-
`,
|
|
5989
|
+
`,zL=c`
|
|
5863
5990
|
:host {
|
|
5864
5991
|
display: block;
|
|
5865
5992
|
}
|
|
@@ -5878,7 +6005,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5878
6005
|
from { transform: rotate(0deg); }
|
|
5879
6006
|
to { transform: rotate(360deg); }
|
|
5880
6007
|
}
|
|
5881
|
-
`,
|
|
6008
|
+
`,zR,MR,Bc,yx,Dc,FR,ro=class extends(MR=g,zR=[u({reflect:!0})],MR){constructor(){super(...arguments);s(this,Dc);s(this,yx,i(Bc,8,this,"")),i(Bc,11,this)}render(){return f`${m(this,Dc,FR).call(this)}`}};Bc=S(MR),yx=new WeakMap,Dc=new WeakSet,FR=function(){switch(this.variant){case"lucide-loader":return LL;case"lucide-loader-circle":return PL;default:return OL}},d(Bc,4,"variant",zR,ro,yx),C(Bc,ro),b(ro,"tagName","dui-spinner"),b(ro,"styles",[y,zL]);var YR=_("checked-change",{bubbles:!0,composed:!0}),ML=c`
|
|
5882
6009
|
:host {
|
|
5883
6010
|
display: inline-flex;
|
|
5884
6011
|
align-items: start;
|
|
@@ -5919,7 +6046,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5919
6046
|
width: 0;
|
|
5920
6047
|
height: 0;
|
|
5921
6048
|
}
|
|
5922
|
-
`,
|
|
6049
|
+
`,HR,NR,BR,DR,qR,VR,UR,jR,KR,WR,GR,nt,xx,wx,kx,Cx,Sx,Ex,$x,Tx,Rx,Ix,XR,_x,oe,Ax,Ox,Lx,QR,Qn,Jn,qc,jt=class extends(GR=g,WR=[u({type:Boolean,reflect:!0})],KR=[u({type:Boolean,attribute:"default-checked"})],jR=[u({type:Boolean,reflect:!0})],UR=[u({type:Boolean,reflect:!0,attribute:"read-only"})],VR=[u({type:Boolean,reflect:!0})],qR=[u()],DR=[u()],BR=[u({attribute:"unchecked-value"})],NR=[k()],HR=[ot({context:Ce,subscribe:!0}),k()],GR){constructor(){super(...arguments);s(this,oe);s(this,xx,i(nt,8,this)),i(nt,11,this);s(this,wx,i(nt,12,this,!1)),i(nt,15,this);s(this,kx,i(nt,16,this,!1)),i(nt,19,this);s(this,Cx,i(nt,20,this,!1)),i(nt,23,this);s(this,Sx,i(nt,24,this,!1)),i(nt,27,this);s(this,Ex,i(nt,28,this)),i(nt,31,this);s(this,$x,i(nt,32,this,"on")),i(nt,35,this);s(this,Tx,i(nt,36,this,"")),i(nt,39,this);s(this,Rx,i(nt,40,this,!1)),i(nt,43,this);s(this,Ax,i(nt,44,this)),i(nt,47,this);s(this,Qn,t=>{r(this,Jn).call(this)});s(this,Jn,()=>{if(r(this,oe,Lx)||this.readOnly)return;let t=!r(this,oe,Ox);this.checked===void 0&&h(this,oe,t,_x),this._fieldCtx?.markDirty(),this._fieldCtx?.markTouched(),this.dispatchEvent(YR({checked:t}))});s(this,qc,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),r(this,Jn).call(this))})}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,oe,!0,_x),this.addEventListener("click",r(this,Qn))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,Qn))}render(){let t=r(this,oe,Ox),e=r(this,oe,Lx),a=r(this,oe,QR),l=this._fieldCtx?.controlId??"";return f`
|
|
5923
6050
|
<span
|
|
5924
6051
|
part="root"
|
|
5925
6052
|
role="switch"
|
|
@@ -5936,7 +6063,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5936
6063
|
?data-readonly="${this.readOnly}"
|
|
5937
6064
|
?data-required="${this.required}"
|
|
5938
6065
|
?data-invalid="${a}"
|
|
5939
|
-
@keydown="${r(this,
|
|
6066
|
+
@keydown="${r(this,qc)}"
|
|
5940
6067
|
>
|
|
5941
6068
|
<span part="thumb"></span>
|
|
5942
6069
|
<input
|
|
@@ -5952,7 +6079,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5952
6079
|
/>
|
|
5953
6080
|
</span>
|
|
5954
6081
|
<slot></slot>
|
|
5955
|
-
`}};nt=S(
|
|
6082
|
+
`}};nt=S(GR),xx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Cx=new WeakMap,Sx=new WeakMap,Ex=new WeakMap,$x=new WeakMap,Tx=new WeakMap,Rx=new WeakMap,oe=new WeakSet,Ax=new WeakMap,Ox=function(){return this.checked??r(this,oe,XR)},Lx=function(){return this.disabled||(this._fieldCtx?.disabled??!1)},QR=function(){return this._fieldCtx?.invalid??!1},Qn=new WeakMap,Jn=new WeakMap,qc=new WeakMap,d(nt,4,"checked",WR,jt,xx),d(nt,4,"defaultChecked",KR,jt,wx),d(nt,4,"disabled",jR,jt,kx),d(nt,4,"readOnly",UR,jt,Cx),d(nt,4,"required",VR,jt,Sx),d(nt,4,"name",qR,jt,Ex),d(nt,4,"value",DR,jt,$x),d(nt,4,"uncheckedValue",BR,jt,Tx),Ix=d(nt,20,"#internalChecked",NR,oe,Rx),XR=Ix.get,_x=Ix.set,d(nt,4,"_fieldCtx",HR,jt,Ax),C(nt,jt),b(jt,"tagName","dui-switch"),b(jt,"styles",[y,ML]);var Oo=Symbol("dui-tabs");var sI=_("value-change",{bubbles:!0,composed:!0}),FL=c`
|
|
5956
6083
|
:host {
|
|
5957
6084
|
display: block;
|
|
5958
6085
|
}
|
|
@@ -5969,11 +6096,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5969
6096
|
:host([controls="footer"]) [part="root"] {
|
|
5970
6097
|
flex-direction: column-reverse;
|
|
5971
6098
|
}
|
|
5972
|
-
`,
|
|
6099
|
+
`,JR,ZR,tI,eI,rI,oI,iI,Bt,Px,zx,Mx,Fx,Hx,Nx,nI,Dx,lr,Uc,jc,Bx,Vc,Le=class extends(iI=g,oI=[u()],rI=[u({attribute:"default-value"})],eI=[u({reflect:!0})],tI=[u({reflect:!0})],ZR=[k()],JR=[bt({context:Oo}),k()],iI){constructor(){super(...arguments);s(this,lr);s(this,Px,i(Bt,8,this)),i(Bt,11,this);s(this,zx,i(Bt,12,this)),i(Bt,15,this);s(this,Mx,i(Bt,16,this,"horizontal")),i(Bt,19,this);s(this,Fx,i(Bt,20,this,"header")),i(Bt,23,this);s(this,Hx,i(Bt,24,this)),i(Bt,27,this);s(this,Uc,()=>this.value??r(this,lr,nI));s(this,jc,t=>{this.value===void 0&&h(this,lr,t,Dx),this.dispatchEvent(sI(t))});s(this,Bx,i(Bt,28,this,m(this,lr,Vc).call(this))),i(Bt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,lr,this.defaultValue,Dx),this._ctx=m(this,lr,Vc).call(this)}willUpdate(){this._ctx=m(this,lr,Vc).call(this)}render(){return f`
|
|
5973
6100
|
<div part="root" data-orientation=${this.orientation}>
|
|
5974
6101
|
<slot></slot>
|
|
5975
6102
|
</div>
|
|
5976
|
-
`}};
|
|
6103
|
+
`}};Bt=S(iI),Px=new WeakMap,zx=new WeakMap,Mx=new WeakMap,Fx=new WeakMap,Hx=new WeakMap,lr=new WeakSet,Uc=new WeakMap,jc=new WeakMap,Bx=new WeakMap,Vc=function(){return{value:r(this,Uc).call(this),orientation:this.orientation,select:r(this,jc)}},d(Bt,4,"value",oI,Le,Px),d(Bt,4,"defaultValue",rI,Le,zx),d(Bt,4,"orientation",eI,Le,Mx),d(Bt,4,"controls",tI,Le,Fx),Nx=d(Bt,20,"#internalValue",ZR,lr,Hx),nI=Nx.get,Dx=Nx.set,d(Bt,4,"_ctx",JR,Le,Bx),C(Bt,Le),b(Le,"tagName","dui-tabs"),b(Le,"styles",[y,FL]);var HL=c`
|
|
5977
6104
|
:host {
|
|
5978
6105
|
display: block;
|
|
5979
6106
|
}
|
|
@@ -5987,11 +6114,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
5987
6114
|
[part="list"][data-orientation="vertical"] {
|
|
5988
6115
|
flex-direction: column;
|
|
5989
6116
|
}
|
|
5990
|
-
`,
|
|
6117
|
+
`,aI,lI,Kc,qx,vs,gs,Wc,oo=class extends(lI=g,aI=[ot({context:Oo,subscribe:!0})],lI){constructor(){super(...arguments);s(this,gs);s(this,qx,i(Kc,8,this)),i(Kc,11,this);s(this,vs)}connectedCallback(){super.connectedCallback(),h(this,vs,new ResizeObserver(()=>{m(this,gs,Wc).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),r(this,vs)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&r(this,vs)?.observe(t),m(this,gs,Wc).call(this)}updated(){m(this,gs,Wc).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
|
|
5991
6118
|
<div part="list" role="tablist" data-orientation=${t}>
|
|
5992
6119
|
<slot></slot>
|
|
5993
6120
|
</div>
|
|
5994
|
-
`}};
|
|
6121
|
+
`}};Kc=S(lI),qx=new WeakMap,vs=new WeakMap,gs=new WeakSet,Wc=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(p=>p.tagName==="DUI-TAB"&&p.getAttribute("value")===this._ctx?.value);if(l){let p=t.getBoundingClientRect(),v=l.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`)}},d(Kc,4,"_ctx",aI,oo,qx),C(Kc,oo),b(oo,"tagName","dui-tabs-list"),b(oo,"styles",[y,HL]);var NL=c`
|
|
5995
6122
|
:host {
|
|
5996
6123
|
display: block;
|
|
5997
6124
|
}
|
|
@@ -6015,7 +6142,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6015
6142
|
[part="tab"][data-disabled] {
|
|
6016
6143
|
cursor: not-allowed;
|
|
6017
6144
|
}
|
|
6018
|
-
`,
|
|
6145
|
+
`,dI,cI,pI,hI,Or,Vx,Ux,jx,Gc,uI,Yc,Xc,dr=class extends(hI=g,pI=[u()],cI=[u({type:Boolean,reflect:!0})],dI=[ot({context:Oo,subscribe:!0})],hI){constructor(){super(...arguments);s(this,Gc);s(this,Vx,i(Or,8,this,"")),i(Or,11,this);s(this,Ux,i(Or,12,this,!1)),i(Or,15,this);s(this,jx,i(Or,16,this)),i(Or,19,this);s(this,Yc,()=>{this.disabled||this._ctx?.select(this.value)});s(this,Xc,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=r(this,Gc,uI);return f`
|
|
6019
6146
|
<button
|
|
6020
6147
|
part="tab"
|
|
6021
6148
|
role="tab"
|
|
@@ -6024,12 +6151,12 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6024
6151
|
?data-disabled=${this.disabled}
|
|
6025
6152
|
?disabled=${this.disabled}
|
|
6026
6153
|
tabindex=${t?0:-1}
|
|
6027
|
-
@click=${r(this,
|
|
6028
|
-
@keydown=${r(this,
|
|
6154
|
+
@click=${r(this,Yc)}
|
|
6155
|
+
@keydown=${r(this,Xc)}
|
|
6029
6156
|
>
|
|
6030
6157
|
<slot></slot>
|
|
6031
6158
|
</button>
|
|
6032
|
-
`}};
|
|
6159
|
+
`}};Or=S(hI),Vx=new WeakMap,Ux=new WeakMap,jx=new WeakMap,Gc=new WeakSet,uI=function(){return this._ctx?.value===this.value},Yc=new WeakMap,Xc=new WeakMap,d(Or,4,"value",pI,dr,Vx),d(Or,4,"disabled",cI,dr,Ux),d(Or,4,"_ctx",dI,dr,jx),C(Or,dr),b(dr,"tagName","dui-tab"),b(dr,"styles",[y,NL]);var BL=c`
|
|
6033
6160
|
:host {
|
|
6034
6161
|
display: block;
|
|
6035
6162
|
}
|
|
@@ -6046,7 +6173,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6046
6173
|
[part="panel"][hidden] {
|
|
6047
6174
|
display: none;
|
|
6048
6175
|
}
|
|
6049
|
-
`,
|
|
6176
|
+
`,mI,fI,vI,gI,Lr,Kx,Wx,Gx,Zn,Yx,cr=class extends(gI=g,vI=[u()],fI=[u({type:Boolean,attribute:"keep-mounted"})],mI=[ot({context:Oo,subscribe:!0})],gI){constructor(){super(...arguments);s(this,Zn);s(this,Kx,i(Lr,8,this,"")),i(Lr,11,this);s(this,Wx,i(Lr,12,this,!1)),i(Lr,15,this);s(this,Gx,i(Lr,16,this)),i(Lr,19,this)}willUpdate(){r(this,Zn,Yx)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=r(this,Zn,Yx);return!t&&!this.keepMounted?T:f`
|
|
6050
6177
|
<div
|
|
6051
6178
|
part="panel"
|
|
6052
6179
|
role="tabpanel"
|
|
@@ -6055,7 +6182,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6055
6182
|
>
|
|
6056
6183
|
<slot></slot>
|
|
6057
6184
|
</div>
|
|
6058
|
-
`}};
|
|
6185
|
+
`}};Lr=S(gI),Kx=new WeakMap,Wx=new WeakMap,Gx=new WeakMap,Zn=new WeakSet,Yx=function(){return this._ctx?.value===this.value},d(Lr,4,"value",vI,cr,Kx),d(Lr,4,"keepMounted",fI,cr,Wx),d(Lr,4,"_ctx",mI,cr,Gx),C(Lr,cr),b(cr,"tagName","dui-tabs-panel"),b(cr,"styles",[y,BL]);var DL=c`
|
|
6059
6186
|
:host {
|
|
6060
6187
|
display: block;
|
|
6061
6188
|
position: absolute;
|
|
@@ -6067,7 +6194,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6067
6194
|
pointer-events: none;
|
|
6068
6195
|
transition-property: translate, width;
|
|
6069
6196
|
}
|
|
6070
|
-
|
|
6197
|
+
`,ta=class extends g{static tagName="dui-tabs-indicator";static styles=[y,DL];render(){return f`<span part="indicator"></span>`}};var AI=_("textarea-change",{bubbles:!0,composed:!0}),qL=c`
|
|
6071
6198
|
:host {
|
|
6072
6199
|
display: block;
|
|
6073
6200
|
}
|
|
@@ -6104,11 +6231,11 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6104
6231
|
[part="textarea"]:disabled {
|
|
6105
6232
|
cursor: not-allowed;
|
|
6106
6233
|
}
|
|
6107
|
-
`,
|
|
6234
|
+
`,bI,yI,xI,wI,kI,CI,SI,EI,$I,TI,RI,II,rt,Xx,Qx,Jx,Zx,t0,e0,r0,o0,i0,s0,n0,Qc,Mt=class extends(II=g,RI=[u()],TI=[u()],$I=[u({type:Boolean,reflect:!0})],EI=[u({type:Boolean})],SI=[u({type:Boolean})],CI=[u({type:Number})],kI=[u({type:Number,attribute:"minlength"})],wI=[u({type:Number,attribute:"maxlength"})],xI=[u()],yI=[u()],bI=[u({attribute:"max-height"})],II){constructor(){super(...arguments);s(this,Xx,i(rt,8,this,"")),i(rt,11,this);s(this,Qx,i(rt,12,this,"")),i(rt,15,this);s(this,Jx,i(rt,16,this,!1)),i(rt,19,this);s(this,Zx,i(rt,20,this,!1)),i(rt,23,this);s(this,t0,i(rt,24,this,!1)),i(rt,27,this);s(this,e0,i(rt,28,this)),i(rt,31,this);s(this,r0,i(rt,32,this)),i(rt,35,this);s(this,o0,i(rt,36,this)),i(rt,39,this);s(this,i0,i(rt,40,this,"")),i(rt,43,this);s(this,s0,i(rt,44,this,"vertical")),i(rt,47,this);s(this,n0,i(rt,48,this)),i(rt,51,this);s(this,Qc,t=>{let e=t.target;this.value=e.value,this.dispatchEvent(AI({value:this.value}))})}render(){let t=ts({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
|
|
6108
6235
|
<textarea
|
|
6109
6236
|
part="textarea"
|
|
6110
6237
|
style=${t}
|
|
6111
|
-
.value=${
|
|
6238
|
+
.value=${go(this.value)}
|
|
6112
6239
|
placeholder=${this.placeholder}
|
|
6113
6240
|
rows=${this.rows??""}
|
|
6114
6241
|
?disabled=${this.disabled}
|
|
@@ -6118,9 +6245,9 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6118
6245
|
maxlength=${this.maxLength??""}
|
|
6119
6246
|
name=${this.name}
|
|
6120
6247
|
data-resize=${this.resize}
|
|
6121
|
-
@input=${r(this,
|
|
6248
|
+
@input=${r(this,Qc)}
|
|
6122
6249
|
></textarea>
|
|
6123
|
-
`}};rt=S(
|
|
6250
|
+
`}};rt=S(II),Xx=new WeakMap,Qx=new WeakMap,Jx=new WeakMap,Zx=new WeakMap,t0=new WeakMap,e0=new WeakMap,r0=new WeakMap,o0=new WeakMap,i0=new WeakMap,s0=new WeakMap,n0=new WeakMap,Qc=new WeakMap,d(rt,4,"value",RI,Mt,Xx),d(rt,4,"placeholder",TI,Mt,Qx),d(rt,4,"disabled",$I,Mt,Jx),d(rt,4,"required",EI,Mt,Zx),d(rt,4,"readonly",SI,Mt,t0),d(rt,4,"rows",CI,Mt,e0),d(rt,4,"minLength",kI,Mt,r0),d(rt,4,"maxLength",wI,Mt,o0),d(rt,4,"name",xI,Mt,i0),d(rt,4,"resize",yI,Mt,s0),d(rt,4,"maxHeight",bI,Mt,n0),C(rt,Mt),b(Mt,"tagName","dui-textarea"),b(Mt,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(Mt,"styles",[y,qL]);var Jc=Symbol("dui-toggle-group");var HI=_("pressed-change",{bubbles:!0,composed:!0}),VL=c`
|
|
6124
6251
|
:host {
|
|
6125
6252
|
display: inline-block;
|
|
6126
6253
|
}
|
|
@@ -6142,7 +6269,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6142
6269
|
[part="root"]:disabled {
|
|
6143
6270
|
cursor: not-allowed;
|
|
6144
6271
|
}
|
|
6145
|
-
`,
|
|
6272
|
+
`,_I,OI,LI,PI,zI,MI,FI,Dt,a0,l0,d0,c0,p0,h0,NI,m0,Pe,u0,f0,v0,Zc,ge=class extends(FI=g,MI=[u({type:Boolean})],zI=[u({type:Boolean,attribute:"default-pressed"})],PI=[u({type:Boolean,reflect:!0})],LI=[u()],OI=[k()],_I=[ot({context:Jc,subscribe:!0}),k()],FI){constructor(){super(...arguments);s(this,Pe);s(this,a0,i(Dt,8,this)),i(Dt,11,this);s(this,l0,i(Dt,12,this,!1)),i(Dt,15,this);s(this,d0,i(Dt,16,this,!1)),i(Dt,19,this);s(this,c0,i(Dt,20,this)),i(Dt,23,this);s(this,p0,i(Dt,24,this,!1)),i(Dt,27,this);s(this,u0,i(Dt,28,this)),i(Dt,31,this);s(this,Zc,()=>{if(r(this,Pe,v0))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!r(this,Pe,f0);this.pressed===void 0&&h(this,Pe,t,m0),this.dispatchEvent(HI({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&h(this,Pe,!0,m0)}render(){let t=r(this,Pe,f0),e=r(this,Pe,v0);return f`
|
|
6146
6273
|
<button
|
|
6147
6274
|
part="root"
|
|
6148
6275
|
type="button"
|
|
@@ -6150,12 +6277,12 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6150
6277
|
?disabled="${e}"
|
|
6151
6278
|
?data-pressed="${t}"
|
|
6152
6279
|
?data-disabled="${e}"
|
|
6153
|
-
@click="${r(this,
|
|
6280
|
+
@click="${r(this,Zc)}"
|
|
6154
6281
|
>
|
|
6155
6282
|
<slot name="icon"></slot>
|
|
6156
6283
|
<slot></slot>
|
|
6157
6284
|
</button>
|
|
6158
|
-
`}};
|
|
6285
|
+
`}};Dt=S(FI),a0=new WeakMap,l0=new WeakMap,d0=new WeakMap,c0=new WeakMap,p0=new WeakMap,Pe=new WeakSet,u0=new WeakMap,f0=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??r(this,Pe,NI)},v0=function(){return this.disabled||(this._groupCtx?.disabled??!1)},Zc=new WeakMap,d(Dt,4,"pressed",MI,ge,a0),d(Dt,4,"defaultPressed",zI,ge,l0),d(Dt,4,"disabled",PI,ge,d0),d(Dt,4,"value",LI,ge,c0),h0=d(Dt,20,"#internalPressed",OI,Pe,p0),NI=h0.get,m0=h0.set,d(Dt,4,"_groupCtx",_I,ge,u0),C(Dt,ge),b(ge,"tagName","dui-toggle"),b(ge,"shadowRootOptions",{...g.shadowRootOptions,delegatesFocus:!0}),b(ge,"styles",[y,VL]);var YI=_("value-change",{bubbles:!0,composed:!0}),UL=c`
|
|
6159
6286
|
:host {
|
|
6160
6287
|
display: inline-flex;
|
|
6161
6288
|
}
|
|
@@ -6167,16 +6294,16 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6167
6294
|
:host([orientation="vertical"]) [part="root"] {
|
|
6168
6295
|
flex-direction: column;
|
|
6169
6296
|
}
|
|
6170
|
-
`,
|
|
6297
|
+
`,BI,DI,qI,VI,UI,jI,KI,WI,GI,wt,g0,b0,y0,x0,w0,k0,C0,S0,XI,$0,be,T0,ep,E0,tp,rp,ie=class extends(GI=g,WI=[u({type:Array})],KI=[u({type:Array,attribute:"default-value"})],jI=[u({reflect:!0})],UI=[u({reflect:!0})],VI=[u({type:Boolean,reflect:!0})],qI=[u({type:Boolean})],DI=[k()],BI=[bt({context:Jc}),k()],GI){constructor(){super(...arguments);s(this,be);s(this,g0,i(wt,8,this)),i(wt,11,this);s(this,b0,i(wt,12,this,[])),i(wt,15,this);s(this,y0,i(wt,16,this,"single")),i(wt,19,this);s(this,x0,i(wt,20,this,"horizontal")),i(wt,23,this);s(this,w0,i(wt,24,this,!1)),i(wt,27,this);s(this,k0,i(wt,28,this,!0)),i(wt,31,this);s(this,C0,i(wt,32,this,[])),i(wt,35,this);s(this,ep,t=>{if(this.disabled)return;let e=r(this,be,T0),a;this.type==="single"?a=e.includes(t)?[]:[t]:a=e.includes(t)?e.filter(l=>l!==t):[...e,t],this.value===void 0&&h(this,be,a,$0),this.dispatchEvent(YI({value:a}))});s(this,E0,i(wt,36,this,m(this,be,tp).call(this))),i(wt,39,this);s(this,rp,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";if(t.key!==a&&t.key!==l)return;t.preventDefault();let 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)),$=E?v.indexOf(E):-1,w;t.key===a?(w=$+1,w>=v.length&&(w=this.loop?0:v.length-1)):(w=$-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,be,[...this.defaultValue],$0),this._ctx=m(this,be,tp).call(this)}willUpdate(){this._ctx=m(this,be,tp).call(this)}render(){return f`
|
|
6171
6298
|
<div
|
|
6172
6299
|
part="root"
|
|
6173
6300
|
role="group"
|
|
6174
6301
|
aria-orientation="${this.orientation}"
|
|
6175
|
-
@keydown="${r(this,
|
|
6302
|
+
@keydown="${r(this,rp)}"
|
|
6176
6303
|
>
|
|
6177
6304
|
<slot></slot>
|
|
6178
6305
|
</div>
|
|
6179
|
-
`}};wt=S(
|
|
6306
|
+
`}};wt=S(GI),g0=new WeakMap,b0=new WeakMap,y0=new WeakMap,x0=new WeakMap,w0=new WeakMap,k0=new WeakMap,C0=new WeakMap,be=new WeakSet,T0=function(){return this.value??r(this,be,XI)},ep=new WeakMap,E0=new WeakMap,tp=function(){return{value:r(this,be,T0),disabled:this.disabled,type:this.type,toggle:r(this,ep)}},rp=new WeakMap,d(wt,4,"value",WI,ie,g0),d(wt,4,"defaultValue",KI,ie,b0),d(wt,4,"type",jI,ie,y0),d(wt,4,"orientation",UI,ie,x0),d(wt,4,"disabled",VI,ie,w0),d(wt,4,"loop",qI,ie,k0),S0=d(wt,20,"#internalValue",DI,be,C0),XI=S0.get,$0=S0.set,d(wt,4,"_ctx",BI,ie,E0),C(wt,ie),b(ie,"tagName","dui-toggle-group"),b(ie,"styles",[y,UL]);var jL=c`
|
|
6180
6307
|
:host {
|
|
6181
6308
|
display: block;
|
|
6182
6309
|
}
|
|
@@ -6207,7 +6334,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6207
6334
|
display: flex;
|
|
6208
6335
|
align-items: center;
|
|
6209
6336
|
}
|
|
6210
|
-
`,
|
|
6337
|
+
`,QI,JI,ZI,tA,Pr,R0,I0,A0,pr=class extends(tA=g,ZI=[u({type:Boolean,reflect:!0})],JI=[u({type:Boolean,reflect:!0,attribute:"has-button-left"})],QI=[u({type:Boolean,reflect:!0,attribute:"has-button-right"})],tA){constructor(){super(...arguments);s(this,R0,i(Pr,8,this,!1)),i(Pr,11,this);s(this,I0,i(Pr,12,this,!1)),i(Pr,15,this);s(this,A0,i(Pr,16,this,!1)),i(Pr,19,this)}render(){return f`
|
|
6211
6338
|
<nav part="root" role="toolbar">
|
|
6212
6339
|
<div part="left">
|
|
6213
6340
|
<slot name="left"></slot>
|
|
@@ -6219,15 +6346,15 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6219
6346
|
<slot name="right"></slot>
|
|
6220
6347
|
</div>
|
|
6221
6348
|
</nav>
|
|
6222
|
-
`}};
|
|
6349
|
+
`}};Pr=S(tA),R0=new WeakMap,I0=new WeakMap,A0=new WeakMap,d(Pr,4,"inset",ZI,pr,R0),d(Pr,4,"hasButtonLeft",JI,pr,I0),d(Pr,4,"hasButtonRight",QI,pr,A0),C(Pr,pr),b(pr,"tagName","dui-toolbar"),b(pr,"styles",[y,jL]);var bs=Symbol("dui-tooltip");var V0=_("open-change",{bubbles:!0,composed:!0}),KL=c`
|
|
6223
6350
|
:host {
|
|
6224
6351
|
display: contents;
|
|
6225
6352
|
}
|
|
6226
|
-
`,
|
|
6353
|
+
`,eA,rA,oA,iA,sA,nA,aA,lA,dA,cA,pA,at,_0,O0,L0,P0,z0,M0,F0,H0,N0,op,ip,lt,B0,D0,U0,hA,Ei,$i,np,ap,q0,sp,uA,mA,j0,K0,fA,Yt=class extends(pA=g,cA=[u({type:Boolean,reflect:!0})],dA=[u({type:Boolean,attribute:"default-open"})],lA=[u({reflect:!0})],aA=[u({type:Number,attribute:"side-offset"})],nA=[u({type:Number})],sA=[u({type:Number,attribute:"close-delay"})],iA=[u({type:Boolean,reflect:!0})],oA=[k()],rA=[k()],eA=[bt({context:bs}),k()],pA){constructor(){super(...arguments);s(this,lt);s(this,_0,i(at,8,this,!1)),i(at,11,this);s(this,O0,i(at,12,this,!1)),i(at,15,this);s(this,L0,i(at,16,this,"top")),i(at,19,this);s(this,P0,i(at,20,this,6)),i(at,23,this);s(this,z0,i(at,24,this,500)),i(at,27,this);s(this,M0,i(at,28,this,0)),i(at,31,this);s(this,F0,i(at,32,this,!1)),i(at,35,this);s(this,H0,i(at,36,this,!1)),i(at,39,this);s(this,B0,i(at,40,this)),i(at,43,this);s(this,Ei);s(this,$i);s(this,np,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);s(this,ap,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);s(this,q0,i(at,44,this,{open:!1,triggerId:r(this,np),popupId:r(this,ap),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>m(this,lt,uA).call(this),closeTooltip:()=>m(this,lt,mA).call(this),setTriggerEl:t=>m(this,lt,fA).call(this,t)})),i(at,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&h(this,lt,!0,ip)}disconnectedCallback(){super.disconnectedCallback(),m(this,lt,sp).call(this)}willUpdate(t){let e=this.open||r(this,lt,op);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,lt,U0))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:r(this,lt,U0)})}render(){return f`<slot></slot>`}};at=S(pA),_0=new WeakMap,O0=new WeakMap,L0=new WeakMap,P0=new WeakMap,z0=new WeakMap,M0=new WeakMap,F0=new WeakMap,H0=new WeakMap,lt=new WeakSet,B0=new WeakMap,Ei=new WeakMap,$i=new WeakMap,np=new WeakMap,ap=new WeakMap,q0=new WeakMap,sp=function(){r(this,Ei)&&(clearTimeout(r(this,Ei)),h(this,Ei,void 0)),r(this,$i)&&(clearTimeout(r(this,$i)),h(this,$i,void 0))},uA=function(){this.disabled||(m(this,lt,sp).call(this),this.delay<=0?m(this,lt,j0).call(this):h(this,Ei,setTimeout(()=>m(this,lt,j0).call(this),this.delay)))},mA=function(){m(this,lt,sp).call(this),this.closeDelay<=0?m(this,lt,K0).call(this):h(this,$i,setTimeout(()=>m(this,lt,K0).call(this),this.closeDelay))},j0=function(){r(this,lt,op)||(h(this,lt,!0,ip),this.dispatchEvent(V0({open:!0})))},K0=function(){r(this,lt,op)&&(h(this,lt,!1,ip),this.dispatchEvent(V0({open:!1})))},fA=function(t){h(this,lt,t,hA)},d(at,4,"open",cA,Yt,_0),d(at,4,"defaultOpen",dA,Yt,O0),d(at,4,"side",lA,Yt,L0),d(at,4,"sideOffset",aA,Yt,P0),d(at,4,"delay",nA,Yt,z0),d(at,4,"closeDelay",sA,Yt,M0),d(at,4,"disabled",iA,Yt,F0),N0=d(at,20,"#internalOpen",oA,lt,H0),op=N0.get,ip=N0.set,D0=d(at,20,"#triggerEl",rA,lt,B0),U0=D0.get,hA=D0.set,d(at,4,"_ctx",eA,Yt,q0),C(at,Yt),b(Yt,"tagName","dui-tooltip"),b(Yt,"styles",[y,KL]);var WL=c`
|
|
6227
6354
|
:host {
|
|
6228
6355
|
display: contents;
|
|
6229
6356
|
}
|
|
6230
|
-
`,
|
|
6357
|
+
`,GL=c`
|
|
6231
6358
|
.Trigger {
|
|
6232
6359
|
display: inline-flex;
|
|
6233
6360
|
align-items: center;
|
|
@@ -6244,7 +6371,7 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6244
6371
|
.Trigger[data-disabled] {
|
|
6245
6372
|
cursor: not-allowed;
|
|
6246
6373
|
}
|
|
6247
|
-
`,
|
|
6374
|
+
`,vA,gA,lp,W0,ye,cp,pp,hp,up,mp,so,G0,dp,io=class extends(gA=g,vA=[u({type:Boolean,reflect:!0})],gA){constructor(){super(...arguments);s(this,so);s(this,W0,i(lp,8,this,!1)),i(lp,11,this);s(this,ye,new q(this,{context:bs,subscribe:!0}));s(this,cp,()=>{r(this,so,dp)||(m(this,so,G0).call(this),r(this,ye).value?.openTooltip())});s(this,pp,()=>{r(this,ye).value?.closeTooltip()});s(this,hp,()=>{r(this,so,dp)||(m(this,so,G0).call(this),r(this,ye).value?.openTooltip())});s(this,up,()=>{r(this,ye).value?.closeTooltip()});s(this,mp,t=>{t.key==="Escape"&&r(this,ye).value?.open&&r(this,ye).value?.closeTooltip()})}render(){let t=r(this,ye).value?.open??!1,e=r(this,ye).value?.popupId??"",a=r(this,ye).value?.triggerId??"";return f`
|
|
6248
6375
|
<span
|
|
6249
6376
|
class="Trigger"
|
|
6250
6377
|
part="trigger"
|
|
@@ -6253,20 +6380,20 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6253
6380
|
tabindex="0"
|
|
6254
6381
|
aria-describedby="${t?e:""}"
|
|
6255
6382
|
?data-popup-open="${t}"
|
|
6256
|
-
?data-disabled="${r(this,
|
|
6257
|
-
@mouseenter="${r(this,
|
|
6258
|
-
@mouseleave="${r(this,
|
|
6259
|
-
@focus="${r(this,
|
|
6260
|
-
@blur="${r(this,
|
|
6261
|
-
@keydown="${r(this,
|
|
6383
|
+
?data-disabled="${r(this,so,dp)}"
|
|
6384
|
+
@mouseenter="${r(this,cp)}"
|
|
6385
|
+
@mouseleave="${r(this,pp)}"
|
|
6386
|
+
@focus="${r(this,hp)}"
|
|
6387
|
+
@blur="${r(this,up)}"
|
|
6388
|
+
@keydown="${r(this,mp)}"
|
|
6262
6389
|
>
|
|
6263
6390
|
<slot></slot>
|
|
6264
6391
|
</span>
|
|
6265
|
-
`}};
|
|
6392
|
+
`}};lp=S(gA),W0=new WeakMap,ye=new WeakMap,cp=new WeakMap,pp=new WeakMap,hp=new WeakMap,up=new WeakMap,mp=new WeakMap,so=new WeakSet,G0=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;r(this,ye).value?.setTriggerEl(t)},dp=function(){return this.disabled||(r(this,ye).value?.disabled??!1)},d(lp,4,"disabled",vA,io,W0),C(lp,io),b(io,"tagName","dui-tooltip-trigger"),b(io,"styles",[y,WL,GL]);var YL=c`
|
|
6266
6393
|
:host {
|
|
6267
6394
|
display: none;
|
|
6268
6395
|
}
|
|
6269
|
-
`,
|
|
6396
|
+
`,XL=[c`
|
|
6270
6397
|
.Popup {
|
|
6271
6398
|
box-sizing: border-box;
|
|
6272
6399
|
pointer-events: auto;
|
|
@@ -6307,19 +6434,19 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6307
6434
|
left: 50%;
|
|
6308
6435
|
transform: translateX(-50%) rotate(180deg);
|
|
6309
6436
|
}
|
|
6310
|
-
`],
|
|
6437
|
+
`],bA,yA,xA,Ti,Y0,X0,Q0,fp,wA,zr,Lo,ys,Ri,kA,no=class extends(xA=g,yA=[u({type:Boolean,attribute:"show-arrow"})],bA=[k()],xA){constructor(){super(...arguments);s(this,zr);s(this,Y0,i(Ti,8,this,!0)),i(Ti,11,this);s(this,X0,i(Ti,12,this,"top")),i(Ti,15,this);s(this,Lo,new q(this,{context:bs,subscribe:!0}));s(this,ys,!1);s(this,Ri,new le(this,{getAnchor:()=>r(this,Lo).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:XL,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,zr,fp)&&h(this,zr,e,wA)},renderPopup:t=>{let e=r(this,Lo).value?.popupId??"";return f`
|
|
6311
6438
|
<div
|
|
6312
6439
|
class="Popup"
|
|
6313
6440
|
id="${e}"
|
|
6314
6441
|
role="tooltip"
|
|
6315
6442
|
?data-starting-style="${t.isStarting}"
|
|
6316
6443
|
?data-ending-style="${t.isEnding}"
|
|
6317
|
-
data-side="${r(this,
|
|
6444
|
+
data-side="${r(this,zr,fp)}"
|
|
6318
6445
|
>
|
|
6319
6446
|
<div class="Content"></div>
|
|
6320
|
-
${this.showArrow?
|
|
6447
|
+
${this.showArrow?Wi(r(this,zr,fp)):""}
|
|
6321
6448
|
</div>
|
|
6322
|
-
`}}))}updated(){let t=r(this,
|
|
6449
|
+
`}}))}updated(){let t=r(this,Lo).value?.open??!1;t&&!r(this,ys)?(m(this,zr,kA).call(this),r(this,Ri).open()):!t&&r(this,ys)&&r(this,Ri).close(),h(this,ys,t)}render(){return f`<slot></slot>`}};Ti=S(xA),Y0=new WeakMap,X0=new WeakMap,zr=new WeakSet,Lo=new WeakMap,ys=new WeakMap,Ri=new WeakMap,kA=function(){let t=r(this,Lo).value?.side??"top";r(this,Ri).placement=t,r(this,Ri).offset=r(this,Lo).value?.sideOffset??6},d(Ti,4,"showArrow",yA,no,Y0),Q0=d(Ti,20,"#side",bA,zr,X0),fp=Q0.get,wA=Q0.set,C(Ti,no),b(no,"tagName","dui-tooltip-popup"),b(no,"styles",[y,YL]);var QL=c`
|
|
6323
6450
|
:host {
|
|
6324
6451
|
display: block;
|
|
6325
6452
|
}
|
|
@@ -6338,4 +6465,4 @@ var tA=Object.create;var Vc=Object.defineProperty;var eA=Object.getOwnPropertyDe
|
|
|
6338
6465
|
display: -webkit-box;
|
|
6339
6466
|
-webkit-box-orient: vertical;
|
|
6340
6467
|
}
|
|
6341
|
-
`,
|
|
6468
|
+
`,CA,SA,EA,Ii,J0,Z0,Mr=class extends(EA=g,SA=[u({attribute:"max-width"})],CA=[u({attribute:"max-lines",type:Number,reflect:!0})],EA){constructor(){super(...arguments);s(this,J0,i(Ii,8,this,"20rem")),i(Ii,11,this);s(this,Z0,i(Ii,12,this)),i(Ii,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,e=ts({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return f`<div part="root" style=${e}><slot></slot></div>`}};Ii=S(EA),J0=new WeakMap,Z0=new WeakMap,d(Ii,4,"maxWidth",SA,Mr,J0),d(Ii,4,"maxLines",CA,Mr,Z0),C(Ii,Mr),b(Mr,"tagName","dui-trunc"),b(Mr,"styles",[y,QL]);var $A=[Wt,Ge,Ye,Ps,Xe,zs,ze,Fs,Hs,Ns,Bs,Ds,qs,Vs,ke,Qt,Vt,Se,Fe,Zt,Ee,gr,Ur,br,De,jr,dn,cn,Te,rr,un,qe,mn,fn,vn,Tt,Xr,So,or,ir,Pt,Ae,Cn,wr,Sn,sr,ee,En,Jr,nr,Ve,re,Tn,me,eo,fe,_o,Bn,Dn,qn,Vn,Un,jn,Kn,Wn,Ue,Gn,Yn,ve,ro,jt,Le,oo,dr,cr,ta,Mt,ge,ie,pr,Yt,io,no,Mr];nw({theme:$w,components:$A});export{$A as allComponents,nw as applyTheme,$w as defaultTheme};
|