@deepfuture/dui-cdn 0.0.20 → 0.0.21
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 +188 -90
- package/dui.min.js +463 -432
- package/package.json +1 -1
package/dui.min.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDescriptor;var qE=(a,s)=>(s=Symbol[a])?s:Symbol.for("Symbol."+a),rs=a=>{throw TypeError(a)};var UE=(a,s,t)=>s in a?zh(a,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[s]=t;var VE=(a,s)=>zh(a,"name",{value:s,configurable:!0});var C=a=>[,,,LO(a?.[qE("metadata")]??null)],jE=["class","method","getter","setter","accessor","field","value","get","set"],dn=a=>a!==void 0&&typeof a!="function"?rs("Function expected"):a,zO=(a,s,t,r,n)=>({kind:jE[a],name:s,metadata:r,addInitializer:d=>t._?rs("Already initialized"):n.push(dn(d||null))}),E=(a,s)=>UE(s,qE("metadata"),a[3]),o=(a,s,t,r)=>{for(var n=0,d=a[s>>1],u=d&&d.length;n<u;n++)s&1?d[n].call(t):r=d[n].call(t,r);return r},l=(a,s,t,r,n,d)=>{var u,v,y,S,$,w=s&7,I=!!(s&8),R=!!(s&16),P=w>3?a.length+1:w?I?1:2:0,H=jE[w+5],X=w>3&&(a[P-1]=[]),j=a[P]||(a[P]=[]),M=w&&(!R&&!I&&(n=n.prototype),w<5&&(w>3||!R)&&OO(w<4?n:{get[t](){return e(this,d)},set[t](Y){return p(this,d,Y)}},t));w?R&&w<4&&VE(d,(w>2?"set ":w>1?"get ":"")+t):VE(n,t);for(var q=r.length-1;q>=0;q--)S=zO(w,t,y={},a[3],j),w&&(S.static=I,S.private=R,$=S.access={has:R?Y=>PO(n,Y):Y=>t in Y},w^3&&($.get=R?Y=>(w^1?e:m)(Y,n,w^4?d:M.get):Y=>Y[t]),w>2&&($.set=R?(Y,Yt)=>p(Y,n,Yt,w^4?d:M.set):(Y,Yt)=>Y[t]=Yt)),v=(0,r[q])(w?w<4?R?d:M[H]:w>4?void 0:{get:M.get,set:M.set}:n,S),y._=1,w^4||v===void 0?dn(v)&&(w>4?X.unshift(v):w?R?d=v:M[H]=v:n=v):typeof v!="object"||v===null?rs("Object expected"):(dn(u=v.get)&&(M.get=u),dn(u=v.set)&&(M.set=u),dn(u=v.init)&&X.unshift(u));return w||E(a,n),M&&zh(n,t,M),R?w^4?d:M:n},g=(a,s,t)=>UE(a,typeof s!="symbol"?s+"":s,t),Ph=(a,s,t)=>s.has(a)||rs("Cannot "+t),PO=(a,s)=>Object(s)!==s?rs('Cannot use the "in" operator on this value'):a.has(s),e=(a,s,t)=>(Ph(a,s,"read from private field"),t?t.call(a):s.get(a)),i=(a,s,t)=>s.has(a)?rs("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,t),p=(a,s,t,r)=>(Ph(a,s,"write to private field"),r?r.call(a,t):s.set(a,t),t),m=(a,s,t)=>(Ph(a,s,"access private method"),t);var os=(a,s,t,r)=>({set _(n){p(a,s,n,t)},get _(){return e(a,s,r)}});function MO(a){let s=new Set,t=[];function r(n){if(!s.has(n.tagName)){if(s.add(n.tagName),n.dependencies)for(let d of n.dependencies)r(d);t.push(n)}}for(let n of a)r(n);return t}var WE=null;function KE(){return WE}function GE({theme:a,components:s}){WE=a,document.adoptedStyleSheets.includes(a.tokens)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,a.tokens]),a.prose&&!document.adoptedStyleSheets.includes(a.prose)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,a.prose]);let t=MO(s);for(let r of t){let n=r.tagName;if(customElements.get(n))continue;let d=a.styles.get(n),v=[...Array.isArray(r.styles)?r.styles:r.styles?[r.styles]:[],a.base,...d?[d]:[]],y=class extends r{static styles=v};customElements.define(n,y)}}var rl=globalThis,ol=rl.ShadowRoot&&(rl.ShadyCSS===void 0||rl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mh=Symbol(),YE=new WeakMap,cn=class{constructor(s,t,r){if(this._$cssResult$=!0,r!==Mh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=s,this.t=t}get styleSheet(){let s=this.o,t=this.t;if(ol&&s===void 0){let r=t!==void 0&&t.length===1;r&&(s=YE.get(t)),s===void 0&&((this.o=s=new CSSStyleSheet).replaceSync(this.cssText),r&&YE.set(t,s))}return s}toString(){return this.cssText}},is=a=>new cn(typeof a=="string"?a:a+"",void 0,Mh),c=(a,...s)=>{let t=a.length===1?a[0]:s.reduce((r,n,d)=>r+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+a[d+1],a[0]);return new cn(t,a,Mh)},il=(a,s)=>{if(ol)a.adoptedStyleSheets=s.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of s){let r=document.createElement("style"),n=rl.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,a.appendChild(r)}},Fh=ol?a=>a:a=>a instanceof CSSStyleSheet?(s=>{let t="";for(let r of s.cssRules)t+=r.cssText;return is(t)})(a):a;var{is:FO,defineProperty:NO,getOwnPropertyDescriptor:HO,getOwnPropertyNames:BO,getOwnPropertySymbols:DO,getPrototypeOf:VO}=Object,sl=globalThis,XE=sl.trustedTypes,qO=XE?XE.emptyScript:"",UO=sl.reactiveElementPolyfillSupport,pn=(a,s)=>a,hn={toAttribute(a,s){switch(s){case Boolean:a=a?qO:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,s){let t=a;switch(s){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},nl=(a,s)=>!FO(a,s),QE={attribute:!0,type:String,converter:hn,reflect:!1,useDefault:!1,hasChanged:nl};Symbol.metadata??=Symbol("metadata"),sl.litPropertyMetadata??=new WeakMap;var Qr=class extends HTMLElement{static addInitializer(s){this._$Ei(),(this.l??=[]).push(s)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(s,t=QE){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(s)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(s,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(s,r,t);n!==void 0&&NO(this.prototype,s,n)}}static getPropertyDescriptor(s,t,r){let{get:n,set:d}=HO(this.prototype,s)??{get(){return this[t]},set(u){this[t]=u}};return{get:n,set(u){let v=n?.call(this);d?.call(this,u),this.requestUpdate(s,v,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(s){return this.elementProperties.get(s)??QE}static _$Ei(){if(this.hasOwnProperty(pn("elementProperties")))return;let s=VO(this);s.finalize(),s.l!==void 0&&(this.l=[...s.l]),this.elementProperties=new Map(s.elementProperties)}static finalize(){if(this.hasOwnProperty(pn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pn("properties"))){let t=this.properties,r=[...BO(t),...DO(t)];for(let n of r)this.createProperty(n,t[n])}let s=this[Symbol.metadata];if(s!==null){let t=litPropertyMetadata.get(s);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){let t=[];if(Array.isArray(s)){let r=new Set(s.flat(1/0).reverse());for(let n of r)t.unshift(Fh(n))}else s!==void 0&&t.push(Fh(s));return t}static _$Eu(s,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof s=="string"?s.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(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(s=>s(this))}addController(s){(this._$EO??=new Set).add(s),this.renderRoot!==void 0&&this.isConnected&&s.hostConnected?.()}removeController(s){this._$EO?.delete(s)}_$E_(){let s=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(s.set(r,this[r]),delete this[r]);s.size>0&&(this._$Ep=s)}createRenderRoot(){let s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return il(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(s=>s.hostConnected?.())}enableUpdating(s){}disconnectedCallback(){this._$EO?.forEach(s=>s.hostDisconnected?.())}attributeChangedCallback(s,t,r){this._$AK(s,r)}_$ET(s,t){let r=this.constructor.elementProperties.get(s),n=this.constructor._$Eu(s,r);if(n!==void 0&&r.reflect===!0){let d=(r.converter?.toAttribute!==void 0?r.converter:hn).toAttribute(t,r.type);this._$Em=s,d==null?this.removeAttribute(n):this.setAttribute(n,d),this._$Em=null}}_$AK(s,t){let r=this.constructor,n=r._$Eh.get(s);if(n!==void 0&&this._$Em!==n){let d=r.getPropertyOptions(n),u=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:hn;this._$Em=n;let v=u.fromAttribute(t,d.type);this[n]=v??this._$Ej?.get(n)??v,this._$Em=null}}requestUpdate(s,t,r,n=!1,d){if(s!==void 0){let u=this.constructor;if(n===!1&&(d=this[s]),r??=u.getPropertyOptions(s),!((r.hasChanged??nl)(d,t)||r.useDefault&&r.reflect&&d===this._$Ej?.get(s)&&!this.hasAttribute(u._$Eu(s,r))))return;this.C(s,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(s,t,{useDefault:r,reflect:n,wrapped:d},u){r&&!(this._$Ej??=new Map).has(s)&&(this._$Ej.set(s,u??t??this[s]),d!==!0||u!==void 0)||(this._$AL.has(s)||(this.hasUpdated||r||(t=void 0),this._$AL.set(s,t)),n===!0&&this._$Em!==s&&(this._$Eq??=new Set).add(s))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let s=this.scheduleUpdate();return s!=null&&await s,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,d]of this._$Ep)this[n]=d;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,d]of r){let{wrapped:u}=d,v=this[n];u!==!0||this._$AL.has(n)||v===void 0||this.C(n,void 0,d,v)}}let s=!1,t=this._$AL;try{s=this.shouldUpdate(t),s?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw s=!1,this._$EM(),r}s&&this._$AE(t)}willUpdate(s){}_$AE(s){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(s)),this.updated(s)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(s){return!0}update(s){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(s){}firstUpdated(s){}};Qr.elementStyles=[],Qr.shadowRootOptions={mode:"open"},Qr[pn("elementProperties")]=new Map,Qr[pn("finalized")]=new Map,UO?.({ReactiveElement:Qr}),(sl.reactiveElementVersions??=[]).push("2.1.2");var Hh=globalThis,JE=a=>a,al=Hh.trustedTypes,ZE=al?al.createPolicy("lit-html",{createHTML:a=>a}):void 0,Bh="$lit$",Jr=`lit$${Math.random().toFixed(9).slice(2)}$`,Dh="?"+Jr,jO=`<${Dh}>`,ti=document,mn=()=>ti.createComment(""),fn=a=>a===null||typeof a!="object"&&typeof a!="function",Vh=Array.isArray,sC=a=>Vh(a)||typeof a?.[Symbol.iterator]=="function",Nh=`[
|
|
2
|
-
\f\r]`,un=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
1
|
+
var MO=Object.create;var zh=Object.defineProperty;var FO=Object.getOwnPropertyDescriptor;var jE=(a,s)=>(s=Symbol[a])?s:Symbol.for("Symbol."+a),rs=a=>{throw TypeError(a)};var WE=(a,s,t)=>s in a?zh(a,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[s]=t;var UE=(a,s)=>zh(a,"name",{value:s,configurable:!0});var C=a=>[,,,MO(a?.[jE("metadata")]??null)],KE=["class","method","getter","setter","accessor","field","value","get","set"],dn=a=>a!==void 0&&typeof a!="function"?rs("Function expected"):a,HO=(a,s,t,r,n)=>({kind:KE[a],name:s,metadata:r,addInitializer:d=>t._?rs("Already initialized"):n.push(dn(d||null))}),E=(a,s)=>WE(s,jE("metadata"),a[3]),o=(a,s,t,r)=>{for(var n=0,d=a[s>>1],u=d&&d.length;n<u;n++)s&1?d[n].call(t):r=d[n].call(t,r);return r},l=(a,s,t,r,n,d)=>{var u,v,w,S,$,y=s&7,A=!!(s&8),R=!!(s&16),P=y>3?a.length+1:y?A?1:2:0,N=KE[y+5],W=y>3&&(a[P-1]=[]),B=a[P]||(a[P]=[]),M=y&&(!R&&!A&&(n=n.prototype),y<5&&(y>3||!R)&&FO(y<4?n:{get[t](){return e(this,d)},set[t](K){return p(this,d,K)}},t));y?R&&y<4&&UE(d,(y>2?"set ":y>1?"get ":"")+t):UE(n,t);for(var q=r.length-1;q>=0;q--)S=HO(y,t,w={},a[3],B),y&&(S.static=A,S.private=R,$=S.access={has:R?K=>NO(n,K):K=>t in K},y^3&&($.get=R?K=>(y^1?e:m)(K,n,y^4?d:M.get):K=>K[t]),y>2&&($.set=R?(K,Xt)=>p(K,n,Xt,y^4?d:M.set):(K,Xt)=>K[t]=Xt)),v=(0,r[q])(y?y<4?R?d:M[N]:y>4?void 0:{get:M.get,set:M.set}:n,S),w._=1,y^4||v===void 0?dn(v)&&(y>4?W.unshift(v):y?R?d=v:M[N]=v:n=v):typeof v!="object"||v===null?rs("Object expected"):(dn(u=v.get)&&(M.get=u),dn(u=v.set)&&(M.set=u),dn(u=v.init)&&W.unshift(u));return y||E(a,n),M&&zh(n,t,M),R?y^4?d:M:n},g=(a,s,t)=>WE(a,typeof s!="symbol"?s+"":s,t),Ph=(a,s,t)=>s.has(a)||rs("Cannot "+t),NO=(a,s)=>Object(s)!==s?rs('Cannot use the "in" operator on this value'):a.has(s),e=(a,s,t)=>(Ph(a,s,"read from private field"),t?t.call(a):s.get(a)),i=(a,s,t)=>s.has(a)?rs("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,t),p=(a,s,t,r)=>(Ph(a,s,"write to private field"),r?r.call(a,t):s.set(a,t),t),m=(a,s,t)=>(Ph(a,s,"access private method"),t);var os=(a,s,t,r)=>({set _(n){p(a,s,n,t)},get _(){return e(a,s,r)}});function BO(a){let s=new Set,t=[];function r(n){if(!s.has(n.tagName)){if(s.add(n.tagName),n.dependencies)for(let d of n.dependencies)r(d);t.push(n)}}for(let n of a)r(n);return t}var GE=null;function YE(){return GE}function XE({theme:a,components:s}){GE=a,document.adoptedStyleSheets.includes(a.tokens)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,a.tokens]),a.prose&&!document.adoptedStyleSheets.includes(a.prose)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,a.prose]);let t=BO(s);for(let r of t){let n=r.tagName;if(customElements.get(n))continue;let d=a.styles.get(n),v=[...Array.isArray(r.styles)?r.styles:r.styles?[r.styles]:[],a.base,...d?[d]:[]],w=class extends r{static styles=v};customElements.define(n,w)}}var rl=globalThis,ol=rl.ShadowRoot&&(rl.ShadyCSS===void 0||rl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mh=Symbol(),QE=new WeakMap,cn=class{constructor(s,t,r){if(this._$cssResult$=!0,r!==Mh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=s,this.t=t}get styleSheet(){let s=this.o,t=this.t;if(ol&&s===void 0){let r=t!==void 0&&t.length===1;r&&(s=QE.get(t)),s===void 0&&((this.o=s=new CSSStyleSheet).replaceSync(this.cssText),r&&QE.set(t,s))}return s}toString(){return this.cssText}},is=a=>new cn(typeof a=="string"?a:a+"",void 0,Mh),c=(a,...s)=>{let t=a.length===1?a[0]:s.reduce((r,n,d)=>r+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+a[d+1],a[0]);return new cn(t,a,Mh)},il=(a,s)=>{if(ol)a.adoptedStyleSheets=s.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of s){let r=document.createElement("style"),n=rl.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,a.appendChild(r)}},Fh=ol?a=>a:a=>a instanceof CSSStyleSheet?(s=>{let t="";for(let r of s.cssRules)t+=r.cssText;return is(t)})(a):a;var{is:DO,defineProperty:VO,getOwnPropertyDescriptor:qO,getOwnPropertyNames:UO,getOwnPropertySymbols:jO,getPrototypeOf:WO}=Object,sl=globalThis,JE=sl.trustedTypes,KO=JE?JE.emptyScript:"",GO=sl.reactiveElementPolyfillSupport,pn=(a,s)=>a,hn={toAttribute(a,s){switch(s){case Boolean:a=a?KO:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,s){let t=a;switch(s){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},nl=(a,s)=>!DO(a,s),ZE={attribute:!0,type:String,converter:hn,reflect:!1,useDefault:!1,hasChanged:nl};Symbol.metadata??=Symbol("metadata"),sl.litPropertyMetadata??=new WeakMap;var Qr=class extends HTMLElement{static addInitializer(s){this._$Ei(),(this.l??=[]).push(s)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(s,t=ZE){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(s)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(s,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(s,r,t);n!==void 0&&VO(this.prototype,s,n)}}static getPropertyDescriptor(s,t,r){let{get:n,set:d}=qO(this.prototype,s)??{get(){return this[t]},set(u){this[t]=u}};return{get:n,set(u){let v=n?.call(this);d?.call(this,u),this.requestUpdate(s,v,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(s){return this.elementProperties.get(s)??ZE}static _$Ei(){if(this.hasOwnProperty(pn("elementProperties")))return;let s=WO(this);s.finalize(),s.l!==void 0&&(this.l=[...s.l]),this.elementProperties=new Map(s.elementProperties)}static finalize(){if(this.hasOwnProperty(pn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pn("properties"))){let t=this.properties,r=[...UO(t),...jO(t)];for(let n of r)this.createProperty(n,t[n])}let s=this[Symbol.metadata];if(s!==null){let t=litPropertyMetadata.get(s);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){let t=[];if(Array.isArray(s)){let r=new Set(s.flat(1/0).reverse());for(let n of r)t.unshift(Fh(n))}else s!==void 0&&t.push(Fh(s));return t}static _$Eu(s,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof s=="string"?s.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(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(s=>s(this))}addController(s){(this._$EO??=new Set).add(s),this.renderRoot!==void 0&&this.isConnected&&s.hostConnected?.()}removeController(s){this._$EO?.delete(s)}_$E_(){let s=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(s.set(r,this[r]),delete this[r]);s.size>0&&(this._$Ep=s)}createRenderRoot(){let s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return il(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(s=>s.hostConnected?.())}enableUpdating(s){}disconnectedCallback(){this._$EO?.forEach(s=>s.hostDisconnected?.())}attributeChangedCallback(s,t,r){this._$AK(s,r)}_$ET(s,t){let r=this.constructor.elementProperties.get(s),n=this.constructor._$Eu(s,r);if(n!==void 0&&r.reflect===!0){let d=(r.converter?.toAttribute!==void 0?r.converter:hn).toAttribute(t,r.type);this._$Em=s,d==null?this.removeAttribute(n):this.setAttribute(n,d),this._$Em=null}}_$AK(s,t){let r=this.constructor,n=r._$Eh.get(s);if(n!==void 0&&this._$Em!==n){let d=r.getPropertyOptions(n),u=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:hn;this._$Em=n;let v=u.fromAttribute(t,d.type);this[n]=v??this._$Ej?.get(n)??v,this._$Em=null}}requestUpdate(s,t,r,n=!1,d){if(s!==void 0){let u=this.constructor;if(n===!1&&(d=this[s]),r??=u.getPropertyOptions(s),!((r.hasChanged??nl)(d,t)||r.useDefault&&r.reflect&&d===this._$Ej?.get(s)&&!this.hasAttribute(u._$Eu(s,r))))return;this.C(s,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(s,t,{useDefault:r,reflect:n,wrapped:d},u){r&&!(this._$Ej??=new Map).has(s)&&(this._$Ej.set(s,u??t??this[s]),d!==!0||u!==void 0)||(this._$AL.has(s)||(this.hasUpdated||r||(t=void 0),this._$AL.set(s,t)),n===!0&&this._$Em!==s&&(this._$Eq??=new Set).add(s))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let s=this.scheduleUpdate();return s!=null&&await s,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,d]of this._$Ep)this[n]=d;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,d]of r){let{wrapped:u}=d,v=this[n];u!==!0||this._$AL.has(n)||v===void 0||this.C(n,void 0,d,v)}}let s=!1,t=this._$AL;try{s=this.shouldUpdate(t),s?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw s=!1,this._$EM(),r}s&&this._$AE(t)}willUpdate(s){}_$AE(s){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(s)),this.updated(s)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(s){return!0}update(s){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(s){}firstUpdated(s){}};Qr.elementStyles=[],Qr.shadowRootOptions={mode:"open"},Qr[pn("elementProperties")]=new Map,Qr[pn("finalized")]=new Map,GO?.({ReactiveElement:Qr}),(sl.reactiveElementVersions??=[]).push("2.1.2");var Nh=globalThis,tC=a=>a,al=Nh.trustedTypes,eC=al?al.createPolicy("lit-html",{createHTML:a=>a}):void 0,Bh="$lit$",Jr=`lit$${Math.random().toFixed(9).slice(2)}$`,Dh="?"+Jr,YO=`<${Dh}>`,ti=document,mn=()=>ti.createComment(""),fn=a=>a===null||typeof a!="object"&&typeof a!="function",Vh=Array.isArray,aC=a=>Vh(a)||typeof a?.[Symbol.iterator]=="function",Hh=`[
|
|
2
|
+
\f\r]`,un=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rC=/-->/g,oC=/>/g,Jo=RegExp(`>|${Hh}(?:([^\\s"'>=/]+)(${Hh}*=${Hh}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),iC=/'/g,sC=/"/g,lC=/^(?:script|style|textarea|title)$/i,qh=a=>(s,...t)=>({_$litType$:a,strings:s,values:t}),f=qh(1),ul=qh(2),wM=qh(3),te=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),nC=new WeakMap,Zo=ti.createTreeWalker(ti,129);function dC(a,s){if(!Vh(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return eC!==void 0?eC.createHTML(s):s}var cC=(a,s)=>{let t=a.length-1,r=[],n,d=s===2?"<svg>":s===3?"<math>":"",u=un;for(let v=0;v<t;v++){let w=a[v],S,$,y=-1,A=0;for(;A<w.length&&(u.lastIndex=A,$=u.exec(w),$!==null);)A=u.lastIndex,u===un?$[1]==="!--"?u=rC:$[1]!==void 0?u=oC:$[2]!==void 0?(lC.test($[2])&&(n=RegExp("</"+$[2],"g")),u=Jo):$[3]!==void 0&&(u=Jo):u===Jo?$[0]===">"?(u=n??un,y=-1):$[1]===void 0?y=-2:(y=u.lastIndex-$[2].length,S=$[1],u=$[3]===void 0?Jo:$[3]==='"'?sC:iC):u===sC||u===iC?u=Jo:u===rC||u===oC?u=un:(u=Jo,n=void 0);let R=u===Jo&&a[v+1].startsWith("/>")?" ":"";d+=u===un?w+YO:y>=0?(r.push(S),w.slice(0,y)+Bh+w.slice(y)+Jr+R):w+Jr+(y===-2?v:R)}return[dC(a,d+(a[t]||"<?>")+(s===2?"</svg>":s===3?"</math>":"")),r]},vn=class a{constructor({strings:s,_$litType$:t},r){let n;this.parts=[];let d=0,u=0,v=s.length-1,w=this.parts,[S,$]=cC(s,t);if(this.el=a.createElement(S,r),Zo.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=Zo.nextNode())!==null&&w.length<v;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Bh)){let A=$[u++],R=n.getAttribute(y).split(Jr),P=/([.?@])?(.*)/.exec(A);w.push({type:1,index:d,name:P[2],strings:R,ctor:P[1]==="."?dl:P[1]==="?"?cl:P[1]==="@"?pl:ri}),n.removeAttribute(y)}else y.startsWith(Jr)&&(w.push({type:6,index:d}),n.removeAttribute(y));if(lC.test(n.tagName)){let y=n.textContent.split(Jr),A=y.length-1;if(A>0){n.textContent=al?al.emptyScript:"";for(let R=0;R<A;R++)n.append(y[R],mn()),Zo.nextNode(),w.push({type:2,index:++d});n.append(y[A],mn())}}}else if(n.nodeType===8)if(n.data===Dh)w.push({type:2,index:d});else{let y=-1;for(;(y=n.data.indexOf(Jr,y+1))!==-1;)w.push({type:7,index:d}),y+=Jr.length-1}d++}}static createElement(s,t){let r=ti.createElement("template");return r.innerHTML=s,r}};function ei(a,s,t=a,r){if(s===te)return s;let n=r!==void 0?t._$Co?.[r]:t._$Cl,d=fn(s)?void 0:s._$litDirective$;return n?.constructor!==d&&(n?._$AO?.(!1),d===void 0?n=void 0:(n=new d(a),n._$AT(a,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(s=ei(a,n._$AS(a,s.values),n,r)),s}var ll=class{constructor(s,t){this._$AV=[],this._$AN=void 0,this._$AD=s,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(s){let{el:{content:t},parts:r}=this._$AD,n=(s?.creationScope??ti).importNode(t,!0);Zo.currentNode=n;let d=Zo.nextNode(),u=0,v=0,w=r[0];for(;w!==void 0;){if(u===w.index){let S;w.type===2?S=new ss(d,d.nextSibling,this,s):w.type===1?S=new w.ctor(d,w.name,w.strings,this,s):w.type===6&&(S=new hl(d,this,s)),this._$AV.push(S),w=r[++v]}u!==w?.index&&(d=Zo.nextNode(),u++)}return Zo.currentNode=ti,n}p(s){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(s,r,t),t+=r.strings.length-2):r._$AI(s[t])),t++}},ss=class a{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(s,t,r,n){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=s,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let s=this._$AA.parentNode,t=this._$AM;return t!==void 0&&s?.nodeType===11&&(s=t.parentNode),s}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(s,t=this){s=ei(this,s,t),fn(s)?s===I||s==null||s===""?(this._$AH!==I&&this._$AR(),this._$AH=I):s!==this._$AH&&s!==te&&this._(s):s._$litType$!==void 0?this.$(s):s.nodeType!==void 0?this.T(s):aC(s)?this.k(s):this._(s)}O(s){return this._$AA.parentNode.insertBefore(s,this._$AB)}T(s){this._$AH!==s&&(this._$AR(),this._$AH=this.O(s))}_(s){this._$AH!==I&&fn(this._$AH)?this._$AA.nextSibling.data=s:this.T(ti.createTextNode(s)),this._$AH=s}$(s){let{values:t,_$litType$:r}=s,n=typeof r=="number"?this._$AC(s):(r.el===void 0&&(r.el=vn.createElement(dC(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let d=new ll(n,this),u=d.u(this.options);d.p(t),this.T(u),this._$AH=d}}_$AC(s){let t=nC.get(s.strings);return t===void 0&&nC.set(s.strings,t=new vn(s)),t}k(s){Vh(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let d of s)n===t.length?t.push(r=new a(this.O(mn()),this.O(mn()),this,this.options)):r=t[n],r._$AI(d),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(s=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);s!==this._$AB;){let r=tC(s).nextSibling;tC(s).remove(),s=r}}setConnected(s){this._$AM===void 0&&(this._$Cv=s,this._$AP?.(s))}},ri=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(s,t,r,n,d){this.type=1,this._$AH=I,this._$AN=void 0,this.element=s,this.name=t,this._$AM=n,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=I}_$AI(s,t=this,r,n){let d=this.strings,u=!1;if(d===void 0)s=ei(this,s,t,0),u=!fn(s)||s!==this._$AH&&s!==te,u&&(this._$AH=s);else{let v=s,w,S;for(s=d[0],w=0;w<d.length-1;w++)S=ei(this,v[r+w],t,w),S===te&&(S=this._$AH[w]),u||=!fn(S)||S!==this._$AH[w],S===I?s=I:s!==I&&(s+=(S??"")+d[w+1]),this._$AH[w]=S}u&&!n&&this.j(s)}j(s){s===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,s??"")}},dl=class extends ri{constructor(){super(...arguments),this.type=3}j(s){this.element[this.name]=s===I?void 0:s}},cl=class extends ri{constructor(){super(...arguments),this.type=4}j(s){this.element.toggleAttribute(this.name,!!s&&s!==I)}},pl=class extends ri{constructor(s,t,r,n,d){super(s,t,r,n,d),this.type=5}_$AI(s,t=this){if((s=ei(this,s,t,0)??I)===te)return;let r=this._$AH,n=s===I&&r!==I||s.capture!==r.capture||s.once!==r.once||s.passive!==r.passive,d=s!==I&&(r===I||n);n&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,s),this._$AH=s}handleEvent(s){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,s):this._$AH.handleEvent(s)}},hl=class{constructor(s,t,r){this.element=s,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(s){ei(this,s)}},pC={M:Bh,P:Jr,A:Dh,C:1,L:cC,R:ll,D:aC,V:ei,I:ss,H:ri,N:cl,U:pl,B:dl,F:hl},XO=Nh.litHtmlPolyfillSupport;XO?.(vn,ss),(Nh.litHtmlVersions??=[]).push("3.3.2");var ml=(a,s,t)=>{let r=t?.renderBefore??s,n=r._$litPart$;if(n===void 0){let d=t?.renderBefore??null;r._$litPart$=n=new ss(s.insertBefore(mn(),d),d,void 0,t??{})}return n._$AI(a),n};var Uh=globalThis,b=class extends Qr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let s=super.createRenderRoot();return this.renderOptions.renderBefore??=s.firstChild,s}update(s){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(s),this._$Do=ml(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return te}};b._$litElement$=!0,b.finalized=!0,Uh.litElementHydrateSupport?.({LitElement:b});var QO=Uh.litElementPolyfillSupport;QO?.({LitElement:b});(Uh.litElementVersions??=[]).push("4.2.2");var jh=c`
|
|
4
4
|
:host {
|
|
5
5
|
font-size: inherit;
|
|
6
6
|
letter-spacing: inherit;
|
|
7
7
|
font-optical-sizing: auto;
|
|
8
|
+
-webkit-font-smoothing: antialiased;
|
|
9
|
+
-moz-osx-font-smoothing: grayscale;
|
|
8
10
|
}
|
|
9
11
|
`;var Wh=c`
|
|
10
12
|
::slotted(:last-child) {
|
|
11
13
|
--accordion-item-border: none;
|
|
12
14
|
}
|
|
13
|
-
`;var
|
|
15
|
+
`;var hC=is(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`),Kh=c`
|
|
14
16
|
/* ── Item ── */
|
|
15
17
|
|
|
16
18
|
[part="item"] {
|
|
@@ -64,8 +66,8 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
64
66
|
height: var(--space-4);
|
|
65
67
|
flex-shrink: 0;
|
|
66
68
|
background: currentColor;
|
|
67
|
-
-webkit-mask: ${
|
|
68
|
-
mask: ${
|
|
69
|
+
-webkit-mask: ${hC} center / contain no-repeat;
|
|
70
|
+
mask: ${hC} center / contain no-repeat;
|
|
69
71
|
transition-property: transform;
|
|
70
72
|
transition-duration: var(--duration-fast);
|
|
71
73
|
transition-timing-function: var(--ease-out-3);
|
|
@@ -486,19 +488,6 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
486
488
|
border: var(--border-width-thin) solid var(--badge-border);
|
|
487
489
|
}
|
|
488
490
|
`;var Qh=c`
|
|
489
|
-
.ScrollFade {
|
|
490
|
-
box-shadow: var(--scroll-fade-offset-x, 0) var(--scroll-fade-offset-y, 0)
|
|
491
|
-
var(--scroll-fade-blur-radius, var(--space-3))
|
|
492
|
-
var(--scroll-fade-spread-radius, var(--space-2))
|
|
493
|
-
var(--scroll-fade-color, var(--background));
|
|
494
|
-
opacity: 0;
|
|
495
|
-
transition: opacity var(--duration-fast) ease;
|
|
496
|
-
|
|
497
|
-
&[data-scrolled] {
|
|
498
|
-
opacity: 1;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
491
|
.Scrollbar {
|
|
503
492
|
border-radius: var(--radius-sm);
|
|
504
493
|
transition: opacity var(--duration-fast);
|
|
@@ -746,15 +735,16 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
746
735
|
}
|
|
747
736
|
`;var eu=c``;var ru=c`
|
|
748
737
|
.Popup {
|
|
749
|
-
padding: var(--space-
|
|
738
|
+
padding: var(--popover-popup-padding, var(--space-4));
|
|
750
739
|
border-radius: var(--radius-md);
|
|
751
740
|
background: var(--surface-3);
|
|
752
741
|
color: var(--text-1);
|
|
753
742
|
font-family: var(--font-sans);
|
|
754
|
-
font-size: var(--text-sm);
|
|
743
|
+
font-size: var(--text-sm);
|
|
744
|
+
line-height: var(--text-sm--line-height);
|
|
755
745
|
box-shadow: var(--shadow-md);
|
|
756
746
|
border: var(--border-width-thin) solid var(--border);
|
|
757
|
-
transition-duration: var(--duration-
|
|
747
|
+
transition-duration: var(--duration-faster);
|
|
758
748
|
transition-timing-function: var(--ease-out-3);
|
|
759
749
|
}
|
|
760
750
|
|
|
@@ -769,7 +759,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
769
759
|
}
|
|
770
760
|
`;var ou=c``;var iu=c`
|
|
771
761
|
.Popup {
|
|
772
|
-
padding: var(--space-
|
|
762
|
+
padding: var(--space-2) var(--space-2);
|
|
773
763
|
border-radius: var(--radius-sm);
|
|
774
764
|
background: color-mix(
|
|
775
765
|
in oklch,
|
|
@@ -1032,7 +1022,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1032
1022
|
[part="root"][data-disabled] {
|
|
1033
1023
|
opacity: 0.4;
|
|
1034
1024
|
}
|
|
1035
|
-
`;var
|
|
1025
|
+
`;var uC=is(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`),gu=c`
|
|
1036
1026
|
/* ── Trigger ── */
|
|
1037
1027
|
|
|
1038
1028
|
[part="trigger"] {
|
|
@@ -1077,8 +1067,8 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1077
1067
|
height: var(--space-4);
|
|
1078
1068
|
flex-shrink: 0;
|
|
1079
1069
|
background: currentColor;
|
|
1080
|
-
-webkit-mask: ${
|
|
1081
|
-
mask: ${
|
|
1070
|
+
-webkit-mask: ${uC} center / contain no-repeat;
|
|
1071
|
+
mask: ${uC} center / contain no-repeat;
|
|
1082
1072
|
transition-property: transform;
|
|
1083
1073
|
transition-duration: var(--duration-fast);
|
|
1084
1074
|
transition-timing-function: var(--ease-out-3);
|
|
@@ -1126,36 +1116,18 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1126
1116
|
}
|
|
1127
1117
|
|
|
1128
1118
|
:host([inset]) [part="root"] {
|
|
1129
|
-
padding-top: var(--space-2);
|
|
1130
|
-
padding-bottom: var(--space-2);
|
|
1131
|
-
padding-left: var(--space-4);
|
|
1132
|
-
padding-right: var(--space-4);
|
|
1119
|
+
padding-top: var(--toolbar-padding-y, var(--space-2));
|
|
1120
|
+
padding-bottom: var(--toolbar-padding-y, var(--space-2));
|
|
1121
|
+
padding-left: var(--toolbar-padding-x, var(--space-4));
|
|
1122
|
+
padding-right: var(--toolbar-padding-x, var(--space-4));
|
|
1133
1123
|
}
|
|
1134
1124
|
|
|
1135
1125
|
:host([inset][has-button-left]) [part="root"] {
|
|
1136
|
-
padding-left: var(--space-2);
|
|
1126
|
+
padding-left: var(--toolbar-padding-x-button, var(--space-2));
|
|
1137
1127
|
}
|
|
1138
1128
|
|
|
1139
1129
|
:host([inset][has-button-right]) [part="root"] {
|
|
1140
|
-
padding-right: var(--space-2);
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
/* ── Size variants ── */
|
|
1144
|
-
|
|
1145
|
-
:host([size="sm"]) [part="root"] {
|
|
1146
|
-
height: var(--component-height-sm);
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
:host([size="md"]) [part="root"] {
|
|
1150
|
-
height: var(--component-height-md);
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
:host([size="lg"]) [part="root"] {
|
|
1154
|
-
height: var(--component-height-lg);
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
:host([size="xl"]) [part="root"] {
|
|
1158
|
-
height: var(--component-height-xl);
|
|
1130
|
+
padding-right: var(--toolbar-padding-x-button, var(--space-2));
|
|
1159
1131
|
}
|
|
1160
1132
|
|
|
1161
1133
|
/* ── Slot containers ── */
|
|
@@ -1506,7 +1478,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1506
1478
|
font-weight: var(--font-weight-medium);
|
|
1507
1479
|
line-height: var(--line-height-none);
|
|
1508
1480
|
}
|
|
1509
|
-
`;var
|
|
1481
|
+
`;var Iu=c``;var Au=c`
|
|
1510
1482
|
[part="input"] {
|
|
1511
1483
|
padding: var(--space-2);
|
|
1512
1484
|
font-family: var(--font-sans);
|
|
@@ -1624,13 +1596,14 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1624
1596
|
border-radius: var(--radius-md);
|
|
1625
1597
|
background: var(--background);
|
|
1626
1598
|
color: var(--text-1);
|
|
1599
|
+
font-size: var(--text-sm);
|
|
1627
1600
|
padding: var(--space-4);
|
|
1628
1601
|
transition-property: border-color, background, color, box-shadow, filter, transform;
|
|
1629
1602
|
transition-duration: var(--duration-fast);
|
|
1630
1603
|
}
|
|
1631
1604
|
|
|
1632
1605
|
[part="root"]:hover {
|
|
1633
|
-
border-color: var(--
|
|
1606
|
+
border-color: var(--border-strong);
|
|
1634
1607
|
background: var(--surface-1);
|
|
1635
1608
|
}
|
|
1636
1609
|
|
|
@@ -1656,7 +1629,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1656
1629
|
|
|
1657
1630
|
[part="label"] {
|
|
1658
1631
|
font-family: var(--font-sans);
|
|
1659
|
-
font-size: var(--
|
|
1632
|
+
font-size: var(--text-sm);
|
|
1660
1633
|
font-weight: var(--font-weight-medium);
|
|
1661
1634
|
line-height: var(--line-height-normal);
|
|
1662
1635
|
color: var(--text-1);
|
|
@@ -1668,7 +1641,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1668
1641
|
|
|
1669
1642
|
[part="description"] {
|
|
1670
1643
|
font-family: var(--font-sans);
|
|
1671
|
-
font-size: var(--
|
|
1644
|
+
font-size: var(--text-xs);
|
|
1672
1645
|
line-height: var(--line-height-normal);
|
|
1673
1646
|
color: var(--text-3);
|
|
1674
1647
|
margin: 0;
|
|
@@ -1676,7 +1649,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1676
1649
|
|
|
1677
1650
|
[part="error"][data-invalid] {
|
|
1678
1651
|
font-family: var(--font-sans);
|
|
1679
|
-
font-size: var(--
|
|
1652
|
+
font-size: var(--text-xs);
|
|
1680
1653
|
line-height: var(--line-height-normal);
|
|
1681
1654
|
color: var(--destructive);
|
|
1682
1655
|
margin: 0;
|
|
@@ -1694,7 +1667,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1694
1667
|
|
|
1695
1668
|
[part="legend"] {
|
|
1696
1669
|
font-family: var(--font-sans);
|
|
1697
|
-
font-size: var(--
|
|
1670
|
+
font-size: var(--text-sm);
|
|
1698
1671
|
font-weight: var(--font-weight-semibold);
|
|
1699
1672
|
line-height: var(--line-height-normal);
|
|
1700
1673
|
color: var(--text-1);
|
|
@@ -1712,7 +1685,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1712
1685
|
font-family: var(--font-sans);
|
|
1713
1686
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
1714
1687
|
transition-property: border-color, box-shadow, background, filter, transform;
|
|
1715
|
-
transition-duration: var(--duration-
|
|
1688
|
+
transition-duration: var(--duration-fastest);
|
|
1716
1689
|
}
|
|
1717
1690
|
|
|
1718
1691
|
.Trigger:focus {
|
|
@@ -1777,6 +1750,19 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1777
1750
|
transform: translateY(calc(var(--space-1) * -1));
|
|
1778
1751
|
}
|
|
1779
1752
|
|
|
1753
|
+
/* When inner-aligned (macOS-style), appear/disappear instantly.
|
|
1754
|
+
transition: none — prevents the 200ms onTransitionEnd fallback delay.
|
|
1755
|
+
transform: none — prevents translateY flash and getBoundingClientRect distortion.
|
|
1756
|
+
Structural opacity:0 on starting/ending-style hides the popup immediately on close. */
|
|
1757
|
+
.Popup[data-align-inner] {
|
|
1758
|
+
transition: none;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
.Popup[data-align-inner][data-starting-style],
|
|
1762
|
+
.Popup[data-align-inner][data-ending-style] {
|
|
1763
|
+
transform: none;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1780
1766
|
.Listbox {
|
|
1781
1767
|
padding: var(--space-1);
|
|
1782
1768
|
}
|
|
@@ -1811,18 +1797,19 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1811
1797
|
.ItemIndicator dui-icon {
|
|
1812
1798
|
--icon-size: var(--space-3_5);
|
|
1813
1799
|
}
|
|
1814
|
-
`;var Fu=c``;var
|
|
1800
|
+
`;var Fu=c``;var Hu=c`
|
|
1815
1801
|
.Popup {
|
|
1816
|
-
padding: var(--space-4);
|
|
1802
|
+
padding: var(--preview-card-popup-padding, var(--space-4));
|
|
1817
1803
|
border-radius: var(--radius-md);
|
|
1818
1804
|
background: var(--surface-3);
|
|
1819
1805
|
color: var(--text-1);
|
|
1820
1806
|
font-family: var(--font-sans);
|
|
1821
|
-
font-size: var(--text-sm);
|
|
1807
|
+
font-size: var(--text-sm);
|
|
1808
|
+
line-height: var(--text-sm--line-height);
|
|
1822
1809
|
box-shadow: var(--shadow-lg);
|
|
1823
1810
|
border: var(--border-width-thin) solid var(--border);
|
|
1824
1811
|
max-width: var(--max-width, var(--space-80));
|
|
1825
|
-
transition-duration: var(--duration-
|
|
1812
|
+
transition-duration: var(--duration-faster);
|
|
1826
1813
|
transition-timing-function: var(--ease-out-3);
|
|
1827
1814
|
}
|
|
1828
1815
|
|
|
@@ -1835,7 +1822,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
1835
1822
|
stroke: var(--border);
|
|
1836
1823
|
stroke-width: 1px;
|
|
1837
1824
|
}
|
|
1838
|
-
`;var
|
|
1825
|
+
`;var Nu=c`
|
|
1839
1826
|
.DataTable {
|
|
1840
1827
|
gap: var(--space-2);
|
|
1841
1828
|
}
|
|
@@ -2258,6 +2245,10 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2258
2245
|
background: var(--sidebar-separator);
|
|
2259
2246
|
}
|
|
2260
2247
|
`;var nm=c``;var am=c`
|
|
2248
|
+
:host {
|
|
2249
|
+
--separator-margin: 0;
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2261
2252
|
[part="root"] {
|
|
2262
2253
|
border: none;
|
|
2263
2254
|
}
|
|
@@ -2265,12 +2256,16 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2265
2256
|
:host([orientation="horizontal"]) [part="root"] {
|
|
2266
2257
|
height: 0;
|
|
2267
2258
|
border-top: var(--border-width-thin) solid var(--border);
|
|
2259
|
+
margin-top: var(--separator-margin);
|
|
2260
|
+
margin-bottom: var(--separator-margin);
|
|
2268
2261
|
}
|
|
2269
2262
|
|
|
2270
2263
|
:host([orientation="vertical"]) [part="root"] {
|
|
2271
2264
|
width: 0;
|
|
2272
2265
|
height: 100%;
|
|
2273
2266
|
border-left: var(--border-width-thin) solid var(--border);
|
|
2267
|
+
margin-left: var(--separator-margin);
|
|
2268
|
+
margin-right: var(--separator-margin);
|
|
2274
2269
|
}
|
|
2275
2270
|
`;var lm=c`
|
|
2276
2271
|
/* =================================================================
|
|
@@ -2291,19 +2286,25 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2291
2286
|
:host([variant="neutral"]) {
|
|
2292
2287
|
--_intent-base: var(--foreground);
|
|
2293
2288
|
--_intent-base-fg: var(--background);
|
|
2289
|
+
--_intent-subtle: oklch(from var(--foreground) l c h / 0.08);
|
|
2294
2290
|
--_intent-subtle-fg: var(--text-1);
|
|
2291
|
+
--_intent-border: var(--border);
|
|
2295
2292
|
}
|
|
2296
2293
|
|
|
2297
2294
|
:host([variant="primary"]) {
|
|
2298
2295
|
--_intent-base: var(--accent);
|
|
2299
2296
|
--_intent-base-fg: oklch(from var(--accent) 0.98 0.01 h);
|
|
2297
|
+
--_intent-subtle: var(--accent-subtle);
|
|
2300
2298
|
--_intent-subtle-fg: var(--accent-text);
|
|
2299
|
+
--_intent-border: oklch(from var(--accent) l c h / 0.5);
|
|
2301
2300
|
}
|
|
2302
2301
|
|
|
2303
2302
|
:host([variant="danger"]) {
|
|
2304
2303
|
--_intent-base: var(--destructive);
|
|
2305
2304
|
--_intent-base-fg: oklch(from var(--destructive) 0.98 0.01 h);
|
|
2305
|
+
--_intent-subtle: var(--destructive-subtle);
|
|
2306
2306
|
--_intent-subtle-fg: var(--destructive-text);
|
|
2307
|
+
--_intent-border: oklch(from var(--destructive) l c h / 0.5);
|
|
2307
2308
|
}
|
|
2308
2309
|
|
|
2309
2310
|
/* ---------------------------------------------------------------
|
|
@@ -2333,6 +2334,13 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2333
2334
|
--sb-divider: var(--border);
|
|
2334
2335
|
}
|
|
2335
2336
|
|
|
2337
|
+
:host([appearance="soft"]) {
|
|
2338
|
+
--sb-bg: var(--_intent-subtle);
|
|
2339
|
+
--sb-fg: var(--_intent-subtle-fg);
|
|
2340
|
+
--sb-border: transparent;
|
|
2341
|
+
--sb-divider: oklch(from var(--_intent-base) l c h / 0.15);
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2336
2344
|
/* ---------------------------------------------------------------
|
|
2337
2345
|
* Sizes
|
|
2338
2346
|
* --------------------------------------------------------------- */
|
|
@@ -2346,6 +2354,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2346
2354
|
--sb-radius: var(--radius-md);
|
|
2347
2355
|
--sb-font-size: var(--text-sm);
|
|
2348
2356
|
--sb-icon-size: var(--space-4_5);
|
|
2357
|
+
--sb-trigger-icon-size: var(--space-4);
|
|
2349
2358
|
}
|
|
2350
2359
|
|
|
2351
2360
|
:host([size="xs"]) {
|
|
@@ -2356,6 +2365,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2356
2365
|
--sb-gap: var(--space-1);
|
|
2357
2366
|
--sb-font-size: var(--text-xs);
|
|
2358
2367
|
--sb-icon-size: var(--space-3_5);
|
|
2368
|
+
--sb-trigger-icon-size: var(--space-3);
|
|
2359
2369
|
}
|
|
2360
2370
|
|
|
2361
2371
|
:host([size="sm"]) {
|
|
@@ -2366,6 +2376,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2366
2376
|
--sb-gap: var(--space-1);
|
|
2367
2377
|
--sb-font-size: var(--text-xs);
|
|
2368
2378
|
--sb-icon-size: var(--space-4);
|
|
2379
|
+
--sb-trigger-icon-size: var(--space-3_5);
|
|
2369
2380
|
}
|
|
2370
2381
|
|
|
2371
2382
|
:host([size="lg"]) {
|
|
@@ -2376,6 +2387,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2376
2387
|
--sb-gap: var(--space-1_5);
|
|
2377
2388
|
--sb-font-size: var(--text-sm);
|
|
2378
2389
|
--sb-icon-size: var(--space-4_5);
|
|
2390
|
+
--sb-trigger-icon-size: var(--space-4);
|
|
2379
2391
|
}
|
|
2380
2392
|
|
|
2381
2393
|
/* ---------------------------------------------------------------
|
|
@@ -2430,10 +2442,11 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2430
2442
|
* --------------------------------------------------------------- */
|
|
2431
2443
|
|
|
2432
2444
|
[part="trigger"] {
|
|
2433
|
-
--icon-size: var(--sb-icon-size);
|
|
2445
|
+
--icon-size: var(--sb-trigger-icon-size);
|
|
2434
2446
|
--icon-color: var(--sb-fg);
|
|
2435
2447
|
padding: 0 var(--sb-trigger-padding-x);
|
|
2436
2448
|
height: 100%;
|
|
2449
|
+
background: var(--sb-trigger-bg, var(--sb-bg));
|
|
2437
2450
|
color: inherit;
|
|
2438
2451
|
transition-property: background, filter;
|
|
2439
2452
|
transition-duration: var(--duration-faster);
|
|
@@ -2445,29 +2458,29 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2445
2458
|
* --------------------------------------------------------------- */
|
|
2446
2459
|
|
|
2447
2460
|
/* Filled hover */
|
|
2448
|
-
:host(:not([appearance="outline"]):not([appearance="ghost"]))
|
|
2461
|
+
:host(:not([appearance="outline"]):not([appearance="ghost"]):not([appearance="soft"]))
|
|
2449
2462
|
[part="action"]:hover:not(:disabled) {
|
|
2450
2463
|
filter: brightness(0.88);
|
|
2451
2464
|
}
|
|
2452
2465
|
|
|
2453
|
-
:host(:not([appearance="outline"]):not([appearance="ghost"]))
|
|
2466
|
+
:host(:not([appearance="outline"]):not([appearance="ghost"]):not([appearance="soft"]))
|
|
2454
2467
|
[part="trigger"]:hover:not(:disabled) {
|
|
2455
2468
|
filter: brightness(0.88);
|
|
2456
2469
|
}
|
|
2457
2470
|
|
|
2458
2471
|
/* Filled active */
|
|
2459
|
-
:host(:not([appearance="outline"]):not([appearance="ghost"]))
|
|
2472
|
+
:host(:not([appearance="outline"]):not([appearance="ghost"]):not([appearance="soft"]))
|
|
2460
2473
|
[part="action"]:active:not(:disabled) {
|
|
2461
2474
|
filter: brightness(0.80);
|
|
2462
2475
|
}
|
|
2463
2476
|
|
|
2464
|
-
:host(:not([appearance="outline"]):not([appearance="ghost"]))
|
|
2477
|
+
:host(:not([appearance="outline"]):not([appearance="ghost"]):not([appearance="soft"]))
|
|
2465
2478
|
[part="trigger"]:active:not(:disabled) {
|
|
2466
2479
|
filter: brightness(0.80);
|
|
2467
2480
|
}
|
|
2468
2481
|
|
|
2469
2482
|
/* Filled trigger open state */
|
|
2470
|
-
:host(:not([appearance="outline"]):not([appearance="ghost"]))
|
|
2483
|
+
:host(:not([appearance="outline"]):not([appearance="ghost"]):not([appearance="soft"]))
|
|
2471
2484
|
[part="trigger"][data-open]:not(:disabled) {
|
|
2472
2485
|
filter: brightness(0.80);
|
|
2473
2486
|
}
|
|
@@ -2475,29 +2488,52 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2475
2488
|
/* Ghost / outline hover */
|
|
2476
2489
|
:host([appearance="ghost"]) [part="action"]:hover:not(:disabled),
|
|
2477
2490
|
:host([appearance="outline"]) [part="action"]:hover:not(:disabled) {
|
|
2478
|
-
background: oklch(from var(--
|
|
2491
|
+
background: oklch(from var(--_intent-base) l c h / 0.05);
|
|
2479
2492
|
}
|
|
2480
2493
|
|
|
2481
2494
|
:host([appearance="ghost"]) [part="trigger"]:hover:not(:disabled),
|
|
2482
2495
|
:host([appearance="outline"]) [part="trigger"]:hover:not(:disabled) {
|
|
2483
|
-
background: oklch(from var(--
|
|
2496
|
+
background: oklch(from var(--_intent-base) l c h / 0.05);
|
|
2484
2497
|
}
|
|
2485
2498
|
|
|
2486
2499
|
/* Ghost / outline active */
|
|
2487
2500
|
:host([appearance="ghost"]) [part="action"]:active:not(:disabled),
|
|
2488
2501
|
:host([appearance="outline"]) [part="action"]:active:not(:disabled) {
|
|
2489
|
-
background: oklch(from var(--
|
|
2502
|
+
background: oklch(from var(--_intent-base) l c h / 0.10);
|
|
2490
2503
|
}
|
|
2491
2504
|
|
|
2492
2505
|
:host([appearance="ghost"]) [part="trigger"]:active:not(:disabled),
|
|
2493
2506
|
:host([appearance="outline"]) [part="trigger"]:active:not(:disabled) {
|
|
2494
|
-
background: oklch(from var(--
|
|
2507
|
+
background: oklch(from var(--_intent-base) l c h / 0.10);
|
|
2495
2508
|
}
|
|
2496
2509
|
|
|
2497
2510
|
/* Ghost / outline trigger open state */
|
|
2498
2511
|
:host([appearance="ghost"]) [part="trigger"][data-open]:not(:disabled),
|
|
2499
2512
|
:host([appearance="outline"]) [part="trigger"][data-open]:not(:disabled) {
|
|
2500
|
-
background: oklch(from var(--
|
|
2513
|
+
background: oklch(from var(--_intent-base) l c h / 0.10);
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
/* Soft hover */
|
|
2517
|
+
:host([appearance="soft"]) [part="action"]:hover:not(:disabled) {
|
|
2518
|
+
background: oklch(from var(--_intent-base) l c h / 0.12);
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
:host([appearance="soft"]) [part="trigger"]:hover:not(:disabled) {
|
|
2522
|
+
background: oklch(from var(--_intent-base) l c h / 0.12);
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
/* Soft active */
|
|
2526
|
+
:host([appearance="soft"]) [part="action"]:active:not(:disabled) {
|
|
2527
|
+
background: oklch(from var(--_intent-base) l c h / 0.18);
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
:host([appearance="soft"]) [part="trigger"]:active:not(:disabled) {
|
|
2531
|
+
background: oklch(from var(--_intent-base) l c h / 0.18);
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
/* Soft trigger open state */
|
|
2535
|
+
:host([appearance="soft"]) [part="trigger"][data-open]:not(:disabled) {
|
|
2536
|
+
background: oklch(from var(--_intent-base) l c h / 0.18);
|
|
2501
2537
|
}
|
|
2502
2538
|
|
|
2503
2539
|
/* Focus visible */
|
|
@@ -2896,6 +2932,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2896
2932
|
[part="input"] {
|
|
2897
2933
|
text-align: var(--number-field-value-align);
|
|
2898
2934
|
padding: 0 var(--space-2);
|
|
2935
|
+
font-weight: var(--font-weight-medium);
|
|
2899
2936
|
}
|
|
2900
2937
|
|
|
2901
2938
|
:host([disabled]) {
|
|
@@ -2929,6 +2966,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
2929
2966
|
width: var(--space-16);
|
|
2930
2967
|
font-family: var(--font-sans);
|
|
2931
2968
|
font-size: var(--text-sm);
|
|
2969
|
+
font-weight: var(--font-weight-medium);
|
|
2932
2970
|
color: var(--text-1);
|
|
2933
2971
|
}
|
|
2934
2972
|
|
|
@@ -3155,7 +3193,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
3155
3193
|
[part="root"] {
|
|
3156
3194
|
gap: var(--space-4);
|
|
3157
3195
|
}
|
|
3158
|
-
`;var
|
|
3196
|
+
`;var mC=`/* =================================================================
|
|
3159
3197
|
* DUI Prose \u2014 Rich-text / markdown content styles
|
|
3160
3198
|
* =================================================================
|
|
3161
3199
|
* Apply class="dui-prose" to any container with rendered HTML
|
|
@@ -3405,7 +3443,7 @@ var LO=Object.create;var zh=Object.defineProperty;var OO=Object.getOwnPropertyDe
|
|
|
3405
3443
|
cursor: pointer;
|
|
3406
3444
|
font-weight: var(--font-weight-medium);
|
|
3407
3445
|
}
|
|
3408
|
-
`;var fl=new CSSStyleSheet;fl.replaceSync(
|
|
3446
|
+
`;var fl=new CSSStyleSheet;fl.replaceSync(mC);var fC=`/* =================================================================
|
|
3409
3447
|
* DUI Design Tokens
|
|
3410
3448
|
* =================================================================
|
|
3411
3449
|
* Combined token system: spacing, typography, borders, elevation,
|
|
@@ -3814,7 +3852,7 @@ h1, h2, h3, h4, h5, h6,
|
|
|
3814
3852
|
p, li, blockquote, dt, dd {
|
|
3815
3853
|
text-box: trim-both cap alphabetic;
|
|
3816
3854
|
}
|
|
3817
|
-
`;var
|
|
3855
|
+
`;var vC=`/* =================================================================
|
|
3818
3856
|
* CSS @property Declarations
|
|
3819
3857
|
* =================================================================
|
|
3820
3858
|
* Typed API surface for theme-default's component-level CSS custom
|
|
@@ -3845,9 +3883,8 @@ p, li, blockquote, dt, dd {
|
|
|
3845
3883
|
* Button
|
|
3846
3884
|
* ----------------------------------------------------------- */
|
|
3847
3885
|
@property --button-bg {
|
|
3848
|
-
syntax: "
|
|
3886
|
+
syntax: "*";
|
|
3849
3887
|
inherits: true;
|
|
3850
|
-
initial-value: oklch(0.15 0 0);
|
|
3851
3888
|
}
|
|
3852
3889
|
|
|
3853
3890
|
@property --button-fg {
|
|
@@ -4176,8 +4213,8 @@ p, li, blockquote, dt, dd {
|
|
|
4176
4213
|
inherits: true;
|
|
4177
4214
|
initial-value: 0.5rem;
|
|
4178
4215
|
}
|
|
4179
|
-
`;var bm=new CSSStyleSheet;bm.replaceSync(
|
|
4180
|
-
`+
|
|
4216
|
+
`;var bm=new CSSStyleSheet;bm.replaceSync(vC+`
|
|
4217
|
+
`+fC);var gC={tokens:bm,base:jh,prose:fl,styles:new Map([["dui-accordion",Wh],["dui-accordion-item",Kh],["dui-button",Gh],["dui-switch",Yh],["dui-badge",Xh],["dui-scroll-area",Qh],["dui-combobox",Jh],["dui-menu",Zh],["dui-menu-item",tu],["dui-popover",eu],["dui-popover-popup",ru],["dui-tooltip",ou],["dui-tooltip-popup",iu],["dui-dialog",su],["dui-dialog-popup",nu],["dui-alert-dialog",au],["dui-alert-dialog-popup",lu],["dui-breadcrumb",du],["dui-breadcrumb-item",cu],["dui-breadcrumb-link",pu],["dui-breadcrumb-page",hu],["dui-breadcrumb-separator",uu],["dui-breadcrumb-ellipsis",mu],["dui-checkbox",fu],["dui-checkbox-group",vu],["dui-collapsible",gu],["dui-toolbar",bu],["dui-slider",xu],["dui-spinner",yu],["dui-tab",wu],["dui-tabs",ku],["dui-tabs-indicator",Eu],["dui-tabs-list",Cu],["dui-tabs-panel",Su],["dui-textarea",$u],["dui-trunc",Tu],["dui-avatar",Ru],["dui-portal",Iu],["dui-input",Au],["dui-radio",_u],["dui-radio-group",Lu],["dui-dropzone",Ou],["dui-field",zu],["dui-fieldset",Pu],["dui-select",Mu],["dui-preview-card",Fu],["dui-preview-card-popup",Hu],["dui-data-table",Nu],["dui-command",Bu],["dui-command-input",Du],["dui-command-item",Vu],["dui-command-list",qu],["dui-command-group",Uu],["dui-command-empty",ju],["dui-command-separator",Wu],["dui-command-shortcut",Ku],["dui-sidebar-provider",Gu],["dui-sidebar",Yu],["dui-sidebar-trigger",Xu],["dui-sidebar-content",Qu],["dui-sidebar-header",Ju],["dui-sidebar-footer",Zu],["dui-sidebar-group",tm],["dui-sidebar-group-label",em],["dui-sidebar-menu",rm],["dui-sidebar-menu-item",om],["dui-sidebar-menu-button",im],["dui-sidebar-separator",sm],["dui-sidebar-inset",nm],["dui-separator",am],["dui-split-button",lm],["dui-progress",dm],["dui-toggle",cm],["dui-toggle-group",pm],["dui-number-field",hm],["dui-stepper",um],["dui-menubar",mm],["dui-calendar",fm],["dui-card",vm],["dui-card-grid",gm]])};var JO={attribute:!0,type:String,converter:hn,reflect:!1,hasChanged:nl},ZO=(a=JO,s,t)=>{let{kind:r,metadata:n}=t,d=globalThis.litPropertyMetadata.get(n);if(d===void 0&&globalThis.litPropertyMetadata.set(n,d=new Map),r==="setter"&&((a=Object.create(a)).wrapped=!0),d.set(t.name,a),r==="accessor"){let{name:u}=t;return{set(v){let w=s.get.call(this);s.set.call(this,v),this.requestUpdate(u,w,a,!0,v)},init(v){return v!==void 0&&this.C(u,void 0,a,v),v}}}if(r==="setter"){let{name:u}=t;return function(v){let w=this[u];s.call(this,v),this.requestUpdate(u,w,a,!0,v)}}throw Error("Unsupported decorator location: "+r)};function h(a){return(s,t)=>typeof t=="object"?ZO(a,s,t):((r,n,d)=>{let u=n.hasOwnProperty(d);return n.constructor.createProperty(d,r),u?Object.getOwnPropertyDescriptor(n,d):void 0})(a,s,t)}function k(a){return h({...a,state:!0,attribute:!1})}var Co=class extends Event{constructor(s,t,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=s,this.contextTarget=t,this.callback=r,this.subscribe=n??!1}};var j=class{constructor(s,t,r,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(d,u)=>{this.unsubscribe&&(this.unsubscribe!==u&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=d,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(d,u)),this.unsubscribe=u},this.host=s,t.context!==void 0){let d=t;this.context=d.context,this.callback=d.callback,this.subscribe=d.subscribe??!1}else this.context=t,this.callback=r,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Co(this.context,this.host,this.t,this.subscribe))}};var gl=class{get value(){return this.o}set value(s){this.setValue(s)}setValue(s,t=!1){let r=t||!Object.is(s,this.o);this.o=s,r&&this.updateObservers()}constructor(s){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:r}]of this.subscriptions)t(this.o,r)},s!==void 0&&(this.value=s)}addCallback(s,t,r){if(!r)return void s(this.value);this.subscriptions.has(s)||this.subscriptions.set(s,{disposer:()=>{this.subscriptions.delete(s)},consumerHost:t});let{disposer:n}=this.subscriptions.get(s);s(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var xm=class extends Event{constructor(s,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=s,this.contextTarget=t}},ns=class extends gl{constructor(s,t,r){super(t.context!==void 0?t.initialValue:r),this.onContextRequest=n=>{if(n.context!==this.context)return;let d=n.contextTarget??n.composedPath()[0];d!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,d,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let d=new Set;for(let[u,{consumerHost:v}]of this.subscriptions)d.has(u)||(d.add(u),v.dispatchEvent(new Co(this.context,v,u,!0)));n.stopPropagation()},this.host=s,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 xm(this.context,this.host))}};function kt({context:a}){return(s,t)=>{let r=new WeakMap;if(typeof t=="object")return{get(){return s.get.call(this)},set(n){return r.get(this).setValue(n),s.set.call(this,n)},init(n){return r.set(this,new ns(this,{context:a,initialValue:n})),n}};{s.constructor.addInitializer(u=>{r.set(u,new ns(u,{context:a}))});let n=Object.getOwnPropertyDescriptor(s,t),d;if(n===void 0){let u=new WeakMap;d={get(){return u.get(this)},set(v){r.get(this).setValue(v),u.set(this,v)},configurable:!0,enumerable:!0}}else{let u=n.set;d={...n,set(v){r.get(this).setValue(v),u?.call(this,v)}}}return void Object.defineProperty(s,t,d)}}}function Nt({context:a,subscribe:s}){return(t,r)=>{typeof r=="object"?r.addInitializer(function(){new j(this,{context:a,callback:n=>{t.set.call(this,n)},subscribe:s})}):t.constructor.addInitializer(n=>{new j(n,{context:a,callback:d=>{n[r]=d},subscribe:s})})}}var x=c`
|
|
4181
4218
|
* {
|
|
4182
4219
|
box-sizing: border-box;
|
|
4183
4220
|
}
|
|
@@ -4245,7 +4282,7 @@ p, li, blockquote, dt, dd {
|
|
|
4245
4282
|
scroll-behavior: auto !important;
|
|
4246
4283
|
}
|
|
4247
4284
|
}
|
|
4248
|
-
`;var L=(a,s={})=>t=>new CustomEvent(a,{...s,detail:t});var bl=Symbol("dui-accordion");var
|
|
4285
|
+
`;var L=(a,s={})=>t=>new CustomEvent(a,{...s,detail:t});var bl=Symbol("dui-accordion");var RC=L("value-change",{bubbles:!0,composed:!0}),tz=c`
|
|
4249
4286
|
:host {
|
|
4250
4287
|
display: block;
|
|
4251
4288
|
}
|
|
@@ -4254,7 +4291,7 @@ p, li, blockquote, dt, dd {
|
|
|
4254
4291
|
display: flex;
|
|
4255
4292
|
flex-direction: column;
|
|
4256
4293
|
}
|
|
4257
|
-
`,
|
|
4294
|
+
`,bC,xC,yC,wC,kC,EC,CC,SC,$C,TC,ft,ym,wm,km,Em,Cm,Sm,$m,Tm,Rm,IC,Am,tr,as,yr,gn,yl,wl,kl,El,Im,xl,ee=class extends(TC=b,$C=[h({type:Array})],SC=[h({type:Array,attribute:"default-value"})],CC=[h({type:Boolean})],EC=[h({type:Boolean})],kC=[h({type:Boolean,attribute:"loop-focus"})],wC=[h({type:String})],yC=[h({type:Boolean,attribute:"keep-mounted"})],xC=[k()],bC=[kt({context:bl}),k()],TC){constructor(){super(...arguments);i(this,tr);i(this,ym,o(ft,8,this)),o(ft,11,this);i(this,wm,o(ft,12,this,[])),o(ft,15,this);i(this,km,o(ft,16,this,!1)),o(ft,19,this);i(this,Em,o(ft,20,this,!1)),o(ft,23,this);i(this,Cm,o(ft,24,this,!0)),o(ft,27,this);i(this,Sm,o(ft,28,this,"vertical")),o(ft,31,this);i(this,$m,o(ft,32,this,!1)),o(ft,35,this);i(this,Tm,o(ft,36,this,[])),o(ft,39,this);i(this,as,new Map);i(this,yr,[]);i(this,gn,()=>this.value??e(this,tr,IC));i(this,yl,t=>{let r=[...e(this,gn).call(this)],n=r.indexOf(t),d;n>=0?d=r.filter(u=>u!==t):this.multiple?d=[...r,t]:d=[t],this.value===void 0&&p(this,tr,d,Am),this.dispatchEvent(RC(d))});i(this,wl,(t,r)=>{e(this,as).set(t,r),e(this,yr).includes(t)||e(this,yr).push(t)});i(this,kl,t=>{e(this,as).delete(t),p(this,yr,e(this,yr).filter(r=>r!==t))});i(this,El,(t,r)=>{let n=e(this,yr).indexOf(t);if(n===-1)return;let d=e(this,yr).length,u;switch(r){case"next":n<d-1?u=n+1:this.loopFocus&&(u=0);break;case"prev":n>0?u=n-1:this.loopFocus&&(u=d-1);break;case"first":u=0;break;case"last":u=d-1;break}if(u!==void 0){let v=e(this,yr)[u];e(this,as).get(v)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});i(this,Im,o(ft,40,this,m(this,tr,xl).call(this))),o(ft,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,tr,[...this.defaultValue],Am),this._ctx=m(this,tr,xl).call(this)}willUpdate(){this._ctx=m(this,tr,xl).call(this)}render(){return f`
|
|
4258
4295
|
<div
|
|
4259
4296
|
part="root"
|
|
4260
4297
|
data-orientation=${this.orientation}
|
|
@@ -4262,7 +4299,7 @@ p, li, blockquote, dt, dd {
|
|
|
4262
4299
|
>
|
|
4263
4300
|
<slot></slot>
|
|
4264
4301
|
</div>
|
|
4265
|
-
`}};ft=C(
|
|
4302
|
+
`}};ft=C(TC),ym=new WeakMap,wm=new WeakMap,km=new WeakMap,Em=new WeakMap,Cm=new WeakMap,Sm=new WeakMap,$m=new WeakMap,Tm=new WeakMap,tr=new WeakSet,as=new WeakMap,yr=new WeakMap,gn=new WeakMap,yl=new WeakMap,wl=new WeakMap,kl=new WeakMap,El=new WeakMap,Im=new WeakMap,xl=function(){return{openValues:e(this,gn).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:e(this,yl),registerItem:e(this,wl),unregisterItem:e(this,kl),focusItem:e(this,El)}},l(ft,4,"value",$C,ee,ym),l(ft,4,"defaultValue",SC,ee,wm),l(ft,4,"disabled",CC,ee,km),l(ft,4,"multiple",EC,ee,Em),l(ft,4,"loopFocus",kC,ee,Cm),l(ft,4,"orientation",wC,ee,Sm),l(ft,4,"keepMounted",yC,ee,$m),Rm=l(ft,20,"#internalOpenValues",xC,tr,Tm),IC=Rm.get,Am=Rm.set,l(ft,4,"_ctx",bC,ee,Im),E(ft,ee),g(ee,"tagName","dui-accordion"),g(ee,"styles",[x,tz]);var HC=L("open-change",{bubbles:!0,composed:!0}),ez=c`
|
|
4266
4303
|
:host {
|
|
4267
4304
|
display: block;
|
|
4268
4305
|
}
|
|
@@ -4290,22 +4327,22 @@ p, li, blockquote, dt, dd {
|
|
|
4290
4327
|
contain: content;
|
|
4291
4328
|
transition-property: height;
|
|
4292
4329
|
}
|
|
4293
|
-
`,
|
|
4330
|
+
`,AC,_C,LC,OC,zC,PC,MC,FC,It,_m,Lm,Om,zm,Pm,Vm,Cl,H,Mm,Fm,Sl,$l,Hm,Nm,NC,oi,Bm,Dm,qm,Tl,ls,si,ii,bn,Um,jm,BC,DC,Rl,Il,Al,er=class extends(FC=b,MC=[h({type:String})],PC=[h({type:Boolean})],zC=[Nt({context:bl,subscribe:!0})],OC=[k()],LC=[k()],_C=[k()],AC=[k()],FC){constructor(){super(...arguments);i(this,H);i(this,_m,o(It,8,this,"")),o(It,11,this);i(this,Lm,o(It,12,this,!1)),o(It,15,this);i(this,Om,o(It,16,this)),o(It,19,this);i(this,zm,o(It,20,this,!1)),o(It,23,this);i(this,Mm,o(It,24,this,!1)),o(It,27,this);i(this,Hm,o(It,28,this,"0")),o(It,31,this);i(this,Bm,o(It,32,this,!1)),o(It,35,this);i(this,ls);i(this,si,0);i(this,Rl,t=>{t.propertyName==="height"&&(e(this,H,Sl)?(p(this,H,!1,$l),this._ctx?.keepMounted||p(this,H,!1,Tl)):e(this,H,ii)&&p(this,H,"auto",oi))});i(this,Il,()=>{e(this,H,bn)||this._ctx.toggle(this.value)});i(this,Al,t=>{if(e(this,H,bn))return;let r=this._ctx.orientation==="vertical",n=r?"ArrowDown":"ArrowRight",d=r?"ArrowUp":"ArrowLeft";switch(t.key){case n:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case d:t.preventDefault(),this._ctx.focusItem(this.value,"prev");break;case"Home":t.preventDefault(),this._ctx.focusItem(this.value,"first");break;case"End":t.preventDefault(),this._ctx.focusItem(this.value,"last");break}})}connectedCallback(){super.connectedCallback(),this._ctx?.registerItem(this.value,this)}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(this.value)}willUpdate(){let t=e(this,H,ii);e(this,ls)===void 0?(p(this,H,t,Tl),p(this,H,t?"auto":"0",oi)):e(this,ls)!==t&&(t?m(this,H,BC).call(this):m(this,H,DC).call(this),this.dispatchEvent(HC({value:this.value,open:t}))),p(this,ls,t)}render(){let t=e(this,H,qm)||this._ctx?.keepMounted;return f`
|
|
4294
4331
|
<div
|
|
4295
4332
|
part="item"
|
|
4296
|
-
?data-open=${e(this,
|
|
4297
|
-
?data-disabled=${e(this,
|
|
4333
|
+
?data-open=${e(this,H,ii)}
|
|
4334
|
+
?data-disabled=${e(this,H,bn)}
|
|
4298
4335
|
>
|
|
4299
4336
|
<h3 part="header">
|
|
4300
4337
|
<button
|
|
4301
4338
|
part="trigger"
|
|
4302
|
-
id=${e(this,
|
|
4303
|
-
aria-expanded=${e(this,
|
|
4304
|
-
aria-controls=${e(this,
|
|
4305
|
-
?data-open=${e(this,
|
|
4306
|
-
?data-disabled=${e(this,
|
|
4307
|
-
@click=${e(this,
|
|
4308
|
-
@keydown=${e(this,
|
|
4339
|
+
id=${e(this,H,Um)}
|
|
4340
|
+
aria-expanded=${e(this,H,ii)}
|
|
4341
|
+
aria-controls=${e(this,H,jm)}
|
|
4342
|
+
?data-open=${e(this,H,ii)}
|
|
4343
|
+
?data-disabled=${e(this,H,bn)}
|
|
4344
|
+
@click=${e(this,Il)}
|
|
4345
|
+
@keydown=${e(this,Al)}
|
|
4309
4346
|
>
|
|
4310
4347
|
<slot name="trigger"></slot>
|
|
4311
4348
|
</button>
|
|
@@ -4313,35 +4350,35 @@ p, li, blockquote, dt, dd {
|
|
|
4313
4350
|
${t?f`
|
|
4314
4351
|
<div
|
|
4315
4352
|
part="panel"
|
|
4316
|
-
id=${e(this,
|
|
4353
|
+
id=${e(this,H,jm)}
|
|
4317
4354
|
role="region"
|
|
4318
|
-
aria-labelledby=${e(this,
|
|
4319
|
-
style="height: ${e(this,
|
|
4320
|
-
?data-open=${e(this,
|
|
4321
|
-
?data-starting-style=${e(this,
|
|
4322
|
-
?data-ending-style=${e(this,
|
|
4323
|
-
?hidden=${!e(this,
|
|
4355
|
+
aria-labelledby=${e(this,H,Um)}
|
|
4356
|
+
style="height: ${e(this,H,NC)}"
|
|
4357
|
+
?data-open=${e(this,H,ii)&&!e(this,H,Vm)}
|
|
4358
|
+
?data-starting-style=${e(this,H,Vm)}
|
|
4359
|
+
?data-ending-style=${e(this,H,Sl)}
|
|
4360
|
+
?hidden=${!e(this,H,qm)&&!e(this,H,Sl)}
|
|
4324
4361
|
@transitionend=${e(this,Rl)}
|
|
4325
4362
|
>
|
|
4326
4363
|
<div part="content">
|
|
4327
4364
|
<slot></slot>
|
|
4328
4365
|
</div>
|
|
4329
4366
|
</div>
|
|
4330
|
-
`:
|
|
4367
|
+
`:I}
|
|
4331
4368
|
</div>
|
|
4332
|
-
`}};
|
|
4369
|
+
`}};It=C(FC),_m=new WeakMap,Lm=new WeakMap,Om=new WeakMap,zm=new WeakMap,H=new WeakSet,Mm=new WeakMap,Hm=new WeakMap,Bm=new WeakMap,ls=new WeakMap,si=new WeakMap,ii=function(){return this._ctx?.openValues.includes(this.value)??!1},bn=function(){return this.disabled||this._ctx?.disabled},Um=function(){return`dui-trigger-${this.value}`},jm=function(){return`dui-panel-${this.value}`},BC=function(){let t=++os(this,si)._;p(this,H,!1,$l),p(this,H,!0,Tl),p(this,H,!0,Cl),p(this,H,"0",oi),requestAnimationFrame(()=>{if(e(this,si)!==t)return;let r=this.shadowRoot?.querySelector("[part='panel']");r&&p(this,H,`${r.scrollHeight}px`,oi),p(this,H,!1,Cl)})},DC=function(){let t=++os(this,si)._;p(this,H,!1,Cl);let r=this.shadowRoot?.querySelector("[part='panel']");r&&p(this,H,`${r.scrollHeight}px`,oi),requestAnimationFrame(()=>{e(this,si)===t&&(p(this,H,!0,$l),p(this,H,"0",oi))})},Rl=new WeakMap,Il=new WeakMap,Al=new WeakMap,l(It,4,"value",MC,er,_m),l(It,4,"disabled",PC,er,Lm),l(It,4,"_ctx",zC,er,Om),Pm=l(It,20,"#starting",OC,H,zm),Vm=Pm.get,Cl=Pm.set,Fm=l(It,20,"#ending",LC,H,Mm),Sl=Fm.get,$l=Fm.set,Nm=l(It,20,"#panelHeight",_C,H,Hm),NC=Nm.get,oi=Nm.set,Dm=l(It,20,"#visible",AC,H,Bm),qm=Dm.get,Tl=Dm.set,E(It,er),g(er,"tagName","dui-accordion-item"),g(er,"styles",[x,ez]);var So=Symbol("dui-alert-dialog");var Qm=L("open-change",{bubbles:!0,composed:!0}),rz=c`
|
|
4333
4370
|
:host {
|
|
4334
4371
|
display: contents;
|
|
4335
4372
|
}
|
|
4336
|
-
`,
|
|
4373
|
+
`,VC,qC,UC,jC,WC,Te,Wm,Km,Gm,Ym,KC,_l,fe,ni,Ol,zl,Pl,Ml,GC,Fl,Hl,Xm,Ll,rr=class extends(WC=b,jC=[h({type:Boolean,reflect:!0})],UC=[h({type:Boolean,attribute:"default-open"})],qC=[k()],VC=[kt({context:So}),k()],WC){constructor(){super(...arguments);i(this,fe);i(this,Wm,o(Te,8,this)),o(Te,11,this);i(this,Km,o(Te,12,this,!1)),o(Te,15,this);i(this,Gm,o(Te,16,this,!1)),o(Te,19,this);i(this,ni,crypto.randomUUID().slice(0,8));i(this,Ol,`dui-alert-dialog-${e(this,ni)}`);i(this,zl,`dui-alert-trigger-${e(this,ni)}`);i(this,Pl,`dui-alert-title-${e(this,ni)}`);i(this,Ml,`dui-alert-desc-${e(this,ni)}`);i(this,Fl,()=>{this.open===void 0&&p(this,fe,!0,_l),this.dispatchEvent(Qm({open:!0}))});i(this,Hl,()=>{this.open===void 0&&p(this,fe,!1,_l),this.dispatchEvent(Qm({open:!1}))});i(this,Xm,o(Te,20,this,m(this,fe,Ll).call(this))),o(Te,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&p(this,fe,!0,_l),this._ctx=m(this,fe,Ll).call(this)}willUpdate(){this._ctx=m(this,fe,Ll).call(this)}render(){return f`<slot></slot>`}};Te=C(WC),Wm=new WeakMap,Km=new WeakMap,Gm=new WeakMap,fe=new WeakSet,ni=new WeakMap,Ol=new WeakMap,zl=new WeakMap,Pl=new WeakMap,Ml=new WeakMap,GC=function(){return this.open??e(this,fe,KC)},Fl=new WeakMap,Hl=new WeakMap,Xm=new WeakMap,Ll=function(){return{open:e(this,fe,GC),dialogId:e(this,Ol),triggerId:e(this,zl),titleId:e(this,Pl),descriptionId:e(this,Ml),openDialog:e(this,Fl),closeDialog:e(this,Hl)}},l(Te,4,"open",jC,rr,Wm),l(Te,4,"defaultOpen",UC,rr,Km),Ym=l(Te,20,"#internalOpen",qC,fe,Gm),KC=Ym.get,_l=Ym.set,l(Te,4,"_ctx",VC,rr,Xm),E(Te,rr),g(rr,"tagName","dui-alert-dialog"),g(rr,"styles",[x,rz]);var oz=c`
|
|
4337
4374
|
:host {
|
|
4338
4375
|
display: contents;
|
|
4339
4376
|
}
|
|
4340
|
-
`,
|
|
4377
|
+
`,iz=c`
|
|
4341
4378
|
.Trigger {
|
|
4342
4379
|
display: contents;
|
|
4343
4380
|
}
|
|
4344
|
-
`,xn=class extends b{static tagName="dui-alert-dialog-trigger";static styles=[x,
|
|
4381
|
+
`,xn=class extends b{static tagName="dui-alert-dialog-trigger";static styles=[x,oz,iz];#t=new j(this,{context:So,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let s=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",r=this.#t.value?.dialogId??"";return f`
|
|
4345
4382
|
<span
|
|
4346
4383
|
class="Trigger"
|
|
4347
4384
|
part="trigger"
|
|
@@ -4354,7 +4391,7 @@ p, li, blockquote, dt, dd {
|
|
|
4354
4391
|
>
|
|
4355
4392
|
<slot></slot>
|
|
4356
4393
|
</span>
|
|
4357
|
-
`}};var
|
|
4394
|
+
`}};var YC=(a,{composed:s=!0}={})=>{let t=a.getRootNode({composed:s});if(t instanceof DocumentFragment)return t;if(t instanceof Document)return t},sz='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',Nl=a=>a instanceof HTMLSlotElement?a.assignedNodes({flatten:!0}):a instanceof Element&&a.shadowRoot?Array.from(a.shadowRoot.childNodes):Array.from(a.childNodes),ds=a=>{let s=[],t=r=>{if(r instanceof HTMLElement&&r.matches(sz)&&!r.hasAttribute("disabled")){s.push(r);return}for(let n of Nl(r))t(n)};for(let r of Nl(a))t(r);return s},nz=(a,s)=>{let t=r=>{if(r instanceof HTMLElement&&r.matches(s))return r;for(let n of Nl(r)){let d=t(n);if(d)return d}return null};for(let r of Nl(a)){let n=t(r);if(n)return n}return null},Bl=a=>nz(a,"[autofocus]");var az=c`
|
|
4358
4395
|
:host {
|
|
4359
4396
|
display: contents;
|
|
4360
4397
|
}
|
|
@@ -4363,7 +4400,7 @@ p, li, blockquote, dt, dd {
|
|
|
4363
4400
|
:host(:not([mounted])) [part="popup"] {
|
|
4364
4401
|
display: none;
|
|
4365
4402
|
}
|
|
4366
|
-
`,
|
|
4403
|
+
`,lz=c`
|
|
4367
4404
|
[part="backdrop"] {
|
|
4368
4405
|
position: fixed;
|
|
4369
4406
|
min-height: 100dvh;
|
|
@@ -4383,13 +4420,13 @@ p, li, blockquote, dt, dd {
|
|
|
4383
4420
|
z-index: 1000;
|
|
4384
4421
|
transition-property: opacity, transform;
|
|
4385
4422
|
}
|
|
4386
|
-
`,
|
|
4423
|
+
`,XC,QC,JC,ZC,tS,eS,rS,Vt,Jm,Zm,tf,ef,rf,cs,lf,Y,of,sf,df,cf,nf,af,Zr,pf,ps,$o,oS,iS,hf,sS,nS,Dl,aS,or=class extends(rS=b,eS=[h({type:Boolean,attribute:"keep-mounted"})],tS=[h({attribute:"initial-focus"})],ZC=[h({attribute:"final-focus"})],JC=[k()],QC=[k()],XC=[k()],rS){constructor(){super(...arguments);i(this,Y);i(this,Jm,o(Vt,8,this,!1)),o(Vt,11,this);i(this,Zm,o(Vt,12,this)),o(Vt,15,this);i(this,tf,o(Vt,16,this)),o(Vt,19,this);i(this,ef,o(Vt,20,this,!1)),o(Vt,23,this);i(this,of,o(Vt,24,this,!1)),o(Vt,27,this);i(this,nf,o(Vt,28,this,!1)),o(Vt,31,this);i(this,ps);i(this,$o,new j(this,{context:So,subscribe:!0}));i(this,Dl,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),e(this,$o).value?.closeDialog()),t.key==="Tab"&&m(this,Y,aS).call(this,t)})}updated(){let t=e(this,$o).value?.open??!1;t&&!e(this,Y,cs)?m(this,Y,oS).call(this):!t&&e(this,Y,cs)&&!e(this,Y,Zr)&&m(this,Y,iS).call(this)}willUpdate(){e(this,Y,cs)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=e(this,$o).value?.open??!1,r=e(this,$o).value?.titleId??"",n=e(this,$o).value?.descriptionId??"";return!e(this,Y,cs)&&!this.keepMounted?f``:f`
|
|
4387
4424
|
<div
|
|
4388
4425
|
part="backdrop"
|
|
4389
|
-
?data-open="${t&&!e(this,
|
|
4390
|
-
?data-closed="${!t||e(this,
|
|
4391
|
-
?data-starting-style="${e(this,
|
|
4392
|
-
?data-ending-style="${e(this,
|
|
4426
|
+
?data-open="${t&&!e(this,Y,Zr)}"
|
|
4427
|
+
?data-closed="${!t||e(this,Y,Zr)}"
|
|
4428
|
+
?data-starting-style="${e(this,Y,df)}"
|
|
4429
|
+
?data-ending-style="${e(this,Y,Zr)}"
|
|
4393
4430
|
></div>
|
|
4394
4431
|
<div
|
|
4395
4432
|
part="popup"
|
|
@@ -4397,10 +4434,10 @@ p, li, blockquote, dt, dd {
|
|
|
4397
4434
|
aria-modal="true"
|
|
4398
4435
|
aria-labelledby="${r}"
|
|
4399
4436
|
aria-describedby="${n}"
|
|
4400
|
-
?data-open="${t&&!e(this,
|
|
4401
|
-
?data-closed="${!t||e(this,
|
|
4402
|
-
?data-starting-style="${e(this,
|
|
4403
|
-
?data-ending-style="${e(this,
|
|
4437
|
+
?data-open="${t&&!e(this,Y,Zr)}"
|
|
4438
|
+
?data-closed="${!t||e(this,Y,Zr)}"
|
|
4439
|
+
?data-starting-style="${e(this,Y,df)}"
|
|
4440
|
+
?data-ending-style="${e(this,Y,Zr)}"
|
|
4404
4441
|
tabindex="-1"
|
|
4405
4442
|
@keydown="${e(this,Dl)}"
|
|
4406
4443
|
>
|
|
@@ -4408,15 +4445,15 @@ p, li, blockquote, dt, dd {
|
|
|
4408
4445
|
<p part="description" id="${n}"><slot name="description"></slot></p>
|
|
4409
4446
|
<slot></slot>
|
|
4410
4447
|
</div>
|
|
4411
|
-
`}};
|
|
4448
|
+
`}};Vt=C(rS),Jm=new WeakMap,Zm=new WeakMap,tf=new WeakMap,ef=new WeakMap,Y=new WeakSet,of=new WeakMap,nf=new WeakMap,ps=new WeakMap,$o=new WeakMap,oS=async function(){p(this,ps,document.activeElement??void 0),p(this,Y,!0,lf),p(this,Y,!0,cf),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,Y,!1,cf),await this.updateComplete,m(this,Y,sS).call(this)},iS=function(){p(this,Y,!0,pf);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,Y,hf).call(this);return}let r=!1,n=()=>{r||(r=!0,t.removeEventListener("transitionend",d),clearTimeout(u),m(this,Y,hf).call(this))},d=v=>{v.propertyName==="opacity"&&n()};t.addEventListener("transitionend",d);let u=setTimeout(n,200)},hf=function(){!e(this,Y,Zr)&&!e(this,Y,cs)||(p(this,Y,!1,pf),this.keepMounted||p(this,Y,!1,lf),m(this,Y,nS).call(this))},sS=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let d=t.querySelector(this.initialFocus);if(d){d.focus();return}}let r=Bl(t);if(r){r.focus();return}let n=ds(t);if(n.length>0){n[0].focus();return}t.focus()},nS=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}e(this,ps)?.focus(),p(this,ps,void 0)},Dl=new WeakMap,aS=function(t){let r=this.shadowRoot?.querySelector('[part="popup"]');if(!r)return;let n=ds(r);if(n.length===0){t.preventDefault();return}let d=n[0],u=n[n.length-1],v=d.matches(":focus"),w=u.matches(":focus"),S=!n.some($=>$.matches(":focus"));t.shiftKey&&(v||S)?(t.preventDefault(),u.focus()):!t.shiftKey&&w&&(t.preventDefault(),d.focus())},l(Vt,4,"keepMounted",eS,or,Jm),l(Vt,4,"initialFocus",tS,or,Zm),l(Vt,4,"finalFocus",ZC,or,tf),rf=l(Vt,20,"#mounted",JC,Y,ef),cs=rf.get,lf=rf.set,sf=l(Vt,20,"#startingStyle",QC,Y,of),df=sf.get,cf=sf.set,af=l(Vt,20,"#endingStyle",XC,Y,nf),Zr=af.get,pf=af.set,E(Vt,or),g(or,"tagName","dui-alert-dialog-popup"),g(or,"styles",[x,az,lz]);var dz=c`
|
|
4412
4449
|
:host {
|
|
4413
4450
|
display: contents;
|
|
4414
4451
|
}
|
|
4415
|
-
`,yn=class extends b{static tagName="dui-alert-dialog-close";static styles=[x,
|
|
4452
|
+
`,yn=class extends b{static tagName="dui-alert-dialog-close";static styles=[x,dz];#t=new j(this,{context:So,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
4416
4453
|
<span @click="${this.#e}">
|
|
4417
4454
|
<slot></slot>
|
|
4418
4455
|
</span>
|
|
4419
|
-
`}};var
|
|
4456
|
+
`}};var fS=L("loading-status-change",{bubbles:!0,composed:!0}),cz=c`
|
|
4420
4457
|
:host {
|
|
4421
4458
|
--avatar-size: var(--space-12);
|
|
4422
4459
|
display: inline-block;
|
|
@@ -4446,7 +4483,7 @@ p, li, blockquote, dt, dd {
|
|
|
4446
4483
|
height: 100%;
|
|
4447
4484
|
width: 100%;
|
|
4448
4485
|
}
|
|
4449
|
-
`,
|
|
4486
|
+
`,lS,dS,cS,pS,hS,uS,mS,qt,uf,mf,ff,vf,gf,bf,vS,gS,ut,xf,yf,bS,Vl,To,ai,wn,wf,kf,Ef,Cf,Ve=class extends(mS=b,uS=[h()],hS=[h()],pS=[h({type:Number,attribute:"fallback-delay"})],cS=[h({reflect:!0})],dS=[k()],lS=[k()],mS){constructor(){super(...arguments);i(this,ut);i(this,uf,o(qt,8,this)),o(qt,11,this);i(this,mf,o(qt,12,this,"")),o(qt,15,this);i(this,ff,o(qt,16,this)),o(qt,19,this);i(this,vf,o(qt,20,this)),o(qt,23,this);i(this,gf,o(qt,24,this,"idle")),o(qt,27,this);i(this,xf,o(qt,28,this,!1)),o(qt,31,this);i(this,To);i(this,ai)}connectedCallback(){super.connectedCallback(),m(this,ut,Ef).call(this),m(this,ut,wf).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,ut,kf).call(this),m(this,ut,Cf).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,ut,wf).call(this),t.has("fallbackDelay")&&m(this,ut,Ef).call(this)}render(){let t=this.src&&e(this,ut,vS)==="loaded",r=!t&&e(this,ut,bS);return f`
|
|
4450
4487
|
<span part="root">
|
|
4451
4488
|
${t?f`
|
|
4452
4489
|
<img
|
|
@@ -4456,9 +4493,9 @@ p, li, blockquote, dt, dd {
|
|
|
4456
4493
|
/>
|
|
4457
4494
|
`:r?f`
|
|
4458
4495
|
<span part="fallback"><slot></slot></span>
|
|
4459
|
-
`:
|
|
4496
|
+
`:I}
|
|
4460
4497
|
</span>
|
|
4461
|
-
`}};
|
|
4498
|
+
`}};qt=C(mS),uf=new WeakMap,mf=new WeakMap,ff=new WeakMap,vf=new WeakMap,gf=new WeakMap,ut=new WeakSet,xf=new WeakMap,To=new WeakMap,ai=new WeakMap,wn=function(t){p(this,ut,t,gS),this.dispatchEvent(fS({status:t}))},wf=function(){if(m(this,ut,kf).call(this),!this.src){m(this,ut,wn).call(this,"error");return}m(this,ut,wn).call(this,"loading");let t=new Image;t.onload=()=>m(this,ut,wn).call(this,"loaded"),t.onerror=()=>m(this,ut,wn).call(this,"error"),t.src=this.src,p(this,To,t)},kf=function(){e(this,To)&&(e(this,To).onload=null,e(this,To).onerror=null,p(this,To,void 0))},Ef=function(){if(m(this,ut,Cf).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){p(this,ut,!0,Vl);return}p(this,ut,!1,Vl),p(this,ai,setTimeout(()=>{p(this,ut,!0,Vl)},this.fallbackDelay))},Cf=function(){e(this,ai)!==void 0&&(clearTimeout(e(this,ai)),p(this,ai,void 0))},l(qt,4,"src",uS,Ve,uf),l(qt,4,"alt",hS,Ve,mf),l(qt,4,"fallbackDelay",pS,Ve,ff),l(qt,4,"size",cS,Ve,vf),bf=l(qt,20,"#imageStatus",dS,ut,gf),vS=bf.get,gS=bf.set,yf=l(qt,20,"#delayPassed",lS,ut,xf),bS=yf.get,Vl=yf.set,E(qt,Ve),g(Ve,"tagName","dui-avatar"),g(Ve,"styles",[x,cz]);var pz=c`
|
|
4462
4499
|
:host {
|
|
4463
4500
|
display: inline-block;
|
|
4464
4501
|
}
|
|
@@ -4467,11 +4504,11 @@ p, li, blockquote, dt, dd {
|
|
|
4467
4504
|
display: inline-flex;
|
|
4468
4505
|
align-items: center;
|
|
4469
4506
|
}
|
|
4470
|
-
`,kn=class extends b{static tagName="dui-badge";static styles=[x,
|
|
4507
|
+
`,kn=class extends b{static tagName="dui-badge";static styles=[x,pz];render(){return f`
|
|
4471
4508
|
<span part="root">
|
|
4472
4509
|
<slot></slot>
|
|
4473
4510
|
</span>
|
|
4474
|
-
`}};var
|
|
4511
|
+
`}};var hz=c`
|
|
4475
4512
|
:host {
|
|
4476
4513
|
display: block;
|
|
4477
4514
|
}
|
|
@@ -4484,13 +4521,13 @@ p, li, blockquote, dt, dd {
|
|
|
4484
4521
|
margin: 0;
|
|
4485
4522
|
padding: 0;
|
|
4486
4523
|
}
|
|
4487
|
-
`,En=class extends b{static tagName="dui-breadcrumb";static styles=[x,
|
|
4524
|
+
`,En=class extends b{static tagName="dui-breadcrumb";static styles=[x,hz];render(){return f`
|
|
4488
4525
|
<nav aria-label="breadcrumb">
|
|
4489
4526
|
<ol part="root">
|
|
4490
4527
|
<slot></slot>
|
|
4491
4528
|
</ol>
|
|
4492
4529
|
</nav>
|
|
4493
|
-
`}};var
|
|
4530
|
+
`}};var uz=c`
|
|
4494
4531
|
:host {
|
|
4495
4532
|
display: inline-flex;
|
|
4496
4533
|
}
|
|
@@ -4499,11 +4536,11 @@ p, li, blockquote, dt, dd {
|
|
|
4499
4536
|
display: inline-flex;
|
|
4500
4537
|
align-items: center;
|
|
4501
4538
|
}
|
|
4502
|
-
`,Cn=class extends b{static tagName="dui-breadcrumb-item";static styles=[x,
|
|
4539
|
+
`,Cn=class extends b{static tagName="dui-breadcrumb-item";static styles=[x,uz];render(){return f`
|
|
4503
4540
|
<li part="root">
|
|
4504
4541
|
<slot></slot>
|
|
4505
4542
|
</li>
|
|
4506
|
-
`}};var
|
|
4543
|
+
`}};var mz=c`
|
|
4507
4544
|
:host {
|
|
4508
4545
|
display: inline-flex;
|
|
4509
4546
|
}
|
|
@@ -4512,11 +4549,11 @@ p, li, blockquote, dt, dd {
|
|
|
4512
4549
|
display: inline-flex;
|
|
4513
4550
|
align-items: center;
|
|
4514
4551
|
}
|
|
4515
|
-
`,Sn=class extends b{static tagName="dui-breadcrumb-link";static styles=[x,
|
|
4552
|
+
`,Sn=class extends b{static tagName="dui-breadcrumb-link";static styles=[x,mz];render(){return f`
|
|
4516
4553
|
<span part="root">
|
|
4517
4554
|
<slot></slot>
|
|
4518
4555
|
</span>
|
|
4519
|
-
`}};var
|
|
4556
|
+
`}};var fz=c`
|
|
4520
4557
|
:host {
|
|
4521
4558
|
display: inline-flex;
|
|
4522
4559
|
}
|
|
@@ -4525,7 +4562,7 @@ p, li, blockquote, dt, dd {
|
|
|
4525
4562
|
display: inline-flex;
|
|
4526
4563
|
align-items: center;
|
|
4527
4564
|
}
|
|
4528
|
-
`,$n=class extends b{static tagName="dui-breadcrumb-page";static styles=[x,
|
|
4565
|
+
`,$n=class extends b{static tagName="dui-breadcrumb-page";static styles=[x,fz];render(){return f`
|
|
4529
4566
|
<span
|
|
4530
4567
|
role="link"
|
|
4531
4568
|
aria-disabled="true"
|
|
@@ -4534,7 +4571,7 @@ p, li, blockquote, dt, dd {
|
|
|
4534
4571
|
>
|
|
4535
4572
|
<slot></slot>
|
|
4536
4573
|
</span>
|
|
4537
|
-
`}};var
|
|
4574
|
+
`}};var vz=c`
|
|
4538
4575
|
:host {
|
|
4539
4576
|
display: flex;
|
|
4540
4577
|
}
|
|
@@ -4543,7 +4580,7 @@ p, li, blockquote, dt, dd {
|
|
|
4543
4580
|
display: flex;
|
|
4544
4581
|
align-items: center;
|
|
4545
4582
|
}
|
|
4546
|
-
`,Tn=class extends b{static tagName="dui-breadcrumb-separator";static styles=[x,
|
|
4583
|
+
`,Tn=class extends b{static tagName="dui-breadcrumb-separator";static styles=[x,vz];render(){return f`
|
|
4547
4584
|
<li
|
|
4548
4585
|
role="presentation"
|
|
4549
4586
|
aria-hidden="true"
|
|
@@ -4551,7 +4588,7 @@ p, li, blockquote, dt, dd {
|
|
|
4551
4588
|
>
|
|
4552
4589
|
<slot>/</slot>
|
|
4553
4590
|
</li>
|
|
4554
|
-
`}};var
|
|
4591
|
+
`}};var gz=c`
|
|
4555
4592
|
:host {
|
|
4556
4593
|
display: flex;
|
|
4557
4594
|
align-items: center;
|
|
@@ -4563,7 +4600,7 @@ p, li, blockquote, dt, dd {
|
|
|
4563
4600
|
align-items: center;
|
|
4564
4601
|
justify-content: center;
|
|
4565
4602
|
}
|
|
4566
|
-
`,Rn=class extends b{static tagName="dui-breadcrumb-ellipsis";static styles=[x,
|
|
4603
|
+
`,Rn=class extends b{static tagName="dui-breadcrumb-ellipsis";static styles=[x,gz];render(){return f`
|
|
4567
4604
|
<span
|
|
4568
4605
|
role="presentation"
|
|
4569
4606
|
aria-hidden="true"
|
|
@@ -4571,7 +4608,7 @@ p, li, blockquote, dt, dd {
|
|
|
4571
4608
|
>
|
|
4572
4609
|
<slot>…</slot>
|
|
4573
4610
|
</span>
|
|
4574
|
-
`}};var
|
|
4611
|
+
`}};var CS=L("dui-navigate",{bubbles:!0,composed:!0}),bz=c`
|
|
4575
4612
|
:host {
|
|
4576
4613
|
display: inline-block;
|
|
4577
4614
|
}
|
|
@@ -4596,26 +4633,26 @@ p, li, blockquote, dt, dd {
|
|
|
4596
4633
|
user-select: none;
|
|
4597
4634
|
-webkit-tap-highlight-color: transparent;
|
|
4598
4635
|
}
|
|
4599
|
-
`,
|
|
4636
|
+
`,xS,yS,wS,kS,ES,Re,Sf,$f,Tf,Rf,ql,Ul,hs,SS,$S,Ie=class extends(ES=b,kS=[h({type:Boolean,reflect:!0})],wS=[h({type:Boolean,attribute:"focusable-when-disabled"})],yS=[h()],xS=[h()],ES){constructor(){super(...arguments);i(this,hs);i(this,Sf,o(Re,8,this,!1)),o(Re,11,this);i(this,$f,o(Re,12,this,!1)),o(Re,15,this);i(this,Tf,o(Re,16,this,"button")),o(Re,19,this);i(this,Rf,o(Re,20,this)),o(Re,23,this);i(this,ql,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});i(this,Ul,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(CS({href:this.href})))})}render(){return this.href!==void 0?m(this,hs,$S).call(this):m(this,hs,SS).call(this)}};Re=C(ES),Sf=new WeakMap,$f=new WeakMap,Tf=new WeakMap,Rf=new WeakMap,ql=new WeakMap,Ul=new WeakMap,hs=new WeakSet,SS=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
|
|
4600
4637
|
<button
|
|
4601
4638
|
part="root"
|
|
4602
4639
|
type="${this.type}"
|
|
4603
4640
|
?disabled="${this.disabled&&!this.focusableWhenDisabled}"
|
|
4604
|
-
aria-disabled="${t||
|
|
4641
|
+
aria-disabled="${t||I}"
|
|
4605
4642
|
@click="${e(this,ql)}"
|
|
4606
4643
|
>
|
|
4607
4644
|
<slot></slot>
|
|
4608
4645
|
</button>
|
|
4609
|
-
`}
|
|
4646
|
+
`},$S=function(){return f`
|
|
4610
4647
|
<a
|
|
4611
4648
|
part="root"
|
|
4612
|
-
href="${this.href??
|
|
4613
|
-
aria-disabled="${this.disabled||
|
|
4649
|
+
href="${this.href??I}"
|
|
4650
|
+
aria-disabled="${this.disabled||I}"
|
|
4614
4651
|
@click="${e(this,Ul)}"
|
|
4615
4652
|
>
|
|
4616
4653
|
<slot></slot>
|
|
4617
4654
|
</a>
|
|
4618
|
-
`},l(Re,4,"disabled",
|
|
4655
|
+
`},l(Re,4,"disabled",kS,Ie,Sf),l(Re,4,"focusableWhenDisabled",wS,Ie,$f),l(Re,4,"type",yS,Ie,Tf),l(Re,4,"href",xS,Ie,Rf),E(Re,Ie),g(Ie,"tagName","dui-button"),g(Ie,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Ie,"styles",[x,bz]);var NS=L("value-change",{bubbles:!0,composed:!0}),xz=c`
|
|
4619
4656
|
:host {
|
|
4620
4657
|
display: inline-block;
|
|
4621
4658
|
}
|
|
@@ -4675,7 +4712,7 @@ p, li, blockquote, dt, dd {
|
|
|
4675
4712
|
[part="day"]:disabled {
|
|
4676
4713
|
cursor: not-allowed;
|
|
4677
4714
|
}
|
|
4678
|
-
`,
|
|
4715
|
+
`,TS,RS,IS,AS,_S,LS,OS,zS,PS,MS,FS,HS,et,If,Af,_f,Lf,Of,zf,Pf,Mf,Ff,BS,Uf,O,Hf,Nf,jf,jl,Bf,Df,Wl,Kl,Vf,qf,Gl,Yl,Wf,ir,Xl,In,Ql,Kf,DS,VS,qS,Gf,Yf,Jl,Zl,td,ed,ae=class extends(HS=b,FS=[h()],MS=[h({attribute:"default-value"})],PS=[h()],zS=[h()],OS=[h()],LS=[h({type:Boolean,reflect:!0})],_S=[h({type:Boolean,reflect:!0,attribute:"read-only"})],AS=[k()],IS=[k()],RS=[k()],TS=[k()],HS){constructor(){super(...arguments);i(this,O);i(this,If,o(et,8,this)),o(et,11,this);i(this,Af,o(et,12,this)),o(et,15,this);i(this,_f,o(et,16,this)),o(et,19,this);i(this,Lf,o(et,20,this)),o(et,23,this);i(this,Of,o(et,24,this,"en-US")),o(et,27,this);i(this,zf,o(et,28,this,!1)),o(et,31,this);i(this,Pf,o(et,32,this,!1)),o(et,35,this);i(this,Mf,o(et,36,this)),o(et,39,this);i(this,Hf,o(et,40,this,new Date)),o(et,43,this);i(this,Bf,o(et,44,this,new Date().getMonth())),o(et,47,this);i(this,Vf,o(et,48,this,new Date().getFullYear())),o(et,51,this);i(this,Jl,t=>{let r=t.currentTarget,n=r.dataset.date;n&&!r.disabled&&m(this,O,Gf).call(this,n)});i(this,Zl,t=>{let r=new Date(e(this,O,jf)),n=!0;switch(t.key){case"ArrowLeft":r.setDate(r.getDate()-1);break;case"ArrowRight":r.setDate(r.getDate()+1);break;case"ArrowUp":r.setDate(r.getDate()-7);break;case"ArrowDown":r.setDate(r.getDate()+7);break;case"PageUp":t.shiftKey?r.setFullYear(r.getFullYear()-1):r.setMonth(r.getMonth()-1);break;case"PageDown":t.shiftKey?r.setFullYear(r.getFullYear()+1):r.setMonth(r.getMonth()+1);break;case"Home":{r.setDate(1);break}case"End":{let d=m(this,O,Ql).call(this,r.getFullYear(),r.getMonth());r.setDate(d);break}case"Enter":case" ":t.preventDefault(),m(this,O,In).call(this,r)||m(this,O,Gf).call(this,m(this,O,ir).call(this,r));return;default:n=!1}n&&(t.preventDefault(),p(this,O,r,jl),p(this,O,r.getMonth(),Kl),p(this,O,r.getFullYear(),Yl),this.updateComplete.then(()=>{let d=m(this,O,ir).call(this,r);this.shadowRoot?.querySelector(`[data-date="${d}"]`)?.focus()}))});i(this,td,()=>{m(this,O,Yf).call(this,-1)});i(this,ed,()=>{m(this,O,Yf).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,O,this.defaultValue,Uf);let t=e(this,O,Wf);if(t){let r=new Date(t+"T00:00:00");p(this,O,r.getMonth(),Kl),p(this,O,r.getFullYear(),Yl),p(this,O,r,jl)}}render(){let t=m(this,O,DS).call(this),r=m(this,O,VS).call(this),n=m(this,O,qS).call(this),d=m(this,O,ir).call(this,e(this,O,jf));return f`
|
|
4679
4716
|
<div part="root" role="grid" @keydown="${e(this,Zl)}">
|
|
4680
4717
|
<div part="header">
|
|
4681
4718
|
<button
|
|
@@ -4716,7 +4753,7 @@ p, li, blockquote, dt, dd {
|
|
|
4716
4753
|
`)}
|
|
4717
4754
|
</div>
|
|
4718
4755
|
</div>
|
|
4719
|
-
`}};et=C(
|
|
4756
|
+
`}};et=C(HS),If=new WeakMap,Af=new WeakMap,_f=new WeakMap,Lf=new WeakMap,Of=new WeakMap,zf=new WeakMap,Pf=new WeakMap,Mf=new WeakMap,O=new WeakSet,Hf=new WeakMap,Bf=new WeakMap,Vf=new WeakMap,Wf=function(){return this.value??e(this,O,BS)},ir=function(t){let r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),d=String(t.getDate()).padStart(2,"0");return`${r}-${n}-${d}`},Xl=function(t,r){return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()},In=function(t){if(this.disabled)return!0;let r=m(this,O,ir).call(this,t);return!!(this.min&&r<this.min||this.max&&r>this.max)},Ql=function(t,r){return new Date(t,r+1,0).getDate()},Kf=function(){try{let t=new Intl.Locale(this.locale),r=t.weekInfo??t.getWeekInfo?.();return r?.firstDay===7?0:r?.firstDay??0}catch{return 0}},DS=function(){let t=e(this,O,Gl),r=e(this,O,Wl),n=m(this,O,Ql).call(this,t,r),d=new Date(t,r,1).getDay(),u=m(this,O,Kf).call(this),v=new Date,w=e(this,O,Wf),S=d-u;S<0&&(S+=7);let $=[],y=r===0?11:r-1,A=r===0?t-1:t,R=m(this,O,Ql).call(this,A,y);for(let M=S-1;M>=0;M--){let q=R-M,K=new Date(A,y,q);$.push({date:K,day:q,iso:m(this,O,ir).call(this,K),isToday:m(this,O,Xl).call(this,K,v),isSelected:m(this,O,ir).call(this,K)===w,isOutsideMonth:!0,isDisabled:m(this,O,In).call(this,K)})}for(let M=1;M<=n;M++){let q=new Date(t,r,M);$.push({date:q,day:M,iso:m(this,O,ir).call(this,q),isToday:m(this,O,Xl).call(this,q,v),isSelected:m(this,O,ir).call(this,q)===w,isOutsideMonth:!1,isDisabled:m(this,O,In).call(this,q)})}let P=42-$.length,N=r===11?0:r+1,W=r===11?t+1:t;for(let M=1;M<=P;M++){let q=new Date(W,N,M);$.push({date:q,day:M,iso:m(this,O,ir).call(this,q),isToday:m(this,O,Xl).call(this,q,v),isSelected:m(this,O,ir).call(this,q)===w,isOutsideMonth:!0,isDisabled:m(this,O,In).call(this,q)})}let B=[];for(let M=0;M<$.length;M+=7)B.push($.slice(M,M+7));return B},VS=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),r=m(this,O,Kf).call(this),n=[];for(let d=0;d<7;d++){let u=new Date(2015,0,4+r+d);n.push(t.format(u))}return n},qS=function(){let t=new Date(e(this,O,Gl),e(this,O,Wl),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},Gf=function(t){this.disabled||this.readOnly||(this.value===void 0&&p(this,O,t,Uf),this.dispatchEvent(NS({value:t})))},Yf=function(t){let r=e(this,O,Wl)+t,n=e(this,O,Gl);r<0?(r=11,n--):r>11&&(r=0,n++),p(this,O,r,Kl),p(this,O,n,Yl),p(this,O,new Date(n,r,1),jl)},Jl=new WeakMap,Zl=new WeakMap,td=new WeakMap,ed=new WeakMap,l(et,4,"value",FS,ae,If),l(et,4,"defaultValue",MS,ae,Af),l(et,4,"min",PS,ae,_f),l(et,4,"max",zS,ae,Lf),l(et,4,"locale",OS,ae,Of),l(et,4,"disabled",LS,ae,zf),l(et,4,"readOnly",_S,ae,Pf),Ff=l(et,20,"#internalValue",AS,O,Mf),BS=Ff.get,Uf=Ff.set,Nf=l(et,20,"#focusedDate",IS,O,Hf),jf=Nf.get,jl=Nf.set,Df=l(et,20,"#viewMonth",RS,O,Bf),Wl=Df.get,Kl=Df.set,qf=l(et,20,"#viewYear",TS,O,Vf),Gl=qf.get,Yl=qf.set,E(et,ae),g(ae,"tagName","dui-calendar"),g(ae,"styles",[x,xz]);var yz=c`
|
|
4720
4757
|
:host {
|
|
4721
4758
|
display: block;
|
|
4722
4759
|
}
|
|
@@ -4750,9 +4787,9 @@ p, li, blockquote, dt, dd {
|
|
|
4750
4787
|
display: flex;
|
|
4751
4788
|
align-items: center;
|
|
4752
4789
|
}
|
|
4753
|
-
`,
|
|
4790
|
+
`,US,jS,WS,KS,wr,Xf,Qf,Jf,GS,YS,kr,Zf,tv,XS,QS,An,_n,Ln,us,rd,to=class extends(KS=b,WS=[h({reflect:!0})],jS=[k()],US=[k()],KS){constructor(){super(...arguments);i(this,kr);i(this,Xf,o(wr,8,this,"")),o(wr,11,this);i(this,Qf,o(wr,12,this,!1)),o(wr,15,this);i(this,Zf,o(wr,16,this,!1)),o(wr,19,this);i(this,An,!1);i(this,_n,!1);i(this,Ln,!1);i(this,us,t=>{let r=t.target,n=r.assignedElements().length>0;r.name==="title"?p(this,An,n):r.name==="description"?p(this,_n,n):r.name==="action"&&p(this,Ln,n),p(this,kr,e(this,An)||e(this,_n)||e(this,Ln),YS)});i(this,rd,t=>{let r=t.target;p(this,kr,r.assignedElements().length>0,QS)})}render(){return f`
|
|
4754
4791
|
<div part="root">
|
|
4755
|
-
<div part="header" ?hidden=${!e(this,kr,
|
|
4792
|
+
<div part="header" ?hidden=${!e(this,kr,GS)}>
|
|
4756
4793
|
<div part="header-text">
|
|
4757
4794
|
<slot name="title" @slotchange=${e(this,us)}></slot>
|
|
4758
4795
|
<slot
|
|
@@ -4767,11 +4804,11 @@ p, li, blockquote, dt, dd {
|
|
|
4767
4804
|
<div part="content">
|
|
4768
4805
|
<slot></slot>
|
|
4769
4806
|
</div>
|
|
4770
|
-
<div part="footer" ?hidden=${!e(this,kr,
|
|
4807
|
+
<div part="footer" ?hidden=${!e(this,kr,XS)}>
|
|
4771
4808
|
<slot name="footer" @slotchange=${e(this,rd)}></slot>
|
|
4772
4809
|
</div>
|
|
4773
4810
|
</div>
|
|
4774
|
-
`}};wr=C(
|
|
4811
|
+
`}};wr=C(KS),Xf=new WeakMap,Qf=new WeakMap,kr=new WeakSet,Zf=new WeakMap,An=new WeakMap,_n=new WeakMap,Ln=new WeakMap,us=new WeakMap,rd=new WeakMap,l(wr,4,"size",WS,to,Xf),Jf=l(wr,20,"#hasHeader",jS,kr,Qf),GS=Jf.get,YS=Jf.set,tv=l(wr,20,"#hasFooter",US,kr,Zf),XS=tv.get,QS=tv.set,E(wr,to),g(to,"tagName","dui-card"),g(to,"styles",[x,yz]);var od=Symbol("dui-checkbox-group");var d1=L("checked-change",{bubbles:!0,composed:!0}),wz=c`
|
|
4775
4812
|
:host {
|
|
4776
4813
|
display: inline-flex;
|
|
4777
4814
|
align-items: start;
|
|
@@ -4814,7 +4851,7 @@ p, li, blockquote, dt, dd {
|
|
|
4814
4851
|
display: none;
|
|
4815
4852
|
}
|
|
4816
4853
|
|
|
4817
|
-
`,
|
|
4854
|
+
`,kz=f`
|
|
4818
4855
|
<svg
|
|
4819
4856
|
class="Icon"
|
|
4820
4857
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -4827,7 +4864,7 @@ p, li, blockquote, dt, dd {
|
|
|
4827
4864
|
>
|
|
4828
4865
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
4829
4866
|
</svg>
|
|
4830
|
-
`,
|
|
4867
|
+
`,Ez=f`
|
|
4831
4868
|
<svg
|
|
4832
4869
|
class="Icon"
|
|
4833
4870
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -4840,15 +4877,15 @@ p, li, blockquote, dt, dd {
|
|
|
4840
4877
|
>
|
|
4841
4878
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
4842
4879
|
</svg>
|
|
4843
|
-
`,
|
|
4880
|
+
`,JS,ZS,t1,e1,r1,o1,i1,s1,n1,a1,l1,ms,it,ev,rv,ov,iv,sv,nv,av,lv,dv,cv,pv,c1,hv,Ut,li,On,p1,uv,h1,zn,Pn,id,Qt=class extends(l1=b,a1=[h({type:Boolean,reflect:!0})],n1=[h({type:Boolean,attribute:"default-checked"})],s1=[h({type:Boolean,reflect:!0})],i1=[h({type:Boolean,reflect:!0})],o1=[h({type:Boolean,reflect:!0,attribute:"read-only"})],r1=[h({type:Boolean,reflect:!0})],e1=[h()],t1=[h()],ZS=[h({type:Boolean})],JS=[k()],l1){constructor(){super();i(this,Ut);i(this,ms);i(this,ev,o(it,8,this)),o(it,11,this);i(this,rv,o(it,12,this,!1)),o(it,15,this);i(this,ov,o(it,16,this,!1)),o(it,19,this);i(this,iv,o(it,20,this,!1)),o(it,23,this);i(this,sv,o(it,24,this,!1)),o(it,27,this);i(this,nv,o(it,28,this,!1)),o(it,31,this);i(this,av,o(it,32,this)),o(it,35,this);i(this,lv,o(it,36,this)),o(it,39,this);i(this,dv,o(it,40,this,!1)),o(it,43,this);i(this,cv,o(it,44,this,!1)),o(it,47,this);i(this,li,new j(this,{context:od,subscribe:!0}));i(this,zn,t=>{e(this,Pn).call(this)});i(this,Pn,()=>{if(e(this,Ut,uv)||this.readOnly)return;let t=e(this,li).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!e(this,Ut,On)):t.toggle(this.value);return}let r=!e(this,Ut,On);this.checked===void 0&&(p(this,Ut,r,hv),this.indeterminate=!1),this.dispatchEvent(d1({checked:r,indeterminate:!1}))});i(this,id,t=>{t.key===" "&&(t.preventDefault(),e(this,Pn).call(this))});p(this,ms,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&p(this,Ut,!0,hv),this.addEventListener("click",e(this,zn))}willUpdate(){m(this,Ut,h1).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,zn))}render(){let t=e(this,Ut,On),r=e(this,Ut,p1),n=e(this,Ut,uv),d=t||r;return f`
|
|
4844
4881
|
<span
|
|
4845
4882
|
part="root"
|
|
4846
4883
|
role="checkbox"
|
|
4847
4884
|
aria-checked="${r?"mixed":String(t)}"
|
|
4848
|
-
aria-disabled="${n?"true":
|
|
4849
|
-
aria-readonly="${this.readOnly?"true":
|
|
4850
|
-
aria-required="${this.required?"true":
|
|
4851
|
-
tabindex="${n?
|
|
4885
|
+
aria-disabled="${n?"true":I}"
|
|
4886
|
+
aria-readonly="${this.readOnly?"true":I}"
|
|
4887
|
+
aria-required="${this.required?"true":I}"
|
|
4888
|
+
tabindex="${n?I:"0"}"
|
|
4852
4889
|
?data-checked="${t&&!r}"
|
|
4853
4890
|
?data-unchecked="${!t&&!r}"
|
|
4854
4891
|
?data-indeterminate="${r}"
|
|
@@ -4863,11 +4900,11 @@ p, li, blockquote, dt, dd {
|
|
|
4863
4900
|
?data-unchecked="${!t&&!r}"
|
|
4864
4901
|
?data-indeterminate="${r}"
|
|
4865
4902
|
>
|
|
4866
|
-
${d?r?
|
|
4903
|
+
${d?r?Ez:kz:I}
|
|
4867
4904
|
</span>
|
|
4868
4905
|
</span>
|
|
4869
4906
|
<slot></slot>
|
|
4870
|
-
`}};it=C(
|
|
4907
|
+
`}};it=C(l1),ms=new WeakMap,ev=new WeakMap,rv=new WeakMap,ov=new WeakMap,iv=new WeakMap,sv=new WeakMap,nv=new WeakMap,av=new WeakMap,lv=new WeakMap,dv=new WeakMap,cv=new WeakMap,Ut=new WeakSet,li=new WeakMap,On=function(){let t=e(this,li).value;return t&&this.value!==void 0?this.parent?t.allValues.length>0&&t.allValues.every(r=>t.checkedValues.includes(r)):t.checkedValues.includes(this.value):this.checked??e(this,Ut,c1)},p1=function(){let t=e(this,li).value;if(t&&this.parent&&this.value!==void 0){let r=t.allValues.filter(n=>t.checkedValues.includes(n)).length;return r>0&&r<t.allValues.length}return this.indeterminate},uv=function(){return this.disabled||(e(this,li).value?.disabled??!1)},h1=function(){e(this,Ut,On)?e(this,ms).setFormValue(this.value??"on"):e(this,ms).setFormValue(null)},zn=new WeakMap,Pn=new WeakMap,id=new WeakMap,l(it,4,"checked",a1,Qt,ev),l(it,4,"defaultChecked",n1,Qt,rv),l(it,4,"indeterminate",s1,Qt,ov),l(it,4,"disabled",i1,Qt,iv),l(it,4,"readOnly",o1,Qt,sv),l(it,4,"required",r1,Qt,nv),l(it,4,"name",e1,Qt,av),l(it,4,"value",t1,Qt,lv),l(it,4,"parent",ZS,Qt,dv),pv=l(it,20,"#internalChecked",JS,Ut,cv),c1=pv.get,hv=pv.set,E(it,Qt),g(Qt,"tagName","dui-checkbox"),g(Qt,"formAssociated",!0),g(Qt,"styles",[x,wz]);var wv=L("value-change",{bubbles:!0,composed:!0}),Cz=c`
|
|
4871
4908
|
:host {
|
|
4872
4909
|
display: block;
|
|
4873
4910
|
}
|
|
@@ -4877,7 +4914,7 @@ p, li, blockquote, dt, dd {
|
|
|
4877
4914
|
flex-direction: column;
|
|
4878
4915
|
align-items: start;
|
|
4879
4916
|
}
|
|
4880
|
-
`,
|
|
4917
|
+
`,u1,m1,f1,v1,g1,b1,x1,jt,mv,fv,vv,gv,bv,xv,y1,sd,qe,Mn,ad,ld,yv,nd,Ae=class extends(x1=b,b1=[h({attribute:!1})],g1=[h({attribute:!1})],v1=[h({attribute:!1})],f1=[h({type:Boolean,reflect:!0})],m1=[k()],u1=[kt({context:od}),k()],x1){constructor(){super(...arguments);i(this,qe);i(this,mv,o(jt,8,this)),o(jt,11,this);i(this,fv,o(jt,12,this,[])),o(jt,15,this);i(this,vv,o(jt,16,this,[])),o(jt,19,this);i(this,gv,o(jt,20,this,!1)),o(jt,23,this);i(this,bv,o(jt,24,this,[])),o(jt,27,this);i(this,Mn,()=>this.value??e(this,qe,y1));i(this,ad,t=>{let r=e(this,Mn).call(this),n=r.includes(t)?r.filter(d=>d!==t):[...r,t];this.value===void 0&&p(this,qe,n,sd),this.dispatchEvent(wv(n))});i(this,ld,t=>{let r=t?[...this.allValues]:[];this.value===void 0&&p(this,qe,r,sd),this.dispatchEvent(wv(r))});i(this,yv,o(jt,28,this,m(this,qe,nd).call(this))),o(jt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,qe,[...this.defaultValue],sd),this._ctx=m(this,qe,nd).call(this)}willUpdate(){this._ctx=m(this,qe,nd).call(this)}render(){return f`
|
|
4881
4918
|
<div
|
|
4882
4919
|
part="root"
|
|
4883
4920
|
role="group"
|
|
@@ -4885,7 +4922,7 @@ p, li, blockquote, dt, dd {
|
|
|
4885
4922
|
>
|
|
4886
4923
|
<slot></slot>
|
|
4887
4924
|
</div>
|
|
4888
|
-
`}};
|
|
4925
|
+
`}};jt=C(x1),mv=new WeakMap,fv=new WeakMap,vv=new WeakMap,gv=new WeakMap,bv=new WeakMap,qe=new WeakSet,Mn=new WeakMap,ad=new WeakMap,ld=new WeakMap,yv=new WeakMap,nd=function(){return{checkedValues:e(this,Mn).call(this),allValues:this.allValues,disabled:this.disabled,toggle:e(this,ad),toggleAll:e(this,ld)}},l(jt,4,"value",b1,Ae,mv),l(jt,4,"defaultValue",g1,Ae,fv),l(jt,4,"allValues",v1,Ae,vv),l(jt,4,"disabled",f1,Ae,gv),xv=l(jt,20,"#internalValues",m1,qe,bv),y1=xv.get,sd=xv.set,l(jt,4,"_ctx",u1,Ae,yv),E(jt,Ae),g(Ae,"tagName","dui-checkbox-group"),g(Ae,"styles",[x,Cz]);var _1=L("open-change",{bubbles:!0,composed:!0}),Sz=c`
|
|
4889
4926
|
:host {
|
|
4890
4927
|
display: block;
|
|
4891
4928
|
}
|
|
@@ -4918,7 +4955,7 @@ p, li, blockquote, dt, dd {
|
|
|
4918
4955
|
contain: content;
|
|
4919
4956
|
transition-property: height;
|
|
4920
4957
|
}
|
|
4921
|
-
`,
|
|
4958
|
+
`,w1,k1,E1,C1,S1,$1,T1,R1,I1,A1,vt,kv,Ev,Cv,Sv,$v,Tv,Mv,dd,D,Rv,Iv,cd,pd,Av,_v,L1,di,Lv,Ov,Fv,hd,zv,Pv,O1,Hv,ci,pi,Ro,Fn,z1,P1,ud,md,Ue=class extends(A1=b,I1=[h({type:Boolean,reflect:!0})],R1=[h({type:Boolean,attribute:"default-open"})],T1=[h({type:Boolean,reflect:!0})],$1=[h({type:Boolean,attribute:"keep-mounted"})],S1=[k()],C1=[k()],E1=[k()],k1=[k()],w1=[k()],A1){constructor(){super(...arguments);i(this,D);i(this,kv,o(vt,8,this,!1)),o(vt,11,this);i(this,Ev,o(vt,12,this,!1)),o(vt,15,this);i(this,Cv,o(vt,16,this,!1)),o(vt,19,this);i(this,Sv,o(vt,20,this,!1)),o(vt,23,this);i(this,$v,o(vt,24,this,!1)),o(vt,27,this);i(this,Rv,o(vt,28,this,!1)),o(vt,31,this);i(this,Av,o(vt,32,this,"0")),o(vt,35,this);i(this,Lv,o(vt,36,this,!1)),o(vt,39,this);i(this,zv,o(vt,40,this,!1)),o(vt,43,this);i(this,ci);i(this,pi,0);i(this,Ro,!1);i(this,ud,t=>{t.propertyName==="height"&&(e(this,D,cd)?(p(this,D,!1,pd),this.keepMounted||p(this,D,!1,hd)):e(this,D,Fn)&&p(this,D,"auto",di))});i(this,md,()=>{if(this.disabled)return;let t=!e(this,D,Fn);e(this,Ro)||p(this,D,t,Hv),this.dispatchEvent(_1({open:t}))})}connectedCallback(){super.connectedCallback(),p(this,Ro,this.hasAttribute("open")),!e(this,Ro)&&this.defaultOpen&&p(this,D,!0,Hv)}willUpdate(t){t.has("open")&&e(this,ci)!==void 0&&p(this,Ro,!0);let r=e(this,D,Fn);e(this,ci)===void 0?(p(this,D,r,hd),p(this,D,r?"auto":"0",di)):e(this,ci)!==r&&(r?m(this,D,z1).call(this):m(this,D,P1).call(this)),p(this,ci,r)}render(){let t=e(this,D,Fn),r=e(this,D,Fv)||this.keepMounted;return f`
|
|
4922
4959
|
<button
|
|
4923
4960
|
part="trigger"
|
|
4924
4961
|
aria-expanded=${t}
|
|
@@ -4933,28 +4970,28 @@ p, li, blockquote, dt, dd {
|
|
|
4933
4970
|
<div
|
|
4934
4971
|
part="panel"
|
|
4935
4972
|
role="region"
|
|
4936
|
-
style="height: ${e(this,
|
|
4937
|
-
?data-open=${t&&!e(this,
|
|
4938
|
-
?data-starting-style=${e(this,
|
|
4939
|
-
?data-ending-style=${e(this,
|
|
4940
|
-
?hidden=${!e(this,
|
|
4973
|
+
style="height: ${e(this,D,L1)}"
|
|
4974
|
+
?data-open=${t&&!e(this,D,Mv)}
|
|
4975
|
+
?data-starting-style=${e(this,D,Mv)}
|
|
4976
|
+
?data-ending-style=${e(this,D,cd)}
|
|
4977
|
+
?hidden=${!e(this,D,Fv)&&!e(this,D,cd)}
|
|
4941
4978
|
@transitionend=${e(this,ud)}
|
|
4942
4979
|
>
|
|
4943
4980
|
<div part="content">
|
|
4944
4981
|
<slot></slot>
|
|
4945
4982
|
</div>
|
|
4946
4983
|
</div>
|
|
4947
|
-
`:
|
|
4948
|
-
`}};vt=C(R1),kv=new WeakMap,Ev=new WeakMap,Cv=new WeakMap,Sv=new WeakMap,$v=new WeakMap,B=new WeakSet,Rv=new WeakMap,Iv=new WeakMap,Lv=new WeakMap,zv=new WeakMap,ci=new WeakMap,pi=new WeakMap,Ro=new WeakMap,Fn=function(){return e(this,Ro)?this.open:e(this,B,_1)},L1=function(){let t=++os(this,pi)._;p(this,B,!1,pd),p(this,B,!0,hd),p(this,B,!0,dd),p(this,B,"0",di),requestAnimationFrame(()=>{if(e(this,pi)!==t)return;let r=this.shadowRoot?.querySelector("[part='panel']");r&&p(this,B,`${r.scrollHeight}px`,di),p(this,B,!1,dd)})},O1=function(){let t=++os(this,pi)._;p(this,B,!1,dd);let r=this.shadowRoot?.querySelector("[part='panel']");r&&p(this,B,`${r.scrollHeight}px`,di),requestAnimationFrame(()=>{e(this,pi)===t&&(p(this,B,!0,pd),p(this,B,"0",di))})},ud=new WeakMap,md=new WeakMap,l(vt,4,"open",T1,qe,kv),l(vt,4,"defaultOpen",$1,qe,Ev),l(vt,4,"disabled",S1,qe,Cv),l(vt,4,"keepMounted",C1,qe,Sv),Tv=l(vt,20,"#starting",E1,B,$v),Mv=Tv.get,dd=Tv.set,Av=l(vt,20,"#ending",k1,B,Rv),cd=Av.get,pd=Av.set,_v=l(vt,20,"#panelHeight",w1,B,Iv),I1=_v.get,di=_v.set,Ov=l(vt,20,"#visible",y1,B,Lv),Fv=Ov.get,hd=Ov.set,Pv=l(vt,20,"#internalOpen",x1,B,zv),_1=Pv.get,Nv=Pv.set,E(vt,qe),g(qe,"tagName","dui-collapsible"),g(qe,"styles",[x,wz]);var sr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},fs=a=>(...s)=>({_$litDirective$:a,values:s}),Ao=class{constructor(s){}get _$AU(){return this._$AM._$AU}_$AT(s,t,r){this._$Ct=s,this._$AM=t,this._$Ci=r}_$AS(s,t){return this.update(s,t)}update(s,t){return this.render(...t)}};var{I:kz}=dC,z1=a=>a;var M1=a=>a.strings===void 0,P1=()=>document.createComment(""),vs=(a,s,t)=>{let r=a._$AA.parentNode,n=s===void 0?a._$AB:s._$AA;if(t===void 0){let d=r.insertBefore(P1(),n),u=r.insertBefore(P1(),n);t=new kz(d,u,a,a.options)}else{let d=t._$AB.nextSibling,u=t._$AM,v=u!==a;if(v){let y;t._$AQ?.(a),t._$AM=a,t._$AP!==void 0&&(y=a._$AU)!==u._$AU&&t._$AP(y)}if(d!==n||v){let y=t._$AA;for(;y!==d;){let S=z1(y).nextSibling;z1(r).insertBefore(y,n),y=S}}}return t},Io=(a,s,t=a)=>(a._$AI(s,t),a),Ez={},fd=(a,s=Ez)=>a._$AH=s,F1=a=>a._$AH,vd=a=>{a._$AR(),a._$AA.remove()};var N1=(a,s,t)=>{let r=new Map;for(let n=s;n<=t;n++)r.set(a[n],n);return r},hi=fs(class extends Ao{constructor(a){if(super(a),a.type!==sr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,s,t){let r;t===void 0?t=s:s!==void 0&&(r=s);let n=[],d=[],u=0;for(let v of a)n[u]=r?r(v,u):u,d[u]=t(v,u),u++;return{values:d,keys:n}}render(a,s,t){return this.dt(a,s,t).values}update(a,[s,t,r]){let n=F1(a),{values:d,keys:u}=this.dt(s,t,r);if(!Array.isArray(n))return this.ut=u,d;let v=this.ut??=[],y=[],S,$,w=0,I=n.length-1,R=0,P=d.length-1;for(;w<=I&&R<=P;)if(n[w]===null)w++;else if(n[I]===null)I--;else if(v[w]===u[R])y[R]=Io(n[w],d[R]),w++,R++;else if(v[I]===u[P])y[P]=Io(n[I],d[P]),I--,P--;else if(v[w]===u[P])y[P]=Io(n[w],d[P]),vs(a,y[P+1],n[w]),w++,P--;else if(v[I]===u[R])y[R]=Io(n[I],d[R]),vs(a,n[w],n[I]),I--,R++;else if(S===void 0&&(S=N1(u,R,P),$=N1(v,w,I)),S.has(v[w]))if(S.has(v[I])){let H=$.get(u[R]),X=H!==void 0?n[H]:null;if(X===null){let j=vs(a,n[w]);Io(j,d[R]),y[R]=j}else y[R]=Io(X,d[R]),vs(a,n[w],X),n[H]=null;R++}else vd(n[I]),I--;else vd(n[w]),w++;for(;R<=P;){let H=vs(a,y[P+1]);Io(H,d[R]),y[R++]=H}for(;w<=I;){let H=n[w++];H!==null&&vd(H)}return this.ut=u,fd(a,y),Zt}});var Er=fs(class extends Ao{constructor(a){if(super(a),a.type!==sr.PROPERTY&&a.type!==sr.ATTRIBUTE&&a.type!==sr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!M1(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[s]){if(s===Zt||s===A)return s;let t=a.element,r=a.name;if(a.type===sr.PROPERTY){if(s===t[r])return Zt}else if(a.type===sr.BOOLEAN_ATTRIBUTE){if(!!s===t.hasAttribute(r))return Zt}else if(a.type===sr.ATTRIBUTE&&t.getAttribute(r)===s+"")return Zt;return fd(a),s}});var gd=new Map,H1=(a,s)=>{for(let[t,r]of gd)t!==a&&r();gd.clear(),gd.set(a,s)},Hv=a=>{gd.delete(a)};var _o=Math.min,le=Math.max,Hn=Math.round,Bn=Math.floor,nr=a=>({x:a,y:a}),Cz={left:"right",right:"left",bottom:"top",top:"bottom"},Sz={start:"end",end:"start"};function Bv(a,s,t){return le(a,_o(s,t))}function gs(a,s){return typeof a=="function"?a(s):a}function eo(a){return a.split("-")[0]}function bs(a){return a.split("-")[1]}function Dv(a){return a==="x"?"y":"x"}function Vv(a){return a==="y"?"height":"width"}var $z=new Set(["top","bottom"]);function Cr(a){return $z.has(eo(a))?"y":"x"}function qv(a){return Dv(Cr(a))}function V1(a,s,t){t===void 0&&(t=!1);let r=bs(a),n=qv(a),d=Vv(n),u=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return s.reference[d]>s.floating[d]&&(u=Nn(u)),[u,Nn(u)]}function q1(a){let s=Nn(a);return[bd(a),s,bd(s)]}function bd(a){return a.replace(/start|end/g,s=>Sz[s])}var B1=["left","right"],D1=["right","left"],Tz=["top","bottom"],Rz=["bottom","top"];function Az(a,s,t){switch(a){case"top":case"bottom":return t?s?D1:B1:s?B1:D1;case"left":case"right":return s?Tz:Rz;default:return[]}}function U1(a,s,t,r){let n=bs(a),d=Az(eo(a),t==="start",r);return n&&(d=d.map(u=>u+"-"+n),s&&(d=d.concat(d.map(bd)))),d}function Nn(a){return a.replace(/left|right|bottom|top/g,s=>Cz[s])}function Iz(a){return{top:0,right:0,bottom:0,left:0,...a}}function j1(a){return typeof a!="number"?Iz(a):{top:a,right:a,bottom:a,left:a}}function ui(a){let{x:s,y:t,width:r,height:n}=a;return{width:r,height:n,top:t,left:s,right:s+r,bottom:t+n,x:s,y:t}}function W1(a,s,t){let{reference:r,floating:n}=a,d=Cr(s),u=qv(s),v=Vv(u),y=eo(s),S=d==="y",$=r.x+r.width/2-n.width/2,w=r.y+r.height/2-n.height/2,I=r[v]/2-n[v]/2,R;switch(y){case"top":R={x:$,y:r.y-n.height};break;case"bottom":R={x:$,y:r.y+r.height};break;case"right":R={x:r.x+r.width,y:w};break;case"left":R={x:r.x-n.width,y:w};break;default:R={x:r.x,y:r.y}}switch(bs(s)){case"start":R[u]-=I*(t&&S?-1:1);break;case"end":R[u]+=I*(t&&S?-1:1);break}return R}async function K1(a,s){var t;s===void 0&&(s={});let{x:r,y:n,platform:d,rects:u,elements:v,strategy:y}=a,{boundary:S="clippingAncestors",rootBoundary:$="viewport",elementContext:w="floating",altBoundary:I=!1,padding:R=0}=gs(s,a),P=j1(R),X=v[I?w==="floating"?"reference":"floating":w],j=ui(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(X)))==null||t?X:X.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:S,rootBoundary:$,strategy:y})),M=w==="floating"?{x:r,y:n,width:u.floating.width,height:u.floating.height}:u.reference,q=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),Y=await(d.isElement==null?void 0:d.isElement(q))?await(d.getScale==null?void 0:d.getScale(q))||{x:1,y:1}:{x:1,y:1},Yt=ui(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:M,offsetParent:q,strategy:y}):M);return{top:(j.top-Yt.top+P.top)/Y.y,bottom:(Yt.bottom-j.bottom+P.bottom)/Y.y,left:(j.left-Yt.left+P.left)/Y.x,right:(Yt.right-j.right+P.right)/Y.x}}var G1=async(a,s,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:d=[],platform:u}=t,v=d.filter(Boolean),y=await(u.isRTL==null?void 0:u.isRTL(s)),S=await u.getElementRects({reference:a,floating:s,strategy:n}),{x:$,y:w}=W1(S,r,y),I=r,R={},P=0;for(let X=0;X<v.length;X++){var H;let{name:j,fn:M}=v[X],{x:q,y:Y,data:Yt,reset:ne}=await M({x:$,y:w,initialPlacement:r,placement:I,strategy:n,middlewareData:R,rects:S,platform:{...u,detectOverflow:(H=u.detectOverflow)!=null?H:K1},elements:{reference:a,floating:s}});$=q??$,w=Y??w,R={...R,[j]:{...R[j],...Yt}},ne&&P<=50&&(P++,typeof ne=="object"&&(ne.placement&&(I=ne.placement),ne.rects&&(S=ne.rects===!0?await u.getElementRects({reference:a,floating:s,strategy:n}):ne.rects),{x:$,y:w}=W1(S,I,y)),X=-1)}return{x:$,y:w,placement:I,strategy:n,middlewareData:R}};var Y1=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(s){var t,r;let{placement:n,middlewareData:d,rects:u,initialPlacement:v,platform:y,elements:S}=s,{mainAxis:$=!0,crossAxis:w=!0,fallbackPlacements:I,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:H=!0,...X}=gs(a,s);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let j=eo(n),M=Cr(v),q=eo(v)===v,Y=await(y.isRTL==null?void 0:y.isRTL(S.floating)),Yt=I||(q||!H?[Nn(v)]:q1(v)),ne=P!=="none";!I&&ne&&Yt.push(...U1(v,H,P,Y));let xr=[v,...Yt],Go=await y.detectOverflow(s,X),Yo=[],Xr=((r=d.flip)==null?void 0:r.overflows)||[];if($&&Yo.push(Go[j]),w){let Xo=V1(n,u,Y);Yo.push(Go[Xo[0]],Go[Xo[1]])}if(Xr=[...Xr,{placement:n,overflows:Yo}],!Yo.every(Xo=>Xo<=0)){var sn,nn;let Xo=(((sn=d.flip)==null?void 0:sn.index)||0)+1,Oh=xr[Xo];if(Oh&&(!(w==="alignment"?M!==Cr(Oh):!1)||Xr.every(Ze=>Cr(Ze.placement)===M?Ze.overflows[0]>0:!0)))return{data:{index:Xo,overflows:Xr},reset:{placement:Oh}};let ln=(nn=Xr.filter(Qo=>Qo.overflows[0]<=0).sort((Qo,Ze)=>Qo.overflows[1]-Ze.overflows[1])[0])==null?void 0:nn.placement;if(!ln)switch(R){case"bestFit":{var an;let Qo=(an=Xr.filter(Ze=>{if(ne){let Eo=Cr(Ze.placement);return Eo===M||Eo==="y"}return!0}).map(Ze=>[Ze.placement,Ze.overflows.filter(Eo=>Eo>0).reduce((Eo,_O)=>Eo+_O,0)]).sort((Ze,Eo)=>Ze[1]-Eo[1])[0])==null?void 0:an[0];Qo&&(ln=Qo);break}case"initialPlacement":ln=v;break}if(n!==ln)return{reset:{placement:ln}}}return{}}}};var _z=new Set(["left","top"]);async function Lz(a,s){let{placement:t,platform:r,elements:n}=a,d=await(r.isRTL==null?void 0:r.isRTL(n.floating)),u=eo(t),v=bs(t),y=Cr(t)==="y",S=_z.has(u)?-1:1,$=d&&y?-1:1,w=gs(s,a),{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),y?{x:R*$,y:I*S}:{x:I*S,y:R*$}}var X1=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(s){var t,r;let{x:n,y:d,placement:u,middlewareData:v}=s,y=await Lz(s,a);return u===((t=v.offset)==null?void 0:t.placement)&&(r=v.arrow)!=null&&r.alignmentOffset?{}:{x:n+y.x,y:d+y.y,data:{...y,placement:u}}}}},Q1=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(s){let{x:t,y:r,placement:n,platform:d}=s,{mainAxis:u=!0,crossAxis:v=!1,limiter:y={fn:j=>{let{x:M,y:q}=j;return{x:M,y:q}}},...S}=gs(a,s),$={x:t,y:r},w=await d.detectOverflow(s,S),I=Cr(eo(n)),R=Dv(I),P=$[R],H=$[I];if(u){let j=R==="y"?"top":"left",M=R==="y"?"bottom":"right",q=P+w[j],Y=P-w[M];P=Bv(q,P,Y)}if(v){let j=I==="y"?"top":"left",M=I==="y"?"bottom":"right",q=H+w[j],Y=H-w[M];H=Bv(q,H,Y)}let X=y.fn({...s,[R]:P,[I]:H});return{...X,data:{x:X.x-t,y:X.y-r,enabled:{[R]:u,[I]:v}}}}}};var J1=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(s){var t,r;let{placement:n,rects:d,platform:u,elements:v}=s,{apply:y=()=>{},...S}=gs(a,s),$=await u.detectOverflow(s,S),w=eo(n),I=bs(n),R=Cr(n)==="y",{width:P,height:H}=d.floating,X,j;w==="top"||w==="bottom"?(X=w,j=I===(await(u.isRTL==null?void 0:u.isRTL(v.floating))?"start":"end")?"left":"right"):(j=w,X=I==="end"?"top":"bottom");let M=H-$.top-$.bottom,q=P-$.left-$.right,Y=_o(H-$[X],M),Yt=_o(P-$[j],q),ne=!s.middlewareData.shift,xr=Y,Go=Yt;if((t=s.middlewareData.shift)!=null&&t.enabled.x&&(Go=q),(r=s.middlewareData.shift)!=null&&r.enabled.y&&(xr=M),ne&&!I){let Xr=le($.left,0),sn=le($.right,0),nn=le($.top,0),an=le($.bottom,0);R?Go=P-2*(Xr!==0||sn!==0?Xr+sn:le($.left,$.right)):xr=H-2*(nn!==0||an!==0?nn+an:le($.top,$.bottom))}await y({...s,availableWidth:Go,availableHeight:xr});let Yo=await u.getDimensions(v.floating);return P!==Yo.width||H!==Yo.height?{reset:{rects:!0}}:{}}}};function xd(){return typeof window<"u"}function mi(a){return t$(a)?(a.nodeName||"").toLowerCase():"#document"}function fe(a){var s;return(a==null||(s=a.ownerDocument)==null?void 0:s.defaultView)||window}function ar(a){var s;return(s=(t$(a)?a.ownerDocument:a.document)||window.document)==null?void 0:s.documentElement}function t$(a){return xd()?a instanceof Node||a instanceof fe(a).Node:!1}function Ue(a){return xd()?a instanceof Element||a instanceof fe(a).Element:!1}function lr(a){return xd()?a instanceof HTMLElement||a instanceof fe(a).HTMLElement:!1}function Z1(a){return!xd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof fe(a).ShadowRoot}var Oz=new Set(["inline","contents"]);function ys(a){let{overflow:s,overflowX:t,overflowY:r,display:n}=je(a);return/auto|scroll|overlay|hidden|clip/.test(s+r+t)&&!Oz.has(n)}var zz=new Set(["table","td","th"]);function e$(a){return zz.has(mi(a))}var Pz=[":popover-open",":modal"];function Dn(a){return Pz.some(s=>{try{return a.matches(s)}catch{return!1}})}var Mz=["transform","translate","scale","rotate","perspective"],Fz=["transform","translate","scale","rotate","perspective","filter"],Nz=["paint","layout","strict","content"];function yd(a){let s=wd(),t=Ue(a)?je(a):a;return Mz.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!s&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!s&&(t.filter?t.filter!=="none":!1)||Fz.some(r=>(t.willChange||"").includes(r))||Nz.some(r=>(t.contain||"").includes(r))}function r$(a){let s=ro(a);for(;lr(s)&&!fi(s);){if(yd(s))return s;if(Dn(s))return null;s=ro(s)}return null}function wd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Hz=new Set(["html","body","#document"]);function fi(a){return Hz.has(mi(a))}function je(a){return fe(a).getComputedStyle(a)}function Vn(a){return Ue(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ro(a){if(mi(a)==="html")return a;let s=a.assignedSlot||a.parentNode||Z1(a)&&a.host||ar(a);return Z1(s)?s.host:s}function o$(a){let s=ro(a);return fi(s)?a.ownerDocument?a.ownerDocument.body:a.body:lr(s)&&ys(s)?s:o$(s)}function xs(a,s,t){var r;s===void 0&&(s=[]),t===void 0&&(t=!0);let n=o$(a),d=n===((r=a.ownerDocument)==null?void 0:r.body),u=fe(n);if(d){let v=kd(u);return s.concat(u,u.visualViewport||[],ys(n)?n:[],v&&t?xs(v):[])}return s.concat(n,xs(n,[],t))}function kd(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function a$(a){let s=je(a),t=parseFloat(s.width)||0,r=parseFloat(s.height)||0,n=lr(a),d=n?a.offsetWidth:t,u=n?a.offsetHeight:r,v=Hn(t)!==d||Hn(r)!==u;return v&&(t=d,r=u),{width:t,height:r,$:v}}function jv(a){return Ue(a)?a:a.contextElement}function ws(a){let s=jv(a);if(!lr(s))return nr(1);let t=s.getBoundingClientRect(),{width:r,height:n,$:d}=a$(s),u=(d?Hn(t.width):t.width)/r,v=(d?Hn(t.height):t.height)/n;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}var Bz=nr(0);function l$(a){let s=fe(a);return!wd()||!s.visualViewport?Bz:{x:s.visualViewport.offsetLeft,y:s.visualViewport.offsetTop}}function Dz(a,s,t){return s===void 0&&(s=!1),!t||s&&t!==fe(a)?!1:s}function vi(a,s,t,r){s===void 0&&(s=!1),t===void 0&&(t=!1);let n=a.getBoundingClientRect(),d=jv(a),u=nr(1);s&&(r?Ue(r)&&(u=ws(r)):u=ws(a));let v=Dz(d,t,r)?l$(d):nr(0),y=(n.left+v.x)/u.x,S=(n.top+v.y)/u.y,$=n.width/u.x,w=n.height/u.y;if(d){let I=fe(d),R=r&&Ue(r)?fe(r):r,P=I,H=kd(P);for(;H&&r&&R!==P;){let X=ws(H),j=H.getBoundingClientRect(),M=je(H),q=j.left+(H.clientLeft+parseFloat(M.paddingLeft))*X.x,Y=j.top+(H.clientTop+parseFloat(M.paddingTop))*X.y;y*=X.x,S*=X.y,$*=X.x,w*=X.y,y+=q,S+=Y,P=fe(H),H=kd(P)}}return ui({width:$,height:w,x:y,y:S})}function Ed(a,s){let t=Vn(a).scrollLeft;return s?s.left+t:vi(ar(a)).left+t}function d$(a,s){let t=a.getBoundingClientRect(),r=t.left+s.scrollLeft-Ed(a,t),n=t.top+s.scrollTop;return{x:r,y:n}}function Vz(a){let{elements:s,rect:t,offsetParent:r,strategy:n}=a,d=n==="fixed",u=ar(r),v=s?Dn(s.floating):!1;if(r===u||v&&d)return t;let y={scrollLeft:0,scrollTop:0},S=nr(1),$=nr(0),w=lr(r);if((w||!w&&!d)&&((mi(r)!=="body"||ys(u))&&(y=Vn(r)),lr(r))){let R=vi(r);S=ws(r),$.x=R.x+r.clientLeft,$.y=R.y+r.clientTop}let I=u&&!w&&!d?d$(u,y):nr(0);return{width:t.width*S.x,height:t.height*S.y,x:t.x*S.x-y.scrollLeft*S.x+$.x+I.x,y:t.y*S.y-y.scrollTop*S.y+$.y+I.y}}function qz(a){return Array.from(a.getClientRects())}function Uz(a){let s=ar(a),t=Vn(a),r=a.ownerDocument.body,n=le(s.scrollWidth,s.clientWidth,r.scrollWidth,r.clientWidth),d=le(s.scrollHeight,s.clientHeight,r.scrollHeight,r.clientHeight),u=-t.scrollLeft+Ed(a),v=-t.scrollTop;return je(r).direction==="rtl"&&(u+=le(s.clientWidth,r.clientWidth)-n),{width:n,height:d,x:u,y:v}}var i$=25;function jz(a,s){let t=fe(a),r=ar(a),n=t.visualViewport,d=r.clientWidth,u=r.clientHeight,v=0,y=0;if(n){d=n.width,u=n.height;let $=wd();(!$||$&&s==="fixed")&&(v=n.offsetLeft,y=n.offsetTop)}let S=Ed(r);if(S<=0){let $=r.ownerDocument,w=$.body,I=getComputedStyle(w),R=$.compatMode==="CSS1Compat"&&parseFloat(I.marginLeft)+parseFloat(I.marginRight)||0,P=Math.abs(r.clientWidth-w.clientWidth-R);P<=i$&&(d-=P)}else S<=i$&&(d+=S);return{width:d,height:u,x:v,y}}var Wz=new Set(["absolute","fixed"]);function Kz(a,s){let t=vi(a,!0,s==="fixed"),r=t.top+a.clientTop,n=t.left+a.clientLeft,d=lr(a)?ws(a):nr(1),u=a.clientWidth*d.x,v=a.clientHeight*d.y,y=n*d.x,S=r*d.y;return{width:u,height:v,x:y,y:S}}function s$(a,s,t){let r;if(s==="viewport")r=jz(a,t);else if(s==="document")r=Uz(ar(a));else if(Ue(s))r=Kz(s,t);else{let n=l$(a);r={x:s.x-n.x,y:s.y-n.y,width:s.width,height:s.height}}return ui(r)}function c$(a,s){let t=ro(a);return t===s||!Ue(t)||fi(t)?!1:je(t).position==="fixed"||c$(t,s)}function Gz(a,s){let t=s.get(a);if(t)return t;let r=xs(a,[],!1).filter(v=>Ue(v)&&mi(v)!=="body"),n=null,d=je(a).position==="fixed",u=d?ro(a):a;for(;Ue(u)&&!fi(u);){let v=je(u),y=yd(u);!y&&v.position==="fixed"&&(n=null),(d?!y&&!n:!y&&v.position==="static"&&!!n&&Wz.has(n.position)||ys(u)&&!y&&c$(a,u))?r=r.filter($=>$!==u):n=v,u=ro(u)}return s.set(a,r),r}function Yz(a){let{element:s,boundary:t,rootBoundary:r,strategy:n}=a,u=[...t==="clippingAncestors"?Dn(s)?[]:Gz(s,this._c):[].concat(t),r],v=u[0],y=u.reduce((S,$)=>{let w=s$(s,$,n);return S.top=le(w.top,S.top),S.right=_o(w.right,S.right),S.bottom=_o(w.bottom,S.bottom),S.left=le(w.left,S.left),S},s$(s,v,n));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Xz(a){let{width:s,height:t}=a$(a);return{width:s,height:t}}function Qz(a,s,t){let r=lr(s),n=ar(s),d=t==="fixed",u=vi(a,!0,d,s),v={scrollLeft:0,scrollTop:0},y=nr(0);function S(){y.x=Ed(n)}if(r||!r&&!d)if((mi(s)!=="body"||ys(n))&&(v=Vn(s)),r){let R=vi(s,!0,d,s);y.x=R.x+s.clientLeft,y.y=R.y+s.clientTop}else n&&S();d&&!r&&n&&S();let $=n&&!r&&!d?d$(n,v):nr(0),w=u.left+v.scrollLeft-y.x-$.x,I=u.top+v.scrollTop-y.y-$.y;return{x:w,y:I,width:u.width,height:u.height}}function Uv(a){return je(a).position==="static"}function n$(a,s){if(!lr(a)||je(a).position==="fixed")return null;if(s)return s(a);let t=a.offsetParent;return ar(a)===t&&(t=t.ownerDocument.body),t}function p$(a,s){let t=fe(a);if(Dn(a))return t;if(!lr(a)){let n=ro(a);for(;n&&!fi(n);){if(Ue(n)&&!Uv(n))return n;n=ro(n)}return t}let r=n$(a,s);for(;r&&e$(r)&&Uv(r);)r=n$(r,s);return r&&fi(r)&&Uv(r)&&!yd(r)?t:r||r$(a)||t}var Jz=async function(a){let s=this.getOffsetParent||p$,t=this.getDimensions,r=await t(a.floating);return{reference:Qz(a.reference,await s(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Zz(a){return je(a).direction==="rtl"}var Wv={convertOffsetParentRelativeRectToViewportRelativeRect:Vz,getDocumentElement:ar,getClippingRect:Yz,getOffsetParent:p$,getElementRects:Jz,getClientRects:qz,getDimensions:Xz,getScale:ws,isElement:Ue,isRTL:Zz};function h$(a,s){return a.x===s.x&&a.y===s.y&&a.width===s.width&&a.height===s.height}function tP(a,s){let t=null,r,n=ar(a);function d(){var v;clearTimeout(r),(v=t)==null||v.disconnect(),t=null}function u(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),d();let S=a.getBoundingClientRect(),{left:$,top:w,width:I,height:R}=S;if(v||s(),!I||!R)return;let P=Bn(w),H=Bn(n.clientWidth-($+I)),X=Bn(n.clientHeight-(w+R)),j=Bn($),q={rootMargin:-P+"px "+-H+"px "+-X+"px "+-j+"px",threshold:le(0,_o(1,y))||1},Y=!0;function Yt(ne){let xr=ne[0].intersectionRatio;if(xr!==y){if(!Y)return u();xr?u(!1,xr):r=setTimeout(()=>{u(!1,1e-7)},1e3)}xr===1&&!h$(S,a.getBoundingClientRect())&&u(),Y=!1}try{t=new IntersectionObserver(Yt,{...q,root:n.ownerDocument})}catch{t=new IntersectionObserver(Yt,q)}t.observe(a)}return u(!0),d}function u$(a,s,t,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:y=!1}=r,S=jv(a),$=n||d?[...S?xs(S):[],...xs(s)]:[];$.forEach(j=>{n&&j.addEventListener("scroll",t,{passive:!0}),d&&j.addEventListener("resize",t)});let w=S&&v?tP(S,t):null,I=-1,R=null;u&&(R=new ResizeObserver(j=>{let[M]=j;M&&M.target===S&&R&&(R.unobserve(s),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var q;(q=R)==null||q.observe(s)})),t()}),S&&!y&&R.observe(S),R.observe(s));let P,H=y?vi(a):null;y&&X();function X(){let j=vi(a);H&&!h$(H,j)&&t(),H=j,P=requestAnimationFrame(X)}return t(),()=>{var j;$.forEach(M=>{n&&M.removeEventListener("scroll",t),d&&M.removeEventListener("resize",t)}),w?.(),(j=R)==null||j.disconnect(),R=null,y&&cancelAnimationFrame(P)}}var m$=X1;var f$=Q1,v$=Y1,Kv=J1;var g$=(a,s,t)=>{let r=new Map,n={platform:Wv,...t},d={...n.platform,_c:r};return G1(a,s,{...n,platform:d})};var b$=()=>new Promise(a=>requestAnimationFrame(()=>requestAnimationFrame(()=>a()))),x$=(a,s,t=200)=>{let r=!1,n=()=>{r||(r=!0,a.removeEventListener("transitionend",d),clearTimeout(u),s())},d=()=>n();a.addEventListener("transitionend",d);let u=setTimeout(n,t)},ks=a=>f`
|
|
4984
|
+
`:I}
|
|
4985
|
+
`}};vt=C(A1),kv=new WeakMap,Ev=new WeakMap,Cv=new WeakMap,Sv=new WeakMap,$v=new WeakMap,D=new WeakSet,Rv=new WeakMap,Av=new WeakMap,Lv=new WeakMap,zv=new WeakMap,ci=new WeakMap,pi=new WeakMap,Ro=new WeakMap,Fn=function(){return e(this,Ro)?this.open:e(this,D,O1)},z1=function(){let t=++os(this,pi)._;p(this,D,!1,pd),p(this,D,!0,hd),p(this,D,!0,dd),p(this,D,"0",di),requestAnimationFrame(()=>{if(e(this,pi)!==t)return;let r=this.shadowRoot?.querySelector("[part='panel']");r&&p(this,D,`${r.scrollHeight}px`,di),p(this,D,!1,dd)})},P1=function(){let t=++os(this,pi)._;p(this,D,!1,dd);let r=this.shadowRoot?.querySelector("[part='panel']");r&&p(this,D,`${r.scrollHeight}px`,di),requestAnimationFrame(()=>{e(this,pi)===t&&(p(this,D,!0,pd),p(this,D,"0",di))})},ud=new WeakMap,md=new WeakMap,l(vt,4,"open",I1,Ue,kv),l(vt,4,"defaultOpen",R1,Ue,Ev),l(vt,4,"disabled",T1,Ue,Cv),l(vt,4,"keepMounted",$1,Ue,Sv),Tv=l(vt,20,"#starting",S1,D,$v),Mv=Tv.get,dd=Tv.set,Iv=l(vt,20,"#ending",C1,D,Rv),cd=Iv.get,pd=Iv.set,_v=l(vt,20,"#panelHeight",E1,D,Av),L1=_v.get,di=_v.set,Ov=l(vt,20,"#visible",k1,D,Lv),Fv=Ov.get,hd=Ov.set,Pv=l(vt,20,"#internalOpen",w1,D,zv),O1=Pv.get,Hv=Pv.set,E(vt,Ue),g(Ue,"tagName","dui-collapsible"),g(Ue,"styles",[x,Sz]);var sr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},fs=a=>(...s)=>({_$litDirective$:a,values:s}),Io=class{constructor(s){}get _$AU(){return this._$AM._$AU}_$AT(s,t,r){this._$Ct=s,this._$AM=t,this._$Ci=r}_$AS(s,t){return this.update(s,t)}update(s,t){return this.render(...t)}};var{I:$z}=pC,M1=a=>a;var H1=a=>a.strings===void 0,F1=()=>document.createComment(""),vs=(a,s,t)=>{let r=a._$AA.parentNode,n=s===void 0?a._$AB:s._$AA;if(t===void 0){let d=r.insertBefore(F1(),n),u=r.insertBefore(F1(),n);t=new $z(d,u,a,a.options)}else{let d=t._$AB.nextSibling,u=t._$AM,v=u!==a;if(v){let w;t._$AQ?.(a),t._$AM=a,t._$AP!==void 0&&(w=a._$AU)!==u._$AU&&t._$AP(w)}if(d!==n||v){let w=t._$AA;for(;w!==d;){let S=M1(w).nextSibling;M1(r).insertBefore(w,n),w=S}}}return t},Ao=(a,s,t=a)=>(a._$AI(s,t),a),Tz={},fd=(a,s=Tz)=>a._$AH=s,N1=a=>a._$AH,vd=a=>{a._$AR(),a._$AA.remove()};var B1=(a,s,t)=>{let r=new Map;for(let n=s;n<=t;n++)r.set(a[n],n);return r},hi=fs(class extends Io{constructor(a){if(super(a),a.type!==sr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,s,t){let r;t===void 0?t=s:s!==void 0&&(r=s);let n=[],d=[],u=0;for(let v of a)n[u]=r?r(v,u):u,d[u]=t(v,u),u++;return{values:d,keys:n}}render(a,s,t){return this.dt(a,s,t).values}update(a,[s,t,r]){let n=N1(a),{values:d,keys:u}=this.dt(s,t,r);if(!Array.isArray(n))return this.ut=u,d;let v=this.ut??=[],w=[],S,$,y=0,A=n.length-1,R=0,P=d.length-1;for(;y<=A&&R<=P;)if(n[y]===null)y++;else if(n[A]===null)A--;else if(v[y]===u[R])w[R]=Ao(n[y],d[R]),y++,R++;else if(v[A]===u[P])w[P]=Ao(n[A],d[P]),A--,P--;else if(v[y]===u[P])w[P]=Ao(n[y],d[P]),vs(a,w[P+1],n[y]),y++,P--;else if(v[A]===u[R])w[R]=Ao(n[A],d[R]),vs(a,n[y],n[A]),A--,R++;else if(S===void 0&&(S=B1(u,R,P),$=B1(v,y,A)),S.has(v[y]))if(S.has(v[A])){let N=$.get(u[R]),W=N!==void 0?n[N]:null;if(W===null){let B=vs(a,n[y]);Ao(B,d[R]),w[R]=B}else w[R]=Ao(W,d[R]),vs(a,n[y],W),n[N]=null;R++}else vd(n[A]),A--;else vd(n[y]),y++;for(;R<=P;){let N=vs(a,w[P+1]);Ao(N,d[R]),w[R++]=N}for(;y<=A;){let N=n[y++];N!==null&&vd(N)}return this.ut=u,fd(a,w),te}});var Er=fs(class extends Io{constructor(a){if(super(a),a.type!==sr.PROPERTY&&a.type!==sr.ATTRIBUTE&&a.type!==sr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!H1(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[s]){if(s===te||s===I)return s;let t=a.element,r=a.name;if(a.type===sr.PROPERTY){if(s===t[r])return te}else if(a.type===sr.BOOLEAN_ATTRIBUTE){if(!!s===t.hasAttribute(r))return te}else if(a.type===sr.ATTRIBUTE&&t.getAttribute(r)===s+"")return te;return fd(a),s}});var gd=new Map,D1=(a,s)=>{for(let[t,r]of gd)t!==a&&r();gd.clear(),gd.set(a,s)},Nv=a=>{gd.delete(a)};var _o=Math.min,le=Math.max,Nn=Math.round,Bn=Math.floor,nr=a=>({x:a,y:a}),Rz={left:"right",right:"left",bottom:"top",top:"bottom"},Iz={start:"end",end:"start"};function Bv(a,s,t){return le(a,_o(s,t))}function gs(a,s){return typeof a=="function"?a(s):a}function eo(a){return a.split("-")[0]}function bs(a){return a.split("-")[1]}function Dv(a){return a==="x"?"y":"x"}function Vv(a){return a==="y"?"height":"width"}var Az=new Set(["top","bottom"]);function Cr(a){return Az.has(eo(a))?"y":"x"}function qv(a){return Dv(Cr(a))}function U1(a,s,t){t===void 0&&(t=!1);let r=bs(a),n=qv(a),d=Vv(n),u=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return s.reference[d]>s.floating[d]&&(u=Hn(u)),[u,Hn(u)]}function j1(a){let s=Hn(a);return[bd(a),s,bd(s)]}function bd(a){return a.replace(/start|end/g,s=>Iz[s])}var V1=["left","right"],q1=["right","left"],_z=["top","bottom"],Lz=["bottom","top"];function Oz(a,s,t){switch(a){case"top":case"bottom":return t?s?q1:V1:s?V1:q1;case"left":case"right":return s?_z:Lz;default:return[]}}function W1(a,s,t,r){let n=bs(a),d=Oz(eo(a),t==="start",r);return n&&(d=d.map(u=>u+"-"+n),s&&(d=d.concat(d.map(bd)))),d}function Hn(a){return a.replace(/left|right|bottom|top/g,s=>Rz[s])}function zz(a){return{top:0,right:0,bottom:0,left:0,...a}}function K1(a){return typeof a!="number"?zz(a):{top:a,right:a,bottom:a,left:a}}function ui(a){let{x:s,y:t,width:r,height:n}=a;return{width:r,height:n,top:t,left:s,right:s+r,bottom:t+n,x:s,y:t}}function G1(a,s,t){let{reference:r,floating:n}=a,d=Cr(s),u=qv(s),v=Vv(u),w=eo(s),S=d==="y",$=r.x+r.width/2-n.width/2,y=r.y+r.height/2-n.height/2,A=r[v]/2-n[v]/2,R;switch(w){case"top":R={x:$,y:r.y-n.height};break;case"bottom":R={x:$,y:r.y+r.height};break;case"right":R={x:r.x+r.width,y};break;case"left":R={x:r.x-n.width,y};break;default:R={x:r.x,y:r.y}}switch(bs(s)){case"start":R[u]-=A*(t&&S?-1:1);break;case"end":R[u]+=A*(t&&S?-1:1);break}return R}async function Y1(a,s){var t;s===void 0&&(s={});let{x:r,y:n,platform:d,rects:u,elements:v,strategy:w}=a,{boundary:S="clippingAncestors",rootBoundary:$="viewport",elementContext:y="floating",altBoundary:A=!1,padding:R=0}=gs(s,a),P=K1(R),W=v[A?y==="floating"?"reference":"floating":y],B=ui(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(W)))==null||t?W:W.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:S,rootBoundary:$,strategy:w})),M=y==="floating"?{x:r,y:n,width:u.floating.width,height:u.floating.height}:u.reference,q=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),K=await(d.isElement==null?void 0:d.isElement(q))?await(d.getScale==null?void 0:d.getScale(q))||{x:1,y:1}:{x:1,y:1},Xt=ui(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:M,offsetParent:q,strategy:w}):M);return{top:(B.top-Xt.top+P.top)/K.y,bottom:(Xt.bottom-B.bottom+P.bottom)/K.y,left:(B.left-Xt.left+P.left)/K.x,right:(Xt.right-B.right+P.right)/K.x}}var X1=async(a,s,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:d=[],platform:u}=t,v=d.filter(Boolean),w=await(u.isRTL==null?void 0:u.isRTL(s)),S=await u.getElementRects({reference:a,floating:s,strategy:n}),{x:$,y}=G1(S,r,w),A=r,R={},P=0;for(let W=0;W<v.length;W++){var N;let{name:B,fn:M}=v[W],{x:q,y:K,data:Xt,reset:ne}=await M({x:$,y,initialPlacement:r,placement:A,strategy:n,middlewareData:R,rects:S,platform:{...u,detectOverflow:(N=u.detectOverflow)!=null?N:Y1},elements:{reference:a,floating:s}});$=q??$,y=K??y,R={...R,[B]:{...R[B],...Xt}},ne&&P<=50&&(P++,typeof ne=="object"&&(ne.placement&&(A=ne.placement),ne.rects&&(S=ne.rects===!0?await u.getElementRects({reference:a,floating:s,strategy:n}):ne.rects),{x:$,y}=G1(S,A,w)),W=-1)}return{x:$,y,placement:A,strategy:n,middlewareData:R}};var Q1=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(s){var t,r;let{placement:n,middlewareData:d,rects:u,initialPlacement:v,platform:w,elements:S}=s,{mainAxis:$=!0,crossAxis:y=!0,fallbackPlacements:A,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:N=!0,...W}=gs(a,s);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let B=eo(n),M=Cr(v),q=eo(v)===v,K=await(w.isRTL==null?void 0:w.isRTL(S.floating)),Xt=A||(q||!N?[Hn(v)]:j1(v)),ne=P!=="none";!A&&ne&&Xt.push(...W1(v,N,P,K));let xr=[v,...Xt],Go=await w.detectOverflow(s,W),Yo=[],Xr=((r=d.flip)==null?void 0:r.overflows)||[];if($&&Yo.push(Go[B]),y){let Xo=U1(n,u,K);Yo.push(Go[Xo[0]],Go[Xo[1]])}if(Xr=[...Xr,{placement:n,overflows:Yo}],!Yo.every(Xo=>Xo<=0)){var sn,nn;let Xo=(((sn=d.flip)==null?void 0:sn.index)||0)+1,Oh=xr[Xo];if(Oh&&(!(y==="alignment"?M!==Cr(Oh):!1)||Xr.every(Ze=>Cr(Ze.placement)===M?Ze.overflows[0]>0:!0)))return{data:{index:Xo,overflows:Xr},reset:{placement:Oh}};let ln=(nn=Xr.filter(Qo=>Qo.overflows[0]<=0).sort((Qo,Ze)=>Qo.overflows[1]-Ze.overflows[1])[0])==null?void 0:nn.placement;if(!ln)switch(R){case"bestFit":{var an;let Qo=(an=Xr.filter(Ze=>{if(ne){let Eo=Cr(Ze.placement);return Eo===M||Eo==="y"}return!0}).map(Ze=>[Ze.placement,Ze.overflows.filter(Eo=>Eo>0).reduce((Eo,PO)=>Eo+PO,0)]).sort((Ze,Eo)=>Ze[1]-Eo[1])[0])==null?void 0:an[0];Qo&&(ln=Qo);break}case"initialPlacement":ln=v;break}if(n!==ln)return{reset:{placement:ln}}}return{}}}};var Pz=new Set(["left","top"]);async function Mz(a,s){let{placement:t,platform:r,elements:n}=a,d=await(r.isRTL==null?void 0:r.isRTL(n.floating)),u=eo(t),v=bs(t),w=Cr(t)==="y",S=Pz.has(u)?-1:1,$=d&&w?-1:1,y=gs(s,a),{mainAxis:A,crossAxis:R,alignmentAxis:P}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return v&&typeof P=="number"&&(R=v==="end"?P*-1:P),w?{x:R*$,y:A*S}:{x:A*S,y:R*$}}var J1=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(s){var t,r;let{x:n,y:d,placement:u,middlewareData:v}=s,w=await Mz(s,a);return u===((t=v.offset)==null?void 0:t.placement)&&(r=v.arrow)!=null&&r.alignmentOffset?{}:{x:n+w.x,y:d+w.y,data:{...w,placement:u}}}}},Z1=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(s){let{x:t,y:r,placement:n,platform:d}=s,{mainAxis:u=!0,crossAxis:v=!1,limiter:w={fn:B=>{let{x:M,y:q}=B;return{x:M,y:q}}},...S}=gs(a,s),$={x:t,y:r},y=await d.detectOverflow(s,S),A=Cr(eo(n)),R=Dv(A),P=$[R],N=$[A];if(u){let B=R==="y"?"top":"left",M=R==="y"?"bottom":"right",q=P+y[B],K=P-y[M];P=Bv(q,P,K)}if(v){let B=A==="y"?"top":"left",M=A==="y"?"bottom":"right",q=N+y[B],K=N-y[M];N=Bv(q,N,K)}let W=w.fn({...s,[R]:P,[A]:N});return{...W,data:{x:W.x-t,y:W.y-r,enabled:{[R]:u,[A]:v}}}}}};var t$=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(s){var t,r;let{placement:n,rects:d,platform:u,elements:v}=s,{apply:w=()=>{},...S}=gs(a,s),$=await u.detectOverflow(s,S),y=eo(n),A=bs(n),R=Cr(n)==="y",{width:P,height:N}=d.floating,W,B;y==="top"||y==="bottom"?(W=y,B=A===(await(u.isRTL==null?void 0:u.isRTL(v.floating))?"start":"end")?"left":"right"):(B=y,W=A==="end"?"top":"bottom");let M=N-$.top-$.bottom,q=P-$.left-$.right,K=_o(N-$[W],M),Xt=_o(P-$[B],q),ne=!s.middlewareData.shift,xr=K,Go=Xt;if((t=s.middlewareData.shift)!=null&&t.enabled.x&&(Go=q),(r=s.middlewareData.shift)!=null&&r.enabled.y&&(xr=M),ne&&!A){let Xr=le($.left,0),sn=le($.right,0),nn=le($.top,0),an=le($.bottom,0);R?Go=P-2*(Xr!==0||sn!==0?Xr+sn:le($.left,$.right)):xr=N-2*(nn!==0||an!==0?nn+an:le($.top,$.bottom))}await w({...s,availableWidth:Go,availableHeight:xr});let Yo=await u.getDimensions(v.floating);return P!==Yo.width||N!==Yo.height?{reset:{rects:!0}}:{}}}};function xd(){return typeof window<"u"}function mi(a){return r$(a)?(a.nodeName||"").toLowerCase():"#document"}function ve(a){var s;return(a==null||(s=a.ownerDocument)==null?void 0:s.defaultView)||window}function ar(a){var s;return(s=(r$(a)?a.ownerDocument:a.document)||window.document)==null?void 0:s.documentElement}function r$(a){return xd()?a instanceof Node||a instanceof ve(a).Node:!1}function je(a){return xd()?a instanceof Element||a instanceof ve(a).Element:!1}function lr(a){return xd()?a instanceof HTMLElement||a instanceof ve(a).HTMLElement:!1}function e$(a){return!xd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ve(a).ShadowRoot}var Fz=new Set(["inline","contents"]);function ys(a){let{overflow:s,overflowX:t,overflowY:r,display:n}=We(a);return/auto|scroll|overlay|hidden|clip/.test(s+r+t)&&!Fz.has(n)}var Hz=new Set(["table","td","th"]);function o$(a){return Hz.has(mi(a))}var Nz=[":popover-open",":modal"];function Dn(a){return Nz.some(s=>{try{return a.matches(s)}catch{return!1}})}var Bz=["transform","translate","scale","rotate","perspective"],Dz=["transform","translate","scale","rotate","perspective","filter"],Vz=["paint","layout","strict","content"];function yd(a){let s=wd(),t=je(a)?We(a):a;return Bz.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!s&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!s&&(t.filter?t.filter!=="none":!1)||Dz.some(r=>(t.willChange||"").includes(r))||Vz.some(r=>(t.contain||"").includes(r))}function i$(a){let s=ro(a);for(;lr(s)&&!fi(s);){if(yd(s))return s;if(Dn(s))return null;s=ro(s)}return null}function wd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var qz=new Set(["html","body","#document"]);function fi(a){return qz.has(mi(a))}function We(a){return ve(a).getComputedStyle(a)}function Vn(a){return je(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ro(a){if(mi(a)==="html")return a;let s=a.assignedSlot||a.parentNode||e$(a)&&a.host||ar(a);return e$(s)?s.host:s}function s$(a){let s=ro(a);return fi(s)?a.ownerDocument?a.ownerDocument.body:a.body:lr(s)&&ys(s)?s:s$(s)}function xs(a,s,t){var r;s===void 0&&(s=[]),t===void 0&&(t=!0);let n=s$(a),d=n===((r=a.ownerDocument)==null?void 0:r.body),u=ve(n);if(d){let v=kd(u);return s.concat(u,u.visualViewport||[],ys(n)?n:[],v&&t?xs(v):[])}return s.concat(n,xs(n,[],t))}function kd(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function d$(a){let s=We(a),t=parseFloat(s.width)||0,r=parseFloat(s.height)||0,n=lr(a),d=n?a.offsetWidth:t,u=n?a.offsetHeight:r,v=Nn(t)!==d||Nn(r)!==u;return v&&(t=d,r=u),{width:t,height:r,$:v}}function jv(a){return je(a)?a:a.contextElement}function ws(a){let s=jv(a);if(!lr(s))return nr(1);let t=s.getBoundingClientRect(),{width:r,height:n,$:d}=d$(s),u=(d?Nn(t.width):t.width)/r,v=(d?Nn(t.height):t.height)/n;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}var Uz=nr(0);function c$(a){let s=ve(a);return!wd()||!s.visualViewport?Uz:{x:s.visualViewport.offsetLeft,y:s.visualViewport.offsetTop}}function jz(a,s,t){return s===void 0&&(s=!1),!t||s&&t!==ve(a)?!1:s}function vi(a,s,t,r){s===void 0&&(s=!1),t===void 0&&(t=!1);let n=a.getBoundingClientRect(),d=jv(a),u=nr(1);s&&(r?je(r)&&(u=ws(r)):u=ws(a));let v=jz(d,t,r)?c$(d):nr(0),w=(n.left+v.x)/u.x,S=(n.top+v.y)/u.y,$=n.width/u.x,y=n.height/u.y;if(d){let A=ve(d),R=r&&je(r)?ve(r):r,P=A,N=kd(P);for(;N&&r&&R!==P;){let W=ws(N),B=N.getBoundingClientRect(),M=We(N),q=B.left+(N.clientLeft+parseFloat(M.paddingLeft))*W.x,K=B.top+(N.clientTop+parseFloat(M.paddingTop))*W.y;w*=W.x,S*=W.y,$*=W.x,y*=W.y,w+=q,S+=K,P=ve(N),N=kd(P)}}return ui({width:$,height:y,x:w,y:S})}function Ed(a,s){let t=Vn(a).scrollLeft;return s?s.left+t:vi(ar(a)).left+t}function p$(a,s){let t=a.getBoundingClientRect(),r=t.left+s.scrollLeft-Ed(a,t),n=t.top+s.scrollTop;return{x:r,y:n}}function Wz(a){let{elements:s,rect:t,offsetParent:r,strategy:n}=a,d=n==="fixed",u=ar(r),v=s?Dn(s.floating):!1;if(r===u||v&&d)return t;let w={scrollLeft:0,scrollTop:0},S=nr(1),$=nr(0),y=lr(r);if((y||!y&&!d)&&((mi(r)!=="body"||ys(u))&&(w=Vn(r)),lr(r))){let R=vi(r);S=ws(r),$.x=R.x+r.clientLeft,$.y=R.y+r.clientTop}let A=u&&!y&&!d?p$(u,w):nr(0);return{width:t.width*S.x,height:t.height*S.y,x:t.x*S.x-w.scrollLeft*S.x+$.x+A.x,y:t.y*S.y-w.scrollTop*S.y+$.y+A.y}}function Kz(a){return Array.from(a.getClientRects())}function Gz(a){let s=ar(a),t=Vn(a),r=a.ownerDocument.body,n=le(s.scrollWidth,s.clientWidth,r.scrollWidth,r.clientWidth),d=le(s.scrollHeight,s.clientHeight,r.scrollHeight,r.clientHeight),u=-t.scrollLeft+Ed(a),v=-t.scrollTop;return We(r).direction==="rtl"&&(u+=le(s.clientWidth,r.clientWidth)-n),{width:n,height:d,x:u,y:v}}var n$=25;function Yz(a,s){let t=ve(a),r=ar(a),n=t.visualViewport,d=r.clientWidth,u=r.clientHeight,v=0,w=0;if(n){d=n.width,u=n.height;let $=wd();(!$||$&&s==="fixed")&&(v=n.offsetLeft,w=n.offsetTop)}let S=Ed(r);if(S<=0){let $=r.ownerDocument,y=$.body,A=getComputedStyle(y),R=$.compatMode==="CSS1Compat"&&parseFloat(A.marginLeft)+parseFloat(A.marginRight)||0,P=Math.abs(r.clientWidth-y.clientWidth-R);P<=n$&&(d-=P)}else S<=n$&&(d+=S);return{width:d,height:u,x:v,y:w}}var Xz=new Set(["absolute","fixed"]);function Qz(a,s){let t=vi(a,!0,s==="fixed"),r=t.top+a.clientTop,n=t.left+a.clientLeft,d=lr(a)?ws(a):nr(1),u=a.clientWidth*d.x,v=a.clientHeight*d.y,w=n*d.x,S=r*d.y;return{width:u,height:v,x:w,y:S}}function a$(a,s,t){let r;if(s==="viewport")r=Yz(a,t);else if(s==="document")r=Gz(ar(a));else if(je(s))r=Qz(s,t);else{let n=c$(a);r={x:s.x-n.x,y:s.y-n.y,width:s.width,height:s.height}}return ui(r)}function h$(a,s){let t=ro(a);return t===s||!je(t)||fi(t)?!1:We(t).position==="fixed"||h$(t,s)}function Jz(a,s){let t=s.get(a);if(t)return t;let r=xs(a,[],!1).filter(v=>je(v)&&mi(v)!=="body"),n=null,d=We(a).position==="fixed",u=d?ro(a):a;for(;je(u)&&!fi(u);){let v=We(u),w=yd(u);!w&&v.position==="fixed"&&(n=null),(d?!w&&!n:!w&&v.position==="static"&&!!n&&Xz.has(n.position)||ys(u)&&!w&&h$(a,u))?r=r.filter($=>$!==u):n=v,u=ro(u)}return s.set(a,r),r}function Zz(a){let{element:s,boundary:t,rootBoundary:r,strategy:n}=a,u=[...t==="clippingAncestors"?Dn(s)?[]:Jz(s,this._c):[].concat(t),r],v=u[0],w=u.reduce((S,$)=>{let y=a$(s,$,n);return S.top=le(y.top,S.top),S.right=_o(y.right,S.right),S.bottom=_o(y.bottom,S.bottom),S.left=le(y.left,S.left),S},a$(s,v,n));return{width:w.right-w.left,height:w.bottom-w.top,x:w.left,y:w.top}}function tP(a){let{width:s,height:t}=d$(a);return{width:s,height:t}}function eP(a,s,t){let r=lr(s),n=ar(s),d=t==="fixed",u=vi(a,!0,d,s),v={scrollLeft:0,scrollTop:0},w=nr(0);function S(){w.x=Ed(n)}if(r||!r&&!d)if((mi(s)!=="body"||ys(n))&&(v=Vn(s)),r){let R=vi(s,!0,d,s);w.x=R.x+s.clientLeft,w.y=R.y+s.clientTop}else n&&S();d&&!r&&n&&S();let $=n&&!r&&!d?p$(n,v):nr(0),y=u.left+v.scrollLeft-w.x-$.x,A=u.top+v.scrollTop-w.y-$.y;return{x:y,y:A,width:u.width,height:u.height}}function Uv(a){return We(a).position==="static"}function l$(a,s){if(!lr(a)||We(a).position==="fixed")return null;if(s)return s(a);let t=a.offsetParent;return ar(a)===t&&(t=t.ownerDocument.body),t}function u$(a,s){let t=ve(a);if(Dn(a))return t;if(!lr(a)){let n=ro(a);for(;n&&!fi(n);){if(je(n)&&!Uv(n))return n;n=ro(n)}return t}let r=l$(a,s);for(;r&&o$(r)&&Uv(r);)r=l$(r,s);return r&&fi(r)&&Uv(r)&&!yd(r)?t:r||i$(a)||t}var rP=async function(a){let s=this.getOffsetParent||u$,t=this.getDimensions,r=await t(a.floating);return{reference:eP(a.reference,await s(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oP(a){return We(a).direction==="rtl"}var Wv={convertOffsetParentRelativeRectToViewportRelativeRect:Wz,getDocumentElement:ar,getClippingRect:Zz,getOffsetParent:u$,getElementRects:rP,getClientRects:Kz,getDimensions:tP,getScale:ws,isElement:je,isRTL:oP};function m$(a,s){return a.x===s.x&&a.y===s.y&&a.width===s.width&&a.height===s.height}function iP(a,s){let t=null,r,n=ar(a);function d(){var v;clearTimeout(r),(v=t)==null||v.disconnect(),t=null}function u(v,w){v===void 0&&(v=!1),w===void 0&&(w=1),d();let S=a.getBoundingClientRect(),{left:$,top:y,width:A,height:R}=S;if(v||s(),!A||!R)return;let P=Bn(y),N=Bn(n.clientWidth-($+A)),W=Bn(n.clientHeight-(y+R)),B=Bn($),q={rootMargin:-P+"px "+-N+"px "+-W+"px "+-B+"px",threshold:le(0,_o(1,w))||1},K=!0;function Xt(ne){let xr=ne[0].intersectionRatio;if(xr!==w){if(!K)return u();xr?u(!1,xr):r=setTimeout(()=>{u(!1,1e-7)},1e3)}xr===1&&!m$(S,a.getBoundingClientRect())&&u(),K=!1}try{t=new IntersectionObserver(Xt,{...q,root:n.ownerDocument})}catch{t=new IntersectionObserver(Xt,q)}t.observe(a)}return u(!0),d}function f$(a,s,t,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:w=!1}=r,S=jv(a),$=n||d?[...S?xs(S):[],...xs(s)]:[];$.forEach(B=>{n&&B.addEventListener("scroll",t,{passive:!0}),d&&B.addEventListener("resize",t)});let y=S&&v?iP(S,t):null,A=-1,R=null;u&&(R=new ResizeObserver(B=>{let[M]=B;M&&M.target===S&&R&&(R.unobserve(s),cancelAnimationFrame(A),A=requestAnimationFrame(()=>{var q;(q=R)==null||q.observe(s)})),t()}),S&&!w&&R.observe(S),R.observe(s));let P,N=w?vi(a):null;w&&W();function W(){let B=vi(a);N&&!m$(N,B)&&t(),N=B,P=requestAnimationFrame(W)}return t(),()=>{var B;$.forEach(M=>{n&&M.removeEventListener("scroll",t),d&&M.removeEventListener("resize",t)}),y?.(),(B=R)==null||B.disconnect(),R=null,w&&cancelAnimationFrame(P)}}var v$=J1;var g$=Z1,b$=Q1,Kv=t$;var x$=(a,s,t)=>{let r=new Map,n={platform:Wv,...t},d={...n.platform,_c:r};return X1(a,s,{...n,platform:d})};var y$=()=>new Promise(a=>requestAnimationFrame(()=>requestAnimationFrame(()=>a()))),w$=(a,s,t=200)=>{let r=!1,n=()=>{r||(r=!0,a.removeEventListener("transitionend",d),clearTimeout(u),s())},d=()=>n();a.addEventListener("transitionend",d);let u=setTimeout(n,t)},ks=a=>f`
|
|
4949
4986
|
<svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${a}">
|
|
4950
4987
|
<polygon class="arrow-fill" points="0,0 5,6 10,0" />
|
|
4951
4988
|
<path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
|
|
4952
4989
|
</svg>
|
|
4953
|
-
`,
|
|
4990
|
+
`,sP={...Wv,getOffsetParent:()=>window},nP=a=>({name:"alignInner",fn(s){let t=a.getElement();if(!t)return{};let r=a.padding??8,{rects:n}=s,d=s.elements.floating,u=d.getBoundingClientRect(),v=t.getBoundingClientRect(),w=v.top-u.top+v.height/2,S=a.getReferenceInner?.(),y=(S?S.getBoundingClientRect().top+S.getBoundingClientRect().height/2:n.reference.y+n.reference.height/2)-w,A=globalThis.innerHeight,R=u.height,P=r,N=A-R-r,W=Math.max(P,Math.min(y,N)),B=d.shadowRoot?.querySelector(".Popup")??d.querySelector(".Popup");if(B&&W!==y){let K=y-W;B.scrollTop=Math.max(0,B.scrollTop-K)}y=W;let M=v.left-u.left;return{x:S?S.getBoundingClientRect().left-M:n.reference.x,y,reset:!1}}}),aP=(a,s,t={})=>{let{placement:r="bottom-start",offsetPx:n=4,matchWidth:d=!1,minMatchWidth:u=!1,padding:v=8}=t,S=t.alignToInner?.getElement()!=null?[nP(t.alignToInner)]:[v$(n),b$(),g$({padding:v})];return d?S.push(Kv({apply({rects:$,elements:y}){Object.assign(y.floating.style,{width:`${$.reference.width}px`})}})):u&&S.push(Kv({apply({rects:$,elements:y}){Object.assign(y.floating.style,{minWidth:`${$.reference.width}px`})}})),x$(a,s,{placement:r,strategy:"fixed",middleware:S,platform:sP})},k$=(a,s,t={})=>{let{onPosition:r,...n}=t;return f$(a,s,()=>{aP(a,s,n).then(d=>{Object.assign(s.style,{left:`${d.x}px`,top:`${d.y}px`}),r?.(d)})})};var re=class{#t;#e;#s;#n;#a;#l;#d;#b;#x;#y;#u;#m;#f;#v;#w;#g;#k;#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(s){this.#a=s}set offset(s){this.#l=s}constructor(s,t){this.#t=s,this.#e=t.getAnchor,this.#s=t.matchWidth??!0,this.#n=t.minMatchWidth??!1,this.#a=t.placement??"bottom-start",this.#l=t.offset??4,this.#d=t.styles,this.#b=t.onOpen,this.#x=t.onClose,this.#y=t.onPosition,this.#u=t.renderPopup,this.#m=t.contentContainer,this.#f=t.contentSelector,this.#v=t.forwardProperties??[],this.#w=t.getOverlayRoot??(()=>document.body),this.#g=t.alignToInner,this.#k=t.alignToInnerReference,s.addController(this)}hostConnected(){document.addEventListener("click",this.#C)}hostDisconnected(){document.removeEventListener("click",this.#C),this.#z(),Nv(this.#t)}hostUpdated(){if(this.#o?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#u&&(this.#o||this.isEnding)){let s=this.renderRoot;s&&ml(this.#u(this),s)}this.#m&&this.#o&&this.#c.length===0&&this.#L()}open(){if(this.#o)return;this.#h++;let s=this.#h;D1(this.#t,()=>this.close()),this.#o=!0,this.#i=!0,this.#R(),this.#_(),this.#b?.(),this.#t.requestUpdate(),y$().then(()=>{s===this.#h&&(this.#i=!1,this.#t.requestUpdate())})}close(){if(!this.#o)return;this.#h++,this.#i=!0,this.#t.requestUpdate();let s=this.renderRoot?.querySelector(".Popup");if(!s){this.#E();return}w$(s,()=>this.#E())}#E(){this.#o&&(this.#o=!1,this.#i=!1,this.#$(),Nv(this.#t),this.#x?.(),this.#I(),this.#t.requestUpdate())}#C=s=>{if(!this.#o)return;let t=s.composedPath();!t.includes(this.#t)&&!this.#T(t)&&this.close()};#T(s){return this.#r?s.includes(this.#r):!1}#R(){if(this.#r){this.#r.style.display="",this.#S(this.#r);return}let s=this.#w(),t=document.createElement("div");t.style.position="fixed",t.style.zIndex="1000",t.style.pointerEvents="none",t.setAttribute("data-floating-portal",""),t.setAttribute("data-dui-portal-for",this.#t.tagName.toLowerCase());let r=YE(),n=this.#t.tagName.toLowerCase(),d=r?.styles.get(n),u=[...this.#d??[],...r?.base?[r.base]:[],...d?[d]:[]];if(u.length>0){let v=t.attachShadow({mode:"open"});il(v,u)}this.#S(t),s.appendChild(t),this.#r=t}#S(s){if(this.#v.length===0)return;let t=getComputedStyle(this.#t);for(let r of this.#v){let n=t.getPropertyValue(r).trim();n&&s.style.setProperty(r,n)}}#I(){this.#r&&(this.#r.style.display="none")}#A(){this.#r?.remove(),this.#r=null}#_(){if(this.#p)return;let s=this.#e(),t=this.#r;!s||!t||(this.#p=k$(s,t,{placement:this.#a,offsetPx:this.#l,matchWidth:this.#s,minMatchWidth:this.#n,onPosition:this.#y,alignToInner:this.#g?{getElement:this.#g,getReferenceInner:this.#k}:void 0}))}#$(){this.#p?.(),this.#p=null}#L(){let s=this.renderRoot?.querySelector(this.#m);if(!s)return;let t=this.#f?Array.from(this.#t.querySelectorAll(`:scope > ${this.#f}`)):Array.from(this.#t.childNodes);for(let r of t)s.appendChild(r),this.#c.push(r)}#O(){for(let s of this.#c)this.#t.appendChild(s);this.#c=[]}#z(){this.#$(),this.#O(),this.#A()}};var O$=L("value-change",{bubbles:!0,composed:!0}),sg=L("values-change",{bubbles:!0,composed:!0}),lP=c`
|
|
4954
4991
|
:host {
|
|
4955
4992
|
display: block;
|
|
4956
4993
|
}
|
|
4957
|
-
`,
|
|
4994
|
+
`,dP=c`
|
|
4958
4995
|
/* ---- Input area (structural) ---- */
|
|
4959
4996
|
|
|
4960
4997
|
.Chips {
|
|
@@ -5021,7 +5058,7 @@ p, li, blockquote, dt, dd {
|
|
|
5021
5058
|
cursor: pointer;
|
|
5022
5059
|
flex-shrink: 0;
|
|
5023
5060
|
}
|
|
5024
|
-
`,
|
|
5061
|
+
`,cP=[c`
|
|
5025
5062
|
.Popup {
|
|
5026
5063
|
opacity: 1;
|
|
5027
5064
|
transform: translateY(0);
|
|
@@ -5058,7 +5095,7 @@ p, li, blockquote, dt, dd {
|
|
|
5058
5095
|
text-overflow: ellipsis;
|
|
5059
5096
|
white-space: nowrap;
|
|
5060
5097
|
}
|
|
5061
|
-
`],
|
|
5098
|
+
`],E$,C$,S$,$$,T$,R$,I$,A$,_$,L$,Es,gt,Gv,Yv,Xv,Qv,Jv,Zv,tg,G,z$,eg,rg,oo,Sr,og,ig,Cd,gi,Bt,qn,bi,ng,Sd,$d,Td,ag,lg,Rd,Id,Ad,_d,Ld,Od,oe=class extends(L$=b,_$=[h({attribute:!1})],A$=[h({type:String})],I$=[h({attribute:!1})],R$=[h({type:Boolean,reflect:!0})],T$=[h({type:String})],$$=[h({type:Boolean,reflect:!0})],S$=[h({type:String})],C$=[k()],E$=[k()],L$){constructor(){super();i(this,G);i(this,Es);i(this,Gv,o(gt,8,this,[])),o(gt,11,this);i(this,Yv,o(gt,12,this,"")),o(gt,15,this);i(this,Xv,o(gt,16,this,new Set)),o(gt,19,this);i(this,Qv,o(gt,20,this,!1)),o(gt,23,this);i(this,Jv,o(gt,24,this,"Search...")),o(gt,27,this);i(this,Zv,o(gt,28,this,!1)),o(gt,31,this);i(this,tg,o(gt,32,this,"")),o(gt,35,this);i(this,eg,o(gt,36,this,-1)),o(gt,39,this);i(this,og,o(gt,40,this,"")),o(gt,43,this);i(this,Bt,new re(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:cP,onOpen:()=>{if(p(this,G,-1,Sr),!this.multiple){p(this,G,"",gi);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(p(this,G,-1,Sr),!this.multiple){let t=this.options.find(r=>r.value===this.value);p(this,G,t?.label??"",gi)}},renderPopup:t=>{let r=e(this,G,ng),n=r.length===0;return f`
|
|
5062
5099
|
<div
|
|
5063
5100
|
class="Popup"
|
|
5064
5101
|
?data-starting-style="${t.isStarting}"
|
|
@@ -5071,15 +5108,15 @@ p, li, blockquote, dt, dd {
|
|
|
5071
5108
|
role="listbox"
|
|
5072
5109
|
aria-labelledby="${e(this,qn)}"
|
|
5073
5110
|
?data-empty="${n}"
|
|
5074
|
-
@mousedown="${e(this,
|
|
5075
|
-
@mousemove="${e(this,
|
|
5111
|
+
@mousedown="${e(this,Id)}"
|
|
5112
|
+
@mousemove="${e(this,Ad)}"
|
|
5076
5113
|
>
|
|
5077
5114
|
${hi(r,d=>d.value,e(this,Od))}
|
|
5078
|
-
${n?f` <div class="Empty">No results</div> `:
|
|
5115
|
+
${n?f` <div class="Empty">No results</div> `:I}
|
|
5079
5116
|
</div>
|
|
5080
5117
|
</dui-scroll-area>
|
|
5081
5118
|
</div>
|
|
5082
|
-
`}}));i(this,qn,`combobox-input-${crypto.randomUUID().slice(0,8)}`);i(this,bi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);i(this,Sd,t=>{let r=t.target;p(this,
|
|
5119
|
+
`}}));i(this,qn,`combobox-input-${crypto.randomUUID().slice(0,8)}`);i(this,bi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);i(this,Sd,t=>{let r=t.target;p(this,G,r.value,gi),e(this,Bt).isOpen||this.disabled||e(this,Bt).open(),p(this,G,-1,Sr)});i(this,$d,()=>{!e(this,Bt).isOpen&&!this.disabled&&e(this,Bt).open()});i(this,Td,t=>{let r=e(this,G,ng);switch(t.key){case"ArrowDown":t.preventDefault(),e(this,Bt).isOpen?p(this,G,Math.min(e(this,G,oo)+1,r.length-1),Sr):this.disabled||e(this,Bt).open();break;case"ArrowUp":t.preventDefault(),e(this,Bt).isOpen?p(this,G,Math.max(e(this,G,oo)-1,0),Sr):this.disabled||e(this,Bt).open();break;case"Enter":{if(t.preventDefault(),e(this,Bt).isOpen){let n=e(this,G,oo)>=0?e(this,G,oo):0,d=r[n];d&&m(this,G,ag).call(this,d)}else this.disabled||e(this,Bt).open();break}case"Escape":e(this,Bt).isOpen&&(t.preventDefault(),p(this,G,"",gi),e(this,Bt).close());break;case"Tab":e(this,Bt).isOpen&&e(this,Bt).close();break;case"Home":e(this,Bt).isOpen&&(t.preventDefault(),p(this,G,0,Sr));break;case"End":e(this,Bt).isOpen&&(t.preventDefault(),p(this,G,r.length-1,Sr));break;case"Backspace":if(this.multiple&&e(this,G,Cd)===""&&this.values.size>0){let n=Array.from(this.values).at(-1);n&&m(this,G,lg).call(this,n)}break}});i(this,Rd,t=>{m(this,G,ag).call(this,t)});i(this,Id,t=>{t.preventDefault()});i(this,Ad,()=>{e(this,G,oo)!==-1&&p(this,G,-1,Sr)});i(this,_d,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});i(this,Ld,t=>{let n=this.options.find(d=>d.value===t)?.label??t;return f`
|
|
5083
5120
|
<span class="Chip">
|
|
5084
5121
|
<span class="ChipLabel">${n}</span>
|
|
5085
5122
|
<button
|
|
@@ -5087,12 +5124,12 @@ p, li, blockquote, dt, dd {
|
|
|
5087
5124
|
type="button"
|
|
5088
5125
|
tabindex="-1"
|
|
5089
5126
|
@mousedown="${d=>d.preventDefault()}"
|
|
5090
|
-
@click="${d=>{d.stopPropagation(),m(this,
|
|
5127
|
+
@click="${d=>{d.stopPropagation(),m(this,G,lg).call(this,t)}}"
|
|
5091
5128
|
>
|
|
5092
5129
|
<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>
|
|
5093
5130
|
</button>
|
|
5094
5131
|
</span>
|
|
5095
|
-
`});i(this,Od,(t,r)=>{let n=this.multiple?this.values.has(t.value):t.value===this.value,d=r===e(this,
|
|
5132
|
+
`});i(this,Od,(t,r)=>{let n=this.multiple?this.values.has(t.value):t.value===this.value,d=r===e(this,G,oo);return f`
|
|
5096
5133
|
<div
|
|
5097
5134
|
class="Item"
|
|
5098
5135
|
role="option"
|
|
@@ -5104,10 +5141,10 @@ p, li, blockquote, dt, dd {
|
|
|
5104
5141
|
>
|
|
5105
5142
|
<span class="ItemText">${t.label}</span>
|
|
5106
5143
|
<span class="ItemIndicator">
|
|
5107
|
-
${n?f`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:
|
|
5144
|
+
${n?f`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:I}
|
|
5108
5145
|
</span>
|
|
5109
5146
|
</div>
|
|
5110
|
-
`});p(this,Es,this.attachInternals())}willUpdate(){m(this,
|
|
5147
|
+
`});p(this,Es,this.attachInternals())}willUpdate(){m(this,G,z$).call(this)}render(){let t=f`
|
|
5111
5148
|
<input
|
|
5112
5149
|
class="Input"
|
|
5113
5150
|
id="${e(this,qn)}"
|
|
@@ -5115,10 +5152,10 @@ p, li, blockquote, dt, dd {
|
|
|
5115
5152
|
role="combobox"
|
|
5116
5153
|
autocomplete="off"
|
|
5117
5154
|
aria-haspopup="listbox"
|
|
5118
|
-
aria-expanded="${e(this,
|
|
5155
|
+
aria-expanded="${e(this,Bt).isOpen}"
|
|
5119
5156
|
aria-controls="${e(this,bi)}"
|
|
5120
|
-
aria-activedescendant="${e(this,
|
|
5121
|
-
.value="${Er(e(this,
|
|
5157
|
+
aria-activedescendant="${e(this,G,oo)>=0?`${e(this,bi)}-option-${e(this,G,oo)}`:I}"
|
|
5158
|
+
.value="${Er(e(this,G,Cd))}"
|
|
5122
5159
|
.placeholder="${this.placeholder}"
|
|
5123
5160
|
?disabled="${this.disabled}"
|
|
5124
5161
|
@input="${e(this,Sd)}"
|
|
@@ -5141,13 +5178,13 @@ p, li, blockquote, dt, dd {
|
|
|
5141
5178
|
${t}
|
|
5142
5179
|
<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>
|
|
5143
5180
|
</div>
|
|
5144
|
-
`}};gt=C(
|
|
5181
|
+
`}};gt=C(L$),Es=new WeakMap,Gv=new WeakMap,Yv=new WeakMap,Xv=new WeakMap,Qv=new WeakMap,Jv=new WeakMap,Zv=new WeakMap,tg=new WeakMap,G=new WeakSet,z$=function(){if(this.multiple){let t=new FormData;for(let r of this.values)t.append(this.name||"values",r);e(this,Es).setFormValue(t)}else e(this,Es).setFormValue(this.value||null)},eg=new WeakMap,og=new WeakMap,Bt=new WeakMap,qn=new WeakMap,bi=new WeakMap,ng=function(){let t=e(this,G,Cd).toLowerCase(),r=this.options;return t?r.filter(n=>n.label.toLowerCase().includes(t)):r},Sd=new WeakMap,$d=new WeakMap,Td=new WeakMap,ag=function(t){if(this.multiple){let r=new Set(this.values),n=!r.has(t.value);n?r.add(t.value):r.delete(t.value),this.values=r,p(this,G,"",gi),p(this,G,-1,Sr),this.dispatchEvent(sg({value:t.value,selected:n,values:r})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,p(this,G,t.label,gi),this.dispatchEvent(O$({value:t.value,option:t})),e(this,Bt).close()},lg=function(t){let r=new Set(this.values);r.delete(t),this.values=r,this.dispatchEvent(sg({value:t,selected:!1,values:r}))},Rd=new WeakMap,Id=new WeakMap,Ad=new WeakMap,_d=new WeakMap,Ld=new WeakMap,Od=new WeakMap,l(gt,4,"options",_$,oe,Gv),l(gt,4,"value",A$,oe,Yv),l(gt,4,"values",I$,oe,Xv),l(gt,4,"multiple",R$,oe,Qv),l(gt,4,"placeholder",T$,oe,Jv),l(gt,4,"disabled",$$,oe,Zv),l(gt,4,"name",S$,oe,tg),rg=l(gt,20,"#highlightedIndex",C$,G,eg),oo=rg.get,Sr=rg.set,ig=l(gt,20,"#inputValue",E$,G,og),Cd=ig.get,gi=ig.set,E(gt,oe),g(oe,"tagName","dui-combobox"),g(oe,"formAssociated",!0),g(oe,"styles",[x,lP,dP]);var Ke=Symbol("dui-command");var Un=(a,s,t,r)=>{if(!a)return 1;let n=a.toLowerCase(),d=s.toLowerCase(),u=t.toLowerCase();if(d===n)return 1;if(d.startsWith(n))return .8;if(u.startsWith(n))return .75;if(d.includes(n))return .7;if(u.includes(n))return .6;for(let v of r)if(v.toLowerCase().startsWith(n))return .5;for(let v of r)if(v.toLowerCase().includes(n))return .4;return 0};var pP=L("select",{bubbles:!0,composed:!0}),hP=L("search-change",{bubbles:!0,composed:!0}),uP=L("escape",{bubbles:!0,composed:!0}),mP=0,fP=()=>`dui-command-${++mP}`,vP=c`
|
|
5145
5182
|
:host {
|
|
5146
5183
|
display: flex;
|
|
5147
5184
|
flex-direction: column;
|
|
5148
5185
|
overflow: hidden;
|
|
5149
5186
|
}
|
|
5150
|
-
`,
|
|
5187
|
+
`,P$,M$,F$,H$,N$,B$,D$,V$,At,dg,cg,pg,hg,ug,mg,Lo,q$,rt,fg,vg,jn,Wn,Oo,zo,Kn,$r,Pd,U$,Md,Cs,Fd,Hd,Nd,Bd,Dd,Vd,qd,Ud,jd,Gn,Yn,gg,zd,_e=class extends(V$=b,D$=[h({type:Boolean})],B$=[h({type:Boolean,attribute:"should-filter"})],N$=[h({type:String})],H$=[h({attribute:!1})],F$=[k()],M$=[k()],P$=[kt({context:Ke}),k()],V$){constructor(){super(...arguments);i(this,rt);i(this,dg,o(At,8,this,!1)),o(At,11,this);i(this,cg,o(At,12,this,!0)),o(At,15,this);i(this,pg,o(At,16,this)),o(At,19,this);i(this,hg,o(At,20,this)),o(At,23,this);i(this,ug,o(At,24,this,"")),o(At,27,this);i(this,fg,o(At,28,this)),o(At,31,this);i(this,Oo,new Map);i(this,zo,[]);i(this,Kn,new Set);i(this,$r,new Map);i(this,Pd,fP());i(this,Md,t=>this.shouldFilter?e(this,$r).get(t)??0:1);i(this,Fd,()=>m(this,rt,Cs).call(this).length);i(this,Hd,t=>m(this,rt,Cs).call(this).filter(r=>r.groupId===t).length);i(this,Nd,t=>{e(this,Oo).set(t.id,t),e(this,zo).includes(t.id)||e(this,zo).push(t.id);let r=this.filter?this.filter(t.value,e(this,rt,Lo),t.keywords):Un(e(this,rt,Lo),t.value,t.textContent,t.keywords);if(e(this,$r).set(t.id,r),!e(this,rt,jn)){let n=m(this,rt,Cs).call(this);n.length>0&&!n[0].disabled&&p(this,rt,n[0].id,Wn)}this.requestUpdate()});i(this,Bd,t=>{e(this,Oo).delete(t),p(this,zo,e(this,zo).filter(r=>r!==t)),e(this,$r).delete(t),this.requestUpdate()});i(this,Dd,t=>{e(this,Oo).set(t.id,t);let r=this.filter?this.filter(t.value,e(this,rt,Lo),t.keywords):Un(e(this,rt,Lo),t.value,t.textContent,t.keywords);e(this,$r).set(t.id,r),this.requestUpdate()});i(this,Vd,t=>{e(this,Kn).add(t)});i(this,qd,t=>{e(this,Kn).delete(t)});i(this,Ud,t=>{p(this,rt,t,q$),m(this,rt,U$).call(this);let n=m(this,rt,Cs).call(this).find(d=>!d.disabled);p(this,rt,n?.id,Wn),this.dispatchEvent(hP(t))});i(this,jd,t=>{p(this,rt,t,Wn)});i(this,Gn,t=>{this.dispatchEvent(pP(t))});i(this,Yn,t=>{let r=m(this,rt,Cs).call(this).filter(u=>!u.disabled);if(r.length===0)return;let n=r.findIndex(u=>u.id===e(this,rt,jn)),d=u=>{let v=r[u];v&&p(this,rt,v.id,Wn)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),n<r.length-1?d(n+1):this.loop&&d(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),n>0?d(n-1):this.loop&&d(r.length-1);break}case"Home":{t.preventDefault(),d(0);break}case"End":{t.preventDefault(),d(r.length-1);break}case"Enter":{t.preventDefault();let u=r.find(v=>v.id===e(this,rt,jn));u&&e(this,Gn).call(this,u.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(uP());break}}});i(this,gg,o(At,32,this,m(this,rt,zd).call(this))),o(At,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,Yn)),this._ctx=m(this,rt,zd).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Yn))}willUpdate(){this._ctx=m(this,rt,zd).call(this)}render(){return f`<slot></slot>`}};At=C(V$),dg=new WeakMap,cg=new WeakMap,pg=new WeakMap,hg=new WeakMap,ug=new WeakMap,rt=new WeakSet,fg=new WeakMap,Oo=new WeakMap,zo=new WeakMap,Kn=new WeakMap,$r=new WeakMap,Pd=new WeakMap,U$=function(){e(this,$r).clear();for(let[t,r]of e(this,Oo)){let n=this.filter?this.filter(r.value,e(this,rt,Lo),r.keywords):Un(e(this,rt,Lo),r.value,r.textContent,r.keywords);e(this,$r).set(t,n)}},Md=new WeakMap,Cs=function(){return e(this,zo).map(t=>e(this,Oo).get(t)).filter(t=>t?this.shouldFilter?(e(this,$r).get(t.id)??0)>0:!0:!1)},Fd=new WeakMap,Hd=new WeakMap,Nd=new WeakMap,Bd=new WeakMap,Dd=new WeakMap,Vd=new WeakMap,qd=new WeakMap,Ud=new WeakMap,jd=new WeakMap,Gn=new WeakMap,Yn=new WeakMap,gg=new WeakMap,zd=function(){return{search:e(this,rt,Lo),selectedItemId:e(this,rt,jn),listId:e(this,Pd),loop:this.loop,shouldFilter:this.shouldFilter,getScore:e(this,Md),getVisibleCount:e(this,Fd),getGroupVisibleCount:e(this,Hd),registerItem:e(this,Nd),unregisterItem:e(this,Bd),updateItem:e(this,Dd),registerGroup:e(this,Vd),unregisterGroup:e(this,qd),setSearch:e(this,Ud),selectItem:e(this,jd),handleItemSelect:e(this,Gn)}},l(At,4,"loop",D$,_e,dg),l(At,4,"shouldFilter",B$,_e,cg),l(At,4,"value",N$,_e,pg),l(At,4,"filter",H$,_e,hg),mg=l(At,20,"#search",F$,rt,ug),Lo=mg.get,q$=mg.set,vg=l(At,20,"#selectedItemId",M$,rt,fg),jn=vg.get,Wn=vg.set,l(At,4,"_ctx",P$,_e,gg),E(At,_e),g(_e,"tagName","dui-command"),g(_e,"styles",[x,vP]);var gP=c`
|
|
5151
5188
|
:host {
|
|
5152
5189
|
display: block;
|
|
5153
5190
|
}
|
|
@@ -5170,7 +5207,7 @@ p, li, blockquote, dt, dd {
|
|
|
5170
5207
|
background: transparent;
|
|
5171
5208
|
padding: 0;
|
|
5172
5209
|
}
|
|
5173
|
-
`,
|
|
5210
|
+
`,j$,W$,K$,xi,bg,xg,Ss,Wd,Kd,Tr=class extends(K$=b,W$=[h({type:String})],j$=[Nt({context:Ke,subscribe:!0})],K$){constructor(){super(...arguments);i(this,bg,o(xi,8,this,"Search...")),o(xi,11,this);i(this,xg,o(xi,12,this)),o(xi,15,this);i(this,Ss);i(this,Wd,t=>{let r=t.target;this._ctx?.setSearch(r.value)});i(this,Kd,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(e(this,Ss)!==void 0&&this._ctx?.search===""&&e(this,Ss)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}p(this,Ss,this._ctx?.search)}render(){return f`
|
|
5174
5211
|
<div class="InputWrapper">
|
|
5175
5212
|
<svg
|
|
5176
5213
|
class="SearchIcon"
|
|
@@ -5192,14 +5229,14 @@ p, li, blockquote, dt, dd {
|
|
|
5192
5229
|
role="combobox"
|
|
5193
5230
|
autocomplete="off"
|
|
5194
5231
|
aria-expanded="true"
|
|
5195
|
-
aria-controls="${this._ctx?.listId??
|
|
5196
|
-
aria-activedescendant="${this._ctx?.selectedItemId??
|
|
5232
|
+
aria-controls="${this._ctx?.listId??I}"
|
|
5233
|
+
aria-activedescendant="${this._ctx?.selectedItemId??I}"
|
|
5197
5234
|
.placeholder="${this.placeholder}"
|
|
5198
5235
|
@input="${e(this,Wd)}"
|
|
5199
5236
|
@keydown="${e(this,Kd)}"
|
|
5200
5237
|
/>
|
|
5201
5238
|
</div>
|
|
5202
|
-
`}};xi=C(
|
|
5239
|
+
`}};xi=C(K$),bg=new WeakMap,xg=new WeakMap,Ss=new WeakMap,Wd=new WeakMap,Kd=new WeakMap,l(xi,4,"placeholder",W$,Tr,bg),l(xi,4,"_ctx",j$,Tr,xg),E(xi,Tr),g(Tr,"tagName","dui-command-input"),g(Tr,"styles",[x,gP]);var bP=c`
|
|
5203
5240
|
:host {
|
|
5204
5241
|
display: block;
|
|
5205
5242
|
}
|
|
@@ -5207,7 +5244,7 @@ p, li, blockquote, dt, dd {
|
|
|
5207
5244
|
.List {
|
|
5208
5245
|
overflow: hidden;
|
|
5209
5246
|
}
|
|
5210
|
-
`,
|
|
5247
|
+
`,G$,Y$,Gd,yg,io=class extends(Y$=b,G$=[Nt({context:Ke,subscribe:!0})],Y$){constructor(){super(...arguments);i(this,yg,o(Gd,8,this)),o(Gd,11,this)}render(){return f`
|
|
5211
5248
|
<dui-scroll-area>
|
|
5212
5249
|
<div
|
|
5213
5250
|
class="List"
|
|
@@ -5217,7 +5254,7 @@ p, li, blockquote, dt, dd {
|
|
|
5217
5254
|
<slot></slot>
|
|
5218
5255
|
</div>
|
|
5219
5256
|
</dui-scroll-area>
|
|
5220
|
-
`}};Gd=C(
|
|
5257
|
+
`}};Gd=C(Y$),yg=new WeakMap,l(Gd,4,"_ctx",G$,io,yg),E(Gd,io),g(io,"tagName","dui-command-list"),g(io,"styles",[x,bP]);var xP=0,yP=()=>`dui-command-group-${++xP}`,wP=c`
|
|
5221
5258
|
:host {
|
|
5222
5259
|
display: block;
|
|
5223
5260
|
}
|
|
@@ -5229,12 +5266,12 @@ p, li, blockquote, dt, dd {
|
|
|
5229
5266
|
.Group {
|
|
5230
5267
|
overflow: hidden;
|
|
5231
5268
|
}
|
|
5232
|
-
`,
|
|
5233
|
-
<div class="Group" role="group" aria-label="${this.heading||
|
|
5234
|
-
${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:
|
|
5269
|
+
`,X$,Q$,J$,yi,wg,kg,wi,Rr=class extends(J$=b,Q$=[h({type:String})],X$=[Nt({context:Ke,subscribe:!0})],J$){constructor(){super(...arguments);i(this,wg,o(yi,8,this,"")),o(yi,11,this);i(this,kg,o(yi,12,this)),o(yi,15,this);i(this,wi,yP())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",e(this,wi)),this._ctx?.registerGroup(e(this,wi))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(e(this,wi))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(e(this,wi))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
|
|
5270
|
+
<div class="Group" role="group" aria-label="${this.heading||I}">
|
|
5271
|
+
${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:I}
|
|
5235
5272
|
<slot></slot>
|
|
5236
5273
|
</div>
|
|
5237
|
-
`}};yi=C(
|
|
5274
|
+
`}};yi=C(J$),wg=new WeakMap,kg=new WeakMap,wi=new WeakMap,l(yi,4,"heading",Q$,Rr,wg),l(yi,4,"_ctx",X$,Rr,kg),E(yi,Rr),g(Rr,"tagName","dui-command-group"),g(Rr,"styles",[x,wP]);var kP=0,EP=()=>`dui-command-item-${++kP}`,CP=c`
|
|
5238
5275
|
:host {
|
|
5239
5276
|
display: block;
|
|
5240
5277
|
}
|
|
@@ -5251,21 +5288,21 @@ p, li, blockquote, dt, dd {
|
|
|
5251
5288
|
user-select: none;
|
|
5252
5289
|
outline: none;
|
|
5253
5290
|
}
|
|
5254
|
-
`,
|
|
5291
|
+
`,Z$,tT,eT,rT,oT,Le,Eg,Cg,Sg,$g,Ir,$s,Ts,Rs,Is,ge,Xn,iT,sT,Tg,Yd,Xd,Ge=class extends(oT=b,rT=[h({type:String})],eT=[h({type:Array,attribute:!1})],tT=[h({type:Boolean})],Z$=[Nt({context:Ke,subscribe:!0})],oT){constructor(){super(...arguments);i(this,ge);i(this,Eg,o(Le,8,this,"")),o(Le,11,this);i(this,Cg,o(Le,12,this,[])),o(Le,15,this);i(this,Sg,o(Le,16,this,!1)),o(Le,19,this);i(this,$g,o(Le,20,this)),o(Le,23,this);i(this,Ir,EP());i(this,$s);i(this,Ts);i(this,Rs);i(this,Is,!1);i(this,Yd,()=>{!this.disabled&&this._ctx?.selectedItemId!==e(this,Ir)&&this._ctx?.selectItem(e(this,Ir))});i(this,Xd,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(m(this,ge,Tg).call(this)),p(this,Is,!0),p(this,$s,this.value),p(this,Ts,this.keywords),p(this,Rs,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(e(this,Ir)),p(this,Is,!1)}willUpdate(){if(e(this,Is)){let t=e(this,$s)!==this.value,r=e(this,Ts)!==this.keywords,n=e(this,Rs)!==this.disabled;(t||r||n)&&(this._ctx?.updateItem(m(this,ge,Tg).call(this)),p(this,$s,this.value),p(this,Ts,this.keywords),p(this,Rs,this.disabled))}this._ctx?.shouldFilter?e(this,ge,iT)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),e(this,ge,Xn)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){e(this,ge,Xn)&&this.scrollIntoView({block:"nearest"})}render(){return f`
|
|
5255
5292
|
<div
|
|
5256
5293
|
class="Item"
|
|
5257
5294
|
role="option"
|
|
5258
|
-
id="${e(this,
|
|
5259
|
-
aria-selected="${e(this,
|
|
5295
|
+
id="${e(this,Ir)}"
|
|
5296
|
+
aria-selected="${e(this,ge,Xn)}"
|
|
5260
5297
|
aria-disabled="${this.disabled}"
|
|
5261
|
-
?data-selected="${e(this,
|
|
5298
|
+
?data-selected="${e(this,ge,Xn)}"
|
|
5262
5299
|
?data-disabled="${this.disabled}"
|
|
5263
5300
|
@mousemove="${e(this,Yd)}"
|
|
5264
5301
|
@click="${e(this,Xd)}"
|
|
5265
5302
|
>
|
|
5266
5303
|
<slot></slot>
|
|
5267
5304
|
</div>
|
|
5268
|
-
`}};Le=C(
|
|
5305
|
+
`}};Le=C(oT),Eg=new WeakMap,Cg=new WeakMap,Sg=new WeakMap,$g=new WeakMap,Ir=new WeakMap,$s=new WeakMap,Ts=new WeakMap,Rs=new WeakMap,Is=new WeakMap,ge=new WeakSet,Xn=function(){return this._ctx?.selectedItemId===e(this,Ir)},iT=function(){return this._ctx?this._ctx.getScore(e(this,Ir))>0:!0},sT=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},Tg=function(){return{id:e(this,Ir),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:m(this,ge,sT).call(this)}},Yd=new WeakMap,Xd=new WeakMap,l(Le,4,"value",rT,Ge,Eg),l(Le,4,"keywords",eT,Ge,Cg),l(Le,4,"disabled",tT,Ge,Sg),l(Le,4,"_ctx",Z$,Ge,$g),E(Le,Ge),g(Ge,"tagName","dui-command-item"),g(Ge,"styles",[x,CP]);var SP=c`
|
|
5269
5306
|
:host {
|
|
5270
5307
|
display: block;
|
|
5271
5308
|
}
|
|
@@ -5277,20 +5314,20 @@ p, li, blockquote, dt, dd {
|
|
|
5277
5314
|
.Empty {
|
|
5278
5315
|
text-align: center;
|
|
5279
5316
|
}
|
|
5280
|
-
`,
|
|
5317
|
+
`,nT,aT,Qd,Rg,so=class extends(aT=b,nT=[Nt({context:Ke,subscribe:!0})],aT){constructor(){super(...arguments);i(this,Rg,o(Qd,8,this)),o(Qd,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
|
|
5281
5318
|
<div class="Empty" role="status">
|
|
5282
5319
|
<slot></slot>
|
|
5283
5320
|
</div>
|
|
5284
|
-
`}};Qd=C(
|
|
5321
|
+
`}};Qd=C(aT),Rg=new WeakMap,l(Qd,4,"_ctx",nT,so,Rg),E(Qd,so),g(so,"tagName","dui-command-empty"),g(so,"styles",[x,SP]);var $P=c`
|
|
5285
5322
|
:host {
|
|
5286
5323
|
display: block;
|
|
5287
5324
|
}
|
|
5288
|
-
`,Qn=class extends b{static tagName="dui-command-separator";static styles=[x
|
|
5325
|
+
`,Qn=class extends b{static tagName="dui-command-separator";static styles=[x,$P];render(){return f`<div class="Separator" role="separator"></div>`}};var TP=c`
|
|
5289
5326
|
:host {
|
|
5290
5327
|
display: inline-flex;
|
|
5291
5328
|
margin-left: auto;
|
|
5292
5329
|
}
|
|
5293
|
-
`,Jn=class extends b{static tagName="dui-command-shortcut";static styles=[x,
|
|
5330
|
+
`,Jn=class extends b{static tagName="dui-command-shortcut";static styles=[x,TP];render(){return f`<span class="Shortcut"><slot></slot></span>`}};var lT="important",RP=" !"+lT,As=fs(class extends Io{constructor(a){if(super(a),a.type!==sr.ATTRIBUTE||a.name!=="style"||a.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(a){return Object.keys(a).reduce((s,t)=>{let r=a[t];return r==null?s:s+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(a,[s]){let{style:t}=a.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(s)),this.render(s);for(let r of this.ft)s[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(let r in s){let n=s[r];if(n!=null){this.ft.add(r);let d=typeof n=="string"&&n.endsWith(RP);r.includes("-")||d?t.setProperty(r,d?n.slice(0,-11):n,d?lT:""):t[r]=n}}return te}});var IP=L("sort-change",{bubbles:!0,composed:!0}),AP=L("page-change",{bubbles:!0,composed:!0}),_P=f`<svg
|
|
5294
5331
|
xmlns="http://www.w3.org/2000/svg"
|
|
5295
5332
|
width="100%"
|
|
5296
5333
|
height="100%"
|
|
@@ -5303,7 +5340,7 @@ p, li, blockquote, dt, dd {
|
|
|
5303
5340
|
>
|
|
5304
5341
|
<path d="m7 15 5 5 5-5" />
|
|
5305
5342
|
<path d="m7 9 5-5 5 5" />
|
|
5306
|
-
</svg>`,
|
|
5343
|
+
</svg>`,LP=f`<svg
|
|
5307
5344
|
xmlns="http://www.w3.org/2000/svg"
|
|
5308
5345
|
width="100%"
|
|
5309
5346
|
height="100%"
|
|
@@ -5315,7 +5352,7 @@ p, li, blockquote, dt, dd {
|
|
|
5315
5352
|
stroke-linejoin="round"
|
|
5316
5353
|
>
|
|
5317
5354
|
<path d="m18 15-6-6-6 6" />
|
|
5318
|
-
</svg>`,
|
|
5355
|
+
</svg>`,OP=f`<svg
|
|
5319
5356
|
xmlns="http://www.w3.org/2000/svg"
|
|
5320
5357
|
width="100%"
|
|
5321
5358
|
height="100%"
|
|
@@ -5327,11 +5364,11 @@ p, li, blockquote, dt, dd {
|
|
|
5327
5364
|
stroke-linejoin="round"
|
|
5328
5365
|
>
|
|
5329
5366
|
<path d="m6 9 6 6 6-6" />
|
|
5330
|
-
</svg>`;function
|
|
5367
|
+
</svg>`;function zP(a,s){return a==null&&s==null?0:a==null?-1:s==null?1:typeof a=="number"&&typeof s=="number"?a-s:typeof a=="string"&&typeof s=="string"?a.localeCompare(s):a instanceof Date&&s instanceof Date?a.getTime()-s.getTime():String(a).localeCompare(String(s))}function PP(a,s){if(!s)return[...a];let{column:t,direction:r}=s,n=r==="asc"?1:-1;return[...a].sort((d,u)=>n*zP(d[t],u[t]))}function MP(a,s,t){let r=(s-1)*t;return a.slice(r,r+t)}var FP=c`
|
|
5331
5368
|
:host {
|
|
5332
5369
|
display: block;
|
|
5333
5370
|
}
|
|
5334
|
-
`,
|
|
5371
|
+
`,HP=c`
|
|
5335
5372
|
.DataTable {
|
|
5336
5373
|
display: flex;
|
|
5337
5374
|
flex-direction: column;
|
|
@@ -5400,34 +5437,34 @@ p, li, blockquote, dt, dd {
|
|
|
5400
5437
|
.PageButton:disabled {
|
|
5401
5438
|
cursor: not-allowed;
|
|
5402
5439
|
}
|
|
5403
|
-
`,
|
|
5440
|
+
`,dT,cT,pT,hT,uT,mT,fT,vT,gT,Et,Ig,Ag,_g,Lg,Og,zg,Pg,no,Jd,F,Mg,Fg,ao,Zd,Hg,Ng,Bg,Dg,Zn,bT,xT,ta,yT,wT,kT,ET,Oe=class extends(gT=b,vT=[h({attribute:!1})],fT=[h({attribute:!1})],mT=[h({type:Number,attribute:"page-size"})],uT=[h({attribute:!1})],hT=[h({attribute:"empty-text"})],pT=[k()],cT=[k()],dT=[k()],gT){constructor(){super(...arguments);i(this,F);i(this,Ig,o(Et,8,this,[])),o(Et,11,this);i(this,Ag,o(Et,12,this,[])),o(Et,15,this);i(this,_g,o(Et,16,this,10)),o(Et,19,this);i(this,Lg,o(Et,20,this)),o(Et,23,this);i(this,Og,o(Et,24,this,"No results.")),o(Et,27,this);i(this,zg,o(Et,28,this,null)),o(Et,31,this);i(this,Mg,o(Et,32,this,1)),o(Et,35,this);i(this,Hg,o(Et,36,this,[])),o(Et,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&p(this,F,1,Zd);let r=PP(this.data,e(this,F,no));this.pageSize>0?p(this,F,MP(r,e(this,F,ao),this.pageSize),Dg):p(this,F,r,Dg)}}render(){return f`
|
|
5404
5441
|
<div class="DataTable" part="root">
|
|
5405
5442
|
<div class="TableWindow" part="table-window">
|
|
5406
5443
|
<table part="table">
|
|
5407
|
-
${m(this,F,
|
|
5444
|
+
${m(this,F,wT).call(this)} ${m(this,F,kT).call(this)}
|
|
5408
5445
|
</table>
|
|
5409
5446
|
</div>
|
|
5410
|
-
${m(this,F,
|
|
5447
|
+
${m(this,F,ET).call(this)}
|
|
5411
5448
|
</div>
|
|
5412
|
-
`}};Et=C(
|
|
5413
|
-
>${e(this,F,no).direction==="asc"?
|
|
5414
|
-
>`:f`<span class="SortIcon">${
|
|
5449
|
+
`}};Et=C(gT),Ig=new WeakMap,Ag=new WeakMap,_g=new WeakMap,Lg=new WeakMap,Og=new WeakMap,zg=new WeakMap,F=new WeakSet,Mg=new WeakMap,Hg=new WeakMap,Zn=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},bT=function(){return{page:e(this,F,ao),pageSize:this.pageSize,totalRows:this.data.length,totalPages:e(this,F,Zn)}},xT=function(t){e(this,F,no)?.column===t?e(this,F,no).direction==="asc"?p(this,F,{column:t,direction:"desc"},Jd):p(this,F,null,Jd):p(this,F,{column:t,direction:"asc"},Jd),p(this,F,1,Zd),this.dispatchEvent(IP(e(this,F,no)))},ta=function(t){p(this,F,Math.max(1,Math.min(t,e(this,F,Zn))),Zd),this.dispatchEvent(AP(e(this,F,bT)))},yT=function(t){return t.sortable?e(this,F,no)?.column===t.key?f`<span class="SortIcon"
|
|
5450
|
+
>${e(this,F,no).direction==="asc"?LP:OP}</span
|
|
5451
|
+
>`:f`<span class="SortIcon">${_P}</span>`:I},wT=function(){return f`
|
|
5415
5452
|
<thead>
|
|
5416
5453
|
<tr>
|
|
5417
5454
|
${this.columns.map(t=>{let r=t.width?{width:t.width}:{},n=t.sortable?e(this,F,no)?.column===t.key?e(this,F,no).direction==="asc"?"ascending":"descending":"none":void 0;return f`
|
|
5418
5455
|
<th
|
|
5419
|
-
style=${
|
|
5420
|
-
aria-sort=${n??
|
|
5421
|
-
@click=${t.sortable?()=>m(this,F,
|
|
5456
|
+
style=${As(r)}
|
|
5457
|
+
aria-sort=${n??I}
|
|
5458
|
+
@click=${t.sortable?()=>m(this,F,xT).call(this,t.key):I}
|
|
5422
5459
|
>
|
|
5423
5460
|
<span class="HeaderContent">
|
|
5424
|
-
${t.header} ${m(this,F,
|
|
5461
|
+
${t.header} ${m(this,F,yT).call(this,t)}
|
|
5425
5462
|
</span>
|
|
5426
5463
|
</th>
|
|
5427
5464
|
`})}
|
|
5428
5465
|
</tr>
|
|
5429
5466
|
</thead>
|
|
5430
|
-
`},
|
|
5467
|
+
`},kT=function(){if(e(this,F,Bg).length===0)return f`
|
|
5431
5468
|
<tbody>
|
|
5432
5469
|
<tr class="EmptyRow">
|
|
5433
5470
|
<td colspan=${this.columns.length}>${this.emptyText}</td>
|
|
@@ -5441,7 +5478,7 @@ p, li, blockquote, dt, dd {
|
|
|
5441
5478
|
</tr>
|
|
5442
5479
|
`)}
|
|
5443
5480
|
</tbody>
|
|
5444
|
-
`},
|
|
5481
|
+
`},ET=function(){if(this.pageSize<=0||this.data.length===0)return I;let t=(e(this,F,ao)-1)*this.pageSize+1,r=Math.min(e(this,F,ao)*this.pageSize,this.data.length),n=e(this,F,ao)===1,d=e(this,F,ao)===e(this,F,Zn);return f`
|
|
5445
5482
|
<div class="Pagination" part="pagination">
|
|
5446
5483
|
<div class="PageInfo">
|
|
5447
5484
|
<span>${t}-${r} of ${this.data.length}</span>
|
|
@@ -5481,19 +5518,19 @@ p, li, blockquote, dt, dd {
|
|
|
5481
5518
|
</button>
|
|
5482
5519
|
</div>
|
|
5483
5520
|
</div>
|
|
5484
|
-
`},l(Et,4,"columns",
|
|
5521
|
+
`},l(Et,4,"columns",vT,Oe,Ig),l(Et,4,"data",fT,Oe,Ag),l(Et,4,"pageSize",mT,Oe,_g),l(Et,4,"rowKey",uT,Oe,Lg),l(Et,4,"emptyText",hT,Oe,Og),Pg=l(Et,20,"#sort",pT,F,zg),no=Pg.get,Jd=Pg.set,Fg=l(Et,20,"#page",cT,F,Mg),ao=Fg.get,Zd=Fg.set,Ng=l(Et,20,"#displayRows",dT,F,Hg),Bg=Ng.get,Dg=Ng.set,E(Et,Oe),g(Oe,"tagName","dui-data-table"),g(Oe,"styles",[x,FP,HP]);var Po=Symbol("dui-dialog");var Kg=L("open-change",{bubbles:!0,composed:!0}),NP=c`
|
|
5485
5522
|
:host {
|
|
5486
5523
|
display: contents;
|
|
5487
5524
|
}
|
|
5488
|
-
`,
|
|
5525
|
+
`,CT,ST,$T,TT,RT,ze,Vg,qg,Ug,jg,IT,tc,be,ki,rc,oc,ic,sc,AT,nc,ac,Wg,ec,dr=class extends(RT=b,TT=[h({type:Boolean,reflect:!0})],$T=[h({type:Boolean,attribute:"default-open"})],ST=[k()],CT=[kt({context:Po}),k()],RT){constructor(){super(...arguments);i(this,be);i(this,Vg,o(ze,8,this)),o(ze,11,this);i(this,qg,o(ze,12,this,!1)),o(ze,15,this);i(this,Ug,o(ze,16,this,!1)),o(ze,19,this);i(this,ki,crypto.randomUUID().slice(0,8));i(this,rc,`dui-dialog-${e(this,ki)}`);i(this,oc,`dui-trigger-${e(this,ki)}`);i(this,ic,`dui-title-${e(this,ki)}`);i(this,sc,`dui-desc-${e(this,ki)}`);i(this,nc,()=>{this.open===void 0&&p(this,be,!0,tc),this.dispatchEvent(Kg({open:!0}))});i(this,ac,()=>{this.open===void 0&&p(this,be,!1,tc),this.dispatchEvent(Kg({open:!1}))});i(this,Wg,o(ze,20,this,m(this,be,ec).call(this))),o(ze,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&p(this,be,!0,tc),this._ctx=m(this,be,ec).call(this)}willUpdate(){this._ctx=m(this,be,ec).call(this)}render(){return f`<slot></slot>`}};ze=C(RT),Vg=new WeakMap,qg=new WeakMap,Ug=new WeakMap,be=new WeakSet,ki=new WeakMap,rc=new WeakMap,oc=new WeakMap,ic=new WeakMap,sc=new WeakMap,AT=function(){return this.open??e(this,be,IT)},nc=new WeakMap,ac=new WeakMap,Wg=new WeakMap,ec=function(){return{open:e(this,be,AT),dialogId:e(this,rc),triggerId:e(this,oc),titleId:e(this,ic),descriptionId:e(this,sc),openDialog:e(this,nc),closeDialog:e(this,ac)}},l(ze,4,"open",TT,dr,Vg),l(ze,4,"defaultOpen",$T,dr,qg),jg=l(ze,20,"#internalOpen",ST,be,Ug),IT=jg.get,tc=jg.set,l(ze,4,"_ctx",CT,dr,Wg),E(ze,dr),g(dr,"tagName","dui-dialog"),g(dr,"styles",[x,NP]);var BP=c`
|
|
5489
5526
|
:host {
|
|
5490
5527
|
display: contents;
|
|
5491
5528
|
}
|
|
5492
|
-
`,
|
|
5529
|
+
`,DP=c`
|
|
5493
5530
|
.Trigger {
|
|
5494
5531
|
display: contents;
|
|
5495
5532
|
}
|
|
5496
|
-
`,ea=class extends b{static tagName="dui-dialog-trigger";static styles=[x,
|
|
5533
|
+
`,ea=class extends b{static tagName="dui-dialog-trigger";static styles=[x,BP,DP];#t=new j(this,{context:Po,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let s=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",r=this.#t.value?.dialogId??"";return f`
|
|
5497
5534
|
<span
|
|
5498
5535
|
class="Trigger"
|
|
5499
5536
|
part="trigger"
|
|
@@ -5506,7 +5543,7 @@ p, li, blockquote, dt, dd {
|
|
|
5506
5543
|
>
|
|
5507
5544
|
<slot></slot>
|
|
5508
5545
|
</span>
|
|
5509
|
-
`}};var
|
|
5546
|
+
`}};var VP=c`
|
|
5510
5547
|
:host {
|
|
5511
5548
|
display: contents;
|
|
5512
5549
|
}
|
|
@@ -5515,7 +5552,7 @@ p, li, blockquote, dt, dd {
|
|
|
5515
5552
|
:host(:not([mounted])) [part="popup"] {
|
|
5516
5553
|
display: none;
|
|
5517
5554
|
}
|
|
5518
|
-
`,
|
|
5555
|
+
`,qP=c`
|
|
5519
5556
|
[part="backdrop"] {
|
|
5520
5557
|
position: fixed;
|
|
5521
5558
|
min-height: 100dvh;
|
|
@@ -5535,13 +5572,13 @@ p, li, blockquote, dt, dd {
|
|
|
5535
5572
|
z-index: 1000;
|
|
5536
5573
|
transition-property: opacity, transform;
|
|
5537
5574
|
}
|
|
5538
|
-
`,
|
|
5575
|
+
`,_T,LT,OT,zT,PT,MT,FT,HT,_t,Gg,Yg,Xg,Qg,Jg,Zg,_s,ib,X,tb,eb,sb,nb,rb,ob,lo,ab,Ls,co,NT,BT,lb,DT,VT,lc,qT,dc,Ye=class extends(HT=b,FT=[h({type:Boolean,attribute:"keep-mounted"})],MT=[h({attribute:"initial-focus"})],PT=[h({attribute:"final-focus"})],zT=[h()],OT=[k()],LT=[k()],_T=[k()],HT){constructor(){super(...arguments);i(this,X);i(this,Gg,o(_t,8,this,!1)),o(_t,11,this);i(this,Yg,o(_t,12,this)),o(_t,15,this);i(this,Xg,o(_t,16,this)),o(_t,19,this);i(this,Qg,o(_t,20,this)),o(_t,23,this);i(this,Jg,o(_t,24,this,!1)),o(_t,27,this);i(this,tb,o(_t,28,this,!1)),o(_t,31,this);i(this,rb,o(_t,32,this,!1)),o(_t,35,this);i(this,Ls);i(this,co,new j(this,{context:Po,subscribe:!0}));i(this,lc,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),e(this,co).value?.closeDialog()),t.key==="Tab"&&m(this,X,qT).call(this,t)});i(this,dc,()=>{e(this,co).value?.closeDialog()})}updated(){let t=e(this,co).value?.open??!1;t&&!e(this,X,_s)?m(this,X,NT).call(this):!t&&e(this,X,_s)&&!e(this,X,lo)&&m(this,X,BT).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),e(this,X,_s)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=e(this,co).value?.open??!1,r=e(this,co).value?.titleId??"",n=e(this,co).value?.descriptionId??"";return!e(this,X,_s)&&!this.keepMounted?f``:f`
|
|
5539
5576
|
<div
|
|
5540
5577
|
part="backdrop"
|
|
5541
|
-
?data-open="${t&&!e(this,
|
|
5542
|
-
?data-closed="${!t||e(this,
|
|
5543
|
-
?data-starting-style="${e(this,
|
|
5544
|
-
?data-ending-style="${e(this,
|
|
5578
|
+
?data-open="${t&&!e(this,X,lo)}"
|
|
5579
|
+
?data-closed="${!t||e(this,X,lo)}"
|
|
5580
|
+
?data-starting-style="${e(this,X,sb)}"
|
|
5581
|
+
?data-ending-style="${e(this,X,lo)}"
|
|
5545
5582
|
@click="${e(this,dc)}"
|
|
5546
5583
|
></div>
|
|
5547
5584
|
<div
|
|
@@ -5550,10 +5587,10 @@ p, li, blockquote, dt, dd {
|
|
|
5550
5587
|
aria-modal="true"
|
|
5551
5588
|
aria-labelledby="${r}"
|
|
5552
5589
|
aria-describedby="${n}"
|
|
5553
|
-
?data-open="${t&&!e(this,
|
|
5554
|
-
?data-closed="${!t||e(this,
|
|
5555
|
-
?data-starting-style="${e(this,
|
|
5556
|
-
?data-ending-style="${e(this,
|
|
5590
|
+
?data-open="${t&&!e(this,X,lo)}"
|
|
5591
|
+
?data-closed="${!t||e(this,X,lo)}"
|
|
5592
|
+
?data-starting-style="${e(this,X,sb)}"
|
|
5593
|
+
?data-ending-style="${e(this,X,lo)}"
|
|
5557
5594
|
tabindex="-1"
|
|
5558
5595
|
@keydown="${e(this,lc)}"
|
|
5559
5596
|
>
|
|
@@ -5561,15 +5598,15 @@ p, li, blockquote, dt, dd {
|
|
|
5561
5598
|
<p part="description" id="${n}"><slot name="description"></slot></p>
|
|
5562
5599
|
<slot></slot>
|
|
5563
5600
|
</div>
|
|
5564
|
-
`}};_t=C(
|
|
5601
|
+
`}};_t=C(HT),Gg=new WeakMap,Yg=new WeakMap,Xg=new WeakMap,Qg=new WeakMap,Jg=new WeakMap,X=new WeakSet,tb=new WeakMap,rb=new WeakMap,Ls=new WeakMap,co=new WeakMap,NT=async function(){p(this,Ls,document.activeElement??void 0),p(this,X,!0,ib),p(this,X,!0,nb),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,X,!1,nb),await this.updateComplete,m(this,X,DT).call(this)},BT=function(){p(this,X,!0,ab);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){m(this,X,lb).call(this);return}let r=!1,n=()=>{r||(r=!0,t.removeEventListener("transitionend",d),clearTimeout(u),m(this,X,lb).call(this))},d=v=>{v.propertyName==="opacity"&&n()};t.addEventListener("transitionend",d);let u=setTimeout(n,200)},lb=function(){!e(this,X,lo)&&!e(this,X,_s)||(p(this,X,!1,ab),this.keepMounted||p(this,X,!1,ib),m(this,X,VT).call(this))},DT=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let d=t.querySelector(this.initialFocus);if(d){d.focus();return}}let r=Bl(t);if(r){r.focus();return}let n=ds(t);if(n.length>0){n[0].focus();return}t.focus()},VT=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}e(this,Ls)?.focus(),p(this,Ls,void 0)},lc=new WeakMap,qT=function(t){let r=this.shadowRoot?.querySelector('[part="popup"]');if(!r)return;let n=ds(r);if(n.length===0){t.preventDefault();return}let d=n[0],u=n[n.length-1],v=d.matches(":focus"),w=u.matches(":focus"),S=!n.some($=>$.matches(":focus"));t.shiftKey&&(v||S)?(t.preventDefault(),u.focus()):!t.shiftKey&&w&&(t.preventDefault(),d.focus())},dc=new WeakMap,l(_t,4,"keepMounted",FT,Ye,Gg),l(_t,4,"initialFocus",MT,Ye,Yg),l(_t,4,"finalFocus",PT,Ye,Xg),l(_t,4,"width",zT,Ye,Qg),Zg=l(_t,20,"#mounted",OT,X,Jg),_s=Zg.get,ib=Zg.set,eb=l(_t,20,"#startingStyle",LT,X,tb),sb=eb.get,nb=eb.set,ob=l(_t,20,"#endingStyle",_T,X,rb),lo=ob.get,ab=ob.set,E(_t,Ye),g(Ye,"tagName","dui-dialog-popup"),g(Ye,"styles",[x,VP,qP]);var UP=c`
|
|
5565
5602
|
:host {
|
|
5566
5603
|
display: contents;
|
|
5567
5604
|
}
|
|
5568
|
-
`,ra=class extends b{static tagName="dui-dialog-close";static styles=[x,
|
|
5605
|
+
`,ra=class extends b{static tagName="dui-dialog-close";static styles=[x,UP];#t=new j(this,{context:Po,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
5569
5606
|
<span @click="${this.#e}">
|
|
5570
5607
|
<slot></slot>
|
|
5571
5608
|
</span>
|
|
5572
|
-
`}};var
|
|
5609
|
+
`}};var tR=L("drop",{bubbles:!0,composed:!0}),eR=L("drop-accepted",{bubbles:!0,composed:!0}),rR=L("drop-rejected",{bubbles:!0,composed:!0}),jP=L("dragenter",{bubbles:!0,composed:!0}),WP=L("dragover",{bubbles:!0,composed:!0}),KP=L("dragleave",{bubbles:!0,composed:!0}),cc=L("dropzone-error",{bubbles:!0,composed:!0}),GP=c`
|
|
5573
5610
|
:host {
|
|
5574
5611
|
display: block;
|
|
5575
5612
|
}
|
|
@@ -5590,11 +5627,11 @@ p, li, blockquote, dt, dd {
|
|
|
5590
5627
|
input[type="file"] {
|
|
5591
5628
|
display: none;
|
|
5592
5629
|
}
|
|
5593
|
-
`,
|
|
5630
|
+
`,UT,jT,WT,KT,GT,YT,XT,QT,JT,ZT,bt,db,cb,pb,hb,ub,mb,fb,vb,gb,bb,oR,pc,de,hc,uc,mc,fc,vc,gc,bc,xb,iR,sR,Lt=class Lt extends(ZT=b,JT=[h({type:String,reflect:!0})],QT=[h({type:Boolean,reflect:!0})],XT=[h({type:Boolean,reflect:!0})],YT=[h({type:Number,reflect:!0,attribute:"max-files"})],GT=[h({type:Number,reflect:!0,attribute:"max-size"})],KT=[h({type:Number,reflect:!0,attribute:"min-size"})],WT=[h({type:Boolean,reflect:!0,attribute:"auto-focus"})],jT=[h({type:Boolean,reflect:!0,attribute:"no-style"})],UT=[k()],ZT){constructor(){super(...arguments);i(this,de);i(this,db,o(bt,8,this)),o(bt,11,this);i(this,cb,o(bt,12,this,!1)),o(bt,15,this);i(this,pb,o(bt,16,this,!1)),o(bt,19,this);i(this,hb,o(bt,20,this,1/0)),o(bt,23,this);i(this,ub,o(bt,24,this,1/0)),o(bt,27,this);i(this,mb,o(bt,28,this,0)),o(bt,31,this);i(this,fb,o(bt,32,this,!1)),o(bt,35,this);i(this,vb,o(bt,36,this,!1)),o(bt,39,this);i(this,gb,o(bt,40,this,!1)),o(bt,43,this);i(this,hc,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(p(this,de,!0,pc),this.dispatchEvent(jP()))});i(this,uc,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(WP()))});i(this,mc,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(p(this,de,!1,pc),this.dispatchEvent(KP()))});i(this,fc,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){p(this,de,!1,pc);try{let r=Array.from(t.dataTransfer?.files??[]);m(this,de,xb).call(this,r)}catch(r){this.dispatchEvent(cc({error:r,code:Lt.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});i(this,vc,()=>{this.disabled||this.openFileDialog()});i(this,gc,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});i(this,bc,t=>{if(this.disabled)return;let r=t.target,n=Array.from(r.files??[]);try{m(this,de,xb).call(this,n)}catch(d){this.dispatchEvent(cc({error:d,code:Lt.ERROR_CODES.FILE_PROCESSING_FAILED}))}finally{r.value=""}})}connectedCallback(){super.connectedCallback(),this.autoFocus&&!this.disabled&&this.updateComplete.then(()=>{this.shadowRoot?.querySelector("[part='root']")?.focus()})}openFileDialog(){if(this.disabled)return;let t=this.shadowRoot?.querySelector('input[type="file"]');if(t)try{t.click()}catch(r){this.dispatchEvent(cc({error:r,code:Lt.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
|
|
5594
5631
|
<div
|
|
5595
5632
|
part="root"
|
|
5596
5633
|
tabindex="${this.disabled?-1:0}"
|
|
5597
|
-
?data-dragover="${e(this,de,
|
|
5634
|
+
?data-dragover="${e(this,de,oR)}"
|
|
5598
5635
|
?data-disabled="${this.disabled}"
|
|
5599
5636
|
@dragenter="${e(this,hc)}"
|
|
5600
5637
|
@dragover="${e(this,uc)}"
|
|
@@ -5617,7 +5654,7 @@ p, li, blockquote, dt, dd {
|
|
|
5617
5654
|
aria-hidden="true"
|
|
5618
5655
|
hidden
|
|
5619
5656
|
/>
|
|
5620
|
-
`}};bt=C(
|
|
5657
|
+
`}};bt=C(ZT),db=new WeakMap,cb=new WeakMap,pb=new WeakMap,hb=new WeakMap,ub=new WeakMap,mb=new WeakMap,fb=new WeakMap,vb=new WeakMap,gb=new WeakMap,de=new WeakSet,hc=new WeakMap,uc=new WeakMap,mc=new WeakMap,fc=new WeakMap,vc=new WeakMap,gc=new WeakMap,bc=new WeakMap,xb=function(t){let{acceptedFiles:r,rejectedFiles:n}=m(this,de,iR).call(this,t);this.dispatchEvent(tR({acceptedFiles:r,rejectedFiles:n})),r.length>0&&this.dispatchEvent(eR({acceptedFiles:r})),n.length>0&&this.dispatchEvent(rR({rejectedFiles:n}))},iR=function(t){let r=[],n=[],d=this.multiple?this.maxFiles:1;if(t.length>d){for(let u of t)n.push({file:u,errors:[{code:Lt.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:r,rejectedFiles:n}}for(let u of t){let v=[];u.size>this.maxSize&&v.push({code:Lt.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),u.size<this.minSize&&v.push({code:Lt.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!m(this,de,sR).call(this,u)&&v.push({code:Lt.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),v.length>0?n.push({file:u,errors:v}):r.push(u)}return{acceptedFiles:r,rejectedFiles:n}},sR=function(t){if(!this.accept)return!0;let r=this.accept.split(",").map(n=>n.trim().toLowerCase());for(let n of r)if(n.startsWith(".")){if(t.name.toLowerCase().endsWith(n))return!0}else if(n.endsWith("/*")){let d=n.slice(0,-2);if(t.type.toLowerCase().startsWith(d))return!0}else if(t.type.toLowerCase()===n)return!0;return!1},l(bt,4,"accept",JT,Lt,db),l(bt,4,"multiple",QT,Lt,cb),l(bt,4,"disabled",XT,Lt,pb),l(bt,4,"maxFiles",YT,Lt,hb),l(bt,4,"maxSize",GT,Lt,ub),l(bt,4,"minSize",KT,Lt,mb),l(bt,4,"autoFocus",WT,Lt,fb),l(bt,4,"noStyle",jT,Lt,vb),bb=l(bt,20,"#isDragOver",UT,de,gb),oR=bb.get,pc=bb.set,E(bt,Lt),g(Lt,"tagName","dui-dropzone"),g(Lt,"styles",[x,GP]),g(Lt,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),g(Lt,"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 oa=Lt;var YP=["dui-input","dui-textarea","dui-select","dui-checkbox","dui-checkbox-group","dui-radio","dui-radio-group","dui-switch","dui-number-field","dui-stepper","dui-slider","dui-combobox","dui-dropzone"].join(", "),XP=c`
|
|
5621
5658
|
:host {
|
|
5622
5659
|
display: block;
|
|
5623
5660
|
}
|
|
@@ -5641,23 +5678,23 @@ p, li, blockquote, dt, dd {
|
|
|
5641
5678
|
|
|
5642
5679
|
[part="error"] { display: none; }
|
|
5643
5680
|
[part="error"][data-invalid] { display: block; }
|
|
5644
|
-
`,
|
|
5681
|
+
`,nR,aR,lR,dR,cR,pR,hR,uR,mR,fR,vR,st,yb,wb,kb,Eb,Cb,gR,Fb,V,Sb,$b,bR,xR,Tb,Rb,yR,Hb,Ib,Ab,wR,kR,_b,Lb,ER,CR,Ob,zb,Nb,SR,Pb,Mb,$R,TR,Os,RR,Bb,Db,xe,zs,sa,na,aa,la,xc,yc,wc,kc,ia,Ec,cr=class extends(vR=b,fR=[h({type:Boolean,reflect:!0})],mR=[h({type:Boolean,reflect:!0})],uR=[h()],hR=[k()],pR=[k()],cR=[k()],dR=[k()],lR=[k()],aR=[k()],nR=[k()],vR){constructor(){super(...arguments);i(this,V);i(this,yb,o(st,8,this,!1)),o(st,11,this);i(this,wb,o(st,12,this,!1)),o(st,15,this);i(this,kb,o(st,16,this,"vertical")),o(st,19,this);i(this,Eb,o(st,20,this,!1)),o(st,23,this);i(this,Sb,o(st,24,this,!1)),o(st,27,this);i(this,Tb,o(st,28,this,!1)),o(st,31,this);i(this,Ib,o(st,32,this,!1)),o(st,35,this);i(this,_b,o(st,36,this,!1)),o(st,39,this);i(this,Ob,o(st,40,this,!1)),o(st,43,this);i(this,Pb,o(st,44,this,!1)),o(st,47,this);i(this,Os,crypto.randomUUID().slice(0,8));i(this,xe);i(this,zs,!1);i(this,sa,()=>{p(this,V,!0,Hb)});i(this,na,()=>{p(this,V,!1,Hb),p(this,V,!0,xR)});i(this,aa,()=>{p(this,V,!0,Fb),p(this,V,!0,kR)});i(this,la,()=>{p(this,V,!0,Fb)});i(this,xc,()=>{let r=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0})??[];p(this,xe,r.find(n=>n.matches(YP))),e(this,xe)&&(m(this,V,ia).call(this),this.disabled&&(p(this,zs,e(this,xe).hasAttribute("disabled")),e(this,xe).setAttribute("disabled","")))});i(this,yc,t=>{let r=t.target;p(this,V,r.assignedNodes({flatten:!0}).length>0,CR)});i(this,wc,t=>{let r=t.target;p(this,V,r.assignedNodes({flatten:!0}).length>0,SR),m(this,V,ia).call(this)});i(this,kc,t=>{let r=t.target;p(this,V,r.assignedNodes({flatten:!0}).length>0,TR),m(this,V,ia).call(this)});i(this,Ec,()=>{this.disabled||e(this,xe)?.focus()})}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",e(this,sa)),this.addEventListener("focusout",e(this,na)),this.addEventListener("input",e(this,aa)),this.addEventListener("change",e(this,la))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",e(this,sa)),this.removeEventListener("focusout",e(this,na)),this.removeEventListener("input",e(this,aa)),this.removeEventListener("change",e(this,la))}willUpdate(t){t.has("invalid")&&e(this,xe)&&m(this,V,ia).call(this),t.has("disabled")&&e(this,xe)&&(this.disabled?(p(this,zs,e(this,xe).hasAttribute("disabled")),e(this,xe).setAttribute("disabled","")):e(this,zs)||e(this,xe).removeAttribute("disabled"))}render(){return f`
|
|
5645
5682
|
<div
|
|
5646
5683
|
part="root"
|
|
5647
5684
|
role="group"
|
|
5648
5685
|
?data-disabled="${this.disabled}"
|
|
5649
5686
|
?data-invalid="${this.invalid}"
|
|
5650
5687
|
?data-valid="${!this.invalid}"
|
|
5651
|
-
?data-dirty="${e(this,
|
|
5652
|
-
?data-touched="${e(this,
|
|
5653
|
-
?data-filled="${e(this,
|
|
5654
|
-
?data-focused="${e(this,
|
|
5688
|
+
?data-dirty="${e(this,V,gR)}"
|
|
5689
|
+
?data-touched="${e(this,V,bR)}"
|
|
5690
|
+
?data-filled="${e(this,V,wR)}"
|
|
5691
|
+
?data-focused="${e(this,V,yR)}"
|
|
5655
5692
|
data-orientation="${this.orientation}"
|
|
5656
5693
|
>
|
|
5657
5694
|
<div
|
|
5658
5695
|
part="label"
|
|
5659
|
-
id="${e(this,
|
|
5660
|
-
?data-slotted="${e(this,
|
|
5696
|
+
id="${e(this,V,RR)}"
|
|
5697
|
+
?data-slotted="${e(this,V,ER)}"
|
|
5661
5698
|
?data-disabled="${this.disabled}"
|
|
5662
5699
|
@click="${e(this,Ec)}"
|
|
5663
5700
|
>
|
|
@@ -5669,8 +5706,8 @@ p, li, blockquote, dt, dd {
|
|
|
5669
5706
|
<slot @slotchange="${e(this,xc)}"></slot>
|
|
5670
5707
|
<div
|
|
5671
5708
|
part="description"
|
|
5672
|
-
id="${e(this,
|
|
5673
|
-
?data-slotted="${e(this,
|
|
5709
|
+
id="${e(this,V,Bb)}"
|
|
5710
|
+
?data-slotted="${e(this,V,Nb)}"
|
|
5674
5711
|
>
|
|
5675
5712
|
<slot
|
|
5676
5713
|
name="description"
|
|
@@ -5679,7 +5716,7 @@ p, li, blockquote, dt, dd {
|
|
|
5679
5716
|
</div>
|
|
5680
5717
|
<div
|
|
5681
5718
|
part="error"
|
|
5682
|
-
id="${e(this,
|
|
5719
|
+
id="${e(this,V,Db)}"
|
|
5683
5720
|
role="alert"
|
|
5684
5721
|
?data-invalid="${this.invalid}"
|
|
5685
5722
|
>
|
|
@@ -5689,7 +5726,7 @@ p, li, blockquote, dt, dd {
|
|
|
5689
5726
|
></slot>
|
|
5690
5727
|
</div>
|
|
5691
5728
|
</div>
|
|
5692
|
-
`}};st=C(
|
|
5729
|
+
`}};st=C(vR),yb=new WeakMap,wb=new WeakMap,kb=new WeakMap,Eb=new WeakMap,V=new WeakSet,Sb=new WeakMap,Tb=new WeakMap,Ib=new WeakMap,_b=new WeakMap,Ob=new WeakMap,Pb=new WeakMap,Os=new WeakMap,RR=function(){return`field-${e(this,Os)}-label`},Bb=function(){return`field-${e(this,Os)}-desc`},Db=function(){return`field-${e(this,Os)}-error`},xe=new WeakMap,zs=new WeakMap,sa=new WeakMap,na=new WeakMap,aa=new WeakMap,la=new WeakMap,xc=new WeakMap,yc=new WeakMap,wc=new WeakMap,kc=new WeakMap,ia=function(){let t=e(this,xe);if(!t)return;let r=[];e(this,V,Nb)&&r.push(e(this,V,Bb)),this.invalid&&e(this,V,$R)&&r.push(e(this,V,Db));let n=r.join(" ")||null;n?t.setAttribute("aria-describedby",n):t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid",String(this.invalid))},Ec=new WeakMap,l(st,4,"disabled",fR,cr,yb),l(st,4,"invalid",mR,cr,wb),l(st,4,"orientation",uR,cr,kb),Cb=l(st,20,"#dirty",hR,V,Eb),gR=Cb.get,Fb=Cb.set,$b=l(st,20,"#touched",pR,V,Sb),bR=$b.get,xR=$b.set,Rb=l(st,20,"#focused",cR,V,Tb),yR=Rb.get,Hb=Rb.set,Ab=l(st,20,"#filled",dR,V,Ib),wR=Ab.get,kR=Ab.set,Lb=l(st,20,"#hasLabel",lR,V,_b),ER=Lb.get,CR=Lb.set,zb=l(st,20,"#hasDescription",aR,V,Ob),Nb=zb.get,SR=zb.set,Mb=l(st,20,"#hasError",nR,V,Pb),$R=Mb.get,TR=Mb.set,E(st,cr),g(cr,"tagName","dui-field"),g(cr,"styles",[x,XP]);var QP=c`
|
|
5693
5730
|
:host {
|
|
5694
5731
|
display: block;
|
|
5695
5732
|
}
|
|
@@ -5703,18 +5740,18 @@ p, li, blockquote, dt, dd {
|
|
|
5703
5740
|
|
|
5704
5741
|
[part="legend"]:not([data-slotted]) { display: none; }
|
|
5705
5742
|
[part="legend"] { padding: 0; }
|
|
5706
|
-
`,
|
|
5743
|
+
`,IR,AR,_R,Ei,Vb,qb,Ub,LR,OR,Ps,Cc,po=class extends(_R=b,AR=[h({type:Boolean,reflect:!0})],IR=[k()],_R){constructor(){super(...arguments);i(this,Ps);i(this,Vb,o(Ei,8,this,!1)),o(Ei,11,this);i(this,qb,o(Ei,12,this,!1)),o(Ei,15,this);i(this,Cc,t=>{let r=t.target;p(this,Ps,r.assignedNodes({flatten:!0}).length>0,OR)})}render(){return f`
|
|
5707
5744
|
<fieldset
|
|
5708
5745
|
part="root"
|
|
5709
5746
|
?disabled="${this.disabled}"
|
|
5710
5747
|
?data-disabled="${this.disabled}"
|
|
5711
5748
|
>
|
|
5712
|
-
<legend part="legend" ?data-slotted="${e(this,Ps,
|
|
5749
|
+
<legend part="legend" ?data-slotted="${e(this,Ps,LR)}">
|
|
5713
5750
|
<slot name="legend" @slotchange="${e(this,Cc)}"></slot>
|
|
5714
5751
|
</legend>
|
|
5715
5752
|
<slot></slot>
|
|
5716
5753
|
</fieldset>
|
|
5717
|
-
`}};Ei=C(
|
|
5754
|
+
`}};Ei=C(_R),Vb=new WeakMap,qb=new WeakMap,Ps=new WeakSet,Cc=new WeakMap,l(Ei,4,"disabled",AR,po,Vb),Ub=l(Ei,20,"#hasLegend",IR,Ps,qb),LR=Ub.get,OR=Ub.set,E(Ei,po),g(po,"tagName","dui-fieldset"),g(po,"styles",[x,QP]);var JP=c`
|
|
5718
5755
|
:host {
|
|
5719
5756
|
display: inline-flex;
|
|
5720
5757
|
align-items: center;
|
|
@@ -5728,7 +5765,7 @@ p, li, blockquote, dt, dd {
|
|
|
5728
5765
|
width: 100%;
|
|
5729
5766
|
height: 100%;
|
|
5730
5767
|
}
|
|
5731
|
-
`,da=class extends b{static tagName="dui-icon";static styles=[x,
|
|
5768
|
+
`,da=class extends b{static tagName="dui-icon";static styles=[x,JP];render(){return f`<slot></slot>`}};var ca=a=>a??I;var KR=L("input-change",{bubbles:!0,composed:!0}),ZP=c`
|
|
5732
5769
|
:host {
|
|
5733
5770
|
display: block;
|
|
5734
5771
|
}
|
|
@@ -5742,7 +5779,7 @@ p, li, blockquote, dt, dd {
|
|
|
5742
5779
|
[part="input"]:disabled {
|
|
5743
5780
|
cursor: not-allowed;
|
|
5744
5781
|
}
|
|
5745
|
-
`,
|
|
5782
|
+
`,zR,PR,MR,FR,HR,NR,BR,DR,VR,qR,UR,jR,WR,Ms,Q,jb,Wb,Kb,Gb,Yb,Xb,Qb,Jb,Zb,tx,ex,rx,$c,ho,ox,Sc,Ot=class extends(WR=b,jR=[h({type:String})],UR=[h({type:String})],qR=[h({type:String})],VR=[h({type:Boolean,reflect:!0})],DR=[h({type:Boolean})],BR=[h({type:Boolean})],NR=[h({type:Number,attribute:"minlength"})],HR=[h({type:Number,attribute:"maxlength"})],FR=[h({type:String})],MR=[h({type:String})],PR=[h({type:String})],zR=[h({type:Boolean})],WR){constructor(){super();i(this,ho);i(this,Ms);i(this,jb,o(Q,8,this,"text")),o(Q,11,this);i(this,Wb,o(Q,12,this,"")),o(Q,15,this);i(this,Kb,o(Q,16,this,"")),o(Q,19,this);i(this,Gb,o(Q,20,this,!1)),o(Q,23,this);i(this,Yb,o(Q,24,this,!1)),o(Q,27,this);i(this,Xb,o(Q,28,this,!1)),o(Q,31,this);i(this,Qb,o(Q,32,this)),o(Q,35,this);i(this,Jb,o(Q,36,this)),o(Q,39,this);i(this,Zb,o(Q,40,this)),o(Q,43,this);i(this,tx,o(Q,44,this,"")),o(Q,47,this);i(this,ex,o(Q,48,this)),o(Q,51,this);i(this,rx,o(Q,52,this,!1)),o(Q,55,this);i(this,$c,t=>{let r=t.target;this.value=r.value,m(this,ho,ox).call(this),m(this,ho,Sc).call(this),this.dispatchEvent(KR({value:this.value}))});p(this,Ms,this.attachInternals())}firstUpdated(){m(this,ho,Sc).call(this),this.autofocus&&this.focus()}updated(){m(this,ho,Sc).call(this)}willUpdate(){m(this,ho,ox).call(this)}render(){return f`
|
|
5746
5783
|
<input
|
|
5747
5784
|
part="input"
|
|
5748
5785
|
type="${this.type}"
|
|
@@ -5758,7 +5795,7 @@ p, li, blockquote, dt, dd {
|
|
|
5758
5795
|
autocomplete="${ca(this.autocomplete)}"
|
|
5759
5796
|
@input="${e(this,$c)}"
|
|
5760
5797
|
/>
|
|
5761
|
-
`}};Q=C(
|
|
5798
|
+
`}};Q=C(WR),Ms=new WeakMap,jb=new WeakMap,Wb=new WeakMap,Kb=new WeakMap,Gb=new WeakMap,Yb=new WeakMap,Xb=new WeakMap,Qb=new WeakMap,Jb=new WeakMap,Zb=new WeakMap,tx=new WeakMap,ex=new WeakMap,rx=new WeakMap,$c=new WeakMap,ho=new WeakSet,ox=function(){e(this,Ms).setFormValue(this.value)},Sc=function(){let t=this.shadowRoot?.querySelector("input");t&&e(this,Ms).setValidity(t.validity,t.validationMessage,t)},l(Q,4,"type",jR,Ot,jb),l(Q,4,"value",UR,Ot,Wb),l(Q,4,"placeholder",qR,Ot,Kb),l(Q,4,"disabled",VR,Ot,Gb),l(Q,4,"required",DR,Ot,Yb),l(Q,4,"readonly",BR,Ot,Xb),l(Q,4,"minLength",NR,Ot,Qb),l(Q,4,"maxLength",HR,Ot,Jb),l(Q,4,"pattern",FR,Ot,Zb),l(Q,4,"name",MR,Ot,tx),l(Q,4,"autocomplete",PR,Ot,ex),l(Q,4,"autofocus",zR,Ot,rx),E(Q,Ot),g(Ot,"tagName","dui-input"),g(Ot,"formAssociated",!0),g(Ot,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Ot,"styles",[x,ZP]);var t5=c`
|
|
5762
5799
|
:host {
|
|
5763
5800
|
display: block;
|
|
5764
5801
|
}
|
|
@@ -5766,26 +5803,26 @@ p, li, blockquote, dt, dd {
|
|
|
5766
5803
|
:host([disabled]) {
|
|
5767
5804
|
pointer-events: none;
|
|
5768
5805
|
}
|
|
5769
|
-
`,
|
|
5806
|
+
`,e5=c`
|
|
5770
5807
|
.Item {
|
|
5771
5808
|
display: flex;
|
|
5772
5809
|
align-items: center;
|
|
5773
5810
|
cursor: pointer;
|
|
5774
5811
|
}
|
|
5775
|
-
`,
|
|
5812
|
+
`,GR,YR,Tc,ix,Pe=class extends(YR=b,GR=[h({type:Boolean,reflect:!0})],YR){constructor(){super(...arguments);i(this,ix,o(Tc,8,this,!1)),o(Tc,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
|
|
5776
5813
|
<div class="Item" part="root" aria-disabled="${this.disabled}">
|
|
5777
5814
|
<slot></slot>
|
|
5778
5815
|
</div>
|
|
5779
|
-
`}};Tc=C(
|
|
5816
|
+
`}};Tc=C(YR),ix=new WeakMap,l(Tc,4,"disabled",GR,Pe,ix),E(Tc,Pe),g(Pe,"tagName","dui-menu-item"),g(Pe,"styles",[x,t5,e5]);var r5=c`
|
|
5780
5817
|
:host {
|
|
5781
5818
|
display: block;
|
|
5782
5819
|
}
|
|
5783
|
-
`,
|
|
5820
|
+
`,o5=c`
|
|
5784
5821
|
.Trigger {
|
|
5785
5822
|
display: contents;
|
|
5786
5823
|
cursor: pointer;
|
|
5787
5824
|
}
|
|
5788
|
-
`,
|
|
5825
|
+
`,i5=[c`
|
|
5789
5826
|
.Popup {
|
|
5790
5827
|
max-height: 240px;
|
|
5791
5828
|
overflow-y: auto;
|
|
@@ -5800,7 +5837,7 @@ p, li, blockquote, dt, dd {
|
|
|
5800
5837
|
.Popup[data-ending-style] {
|
|
5801
5838
|
opacity: 0;
|
|
5802
5839
|
}
|
|
5803
|
-
`],
|
|
5840
|
+
`],XR,QR,JR,Ci,sx,nx,ax,Si,Mo,zt,Fs,Rt,pa,lx,ZR,Rc,Ic,Ac,_c,uo=class extends(JR=b,QR=[h({attribute:"popup-min-width"})],XR=[k()],JR){constructor(){super(...arguments);i(this,zt);i(this,sx,o(Ci,8,this,"var(--space-28)")),o(Ci,11,this);i(this,nx,o(Ci,12,this,-1)),o(Ci,15,this);i(this,Fs,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);i(this,Rt,new re(this,{getAnchor:()=>e(this,Fs).call(this)??this,matchWidth:!1,styles:i5,contentContainer:".Menu",contentSelector:"dui-menu-item, dui-separator",onOpen:()=>{p(this,zt,-1,Mo),e(this,Fs).call(this)?.setAttribute("data-open","")},onClose:()=>{p(this,zt,-1,Mo),e(this,Fs).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
|
|
5804
5841
|
<div
|
|
5805
5842
|
class="Popup"
|
|
5806
5843
|
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
@@ -5811,22 +5848,22 @@ p, li, blockquote, dt, dd {
|
|
|
5811
5848
|
class="Menu"
|
|
5812
5849
|
id="${e(this,pa)}"
|
|
5813
5850
|
role="menu"
|
|
5814
|
-
@click="${e(this,
|
|
5851
|
+
@click="${e(this,Ic)}"
|
|
5815
5852
|
@mousemove="${e(this,_c)}"
|
|
5816
5853
|
></div>
|
|
5817
5854
|
</div>
|
|
5818
|
-
`}));i(this,pa,`menu-${crypto.randomUUID().slice(0,8)}`);i(this,Rc,t=>{t.stopPropagation(),t.preventDefault(),m(this,zt,
|
|
5855
|
+
`}));i(this,pa,`menu-${crypto.randomUUID().slice(0,8)}`);i(this,Rc,t=>{t.stopPropagation(),t.preventDefault(),m(this,zt,ZR).call(this)});i(this,Ic,t=>{let r=t.composedPath().find(n=>n instanceof HTMLElement&&n.matches(Pe.tagName));r&&!r.disabled&&e(this,Rt).close()});i(this,Ac,t=>{let r=e(this,zt,lx);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!e(this,Rt).isOpen)e(this,Rt).open();else{let n=e(this,zt,Si)+1;for(;n<r.length&&r[n]?.disabled;)n++;n<r.length&&p(this,zt,n,Mo)}break}case"ArrowUp":{if(t.preventDefault(),!e(this,Rt).isOpen)e(this,Rt).open();else{let n=e(this,zt,Si)-1;for(;n>=0&&r[n]?.disabled;)n--;n>=0&&p(this,zt,n,Mo)}break}case"Home":if(e(this,Rt).isOpen){t.preventDefault();let n=r.findIndex(d=>!d.disabled);n>=0&&p(this,zt,n,Mo)}break;case"End":if(e(this,Rt).isOpen){t.preventDefault();for(let n=r.length-1;n>=0;n--)if(!r[n]?.disabled){p(this,zt,n,Mo);break}}break;case"Enter":case" ":{if(e(this,Rt).isOpen&&e(this,zt,Si)>=0){t.preventDefault();let n=r[e(this,zt,Si)];n&&!n.disabled&&(n.click(),e(this,Rt).close())}else e(this,Rt).isOpen||(t.preventDefault(),e(this,Rt).open());break}case"Escape":e(this,Rt).isOpen&&(t.preventDefault(),e(this,Rt).close());break;case"Tab":e(this,Rt).isOpen&&e(this,Rt).close();break}});i(this,_c,()=>{e(this,zt,Si)>=0&&p(this,zt,-1,Mo)})}updated(){let t=e(this,zt,lx);for(let r=0;r<t.length;r++)r===e(this,zt,Si)?t[r].setAttribute("data-highlighted",""):t[r].removeAttribute("data-highlighted")}render(){return f`
|
|
5819
5856
|
<div
|
|
5820
5857
|
class="Trigger"
|
|
5821
5858
|
aria-haspopup="menu"
|
|
5822
5859
|
aria-expanded="${e(this,Rt).isOpen}"
|
|
5823
5860
|
aria-controls="${e(this,pa)}"
|
|
5824
5861
|
@click="${e(this,Rc)}"
|
|
5825
|
-
@keydown="${e(this,
|
|
5862
|
+
@keydown="${e(this,Ac)}"
|
|
5826
5863
|
>
|
|
5827
5864
|
<slot name="trigger"></slot>
|
|
5828
5865
|
</div>
|
|
5829
|
-
`}};Ci=C(
|
|
5866
|
+
`}};Ci=C(JR),sx=new WeakMap,nx=new WeakMap,zt=new WeakSet,Fs=new WeakMap,Rt=new WeakMap,pa=new WeakMap,lx=function(){return[...(e(this,Rt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},ZR=function(){e(this,Rt).isOpen?e(this,Rt).close():e(this,Rt).open()},Rc=new WeakMap,Ic=new WeakMap,Ac=new WeakMap,_c=new WeakMap,l(Ci,4,"popupMinWidth",QR,uo,sx),ax=l(Ci,20,"#highlightedIndex",XR,zt,nx),Si=ax.get,Mo=ax.set,E(Ci,uo),g(uo,"tagName","dui-menu"),g(uo,"styles",[x,r5,o5]);var tI=Symbol("dui-menubar");var s5=c`
|
|
5830
5867
|
:host {
|
|
5831
5868
|
display: block;
|
|
5832
5869
|
}
|
|
@@ -5840,7 +5877,7 @@ p, li, blockquote, dt, dd {
|
|
|
5840
5877
|
flex-direction: column;
|
|
5841
5878
|
align-items: stretch;
|
|
5842
5879
|
}
|
|
5843
|
-
`,
|
|
5880
|
+
`,eI,rI,oI,iI,sI,Me,dx,cx,px,hx,mx,Lc,ye,nI,Oc,zc,Hs,ux,fx,Pc,pr=class extends(sI=b,iI=[h({type:Boolean})],oI=[h({reflect:!0})],rI=[k()],eI=[kt({context:tI}),k()],sI){constructor(){super(...arguments);i(this,ye);i(this,dx,o(Me,8,this,!0)),o(Me,11,this);i(this,cx,o(Me,12,this,"horizontal")),o(Me,15,this);i(this,px,o(Me,16,this,null)),o(Me,19,this);i(this,Oc,t=>{p(this,ye,t,Lc)});i(this,zc,()=>{p(this,ye,null,Lc)});i(this,Hs,t=>{let r=m(this,ye,nI).call(this);if(r.length===0)return;let n=r.findIndex(S=>S.getAttribute("data-menubar-id")===e(this,ye,mx)),d;t==="next"?(d=n+1,d>=r.length&&(d=this.loop?0:r.length-1)):(d=n-1,d<0&&(d=this.loop?r.length-1:0));let u=r[d];if(!u)return;let v=u.getAttribute("data-menubar-id");v&&p(this,ye,v,Lc),u.querySelector('[slot="trigger"]')?.focus()});i(this,ux,o(Me,20,this,m(this,ye,fx).call(this))),o(Me,23,this);i(this,Pc,t=>{let r=this.orientation==="horizontal",n=r?"ArrowRight":"ArrowDown",d=r?"ArrowLeft":"ArrowUp";t.key===n?(t.preventDefault(),e(this,Hs).call(this,"next")):t.key===d&&(t.preventDefault(),e(this,Hs).call(this,"prev"))})}willUpdate(){this._ctx=m(this,ye,fx).call(this)}render(){return f`
|
|
5844
5881
|
<div
|
|
5845
5882
|
part="root"
|
|
5846
5883
|
role="menubar"
|
|
@@ -5849,7 +5886,7 @@ p, li, blockquote, dt, dd {
|
|
|
5849
5886
|
>
|
|
5850
5887
|
<slot></slot>
|
|
5851
5888
|
</div>
|
|
5852
|
-
`}};Me=C(
|
|
5889
|
+
`}};Me=C(sI),dx=new WeakMap,cx=new WeakMap,px=new WeakMap,ye=new WeakSet,nI=function(){return[...this.querySelectorAll("dui-menu")]},Oc=new WeakMap,zc=new WeakMap,Hs=new WeakMap,ux=new WeakMap,fx=function(){return{activeMenuId:e(this,ye,mx),openMenu:e(this,Oc),closeAll:e(this,zc),navigateToMenu:e(this,Hs)}},Pc=new WeakMap,l(Me,4,"loop",iI,pr,dx),l(Me,4,"orientation",oI,pr,cx),hx=l(Me,20,"#activeMenuId",rI,ye,px),mx=hx.get,Lc=hx.set,l(Me,4,"_ctx",eI,pr,ux),E(Me,pr),g(pr,"tagName","dui-menubar"),g(pr,"styles",[x,s5]);var OI=L("value-change",{bubbles:!0,composed:!0}),jx=L("value-committed",{bubbles:!0,composed:!0}),n5=c`
|
|
5853
5890
|
:host {
|
|
5854
5891
|
display: block;
|
|
5855
5892
|
}
|
|
@@ -5915,17 +5952,17 @@ p, li, blockquote, dt, dd {
|
|
|
5915
5952
|
pointer-events: none;
|
|
5916
5953
|
}
|
|
5917
5954
|
|
|
5918
|
-
`,
|
|
5955
|
+
`,a5=3,aI,lI,dI,cI,pI,hI,uI,mI,fI,vI,gI,bI,xI,yI,wI,kI,EI,CI,SI,$I,TI,RI,II,AI,_I,LI,ha,_,vx,gx,bx,xx,yx,wx,kx,Ex,Cx,Sx,$x,Tx,Rx,Ix,Ax,_x,Lx,Ox,zx,Px,Mx,Fx,Hx,zI,Wx,T,Nx,Bx,Kx,Gx,Dx,Vx,PI,Yx,qx,Ux,Xx,Ns,ua,ma,_i,Li,fa,Ar,MI,FI,$i,Qx,Jx,Ti,HI,NI,Mc,Ri,Zx,Ii,Bs,Ds,ty,Fc,Ai,va,Oi,Hc,Nc,Bc,Dc,Vc,qc,Uc,nt=class extends(LI=b,_I=[h({type:Number})],AI=[h({type:Number,attribute:"default-value"})],II=[h({type:Number})],RI=[h({type:Number})],TI=[h({type:Number})],$I=[h({type:Number,attribute:"large-step"})],SI=[h({type:Boolean,reflect:!0})],CI=[h({type:Boolean,reflect:!0,attribute:"read-only"})],EI=[h({type:Boolean})],kI=[h()],wI=[h({reflect:!0})],yI=[h({reflect:!0,attribute:"label-position"})],xI=[h({reflect:!0,attribute:"icon-position"})],bI=[h({reflect:!0})],gI=[h({type:Number})],vI=[h({type:Boolean,reflect:!0,attribute:"scrub-label"})],fI=[h({type:Boolean,reflect:!0,attribute:"scrub-value"})],mI=[h({type:Boolean,reflect:!0,attribute:"scrub-field"})],uI=[h({type:Boolean,reflect:!0,attribute:"click-label"})],hI=[h({type:Boolean,reflect:!0,attribute:"click-value"})],pI=[h({type:Boolean,reflect:!0,attribute:"click-field"})],cI=[k()],dI=[k()],lI=[k()],aI=[k()],LI){constructor(){super();i(this,T);i(this,ha);i(this,vx,o(_,8,this)),o(_,11,this);i(this,gx,o(_,12,this)),o(_,15,this);i(this,bx,o(_,16,this)),o(_,19,this);i(this,xx,o(_,20,this)),o(_,23,this);i(this,yx,o(_,24,this,1)),o(_,27,this);i(this,wx,o(_,28,this,10)),o(_,31,this);i(this,kx,o(_,32,this,!1)),o(_,35,this);i(this,Ex,o(_,36,this,!1)),o(_,39,this);i(this,Cx,o(_,40,this,!1)),o(_,43,this);i(this,Sx,o(_,44,this)),o(_,47,this);i(this,$x,o(_,48,this,"")),o(_,51,this);i(this,Tx,o(_,52,this,"")),o(_,55,this);i(this,Rx,o(_,56,this,"")),o(_,59,this);i(this,Ix,o(_,60,this,"")),o(_,63,this);i(this,Ax,o(_,64,this)),o(_,67,this);i(this,_x,o(_,68,this,!1)),o(_,71,this);i(this,Lx,o(_,72,this,!1)),o(_,75,this);i(this,Ox,o(_,76,this,!1)),o(_,79,this);i(this,zx,o(_,80,this,!1)),o(_,83,this);i(this,Px,o(_,84,this,!1)),o(_,87,this);i(this,Mx,o(_,88,this,!1)),o(_,91,this);i(this,Fx,o(_,92,this)),o(_,95,this);i(this,Nx,o(_,96,this,"")),o(_,99,this);i(this,Dx,o(_,100,this,!1)),o(_,103,this);i(this,qx,o(_,104,this,!1)),o(_,107,this);i(this,ua,0);i(this,ma,0);i(this,_i,!1);i(this,Li,null);i(this,fa,!1);i(this,Bs,t=>{if(this.disabled||this.readOnly)return;let r=e(this,T,Ar)??this.min??0;m(this,T,Ii).call(this,r+t)});i(this,Ds,t=>{if(this.disabled||this.readOnly)return;let r=e(this,T,Ar)??this.max??0;m(this,T,Ii).call(this,r-t)});i(this,va,t=>{if(t.pointerId!==e(this,Li))return;let r=t.clientX-e(this,ua);if(!e(this,_i)){if(Math.abs(r)<a5)return;p(this,_i,!0),p(this,T,!0,Yx)}let n=this.step;t.shiftKey?n=this.step*.1:(t.ctrlKey||t.metaKey)&&(n=this.largeStep);let d=e(this,ma)+r*n;m(this,T,Ii).call(this,d)});i(this,Oi,t=>{if(t.pointerId===e(this,Li)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",e(this,va)),this.removeEventListener("pointerup",e(this,Oi)),this.removeEventListener("pointercancel",e(this,Oi)),e(this,_i)){p(this,T,!1,Yx);let r=e(this,T,Ar);r!==void 0&&this.dispatchEvent(jx({value:r}))}else e(this,fa)&&m(this,T,Fc).call(this);p(this,Li,null)}});i(this,Hc,t=>{if(t.button!==0)return;let r=e(this,T,Qx)||e(this,T,Ti),n=e(this,T,HI)||e(this,T,Mc);r&&n?(t.preventDefault(),m(this,T,Ai).call(this,t,!0)):r?(t.preventDefault(),m(this,T,Ai).call(this,t,!1)):n&&(t.preventDefault(),m(this,T,Fc).call(this))});i(this,Nc,t=>{if(t.button!==0)return;let r=e(this,T,Jx)||e(this,T,Ti),n=e(this,T,NI)||e(this,T,Mc);r&&n?(t.preventDefault(),m(this,T,Ai).call(this,t,!0)):r?(t.preventDefault(),m(this,T,Ai).call(this,t,!1)):n&&p(this,T,!0,Ns)});i(this,Bc,t=>{if(t.button!==0)return;let r=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==r)return;let n=e(this,T,Ti),d=e(this,T,Mc);n&&d?(t.preventDefault(),m(this,T,Ai).call(this,t,!0)):n?(t.preventDefault(),m(this,T,Ai).call(this,t,!1)):d&&(t.preventDefault(),m(this,T,Fc).call(this))});i(this,Dc,t=>{p(this,T,t.target.value,Gx)});i(this,Vc,()=>{e(this,T,Xx)&&m(this,T,ty).call(this)});i(this,qc,()=>{p(this,T,!0,Ns);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});i(this,Uc,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?e(this,Bs).call(this,this.step*.1):t.ctrlKey||t.metaKey?e(this,Bs).call(this,this.largeStep):e(this,Bs).call(this,this.step),m(this,T,Ri).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?e(this,Ds).call(this,this.step*.1):t.ctrlKey||t.metaKey?e(this,Ds).call(this,this.largeStep):e(this,Ds).call(this,this.step),m(this,T,Ri).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),m(this,T,Ii).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),m(this,T,Ii).call(this,this.max));break;case"Enter":m(this,T,ty).call(this);break;case"Escape":{p(this,T,!1,Ns),m(this,T,Ri).call(this);let r=this.shadowRoot?.querySelector('[part="input"]');r&&r.blur();break}}});p(this,ha,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,T,m(this,T,Zx).call(this,this.defaultValue),Wx),m(this,T,Ri).call(this)}willUpdate(){e(this,T,Xx)||m(this,T,Ri).call(this),e(this,ha).setFormValue(e(this,T,Ar)!==void 0?String(e(this,T,Ar)):null)}render(){let t=e(this,T,Ar),r=e(this,T,Qx)||e(this,T,Ti),n=e(this,T,Jx)||e(this,T,Ti),d=e(this,T,Ti);return f`
|
|
5919
5956
|
<span
|
|
5920
5957
|
part="label"
|
|
5921
5958
|
?data-scrub="${r}"
|
|
5922
|
-
@pointerdown="${e(this,
|
|
5959
|
+
@pointerdown="${e(this,Hc)}"
|
|
5923
5960
|
>${this.label}</span>
|
|
5924
5961
|
|
|
5925
5962
|
<div
|
|
5926
5963
|
part="root"
|
|
5927
5964
|
?data-scrub="${d}"
|
|
5928
|
-
?data-dragging="${e(this,T,
|
|
5965
|
+
?data-dragging="${e(this,T,PI)}"
|
|
5929
5966
|
?data-disabled="${this.disabled}"
|
|
5930
5967
|
?data-readonly="${this.readOnly}"
|
|
5931
5968
|
@pointerdown="${e(this,Bc)}"
|
|
@@ -5943,11 +5980,11 @@ p, li, blockquote, dt, dd {
|
|
|
5943
5980
|
?disabled="${this.disabled}"
|
|
5944
5981
|
?readonly="${this.readOnly}"
|
|
5945
5982
|
?required="${this.required}"
|
|
5946
|
-
aria-label="${this.label||
|
|
5947
|
-
aria-valuenow="${t??
|
|
5948
|
-
aria-valuemin="${this.min??
|
|
5949
|
-
aria-valuemax="${this.max??
|
|
5950
|
-
@pointerdown="${e(this,
|
|
5983
|
+
aria-label="${this.label||I}"
|
|
5984
|
+
aria-valuenow="${t??I}"
|
|
5985
|
+
aria-valuemin="${this.min??I}"
|
|
5986
|
+
aria-valuemax="${this.max??I}"
|
|
5987
|
+
@pointerdown="${e(this,Nc)}"
|
|
5951
5988
|
@input="${e(this,Dc)}"
|
|
5952
5989
|
@keydown="${e(this,Uc)}"
|
|
5953
5990
|
@focus="${e(this,qc)}"
|
|
@@ -5957,7 +5994,7 @@ p, li, blockquote, dt, dd {
|
|
|
5957
5994
|
<span part="unit">${this.unit}</span>
|
|
5958
5995
|
|
|
5959
5996
|
</div>
|
|
5960
|
-
`}};_=C(
|
|
5997
|
+
`}};_=C(LI),ha=new WeakMap,vx=new WeakMap,gx=new WeakMap,bx=new WeakMap,xx=new WeakMap,yx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Ex=new WeakMap,Cx=new WeakMap,Sx=new WeakMap,$x=new WeakMap,Tx=new WeakMap,Rx=new WeakMap,Ix=new WeakMap,Ax=new WeakMap,_x=new WeakMap,Lx=new WeakMap,Ox=new WeakMap,zx=new WeakMap,Px=new WeakMap,Mx=new WeakMap,Fx=new WeakMap,T=new WeakSet,Nx=new WeakMap,Dx=new WeakMap,qx=new WeakMap,ua=new WeakMap,ma=new WeakMap,_i=new WeakMap,Li=new WeakMap,fa=new WeakMap,Ar=function(){return this.value??e(this,T,zI)},MI=function(){let t=String(this.step),r=t.indexOf(".");return r===-1?0:t.length-r-1},FI=function(){let t=e(this,T,Ar);if(t===void 0)return"";let r=this.precision??e(this,T,MI);return t.toFixed(r)},$i=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},Qx=function(){return e(this,T,$i)?this.scrubLabel:this.label!==""},Jx=function(){return e(this,T,$i)?this.scrubValue:!1},Ti=function(){return e(this,T,$i)?this.scrubField:this.label===""},HI=function(){return e(this,T,$i)?this.clickLabel:!1},NI=function(){return e(this,T,$i)?this.clickValue:!0},Mc=function(){return e(this,T,$i)?this.clickField:!1},Ri=function(){p(this,T,e(this,T,FI),Gx)},Zx=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Ii=function(t){let r=m(this,T,Zx).call(this,t);this.value===void 0&&p(this,T,r,Wx),this.dispatchEvent(OI({value:r}))},Bs=new WeakMap,Ds=new WeakMap,ty=function(){let t=parseFloat(e(this,T,Kx));Number.isNaN(t)?m(this,T,Ri).call(this):m(this,T,Ii).call(this,t),p(this,T,!1,Ns);let r=e(this,T,Ar);r!==void 0&&this.dispatchEvent(jx({value:r}))},Fc=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(p(this,T,!0,Ns),t.focus(),t.select())},Ai=function(t,r){this.disabled||this.readOnly||(p(this,Li,t.pointerId),p(this,ua,t.clientX),p(this,ma,e(this,T,Ar)??0),p(this,_i,!1),p(this,fa,r),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",e(this,va)),this.addEventListener("pointerup",e(this,Oi)),this.addEventListener("pointercancel",e(this,Oi)))},va=new WeakMap,Oi=new WeakMap,Hc=new WeakMap,Nc=new WeakMap,Bc=new WeakMap,Dc=new WeakMap,Vc=new WeakMap,qc=new WeakMap,Uc=new WeakMap,l(_,4,"value",_I,nt,vx),l(_,4,"defaultValue",AI,nt,gx),l(_,4,"min",II,nt,bx),l(_,4,"max",RI,nt,xx),l(_,4,"step",TI,nt,yx),l(_,4,"largeStep",$I,nt,wx),l(_,4,"disabled",SI,nt,kx),l(_,4,"readOnly",CI,nt,Ex),l(_,4,"required",EI,nt,Cx),l(_,4,"name",kI,nt,Sx),l(_,4,"label",wI,nt,$x),l(_,4,"labelPosition",yI,nt,Tx),l(_,4,"iconPosition",xI,nt,Rx),l(_,4,"unit",bI,nt,Ix),l(_,4,"precision",gI,nt,Ax),l(_,4,"scrubLabel",vI,nt,_x),l(_,4,"scrubValue",fI,nt,Lx),l(_,4,"scrubField",mI,nt,Ox),l(_,4,"clickLabel",uI,nt,zx),l(_,4,"clickValue",hI,nt,Px),l(_,4,"clickField",pI,nt,Mx),Hx=l(_,20,"#internalValue",cI,T,Fx),zI=Hx.get,Wx=Hx.set,Bx=l(_,20,"#inputText",dI,T,Nx),Kx=Bx.get,Gx=Bx.set,Vx=l(_,20,"#dragging",lI,T,Dx),PI=Vx.get,Yx=Vx.set,Ux=l(_,20,"#editing",aI,T,qx),Xx=Ux.get,Ns=Ux.set,E(_,nt),g(nt,"tagName","dui-number-field"),g(nt,"formAssociated",!0),g(nt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(nt,"styles",[x,n5]);var ZI=L("value-change",{bubbles:!0,composed:!0}),jc=L("value-committed",{bubbles:!0,composed:!0}),l5=c`
|
|
5961
5998
|
:host {
|
|
5962
5999
|
display: block;
|
|
5963
6000
|
}
|
|
@@ -6010,7 +6047,7 @@ p, li, blockquote, dt, dd {
|
|
|
6010
6047
|
width: 0;
|
|
6011
6048
|
height: 0;
|
|
6012
6049
|
}
|
|
6013
|
-
`,
|
|
6050
|
+
`,BI,DI,VI,qI,UI,jI,WI,KI,GI,YI,XI,QI,JI,J,ey,ry,oy,iy,sy,ny,ay,ly,dy,cy,py,hy,tA,fy,U,uy,my,vy,gy,_r,eA,rA,Vs,by,qs,ga,ba,xy,Wc,Kc,Gc,Yc,Xc,Wt=class extends(JI=b,QI=[h({type:Number})],XI=[h({type:Number,attribute:"default-value"})],YI=[h({type:Number})],GI=[h({type:Number})],KI=[h({type:Number})],WI=[h({type:Number,attribute:"large-step"})],jI=[h({type:Boolean,reflect:!0})],UI=[h({type:Boolean,reflect:!0,attribute:"read-only"})],qI=[h({type:Boolean})],VI=[h()],DI=[k()],BI=[k()],JI){constructor(){super(...arguments);i(this,U);i(this,ey,o(J,8,this)),o(J,11,this);i(this,ry,o(J,12,this)),o(J,15,this);i(this,oy,o(J,16,this)),o(J,19,this);i(this,iy,o(J,20,this)),o(J,23,this);i(this,sy,o(J,24,this,1)),o(J,27,this);i(this,ny,o(J,28,this,10)),o(J,31,this);i(this,ay,o(J,32,this,!1)),o(J,35,this);i(this,ly,o(J,36,this,!1)),o(J,39,this);i(this,dy,o(J,40,this,!1)),o(J,43,this);i(this,cy,o(J,44,this)),o(J,47,this);i(this,py,o(J,48,this)),o(J,51,this);i(this,uy,o(J,52,this,"")),o(J,55,this);i(this,ga,t=>{if(this.disabled||this.readOnly)return;let r=e(this,U,_r)??this.min??0;m(this,U,qs).call(this,r+t)});i(this,ba,t=>{if(this.disabled||this.readOnly)return;let r=e(this,U,_r)??this.max??0;m(this,U,qs).call(this,r-t)});i(this,Wc,t=>{p(this,U,t.target.value,gy)});i(this,Kc,()=>{m(this,U,xy).call(this)});i(this,Gc,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),e(this,ga).call(this,t.shiftKey?this.largeStep:this.step),m(this,U,Vs).call(this);break;case"ArrowDown":t.preventDefault(),e(this,ba).call(this,t.shiftKey?this.largeStep:this.step),m(this,U,Vs).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),m(this,U,qs).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),m(this,U,qs).call(this,this.max));break;case"Enter":m(this,U,xy).call(this);break}});i(this,Yc,()=>{e(this,ba).call(this,this.step);let t=e(this,U,_r);t!==void 0&&this.dispatchEvent(jc({value:t}))});i(this,Xc,()=>{e(this,ga).call(this,this.step);let t=e(this,U,_r);t!==void 0&&this.dispatchEvent(jc({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,U,m(this,U,by).call(this,this.defaultValue),fy),m(this,U,Vs).call(this)}willUpdate(){m(this,U,Vs).call(this)}render(){let t=e(this,U,_r);return f`
|
|
6014
6051
|
<div
|
|
6015
6052
|
part="root"
|
|
6016
6053
|
?data-disabled="${this.disabled}"
|
|
@@ -6020,7 +6057,7 @@ p, li, blockquote, dt, dd {
|
|
|
6020
6057
|
type="button"
|
|
6021
6058
|
tabindex="-1"
|
|
6022
6059
|
aria-label="Decrease"
|
|
6023
|
-
?disabled="${this.disabled||this.readOnly||!e(this,
|
|
6060
|
+
?disabled="${this.disabled||this.readOnly||!e(this,U,eA)}"
|
|
6024
6061
|
@click="${e(this,Yc)}"
|
|
6025
6062
|
>
|
|
6026
6063
|
<slot name="decrement">−</slot>
|
|
@@ -6029,7 +6066,7 @@ p, li, blockquote, dt, dd {
|
|
|
6029
6066
|
part="input"
|
|
6030
6067
|
type="text"
|
|
6031
6068
|
inputmode="decimal"
|
|
6032
|
-
.value="${Er(e(this,
|
|
6069
|
+
.value="${Er(e(this,U,vy))}"
|
|
6033
6070
|
?disabled="${this.disabled}"
|
|
6034
6071
|
?readonly="${this.readOnly}"
|
|
6035
6072
|
?required="${this.required}"
|
|
@@ -6042,7 +6079,7 @@ p, li, blockquote, dt, dd {
|
|
|
6042
6079
|
type="button"
|
|
6043
6080
|
tabindex="-1"
|
|
6044
6081
|
aria-label="Increase"
|
|
6045
|
-
?disabled="${this.disabled||this.readOnly||!e(this,
|
|
6082
|
+
?disabled="${this.disabled||this.readOnly||!e(this,U,rA)}"
|
|
6046
6083
|
@click="${e(this,Xc)}"
|
|
6047
6084
|
>
|
|
6048
6085
|
<slot name="increment">+</slot>
|
|
@@ -6051,21 +6088,21 @@ p, li, blockquote, dt, dd {
|
|
|
6051
6088
|
type="hidden"
|
|
6052
6089
|
name="${this.name}"
|
|
6053
6090
|
.value="${String(t??"")}"
|
|
6054
|
-
/>`:
|
|
6091
|
+
/>`:I}
|
|
6055
6092
|
</div>
|
|
6056
|
-
`}};J=C(
|
|
6093
|
+
`}};J=C(JI),ey=new WeakMap,ry=new WeakMap,oy=new WeakMap,iy=new WeakMap,sy=new WeakMap,ny=new WeakMap,ay=new WeakMap,ly=new WeakMap,dy=new WeakMap,cy=new WeakMap,py=new WeakMap,U=new WeakSet,uy=new WeakMap,_r=function(){return this.value??e(this,U,tA)},eA=function(){let t=e(this,U,_r);return t===void 0?!0:this.min===void 0||t>this.min},rA=function(){let t=e(this,U,_r);return t===void 0?!0:this.max===void 0||t<this.max},Vs=function(){let t=e(this,U,_r);p(this,U,t!==void 0?String(t):"",gy)},by=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},qs=function(t){let r=m(this,U,by).call(this,t);this.value===void 0&&p(this,U,r,fy),this.dispatchEvent(ZI({value:r}))},ga=new WeakMap,ba=new WeakMap,xy=function(){let t=parseFloat(e(this,U,vy));Number.isNaN(t)?m(this,U,Vs).call(this):m(this,U,qs).call(this,t);let r=e(this,U,_r);r!==void 0&&this.dispatchEvent(jc({value:r}))},Wc=new WeakMap,Kc=new WeakMap,Gc=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,l(J,4,"value",QI,Wt,ey),l(J,4,"defaultValue",XI,Wt,ry),l(J,4,"min",YI,Wt,oy),l(J,4,"max",GI,Wt,iy),l(J,4,"step",KI,Wt,sy),l(J,4,"largeStep",WI,Wt,ny),l(J,4,"disabled",jI,Wt,ay),l(J,4,"readOnly",UI,Wt,ly),l(J,4,"required",qI,Wt,dy),l(J,4,"name",VI,Wt,cy),hy=l(J,20,"#internalValue",DI,U,py),tA=hy.get,fy=hy.set,my=l(J,20,"#inputText",BI,U,uy),vy=my.get,gy=my.set,E(J,Wt),g(Wt,"tagName","dui-stepper"),g(Wt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Wt,"styles",[x,l5]);var Fo=Symbol("dui-popover");var Iy=L("open-change",{bubbles:!0,composed:!0}),d5=c`
|
|
6057
6094
|
:host {
|
|
6058
6095
|
display: contents;
|
|
6059
6096
|
}
|
|
6060
|
-
`,
|
|
6097
|
+
`,oA,iA,sA,nA,aA,lA,dA,cA,Pt,yy,wy,ky,Ey,Cy,Sy,Qc,Jc,at,$y,Ty,Ay,pA,xa,tp,ep,Ry,ya,_y,Zc,hA,uA,Fe=class extends(cA=b,dA=[h({type:Boolean,reflect:!0})],lA=[h({type:Boolean,attribute:"default-open"})],aA=[h({reflect:!0})],nA=[h({type:Number,attribute:"side-offset"})],sA=[k()],iA=[k()],oA=[kt({context:Fo}),k()],cA){constructor(){super(...arguments);i(this,at);i(this,yy,o(Pt,8,this,!1)),o(Pt,11,this);i(this,wy,o(Pt,12,this,!1)),o(Pt,15,this);i(this,ky,o(Pt,16,this,"bottom")),o(Pt,19,this);i(this,Ey,o(Pt,20,this,8)),o(Pt,23,this);i(this,Cy,o(Pt,24,this,!1)),o(Pt,27,this);i(this,$y,o(Pt,28,this)),o(Pt,31,this);i(this,tp,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);i(this,ep,`popover-popup-${crypto.randomUUID().slice(0,8)}`);i(this,Ry,o(Pt,32,this,{open:!1,triggerId:e(this,tp),popupId:e(this,ep),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>m(this,at,_y).call(this),closePopover:()=>m(this,at,Zc).call(this),togglePopover:()=>m(this,at,hA).call(this),setTriggerEl:t=>m(this,at,uA).call(this,t)})),o(Pt,35,this);i(this,ya,t=>{e(this,at,xa)&&t.key==="Escape"&&(t.preventDefault(),m(this,at,Zc).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&p(this,at,!0,Jc),document.addEventListener("keydown",e(this,ya))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",e(this,ya))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e(this,at,xa)||this._ctx.triggerEl!==e(this,at,Ay))&&(this._ctx={...this._ctx,open:e(this,at,xa),side:this.side,sideOffset:this.sideOffset,triggerEl:e(this,at,Ay)})}render(){return f`<slot></slot>`}};Pt=C(cA),yy=new WeakMap,wy=new WeakMap,ky=new WeakMap,Ey=new WeakMap,Cy=new WeakMap,at=new WeakSet,$y=new WeakMap,xa=function(){return this.open||e(this,at,Qc)},tp=new WeakMap,ep=new WeakMap,Ry=new WeakMap,ya=new WeakMap,_y=function(){e(this,at,Qc)||(p(this,at,!0,Jc),this.dispatchEvent(Iy({open:!0})))},Zc=function(){e(this,at,Qc)&&(p(this,at,!1,Jc),this.dispatchEvent(Iy({open:!1})))},hA=function(){e(this,at,xa)?m(this,at,Zc).call(this):m(this,at,_y).call(this)},uA=function(t){p(this,at,t,pA)},l(Pt,4,"open",dA,Fe,yy),l(Pt,4,"defaultOpen",lA,Fe,wy),l(Pt,4,"side",aA,Fe,ky),l(Pt,4,"sideOffset",nA,Fe,Ey),Sy=l(Pt,20,"#internalOpen",sA,at,Cy),Qc=Sy.get,Jc=Sy.set,Ty=l(Pt,20,"#triggerEl",iA,at,$y),Ay=Ty.get,pA=Ty.set,l(Pt,4,"_ctx",oA,Fe,Ry),E(Pt,Fe),g(Fe,"tagName","dui-popover"),g(Fe,"styles",[x,d5]);var c5=c`
|
|
6061
6098
|
:host {
|
|
6062
6099
|
display: contents;
|
|
6063
6100
|
}
|
|
6064
|
-
`,
|
|
6101
|
+
`,p5=c`
|
|
6065
6102
|
.Trigger {
|
|
6066
6103
|
display: contents;
|
|
6067
6104
|
}
|
|
6068
|
-
`,wa=class extends b{static tagName="dui-popover-trigger";static styles=[x,
|
|
6105
|
+
`,wa=class extends b{static tagName="dui-popover-trigger";static styles=[x,c5,p5];#t=new j(this,{context:Fo,subscribe:!0});#e=s=>{s.stopPropagation(),this.#s(),this.#t.value?.togglePopover()};#s(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0]??this;this.#t.value?.setTriggerEl(t)}#n(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0];if(!t)return;this.#t.value?.open??!1?t.setAttribute("data-open",""):t.removeAttribute("data-open")}updated(){this.#n()}render(){let s=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",r=this.#t.value?.triggerId??"";return f`
|
|
6069
6106
|
<span
|
|
6070
6107
|
class="Trigger"
|
|
6071
6108
|
part="trigger"
|
|
@@ -6078,7 +6115,7 @@ p, li, blockquote, dt, dd {
|
|
|
6078
6115
|
>
|
|
6079
6116
|
<slot></slot>
|
|
6080
6117
|
</span>
|
|
6081
|
-
`}};var
|
|
6118
|
+
`}};var h5=c`
|
|
6082
6119
|
:host {
|
|
6083
6120
|
display: contents;
|
|
6084
6121
|
}
|
|
@@ -6086,7 +6123,7 @@ p, li, blockquote, dt, dd {
|
|
|
6086
6123
|
.slot-wrapper {
|
|
6087
6124
|
display: none;
|
|
6088
6125
|
}
|
|
6089
|
-
`,
|
|
6126
|
+
`,u5=[c`
|
|
6090
6127
|
.Popup {
|
|
6091
6128
|
box-sizing: border-box;
|
|
6092
6129
|
pointer-events: auto;
|
|
@@ -6127,7 +6164,7 @@ p, li, blockquote, dt, dd {
|
|
|
6127
6164
|
left: 50%;
|
|
6128
6165
|
transform: translateX(-50%) rotate(180deg);
|
|
6129
6166
|
}
|
|
6130
|
-
`],
|
|
6167
|
+
`],mA,fA,vA,gA,Lr,Ly,Oy,zy,Py,rp,bA,zr,mo,Us,Ho,op,xA,Or=class extends(gA=b,vA=[h({type:Boolean,attribute:"show-arrow"})],fA=[h({type:Boolean,attribute:"close-on-click"})],mA=[k()],gA){constructor(){super(...arguments);i(this,zr);i(this,Ly,o(Lr,8,this,!0)),o(Lr,11,this);i(this,Oy,o(Lr,12,this,!1)),o(Lr,15,this);i(this,zy,o(Lr,16,this,"bottom")),o(Lr,19,this);i(this,mo,new j(this,{context:Fo,subscribe:!0}));i(this,Us,!1);i(this,Ho,new re(this,{getAnchor:()=>e(this,mo).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:u5,contentContainer:".Content",onPosition:({placement:t})=>{let r=t.split("-")[0];r!==e(this,zr,rp)&&p(this,zr,r,bA)},renderPopup:t=>{let r=e(this,mo).value?.popupId??"";return f`
|
|
6131
6168
|
<div
|
|
6132
6169
|
class="Popup"
|
|
6133
6170
|
id="${r}"
|
|
@@ -6140,31 +6177,31 @@ p, li, blockquote, dt, dd {
|
|
|
6140
6177
|
<div class="Content"></div>
|
|
6141
6178
|
${this.showArrow?ks(e(this,zr,rp)):""}
|
|
6142
6179
|
</div>
|
|
6143
|
-
`}}));i(this,op,()=>{this.closeOnClick&&e(this,mo).value?.closePopover()})}containsEventTarget(t){let r=e(this,
|
|
6180
|
+
`}}));i(this,op,()=>{this.closeOnClick&&e(this,mo).value?.closePopover()})}containsEventTarget(t){let r=e(this,Ho).positionerElement;return r!==null&&t.includes(r)}updated(){let t=e(this,mo).value?.open??!1;t&&!e(this,Us)?(m(this,zr,xA).call(this),e(this,Ho).open()):!t&&e(this,Us)&&e(this,Ho).close(),p(this,Us,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Lr=C(gA),Ly=new WeakMap,Oy=new WeakMap,zy=new WeakMap,zr=new WeakSet,mo=new WeakMap,Us=new WeakMap,Ho=new WeakMap,op=new WeakMap,xA=function(){let t=e(this,mo).value?.side??"bottom";e(this,Ho).placement=t,e(this,Ho).offset=e(this,mo).value?.sideOffset??8},l(Lr,4,"showArrow",vA,Or,Ly),l(Lr,4,"closeOnClick",fA,Or,Oy),Py=l(Lr,20,"#side",mA,zr,zy),rp=Py.get,bA=Py.set,E(Lr,Or),g(Or,"tagName","dui-popover-popup"),g(Or,"styles",[x,h5]);var m5=c`
|
|
6144
6181
|
:host {
|
|
6145
6182
|
display: contents;
|
|
6146
6183
|
}
|
|
6147
|
-
`,ka=class extends b{static tagName="dui-popover-close";static styles=[x,
|
|
6184
|
+
`,ka=class extends b{static tagName="dui-popover-close";static styles=[x,m5];#t=new j(this,{context:Fo,subscribe:!0});#e=()=>{this.#t.value?.closePopover()};render(){return f`
|
|
6148
6185
|
<span @click="${this.#e}">
|
|
6149
6186
|
<slot></slot>
|
|
6150
6187
|
</span>
|
|
6151
|
-
`}};var
|
|
6188
|
+
`}};var f5=c`
|
|
6152
6189
|
:host {
|
|
6153
6190
|
display: contents;
|
|
6154
6191
|
}
|
|
6155
|
-
`,
|
|
6192
|
+
`,yA,wA,kA,EA,Pr,My,Fy,Hy,Mr,zi,No,we,Ny,CA,By,ip,sp,hr=class extends(EA=b,kA=[h({type:String})],wA=[h({type:String,attribute:"target-root",reflect:!0})],yA=[h({attribute:!1})],EA){constructor(){super(...arguments);i(this,we);i(this,My,o(Pr,8,this,"body")),o(Pr,11,this);i(this,Fy,o(Pr,12,this,"document")),o(Pr,15,this);i(this,Hy,o(Pr,16,this)),o(Pr,19,this);i(this,Mr);i(this,zi,new Set);i(this,No,!1);i(this,sp,()=>{e(this,No)||!e(this,Mr)||m(this,we,ip).call(this)})}connectedCallback(){super.connectedCallback(),p(this,Mr,this.targetElement??m(this,we,Ny).call(this)),e(this,Mr)&&this.childNodes.length>0&&m(this,we,ip).call(this)}disconnectedCallback(){super.disconnectedCallback(),m(this,we,By).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(m(this,we,By).call(this),m(this,we,CA).call(this))}render(){return f`<slot @slotchange=${e(this,sp)}></slot>`}};Pr=C(EA),My=new WeakMap,Fy=new WeakMap,Hy=new WeakMap,Mr=new WeakMap,zi=new WeakMap,No=new WeakMap,we=new WeakSet,Ny=function(){return YC(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},CA=function(){p(this,Mr,this.targetElement??m(this,we,Ny).call(this)),m(this,we,ip).call(this)},By=function(){if(e(this,zi).size!==0){p(this,No,!0);for(let t of e(this,zi))this.append(t);e(this,zi).clear(),p(this,No,!1),p(this,Mr,void 0)}},ip=function(){if(!e(this,Mr))throw new Error(`Portal target does not exist: ${this.target}`);p(this,No,!0);let t=Array.from(this.childNodes);for(let r of t)e(this,Mr).appendChild(r),e(this,zi).add(r);p(this,No,!1)},sp=new WeakMap,l(Pr,4,"target",kA,hr,My),l(Pr,4,"targetRoot",wA,hr,Fy),l(Pr,4,"targetElement",yA,hr,Hy),E(Pr,hr),g(hr,"tagName","dui-portal"),g(hr,"styles",[f5]);var js=Symbol("dui-preview-card");var Jy=L("open-change",{bubbles:!0,composed:!0}),v5=c`
|
|
6156
6193
|
:host {
|
|
6157
6194
|
display: contents;
|
|
6158
6195
|
}
|
|
6159
|
-
`,
|
|
6196
|
+
`,SA,$A,TA,RA,IA,AA,_A,LA,OA,zA,xt,Dy,Vy,qy,Uy,jy,Wy,Ky,Gy,np,ap,lt,Yy,Xy,Zy,PA,Pi,Mi,dp,cp,Qy,lp,MA,FA,t0,e0,HA,ce=class extends(zA=b,OA=[h({type:Boolean,reflect:!0})],LA=[h({type:Boolean,attribute:"default-open"})],_A=[h({reflect:!0})],AA=[h({type:Number,attribute:"side-offset"})],IA=[h({type:Number})],RA=[h({type:Number,attribute:"close-delay"})],TA=[k()],$A=[k()],SA=[kt({context:js}),k()],zA){constructor(){super(...arguments);i(this,lt);i(this,Dy,o(xt,8,this,!1)),o(xt,11,this);i(this,Vy,o(xt,12,this,!1)),o(xt,15,this);i(this,qy,o(xt,16,this,"top")),o(xt,19,this);i(this,Uy,o(xt,20,this,8)),o(xt,23,this);i(this,jy,o(xt,24,this,400)),o(xt,27,this);i(this,Wy,o(xt,28,this,300)),o(xt,31,this);i(this,Ky,o(xt,32,this,!1)),o(xt,35,this);i(this,Yy,o(xt,36,this)),o(xt,39,this);i(this,Pi);i(this,Mi);i(this,dp,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);i(this,cp,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);i(this,Qy,o(xt,40,this,{open:!1,triggerId:e(this,dp),popupId:e(this,cp),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>m(this,lt,MA).call(this),closePreviewCard:()=>m(this,lt,FA).call(this),setTriggerEl:t=>m(this,lt,HA).call(this,t)})),o(xt,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&p(this,lt,!0,ap)}disconnectedCallback(){super.disconnectedCallback(),m(this,lt,lp).call(this)}willUpdate(t){let r=this.open||e(this,lt,np);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==r||this._ctx.triggerEl!==e(this,lt,Zy))&&(this._ctx={...this._ctx,open:r,side:this.side,sideOffset:this.sideOffset,triggerEl:e(this,lt,Zy)})}render(){return f`<slot></slot>`}};xt=C(zA),Dy=new WeakMap,Vy=new WeakMap,qy=new WeakMap,Uy=new WeakMap,jy=new WeakMap,Wy=new WeakMap,Ky=new WeakMap,lt=new WeakSet,Yy=new WeakMap,Pi=new WeakMap,Mi=new WeakMap,dp=new WeakMap,cp=new WeakMap,Qy=new WeakMap,lp=function(){e(this,Pi)&&(clearTimeout(e(this,Pi)),p(this,Pi,void 0)),e(this,Mi)&&(clearTimeout(e(this,Mi)),p(this,Mi,void 0))},MA=function(){m(this,lt,lp).call(this),this.delay<=0?m(this,lt,t0).call(this):p(this,Pi,setTimeout(()=>m(this,lt,t0).call(this),this.delay))},FA=function(){m(this,lt,lp).call(this),this.closeDelay<=0?m(this,lt,e0).call(this):p(this,Mi,setTimeout(()=>m(this,lt,e0).call(this),this.closeDelay))},t0=function(){e(this,lt,np)||(p(this,lt,!0,ap),this.dispatchEvent(Jy({open:!0})))},e0=function(){e(this,lt,np)&&(p(this,lt,!1,ap),this.dispatchEvent(Jy({open:!1})))},HA=function(t){p(this,lt,t,PA)},l(xt,4,"open",OA,ce,Dy),l(xt,4,"defaultOpen",LA,ce,Vy),l(xt,4,"side",_A,ce,qy),l(xt,4,"sideOffset",AA,ce,Uy),l(xt,4,"delay",IA,ce,jy),l(xt,4,"closeDelay",RA,ce,Wy),Gy=l(xt,20,"#internalOpen",TA,lt,Ky),np=Gy.get,ap=Gy.set,Xy=l(xt,20,"#triggerEl",$A,lt,Yy),Zy=Xy.get,PA=Xy.set,l(xt,4,"_ctx",SA,ce,Qy),E(xt,ce),g(ce,"tagName","dui-preview-card"),g(ce,"styles",[x,v5]);var g5=c`
|
|
6160
6197
|
:host {
|
|
6161
6198
|
display: contents;
|
|
6162
6199
|
}
|
|
6163
|
-
`,
|
|
6200
|
+
`,b5=c`
|
|
6164
6201
|
.Trigger {
|
|
6165
6202
|
display: contents;
|
|
6166
6203
|
}
|
|
6167
|
-
`,Ea=class extends b{static tagName="dui-preview-card-trigger";static styles=[x,
|
|
6204
|
+
`,Ea=class extends b{static tagName="dui-preview-card-trigger";static styles=[x,g5,b5];#t=new j(this,{context:js,subscribe:!0});#e=()=>{this.#d(),this.#t.value?.openPreviewCard()};#s=()=>{this.#t.value?.closePreviewCard()};#n=()=>{this.#d(),this.#t.value?.openPreviewCard()};#a=()=>{this.#t.value?.closePreviewCard()};#l=s=>{s.key==="Escape"&&this.#t.value?.open&&this.#t.value?.closePreviewCard()};#d(){let r=this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})?.[0]??this;this.#t.value?.setTriggerEl(r)}render(){let s=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",r=this.#t.value?.triggerId??"";return f`
|
|
6168
6205
|
<span
|
|
6169
6206
|
class="Trigger"
|
|
6170
6207
|
part="trigger"
|
|
@@ -6180,7 +6217,7 @@ p, li, blockquote, dt, dd {
|
|
|
6180
6217
|
>
|
|
6181
6218
|
<slot></slot>
|
|
6182
6219
|
</span>
|
|
6183
|
-
`}};var
|
|
6220
|
+
`}};var x5=c`
|
|
6184
6221
|
:host {
|
|
6185
6222
|
display: contents;
|
|
6186
6223
|
}
|
|
@@ -6188,7 +6225,7 @@ p, li, blockquote, dt, dd {
|
|
|
6188
6225
|
.slot-wrapper {
|
|
6189
6226
|
display: none;
|
|
6190
6227
|
}
|
|
6191
|
-
`,
|
|
6228
|
+
`,y5=[c`
|
|
6192
6229
|
.Popup {
|
|
6193
6230
|
box-sizing: border-box;
|
|
6194
6231
|
pointer-events: auto;
|
|
@@ -6229,21 +6266,21 @@ p, li, blockquote, dt, dd {
|
|
|
6229
6266
|
left: 50%;
|
|
6230
6267
|
transform: translateX(-50%) rotate(180deg);
|
|
6231
6268
|
}
|
|
6232
|
-
`],
|
|
6269
|
+
`],NA,BA,DA,Fi,r0,o0,i0,pp,VA,Hr,Fr,Ws,Hi,hp,up,qA,fo=class extends(DA=b,BA=[h({type:Boolean,attribute:"show-arrow"})],NA=[k()],DA){constructor(){super(...arguments);i(this,Hr);i(this,r0,o(Fi,8,this,!0)),o(Fi,11,this);i(this,o0,o(Fi,12,this,"top")),o(Fi,15,this);i(this,Fr,new j(this,{context:js,subscribe:!0}));i(this,Ws,!1);i(this,Hi,new re(this,{getAnchor:()=>e(this,Fr).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:y5,contentContainer:".PreviewCardContent",forwardProperties:["--preview-card-popup-padding"],onPosition:({placement:t})=>{let r=t.split("-")[0];r!==e(this,Hr,pp)&&p(this,Hr,r,VA)},renderPopup:t=>{let r=e(this,Fr).value?.popupId??"";return f`
|
|
6233
6270
|
<div
|
|
6234
6271
|
class="Popup"
|
|
6235
6272
|
id="${r}"
|
|
6236
6273
|
role="tooltip"
|
|
6237
6274
|
?data-starting-style="${t.isStarting}"
|
|
6238
6275
|
?data-ending-style="${t.isEnding}"
|
|
6239
|
-
data-side="${e(this,
|
|
6276
|
+
data-side="${e(this,Hr,pp)}"
|
|
6240
6277
|
@mouseenter="${e(this,hp)}"
|
|
6241
6278
|
@mouseleave="${e(this,up)}"
|
|
6242
6279
|
>
|
|
6243
6280
|
<div class="PreviewCardContent"></div>
|
|
6244
|
-
${this.showArrow?ks(e(this,
|
|
6281
|
+
${this.showArrow?ks(e(this,Hr,pp)):""}
|
|
6245
6282
|
</div>
|
|
6246
|
-
`}}));i(this,hp,()=>{e(this,Fr).value?.openPreviewCard()});i(this,up,()=>{e(this,Fr).value?.closePreviewCard()})}updated(){let t=e(this,Fr).value?.open??!1;t&&!e(this,Ws)?(m(this,
|
|
6283
|
+
`}}));i(this,hp,()=>{e(this,Fr).value?.openPreviewCard()});i(this,up,()=>{e(this,Fr).value?.closePreviewCard()})}updated(){let t=e(this,Fr).value?.open??!1;t&&!e(this,Ws)?(m(this,Hr,qA).call(this),e(this,Hi).open()):!t&&e(this,Ws)&&e(this,Hi).close(),p(this,Ws,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Fi=C(DA),r0=new WeakMap,o0=new WeakMap,Hr=new WeakSet,Fr=new WeakMap,Ws=new WeakMap,Hi=new WeakMap,hp=new WeakMap,up=new WeakMap,qA=function(){let t=e(this,Fr).value?.side??"top";e(this,Hi).placement=t,e(this,Hi).offset=e(this,Fr).value?.sideOffset??8},l(Fi,4,"showArrow",BA,fo,r0),i0=l(Fi,20,"#side",NA,Hr,o0),pp=i0.get,VA=i0.set,E(Fi,fo),g(fo,"tagName","dui-preview-card-popup"),g(fo,"styles",[x,x5]);var w5=c`
|
|
6247
6284
|
:host {
|
|
6248
6285
|
display: block;
|
|
6249
6286
|
}
|
|
@@ -6261,11 +6298,11 @@ p, li, blockquote, dt, dd {
|
|
|
6261
6298
|
width: var(--progress-value, 0%);
|
|
6262
6299
|
height: 100%;
|
|
6263
6300
|
}
|
|
6264
|
-
`,
|
|
6301
|
+
`,UA,jA,WA,KA,Nr,s0,n0,a0,Br,GA,l0,d0,ur=class extends(KA=b,WA=[h({type:Number})],jA=[h({type:Number})],UA=[h({type:Number})],KA){constructor(){super(...arguments);i(this,Br);i(this,s0,o(Nr,8,this,null)),o(Nr,11,this);i(this,n0,o(Nr,12,this,0)),o(Nr,15,this);i(this,a0,o(Nr,16,this,100)),o(Nr,19,this)}render(){let t=e(this,Br,GA);return f`
|
|
6265
6302
|
<div
|
|
6266
6303
|
part="root"
|
|
6267
6304
|
role="progressbar"
|
|
6268
|
-
aria-valuenow="${this.value??
|
|
6305
|
+
aria-valuenow="${this.value??I}"
|
|
6269
6306
|
aria-valuemin="${this.min}"
|
|
6270
6307
|
aria-valuemax="${this.max}"
|
|
6271
6308
|
?data-complete="${e(this,Br,d0)}"
|
|
@@ -6277,7 +6314,7 @@ p, li, blockquote, dt, dd {
|
|
|
6277
6314
|
<div part="indicator"></div>
|
|
6278
6315
|
</div>
|
|
6279
6316
|
</div>
|
|
6280
|
-
`}};
|
|
6317
|
+
`}};Nr=C(KA),s0=new WeakMap,n0=new WeakMap,a0=new WeakMap,Br=new WeakSet,GA=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))},l0=function(){return this.value===null},d0=function(){return this.value!==null&&this.value>=this.max},l(Nr,4,"value",WA,ur,s0),l(Nr,4,"min",jA,ur,n0),l(Nr,4,"max",UA,ur,a0),E(Nr,ur),g(ur,"tagName","dui-progress"),g(ur,"styles",[x,w5]);var mp=Symbol("dui-radio-group");var k5=c`
|
|
6281
6318
|
:host {
|
|
6282
6319
|
display: inline-flex;
|
|
6283
6320
|
align-items: center;
|
|
@@ -6321,15 +6358,15 @@ p, li, blockquote, dt, dd {
|
|
|
6321
6358
|
display: none;
|
|
6322
6359
|
}
|
|
6323
6360
|
|
|
6324
|
-
`,
|
|
6361
|
+
`,YA,XA,QA,JA,Ks,Dr,c0,p0,h0,Bo,pe,u0,m0,f0,ZA,t2,Ca,Gs,fp,Xe=class extends(JA=b,QA=[h()],XA=[h({type:Boolean,reflect:!0})],YA=[h({type:Boolean,reflect:!0,attribute:"read-only"})],JA){constructor(){super();i(this,pe);i(this,Ks);i(this,c0,o(Dr,8,this,"")),o(Dr,11,this);i(this,p0,o(Dr,12,this,!1)),o(Dr,15,this);i(this,h0,o(Dr,16,this,!1)),o(Dr,19,this);i(this,Bo,new j(this,{context:mp,subscribe:!0}));i(this,Ca,t=>{t.target.closest("[part='root']")||e(this,Gs).call(this,t)});i(this,Gs,t=>{if(e(this,pe,m0)||e(this,pe,f0))return;let r=e(this,Bo).value;r&&r.select(this.value)});i(this,fp,t=>{t.key===" "&&(t.preventDefault(),e(this,Gs).call(this,t))});p(this,Ks,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Ca))}willUpdate(){m(this,pe,t2).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Ca))}render(){let t=e(this,pe,u0),r=e(this,pe,m0),n=e(this,pe,f0),d=e(this,pe,ZA);return f`
|
|
6325
6362
|
<span
|
|
6326
6363
|
part="root"
|
|
6327
6364
|
role="radio"
|
|
6328
6365
|
aria-checked="${String(t)}"
|
|
6329
|
-
aria-disabled="${r?"true":
|
|
6330
|
-
aria-readonly="${n?"true":
|
|
6331
|
-
aria-required="${d?"true":
|
|
6332
|
-
tabindex="${r?
|
|
6366
|
+
aria-disabled="${r?"true":I}"
|
|
6367
|
+
aria-readonly="${n?"true":I}"
|
|
6368
|
+
aria-required="${d?"true":I}"
|
|
6369
|
+
tabindex="${r?I:"0"}"
|
|
6333
6370
|
?data-checked="${t}"
|
|
6334
6371
|
?data-unchecked="${!t}"
|
|
6335
6372
|
?data-disabled="${r}"
|
|
@@ -6343,11 +6380,11 @@ p, li, blockquote, dt, dd {
|
|
|
6343
6380
|
?data-checked="${t}"
|
|
6344
6381
|
?data-unchecked="${!t}"
|
|
6345
6382
|
>
|
|
6346
|
-
${t?f`<span part="dot"></span>`:
|
|
6383
|
+
${t?f`<span part="dot"></span>`:I}
|
|
6347
6384
|
</span>
|
|
6348
6385
|
</span>
|
|
6349
6386
|
<slot></slot>
|
|
6350
|
-
`}};Dr=C(
|
|
6387
|
+
`}};Dr=C(JA),Ks=new WeakMap,c0=new WeakMap,p0=new WeakMap,h0=new WeakMap,Bo=new WeakMap,pe=new WeakSet,u0=function(){return e(this,Bo).value?.value===this.value},m0=function(){return this.disabled||(e(this,Bo).value?.disabled??!1)},f0=function(){return this.readOnly||(e(this,Bo).value?.readOnly??!1)},ZA=function(){return e(this,Bo).value?.required??!1},t2=function(){e(this,pe,u0)?e(this,Ks).setFormValue(this.value):e(this,Ks).setFormValue(null)},Ca=new WeakMap,Gs=new WeakMap,fp=new WeakMap,l(Dr,4,"value",QA,Xe,c0),l(Dr,4,"disabled",XA,Xe,p0),l(Dr,4,"readOnly",YA,Xe,h0),E(Dr,Xe),g(Xe,"tagName","dui-radio"),g(Xe,"formAssociated",!0),g(Xe,"styles",[x,k5]);var c2=L("value-change",{bubbles:!0,composed:!0}),E5=c`
|
|
6351
6388
|
:host {
|
|
6352
6389
|
display: block;
|
|
6353
6390
|
}
|
|
@@ -6361,7 +6398,7 @@ p, li, blockquote, dt, dd {
|
|
|
6361
6398
|
[part="root"][data-disabled] {
|
|
6362
6399
|
opacity: 0.5;
|
|
6363
6400
|
}
|
|
6364
|
-
`,
|
|
6401
|
+
`,e2,r2,o2,i2,s2,n2,a2,l2,d2,Ct,v0,g0,b0,x0,y0,w0,k0,E0,p2,S0,mr,gp,bp,C0,vp,he=class extends(d2=b,l2=[h()],a2=[h()],n2=[h({attribute:"default-value"})],s2=[h({type:Boolean,reflect:!0})],i2=[h({type:Boolean,reflect:!0,attribute:"read-only"})],o2=[h({type:Boolean,reflect:!0})],r2=[k()],e2=[kt({context:mp}),k()],d2){constructor(){super(...arguments);i(this,mr);i(this,v0,o(Ct,8,this)),o(Ct,11,this);i(this,g0,o(Ct,12,this)),o(Ct,15,this);i(this,b0,o(Ct,16,this)),o(Ct,19,this);i(this,x0,o(Ct,20,this,!1)),o(Ct,23,this);i(this,y0,o(Ct,24,this,!1)),o(Ct,27,this);i(this,w0,o(Ct,28,this,!1)),o(Ct,31,this);i(this,k0,o(Ct,32,this)),o(Ct,35,this);i(this,gp,()=>this.value??e(this,mr,p2));i(this,bp,t=>{this.disabled||this.readOnly||(this.value===void 0&&p(this,mr,t,S0),this.dispatchEvent(c2({value:t})))});i(this,C0,o(Ct,36,this,m(this,mr,vp).call(this))),o(Ct,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,mr,this.defaultValue,S0),this._ctx=m(this,mr,vp).call(this)}willUpdate(){this._ctx=m(this,mr,vp).call(this)}render(){return f`
|
|
6365
6402
|
<div
|
|
6366
6403
|
part="root"
|
|
6367
6404
|
role="radiogroup"
|
|
@@ -6371,7 +6408,7 @@ p, li, blockquote, dt, dd {
|
|
|
6371
6408
|
>
|
|
6372
6409
|
<slot></slot>
|
|
6373
6410
|
</div>
|
|
6374
|
-
`}};Ct=C(
|
|
6411
|
+
`}};Ct=C(d2),v0=new WeakMap,g0=new WeakMap,b0=new WeakMap,x0=new WeakMap,y0=new WeakMap,w0=new WeakMap,k0=new WeakMap,mr=new WeakSet,gp=new WeakMap,bp=new WeakMap,C0=new WeakMap,vp=function(){return{name:this.name,value:e(this,gp).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:e(this,bp)}},l(Ct,4,"name",l2,he,v0),l(Ct,4,"value",a2,he,g0),l(Ct,4,"defaultValue",n2,he,b0),l(Ct,4,"disabled",s2,he,x0),l(Ct,4,"readOnly",i2,he,y0),l(Ct,4,"required",o2,he,w0),E0=l(Ct,20,"#internalValue",r2,mr,k0),p2=E0.get,S0=E0.set,l(Ct,4,"_ctx",e2,he,C0),E(Ct,he),g(he,"tagName","dui-radio-group"),g(he,"styles",[x,E5]);var C5=c`
|
|
6375
6412
|
:host {
|
|
6376
6413
|
display: block;
|
|
6377
6414
|
position: relative;
|
|
@@ -6400,14 +6437,9 @@ p, li, blockquote, dt, dd {
|
|
|
6400
6437
|
}
|
|
6401
6438
|
}
|
|
6402
6439
|
|
|
6403
|
-
.
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
left: 0;
|
|
6407
|
-
right: 0;
|
|
6408
|
-
height: 0;
|
|
6409
|
-
pointer-events: none;
|
|
6410
|
-
z-index: 1;
|
|
6440
|
+
:host([fade]) .Viewport[data-scrolled] {
|
|
6441
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, black var(--scroll-fade-size, 1.5rem));
|
|
6442
|
+
mask-image: linear-gradient(to bottom, transparent, black var(--scroll-fade-size, 1.5rem));
|
|
6411
6443
|
}
|
|
6412
6444
|
|
|
6413
6445
|
.Scrollbar {
|
|
@@ -6467,7 +6499,7 @@ p, li, blockquote, dt, dd {
|
|
|
6467
6499
|
height: 100%;
|
|
6468
6500
|
min-width: 1.25rem;
|
|
6469
6501
|
}
|
|
6470
|
-
`,
|
|
6502
|
+
`,h2,u2,m2,f2,v2,g2,b2,x2,y2,w2,k2,E2,C2,Z,$0,T0,R0,I0,A0,xp,S2,z,_0,L0,yp,$2,O0,z0,K0,G0,P0,M0,wp,Y0,F0,H0,X0,T2,N0,B0,Q0,R2,D0,V0,I2,A2,q0,U0,_2,L2,j0,W0,J0,O2,kp,vo,Ys,Xs,Ni,Bi,Di,Vi,Do,z2,P2,qi,$a,Ep,Ta,Ra,Ia,Aa,_a,La,M2,F2,Vr=class Vr extends(C2=b,E2=[h({reflect:!0})],k2=[h({type:Boolean,reflect:!0})],w2=[h({attribute:"max-height"})],y2=[k()],x2=[k()],b2=[k()],g2=[k()],v2=[k()],f2=[k()],m2=[k()],u2=[k()],h2=[k()],C2){constructor(){super(...arguments);i(this,z);i(this,$0,o(Z,8,this,"vertical")),o(Z,11,this);i(this,T0,o(Z,12,this,!1)),o(Z,15,this);i(this,R0,o(Z,16,this)),o(Z,19,this);i(this,I0,o(Z,20,this,!1)),o(Z,23,this);i(this,_0,o(Z,24,this,!1)),o(Z,27,this);i(this,O0,o(Z,28,this,!1)),o(Z,31,this);i(this,P0,o(Z,32,this,!1)),o(Z,35,this);i(this,F0,o(Z,36,this,0)),o(Z,39,this);i(this,N0,o(Z,40,this,0)),o(Z,43,this);i(this,D0,o(Z,44,this,0)),o(Z,47,this);i(this,q0,o(Z,48,this,0)),o(Z,51,this);i(this,j0,o(Z,52,this,!0)),o(Z,55,this);i(this,vo,!0);i(this,Ys,0);i(this,Xs);i(this,Ni);i(this,Bi);i(this,Di,0);i(this,Vi,0);i(this,qi,()=>{let t=e(this,z,Do);if(!t)return;let r=t.scrollHeight>t.clientHeight,n=t.scrollWidth>t.clientWidth;p(this,z,r,$2),p(this,z,n,S2),r&&p(this,z,t.clientHeight/t.scrollHeight*100,T2),n&&p(this,z,t.clientWidth/t.scrollWidth*100,R2),e(this,$a).call(this,t)});i(this,$a,t=>{if(e(this,z,yp)){let r=t.scrollHeight-t.clientHeight;p(this,z,r>0?t.scrollTop/r*(100-e(this,z,X0)):0,A2)}if(e(this,z,xp)){let r=t.scrollWidth-t.clientWidth;p(this,z,r>0?t.scrollLeft/r*(100-e(this,z,Q0)):0,L2)}});i(this,Ep,()=>{let t=e(this,z,Do);if(!t)return;p(this,z,!0,Y0),e(this,$a).call(this,t);let r=e(this,vo),n=t.scrollTop<e(this,Ys);p(this,z,t.scrollTop<=0,O2),p(this,vo,t.scrollTop+t.clientHeight>=t.scrollHeight-e(Vr,kp)),n&&r&&!e(this,vo)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!r&&e(this,vo)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),p(this,Ys,t.scrollTop),clearTimeout(e(this,Xs)),p(this,Xs,setTimeout(()=>{p(this,z,!1,Y0)},1e3))});i(this,Ta,()=>{p(this,z,!0,G0),e(this,qi).call(this)});i(this,Ra,()=>{p(this,z,!1,G0)});i(this,Ia,(t,r)=>{r.preventDefault(),r.stopPropagation();let n=e(this,z,Do);if(n)if(t==="vertical"){let d=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!d)return;let u=d.getBoundingClientRect(),v=(r.clientY-u.top)/u.height;n.scrollTop=v*(n.scrollHeight-n.clientHeight)}else{let d=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!d)return;let u=d.getBoundingClientRect(),v=(r.clientX-u.left)/u.width;n.scrollLeft=v*(n.scrollWidth-n.clientWidth)}});i(this,Aa,(t,r)=>{r.preventDefault(),r.stopPropagation();let n=e(this,z,Do);n&&(p(this,Bi,t),t==="vertical"?(p(this,Di,r.clientY),p(this,Vi,n.scrollTop)):(p(this,Di,r.clientX),p(this,Vi,n.scrollLeft)),document.addEventListener("pointermove",e(this,_a)),document.addEventListener("pointerup",e(this,La)))});i(this,_a,t=>{let r=e(this,z,Do);if(!(!r||!e(this,Bi)))if(e(this,Bi)==="vertical"){let n=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!n)return;let d=t.clientY-e(this,Di),u=n.clientHeight,v=r.scrollHeight-r.clientHeight;r.scrollTop=e(this,Vi)+d/u*v}else{let n=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!n)return;let d=t.clientX-e(this,Di),u=n.clientWidth,v=r.scrollWidth-r.clientWidth;r.scrollLeft=e(this,Vi)+d/u*v}});i(this,La,()=>{p(this,Bi,void 0),document.removeEventListener("pointermove",e(this,_a)),document.removeEventListener("pointerup",e(this,La))})}willUpdate(t){t.has("maxHeight")&&(this.maxHeight?this.style.setProperty("--scroll-area-max-height",this.maxHeight):this.style.removeProperty("--scroll-area-max-height"))}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerenter",e(this,Ta)),this.addEventListener("pointerleave",e(this,Ra))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",e(this,Ta)),this.removeEventListener("pointerleave",e(this,Ra)),e(this,Ni)?.disconnect(),clearTimeout(e(this,Xs))}firstUpdated(){let t=e(this,z,Do);if(!t)return;p(this,Ni,new ResizeObserver(()=>e(this,qi).call(this))),e(this,Ni).observe(t);let r=t.querySelector("slot");if(r){let n=()=>{for(let d of r.assignedElements())e(this,Ni).observe(d)};r.addEventListener("slotchange",()=>{n(),requestAnimationFrame(()=>e(this,qi).call(this))}),n()}e(this,qi).call(this)}async scrollToBottom(){await this.updateComplete;let t=e(this,z,Do);t&&(t.scrollTop=t.scrollHeight,p(this,vo,!0),p(this,Ys,t.scrollTop))}get isAtTop(){return e(this,z,J0)}get isAtBottom(){return e(this,vo)}render(){return f`
|
|
6471
6503
|
<div
|
|
6472
6504
|
class="ScrollArea"
|
|
6473
6505
|
part="root"
|
|
@@ -6475,54 +6507,50 @@ p, li, blockquote, dt, dd {
|
|
|
6475
6507
|
?data-has-overflow-y="${e(this,z,yp)}"
|
|
6476
6508
|
?data-scrolling="${e(this,z,wp)}"
|
|
6477
6509
|
>
|
|
6478
|
-
${this
|
|
6479
|
-
class="ScrollFade"
|
|
6480
|
-
?data-scrolled="${!e(this,z,J0)}"
|
|
6481
|
-
></div>`:A}
|
|
6482
|
-
<div class="Viewport" part="viewport" @scroll="${e(this,Ep)}">
|
|
6510
|
+
<div class="Viewport" part="viewport" ?data-scrolled="${!e(this,z,J0)}" @scroll="${e(this,Ep)}">
|
|
6483
6511
|
<slot></slot>
|
|
6484
6512
|
</div>
|
|
6485
|
-
${m(this,z,
|
|
6513
|
+
${m(this,z,M2).call(this)} ${m(this,z,F2).call(this)}
|
|
6486
6514
|
</div>
|
|
6487
|
-
`}};Z=C(
|
|
6515
|
+
`}};Z=C(C2),$0=new WeakMap,T0=new WeakMap,R0=new WeakMap,I0=new WeakMap,z=new WeakSet,_0=new WeakMap,O0=new WeakMap,P0=new WeakMap,F0=new WeakMap,N0=new WeakMap,D0=new WeakMap,q0=new WeakMap,j0=new WeakMap,kp=new WeakMap,vo=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,Ni=new WeakMap,Bi=new WeakMap,Di=new WeakMap,Vi=new WeakMap,Do=function(){return this.shadowRoot?.querySelector(".Viewport")??null},z2=function(){return this.orientation==="vertical"||this.orientation==="both"},P2=function(){return this.orientation==="horizontal"||this.orientation==="both"},qi=new WeakMap,$a=new WeakMap,Ep=new WeakMap,Ta=new WeakMap,Ra=new WeakMap,Ia=new WeakMap,Aa=new WeakMap,_a=new WeakMap,La=new WeakMap,M2=function(){return!e(this,z,z2)||!e(this,z,yp)?I:f`
|
|
6488
6516
|
<div
|
|
6489
6517
|
class="Scrollbar"
|
|
6490
6518
|
part="scrollbar-vertical"
|
|
6491
6519
|
data-orientation="vertical"
|
|
6492
6520
|
?data-hovering="${e(this,z,K0)}"
|
|
6493
6521
|
?data-scrolling="${e(this,z,wp)}"
|
|
6494
|
-
@pointerdown="${t=>e(this,
|
|
6522
|
+
@pointerdown="${t=>e(this,Ia).call(this,"vertical",t)}"
|
|
6495
6523
|
>
|
|
6496
6524
|
<div
|
|
6497
6525
|
class="Thumb"
|
|
6498
6526
|
part="thumb-vertical"
|
|
6499
6527
|
data-orientation="vertical"
|
|
6500
|
-
style="height: ${e(this,z,X0)}%; top: ${e(this,z,
|
|
6501
|
-
@pointerdown="${t=>e(this,
|
|
6528
|
+
style="height: ${e(this,z,X0)}%; top: ${e(this,z,I2)}%; position: absolute;"
|
|
6529
|
+
@pointerdown="${t=>e(this,Aa).call(this,"vertical",t)}"
|
|
6502
6530
|
></div>
|
|
6503
6531
|
</div>
|
|
6504
|
-
`},
|
|
6532
|
+
`},F2=function(){return!e(this,z,P2)||!e(this,z,xp)?I:f`
|
|
6505
6533
|
<div
|
|
6506
6534
|
class="Scrollbar"
|
|
6507
6535
|
part="scrollbar-horizontal"
|
|
6508
6536
|
data-orientation="horizontal"
|
|
6509
6537
|
?data-hovering="${e(this,z,K0)}"
|
|
6510
6538
|
?data-scrolling="${e(this,z,wp)}"
|
|
6511
|
-
@pointerdown="${t=>e(this,
|
|
6539
|
+
@pointerdown="${t=>e(this,Ia).call(this,"horizontal",t)}"
|
|
6512
6540
|
>
|
|
6513
6541
|
<div
|
|
6514
6542
|
class="Thumb"
|
|
6515
6543
|
part="thumb-horizontal"
|
|
6516
6544
|
data-orientation="horizontal"
|
|
6517
|
-
style="width: ${e(this,z,Q0)}%; left: ${e(this,z,
|
|
6518
|
-
@pointerdown="${t=>e(this,
|
|
6545
|
+
style="width: ${e(this,z,Q0)}%; left: ${e(this,z,_2)}%; position: absolute;"
|
|
6546
|
+
@pointerdown="${t=>e(this,Aa).call(this,"horizontal",t)}"
|
|
6519
6547
|
></div>
|
|
6520
6548
|
</div>
|
|
6521
|
-
`},l(Z,4,"orientation",
|
|
6549
|
+
`},l(Z,4,"orientation",E2,Vr,$0),l(Z,4,"fade",k2,Vr,T0),l(Z,4,"maxHeight",w2,Vr,R0),A0=l(Z,20,"#hasOverflowX",y2,z,I0),xp=A0.get,S2=A0.set,L0=l(Z,20,"#hasOverflowY",x2,z,_0),yp=L0.get,$2=L0.set,z0=l(Z,20,"#hovering",b2,z,O0),K0=z0.get,G0=z0.set,M0=l(Z,20,"#scrolling",g2,z,P0),wp=M0.get,Y0=M0.set,H0=l(Z,20,"#thumbHeightPercent",v2,z,F0),X0=H0.get,T2=H0.set,B0=l(Z,20,"#thumbWidthPercent",f2,z,N0),Q0=B0.get,R2=B0.set,V0=l(Z,20,"#thumbTopPercent",m2,z,D0),I2=V0.get,A2=V0.set,U0=l(Z,20,"#thumbLeftPercent",u2,z,q0),_2=U0.get,L2=U0.set,W0=l(Z,20,"#isAtTop",h2,z,j0),J0=W0.get,O2=W0.set,E(Z,Vr),g(Vr,"tagName","dui-scroll-area"),g(Vr,"styles",[x,C5]),i(Vr,kp,1);var Sa=Vr;var S5=L("value-change",{bubbles:!0,composed:!0}),$5=c`
|
|
6522
6550
|
:host {
|
|
6523
6551
|
display: block;
|
|
6524
6552
|
}
|
|
6525
|
-
`,
|
|
6553
|
+
`,T5=c`
|
|
6526
6554
|
.Trigger {
|
|
6527
6555
|
display: flex;
|
|
6528
6556
|
align-items: center;
|
|
@@ -6547,7 +6575,7 @@ p, li, blockquote, dt, dd {
|
|
|
6547
6575
|
.Icon {
|
|
6548
6576
|
flex-shrink: 0;
|
|
6549
6577
|
}
|
|
6550
|
-
`,
|
|
6578
|
+
`,R5=[c`
|
|
6551
6579
|
.Popup {
|
|
6552
6580
|
max-height: 240px;
|
|
6553
6581
|
overflow-y: auto;
|
|
@@ -6586,9 +6614,10 @@ p, li, blockquote, dt, dd {
|
|
|
6586
6614
|
overflow: hidden;
|
|
6587
6615
|
text-overflow: ellipsis;
|
|
6588
6616
|
}
|
|
6589
|
-
`],
|
|
6617
|
+
`],H2,N2,B2,D2,V2,q2,U2,j2,za,Mt,Z0,tw,ew,rw,ow,iw,sw,nw,Ui,Vo,tt,Cp,ji,Ft,aw,W2,K2,Sp,$p,Tp,Rp,Ip,lw,Oa,dw,Ap,ue=class extends(j2=b,U2=[h({attribute:!1})],q2=[h({type:String})],V2=[h({type:String})],D2=[h({type:Boolean,reflect:!0})],B2=[h({type:Boolean,attribute:"align-item-to-trigger",reflect:!0})],N2=[h({type:String})],H2=[k()],j2){constructor(){super();i(this,tt);i(this,za);i(this,Z0,o(Mt,8,this,[])),o(Mt,11,this);i(this,tw,o(Mt,12,this,"")),o(Mt,15,this);i(this,ew,o(Mt,16,this,"Select...")),o(Mt,19,this);i(this,rw,o(Mt,20,this,!1)),o(Mt,23,this);i(this,ow,o(Mt,24,this,!0)),o(Mt,27,this);i(this,iw,o(Mt,28,this,"")),o(Mt,31,this);i(this,sw,o(Mt,32,this,-1)),o(Mt,35,this);i(this,Cp,`select-trigger-${crypto.randomUUID().slice(0,8)}`);i(this,ji,`select-listbox-${crypto.randomUUID().slice(0,8)}`);i(this,Ft,new re(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:R5,alignToInner:()=>{if(!this.alignItemToTrigger)return null;let r=e(this,Ft).renderRoot?.querySelector("[data-selected]");return r?.querySelector(".ItemText")??r??null},alignToInnerReference:()=>this.alignItemToTrigger?this.shadowRoot?.querySelector(".Value")??null:null,onOpen:()=>{p(this,tt,e(this,tt,W2),Vo)},onClose:()=>{p(this,tt,-1,Vo)},renderPopup:t=>f`
|
|
6590
6618
|
<div
|
|
6591
6619
|
class="Popup"
|
|
6620
|
+
?data-align-inner="${this.alignItemToTrigger&&this.value!==""}"
|
|
6592
6621
|
?data-starting-style="${t.isStarting}"
|
|
6593
6622
|
?data-ending-style="${t.isEnding}"
|
|
6594
6623
|
>
|
|
@@ -6599,10 +6628,10 @@ p, li, blockquote, dt, dd {
|
|
|
6599
6628
|
|
|
6600
6629
|
@mousedown="${e(this,Tp)}"
|
|
6601
6630
|
>
|
|
6602
|
-
${hi(this.options,r=>r.value,e(this,
|
|
6631
|
+
${hi(this.options,r=>r.value,e(this,Ap))}
|
|
6603
6632
|
</div>
|
|
6604
6633
|
</div>
|
|
6605
|
-
`}));i(this,Sp,t=>{t.stopPropagation(),!this.disabled&&(e(this,
|
|
6634
|
+
`}));i(this,Sp,t=>{t.stopPropagation(),!this.disabled&&(e(this,Ft).isOpen?e(this,Ft).close():e(this,Ft).open())});i(this,$p,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),e(this,Ft).isOpen){let r=this.options[e(this,tt,Ui)];r&&!r.disabled&&m(this,tt,lw).call(this,r)}else e(this,Ft).open();break}case"ArrowDown":{t.preventDefault(),e(this,Ft).isOpen?p(this,tt,m(this,tt,Oa).call(this,e(this,tt,Ui),1),Vo):e(this,Ft).open();break}case"ArrowUp":{t.preventDefault(),e(this,Ft).isOpen?p(this,tt,m(this,tt,Oa).call(this,e(this,tt,Ui),-1),Vo):e(this,Ft).open();break}case"Home":{e(this,Ft).isOpen&&(t.preventDefault(),p(this,tt,m(this,tt,Oa).call(this,-1,1),Vo));break}case"End":{e(this,Ft).isOpen&&(t.preventDefault(),p(this,tt,m(this,tt,Oa).call(this,this.options.length,-1),Vo));break}case"Escape":{e(this,Ft).isOpen&&(t.preventDefault(),e(this,Ft).close(),m(this,tt,dw).call(this));break}case"Tab":{e(this,Ft).isOpen&&e(this,Ft).close();break}}});i(this,Tp,t=>{t.preventDefault()});i(this,Rp,t=>{t.disabled||m(this,tt,lw).call(this,t)});i(this,Ip,t=>{this.options[t]?.disabled||p(this,tt,t,Vo)});i(this,Ap,(t,r)=>{let n=t.value===this.value,d=r===e(this,tt,Ui);return f`
|
|
6606
6635
|
<div
|
|
6607
6636
|
class="Item"
|
|
6608
6637
|
role="option"
|
|
@@ -6612,14 +6641,14 @@ p, li, blockquote, dt, dd {
|
|
|
6612
6641
|
?data-highlighted="${d}"
|
|
6613
6642
|
?data-disabled="${t.disabled}"
|
|
6614
6643
|
@click="${()=>e(this,Rp).call(this,t)}"
|
|
6615
|
-
@mouseenter="${()=>e(this,
|
|
6644
|
+
@mouseenter="${()=>e(this,Ip).call(this,r)}"
|
|
6616
6645
|
>
|
|
6617
6646
|
<span class="ItemIndicator">
|
|
6618
|
-
${n?f`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:
|
|
6647
|
+
${n?f`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:I}
|
|
6619
6648
|
</span>
|
|
6620
6649
|
<span class="ItemText">${t.label}</span>
|
|
6621
6650
|
</div>
|
|
6622
|
-
`});p(this,za,this.attachInternals())}willUpdate(){e(this,za).setFormValue(this.value)}render(){let t=this.value!==""&&e(this,tt,
|
|
6651
|
+
`});p(this,za,this.attachInternals())}willUpdate(){e(this,za).setFormValue(this.value)}render(){let t=this.value!==""&&e(this,tt,aw)!=null;return f`
|
|
6623
6652
|
<div
|
|
6624
6653
|
class="Trigger"
|
|
6625
6654
|
part="trigger"
|
|
@@ -6627,11 +6656,11 @@ p, li, blockquote, dt, dd {
|
|
|
6627
6656
|
role="combobox"
|
|
6628
6657
|
tabindex="${this.disabled?-1:0}"
|
|
6629
6658
|
aria-haspopup="listbox"
|
|
6630
|
-
aria-expanded="${e(this,
|
|
6659
|
+
aria-expanded="${e(this,Ft).isOpen}"
|
|
6631
6660
|
aria-controls="${e(this,ji)}"
|
|
6632
|
-
aria-activedescendant="${e(this,tt,Ui)>=0?`${e(this,ji)}-option-${e(this,tt,Ui)}`:
|
|
6661
|
+
aria-activedescendant="${e(this,tt,Ui)>=0?`${e(this,ji)}-option-${e(this,tt,Ui)}`:I}"
|
|
6633
6662
|
?data-disabled="${this.disabled}"
|
|
6634
|
-
?data-open="${e(this,
|
|
6663
|
+
?data-open="${e(this,Ft).isOpen}"
|
|
6635
6664
|
@click="${e(this,Sp)}"
|
|
6636
6665
|
@keydown="${e(this,$p)}"
|
|
6637
6666
|
>
|
|
@@ -6640,14 +6669,14 @@ p, li, blockquote, dt, dd {
|
|
|
6640
6669
|
part="value"
|
|
6641
6670
|
?data-placeholder="${!t}"
|
|
6642
6671
|
>
|
|
6643
|
-
${t?e(this,tt,
|
|
6672
|
+
${t?e(this,tt,K2):this.placeholder}
|
|
6644
6673
|
</span>
|
|
6645
6674
|
<span class="Icon">
|
|
6646
6675
|
<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>
|
|
6647
6676
|
</span>
|
|
6648
6677
|
</div>
|
|
6649
6678
|
|
|
6650
|
-
`}};
|
|
6679
|
+
`}};Mt=C(j2),za=new WeakMap,Z0=new WeakMap,tw=new WeakMap,ew=new WeakMap,rw=new WeakMap,ow=new WeakMap,iw=new WeakMap,sw=new WeakMap,tt=new WeakSet,Cp=new WeakMap,ji=new WeakMap,Ft=new WeakMap,aw=function(){return this.options.find(t=>t.value===this.value)},W2=function(){return this.options.findIndex(t=>t.value===this.value)},K2=function(){return e(this,tt,aw)?.label??""},Sp=new WeakMap,$p=new WeakMap,Tp=new WeakMap,Rp=new WeakMap,Ip=new WeakMap,lw=function(t){this.value=t.value,this.dispatchEvent(S5({value:t.value,option:t})),e(this,Ft).close(),m(this,tt,dw).call(this)},Oa=function(t,r){let n=this.options.length,d=t+r;for(;d>=0&&d<n;){if(!this.options[d].disabled)return d;d+=r}return t},dw=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},Ap=new WeakMap,l(Mt,4,"options",U2,ue,Z0),l(Mt,4,"value",q2,ue,tw),l(Mt,4,"placeholder",V2,ue,ew),l(Mt,4,"disabled",D2,ue,rw),l(Mt,4,"alignItemToTrigger",B2,ue,ow),l(Mt,4,"name",N2,ue,iw),nw=l(Mt,20,"#highlightedIndex",H2,tt,sw),Ui=nw.get,Vo=nw.set,E(Mt,ue),g(ue,"tagName","dui-select"),g(ue,"formAssociated",!0),g(ue,"styles",[x,$5,T5]);var I5=c`
|
|
6651
6680
|
:host {
|
|
6652
6681
|
display: block;
|
|
6653
6682
|
}
|
|
@@ -6655,6 +6684,7 @@ p, li, blockquote, dt, dd {
|
|
|
6655
6684
|
:host([orientation="vertical"]) {
|
|
6656
6685
|
display: inline-block;
|
|
6657
6686
|
align-self: stretch;
|
|
6687
|
+
height: 100%;
|
|
6658
6688
|
}
|
|
6659
6689
|
|
|
6660
6690
|
[part="root"] {
|
|
@@ -6662,17 +6692,17 @@ p, li, blockquote, dt, dd {
|
|
|
6662
6692
|
margin: 0;
|
|
6663
6693
|
padding: 0;
|
|
6664
6694
|
}
|
|
6665
|
-
`,
|
|
6695
|
+
`,G2,Y2,_p,cw,go=class extends(Y2=b,G2=[h({reflect:!0})],Y2){constructor(){super(...arguments);i(this,cw,o(_p,8,this,"horizontal")),o(_p,11,this)}render(){return f`
|
|
6666
6696
|
<div
|
|
6667
6697
|
part="root"
|
|
6668
6698
|
role="separator"
|
|
6669
6699
|
aria-orientation="${this.orientation}"
|
|
6670
6700
|
></div>
|
|
6671
|
-
`}};_p=C(
|
|
6701
|
+
`}};_p=C(Y2),cw=new WeakMap,l(_p,4,"orientation",G2,go,cw),E(_p,go),g(go,"tagName","dui-separator"),g(go,"styles",[x,I5]);var bw=L("dui-action",{bubbles:!0,composed:!0}),A5=c`
|
|
6672
6702
|
:host {
|
|
6673
6703
|
display: inline-block;
|
|
6674
6704
|
}
|
|
6675
|
-
|
|
6705
|
+
`,_5=c`
|
|
6676
6706
|
.Root {
|
|
6677
6707
|
display: inline-flex;
|
|
6678
6708
|
align-items: stretch;
|
|
@@ -6712,7 +6742,7 @@ p, li, blockquote, dt, dd {
|
|
|
6712
6742
|
justify-content: center;
|
|
6713
6743
|
flex-shrink: 0;
|
|
6714
6744
|
}
|
|
6715
|
-
`,
|
|
6745
|
+
`,L5=[c`
|
|
6716
6746
|
.Popup {
|
|
6717
6747
|
max-height: 240px;
|
|
6718
6748
|
overflow-y: auto;
|
|
@@ -6727,9 +6757,10 @@ p, li, blockquote, dt, dd {
|
|
|
6727
6757
|
.Popup[data-ending-style] {
|
|
6728
6758
|
opacity: 0;
|
|
6729
6759
|
}
|
|
6730
|
-
`],
|
|
6760
|
+
`],X2,Q2,J2,Z2,t_,e_,r_,Kt,pw,hw,uw,mw,fw,vw,gw,Wi,qo,Ht,Pa,$t,xw,Lp,Op,zp,Pp,Mp,Fp,o_,He=class extends(r_=b,e_=[h({reflect:!0})],t_=[h({reflect:!0})],Z2=[h({reflect:!0})],J2=[h({attribute:"popup-min-width"})],Q2=[h({type:Boolean,reflect:!0})],X2=[k()],r_){constructor(){super(...arguments);i(this,Ht);i(this,pw,o(Kt,8,this,"")),o(Kt,11,this);i(this,hw,o(Kt,12,this,"")),o(Kt,15,this);i(this,uw,o(Kt,16,this,"")),o(Kt,19,this);i(this,mw,o(Kt,20,this,"var(--space-28)")),o(Kt,23,this);i(this,fw,o(Kt,24,this,!1)),o(Kt,27,this);i(this,vw,o(Kt,28,this,-1)),o(Kt,31,this);i(this,Pa,`split-menu-${crypto.randomUUID().slice(0,8)}`);i(this,$t,new re(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:L5,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{p(this,Ht,-1,qo)},onClose:()=>{p(this,Ht,-1,qo)},renderPopup:t=>f`
|
|
6731
6761
|
<div
|
|
6732
6762
|
class="Popup"
|
|
6763
|
+
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
6733
6764
|
?data-starting-style="${t.isStarting}"
|
|
6734
6765
|
?data-ending-style="${t.isEnding}"
|
|
6735
6766
|
>
|
|
@@ -6741,7 +6772,7 @@ p, li, blockquote, dt, dd {
|
|
|
6741
6772
|
@mousemove="${e(this,Fp)}"
|
|
6742
6773
|
></div>
|
|
6743
6774
|
</div>
|
|
6744
|
-
`}));i(this,Lp,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(
|
|
6775
|
+
`}));i(this,Lp,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(bw({}))});i(this,Op,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(bw({})))});i(this,zp,t=>{t.stopPropagation(),!this.disabled&&(e(this,$t).isOpen?e(this,$t).close():e(this,$t).open())});i(this,Pp,t=>{if(this.disabled)return;let r=e(this,Ht,xw);switch(t.key){case"Enter":case" ":{if(e(this,$t).isOpen&&e(this,Ht,Wi)>=0){t.preventDefault();let n=r[e(this,Ht,Wi)];n&&!n.disabled&&(n.click(),e(this,$t).close())}else e(this,$t).isOpen||(t.preventDefault(),e(this,$t).open());break}case"ArrowDown":{if(t.preventDefault(),!e(this,$t).isOpen)e(this,$t).open();else{let n=e(this,Ht,Wi)+1;for(;n<r.length&&r[n]?.disabled;)n++;n<r.length&&p(this,Ht,n,qo)}break}case"ArrowUp":{if(t.preventDefault(),!e(this,$t).isOpen)e(this,$t).open();else{let n=e(this,Ht,Wi)-1;for(;n>=0&&r[n]?.disabled;)n--;n>=0&&p(this,Ht,n,qo)}break}case"Home":{if(e(this,$t).isOpen){t.preventDefault();let n=r.findIndex(d=>!d.disabled);n>=0&&p(this,Ht,n,qo)}break}case"End":{if(e(this,$t).isOpen){t.preventDefault();for(let n=r.length-1;n>=0;n--)if(!r[n]?.disabled){p(this,Ht,n,qo);break}}break}case"Escape":{e(this,$t).isOpen&&(t.preventDefault(),e(this,$t).close(),m(this,Ht,o_).call(this));break}case"Tab":{e(this,$t).isOpen&&e(this,$t).close();break}}});i(this,Mp,t=>{let r=t.composedPath().find(n=>n instanceof HTMLElement&&n.matches(Pe.tagName));r&&!r.disabled&&e(this,$t).close()});i(this,Fp,()=>{e(this,Ht,Wi)>=0&&p(this,Ht,-1,qo)})}updated(){let t=e(this,Ht,xw);for(let r=0;r<t.length;r++)r===e(this,Ht,Wi)?t[r].setAttribute("data-highlighted",""):t[r].removeAttribute("data-highlighted")}render(){return f`
|
|
6745
6776
|
<div class="Root" part="root">
|
|
6746
6777
|
<button
|
|
6747
6778
|
class="Action"
|
|
@@ -6764,7 +6795,7 @@ p, li, blockquote, dt, dd {
|
|
|
6764
6795
|
aria-haspopup="menu"
|
|
6765
6796
|
aria-expanded="${e(this,$t).isOpen}"
|
|
6766
6797
|
aria-controls="${e(this,Pa)}"
|
|
6767
|
-
?data-open="${e(this,$t).isOpen||
|
|
6798
|
+
?data-open="${e(this,$t).isOpen||I}"
|
|
6768
6799
|
@click="${e(this,zp)}"
|
|
6769
6800
|
@keydown="${e(this,Pp)}"
|
|
6770
6801
|
>
|
|
@@ -6777,13 +6808,13 @@ p, li, blockquote, dt, dd {
|
|
|
6777
6808
|
</slot>
|
|
6778
6809
|
</button>
|
|
6779
6810
|
</div>
|
|
6780
|
-
`}};
|
|
6811
|
+
`}};Kt=C(r_),pw=new WeakMap,hw=new WeakMap,uw=new WeakMap,mw=new WeakMap,fw=new WeakMap,vw=new WeakMap,Ht=new WeakSet,Pa=new WeakMap,$t=new WeakMap,xw=function(){return[...(e(this,$t).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},Lp=new WeakMap,Op=new WeakMap,zp=new WeakMap,Pp=new WeakMap,Mp=new WeakMap,Fp=new WeakMap,o_=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},l(Kt,4,"variant",e_,He,pw),l(Kt,4,"appearance",t_,He,hw),l(Kt,4,"size",Z2,He,uw),l(Kt,4,"popupMinWidth",J2,He,mw),l(Kt,4,"disabled",Q2,He,fw),gw=l(Kt,20,"#highlightedIndex",X2,Ht,vw),Wi=gw.get,qo=gw.set,E(Kt,He),g(He,"tagName","dui-split-button"),g(He,"styles",[x,A5,_5]);var qr=Symbol("dui-sidebar");var m_=L("open-change",{bubbles:!0,composed:!0}),O5=c`
|
|
6781
6812
|
:host {
|
|
6782
6813
|
display: flex;
|
|
6783
6814
|
width: 100%;
|
|
6784
6815
|
height: 100%;
|
|
6785
6816
|
}
|
|
6786
|
-
`,
|
|
6817
|
+
`,i_,s_,n_,a_,l_,d_,c_,p_,h_,u_,yt,yw,ww,kw,Ew,Cw,Sw,$w,f_,Lw,ht,Tw,Rw,Ow,Hp,Iw,Aw,Ma,zw,Uo,Ki,Gi,Np,Fa,Ha,Dp,Vp,_w,Bp,ke=class extends(u_=b,h_=[h({type:Boolean})],p_=[h({type:Boolean,attribute:"default-open"})],c_=[h({reflect:!0})],d_=[h({reflect:!0})],l_=[h({reflect:!0})],a_=[k()],n_=[k()],s_=[k()],i_=[kt({context:qr}),k()],u_){constructor(){super(...arguments);i(this,ht);i(this,yw,o(yt,8,this)),o(yt,11,this);i(this,ww,o(yt,12,this,!0)),o(yt,15,this);i(this,kw,o(yt,16,this,"left")),o(yt,19,this);i(this,Ew,o(yt,20,this,"")),o(yt,23,this);i(this,Cw,o(yt,24,this,"offcanvas")),o(yt,27,this);i(this,Sw,o(yt,28,this,!0)),o(yt,31,this);i(this,Tw,o(yt,32,this,!1)),o(yt,35,this);i(this,Iw,o(yt,36,this,!1)),o(yt,39,this);i(this,Uo);i(this,Ki);i(this,Gi);i(this,Fa,t=>{e(this,ht,Ma)?p(this,ht,t,Hp):(this.open===void 0&&p(this,ht,t,Lw),this.dispatchEvent(m_({open:t})))});i(this,Ha,()=>{e(this,ht,Ma)?p(this,ht,!e(this,ht,Ow),Hp):e(this,Fa).call(this,!e(this,ht,Np))});i(this,Dp,t=>{p(this,ht,!t.matches,zw),e(this,ht,Ma)||p(this,ht,!1,Hp)});i(this,Vp,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e(this,Ha).call(this))});i(this,_w,o(yt,40,this,m(this,ht,Bp).call(this))),o(yt,43,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&p(this,ht,this.defaultOpen,Lw),p(this,Uo,matchMedia("(min-width: 768px)")),p(this,ht,!e(this,Uo).matches,zw),p(this,Ki,e(this,Dp).bind(this)),e(this,Uo).addEventListener("change",e(this,Ki)),p(this,Gi,e(this,Vp).bind(this)),document.addEventListener("keydown",e(this,Gi)),this._ctx=m(this,ht,Bp).call(this)}disconnectedCallback(){super.disconnectedCallback(),e(this,Uo)&&e(this,Ki)&&e(this,Uo).removeEventListener("change",e(this,Ki)),e(this,Gi)&&document.removeEventListener("keydown",e(this,Gi))}willUpdate(){this._ctx=m(this,ht,Bp).call(this)}render(){return f`<slot></slot>`}};yt=C(u_),yw=new WeakMap,ww=new WeakMap,kw=new WeakMap,Ew=new WeakMap,Cw=new WeakMap,Sw=new WeakMap,ht=new WeakSet,Tw=new WeakMap,Iw=new WeakMap,Uo=new WeakMap,Ki=new WeakMap,Gi=new WeakMap,Np=function(){return this.open??e(this,ht,f_)},Fa=new WeakMap,Ha=new WeakMap,Dp=new WeakMap,Vp=new WeakMap,_w=new WeakMap,Bp=function(){return{state:e(this,ht,Np)?"expanded":"collapsed",open:e(this,ht,Np),openMobile:e(this,ht,Ow),isMobile:e(this,ht,Ma),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:e(this,Fa),toggleSidebar:e(this,Ha)}},l(yt,4,"open",h_,ke,yw),l(yt,4,"defaultOpen",p_,ke,ww),l(yt,4,"side",c_,ke,kw),l(yt,4,"variant",d_,ke,Ew),l(yt,4,"collapsible",l_,ke,Cw),$w=l(yt,20,"#internalOpen",a_,ht,Sw),f_=$w.get,Lw=$w.set,Rw=l(yt,20,"#openMobile",n_,ht,Tw),Ow=Rw.get,Hp=Rw.set,Aw=l(yt,20,"#isMobile",s_,ht,Iw),Ma=Aw.get,zw=Aw.set,l(yt,4,"_ctx",i_,ke,_w),E(yt,ke),g(ke,"tagName","dui-sidebar-provider"),g(ke,"styles",[x,O5]);var z5=c`
|
|
6787
6818
|
:host {
|
|
6788
6819
|
display: block;
|
|
6789
6820
|
flex-shrink: 0;
|
|
@@ -6869,11 +6900,11 @@ p, li, blockquote, dt, dd {
|
|
|
6869
6900
|
.MobilePanel[data-ending-style] {
|
|
6870
6901
|
transform: translateX(var(--mobile-end-x));
|
|
6871
6902
|
}
|
|
6872
|
-
`,
|
|
6903
|
+
`,v_,g_,b_,x_,Ur,Pw,Mw,qp,Dw,mt,Fw,Hw,Vw,qw,Nw,Bw,Up,Uw,Yi,y_,w_,jw,jp,Wp,jo=class extends(x_=b,b_=[k()],g_=[k()],v_=[k()],x_){constructor(){super(...arguments);i(this,mt);i(this,Pw,o(Ur,8,this,!1)),o(Ur,11,this);i(this,Fw,o(Ur,12,this,!1)),o(Ur,15,this);i(this,Nw,o(Ur,16,this,!1)),o(Ur,19,this);i(this,Yi,new j(this,{context:qr,subscribe:!0}));i(this,jp,()=>{e(this,Yi).value?.setOpen(!1)});i(this,Wp,t=>{t.key==="Escape"&&(t.preventDefault(),e(this,Yi).value?.setOpen(!1))})}willUpdate(){let t=e(this,Yi).value;t&&(this.dataset.state=t.state,this.dataset.side=t.side,this.dataset.variant=t.variant,this.dataset.collapsible=t.collapsible,t.isMobile&&(t.openMobile&&!e(this,mt,qp)?m(this,mt,y_).call(this):!t.openMobile&&e(this,mt,qp)&&!e(this,mt,Up)&&m(this,mt,w_).call(this)))}render(){let t=e(this,Yi).value;if(!t)return f``;let n=t.side==="left"?"-100%":"100%";return t.isMobile?e(this,mt,qp)?f`
|
|
6873
6904
|
<div
|
|
6874
6905
|
class="Backdrop"
|
|
6875
6906
|
part="backdrop"
|
|
6876
|
-
?data-starting-style=${e(this,mt,
|
|
6907
|
+
?data-starting-style=${e(this,mt,Vw)}
|
|
6877
6908
|
?data-ending-style=${e(this,mt,Up)}
|
|
6878
6909
|
@click=${e(this,jp)}
|
|
6879
6910
|
></div>
|
|
@@ -6883,7 +6914,7 @@ p, li, blockquote, dt, dd {
|
|
|
6883
6914
|
role="dialog"
|
|
6884
6915
|
tabindex="-1"
|
|
6885
6916
|
style="--mobile-start-x: ${n}; --mobile-end-x: ${n}"
|
|
6886
|
-
?data-starting-style=${e(this,mt,
|
|
6917
|
+
?data-starting-style=${e(this,mt,Vw)}
|
|
6887
6918
|
?data-ending-style=${e(this,mt,Up)}
|
|
6888
6919
|
@keydown=${e(this,Wp)}
|
|
6889
6920
|
>
|
|
@@ -6901,11 +6932,11 @@ p, li, blockquote, dt, dd {
|
|
|
6901
6932
|
<slot></slot>
|
|
6902
6933
|
</div>
|
|
6903
6934
|
</div>
|
|
6904
|
-
`}};Ur=C(
|
|
6935
|
+
`}};Ur=C(x_),Pw=new WeakMap,mt=new WeakSet,Fw=new WeakMap,Nw=new WeakMap,Yi=new WeakMap,y_=async function(){p(this,mt,!0,Dw),p(this,mt,!0,qw),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,mt,!1,qw)},w_=function(){p(this,mt,!0,Uw);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){m(this,mt,jw).call(this);return}let r=!1,n=()=>{r||(r=!0,t.removeEventListener("transitionend",d),clearTimeout(u),m(this,mt,jw).call(this))},d=()=>{n()};t.addEventListener("transitionend",d);let u=setTimeout(n,250)},jw=function(){p(this,mt,!1,Uw),p(this,mt,!1,Dw)},jp=new WeakMap,Wp=new WeakMap,Mw=l(Ur,20,"#mounted",b_,mt,Pw),qp=Mw.get,Dw=Mw.set,Hw=l(Ur,20,"#startingStyle",g_,mt,Fw),Vw=Hw.get,qw=Hw.set,Bw=l(Ur,20,"#endingStyle",v_,mt,Nw),Up=Bw.get,Uw=Bw.set,E(Ur,jo),g(jo,"tagName","dui-sidebar"),g(jo,"styles",[x,z5]);var P5=c`
|
|
6905
6936
|
:host {
|
|
6906
6937
|
display: inline-block;
|
|
6907
6938
|
}
|
|
6908
|
-
`,
|
|
6939
|
+
`,M5=f`<svg
|
|
6909
6940
|
viewBox="0 0 24 24"
|
|
6910
6941
|
fill="none"
|
|
6911
6942
|
stroke="currentColor"
|
|
@@ -6915,13 +6946,13 @@ p, li, blockquote, dt, dd {
|
|
|
6915
6946
|
>
|
|
6916
6947
|
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
6917
6948
|
<path d="M9 3v18" />
|
|
6918
|
-
</svg>`,
|
|
6949
|
+
</svg>`,Na=class extends b{static tagName="dui-sidebar-trigger";static styles=[x,P5];#t=new j(this,{context:qr,subscribe:!0});#e=()=>{this.#t.value?.toggleSidebar()};render(){return f`
|
|
6919
6950
|
<dui-button appearance="ghost" size="sm" @click=${this.#e}>
|
|
6920
6951
|
<slot>
|
|
6921
|
-
<dui-icon>${
|
|
6952
|
+
<dui-icon>${M5}</dui-icon>
|
|
6922
6953
|
</slot>
|
|
6923
6954
|
</dui-button>
|
|
6924
|
-
`}};var
|
|
6955
|
+
`}};var F5=c`
|
|
6925
6956
|
:host {
|
|
6926
6957
|
display: flex;
|
|
6927
6958
|
flex-direction: column;
|
|
@@ -6929,31 +6960,31 @@ p, li, blockquote, dt, dd {
|
|
|
6929
6960
|
min-height: 0;
|
|
6930
6961
|
overflow: hidden;
|
|
6931
6962
|
}
|
|
6932
|
-
`,Ba=class extends b{static tagName="dui-sidebar-content";static styles=[x,
|
|
6963
|
+
`,Ba=class extends b{static tagName="dui-sidebar-content";static styles=[x,F5];render(){return f`
|
|
6933
6964
|
<dui-scroll-area>
|
|
6934
6965
|
<slot></slot>
|
|
6935
6966
|
</dui-scroll-area>
|
|
6936
|
-
`}};var
|
|
6967
|
+
`}};var H5=c`
|
|
6937
6968
|
:host {
|
|
6938
6969
|
display: flex;
|
|
6939
6970
|
flex-direction: column;
|
|
6940
6971
|
}
|
|
6941
|
-
`,Da=class extends b{static tagName="dui-sidebar-header";static styles=[x,
|
|
6972
|
+
`,Da=class extends b{static tagName="dui-sidebar-header";static styles=[x,H5];render(){return f`<slot></slot>`}};var N5=c`
|
|
6942
6973
|
:host {
|
|
6943
6974
|
display: flex;
|
|
6944
6975
|
flex-direction: column;
|
|
6945
6976
|
}
|
|
6946
|
-
`,Va=class extends b{static tagName="dui-sidebar-footer";static styles=[x,
|
|
6977
|
+
`,Va=class extends b{static tagName="dui-sidebar-footer";static styles=[x,N5];render(){return f`<slot></slot>`}};var B5=c`
|
|
6947
6978
|
:host {
|
|
6948
6979
|
display: flex;
|
|
6949
6980
|
flex-direction: column;
|
|
6950
6981
|
position: relative;
|
|
6951
6982
|
overflow: hidden;
|
|
6952
6983
|
}
|
|
6953
|
-
`,qa=class extends b{static tagName="dui-sidebar-group";static styles=[x,
|
|
6984
|
+
`,qa=class extends b{static tagName="dui-sidebar-group";static styles=[x,B5];render(){return f`
|
|
6954
6985
|
<slot name="label"></slot>
|
|
6955
6986
|
<slot></slot>
|
|
6956
|
-
`}};var
|
|
6987
|
+
`}};var D5=c`
|
|
6957
6988
|
:host {
|
|
6958
6989
|
display: flex;
|
|
6959
6990
|
align-items: center;
|
|
@@ -6965,7 +6996,7 @@ p, li, blockquote, dt, dd {
|
|
|
6965
6996
|
:host([data-icon-collapsed]) {
|
|
6966
6997
|
opacity: 0;
|
|
6967
6998
|
}
|
|
6968
|
-
`,Ua=class extends b{static tagName="dui-sidebar-group-label";static styles=[x,
|
|
6999
|
+
`,Ua=class extends b{static tagName="dui-sidebar-group-label";static styles=[x,D5];#t=new j(this,{context:qr,subscribe:!0});get#e(){let s=this.#t.value;return s?.collapsible==="icon"&&s?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return f`<slot></slot>`}};var V5=c`
|
|
6969
7000
|
.Menu {
|
|
6970
7001
|
display: flex;
|
|
6971
7002
|
flex-direction: column;
|
|
@@ -6973,15 +7004,15 @@ p, li, blockquote, dt, dd {
|
|
|
6973
7004
|
margin: 0;
|
|
6974
7005
|
padding: 0;
|
|
6975
7006
|
}
|
|
6976
|
-
`,ja=class extends b{static tagName="dui-sidebar-menu";static styles=[x,
|
|
7007
|
+
`,ja=class extends b{static tagName="dui-sidebar-menu";static styles=[x,V5];render(){return f`
|
|
6977
7008
|
<ul class="Menu" role="list">
|
|
6978
7009
|
<slot></slot>
|
|
6979
7010
|
</ul>
|
|
6980
|
-
`}};var
|
|
7011
|
+
`}};var q5=c`
|
|
6981
7012
|
:host {
|
|
6982
7013
|
display: list-item;
|
|
6983
7014
|
}
|
|
6984
|
-
`,Wa=class extends b{static tagName="dui-sidebar-menu-item";static styles=[x,
|
|
7015
|
+
`,Wa=class extends b{static tagName="dui-sidebar-menu-item";static styles=[x,q5];render(){return f`<slot></slot>`}};var U5=c`
|
|
6985
7016
|
:host {
|
|
6986
7017
|
display: block;
|
|
6987
7018
|
}
|
|
@@ -7039,16 +7070,16 @@ p, li, blockquote, dt, dd {
|
|
|
7039
7070
|
:host([disabled]) .Button {
|
|
7040
7071
|
pointer-events: none;
|
|
7041
7072
|
}
|
|
7042
|
-
`,
|
|
7073
|
+
`,k_,E_,C_,S_,$_,Ne,Ww,Kw,Gw,Yw,Kp,Je,Xw,Gp,T_,R_,Qw,Qe=class extends($_=b,S_=[h({type:Boolean,reflect:!0})],C_=[h({type:Boolean,reflect:!0})],E_=[h()],k_=[h()],$_){constructor(){super(...arguments);i(this,Je);i(this,Ww,o(Ne,8,this,!1)),o(Ne,11,this);i(this,Kw,o(Ne,12,this,!1)),o(Ne,15,this);i(this,Gw,o(Ne,16,this,"")),o(Ne,19,this);i(this,Yw,o(Ne,20,this)),o(Ne,23,this);i(this,Kp,new j(this,{context:qr,subscribe:!0}));i(this,Gp,t=>{if(this.disabled){t.preventDefault();return}this.href&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("spa-navigate",{detail:{href:this.href},bubbles:!0,composed:!0})))})}render(){return e(this,Je,Xw)&&this.tooltip?f`
|
|
7043
7074
|
<dui-tooltip>
|
|
7044
7075
|
<dui-tooltip-trigger>
|
|
7045
|
-
${m(this,Je,
|
|
7076
|
+
${m(this,Je,Qw).call(this)}
|
|
7046
7077
|
</dui-tooltip-trigger>
|
|
7047
7078
|
<dui-tooltip-popup side="right">
|
|
7048
7079
|
${this.tooltip}
|
|
7049
7080
|
</dui-tooltip-popup>
|
|
7050
7081
|
</dui-tooltip>
|
|
7051
|
-
`:m(this,Je,
|
|
7082
|
+
`:m(this,Je,Qw).call(this)}};Ne=C($_),Ww=new WeakMap,Kw=new WeakMap,Gw=new WeakMap,Yw=new WeakMap,Kp=new WeakMap,Je=new WeakSet,Xw=function(){let t=e(this,Kp).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},Gp=new WeakMap,T_=function(){return f`
|
|
7052
7083
|
<button
|
|
7053
7084
|
class="Button"
|
|
7054
7085
|
?disabled=${this.disabled}
|
|
@@ -7058,11 +7089,11 @@ p, li, blockquote, dt, dd {
|
|
|
7058
7089
|
<span class="Label"><slot></slot></span>
|
|
7059
7090
|
<span class="Suffix"><slot name="suffix"></slot></span>
|
|
7060
7091
|
</button>
|
|
7061
|
-
`},
|
|
7092
|
+
`},R_=function(){return f`
|
|
7062
7093
|
<a
|
|
7063
7094
|
class="Button"
|
|
7064
|
-
href=${this.href??
|
|
7065
|
-
aria-disabled=${this.disabled||
|
|
7095
|
+
href=${this.href??I}
|
|
7096
|
+
aria-disabled=${this.disabled||I}
|
|
7066
7097
|
?data-active=${this.active}
|
|
7067
7098
|
@click=${e(this,Gp)}
|
|
7068
7099
|
>
|
|
@@ -7070,15 +7101,15 @@ p, li, blockquote, dt, dd {
|
|
|
7070
7101
|
<span class="Label"><slot></slot></span>
|
|
7071
7102
|
<span class="Suffix"><slot name="suffix"></slot></span>
|
|
7072
7103
|
</a>
|
|
7073
|
-
`},
|
|
7104
|
+
`},Qw=function(){let t=e(this,Je,Xw);return f`
|
|
7074
7105
|
<div
|
|
7075
7106
|
class="Row"
|
|
7076
7107
|
?data-icon-collapsed=${t}
|
|
7077
7108
|
?data-active=${this.active}
|
|
7078
7109
|
>
|
|
7079
|
-
${this.href!==void 0?m(this,Je,
|
|
7110
|
+
${this.href!==void 0?m(this,Je,R_).call(this):m(this,Je,T_).call(this)}
|
|
7080
7111
|
</div>
|
|
7081
|
-
`},l(Ne,4,"active",
|
|
7112
|
+
`},l(Ne,4,"active",S_,Qe,Ww),l(Ne,4,"disabled",C_,Qe,Kw),l(Ne,4,"tooltip",E_,Qe,Gw),l(Ne,4,"href",k_,Qe,Yw),E(Ne,Qe),g(Qe,"tagName","dui-sidebar-menu-button"),g(Qe,"styles",[x,U5]);var j5=c`
|
|
7082
7113
|
:host {
|
|
7083
7114
|
display: block;
|
|
7084
7115
|
}
|
|
@@ -7086,7 +7117,7 @@ p, li, blockquote, dt, dd {
|
|
|
7086
7117
|
.Separator {
|
|
7087
7118
|
/* Structural only — height and color from theme */
|
|
7088
7119
|
}
|
|
7089
|
-
`,Ka=class extends b{static tagName="dui-sidebar-separator";static styles=[x,
|
|
7120
|
+
`,Ka=class extends b{static tagName="dui-sidebar-separator";static styles=[x,j5];render(){return f`<div class="Separator" role="separator"></div>`}};var W5=c`
|
|
7090
7121
|
:host {
|
|
7091
7122
|
display: flex;
|
|
7092
7123
|
flex-direction: column;
|
|
@@ -7096,7 +7127,7 @@ p, li, blockquote, dt, dd {
|
|
|
7096
7127
|
overflow: hidden;
|
|
7097
7128
|
container-type: size;
|
|
7098
7129
|
}
|
|
7099
|
-
`,Ga=class extends b{static tagName="dui-sidebar-inset";static styles=[x,
|
|
7130
|
+
`,Ga=class extends b{static tagName="dui-sidebar-inset";static styles=[x,W5];render(){return f`<slot></slot>`}};var Ya=L("value-change",{bubbles:!0,composed:!0}),Yp=L("value-committed",{bubbles:!0,composed:!0}),K5=c`
|
|
7100
7131
|
:host {
|
|
7101
7132
|
display: block;
|
|
7102
7133
|
}
|
|
@@ -7187,13 +7218,13 @@ p, li, blockquote, dt, dd {
|
|
|
7187
7218
|
white-space: nowrap;
|
|
7188
7219
|
border: 0;
|
|
7189
7220
|
}
|
|
7190
|
-
`,
|
|
7221
|
+
`,I_,A_,__,L_,O_,z_,P_,M_,F_,H_,N_,Xa,dt,Jw,Zw,tk,ek,rk,ok,ik,sk,nk,ak,lk,Xp,dk,Tt,B_,D_,V_,Qs,ck,Qp,Js,Zs,Jp,Zp,th,Jt=class extends(N_=b,H_=[h({type:Number})],F_=[h({type:Number})],M_=[h({type:Number})],P_=[h({type:Number})],z_=[h({type:Boolean,reflect:!0})],O_=[h()],L_=[h({reflect:!0})],__=[h({reflect:!0})],A_=[h({type:Number})],I_=[k()],N_){constructor(){super();i(this,Tt);i(this,Xa);i(this,Jw,o(dt,8,this,0)),o(dt,11,this);i(this,Zw,o(dt,12,this,0)),o(dt,15,this);i(this,tk,o(dt,16,this,100)),o(dt,19,this);i(this,ek,o(dt,20,this,1)),o(dt,23,this);i(this,rk,o(dt,24,this,!1)),o(dt,27,this);i(this,ok,o(dt,28,this,"")),o(dt,31,this);i(this,ik,o(dt,32,this,"")),o(dt,35,this);i(this,sk,o(dt,36,this,"")),o(dt,39,this);i(this,nk,o(dt,40,this)),o(dt,43,this);i(this,ak,o(dt,44,this,!1)),o(dt,47,this);i(this,Qp,t=>{if(this.disabled)return;t.preventDefault();let r=m(this,Tt,ck).call(this,t.clientX);r!==this.value&&(this.value=r,this.dispatchEvent(Ya({value:r}))),document.addEventListener("pointermove",e(this,Js)),document.addEventListener("pointerup",e(this,Zs))});i(this,Js,t=>{e(this,Tt,Xp)||p(this,Tt,!0,dk);let r=m(this,Tt,ck).call(this,t.clientX);r!==this.value&&(this.value=r,this.dispatchEvent(Ya({value:r})))});i(this,Zs,()=>{let t=e(this,Tt,Xp);p(this,Tt,!1,dk),document.removeEventListener("pointermove",e(this,Js)),document.removeEventListener("pointerup",e(this,Zs)),this.dispatchEvent(Yp({value:this.value}))});i(this,Jp,t=>{if(this.disabled)return;let r=this.value,n=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),r=m(this,Tt,Qs).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),r=m(this,Tt,Qs).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),r=m(this,Tt,Qs).call(this,this.value+n);break;case"PageDown":t.preventDefault(),r=m(this,Tt,Qs).call(this,this.value-n);break;case"Home":t.preventDefault(),r=this.min;break;case"End":t.preventDefault(),r=this.max;break;default:return}r!==this.value&&(this.value=r,this.dispatchEvent(Ya({value:r})),this.dispatchEvent(Yp({value:r})))});i(this,Zp,t=>{let r=t.target,n=parseFloat(r.value);!isNaN(n)&&n!==this.value&&(this.value=n,this.dispatchEvent(Ya({value:n})))});i(this,th,()=>{this.dispatchEvent(Yp({value:this.value}))});p(this,Xa,this.attachInternals())}willUpdate(){e(this,Xa).setFormValue(String(this.value))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",e(this,Js)),document.removeEventListener("pointerup",e(this,Zs))}render(){return f`
|
|
7191
7222
|
<div
|
|
7192
7223
|
part="root"
|
|
7193
7224
|
role="group"
|
|
7194
7225
|
?data-disabled=${this.disabled}
|
|
7195
7226
|
?data-dragging=${e(this,Tt,Xp)}
|
|
7196
|
-
style="--slider-progress: ${e(this,Tt,
|
|
7227
|
+
style="--slider-progress: ${e(this,Tt,B_)}%"
|
|
7197
7228
|
@pointerdown=${e(this,Qp)}
|
|
7198
7229
|
>
|
|
7199
7230
|
<span part="label">${this.label}</span>
|
|
@@ -7201,7 +7232,7 @@ p, li, blockquote, dt, dd {
|
|
|
7201
7232
|
<div class="slider-row">
|
|
7202
7233
|
<div part="track">
|
|
7203
7234
|
<div part="indicator"></div>
|
|
7204
|
-
<span part="readout">${e(this,Tt,
|
|
7235
|
+
<span part="readout">${e(this,Tt,V_)}</span>
|
|
7205
7236
|
<span part="unit">${this.unit}</span>
|
|
7206
7237
|
</div>
|
|
7207
7238
|
<div
|
|
@@ -7228,7 +7259,7 @@ p, li, blockquote, dt, dd {
|
|
|
7228
7259
|
@change=${e(this,th)}
|
|
7229
7260
|
/>
|
|
7230
7261
|
</div>
|
|
7231
|
-
`}};dt=C(
|
|
7262
|
+
`}};dt=C(N_),Xa=new WeakMap,Jw=new WeakMap,Zw=new WeakMap,tk=new WeakMap,ek=new WeakMap,rk=new WeakMap,ok=new WeakMap,ik=new WeakMap,sk=new WeakMap,nk=new WeakMap,ak=new WeakMap,Tt=new WeakSet,B_=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},D_=function(){let t=String(this.step),r=t.indexOf(".");return r===-1?0:t.length-r-1},V_=function(){let t=this.precision??e(this,Tt,D_);return this.value.toFixed(t)},Qs=function(t){let r=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,r))},ck=function(t){let r=this.shadowRoot?.querySelector("[part='track']");if(!r)return this.value;let n=r.getBoundingClientRect(),d=(t-n.left)/n.width,u=this.min+d*(this.max-this.min);return m(this,Tt,Qs).call(this,u)},Qp=new WeakMap,Js=new WeakMap,Zs=new WeakMap,Jp=new WeakMap,Zp=new WeakMap,th=new WeakMap,l(dt,4,"value",H_,Jt,Jw),l(dt,4,"min",F_,Jt,Zw),l(dt,4,"max",M_,Jt,tk),l(dt,4,"step",P_,Jt,ek),l(dt,4,"disabled",z_,Jt,rk),l(dt,4,"name",O_,Jt,ok),l(dt,4,"label",L_,Jt,ik),l(dt,4,"unit",__,Jt,sk),l(dt,4,"precision",A_,Jt,nk),lk=l(dt,20,"#dragging",I_,Tt,ak),Xp=lk.get,dk=lk.set,E(dt,Jt),g(Jt,"tagName","dui-slider"),g(Jt,"formAssociated",!0),g(Jt,"styles",[x,K5]);var G5=ul`
|
|
7232
7263
|
<svg
|
|
7233
7264
|
part="svg"
|
|
7234
7265
|
viewBox="0 0 44 44"
|
|
@@ -7257,7 +7288,7 @@ p, li, blockquote, dt, dd {
|
|
|
7257
7288
|
/>
|
|
7258
7289
|
</circle>
|
|
7259
7290
|
</svg>
|
|
7260
|
-
`,
|
|
7291
|
+
`,Y5=ul`
|
|
7261
7292
|
<svg
|
|
7262
7293
|
part="svg"
|
|
7263
7294
|
data-rotate
|
|
@@ -7280,7 +7311,7 @@ p, li, blockquote, dt, dd {
|
|
|
7280
7311
|
<path d="M2 12h4" />
|
|
7281
7312
|
<path d="m4.9 4.9 2.9 2.9" />
|
|
7282
7313
|
</svg>
|
|
7283
|
-
`,
|
|
7314
|
+
`,X5=ul`
|
|
7284
7315
|
<svg
|
|
7285
7316
|
part="svg"
|
|
7286
7317
|
data-rotate
|
|
@@ -7296,7 +7327,7 @@ p, li, blockquote, dt, dd {
|
|
|
7296
7327
|
>
|
|
7297
7328
|
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
7298
7329
|
</svg>
|
|
7299
|
-
`,
|
|
7330
|
+
`,Q5=c`
|
|
7300
7331
|
:host {
|
|
7301
7332
|
display: block;
|
|
7302
7333
|
}
|
|
@@ -7315,7 +7346,7 @@ p, li, blockquote, dt, dd {
|
|
|
7315
7346
|
from { transform: rotate(0deg); }
|
|
7316
7347
|
to { transform: rotate(360deg); }
|
|
7317
7348
|
}
|
|
7318
|
-
`,
|
|
7349
|
+
`,q_,U_,eh,pk,rh,j_,bo=class extends(U_=b,q_=[h({reflect:!0})],U_){constructor(){super(...arguments);i(this,rh);i(this,pk,o(eh,8,this,"")),o(eh,11,this)}render(){return f`${m(this,rh,j_).call(this)}`}};eh=C(U_),pk=new WeakMap,rh=new WeakSet,j_=function(){switch(this.variant){case"lucide-loader":return Y5;case"lucide-loader-circle":return X5;default:return G5}},l(eh,4,"variant",q_,bo,pk),E(eh,bo),g(bo,"tagName","dui-spinner"),g(bo,"styles",[x,Q5]);var rL=L("checked-change",{bubbles:!0,composed:!0}),J5=c`
|
|
7319
7350
|
:host {
|
|
7320
7351
|
display: inline-flex;
|
|
7321
7352
|
align-items: start;
|
|
@@ -7349,15 +7380,15 @@ p, li, blockquote, dt, dd {
|
|
|
7349
7380
|
transform: translateX(var(--switch-checked-offset, 0));
|
|
7350
7381
|
}
|
|
7351
7382
|
|
|
7352
|
-
`,
|
|
7383
|
+
`,W_,K_,G_,Y_,X_,Q_,J_,Z_,tL,eL,Qa,wt,hk,uk,mk,fk,vk,gk,bk,xk,yk,wk,oL,kk,ie,oh,Ek,iL,Ja,Za,ih,Zt=class extends(eL=b,tL=[h({type:Boolean,reflect:!0})],Z_=[h({type:Boolean,attribute:"default-checked"})],J_=[h({type:Boolean,reflect:!0})],Q_=[h({type:Boolean,reflect:!0,attribute:"read-only"})],X_=[h({type:Boolean,reflect:!0})],Y_=[h()],G_=[h()],K_=[h({attribute:"unchecked-value"})],W_=[k()],eL){constructor(){super();i(this,ie);i(this,Qa);i(this,hk,o(wt,8,this)),o(wt,11,this);i(this,uk,o(wt,12,this,!1)),o(wt,15,this);i(this,mk,o(wt,16,this,!1)),o(wt,19,this);i(this,fk,o(wt,20,this,!1)),o(wt,23,this);i(this,vk,o(wt,24,this,!1)),o(wt,27,this);i(this,gk,o(wt,28,this)),o(wt,31,this);i(this,bk,o(wt,32,this,"on")),o(wt,35,this);i(this,xk,o(wt,36,this,"")),o(wt,39,this);i(this,yk,o(wt,40,this,!1)),o(wt,43,this);i(this,Ja,t=>{e(this,Za).call(this)});i(this,Za,()=>{if(e(this,ie,Ek)||this.readOnly)return;let t=!e(this,ie,oh);this.checked===void 0&&p(this,ie,t,kk),this.dispatchEvent(rL({checked:t}))});i(this,ih,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),e(this,Za).call(this))});p(this,Qa,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&p(this,ie,!0,kk),this.addEventListener("click",e(this,Ja))}willUpdate(){m(this,ie,iL).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Ja))}render(){let t=e(this,ie,oh),r=e(this,ie,Ek);return f`
|
|
7353
7384
|
<span
|
|
7354
7385
|
part="root"
|
|
7355
7386
|
role="switch"
|
|
7356
7387
|
aria-checked="${String(t)}"
|
|
7357
|
-
aria-disabled="${r?"true":
|
|
7358
|
-
aria-readonly="${this.readOnly?"true":
|
|
7359
|
-
aria-required="${this.required?"true":
|
|
7360
|
-
tabindex="${r?
|
|
7388
|
+
aria-disabled="${r?"true":I}"
|
|
7389
|
+
aria-readonly="${this.readOnly?"true":I}"
|
|
7390
|
+
aria-required="${this.required?"true":I}"
|
|
7391
|
+
tabindex="${r?I:"0"}"
|
|
7361
7392
|
?data-checked="${t}"
|
|
7362
7393
|
?data-unchecked="${!t}"
|
|
7363
7394
|
?data-disabled="${r}"
|
|
@@ -7368,7 +7399,7 @@ p, li, blockquote, dt, dd {
|
|
|
7368
7399
|
<span part="thumb"></span>
|
|
7369
7400
|
</span>
|
|
7370
7401
|
<slot></slot>
|
|
7371
|
-
`}};wt=C(
|
|
7402
|
+
`}};wt=C(eL),Qa=new WeakMap,hk=new WeakMap,uk=new WeakMap,mk=new WeakMap,fk=new WeakMap,vk=new WeakMap,gk=new WeakMap,bk=new WeakMap,xk=new WeakMap,yk=new WeakMap,ie=new WeakSet,oh=function(){return this.checked??e(this,ie,oL)},Ek=function(){return this.disabled},iL=function(){let t=e(this,ie,oh)?this.value:this.uncheckedValue;e(this,Qa).setFormValue(t||null)},Ja=new WeakMap,Za=new WeakMap,ih=new WeakMap,l(wt,4,"checked",tL,Zt,hk),l(wt,4,"defaultChecked",Z_,Zt,uk),l(wt,4,"disabled",J_,Zt,mk),l(wt,4,"readOnly",Q_,Zt,fk),l(wt,4,"required",X_,Zt,vk),l(wt,4,"name",Y_,Zt,gk),l(wt,4,"value",G_,Zt,bk),l(wt,4,"uncheckedValue",K_,Zt,xk),wk=l(wt,20,"#internalChecked",W_,ie,yk),oL=wk.get,kk=wk.set,E(wt,Zt),g(Zt,"tagName","dui-switch"),g(Zt,"formAssociated",!0),g(Zt,"styles",[x,J5]);var Wo=Symbol("dui-tabs");var hL=L("value-change",{bubbles:!0,composed:!0}),Z5=c`
|
|
7372
7403
|
:host {
|
|
7373
7404
|
display: block;
|
|
7374
7405
|
}
|
|
@@ -7385,11 +7416,11 @@ p, li, blockquote, dt, dd {
|
|
|
7385
7416
|
:host([controls="footer"]) [part="root"] {
|
|
7386
7417
|
flex-direction: column-reverse;
|
|
7387
7418
|
}
|
|
7388
|
-
`,
|
|
7419
|
+
`,sL,nL,aL,lL,dL,cL,pL,Gt,Ck,Sk,$k,Tk,Rk,Ik,uL,_k,fr,nh,ah,Ak,sh,Be=class extends(pL=b,cL=[h()],dL=[h({attribute:"default-value"})],lL=[h({reflect:!0})],aL=[h({reflect:!0})],nL=[k()],sL=[kt({context:Wo}),k()],pL){constructor(){super(...arguments);i(this,fr);i(this,Ck,o(Gt,8,this)),o(Gt,11,this);i(this,Sk,o(Gt,12,this)),o(Gt,15,this);i(this,$k,o(Gt,16,this,"horizontal")),o(Gt,19,this);i(this,Tk,o(Gt,20,this,"header")),o(Gt,23,this);i(this,Rk,o(Gt,24,this)),o(Gt,27,this);i(this,nh,()=>this.value??e(this,fr,uL));i(this,ah,t=>{this.value===void 0&&p(this,fr,t,_k),this.dispatchEvent(hL(t))});i(this,Ak,o(Gt,28,this,m(this,fr,sh).call(this))),o(Gt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,fr,this.defaultValue,_k),this._ctx=m(this,fr,sh).call(this)}willUpdate(){this._ctx=m(this,fr,sh).call(this)}render(){return f`
|
|
7389
7420
|
<div part="root" data-orientation=${this.orientation}>
|
|
7390
7421
|
<slot></slot>
|
|
7391
7422
|
</div>
|
|
7392
|
-
`}};
|
|
7423
|
+
`}};Gt=C(pL),Ck=new WeakMap,Sk=new WeakMap,$k=new WeakMap,Tk=new WeakMap,Rk=new WeakMap,fr=new WeakSet,nh=new WeakMap,ah=new WeakMap,Ak=new WeakMap,sh=function(){return{value:e(this,nh).call(this),orientation:this.orientation,select:e(this,ah)}},l(Gt,4,"value",cL,Be,Ck),l(Gt,4,"defaultValue",dL,Be,Sk),l(Gt,4,"orientation",lL,Be,$k),l(Gt,4,"controls",aL,Be,Tk),Ik=l(Gt,20,"#internalValue",nL,fr,Rk),uL=Ik.get,_k=Ik.set,l(Gt,4,"_ctx",sL,Be,Ak),E(Gt,Be),g(Be,"tagName","dui-tabs"),g(Be,"styles",[x,Z5]);var tM=c`
|
|
7393
7424
|
:host {
|
|
7394
7425
|
display: block;
|
|
7395
7426
|
}
|
|
@@ -7403,11 +7434,11 @@ p, li, blockquote, dt, dd {
|
|
|
7403
7434
|
[part="list"][data-orientation="vertical"] {
|
|
7404
7435
|
flex-direction: column;
|
|
7405
7436
|
}
|
|
7406
|
-
`,
|
|
7437
|
+
`,mL,fL,lh,Lk,tn,en,dh,xo=class extends(fL=b,mL=[Nt({context:Wo,subscribe:!0})],fL){constructor(){super(...arguments);i(this,en);i(this,Lk,o(lh,8,this)),o(lh,11,this);i(this,tn)}connectedCallback(){super.connectedCallback(),p(this,tn,new ResizeObserver(()=>{m(this,en,dh).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),e(this,tn)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&e(this,tn)?.observe(t),m(this,en,dh).call(this)}updated(){m(this,en,dh).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
|
|
7407
7438
|
<div part="list" role="tablist" data-orientation=${t}>
|
|
7408
7439
|
<slot></slot>
|
|
7409
7440
|
</div>
|
|
7410
|
-
`}};lh=C(
|
|
7441
|
+
`}};lh=C(fL),Lk=new WeakMap,tn=new WeakMap,en=new WeakSet,dh=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let d=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(u=>u.tagName==="DUI-TAB"&&u.getAttribute("value")===this._ctx?.value);if(d){let u=t.getBoundingClientRect(),v=d.getBoundingClientRect(),w=v.left-u.left,S=v.width;t.style.setProperty("--active-tab-left",`${w}px`),t.style.setProperty("--active-tab-width",`${S}px`)}},l(lh,4,"_ctx",mL,xo,Lk),E(lh,xo),g(xo,"tagName","dui-tabs-list"),g(xo,"styles",[x,tM]);var eM=c`
|
|
7411
7442
|
:host {
|
|
7412
7443
|
display: block;
|
|
7413
7444
|
}
|
|
@@ -7431,7 +7462,7 @@ p, li, blockquote, dt, dd {
|
|
|
7431
7462
|
[part="tab"][data-disabled] {
|
|
7432
7463
|
cursor: not-allowed;
|
|
7433
7464
|
}
|
|
7434
|
-
`,
|
|
7465
|
+
`,vL,gL,bL,xL,jr,Ok,zk,Pk,ch,yL,ph,hh,vr=class extends(xL=b,bL=[h()],gL=[h({type:Boolean,reflect:!0})],vL=[Nt({context:Wo,subscribe:!0})],xL){constructor(){super(...arguments);i(this,ch);i(this,Ok,o(jr,8,this,"")),o(jr,11,this);i(this,zk,o(jr,12,this,!1)),o(jr,15,this);i(this,Pk,o(jr,16,this)),o(jr,19,this);i(this,ph,()=>{this.disabled||this._ctx?.select(this.value)});i(this,hh,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=e(this,ch,yL);return f`
|
|
7435
7466
|
<button
|
|
7436
7467
|
part="tab"
|
|
7437
7468
|
role="tab"
|
|
@@ -7445,7 +7476,7 @@ p, li, blockquote, dt, dd {
|
|
|
7445
7476
|
>
|
|
7446
7477
|
<slot></slot>
|
|
7447
7478
|
</button>
|
|
7448
|
-
`}};jr=C(
|
|
7479
|
+
`}};jr=C(xL),Ok=new WeakMap,zk=new WeakMap,Pk=new WeakMap,ch=new WeakSet,yL=function(){return this._ctx?.value===this.value},ph=new WeakMap,hh=new WeakMap,l(jr,4,"value",bL,vr,Ok),l(jr,4,"disabled",gL,vr,zk),l(jr,4,"_ctx",vL,vr,Pk),E(jr,vr),g(vr,"tagName","dui-tab"),g(vr,"styles",[x,eM]);var rM=c`
|
|
7449
7480
|
:host {
|
|
7450
7481
|
display: block;
|
|
7451
7482
|
}
|
|
@@ -7462,11 +7493,11 @@ p, li, blockquote, dt, dd {
|
|
|
7462
7493
|
position: relative;
|
|
7463
7494
|
outline: 0;
|
|
7464
7495
|
}
|
|
7465
|
-
`,
|
|
7496
|
+
`,wL,kL,EL,CL,Wr,Mk,Fk,Hk,tl,Nk,gr=class extends(CL=b,EL=[h()],kL=[h({type:Boolean,attribute:"keep-mounted"})],wL=[Nt({context:Wo,subscribe:!0})],CL){constructor(){super(...arguments);i(this,tl);i(this,Mk,o(Wr,8,this,"")),o(Wr,11,this);i(this,Fk,o(Wr,12,this,!1)),o(Wr,15,this);i(this,Hk,o(Wr,16,this)),o(Wr,19,this)}willUpdate(){e(this,tl,Nk)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=e(this,tl,Nk);return f`
|
|
7466
7497
|
<div class="wrapper" ?hidden=${!t}>
|
|
7467
|
-
${t||this.keepMounted?f`<div part="panel" role="tabpanel" tabindex="0"><slot></slot></div>`:
|
|
7498
|
+
${t||this.keepMounted?f`<div part="panel" role="tabpanel" tabindex="0"><slot></slot></div>`:I}
|
|
7468
7499
|
</div>
|
|
7469
|
-
`}};Wr=C(
|
|
7500
|
+
`}};Wr=C(CL),Mk=new WeakMap,Fk=new WeakMap,Hk=new WeakMap,tl=new WeakSet,Nk=function(){return this._ctx?.value===this.value},l(Wr,4,"value",EL,gr,Mk),l(Wr,4,"keepMounted",kL,gr,Fk),l(Wr,4,"_ctx",wL,gr,Hk),E(Wr,gr),g(gr,"tagName","dui-tabs-panel"),g(gr,"styles",[x,rM]);var oM=c`
|
|
7470
7501
|
:host {
|
|
7471
7502
|
display: block;
|
|
7472
7503
|
position: absolute;
|
|
@@ -7478,7 +7509,7 @@ p, li, blockquote, dt, dd {
|
|
|
7478
7509
|
pointer-events: none;
|
|
7479
7510
|
transition-property: translate, width;
|
|
7480
7511
|
}
|
|
7481
|
-
`,el=class extends b{static tagName="dui-tabs-indicator";static styles=[x,
|
|
7512
|
+
`,el=class extends b{static tagName="dui-tabs-indicator";static styles=[x,oM];render(){return f`<span part="indicator"></span>`}};var FL=L("textarea-change",{bubbles:!0,composed:!0}),iM=c`
|
|
7482
7513
|
:host {
|
|
7483
7514
|
display: block;
|
|
7484
7515
|
}
|
|
@@ -7516,7 +7547,7 @@ p, li, blockquote, dt, dd {
|
|
|
7516
7547
|
[part="textarea"]:disabled {
|
|
7517
7548
|
cursor: not-allowed;
|
|
7518
7549
|
}
|
|
7519
|
-
`,
|
|
7550
|
+
`,SL,$L,TL,RL,IL,AL,_L,LL,OL,zL,PL,ML,Xi,ot,Bk,Dk,Vk,qk,Uk,jk,Wk,Kk,Gk,Yk,Xk,uh,HL,mh,Dt=class extends(ML=b,PL=[h()],zL=[h()],OL=[h({type:Boolean,reflect:!0})],LL=[h({type:Boolean})],_L=[h({type:Boolean})],AL=[h({type:Number})],IL=[h({type:Number,attribute:"minlength"})],RL=[h({type:Number,attribute:"maxlength"})],TL=[h()],$L=[h()],SL=[h({attribute:"max-height"})],ML){constructor(){super();i(this,uh);i(this,Xi);i(this,Bk,o(ot,8,this,"")),o(ot,11,this);i(this,Dk,o(ot,12,this,"")),o(ot,15,this);i(this,Vk,o(ot,16,this,!1)),o(ot,19,this);i(this,qk,o(ot,20,this,!1)),o(ot,23,this);i(this,Uk,o(ot,24,this,!1)),o(ot,27,this);i(this,jk,o(ot,28,this)),o(ot,31,this);i(this,Wk,o(ot,32,this)),o(ot,35,this);i(this,Kk,o(ot,36,this)),o(ot,39,this);i(this,Gk,o(ot,40,this,"")),o(ot,43,this);i(this,Yk,o(ot,44,this,"vertical")),o(ot,47,this);i(this,Xk,o(ot,48,this)),o(ot,51,this);i(this,mh,t=>{let r=t.target;this.value=r.value,e(this,Xi).setFormValue(this.value),this.dispatchEvent(FL({value:this.value}))});p(this,Xi,this.attachInternals())}willUpdate(){e(this,Xi).setFormValue(this.value)}updated(){m(this,uh,HL).call(this)}render(){let t=As({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
|
|
7520
7551
|
<textarea
|
|
7521
7552
|
part="textarea"
|
|
7522
7553
|
style=${t}
|
|
@@ -7532,7 +7563,7 @@ p, li, blockquote, dt, dd {
|
|
|
7532
7563
|
data-resize=${this.resize}
|
|
7533
7564
|
@input=${e(this,mh)}
|
|
7534
7565
|
></textarea>
|
|
7535
|
-
`}};ot=C(
|
|
7566
|
+
`}};ot=C(ML),Xi=new WeakMap,Bk=new WeakMap,Dk=new WeakMap,Vk=new WeakMap,qk=new WeakMap,Uk=new WeakMap,jk=new WeakMap,Wk=new WeakMap,Kk=new WeakMap,Gk=new WeakMap,Yk=new WeakMap,Xk=new WeakMap,uh=new WeakSet,HL=function(){let t=this.shadowRoot?.querySelector("textarea");t&&e(this,Xi).setValidity(t.validity,t.validationMessage,t)},mh=new WeakMap,l(ot,4,"value",PL,Dt,Bk),l(ot,4,"placeholder",zL,Dt,Dk),l(ot,4,"disabled",OL,Dt,Vk),l(ot,4,"required",LL,Dt,qk),l(ot,4,"readonly",_L,Dt,Uk),l(ot,4,"rows",AL,Dt,jk),l(ot,4,"minLength",IL,Dt,Wk),l(ot,4,"maxLength",RL,Dt,Kk),l(ot,4,"name",TL,Dt,Gk),l(ot,4,"resize",$L,Dt,Yk),l(ot,4,"maxHeight",SL,Dt,Xk),E(ot,Dt),g(Dt,"tagName","dui-textarea"),g(Dt,"formAssociated",!0),g(Dt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Dt,"styles",[x,iM]);var fh=Symbol("dui-toggle-group");var WL=L("pressed-change",{bubbles:!0,composed:!0}),sM=c`
|
|
7536
7567
|
:host {
|
|
7537
7568
|
display: inline-block;
|
|
7538
7569
|
}
|
|
@@ -7554,7 +7585,7 @@ p, li, blockquote, dt, dd {
|
|
|
7554
7585
|
[part="root"]:disabled {
|
|
7555
7586
|
cursor: not-allowed;
|
|
7556
7587
|
}
|
|
7557
|
-
`,
|
|
7588
|
+
`,NL,BL,DL,VL,qL,UL,jL,Yt,Qk,Jk,Zk,tE,eE,rE,KL,iE,De,oE,sE,nE,vh,Ee=class extends(jL=b,UL=[h({type:Boolean})],qL=[h({type:Boolean,attribute:"default-pressed"})],VL=[h({type:Boolean,reflect:!0})],DL=[h()],BL=[k()],NL=[Nt({context:fh,subscribe:!0}),k()],jL){constructor(){super(...arguments);i(this,De);i(this,Qk,o(Yt,8,this)),o(Yt,11,this);i(this,Jk,o(Yt,12,this,!1)),o(Yt,15,this);i(this,Zk,o(Yt,16,this,!1)),o(Yt,19,this);i(this,tE,o(Yt,20,this)),o(Yt,23,this);i(this,eE,o(Yt,24,this,!1)),o(Yt,27,this);i(this,oE,o(Yt,28,this)),o(Yt,31,this);i(this,vh,()=>{if(e(this,De,nE))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!e(this,De,sE);this.pressed===void 0&&p(this,De,t,iE),this.dispatchEvent(WL({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&p(this,De,!0,iE)}render(){let t=e(this,De,sE),r=e(this,De,nE);return f`
|
|
7558
7589
|
<button
|
|
7559
7590
|
part="root"
|
|
7560
7591
|
type="button"
|
|
@@ -7567,7 +7598,7 @@ p, li, blockquote, dt, dd {
|
|
|
7567
7598
|
<slot name="icon"></slot>
|
|
7568
7599
|
<slot></slot>
|
|
7569
7600
|
</button>
|
|
7570
|
-
`}};
|
|
7601
|
+
`}};Yt=C(jL),Qk=new WeakMap,Jk=new WeakMap,Zk=new WeakMap,tE=new WeakMap,eE=new WeakMap,De=new WeakSet,oE=new WeakMap,sE=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??e(this,De,KL)},nE=function(){return this.disabled||(this._groupCtx?.disabled??!1)},vh=new WeakMap,l(Yt,4,"pressed",UL,Ee,Qk),l(Yt,4,"defaultPressed",qL,Ee,Jk),l(Yt,4,"disabled",VL,Ee,Zk),l(Yt,4,"value",DL,Ee,tE),rE=l(Yt,20,"#internalPressed",BL,De,eE),KL=rE.get,iE=rE.set,l(Yt,4,"_groupCtx",NL,Ee,oE),E(Yt,Ee),g(Ee,"tagName","dui-toggle"),g(Ee,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Ee,"styles",[x,sM]);var oO=L("value-change",{bubbles:!0,composed:!0}),nM=c`
|
|
7571
7602
|
:host {
|
|
7572
7603
|
display: inline-flex;
|
|
7573
7604
|
}
|
|
@@ -7579,7 +7610,7 @@ p, li, blockquote, dt, dd {
|
|
|
7579
7610
|
:host([orientation="vertical"]) [part="root"] {
|
|
7580
7611
|
flex-direction: column;
|
|
7581
7612
|
}
|
|
7582
|
-
`,
|
|
7613
|
+
`,GL,YL,XL,QL,JL,ZL,tO,eO,rO,St,aE,lE,dE,cE,pE,hE,uE,mE,iO,vE,Ce,gE,bh,fE,gh,xh,me=class extends(rO=b,eO=[h({type:Array})],tO=[h({type:Array,attribute:"default-value"})],ZL=[h({reflect:!0})],JL=[h({reflect:!0})],QL=[h({type:Boolean,reflect:!0})],XL=[h({type:Boolean})],YL=[k()],GL=[kt({context:fh}),k()],rO){constructor(){super(...arguments);i(this,Ce);i(this,aE,o(St,8,this)),o(St,11,this);i(this,lE,o(St,12,this,[])),o(St,15,this);i(this,dE,o(St,16,this,"single")),o(St,19,this);i(this,cE,o(St,20,this,"horizontal")),o(St,23,this);i(this,pE,o(St,24,this,!1)),o(St,27,this);i(this,hE,o(St,28,this,!0)),o(St,31,this);i(this,uE,o(St,32,this,[])),o(St,35,this);i(this,bh,t=>{if(this.disabled)return;let r=e(this,Ce,gE),n;this.type==="single"?n=r.includes(t)?[]:[t]:n=r.includes(t)?r.filter(d=>d!==t):[...r,t],this.value===void 0&&p(this,Ce,n,vE),this.dispatchEvent(oO({value:n}))});i(this,fE,o(St,36,this,m(this,Ce,gh).call(this))),o(St,39,this);i(this,xh,t=>{let r=this.orientation==="horizontal",n=r?"ArrowRight":"ArrowDown",d=r?"ArrowLeft":"ArrowUp";if(t.key!==n&&t.key!==d)return;t.preventDefault();let u=[...this.querySelectorAll("dui-toggle")],v=u.filter(A=>!A.hasAttribute("disabled"));if(v.length===0)return;let w=this.shadowRoot?.activeElement??document.activeElement,S=u.find(A=>A===w||A.shadowRoot?.activeElement===w||A.contains(w)),$=S?v.indexOf(S):-1,y;t.key===n?(y=$+1,y>=v.length&&(y=this.loop?0:v.length-1)):(y=$-1,y<0&&(y=this.loop?v.length-1:0)),v[y]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,Ce,[...this.defaultValue],vE),this._ctx=m(this,Ce,gh).call(this)}willUpdate(){this._ctx=m(this,Ce,gh).call(this)}render(){return f`
|
|
7583
7614
|
<div
|
|
7584
7615
|
part="root"
|
|
7585
7616
|
role="group"
|
|
@@ -7588,7 +7619,7 @@ p, li, blockquote, dt, dd {
|
|
|
7588
7619
|
>
|
|
7589
7620
|
<slot></slot>
|
|
7590
7621
|
</div>
|
|
7591
|
-
`}};St=C(
|
|
7622
|
+
`}};St=C(rO),aE=new WeakMap,lE=new WeakMap,dE=new WeakMap,cE=new WeakMap,pE=new WeakMap,hE=new WeakMap,uE=new WeakMap,Ce=new WeakSet,gE=function(){return this.value??e(this,Ce,iO)},bh=new WeakMap,fE=new WeakMap,gh=function(){return{value:e(this,Ce,gE),disabled:this.disabled,type:this.type,toggle:e(this,bh)}},xh=new WeakMap,l(St,4,"value",eO,me,aE),l(St,4,"defaultValue",tO,me,lE),l(St,4,"type",ZL,me,dE),l(St,4,"orientation",JL,me,cE),l(St,4,"disabled",QL,me,pE),l(St,4,"loop",XL,me,hE),mE=l(St,20,"#internalValue",YL,Ce,uE),iO=mE.get,vE=mE.set,l(St,4,"_ctx",GL,me,fE),E(St,me),g(me,"tagName","dui-toggle-group"),g(me,"styles",[x,nM]);var aM=c`
|
|
7592
7623
|
:host {
|
|
7593
7624
|
display: block;
|
|
7594
7625
|
}
|
|
@@ -7619,7 +7650,7 @@ p, li, blockquote, dt, dd {
|
|
|
7619
7650
|
display: flex;
|
|
7620
7651
|
align-items: center;
|
|
7621
7652
|
}
|
|
7622
|
-
`,
|
|
7653
|
+
`,sO,nO,aO,lO,Kr,bE,xE,yE,br=class extends(lO=b,aO=[h({type:Boolean,reflect:!0})],nO=[h({type:Boolean,reflect:!0,attribute:"has-button-left"})],sO=[h({type:Boolean,reflect:!0,attribute:"has-button-right"})],lO){constructor(){super(...arguments);i(this,bE,o(Kr,8,this,!1)),o(Kr,11,this);i(this,xE,o(Kr,12,this,!1)),o(Kr,15,this);i(this,yE,o(Kr,16,this,!1)),o(Kr,19,this)}render(){return f`
|
|
7623
7654
|
<nav part="root" role="toolbar">
|
|
7624
7655
|
<div part="left">
|
|
7625
7656
|
<slot name="left"></slot>
|
|
@@ -7631,15 +7662,15 @@ p, li, blockquote, dt, dd {
|
|
|
7631
7662
|
<slot name="right"></slot>
|
|
7632
7663
|
</div>
|
|
7633
7664
|
</nav>
|
|
7634
|
-
`}};Kr=C(
|
|
7665
|
+
`}};Kr=C(lO),bE=new WeakMap,xE=new WeakMap,yE=new WeakMap,l(Kr,4,"inset",aO,br,bE),l(Kr,4,"hasButtonLeft",nO,br,xE),l(Kr,4,"hasButtonRight",sO,br,yE),E(Kr,br),g(br,"tagName","dui-toolbar"),g(br,"styles",[x,aM]);var rn=Symbol("dui-tooltip");var OE=L("open-change",{bubbles:!0,composed:!0}),lM=c`
|
|
7635
7666
|
:host {
|
|
7636
7667
|
display: contents;
|
|
7637
7668
|
}
|
|
7638
|
-
`,
|
|
7669
|
+
`,dO,cO,pO,hO,uO,mO,fO,vO,gO,bO,xO,ct,wE,kE,EE,CE,SE,$E,TE,RE,IE,yh,wh,pt,AE,_E,zE,yO,Qi,Ji,Eh,Ch,LE,kh,wO,kO,PE,ME,EO,se=class extends(xO=b,bO=[h({type:Boolean,reflect:!0})],gO=[h({type:Boolean,attribute:"default-open"})],vO=[h({reflect:!0})],fO=[h({type:Number,attribute:"side-offset"})],mO=[h({type:Number})],uO=[h({type:Number,attribute:"close-delay"})],hO=[h({type:Boolean,reflect:!0})],pO=[k()],cO=[k()],dO=[kt({context:rn}),k()],xO){constructor(){super(...arguments);i(this,pt);i(this,wE,o(ct,8,this,!1)),o(ct,11,this);i(this,kE,o(ct,12,this,!1)),o(ct,15,this);i(this,EE,o(ct,16,this,"top")),o(ct,19,this);i(this,CE,o(ct,20,this,6)),o(ct,23,this);i(this,SE,o(ct,24,this,500)),o(ct,27,this);i(this,$E,o(ct,28,this,0)),o(ct,31,this);i(this,TE,o(ct,32,this,!1)),o(ct,35,this);i(this,RE,o(ct,36,this,!1)),o(ct,39,this);i(this,AE,o(ct,40,this)),o(ct,43,this);i(this,Qi);i(this,Ji);i(this,Eh,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);i(this,Ch,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);i(this,LE,o(ct,44,this,{open:!1,triggerId:e(this,Eh),popupId:e(this,Ch),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>m(this,pt,wO).call(this),closeTooltip:()=>m(this,pt,kO).call(this),setTriggerEl:t=>m(this,pt,EO).call(this,t)})),o(ct,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&p(this,pt,!0,wh)}disconnectedCallback(){super.disconnectedCallback(),m(this,pt,kh).call(this)}willUpdate(t){let r=this.open||e(this,pt,yh);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==r||this._ctx.triggerEl!==e(this,pt,zE))&&(this._ctx={...this._ctx,open:r,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:e(this,pt,zE)})}render(){return f`<slot></slot>`}};ct=C(xO),wE=new WeakMap,kE=new WeakMap,EE=new WeakMap,CE=new WeakMap,SE=new WeakMap,$E=new WeakMap,TE=new WeakMap,RE=new WeakMap,pt=new WeakSet,AE=new WeakMap,Qi=new WeakMap,Ji=new WeakMap,Eh=new WeakMap,Ch=new WeakMap,LE=new WeakMap,kh=function(){e(this,Qi)&&(clearTimeout(e(this,Qi)),p(this,Qi,void 0)),e(this,Ji)&&(clearTimeout(e(this,Ji)),p(this,Ji,void 0))},wO=function(){this.disabled||(m(this,pt,kh).call(this),this.delay<=0?m(this,pt,PE).call(this):p(this,Qi,setTimeout(()=>m(this,pt,PE).call(this),this.delay)))},kO=function(){m(this,pt,kh).call(this),this.closeDelay<=0?m(this,pt,ME).call(this):p(this,Ji,setTimeout(()=>m(this,pt,ME).call(this),this.closeDelay))},PE=function(){e(this,pt,yh)||(p(this,pt,!0,wh),this.dispatchEvent(OE({open:!0})))},ME=function(){e(this,pt,yh)&&(p(this,pt,!1,wh),this.dispatchEvent(OE({open:!1})))},EO=function(t){p(this,pt,t,yO)},l(ct,4,"open",bO,se,wE),l(ct,4,"defaultOpen",gO,se,kE),l(ct,4,"side",vO,se,EE),l(ct,4,"sideOffset",fO,se,CE),l(ct,4,"delay",mO,se,SE),l(ct,4,"closeDelay",uO,se,$E),l(ct,4,"disabled",hO,se,TE),IE=l(ct,20,"#internalOpen",pO,pt,RE),yh=IE.get,wh=IE.set,_E=l(ct,20,"#triggerEl",cO,pt,AE),zE=_E.get,yO=_E.set,l(ct,4,"_ctx",dO,se,LE),E(ct,se),g(se,"tagName","dui-tooltip"),g(se,"styles",[x,lM]);var dM=c`
|
|
7639
7670
|
:host {
|
|
7640
7671
|
display: contents;
|
|
7641
7672
|
}
|
|
7642
|
-
`,
|
|
7673
|
+
`,cM=c`
|
|
7643
7674
|
.Trigger {
|
|
7644
7675
|
display: inline-flex;
|
|
7645
7676
|
align-items: center;
|
|
@@ -7656,7 +7687,7 @@ p, li, blockquote, dt, dd {
|
|
|
7656
7687
|
.Trigger[data-disabled] {
|
|
7657
7688
|
cursor: not-allowed;
|
|
7658
7689
|
}
|
|
7659
|
-
`,
|
|
7690
|
+
`,CO,SO,Sh,FE,Se,Th,Rh,Ih,Ah,_h,wo,HE,$h,yo=class extends(SO=b,CO=[h({type:Boolean,reflect:!0})],SO){constructor(){super(...arguments);i(this,wo);i(this,FE,o(Sh,8,this,!1)),o(Sh,11,this);i(this,Se,new j(this,{context:rn,subscribe:!0}));i(this,Th,()=>{e(this,wo,$h)||(m(this,wo,HE).call(this),e(this,Se).value?.openTooltip())});i(this,Rh,()=>{e(this,Se).value?.closeTooltip()});i(this,Ih,()=>{e(this,wo,$h)||(m(this,wo,HE).call(this),e(this,Se).value?.openTooltip())});i(this,Ah,()=>{e(this,Se).value?.closeTooltip()});i(this,_h,t=>{t.key==="Escape"&&e(this,Se).value?.open&&e(this,Se).value?.closeTooltip()})}render(){let t=e(this,Se).value?.open??!1,r=e(this,Se).value?.popupId??"",n=e(this,Se).value?.triggerId??"";return f`
|
|
7660
7691
|
<span
|
|
7661
7692
|
class="Trigger"
|
|
7662
7693
|
part="trigger"
|
|
@@ -7668,13 +7699,13 @@ p, li, blockquote, dt, dd {
|
|
|
7668
7699
|
?data-disabled="${e(this,wo,$h)}"
|
|
7669
7700
|
@mouseenter="${e(this,Th)}"
|
|
7670
7701
|
@mouseleave="${e(this,Rh)}"
|
|
7671
|
-
@focus="${e(this,
|
|
7672
|
-
@blur="${e(this,
|
|
7702
|
+
@focus="${e(this,Ih)}"
|
|
7703
|
+
@blur="${e(this,Ah)}"
|
|
7673
7704
|
@keydown="${e(this,_h)}"
|
|
7674
7705
|
>
|
|
7675
7706
|
<slot></slot>
|
|
7676
7707
|
</span>
|
|
7677
|
-
`}};Sh=C(
|
|
7708
|
+
`}};Sh=C(SO),FE=new WeakMap,Se=new WeakMap,Th=new WeakMap,Rh=new WeakMap,Ih=new WeakMap,Ah=new WeakMap,_h=new WeakMap,wo=new WeakSet,HE=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;e(this,Se).value?.setTriggerEl(t)},$h=function(){return this.disabled||(e(this,Se).value?.disabled??!1)},l(Sh,4,"disabled",CO,yo,FE),E(Sh,yo),g(yo,"tagName","dui-tooltip-trigger"),g(yo,"styles",[x,dM,cM]);var pM=c`
|
|
7678
7709
|
:host {
|
|
7679
7710
|
display: contents;
|
|
7680
7711
|
}
|
|
@@ -7682,7 +7713,7 @@ p, li, blockquote, dt, dd {
|
|
|
7682
7713
|
.slot-wrapper {
|
|
7683
7714
|
display: none;
|
|
7684
7715
|
}
|
|
7685
|
-
`,
|
|
7716
|
+
`,hM=[c`
|
|
7686
7717
|
.Popup {
|
|
7687
7718
|
box-sizing: border-box;
|
|
7688
7719
|
pointer-events: auto;
|
|
@@ -7723,7 +7754,7 @@ p, li, blockquote, dt, dd {
|
|
|
7723
7754
|
left: 50%;
|
|
7724
7755
|
transform: translateX(-50%) rotate(180deg);
|
|
7725
7756
|
}
|
|
7726
|
-
`],
|
|
7757
|
+
`],$O,TO,RO,Zi,NE,BE,DE,Lh,IO,Gr,Ko,on,ts,AO,ko=class extends(RO=b,TO=[h({type:Boolean,attribute:"show-arrow"})],$O=[k()],RO){constructor(){super(...arguments);i(this,Gr);i(this,NE,o(Zi,8,this,!0)),o(Zi,11,this);i(this,BE,o(Zi,12,this,"top")),o(Zi,15,this);i(this,Ko,new j(this,{context:rn,subscribe:!0}));i(this,on,!1);i(this,ts,new re(this,{getAnchor:()=>e(this,Ko).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:hM,contentContainer:".Content",onPosition:({placement:t})=>{let r=t.split("-")[0];r!==e(this,Gr,Lh)&&p(this,Gr,r,IO)},renderPopup:t=>{let r=e(this,Ko).value?.popupId??"";return f`
|
|
7727
7758
|
<div
|
|
7728
7759
|
class="Popup"
|
|
7729
7760
|
id="${r}"
|
|
@@ -7735,7 +7766,7 @@ p, li, blockquote, dt, dd {
|
|
|
7735
7766
|
<div class="Content"></div>
|
|
7736
7767
|
${this.showArrow?ks(e(this,Gr,Lh)):""}
|
|
7737
7768
|
</div>
|
|
7738
|
-
`}}))}updated(){let t=e(this,Ko).value?.open??!1;t&&!e(this,on)?(m(this,Gr
|
|
7769
|
+
`}}))}updated(){let t=e(this,Ko).value?.open??!1;t&&!e(this,on)?(m(this,Gr,AO).call(this),e(this,ts).open()):!t&&e(this,on)&&e(this,ts).close(),p(this,on,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Zi=C(RO),NE=new WeakMap,BE=new WeakMap,Gr=new WeakSet,Ko=new WeakMap,on=new WeakMap,ts=new WeakMap,AO=function(){let t=e(this,Ko).value?.side??"top";e(this,ts).placement=t,e(this,ts).offset=e(this,Ko).value?.sideOffset??6},l(Zi,4,"showArrow",TO,ko,NE),DE=l(Zi,20,"#side",$O,Gr,BE),Lh=DE.get,IO=DE.set,E(Zi,ko),g(ko,"tagName","dui-tooltip-popup"),g(ko,"styles",[x,pM]);var uM=c`
|
|
7739
7770
|
:host {
|
|
7740
7771
|
display: block;
|
|
7741
7772
|
}
|
|
@@ -7754,4 +7785,4 @@ p, li, blockquote, dt, dd {
|
|
|
7754
7785
|
display: -webkit-box;
|
|
7755
7786
|
-webkit-box-orient: vertical;
|
|
7756
7787
|
}
|
|
7757
|
-
`,
|
|
7788
|
+
`,_O,LO,OO,es,VE,qE,Yr=class extends(OO=b,LO=[h({attribute:"max-width"})],_O=[h({attribute:"max-lines",type:Number,reflect:!0})],OO){constructor(){super(...arguments);i(this,VE,o(es,8,this,"20rem")),o(es,11,this);i(this,qE,o(es,12,this)),o(es,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,r=As({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return f`<div part="root" style=${r}><slot></slot></div>`}};es=C(OO),VE=new WeakMap,qE=new WeakMap,l(es,4,"maxWidth",LO,Yr,VE),l(es,4,"maxLines",_O,Yr,qE),E(es,Yr),g(Yr,"tagName","dui-trunc"),g(Yr,"styles",[x,uM]);var zO=[ee,er,rr,xn,or,yn,Ve,kn,En,Cn,Sn,$n,Tn,Rn,Ie,ae,to,Qt,Ae,Ue,oe,_e,Tr,io,Rr,Ge,so,Qn,Jn,Oe,dr,ea,Ye,ra,oa,cr,po,da,Ot,uo,Pe,pr,nt,Wt,Fe,wa,Or,ka,hr,ce,Ea,fo,ur,Xe,he,Sa,ue,go,He,ke,jo,Na,Ba,Da,Va,qa,Ua,ja,Wa,Qe,Ka,Ga,Jt,bo,Zt,Be,xo,vr,gr,el,Dt,Ee,me,br,se,yo,ko,Yr];XE({theme:gC,components:zO});export{zO as allComponents,XE as applyTheme,gC as defaultTheme};
|