cas-ds-web-components 1.2.37 → 1.2.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cas-ds-web-components.js +885 -1520
- package/build/cas-header.js +785 -1420
- package/build/cas-radio-button.js +1 -1
- package/build/cas-select.js +424 -1070
- package/package.json +1 -1
- package/build/cas-banners-cta.js +0 -175
- package/build/cas-select-v2.js +0 -3774
package/build/cas-select.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(D,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(D=typeof globalThis<"u"?globalThis:D||self,P(D["cas-select"]={}))})(this,function(D){"use strict";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const P=window,
|
|
5
|
+
*/const P=window,q0=P.ShadowRoot&&(P.ShadyCSS===void 0||P.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,j0=Symbol(),s1=new WeakMap;class O{constructor(e,t,a){if(this._$cssResult$=!0,a!==j0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(q0&&e===void 0){const a=t!==void 0&&t.length===1;a&&(e=s1.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),a&&s1.set(t,e))}return e}toString(){return this.cssText}}const vh=h=>new O(typeof h=="string"?h:h+"",void 0,j0),f=(h,...e)=>{const t=h.length===1?h[0]:e.reduce((a,i,s)=>a+(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.")})(i)+h[s+1],h[0]);return new O(t,h,j0)},ph=(h,e)=>{q0?h.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const a=document.createElement("style"),i=P.litNonce;i!==void 0&&a.setAttribute("nonce",i),a.textContent=t.cssText,h.appendChild(a)})},n1=q0?h=>h:h=>h instanceof CSSStyleSheet?(e=>{let t="";for(const a of e.cssRules)t+=a.cssText;return vh(t)})(h):h;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var
|
|
9
|
+
*/var W0;const m0=window,o1=m0.trustedTypes,uh=o1?o1.emptyScript:"",r1=m0.reactiveElementPolyfillSupport,Y0={toAttribute(h,e){switch(e){case Boolean:h=h?uh:null;break;case Object:case Array:h=h==null?h:JSON.stringify(h)}return h},fromAttribute(h,e){let t=h;switch(e){case Boolean:t=h!==null;break;case Number:t=h===null?null:Number(h);break;case Object:case Array:try{t=JSON.parse(h)}catch{t=null}}return t}},l1=(h,e)=>e!==h&&(e==e||h==h),G0={attribute:!0,type:String,converter:Y0,reflect:!1,hasChanged:l1};class B extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,a)=>{const i=this._$Ep(a,t);i!==void 0&&(this._$Ev.set(i,a),e.push(i))}),e}static createProperty(e,t=G0){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const a=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,a,t);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,a){return{get(){return this[t]},set(i){const s=this[e];this[t]=i,this.requestUpdate(e,s,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||G0}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 t=this.properties,a=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of a)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const a=new Set(e.flat(1/0).reverse());for(const i of a)t.unshift(n1(i))}else e!==void 0&&t.push(n1(e));return t}static _$Ep(e,t){const a=t.attribute;return a===!1?void 0:typeof a=="string"?a:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,a;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((a=e.hostConnected)===null||a===void 0||a.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return ph(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var a;return(a=t.hostConnected)===null||a===void 0?void 0:a.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var a;return(a=t.hostDisconnected)===null||a===void 0?void 0:a.call(t)})}attributeChangedCallback(e,t,a){this._$AK(e,a)}_$EO(e,t,a=G0){var i;const s=this.constructor._$Ep(e,a);if(s!==void 0&&a.reflect===!0){const n=(((i=a.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?a.converter:Y0).toAttribute(t,a.type);this._$El=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var a;const i=this.constructor,s=i._$Ev.get(e);if(s!==void 0&&this._$El!==s){const n=i.getPropertyOptions(s),o=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)===null||a===void 0?void 0:a.fromAttribute)!==void 0?n.converter:Y0;this._$El=s,this[s]=o.fromAttribute(t,n.type),this._$El=null}}requestUpdate(e,t,a){let i=!0;e!==void 0&&(((a=a||this.constructor.getPropertyOptions(e)).hasChanged||l1)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),a.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,a))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}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((i,s)=>this[s]=i),this._$Ei=void 0);let t=!1;const a=this._$AL;try{t=this.shouldUpdate(a),t?(this.willUpdate(a),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdate)===null||s===void 0?void 0:s.call(i)}),this.update(a)):this._$Ek()}catch(i){throw t=!1,this._$Ek(),i}t&&this._$AE(a)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(a=>{var i;return(i=a.hostUpdated)===null||i===void 0?void 0:i.call(a)}),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((t,a)=>this._$EO(a,this[a],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}B.finalized=!0,B.elementProperties=new Map,B.elementStyles=[],B.shadowRootOptions={mode:"open"},r1?.({ReactiveElement:B}),((W0=m0.reactiveElementVersions)!==null&&W0!==void 0?W0:m0.reactiveElementVersions=[]).push("1.4.2");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var
|
|
13
|
+
*/var K0;const M0=window,F=M0.trustedTypes,d1=F?F.createPolicy("lit-html",{createHTML:h=>h}):void 0,I=`lit$${(Math.random()+"").slice(9)}$`,c1="?"+I,fh=`<${c1}>`,H=document,X=(h="")=>H.createComment(h),t0=h=>h===null||typeof h!="object"&&typeof h!="function",v1=Array.isArray,gh=h=>v1(h)||typeof h?.[Symbol.iterator]=="function",e0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,p1=/-->/g,u1=/>/g,k=RegExp(`>|[
|
|
14
14
|
\f\r](?:([^\\s"'>=/]+)([
|
|
15
15
|
\f\r]*=[
|
|
16
16
|
\f\r]*(?:[^
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),f1=/'/g,g1=/"/g,_1=/^(?:script|style|textarea|title)$/i,m1=h=>(e,...t)=>({_$litType$:h,strings:e,values:t}),_h=m1(1),M1=m1(2),N=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),z1=new WeakMap,U=H.createTreeWalker(H,129,null,!1),mh=(h,e)=>{const t=h.length-1,a=[];let i,s=e===2?"<svg>":"",n=e0;for(let r=0;r<t;r++){const l=h[r];let d,c,v=-1,p=0;for(;p<l.length&&(n.lastIndex=p,c=n.exec(l),c!==null);)p=n.lastIndex,n===e0?c[1]==="!--"?n=p1:c[1]!==void 0?n=u1:c[2]!==void 0?(_1.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=k):c[3]!==void 0&&(n=k):n===k?c[0]===">"?(n=i??e0,v=-1):c[1]===void 0?v=-2:(v=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?k:c[3]==='"'?g1:f1):n===g1||n===f1?n=k:n===p1||n===u1?n=e0:(n=k,i=void 0);const u=n===k&&h[r+1].startsWith("/>")?" ":"";s+=n===e0?l+fh:v>=0?(a.push(d),l.slice(0,v)+"$lit$"+l.slice(v)+I+u):l+I+(v===-2?(a.push(void 0),r):u)}const o=s+(h[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(h)||!h.hasOwnProperty("raw"))throw Error("invalid template strings array");return[d1!==void 0?d1.createHTML(o):o,a]};class h0{constructor({strings:e,_$litType$:t},a){let i;this.parts=[];let s=0,n=0;const o=e.length-1,r=this.parts,[l,d]=mh(e,t);if(this.el=h0.createElement(l,a),U.currentNode=this.el.content,t===2){const c=this.el.content,v=c.firstChild;v.remove(),c.append(...v.childNodes)}for(;(i=U.nextNode())!==null&&r.length<o;){if(i.nodeType===1){if(i.hasAttributes()){const c=[];for(const v of i.getAttributeNames())if(v.endsWith("$lit$")||v.startsWith(I)){const p=d[n++];if(c.push(v),p!==void 0){const u=i.getAttribute(p.toLowerCase()+"$lit$").split(I),M=/([.?@])?(.*)/.exec(p);r.push({type:1,index:s,name:M[2],strings:u,ctor:M[1]==="."?zh:M[1]==="?"?yh:M[1]==="@"?wh:z0})}else r.push({type:6,index:s})}for(const v of c)i.removeAttribute(v)}if(_1.test(i.tagName)){const c=i.textContent.split(I),v=c.length-1;if(v>0){i.textContent=F?F.emptyScript:"";for(let p=0;p<v;p++)i.append(c[p],X()),U.nextNode(),r.push({type:2,index:++s});i.append(c[v],X())}}}else if(i.nodeType===8)if(i.data===c1)r.push({type:2,index:s});else{let c=-1;for(;(c=i.data.indexOf(I,c+1))!==-1;)r.push({type:7,index:s}),c+=I.length-1}s++}}static createElement(e,t){const a=H.createElement("template");return a.innerHTML=e,a}}function q(h,e,t=h,a){var i,s,n,o;if(e===N)return e;let r=a!==void 0?(i=t._$Co)===null||i===void 0?void 0:i[a]:t._$Cl;const l=t0(e)?void 0:e._$litDirective$;return r?.constructor!==l&&((s=r?._$AO)===null||s===void 0||s.call(r,!1),l===void 0?r=void 0:(r=new l(h),r._$AT(h,t,a)),a!==void 0?((n=(o=t)._$Co)!==null&&n!==void 0?n:o._$Co=[])[a]=r:t._$Cl=r),r!==void 0&&(e=q(h,r._$AS(h,e.values),r,a)),e}class Mh{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:a},parts:i}=this._$AD,s=((t=e?.creationScope)!==null&&t!==void 0?t:H).importNode(a,!0);U.currentNode=s;let n=U.nextNode(),o=0,r=0,l=i[0];for(;l!==void 0;){if(o===l.index){let d;l.type===2?d=new a0(n,n.nextSibling,this,e):l.type===1?d=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(d=new xh(n,this,e)),this.u.push(d),l=i[++r]}o!==l?.index&&(n=U.nextNode(),o++)}return s}p(e){let t=0;for(const a of this.u)a!==void 0&&(a.strings!==void 0?(a._$AI(e,a,t),t+=a.strings.length-2):a._$AI(e[t])),t++}}class a0{constructor(e,t,a,i){var s;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=a,this.options=i,this._$Cm=(s=i?.isConnected)===null||s===void 0||s}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=q(this,e,t),t0(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==N&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):gh(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==_&&t0(this._$AH)?this._$AA.nextSibling.data=e:this.T(H.createTextNode(e)),this._$AH=e}$(e){var t;const{values:a,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=h0.createElement(i.h,this.options)),i);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.p(a);else{const n=new Mh(s,this),o=n.v(this.options);n.p(a),this.T(o),this._$AH=n}}_$AC(e){let t=z1.get(e.strings);return t===void 0&&z1.set(e.strings,t=new h0(e)),t}k(e){v1(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let a,i=0;for(const s of e)i===t.length?t.push(a=new a0(this.O(X()),this.O(X()),this,this.options)):a=t[i],a._$AI(s),i++;i<t.length&&(this._$AR(a&&a._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var a;for((a=this._$AP)===null||a===void 0||a.call(this,!1,!0,t);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class z0{constructor(e,t,a,i,s){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=s,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,a,i){const s=this.strings;let n=!1;if(s===void 0)e=q(this,e,t,0),n=!t0(e)||e!==this._$AH&&e!==N,n&&(this._$AH=e);else{const o=e;let r,l;for(e=s[0],r=0;r<s.length-1;r++)l=q(this,o[a+r],t,r),l===N&&(l=this._$AH[r]),n||(n=!t0(l)||l!==this._$AH[r]),l===_?e=_:e!==_&&(e+=(l??"")+s[r+1]),this._$AH[r]=l}n&&!i&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class zh extends z0{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}}const bh=F?F.emptyScript:"";class yh extends z0{constructor(){super(...arguments),this.type=4}j(e){e&&e!==_?this.element.setAttribute(this.name,bh):this.element.removeAttribute(this.name)}}class wh extends z0{constructor(e,t,a,i,s){super(e,t,a,i,s),this.type=5}_$AI(e,t=this){var a;if((e=(a=q(this,e,t,0))!==null&&a!==void 0?a:_)===N)return;const i=this._$AH,s=e===_&&i!==_||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==_&&(i===_||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,a;typeof this._$AH=="function"?this._$AH.call((a=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&a!==void 0?a:this.element,e):this._$AH.handleEvent(e)}}class xh{constructor(e,t,a){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(e){q(this,e)}}const b1=M0.litHtmlPolyfillSupport;b1?.(h0,a0),((K0=M0.litHtmlVersions)!==null&&K0!==void 0?K0:M0.litHtmlVersions=[]).push("2.4.0");const J0=(h,e,t)=>{var a,i;const s=(a=t?.renderBefore)!==null&&a!==void 0?a:e;let n=s._$litPart$;if(n===void 0){const o=(i=t?.renderBefore)!==null&&i!==void 0?i:null;s._$litPart$=n=new a0(e.insertBefore(X(),o),o,void 0,t??{})}return n._$AI(h),n};/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var
|
|
21
|
+
*/var Z0,Q0;class j extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const a=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=a.firstChild),a}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=J0(t,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 N}}j.finalized=!0,j._$litElement$=!0,(Z0=globalThis.litElementHydrateSupport)===null||Z0===void 0||Z0.call(globalThis,{LitElement:j});const y1=globalThis.litElementPolyfillSupport;y1?.({LitElement:j}),((Q0=globalThis.litElementVersions)!==null&&Q0!==void 0?Q0:globalThis.litElementVersions=[]).push("3.2.2");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2020 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const
|
|
25
|
+
*/const Ch=Symbol.for(""),Ah=h=>{if(h?.r===Ch)return h?._$litStatic$},w1=new Map,Eh=h=>(e,...t)=>{const a=t.length;let i,s;const n=[],o=[];let r,l=0,d=!1;for(;l<a;){for(r=e[l];l<a&&(s=t[l],(i=Ah(s))!==void 0);)r+=i+e[++l],d=!0;o.push(s),n.push(r),l++}if(l===a&&n.push(e[a]),d){const c=n.join("$$lit$$");(e=w1.get(c))===void 0&&(n.raw=n,w1.set(c,e=n)),t=o}return h(e,...t)},b0=Eh(_h);var x1=f`
|
|
26
26
|
@import url(https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap);
|
|
27
27
|
vaadin-combo-box {
|
|
28
28
|
padding: 0;
|
|
29
29
|
width: 100%;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
vaadin-combo-box::part(input-field)::before {
|
|
33
|
-
background-color:
|
|
33
|
+
background-color: #ff3b30 !important;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
vaadin-combo-box::part(input-field) {
|
|
37
|
-
background-color:
|
|
37
|
+
background-color: #FFFFFF;
|
|
38
38
|
height: 57.11px;
|
|
39
39
|
width: 100%;
|
|
40
40
|
padding: 0 12px;
|
|
@@ -45,14 +45,17 @@
|
|
|
45
45
|
gap: 8px;
|
|
46
46
|
letter-spacing: 0.0120588em;
|
|
47
47
|
white-space: nowrap;
|
|
48
|
-
font-family: "Rubik", system-ui,
|
|
48
|
+
font-family: "Rubik", system-ui, sans-serif;
|
|
49
49
|
overflow: hidden;
|
|
50
50
|
text-overflow: ellipsis;
|
|
51
51
|
margin: 0;
|
|
52
52
|
font-weight: 500;
|
|
53
53
|
font-size: 1rem;
|
|
54
54
|
line-height: 1.25rem;
|
|
55
|
-
|
|
55
|
+
}
|
|
56
|
+
:host([disabled]) vaadin-combo-box::part(input-field) {
|
|
57
|
+
background-color: #e9ebec;
|
|
58
|
+
border: 1px solid #e9ebec;
|
|
56
59
|
}
|
|
57
60
|
vaadin-combo-box::part(label) {
|
|
58
61
|
color: var(--tertiary-tertiary-2, #364855);
|
|
@@ -70,9 +73,18 @@
|
|
|
70
73
|
//color: purple;
|
|
71
74
|
}
|
|
72
75
|
vaadin-combo-box::part(prefix) {
|
|
73
|
-
|
|
76
|
+
background-color: #ff3b30;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([isSelectError="true"]:not([disabled])) vaadin-combo-box::part(input-field) {
|
|
80
|
+
border: 1px solid #ff3b30;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([active="true"]:not([disabled])) vaadin-combo-box::part(input-field) {
|
|
84
|
+
border: 1px solid #5143d5;
|
|
74
85
|
}
|
|
75
|
-
|
|
86
|
+
|
|
87
|
+
|
|
76
88
|
vaadin-combo-box::part(toggle-button) {
|
|
77
89
|
//background-color: red;
|
|
78
90
|
font-size: 30px
|
|
@@ -84,13 +96,14 @@
|
|
|
84
96
|
padding: 0;
|
|
85
97
|
width: 335px;
|
|
86
98
|
cursor: pointer;
|
|
99
|
+
--eloisa-ds-icon-color: currentColor;
|
|
87
100
|
}
|
|
88
|
-
|
|
101
|
+
|
|
89
102
|
:host([fullWidth]) {
|
|
90
103
|
width: 100%;
|
|
91
104
|
}
|
|
92
105
|
|
|
93
|
-
|
|
106
|
+
|
|
94
107
|
:root {
|
|
95
108
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
96
109
|
--_vaadin-combo-box-overlay-default-width: 319px;
|
|
@@ -117,15 +130,15 @@
|
|
|
117
130
|
vaadin-combo-box-overlay::part(overlay) {
|
|
118
131
|
margin-top: 9px;
|
|
119
132
|
}
|
|
120
|
-
|
|
133
|
+
|
|
121
134
|
vaadin-combo-box-item:hover:not([disabled]) {
|
|
122
135
|
background-color: rgb(230, 246, 245);
|
|
123
136
|
}
|
|
124
137
|
|
|
125
138
|
vaadin-combo-box-item([disabled]) {
|
|
126
|
-
|
|
139
|
+
|
|
127
140
|
}
|
|
128
|
-
|
|
141
|
+
|
|
129
142
|
.keywords {
|
|
130
143
|
font-weight: 400;
|
|
131
144
|
font-size: 0.875rem;
|
|
@@ -139,7 +152,7 @@
|
|
|
139
152
|
[slot]:is([slot="input"]){
|
|
140
153
|
opacity: 1;
|
|
141
154
|
}
|
|
142
|
-
|
|
155
|
+
|
|
143
156
|
//:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
144
157
|
//opacity: 1;
|
|
145
158
|
//}
|
|
@@ -147,32 +160,27 @@
|
|
|
147
160
|
* @license
|
|
148
161
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
149
162
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
150
|
-
*/function
|
|
151
|
-
* @license
|
|
152
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
153
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
154
|
-
*/class Oh extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.0"}}et(Oh);/**
|
|
163
|
+
*/function Sh(h){const e=customElements.get(h.is);if(!e)customElements.define(h.is,h);else{const t=e.version;t&&h.version&&t===h.version?console.warn(`The component ${h.is} has been loaded twice`):console.error(`Tried to define ${h.is} version ${h.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
|
|
155
164
|
* @license
|
|
156
165
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
157
166
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
158
|
-
*/
|
|
167
|
+
*/class Ph extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.0"}}Sh(Ph);/**
|
|
159
168
|
* @license
|
|
160
169
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
161
170
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
162
|
-
*/const
|
|
171
|
+
*/const Ih=[];function Th(h){return h&&Object.prototype.hasOwnProperty.call(h,"__themes")}function Oh(h){return Th(customElements.get(h))}function kh(h=[]){return[h].flat(1/0).filter(e=>e instanceof O?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function T(h,e,t={}){h&&Oh(h)&&console.warn(`The custom element definition for "${h}"
|
|
163
172
|
was finalized before a style module was registered.
|
|
164
173
|
Make sure to add component specific style modules before
|
|
165
|
-
importing the corresponding custom element.`),e
|
|
166
|
-
`),e.content.appendChild(t)}function Bh(h){const e=`${h}-default-theme`,t=ht().filter(a=>a.moduleId!==e&&Rh(a.themeFor,h)).map(a=>({...a,styles:[...k1(a),...a.styles],includePriority:Dh(a.moduleId)})).sort((a,i)=>i.includePriority-a.includePriority);return t.length>0?t:ht().filter(a=>a.moduleId===e)}const Fh=h=>class extends Nh(h){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;!t||I1(this)||Vh(this.getStylesForThis(),t)}static finalizeStyles(t){const a=this.getStylesForThis();return t?[...super.finalizeStyles(t),...a]:a}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype),a=(t?t.constructor.__themes:[])||[];this.__themes=[...a,...Bh(this.is)];const i=this.__themes.flatMap(s=>s.styles);return i.filter((s,o)=>o===i.lastIndexOf(s))}};/**
|
|
174
|
+
importing the corresponding custom element.`),e=kh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(h,e,t):Ih.push({themeFor:h,styles:e,include:t.include,moduleId:t.moduleId})}/**
|
|
167
175
|
* @license
|
|
168
176
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
169
177
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
170
|
-
*/const
|
|
171
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},
|
|
178
|
+
*/const Nh=(h,...e)=>{const t=document.createElement("style");t.id=h,t.textContent=e.map(a=>a.toString()).join(`
|
|
179
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},W=(h,...e)=>{Nh(`lumo-${h}`,e)};/**
|
|
172
180
|
* @license
|
|
173
181
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
174
182
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
175
|
-
*/const
|
|
183
|
+
*/const $h=f`
|
|
176
184
|
:host {
|
|
177
185
|
--lumo-size-xs: 1.625rem;
|
|
178
186
|
--lumo-size-s: 1.875rem;
|
|
@@ -187,7 +195,19 @@
|
|
|
187
195
|
/* For backwards compatibility */
|
|
188
196
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
189
197
|
}
|
|
190
|
-
`;
|
|
198
|
+
`;W("sizing-props",$h);/**
|
|
199
|
+
* @license
|
|
200
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
201
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
202
|
+
*/const Lh=h=>class extends h{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,a,i){super.attributeChangedCallback(t,a,i),t==="theme"&&this._set_theme(i)}};/**
|
|
203
|
+
* @license
|
|
204
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
205
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
206
|
+
*/const C1=[];function A1(h){return h&&Object.prototype.hasOwnProperty.call(h,"__themes")}function Vh(h){return A1(customElements.get(h))}function Rh(h=[]){return[h].flat(1/0).filter(e=>e instanceof O?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function E1(h,e,t={}){h&&Vh(h)&&console.warn(`The custom element definition for "${h}"
|
|
207
|
+
was finalized before a style module was registered.
|
|
208
|
+
Make sure to add component specific style modules before
|
|
209
|
+
importing the corresponding custom element.`),e=Rh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(h,e,t):C1.push({themeFor:h,styles:e,include:t.include,moduleId:t.moduleId})}function X0(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():C1}function Dh(h,e){return(h||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Bh(h=""){let e=0;return h.startsWith("lumo-")||h.startsWith("material-")?e=1:h.startsWith("vaadin-")&&(e=2),e}function S1(h){const e=[];return h.include&&[].concat(h.include).forEach(t=>{const a=X0().find(i=>i.moduleId===t);a?e.push(...S1(a),...a.styles):console.warn(`Included moduleId ${t} not found in style registry`)},h.styles),e}function Fh(h,e){const t=document.createElement("style");t.innerHTML=h.map(a=>a.cssText).join(`
|
|
210
|
+
`),e.content.appendChild(t)}function Hh(h){const e=`${h}-default-theme`,t=X0().filter(a=>a.moduleId!==e&&Dh(a.themeFor,h)).map(a=>({...a,styles:[...S1(a),...a.styles],includePriority:Bh(a.moduleId)})).sort((a,i)=>i.includePriority-a.includePriority);return t.length>0?t:X0().filter(a=>a.moduleId===e)}const Uh=h=>class extends Lh(h){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;!t||A1(this)||Fh(this.getStylesForThis(),t)}static finalizeStyles(t){const a=this.getStylesForThis();return t?[...super.finalizeStyles(t),...a]:a}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype),a=(t?t.constructor.__themes:[])||[];this.__themes=[...a,...Hh(this.is)];const i=this.__themes.flatMap(s=>s.styles);return i.filter((s,n)=>n===i.lastIndexOf(s))}};E1("vaadin-icon",f`
|
|
191
211
|
:host {
|
|
192
212
|
width: var(--lumo-icon-size-m);
|
|
193
213
|
height: var(--lumo-icon-size-m);
|
|
@@ -208,7 +228,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
208
228
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
209
229
|
Code distributed by Google as part of the polymer project is also
|
|
210
230
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
211
|
-
*/let
|
|
231
|
+
*/let qh=/(url\()([^)]*)(\))/g,jh=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,y0,x;function i0(h,e){if(h&&jh.test(h)||h==="//")return h;if(y0===void 0){y0=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",y0=t.href==="http://a/c%20d"}catch{}}if(e||(e=document.baseURI||window.location.href),y0)try{return new URL(h,e).href}catch{return h}return x||(x=document.implementation.createHTMLDocument("temp"),x.base=x.createElement("base"),x.head.appendChild(x.base),x.anchor=x.createElement("a"),x.body.appendChild(x.anchor)),x.base.href=e,x.anchor.href=h,x.anchor.href||h}function tt(h,e){return h.replace(qh,function(t,a,i,s){return a+"'"+i0(i.replace(/["']/g,""),e)+"'"+s})}function et(h){return h.substring(0,h.lastIndexOf("/")+1)}/**
|
|
212
232
|
@license
|
|
213
233
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
214
234
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -216,7 +236,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
216
236
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
217
237
|
Code distributed by Google as part of the polymer project is also
|
|
218
238
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
219
|
-
*/const
|
|
239
|
+
*/const Wh=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const Yh=Wh&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const h=new CSSStyleSheet;h.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[h],e.shadowRoot.adoptedStyleSheets[0]===h}catch{return!1}})();let Gh=window.Polymer&&window.Polymer.rootPath||et(document.baseURI||window.location.href),w0=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let ht=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Kh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Jh=window.Polymer&&window.Polymer.legacyOptimizations||!1,Zh=window.Polymer&&window.Polymer.legacyWarnings||!1,Qh=window.Polymer&&window.Polymer.syncInitialRender||!1,at=window.Polymer&&window.Polymer.legacyUndefined||!1,Xh=window.Polymer&&window.Polymer.orderedComputed||!1,P1=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ta=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications,window.Polymer&&window.Polymer.legacyNoObservedAttributes;let ea=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
220
240
|
@license
|
|
221
241
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
222
242
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -224,7 +244,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
224
244
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
225
245
|
Code distributed by Google as part of the polymer project is also
|
|
226
246
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
227
|
-
*/let
|
|
247
|
+
*/let ha=0;const m=function(h){let e=h.__mixinApplications;e||(e=new WeakMap,h.__mixinApplications=e);let t=ha++;function a(i){let s=i.__mixinSet;if(s&&s[t])return i;let n=e,o=n.get(i);if(!o){o=h(i),n.set(i,o);let r=Object.create(o.__mixinSet||s||null);r[t]=!0,o.__mixinSet=r}return o}return a};/**
|
|
228
248
|
@license
|
|
229
249
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
230
250
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -232,7 +252,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
232
252
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
233
253
|
Code distributed by Google as part of the polymer project is also
|
|
234
254
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
235
|
-
*/let
|
|
255
|
+
*/let it={},I1={};function T1(h,e){it[h]=I1[h.toLowerCase()]=e}function O1(h){return it[h]||I1[h.toLowerCase()]}function aa(h){h.querySelector("style")&&console.warn("dom-module %s has style outside template",h.id)}class s0 extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let a=O1(e);return a&&t?a.querySelector(t):a}return null}attributeChangedCallback(e,t,a,i){t!==a&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=i0(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=et(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(ht&&O1(e)!==void 0)throw T1(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,T1(e,this),aa(this)}}}s0.prototype.modules=it,customElements.define("dom-module",s0);/**
|
|
236
256
|
@license
|
|
237
257
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
238
258
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -240,7 +260,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
240
260
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
241
261
|
Code distributed by Google as part of the polymer project is also
|
|
242
262
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
243
|
-
*/const
|
|
263
|
+
*/const ia="link[rel=import][type~=css]",sa="include",k1="shady-unscoped";function N1(h){return s0.import(h)}function $1(h){let e=h.body?h.body:h;const t=tt(e.textContent,h.baseURI),a=document.createElement("style");return a.textContent=t,a}function na(h){const e=h.trim().split(/\s+/),t=[];for(let a=0;a<e.length;a++)t.push(...oa(e[a]));return t}function oa(h){const e=N1(h);if(!e)return console.warn("Could not find style data in module named",h),[];if(e._styles===void 0){const t=[];t.push(...V1(e));const a=e.querySelector("template");a&&t.push(...L1(a,e.assetpath)),e._styles=t}return e._styles}function L1(h,e){if(!h._styles){const t=[],a=h.content.querySelectorAll("style");for(let i=0;i<a.length;i++){let s=a[i],n=s.getAttribute(sa);n&&t.push(...na(n).filter(function(o,r,l){return l.indexOf(o)===r})),e&&(s.textContent=tt(s.textContent,e)),t.push(s)}h._styles=t}return h._styles}function ra(h){let e=N1(h);return e?V1(e):[]}function V1(h){const e=[],t=h.querySelectorAll(ia);for(let a=0;a<t.length;a++){let i=t[a];if(i.import){const s=i.import,n=i.hasAttribute(k1);if(n&&!s._unscopedStyle){const o=$1(s);o.setAttribute(k1,""),s._unscopedStyle=o}else s._style||(s._style=$1(s));e.push(n?s._unscopedStyle:s._style)}}return e}/**
|
|
244
264
|
@license
|
|
245
265
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
246
266
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -248,7 +268,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
248
268
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
249
269
|
Code distributed by Google as part of the polymer project is also
|
|
250
270
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
251
|
-
*/const
|
|
271
|
+
*/const $=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?h=>ShadyDOM.patch(h):h=>h;/**
|
|
252
272
|
@license
|
|
253
273
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
254
274
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -256,7 +276,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
256
276
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
257
277
|
Code distributed by Google as part of the polymer project is also
|
|
258
278
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
259
|
-
*/function
|
|
279
|
+
*/function st(h){return h.indexOf(".")>=0}function L(h){let e=h.indexOf(".");return e===-1?h:h.slice(0,e)}function la(h,e){return h.indexOf(e+".")===0}function x0(h,e){return e.indexOf(h+".")===0}function C0(h,e,t){return e+t.slice(h.length)}function n0(h){if(Array.isArray(h)){let e=[];for(let t=0;t<h.length;t++){let a=h[t].toString().split(".");for(let i=0;i<a.length;i++)e.push(a[i])}return e.join(".")}else return h}function R1(h){return Array.isArray(h)?n0(h).split("."):h.toString().split(".")}function y(h,e,t){let a=h,i=R1(e);for(let s=0;s<i.length;s++){if(!a)return;let n=i[s];a=a[n]}return t&&(t.path=i.join(".")),a}function D1(h,e,t){let a=h,i=R1(e),s=i[i.length-1];if(i.length>1){for(let n=0;n<i.length-1;n++){let o=i[n];if(a=a[o],!a)return}a[s]=t}else a[e]=t;return i.join(".")}/**
|
|
260
280
|
@license
|
|
261
281
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
262
282
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -264,7 +284,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
264
284
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
265
285
|
Code distributed by Google as part of the polymer project is also
|
|
266
286
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
267
|
-
*/const
|
|
287
|
+
*/const A0={},da=/-[a-z]/g,ca=/([A-Z])/g;function B1(h){return A0[h]||(A0[h]=h.indexOf("-")<0?h:h.replace(da,e=>e[1].toUpperCase()))}function E0(h){return A0[h]||(A0[h]=h.replace(ca,"-$1").toLowerCase())}/**
|
|
268
288
|
@license
|
|
269
289
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
270
290
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -272,7 +292,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
272
292
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
273
293
|
Code distributed by Google as part of the polymer project is also
|
|
274
294
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
275
|
-
*/let va=0,
|
|
295
|
+
*/let va=0,F1=0,Y=[],pa=0,nt=!1,H1=document.createTextNode("");new window.MutationObserver(ua).observe(H1,{characterData:!0});function ua(){nt=!1;const h=Y.length;for(let e=0;e<h;e++){let t=Y[e];if(t)try{t()}catch(a){setTimeout(()=>{throw a})}}Y.splice(0,h),F1+=h}const fa={run(h){return nt||(nt=!0,H1.textContent=pa++),Y.push(h),va++},cancel(h){const e=h-F1;if(e>=0){if(!Y[e])throw new Error("invalid async handle: "+h);Y[e]=null}}};/**
|
|
276
296
|
@license
|
|
277
297
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
278
298
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -280,7 +300,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
280
300
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
281
301
|
Code distributed by Google as part of the polymer project is also
|
|
282
302
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
283
|
-
*/const
|
|
303
|
+
*/const ga=fa,U1=m(h=>{class e extends h{static createProperties(a){const i=this.prototype;for(let s in a)s in i||i._createPropertyAccessor(s)}static attributeNameForProperty(a){return a.toLowerCase()}static typeForProperty(a){}_createPropertyAccessor(a,i){this._addPropertyToAttributeMap(a),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[a]||(this.__dataHasAccessor[a]=!0,this._definePropertyAccessor(a,i))}_addPropertyToAttributeMap(a){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[a];return i||(i=this.constructor.attributeNameForProperty(a),this.__dataAttributes[i]=a),i}_definePropertyAccessor(a,i){Object.defineProperty(this,a,{get(){return this.__data[a]},set:i?function(){}:function(s){this._setPendingProperty(a,s,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let a in this.__dataHasAccessor)this.hasOwnProperty(a)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[a]=this[a],delete this[a])}_initializeInstanceProperties(a){Object.assign(this,a)}_setProperty(a,i){this._setPendingProperty(a,i)&&this._invalidateProperties()}_getProperty(a){return this.__data[a]}_setPendingProperty(a,i,s){let n=this.__data[a],o=this._shouldPropertyChange(a,i,n);return o&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(a in this.__dataOld)&&(this.__dataOld[a]=n),this.__data[a]=i,this.__dataPending[a]=i),o}_isPropertyPending(a){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(a))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ga.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const a=this.__data,i=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(a,i,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(a,i,s)),this.__dataCounter--}_shouldPropertiesChange(a,i,s){return Boolean(i)}_propertiesChanged(a,i,s){}_shouldPropertyChange(a,i,s){return s!==i&&(s===s||i===i)}attributeChangedCallback(a,i,s,n){i!==s&&this._attributeToProperty(a,s),super.attributeChangedCallback&&super.attributeChangedCallback(a,i,s,n)}_attributeToProperty(a,i,s){if(!this.__serializing){const n=this.__dataAttributes,o=n&&n[a]||a;this[o]=this._deserializeValue(i,s||this.constructor.typeForProperty(o))}}_propertyToAttribute(a,i,s){this.__serializing=!0,s=arguments.length<3?this[a]:s,this._valueToNodeAttribute(this,s,i||this.constructor.attributeNameForProperty(a)),this.__serializing=!1}_valueToNodeAttribute(a,i,s){const n=this._serializeValue(i);(s==="class"||s==="name"||s==="slot")&&(a=$(a)),n===void 0?a.removeAttribute(s):a.setAttribute(s,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(a){switch(typeof a){case"boolean":return a?"":void 0;default:return a?.toString()}}_deserializeValue(a,i){switch(i){case Boolean:return a!==null;case Number:return Number(a);default:return a}}}return e});/**
|
|
284
304
|
@license
|
|
285
305
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
286
306
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -288,7 +308,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
288
308
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
289
309
|
Code distributed by Google as part of the polymer project is also
|
|
290
310
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
291
|
-
*/const
|
|
311
|
+
*/const q1={};let S0=HTMLElement.prototype;for(;S0;){let h=Object.getOwnPropertyNames(S0);for(let e=0;e<h.length;e++)q1[h[e]]=!0;S0=Object.getPrototypeOf(S0)}const _a=(()=>window.trustedTypes?h=>trustedTypes.isHTML(h)||trustedTypes.isScript(h)||trustedTypes.isScriptURL(h):()=>!1)();function ma(h,e){if(!q1[e]){let t=h[e];t!==void 0&&(h.__data?h._setPendingProperty(e,t):(h.__dataProto?h.hasOwnProperty(JSCompiler_renameProperty("__dataProto",h))||(h.__dataProto=Object.create(h.__dataProto)):h.__dataProto={},h.__dataProto[e]=t))}}const Ma=m(h=>{const e=U1(h);class t extends e{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let s=0;s<i.length;s++)this.prototype._createPropertyAccessor(B1(i[s]))}static attributeNameForProperty(i){return E0(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let s in i)this._setProperty(s,i[s])}_ensureAttribute(i,s){const n=this;n.hasAttribute(i)||this._valueToNodeAttribute(n,s,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(_a(i))return i;try{return JSON.stringify(i)}catch{return""}}default:return super._serializeValue(i)}}_deserializeValue(i,s){let n;switch(s){case Object:try{n=JSON.parse(i)}catch{n=i}break;case Array:try{n=JSON.parse(i)}catch{n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:n=isNaN(i)?String(i):Number(i),n=new Date(n);break;default:n=super._deserializeValue(i,s);break}return n}_definePropertyAccessor(i,s){ma(this,i),super._definePropertyAccessor(i,s)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return Boolean(this.__dataPending&&i in this.__dataPending)}}return t});/**
|
|
292
312
|
@license
|
|
293
313
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
294
314
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -296,7 +316,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
296
316
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
297
317
|
Code distributed by Google as part of the polymer project is also
|
|
298
318
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
299
|
-
*/const
|
|
319
|
+
*/const za={"dom-if":!0,"dom-repeat":!0};let j1=!1,W1=!1;function ba(){if(!j1){j1=!0;const h=document.createElement("textarea");h.placeholder="a",W1=h.placeholder===h.textContent}return W1}function ya(h){ba()&&h.localName==="textarea"&&h.placeholder&&h.placeholder===h.textContent&&(h.textContent=null)}const wa=(()=>{const h=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,a)=>{const i=t.getAttribute(a);if(h&&a.startsWith("on-")){e.setAttribute(a,h.createScript(i,a));return}e.setAttribute(a,i)}})();function xa(h){let e=h.getAttribute("is");if(e&&za[e]){let t=h;for(t.removeAttribute("is"),h=t.ownerDocument.createElement(e),t.parentNode.replaceChild(h,t),h.appendChild(t);t.attributes.length;){const{name:a}=t.attributes[0];wa(h,t,a),t.removeAttribute(a)}}return h}function Y1(h,e){let t=e.parentInfo&&Y1(h,e.parentInfo);if(t){for(let a=t.firstChild,i=0;a;a=a.nextSibling)if(e.parentIndex===i++)return a}else return h}function Ca(h,e,t,a){a.id&&(e[a.id]=t)}function Aa(h,e,t){if(t.events&&t.events.length)for(let a=0,i=t.events,s;a<i.length&&(s=i[a]);a++)h._addMethodEventListenerToNode(e,s.name,s.value,h)}function Ea(h,e,t,a){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=a)}function Sa(h,e,t){return h=h._methodHost||h,function(i){h[t]?h[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const Pa=m(h=>{class e extends h{static _parseTemplate(a,i){if(!a._templateInfo){let s=a._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=Boolean(i),s.stripWhiteSpace=i&&i.stripWhiteSpace||a.hasAttribute&&a.hasAttribute("strip-whitespace"),this._parseTemplateContent(a,s,{parent:null})}return a._templateInfo}static _parseTemplateContent(a,i,s){return this._parseTemplateNode(a.content,i,s)}static _parseTemplateNode(a,i,s){let n=!1,o=a;return o.localName=="template"&&!o.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(o,i,s)||n:o.localName==="slot"&&(i.hasInsertionPoint=!0),ya(o),o.firstChild&&this._parseTemplateChildNodes(o,i,s),o.hasAttributes&&o.hasAttributes()&&(n=this._parseTemplateNodeAttributes(o,i,s)||n),n||s.noted}static _parseTemplateChildNodes(a,i,s){if(!(a.localName==="script"||a.localName==="style"))for(let n=a.firstChild,o=0,r;n;n=r){if(n.localName=="template"&&(n=xa(n)),r=n.nextSibling,n.nodeType===Node.TEXT_NODE){let d=r;for(;d&&d.nodeType===Node.TEXT_NODE;)n.textContent+=d.textContent,r=d.nextSibling,a.removeChild(d),d=r;if(i.stripWhiteSpace&&!n.textContent.trim()){a.removeChild(n);continue}}let l={parentIndex:o,parentInfo:s};this._parseTemplateNode(n,i,l)&&(l.infoIndex=i.nodeInfoList.push(l)-1),n.parentNode&&o++}}static _parseTemplateNestedTemplate(a,i,s){let n=a,o=this._parseTemplate(n,i);return(o.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),s.templateInfo=o,!0}static _parseTemplateNodeAttributes(a,i,s){let n=!1,o=Array.from(a.attributes);for(let r=o.length-1,l;l=o[r];r--)n=this._parseTemplateNodeAttribute(a,i,s,l.name,l.value)||n;return n}static _parseTemplateNodeAttribute(a,i,s,n,o){return n.slice(0,3)==="on-"?(a.removeAttribute(n),s.events=s.events||[],s.events.push({name:n.slice(3),value:o}),!0):n==="id"?(s.id=o,!0):!1}static _contentForTemplate(a){let i=a._templateInfo;return i&&i.content||a.content}_stampTemplate(a,i){a&&!a.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(a),i=i||this.constructor._parseTemplate(a);let s=i.nodeInfoList,n=i.content||a.content,o=document.importNode(n,!0);o.__noInsertionPoint=!i.hasInsertionPoint;let r=o.nodeList=new Array(s.length);o.$={};for(let l=0,d=s.length,c;l<d&&(c=s[l]);l++){let v=r[l]=Y1(o,c);Ca(this,o.$,v,c),Ea(this,v,c,i),Aa(this,v,c)}return o=o,o}_addMethodEventListenerToNode(a,i,s,n){n=n||a;let o=Sa(n,i,s);return this._addEventListenerToNode(a,i,o),o}_addEventListenerToNode(a,i,s){a.addEventListener(i,s)}_removeEventListenerFromNode(a,i,s){a.removeEventListener(i,s)}}return e});/**
|
|
300
320
|
* @fileoverview
|
|
301
321
|
* @suppress {checkPrototypalTypes}
|
|
302
322
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -306,7 +326,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
306
326
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
307
327
|
* Google as part of the polymer project is also subject to an additional IP
|
|
308
328
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
309
|
-
*/let n0=0;const l0=[],g={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Q1="__computeInfo",Ta=/[A-Z]/;function dt(h,e,t){let a=h[e];if(!a)a=h[e]={};else if(!h.hasOwnProperty(e)&&(a=h[e]=Object.create(h[e]),t))for(let i in a){let s=a[i],o=a[i]=Array(s.length);for(let n=0;n<s.length;n++)o[n]=s[n]}return a}function r0(h,e,t,a,i,s){if(e){let o=!1;const n=n0++;for(let l in t){let r=i?$(l):l,d=e[r];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==n)&&(!i||ct(l,v.trigger))&&(v.info&&(v.info.lastRun=n),v.fn(h,l,t,a,v.info,i,s),o=!0)}return o}return!1}function ka(h,e,t,a,i,s,o,n){let l=!1,r=o?$(a):a,d=e[r];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==t)&&(!o||ct(a,v.trigger))&&(v.info&&(v.info.lastRun=t),v.fn(h,a,i,s,v.info,o,n),l=!0);return l}function ct(h,e){if(e){let t=e.name;return t==h||!!(e.structured&&da(t,h))||!!(e.wildcard&&A0(t,h))}else return!0}function X1(h,e,t,a,i){let s=typeof i.method=="string"?h[i.method]:i.method,o=i.property;s?s.call(h,h.__data[o],a[o]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Oa(h,e,t,a,i){let s=h[g.NOTIFY],o,n=n0++;for(let r in e)e[r]&&(s&&ka(h,s,n,r,t,a,i)||i&&Na(h,r,t))&&(o=!0);let l;o&&(l=h.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Na(h,e,t){let a=$(e);if(a!==e){let i=S0(a)+"-changed";return te(h,i,t[e],e),!0}return!1}function te(h,e,t,a){let i={value:t,queueProperty:!0};a&&(i.path=a),L(h).dispatchEvent(new CustomEvent(e,{detail:i}))}function La(h,e,t,a,i,s){let n=(s?$(e):e)!=e?e:null,l=n?y(h,n):h.__data[e];n&&l===void 0&&(l=t[e]),te(h,i.eventName,l,n)}function $a(h,e,t,a,i){let s,o=h.detail,n=o&&o.path;n?(a=C0(t,a,n),s=o&&o.value):s=h.currentTarget[t],s=i?!s:s,(!e[g.READ_ONLY]||!e[g.READ_ONLY][a])&&e._setPendingPropertyOrPath(a,s,!0,Boolean(n))&&(!o||!o.queueProperty)&&e._invalidateProperties()}function Ra(h,e,t,a,i){let s=h.__data[e];w0&&(s=w0(s,i.attrName,"attribute",h)),h._propertyToAttribute(e,i.attrName,s)}function Da(h,e,t,a){let i=h[g.COMPUTE];if(i)if(ta){n0++;const s=Ba(h),o=[];for(let l in e)ee(l,i,o,s,a);let n;for(;n=o.shift();)he(h,"",e,t,n)&&ee(n.methodInfo,i,o,s,a);Object.assign(t,h.__dataOld),Object.assign(e,h.__dataPending),h.__dataPending=null}else{let s=e;for(;r0(h,i,s,t,a);)Object.assign(t,h.__dataOld),Object.assign(e,h.__dataPending),s=h.__dataPending,h.__dataPending=null}}const Va=(h,e,t)=>{let a=0,i=e.length-1,s=-1;for(;a<=i;){const o=a+i>>1,n=t.get(e[o].methodInfo)-t.get(h.methodInfo);if(n<0)a=o+1;else if(n>0)i=o-1;else{s=o;break}}s<0&&(s=i+1),e.splice(s,0,h)},ee=(h,e,t,a,i)=>{const s=i?$(h):h,o=e[s];if(o)for(let n=0;n<o.length;n++){const l=o[n];l.info.lastRun!==n0&&(!i||ct(h,l.trigger))&&(l.info.lastRun=n0,Va(l.info,t,a))}};function Ba(h){let e=h.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=h[g.COMPUTE];let{counts:a,ready:i,total:s}=Fa(h),o;for(;o=i.shift();){e.set(o,e.size);const n=t[o];n&&n.forEach(l=>{const r=l.info.methodInfo;--s,--a[r]===0&&i.push(r)})}s!==0&&console.warn(`Computed graph for ${h.localName} incomplete; circular?`),h.constructor.__orderedComputedDeps=e}return e}function Fa(h){const e=h[Q1],t={},a=h[g.COMPUTE],i=[];let s=0;for(let o in e){const n=e[o];s+=t[o]=n.args.filter(l=>!l.literal).length+(n.dynamicFn?1:0)}for(let o in a)e[o]||i.push(o);return{counts:t,ready:i,total:s}}function he(h,e,t,a,i){let s=vt(h,e,t,a,i);if(s===l0)return!1;let o=i.methodInfo;return h.__dataHasAccessor&&h.__dataHasAccessor[o]?h._setPendingProperty(o,s,!0):(h[o]=s,!1)}function Ha(h,e,t){let a=h.__dataLinkedPaths;if(a){let i;for(let s in a){let o=a[s];A0(s,e)?(i=C0(s,o,e),h._setPendingPropertyOrPath(i,t,!0,!0)):A0(o,e)&&(i=C0(o,s,e),h._setPendingPropertyOrPath(i,t,!0,!0))}}}function pt(h,e,t,a,i,s,o){t.bindings=t.bindings||[];let n={kind:a,target:i,parts:s,literal:o,isCompound:s.length!==1};if(t.bindings.push(n),Ga(n)){let{event:r,negate:d}=n.parts[0];n.listenerEvent=r||S0(i)+"-changed",n.listenerNegate=d}let l=e.nodeInfoList.length;for(let r=0;r<n.parts.length;r++){let d=n.parts[r];d.compoundIndex=r,Ua(h,e,n,d,l)}}function Ua(h,e,t,a,i){if(!a.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let s=a.dependencies,o={index:i,binding:t,part:a,evaluator:h};for(let n=0;n<s.length;n++){let l=s[n];typeof l=="string"&&(l=le(l),l.wildcard=!0),h._addTemplatePropertyEffect(e,l.rootProperty,{fn:qa,info:o,trigger:l})}}}function qa(h,e,t,a,i,s,o){let n=o[i.index],l=i.binding,r=i.part;if(s&&r.source&&e.length>r.source.length&&l.kind=="property"&&!l.isCompound&&n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[l.target]){let d=t[e];e=C0(r.source,l.target,e),n._setPendingPropertyOrPath(e,d,!1,!0)&&h._enqueueClient(n)}else{let d=i.evaluator._evaluateBinding(h,r,e,t,a,s);d!==l0&&ja(h,n,l,r,d)}}function ja(h,e,t,a,i){if(i=Wa(e,i,t,a),w0&&(i=w0(i,t.target,t.kind,e)),t.kind=="attribute")h._valueToNodeAttribute(e,i,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[g.READ_ONLY]||!e[g.READ_ONLY][s])&&e._setPendingProperty(s,i)&&h._enqueueClient(e):h._setUnmanagedPropertyToNode(e,s,i)}}function Wa(h,e,t,a){if(t.isCompound){let i=h.__dataCompoundStorage[t.target];i[a.compoundIndex]=e,e=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(h.localName==="input"||h.localName==="textarea"))&&(e=e??""),e}function Ga(h){return Boolean(h.target)&&h.kind!="attribute"&&h.kind!="text"&&!h.isCompound&&h.parts[0].mode==="{"}function Ya(h,e){let{nodeList:t,nodeInfoList:a}=e;if(a.length)for(let i=0;i<a.length;i++){let s=a[i],o=t[i],n=s.bindings;if(n)for(let l=0;l<n.length;l++){let r=n[l];Ka(o,r),Za(o,h,r)}o.__dataHost=h}}function Ka(h,e){if(e.isCompound){let t=h.__dataCompoundStorage||(h.__dataCompoundStorage={}),a=e.parts,i=new Array(a.length);for(let o=0;o<a.length;o++)i[o]=a[o].literal;let s=e.target;t[s]=i,e.literal&&e.kind=="property"&&(s==="className"&&(h=L(h)),h[s]=e.literal)}}function Za(h,e,t){if(t.listenerEvent){let a=t.parts[0];h.addEventListener(t.listenerEvent,function(i){$a(i,e,t.target,a.source,a.negate)})}}function ae(h,e,t,a,i,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let o={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:s};for(let n=0,l;n<e.args.length&&(l=e.args[n]);n++)l.literal||h._addPropertyEffect(l.rootProperty,t,{fn:a,info:o,trigger:l});return s&&h._addPropertyEffect(e.methodName,t,{fn:a,info:o}),o}function vt(h,e,t,a,i){let s=h._methodHost||h,o=s[i.methodName];if(o){let n=h._marshalArgs(i.args,e,t);return n===l0?l0:o.apply(s,n)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Ja=[],ie="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Qa="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Xa="(?:'(?:[^'\\\\]|\\\\.)*')",ti='(?:"(?:[^"\\\\]|\\\\.)*")',ei="(?:"+Xa+"|"+ti+")",se="(?:("+ie+"|"+Qa+"|"+ei+")\\s*)",hi="(?:"+se+"(?:,\\s*"+se+")*)",ai="(?:\\(\\s*(?:"+hi+"?)\\)\\s*)",ii="("+ie+"\\s*"+ai+"?)",si="(\\[\\[|{{)\\s*",oi="(?:]]|}})",ni=si+"(?:(!)\\s*)?"+ii+oi,oe=new RegExp(ni,"g");function ne(h){let e="";for(let t=0;t<h.length;t++)e+=h[t].literal||"";return e}function ut(h){let e=h.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let a={methodName:e[1],static:!0,args:Ja};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return li(i,a)}else return a}return null}function li(h,e){return e.args=h.map(function(t){let a=le(t);return a.literal||(e.static=!1),a},this),e}function le(h){let e=h.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},a=e[0];switch(a==="-"&&(a=e[1]),a>="0"&&a<="9"&&(a="#"),a){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=$(e),t.structured=lt(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function re(h,e,t){let a=y(h,t);return a===void 0&&(a=e[t]),a}function de(h,e,t,a){const i={indexSplices:a};ot&&!h._overrideLegacyUndefined&&(e.splices=i),h.notifyPath(t+".splices",i),h.notifyPath(t+".length",e.length),ot&&!h._overrideLegacyUndefined&&(i.indexSplices=[])}function d0(h,e,t,a,i,s){de(h,e,t,[{index:a,addedCount:i,removed:s,object:e,type:"splice"}])}function ri(h){return h[0].toUpperCase()+h.substring(1)}const di=_(h=>{const e=Ia(Ma(h));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return g}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(c0.length){let i=c0[c0.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let s=this[g.READ_ONLY];for(let o in i)(!s||!s[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=i[o])}_addPropertyEffect(i,s,o){this._createPropertyAccessor(i,s==g.READ_ONLY);let n=dt(this,s,!0)[i];n||(n=this[s][i]=[]),n.push(o)}_removePropertyEffect(i,s,o){let n=dt(this,s,!0)[i],l=n.indexOf(o);l>=0&&n.splice(l,1)}_hasPropertyEffect(i,s){let o=this[s];return Boolean(o&&o[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,g.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,g.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,g.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,g.COMPUTE)}_setPendingPropertyOrPath(i,s,o,n){if(n||$(Array.isArray(i)?i[0]:i)!==i){if(!n){let l=y(this,i);if(i=U1(this,i,s),!i||!super._shouldPropertyChange(i,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,s,o))return Ha(this,i,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,s,o);this[i]=s}return!1}_setUnmanagedPropertyToNode(i,s,o){(o!==i[s]||typeof o=="object")&&(s==="className"&&(i=L(i)),i[s]=o)}_setPendingProperty(i,s,o){let n=this.__dataHasPaths&<(i),l=n?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,s,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),n?this.__dataTemp[i]=s:this.__data[i]=s,this.__dataPending[i]=s,(n||this[g.NOTIFY]&&this[g.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=o),!0):!1}_setProperty(i,s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let s=0;s<i.length;s++){let o=i[s];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,s){for(let o in i)(s||!this[g.READ_ONLY]||!this[g.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,i[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,s,o){let n=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Da(this,s,o,n),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,o,n),this._flushClients(),r0(this,this[g.REFLECT],s,o,n),r0(this,this[g.OBSERVE],s,o,n),l&&Oa(this,l,s,o,n),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,s,o){this[g.PROPAGATE]&&r0(this,this[g.PROPAGATE],i,s,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,s,o)}_runEffectsForTemplate(i,s,o,n){const l=(r,d)=>{r0(this,i.propertyEffects,r,o,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,r,o,d)};i.runEffects?i.runEffects(l,s,n):l(s,n)}linkPaths(i,s){i=o0(i),s=o0(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=s}unlinkPaths(i){i=o0(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,s){let o={path:""},n=y(this,i,o);de(this,n,o.path,s)}get(i,s){return y(s||this,i)}set(i,s,o){o?U1(o,i,s):(!this[g.READ_ONLY]||!this[g.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,s,!0)&&this._invalidateProperties()}push(i,...s){let o={path:""},n=y(this,i,o),l=n.length,r=n.push(...s);return s.length&&d0(this,n,o.path,l,s.length,[]),r}pop(i){let s={path:""},o=y(this,i,s),n=Boolean(o.length),l=o.pop();return n&&d0(this,o,s.path,o.length,0,[l]),l}splice(i,s,o,...n){let l={path:""},r=y(this,i,l);s<0?s=r.length-Math.floor(-s):s&&(s=Math.floor(s));let d;return arguments.length===2?d=r.splice(s):d=r.splice(s,o,...n),(n.length||d.length)&&d0(this,r,l.path,s,n.length,d),d}shift(i){let s={path:""},o=y(this,i,s),n=Boolean(o.length),l=o.shift();return n&&d0(this,o,s.path,0,0,[l]),l}unshift(i,...s){let o={path:""},n=y(this,i,o),l=n.unshift(...s);return s.length&&d0(this,n,o.path,0,s.length,[]),l}notifyPath(i,s){let o;if(arguments.length==1){let n={path:""};s=y(this,i,n),o=n.path}else Array.isArray(i)?o=o0(i):o=i;this._setPendingPropertyOrPath(o,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,s){this._addPropertyEffect(i,g.READ_ONLY),s&&(this["_set"+ri(i)]=function(o){this._setProperty(i,o)})}_createPropertyObserver(i,s,o){let n={property:i,method:s,dynamicFn:Boolean(o)};this._addPropertyEffect(i,g.OBSERVE,{fn:X1,info:n,trigger:{name:i}}),o&&this._addPropertyEffect(s,g.OBSERVE,{fn:X1,info:n,trigger:{name:s}})}_createMethodObserver(i,s){let o=ut(i);if(!o)throw new Error("Malformed observer expression '"+i+"'");ae(this,o,g.OBSERVE,vt,null,s)}_createNotifyingProperty(i){this._addPropertyEffect(i,g.NOTIFY,{fn:La,info:{eventName:S0(i)+"-changed",property:i}})}_createReflectedProperty(i){let s=this.constructor.attributeNameForProperty(i);s[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,g.REFLECT,{fn:Ra,info:{attrName:s}})}_createComputedProperty(i,s,o){let n=ut(s);if(!n)throw new Error("Malformed computed expression '"+s+"'");const l=ae(this,n,g.COMPUTE,he,i,o);dt(this,Q1)[i]=l}_marshalArgs(i,s,o){const n=this.__data,l=[];for(let r=0,d=i.length;r<d;r++){let{name:c,structured:p,wildcard:v,value:f,literal:z}=i[r];if(!z)if(v){const x=A0(c,s),M=re(n,o,x?s:c);f={path:x?s:c,value:M,base:x?y(n,c):M}}else f=p?re(n,o,c):n[c];if(ot&&!this._overrideLegacyUndefined&&f===void 0&&i.length>1)return l0;l[r]=f}return l}static addPropertyEffect(i,s,o){this.prototype._addPropertyEffect(i,s,o)}static createPropertyObserver(i,s,o){this.prototype._createPropertyObserver(i,s,o)}static createMethodObserver(i,s){this.prototype._createMethodObserver(i,s)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,s){this.prototype._createReadOnlyProperty(i,s)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,s,o){this.prototype._createComputedProperty(i,s,o)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,s){let o=this.constructor._parseTemplate(i),n=this.__preBoundTemplateInfo==o;if(!n)for(let l in o.propertyEffects)this._createPropertyAccessor(l);if(s)if(o=Object.create(o),o.wasPreBound=n,!this.__templateInfo)this.__templateInfo=o;else{const l=i._parentTemplateInfo||this.__templateInfo,r=l.lastChild;o.parent=l,l.lastChild=o,o.previousSibling=r,r?r.nextSibling=o:l.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(i,s,o){let n=i.hostProps=i.hostProps||{};n[s]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[s]=l[s]||[]).push(o)}_stampTemplate(i,s){s=s||this._bindTemplate(i,!0),c0.push(this);let o=super._stampTemplate(i,s);if(c0.pop(),s.nodeList=o.nodeList,!s.wasPreBound){let n=s.childNodes=[];for(let l=o.firstChild;l;l=l.nextSibling)n.push(l)}return o.templateInfo=s,Ya(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(i){const s=i.templateInfo,{previousSibling:o,nextSibling:n,parent:l}=s;o?o.nextSibling=n:l&&(l.firstChild=n),n?n.previousSibling=o:l&&(l.lastChild=o),s.nextSibling=s.previousSibling=null;let r=s.childNodes;for(let d=0;d<r.length;d++){let c=r[d];L(L(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,s,o){let n=e._parseTemplateNode.call(this,i,s,o);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,s);l&&(i.textContent=ne(l)||" ",pt(this,s,o,"text","textContent",l),n=!0)}return n}static _parseTemplateNodeAttribute(i,s,o,n,l){let r=this._parseBindings(l,s);if(r){let d=n,c="property";Ta.test(n)?c="attribute":n[n.length-1]=="$"&&(n=n.slice(0,-1),c="attribute");let p=ne(r);return p&&c=="attribute"&&(n=="class"&&i.hasAttribute("class")&&(p+=" "+i.getAttribute(n)),i.setAttribute(n,p)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(n,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(n=q1(n)),pt(this,s,o,c,n,r,p),!0}else return e._parseTemplateNodeAttribute.call(this,i,s,o,n,l)}static _parseTemplateNestedTemplate(i,s,o){let n=e._parseTemplateNestedTemplate.call(this,i,s,o);const l=i.parentNode,r=o.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";O1&&(d||c)&&(l.removeChild(i),o=o.parentInfo,o.templateInfo=r,o.noted=!0,n=!1);let p=r.hostProps;if(ea&&d)p&&(s.hostProps=Object.assign(s.hostProps||{},p),O1||(o.parentInfo.noted=!0));else{let v="{";for(let f in p){let z=[{mode:v,source:f,dependencies:[f],hostProp:!0}];pt(this,s,o,"property","_host_"+f,z)}}return n}static _parseBindings(i,s){let o=[],n=0,l;for(;(l=oe.exec(i))!==null;){l.index>n&&o.push({literal:i.slice(n,l.index)});let r=l[1][0],d=Boolean(l[2]),c=l[3].trim(),p=!1,v="",f=-1;r=="{"&&(f=c.indexOf("::"))>0&&(v=c.substring(f+2),c=c.substring(0,f),p=!0);let z=ut(c),x=[];if(z){let{args:M,methodName:b}=z;for(let l1=0;l1<M.length;l1++){let gh=M[l1];gh.literal||x.push(gh)}let Q=s.dynamicFns;(Q&&Q[b]||z.static)&&(x.push(b),z.dynamicFn=!0)}else x.push(c);o.push({source:c,mode:r,negate:d,customEvent:p,signature:z,dependencies:x,event:v}),n=oe.lastIndex}if(n&&n<i.length){let r=i.substring(n);r&&o.push({literal:r})}return o.length?o:null}static _evaluateBinding(i,s,o,n,l,r){let d;return s.signature?d=vt(i,o,n,l,s.signature):o!=s.source?d=y(i,s.source):r&<(o)?d=y(i,o):d=i.__data[o],s.negate&&(d=!d),d}}return t}),c0=[];/**
|
|
329
|
+
*/let o0=0;const r0=[],g={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},G1="__computeInfo",Ia=/[A-Z]/;function ot(h,e,t){let a=h[e];if(!a)a=h[e]={};else if(!h.hasOwnProperty(e)&&(a=h[e]=Object.create(h[e]),t))for(let i in a){let s=a[i],n=a[i]=Array(s.length);for(let o=0;o<s.length;o++)n[o]=s[o]}return a}function l0(h,e,t,a,i,s){if(e){let n=!1;const o=o0++;for(let r in t){let l=i?L(r):r,d=e[l];if(d)for(let c=0,v=d.length,p;c<v&&(p=d[c]);c++)(!p.info||p.info.lastRun!==o)&&(!i||rt(r,p.trigger))&&(p.info&&(p.info.lastRun=o),p.fn(h,r,t,a,p.info,i,s),n=!0)}return n}return!1}function Ta(h,e,t,a,i,s,n,o){let r=!1,l=n?L(a):a,d=e[l];if(d)for(let c=0,v=d.length,p;c<v&&(p=d[c]);c++)(!p.info||p.info.lastRun!==t)&&(!n||rt(a,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(h,a,i,s,p.info,n,o),r=!0);return r}function rt(h,e){if(e){let t=e.name;return t==h||!!(e.structured&&la(t,h))||!!(e.wildcard&&x0(t,h))}else return!0}function K1(h,e,t,a,i){let s=typeof i.method=="string"?h[i.method]:i.method,n=i.property;s?s.call(h,h.__data[n],a[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Oa(h,e,t,a,i){let s=h[g.NOTIFY],n,o=o0++;for(let l in e)e[l]&&(s&&Ta(h,s,o,l,t,a,i)||i&&ka(h,l,t))&&(n=!0);let r;n&&(r=h.__dataHost)&&r._invalidateProperties&&r._invalidateProperties()}function ka(h,e,t){let a=L(e);if(a!==e){let i=E0(a)+"-changed";return J1(h,i,t[e],e),!0}return!1}function J1(h,e,t,a){let i={value:t,queueProperty:!0};a&&(i.path=a),$(h).dispatchEvent(new CustomEvent(e,{detail:i}))}function Na(h,e,t,a,i,s){let o=(s?L(e):e)!=e?e:null,r=o?y(h,o):h.__data[e];o&&r===void 0&&(r=t[e]),J1(h,i.eventName,r,o)}function $a(h,e,t,a,i){let s,n=h.detail,o=n&&n.path;o?(a=C0(t,a,o),s=n&&n.value):s=h.currentTarget[t],s=i?!s:s,(!e[g.READ_ONLY]||!e[g.READ_ONLY][a])&&e._setPendingPropertyOrPath(a,s,!0,Boolean(o))&&(!n||!n.queueProperty)&&e._invalidateProperties()}function La(h,e,t,a,i){let s=h.__data[e];w0&&(s=w0(s,i.attrName,"attribute",h)),h._propertyToAttribute(e,i.attrName,s)}function Va(h,e,t,a){let i=h[g.COMPUTE];if(i)if(Xh){o0++;const s=Da(h),n=[];for(let r in e)Z1(r,i,n,s,a);let o;for(;o=n.shift();)Q1(h,"",e,t,o)&&Z1(o.methodInfo,i,n,s,a);Object.assign(t,h.__dataOld),Object.assign(e,h.__dataPending),h.__dataPending=null}else{let s=e;for(;l0(h,i,s,t,a);)Object.assign(t,h.__dataOld),Object.assign(e,h.__dataPending),s=h.__dataPending,h.__dataPending=null}}const Ra=(h,e,t)=>{let a=0,i=e.length-1,s=-1;for(;a<=i;){const n=a+i>>1,o=t.get(e[n].methodInfo)-t.get(h.methodInfo);if(o<0)a=n+1;else if(o>0)i=n-1;else{s=n;break}}s<0&&(s=i+1),e.splice(s,0,h)},Z1=(h,e,t,a,i)=>{const s=i?L(h):h,n=e[s];if(n)for(let o=0;o<n.length;o++){const r=n[o];r.info.lastRun!==o0&&(!i||rt(h,r.trigger))&&(r.info.lastRun=o0,Ra(r.info,t,a))}};function Da(h){let e=h.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=h[g.COMPUTE];let{counts:a,ready:i,total:s}=Ba(h),n;for(;n=i.shift();){e.set(n,e.size);const o=t[n];o&&o.forEach(r=>{const l=r.info.methodInfo;--s,--a[l]===0&&i.push(l)})}s!==0&&console.warn(`Computed graph for ${h.localName} incomplete; circular?`),h.constructor.__orderedComputedDeps=e}return e}function Ba(h){const e=h[G1],t={},a=h[g.COMPUTE],i=[];let s=0;for(let n in e){const o=e[n];s+=t[n]=o.args.filter(r=>!r.literal).length+(o.dynamicFn?1:0)}for(let n in a)e[n]||i.push(n);return{counts:t,ready:i,total:s}}function Q1(h,e,t,a,i){let s=dt(h,e,t,a,i);if(s===r0)return!1;let n=i.methodInfo;return h.__dataHasAccessor&&h.__dataHasAccessor[n]?h._setPendingProperty(n,s,!0):(h[n]=s,!1)}function Fa(h,e,t){let a=h.__dataLinkedPaths;if(a){let i;for(let s in a){let n=a[s];x0(s,e)?(i=C0(s,n,e),h._setPendingPropertyOrPath(i,t,!0,!0)):x0(n,e)&&(i=C0(n,s,e),h._setPendingPropertyOrPath(i,t,!0,!0))}}}function lt(h,e,t,a,i,s,n){t.bindings=t.bindings||[];let o={kind:a,target:i,parts:s,literal:n,isCompound:s.length!==1};if(t.bindings.push(o),Wa(o)){let{event:l,negate:d}=o.parts[0];o.listenerEvent=l||E0(i)+"-changed",o.listenerNegate=d}let r=e.nodeInfoList.length;for(let l=0;l<o.parts.length;l++){let d=o.parts[l];d.compoundIndex=l,Ha(h,e,o,d,r)}}function Ha(h,e,t,a,i){if(!a.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let s=a.dependencies,n={index:i,binding:t,part:a,evaluator:h};for(let o=0;o<s.length;o++){let r=s[o];typeof r=="string"&&(r=ie(r),r.wildcard=!0),h._addTemplatePropertyEffect(e,r.rootProperty,{fn:Ua,info:n,trigger:r})}}}function Ua(h,e,t,a,i,s,n){let o=n[i.index],r=i.binding,l=i.part;if(s&&l.source&&e.length>l.source.length&&r.kind=="property"&&!r.isCompound&&o.__isPropertyEffectsClient&&o.__dataHasAccessor&&o.__dataHasAccessor[r.target]){let d=t[e];e=C0(l.source,r.target,e),o._setPendingPropertyOrPath(e,d,!1,!0)&&h._enqueueClient(o)}else{let d=i.evaluator._evaluateBinding(h,l,e,t,a,s);d!==r0&&qa(h,o,r,l,d)}}function qa(h,e,t,a,i){if(i=ja(e,i,t,a),w0&&(i=w0(i,t.target,t.kind,e)),t.kind=="attribute")h._valueToNodeAttribute(e,i,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[g.READ_ONLY]||!e[g.READ_ONLY][s])&&e._setPendingProperty(s,i)&&h._enqueueClient(e):h._setUnmanagedPropertyToNode(e,s,i)}}function ja(h,e,t,a){if(t.isCompound){let i=h.__dataCompoundStorage[t.target];i[a.compoundIndex]=e,e=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(h.localName==="input"||h.localName==="textarea"))&&(e=e??""),e}function Wa(h){return Boolean(h.target)&&h.kind!="attribute"&&h.kind!="text"&&!h.isCompound&&h.parts[0].mode==="{"}function Ya(h,e){let{nodeList:t,nodeInfoList:a}=e;if(a.length)for(let i=0;i<a.length;i++){let s=a[i],n=t[i],o=s.bindings;if(o)for(let r=0;r<o.length;r++){let l=o[r];Ga(n,l),Ka(n,h,l)}n.__dataHost=h}}function Ga(h,e){if(e.isCompound){let t=h.__dataCompoundStorage||(h.__dataCompoundStorage={}),a=e.parts,i=new Array(a.length);for(let n=0;n<a.length;n++)i[n]=a[n].literal;let s=e.target;t[s]=i,e.literal&&e.kind=="property"&&(s==="className"&&(h=$(h)),h[s]=e.literal)}}function Ka(h,e,t){if(t.listenerEvent){let a=t.parts[0];h.addEventListener(t.listenerEvent,function(i){$a(i,e,t.target,a.source,a.negate)})}}function X1(h,e,t,a,i,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:s};for(let o=0,r;o<e.args.length&&(r=e.args[o]);o++)r.literal||h._addPropertyEffect(r.rootProperty,t,{fn:a,info:n,trigger:r});return s&&h._addPropertyEffect(e.methodName,t,{fn:a,info:n}),n}function dt(h,e,t,a,i){let s=h._methodHost||h,n=s[i.methodName];if(n){let o=h._marshalArgs(i.args,e,t);return o===r0?r0:n.apply(s,o)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Ja=[],te="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Za="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Qa="(?:'(?:[^'\\\\]|\\\\.)*')",Xa='(?:"(?:[^"\\\\]|\\\\.)*")',ti="(?:"+Qa+"|"+Xa+")",ee="(?:("+te+"|"+Za+"|"+ti+")\\s*)",ei="(?:"+ee+"(?:,\\s*"+ee+")*)",hi="(?:\\(\\s*(?:"+ei+"?)\\)\\s*)",ai="("+te+"\\s*"+hi+"?)",ii="(\\[\\[|{{)\\s*",si="(?:]]|}})",ni=ii+"(?:(!)\\s*)?"+ai+si,he=new RegExp(ni,"g");function ae(h){let e="";for(let t=0;t<h.length;t++)e+=h[t].literal||"";return e}function ct(h){let e=h.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let a={methodName:e[1],static:!0,args:Ja};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return oi(i,a)}else return a}return null}function oi(h,e){return e.args=h.map(function(t){let a=ie(t);return a.literal||(e.static=!1),a},this),e}function ie(h){let e=h.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},a=e[0];switch(a==="-"&&(a=e[1]),a>="0"&&a<="9"&&(a="#"),a){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=L(e),t.structured=st(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function se(h,e,t){let a=y(h,t);return a===void 0&&(a=e[t]),a}function ne(h,e,t,a){const i={indexSplices:a};at&&!h._overrideLegacyUndefined&&(e.splices=i),h.notifyPath(t+".splices",i),h.notifyPath(t+".length",e.length),at&&!h._overrideLegacyUndefined&&(i.indexSplices=[])}function d0(h,e,t,a,i,s){ne(h,e,t,[{index:a,addedCount:i,removed:s,object:e,type:"splice"}])}function ri(h){return h[0].toUpperCase()+h.substring(1)}const li=m(h=>{const e=Pa(Ma(h));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return g}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(c0.length){let i=c0[c0.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let s=this[g.READ_ONLY];for(let n in i)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,s,n){this._createPropertyAccessor(i,s==g.READ_ONLY);let o=ot(this,s,!0)[i];o||(o=this[s][i]=[]),o.push(n)}_removePropertyEffect(i,s,n){let o=ot(this,s,!0)[i],r=o.indexOf(n);r>=0&&o.splice(r,1)}_hasPropertyEffect(i,s){let n=this[s];return Boolean(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,g.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,g.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,g.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,g.COMPUTE)}_setPendingPropertyOrPath(i,s,n,o){if(o||L(Array.isArray(i)?i[0]:i)!==i){if(!o){let r=y(this,i);if(i=D1(this,i,s),!i||!super._shouldPropertyChange(i,s,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,s,n))return Fa(this,i,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,s,n);this[i]=s}return!1}_setUnmanagedPropertyToNode(i,s,n){(n!==i[s]||typeof n=="object")&&(s==="className"&&(i=$(i)),i[s]=n)}_setPendingProperty(i,s,n){let o=this.__dataHasPaths&&st(i),r=o?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,s,r[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),o?this.__dataTemp[i]=s:this.__data[i]=s,this.__dataPending[i]=s,(o||this[g.NOTIFY]&&this[g.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let s=0;s<i.length;s++){let n=i[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,s){for(let n in i)(s||!this[g.READ_ONLY]||!this[g.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,s,n){let o=this.__dataHasPaths;this.__dataHasPaths=!1;let r;Va(this,s,n,o),r=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,o),this._flushClients(),l0(this,this[g.REFLECT],s,n,o),l0(this,this[g.OBSERVE],s,n,o),r&&Oa(this,r,s,n,o),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,s,n){this[g.PROPAGATE]&&l0(this,this[g.PROPAGATE],i,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,s,n)}_runEffectsForTemplate(i,s,n,o){const r=(l,d)=>{l0(this,i.propertyEffects,l,n,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,l,n,d)};i.runEffects?i.runEffects(r,s,o):r(s,o)}linkPaths(i,s){i=n0(i),s=n0(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=s}unlinkPaths(i){i=n0(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,s){let n={path:""},o=y(this,i,n);ne(this,o,n.path,s)}get(i,s){return y(s||this,i)}set(i,s,n){n?D1(n,i,s):(!this[g.READ_ONLY]||!this[g.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,s,!0)&&this._invalidateProperties()}push(i,...s){let n={path:""},o=y(this,i,n),r=o.length,l=o.push(...s);return s.length&&d0(this,o,n.path,r,s.length,[]),l}pop(i){let s={path:""},n=y(this,i,s),o=Boolean(n.length),r=n.pop();return o&&d0(this,n,s.path,n.length,0,[r]),r}splice(i,s,n,...o){let r={path:""},l=y(this,i,r);s<0?s=l.length-Math.floor(-s):s&&(s=Math.floor(s));let d;return arguments.length===2?d=l.splice(s):d=l.splice(s,n,...o),(o.length||d.length)&&d0(this,l,r.path,s,o.length,d),d}shift(i){let s={path:""},n=y(this,i,s),o=Boolean(n.length),r=n.shift();return o&&d0(this,n,s.path,0,0,[r]),r}unshift(i,...s){let n={path:""},o=y(this,i,n),r=o.unshift(...s);return s.length&&d0(this,o,n.path,0,s.length,[]),r}notifyPath(i,s){let n;if(arguments.length==1){let o={path:""};s=y(this,i,o),n=o.path}else Array.isArray(i)?n=n0(i):n=i;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,s){this._addPropertyEffect(i,g.READ_ONLY),s&&(this["_set"+ri(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,s,n){let o={property:i,method:s,dynamicFn:Boolean(n)};this._addPropertyEffect(i,g.OBSERVE,{fn:K1,info:o,trigger:{name:i}}),n&&this._addPropertyEffect(s,g.OBSERVE,{fn:K1,info:o,trigger:{name:s}})}_createMethodObserver(i,s){let n=ct(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");X1(this,n,g.OBSERVE,dt,null,s)}_createNotifyingProperty(i){this._addPropertyEffect(i,g.NOTIFY,{fn:Na,info:{eventName:E0(i)+"-changed",property:i}})}_createReflectedProperty(i){let s=this.constructor.attributeNameForProperty(i);s[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,g.REFLECT,{fn:La,info:{attrName:s}})}_createComputedProperty(i,s,n){let o=ct(s);if(!o)throw new Error("Malformed computed expression '"+s+"'");const r=X1(this,o,g.COMPUTE,Q1,i,n);ot(this,G1)[i]=r}_marshalArgs(i,s,n){const o=this.__data,r=[];for(let l=0,d=i.length;l<d;l++){let{name:c,structured:v,wildcard:p,value:u,literal:M}=i[l];if(!M)if(p){const w=x0(c,s),z=se(o,n,w?s:c);u={path:w?s:c,value:z,base:w?y(o,c):z}}else u=v?se(o,n,c):o[c];if(at&&!this._overrideLegacyUndefined&&u===void 0&&i.length>1)return r0;r[l]=u}return r}static addPropertyEffect(i,s,n){this.prototype._addPropertyEffect(i,s,n)}static createPropertyObserver(i,s,n){this.prototype._createPropertyObserver(i,s,n)}static createMethodObserver(i,s){this.prototype._createMethodObserver(i,s)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,s){this.prototype._createReadOnlyProperty(i,s)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,s,n){this.prototype._createComputedProperty(i,s,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,s){let n=this.constructor._parseTemplate(i),o=this.__preBoundTemplateInfo==n;if(!o)for(let r in n.propertyEffects)this._createPropertyAccessor(r);if(s)if(n=Object.create(n),n.wasPreBound=o,!this.__templateInfo)this.__templateInfo=n;else{const r=i._parentTemplateInfo||this.__templateInfo,l=r.lastChild;n.parent=r,r.lastChild=n,n.previousSibling=l,l?l.nextSibling=n:r.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,s,n){let o=i.hostProps=i.hostProps||{};o[s]=!0;let r=i.propertyEffects=i.propertyEffects||{};(r[s]=r[s]||[]).push(n)}_stampTemplate(i,s){s=s||this._bindTemplate(i,!0),c0.push(this);let n=super._stampTemplate(i,s);if(c0.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let o=s.childNodes=[];for(let r=n.firstChild;r;r=r.nextSibling)o.push(r)}return n.templateInfo=s,Ya(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const s=i.templateInfo,{previousSibling:n,nextSibling:o,parent:r}=s;n?n.nextSibling=o:r&&(r.firstChild=o),o?o.previousSibling=n:r&&(r.lastChild=n),s.nextSibling=s.previousSibling=null;let l=s.childNodes;for(let d=0;d<l.length;d++){let c=l[d];$($(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,s,n){let o=e._parseTemplateNode.call(this,i,s,n);if(i.nodeType===Node.TEXT_NODE){let r=this._parseBindings(i.textContent,s);r&&(i.textContent=ae(r)||" ",lt(this,s,n,"text","textContent",r),o=!0)}return o}static _parseTemplateNodeAttribute(i,s,n,o,r){let l=this._parseBindings(r,s);if(l){let d=o,c="property";Ia.test(o)?c="attribute":o[o.length-1]=="$"&&(o=o.slice(0,-1),c="attribute");let v=ae(l);return v&&c=="attribute"&&(o=="class"&&i.hasAttribute("class")&&(v+=" "+i.getAttribute(o)),i.setAttribute(o,v)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(o,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(o=B1(o)),lt(this,s,n,c,o,l,v),!0}else return e._parseTemplateNodeAttribute.call(this,i,s,n,o,r)}static _parseTemplateNestedTemplate(i,s,n){let o=e._parseTemplateNestedTemplate.call(this,i,s,n);const r=i.parentNode,l=n.templateInfo,d=r.localName==="dom-if",c=r.localName==="dom-repeat";P1&&(d||c)&&(r.removeChild(i),n=n.parentInfo,n.templateInfo=l,n.noted=!0,o=!1);let v=l.hostProps;if(ta&&d)v&&(s.hostProps=Object.assign(s.hostProps||{},v),P1||(n.parentInfo.noted=!0));else{let p="{";for(let u in v){let M=[{mode:p,source:u,dependencies:[u],hostProp:!0}];lt(this,s,n,"property","_host_"+u,M)}}return o}static _parseBindings(i,s){let n=[],o=0,r;for(;(r=he.exec(i))!==null;){r.index>o&&n.push({literal:i.slice(o,r.index)});let l=r[1][0],d=Boolean(r[2]),c=r[3].trim(),v=!1,p="",u=-1;l=="{"&&(u=c.indexOf("::"))>0&&(p=c.substring(u+2),c=c.substring(0,u),v=!0);let M=ct(c),w=[];if(M){let{args:z,methodName:b}=M;for(let i1=0;i1<z.length;i1++){let ch=z[i1];ch.literal||w.push(ch)}let Q=s.dynamicFns;(Q&&Q[b]||M.static)&&(w.push(b),M.dynamicFn=!0)}else w.push(c);n.push({source:c,mode:l,negate:d,customEvent:v,signature:M,dependencies:w,event:p}),o=he.lastIndex}if(o&&o<i.length){let l=i.substring(o);l&&n.push({literal:l})}return n.length?n:null}static _evaluateBinding(i,s,n,o,r,l){let d;return s.signature?d=dt(i,n,o,r,s.signature):n!=s.source?d=y(i,s.source):l&&st(n)?d=y(i,n):d=i.__data[n],s.negate&&(d=!d),d}}return t}),c0=[];/**
|
|
310
330
|
@license
|
|
311
331
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
312
332
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -314,7 +334,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
314
334
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
315
335
|
Code distributed by Google as part of the polymer project is also
|
|
316
336
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
317
|
-
*/function
|
|
337
|
+
*/function _n(h){}/**
|
|
318
338
|
@license
|
|
319
339
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
320
340
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -322,7 +342,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
322
342
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
323
343
|
Code distributed by Google as part of the polymer project is also
|
|
324
344
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
325
|
-
*/function
|
|
345
|
+
*/function di(h){const e={};for(let t in h){const a=h[t];e[t]=typeof a=="function"?{type:a}:a}return e}const ci=m(h=>{const e=U1(h);function t(s){const n=Object.getPrototypeOf(s);return n.prototype instanceof i?n:null}function a(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let n=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const o=s.properties;o&&(n=di(o))}s.__ownProperties=n}return s.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(o=>this.prototype._addPropertyToAttributeMap(o)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=a(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,a(this))}return this.__properties}static typeForProperty(n){const o=this._properties[n];return o&&o.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
|
|
326
346
|
* @fileoverview
|
|
327
347
|
* @suppress {checkPrototypalTypes}
|
|
328
348
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -332,7 +352,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
332
352
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
333
353
|
* Google as part of the polymer project is also subject to an additional IP
|
|
334
354
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
335
|
-
*/const vi="3.5.1",
|
|
355
|
+
*/const vi="3.5.1",oe=window.ShadyCSS&&window.ShadyCSS.cssBuild,pi=m(h=>{const e=ci(li(h));function t(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",r))){r.__propertyDefaults=null;let l=r._properties;for(let d in l){let c=l[d];"value"in c&&(r.__propertyDefaults=r.__propertyDefaults||{},r.__propertyDefaults[d]=c)}}return r.__propertyDefaults}function a(r){return r.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",r))||(r.__ownObservers=r.hasOwnProperty(JSCompiler_renameProperty("observers",r))?r.observers:null),r.__ownObservers}function i(r,l,d,c){d.computed&&(d.readOnly=!0),d.computed&&(r._hasReadOnlyEffect(l)?console.warn(`Cannot redefine computed property '${l}'.`):r._createComputedProperty(l,d.computed,c)),d.readOnly&&!r._hasReadOnlyEffect(l)?r._createReadOnlyProperty(l,!d.computed):d.readOnly===!1&&r._hasReadOnlyEffect(l)&&console.warn(`Cannot make readOnly property '${l}' non-readOnly.`),d.reflectToAttribute&&!r._hasReflectEffect(l)?r._createReflectedProperty(l):d.reflectToAttribute===!1&&r._hasReflectEffect(l)&&console.warn(`Cannot make reflected property '${l}' non-reflected.`),d.notify&&!r._hasNotifyEffect(l)?r._createNotifyingProperty(l):d.notify===!1&&r._hasNotifyEffect(l)&&console.warn(`Cannot make notify property '${l}' non-notify.`),d.observer&&r._createPropertyObserver(l,d.observer,c[d.observer]),r._addPropertyToAttributeMap(l)}function s(r,l,d,c){if(!oe){const v=l.content.querySelectorAll("style"),p=L1(l),u=ra(d),M=l.content.firstElementChild;for(let z=0;z<u.length;z++){let b=u[z];b.textContent=r._processStyleText(b.textContent,c),l.content.insertBefore(b,M)}let w=0;for(let z=0;z<p.length;z++){let b=p[z],Q=v[w];Q!==b?(b=b.cloneNode(!0),Q.parentNode.insertBefore(b,Q)):w++,b.textContent=r._processStyleText(b.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(l,d),ea&&oe&&Yh){const v=l.content.querySelectorAll("style");if(v){let p="";Array.from(v).forEach(u=>{p+=u.textContent,u.parentNode.removeChild(u)}),r._styleSheet=new CSSStyleSheet,r._styleSheet.replaceSync(p)}}}function n(r){let l=null;if(r&&(!ht||Kh)&&(l=s0.import(r,"template"),ht&&!l))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${r}`);return l}class o extends e{static get polymerElementVersion(){return vi}static _finalizeClass(){e._finalizeClass.call(this);const l=a(this);l&&this.createObservers(l,this._properties),this._prepareTemplate()}static _prepareTemplate(){let l=this.template;l&&(typeof l=="string"?(console.error("template getter must return HTMLTemplateElement"),l=null):Jh||(l=l.cloneNode(!0))),this.prototype._template=l}static createProperties(l){for(let d in l)i(this.prototype,d,l[d],l)}static createObservers(l,d){const c=this.prototype;for(let v=0;v<l.length;v++)c._createMethodObserver(l[v],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let l=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof l=="function"&&(l=l()),this._template=l!==void 0?l:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(l){this._template=l}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const l=this.importMeta;if(l)this._importPath=et(l.url);else{const d=s0.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Gh,this.importPath=this.constructor.importPath;let l=t(this.constructor);if(!!l)for(let d in l){let c=l[d];if(this._canApplyPropertyDefault(d)){let v=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,v,!0):this[d]=v}}}_canApplyPropertyDefault(l){return!this.hasOwnProperty(l)}static _processStyleText(l,d){return tt(l,d)}static _finalizeTemplate(l){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,v=c?i0(c):"";s(this,d,l,v),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(l){const d=$(this);if(d.attachShadow)return l?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:l}),d.shadowRoot.appendChild(l),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Qh&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(l){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,l)}resolveUrl(l,d){return!d&&this.importPath&&(d=i0(this.importPath)),i0(l,d)}static _parseTemplateContent(l,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,l,d,c)}static _addTemplatePropertyEffect(l,d,c){return Zh&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!l.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,l,d,c)}}return o});/**
|
|
336
356
|
@license
|
|
337
357
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
338
358
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -340,7 +360,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
340
360
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
341
361
|
Code distributed by Google as part of the polymer project is also
|
|
342
362
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
343
|
-
*/const
|
|
363
|
+
*/const re=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:h=>h});class le{constructor(e,t){ce(e,t);const a=t.reduce((i,s,n)=>i+de(s)+e[n+1],e[0]);this.value=a.toString()}toString(){return this.value}}function de(h){if(h instanceof le)return h.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${h}`)}function ui(h){if(h instanceof HTMLTemplateElement)return h.innerHTML;if(h instanceof le)return de(h);throw new Error(`non-template value passed to Polymer's html function: ${h}`)}const G=function(e,...t){ce(e,t);const a=document.createElement("template");let i=t.reduce((s,n,o)=>s+ui(n)+e[o+1],e[0]);return re&&(i=re.createHTML(i)),a.innerHTML=i,a},ce=(h,e)=>{if(!Array.isArray(h)||!Array.isArray(h.raw)||e.length!==h.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
344
364
|
@license
|
|
345
365
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
346
366
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -348,11 +368,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
348
368
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
349
369
|
Code distributed by Google as part of the polymer project is also
|
|
350
370
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
351
|
-
*/const
|
|
371
|
+
*/const V=pi(HTMLElement);/**
|
|
372
|
+
* @license
|
|
373
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
374
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
375
|
+
*/const fi=m(h=>typeof h.prototype.addController=="function"?h:class extends h{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}});/**
|
|
352
376
|
* @license
|
|
353
377
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
354
378
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
355
|
-
*/const
|
|
379
|
+
*/function ve(h){const e=customElements.get(h.is);if(!e)customElements.define(h.is,h);else{const t=e.version;t&&h.version&&t===h.version?console.warn(`The component ${h.is} has been loaded twice`):console.error(`Tried to define ${h.is} version ${h.version} when version ${e.version} is already in use. Something will probably break.`)}}const gi=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,P0=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function _i(){function h(){return!0}return pe(h)}function mi(){try{return Mi()?!0:zi()?P0?!bi():!_i():!1}catch{return!1}}function Mi(){return localStorage.getItem("vaadin.developmentmode.force")}function zi(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function bi(){return!!(P0&&Object.keys(P0).map(e=>P0[e]).filter(e=>e.productionMode).length>0)}function pe(h,e){if(typeof h!="function")return;const t=gi.exec(h.toString());if(t)try{h=new Function(t[1])}catch(a){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",a)}return h(e)}window.Vaadin=window.Vaadin||{};const ue=function(h,e){if(window.Vaadin.developmentMode)return pe(h,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=mi());function yi(){}const fe=function(){if(typeof ue=="function")return ue(yi)};/**
|
|
356
380
|
* @license
|
|
357
381
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
358
382
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -368,51 +392,51 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
368
392
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
369
393
|
Code distributed by Google as part of the polymer project is also
|
|
370
394
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
371
|
-
*/const
|
|
395
|
+
*/const vt=new Set;class I0{static debounce(e,t,a){return e instanceof I0?e._cancelAsync():e=new I0,e.setConfig(t,a),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,vt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),vt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}}function xi(h){vt.add(h)}/**
|
|
372
396
|
* @license
|
|
373
397
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
374
398
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
375
|
-
*/const
|
|
399
|
+
*/const A=[];function pt(h,e,t=h.getAttribute("dir")){e?h.setAttribute("dir",e):t!=null&&h.removeAttribute("dir")}function ut(){return document.documentElement.getAttribute("dir")}function Ci(){const h=ut();A.forEach(e=>{pt(e,h)})}new MutationObserver(Ci).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ai=h=>class extends h{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),pt(this,ut(),null))}attributeChangedCallback(t,a,i){if(super.attributeChangedCallback(t,a,i),t!=="dir")return;const s=ut(),n=i===s&&A.indexOf(this)===-1,o=!i&&a&&A.indexOf(this)===-1;n||o?(this.__subscribe(),pt(this,s,i)):i!==s&&a===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=A.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,a,i){i==="dir"&&a===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,a,i)}_attributeToProperty(t,a,i){t==="dir"&&!a?this.dir="":super._attributeToProperty(t,a,i)}__subscribe(){A.includes(this)||A.push(this)}__unsubscribe(){A.includes(this)&&A.splice(A.indexOf(this),1)}};/**
|
|
376
400
|
* @license
|
|
377
401
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
378
402
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
379
|
-
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
403
|
+
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){fe()};let ft;const ge=new Set,_e=h=>class extends Ai(h){static get version(){return"24.2.0"}static finalize(){super.finalize();const{is:t}=this;t&&!ge.has(t)&&(window.Vaadin.registrations.push(this),ge.add(t),window.Vaadin.developmentModeCallback&&(ft=I0.debounce(ft,wi,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),xi(ft)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
380
404
|
* @license
|
|
381
405
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
382
406
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
383
|
-
*/const
|
|
407
|
+
*/const gt=new WeakMap;function Ei(h){return gt.has(h)||gt.set(h,new Set),gt.get(h)}function Si(h,e){const t=document.createElement("style");t.textContent=h,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Pi=m(h=>class extends h{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),a=Ei(t);this.slotStyles.forEach(i=>{a.has(i)||(Si(i,t),a.add(i))})}});/**
|
|
384
408
|
* @license
|
|
385
409
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
386
410
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
387
|
-
*/function
|
|
411
|
+
*/function Ii(h){return h.nodeType===Node.TEXT_NODE&&h.textContent.trim()===""}/**
|
|
388
412
|
* @license
|
|
389
413
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
390
414
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
391
|
-
*/class
|
|
415
|
+
*/class Ti{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){!this._connected||(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const a=[],i=[];e.length&&(t=e.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,n)=>{const o=e.indexOf(s);o===-1?a.push(s):o!==n&&i.push(s)}),(t.length||a.length||i.length)&&this.callback({addedNodes:t,movedNodes:i,removedNodes:a}),this._storedNodes=e}}/**
|
|
392
416
|
* @license
|
|
393
417
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
394
418
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
395
|
-
*/let Oi=0;function
|
|
419
|
+
*/let Oi=0;function ki(){return Oi++}/**
|
|
396
420
|
* @license
|
|
397
421
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
398
422
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
399
|
-
*/class
|
|
423
|
+
*/class Ni extends EventTarget{static generateId(e,t){return`${t||"default"}-${e.localName}-${ki()}`}constructor(e,t,a,i={}){super();const{initializer:s,multiple:n,observe:o,useUniqueId:r}=i;this.host=e,this.slotName=t,this.tagName=a,this.observe=typeof o=="boolean"?o:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=s,n&&(this.nodes=[]),r&&(this.defaultId=this.constructor.generateId(e,t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:a}=this;let i=this.defaultNode;return!i&&a&&(i=document.createElement(a),i instanceof Element&&(t!==""&&i.setAttribute("slot",t),this.node=i,this.defaultNode=i)),i&&e.appendChild(i),i}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,a=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Ti(a,({addedNodes:i,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],o=i.filter(r=>!Ii(r)&&!n.includes(r));s.length&&(this.nodes=n.filter(r=>!s.includes(r)),s.forEach(r=>{this.teardownNode(r)})),o&&o.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...o].filter(r=>r!==this.defaultNode),o.forEach(r=>{this.initAddedNode(r)})):(this.node&&this.node.remove(),this.node=o[0],this.initAddedNode(this.node)))})}}/**
|
|
400
424
|
* @license
|
|
401
425
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
402
426
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
403
|
-
*/class $i extends
|
|
427
|
+
*/class $i extends Ni{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
404
428
|
* @license
|
|
405
429
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
406
430
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
407
|
-
*/const
|
|
431
|
+
*/const T0=new ResizeObserver(h=>{setTimeout(()=>{h.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Li=m(h=>class extends h{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),T0.observe(this),this._observeParent){const t=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;t.resizables||(t.resizables=new Set,T0.observe(t)),t.resizables.add(this),this.__parent=t}}disconnectedCallback(){super.disconnectedCallback(),T0.unobserve(this);const t=this.__parent;if(this._observeParent&&t){const a=t.resizables;a&&(a.delete(this),a.size===0&&T0.unobserve(t)),this.__parent=null}}_onResize(t){}});/**
|
|
408
432
|
* @license
|
|
409
433
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
410
434
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
411
|
-
*/const O0=h=>h.test(navigator.userAgent),
|
|
435
|
+
*/const O0=h=>h.test(navigator.userAgent),_t=h=>h.test(navigator.platform),Vi=h=>h.test(navigator.vendor);O0(/Android/u),O0(/Chrome/u)&&Vi(/Google Inc/u),O0(/Firefox/u),_t(/^iPad/u)||_t(/^Mac/u)&&navigator.maxTouchPoints>1,_t(/^iPhone/u);const Ri=O0(/^((?!chrome|android).)*safari/iu);(()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}})();/**
|
|
412
436
|
* @license
|
|
413
437
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
414
438
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
415
|
-
*/function
|
|
439
|
+
*/function Di(){const h=document.createElement("style");h.textContent=`
|
|
416
440
|
.vaadin-icon-test-element {
|
|
417
441
|
container-type: size;
|
|
418
442
|
height: 2px;
|
|
@@ -424,44 +448,44 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
424
448
|
content: '';
|
|
425
449
|
display: block;
|
|
426
450
|
height: 100cqh;
|
|
427
|
-
`;const e=document.createElement("div");e.classList.add("vaadin-icon-test-element"),document.body.append(h,e);const{height:t}=getComputedStyle(e,"::before");return h.remove(),e.remove(),t==="2px"}function
|
|
451
|
+
`;const e=document.createElement("div");e.classList.add("vaadin-icon-test-element"),document.body.append(h,e);const{height:t}=getComputedStyle(e,"::before");return h.remove(),e.remove(),t==="2px"}function Bi(){return CSS.supports("container-type: inline-size")?Ri?!Di():!1:!0}/**
|
|
428
452
|
* @license
|
|
429
453
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
430
454
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
431
|
-
*/const
|
|
455
|
+
*/const me=Bi();me&&E1("vaadin-icon",f`
|
|
432
456
|
:host::after,
|
|
433
457
|
:host::before {
|
|
434
458
|
font-size: var(--_vaadin-font-icon-size);
|
|
435
459
|
}
|
|
436
|
-
`,"vaadin-icon-font-size-mixin-styles");const
|
|
460
|
+
`,"vaadin-icon-font-size-mixin-styles");const Fi=m(h=>me?class extends Li(h){static get observers(){return["__iconFontSizeMixinfontChanged(iconClass, char, ligature)"]}ready(){super.ready(),this.__updateFontIconSize()}__iconFontSizeMixinfontChanged(e,t,a){this.__updateFontIconSize()}_onResize(){this.__updateFontIconSize()}__updateFontIconSize(){if(this.char||this.iconClass||this.ligature){const{paddingTop:e,paddingBottom:t,height:a}=getComputedStyle(this),i=parseFloat(a)-parseFloat(e)-parseFloat(t);this.style.setProperty("--_vaadin-font-icon-size",`${i}px`)}}}:h);/**
|
|
437
461
|
* @license
|
|
438
462
|
* Copyright 2020 Google LLC
|
|
439
463
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
440
|
-
*/const
|
|
464
|
+
*/const Hi={HTML:1,SVG:2},Ui=(h,e)=>e===void 0?h?._$litType$!==void 0:h?._$litType$===e,qi=h=>h.strings===void 0;/**
|
|
441
465
|
* @license
|
|
442
466
|
* Copyright 2017 Google LLC
|
|
443
467
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
444
|
-
*/const
|
|
468
|
+
*/const mt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=h=>(...e)=>({_$litDirective$:h,values:e});class ze{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,a){this._$Ct=e,this._$AM=t,this._$Ci=a}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**
|
|
445
469
|
* @license
|
|
446
470
|
* Copyright 2017 Google LLC
|
|
447
471
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
448
|
-
*/class
|
|
472
|
+
*/class Mt extends ze{constructor(e){if(super(e),this.it=_,e.type!==mt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===_||e==null)return this._t=void 0,this.it=e;if(e===N)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Mt.directiveName="unsafeHTML",Mt.resultType=1;/**
|
|
449
473
|
* @license
|
|
450
474
|
* Copyright 2017 Google LLC
|
|
451
475
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
452
|
-
*/class
|
|
476
|
+
*/class zt extends Mt{}zt.directiveName="unsafeSVG",zt.resultType=2;const be=Me(zt);/**
|
|
453
477
|
* @license
|
|
454
478
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
455
479
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
456
|
-
*/function
|
|
480
|
+
*/function ye(h){let e=_;if(h){const t=h.cloneNode(!0);t.removeAttribute("id"),e=M1`${be(t.outerHTML)}`}return e}function ji(h){return Ui(h,Hi.SVG)||h===_}function we(h){let e=h==null||h===""?_:h;return ji(e)||(console.error("[vaadin-icon] Invalid svg passed, please use Lit svg literal."),e=_),e}function Wi(h,e){const t=we(h);J0(t,e)}function Yi(h){return M1`${be(h)}`}/**
|
|
457
481
|
* @license
|
|
458
482
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
459
483
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
460
|
-
*/const
|
|
484
|
+
*/const R={},xe=new Set;function Ce(h,e){return(h||"").replace(`${e}:`,"")}function Ae(h){return h?h.split(":")[0]||"vaadin":void 0}function Ee(h,e){h._icons=[...h.querySelectorAll("[id]")].reduce((t,a)=>{const i=Ce(a.id,e);return t[i]=a,t},{})}class v0 extends _e(V){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return xe}static getIconset(e){return R[e]}static getIconSvg(e,t){const a=t||Ae(e),i=this.getIconset(a);if(!e||!i)return{svg:ye(null)};const s=Ce(e,a),n=i._icons[s];return{preserveAspectRatio:n?n.getAttribute("preserveAspectRatio"):null,svg:ye(n),size:i.size,viewBox:n?n.getAttribute("viewBox"):null}}static register(e,t,a){if(!R[e]){const i=document.createElement("vaadin-iconset");i.appendChild(a.content.cloneNode(!0)),R[e]=i,Ee(i,e),i.size=t,i.name=e,i.__nameChanged(e)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:e}=this;R[e]=this,Ee(this,e),this.__updateIcons(e)}__updateIcons(e){xe.forEach(t=>{e===Ae(t.icon)&&t._applyIcon()})}__nameChanged(e,t){t&&(R[e]=R[t],delete R[t]),e&&this.__updateIcons(e)}}ve(v0);/**
|
|
461
485
|
* @license
|
|
462
486
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
463
487
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
464
|
-
*/const
|
|
488
|
+
*/const bt=new Map;class p0 extends Uh(_e(fi(Pi(Fi(V))))){static get template(){return G`
|
|
465
489
|
<style>
|
|
466
490
|
:host {
|
|
467
491
|
display: inline-flex;
|
|
@@ -523,11 +547,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
523
547
|
vertical-align: middle;
|
|
524
548
|
font-size: inherit;
|
|
525
549
|
}
|
|
526
|
-
`]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new $i(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),
|
|
550
|
+
`]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new $i(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),v0.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),v0.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:e,svg:t,size:a,viewBox:i}=v0.getIconSvg(this.icon);i&&(this.__viewBox=i),e&&(this.__preserveAspectRatio=e),a&&a!==this.size&&(this.size=a),this.svg=t}__iconChanged(e){e?this._applyIcon():this.svg=we(null)}async __srcChanged(e,t){if(!e){this.svg=null;return}if(this.icon="",!e.startsWith("data:")&&(t||e.includes("#"))){const[a,i]=e.split("#");this.__useRef=`${a}#${t||i}`}else try{bt.has(e)||bt.set(e,this.__fetch(e,{mode:"cors"}).then(n=>{if(!n.ok)throw new Error("Error loading icon");return n.text()}));const a=await bt.get(e);p0.__domParser||(p0.__domParser=new DOMParser);const s=p0.__domParser.parseFromString(a,"text/html").querySelector("svg");if(!s)throw new Error(`SVG element not found on path: ${e}`);this.svg=Yi(s.innerHTML),t&&(this.__useRef=`#${t}`),this.__viewBox=s.getAttribute("viewBox")}catch(a){console.error(a),this.svg=null}}__svgChanged(e,t){!t||Wi(e,t)}__computePAR(e,t){return t||e}__computeVisibility(e){return e?"visible":"hidden"}__computeViewBox(e,t){return t||`0 0 ${e} ${e}`}__fontChanged(e,t,a){this.classList.remove(...this.__addedIconClasses||[]),e&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),t?this.setAttribute("font-icon-content",t.length>1?String.fromCodePoint(parseInt(t,16)):t):a?this.setAttribute("font-icon-content",a):this.removeAttribute("font-icon-content"),(e||t||a)&&!this.icon&&(this.icon="")}attributeChangedCallback(e,t,a){super.attributeChangedCallback(e,t,a),e==="class"&&this.__iconClasses.some(i=>!this.classList.contains(i))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(e){this.style.fontFamily=`'${e}'`}}ve(p0);/**
|
|
527
551
|
* @license
|
|
528
552
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
529
553
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
530
|
-
*/const
|
|
554
|
+
*/const Se=document.createElement("template");Se.innerHTML=`<svg><defs>
|
|
531
555
|
<g id="vaadin:abacus"><path d="M0 0v16h16v-16h-16zM14 2v3h-0.1c-0.2-0.6-0.8-1-1.4-1s-1.2 0.4-1.4 1h-3.2c-0.2-0.6-0.7-1-1.4-1s-1.2 0.4-1.4 1h-0.2c-0.2-0.6-0.7-1-1.4-1s-1.2 0.4-1.4 1h-0.1v-3h12zM13.9 10c-0.2-0.6-0.8-1-1.4-1s-1.2 0.4-1.4 1h-0.2c-0.2-0.6-0.8-1-1.4-1s-1.2 0.4-1.4 1h-3.2c-0.2-0.6-0.7-1-1.4-1s-1.2 0.4-1.4 1h-0.1v-4h0.1c0.2 0.6 0.8 1 1.4 1s1.2-0.4 1.4-1h0.2c0.2 0.6 0.8 1 1.4 1s1.2-0.4 1.4-1h3.2c0.2 0.6 0.8 1 1.4 1s1.2-0.4 1.4-1h0.1l-0.1 4zM2 14v-3h0.1c0.2 0.6 0.8 1 1.4 1s1.2-0.4 1.4-1h3.2c0.2 0.6 0.8 1 1.4 1s1.2-0.4 1.4-1h0.2c0.2 0.6 0.8 1 1.4 1s1.2-0.4 1.4-1h0.1v3h-12z"></path></g>
|
|
532
556
|
<g id="vaadin:absolute-position"><path d="M0 0v16h16v-16h-16zM15 15h-14v-6h3v1l3-2-3-2v1h-3v-6h6v3h-1l2 3 2-3h-1v-3h6v14z"></path></g>
|
|
533
557
|
<g id="vaadin:academy-cap"><path d="M15.090 12.79c0.235-0.185 0.385-0.469 0.385-0.789 0-0.358-0.188-0.672-0.471-0.849l-0.004-5.822-1 0.67v5.15c-0.283 0.18-0.468 0.492-0.468 0.847 0 0.316 0.147 0.598 0.376 0.782l-0.378 0.502c-0.323 0.41-0.521 0.931-0.53 1.498l-0 1.222h0.81c0.002 0 0.004 0 0.005 0 0.411 0 0.757-0.282 0.853-0.664l0.331-1.336v2h1v-1.21c-0.009-0.569-0.207-1.090-0.534-1.505z"></path><path d="M8 0l-8 4 8 5 8-5-8-4z"></path><path d="M8 10l-5-3.33v1.71c0 0.91 2.94 3.62 5 3.62s5-2.71 5-3.62v-1.71z"></path></g>
|
|
@@ -1164,48 +1188,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1164
1188
|
<g id="vaadin:wrench"><path d="M15.5 13.4l-7.8-7.8c0.2-0.5 0.3-1 0.3-1.6 0-2.2-1.8-4-4-4-0.6 0-1.1 0.1-1.6 0.3l2.9 2.9-2.1 2.1-2.9-2.9c-0.2 0.5-0.3 1-0.3 1.6 0 2.2 1.8 4 4 4 0.6 0 1.1-0.1 1.6-0.3l7.8 7.8c0.6 0.6 1.5 0.6 2.1 0s0.6-1.5 0-2.1zM6.8 7.6l-1.4-1.4 0.9-0.9 1.4 1.4-0.9 0.9zM14.2 15c-0.4 0-0.8-0.3-0.8-0.8 0-0.4 0.3-0.8 0.8-0.8s0.8 0.3 0.8 0.8c0 0.5-0.3 0.8-0.8 0.8z"></path></g>
|
|
1165
1189
|
<g id="vaadin:youtube-square"><path d="M7.9 6c0.2 0 0.3-0.2 0.3-0.5v-1.4c0-0.3-0.1-0.5-0.3-0.5s-0.3 0.2-0.3 0.5v1.4c0 0.3 0.1 0.5 0.3 0.5z"></path><path d="M7.1 11.9c-0.1 0.2-0.3 0.3-0.4 0.3s-0.1 0-0.1-0.1c0 0 0-0.1 0-0.2v-2.5h-0.6v2.6c0 0.2 0 0.4 0.1 0.5 0.1 0.2 0.2 0.2 0.4 0.2s0.4-0.1 0.7-0.4v0.4h0.6v-3.3h-0.7v2.5z"></path><path d="M3.8 8.9h0.7v3.8h0.7v-3.8h0.7v-0.7h-2.1z"></path><path d="M9.4 9.3c-0.2 0-0.4 0.2-0.6 0.4v-1.5h-0.6v4.4h0.6v-0.3c0.2 0.2 0.4 0.4 0.6 0.4s0.4-0.1 0.5-0.4c0-0.1 0.1-0.4 0.1-0.7v-1.3c0-0.3 0-0.5-0.1-0.7-0.1-0.1-0.2-0.3-0.5-0.3zM9.4 11.7c0 0.3-0.1 0.4-0.3 0.4-0.1 0-0.2 0-0.3-0.1v-2c0.1-0.1 0.2-0.1 0.3-0.1 0.2 0 0.3 0.2 0.3 0.5v1.3z"></path><path d="M11.3 9.3c-0.3 0-0.5 0.1-0.7 0.3-0.1 0.2-0.2 0.4-0.2 0.8v1.2c0 0.4 0.1 0.6 0.2 0.8 0.2 0.2 0.4 0.3 0.7 0.3s0.6-0.1 0.7-0.4c0.1-0.1 0.1-0.2 0.1-0.4 0-0.1 0-0.2 0-0.4v-0.1h-0.6c0 0.2 0 0.4 0 0.4 0 0.2-0.1 0.2-0.3 0.2s-0.3-0.2-0.3-0.5v-0.6h1.2v-0.7c0-0.4-0.1-0.6-0.2-0.8 0 0.1-0.3-0.1-0.6-0.1zM11.6 10.6h-0.6v-0.3c0-0.3 0.1-0.5 0.3-0.5s0.3 0.2 0.3 0.5v0.3z"></path><path d="M0 0v16h16v-16h-16zM9.3 3.1h0.6v2.5c0 0.1 0 0.2 0 0.2 0 0.1 0 0.2 0.1 0.2s0.2-0.1 0.4-0.3v-2.6h0.6v3.3h-0.6v-0.3c-0.2 0.3-0.5 0.4-0.7 0.4s-0.3-0.1-0.4-0.2c0-0.1-0.1-0.3-0.1-0.5v-2.7zM7 4.2c0-0.3 0-0.6 0.2-0.8s0.4-0.3 0.7-0.3c0.3 0 0.5 0.1 0.7 0.3 0.1 0.2 0.2 0.4 0.2 0.8v1.2c0 0.4-0.1 0.6-0.2 0.8-0.2 0.2-0.4 0.3-0.7 0.3s-0.5-0.1-0.7-0.3c-0.2-0.2-0.2-0.4-0.2-0.8v-1.2zM5.3 2l0.5 1.8 0.5-1.8h0.7l-0.8 2.7v1.8h-0.7v-1.8c-0.1-0.4-0.2-0.8-0.4-1.5-0.2-0.4-0.3-0.8-0.5-1.2h0.7zM12.8 12.9c-0.1 0.5-0.6 0.9-1.1 1-1.2 0.1-2.5 0.1-3.7 0.1s-2.5 0-3.7-0.1c-0.5-0.1-1-0.4-1.1-1-0.2-0.8-0.2-1.6-0.2-2.4 0-0.7 0-1.5 0.2-2.3 0.1-0.5 0.6-0.9 1.1-1 1.2-0.1 2.5-0.1 3.7-0.1s2.5 0 3.7 0.1c0.5 0.1 1 0.4 1.1 1 0.2 0.8 0.2 1.6 0.2 2.3 0 0.8 0 1.6-0.2 2.4z"></path></g>
|
|
1166
1190
|
<g id="vaadin:youtube"><path d="M6.6 0h-0.9l-0.6 2.3-0.6-2.3h-1c0.2 0.6 0.4 1.1 0.6 1.7 0.3 0.8 0.5 1.5 0.5 1.9v2.4h0.9v-2.4l1.1-3.6zM9 4.5v-1.5c0-0.5-0.1-0.8-0.3-1.1s-0.5-0.4-0.9-0.4c-0.4 0-0.7 0.2-0.9 0.5-0.2 0.2-0.3 0.5-0.3 1v1.6c0 0.5 0.1 0.8 0.3 1 0.2 0.3 0.5 0.4 0.9 0.4s0.7-0.2 0.9-0.5c0.2-0.1 0.3-0.5 0.3-1zM8.2 4.7c0 0.4-0.1 0.6-0.4 0.6s-0.4-0.2-0.4-0.6v-1.9c0-0.4 0.1-0.6 0.4-0.6s0.4 0.2 0.4 0.6v1.9zM12 6v-4.5h-0.8v3.4c-0.2 0.3-0.3 0.4-0.5 0.4-0.1 0-0.2-0.1-0.2-0.2 0 0 0-0.1 0-0.3v-3.3h-0.8v3.5c0 0.3 0 0.5 0.1 0.7 0 0.2 0.2 0.3 0.5 0.3s0.6-0.2 0.9-0.5v0.5h0.8z"></path><path d="M12.4 10.5c-0.3 0-0.4 0.2-0.4 0.6v0.4h0.8v-0.4c0-0.4-0.1-0.6-0.4-0.6z"></path><path d="M9.5 10.5c-0.1 0-0.3 0.1-0.4 0.2v2.7c0.1 0.1 0.3 0.2 0.4 0.2 0.2 0 0.3-0.2 0.3-0.6v-1.9c0-0.4-0.1-0.6-0.3-0.6z"></path><path d="M14.4 8.3c-0.2-0.7-0.8-1.3-1.4-1.3-1.6-0.2-3.3-0.2-5-0.2s-3.3 0-5 0.2c-0.6 0-1.2 0.6-1.4 1.3-0.2 1-0.2 2.1-0.2 3.1s0 2.1 0.2 3.1c0.2 0.7 0.7 1.2 1.4 1.3 1.7 0.2 3.3 0.2 5 0.2s3.3 0 5-0.2c0.7-0.1 1.3-0.6 1.4-1.3 0.2-1 0.2-2.1 0.2-3.1s0-2.1-0.2-3.1zM5.2 9.2h-1v5.1h-0.9v-5.1h-0.9v-0.9h2.8v0.9zM7.6 14.3h-0.8v-0.5c-0.3 0.4-0.6 0.5-0.9 0.5s-0.4-0.1-0.5-0.3c0-0.1-0.1-0.3-0.1-0.7v-3.5h0.8v3.2c0 0.2 0 0.3 0 0.3 0 0.1 0.1 0.2 0.2 0.2 0.2 0 0.3-0.1 0.5-0.4v-3.3h0.8v4.5zM10.6 12.9c0 0.4 0 0.7-0.1 0.9-0.1 0.3-0.3 0.5-0.6 0.5s-0.6-0.2-0.8-0.5v0.4h-0.8v-5.9h0.8v1.9c0.3-0.3 0.5-0.5 0.8-0.5s0.5 0.2 0.6 0.5c0.1 0.2 0.1 0.5 0.1 0.9v1.8zM13.6 12.2h-1.6v0.8c0 0.4 0.1 0.6 0.4 0.6 0.2 0 0.3-0.1 0.4-0.3 0 0 0-0.2 0-0.5h0.8v0.1c0 0.3 0 0.4 0 0.5 0 0.2-0.1 0.3-0.2 0.5-0.2 0.3-0.5 0.5-1 0.5-0.4 0-0.7-0.2-1-0.5-0.2-0.2-0.3-0.6-0.3-1v-1.5c0-0.5 0.1-0.8 0.2-1 0.2-0.3 0.5-0.5 1-0.5 0.4 0 0.7 0.2 0.9 0.5 0.2 0.2 0.2 0.6 0.2 1v0.8z"></path></g>
|
|
1167
|
-
</defs></svg>`,
|
|
1191
|
+
</defs></svg>`,v0.register("vaadin",16,Se);/**
|
|
1168
1192
|
* @license
|
|
1169
1193
|
* Copyright 2017 Google LLC
|
|
1170
1194
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1171
|
-
*/const u0=(h,e)=>{var t,a;const i=h._$AN;if(i===void 0)return!1;for(const s of i)(a=(t=s)._$AO)===null||a===void 0||a.call(t,e,!1),u0(s,e);return!0},
|
|
1195
|
+
*/const u0=(h,e)=>{var t,a;const i=h._$AN;if(i===void 0)return!1;for(const s of i)(a=(t=s)._$AO)===null||a===void 0||a.call(t,e,!1),u0(s,e);return!0},k0=h=>{let e,t;do{if((e=h._$AM)===void 0)break;t=e._$AN,t.delete(h),h=e}while(t?.size===0)},Pe=h=>{for(let e;e=h._$AM;h=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(h))break;t.add(h),Ji(e)}};function Gi(h){this._$AN!==void 0?(k0(this),this._$AM=h,Pe(this)):this._$AM=h}function Ki(h,e=!1,t=0){const a=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(a))for(let s=t;s<a.length;s++)u0(a[s],!1),k0(a[s]);else a!=null&&(u0(a,!1),k0(a));else u0(this,h)}const Ji=h=>{var e,t,a,i;h.type==mt.CHILD&&((e=(a=h)._$AP)!==null&&e!==void 0||(a._$AP=Ki),(t=(i=h)._$AQ)!==null&&t!==void 0||(i._$AQ=Gi))};class Zi extends ze{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,a){super._$AT(e,t,a),Pe(this),this.isConnected=e._$AU}_$AO(e,t=!0){var a,i;e!==this.isConnected&&(this.isConnected=e,e?(a=this.reconnected)===null||a===void 0||a.call(this):(i=this.disconnected)===null||i===void 0||i.call(this)),t&&(u0(this,e),k0(this))}setValue(e){if(qi(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}/**
|
|
1172
1196
|
* @license
|
|
1173
1197
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
1174
1198
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1175
|
-
*/const
|
|
1176
|
-
* @license
|
|
1177
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1178
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1179
|
-
*/class ts extends Xi{addRenderer(){this.element.renderer=(e,t,a)=>{this.renderRenderer(e,a.item,a,t)}}runRenderer(){this.element.requestContentUpdate()}removeRenderer(){this.element.renderer=null}}const es=ye(ts);/**
|
|
1180
|
-
* @license
|
|
1181
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1182
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1183
|
-
*/function Ne(h){const e=customElements.get(h.is);if(!e)customElements.define(h.is,h);else{const t=e.version;t&&h.version&&t===h.version?console.warn(`The component ${h.is} has been loaded twice`):console.error(`Tried to define ${h.is} version ${h.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
|
|
1184
|
-
* @license
|
|
1185
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1186
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1187
|
-
*/class hs extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.0"}}Ne(hs);/**
|
|
1188
|
-
* @license
|
|
1189
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1190
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1191
|
-
*/const as=h=>class extends h{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,a,i){super.attributeChangedCallback(t,a,i),t==="theme"&&this._set_theme(i)}};/**
|
|
1192
|
-
* @license
|
|
1193
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1194
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1195
|
-
*/const Le=[];function $e(h){return h&&Object.prototype.hasOwnProperty.call(h,"__themes")}function is(h){return $e(customElements.get(h))}function ss(h=[]){return[h].flat(1/0).filter(e=>e instanceof k?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function At(h,e,t={}){h&&is(h)&&console.warn(`The custom element definition for "${h}"
|
|
1196
|
-
was finalized before a style module was registered.
|
|
1197
|
-
Make sure to add component specific style modules before
|
|
1198
|
-
importing the corresponding custom element.`),e=ss(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(h,e,t):Le.push({themeFor:h,styles:e,include:t.include,moduleId:t.moduleId})}function Ct(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Le}function os(h,e){return(h||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function ns(h=""){let e=0;return h.startsWith("lumo-")||h.startsWith("material-")?e=1:h.startsWith("vaadin-")&&(e=2),e}function Re(h){const e=[];return h.include&&[].concat(h.include).forEach(t=>{const a=Ct().find(i=>i.moduleId===t);a?e.push(...Re(a),...a.styles):console.warn(`Included moduleId ${t} not found in style registry`)},h.styles),e}function ls(h,e){const t=document.createElement("style");t.innerHTML=h.map(a=>a.cssText).join(`
|
|
1199
|
-
`),e.content.appendChild(t)}function rs(h){const e=`${h}-default-theme`,t=Ct().filter(a=>a.moduleId!==e&&os(a.themeFor,h)).map(a=>({...a,styles:[...Re(a),...a.styles],includePriority:ns(a.moduleId)})).sort((a,i)=>i.includePriority-a.includePriority);return t.length>0?t:Ct().filter(a=>a.moduleId===e)}const ds=h=>class extends as(h){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;!t||$e(this)||ls(this.getStylesForThis(),t)}static finalizeStyles(t){const a=this.getStylesForThis();return t?[...super.finalizeStyles(t),...a]:a}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype),a=(t?t.constructor.__themes:[])||[];this.__themes=[...a,...rs(this.is)];const i=this.__themes.flatMap(s=>s.styles);return i.filter((s,o)=>o===i.lastIndexOf(s))}};/**
|
|
1199
|
+
*/const Ie=Symbol("valueNotInitialized");class Qi extends Zi{constructor(e){if(super(e),e.type!==mt.ELEMENT)throw new Error(`\`${this.constructor.name}\` must be bound to an element.`);this.previousValue=Ie}render(e,t){return _}update(e,[t,a]){return this.hasChanged(a)&&(this.host=e.options&&e.options.host,this.element=e.element,this.renderer=t,this.previousValue===Ie?this.addRenderer():this.runRenderer(),this.previousValue=Array.isArray(a)?[...a]:a),_}reconnected(){this.addRenderer()}disconnected(){this.removeRenderer()}addRenderer(){throw new Error("The `addRenderer` method must be implemented.")}runRenderer(){throw new Error("The `runRenderer` method must be implemented.")}removeRenderer(){throw new Error("The `removeRenderer` method must be implemented.")}renderRenderer(e,...t){const a=this.renderer.call(this.host,...t);J0(a,e,{host:this.host})}hasChanged(e){return Array.isArray(e)?!Array.isArray(this.previousValue)||this.previousValue.length!==e.length?!0:e.some((t,a)=>t!==this.previousValue[a]):this.previousValue!==e}}/**
|
|
1200
1200
|
* @license
|
|
1201
1201
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1202
1202
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1203
|
-
*/
|
|
1204
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},L0=(h,...e)=>{cs(`lumo-${h}`,e)};/**
|
|
1203
|
+
*/class Xi extends Qi{addRenderer(){this.element.renderer=(e,t,a)=>{this.renderRenderer(e,a.item,a,t)}}runRenderer(){this.element.requestContentUpdate()}removeRenderer(){this.element.renderer=null}}const ts=Me(Xi);/**
|
|
1205
1204
|
* @license
|
|
1206
1205
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1207
1206
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1208
|
-
*/const
|
|
1207
|
+
*/const es=f`
|
|
1209
1208
|
:host {
|
|
1210
1209
|
/* Base (background) */
|
|
1211
1210
|
--lumo-base-color: #fff;
|
|
@@ -1290,7 +1289,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1290
1289
|
--lumo-disabled-text-color: GrayText;
|
|
1291
1290
|
}
|
|
1292
1291
|
}
|
|
1293
|
-
`;
|
|
1292
|
+
`;W("color-props",es);const hs=f`
|
|
1294
1293
|
[theme~='dark'] {
|
|
1295
1294
|
/* Base (background) */
|
|
1296
1295
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -1405,30 +1404,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1405
1404
|
background-color: var(--lumo-contrast-10pct);
|
|
1406
1405
|
border-radius: var(--lumo-border-radius-m);
|
|
1407
1406
|
}
|
|
1408
|
-
`;
|
|
1409
|
-
* @license
|
|
1410
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1411
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1412
|
-
*/const us=u`
|
|
1413
|
-
:host {
|
|
1414
|
-
--lumo-size-xs: 1.625rem;
|
|
1415
|
-
--lumo-size-s: 1.875rem;
|
|
1416
|
-
--lumo-size-m: 2.25rem;
|
|
1417
|
-
--lumo-size-l: 2.75rem;
|
|
1418
|
-
--lumo-size-xl: 3.5rem;
|
|
1419
|
-
|
|
1420
|
-
/* Icons */
|
|
1421
|
-
--lumo-icon-size-s: 1.25em;
|
|
1422
|
-
--lumo-icon-size-m: 1.5em;
|
|
1423
|
-
--lumo-icon-size-l: 2.25em;
|
|
1424
|
-
/* For backwards compatibility */
|
|
1425
|
-
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
1426
|
-
}
|
|
1427
|
-
`;L0("sizing-props",us);/**
|
|
1407
|
+
`;T("",hs,{moduleId:"lumo-color"});/**
|
|
1428
1408
|
* @license
|
|
1429
1409
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1430
1410
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1431
|
-
*/const
|
|
1411
|
+
*/const as=f`
|
|
1432
1412
|
:host {
|
|
1433
1413
|
/* Border radius */
|
|
1434
1414
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -1445,17 +1425,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1445
1425
|
/* Clickable element cursor */
|
|
1446
1426
|
--lumo-clickable-cursor: default;
|
|
1447
1427
|
}
|
|
1448
|
-
`;
|
|
1428
|
+
`;f`
|
|
1449
1429
|
html {
|
|
1450
1430
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
1451
1431
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
1452
1432
|
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
1453
1433
|
}
|
|
1454
|
-
`,
|
|
1434
|
+
`,W("style-props",as);/**
|
|
1455
1435
|
* @license
|
|
1456
1436
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1457
1437
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1458
|
-
*/const
|
|
1438
|
+
*/const is=f`
|
|
1459
1439
|
:host {
|
|
1460
1440
|
/* prettier-ignore */
|
|
1461
1441
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -1475,7 +1455,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1475
1455
|
--lumo-line-height-s: 1.375;
|
|
1476
1456
|
--lumo-line-height-m: 1.625;
|
|
1477
1457
|
}
|
|
1478
|
-
`,
|
|
1458
|
+
`,ss=f`
|
|
1479
1459
|
body,
|
|
1480
1460
|
:host {
|
|
1481
1461
|
font-family: var(--lumo-font-family);
|
|
@@ -1567,7 +1547,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1567
1547
|
border-left: none;
|
|
1568
1548
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1569
1549
|
}
|
|
1570
|
-
`;
|
|
1550
|
+
`;T("",ss,{moduleId:"lumo-typography"}),W("typography-props",is);/**
|
|
1551
|
+
* @license
|
|
1552
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1553
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1554
|
+
*/const ns=h=>class extends h{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,a,i){super.attributeChangedCallback(t,a,i),t==="theme"&&this._set_theme(i)}};/**
|
|
1555
|
+
* @license
|
|
1556
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1557
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1558
|
+
*/const Te=[];function Oe(h){return h&&Object.prototype.hasOwnProperty.call(h,"__themes")}function os(h){return Oe(customElements.get(h))}function rs(h=[]){return[h].flat(1/0).filter(e=>e instanceof O?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function ls(h,e,t={}){h&&os(h)&&console.warn(`The custom element definition for "${h}"
|
|
1559
|
+
was finalized before a style module was registered.
|
|
1560
|
+
Make sure to add component specific style modules before
|
|
1561
|
+
importing the corresponding custom element.`),e=rs(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(h,e,t):Te.push({themeFor:h,styles:e,include:t.include,moduleId:t.moduleId})}function yt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Te}function ds(h,e){return(h||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function cs(h=""){let e=0;return h.startsWith("lumo-")||h.startsWith("material-")?e=1:h.startsWith("vaadin-")&&(e=2),e}function ke(h){const e=[];return h.include&&[].concat(h.include).forEach(t=>{const a=yt().find(i=>i.moduleId===t);a?e.push(...ke(a),...a.styles):console.warn(`Included moduleId ${t} not found in style registry`)},h.styles),e}function vs(h,e){const t=document.createElement("style");t.innerHTML=h.map(a=>a.cssText).join(`
|
|
1562
|
+
`),e.content.appendChild(t)}function ps(h){const e=`${h}-default-theme`,t=yt().filter(a=>a.moduleId!==e&&ds(a.themeFor,h)).map(a=>({...a,styles:[...ke(a),...a.styles],includePriority:cs(a.moduleId)})).sort((a,i)=>i.includePriority-a.includePriority);return t.length>0?t:yt().filter(a=>a.moduleId===e)}const us=h=>class extends ns(h){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;!t||Oe(this)||vs(this.getStylesForThis(),t)}static finalizeStyles(t){const a=this.getStylesForThis();return t?[...super.finalizeStyles(t),...a]:a}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype),a=(t?t.constructor.__themes:[])||[];this.__themes=[...a,...ps(this.is)];const i=this.__themes.flatMap(s=>s.styles);return i.filter((s,n)=>n===i.lastIndexOf(s))}};ls("vaadin-input-container",f`
|
|
1571
1563
|
:host {
|
|
1572
1564
|
background-color: var(--lumo-contrast-10pct);
|
|
1573
1565
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -1738,11 +1730,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1738
1730
|
* @license
|
|
1739
1731
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1740
1732
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1741
|
-
*/
|
|
1733
|
+
*/function fs(h){const e=customElements.get(h.is);if(!e)customElements.define(h.is,h);else{const t=e.version;t&&h.version&&t===h.version?console.warn(`The component ${h.is} has been loaded twice`):console.error(`Tried to define ${h.is} version ${h.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
|
|
1734
|
+
* @license
|
|
1735
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1736
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1737
|
+
*/const E=[];function wt(h,e,t=h.getAttribute("dir")){e?h.setAttribute("dir",e):t!=null&&h.removeAttribute("dir")}function xt(){return document.documentElement.getAttribute("dir")}function gs(){const h=xt();E.forEach(e=>{wt(e,h)})}new MutationObserver(gs).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const _s=h=>class extends h{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),wt(this,xt(),null))}attributeChangedCallback(t,a,i){if(super.attributeChangedCallback(t,a,i),t!=="dir")return;const s=xt(),n=i===s&&E.indexOf(this)===-1,o=!i&&a&&E.indexOf(this)===-1;n||o?(this.__subscribe(),wt(this,s,i)):i!==s&&a===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=E.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,a,i){i==="dir"&&a===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,a,i)}_attributeToProperty(t,a,i){t==="dir"&&!a?this.dir="":super._attributeToProperty(t,a,i)}__subscribe(){E.includes(this)||E.push(this)}__unsubscribe(){E.includes(this)&&E.splice(E.indexOf(this),1)}};/**
|
|
1742
1738
|
* @license
|
|
1743
1739
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1744
1740
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1745
|
-
*/class
|
|
1741
|
+
*/class ms extends us(_s(V)){static get is(){return"vaadin-input-container"}static get template(){return G`
|
|
1746
1742
|
<style>
|
|
1747
1743
|
:host {
|
|
1748
1744
|
display: flex;
|
|
@@ -1812,677 +1808,205 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1812
1808
|
<slot name="prefix"></slot>
|
|
1813
1809
|
<slot></slot>
|
|
1814
1810
|
<slot name="suffix"></slot>
|
|
1815
|
-
`}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}}
|
|
1811
|
+
`}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}}fs(ms);/**
|
|
1816
1812
|
* @license
|
|
1817
|
-
* Copyright (c)
|
|
1813
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1818
1814
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1819
|
-
*/
|
|
1815
|
+
*/const Ms=f`
|
|
1816
|
+
:host {
|
|
1817
|
+
/* Square */
|
|
1818
|
+
--lumo-space-xs: 0.25rem;
|
|
1819
|
+
--lumo-space-s: 0.5rem;
|
|
1820
|
+
--lumo-space-m: 1rem;
|
|
1821
|
+
--lumo-space-l: 1.5rem;
|
|
1822
|
+
--lumo-space-xl: 2.5rem;
|
|
1823
|
+
|
|
1824
|
+
/* Wide */
|
|
1825
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
1826
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
1827
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
1828
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
1829
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
1830
|
+
|
|
1831
|
+
/* Tall */
|
|
1832
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
1833
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
1834
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
1835
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
1836
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
1837
|
+
}
|
|
1838
|
+
`;W("spacing-props",Ms);/**
|
|
1820
1839
|
* @license
|
|
1821
1840
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1822
1841
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1823
|
-
*/
|
|
1842
|
+
*/const zs=f`
|
|
1843
|
+
@font-face {
|
|
1844
|
+
font-family: 'lumo-icons';
|
|
1845
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
1846
|
+
format('woff');
|
|
1847
|
+
font-weight: normal;
|
|
1848
|
+
font-style: normal;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
html {
|
|
1852
|
+
--lumo-icons-align-center: '\\ea01';
|
|
1853
|
+
--lumo-icons-align-left: '\\ea02';
|
|
1854
|
+
--lumo-icons-align-right: '\\ea03';
|
|
1855
|
+
--lumo-icons-angle-down: '\\ea04';
|
|
1856
|
+
--lumo-icons-angle-left: '\\ea05';
|
|
1857
|
+
--lumo-icons-angle-right: '\\ea06';
|
|
1858
|
+
--lumo-icons-angle-up: '\\ea07';
|
|
1859
|
+
--lumo-icons-arrow-down: '\\ea08';
|
|
1860
|
+
--lumo-icons-arrow-left: '\\ea09';
|
|
1861
|
+
--lumo-icons-arrow-right: '\\ea0a';
|
|
1862
|
+
--lumo-icons-arrow-up: '\\ea0b';
|
|
1863
|
+
--lumo-icons-bar-chart: '\\ea0c';
|
|
1864
|
+
--lumo-icons-bell: '\\ea0d';
|
|
1865
|
+
--lumo-icons-calendar: '\\ea0e';
|
|
1866
|
+
--lumo-icons-checkmark: '\\ea0f';
|
|
1867
|
+
--lumo-icons-chevron-down: '\\ea10';
|
|
1868
|
+
--lumo-icons-chevron-left: '\\ea11';
|
|
1869
|
+
--lumo-icons-chevron-right: '\\ea12';
|
|
1870
|
+
--lumo-icons-chevron-up: '\\ea13';
|
|
1871
|
+
--lumo-icons-clock: '\\ea14';
|
|
1872
|
+
--lumo-icons-cog: '\\ea15';
|
|
1873
|
+
--lumo-icons-cross: '\\ea16';
|
|
1874
|
+
--lumo-icons-download: '\\ea17';
|
|
1875
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
1876
|
+
--lumo-icons-edit: '\\ea19';
|
|
1877
|
+
--lumo-icons-error: '\\ea1a';
|
|
1878
|
+
--lumo-icons-eye: '\\ea1b';
|
|
1879
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
1880
|
+
--lumo-icons-menu: '\\ea1d';
|
|
1881
|
+
--lumo-icons-minus: '\\ea1e';
|
|
1882
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
1883
|
+
--lumo-icons-phone: '\\ea20';
|
|
1884
|
+
--lumo-icons-photo: '\\ea21';
|
|
1885
|
+
--lumo-icons-play: '\\ea22';
|
|
1886
|
+
--lumo-icons-plus: '\\ea23';
|
|
1887
|
+
--lumo-icons-redo: '\\ea24';
|
|
1888
|
+
--lumo-icons-reload: '\\ea25';
|
|
1889
|
+
--lumo-icons-search: '\\ea26';
|
|
1890
|
+
--lumo-icons-undo: '\\ea27';
|
|
1891
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
1892
|
+
--lumo-icons-upload: '\\ea29';
|
|
1893
|
+
--lumo-icons-user: '\\ea2a';
|
|
1894
|
+
}
|
|
1895
|
+
`;W("font-icons",zs);/**
|
|
1824
1896
|
* @license
|
|
1825
1897
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1826
1898
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1827
|
-
*/const
|
|
1899
|
+
*/const bs=[];function ys(h){return h&&Object.prototype.hasOwnProperty.call(h,"__themes")}function ws(h){return ys(customElements.get(h))}function xs(h=[]){return[h].flat(1/0).filter(e=>e instanceof O?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Cs(h,e,t={}){h&&ws(h)&&console.warn(`The custom element definition for "${h}"
|
|
1828
1900
|
was finalized before a style module was registered.
|
|
1829
1901
|
Make sure to add component specific style modules before
|
|
1830
|
-
importing the corresponding custom element.`),e=
|
|
1902
|
+
importing the corresponding custom element.`),e=xs(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(h,e,t):bs.push({themeFor:h,styles:e,include:t.include,moduleId:t.moduleId})}const Ne=f`
|
|
1903
|
+
:host {
|
|
1904
|
+
display: flex;
|
|
1905
|
+
align-items: center;
|
|
1906
|
+
box-sizing: border-box;
|
|
1907
|
+
font-family: var(--lumo-font-family);
|
|
1908
|
+
font-size: var(--lumo-font-size-m);
|
|
1909
|
+
line-height: var(--lumo-line-height-xs);
|
|
1910
|
+
padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
|
|
1911
|
+
var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
1912
|
+
min-height: var(--lumo-size-m);
|
|
1913
|
+
outline: none;
|
|
1914
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1915
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1916
|
+
-webkit-font-smoothing: antialiased;
|
|
1917
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1918
|
+
-webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
/* Checkmark */
|
|
1922
|
+
[part='checkmark']::before {
|
|
1923
|
+
display: var(--_lumo-item-selected-icon-display, none);
|
|
1924
|
+
content: var(--lumo-icons-checkmark);
|
|
1925
|
+
font-family: lumo-icons;
|
|
1926
|
+
font-size: var(--lumo-icon-size-m);
|
|
1927
|
+
line-height: 1;
|
|
1928
|
+
font-weight: normal;
|
|
1929
|
+
width: 1em;
|
|
1930
|
+
height: 1em;
|
|
1931
|
+
margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
|
|
1932
|
+
color: var(--lumo-primary-text-color);
|
|
1933
|
+
flex: none;
|
|
1934
|
+
opacity: 0;
|
|
1935
|
+
transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), opacity 0.1s;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
:host([selected]) [part='checkmark']::before {
|
|
1939
|
+
opacity: 1;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
:host([active]:not([selected])) [part='checkmark']::before {
|
|
1943
|
+
transform: scale(0.8);
|
|
1944
|
+
opacity: 0;
|
|
1945
|
+
transition-duration: 0s;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
[part='content'] {
|
|
1949
|
+
flex: auto;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
/* Disabled */
|
|
1953
|
+
:host([disabled]) {
|
|
1954
|
+
color: var(--lumo-disabled-text-color);
|
|
1955
|
+
cursor: default;
|
|
1956
|
+
pointer-events: none;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
/* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
|
|
1960
|
+
@media (any-hover: hover) {
|
|
1961
|
+
:host(:hover:not([disabled])) {
|
|
1962
|
+
background-color: var(--lumo-primary-color-10pct);
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
:host([focus-ring]:not([disabled])) {
|
|
1966
|
+
box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
/* RTL specific styles */
|
|
1971
|
+
:host([dir='rtl']) {
|
|
1972
|
+
padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
|
|
1973
|
+
padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
/* Slotted icons */
|
|
1977
|
+
:host ::slotted(vaadin-icon) {
|
|
1978
|
+
width: var(--lumo-icon-size-m);
|
|
1979
|
+
height: var(--lumo-icon-size-m);
|
|
1980
|
+
}
|
|
1981
|
+
`;Cs("vaadin-item",Ne,{moduleId:"lumo-item"});/**
|
|
1831
1982
|
* @license
|
|
1832
1983
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1833
1984
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1834
|
-
*/const
|
|
1835
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},Y=(h,...e)=>{Es(`lumo-${h}`,e)};/**
|
|
1985
|
+
*/const As=h=>class extends h{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,a,i){super.attributeChangedCallback(t,a,i),t==="theme"&&this._set_theme(i)}};/**
|
|
1836
1986
|
* @license
|
|
1837
1987
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1838
1988
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1839
|
-
*/const Ss=
|
|
1989
|
+
*/const $e=[];function Le(h){return h&&Object.prototype.hasOwnProperty.call(h,"__themes")}function Es(h){return Le(customElements.get(h))}function Ss(h=[]){return[h].flat(1/0).filter(e=>e instanceof O?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function f0(h,e,t={}){h&&Es(h)&&console.warn(`The custom element definition for "${h}"
|
|
1990
|
+
was finalized before a style module was registered.
|
|
1991
|
+
Make sure to add component specific style modules before
|
|
1992
|
+
importing the corresponding custom element.`),e=Ss(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(h,e,t):$e.push({themeFor:h,styles:e,include:t.include,moduleId:t.moduleId})}function Ct(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():$e}function Ps(h,e){return(h||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Is(h=""){let e=0;return h.startsWith("lumo-")||h.startsWith("material-")?e=1:h.startsWith("vaadin-")&&(e=2),e}function Ve(h){const e=[];return h.include&&[].concat(h.include).forEach(t=>{const a=Ct().find(i=>i.moduleId===t);a?e.push(...Ve(a),...a.styles):console.warn(`Included moduleId ${t} not found in style registry`)},h.styles),e}function Ts(h,e){const t=document.createElement("style");t.innerHTML=h.map(a=>a.cssText).join(`
|
|
1993
|
+
`),e.content.appendChild(t)}function Os(h){const e=`${h}-default-theme`,t=Ct().filter(a=>a.moduleId!==e&&Ps(a.themeFor,h)).map(a=>({...a,styles:[...Ve(a),...a.styles],includePriority:Is(a.moduleId)})).sort((a,i)=>i.includePriority-a.includePriority);return t.length>0?t:Ct().filter(a=>a.moduleId===e)}const At=h=>class extends As(h){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;!t||Le(this)||Ts(this.getStylesForThis(),t)}static finalizeStyles(t){const a=this.getStylesForThis();return t?[...super.finalizeStyles(t),...a]:a}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype),a=(t?t.constructor.__themes:[])||[];this.__themes=[...a,...Os(this.is)];const i=this.__themes.flatMap(s=>s.styles);return i.filter((s,n)=>n===i.lastIndexOf(s))}},ks=f`
|
|
1840
1994
|
:host {
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
1846
|
-
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
1847
|
-
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
1848
|
-
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
1849
|
-
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
1850
|
-
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
1851
|
-
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
1852
|
-
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
1853
|
-
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
1854
|
-
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
1855
|
-
--lumo-tint: #fff;
|
|
1856
|
-
|
|
1857
|
-
/* Shade */
|
|
1858
|
-
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
1859
|
-
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
1860
|
-
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
1861
|
-
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
1862
|
-
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
1863
|
-
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
1864
|
-
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
1865
|
-
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
1866
|
-
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
1867
|
-
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
1868
|
-
--lumo-shade: hsl(214, 35%, 15%);
|
|
1869
|
-
|
|
1870
|
-
/* Contrast */
|
|
1871
|
-
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
1872
|
-
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
1873
|
-
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
1874
|
-
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
1875
|
-
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
1876
|
-
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
1877
|
-
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
1878
|
-
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
1879
|
-
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
1880
|
-
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
1881
|
-
--lumo-contrast: var(--lumo-shade);
|
|
1882
|
-
|
|
1883
|
-
/* Text */
|
|
1884
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
1885
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
1886
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
1887
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
1888
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
1889
|
-
|
|
1890
|
-
/* Primary */
|
|
1891
|
-
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
1892
|
-
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
1893
|
-
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
1894
|
-
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
1895
|
-
--lumo-primary-contrast-color: #fff;
|
|
1896
|
-
|
|
1897
|
-
/* Error */
|
|
1898
|
-
--lumo-error-color: hsl(3, 85%, 48%);
|
|
1899
|
-
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
1900
|
-
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
1901
|
-
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
1902
|
-
--lumo-error-contrast-color: #fff;
|
|
1903
|
-
|
|
1904
|
-
/* Success */
|
|
1905
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
1906
|
-
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
1907
|
-
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
1908
|
-
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
1909
|
-
--lumo-success-contrast-color: #fff;
|
|
1910
|
-
|
|
1911
|
-
/* Warning */
|
|
1912
|
-
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
1913
|
-
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
1914
|
-
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
1915
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
/* forced-colors mode adjustments */
|
|
1919
|
-
@media (forced-colors: active) {
|
|
1920
|
-
html {
|
|
1921
|
-
--lumo-disabled-text-color: GrayText;
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
`;Y("color-props",Ss);const Ps=u`
|
|
1925
|
-
[theme~='dark'] {
|
|
1926
|
-
/* Base (background) */
|
|
1927
|
-
--lumo-base-color: hsl(214, 35%, 21%);
|
|
1928
|
-
|
|
1929
|
-
/* Tint */
|
|
1930
|
-
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
1931
|
-
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
1932
|
-
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
1933
|
-
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
1934
|
-
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
1935
|
-
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
1936
|
-
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
1937
|
-
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
1938
|
-
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
1939
|
-
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
1940
|
-
--lumo-tint: hsl(214, 100%, 98%);
|
|
1941
|
-
|
|
1942
|
-
/* Shade */
|
|
1943
|
-
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
1944
|
-
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
1945
|
-
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
1946
|
-
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
1947
|
-
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
1948
|
-
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
1949
|
-
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
1950
|
-
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
1951
|
-
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
1952
|
-
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
1953
|
-
--lumo-shade: hsl(214, 33%, 13%);
|
|
1954
|
-
|
|
1955
|
-
/* Contrast */
|
|
1956
|
-
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
1957
|
-
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
1958
|
-
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
1959
|
-
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
1960
|
-
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
1961
|
-
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
1962
|
-
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
1963
|
-
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
1964
|
-
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
1965
|
-
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
1966
|
-
--lumo-contrast: var(--lumo-tint);
|
|
1967
|
-
|
|
1968
|
-
/* Text */
|
|
1969
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
1970
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
1971
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
1972
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
1973
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
1974
|
-
|
|
1975
|
-
/* Primary */
|
|
1976
|
-
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
1977
|
-
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
1978
|
-
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
1979
|
-
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
1980
|
-
--lumo-primary-contrast-color: #fff;
|
|
1981
|
-
|
|
1982
|
-
/* Error */
|
|
1983
|
-
--lumo-error-color: hsl(3, 79%, 49%);
|
|
1984
|
-
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
1985
|
-
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
1986
|
-
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
1987
|
-
|
|
1988
|
-
/* Success */
|
|
1989
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
1990
|
-
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
1991
|
-
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
1992
|
-
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
1993
|
-
|
|
1994
|
-
/* Warning */
|
|
1995
|
-
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
1996
|
-
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
1997
|
-
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
1998
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
|
-
html {
|
|
2002
|
-
color: var(--lumo-body-text-color);
|
|
2003
|
-
background-color: var(--lumo-base-color);
|
|
2004
|
-
color-scheme: light;
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
[theme~='dark'] {
|
|
2008
|
-
color: var(--lumo-body-text-color);
|
|
2009
|
-
background-color: var(--lumo-base-color);
|
|
2010
|
-
color-scheme: dark;
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
h1,
|
|
2014
|
-
h2,
|
|
2015
|
-
h3,
|
|
2016
|
-
h4,
|
|
2017
|
-
h5,
|
|
2018
|
-
h6 {
|
|
2019
|
-
color: var(--lumo-header-text-color);
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
a:where(:any-link) {
|
|
2023
|
-
color: var(--lumo-primary-text-color);
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
a:not(:any-link) {
|
|
2027
|
-
color: var(--lumo-disabled-text-color);
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
|
-
blockquote {
|
|
2031
|
-
color: var(--lumo-secondary-text-color);
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
|
-
code,
|
|
2035
|
-
pre {
|
|
2036
|
-
background-color: var(--lumo-contrast-10pct);
|
|
2037
|
-
border-radius: var(--lumo-border-radius-m);
|
|
2038
|
-
}
|
|
2039
|
-
`;T("",Ps,{moduleId:"lumo-color"});/**
|
|
2040
|
-
* @license
|
|
2041
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2042
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2043
|
-
*/const Is=u`
|
|
2044
|
-
:host {
|
|
2045
|
-
/* Square */
|
|
2046
|
-
--lumo-space-xs: 0.25rem;
|
|
2047
|
-
--lumo-space-s: 0.5rem;
|
|
2048
|
-
--lumo-space-m: 1rem;
|
|
2049
|
-
--lumo-space-l: 1.5rem;
|
|
2050
|
-
--lumo-space-xl: 2.5rem;
|
|
2051
|
-
|
|
2052
|
-
/* Wide */
|
|
2053
|
-
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
2054
|
-
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
2055
|
-
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
2056
|
-
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
2057
|
-
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
2058
|
-
|
|
2059
|
-
/* Tall */
|
|
2060
|
-
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
2061
|
-
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
2062
|
-
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
2063
|
-
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
2064
|
-
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
2065
|
-
}
|
|
2066
|
-
`;Y("spacing-props",Is);/**
|
|
2067
|
-
* @license
|
|
2068
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2069
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2070
|
-
*/const Ts=u`
|
|
2071
|
-
:host {
|
|
2072
|
-
/* Border radius */
|
|
2073
|
-
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
2074
|
-
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
2075
|
-
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
2076
|
-
|
|
2077
|
-
/* Shadow */
|
|
2078
|
-
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
2079
|
-
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
2080
|
-
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
2081
|
-
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
2082
|
-
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
2083
|
-
|
|
2084
|
-
/* Clickable element cursor */
|
|
2085
|
-
--lumo-clickable-cursor: default;
|
|
2086
|
-
}
|
|
2087
|
-
`;u`
|
|
2088
|
-
html {
|
|
2089
|
-
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
2090
|
-
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
2091
|
-
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
2092
|
-
}
|
|
2093
|
-
`,Y("style-props",Ts);/**
|
|
2094
|
-
* @license
|
|
2095
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2096
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2097
|
-
*/function ks(h){const e=customElements.get(h.is);if(!e)customElements.define(h.is,h);else{const t=e.version;t&&h.version&&t===h.version?console.warn(`The component ${h.is} has been loaded twice`):console.error(`Tried to define ${h.is} version ${h.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
|
|
2098
|
-
* @license
|
|
2099
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2100
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2101
|
-
*/class Os extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.0"}}ks(Os);/**
|
|
2102
|
-
* @license
|
|
2103
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2104
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2105
|
-
*/const Ns=[];function Ls(h){return h&&Object.prototype.hasOwnProperty.call(h,"__themes")}function $s(h){return Ls(customElements.get(h))}function Rs(h=[]){return[h].flat(1/0).filter(e=>e instanceof k?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function De(h,e,t={}){h&&$s(h)&&console.warn(`The custom element definition for "${h}"
|
|
2106
|
-
was finalized before a style module was registered.
|
|
2107
|
-
Make sure to add component specific style modules before
|
|
2108
|
-
importing the corresponding custom element.`),e=Rs(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(h,e,t):Ns.push({themeFor:h,styles:e,include:t.include,moduleId:t.moduleId})}/**
|
|
2109
|
-
* @license
|
|
2110
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2111
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2112
|
-
*/const Ds=(h,...e)=>{const t=document.createElement("style");t.id=h,t.textContent=e.map(a=>a.toString()).join(`
|
|
2113
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},f0=(h,...e)=>{Ds(`lumo-${h}`,e)};/**
|
|
2114
|
-
* @license
|
|
2115
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2116
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2117
|
-
*/const Vs=u`
|
|
2118
|
-
@font-face {
|
|
2119
|
-
font-family: 'lumo-icons';
|
|
2120
|
-
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
2121
|
-
format('woff');
|
|
2122
|
-
font-weight: normal;
|
|
2123
|
-
font-style: normal;
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
html {
|
|
2127
|
-
--lumo-icons-align-center: '\\ea01';
|
|
2128
|
-
--lumo-icons-align-left: '\\ea02';
|
|
2129
|
-
--lumo-icons-align-right: '\\ea03';
|
|
2130
|
-
--lumo-icons-angle-down: '\\ea04';
|
|
2131
|
-
--lumo-icons-angle-left: '\\ea05';
|
|
2132
|
-
--lumo-icons-angle-right: '\\ea06';
|
|
2133
|
-
--lumo-icons-angle-up: '\\ea07';
|
|
2134
|
-
--lumo-icons-arrow-down: '\\ea08';
|
|
2135
|
-
--lumo-icons-arrow-left: '\\ea09';
|
|
2136
|
-
--lumo-icons-arrow-right: '\\ea0a';
|
|
2137
|
-
--lumo-icons-arrow-up: '\\ea0b';
|
|
2138
|
-
--lumo-icons-bar-chart: '\\ea0c';
|
|
2139
|
-
--lumo-icons-bell: '\\ea0d';
|
|
2140
|
-
--lumo-icons-calendar: '\\ea0e';
|
|
2141
|
-
--lumo-icons-checkmark: '\\ea0f';
|
|
2142
|
-
--lumo-icons-chevron-down: '\\ea10';
|
|
2143
|
-
--lumo-icons-chevron-left: '\\ea11';
|
|
2144
|
-
--lumo-icons-chevron-right: '\\ea12';
|
|
2145
|
-
--lumo-icons-chevron-up: '\\ea13';
|
|
2146
|
-
--lumo-icons-clock: '\\ea14';
|
|
2147
|
-
--lumo-icons-cog: '\\ea15';
|
|
2148
|
-
--lumo-icons-cross: '\\ea16';
|
|
2149
|
-
--lumo-icons-download: '\\ea17';
|
|
2150
|
-
--lumo-icons-dropdown: '\\ea18';
|
|
2151
|
-
--lumo-icons-edit: '\\ea19';
|
|
2152
|
-
--lumo-icons-error: '\\ea1a';
|
|
2153
|
-
--lumo-icons-eye: '\\ea1b';
|
|
2154
|
-
--lumo-icons-eye-disabled: '\\ea1c';
|
|
2155
|
-
--lumo-icons-menu: '\\ea1d';
|
|
2156
|
-
--lumo-icons-minus: '\\ea1e';
|
|
2157
|
-
--lumo-icons-ordered-list: '\\ea1f';
|
|
2158
|
-
--lumo-icons-phone: '\\ea20';
|
|
2159
|
-
--lumo-icons-photo: '\\ea21';
|
|
2160
|
-
--lumo-icons-play: '\\ea22';
|
|
2161
|
-
--lumo-icons-plus: '\\ea23';
|
|
2162
|
-
--lumo-icons-redo: '\\ea24';
|
|
2163
|
-
--lumo-icons-reload: '\\ea25';
|
|
2164
|
-
--lumo-icons-search: '\\ea26';
|
|
2165
|
-
--lumo-icons-undo: '\\ea27';
|
|
2166
|
-
--lumo-icons-unordered-list: '\\ea28';
|
|
2167
|
-
--lumo-icons-upload: '\\ea29';
|
|
2168
|
-
--lumo-icons-user: '\\ea2a';
|
|
2169
|
-
}
|
|
2170
|
-
`;f0("font-icons",Vs);/**
|
|
2171
|
-
* @license
|
|
2172
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2173
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2174
|
-
*/const Bs=u`
|
|
2175
|
-
:host {
|
|
2176
|
-
--lumo-size-xs: 1.625rem;
|
|
2177
|
-
--lumo-size-s: 1.875rem;
|
|
2178
|
-
--lumo-size-m: 2.25rem;
|
|
2179
|
-
--lumo-size-l: 2.75rem;
|
|
2180
|
-
--lumo-size-xl: 3.5rem;
|
|
2181
|
-
|
|
2182
|
-
/* Icons */
|
|
2183
|
-
--lumo-icon-size-s: 1.25em;
|
|
2184
|
-
--lumo-icon-size-m: 1.5em;
|
|
2185
|
-
--lumo-icon-size-l: 2.25em;
|
|
2186
|
-
/* For backwards compatibility */
|
|
2187
|
-
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
2188
|
-
}
|
|
2189
|
-
`;f0("sizing-props",Bs);/**
|
|
2190
|
-
* @license
|
|
2191
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2192
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2193
|
-
*/const Fs=u`
|
|
2194
|
-
:host {
|
|
2195
|
-
/* Square */
|
|
2196
|
-
--lumo-space-xs: 0.25rem;
|
|
2197
|
-
--lumo-space-s: 0.5rem;
|
|
2198
|
-
--lumo-space-m: 1rem;
|
|
2199
|
-
--lumo-space-l: 1.5rem;
|
|
2200
|
-
--lumo-space-xl: 2.5rem;
|
|
2201
|
-
|
|
2202
|
-
/* Wide */
|
|
2203
|
-
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
2204
|
-
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
2205
|
-
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
2206
|
-
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
2207
|
-
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
2208
|
-
|
|
2209
|
-
/* Tall */
|
|
2210
|
-
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
2211
|
-
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
2212
|
-
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
2213
|
-
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
2214
|
-
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
2215
|
-
}
|
|
2216
|
-
`;f0("spacing-props",Fs);/**
|
|
2217
|
-
* @license
|
|
2218
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2219
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2220
|
-
*/const Hs=u`
|
|
2221
|
-
:host {
|
|
2222
|
-
/* Border radius */
|
|
2223
|
-
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
2224
|
-
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
2225
|
-
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
2226
|
-
|
|
2227
|
-
/* Shadow */
|
|
2228
|
-
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
2229
|
-
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
2230
|
-
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
2231
|
-
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
2232
|
-
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
2233
|
-
|
|
2234
|
-
/* Clickable element cursor */
|
|
2235
|
-
--lumo-clickable-cursor: default;
|
|
2236
|
-
}
|
|
2237
|
-
`;u`
|
|
2238
|
-
html {
|
|
2239
|
-
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
2240
|
-
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
2241
|
-
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
2242
|
-
}
|
|
2243
|
-
`,f0("style-props",Hs);/**
|
|
2244
|
-
* @license
|
|
2245
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2246
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2247
|
-
*/const Us=u`
|
|
2248
|
-
:host {
|
|
2249
|
-
/* prettier-ignore */
|
|
2250
|
-
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
2251
|
-
|
|
2252
|
-
/* Font sizes */
|
|
2253
|
-
--lumo-font-size-xxs: 0.75rem;
|
|
2254
|
-
--lumo-font-size-xs: 0.8125rem;
|
|
2255
|
-
--lumo-font-size-s: 0.875rem;
|
|
2256
|
-
--lumo-font-size-m: 1rem;
|
|
2257
|
-
--lumo-font-size-l: 1.125rem;
|
|
2258
|
-
--lumo-font-size-xl: 1.375rem;
|
|
2259
|
-
--lumo-font-size-xxl: 1.75rem;
|
|
2260
|
-
--lumo-font-size-xxxl: 2.5rem;
|
|
2261
|
-
|
|
2262
|
-
/* Line heights */
|
|
2263
|
-
--lumo-line-height-xs: 1.25;
|
|
2264
|
-
--lumo-line-height-s: 1.375;
|
|
2265
|
-
--lumo-line-height-m: 1.625;
|
|
2266
|
-
}
|
|
2267
|
-
`,qs=u`
|
|
2268
|
-
body,
|
|
2269
|
-
:host {
|
|
2270
|
-
font-family: var(--lumo-font-family);
|
|
2271
|
-
font-size: var(--lumo-font-size-m);
|
|
2272
|
-
line-height: var(--lumo-line-height-m);
|
|
2273
|
-
-webkit-text-size-adjust: 100%;
|
|
2274
|
-
-webkit-font-smoothing: antialiased;
|
|
2275
|
-
-moz-osx-font-smoothing: grayscale;
|
|
2276
|
-
}
|
|
2277
|
-
|
|
2278
|
-
small,
|
|
2279
|
-
[theme~='font-size-s'] {
|
|
2280
|
-
font-size: var(--lumo-font-size-s);
|
|
2281
|
-
line-height: var(--lumo-line-height-s);
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
|
-
[theme~='font-size-xs'] {
|
|
2285
|
-
font-size: var(--lumo-font-size-xs);
|
|
2286
|
-
line-height: var(--lumo-line-height-xs);
|
|
2287
|
-
}
|
|
2288
|
-
|
|
2289
|
-
:where(h1, h2, h3, h4, h5, h6) {
|
|
2290
|
-
font-weight: 600;
|
|
2291
|
-
line-height: var(--lumo-line-height-xs);
|
|
2292
|
-
margin-block: 0;
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
:where(h1) {
|
|
2296
|
-
font-size: var(--lumo-font-size-xxxl);
|
|
2297
|
-
}
|
|
2298
|
-
|
|
2299
|
-
:where(h2) {
|
|
2300
|
-
font-size: var(--lumo-font-size-xxl);
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
:where(h3) {
|
|
2304
|
-
font-size: var(--lumo-font-size-xl);
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
|
-
:where(h4) {
|
|
2308
|
-
font-size: var(--lumo-font-size-l);
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
|
-
:where(h5) {
|
|
2312
|
-
font-size: var(--lumo-font-size-m);
|
|
2313
|
-
}
|
|
2314
|
-
|
|
2315
|
-
:where(h6) {
|
|
2316
|
-
font-size: var(--lumo-font-size-xs);
|
|
2317
|
-
text-transform: uppercase;
|
|
2318
|
-
letter-spacing: 0.03em;
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
p,
|
|
2322
|
-
blockquote {
|
|
2323
|
-
margin-top: 0.5em;
|
|
2324
|
-
margin-bottom: 0.75em;
|
|
2325
|
-
}
|
|
2326
|
-
|
|
2327
|
-
a {
|
|
2328
|
-
text-decoration: none;
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
|
-
a:where(:any-link):hover {
|
|
2332
|
-
text-decoration: underline;
|
|
2333
|
-
}
|
|
2334
|
-
|
|
2335
|
-
hr {
|
|
2336
|
-
display: block;
|
|
2337
|
-
align-self: stretch;
|
|
2338
|
-
height: 1px;
|
|
2339
|
-
border: 0;
|
|
2340
|
-
padding: 0;
|
|
2341
|
-
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
2342
|
-
background-color: var(--lumo-contrast-10pct);
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
blockquote {
|
|
2346
|
-
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
b,
|
|
2350
|
-
strong {
|
|
2351
|
-
font-weight: 600;
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
/* RTL specific styles */
|
|
2355
|
-
blockquote[dir='rtl'] {
|
|
2356
|
-
border-left: none;
|
|
2357
|
-
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
2358
|
-
}
|
|
2359
|
-
`;De("",qs,{moduleId:"lumo-typography"}),f0("typography-props",Us);const Ve=u`
|
|
2360
|
-
:host {
|
|
2361
|
-
display: flex;
|
|
2362
|
-
align-items: center;
|
|
2363
|
-
box-sizing: border-box;
|
|
2364
|
-
font-family: var(--lumo-font-family);
|
|
2365
|
-
font-size: var(--lumo-font-size-m);
|
|
2366
|
-
line-height: var(--lumo-line-height-xs);
|
|
2367
|
-
padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
|
|
2368
|
-
var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
2369
|
-
min-height: var(--lumo-size-m);
|
|
2370
|
-
outline: none;
|
|
2371
|
-
border-radius: var(--lumo-border-radius-m);
|
|
2372
|
-
cursor: var(--lumo-clickable-cursor);
|
|
2373
|
-
-webkit-font-smoothing: antialiased;
|
|
2374
|
-
-moz-osx-font-smoothing: grayscale;
|
|
2375
|
-
-webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
/* Checkmark */
|
|
2379
|
-
[part='checkmark']::before {
|
|
2380
|
-
display: var(--_lumo-item-selected-icon-display, none);
|
|
2381
|
-
content: var(--lumo-icons-checkmark);
|
|
2382
|
-
font-family: lumo-icons;
|
|
2383
|
-
font-size: var(--lumo-icon-size-m);
|
|
2384
|
-
line-height: 1;
|
|
2385
|
-
font-weight: normal;
|
|
2386
|
-
width: 1em;
|
|
2387
|
-
height: 1em;
|
|
2388
|
-
margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
|
|
2389
|
-
color: var(--lumo-primary-text-color);
|
|
2390
|
-
flex: none;
|
|
2391
|
-
opacity: 0;
|
|
2392
|
-
transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), opacity 0.1s;
|
|
2393
|
-
}
|
|
2394
|
-
|
|
2395
|
-
:host([selected]) [part='checkmark']::before {
|
|
2396
|
-
opacity: 1;
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
:host([active]:not([selected])) [part='checkmark']::before {
|
|
2400
|
-
transform: scale(0.8);
|
|
2401
|
-
opacity: 0;
|
|
2402
|
-
transition-duration: 0s;
|
|
2403
|
-
}
|
|
2404
|
-
|
|
2405
|
-
[part='content'] {
|
|
2406
|
-
flex: auto;
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
|
-
/* Disabled */
|
|
2410
|
-
:host([disabled]) {
|
|
2411
|
-
color: var(--lumo-disabled-text-color);
|
|
2412
|
-
cursor: default;
|
|
2413
|
-
pointer-events: none;
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
/* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
|
|
2417
|
-
@media (any-hover: hover) {
|
|
2418
|
-
:host(:hover:not([disabled])) {
|
|
2419
|
-
background-color: var(--lumo-primary-color-10pct);
|
|
2420
|
-
}
|
|
2421
|
-
|
|
2422
|
-
:host([focus-ring]:not([disabled])) {
|
|
2423
|
-
box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
2424
|
-
}
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
|
-
/* RTL specific styles */
|
|
2428
|
-
:host([dir='rtl']) {
|
|
2429
|
-
padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
|
|
2430
|
-
padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
2431
|
-
}
|
|
2432
|
-
|
|
2433
|
-
/* Slotted icons */
|
|
2434
|
-
:host ::slotted(vaadin-icon) {
|
|
2435
|
-
width: var(--lumo-icon-size-m);
|
|
2436
|
-
height: var(--lumo-icon-size-m);
|
|
2437
|
-
}
|
|
2438
|
-
`;De("vaadin-item",Ve,{moduleId:"lumo-item"});/**
|
|
2439
|
-
* @license
|
|
2440
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2441
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2442
|
-
*/const js=h=>class extends h{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,a,i){super.attributeChangedCallback(t,a,i),t==="theme"&&this._set_theme(i)}};/**
|
|
2443
|
-
* @license
|
|
2444
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2445
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2446
|
-
*/const Be=[];function Fe(h){return h&&Object.prototype.hasOwnProperty.call(h,"__themes")}function Ws(h){return Fe(customElements.get(h))}function Gs(h=[]){return[h].flat(1/0).filter(e=>e instanceof k?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function g0(h,e,t={}){h&&Ws(h)&&console.warn(`The custom element definition for "${h}"
|
|
2447
|
-
was finalized before a style module was registered.
|
|
2448
|
-
Make sure to add component specific style modules before
|
|
2449
|
-
importing the corresponding custom element.`),e=Gs(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(h,e,t):Be.push({themeFor:h,styles:e,include:t.include,moduleId:t.moduleId})}function Pt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Be}function Ys(h,e){return(h||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Ks(h=""){let e=0;return h.startsWith("lumo-")||h.startsWith("material-")?e=1:h.startsWith("vaadin-")&&(e=2),e}function He(h){const e=[];return h.include&&[].concat(h.include).forEach(t=>{const a=Pt().find(i=>i.moduleId===t);a?e.push(...He(a),...a.styles):console.warn(`Included moduleId ${t} not found in style registry`)},h.styles),e}function Zs(h,e){const t=document.createElement("style");t.innerHTML=h.map(a=>a.cssText).join(`
|
|
2450
|
-
`),e.content.appendChild(t)}function Js(h){const e=`${h}-default-theme`,t=Pt().filter(a=>a.moduleId!==e&&Ys(a.themeFor,h)).map(a=>({...a,styles:[...He(a),...a.styles],includePriority:Ks(a.moduleId)})).sort((a,i)=>i.includePriority-a.includePriority);return t.length>0?t:Pt().filter(a=>a.moduleId===e)}const It=h=>class extends js(h){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;!t||Fe(this)||Zs(this.getStylesForThis(),t)}static finalizeStyles(t){const a=this.getStylesForThis();return t?[...super.finalizeStyles(t),...a]:a}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype),a=(t?t.constructor.__themes:[])||[];this.__themes=[...a,...Js(this.is)];const i=this.__themes.flatMap(s=>s.styles);return i.filter((s,o)=>o===i.lastIndexOf(s))}},Qs=u`
|
|
2451
|
-
:host {
|
|
2452
|
-
transition: background-color 100ms;
|
|
2453
|
-
overflow: hidden;
|
|
2454
|
-
--_lumo-item-selected-icon-display: block;
|
|
2455
|
-
}
|
|
1995
|
+
transition: background-color 100ms;
|
|
1996
|
+
overflow: hidden;
|
|
1997
|
+
--_lumo-item-selected-icon-display: block;
|
|
1998
|
+
}
|
|
2456
1999
|
|
|
2457
2000
|
@media (any-hover: hover) {
|
|
2458
2001
|
:host([focused]:not([disabled])) {
|
|
2459
2002
|
box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
2460
2003
|
}
|
|
2461
2004
|
}
|
|
2462
|
-
`;
|
|
2463
|
-
* @license
|
|
2464
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2465
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2466
|
-
*/const Xs=u`
|
|
2467
|
-
:host {
|
|
2468
|
-
--lumo-size-xs: 1.625rem;
|
|
2469
|
-
--lumo-size-s: 1.875rem;
|
|
2470
|
-
--lumo-size-m: 2.25rem;
|
|
2471
|
-
--lumo-size-l: 2.75rem;
|
|
2472
|
-
--lumo-size-xl: 3.5rem;
|
|
2473
|
-
|
|
2474
|
-
/* Icons */
|
|
2475
|
-
--lumo-icon-size-s: 1.25em;
|
|
2476
|
-
--lumo-icon-size-m: 1.5em;
|
|
2477
|
-
--lumo-icon-size-l: 2.25em;
|
|
2478
|
-
/* For backwards compatibility */
|
|
2479
|
-
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
2480
|
-
}
|
|
2481
|
-
`;Y("sizing-props",Xs);/**
|
|
2005
|
+
`;f0("vaadin-combo-box-item",[Ne,ks],{moduleId:"lumo-combo-box-item"});/**
|
|
2482
2006
|
* @license
|
|
2483
2007
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
2484
2008
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2485
|
-
*/const
|
|
2009
|
+
*/const Ns=f`
|
|
2486
2010
|
[part~='loader'] {
|
|
2487
2011
|
box-sizing: border-box;
|
|
2488
2012
|
width: var(--lumo-icon-size-s);
|
|
@@ -2526,123 +2050,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2526
2050
|
* @license
|
|
2527
2051
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2528
2052
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2529
|
-
*/const
|
|
2530
|
-
:host {
|
|
2531
|
-
/* prettier-ignore */
|
|
2532
|
-
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
2533
|
-
|
|
2534
|
-
/* Font sizes */
|
|
2535
|
-
--lumo-font-size-xxs: 0.75rem;
|
|
2536
|
-
--lumo-font-size-xs: 0.8125rem;
|
|
2537
|
-
--lumo-font-size-s: 0.875rem;
|
|
2538
|
-
--lumo-font-size-m: 1rem;
|
|
2539
|
-
--lumo-font-size-l: 1.125rem;
|
|
2540
|
-
--lumo-font-size-xl: 1.375rem;
|
|
2541
|
-
--lumo-font-size-xxl: 1.75rem;
|
|
2542
|
-
--lumo-font-size-xxxl: 2.5rem;
|
|
2543
|
-
|
|
2544
|
-
/* Line heights */
|
|
2545
|
-
--lumo-line-height-xs: 1.25;
|
|
2546
|
-
--lumo-line-height-s: 1.375;
|
|
2547
|
-
--lumo-line-height-m: 1.625;
|
|
2548
|
-
}
|
|
2549
|
-
`,ho=u`
|
|
2550
|
-
body,
|
|
2551
|
-
:host {
|
|
2552
|
-
font-family: var(--lumo-font-family);
|
|
2553
|
-
font-size: var(--lumo-font-size-m);
|
|
2554
|
-
line-height: var(--lumo-line-height-m);
|
|
2555
|
-
-webkit-text-size-adjust: 100%;
|
|
2556
|
-
-webkit-font-smoothing: antialiased;
|
|
2557
|
-
-moz-osx-font-smoothing: grayscale;
|
|
2558
|
-
}
|
|
2559
|
-
|
|
2560
|
-
small,
|
|
2561
|
-
[theme~='font-size-s'] {
|
|
2562
|
-
font-size: var(--lumo-font-size-s);
|
|
2563
|
-
line-height: var(--lumo-line-height-s);
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2566
|
-
[theme~='font-size-xs'] {
|
|
2567
|
-
font-size: var(--lumo-font-size-xs);
|
|
2568
|
-
line-height: var(--lumo-line-height-xs);
|
|
2569
|
-
}
|
|
2570
|
-
|
|
2571
|
-
:where(h1, h2, h3, h4, h5, h6) {
|
|
2572
|
-
font-weight: 600;
|
|
2573
|
-
line-height: var(--lumo-line-height-xs);
|
|
2574
|
-
margin-block: 0;
|
|
2575
|
-
}
|
|
2576
|
-
|
|
2577
|
-
:where(h1) {
|
|
2578
|
-
font-size: var(--lumo-font-size-xxxl);
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
:where(h2) {
|
|
2582
|
-
font-size: var(--lumo-font-size-xxl);
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
:where(h3) {
|
|
2586
|
-
font-size: var(--lumo-font-size-xl);
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
|
-
:where(h4) {
|
|
2590
|
-
font-size: var(--lumo-font-size-l);
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
:where(h5) {
|
|
2594
|
-
font-size: var(--lumo-font-size-m);
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
|
-
:where(h6) {
|
|
2598
|
-
font-size: var(--lumo-font-size-xs);
|
|
2599
|
-
text-transform: uppercase;
|
|
2600
|
-
letter-spacing: 0.03em;
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
p,
|
|
2604
|
-
blockquote {
|
|
2605
|
-
margin-top: 0.5em;
|
|
2606
|
-
margin-bottom: 0.75em;
|
|
2607
|
-
}
|
|
2608
|
-
|
|
2609
|
-
a {
|
|
2610
|
-
text-decoration: none;
|
|
2611
|
-
}
|
|
2612
|
-
|
|
2613
|
-
a:where(:any-link):hover {
|
|
2614
|
-
text-decoration: underline;
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
hr {
|
|
2618
|
-
display: block;
|
|
2619
|
-
align-self: stretch;
|
|
2620
|
-
height: 1px;
|
|
2621
|
-
border: 0;
|
|
2622
|
-
padding: 0;
|
|
2623
|
-
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
2624
|
-
background-color: var(--lumo-contrast-10pct);
|
|
2625
|
-
}
|
|
2626
|
-
|
|
2627
|
-
blockquote {
|
|
2628
|
-
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
2629
|
-
}
|
|
2630
|
-
|
|
2631
|
-
b,
|
|
2632
|
-
strong {
|
|
2633
|
-
font-weight: 600;
|
|
2634
|
-
}
|
|
2635
|
-
|
|
2636
|
-
/* RTL specific styles */
|
|
2637
|
-
blockquote[dir='rtl'] {
|
|
2638
|
-
border-left: none;
|
|
2639
|
-
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
2640
|
-
}
|
|
2641
|
-
`;T("",ho,{moduleId:"lumo-typography"}),Y("typography-props",eo);/**
|
|
2642
|
-
* @license
|
|
2643
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2644
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2645
|
-
*/const Tt=u`
|
|
2053
|
+
*/const Et=f`
|
|
2646
2054
|
:host {
|
|
2647
2055
|
top: var(--lumo-space-m);
|
|
2648
2056
|
right: var(--lumo-space-m);
|
|
@@ -2705,11 +2113,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2705
2113
|
opacity: 1;
|
|
2706
2114
|
}
|
|
2707
2115
|
}
|
|
2708
|
-
`;T("",
|
|
2116
|
+
`;T("",Et,{moduleId:"lumo-overlay"});/**
|
|
2709
2117
|
* @license
|
|
2710
2118
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2711
2119
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2712
|
-
*/const
|
|
2120
|
+
*/const St=f`
|
|
2713
2121
|
:host([opening]),
|
|
2714
2122
|
:host([closing]) {
|
|
2715
2123
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -2739,7 +2147,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2739
2147
|
opacity: 0;
|
|
2740
2148
|
}
|
|
2741
2149
|
}
|
|
2742
|
-
`;T("",
|
|
2150
|
+
`;T("",St,{moduleId:"lumo-menu-overlay-core"});const $s=f`
|
|
2743
2151
|
/* Small viewport (bottom sheet) styles */
|
|
2744
2152
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
2745
2153
|
@media (max-width: 420px), (max-height: 420px) {
|
|
@@ -2801,7 +2209,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2801
2209
|
transform: translateY(150%);
|
|
2802
2210
|
}
|
|
2803
2211
|
}
|
|
2804
|
-
`;T("",[
|
|
2212
|
+
`;T("",[Et,St,$s],{moduleId:"lumo-menu-overlay"});const Ls=f`
|
|
2805
2213
|
[part='content'] {
|
|
2806
2214
|
padding: 0;
|
|
2807
2215
|
}
|
|
@@ -2822,7 +2230,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2822
2230
|
:host([bottom-aligned]) [part~='overlay'] {
|
|
2823
2231
|
margin-bottom: var(--lumo-space-xs);
|
|
2824
2232
|
}
|
|
2825
|
-
`,
|
|
2233
|
+
`,Vs=f`
|
|
2826
2234
|
[part~='loader'] {
|
|
2827
2235
|
position: absolute;
|
|
2828
2236
|
z-index: 1;
|
|
@@ -2841,7 +2249,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2841
2249
|
margin-inline-start: 0;
|
|
2842
2250
|
margin-inline-end: auto;
|
|
2843
2251
|
}
|
|
2844
|
-
`;
|
|
2252
|
+
`;f0("vaadin-combo-box-overlay",[Et,St,Ls,Ns,Vs,f`
|
|
2845
2253
|
:host {
|
|
2846
2254
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
2847
2255
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
@@ -2850,64 +2258,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2850
2258
|
* @license
|
|
2851
2259
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2852
2260
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2853
|
-
*/const
|
|
2854
|
-
@font-face {
|
|
2855
|
-
font-family: 'lumo-icons';
|
|
2856
|
-
src: url(data:application/font-woff;charset=utf-8;base64,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)
|
|
2857
|
-
format('woff');
|
|
2858
|
-
font-weight: normal;
|
|
2859
|
-
font-style: normal;
|
|
2860
|
-
}
|
|
2861
|
-
|
|
2862
|
-
html {
|
|
2863
|
-
--lumo-icons-align-center: '\\ea01';
|
|
2864
|
-
--lumo-icons-align-left: '\\ea02';
|
|
2865
|
-
--lumo-icons-align-right: '\\ea03';
|
|
2866
|
-
--lumo-icons-angle-down: '\\ea04';
|
|
2867
|
-
--lumo-icons-angle-left: '\\ea05';
|
|
2868
|
-
--lumo-icons-angle-right: '\\ea06';
|
|
2869
|
-
--lumo-icons-angle-up: '\\ea07';
|
|
2870
|
-
--lumo-icons-arrow-down: '\\ea08';
|
|
2871
|
-
--lumo-icons-arrow-left: '\\ea09';
|
|
2872
|
-
--lumo-icons-arrow-right: '\\ea0a';
|
|
2873
|
-
--lumo-icons-arrow-up: '\\ea0b';
|
|
2874
|
-
--lumo-icons-bar-chart: '\\ea0c';
|
|
2875
|
-
--lumo-icons-bell: '\\ea0d';
|
|
2876
|
-
--lumo-icons-calendar: '\\ea0e';
|
|
2877
|
-
--lumo-icons-checkmark: '\\ea0f';
|
|
2878
|
-
--lumo-icons-chevron-down: '\\ea10';
|
|
2879
|
-
--lumo-icons-chevron-left: '\\ea11';
|
|
2880
|
-
--lumo-icons-chevron-right: '\\ea12';
|
|
2881
|
-
--lumo-icons-chevron-up: '\\ea13';
|
|
2882
|
-
--lumo-icons-clock: '\\ea14';
|
|
2883
|
-
--lumo-icons-cog: '\\ea15';
|
|
2884
|
-
--lumo-icons-cross: '\\ea16';
|
|
2885
|
-
--lumo-icons-download: '\\ea17';
|
|
2886
|
-
--lumo-icons-dropdown: '\\ea18';
|
|
2887
|
-
--lumo-icons-edit: '\\ea19';
|
|
2888
|
-
--lumo-icons-error: '\\ea1a';
|
|
2889
|
-
--lumo-icons-eye: '\\ea1b';
|
|
2890
|
-
--lumo-icons-eye-disabled: '\\ea1c';
|
|
2891
|
-
--lumo-icons-menu: '\\ea1d';
|
|
2892
|
-
--lumo-icons-minus: '\\ea1e';
|
|
2893
|
-
--lumo-icons-ordered-list: '\\ea1f';
|
|
2894
|
-
--lumo-icons-phone: '\\ea20';
|
|
2895
|
-
--lumo-icons-photo: '\\ea21';
|
|
2896
|
-
--lumo-icons-play: '\\ea22';
|
|
2897
|
-
--lumo-icons-plus: '\\ea23';
|
|
2898
|
-
--lumo-icons-redo: '\\ea24';
|
|
2899
|
-
--lumo-icons-reload: '\\ea25';
|
|
2900
|
-
--lumo-icons-search: '\\ea26';
|
|
2901
|
-
--lumo-icons-undo: '\\ea27';
|
|
2902
|
-
--lumo-icons-unordered-list: '\\ea28';
|
|
2903
|
-
--lumo-icons-upload: '\\ea29';
|
|
2904
|
-
--lumo-icons-user: '\\ea2a';
|
|
2905
|
-
}
|
|
2906
|
-
`;Y("font-icons",oo);/**
|
|
2907
|
-
* @license
|
|
2908
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2909
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2910
|
-
*/const Ue=u`
|
|
2261
|
+
*/const Re=f`
|
|
2911
2262
|
[part$='button'] {
|
|
2912
2263
|
flex: none;
|
|
2913
2264
|
width: 1em;
|
|
@@ -2934,11 +2285,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2934
2285
|
font-family: 'lumo-icons';
|
|
2935
2286
|
display: block;
|
|
2936
2287
|
}
|
|
2937
|
-
`;T("",
|
|
2288
|
+
`;T("",Re,{moduleId:"lumo-field-button"});/**
|
|
2938
2289
|
* @license
|
|
2939
2290
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2940
2291
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2941
|
-
*/const
|
|
2292
|
+
*/const Rs=f`
|
|
2942
2293
|
:host([has-helper]) [part='helper-text']::before {
|
|
2943
2294
|
content: '';
|
|
2944
2295
|
display: block;
|
|
@@ -2993,7 +2344,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2993
2344
|
* @license
|
|
2994
2345
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2995
2346
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2996
|
-
*/const
|
|
2347
|
+
*/const De=f`
|
|
2997
2348
|
[part='label'] {
|
|
2998
2349
|
align-self: flex-start;
|
|
2999
2350
|
color: var(--lumo-secondary-text-color);
|
|
@@ -3089,11 +2440,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3089
2440
|
margin-left: 0;
|
|
3090
2441
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
3091
2442
|
}
|
|
3092
|
-
`;T("",
|
|
2443
|
+
`;T("",De,{moduleId:"lumo-required-field"});/**
|
|
3093
2444
|
* @license
|
|
3094
2445
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3095
2446
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3096
|
-
*/const
|
|
2447
|
+
*/const Ds=f`
|
|
3097
2448
|
:host {
|
|
3098
2449
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
3099
2450
|
color: var(--lumo-body-text-color);
|
|
@@ -3227,7 +2578,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3227
2578
|
[part='clear-button']::before {
|
|
3228
2579
|
content: var(--lumo-icons-cross);
|
|
3229
2580
|
}
|
|
3230
|
-
`,
|
|
2581
|
+
`,Be=[De,Re,Rs,Ds];T("",Be,{moduleId:"lumo-input-field-shared-styles"});const Bs=f`
|
|
3231
2582
|
:host {
|
|
3232
2583
|
outline: none;
|
|
3233
2584
|
}
|
|
@@ -3235,23 +2586,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3235
2586
|
[part='toggle-button']::before {
|
|
3236
2587
|
content: var(--lumo-icons-dropdown);
|
|
3237
2588
|
}
|
|
3238
|
-
`;
|
|
2589
|
+
`;f0("vaadin-combo-box",[Be,Bs],{moduleId:"lumo-combo-box"});/**
|
|
3239
2590
|
* @license
|
|
3240
2591
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3241
2592
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3242
|
-
*/function
|
|
2593
|
+
*/function N0(h){const e=customElements.get(h.is);if(!e)customElements.define(h.is,h);else{const t=e.version;t&&h.version&&t===h.version?console.warn(`The component ${h.is} has been loaded twice`):console.error(`Tried to define ${h.is} version ${h.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
|
|
3243
2594
|
* @license
|
|
3244
2595
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3245
2596
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3246
|
-
*/const S=[];function
|
|
2597
|
+
*/const S=[];function Pt(h,e,t=h.getAttribute("dir")){e?h.setAttribute("dir",e):t!=null&&h.removeAttribute("dir")}function It(){return document.documentElement.getAttribute("dir")}function Fs(){const h=It();S.forEach(e=>{Pt(e,h)})}new MutationObserver(Fs).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Tt=h=>class extends h{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Pt(this,It(),null))}attributeChangedCallback(t,a,i){if(super.attributeChangedCallback(t,a,i),t!=="dir")return;const s=It(),n=i===s&&S.indexOf(this)===-1,o=!i&&a&&S.indexOf(this)===-1;n||o?(this.__subscribe(),Pt(this,s,i)):i!==s&&a===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=S.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,a,i){i==="dir"&&a===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,a,i)}_attributeToProperty(t,a,i){t==="dir"&&!a?this.dir="":super._attributeToProperty(t,a,i)}__subscribe(){S.includes(this)||S.push(this)}__unsubscribe(){S.includes(this)&&S.splice(S.indexOf(this),1)}};/**
|
|
3247
2598
|
* @license
|
|
3248
2599
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3249
2600
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3250
|
-
*/const
|
|
2601
|
+
*/const Hs=h=>class extends h{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item.*, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,a,i){t==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(t,a,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){if(!this.renderer)return;const t={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,t)}__rendererOrItemChanged(t,a,i){i===void 0||a===void 0||(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,a){a||(this.textContent=t)}};/**
|
|
3251
2602
|
* @license
|
|
3252
2603
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3253
2604
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3254
|
-
*/class
|
|
2605
|
+
*/class Us extends Hs(At(Tt(V))){static get template(){return G`
|
|
3255
2606
|
<style>
|
|
3256
2607
|
:host {
|
|
3257
2608
|
display: block;
|
|
@@ -3265,7 +2616,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3265
2616
|
<div part="content">
|
|
3266
2617
|
<slot></slot>
|
|
3267
2618
|
</div>
|
|
3268
|
-
`}static get is(){return"vaadin-combo-box-item"}}
|
|
2619
|
+
`}static get is(){return"vaadin-combo-box-item"}}N0(Us);/**
|
|
3269
2620
|
@license
|
|
3270
2621
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3271
2622
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3273,51 +2624,51 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3273
2624
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3274
2625
|
Code distributed by Google as part of the polymer project is also
|
|
3275
2626
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3276
|
-
*/let
|
|
2627
|
+
*/let Ot=!1,qs=[],Fe=[];function js(){Ot=!0,requestAnimationFrame(function(){Ot=!1,Ws(qs),setTimeout(function(){Ys(Fe)})})}function Ws(h){for(;h.length;)He(h.shift())}function Ys(h){for(let e=0,t=h.length;e<t;e++)He(h.shift())}function He(h){const e=h[0],t=h[1],a=h[2];try{t.apply(e,a)}catch(i){setTimeout(()=>{throw i})}}function Gs(h,e,t){Ot||js(),Fe.push([h,e,t])}/**
|
|
3277
2628
|
* @license
|
|
3278
2629
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3279
2630
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3280
|
-
*/const
|
|
2631
|
+
*/const $0=h=>h.test(navigator.userAgent),kt=h=>h.test(navigator.platform),Ks=h=>h.test(navigator.vendor);$0(/Android/u),$0(/Chrome/u)&&Ks(/Google Inc/u),$0(/Firefox/u);const Js=kt(/^iPad/u)||kt(/^Mac/u)&&navigator.maxTouchPoints>1,Zs=kt(/^iPhone/u)||Js;$0(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}})();/**
|
|
3281
2632
|
* @license
|
|
3282
2633
|
* Copyright (c) 2017 Anton Korzunov
|
|
3283
2634
|
* SPDX-License-Identifier: MIT
|
|
3284
|
-
*/let K=new WeakMap,
|
|
2635
|
+
*/let K=new WeakMap,L0=new WeakMap,V0={},Nt=0;const Ue=h=>h&&h.nodeType===Node.ELEMENT_NODE,$t=(...h)=>{console.error(`Error: ${h.join(" ")}. Skip setting aria-hidden.`)},Qs=(h,e)=>Ue(h)?e.map(t=>{if(!Ue(t))return $t(t,"is not a valid element"),null;let a=t;for(;a&&a!==h;){if(h.contains(a))return t;a=a.getRootNode().host}return $t(t,"is not contained inside",h),null}).filter(t=>Boolean(t)):($t(h,"is not a valid element"),[]),Xs=(h,e,t,a)=>{const i=Qs(e,Array.isArray(h)?h:[h]);V0[t]||(V0[t]=new WeakMap);const s=V0[t],n=[],o=new Set,r=new Set(i),l=c=>{if(!c||o.has(c))return;o.add(c);const v=c.assignedSlot;v&&l(v),l(c.parentNode||c.host)};i.forEach(l);const d=c=>{if(!c||r.has(c))return;const v=c.shadowRoot;(v?[...c.children,...v.children]:[...c.children]).forEach(u=>{if(!["template","script","style"].includes(u.localName))if(o.has(u))d(u);else{const M=u.getAttribute(a),w=M!==null&&M!=="false",z=(K.get(u)||0)+1,b=(s.get(u)||0)+1;K.set(u,z),s.set(u,b),n.push(u),z===1&&w&&L0.set(u,!0),b===1&&u.setAttribute(t,"true"),w||u.setAttribute(a,"true")}})};return d(e),o.clear(),Nt+=1,()=>{n.forEach(c=>{const v=K.get(c)-1,p=s.get(c)-1;K.set(c,v),s.set(c,p),v||(L0.has(c)?L0.delete(c):c.removeAttribute(a)),p||c.removeAttribute(t)}),Nt-=1,Nt||(K=new WeakMap,K=new WeakMap,L0=new WeakMap,V0={})}},t2=(h,e=document.body,t="data-aria-hidden")=>{const a=Array.from(Array.isArray(h)?h:[h]);return e&&a.push(...Array.from(e.querySelectorAll("[aria-live]"))),Xs(a,e,t,"aria-hidden")};/**
|
|
3285
2636
|
* @license
|
|
3286
2637
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3287
2638
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3288
|
-
*/class
|
|
2639
|
+
*/class e2{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=t2(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
3289
2640
|
* @license
|
|
3290
2641
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3291
2642
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3292
|
-
*/window.addEventListener("keydown",()=>{},{capture:!0}),window.addEventListener("mousedown",()=>{},{capture:!0});function
|
|
2643
|
+
*/window.addEventListener("keydown",()=>{},{capture:!0}),window.addEventListener("mousedown",()=>{},{capture:!0});function Lt(){let h=document.activeElement||document.body;for(;h.shadowRoot&&h.shadowRoot.activeElement;)h=h.shadowRoot.activeElement;return h}function h2(h){const e=h.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(h);return t.visibility==="hidden"||t.display==="none"}function a2(h,e){const t=Math.max(h.tabIndex,0),a=Math.max(e.tabIndex,0);return t===0||a===0?a>t:t>a}function i2(h,e){const t=[];for(;h.length>0&&e.length>0;)a2(h[0],e[0])?t.push(e.shift()):t.push(h.shift());return t.concat(h,e)}function Vt(h){const e=h.length;if(e<2)return h;const t=Math.ceil(e/2),a=Vt(h.slice(0,t)),i=Vt(h.slice(t));return i2(a,i)}function s2(h){return h.matches('[tabindex="-1"]')?!1:h.matches("input, select, textarea, button, object")?h.matches(":not([disabled])"):h.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function n2(h){return h.getRootNode().activeElement===h}function o2(h){if(!s2(h))return-1;const e=h.getAttribute("tabindex")||0;return Number(e)}function qe(h,e){if(h.nodeType!==Node.ELEMENT_NODE||h2(h))return!1;const t=h,a=o2(t);let i=a>0;a>=0&&e.push(t);let s=[];return t.localName==="slot"?s=t.assignedNodes({flatten:!0}):s=(t.shadowRoot||t).children,[...s].forEach(n=>{i=qe(n,e)||i}),i}function r2(h){const e=[];return qe(h,e)?Vt(e):e}/**
|
|
3293
2644
|
* @license
|
|
3294
2645
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3295
2646
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3296
|
-
*/class
|
|
2647
|
+
*/class l2{saveFocus(e){this.focusNode=e||Lt()}restoreFocus(){const e=this.focusNode;!e||(Lt()===document.body?setTimeout(()=>e.focus()):e.focus(),this.focusNode=null)}}/**
|
|
3297
2648
|
* @license
|
|
3298
2649
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3299
2650
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3300
|
-
*/const
|
|
2651
|
+
*/const Rt=[];class d2{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return r2(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(n2).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Rt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Rt.pop()}__onKeyDown(e){if(!!this.__trapNode&&this===Array.from(Rt).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,a=e?-1:1,i=this.__focusedElementIndex,s=(t.length+i+a)%t.length,n=t[s];n.focus(),n.localName==="input"&&n.select()}}/**
|
|
3301
2652
|
* @license
|
|
3302
2653
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3303
2654
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3304
|
-
*/const
|
|
2655
|
+
*/const c2=m(h=>typeof h.prototype.addController=="function"?h:class extends h{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}});/**
|
|
3305
2656
|
* @license
|
|
3306
2657
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3307
2658
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3308
|
-
*/const
|
|
2659
|
+
*/const v2=h=>class extends c2(h){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new e2(this),this.__focusTrapController=new d2(this),this.__focusRestorationController=new l2}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Lt();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let a=t;const i=t.ownerDocument;for(;a&&a!==i&&a!==this;)a=a.parentNode||a.host;return a===this}};/**
|
|
3309
2660
|
* @license
|
|
3310
2661
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3311
2662
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3312
|
-
*/const
|
|
2663
|
+
*/const R0=()=>Array.from(document.body.children).filter(h=>h instanceof HTMLElement&&h._hasOverlayStackMixin&&!h.hasAttribute("closing")).sort((h,e)=>h.__zIndex-e.__zIndex||0),p2=h=>h===R0().pop(),u2=h=>class extends h{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return p2(this)}bringToFront(){let t="";const a=R0().filter(i=>i!==this).pop();a&&(t=a.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),R0().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=R0();let a;for(;(a=t.pop())&&!(a!==this&&(a.$.overlay.style.removeProperty("pointer-events"),!a.modeless)););}};/**
|
|
3313
2664
|
* @license
|
|
3314
2665
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3315
2666
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3316
|
-
*/const
|
|
2667
|
+
*/const f2=h=>class extends v2(u2(h)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Zs&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const a=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(a),a.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,i=window.innerWidth>t,s=document.documentElement.clientHeight;i&&s>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,a,i,s){const n=this._oldOwner!==a||this._oldModel!==i;this._oldModel=i,this._oldOwner=a;const o=this._oldRenderer!==t;this._oldRenderer=t;const r=this._oldOpened!==s;this._oldOpened=s,o&&(this.innerHTML="",delete this._$litPart$),s&&t&&(o||r||n)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,a){t?(this._saveFocus(),this._animatedOpening(),Gs(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):a&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),a=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&a&&a!=="none"}_enqueueAnimation(t,a){const i=`__${t}Handler`,s=n=>{n&&n.target!==this||(a(),this.removeEventListener("animationend",s),delete this[i])};this[i]=s,this.addEventListener("animationend",s)}_flushAnimation(t){const a=`__${t}Handler`;typeof this[a]=="function"&&this[a]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const a=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(a),this.opened&&!a.defaultPrevented&&this.close(t)}_keydownListener(t){if(!!this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const a=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(a),this.opened&&!a.defaultPrevented&&this.close(t)}}};/**
|
|
3317
2668
|
* @license
|
|
3318
2669
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3319
2670
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3320
|
-
*/const
|
|
2671
|
+
*/const g2=f`
|
|
3321
2672
|
:host {
|
|
3322
2673
|
z-index: 200;
|
|
3323
2674
|
position: fixed;
|
|
@@ -3379,19 +2730,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3379
2730
|
* @license
|
|
3380
2731
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3381
2732
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3382
|
-
*/function
|
|
2733
|
+
*/function _2(h){const e=[];for(;h;){if(h.nodeType===Node.DOCUMENT_NODE){e.push(h);break}if(h.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(h),h=h.host;continue}if(h.assignedSlot){h=h.assignedSlot;continue}h=h.parentNode}return e}/**
|
|
3383
2734
|
* @license
|
|
3384
2735
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3385
2736
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3386
|
-
*/const
|
|
2737
|
+
*/const Dt={start:"top",end:"bottom"},Bt={start:"left",end:"right"},je=new ResizeObserver(h=>{setTimeout(()=>{h.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),m2=h=>class extends h{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=_2(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,a){if(this.__removeUpdatePositionEventListeners(),a&&(a.__overlay=null,je.unobserve(a),t&&(this.__addUpdatePositionEventListeners(),a.__overlay=this,je.observe(a))),t){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(s=>{this.__margins[s]=parseInt(i[s],10)})),this.setAttribute("dir",i.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const t=this.positionTarget.getBoundingClientRect(),a=this.__shouldAlignStartVertically(t);this.style.justifyContent=a?"flex-start":"flex-end";const i=this.__isRTL,s=this.__shouldAlignStartHorizontally(t,i),n=!i&&s||i&&!s;this.style.alignItems=n?"flex-start":"flex-end";const o=this.getBoundingClientRect(),r=this.__calculatePositionInOneDimension(t,o,this.noVerticalOverlap,Dt,this,a),l=this.__calculatePositionInOneDimension(t,o,this.noHorizontalOverlap,Bt,this,s);Object.assign(this.style,r,l),this.toggleAttribute("bottom-aligned",!a),this.toggleAttribute("top-aligned",a),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(t,a){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!a&&this.horizontalAlign==="start"||a&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,i,s,this.__margins,n,this.noHorizontalOverlap,Bt)}__shouldAlignStartVertically(t){const a=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),s=this.verticalAlign==="top";return this.__shouldAlignStart(t,a,i,this.__margins,s,this.noVerticalOverlap,Dt)}__shouldAlignStart(t,a,i,s,n,o,r){const l=i-t[o?r.end:r.start]-s[r.end],d=t[o?r.start:r.end]-s[r.start],c=n?l:d,p=c>(n?d:l)||c>a;return n===p}__adjustBottomProperty(t,a,i){let s;if(t===a.end){if(a.end===Dt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const o=this.__oldViewportHeight-n;s=i-o}this.__oldViewportHeight=n}if(a.end===Bt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const o=this.__oldViewportWidth-n;s=i-o}this.__oldViewportWidth=n}}return s}__calculatePositionInOneDimension(t,a,i,s,n,o){const r=o?s.start:s.end,l=o?s.end:s.start,d=parseFloat(n.style[r]||getComputedStyle(n)[r]),c=this.__adjustBottomProperty(r,s,d),v=a[o?s.start:s.end]-t[i===o?s.end:s.start],p=c?`${c}px`:`${d+v*(o?-1:1)}px`;return{[r]:p,[l]:""}}};/**
|
|
3387
2738
|
* @license
|
|
3388
2739
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3389
2740
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3390
|
-
*/const
|
|
2741
|
+
*/const M2=h=>class extends m2(h){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,a=t&&t.getAttribute("dir");a&&this.setAttribute("dir",a)}_shouldCloseOnOutsideClick(t){const a=t.composedPath();return!a.includes(this.positionTarget)&&!a.includes(this)}_setOverlayWidth(t,a){if(t&&a){const i=this.localName;this.style.setProperty(`--_${i}-default-width`,`${t.clientWidth}px`);const s=getComputedStyle(this._comboBox).getPropertyValue(`--${i}-width`);s===""?this.style.removeProperty(`--${i}-width`):this.style.setProperty(`--${i}-width`,s),this._updatePosition()}}};/**
|
|
3391
2742
|
* @license
|
|
3392
2743
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3393
2744
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3394
|
-
*/const
|
|
2745
|
+
*/const z2=f`
|
|
3395
2746
|
#overlay {
|
|
3396
2747
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
3397
2748
|
}
|
|
@@ -3401,21 +2752,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3401
2752
|
flex-direction: column;
|
|
3402
2753
|
height: 100%;
|
|
3403
2754
|
}
|
|
3404
|
-
`;
|
|
2755
|
+
`;f0("vaadin-combo-box-overlay",[g2,z2],{moduleId:"vaadin-combo-box-overlay-styles"});class b2 extends M2(f2(Tt(At(V)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return G`
|
|
3405
2756
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
3406
2757
|
<div part="overlay" id="overlay">
|
|
3407
2758
|
<div part="loader"></div>
|
|
3408
2759
|
<div part="content" id="content"><slot></slot></div>
|
|
3409
2760
|
</div>
|
|
3410
|
-
`}}
|
|
2761
|
+
`}}N0(b2);/**
|
|
3411
2762
|
* @license
|
|
3412
2763
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3413
2764
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3414
|
-
*/function
|
|
2765
|
+
*/function D0(h,e){return h.split(".").reduce((t,a)=>t?t[a]:void 0,e)}/**
|
|
3415
2766
|
* @license
|
|
3416
2767
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3417
2768
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3418
|
-
*/let
|
|
2769
|
+
*/let y2=0;function We(){return y2++}/**
|
|
3419
2770
|
* @license
|
|
3420
2771
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3421
2772
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3423,11 +2774,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3423
2774
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3424
2775
|
* Code distributed by Google as part of the polymer project is also
|
|
3425
2776
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3426
|
-
*/let
|
|
2777
|
+
*/let Ye=0,Ge=0;const J=[];let Ft=!1;function w2(){Ft=!1;const h=J.length;for(let e=0;e<h;e++){const t=J[e];if(t)try{t()}catch(a){setTimeout(()=>{throw a})}}J.splice(0,h),Ge+=h}const B0={after(h){return{run(e){return window.setTimeout(e,h)},cancel(e){window.clearTimeout(e)}}},run(h,e){return window.setTimeout(h,e)},cancel(h){window.clearTimeout(h)}},F0={run(h){return window.requestAnimationFrame(h)},cancel(h){window.cancelAnimationFrame(h)}},Ke={run(h){return window.requestIdleCallback?window.requestIdleCallback(h):window.setTimeout(h,16)},cancel(h){window.cancelIdleCallback?window.cancelIdleCallback(h):window.clearTimeout(h)}},Je={run(h){Ft||(Ft=!0,queueMicrotask(()=>w2())),J.push(h);const e=Ye;return Ye+=1,e},cancel(h){const e=h-Ge;if(e>=0){if(!J[e])throw new Error(`invalid async handle: ${h}`);J[e]=null}}};/**
|
|
3427
2778
|
* @license
|
|
3428
2779
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3429
2780
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3430
|
-
*/const
|
|
2781
|
+
*/const H0=h=>h.test(navigator.userAgent),Ht=h=>h.test(navigator.platform),x2=h=>h.test(navigator.vendor);H0(/Android/u),H0(/Chrome/u)&&x2(/Google Inc/u),H0(/Firefox/u),Ht(/^iPad/u)||Ht(/^Mac/u)&&navigator.maxTouchPoints>1,Ht(/^iPhone/u);const C2=H0(/^((?!chrome|android).)*safari/iu),Ut=(()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}})();/**
|
|
3431
2782
|
@license
|
|
3432
2783
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3433
2784
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3435,7 +2786,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3435
2786
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3436
2787
|
Code distributed by Google as part of the polymer project is also
|
|
3437
2788
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3438
|
-
*/const
|
|
2789
|
+
*/const g0=new Set;class C{static debounce(e,t,a){return e instanceof C?e._cancelAsync():e=new C,e.setConfig(t,a),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,g0.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),g0.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}}function Ze(h){g0.add(h)}function A2(){const h=Boolean(g0.size);return g0.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),h}const _0=()=>{let h;do h=A2();while(h)};/**
|
|
3439
2790
|
* @license
|
|
3440
2791
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
3441
2792
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3443,23 +2794,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3443
2794
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3444
2795
|
* Code distributed by Google as part of the polymer project is also
|
|
3445
2796
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3446
|
-
*/const
|
|
2797
|
+
*/const Qe=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),E2=Qe&&Qe[1]>=8,Xe=3,S2={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const h=this._virtualCount;return Math.max(0,h-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(h){h=this._clamp(h,0,this._maxVirtualStart),this._virtualStartVal=h},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(h){h%=this._physicalCount,h<0&&(h=this._physicalCount+h),this._physicalStartVal=h},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(h){this._physicalCountVal=h},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let h=this._firstVisibleIndexVal;if(h==null){let e=this._physicalTop+this._scrollOffset;h=this._iterateItems((t,a)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return a})||0,this._firstVisibleIndexVal=h}return h},get lastVisibleIndex(){let h=this._lastVisibleIndexVal;if(h==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,a)=>{e<this._scrollBottom&&(h=a),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=h}return h},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const h=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=h-this._scrollPosition;const t=e>=0;if(this._scrollPosition=h,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const a=Math.round(e/this._physicalAverage);this._virtualStart+=a,this._physicalStart+=a,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const a=this._getReusables(t);t?(this._physicalTop=a.physicalTop,this._virtualStart+=a.indexes.length,this._physicalStart+=a.indexes.length):(this._virtualStart-=a.indexes.length,this._physicalStart-=a.indexes.length),this._update(a.indexes,t?null:a.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Je)}},_getReusables(h){let e,t,a;const i=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,o=this._virtualEnd,r=this._physicalCount;let l=this._physicalTop+this._scrollOffset;const d=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,v=this._scrollBottom;for(h?(e=this._physicalStart,t=c-l):(e=this._physicalEnd,t=d-v);a=this._getPhysicalSizeIncrement(e),t-=a,!(i.length>=r||t<=s);)if(h){if(o+i.length+1>=this._virtualCount||l+a>=c-this._scrollOffset)break;i.push(e),l+=a,e=(e+1)%r}else{if(n-i.length<=0||l+this._physicalSize-a<=v)break;i.push(e),l-=a,e=e===0?r-1:e-1}return{indexes:i,physicalTop:l-this._scrollOffset}},_update(h,e){if(!(h&&h.length===0||this._physicalCount===0)){if(this._assignModels(h),this._updateMetrics(h),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(h){const t=this._clamp(this._physicalCount+h,Xe,this._virtualCount-this._virtualStart)-this._physicalCount;let a=Math.round(this._physicalCount*.5);if(!(t<0)){if(t>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let s=0;s<t;s++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-i)/t,a=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||a===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,a)),Ke):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,a),Je))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const h=this._getReusables(!0);this._physicalTop=h.physicalTop,this._virtualStart+=h.indexes.length,this._physicalStart+=h.indexes.length,this._update(h.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Xe))},_itemsChanged(h){h.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,F0))},_iterateItems(h,e){let t,a,i,s;if(arguments.length===2&&e){for(s=0;s<e.length;s++)if(t=e[s],a=this._computeVidx(t),(i=h.call(this,t,a))!=null)return i}else{for(t=this._physicalStart,a=this._virtualStart;t<this._physicalCount;t++,a++)if((i=h.call(this,t,a))!=null)return i;for(t=0;t<this._physicalStart;t++,a++)if((i=h.call(this,t,a))!=null)return i}},_computeVidx(h){return h>=this._physicalStart?this._virtualStart+(h-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+h},_positionItems(){this._adjustScrollPosition();let h=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${h}px`,0,this._physicalItems[e]),h+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(h){return this._physicalSizes[h]},_adjustScrollPosition(){const h=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(h!==0){this._physicalTop-=h;const e=this._scrollPosition;!E2&&e>0&&this._resetScrollPosition(e-h)}},_resetScrollPosition(h){this.scrollTarget&&h>=0&&(this._scrollTop=h,this._scrollPosition=this._scrollTop)},_updateScrollerSize(h){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(h||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(h){if(typeof h!="number"||h<0||h>this.items.length-1||(_0(),this._physicalCount===0))return;h=this._clamp(h,0,this._virtualCount-1),(!this._isIndexRendered(h)||h>=this._maxVirtualStart)&&(this._virtualStart=h-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,a=0;const i=this._hiddenContentSize;for(;t<h&&a<=i;)a+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+a),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},F0)},_isIndexRendered(h){return h>=this._virtualStart&&h<=this._virtualEnd},_getPhysicalIndex(h){return(this._physicalStart+(h-this._virtualStart))%this._physicalCount},_clamp(h,e,t){return Math.min(t,Math.max(e,h))},_debounce(h,e,t){this._debouncers||(this._debouncers={}),this._debouncers[h]=C.debounce(this._debouncers[h],t,e.bind(this)),Ze(this._debouncers[h])}};/**
|
|
3447
2798
|
* @license
|
|
3448
2799
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3449
2800
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3450
|
-
*/const Xo=1e5,Yt=1e3;class sh{constructor({createElements:e,updateElement:t,scrollTarget:a,scrollContainer:i,elementsContainer:s,reorderElements:o}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=a,this.scrollContainer=i,this.elementsContainer=s||i,this.reorderElements=o,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",n=>this.__onWheel(n)),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let a=Math.floor(e/this.size*this._virtualCount);this._virtualCount-a<t?(a=this._virtualCount-(this.size-e),this._vidxOffset=this.size-this._virtualCount):a<t?e<Yt?(a=e,this._vidxOffset=0):(a=Yt,this._vidxOffset=e-a):this._vidxOffset=e-a,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(a),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler()}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),_0(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const a=[];this.__getVisibleElements().forEach(i=>{i.__virtualIndex>=e&&i.__virtualIndex<=t&&(this.__updateElement(i,i.__virtualIndex,!0),a.push(i))}),this.__afterElementsUpdated(a)}_updateMetrics(e){_0();let t=0,a=0;const i=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((o,n)=>{a+=this._physicalSizes[o],this._physicalSizes[o]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[o])),t+=this._physicalSizes[o],this._physicalAverageCount+=this._physicalSizes[o]?1:0},e),this._physicalSize=this._physicalSize+t-a,this._physicalAverageCount!==i&&(this._physicalAverage=Math.round((s*i+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),a=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return a;const i=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,o=parseFloat(t.borderBottomWidth)||0,n=parseFloat(t.borderTopWidth)||0;return a+i+s+o+n}__updateElement(e,t,a){e.style.paddingTop&&(e.style.paddingTop=""),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||a)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const a=t.offsetHeight;if(a===0)t.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=A.debounce(this.__placeholderClearDebouncer,U0,()=>this._resizeHandler());else{this.__elementHeightQueue.push(a),this.__elementHeightQueue.shift();const i=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(i.reduce((s,o)=>s+o,0)/i.length)}})}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(a=>a.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){e!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=e,this._physicalItems?this._virtualCount=this.items.length:(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,_0(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),_0())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Xo)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=Boolean(e.direction==="rtl"),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),a=document.createDocumentFragment();return t.forEach(i=>{i.style.position="absolute",a.appendChild(i),this.__resizeObserver.observe(i)}),this.elementsContainer.appendChild(a),t}_assignModels(e){const t=[];this._iterateItems((a,i)=>{const s=this._physicalItems[a];s.hidden=i>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,a,i){i.style.transform=`translateY(${t})`}toggleScrollListener(){}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,a=this._getReusables(!t);a.indexes.length&&(this._physicalTop=a.physicalTop,t?(this._virtualStart-=a.indexes.length,this._physicalStart-=a.indexes.length):(this._virtualStart+=a.indexes.length,this._physicalStart+=a.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=A.debounce(this.__fixInvalidItemPositioningDebouncer,H0.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=A.debounce(this.__scrollReorderDebouncer,H0.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,a=this.adjustedFirstVisibleIndex===0,i=this.adjustedLastVisibleIndex===this.size-1;if(e&&!a||t&&!i){const s=t,o=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=o}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=A.debounce(this.__debouncerWheelAnimationFrame,U0,()=>{this._wheelAnimationFrame=!1});const a=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=A.debounce(this._debouncerIgnoreNewWheel,H0.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&a<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():a>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=a}_hasScrolledAncestor(e,t,a){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,a)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,a)}_canScroll(e,t,a){return a>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||a<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const a=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,a)))}else super._increasePoolIfNeeded(e)}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=t.find(n=>n.contains(this.elementsContainer.getRootNode().activeElement)||n.contains(this.scrollTarget.getRootNode().activeElement))||t[0];if(!i)return;const s=i.__virtualIndex-e,o=t.indexOf(i)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(t[n]);else if(o<0)for(let n=t.length+o;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(Ko){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const t=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),a=t*this.size;this._vidxOffset=Math.round(a-t*this._virtualCount)}else{const t=this._vidxOffset,a=Yt,i=100;this._scrollTop===0?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<a&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,i),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset)));const s=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=s,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-a&&this._vidxOffset<s&&(this._vidxOffset+=Math.min(s-this._vidxOffset,i),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(sh.prototype,Qo);class t2{constructor(e){this.__adapter=new sh(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
|
|
2801
|
+
*/const P2=1e5,qt=1e3;class th{constructor({createElements:e,updateElement:t,scrollTarget:a,scrollContainer:i,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=a,this.scrollContainer=i,this.elementsContainer=s||i,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",o=>this.__onWheel(o)),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let a=Math.floor(e/this.size*this._virtualCount);this._virtualCount-a<t?(a=this._virtualCount-(this.size-e),this._vidxOffset=this.size-this._virtualCount):a<t?e<qt?(a=e,this._vidxOffset=0):(a=qt,this._vidxOffset=e-a):this._vidxOffset=e-a,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(a),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler()}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),_0(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const a=[];this.__getVisibleElements().forEach(i=>{i.__virtualIndex>=e&&i.__virtualIndex<=t&&(this.__updateElement(i,i.__virtualIndex,!0),a.push(i))}),this.__afterElementsUpdated(a)}_updateMetrics(e){_0();let t=0,a=0;const i=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((n,o)=>{a+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-a,this._physicalAverageCount!==i&&(this._physicalAverage=Math.round((s*i+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),a=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return a;const i=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,o=parseFloat(t.borderTopWidth)||0;return a+i+s+n+o}__updateElement(e,t,a){e.style.paddingTop&&(e.style.paddingTop=""),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||a)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const a=t.offsetHeight;if(a===0)t.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=C.debounce(this.__placeholderClearDebouncer,F0,()=>this._resizeHandler());else{this.__elementHeightQueue.push(a),this.__elementHeightQueue.shift();const i=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(i.reduce((s,n)=>s+n,0)/i.length)}})}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(a=>a.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){e!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=e,this._physicalItems?this._virtualCount=this.items.length:(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,_0(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),_0())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,P2)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=Boolean(e.direction==="rtl"),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),a=document.createDocumentFragment();return t.forEach(i=>{i.style.position="absolute",a.appendChild(i),this.__resizeObserver.observe(i)}),this.elementsContainer.appendChild(a),t}_assignModels(e){const t=[];this._iterateItems((a,i)=>{const s=this._physicalItems[a];s.hidden=i>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,a,i){i.style.transform=`translateY(${t})`}toggleScrollListener(){}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,a=this._getReusables(!t);a.indexes.length&&(this._physicalTop=a.physicalTop,t?(this._virtualStart-=a.indexes.length,this._physicalStart-=a.indexes.length):(this._virtualStart+=a.indexes.length,this._physicalStart+=a.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=C.debounce(this.__fixInvalidItemPositioningDebouncer,B0.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=C.debounce(this.__scrollReorderDebouncer,B0.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,a=this.adjustedFirstVisibleIndex===0,i=this.adjustedLastVisibleIndex===this.size-1;if(e&&!a||t&&!i){const s=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=C.debounce(this.__debouncerWheelAnimationFrame,F0,()=>{this._wheelAnimationFrame=!1});const a=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=C.debounce(this._debouncerIgnoreNewWheel,B0.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&a<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():a>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=a}_hasScrolledAncestor(e,t,a){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,a)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,a)}_canScroll(e,t,a){return a>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||a<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const a=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,a)))}else super._increasePoolIfNeeded(e)}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=t.find(o=>o.contains(this.elementsContainer.getRootNode().activeElement)||o.contains(this.scrollTarget.getRootNode().activeElement))||t[0];if(!i)return;const s=i.__virtualIndex-e,n=t.indexOf(i)-s;if(n>0)for(let o=0;o<n;o++)this.elementsContainer.appendChild(t[o]);else if(n<0)for(let o=t.length+n;o<t.length;o++)this.elementsContainer.insertBefore(t[o],t[0]);if(C2){const{transform:o}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=o})}}_adjustVirtualIndexOffset(e){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const t=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),a=t*this.size;this._vidxOffset=Math.round(a-t*this._virtualCount)}else{const t=this._vidxOffset,a=qt,i=100;this._scrollTop===0?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<a&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,i),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset)));const s=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=s,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-a&&this._vidxOffset<s&&(this._vidxOffset+=Math.min(s-this._vidxOffset,i),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(th.prototype,S2);class I2{constructor(e){this.__adapter=new th(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
|
|
3451
2802
|
* @license
|
|
3452
2803
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3453
2804
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3454
|
-
*/const
|
|
2805
|
+
*/const Z=class{toString(){return""}};/**
|
|
3455
2806
|
* @license
|
|
3456
2807
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3457
2808
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3458
|
-
*/const
|
|
2809
|
+
*/const T2=h=>class extends h{static get properties(){return{items:{type:Array,observer:"__itemsChanged"},focusedIndex:{type:Number,observer:"__focusedIndexChanged"},loading:{type:Boolean,observer:"__loadingChanged"},opened:{type:Boolean,observer:"__openedChanged"},selectedItem:{type:Object,observer:"__selectedItemChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map(a=>parseInt(a,10)).reduce((a,i)=>a+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${We()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",t=>t.stopPropagation()),this.__patchWheelOverScrolling(),this.__virtualizer=new I2({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector})}requestContentUpdate(){this.__virtualizer&&this.__virtualizer.update()}scrollIntoView(t){if(!(this.opened&&t>=0))return;const a=this._visibleItemsCount();let i=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),i=t-a+1):t>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const s=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!s||t!==s.index)return;const n=s.getBoundingClientRect(),o=this.getBoundingClientRect(),r=n.bottom-o.bottom+this._viewportTotalPaddingBottom;r>0&&(this.scrollTop+=r)}_isItemSelected(t,a,i){return t instanceof Z?!1:i&&t!==void 0&&a!==void 0?D0(i,t)===D0(i,a):t===a}__itemsChanged(t){this.__virtualizer&&t&&(this.__virtualizer.size=t.length,this.__virtualizer.flush(),this.requestContentUpdate())}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&this.requestContentUpdate()}__selectedItemChanged(){this.requestContentUpdate()}__focusedIndexChanged(t,a){t!==a&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,a){(t||a)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map(()=>{const a=document.createElement(`${this.__hostTagName}-item`);return a.addEventListener("click",this.__boundOnItemClick),a.tabIndex="-1",a.style.width="100%",a})}_updateElement(t,a){const i=this.items[a],s=this.focusedIndex,n=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:a,label:this.getItemLabel(i),selected:n,renderer:this.renderer,focused:!this.loading&&s===a}),t.id=`${this.__hostTagName}-item-${a}`,t.setAttribute("role",a!==void 0?"option":!1),t.setAttribute("aria-selected",n.toString()),t.setAttribute("aria-posinset",a+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof Z&&this.__requestItemByIndex(a)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",t=>{const a=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(a&&t.deltaY<0||i&&t.deltaY>0)&&t.preventDefault()})}__requestItemByIndex(t){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t,currentScrollerPos:this._oldScrollerPosition}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
3459
2810
|
* @license
|
|
3460
2811
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3461
2812
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3462
|
-
*/class
|
|
2813
|
+
*/class O2 extends T2(V){static get is(){return"vaadin-combo-box-scroller"}static get template(){return G`
|
|
3463
2814
|
<style>
|
|
3464
2815
|
:host {
|
|
3465
2816
|
display: block;
|
|
@@ -3486,136 +2837,136 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3486
2837
|
<div id="selector">
|
|
3487
2838
|
<slot></slot>
|
|
3488
2839
|
</div>
|
|
3489
|
-
`}}
|
|
2840
|
+
`}}N0(O2);/**
|
|
3490
2841
|
* @license
|
|
3491
2842
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3492
2843
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3493
|
-
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
2844
|
+
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){fe()};let jt;const eh=new Set,k2=h=>class extends Tt(h){static get version(){return"24.2.0"}static finalize(){super.finalize();const{is:t}=this;t&&!eh.has(t)&&(window.Vaadin.registrations.push(this),eh.add(t),window.Vaadin.developmentModeCallback&&(jt=C.debounce(jt,Ke,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ze(jt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
3494
2845
|
* @license
|
|
3495
2846
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3496
2847
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3497
|
-
*/function
|
|
2848
|
+
*/function Wt(h){return h?new Set(h.split(" ")):new Set}function U0(h){return h?[...h].join(" "):""}function hh(h,e,t){const a=Wt(h.getAttribute(e));a.add(t),h.setAttribute(e,U0(a))}function N2(h,e,t){const a=Wt(h.getAttribute(e));if(a.delete(t),a.size===0){h.removeAttribute(e);return}h.setAttribute(e,U0(a))}function $2(h){return h.nodeType===Node.TEXT_NODE&&h.textContent.trim()===""}/**
|
|
3498
2849
|
* @license
|
|
3499
2850
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3500
2851
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3501
|
-
*/class
|
|
2852
|
+
*/class L2{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){!this._connected||(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const a=[],i=[];e.length&&(t=e.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,n)=>{const o=e.indexOf(s);o===-1?a.push(s):o!==n&&i.push(s)}),(t.length||a.length||i.length)&&this.callback({addedNodes:t,movedNodes:i,removedNodes:a}),this._storedNodes=e}}/**
|
|
3502
2853
|
* @license
|
|
3503
2854
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3504
2855
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3505
|
-
*/class
|
|
2856
|
+
*/class Yt extends EventTarget{static generateId(e,t){return`${t||"default"}-${e.localName}-${We()}`}constructor(e,t,a,i={}){super();const{initializer:s,multiple:n,observe:o,useUniqueId:r}=i;this.host=e,this.slotName=t,this.tagName=a,this.observe=typeof o=="boolean"?o:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=s,n&&(this.nodes=[]),r&&(this.defaultId=this.constructor.generateId(e,t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:a}=this;let i=this.defaultNode;return!i&&a&&(i=document.createElement(a),i instanceof Element&&(t!==""&&i.setAttribute("slot",t),this.node=i,this.defaultNode=i)),i&&e.appendChild(i),i}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,a=this.host.shadowRoot.querySelector(t);this.__slotObserver=new L2(a,({addedNodes:i,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],o=i.filter(r=>!$2(r)&&!n.includes(r));s.length&&(this.nodes=n.filter(r=>!s.includes(r)),s.forEach(r=>{this.teardownNode(r)})),o&&o.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...o].filter(r=>r!==this.defaultNode),o.forEach(r=>{this.initAddedNode(r)})):(this.node&&this.node.remove(),this.node=o[0],this.initAddedNode(this.node)))})}}/**
|
|
3506
2857
|
* @license
|
|
3507
2858
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
3508
2859
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3509
|
-
*/class
|
|
2860
|
+
*/class V2 extends Yt{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
3510
2861
|
* @license
|
|
3511
2862
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3512
2863
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3513
|
-
*/let
|
|
2864
|
+
*/let Gt=!1;window.addEventListener("keydown",()=>{Gt=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Gt=!1},{capture:!0});function R2(){return Gt}function D2(h){return h.getRootNode().activeElement===h}/**
|
|
3514
2865
|
* @license
|
|
3515
2866
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3516
2867
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3517
|
-
*/const
|
|
2868
|
+
*/const ah=m(h=>class extends h{get _keyboardActive(){return R2()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
|
|
3518
2869
|
* @license
|
|
3519
2870
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3520
2871
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3521
|
-
*/const
|
|
2872
|
+
*/const ih=m(h=>class extends h{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
3522
2873
|
* @license
|
|
3523
2874
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3524
2875
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3525
|
-
*/const
|
|
2876
|
+
*/const B2=h=>class extends ih(h){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,a){super._disabledChanged(t,a),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):a&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
|
|
3526
2877
|
* @license
|
|
3527
2878
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3528
2879
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3529
|
-
*/const
|
|
2880
|
+
*/const F2=m(h=>class extends ah(B2(h)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,a){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):a&&this._removeFocusListeners(a)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,a){super._disabledChanged(t,a),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
|
|
3530
2881
|
* @license
|
|
3531
2882
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3532
2883
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3533
|
-
*/const
|
|
2884
|
+
*/const Kt=m(h=>class extends h{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
|
|
3534
2885
|
* @license
|
|
3535
2886
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3536
2887
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3537
|
-
*/const
|
|
2888
|
+
*/const Jt=new WeakMap;function H2(h){return Jt.has(h)||Jt.set(h,new Set),Jt.get(h)}function U2(h,e){const t=document.createElement("style");t.textContent=h,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const q2=m(h=>class extends h{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),a=H2(t);this.slotStyles.forEach(i=>{a.has(i)||(U2(i,t),a.add(i))})}});/**
|
|
3538
2889
|
* @license
|
|
3539
2890
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3540
2891
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3541
|
-
*/const
|
|
2892
|
+
*/const Zt=m(h=>class extends h{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){!this.inputElement||(this._inputElementValue=t??"")}_inputElementChanged(t,a){t?this._addInputListeners(t):a&&this._removeInputListeners(a)}_hasInputValueChanged(t,a){(t||a)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const a=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=a.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,a){this._toggleHasValue(this._hasValue),!(t===""&&a===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const a=t.composedPath()[0];this._hasInputValue=a.value.length>0}});/**
|
|
3542
2893
|
* @license
|
|
3543
2894
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3544
2895
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3545
|
-
*/const
|
|
2896
|
+
*/const j2=h=>class extends Zt(Kt(h)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),Ut||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&!!this.value&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3546
2897
|
* @license
|
|
3547
2898
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3548
2899
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3549
|
-
*/const
|
|
2900
|
+
*/const Qt=new Map;function Xt(h){return Qt.has(h)||Qt.set(h,new WeakMap),Qt.get(h)}function sh(h,e){!h||h.removeAttribute(e)}function nh(h,e){if(!h||!e)return;const t=Xt(e);if(t.has(h))return;const a=Wt(h.getAttribute(e));t.set(h,new Set(a))}function W2(h,e){if(!h||!e)return;const t=Xt(e),a=t.get(h);!a||a.size===0?h.removeAttribute(e):hh(h,e,U0(a)),t.delete(h)}function t1(h,e,t={newId:null,oldId:null,fromUser:!1}){if(!h||!e)return;const{newId:a,oldId:i,fromUser:s}=t,n=Xt(e),o=n.get(h);if(!s&&!!o){i&&o.delete(i),a&&o.add(a);return}s&&(o?a||n.delete(h):nh(h,e),sh(h,e)),N2(h,e,i);const r=a||U0(o);r&&hh(h,e,r)}function Y2(h,e){nh(h,e),sh(h,e)}/**
|
|
3550
2901
|
* @license
|
|
3551
2902
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3552
2903
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3553
|
-
*/class
|
|
2904
|
+
*/class G2{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const a=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,a,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){!this.__target||(e?(Y2(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(W2(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,a){t1(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:a})}__setErrorIdToAriaAttribute(e,t){t1(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){t1(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){!this.__target||["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}}/**
|
|
3554
2905
|
* @license
|
|
3555
2906
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3556
2907
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3557
|
-
*/const
|
|
2908
|
+
*/const e1=m(h=>typeof h.prototype.addController=="function"?h:class extends h{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}});/**
|
|
3558
2909
|
* @license
|
|
3559
2910
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
3560
2911
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3561
|
-
*/class
|
|
2912
|
+
*/class h1 extends Yt{constructor(e,t,a,i={}){super(e,t,a,{...i,useUniqueId:!0})}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(a=>{const i=a.target,s=i===this.node;a.type==="attributes"?s&&this.__updateNodeId(i):(s||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
|
|
3562
2913
|
* @license
|
|
3563
2914
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3564
2915
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3565
|
-
*/class
|
|
2916
|
+
*/class K2 extends h1{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:a}=this,i=Boolean(a&&t&&t.trim()!=="");e&&(e.textContent=i?t:"",e.hidden=!i,i?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}/**
|
|
3566
2917
|
* @license
|
|
3567
2918
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3568
2919
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3569
|
-
*/class
|
|
2920
|
+
*/class J2 extends h1{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
3570
2921
|
* @license
|
|
3571
2922
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3572
2923
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3573
|
-
*/class
|
|
2924
|
+
*/class Z2 extends h1{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
3574
2925
|
* @license
|
|
3575
2926
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3576
2927
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3577
|
-
*/const
|
|
2928
|
+
*/const Q2=m(h=>class extends e1(h){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Z2(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
|
|
3578
2929
|
* @license
|
|
3579
2930
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3580
2931
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3581
|
-
*/const
|
|
2932
|
+
*/const a1=m(h=>class extends h{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
|
|
3582
2933
|
* @license
|
|
3583
2934
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3584
2935
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3585
|
-
*/const
|
|
2936
|
+
*/const X2=h=>class extends a1(Q2(e1(h))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new G2(this),this._helperController=new J2(this),this._errorController=new K2(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:a,node:i}=t.detail;this.__labelChanged(a,i)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:a,node:i}=t.detail;this.toggleAttribute("has-helper",a),this.__helperChanged(a,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,a){t?this._fieldAriaController.setHelperId(a.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,a){t?this._fieldAriaController.setLabelId(a.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const a=this._errorNode;this._fieldAriaController.setErrorId(a&&a.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
3586
2937
|
* @license
|
|
3587
2938
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3588
2939
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3589
|
-
*/const
|
|
2940
|
+
*/const tn=m(h=>class extends h{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((a,i)=>{this._delegateAttribute(a,t[i])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((a,i)=>{this._delegateProperty(a,t[i])})}_delegateAttribute(t,a){!this.stateTarget||(t==="invalid"&&this._delegateAttribute("aria-invalid",a?"true":!1),typeof a=="boolean"?this.stateTarget.toggleAttribute(t,a):a?this.stateTarget.setAttribute(t,a):this.stateTarget.removeAttribute(t))}_delegateProperty(t,a){!this.stateTarget||(this.stateTarget[t]=a)}});/**
|
|
3590
2941
|
* @license
|
|
3591
2942
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3592
2943
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3593
|
-
*/const
|
|
2944
|
+
*/const oh=m(h=>class extends tn(a1(Zt(h))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(a=>this.__isValidConstraint(a))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...a){if(!t)return;const i=this._hasValidConstraints(a),s=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||t===0}});/**
|
|
3594
2945
|
* @license
|
|
3595
2946
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3596
2947
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3597
|
-
*/const
|
|
2948
|
+
*/const en=h=>class extends q2(F2(oh(X2(j2(Kt(h)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
3598
2949
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3599
2950
|
font: inherit;
|
|
3600
2951
|
color: inherit;
|
|
3601
2952
|
}
|
|
3602
|
-
`]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=
|
|
2953
|
+
`]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=C.debounce(this._preventInputDebouncer,B0.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const a=t.clipboardData.getData("text");this.__allowedTextRegExp.test(a)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const a=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(a)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(a){console.error(a)}}};/**
|
|
3603
2954
|
* @license
|
|
3604
2955
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3605
2956
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3606
|
-
*/class
|
|
2957
|
+
*/class hn extends Yt{constructor(e,t){super(e,"input","input",{initializer:(a,i)=>{i.value&&(a.value=i.value),i.type&&a.setAttribute("type",i.type),a.id=this.defaultId,typeof t=="function"&&t(a)},useUniqueId:!0})}}/**
|
|
3607
2958
|
* @license
|
|
3608
2959
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3609
2960
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3610
|
-
*/class
|
|
2961
|
+
*/class an{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",a=>{this.__initLabel(a.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
|
|
3611
2962
|
* @license
|
|
3612
2963
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3613
2964
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3614
|
-
*/const
|
|
2965
|
+
*/const sn=h=>class extends oh(h){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
|
|
3615
2966
|
* @license
|
|
3616
2967
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3617
2968
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3618
|
-
*/const
|
|
2969
|
+
*/const nn=f`
|
|
3619
2970
|
[part='clear-button'] {
|
|
3620
2971
|
display: none;
|
|
3621
2972
|
cursor: default;
|
|
@@ -3632,7 +2983,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3632
2983
|
* @license
|
|
3633
2984
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3634
2985
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3635
|
-
*/const
|
|
2986
|
+
*/const on=f`
|
|
3636
2987
|
:host {
|
|
3637
2988
|
display: inline-flex;
|
|
3638
2989
|
outline: none;
|
|
@@ -3670,7 +3021,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3670
3021
|
* @license
|
|
3671
3022
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3672
3023
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3673
|
-
*/const
|
|
3024
|
+
*/const rn=f`
|
|
3674
3025
|
[class$='container'] {
|
|
3675
3026
|
display: flex;
|
|
3676
3027
|
flex-direction: column;
|
|
@@ -3682,31 +3033,31 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3682
3033
|
* @license
|
|
3683
3034
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3684
3035
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3685
|
-
*/const
|
|
3036
|
+
*/const ln=[on,rn,nn];/**
|
|
3686
3037
|
* @license
|
|
3687
3038
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3688
3039
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3689
|
-
*/const
|
|
3040
|
+
*/const dn=h=>class extends h{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},size:{type:Number,observer:"_sizeChanged"},dataProvider:{type:Object,observer:"_dataProviderChanged"},_pendingRequests:{value:()=>({})},__placeHolder:{value:new Z},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}ready(){super.ready(),this._scroller.addEventListener("index-requested",t=>{const a=t.detail.index,i=t.detail.currentScrollerPos,s=Math.floor(this.pageSize*1.5);if(!this._shouldSkipIndex(a,s,i)&&a!==void 0){const n=this._getPageForIndex(a);this._shouldLoadPage(n)&&this._loadPage(n)}})}_dataProviderFilterChanged(t){if(this.__previousDataProviderFilter===void 0&&t===""){this.__previousDataProviderFilter=t;return}this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this._pendingRequests={},this.loading=this._shouldFetchData(),this.size=void 0,this.clearCache())}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(t){t&&this._shouldLoadPage(0)&&this._loadPage(0)}_shouldSkipIndex(t,a,i){return i!==0&&t>=i-a&&t<=i+a}_shouldLoadPage(t){if(!this.filteredItems||this._forceNextRequest)return this._forceNextRequest=!1,!0;const a=this.filteredItems[t*this.pageSize];return a!==void 0?a instanceof Z:this.size===void 0}_loadPage(t){if(this._pendingRequests[t]||!this.dataProvider)return;const a={page:t,pageSize:this.pageSize,filter:this.filter},i=(s,n)=>{if(this._pendingRequests[t]!==i)return;const o=this.filteredItems?[...this.filteredItems]:[];o.splice(a.page*a.pageSize,s.length,...s),this.filteredItems=o,!this.opened&&!this._isInputFocused()&&this._commitValue(),n!==void 0&&(this.size=n),delete this._pendingRequests[t],Object.keys(this._pendingRequests).length===0&&(this.loading=!1)};this._pendingRequests[t]=i,this.loading=!0,this.dataProvider(a,i)}_getPageForIndex(t){return Math.floor(t/this.pageSize)}clearCache(){if(!this.dataProvider)return;this._pendingRequests={};const t=[];for(let a=0;a<(this.size||0);a++)t.push(this.__placeHolder);this.filteredItems=t,this._shouldFetchData()?(this._forceNextRequest=!1,this._loadPage(0)):this._forceNextRequest=!0}_sizeChanged(t=0){const a=(this.filteredItems||[]).slice(0,t);for(let i=0;i<t;i++)a[i]=a[i]!==void 0?a[i]:this.__placeHolder;this.filteredItems=a,this._flushPendingRequests(t)}_pageSizeChanged(t,a){if(Math.floor(t)!==t||t<1)throw this.pageSize=a,new Error("`pageSize` value must be an integer > 0");this.clearCache()}_dataProviderChanged(t,a){this._ensureItemsOrDataProvider(()=>{this.dataProvider=a}),this.clearCache()}_ensureItemsOrDataProvider(t){if(this.items!==void 0&&this.dataProvider!==void 0)throw t(),new Error("Using `items` and `dataProvider` together is not supported");this.dataProvider&&!this.filteredItems&&(this.filteredItems=[])}_warnDataProviderValue(t,a){if(t&&a!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,a);(i<0||!this._getItemLabel(this.filteredItems[i]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}_flushPendingRequests(t){if(this._pendingRequests){const a=Math.ceil(t/this.pageSize);Object.entries(this._pendingRequests).forEach(([i,s])=>{parseInt(i)>=a&&s([],t)})}}};/**
|
|
3690
3041
|
* @license
|
|
3691
3042
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3692
3043
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3693
|
-
*/const
|
|
3044
|
+
*/const cn=h=>class extends h{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,a){if(!a||t===void 0)return;const{classList:i}=a;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(o=>!this.__initialClasses.has(o));n.length>0&&i.remove(...n)}const s=typeof t=="string"?t.split(" "):[];s.length>0&&i.add(...s),this.__previousClasses=s}};/**
|
|
3694
3045
|
* @license
|
|
3695
3046
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3696
3047
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3697
|
-
*/function
|
|
3048
|
+
*/function vn(h){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(h);return}h.querySelector("template")&&console.warn(`WARNING: <template> inside <${h.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
|
|
3698
3049
|
* @license
|
|
3699
3050
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3700
3051
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3701
|
-
*/class
|
|
3052
|
+
*/class pn{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
|
|
3702
3053
|
* @license
|
|
3703
3054
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3704
3055
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3705
|
-
*/function vh(h){return h!=null}function uh(h,e){return h.findIndex(t=>t instanceof J?!1:e(t))}const R2=h=>class extends N2(s1(n1(lh(Xt(e1(rh(h))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,items:{type:Array,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged"},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1},filter:{type:String,value:"",notify:!0},selectedItem:{type:Object,notify:!0},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged"},itemValuePath:{type:String,value:"value"},itemIdPath:String,_toggleElement:{type:Object,observer:"_toggleElementChanged"},_closeOnBlurIsPrevented:Boolean,_scroller:Object,_overlayOpened:{type:Boolean,observer:"_overlayOpenedChanged"}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, filteredItems, loading)","_updateScroller(_scroller, filteredItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const a=this._nativeInput;a&&(a.autocomplete="off",a.autocapitalize="off",a.setAttribute("role","combobox"),a.setAttribute("aria-autocomplete","list"),a.setAttribute("aria-expanded",!!this.opened),a.setAttribute("spellcheck","false"),a.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),L2(this),this.addController(new $2(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){!this._scroller||(this._scroller.requestContentUpdate(),this._getItemElements().forEach(t=>{t.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,a,i){super._propertiesChanged(t,a,i),a.filter!==void 0&&this._filterChanged(a.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",a=>a.preventDefault()),t.addEventListener("opened-changed",a=>{this._overlayOpened=a.detail.value}),this._overlayElement=t}_initScroller(t){const a=`${this._tagNamePrefix}-scroller`,i=this._overlayElement;i.renderer=o=>{o.firstChild||o.appendChild(document.createElement(a))},i.requestContentUpdate();const s=i.querySelector(a);s.owner=t||this,s.getItemLabel=this._getItemLabel.bind(this),s.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=s}_updateScroller(t,a,i,s,o,n,l,r,d){t&&(i&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:i?a:[],opened:i,loading:s,selectedItem:o,itemIdPath:n,focusedIndex:l,renderer:r,theme:d}))}_openedOrItemsChanged(t,a,i){this._overlayOpened=!!(t&&(i||a&&a.length))}_overlayOpenedChanged(t,a){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):a&&this.filteredItems&&this.filteredItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,a){a!==void 0&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&r2(this.inputElement)}_updateActiveDescendant(t){const a=this._nativeInput;if(!a)return;const i=this._getItemElements().find(s=>s.index===t);i?a.setAttribute("aria-activedescendant",i.id):a.removeAttribute("aria-activedescendant")}_openedChanged(t,a){if(a===void 0)return;t?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),!this._isInputFocused()&&!Gt&&this.inputElement&&this.inputElement.focus(),this._overlayElement.restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this._isInputFocused()&&this.setAttribute("focus-ring",""));const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),t.key==="Tab"?this._overlayElement.restoreFocusOnClose=!1:t.key==="ArrowDown"?(this._onArrowDown(),t.preventDefault()):t.key==="ArrowUp"&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let a=t&&this.itemLabelPath?F0(this.itemLabelPath,t):void 0;return a==null&&(a=t?t.toString():""),a}_getItemValue(t){let a=t&&this.itemValuePath?F0(this.itemValuePath,t):void 0;return a===void 0&&(a=t?t.toString():""),a}_onArrowDown(){if(this.opened){const t=this.filteredItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this.filteredItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const t=this.filteredItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(t),this._markAllSelectionRange()}}_setSelectionRange(t,a){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,a)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(t){const a=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;if(!this.allowCustomValue&&a){t.preventDefault(),t.stopPropagation();return}this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_onEscape(t){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&!!this.value&&(t.stopPropagation(),this._onClearAction()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&!!this.value&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",a=>a.preventDefault()),t.addEventListener("click",()=>{Gt&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this.filteredItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[...this.filteredItems||[],this.selectedItem],a=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!a){const i=this._inputElementValue;this._lastCustomValue=i;const s=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(s),s.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&a?this.value=this._getItemValue(a):this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||""}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(t){const a=this._inputElementValue,i={};this.filter===a?this._filterChanged(this.filter):i.filter=a,!this.opened&&!this._isClearButton(t)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){typeof t!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(t==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const a=this._getItemValue(t);if(this.value!==a&&(this.value=a,this.value!==a))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,a){t===""&&a===void 0||(vh(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this.filter="",this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,a){this._ensureItemsOrDataProvider(()=>{this.items=a}),t?this.filteredItems=t.slice(0):a&&(this.filteredItems=null)}_filteredItemsChanged(t,a){const i=a?a[this._focusedIndex]:null,s=this.__getItemIndexByValue(t,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&s>=0&&(this.selectedItem=t[s]);const o=this.__getItemIndexByValue(t,this._getItemValue(i));o>-1?this._focusedIndex=o:this._focusedIndex=this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(t,a){return t&&t.filter(s=>(a=a?a.toString().toLowerCase():"",this._getItemLabel(s).toString().toLowerCase().indexOf(a)>-1))}_selectItemForValue(t){const a=this.__getItemIndexByValue(this.filteredItems,t),i=this.selectedItem;a>=0?this.selectedItem=this.filteredItems[a]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){!this._scroller||this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,a){return!t||!vh(a)?-1:uh(t,i=>this._getItemValue(i)===a)}__getItemIndexByLabel(t,a){return!t||!a?-1:uh(t,i=>this._getItemLabel(i).toString().toLowerCase()===a.toString().toLowerCase())}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof J)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}this._closeOrCommit()}}_shouldRemoveFocus(t){return t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:t.relatedTarget===this._overlayElement?(t.composedPath()[0].focus(),!1):!0}_onTouchend(t){!this.clearElement||t.composedPath()[0]!==this.clearElement||(t.preventDefault(),this._onClearAction())}};/**
|
|
3056
|
+
*/function rh(h){return h!=null}function lh(h,e){return h.findIndex(t=>t instanceof Z?!1:e(t))}const un=h=>class extends cn(e1(a1(ah(Kt(Zt(ih(h))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,items:{type:Array,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged"},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1},filter:{type:String,value:"",notify:!0},selectedItem:{type:Object,notify:!0},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged"},itemValuePath:{type:String,value:"value"},itemIdPath:String,_toggleElement:{type:Object,observer:"_toggleElementChanged"},_closeOnBlurIsPrevented:Boolean,_scroller:Object,_overlayOpened:{type:Boolean,observer:"_overlayOpenedChanged"}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, filteredItems, loading)","_updateScroller(_scroller, filteredItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const a=this._nativeInput;a&&(a.autocomplete="off",a.autocapitalize="off",a.setAttribute("role","combobox"),a.setAttribute("aria-autocomplete","list"),a.setAttribute("aria-expanded",!!this.opened),a.setAttribute("spellcheck","false"),a.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),vn(this),this.addController(new pn(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){!this._scroller||(this._scroller.requestContentUpdate(),this._getItemElements().forEach(t=>{t.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,a,i){super._propertiesChanged(t,a,i),a.filter!==void 0&&this._filterChanged(a.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",a=>a.preventDefault()),t.addEventListener("opened-changed",a=>{this._overlayOpened=a.detail.value}),this._overlayElement=t}_initScroller(t){const a=`${this._tagNamePrefix}-scroller`,i=this._overlayElement;i.renderer=n=>{n.firstChild||n.appendChild(document.createElement(a))},i.requestContentUpdate();const s=i.querySelector(a);s.owner=t||this,s.getItemLabel=this._getItemLabel.bind(this),s.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=s}_updateScroller(t,a,i,s,n,o,r,l,d){t&&(i&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:i?a:[],opened:i,loading:s,selectedItem:n,itemIdPath:o,focusedIndex:r,renderer:l,theme:d}))}_openedOrItemsChanged(t,a,i){this._overlayOpened=!!(t&&(i||a&&a.length))}_overlayOpenedChanged(t,a){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):a&&this.filteredItems&&this.filteredItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,a){a!==void 0&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&D2(this.inputElement)}_updateActiveDescendant(t){const a=this._nativeInput;if(!a)return;const i=this._getItemElements().find(s=>s.index===t);i?a.setAttribute("aria-activedescendant",i.id):a.removeAttribute("aria-activedescendant")}_openedChanged(t,a){if(a===void 0)return;t?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),!this._isInputFocused()&&!Ut&&this.inputElement&&this.inputElement.focus(),this._overlayElement.restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this._isInputFocused()&&this.setAttribute("focus-ring",""));const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),t.key==="Tab"?this._overlayElement.restoreFocusOnClose=!1:t.key==="ArrowDown"?(this._onArrowDown(),t.preventDefault()):t.key==="ArrowUp"&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let a=t&&this.itemLabelPath?D0(this.itemLabelPath,t):void 0;return a==null&&(a=t?t.toString():""),a}_getItemValue(t){let a=t&&this.itemValuePath?D0(this.itemValuePath,t):void 0;return a===void 0&&(a=t?t.toString():""),a}_onArrowDown(){if(this.opened){const t=this.filteredItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this.filteredItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const t=this.filteredItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(t),this._markAllSelectionRange()}}_setSelectionRange(t,a){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,a)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(t){const a=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;if(!this.allowCustomValue&&a){t.preventDefault(),t.stopPropagation();return}this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_onEscape(t){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&!!this.value&&(t.stopPropagation(),this._onClearAction()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&!!this.value&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",a=>a.preventDefault()),t.addEventListener("click",()=>{Ut&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this.filteredItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[...this.filteredItems||[],this.selectedItem],a=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!a){const i=this._inputElementValue;this._lastCustomValue=i;const s=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(s),s.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&a?this.value=this._getItemValue(a):this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||""}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(t){const a=this._inputElementValue,i={};this.filter===a?this._filterChanged(this.filter):i.filter=a,!this.opened&&!this._isClearButton(t)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){typeof t!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(t==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const a=this._getItemValue(t);if(this.value!==a&&(this.value=a,this.value!==a))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,a){t===""&&a===void 0||(rh(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this.filter="",this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,a){this._ensureItemsOrDataProvider(()=>{this.items=a}),t?this.filteredItems=t.slice(0):a&&(this.filteredItems=null)}_filteredItemsChanged(t,a){const i=a?a[this._focusedIndex]:null,s=this.__getItemIndexByValue(t,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&s>=0&&(this.selectedItem=t[s]);const n=this.__getItemIndexByValue(t,this._getItemValue(i));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(t,a){return t&&t.filter(s=>(a=a?a.toString().toLowerCase():"",this._getItemLabel(s).toString().toLowerCase().indexOf(a)>-1))}_selectItemForValue(t){const a=this.__getItemIndexByValue(this.filteredItems,t),i=this.selectedItem;a>=0?this.selectedItem=this.filteredItems[a]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){!this._scroller||this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,a){return!t||!rh(a)?-1:lh(t,i=>this._getItemValue(i)===a)}__getItemIndexByLabel(t,a){return!t||!a?-1:lh(t,i=>this._getItemLabel(i).toString().toLowerCase()===a.toString().toLowerCase())}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof Z)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}this._closeOrCommit()}}_shouldRemoveFocus(t){return t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:t.relatedTarget===this._overlayElement?(t.composedPath()[0].focus(),!1):!0}_onTouchend(t){!this.clearElement||t.composedPath()[0]!==this.clearElement||(t.preventDefault(),this._onClearAction())}};/**
|
|
3706
3057
|
* @license
|
|
3707
3058
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3708
3059
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3709
|
-
*/
|
|
3060
|
+
*/f0("vaadin-combo-box",ln,{moduleId:"vaadin-combo-box-styles"});class fn extends dn(un(sn(en(At(k2(V)))))){static get is(){return"vaadin-combo-box"}static get template(){return G`
|
|
3710
3061
|
<style>
|
|
3711
3062
|
:host([opened]) {
|
|
3712
3063
|
pointer-events: auto;
|
|
@@ -3752,30 +3103,33 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3752
3103
|
></vaadin-combo-box-overlay>
|
|
3753
3104
|
|
|
3754
3105
|
<slot name="tooltip"></slot>
|
|
3755
|
-
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3106
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new hn(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new an(this.inputElement,this._labelController)),this._tooltipController=new V2(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}N0(fn);class dh extends j{static formAssociated=!0;static styles=x1;constructor(){super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"select",this.value="",this.data=[],this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}static properties={theme:{type:String},type:{type:String},label:{type:String},placeholder:{type:String},name:{type:String},value:{type:String},data:{type:Array},size:{type:String},fullWidth:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},showDropdown:{type:Boolean},autoselect:{type:Boolean},clearButtonVisible:{type:Boolean},isSelectError:{type:String},secondaryIcon:{type:String},helperText:{type:String},itemValuePath:{type:String},itemLabelPath:{type:String}};static shadowRootOptions={...j.shadowRootOptions,mode:"open"};_onChange(e){this.value=e.composedPath()[0].value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const t={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:t,bubbles:!0,composed:!0}))}render(){const e=i=>b0`
|
|
3107
|
+
<style>
|
|
3108
|
+
@import url(https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap);
|
|
3109
|
+
</style>
|
|
3110
|
+
<div class="custom">
|
|
3111
|
+
${typeof i=="string"?i:i.label}
|
|
3112
|
+
<br />
|
|
3113
|
+
${typeof i=="string"?"":b0`<h5 className="keywords">${i?.keywords?.join(", ")}</h5>`}
|
|
3114
|
+
</div>
|
|
3115
|
+
`,t=document.createElement("style");t.id="idssss",t.textContent=x1,document.head.insertAdjacentElement("afterbegin",t);const a=this.isSelectError?"flat-info":this.secondaryIcon;return console.log(a),b0`
|
|
3116
|
+
<vaadin-combo-box
|
|
3117
|
+
?clear-button-visible="${this.clearButtonVisible}"
|
|
3118
|
+
?required="${this.required}"
|
|
3119
|
+
?disabled="${this.disabled}"
|
|
3120
|
+
?autoselect="${this.autoselect}"
|
|
3121
|
+
placeholder="${this.label||this.placeholder}"
|
|
3122
|
+
@change="${this._onChange}"
|
|
3123
|
+
helper-text="${this.helperText}"
|
|
3124
|
+
.items="${this.data}"
|
|
3125
|
+
item-value-path="value"
|
|
3126
|
+
item-label-path="label"
|
|
3127
|
+
${ts(e,[])}
|
|
3128
|
+
>
|
|
3129
|
+
${this.secondaryIcon?b0` <cas-icon
|
|
3130
|
+
slot="prefix"
|
|
3131
|
+
name="${a}"
|
|
3132
|
+
size="20"
|
|
3133
|
+
/>`:""}
|
|
3134
|
+
</vaadin-combo-box>
|
|
3135
|
+
`}}customElements.get("cas-select")||customElements.define("cas-select",dh),D.CasSelect=dh,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|