@umbraco-cms/backoffice 14.0.0--preview004-ad35ba20 → 14.0.0--preview004-653b707e
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.
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const ur=window,vo=ur.ShadowRoot&&(ur.ShadyCSS===void 0||ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fo=Symbol(),
|
|
5
|
+
*/const ur=window,vo=ur.ShadowRoot&&(ur.ShadyCSS===void 0||ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fo=Symbol(),Ds=new WeakMap;let Ls=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==fo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(vo&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Ds.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ds.set(i,e))}return e}toString(){return this.cssText}};const le=t=>new Ls(typeof t=="string"?t:t+"",void 0,fo),d=(t,...e)=>{const i=t.length===1?t[0]:e.reduce((o,r,s)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[s+1],t[0]);return new Ls(i,t,fo)},Pu=(t,e)=>{vo?t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),r=ur.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=i.cssText,t.appendChild(o)})},Ms=vo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return le(i)})(t):t;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var bo;const cr=window,
|
|
9
|
+
*/var bo;const cr=window,Ts=cr.trustedTypes,Cu=Ts?Ts.emptyScript:"",Ns=cr.reactiveElementPolyfillSupport,go={toAttribute(t,e){switch(e){case Boolean:t=t?Cu:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},Vs=(t,e)=>e!==t&&(e==e||t==t),mo={attribute:!0,type:String,converter:go,reflect:!1,hasChanged:Vs};let Ut=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const r=this._$Ep(o,i);r!==void 0&&(this._$Ev.set(r,o),e.push(r))}),e}static createProperty(e,i=mo){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,o,i);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(r){const s=this[e];this[i]=r,this.requestUpdate(e,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||mo}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const r of o)this.createProperty(r,i[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const r of o)i.unshift(Ms(r))}else e!==void 0&&i.push(Ms(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Pu(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=mo){var r;const s=this.constructor._$Ep(e,o);if(s!==void 0&&o.reflect===!0){const n=(((r=o.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?o.converter:go).toAttribute(i,o.type);this._$El=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,i){var o;const r=this.constructor,s=r._$Ev.get(e);if(s!==void 0&&this._$El!==s){const n=r.getPropertyOptions(s),u=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:go;this._$El=s,this[s]=u.fromAttribute(i,n.type),this._$El=null}}requestUpdate(e,i,o){let r=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Vs)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,s)=>this[s]=r),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var s;return(s=r.hostUpdate)===null||s===void 0?void 0:s.call(r)}),this.update(o)):this._$Ek()}catch(r){throw i=!1,this._$Ek(),r}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var r;return(r=o.hostUpdated)===null||r===void 0?void 0:r.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Ut.finalized=!0,Ut.elementProperties=new Map,Ut.elementStyles=[],Ut.shadowRootOptions={mode:"open"},Ns?.({ReactiveElement:Ut}),((bo=cr.reactiveElementVersions)!==null&&bo!==void 0?bo:cr.reactiveElementVersions=[]).push("1.6.1");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var _o;const hr=window,
|
|
14
|
-
\f\r]`,wi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/var _o;const hr=window,Dt=hr.trustedTypes,js=Dt?Dt.createPolicy("lit-html",{createHTML:t=>t}):void 0,dr="$lit$",Se=`lit$${(Math.random()+"").slice(9)}$`,yo="?"+Se,Ou=`<${yo}>`,nt=document,yi=()=>nt.createComment(""),xi=t=>t===null||typeof t!="object"&&typeof t!="function",Hs=Array.isArray,Bs=t=>Hs(t)||typeof t?.[Symbol.iterator]=="function",xo=`[
|
|
14
|
+
\f\r]`,wi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rs=/-->/g,Fs=/>/g,at=RegExp(`>|${xo}(?:([^\\s"'>=/]+)(${xo}*=${xo}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gs=/'/g,qs=/"/g,Ws=/^(?:script|style|textarea|title)$/i,Ks=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),l=Ks(1),_=Ks(2),F=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Xs=new WeakMap,lt=nt.createTreeWalker(nt,129,null,!1);function Ys(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}const Zs=(t,e)=>{const i=t.length-1,o=[];let r,s=e===2?"<svg>":"",n=wi;for(let u=0;u<i;u++){const c=t[u];let h,f,m=-1,g=0;for(;g<c.length&&(n.lastIndex=g,f=n.exec(c),f!==null);)g=n.lastIndex,n===wi?f[1]==="!--"?n=Rs:f[1]!==void 0?n=Fs:f[2]!==void 0?(Ws.test(f[2])&&(r=RegExp("</"+f[2],"g")),n=at):f[3]!==void 0&&(n=at):n===at?f[0]===">"?(n=r??wi,m=-1):f[1]===void 0?m=-2:(m=n.lastIndex-f[2].length,h=f[1],n=f[3]===void 0?at:f[3]==='"'?qs:Gs):n===qs||n===Gs?n=at:n===Rs||n===Fs?n=wi:(n=at,r=void 0);const x=n===at&&t[u+1].startsWith("/>")?" ":"";s+=n===wi?c+Ou:m>=0?(o.push(h),c.slice(0,m)+dr+c.slice(m)+Se+x):c+Se+(m===-2?(o.push(void 0),u):x)}return[Ys(t,s+(t[i]||"<?>")+(e===2?"</svg>":"")),o]};let wo=class $u{constructor({strings:e,_$litType$:i},o){let r;this.parts=[];let s=0,n=0;const u=e.length-1,c=this.parts,[h,f]=Zs(e,i);if(this.el=$u.createElement(h,o),lt.currentNode=this.el.content,i===2){const m=this.el.content,g=m.firstChild;g.remove(),m.append(...g.childNodes)}for(;(r=lt.nextNode())!==null&&c.length<u;){if(r.nodeType===1){if(r.hasAttributes()){const m=[];for(const g of r.getAttributeNames())if(g.endsWith(dr)||g.startsWith(Se)){const x=f[n++];if(m.push(g),x!==void 0){const w=r.getAttribute(x.toLowerCase()+dr).split(Se),E=/([.?@])?(.*)/.exec(x);c.push({type:1,index:s,name:E[2],strings:w,ctor:E[1]==="."?Js:E[1]==="?"?en:E[1]==="@"?tn:$i})}else c.push({type:6,index:s})}for(const g of m)r.removeAttribute(g)}if(Ws.test(r.tagName)){const m=r.textContent.split(Se),g=m.length-1;if(g>0){r.textContent=Dt?Dt.emptyScript:"";for(let x=0;x<g;x++)r.append(m[x],yi()),lt.nextNode(),c.push({type:2,index:++s});r.append(m[g],yi())}}}else if(r.nodeType===8)if(r.data===yo)c.push({type:2,index:s});else{let m=-1;for(;(m=r.data.indexOf(Se,m+1))!==-1;)c.push({type:7,index:s}),m+=Se.length-1}s++}}static createElement(e,i){const o=nt.createElement("template");return o.innerHTML=e,o}};function ut(t,e,i=t,o){var r,s,n,u;if(e===F)return e;let c=o!==void 0?(r=i._$Co)===null||r===void 0?void 0:r[o]:i._$Cl;const h=xi(e)?void 0:e._$litDirective$;return c?.constructor!==h&&((s=c?._$AO)===null||s===void 0||s.call(c,!1),h===void 0?c=void 0:(c=new h(t),c._$AT(t,i,o)),o!==void 0?((n=(u=i)._$Co)!==null&&n!==void 0?n:u._$Co=[])[o]=c:i._$Cl=c),c!==void 0&&(e=ut(t,c._$AS(t,e.values),c,o)),e}let Qs=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:r}=this._$AD,s=((i=e?.creationScope)!==null&&i!==void 0?i:nt).importNode(o,!0);lt.currentNode=s;let n=lt.nextNode(),u=0,c=0,h=r[0];for(;h!==void 0;){if(u===h.index){let f;h.type===2?f=new mi(n,n.nextSibling,this,e):h.type===1?f=new h.ctor(n,h.name,h.strings,this,e):h.type===6&&(f=new rn(n,this,e)),this._$AV.push(f),h=r[++c]}u!==h?.index&&(n=lt.nextNode(),u++)}return lt.currentNode=nt,s}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}};class mi{constructor(e,i,o,r){var s;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=r,this._$Cp=(s=r?.isConnected)===null||s===void 0||s}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=ut(this,e,i),xi(e)?e===$||e==null||e===""?(this._$AH!==$&&this._$AR(),this._$AH=$):e!==this._$AH&&e!==F&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Bs(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==$&&xi(this._$AH)?this._$AA.nextSibling.data=e:this.$(nt.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=wo.createElement(Ys(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===s)this._$AH.v(o);else{const n=new Qs(s,this),u=n.u(this.options);n.v(o),this.$(u),this._$AH=n}}_$AC(e){let i=Xs.get(e.strings);return i===void 0&&Xs.set(e.strings,i=new wo(e)),i}T(e){Hs(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const s of e)r===i.length?i.push(o=new mi(this.k(yi()),this.k(yi()),this,this.options)):o=i[r],o._$AI(s),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}}let $i=class{constructor(e,i,o,r,s){this.type=1,this._$AH=$,this._$AN=void 0,this.element=e,this.name=i,this._$AM=r,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,r){const s=this.strings;let n=!1;if(s===void 0)e=ut(this,e,i,0),n=!xi(e)||e!==this._$AH&&e!==F,n&&(this._$AH=e);else{const u=e;let c,h;for(e=s[0],c=0;c<s.length-1;c++)h=ut(this,u[o+c],i,c),h===F&&(h=this._$AH[c]),n||(n=!xi(h)||h!==this._$AH[c]),h===$?e=$:e!==$&&(e+=(h??"")+s[c+1]),this._$AH[c]=h}n&&!r&&this.j(e)}j(e){e===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Js=class extends $i{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===$?void 0:e}};const ku=Dt?Dt.emptyScript:"";class en extends $i{constructor(){super(...arguments),this.type=4}j(e){e&&e!==$?this.element.setAttribute(this.name,ku):this.element.removeAttribute(this.name)}}class tn extends $i{constructor(e,i,o,r,s){super(e,i,o,r,s),this.type=5}_$AI(e,i=this){var o;if((e=(o=ut(this,e,i,0))!==null&&o!==void 0?o:$)===F)return;const r=this._$AH,s=e===$&&r!==$||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==$&&(r===$||s);s&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class rn{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ut(this,e)}}const Su={O:dr,P:Se,A:yo,C:1,M:Zs,L:Qs,R:Bs,D:ut,I:mi,V:$i,H:en,N:tn,U:Js,F:rn},on=hr.litHtmlPolyfillSupport;on?.(wo,mi),((_o=hr.litHtmlVersions)!==null&&_o!==void 0?_o:hr.litHtmlVersions=[]).push("2.8.0");const Iu=(t,e,i)=>{var o,r;const s=(o=i?.renderBefore)!==null&&o!==void 0?o:e;let n=s._$litPart$;if(n===void 0){const u=(r=i?.renderBefore)!==null&&r!==void 0?r:null;s._$litPart$=n=new mi(e.insertBefore(yi(),u),u,void 0,i??{})}return n._$AI(t),n};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/var $o,Eo;let v=class extends
|
|
19
|
+
*/var $o,Eo;let v=class extends Ut{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const o=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=o.firstChild),o}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Iu(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return F}};v.finalized=!0,v._$litElement$=!0,($o=globalThis.litElementHydrateSupport)===null||$o===void 0||$o.call(globalThis,{LitElement:v});const sn=globalThis.litElementPolyfillSupport;sn?.({LitElement:v}),((Eo=globalThis.litElementVersions)!==null&&Eo!==void 0?Eo:globalThis.litElementVersions=[]).push("3.3.2");var zu=`.uui-text {
|
|
20
20
|
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
21
21
|
font-size: 15px;
|
|
22
22
|
line-height: calc(var(--uui-size-2,6px) * 4);
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
margin-top: var(--uui-size-layout-1,24px);
|
|
185
185
|
margin-bottom: var(--uui-size-layout-1,24px);
|
|
186
186
|
}
|
|
187
|
-
`;const
|
|
187
|
+
`;const Au=le(zu);/**
|
|
188
188
|
* @license
|
|
189
189
|
* Copyright 2017 Google LLC
|
|
190
190
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
* @license
|
|
193
193
|
* Copyright 2017 Google LLC
|
|
194
194
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
195
|
-
*/const
|
|
195
|
+
*/const Uu=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function a(t){return(e,i)=>i!==void 0?((o,r,s)=>{r.constructor.createProperty(s,o)})(t,e,i):Uu(t,e)}/**
|
|
196
196
|
* @license
|
|
197
197
|
* Copyright 2017 Google LLC
|
|
198
198
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -208,11 +208,11 @@
|
|
|
208
208
|
* @license
|
|
209
209
|
* Copyright 2017 Google LLC
|
|
210
210
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
211
|
-
*/function
|
|
211
|
+
*/function Du(t){return Co({descriptor:e=>({get(){var i,o;return(o=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelectorAll(t))!==null&&o!==void 0?o:[]},enumerable:!0,configurable:!0})})}/**
|
|
212
212
|
* @license
|
|
213
213
|
* Copyright 2021 Google LLC
|
|
214
214
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
215
|
-
*/var Oo;const
|
|
215
|
+
*/var Oo;const Lu=((Oo=window.HTMLSlotElement)===null||Oo===void 0?void 0:Oo.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function Ke(t){const{slot:e,selector:i}=t??{};return Co({descriptor:o=>({get(){var r;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(s),u=n!=null?Lu(n,t):[];return i?u.filter(c=>c.matches(i)):u},enumerable:!0,configurable:!0})})}const Mu=d`
|
|
216
216
|
@keyframes uui-blink {
|
|
217
217
|
0%,
|
|
218
218
|
100% {
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
opacity: 1;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
`,
|
|
225
|
+
`,Tu=le("uui-blink 0.9s infinite both"),Nu=d`
|
|
226
226
|
@keyframes pulse {
|
|
227
227
|
0% {
|
|
228
228
|
-webkit-transform: translate(-50%, -50%) scale(0.2);
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
opacity: 0;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,Vu=le("pulse 0.8s ease-in-out infinite both"),ju=d`
|
|
244
244
|
@keyframes uui-horizontal-shake {
|
|
245
245
|
10%,
|
|
246
246
|
90% {
|
|
@@ -263,14 +263,14 @@
|
|
|
263
263
|
transform: translateX(2px);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
`,
|
|
266
|
+
`,Hu=le("uui-horizontal-shake 600ms ease backwards");var Bu=Object.defineProperty,nn=Object.getOwnPropertySymbols,Ru=Object.prototype.hasOwnProperty,Fu=Object.prototype.propertyIsEnumerable,an=(t,e,i)=>e in t?Bu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gu=(t,e)=>{for(var i in e||(e={}))Ru.call(e,i)&&an(t,i,e[i]);if(nn)for(var i of nn(e))Fu.call(e,i)&&an(t,i,e[i]);return t};let ko=class extends Event{constructor(e,i={}){super(e,Gu({},i)),this.detail=i.detail||{}}};var qu=Object.defineProperty,ln=Object.getOwnPropertySymbols,Wu=Object.prototype.hasOwnProperty,Ku=Object.prototype.propertyIsEnumerable,un=(t,e,i)=>e in t?qu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,cn=(t,e)=>{for(var i in e||(e={}))Wu.call(e,i)&&un(t,i,e[i]);if(ln)for(var i of ln(e))Ku.call(e,i)&&un(t,i,e[i]);return t};let ct=class extends ko{constructor(e,i={}){super(e,cn(cn({},{bubbles:!0}),i))}};ct.VALID="valid",ct.INVALID="invalid";var Xu=Object.defineProperty,hn=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,dn=(t,e,i)=>e in t?Xu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,pn=(t,e)=>{for(var i in e||(e={}))Yu.call(e,i)&&dn(t,i,e[i]);if(hn)for(var i of hn(e))Zu.call(e,i)&&dn(t,i,e[i]);return t};let ht=class extends ko{constructor(e,i={}){super(e,pn(pn({},{bubbles:!0,cancelable:!0}),i))}};ht.SELECTED="selected",ht.DESELECTED="deselected";var Qu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,ec=(t,e,i,o)=>{for(var r=o>1?void 0:o?Ju(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Qu(e,i,r),r};const tc=t=>{class e extends t{constructor(){super(...arguments),this.active=!1}}return ec([a({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var ic=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,vn=(t,e,i,o)=>{for(var r=o>1?void 0:o?rc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&ic(e,i,r),r};const oc=(t,e)=>{class i extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(r){this._labelSlotHasContent=r.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`
|
|
267
267
|
${this._labelSlotHasContent===!1?l`<span class="label">${this.label}</span>`:""}
|
|
268
268
|
<slot
|
|
269
269
|
class="label"
|
|
270
270
|
style=${this._labelSlotHasContent?"":"visibility: hidden"}
|
|
271
271
|
name=${t||""}
|
|
272
272
|
@slotchange=${this.labelSlotChanged}></slot>
|
|
273
|
-
`}}return
|
|
273
|
+
`}}return vn([a({type:String})],i.prototype,"label",2),vn([b()],i.prototype,"_labelSlotHasContent",2),i};var sc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,fn=(t,e,i,o)=>{for(var r=o>1?void 0:o?nc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&sc(e,i,r),r};const ac=t=>{class e extends t{constructor(...o){super(...o),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=r=>{if(this.selectableTarget===this){if(r.key!==" "&&r.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(o){const r=this._selectable;this._selectable=o,this.selectableTarget||this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selectable",r)}_select(){if(!this.selectable)return;const o=new ht(ht.SELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const o=new ht(ht.DESELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!1)}_handleClick(o){o.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return fn([a({type:Boolean,reflect:!0})],e.prototype,"selectable",1),fn([a({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var lc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,cc=(t,e,i,o)=>{for(var r=o>1?void 0:o?uc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&lc(e,i,r),r};const hc=t=>{class e extends t{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(o){const r=this._selectOnly;this._selectOnly=o,this.requestUpdate("selectOnly",r)}}return cc([a({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var dc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor,dt=(t,e,i,o)=>{for(var r=o>1?void 0:o?pc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&dc(e,i,r),r};const vc=t=>{class e extends t{constructor(...o){super(...o),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(o){const r=this._value;this._value=o,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",r)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(o,r,s){const n={flagKey:o,getMessageMethod:r,checkMethod:s};return this._validators.push(n),n}removeValidator(o){const r=this._validators.indexOf(o);r!==-1&&this._validators.splice(r,1)}addFormControlElement(o){this._formCtrlElements.push(o)}setCustomValidity(o){this._customValidityObject&&this.removeValidator(this._customValidityObject),o!=null&&o!==""&&(this._customValidityObject=this.addValidator("customError",()=>o,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(r=>{for(const s in r.validity)s!=="valid"&&r.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,r.validationMessage,r))}),this._validators.forEach(r=>{r.checkMethod()&&(this._validityState[r.flagKey]=!0,this._internals.setValidity(this._validityState,r.getMessageMethod(),this.getFormElement()))});const o=Object.values(this._validityState).includes(!0);this._validityState.valid=!o,o?this.dispatchEvent(new ct(ct.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new ct(ct.VALID)))}updated(o){super.updated(o),this._runValidators()}submit(){var o;(o=this._form)==null||o.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var o;for(const r in this._formCtrlElements)if(this._formCtrlElements[r].checkValidity()===!1)return!1;return(o=this._internals)==null?void 0:o.checkValidity()}get validity(){return this._validityState}get validationMessage(){var o;return(o=this._internals)==null?void 0:o.validationMessage}}return e.formAssociated=!0,dt([a({type:String})],e.prototype,"name",2),dt([a()],e.prototype,"value",1),dt([a({type:Boolean,reflect:!0})],e.prototype,"pristine",2),dt([a({type:Boolean,reflect:!0})],e.prototype,"required",2),dt([a({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),dt([a({type:Boolean,reflect:!0})],e.prototype,"error",2),dt([a({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};let fc=class{constructor(e,i){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(i)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const bc=(t,e,i=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",i,t)},gc=(t,e)=>{function i(r){const s=t.getBoundingClientRect(),n=t.ownerDocument.defaultView,u=s.left+n.scrollX,c=s.top+n.scrollY;let h;r instanceof TouchEvent?h=r.touches[0]:h=r;const f=h.pageX-u,m=h.pageY-c;e?.onMove&&e.onMove(f,m)}function o(){document.removeEventListener("pointermove",i),document.removeEventListener("pointerup",o),e?.onStop&&e.onStop()}document.addEventListener("pointermove",i,{passive:!0}),document.addEventListener("pointerup",o),e?.initialEvent&&i(e.initialEvent)},mc=(t,e,i)=>Math.min(Math.max(t,e),i),_c=(t,e,i)=>i+e-t,yc=t=>{const e=Math.round(t).toString(16);return e.length===1?`0${e}`:e},bn=(t,e,i)=>{let o=t;for(;o!==null;){const r=o instanceof HTMLElement&&o.hasAttribute(e)&&o.getAttribute(e)===i,s=o.querySelector(`[${e}="${i}"]`)!==null;if(r)return o;if(s)return o.querySelector(`[${e}="${i}"]`);o=o.parentElement||o.parentNode||o.host||null}return null};var xc=Object.defineProperty,wc=Object.getOwnPropertyDescriptor,$c=(t,e,i,o)=>{for(var r=o>1?void 0:o?wc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&xc(e,i,r),r},gn=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},mn=(t,e,i)=>(gn(t,e,"read from private field"),i?i.call(t):e.get(t)),_n=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},Ec=(t,e,i,o)=>(gn(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i);const Pc=t=>{var e,i;class o extends t{constructor(...s){super(...s),_n(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const n=bn(this,"id",this.popoverContainerElement);n&&(mn(this,e)?n.hidePopover():n.showPopover())},_n(this,i,n=>{requestAnimationFrame(()=>{Ec(this,e,n.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",mn(this,i))}}return e=new WeakMap,i=new WeakMap,$c([a({type:String,attribute:"popovertarget"})],o.prototype,"popoverContainerElement",2),o};function Cc(t,e){return i=>{if(t.indexOf("-")>0===!1){console.error(`${t} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(t)||window.customElements.define(t,i,e)}}const Oc=["default","primary","secondary","outline","placeholder"],kc=["default","positive","warning","danger"],Sc=["h1","h2","h3","h4","h5","h6"];function p(t,e){return i=>{if(t.indexOf("-")>0===!1){console.error(`${t} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(t)||window.customElements.define(t,i,e)}}var Ic=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Ac=(t,e,i,o)=>{for(var r=o>1?void 0:o?zc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Ic(e,i,r),r};let Lt=class extends v{render(){return l`<slot></slot>`}};Lt.styles=[d`
|
|
274
274
|
:host {
|
|
275
275
|
display: inline-flex;
|
|
276
276
|
align-items: stretch;
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
::slotted(*:hover) {
|
|
317
317
|
z-index: 1;
|
|
318
318
|
}
|
|
319
|
-
`],
|
|
319
|
+
`],Lt=Ac([p("uui-button-group")],Lt);var Uc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,Lc=(t,e,i,o)=>{for(var r=o>1?void 0:o?Dc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Uc(e,i,r),r};let pr=class extends Lt{};pr.styles=[...Lt.styles,d`
|
|
320
320
|
::slotted(*) {
|
|
321
321
|
--uui-button-padding-left-factor: 0.5;
|
|
322
322
|
--uui-button-padding-right-factor: 0.5;
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
--uui-button-padding-left-factor: 1.5;
|
|
359
359
|
--uui-button-padding-right-factor: 1.5;
|
|
360
360
|
}
|
|
361
|
-
`],pr=
|
|
361
|
+
`],pr=Lc([p("uui-action-bar")],pr);var Mc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,vr=(t,e,i,o)=>{for(var r=o>1?void 0:o?Tc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Mc(e,i,r),r};let pt=class extends v{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(t){t.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((t,e)=>{t.style.display=e<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return l`
|
|
362
362
|
<slot @slotchange=${this._onSlotChange}></slot>
|
|
363
363
|
${this._isLimitExceeded()?l`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}
|
|
364
364
|
`}};pt.styles=[d`
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
#overflow-indication {
|
|
379
379
|
margin-left: 6px;
|
|
380
380
|
}
|
|
381
|
-
`],vr([Ke({selector:"uui-avatar, [uui-avatar]",flatten:!0})],pt.prototype,"_avatarNodes",2),vr([b()],pt.prototype,"_avatarArray",2),vr([a({type:Number,attribute:!0})],pt.prototype,"limit",2),pt=vr([p("uui-avatar-group")],pt);var
|
|
381
|
+
`],vr([Ke({selector:"uui-avatar, [uui-avatar]",flatten:!0})],pt.prototype,"_avatarNodes",2),vr([b()],pt.prototype,"_avatarArray",2),vr([a({type:Number,attribute:!0})],pt.prototype,"limit",2),pt=vr([p("uui-avatar-group")],pt);var Nc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,Mt=(t,e,i,o)=>{for(var r=o>1?void 0:o?Vc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Nc(e,i,r),r};let Ie=class extends v{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(t){const e=this._name;this._name=t,this.initials=this.createInitials(this._name),this.requestUpdate("title",e)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(t){let e="";if(!t)return e;const i=t.match(/(\w+)/g);return i?.length?(e=i[0].substring(0,1),i.length>1&&(e+=i[i.length-1].substring(0,1)),e.toUpperCase()):e}renderImage(){return l` <img
|
|
382
382
|
src="${this.imgSrc}"
|
|
383
383
|
srcset="${this.imgSrcset}"
|
|
384
384
|
alt="${this.initials}"
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
overflow: hidden;
|
|
418
418
|
border-radius: 50%;
|
|
419
419
|
}
|
|
420
|
-
`],Mt([a({type:Boolean,attribute:!0,reflect:!0})],Ie.prototype,"overflow",2),Mt([a({type:String,attribute:"img-src"})],Ie.prototype,"imgSrc",2),Mt([a({type:String,attribute:"img-srcset"})],Ie.prototype,"imgSrcset",2),Mt([a({type:String,reflect:!0})],Ie.prototype,"name",1),Mt([b()],Ie.prototype,"initials",2),Ie=Mt([p("uui-avatar")],Ie);var
|
|
420
|
+
`],Mt([a({type:Boolean,attribute:!0,reflect:!0})],Ie.prototype,"overflow",2),Mt([a({type:String,attribute:"img-src"})],Ie.prototype,"imgSrc",2),Mt([a({type:String,attribute:"img-srcset"})],Ie.prototype,"imgSrcset",2),Mt([a({type:String,reflect:!0})],Ie.prototype,"name",1),Mt([b()],Ie.prototype,"initials",2),Ie=Mt([p("uui-avatar")],Ie);var jc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,fr=(t,e,i,o)=>{for(var r=o>1?void 0:o?Hc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&jc(e,i,r),r};let vt=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return l` <slot></slot> `}};vt.styles=[d`
|
|
421
421
|
:host {
|
|
422
422
|
position: var(--uui-badge-position, absolute);
|
|
423
423
|
display: flex;
|
|
@@ -527,14 +527,14 @@
|
|
|
527
527
|
animation: none;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
`],fr([a({reflect:!0})],vt.prototype,"color",2),fr([a({reflect:!0})],vt.prototype,"look",2),fr([a({type:Boolean,reflect:!0})],vt.prototype,"attention",2),vt=fr([p("uui-badge")],vt);var
|
|
530
|
+
`],fr([a({reflect:!0})],vt.prototype,"color",2),fr([a({reflect:!0})],vt.prototype,"look",2),fr([a({type:Boolean,reflect:!0})],vt.prototype,"attention",2),vt=fr([p("uui-badge")],vt);var Bc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,Fc=(t,e,i,o)=>{for(var r=o>1?void 0:o?Rc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Bc(e,i,r),r};const Ei=t=>{class e extends t{constructor(){super(...arguments),this.active=!1}}return Fc([a({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Gc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,yn=(t,e,i,o)=>{for(var r=o>1?void 0:o?qc(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Gc(e,i,r),r};const ve=(t,e)=>{class i extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(r){this._labelSlotHasContent=r.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`
|
|
531
531
|
${this._labelSlotHasContent===!1?l`<span class="label">${this.label}</span>`:""}
|
|
532
532
|
<slot
|
|
533
533
|
class="label"
|
|
534
534
|
style=${this._labelSlotHasContent?"":"visibility: hidden"}
|
|
535
535
|
name=${t||""}
|
|
536
536
|
@slotchange=${this.labelSlotChanged}></slot>
|
|
537
|
-
`}}return xn([a({type:String})],i.prototype,"label",2),xn([b()],i.prototype,"_labelSlotHasContent",2),i};var Kc=Object.defineProperty,wn=Object.getOwnPropertySymbols,Xc=Object.prototype.hasOwnProperty,Yc=Object.prototype.propertyIsEnumerable,$n=(t,e,i)=>e in t?Kc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Zc=(t,e)=>{for(var i in e||(e={}))Xc.call(e,i)&&$n(t,i,e[i]);if(wn)for(var i of wn(e))Yc.call(e,i)&&$n(t,i,e[i]);return t};let Qc=class extends Event{constructor(e,i={}){super(e,Zc({},i)),this.detail=i.detail||{}}};var Jc=Object.defineProperty,En=Object.getOwnPropertySymbols,eh=Object.prototype.hasOwnProperty,th=Object.prototype.propertyIsEnumerable,Pn=(t,e,i)=>e in t?Jc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Cn=(t,e)=>{for(var i in e||(e={}))eh.call(e,i)&&Pn(t,i,e[i]);if(En)for(var i of En(e))th.call(e,i)&&Pn(t,i,e[i]);return t};let Nt=class extends Qc{constructor(e,i={}){super(e,Cn(Cn({},{bubbles:!0,cancelable:!0}),i))}};Nt.SELECTED="selected",Nt.DESELECTED="deselected";var ih=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,On=(t,e,i,o)=>{for(var r=o>1?void 0:o?rh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&ih(e,i,r),r};const Vt=t=>{class e extends t{constructor(...o){super(...o),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=r=>{if(this.selectableTarget===this){if(r.key!==" "&&r.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(o){const r=this._selectable;this._selectable=o,this.selectableTarget||this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selectable",r)}_select(){if(!this.selectable)return;const o=new Nt(Nt.SELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const o=new Nt(Nt.DESELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!1)}_handleClick(o){o.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return On([a({type:Boolean,reflect:!0})],e.prototype,"selectable",1),On([a({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var oh=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,nh=(t,e,i,o)=>{for(var r=o>1?void 0:o?sh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&oh(e,i,r),r};const br=t=>{class e extends t{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(o){const r=this._selectOnly;this._selectOnly=o,this.requestUpdate("selectOnly",r)}}return nh([a({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var ah=Object.defineProperty,kn=Object.getOwnPropertySymbols,lh=Object.prototype.hasOwnProperty,uh=Object.prototype.propertyIsEnumerable,Sn=(t,e,i)=>e in t?ah(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ch=(t,e)=>{for(var i in e||(e={}))lh.call(e,i)&&Sn(t,i,e[i]);if(kn)for(var i of kn(e))uh.call(e,i)&&Sn(t,i,e[i]);return t};let In=class extends Event{constructor(e,i={}){super(e,ch({},i)),this.detail=i.detail||{}}};var hh=Object.defineProperty,zn=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,ph=Object.prototype.propertyIsEnumerable,An=(t,e,i)=>e in t?hh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Un=(t,e)=>{for(var i in e||(e={}))dh.call(e,i)&&An(t,i,e[i]);if(zn)for(var i of zn(e))ph.call(e,i)&&An(t,i,e[i]);return t};let jt=class extends In{constructor(e,i={}){super(e,Un(Un({},{bubbles:!0}),i))}};jt.VALID="valid",jt.INVALID="invalid";var vh=Object.defineProperty,Dn=Object.getOwnPropertySymbols,fh=Object.prototype.hasOwnProperty,bh=Object.prototype.propertyIsEnumerable,Ln=(t,e,i)=>e in t?vh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Tn=(t,e)=>{for(var i in e||(e={}))fh.call(e,i)&&Ln(t,i,e[i]);if(Dn)for(var i of Dn(e))bh.call(e,i)&&Ln(t,i,e[i]);return t};let Mn=class extends In{constructor(e,i={}){super(e,Tn(Tn({},{bubbles:!0,cancelable:!0}),i))}};Mn.SELECTED="selected",Mn.DESELECTED="deselected";var gh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,ft=(t,e,i,o)=>{for(var r=o>1?void 0:o?mh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&gh(e,i,r),r};const fe=t=>{class e extends t{constructor(...o){super(...o),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(o){const r=this._value;this._value=o,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",r)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(o,r,s){const n={flagKey:o,getMessageMethod:r,checkMethod:s};return this._validators.push(n),n}removeValidator(o){const r=this._validators.indexOf(o);r!==-1&&this._validators.splice(r,1)}addFormControlElement(o){this._formCtrlElements.push(o)}setCustomValidity(o){this._customValidityObject&&this.removeValidator(this._customValidityObject),o!=null&&o!==""&&(this._customValidityObject=this.addValidator("customError",()=>o,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(r=>{for(const s in r.validity)s!=="valid"&&r.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,r.validationMessage,r))}),this._validators.forEach(r=>{r.checkMethod()&&(this._validityState[r.flagKey]=!0,this._internals.setValidity(this._validityState,r.getMessageMethod(),this.getFormElement()))});const o=Object.values(this._validityState).includes(!0);this._validityState.valid=!o,o?this.dispatchEvent(new jt(jt.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new jt(jt.VALID)))}updated(o){super.updated(o),this._runValidators()}submit(){var o;(o=this._form)==null||o.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var o;for(const r in this._formCtrlElements)if(this._formCtrlElements[r].checkValidity()===!1)return!1;return(o=this._internals)==null?void 0:o.checkValidity()}get validity(){return this._validityState}get validationMessage(){var o;return(o=this._internals)==null?void 0:o.validationMessage}}return e.formAssociated=!0,ft([a({type:String})],e.prototype,"name",2),ft([a()],e.prototype,"value",1),ft([a({type:Boolean,reflect:!0})],e.prototype,"pristine",2),ft([a({type:Boolean,reflect:!0})],e.prototype,"required",2),ft([a({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),ft([a({type:Boolean,reflect:!0})],e.prototype,"error",2),ft([a({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e},_h=(t,e,i)=>{let o=t;for(;o!==null;){const r=o instanceof HTMLElement&&o.hasAttribute(e)&&o.getAttribute(e)===i,s=o.querySelector(`[${e}="${i}"]`)!==null;if(r)return o;if(s)return o.querySelector(`[${e}="${i}"]`);o=o.parentElement||o.parentNode||o.host||null}return null};var yh=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,wh=(t,e,i,o)=>{for(var r=o>1?void 0:o?xh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&yh(e,i,r),r},Nn=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},Vn=(t,e,i)=>(Nn(t,e,"read from private field"),i?i.call(t):e.get(t)),jn=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},$h=(t,e,i,o)=>(Nn(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i);const Eh=t=>{var e,i;class o extends t{constructor(...s){super(...s),jn(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const n=_h(this,"id",this.popoverContainerElement);n&&(Vn(this,e)?n.hidePopover():n.showPopover())},jn(this,i,n=>{requestAnimationFrame(()=>{$h(this,e,n.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",Vn(this,i))}}return e=new WeakMap,i=new WeakMap,wh([a({type:String,attribute:"popovertarget"})],o.prototype,"popoverContainerElement",2),o};var Ph=Object.defineProperty,Hn=Object.getOwnPropertySymbols,Ch=Object.prototype.hasOwnProperty,Oh=Object.prototype.propertyIsEnumerable,Bn=(t,e,i)=>e in t?Ph(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,kh=(t,e)=>{for(var i in e||(e={}))Ch.call(e,i)&&Bn(t,i,e[i]);if(Hn)for(var i of Hn(e))Oh.call(e,i)&&Bn(t,i,e[i]);return t};class k extends Event{constructor(e,i={}){super(e,kh({},i)),this.detail=i.detail||{}}}var Sh=Object.defineProperty,Rn=Object.getOwnPropertySymbols,Ih=Object.prototype.hasOwnProperty,zh=Object.prototype.propertyIsEnumerable,Fn=(t,e,i)=>e in t?Sh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gn=(t,e)=>{for(var i in e||(e={}))Ih.call(e,i)&&Fn(t,i,e[i]);if(Rn)for(var i of Rn(e))zh.call(e,i)&&Fn(t,i,e[i]);return t};class Ht extends k{constructor(e,i={}){super(e,Gn(Gn({},{bubbles:!0}),i))}}Ht.VALID="valid",Ht.INVALID="invalid";var Ah=Object.defineProperty,qn=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,Wn=(t,e,i)=>e in t?Ah(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Kn=(t,e)=>{for(var i in e||(e={}))Uh.call(e,i)&&Wn(t,i,e[i]);if(qn)for(var i of qn(e))Dh.call(e,i)&&Wn(t,i,e[i]);return t};class Xe extends k{constructor(e,i={}){super(e,Kn(Kn({},{bubbles:!0,cancelable:!0}),i))}}Xe.SELECTED="selected",Xe.DESELECTED="deselected";var Lh=Object.defineProperty,Xn=Object.getOwnPropertySymbols,Th=Object.prototype.hasOwnProperty,Mh=Object.prototype.propertyIsEnumerable,Yn=(t,e,i)=>e in t?Lh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Zn=(t,e)=>{for(var i in e||(e={}))Th.call(e,i)&&Yn(t,i,e[i]);if(Xn)for(var i of Xn(e))Mh.call(e,i)&&Yn(t,i,e[i]);return t};class gr extends k{constructor(e,i={}){super(e,Zn(Zn({},{bubbles:!0}),i))}}gr.CHANGE="change";var Nh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,mr=(t,e,i,o)=>{for(var r=o>1?void 0:o?Vh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Nh(e,i,r),r};class be extends fe(ve("",v)){constructor(e="checkbox"){super(),this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(e){const i=this._value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",i)}get checked(){return this._checked}set checked(e){const i=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",i)}getFormElement(){return this._input}_onKeypress(e){e.key=="Enter"&&this.submit()}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var i;super.firstUpdated(e);const o=(i=this.shadowRoot)==null?void 0:i.querySelector("label");let r=!1;this._input.addEventListener("blur",()=>{r===!1&&this.style.setProperty("--uui-show-focus-outline","1"),r=!1}),o.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),r=!0}),o.addEventListener("mouseup",()=>{r=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new gr(gr.CHANGE))}render(){return l`
|
|
537
|
+
`}}return yn([a({type:String})],i.prototype,"label",2),yn([b()],i.prototype,"_labelSlotHasContent",2),i};var Wc=Object.defineProperty,xn=Object.getOwnPropertySymbols,Kc=Object.prototype.hasOwnProperty,Xc=Object.prototype.propertyIsEnumerable,wn=(t,e,i)=>e in t?Wc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Yc=(t,e)=>{for(var i in e||(e={}))Kc.call(e,i)&&wn(t,i,e[i]);if(xn)for(var i of xn(e))Xc.call(e,i)&&wn(t,i,e[i]);return t};let Zc=class extends Event{constructor(e,i={}){super(e,Yc({},i)),this.detail=i.detail||{}}};var Qc=Object.defineProperty,$n=Object.getOwnPropertySymbols,Jc=Object.prototype.hasOwnProperty,eh=Object.prototype.propertyIsEnumerable,En=(t,e,i)=>e in t?Qc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Pn=(t,e)=>{for(var i in e||(e={}))Jc.call(e,i)&&En(t,i,e[i]);if($n)for(var i of $n(e))eh.call(e,i)&&En(t,i,e[i]);return t};let Tt=class extends Zc{constructor(e,i={}){super(e,Pn(Pn({},{bubbles:!0,cancelable:!0}),i))}};Tt.SELECTED="selected",Tt.DESELECTED="deselected";var th=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,Cn=(t,e,i,o)=>{for(var r=o>1?void 0:o?ih(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&th(e,i,r),r};const Nt=t=>{class e extends t{constructor(...o){super(...o),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=r=>{if(this.selectableTarget===this){if(r.key!==" "&&r.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(o){const r=this._selectable;this._selectable=o,this.selectableTarget||this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selectable",r)}_select(){if(!this.selectable)return;const o=new Tt(Tt.SELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const o=new Tt(Tt.DESELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!1)}_handleClick(o){o.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return Cn([a({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Cn([a({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var rh=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,sh=(t,e,i,o)=>{for(var r=o>1?void 0:o?oh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&rh(e,i,r),r};const br=t=>{class e extends t{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(o){const r=this._selectOnly;this._selectOnly=o,this.requestUpdate("selectOnly",r)}}return sh([a({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var nh=Object.defineProperty,On=Object.getOwnPropertySymbols,ah=Object.prototype.hasOwnProperty,lh=Object.prototype.propertyIsEnumerable,kn=(t,e,i)=>e in t?nh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,uh=(t,e)=>{for(var i in e||(e={}))ah.call(e,i)&&kn(t,i,e[i]);if(On)for(var i of On(e))lh.call(e,i)&&kn(t,i,e[i]);return t};let Sn=class extends Event{constructor(e,i={}){super(e,uh({},i)),this.detail=i.detail||{}}};var ch=Object.defineProperty,In=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,dh=Object.prototype.propertyIsEnumerable,zn=(t,e,i)=>e in t?ch(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,An=(t,e)=>{for(var i in e||(e={}))hh.call(e,i)&&zn(t,i,e[i]);if(In)for(var i of In(e))dh.call(e,i)&&zn(t,i,e[i]);return t};let Vt=class extends Sn{constructor(e,i={}){super(e,An(An({},{bubbles:!0}),i))}};Vt.VALID="valid",Vt.INVALID="invalid";var ph=Object.defineProperty,Un=Object.getOwnPropertySymbols,vh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,Dn=(t,e,i)=>e in t?ph(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ln=(t,e)=>{for(var i in e||(e={}))vh.call(e,i)&&Dn(t,i,e[i]);if(Un)for(var i of Un(e))fh.call(e,i)&&Dn(t,i,e[i]);return t};let Mn=class extends Sn{constructor(e,i={}){super(e,Ln(Ln({},{bubbles:!0,cancelable:!0}),i))}};Mn.SELECTED="selected",Mn.DESELECTED="deselected";var bh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,ft=(t,e,i,o)=>{for(var r=o>1?void 0:o?gh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&bh(e,i,r),r};const fe=t=>{class e extends t{constructor(...o){super(...o),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(o){const r=this._value;this._value=o,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",r)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(o,r,s){const n={flagKey:o,getMessageMethod:r,checkMethod:s};return this._validators.push(n),n}removeValidator(o){const r=this._validators.indexOf(o);r!==-1&&this._validators.splice(r,1)}addFormControlElement(o){this._formCtrlElements.push(o)}setCustomValidity(o){this._customValidityObject&&this.removeValidator(this._customValidityObject),o!=null&&o!==""&&(this._customValidityObject=this.addValidator("customError",()=>o,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(r=>{for(const s in r.validity)s!=="valid"&&r.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,r.validationMessage,r))}),this._validators.forEach(r=>{r.checkMethod()&&(this._validityState[r.flagKey]=!0,this._internals.setValidity(this._validityState,r.getMessageMethod(),this.getFormElement()))});const o=Object.values(this._validityState).includes(!0);this._validityState.valid=!o,o?this.dispatchEvent(new Vt(Vt.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new Vt(Vt.VALID)))}updated(o){super.updated(o),this._runValidators()}submit(){var o;(o=this._form)==null||o.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var o;for(const r in this._formCtrlElements)if(this._formCtrlElements[r].checkValidity()===!1)return!1;return(o=this._internals)==null?void 0:o.checkValidity()}get validity(){return this._validityState}get validationMessage(){var o;return(o=this._internals)==null?void 0:o.validationMessage}}return e.formAssociated=!0,ft([a({type:String})],e.prototype,"name",2),ft([a()],e.prototype,"value",1),ft([a({type:Boolean,reflect:!0})],e.prototype,"pristine",2),ft([a({type:Boolean,reflect:!0})],e.prototype,"required",2),ft([a({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),ft([a({type:Boolean,reflect:!0})],e.prototype,"error",2),ft([a({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e},mh=(t,e,i)=>{let o=t;for(;o!==null;){const r=o instanceof HTMLElement&&o.hasAttribute(e)&&o.getAttribute(e)===i,s=o.querySelector(`[${e}="${i}"]`)!==null;if(r)return o;if(s)return o.querySelector(`[${e}="${i}"]`);o=o.parentElement||o.parentNode||o.host||null}return null};var _h=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,xh=(t,e,i,o)=>{for(var r=o>1?void 0:o?yh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&_h(e,i,r),r},Tn=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},Nn=(t,e,i)=>(Tn(t,e,"read from private field"),i?i.call(t):e.get(t)),Vn=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},wh=(t,e,i,o)=>(Tn(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i);const $h=t=>{var e,i;class o extends t{constructor(...s){super(...s),Vn(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const n=mh(this,"id",this.popoverContainerElement);n&&(Nn(this,e)?n.hidePopover():n.showPopover())},Vn(this,i,n=>{requestAnimationFrame(()=>{wh(this,e,n.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",Nn(this,i))}}return e=new WeakMap,i=new WeakMap,xh([a({type:String,attribute:"popovertarget"})],o.prototype,"popoverContainerElement",2),o};var Eh=Object.defineProperty,jn=Object.getOwnPropertySymbols,Ph=Object.prototype.hasOwnProperty,Ch=Object.prototype.propertyIsEnumerable,Hn=(t,e,i)=>e in t?Eh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Oh=(t,e)=>{for(var i in e||(e={}))Ph.call(e,i)&&Hn(t,i,e[i]);if(jn)for(var i of jn(e))Ch.call(e,i)&&Hn(t,i,e[i]);return t};class k extends Event{constructor(e,i={}){super(e,Oh({},i)),this.detail=i.detail||{}}}var kh=Object.defineProperty,Bn=Object.getOwnPropertySymbols,Sh=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable,Rn=(t,e,i)=>e in t?kh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Fn=(t,e)=>{for(var i in e||(e={}))Sh.call(e,i)&&Rn(t,i,e[i]);if(Bn)for(var i of Bn(e))Ih.call(e,i)&&Rn(t,i,e[i]);return t};class jt extends k{constructor(e,i={}){super(e,Fn(Fn({},{bubbles:!0}),i))}}jt.VALID="valid",jt.INVALID="invalid";var zh=Object.defineProperty,Gn=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Uh=Object.prototype.propertyIsEnumerable,qn=(t,e,i)=>e in t?zh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Wn=(t,e)=>{for(var i in e||(e={}))Ah.call(e,i)&&qn(t,i,e[i]);if(Gn)for(var i of Gn(e))Uh.call(e,i)&&qn(t,i,e[i]);return t};class Xe extends k{constructor(e,i={}){super(e,Wn(Wn({},{bubbles:!0,cancelable:!0}),i))}}Xe.SELECTED="selected",Xe.DESELECTED="deselected";var Dh=Object.defineProperty,Kn=Object.getOwnPropertySymbols,Lh=Object.prototype.hasOwnProperty,Mh=Object.prototype.propertyIsEnumerable,Xn=(t,e,i)=>e in t?Dh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Yn=(t,e)=>{for(var i in e||(e={}))Lh.call(e,i)&&Xn(t,i,e[i]);if(Kn)for(var i of Kn(e))Mh.call(e,i)&&Xn(t,i,e[i]);return t};class gr extends k{constructor(e,i={}){super(e,Yn(Yn({},{bubbles:!0}),i))}}gr.CHANGE="change";var Th=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,mr=(t,e,i,o)=>{for(var r=o>1?void 0:o?Nh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Th(e,i,r),r};class be extends fe(ve("",v)){constructor(e="checkbox"){super(),this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(e){const i=this._value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",i)}get checked(){return this._checked}set checked(e){const i=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",i)}getFormElement(){return this._input}_onKeypress(e){e.key=="Enter"&&this.submit()}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var i;super.firstUpdated(e);const o=(i=this.shadowRoot)==null?void 0:i.querySelector("label");let r=!1;this._input.addEventListener("blur",()=>{r===!1&&this.style.setProperty("--uui-show-focus-outline","1"),r=!1}),o.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),r=!0}),o.addEventListener("mouseup",()=>{r=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new gr(gr.CHANGE))}render(){return l`
|
|
538
538
|
<label>
|
|
539
539
|
<input
|
|
540
540
|
id="input"
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
:host([disabled]) .label {
|
|
588
588
|
opacity: 0.5;
|
|
589
589
|
}
|
|
590
|
-
`],mr([a({type:String,attribute:"label-position",reflect:!0})],be.prototype,"labelPosition",2),mr([a({type:Boolean})],be.prototype,"checked",1),mr([a({type:Boolean,reflect:!0})],be.prototype,"disabled",2),mr([O("#input")],be.prototype,"_input",2);var
|
|
590
|
+
`],mr([a({type:String,attribute:"label-position",reflect:!0})],be.prototype,"labelPosition",2),mr([a({type:Boolean})],be.prototype,"checked",1),mr([a({type:Boolean,reflect:!0})],be.prototype,"disabled",2),mr([O("#input")],be.prototype,"_input",2);var Vh=`.uui-text {
|
|
591
591
|
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
592
592
|
font-size: 15px;
|
|
593
593
|
line-height: calc(var(--uui-size-2,6px) * 4);
|
|
@@ -755,12 +755,12 @@
|
|
|
755
755
|
margin-top: var(--uui-size-layout-1,24px);
|
|
756
756
|
margin-bottom: var(--uui-size-layout-1,24px);
|
|
757
757
|
}
|
|
758
|
-
`;const
|
|
758
|
+
`;const jh=le(Vh);/**
|
|
759
759
|
* @license
|
|
760
760
|
* Copyright 2020 Google LLC
|
|
761
761
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
762
|
-
*/const So=Symbol.for(""),
|
|
763
|
-
take care to ensure page security.`)})(o)+t[r+1],t[0]),r:So}),
|
|
762
|
+
*/const So=Symbol.for(""),Hh=t=>{if(t?.r===So)return t?._$litStatic$},Bh=t=>({_$litStatic$:t,r:So}),Zn=(t,...e)=>({_$litStatic$:e.reduce((i,o,r)=>i+(s=>{if(s._$litStatic$!==void 0)return s._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${s}. Use 'unsafeStatic' to pass non-literal values, but
|
|
763
|
+
take care to ensure page security.`)})(o)+t[r+1],t[0]),r:So}),Qn=new Map,Rh=t=>(e,...i)=>{const o=i.length;let r,s;const n=[],u=[];let c,h=0,f=!1;for(;h<o;){for(c=e[h];h<o&&(s=i[h],(r=Hh(s))!==void 0);)c+=r+e[++h],f=!0;h!==o&&u.push(s),n.push(c),h++}if(h===o&&n.push(e[o]),f){const m=n.join("$$lit$$");(e=Qn.get(m))===void 0&&(n.raw=n,Qn.set(m,e=n)),i=u}return t(e,...i)},Jn=Rh(l);var Fh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Ht=(t,e,i,o)=>{for(var r=o>1?void 0:o?Gh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Fh(e,i,r),r};let ze=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineVariantTag=Zn`h5`,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._headerSlotHasContent=!1,this._headerSlotChanged=t=>{this._headerSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}set headlineVariant(t){t?this._headlineVariantTag=Bh(t):this._headlineVariantTag=Zn`h5`}renderHeader(){return Jn`<div
|
|
764
764
|
id="header"
|
|
765
765
|
class="uui-text"
|
|
766
766
|
style=${this._headerSlotHasContent||this._headlineSlotHasContent||this.headline!==null?"":"display: none"}>
|
|
@@ -772,10 +772,10 @@
|
|
|
772
772
|
<slot name="headline" @slotchange=${this._headlineSlotChanged}></slot>
|
|
773
773
|
</${this._headlineVariantTag}>
|
|
774
774
|
<slot name="header" @slotchange=${this._headerSlotChanged}></slot>
|
|
775
|
-
</div>`}render(){return
|
|
775
|
+
</div>`}render(){return Jn`
|
|
776
776
|
${this.renderHeader()}
|
|
777
777
|
<slot></slot>
|
|
778
|
-
`}};ze.styles=[
|
|
778
|
+
`}};ze.styles=[jh,d`
|
|
779
779
|
:host {
|
|
780
780
|
display: block;
|
|
781
781
|
box-shadow: var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,0.12) , 0 1px 2px rgba(0,0,0,0.24));
|
|
@@ -793,7 +793,7 @@
|
|
|
793
793
|
display: block;
|
|
794
794
|
padding: var(--uui-box-default-padding, var(--uui-size-space-5,18px));
|
|
795
795
|
}
|
|
796
|
-
`],
|
|
796
|
+
`],Ht([a({type:String})],ze.prototype,"headline",2),Ht([a({attribute:"headline-variant"})],ze.prototype,"headlineVariant",1),Ht([b()],ze.prototype,"_headlineVariantTag",2),Ht([b()],ze.prototype,"_headlineSlotHasContent",2),Ht([b()],ze.prototype,"_headerSlotHasContent",2),ze=Ht([p("uui-box")],ze);var qh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,Io=(t,e,i,o)=>{for(var r=o>1?void 0:o?Wh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&qh(e,i,r),r};let bt=class extends v{constructor(){super(...arguments),this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){return l`<a id="link" href=${this.href}><slot></slot></a
|
|
797
797
|
><span part="separator"></span>`}renderCurrent(){return l`<span id="last-item"><slot></slot></span>`}render(){return l`${this.lastItem?this.renderCurrent():this.renderLinkAndSeparator()}`}};bt.styles=[d`
|
|
798
798
|
:host {
|
|
799
799
|
font-size: var(--uui-type-small-size,12px);
|
|
@@ -832,7 +832,7 @@
|
|
|
832
832
|
#link {
|
|
833
833
|
cursor: pointer;
|
|
834
834
|
}
|
|
835
|
-
`],Io([a()],bt.prototype,"href",2),Io([a({type:Boolean,attribute:"last-item"})],bt.prototype,"lastItem",2),bt=Io([p("uui-breadcrumb-item")],bt);var
|
|
835
|
+
`],Io([a()],bt.prototype,"href",2),Io([a({type:Boolean,attribute:"last-item"})],bt.prototype,"lastItem",2),bt=Io([p("uui-breadcrumb-item")],bt);var Kh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,ea=(t,e,i,o)=>{for(var r=o>1?void 0:o?Xh(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Kh(e,i,r),r};let Pi=class extends v{elementIsBreadcrumbItem(t){return t instanceof bt}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const t=this.slotNodes[this.slotNodes.length-1];t.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(t)&&(t.lastItem=!0)}}render(){return l`<ol id="breadcrumbs-list">
|
|
836
836
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
837
837
|
</ol>`}};Pi.styles=[d`
|
|
838
838
|
:host {
|
|
@@ -848,7 +848,7 @@
|
|
|
848
848
|
margin-inline-end: 0px;
|
|
849
849
|
padding-inline-start: 0px;
|
|
850
850
|
}
|
|
851
|
-
`],
|
|
851
|
+
`],ea([Ke({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],Pi.prototype,"slotNodes",2),Pi=ea([p("uui-breadcrumbs")],Pi);const Yh=d`
|
|
852
852
|
@keyframes uui-blink {
|
|
853
853
|
0%,
|
|
854
854
|
100% {
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
opacity: 1;
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
|
-
`,
|
|
861
|
+
`,Zh=le("uui-blink 0.9s infinite both"),Qh=d`
|
|
862
862
|
@keyframes pulse {
|
|
863
863
|
0% {
|
|
864
864
|
-webkit-transform: translate(-50%, -50%) scale(0.2);
|
|
@@ -903,11 +903,11 @@
|
|
|
903
903
|
* @license
|
|
904
904
|
* Copyright 2017 Google LLC
|
|
905
905
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
906
|
-
*/const ue={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},
|
|
906
|
+
*/const ue={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Bt=t=>(...e)=>({_$litDirective$:t,values:e});let Rt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,o){this._$Ct=e,this._$AM=i,this._$Ci=o}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}};/**
|
|
907
907
|
* @license
|
|
908
908
|
* Copyright 2018 Google LLC
|
|
909
909
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
910
|
-
*/const
|
|
910
|
+
*/const ta="important",Jh=" !"+ta,Ae=Bt(class extends Rt{constructor(t){var e;if(super(t),t.type!==ue.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{const o=t[i];return o==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:i}=t.element;if(this.ht===void 0){this.ht=new Set;for(const o in e)this.ht.add(o);return this.render(e)}this.ht.forEach(o=>{e[o]==null&&(this.ht.delete(o),o.includes("-")?i.removeProperty(o):i[o]="")});for(const o in e){const r=e[o];if(r!=null){this.ht.add(o);const s=typeof r=="string"&&r.endsWith(Jh);o.includes("-")||s?i.setProperty(o,s?r.slice(0,-11):r,s?ta:""):i[o]=r}}return F}});var ed=Object.defineProperty,ia=Object.getOwnPropertySymbols,td=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,ra=(t,e,i)=>e in t?ed(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,oa=(t,e)=>{for(var i in e||(e={}))td.call(e,i)&&ra(t,i,e[i]);if(ia)for(var i of ia(e))id.call(e,i)&&ra(t,i,e[i]);return t};class xr extends k{constructor(e,i={}){super(e,oa(oa({},{bubbles:!0,composed:!0}),i))}}xr.CLICK="click";var rd=Object.defineProperty,od=Object.getOwnPropertyDescriptor,wr=(t,e,i,o)=>{for(var r=o>1?void 0:o?od(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&rd(e,i,r),r};let gt=class extends v{constructor(){super(...arguments),this._position=0,this.vertical=!1}_onMouseMove(t){this._position=this.vertical?t.offsetY:t.offsetX}_handleClick(t){t.preventDefault(),t.stopImmediatePropagation(),this.dispatchEvent(new xr(xr.CLICK))}render(){return l`
|
|
911
911
|
<button
|
|
912
912
|
id="button-wrapper"
|
|
913
913
|
@mousemove=${this._onMouseMove}
|
|
@@ -925,7 +925,7 @@
|
|
|
925
925
|
</svg>
|
|
926
926
|
</div>
|
|
927
927
|
</button>
|
|
928
|
-
`}};gt.styles=[
|
|
928
|
+
`}};gt.styles=[Yh,d`
|
|
929
929
|
:host {
|
|
930
930
|
display: flex;
|
|
931
931
|
position: relative;
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
:host(:focus) #button-wrapper:before,
|
|
980
980
|
:host(:focus-within) #button-wrapper:before,
|
|
981
981
|
:host(:hover) #button-wrapper:before {
|
|
982
|
-
animation: ${
|
|
982
|
+
animation: ${Zh};
|
|
983
983
|
background-color: var(--uui-color-interactive-emphasis,#3544b1);
|
|
984
984
|
border-color: var(--uui-color-surface,#fff) !important;
|
|
985
985
|
}
|
|
@@ -1075,15 +1075,15 @@
|
|
|
1075
1075
|
#button-wrapper:active #plus {
|
|
1076
1076
|
transform: scale(1.1);
|
|
1077
1077
|
}
|
|
1078
|
-
`],wr([b()],gt.prototype,"_position",2),wr([a({type:String})],gt.prototype,"label",2),wr([a({type:Boolean,reflect:!0})],gt.prototype,"vertical",2),gt=wr([p("uui-button-inline-create")],gt);class
|
|
1078
|
+
`],wr([b()],gt.prototype,"_position",2),wr([a({type:String})],gt.prototype,"label",2),wr([a({type:Boolean,reflect:!0})],gt.prototype,"vertical",2),gt=wr([p("uui-button-inline-create")],gt);class sd{constructor(e,i){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(i)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}}const y=(t,e,i=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",i,t)},sa=(t,e)=>{function i(r){const s=t.getBoundingClientRect(),n=t.ownerDocument.defaultView,u=s.left+n.scrollX,c=s.top+n.scrollY;let h;r instanceof TouchEvent?h=r.touches[0]:h=r;const f=h.pageX-u,m=h.pageY-c;e?.onMove&&e.onMove(f,m)}function o(){document.removeEventListener("pointermove",i),document.removeEventListener("pointerup",o),e?.onStop&&e.onStop()}document.addEventListener("pointermove",i,{passive:!0}),document.addEventListener("pointerup",o),e?.initialEvent&&i(e.initialEvent)},S=(t,e,i)=>Math.min(Math.max(t,e),i),na=(t,e,i)=>i+e-t,nd=(t,e,i)=>{let o=t;for(;o!==null;){const r=o instanceof HTMLElement&&o.hasAttribute(e)&&o.getAttribute(e)===i,s=o.querySelector(`[${e}="${i}"]`)!==null;if(r)return o;if(s)return o.querySelector(`[${e}="${i}"]`);o=o.parentElement||o.parentNode||o.host||null}return null},$r=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12" /></svg>`,ad=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18" /><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" /><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" /><line x1="10" x2="10" y1="11" y2="17" /><line x1="14" x2="14" y1="11" y2="17" /></svg>`,ld=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" /><path d="M7 11V7a5 5 0 0 1 10 0v4" /></svg>`,ud=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><circle cx="9" cy="9" r="2" /><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" /></svg>`,aa=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></svg>`,cd=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" /><circle cx="12" cy="12" r="3" /></svg>`,hd=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" /><path d="M7 11V7a5 5 0 0 1 9.9-1" /></svg>`,dd=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24" /><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" /><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" /><line x1="2" x2="22" y1="2" y2="22" /></svg>`,la=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>`;/**
|
|
1079
1079
|
* @license
|
|
1080
1080
|
* Copyright 2018 Google LLC
|
|
1081
1081
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1082
|
-
*/const P=t=>t??$;var
|
|
1082
|
+
*/const P=t=>t??$;var pd=Object.defineProperty,vd=Object.getOwnPropertyDescriptor,ge=(t,e,i,o)=>{for(var r=o>1?void 0:o?vd(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&pd(e,i,r),r};let W=class extends fe(ve("",$h(v))){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}_onHostClick(t){var e;if(this.disabled){t.preventDefault(),t.stopImmediatePropagation();return}if((e=this._internals)!=null&&e.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}this._togglePopover()}updated(t){super.updated(t),t.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let t;switch(this.state){case"waiting":y(this,"uui-loader-circle"),t=l`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":y(this,"uui-icon"),t=l`<uui-icon
|
|
1083
1083
|
name="check"
|
|
1084
1084
|
.fallback=${$r.strings[0]}></uui-icon>`;break;case"failed":y(this,"uui-icon"),t=l`<uui-icon
|
|
1085
1085
|
name="wrong"
|
|
1086
|
-
.fallback=${
|
|
1086
|
+
.fallback=${la.strings[0]}></uui-icon>`;break;default:return $}return l`<div id="state">${t}</div>`}render(){return this.href?l`
|
|
1087
1087
|
<a
|
|
1088
1088
|
id="button"
|
|
1089
1089
|
aria-label=${this.label}
|
|
@@ -1101,7 +1101,7 @@
|
|
|
1101
1101
|
${this.renderState()} ${this.renderLabel()}
|
|
1102
1102
|
<slot name="extra"></slot>
|
|
1103
1103
|
</button>
|
|
1104
|
-
`}};
|
|
1104
|
+
`}};W.styles=[_r,d`
|
|
1105
1105
|
:host {
|
|
1106
1106
|
position: relative;
|
|
1107
1107
|
display: inline-flex;
|
|
@@ -1404,7 +1404,7 @@
|
|
|
1404
1404
|
var(--color-standalone)
|
|
1405
1405
|
);
|
|
1406
1406
|
}
|
|
1407
|
-
`],ge([a({type:String,reflect:!0})],
|
|
1407
|
+
`],ge([a({type:String,reflect:!0})],W.prototype,"type",2),ge([a({type:Boolean,reflect:!0})],W.prototype,"disabled",2),ge([a({reflect:!0})],W.prototype,"look",2),ge([a({reflect:!0})],W.prototype,"color",2),ge([a({type:Boolean,reflect:!0})],W.prototype,"compact",2),ge([a({type:String,reflect:!0})],W.prototype,"state",2),ge([a({type:String})],W.prototype,"href",2),ge([a({type:String})],W.prototype,"target",2),ge([O("#button")],W.prototype,"_button",2),W=ge([p("uui-button")],W);class Ft extends k{}Ft.OPEN="open";var fd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,Ci=(t,e,i,o)=>{for(var r=o>1?void 0:o?bd(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&fd(e,i,r),r};let G=class extends br(Nt(v)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(t){this.disabled||(t.stopPropagation(),this.dispatchEvent(new Ft(Ft.OPEN)))}handleOpenKeydown(t){this.disabled||t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new Ft(Ft.OPEN)))}render(){return l`<slot></slot>`}};G.styles=[d`
|
|
1408
1408
|
:host {
|
|
1409
1409
|
position: relative;
|
|
1410
1410
|
display: flex;
|
|
@@ -1488,15 +1488,15 @@
|
|
|
1488
1488
|
text-decoration: none;
|
|
1489
1489
|
color: inherit;
|
|
1490
1490
|
}
|
|
1491
|
-
`],Ci([a({type:Boolean,reflect:!0,attribute:"disabled"})],G.prototype,"disabled",2),Ci([a({type:Boolean,reflect:!0})],G.prototype,"error",2),Ci([a({type:String})],G.prototype,"href",2),Ci([a({type:String})],G.prototype,"target",2),G=Ci([p("uui-card")],G);var
|
|
1492
|
-
${this.href?
|
|
1491
|
+
`],Ci([a({type:Boolean,reflect:!0,attribute:"disabled"})],G.prototype,"disabled",2),Ci([a({type:Boolean,reflect:!0})],G.prototype,"error",2),Ci([a({type:String})],G.prototype,"href",2),Ci([a({type:String})],G.prototype,"target",2),G=Ci([p("uui-card")],G);var gd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,zo=(t,e,i,o)=>{for(var r=o>1?void 0:o?md(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&gd(e,i,r),r},_d=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},ua=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},ca=(t,e,i)=>(_d(t,e,"access private method"),i),Ao,ha,Uo,da;let Gt=class extends G{constructor(){super(...arguments),ua(this,Ao),ua(this,Uo),this.name="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return y(this,"uui-icon"),l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`
|
|
1492
|
+
${this.href?ca(this,Uo,da).call(this):ca(this,Ao,ha).call(this)}
|
|
1493
1493
|
<!-- Select border must be right after #open-part -->
|
|
1494
1494
|
<div id="select-border"></div>
|
|
1495
1495
|
|
|
1496
1496
|
<slot></slot>
|
|
1497
1497
|
<slot name="tag"></slot>
|
|
1498
1498
|
<slot name="actions"></slot>
|
|
1499
|
-
`}};Ao=new WeakSet,
|
|
1499
|
+
`}};Ao=new WeakSet,ha=function(){return l`<div
|
|
1500
1500
|
id="open-part"
|
|
1501
1501
|
tabindex=${this.disabled?$:0}
|
|
1502
1502
|
@click=${this.handleOpenClick}
|
|
@@ -1506,7 +1506,7 @@
|
|
|
1506
1506
|
${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}
|
|
1507
1507
|
</span>
|
|
1508
1508
|
<span id="name"> ${this.name} </span>
|
|
1509
|
-
</div>`},Uo=new WeakSet,
|
|
1509
|
+
</div>`},Uo=new WeakSet,da=function(){return l`<a
|
|
1510
1510
|
id="open-part"
|
|
1511
1511
|
tabindex=${this.disabled?$:0}
|
|
1512
1512
|
href=${P(this.disabled?void 0:this.href)}
|
|
@@ -1517,7 +1517,7 @@
|
|
|
1517
1517
|
${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}
|
|
1518
1518
|
</span>
|
|
1519
1519
|
<span id="name"> ${this.name} </span>
|
|
1520
|
-
</a>`},
|
|
1520
|
+
</a>`},Gt.styles=[...G.styles,d`
|
|
1521
1521
|
:host {
|
|
1522
1522
|
min-width: 250px;
|
|
1523
1523
|
flex-direction: column;
|
|
@@ -1585,7 +1585,7 @@
|
|
|
1585
1585
|
#name {
|
|
1586
1586
|
margin-top: 4px;
|
|
1587
1587
|
}
|
|
1588
|
-
`],zo([a({type:String})],
|
|
1588
|
+
`],zo([a({type:String})],Gt.prototype,"name",2),zo([b()],Gt.prototype,"_iconSlotHasContent",2),Gt=zo([p("uui-card-content-node")],Gt);var yd=Object.defineProperty,xd=Object.getOwnPropertyDescriptor,wd=(t,e,i,o)=>{for(var r=o>1?void 0:o?xd(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&yd(e,i,r),r};let Er=class extends v{render(){return l`<svg
|
|
1589
1589
|
xmlns="http://www.w3.org/2000/svg"
|
|
1590
1590
|
viewBox="0 0 512 512"
|
|
1591
1591
|
width="100%"
|
|
@@ -1603,7 +1603,7 @@
|
|
|
1603
1603
|
#icon {
|
|
1604
1604
|
fill: var(--uui-color-border,#d8d7d9);
|
|
1605
1605
|
}
|
|
1606
|
-
`],Er
|
|
1606
|
+
`],Er=wd([p("uui-symbol-folder")],Er);var $d=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,pa=(t,e,i,o)=>{for(var r=o>1?void 0:o?Ed(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&$d(e,i,r),r};let Oi=class extends v{constructor(){super(...arguments),this.type=""}render(){return l`<svg
|
|
1607
1607
|
xmlns="http://www.w3.org/2000/svg"
|
|
1608
1608
|
viewBox="0 0 512 512"
|
|
1609
1609
|
width="100%"
|
|
@@ -1634,16 +1634,16 @@
|
|
|
1634
1634
|
#icon {
|
|
1635
1635
|
fill: var(--uui-color-border-standalone,#c2c2c2);
|
|
1636
1636
|
}
|
|
1637
|
-
`],
|
|
1637
|
+
`],pa([a({type:String})],Oi.prototype,"type",2),Oi=pa([p("uui-symbol-file")],Oi);var Pd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,Pr=(t,e,i,o)=>{for(var r=o>1?void 0:o?Cd(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Pd(e,i,r),r},Od=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},va=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},fa=(t,e,i)=>(Od(t,e,"access private method"),i),Do,ba,Lo,ga;let mt=class extends G{constructor(){super(...arguments),va(this,Do),va(this,Lo),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),y(this,"uui-symbol-folder"),y(this,"uui-symbol-file")}queryPreviews(t){this.hasPreview=t.composedPath()[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!0?"":this.fileExt===""?l`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:l`<uui-symbol-file
|
|
1638
1638
|
id="file-symbol"
|
|
1639
1639
|
type="${this.fileExt}"></uui-symbol-file>`}render(){return l` ${this.renderMedia()}
|
|
1640
1640
|
<slot @slotchange=${this.queryPreviews}></slot>
|
|
1641
|
-
${this.href?
|
|
1641
|
+
${this.href?fa(this,Lo,ga).call(this):fa(this,Do,ba).call(this)}
|
|
1642
1642
|
<!-- Select border must be right after .open-part -->
|
|
1643
1643
|
<div id="select-border"></div>
|
|
1644
1644
|
|
|
1645
1645
|
<slot name="tag"></slot>
|
|
1646
|
-
<slot name="actions"></slot>`}};Do=new WeakSet,
|
|
1646
|
+
<slot name="actions"></slot>`}};Do=new WeakSet,ba=function(){return l`
|
|
1647
1647
|
<button
|
|
1648
1648
|
id="open-part"
|
|
1649
1649
|
tabindex=${this.disabled?$:"0"}
|
|
@@ -1659,7 +1659,7 @@
|
|
|
1659
1659
|
-->
|
|
1660
1660
|
<span>${this.name}</span>
|
|
1661
1661
|
</button>
|
|
1662
|
-
`},Lo=new WeakSet,
|
|
1662
|
+
`},Lo=new WeakSet,ga=function(){return l`
|
|
1663
1663
|
<a
|
|
1664
1664
|
id="open-part"
|
|
1665
1665
|
tabindex=${this.disabled?$:"0"}
|
|
@@ -1771,19 +1771,19 @@
|
|
|
1771
1771
|
height: var(--uui-size-8);
|
|
1772
1772
|
}
|
|
1773
1773
|
*/
|
|
1774
|
-
`],Pr([a({type:String})],mt.prototype,"name",2),Pr([a({type:String,attribute:"file-ext"})],mt.prototype,"fileExt",2),Pr([b()],mt.prototype,"hasPreview",2),mt=Pr([p("uui-card-media")],mt);var
|
|
1774
|
+
`],Pr([a({type:String})],mt.prototype,"name",2),Pr([a({type:String,attribute:"file-ext"})],mt.prototype,"fileExt",2),Pr([b()],mt.prototype,"hasPreview",2),mt=Pr([p("uui-card-media")],mt);var kd=Object.defineProperty,Sd=Object.getOwnPropertyDescriptor,ma=(t,e,i,o)=>{for(var r=o>1?void 0:o?Sd(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&kd(e,i,r),r},Id=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},_a=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},ya=(t,e,i)=>(Id(t,e,"access private method"),i),Mo,xa,To,wa;let ki=class extends G{constructor(){super(...arguments),_a(this,Mo),_a(this,To),this.name=""}connectedCallback(){super.connectedCallback(),y(this,"uui-avatar")}render(){return l`
|
|
1775
1775
|
<uui-avatar id="avatar" name=${this.name} size="m"></uui-avatar>
|
|
1776
|
-
${this.href?
|
|
1776
|
+
${this.href?ya(this,To,wa).call(this):ya(this,Mo,xa).call(this)}
|
|
1777
1777
|
<slot></slot>
|
|
1778
1778
|
<slot name="tag"></slot>
|
|
1779
1779
|
<slot name="actions"></slot>
|
|
1780
|
-
`}};
|
|
1780
|
+
`}};Mo=new WeakSet,xa=function(){return l`<div
|
|
1781
1781
|
id="open-part"
|
|
1782
1782
|
tabindex=${this.disabled?$:"0"}
|
|
1783
1783
|
@click=${this.handleOpenClick}
|
|
1784
1784
|
@keydown=${this.handleOpenKeydown}>
|
|
1785
1785
|
<span> ${this.name} </span>
|
|
1786
|
-
</div>`},
|
|
1786
|
+
</div>`},To=new WeakSet,wa=function(){return l`<a
|
|
1787
1787
|
id="open-part"
|
|
1788
1788
|
tabindex=${this.disabled?$:"0"}
|
|
1789
1789
|
href=${P(this.disabled?void 0:this.href)}
|
|
@@ -1862,7 +1862,7 @@
|
|
|
1862
1862
|
text-decoration: underline;
|
|
1863
1863
|
color: var(--uui-color-interactive-emphasis,#3544b1);
|
|
1864
1864
|
}
|
|
1865
|
-
`],
|
|
1865
|
+
`],ma([a({type:String})],ki.prototype,"name",2),ki=ma([p("uui-card-user")],ki);var zd=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,$a=(t,e,i,o)=>{for(var r=o>1?void 0:o?Ad(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&zd(e,i,r),r};let Si=class extends v{constructor(){super(),this.open=!1,console.error("\xB4uui-caret\xB4 is deprecated, please use \xB4uui-symbol-expand\xB4 or \xB4uui-symbol-sort\xB4")}render(){return l`<svg viewBox="0 0 512 512">
|
|
1866
1866
|
<path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path>
|
|
1867
1867
|
</svg>`}};Si.styles=[d`
|
|
1868
1868
|
:host {
|
|
@@ -1880,7 +1880,7 @@
|
|
|
1880
1880
|
:host([open]) svg {
|
|
1881
1881
|
transform: rotate(180deg);
|
|
1882
1882
|
}
|
|
1883
|
-
`]
|
|
1883
|
+
`],$a([a({type:Boolean,reflect:!0})],Si.prototype,"open",2),Si=$a([p("uui-caret")],Si);var Ud=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,Ld=(t,e,i,o)=>{for(var r=o>1?void 0:o?Dd(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Ud(e,i,r),r};let Ii=class extends be{renderCheckbox(){return l`
|
|
1884
1884
|
<div id="ticker">
|
|
1885
1885
|
<div id="icon-check">${$r}</div>
|
|
1886
1886
|
</div>
|
|
@@ -2025,11 +2025,11 @@
|
|
|
2025
2025
|
:host([disabled]) input:checked + #ticker #icon-check {
|
|
2026
2026
|
fill: var(--uui-color-disabled-contrast,#c4c4c4);
|
|
2027
2027
|
}
|
|
2028
|
-
`],Ii=
|
|
2028
|
+
`],Ii=Ld([p("uui-checkbox")],Ii);/**
|
|
2029
2029
|
* @license
|
|
2030
2030
|
* Copyright 2018 Google LLC
|
|
2031
2031
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2032
|
-
*/const No=
|
|
2032
|
+
*/const No=Bt(class extends Rt{constructor(t){var e;if(super(t),t.type!==ue.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var i,o;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!(!((i=this.nt)===null||i===void 0)&&i.has(s))&&this.it.add(s);return this.render(e)}const r=t.element.classList;this.it.forEach(s=>{s in e||(r.remove(s),this.it.delete(s))});for(const s in e){const n=!!e[s];n===this.it.has(s)||!((o=this.nt)===null||o===void 0)&&o.has(s)||(n?(r.add(s),this.it.add(s)):(r.remove(s),this.it.delete(s)))}return F}});var Md={grad:.9,turn:360,rad:360/(2*Math.PI)},Ue=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},T=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},te=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),t>i?i:t>e?t:e},Ea=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},Pa=function(t){return{r:te(t.r,0,255),g:te(t.g,0,255),b:te(t.b,0,255),a:te(t.a)}},Vo=function(t){return{r:T(t.r),g:T(t.g),b:T(t.b),a:T(t.a,3)}},Td=/^#([0-9a-f]{3,8})$/i,Cr=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Ca=function(t){var e=t.r,i=t.g,o=t.b,r=t.a,s=Math.max(e,i,o),n=s-Math.min(e,i,o),u=n?s===e?(i-o)/n:s===i?2+(o-e)/n:4+(e-i)/n:0;return{h:60*(u<0?u+6:u),s:s?n/s*100:0,v:s/255*100,a:r}},Oa=function(t){var e=t.h,i=t.s,o=t.v,r=t.a;e=e/360*6,i/=100,o/=100;var s=Math.floor(e),n=o*(1-i),u=o*(1-(e-s)*i),c=o*(1-(1-e+s)*i),h=s%6;return{r:255*[o,u,n,n,c,o][h],g:255*[c,o,o,u,n,n][h],b:255*[n,n,c,o,o,u][h],a:r}},ka=function(t){return{h:Ea(t.h),s:te(t.s,0,100),l:te(t.l,0,100),a:te(t.a)}},Sa=function(t){return{h:T(t.h),s:T(t.s),l:T(t.l),a:T(t.a,3)}},Ia=function(t){return Oa((i=(e=t).s,{h:e.h,s:(i*=((o=e.l)<50?o:100-o)/100)>0?2*i/(o+i)*100:0,v:o+i,a:e.a}));var e,i,o},zi=function(t){return{h:(e=Ca(t)).h,s:(r=(200-(i=e.s))*(o=e.v)/100)>0&&r<200?i*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,i,o,r},Nd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Vd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,za={string:[[function(t){var e=Td.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?T(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?T(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=jd.exec(t)||Hd.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Pa({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=Nd.exec(t)||Vd.exec(t);if(!e)return null;var i,o,r=ka({h:(i=e[1],o=e[2],o===void 0&&(o="deg"),Number(i)*(Md[o]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Ia(r)},"hsl"]],object:[[function(t){var e=t.r,i=t.g,o=t.b,r=t.a,s=r===void 0?1:r;return Ue(e)&&Ue(i)&&Ue(o)?Pa({r:Number(e),g:Number(i),b:Number(o),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,i=t.s,o=t.l,r=t.a,s=r===void 0?1:r;if(!Ue(e)||!Ue(i)||!Ue(o))return null;var n=ka({h:Number(e),s:Number(i),l:Number(o),a:Number(s)});return Ia(n)},"hsl"],[function(t){var e=t.h,i=t.s,o=t.v,r=t.a,s=r===void 0?1:r;if(!Ue(e)||!Ue(i)||!Ue(o))return null;var n=function(u){return{h:Ea(u.h),s:te(u.s,0,100),v:te(u.v,0,100),a:te(u.a)}}({h:Number(e),s:Number(i),v:Number(o),a:Number(s)});return Oa(n)},"hsv"]]},Aa=function(t,e){for(var i=0;i<e.length;i++){var o=e[i][0](t);if(o)return[o,e[i][1]]}return[null,void 0]},Bd=function(t){return typeof t=="string"?Aa(t.trim(),za.string):typeof t=="object"&&t!==null?Aa(t,za.object):[null,void 0]},jo=function(t,e){var i=zi(t);return{h:i.h,s:te(i.s+100*e,0,100),l:i.l,a:i.a}},Ho=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Ua=function(t,e){var i=zi(t);return{h:i.h,s:i.s,l:te(i.l+100*e,0,100),a:i.a}},Da=function(){function t(e){this.parsed=Bd(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return T(Ho(this.rgba),2)},t.prototype.isDark=function(){return Ho(this.rgba)<.5},t.prototype.isLight=function(){return Ho(this.rgba)>=.5},t.prototype.toHex=function(){return e=Vo(this.rgba),i=e.r,o=e.g,r=e.b,n=(s=e.a)<1?Cr(T(255*s)):"","#"+Cr(i)+Cr(o)+Cr(r)+n;var e,i,o,r,s,n},t.prototype.toRgb=function(){return Vo(this.rgba)},t.prototype.toRgbString=function(){return e=Vo(this.rgba),i=e.r,o=e.g,r=e.b,(s=e.a)<1?"rgba("+i+", "+o+", "+r+", "+s+")":"rgb("+i+", "+o+", "+r+")";var e,i,o,r,s},t.prototype.toHsl=function(){return Sa(zi(this.rgba))},t.prototype.toHslString=function(){return e=Sa(zi(this.rgba)),i=e.h,o=e.s,r=e.l,(s=e.a)<1?"hsla("+i+", "+o+"%, "+r+"%, "+s+")":"hsl("+i+", "+o+"%, "+r+"%)";var e,i,o,r,s},t.prototype.toHsv=function(){return e=Ca(this.rgba),{h:T(e.h),s:T(e.s),v:T(e.v),a:T(e.a,3)};var e},t.prototype.invert=function(){return ie({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),ie(jo(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),ie(jo(this.rgba,-e))},t.prototype.grayscale=function(){return ie(jo(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),ie(Ua(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),ie(Ua(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?ie({r:(i=this.rgba).r,g:i.g,b:i.b,a:e}):T(this.rgba.a,3);var i},t.prototype.hue=function(e){var i=zi(this.rgba);return typeof e=="number"?ie({h:e,s:i.s,l:i.l,a:i.a}):T(i.h)},t.prototype.isEqual=function(e){return this.toHex()===ie(e).toHex()},t}(),ie=function(t){return t instanceof Da?t:new Da(t)},Rd=Object.defineProperty,La=Object.getOwnPropertySymbols,Fd=Object.prototype.hasOwnProperty,Gd=Object.prototype.propertyIsEnumerable,Ma=(t,e,i)=>e in t?Rd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ta=(t,e)=>{for(var i in e||(e={}))Fd.call(e,i)&&Ma(t,i,e[i]);if(La)for(var i of La(e))Gd.call(e,i)&&Ma(t,i,e[i]);return t};class Or extends k{constructor(e,i={}){super(e,Ta(Ta({},{bubbles:!0}),i))}}Or.CHANGE="change";var qd=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,De=(t,e,i,o)=>{for(var r=o>1?void 0:o?Wd(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&qd(e,i,r),r};let re=class extends v{constructor(){super(...arguments),this.isDraggingGridHandle=!1,this.hue=0,this.saturation=0,this.lightness=0,this.brightness=0,this.alpha=100,this._value="#000",this.disabled=!1}get value(){return this._value}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e);try{const i=ie(t);if(i.isValid()){const{h:o,s:r,l:s}=i.toHsl();this.hue=o,this.saturation=r,this.lightness=s,this.brightness=this.getBrightness(s)}}catch(i){console.error("Something went wrong parsing the color string.",i)}}handleGridDrag(t){if(this.disabled)return;const e=this.shadowRoot.querySelector(".color-area"),i=e.querySelector(".color-area__handle"),{width:o,height:r}=e.getBoundingClientRect();i.focus(),t.preventDefault(),t.stopPropagation(),this.isDraggingGridHandle=!0,sa(e,{onMove:(s,n)=>{isNaN(s)||isNaN(n)||(this.saturation=S(s/o*100,0,100),this.brightness=S(100-n/r*100,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:t})}handleGridKeyDown(t){if(this.disabled)return;const e=t.shiftKey?10:1;t.key==="ArrowLeft"&&(t.preventDefault(),this.saturation=S(this.saturation-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.saturation=S(this.saturation+e,0,100),this.syncValues()),t.key==="ArrowUp"&&(t.preventDefault(),this.brightness=S(this.brightness+e,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues()),t.key==="ArrowDown"&&(t.preventDefault(),this.brightness=S(this.brightness-e,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())}getBrightness(t){return S(-1*(200*t/(this.saturation-200)),0,100)}getLightness(t){return S((200-this.saturation)*t/100*5/10,0,100)}syncValues(){const t=ie({h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha/100});this._value=t.toRgbString(),this.dispatchEvent(new Or(Or.CHANGE))}getHexString(t,e,i,o=100){const r=ie(`hsla(${t}, ${e}%, ${i}%, ${o/100})`);return r.isValid()?r.toHex():""}render(){const t=this.saturation,e=100-this.brightness;return l`
|
|
2033
2033
|
<div
|
|
2034
2034
|
part="grid"
|
|
2035
2035
|
class="color-area"
|
|
@@ -2099,11 +2099,11 @@
|
|
|
2099
2099
|
* @license
|
|
2100
2100
|
* Copyright 2020 Google LLC
|
|
2101
2101
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2102
|
-
*/const{I:
|
|
2102
|
+
*/const{I:Kd}=Su,Na=t=>t.strings===void 0,Va=()=>document.createComment(""),Ai=(t,e,i)=>{var o;const r=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(i===void 0){const n=r.insertBefore(Va(),s),u=r.insertBefore(Va(),s);i=new Kd(n,u,t,t.options)}else{const n=i._$AB.nextSibling,u=i._$AM,c=u!==t;if(c){let h;(o=i._$AQ)===null||o===void 0||o.call(i,t),i._$AM=t,i._$AP!==void 0&&(h=t._$AU)!==u._$AU&&i._$AP(h)}if(n!==s||c){let h=i._$AA;for(;h!==n;){const f=h.nextSibling;r.insertBefore(h,s),h=f}}}return i},_t=(t,e,i=t)=>(t._$AI(e,i),t),Xd={},ja=(t,e=Xd)=>t._$AH=e,Yd=t=>t._$AH,Bo=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const r=i.nextSibling;i.remove(),i=r}};/**
|
|
2103
2103
|
* @license
|
|
2104
2104
|
* Copyright 2020 Google LLC
|
|
2105
2105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2106
|
-
*/const Qd=Rt(class extends Ft{constructor(t){if(super(t),t.type!==ue.PROPERTY&&t.type!==ue.ATTRIBUTE&&t.type!==ue.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Va(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===F||e===$)return e;const i=t.element,o=t.name;if(t.type===ue.PROPERTY){if(e===i[o])return F}else if(t.type===ue.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(o))return F}else if(t.type===ue.ATTRIBUTE&&i.getAttribute(o)===e+"")return F;return Ha(t),e}});var Jd={grad:.9,turn:360,rad:360/(2*Math.PI)},Le=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},N=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},oe=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),t>i?i:t>e?t:e},Ba=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},Ra=function(t){return{r:oe(t.r,0,255),g:oe(t.g,0,255),b:oe(t.b,0,255),a:oe(t.a)}},Ro=function(t){return{r:N(t.r),g:N(t.g),b:N(t.b),a:N(t.a,3)}},ep=/^#([0-9a-f]{3,8})$/i,kr=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Fa=function(t){var e=t.r,i=t.g,o=t.b,r=t.a,s=Math.max(e,i,o),n=s-Math.min(e,i,o),u=n?s===e?(i-o)/n:s===i?2+(o-e)/n:4+(e-i)/n:0;return{h:60*(u<0?u+6:u),s:s?n/s*100:0,v:s/255*100,a:r}},Ga=function(t){var e=t.h,i=t.s,o=t.v,r=t.a;e=e/360*6,i/=100,o/=100;var s=Math.floor(e),n=o*(1-i),u=o*(1-(e-s)*i),c=o*(1-(1-e+s)*i),h=s%6;return{r:255*[o,u,n,n,c,o][h],g:255*[c,o,o,u,n,n][h],b:255*[n,n,c,o,o,u][h],a:r}},qa=function(t){return{h:Ba(t.h),s:oe(t.s,0,100),l:oe(t.l,0,100),a:oe(t.a)}},Wa=function(t){return{h:N(t.h),s:N(t.s),l:N(t.l),a:N(t.a,3)}},Ka=function(t){return Ga((i=(e=t).s,{h:e.h,s:(i*=((o=e.l)<50?o:100-o)/100)>0?2*i/(o+i)*100:0,v:o+i,a:e.a}));var e,i,o},Ui=function(t){return{h:(e=Fa(t)).h,s:(r=(200-(i=e.s))*(o=e.v)/100)>0&&r<200?i*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,i,o,r},tp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ip=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,op=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fo={string:[[function(t){var e=ep.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?N(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?N(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=rp.exec(t)||op.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ra({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=tp.exec(t)||ip.exec(t);if(!e)return null;var i,o,r=qa({h:(i=e[1],o=e[2],o===void 0&&(o="deg"),Number(i)*(Jd[o]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Ka(r)},"hsl"]],object:[[function(t){var e=t.r,i=t.g,o=t.b,r=t.a,s=r===void 0?1:r;return Le(e)&&Le(i)&&Le(o)?Ra({r:Number(e),g:Number(i),b:Number(o),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,i=t.s,o=t.l,r=t.a,s=r===void 0?1:r;if(!Le(e)||!Le(i)||!Le(o))return null;var n=qa({h:Number(e),s:Number(i),l:Number(o),a:Number(s)});return Ka(n)},"hsl"],[function(t){var e=t.h,i=t.s,o=t.v,r=t.a,s=r===void 0?1:r;if(!Le(e)||!Le(i)||!Le(o))return null;var n=function(u){return{h:Ba(u.h),s:oe(u.s,0,100),v:oe(u.v,0,100),a:oe(u.a)}}({h:Number(e),s:Number(i),v:Number(o),a:Number(s)});return Ga(n)},"hsv"]]},Xa=function(t,e){for(var i=0;i<e.length;i++){var o=e[i][0](t);if(o)return[o,e[i][1]]}return[null,void 0]},sp=function(t){return typeof t=="string"?Xa(t.trim(),Fo.string):typeof t=="object"&&t!==null?Xa(t,Fo.object):[null,void 0]},Go=function(t,e){var i=Ui(t);return{h:i.h,s:oe(i.s+100*e,0,100),l:i.l,a:i.a}},qo=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Ya=function(t,e){var i=Ui(t);return{h:i.h,s:i.s,l:oe(i.l+100*e,0,100),a:i.a}},Sr=function(){function t(e){this.parsed=sp(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return N(qo(this.rgba),2)},t.prototype.isDark=function(){return qo(this.rgba)<.5},t.prototype.isLight=function(){return qo(this.rgba)>=.5},t.prototype.toHex=function(){return e=Ro(this.rgba),i=e.r,o=e.g,r=e.b,n=(s=e.a)<1?kr(N(255*s)):"","#"+kr(i)+kr(o)+kr(r)+n;var e,i,o,r,s,n},t.prototype.toRgb=function(){return Ro(this.rgba)},t.prototype.toRgbString=function(){return e=Ro(this.rgba),i=e.r,o=e.g,r=e.b,(s=e.a)<1?"rgba("+i+", "+o+", "+r+", "+s+")":"rgb("+i+", "+o+", "+r+")";var e,i,o,r,s},t.prototype.toHsl=function(){return Wa(Ui(this.rgba))},t.prototype.toHslString=function(){return e=Wa(Ui(this.rgba)),i=e.h,o=e.s,r=e.l,(s=e.a)<1?"hsla("+i+", "+o+"%, "+r+"%, "+s+")":"hsl("+i+", "+o+"%, "+r+"%)";var e,i,o,r,s},t.prototype.toHsv=function(){return e=Fa(this.rgba),{h:N(e.h),s:N(e.s),v:N(e.v),a:N(e.a,3)};var e},t.prototype.invert=function(){return me({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),me(Go(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),me(Go(this.rgba,-e))},t.prototype.grayscale=function(){return me(Go(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),me(Ya(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),me(Ya(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?me({r:(i=this.rgba).r,g:i.g,b:i.b,a:e}):N(this.rgba.a,3);var i},t.prototype.hue=function(e){var i=Ui(this.rgba);return typeof e=="number"?me({h:e,s:i.s,l:i.l,a:i.a}):N(i.h)},t.prototype.isEqual=function(e){return this.toHex()===me(e).toHex()},t}(),me=function(t){return t instanceof Sr?t:new Sr(t)},Za=[],np=function(t){t.forEach(function(e){Za.indexOf(e)<0&&(e(Sr,Fo),Za.push(e))})};function ap(t,e){var i={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in i)o[i[r]]=r;var s={};t.prototype.toName=function(n){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var u,c,h=o[this.toHex()];if(h)return h;if(n?.closest){var f=this.toRgb(),m=1/0,g="black";if(!s.length)for(var x in i)s[x]=new t(i[x]).toRgb();for(var w in i){var E=(u=f,c=s[w],Math.pow(u.r-c.r,2)+Math.pow(u.g-c.g,2)+Math.pow(u.b-c.b,2));E<m&&(m=E,g=w)}return g}},e.string.push([function(n){var u=n.toLowerCase(),c=u==="transparent"?"#0000":i[u];return c?new t(c).toRgb():null},"name"])}var lp=Object.defineProperty,Qa=Object.getOwnPropertySymbols,up=Object.prototype.hasOwnProperty,cp=Object.prototype.propertyIsEnumerable,Ja=(t,e,i)=>e in t?lp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,el=(t,e)=>{for(var i in e||(e={}))up.call(e,i)&&Ja(t,i,e[i]);if(Qa)for(var i of Qa(e))cp.call(e,i)&&Ja(t,i,e[i]);return t};class Ir extends k{constructor(e,i={}){super(e,el(el({},{bubbles:!0}),i))}}Ir.CHANGE="change";var hp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,D=(t,e,i,o)=>{for(var r=o>1?void 0:o?dp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&hp(e,i,r),r};np([ap]);const tl="EyeDropper"in window;let A=class extends ve("label",v){constructor(){super(...arguments),this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=100,this._colord=me("hsl(0, 0%, 0%)"),this.value="",this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}connectedCallback(){super.connectedCallback(),this.value?this.setColor(this.value):this.setColor("#000"),y(this,"uui-icon"),y(this,"uui-icon-registry-essential"),y(this,"uui-input"),y(this,"uui-button"),y(this,"uui-button-group"),y(this,"uui-popover"),y(this,"uui-color-swatches"),y(this,"uui-color-swatch"),y(this,"uui-color-area"),y(this,"uui-color-slider")}getFormattedValue(t){const e=this.opacity?`${t}a`:t,i=this._colord.toHex(),o=i.length>7?i.substring(0,i.length-2):i,{r,g:s,b:n}=this._colord.toRgb(),{h:u,s:c,l:h}=this._colord.toHsl(),{v:f}=this._colord.toHsv(),m=this._colord.alpha();switch(e){case"hex":return this.setLetterCase(o);case"hexa":return this.setLetterCase(i);case"rgb":return this.setLetterCase(`rgb(${r}, ${s}, ${n})`);case"rgba":return this.setLetterCase(this._colord.toRgbString());case"hsl":return this.setLetterCase(`hsl(${u}, ${c}%, ${h}%)`);case"hsla":return this.setLetterCase(this._colord.toHslString());case"hsv":return this.setLetterCase(`hsv(${u}, ${c}%, ${h}%)`);case"hsva":return this.setLetterCase(`hsva(${u}, ${c}%, ${f}%, ${m})`);default:return""}}getBrightness(t){return S(-1*(200*t/(this.saturation-200)),0,100)}getLightness(t){return S((200-this.saturation)*t/100*5/10,0,100)}handleFormatToggle(){const t=["hex","rgb","hsl","hsv"],e=(t.indexOf(this.format)+1)%t.length;this.format=t[e],this._syncValues()}handleAlphaChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const i=t.target,o={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(i.value)/100};this.setColor(o)}handleHueChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const o={h:t.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(o)}handleGridChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const i=t.target,o={h:this.hue,s:i.saturation,l:i.lightness,a:this.alpha/100};this.setColor(o)}handleInputChange(t){var e;(e=this._swatches)==null||e.resetSelection();const i=t.target;i.value?(this.setColor(i.value),i.value=this.value):this.setColor("#000"),t.stopPropagation()}handleInputKeyDown(t){var e;t.key==="Enter"&&(this.inputValue?(this.setColor(this.inputValue),(e=this._swatches)==null||e.resetSelection(),this.inputValue=this.value,setTimeout(()=>this._input.select())):this.setColor("#000"))}handleColorSwatchChange(t){t.stopImmediatePropagation();const e=t.target;e.value?this.setColor(e.value):this.setColor("#000")}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}openColorPicker(t){t.stopImmediatePropagation();const e=t.target,i=e.parentElement;i.open=!i?.open,e.setAttribute("aria-expanded",i.open.toString())}closeColorPicker(t){const i=t.target.querySelector("button[part=trigger]");i&&i.setAttribute("aria-expanded","false")}handleEyeDropper(){if(!tl)return;new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(t){this._colord=new Sr(t);const{h:e,l:i,s:o,a:r}=this._colord.toHsl();return this.hue=e,this.saturation=o,this.lightness=i,this.alpha=this.opacity?r*100:100,this._syncValues(),this.dispatchEvent(new Ir(Ir.CHANGE)),!0}setLetterCase(t){return typeof t!="string"?"":this.uppercase?t.toUpperCase():t.toLowerCase()}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this.value=this.inputValue}_renderColorPicker(){return l`
|
|
2106
|
+
*/const Zd=Bt(class extends Rt{constructor(t){if(super(t),t.type!==ue.PROPERTY&&t.type!==ue.ATTRIBUTE&&t.type!==ue.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Na(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===F||e===$)return e;const i=t.element,o=t.name;if(t.type===ue.PROPERTY){if(e===i[o])return F}else if(t.type===ue.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(o))return F}else if(t.type===ue.ATTRIBUTE&&i.getAttribute(o)===e+"")return F;return ja(t),e}});var Qd={grad:.9,turn:360,rad:360/(2*Math.PI)},Le=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},N=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},oe=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),t>i?i:t>e?t:e},Ha=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},Ba=function(t){return{r:oe(t.r,0,255),g:oe(t.g,0,255),b:oe(t.b,0,255),a:oe(t.a)}},Ro=function(t){return{r:N(t.r),g:N(t.g),b:N(t.b),a:N(t.a,3)}},Jd=/^#([0-9a-f]{3,8})$/i,kr=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Ra=function(t){var e=t.r,i=t.g,o=t.b,r=t.a,s=Math.max(e,i,o),n=s-Math.min(e,i,o),u=n?s===e?(i-o)/n:s===i?2+(o-e)/n:4+(e-i)/n:0;return{h:60*(u<0?u+6:u),s:s?n/s*100:0,v:s/255*100,a:r}},Fa=function(t){var e=t.h,i=t.s,o=t.v,r=t.a;e=e/360*6,i/=100,o/=100;var s=Math.floor(e),n=o*(1-i),u=o*(1-(e-s)*i),c=o*(1-(1-e+s)*i),h=s%6;return{r:255*[o,u,n,n,c,o][h],g:255*[c,o,o,u,n,n][h],b:255*[n,n,c,o,o,u][h],a:r}},Ga=function(t){return{h:Ha(t.h),s:oe(t.s,0,100),l:oe(t.l,0,100),a:oe(t.a)}},qa=function(t){return{h:N(t.h),s:N(t.s),l:N(t.l),a:N(t.a,3)}},Wa=function(t){return Fa((i=(e=t).s,{h:e.h,s:(i*=((o=e.l)<50?o:100-o)/100)>0?2*i/(o+i)*100:0,v:o+i,a:e.a}));var e,i,o},Ui=function(t){return{h:(e=Ra(t)).h,s:(r=(200-(i=e.s))*(o=e.v)/100)>0&&r<200?i*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,i,o,r},ep=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,tp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ip=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fo={string:[[function(t){var e=Jd.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?N(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?N(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=ip.exec(t)||rp.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ba({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=ep.exec(t)||tp.exec(t);if(!e)return null;var i,o,r=Ga({h:(i=e[1],o=e[2],o===void 0&&(o="deg"),Number(i)*(Qd[o]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Wa(r)},"hsl"]],object:[[function(t){var e=t.r,i=t.g,o=t.b,r=t.a,s=r===void 0?1:r;return Le(e)&&Le(i)&&Le(o)?Ba({r:Number(e),g:Number(i),b:Number(o),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,i=t.s,o=t.l,r=t.a,s=r===void 0?1:r;if(!Le(e)||!Le(i)||!Le(o))return null;var n=Ga({h:Number(e),s:Number(i),l:Number(o),a:Number(s)});return Wa(n)},"hsl"],[function(t){var e=t.h,i=t.s,o=t.v,r=t.a,s=r===void 0?1:r;if(!Le(e)||!Le(i)||!Le(o))return null;var n=function(u){return{h:Ha(u.h),s:oe(u.s,0,100),v:oe(u.v,0,100),a:oe(u.a)}}({h:Number(e),s:Number(i),v:Number(o),a:Number(s)});return Fa(n)},"hsv"]]},Ka=function(t,e){for(var i=0;i<e.length;i++){var o=e[i][0](t);if(o)return[o,e[i][1]]}return[null,void 0]},op=function(t){return typeof t=="string"?Ka(t.trim(),Fo.string):typeof t=="object"&&t!==null?Ka(t,Fo.object):[null,void 0]},Go=function(t,e){var i=Ui(t);return{h:i.h,s:oe(i.s+100*e,0,100),l:i.l,a:i.a}},qo=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Xa=function(t,e){var i=Ui(t);return{h:i.h,s:i.s,l:oe(i.l+100*e,0,100),a:i.a}},Sr=function(){function t(e){this.parsed=op(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return N(qo(this.rgba),2)},t.prototype.isDark=function(){return qo(this.rgba)<.5},t.prototype.isLight=function(){return qo(this.rgba)>=.5},t.prototype.toHex=function(){return e=Ro(this.rgba),i=e.r,o=e.g,r=e.b,n=(s=e.a)<1?kr(N(255*s)):"","#"+kr(i)+kr(o)+kr(r)+n;var e,i,o,r,s,n},t.prototype.toRgb=function(){return Ro(this.rgba)},t.prototype.toRgbString=function(){return e=Ro(this.rgba),i=e.r,o=e.g,r=e.b,(s=e.a)<1?"rgba("+i+", "+o+", "+r+", "+s+")":"rgb("+i+", "+o+", "+r+")";var e,i,o,r,s},t.prototype.toHsl=function(){return qa(Ui(this.rgba))},t.prototype.toHslString=function(){return e=qa(Ui(this.rgba)),i=e.h,o=e.s,r=e.l,(s=e.a)<1?"hsla("+i+", "+o+"%, "+r+"%, "+s+")":"hsl("+i+", "+o+"%, "+r+"%)";var e,i,o,r,s},t.prototype.toHsv=function(){return e=Ra(this.rgba),{h:N(e.h),s:N(e.s),v:N(e.v),a:N(e.a,3)};var e},t.prototype.invert=function(){return me({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),me(Go(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),me(Go(this.rgba,-e))},t.prototype.grayscale=function(){return me(Go(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),me(Xa(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),me(Xa(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?me({r:(i=this.rgba).r,g:i.g,b:i.b,a:e}):N(this.rgba.a,3);var i},t.prototype.hue=function(e){var i=Ui(this.rgba);return typeof e=="number"?me({h:e,s:i.s,l:i.l,a:i.a}):N(i.h)},t.prototype.isEqual=function(e){return this.toHex()===me(e).toHex()},t}(),me=function(t){return t instanceof Sr?t:new Sr(t)},Ya=[],sp=function(t){t.forEach(function(e){Ya.indexOf(e)<0&&(e(Sr,Fo),Ya.push(e))})};function np(t,e){var i={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in i)o[i[r]]=r;var s={};t.prototype.toName=function(n){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var u,c,h=o[this.toHex()];if(h)return h;if(n?.closest){var f=this.toRgb(),m=1/0,g="black";if(!s.length)for(var x in i)s[x]=new t(i[x]).toRgb();for(var w in i){var E=(u=f,c=s[w],Math.pow(u.r-c.r,2)+Math.pow(u.g-c.g,2)+Math.pow(u.b-c.b,2));E<m&&(m=E,g=w)}return g}},e.string.push([function(n){var u=n.toLowerCase(),c=u==="transparent"?"#0000":i[u];return c?new t(c).toRgb():null},"name"])}var ap=Object.defineProperty,Za=Object.getOwnPropertySymbols,lp=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable,Qa=(t,e,i)=>e in t?ap(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ja=(t,e)=>{for(var i in e||(e={}))lp.call(e,i)&&Qa(t,i,e[i]);if(Za)for(var i of Za(e))up.call(e,i)&&Qa(t,i,e[i]);return t};class Ir extends k{constructor(e,i={}){super(e,Ja(Ja({},{bubbles:!0}),i))}}Ir.CHANGE="change";var cp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,D=(t,e,i,o)=>{for(var r=o>1?void 0:o?hp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&cp(e,i,r),r};sp([np]);const el="EyeDropper"in window;let A=class extends ve("label",v){constructor(){super(...arguments),this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=100,this._colord=me("hsl(0, 0%, 0%)"),this.value="",this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}connectedCallback(){super.connectedCallback(),this.value?this.setColor(this.value):this.setColor("#000"),y(this,"uui-icon"),y(this,"uui-icon-registry-essential"),y(this,"uui-input"),y(this,"uui-button"),y(this,"uui-button-group"),y(this,"uui-popover"),y(this,"uui-color-swatches"),y(this,"uui-color-swatch"),y(this,"uui-color-area"),y(this,"uui-color-slider")}getFormattedValue(t){const e=this.opacity?`${t}a`:t,i=this._colord.toHex(),o=i.length>7?i.substring(0,i.length-2):i,{r,g:s,b:n}=this._colord.toRgb(),{h:u,s:c,l:h}=this._colord.toHsl(),{v:f}=this._colord.toHsv(),m=this._colord.alpha();switch(e){case"hex":return this.setLetterCase(o);case"hexa":return this.setLetterCase(i);case"rgb":return this.setLetterCase(`rgb(${r}, ${s}, ${n})`);case"rgba":return this.setLetterCase(this._colord.toRgbString());case"hsl":return this.setLetterCase(`hsl(${u}, ${c}%, ${h}%)`);case"hsla":return this.setLetterCase(this._colord.toHslString());case"hsv":return this.setLetterCase(`hsv(${u}, ${c}%, ${h}%)`);case"hsva":return this.setLetterCase(`hsva(${u}, ${c}%, ${f}%, ${m})`);default:return""}}getBrightness(t){return S(-1*(200*t/(this.saturation-200)),0,100)}getLightness(t){return S((200-this.saturation)*t/100*5/10,0,100)}handleFormatToggle(){const t=["hex","rgb","hsl","hsv"],e=(t.indexOf(this.format)+1)%t.length;this.format=t[e],this._syncValues()}handleAlphaChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const i=t.target,o={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(i.value)/100};this.setColor(o)}handleHueChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const o={h:t.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(o)}handleGridChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const i=t.target,o={h:this.hue,s:i.saturation,l:i.lightness,a:this.alpha/100};this.setColor(o)}handleInputChange(t){var e;(e=this._swatches)==null||e.resetSelection();const i=t.target;i.value?(this.setColor(i.value),i.value=this.value):this.setColor("#000"),t.stopPropagation()}handleInputKeyDown(t){var e;t.key==="Enter"&&(this.inputValue?(this.setColor(this.inputValue),(e=this._swatches)==null||e.resetSelection(),this.inputValue=this.value,setTimeout(()=>this._input.select())):this.setColor("#000"))}handleColorSwatchChange(t){t.stopImmediatePropagation();const e=t.target;e.value?this.setColor(e.value):this.setColor("#000")}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}openColorPicker(t){t.stopImmediatePropagation();const e=t.target,i=e.parentElement;i.open=!i?.open,e.setAttribute("aria-expanded",i.open.toString())}closeColorPicker(t){const i=t.target.querySelector("button[part=trigger]");i&&i.setAttribute("aria-expanded","false")}handleEyeDropper(){if(!el)return;new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(t){this._colord=new Sr(t);const{h:e,l:i,s:o,a:r}=this._colord.toHsl();return this.hue=e,this.saturation=o,this.lightness=i,this.alpha=this.opacity?r*100:100,this._syncValues(),this.dispatchEvent(new Ir(Ir.CHANGE)),!0}setLetterCase(t){return typeof t!="string"?"":this.uppercase?t.toUpperCase():t.toLowerCase()}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this.value=this.inputValue}_renderColorPicker(){return l`
|
|
2107
2107
|
<div
|
|
2108
2108
|
class=${No({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled})}
|
|
2109
2109
|
aria-disabled=${this.disabled?"true":"false"}>
|
|
@@ -2151,7 +2151,7 @@
|
|
|
2151
2151
|
autocomplete="off"
|
|
2152
2152
|
autocapitalize="off"
|
|
2153
2153
|
spellcheck="false"
|
|
2154
|
-
.value=${
|
|
2154
|
+
.value=${Zd(this.inputValue)}
|
|
2155
2155
|
?disabled=${this.disabled}
|
|
2156
2156
|
@keydown=${this.handleInputKeyDown}
|
|
2157
2157
|
@change=${this.handleInputChange}>
|
|
@@ -2165,7 +2165,7 @@
|
|
|
2165
2165
|
compact>
|
|
2166
2166
|
<span>${this.format}</span>
|
|
2167
2167
|
</uui-button>`}
|
|
2168
|
-
${
|
|
2168
|
+
${el?l`<uui-button
|
|
2169
2169
|
label="Select a color"
|
|
2170
2170
|
?disabled=${this.disabled}
|
|
2171
2171
|
@click=${this.handleEyeDropper}
|
|
@@ -2341,7 +2341,7 @@
|
|
|
2341
2341
|
uui-color-area {
|
|
2342
2342
|
width: 100%;
|
|
2343
2343
|
}
|
|
2344
|
-
`],D([O('[part="input"]')],A.prototype,"_input",2),D([O(".color-picker__preview")],A.prototype,"_previewButton",2),D([O("#swatches")],A.prototype,"_swatches",2),D([b()],A.prototype,"inputValue",2),D([b()],A.prototype,"hue",2),D([b()],A.prototype,"saturation",2),D([b()],A.prototype,"lightness",2),D([b()],A.prototype,"alpha",2),D([b()],A.prototype,"_colord",2),D([a()],A.prototype,"value",2),D([a()],A.prototype,"format",2),D([a()],A.prototype,"name",2),D([a()],A.prototype,"size",2),D([a({attribute:"no-format-toggle",type:Boolean})],A.prototype,"noFormatToggle",2),D([a({type:Boolean,reflect:!0})],A.prototype,"inline",2),D([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2),D([a({type:Boolean})],A.prototype,"opacity",2),D([a({type:Boolean})],A.prototype,"uppercase",2),D([a({attribute:!1})],A.prototype,"swatches",2),A=D([p("uui-color-picker")],A);var
|
|
2344
|
+
`],D([O('[part="input"]')],A.prototype,"_input",2),D([O(".color-picker__preview")],A.prototype,"_previewButton",2),D([O("#swatches")],A.prototype,"_swatches",2),D([b()],A.prototype,"inputValue",2),D([b()],A.prototype,"hue",2),D([b()],A.prototype,"saturation",2),D([b()],A.prototype,"lightness",2),D([b()],A.prototype,"alpha",2),D([b()],A.prototype,"_colord",2),D([a()],A.prototype,"value",2),D([a()],A.prototype,"format",2),D([a()],A.prototype,"name",2),D([a()],A.prototype,"size",2),D([a({attribute:"no-format-toggle",type:Boolean})],A.prototype,"noFormatToggle",2),D([a({type:Boolean,reflect:!0})],A.prototype,"inline",2),D([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2),D([a({type:Boolean})],A.prototype,"opacity",2),D([a({type:Boolean})],A.prototype,"uppercase",2),D([a({attribute:!1})],A.prototype,"swatches",2),A=D([p("uui-color-picker")],A);var dp=Object.defineProperty,tl=Object.getOwnPropertySymbols,pp=Object.prototype.hasOwnProperty,vp=Object.prototype.propertyIsEnumerable,il=(t,e,i)=>e in t?dp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,rl=(t,e)=>{for(var i in e||(e={}))pp.call(e,i)&&il(t,i,e[i]);if(tl)for(var i of tl(e))vp.call(e,i)&&il(t,i,e[i]);return t};class zr extends k{constructor(e,i={}){super(e,rl(rl({},{bubbles:!0}),i))}}zr.CHANGE="change";var fp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,Me=(t,e,i,o)=>{for(var r=o>1?void 0:o?bp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&fp(e,i,r),r};let se=class extends ve("label",v){constructor(){super(...arguments),this.type="hue",this.color="",this.min=0,this.max=100,this.precision=1,this.vertical=!1,this.value=0,this.disabled=!1}willUpdate(t){t.has("type")&&(this.type==="hue"?(this.max=360,this.precision=1):this.type==="opacity"&&(this.max=100,this.precision=1))}firstUpdated(){this.container=this.shadowRoot.querySelector("#color-slider"),this.handle=this.container.querySelector("#color-slider__handle")}handleDrag(t){if(this.disabled||!this.container||!this.handle)return;const{width:e,height:i}=this.container.getBoundingClientRect();this.handle.focus(),t.preventDefault(),sa(this.container,{onMove:(o,r)=>{this.vertical?this.value=na(S(r/i*this.max,this.min,this.max),this.min,this.max):this.value=S(o/e*this.max,this.min,this.max),this.syncValues()},initialEvent:t})}handleClick(t){this.disabled||(this.value=this.getValueFromMousePosition(t),this.syncValues())}handleKeyDown(t){const e=t.shiftKey?10:1;t.key==="ArrowLeft"?(t.preventDefault(),this.value=S(this.value-e,this.min,this.max),this.syncValues()):t.key==="ArrowRight"?(t.preventDefault(),this.value=S(this.value+e,this.min,this.max),this.syncValues()):t.key==="ArrowUp"?(t.preventDefault(),this.value=S(this.value+e,this.min,this.max),this.syncValues()):t.key==="ArrowDown"?(t.preventDefault(),this.value=S(this.value-e,this.min,this.max),this.syncValues()):t.key==="Home"?(t.preventDefault(),this.value=this.min,this.syncValues()):t.key==="End"&&(t.preventDefault(),this.value=this.max,this.syncValues())}getValueFromMousePosition(t){return this.vertical?this.getValueFromYCoordinate(t.clientY):this.getValueFromXCoordinate(t.clientX)}getValueFromTouchPosition(t){return this.vertical?this.getValueFromYCoordinate(t.touches[0].clientY):this.getValueFromXCoordinate(t.touches[0].clientX)}getValueFromXCoordinate(t){const{left:e,width:i}=this.container.getBoundingClientRect();return S(this.roundToPrecision((t-e)/i*this.max),this.min,this.max)}getValueFromYCoordinate(t){const{top:e,height:i}=this.container.getBoundingClientRect();return S(this.roundToPrecision((t-e)/i*this.max),this.min,this.max)}roundToPrecision(t){const e=1/this.precision;return Math.ceil(t*e)/e}syncValues(){this.dispatchEvent(new zr(zr.CHANGE))}get ccsPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/na(this.value,this.min,this.max):this.max/this.value)}render(){return l` <div
|
|
2345
2345
|
part="slider"
|
|
2346
2346
|
id="color-slider"
|
|
2347
2347
|
role="slider"
|
|
@@ -2475,7 +2475,7 @@
|
|
|
2475
2475
|
position: absolute;
|
|
2476
2476
|
inset: 0 0 0 0;
|
|
2477
2477
|
}
|
|
2478
|
-
`],
|
|
2478
|
+
`],Me([a({reflect:!0})],se.prototype,"type",2),Me([a()],se.prototype,"color",2),Me([a({type:Number})],se.prototype,"min",2),Me([a({type:Number})],se.prototype,"max",2),Me([a({type:Number})],se.prototype,"precision",2),Me([a({type:Boolean,reflect:!0})],se.prototype,"vertical",2),Me([a()],se.prototype,"value",2),Me([a({type:Boolean,reflect:!0})],se.prototype,"disabled",2),se=Me([p("uui-color-slider")],se);var gp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Di=(t,e,i,o)=>{for(var r=o>1?void 0:o?mp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&gp(e,i,r),r};let Ye=class extends ve("label",Nt(Ei(v))){constructor(){super(),this.disabled=!1,this.showLabel=!1,this.addEventListener("click",this._setAriaAttributes)}get value(){var t;return(t=this._value)!=null?t:""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get color(){return this._color}set color(t){const e=this._color;this._color=t,this.requestUpdate("color",e)}_setAriaAttributes(){this.selectable&&this.setAttribute("aria-checked",this.selected.toString())}firstUpdated(){this._setAriaAttributes()}willUpdate(t){t.has("disabled")&&this.selectable&&(this.selectable=!this.disabled,this.deselectable=!this.disabled),(t.has("selectable")||t.has("selected"))&&this._setAriaAttributes()}render(){var t,e;return l`
|
|
2479
2479
|
<button
|
|
2480
2480
|
id="swatch"
|
|
2481
2481
|
aria-label=${this.label}
|
|
@@ -2654,19 +2654,19 @@
|
|
|
2654
2654
|
white-space: nowrap;
|
|
2655
2655
|
box-sizing: border-box;
|
|
2656
2656
|
}
|
|
2657
|
-
`],Di([a()],Ye.prototype,"value",1),Di([a()],Ye.prototype,"color",1),Di([a({type:Boolean,reflect:!0})],Ye.prototype,"disabled",2),Di([a({type:Boolean,attribute:"show-label",reflect:!0})],Ye.prototype,"showLabel",2),Ye=Di([p("uui-color-swatch")],Ye);var
|
|
2657
|
+
`],Di([a()],Ye.prototype,"value",1),Di([a()],Ye.prototype,"color",1),Di([a({type:Boolean,reflect:!0})],Ye.prototype,"disabled",2),Di([a({type:Boolean,attribute:"show-label",reflect:!0})],Ye.prototype,"showLabel",2),Ye=Di([p("uui-color-swatch")],Ye);var _p=Object.defineProperty,ol=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,xp=Object.prototype.propertyIsEnumerable,sl=(t,e,i)=>e in t?_p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,nl=(t,e)=>{for(var i in e||(e={}))yp.call(e,i)&&sl(t,i,e[i]);if(ol)for(var i of ol(e))xp.call(e,i)&&sl(t,i,e[i]);return t};class qt extends k{constructor(e,i={}){super(e,nl(nl({},{bubbles:!0}),i))}}qt.CHANGE="change";var wp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,Ar=(t,e,i,o)=>{for(var r=o>1?void 0:o?$p(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&wp(e,i,r),r};let yt=class extends ve("label",v){constructor(){super(),this.value="",this.disabled=!1,this._onSelected=t=>{const e=t.target;this.swatches.includes(e)&&(this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=e,this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.dispatchEvent(new qt(qt.CHANGE)))},this._onDeselected=t=>{const e=t.target;this.swatches.includes(e)&&(this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0,this.value="",this.dispatchEvent(new qt(qt.CHANGE))))},this.addEventListener(Xe.SELECTED,this._onSelected),this.addEventListener(Xe.DESELECTED,this._onDeselected)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}willUpdate(t){t.has("label")&&this.setAttribute("aria-label",this.label)}_handleSlotChange(){!this.swatches||this.swatches.length===0||this.swatches.forEach(t=>{t.setAttribute("aria-checked","false"),t.setAttribute("role","radio"),this.disabled?t.setAttribute("disabled",""):t.setAttribute("selectable","selectable"),this.value!==""&&t.value===this.value&&(t.selected=!0,t.setAttribute("aria-checked","true"),this._selectedElement=t,this._activeElement=this._selectedElement)})}resetSelection(){this.swatches.forEach(t=>{t.selected=!1,t.active=!1,t.selectable=!t.disabled}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return l`<slot @slotchange=${this._handleSlotChange}></slot>`}};yt.styles=[d`
|
|
2658
2658
|
:host {
|
|
2659
2659
|
display: flex;
|
|
2660
2660
|
flex-wrap: wrap;
|
|
2661
2661
|
gap: 0.4rem;
|
|
2662
2662
|
}
|
|
2663
|
-
`],Ar([a()],yt.prototype,"value",2),Ar([a({type:Boolean,reflect:!0})],yt.prototype,"disabled",2),Ar([Ke({selector:"uui-color-swatch"})],yt.prototype,"swatches",2),yt=Ar([p("uui-color-swatches")],yt);var
|
|
2663
|
+
`],Ar([a()],yt.prototype,"value",2),Ar([a({type:Boolean,reflect:!0})],yt.prototype,"disabled",2),Ar([Ke({selector:"uui-color-swatch"})],yt.prototype,"swatches",2),yt=Ar([p("uui-color-swatches")],yt);var Ep=Object.defineProperty,al=Object.getOwnPropertySymbols,Pp=Object.prototype.hasOwnProperty,Cp=Object.prototype.propertyIsEnumerable,ll=(t,e,i)=>e in t?Ep(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ul=(t,e)=>{for(var i in e||(e={}))Pp.call(e,i)&&ll(t,i,e[i]);if(al)for(var i of al(e))Cp.call(e,i)&&ll(t,i,e[i]);return t};class ce extends k{constructor(e,i={}){super(e,ul(ul({},{bubbles:!0}),i))}}ce.CHANGE="change",ce.INNER_SLOT_CHANGE="inner-slot-change";var Op=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,xt=(t,e,i,o)=>{for(var r=o>1?void 0:o?kp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Op(e,i,r),r};let _e=class extends v{constructor(){super(...arguments),this.displayValue="",this._value="",this._onSlotChange=()=>{this._activeElement=void 0;for(let t=0;t<this._activeOptions.length;t++)t===0?this._activeElement=this._activeOptions[t]:this._activeOptions[t].active=!1;this._updateSelection(),this.dispatchEvent(new ce(ce.INNER_SLOT_CHANGE))},this._onSelected=t=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t.composedPath()[0],this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new ce(ce.CHANGE))},this._onDeselected=t=>{const e=t.composedPath()[0];this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this.value="",this.displayValue="",this.dispatchEvent(new ce(ce.CHANGE)))},this._moveIndex=t=>{const e=Math.min(Math.max(this._getActiveIndex()+t,0),this._options.length-1);this._goToIndex(e)},this._onKeyDown=t=>{var e;if(!(this._options.length<=0))switch(t.key){case"ArrowUp":t.preventDefault(),t.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":t.preventDefault(),t.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{t.preventDefault(),this._goToIndex(0);break}case"Enter":{t.preventDefault(),(e=this._activeElement)==null||e.click();break}case"End":{t.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(t){if(this._value===t)return;const e=this._value;this._value=t,this._updateSelection(),this.requestUpdate("value",e)}get for(){return this._for}set for(t){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=t,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(Xe.SELECTED,this._onSelected),this.addEventListener(Xe.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(Xe.SELECTED,this._onSelected),this.removeEventListener(Xe.DESELECTED,this._onDeselected)}_updateSelection(){this.displayValue="";for(const t of this._options)t.value===this._value?(this.displayValue=t.displayValue||"",t.selected=!0):t.selected=!1}_getActiveIndex(){return this._activeElement?this._options.indexOf(this._activeElement):-1}_goToIndex(t){t=Math.min(Math.max(t,0),this._options.length-1),this._activeElement=this._options[t],this._activeElement&&this._activeElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return l` <slot @slotchange=${this._onSlotChange}></slot> `}};_e.styles=[d`
|
|
2664
2664
|
:host {
|
|
2665
2665
|
display: flex;
|
|
2666
2666
|
flex-direction: column;
|
|
2667
2667
|
box-sizing: border-box;
|
|
2668
2668
|
}
|
|
2669
|
-
`],xt([a()],_e.prototype,"value",1),xt([a({type:String})],_e.prototype,"displayValue",2),xt([a({attribute:!1})],_e.prototype,"for",1),xt([Ke({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],_e.prototype,"_options",2),xt([Ke({flatten:!0,selector:"uui-combobox-list-option[active]"})],_e.prototype,"_activeOptions",2),xt([b()],_e.prototype,"_value",2),_e=xt([p("uui-combobox-list")],_e);var
|
|
2669
|
+
`],xt([a()],_e.prototype,"value",1),xt([a({type:String})],_e.prototype,"displayValue",2),xt([a({attribute:!1})],_e.prototype,"for",1),xt([Ke({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],_e.prototype,"_options",2),xt([Ke({flatten:!0,selector:"uui-combobox-list-option[active]"})],_e.prototype,"_activeOptions",2),xt([b()],_e.prototype,"_value",2),_e=xt([p("uui-combobox-list")],_e);var Sp=Object.defineProperty,Ip=Object.getOwnPropertyDescriptor,Wt=(t,e,i,o)=>{for(var r=o>1?void 0:o?Ip(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Sp(e,i,r),r};let Te=class extends Nt(Ei(v)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.deselectable=!1}get value(){var t;return this._value?this._value:((t=this.textContent)==null?void 0:t.trim())||""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get displayValue(){var t;return this._displayValue?this._displayValue:((t=this.textContent)==null?void 0:t.trim())||""}set displayValue(t){const e=this._displayValue;this._displayValue=t,this.requestUpdate("displayValue",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.selectable=!this._disabled,this.requestUpdate("disabled",e)}render(){return l`<slot></slot>`}};Te.styles=[d`
|
|
2670
2670
|
:host {
|
|
2671
2671
|
position: relative;
|
|
2672
2672
|
cursor: pointer;
|
|
@@ -2735,7 +2735,7 @@
|
|
|
2735
2735
|
color: var(--uui-color-disabled-contrast,#c4c4c4);
|
|
2736
2736
|
background-color: var(--uui-color-disabled,#f3f3f5);
|
|
2737
2737
|
}
|
|
2738
|
-
`],
|
|
2738
|
+
`],Wt([b()],Te.prototype,"_disabled",2),Wt([b()],Te.prototype,"_displayValue",2),Wt([a({type:String})],Te.prototype,"value",1),Wt([a({type:String,attribute:"display-value"})],Te.prototype,"displayValue",1),Wt([a({type:Boolean,reflect:!0})],Te.prototype,"disabled",1),Te=Wt([p("uui-combobox-list-option")],Te);var zp=Object.defineProperty,cl=Object.getOwnPropertySymbols,Ap=Object.prototype.hasOwnProperty,Up=Object.prototype.propertyIsEnumerable,hl=(t,e,i)=>e in t?zp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,dl=(t,e)=>{for(var i in e||(e={}))Ap.call(e,i)&&hl(t,i,e[i]);if(cl)for(var i of cl(e))Up.call(e,i)&&hl(t,i,e[i]);return t};class K extends k{constructor(e,i={}){super(e,dl(dl({},{bubbles:!0}),i))}}K.SEARCH="search",K.CHANGE="change";var Dp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,he=(t,e,i,o)=>{for(var r=o>1?void 0:o?Lp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Dp(e,i,r),r};let q=class extends fe(v){constructor(){super(...arguments),this.open=!1,this.closeLabel="Close",this.disabled=!1,this._displayValue="",this._search="",this._isPhone=!1,this._onPhoneChange=()=>{this._isPhone=this.phoneMediaQuery.matches},this._onMouseDown=()=>requestAnimationFrame(()=>this._input.focus()),this._onBlur=()=>requestAnimationFrame(()=>{var t;(t=this.shadowRoot)!=null&&t.activeElement||this._onClose()}),this._onInput=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.search=t.target.value,this.dispatchEvent(new K(K.SEARCH)),this._open()},this._onSlotChange=()=>{var t;this.value&&this.value!==((t=this._comboboxList)==null?void 0:t.value)&&this._updateValue(this.value)},this._onChange=()=>{var t;this.value=((t=this._comboboxList)==null?void 0:t.value)||"",this.search=this.value?this.search:"",this._onClose(),this.dispatchEvent(new K(K.CHANGE))},this._open=()=>{this.open||(this.open=!0)},this._onClose=()=>{this.open&&(this.open=!1,this.search="",this._input.value=this._displayValue,this.dispatchEvent(new K(K.SEARCH)))},this._onKeyDown=t=>{this.open===!1&&t.key==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation()),(t.key==="ArrowUp"||t.key==="ArrowDown")&&this._open(),(t.key==="Escape"||t.key==="Enter")&&this._onClose()},this._onClear=t=>{t.key&&t.key!=="Enter"||(t.preventDefault(),t.stopImmediatePropagation(),this.value="",this.search="",this._input.value=this._displayValue,this._input.focus(),this.dispatchEvent(new K(K.SEARCH)),this.dispatchEvent(new K(K.CHANGE)))},this._renderInput=()=>l` <uui-input
|
|
2739
2739
|
slot="trigger"
|
|
2740
2740
|
id="combobox-input"
|
|
2741
2741
|
label="combobox-input"
|
|
@@ -2759,7 +2759,7 @@
|
|
|
2759
2759
|
slot="append"
|
|
2760
2760
|
compact
|
|
2761
2761
|
style="height: 100%;">
|
|
2762
|
-
<uui-icon name="remove" .fallback=${
|
|
2762
|
+
<uui-icon name="remove" .fallback=${aa.strings[0]}></uui-icon>
|
|
2763
2763
|
</uui-button>`:"",this._renderDropdown=()=>l`<div id="dropdown" slot="popover">
|
|
2764
2764
|
<uui-scroll-container tabindex="-1" id="scroll-container">
|
|
2765
2765
|
<slot></slot>
|
|
@@ -2844,12 +2844,12 @@
|
|
|
2844
2844
|
#phone-wrapper #scroll-container {
|
|
2845
2845
|
max-height: unset;
|
|
2846
2846
|
}
|
|
2847
|
-
`],he([a({attribute:"value",reflect:!0})],q.prototype,"value",1),he([a({type:String})],q.prototype,"search",1),he([a({type:Boolean})],q.prototype,"open",2),he([a({type:String})],q.prototype,"closeLabel",2),he([a({type:Boolean,reflect:!0})],q.prototype,"disabled",2),he([O("#combobox-input")],q.prototype,"_input",2),he([Ke({flatten:!0,selector:"uui-combobox-list"})],q.prototype,"_comboboxListElements",2),he([b()],q.prototype,"_displayValue",2),he([b()],q.prototype,"_search",2),he([b()],q.prototype,"_isPhone",2),q=he([p("uui-combobox")],q);var Mp=Object.defineProperty,
|
|
2847
|
+
`],he([a({attribute:"value",reflect:!0})],q.prototype,"value",1),he([a({type:String})],q.prototype,"search",1),he([a({type:Boolean})],q.prototype,"open",2),he([a({type:String})],q.prototype,"closeLabel",2),he([a({type:Boolean,reflect:!0})],q.prototype,"disabled",2),he([O("#combobox-input")],q.prototype,"_input",2),he([Ke({flatten:!0,selector:"uui-combobox-list"})],q.prototype,"_comboboxListElements",2),he([b()],q.prototype,"_displayValue",2),he([b()],q.prototype,"_search",2),he([b()],q.prototype,"_isPhone",2),q=he([p("uui-combobox")],q);var Mp=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,Wo=(t,e,i,o)=>{for(var r=o>1?void 0:o?Tp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Mp(e,i,r),r};let Kt=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return l` <h3
|
|
2848
2848
|
style=${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}>
|
|
2849
2849
|
${this.headline}
|
|
2850
2850
|
<slot name="headline" @slotchange=${this._headlineSlotChanged}></slot>
|
|
2851
2851
|
</h3>`}renderContent(){return l`<slot></slot>`}renderActions(){return l`<slot id="actions" name="actions"></slot>`}render(){return l`${this.renderHeadline()} ${this.renderContent()}
|
|
2852
|
-
${this.renderActions()} `}};
|
|
2852
|
+
${this.renderActions()} `}};Kt.styles=[d`
|
|
2853
2853
|
:host {
|
|
2854
2854
|
display: block;
|
|
2855
2855
|
padding: var(--uui-size-10,30px) var(--uui-size-14,42px);
|
|
@@ -2862,7 +2862,7 @@
|
|
|
2862
2862
|
justify-content: end;
|
|
2863
2863
|
gap: var(--uui-size-4,12px);
|
|
2864
2864
|
}
|
|
2865
|
-
`],Wo([a({type:String})],
|
|
2865
|
+
`],Wo([a({type:String})],Kt.prototype,"headline",2),Wo([b()],Kt.prototype,"_headlineSlotHasContent",2),Kt=Wo([p("uui-dialog-layout")],Kt);var Np=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,jp=(t,e,i,o)=>{for(var r=o>1?void 0:o?Vp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Np(e,i,r),r};let Ur=class extends v{render(){return l`<slot></slot>`}};Ur.styles=[d`
|
|
2866
2866
|
:host {
|
|
2867
2867
|
position: relative;
|
|
2868
2868
|
display: block;
|
|
@@ -2880,7 +2880,7 @@
|
|
|
2880
2880
|
calc(var(--uui-border-radius,3px) * 2)
|
|
2881
2881
|
);
|
|
2882
2882
|
}
|
|
2883
|
-
`],Ur=
|
|
2883
|
+
`],Ur=jp([p("uui-dialog")],Ur);var Hp=Object.defineProperty,pl=Object.getOwnPropertySymbols,Bp=Object.prototype.hasOwnProperty,Rp=Object.prototype.propertyIsEnumerable,vl=(t,e,i)=>e in t?Hp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,fl=(t,e)=>{for(var i in e||(e={}))Bp.call(e,i)&&vl(t,i,e[i]);if(pl)for(var i of pl(e))Rp.call(e,i)&&vl(t,i,e[i]);return t};class Xt extends k{constructor(e,i={}){super(e,fl(fl({},{bubbles:!0}),i))}}Xt.CHANGE="change";var Fp=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,Li=(t,e,i,o)=>{for(var r=o>1?void 0:o?Gp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Fp(e,i,r),r};let Ze=class extends ve("",v){constructor(){super(),this._acceptedFileExtensions=[],this._acceptedMimeTypes=[],this._accept="",this.multiple=!1,this.addEventListener("dragenter",this._onDragEnter,!1),this.addEventListener("dragleave",this._onDragLeave,!1),this.addEventListener("dragover",this._onDragOver,!1),this.addEventListener("drop",this._onDrop,!1)}set accept(t){if(t){const i=[],o=[];t.split(",").forEach(r=>{r=r.trim().toLowerCase(),new RegExp("[a-z]+\\/[a-z*]","s").test(r)?i.push(r):o.push(r.replace(/^\./,""))}),this._acceptedMimeTypes=i,this._acceptedFileExtensions=o}else this._acceptedMimeTypes=[],this._acceptedFileExtensions=[];const e=this._accept;this._accept=t,this.requestUpdate("accept",e)}get accept(){return this._accept}browse(){this._input.click()}connectedCallback(){super.connectedCallback(),y(this,"uui-symbol-file-dropzone")}async _getAllFileEntries(t){const e=[],i=[...t];for(;i.length>0;){const o=i.shift();if(o.kind==="file"){const r=o.getAsFile();if(!r)continue;this._isAccepted(r)&&e.push(r)}else if(o.kind==="directory"){if(!("webkitGetAsEntry"in o))continue;const r=o.webkitGetAsEntry();i.push(...await this._readAllDirectoryEntries(r.createReader()))}}return e}async _readAllDirectoryEntries(t){const e=[];let i=await this._readEntriesPromise(t);for(;i.length>0;)e.push(...i),i=await this._readEntriesPromise(t);return e}async _readEntriesPromise(t){return new Promise((e,i)=>{try{t.readEntries(e,i)}catch(o){console.log(o),i(o)}})}_isAccepted(t){if(this._acceptedFileExtensions.length===0&&this._acceptedMimeTypes.length===0)return!0;const e=t.type.toLowerCase(),i=t.name.split(".").pop();if(i&&this._acceptedFileExtensions.includes(i.toLowerCase()))return!0;for(const o in this._acceptedMimeTypes){if(e===o)return!0;if(o.endsWith("/*")&&e.startsWith(o.replace("/*","")))return!0}return!1}async _onDrop(t){var e;t.preventDefault(),this._dropzone.classList.remove("hover");const i=(e=t.dataTransfer)==null?void 0:e.items;if(i){let o=await this._getAllFileEntries(i);this.multiple===!1&&o.length&&(o=[o[0]]),this.dispatchEvent(new Xt(Xt.CHANGE,{detail:{files:o}}))}}_onDragOver(t){t.preventDefault()}_onDragEnter(t){this._dropzone.classList.add("hover"),t.preventDefault()}_onDragLeave(t){this._dropzone.classList.remove("hover"),t.preventDefault()}_onFileInputChange(){const t=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new Xt(Xt.CHANGE,{detail:{files:t}}))}render(){return l`
|
|
2884
2884
|
<div id="dropzone">
|
|
2885
2885
|
<uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>
|
|
2886
2886
|
${this.renderLabel()}
|
|
@@ -2932,7 +2932,7 @@
|
|
|
2932
2932
|
opacity: 0;
|
|
2933
2933
|
display: none;
|
|
2934
2934
|
}
|
|
2935
|
-
`],Li([O("#input")],Ze.prototype,"_input",2),Li([O("#dropzone")],Ze.prototype,"_dropzone",2),Li([a({type:String})],Ze.prototype,"accept",1),Li([a({type:Boolean})],Ze.prototype,"multiple",2),Ze=Li([p("uui-file-dropzone")],Ze);class
|
|
2935
|
+
`],Li([O("#input")],Ze.prototype,"_input",2),Li([O("#dropzone")],Ze.prototype,"_dropzone",2),Li([a({type:String})],Ze.prototype,"accept",1),Li([a({type:Boolean})],Ze.prototype,"multiple",2),Ze=Li([p("uui-file-dropzone")],Ze);class qp{static humanFileSize(e,i=!1,o=1){const r=i?1e3:1024;if(Math.abs(e)<r)return e+" B";const s=i?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let n=-1;const u=10**o;do e/=r,++n;while(Math.round(Math.abs(e)*u)/u>=r&&n<s.length-1);return e.toFixed(o)+" "+s[n]}}var Wp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,ye=(t,e,i,o)=>{for(var r=o>1?void 0:o?Kp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Wp(e,i,r),r};let X=class extends v{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(t){const e=this._file;t instanceof File&&(this._name=t.name.split(".")[0],this._extension=t.name.split(".")[1],this._isDirectory=!1,this._size=t.size,this._isFileAnImage(t)&&(this._isImage=!0,this._getThumbnail(t).then(i=>{this._src=i})),this.requestUpdate("file",e))}connectedCallback(){super.connectedCallback(),y(this,"uui-symbol-file-thumbnail"),y(this,"uui-symbol-folder"),y(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?l`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?l`<uui-symbol-file-thumbnail
|
|
2936
2936
|
.src=${this._src}
|
|
2937
2937
|
.alt=${this._name}
|
|
2938
2938
|
id="file-symbol"></uui-symbol-file-thumbnail>`:l`<uui-symbol-file
|
|
@@ -2952,10 +2952,10 @@
|
|
|
2952
2952
|
<div id="file-info">
|
|
2953
2953
|
${this._renderLongName()}
|
|
2954
2954
|
<span id="file-size">
|
|
2955
|
-
${this._size&&!this._isDirectory?l`${
|
|
2955
|
+
${this._size&&!this._isDirectory?l`${qp.humanFileSize(this._size,!0)}`:""}
|
|
2956
2956
|
</span>
|
|
2957
2957
|
</div>
|
|
2958
|
-
`}};
|
|
2958
|
+
`}};X.styles=[d`
|
|
2959
2959
|
:host {
|
|
2960
2960
|
position: relative;
|
|
2961
2961
|
display: grid;
|
|
@@ -3023,7 +3023,7 @@
|
|
|
3023
3023
|
text-decoration: underline;
|
|
3024
3024
|
cursor: pointer;
|
|
3025
3025
|
}
|
|
3026
|
-
`],ye([b()],
|
|
3026
|
+
`],ye([b()],X.prototype,"_name",2),ye([b()],X.prototype,"_url",2),ye([b()],X.prototype,"_extension",2),ye([b()],X.prototype,"_src",2),ye([b()],X.prototype,"_size",2),ye([b()],X.prototype,"_isDirectory",2),ye([b()],X.prototype,"_file",2),ye([b()],X.prototype,"_isImage",2),ye([a({attribute:!1})],X.prototype,"file",1),X=ye([p("uui-file-preview")],X);var Xp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,Dr=(t,e,i,o)=>{for(var r=o>1?void 0:o?Yp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Xp(e,i,r),r};let wt=class extends v{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=t=>{this._labelSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=t=>{this._descriptionSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),y(this,"uui-form-validation-message")}render(){return l`
|
|
3027
3027
|
<div id="label" style=${this._labelSlotHasContent?"":"display: none"}>
|
|
3028
3028
|
<slot name="label" @slotchange=${this._labelSlotChanged}></slot>
|
|
3029
3029
|
</div>
|
|
@@ -3062,21 +3062,21 @@
|
|
|
3062
3062
|
* @license
|
|
3063
3063
|
* Copyright 2017 Google LLC
|
|
3064
3064
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3065
|
-
*/const
|
|
3065
|
+
*/const bl=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ko=Bt(class extends Rt{constructor(t){if(super(t),t.type!==ue.CHILD)throw Error("repeat() can only be used in text expressions")}ct(t,e,i){let o;i===void 0?i=e:e!==void 0&&(o=e);const r=[],s=[];let n=0;for(const u of t)r[n]=o?o(u,n):n,s[n]=i(u,n),n++;return{values:s,keys:r}}render(t,e,i){return this.ct(t,e,i).values}update(t,[e,i,o]){var r;const s=Yd(t),{values:n,keys:u}=this.ct(e,i,o);if(!Array.isArray(s))return this.ut=u,n;const c=(r=this.ut)!==null&&r!==void 0?r:this.ut=[],h=[];let f,m,g=0,x=s.length-1,w=0,E=n.length-1;for(;g<=x&&w<=E;)if(s[g]===null)g++;else if(s[x]===null)x--;else if(c[g]===u[w])h[w]=_t(s[g],n[w]),g++,w++;else if(c[x]===u[E])h[E]=_t(s[x],n[E]),x--,E--;else if(c[g]===u[E])h[E]=_t(s[g],n[E]),Ai(t,h[E+1],s[g]),g++,E--;else if(c[x]===u[w])h[w]=_t(s[x],n[w]),Ai(t,s[g],s[x]),x--,w++;else if(f===void 0&&(f=bl(u,w,E),m=bl(c,g,x)),f.has(c[g]))if(f.has(c[x])){const B=m.get(u[w]),Oe=B!==void 0?s[B]:null;if(Oe===null){const ke=Ai(t,s[g]);_t(ke,n[w]),h[w]=ke}else h[w]=_t(Oe,n[w]),Ai(t,s[g],Oe),s[B]=null;w++}else Bo(s[x]),x--;else Bo(s[g]),g++;for(;w<=E;){const B=Ai(t,h[E+1]);_t(B,n[w]),h[w++]=B}for(;g<=x;){const B=s[g++];B!==null&&Bo(B)}return this.ut=u,ja(t,h),F}});var Zp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,gl=(t,e,i,o)=>{for(var r=o>1?void 0:o?Qp(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Zp(e,i,r),r};let Mi=class extends v{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=t=>{const e=t.composedPath()[0];e.pristine===!1?this._messages.set(e,e.validationMessage):this._messages.delete(e),this.requestUpdate()},this._onControlValid=t=>{const e=t.composedPath()[0];this._messages.delete(e),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(t){let e=null;if(typeof t=="string"){const r=this.getRootNode();e=r?.getElementById(t)}const i=e||this,o=this._for;o!==i&&(o!==null&&(o.removeEventListener(jt.INVALID,this._onControlInvalid),o.removeEventListener(jt.VALID,this._onControlValid)),this._for=i,this._for.addEventListener(jt.INVALID,this._onControlInvalid),this._for.addEventListener(jt.VALID,this._onControlValid))}render(){return l`
|
|
3066
3066
|
<slot></slot>
|
|
3067
3067
|
<div id="messages">
|
|
3068
3068
|
${Ko(this._messages,t=>l`<div>${t[1]}</div>`)}
|
|
3069
3069
|
<slot name="message"></slot>
|
|
3070
3070
|
</div>
|
|
3071
|
-
`}};
|
|
3071
|
+
`}};Mi.styles=[d`
|
|
3072
3072
|
#messages {
|
|
3073
3073
|
color: var(--uui-color-danger-standalone,rgb(191, 33, 78));
|
|
3074
3074
|
}
|
|
3075
|
-
`],
|
|
3075
|
+
`],gl([a({reflect:!1,attribute:!0})],Mi.prototype,"for",1),Mi=gl([p("uui-form-validation-message")],Mi);var Jp=Object.defineProperty,ev=Object.getOwnPropertyDescriptor,tv=(t,e,i,o)=>{for(var r=o>1?void 0:o?ev(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Jp(e,i,r),r};let Xo=class extends v{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(t){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const e=t.target.assignedNodes({flatten:!0}).filter(i=>i instanceof HTMLFormElement);this._formElement=e.length>0?e[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(t){if(t.target===null)return;const e=t.target;if(!e.checkValidity()){e.setAttribute("submit-invalid","");return}e.removeAttribute("submit-invalid")}_onReset(t){t.target!==null&&t.target.removeAttribute("submit-invalid")}render(){return l`<slot @slotchange=${this._onSlotChanged}></slot>`}};Xo=tv([p("uui-form")],Xo);/**
|
|
3076
3076
|
* @license
|
|
3077
3077
|
* Copyright 2017 Google LLC
|
|
3078
3078
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3079
|
-
*/class Yo extends
|
|
3079
|
+
*/class Yo extends Rt{constructor(e){if(super(e),this.et=$,e.type!==ue.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===$||e==null)return this.ft=void 0,this.et=e;if(e===F)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const i=[e];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Yo.directiveName="unsafeHTML",Yo.resultType=1;const Zo=Bt(Yo);var iv=Object.defineProperty,ml=Object.getOwnPropertySymbols,rv=Object.prototype.hasOwnProperty,ov=Object.prototype.propertyIsEnumerable,_l=(t,e,i)=>e in t?iv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,yl=(t,e)=>{for(var i in e||(e={}))rv.call(e,i)&&_l(t,i,e[i]);if(ml)for(var i of ml(e))ov.call(e,i)&&_l(t,i,e[i]);return t};class Yt extends k{constructor(e,i={}){super(e,yl(yl({},{bubbles:!0,composed:!0}),i)),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}}Yt.ICON_REQUEST="icon-request";var sv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,$t=(t,e,i,o)=>{for(var r=o>1?void 0:o?nv(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&sv(e,i,r),r};let xe=class extends v{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.label="",this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(t){this._name=t,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const t=new Yt(Yt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(t),t.icon!==null?(this._retrievedNameIcon=!0,t.icon.then(e=>{this._useFallback=!1,this._nameSvg=e})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon(),typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}render(){return this._useFallback===!0?this.fallback===null?l`<slot name="fallback"></slot>`:Zo(this.fallback):this._nameSvg!==null?Zo(this._nameSvg):this.svg!==null?Zo(this.svg):l`<slot></slot>`}};xe.styles=[d`
|
|
3080
3080
|
:host {
|
|
3081
3081
|
display: inline-block;
|
|
3082
3082
|
vertical-align: bottom;
|
|
@@ -3096,13 +3096,13 @@
|
|
|
3096
3096
|
:host-context(div[slot='append']) {
|
|
3097
3097
|
margin-right: var(--uui-size-2, 6px);
|
|
3098
3098
|
}
|
|
3099
|
-
`],$t([b()],xe.prototype,"_nameSvg",2),$t([a()],xe.prototype,"label",2),$t([a()],xe.prototype,"name",1),$t([a({attribute:!1})],xe.prototype,"svg",2),$t([a({attribute:!1})],xe.prototype,"fallback",2),$t([b()],xe.prototype,"_useFallback",2),xe=$t([p("uui-icon")],xe);class Qo{constructor(e){this.promise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),e&&this.resolve(e)}set svg(e){this.resolve(e)}}class Jo{constructor(){this.icons={},this._onIconRequest=e=>{const i=this.getIcon(e.detail.iconName);i!==null&&e.acceptRequest(i)}}attach(e){e.addEventListener(Zt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Zt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,i){if(this.icons[e]){this.icons[e].svg=i;return}this.icons[e]=new Qo(i)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Qo}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}}var lv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,wl=(t,e,i,o)=>{for(var r=o>1?void 0:o?uv(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&lv(e,i,r),r};let Mi=class extends v{constructor(){super(),this._icons={},this._registry=new Jo,this._registry.attach(this)}get icons(){return this._icons}set icons(t){this._icons=t,this._registry&&Object.entries(this._icons).forEach(([e,i])=>this._registry.defineIcon(e,i))}get registry(){return this._registry}set registry(t){this.registry&&this.registry.detach(this),t.attach(this),this._registry=t}render(){return l`<slot></slot>`}};wl([a({attribute:!1})],Mi.prototype,"_icons",2),Mi=wl([p("uui-icon-registry")],Mi);const cv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" /><path d="M9 8V2" /><path d="M15 8V2" /> <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></svg>`,hv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`,dv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48" /></svg>`,pv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2" /><line x1="16" x2="16" y1="2" y2="6" /><line x1="8" x2="8" y1="2" y2="6" /><line x1="3" x2="21" y1="10" y2="10" /><path d="M8 14h.01" /><path d="M12 14h.01" /><path d="M16 14h.01" /><path d="M8 18h.01" /><path d="M12 18h.01" /><path d="M16 18h.01" /></svg>`,vv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12" /></svg>`,fv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1" /><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" /></svg>`,bv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" /><polyline points="8 6 2 12 8 18" /></svg>`,gv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9" /><path d="M3 21v-3l9-9" /><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z" /></svg>`,mv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z" /><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8" /><path d="M15 2v5h5" /></svg>`,_v=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18" /><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" /><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" /><line x1="10" x2="10" y1="11" y2="17" /><line x1="14" x2="14" y1="11" y2="17" /></svg>`,yv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" /><polyline points="14 2 14 8 20 8" /></svg>`,xv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><polyline points="7 10 12 15 17 10" /><line x1="12" x2="12" y1="15" y2="3" /></svg>`,wv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z" /><path d="m15 5 4 4" /></svg>`,$v=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></svg>`,Ev=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /><path d="M2 10h20" /></svg>`,Pv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>`,Cv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="10" /><path d="M12 16v-4" /><path d="M12 8h.01" /></svg>`,Ov=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" /><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" /></svg>`,kv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" /><path d="M7 11V7a5 5 0 0 1 10 0v4" /></svg>`,Sv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4" /><rect width="4" height="16" x="14" y="4" /></svg>`,Iv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><circle cx="9" cy="9" r="2" /><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" /></svg>`,zv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3" /></svg>`,Av=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></svg>`,Uv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8" /><path d="m21 21-4.3-4.3" /></svg>`,Dv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" /><circle cx="12" cy="12" r="3" /></svg>`,Lv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /><circle cx="12" cy="12" r="3" /></svg>`,Tv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14" /></svg>`,Mv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /><path d="M21 3v5h-5" /><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /><path d="M8 16H3v5" /></svg>`,Nv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" /><path d="M7 11V7a5 5 0 0 1 9.9-1" /></svg>`,Vv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24" /><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" /><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" /><line x1="2" x2="22" y1="2" y2="22" /></svg>`,jv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2" /><path d="M15 16v-2" /><path d="M8 9h2" /><path d="M20 9h2" /><path d="M17.8 11.8 19 13" /><path d="M15 9h0" /><path d="M17.8 6.2 19 5" /><path d="m3 21 9-9" /><path d="M12.2 6.2 11 5" /></svg>`,Hv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>`;class $l extends Jo{constructor(){super(),this.defineIcon("add",cv.strings[0]),this.defineIcon("alert",hv.strings[0]),this.defineIcon("attachment",dv.strings[0]),this.defineIcon("calendar",pv.strings[0]),this.defineIcon("check",vv.strings[0]),this.defineIcon("clipboard",fv.strings[0]),this.defineIcon("code",bv.strings[0]),this.defineIcon("colorpicker",gv.strings[0]),this.defineIcon("copy",mv.strings[0]),this.defineIcon("delete",_v.strings[0]),this.defineIcon("document",yv.strings[0]),this.defineIcon("download",xv.strings[0]),this.defineIcon("edit",wv.strings[0]),this.defineIcon("favorite",$v.strings[0]),this.defineIcon("folder",Ev.strings[0]),this.defineIcon("forbidden",Pv.strings[0]),this.defineIcon("info",Cv.strings[0]),this.defineIcon("link",Ov.strings[0]),this.defineIcon("lock",kv.strings[0]),this.defineIcon("pause",Sv.strings[0]),this.defineIcon("picture",Iv.strings[0]),this.defineIcon("play",zv.strings[0]),this.defineIcon("remove",Av.strings[0]),this.defineIcon("search",Uv.strings[0]),this.defineIcon("see",Dv.strings[0]),this.defineIcon("settings",Lv.strings[0]),this.defineIcon("subtract",Tv.strings[0]),this.defineIcon("sync",Mv.strings[0]),this.defineIcon("unlock",Nv.strings[0]),this.defineIcon("unsee",Vv.strings[0]),this.defineIcon("wand",jv.strings[0]),this.defineIcon("wrong",Hv.strings[0])}}var Bv=Object.defineProperty,Rv=Object.getOwnPropertyDescriptor,Fv=(t,e,i,o)=>{for(var r=o>1?void 0:o?Rv(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Bv(e,i,r),r};let es=class extends Mi{constructor(){super(),this.registry=new $l}};es=Fv([p("uui-icon-registry-essential")],es);var Gv=Object.defineProperty,qv=Object.getOwnPropertyDescriptor,Qt=(t,e,i,o)=>{for(var r=o>1?void 0:o?qv(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Gv(e,i,r),r};let Ne=class extends fe(v){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=t=>{let e=[];for(const i of t)this.multiple?e.push(i):e=[i];this._files=e},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(t){if(super.value=t,t instanceof FormData){const e=this.multiple?t.getAll(this.name):[t.get(this.name)];this._updateFileWrappers(e);return}if(t instanceof File){this._updateFileWrappers([t]);return}}connectedCallback(){super.connectedCallback(),y(this,"uui-icon"),y(this,"uui-file-dropzone"),y(this,"uui-button"),y(this,"uui-action-bar"),y(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(t){t.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(t){const i=t.detail.files.filter(r=>r instanceof File||r.isFile);if(!this.multiple){const r=i[0],n=r instanceof File?r:await this._getFile(r);if(this.value instanceof File){this.value=n;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,n),this._updateFileWrappers([n]);return}}let o=this.value;if(i.length>0&&!(this.value instanceof FormData)&&(o=new FormData),o instanceof FormData)for(const r of i){const s=r instanceof File;o.append(this.name,s?r:await this._getFile(r))}this.value=o}async _getFile(t){return await new Promise((e,i)=>t.file(e,i))}_removeFile(t){const e=this._files[t];if(this.value instanceof FormData){const o=this.value.getAll(this.name).filter(r=>r!==e);if(o.length===0)this.value="";else{this.value.delete(this.name);for(const r of o)this.value.append(this.name,r)}this._updateFileWrappers(o)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(t){t?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(t,e){return l`<uui-file-preview .file="${t}">
|
|
3099
|
+
`],$t([b()],xe.prototype,"_nameSvg",2),$t([a()],xe.prototype,"label",2),$t([a()],xe.prototype,"name",1),$t([a({attribute:!1})],xe.prototype,"svg",2),$t([a({attribute:!1})],xe.prototype,"fallback",2),$t([b()],xe.prototype,"_useFallback",2),xe=$t([p("uui-icon")],xe);class Qo{constructor(e){this.promise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),e&&this.resolve(e)}set svg(e){this.resolve(e)}}class Jo{constructor(){this.icons={},this._onIconRequest=e=>{const i=this.getIcon(e.detail.iconName);i!==null&&e.acceptRequest(i)}}attach(e){e.addEventListener(Yt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Yt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,i){if(this.icons[e]){this.icons[e].svg=i;return}this.icons[e]=new Qo(i)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Qo}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}}var av=Object.defineProperty,lv=Object.getOwnPropertyDescriptor,xl=(t,e,i,o)=>{for(var r=o>1?void 0:o?lv(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&av(e,i,r),r};let Ti=class extends v{constructor(){super(),this._icons={},this._registry=new Jo,this._registry.attach(this)}get icons(){return this._icons}set icons(t){this._icons=t,this._registry&&Object.entries(this._icons).forEach(([e,i])=>this._registry.defineIcon(e,i))}get registry(){return this._registry}set registry(t){this.registry&&this.registry.detach(this),t.attach(this),this._registry=t}render(){return l`<slot></slot>`}};xl([a({attribute:!1})],Ti.prototype,"_icons",2),Ti=xl([p("uui-icon-registry")],Ti);const uv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" /><path d="M9 8V2" /><path d="M15 8V2" /> <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></svg>`,cv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`,hv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48" /></svg>`,dv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2" /><line x1="16" x2="16" y1="2" y2="6" /><line x1="8" x2="8" y1="2" y2="6" /><line x1="3" x2="21" y1="10" y2="10" /><path d="M8 14h.01" /><path d="M12 14h.01" /><path d="M16 14h.01" /><path d="M8 18h.01" /><path d="M12 18h.01" /><path d="M16 18h.01" /></svg>`,pv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12" /></svg>`,vv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1" /><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" /></svg>`,fv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" /><polyline points="8 6 2 12 8 18" /></svg>`,bv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9" /><path d="M3 21v-3l9-9" /><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z" /></svg>`,gv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z" /><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8" /><path d="M15 2v5h5" /></svg>`,mv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18" /><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" /><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" /><line x1="10" x2="10" y1="11" y2="17" /><line x1="14" x2="14" y1="11" y2="17" /></svg>`,_v=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" /><polyline points="14 2 14 8 20 8" /></svg>`,yv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><polyline points="7 10 12 15 17 10" /><line x1="12" x2="12" y1="15" y2="3" /></svg>`,xv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z" /><path d="m15 5 4 4" /></svg>`,wv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></svg>`,$v=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /><path d="M2 10h20" /></svg>`,Ev=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>`,Pv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="10" /><path d="M12 16v-4" /><path d="M12 8h.01" /></svg>`,Cv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" /><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" /></svg>`,Ov=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" /><path d="M7 11V7a5 5 0 0 1 10 0v4" /></svg>`,kv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4" /><rect width="4" height="16" x="14" y="4" /></svg>`,Sv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><circle cx="9" cy="9" r="2" /><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" /></svg>`,Iv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3" /></svg>`,zv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></svg>`,Av=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8" /><path d="m21 21-4.3-4.3" /></svg>`,Uv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" /><circle cx="12" cy="12" r="3" /></svg>`,Dv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /><circle cx="12" cy="12" r="3" /></svg>`,Lv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14" /></svg>`,Mv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /><path d="M21 3v5h-5" /><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /><path d="M8 16H3v5" /></svg>`,Tv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" /><path d="M7 11V7a5 5 0 0 1 9.9-1" /></svg>`,Nv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24" /><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" /><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" /><line x1="2" x2="22" y1="2" y2="22" /></svg>`,Vv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2" /><path d="M15 16v-2" /><path d="M8 9h2" /><path d="M20 9h2" /><path d="M17.8 11.8 19 13" /><path d="M15 9h0" /><path d="M17.8 6.2 19 5" /><path d="m3 21 9-9" /><path d="M12.2 6.2 11 5" /></svg>`,jv=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>`;class wl extends Jo{constructor(){super(),this.defineIcon("add",uv.strings[0]),this.defineIcon("alert",cv.strings[0]),this.defineIcon("attachment",hv.strings[0]),this.defineIcon("calendar",dv.strings[0]),this.defineIcon("check",pv.strings[0]),this.defineIcon("clipboard",vv.strings[0]),this.defineIcon("code",fv.strings[0]),this.defineIcon("colorpicker",bv.strings[0]),this.defineIcon("copy",gv.strings[0]),this.defineIcon("delete",mv.strings[0]),this.defineIcon("document",_v.strings[0]),this.defineIcon("download",yv.strings[0]),this.defineIcon("edit",xv.strings[0]),this.defineIcon("favorite",wv.strings[0]),this.defineIcon("folder",$v.strings[0]),this.defineIcon("forbidden",Ev.strings[0]),this.defineIcon("info",Pv.strings[0]),this.defineIcon("link",Cv.strings[0]),this.defineIcon("lock",Ov.strings[0]),this.defineIcon("pause",kv.strings[0]),this.defineIcon("picture",Sv.strings[0]),this.defineIcon("play",Iv.strings[0]),this.defineIcon("remove",zv.strings[0]),this.defineIcon("search",Av.strings[0]),this.defineIcon("see",Uv.strings[0]),this.defineIcon("settings",Dv.strings[0]),this.defineIcon("subtract",Lv.strings[0]),this.defineIcon("sync",Mv.strings[0]),this.defineIcon("unlock",Tv.strings[0]),this.defineIcon("unsee",Nv.strings[0]),this.defineIcon("wand",Vv.strings[0]),this.defineIcon("wrong",jv.strings[0])}}var Hv=Object.defineProperty,Bv=Object.getOwnPropertyDescriptor,Rv=(t,e,i,o)=>{for(var r=o>1?void 0:o?Bv(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Hv(e,i,r),r};let es=class extends Ti{constructor(){super(),this.registry=new wl}};es=Rv([p("uui-icon-registry-essential")],es);var Fv=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,Zt=(t,e,i,o)=>{for(var r=o>1?void 0:o?Gv(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Fv(e,i,r),r};let Ne=class extends fe(v){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=t=>{let e=[];for(const i of t)this.multiple?e.push(i):e=[i];this._files=e},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(t){if(super.value=t,t instanceof FormData){const e=this.multiple?t.getAll(this.name):[t.get(this.name)];this._updateFileWrappers(e);return}if(t instanceof File){this._updateFileWrappers([t]);return}}connectedCallback(){super.connectedCallback(),y(this,"uui-icon"),y(this,"uui-file-dropzone"),y(this,"uui-button"),y(this,"uui-action-bar"),y(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(t){t.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(t){const i=t.detail.files.filter(r=>r instanceof File||r.isFile);if(!this.multiple){const r=i[0],n=r instanceof File?r:await this._getFile(r);if(this.value instanceof File){this.value=n;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,n),this._updateFileWrappers([n]);return}}let o=this.value;if(i.length>0&&!(this.value instanceof FormData)&&(o=new FormData),o instanceof FormData)for(const r of i){const s=r instanceof File;o.append(this.name,s?r:await this._getFile(r))}this.value=o}async _getFile(t){return await new Promise((e,i)=>t.file(e,i))}_removeFile(t){const e=this._files[t];if(this.value instanceof FormData){const o=this.value.getAll(this.name).filter(r=>r!==e);if(o.length===0)this.value="";else{this.value.delete(this.name);for(const r of o)this.value.append(this.name,r)}this._updateFileWrappers(o)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(t){t?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(t,e){return l`<uui-file-preview .file="${t}">
|
|
3100
3100
|
<uui-action-bar slot="actions">
|
|
3101
3101
|
<uui-button
|
|
3102
3102
|
@click=${()=>this._removeFile(e)}
|
|
3103
3103
|
color="danger"
|
|
3104
3104
|
label=${`Delete ${t.name}`}>
|
|
3105
|
-
<uui-icon name="delete" .fallback=${
|
|
3105
|
+
<uui-icon name="delete" .fallback=${ad.strings[0]}></uui-icon>
|
|
3106
3106
|
</uui-button>
|
|
3107
3107
|
</uui-action-bar>
|
|
3108
3108
|
</uui-file-preview>`}_renderFiles(){return l`${Ko(this._files,t=>t.name+t.size,(t,e)=>this._renderFileItem(t,e))}`}render(){return l`
|
|
@@ -3169,7 +3169,7 @@
|
|
|
3169
3169
|
justify-content: center;
|
|
3170
3170
|
align-items: stretch;
|
|
3171
3171
|
}
|
|
3172
|
-
`],
|
|
3172
|
+
`],Zt([O("#dropzone")],Ne.prototype,"_dropzone",2),Zt([O("#dropzone")],Ne.prototype,"_dropZone",2),Zt([a({type:String})],Ne.prototype,"accept",2),Zt([a({type:Boolean})],Ne.prototype,"multiple",2),Zt([b()],Ne.prototype,"_files",2),Ne=Zt([p("uui-input-file")],Ne);var qv=Object.defineProperty,$l=Object.getOwnPropertySymbols,Wv=Object.prototype.hasOwnProperty,Kv=Object.prototype.propertyIsEnumerable,El=(t,e,i)=>e in t?qv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Pl=(t,e)=>{for(var i in e||(e={}))Wv.call(e,i)&&El(t,i,e[i]);if($l)for(var i of $l(e))Kv.call(e,i)&&El(t,i,e[i]);return t};class Et extends k{constructor(e,i={}){super(e,Pl(Pl({},{bubbles:!0}),i))}}Et.CHANGE="change",Et.INPUT="input";var Xv=Object.defineProperty,Yv=Object.getOwnPropertyDescriptor,V=(t,e,i,o)=>{for(var r=o>1?void 0:o?Yv(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Xv(e,i,r),r};let I=class extends fe(ve("",v)){constructor(){super(),this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="",this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&String(this._value).length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&String(this._value).length>this.maxlength)}get type(){return this._type}set type(t){this._type=t}firstUpdated(t){super.firstUpdated(t),this.addFormControlElement(this._input)}_onKeypress(t){this.type!=="color"&&t.key=="Enter"&&this.submit()}blur(){this._input.blur()}focus(){this._input.focus()}select(){this._input.select()}getFormElement(){return this._input}onInput(t){t.stopPropagation(),this.value=t.target.value,this.dispatchEvent(new Et(Et.INPUT))}onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Et(Et.CHANGE))}renderPrepend(){return l`<slot name="prepend"></slot>`}renderAppend(){return l`<slot name="append"></slot>`}render(){return l`
|
|
3173
3173
|
${this.renderPrepend()}
|
|
3174
3174
|
${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()}
|
|
3175
3175
|
${this.renderAppend()}
|
|
@@ -3199,7 +3199,7 @@
|
|
|
3199
3199
|
position: relative;
|
|
3200
3200
|
display: inline-flex;
|
|
3201
3201
|
align-items: stretch;
|
|
3202
|
-
height: var(--uui-size-11,33px);
|
|
3202
|
+
height: var(--uui-input-height, var(--uui-size-11,33px));
|
|
3203
3203
|
text-align: left;
|
|
3204
3204
|
box-sizing: border-box;
|
|
3205
3205
|
background-color: var(
|
|
@@ -3303,6 +3303,7 @@
|
|
|
3303
3303
|
border: none;
|
|
3304
3304
|
background: none;
|
|
3305
3305
|
width: 100%;
|
|
3306
|
+
height: inherit;
|
|
3306
3307
|
text-align: inherit;
|
|
3307
3308
|
outline: none;
|
|
3308
3309
|
}
|
|
@@ -3322,9 +3323,9 @@
|
|
|
3322
3323
|
height: 100%;
|
|
3323
3324
|
--uui-input-border-width: 0;
|
|
3324
3325
|
}
|
|
3325
|
-
`],V([a()],I.prototype,"min",2),V([a({type:Number})],I.prototype,"minlength",2),V([a({type:String,attribute:"minlength-message"})],I.prototype,"minlengthMessage",2),V([a()],I.prototype,"max",2),V([a({type:Number})],I.prototype,"maxlength",2),V([a({type:String,attribute:"maxlength-message"})],I.prototype,"maxlengthMessage",2),V([a({type:Number})],I.prototype,"step",2),V([a({type:Boolean,reflect:!0})],I.prototype,"disabled",2),V([a({type:Boolean,reflect:!0})],I.prototype,"readonly",2),V([a()],I.prototype,"placeholder",2),V([a()],I.prototype,"autocomplete",2),V([a({type:Boolean,reflect:!0,attribute:"auto-width"})],I.prototype,"autoWidth",2),V([a({type:String})],I.prototype,"type",1),V([a({type:String})],I.prototype,"pattern",2),V([a({type:String})],I.prototype,"inputMode",2),V([O("#input")],I.prototype,"_input",2),I=V([p("uui-input")],I);var
|
|
3326
|
+
`],V([a()],I.prototype,"min",2),V([a({type:Number})],I.prototype,"minlength",2),V([a({type:String,attribute:"minlength-message"})],I.prototype,"minlengthMessage",2),V([a()],I.prototype,"max",2),V([a({type:Number})],I.prototype,"maxlength",2),V([a({type:String,attribute:"maxlength-message"})],I.prototype,"maxlengthMessage",2),V([a({type:Number})],I.prototype,"step",2),V([a({type:Boolean,reflect:!0})],I.prototype,"disabled",2),V([a({type:Boolean,reflect:!0})],I.prototype,"readonly",2),V([a()],I.prototype,"placeholder",2),V([a()],I.prototype,"autocomplete",2),V([a({type:Boolean,reflect:!0,attribute:"auto-width"})],I.prototype,"autoWidth",2),V([a({type:String})],I.prototype,"type",1),V([a({type:String})],I.prototype,"pattern",2),V([a({type:String})],I.prototype,"inputMode",2),V([O("#input")],I.prototype,"_input",2),I=V([p("uui-input")],I);var Zv=Object.defineProperty,Qv=Object.getOwnPropertyDescriptor,Cl=(t,e,i,o)=>{for(var r=o>1?void 0:o?Qv(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Zv(e,i,r),r};let Ni=class extends I{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),y(this,"uui-icon"),y(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?l`<uui-icon name="lock" .fallback=${ld.strings[0]}></uui-icon>`:l`<uui-icon
|
|
3326
3327
|
name="unlock"
|
|
3327
|
-
.fallback=${
|
|
3328
|
+
.fallback=${hd.strings[0]}></uui-icon>`}renderPrepend(){return l`<uui-button
|
|
3328
3329
|
.disabled=${this.disabled}
|
|
3329
3330
|
@click=${this._onLockToggle}
|
|
3330
3331
|
compact
|
|
@@ -3344,16 +3345,16 @@
|
|
|
3344
3345
|
cursor: not-allowed;
|
|
3345
3346
|
opacity: 0.55;
|
|
3346
3347
|
}
|
|
3347
|
-
`],
|
|
3348
|
+
`],Cl([a({type:Boolean,reflect:!0})],Ni.prototype,"locked",2),Ni=Cl([p("uui-input-lock")],Ni);var Jv=Object.defineProperty,ef=Object.getOwnPropertyDescriptor,ts=(t,e,i,o)=>{for(var r=o>1?void 0:o?ef(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Jv(e,i,r),r};let Qt=class extends I{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(t){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),y(this,"uui-icon"),y(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?l`<uui-icon name="see" .fallback=${cd.strings[0]}></uui-icon>`:l`<uui-icon
|
|
3348
3349
|
name="unsee"
|
|
3349
|
-
.fallback=${
|
|
3350
|
+
.fallback=${dd.strings[0]}></uui-icon>`}renderAppend(){return l`<uui-button
|
|
3350
3351
|
.disabled=${this.disabled}
|
|
3351
3352
|
@click=${this._onPasswordToggle}
|
|
3352
3353
|
compact
|
|
3353
3354
|
label="${this.passwordType==="password"?"Show password":"Hide password"}"
|
|
3354
3355
|
id="eye">
|
|
3355
3356
|
${this.renderIcon()}
|
|
3356
|
-
</uui-button>`}};
|
|
3357
|
+
</uui-button>`}};Qt.styles=[...I.styles,d`
|
|
3357
3358
|
#eye {
|
|
3358
3359
|
height: 100%;
|
|
3359
3360
|
margin-left: -6px;
|
|
@@ -3362,7 +3363,7 @@
|
|
|
3362
3363
|
#clear:hover {
|
|
3363
3364
|
color: black;
|
|
3364
3365
|
}
|
|
3365
|
-
`],ts([b()],
|
|
3366
|
+
`],ts([b()],Qt.prototype,"passwordType",2),ts([a()],Qt.prototype,"type",1),Qt=ts([p("uui-input-password")],Qt);var tf=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,of=(t,e,i,o)=>{for(var r=o>1?void 0:o?rf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&tf(e,i,r),r};let Lr=class extends v{render(){return l`<slot></slot>`}};Lr.styles=[d`
|
|
3366
3367
|
:host {
|
|
3367
3368
|
display: inline-block;
|
|
3368
3369
|
font-family: inherit;
|
|
@@ -3377,7 +3378,7 @@
|
|
|
3377
3378
|
::slotted(*:last-child)uui-key {
|
|
3378
3379
|
margin-right: 0px;
|
|
3379
3380
|
}
|
|
3380
|
-
`],Lr=
|
|
3381
|
+
`],Lr=of([p("uui-keyboard-shortcut")],Lr);var sf=Object.defineProperty,nf=Object.getOwnPropertyDescriptor,af=(t,e,i,o)=>{for(var r=o>1?void 0:o?nf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&sf(e,i,r),r};let Mr=class extends v{render(){return l`<slot></slot>`}};Mr.styles=[d`
|
|
3381
3382
|
:host {
|
|
3382
3383
|
background: var(--uui-color-surface,#fff);
|
|
3383
3384
|
border: 1px solid var(--uui-color-border,#d8d7d9);
|
|
@@ -3391,7 +3392,7 @@
|
|
|
3391
3392
|
user-select: none;
|
|
3392
3393
|
text-transform: lowercase;
|
|
3393
3394
|
}
|
|
3394
|
-
`],
|
|
3395
|
+
`],Mr=af([p("uui-key")],Mr);var lf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,Tr=(t,e,i,o)=>{for(var r=o>1?void 0:o?uf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&lf(e,i,r),r};let Pt=class extends v{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const t=this.getForElement();t&&(t.focus(),t.click())}getForElement(){if(typeof this.for=="string"){const t=this.getRootNode();return t?.getElementById(this.for)||null}return this.for||null}render(){return l`
|
|
3395
3396
|
<slot></slot>
|
|
3396
3397
|
${this.required?l`<div id="required">*</div>`:""}
|
|
3397
3398
|
`}};Pt.styles=[d`
|
|
@@ -3409,7 +3410,7 @@
|
|
|
3409
3410
|
color: var(--uui-color-danger,#d42054);
|
|
3410
3411
|
font-weight: 900;
|
|
3411
3412
|
}
|
|
3412
|
-
`],
|
|
3413
|
+
`],Tr([a({type:Boolean,reflect:!0})],Pt.prototype,"disabled",2),Tr([a({reflect:!0,attribute:!0})],Pt.prototype,"for",2),Tr([a({type:Boolean,reflect:!0})],Pt.prototype,"required",2),Pt=Tr([p("uui-label")],Pt);var cf=Object.defineProperty,hf=Object.getOwnPropertyDescriptor,is=(t,e,i,o)=>{for(var r=o>1?void 0:o?hf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&cf(e,i,r),r};const df=(t,e,i)=>Math.min(Math.max(t,e),i);let Jt=class extends v{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=df(t,0,100),this.requestUpdate("progress",e)}get animationDuration(){return this._animationDuration}set animationDuration(t){const e=this._animationDuration;this._animationDuration=t>=0?t:1,this.requestUpdate("animationDuration",e)}render(){return l`
|
|
3413
3414
|
${this.progress?l`<div
|
|
3414
3415
|
id="bar"
|
|
3415
3416
|
style="max-width: ${this.progress.toString()}%;"></div>`:""}
|
|
@@ -3418,7 +3419,7 @@
|
|
|
3418
3419
|
class=${this.progress?"":"animate"}
|
|
3419
3420
|
style="animation-duration: ${this.animationDuration}s"></div>
|
|
3420
3421
|
<div id="bar-background"></div>
|
|
3421
|
-
`}};
|
|
3422
|
+
`}};Jt.styles=[d`
|
|
3422
3423
|
:host {
|
|
3423
3424
|
position: relative;
|
|
3424
3425
|
display: block;
|
|
@@ -3477,7 +3478,7 @@
|
|
|
3477
3478
|
transform-origin: 175% 0%;
|
|
3478
3479
|
}
|
|
3479
3480
|
}
|
|
3480
|
-
`],is([a({type:Number})],
|
|
3481
|
+
`],is([a({type:Number})],Jt.prototype,"progress",1),is([a({type:Number})],Jt.prototype,"animationDuration",1),Jt=is([p("uui-loader-bar")],Jt);var pf=Object.defineProperty,vf=Object.getOwnPropertyDescriptor,rs=(t,e,i,o)=>{for(var r=o>1?void 0:o?vf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&pf(e,i,r),r};let ei=class extends v{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const t=this.clientHeight>=30;this._isLarge!=t&&(this._isLarge=t,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?l`<span id="progress-display">${this.progress}</span>`:""}render(){return l`
|
|
3481
3482
|
<svg
|
|
3482
3483
|
id="spinner"
|
|
3483
3484
|
class=${this.progress?"":"animate"}
|
|
@@ -3494,7 +3495,7 @@
|
|
|
3494
3495
|
</g>
|
|
3495
3496
|
</svg>
|
|
3496
3497
|
${this.renderProgress()}
|
|
3497
|
-
`}};
|
|
3498
|
+
`}};ei.styles=[d`
|
|
3498
3499
|
:host {
|
|
3499
3500
|
vertical-align: middle;
|
|
3500
3501
|
line-height: 0;
|
|
@@ -3579,7 +3580,7 @@
|
|
|
3579
3580
|
/* Center the text */
|
|
3580
3581
|
padding-top: 0.09em;
|
|
3581
3582
|
}
|
|
3582
|
-
`],rs([a({type:Number})],
|
|
3583
|
+
`],rs([a({type:Number})],ei.prototype,"progress",2),rs([a({type:Boolean,reflect:!0,attribute:"show-progress"})],ei.prototype,"showProgress",2),ei=rs([p("uui-loader-circle")],ei);var ff=Object.defineProperty,bf=Object.getOwnPropertyDescriptor,gf=(t,e,i,o)=>{for(var r=o>1?void 0:o?bf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&ff(e,i,r),r};let Nr=class extends v{render(){return l`
|
|
3583
3584
|
<div></div>
|
|
3584
3585
|
<div></div>
|
|
3585
3586
|
<div></div>
|
|
@@ -3623,11 +3624,11 @@
|
|
|
3623
3624
|
background-color: currentColor;
|
|
3624
3625
|
}
|
|
3625
3626
|
}
|
|
3626
|
-
`],Nr=
|
|
3627
|
+
`],Nr=gf([p("uui-loader")],Nr);/**
|
|
3627
3628
|
* @license
|
|
3628
3629
|
* Copyright 2017 Google LLC
|
|
3629
3630
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3630
|
-
*/const Vi=(t,e)=>{var i,o;const r=t._$AN;if(r===void 0)return!1;for(const s of r)(o=(i=s)._$AO)===null||o===void 0||o.call(i,e,!1),Vi(s,e);return!0},Vr=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while(i?.size===0)},
|
|
3631
|
+
*/const Vi=(t,e)=>{var i,o;const r=t._$AN;if(r===void 0)return!1;for(const s of r)(o=(i=s)._$AO)===null||o===void 0||o.call(i,e,!1),Vi(s,e);return!0},Vr=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while(i?.size===0)},Ol=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),yf(e)}};function mf(t){this._$AN!==void 0?(Vr(this),this._$AM=t,Ol(this)):this._$AM=t}function _f(t,e=!1,i=0){const o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(e)if(Array.isArray(o))for(let s=i;s<o.length;s++)Vi(o[s],!1),Vr(o[s]);else o!=null&&(Vi(o,!1),Vr(o));else Vi(this,t)}const yf=t=>{var e,i,o,r;t.type==ue.CHILD&&((e=(o=t)._$AP)!==null&&e!==void 0||(o._$AP=_f),(i=(r=t)._$AQ)!==null&&i!==void 0||(r._$AQ=mf))};class xf extends Rt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,o){super._$AT(e,i,o),Ol(this),this.isConnected=e._$AU}_$AO(e,i=!0){var o,r;e!==this.isConnected&&(this.isConnected=e,e?(o=this.reconnected)===null||o===void 0||o.call(this):(r=this.disconnected)===null||r===void 0||r.call(this)),i&&(Vi(this,e),Vr(this))}setValue(e){if(Na(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}const os=new WeakMap,ss=Bt(class extends xf{render(t){return $}update(t,[e]){var i;const o=e!==this.G;return o&&this.G!==void 0&&this.ot(void 0),(o||this.rt!==this.lt)&&(this.G=e,this.dt=(i=t.options)===null||i===void 0?void 0:i.host,this.ot(this.lt=t.element)),$}ot(t){var e;if(typeof this.G=="function"){const i=(e=this.dt)!==null&&e!==void 0?e:globalThis;let o=os.get(i);o===void 0&&(o=new WeakMap,os.set(i,o)),o.get(this.G)!==void 0&&this.G.call(this.dt,void 0),o.set(this.G,t),t!==void 0&&this.G.call(this.dt,t)}else this.G.value=t}get rt(){var t,e,i;return typeof this.G=="function"?(e=os.get((t=this.dt)!==null&&t!==void 0?t:globalThis))===null||e===void 0?void 0:e.get(this.G):(i=this.G)===null||i===void 0?void 0:i.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});class Ve extends k{}Ve.SHOW_CHILDREN="show-children",Ve.HIDE_CHILDREN="hide-children",Ve.CLICK_LABEL="click-label";var wf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,je=(t,e,i,o)=>{for(var r=o>1?void 0:o?$f(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&wf(e,i,r),r};let ne=class extends br(Nt(Ei(ve("label",v)))){constructor(){super(...arguments),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1,this._labelButtonChanged=t=>{this.selectableTarget=t||this},this._iconSlotChanged=t=>{this.iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const t=this.showChildren?Ve.HIDE_CHILDREN:Ve.SHOW_CHILDREN,e=new Ve(t,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.showChildren=!this.showChildren)},this._onLabelClicked=()=>{const t=new Ve(Ve.CLICK_LABEL);this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),y(this,"uui-symbol-expand"),y(this,"uui-loader-bar")}_renderLabelInside(){return l` <slot
|
|
3631
3632
|
name="icon"
|
|
3632
3633
|
id="icon"
|
|
3633
3634
|
style=${this.iconSlotHasContent?"":"display: none;"}
|
|
@@ -3670,13 +3671,18 @@
|
|
|
3670
3671
|
display: block;
|
|
3671
3672
|
--uui-menu-item-child-indent: calc(var(--uui-menu-item-indent, 0) + 1);
|
|
3672
3673
|
user-select: none;
|
|
3674
|
+
--flat-structure-reversed: calc(
|
|
3675
|
+
1 - var(--uui-menu-item-flat-structure, 0)
|
|
3676
|
+
);
|
|
3673
3677
|
}
|
|
3674
3678
|
|
|
3675
3679
|
#menu-item {
|
|
3676
3680
|
position: relative;
|
|
3677
3681
|
padding-left: calc(var(--uui-menu-item-indent, 0) * var(--uui-size-4,12px));
|
|
3678
3682
|
display: grid;
|
|
3679
|
-
grid-template-columns:
|
|
3683
|
+
grid-template-columns:
|
|
3684
|
+
calc(var(--flat-structure-reversed) * var(--uui-size-8,24px))
|
|
3685
|
+
1fr;
|
|
3680
3686
|
grid-template-rows: 1fr;
|
|
3681
3687
|
white-space: nowrap;
|
|
3682
3688
|
}
|
|
@@ -3859,7 +3865,10 @@
|
|
|
3859
3865
|
grid-column-start: 2;
|
|
3860
3866
|
white-space: nowrap;
|
|
3861
3867
|
overflow: hidden;
|
|
3862
|
-
|
|
3868
|
+
padding-right: var(--uui-size-space-3,9px);
|
|
3869
|
+
padding-left: calc(
|
|
3870
|
+
var(--uui-menu-item-flat-structure) * var(--uui-size-space-3,9px)
|
|
3871
|
+
);
|
|
3863
3872
|
display: inline-flex;
|
|
3864
3873
|
align-items: center;
|
|
3865
3874
|
text-decoration: none;
|
|
@@ -3877,10 +3886,6 @@
|
|
|
3877
3886
|
pointer-events: none; /* avoid hovering state on this. */
|
|
3878
3887
|
}
|
|
3879
3888
|
|
|
3880
|
-
#caret-button + #label-button {
|
|
3881
|
-
padding-left: 0;
|
|
3882
|
-
}
|
|
3883
|
-
|
|
3884
3889
|
#caret-button {
|
|
3885
3890
|
position: relative;
|
|
3886
3891
|
width: 100%;
|
|
@@ -3975,7 +3980,7 @@
|
|
|
3975
3980
|
--uui-button-height: calc(var(--uui-size-base-unit) * 4);
|
|
3976
3981
|
margin-right: var(--uui-size-base-unit);
|
|
3977
3982
|
}
|
|
3978
|
-
`],je([a({type:Boolean,reflect:!0})],ne.prototype,"disabled",2),je([a({type:Boolean,reflect:!0,attribute:"show-children"})],ne.prototype,"showChildren",2),je([a({type:Boolean,attribute:"has-children"})],ne.prototype,"hasChildren",2),je([a({type:Boolean,attribute:"loading"})],ne.prototype,"loading",2),je([a({type:String})],ne.prototype,"href",2),je([a({type:String})],ne.prototype,"target",2),je([a({type:String,attribute:"select-mode",reflect:!0})],ne.prototype,"selectMode",2),je([b()],ne.prototype,"iconSlotHasContent",2),ne=je([p("uui-menu-item")],ne);var
|
|
3983
|
+
`],je([a({type:Boolean,reflect:!0})],ne.prototype,"disabled",2),je([a({type:Boolean,reflect:!0,attribute:"show-children"})],ne.prototype,"showChildren",2),je([a({type:Boolean,attribute:"has-children"})],ne.prototype,"hasChildren",2),je([a({type:Boolean,attribute:"loading"})],ne.prototype,"loading",2),je([a({type:String})],ne.prototype,"href",2),je([a({type:String})],ne.prototype,"target",2),je([a({type:String,attribute:"select-mode",reflect:!0})],ne.prototype,"selectMode",2),je([b()],ne.prototype,"iconSlotHasContent",2),ne=je([p("uui-menu-item")],ne);var Ef=Object.defineProperty,Pf=Object.getOwnPropertyDescriptor,ti=(t,e,i,o)=>{for(var r=o>1?void 0:o?Pf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Ef(e,i,r),r};class Y extends v{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const i=new CustomEvent("open",{cancelable:!0});this.dispatchEvent(i),!i.defaultPrevented&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const i=new CustomEvent("close",{cancelable:!0});this.dispatchEvent(i),!i.defaultPrevented&&this._closeModal()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){var e,i;this.isOpen=!0,(e=this._dialogElement)==null||e.showModal(),(i=this._dialogElement)==null||i.addEventListener("cancel",this.close)}_closeModal(){var e;this.isClosing=!0,this.isOpen=!1,(e=this._dialogElement)==null||e.close(),this.dispatchEvent(new CustomEvent("close-end")),this.remove()}}Y.styles=[d`
|
|
3979
3984
|
dialog {
|
|
3980
3985
|
display: block;
|
|
3981
3986
|
margin: 0;
|
|
@@ -4001,9 +4006,9 @@
|
|
|
4001
4006
|
:host([index='0']) dialog::after {
|
|
4002
4007
|
opacity: 0;
|
|
4003
4008
|
}
|
|
4004
|
-
`],
|
|
4009
|
+
`],ti([O("dialog")],Y.prototype,"_dialogElement",2),ti([a({type:Boolean,reflect:!0,attribute:"is-open"})],Y.prototype,"isOpen",2),ti([a({type:Boolean,reflect:!0,attribute:"is-closing"})],Y.prototype,"isClosing",2),ti([a({type:Number,reflect:!0})],Y.prototype,"index",2),ti([a({type:Number,reflect:!0,attribute:"unique-index"})],Y.prototype,"uniqueIndex",2),ti([a({type:Number,attribute:"transition-duration"})],Y.prototype,"transitionDuration",1);var Cf=Object.defineProperty,Of=Object.getOwnPropertyDescriptor,kl=(t,e,i,o)=>{for(var r=o>1?void 0:o?Of(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Cf(e,i,r),r},Sl=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},Il=(t,e,i)=>(Sl(t,e,"read from private field"),i?i.call(t):e.get(t)),zl=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},kf=(t,e,i)=>(Sl(t,e,"access private method"),i),jr,ns,as,Al;let ii=class extends Y{constructor(){super(),zl(this,jr),zl(this,as),this.size="full",this.addEventListener("close",kf(this,as,Al).bind(this))}firstUpdated(t){super.firstUpdated(t),this.style.setProperty("--uui-modal-offset",-Il(this,jr,ns)+"px")}updated(t){super.updated(t),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}render(){return l`<dialog>
|
|
4005
4010
|
<slot></slot>
|
|
4006
|
-
</dialog>`}};jr=new WeakSet,ns=function(){var t,e;return(e=(t=this._dialogElement)==null?void 0:t.getBoundingClientRect().width)!=null?e:0},as=new WeakSet,
|
|
4011
|
+
</dialog>`}};jr=new WeakSet,ns=function(){var t,e;return(e=(t=this._dialogElement)==null?void 0:t.getBoundingClientRect().width)!=null?e:0},as=new WeakSet,Al=function(t){t.preventDefault(),!this.isClosing&&(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-Il(this,jr,ns)+"px"),setTimeout(()=>{this._closeModal()},this.transitionDuration))},ii.styles=[...Y.styles,d`
|
|
4007
4012
|
:host {
|
|
4008
4013
|
--uui-modal-sidebar-left-gap: 24px;
|
|
4009
4014
|
}
|
|
@@ -4039,7 +4044,7 @@
|
|
|
4039
4044
|
:host([size='small']) dialog {
|
|
4040
4045
|
max-width: min(400px, calc(100% - var(--uui-modal-sidebar-left-gap)));
|
|
4041
4046
|
}
|
|
4042
|
-
`],
|
|
4047
|
+
`],kl([a({reflect:!0})],ii.prototype,"size",2),ii=kl([Po("uui-modal-sidebar")],ii);var Sf=Object.defineProperty,If=Object.getOwnPropertyDescriptor,ri=(t,e,i,o)=>{for(var r=o>1?void 0:o?If(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Sf(e,i,r),r},Ul=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},Dl=(t,e,i)=>(Ul(t,e,"read from private field"),i?i.call(t):e.get(t)),Hr=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},Br=(t,e,i)=>(Ul(t,e,"access private method"),i),ls,us,Rr,cs,Fr,hs;let He=class extends v{constructor(){super(),Hr(this,Rr),Hr(this,Fr),this.sidebarGap=64,this.transitionDurationMS=250,Hr(this,ls,()=>{var t,e;if(this._modals=(e=(t=this.modalSlot)==null?void 0:t.assignedElements({flatten:!0}).filter(i=>i instanceof Y))!=null?e:[],this._sidebars=this._modals.filter(i=>i instanceof ii),this._modals.length===0){this.removeAttribute("backdrop");return}Br(this,Rr,cs).call(this),Br(this,Fr,hs).call(this)}),Hr(this,us,()=>{if(!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}Br(this,Rr,cs).call(this),Br(this,Fr,hs).call(this)}),this.addEventListener("close",Dl(this,us))}firstUpdated(t){super.firstUpdated(t),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return l`<slot @slotchange=${Dl(this,ls)}></slot>`}};ls=new WeakMap,us=new WeakMap,Rr=new WeakSet,cs=function(){var t,e;this.setAttribute("backdrop","");const i=(e=(t=this._modals)==null?void 0:t.filter(o=>!o.isClosing).reverse())!=null?e:[];i?.forEach((o,r)=>{o.index=r,o.transitionDuration=this.transitionDurationMS}),i?.forEach(o=>{var r;const s=i?.filter(n=>n.constructor.name===o.constructor.name);o.uniqueIndex=(r=s?.indexOf(o))!=null?r:0})},Fr=new WeakSet,hs=function(){requestAnimationFrame(()=>{var t,e,i,o,r,s,n,u;let c=0;const h=(e=(t=this._sidebars)==null?void 0:t.filter(f=>!f.isClosing).reverse())!=null?e:[];for(let f=0;f<h.length;f++){const m=h[f],g=h[f+1];if(m.style.setProperty("--uui-modal-offset",c+"px"),g?.hasAttribute("hide"))break;const x=(r=(o=(i=m.shadowRoot)==null?void 0:i.querySelector("dialog"))==null?void 0:o.getBoundingClientRect().width)!=null?r:0,w=(u=(n=(s=g?.shadowRoot)==null?void 0:s.querySelector("dialog"))==null?void 0:n.getBoundingClientRect().width)!=null?u:0,E=x+c+this.sidebarGap-w;c=E>0?E:0}})},He.styles=d`
|
|
4043
4048
|
:host {
|
|
4044
4049
|
position: fixed;
|
|
4045
4050
|
--uui-modal-color-backdrop: rgba(0, 0, 0, 0.5);
|
|
@@ -4056,11 +4061,11 @@
|
|
|
4056
4061
|
:host([backdrop])::after {
|
|
4057
4062
|
opacity: 1;
|
|
4058
4063
|
}
|
|
4059
|
-
`,
|
|
4064
|
+
`,ri([O("slot")],He.prototype,"modalSlot",2),ri([b()],He.prototype,"_modals",2),ri([b()],He.prototype,"_sidebars",2),ri([a({type:Number})],He.prototype,"sidebarGap",2),ri([a({type:Number})],He.prototype,"transitionDurationMS",2),He=ri([Po("uui-modal-container")],He);var zf=Object.defineProperty,Af=Object.getOwnPropertyDescriptor,Uf=(t,e,i,o)=>{for(var r=o>1?void 0:o?Af(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&zf(e,i,r),r};let Gr=class extends Y{render(){return l`
|
|
4060
4065
|
<dialog>
|
|
4061
4066
|
<slot></slot>
|
|
4062
4067
|
</dialog>
|
|
4063
|
-
`}};Gr.styles=[...
|
|
4068
|
+
`}};Gr.styles=[...Y.styles,d`
|
|
4064
4069
|
dialog {
|
|
4065
4070
|
margin: auto;
|
|
4066
4071
|
max-width: 100%;
|
|
@@ -4073,7 +4078,7 @@
|
|
|
4073
4078
|
:host(:not([index='0'])) dialog {
|
|
4074
4079
|
outline: 1px solid rgba(0, 0, 0, 0.1);
|
|
4075
4080
|
}
|
|
4076
|
-
`],Gr=
|
|
4081
|
+
`],Gr=Uf([Po("uui-modal-dialog")],Gr);var Df=Object.defineProperty,Ll=Object.getOwnPropertySymbols,Lf=Object.prototype.hasOwnProperty,Mf=Object.prototype.propertyIsEnumerable,Ml=(t,e,i)=>e in t?Df(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Tl=(t,e)=>{for(var i in e||(e={}))Lf.call(e,i)&&Ml(t,i,e[i]);if(Ll)for(var i of Ll(e))Mf.call(e,i)&&Ml(t,i,e[i]);return t};class Qe extends k{constructor(e,i={}){super(e,Tl(Tl({},{bubbles:!0}),i))}}Qe.CHANGE="change";var Tf=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,Be=(t,e,i,o)=>{for(var r=o>1?void 0:o?Nf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Tf(e,i,r),r};const Vf=45,ds=(t,e,i)=>Math.min(Math.max(t,e),i),jf=(t,e)=>Array.from({length:e-t+1},(i,o)=>t+o);let ae=class extends v{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),y(this,"uui-button"),y(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(t){(t.has("current")||t.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const t=this.offsetWidth,e=Array.from(this._navButtons).reduce((r,s)=>r+s.getBoundingClientRect().width,0),o=(t-e)/Vf/2;this._range=Math.max(1,Math.floor(o)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(t){const e=t<this._range?1:t<this.total-this._range?t-this._range:this.total-this._range*2,i=t<=this._range?this._range*2+1:t<this.total-this._range?t+this._range:this.total;return jf(ds(e,1,this.total),ds(i,1,this.total))}get total(){return this._total}set total(t){this._total=t,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",t)}get current(){return this._current}set current(t){const e=this._current;this._current=ds(t,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",e)}goToNextPage(){this.current++,this.dispatchEvent(new Qe(Qe.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new Qe(Qe.CHANGE))}goToPage(t){this.current=t,this.dispatchEvent(new Qe(Qe.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const t=this.renderRoot.querySelector(".active");t&&t.focus()})}renderFirst(){return l`<uui-button
|
|
4077
4082
|
compact
|
|
4078
4083
|
look="outline"
|
|
4079
4084
|
class="nav"
|
|
@@ -4165,7 +4170,7 @@
|
|
|
4165
4170
|
.active {
|
|
4166
4171
|
pointer-events: none;
|
|
4167
4172
|
}
|
|
4168
|
-
`],Be([
|
|
4173
|
+
`],Be([Du("uui-button.nav")],ae.prototype,"_navButtons",2),Be([O("#pages")],ae.prototype,"_pagesGroup",2),Be([a()],ae.prototype,"label",2),Be([a({reflect:!0,attribute:"aria-label"})],ae.prototype,"ariaLabel",2),Be([a({type:Number})],ae.prototype,"total",1),Be([b()],ae.prototype,"_range",2),Be([b()],ae.prototype,"_visiblePages",2),Be([a({type:Number})],ae.prototype,"current",1),ae=Be([p("uui-pagination")],ae);class ps extends k{}ps.CLOSE="close";var Hf=Object.defineProperty,Bf=Object.getOwnPropertyDescriptor,ji=(t,e,i,o)=>{for(var r=o>1?void 0:o?Bf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Hf(e,i,r),r};function qr(t,e,i){return t<e?e:t>i?i:t}let Je=class extends v{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=t=>{this._trigger=t.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=t=>{t.forEach(e=>{e.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=t=>{if(t.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=t=>{t.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(t){const e=this._placement;this._placement=t||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",e)}get open(){return this._open}set open(t){const e=this._open;this._open=t,t?this._openPopover():this._closePopover(),this.requestUpdate("open",e)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const t=new ps(ps.CLOSE,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.open=!1)}_getScrollParents(){const t=this.shadowRoot.host;let e=getComputedStyle(t);if(e.position==="fixed")return;const i=e.position==="absolute",o=/(auto|scroll)/;let r=t;for(;r=r.parentElement;)if(e=getComputedStyle(r),!(i&&e.position==="static")&&(o.test(e.overflow+e.overflowY+e.overflowX)&&this._scrollParents.push(r),e.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const t={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,t),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(t=>{t.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(t=>{t.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){var t,e;if(!this.shadowRoot)return;const i=this.containerElement;if(!i)return;const o=(t=this.containerElement)==null?void 0:t.getBoundingClientRect(),r=(e=this._trigger)==null?void 0:e.getBoundingClientRect();if(r!=null&&o!=null){const s=this._scrollParents.map(pe=>pe.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,o,s));let n=this._currentPlacement.indexOf("top")!==-1,u=this._currentPlacement.indexOf("bottom")!==-1,c=this._currentPlacement.indexOf("left")!==-1,h=this._currentPlacement.indexOf("right")!==-1;const f=this._currentPlacement.indexOf("-start")!==-1,m=this._currentPlacement.indexOf("-end")!==-1;let g=.5,x=.5,w=.5,E=.5,B=0,Oe=0;if(this.placement==="auto"){const pe=this._scrollParents[0],_i=pe.clientWidth,st=pe.clientHeight,zt=r.x-o.width,At=_i-(r.x+r.width)-o.width,po=r.y-o.height,nr=st-(r.y+r.height)-o.height;let ar=.5,lr=.5;const Eu=Math.max(zt,At);let Us=Math.max(po,nr);nr>po&&nr>this.margin&&(Us+=9999),Eu>Us?(zt>At?(ar=0,c=!0):(ar=1,h=!0),B=this.margin):(po>nr?(lr=0,n=!0):(lr=1,u=!0),Oe=this.margin),g=ar,x=lr,w=1-ar,E=1-lr}else n&&(E=1,x=0),u&&(E=0,x=1),(n||u)&&(Oe=this.margin,f&&(w=0,g=0),m&&(w=1,g=1)),c&&(w=1,g=0),h&&(w=0,g=1),(c||h)&&(B=this.margin,f&&(E=0,x=0),m&&(E=1,x=1));const ke=-o.width*w+r.width*g-B*(w*2-1),sr=-o.height*E+r.height*x-Oe*(E*2-1);let rt=ke,ot=sr;n||u?(this._scrollParents.forEach((pe,_i)=>{const st=pe===document.body?0:s[_i].x,zt=-r.x+st,At=pe.clientWidth-r.x-r.width+ke+st-(o.width-r.width)*(1-g);rt=qr(rt,zt,At)}),rt=qr(rt,-o.width,r.width)):(c||h)&&(this._scrollParents.forEach((pe,_i)=>{const st=pe===document.body?0:s[_i].y,zt=-r.y+st,At=pe.clientHeight-r.y-r.height+sr+st-(o.height-r.height)*(1-x);ot=qr(ot,zt,At)}),ot=qr(ot,-o.height,r.height)),(this._positionX!==rt||this._positionY!==ot)&&(this._positionX=rt,this._positionY=ot,ke===rt&&sr===ot&&this._stopScrollListener(),i.style.left=`${this._positionX}px`,i.style.top=`${this._positionY}px`)}}_managePlacementFlip(t,e,i){const r=t.split("-"),s=r[0],n=r[1]||null;let u;return this._scrollParents.some((c,h)=>{const f=c===document.body?0:i[h].x,m=c===document.body?0:i[h].y;return s==="top"&&e.y-2<=m?(u="bottom",!0):s==="bottom"&&e.y+e.height+2>=c.clientHeight+m?(u="top",!0):s==="left"&&e.x-2<=f?(u="right",!0):s==="right"&&e.x+e.width+2>=c.clientWidth+f?(u="left",!0):!1}),u?(this._startScrollListener(),u+(n?`-${n}`:"")):t}render(){return l`
|
|
4169
4174
|
<slot
|
|
4170
4175
|
id="trigger"
|
|
4171
4176
|
name="trigger"
|
|
@@ -4200,7 +4205,7 @@
|
|
|
4200
4205
|
--uui-popover-toggle-slot-button-merge-border-left
|
|
4201
4206
|
);
|
|
4202
4207
|
}
|
|
4203
|
-
`],ji([O("#container")],Je.prototype,"containerElement",2),ji([a({type:Number})],Je.prototype,"margin",2),ji([a({type:String,reflect:!0})],Je.prototype,"placement",1),ji([a({type:Boolean,reflect:!0})],Je.prototype,"open",1),Je=ji([p("uui-popover")],Je);function
|
|
4208
|
+
`],ji([O("#container")],Je.prototype,"containerElement",2),ji([a({type:Number})],Je.prototype,"margin",2),ji([a({type:String,reflect:!0})],Je.prototype,"placement",1),ji([a({type:Boolean,reflect:!0})],Je.prototype,"open",1),Je=ji([p("uui-popover")],Je);function Rf(){const t=this.addEventListener;this.addEventListener=function(i,o,r){if(i!=="focusout"){if(i==="beforetoggle"){this.polyfill_onBeforeToggle=s=>{this.dispatchEvent(new CustomEvent("polyfill-beforetoggle",{bubbles:!1,composed:!1,detail:{oldState:s.oldState,newState:s.newState}})),o(s)};return}t.call(this,i,o,r)}},this.polyfill_onFocusout=i=>{const o=i.relatedTarget;if(!o)return;const r=o?.closest("uui-popover-container"),s=o?.closest("[popovertarget]");!r&&!s&&this.hidePopover()},this.polyfill_onClick=i=>{i.composedPath().some(s=>{var n;return s.tagName==="UUI-POPOVER-CONTAINER"||((n=s.attributes)==null?void 0:n.popovertarget)})||this.hidePopover()},this.polyfill_onParentPopoverUpdate=i=>{i.detail.newState==="closed"&&this.hidePopover()};const e=i=>{var o;return i.parentElement?((o=i.parentElement)==null?void 0:o.tagName)==="UUI-POPOVER-CONTAINER"?i.parentElement:e(i.parentElement):null};this.polyfill_hasBeenMovedToBody||(this.style.display="none",this.style.position="fixed",this.style.inset="0",this.style.zIndex="9999"),this.showPopover=()=>{var i,o;this.polyfill_hasBeenMovedToBody||(this.polyfill_parentPopoverContainer=e(this)),this.polyfill_onBeforeToggle({oldState:"closed",newState:"open"}),this.style.display="block",(i=this.polyfill_parentPopoverContainer)==null||i.addEventListener("polyfill-beforetoggle",this.polyfill_onParentPopoverUpdate),window.addEventListener("click",this.polyfill_onClick),window.addEventListener("focusout",this.polyfill_onFocusout),this.polyfill_originalParent=this.parentNode,this.polyfill_originalNextSibling=this.nextSibling;const r=this.getRootNode();if(r&&r.adoptedStyleSheets){const n=r.adoptedStyleSheets.reduce((h,f)=>h+Object.values(f.cssRules).reduce((m,g)=>m+`#${this.id} ${g.cssText}`,""),""),u=document.createElement("style");u.innerHTML=n,u.id="uui-popover-polyfill-style";const c=this.shadowRoot.host.querySelector("#uui-popover-polyfill-style");c&&c.parentNode.removeChild(c),this.insertAdjacentElement("beforeend",u)}this.parentNode!==document.body&&((o=this.parentNode)==null||o.removeChild(this),this.polyfill_hasBeenMovedToBody=!0,document.body.appendChild(this))},this.hidePopover=()=>{var i,o;this.polyfill_hasBeenMovedToBody&&(document.body.removeChild(this),this.polyfill_hasBeenMovedToBody=!1,(i=this.polyfill_originalParent)==null||i.insertBefore(this,this.polyfill_originalNextSibling)),window.removeEventListener("click",this.polyfill_onClick),window.removeEventListener("focusout",this.polyfill_onFocusout),(o=this.polyfill_parentPopoverContainer)==null||o.removeEventListener("polyfill-beforetoggle",this.polyfill_onParentPopoverUpdate),this.polyfill_onBeforeToggle({oldState:"open",newState:"closed"}),this.style.display="none"}}var Ff=Object.defineProperty,Gf=Object.getOwnPropertyDescriptor,Ct=(t,e,i,o)=>{for(var r=o>1?void 0:o?Gf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Ff(e,i,r),r},vs=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},Z=(t,e,i)=>(vs(t,e,"read from private field"),i?i.call(t):e.get(t)),oi=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},qf=(t,e,i,o)=>(vs(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Nl=(t,e,i)=>(vs(t,e,"access private method"),i),si,Wr,ni,Hi,fs,Kr,bs;let we=class extends v{constructor(){super(...arguments),oi(this,Kr),this.margin=0,this._placement="bottom-start",this._open=!1,this._actualPlacement=this._placement,oi(this,si,null),oi(this,Wr,t=>{var e;if(this._open=t.newState==="open",qf(this,si,nd(this,"popovertarget",this.id)),(e=Z(this,si))==null||e.dispatchEvent(new CustomEvent("uui-popover-before-toggle",{bubbles:!1,composed:!1,detail:{oldState:t.oldState,newState:t.newState}})),!this._open){document.removeEventListener("scroll",Z(this,ni));return}document.addEventListener("scroll",Z(this,ni)),requestAnimationFrame(()=>{Z(this,ni).call(this)})}),oi(this,ni,()=>{this._open&&(this._actualPlacement=this._placement,this.style.opacity="0",Z(this,Hi).call(this,3))}),oi(this,Hi,t=>{if(Z(this,fs).call(this),t--,Z(this,si)===null)return;const e=this._actualPlacement.indexOf("top")!==-1,i=this._actualPlacement.indexOf("bottom")!==-1,o=this._actualPlacement.indexOf("left")!==-1,r=this._actualPlacement.indexOf("right")!==-1,s=this._actualPlacement.indexOf("-start")!==-1,n=this._actualPlacement.indexOf("-end")!==-1,u=Z(this,si).getBoundingClientRect(),c=this.getBoundingClientRect();let h=0,f=0;i&&(h=u.top+u.height,s&&(f=u.left),n&&(f=u.left+u.width-c.width),!s&&!n&&(f=u.left+u.width/2-c.width/2)),e&&(h=u.top-c.height,s&&(f=u.left),n&&(f=u.left+u.width-c.width),!s&&!n&&(f=u.left+u.width/2-c.width/2)),o&&(f=u.left-c.width,s&&(h=u.top),n&&(h=u.top+u.height-c.height),!s&&!n&&(h=u.top+u.height/2-c.height/2)),r&&(f=u.left+u.width,s&&(h=u.top),n&&(h=u.top+u.height-c.height),!s&&!n&&(h=u.top+u.height/2-c.height/2));const m=window.innerWidth,g=window.innerHeight,x=Math.min(0,u.top+u.height),w=Math.max(Math.min(h,g-c.height),u.top-c.height);if(Math.max(x,w)!==h&&(e||i)&&t>0){Nl(this,Kr,bs).call(this),Z(this,Hi).call(this,t);return}h=Math.max(x,w);const B=Math.min(0,u.left+u.width),Oe=Math.max(Math.min(f,m-c.width),u.left-c.width),ke=Math.max(B,Oe);if(ke!==f&&(o||r)&&t>0){Nl(this,Kr,bs).call(this),Z(this,Hi).call(this,t);return}f=ke,(h+c.height<0||h>g||f+c.width<0||f>m)&&this.hidePopover(),this.style.transform=`translate(${f}px, ${h}px)`,this.style.opacity="1"}),oi(this,fs,()=>{const t={top:"bottom",bottom:"top",left:"right",right:"left"};let e=this._actualPlacement.split("-")[0];e=t[e]||e,e=e.charAt(0).toUpperCase()+e.slice(1);const i=`padding${e}`;this.style.padding="0",this.style[i]=`${this.margin}px`})}get open(){return this._open}get placement(){return this._placement}set placement(t){this._placement=t,this._actualPlacement=t,Z(this,ni).call(this)}connectedCallback(){!HTMLElement.prototype.hasOwnProperty("popover")&&Rf.bind(this)(),this.hasAttribute("popover")||this.setAttribute("popover",""),super.connectedCallback(),this.addEventListener("beforetoggle",Z(this,Wr))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",Z(this,Wr))}render(){return l`<slot></slot>`}};si=new WeakMap,Wr=new WeakMap,ni=new WeakMap,Hi=new WeakMap,fs=new WeakMap,Kr=new WeakSet,bs=function(){const[t,e]=this._actualPlacement.split("-"),i=t==="top"?"bottom":t==="bottom"?"top":t==="left"?"right":"left";this._actualPlacement=`${i}-${e}`},we.styles=[d`
|
|
4204
4209
|
:host {
|
|
4205
4210
|
margin: 0;
|
|
4206
4211
|
width: fit-content;
|
|
@@ -4212,7 +4217,7 @@
|
|
|
4212
4217
|
background: none;
|
|
4213
4218
|
overflow: visible;
|
|
4214
4219
|
}
|
|
4215
|
-
`],Ct([a({type:Number})],we.prototype,"margin",2),Ct([a({type:Boolean})],we.prototype,"open",1),Ct([a({type:String,reflect:!0})],we.prototype,"placement",1),Ct([b()],we.prototype,"_placement",2),Ct([b()],we.prototype,"_open",2),Ct([b()],we.prototype,"_actualPlacement",2),we=Ct([p("uui-popover-container")],we);var
|
|
4220
|
+
`],Ct([a({type:Number})],we.prototype,"margin",2),Ct([a({type:Boolean})],we.prototype,"open",1),Ct([a({type:String,reflect:!0})],we.prototype,"placement",1),Ct([b()],we.prototype,"_placement",2),Ct([b()],we.prototype,"_open",2),Ct([b()],we.prototype,"_actualPlacement",2),we=Ct([p("uui-popover-container")],we);var Wf=Object.defineProperty,Kf=Object.getOwnPropertyDescriptor,Vl=(t,e,i,o)=>{for(var r=o>1?void 0:o?Kf(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Wf(e,i,r),r};const Xf=(t,e,i)=>Math.min(Math.max(t,e),i);let Bi=class extends v{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=Xf(t,0,100),this.requestUpdate("progress",e)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return l`
|
|
4216
4221
|
<div id="bar" style=${Ae(this._getProgressStyle())}></div>
|
|
4217
4222
|
`}};Bi.styles=[d`
|
|
4218
4223
|
:host {
|
|
@@ -4231,7 +4236,7 @@
|
|
|
4231
4236
|
height: 100%;
|
|
4232
4237
|
width: 0%;
|
|
4233
4238
|
}
|
|
4234
|
-
`],
|
|
4239
|
+
`],Vl([a({type:Number})],Bi.prototype,"progress",1),Bi=Vl([p("uui-progress-bar")],Bi);var Yf=Object.defineProperty,jl=Object.getOwnPropertySymbols,Zf=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable,Hl=(t,e,i)=>e in t?Yf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Bl=(t,e)=>{for(var i in e||(e={}))Zf.call(e,i)&&Hl(t,i,e[i]);if(jl)for(var i of jl(e))Qf.call(e,i)&&Hl(t,i,e[i]);return t};class ai extends k{constructor(e,i={}){super(e,Bl(Bl({},{bubbles:!0}),i))}}ai.CHANGE="change";var Jf=Object.defineProperty,eb=Object.getOwnPropertyDescriptor,Ot=(t,e,i,o)=>{for(var r=o>1?void 0:o?eb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Jf(e,i,r),r},tb=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},Rl=(t,e,i)=>(tb(t,e,"read from private field"),i?i.call(t):e.get(t)),Fl=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},gs,ms;let de=class extends v{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,Fl(this,gs,()=>{this.style.setProperty("--uui-show-focus-outline","1")}),Fl(this,ms,()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("mousedown",Rl(this,ms)),this.addEventListener("blur",Rl(this,gs))}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,t===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-hidden",t?"true":"false"),this.setAttribute("tabindex",t?"-1":"0"),this.requestUpdate("disabled",e)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(t){t.stopPropagation();const e=this.inputElement.checked;this.checked=e,e&&this.focus(),this.dispatchEvent(new ai(ai.CHANGE))}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.setAttribute("tabindex","0")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.removeAttribute("aria-checked")}render(){return l` <label>
|
|
4235
4240
|
<input
|
|
4236
4241
|
id="input"
|
|
4237
4242
|
type="radio"
|
|
@@ -4244,7 +4249,7 @@
|
|
|
4244
4249
|
<div id="label">
|
|
4245
4250
|
${this.label?l`<span>${this.label}</span>`:l`<slot></slot>`}
|
|
4246
4251
|
</div>
|
|
4247
|
-
</label>`}};
|
|
4252
|
+
</label>`}};gs=new WeakMap,ms=new WeakMap,de.styles=[_r,d`
|
|
4248
4253
|
:host {
|
|
4249
4254
|
display: block;
|
|
4250
4255
|
box-sizing: border-box;
|
|
@@ -4361,7 +4366,7 @@
|
|
|
4361
4366
|
transition: none;
|
|
4362
4367
|
}
|
|
4363
4368
|
}
|
|
4364
|
-
`],
|
|
4369
|
+
`],Ot([O("#input")],de.prototype,"inputElement",2),Ot([a({type:String})],de.prototype,"name",2),Ot([a({type:String})],de.prototype,"value",2),Ot([a({type:String})],de.prototype,"label",2),Ot([a({type:Boolean,reflect:!0})],de.prototype,"checked",1),Ot([a({type:Boolean,reflect:!0})],de.prototype,"disabled",1),de=Ot([p("uui-radio")],de);var ib=Object.defineProperty,Gl=Object.getOwnPropertySymbols,rb=Object.prototype.hasOwnProperty,ob=Object.prototype.propertyIsEnumerable,ql=(t,e,i)=>e in t?ib(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Wl=(t,e)=>{for(var i in e||(e={}))rb.call(e,i)&&ql(t,i,e[i]);if(Gl)for(var i of Gl(e))ob.call(e,i)&&ql(t,i,e[i]);return t};class Xr extends k{constructor(e,i={}){super(e,Wl(Wl({},{bubbles:!0}),i))}}Xr.CHANGE="change";var sb=Object.defineProperty,nb=Object.getOwnPropertyDescriptor,Kl=(t,e,i,o)=>{for(var r=o>1?void 0:o?nb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&sb(e,i,r),r};const ab="ArrowLeft",lb="ArrowUp",ub="ArrowRight",cb="ArrowDown",hb=" ";let li=class extends fe(v){constructor(){super(),this.disabled=!1,this._selected=null,this._radioElements=[],this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=t=>{t.target.checked===!0&&(this.value=t.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown),this.addEventListener("keypress",this._onKeypress),this.updateComplete.then(()=>{this._updateRadioElementsCheckedState(this.value)})}get value(){return this._value}set value(t){super.value=t,(t===null||t==="")&&this._makeFirstEnabledFocusable(),this._updateRadioElementsCheckedState(t)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}focus(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.focus():(e=this._findNextEnabledElement())==null||e.focus()}click(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.click():(e=this._findNextEnabledElement())==null||e.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}_setNameOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(i=>i.name=t)}_updateRadioElementsCheckedState(t){this._radioElements.forEach((e,i)=>{e.value===t?(e.checked=!0,this._selected=i):e.checked=!1})}_setDisableOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(i=>i.disabled=t)}_handleSlotChange(t){var e;if(t.stopPropagation(),(e=this._radioElements)==null||e.forEach(o=>{o.removeEventListener(ai.CHANGE,this._handleSelectOnClick),o.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=t.target.assignedElements({flatten:!0}).filter(o=>o instanceof de),this._radioElements.length===0)return;this._radioElements.forEach(o=>{o.addEventListener(ai.CHANGE,this._handleSelectOnClick),o.addEventListener("blur",this._onChildBlur)}),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0);const i=this._radioElements.filter(o=>o.checked===!0);i.length>1&&(this._radioElements.forEach(o=>{o.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),i.length===1?(this.value=i[0].value,this._selected=this._radioElements.indexOf(i[0]),i[0].disabled===!1?(this._radioElements.forEach(o=>{o.makeUnfocusable()}),i[0].makeFocusable()):this._makeFirstEnabledFocusable()):this._makeFirstEnabledFocusable()}_makeFirstEnabledFocusable(){var t,e;this._selected=null,(t=this._radioElements)==null||t.forEach(i=>{i.makeUnfocusable()}),(e=this._findNextEnabledElement())==null||e.makeFocusable()}_findNextEnabledElement(t=1){if(!this._radioElements)return null;const e=this._selected||0,i=this._radioElements.length;let o=this._selected===null?0:1;for(;o<i;){let r=(e+o*t)%i;if(r<0&&(r+=i),this._radioElements[r].disabled===!1)return this._radioElements[r];o++}return null}_selectPreviousElement(){var t,e;this.value=((t=this._findNextEnabledElement(-1))==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_selectNextElement(){var t,e;this.value=((t=this._findNextEnabledElement())==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_onKeydown(t){var e;switch(t.key){case ab:case lb:{t.preventDefault(),this._selectPreviousElement();break}case ub:case cb:{t.preventDefault(),this._selectNextElement();break}case hb:this._selected===null&&(this.value=(e=this._findNextEnabledElement())==null?void 0:e.value,this._fireChangeEvent())}}_onKeypress(t){t.key=="Enter"&&this.submit()}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new Xr(Xr.CHANGE))}updated(t){super.updated(t),t.has("disabled")&&this._setDisableOnRadios(this.disabled),t.has("name")&&this._setNameOnRadios(t.get("name"))}render(){return l` <slot @slotchange=${this._handleSlotChange}></slot> `}};li.formAssociated=!0,li.styles=[d`
|
|
4365
4370
|
:host {
|
|
4366
4371
|
display: inline-block;
|
|
4367
4372
|
padding-right: 3px;
|
|
@@ -4374,7 +4379,7 @@
|
|
|
4374
4379
|
:host(:not([pristine])[internals-invalid]) {
|
|
4375
4380
|
border: 1px solid var(--uui-color-danger-standalone,rgb(191, 33, 78));
|
|
4376
4381
|
}
|
|
4377
|
-
`],
|
|
4382
|
+
`],Kl([a({type:Boolean,reflect:!0})],li.prototype,"disabled",2),li=Kl([p("uui-radio-group")],li);var db=Object.defineProperty,Xl=Object.getOwnPropertySymbols,pb=Object.prototype.hasOwnProperty,vb=Object.prototype.propertyIsEnumerable,Yl=(t,e,i)=>e in t?db(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Zl=(t,e)=>{for(var i in e||(e={}))pb.call(e,i)&&Yl(t,i,e[i]);if(Xl)for(var i of Xl(e))vb.call(e,i)&&Yl(t,i,e[i]);return t};class $e extends k{constructor(e,i={}){super(e,Zl(Zl({},{bubbles:!0}),i))}}$e.INPUT="input",$e.CHANGE="change";var fb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,U=(t,e,i,o)=>{for(var r=o>1?void 0:o?bb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&fb(e,i,r),r},gb=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},mb=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},ui=(t,e,i)=>(gb(t,e,"access private method"),i),et,kt;const _s={TOP:3,CENTER:2,BACK:1},Ri=18,Re=12,_b=24;let z=class extends fe(v){constructor(){super(),mb(this,et),this.disabled=!1,this._min=0,this._max=0,this.hideStepValues=!1,this._step=1,this._movement=!1,this.startPoint={mouse:0,low:0,high:0},this._lowInputValue=0,this._highInputValue=0,this._trackWidth=0,this._lowValuePercentStart=0,this._highValuePercentEnd=100,this._onKeypress=t=>{t.key=="Enter"&&this.submit()},this._onTouchStart=t=>{if(this.disabled)return;const e=t.composedPath()[0];if(e!==this._outerTrack)if(e===this._innerColor||e===this._innerColorThumb)window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchcancel",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove),this._movement=!0,this._saveStartPoints(t.touches[0].pageX);else{const i=this._getClickedValue(t.touches[0].pageX),o=Math.abs(this._lowInputValue-i),r=Math.abs(this._highInputValue-i);o<r?this.setValueLow(i):this.setValueHigh(i)}},this._onTouchMove=t=>{this._dragBothValuesByMousePos(t.touches[0].pageX)},this._onTouchEnd=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchcancel",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this._onMouseDown=t=>{if(this.disabled)return;const e=t.composedPath()[0];if(e!==this._outerTrack)if(e===this._innerColor||e===this._innerColorThumb)window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove),this._movement=!0,this._saveStartPoints(t.pageX);else{const i=this._getClickedValue(t.pageX),o=Math.abs(this._lowInputValue-i),r=Math.abs(this._highInputValue-i);o<r?this.setValueLow(i):this.setValueHigh(i)}},this._onMouseMove=t=>{t.preventDefault(),this._dragBothValuesByMousePos(t.pageX)},this._onMouseUp=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this.addEventListener("keypress",this._onKeypress),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),window.addEventListener("resize",()=>{var t;this._trackWidth=(t=this._outerTrack)==null?void 0:t.offsetWidth})}get min(){return this._min}set min(t){this._min=t,ui(this,et,kt).call(this)}get max(){return this._max}set max(t){this._max=t,ui(this,et,kt).call(this)}get step(){return this._step}set step(t){this._step=t,ui(this,et,kt).call(this)}get minGap(){return this._minGap}set minGap(t){this._minGap=t,ui(this,et,kt).call(this)}get maxGap(){return this._maxGap}set maxGap(t){this._maxGap=t,ui(this,et,kt).call(this)}get value(){return this._value}set value(t){super.value=t,ui(this,et,kt).call(this)}setValueLow(t){t=S(t,this.maxGap?this._highInputValue-this.maxGap>this.min?this._highInputValue-this.maxGap:this.min:this.min,this.minGap?this._highInputValue-this.minGap:this._highInputValue-this.step),this.setValue(t,this._highInputValue)}setValueHigh(t){t=S(t,this.minGap?this._lowInputValue+this.minGap:this._lowInputValue+this.step,this.maxGap?this.maxGap+this._lowInputValue<this.max?this.maxGap+this._lowInputValue:this.max:this.max),this.setValue(this._lowInputValue,t)}setValue(t,e,i){if(i){const o=this.startPoint.high-this.startPoint.low;t=S(t,this.min,this.max-o),e=S(e,this.min+o,this.max)}this._inputLow.value=t.toString(),this._inputHigh.value=e.toString(),this.value=`${t},${e}`}getFormElement(){return this._currentFocus?this._currentFocus:this._inputLow}connectedCallback(){super.connectedCallback(),this.value||(this.value=`${this._min},${this._max}`)}firstUpdated(t){super.updated(t),this._trackWidth=this._outerTrack.offsetWidth,this._runPropertiesChecks()}_runPropertiesChecks(){if(new RegExp(/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/).test(this.value)||console.error("Range slider (Value error occurred): Bad input"),this._highInputValue===this._lowInputValue&&console.error("Range slider (Value error occurred): Low-end and high-end value should never be equal. Use <uui-slider></uui-slider> instead."),this._lowInputValue>this._highInputValue&&console.error("Range slider (Value error occurred): Low-end value should never be higher than high-end value."),(this._highInputValue>this._max||this._highInputValue<this._min)&&(this.setValueHigh(this._max),console.warn(`Conflict with the high-end value and max value. High-end value has been converted to the max value (${this._max})`)),(this._lowInputValue<this._min||this._lowInputValue>this._max)&&(this.setValueLow(this._min),console.warn(`Conflict with the low-end value and min value. Low-end value has been converted to the min value (${this._min})`)),this._step<=0&&(this._step=1,console.warn("Property step needs a value higher than 0. Converted the step value to 1 (default)")),(this._max-this._min)/this._step%1!==0&&console.error("Conflict with step value and the min and max values. May experience bad side effects"),this._minGap&&this._minGap<this._step&&(this._minGap=void 0,console.warn("Conflict with min-gap and step value. The min-gap needs to be higher than the step value. Removed the min-gap property.")),this._minGap&&this._maxGap&&this._minGap>this._maxGap&&(this._minGap=void 0,this._maxGap=void 0,console.warn("Conflict with min-gap and max-gap. Removed the min-gap and max-gap properties.")),this._minGap&&this._max-this._min<this._minGap&&(this._minGap=void 0,console.warn("Conflict with the min-gap and the total range. Removed the min-gap.")),this._maxGap&&this._highInputValue-this._lowInputValue>this._maxGap&&(this.setValueHigh(this._lowInputValue+this._maxGap),console.warn(`Conflict with value and max-gap. High-end value has been converted to the highest possible value based on the low-end value and the max gap value (${this._highInputValue})`)),this._minGap&&this._highInputValue-this._lowInputValue<this._minGap){const e=this._minGap;this._highInputValue-e<this._min?(this.setValueHigh(this._lowInputValue+e),console.warn(`Conflict with value and min gap. High-end value has been converted to the lowest possible value based on the low-end value and the min gap value (${this._highInputValue}).`)):(this.setValueLow(this._highInputValue-e),console.warn(`Conflict with value and min gap. Low-end value has been converted to the highest possible value based on the high-end value and the min gap value (${this._lowInputValue}).`))}}_updateInnerColor(){const t=this._max-this._min,e=this._lowInputValue-this._min,i=this._highInputValue-this._min,o=e/t*100,r=100-i/t*100;this._lowValuePercentStart=S(o,0,100),this._highValuePercentEnd=S(r,0,100)}_getClickedValue(t){const e=this._outerTrack.getBoundingClientRect().left,r=(t-e-Re)/(this._trackWidth-Re*2)*(this._max-this._min)+this._min;return Math.round(r/this._step)*this._step}_saveStartPoints(t){this.startPoint={mouse:t,low:this._lowInputValue,high:this._highInputValue}}_dragBothValuesByMousePos(t){const e=this._outerTrack.offsetWidth,i=t-this.startPoint.mouse,o=this._max-this._min,r=i/(e+Re*2),s=Math.round(r*o/this._step)*this._step,n=this.startPoint.low+s,u=this.startPoint.high+s;this.setValue(n,u,!0),this.dispatchEvent(new $e($e.INPUT))}_onLowInput(t){this.disabled&&t.preventDefault(),this._currentFocus=this._inputLow;const e=Number(t.target.value);this.setValueLow(e),this.dispatchEvent(new $e($e.INPUT))}_onHighInput(t){this.disabled&&t.preventDefault(),this._currentFocus=this._inputHigh;const e=Number(t.target.value);this.setValueHigh(e),this.dispatchEvent(new $e($e.INPUT))}_onLowChange(){this.setValueLow(Number(this._inputLow.value)),this.onChanged()}_onHighChange(){this.setValueHigh(Number(this._inputHigh.value)),this.onChanged()}onChanged(){this.pristine=!1,this.dispatchEvent(new $e($e.CHANGE))}render(){return l`
|
|
4378
4383
|
<div id="range-slider">
|
|
4379
4384
|
${this._renderNativeInputs()}
|
|
4380
4385
|
<div id="inner-track">
|
|
@@ -4391,7 +4396,7 @@
|
|
|
4391
4396
|
`}_renderThumbValues(){return l`<div class="thumb-values">
|
|
4392
4397
|
<span><span>${this._lowInputValue}</span></span>
|
|
4393
4398
|
<span><span>${this._highInputValue}</span></span>
|
|
4394
|
-
</div>`}_renderSteps(){const t=(this._max-this._min)/this._step,e=(this._trackWidth-Re*2)/t;if(e<
|
|
4399
|
+
</div>`}_renderSteps(){const t=(this._max-this._min)/this._step,e=(this._trackWidth-Re*2)/t;if(e<_b||t%1!==0)return;let i=0;const o=new Array(t+1).fill(e).map(r=>r*i++);return l`<div class="step-wrapper">
|
|
4395
4400
|
<svg height="100%" width="100%">
|
|
4396
4401
|
<rect x="9" y="9" height="3" rx="2" />
|
|
4397
4402
|
${this._renderStepCircles(o)}
|
|
@@ -4424,7 +4429,7 @@
|
|
|
4424
4429
|
?disabled="${this.disabled}"
|
|
4425
4430
|
@input=${this._onHighInput}
|
|
4426
4431
|
@change=${this._onHighChange} />
|
|
4427
|
-
</div>`}};et=new WeakSet,
|
|
4432
|
+
</div>`}};et=new WeakSet,kt=function(){const t=this.value.split(",");let e=Number(t[0])||0,i=Number(t[1])||0;i=S(i,this._min,this._max),e=this._min+Math.round((e-this._min)/this._step)*this._step,i=this._min+Math.round((i-this._min)/this._step)*this._step,this._lowInputValue=S(e,this._min,this._minGap?i-this._minGap:i-this._step),this._highInputValue=S(i,this._minGap?this._lowInputValue+this._minGap:this._lowInputValue+this._step,Math.min(this._maxGap?e+this._maxGap:this._max,this._max)),this._updateInnerColor(),this.requestUpdate()},z.formAssociated=!0,z.styles=[d`
|
|
4428
4433
|
:host {
|
|
4429
4434
|
--color-interactive: var(--uui-color-selected,#3544b1);
|
|
4430
4435
|
--color-hover: var(--uui-color-selected-emphasis,rgb(70, 86, 200));
|
|
@@ -4470,7 +4475,7 @@
|
|
|
4470
4475
|
height: ${Ri}px;
|
|
4471
4476
|
cursor: grab;
|
|
4472
4477
|
user-select: none;
|
|
4473
|
-
z-index: ${
|
|
4478
|
+
z-index: ${_s.CENTER};
|
|
4474
4479
|
}
|
|
4475
4480
|
|
|
4476
4481
|
:host([disabled]) #inner-color-thumb {
|
|
@@ -4632,7 +4637,7 @@
|
|
|
4632
4637
|
pointer-events: all;
|
|
4633
4638
|
cursor: grab;
|
|
4634
4639
|
position: relative;
|
|
4635
|
-
z-index: ${
|
|
4640
|
+
z-index: ${_s.TOP};
|
|
4636
4641
|
width: ${Ri}px;
|
|
4637
4642
|
height: ${Ri}px;
|
|
4638
4643
|
border-radius: 24px;
|
|
@@ -4671,7 +4676,7 @@
|
|
|
4671
4676
|
pointer-events: all;
|
|
4672
4677
|
cursor: grab;
|
|
4673
4678
|
position: relative;
|
|
4674
|
-
z-index: ${
|
|
4679
|
+
z-index: ${_s.TOP};
|
|
4675
4680
|
width: ${Ri}px;
|
|
4676
4681
|
height: ${Ri}px;
|
|
4677
4682
|
border-radius: 24px;
|
|
@@ -4702,7 +4707,7 @@
|
|
|
4702
4707
|
box-shadow: inset 0 0 0 2px var(--uui-palette-mine-grey,#3e3e3e),
|
|
4703
4708
|
inset 0 0 0 4px var(--uui-color-surface,#fff);
|
|
4704
4709
|
}
|
|
4705
|
-
`],U([a({type:String})],z.prototype,"label",2),U([a({type:Boolean,reflect:!0})],z.prototype,"disabled",2),U([a({type:Number})],z.prototype,"min",1),U([a({type:Number})],z.prototype,"max",1),U([a({type:Boolean,attribute:"hide-step-values"})],z.prototype,"hideStepValues",2),U([a({type:Number})],z.prototype,"step",1),U([a({type:Number,attribute:"min-gap"})],z.prototype,"minGap",1),U([a({type:Number,attribute:"max-gap"})],z.prototype,"maxGap",1),U([a({type:String})],z.prototype,"value",1),U([b()],z.prototype,"_movement",2),U([b()],z.prototype,"_lowInputValue",2),U([b()],z.prototype,"_highInputValue",2),U([b()],z.prototype,"_trackWidth",2),U([b()],z.prototype,"_lowValuePercentStart",2),U([b()],z.prototype,"_highValuePercentEnd",2),U([O("#range-slider")],z.prototype,"_outerTrack",2),U([O("#inputLow")],z.prototype,"_inputLow",2),U([O("#inputHigh")],z.prototype,"_inputHigh",2),U([O(".color")],z.prototype,"_innerColor",2),U([O("#inner-color-thumb")],z.prototype,"_innerColorThumb",2),z=U([p("uui-range-slider")],z);var
|
|
4710
|
+
`],U([a({type:String})],z.prototype,"label",2),U([a({type:Boolean,reflect:!0})],z.prototype,"disabled",2),U([a({type:Number})],z.prototype,"min",1),U([a({type:Number})],z.prototype,"max",1),U([a({type:Boolean,attribute:"hide-step-values"})],z.prototype,"hideStepValues",2),U([a({type:Number})],z.prototype,"step",1),U([a({type:Number,attribute:"min-gap"})],z.prototype,"minGap",1),U([a({type:Number,attribute:"max-gap"})],z.prototype,"maxGap",1),U([a({type:String})],z.prototype,"value",1),U([b()],z.prototype,"_movement",2),U([b()],z.prototype,"_lowInputValue",2),U([b()],z.prototype,"_highInputValue",2),U([b()],z.prototype,"_trackWidth",2),U([b()],z.prototype,"_lowValuePercentStart",2),U([b()],z.prototype,"_highValuePercentEnd",2),U([O("#range-slider")],z.prototype,"_outerTrack",2),U([O("#inputLow")],z.prototype,"_inputLow",2),U([O("#inputHigh")],z.prototype,"_inputHigh",2),U([O(".color")],z.prototype,"_innerColor",2),U([O("#inner-color-thumb")],z.prototype,"_innerColorThumb",2),z=U([p("uui-range-slider")],z);var yb=Object.defineProperty,xb=Object.getOwnPropertyDescriptor,wb=(t,e,i,o)=>{for(var r=o>1?void 0:o?xb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&yb(e,i,r),r};let Yr=class extends v{render(){return l`<slot></slot>`}};Yr.styles=[d`
|
|
4706
4711
|
:host {
|
|
4707
4712
|
display: block;
|
|
4708
4713
|
}
|
|
@@ -4718,7 +4723,7 @@
|
|
|
4718
4723
|
right: 0;
|
|
4719
4724
|
border-top: 1px solid var(--uui-color-border,#d8d7d9);
|
|
4720
4725
|
}
|
|
4721
|
-
`],Yr
|
|
4726
|
+
`],Yr=wb([p("uui-ref-list")],Yr);class ci extends k{}ci.OPEN="open";var $b=Object.defineProperty,Eb=Object.getOwnPropertyDescriptor,ys=(t,e,i,o)=>{for(var r=o>1?void 0:o?Eb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&$b(e,i,r),r};let tt=class extends br(Nt(v)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(t){t.stopPropagation(),this.dispatchEvent(new ci(ci.OPEN))}handleOpenKeydown(t){t.key!==" "&&t.key!=="Enter"||(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new ci(ci.OPEN)))}};tt.styles=[d`
|
|
4722
4727
|
:host {
|
|
4723
4728
|
position: relative;
|
|
4724
4729
|
display: flex;
|
|
@@ -4866,7 +4871,7 @@
|
|
|
4866
4871
|
justify-content: flex-end;
|
|
4867
4872
|
align-items: center;
|
|
4868
4873
|
}
|
|
4869
|
-
`],
|
|
4874
|
+
`],ys([a({type:Boolean,reflect:!0})],tt.prototype,"disabled",2),ys([a({type:Boolean,reflect:!0})],tt.prototype,"error",2),tt=ys([p("uui-ref")],tt);var Pb=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,Zr=(t,e,i,o)=>{for(var r=o>1?void 0:o?Cb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Pb(e,i,r),r};let M=class extends tt{constructor(){super(...arguments),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}connectedCallback(){super.connectedCallback(),y(this,"uui-icon")}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return l`<small id="detail"
|
|
4870
4875
|
>${this.detail}<slot name="detail"></slot
|
|
4871
4876
|
></small>`}_renderFallbackIcon(){return l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`
|
|
4872
4877
|
<button
|
|
@@ -4891,7 +4896,7 @@
|
|
|
4891
4896
|
<slot></slot>
|
|
4892
4897
|
<slot name="tag"></slot>
|
|
4893
4898
|
<slot name="actions" id="actions-container"></slot>
|
|
4894
|
-
`}};
|
|
4899
|
+
`}};M.styles=[...tt.styles,d`
|
|
4895
4900
|
:host {
|
|
4896
4901
|
min-width: 250px;
|
|
4897
4902
|
padding: calc(var(--uui-size-2,6px) + 1px);
|
|
@@ -4950,17 +4955,17 @@
|
|
|
4950
4955
|
:host([disabled]) #detail {
|
|
4951
4956
|
color: var(--uui-color-disabled-contrast,#c4c4c4);
|
|
4952
4957
|
}
|
|
4953
|
-
`],Zr([a({type:String})],
|
|
4958
|
+
`],Zr([a({type:String})],M.prototype,"name",2),Zr([a({type:String})],M.prototype,"detail",2),Zr([b()],M.prototype,"_iconSlotHasContent",2),M=Zr([p("uui-ref-node")],M);var Ob=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,Ql=(t,e,i,o)=>{for(var r=o>1?void 0:o?kb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Ob(e,i,r),r};let Fi=class extends M{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),l`<small id="detail"
|
|
4954
4959
|
>${t.join(" | ")}<slot name="detail"></slot
|
|
4955
|
-
></small>`}};Fi.styles=[...
|
|
4960
|
+
></small>`}};Fi.styles=[...M.styles],Ql([a({type:String})],Fi.prototype,"alias",2),Fi=Ql([p("uui-ref-node-data-type")],Fi);var Sb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Jl=(t,e,i,o)=>{for(var r=o>1?void 0:o?Ib(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Sb(e,i,r),r};let Gi=class extends M{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),l`<small id="detail"
|
|
4956
4961
|
>${t.join(" | ")}<slot name="detail"></slot
|
|
4957
|
-
></small>`}};Gi.styles=[...
|
|
4962
|
+
></small>`}};Gi.styles=[...M.styles],Jl([a({type:String})],Gi.prototype,"alias",2),Gi=Jl([p("uui-ref-node-document-type")],Gi);var zb=Object.defineProperty,Ab=Object.getOwnPropertyDescriptor,Ub=(t,e,i,o)=>{for(var r=o>1?void 0:o?Ab(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&zb(e,i,r),r};let Qr=class extends M{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M444.72 215.28H67.28c-11.04 0-20-8.96-20-20V64.896c0-11.04 8.96-20 20-20h377.44c11.04 0 20 8.96 20 20V195.28c0 11.056-8.96 20-20 20zm-357.44-40h337.44V84.896H87.28v90.384zm185.504 215.696c0-6.848.704-13.504 1.936-20H87.28v-90.384h337.44v12.496a108.098 108.098 0 0140 31.36v-63.856c0-11.04-8.96-20-20-20H67.28c-11.04 0-20 8.96-20 20v130.384c0 11.04 8.96 20 20 20h207.44c-1.232-6.496-1.936-13.152-1.936-20zm107.552-76.128c-41.968 0-76.112 34.16-76.112 76.128s34.144 76.128 76.112 76.128 76.128-34.16 76.128-76.128-34.144-76.128-76.128-76.128zm46.016 80.464a7.293 7.293 0 01-7.296 7.296h-27.072v27.088a7.293 7.293 0 01-7.296 7.296H376a7.293 7.293 0 01-7.296-7.296v-27.088h-27.072a7.293 7.293 0 01-7.296-7.296v-8.672a7.293 7.293 0 017.296-7.296h27.072v-27.088A7.293 7.293 0 01376 344.96h8.688a7.293 7.293 0 017.296 7.296v27.088h27.072a7.293 7.293 0 017.296 7.296v8.672z"></path></svg>'}};Qr.styles=[...M.styles],Qr=Ub([p("uui-ref-node-form")],Qr);var Db=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,eu=(t,e,i,o)=>{for(var r=o>1?void 0:o?Lb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Db(e,i,r),r};let qi=class extends M{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),l`<small id="detail"
|
|
4958
4963
|
>${t.join(" | ")}<slot name="detail"></slot
|
|
4959
|
-
></small>`}};qi.styles=[...
|
|
4964
|
+
></small>`}};qi.styles=[...M.styles],eu([a({type:String,attribute:"group-name"})],qi.prototype,"groupName",2),qi=eu([p("uui-ref-node-member")],qi);var Mb=Object.defineProperty,Tb=Object.getOwnPropertyDescriptor,xs=(t,e,i,o)=>{for(var r=o>1?void 0:o?Tb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Mb(e,i,r),r};let hi=class extends M{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const t=[];return this.detail!==""&&t.push(this.detail),this.version!==""&&t.push(this.version),this.author!==""&&t.push(this.author),l`<small id="detail"
|
|
4960
4965
|
>${t.join(" | ")}<slot name="detail"></slot
|
|
4961
|
-
></small>`}};hi.styles=[...
|
|
4966
|
+
></small>`}};hi.styles=[...M.styles],xs([a({type:String})],hi.prototype,"version",2),xs([a({type:String})],hi.prototype,"author",2),hi=xs([p("uui-ref-node-package")],hi);var Nb=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,tu=(t,e,i,o)=>{for(var r=o>1?void 0:o?Vb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Nb(e,i,r),r};let Wi=class extends M{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),l`<small id="detail"
|
|
4962
4967
|
>${t.join(" | ")}<slot name="detail"></slot
|
|
4963
|
-
></small>`}};Wi.styles=[...
|
|
4968
|
+
></small>`}};Wi.styles=[...M.styles],tu([a({type:String,attribute:"group-name"})],Wi.prototype,"groupName",2),Wi=tu([p("uui-ref-node-user")],Wi);var jb=Object.defineProperty,Hb=Object.getOwnPropertyDescriptor,iu=(t,e,i,o)=>{for(var r=o>1?void 0:o?Hb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&jb(e,i,r),r};let Ki=class extends v{constructor(){super(...arguments),this.enforceScroll=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}render(){return l`<slot></slot>`}};Ki.styles=[d`
|
|
4964
4969
|
:host {
|
|
4965
4970
|
display: block;
|
|
4966
4971
|
scrollbar-width: thin;
|
|
@@ -4986,7 +4991,7 @@
|
|
|
4986
4991
|
background-color: var(--uui-color-disabled-contrast,#c4c4c4);
|
|
4987
4992
|
border-radius: 3px;
|
|
4988
4993
|
}
|
|
4989
|
-
`],
|
|
4994
|
+
`],iu([a({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],Ki.prototype,"enforceScroll",2),Ki=iu([p("uui-scroll-container")],Ki);var Bb=Object.defineProperty,ru=Object.getOwnPropertySymbols,Rb=Object.prototype.hasOwnProperty,Fb=Object.prototype.propertyIsEnumerable,ou=(t,e,i)=>e in t?Bb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,su=(t,e)=>{for(var i in e||(e={}))Rb.call(e,i)&&ou(t,i,e[i]);if(ru)for(var i of ru(e))Fb.call(e,i)&&ou(t,i,e[i]);return t};class Jr extends k{constructor(e,i={}){super(e,su(su({},{bubbles:!0}),i))}}Jr.CHANGE="change";var Gb=Object.defineProperty,qb=Object.getOwnPropertyDescriptor,Ee=(t,e,i,o)=>{for(var r=o>1?void 0:o?qb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Gb(e,i,r),r};let Q=class extends fe(v){constructor(){super(),this.placeholder="",this.disabled=!1,this.error=!1,this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._values=[],this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}focus(){this._input.focus()}click(){this._input.click()}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","))}_extractGroups(){this.options.length!==0&&(this._groups=Array.from(new Set(this.options.filter(t=>t.group).map(t=>t.group))))}willUpdate(t){if(t.has("options")){this._extractGroups(),this._values=this.options.map(i=>i.value);const e=this.options.find(i=>i.selected);this.value=e?e.value:""}t.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),t.has("disabledGroups")&&this._createDisabledGroups()}setValue(t){t.stopPropagation();const e=t.target;t.target&&(this.value=e.value),this.dispatchEvent(new Jr(Jr.CHANGE,{bubbles:!0,composed:!1}))}getFormElement(){return this._input}_renderOption(t,e,i,o){return l`<option
|
|
4990
4995
|
value="${e}"
|
|
4991
4996
|
?selected=${i}
|
|
4992
4997
|
?disabled=${o}>
|
|
@@ -5009,6 +5014,7 @@
|
|
|
5009
5014
|
${this.options.filter(t=>!t.group).map(t=>this._renderOption(t.name,t.value,t.selected,t.disabled))}
|
|
5010
5015
|
</select>`}};Q.styles=[d`
|
|
5011
5016
|
:host {
|
|
5017
|
+
display: inline-block;
|
|
5012
5018
|
position: relative;
|
|
5013
5019
|
font-family: inherit;
|
|
5014
5020
|
}
|
|
@@ -5018,13 +5024,11 @@
|
|
|
5018
5024
|
font-family: inherit;
|
|
5019
5025
|
font-size: var(--uui-select-font-size, var(--uui-size-5,15px));
|
|
5020
5026
|
height: var(--uui-select-height, var(--uui-size-11,33px));
|
|
5021
|
-
width: 100%;
|
|
5022
5027
|
padding: var(--uui-select-padding-y, var(--uui-size-1,3px))
|
|
5023
5028
|
var(--uui-select-padding-x, var(--uui-size-2,6px));
|
|
5024
5029
|
color: currentColor;
|
|
5025
|
-
border-radius: 0;
|
|
5026
5030
|
box-sizing: border-box;
|
|
5027
|
-
|
|
5031
|
+
border-radius: 0;
|
|
5028
5032
|
border: 1px solid
|
|
5029
5033
|
var(--uui-select-border-color, var(--uui-color-border,#d8d7d9));
|
|
5030
5034
|
transition: all 150ms ease;
|
|
@@ -5032,7 +5036,7 @@
|
|
|
5032
5036
|
|
|
5033
5037
|
#native:focus {
|
|
5034
5038
|
outline: calc(2px * var(--uui-show-focus-outline, 1)) solid
|
|
5035
|
-
var(--uui-color-focus,#3879ff);
|
|
5039
|
+
var(--uui-select-outline-color, var(--uui-color-focus,#3879ff));
|
|
5036
5040
|
}
|
|
5037
5041
|
|
|
5038
5042
|
#native[disabled] {
|
|
@@ -5059,11 +5063,6 @@
|
|
|
5059
5063
|
);
|
|
5060
5064
|
}
|
|
5061
5065
|
|
|
5062
|
-
/* TODO: a proper focus style has to be implemented. it needs it's own variables */
|
|
5063
|
-
#native:focus {
|
|
5064
|
-
outline-color: var(--uui-select-outline-color, var(--uui-color-focus,#3879ff));
|
|
5065
|
-
}
|
|
5066
|
-
|
|
5067
5066
|
#caret {
|
|
5068
5067
|
position: absolute;
|
|
5069
5068
|
right: 12px;
|
|
@@ -5078,7 +5077,7 @@
|
|
|
5078
5077
|
:host([error]) #native[disabled] {
|
|
5079
5078
|
border: 1px solid var(--uui-color-danger-standalone,rgb(191, 33, 78));
|
|
5080
5079
|
}
|
|
5081
|
-
`],Ee([a({type:String})],Q.prototype,"label",2),Ee([a()],Q.prototype,"placeholder",2),Ee([a({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),Ee([a({type:Boolean,reflect:!0})],Q.prototype,"error",2),Ee([a({type:Array,attribute:!1})],Q.prototype,"options",2),Ee([b()],Q.prototype,"_groups",2),Ee([a()],Q.prototype,"disabledGroups",2),Ee([b()],Q.prototype,"_disabledGroups",2),Ee([O("#native")],Q.prototype,"_input",2),Q=Ee([p("uui-select")],Q);const
|
|
5080
|
+
`],Ee([a({type:String})],Q.prototype,"label",2),Ee([a()],Q.prototype,"placeholder",2),Ee([a({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),Ee([a({type:Boolean,reflect:!0})],Q.prototype,"error",2),Ee([a({type:Array,attribute:!1})],Q.prototype,"options",2),Ee([b()],Q.prototype,"_groups",2),Ee([a()],Q.prototype,"disabledGroups",2),Ee([b()],Q.prototype,"_disabledGroups",2),Ee([O("#native")],Q.prototype,"_input",2),Q=Ee([p("uui-select")],Q);const Wb=d`
|
|
5082
5081
|
input[type='range'] {
|
|
5083
5082
|
left: 0;
|
|
5084
5083
|
position: absolute;
|
|
@@ -5185,15 +5184,15 @@
|
|
|
5185
5184
|
input[type='range']:focus::-ms-fill-upper {
|
|
5186
5185
|
background: transparent;
|
|
5187
5186
|
}
|
|
5188
|
-
`;var
|
|
5189
|
-
${t.map(i=>{if(e>=
|
|
5190
|
-
`,
|
|
5187
|
+
`;var Kb=Object.defineProperty,nu=Object.getOwnPropertySymbols,Xb=Object.prototype.hasOwnProperty,Yb=Object.prototype.propertyIsEnumerable,au=(t,e,i)=>e in t?Kb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,lu=(t,e)=>{for(var i in e||(e={}))Xb.call(e,i)&&au(t,i,e[i]);if(nu)for(var i of nu(e))Yb.call(e,i)&&au(t,i,e[i]);return t};class St extends k{constructor(e,i={}){super(e,lu(lu({},{bubbles:!0}),i))}}St.INPUT="input",St.CHANGE="change";var Zb=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,J=(t,e,i,o)=>{for(var r=o>1?void 0:o?Qb(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Zb(e,i,r),r};const Xi=12,uu=24,Jb=(t,e)=>_`
|
|
5188
|
+
${t.map(i=>{if(e>=uu){const o=Math.round(Xi+e*t.indexOf(i));return _`<circle class="track-step" cx="${o}" cy="50%" r="4.5" />`}return _``})}
|
|
5189
|
+
`,eg=(t,e,i)=>i?$:l`<div id="step-values">
|
|
5191
5190
|
${t.map(o=>l` <span
|
|
5192
5191
|
><span>
|
|
5193
|
-
${t.length<=20&&e>=
|
|
5192
|
+
${t.length<=20&&e>=uu?o.toFixed(0):$}
|
|
5194
5193
|
</span></span
|
|
5195
5194
|
>`)}
|
|
5196
|
-
</div>`,
|
|
5195
|
+
</div>`,tg=(t,e,i)=>Array.from({length:(e-t)/i+1},(o,r)=>t+r*i);let j=class extends fe(v){constructor(){super(),this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this.disabled=!1,this._stepWidth=0,this.onWindowResize=()=>{this._stepWidth=this._calculateStepWidth()},this._steps=[],this._sliderPosition="0%",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(t){if(t instanceof File)return;const e=this._value;let i=t?parseFloat(t):0;i=Math.min(Math.max(i,this.min),this.max),this.step>0&&(i=Math.round(i/this.step)*this.step),this._value=i.toString(),this._calculateSliderPosition(),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",e)}focus(){this._input.focus()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize),this.label||console.warn(this.tagName+" needs a `label`",this)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._calculateSliderPosition(),this._updateSteps()}updated(t){super.updated(t),(t.get("max")||t.get("min")||t.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=tg(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-Xi*2)/(this._steps.length-1)}_onKeypress(t){t.key=="Enter"&&this.submit()}_calculateSliderPosition(){const t=(parseFloat(this._value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(t*1e5)/1e3}%`}_onInput(t){t.stopPropagation(),this.value=this._input.value,this.dispatchEvent(new St(St.INPUT))}_onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new St(St.CHANGE))}render(){return l`
|
|
5197
5196
|
<input
|
|
5198
5197
|
id="input"
|
|
5199
5198
|
type="range"
|
|
@@ -5208,7 +5207,7 @@
|
|
|
5208
5207
|
<div id="track" aria-hidden="true">
|
|
5209
5208
|
<svg height="100%" width="100%">
|
|
5210
5209
|
<rect x="9" y="9" height="3" rx="2" />
|
|
5211
|
-
${
|
|
5210
|
+
${Jb(this._steps,this._stepWidth)}
|
|
5212
5211
|
</svg>
|
|
5213
5212
|
|
|
5214
5213
|
<div id="track-inner" aria-hidden="true">
|
|
@@ -5217,8 +5216,8 @@
|
|
|
5217
5216
|
</div>
|
|
5218
5217
|
</div>
|
|
5219
5218
|
</div>
|
|
5220
|
-
${
|
|
5221
|
-
`}};j.formAssociated=!0,j.styles=[
|
|
5219
|
+
${eg(this._steps,this._stepWidth,this.hideStepValues)}
|
|
5220
|
+
`}};j.formAssociated=!0,j.styles=[Qh,Wb,d`
|
|
5222
5221
|
:host {
|
|
5223
5222
|
display: inline-block;
|
|
5224
5223
|
width: 100%;
|
|
@@ -5357,7 +5356,7 @@
|
|
|
5357
5356
|
:host(:not([pristine]):invalid) #thumb:after {
|
|
5358
5357
|
background-color: var(--uui-color-danger,#d42054);
|
|
5359
5358
|
}
|
|
5360
|
-
`],J([a({type:Boolean,attribute:"hide-step-values"})],j.prototype,"hideStepValues",2),J([a({type:Number})],j.prototype,"min",2),J([a({type:Number})],j.prototype,"max",2),J([a({type:Number})],j.prototype,"step",2),J([a({type:String})],j.prototype,"value",1),J([a({type:Boolean,reflect:!0})],j.prototype,"disabled",2),J([a({type:String})],j.prototype,"label",2),J([O("#input")],j.prototype,"_input",2),J([O("#track")],j.prototype,"_track",2),J([b()],j.prototype,"_stepWidth",2),J([b()],j.prototype,"_steps",2),J([b()],j.prototype,"_sliderPosition",2),j=J([p("uui-slider")],j);var
|
|
5359
|
+
`],J([a({type:Boolean,attribute:"hide-step-values"})],j.prototype,"hideStepValues",2),J([a({type:Number})],j.prototype,"min",2),J([a({type:Number})],j.prototype,"max",2),J([a({type:Number})],j.prototype,"step",2),J([a({type:String})],j.prototype,"value",1),J([a({type:Boolean,reflect:!0})],j.prototype,"disabled",2),J([a({type:String})],j.prototype,"label",2),J([O("#input")],j.prototype,"_input",2),J([O("#track")],j.prototype,"_track",2),J([b()],j.prototype,"_stepWidth",2),J([b()],j.prototype,"_steps",2),J([b()],j.prototype,"_sliderPosition",2),j=J([p("uui-slider")],j);var ig=Object.defineProperty,rg=Object.getOwnPropertyDescriptor,cu=(t,e,i,o)=>{for(var r=o>1?void 0:o?rg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&ig(e,i,r),r};let Yi=class extends v{constructor(){super(...arguments),this.open=!1}render(){return l`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
5361
5360
|
<path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path>
|
|
5362
5361
|
</svg>`}};Yi.styles=[d`
|
|
5363
5362
|
:host {
|
|
@@ -5378,7 +5377,7 @@
|
|
|
5378
5377
|
:host([open]) svg {
|
|
5379
5378
|
transform: rotate(0deg);
|
|
5380
5379
|
}
|
|
5381
|
-
`],
|
|
5380
|
+
`],cu([a({type:Boolean,reflect:!0})],Yi.prototype,"open",2),Yi=cu([p("uui-symbol-expand")],Yi);var og=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,hu=(t,e,i,o)=>{for(var r=o>1?void 0:o?sg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&og(e,i,r),r};let Zi=class extends v{constructor(){super(...arguments),this.error=!1}render(){return l`<svg
|
|
5382
5381
|
xmlns="http://www.w3.org/2000/svg"
|
|
5383
5382
|
viewBox="0 0 512 512"
|
|
5384
5383
|
id="upload-icon">
|
|
@@ -5403,9 +5402,9 @@
|
|
|
5403
5402
|
:host([error]) #upload-icon {
|
|
5404
5403
|
fill: var(--uui-color-danger,#d42054);
|
|
5405
5404
|
}
|
|
5406
|
-
`],
|
|
5405
|
+
`],hu([a({type:Boolean,reflect:!0})],Zi.prototype,"error",2),Zi=hu([p("uui-symbol-file-dropzone")],Zi);var ng=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,ws=(t,e,i,o)=>{for(var r=o>1?void 0:o?ag(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&ng(e,i,r),r};let di=class extends v{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),y(this,"uui-icon")}render(){return this.src?l`<img src=${this.src} alt=${this.alt} />`:l`<uui-icon
|
|
5407
5406
|
name="picture"
|
|
5408
|
-
.fallback=${
|
|
5407
|
+
.fallback=${ud.strings[0]}></uui-icon>`}};di.styles=[d`
|
|
5409
5408
|
:host {
|
|
5410
5409
|
display: block;
|
|
5411
5410
|
width: 100%;
|
|
@@ -5428,7 +5427,7 @@
|
|
|
5428
5427
|
color: var(--uui-color-surface,#fff);
|
|
5429
5428
|
background: var(--uui-color-surface-alt,#f3f3f5);
|
|
5430
5429
|
}
|
|
5431
|
-
`]
|
|
5430
|
+
`],ws([a({type:String})],di.prototype,"src",2),ws([a({type:String})],di.prototype,"alt",2),di=ws([p("uui-symbol-file-thumbnail")],di);var lg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,du=(t,e,i,o)=>{for(var r=o>1?void 0:o?ug(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&lg(e,i,r),r};let Qi=class extends v{constructor(){super(...arguments),this.open=!1}render(){return _`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
5432
5431
|
${this.open===!0?_`<path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"></path>`:_`<path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"></path>`}
|
|
5433
5432
|
</svg>`}};Qi.styles=[d`
|
|
5434
5433
|
:host {
|
|
@@ -5440,7 +5439,7 @@
|
|
|
5440
5439
|
svg {
|
|
5441
5440
|
fill: currentColor;
|
|
5442
5441
|
}
|
|
5443
|
-
`],
|
|
5442
|
+
`],du([a({type:Boolean,reflect:!0})],Qi.prototype,"open",2),Qi=du([p("uui-symbol-lock")],Qi);var cg=Object.defineProperty,hg=Object.getOwnPropertyDescriptor,dg=(t,e,i,o)=>{for(var r=o>1?void 0:o?hg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&cg(e,i,r),r};let eo=class extends v{render(){return l`•••`}};eo.styles=[d`
|
|
5444
5443
|
:host {
|
|
5445
5444
|
display: inline-block;
|
|
5446
5445
|
font-size: 0.8em;
|
|
@@ -5449,7 +5448,7 @@
|
|
|
5449
5448
|
line-height: 1em;
|
|
5450
5449
|
user-select: none;
|
|
5451
5450
|
}
|
|
5452
|
-
`],eo=
|
|
5451
|
+
`],eo=dg([p("uui-symbol-more")],eo);var pg=Object.defineProperty,vg=Object.getOwnPropertyDescriptor,pu=(t,e,i,o)=>{for(var r=o>1?void 0:o?vg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&pg(e,i,r),r};let Ji=class extends Ei(v){constructor(){super(...arguments),this.descending=!1}render(){return l`<svg
|
|
5453
5452
|
id="up"
|
|
5454
5453
|
xmlns="http://www.w3.org/2000/svg"
|
|
5455
5454
|
viewBox="0 0 512 512">
|
|
@@ -5514,7 +5513,7 @@
|
|
|
5514
5513
|
:host([active][descending]) #down {
|
|
5515
5514
|
opacity: calc(0.25 * var(--uui-symbol-sort-hover, 0));
|
|
5516
5515
|
}
|
|
5517
|
-
`],
|
|
5516
|
+
`],pu([a({type:Boolean,reflect:!0})],Ji.prototype,"descending",2),Ji=pu([p("uui-symbol-sort")],Ji);var fg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,gg=(t,e,i,o)=>{for(var r=o>1?void 0:o?bg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&fg(e,i,r),r};let to=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return l`<slot></slot>`}};to.styles=[d`
|
|
5518
5517
|
:host {
|
|
5519
5518
|
display: table;
|
|
5520
5519
|
width: 100%;
|
|
@@ -5522,7 +5521,7 @@
|
|
|
5522
5521
|
background-color: var(--uui-color-surface,#fff);
|
|
5523
5522
|
cursor: default;
|
|
5524
5523
|
}
|
|
5525
|
-
`],to=
|
|
5524
|
+
`],to=gg([p("uui-table")],to);var mg=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,io=(t,e,i,o)=>{for(var r=o>1?void 0:o?_g(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&mg(e,i,r),r};let Pe=class extends v{constructor(){super(...arguments),this.disableChildInteraction=!1,this.noPadding=!1,this.clipText=!1,this._observer=new ResizeObserver(()=>{this._detectOverflow()})}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}updated(t){super.updated(t),t.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return l` <slot @slotchange=${this._detectOverflow}></slot>`}};Pe.styles=[d`
|
|
5526
5525
|
:host {
|
|
5527
5526
|
position: relative;
|
|
5528
5527
|
display: table-cell;
|
|
@@ -5556,20 +5555,20 @@
|
|
|
5556
5555
|
:host([no-padding]) {
|
|
5557
5556
|
padding: 0;
|
|
5558
5557
|
}
|
|
5559
|
-
`],io([a({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],Pe.prototype,"disableChildInteraction",2),io([a({type:Boolean,reflect:!0,attribute:"no-padding"})],Pe.prototype,"noPadding",2),io([a({type:Boolean,reflect:!0,attribute:"clip-text"})],Pe.prototype,"clipText",2),Pe=io([p("uui-table-cell")],Pe);var
|
|
5558
|
+
`],io([a({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],Pe.prototype,"disableChildInteraction",2),io([a({type:Boolean,reflect:!0,attribute:"no-padding"})],Pe.prototype,"noPadding",2),io([a({type:Boolean,reflect:!0,attribute:"clip-text"})],Pe.prototype,"clipText",2),Pe=io([p("uui-table-cell")],Pe);var yg=Object.defineProperty,xg=Object.getOwnPropertyDescriptor,wg=(t,e,i,o)=>{for(var r=o>1?void 0:o?xg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&yg(e,i,r),r};let ro=class extends v{};ro.styles=[d`
|
|
5560
5559
|
:host {
|
|
5561
5560
|
display: table-column;
|
|
5562
5561
|
}
|
|
5563
|
-
`],ro
|
|
5562
|
+
`],ro=wg([p("uui-table-column")],ro);var $g=Object.defineProperty,Eg=Object.getOwnPropertyDescriptor,Pg=(t,e,i,o)=>{for(var r=o>1?void 0:o?Eg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&$g(e,i,r),r};let oo=class extends Pe{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}};oo.styles=[...Pe.styles,d`
|
|
5564
5563
|
:host {
|
|
5565
5564
|
border-top: none;
|
|
5566
5565
|
}
|
|
5567
|
-
`],oo=
|
|
5566
|
+
`],oo=Pg([p("uui-table-head-cell")],oo);var Cg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,kg=(t,e,i,o)=>{for(var r=o>1?void 0:o?Og(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Cg(e,i,r),r};let so=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return l`<slot></slot>`}};so.styles=[d`
|
|
5568
5567
|
:host {
|
|
5569
5568
|
display: table-header-group;
|
|
5570
5569
|
font-weight: bold;
|
|
5571
5570
|
}
|
|
5572
|
-
`],so=
|
|
5571
|
+
`],so=kg([p("uui-table-head")],so);var Sg=Object.defineProperty,Ig=Object.getOwnPropertyDescriptor,vu=(t,e,i,o)=>{for(var r=o>1?void 0:o?Ig(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Sg(e,i,r),r};let er=class extends br(Nt(v)){constructor(){super();let t=!1;this.addEventListener("blur",()=>{t===!1&&this.style.setProperty("--uui-show-focus-outline","1"),t=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),t=!0}),this.addEventListener("mouseup",()=>{t=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(t){t.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(t=>{this.elementIsTableCell(t)&&(t.disableChildInteraction=this.selectOnly)})}elementIsTableCell(t){return t instanceof Pe}render(){return l` <slot @slotchanged=${this.updateChildSelectOnly}></slot> `}};er.styles=[d`
|
|
5573
5572
|
:host {
|
|
5574
5573
|
display: table-row;
|
|
5575
5574
|
position: relative;
|
|
@@ -5591,7 +5590,7 @@
|
|
|
5591
5590
|
:host([selected]:focus) {
|
|
5592
5591
|
outline-color: var(--uui-color-focus,#3879ff);
|
|
5593
5592
|
}
|
|
5594
|
-
`],
|
|
5593
|
+
`],vu([Ke({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],er.prototype,"slotCellNodes",2),er=vu([p("uui-table-row")],er);var zg=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,tr=(t,e,i,o)=>{for(var r=o>1?void 0:o?Ag(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&zg(e,i,r),r};let Fe=class extends Ei(ve("",v)){constructor(){super(),this.disabled=!1,this.orientation="horizontal",this.addEventListener("click",this.onHostClick)}onHostClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}render(){return this.href?l`
|
|
5595
5594
|
<a
|
|
5596
5595
|
id="button"
|
|
5597
5596
|
href=${P(this.disabled?void 0:this.href)}
|
|
@@ -5733,8 +5732,8 @@
|
|
|
5733
5732
|
:host([orientation='vertical']) slot.label {
|
|
5734
5733
|
text-align: left;
|
|
5735
5734
|
}
|
|
5736
|
-
`],tr([a({type:Boolean,reflect:!0})],Fe.prototype,"disabled",2),tr([a({type:String})],Fe.prototype,"href",2),tr([a({type:String})],Fe.prototype,"target",2),tr([a({type:String,reflect:!0})],Fe.prototype,"orientation",2),Fe=tr([p("uui-tab")],Fe);var
|
|
5737
|
-
<slot @slotchange=${it(this,
|
|
5735
|
+
`],tr([a({type:Boolean,reflect:!0})],Fe.prototype,"disabled",2),tr([a({type:String})],Fe.prototype,"href",2),tr([a({type:String})],Fe.prototype,"target",2),tr([a({type:String,reflect:!0})],Fe.prototype,"orientation",2),Fe=tr([p("uui-tab")],Fe);var Ug=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,no=(t,e,i,o)=>{for(var r=o>1?void 0:o?Dg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Ug(e,i,r),r},$s=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},C=(t,e,i)=>($s(t,e,"read from private field"),i?i.call(t):e.get(t)),ee=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},Es=(t,e,i,o)=>($s(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),it=(t,e,i)=>($s(t,e,"access private method"),i),Ge,qe,pi,Ce,ao,lo,Ps,fu,Cs,bu,vi,uo,Os,ks,gu,Ss,mu,co,Is;let It=class extends v{constructor(){super(...arguments),ee(this,Ps),ee(this,Cs),ee(this,uo),ee(this,ks),ee(this,Ss),ee(this,co),this.dropdownContentDirection="vertical",ee(this,Ge,[]),ee(this,qe,[]),ee(this,pi,new Map),ee(this,Ce,[]),ee(this,ao,0),ee(this,lo,new ResizeObserver(it(this,Ps,fu).bind(this))),ee(this,vi,t=>{const e=t.currentTarget;if(it(this,co,Is).call(this,e)){e.active=!0;const i=C(this,pi).get(e);i&&(i.active=!0),[...C(this,Ge),...C(this,qe)].filter(s=>s!==e&&s!==i).forEach(s=>{it(this,co,Is).call(this,s)&&(s.active=!1)}),C(this,qe).some(s=>s.active&&s!==i)?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside")}})}connectedCallback(){super.connectedCallback(),C(this,lo).observe(this),this.hasAttribute("role")||this.setAttribute("role","tablist")}disconnectedCallback(){super.disconnectedCallback(),C(this,lo).unobserve(this)}render(){return l`
|
|
5736
|
+
<slot @slotchange=${it(this,Cs,bu)}></slot>
|
|
5738
5737
|
<uui-button
|
|
5739
5738
|
popovertarget="popover-container"
|
|
5740
5739
|
style="display: none"
|
|
@@ -5752,7 +5751,7 @@
|
|
|
5752
5751
|
${Ko(C(this,qe),t=>l`${t}`)}
|
|
5753
5752
|
</div>
|
|
5754
5753
|
</uui-popover-container>
|
|
5755
|
-
`}};Ge=new WeakMap,qe=new WeakMap,pi=new WeakMap,Ce=new WeakMap,ao=new WeakMap,lo=new WeakMap,
|
|
5754
|
+
`}};Ge=new WeakMap,qe=new WeakMap,pi=new WeakMap,Ce=new WeakMap,ao=new WeakMap,lo=new WeakMap,Ps=new WeakSet,fu=function(t){it(this,uo,Os).call(this,t[0].contentBoxSize[0].inlineSize)},Cs=new WeakSet,bu=function(){C(this,Ge).forEach(t=>{t.removeEventListener("click",C(this,vi))}),it(this,Ss,mu).call(this),C(this,Ge).forEach(t=>{t.addEventListener("click",C(this,vi))})},vi=new WeakMap,uo=new WeakSet,Os=function(t){const e=this._moreButtonElement.offsetWidth;if(C(this,Ce).slice(-1)[0]<t&&C(this,qe).length===0)return;let i=Number.MAX_VALUE;for(let r=C(this,Ce).length-1;r>-1;r--){const s=C(this,Ce)[r],n=t-(r!==C(this,Ce).length-1?e:0);if(s<n){i=r;break}}if(i===C(this,ao))return;Es(this,ao,i),C(this,qe).forEach(r=>{r.removeEventListener("click",C(this,vi))}),Es(this,qe,[]),C(this,pi).clear();let o=!1;for(let r=0;r<C(this,Ce).length;r++){const s=C(this,Ce)[r],n=C(this,Ge)[r],u=t-(r!==C(this,Ce).length-1?e:0);if(s<u)n.style.display="",this._moreButtonElement.style.display="none";else{const c=n.cloneNode(!0);c.addEventListener("click",C(this,vi)),c.classList.add("hidden-tab"),c.style.display="",c.orientation=this.dropdownContentDirection,C(this,pi).set(c,n),C(this,pi).set(n,c),C(this,qe).push(c),n.style.display="none",this._moreButtonElement.style.display="",n.active&&(o=!0)}}o?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside"),this.requestUpdate()},ks=new WeakSet,gu=function(){let t=0;for(let e=0;e<C(this,Ge).length;e++)t+=C(this,Ge)[e].offsetWidth,C(this,Ce)[e]=t;it(this,uo,Os).call(this,this.offsetWidth)},Ss=new WeakSet,mu=function(){Es(this,Ge,this._slottedNodes?this._slottedNodes:[]),it(this,ks,gu).call(this)},co=new WeakSet,Is=function(t){return t instanceof Fe||"active"in t},It.styles=[d`
|
|
5756
5755
|
:host {
|
|
5757
5756
|
display: flex;
|
|
5758
5757
|
flex-wrap: wrap;
|
|
@@ -5803,7 +5802,7 @@
|
|
|
5803
5802
|
height: 4px;
|
|
5804
5803
|
transition: opacity 120ms, height ease-out 120ms;
|
|
5805
5804
|
}
|
|
5806
|
-
`],no([O("#more-button")],
|
|
5805
|
+
`],no([O("#more-button")],It.prototype,"_moreButtonElement",2),no([Ke({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],It.prototype,"_slottedNodes",2),no([a({type:String,reflect:!0,attribute:"dropdown-content-direction"})],It.prototype,"dropdownContentDirection",2),It=no([p("uui-tab-group")],It);class Lg extends k{}class Mg extends k{}var Tg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,zs=(t,e,i,o)=>{for(var r=o>1?void 0:o?Ng(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Tg(e,i,r),r};let fi=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return l`<slot></slot>`}};fi.styles=[d`
|
|
5807
5806
|
:host {
|
|
5808
5807
|
display: inline-block;
|
|
5809
5808
|
font-size: var(--uui-tag-font-size, var(--uui-type-small-size,12px));
|
|
@@ -5870,7 +5869,7 @@
|
|
|
5870
5869
|
color: var(--color-standalone);
|
|
5871
5870
|
border-color: var(--uui-color-border-standalone,#c2c2c2);
|
|
5872
5871
|
}
|
|
5873
|
-
`],
|
|
5872
|
+
`],zs([a({reflect:!0})],fi.prototype,"color",2),zs([a({reflect:!0})],fi.prototype,"look",2),fi=zs([p("uui-tag")],fi);var Vg=Object.defineProperty,_u=Object.getOwnPropertySymbols,jg=Object.prototype.hasOwnProperty,Hg=Object.prototype.propertyIsEnumerable,yu=(t,e,i)=>e in t?Vg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,xu=(t,e)=>{for(var i in e||(e={}))jg.call(e,i)&&yu(t,i,e[i]);if(_u)for(var i of _u(e))Hg.call(e,i)&&yu(t,i,e[i]);return t};class ir extends k{constructor(e,i={}){super(e,xu(xu({},{bubbles:!0}),i))}}ir.CHANGE="change",ir.INPUT="input";var Bg=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,H=(t,e,i,o)=>{for(var r=o>1?void 0:o?Rg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Bg(e,i,r),r};let L=class extends fe(v){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.autoHeight=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&this._value.length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&this._value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this),this.autoHeight&&requestAnimationFrame(()=>{this.autoUpdateHeight()})}focus(){var t;(t=this._textarea)==null||t.focus()}getFormElement(){return this._textarea}onInput(t){this.value=t.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new ir(ir.CHANGE))}autoUpdateHeight(){const t=this.shadowRoot.host,e=this._textarea,i=t.scrollTop,o=getComputedStyle(t).height;t.style.display="block",t.style.height=o,e.style.height="auto",e.scrollHeight+2>e.clientHeight?e.style.height=e.scrollHeight+2+"px":e.scrollHeight+2<e.clientHeight&&e.style.removeProperty("height"),t.style.removeProperty("display"),t.style.removeProperty("height"),t.scrollTop=i}render(){return l`
|
|
5874
5873
|
<textarea
|
|
5875
5874
|
id="textarea"
|
|
5876
5875
|
rows=${P(this.rows)}
|
|
@@ -5969,7 +5968,7 @@
|
|
|
5969
5968
|
outline: calc(2px * var(--uui-show-focus-outline, 1)) solid
|
|
5970
5969
|
var(--uui-color-focus,#3879ff);
|
|
5971
5970
|
}
|
|
5972
|
-
`],H([a()],L.prototype,"placeholder",2),H([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2),H([a({type:Boolean,reflect:!0})],L.prototype,"readonly",2),H([a({type:String})],L.prototype,"name",2),H([a({type:Boolean,reflect:!0})],L.prototype,"error",2),H([a({type:Number})],L.prototype,"minlength",2),H([a({type:String,attribute:"minlength-message"})],L.prototype,"minlengthMessage",2),H([a({type:Number})],L.prototype,"maxlength",2),H([a({type:String,attribute:"maxlength-message"})],L.prototype,"maxlengthMessage",2),H([O("#textarea")],L.prototype,"_textarea",2),H([a({type:Boolean,attribute:"auto-height",reflect:!0})],L.prototype,"autoHeight",2),H([a({type:String})],L.prototype,"label",2),H([a({type:Number})],L.prototype,"rows",2),H([a({type:Number})],L.prototype,"cols",2),H([a({type:String})],L.prototype,"wrap",2),L=H([p("uui-textarea")],L);var
|
|
5971
|
+
`],H([a()],L.prototype,"placeholder",2),H([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2),H([a({type:Boolean,reflect:!0})],L.prototype,"readonly",2),H([a({type:String})],L.prototype,"name",2),H([a({type:Boolean,reflect:!0})],L.prototype,"error",2),H([a({type:Number})],L.prototype,"minlength",2),H([a({type:String,attribute:"minlength-message"})],L.prototype,"minlengthMessage",2),H([a({type:Number})],L.prototype,"maxlength",2),H([a({type:String,attribute:"maxlength-message"})],L.prototype,"maxlengthMessage",2),H([O("#textarea")],L.prototype,"_textarea",2),H([a({type:Boolean,attribute:"auto-height",reflect:!0})],L.prototype,"autoHeight",2),H([a({type:String})],L.prototype,"label",2),H([a({type:Number})],L.prototype,"rows",2),H([a({type:Number})],L.prototype,"cols",2),H([a({type:String})],L.prototype,"wrap",2),L=H([p("uui-textarea")],L);var Fg=`.uui-text {
|
|
5973
5972
|
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
5974
5973
|
font-size: 15px;
|
|
5975
5974
|
line-height: calc(var(--uui-size-2,6px) * 4);
|
|
@@ -6137,7 +6136,7 @@
|
|
|
6137
6136
|
margin-top: var(--uui-size-layout-1,24px);
|
|
6138
6137
|
margin-bottom: var(--uui-size-layout-1,24px);
|
|
6139
6138
|
}
|
|
6140
|
-
`;const
|
|
6139
|
+
`;const Gg=le(Fg);class R extends k{}R.OPENING="opening",R.OPENED="opened",R.CLOSING="closing",R.CLOSED="closed";var qg=Object.defineProperty,Wg=Object.getOwnPropertyDescriptor,bi=(t,e,i,o)=>{for(var r=o>1?void 0:o?Wg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&qg(e,i,r),r};let We=class extends v{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",t=>{t.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,t!==null?(this._timer===null?this._timer=new sd(this._onOpenTimerComplete,t):this._timer.setDuration(t),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):((e=this._timer)==null||e.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(t){t===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),y(this,"uui-button"),y(this,"uui-icon")}_getAnimationDuration(){return parseInt(getComputedStyle(this).getPropertyValue("--uui-toast-notification-animation-duration"),10)||480}_makeOpen(){this._open!==!0&&(this._open=!0,this.updateComplete.then(()=>{this._open===!0&&(cancelAnimationFrame(this._requestAnimationUpdate),this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!0,this.setAttribute("is-open",""),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,this.dispatchEvent(new R(R.OPENING)),this._animationTimeout=window.setTimeout(()=>{var t;this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&((t=this._timer)==null||t.start()),this.dispatchEvent(new R(R.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var t;if(this._open===!1)return;const e=new R(R.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,(t=this._timer)==null||t.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new R(R.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return l`
|
|
6141
6140
|
<div id="toast" class=${this._animate?"animate":""}>
|
|
6142
6141
|
<div>
|
|
6143
6142
|
<div id="close">
|
|
@@ -6148,13 +6147,13 @@
|
|
|
6148
6147
|
@click=${()=>this.open=!1}>
|
|
6149
6148
|
<uui-icon
|
|
6150
6149
|
name="remove"
|
|
6151
|
-
.fallback=${
|
|
6150
|
+
.fallback=${aa.strings[0]}></uui-icon>
|
|
6152
6151
|
</uui-button>
|
|
6153
6152
|
</div>
|
|
6154
6153
|
<slot></slot>
|
|
6155
6154
|
</div>
|
|
6156
6155
|
</div>
|
|
6157
|
-
`}};We.styles=[
|
|
6156
|
+
`}};We.styles=[Gg,d`
|
|
6158
6157
|
:host {
|
|
6159
6158
|
--uui-toast-notification-margin: var(--uui-size-space-2,6px);
|
|
6160
6159
|
|
|
@@ -6250,7 +6249,7 @@
|
|
|
6250
6249
|
color: var(--uui-color-danger-contrast,white);
|
|
6251
6250
|
border-color: var(--uui-color-danger-standalone,rgb(191, 33, 78));
|
|
6252
6251
|
}
|
|
6253
|
-
`],bi([a({reflect:!0})],We.prototype,"color",2),bi([a({type:Number})],We.prototype,"autoClose",1),bi([O("#toast")],We.prototype,"_toastEl",2),bi([b()],We.prototype,"_animate",2),bi([a({type:Boolean,reflect:!0})],We.prototype,"open",1),We=bi([p("uui-toast-notification")],We);var
|
|
6252
|
+
`],bi([a({reflect:!0})],We.prototype,"color",2),bi([a({type:Number})],We.prototype,"autoClose",1),bi([O("#toast")],We.prototype,"_toastEl",2),bi([b()],We.prototype,"_animate",2),bi([a({type:Boolean,reflect:!0})],We.prototype,"open",1),We=bi([p("uui-toast-notification")],We);var Kg=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,wu=(t,e,i,o)=>{for(var r=o>1?void 0:o?Xg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Kg(e,i,r),r};let rr=class extends v{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{var t;this._autoClosePause=!0,(t=this._toasts)==null||t.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{var t;this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,(t=this._toasts)==null||t.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=t=>{this.removeToast(t.target)},this._toasts=[],this.onSlotChanged=t=>{const e=[...this._toasts];this._toasts=t.target.assignedElements({flatten:!0}).filter(r=>r.nodeName==="UUI-TOAST-NOTIFICATION"),e.filter(r=>this._toasts.indexOf(r)===-1).forEach(r=>{r.removeEventListener(R.CLOSED,this.onToastClosed),r.removeEventListener("mouseenter",this.pauseAutoClose),r.removeEventListener("mouseleave",this.resumeAutoClose),r.removeEventListener("focus",this.pauseAutoClose),r.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(r=>e.indexOf(r)===-1).forEach(r=>{r.addEventListener(R.CLOSED,this.onToastClosed),r.addEventListener("mouseenter",this.pauseAutoClose),r.addEventListener("mouseleave",this.resumeAutoClose),r.addEventListener("focus",this.pauseAutoClose),r.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(r.autoClose=this._autoClose),this._autoClosePause===!0&&r.pauseAutoClose(),r.open=!0})}}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,(e=this._toasts)==null||e.forEach(i=>i.autoClose=t)}removeToast(t){if(!t)t=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(t)===-1){console.warn("Toast-notification",t,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(t)}closeToast(t){let e=t;e||(e=this._toasts[this._toasts.length-1]),e.open=!1}render(){return l` <slot @slotchange=${this.onSlotChanged}></slot> `}};rr.styles=[d`
|
|
6254
6253
|
:host {
|
|
6255
6254
|
position: absolute;
|
|
6256
6255
|
overflow: hidden;
|
|
@@ -6278,7 +6277,7 @@
|
|
|
6278
6277
|
:host([left-align]) slot {
|
|
6279
6278
|
align-items: start;
|
|
6280
6279
|
}
|
|
6281
|
-
`]
|
|
6280
|
+
`],wu([a({type:Number,reflect:!0,attribute:"auto-close"})],rr.prototype,"_autoClose",2),rr=wu([p("uui-toast-notification-container")],rr);var Yg=`.uui-text {
|
|
6282
6281
|
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
6283
6282
|
font-size: 15px;
|
|
6284
6283
|
line-height: calc(var(--uui-size-2,6px) * 4);
|
|
@@ -6446,7 +6445,7 @@
|
|
|
6446
6445
|
margin-top: var(--uui-size-layout-1,24px);
|
|
6447
6446
|
margin-bottom: var(--uui-size-layout-1,24px);
|
|
6448
6447
|
}
|
|
6449
|
-
`;const
|
|
6448
|
+
`;const Zg=le(Yg);var Qg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,As=(t,e,i,o)=>{for(var r=o>1?void 0:o?Jg(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&Qg(e,i,r),r};let gi=class extends v{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}render(){return l`
|
|
6450
6449
|
<div id="message" class="uui-text">
|
|
6451
6450
|
<h5
|
|
6452
6451
|
style=${this._headlineSlotHasContent||this.headline&&this.headline!==""?"":"display: none"}>
|
|
@@ -6456,7 +6455,7 @@
|
|
|
6456
6455
|
<slot></slot>
|
|
6457
6456
|
<slot id="actions" name="actions"></slot>
|
|
6458
6457
|
</div>
|
|
6459
|
-
`}};gi.styles=[
|
|
6458
|
+
`}};gi.styles=[Zg,d`
|
|
6460
6459
|
#message {
|
|
6461
6460
|
margin-bottom: calc(var(--uui-size-space-1,3px) * -1);
|
|
6462
6461
|
}
|
|
@@ -6477,10 +6476,10 @@
|
|
|
6477
6476
|
margin-top: var(--uui-size-space-4,12px);
|
|
6478
6477
|
margin-bottom: calc(var(--uui-size-space-2,6px) * -1);
|
|
6479
6478
|
}
|
|
6480
|
-
`],
|
|
6479
|
+
`],As([a({type:String})],gi.prototype,"headline",2),As([b()],gi.prototype,"_headlineSlotHasContent",2),gi=As([p("uui-toast-notification-layout")],gi);var e0=Object.defineProperty,t0=Object.getOwnPropertyDescriptor,i0=(t,e,i,o)=>{for(var r=o>1?void 0:o?t0(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&e0(e,i,r),r};let or=class extends be{constructor(){super("switch")}renderCheckbox(){return l`
|
|
6481
6480
|
<div id="slider">
|
|
6482
6481
|
<div id="icon-check">${$r}</div>
|
|
6483
|
-
<div id="icon-wrong">${
|
|
6482
|
+
<div id="icon-wrong">${la}</div>
|
|
6484
6483
|
</div>
|
|
6485
6484
|
`}};or.formAssociated=!0,or.styles=[...be.styles,_r,d`
|
|
6486
6485
|
:host {
|
|
@@ -6615,7 +6614,7 @@
|
|
|
6615
6614
|
:host(:not([pristine])[internals-invalid]) label:hover #slider {
|
|
6616
6615
|
border: 1px solid var(--uui-color-danger-standalone,rgb(191, 33, 78));
|
|
6617
6616
|
}
|
|
6618
|
-
`],or=
|
|
6617
|
+
`],or=i0([p("uui-toggle")],or);var r0=Object.defineProperty,o0=Object.getOwnPropertyDescriptor,s0=(t,e,i,o)=>{for(var r=o>1?void 0:o?o0(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(r=(o?n(e,i,r):n(r))||r);return o&&r&&r0(e,i,r),r};let ho=class extends v{render(){return l`<slot></slot>`}};ho.styles=[d`
|
|
6619
6618
|
:host(:not(:focus-within)) {
|
|
6620
6619
|
position: absolute !important;
|
|
6621
6620
|
width: 1px !important;
|
|
@@ -6627,4 +6626,4 @@
|
|
|
6627
6626
|
white-space: nowrap !important;
|
|
6628
6627
|
padding: 0 !important;
|
|
6629
6628
|
}
|
|
6630
|
-
`],ho=
|
|
6629
|
+
`],ho=s0([p("uui-visually-hidden")],ho);export{tc as ActiveMixin,vc as FormControlMixin,kc as InterfaceColorValues,Sc as InterfaceHeadingValues,Oc as InterfaceLookValues,oc as LabelMixin,Pc as PopoverTargetMixin,hc as SelectOnlyMixin,ac as SelectableMixin,fc as Timer,pr as UUIActionBarElement,Ie as UUIAvatarElement,pt as UUIAvatarGroupElement,vt as UUIBadgeElement,Tu as UUIBlinkAnimationValue,Mu as UUIBlinkKeyframes,be as UUIBooleanInputElement,gr as UUIBooleanInputEvent,ze as UUIBoxElement,bt as UUIBreadcrumbItemElement,Pi as UUIBreadcrumbsElement,W as UUIButtonElement,Lt as UUIButtonGroupElement,gt as UUIButtonInlineCreateElement,xr as UUIButtonInlineCreateEvent,Gt as UUICardContentNodeElement,G as UUICardElement,Ft as UUICardEvent,mt as UUICardMediaElement,ki as UUICardUserElement,Si as UUICaretElement,Ii as UUICheckboxElement,re as UUIColorAreaElement,Or as UUIColorAreaEvent,Ir as UUIColorPickerChangeEvent,A as UUIColorPickerElement,se as UUIColorSliderElement,zr as UUIColorSliderEvent,Ye as UUIColorSwatchElement,yt as UUIColorSwatchesElement,qt as UUIColorSwatchesEvent,q as UUIComboboxElement,K as UUIComboboxEvent,_e as UUIComboboxListElement,ce as UUIComboboxListEvent,Te as UUIComboboxListOptionElement,Ur as UUIDialogElement,Kt as UUIDialogLayoutElement,ko as UUIEvent,Ze as UUIFileDropzoneElement,Xt as UUIFileDropzoneEvent,X as UUIFilePreviewElement,ct as UUIFormControlEvent,Xo as UUIFormElement,wt as UUIFormLayoutItemElement,Mi as UUIFormValidationMessageElement,Vu as UUIHorizontalPulseAnimationValue,Nu as UUIHorizontalPulseKeyframes,Hu as UUIHorizontalShakeAnimationValue,ju as UUIHorizontalShakeKeyframes,xe as UUIIconElement,Qo as UUIIconHost,Jo as UUIIconRegistry,Ti as UUIIconRegistryElement,wl as UUIIconRegistryEssential,es as UUIIconRegistryEssentialElement,Yt as UUIIconRequestEvent,I as UUIInputElement,Et as UUIInputEvent,Ne as UUIInputFileElement,Ni as UUIInputLockElement,Qt as UUIInputPasswordElement,Mr as UUIKeyElement,Lr as UUIKeyboardShortcutElement,Pt as UUILabelElement,Jt as UUILoaderBarElement,ei as UUILoaderCircleElement,Nr as UUILoaderElement,ne as UUIMenuItemElement,Ve as UUIMenuItemEvent,He as UUIModalContainerElement,Gr as UUIModalDialogElement,Y as UUIModalElement,ii as UUIModalSidebarElement,ae as UUIPaginationElement,Qe as UUIPaginationEvent,we as UUIPopoverContainerElement,Je as UUIPopoverElement,Bi as UUIProgressBarElement,de as UUIRadioElement,ai as UUIRadioEvent,li as UUIRadioGroupElement,Xr as UUIRadioGroupEvent,z as UUIRangeSliderElement,tt as UUIRefElement,ci as UUIRefEvent,Yr as UUIRefListElement,Fi as UUIRefNodeDataTypeElement,Gi as UUIRefNodeDocumentTypeElement,M as UUIRefNodeElement,Qr as UUIRefNodeFormElement,qi as UUIRefNodeMemberElement,hi as UUIRefNodePackageElement,Wi as UUIRefNodeUserElement,Ki as UUIScrollContainerElement,Q as UUISelectElement,Jr as UUISelectEvent,ht as UUISelectableEvent,j as UUISliderElement,St as UUISliderEvent,Yi as UUISymbolExpandElement,Zi as UUISymbolFileDropzoneElement,Oi as UUISymbolFileElement,di as UUISymbolFileThumbnailElement,Er as UUISymbolFolderElement,Qi as UUISymbolLockElement,eo as UUISymbolMoreElement,Ji as UUISymbolSortElement,Fe as UUITabElement,Lg as UUITabEvent,It as UUITabGroupElement,Mg as UUITabGroupEvent,Pe as UUITableCellElement,ro as UUITableColumnElement,to as UUITableElement,oo as UUITableHeadCellElement,so as UUITableHeadElement,er as UUITableRowElement,fi as UUITagElement,Au as UUITextStyles,L as UUITextareaElement,ir as UUITextareaEvent,rr as UUIToastNotificationContainerElement,We as UUIToastNotificationElement,R as UUIToastNotificationEvent,gi as UUIToastNotificationLayoutElement,or as UUIToggleElement,ho as UUIVisuallyHiddenElement,mc as clamp,Cc as defineElement,bc as demandCustomElement,gc as drag,bn as findAncestorByAttributeValue,_c as reverseNumberInRange,yc as toHex};
|