@everymatrix/lottery-ticket 1.65.0 → 1.65.2
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-bullet_3.cjs.entry.js +4237 -16965
- package/dist/cjs/lottery-ticket.cjs.js +1 -1
- package/dist/collection/components/lottery-ticket/lottery-ticket.js +10 -3
- package/dist/collection/utils/locale.utils.js +6 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottery-bullet_3.entry.js +4244 -16972
- package/dist/esm/lottery-ticket.js +1 -1
- package/dist/lottery-ticket/lottery-ticket.esm.js +1 -1
- package/dist/lottery-ticket/p-32d34eb4.entry.js +5614 -0
- package/dist/types/components/lottery-ticket/lottery-ticket.d.ts +2 -1
- package/dist/types/components/lottery-ticket/lottery-ticket.types.d.ts +2 -0
- package/package.json +1 -1
- package/dist/lottery-ticket/p-fc58bdf1.entry.js +0 -2725
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.dev.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,2725 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-04eb942c.js";const s=class{constructor(i){t(this,i),this.bulletEvent=e(this,"lotteryBulletSelection",7),this.select=()=>{this.selectable&&(this.isSelected=!this.isSelected,this.bulletEvent.emit({value:this.value,selected:this.isSelected}))},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)},this.value="0",this.selectable=!0,this.isSelected=!1,this.isBonus=!1,this.clientStyling="",this.clientStylingUrlContent="",this.limitStylingAppends=!1}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return i("div",{key:"a21cbee8f556bfbbe9f97be5f44bfc08b6f24dd6",class:"Circle "+(this.selectable?"":"Disabled")+(this.isSelected?"Selected":"")+(this.isBonus?" Bonus":""),onClick:()=>this.select(),ref:t=>this.stylingContainer=t},this.value)}};s.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:var(--emw--button-text-color, #000);display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-50, #F1F1F1) 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--button-border-color, #00958f)}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-gray-100, #D4D4D4);border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.Bonus{background:var(--emw--color-error, #FF3D00)}';const o=class{constructor(i){t(this,i),this.gridFilledEvent=e(this,"gridFilled",7),this.gridDirtyEvent=e(this,"gridDirty",7),this.gridClearAllEvent=e(this,"gridClearAllEvent",7),this.selectedCounter=0,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)},this.ticketId=void 0,this.totalNumbers=0,this.gameId=void 0,this.maximumAllowed=7,this.minimumAllowed=3,this.numberRange=void 0,this.selectable=!0,this.selectedNumbers="",this.secondaryNumbers="",this.displaySelected=!1,this.language="en",this.gridIndex=void 0,this.gridType="",this.clientStyling="",this.clientStylingUrlContent="",this.highNumber=47,this.lowNumber=1,this.selectionType="mainSelection",this.partialQuickpickAvailable=!1,this.numbers=[],this.bonusNumbers=[],this.limitStylingAppends=!1}connectedCallback(){let t=[];this.selectedNumbers.length>0&&(t=this.selectedNumbers.split(","),this.selectedCounter=t.length),this.secondaryNumbers.length>0&&(this.bonusNumbers=this.secondaryNumbers.split(",").map((t=>({number:t,selected:!0,selectable:this.selectable})))),this.displaySelected?t.forEach((t=>{this.numbers.push({number:t,selected:!0,selectable:this.selectable})})):Array.from({length:this.highNumber-this.lowNumber+1},((t,e)=>this.lowNumber+e)).map((t=>t.toString())).forEach((e=>{this.numbers.push({number:e,selected:t.indexOf(e)>=0,selectable:this.selectedCounter!=this.maximumAllowed&&this.selectable})}))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}shuffleArray(t){const e=[];for(;t.length>0;){const i=Math.floor(Math.random()*t.length);e.push(t.splice(i,1)[0])}return e}lotteryBulletSelectionHandler(t){this.numbers=this.numbers.map((e=>({number:e.number,selected:e.number==t.detail.value?t.detail.selected:e.selected,selectable:e.selectable}))),t.detail.selected?(this.selectedCounter+=1,this.selectedCounter>=this.minimumAllowed&&this.selectedCounter<=this.maximumAllowed&&(this.numbers=this.numbers.map((t=>this.selectedCounter===this.maximumAllowed?{number:t.number,selected:t.selected,selectable:!!t.selected}:{number:t.number,selected:t.selected,selectable:!0})),JSON.parse(this.numberRange).includes(this.selectedCounter)?this.gridFilledEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}):this.gridDirtyEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}))):(this.selectedCounter-=1,this.numbers=this.numbers.map((t=>({number:t.number,selected:t.selected,selectable:!0}))),this.selectedCounter<this.minimumAllowed?this.gridDirtyEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}):this.gridFilledEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}),0===this.selectedCounter&&this.gridClearAllEvent.emit(this.gridIndex))}async resetSelectionHandler(t){t.detail&&t.detail.ticketId==this.ticketId&&t.detail.index===this.gridIndex&&(this.selectedCounter=0,this.numbers=this.numbers.map((t=>({number:t.number,selected:!1,selectable:this.selectable}))),this.gridDirtyEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:[]}))}async autoSelectionHandler(t){if(t.detail&&t.detail.ticketId==this.ticketId&&t.detail.index===this.gridIndex){this.resetSelectionHandler(t);let e=Array.from({length:this.highNumber-this.lowNumber+1},((t,e)=>this.lowNumber+e));e=this.shuffleArray(e),e=e.slice(0,this.minimumAllowed),this.numbers=this.numbers.map((t=>({number:t.number,selected:e.indexOf(parseInt(t.number,10))>=0,selectable:!!this.partialQuickpickAvailable&&e.indexOf(parseInt(t.number,10))>=0}))),this.gridFilledEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}),this.selectedCounter=this.minimumAllowed}}render(){return i("div",{key:"8ad436904a126e6bee036c7372cf45c075022e5f",class:"GridContainer",ref:t=>this.stylingContainer=t},i("div",{key:"5a8818209485f0808a99978910f6f26473dd6f59",class:"ticket"===this.gridType?"Grid TicketGrid":"Grid"},this.numbers.map((t=>i("div",null,i("lottery-bullet",{value:t.number,selectable:t.selectable,"is-selected":t.selected,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))),this.bonusNumbers.length?this.bonusNumbers.map((t=>i("div",null,i("lottery-bullet",{value:t.number,selectable:t.selectable,"is-selected":t.selected,"is-bonus":!0,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))):""))}};o.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.GridContainer{display:flex;flex-direction:column;max-width:1200px}.Grid{margin-top:10px 0 10px 0;display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.Grid.TicketGrid{gap:5px}';const r=["ro","en","hr"],n={en:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",multiplier:"Multiplier",numberOfDraws:"Number of draws",wagerPerDraw:"Wager per draw",resetButton:"Reset",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"},ro:{loading:"Se incarca, va rugam asteptati ...",error:"A fost o eroare in timp ce asteptam datele",multiplier:"Multiplicator",numberOfDraws:"Numarul de extrageri",wagerPerDraw:"Pariul per extragere",resetButton:"Reseteaza",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"},fr:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",multiplier:"Multiplier",numberOfDraws:"Number of draws",wagerPerDraw:"Wager per draw",resetButton:"Reset",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"},ar:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",multiplier:"Multiplier",numberOfDraws:"Number of draws",wagerPerDraw:"Wager per draw",resetButton:"Reset",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"},hr:{loading:"Učitavanje, molimo pričekajte ...",error:"Došlo je do pogreške prilikom pokušaja dohvaćanja podataka",multiplier:"Multiplikator",numberOfDraws:"Broj izvlačenja",wagerPerDraw:"Ulog po izvlačenju",resetButton:"Resetiraj",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"}},a=(t,e)=>{const i=e;return n[void 0!==i&&r.includes(i)?i:"en"][t]};
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
5
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6
|
-
*/
|
|
7
|
-
function l(t,e="24.5.10"){Object.defineProperty(t,"version",{get:()=>e});const i=customElements.get(t.is);if(i){const e=i.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12
|
-
*/class h extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}l(h);
|
|
13
|
-
/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright 2019 Google LLC
|
|
16
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/
|
|
18
|
-
const c=globalThis,u=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),p=new WeakMap;class m{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)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(u&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=p.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&p.set(e,t))}return t}toString(){return this.cssText}}const f=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new m(i,t,d)},v=(t,e)=>{if(u)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),s=c.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=i.cssText,t.appendChild(e)}},b=u?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new m("string"==typeof t?t:t+"",void 0,d))(e)})(t):t
|
|
19
|
-
/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2017 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/,{is:g,defineProperty:y,getOwnPropertyDescriptor:w,getOwnPropertyNames:x,getOwnPropertySymbols:_,getPrototypeOf:k}=Object,A=globalThis,C=A.trustedTypes,S=C?C.emptyScript:"",T=A.reactiveElementPolyfillSupport,z={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>!g(t,e),P={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:N};Symbol.metadata??=Symbol("metadata"),A.litPropertyMetadata??=new WeakMap;class E 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=P){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&y(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=w(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return s?.call(this)},set(e){const r=s?.call(this);o.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??P}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=k(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...x(t),..._(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}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 t of i)e.unshift(b(t))}else void 0!==t&&e.push(b(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?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),void 0!==this.renderRoot&&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 v(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),s=this.constructor._$Eu(t,i);if(void 0!==s&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:z).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,s=i._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=i.getPropertyOptions(s),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:z;this._$Em=s,this[s]=o.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??N)(this[t],e))return;this.P(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&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[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.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((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E.elementProperties=new Map,E.finalized=new Map,T?.({ReactiveElement:E}),(A.reactiveElementVersions??=[]).push("2.0.4");
|
|
24
|
-
/**
|
|
25
|
-
* @license
|
|
26
|
-
* Copyright 2017 Google LLC
|
|
27
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/
|
|
29
|
-
const I=globalThis,O=I.trustedTypes,M=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",D=`lit$${Math.random().toFixed(9).slice(2)}$`,j="?"+D,F=`<${j}>`,U=document,L=()=>U.createComment(""),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,q="[ \t\n\f\r]",G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,Y=/>/g,$=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/g,Z=/"/g,K=/^(?:script|style|textarea|title)$/i,V=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),X=new WeakMap,tt=U.createTreeWalker(U,129);function et(t,e){if(!W(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==M?M.createHTML(e):e}const it=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=G;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===G?"!--"===l[1]?n=H:void 0!==l[1]?n=Y:void 0!==l[2]?(K.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=$):void 0!==l[3]&&(n=$):n===$?">"===l[0]?(n=o??G,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?$:'"'===l[3]?Z:J):n===Z||n===J?n=$:n===H||n===Y?n=G:(n=$,o=void 0);const u=n===$&&t[e+1].startsWith("/>")?" ":"";r+=n===G?i+F:h>=0?(s.push(a),i.slice(0,h)+B+i.slice(h)+D+u):i+D+(-2===h?e:u)}return[et(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};class st{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=it(t,e);if(this.el=st.createElement(l,i),tt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=tt.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(B)){const e=h[r++],i=s.getAttribute(t).split(D),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?lt:"?"===n[1]?ht:"@"===n[1]?ct:at}),s.removeAttribute(t)}else t.startsWith(D)&&(a.push({type:6,index:o}),s.removeAttribute(t));if(K.test(s.tagName)){const t=s.textContent.split(D),e=t.length-1;if(e>0){s.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],L()),tt.nextNode(),a.push({type:2,index:++o});s.append(t[e],L())}}}else if(8===s.nodeType)if(s.data===j)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(D,t+1));)a.push({type:7,index:o}),t+=D.length-1}o++}}static createElement(t,e){const i=U.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,s){if(e===V)return e;let o=void 0!==s?i._$Co?.[s]:i._$Cl;const r=R(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,i,s)),void 0!==s?(i._$Co??=[])[s]=o:i._$Cl=o),void 0!==o&&(e=ot(t,o._$AS(t,e.values),o,s)),e}class rt{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,s=(t?.creationScope??U).importNode(e,!0);tt.currentNode=s;let o=tt.nextNode(),r=0,n=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new nt(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new ut(o,this,t)),this._$AV.push(e),a=i[++n]}r!==a?.index&&(o=tt.nextNode(),r++)}return tt.currentNode=U,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),R(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==V&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>W(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Q&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=st.createElement(et(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new rt(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new st(t)),e}k(t){W(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new nt(this.O(L()),this.O(L()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class at{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=ot(this,t,e,0),r=!R(t)||t!==this._$AH&&t!==V,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=ot(this,s[i+n],e,n),a===V&&(a=this._$AH[n]),r||=!R(a)||a!==this._$AH[n],a===Q?t=Q:t!==Q&&(t+=(a??"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class lt extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}}class ht extends at{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}}class ct extends at{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=ot(this,t,e,0)??Q)===V)return;const i=this._$AH,s=t===Q&&i!==Q||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==Q&&(i===Q||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ut{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){ot(this,t)}}const dt=I.litHtmlPolyfillSupport;dt?.(st,nt),(I.litHtmlVersions??=[]).push("3.2.1");
|
|
30
|
-
/**
|
|
31
|
-
* @license
|
|
32
|
-
* Copyright 2017 Google LLC
|
|
33
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/
|
|
35
|
-
class pt extends E{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=((t,e,i)=>{const s=i?.renderBefore??e;let o=s._$litPart$;if(void 0===o){const t=i?.renderBefore??null;s._$litPart$=o=new nt(e.insertBefore(L(),t),t,void 0,i??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return V}}pt._$litElement$=!0,pt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:pt});const mt=globalThis.litElementPolyfillSupport;mt?.({LitElement:pt}),(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
36
|
-
/**
|
|
37
|
-
* @license
|
|
38
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
39
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
40
|
-
*/
|
|
41
|
-
const ft=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),"theme"===t&&this._set_theme(i)}}
|
|
42
|
-
/**
|
|
43
|
-
* @license
|
|
44
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
45
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
46
|
-
*/,vt=[],bt=new Set,gt=new Set;function yt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function wt(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function xt(t){return t.map((t=>t.cssText)).join("\n")}const _t="vaadin-themable-mixin-style";function kt(t){t.prototype instanceof pt?t.elementStyles=t.finalizeStyles(t.styles):t.prototype._template.content.getElementById(_t).textContent=xt(t.getStylesForThis()),gt.forEach((e=>{const i=customElements.get(e);i!==t&&i.prototype instanceof t&&kt(i)}))}function At(t,e,i={}){e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof m||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,i):vt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId}),t&>.forEach((i=>{if(wt(t,i)&&function(t){return yt(customElements.get(t))}(i)){const t=customElements.get(i);!function(t,e){const i=t.__themes;return!(!i||!e)&&i.some((t=>t.styles.some((t=>e.some((e=>e.cssText===t.cssText))))))}(t,e)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),kt(t),function(t){bt.forEach((e=>{const i=e.deref();i instanceof t?function(t){if(!t.shadowRoot)return;const e=t.constructor;t instanceof pt?([...t.shadowRoot.querySelectorAll("style")].forEach((t=>t.remove())),v(t.shadowRoot,e.elementStyles)):t.shadowRoot.getElementById(_t).textContent=e.prototype._template.content.getElementById(_t).textContent}(i):i||bt.delete(e)}))}(t)}}))}function Ct(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():vt}function St(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function Tt(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=Ct().find((e=>e.moduleId===t));i?e.push(...Tt(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function zt(t){const e=`${t}-default-theme`,i=Ct().filter((i=>i.moduleId!==e&&wt(i.themeFor,t))).map((t=>({...t,styles:[...Tt(t),...t.styles],includePriority:St(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:Ct().filter((t=>t.moduleId===e))}const Nt=t=>class extends(ft(t)){constructor(){super(),bt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&>.add(this.is),this.elementStyles)return;const t=this.prototype._template;t&&!yt(this)&&function(t,e){const i=document.createElement("style");i.id=_t,i.textContent=xt(t),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...[t].flat(1/0),...e]:e}static getStylesForThis(){const e=t.__themes||[],i=Object.getPrototypeOf(this.prototype);this.__themes=[...e,...(i?i.constructor.__themes:[])||[],...zt(this.is)];const s=this.__themes.flatMap((t=>t.styles));return s.filter(((t,e)=>e===s.lastIndexOf(t)))}}
|
|
47
|
-
/**
|
|
48
|
-
* @license
|
|
49
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
50
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
51
|
-
*/,Pt=(t,...e)=>{((t,...e)=>{const i=document.createElement("style");i.id=t,i.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)})(`lumo-${t}`,e)};Pt("color-props",f`
|
|
52
|
-
:host {
|
|
53
|
-
/* Base (background) */
|
|
54
|
-
--lumo-base-color: #fff;
|
|
55
|
-
|
|
56
|
-
/* Tint */
|
|
57
|
-
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
58
|
-
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
59
|
-
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
60
|
-
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
61
|
-
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
62
|
-
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
63
|
-
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
64
|
-
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
65
|
-
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
66
|
-
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
67
|
-
--lumo-tint: #fff;
|
|
68
|
-
|
|
69
|
-
/* Shade */
|
|
70
|
-
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
71
|
-
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
72
|
-
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
73
|
-
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
74
|
-
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
75
|
-
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
76
|
-
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
77
|
-
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
78
|
-
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
79
|
-
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
80
|
-
--lumo-shade: hsl(214, 35%, 15%);
|
|
81
|
-
|
|
82
|
-
/* Contrast */
|
|
83
|
-
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
84
|
-
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
85
|
-
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
86
|
-
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
87
|
-
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
88
|
-
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
89
|
-
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
90
|
-
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
91
|
-
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
92
|
-
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
93
|
-
--lumo-contrast: var(--lumo-shade);
|
|
94
|
-
|
|
95
|
-
/* Text */
|
|
96
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
97
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
98
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
99
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
100
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
101
|
-
|
|
102
|
-
/* Primary */
|
|
103
|
-
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
104
|
-
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
105
|
-
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
106
|
-
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
107
|
-
--lumo-primary-contrast-color: #fff;
|
|
108
|
-
|
|
109
|
-
/* Error */
|
|
110
|
-
--lumo-error-color: hsl(3, 85%, 48%);
|
|
111
|
-
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
112
|
-
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
113
|
-
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
114
|
-
--lumo-error-contrast-color: #fff;
|
|
115
|
-
|
|
116
|
-
/* Success */
|
|
117
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
118
|
-
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
119
|
-
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
120
|
-
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
121
|
-
--lumo-success-contrast-color: #fff;
|
|
122
|
-
|
|
123
|
-
/* Warning */
|
|
124
|
-
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
125
|
-
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
126
|
-
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
127
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/* forced-colors mode adjustments */
|
|
131
|
-
@media (forced-colors: active) {
|
|
132
|
-
html {
|
|
133
|
-
--lumo-disabled-text-color: GrayText;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
`),At("",f`
|
|
137
|
-
[theme~='dark'] {
|
|
138
|
-
/* Base (background) */
|
|
139
|
-
--lumo-base-color: hsl(214, 35%, 21%);
|
|
140
|
-
|
|
141
|
-
/* Tint */
|
|
142
|
-
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
143
|
-
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
144
|
-
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
145
|
-
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
146
|
-
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
147
|
-
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
148
|
-
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
149
|
-
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
150
|
-
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
151
|
-
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
152
|
-
--lumo-tint: hsl(214, 100%, 98%);
|
|
153
|
-
|
|
154
|
-
/* Shade */
|
|
155
|
-
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
156
|
-
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
157
|
-
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
158
|
-
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
159
|
-
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
160
|
-
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
161
|
-
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
162
|
-
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
163
|
-
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
164
|
-
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
165
|
-
--lumo-shade: hsl(214, 33%, 13%);
|
|
166
|
-
|
|
167
|
-
/* Contrast */
|
|
168
|
-
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
169
|
-
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
170
|
-
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
171
|
-
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
172
|
-
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
173
|
-
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
174
|
-
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
175
|
-
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
176
|
-
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
177
|
-
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
178
|
-
--lumo-contrast: var(--lumo-tint);
|
|
179
|
-
|
|
180
|
-
/* Text */
|
|
181
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
182
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
183
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
184
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
185
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
186
|
-
|
|
187
|
-
/* Primary */
|
|
188
|
-
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
189
|
-
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
190
|
-
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
191
|
-
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
192
|
-
--lumo-primary-contrast-color: #fff;
|
|
193
|
-
|
|
194
|
-
/* Error */
|
|
195
|
-
--lumo-error-color: hsl(3, 79%, 49%);
|
|
196
|
-
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
197
|
-
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
198
|
-
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
199
|
-
|
|
200
|
-
/* Success */
|
|
201
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
202
|
-
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
203
|
-
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
204
|
-
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
205
|
-
|
|
206
|
-
/* Warning */
|
|
207
|
-
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
208
|
-
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
209
|
-
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
210
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
html {
|
|
214
|
-
color: var(--lumo-body-text-color);
|
|
215
|
-
background-color: var(--lumo-base-color);
|
|
216
|
-
color-scheme: light;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
[theme~='dark'] {
|
|
220
|
-
color: var(--lumo-body-text-color);
|
|
221
|
-
background-color: var(--lumo-base-color);
|
|
222
|
-
color-scheme: dark;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
h1,
|
|
226
|
-
h2,
|
|
227
|
-
h3,
|
|
228
|
-
h4,
|
|
229
|
-
h5,
|
|
230
|
-
h6 {
|
|
231
|
-
color: var(--lumo-header-text-color);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
a:where(:any-link) {
|
|
235
|
-
color: var(--lumo-primary-text-color);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
a:not(:any-link) {
|
|
239
|
-
color: var(--lumo-disabled-text-color);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
blockquote {
|
|
243
|
-
color: var(--lumo-secondary-text-color);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
code,
|
|
247
|
-
pre {
|
|
248
|
-
background-color: var(--lumo-contrast-10pct);
|
|
249
|
-
border-radius: var(--lumo-border-radius-m);
|
|
250
|
-
}
|
|
251
|
-
pre code {
|
|
252
|
-
background: transparent;
|
|
253
|
-
}
|
|
254
|
-
`,{moduleId:"lumo-color"}),Pt("sizing-props",f`
|
|
255
|
-
:host {
|
|
256
|
-
--lumo-size-xs: 1.625rem;
|
|
257
|
-
--lumo-size-s: 1.875rem;
|
|
258
|
-
--lumo-size-m: 2.25rem;
|
|
259
|
-
--lumo-size-l: 2.75rem;
|
|
260
|
-
--lumo-size-xl: 3.5rem;
|
|
261
|
-
|
|
262
|
-
/* Icons */
|
|
263
|
-
--lumo-icon-size-s: 1.25em;
|
|
264
|
-
--lumo-icon-size-m: 1.5em;
|
|
265
|
-
--lumo-icon-size-l: 2.25em;
|
|
266
|
-
/* For backwards compatibility */
|
|
267
|
-
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
268
|
-
}
|
|
269
|
-
`),f`
|
|
270
|
-
html {
|
|
271
|
-
/* Button */
|
|
272
|
-
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
273
|
-
--vaadin-button-border: none;
|
|
274
|
-
--vaadin-button-border-radius: var(--lumo-border-radius-m);
|
|
275
|
-
--vaadin-button-font-size: var(--lumo-font-size-m);
|
|
276
|
-
--vaadin-button-font-weight: 500;
|
|
277
|
-
--vaadin-button-height: var(--lumo-size-m);
|
|
278
|
-
--vaadin-button-margin: var(--lumo-space-xs) 0;
|
|
279
|
-
--vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
|
|
280
|
-
--vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
|
|
281
|
-
--vaadin-button-text-color: var(--lumo-primary-text-color);
|
|
282
|
-
--vaadin-button-primary-background: var(--lumo-primary-color);
|
|
283
|
-
--vaadin-button-primary-border: none;
|
|
284
|
-
--vaadin-button-primary-font-weight: 600;
|
|
285
|
-
--vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
|
|
286
|
-
--vaadin-button-tertiary-background: transparent !important;
|
|
287
|
-
--vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
|
|
288
|
-
--vaadin-button-tertiary-font-weight: 500;
|
|
289
|
-
--vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
|
|
290
|
-
/* Checkbox */
|
|
291
|
-
--vaadin-checkbox-background: var(--lumo-contrast-20pct);
|
|
292
|
-
--vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
|
|
293
|
-
--vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
|
|
294
|
-
--vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
|
|
295
|
-
--vaadin-checkbox-checkmark-char-indeterminate: '';
|
|
296
|
-
--vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
|
|
297
|
-
--vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
|
|
298
|
-
--vaadin-checkbox-label-color: var(--lumo-body-text-color);
|
|
299
|
-
--vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
|
|
300
|
-
--vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
|
|
301
|
-
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
302
|
-
--vaadin-checkbox-disabled-checkmark-color: var(--lumo-contrast-30pct);
|
|
303
|
-
--vaadin-checkbox-disabled-background: var(--lumo-contrast-10pct);
|
|
304
|
-
/* Radio button */
|
|
305
|
-
--vaadin-radio-button-background: var(--lumo-contrast-20pct);
|
|
306
|
-
--vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
|
|
307
|
-
--vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
|
|
308
|
-
--vaadin-radio-button-dot-size: 3px;
|
|
309
|
-
--vaadin-radio-button-label-color: var(--lumo-body-text-color);
|
|
310
|
-
--vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
|
|
311
|
-
--vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
|
|
312
|
-
var(--lumo-space-xs);
|
|
313
|
-
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
314
|
-
--vaadin-radio-button-disabled-background: var(--lumo-contrast-10pct);
|
|
315
|
-
--vaadin-radio-button-disabled-dot-color: var(--lumo-contrast-30pct);
|
|
316
|
-
--vaadin-selection-color: var(--lumo-primary-color);
|
|
317
|
-
--vaadin-selection-color-text: var(--lumo-primary-text-color);
|
|
318
|
-
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
319
|
-
--vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
|
|
320
|
-
--vaadin-focus-ring-width: 2px;
|
|
321
|
-
/* Label */
|
|
322
|
-
--vaadin-input-field-label-color: var(--lumo-secondary-text-color);
|
|
323
|
-
--vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
|
|
324
|
-
--vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
|
|
325
|
-
--vaadin-input-field-label-font-size: var(--lumo-font-size-s);
|
|
326
|
-
--vaadin-input-field-label-font-weight: 500;
|
|
327
|
-
/* Helper */
|
|
328
|
-
--vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
|
|
329
|
-
--vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
|
|
330
|
-
--vaadin-input-field-helper-font-weight: 400;
|
|
331
|
-
--vaadin-input-field-helper-spacing: 0.4em;
|
|
332
|
-
/* Error message */
|
|
333
|
-
--vaadin-input-field-error-color: var(--lumo-error-text-color);
|
|
334
|
-
--vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
|
|
335
|
-
--vaadin-input-field-error-font-weight: 400;
|
|
336
|
-
/* Input field */
|
|
337
|
-
--vaadin-input-field-background: var(--lumo-contrast-10pct);
|
|
338
|
-
--vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
|
|
339
|
-
--vaadin-input-field-icon-size: var(--lumo-icon-size-m);
|
|
340
|
-
--vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
|
|
341
|
-
--vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
|
|
342
|
-
--vaadin-input-field-disabled-background: var(--lumo-contrast-5pct);
|
|
343
|
-
--vaadin-input-field-disabled-value-color: var(--lumo-disabled-text-color);
|
|
344
|
-
--vaadin-input-field-height: var(--lumo-size-m);
|
|
345
|
-
--vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
|
|
346
|
-
--vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
|
|
347
|
-
--vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
|
|
348
|
-
--vaadin-input-field-value-color: var(--lumo-body-text-color);
|
|
349
|
-
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
350
|
-
--vaadin-input-field-value-font-weight: 500;
|
|
351
|
-
}
|
|
352
|
-
`,Pt("style-props",f`
|
|
353
|
-
:host {
|
|
354
|
-
/* Border radius */
|
|
355
|
-
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
356
|
-
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
357
|
-
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
358
|
-
|
|
359
|
-
/* Shadow */
|
|
360
|
-
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
361
|
-
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
362
|
-
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
363
|
-
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
364
|
-
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
365
|
-
|
|
366
|
-
/* Clickable element cursor */
|
|
367
|
-
--lumo-clickable-cursor: default;
|
|
368
|
-
}
|
|
369
|
-
`);
|
|
370
|
-
/**
|
|
371
|
-
* @license
|
|
372
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
373
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
374
|
-
*/
|
|
375
|
-
const Et=f`
|
|
376
|
-
:host {
|
|
377
|
-
/* prettier-ignore */
|
|
378
|
-
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
379
|
-
|
|
380
|
-
/* Font sizes */
|
|
381
|
-
--lumo-font-size-xxs: 0.75rem;
|
|
382
|
-
--lumo-font-size-xs: 0.8125rem;
|
|
383
|
-
--lumo-font-size-s: 0.875rem;
|
|
384
|
-
--lumo-font-size-m: 1rem;
|
|
385
|
-
--lumo-font-size-l: 1.125rem;
|
|
386
|
-
--lumo-font-size-xl: 1.375rem;
|
|
387
|
-
--lumo-font-size-xxl: 1.75rem;
|
|
388
|
-
--lumo-font-size-xxxl: 2.5rem;
|
|
389
|
-
|
|
390
|
-
/* Line heights */
|
|
391
|
-
--lumo-line-height-xs: 1.25;
|
|
392
|
-
--lumo-line-height-s: 1.375;
|
|
393
|
-
--lumo-line-height-m: 1.625;
|
|
394
|
-
}
|
|
395
|
-
`;At("",f`
|
|
396
|
-
body,
|
|
397
|
-
:host {
|
|
398
|
-
font-family: var(--lumo-font-family);
|
|
399
|
-
font-size: var(--lumo-font-size-m);
|
|
400
|
-
line-height: var(--lumo-line-height-m);
|
|
401
|
-
-webkit-text-size-adjust: 100%;
|
|
402
|
-
-webkit-font-smoothing: antialiased;
|
|
403
|
-
-moz-osx-font-smoothing: grayscale;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
small,
|
|
407
|
-
[theme~='font-size-s'] {
|
|
408
|
-
font-size: var(--lumo-font-size-s);
|
|
409
|
-
line-height: var(--lumo-line-height-s);
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
[theme~='font-size-xs'] {
|
|
413
|
-
font-size: var(--lumo-font-size-xs);
|
|
414
|
-
line-height: var(--lumo-line-height-xs);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
:where(h1, h2, h3, h4, h5, h6) {
|
|
418
|
-
font-weight: 600;
|
|
419
|
-
line-height: var(--lumo-line-height-xs);
|
|
420
|
-
margin-block: 0;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
:where(h1) {
|
|
424
|
-
font-size: var(--lumo-font-size-xxxl);
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
:where(h2) {
|
|
428
|
-
font-size: var(--lumo-font-size-xxl);
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
:where(h3) {
|
|
432
|
-
font-size: var(--lumo-font-size-xl);
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
:where(h4) {
|
|
436
|
-
font-size: var(--lumo-font-size-l);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
:where(h5) {
|
|
440
|
-
font-size: var(--lumo-font-size-m);
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
:where(h6) {
|
|
444
|
-
font-size: var(--lumo-font-size-xs);
|
|
445
|
-
text-transform: uppercase;
|
|
446
|
-
letter-spacing: 0.03em;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
p,
|
|
450
|
-
blockquote {
|
|
451
|
-
margin-top: 0.5em;
|
|
452
|
-
margin-bottom: 0.75em;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
a {
|
|
456
|
-
text-decoration: none;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
a:where(:any-link):hover {
|
|
460
|
-
text-decoration: underline;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
hr {
|
|
464
|
-
display: block;
|
|
465
|
-
align-self: stretch;
|
|
466
|
-
height: 1px;
|
|
467
|
-
border: 0;
|
|
468
|
-
padding: 0;
|
|
469
|
-
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
470
|
-
background-color: var(--lumo-contrast-10pct);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
blockquote {
|
|
474
|
-
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
b,
|
|
478
|
-
strong {
|
|
479
|
-
font-weight: 600;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/* RTL specific styles */
|
|
483
|
-
blockquote[dir='rtl'] {
|
|
484
|
-
border-left: none;
|
|
485
|
-
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
486
|
-
}
|
|
487
|
-
`,{moduleId:"lumo-typography"}),Pt("typography-props",Et),At("vaadin-input-container",f`
|
|
488
|
-
:host {
|
|
489
|
-
background: var(--_background);
|
|
490
|
-
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
491
|
-
font-weight: var(--vaadin-input-field-value-font-weight, 500);
|
|
492
|
-
line-height: 1;
|
|
493
|
-
position: relative;
|
|
494
|
-
cursor: text;
|
|
495
|
-
box-sizing: border-box;
|
|
496
|
-
border-radius:
|
|
497
|
-
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
|
|
498
|
-
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
499
|
-
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
500
|
-
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
|
|
501
|
-
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
|
|
502
|
-
/* Fallback */
|
|
503
|
-
--_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
|
|
504
|
-
--_input-height: var(--lumo-text-field-size, var(--lumo-size-m));
|
|
505
|
-
/* Default values */
|
|
506
|
-
--_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
|
|
507
|
-
--_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
|
|
508
|
-
--_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
|
|
509
|
-
--_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
|
|
510
|
-
--_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
|
|
511
|
-
--_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
|
|
512
|
-
--_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
|
|
513
|
-
--_disabled-background: var(--vaadin-input-field-disabled-background, var(--lumo-contrast-5pct));
|
|
514
|
-
--_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
:host([dir='rtl']) {
|
|
518
|
-
border-radius:
|
|
519
|
-
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
520
|
-
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
521
|
-
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
522
|
-
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
|
|
523
|
-
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/* Used for hover and activation effects */
|
|
527
|
-
:host::after {
|
|
528
|
-
content: '';
|
|
529
|
-
position: absolute;
|
|
530
|
-
inset: 0;
|
|
531
|
-
border-radius: inherit;
|
|
532
|
-
pointer-events: none;
|
|
533
|
-
background: var(--_hover-highlight);
|
|
534
|
-
opacity: 0;
|
|
535
|
-
transition:
|
|
536
|
-
transform 0.15s,
|
|
537
|
-
opacity 0.2s;
|
|
538
|
-
transform-origin: 100% 0;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
::slotted(:not([slot$='fix'])) {
|
|
542
|
-
cursor: inherit;
|
|
543
|
-
min-height: var(--vaadin-input-field-height, var(--_input-height));
|
|
544
|
-
padding: 0 0.25em;
|
|
545
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
546
|
-
-webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
547
|
-
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
/* Read-only */
|
|
551
|
-
:host([readonly]) {
|
|
552
|
-
color: var(--lumo-secondary-text-color);
|
|
553
|
-
background-color: transparent;
|
|
554
|
-
cursor: default;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
:host([readonly])::after {
|
|
558
|
-
background-color: transparent;
|
|
559
|
-
opacity: 1;
|
|
560
|
-
border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/* Disabled */
|
|
564
|
-
:host([disabled]) {
|
|
565
|
-
background: var(--_disabled-background);
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
:host([disabled]) ::slotted(:not([slot$='fix'])) {
|
|
569
|
-
-webkit-text-fill-color: var(--_disabled-value-color);
|
|
570
|
-
color: var(--_disabled-value-color);
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
/* Invalid */
|
|
574
|
-
:host([invalid]) {
|
|
575
|
-
background: var(--_invalid-background);
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
:host([invalid]:not([readonly]))::after {
|
|
579
|
-
background: var(--_invalid-hover-highlight);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/* Slotted icons */
|
|
583
|
-
::slotted(vaadin-icon) {
|
|
584
|
-
color: var(--_icon-color);
|
|
585
|
-
width: var(--_icon-size);
|
|
586
|
-
height: var(--_icon-size);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
590
|
-
::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
591
|
-
padding: 0.25em;
|
|
592
|
-
box-sizing: border-box !important;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
/* Text align */
|
|
596
|
-
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
597
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
@-moz-document url-prefix() {
|
|
601
|
-
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
602
|
-
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
607
|
-
text-align: start;
|
|
608
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
:host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
|
|
612
|
-
text-align: center;
|
|
613
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
617
|
-
text-align: end;
|
|
618
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
@-moz-document url-prefix() {
|
|
622
|
-
/* Firefox is smart enough to align overflowing text to right */
|
|
623
|
-
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
624
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
@-moz-document url-prefix() {
|
|
629
|
-
/* Firefox is smart enough to align overflowing text to right */
|
|
630
|
-
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
631
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
/* RTL specific styles */
|
|
636
|
-
:host([dir='rtl'])::after {
|
|
637
|
-
transform-origin: 0% 0;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
641
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
:host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
645
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
649
|
-
--_lumo-text-field-overflow-mask-image: none;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
@-moz-document url-prefix() {
|
|
653
|
-
/* Firefox is smart enough to align overflowing text to right */
|
|
654
|
-
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
655
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
@-moz-document url-prefix() {
|
|
660
|
-
/* Firefox is smart enough to align overflowing text to right */
|
|
661
|
-
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
662
|
-
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
`,{moduleId:"lumo-input-container"}),Pt("font-icons",f`
|
|
666
|
-
@font-face {
|
|
667
|
-
font-family: 'lumo-icons';
|
|
668
|
-
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==)
|
|
669
|
-
format('woff');
|
|
670
|
-
font-weight: normal;
|
|
671
|
-
font-style: normal;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
html {
|
|
675
|
-
--lumo-icons-align-center: '\\ea01';
|
|
676
|
-
--lumo-icons-align-left: '\\ea02';
|
|
677
|
-
--lumo-icons-align-right: '\\ea03';
|
|
678
|
-
--lumo-icons-angle-down: '\\ea04';
|
|
679
|
-
--lumo-icons-angle-left: '\\ea05';
|
|
680
|
-
--lumo-icons-angle-right: '\\ea06';
|
|
681
|
-
--lumo-icons-angle-up: '\\ea07';
|
|
682
|
-
--lumo-icons-arrow-down: '\\ea08';
|
|
683
|
-
--lumo-icons-arrow-left: '\\ea09';
|
|
684
|
-
--lumo-icons-arrow-right: '\\ea0a';
|
|
685
|
-
--lumo-icons-arrow-up: '\\ea0b';
|
|
686
|
-
--lumo-icons-bar-chart: '\\ea0c';
|
|
687
|
-
--lumo-icons-bell: '\\ea0d';
|
|
688
|
-
--lumo-icons-calendar: '\\ea0e';
|
|
689
|
-
--lumo-icons-checkmark: '\\ea0f';
|
|
690
|
-
--lumo-icons-chevron-down: '\\ea10';
|
|
691
|
-
--lumo-icons-chevron-left: '\\ea11';
|
|
692
|
-
--lumo-icons-chevron-right: '\\ea12';
|
|
693
|
-
--lumo-icons-chevron-up: '\\ea13';
|
|
694
|
-
--lumo-icons-clock: '\\ea14';
|
|
695
|
-
--lumo-icons-cog: '\\ea15';
|
|
696
|
-
--lumo-icons-cross: '\\ea16';
|
|
697
|
-
--lumo-icons-download: '\\ea17';
|
|
698
|
-
--lumo-icons-dropdown: '\\ea18';
|
|
699
|
-
--lumo-icons-edit: '\\ea19';
|
|
700
|
-
--lumo-icons-error: '\\ea1a';
|
|
701
|
-
--lumo-icons-eye: '\\ea1b';
|
|
702
|
-
--lumo-icons-eye-disabled: '\\ea1c';
|
|
703
|
-
--lumo-icons-menu: '\\ea1d';
|
|
704
|
-
--lumo-icons-minus: '\\ea1e';
|
|
705
|
-
--lumo-icons-ordered-list: '\\ea1f';
|
|
706
|
-
--lumo-icons-phone: '\\ea20';
|
|
707
|
-
--lumo-icons-photo: '\\ea21';
|
|
708
|
-
--lumo-icons-play: '\\ea22';
|
|
709
|
-
--lumo-icons-plus: '\\ea23';
|
|
710
|
-
--lumo-icons-redo: '\\ea24';
|
|
711
|
-
--lumo-icons-reload: '\\ea25';
|
|
712
|
-
--lumo-icons-search: '\\ea26';
|
|
713
|
-
--lumo-icons-undo: '\\ea27';
|
|
714
|
-
--lumo-icons-unordered-list: '\\ea28';
|
|
715
|
-
--lumo-icons-upload: '\\ea29';
|
|
716
|
-
--lumo-icons-user: '\\ea2a';
|
|
717
|
-
}
|
|
718
|
-
`),Pt("spacing-props",f`
|
|
719
|
-
:host {
|
|
720
|
-
/* Square */
|
|
721
|
-
--lumo-space-xs: 0.25rem;
|
|
722
|
-
--lumo-space-s: 0.5rem;
|
|
723
|
-
--lumo-space-m: 1rem;
|
|
724
|
-
--lumo-space-l: 1.5rem;
|
|
725
|
-
--lumo-space-xl: 2.5rem;
|
|
726
|
-
|
|
727
|
-
/* Wide */
|
|
728
|
-
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
729
|
-
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
730
|
-
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
731
|
-
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
732
|
-
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
733
|
-
|
|
734
|
-
/* Tall */
|
|
735
|
-
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
736
|
-
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
737
|
-
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
738
|
-
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
739
|
-
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
740
|
-
}
|
|
741
|
-
`);const It=f`
|
|
742
|
-
:host {
|
|
743
|
-
display: flex;
|
|
744
|
-
align-items: center;
|
|
745
|
-
box-sizing: border-box;
|
|
746
|
-
font-family: var(--lumo-font-family);
|
|
747
|
-
font-size: var(--lumo-font-size-m);
|
|
748
|
-
line-height: var(--lumo-line-height-xs);
|
|
749
|
-
padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
|
|
750
|
-
var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
751
|
-
min-height: var(--lumo-size-m);
|
|
752
|
-
outline: none;
|
|
753
|
-
border-radius: var(--lumo-border-radius-m);
|
|
754
|
-
cursor: var(--lumo-clickable-cursor);
|
|
755
|
-
-webkit-font-smoothing: antialiased;
|
|
756
|
-
-moz-osx-font-smoothing: grayscale;
|
|
757
|
-
-webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
|
|
758
|
-
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
759
|
-
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
760
|
-
--_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
/* Checkmark */
|
|
764
|
-
[part='checkmark']::before {
|
|
765
|
-
display: var(--_lumo-item-selected-icon-display, none);
|
|
766
|
-
content: var(--lumo-icons-checkmark);
|
|
767
|
-
font-family: lumo-icons;
|
|
768
|
-
font-size: var(--lumo-icon-size-m);
|
|
769
|
-
line-height: 1;
|
|
770
|
-
font-weight: normal;
|
|
771
|
-
width: 1em;
|
|
772
|
-
height: 1em;
|
|
773
|
-
margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
|
|
774
|
-
color: var(--_selection-color-text);
|
|
775
|
-
flex: none;
|
|
776
|
-
opacity: 0;
|
|
777
|
-
transition:
|
|
778
|
-
transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2),
|
|
779
|
-
opacity 0.1s;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
:host([selected]) [part='checkmark']::before {
|
|
783
|
-
opacity: 1;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
:host([active]:not([selected])) [part='checkmark']::before {
|
|
787
|
-
transform: scale(0.8);
|
|
788
|
-
opacity: 0;
|
|
789
|
-
transition-duration: 0s;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
[part='content'] {
|
|
793
|
-
flex: auto;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
/* Disabled */
|
|
797
|
-
:host([disabled]) {
|
|
798
|
-
color: var(--lumo-disabled-text-color);
|
|
799
|
-
cursor: default;
|
|
800
|
-
pointer-events: none;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
/* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
|
|
804
|
-
@media (any-hover: hover) {
|
|
805
|
-
:host(:hover:not([disabled])) {
|
|
806
|
-
background-color: var(--lumo-primary-color-10pct);
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
:host([focus-ring]:not([disabled])) {
|
|
811
|
-
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
/* RTL specific styles */
|
|
815
|
-
:host([dir='rtl']) {
|
|
816
|
-
padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
|
|
817
|
-
padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
/* Slotted icons */
|
|
821
|
-
:host ::slotted(vaadin-icon) {
|
|
822
|
-
width: var(--lumo-icon-size-m);
|
|
823
|
-
height: var(--lumo-icon-size-m);
|
|
824
|
-
}
|
|
825
|
-
`;At("vaadin-item",It,{moduleId:"lumo-item"});const Ot=f`
|
|
826
|
-
:host {
|
|
827
|
-
-webkit-tap-highlight-color: transparent;
|
|
828
|
-
--_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
/* Dividers */
|
|
832
|
-
[part='items'] ::slotted(hr) {
|
|
833
|
-
height: 1px;
|
|
834
|
-
border: 0;
|
|
835
|
-
padding: 0;
|
|
836
|
-
margin: var(--lumo-space-s) var(--lumo-border-radius-m);
|
|
837
|
-
background-color: var(--lumo-contrast-10pct);
|
|
838
|
-
}
|
|
839
|
-
`;At("vaadin-list-box",Ot,{moduleId:"lumo-list-box"});
|
|
840
|
-
/**
|
|
841
|
-
* @license
|
|
842
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
843
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
844
|
-
*/
|
|
845
|
-
const Mt=f`
|
|
846
|
-
[part$='button'] {
|
|
847
|
-
flex: none;
|
|
848
|
-
width: 1em;
|
|
849
|
-
height: 1em;
|
|
850
|
-
line-height: 1;
|
|
851
|
-
font-size: var(--lumo-icon-size-m);
|
|
852
|
-
text-align: center;
|
|
853
|
-
color: var(--lumo-contrast-60pct);
|
|
854
|
-
transition: 0.2s color;
|
|
855
|
-
cursor: var(--lumo-clickable-cursor);
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
[part$='button']:hover {
|
|
859
|
-
color: var(--lumo-contrast-90pct);
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
:host([disabled]) [part$='button'],
|
|
863
|
-
:host([readonly]) [part$='button'] {
|
|
864
|
-
color: var(--lumo-contrast-20pct);
|
|
865
|
-
cursor: default;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
[part$='button']::before {
|
|
869
|
-
font-family: 'lumo-icons';
|
|
870
|
-
display: block;
|
|
871
|
-
}
|
|
872
|
-
`;At("",Mt,{moduleId:"lumo-field-button"});
|
|
873
|
-
/**
|
|
874
|
-
* @license
|
|
875
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
876
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
877
|
-
*/
|
|
878
|
-
const Bt=f`
|
|
879
|
-
:host {
|
|
880
|
-
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
:host([has-helper]) [part='helper-text']::before {
|
|
884
|
-
content: '';
|
|
885
|
-
display: block;
|
|
886
|
-
height: var(--_helper-spacing);
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
[part='helper-text'] {
|
|
890
|
-
display: block;
|
|
891
|
-
color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
|
|
892
|
-
font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
|
|
893
|
-
line-height: var(--lumo-line-height-xs);
|
|
894
|
-
font-weight: var(--vaadin-input-field-helper-font-weight, 400);
|
|
895
|
-
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
896
|
-
transition: color 0.2s;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
:host(:hover:not([readonly])) [part='helper-text'] {
|
|
900
|
-
color: var(--lumo-body-text-color);
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
:host([disabled]) [part='helper-text'] {
|
|
904
|
-
color: var(--lumo-disabled-text-color);
|
|
905
|
-
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
|
|
909
|
-
display: none;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
913
|
-
content: '';
|
|
914
|
-
display: block;
|
|
915
|
-
height: var(--_helper-spacing);
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
919
|
-
order: 0;
|
|
920
|
-
padding-bottom: var(--_helper-spacing);
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
924
|
-
order: 1;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
:host([has-helper][theme~='helper-above-field']) [part='label'] + * {
|
|
928
|
-
order: 2;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
|
|
932
|
-
order: 3;
|
|
933
|
-
}
|
|
934
|
-
`
|
|
935
|
-
/**
|
|
936
|
-
* @license
|
|
937
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
938
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
939
|
-
*/,Dt=f`
|
|
940
|
-
[part='label'] {
|
|
941
|
-
align-self: flex-start;
|
|
942
|
-
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
943
|
-
font-weight: var(--vaadin-input-field-label-font-weight, 500);
|
|
944
|
-
font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
|
|
945
|
-
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
946
|
-
transition: color 0.2s;
|
|
947
|
-
line-height: 1;
|
|
948
|
-
padding-right: 1em;
|
|
949
|
-
padding-bottom: 0.5em;
|
|
950
|
-
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
951
|
-
negative margin to compensate */
|
|
952
|
-
padding-top: 0.25em;
|
|
953
|
-
margin-top: -0.25em;
|
|
954
|
-
overflow: hidden;
|
|
955
|
-
white-space: nowrap;
|
|
956
|
-
text-overflow: ellipsis;
|
|
957
|
-
position: relative;
|
|
958
|
-
max-width: 100%;
|
|
959
|
-
box-sizing: border-box;
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
:host([focused]:not([readonly])) [part='label'] {
|
|
963
|
-
color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
967
|
-
color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
/* Touch device adjustment */
|
|
971
|
-
@media (pointer: coarse) {
|
|
972
|
-
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
973
|
-
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
:host([has-label])::before {
|
|
978
|
-
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
:host([has-label][theme~='small'])::before {
|
|
982
|
-
margin-top: calc(var(--lumo-font-size-xs) * 1.5);
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
:host([has-label]) {
|
|
986
|
-
padding-top: var(--lumo-space-m);
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
:host([has-label]) ::slotted([slot='tooltip']) {
|
|
990
|
-
--vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
:host([required]) [part='required-indicator']::after {
|
|
994
|
-
content: var(--lumo-required-field-indicator, '\\2022');
|
|
995
|
-
transition: opacity 0.2s;
|
|
996
|
-
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
997
|
-
position: absolute;
|
|
998
|
-
right: 0;
|
|
999
|
-
width: 1em;
|
|
1000
|
-
text-align: center;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
:host([invalid]) [part='required-indicator']::after {
|
|
1004
|
-
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
[part='error-message'] {
|
|
1008
|
-
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1009
|
-
font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
|
|
1010
|
-
line-height: var(--lumo-line-height-xs);
|
|
1011
|
-
font-weight: var(--vaadin-input-field-error-font-weight, 400);
|
|
1012
|
-
color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
|
|
1013
|
-
will-change: max-height;
|
|
1014
|
-
transition: 0.4s max-height;
|
|
1015
|
-
max-height: 5em;
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
:host([has-error-message]) [part='error-message']::before,
|
|
1019
|
-
:host([has-error-message]) [part='error-message']::after {
|
|
1020
|
-
content: '';
|
|
1021
|
-
display: block;
|
|
1022
|
-
height: 0.4em;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
:host(:not([invalid])) [part='error-message'] {
|
|
1026
|
-
max-height: 0;
|
|
1027
|
-
overflow: hidden;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
/* RTL specific styles */
|
|
1031
|
-
|
|
1032
|
-
:host([dir='rtl']) [part='label'] {
|
|
1033
|
-
margin-left: 0;
|
|
1034
|
-
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
:host([dir='rtl']) [part='label'] {
|
|
1038
|
-
padding-left: 1em;
|
|
1039
|
-
padding-right: 0;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
:host([dir='rtl']) [part='required-indicator']::after {
|
|
1043
|
-
right: auto;
|
|
1044
|
-
left: 0;
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
:host([dir='rtl']) [part='error-message'] {
|
|
1048
|
-
margin-left: 0;
|
|
1049
|
-
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1050
|
-
}
|
|
1051
|
-
`;At("",Dt,{moduleId:"lumo-required-field"});
|
|
1052
|
-
/**
|
|
1053
|
-
* @license
|
|
1054
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1055
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1056
|
-
*/
|
|
1057
|
-
const jt=[Dt,Mt,Bt,f`
|
|
1058
|
-
:host {
|
|
1059
|
-
--lumo-text-field-size: var(--lumo-size-m);
|
|
1060
|
-
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
1061
|
-
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
1062
|
-
font-family: var(--lumo-font-family);
|
|
1063
|
-
-webkit-font-smoothing: antialiased;
|
|
1064
|
-
-moz-osx-font-smoothing: grayscale;
|
|
1065
|
-
-webkit-tap-highlight-color: transparent;
|
|
1066
|
-
padding: var(--lumo-space-xs) 0;
|
|
1067
|
-
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
1068
|
-
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
1069
|
-
--_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
|
|
1070
|
-
--_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
:host::before {
|
|
1074
|
-
height: var(--_input-height);
|
|
1075
|
-
box-sizing: border-box;
|
|
1076
|
-
display: inline-flex;
|
|
1077
|
-
align-items: center;
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
1081
|
-
-webkit-mask-image: none;
|
|
1082
|
-
mask-image: none;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
::slotted(:is(input, textarea):placeholder-shown) {
|
|
1086
|
-
color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
/* Hover */
|
|
1090
|
-
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1091
|
-
opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
/* Touch device adjustment */
|
|
1095
|
-
@media (pointer: coarse) {
|
|
1096
|
-
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1097
|
-
opacity: 0;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
:host(:active:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1101
|
-
opacity: 0.2;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
/* Trigger when not focusing using the keyboard */
|
|
1106
|
-
:host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
|
|
1107
|
-
transform: scaleX(0);
|
|
1108
|
-
transition-duration: 0.15s, 1s;
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
/* Focus-ring */
|
|
1112
|
-
:host([focus-ring]) [part='input-field'] {
|
|
1113
|
-
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
/* Read-only and disabled */
|
|
1117
|
-
:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
1118
|
-
opacity: 0;
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
/* Read-only style */
|
|
1122
|
-
:host([readonly]) {
|
|
1123
|
-
--vaadin-input-field-border-color: transparent;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
/* Disabled style */
|
|
1127
|
-
:host([disabled]) {
|
|
1128
|
-
pointer-events: none;
|
|
1129
|
-
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
:host([disabled]) [part='label'],
|
|
1133
|
-
:host([disabled]) [part='input-field'] ::slotted([slot$='fix']) {
|
|
1134
|
-
color: var(--lumo-disabled-text-color);
|
|
1135
|
-
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
:host([disabled]) [part='input-field'] ::slotted(:not([slot$='fix'])) {
|
|
1139
|
-
color: var(--_disabled-value-color);
|
|
1140
|
-
-webkit-text-fill-color: var(--_disabled-value-color);
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
/* Invalid style */
|
|
1144
|
-
:host([invalid]) {
|
|
1145
|
-
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
:host([invalid][focus-ring]) [part='input-field'] {
|
|
1149
|
-
box-shadow: 0 0 0 var(--_focus-ring-width) var(--lumo-error-color-50pct);
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
:host([input-prevented]) [part='input-field'] {
|
|
1153
|
-
animation: shake 0.15s infinite;
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
@keyframes shake {
|
|
1157
|
-
25% {
|
|
1158
|
-
transform: translateX(4px);
|
|
1159
|
-
}
|
|
1160
|
-
75% {
|
|
1161
|
-
transform: translateX(-4px);
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
/* Small theme */
|
|
1166
|
-
:host([theme~='small']) {
|
|
1167
|
-
font-size: var(--lumo-font-size-s);
|
|
1168
|
-
--lumo-text-field-size: var(--lumo-size-s);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
:host([theme~='small']) [part='label'] {
|
|
1172
|
-
font-size: var(--lumo-font-size-xs);
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
:host([theme~='small']) [part='error-message'] {
|
|
1176
|
-
font-size: var(--lumo-font-size-xxs);
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
/* Slotted content */
|
|
1180
|
-
[part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
|
|
1181
|
-
color: var(--lumo-secondary-text-color);
|
|
1182
|
-
font-weight: 400;
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
[part='clear-button']::before {
|
|
1186
|
-
content: var(--lumo-icons-cross);
|
|
1187
|
-
}
|
|
1188
|
-
`];At("",jt,{moduleId:"lumo-input-field-shared-styles"});
|
|
1189
|
-
/**
|
|
1190
|
-
* @license
|
|
1191
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1192
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1193
|
-
*/
|
|
1194
|
-
const Ft=f`
|
|
1195
|
-
:host {
|
|
1196
|
-
top: var(--lumo-space-m);
|
|
1197
|
-
right: var(--lumo-space-m);
|
|
1198
|
-
bottom: var(--lumo-space-m);
|
|
1199
|
-
left: var(--lumo-space-m);
|
|
1200
|
-
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
1201
|
-
/* stylelint-disable-next-line */
|
|
1202
|
-
outline: 0px solid transparent;
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
[part='overlay'] {
|
|
1206
|
-
background-color: var(--lumo-base-color);
|
|
1207
|
-
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
1208
|
-
border-radius: var(--lumo-border-radius-m);
|
|
1209
|
-
box-shadow:
|
|
1210
|
-
0 0 0 1px var(--lumo-shade-5pct),
|
|
1211
|
-
var(--lumo-box-shadow-m);
|
|
1212
|
-
color: var(--lumo-body-text-color);
|
|
1213
|
-
font-family: var(--lumo-font-family);
|
|
1214
|
-
font-size: var(--lumo-font-size-m);
|
|
1215
|
-
font-weight: 400;
|
|
1216
|
-
line-height: var(--lumo-line-height-m);
|
|
1217
|
-
letter-spacing: 0;
|
|
1218
|
-
text-transform: none;
|
|
1219
|
-
-webkit-text-size-adjust: 100%;
|
|
1220
|
-
-webkit-font-smoothing: antialiased;
|
|
1221
|
-
-moz-osx-font-smoothing: grayscale;
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
[part='content'] {
|
|
1225
|
-
padding: var(--lumo-space-xs);
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
[part='backdrop'] {
|
|
1229
|
-
background-color: var(--lumo-shade-20pct);
|
|
1230
|
-
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
1231
|
-
will-change: opacity;
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
@keyframes lumo-overlay-backdrop-enter {
|
|
1235
|
-
0% {
|
|
1236
|
-
opacity: 0;
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
:host([closing]) [part='backdrop'] {
|
|
1241
|
-
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
@keyframes lumo-overlay-backdrop-exit {
|
|
1245
|
-
100% {
|
|
1246
|
-
opacity: 0;
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
@keyframes lumo-overlay-dummy-animation {
|
|
1251
|
-
0% {
|
|
1252
|
-
opacity: 1;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
100% {
|
|
1256
|
-
opacity: 1;
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
`;At("",Ft,{moduleId:"lumo-overlay"});
|
|
1260
|
-
/**
|
|
1261
|
-
* @license
|
|
1262
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1263
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1264
|
-
*/
|
|
1265
|
-
const Ut=f`
|
|
1266
|
-
:host([opening]),
|
|
1267
|
-
:host([closing]) {
|
|
1268
|
-
animation: 0.14s lumo-overlay-dummy-animation;
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
[part='overlay'] {
|
|
1272
|
-
will-change: opacity, transform;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
:host([opening]) [part='overlay'] {
|
|
1276
|
-
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
@keyframes lumo-menu-overlay-enter {
|
|
1280
|
-
0% {
|
|
1281
|
-
opacity: 0;
|
|
1282
|
-
transform: translateY(-4px);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
:host([closing]) [part='overlay'] {
|
|
1287
|
-
animation: 0.1s lumo-menu-overlay-exit both;
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
@keyframes lumo-menu-overlay-exit {
|
|
1291
|
-
100% {
|
|
1292
|
-
opacity: 0;
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
`;At("",Ut,{moduleId:"lumo-menu-overlay-core"});const Lt=[Ft,Ut,f`
|
|
1296
|
-
/* Small viewport (bottom sheet) styles */
|
|
1297
|
-
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
1298
|
-
@media (max-width: 450px), (max-height: 450px) {
|
|
1299
|
-
:host {
|
|
1300
|
-
top: 0 !important;
|
|
1301
|
-
right: 0 !important;
|
|
1302
|
-
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
1303
|
-
left: 0 !important;
|
|
1304
|
-
align-items: stretch !important;
|
|
1305
|
-
justify-content: flex-end !important;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
[part='overlay'] {
|
|
1309
|
-
max-height: 50vh;
|
|
1310
|
-
width: 100vw;
|
|
1311
|
-
border-radius: 0;
|
|
1312
|
-
box-shadow: var(--lumo-box-shadow-xl);
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
1316
|
-
[part='content'] {
|
|
1317
|
-
padding: 30px var(--lumo-space-m);
|
|
1318
|
-
max-height: inherit;
|
|
1319
|
-
box-sizing: border-box;
|
|
1320
|
-
-webkit-overflow-scrolling: touch;
|
|
1321
|
-
overflow: auto;
|
|
1322
|
-
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
1323
|
-
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
[part='backdrop'] {
|
|
1327
|
-
display: block;
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
/* Animations */
|
|
1331
|
-
|
|
1332
|
-
:host([opening]) [part='overlay'] {
|
|
1333
|
-
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
:host([closing]),
|
|
1337
|
-
:host([closing]) [part='backdrop'] {
|
|
1338
|
-
animation-delay: 0.14s;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
:host([closing]) [part='overlay'] {
|
|
1342
|
-
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
@keyframes lumo-mobile-menu-overlay-enter {
|
|
1347
|
-
0% {
|
|
1348
|
-
transform: translateY(150%);
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
@keyframes lumo-mobile-menu-overlay-exit {
|
|
1353
|
-
100% {
|
|
1354
|
-
transform: translateY(150%);
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
`];At("",Lt,{moduleId:"lumo-menu-overlay"}),
|
|
1358
|
-
/**
|
|
1359
|
-
* @license
|
|
1360
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1361
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1362
|
-
*/
|
|
1363
|
-
At("vaadin-select-item",It,{moduleId:"lumo-select-item"}),At("vaadin-select-list-box",Ot,{moduleId:"lumo-select-list-box"}),At("vaadin-select",[jt,f`
|
|
1364
|
-
:host(:not([theme*='align'])) ::slotted([slot='value']) {
|
|
1365
|
-
text-align: start;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
[part='input-field'] {
|
|
1369
|
-
cursor: var(--lumo-clickable-cursor);
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
[part='input-field'] ::slotted([slot='value']) {
|
|
1373
|
-
font-weight: var(--vaadin-input-field-value-font-weight, 500);
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
[part='input-field'] ::slotted([slot='value']:not([placeholder])) {
|
|
1377
|
-
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
:host([readonly]) [part='input-field'] ::slotted([slot='value']:not([placeholder])) {
|
|
1381
|
-
color: var(--lumo-secondary-text-color);
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
/* placeholder styles */
|
|
1385
|
-
[part='input-field'] ::slotted([slot='value'][placeholder]) {
|
|
1386
|
-
color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
:host(:is([readonly], [disabled])) ::slotted([slot='value'][placeholder]) {
|
|
1390
|
-
opacity: 0;
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
[part='toggle-button']::before {
|
|
1394
|
-
content: var(--lumo-icons-dropdown);
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
/* Highlight the toggle button when hovering over the entire component */
|
|
1398
|
-
:host(:hover:not([readonly]):not([disabled])) [part='toggle-button'] {
|
|
1399
|
-
color: var(--lumo-contrast-80pct);
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
:host([theme~='small']) [part='input-field'] ::slotted([slot='value']) {
|
|
1403
|
-
--_lumo-selected-item-height: var(--lumo-size-s);
|
|
1404
|
-
--_lumo-selected-item-padding: 0;
|
|
1405
|
-
}
|
|
1406
|
-
`],{moduleId:"lumo-select"}),At("vaadin-select-value-button",f`
|
|
1407
|
-
:host {
|
|
1408
|
-
font-family: var(--lumo-font-family);
|
|
1409
|
-
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
1410
|
-
padding: 0 0.25em;
|
|
1411
|
-
--_lumo-selected-item-height: var(--lumo-size-m);
|
|
1412
|
-
--_lumo-selected-item-padding: 0.5em;
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
::slotted(*) {
|
|
1416
|
-
min-height: var(--_lumo-selected-item-height);
|
|
1417
|
-
padding-top: var(--_lumo-selected-item-padding);
|
|
1418
|
-
padding-bottom: var(--_lumo-selected-item-padding);
|
|
1419
|
-
font-size: inherit;
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
::slotted(*:hover) {
|
|
1423
|
-
background-color: transparent;
|
|
1424
|
-
}
|
|
1425
|
-
`,{moduleId:"lumo-select-value-button"}),At("vaadin-select-overlay",[Lt,f`
|
|
1426
|
-
:host {
|
|
1427
|
-
--_lumo-item-selected-icon-display: block;
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
/* Small viewport adjustment */
|
|
1431
|
-
:host([phone]) {
|
|
1432
|
-
/* stylelint-disable declaration-block-no-redundant-longhand-properties */
|
|
1433
|
-
top: 0 !important;
|
|
1434
|
-
right: 0 !important;
|
|
1435
|
-
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
1436
|
-
left: 0 !important;
|
|
1437
|
-
/* stylelint-enable declaration-block-no-redundant-longhand-properties */
|
|
1438
|
-
align-items: stretch;
|
|
1439
|
-
justify-content: flex-end;
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
:host([no-vertical-overlap][top-aligned]) [part='overlay'] {
|
|
1443
|
-
margin-block-start: var(--lumo-space-xs);
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
:host([no-vertical-overlap][bottom-aligned]) [part='overlay'] {
|
|
1447
|
-
margin-block-end: var(--lumo-space-xs);
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
:host([theme~='align-left']) {
|
|
1451
|
-
text-align: left;
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
:host([theme~='align-right']) {
|
|
1455
|
-
text-align: right;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
:host([theme~='align-center']) {
|
|
1459
|
-
text-align: center;
|
|
1460
|
-
}
|
|
1461
|
-
`],{moduleId:"lumo-select-overlay"}),
|
|
1462
|
-
/**
|
|
1463
|
-
@license
|
|
1464
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1465
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1466
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1467
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1468
|
-
Code distributed by Google as part of the polymer project is also
|
|
1469
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1470
|
-
*/
|
|
1471
|
-
window.JSCompiler_renameProperty=function(t){return t};
|
|
1472
|
-
/**
|
|
1473
|
-
@license
|
|
1474
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1475
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1476
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1477
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1478
|
-
Code distributed by Google as part of the polymer project is also
|
|
1479
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1480
|
-
*/
|
|
1481
|
-
let Rt,Wt,qt=/(url\()([^)]*)(\))/g,Gt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Ht(t,e){if(t&&Gt.test(t))return t;if("//"===t)return t;if(void 0===Rt){Rt=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Rt="http://a/c%20d"===t.href}catch(t){}}if(e||(e=document.baseURI||window.location.href),Rt)try{return new URL(t,e).href}catch(e){return t}return Wt||(Wt=document.implementation.createHTMLDocument("temp"),Wt.base=Wt.createElement("base"),Wt.head.appendChild(Wt.base),Wt.anchor=Wt.createElement("a"),Wt.body.appendChild(Wt.anchor)),Wt.base.href=e,Wt.anchor.href=t,Wt.anchor.href||t}function Yt(t,e){return t.replace(qt,(function(t,i,s,o){return i+"'"+Ht(s.replace(/["']/g,""),e)+"'"+o}))}function $t(t){return t.substring(0,t.lastIndexOf("/")+1)}
|
|
1482
|
-
/**
|
|
1483
|
-
@license
|
|
1484
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1485
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1486
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1487
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1488
|
-
Code distributed by Google as part of the polymer project is also
|
|
1489
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1490
|
-
*/const Jt=(!window.ShadyDOM||!window.ShadyDOM.inUse)&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Zt=window.Polymer&&window.Polymer.rootPath||$t(document.baseURI||window.location.href),Kt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Vt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Qt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Xt=window.Polymer&&window.Polymer.legacyOptimizations||!1,te=window.Polymer&&window.Polymer.legacyWarnings||!1,ee=window.Polymer&&window.Polymer.syncInitialRender||!1,ie=window.Polymer&&window.Polymer.legacyUndefined||!1,se=window.Polymer&&window.Polymer.orderedComputed||!1,oe=window.Polymer&&window.Polymer.removeNestedTemplates||!1,re=window.Polymer&&window.Polymer.fastDomIf||!1,ne=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,ae=0;const le=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let i=ae++;return function(s){let o=s.__mixinSet;if(o&&o[i])return s;let r=e,n=r.get(s);if(!n){n=t(s),r.set(s,n);let e=Object.create(n.__mixinSet||o||null);e[i]=!0,n.__mixinSet=e}return n}};
|
|
1491
|
-
/**
|
|
1492
|
-
@license
|
|
1493
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1494
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1495
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1496
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1497
|
-
Code distributed by Google as part of the polymer project is also
|
|
1498
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1499
|
-
*/let he={},ce={};function ue(t,e){he[t]=ce[t.toLowerCase()]=e}function de(t){return he[t]||ce[t.toLowerCase()]}class pe extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=de(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Ht(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=$t(e)}return this.__assetpath}register(t){if(t=t||this.id){if(Vt&&void 0!==de(t))throw ue(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,ue(t,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}var e}}pe.prototype.modules=he,customElements.define("dom-module",pe);
|
|
1500
|
-
/**
|
|
1501
|
-
@license
|
|
1502
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1503
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1504
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1505
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1506
|
-
Code distributed by Google as part of the polymer project is also
|
|
1507
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1508
|
-
*/
|
|
1509
|
-
const me="link[rel=import][type~=css]",fe="include",ve="shady-unscoped";function be(t){return pe.import(t)}function ge(t){const e=Yt((t.body?t.body:t).textContent,t.baseURI),i=document.createElement("style");return i.textContent=e,i}function ye(t){const e=t.trim().split(/\s+/),i=[];for(let t=0;t<e.length;t++)i.push(...we(e[t]));return i}function we(t){const e=be(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(..._e(e));const i=e.querySelector("template");i&&t.push(...xe(i,e.assetpath)),e._styles=t}return e._styles}function xe(t,e){if(!t._styles){const i=[],s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let o=s[t],r=o.getAttribute(fe);r&&i.push(...ye(r).filter((function(t,e,i){return i.indexOf(t)===e}))),e&&(o.textContent=Yt(o.textContent,e)),i.push(o)}t._styles=i}return t._styles}function _e(t){const e=[],i=t.querySelectorAll(me);for(let t=0;t<i.length;t++){let s=i[t];if(s.import){const t=s.import,i=s.hasAttribute(ve);if(i&&!t._unscopedStyle){const e=ge(t);e.setAttribute(ve,""),t._unscopedStyle=e}else t._style||(t._style=ge(t));e.push(i?t._unscopedStyle:t._style)}}return e}
|
|
1510
|
-
/**
|
|
1511
|
-
@license
|
|
1512
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1513
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1514
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1515
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1516
|
-
Code distributed by Google as part of the polymer project is also
|
|
1517
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1518
|
-
*/const ke=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;
|
|
1519
|
-
/**
|
|
1520
|
-
@license
|
|
1521
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1522
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1523
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1524
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1525
|
-
Code distributed by Google as part of the polymer project is also
|
|
1526
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1527
|
-
*/function Ae(t){return t.indexOf(".")>=0}function Ce(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Se(t,e){return 0===e.indexOf(t+".")}function Te(t,e,i){return e+i.slice(t.length)}function ze(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let s=t[i].toString().split(".");for(let t=0;t<s.length;t++)e.push(s[t])}return e.join(".")}return t}function Ne(t){return Array.isArray(t)?ze(t).split("."):t.toString().split(".")}function Pe(t,e,i){let s=t,o=Ne(e);for(let t=0;t<o.length;t++){if(!s)return;s=s[o[t]]}return i&&(i.path=o.join(".")),s}function Ee(t,e,i){let s=t,o=Ne(e),r=o[o.length-1];if(o.length>1){for(let t=0;t<o.length-1;t++)if(s=s[o[t]],!s)return;s[r]=i}else s[e]=i;return o.join(".")}
|
|
1528
|
-
/**
|
|
1529
|
-
@license
|
|
1530
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1531
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1532
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1533
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1534
|
-
Code distributed by Google as part of the polymer project is also
|
|
1535
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1536
|
-
*/const Ie={},Oe=/-[a-z]/g,Me=/([A-Z])/g;function Be(t){return Ie[t]||(Ie[t]=t.indexOf("-")<0?t:t.replace(Oe,(t=>t[1].toUpperCase())))}function De(t){return Ie[t]||(Ie[t]=t.replace(Me,"-$1").toLowerCase())}
|
|
1537
|
-
/**
|
|
1538
|
-
@license
|
|
1539
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1540
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1541
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1542
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1543
|
-
Code distributed by Google as part of the polymer project is also
|
|
1544
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1545
|
-
*/let je=0,Fe=0,Ue=[],Le=0,Re=!1,We=document.createTextNode("");new window.MutationObserver((function(){Re=!1;const t=Ue.length;for(let e=0;e<t;e++){let t=Ue[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}Ue.splice(0,t),Fe+=t})).observe(We,{characterData:!0});const qe={run:t=>(Re||(Re=!0,We.textContent=Le++),Ue.push(t),je++),cancel(t){const e=t-Fe;if(e>=0){if(!Ue[e])throw new Error("invalid async handle: "+t);Ue[e]=null}}},Ge=le((t=>class extends t{static createProperties(t){const e=this.prototype;for(let i in t)i in e||e._createPropertyAccessor(i)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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 t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let s=this.__data[t],o=this._shouldPropertyChange(t,e,s);return o&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=s),this.__data[t]=e,this.__dataPending[t]=e),o}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,qe.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 t=this.__data,e=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(t,e,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,i)),this.__dataCounter--}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i==i||e==e)}attributeChangedCallback(t,e,i,s){e!==i&&this._attributeToProperty(t,i),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,i,s)}_attributeToProperty(t,e,i){if(!this.__serializing){const s=this.__dataAttributes,o=s&&s[t]||t;this[o]=this._deserializeValue(e,i||this.constructor.typeForProperty(o))}}_propertyToAttribute(t,e,i){this.__serializing=!0,this._valueToNodeAttribute(this,i=arguments.length<3?this[t]:i,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,i){const s=this._serializeValue(e);"class"!==i&&"name"!==i&&"slot"!==i||(t=ke(t)),void 0===s?t.removeAttribute(i):t.setAttribute(i,""===s&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),He={};
|
|
1546
|
-
/**
|
|
1547
|
-
@license
|
|
1548
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1549
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1550
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1551
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1552
|
-
Code distributed by Google as part of the polymer project is also
|
|
1553
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1554
|
-
*/let Ye=HTMLElement.prototype;for(;Ye;){let t=Object.getOwnPropertyNames(Ye);for(let e=0;e<t.length;e++)He[t[e]]=!0;Ye=Object.getPrototypeOf(Ye)}const $e=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1,Je=le((t=>{const e=Ge(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Be(t[e]))}static attributeNameForProperty(t){return De(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){this.hasAttribute(t)||this._valueToNodeAttribute(this,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if($e(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t),i=new Date(i);break;default:i=super._deserializeValue(t,e)}return i}_definePropertyAccessor(t,e){!function(t,e){if(!He[e]){let i=t[e];void 0!==i&&(t.__data?t._setPendingProperty(e,i):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=i))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),Ze={"dom-if":!0,"dom-repeat":!0};let Ke=!1,Ve=!1;const Qe=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,s)=>{const o=i.getAttribute(s);t&&s.startsWith("on-")?e.setAttribute(s,t.createScript(o,s)):e.setAttribute(s,o)}})();function Xe(t){let e=t.getAttribute("is");if(e&&Ze[e]){let i=t;for(i.removeAttribute("is"),t=i.ownerDocument.createElement(e),i.parentNode.replaceChild(t,i),t.appendChild(i);i.attributes.length;){const{name:e}=i.attributes[0];Qe(t,i,e),i.removeAttribute(e)}}return t}function ti(t,e){let i=e.parentInfo&&ti(t,e.parentInfo);if(!i)return t;for(let t=i.firstChild,s=0;t;t=t.nextSibling)if(e.parentIndex===s++)return t}function ei(t,e,i,s){s.id&&(e[s.id]=i)}function ii(t,e,i){if(i.events&&i.events.length)for(let s,o=0,r=i.events;o<r.length&&(s=r[o]);o++)t._addMethodEventListenerToNode(e,s.name,s.value,t)}function si(t,e,i,s){i.templateInfo&&(e._templateInfo=i.templateInfo,e._parentTemplateInfo=s)}const oi=le((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(e),i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let s=!1,o=t;return"template"!=o.localName||o.hasAttribute("preserve-content")?"slot"===o.localName&&(e.hasInsertionPoint=!0):s=this._parseTemplateNestedTemplate(o,e,i)||s,function(t){(function(){if(!Ke){Ke=!0;const t=document.createElement("textarea");t.placeholder="a",Ve=t.placeholder===t.textContent}return Ve})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}(o),o.firstChild&&this._parseTemplateChildNodes(o,e,i),o.hasAttributes&&o.hasAttributes()&&(s=this._parseTemplateNodeAttributes(o,e,i)||s),s||i.noted}static _parseTemplateChildNodes(t,e,i){if("script"!==t.localName&&"style"!==t.localName)for(let s,o=t.firstChild,r=0;o;o=s){if("template"==o.localName&&(o=Xe(o)),s=o.nextSibling,o.nodeType===Node.TEXT_NODE){let i=s;for(;i&&i.nodeType===Node.TEXT_NODE;)o.textContent+=i.textContent,s=i.nextSibling,t.removeChild(i),i=s;if(e.stripWhiteSpace&&!o.textContent.trim()){t.removeChild(o);continue}}let n={parentIndex:r,parentInfo:i};this._parseTemplateNode(o,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),o.parentNode&&r++}}static _parseTemplateNestedTemplate(t,e,i){let s=t,o=this._parseTemplate(s,e);return(o.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),i.templateInfo=o,!0}static _parseTemplateNodeAttributes(t,e,i){let s=!1,o=Array.from(t.attributes);for(let r,n=o.length-1;r=o[n];n--)s=this._parseTemplateNodeAttribute(t,e,i,r.name,r.value)||s;return s}static _parseTemplateNodeAttribute(t,e,i,s,o){return"on-"===s.slice(0,3)?(t.removeAttribute(s),i.events=i.events||[],i.events.push({name:s.slice(3),value:o}),!0):"id"===s&&(i.id=o,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let i=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,s=document.importNode(e.content||t.content,!0);s.__noInsertionPoint=!e.hasInsertionPoint;let o=s.nodeList=new Array(i.length);s.$={};for(let t,r=0,n=i.length;r<n&&(t=i[r]);r++){let i=o[r]=ti(s,t);ei(0,s.$,i,t),si(0,i,t,e),ii(this,i,t)}return s}_addMethodEventListenerToNode(t,e,i,s){let o=function(t,e,i){return t=t._methodHost||t,function(e){t[i]?t[i](e,e.detail):console.warn("listener method `"+i+"` not defined")}}(s=s||t,0,i);return this._addEventListenerToNode(t,e,o),o}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}));
|
|
1555
|
-
/**
|
|
1556
|
-
* @fileoverview
|
|
1557
|
-
* @suppress {checkPrototypalTypes}
|
|
1558
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1559
|
-
* This code may only be used under the BSD style license found at
|
|
1560
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
1561
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
1562
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1563
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
1564
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1565
|
-
*/let ri=0;const ni=[],ai={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},li="__computeInfo",hi=/[A-Z]/;function ci(t,e,i){let s=t[e];if(s){if(!t.hasOwnProperty(e)&&(s=t[e]=Object.create(t[e]),i))for(let t in s){let e=s[t],i=s[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else s=t[e]={};return s}function ui(t,e,i,s,o,r){if(e){let n=!1;const a=ri++;for(let l in i){let h=e[o?Ce(l):l];if(h)for(let e,c=0,u=h.length;c<u&&(e=h[c]);c++)e.info&&e.info.lastRun===a||o&&!pi(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,i,s,e.info,o,r),n=!0)}return n}return!1}function di(t,e,i,s,o,r,n,a){let l=!1,h=e[n?Ce(s):s];if(h)for(let e,c=0,u=h.length;c<u&&(e=h[c]);c++)e.info&&e.info.lastRun===i||n&&!pi(s,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(t,s,o,r,e.info,n,a),l=!0);return l}function pi(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!function(t,e){return 0===t.indexOf(e+".")}(i,t))||!(!e.wildcard||!Se(i,t))}return!0}function mi(t,e,i,s,o){let r="string"==typeof o.method?t[o.method]:o.method,n=o.property;r?r.call(t,t.__data[n],s[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function fi(t,e,i){let s=Ce(e);return s!==e&&(vi(t,De(s)+"-changed",i[e],e),!0)}function vi(t,e,i,s){let o={value:i,queueProperty:!0};s&&(o.path=s),ke(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function bi(t,e,i,s,o,r){let n=(r?Ce(e):e)!=e?e:null,a=n?Pe(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),vi(t,o.eventName,a,n)}function gi(t,e,i,s,o){let r=t.__data[e];Kt&&(r=Kt(r,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,r)}const yi=(t,e,i)=>{let s=0,o=e.length-1,r=-1;for(;s<=o;){const n=s+o>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)s=n+1;else{if(!(a>0)){r=n;break}o=n-1}}r<0&&(r=o+1),e.splice(r,0,t)},wi=(t,e,i,s,o)=>{const r=e[o?Ce(t):t];if(r)for(let e=0;e<r.length;e++){const n=r[e];n.info.lastRun===ri||o&&!pi(t,n.trigger)||(n.info.lastRun=ri,yi(n.info,i,s))}};function xi(t,e,i,s,o){let r=zi(t,e,i,0,o);if(r===ni)return!1;let n=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,r,!0):(t[n]=r,!1)}function _i(t,e,i,s,o,r,n){i.bindings=i.bindings||[];let a={kind:s,target:o,parts:r,literal:n,isCompound:1!==r.length};if(i.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||De(o)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let s=a.parts[i];s.compoundIndex=i,ki(t,e,a,s,l)}}function ki(t,e,i,s,o){if(!s.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let r=s.dependencies,n={index:o,binding:i,part:s,evaluator:t};for(let i=0;i<r.length;i++){let s=r[i];"string"==typeof s&&(s=Bi(s),s.wildcard=!0),t._addTemplatePropertyEffect(e,s.rootProperty,{fn:Ai,info:n,trigger:s})}}}function Ai(t,e,i,s,o,r,n){let a=n[o.index],l=o.binding,h=o.part;if(r&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=Te(h.source,l.target,e),a._setPendingPropertyOrPath(e,s,!1,!0)&&t._enqueueClient(a)}else{let n=o.evaluator._evaluateBinding(t,h,e,i,s,r);n!==ni&&function(t,e,i,s,o){if(o=function(t,e,i,s){if(i.isCompound){let o=t.__dataCompoundStorage[i.target];o[s.compoundIndex]=e,e=o.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e)),e}(e,o,i,s),Kt&&(o=Kt(o,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,o,i.target);else{let s=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?e[ai.READ_ONLY]&&e[ai.READ_ONLY][s]||e._setPendingProperty(s,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,s,o)}}(t,a,l,h,n)}}function Ci(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),s=e.parts,o=new Array(s.length);for(let t=0;t<s.length;t++)o[t]=s[t].literal;let r=e.target;i[r]=o,e.literal&&"property"==e.kind&&("className"===r&&(t=ke(t)),t[r]=e.literal)}}function Si(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,s,o){let r,n=t.detail,a=n&&n.path;a?(s=Te(i,s,a),r=n&&n.value):r=t.currentTarget[i],r=o?!r:r,e[ai.READ_ONLY]&&e[ai.READ_ONLY][s]||!e._setPendingPropertyOrPath(s,r,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,i.target,s.source,s.negate)}))}}function Ti(t,e,i,s,o,r){let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:r=e.static||r&&("object"!=typeof r||r[e.methodName])};for(let o,r=0;r<e.args.length&&(o=e.args[r]);r++)o.literal||t._addPropertyEffect(o.rootProperty,i,{fn:s,info:n,trigger:o});return r&&t._addPropertyEffect(e.methodName,i,{fn:s,info:n}),n}function zi(t,e,i,s,o){let r=t._methodHost||t,n=r[o.methodName];if(n){let s=t._marshalArgs(o.args,e,i);return s===ni?ni:n.apply(r,s)}o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Ni=[],Pi="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ei="(?:("+Pi+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ii=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Pi+"\\s*(?:\\(\\s*(?:(?:"+Ei+"(?:,\\s*"+Ei+")*)?)\\)\\s*)?)(?:]]|}})","g");function Oi(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function Mi(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ni};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=Bi(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,",").split(","),t):t}return null}function Bi(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},s=e[0];switch("-"===s&&(s=e[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=Ce(e),i.structured=Ae(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Di(t,e,i){let s=Pe(t,i);return void 0===s&&(s=e[i]),s}function ji(t,e,i,s){const o={indexSplices:s};ie&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(i+".splices",o),t.notifyPath(i+".length",e.length),ie&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function Fi(t,e,i,s,o,r){ji(t,e,i,[{index:s,addedCount:o,removed:r,object:e,type:"splice"}])}const Ui=le((t=>{const e=oi(Je(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return ai}_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(Li.length){let t=Li[Li.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[ai.READ_ONLY];for(let i in t)e&&e[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==ai.READ_ONLY);let s=ci(this,e,!0)[t];s||(s=this[e][t]=[]),s.push(i)}_removePropertyEffect(t,e,i){let s=ci(this,e,!0)[t],o=s.indexOf(i);o>=0&&s.splice(o,1)}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,ai.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,ai.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,ai.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,ai.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||Ce(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=Pe(this,t);if(!(t=Ee(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let s=t.__dataLinkedPaths;if(s){let o;for(let r in s){let n=s[r];Se(r,e)?(o=Te(r,n,e),t._setPendingPropertyOrPath(o,i,!0,!0)):Se(n,e)&&(o=Te(n,r,e),t._setPendingPropertyOrPath(o,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){i===t[e]&&"object"!=typeof i||("className"===e&&(t=ke(t)),t[e]=i)}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&Ae(t);return!!this._shouldPropertyChange(t,e,(s?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),s?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(s||this[ai.NOTIFY]&&this[ai.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)!e&&this[ai.READ_ONLY]&&this[ai.READ_ONLY][i]||this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let s,o=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,s){let o=t[ai.COMPUTE];if(o)if(se){ri++;const r=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[ai.COMPUTE];let s,{counts:o,ready:r,total:n}=function(t){const e=t[li],i={},s=t[ai.COMPUTE],o=[];let r=0;for(let t in e){const s=e[t];r+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s)e[t]||o.push(t);return{counts:i,ready:o,total:r}}(t);for(;s=r.shift();){e.set(s,e.size);const t=i[s];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--o[e]&&r.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)wi(t,o,n,r,s);let a;for(;a=n.shift();)xi(t,"",e,0,a)&&wi(a.methodInfo,o,n,r,s);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let r=e;for(;ui(t,o,r,i,s);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),r=t.__dataPending,t.__dataPending=null}}(this,e,i,o),s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,o),this._flushClients(),ui(this,this[ai.REFLECT],e,i,o),ui(this,this[ai.OBSERVE],e,i,o),s&&function(t,e,i,s,o){let r,n,a=t[ai.NOTIFY],l=ri++;for(let n in e)e[n]&&(a&&di(t,a,l,n,i,s,o)||o&&fi(t,n,i))&&(r=!0);r&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,s,e,i,o),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[ai.PROPAGATE]&&ui(this,this[ai.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,s){const o=(e,s)=>{ui(this,t.propertyEffects,e,i,s,t.nodeList);for(let o=t.firstChild;o;o=o.nextSibling)this._runEffectsForTemplate(o,e,i,s)};t.runEffects?t.runEffects(o,e,s):o(e,s)}linkPaths(t,e){t=ze(t),e=ze(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=ze(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};ji(this,Pe(this,t,i),i.path,e)}get(t,e){return Pe(e||this,t)}set(t,e,i){i?Ee(i,t,e):this[ai.READ_ONLY]&&this[ai.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},s=Pe(this,t,i),o=s.length,r=s.push(...e);return e.length&&Fi(this,s,i.path,o,e.length,[]),r}pop(t){let e={path:""},i=Pe(this,t,e),s=Boolean(i.length),o=i.pop();return s&&Fi(this,i,e.path,i.length,0,[o]),o}splice(t,e,i,...s){let o,r={path:""},n=Pe(this,t,r);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),o=2===arguments.length?n.splice(e):n.splice(e,i,...s),(s.length||o.length)&&Fi(this,n,r.path,e,s.length,o),o}shift(t){let e={path:""},i=Pe(this,t,e),s=Boolean(i.length),o=i.shift();return s&&Fi(this,i,e.path,0,0,[o]),o}unshift(t,...e){let i={path:""},s=Pe(this,t,i),o=s.unshift(...e);return e.length&&Fi(this,s,i.path,0,e.length,[]),o}notifyPath(t,e){let i;if(1==arguments.length){let s={path:""};e=Pe(this,t,s),i=s.path}else i=Array.isArray(t)?ze(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var i;this._addPropertyEffect(t,ai.READ_ONLY),e&&(this["_set"+(i=t,i[0].toUpperCase()+i.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,ai.OBSERVE,{fn:mi,info:s,trigger:{name:t}}),i&&this._addPropertyEffect(e,ai.OBSERVE,{fn:mi,info:s,trigger:{name:e}})}_createMethodObserver(t,e){let i=Mi(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");Ti(this,i,ai.OBSERVE,zi,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,ai.NOTIFY,{fn:bi,info:{eventName:De(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,ai.REFLECT,{fn:gi,info:{attrName:e}})}_createComputedProperty(t,e,i){let s=Mi(e);if(!s)throw new Error("Malformed computed expression '"+e+"'");const o=Ti(this,s,ai.COMPUTE,xi,t,i);ci(this,li)[t]=o}_marshalArgs(t,e,i){const s=this.__data,o=[];for(let r=0,n=t.length;r<n;r++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[r];if(!c)if(l){const t=Se(n,e),o=Di(s,i,t?e:n);h={path:t?e:n,value:o,base:t?Pe(s,n):o}}else h=a?Di(s,i,n):s[n];if(ie&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return ni;o[r]=h}return o}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),s=this.__preBoundTemplateInfo==i;if(!s)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=s,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,s=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=s,s?s.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let s=t.propertyEffects=t.propertyEffects||{};(s[e]=s[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Li.push(this);let i=super._stampTemplate(t,e);if(Li.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length)for(let e=0;e<s.length;e++){let o=i[e],r=s[e].bindings;if(r)for(let e=0;e<r.length;e++){let i=r[e];Ci(o,i),Si(o,t,i)}o.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:s,parent:o}=e;i?i.nextSibling=s:o&&(o.firstChild=s),s?s.previousSibling=i:o&&(o.lastChild=i),e.nextSibling=e.previousSibling=null;let r=e.childNodes;for(let t=0;t<r.length;t++){let e=r[t];ke(ke(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let o=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=Oi(e)||" ",_i(this,i,s,"text","textContent",e),o=!0)}return o}static _parseTemplateNodeAttribute(t,i,s,o,r){let n=this._parseBindings(r,i);if(n){let e=o,r="property";hi.test(o)?r="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),r="attribute");let a=Oi(n);return a&&"attribute"==r&&("class"==o&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(o)),t.setAttribute(o,a)),"attribute"==r&&"disable-upgrade$"==e&&t.setAttribute(o,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===r&&(o=Be(o)),_i(this,i,s,r,o,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,s,o,r)}static _parseTemplateNestedTemplate(t,i,s){let o=e._parseTemplateNestedTemplate.call(this,t,i,s);const r=t.parentNode,n=s.templateInfo,a="dom-if"===r.localName;oe&&(a||"dom-repeat"===r.localName)&&(r.removeChild(t),(s=s.parentInfo).templateInfo=n,s.noted=!0,o=!1);let l=n.hostProps;if(re&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),oe||(s.parentInfo.noted=!0));else{let t="{";for(let e in l)_i(this,i,s,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return o}static _parseBindings(t,e){let i,s=[],o=0;for(;null!==(i=Ii.exec(t));){i.index>o&&s.push({literal:t.slice(o,i.index)});let r=i[1][0],n=Boolean(i[2]),a=i[3].trim(),l=!1,h="",c=-1;"{"==r&&(c=a.indexOf("::"))>0&&(h=a.substring(c+2),a=a.substring(0,c),l=!0);let u=Mi(a),d=[];if(u){let{args:t,methodName:i}=u;for(let e=0;e<t.length;e++){let i=t[e];i.literal||d.push(i)}let s=e.dynamicFns;(s&&s[i]||u.static)&&(d.push(i),u.dynamicFn=!0)}else d.push(a);s.push({source:a,mode:r,negate:n,customEvent:l,signature:u,dependencies:d,event:h}),o=Ii.lastIndex}if(o&&o<t.length){let e=t.substring(o);e&&s.push({literal:e})}return s.length?s:null}static _evaluateBinding(t,e,i,s,o,r){let n;return n=e.signature?zi(t,i,s,0,e.signature):i!=e.source?Pe(t,e.source):r&&Ae(i)?Pe(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Li=[],Ri=le((t=>{const e=Ge(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof o?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
|
|
1566
|
-
/**
|
|
1567
|
-
@license
|
|
1568
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1569
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1570
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1571
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1572
|
-
Code distributed by Google as part of the polymer project is also
|
|
1573
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1574
|
-
*/
|
|
1575
|
-
function(t){const e={};for(let i in t){const s=t[i];e[i]="function"==typeof s?{type:s}:s}return e}(i))}t.__ownProperties=e}return t.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=s(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,s(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o})),Wi=window.ShadyCSS&&window.ShadyCSS.cssBuild,qi=le((t=>{const e=Ri(Ui(t));function i(t,e,i,s){i.computed&&(i.readOnly=!0),i.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,i.computed,s)),i.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!i.computed):!1===i.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),i.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===i.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),i.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===i.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),i.observer&&t._createPropertyObserver(e,i.observer,s[i.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):Xt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)i(this.prototype,e,t[e],t)}static createObservers(t,e){const i=this.prototype;for(let s=0;s<t.length;s++)i._createMethodObserver(t[s],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!Vt||Qt)&&(e=pe.import(t,"template"),Vt&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=$t(t.url);else{const t=pe.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Zt,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let s=e[i];"value"in s&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[i]=s)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Yt(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const i=this.importPath;(function(t,e,i,s){if(!Wi){const o=e.content.querySelectorAll("style"),r=xe(e),n=function(t){let e=be(t);return e?_e(e):[]}(i),a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let o=n[i];o.textContent=t._processStyleText(o.textContent,s),e.content.insertBefore(o,a)}let l=0;for(let e=0;e<r.length;e++){let i=r[e],n=o[l];n!==i?(i=i.cloneNode(!0),n.parentNode.insertBefore(i,n)):l++,i.textContent=t._processStyleText(i.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,i),ne&&Wi&&Jt){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}})(this,e,t,i?Ht(i):""),this.prototype._bindTemplate(e)}}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(t){const e=ke(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ee&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.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(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=Ht(this.importPath)),Ht(t,e)}static _parseTemplateContent(t,i,s){return i.dynamicFns=i.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,i,s)}static _addTemplatePropertyEffect(t,i,s){return!te||i in this._properties||s.info.part.signature&&s.info.part.signature.static||s.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,i,s)}}})),Gi=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Hi{constructor(t,e){Ji(t,e);const i=e.reduce(((e,i,s)=>e+Yi(i)+t[s+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Yi(t){if(t instanceof Hi)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const $i=function(t,...e){Ji(t,e);const i=document.createElement("template");let s=e.reduce(((e,i,s)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Hi)return Yi(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(i)+t[s+1]),t[0]);return Gi&&(s=Gi.createHTML(s)),i.innerHTML=s,i},Ji=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")},Zi=qi(HTMLElement),Ki=[];function Vi(t,e,i=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=i&&t.removeAttribute("dir")}function Qi(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const t=Qi();Ki.forEach((e=>{Vi(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Xi=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Vi(this,Qi(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),"dir"!==t)return;const s=Qi(),o=i===s&&-1===Ki.indexOf(this),r=!i&&e&&-1===Ki.indexOf(this),n=i!==s&&e===s;o||r?(this.__subscribe(),Vi(this,s,i)):n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ki.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){("dir"!==i||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){"dir"!==t||e?super._attributeToProperty(t,e,i):this.dir=""}__subscribe(){Ki.includes(this)||Ki.push(this)}__unsubscribe(){Ki.includes(this)&&Ki.splice(Ki.indexOf(this),1)}}
|
|
1576
|
-
/**
|
|
1577
|
-
* @license
|
|
1578
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1579
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1580
|
-
*/,ts=t=>class extends t{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",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}
|
|
1581
|
-
/**
|
|
1582
|
-
* @license
|
|
1583
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1584
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1585
|
-
*/;
|
|
1586
|
-
/**
|
|
1587
|
-
* @license
|
|
1588
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1589
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1590
|
-
*/
|
|
1591
|
-
At("vaadin-input-container",f`
|
|
1592
|
-
:host {
|
|
1593
|
-
display: flex;
|
|
1594
|
-
align-items: center;
|
|
1595
|
-
flex: 0 1 auto;
|
|
1596
|
-
border-radius:
|
|
1597
|
-
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
1598
|
-
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
|
|
1599
|
-
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
|
|
1600
|
-
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
|
|
1601
|
-
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
|
|
1602
|
-
--_border-radius: var(--vaadin-input-field-border-radius, 0);
|
|
1603
|
-
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
1604
|
-
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
1605
|
-
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
:host([dir='rtl']) {
|
|
1609
|
-
border-radius:
|
|
1610
|
-
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
1611
|
-
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
|
|
1612
|
-
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
|
|
1613
|
-
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
|
|
1614
|
-
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
:host([hidden]) {
|
|
1618
|
-
display: none !important;
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
/* Reset the native input styles */
|
|
1622
|
-
::slotted(input) {
|
|
1623
|
-
-webkit-appearance: none;
|
|
1624
|
-
-moz-appearance: none;
|
|
1625
|
-
flex: auto;
|
|
1626
|
-
white-space: nowrap;
|
|
1627
|
-
overflow: hidden;
|
|
1628
|
-
width: 100%;
|
|
1629
|
-
height: 100%;
|
|
1630
|
-
outline: none;
|
|
1631
|
-
margin: 0;
|
|
1632
|
-
padding: 0;
|
|
1633
|
-
border: 0;
|
|
1634
|
-
border-radius: 0;
|
|
1635
|
-
min-width: 0;
|
|
1636
|
-
font: inherit;
|
|
1637
|
-
line-height: normal;
|
|
1638
|
-
color: inherit;
|
|
1639
|
-
background-color: transparent;
|
|
1640
|
-
/* Disable default invalid style in Firefox */
|
|
1641
|
-
box-shadow: none;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
::slotted(*) {
|
|
1645
|
-
flex: none;
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
::slotted(:is(input, textarea))::placeholder {
|
|
1649
|
-
/* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
|
|
1650
|
-
/* because ::slotted(...)::placeholder does not work in Safari. */
|
|
1651
|
-
font: inherit;
|
|
1652
|
-
color: inherit;
|
|
1653
|
-
/* Override default opacity in Firefox */
|
|
1654
|
-
opacity: 1;
|
|
1655
|
-
}
|
|
1656
|
-
`,{moduleId:"vaadin-input-container-styles"});class es extends(ts(Nt(Xi(Zi)))){static get is(){return"vaadin-input-container"}static get template(){return $i`
|
|
1657
|
-
<slot name="prefix"></slot>
|
|
1658
|
-
<slot></slot>
|
|
1659
|
-
<slot name="suffix"></slot>
|
|
1660
|
-
`}}l(es);
|
|
1661
|
-
/**
|
|
1662
|
-
* @license
|
|
1663
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1664
|
-
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1665
|
-
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1666
|
-
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1667
|
-
* Code distributed by Google as part of the polymer project is also
|
|
1668
|
-
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1669
|
-
*/
|
|
1670
|
-
let is=0,ss=0;const os=[];let rs=!1;const ns={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},as={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},ls={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},hs={run(t){rs||(rs=!0,queueMicrotask((()=>function(){rs=!1;const t=os.length;for(let e=0;e<t;e++){const t=os[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}os.splice(0,t),ss+=t}()))),os.push(t);const e=is;return is+=1,e},cancel(t){const e=t-ss;if(e>=0){if(!os[e])throw new Error(`invalid async handle: ${t}`);os[e]=null}}},cs=!1,us=t=>t,ds="string"==typeof document.head.style.touchAction,ps="__polymerGestures",ms="__polymerGesturesHandled",fs="__polymerGesturesTouchAction",vs=["mousedown","mousemove","mouseup","click"],bs=[0,1,4,2],gs=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function ys(t){return vs.indexOf(t)>-1}let ws=!1;function xs(t){if(!ys(t)&&"touchend"!==t)return ds&&ws&&cs?{passive:!0}:void 0}!function(){try{const t=Object.defineProperty({},"passive",{get(){ws=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const _s=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),ks={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function As(t){const e=t.type;if(!ys(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!gs&&(e=bs[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const Cs={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ss(t,e,i){t.movefn=e,t.upfn=i,document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)}function Ts(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const zs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Ns={},Ps=[];function Es(t){const e=zs(t);return e.length>0?e[0]:t.target}function Is(t){const e=t.type,i=t.currentTarget[ps];if(!i)return;const s=i[e];if(!s)return;if(!t[ms]&&(t[ms]={},e.startsWith("touch"))){const i=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Cs.touch.id=i.identifier),Cs.touch.id!==i.identifier)return;ds||"touchstart"!==e&&"touchmove"!==e||function(t){const e=t.changedTouches[0],i=t.type;if("touchstart"===i)Cs.touch.x=e.clientX,Cs.touch.y=e.clientY,Cs.touch.scrollDecided=!1;else if("touchmove"===i){if(Cs.touch.scrollDecided)return;Cs.touch.scrollDecided=!0;const i=function(t){let e="auto";const i=zs(t);for(let t,s=0;s<i.length;s++)if(t=i[s],t[fs]){e=t[fs];break}return e}(t);let s=!1;const o=Math.abs(Cs.touch.x-e.clientX),r=Math.abs(Cs.touch.y-e.clientY);t.cancelable&&("none"===i?s=!0:"pan-x"===i?s=r>o:"pan-y"===i&&(s=o>r)),s?t.preventDefault():Ds("track")}}(t)}const o=t[ms];if(!o.skip){for(let e,i=0;i<Ps.length;i++)e=Ps[i],s[e.name]&&!o[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let i,r=0;r<Ps.length;r++)i=Ps[r],s[i.name]&&!o[i.name]&&(o[i.name]=!0,i[e](t))}}function Os(t,e,i){return!!Ns[e]&&(function(t,e,i){const s=Ns[e],o=s.deps,r=s.name;let n=t[ps];n||(t[ps]=n={});for(let e,i,s=0;s<o.length;s++)e=o[s],_s&&ys(e)&&"click"!==e||(i=n[e],i||(n[e]=i={_count:0}),0===i._count&&t.addEventListener(e,Is,xs(e)),i[r]=(i[r]||0)+1,i._count=(i._count||0)+1);t.addEventListener(e,i),s.touchAction&&function(t,e){ds&&t instanceof HTMLElement&&hs.run((()=>{t.style.touchAction=e})),t[fs]=e}(t,s.touchAction)}(t,e,i),!0)}function Ms(t){Ps.push(t),t.emits.forEach((e=>{Ns[e]=t}))}function Bs(t,e,i){const s=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=i,us(t).dispatchEvent(s),s.defaultPrevented){const t=i.preventer||i.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function Ds(t){const e=function(t){for(let e,i=0;i<Ps.length;i++){e=Ps[i];for(let i,s=0;s<e.emits.length;s++)if(i=e.emits[s],i===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function js(t,e,i,s){e&&Bs(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent:t=>Ds(t)})}function Fs(t,e,i){if(t.prevent)return!1;if(t.started)return!0;const s=Math.abs(t.x-e),o=Math.abs(t.y-i);return s>=5||o>=5}function Us(t,e,i){if(!e)return;const s=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1];let r,n=0;s&&(r=o.x-s.x,n=o.y-s.y),Bs(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o.x-t.x,dy:o.y-t.y,ddx:r,ddy:n,sourceEvent:i,hover:()=>function(t,e){let i=document.elementFromPoint(t,e),s=i;for(;s&&s.shadowRoot&&!window.ShadyDOM;){const o=s;if(s=s.shadowRoot.elementFromPoint(t,e),o===s)break;s&&(i=s)}return i}(i.clientX,i.clientY)})}function Ls(t,e,i){const s=Math.abs(e.clientX-t.x),o=Math.abs(e.clientY-t.y),r=Es(i||e);!r||ks[r.localName]&&r.hasAttribute("disabled")||(isNaN(s)||isNaN(o)||s<=25&&o<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=Es(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const i=e.getBoundingClientRect(),s=t.pageX,o=t.pageY;return!(s>=i.left&&s<=i.right&&o>=i.top&&o<=i.bottom)}return!1}(e))&&(t.prevent||Bs(r,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i}))}
|
|
1671
|
-
/**
|
|
1672
|
-
* @license
|
|
1673
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1674
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1675
|
-
*/Ms({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ts(this.info)},mousedown(t){if(!As(t))return;const e=Es(t),i=this;Ss(this.info,(t=>{As(t)||(js("up",e,t),Ts(i.info))}),(t=>{As(t)&&js("up",e,t),Ts(i.info)})),js("down",e,t)},touchstart(t){js("down",Es(t),t.changedTouches[0],t)},touchend(t){js("up",Es(t),t.changedTouches[0],t)}}),Ms({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Ts(this.info)},mousedown(t){if(!As(t))return;const e=Es(t),i=this,s=t=>{const s=t.clientX,o=t.clientY;Fs(i.info,s,o)&&(i.info.state=i.info.started?"mouseup"===t.type?"end":"track":"start","start"===i.info.state&&Ds("tap"),i.info.addMove({x:s,y:o}),As(t)||(i.info.state="end",Ts(i.info)),e&&Us(i.info,e,t),i.info.started=!0)};Ss(this.info,s,(t=>{i.info.started&&s(t),Ts(i.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=Es(t),i=t.changedTouches[0],s=i.clientX,o=i.clientY;Fs(this.info,s,o)&&("start"===this.info.state&&Ds("tap"),this.info.addMove({x:s,y:o}),Us(this.info,e,i),this.info.state="track",this.info.started=!0)},touchend(t){const e=Es(t),i=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),Us(this.info,e,i))}}),Ms({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){As(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){As(t)&&Ls(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){Ls(this.info,t.changedTouches[0],t)}});const Rs=le((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),Ws=le((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),qs=t=>class extends(Rs(Ws(t))){get _activeKeys(){return[" "]}ready(){super.ready(),Os(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),Os(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
|
|
1676
|
-
/**
|
|
1677
|
-
* @license
|
|
1678
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1679
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1680
|
-
*/;
|
|
1681
|
-
/**
|
|
1682
|
-
* @license
|
|
1683
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1684
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1685
|
-
*/let Gs=!1;function Hs(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Ys(){return Gs}function $s(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const i=window.getComputedStyle(t);return"hidden"===i.visibility||"none"===i.display}function Js(t,e){const i=Math.max(t.tabIndex,0),s=Math.max(e.tabIndex,0);return 0===i||0===s?s>i:i>s}function Zs(t){const e=t.length;if(e<2)return t;const i=Math.ceil(e/2);return function(t,e){const i=[];for(;t.length>0&&e.length>0;)Js(t[0],e[0])?i.push(e.shift()):i.push(t.shift());return i.concat(t,e)}(Zs(t.slice(0,i)),Zs(t.slice(i)))}function Ks(t){return null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||$s(t)}function Vs(t){return t.getRootNode().activeElement===t}function Qs(t,e){if(t.nodeType!==Node.ELEMENT_NODE||$s(t))return!1;const i=t,s=function(t){if(!function(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(i);let o=s>0;s>=0&&e.push(i);let r=[];return r="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...r].forEach((t=>{o=Qs(t,e)||o})),o}window.addEventListener("keydown",(()=>{Gs=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{Gs=!1}),{capture:!0});
|
|
1686
|
-
/**
|
|
1687
|
-
* @license
|
|
1688
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1689
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1690
|
-
*/
|
|
1691
|
-
const Xs=le((t=>class extends t{get _keyboardActive(){return Ys()}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),to=t=>class extends(qs(Xs(t))){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return void 0!==this._value?this._value:this.textContent.trim()}set value(t){this._value=t}ready(){super.ready();const t=this.getAttribute("value");null!==t&&(this.value=t)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(t){return!(this.disabled||"keydown"===t.type&&t.defaultPrevented)}_selectedChanged(t){this.setAttribute("aria-selected",t)}_disabledChanged(t){super._disabledChanged(t),t&&(this.selected=!1,this.blur())}_onKeyDown(t){super._onKeyDown(t),this._activeKeys.includes(t.key)&&!t.defaultPrevented&&(t.preventDefault(),this.click())}}
|
|
1692
|
-
/**
|
|
1693
|
-
* @license
|
|
1694
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1695
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1696
|
-
*/;
|
|
1697
|
-
/**
|
|
1698
|
-
* @license
|
|
1699
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1700
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1701
|
-
*/class eo extends(to(Nt(Xi(Zi)))){static get is(){return"vaadin-select-item"}static get template(){return $i`
|
|
1702
|
-
<style>
|
|
1703
|
-
:host {
|
|
1704
|
-
display: inline-block;
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
:host([hidden]) {
|
|
1708
|
-
display: none !important;
|
|
1709
|
-
}
|
|
1710
|
-
</style>
|
|
1711
|
-
<span part="checkmark" aria-hidden="true"></span>
|
|
1712
|
-
<div part="content">
|
|
1713
|
-
<slot></slot>
|
|
1714
|
-
</div>
|
|
1715
|
-
`}ready(){super.ready(),this.setAttribute("role","option")}}l(eo);
|
|
1716
|
-
/**
|
|
1717
|
-
@license
|
|
1718
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1719
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1720
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1721
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1722
|
-
Code distributed by Google as part of the polymer project is also
|
|
1723
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1724
|
-
*/
|
|
1725
|
-
const io=new Set;class so{static debounce(t,e,i){return t instanceof so?t._cancelAsync():t=new so,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,io.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),io.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}function oo(t){const e=[];let i;return"slot"===t.localName?i=t.assignedElements():(e.push(t),i=[...t.children]),i.forEach((t=>e.push(...oo(t)))),e}function ro(t){return t?new Set(t.split(" ")):new Set}function no(t){return t?[...t].join(" "):""}function ao(t,e,i){const s=ro(t.getAttribute(e));s.add(i),t.setAttribute(e,no(s))}
|
|
1726
|
-
/**
|
|
1727
|
-
* @license
|
|
1728
|
-
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
1729
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1730
|
-
*/
|
|
1731
|
-
class lo{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=[],s=[];t.length&&(e=t.filter((t=>!this._storedNodes.includes(t)))),this._storedNodes.length&&this._storedNodes.forEach(((e,o)=>{const r=t.indexOf(e);-1===r?i.push(e):r!==o&&s.push(e)})),(e.length||i.length||s.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:s,removedNodes:i}),this._storedNodes=t}}
|
|
1732
|
-
/**
|
|
1733
|
-
* @license
|
|
1734
|
-
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1735
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1736
|
-
*/const ho=t=>class extends(Ws(t)){get focused(){return(this._getItems()||[]).find(Vs)}get _vertical(){return!0}focus(){const t=this._getItems();if(Array.isArray(t)){const e=this._getAvailableIndex(t,0,null,(t=>!Ks(t)));e>=0&&this._focus(e)}}_getItems(){return Array.from(this.children)}_onKeyDown(t){if(super._onKeyDown(t),t.metaKey||t.ctrlKey)return;const{key:e}=t,i=this._getItems()||[],s=i.indexOf(this.focused);let o,r;const n=this._vertical||"rtl"!==this.getAttribute("dir")?1:-1;this.__isPrevKey(e)?(r=-n,o=s-n):this.__isNextKey(e)?(r=n,o=s+n):"Home"===e?(r=1,o=0):"End"===e&&(r=-1,o=i.length-1),o=this._getAvailableIndex(i,o,r,(t=>!Ks(t))),o>=0&&(t.preventDefault(),this._focus(o,!0))}__isPrevKey(t){return this._vertical?"ArrowUp"===t:"ArrowLeft"===t}__isNextKey(t){return this._vertical?"ArrowDown"===t:"ArrowRight"===t}_focus(t,e=!1){const i=this._getItems();this._focusItem(i[t],e)}_focusItem(t){t&&(t.focus(),t.setAttribute("focus-ring",""))}_getAvailableIndex(t,e,i,s){const o=t.length;let r=e;for(let e=0;"number"==typeof r&&e<o;e+=1,r+=i||1){r<0?r=o-1:r>=o&&(r=0);const e=t[r];if(!e.hasAttribute("disabled")&&this.__isMatchingItem(e,s))return r}return-1}__isMatchingItem(t,e){return"function"!=typeof e||e(t)}}
|
|
1737
|
-
/**
|
|
1738
|
-
* @license
|
|
1739
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1740
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1741
|
-
*/,co=t=>class extends(ho(t)){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&"rtl"===this.getAttribute("dir")}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return"horizontal"!==this.orientation}focus(){this._observer&&this._observer.flush();const t=Array.isArray(this.items)?this.items:[],e=this._getAvailableIndex(t,0,null,(t=>0===t.tabIndex&&!Ks(t)));e>=0?this._focus(e):super.focus()}ready(){super.ready(),this.addEventListener("click",(t=>this._onClick(t)));const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new lo(t,(()=>{this._setItems(this._filterItems(oo(this)))}))}_getItems(){return this.items}_enhanceItems(t,e,i,s){if(!s&&t){this.setAttribute("aria-orientation",e||"vertical"),t.forEach((t=>{e?t.setAttribute("orientation",e):t.removeAttribute("orientation")})),this._setFocusable(i<0||!i?0:i);const s=t[i];t.forEach((t=>{t.selected=t===s})),s&&!s.disabled&&this._scrollToItem(i)}}_filterItems(t){return t.filter((t=>t._hasVaadinItemMixin))}_onClick(t){if(t.metaKey||t.shiftKey||t.ctrlKey||t.defaultPrevented)return;const e=this._filterItems(t.composedPath())[0];let i;e&&!e.disabled&&(i=this.items.indexOf(e))>=0&&(this.selected=i)}_searchKey(t,e){return this._searchReset=so.debounce(this._searchReset,ns.after(500),(()=>{this._searchBuf=""})),this._searchBuf+=e.toLowerCase(),this.items.some((t=>this.__isMatchingKey(t)))||(this._searchBuf=e.toLowerCase()),this._getAvailableIndex(this.items,1===this._searchBuf.length?t+1:t,1,(t=>this.__isMatchingKey(t)&&"none"!==getComputedStyle(t).display))}__isMatchingKey(t){return t.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(t){if(t.metaKey||t.ctrlKey)return;const e=t.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(e)&&1===e.length){const t=this._searchKey(i,e);t>=0&&this._focus(t)}else super._onKeyDown(t)}_isItemHidden(t){return"none"===getComputedStyle(t).display}_setFocusable(t){t=this._getAvailableIndex(this.items,t,1);const e=this.items[t];this.items.forEach((t=>{t.tabIndex=t===e?0:-1}))}_focus(t){this.items.forEach(((e,i)=>{e.focused=i===t})),this._setFocusable(t),this._scrollToItem(t),super._focus(t)}_scrollToItem(t){const e=this.items[t];if(!e)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],s=this._scrollerElement.getBoundingClientRect(),o=(this.items[t+1]||e).getBoundingClientRect(),r=(this.items[t-1]||e).getBoundingClientRect();let n=0;!this._isRTL&&o[i[1]]>=s[i[1]]||this._isRTL&&o[i[1]]<=s[i[1]]?n=o[i[1]]-s[i[1]]:(!this._isRTL&&r[i[0]]<=s[i[0]]||this._isRTL&&r[i[0]]>=s[i[0]])&&(n=r[i[0]]-s[i[0]]),this._scroll(n)}_scroll(t){if(this._vertical)this._scrollerElement.scrollTop+=t;else{const e=this.getAttribute("dir")||"ltr",i=
|
|
1742
|
-
/**
|
|
1743
|
-
* @license
|
|
1744
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1745
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1746
|
-
*/
|
|
1747
|
-
function(t,e){const{scrollLeft:i}=t;return"rtl"!==e?i:t.scrollWidth-t.clientWidth+i}(this._scrollerElement,e)+t;!function(t,e,i){t.scrollLeft="rtl"!==e?i:t.clientWidth-t.scrollWidth+i}
|
|
1748
|
-
/**
|
|
1749
|
-
* @license
|
|
1750
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1751
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1752
|
-
*/(this._scrollerElement,e,i)}}}
|
|
1753
|
-
/**
|
|
1754
|
-
* @license
|
|
1755
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1756
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1757
|
-
*/,uo=le((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}));
|
|
1758
|
-
/**
|
|
1759
|
-
* @license
|
|
1760
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1761
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1762
|
-
*/
|
|
1763
|
-
class po extends(co(Nt(Xi(uo(Zi))))){static get is(){return"vaadin-select-list-box"}static get template(){return $i`
|
|
1764
|
-
<style>
|
|
1765
|
-
:host {
|
|
1766
|
-
display: flex;
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
:host([hidden]) {
|
|
1770
|
-
display: none !important;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
[part='items'] {
|
|
1774
|
-
height: 100%;
|
|
1775
|
-
width: 100%;
|
|
1776
|
-
overflow-y: auto;
|
|
1777
|
-
-webkit-overflow-scrolling: touch;
|
|
1778
|
-
}
|
|
1779
|
-
</style>
|
|
1780
|
-
<div part="items">
|
|
1781
|
-
<slot></slot>
|
|
1782
|
-
</div>
|
|
1783
|
-
`}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}l(po);
|
|
1784
|
-
/**
|
|
1785
|
-
* @license
|
|
1786
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1787
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1788
|
-
*/
|
|
1789
|
-
const mo=f`
|
|
1790
|
-
:host {
|
|
1791
|
-
z-index: 200;
|
|
1792
|
-
position: fixed;
|
|
1793
|
-
|
|
1794
|
-
/* Despite of what the names say, <vaadin-overlay> is just a container
|
|
1795
|
-
for position/sizing/alignment. The actual overlay is the overlay part. */
|
|
1796
|
-
|
|
1797
|
-
/* Default position constraints: the entire viewport. Note: themes can
|
|
1798
|
-
override this to introduce gaps between the overlay and the viewport. */
|
|
1799
|
-
inset: 0;
|
|
1800
|
-
bottom: var(--vaadin-overlay-viewport-bottom);
|
|
1801
|
-
|
|
1802
|
-
/* Use flexbox alignment for the overlay part. */
|
|
1803
|
-
display: flex;
|
|
1804
|
-
flex-direction: column; /* makes dropdowns sizing easier */
|
|
1805
|
-
/* Align to center by default. */
|
|
1806
|
-
align-items: center;
|
|
1807
|
-
justify-content: center;
|
|
1808
|
-
|
|
1809
|
-
/* Allow centering when max-width/max-height applies. */
|
|
1810
|
-
margin: auto;
|
|
1811
|
-
|
|
1812
|
-
/* The host is not clickable, only the overlay part is. */
|
|
1813
|
-
pointer-events: none;
|
|
1814
|
-
|
|
1815
|
-
/* Remove tap highlight on touch devices. */
|
|
1816
|
-
-webkit-tap-highlight-color: transparent;
|
|
1817
|
-
|
|
1818
|
-
/* CSS API for host */
|
|
1819
|
-
--vaadin-overlay-viewport-bottom: 0;
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
:host([hidden]),
|
|
1823
|
-
:host(:not([opened]):not([closing])),
|
|
1824
|
-
:host(:not([opened]):not([closing])) [part='overlay'] {
|
|
1825
|
-
display: none !important;
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
[part='overlay'] {
|
|
1829
|
-
-webkit-overflow-scrolling: touch;
|
|
1830
|
-
overflow: auto;
|
|
1831
|
-
pointer-events: auto;
|
|
1832
|
-
|
|
1833
|
-
/* Prevent overflowing the host */
|
|
1834
|
-
max-width: 100%;
|
|
1835
|
-
box-sizing: border-box;
|
|
1836
|
-
|
|
1837
|
-
-webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
[part='backdrop'] {
|
|
1841
|
-
z-index: -1;
|
|
1842
|
-
content: '';
|
|
1843
|
-
background: rgba(0, 0, 0, 0.5);
|
|
1844
|
-
position: fixed;
|
|
1845
|
-
inset: 0;
|
|
1846
|
-
pointer-events: auto;
|
|
1847
|
-
}
|
|
1848
|
-
`
|
|
1849
|
-
/**
|
|
1850
|
-
@license
|
|
1851
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1852
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1853
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1854
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1855
|
-
Code distributed by Google as part of the polymer project is also
|
|
1856
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1857
|
-
*/;let fo=!1,vo=[],bo=[];function go(t){const e=t[0],i=t[1],s=t[2];try{i.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}
|
|
1858
|
-
/**
|
|
1859
|
-
* @license
|
|
1860
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1861
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1862
|
-
*/
|
|
1863
|
-
const yo=t=>t.test(navigator.userAgent),wo=t=>t.test(navigator.platform);yo(/Android/u),yo(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),yo(/Firefox/u);const xo=wo(/^iPad/u)||wo(/^Mac/u)&&navigator.maxTouchPoints>1,_o=wo(/^iPhone/u)||xo;yo(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();
|
|
1864
|
-
/**
|
|
1865
|
-
* @license
|
|
1866
|
-
* Copyright (c) 2017 Anton Korzunov
|
|
1867
|
-
* SPDX-License-Identifier: MIT
|
|
1868
|
-
*/
|
|
1869
|
-
let ko=new WeakMap,Ao=new WeakMap,Co={},So=0;const To=t=>t&&t.nodeType===Node.ELEMENT_NODE,zo=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)};
|
|
1870
|
-
/**
|
|
1871
|
-
* @license
|
|
1872
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1873
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1874
|
-
*/
|
|
1875
|
-
class No{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t}showModal(){const t=this.callback();this.__showOthers=((t,e=document.body,i="data-aria-hidden")=>{const s=Array.from(Array.isArray(t)?t:[t]);return e&&s.push(...Array.from(e.querySelectorAll("[aria-live]"))),((t,e,i,s)=>{const o=((t,e)=>To(t)?e.map((e=>{if(!To(e))return zo(e,"is not a valid element"),null;let i=e;for(;i&&i!==t;){if(t.contains(i))return e;i=i.getRootNode().host}return zo(e,"is not contained inside",t),null})).filter((t=>Boolean(t))):(zo(t,"is not a valid element"),[]))(e,Array.isArray(t)?t:[t]);Co[i]||(Co[i]=new WeakMap);const r=Co[i],n=[],a=new Set,l=new Set(o),h=t=>{if(!t||a.has(t))return;a.add(t);const e=t.assignedSlot;e&&h(e),h(t.parentNode||t.host)};o.forEach(h);const c=t=>{if(!t||l.has(t))return;const e=t.shadowRoot;(e?[...t.children,...e.children]:[...t.children]).forEach((t=>{if(!["template","script","style"].includes(t.localName))if(a.has(t))c(t);else{const e=t.getAttribute(s),o=null!==e&&"false"!==e,a=(ko.get(t)||0)+1,l=(r.get(t)||0)+1;ko.set(t,a),r.set(t,l),n.push(t),1===a&&o&&Ao.set(t,!0),1===l&&t.setAttribute(i,"true"),o||t.setAttribute(s,"true")}}))};return c(e),a.clear(),So+=1,()=>{n.forEach((t=>{const e=ko.get(t)-1,o=r.get(t)-1;ko.set(t,e),r.set(t,o),e||(Ao.has(t)?Ao.delete(t):t.removeAttribute(s)),o||t.removeAttribute(i)})),So-=1,So||(ko=new WeakMap,ko=new WeakMap,Ao=new WeakMap,Co={})}})(s,e,i,"aria-hidden")})(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
|
|
1876
|
-
/**
|
|
1877
|
-
* @license
|
|
1878
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1879
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1880
|
-
*/class Po{saveFocus(t){this.focusNode=t||Hs()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=!!t&&t.preventScroll;Hs()===document.body?setTimeout((()=>e.focus({preventScroll:i}))):e.focus({preventScroll:i}),this.focusNode=null}}
|
|
1881
|
-
/**
|
|
1882
|
-
* @license
|
|
1883
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1884
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1885
|
-
*/const Eo=[];class Io{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return Qs(t,e)?Zs(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Vs).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Eo.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Eo.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(Eo).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
|
|
1886
|
-
/**
|
|
1887
|
-
* @license
|
|
1888
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1889
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1890
|
-
*/const Oo=t=>class extends(uo(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new No(this),this.__focusTrapController=new Io(this),this.__focusRestorationController=new Po}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!Ys();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Hs();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
|
|
1891
|
-
/**
|
|
1892
|
-
* @license
|
|
1893
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1894
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1895
|
-
*/,Mo=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),Bo=()=>Mo().filter((t=>t.$.overlay)),Do=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Bo().pop())()}bringToFront(){let t="";const e=Mo().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Bo().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Bo();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
|
|
1896
|
-
/**
|
|
1897
|
-
* @license
|
|
1898
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1899
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1900
|
-
*/,jo=t=>class extends(Oo(Do(t))){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),_o&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&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(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e>t&&i>t?i-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,i,s){const o=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;const r=this._oldRenderer!==t,n=void 0!==this._oldRenderer;this._oldRenderer=t;const a=this._oldOpened!==s;this._oldOpened=s,r&&n&&(this.innerHTML="",delete this._$litPart$),s&&t&&(r||a||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){var i;t?(this._saveFocus(),this._animatedOpening(),i=()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)},fo||(fo=!0,requestAnimationFrame((function(){fo=!1,function(t){for(;t.length;)go(t.shift())}(vo),setTimeout((function(){!function(t){for(let e=0,i=t.length;e<i;e++)go(t.shift())}(bo)}))}))),bo.push([this,i,undefined]),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const i=`__${t}Handler`,s=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",s),delete this[i])};this[i]=s,this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
|
|
1901
|
-
/**
|
|
1902
|
-
* @license
|
|
1903
|
-
* Copyright (c) 2024 Vaadin Ltd.
|
|
1904
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1905
|
-
*/,Fo={start:"top",end:"bottom"},Uo={start:"left",end:"right"},Lo=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Ro=t=>class extends t{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.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)})),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let i=null;const s=document.documentElement;function o(){i&&i.disconnect(),i=null}return function r(n=!1,a=1){o();const{left:l,top:h,width:c,height:u}=t.getBoundingClientRect();if(n||e(),!c||!u)return;const d={rootMargin:`${-Math.floor(h)}px ${-Math.floor(s.clientWidth-(l+c))}px ${-Math.floor(s.clientHeight-(h+u))}px ${-Math.floor(l)}px`,threshold:Math.max(0,Math.min(1,a))||1};let p=!0;i=new IntersectionObserver((function(t){let e=t[0].intersectionRatio;if(e!==a){if(!p)return r();0===e&&(e=1e-7),r(!1,e)}p=!1}),d),i.observe(t)}(!0),o}
|
|
1906
|
-
/**
|
|
1907
|
-
* @license
|
|
1908
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1909
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1910
|
-
*/(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Lo.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Lo.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened)return void(this.opened=!1);const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL,s=this.__shouldAlignStartHorizontally(t,i),o=!i&&s||i&&!s;this.style.alignItems=o?"flex-start":"flex-end";const r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,Fo,this,e),a=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,Uo,this,s);Object.assign(this.style,n,a),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,i,s,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,Uo)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Fo)}__shouldAlignStart(t,e,i,s,o,r,n){const a=i-t[r?n.end:n.start]-s[n.end],l=t[r?n.start:n.end]-s[n.start],h=o?a:l;return o===(h>(o?l:a)||h>e)}__adjustBottomProperty(t,e,i){let s;if(t===e.end){if(e.end===Fo.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(s=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===Uo.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(s=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,i,s,o,r){const n=r?s.start:s.end,a=r?s.end:s.start,l=parseFloat(o.style[n]||getComputedStyle(o)[n]),h=this.__adjustBottomProperty(n,s,l),c=h?`${h}px`:`${l+(e[r?s.start:s.end]-t[i===r?s.end:s.start])*(r?-1:1)}px`;return{[n]:c,[a]:""}}}
|
|
1911
|
-
/**
|
|
1912
|
-
* @license
|
|
1913
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1914
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1915
|
-
*/,Wo=t=>class extends(Ro(jo(Xi(t)))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find((t=>"style"!==t.localName))}_updateOverlayWidth(t,e){if(t&&e){const t="--vaadin-select-overlay-width",i=getComputedStyle(e).getPropertyValue(t);""===i?this.style.removeProperty(t):this.style.setProperty(t,i)}}}
|
|
1916
|
-
/**
|
|
1917
|
-
* @license
|
|
1918
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1919
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1920
|
-
*/;At("vaadin-select-overlay",[mo,f`
|
|
1921
|
-
:host {
|
|
1922
|
-
align-items: flex-start;
|
|
1923
|
-
justify-content: flex-start;
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
:host(:not([phone])) [part='overlay'] {
|
|
1927
|
-
min-width: var(--vaadin-select-overlay-width, var(--vaadin-select-text-field-width));
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
@media (forced-colors: active) {
|
|
1931
|
-
[part='overlay'] {
|
|
1932
|
-
outline: 3px solid;
|
|
1933
|
-
}
|
|
1934
|
-
}
|
|
1935
|
-
`],{moduleId:"vaadin-select-overlay-styles"});class qo extends(Wo(Nt(Zi))){static get is(){return"vaadin-select-overlay"}static get template(){return $i`
|
|
1936
|
-
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
1937
|
-
<div part="overlay" id="overlay" tabindex="0">
|
|
1938
|
-
<div part="content" id="content">
|
|
1939
|
-
<slot></slot>
|
|
1940
|
-
</div>
|
|
1941
|
-
</div>
|
|
1942
|
-
`}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const t=this._getMenuElement();this.owner._assignMenuElement(t)}}}l(qo);
|
|
1943
|
-
/**
|
|
1944
|
-
* @license
|
|
1945
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1946
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1947
|
-
*/
|
|
1948
|
-
const Go=t=>class extends(Rs(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
|
|
1949
|
-
/**
|
|
1950
|
-
* @license
|
|
1951
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1952
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1953
|
-
*/,Ho=t=>class extends(qs(Go(Xs(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
|
|
1954
|
-
/**
|
|
1955
|
-
* @license
|
|
1956
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1957
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1958
|
-
*/;
|
|
1959
|
-
/**
|
|
1960
|
-
* @license
|
|
1961
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1962
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1963
|
-
*/
|
|
1964
|
-
At("vaadin-select-value-button",f`
|
|
1965
|
-
:host {
|
|
1966
|
-
display: inline-block;
|
|
1967
|
-
position: relative;
|
|
1968
|
-
outline: none;
|
|
1969
|
-
white-space: nowrap;
|
|
1970
|
-
-webkit-user-select: none;
|
|
1971
|
-
-moz-user-select: none;
|
|
1972
|
-
user-select: none;
|
|
1973
|
-
min-width: 0;
|
|
1974
|
-
width: 0;
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
::slotted(*) {
|
|
1978
|
-
padding-left: 0;
|
|
1979
|
-
padding-right: 0;
|
|
1980
|
-
flex: auto;
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
/* placeholder styles */
|
|
1984
|
-
::slotted(*:not([selected])) {
|
|
1985
|
-
line-height: 1;
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
.vaadin-button-container {
|
|
1989
|
-
display: inline-flex;
|
|
1990
|
-
align-items: center;
|
|
1991
|
-
justify-content: center;
|
|
1992
|
-
text-align: inherit;
|
|
1993
|
-
width: 100%;
|
|
1994
|
-
height: 100%;
|
|
1995
|
-
min-height: inherit;
|
|
1996
|
-
text-shadow: inherit;
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
[part='label'] {
|
|
2000
|
-
white-space: nowrap;
|
|
2001
|
-
overflow: hidden;
|
|
2002
|
-
text-overflow: ellipsis;
|
|
2003
|
-
width: 100%;
|
|
2004
|
-
line-height: inherit;
|
|
2005
|
-
}
|
|
2006
|
-
`,{moduleId:"vaadin-select-value-button-styles"});class Yo extends(Ho(Nt(Zi))){static get is(){return"vaadin-select-value-button"}static get template(){return $i`
|
|
2007
|
-
<div class="vaadin-button-container">
|
|
2008
|
-
<span part="label">
|
|
2009
|
-
<slot></slot>
|
|
2010
|
-
</span>
|
|
2011
|
-
</div>
|
|
2012
|
-
`}}l(Yo);
|
|
2013
|
-
/**
|
|
2014
|
-
* @license
|
|
2015
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2016
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2017
|
-
*/
|
|
2018
|
-
const $o=f`
|
|
2019
|
-
.sr-only {
|
|
2020
|
-
border: 0 !important;
|
|
2021
|
-
clip: rect(1px, 1px, 1px, 1px) !important;
|
|
2022
|
-
-webkit-clip-path: inset(50%) !important;
|
|
2023
|
-
clip-path: inset(50%) !important;
|
|
2024
|
-
height: 1px !important;
|
|
2025
|
-
margin: -1px !important;
|
|
2026
|
-
overflow: hidden !important;
|
|
2027
|
-
padding: 0 !important;
|
|
2028
|
-
position: absolute !important;
|
|
2029
|
-
width: 1px !important;
|
|
2030
|
-
white-space: nowrap !important;
|
|
2031
|
-
}
|
|
2032
|
-
`,Jo=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Zo=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ko(t,e){if("function"!=typeof t)return;const i=Jo.exec(t.toString());if(i)try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function Vo(){
|
|
2033
|
-
/*! vaadin-dev-mode:start
|
|
2034
|
-
(function () {
|
|
2035
|
-
'use strict';
|
|
2036
|
-
|
|
2037
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
2038
|
-
return typeof obj;
|
|
2039
|
-
} : function (obj) {
|
|
2040
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2041
|
-
};
|
|
2042
|
-
|
|
2043
|
-
var classCallCheck = function (instance, Constructor) {
|
|
2044
|
-
if (!(instance instanceof Constructor)) {
|
|
2045
|
-
throw new TypeError("Cannot call a class as a function");
|
|
2046
|
-
}
|
|
2047
|
-
};
|
|
2048
|
-
|
|
2049
|
-
var createClass = function () {
|
|
2050
|
-
function defineProperties(target, props) {
|
|
2051
|
-
for (var i = 0; i < props.length; i++) {
|
|
2052
|
-
var descriptor = props[i];
|
|
2053
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
2054
|
-
descriptor.configurable = true;
|
|
2055
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
2056
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
|
|
2060
|
-
return function (Constructor, protoProps, staticProps) {
|
|
2061
|
-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
2062
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2063
|
-
return Constructor;
|
|
2064
|
-
};
|
|
2065
|
-
}();
|
|
2066
|
-
|
|
2067
|
-
var getPolymerVersion = function getPolymerVersion() {
|
|
2068
|
-
return window.Polymer && window.Polymer.version;
|
|
2069
|
-
};
|
|
2070
|
-
|
|
2071
|
-
var StatisticsGatherer = function () {
|
|
2072
|
-
function StatisticsGatherer(logger) {
|
|
2073
|
-
classCallCheck(this, StatisticsGatherer);
|
|
2074
|
-
|
|
2075
|
-
this.now = new Date().getTime();
|
|
2076
|
-
this.logger = logger;
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
createClass(StatisticsGatherer, [{
|
|
2080
|
-
key: 'frameworkVersionDetectors',
|
|
2081
|
-
value: function frameworkVersionDetectors() {
|
|
2082
|
-
return {
|
|
2083
|
-
'Flow': function Flow() {
|
|
2084
|
-
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
2085
|
-
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
2086
|
-
return window.Vaadin.Flow.clients[key];
|
|
2087
|
-
}).filter(function (client) {
|
|
2088
|
-
return client.getVersionInfo;
|
|
2089
|
-
}).map(function (client) {
|
|
2090
|
-
return client.getVersionInfo().flow;
|
|
2091
|
-
});
|
|
2092
|
-
if (flowVersions.length > 0) {
|
|
2093
|
-
return flowVersions[0];
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
},
|
|
2097
|
-
'Vaadin Framework': function VaadinFramework() {
|
|
2098
|
-
if (window.vaadin && window.vaadin.clients) {
|
|
2099
|
-
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
2100
|
-
return client.getVersionInfo;
|
|
2101
|
-
}).map(function (client) {
|
|
2102
|
-
return client.getVersionInfo().vaadinVersion;
|
|
2103
|
-
});
|
|
2104
|
-
if (frameworkVersions.length > 0) {
|
|
2105
|
-
return frameworkVersions[0];
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
},
|
|
2109
|
-
'AngularJs': function AngularJs() {
|
|
2110
|
-
if (window.angular && window.angular.version && window.angular.version) {
|
|
2111
|
-
return window.angular.version.full;
|
|
2112
|
-
}
|
|
2113
|
-
},
|
|
2114
|
-
'Angular': function Angular() {
|
|
2115
|
-
if (window.ng) {
|
|
2116
|
-
var tags = document.querySelectorAll("[ng-version]");
|
|
2117
|
-
if (tags.length > 0) {
|
|
2118
|
-
return tags[0].getAttribute("ng-version");
|
|
2119
|
-
}
|
|
2120
|
-
return "Unknown";
|
|
2121
|
-
}
|
|
2122
|
-
},
|
|
2123
|
-
'Backbone.js': function BackboneJs() {
|
|
2124
|
-
if (window.Backbone) {
|
|
2125
|
-
return window.Backbone.VERSION;
|
|
2126
|
-
}
|
|
2127
|
-
},
|
|
2128
|
-
'React': function React() {
|
|
2129
|
-
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
2130
|
-
if (!!document.querySelector(reactSelector)) {
|
|
2131
|
-
// React does not publish the version by default
|
|
2132
|
-
return "unknown";
|
|
2133
|
-
}
|
|
2134
|
-
},
|
|
2135
|
-
'Ember': function Ember() {
|
|
2136
|
-
if (window.Em && window.Em.VERSION) {
|
|
2137
|
-
return window.Em.VERSION;
|
|
2138
|
-
} else if (window.Ember && window.Ember.VERSION) {
|
|
2139
|
-
return window.Ember.VERSION;
|
|
2140
|
-
}
|
|
2141
|
-
},
|
|
2142
|
-
'jQuery': function (_jQuery) {
|
|
2143
|
-
function jQuery() {
|
|
2144
|
-
return _jQuery.apply(this, arguments);
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
jQuery.toString = function () {
|
|
2148
|
-
return _jQuery.toString();
|
|
2149
|
-
};
|
|
2150
|
-
|
|
2151
|
-
return jQuery;
|
|
2152
|
-
}(function () {
|
|
2153
|
-
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
2154
|
-
return jQuery.prototype.jquery;
|
|
2155
|
-
}
|
|
2156
|
-
}),
|
|
2157
|
-
'Polymer': function Polymer() {
|
|
2158
|
-
var version = getPolymerVersion();
|
|
2159
|
-
if (version) {
|
|
2160
|
-
return version;
|
|
2161
|
-
}
|
|
2162
|
-
},
|
|
2163
|
-
'LitElement': function LitElement() {
|
|
2164
|
-
var version = window.litElementVersions && window.litElementVersions[0];
|
|
2165
|
-
if (version) {
|
|
2166
|
-
return version;
|
|
2167
|
-
}
|
|
2168
|
-
},
|
|
2169
|
-
'LitHtml': function LitHtml() {
|
|
2170
|
-
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
2171
|
-
if (version) {
|
|
2172
|
-
return version;
|
|
2173
|
-
}
|
|
2174
|
-
},
|
|
2175
|
-
'Vue.js': function VueJs() {
|
|
2176
|
-
if (window.Vue) {
|
|
2177
|
-
return window.Vue.version;
|
|
2178
|
-
}
|
|
2179
|
-
}
|
|
2180
|
-
};
|
|
2181
|
-
}
|
|
2182
|
-
}, {
|
|
2183
|
-
key: 'getUsedVaadinElements',
|
|
2184
|
-
value: function getUsedVaadinElements(elements) {
|
|
2185
|
-
var version = getPolymerVersion();
|
|
2186
|
-
var elementClasses = void 0;
|
|
2187
|
-
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
2188
|
-
// Check all locations calling the method getEntries() in
|
|
2189
|
-
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
2190
|
-
// Currently it is only used by BootstrapHandler.
|
|
2191
|
-
if (version && version.indexOf('2') === 0) {
|
|
2192
|
-
// Polymer 2: components classes are stored in window.Vaadin
|
|
2193
|
-
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
2194
|
-
return window.Vaadin[c];
|
|
2195
|
-
}).filter(function (c) {
|
|
2196
|
-
return c.is;
|
|
2197
|
-
});
|
|
2198
|
-
} else {
|
|
2199
|
-
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
2200
|
-
elementClasses = window.Vaadin.registrations || [];
|
|
2201
|
-
}
|
|
2202
|
-
elementClasses.forEach(function (klass) {
|
|
2203
|
-
var version = klass.version ? klass.version : "0.0.0";
|
|
2204
|
-
elements[klass.is] = { version: version };
|
|
2205
|
-
});
|
|
2206
|
-
}
|
|
2207
|
-
}, {
|
|
2208
|
-
key: 'getUsedVaadinThemes',
|
|
2209
|
-
value: function getUsedVaadinThemes(themes) {
|
|
2210
|
-
['Lumo', 'Material'].forEach(function (themeName) {
|
|
2211
|
-
var theme;
|
|
2212
|
-
var version = getPolymerVersion();
|
|
2213
|
-
if (version && version.indexOf('2') === 0) {
|
|
2214
|
-
// Polymer 2: themes are stored in window.Vaadin
|
|
2215
|
-
theme = window.Vaadin[themeName];
|
|
2216
|
-
} else {
|
|
2217
|
-
// Polymer 3: themes are stored in custom element registry
|
|
2218
|
-
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
2219
|
-
}
|
|
2220
|
-
if (theme && theme.version) {
|
|
2221
|
-
themes[themeName] = { version: theme.version };
|
|
2222
|
-
}
|
|
2223
|
-
});
|
|
2224
|
-
}
|
|
2225
|
-
}, {
|
|
2226
|
-
key: 'getFrameworks',
|
|
2227
|
-
value: function getFrameworks(frameworks) {
|
|
2228
|
-
var detectors = this.frameworkVersionDetectors();
|
|
2229
|
-
Object.keys(detectors).forEach(function (framework) {
|
|
2230
|
-
var detector = detectors[framework];
|
|
2231
|
-
try {
|
|
2232
|
-
var version = detector();
|
|
2233
|
-
if (version) {
|
|
2234
|
-
frameworks[framework] = { version: version };
|
|
2235
|
-
}
|
|
2236
|
-
} catch (e) {}
|
|
2237
|
-
});
|
|
2238
|
-
}
|
|
2239
|
-
}, {
|
|
2240
|
-
key: 'gather',
|
|
2241
|
-
value: function gather(storage) {
|
|
2242
|
-
var storedStats = storage.read();
|
|
2243
|
-
var gatheredStats = {};
|
|
2244
|
-
var types = ["elements", "frameworks", "themes"];
|
|
2245
|
-
|
|
2246
|
-
types.forEach(function (type) {
|
|
2247
|
-
gatheredStats[type] = {};
|
|
2248
|
-
if (!storedStats[type]) {
|
|
2249
|
-
storedStats[type] = {};
|
|
2250
|
-
}
|
|
2251
|
-
});
|
|
2252
|
-
|
|
2253
|
-
var previousStats = JSON.stringify(storedStats);
|
|
2254
|
-
|
|
2255
|
-
this.getUsedVaadinElements(gatheredStats.elements);
|
|
2256
|
-
this.getFrameworks(gatheredStats.frameworks);
|
|
2257
|
-
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
2258
|
-
|
|
2259
|
-
var now = this.now;
|
|
2260
|
-
types.forEach(function (type) {
|
|
2261
|
-
var keys = Object.keys(gatheredStats[type]);
|
|
2262
|
-
keys.forEach(function (key) {
|
|
2263
|
-
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
2264
|
-
storedStats[type][key] = { firstUsed: now };
|
|
2265
|
-
}
|
|
2266
|
-
// Discards any previously logged version number
|
|
2267
|
-
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
2268
|
-
storedStats[type][key].lastUsed = now;
|
|
2269
|
-
});
|
|
2270
|
-
});
|
|
2271
|
-
|
|
2272
|
-
var newStats = JSON.stringify(storedStats);
|
|
2273
|
-
storage.write(newStats);
|
|
2274
|
-
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
2275
|
-
this.logger.debug("New stats: " + newStats);
|
|
2276
|
-
}
|
|
2277
|
-
}
|
|
2278
|
-
}]);
|
|
2279
|
-
return StatisticsGatherer;
|
|
2280
|
-
}();
|
|
2281
|
-
|
|
2282
|
-
var StatisticsStorage = function () {
|
|
2283
|
-
function StatisticsStorage(key) {
|
|
2284
|
-
classCallCheck(this, StatisticsStorage);
|
|
2285
|
-
|
|
2286
|
-
this.key = key;
|
|
2287
|
-
}
|
|
2288
|
-
|
|
2289
|
-
createClass(StatisticsStorage, [{
|
|
2290
|
-
key: 'read',
|
|
2291
|
-
value: function read() {
|
|
2292
|
-
var localStorageStatsString = localStorage.getItem(this.key);
|
|
2293
|
-
try {
|
|
2294
|
-
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
2295
|
-
} catch (e) {
|
|
2296
|
-
return {};
|
|
2297
|
-
}
|
|
2298
|
-
}
|
|
2299
|
-
}, {
|
|
2300
|
-
key: 'write',
|
|
2301
|
-
value: function write(data) {
|
|
2302
|
-
localStorage.setItem(this.key, data);
|
|
2303
|
-
}
|
|
2304
|
-
}, {
|
|
2305
|
-
key: 'clear',
|
|
2306
|
-
value: function clear() {
|
|
2307
|
-
localStorage.removeItem(this.key);
|
|
2308
|
-
}
|
|
2309
|
-
}, {
|
|
2310
|
-
key: 'isEmpty',
|
|
2311
|
-
value: function isEmpty() {
|
|
2312
|
-
var storedStats = this.read();
|
|
2313
|
-
var empty = true;
|
|
2314
|
-
Object.keys(storedStats).forEach(function (key) {
|
|
2315
|
-
if (Object.keys(storedStats[key]).length > 0) {
|
|
2316
|
-
empty = false;
|
|
2317
|
-
}
|
|
2318
|
-
});
|
|
2319
|
-
|
|
2320
|
-
return empty;
|
|
2321
|
-
}
|
|
2322
|
-
}]);
|
|
2323
|
-
return StatisticsStorage;
|
|
2324
|
-
}();
|
|
2325
|
-
|
|
2326
|
-
var StatisticsSender = function () {
|
|
2327
|
-
function StatisticsSender(url, logger) {
|
|
2328
|
-
classCallCheck(this, StatisticsSender);
|
|
2329
|
-
|
|
2330
|
-
this.url = url;
|
|
2331
|
-
this.logger = logger;
|
|
2332
|
-
}
|
|
2333
|
-
|
|
2334
|
-
createClass(StatisticsSender, [{
|
|
2335
|
-
key: 'send',
|
|
2336
|
-
value: function send(data, errorHandler) {
|
|
2337
|
-
var logger = this.logger;
|
|
2338
|
-
|
|
2339
|
-
if (navigator.onLine === false) {
|
|
2340
|
-
logger.debug("Offline, can't send");
|
|
2341
|
-
errorHandler();
|
|
2342
|
-
return;
|
|
2343
|
-
}
|
|
2344
|
-
logger.debug("Sending data to " + this.url);
|
|
2345
|
-
|
|
2346
|
-
var req = new XMLHttpRequest();
|
|
2347
|
-
req.withCredentials = true;
|
|
2348
|
-
req.addEventListener("load", function () {
|
|
2349
|
-
// Stats sent, nothing more to do
|
|
2350
|
-
logger.debug("Response: " + req.responseText);
|
|
2351
|
-
});
|
|
2352
|
-
req.addEventListener("error", function () {
|
|
2353
|
-
logger.debug("Send failed");
|
|
2354
|
-
errorHandler();
|
|
2355
|
-
});
|
|
2356
|
-
req.addEventListener("abort", function () {
|
|
2357
|
-
logger.debug("Send aborted");
|
|
2358
|
-
errorHandler();
|
|
2359
|
-
});
|
|
2360
|
-
req.open("POST", this.url);
|
|
2361
|
-
req.setRequestHeader("Content-Type", "application/json");
|
|
2362
|
-
req.send(data);
|
|
2363
|
-
}
|
|
2364
|
-
}]);
|
|
2365
|
-
return StatisticsSender;
|
|
2366
|
-
}();
|
|
2367
|
-
|
|
2368
|
-
var StatisticsLogger = function () {
|
|
2369
|
-
function StatisticsLogger(id) {
|
|
2370
|
-
classCallCheck(this, StatisticsLogger);
|
|
2371
|
-
|
|
2372
|
-
this.id = id;
|
|
2373
|
-
}
|
|
2374
|
-
|
|
2375
|
-
createClass(StatisticsLogger, [{
|
|
2376
|
-
key: '_isDebug',
|
|
2377
|
-
value: function _isDebug() {
|
|
2378
|
-
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
2379
|
-
}
|
|
2380
|
-
}, {
|
|
2381
|
-
key: 'debug',
|
|
2382
|
-
value: function debug(msg) {
|
|
2383
|
-
if (this._isDebug()) {
|
|
2384
|
-
console.info(this.id + ": " + msg);
|
|
2385
|
-
}
|
|
2386
|
-
}
|
|
2387
|
-
}]);
|
|
2388
|
-
return StatisticsLogger;
|
|
2389
|
-
}();
|
|
2390
|
-
|
|
2391
|
-
var UsageStatistics = function () {
|
|
2392
|
-
function UsageStatistics() {
|
|
2393
|
-
classCallCheck(this, UsageStatistics);
|
|
2394
|
-
|
|
2395
|
-
this.now = new Date();
|
|
2396
|
-
this.timeNow = this.now.getTime();
|
|
2397
|
-
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
2398
|
-
this.initialDelay = 24 * 60 * 60;
|
|
2399
|
-
|
|
2400
|
-
this.logger = new StatisticsLogger("statistics");
|
|
2401
|
-
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
2402
|
-
this.gatherer = new StatisticsGatherer(this.logger);
|
|
2403
|
-
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
2404
|
-
}
|
|
2405
|
-
|
|
2406
|
-
createClass(UsageStatistics, [{
|
|
2407
|
-
key: 'maybeGatherAndSend',
|
|
2408
|
-
value: function maybeGatherAndSend() {
|
|
2409
|
-
var _this = this;
|
|
2410
|
-
|
|
2411
|
-
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
2412
|
-
return;
|
|
2413
|
-
}
|
|
2414
|
-
this.gatherer.gather(this.storage);
|
|
2415
|
-
setTimeout(function () {
|
|
2416
|
-
_this.maybeSend();
|
|
2417
|
-
}, this.gatherDelay * 1000);
|
|
2418
|
-
}
|
|
2419
|
-
}, {
|
|
2420
|
-
key: 'lottery',
|
|
2421
|
-
value: function lottery() {
|
|
2422
|
-
return true;
|
|
2423
|
-
}
|
|
2424
|
-
}, {
|
|
2425
|
-
key: 'currentMonth',
|
|
2426
|
-
value: function currentMonth() {
|
|
2427
|
-
return this.now.getYear() * 12 + this.now.getMonth();
|
|
2428
|
-
}
|
|
2429
|
-
}, {
|
|
2430
|
-
key: 'maybeSend',
|
|
2431
|
-
value: function maybeSend() {
|
|
2432
|
-
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2433
|
-
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
2434
|
-
|
|
2435
|
-
if (!firstUse) {
|
|
2436
|
-
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
2437
|
-
firstUse = this.timeNow;
|
|
2438
|
-
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
2442
|
-
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
2443
|
-
return;
|
|
2444
|
-
}
|
|
2445
|
-
if (this.currentMonth() <= monthProcessed) {
|
|
2446
|
-
this.logger.debug("This month has already been processed");
|
|
2447
|
-
return;
|
|
2448
|
-
}
|
|
2449
|
-
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
2450
|
-
// Use random sampling
|
|
2451
|
-
if (this.lottery()) {
|
|
2452
|
-
this.logger.debug("Congratulations, we have a winner!");
|
|
2453
|
-
} else {
|
|
2454
|
-
this.logger.debug("Sorry, no stats from you this time");
|
|
2455
|
-
return;
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
this.send();
|
|
2459
|
-
}
|
|
2460
|
-
}, {
|
|
2461
|
-
key: 'send',
|
|
2462
|
-
value: function send() {
|
|
2463
|
-
// Ensure we have the latest data
|
|
2464
|
-
this.gatherer.gather(this.storage);
|
|
2465
|
-
|
|
2466
|
-
// Read, send and clean up
|
|
2467
|
-
var data = this.storage.read();
|
|
2468
|
-
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2469
|
-
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
2470
|
-
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
|
2471
|
-
var self = this;
|
|
2472
|
-
this.sender.send(info + JSON.stringify(data), function () {
|
|
2473
|
-
// Revert the 'month processed' flag
|
|
2474
|
-
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
2475
|
-
});
|
|
2476
|
-
}
|
|
2477
|
-
}], [{
|
|
2478
|
-
key: 'version',
|
|
2479
|
-
get: function get$1() {
|
|
2480
|
-
return '2.1.2';
|
|
2481
|
-
}
|
|
2482
|
-
}, {
|
|
2483
|
-
key: 'firstUseKey',
|
|
2484
|
-
get: function get$1() {
|
|
2485
|
-
return 'vaadin.statistics.firstuse';
|
|
2486
|
-
}
|
|
2487
|
-
}, {
|
|
2488
|
-
key: 'monthProcessedKey',
|
|
2489
|
-
get: function get$1() {
|
|
2490
|
-
return 'vaadin.statistics.monthProcessed';
|
|
2491
|
-
}
|
|
2492
|
-
}, {
|
|
2493
|
-
key: 'optOutKey',
|
|
2494
|
-
get: function get$1() {
|
|
2495
|
-
return 'vaadin.statistics.optout';
|
|
2496
|
-
}
|
|
2497
|
-
}]);
|
|
2498
|
-
return UsageStatistics;
|
|
2499
|
-
}();
|
|
2500
|
-
|
|
2501
|
-
try {
|
|
2502
|
-
window.Vaadin = window.Vaadin || {};
|
|
2503
|
-
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
2504
|
-
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
2505
|
-
} catch (e) {
|
|
2506
|
-
// Intentionally ignored as this is not a problem in the app being developed
|
|
2507
|
-
}
|
|
2508
|
-
|
|
2509
|
-
}());
|
|
2510
|
-
|
|
2511
|
-
vaadin-dev-mode:end **/}let Qo;void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(Zo?!(Zo&&Object.keys(Zo).map((t=>Zo[t])).filter((t=>t.productionMode)).length>0):!Ko((function(){return!0})))}catch(t){return!1}}()),
|
|
2512
|
-
/**
|
|
2513
|
-
* @license
|
|
2514
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2515
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2516
|
-
*/
|
|
2517
|
-
window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){!function(t,e){if(window.Vaadin.developmentMode)Ko(t,e)}(Vo)};const Xo=new Set,tr=t=>class extends(Xi(t)){static finalize(){super.finalize();const{is:t}=this;t&&!Xo.has(t)&&(window.Vaadin.registrations.push(this),Xo.add(t),window.Vaadin.developmentModeCallback&&(Qo=so.debounce(Qo,ls,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),io.add(Qo)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
|
|
2518
|
-
/**
|
|
2519
|
-
* @license
|
|
2520
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2521
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2522
|
-
*/,er=f`
|
|
2523
|
-
:host {
|
|
2524
|
-
display: inline-flex;
|
|
2525
|
-
outline: none;
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2528
|
-
:host::before {
|
|
2529
|
-
content: '\\2003';
|
|
2530
|
-
width: 0;
|
|
2531
|
-
display: inline-block;
|
|
2532
|
-
/* Size and position this element on the same vertical position as the input-field element
|
|
2533
|
-
to make vertical align for the host element work as expected */
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
:host([hidden]) {
|
|
2537
|
-
display: none !important;
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
:host(:not([has-label])) [part='label'] {
|
|
2541
|
-
display: none;
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
@media (forced-colors: active) {
|
|
2545
|
-
:host(:not([readonly])) [part='input-field'] {
|
|
2546
|
-
outline: 1px solid;
|
|
2547
|
-
outline-offset: -1px;
|
|
2548
|
-
}
|
|
2549
|
-
:host([focused]) [part='input-field'] {
|
|
2550
|
-
outline-width: 2px;
|
|
2551
|
-
}
|
|
2552
|
-
:host([disabled]) [part='input-field'] {
|
|
2553
|
-
outline-color: GrayText;
|
|
2554
|
-
}
|
|
2555
|
-
}
|
|
2556
|
-
`
|
|
2557
|
-
/**
|
|
2558
|
-
* @license
|
|
2559
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2560
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2561
|
-
*/,ir=f`
|
|
2562
|
-
[class$='container'] {
|
|
2563
|
-
display: flex;
|
|
2564
|
-
flex-direction: column;
|
|
2565
|
-
min-width: 100%;
|
|
2566
|
-
max-width: 100%;
|
|
2567
|
-
width: var(--vaadin-field-default-width, 12em);
|
|
2568
|
-
}
|
|
2569
|
-
`
|
|
2570
|
-
/**
|
|
2571
|
-
* @license
|
|
2572
|
-
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2573
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2574
|
-
*/,sr=new Map;function or(t){return sr.has(t)||sr.set(t,new WeakMap),sr.get(t)}function rr(t,e){t&&t.removeAttribute(e)}function nr(t,e){if(!t||!e)return;const i=or(e);if(i.has(t))return;const s=ro(t.getAttribute(e));i.set(t,new Set(s))}function ar(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:s,oldId:o,fromUser:r}=i,n=or(e),a=n.get(t);if(!r&&a)return o&&a.delete(o),void(s&&a.add(s));r&&(a?s||n.delete(t):nr(t,e),rr(t,e)),function(t,e,i){const s=ro(t.getAttribute(e));s.delete(i),0!==s.size?t.setAttribute(e,no(s)):t.removeAttribute(e)}(t,e,o);const l=s||no(a);l&&ao(t,e,l)}
|
|
2575
|
-
/**
|
|
2576
|
-
* @license
|
|
2577
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2578
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2579
|
-
*/
|
|
2580
|
-
const lr=le((t=>class extends(Xs(Go(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),hr=le((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}}));
|
|
2581
|
-
/**
|
|
2582
|
-
* @license
|
|
2583
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2584
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2585
|
-
*/
|
|
2586
|
-
/**
|
|
2587
|
-
* @license
|
|
2588
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2589
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2590
|
-
*/
|
|
2591
|
-
class cr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){"function"==typeof this.callback&&this.callback(t.matches)}}
|
|
2592
|
-
/**
|
|
2593
|
-
* @license
|
|
2594
|
-
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2595
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2596
|
-
*/const ur=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:i}=e;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&i.remove(...t)}const s="string"==typeof t?t.split(" ").filter(Boolean):[];s.length>0&&i.add(...s),this.__previousClasses=s}}
|
|
2597
|
-
/**
|
|
2598
|
-
* @license
|
|
2599
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2600
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2601
|
-
*/;let dr=0;function pr(){return dr++}
|
|
2602
|
-
/**
|
|
2603
|
-
* @license
|
|
2604
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2605
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2606
|
-
*/class mr extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${pr()}`}constructor(t,e,i,s={}){super();const{initializer:o,multiple:r,observe:n,useUniqueId:a,uniqueIdPrefix:l}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof r&&r,this.slotInitializer=o,r&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(t,l||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(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(""!==e&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}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=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new lo(e,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node],s=t.filter((t=>!function(t){return t.nodeType===Node.TEXT_NODE&&""===t.textContent.trim()}(t)&&!i.includes(t)));e.length&&(this.nodes=i.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...s].filter((t=>t!==this.defaultNode)),s.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))}))}}
|
|
2607
|
-
/**
|
|
2608
|
-
* @license
|
|
2609
|
-
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2610
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2611
|
-
*/class fr extends mr{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.opened&&(t.opened=this.opened),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(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}}))}}
|
|
2612
|
-
/**
|
|
2613
|
-
* @license
|
|
2614
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2615
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2616
|
-
*/class vr{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&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){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,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){var e;this.__target&&(t?(nr(e=this.__target,"aria-labelledby"),rr(e,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=or(e),s=i.get(t);s&&0!==s.size?ao(t,e,no(s)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){ar(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){ar(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){ar(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")))}}
|
|
2617
|
-
/**
|
|
2618
|
-
* @license
|
|
2619
|
-
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2620
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2621
|
-
*/const br=document.createElement("div");let gr;br.style.position="fixed",br.style.clip="rect(0px, 0px, 0px, 0px)",br.setAttribute("aria-live","polite"),document.body.appendChild(br);
|
|
2622
|
-
/**
|
|
2623
|
-
* @license
|
|
2624
|
-
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2625
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2626
|
-
*/
|
|
2627
|
-
class yr extends mr{constructor(t,e,i,s={}){super(t,e,i,{...s,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((t=>{t.forEach((t=>{const e=t.target,i=e===this.node;"attributes"===t.type?i&&this.__updateNodeId(e):(i||e.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())}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){t.nodeType!==Node.ELEMENT_NODE||this.multiple&&this.nodes&&t!==this.nodes[0]||t.id||(t.id=this.defaultId)}}
|
|
2628
|
-
/**
|
|
2629
|
-
* @license
|
|
2630
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2631
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2632
|
-
*/class wr extends yr{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,s=Boolean(i&&e&&""!==e.trim());t&&(t.textContent=s?e:"",t.hidden=!s,s&&function(t,e={}){const i=e.mode||"polite",s=void 0===e.timeout?150:e.timeout;"alert"===i?(br.removeAttribute("aria-live"),br.removeAttribute("role"),gr=so.debounce(gr,as,(()=>{br.setAttribute("role","alert")}))):(gr&&gr.cancel(),br.removeAttribute("role"),br.setAttribute("aria-live",i)),br.textContent="",setTimeout((()=>{br.textContent=t}),s)}(e,{mode:"assertive"})),super.updateDefaultNode(t)}}
|
|
2633
|
-
/**
|
|
2634
|
-
* @license
|
|
2635
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2636
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2637
|
-
*/class xr extends yr{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 t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
|
|
2638
|
-
/**
|
|
2639
|
-
* @license
|
|
2640
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2641
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2642
|
-
*/class _r extends yr{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 t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
|
|
2643
|
-
/**
|
|
2644
|
-
* @license
|
|
2645
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2646
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2647
|
-
*/const kr=le((t=>class extends(uo(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new _r(this),this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),Ar=le((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),Cr=t=>class extends(Ar(kr(uo(t)))){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 vr(this),this._helperController=new xr(this),this._errorController=new wr(this),this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)})),this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){this._fieldAriaController.setHelperId(t?e.id:null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,e){this._fieldAriaController.setLabelId(t?e.id:null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)}))}}
|
|
2648
|
-
/**
|
|
2649
|
-
* @license
|
|
2650
|
-
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2651
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2652
|
-
*/;
|
|
2653
|
-
/**
|
|
2654
|
-
* @license
|
|
2655
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2656
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2657
|
-
*/class Sr extends mr{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(t,e)=>{e._setFocusElement(t),e.ariaTarget=t,e.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}
|
|
2658
|
-
/**
|
|
2659
|
-
* @license
|
|
2660
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2661
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2662
|
-
*/const Tr=t=>class extends(ur(lr(hr(Ws(Cr(t)))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${pr()}`,this._srLabelController=new _r(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Sr(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new cr(this._phoneMediaQuery,(t=>{this._phone=t}))),this._tooltipController=new fr(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}__itemsChanged(t,e){(t||e)&&this.requestContentUpdate()}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",(()=>{this.__initMenuItems(t)})),t.addEventListener("selected-changed",(()=>this.__updateValueButton())),t.addEventListener("keydown",(t=>this._onKeyDownInside(t)),!0),t.addEventListener("click",(t=>{const e=t.composedPath().find((t=>t._hasVaadinItemMixin));this.__dispatchChangePending=Boolean(e&&void 0!==e.value&&e.value!==this.value),this.opened=!1}),!0),this.__lastMenuElement=t)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",Boolean(t)),void 0===e||this.__dispatchChangePending||this.validate()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(t){t.preventDefault()}_onKeyDown(t){if(t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened)if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){const e=this._menuElement.selected,i=this._menuElement._searchKey(void 0!==e?e:-1,t.key);i>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=i)}}_onKeyDownInside(t){/^(Tab)$/u.test(t.key)&&(this.opened=!1)}_openedChanged(t,e,i){if(e&&i){if(t){if(this.disabled||this.readonly)return void(this.opened=!1);this._updateAriaLive(!1),e.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this.validate());this.__oldOpened=t}}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&(t?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(t){let e;const i=t.getAttribute("label");e=i?this.__createItemElement({label:i}):t.cloneNode(!0),e._sourceItem=t,this.__appendValueItemElement(e,this.focusElement),e.selected=!0}__createItemElement(t){const e=document.createElement(t.component||"vaadin-select-item");return t.label&&(e.textContent=t.label),t.value&&(e.value=t.value),t.disabled&&(e.disabled=t.disabled),t.className&&(e.className=t.className),e}__appendValueItemElement(t,e){e.appendChild(t),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected"),t.removeAttribute("role"),t.removeAttribute("focused"),t.removeAttribute("focus-ring"),t.removeAttribute("active"),t.setAttribute("id",this._itemId)}_accessibleNameChanged(t){this._srLabelController.setLabel(t),this._setCustomAriaLabelledBy(t?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(t){this._setCustomAriaLabelledBy(t)}_setCustomAriaLabelledBy(t){const e=this._getLabelIdWithItemId(t);this._fieldAriaController.setLabelId(e,!0)}_getLabelIdWithItemId(t){return t?`${t} ${this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:""}`.trim():null}__updateValueButton(){const t=this.focusElement;if(!t)return;t.innerHTML="";const e=this._items[this._menuElement.selected];if(t.removeAttribute("placeholder"),this._hasContent(e))this.__attachSelectedItem(e);else if(this.placeholder){const e=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(e,t),t.setAttribute("placeholder","")}!this._valueChanging&&e&&(this._selectedChanging=!0,this.value=e.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),ar(t,"aria-labelledby",e||this.placeholder?{newId:this._itemId}:{oldId:this._itemId}),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(t){return!!t&&(Boolean(t.hasAttribute("label")?t.getAttribute("label"):t.textContent.trim())||t.childElementCount>0)}_updateSelectedItem(t,e){if(e){const i=null==t?t:t.toString();this._menuElement.selected=e.reduce(((t,e,s)=>void 0===t&&e.value===i?s:t),void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(t,e){if(!this.items||0===this.items.length)return void(t.textContent="");let i=t.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),t.appendChild(i)),i.textContent="",this.items.forEach((t=>{i.appendChild(this.__createItemElement(t))}))}async __dispatchChange(){this.updateComplete&&await this.updateComplete,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}}
|
|
2663
|
-
/**
|
|
2664
|
-
* @license
|
|
2665
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2666
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2667
|
-
*/;At("vaadin-select",[er,ir,$o],{moduleId:"vaadin-select-styles"});class zr extends(Tr(tr(Nt(Zi)))){static get is(){return"vaadin-select"}static get template(){return $i`
|
|
2668
|
-
<style>
|
|
2669
|
-
:host {
|
|
2670
|
-
position: relative;
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
::slotted([slot='value']) {
|
|
2674
|
-
flex-grow: 1;
|
|
2675
|
-
}
|
|
2676
|
-
</style>
|
|
2677
|
-
|
|
2678
|
-
<div class="vaadin-select-container">
|
|
2679
|
-
<div part="label" on-click="_onClick">
|
|
2680
|
-
<slot name="label"></slot>
|
|
2681
|
-
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
|
2682
|
-
</div>
|
|
2683
|
-
|
|
2684
|
-
<vaadin-input-container
|
|
2685
|
-
part="input-field"
|
|
2686
|
-
readonly="[[readonly]]"
|
|
2687
|
-
disabled="[[disabled]]"
|
|
2688
|
-
invalid="[[invalid]]"
|
|
2689
|
-
theme$="[[_theme]]"
|
|
2690
|
-
on-click="_onClick"
|
|
2691
|
-
>
|
|
2692
|
-
<slot name="prefix" slot="prefix"></slot>
|
|
2693
|
-
<slot name="value"></slot>
|
|
2694
|
-
<div part="toggle-button" slot="suffix" aria-hidden="true" on-mousedown="_onToggleMouseDown"></div>
|
|
2695
|
-
</vaadin-input-container>
|
|
2696
|
-
|
|
2697
|
-
<div part="helper-text">
|
|
2698
|
-
<slot name="helper"></slot>
|
|
2699
|
-
</div>
|
|
2700
|
-
|
|
2701
|
-
<div part="error-message">
|
|
2702
|
-
<slot name="error-message"></slot>
|
|
2703
|
-
</div>
|
|
2704
|
-
</div>
|
|
2705
|
-
|
|
2706
|
-
<vaadin-select-overlay
|
|
2707
|
-
position-target="[[_inputContainer]]"
|
|
2708
|
-
opened="{{opened}}"
|
|
2709
|
-
with-backdrop="[[_phone]]"
|
|
2710
|
-
phone$="[[_phone]]"
|
|
2711
|
-
theme$="[[_theme]]"
|
|
2712
|
-
no-vertical-overlap$="[[noVerticalOverlap]]"
|
|
2713
|
-
on-vaadin-overlay-open="_onOverlayOpen"
|
|
2714
|
-
></vaadin-select-overlay>
|
|
2715
|
-
|
|
2716
|
-
<slot name="tooltip"></slot>
|
|
2717
|
-
<div class="sr-only">
|
|
2718
|
-
<slot name="sr-label"></slot>
|
|
2719
|
-
</div>
|
|
2720
|
-
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){var t;
|
|
2721
|
-
/**
|
|
2722
|
-
* @license
|
|
2723
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2724
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2725
|
-
*/super.ready(),t=this,window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn(`WARNING: <template> inside <${t.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}_rendererChanged(t,e){e&&(e.renderer=t||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}l(zr);const Nr=class{constructor(i){t(this,i),this.ticketCompleted=e(this,"ticketCompleted",7),this.autoSelection=e(this,"autoSelection",7),this.resetSelection=e(this,"resetSelection",7),this.stakeChange=e(this,"stakeChange",7),this.multiplierChange=e(this,"multiplierChange",7),this.drawMultiplierChange=e(this,"drawMultiplierChange",7),this.lineMultiplierChange=e(this,"lineMultiplierChange",7),this.betTypeChange=e(this,"betTypeChange",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)},this.endpoint=void 0,this.gameId=void 0,this.numberOfGrids=1,this.multipleDraws=!0,this.ticketId=void 0,this.resetButton=!1,this.autoPick=!1,this.language="en",this.clientStyling="",this.clientStylingUrlContent="",this.translationUrl=void 0,this.isLoading=!0,this.hasErrors=!1,this.ticketDone=[],this.isCustomSelect=!1,this.amountInfo={},this.limitStylingAppends=!1,this.stakeMultiplier="1",this.lineMultiplier=0,this.isCustomSelectStake=!1,this.isCustomSelectDraw=!1,this.isCustomSelectLine=!1,this.drawMultiplier=1,this.secondarySelectionAllowed=!1,this.partialQuickpickAvailable=!1,this.boardsAllowed=[],this.tabIndex=0,this.groupType=[],this.playType=[],this.selectedPlayTypeId="",this.maximumAllowed=6,this.numberRange=[],this.secondaryNumberRange=[],this.secondaryMaximumAllowed=1,this.minimumAllowed=6,this.secondaryMinimumAllowed=1}handleLineMultiplierChange(t){this.grids=Array.from({length:t},((t,e)=>e+1)),this.ticketDone=Array.from({length:t},(()=>!1)),this.grids.forEach(((t,e)=>{this.resetSelection.emit({ticketId:this.ticketId,index:e})}))}handleTabIndexChange(t){this.grids.forEach(((t,e)=>{this.toggleResetSelection(e)})),this.setDrawMultiplier(1),this.setStakeMultiplier("1"),this.amountInfo=this.gameData.rules.stakes[0],this.setWagerPerDraw(this.amountInfo),this.playType=this.groupType[t].betType.map((t=>Object.assign(Object.assign({},t),{label:t.name||t.id,value:t.id}))),this.boardsAllowed=this.playType[0].boardsAllowed,this.setLineMultiplier(this.boardsAllowed[0]),this.selectedPlayTypeId=this.playType[0].value,this.numberRange=this.playType[0].selectionRules.map((t=>t.selectionCount)),this.maximumAllowed=Math.max(...this.numberRange),this.minimumAllowed=Math.min(...this.numberRange),this.secondaryNumberRange=this.playType[0].secondarySelectionRules.map((t=>t.selectionCount)),this.secondaryMaximumAllowed=Math.max(...this.secondaryNumberRange),this.secondaryMinimumAllowed=Math.min(...this.secondaryNumberRange),this.betTypeChange.emit({ticketId:this.ticketId,betType:this.playType[0]})}checkForClickOutside(t){this.selectRef&&!this.selectRef.contains(t.composedPath()[0])&&(this.isCustomSelect=!1),this.selectStakeRef&&!this.selectStakeRef.contains(t.composedPath()[0])&&(this.isCustomSelectStake=!1),this.selectDrawRef&&!this.selectDrawRef.contains(t.composedPath()[0])&&(this.isCustomSelectDraw=!1),this.selectLineRef&&!this.selectLineRef.contains(t.composedPath()[0])&&(this.isCustomSelectLine=!1)}connectedCallback(){let t=new URL(`${this.endpoint}/games/${this.gameId}`);fetch(t.href).then((t=>{if(t.ok)return t.json();this.hasErrors=!0})).then((t=>{var e;this.isLoading=!1,this.gameData=t,this.amountInfo=this.gameData.rules.stakes[0],this.secondarySelectionAllowed="INPUT"===this.gameData.rules.secondarySelectionAllowed;const i=this.gameData.rules.betTypes.reduce(((t,e)=>(e.group?(t.groups[e.group]||(t.groups[e.group]=[]),t.groups[e.group].push(e)):t.noGroup.push({groupName:e.name||e.id,betType:[Object.assign({},e)]}),t)),{groups:{},noGroup:[]}),s=Object.entries(i.groups).map((([t,e])=>({groupName:t,betType:e})));this.groupType=[...i.noGroup,...s],this.playType=this.groupType[0].betType.map((t=>Object.assign(Object.assign({},t),{label:t.name||t.id,value:t.id}))),this.partialQuickpickAvailable=this.gameData.rules.partialQuickpickAvailable,this.boardsAllowed=null===(e=this.gameData.rules.betTypes)||void 0===e?void 0:e.filter((t=>"Prima"===t.id))[0].boardsAllowed,this.lineMultiplier=this.boardsAllowed[0];let o=this.gameData.rules.betTypes[0].secondarySelectionRules;this.numberRange=this.gameData.rules.betTypes[0].selectionRules.map((t=>t.selectionCount)),this.maximumAllowed=Math.max(...this.numberRange),this.minimumAllowed=Math.min(...this.numberRange),this.secondaryNumberRange=o.map((t=>t.selectionCount)),this.secondaryMaximumAllowed=Math.max(...this.secondaryNumberRange),this.secondaryMinimumAllowed=Math.min(...this.secondaryNumberRange)})).catch((t=>{this.isLoading=!1,this.hasErrors=!0,console.error("Error!",t)}))}componentWillLoad(){var t;this.translationUrl&&(t=JSON.parse(this.translationUrl),Object.keys(t).forEach((e=>{for(let i in t[e])n[e][i]=t[e][i]})))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}gridFilledHandler(t){this.ticket=Object.assign(Object.assign({},t.detail),{drawCount:this.drawMultiplier,multiplierNum:Number(this.stakeMultiplier),multiplier:this.gameData.rules.stakeMultiplierAvailable}),this.ticketDone=[...this.ticketDone.slice(0,t.detail.index),!0,...this.ticketDone.slice(t.detail.index+1)],this.ticketCompleted.emit(this.ticket)}handleGridClearAllEvent(t){let e=t.detail;this.ticketDone=[...this.ticketDone.slice(0,e),!1,...this.ticketDone.slice(e+1)]}toggleAutoSelection(t){this.ticketDone=[...this.ticketDone.slice(0,t),!0,...this.ticketDone.slice(t+1)],this.autoSelection.emit({ticketId:this.ticketId,index:t})}toggleResetSelection(t){this.ticketDone=[...this.ticketDone.slice(0,t),!1,...this.ticketDone.slice(t+1)],this.resetSelection.emit({ticketId:this.ticketId,index:t})}changeStake(t,e){this.stakeChange.emit({ticketId:t,stake:e})}toggleClass(){this.isCustomSelect=!this.isCustomSelect}toggleSelection(){this.isCustomSelectStake=!this.isCustomSelectStake}toggleLineSelection(){this.isCustomSelectLine=!this.isCustomSelectLine}toggleDrawSelection(){this.isCustomSelectDraw=!this.isCustomSelectDraw}setWagerPerDraw(t){this.amountInfo={value:t.value,currency:t.currency},this.isCustomSelect=!1,this.changeStake(this.ticketId,t.value)}setStakeMultiplier(t){this.stakeMultiplier=t,this.isCustomSelectStake=!1,this.multiplierChange.emit({ticketId:this.ticketId,multiplierNum:Number(t),multiplier:this.gameData.rules.stakeMultiplierAvailable})}setLineMultiplier(t){this.lineMultiplier=t,this.isCustomSelectLine=!1,this.lineMultiplierChange.emit({ticketId:this.ticketId,lineNum:t})}setDrawMultiplier(t){this.drawMultiplier=t,this.isCustomSelectDraw=!1,this.drawMultiplierChange.emit({ticketId:this.ticketId,drawCount:t})}handlePlayTypeChange(t){this.selectedPlayTypeId=t;let e=this.playType.filter((e=>e.id===t))[0];this.boardsAllowed=e.boardsAllowed,this.numberRange=e.selectionRules.map((t=>t.selectionCount)),this.maximumAllowed=Math.max(...this.numberRange),this.minimumAllowed=Math.min(...this.numberRange),this.secondaryNumberRange=e.secondarySelectionRules.map((t=>t.selectionCount)),this.secondaryMaximumAllowed=Math.max(...this.secondaryNumberRange),this.secondaryMinimumAllowed=Math.min(...this.secondaryNumberRange);for(let t=0;t<this.lineMultiplier;t++)this.toggleResetSelection(t);this.betTypeChange.emit({ticketId:this.ticketId,betType:e})}render(){if(this.isLoading)return i("div",null,i("p",null,a("loading",this.language)));if(this.hasErrors)return i("div",null,i("p",null,a("error",this.language)));{const{rules:t}=this.gameData;return i("div",{class:"TicketContainer",ref:t=>this.stylingContainer=t},i("p",{class:"TicketTitle"},this.gameData.name),i("div",{class:"TicketTabs"},this.groupType.map(((t,e)=>i("div",{class:"TabButton"+(this.tabIndex==e?" Active":""),onClick:()=>this.tabIndex=e},t.groupName)))),this.playType.length>1&&i("div",null,i("label",{class:"Label"},a("playType",this.language),": "),i("vaadin-select",{style:{width:"160px"},items:this.playType,value:this.selectedPlayTypeId,"on-value-changed":t=>this.handlePlayTypeChange(t.detail.value)})),this.boardsAllowed.length>1&&i("div",null,i("label",{class:"Label"},a("lines",this.language),": "),i("div",{class:"WagerInput"},i("div",{ref:t=>this.selectLineRef=t,class:this.isCustomSelectLine?"SelectWrapper SelectActive":"SelectWrapper"},i("div",{class:"SelectButton",onClick:()=>this.toggleLineSelection()},i("span",null,this.lineMultiplier),i("span",{class:"SelectExpand"},"▼")),i("div",{class:"SelectContent"},i("ul",{class:"SelectOptions"},this.boardsAllowed.map((t=>i("li",{class:this.lineMultiplier==t?"SelectedValue":"",value:t,onClick:()=>this.setLineMultiplier(t)},t)))))))),this.grids.map(((e,s)=>i("div",null,i("div",{class:"TicketGridHeader"},i("div",null,a("lineName",this.language),s+1),this.resetButton&&this.ticketDone[s]&&i("div",{class:"ButtonContainer"},i("a",{class:"ResetButton",onClick:()=>this.toggleResetSelection(s)},a("resetButton",this.language))),this.autoPick&&!this.ticketDone[s]&&i("div",{class:"ButtonContainer"},i("a",{class:"AutoButton",onClick:()=>this.toggleAutoSelection(s)},a("autoButton",this.language)))),i("div",{class:"TicketGridBullets"},i("p",{class:"TicketGridTitle"},t.boards[0].selectionName),i("lottery-grid",{"grid-index":s,"maximum-allowed":this.maximumAllowed,"minimum-allowed":this.minimumAllowed,"number-range":JSON.stringify(this.numberRange),"high-number":t.boards[0].highNumber,"low-number":t.boards[0].lowNumber,"total-numbers":t.boards[0].highNumber-t.boards[0].lowNumber+1,selectable:!0,"reset-button":!0,"auto-pick":!0,"game-id":this.gameId,"ticket-id":this.ticketId,"partial-quickpick-available":this.partialQuickpickAvailable,language:this.language,"translation-url":this.translationUrl,"selection-type":"mainSelection","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})),this.secondarySelectionAllowed&&i("div",{class:"SecondarySelectionWrapper"},i("div",{class:"TicketGridBullets"},i("p",{class:"TicketGridTitle"},t.boards[0].secondarySelectionName),i("lottery-grid",{"grid-index":s,"maximum-allowed":this.secondaryMaximumAllowed,"minimum-allowed":this.secondaryMinimumAllowed,"number-range":JSON.stringify(this.secondaryNumberRange),"high-number":t.boards[0].secondaryHighNumber,"low-number":t.boards[0].secondaryLowNumber,"total-numbers":t.boards[0].secondaryHighNumber-t.boards[0].secondaryLowNumber+1,selectable:!0,"reset-button":!0,"auto-pick":!0,"game-id":this.gameId,"ticket-id":this.ticketId,"partial-quickpick-available":this.partialQuickpickAvailable,language:this.language,"translation-url":this.translationUrl,"selection-type":"secondarySelection","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))))),t.stakeMultiplierAvailable&&i("div",null,i("label",{class:"Label"},a("multiplier",this.language),": "),i("div",{class:"WagerInput"},t.stakeMultipliers.length>1?i("div",{ref:t=>this.selectStakeRef=t,class:this.isCustomSelectStake?"SelectWrapper SelectActive":"SelectWrapper"},i("div",{class:"SelectButton",onClick:()=>this.toggleSelection()},i("span",null,this.stakeMultiplier),i("span",{class:"SelectExpand"},"▼")),i("div",{class:"SelectContent"},i("ul",{class:"SelectOptions"},t.stakeMultipliers.map((t=>i("li",{class:this.stakeMultiplier==t?"SelectedValue":"",value:t,onClick:()=>this.setStakeMultiplier(t)},t)))))):i("div",null,i("input",{min:"1",value:t.stakeMultipliers[0]||1,type:"number",disabled:!0})))),t.drawMultiplierAvailable&&i("div",null,i("label",{class:"Label"},a("numberOfDraws",this.language),": "),i("div",{class:"WagerInput"},t.durations.length>1?i("div",{ref:t=>this.selectDrawRef=t,class:this.isCustomSelectDraw?"SelectWrapper SelectActive":"SelectWrapper"},i("div",{class:"SelectButton",onClick:()=>this.toggleDrawSelection()},i("span",null,this.drawMultiplier),i("span",{class:"SelectExpand"},"▼")),i("div",{class:"SelectContent"},i("ul",{class:"SelectOptions"},t.durations.map((t=>i("li",{class:this.drawMultiplier==t?"SelectedValue":"",value:t,onClick:()=>this.setDrawMultiplier(t)},t)))))):i("div",null,i("input",{min:"1",value:t.durations[0]||1,type:"number",disabled:!0})))),i("div",null,i("label",{class:"Label"},a("wagerPerDraw",this.language),": "),i("div",{class:"WagerInput"},t.stakes.length>1?i("div",{ref:t=>this.selectRef=t,class:this.isCustomSelect?"SelectWrapper SelectActive":"SelectWrapper"},i("div",{class:"SelectButton",onClick:()=>this.toggleClass()},i("span",null,this.amountInfo.value," ",this.amountInfo.currency),i("span",{class:"SelectExpand"},"▼")),i("div",{class:"SelectContent"},i("ul",{class:"SelectOptions"},t.stakes.map((t=>i("li",{class:this.amountInfo.value==t.value?"SelectedValue":"",value:t.value,onClick:()=>this.setWagerPerDraw(t)},t.value," ",t.currency)))))):i("div",null,i("input",{min:"1",value:t.stakes[0].value,type:"number",disabled:!0}),i("span",{class:"WagerInputTitle"},t.stakes[0].currency)))))}}static get watchers(){return{lineMultiplier:["handleLineMultiplierChange"],tabIndex:["handleTabIndexChange"]}}};Nr.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.TicketTitle{font-size:16px;font-weight:bold}.TicketTabs{display:flex;overflow:auto}.TicketTabs .TabButton{color:var(--emw--color-typography, #009993);margin:0 40px 10px 0;cursor:pointer}.TicketTabs .Active{border-bottom:1px solid var(--emw--color-typography, #009993)}.ButtonContainer{display:flex;justify-content:flex-end}.SecondarySelectionWrapper{margin-top:20px}.Label{margin-right:5px;position:relative;top:2px;font-size:14px;font-weight:lighter;color:var(--emw--button-text-color, #000)}input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}.NumberInput,.WagerInput{margin-top:10px;display:inline-flex;align-items:center}.NumberInput,.NumberInput *{box-sizing:border-box}.NumberInput button{cursor:pointer;outline:none;-webkit-appearance:none;border:none;align-items:center;justify-content:center;height:20px;position:relative}.NumberInput button:after{display:inline-block;position:absolute;transform:translate(-50%, -50%) rotate(180deg);align-items:center;text-align:center}.NumberInput button.Plus:after{transform:translate(-50%, -50%) rotate(0deg);width:30px;display:inline-flex;align-items:center;text-align:center}.NumberInput input[type=number],.WagerInput input[type=number]{max-width:50px;display:inline-flex;align-items:center;padding:4px 10px;text-align:center}.NumberInput input[type=number] .WagerInputTitle,.WagerInput input[type=number] .WagerInputTitle{font-size:14px;color:var(--emw--button-text-color, #000);padding:10px;margin-left:8px}.AutoButton{cursor:pointer;display:inline-block;border-radius:var(--emw--button-border-radius, 4px);padding:8px 20px;width:max-content;margin:5px 0;border:1px solid var(--emw--button-border-color, #00958f);background:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));color:var(--emw--button-text-color, #000);font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.AutoButton:active{background:var(--emw--button-background-color, #00958f);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}.ResetButton{cursor:pointer;display:inline-block;border-radius:var(--emw--button-border-radius, 4px);padding:8px 20px;width:max-content;margin:5px 0;color:var(--emw--button-text-color, #000);font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0;background:var(--emw--color-error, #FF3D00);border:1px solid var(--emw--color-error, #FF3D00);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}.ResetButton:hover{background:var(--emw--color-secondary, #FF6536);border:1px solid var(--emw--color-error, #FF3D00)}.TicketGridHeader{display:flex;justify-content:space-between;align-items:center;font-weight:bold;margin-top:10px}.TicketGridBullets{background:var(--emw--color-gray-50, #F1F1F1);border-radius:4px;padding:20px;margin-top:5px;margin-bottom:10px}.TicketGridBullets .TicketGridTitle{margin-top:0px}.Minus{border-radius:4px;width:30px;height:24px !important;margin-right:10px;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-background, #009993)}.Plus{border-radius:4px;width:30px;height:24px !important;margin-left:10px;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-background, #009993)}.SelectWrapper{width:auto;padding:5px;margin:0 auto;border:1px solid var(--emw--color-gray-transparency-80, #ccc);border-radius:5px;position:relative}.SelectButton,.SelectOptions li{display:flex;align-items:center;cursor:pointer}.SelectButton{display:flex;padding:0 5px;border-radius:7px;align-items:center;justify-content:space-between;font-size:14px}.SelectButton span:first-child{padding-right:10px}.SelectExpand{transition:transform 0.3s linear;font-size:12px}.SelectActive .SelectExpand{transform:rotate(180deg)}.SelectContent{display:none;padding:5px;border-radius:7px}.SelectWrapper.SelectActive .SelectContent{width:100%;display:block;position:absolute;left:0;top:32px;padding:0;border:1px solid var(--emw--color-gray-transparency-80, #ccc);overflow:hidden;background:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));z-index:20}.SelectContent .SelectOptions{max-height:100px;margin:0;overflow-y:auto;padding:0}.SelectContent .SelectOptions .SelectedValue{background-color:var(--emw--color-background, #009993);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}.SelectOptions::-webkit-scrollbar{width:7px}.SelectOptions::-webkit-scrollbar-track{background:var(--emw--color-gray-50, #F1F1F1);border-radius:25px}.SelectOptions::-webkit-scrollbar-thumb{background:var(--emw--color-gray-transparency-80, #ccc);border-radius:25px}.SelectOptions li{height:20px;padding:0 13px;font-size:14px}.SelectOptions li:hover{background:var(--emw--color-gray-150, #f2f2f2)}';export{s as lottery_bullet,o as lottery_grid,Nr as lottery_ticket}
|