cas-ds-web-components 1.2.52 → 1.2.53
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-accordion-element.js +36 -30
- package/build/cas-accordion.js +36 -30
- package/build/cas-alert.js +54 -48
- package/build/cas-booking-box.js +21 -15
- package/build/cas-button.js +79 -73
- package/build/cas-checkbox.js +21 -15
- package/build/cas-date-picker-range.js +49 -43
- package/build/cas-date-picker.js +40 -34
- package/build/cas-ds-web-components.js +2409 -2191
- package/build/cas-header.js +2099 -1890
- package/build/cas-icon.js +305 -299
- package/build/cas-input-file.js +20 -14
- package/build/cas-input.js +55 -20
- package/build/cas-modal.js +19 -13
- package/build/cas-new-footer.js +37 -31
- package/build/cas-radio-button.js +214 -99
- package/build/cas-radio.js +20 -14
- package/build/cas-select.js +922 -721
- package/build/cas-share.js +40 -34
- package/build/cas-snackbar.js +38 -32
- package/build/cas-spinner.js +18 -12
- package/build/cas-text.js +22 -16
- package/build/cas-textfield.js +20 -14
- package/build/cas-theme-provider.js +15 -9
- package/build/cas-toggle.js +18 -12
- package/build/cas-tooltip.js +21 -15
- package/package.json +1 -1
package/build/cas-select.js
CHANGED
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(At,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(At=typeof globalThis<"u"?globalThis:At||self,R(At["cas-select"]={}))})(this,function(At){"use strict";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const
|
|
5
|
+
*/const R=window,Ge=R.ShadowRoot&&(R.ShadyCSS===void 0||R.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ii=Symbol(),Ni=new WeakMap;class $n{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ii)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Ge&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Ni.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ni.set(e,t))}return t}toString(){return this.cssText}}const xn=s=>new $n(typeof s=="string"?s:s+"",void 0,Ii),wn=(s,t)=>{Ge?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),h=R.litNonce;h!==void 0&&i.setAttribute("nonce",h),i.textContent=e.cssText,s.appendChild(i)})},ki=Ge?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return xn(e)})(s):s;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ze;const Q0=window,Oi=Q0.trustedTypes,Cn=Oi?Oi.emptyScript:"",Li=Q0.reactiveElementPolyfillSupport,Ke={toAttribute(s,t){switch(t){case Boolean:s=s?Cn:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},Ri=(s,t)=>t!==s&&(t==t||s==s),Je={attribute:!0,type:String,converter:Ke,reflect:!1,hasChanged:Ri},Qe="finalized";class Zt extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const h=this._$Ep(i,e);h!==void 0&&(this._$Ev.set(h,i),t.push(h))}),t}static createProperty(t,e=Je){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,h=this.getPropertyDescriptor(t,i,e);h!==void 0&&Object.defineProperty(this.prototype,t,h)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(h){const a=this[t];this[e]=h,this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Je}static finalize(){if(this.hasOwnProperty(Qe))return!1;this[Qe]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const h of i)this.createProperty(h,e[h])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const h of i)e.unshift(ki(h))}else t!==void 0&&e.push(ki(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return wn(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=Je){var h;const a=this.constructor._$Ep(t,i);if(a!==void 0&&i.reflect===!0){const n=(((h=i.converter)===null||h===void 0?void 0:h.toAttribute)!==void 0?i.converter:Ke).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(a):this.setAttribute(a,n),this._$El=null}}_$AK(t,e){var i;const h=this.constructor,a=h._$Ev.get(t);if(a!==void 0&&this._$El!==a){const n=h.getPropertyOptions(a),r=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:Ke;this._$El=a,this[a]=r.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){let h=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Ri)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):h=!1),!this.isUpdatePending&&h&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((h,a)=>this[a]=h),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(h=>{var a;return(a=h.hostUpdate)===null||a===void 0?void 0:a.call(h)}),this.update(i)):this._$Ek()}catch(h){throw e=!1,this._$Ek(),h}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var h;return(h=i.hostUpdated)===null||h===void 0?void 0:h.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}Zt[Qe]=!0,Zt.elementProperties=new Map,Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Li?.({ReactiveElement:Zt}),((Ze=Q0.reactiveElementVersions)!==null&&Ze!==void 0?Ze:Q0.reactiveElementVersions=[]).push("1.6.3");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var
|
|
14
|
-
\f\r](?:([^\\s"'>=/]+)([
|
|
15
|
-
\f\r]
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
*/var Xe;const X0=window,$t=X0.trustedTypes,Hi=$t?$t.createPolicy("lit-html",{createHTML:s=>s}):void 0,t1="$lit$",H=`lit$${(Math.random()+"").slice(9)}$`,Di="?"+H,En=`<${Di}>`,Y=document,Kt=()=>Y.createComment(""),Jt=s=>s===null||typeof s!="object"&&typeof s!="function",Vi=Array.isArray,Sn=s=>Vi(s)||typeof s?.[Symbol.iterator]=="function",e1=`[
|
|
14
|
+
\f\r]`,Qt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bi=/-->/g,Ui=/>/g,G=RegExp(`>|${e1}(?:([^\\s"'>=/]+)(${e1}*=${e1}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Fi=/'/g,ji=/"/g,qi=/^(?:script|style|textarea|title)$/i,Tn=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),Pn=Tn(1),xt=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Wi=new WeakMap,Z=Y.createTreeWalker(Y,129,null,!1);function Yi(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hi!==void 0?Hi.createHTML(t):t}const In=(s,t)=>{const e=s.length-1,i=[];let h,a=t===2?"<svg>":"",n=Qt;for(let r=0;r<e;r++){const o=s[r];let l,c,d=-1,p=0;for(;p<o.length&&(n.lastIndex=p,c=n.exec(o),c!==null);)p=n.lastIndex,n===Qt?c[1]==="!--"?n=Bi:c[1]!==void 0?n=Ui:c[2]!==void 0?(qi.test(c[2])&&(h=RegExp("</"+c[2],"g")),n=G):c[3]!==void 0&&(n=G):n===G?c[0]===">"?(n=h??Qt,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?G:c[3]==='"'?ji:Fi):n===ji||n===Fi?n=G:n===Bi||n===Ui?n=Qt:(n=G,h=void 0);const v=n===G&&s[r+1].startsWith("/>")?" ":"";a+=n===Qt?o+En:d>=0?(i.push(l),o.slice(0,d)+t1+o.slice(d)+H+v):o+H+(d===-2?(i.push(void 0),r):v)}return[Yi(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class Xt{constructor({strings:t,_$litType$:e},i){let h;this.parts=[];let a=0,n=0;const r=t.length-1,o=this.parts,[l,c]=In(t,e);if(this.el=Xt.createElement(l,i),Z.currentNode=this.el.content,e===2){const d=this.el.content,p=d.firstChild;p.remove(),d.append(...p.childNodes)}for(;(h=Z.nextNode())!==null&&o.length<r;){if(h.nodeType===1){if(h.hasAttributes()){const d=[];for(const p of h.getAttributeNames())if(p.endsWith(t1)||p.startsWith(H)){const v=c[n++];if(d.push(p),v!==void 0){const u=h.getAttribute(v.toLowerCase()+t1).split(H),z=/([.?@])?(.*)/.exec(v);o.push({type:1,index:a,name:z[2],strings:u,ctor:z[1]==="."?kn:z[1]==="?"?Ln:z[1]==="@"?Rn:te})}else o.push({type:6,index:a})}for(const p of d)h.removeAttribute(p)}if(qi.test(h.tagName)){const d=h.textContent.split(H),p=d.length-1;if(p>0){h.textContent=$t?$t.emptyScript:"";for(let v=0;v<p;v++)h.append(d[v],Kt()),Z.nextNode(),o.push({type:2,index:++a});h.append(d[p],Kt())}}}else if(h.nodeType===8)if(h.data===Di)o.push({type:2,index:a});else{let d=-1;for(;(d=h.data.indexOf(H,d+1))!==-1;)o.push({type:7,index:a}),d+=H.length-1}a++}}static createElement(t,e){const i=Y.createElement("template");return i.innerHTML=t,i}}function wt(s,t,e=s,i){var h,a,n,r;if(t===xt)return t;let o=i!==void 0?(h=e._$Co)===null||h===void 0?void 0:h[i]:e._$Cl;const l=Jt(t)?void 0:t._$litDirective$;return o?.constructor!==l&&((a=o?._$AO)===null||a===void 0||a.call(o,!1),l===void 0?o=void 0:(o=new l(s),o._$AT(s,e,i)),i!==void 0?((n=(r=e)._$Co)!==null&&n!==void 0?n:r._$Co=[])[i]=o:e._$Cl=o),o!==void 0&&(t=wt(s,o._$AS(s,t.values),o,i)),t}class Nn{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:h}=this._$AD,a=((e=t?.creationScope)!==null&&e!==void 0?e:Y).importNode(i,!0);Z.currentNode=a;let n=Z.nextNode(),r=0,o=0,l=h[0];for(;l!==void 0;){if(r===l.index){let c;l.type===2?c=new t0(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new Hn(n,this,t)),this._$AV.push(c),l=h[++o]}r!==l?.index&&(n=Z.nextNode(),r++)}return Z.currentNode=Y,a}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class t0{constructor(t,e,i,h){var a;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=h,this._$Cp=(a=h?.isConnected)===null||a===void 0||a}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=wt(this,t,e),Jt(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==xt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Sn(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==b&&Jt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Y.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:h}=t,a=typeof h=="number"?this._$AC(t):(h.el===void 0&&(h.el=Xt.createElement(Yi(h.h,h.h[0]),this.options)),h);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===a)this._$AH.v(i);else{const n=new Nn(a,this),r=n.u(this.options);n.v(i),this.$(r),this._$AH=n}}_$AC(t){let e=Wi.get(t.strings);return e===void 0&&Wi.set(t.strings,e=new Xt(t)),e}T(t){Vi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,h=0;for(const a of t)h===e.length?e.push(i=new t0(this.k(Kt()),this.k(Kt()),this,this.options)):i=e[h],i._$AI(a),h++;h<e.length&&(this._$AR(i&&i._$AB.nextSibling,h),e.length=h)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const h=t.nextSibling;t.remove(),t=h}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class te{constructor(t,e,i,h,a){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=e,this._$AM=h,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=b}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,h){const a=this.strings;let n=!1;if(a===void 0)t=wt(this,t,e,0),n=!Jt(t)||t!==this._$AH&&t!==xt,n&&(this._$AH=t);else{const r=t;let o,l;for(t=a[0],o=0;o<a.length-1;o++)l=wt(this,r[i+o],e,o),l===xt&&(l=this._$AH[o]),n||(n=!Jt(l)||l!==this._$AH[o]),l===b?t=b:t!==b&&(t+=(l??"")+a[o+1]),this._$AH[o]=l}n&&!h&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class kn extends te{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}}const On=$t?$t.emptyScript:"";class Ln extends te{constructor(){super(...arguments),this.type=4}j(t){t&&t!==b?this.element.setAttribute(this.name,On):this.element.removeAttribute(this.name)}}class Rn extends te{constructor(t,e,i,h,a){super(t,e,i,h,a),this.type=5}_$AI(t,e=this){var i;if((t=(i=wt(this,t,e,0))!==null&&i!==void 0?i:b)===xt)return;const h=this._$AH,a=t===b&&h!==b||t.capture!==h.capture||t.once!==h.once||t.passive!==h.passive,n=t!==b&&(h===b||a);a&&this.element.removeEventListener(this.name,this,h),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class Hn{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){wt(this,t)}}const Gi=X0.litHtmlPolyfillSupport;Gi?.(Xt,t0),((Xe=X0.litHtmlVersions)!==null&&Xe!==void 0?Xe:X0.litHtmlVersions=[]).push("2.8.0");const Dn=(s,t,e)=>{var i,h;const a=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let n=a._$litPart$;if(n===void 0){const r=(h=e?.renderBefore)!==null&&h!==void 0?h:null;a._$litPart$=n=new t0(t.insertBefore(Kt(),r),r,void 0,e??{})}return n._$AI(s),n};/**
|
|
16
|
+
* @license
|
|
17
|
+
* Copyright 2019 Google LLC
|
|
18
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
+
*/const ee=window,i1=ee.ShadowRoot&&(ee.ShadyCSS===void 0||ee.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h1=Symbol(),Zi=new WeakMap;class Ki{constructor(t,e,i){if(this._$cssResult$=!0,i!==h1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i1&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Zi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Zi.set(e,t))}return t}toString(){return this.cssText}}const Vn=s=>new Ki(typeof s=="string"?s:s+"",void 0,h1),Bn=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,h,a)=>i+(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.")})(h)+s[a+1],s[0]);return new Ki(e,s,h1)},Un=(s,t)=>{i1?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),h=ee.litNonce;h!==void 0&&i.setAttribute("nonce",h),i.textContent=e.cssText,s.appendChild(i)})},Ji=i1?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Vn(e)})(s):s;/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright 2017 Google LLC
|
|
22
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
+
*/var s1;const ie=window,Qi=ie.trustedTypes,Fn=Qi?Qi.emptyScript:"",Xi=ie.reactiveElementPolyfillSupport,a1={toAttribute(s,t){switch(t){case Boolean:s=s?Fn:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},th=(s,t)=>t!==s&&(t==t||s==s),n1={attribute:!0,type:String,converter:a1,reflect:!1,hasChanged:th},o1="finalized";class Ct extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const h=this._$Ep(i,e);h!==void 0&&(this._$Ev.set(h,i),t.push(h))}),t}static createProperty(t,e=n1){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,h=this.getPropertyDescriptor(t,i,e);h!==void 0&&Object.defineProperty(this.prototype,t,h)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(h){const a=this[t];this[e]=h,this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||n1}static finalize(){if(this.hasOwnProperty(o1))return!1;this[o1]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const h of i)this.createProperty(h,e[h])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const h of i)e.unshift(Ji(h))}else t!==void 0&&e.push(Ji(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Un(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=n1){var h;const a=this.constructor._$Ep(t,i);if(a!==void 0&&i.reflect===!0){const n=(((h=i.converter)===null||h===void 0?void 0:h.toAttribute)!==void 0?i.converter:a1).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(a):this.setAttribute(a,n),this._$El=null}}_$AK(t,e){var i;const h=this.constructor,a=h._$Ev.get(t);if(a!==void 0&&this._$El!==a){const n=h.getPropertyOptions(a),r=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:a1;this._$El=a,this[a]=r.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){let h=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||th)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):h=!1),!this.isUpdatePending&&h&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((h,a)=>this[a]=h),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(h=>{var a;return(a=h.hostUpdate)===null||a===void 0?void 0:a.call(h)}),this.update(i)):this._$Ek()}catch(h){throw e=!1,this._$Ek(),h}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var h;return(h=i.hostUpdated)===null||h===void 0?void 0:h.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}Ct[o1]=!0,Ct.elementProperties=new Map,Ct.elementStyles=[],Ct.shadowRootOptions={mode:"open"},Xi?.({ReactiveElement:Ct}),((s1=ie.reactiveElementVersions)!==null&&s1!==void 0?s1:ie.reactiveElementVersions=[]).push("1.6.3");/**
|
|
18
24
|
* @license
|
|
19
25
|
* Copyright 2017 Google LLC
|
|
20
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var
|
|
27
|
+
*/var r1,l1;class Et extends Ct{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Dn(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return xt}}Et.finalized=!0,Et._$litElement$=!0,(r1=globalThis.litElementHydrateSupport)===null||r1===void 0||r1.call(globalThis,{LitElement:Et});const eh=globalThis.litElementPolyfillSupport;eh?.({LitElement:Et}),((l1=globalThis.litElementVersions)!==null&&l1!==void 0?l1:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
22
28
|
* @license
|
|
23
29
|
* Copyright 2020 Google LLC
|
|
24
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const
|
|
31
|
+
*/const jn=Symbol.for(""),qn=s=>{if(s?.r===jn)return s?._$litStatic$},ih=new Map,Wn=s=>(t,...e)=>{const i=e.length;let h,a;const n=[],r=[];let o,l=0,c=!1;for(;l<i;){for(o=t[l];l<i&&(a=e[l],(h=qn(a))!==void 0);)o+=h+t[++l],c=!0;l!==i&&r.push(a),n.push(o),l++}if(l===i&&n.push(t[i]),c){const d=n.join("$$lit$$");(t=ih.get(d))===void 0&&(n.raw=n,ih.set(d,t=n)),e=r}return s(t,...e)},e0=Wn(Pn);var hh=Bn`
|
|
26
32
|
@import url(https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap);
|
|
27
33
|
* {
|
|
28
34
|
box-sizing: border-box;
|
|
@@ -184,27 +190,45 @@
|
|
|
184
190
|
* @license
|
|
185
191
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
186
192
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
187
|
-
*/function
|
|
193
|
+
*/function Yn(s){const t=customElements.get(s.is);if(!t)Object.defineProperty(s,"version",{get(){return"24.3.7"}}),customElements.define(s.is,s);else{const e=t.version;e&&s.version&&e===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
|
|
188
194
|
* @license
|
|
189
195
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
190
196
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
191
|
-
*/class
|
|
197
|
+
*/class Gn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}Yn(Gn);/**
|
|
198
|
+
* @license
|
|
199
|
+
* Copyright 2019 Google LLC
|
|
200
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
201
|
+
*/const he=globalThis,d1=he.ShadowRoot&&(he.ShadyCSS===void 0||he.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c1=Symbol(),sh=new WeakMap;class K{constructor(t,e,i){if(this._$cssResult$=!0,i!==c1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d1&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=sh.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&sh.set(e,t))}return t}toString(){return this.cssText}}const Zn=s=>new K(typeof s=="string"?s:s+"",void 0,c1),f=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,h,a)=>i+(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.")})(h)+s[a+1],s[0]);return new K(e,s,c1)},Kn=(s,t)=>{if(d1)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),h=he.litNonce;h!==void 0&&i.setAttribute("nonce",h),i.textContent=e.cssText,s.appendChild(i)}},ah=d1?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Zn(e)})(s):s;/**
|
|
202
|
+
* @license
|
|
203
|
+
* Copyright 2017 Google LLC
|
|
204
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
205
|
+
*/const{is:Jn,defineProperty:Qn,getOwnPropertyDescriptor:Xn,getOwnPropertyNames:to,getOwnPropertySymbols:eo,getPrototypeOf:io}=Object,se=globalThis,nh=se.trustedTypes,ho=nh?nh.emptyScript:"",so=se.reactiveElementPolyfillSupport,i0=(s,t)=>s,p1={toAttribute(s,t){switch(t){case Boolean:s=s?ho:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},oh=(s,t)=>!Jn(s,t),rh={attribute:!0,type:String,converter:p1,reflect:!1,hasChanged:oh};Symbol.metadata??=Symbol("metadata"),se.litPropertyMetadata??=new WeakMap;class I extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=rh){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,e);h!==void 0&&Qn(this.prototype,t,h)}}static getPropertyDescriptor(t,e,i){const{get:h,set:a}=Xn(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return h?.call(this)},set(n){const r=h?.call(this);a.call(this,n),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??rh}static _$Ei(){if(this.hasOwnProperty(i0("elementProperties")))return;const t=io(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(i0("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(i0("properties"))){const e=this.properties,i=[...to(e),...eo(e)];for(const h of i)this.createProperty(h,e[h])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,h]of e)this.elementProperties.set(i,h)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const h=this._$Eu(e,i);h!==void 0&&this._$Eh.set(h,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const h of i)e.unshift(ah(h))}else t!==void 0&&e.push(ah(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Kn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){const i=this.constructor.elementProperties.get(t),h=this.constructor._$Eu(t,i);if(h!==void 0&&i.reflect===!0){const a=(i.converter?.toAttribute!==void 0?i.converter:p1).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(h):this.setAttribute(h,a),this._$Em=null}}_$AK(t,e){const i=this.constructor,h=i._$Eh.get(t);if(h!==void 0&&this._$Em!==h){const a=i.getPropertyOptions(h),n=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:p1;this._$Em=h,this[h]=n.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??oh)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[h,a]of this._$Ep)this[h]=a;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[h,a]of i)a.wrapped!==!0||this._$AL.has(h)||this[h]===void 0||this.P(h,this[h],a)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(t){}firstUpdated(t){}}I.elementStyles=[],I.shadowRootOptions={mode:"open"},I[i0("elementProperties")]=new Map,I[i0("finalized")]=new Map,so?.({ReactiveElement:I}),(se.reactiveElementVersions??=[]).push("2.0.4");/**
|
|
206
|
+
* @license
|
|
207
|
+
* Copyright 2017 Google LLC
|
|
208
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
209
|
+
*/const v1=globalThis,ae=v1.trustedTypes,lh=ae?ae.createPolicy("lit-html",{createHTML:s=>s}):void 0,dh="$lit$",D=`lit$${(Math.random()+"").slice(9)}$`,ch="?"+D,ao=`<${ch}>`,J=document,h0=()=>J.createComment(""),s0=s=>s===null||typeof s!="object"&&typeof s!="function",ph=Array.isArray,no=s=>ph(s)||typeof s?.[Symbol.iterator]=="function",u1=`[
|
|
210
|
+
\f\r]`,a0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vh=/-->/g,uh=/>/g,Q=RegExp(`>|${u1}(?:([^\\s"'>=/]+)(${u1}*=${u1}*(?:[^
|
|
211
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),fh=/'/g,gh=/"/g,_h=/^(?:script|style|textarea|title)$/i,St=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),mh=new WeakMap,X=J.createTreeWalker(J,129);function Mh(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return lh!==void 0?lh.createHTML(t):t}const oo=(s,t)=>{const e=s.length-1,i=[];let h,a=t===2?"<svg>":"",n=a0;for(let r=0;r<e;r++){const o=s[r];let l,c,d=-1,p=0;for(;p<o.length&&(n.lastIndex=p,c=n.exec(o),c!==null);)p=n.lastIndex,n===a0?c[1]==="!--"?n=vh:c[1]!==void 0?n=uh:c[2]!==void 0?(_h.test(c[2])&&(h=RegExp("</"+c[2],"g")),n=Q):c[3]!==void 0&&(n=Q):n===Q?c[0]===">"?(n=h??a0,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?Q:c[3]==='"'?gh:fh):n===gh||n===fh?n=Q:n===vh||n===uh?n=a0:(n=Q,h=void 0);const v=n===Q&&s[r+1].startsWith("/>")?" ":"";a+=n===a0?o+ao:d>=0?(i.push(l),o.slice(0,d)+dh+o.slice(d)+D+v):o+D+(d===-2?r:v)}return[Mh(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class n0{constructor({strings:t,_$litType$:e},i){let h;this.parts=[];let a=0,n=0;const r=t.length-1,o=this.parts,[l,c]=oo(t,e);if(this.el=n0.createElement(l,i),X.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(h=X.nextNode())!==null&&o.length<r;){if(h.nodeType===1){if(h.hasAttributes())for(const d of h.getAttributeNames())if(d.endsWith(dh)){const p=c[n++],v=h.getAttribute(d).split(D),u=/([.?@])?(.*)/.exec(p);o.push({type:1,index:a,name:u[2],strings:v,ctor:u[1]==="."?lo:u[1]==="?"?co:u[1]==="@"?po:ne}),h.removeAttribute(d)}else d.startsWith(D)&&(o.push({type:6,index:a}),h.removeAttribute(d));if(_h.test(h.tagName)){const d=h.textContent.split(D),p=d.length-1;if(p>0){h.textContent=ae?ae.emptyScript:"";for(let v=0;v<p;v++)h.append(d[v],h0()),X.nextNode(),o.push({type:2,index:++a});h.append(d[p],h0())}}}else if(h.nodeType===8)if(h.data===ch)o.push({type:2,index:a});else{let d=-1;for(;(d=h.data.indexOf(D,d+1))!==-1;)o.push({type:7,index:a}),d+=D.length-1}a++}}static createElement(t,e){const i=J.createElement("template");return i.innerHTML=t,i}}function Tt(s,t,e=s,i){if(t===St)return t;let h=i!==void 0?e._$Co?.[i]:e._$Cl;const a=s0(t)?void 0:t._$litDirective$;return h?.constructor!==a&&(h?._$AO?.(!1),a===void 0?h=void 0:(h=new a(s),h._$AT(s,e,i)),i!==void 0?(e._$Co??=[])[i]=h:e._$Cl=h),h!==void 0&&(t=Tt(s,h._$AS(s,t.values),h,i)),t}class ro{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,h=(t?.creationScope??J).importNode(e,!0);X.currentNode=h;let a=X.nextNode(),n=0,r=0,o=i[0];for(;o!==void 0;){if(n===o.index){let l;o.type===2?l=new o0(a,a.nextSibling,this,t):o.type===1?l=new o.ctor(a,o.name,o.strings,this,t):o.type===6&&(l=new vo(a,this,t)),this._$AV.push(l),o=i[++r]}n!==o?.index&&(a=X.nextNode(),n++)}return X.currentNode=J,h}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class o0{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,h){this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=h,this._$Cv=h?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Tt(this,t,e),s0(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==St&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):no(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==y&&s0(this._$AH)?this._$AA.nextSibling.data=t:this.T(J.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,h=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=n0.createElement(Mh(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===h)this._$AH.p(e);else{const a=new ro(h,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=mh.get(t.strings);return e===void 0&&mh.set(t.strings,e=new n0(t)),e}k(t){ph(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,h=0;for(const a of t)h===e.length?e.push(i=new o0(this.S(h0()),this.S(h0()),this,this.options)):i=e[h],i._$AI(a),h++;h<e.length&&(this._$AR(i&&i._$AB.nextSibling,h),e.length=h)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class ne{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,h,a){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=h,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=y}_$AI(t,e=this,i,h){const a=this.strings;let n=!1;if(a===void 0)t=Tt(this,t,e,0),n=!s0(t)||t!==this._$AH&&t!==St,n&&(this._$AH=t);else{const r=t;let o,l;for(t=a[0],o=0;o<a.length-1;o++)l=Tt(this,r[i+o],e,o),l===St&&(l=this._$AH[o]),n||=!s0(l)||l!==this._$AH[o],l===y?t=y:t!==y&&(t+=(l??"")+a[o+1]),this._$AH[o]=l}n&&!h&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class lo extends ne{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}}class co extends ne{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==y)}}class po extends ne{constructor(t,e,i,h,a){super(t,e,i,h,a),this.type=5}_$AI(t,e=this){if((t=Tt(this,t,e,0)??y)===St)return;const i=this._$AH,h=t===y&&i!==y||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==y&&(i===y||h);h&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class vo{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Tt(this,t)}}const uo=v1.litHtmlPolyfillSupport;uo?.(n0,o0),(v1.litHtmlVersions??=[]).push("3.1.2");const fo=(s,t,e)=>{const i=e?.renderBefore??t;let h=i._$litPart$;if(h===void 0){const a=e?.renderBefore??null;i._$litPart$=h=new o0(t.insertBefore(h0(),a),a,void 0,e??{})}return h._$AI(s),h};/**
|
|
212
|
+
* @license
|
|
213
|
+
* Copyright 2017 Google LLC
|
|
214
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
215
|
+
*/class oe extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=fo(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return St}}oe._$litElement$=!0,oe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:oe});const go=globalThis.litElementPolyfillSupport;go?.({LitElement:oe}),(globalThis.litElementVersions??=[]).push("4.0.4");/**
|
|
192
216
|
* @license
|
|
193
217
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
194
218
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
195
|
-
*/const
|
|
219
|
+
*/const _o=[];function mo(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function Mo(s){return mo(customElements.get(s))}function zo(s=[]){return[s].flat(1/0).filter(t=>t instanceof K?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function V(s,t,e={}){s&&Mo(s)&&console.warn(`The custom element definition for "${s}"
|
|
196
220
|
was finalized before a style module was registered.
|
|
197
221
|
Make sure to add component specific style modules before
|
|
198
|
-
importing the corresponding custom element.`),
|
|
222
|
+
importing the corresponding custom element.`),t=zo(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):_o.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId})}/**
|
|
199
223
|
* @license
|
|
200
224
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
201
225
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
202
|
-
*/const
|
|
203
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",
|
|
226
|
+
*/const bo=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(i=>i.toString()).join(`
|
|
227
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Pt=(s,...t)=>{bo(`lumo-${s}`,t)};/**
|
|
204
228
|
* @license
|
|
205
229
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
206
230
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
207
|
-
*/const
|
|
231
|
+
*/const yo=f`
|
|
208
232
|
:host {
|
|
209
233
|
--lumo-size-xs: 1.625rem;
|
|
210
234
|
--lumo-size-s: 1.875rem;
|
|
@@ -219,19 +243,29 @@
|
|
|
219
243
|
/* For backwards compatibility */
|
|
220
244
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
221
245
|
}
|
|
222
|
-
`;
|
|
246
|
+
`;Pt("sizing-props",yo);/**
|
|
247
|
+
* @license
|
|
248
|
+
* Copyright 2017 Google LLC
|
|
249
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
250
|
+
*/const f1=globalThis,re=f1.trustedTypes,zh=re?re.createPolicy("lit-html",{createHTML:s=>s}):void 0,bh="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,yh="?"+B,Ao=`<${yh}>`,tt=document,r0=()=>tt.createComment(""),l0=s=>s===null||typeof s!="object"&&typeof s!="function",Ah=Array.isArray,$o=s=>Ah(s)||typeof s?.[Symbol.iterator]=="function",g1=`[
|
|
251
|
+
\f\r]`,d0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$h=/-->/g,xh=/>/g,et=RegExp(`>|${g1}(?:([^\\s"'>=/]+)(${g1}*=${g1}*(?:[^
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),wh=/'/g,Ch=/"/g,Eh=/^(?:script|style|textarea|title)$/i,xo=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),Sh=xo(2),it=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Th=new WeakMap,ht=tt.createTreeWalker(tt,129);function Ph(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return zh!==void 0?zh.createHTML(t):t}const wo=(s,t)=>{const e=s.length-1,i=[];let h,a=t===2?"<svg>":"",n=d0;for(let r=0;r<e;r++){const o=s[r];let l,c,d=-1,p=0;for(;p<o.length&&(n.lastIndex=p,c=n.exec(o),c!==null);)p=n.lastIndex,n===d0?c[1]==="!--"?n=$h:c[1]!==void 0?n=xh:c[2]!==void 0?(Eh.test(c[2])&&(h=RegExp("</"+c[2],"g")),n=et):c[3]!==void 0&&(n=et):n===et?c[0]===">"?(n=h??d0,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?et:c[3]==='"'?Ch:wh):n===Ch||n===wh?n=et:n===$h||n===xh?n=d0:(n=et,h=void 0);const v=n===et&&s[r+1].startsWith("/>")?" ":"";a+=n===d0?o+Ao:d>=0?(i.push(l),o.slice(0,d)+bh+o.slice(d)+B+v):o+B+(d===-2?r:v)}return[Ph(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class c0{constructor({strings:t,_$litType$:e},i){let h;this.parts=[];let a=0,n=0;const r=t.length-1,o=this.parts,[l,c]=wo(t,e);if(this.el=c0.createElement(l,i),ht.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(h=ht.nextNode())!==null&&o.length<r;){if(h.nodeType===1){if(h.hasAttributes())for(const d of h.getAttributeNames())if(d.endsWith(bh)){const p=c[n++],v=h.getAttribute(d).split(B),u=/([.?@])?(.*)/.exec(p);o.push({type:1,index:a,name:u[2],strings:v,ctor:u[1]==="."?Eo:u[1]==="?"?So:u[1]==="@"?To:le}),h.removeAttribute(d)}else d.startsWith(B)&&(o.push({type:6,index:a}),h.removeAttribute(d));if(Eh.test(h.tagName)){const d=h.textContent.split(B),p=d.length-1;if(p>0){h.textContent=re?re.emptyScript:"";for(let v=0;v<p;v++)h.append(d[v],r0()),ht.nextNode(),o.push({type:2,index:++a});h.append(d[p],r0())}}}else if(h.nodeType===8)if(h.data===yh)o.push({type:2,index:a});else{let d=-1;for(;(d=h.data.indexOf(B,d+1))!==-1;)o.push({type:7,index:a}),d+=B.length-1}a++}}static createElement(t,e){const i=tt.createElement("template");return i.innerHTML=t,i}}function It(s,t,e=s,i){if(t===it)return t;let h=i!==void 0?e._$Co?.[i]:e._$Cl;const a=l0(t)?void 0:t._$litDirective$;return h?.constructor!==a&&(h?._$AO?.(!1),a===void 0?h=void 0:(h=new a(s),h._$AT(s,e,i)),i!==void 0?(e._$Co??=[])[i]=h:e._$Cl=h),h!==void 0&&(t=It(s,h._$AS(s,t.values),h,i)),t}class Co{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,h=(t?.creationScope??tt).importNode(e,!0);ht.currentNode=h;let a=ht.nextNode(),n=0,r=0,o=i[0];for(;o!==void 0;){if(n===o.index){let l;o.type===2?l=new p0(a,a.nextSibling,this,t):o.type===1?l=new o.ctor(a,o.name,o.strings,this,t):o.type===6&&(l=new Po(a,this,t)),this._$AV.push(l),o=i[++r]}n!==o?.index&&(a=ht.nextNode(),n++)}return ht.currentNode=tt,h}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class p0{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,h){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=h,this._$Cv=h?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=It(this,t,e),l0(t)?t===_||t==null||t===""?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==it&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):$o(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==_&&l0(this._$AH)?this._$AA.nextSibling.data=t:this.T(tt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,h=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=c0.createElement(Ph(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===h)this._$AH.p(e);else{const a=new Co(h,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=Th.get(t.strings);return e===void 0&&Th.set(t.strings,e=new c0(t)),e}k(t){Ah(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,h=0;for(const a of t)h===e.length?e.push(i=new p0(this.S(r0()),this.S(r0()),this,this.options)):i=e[h],i._$AI(a),h++;h<e.length&&(this._$AR(i&&i._$AB.nextSibling,h),e.length=h)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class le{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,h,a){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=e,this._$AM=h,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(t,e=this,i,h){const a=this.strings;let n=!1;if(a===void 0)t=It(this,t,e,0),n=!l0(t)||t!==this._$AH&&t!==it,n&&(this._$AH=t);else{const r=t;let o,l;for(t=a[0],o=0;o<a.length-1;o++)l=It(this,r[i+o],e,o),l===it&&(l=this._$AH[o]),n||=!l0(l)||l!==this._$AH[o],l===_?t=_:t!==_&&(t+=(l??"")+a[o+1]),this._$AH[o]=l}n&&!h&&this.j(t)}j(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Eo extends le{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_?void 0:t}}class So extends le{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==_)}}class To extends le{constructor(t,e,i,h,a){super(t,e,i,h,a),this.type=5}_$AI(t,e=this){if((t=It(this,t,e,0)??_)===it)return;const i=this._$AH,h=t===_&&i!==_||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==_&&(i===_||h);h&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Po{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){It(this,t)}}const Io=f1.litHtmlPolyfillSupport;Io?.(c0,p0),(f1.litHtmlVersions??=[]).push("3.1.2");const Ih=(s,t,e)=>{const i=e?.renderBefore??t;let h=i._$litPart$;if(h===void 0){const a=e?.renderBefore??null;i._$litPart$=h=new p0(t.insertBefore(r0(),a),a,void 0,e??{})}return h._$AI(s),h};/**
|
|
253
|
+
* @license
|
|
254
|
+
* Copyright 2017 Google LLC
|
|
255
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
256
|
+
*/class de extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ih(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return it}}de._$litElement$=!0,de.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:de});const No=globalThis.litElementPolyfillSupport;No?.({LitElement:de}),(globalThis.litElementVersions??=[]).push("4.0.4");/**
|
|
223
257
|
* @license
|
|
224
258
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
225
259
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
226
|
-
*/const
|
|
260
|
+
*/const ko=s=>class extends s{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,h){super.attributeChangedCallback(e,i,h),e==="theme"&&this._set_theme(h)}};/**
|
|
227
261
|
* @license
|
|
228
262
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
229
263
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
230
|
-
*/const
|
|
264
|
+
*/const Nh=[];function kh(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function Oo(s){return kh(customElements.get(s))}function Lo(s=[]){return[s].flat(1/0).filter(t=>t instanceof K?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Oh(s,t,e={}){s&&Oo(s)&&console.warn(`The custom element definition for "${s}"
|
|
231
265
|
was finalized before a style module was registered.
|
|
232
266
|
Make sure to add component specific style modules before
|
|
233
|
-
importing the corresponding custom element.`),
|
|
234
|
-
`),
|
|
267
|
+
importing the corresponding custom element.`),t=Lo(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):Nh.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId})}function _1(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Nh}function Ro(s,t){return(s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Ho(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function Lh(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const i=_1().find(h=>h.moduleId===e);i?t.push(...Lh(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},s.styles),t}function Do(s,t){const e=document.createElement("style");e.innerHTML=s.map(i=>i.cssText).join(`
|
|
268
|
+
`),t.content.appendChild(e)}function Vo(s){const t=`${s}-default-theme`,e=_1().filter(i=>i.moduleId!==t&&Ro(i.themeFor,s)).map(i=>({...i,styles:[...Lh(i),...i.styles],includePriority:Ho(i.moduleId)})).sort((i,h)=>h.includePriority-i.includePriority);return e.length>0?e:_1().filter(i=>i.moduleId===t)}const Bo=s=>class extends ko(s){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||kh(this)||Do(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...super.finalizeStyles(e),...i]:i}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),i=(e?e.constructor.__themes:[])||[];this.__themes=[...i,...Vo(this.is)];const h=this.__themes.flatMap(a=>a.styles);return h.filter((a,n)=>n===h.lastIndexOf(a))}};Oh("vaadin-icon",f`
|
|
235
269
|
:host {
|
|
236
270
|
width: var(--lumo-icon-size-m);
|
|
237
271
|
height: var(--lumo-icon-size-m);
|
|
@@ -244,7 +278,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
244
278
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
245
279
|
Code distributed by Google as part of the polymer project is also
|
|
246
280
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
247
|
-
*/window.JSCompiler_renameProperty=function(
|
|
281
|
+
*/window.JSCompiler_renameProperty=function(s,t){return s};/**
|
|
248
282
|
@license
|
|
249
283
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
250
284
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -252,7 +286,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
252
286
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
253
287
|
Code distributed by Google as part of the polymer project is also
|
|
254
288
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
255
|
-
*/let
|
|
289
|
+
*/let Uo=/(url\()([^)]*)(\))/g,Fo=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ce,P;function v0(s,t){if(s&&Fo.test(s)||s==="//")return s;if(ce===void 0){ce=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ce=e.href==="http://a/c%20d"}catch{}}if(t||(t=document.baseURI||window.location.href),ce)try{return new URL(s,t).href}catch{return s}return P||(P=document.implementation.createHTMLDocument("temp"),P.base=P.createElement("base"),P.head.appendChild(P.base),P.anchor=P.createElement("a"),P.body.appendChild(P.anchor)),P.base.href=t,P.anchor.href=s,P.anchor.href||s}function m1(s,t){return s.replace(Uo,function(e,i,h,a){return i+"'"+v0(h.replace(/["']/g,""),t)+"'"+a})}function M1(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
|
|
256
290
|
@license
|
|
257
291
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
258
292
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -260,7 +294,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
260
294
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
261
295
|
Code distributed by Google as part of the polymer project is also
|
|
262
296
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
263
|
-
*/const
|
|
297
|
+
*/const jo=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const qo=jo&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch{return!1}})();let Wo=window.Polymer&&window.Polymer.rootPath||M1(document.baseURI||window.location.href),pe=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let z1=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Yo=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Go=window.Polymer&&window.Polymer.legacyOptimizations||!1,Zo=window.Polymer&&window.Polymer.legacyWarnings||!1,Ko=window.Polymer&&window.Polymer.syncInitialRender||!1,b1=window.Polymer&&window.Polymer.legacyUndefined||!1,Jo=window.Polymer&&window.Polymer.orderedComputed||!1,Rh=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Qo=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications,window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Xo=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
264
298
|
@license
|
|
265
299
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
266
300
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -268,7 +302,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
268
302
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
269
303
|
Code distributed by Google as part of the polymer project is also
|
|
270
304
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
271
|
-
*/let
|
|
305
|
+
*/let tr=0;const m=function(s){let t=s.__mixinApplications;t||(t=new WeakMap,s.__mixinApplications=t);let e=tr++;function i(h){let a=h.__mixinSet;if(a&&a[e])return h;let n=t,r=n.get(h);if(!r){r=s(h),n.set(h,r);let o=Object.create(r.__mixinSet||a||null);o[e]=!0,r.__mixinSet=o}return r}return i};/**
|
|
272
306
|
@license
|
|
273
307
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
274
308
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -276,7 +310,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
276
310
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
277
311
|
Code distributed by Google as part of the polymer project is also
|
|
278
312
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
279
|
-
*/let
|
|
313
|
+
*/let y1={},Hh={};function Dh(s,t){y1[s]=Hh[s.toLowerCase()]=t}function Vh(s){return y1[s]||Hh[s.toLowerCase()]}function er(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id)}class u0 extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=Vh(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,h){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=v0(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=M1(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(z1&&Vh(t)!==void 0)throw Dh(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Dh(t,this),er(this)}}}u0.prototype.modules=y1,customElements.define("dom-module",u0);/**
|
|
280
314
|
@license
|
|
281
315
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
282
316
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -284,7 +318,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
284
318
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
285
319
|
Code distributed by Google as part of the polymer project is also
|
|
286
320
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
287
|
-
*/const
|
|
321
|
+
*/const ir="link[rel=import][type~=css]",hr="include",Bh="shady-unscoped";function Uh(s){return u0.import(s)}function Fh(s){let t=s.body?s.body:s;const e=m1(t.textContent,s.baseURI),i=document.createElement("style");return i.textContent=e,i}function sr(s){const t=s.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...ar(t[i]));return e}function ar(s){const t=Uh(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...qh(t));const i=t.querySelector("template");i&&e.push(...jh(i,t.assetpath)),t._styles=e}return t._styles}function jh(s,t){if(!s._styles){const e=[],i=s.content.querySelectorAll("style");for(let h=0;h<i.length;h++){let a=i[h],n=a.getAttribute(hr);n&&e.push(...sr(n).filter(function(r,o,l){return l.indexOf(r)===o})),t&&(a.textContent=m1(a.textContent,t)),e.push(a)}s._styles=e}return s._styles}function nr(s){let t=Uh(s);return t?qh(t):[]}function qh(s){const t=[],e=s.querySelectorAll(ir);for(let i=0;i<e.length;i++){let h=e[i];if(h.import){const a=h.import,n=h.hasAttribute(Bh);if(n&&!a._unscopedStyle){const r=Fh(a);r.setAttribute(Bh,""),a._unscopedStyle=r}else a._style||(a._style=Fh(a));t.push(n?a._unscopedStyle:a._style)}}return t}/**
|
|
288
322
|
@license
|
|
289
323
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
290
324
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -292,7 +326,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
292
326
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
293
327
|
Code distributed by Google as part of the polymer project is also
|
|
294
328
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
295
|
-
*/const
|
|
329
|
+
*/const st=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?s=>ShadyDOM.patch(s):s=>s;/**
|
|
296
330
|
@license
|
|
297
331
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
298
332
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -300,7 +334,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
300
334
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
301
335
|
Code distributed by Google as part of the polymer project is also
|
|
302
336
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
303
|
-
*/function
|
|
337
|
+
*/function A1(s){return s.indexOf(".")>=0}function at(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function or(s,t){return s.indexOf(t+".")===0}function ve(s,t){return t.indexOf(s+".")===0}function ue(s,t,e){return t+e.slice(s.length)}function f0(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let h=0;h<i.length;h++)t.push(i[h])}return t.join(".")}else return s}function Wh(s){return Array.isArray(s)?f0(s).split("."):s.toString().split(".")}function S(s,t,e){let i=s,h=Wh(t);for(let a=0;a<h.length;a++){if(!i)return;let n=h[a];i=i[n]}return e&&(e.path=h.join(".")),i}function Yh(s,t,e){let i=s,h=Wh(t),a=h[h.length-1];if(h.length>1){for(let n=0;n<h.length-1;n++){let r=h[n];if(i=i[r],!i)return}i[a]=e}else i[t]=e;return h.join(".")}/**
|
|
304
338
|
@license
|
|
305
339
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
306
340
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -308,7 +342,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
308
342
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
309
343
|
Code distributed by Google as part of the polymer project is also
|
|
310
344
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
311
|
-
*/const
|
|
345
|
+
*/const fe={},rr=/-[a-z]/g,lr=/([A-Z])/g;function Gh(s){return fe[s]||(fe[s]=s.indexOf("-")<0?s:s.replace(rr,t=>t[1].toUpperCase()))}function ge(s){return fe[s]||(fe[s]=s.replace(lr,"-$1").toLowerCase())}/**
|
|
312
346
|
@license
|
|
313
347
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
314
348
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -316,7 +350,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
316
350
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
317
351
|
Code distributed by Google as part of the polymer project is also
|
|
318
352
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
319
|
-
*/let
|
|
353
|
+
*/let dr=0,Zh=0,Nt=[],cr=0,$1=!1,Kh=document.createTextNode("");new window.MutationObserver(pr).observe(Kh,{characterData:!0});function pr(){$1=!1;const s=Nt.length;for(let t=0;t<s;t++){let e=Nt[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Nt.splice(0,s),Zh+=s}const vr={run(s){return $1||($1=!0,Kh.textContent=cr++),Nt.push(s),dr++},cancel(s){const t=s-Zh;if(t>=0){if(!Nt[t])throw new Error("invalid async handle: "+s);Nt[t]=null}}};/**
|
|
320
354
|
@license
|
|
321
355
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
322
356
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -324,7 +358,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
324
358
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
325
359
|
Code distributed by Google as part of the polymer project is also
|
|
326
360
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
327
|
-
*/const
|
|
361
|
+
*/const ur=vr,Jh=m(s=>{class t extends s{static createProperties(i){const h=this.prototype;for(let a in i)a in h||h._createPropertyAccessor(a)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,h){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,h))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let h=this.__dataAttributes[i];return h||(h=this.constructor.attributeNameForProperty(i),this.__dataAttributes[h]=i),h}_definePropertyAccessor(i,h){Object.defineProperty(this,i,{get(){return this.__data[i]},set:h?function(){}:function(a){this._setPendingProperty(i,a,!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 i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,h){this._setPendingProperty(i,h)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,h,a){let n=this.__data[i],r=this._shouldPropertyChange(i,h,n);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=h,this.__dataPending[i]=h),r}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ur.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 i=this.__data,h=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(i,h,a)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,h,a)),this.__dataCounter--}_shouldPropertiesChange(i,h,a){return Boolean(h)}_propertiesChanged(i,h,a){}_shouldPropertyChange(i,h,a){return a!==h&&(a===a||h===h)}attributeChangedCallback(i,h,a,n){h!==a&&this._attributeToProperty(i,a),super.attributeChangedCallback&&super.attributeChangedCallback(i,h,a,n)}_attributeToProperty(i,h,a){if(!this.__serializing){const n=this.__dataAttributes,r=n&&n[i]||i;this[r]=this._deserializeValue(h,a||this.constructor.typeForProperty(r))}}_propertyToAttribute(i,h,a){this.__serializing=!0,a=arguments.length<3?this[i]:a,this._valueToNodeAttribute(this,a,h||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,h,a){const n=this._serializeValue(h);(a==="class"||a==="name"||a==="slot")&&(i=st(i)),n===void 0?i.removeAttribute(a):i.setAttribute(a,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i?.toString()}}_deserializeValue(i,h){switch(h){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
|
|
328
362
|
@license
|
|
329
363
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
330
364
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -332,7 +366,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
332
366
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
333
367
|
Code distributed by Google as part of the polymer project is also
|
|
334
368
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
335
|
-
*/const
|
|
369
|
+
*/const Qh={};let _e=HTMLElement.prototype;for(;_e;){let s=Object.getOwnPropertyNames(_e);for(let t=0;t<s.length;t++)Qh[s[t]]=!0;_e=Object.getPrototypeOf(_e)}const fr=(()=>window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1)();function gr(s,t){if(!Qh[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e))}}const _r=m(s=>{const t=Jh(s);class e extends t{static createPropertiesForAttributes(){let h=this.observedAttributes;for(let a=0;a<h.length;a++)this.prototype._createPropertyAccessor(Gh(h[a]))}static attributeNameForProperty(h){return ge(h)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(h){for(let a in h)this._setProperty(a,h[a])}_ensureAttribute(h,a){const n=this;n.hasAttribute(h)||this._valueToNodeAttribute(n,a,h)}_serializeValue(h){switch(typeof h){case"object":if(h instanceof Date)return h.toString();if(h){if(fr(h))return h;try{return JSON.stringify(h)}catch{return""}}default:return super._serializeValue(h)}}_deserializeValue(h,a){let n;switch(a){case Object:try{n=JSON.parse(h)}catch{n=h}break;case Array:try{n=JSON.parse(h)}catch{n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${h}`)}break;case Date:n=isNaN(h)?String(h):Number(h),n=new Date(n);break;default:n=super._deserializeValue(h,a);break}return n}_definePropertyAccessor(h,a){gr(this,h),super._definePropertyAccessor(h,a)}_hasAccessor(h){return this.__dataHasAccessor&&this.__dataHasAccessor[h]}_isPropertyPending(h){return Boolean(this.__dataPending&&h in this.__dataPending)}}return e});/**
|
|
336
370
|
@license
|
|
337
371
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
338
372
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -340,7 +374,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
340
374
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
341
375
|
Code distributed by Google as part of the polymer project is also
|
|
342
376
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
343
|
-
*/const
|
|
377
|
+
*/const mr={"dom-if":!0,"dom-repeat":!0};let Xh=!1,ts=!1;function Mr(){if(!Xh){Xh=!0;const s=document.createElement("textarea");s.placeholder="a",ts=s.placeholder===s.textContent}return ts}function zr(s){Mr()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null)}const br=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const h=e.getAttribute(i);if(s&&i.startsWith("on-")){t.setAttribute(i,s.createScript(h,i));return}t.setAttribute(i,h)}})();function yr(s){let t=s.getAttribute("is");if(t&&mr[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];br(s,e,i),e.removeAttribute(i)}}return s}function es(s,t){let e=t.parentInfo&&es(s,t.parentInfo);if(e){for(let i=e.firstChild,h=0;i;i=i.nextSibling)if(t.parentIndex===h++)return i}else return s}function Ar(s,t,e,i){i.id&&(t[i.id]=e)}function $r(s,t,e){if(e.events&&e.events.length)for(let i=0,h=e.events,a;i<h.length&&(a=h[i]);i++)s._addMethodEventListenerToNode(t,a.name,a.value,s)}function xr(s,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function wr(s,t,e){return s=s._methodHost||s,function(h){s[e]?s[e](h,h.detail):console.warn("listener method `"+e+"` not defined")}}const Cr=m(s=>{class t extends s{static _parseTemplate(i,h){if(!i._templateInfo){let a=i._templateInfo={};a.nodeInfoList=[],a.nestedTemplate=Boolean(h),a.stripWhiteSpace=h&&h.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,a,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,h,a){return this._parseTemplateNode(i.content,h,a)}static _parseTemplateNode(i,h,a){let n=!1,r=i;return r.localName=="template"&&!r.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(r,h,a)||n:r.localName==="slot"&&(h.hasInsertionPoint=!0),zr(r),r.firstChild&&this._parseTemplateChildNodes(r,h,a),r.hasAttributes&&r.hasAttributes()&&(n=this._parseTemplateNodeAttributes(r,h,a)||n),n||a.noted}static _parseTemplateChildNodes(i,h,a){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,r=0,o;n;n=o){if(n.localName=="template"&&(n=yr(n)),o=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=o;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,o=c.nextSibling,i.removeChild(c),c=o;if(h.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let l={parentIndex:r,parentInfo:a};this._parseTemplateNode(n,h,l)&&(l.infoIndex=h.nodeInfoList.push(l)-1),n.parentNode&&r++}}static _parseTemplateNestedTemplate(i,h,a){let n=i,r=this._parseTemplate(n,h);return(r.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),a.templateInfo=r,!0}static _parseTemplateNodeAttributes(i,h,a){let n=!1,r=Array.from(i.attributes);for(let o=r.length-1,l;l=r[o];o--)n=this._parseTemplateNodeAttribute(i,h,a,l.name,l.value)||n;return n}static _parseTemplateNodeAttribute(i,h,a,n,r){return n.slice(0,3)==="on-"?(i.removeAttribute(n),a.events=a.events||[],a.events.push({name:n.slice(3),value:r}),!0):n==="id"?(a.id=r,!0):!1}static _contentForTemplate(i){let h=i._templateInfo;return h&&h.content||i.content}_stampTemplate(i,h){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),h=h||this.constructor._parseTemplate(i);let a=h.nodeInfoList,n=h.content||i.content,r=document.importNode(n,!0);r.__noInsertionPoint=!h.hasInsertionPoint;let o=r.nodeList=new Array(a.length);r.$={};for(let l=0,c=a.length,d;l<c&&(d=a[l]);l++){let p=o[l]=es(r,d);Ar(this,r.$,p,d),xr(this,p,d,h),$r(this,p,d)}return r=r,r}_addMethodEventListenerToNode(i,h,a,n){n=n||i;let r=wr(n,h,a);return this._addEventListenerToNode(i,h,r),r}_addEventListenerToNode(i,h,a){i.addEventListener(h,a)}_removeEventListenerFromNode(i,h,a){i.removeEventListener(h,a)}}return t});/**
|
|
344
378
|
* @fileoverview
|
|
345
379
|
* @suppress {checkPrototypalTypes}
|
|
346
380
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -350,7 +384,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
350
384
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
351
385
|
* Google as part of the polymer project is also subject to an additional IP
|
|
352
386
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
353
|
-
*/let r0=0;const l0=[],g={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},G1="__computeInfo",Ia=/[A-Z]/;function ot(a,e,t){let h=a[e];if(!h)h=a[e]={};else if(!a.hasOwnProperty(e)&&(h=a[e]=Object.create(a[e]),t))for(let i in h){let s=h[i],n=h[i]=Array(s.length);for(let o=0;o<s.length;o++)n[o]=s[o]}return h}function d0(a,e,t,h,i,s){if(e){let n=!1;const o=r0++;for(let r in t){let l=i?$(r):r,d=e[l];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==o)&&(!i||rt(r,v.trigger))&&(v.info&&(v.info.lastRun=o),v.fn(a,r,t,h,v.info,i,s),n=!0)}return n}return!1}function Ta(a,e,t,h,i,s,n,o){let r=!1,l=n?$(h):h,d=e[l];if(d)for(let c=0,p=d.length,v;c<p&&(v=d[c]);c++)(!v.info||v.info.lastRun!==t)&&(!n||rt(h,v.trigger))&&(v.info&&(v.info.lastRun=t),v.fn(a,h,i,s,v.info,n,o),r=!0);return r}function rt(a,e){if(e){let t=e.name;return t==a||!!(e.structured&&la(t,a))||!!(e.wildcard&&x0(t,a))}else return!0}function K1(a,e,t,h,i){let s=typeof i.method=="string"?a[i.method]:i.method,n=i.property;s?s.call(a,a.__data[n],h[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Oa(a,e,t,h,i){let s=a[g.NOTIFY],n,o=r0++;for(let l in e)e[l]&&(s&&Ta(a,s,o,l,t,h,i)||i&&ka(a,l,t))&&(n=!0);let r;n&&(r=a.__dataHost)&&r._invalidateProperties&&r._invalidateProperties()}function ka(a,e,t){let h=$(e);if(h!==e){let i=E0(h)+"-changed";return Z1(a,i,t[e],e),!0}return!1}function Z1(a,e,t,h){let i={value:t,queueProperty:!0};h&&(i.path=h),L(a).dispatchEvent(new CustomEvent(e,{detail:i}))}function Na(a,e,t,h,i,s){let o=(s?$(e):e)!=e?e:null,r=o?y(a,o):a.__data[e];o&&r===void 0&&(r=t[e]),Z1(a,i.eventName,r,o)}function La(a,e,t,h,i){let s,n=a.detail,o=n&&n.path;o?(h=C0(t,h,o),s=n&&n.value):s=a.currentTarget[t],s=i?!s:s,(!e[g.READ_ONLY]||!e[g.READ_ONLY][h])&&e._setPendingPropertyOrPath(h,s,!0,Boolean(o))&&(!n||!n.queueProperty)&&e._invalidateProperties()}function $a(a,e,t,h,i){let s=a.__data[e];w0&&(s=w0(s,i.attrName,"attribute",a)),a._propertyToAttribute(e,i.attrName,s)}function Va(a,e,t,h){let i=a[g.COMPUTE];if(i)if(Xh){r0++;const s=Da(a),n=[];for(let r in e)J1(r,i,n,s,h);let o;for(;o=n.shift();)Q1(a,"",e,t,o)&&J1(o.methodInfo,i,n,s,h);Object.assign(t,a.__dataOld),Object.assign(e,a.__dataPending),a.__dataPending=null}else{let s=e;for(;d0(a,i,s,t,h);)Object.assign(t,a.__dataOld),Object.assign(e,a.__dataPending),s=a.__dataPending,a.__dataPending=null}}const Ra=(a,e,t)=>{let h=0,i=e.length-1,s=-1;for(;h<=i;){const n=h+i>>1,o=t.get(e[n].methodInfo)-t.get(a.methodInfo);if(o<0)h=n+1;else if(o>0)i=n-1;else{s=n;break}}s<0&&(s=i+1),e.splice(s,0,a)},J1=(a,e,t,h,i)=>{const s=i?$(a):a,n=e[s];if(n)for(let o=0;o<n.length;o++){const r=n[o];r.info.lastRun!==r0&&(!i||rt(a,r.trigger))&&(r.info.lastRun=r0,Ra(r.info,t,h))}};function Da(a){let e=a.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=a[g.COMPUTE];let{counts:h,ready:i,total:s}=Ba(a),n;for(;n=i.shift();){e.set(n,e.size);const o=t[n];o&&o.forEach(r=>{const l=r.info.methodInfo;--s,--h[l]===0&&i.push(l)})}s!==0&&console.warn(`Computed graph for ${a.localName} incomplete; circular?`),a.constructor.__orderedComputedDeps=e}return e}function Ba(a){const e=a[G1],t={},h=a[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 h)e[n]||i.push(n);return{counts:t,ready:i,total:s}}function Q1(a,e,t,h,i){let s=dt(a,e,t,h,i);if(s===l0)return!1;let n=i.methodInfo;return a.__dataHasAccessor&&a.__dataHasAccessor[n]?a._setPendingProperty(n,s,!0):(a[n]=s,!1)}function Fa(a,e,t){let h=a.__dataLinkedPaths;if(h){let i;for(let s in h){let n=h[s];x0(s,e)?(i=C0(s,n,e),a._setPendingPropertyOrPath(i,t,!0,!0)):x0(n,e)&&(i=C0(n,s,e),a._setPendingPropertyOrPath(i,t,!0,!0))}}}function lt(a,e,t,h,i,s,n){t.bindings=t.bindings||[];let o={kind:h,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(a,e,o,d,r)}}function Ha(a,e,t,h,i){if(!h.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=h.dependencies,n={index:i,binding:t,part:h,evaluator:a};for(let o=0;o<s.length;o++){let r=s[o];typeof r=="string"&&(r=ie(r),r.wildcard=!0),a._addTemplatePropertyEffect(e,r.rootProperty,{fn:Ua,info:n,trigger:r})}}}function Ua(a,e,t,h,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)&&a._enqueueClient(o)}else{let d=i.evaluator._evaluateBinding(a,l,e,t,h,s);d!==l0&&qa(a,o,r,l,d)}}function qa(a,e,t,h,i){if(i=ja(e,i,t,h),w0&&(i=w0(i,t.target,t.kind,e)),t.kind=="attribute")a._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)&&a._enqueueClient(e):a._setUnmanagedPropertyToNode(e,s,i)}}function ja(a,e,t,h){if(t.isCompound){let i=a.__dataCompoundStorage[t.target];i[h.compoundIndex]=e,e=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(a.localName==="input"||a.localName==="textarea"))&&(e=e??""),e}function Wa(a){return Boolean(a.target)&&a.kind!="attribute"&&a.kind!="text"&&!a.isCompound&&a.parts[0].mode==="{"}function Ya(a,e){let{nodeList:t,nodeInfoList:h}=e;if(h.length)for(let i=0;i<h.length;i++){let s=h[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,a,l)}n.__dataHost=a}}function Ga(a,e){if(e.isCompound){let t=a.__dataCompoundStorage||(a.__dataCompoundStorage={}),h=e.parts,i=new Array(h.length);for(let n=0;n<h.length;n++)i[n]=h[n].literal;let s=e.target;t[s]=i,e.literal&&e.kind=="property"&&(s==="className"&&(a=L(a)),a[s]=e.literal)}}function Ka(a,e,t){if(t.listenerEvent){let h=t.parts[0];a.addEventListener(t.listenerEvent,function(i){La(i,e,t.target,h.source,h.negate)})}}function X1(a,e,t,h,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||a._addPropertyEffect(r.rootProperty,t,{fn:h,info:n,trigger:r});return s&&a._addPropertyEffect(e.methodName,t,{fn:h,info:n}),n}function dt(a,e,t,h,i){let s=a._methodHost||a,n=s[i.methodName];if(n){let o=a._marshalArgs(i.args,e,t);return o===l0?l0:n.apply(s,o)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Za=[],te="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ja="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Qa="(?:'(?:[^'\\\\]|\\\\.)*')",Xa='(?:"(?:[^"\\\\]|\\\\.)*")',ti="(?:"+Qa+"|"+Xa+")",ee="(?:("+te+"|"+Ja+"|"+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(a){let e="";for(let t=0;t<a.length;t++)e+=a[t].literal||"";return e}function ct(a){let e=a.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let h={methodName:e[1],static:!0,args:Za};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return oi(i,h)}else return h}return null}function oi(a,e){return e.args=a.map(function(t){let h=ie(t);return h.literal||(e.static=!1),h},this),e}function ie(a){let e=a.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},h=e[0];switch(h==="-"&&(h=e[1]),h>="0"&&h<="9"&&(h="#"),h){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=st(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function se(a,e,t){let h=y(a,t);return h===void 0&&(h=e[t]),h}function ne(a,e,t,h){const i={indexSplices:h};at&&!a._overrideLegacyUndefined&&(e.splices=i),a.notifyPath(t+".splices",i),a.notifyPath(t+".length",e.length),at&&!a._overrideLegacyUndefined&&(i.indexSplices=[])}function c0(a,e,t,h,i,s){ne(a,e,t,[{index:h,addedCount:i,removed:s,object:e,type:"splice"}])}function ri(a){return a[0].toUpperCase()+a.substring(1)}const li=m(a=>{const e=Pa(Ma(a));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(p0.length){let i=p0[p0.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||$(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=L(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(),d0(this,this[g.REFLECT],s,n,o),d0(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]&&d0(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)=>{d0(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=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 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&&c0(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&&c0(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)&&c0(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&&c0(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&&c0(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=o0(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:$a,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:p,wildcard:v,value:u,literal:M}=i[l];if(!M)if(v){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=p?se(o,n,c):o[c];if(at&&!this._overrideLegacyUndefined&&u===void 0&&i.length>1)return l0;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),p0.push(this);let n=super._stampTemplate(i,s);if(p0.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];L(L(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 p=ae(l);return p&&c=="attribute"&&(o=="class"&&i.hasAttribute("class")&&(p+=" "+i.getAttribute(o)),i.setAttribute(o,p)),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,p),!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 p=l.hostProps;if(ta&&d)p&&(s.hostProps=Object.assign(s.hostProps||{},p),P1||(n.parentInfo.noted=!0));else{let v="{";for(let u in p){let M=[{mode:v,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(),p=!1,v="",u=-1;l=="{"&&(u=c.indexOf("::"))>0&&(v=c.substring(u+2),c=c.substring(0,u),p=!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:p,signature:M,dependencies:w,event:v}),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}),p0=[];/**
|
|
387
|
+
*/let g0=0;const _0=[],g={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},is="__computeInfo",Er=/[A-Z]/;function x1(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let h in i){let a=i[h],n=i[h]=Array(a.length);for(let r=0;r<a.length;r++)n[r]=a[r]}return i}function m0(s,t,e,i,h,a){if(t){let n=!1;const r=g0++;for(let o in e){let l=h?at(o):o,c=t[l];if(c)for(let d=0,p=c.length,v;d<p&&(v=c[d]);d++)(!v.info||v.info.lastRun!==r)&&(!h||w1(o,v.trigger))&&(v.info&&(v.info.lastRun=r),v.fn(s,o,e,i,v.info,h,a),n=!0)}return n}return!1}function Sr(s,t,e,i,h,a,n,r){let o=!1,l=n?at(i):i,c=t[l];if(c)for(let d=0,p=c.length,v;d<p&&(v=c[d]);d++)(!v.info||v.info.lastRun!==e)&&(!n||w1(i,v.trigger))&&(v.info&&(v.info.lastRun=e),v.fn(s,i,h,a,v.info,n,r),o=!0);return o}function w1(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&or(e,s))||!!(t.wildcard&&ve(e,s))}else return!0}function hs(s,t,e,i,h){let a=typeof h.method=="string"?s[h.method]:h.method,n=h.property;a?a.call(s,s.__data[n],i[n]):h.dynamicFn||console.warn("observer method `"+h.method+"` not defined")}function Tr(s,t,e,i,h){let a=s[g.NOTIFY],n,r=g0++;for(let l in t)t[l]&&(a&&Sr(s,a,r,l,e,i,h)||h&&Pr(s,l,e))&&(n=!0);let o;n&&(o=s.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}function Pr(s,t,e){let i=at(t);if(i!==t){let h=ge(i)+"-changed";return ss(s,h,e[t],t),!0}return!1}function ss(s,t,e,i){let h={value:e,queueProperty:!0};i&&(h.path=i),st(s).dispatchEvent(new CustomEvent(t,{detail:h}))}function Ir(s,t,e,i,h,a){let r=(a?at(t):t)!=t?t:null,o=r?S(s,r):s.__data[t];r&&o===void 0&&(o=e[t]),ss(s,h.eventName,o,r)}function Nr(s,t,e,i,h){let a,n=s.detail,r=n&&n.path;r?(i=ue(e,i,r),a=n&&n.value):a=s.currentTarget[e],a=h?!a:a,(!t[g.READ_ONLY]||!t[g.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,a,!0,Boolean(r))&&(!n||!n.queueProperty)&&t._invalidateProperties()}function kr(s,t,e,i,h){let a=s.__data[t];pe&&(a=pe(a,h.attrName,"attribute",s)),s._propertyToAttribute(t,h.attrName,a)}function Or(s,t,e,i){let h=s[g.COMPUTE];if(h)if(Jo){g0++;const a=Rr(s),n=[];for(let o in t)as(o,h,n,a,i);let r;for(;r=n.shift();)ns(s,"",t,e,r)&&as(r.methodInfo,h,n,a,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null}else{let a=t;for(;m0(s,h,a,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),a=s.__dataPending,s.__dataPending=null}}const Lr=(s,t,e)=>{let i=0,h=t.length-1,a=-1;for(;i<=h;){const n=i+h>>1,r=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(r<0)i=n+1;else if(r>0)h=n-1;else{a=n;break}}a<0&&(a=h+1),t.splice(a,0,s)},as=(s,t,e,i,h)=>{const a=h?at(s):s,n=t[a];if(n)for(let r=0;r<n.length;r++){const o=n[r];o.info.lastRun!==g0&&(!h||w1(s,o.trigger))&&(o.info.lastRun=g0,Lr(o.info,e,i))}};function Rr(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[g.COMPUTE];let{counts:i,ready:h,total:a}=Hr(s),n;for(;n=h.shift();){t.set(n,t.size);const r=e[n];r&&r.forEach(o=>{const l=o.info.methodInfo;--a,--i[l]===0&&h.push(l)})}a!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t}return t}function Hr(s){const t=s[is],e={},i=s[g.COMPUTE],h=[];let a=0;for(let n in t){const r=t[n];a+=e[n]=r.args.filter(o=>!o.literal).length+(r.dynamicFn?1:0)}for(let n in i)t[n]||h.push(n);return{counts:e,ready:h,total:a}}function ns(s,t,e,i,h){let a=E1(s,t,e,i,h);if(a===_0)return!1;let n=h.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,a,!0):(s[n]=a,!1)}function Dr(s,t,e){let i=s.__dataLinkedPaths;if(i){let h;for(let a in i){let n=i[a];ve(a,t)?(h=ue(a,n,t),s._setPendingPropertyOrPath(h,e,!0,!0)):ve(n,t)&&(h=ue(n,a,t),s._setPendingPropertyOrPath(h,e,!0,!0))}}}function C1(s,t,e,i,h,a,n){e.bindings=e.bindings||[];let r={kind:i,target:h,parts:a,literal:n,isCompound:a.length!==1};if(e.bindings.push(r),jr(r)){let{event:l,negate:c}=r.parts[0];r.listenerEvent=l||ge(h)+"-changed",r.listenerNegate=c}let o=t.nodeInfoList.length;for(let l=0;l<r.parts.length;l++){let c=r.parts[l];c.compoundIndex=l,Vr(s,t,r,c,o)}}function Vr(s,t,e,i,h){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let a=i.dependencies,n={index:h,binding:e,part:i,evaluator:s};for(let r=0;r<a.length;r++){let o=a[r];typeof o=="string"&&(o=ps(o),o.wildcard=!0),s._addTemplatePropertyEffect(t,o.rootProperty,{fn:Br,info:n,trigger:o})}}}function Br(s,t,e,i,h,a,n){let r=n[h.index],o=h.binding,l=h.part;if(a&&l.source&&t.length>l.source.length&&o.kind=="property"&&!o.isCompound&&r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[o.target]){let c=e[t];t=ue(l.source,o.target,t),r._setPendingPropertyOrPath(t,c,!1,!0)&&s._enqueueClient(r)}else{let c=h.evaluator._evaluateBinding(s,l,t,e,i,a);c!==_0&&Ur(s,r,o,l,c)}}function Ur(s,t,e,i,h){if(h=Fr(t,h,e,i),pe&&(h=pe(h,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,h,e.target);else{let a=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[a]?(!t[g.READ_ONLY]||!t[g.READ_ONLY][a])&&t._setPendingProperty(a,h)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,a,h)}}function Fr(s,t,e,i){if(e.isCompound){let h=s.__dataCompoundStorage[e.target];h[i.compoundIndex]=t,t=h.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t??""),t}function jr(s){return Boolean(s.target)&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function qr(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let h=0;h<i.length;h++){let a=i[h],n=e[h],r=a.bindings;if(r)for(let o=0;o<r.length;o++){let l=r[o];Wr(n,l),Yr(n,s,l)}n.__dataHost=s}}function Wr(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,h=new Array(i.length);for(let n=0;n<i.length;n++)h[n]=i[n].literal;let a=t.target;e[a]=h,t.literal&&t.kind=="property"&&(a==="className"&&(s=st(s)),s[a]=t.literal)}}function Yr(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(h){Nr(h,t,e.target,i.source,i.negate)})}}function os(s,t,e,i,h,a){a=t.static||a&&(typeof a!="object"||a[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:h,dynamicFn:a};for(let r=0,o;r<t.args.length&&(o=t.args[r]);r++)o.literal||s._addPropertyEffect(o.rootProperty,e,{fn:i,info:n,trigger:o});return a&&s._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function E1(s,t,e,i,h){let a=s._methodHost||s,n=a[h.methodName];if(n){let r=s._marshalArgs(h.args,t,e);return r===_0?_0:n.apply(a,r)}else h.dynamicFn||console.warn("method `"+h.methodName+"` not defined")}const Gr=[],rs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Zr="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Kr="(?:'(?:[^'\\\\]|\\\\.)*')",Jr='(?:"(?:[^"\\\\]|\\\\.)*")',Qr="(?:"+Kr+"|"+Jr+")",ls="(?:("+rs+"|"+Zr+"|"+Qr+")\\s*)",Xr="(?:"+ls+"(?:,\\s*"+ls+")*)",tl="(?:\\(\\s*(?:"+Xr+"?)\\)\\s*)",el="("+rs+"\\s*"+tl+"?)",il="(\\[\\[|{{)\\s*",hl="(?:]]|}})",sl=il+"(?:(!)\\s*)?"+el+hl,ds=new RegExp(sl,"g");function cs(s){let t="";for(let e=0;e<s.length;e++)t+=s[e].literal||"";return t}function S1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Gr};if(t[2].trim()){let h=t[2].replace(/\\,/g,",").split(",");return al(h,i)}else return i}return null}function al(s,t){return t.args=s.map(function(e){let i=ps(e);return i.literal||(t.static=!1),i},this),t}function ps(s){let t=s.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=at(t),e.structured=A1(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function vs(s,t,e){let i=S(s,e);return i===void 0&&(i=t[e]),i}function us(s,t,e,i){const h={indexSplices:i};b1&&!s._overrideLegacyUndefined&&(t.splices=h),s.notifyPath(e+".splices",h),s.notifyPath(e+".length",t.length),b1&&!s._overrideLegacyUndefined&&(h.indexSplices=[])}function M0(s,t,e,i,h,a){us(s,t,e,[{index:i,addedCount:h,removed:a,object:t,type:"splice"}])}function nl(s){return s[0].toUpperCase()+s.substring(1)}const ol=m(s=>{const t=Cr(_r(s));class e extends t{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(z0.length){let h=z0[z0.length-1];h._enqueueClient(this),this.__dataHost=h}}_initializeProtoProperties(h){this.__data=Object.create(h),this.__dataPending=Object.create(h),this.__dataOld={}}_initializeInstanceProperties(h){let a=this[g.READ_ONLY];for(let n in h)(!a||!a[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=h[n])}_addPropertyEffect(h,a,n){this._createPropertyAccessor(h,a==g.READ_ONLY);let r=x1(this,a,!0)[h];r||(r=this[a][h]=[]),r.push(n)}_removePropertyEffect(h,a,n){let r=x1(this,a,!0)[h],o=r.indexOf(n);o>=0&&r.splice(o,1)}_hasPropertyEffect(h,a){let n=this[a];return Boolean(n&&n[h])}_hasReadOnlyEffect(h){return this._hasPropertyEffect(h,g.READ_ONLY)}_hasNotifyEffect(h){return this._hasPropertyEffect(h,g.NOTIFY)}_hasReflectEffect(h){return this._hasPropertyEffect(h,g.REFLECT)}_hasComputedEffect(h){return this._hasPropertyEffect(h,g.COMPUTE)}_setPendingPropertyOrPath(h,a,n,r){if(r||at(Array.isArray(h)?h[0]:h)!==h){if(!r){let o=S(this,h);if(h=Yh(this,h,a),!h||!super._shouldPropertyChange(h,a,o))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(h,a,n))return Dr(this,h,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[h])return this._setPendingProperty(h,a,n);this[h]=a}return!1}_setUnmanagedPropertyToNode(h,a,n){(n!==h[a]||typeof n=="object")&&(a==="className"&&(h=st(h)),h[a]=n)}_setPendingProperty(h,a,n){let r=this.__dataHasPaths&&A1(h),o=r?this.__dataTemp:this.__data;return this._shouldPropertyChange(h,a,o[h])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),h in this.__dataOld||(this.__dataOld[h]=this.__data[h]),r?this.__dataTemp[h]=a:this.__data[h]=a,this.__dataPending[h]=a,(r||this[g.NOTIFY]&&this[g.NOTIFY][h])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[h]=n),!0):!1}_setProperty(h,a){this._setPendingProperty(h,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(h){this.__dataPendingClients=this.__dataPendingClients||[],h!==this&&this.__dataPendingClients.push(h)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let h=this.__dataPendingClients;if(h){this.__dataPendingClients=null;for(let a=0;a<h.length;a++){let n=h[a];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(h,a){for(let n in h)(a||!this[g.READ_ONLY]||!this[g.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,h[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(h,a,n){let r=this.__dataHasPaths;this.__dataHasPaths=!1;let o;Or(this,a,n,r),o=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,n,r),this._flushClients(),m0(this,this[g.REFLECT],a,n,r),m0(this,this[g.OBSERVE],a,n,r),o&&Tr(this,o,a,n,r),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(h,a,n){this[g.PROPAGATE]&&m0(this,this[g.PROPAGATE],h,a,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,h,a,n)}_runEffectsForTemplate(h,a,n,r){const o=(l,c)=>{m0(this,h.propertyEffects,l,n,c,h.nodeList);for(let d=h.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,l,n,c)};h.runEffects?h.runEffects(o,a,r):o(a,r)}linkPaths(h,a){h=f0(h),a=f0(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[h]=a}unlinkPaths(h){h=f0(h),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[h]}notifySplices(h,a){let n={path:""},r=S(this,h,n);us(this,r,n.path,a)}get(h,a){return S(a||this,h)}set(h,a,n){n?Yh(n,h,a):(!this[g.READ_ONLY]||!this[g.READ_ONLY][h])&&this._setPendingPropertyOrPath(h,a,!0)&&this._invalidateProperties()}push(h,...a){let n={path:""},r=S(this,h,n),o=r.length,l=r.push(...a);return a.length&&M0(this,r,n.path,o,a.length,[]),l}pop(h){let a={path:""},n=S(this,h,a),r=Boolean(n.length),o=n.pop();return r&&M0(this,n,a.path,n.length,0,[o]),o}splice(h,a,n,...r){let o={path:""},l=S(this,h,o);a<0?a=l.length-Math.floor(-a):a&&(a=Math.floor(a));let c;return arguments.length===2?c=l.splice(a):c=l.splice(a,n,...r),(r.length||c.length)&&M0(this,l,o.path,a,r.length,c),c}shift(h){let a={path:""},n=S(this,h,a),r=Boolean(n.length),o=n.shift();return r&&M0(this,n,a.path,0,0,[o]),o}unshift(h,...a){let n={path:""},r=S(this,h,n),o=r.unshift(...a);return a.length&&M0(this,r,n.path,0,a.length,[]),o}notifyPath(h,a){let n;if(arguments.length==1){let r={path:""};a=S(this,h,r),n=r.path}else Array.isArray(h)?n=f0(h):n=h;this._setPendingPropertyOrPath(n,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(h,a){this._addPropertyEffect(h,g.READ_ONLY),a&&(this["_set"+nl(h)]=function(n){this._setProperty(h,n)})}_createPropertyObserver(h,a,n){let r={property:h,method:a,dynamicFn:Boolean(n)};this._addPropertyEffect(h,g.OBSERVE,{fn:hs,info:r,trigger:{name:h}}),n&&this._addPropertyEffect(a,g.OBSERVE,{fn:hs,info:r,trigger:{name:a}})}_createMethodObserver(h,a){let n=S1(h);if(!n)throw new Error("Malformed observer expression '"+h+"'");os(this,n,g.OBSERVE,E1,null,a)}_createNotifyingProperty(h){this._addPropertyEffect(h,g.NOTIFY,{fn:Ir,info:{eventName:ge(h)+"-changed",property:h}})}_createReflectedProperty(h){let a=this.constructor.attributeNameForProperty(h);a[0]==="-"?console.warn("Property "+h+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(h,g.REFLECT,{fn:kr,info:{attrName:a}})}_createComputedProperty(h,a,n){let r=S1(a);if(!r)throw new Error("Malformed computed expression '"+a+"'");const o=os(this,r,g.COMPUTE,ns,h,n);x1(this,is)[h]=o}_marshalArgs(h,a,n){const r=this.__data,o=[];for(let l=0,c=h.length;l<c;l++){let{name:d,structured:p,wildcard:v,value:u,literal:z}=h[l];if(!z)if(v){const T=ve(d,a),C=vs(r,n,T?a:d);u={path:T?a:d,value:C,base:T?S(r,d):C}}else u=p?vs(r,n,d):r[d];if(b1&&!this._overrideLegacyUndefined&&u===void 0&&h.length>1)return _0;o[l]=u}return o}static addPropertyEffect(h,a,n){this.prototype._addPropertyEffect(h,a,n)}static createPropertyObserver(h,a,n){this.prototype._createPropertyObserver(h,a,n)}static createMethodObserver(h,a){this.prototype._createMethodObserver(h,a)}static createNotifyingProperty(h){this.prototype._createNotifyingProperty(h)}static createReadOnlyProperty(h,a){this.prototype._createReadOnlyProperty(h,a)}static createReflectedProperty(h){this.prototype._createReflectedProperty(h)}static createComputedProperty(h,a,n){this.prototype._createComputedProperty(h,a,n)}static bindTemplate(h){return this.prototype._bindTemplate(h)}_bindTemplate(h,a){let n=this.constructor._parseTemplate(h),r=this.__preBoundTemplateInfo==n;if(!r)for(let o in n.propertyEffects)this._createPropertyAccessor(o);if(a)if(n=Object.create(n),n.wasPreBound=r,!this.__templateInfo)this.__templateInfo=n;else{const o=h._parentTemplateInfo||this.__templateInfo,l=o.lastChild;n.parent=o,o.lastChild=n,n.previousSibling=l,l?l.nextSibling=n:o.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(h,a,n){let r=h.hostProps=h.hostProps||{};r[a]=!0;let o=h.propertyEffects=h.propertyEffects||{};(o[a]=o[a]||[]).push(n)}_stampTemplate(h,a){a=a||this._bindTemplate(h,!0),z0.push(this);let n=super._stampTemplate(h,a);if(z0.pop(),a.nodeList=n.nodeList,!a.wasPreBound){let r=a.childNodes=[];for(let o=n.firstChild;o;o=o.nextSibling)r.push(o)}return n.templateInfo=a,qr(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(h){const a=h.templateInfo,{previousSibling:n,nextSibling:r,parent:o}=a;n?n.nextSibling=r:o&&(o.firstChild=r),r?r.previousSibling=n:o&&(o.lastChild=n),a.nextSibling=a.previousSibling=null;let l=a.childNodes;for(let c=0;c<l.length;c++){let d=l[c];st(st(d).parentNode).removeChild(d)}}static _parseTemplateNode(h,a,n){let r=t._parseTemplateNode.call(this,h,a,n);if(h.nodeType===Node.TEXT_NODE){let o=this._parseBindings(h.textContent,a);o&&(h.textContent=cs(o)||" ",C1(this,a,n,"text","textContent",o),r=!0)}return r}static _parseTemplateNodeAttribute(h,a,n,r,o){let l=this._parseBindings(o,a);if(l){let c=r,d="property";Er.test(r)?d="attribute":r[r.length-1]=="$"&&(r=r.slice(0,-1),d="attribute");let p=cs(l);return p&&d=="attribute"&&(r=="class"&&h.hasAttribute("class")&&(p+=" "+h.getAttribute(r)),h.setAttribute(r,p)),d=="attribute"&&c=="disable-upgrade$"&&h.setAttribute(r,""),h.localName==="input"&&c==="value"&&h.setAttribute(c,""),h.removeAttribute(c),d==="property"&&(r=Gh(r)),C1(this,a,n,d,r,l,p),!0}else return t._parseTemplateNodeAttribute.call(this,h,a,n,r,o)}static _parseTemplateNestedTemplate(h,a,n){let r=t._parseTemplateNestedTemplate.call(this,h,a,n);const o=h.parentNode,l=n.templateInfo,c=o.localName==="dom-if",d=o.localName==="dom-repeat";Rh&&(c||d)&&(o.removeChild(h),n=n.parentInfo,n.templateInfo=l,n.noted=!0,r=!1);let p=l.hostProps;if(Qo&&c)p&&(a.hostProps=Object.assign(a.hostProps||{},p),Rh||(n.parentInfo.noted=!0));else{let v="{";for(let u in p){let z=[{mode:v,source:u,dependencies:[u],hostProp:!0}];C1(this,a,n,"property","_host_"+u,z)}}return r}static _parseBindings(h,a){let n=[],r=0,o;for(;(o=ds.exec(h))!==null;){o.index>r&&n.push({literal:h.slice(r,o.index)});let l=o[1][0],c=Boolean(o[2]),d=o[3].trim(),p=!1,v="",u=-1;l=="{"&&(u=d.indexOf("::"))>0&&(v=d.substring(u+2),d=d.substring(0,u),p=!0);let z=S1(d),T=[];if(z){let{args:C,methodName:E}=z;for(let Pi=0;Pi<C.length;Pi++){let An=C[Pi];An.literal||T.push(An)}let Gt=a.dynamicFns;(Gt&&Gt[E]||z.static)&&(T.push(E),z.dynamicFn=!0)}else T.push(d);n.push({source:d,mode:l,negate:c,customEvent:p,signature:z,dependencies:T,event:v}),r=ds.lastIndex}if(r&&r<h.length){let l=h.substring(r);l&&n.push({literal:l})}return n.length?n:null}static _evaluateBinding(h,a,n,r,o,l){let c;return a.signature?c=E1(h,n,r,o,a.signature):n!=a.source?c=S(h,a.source):l&&A1(n)?c=S(h,n):c=h.__data[n],a.negate&&(c=!c),c}}return e}),z0=[];/**
|
|
354
388
|
@license
|
|
355
389
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
356
390
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -358,7 +392,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
358
392
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
359
393
|
Code distributed by Google as part of the polymer project is also
|
|
360
394
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
361
|
-
*/function
|
|
395
|
+
*/function mp(s){}/**
|
|
362
396
|
@license
|
|
363
397
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
364
398
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -366,7 +400,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
366
400
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
367
401
|
Code distributed by Google as part of the polymer project is also
|
|
368
402
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
369
|
-
*/function
|
|
403
|
+
*/function rl(s){const t={};for(let e in s){const i=s[e];t[e]=typeof i=="function"?{type:i}:i}return t}const ll=m(s=>{const t=Jh(s);function e(a){const n=Object.getPrototypeOf(a);return n.prototype instanceof h?n:null}function i(a){if(!a.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",a))){let n=null;if(a.hasOwnProperty(JSCompiler_renameProperty("properties",a))){const r=a.properties;r&&(n=rl(r))}a.__ownProperties=n}return a.__ownProperties}class h extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(r=>this.prototype._addPropertyToAttributeMap(r)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const r=this._properties[n];return r&&r.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return h});/**
|
|
370
404
|
* @fileoverview
|
|
371
405
|
* @suppress {checkPrototypalTypes}
|
|
372
406
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -376,7 +410,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
376
410
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
377
411
|
* Google as part of the polymer project is also subject to an additional IP
|
|
378
412
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
379
|
-
*/const
|
|
413
|
+
*/const dl="3.5.1",fs=window.ShadyCSS&&window.ShadyCSS.cssBuild,cl=m(s=>{const t=ll(ol(s));function e(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",o))){o.__propertyDefaults=null;let l=o._properties;for(let c in l){let d=l[c];"value"in d&&(o.__propertyDefaults=o.__propertyDefaults||{},o.__propertyDefaults[c]=d)}}return o.__propertyDefaults}function i(o){return o.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",o))||(o.__ownObservers=o.hasOwnProperty(JSCompiler_renameProperty("observers",o))?o.observers:null),o.__ownObservers}function h(o,l,c,d){c.computed&&(c.readOnly=!0),c.computed&&(o._hasReadOnlyEffect(l)?console.warn(`Cannot redefine computed property '${l}'.`):o._createComputedProperty(l,c.computed,d)),c.readOnly&&!o._hasReadOnlyEffect(l)?o._createReadOnlyProperty(l,!c.computed):c.readOnly===!1&&o._hasReadOnlyEffect(l)&&console.warn(`Cannot make readOnly property '${l}' non-readOnly.`),c.reflectToAttribute&&!o._hasReflectEffect(l)?o._createReflectedProperty(l):c.reflectToAttribute===!1&&o._hasReflectEffect(l)&&console.warn(`Cannot make reflected property '${l}' non-reflected.`),c.notify&&!o._hasNotifyEffect(l)?o._createNotifyingProperty(l):c.notify===!1&&o._hasNotifyEffect(l)&&console.warn(`Cannot make notify property '${l}' non-notify.`),c.observer&&o._createPropertyObserver(l,c.observer,d[c.observer]),o._addPropertyToAttributeMap(l)}function a(o,l,c,d){if(!fs){const p=l.content.querySelectorAll("style"),v=jh(l),u=nr(c),z=l.content.firstElementChild;for(let C=0;C<u.length;C++){let E=u[C];E.textContent=o._processStyleText(E.textContent,d),l.content.insertBefore(E,z)}let T=0;for(let C=0;C<v.length;C++){let E=v[C],Gt=p[T];Gt!==E?(E=E.cloneNode(!0),Gt.parentNode.insertBefore(E,Gt)):T++,E.textContent=o._processStyleText(E.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(l,c),Xo&&fs&&qo){const p=l.content.querySelectorAll("style");if(p){let v="";Array.from(p).forEach(u=>{v+=u.textContent,u.parentNode.removeChild(u)}),o._styleSheet=new CSSStyleSheet,o._styleSheet.replaceSync(v)}}}function n(o){let l=null;if(o&&(!z1||Yo)&&(l=u0.import(o,"template"),z1&&!l))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${o}`);return l}class r extends t{static get polymerElementVersion(){return dl}static _finalizeClass(){t._finalizeClass.call(this);const l=i(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):Go||(l=l.cloneNode(!0))),this.prototype._template=l}static createProperties(l){for(let c in l)h(this.prototype,c,l[c],l)}static createObservers(l,c){const d=this.prototype;for(let p=0;p<l.length;p++)d._createMethodObserver(l[p],c)}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=M1(l.url);else{const c=u0.import(this.is);this._importPath=c&&c.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=Wo,this.importPath=this.constructor.importPath;let l=e(this.constructor);if(!!l)for(let c in l){let d=l[c];if(this._canApplyPropertyDefault(c)){let p=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(c)?this._setPendingProperty(c,p,!0):this[c]=p}}}_canApplyPropertyDefault(l){return!this.hasOwnProperty(l)}static _processStyleText(l,c){return m1(l,c)}static _finalizeTemplate(l){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const d=this.importPath,p=d?v0(d):"";a(this,c,l,p),this.prototype._bindTemplate(c)}}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 c=st(this);if(c.attachShadow)return l?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:l}),c.shadowRoot.appendChild(l),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ko&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.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,c){return!c&&this.importPath&&(c=v0(this.importPath)),v0(l,c)}static _parseTemplateContent(l,c,d){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,l,c,d)}static _addTemplatePropertyEffect(l,c,d){return Zo&&!(c in this._properties)&&!(d.info.part.signature&&d.info.part.signature.static)&&!d.info.part.hostProp&&!l.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,l,c,d)}}return r});/**
|
|
380
414
|
@license
|
|
381
415
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
382
416
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -384,7 +418,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
384
418
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
385
419
|
Code distributed by Google as part of the polymer project is also
|
|
386
420
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
387
|
-
*/const
|
|
421
|
+
*/const gs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class _s{constructor(t,e){Ms(t,e);const i=e.reduce((h,a,n)=>h+ms(a)+t[n+1],t[0]);this.value=i.toString()}toString(){return this.value}}function ms(s){if(s instanceof _s)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function pl(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof _s)return ms(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const kt=function(t,...e){Ms(t,e);const i=document.createElement("template");let h=e.reduce((a,n,r)=>a+pl(n)+t[r+1],t[0]);return gs&&(h=gs.createHTML(h)),i.innerHTML=h,i},Ms=(s,t)=>{if(!Array.isArray(s)||!Array.isArray(s.raw)||t.length!==s.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
388
422
|
@license
|
|
389
423
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
390
424
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -392,15 +426,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
392
426
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
393
427
|
Code distributed by Google as part of the polymer project is also
|
|
394
428
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
395
|
-
*/const
|
|
429
|
+
*/const nt=cl(HTMLElement);/**
|
|
396
430
|
* @license
|
|
397
431
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
398
432
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
399
|
-
*/const
|
|
433
|
+
*/const vl=m(s=>typeof s.prototype.addController=="function"?s:class extends s{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
|
|
400
434
|
* @license
|
|
401
435
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
402
436
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
403
|
-
*/function
|
|
437
|
+
*/function zs(s){const t=customElements.get(s.is);if(!t)Object.defineProperty(s,"version",{get(){return"24.3.7"}}),customElements.define(s.is,s);else{const e=t.version;e&&s.version&&e===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${t.version} is already in use. Something will probably break.`)}}const ul=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,me=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function fl(){function s(){return!0}return bs(s)}function gl(){try{return _l()?!0:ml()?me?!Ml():!fl():!1}catch{return!1}}function _l(){return localStorage.getItem("vaadin.developmentmode.force")}function ml(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ml(){return!!(me&&Object.keys(me).map(t=>me[t]).filter(t=>t.productionMode).length>0)}function bs(s,t){if(typeof s!="function")return;const e=ul.exec(s.toString());if(e)try{s=new Function(e[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return s(t)}window.Vaadin=window.Vaadin||{};const ys=function(s,t){if(window.Vaadin.developmentMode)return bs(s,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=gl());function zl(){}const As=function(){if(typeof ys=="function")return ys(zl)};/**
|
|
404
438
|
* @license
|
|
405
439
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
406
440
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -408,7 +442,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
408
442
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
409
443
|
* Code distributed by Google as part of the polymer project is also
|
|
410
444
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
411
|
-
*/const
|
|
445
|
+
*/const bl={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s)}};/**
|
|
412
446
|
@license
|
|
413
447
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
414
448
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -416,51 +450,51 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
416
450
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
417
451
|
Code distributed by Google as part of the polymer project is also
|
|
418
452
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
419
|
-
*/const
|
|
453
|
+
*/const T1=new Set;class Me{static debounce(t,e,i){return t instanceof Me?t._cancelAsync():t=new Me,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,T1.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),T1.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 yl(s){T1.add(s)}/**
|
|
420
454
|
* @license
|
|
421
455
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
422
456
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
423
|
-
*/const
|
|
457
|
+
*/const k=[];function P1(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir")}function I1(){return document.documentElement.getAttribute("dir")}function Al(){const s=I1();k.forEach(t=>{P1(t,s)})}new MutationObserver(Al).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const $l=s=>class extends s{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),P1(this,I1(),null))}attributeChangedCallback(e,i,h){if(super.attributeChangedCallback(e,i,h),e!=="dir")return;const a=I1(),n=h===a&&k.indexOf(this)===-1,r=!h&&i&&k.indexOf(this)===-1;n||r?(this.__subscribe(),P1(this,a,h)):h!==a&&i===a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=k.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,h){h==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,h)}_attributeToProperty(e,i,h){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,h)}__subscribe(){k.includes(this)||k.push(this)}__unsubscribe(){k.includes(this)&&k.splice(k.indexOf(this),1)}};/**
|
|
424
458
|
* @license
|
|
425
459
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
426
460
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
427
|
-
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
461
|
+
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){As()};let N1;const $s=new Set,xs=s=>class extends $l(s){static finalize(){super.finalize();const{is:e}=this;e&&!$s.has(e)&&(window.Vaadin.registrations.push(this),$s.add(e),window.Vaadin.developmentModeCallback&&(N1=Me.debounce(N1,bl,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),yl(N1)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
428
462
|
* @license
|
|
429
463
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
430
464
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
431
|
-
*/const
|
|
465
|
+
*/const k1=new WeakMap;function xl(s){return k1.has(s)||k1.set(s,new Set),k1.get(s)}function wl(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Cl=m(s=>class extends s{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=xl(e);this.slotStyles.forEach(h=>{i.has(h)||(wl(h,e),i.add(h))})}});/**
|
|
432
466
|
* @license
|
|
433
467
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
434
468
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
435
|
-
*/function
|
|
469
|
+
*/function El(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
|
|
436
470
|
* @license
|
|
437
471
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
438
472
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
439
|
-
*/class
|
|
473
|
+
*/class Sl{constructor(t,e){this.slot=t,this.callback=e,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 t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],h=[];t.length&&(e=t.filter(a=>!this._storedNodes.includes(a))),this._storedNodes.length&&this._storedNodes.forEach((a,n)=>{const r=t.indexOf(a);r===-1?i.push(a):r!==n&&h.push(a)}),(e.length||i.length||h.length)&&this.callback({addedNodes:e,movedNodes:h,removedNodes:i}),this._storedNodes=t}}/**
|
|
440
474
|
* @license
|
|
441
475
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
442
476
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
443
|
-
*/let
|
|
477
|
+
*/let Tl=0;function Pl(){return Tl++}/**
|
|
444
478
|
* @license
|
|
445
479
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
446
480
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
447
|
-
*/class
|
|
481
|
+
*/class Il extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${Pl()}`}constructor(t,e,i,h={}){super();const{initializer:a,multiple:n,observe:r,useUniqueId:o}=h;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof r=="boolean"?r:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=a,n&&(this.nodes=[]),o&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let h=this.defaultNode;return!h&&i&&(h=document.createElement(i),h instanceof Element&&(e!==""&&h.setAttribute("slot",e),this.node=h,this.defaultNode=h)),h&&t.appendChild(h),h}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Sl(i,({addedNodes:h,removedNodes:a})=>{const n=this.multiple?this.nodes:[this.node],r=h.filter(o=>!El(o)&&!n.includes(o));a.length&&(this.nodes=n.filter(o=>!a.includes(o)),a.forEach(o=>{this.teardownNode(o)})),r&&r.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...r].filter(o=>o!==this.defaultNode),r.forEach(o=>{this.initAddedNode(o)})):(this.node&&this.node.remove(),this.node=r[0],this.initAddedNode(this.node)))})}}/**
|
|
448
482
|
* @license
|
|
449
483
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
450
484
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
451
|
-
*/class
|
|
485
|
+
*/class Nl extends Il{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
452
486
|
* @license
|
|
453
487
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
454
488
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
455
|
-
*/const
|
|
489
|
+
*/const ze=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.resizables?t.target.resizables.forEach(e=>{e._onResize(t.contentRect)}):t.target._onResize(t.contentRect)})})}),kl=m(s=>class extends s{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),ze.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,ze.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),ze.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const i=e.resizables;i&&(i.delete(this),i.size===0&&ze.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
|
|
456
490
|
* @license
|
|
457
491
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
458
492
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
459
|
-
*/const
|
|
493
|
+
*/const be=s=>s.test(navigator.userAgent),O1=s=>s.test(navigator.platform),Ol=s=>s.test(navigator.vendor);be(/Android/u),be(/Chrome/u)&&Ol(/Google Inc/u),be(/Firefox/u),O1(/^iPad/u)||O1(/^Mac/u)&&navigator.maxTouchPoints>1,O1(/^iPhone/u);const Ll=be(/^((?!chrome|android).)*safari/iu);(()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}})();/**
|
|
460
494
|
* @license
|
|
461
495
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
462
496
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
463
|
-
*/function
|
|
497
|
+
*/function Rl(){const s=document.createElement("style");s.textContent=`
|
|
464
498
|
.vaadin-icon-test-element {
|
|
465
499
|
container-type: size;
|
|
466
500
|
height: 2px;
|
|
@@ -472,44 +506,44 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
472
506
|
content: '';
|
|
473
507
|
display: block;
|
|
474
508
|
height: 100cqh;
|
|
475
|
-
`;const
|
|
509
|
+
`;const t=document.createElement("div");t.classList.add("vaadin-icon-test-element"),document.body.append(s,t);const{height:e}=getComputedStyle(t,"::before");return s.remove(),t.remove(),e==="2px"}function Hl(){return CSS.supports("container-type: inline-size")?Ll?!Rl():!1:!0}/**
|
|
476
510
|
* @license
|
|
477
511
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
478
512
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
479
|
-
*/const
|
|
513
|
+
*/const ws=Hl();ws&&Oh("vaadin-icon",f`
|
|
480
514
|
:host::after,
|
|
481
515
|
:host::before {
|
|
482
516
|
font-size: var(--_vaadin-font-icon-size);
|
|
483
517
|
}
|
|
484
|
-
`,"vaadin-icon-font-size-mixin-styles");const
|
|
518
|
+
`,"vaadin-icon-font-size-mixin-styles");const Dl=m(s=>ws?class extends kl(s){static get observers(){return["__iconFontSizeMixinfontChanged(iconClass, char, ligature)"]}ready(){super.ready(),this.__updateFontIconSize()}__iconFontSizeMixinfontChanged(t,e,i){this.__updateFontIconSize()}_onResize(){this.__updateFontIconSize()}__updateFontIconSize(){if(this.char||this.iconClass||this.ligature){const{paddingTop:t,paddingBottom:e,height:i}=getComputedStyle(this),h=parseFloat(i)-parseFloat(t)-parseFloat(e);this.style.setProperty("--_vaadin-font-icon-size",`${h}px`)}}}:s);/**
|
|
485
519
|
* @license
|
|
486
520
|
* Copyright 2020 Google LLC
|
|
487
521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
488
|
-
*/const
|
|
522
|
+
*/const Vl={HTML:1,SVG:2},Bl=(s,t)=>t===void 0?s?._$litType$!==void 0:s?._$litType$===t;/**
|
|
489
523
|
* @license
|
|
490
524
|
* Copyright 2017 Google LLC
|
|
491
525
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
492
|
-
*/const
|
|
526
|
+
*/const Ul={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Fl=s=>(...t)=>({_$litDirective$:s,values:t});class jl{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
|
493
527
|
* @license
|
|
494
528
|
* Copyright 2017 Google LLC
|
|
495
529
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
496
|
-
*/class
|
|
530
|
+
*/class L1 extends jl{constructor(t){if(super(t),this.it=_,t.type!==Ul.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===_||t==null)return this._t=void 0,this.it=t;if(t===it)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}L1.directiveName="unsafeHTML",L1.resultType=1;/**
|
|
497
531
|
* @license
|
|
498
532
|
* Copyright 2017 Google LLC
|
|
499
533
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
500
|
-
*/class
|
|
534
|
+
*/class R1 extends L1{}R1.directiveName="unsafeSVG",R1.resultType=2;const Cs=Fl(R1);/**
|
|
501
535
|
* @license
|
|
502
536
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
503
537
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
504
|
-
*/function
|
|
538
|
+
*/function Es(s){let t=_;if(s){const e=s.cloneNode(!0);e.removeAttribute("id"),t=Sh`${Cs(e.outerHTML)}`}return t}function ql(s){return Bl(s,Vl.SVG)||s===_}function Ss(s){let t=s==null||s===""?_:s;return ql(t)||(console.error("[vaadin-icon] Invalid svg passed, please use Lit svg literal."),t=_),t}function Wl(s,t){const e=Ss(s);Ih(e,t)}function Yl(s){return Sh`${Cs(s)}`}/**
|
|
505
539
|
* @license
|
|
506
540
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
507
541
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
508
|
-
*/const
|
|
542
|
+
*/const ot={},Ts=new Set;function Ps(s,t){return(s||"").replace(`${t}:`,"")}function Is(s){return s?s.split(":")[0]||"vaadin":void 0}function Ns(s,t){s._icons=[...s.querySelectorAll("[id]")].reduce((e,i)=>{const h=Ps(i.id,t);return e[h]=i,e},{})}class b0 extends xs(nt){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 Ts}static getIconset(t){return ot[t]}static getIconSvg(t,e){const i=e||Is(t),h=this.getIconset(i);if(!t||!h)return{svg:Es(null)};const a=Ps(t,i),n=h._icons[a];return{preserveAspectRatio:n?n.getAttribute("preserveAspectRatio"):null,svg:Es(n),size:h.size,viewBox:n?n.getAttribute("viewBox"):null}}static register(t,e,i){if(!ot[t]){const h=document.createElement("vaadin-iconset");h.appendChild(i.content.cloneNode(!0)),ot[t]=h,Ns(h,t),h.size=e,h.name=t,h.__nameChanged(t)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:t}=this;ot[t]=this,Ns(this,t),this.__updateIcons(t)}__updateIcons(t){Ts.forEach(e=>{t===Is(e.icon)&&e._applyIcon()})}__nameChanged(t,e){e&&(ot[t]=ot[e],delete ot[e]),t&&this.__updateIcons(t)}}zs(b0);/**
|
|
509
543
|
* @license
|
|
510
544
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
511
545
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
512
|
-
*/const
|
|
546
|
+
*/const H1=new Map;class y0 extends Bo(xs(vl(Cl(Dl(nt))))){static get template(){return kt`
|
|
513
547
|
<style>
|
|
514
548
|
:host {
|
|
515
549
|
display: inline-flex;
|
|
@@ -556,6 +590,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
556
590
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
557
591
|
viewBox="[[__computeViewBox(size, __viewBox)]]"
|
|
558
592
|
preserveAspectRatio="[[__computePAR(__defaultPAR, __preserveAspectRatio)]]"
|
|
593
|
+
fill$="[[__fill]]"
|
|
594
|
+
stroke$="[[__stroke]]"
|
|
595
|
+
stroke-width$="[[__strokeWidth]]"
|
|
596
|
+
stroke-linecap$="[[__strokeLinecap]]"
|
|
597
|
+
stroke-linejoin$="[[__strokeLinejoin]]"
|
|
559
598
|
aria-hidden="true"
|
|
560
599
|
>
|
|
561
600
|
<g id="svg-group"></g>
|
|
@@ -565,17 +604,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
565
604
|
</svg>
|
|
566
605
|
|
|
567
606
|
<slot name="tooltip"></slot>
|
|
568
|
-
`}static get is(){return"vaadin-icon"}static get properties(){return{icon:{type:String,reflectToAttribute:!0,observer:"__iconChanged"},svg:{type:Object},src:{type:String},symbol:{type:String},iconClass:{type:String,reflectToAttribute:!0},char:{type:String},ligature:{type:String},fontFamily:{type:String,observer:"__fontFamilyChanged"},size:{type:Number,value:24},__defaultPAR:{type:String,value:"xMidYMid meet"},__preserveAspectRatio:String,__useRef:Object,__svgElement:String,__viewBox:String}}static get observers(){return["__svgChanged(svg, __svgElement)","__fontChanged(iconClass, char, ligature)","__srcChanged(src, symbol)"]}static get observedAttributes(){return[...super.observedAttributes,"class"]}constructor(){super(),this.__fetch=fetch.bind(window)}get slotStyles(){return[`
|
|
607
|
+
`}static get is(){return"vaadin-icon"}static get properties(){return{icon:{type:String,reflectToAttribute:!0,observer:"__iconChanged"},svg:{type:Object},src:{type:String},symbol:{type:String},iconClass:{type:String,reflectToAttribute:!0},char:{type:String},ligature:{type:String},fontFamily:{type:String,observer:"__fontFamilyChanged"},size:{type:Number,value:24},__defaultPAR:{type:String,value:"xMidYMid meet"},__preserveAspectRatio:String,__useRef:Object,__svgElement:String,__viewBox:String,__fill:String,__stroke:String,__strokeWidth:String,__strokeLinecap:String,__strokeLinejoin:String}}static get observers(){return["__svgChanged(svg, __svgElement)","__fontChanged(iconClass, char, ligature)","__srcChanged(src, symbol)"]}static get observedAttributes(){return[...super.observedAttributes,"class"]}constructor(){super(),this.__fetch=fetch.bind(window)}get slotStyles(){return[`
|
|
569
608
|
${this.localName}[icon-class] {
|
|
570
609
|
display: inline-flex;
|
|
571
610
|
vertical-align: middle;
|
|
572
611
|
font-size: inherit;
|
|
573
612
|
}
|
|
574
|
-
`]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new
|
|
613
|
+
`]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new Nl(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),b0.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),b0.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:t,svg:e,size:i,viewBox:h}=b0.getIconSvg(this.icon);h&&(this.__viewBox=h),t&&(this.__preserveAspectRatio=t),i&&i!==this.size&&(this.size=i),this.svg=e}__iconChanged(t){t?this._applyIcon():this.svg=Ss(null)}async __srcChanged(t,e){if(!t){this.svg=null;return}if(this.icon="",!t.startsWith("data:")&&(e||t.includes("#"))){const[i,h]=t.split("#");this.__useRef=`${i}#${e||h}`}else try{H1.has(t)||H1.set(t,this.__fetch(t,{mode:"cors"}).then(n=>{if(!n.ok)throw new Error("Error loading icon");return n.text()}));const i=await H1.get(t);y0.__domParser||(y0.__domParser=new DOMParser);const a=y0.__domParser.parseFromString(i,"text/html").querySelector("svg");if(!a)throw new Error(`SVG element not found on path: ${t}`);this.svg=Yl(a.innerHTML),e&&(this.__useRef=`#${e}`),this.__viewBox=a.getAttribute("viewBox"),this.__fill=a.getAttribute("fill"),this.__stroke=a.getAttribute("stroke"),this.__strokeWidth=a.getAttribute("stroke-width"),this.__strokeLinecap=a.getAttribute("stroke-linecap"),this.__strokeLinejoin=a.getAttribute("stroke-linejoin")}catch(i){console.error(i),this.svg=null}}__svgChanged(t,e){!e||Wl(t,e)}__computePAR(t,e){return e||t}__computeVisibility(t){return t?"visible":"hidden"}__computeViewBox(t,e){return e||`0 0 ${t} ${t}`}__fontChanged(t,e,i){this.classList.remove(...this.__addedIconClasses||[]),t&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),e?this.setAttribute("font-icon-content",e.length>1?String.fromCodePoint(parseInt(e,16)):e):i?this.setAttribute("font-icon-content",i):this.removeAttribute("font-icon-content"),(t||e||i)&&!this.icon&&(this.icon="")}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="class"&&this.__iconClasses.some(h=>!this.classList.contains(h))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(t){this.style.fontFamily=`'${t}'`}}zs(y0);/**
|
|
575
614
|
* @license
|
|
576
615
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
577
616
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
578
|
-
*/const
|
|
617
|
+
*/const ks=document.createElement("template");ks.innerHTML=`<svg><defs>
|
|
579
618
|
<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>
|
|
580
619
|
<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>
|
|
581
620
|
<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>
|
|
@@ -1212,23 +1251,45 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1212
1251
|
<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>
|
|
1213
1252
|
<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>
|
|
1214
1253
|
<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>
|
|
1215
|
-
</defs></svg>`,
|
|
1254
|
+
</defs></svg>`,b0.register("vaadin",16,ks);/**
|
|
1255
|
+
* @license
|
|
1256
|
+
* Copyright 2017 Google LLC
|
|
1257
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1258
|
+
*/const Gl=s=>(...t)=>({_$litDirective$:s,values:t});/**
|
|
1259
|
+
* @license
|
|
1260
|
+
* Copyright 2017 Google LLC
|
|
1261
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1262
|
+
*/const D1=globalThis,ye=D1.trustedTypes,Os=ye?ye.createPolicy("lit-html",{createHTML:s=>s}):void 0,Ls="$lit$",U=`lit$${(Math.random()+"").slice(9)}$`,Rs="?"+U,Zl=`<${Rs}>`,rt=document,A0=()=>rt.createComment(""),$0=s=>s===null||typeof s!="object"&&typeof s!="function",Hs=Array.isArray,Kl=s=>Hs(s)||typeof s?.[Symbol.iterator]=="function",V1=`[
|
|
1263
|
+
\f\r]`,x0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ds=/-->/g,Vs=/>/g,lt=RegExp(`>|${V1}(?:([^\\s"'>=/]+)(${V1}*=${V1}*(?:[^
|
|
1264
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bs=/'/g,Us=/"/g,Fs=/^(?:script|style|textarea|title)$/i,Ot=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),js=new WeakMap,dt=rt.createTreeWalker(rt,129);function qs(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Os!==void 0?Os.createHTML(t):t}const Jl=(s,t)=>{const e=s.length-1,i=[];let h,a=t===2?"<svg>":"",n=x0;for(let r=0;r<e;r++){const o=s[r];let l,c,d=-1,p=0;for(;p<o.length&&(n.lastIndex=p,c=n.exec(o),c!==null);)p=n.lastIndex,n===x0?c[1]==="!--"?n=Ds:c[1]!==void 0?n=Vs:c[2]!==void 0?(Fs.test(c[2])&&(h=RegExp("</"+c[2],"g")),n=lt):c[3]!==void 0&&(n=lt):n===lt?c[0]===">"?(n=h??x0,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?lt:c[3]==='"'?Us:Bs):n===Us||n===Bs?n=lt:n===Ds||n===Vs?n=x0:(n=lt,h=void 0);const v=n===lt&&s[r+1].startsWith("/>")?" ":"";a+=n===x0?o+Zl:d>=0?(i.push(l),o.slice(0,d)+Ls+o.slice(d)+U+v):o+U+(d===-2?r:v)}return[qs(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class w0{constructor({strings:t,_$litType$:e},i){let h;this.parts=[];let a=0,n=0;const r=t.length-1,o=this.parts,[l,c]=Jl(t,e);if(this.el=w0.createElement(l,i),dt.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(h=dt.nextNode())!==null&&o.length<r;){if(h.nodeType===1){if(h.hasAttributes())for(const d of h.getAttributeNames())if(d.endsWith(Ls)){const p=c[n++],v=h.getAttribute(d).split(U),u=/([.?@])?(.*)/.exec(p);o.push({type:1,index:a,name:u[2],strings:v,ctor:u[1]==="."?Xl:u[1]==="?"?t2:u[1]==="@"?e2:Ae}),h.removeAttribute(d)}else d.startsWith(U)&&(o.push({type:6,index:a}),h.removeAttribute(d));if(Fs.test(h.tagName)){const d=h.textContent.split(U),p=d.length-1;if(p>0){h.textContent=ye?ye.emptyScript:"";for(let v=0;v<p;v++)h.append(d[v],A0()),dt.nextNode(),o.push({type:2,index:++a});h.append(d[p],A0())}}}else if(h.nodeType===8)if(h.data===Rs)o.push({type:2,index:a});else{let d=-1;for(;(d=h.data.indexOf(U,d+1))!==-1;)o.push({type:7,index:a}),d+=U.length-1}a++}}static createElement(t,e){const i=rt.createElement("template");return i.innerHTML=t,i}}function Lt(s,t,e=s,i){if(t===Ot)return t;let h=i!==void 0?e._$Co?.[i]:e._$Cl;const a=$0(t)?void 0:t._$litDirective$;return h?.constructor!==a&&(h?._$AO?.(!1),a===void 0?h=void 0:(h=new a(s),h._$AT(s,e,i)),i!==void 0?(e._$Co??=[])[i]=h:e._$Cl=h),h!==void 0&&(t=Lt(s,h._$AS(s,t.values),h,i)),t}class Ql{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,h=(t?.creationScope??rt).importNode(e,!0);dt.currentNode=h;let a=dt.nextNode(),n=0,r=0,o=i[0];for(;o!==void 0;){if(n===o.index){let l;o.type===2?l=new C0(a,a.nextSibling,this,t):o.type===1?l=new o.ctor(a,o.name,o.strings,this,t):o.type===6&&(l=new i2(a,this,t)),this._$AV.push(l),o=i[++r]}n!==o?.index&&(a=dt.nextNode(),n++)}return dt.currentNode=rt,h}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class C0{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,h){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=h,this._$Cv=h?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Lt(this,t,e),$0(t)?t===M||t==null||t===""?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==Ot&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Kl(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==M&&$0(this._$AH)?this._$AA.nextSibling.data=t:this.T(rt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,h=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=w0.createElement(qs(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===h)this._$AH.p(e);else{const a=new Ql(h,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=js.get(t.strings);return e===void 0&&js.set(t.strings,e=new w0(t)),e}k(t){Hs(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,h=0;for(const a of t)h===e.length?e.push(i=new C0(this.S(A0()),this.S(A0()),this,this.options)):i=e[h],i._$AI(a),h++;h<e.length&&(this._$AR(i&&i._$AB.nextSibling,h),e.length=h)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Ae{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,h,a){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=e,this._$AM=h,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=M}_$AI(t,e=this,i,h){const a=this.strings;let n=!1;if(a===void 0)t=Lt(this,t,e,0),n=!$0(t)||t!==this._$AH&&t!==Ot,n&&(this._$AH=t);else{const r=t;let o,l;for(t=a[0],o=0;o<a.length-1;o++)l=Lt(this,r[i+o],e,o),l===Ot&&(l=this._$AH[o]),n||=!$0(l)||l!==this._$AH[o],l===M?t=M:t!==M&&(t+=(l??"")+a[o+1]),this._$AH[o]=l}n&&!h&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Xl extends Ae{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}class t2 extends Ae{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==M)}}class e2 extends Ae{constructor(t,e,i,h,a){super(t,e,i,h,a),this.type=5}_$AI(t,e=this){if((t=Lt(this,t,e,0)??M)===Ot)return;const i=this._$AH,h=t===M&&i!==M||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==M&&(i===M||h);h&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class i2{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Lt(this,t)}}const h2=D1.litHtmlPolyfillSupport;h2?.(w0,C0),(D1.litHtmlVersions??=[]).push("3.1.2");const Ws=(s,t,e)=>{const i=e?.renderBefore??t;let h=i._$litPart$;if(h===void 0){const a=e?.renderBefore??null;i._$litPart$=h=new C0(t.insertBefore(A0(),a),a,void 0,e??{})}return h._$AI(s),h};/**
|
|
1265
|
+
* @license
|
|
1266
|
+
* Copyright 2017 Google LLC
|
|
1267
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1268
|
+
*/class $e extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ws(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ot}}$e._$litElement$=!0,$e.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:$e});const s2=globalThis.litElementPolyfillSupport;s2?.({LitElement:$e}),(globalThis.litElementVersions??=[]).push("4.0.4");/**
|
|
1269
|
+
* @license
|
|
1270
|
+
* Copyright 2020 Google LLC
|
|
1271
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1272
|
+
*/const a2=s=>s.strings===void 0;/**
|
|
1216
1273
|
* @license
|
|
1217
1274
|
* Copyright 2017 Google LLC
|
|
1218
1275
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1219
|
-
*/const
|
|
1276
|
+
*/const Ys={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};class n2{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
|
1277
|
+
* @license
|
|
1278
|
+
* Copyright 2017 Google LLC
|
|
1279
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1280
|
+
*/const E0=(s,t)=>{const e=s._$AN;if(e===void 0)return!1;for(const i of e)i._$AO?.(t,!1),E0(i,t);return!0},xe=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},Gs=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),l2(t)}};function o2(s){this._$AN!==void 0?(xe(this),this._$AM=s,Gs(this)):this._$AM=s}function r2(s,t=!1,e=0){const i=this._$AH,h=this._$AN;if(h!==void 0&&h.size!==0)if(t)if(Array.isArray(i))for(let a=e;a<i.length;a++)E0(i[a],!1),xe(i[a]);else i!=null&&(E0(i,!1),xe(i));else E0(this,s)}const l2=s=>{s.type==Ys.CHILD&&(s._$AP??=r2,s._$AQ??=o2)};class d2 extends n2{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Gs(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(E0(this,t),xe(this))}setValue(t){if(a2(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
|
|
1220
1281
|
* @license
|
|
1221
1282
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
1222
1283
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1223
|
-
*/const
|
|
1284
|
+
*/const Zs=Symbol("valueNotInitialized");class c2 extends d2{constructor(t){if(super(t),t.type!==Ys.ELEMENT)throw new Error(`\`${this.constructor.name}\` must be bound to an element.`);this.previousValue=Zs}render(t,e){return M}update(t,[e,i]){return this.hasChanged(i)&&(this.host=t.options&&t.options.host,this.element=t.element,this.renderer=e,this.previousValue===Zs?this.addRenderer():this.runRenderer(),this.previousValue=Array.isArray(i)?[...i]:i),M}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(t,...e){const i=this.renderer.call(this.host,...e);Ws(i,t,{host:this.host})}hasChanged(t){return Array.isArray(t)?!Array.isArray(this.previousValue)||this.previousValue.length!==t.length?!0:t.some((e,i)=>e!==this.previousValue[i]):this.previousValue!==t}}/**
|
|
1224
1285
|
* @license
|
|
1225
1286
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1226
1287
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1227
|
-
*/class
|
|
1288
|
+
*/class p2 extends c2{addRenderer(){this.element.renderer=(t,e,i)=>{this.renderRenderer(t,i.item,i,e)}}runRenderer(){this.element.requestContentUpdate()}removeRenderer(){this.element.renderer=null}}const v2=Gl(p2);/**
|
|
1228
1289
|
* @license
|
|
1229
1290
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1230
1291
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1231
|
-
*/const
|
|
1292
|
+
*/const u2=f`
|
|
1232
1293
|
:host {
|
|
1233
1294
|
/* Base (background) */
|
|
1234
1295
|
--lumo-base-color: #fff;
|
|
@@ -1313,7 +1374,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1313
1374
|
--lumo-disabled-text-color: GrayText;
|
|
1314
1375
|
}
|
|
1315
1376
|
}
|
|
1316
|
-
`;
|
|
1377
|
+
`;Pt("color-props",u2);const f2=f`
|
|
1317
1378
|
[theme~='dark'] {
|
|
1318
1379
|
/* Base (background) */
|
|
1319
1380
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -1428,11 +1489,38 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1428
1489
|
background-color: var(--lumo-contrast-10pct);
|
|
1429
1490
|
border-radius: var(--lumo-border-radius-m);
|
|
1430
1491
|
}
|
|
1431
|
-
`;
|
|
1492
|
+
`;V("",f2,{moduleId:"lumo-color"});/**
|
|
1493
|
+
* @license
|
|
1494
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1495
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1496
|
+
*/const g2=f`
|
|
1497
|
+
:host {
|
|
1498
|
+
/* Square */
|
|
1499
|
+
--lumo-space-xs: 0.25rem;
|
|
1500
|
+
--lumo-space-s: 0.5rem;
|
|
1501
|
+
--lumo-space-m: 1rem;
|
|
1502
|
+
--lumo-space-l: 1.5rem;
|
|
1503
|
+
--lumo-space-xl: 2.5rem;
|
|
1504
|
+
|
|
1505
|
+
/* Wide */
|
|
1506
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
1507
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
1508
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
1509
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
1510
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
1511
|
+
|
|
1512
|
+
/* Tall */
|
|
1513
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
1514
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
1515
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
1516
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
1517
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
1518
|
+
}
|
|
1519
|
+
`;Pt("spacing-props",g2);/**
|
|
1432
1520
|
* @license
|
|
1433
1521
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1434
1522
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1435
|
-
*/const
|
|
1523
|
+
*/const _2=f`
|
|
1436
1524
|
:host {
|
|
1437
1525
|
/* Border radius */
|
|
1438
1526
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -1451,15 +1539,143 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1451
1539
|
}
|
|
1452
1540
|
`;f`
|
|
1453
1541
|
html {
|
|
1542
|
+
/* Button */
|
|
1543
|
+
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
1544
|
+
--vaadin-button-border: none;
|
|
1545
|
+
--vaadin-button-border-radius: var(--lumo-border-radius-m);
|
|
1546
|
+
--vaadin-button-font-size: var(--lumo-font-size-m);
|
|
1547
|
+
--vaadin-button-font-weight: 500;
|
|
1548
|
+
--vaadin-button-height: var(--lumo-size-m);
|
|
1549
|
+
--vaadin-button-margin: var(--lumo-space-xs) 0;
|
|
1550
|
+
--vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
|
|
1551
|
+
--vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
|
|
1552
|
+
--vaadin-button-text-color: var(--lumo-primary-text-color);
|
|
1553
|
+
--vaadin-button-primary-background: var(--lumo-primary-color);
|
|
1554
|
+
--vaadin-button-primary-border: none;
|
|
1555
|
+
--vaadin-button-primary-font-weight: 600;
|
|
1556
|
+
--vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
|
|
1557
|
+
--vaadin-button-tertiary-background: transparent !important;
|
|
1558
|
+
--vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
|
|
1559
|
+
--vaadin-button-tertiary-font-weight: 500;
|
|
1560
|
+
--vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
|
|
1561
|
+
/* Checkbox */
|
|
1562
|
+
--vaadin-checkbox-background: var(--lumo-contrast-20pct);
|
|
1563
|
+
--vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
|
|
1564
|
+
--vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
|
|
1565
|
+
--vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
|
|
1566
|
+
--vaadin-checkbox-checkmark-char-indeterminate: '';
|
|
1567
|
+
--vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
|
|
1568
|
+
--vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
|
|
1569
|
+
--vaadin-checkbox-label-color: var(--lumo-body-text-color);
|
|
1570
|
+
--vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
|
|
1571
|
+
--vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
|
|
1454
1572
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
1573
|
+
/* Radio button */
|
|
1574
|
+
--vaadin-radio-button-background: var(--lumo-contrast-20pct);
|
|
1575
|
+
--vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
|
|
1576
|
+
--vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
|
|
1577
|
+
--vaadin-radio-button-dot-size: 3px;
|
|
1578
|
+
--vaadin-radio-button-label-color: var(--lumo-body-text-color);
|
|
1579
|
+
--vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
|
|
1580
|
+
--vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
|
|
1581
|
+
var(--lumo-space-xs);
|
|
1455
1582
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
1583
|
+
--vaadin-selection-color: var(--lumo-primary-color);
|
|
1584
|
+
--vaadin-selection-color-text: var(--lumo-primary-text-color);
|
|
1456
1585
|
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
1586
|
+
--vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
|
|
1587
|
+
--vaadin-focus-ring-width: 2px;
|
|
1588
|
+
/* Label */
|
|
1589
|
+
--vaadin-input-field-label-color: var(--lumo-secondary-text-color);
|
|
1590
|
+
--vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
|
|
1591
|
+
--vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
|
|
1592
|
+
--vaadin-input-field-label-font-size: var(--lumo-font-size-s);
|
|
1593
|
+
--vaadin-input-field-label-font-weight: 500;
|
|
1594
|
+
/* Helper */
|
|
1595
|
+
--vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
|
|
1596
|
+
--vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
|
|
1597
|
+
--vaadin-input-field-helper-font-weight: 400;
|
|
1598
|
+
--vaadin-input-field-helper-spacing: 0.4em;
|
|
1599
|
+
/* Error message */
|
|
1600
|
+
--vaadin-input-field-error-color: var(--lumo-error-text-color);
|
|
1601
|
+
--vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
|
|
1602
|
+
--vaadin-input-field-error-font-weight: 400;
|
|
1603
|
+
/* Input field */
|
|
1604
|
+
--vaadin-input-field-background: var(--lumo-contrast-10pct);
|
|
1605
|
+
--vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
|
|
1606
|
+
--vaadin-input-field-icon-size: var(--lumo-icon-size-m);
|
|
1607
|
+
--vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
|
|
1608
|
+
--vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
|
|
1609
|
+
--vaadin-input-field-height: var(--lumo-size-m);
|
|
1610
|
+
--vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
|
|
1611
|
+
--vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
|
|
1612
|
+
--vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
|
|
1613
|
+
--vaadin-input-field-value-color: var(--lumo-body-text-color);
|
|
1614
|
+
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
1615
|
+
--vaadin-input-field-value-font-weight: 400;
|
|
1616
|
+
}
|
|
1617
|
+
`,Pt("style-props",_2);/**
|
|
1618
|
+
* @license
|
|
1619
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1620
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1621
|
+
*/const m2=f`
|
|
1622
|
+
@font-face {
|
|
1623
|
+
font-family: 'lumo-icons';
|
|
1624
|
+
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==)
|
|
1625
|
+
format('woff');
|
|
1626
|
+
font-weight: normal;
|
|
1627
|
+
font-style: normal;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
html {
|
|
1631
|
+
--lumo-icons-align-center: '\\ea01';
|
|
1632
|
+
--lumo-icons-align-left: '\\ea02';
|
|
1633
|
+
--lumo-icons-align-right: '\\ea03';
|
|
1634
|
+
--lumo-icons-angle-down: '\\ea04';
|
|
1635
|
+
--lumo-icons-angle-left: '\\ea05';
|
|
1636
|
+
--lumo-icons-angle-right: '\\ea06';
|
|
1637
|
+
--lumo-icons-angle-up: '\\ea07';
|
|
1638
|
+
--lumo-icons-arrow-down: '\\ea08';
|
|
1639
|
+
--lumo-icons-arrow-left: '\\ea09';
|
|
1640
|
+
--lumo-icons-arrow-right: '\\ea0a';
|
|
1641
|
+
--lumo-icons-arrow-up: '\\ea0b';
|
|
1642
|
+
--lumo-icons-bar-chart: '\\ea0c';
|
|
1643
|
+
--lumo-icons-bell: '\\ea0d';
|
|
1644
|
+
--lumo-icons-calendar: '\\ea0e';
|
|
1645
|
+
--lumo-icons-checkmark: '\\ea0f';
|
|
1646
|
+
--lumo-icons-chevron-down: '\\ea10';
|
|
1647
|
+
--lumo-icons-chevron-left: '\\ea11';
|
|
1648
|
+
--lumo-icons-chevron-right: '\\ea12';
|
|
1649
|
+
--lumo-icons-chevron-up: '\\ea13';
|
|
1650
|
+
--lumo-icons-clock: '\\ea14';
|
|
1651
|
+
--lumo-icons-cog: '\\ea15';
|
|
1652
|
+
--lumo-icons-cross: '\\ea16';
|
|
1653
|
+
--lumo-icons-download: '\\ea17';
|
|
1654
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
1655
|
+
--lumo-icons-edit: '\\ea19';
|
|
1656
|
+
--lumo-icons-error: '\\ea1a';
|
|
1657
|
+
--lumo-icons-eye: '\\ea1b';
|
|
1658
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
1659
|
+
--lumo-icons-menu: '\\ea1d';
|
|
1660
|
+
--lumo-icons-minus: '\\ea1e';
|
|
1661
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
1662
|
+
--lumo-icons-phone: '\\ea20';
|
|
1663
|
+
--lumo-icons-photo: '\\ea21';
|
|
1664
|
+
--lumo-icons-play: '\\ea22';
|
|
1665
|
+
--lumo-icons-plus: '\\ea23';
|
|
1666
|
+
--lumo-icons-redo: '\\ea24';
|
|
1667
|
+
--lumo-icons-reload: '\\ea25';
|
|
1668
|
+
--lumo-icons-search: '\\ea26';
|
|
1669
|
+
--lumo-icons-undo: '\\ea27';
|
|
1670
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
1671
|
+
--lumo-icons-upload: '\\ea29';
|
|
1672
|
+
--lumo-icons-user: '\\ea2a';
|
|
1457
1673
|
}
|
|
1458
|
-
|
|
1674
|
+
`;Pt("font-icons",m2);/**
|
|
1459
1675
|
* @license
|
|
1460
1676
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1461
1677
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1462
|
-
*/const
|
|
1678
|
+
*/const M2=f`
|
|
1463
1679
|
:host {
|
|
1464
1680
|
/* prettier-ignore */
|
|
1465
1681
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -1479,7 +1695,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1479
1695
|
--lumo-line-height-s: 1.375;
|
|
1480
1696
|
--lumo-line-height-m: 1.625;
|
|
1481
1697
|
}
|
|
1482
|
-
`,
|
|
1698
|
+
`,z2=f`
|
|
1483
1699
|
body,
|
|
1484
1700
|
:host {
|
|
1485
1701
|
font-family: var(--lumo-font-family);
|
|
@@ -1571,466 +1787,144 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1571
1787
|
border-left: none;
|
|
1572
1788
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1573
1789
|
}
|
|
1574
|
-
`;
|
|
1790
|
+
`;V("",z2,{moduleId:"lumo-typography"}),Pt("typography-props",M2);/**
|
|
1575
1791
|
* @license
|
|
1576
|
-
* Copyright
|
|
1577
|
-
*
|
|
1578
|
-
*/const
|
|
1792
|
+
* Copyright 2017 Google LLC
|
|
1793
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1794
|
+
*/const B1=globalThis,we=B1.trustedTypes,Ks=we?we.createPolicy("lit-html",{createHTML:s=>s}):void 0,Js="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,Qs="?"+F,b2=`<${Qs}>`,ct=document,S0=()=>ct.createComment(""),T0=s=>s===null||typeof s!="object"&&typeof s!="function",Xs=Array.isArray,y2=s=>Xs(s)||typeof s?.[Symbol.iterator]=="function",U1=`[
|
|
1795
|
+
\f\r]`,P0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ta=/-->/g,ea=/>/g,pt=RegExp(`>|${U1}(?:([^\\s"'>=/]+)(${U1}*=${U1}*(?:[^
|
|
1796
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ia=/'/g,ha=/"/g,sa=/^(?:script|style|textarea|title)$/i,Rt=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),aa=new WeakMap,vt=ct.createTreeWalker(ct,129);function na(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ks!==void 0?Ks.createHTML(t):t}const A2=(s,t)=>{const e=s.length-1,i=[];let h,a=t===2?"<svg>":"",n=P0;for(let r=0;r<e;r++){const o=s[r];let l,c,d=-1,p=0;for(;p<o.length&&(n.lastIndex=p,c=n.exec(o),c!==null);)p=n.lastIndex,n===P0?c[1]==="!--"?n=ta:c[1]!==void 0?n=ea:c[2]!==void 0?(sa.test(c[2])&&(h=RegExp("</"+c[2],"g")),n=pt):c[3]!==void 0&&(n=pt):n===pt?c[0]===">"?(n=h??P0,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?pt:c[3]==='"'?ha:ia):n===ha||n===ia?n=pt:n===ta||n===ea?n=P0:(n=pt,h=void 0);const v=n===pt&&s[r+1].startsWith("/>")?" ":"";a+=n===P0?o+b2:d>=0?(i.push(l),o.slice(0,d)+Js+o.slice(d)+F+v):o+F+(d===-2?r:v)}return[na(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class I0{constructor({strings:t,_$litType$:e},i){let h;this.parts=[];let a=0,n=0;const r=t.length-1,o=this.parts,[l,c]=A2(t,e);if(this.el=I0.createElement(l,i),vt.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(h=vt.nextNode())!==null&&o.length<r;){if(h.nodeType===1){if(h.hasAttributes())for(const d of h.getAttributeNames())if(d.endsWith(Js)){const p=c[n++],v=h.getAttribute(d).split(F),u=/([.?@])?(.*)/.exec(p);o.push({type:1,index:a,name:u[2],strings:v,ctor:u[1]==="."?x2:u[1]==="?"?w2:u[1]==="@"?C2:Ce}),h.removeAttribute(d)}else d.startsWith(F)&&(o.push({type:6,index:a}),h.removeAttribute(d));if(sa.test(h.tagName)){const d=h.textContent.split(F),p=d.length-1;if(p>0){h.textContent=we?we.emptyScript:"";for(let v=0;v<p;v++)h.append(d[v],S0()),vt.nextNode(),o.push({type:2,index:++a});h.append(d[p],S0())}}}else if(h.nodeType===8)if(h.data===Qs)o.push({type:2,index:a});else{let d=-1;for(;(d=h.data.indexOf(F,d+1))!==-1;)o.push({type:7,index:a}),d+=F.length-1}a++}}static createElement(t,e){const i=ct.createElement("template");return i.innerHTML=t,i}}function Ht(s,t,e=s,i){if(t===Rt)return t;let h=i!==void 0?e._$Co?.[i]:e._$Cl;const a=T0(t)?void 0:t._$litDirective$;return h?.constructor!==a&&(h?._$AO?.(!1),a===void 0?h=void 0:(h=new a(s),h._$AT(s,e,i)),i!==void 0?(e._$Co??=[])[i]=h:e._$Cl=h),h!==void 0&&(t=Ht(s,h._$AS(s,t.values),h,i)),t}class $2{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,h=(t?.creationScope??ct).importNode(e,!0);vt.currentNode=h;let a=vt.nextNode(),n=0,r=0,o=i[0];for(;o!==void 0;){if(n===o.index){let l;o.type===2?l=new N0(a,a.nextSibling,this,t):o.type===1?l=new o.ctor(a,o.name,o.strings,this,t):o.type===6&&(l=new E2(a,this,t)),this._$AV.push(l),o=i[++r]}n!==o?.index&&(a=vt.nextNode(),n++)}return vt.currentNode=ct,h}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class N0{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,h){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=h,this._$Cv=h?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ht(this,t,e),T0(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==Rt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):y2(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==A&&T0(this._$AH)?this._$AA.nextSibling.data=t:this.T(ct.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,h=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=I0.createElement(na(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===h)this._$AH.p(e);else{const a=new $2(h,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=aa.get(t.strings);return e===void 0&&aa.set(t.strings,e=new I0(t)),e}k(t){Xs(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,h=0;for(const a of t)h===e.length?e.push(i=new N0(this.S(S0()),this.S(S0()),this,this.options)):i=e[h],i._$AI(a),h++;h<e.length&&(this._$AR(i&&i._$AB.nextSibling,h),e.length=h)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Ce{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,h,a){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=e,this._$AM=h,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}_$AI(t,e=this,i,h){const a=this.strings;let n=!1;if(a===void 0)t=Ht(this,t,e,0),n=!T0(t)||t!==this._$AH&&t!==Rt,n&&(this._$AH=t);else{const r=t;let o,l;for(t=a[0],o=0;o<a.length-1;o++)l=Ht(this,r[i+o],e,o),l===Rt&&(l=this._$AH[o]),n||=!T0(l)||l!==this._$AH[o],l===A?t=A:t!==A&&(t+=(l??"")+a[o+1]),this._$AH[o]=l}n&&!h&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class x2 extends Ce{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class w2 extends Ce{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class C2 extends Ce{constructor(t,e,i,h,a){super(t,e,i,h,a),this.type=5}_$AI(t,e=this){if((t=Ht(this,t,e,0)??A)===Rt)return;const i=this._$AH,h=t===A&&i!==A||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==A&&(i===A||h);h&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class E2{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Ht(this,t)}}const S2=B1.litHtmlPolyfillSupport;S2?.(I0,N0),(B1.litHtmlVersions??=[]).push("3.1.2");const T2=(s,t,e)=>{const i=e?.renderBefore??t;let h=i._$litPart$;if(h===void 0){const a=e?.renderBefore??null;i._$litPart$=h=new N0(t.insertBefore(S0(),a),a,void 0,e??{})}return h._$AI(s),h};/**
|
|
1797
|
+
* @license
|
|
1798
|
+
* Copyright 2017 Google LLC
|
|
1799
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1800
|
+
*/class Ee extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=T2(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Rt}}Ee._$litElement$=!0,Ee.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ee});const P2=globalThis.litElementPolyfillSupport;P2?.({LitElement:Ee}),(globalThis.litElementVersions??=[]).push("4.0.4");/**
|
|
1579
1801
|
* @license
|
|
1580
1802
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1581
1803
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1582
|
-
*/const
|
|
1804
|
+
*/const I2=[];function N2(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function k2(s){return N2(customElements.get(s))}function O2(s=[]){return[s].flat(1/0).filter(t=>t instanceof K?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function L2(s,t,e={}){s&&k2(s)&&console.warn(`The custom element definition for "${s}"
|
|
1583
1805
|
was finalized before a style module was registered.
|
|
1584
1806
|
Make sure to add component specific style modules before
|
|
1585
|
-
importing the corresponding custom element.`),
|
|
1586
|
-
|
|
1587
|
-
:
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
box-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
:host([dir='rtl']) {
|
|
1608
|
-
border-radius:
|
|
1609
|
-
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
1610
|
-
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
1611
|
-
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
1612
|
-
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
|
|
1613
|
-
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
|
|
1614
|
-
}
|
|
1807
|
+
importing the corresponding custom element.`),t=O2(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):I2.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId})}const oa=f`
|
|
1808
|
+
:host {
|
|
1809
|
+
display: flex;
|
|
1810
|
+
align-items: center;
|
|
1811
|
+
box-sizing: border-box;
|
|
1812
|
+
font-family: var(--lumo-font-family);
|
|
1813
|
+
font-size: var(--lumo-font-size-m);
|
|
1814
|
+
line-height: var(--lumo-line-height-xs);
|
|
1815
|
+
padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
|
|
1816
|
+
var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
1817
|
+
min-height: var(--lumo-size-m);
|
|
1818
|
+
outline: none;
|
|
1819
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1820
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1821
|
+
-webkit-font-smoothing: antialiased;
|
|
1822
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1823
|
+
-webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
|
|
1824
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
1825
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
1826
|
+
--_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
1827
|
+
}
|
|
1615
1828
|
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1829
|
+
/* Checkmark */
|
|
1830
|
+
[part='checkmark']::before {
|
|
1831
|
+
display: var(--_lumo-item-selected-icon-display, none);
|
|
1832
|
+
content: var(--lumo-icons-checkmark);
|
|
1833
|
+
font-family: lumo-icons;
|
|
1834
|
+
font-size: var(--lumo-icon-size-m);
|
|
1835
|
+
line-height: 1;
|
|
1836
|
+
font-weight: normal;
|
|
1837
|
+
width: 1em;
|
|
1838
|
+
height: 1em;
|
|
1839
|
+
margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
|
|
1840
|
+
color: var(--_selection-color-text);
|
|
1841
|
+
flex: none;
|
|
1842
|
+
opacity: 0;
|
|
1843
|
+
transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), opacity 0.1s;
|
|
1844
|
+
}
|
|
1628
1845
|
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
padding: 0 0.25em;
|
|
1633
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
1634
|
-
-webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1635
|
-
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1636
|
-
}
|
|
1846
|
+
:host([selected]) [part='checkmark']::before {
|
|
1847
|
+
opacity: 1;
|
|
1848
|
+
}
|
|
1637
1849
|
|
|
1638
|
-
|
|
1639
|
-
:
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
}
|
|
1850
|
+
:host([active]:not([selected])) [part='checkmark']::before {
|
|
1851
|
+
transform: scale(0.8);
|
|
1852
|
+
opacity: 0;
|
|
1853
|
+
transition-duration: 0s;
|
|
1854
|
+
}
|
|
1644
1855
|
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
border: 1px dashed var(--lumo-contrast-30pct);
|
|
1649
|
-
}
|
|
1856
|
+
[part='content'] {
|
|
1857
|
+
flex: auto;
|
|
1858
|
+
}
|
|
1650
1859
|
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1860
|
+
/* Disabled */
|
|
1861
|
+
:host([disabled]) {
|
|
1862
|
+
color: var(--lumo-disabled-text-color);
|
|
1863
|
+
cursor: default;
|
|
1864
|
+
pointer-events: none;
|
|
1865
|
+
}
|
|
1655
1866
|
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1867
|
+
/* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
|
|
1868
|
+
@media (any-hover: hover) {
|
|
1869
|
+
:host(:hover:not([disabled])) {
|
|
1870
|
+
background-color: var(--lumo-primary-color-10pct);
|
|
1659
1871
|
}
|
|
1872
|
+
}
|
|
1660
1873
|
|
|
1661
|
-
|
|
1662
|
-
:
|
|
1663
|
-
|
|
1664
|
-
}
|
|
1874
|
+
:host([focus-ring]:not([disabled])) {
|
|
1875
|
+
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
1876
|
+
}
|
|
1665
1877
|
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
::slotted(vaadin-icon) {
|
|
1672
|
-
color: var(--lumo-contrast-60pct);
|
|
1673
|
-
width: var(--lumo-icon-size-m);
|
|
1674
|
-
height: var(--lumo-icon-size-m);
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
1678
|
-
::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
1679
|
-
padding: 0.25em;
|
|
1680
|
-
box-sizing: border-box !important;
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
/* Text align */
|
|
1684
|
-
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1685
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
@-moz-document url-prefix() {
|
|
1689
|
-
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1690
|
-
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
1695
|
-
text-align: start;
|
|
1696
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
:host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
|
|
1700
|
-
text-align: center;
|
|
1701
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
1705
|
-
text-align: end;
|
|
1706
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
@-moz-document url-prefix() {
|
|
1710
|
-
/* Firefox is smart enough to align overflowing text to right */
|
|
1711
|
-
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
1712
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
@-moz-document url-prefix() {
|
|
1717
|
-
/* Firefox is smart enough to align overflowing text to right */
|
|
1718
|
-
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
1719
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
/* RTL specific styles */
|
|
1724
|
-
:host([dir='rtl'])::after {
|
|
1725
|
-
transform-origin: 0% 0;
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
|
-
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1729
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
:host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1733
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1737
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
@-moz-document url-prefix() {
|
|
1741
|
-
/* Firefox is smart enough to align overflowing text to right */
|
|
1742
|
-
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1743
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
@-moz-document url-prefix() {
|
|
1748
|
-
/* Firefox is smart enough to align overflowing text to right */
|
|
1749
|
-
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1750
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
1751
|
-
}
|
|
1752
|
-
}
|
|
1753
|
-
`,{moduleId:"lumo-input-container"});/**
|
|
1754
|
-
* @license
|
|
1755
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1756
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1757
|
-
*/function fs(a){const e=customElements.get(a.is);if(!e)customElements.define(a.is,a);else{const t=e.version;t&&a.version&&t===a.version?console.warn(`The component ${a.is} has been loaded twice`):console.error(`Tried to define ${a.is} version ${a.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
|
|
1758
|
-
* @license
|
|
1759
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1760
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1761
|
-
*/const E=[];function wt(a,e,t=a.getAttribute("dir")){e?a.setAttribute("dir",e):t!=null&&a.removeAttribute("dir")}function xt(){return document.documentElement.getAttribute("dir")}function gs(){const a=xt();E.forEach(e=>{wt(e,a)})}new MutationObserver(gs).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const _s=a=>class extends a{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,h,i){if(super.attributeChangedCallback(t,h,i),t!=="dir")return;const s=xt(),n=i===s&&E.indexOf(this)===-1,o=!i&&h&&E.indexOf(this)===-1;n||o?(this.__subscribe(),wt(this,s,i)):i!==s&&h===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=E.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,h,i){i==="dir"&&h===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,h,i)}_attributeToProperty(t,h,i){t==="dir"&&!h?this.dir="":super._attributeToProperty(t,h,i)}__subscribe(){E.includes(this)||E.push(this)}__unsubscribe(){E.includes(this)&&E.splice(E.indexOf(this),1)}};/**
|
|
1762
|
-
* @license
|
|
1763
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1764
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1765
|
-
*/class ms extends us(_s(V)){static get is(){return"vaadin-input-container"}static get template(){return G`
|
|
1766
|
-
<style>
|
|
1767
|
-
:host {
|
|
1768
|
-
display: flex;
|
|
1769
|
-
align-items: center;
|
|
1770
|
-
flex: 0 1 auto;
|
|
1771
|
-
border-radius:
|
|
1772
|
-
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
1773
|
-
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
|
|
1774
|
-
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
|
|
1775
|
-
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
|
|
1776
|
-
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
|
|
1777
|
-
--_border-radius: var(--vaadin-input-field-border-radius, 0px);
|
|
1778
|
-
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
1779
|
-
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
1780
|
-
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
:host([dir='rtl']) {
|
|
1784
|
-
border-radius:
|
|
1785
|
-
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
1786
|
-
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
|
|
1787
|
-
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
|
|
1788
|
-
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
|
|
1789
|
-
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
:host([hidden]) {
|
|
1793
|
-
display: none !important;
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
/* Reset the native input styles */
|
|
1797
|
-
::slotted(input) {
|
|
1798
|
-
-webkit-appearance: none;
|
|
1799
|
-
-moz-appearance: none;
|
|
1800
|
-
flex: auto;
|
|
1801
|
-
white-space: nowrap;
|
|
1802
|
-
overflow: hidden;
|
|
1803
|
-
width: 100%;
|
|
1804
|
-
height: 100%;
|
|
1805
|
-
outline: none;
|
|
1806
|
-
margin: 0;
|
|
1807
|
-
padding: 0;
|
|
1808
|
-
border: 0;
|
|
1809
|
-
border-radius: 0;
|
|
1810
|
-
min-width: 0;
|
|
1811
|
-
font: inherit;
|
|
1812
|
-
line-height: normal;
|
|
1813
|
-
color: inherit;
|
|
1814
|
-
background-color: transparent;
|
|
1815
|
-
/* Disable default invalid style in Firefox */
|
|
1816
|
-
box-shadow: none;
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
::slotted(*) {
|
|
1820
|
-
flex: none;
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
::slotted(:is(input, textarea))::placeholder {
|
|
1824
|
-
/* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
|
|
1825
|
-
/* because ::slotted(...)::placeholder does not work in Safari. */
|
|
1826
|
-
font: inherit;
|
|
1827
|
-
color: inherit;
|
|
1828
|
-
/* Override default opacity in Firefox */
|
|
1829
|
-
opacity: 1;
|
|
1830
|
-
}
|
|
1831
|
-
</style>
|
|
1832
|
-
<slot name="prefix"></slot>
|
|
1833
|
-
<slot></slot>
|
|
1834
|
-
<slot name="suffix"></slot>
|
|
1835
|
-
`}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);/**
|
|
1836
|
-
* @license
|
|
1837
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1838
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1839
|
-
*/const Ms=f`
|
|
1840
|
-
:host {
|
|
1841
|
-
/* Square */
|
|
1842
|
-
--lumo-space-xs: 0.25rem;
|
|
1843
|
-
--lumo-space-s: 0.5rem;
|
|
1844
|
-
--lumo-space-m: 1rem;
|
|
1845
|
-
--lumo-space-l: 1.5rem;
|
|
1846
|
-
--lumo-space-xl: 2.5rem;
|
|
1847
|
-
|
|
1848
|
-
/* Wide */
|
|
1849
|
-
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
1850
|
-
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
1851
|
-
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
1852
|
-
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
1853
|
-
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
1854
|
-
|
|
1855
|
-
/* Tall */
|
|
1856
|
-
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
1857
|
-
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
1858
|
-
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
1859
|
-
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
1860
|
-
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
1861
|
-
}
|
|
1862
|
-
`;W("spacing-props",Ms);/**
|
|
1863
|
-
* @license
|
|
1864
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1865
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1866
|
-
*/const zs=f`
|
|
1867
|
-
@font-face {
|
|
1868
|
-
font-family: 'lumo-icons';
|
|
1869
|
-
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==)
|
|
1870
|
-
format('woff');
|
|
1871
|
-
font-weight: normal;
|
|
1872
|
-
font-style: normal;
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
html {
|
|
1876
|
-
--lumo-icons-align-center: '\\ea01';
|
|
1877
|
-
--lumo-icons-align-left: '\\ea02';
|
|
1878
|
-
--lumo-icons-align-right: '\\ea03';
|
|
1879
|
-
--lumo-icons-angle-down: '\\ea04';
|
|
1880
|
-
--lumo-icons-angle-left: '\\ea05';
|
|
1881
|
-
--lumo-icons-angle-right: '\\ea06';
|
|
1882
|
-
--lumo-icons-angle-up: '\\ea07';
|
|
1883
|
-
--lumo-icons-arrow-down: '\\ea08';
|
|
1884
|
-
--lumo-icons-arrow-left: '\\ea09';
|
|
1885
|
-
--lumo-icons-arrow-right: '\\ea0a';
|
|
1886
|
-
--lumo-icons-arrow-up: '\\ea0b';
|
|
1887
|
-
--lumo-icons-bar-chart: '\\ea0c';
|
|
1888
|
-
--lumo-icons-bell: '\\ea0d';
|
|
1889
|
-
--lumo-icons-calendar: '\\ea0e';
|
|
1890
|
-
--lumo-icons-checkmark: '\\ea0f';
|
|
1891
|
-
--lumo-icons-chevron-down: '\\ea10';
|
|
1892
|
-
--lumo-icons-chevron-left: '\\ea11';
|
|
1893
|
-
--lumo-icons-chevron-right: '\\ea12';
|
|
1894
|
-
--lumo-icons-chevron-up: '\\ea13';
|
|
1895
|
-
--lumo-icons-clock: '\\ea14';
|
|
1896
|
-
--lumo-icons-cog: '\\ea15';
|
|
1897
|
-
--lumo-icons-cross: '\\ea16';
|
|
1898
|
-
--lumo-icons-download: '\\ea17';
|
|
1899
|
-
--lumo-icons-dropdown: '\\ea18';
|
|
1900
|
-
--lumo-icons-edit: '\\ea19';
|
|
1901
|
-
--lumo-icons-error: '\\ea1a';
|
|
1902
|
-
--lumo-icons-eye: '\\ea1b';
|
|
1903
|
-
--lumo-icons-eye-disabled: '\\ea1c';
|
|
1904
|
-
--lumo-icons-menu: '\\ea1d';
|
|
1905
|
-
--lumo-icons-minus: '\\ea1e';
|
|
1906
|
-
--lumo-icons-ordered-list: '\\ea1f';
|
|
1907
|
-
--lumo-icons-phone: '\\ea20';
|
|
1908
|
-
--lumo-icons-photo: '\\ea21';
|
|
1909
|
-
--lumo-icons-play: '\\ea22';
|
|
1910
|
-
--lumo-icons-plus: '\\ea23';
|
|
1911
|
-
--lumo-icons-redo: '\\ea24';
|
|
1912
|
-
--lumo-icons-reload: '\\ea25';
|
|
1913
|
-
--lumo-icons-search: '\\ea26';
|
|
1914
|
-
--lumo-icons-undo: '\\ea27';
|
|
1915
|
-
--lumo-icons-unordered-list: '\\ea28';
|
|
1916
|
-
--lumo-icons-upload: '\\ea29';
|
|
1917
|
-
--lumo-icons-user: '\\ea2a';
|
|
1918
|
-
}
|
|
1919
|
-
`;W("font-icons",zs);/**
|
|
1920
|
-
* @license
|
|
1921
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1922
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1923
|
-
*/const bs=[];function ys(a){return a&&Object.prototype.hasOwnProperty.call(a,"__themes")}function ws(a){return ys(customElements.get(a))}function xs(a=[]){return[a].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(a,e,t={}){a&&ws(a)&&console.warn(`The custom element definition for "${a}"
|
|
1924
|
-
was finalized before a style module was registered.
|
|
1925
|
-
Make sure to add component specific style modules before
|
|
1926
|
-
importing the corresponding custom element.`),e=xs(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(a,e,t):bs.push({themeFor:a,styles:e,include:t.include,moduleId:t.moduleId})}const Ne=f`
|
|
1927
|
-
:host {
|
|
1928
|
-
display: flex;
|
|
1929
|
-
align-items: center;
|
|
1930
|
-
box-sizing: border-box;
|
|
1931
|
-
font-family: var(--lumo-font-family);
|
|
1932
|
-
font-size: var(--lumo-font-size-m);
|
|
1933
|
-
line-height: var(--lumo-line-height-xs);
|
|
1934
|
-
padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
|
|
1935
|
-
var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
1936
|
-
min-height: var(--lumo-size-m);
|
|
1937
|
-
outline: none;
|
|
1938
|
-
border-radius: var(--lumo-border-radius-m);
|
|
1939
|
-
cursor: var(--lumo-clickable-cursor);
|
|
1940
|
-
-webkit-font-smoothing: antialiased;
|
|
1941
|
-
-moz-osx-font-smoothing: grayscale;
|
|
1942
|
-
-webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
|
-
/* Checkmark */
|
|
1946
|
-
[part='checkmark']::before {
|
|
1947
|
-
display: var(--_lumo-item-selected-icon-display, none);
|
|
1948
|
-
content: var(--lumo-icons-checkmark);
|
|
1949
|
-
font-family: lumo-icons;
|
|
1950
|
-
font-size: var(--lumo-icon-size-m);
|
|
1951
|
-
line-height: 1;
|
|
1952
|
-
font-weight: normal;
|
|
1953
|
-
width: 1em;
|
|
1954
|
-
height: 1em;
|
|
1955
|
-
margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
|
|
1956
|
-
color: var(--lumo-primary-text-color);
|
|
1957
|
-
flex: none;
|
|
1958
|
-
opacity: 0;
|
|
1959
|
-
transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), opacity 0.1s;
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
:host([selected]) [part='checkmark']::before {
|
|
1963
|
-
opacity: 1;
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
:host([active]:not([selected])) [part='checkmark']::before {
|
|
1967
|
-
transform: scale(0.8);
|
|
1968
|
-
opacity: 0;
|
|
1969
|
-
transition-duration: 0s;
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
[part='content'] {
|
|
1973
|
-
flex: auto;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
/* Disabled */
|
|
1977
|
-
:host([disabled]) {
|
|
1978
|
-
color: var(--lumo-disabled-text-color);
|
|
1979
|
-
cursor: default;
|
|
1980
|
-
pointer-events: none;
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
/* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
|
|
1984
|
-
@media (any-hover: hover) {
|
|
1985
|
-
:host(:hover:not([disabled])) {
|
|
1986
|
-
background-color: var(--lumo-primary-color-10pct);
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
:host([focus-ring]:not([disabled])) {
|
|
1990
|
-
box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
1991
|
-
}
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
/* RTL specific styles */
|
|
1995
|
-
:host([dir='rtl']) {
|
|
1996
|
-
padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
|
|
1997
|
-
padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
1998
|
-
}
|
|
1878
|
+
/* RTL specific styles */
|
|
1879
|
+
:host([dir='rtl']) {
|
|
1880
|
+
padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
|
|
1881
|
+
padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
1882
|
+
}
|
|
1999
1883
|
|
|
2000
1884
|
/* Slotted icons */
|
|
2001
1885
|
:host ::slotted(vaadin-icon) {
|
|
2002
1886
|
width: var(--lumo-icon-size-m);
|
|
2003
1887
|
height: var(--lumo-icon-size-m);
|
|
2004
1888
|
}
|
|
2005
|
-
`;
|
|
1889
|
+
`;L2("vaadin-item",oa,{moduleId:"lumo-item"});/**
|
|
1890
|
+
* @license
|
|
1891
|
+
* Copyright 2017 Google LLC
|
|
1892
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1893
|
+
*/const F1=globalThis,Se=F1.trustedTypes,ra=Se?Se.createPolicy("lit-html",{createHTML:s=>s}):void 0,la="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,da="?"+j,R2=`<${da}>`,ut=document,k0=()=>ut.createComment(""),O0=s=>s===null||typeof s!="object"&&typeof s!="function",ca=Array.isArray,H2=s=>ca(s)||typeof s?.[Symbol.iterator]=="function",j1=`[
|
|
1894
|
+
\f\r]`,L0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pa=/-->/g,va=/>/g,ft=RegExp(`>|${j1}(?:([^\\s"'>=/]+)(${j1}*=${j1}*(?:[^
|
|
1895
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ua=/'/g,fa=/"/g,ga=/^(?:script|style|textarea|title)$/i,Dt=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),_a=new WeakMap,gt=ut.createTreeWalker(ut,129);function ma(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ra!==void 0?ra.createHTML(t):t}const D2=(s,t)=>{const e=s.length-1,i=[];let h,a=t===2?"<svg>":"",n=L0;for(let r=0;r<e;r++){const o=s[r];let l,c,d=-1,p=0;for(;p<o.length&&(n.lastIndex=p,c=n.exec(o),c!==null);)p=n.lastIndex,n===L0?c[1]==="!--"?n=pa:c[1]!==void 0?n=va:c[2]!==void 0?(ga.test(c[2])&&(h=RegExp("</"+c[2],"g")),n=ft):c[3]!==void 0&&(n=ft):n===ft?c[0]===">"?(n=h??L0,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?ft:c[3]==='"'?fa:ua):n===fa||n===ua?n=ft:n===pa||n===va?n=L0:(n=ft,h=void 0);const v=n===ft&&s[r+1].startsWith("/>")?" ":"";a+=n===L0?o+R2:d>=0?(i.push(l),o.slice(0,d)+la+o.slice(d)+j+v):o+j+(d===-2?r:v)}return[ma(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class R0{constructor({strings:t,_$litType$:e},i){let h;this.parts=[];let a=0,n=0;const r=t.length-1,o=this.parts,[l,c]=D2(t,e);if(this.el=R0.createElement(l,i),gt.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(h=gt.nextNode())!==null&&o.length<r;){if(h.nodeType===1){if(h.hasAttributes())for(const d of h.getAttributeNames())if(d.endsWith(la)){const p=c[n++],v=h.getAttribute(d).split(j),u=/([.?@])?(.*)/.exec(p);o.push({type:1,index:a,name:u[2],strings:v,ctor:u[1]==="."?B2:u[1]==="?"?U2:u[1]==="@"?F2:Te}),h.removeAttribute(d)}else d.startsWith(j)&&(o.push({type:6,index:a}),h.removeAttribute(d));if(ga.test(h.tagName)){const d=h.textContent.split(j),p=d.length-1;if(p>0){h.textContent=Se?Se.emptyScript:"";for(let v=0;v<p;v++)h.append(d[v],k0()),gt.nextNode(),o.push({type:2,index:++a});h.append(d[p],k0())}}}else if(h.nodeType===8)if(h.data===da)o.push({type:2,index:a});else{let d=-1;for(;(d=h.data.indexOf(j,d+1))!==-1;)o.push({type:7,index:a}),d+=j.length-1}a++}}static createElement(t,e){const i=ut.createElement("template");return i.innerHTML=t,i}}function Vt(s,t,e=s,i){if(t===Dt)return t;let h=i!==void 0?e._$Co?.[i]:e._$Cl;const a=O0(t)?void 0:t._$litDirective$;return h?.constructor!==a&&(h?._$AO?.(!1),a===void 0?h=void 0:(h=new a(s),h._$AT(s,e,i)),i!==void 0?(e._$Co??=[])[i]=h:e._$Cl=h),h!==void 0&&(t=Vt(s,h._$AS(s,t.values),h,i)),t}class V2{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,h=(t?.creationScope??ut).importNode(e,!0);gt.currentNode=h;let a=gt.nextNode(),n=0,r=0,o=i[0];for(;o!==void 0;){if(n===o.index){let l;o.type===2?l=new H0(a,a.nextSibling,this,t):o.type===1?l=new o.ctor(a,o.name,o.strings,this,t):o.type===6&&(l=new j2(a,this,t)),this._$AV.push(l),o=i[++r]}n!==o?.index&&(a=gt.nextNode(),n++)}return gt.currentNode=ut,h}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class H0{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,h){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=h,this._$Cv=h?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Vt(this,t,e),O0(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==Dt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):H2(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==$&&O0(this._$AH)?this._$AA.nextSibling.data=t:this.T(ut.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,h=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=R0.createElement(ma(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===h)this._$AH.p(e);else{const a=new V2(h,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=_a.get(t.strings);return e===void 0&&_a.set(t.strings,e=new R0(t)),e}k(t){ca(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,h=0;for(const a of t)h===e.length?e.push(i=new H0(this.S(k0()),this.S(k0()),this,this.options)):i=e[h],i._$AI(a),h++;h<e.length&&(this._$AR(i&&i._$AB.nextSibling,h),e.length=h)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Te{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,h,a){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=h,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}_$AI(t,e=this,i,h){const a=this.strings;let n=!1;if(a===void 0)t=Vt(this,t,e,0),n=!O0(t)||t!==this._$AH&&t!==Dt,n&&(this._$AH=t);else{const r=t;let o,l;for(t=a[0],o=0;o<a.length-1;o++)l=Vt(this,r[i+o],e,o),l===Dt&&(l=this._$AH[o]),n||=!O0(l)||l!==this._$AH[o],l===$?t=$:t!==$&&(t+=(l??"")+a[o+1]),this._$AH[o]=l}n&&!h&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class B2 extends Te{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}}class U2 extends Te{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}}class F2 extends Te{constructor(t,e,i,h,a){super(t,e,i,h,a),this.type=5}_$AI(t,e=this){if((t=Vt(this,t,e,0)??$)===Dt)return;const i=this._$AH,h=t===$&&i!==$||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==$&&(i===$||h);h&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class j2{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Vt(this,t)}}const q2=F1.litHtmlPolyfillSupport;q2?.(R0,H0),(F1.litHtmlVersions??=[]).push("3.1.2");const W2=(s,t,e)=>{const i=e?.renderBefore??t;let h=i._$litPart$;if(h===void 0){const a=e?.renderBefore??null;i._$litPart$=h=new H0(t.insertBefore(k0(),a),a,void 0,e??{})}return h._$AI(s),h};/**
|
|
1896
|
+
* @license
|
|
1897
|
+
* Copyright 2017 Google LLC
|
|
1898
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1899
|
+
*/class Pe extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=W2(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Dt}}Pe._$litElement$=!0,Pe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Pe});const Y2=globalThis.litElementPolyfillSupport;Y2?.({LitElement:Pe}),(globalThis.litElementVersions??=[]).push("4.0.4");/**
|
|
2006
1900
|
* @license
|
|
2007
1901
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2008
1902
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2009
|
-
*/const
|
|
1903
|
+
*/const G2=s=>class extends s{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,h){super.attributeChangedCallback(e,i,h),e==="theme"&&this._set_theme(h)}};/**
|
|
2010
1904
|
* @license
|
|
2011
1905
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2012
1906
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2013
|
-
*/const
|
|
1907
|
+
*/const Ma=[];function za(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function Z2(s){return za(customElements.get(s))}function K2(s=[]){return[s].flat(1/0).filter(t=>t instanceof K?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function D0(s,t,e={}){s&&Z2(s)&&console.warn(`The custom element definition for "${s}"
|
|
2014
1908
|
was finalized before a style module was registered.
|
|
2015
1909
|
Make sure to add component specific style modules before
|
|
2016
|
-
importing the corresponding custom element.`),
|
|
2017
|
-
`),
|
|
1910
|
+
importing the corresponding custom element.`),t=K2(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):Ma.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId})}function q1(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ma}function J2(s,t){return(s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Q2(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function ba(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const i=q1().find(h=>h.moduleId===e);i?t.push(...ba(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},s.styles),t}function X2(s,t){const e=document.createElement("style");e.innerHTML=s.map(i=>i.cssText).join(`
|
|
1911
|
+
`),t.content.appendChild(e)}function td(s){const t=`${s}-default-theme`,e=q1().filter(i=>i.moduleId!==t&&J2(i.themeFor,s)).map(i=>({...i,styles:[...ba(i),...i.styles],includePriority:Q2(i.moduleId)})).sort((i,h)=>h.includePriority-i.includePriority);return e.length>0?e:q1().filter(i=>i.moduleId===t)}const W1=s=>class extends G2(s){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||za(this)||X2(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...super.finalizeStyles(e),...i]:i}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),i=(e?e.constructor.__themes:[])||[];this.__themes=[...i,...td(this.is)];const h=this.__themes.flatMap(a=>a.styles);return h.filter((a,n)=>n===h.lastIndexOf(a))}},ed=f`
|
|
2018
1912
|
:host {
|
|
2019
1913
|
transition: background-color 100ms;
|
|
2020
1914
|
overflow: hidden;
|
|
2021
1915
|
--_lumo-item-selected-icon-display: block;
|
|
1916
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
1917
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
2022
1918
|
}
|
|
2023
1919
|
|
|
2024
|
-
|
|
2025
|
-
:
|
|
2026
|
-
box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
2027
|
-
}
|
|
1920
|
+
:host([focused]:not([disabled])) {
|
|
1921
|
+
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
2028
1922
|
}
|
|
2029
|
-
`;
|
|
1923
|
+
`;D0("vaadin-combo-box-item",[oa,ed],{moduleId:"lumo-combo-box-item"});/**
|
|
2030
1924
|
* @license
|
|
2031
1925
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
2032
1926
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2033
|
-
*/const
|
|
1927
|
+
*/const id=f`
|
|
2034
1928
|
[part~='loader'] {
|
|
2035
1929
|
box-sizing: border-box;
|
|
2036
1930
|
width: var(--lumo-icon-size-s);
|
|
@@ -2074,7 +1968,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2074
1968
|
* @license
|
|
2075
1969
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2076
1970
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2077
|
-
*/const
|
|
1971
|
+
*/const Y1=f`
|
|
2078
1972
|
:host {
|
|
2079
1973
|
top: var(--lumo-space-m);
|
|
2080
1974
|
right: var(--lumo-space-m);
|
|
@@ -2137,11 +2031,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2137
2031
|
opacity: 1;
|
|
2138
2032
|
}
|
|
2139
2033
|
}
|
|
2140
|
-
`;
|
|
2034
|
+
`;V("",Y1,{moduleId:"lumo-overlay"});/**
|
|
2141
2035
|
* @license
|
|
2142
2036
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2143
2037
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2144
|
-
*/const
|
|
2038
|
+
*/const G1=f`
|
|
2145
2039
|
:host([opening]),
|
|
2146
2040
|
:host([closing]) {
|
|
2147
2041
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -2155,134 +2049,329 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2155
2049
|
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
2156
2050
|
}
|
|
2157
2051
|
|
|
2158
|
-
@keyframes lumo-menu-overlay-enter {
|
|
2159
|
-
0% {
|
|
2160
|
-
opacity: 0;
|
|
2161
|
-
transform: translateY(-4px);
|
|
2052
|
+
@keyframes lumo-menu-overlay-enter {
|
|
2053
|
+
0% {
|
|
2054
|
+
opacity: 0;
|
|
2055
|
+
transform: translateY(-4px);
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
:host([closing]) [part='overlay'] {
|
|
2060
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
@keyframes lumo-menu-overlay-exit {
|
|
2064
|
+
100% {
|
|
2065
|
+
opacity: 0;
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
`;V("",G1,{moduleId:"lumo-menu-overlay-core"});const hd=f`
|
|
2069
|
+
/* Small viewport (bottom sheet) styles */
|
|
2070
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
2071
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
2072
|
+
:host {
|
|
2073
|
+
top: 0 !important;
|
|
2074
|
+
right: 0 !important;
|
|
2075
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
2076
|
+
left: 0 !important;
|
|
2077
|
+
align-items: stretch !important;
|
|
2078
|
+
justify-content: flex-end !important;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
[part='overlay'] {
|
|
2082
|
+
max-height: 50vh;
|
|
2083
|
+
width: 100vw;
|
|
2084
|
+
border-radius: 0;
|
|
2085
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
2089
|
+
[part='content'] {
|
|
2090
|
+
padding: 30px var(--lumo-space-m);
|
|
2091
|
+
max-height: inherit;
|
|
2092
|
+
box-sizing: border-box;
|
|
2093
|
+
-webkit-overflow-scrolling: touch;
|
|
2094
|
+
overflow: auto;
|
|
2095
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
2096
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
[part='backdrop'] {
|
|
2100
|
+
display: block;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/* Animations */
|
|
2104
|
+
|
|
2105
|
+
:host([opening]) [part='overlay'] {
|
|
2106
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
:host([closing]),
|
|
2110
|
+
:host([closing]) [part='backdrop'] {
|
|
2111
|
+
animation-delay: 0.14s;
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
:host([closing]) [part='overlay'] {
|
|
2115
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
2120
|
+
0% {
|
|
2121
|
+
transform: translateY(150%);
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
2126
|
+
100% {
|
|
2127
|
+
transform: translateY(150%);
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
`;V("",[Y1,G1,hd],{moduleId:"lumo-menu-overlay"});const sd=f`
|
|
2131
|
+
[part='content'] {
|
|
2132
|
+
padding: 0;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
/* When items are empty, the spinner needs some room */
|
|
2136
|
+
:host(:not([closing])) [part~='content'] {
|
|
2137
|
+
min-height: calc(2 * var(--lumo-space-s) + var(--lumo-icon-size-s));
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
[part~='overlay'] {
|
|
2141
|
+
position: relative;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
:host([top-aligned]) [part~='overlay'] {
|
|
2145
|
+
margin-top: var(--lumo-space-xs);
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
:host([bottom-aligned]) [part~='overlay'] {
|
|
2149
|
+
margin-bottom: var(--lumo-space-xs);
|
|
2150
|
+
}
|
|
2151
|
+
`,ad=f`
|
|
2152
|
+
[part~='loader'] {
|
|
2153
|
+
position: absolute;
|
|
2154
|
+
z-index: 1;
|
|
2155
|
+
left: var(--lumo-space-s);
|
|
2156
|
+
right: var(--lumo-space-s);
|
|
2157
|
+
top: var(--lumo-space-s);
|
|
2158
|
+
margin-left: auto;
|
|
2159
|
+
margin-inline-start: auto;
|
|
2160
|
+
margin-inline-end: 0;
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
:host([dir='rtl']) [part~='loader'] {
|
|
2164
|
+
left: auto;
|
|
2165
|
+
margin-left: 0;
|
|
2166
|
+
margin-right: auto;
|
|
2167
|
+
margin-inline-start: 0;
|
|
2168
|
+
margin-inline-end: auto;
|
|
2169
|
+
}
|
|
2170
|
+
`;D0("vaadin-combo-box-overlay",[Y1,G1,sd,id,ad,f`
|
|
2171
|
+
:host {
|
|
2172
|
+
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
2173
|
+
--_vaadin-combo-box-items-container-border-style: solid;
|
|
2174
|
+
}
|
|
2175
|
+
`],{moduleId:"lumo-combo-box-overlay"});/**
|
|
2176
|
+
* @license
|
|
2177
|
+
* Copyright 2017 Google LLC
|
|
2178
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2179
|
+
*/const Z1=globalThis,Ie=Z1.trustedTypes,ya=Ie?Ie.createPolicy("lit-html",{createHTML:s=>s}):void 0,Aa="$lit$",q=`lit$${(Math.random()+"").slice(9)}$`,$a="?"+q,nd=`<${$a}>`,_t=document,V0=()=>_t.createComment(""),B0=s=>s===null||typeof s!="object"&&typeof s!="function",xa=Array.isArray,od=s=>xa(s)||typeof s?.[Symbol.iterator]=="function",K1=`[
|
|
2180
|
+
\f\r]`,U0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wa=/-->/g,Ca=/>/g,mt=RegExp(`>|${K1}(?:([^\\s"'>=/]+)(${K1}*=${K1}*(?:[^
|
|
2181
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ea=/'/g,Sa=/"/g,Ta=/^(?:script|style|textarea|title)$/i,Bt=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),Pa=new WeakMap,Mt=_t.createTreeWalker(_t,129);function Ia(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ya!==void 0?ya.createHTML(t):t}const rd=(s,t)=>{const e=s.length-1,i=[];let h,a=t===2?"<svg>":"",n=U0;for(let r=0;r<e;r++){const o=s[r];let l,c,d=-1,p=0;for(;p<o.length&&(n.lastIndex=p,c=n.exec(o),c!==null);)p=n.lastIndex,n===U0?c[1]==="!--"?n=wa:c[1]!==void 0?n=Ca:c[2]!==void 0?(Ta.test(c[2])&&(h=RegExp("</"+c[2],"g")),n=mt):c[3]!==void 0&&(n=mt):n===mt?c[0]===">"?(n=h??U0,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?mt:c[3]==='"'?Sa:Ea):n===Sa||n===Ea?n=mt:n===wa||n===Ca?n=U0:(n=mt,h=void 0);const v=n===mt&&s[r+1].startsWith("/>")?" ":"";a+=n===U0?o+nd:d>=0?(i.push(l),o.slice(0,d)+Aa+o.slice(d)+q+v):o+q+(d===-2?r:v)}return[Ia(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class F0{constructor({strings:t,_$litType$:e},i){let h;this.parts=[];let a=0,n=0;const r=t.length-1,o=this.parts,[l,c]=rd(t,e);if(this.el=F0.createElement(l,i),Mt.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(h=Mt.nextNode())!==null&&o.length<r;){if(h.nodeType===1){if(h.hasAttributes())for(const d of h.getAttributeNames())if(d.endsWith(Aa)){const p=c[n++],v=h.getAttribute(d).split(q),u=/([.?@])?(.*)/.exec(p);o.push({type:1,index:a,name:u[2],strings:v,ctor:u[1]==="."?dd:u[1]==="?"?cd:u[1]==="@"?pd:Ne}),h.removeAttribute(d)}else d.startsWith(q)&&(o.push({type:6,index:a}),h.removeAttribute(d));if(Ta.test(h.tagName)){const d=h.textContent.split(q),p=d.length-1;if(p>0){h.textContent=Ie?Ie.emptyScript:"";for(let v=0;v<p;v++)h.append(d[v],V0()),Mt.nextNode(),o.push({type:2,index:++a});h.append(d[p],V0())}}}else if(h.nodeType===8)if(h.data===$a)o.push({type:2,index:a});else{let d=-1;for(;(d=h.data.indexOf(q,d+1))!==-1;)o.push({type:7,index:a}),d+=q.length-1}a++}}static createElement(t,e){const i=_t.createElement("template");return i.innerHTML=t,i}}function Ut(s,t,e=s,i){if(t===Bt)return t;let h=i!==void 0?e._$Co?.[i]:e._$Cl;const a=B0(t)?void 0:t._$litDirective$;return h?.constructor!==a&&(h?._$AO?.(!1),a===void 0?h=void 0:(h=new a(s),h._$AT(s,e,i)),i!==void 0?(e._$Co??=[])[i]=h:e._$Cl=h),h!==void 0&&(t=Ut(s,h._$AS(s,t.values),h,i)),t}class ld{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,h=(t?.creationScope??_t).importNode(e,!0);Mt.currentNode=h;let a=Mt.nextNode(),n=0,r=0,o=i[0];for(;o!==void 0;){if(n===o.index){let l;o.type===2?l=new j0(a,a.nextSibling,this,t):o.type===1?l=new o.ctor(a,o.name,o.strings,this,t):o.type===6&&(l=new vd(a,this,t)),this._$AV.push(l),o=i[++r]}n!==o?.index&&(a=Mt.nextNode(),n++)}return Mt.currentNode=_t,h}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class j0{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,h){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=h,this._$Cv=h?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ut(this,t,e),B0(t)?t===x||t==null||t===""?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==Bt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):od(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==x&&B0(this._$AH)?this._$AA.nextSibling.data=t:this.T(_t.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,h=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=F0.createElement(Ia(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===h)this._$AH.p(e);else{const a=new ld(h,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=Pa.get(t.strings);return e===void 0&&Pa.set(t.strings,e=new F0(t)),e}k(t){xa(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,h=0;for(const a of t)h===e.length?e.push(i=new j0(this.S(V0()),this.S(V0()),this,this.options)):i=e[h],i._$AI(a),h++;h<e.length&&(this._$AR(i&&i._$AB.nextSibling,h),e.length=h)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Ne{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,h,a){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=e,this._$AM=h,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=x}_$AI(t,e=this,i,h){const a=this.strings;let n=!1;if(a===void 0)t=Ut(this,t,e,0),n=!B0(t)||t!==this._$AH&&t!==Bt,n&&(this._$AH=t);else{const r=t;let o,l;for(t=a[0],o=0;o<a.length-1;o++)l=Ut(this,r[i+o],e,o),l===Bt&&(l=this._$AH[o]),n||=!B0(l)||l!==this._$AH[o],l===x?t=x:t!==x&&(t+=(l??"")+a[o+1]),this._$AH[o]=l}n&&!h&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class dd extends Ne{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}}class cd extends Ne{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==x)}}class pd extends Ne{constructor(t,e,i,h,a){super(t,e,i,h,a),this.type=5}_$AI(t,e=this){if((t=Ut(this,t,e,0)??x)===Bt)return;const i=this._$AH,h=t===x&&i!==x||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==x&&(i===x||h);h&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class vd{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Ut(this,t)}}const ud=Z1.litHtmlPolyfillSupport;ud?.(F0,j0),(Z1.litHtmlVersions??=[]).push("3.1.2");const fd=(s,t,e)=>{const i=e?.renderBefore??t;let h=i._$litPart$;if(h===void 0){const a=e?.renderBefore??null;i._$litPart$=h=new j0(t.insertBefore(V0(),a),a,void 0,e??{})}return h._$AI(s),h};/**
|
|
2182
|
+
* @license
|
|
2183
|
+
* Copyright 2017 Google LLC
|
|
2184
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2185
|
+
*/class ke extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=fd(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Bt}}ke._$litElement$=!0,ke.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ke});const gd=globalThis.litElementPolyfillSupport;gd?.({LitElement:ke}),(globalThis.litElementVersions??=[]).push("4.0.4");/**
|
|
2186
|
+
* @license
|
|
2187
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2188
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2189
|
+
*/const _d=s=>class extends s{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,h){super.attributeChangedCallback(e,i,h),e==="theme"&&this._set_theme(h)}};/**
|
|
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 Na=[];function ka(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function md(s){return ka(customElements.get(s))}function Md(s=[]){return[s].flat(1/0).filter(t=>t instanceof K?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Oa(s,t,e={}){s&&md(s)&&console.warn(`The custom element definition for "${s}"
|
|
2194
|
+
was finalized before a style module was registered.
|
|
2195
|
+
Make sure to add component specific style modules before
|
|
2196
|
+
importing the corresponding custom element.`),t=Md(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):Na.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId})}function J1(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Na}function zd(s,t){return(s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function bd(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function La(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const i=J1().find(h=>h.moduleId===e);i?t.push(...La(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},s.styles),t}function yd(s,t){const e=document.createElement("style");e.innerHTML=s.map(i=>i.cssText).join(`
|
|
2197
|
+
`),t.content.appendChild(e)}function Ad(s){const t=`${s}-default-theme`,e=J1().filter(i=>i.moduleId!==t&&zd(i.themeFor,s)).map(i=>({...i,styles:[...La(i),...i.styles],includePriority:bd(i.moduleId)})).sort((i,h)=>h.includePriority-i.includePriority);return e.length>0?e:J1().filter(i=>i.moduleId===t)}const $d=s=>class extends _d(s){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||ka(this)||yd(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...super.finalizeStyles(e),...i]:i}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),i=(e?e.constructor.__themes:[])||[];this.__themes=[...i,...Ad(this.is)];const h=this.__themes.flatMap(a=>a.styles);return h.filter((a,n)=>n===h.lastIndexOf(a))}};Oa("vaadin-input-container",f`
|
|
2198
|
+
:host {
|
|
2199
|
+
background: var(--_background);
|
|
2200
|
+
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
2201
|
+
font-weight: 500;
|
|
2202
|
+
line-height: 1;
|
|
2203
|
+
position: relative;
|
|
2204
|
+
cursor: text;
|
|
2205
|
+
box-sizing: border-box;
|
|
2206
|
+
border-radius:
|
|
2207
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
|
|
2208
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
2209
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
2210
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
|
|
2211
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
|
|
2212
|
+
/* Fallback */
|
|
2213
|
+
--_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
|
|
2214
|
+
/* Default values */
|
|
2215
|
+
--_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
|
|
2216
|
+
--_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
|
|
2217
|
+
--_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
|
|
2218
|
+
--_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
|
|
2219
|
+
--_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
|
|
2220
|
+
--_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
|
|
2221
|
+
--_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
:host([dir='rtl']) {
|
|
2225
|
+
border-radius:
|
|
2226
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
2227
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
2228
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
2229
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
|
|
2230
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
/* Used for hover and activation effects */
|
|
2234
|
+
:host::after {
|
|
2235
|
+
content: '';
|
|
2236
|
+
position: absolute;
|
|
2237
|
+
inset: 0;
|
|
2238
|
+
border-radius: inherit;
|
|
2239
|
+
pointer-events: none;
|
|
2240
|
+
background: var(--_hover-highlight);
|
|
2241
|
+
opacity: 0;
|
|
2242
|
+
transition: transform 0.15s, opacity 0.2s;
|
|
2243
|
+
transform-origin: 100% 0;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
::slotted(:not([slot$='fix'])) {
|
|
2247
|
+
cursor: inherit;
|
|
2248
|
+
min-height: var(--lumo-text-field-size, var(--lumo-size-m));
|
|
2249
|
+
padding: 0 0.25em;
|
|
2250
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
2251
|
+
-webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
2252
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
/* Read-only */
|
|
2256
|
+
:host([readonly]) {
|
|
2257
|
+
color: var(--lumo-secondary-text-color);
|
|
2258
|
+
background-color: transparent;
|
|
2259
|
+
cursor: default;
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
:host([readonly])::after {
|
|
2263
|
+
background-color: transparent;
|
|
2264
|
+
opacity: 1;
|
|
2265
|
+
border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
/* Disabled */
|
|
2269
|
+
:host([disabled]) {
|
|
2270
|
+
background-color: var(--lumo-contrast-5pct);
|
|
2162
2271
|
}
|
|
2163
|
-
}
|
|
2164
2272
|
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2273
|
+
:host([disabled]) ::slotted(*) {
|
|
2274
|
+
color: var(--lumo-disabled-text-color);
|
|
2275
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
2276
|
+
}
|
|
2168
2277
|
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2278
|
+
/* Invalid */
|
|
2279
|
+
:host([invalid]) {
|
|
2280
|
+
background: var(--_invalid-background);
|
|
2172
2281
|
}
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
2177
|
-
@media (max-width: 420px), (max-height: 420px) {
|
|
2178
|
-
:host {
|
|
2179
|
-
top: 0 !important;
|
|
2180
|
-
right: 0 !important;
|
|
2181
|
-
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
2182
|
-
left: 0 !important;
|
|
2183
|
-
align-items: stretch !important;
|
|
2184
|
-
justify-content: flex-end !important;
|
|
2282
|
+
|
|
2283
|
+
:host([invalid])::after {
|
|
2284
|
+
background: var(--_invalid-hover-highlight);
|
|
2185
2285
|
}
|
|
2186
2286
|
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2287
|
+
/* Slotted icons */
|
|
2288
|
+
::slotted(vaadin-icon) {
|
|
2289
|
+
color: var(--_icon-color);
|
|
2290
|
+
width: var(--_icon-size);
|
|
2291
|
+
height: var(--_icon-size);
|
|
2192
2292
|
}
|
|
2193
2293
|
|
|
2194
|
-
/*
|
|
2195
|
-
[
|
|
2196
|
-
padding:
|
|
2197
|
-
|
|
2198
|
-
box-sizing: border-box;
|
|
2199
|
-
-webkit-overflow-scrolling: touch;
|
|
2200
|
-
overflow: auto;
|
|
2201
|
-
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
2202
|
-
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
2294
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
2295
|
+
::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
2296
|
+
padding: 0.25em;
|
|
2297
|
+
box-sizing: border-box !important;
|
|
2203
2298
|
}
|
|
2204
2299
|
|
|
2205
|
-
|
|
2206
|
-
|
|
2300
|
+
/* Text align */
|
|
2301
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
2302
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
|
|
2207
2303
|
}
|
|
2208
2304
|
|
|
2209
|
-
|
|
2305
|
+
@-moz-document url-prefix() {
|
|
2306
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
2307
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2210
2310
|
|
|
2211
|
-
:host([
|
|
2212
|
-
|
|
2311
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
2312
|
+
text-align: start;
|
|
2313
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
2213
2314
|
}
|
|
2214
2315
|
|
|
2215
|
-
:host([
|
|
2216
|
-
|
|
2217
|
-
|
|
2316
|
+
:host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
|
|
2317
|
+
text-align: center;
|
|
2318
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
2218
2319
|
}
|
|
2219
2320
|
|
|
2220
|
-
:host([
|
|
2221
|
-
|
|
2321
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
2322
|
+
text-align: end;
|
|
2323
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
2222
2324
|
}
|
|
2223
|
-
}
|
|
2224
2325
|
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2326
|
+
@-moz-document url-prefix() {
|
|
2327
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
2328
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
2329
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
2330
|
+
}
|
|
2228
2331
|
}
|
|
2229
|
-
}
|
|
2230
2332
|
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2333
|
+
@-moz-document url-prefix() {
|
|
2334
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
2335
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
2336
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
2337
|
+
}
|
|
2234
2338
|
}
|
|
2235
|
-
}
|
|
2236
|
-
`;T("",[Et,St,Ls],{moduleId:"lumo-menu-overlay"});const $s=f`
|
|
2237
|
-
[part='content'] {
|
|
2238
|
-
padding: 0;
|
|
2239
|
-
}
|
|
2240
2339
|
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2340
|
+
/* RTL specific styles */
|
|
2341
|
+
:host([dir='rtl'])::after {
|
|
2342
|
+
transform-origin: 0% 0;
|
|
2343
|
+
}
|
|
2245
2344
|
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2345
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
2346
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
2347
|
+
}
|
|
2249
2348
|
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2349
|
+
:host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
2350
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
2351
|
+
}
|
|
2253
2352
|
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
`,Vs=f`
|
|
2258
|
-
[part~='loader'] {
|
|
2259
|
-
position: absolute;
|
|
2260
|
-
z-index: 1;
|
|
2261
|
-
left: var(--lumo-space-s);
|
|
2262
|
-
right: var(--lumo-space-s);
|
|
2263
|
-
top: var(--lumo-space-s);
|
|
2264
|
-
margin-left: auto;
|
|
2265
|
-
margin-inline-start: auto;
|
|
2266
|
-
margin-inline-end: 0;
|
|
2267
|
-
}
|
|
2353
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
2354
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
2355
|
+
}
|
|
2268
2356
|
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
margin-inline-start: 0;
|
|
2274
|
-
margin-inline-end: auto;
|
|
2275
|
-
}
|
|
2276
|
-
`;g0("vaadin-combo-box-overlay",[Et,St,$s,Ns,Vs,f`
|
|
2277
|
-
:host {
|
|
2278
|
-
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
2279
|
-
--_vaadin-combo-box-items-container-border-style: solid;
|
|
2357
|
+
@-moz-document url-prefix() {
|
|
2358
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
2359
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
2360
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
2280
2361
|
}
|
|
2281
|
-
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
@-moz-document url-prefix() {
|
|
2365
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
2366
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
2367
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
`,{moduleId:"lumo-input-container"});/**
|
|
2282
2371
|
* @license
|
|
2283
2372
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2284
2373
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2285
|
-
*/const
|
|
2374
|
+
*/const Ra=f`
|
|
2286
2375
|
[part$='button'] {
|
|
2287
2376
|
flex: none;
|
|
2288
2377
|
width: 1em;
|
|
@@ -2309,22 +2398,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2309
2398
|
font-family: 'lumo-icons';
|
|
2310
2399
|
display: block;
|
|
2311
2400
|
}
|
|
2312
|
-
`;
|
|
2401
|
+
`;V("",Ra,{moduleId:"lumo-field-button"});/**
|
|
2313
2402
|
* @license
|
|
2314
2403
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2315
2404
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2316
|
-
*/const
|
|
2405
|
+
*/const xd=f`
|
|
2406
|
+
:host {
|
|
2407
|
+
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2317
2410
|
:host([has-helper]) [part='helper-text']::before {
|
|
2318
2411
|
content: '';
|
|
2319
2412
|
display: block;
|
|
2320
|
-
height:
|
|
2413
|
+
height: var(--_helper-spacing);
|
|
2321
2414
|
}
|
|
2322
2415
|
|
|
2323
2416
|
[part='helper-text'] {
|
|
2324
2417
|
display: block;
|
|
2325
|
-
color: var(--lumo-secondary-text-color);
|
|
2326
|
-
font-size: var(--lumo-font-size-xs);
|
|
2418
|
+
color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
|
|
2419
|
+
font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
|
|
2327
2420
|
line-height: var(--lumo-line-height-xs);
|
|
2421
|
+
font-weight: var(--vaadin-input-field-helper-font-weight, 400);
|
|
2328
2422
|
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2329
2423
|
transition: color 0.2s;
|
|
2330
2424
|
}
|
|
@@ -2345,12 +2439,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2345
2439
|
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
2346
2440
|
content: '';
|
|
2347
2441
|
display: block;
|
|
2348
|
-
height:
|
|
2442
|
+
height: var(--_helper-spacing);
|
|
2349
2443
|
}
|
|
2350
2444
|
|
|
2351
2445
|
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
2352
2446
|
order: 0;
|
|
2353
|
-
padding-bottom:
|
|
2447
|
+
padding-bottom: var(--_helper-spacing);
|
|
2354
2448
|
}
|
|
2355
2449
|
|
|
2356
2450
|
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
@@ -2368,18 +2462,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2368
2462
|
* @license
|
|
2369
2463
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2370
2464
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2371
|
-
*/const
|
|
2465
|
+
*/const Ha=f`
|
|
2372
2466
|
[part='label'] {
|
|
2373
2467
|
align-self: flex-start;
|
|
2374
|
-
color: var(--lumo-secondary-text-color);
|
|
2375
|
-
font-weight: 500;
|
|
2376
|
-
font-size: var(--lumo-font-size-s);
|
|
2468
|
+
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
2469
|
+
font-weight: var(--vaadin-input-field-label-font-weight, 500);
|
|
2470
|
+
font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
|
|
2377
2471
|
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2378
2472
|
transition: color 0.2s;
|
|
2379
2473
|
line-height: 1;
|
|
2380
2474
|
padding-right: 1em;
|
|
2381
2475
|
padding-bottom: 0.5em;
|
|
2382
|
-
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
2476
|
+
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
2383
2477
|
negative margin to compensate */
|
|
2384
2478
|
padding-top: 0.25em;
|
|
2385
2479
|
margin-top: -0.25em;
|
|
@@ -2391,6 +2485,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2391
2485
|
box-sizing: border-box;
|
|
2392
2486
|
}
|
|
2393
2487
|
|
|
2488
|
+
:host([focused]:not([readonly])) [part='label'] {
|
|
2489
|
+
color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2493
|
+
color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
/* Touch device adjustment */
|
|
2497
|
+
@media (pointer: coarse) {
|
|
2498
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2499
|
+
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2394
2503
|
:host([has-label])::before {
|
|
2395
2504
|
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
2396
2505
|
}
|
|
@@ -2423,9 +2532,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2423
2532
|
|
|
2424
2533
|
[part='error-message'] {
|
|
2425
2534
|
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2426
|
-
font-size: var(--lumo-font-size-xs);
|
|
2535
|
+
font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
|
|
2427
2536
|
line-height: var(--lumo-line-height-xs);
|
|
2428
|
-
|
|
2537
|
+
font-weight: var(--vaadin-input-field-error-font-weight, 400);
|
|
2538
|
+
color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
|
|
2429
2539
|
will-change: max-height;
|
|
2430
2540
|
transition: 0.4s max-height;
|
|
2431
2541
|
max-height: 5em;
|
|
@@ -2464,57 +2574,49 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2464
2574
|
margin-left: 0;
|
|
2465
2575
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2466
2576
|
}
|
|
2467
|
-
`;
|
|
2577
|
+
`;V("",Ha,{moduleId:"lumo-required-field"});/**
|
|
2468
2578
|
* @license
|
|
2469
2579
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2470
2580
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2471
|
-
*/const
|
|
2581
|
+
*/const wd=f`
|
|
2472
2582
|
:host {
|
|
2473
2583
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
2474
|
-
color: var(--lumo-body-text-color);
|
|
2475
|
-
font-size: var(--lumo-font-size-m);
|
|
2584
|
+
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
2585
|
+
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
2586
|
+
font-weight: var(--vaadin-input-field-value-font-weight, 400);
|
|
2476
2587
|
font-family: var(--lumo-font-family);
|
|
2477
2588
|
-webkit-font-smoothing: antialiased;
|
|
2478
2589
|
-moz-osx-font-smoothing: grayscale;
|
|
2479
2590
|
-webkit-tap-highlight-color: transparent;
|
|
2480
2591
|
padding: var(--lumo-space-xs) 0;
|
|
2592
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
2593
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
2594
|
+
--_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
|
|
2481
2595
|
}
|
|
2482
2596
|
|
|
2483
2597
|
:host::before {
|
|
2484
|
-
height: var(--
|
|
2598
|
+
height: var(--_input-height);
|
|
2485
2599
|
box-sizing: border-box;
|
|
2486
2600
|
display: inline-flex;
|
|
2487
2601
|
align-items: center;
|
|
2488
2602
|
}
|
|
2489
2603
|
|
|
2490
|
-
:host([focused]:not([readonly])) [part='label'] {
|
|
2491
|
-
color: var(--lumo-primary-text-color);
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
2604
|
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
2495
2605
|
-webkit-mask-image: none;
|
|
2496
2606
|
mask-image: none;
|
|
2497
2607
|
}
|
|
2498
2608
|
|
|
2499
2609
|
::slotted(:is(input, textarea):placeholder-shown) {
|
|
2500
|
-
color: var(--lumo-secondary-text-color);
|
|
2610
|
+
color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
|
|
2501
2611
|
}
|
|
2502
2612
|
|
|
2503
2613
|
/* Hover */
|
|
2504
|
-
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2505
|
-
color: var(--lumo-body-text-color);
|
|
2506
|
-
}
|
|
2507
|
-
|
|
2508
2614
|
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2509
|
-
opacity: 0.1;
|
|
2615
|
+
opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
|
|
2510
2616
|
}
|
|
2511
2617
|
|
|
2512
2618
|
/* Touch device adjustment */
|
|
2513
2619
|
@media (pointer: coarse) {
|
|
2514
|
-
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2515
|
-
color: var(--lumo-secondary-text-color);
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
2620
|
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2519
2621
|
opacity: 0;
|
|
2520
2622
|
}
|
|
@@ -2532,7 +2634,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2532
2634
|
|
|
2533
2635
|
/* Focus-ring */
|
|
2534
2636
|
:host([focus-ring]) [part='input-field'] {
|
|
2535
|
-
box-shadow: 0 0 0
|
|
2637
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
2536
2638
|
}
|
|
2537
2639
|
|
|
2538
2640
|
/* Read-only and disabled */
|
|
@@ -2602,7 +2704,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2602
2704
|
[part='clear-button']::before {
|
|
2603
2705
|
content: var(--lumo-icons-cross);
|
|
2604
2706
|
}
|
|
2605
|
-
`,
|
|
2707
|
+
`,Da=[Ha,Ra,xd,wd];V("",Da,{moduleId:"lumo-input-field-shared-styles"});const Cd=f`
|
|
2606
2708
|
:host {
|
|
2607
2709
|
outline: none;
|
|
2608
2710
|
}
|
|
@@ -2610,23 +2712,112 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2610
2712
|
[part='toggle-button']::before {
|
|
2611
2713
|
content: var(--lumo-icons-dropdown);
|
|
2612
2714
|
}
|
|
2613
|
-
`;
|
|
2715
|
+
`;D0("vaadin-combo-box",[Da,Cd],{moduleId:"lumo-combo-box"});/**
|
|
2716
|
+
* @license
|
|
2717
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2718
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2719
|
+
*/function Ed(s){const t=customElements.get(s.is);if(!t)Object.defineProperty(s,"version",{get(){return"24.3.7"}}),customElements.define(s.is,s);else{const e=t.version;e&&s.version&&e===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
|
|
2720
|
+
* @license
|
|
2721
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2722
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2723
|
+
*/const O=[];function Q1(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir")}function X1(){return document.documentElement.getAttribute("dir")}function Sd(){const s=X1();O.forEach(t=>{Q1(t,s)})}new MutationObserver(Sd).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Td=s=>class extends s{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Q1(this,X1(),null))}attributeChangedCallback(e,i,h){if(super.attributeChangedCallback(e,i,h),e!=="dir")return;const a=X1(),n=h===a&&O.indexOf(this)===-1,r=!h&&i&&O.indexOf(this)===-1;n||r?(this.__subscribe(),Q1(this,a,h)):h!==a&&i===a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=O.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,h){h==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,h)}_attributeToProperty(e,i,h){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,h)}__subscribe(){O.includes(this)||O.push(this)}__unsubscribe(){O.includes(this)&&O.splice(O.indexOf(this),1)}};/**
|
|
2724
|
+
* @license
|
|
2725
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2726
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2727
|
+
*/const Pd=s=>class extends s{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(i=>i.focus&&i.focus())})}};/**
|
|
2728
|
+
* @license
|
|
2729
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2730
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2731
|
+
*/const Id=f`
|
|
2732
|
+
:host {
|
|
2733
|
+
display: flex;
|
|
2734
|
+
align-items: center;
|
|
2735
|
+
flex: 0 1 auto;
|
|
2736
|
+
border-radius:
|
|
2737
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
2738
|
+
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
|
|
2739
|
+
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
|
|
2740
|
+
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
|
|
2741
|
+
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
|
|
2742
|
+
--_border-radius: var(--vaadin-input-field-border-radius, 0);
|
|
2743
|
+
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
2744
|
+
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
2745
|
+
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
:host([dir='rtl']) {
|
|
2749
|
+
border-radius:
|
|
2750
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
2751
|
+
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
|
|
2752
|
+
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
|
|
2753
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
|
|
2754
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
:host([hidden]) {
|
|
2758
|
+
display: none !important;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
/* Reset the native input styles */
|
|
2762
|
+
::slotted(input) {
|
|
2763
|
+
-webkit-appearance: none;
|
|
2764
|
+
-moz-appearance: none;
|
|
2765
|
+
flex: auto;
|
|
2766
|
+
white-space: nowrap;
|
|
2767
|
+
overflow: hidden;
|
|
2768
|
+
width: 100%;
|
|
2769
|
+
height: 100%;
|
|
2770
|
+
outline: none;
|
|
2771
|
+
margin: 0;
|
|
2772
|
+
padding: 0;
|
|
2773
|
+
border: 0;
|
|
2774
|
+
border-radius: 0;
|
|
2775
|
+
min-width: 0;
|
|
2776
|
+
font: inherit;
|
|
2777
|
+
line-height: normal;
|
|
2778
|
+
color: inherit;
|
|
2779
|
+
background-color: transparent;
|
|
2780
|
+
/* Disable default invalid style in Firefox */
|
|
2781
|
+
box-shadow: none;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
::slotted(*) {
|
|
2785
|
+
flex: none;
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
::slotted(:is(input, textarea))::placeholder {
|
|
2789
|
+
/* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
|
|
2790
|
+
/* because ::slotted(...)::placeholder does not work in Safari. */
|
|
2791
|
+
font: inherit;
|
|
2792
|
+
color: inherit;
|
|
2793
|
+
/* Override default opacity in Firefox */
|
|
2794
|
+
opacity: 1;
|
|
2795
|
+
}
|
|
2796
|
+
`;/**
|
|
2797
|
+
* @license
|
|
2798
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2799
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2800
|
+
*/Oa("vaadin-input-container",Id,{moduleId:"vaadin-input-container-styles"});class Nd extends Pd($d(Td(nt))){static get is(){return"vaadin-input-container"}static get template(){return kt`
|
|
2801
|
+
<slot name="prefix"></slot>
|
|
2802
|
+
<slot></slot>
|
|
2803
|
+
<slot name="suffix"></slot>
|
|
2804
|
+
`}}Ed(Nd);/**
|
|
2614
2805
|
* @license
|
|
2615
2806
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2616
2807
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2617
|
-
*/function
|
|
2808
|
+
*/function Oe(s){const t=customElements.get(s.is);if(!t)Object.defineProperty(s,"version",{get(){return"24.3.7"}}),customElements.define(s.is,s);else{const e=t.version;e&&s.version&&e===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
|
|
2618
2809
|
* @license
|
|
2619
2810
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2620
2811
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2621
|
-
*/const
|
|
2812
|
+
*/const L=[];function ti(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir")}function ei(){return document.documentElement.getAttribute("dir")}function kd(){const s=ei();L.forEach(t=>{ti(t,s)})}new MutationObserver(kd).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ii=s=>class extends s{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ti(this,ei(),null))}attributeChangedCallback(e,i,h){if(super.attributeChangedCallback(e,i,h),e!=="dir")return;const a=ei(),n=h===a&&L.indexOf(this)===-1,r=!h&&i&&L.indexOf(this)===-1;n||r?(this.__subscribe(),ti(this,a,h)):h!==a&&i===a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=L.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,h){h==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,h)}_attributeToProperty(e,i,h){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,h)}__subscribe(){L.includes(this)||L.push(this)}__unsubscribe(){L.includes(this)&&L.splice(L.indexOf(this),1)}};/**
|
|
2622
2813
|
* @license
|
|
2623
2814
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
2624
2815
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2625
|
-
*/const
|
|
2816
|
+
*/const Od=s=>class extends s{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(e,i,h){e==="hidden"&&h!==null?this.index=void 0:super.attributeChangedCallback(e,i,h)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,i,h){h===void 0||i===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,i){i||(this.textContent=e)}};/**
|
|
2626
2817
|
* @license
|
|
2627
2818
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
2628
2819
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2629
|
-
*/class
|
|
2820
|
+
*/class Ld extends Od(W1(ii(nt))){static get template(){return kt`
|
|
2630
2821
|
<style>
|
|
2631
2822
|
:host {
|
|
2632
2823
|
display: block;
|
|
@@ -2640,7 +2831,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2640
2831
|
<div part="content">
|
|
2641
2832
|
<slot></slot>
|
|
2642
2833
|
</div>
|
|
2643
|
-
`}static get is(){return"vaadin-combo-box-item"}}
|
|
2834
|
+
`}static get is(){return"vaadin-combo-box-item"}}Oe(Ld);/**
|
|
2644
2835
|
@license
|
|
2645
2836
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2646
2837
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2648,51 +2839,61 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2648
2839
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2649
2840
|
Code distributed by Google as part of the polymer project is also
|
|
2650
2841
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2651
|
-
*/let
|
|
2842
|
+
*/let hi=!1,Rd=[],Va=[];function Hd(){hi=!0,requestAnimationFrame(function(){hi=!1,Dd(Rd),setTimeout(function(){Vd(Va)})})}function Dd(s){for(;s.length;)Ba(s.shift())}function Vd(s){for(let t=0,e=s.length;t<e;t++)Ba(s.shift())}function Ba(s){const t=s[0],e=s[1],i=s[2];try{e.apply(t,i)}catch(h){setTimeout(()=>{throw h})}}function Bd(s,t,e){hi||Hd(),Va.push([s,t,e])}/**
|
|
2652
2843
|
* @license
|
|
2653
2844
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2654
2845
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2655
|
-
*/const
|
|
2846
|
+
*/const Le=s=>s.test(navigator.userAgent),si=s=>s.test(navigator.platform),Ud=s=>s.test(navigator.vendor);Le(/Android/u),Le(/Chrome/u)&&Ud(/Google Inc/u),Le(/Firefox/u);const Fd=si(/^iPad/u)||si(/^Mac/u)&&navigator.maxTouchPoints>1,jd=si(/^iPhone/u)||Fd;Le(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}})();/**
|
|
2656
2847
|
* @license
|
|
2657
2848
|
* Copyright (c) 2017 Anton Korzunov
|
|
2658
2849
|
* SPDX-License-Identifier: MIT
|
|
2659
|
-
*/let
|
|
2850
|
+
*/let Ft=new WeakMap,Re=new WeakMap,He={},ai=0;const Ua=s=>s&&s.nodeType===Node.ELEMENT_NODE,ni=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`)},qd=(s,t)=>Ua(s)?t.map(e=>{if(!Ua(e))return ni(e,"is not a valid element"),null;let i=e;for(;i&&i!==s;){if(s.contains(i))return e;i=i.getRootNode().host}return ni(e,"is not contained inside",s),null}).filter(e=>Boolean(e)):(ni(s,"is not a valid element"),[]),Wd=(s,t,e,i)=>{const h=qd(t,Array.isArray(s)?s:[s]);He[e]||(He[e]=new WeakMap);const a=He[e],n=[],r=new Set,o=new Set(h),l=d=>{if(!d||r.has(d))return;r.add(d);const p=d.assignedSlot;p&&l(p),l(d.parentNode||d.host)};h.forEach(l);const c=d=>{if(!d||o.has(d))return;const p=d.shadowRoot;(p?[...d.children,...p.children]:[...d.children]).forEach(u=>{if(!["template","script","style"].includes(u.localName))if(r.has(u))c(u);else{const z=u.getAttribute(i),T=z!==null&&z!=="false",C=(Ft.get(u)||0)+1,E=(a.get(u)||0)+1;Ft.set(u,C),a.set(u,E),n.push(u),C===1&&T&&Re.set(u,!0),E===1&&u.setAttribute(e,"true"),T||u.setAttribute(i,"true")}})};return c(t),r.clear(),ai+=1,()=>{n.forEach(d=>{const p=Ft.get(d)-1,v=a.get(d)-1;Ft.set(d,p),a.set(d,v),p||(Re.has(d)?Re.delete(d):d.removeAttribute(i)),v||d.removeAttribute(e)}),ai-=1,ai||(Ft=new WeakMap,Ft=new WeakMap,Re=new WeakMap,He={})}},Yd=(s,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),Wd(i,t,e,"aria-hidden")};/**
|
|
2660
2851
|
* @license
|
|
2661
2852
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2662
2853
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2663
|
-
*/class
|
|
2854
|
+
*/class Gd{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Yd(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
2664
2855
|
* @license
|
|
2665
2856
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2666
2857
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2667
|
-
*/window.addEventListener("keydown",()=>{},{capture:!0}),window.addEventListener("mousedown",()=>{},{capture:!0});function
|
|
2858
|
+
*/let oi=!1;window.addEventListener("keydown",()=>{oi=!0},{capture:!0}),window.addEventListener("mousedown",()=>{oi=!1},{capture:!0});function ri(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function Zd(){return oi}function Kd(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function Jd(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function Qd(s,t){const e=[];for(;s.length>0&&t.length>0;)Jd(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function li(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=li(s.slice(0,e)),h=li(s.slice(e));return Qd(i,h)}function Xd(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Fa(s){return s.getRootNode().activeElement===s}function tc(s){if(!Xd(s))return-1;const t=s.getAttribute("tabindex")||0;return Number(t)}function ja(s,t){if(s.nodeType!==Node.ELEMENT_NODE||Kd(s))return!1;const e=s,i=tc(e);let h=i>0;i>=0&&t.push(e);let a=[];return e.localName==="slot"?a=e.assignedNodes({flatten:!0}):a=(e.shadowRoot||e).children,[...a].forEach(n=>{h=ja(n,t)||h}),h}function ec(s){const t=[];return ja(s,t)?li(t):t}/**
|
|
2668
2859
|
* @license
|
|
2669
2860
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2670
2861
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2671
|
-
*/class
|
|
2862
|
+
*/class ic{saveFocus(t){this.focusNode=t||ri()}restoreFocus(){const t=this.focusNode;!t||(ri()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
|
|
2672
2863
|
* @license
|
|
2673
2864
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2674
2865
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2675
|
-
*/const
|
|
2866
|
+
*/const di=[];class hc{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return ec(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Fa).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");di.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,di.pop()}__onKeyDown(t){if(!!this.__trapNode&&this===Array.from(di).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,h=this.__focusedElementIndex,a=(e.length+h+i)%e.length,n=e[a];n.focus(),n.localName==="input"&&n.select()}}/**
|
|
2676
2867
|
* @license
|
|
2677
2868
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2678
2869
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2679
|
-
*/const
|
|
2870
|
+
*/const sc=m(s=>typeof s.prototype.addController=="function"?s:class extends s{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
|
|
2680
2871
|
* @license
|
|
2681
2872
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2682
2873
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2683
|
-
*/const
|
|
2874
|
+
*/const ac=s=>class extends sc(s){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Gd(this),this.__focusTrapController=new hc(this),this.__focusRestorationController=new ic}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 e=ri();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const h=e.ownerDocument;for(;i&&i!==h&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
|
|
2684
2875
|
* @license
|
|
2685
2876
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2686
2877
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2687
|
-
*/const
|
|
2878
|
+
*/const De=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),nc=s=>s===De().pop(),oc=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return nc(this)}bringToFront(){let e="";const i=De().filter(h=>h!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),De().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=De();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
|
|
2688
2879
|
* @license
|
|
2689
2880
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2690
2881
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2691
|
-
*/const
|
|
2882
|
+
*/const rc=s=>class extends ac(oc(s)){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),jd&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}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(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,h=window.innerWidth>e,a=document.documentElement.clientHeight;h&&a>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${a-e}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(e,i,h,a){const n=this._oldOwner!==i||this._oldModel!==h;this._oldModel=h,this._oldOwner=i;const r=this._oldRenderer!==e;this._oldRenderer=e;const o=this._oldOpened!==a;this._oldOpened=a,r&&(this.innerHTML="",delete this._$litPart$),a&&e&&(r||o||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),Bd(this,()=>{this._trapFocus();const h=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(h)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const h=`__${e}Handler`,a=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",a),delete this[h])};this[h]=a,this.addEventListener("animationend",a)}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]()}_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(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}_keydownListener(e){if(!!this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}}};/**
|
|
2883
|
+
* @license
|
|
2884
|
+
* Copyright 2017 Google LLC
|
|
2885
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2886
|
+
*/const ci=globalThis,Ve=ci.trustedTypes,qa=Ve?Ve.createPolicy("lit-html",{createHTML:s=>s}):void 0,Wa="$lit$",W=`lit$${(Math.random()+"").slice(9)}$`,Ya="?"+W,lc=`<${Ya}>`,zt=document,q0=()=>zt.createComment(""),W0=s=>s===null||typeof s!="object"&&typeof s!="function",Ga=Array.isArray,dc=s=>Ga(s)||typeof s?.[Symbol.iterator]=="function",pi=`[
|
|
2887
|
+
\f\r]`,Y0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Za=/-->/g,Ka=/>/g,bt=RegExp(`>|${pi}(?:([^\\s"'>=/]+)(${pi}*=${pi}*(?:[^
|
|
2888
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ja=/'/g,Qa=/"/g,Xa=/^(?:script|style|textarea|title)$/i,jt=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),tn=new WeakMap,yt=zt.createTreeWalker(zt,129);function en(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return qa!==void 0?qa.createHTML(t):t}const cc=(s,t)=>{const e=s.length-1,i=[];let h,a=t===2?"<svg>":"",n=Y0;for(let r=0;r<e;r++){const o=s[r];let l,c,d=-1,p=0;for(;p<o.length&&(n.lastIndex=p,c=n.exec(o),c!==null);)p=n.lastIndex,n===Y0?c[1]==="!--"?n=Za:c[1]!==void 0?n=Ka:c[2]!==void 0?(Xa.test(c[2])&&(h=RegExp("</"+c[2],"g")),n=bt):c[3]!==void 0&&(n=bt):n===bt?c[0]===">"?(n=h??Y0,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?bt:c[3]==='"'?Qa:Ja):n===Qa||n===Ja?n=bt:n===Za||n===Ka?n=Y0:(n=bt,h=void 0);const v=n===bt&&s[r+1].startsWith("/>")?" ":"";a+=n===Y0?o+lc:d>=0?(i.push(l),o.slice(0,d)+Wa+o.slice(d)+W+v):o+W+(d===-2?r:v)}return[en(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class G0{constructor({strings:t,_$litType$:e},i){let h;this.parts=[];let a=0,n=0;const r=t.length-1,o=this.parts,[l,c]=cc(t,e);if(this.el=G0.createElement(l,i),yt.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(h=yt.nextNode())!==null&&o.length<r;){if(h.nodeType===1){if(h.hasAttributes())for(const d of h.getAttributeNames())if(d.endsWith(Wa)){const p=c[n++],v=h.getAttribute(d).split(W),u=/([.?@])?(.*)/.exec(p);o.push({type:1,index:a,name:u[2],strings:v,ctor:u[1]==="."?vc:u[1]==="?"?uc:u[1]==="@"?fc:Be}),h.removeAttribute(d)}else d.startsWith(W)&&(o.push({type:6,index:a}),h.removeAttribute(d));if(Xa.test(h.tagName)){const d=h.textContent.split(W),p=d.length-1;if(p>0){h.textContent=Ve?Ve.emptyScript:"";for(let v=0;v<p;v++)h.append(d[v],q0()),yt.nextNode(),o.push({type:2,index:++a});h.append(d[p],q0())}}}else if(h.nodeType===8)if(h.data===Ya)o.push({type:2,index:a});else{let d=-1;for(;(d=h.data.indexOf(W,d+1))!==-1;)o.push({type:7,index:a}),d+=W.length-1}a++}}static createElement(t,e){const i=zt.createElement("template");return i.innerHTML=t,i}}function qt(s,t,e=s,i){if(t===jt)return t;let h=i!==void 0?e._$Co?.[i]:e._$Cl;const a=W0(t)?void 0:t._$litDirective$;return h?.constructor!==a&&(h?._$AO?.(!1),a===void 0?h=void 0:(h=new a(s),h._$AT(s,e,i)),i!==void 0?(e._$Co??=[])[i]=h:e._$Cl=h),h!==void 0&&(t=qt(s,h._$AS(s,t.values),h,i)),t}class pc{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,h=(t?.creationScope??zt).importNode(e,!0);yt.currentNode=h;let a=yt.nextNode(),n=0,r=0,o=i[0];for(;o!==void 0;){if(n===o.index){let l;o.type===2?l=new Z0(a,a.nextSibling,this,t):o.type===1?l=new o.ctor(a,o.name,o.strings,this,t):o.type===6&&(l=new gc(a,this,t)),this._$AV.push(l),o=i[++r]}n!==o?.index&&(a=yt.nextNode(),n++)}return yt.currentNode=zt,h}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z0{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,h){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=h,this._$Cv=h?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=qt(this,t,e),W0(t)?t===w||t==null||t===""?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):dc(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==w&&W0(this._$AH)?this._$AA.nextSibling.data=t:this.T(zt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,h=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=G0.createElement(en(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===h)this._$AH.p(e);else{const a=new pc(h,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=tn.get(t.strings);return e===void 0&&tn.set(t.strings,e=new G0(t)),e}k(t){Ga(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,h=0;for(const a of t)h===e.length?e.push(i=new Z0(this.S(q0()),this.S(q0()),this,this.options)):i=e[h],i._$AI(a),h++;h<e.length&&(this._$AR(i&&i._$AB.nextSibling,h),e.length=h)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Be{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,h,a){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=e,this._$AM=h,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w}_$AI(t,e=this,i,h){const a=this.strings;let n=!1;if(a===void 0)t=qt(this,t,e,0),n=!W0(t)||t!==this._$AH&&t!==jt,n&&(this._$AH=t);else{const r=t;let o,l;for(t=a[0],o=0;o<a.length-1;o++)l=qt(this,r[i+o],e,o),l===jt&&(l=this._$AH[o]),n||=!W0(l)||l!==this._$AH[o],l===w?t=w:t!==w&&(t+=(l??"")+a[o+1]),this._$AH[o]=l}n&&!h&&this.j(t)}j(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class vc extends Be{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===w?void 0:t}}class uc extends Be{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==w)}}class fc extends Be{constructor(t,e,i,h,a){super(t,e,i,h,a),this.type=5}_$AI(t,e=this){if((t=qt(this,t,e,0)??w)===jt)return;const i=this._$AH,h=t===w&&i!==w||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==w&&(i===w||h);h&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class gc{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){qt(this,t)}}const _c=ci.litHtmlPolyfillSupport;_c?.(G0,Z0),(ci.litHtmlVersions??=[]).push("3.1.2");const mc=(s,t,e)=>{const i=e?.renderBefore??t;let h=i._$litPart$;if(h===void 0){const a=e?.renderBefore??null;i._$litPart$=h=new Z0(t.insertBefore(q0(),a),a,void 0,e??{})}return h._$AI(s),h};/**
|
|
2889
|
+
* @license
|
|
2890
|
+
* Copyright 2017 Google LLC
|
|
2891
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2892
|
+
*/class Ue extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=mc(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return jt}}Ue._$litElement$=!0,Ue.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ue});const Mc=globalThis.litElementPolyfillSupport;Mc?.({LitElement:Ue}),(globalThis.litElementVersions??=[]).push("4.0.4");/**
|
|
2692
2893
|
* @license
|
|
2693
2894
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2694
2895
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2695
|
-
*/const
|
|
2896
|
+
*/const zc=f`
|
|
2696
2897
|
:host {
|
|
2697
2898
|
z-index: 200;
|
|
2698
2899
|
position: fixed;
|
|
@@ -2754,19 +2955,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2754
2955
|
* @license
|
|
2755
2956
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2756
2957
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2757
|
-
*/function
|
|
2958
|
+
*/function bc(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode}return t}/**
|
|
2758
2959
|
* @license
|
|
2759
2960
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2760
2961
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2761
|
-
*/const
|
|
2962
|
+
*/const vi={start:"top",end:"bottom"},ui={start:"left",end:"right"},hn=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),yc=s=>class extends s{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!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=bc(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,hn.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,hn.observe(i))),e){const h=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(a=>{this.__margins[a]=parseInt(h[a],10)})),this.setAttribute("dir",h.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const h=this.__isRTL,a=this.__shouldAlignStartHorizontally(e,h),n=!h&&a||h&&!a;this.style.alignItems=n?"flex-start":"flex-end";const r=this.getBoundingClientRect(),o=this.__calculatePositionInOneDimension(e,r,this.noVerticalOverlap,vi,this,i),l=this.__calculatePositionInOneDimension(e,r,this.noHorizontalOverlap,ui,this,a);Object.assign(this.style,o,l),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const h=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const a=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,h,a,this.__margins,n,this.noHorizontalOverlap,ui)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const h=Math.min(window.innerHeight,document.documentElement.clientHeight),a=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,h,this.__margins,a,this.noVerticalOverlap,vi)}__shouldAlignStart(e,i,h,a,n,r,o){const l=h-e[r?o.end:o.start]-a[o.end],c=e[r?o.start:o.end]-a[o.start],d=n?l:c,v=d>(n?c:l)||d>i;return n===v}__adjustBottomProperty(e,i,h){let a;if(e===i.end){if(i.end===vi.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(h>n&&this.__oldViewportHeight){const r=this.__oldViewportHeight-n;a=h-r}this.__oldViewportHeight=n}if(i.end===ui.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(h>n&&this.__oldViewportWidth){const r=this.__oldViewportWidth-n;a=h-r}this.__oldViewportWidth=n}}return a}__calculatePositionInOneDimension(e,i,h,a,n,r){const o=r?a.start:a.end,l=r?a.end:a.start,c=parseFloat(n.style[o]||getComputedStyle(n)[o]),d=this.__adjustBottomProperty(o,a,c),p=i[r?a.start:a.end]-e[h===r?a.end:a.start],v=d?`${d}px`:`${c+p*(r?-1:1)}px`;return{[o]:v,[l]:""}}};/**
|
|
2762
2963
|
* @license
|
|
2763
2964
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
2764
2965
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2765
|
-
*/const
|
|
2966
|
+
*/const Ac=s=>class extends yc(s){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,i=e&&e.getAttribute("dir");i&&this.setAttribute("dir",i)}_shouldCloseOnOutsideClick(e){const i=e.composedPath();return!i.includes(this.positionTarget)&&!i.includes(this)}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);i===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,i)}_setOverlayWidth(e,i){e&&i&&(this._updateOverlayWidth(),this._updatePosition())}};/**
|
|
2766
2967
|
* @license
|
|
2767
2968
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
2768
2969
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2769
|
-
*/const
|
|
2970
|
+
*/const $c=f`
|
|
2770
2971
|
#overlay {
|
|
2771
2972
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
2772
2973
|
}
|
|
@@ -2776,21 +2977,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2776
2977
|
flex-direction: column;
|
|
2777
2978
|
height: 100%;
|
|
2778
2979
|
}
|
|
2779
|
-
`;
|
|
2980
|
+
`;D0("vaadin-combo-box-overlay",[zc,$c],{moduleId:"vaadin-combo-box-overlay-styles"});class xc extends Ac(rc(ii(W1(nt)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return kt`
|
|
2780
2981
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
2781
2982
|
<div part="overlay" id="overlay">
|
|
2782
2983
|
<div part="loader"></div>
|
|
2783
2984
|
<div part="content" id="content"><slot></slot></div>
|
|
2784
2985
|
</div>
|
|
2785
|
-
`}}
|
|
2986
|
+
`}}Oe(xc);/**
|
|
2786
2987
|
* @license
|
|
2787
2988
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
2788
2989
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2789
|
-
*/function
|
|
2990
|
+
*/function Fe(s,t){return s.split(".").reduce((e,i)=>e?e[i]:void 0,t)}/**
|
|
2790
2991
|
* @license
|
|
2791
2992
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2792
2993
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2793
|
-
*/let
|
|
2994
|
+
*/let wc=0;function sn(){return wc++}/**
|
|
2794
2995
|
* @license
|
|
2795
2996
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2796
2997
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2798,11 +2999,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2798
2999
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2799
3000
|
* Code distributed by Google as part of the polymer project is also
|
|
2800
3001
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2801
|
-
*/let
|
|
3002
|
+
*/let an=0,nn=0;const Wt=[];let fi=!1;function Cc(){fi=!1;const s=Wt.length;for(let t=0;t<s;t++){const e=Wt[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Wt.splice(0,s),nn+=s}const je={after(s){return{run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t)}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s)}},qe={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s)}},on={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s)}},rn={run(s){fi||(fi=!0,queueMicrotask(()=>Cc())),Wt.push(s);const t=an;return an+=1,t},cancel(s){const t=s-nn;if(t>=0){if(!Wt[t])throw new Error(`invalid async handle: ${s}`);Wt[t]=null}}};/**
|
|
2802
3003
|
* @license
|
|
2803
3004
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2804
3005
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2805
|
-
*/const
|
|
3006
|
+
*/const We=s=>s.test(navigator.userAgent),gi=s=>s.test(navigator.platform),Ec=s=>s.test(navigator.vendor);We(/Android/u),We(/Chrome/u)&&Ec(/Google Inc/u),We(/Firefox/u),gi(/^iPad/u)||gi(/^Mac/u)&&navigator.maxTouchPoints>1,gi(/^iPhone/u);const Sc=We(/^((?!chrome|android).)*safari/iu),_i=(()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}})();/**
|
|
2806
3007
|
@license
|
|
2807
3008
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2808
3009
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2810,7 +3011,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2810
3011
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2811
3012
|
Code distributed by Google as part of the polymer project is also
|
|
2812
3013
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2813
|
-
*/const
|
|
3014
|
+
*/const K0=new Set;class N{static debounce(t,e,i){return t instanceof N?t._cancelAsync():t=new N,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,K0.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),K0.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 ln(s){K0.add(s)}function Tc(){const s=Boolean(K0.size);return K0.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),s}const J0=()=>{let s;do s=Tc();while(s)};/**
|
|
2814
3015
|
* @license
|
|
2815
3016
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
2816
3017
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2818,23 +3019,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2818
3019
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2819
3020
|
* Code distributed by Google as part of the polymer project is also
|
|
2820
3021
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2821
|
-
*/const
|
|
3022
|
+
*/const dn=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Pc=dn&&dn[1]>=8,cn=3,Ic={_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 s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e)}),this._lastVisibleIndexVal=s}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),rn)}},_getReusables(s){let t,e,i;const h=[],a=this._hiddenContentSize*this._ratio,n=this._virtualStart,r=this._virtualEnd,o=this._physicalCount;let l=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,d=this._scrollPosition,p=this._scrollBottom;for(s?(t=this._physicalStart,e=d-l):(t=this._physicalEnd,e=c-p);i=this._getPhysicalSizeIncrement(t),e-=i,!(h.length>=o||e<=a);)if(s){if(r+h.length+1>=this._virtualCount||l+i>=d-this._scrollOffset)break;h.push(t),l+=i,t=(t+1)%o}else{if(n-h.length<=0||l+this._physicalSize-i<=p)break;h.push(t),l-=i,t=t===0?o-1:t-1}return{indexes:h,physicalTop:l-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,cn,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const h=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let a=0;a<e;a++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-h)/e,i=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),on):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),rn))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(cn))},_itemsChanged(s){s.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,qe))},_iterateItems(s,t){let e,i,h,a;if(arguments.length===2&&t){for(a=0;a<t.length;a++)if(e=t[a],i=this._computeVidx(e),(h=s.call(this,e,i))!=null)return h}else{for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((h=s.call(this,e,i))!=null)return h;for(e=0;e<this._physicalStart;e++,i++)if((h=s.call(this,e,i))!=null)return h}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t]})},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!Pc&&t>0&&this._resetScrollPosition(t-s)}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop)},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(J0(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const h=this._hiddenContentSize;for(;e<s&&i<=h;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),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)},qe)},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return(this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=N.debounce(this._debouncers[s],e,t.bind(this)),ln(this._debouncers[s])}};/**
|
|
2822
3023
|
* @license
|
|
2823
3024
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2824
3025
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2825
|
-
*/const P2=1e5,qt=1e3;class th{constructor({createElements:e,updateElement:t,scrollTarget:h,scrollContainer:i,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=h,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 h=Math.floor(e/this.size*this._virtualCount);this._virtualCount-h<t?(h=this._virtualCount-(this.size-e),this._vidxOffset=this.size-this._virtualCount):h<t?e<qt?(h=e,this._vidxOffset=0):(h=qt,this._vidxOffset=e-h):this._vidxOffset=e-h,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(h),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler()}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),m0(),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 h=[];this.__getVisibleElements().forEach(i=>{i.__virtualIndex>=e&&i.__virtualIndex<=t&&(this.__updateElement(i,i.__virtualIndex,!0),h.push(i))}),this.__afterElementsUpdated(h)}_updateMetrics(e){m0();let t=0,h=0;const i=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((n,o)=>{h+=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-h,this._physicalAverageCount!==i&&(this._physicalAverage=Math.round((s*i+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),h=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return h;const i=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,o=parseFloat(t.borderTopWidth)||0;return h+i+s+n+o}__updateElement(e,t,h){e.style.paddingTop&&(e.style.paddingTop=""),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||h)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const h=t.offsetHeight;if(h===0)t.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=C.debounce(this.__placeholderClearDebouncer,F0,()=>this._resizeHandler());else{this.__elementHeightQueue.push(h),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(h=>h.__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,m0(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),m0())}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),h=document.createDocumentFragment();return t.forEach(i=>{i.style.position="absolute",h.appendChild(i),this.__resizeObserver.observe(i)}),this.elementsContainer.appendChild(h),t}_assignModels(e){const t=[];this._iterateItems((h,i)=>{const s=this._physicalItems[h];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,h,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,h=this._getReusables(!t);h.indexes.length&&(this._physicalTop=h.physicalTop,t?(this._virtualStart-=h.indexes.length,this._physicalStart-=h.indexes.length):(this._virtualStart+=h.indexes.length,this._physicalStart+=h.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,h=this.adjustedFirstVisibleIndex===0,i=this.adjustedLastVisibleIndex===this.size-1;if(e&&!h||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 h=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&&h<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():h>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=h}_hasScrolledAncestor(e,t,h){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,h)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,h)}_canScroll(e,t,h){return h>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||h<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 h=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,h)))}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),h=t*this.size;this._vidxOffset=Math.round(h-t*this._virtualCount)}else{const t=this._vidxOffset,h=qt,i=100;this._scrollTop===0?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<h&&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-h&&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()}}/**
|
|
3026
|
+
*/const Nc=1e5,mi=1e3;class pn{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:h,elementsContainer:a,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=h,this.elementsContainer=a||h,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",r=>this.__onWheel(r)),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}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this.size-this._virtualCount):i<e?t<mi?(i=t,this._vidxOffset=0):(i=mi,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){const t=this._physicalCount;this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),J0(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush(),this._physicalCount!==t&&this.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(h=>{h.__virtualIndex>=t&&h.__virtualIndex<=e&&(this.__updateElement(h,h.__virtualIndex,!0),i.push(h))}),this.__afterElementsUpdated(i)}_updateMetrics(t){J0();let e=0,i=0;const h=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((n,r)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==h&&(this._physicalAverage=Math.round((a*h+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const h=parseFloat(e.paddingBottom)||0,a=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,r=parseFloat(e.borderTopWidth)||0;return i+h+a+n+r}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=N.debounce(this.__placeholderClearDebouncer,qe,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const h=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(h.reduce((a,n)=>a+n,0)/h.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){t!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=t,this._physicalItems?(this._updateScrollerSize(),this._virtualCount=this.items.length,this._render()):(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,J0(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),J0())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,Nc)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=Boolean(t.direction==="rtl"),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(h=>{h.style.position="absolute",i.appendChild(h),this.__resizeObserver.observe(h)}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,h)=>{const a=this._physicalItems[i];a.hidden=h>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=h+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),e.push(a))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,h){h.style.transform=`translateY(${e})`}toggleScrollListener(){}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=N.debounce(this.__fixInvalidItemPositioningDebouncer,je.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=N.debounce(this.__scrollReorderDebouncer,je.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,h=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!h){const a=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=N.debounce(this.__debouncerWheelAnimationFrame,qe,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=N.debounce(this._debouncerIgnoreNewWheel,je.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return!0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)))}else super._increasePoolIfNeeded(t)}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),h=e.find(r=>r.contains(this.elementsContainer.getRootNode().activeElement)||r.contains(this.scrollTarget.getRootNode().activeElement))||e[0];if(!h)return;const a=h.__virtualIndex-t,n=e.indexOf(h)-a;if(n>0)for(let r=0;r<n;r++)this.elementsContainer.appendChild(e[r]);else if(n<0)for(let r=e.length+n;r<e.length;r++)this.elementsContainer.insertBefore(e[r],e[0]);if(Sc){const{transform:r}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=r})}}_adjustVirtualIndexOffset(t){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const e=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),i=e*this.size;this._vidxOffset=Math.round(i-e*this._virtualCount)}else{const e=this._vidxOffset,i=mi,h=100;this._scrollTop===0?(this._vidxOffset=0,e!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,h),super.scrollToIndex(this.firstVisibleIndex+(e-this._vidxOffset)));const a=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=a,e!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<a&&(this._vidxOffset+=Math.min(a-this._vidxOffset,h),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-e)))}}}Object.setPrototypeOf(pn.prototype,Ic);class kc{constructor(t){this.__adapter=new pn(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}/**
|
|
2826
3027
|
* @license
|
|
2827
3028
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
2828
3029
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2829
|
-
*/const
|
|
3030
|
+
*/const Yt=class{toString(){return""}};/**
|
|
2830
3031
|
* @license
|
|
2831
3032
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
2832
3033
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2833
|
-
*/const
|
|
3034
|
+
*/const Oc=s=>class extends s{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 e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,h)=>i+h)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${sn()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling(),this.__virtualizer=new kc({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector})}requestContentUpdate(){this.__virtualizer&&this.__virtualizer.update()}scrollIntoView(e){if(!(this.opened&&e>=0))return;const i=this._visibleItemsCount();let h=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),h=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(h=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,h));const a=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!a||e!==a.index)return;const n=a.getBoundingClientRect(),r=this.getBoundingClientRect(),o=n.bottom-r.bottom+this._viewportTotalPaddingBottom;o>0&&(this.scrollTop+=o)}_isItemSelected(e,i,h){return e instanceof Yt?!1:h&&e!==void 0&&i!==void 0?Fe(h,e)===Fe(h,i):e===i}__itemsChanged(e){this.__virtualizer&&e&&(this.__virtualizer.size=e.length,this.__virtualizer.flush(),this.requestContentUpdate())}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&this.requestContentUpdate()}__selectedItemChanged(){this.requestContentUpdate()}__focusedIndexChanged(e,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const h=this.items[i],a=this.focusedIndex,n=this._isItemSelected(h,this.selectedItem,this.itemIdPath);e.setProperties({item:h,index:i,label:this.getItemLabel(h),selected:n,renderer:this.renderer,focused:!this.loading&&a===i}),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),h instanceof Yt&&this.__requestItemByIndex(i)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,h=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||h&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e,currentScrollerPos:this._oldScrollerPosition}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
2834
3035
|
* @license
|
|
2835
3036
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
2836
3037
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2837
|
-
*/class
|
|
3038
|
+
*/class Lc extends Oc(nt){static get is(){return"vaadin-combo-box-scroller"}static get template(){return kt`
|
|
2838
3039
|
<style>
|
|
2839
3040
|
:host {
|
|
2840
3041
|
display: block;
|
|
@@ -2861,136 +3062,136 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2861
3062
|
<div id="selector">
|
|
2862
3063
|
<slot></slot>
|
|
2863
3064
|
</div>
|
|
2864
|
-
`}}
|
|
3065
|
+
`}}Oe(Lc);/**
|
|
2865
3066
|
* @license
|
|
2866
3067
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2867
3068
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2868
|
-
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
3069
|
+
*/window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){As()};let Mi;const vn=new Set,Rc=s=>class extends ii(s){static finalize(){super.finalize();const{is:e}=this;e&&!vn.has(e)&&(window.Vaadin.registrations.push(this),vn.add(e),window.Vaadin.developmentModeCallback&&(Mi=N.debounce(Mi,on,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ln(Mi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2869
3070
|
* @license
|
|
2870
3071
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2871
3072
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2872
|
-
*/function
|
|
3073
|
+
*/function Hc(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
|
|
2873
3074
|
* @license
|
|
2874
3075
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
2875
3076
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2876
|
-
*/class
|
|
3077
|
+
*/class Dc{constructor(t,e){this.slot=t,this.callback=e,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 t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],h=[];t.length&&(e=t.filter(a=>!this._storedNodes.includes(a))),this._storedNodes.length&&this._storedNodes.forEach((a,n)=>{const r=t.indexOf(a);r===-1?i.push(a):r!==n&&h.push(a)}),(e.length||i.length||h.length)&&this.callback({addedNodes:e,movedNodes:h,removedNodes:i}),this._storedNodes=t}}/**
|
|
2877
3078
|
* @license
|
|
2878
3079
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2879
3080
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2880
|
-
*/class
|
|
3081
|
+
*/class zi extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${sn()}`}constructor(t,e,i,h={}){super();const{initializer:a,multiple:n,observe:r,useUniqueId:o}=h;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof r=="boolean"?r:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=a,n&&(this.nodes=[]),o&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let h=this.defaultNode;return!h&&i&&(h=document.createElement(i),h instanceof Element&&(e!==""&&h.setAttribute("slot",e),this.node=h,this.defaultNode=h)),h&&t.appendChild(h),h}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Dc(i,({addedNodes:h,removedNodes:a})=>{const n=this.multiple?this.nodes:[this.node],r=h.filter(o=>!Hc(o)&&!n.includes(o));a.length&&(this.nodes=n.filter(o=>!a.includes(o)),a.forEach(o=>{this.teardownNode(o)})),r&&r.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...r].filter(o=>o!==this.defaultNode),r.forEach(o=>{this.initAddedNode(o)})):(this.node&&this.node.remove(),this.node=r[0],this.initAddedNode(this.node)))})}}/**
|
|
2881
3082
|
* @license
|
|
2882
3083
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
2883
3084
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2884
|
-
*/class
|
|
3085
|
+
*/class Vc extends zi{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
2885
3086
|
* @license
|
|
2886
3087
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2887
3088
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2888
|
-
*/
|
|
3089
|
+
*/const un=m(s=>class extends s{get _keyboardActive(){return Zd()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
|
|
2889
3090
|
* @license
|
|
2890
3091
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2891
3092
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2892
|
-
*/const
|
|
3093
|
+
*/const fn=m(s=>class extends s{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2893
3094
|
* @license
|
|
2894
3095
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2895
3096
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2896
|
-
*/const
|
|
3097
|
+
*/const Bc=s=>class extends fn(s){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
|
|
2897
3098
|
* @license
|
|
2898
3099
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2899
3100
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2900
|
-
*/const
|
|
3101
|
+
*/const Uc=m(s=>class extends un(Bc(s)){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(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
|
|
2901
3102
|
* @license
|
|
2902
3103
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2903
3104
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2904
|
-
*/const
|
|
3105
|
+
*/const bi=m(s=>class extends s{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
|
|
2905
3106
|
* @license
|
|
2906
3107
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2907
3108
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2908
|
-
*/const
|
|
3109
|
+
*/const yi=new WeakMap;function Fc(s){return yi.has(s)||yi.set(s,new Set),yi.get(s)}function jc(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const qc=m(s=>class extends s{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=Fc(e);this.slotStyles.forEach(h=>{i.has(h)||(jc(h,e),i.add(h))})}});/**
|
|
2909
3110
|
* @license
|
|
2910
3111
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2911
3112
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2912
|
-
*/const
|
|
3113
|
+
*/const Ai=m(s=>class extends s{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(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){!this.inputElement||(this._inputElementValue=e??"")}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i)}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
|
|
2913
3114
|
* @license
|
|
2914
3115
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2915
3116
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2916
|
-
*/const
|
|
3117
|
+
*/const Wc=s=>class extends Ai(bi(s)){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",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),_i||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&!!this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
2917
3118
|
* @license
|
|
2918
3119
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2919
3120
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2920
|
-
*/
|
|
3121
|
+
*/function $i(s){return s?new Set(s.split(" ")):new Set}function Ye(s){return s?[...s].join(" "):""}function gn(s,t,e){const i=$i(s.getAttribute(t));i.add(e),s.setAttribute(t,Ye(i))}function Yc(s,t,e){const i=$i(s.getAttribute(t));if(i.delete(e),i.size===0){s.removeAttribute(t);return}s.setAttribute(t,Ye(i))}/**
|
|
2921
3122
|
* @license
|
|
2922
3123
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
2923
3124
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2924
|
-
*/const
|
|
3125
|
+
*/const xi=new Map;function wi(s){return xi.has(s)||xi.set(s,new WeakMap),xi.get(s)}function _n(s,t){!s||s.removeAttribute(t)}function mn(s,t){if(!s||!t)return;const e=wi(t);if(e.has(s))return;const i=$i(s.getAttribute(t));e.set(s,new Set(i))}function Gc(s,t){if(!s||!t)return;const e=wi(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):gn(s,t,Ye(i)),e.delete(s)}function Ci(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:h,fromUser:a}=e,n=wi(t),r=n.get(s);if(!a&&!!r){h&&r.delete(h),i&&r.add(i);return}a&&(r?i||n.delete(s):mn(s,t),_n(s,t)),Yc(s,t,h);const o=i||Ye(r);o&&gn(s,t,o)}function Zc(s,t){mn(s,t),_n(s,t)}/**
|
|
2925
3126
|
* @license
|
|
2926
3127
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2927
3128
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2928
|
-
*/class
|
|
3129
|
+
*/class Kc{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,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(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){!this.__target||(t?(Zc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Gc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Ci(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Ci(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Ci(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){!this.__target||["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}}/**
|
|
2929
3130
|
* @license
|
|
2930
3131
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2931
3132
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2932
|
-
*/const
|
|
3133
|
+
*/const Ei=m(s=>typeof s.prototype.addController=="function"?s:class extends s{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
|
|
2933
3134
|
* @license
|
|
2934
3135
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
2935
3136
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2936
|
-
*/class
|
|
3137
|
+
*/class Si extends zi{constructor(t,e,i,h={}){super(t,e,i,{...h,useUniqueId:!0})}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const h=i.target,a=h===this.node;i.type==="attributes"?a&&this.__updateNodeId(h):(a||h.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
|
|
2937
3138
|
* @license
|
|
2938
3139
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2939
3140
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2940
|
-
*/class
|
|
3141
|
+
*/class Jc extends Si{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,h=Boolean(i&&e&&e.trim()!=="");t&&(t.textContent=h?e:"",t.hidden=!h,h?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}/**
|
|
2941
3142
|
* @license
|
|
2942
3143
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2943
3144
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2944
|
-
*/class
|
|
3145
|
+
*/class Qc extends Si{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
2945
3146
|
* @license
|
|
2946
3147
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2947
3148
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2948
|
-
*/class
|
|
3149
|
+
*/class Xc extends Si{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
2949
3150
|
* @license
|
|
2950
3151
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2951
3152
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2952
|
-
*/const
|
|
3153
|
+
*/const tp=m(s=>class extends Ei(s){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Xc(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
|
|
2953
3154
|
* @license
|
|
2954
3155
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2955
3156
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2956
|
-
*/const
|
|
3157
|
+
*/const Ti=m(s=>class extends s{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
|
|
2957
3158
|
* @license
|
|
2958
3159
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2959
3160
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2960
|
-
*/const
|
|
3161
|
+
*/const ep=s=>class extends Ti(tp(Ei(s))){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 Kc(this),this._helperController=new Qc(this),this._errorController=new Jc(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:h}=e.detail;this.__labelChanged(i,h)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:h}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,h)})}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(e,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
2961
3162
|
* @license
|
|
2962
3163
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2963
3164
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2964
|
-
*/const
|
|
3165
|
+
*/const ip=m(s=>class extends s{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(e){e&&(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(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,h)=>{this._delegateAttribute(i,e[h])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,h)=>{this._delegateProperty(i,e[h])})}_delegateAttribute(e,i){!this.stateTarget||(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e))}_delegateProperty(e,i){!this.stateTarget||(this.stateTarget[e]=i)}});/**
|
|
2965
3166
|
* @license
|
|
2966
3167
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2967
3168
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2968
|
-
*/const
|
|
3169
|
+
*/const Mn=m(s=>class extends ip(Ti(Ai(s))){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(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const h=this._hasValidConstraints(i),a=this.__previousHasConstraints&&!h;(this._hasValue||this.invalid)&&h?this.validate():a&&this._setInvalid(!1),this.__previousHasConstraints=h}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||e===0}});/**
|
|
2969
3170
|
* @license
|
|
2970
3171
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2971
3172
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2972
|
-
*/const
|
|
3173
|
+
*/const hp=s=>class extends qc(Uc(Mn(ep(Wc(bi(s)))))){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[`
|
|
2973
3174
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
2974
3175
|
font: inherit;
|
|
2975
3176
|
color: inherit;
|
|
2976
3177
|
}
|
|
2977
|
-
`]}_onFocus(
|
|
3178
|
+
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=N.debounce(this._preventInputDebouncer,je.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(i){console.error(i)}}};/**
|
|
2978
3179
|
* @license
|
|
2979
3180
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2980
3181
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2981
|
-
*/class
|
|
3182
|
+
*/class sp extends zi{constructor(t,e){super(t,"input","input",{initializer:(i,h)=>{h.value&&(i.value=h.value),h.type&&i.setAttribute("type",h.type),i.id=this.defaultId,typeof e=="function"&&e(i)},useUniqueId:!0})}}/**
|
|
2982
3183
|
* @license
|
|
2983
3184
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2984
3185
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2985
|
-
*/class
|
|
3186
|
+
*/class ap{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
|
|
2986
3187
|
* @license
|
|
2987
3188
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2988
3189
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2989
|
-
*/const
|
|
3190
|
+
*/const np=s=>class extends Mn(s){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
|
|
2990
3191
|
* @license
|
|
2991
3192
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
2992
3193
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2993
|
-
*/const
|
|
3194
|
+
*/const op=f`
|
|
2994
3195
|
[part='clear-button'] {
|
|
2995
3196
|
display: none;
|
|
2996
3197
|
cursor: default;
|
|
@@ -3007,7 +3208,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3007
3208
|
* @license
|
|
3008
3209
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3009
3210
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3010
|
-
*/const
|
|
3211
|
+
*/const rp=f`
|
|
3011
3212
|
:host {
|
|
3012
3213
|
display: inline-flex;
|
|
3013
3214
|
outline: none;
|
|
@@ -3045,7 +3246,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3045
3246
|
* @license
|
|
3046
3247
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3047
3248
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3048
|
-
*/const
|
|
3249
|
+
*/const lp=f`
|
|
3049
3250
|
[class$='container'] {
|
|
3050
3251
|
display: flex;
|
|
3051
3252
|
flex-direction: column;
|
|
@@ -3057,31 +3258,31 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3057
3258
|
* @license
|
|
3058
3259
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3059
3260
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3060
|
-
*/const
|
|
3261
|
+
*/const dp=[rp,lp,op];/**
|
|
3061
3262
|
* @license
|
|
3062
3263
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3063
3264
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3064
|
-
*/const
|
|
3265
|
+
*/const cp=s=>class extends s{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 Yt},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{const i=e.detail.index,h=e.detail.currentScrollerPos,a=Math.floor(this.pageSize*1.5);if(!this._shouldSkipIndex(i,a,h)&&i!==void 0){const n=this._getPageForIndex(i);this._shouldLoadPage(n)&&this._loadPage(n)}})}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,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(e){e&&this._shouldLoadPage(0)&&this._loadPage(0)}_shouldSkipIndex(e,i,h){return h!==0&&e>=h-i&&e<=h+i}_shouldLoadPage(e){if(!this.filteredItems||this._forceNextRequest)return this._forceNextRequest=!1,!0;const i=this.filteredItems[e*this.pageSize];return i!==void 0?i instanceof Yt:this.size===void 0}_loadPage(e){if(this._pendingRequests[e]||!this.dataProvider)return;const i={page:e,pageSize:this.pageSize,filter:this.filter},h=(a,n)=>{if(this._pendingRequests[e]!==h)return;const r=this.filteredItems?[...this.filteredItems]:[];r.splice(i.page*i.pageSize,a.length,...a),this.filteredItems=r,!this.opened&&!this._isInputFocused()&&this._commitValue(),n!==void 0&&(this.size=n),delete this._pendingRequests[e],Object.keys(this._pendingRequests).length===0&&(this.loading=!1)};this._pendingRequests[e]=h,this.loading=!0,this.dataProvider(i,h)}_getPageForIndex(e){return Math.floor(e/this.pageSize)}clearCache(){if(!this.dataProvider)return;this._pendingRequests={};const e=[];for(let i=0;i<(this.size||0);i++)e.push(this.__placeHolder);this.filteredItems=e,this._shouldFetchData()?(this._forceNextRequest=!1,this._loadPage(0)):this._forceNextRequest=!0}_sizeChanged(e=0){const i=(this.filteredItems||[]).slice(0,e);for(let h=0;h<e;h++)i[h]=i[h]!==void 0?i[h]:this.__placeHolder;this.filteredItems=i,this._flushPendingRequests(e)}_pageSizeChanged(e,i){if(Math.floor(e)!==e||e<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.clearCache()}_dataProviderChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i}),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported");this.dataProvider&&!this.filteredItems&&(this.filteredItems=[])}_warnDataProviderValue(e,i){if(e&&i!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const h=this.__getItemIndexByValue(this.filteredItems,i);(h<0||!this._getItemLabel(this.filteredItems[h]))&&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(e){if(this._pendingRequests){const i=Math.ceil(e/this.pageSize);Object.entries(this._pendingRequests).forEach(([h,a])=>{parseInt(h)>=i&&a([],e)})}}};/**
|
|
3065
3266
|
* @license
|
|
3066
3267
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3067
3268
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3068
|
-
*/const
|
|
3269
|
+
*/const pp=s=>class extends s{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:h}=i;if(this.__initialClasses||(this.__initialClasses=new Set(h)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(r=>!this.__initialClasses.has(r));n.length>0&&h.remove(...n)}const a=typeof e=="string"?e.split(" "):[];a.length>0&&h.add(...a),this.__previousClasses=a}};/**
|
|
3069
3270
|
* @license
|
|
3070
3271
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3071
3272
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3072
|
-
*/function
|
|
3273
|
+
*/function vp(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
|
|
3073
3274
|
* @license
|
|
3074
3275
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3075
3276
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3076
|
-
*/class
|
|
3277
|
+
*/class up{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
|
|
3077
3278
|
* @license
|
|
3078
3279
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3079
3280
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3080
|
-
*/function rh(a){return a!=null}function lh(a,e){return a.findIndex(t=>t instanceof J?!1:e(t))}const un=a=>class extends cn(e1(a1(ah(Kt(Jt(ih(a))))))){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 h=this._nativeInput;h&&(h.autocomplete="off",h.autocapitalize="off",h.setAttribute("role","combobox"),h.setAttribute("aria-autocomplete","list"),h.setAttribute("aria-expanded",!!this.opened),h.setAttribute("spellcheck","false"),h.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),pn(this),this.addController(new vn(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,h,i){super._propertiesChanged(t,h,i),h.filter!==void 0&&this._filterChanged(h.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",h=>h.preventDefault()),t.addEventListener("opened-changed",h=>{this._overlayOpened=h.detail.value}),this._overlayElement=t}_initScroller(t){const h=`${this._tagNamePrefix}-scroller`,i=this._overlayElement;i.renderer=n=>{n.firstChild||n.appendChild(document.createElement(h))},i.requestContentUpdate();const s=i.querySelector(h);s.owner=t||this,s.getItemLabel=this._getItemLabel.bind(this),s.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=s}_updateScroller(t,h,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?h:[],opened:i,loading:s,selectedItem:n,itemIdPath:o,focusedIndex:r,renderer:l,theme:d}))}_openedOrItemsChanged(t,h,i){this._overlayOpened=!!(t&&(i||h&&h.length))}_overlayOpenedChanged(t,h){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):h&&this.filteredItems&&this.filteredItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,h){h!==void 0&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&D2(this.inputElement)}_updateActiveDescendant(t){const h=this._nativeInput;if(!h)return;const i=this._getItemElements().find(s=>s.index===t);i?h.setAttribute("aria-activedescendant",i.id):h.removeAttribute("aria-activedescendant")}_openedChanged(t,h){if(h===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 h=t&&this.itemLabelPath?D0(this.itemLabelPath,t):void 0;return h==null&&(h=t?t.toString():""),h}_getItemValue(t){let h=t&&this.itemValuePath?D0(this.itemValuePath,t):void 0;return h===void 0&&(h=t?t.toString():""),h}_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,h){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,h)}_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 h=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;if(!this.allowCustomValue&&h){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",h=>h.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],h=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!h){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&&h?this.value=this._getItemValue(h):this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||""}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(t){const h=this._inputElementValue,i={};this.filter===h?this._filterChanged(this.filter):i.filter=h,!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 h=this._getItemValue(t);if(this.value!==h&&(this.value=h,this.value!==h))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,h){t===""&&h===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,h){this._ensureItemsOrDataProvider(()=>{this.items=h}),t?this.filteredItems=t.slice(0):h&&(this.filteredItems=null)}_filteredItemsChanged(t,h){const i=h?h[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,h){return t&&t.filter(s=>(h=h?h.toString().toLowerCase():"",this._getItemLabel(s).toString().toLowerCase().indexOf(h)>-1))}_selectItemForValue(t){const h=this.__getItemIndexByValue(this.filteredItems,t),i=this.selectedItem;h>=0?this.selectedItem=this.filteredItems[h]: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,h){return!t||!rh(h)?-1:lh(t,i=>this._getItemValue(i)===h)}__getItemIndexByLabel(t,h){return!t||!h?-1:lh(t,i=>this._getItemLabel(i).toString().toLowerCase()===h.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())}};/**
|
|
3281
|
+
*/function zn(s){return s!=null}function bn(s,t){return s.findIndex(e=>e instanceof Yt?!1:t(e))}const fp=s=>class extends pp(Ei(Ti(un(bi(Ai(fn(s))))))){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"},_dropdownItems:{type:Array},_closeOnBlurIsPrevented:Boolean,_scroller:Object,_overlayOpened:{type:Boolean,observer:"_overlayOpenedChanged"}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading)","_updateScroller(_scroller, _dropdownItems, 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(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.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 e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),vp(this),this.addController(new up(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){!this._scroller||(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,i,h){super._propertiesChanged(e,i,h),i.filter!==void 0&&this._filterChanged(i.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value}),this._overlayElement=e}_initScroller(e){const i=`${this._tagNamePrefix}-scroller`,h=this._overlayElement;h.renderer=n=>{n.firstChild||n.appendChild(document.createElement(i))},h.requestContentUpdate();const a=h.querySelector(i);a.owner=e||this,a.getItemLabel=this._getItemLabel.bind(this),a.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=a}_updateScroller(e,i,h,a,n,r,o,l,c){e&&(h&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:h?i:[],opened:h,loading:a,selectedItem:n,itemIdPath:r,focusedIndex:o,renderer:l,theme:c}))}_openedOrItemsChanged(e,i,h){this._overlayOpened=!!(e&&(h||i&&i.length))}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Fa(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const h=this._getItemElements().find(a=>a.index===e);h?i.setAttribute("aria-activedescendant",h.id):i.removeAttribute("aria-activedescendant")}_openedChanged(e,i){if(i===void 0)return;e?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),!this._isInputFocused()&&!_i&&this.inputElement&&this.inputElement.focus(),this._overlayElement.restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this._isInputFocused()&&this.setAttribute("focus-ring",""));const h=this._nativeInput;h&&(h.setAttribute("aria-expanded",!!e),e?h.setAttribute("aria-controls",this._scroller.id):h.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="Tab"?this._overlayElement.restoreFocusOnClose=!1:e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let i=e&&this.itemLabelPath?Fe(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?Fe(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.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 e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&!!this.value&&(e.stopPropagation(),this._onClearAction()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&!!this.value&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{_i&&!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 e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),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 e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const h=this._inputElementValue;this._lastCustomValue=h;const a=new CustomEvent("custom-value-set",{detail:h,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(a),a.defaultPrevented||(this.value=h)}else!this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||""}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(e){const i=this._inputElementValue,h={};this.filter===i?this._filterChanged(this.filter):h.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(h.opened=!0),this.setProperties(h)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):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(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,i){e===""&&i===void 0||(zn(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),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(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null)}_filteredItemsChanged(e,i){this._setDropdownItems(e);const h=i?i[this._focusedIndex]:null,a=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&a>=0&&(this.selectedItem=e[a]);const n=this.__getItemIndexByValue(e,this._getItemValue(h));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(e,i){return e&&e.filter(a=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(a).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),h=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&h===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){this._dropdownItems=e}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){!this._scroller||this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,i){return!e||!zn(i)?-1:bn(e,h=>this._getItemValue(h)===i)}__getItemIndexByLabel(e,i){return!e||!i?-1:bn(e,h=>this._getItemLabel(h).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Yt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}this._closeOrCommit()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
|
|
3081
3282
|
* @license
|
|
3082
3283
|
* Copyright (c) 2015 - 2023 Vaadin Ltd.
|
|
3083
3284
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3084
|
-
*/
|
|
3285
|
+
*/D0("vaadin-combo-box",dp,{moduleId:"vaadin-combo-box-styles"});class gp extends cp(fp(np(hp(W1(Rc(nt)))))){static get is(){return"vaadin-combo-box"}static get template(){return kt`
|
|
3085
3286
|
<style>
|
|
3086
3287
|
:host([opened]) {
|
|
3087
3288
|
pointer-events: auto;
|
|
@@ -3127,16 +3328,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3127
3328
|
></vaadin-combo-box-overlay>
|
|
3128
3329
|
|
|
3129
3330
|
<slot name="tooltip"></slot>
|
|
3130
|
-
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new
|
|
3331
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new sp(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new ap(this.inputElement,this._labelController)),this._tooltipController=new Vc(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}Oe(gp);class yn extends Et{static formAssociated=!0;static styles=hh;constructor(){super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,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={...Et.shadowRootOptions,mode:"open"};_onChange(t){const e=t.composedPath()[0].selectedItem;this.value=typeof e=="string"?e:e?.value||e?.label,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const i={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:i,bubbles:!0,composed:!0}))}filterChanged(t){const e=t.detail.value;if(this.itemValuePath=e,!e){this.filteredData=this.data;return}this.filteredData=this.data?.filter(i=>typeof i=="string"?i?.toLowerCase().includes(e.toLowerCase()):i?.keywords?.some(h=>h?.toLowerCase().includes(e.toLowerCase()))||i?.label?.toLowerCase().includes(e.toLowerCase())),this.requestUpdate()}updated(t){t.has("data")}handleRender(){const t=h=>{const a=h?.keywords?.length>2;return e0`
|
|
3131
3332
|
<div class="custom">
|
|
3132
3333
|
<cas-text variant="body2" class="label">
|
|
3133
|
-
${typeof
|
|
3334
|
+
${typeof h=="string"?h:h.label}
|
|
3134
3335
|
</cas-text>
|
|
3135
|
-
${typeof
|
|
3136
|
-
${
|
|
3336
|
+
${typeof h=="string"?"":e0`<cas-text variant="footnote2" class="description"><h5 className="keywords">
|
|
3337
|
+
${a?h?.keywords?.slice(0,2).join(", ")+",...":h?.keywords?.join(", ")}
|
|
3137
3338
|
</h5></cas-text>`}
|
|
3138
3339
|
</div>
|
|
3139
|
-
`},
|
|
3340
|
+
`},e=document.createElement("style");e.id="idssss",e.textContent=hh,document.head.insertAdjacentElement("afterbegin",e);const i=this.isSelectError?"flat-info":this.secondaryIcon;return e0`
|
|
3140
3341
|
<vaadin-combo-box
|
|
3141
3342
|
?clear-button-visible="${this.clearButtonVisible}"
|
|
3142
3343
|
?required="${this.required}"
|
|
@@ -3149,12 +3350,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3149
3350
|
helper-text="${this.helperText}"
|
|
3150
3351
|
item-value-path="value"
|
|
3151
3352
|
item-label-path="label"
|
|
3152
|
-
${
|
|
3353
|
+
${v2(t,[])}
|
|
3153
3354
|
>
|
|
3154
|
-
${this.secondaryIcon?
|
|
3355
|
+
${this.secondaryIcon?e0` <cas-icon slot="prefix" name="${i}" size="20" />`:""}
|
|
3155
3356
|
</vaadin-combo-box>
|
|
3156
3357
|
${""}
|
|
3157
|
-
`}render(){return this.handleRender()}}customElements.get("cas-select")||customElements.define("cas-select",
|
|
3358
|
+
`}render(){return this.handleRender()}}customElements.get("cas-select")||customElements.define("cas-select",yn),e0`<svg width="124" height="129" viewBox="0 0 124 129" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3158
3359
|
<path d="M16.9864 19.462C3.58478 33.871 1.48396 59.2606 7.71552 77.8967C13.194 92.9143 23.2289 107.698 37.3345 116.88C51.4401 126.063 68.7706 131.105 85.3644 128.16C101.958 125.215 117.319 113.441 121.979 97.3152C126.639 81.1893 118.634 61.6893 102.973 55.5063C93.282 51.6812 81.5611 52.8059 73.2723 46.4653C61.4859 37.5385 61.6386 17.5821 48.6626 10.47C38.284 4.75961 25.0296 10.796 16.9864 19.462Z" fill="#FFF8E1"/>
|
|
3159
3360
|
<g clip-path="url(#clip0_1680_4431)">
|
|
3160
3361
|
<path d="M63.9598 0H61.2267V15.8515H63.9598V0Z" fill="#79858E"/>
|
|
@@ -3174,4 +3375,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3174
3375
|
</clipPath>
|
|
3175
3376
|
</defs>
|
|
3176
3377
|
</svg>
|
|
3177
|
-
`,
|
|
3378
|
+
`,At.CasSelect=yn,Object.defineProperties(At,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|