@everymatrix/player-account-controller 1.0.69 → 1.0.70
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/components/GeneralLogout-CA9TEW-a.cjs +8 -0
- package/components/GeneralLogout-DtE4YABi.js +4829 -0
- package/components/PlayerAccountBettingHistory-BcTxHKyO.js +328 -0
- package/components/PlayerAccountBettingHistory-NrSjgArQ.cjs +1 -0
- package/components/PlayerAccountBiometrics-BGnkL646.js +300 -0
- package/components/PlayerAccountBiometrics-Bl0LyqT2.cjs +1 -0
- package/components/PlayerAccountClosure-B3Zq9k2d.cjs +1 -0
- package/components/PlayerAccountClosure-CHDX6d_o.js +339 -0
- package/components/PlayerAccountController-CdygDjsk.js +6188 -0
- package/components/PlayerAccountController-D9QoMCz_.cjs +1 -0
- package/components/PlayerAccountGamingLimits-BSeZY_AM.cjs +1 -0
- package/components/PlayerAccountGamingLimits-CFEgRcLO.js +758 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-CETKCaaj.js +306 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-Zflhyn-z.cjs +1 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-DPZ-Uvd4.js +4148 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-_BasEjEB.cjs +10 -0
- package/components/PlayerAccountGamingLimitsHistory2-Bu-OW2oW.js +734 -0
- package/components/PlayerAccountGamingLimitsHistory2-FhMXdXTq.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard-BUG8OODX.js +1488 -0
- package/components/PlayerAccountGamingLimitsInfoCard-sBX1tBDZ.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-BFnH54ZW.js +2764 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-CiGWLvn2.cjs +21 -0
- package/components/PlayerAccountGamingLimitsPopup-BrO_Lno2.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPopup-CmAXnOQe.js +337 -0
- package/components/PlayerAccountGamingLimitsWrapper2-CQ1mGZNj.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-DWdHKdUm.js +844 -0
- package/components/PlayerAccountMenu-Bh0HKBfq.js +587 -0
- package/components/PlayerAccountMenu-D4sBRaIm.cjs +1 -0
- package/components/PlayerAccountModal-Blsborh1.js +198 -0
- package/components/PlayerAccountModal-DW8I9i4u.cjs +1 -0
- package/components/PlayerAccountNotifications-CEsL3JWV.cjs +1 -0
- package/components/PlayerAccountNotifications-DbUpordy.js +222 -0
- package/components/PlayerAccountSelfExclusion-BPADa27T.js +15842 -0
- package/components/PlayerAccountSelfExclusion-DxHpS1Fj.cjs +3693 -0
- package/components/PlayerAccountTimeout-BRQZuU_T.cjs +1 -0
- package/components/PlayerAccountTimeout-CSUT1HiR.js +448 -0
- package/components/PlayerActiveBonuses-CwHXPu9X.js +987 -0
- package/components/PlayerActiveBonuses-ReOEMRDU.cjs +1 -0
- package/components/PlayerBonusCard-665KSNoF.js +555 -0
- package/components/PlayerBonusCard-CQIuJjY5.cjs +1 -0
- package/components/PlayerBonusHistory-BaBcSSSm.js +824 -0
- package/components/PlayerBonusHistory-Dzk7jL5w.cjs +1 -0
- package/components/PlayerChangePassword-B78Gb7rT.js +1162 -0
- package/components/PlayerChangePassword-L1wYKbsT.cjs +3 -0
- package/components/PlayerDeposit-BO0nDKOB.cjs +1 -0
- package/components/PlayerDeposit-CqgNmu8i.js +395 -0
- package/components/PlayerGamingHistory-CmufIVok.cjs +1 -0
- package/components/PlayerGamingHistory-ovbzB3YP.js +920 -0
- package/components/PlayerPendingWithdrawals-CsC5mrrE.js +307 -0
- package/components/PlayerPendingWithdrawals-DXh2yA-M.cjs +1 -0
- package/components/PlayerProfileInfo-3Wp8IotN.js +1730 -0
- package/components/PlayerProfileInfo-BWzgjhyD.cjs +1 -0
- package/components/PlayerRealityCheck-8QghFLS2.cjs +1 -0
- package/components/PlayerRealityCheck-Cg1tL1KV.js +567 -0
- package/components/PlayerTransactionHistory-Cfq6pzue.js +311 -0
- package/components/PlayerTransactionHistory-iyQVlg_5.cjs +1 -0
- package/components/PlayerWithdrawal-BZdcsIWI.cjs +1 -0
- package/components/PlayerWithdrawal-DJfHPWUz.js +365 -0
- package/package.json +23 -22
|
@@ -0,0 +1,3693 @@
|
|
|
1
|
+
"use strict";var rr=Object.defineProperty,nr=Object.defineProperties;var ar=Object.getOwnPropertyDescriptors;var Yo=Object.getOwnPropertySymbols;var lr=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable;var Wo=(s,t,e)=>t in s?rr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,kt=(s,t)=>{for(var e in t||(t={}))lr.call(t,e)&&Wo(s,e,t[e]);if(Yo)for(var e of Yo(t))cr.call(t,e)&&Wo(s,e,t[e]);return s},Pt=(s,t)=>nr(s,ar(t));var et=(s,t,e)=>new Promise((o,i)=>{var r=l=>{try{a(e.next(l))}catch(c){i(c)}},n=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./GeneralLogout-CA9TEW-a.cjs"),qo=require("./PlayerAccountGamingLimitsGroupEdit-_BasEjEB.cjs");function Ko(s,t){u.addMessages(s,t)}function ur(s){u.$locale.set(s)}const Go={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."},"zh-hk":{titleSelfExclusion:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"},fr:{titleSelfExclusion:"Auto exclusion",selfExclusionText1:"reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:`L'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "Sauvez".`,selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte .dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Salvează".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."},es:{titleSelfExclusion:"Autoexclusición",selfExclusionText1:"Reconocemos que el juego puedo conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas",selfExclusionText2:'La autoexclusición surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de {operator}. En el caso de autoexclusión permanente, solo es posible revocar la autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Ten en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de Atención al Cliente de la siguiente manera: Correo electrónico:",selfExclusionText4:"Email",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Tu periodo de autoexclusión durará hasta el {date} 23:59. .",permanentSelfExclusion:"Tu periodo de autoexclusión será permanente."},pt:{titleSelfExclusion:"Auto-exclusão",selfExclusionText1:"reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Guardar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta . No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja",selfExclusionText4:"E-mail:",duration:"Trajanje:",forever:"Trajno",save:"Spremi",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial para evitar problemas associados ao jogo,Oferecemos aos nossos usuários a opção de excluir todas as formas de apostas em nosso site por um período indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é selecionada para o período escolhido. Escolha o período de tempo e selecione "Manter".',selfExclusionText3:'Durante a autoexclusão,"Você terá acesso à sua conta e poderá fazer saques, mas não poderá depositar ou fazer apostas. No caso de autoexclusão permanente",Só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após a sua inscrição inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com nossa equipe de Atendimento ao Cliente da seguinte forma:',selfExclusionText4:"Correio eletrônico:",duration:"Período de tempo:",forever:"Para sempre",save:"Manter",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23h59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente"},"es-mx":{titleSelfExclusion:"Auto-exclusión",selfExclusionText1:"Reconocemos que las apuestas pueden ser dañinas así que para prevenir problemas asociados con el juego,ofrecemos a nuestros usuarios la opción de excluir todas las formas de apuestas en nuestra página por un period indeterminado de tiempo.",selfExclusionText3:"Durante la auto-exclusión ,usted tendrá acceso a su cuenta y podrá hacer retiros pero no podrá depositar o hacer apuestas. En el caso de la auto-exclusión permanente,Sólo es posible revocar la auto-exclusión bajo una solicitud escrita y solamente 6 meses después de su aplicación inicial .Por favor tome en cuenta que una forma alternativa de solicitar la auto-exclusión es contactar a nuestro equipo de Servicio al Cliente de la siguiente forma:",selfExclusionText4:"Correo electrónico:",duration:"Periodo de Tiempo:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Su periodo de auto-exclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su periodo de auto-exclusión será permanente"},tr:{titleSelfExclusion:"Kendini dışlama",selfExclusionText1:"Kumarın zararlı olabileceğini biliyoruz ve bu nedenle kumarla ilgili sorunları önlemek için kullanıcılarımıza, sitemizdeki tüm bahis türlerinden süresiz olarak hariç tutma olanağı sunuyoruz.",selfExclusionText2:"Kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren geçerli olur. Aşağıdan bir zaman aralığı seçin ve ardından Onayla'yı tıklayın.",selfExclusionText3:"Kendini ihraç etme sırasında, hesabınıza erişebilecek ve para çekebileceksiniz ancak herhangi bir para yatıramayacak veya bahis koyamayacaksınız. Kalıcı olarak kendini ihraç etme durumunda, Kendini ihraç etmeyi yalnızca yazılı talep üzerine ve ilk başvurudan yalnızca 6 ay sonra iptal etmek mümkündür. Kendini ihraç etme talebinde bulunmanın alternatif bir yolunun Müşteri Hizmetleriyle aşağıdaki şekilde iletişime geçmek olduğunu lütfen unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",forever:"Sonsuza kadar",save:"Kaydetmek",temporarySelfExclusion:"Kendini ihraç etme süreniz {date} 23:59'a kadar sürecek.",permanentSelfExclusion:"Kendini ihraç etme süreniz kalıcı olacaktır."}};/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/function N(s){const t=customElements.get(s.is);if(!t)customElements.define(s.is,s);else{const e=t.version;e&&s.version&&e===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
8
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9
|
+
*/let dr=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};N(dr);/**
|
|
10
|
+
* @license
|
|
11
|
+
* Copyright 2019 Google LLC
|
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
+
*/const rt=window,vo=rt.ShadowRoot&&(rt.ShadyCSS===void 0||rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yo=Symbol(),Jo=new WeakMap;let bo=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==yo)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(vo&&t===void 0){const o=e!==void 0&&e.length===1;o&&(t=Jo.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Jo.set(e,t))}return t}toString(){return this.cssText}};const hr=s=>new bo(typeof s=="string"?s:s+"",void 0,yo),_=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((o,i,r)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+s[r+1],s[0]);return new bo(e,s,yo)},pr=(s,t)=>{vo?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const o=document.createElement("style"),i=rt.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=e.cssText,s.appendChild(o)})},Xo=vo?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return hr(e)})(s):s;/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2017 Google LLC
|
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
+
*/var Tt;const ct=window,Qo=ct.trustedTypes,mr=Qo?Qo.emptyScript:"",Zo=ct.reactiveElementPolyfillSupport,Gt={toAttribute(s,t){switch(t){case Boolean:s=s?mr:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch(o){e=null}}return e}},Rs=(s,t)=>t!==s&&(t==t||s==s),Dt={attribute:!0,type:String,converter:Gt,reflect:!1,hasChanged:Rs},Jt="finalized";let de=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,o)=>{const i=this._$Ep(o,e);i!==void 0&&(this._$Ev.set(i,o),t.push(i))}),t}static createProperty(t,e=Dt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const o=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,o,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Dt}static finalize(){if(this.hasOwnProperty(Jt))return!1;this[Jt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,o=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of o)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const i of o)e.unshift(Xo(i))}else t!==void 0&&e.push(Xo(t));return e}static _$Ep(t,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,o;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)===null||o===void 0||o.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return pr(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostConnected)===null||o===void 0?void 0:o.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostDisconnected)===null||o===void 0?void 0:o.call(e)})}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e,o=Dt){var i;const r=this.constructor._$Ep(t,o);if(r!==void 0&&o.reflect===!0){const n=(((i=o.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?o.converter:Gt).toAttribute(e,o.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var o;const i=this.constructor,r=i._$Ev.get(t);if(r!==void 0&&this._$El!==r){const n=i.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:Gt;this._$El=r,this[r]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,o){let i=!0;t!==void 0&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||Rs)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,o))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}_$Ej(){return et(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,r)=>this[r]=i),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostUpdate)===null||r===void 0?void 0:r.call(i)}),this.update(o)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(o)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdated)===null||i===void 0?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,o)=>this._$EO(o,this[o],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};de[Jt]=!0,de.elementProperties=new Map,de.elementStyles=[],de.shadowRootOptions={mode:"open"},Zo==null||Zo({ReactiveElement:de}),((Tt=ct.reactiveElementVersions)!==null&&Tt!==void 0?Tt:ct.reactiveElementVersions=[]).push("1.6.3");/**
|
|
18
|
+
* @license
|
|
19
|
+
* Copyright 2017 Google LLC
|
|
20
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
+
*/var Ot;const ut=window,fe=ut.trustedTypes,es=fe?fe.createPolicy("lit-html",{createHTML:s=>s}):void 0,Xt="$lit$",Y=`lit$${(Math.random()+"").slice(9)}$`,$s="?"+Y,fr=`<${$s}>`,se=document,Ie=()=>se.createComment(""),Ne=s=>s===null||typeof s!="object"&&typeof s!="function",Bs=Array.isArray,_r=s=>Bs(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",zt=`[
|
|
22
|
+
\f\r]`,Se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ts=/-->/g,os=/>/g,Q=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^
|
|
23
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ss=/'/g,is=/"/g,Hs=/^(?:script|style|textarea|title)$/i,_e=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),rs=new WeakMap,Z=se.createTreeWalker(se,129,null,!1);function Vs(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return es!==void 0?es.createHTML(t):t}const gr=(s,t)=>{const e=s.length-1,o=[];let i,r=t===2?"<svg>":"",n=Se;for(let a=0;a<e;a++){const l=s[a];let c,d,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===Se?d[1]==="!--"?n=ts:d[1]!==void 0?n=os:d[2]!==void 0?(Hs.test(d[2])&&(i=RegExp("</"+d[2],"g")),n=Q):d[3]!==void 0&&(n=Q):n===Q?d[0]===">"?(n=i!=null?i:Se,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?Q:d[3]==='"'?is:ss):n===is||n===ss?n=Q:n===ts||n===os?n=Se:(n=Q,i=void 0);const m=n===Q&&s[a+1].startsWith("/>")?" ":"";r+=n===Se?l+fr:h>=0?(o.push(c),l.slice(0,h)+Xt+l.slice(h)+Y+m):l+Y+(h===-2?(o.push(void 0),a):m)}return[Vs(s,r+(s[e]||"<?>")+(t===2?"</svg>":"")),o]};class Le{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[c,d]=gr(t,e);if(this.el=Le.createElement(c,o),Z.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(i=Z.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes()){const h=[];for(const p of i.getAttributeNames())if(p.endsWith(Xt)||p.startsWith(Y)){const m=d[n++];if(h.push(p),m!==void 0){const f=i.getAttribute(m.toLowerCase()+Xt).split(Y),v=/([.?@])?(.*)/.exec(m);l.push({type:1,index:r,name:v[2],strings:f,ctor:v[1]==="."?yr:v[1]==="?"?xr:v[1]==="@"?wr:gt})}else l.push({type:6,index:r})}for(const p of h)i.removeAttribute(p)}if(Hs.test(i.tagName)){const h=i.textContent.split(Y),p=h.length-1;if(p>0){i.textContent=fe?fe.emptyScript:"";for(let m=0;m<p;m++)i.append(h[m],Ie()),Z.nextNode(),l.push({type:2,index:++r});i.append(h[p],Ie())}}}else if(i.nodeType===8)if(i.data===$s)l.push({type:2,index:r});else{let h=-1;for(;(h=i.data.indexOf(Y,h+1))!==-1;)l.push({type:7,index:r}),h+=Y.length-1}r++}}static createElement(t,e){const o=se.createElement("template");return o.innerHTML=t,o}}function ge(s,t,e=s,o){var i,r,n,a;if(t===_e)return t;let l=o!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[o]:e._$Cl;const c=Ne(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(s),l._$AT(s,e,o)),o!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[o]=l:e._$Cl=l),l!==void 0&&(t=ge(s,l._$AS(s,t.values),l,o)),t}class vr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:o},parts:i}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:se).importNode(o,!0);Z.currentNode=r;let n=Z.nextNode(),a=0,l=0,c=i[0];for(;c!==void 0;){if(a===c.index){let d;c.type===2?d=new Ye(n,n.nextSibling,this,t):c.type===1?d=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(d=new Er(n,this,t)),this._$AV.push(d),c=i[++l]}a!==(c==null?void 0:c.index)&&(n=Z.nextNode(),a++)}return Z.currentNode=se,r}v(t){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class Ye{constructor(t,e,o,i){var r;this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cp=(r=i==null?void 0:i.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ge(this,t,e),Ne(t)?t===k||t==null||t===""?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==_e&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):_r(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==k&&Ne(this._$AH)?this._$AA.nextSibling.data=t:this.$(se.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Le.createElement(Vs(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(o);else{const n=new vr(r,this),a=n.u(this.options);n.v(o),this.$(a),this._$AH=n}}_$AC(t){let e=rs.get(t.strings);return e===void 0&&rs.set(t.strings,e=new Le(t)),e}T(t){Bs(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new Ye(this.k(Ie()),this.k(Ie()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class gt{constructor(t,e,o,i,r){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=k}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(r===void 0)t=ge(this,t,e,0),n=!Ne(t)||t!==this._$AH&&t!==_e,n&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=ge(this,a[o+l],e,l),c===_e&&(c=this._$AH[l]),n||(n=!Ne(c)||c!==this._$AH[l]),c===k?t=k:t!==k&&(t+=(c!=null?c:"")+r[l+1]),this._$AH[l]=c}n&&!i&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class yr extends gt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}}const br=fe?fe.emptyScript:"";class xr extends gt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==k?this.element.setAttribute(this.name,br):this.element.removeAttribute(this.name)}}class wr extends gt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){var o;if((t=(o=ge(this,t,e,0))!==null&&o!==void 0?o:k)===_e)return;const i=this._$AH,r=t===k&&i!==k||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==k&&(i===k||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;typeof this._$AH=="function"?this._$AH.call((o=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&o!==void 0?o:this.element,t):this._$AH.handleEvent(t)}}class Er{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ge(this,t)}}const ns=ut.litHtmlPolyfillSupport;ns==null||ns(Le,Ye),((Ot=ut.litHtmlVersions)!==null&&Ot!==void 0?Ot:ut.litHtmlVersions=[]).push("2.8.0");const Cr=(s,t,e)=>{var o,i;const r=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:t;let n=r._$litPart$;if(n===void 0){const a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:null;r._$litPart$=n=new Ye(t.insertBefore(Ie(),a),a,void 0,e!=null?e:{})}return n._$AI(s),n};/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/var Mt,It;class nt extends de{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Cr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return _e}}nt.finalized=!0,nt._$litElement$=!0,(Mt=globalThis.litElementHydrateSupport)===null||Mt===void 0||Mt.call(globalThis,{LitElement:nt});const as=globalThis.litElementPolyfillSupport;as==null||as({LitElement:nt});((It=globalThis.litElementVersions)!==null&&It!==void 0?It:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
28
|
+
* @license
|
|
29
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
30
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31
|
+
*/const Ar=s=>class extends s{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,o,i){super.attributeChangedCallback(e,o,i),e==="theme"&&this._set_theme(i)}};/**
|
|
32
|
+
* @license
|
|
33
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35
|
+
*/const js=[];function Us(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function Sr(s){return Us(customElements.get(s))}function kr(s=[]){return[s].flat(1/0).filter(t=>t instanceof bo?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function C(s,t,e={}){s&&Sr(s)&&console.warn(`The custom element definition for "${s}"
|
|
36
|
+
was finalized before a style module was registered.
|
|
37
|
+
Make sure to add component specific style modules before
|
|
38
|
+
importing the corresponding custom element.`),t=kr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):js.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId})}function Qt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():js}function Pr(s,t){return(s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Tr(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function Ys(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const o=Qt().find(i=>i.moduleId===e);o?t.push(...Ys(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},s.styles),t}function Dr(s,t){const e=document.createElement("style");e.innerHTML=s.map(o=>o.cssText).join(`
|
|
39
|
+
`),t.content.appendChild(e)}function Or(s){const t=`${s}-default-theme`,e=Qt().filter(o=>o.moduleId!==t&&Pr(o.themeFor,s)).map(o=>Pt(kt({},o),{styles:[...Ys(o),...o.styles],includePriority:Tr(o.moduleId)})).sort((o,i)=>i.includePriority-o.includePriority);return e.length>0?e:Qt().filter(o=>o.moduleId===t)}const ie=s=>class extends Ar(s){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Us(this)||Dr(this.getStylesForThis(),e)}static finalizeStyles(e){const o=this.getStylesForThis();return e?[...super.finalizeStyles(e),...o]:o}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),o=(e?e.constructor.__themes:[])||[];this.__themes=[...o,...Or(this.is)];const i=this.__themes.flatMap(r=>r.styles);return i.filter((r,n)=>n===i.lastIndexOf(r))}};/**
|
|
40
|
+
* @license
|
|
41
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
42
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
43
|
+
*/const xo=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(o=>o.toString()).join(`
|
|
44
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},vt=(s,...t)=>{xo(`lumo-${s}`,t)};/**
|
|
45
|
+
* @license
|
|
46
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
47
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
48
|
+
*/const zr=_`
|
|
49
|
+
:host {
|
|
50
|
+
/* Base (background) */
|
|
51
|
+
--lumo-base-color: #fff;
|
|
52
|
+
|
|
53
|
+
/* Tint */
|
|
54
|
+
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
55
|
+
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
56
|
+
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
57
|
+
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
58
|
+
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
59
|
+
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
60
|
+
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
61
|
+
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
62
|
+
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
63
|
+
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
64
|
+
--lumo-tint: #fff;
|
|
65
|
+
|
|
66
|
+
/* Shade */
|
|
67
|
+
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
68
|
+
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
69
|
+
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
70
|
+
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
71
|
+
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
72
|
+
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
73
|
+
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
74
|
+
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
75
|
+
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
76
|
+
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
77
|
+
--lumo-shade: hsl(214, 35%, 15%);
|
|
78
|
+
|
|
79
|
+
/* Contrast */
|
|
80
|
+
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
81
|
+
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
82
|
+
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
83
|
+
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
84
|
+
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
85
|
+
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
86
|
+
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
87
|
+
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
88
|
+
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
89
|
+
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
90
|
+
--lumo-contrast: var(--lumo-shade);
|
|
91
|
+
|
|
92
|
+
/* Text */
|
|
93
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
94
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
95
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
96
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
97
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
98
|
+
|
|
99
|
+
/* Primary */
|
|
100
|
+
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
101
|
+
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
102
|
+
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
103
|
+
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
104
|
+
--lumo-primary-contrast-color: #fff;
|
|
105
|
+
|
|
106
|
+
/* Error */
|
|
107
|
+
--lumo-error-color: hsl(3, 85%, 48%);
|
|
108
|
+
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
109
|
+
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
110
|
+
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
111
|
+
--lumo-error-contrast-color: #fff;
|
|
112
|
+
|
|
113
|
+
/* Success */
|
|
114
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
115
|
+
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
116
|
+
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
117
|
+
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
118
|
+
--lumo-success-contrast-color: #fff;
|
|
119
|
+
|
|
120
|
+
/* Warning */
|
|
121
|
+
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
122
|
+
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
123
|
+
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
124
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* forced-colors mode adjustments */
|
|
128
|
+
@media (forced-colors: active) {
|
|
129
|
+
html {
|
|
130
|
+
--lumo-disabled-text-color: GrayText;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
`;vt("color-props",zr);const Mr=_`
|
|
134
|
+
[theme~='dark'] {
|
|
135
|
+
/* Base (background) */
|
|
136
|
+
--lumo-base-color: hsl(214, 35%, 21%);
|
|
137
|
+
|
|
138
|
+
/* Tint */
|
|
139
|
+
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
140
|
+
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
141
|
+
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
142
|
+
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
143
|
+
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
144
|
+
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
145
|
+
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
146
|
+
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
147
|
+
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
148
|
+
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
149
|
+
--lumo-tint: hsl(214, 100%, 98%);
|
|
150
|
+
|
|
151
|
+
/* Shade */
|
|
152
|
+
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
153
|
+
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
154
|
+
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
155
|
+
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
156
|
+
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
157
|
+
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
158
|
+
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
159
|
+
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
160
|
+
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
161
|
+
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
162
|
+
--lumo-shade: hsl(214, 33%, 13%);
|
|
163
|
+
|
|
164
|
+
/* Contrast */
|
|
165
|
+
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
166
|
+
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
167
|
+
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
168
|
+
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
169
|
+
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
170
|
+
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
171
|
+
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
172
|
+
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
173
|
+
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
174
|
+
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
175
|
+
--lumo-contrast: var(--lumo-tint);
|
|
176
|
+
|
|
177
|
+
/* Text */
|
|
178
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
179
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
180
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
181
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
182
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
183
|
+
|
|
184
|
+
/* Primary */
|
|
185
|
+
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
186
|
+
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
187
|
+
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
188
|
+
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
189
|
+
--lumo-primary-contrast-color: #fff;
|
|
190
|
+
|
|
191
|
+
/* Error */
|
|
192
|
+
--lumo-error-color: hsl(3, 79%, 49%);
|
|
193
|
+
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
194
|
+
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
195
|
+
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
196
|
+
|
|
197
|
+
/* Success */
|
|
198
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
199
|
+
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
200
|
+
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
201
|
+
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
202
|
+
|
|
203
|
+
/* Warning */
|
|
204
|
+
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
205
|
+
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
206
|
+
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
207
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
html {
|
|
211
|
+
color: var(--lumo-body-text-color);
|
|
212
|
+
background-color: var(--lumo-base-color);
|
|
213
|
+
color-scheme: light;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[theme~='dark'] {
|
|
217
|
+
color: var(--lumo-body-text-color);
|
|
218
|
+
background-color: var(--lumo-base-color);
|
|
219
|
+
color-scheme: dark;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
h1,
|
|
223
|
+
h2,
|
|
224
|
+
h3,
|
|
225
|
+
h4,
|
|
226
|
+
h5,
|
|
227
|
+
h6 {
|
|
228
|
+
color: var(--lumo-header-text-color);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
a:where(:any-link) {
|
|
232
|
+
color: var(--lumo-primary-text-color);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
a:not(:any-link) {
|
|
236
|
+
color: var(--lumo-disabled-text-color);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
blockquote {
|
|
240
|
+
color: var(--lumo-secondary-text-color);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
code,
|
|
244
|
+
pre {
|
|
245
|
+
background-color: var(--lumo-contrast-10pct);
|
|
246
|
+
border-radius: var(--lumo-border-radius-m);
|
|
247
|
+
}
|
|
248
|
+
`;C("",Mr,{moduleId:"lumo-color"});/**
|
|
249
|
+
* @license
|
|
250
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
251
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
252
|
+
*/const Ir=_`
|
|
253
|
+
:host {
|
|
254
|
+
--lumo-size-xs: 1.625rem;
|
|
255
|
+
--lumo-size-s: 1.875rem;
|
|
256
|
+
--lumo-size-m: 2.25rem;
|
|
257
|
+
--lumo-size-l: 2.75rem;
|
|
258
|
+
--lumo-size-xl: 3.5rem;
|
|
259
|
+
|
|
260
|
+
/* Icons */
|
|
261
|
+
--lumo-icon-size-s: 1.25em;
|
|
262
|
+
--lumo-icon-size-m: 1.5em;
|
|
263
|
+
--lumo-icon-size-l: 2.25em;
|
|
264
|
+
/* For backwards compatibility */
|
|
265
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
266
|
+
}
|
|
267
|
+
`;vt("sizing-props",Ir);/**
|
|
268
|
+
* @license
|
|
269
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
270
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
271
|
+
*/const Nr=_`
|
|
272
|
+
:host {
|
|
273
|
+
/* Border radius */
|
|
274
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
275
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
276
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
277
|
+
|
|
278
|
+
/* Shadow */
|
|
279
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
280
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
281
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
282
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
283
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
284
|
+
|
|
285
|
+
/* Clickable element cursor */
|
|
286
|
+
--lumo-clickable-cursor: default;
|
|
287
|
+
}
|
|
288
|
+
`;_`
|
|
289
|
+
html {
|
|
290
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
291
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
292
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
293
|
+
}
|
|
294
|
+
`;vt("style-props",Nr);/**
|
|
295
|
+
* @license
|
|
296
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
297
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
298
|
+
*/const Lr=_`
|
|
299
|
+
:host {
|
|
300
|
+
/* prettier-ignore */
|
|
301
|
+
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
302
|
+
|
|
303
|
+
/* Font sizes */
|
|
304
|
+
--lumo-font-size-xxs: 0.75rem;
|
|
305
|
+
--lumo-font-size-xs: 0.8125rem;
|
|
306
|
+
--lumo-font-size-s: 0.875rem;
|
|
307
|
+
--lumo-font-size-m: 1rem;
|
|
308
|
+
--lumo-font-size-l: 1.125rem;
|
|
309
|
+
--lumo-font-size-xl: 1.375rem;
|
|
310
|
+
--lumo-font-size-xxl: 1.75rem;
|
|
311
|
+
--lumo-font-size-xxxl: 2.5rem;
|
|
312
|
+
|
|
313
|
+
/* Line heights */
|
|
314
|
+
--lumo-line-height-xs: 1.25;
|
|
315
|
+
--lumo-line-height-s: 1.375;
|
|
316
|
+
--lumo-line-height-m: 1.625;
|
|
317
|
+
}
|
|
318
|
+
`,Fr=_`
|
|
319
|
+
body,
|
|
320
|
+
:host {
|
|
321
|
+
font-family: var(--lumo-font-family);
|
|
322
|
+
font-size: var(--lumo-font-size-m);
|
|
323
|
+
line-height: var(--lumo-line-height-m);
|
|
324
|
+
-webkit-text-size-adjust: 100%;
|
|
325
|
+
-webkit-font-smoothing: antialiased;
|
|
326
|
+
-moz-osx-font-smoothing: grayscale;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
small,
|
|
330
|
+
[theme~='font-size-s'] {
|
|
331
|
+
font-size: var(--lumo-font-size-s);
|
|
332
|
+
line-height: var(--lumo-line-height-s);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
[theme~='font-size-xs'] {
|
|
336
|
+
font-size: var(--lumo-font-size-xs);
|
|
337
|
+
line-height: var(--lumo-line-height-xs);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
341
|
+
font-weight: 600;
|
|
342
|
+
line-height: var(--lumo-line-height-xs);
|
|
343
|
+
margin-block: 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
:where(h1) {
|
|
347
|
+
font-size: var(--lumo-font-size-xxxl);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
:where(h2) {
|
|
351
|
+
font-size: var(--lumo-font-size-xxl);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
:where(h3) {
|
|
355
|
+
font-size: var(--lumo-font-size-xl);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
:where(h4) {
|
|
359
|
+
font-size: var(--lumo-font-size-l);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
:where(h5) {
|
|
363
|
+
font-size: var(--lumo-font-size-m);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
:where(h6) {
|
|
367
|
+
font-size: var(--lumo-font-size-xs);
|
|
368
|
+
text-transform: uppercase;
|
|
369
|
+
letter-spacing: 0.03em;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
p,
|
|
373
|
+
blockquote {
|
|
374
|
+
margin-top: 0.5em;
|
|
375
|
+
margin-bottom: 0.75em;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
a {
|
|
379
|
+
text-decoration: none;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
a:where(:any-link):hover {
|
|
383
|
+
text-decoration: underline;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
hr {
|
|
387
|
+
display: block;
|
|
388
|
+
align-self: stretch;
|
|
389
|
+
height: 1px;
|
|
390
|
+
border: 0;
|
|
391
|
+
padding: 0;
|
|
392
|
+
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
393
|
+
background-color: var(--lumo-contrast-10pct);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
blockquote {
|
|
397
|
+
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
b,
|
|
401
|
+
strong {
|
|
402
|
+
font-weight: 600;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* RTL specific styles */
|
|
406
|
+
blockquote[dir='rtl'] {
|
|
407
|
+
border-left: none;
|
|
408
|
+
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
409
|
+
}
|
|
410
|
+
`;C("",Fr,{moduleId:"lumo-typography"});vt("typography-props",Lr);C("vaadin-input-container",_`
|
|
411
|
+
:host {
|
|
412
|
+
background-color: var(--lumo-contrast-10pct);
|
|
413
|
+
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
414
|
+
font-weight: 500;
|
|
415
|
+
line-height: 1;
|
|
416
|
+
position: relative;
|
|
417
|
+
cursor: text;
|
|
418
|
+
box-sizing: border-box;
|
|
419
|
+
border-radius:
|
|
420
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
|
|
421
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
422
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
423
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
|
|
424
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
|
|
425
|
+
/* Fallback */
|
|
426
|
+
--_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
|
|
427
|
+
/* Default field border color */
|
|
428
|
+
--_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
:host([dir='rtl']) {
|
|
432
|
+
border-radius:
|
|
433
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
434
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
435
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
436
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
|
|
437
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/* Used for hover and activation effects */
|
|
441
|
+
:host::after {
|
|
442
|
+
content: '';
|
|
443
|
+
position: absolute;
|
|
444
|
+
inset: 0;
|
|
445
|
+
border-radius: inherit;
|
|
446
|
+
pointer-events: none;
|
|
447
|
+
background-color: var(--lumo-contrast-50pct);
|
|
448
|
+
opacity: 0;
|
|
449
|
+
transition: transform 0.15s, opacity 0.2s;
|
|
450
|
+
transform-origin: 100% 0;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
::slotted(:not([slot$='fix'])) {
|
|
454
|
+
cursor: inherit;
|
|
455
|
+
min-height: var(--lumo-text-field-size, var(--lumo-size-m));
|
|
456
|
+
padding: 0 0.25em;
|
|
457
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
458
|
+
-webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
459
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/* Read-only */
|
|
463
|
+
:host([readonly]) {
|
|
464
|
+
color: var(--lumo-secondary-text-color);
|
|
465
|
+
background-color: transparent;
|
|
466
|
+
cursor: default;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
:host([readonly])::after {
|
|
470
|
+
background-color: transparent;
|
|
471
|
+
opacity: 1;
|
|
472
|
+
border: 1px dashed var(--lumo-contrast-30pct);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* Disabled */
|
|
476
|
+
:host([disabled]) {
|
|
477
|
+
background-color: var(--lumo-contrast-5pct);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
:host([disabled]) ::slotted(*) {
|
|
481
|
+
color: var(--lumo-disabled-text-color);
|
|
482
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/* Invalid */
|
|
486
|
+
:host([invalid]) {
|
|
487
|
+
background-color: var(--lumo-error-color-10pct);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
:host([invalid])::after {
|
|
491
|
+
background-color: var(--lumo-error-color-50pct);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* Slotted icons */
|
|
495
|
+
::slotted(vaadin-icon) {
|
|
496
|
+
color: var(--lumo-contrast-60pct);
|
|
497
|
+
width: var(--lumo-icon-size-m);
|
|
498
|
+
height: var(--lumo-icon-size-m);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
502
|
+
::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
503
|
+
padding: 0.25em;
|
|
504
|
+
box-sizing: border-box !important;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/* Text align */
|
|
508
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
509
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@-moz-document url-prefix() {
|
|
513
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
514
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
519
|
+
text-align: start;
|
|
520
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
:host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
|
|
524
|
+
text-align: center;
|
|
525
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
529
|
+
text-align: end;
|
|
530
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
@-moz-document url-prefix() {
|
|
534
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
535
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
536
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
@-moz-document url-prefix() {
|
|
541
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
542
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
543
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/* RTL specific styles */
|
|
548
|
+
:host([dir='rtl'])::after {
|
|
549
|
+
transform-origin: 0% 0;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
553
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
:host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
557
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
561
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
@-moz-document url-prefix() {
|
|
565
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
566
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
567
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
@-moz-document url-prefix() {
|
|
572
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
573
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
574
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
`,{moduleId:"lumo-input-container"});/**
|
|
578
|
+
@license
|
|
579
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
580
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
581
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
582
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
583
|
+
Code distributed by Google as part of the polymer project is also
|
|
584
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
585
|
+
*/window.JSCompiler_renameProperty=function(s,t){return s};/**
|
|
586
|
+
@license
|
|
587
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
588
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
589
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
590
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
591
|
+
Code distributed by Google as part of the polymer project is also
|
|
592
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
593
|
+
*/let Rr=/(url\()([^)]*)(\))/g,$r=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,tt,M;function Me(s,t){if(s&&$r.test(s)||s==="//")return s;if(tt===void 0){tt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",tt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),tt)try{return new URL(s,t).href}catch(e){return s}return M||(M=document.implementation.createHTMLDocument("temp"),M.base=M.createElement("base"),M.head.appendChild(M.base),M.anchor=M.createElement("a"),M.body.appendChild(M.anchor)),M.base.href=t,M.anchor.href=s,M.anchor.href||s}function wo(s,t){return s.replace(Rr,function(e,o,i,r){return o+"'"+Me(i.replace(/["']/g,""),t)+"'"+r})}function Eo(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
|
|
594
|
+
@license
|
|
595
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
596
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
597
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
598
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
599
|
+
Code distributed by Google as part of the polymer project is also
|
|
600
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
601
|
+
*/const Ws=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Br=Ws&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return!1}})();let Hr=window.Polymer&&window.Polymer.rootPath||Eo(document.baseURI||window.location.href),dt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let ht=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Vr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,qs=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ks=window.Polymer&&window.Polymer.legacyWarnings||!1,jr=window.Polymer&&window.Polymer.syncInitialRender||!1,Zt=window.Polymer&&window.Polymer.legacyUndefined||!1,Ur=window.Polymer&&window.Polymer.orderedComputed||!1,ls=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Yr=window.Polymer&&window.Polymer.fastDomIf||!1,cs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Wr=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
602
|
+
@license
|
|
603
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
604
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
605
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
606
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
607
|
+
Code distributed by Google as part of the polymer project is also
|
|
608
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
609
|
+
*/let qr=0;const A=function(s){let t=s.__mixinApplications;t||(t=new WeakMap,s.__mixinApplications=t);let e=qr++;function o(i){let r=i.__mixinSet;if(r&&r[e])return i;let n=t,a=n.get(i);if(!a){a=s(i),n.set(i,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return o};/**
|
|
610
|
+
@license
|
|
611
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
612
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
613
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
614
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
615
|
+
Code distributed by Google as part of the polymer project is also
|
|
616
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
617
|
+
*/let Co={},Gs={};function us(s,t){Co[s]=Gs[s.toLowerCase()]=t}function ds(s){return Co[s]||Gs[s.toLowerCase()]}function Kr(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id)}class Fe extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let o=ds(t);return o&&e?o.querySelector(e):o}return null}attributeChangedCallback(t,e,o,i){e!==o&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Me(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Eo(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(ht&&ds(t)!==void 0)throw us(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,us(t,this),Kr(this)}}}Fe.prototype.modules=Co;customElements.define("dom-module",Fe);/**
|
|
618
|
+
@license
|
|
619
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
620
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
621
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
622
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
623
|
+
Code distributed by Google as part of the polymer project is also
|
|
624
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
625
|
+
*/const Gr="link[rel=import][type~=css]",Jr="include",hs="shady-unscoped";function Js(s){return Fe.import(s)}function ps(s){let t=s.body?s.body:s;const e=wo(t.textContent,s.baseURI),o=document.createElement("style");return o.textContent=e,o}function Xr(s){const t=s.trim().split(/\s+/),e=[];for(let o=0;o<t.length;o++)e.push(...Qr(t[o]));return e}function Qr(s){const t=Js(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...Qs(t));const o=t.querySelector("template");o&&e.push(...Xs(o,t.assetpath)),t._styles=e}return t._styles}function Xs(s,t){if(!s._styles){const e=[],o=s.content.querySelectorAll("style");for(let i=0;i<o.length;i++){let r=o[i],n=r.getAttribute(Jr);n&&e.push(...Xr(n).filter(function(a,l,c){return c.indexOf(a)===l})),t&&(r.textContent=wo(r.textContent,t)),e.push(r)}s._styles=e}return s._styles}function Zr(s){let t=Js(s);return t?Qs(t):[]}function Qs(s){const t=[],e=s.querySelectorAll(Gr);for(let o=0;o<e.length;o++){let i=e[o];if(i.import){const r=i.import,n=i.hasAttribute(hs);if(n&&!r._unscopedStyle){const a=ps(r);a.setAttribute(hs,""),r._unscopedStyle=a}else r._style||(r._style=ps(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
|
|
626
|
+
@license
|
|
627
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
628
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
629
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
630
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
631
|
+
Code distributed by Google as part of the polymer project is also
|
|
632
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
633
|
+
*/const P=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?s=>ShadyDOM.patch(s):s=>s;/**
|
|
634
|
+
@license
|
|
635
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
636
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
637
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
638
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
639
|
+
Code distributed by Google as part of the polymer project is also
|
|
640
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
641
|
+
*/function eo(s){return s.indexOf(".")>=0}function re(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function Zs(s,t){return s.indexOf(t+".")===0}function Re(s,t){return t.indexOf(s+".")===0}function $e(s,t,e){return t+e.slice(s.length)}function en(s,t){return s===t||Zs(s,t)||Re(s,t)}function Oe(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let o=s[e].toString().split(".");for(let i=0;i<o.length;i++)t.push(o[i])}return t.join(".")}else return s}function ei(s){return Array.isArray(s)?Oe(s).split("."):s.toString().split(".")}function O(s,t,e){let o=s,i=ei(t);for(let r=0;r<i.length;r++){if(!o)return;let n=i[r];o=o[n]}return e&&(e.path=i.join(".")),o}function ms(s,t,e){let o=s,i=ei(t),r=i[i.length-1];if(i.length>1){for(let n=0;n<i.length-1;n++){let a=i[n];if(o=o[a],!o)return}o[r]=e}else o[t]=e;return i.join(".")}/**
|
|
642
|
+
@license
|
|
643
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
644
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
645
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
646
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
647
|
+
Code distributed by Google as part of the polymer project is also
|
|
648
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
649
|
+
*/const pt={},tn=/-[a-z]/g,on=/([A-Z])/g;function ti(s){return pt[s]||(pt[s]=s.indexOf("-")<0?s:s.replace(tn,t=>t[1].toUpperCase()))}function yt(s){return pt[s]||(pt[s]=s.replace(on,"-$1").toLowerCase())}/**
|
|
650
|
+
@license
|
|
651
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
652
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
653
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
654
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
655
|
+
Code distributed by Google as part of the polymer project is also
|
|
656
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
657
|
+
*/let sn=0,oi=0,he=[],rn=0,to=!1,si=document.createTextNode("");new window.MutationObserver(nn).observe(si,{characterData:!0});function nn(){to=!1;const s=he.length;for(let t=0;t<s;t++){let e=he[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}he.splice(0,s),oi+=s}const an={after(s){return{run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t)}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s)}},ii={run(s){return to||(to=!0,si.textContent=rn++),he.push(s),sn++},cancel(s){const t=s-oi;if(t>=0){if(!he[t])throw new Error("invalid async handle: "+s);he[t]=null}}};/**
|
|
658
|
+
@license
|
|
659
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
660
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
661
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
662
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
663
|
+
Code distributed by Google as part of the polymer project is also
|
|
664
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
665
|
+
*/const ln=ii,ri=A(s=>{class t extends s{static createProperties(o){const i=this.prototype;for(let r in o)r in i||i._createPropertyAccessor(r)}static attributeNameForProperty(o){return o.toLowerCase()}static typeForProperty(o){}_createPropertyAccessor(o,i){this._addPropertyToAttributeMap(o),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[o]||(this.__dataHasAccessor[o]=!0,this._definePropertyAccessor(o,i))}_addPropertyToAttributeMap(o){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[o];return i||(i=this.constructor.attributeNameForProperty(o),this.__dataAttributes[i]=o),i}_definePropertyAccessor(o,i){Object.defineProperty(this,o,{get(){return this.__data[o]},set:i?function(){}:function(r){this._setPendingProperty(o,r,!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 o in this.__dataHasAccessor)this.hasOwnProperty(o)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[o]=this[o],delete this[o])}_initializeInstanceProperties(o){Object.assign(this,o)}_setProperty(o,i){this._setPendingProperty(o,i)&&this._invalidateProperties()}_getProperty(o){return this.__data[o]}_setPendingProperty(o,i,r){let n=this.__data[o],a=this._shouldPropertyChange(o,i,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=n),this.__data[o]=i,this.__dataPending[o]=i),a}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ln.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 o=this.__data,i=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(o,i,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(o,i,r)),this.__dataCounter--}_shouldPropertiesChange(o,i,r){return!!i}_propertiesChanged(o,i,r){}_shouldPropertyChange(o,i,r){return r!==i&&(r===r||i===i)}attributeChangedCallback(o,i,r,n){i!==r&&this._attributeToProperty(o,r),super.attributeChangedCallback&&super.attributeChangedCallback(o,i,r,n)}_attributeToProperty(o,i,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[o]||o;this[a]=this._deserializeValue(i,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(o,i,r){this.__serializing=!0,r=arguments.length<3?this[o]:r,this._valueToNodeAttribute(this,r,i||this.constructor.attributeNameForProperty(o)),this.__serializing=!1}_valueToNodeAttribute(o,i,r){const n=this._serializeValue(i);(r==="class"||r==="name"||r==="slot")&&(o=P(o)),n===void 0?o.removeAttribute(r):o.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(o){switch(typeof o){case"boolean":return o?"":void 0;default:return o!=null?o.toString():void 0}}_deserializeValue(o,i){switch(i){case Boolean:return o!==null;case Number:return Number(o);default:return o}}}return t});/**
|
|
666
|
+
@license
|
|
667
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
668
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
669
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
670
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
671
|
+
Code distributed by Google as part of the polymer project is also
|
|
672
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
673
|
+
*/const ni={};let ot=HTMLElement.prototype;for(;ot;){let s=Object.getOwnPropertyNames(ot);for(let t=0;t<s.length;t++)ni[s[t]]=!0;ot=Object.getPrototypeOf(ot)}const cn=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function un(s,t){if(!ni[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e))}}const dn=A(s=>{const t=ri(s);class e extends t{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let r=0;r<i.length;r++)this.prototype._createPropertyAccessor(ti(i[r]))}static attributeNameForProperty(i){return yt(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let r in i)this._setProperty(r,i[r])}_ensureAttribute(i,r){const n=this;n.hasAttribute(i)||this._valueToNodeAttribute(n,r,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(cn(i))return i;try{return JSON.stringify(i)}catch(r){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,r){let n;switch(r){case Object:try{n=JSON.parse(i)}catch(a){n=i}break;case Array:try{n=JSON.parse(i)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:n=isNaN(i)?String(i):Number(i),n=new Date(n);break;default:n=super._deserializeValue(i,r);break}return n}_definePropertyAccessor(i,r){un(this,i),super._definePropertyAccessor(i,r)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return e});/**
|
|
674
|
+
@license
|
|
675
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
676
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
677
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
678
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
679
|
+
Code distributed by Google as part of the polymer project is also
|
|
680
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
681
|
+
*/const hn={"dom-if":!0,"dom-repeat":!0};let fs=!1,_s=!1;function pn(){if(!fs){fs=!0;const s=document.createElement("textarea");s.placeholder="a",_s=s.placeholder===s.textContent}return _s}function mn(s){pn()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null)}const fn=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,o)=>{const i=e.getAttribute(o);if(s&&o.startsWith("on-")){t.setAttribute(o,s.createScript(i,o));return}t.setAttribute(o,i)}})();function _n(s){let t=s.getAttribute("is");if(t&&hn[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:o}=e.attributes[0];fn(s,e,o),e.removeAttribute(o)}}return s}function ai(s,t){let e=t.parentInfo&&ai(s,t.parentInfo);if(e){for(let o=e.firstChild,i=0;o;o=o.nextSibling)if(t.parentIndex===i++)return o}else return s}function gn(s,t,e,o){o.id&&(t[o.id]=e)}function vn(s,t,e){if(e.events&&e.events.length)for(let o=0,i=e.events,r;o<i.length&&(r=i[o]);o++)s._addMethodEventListenerToNode(t,r.name,r.value,s)}function yn(s,t,e,o){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=o)}function bn(s,t,e){return s=s._methodHost||s,function(i){s[e]?s[e](i,i.detail):console.warn("listener method `"+e+"` not defined")}}const xn=A(s=>{class t extends s{static _parseTemplate(o,i){if(!o._templateInfo){let r=o._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!i,r.stripWhiteSpace=i&&i.stripWhiteSpace||o.hasAttribute&&o.hasAttribute("strip-whitespace"),this._parseTemplateContent(o,r,{parent:null})}return o._templateInfo}static _parseTemplateContent(o,i,r){return this._parseTemplateNode(o.content,i,r)}static _parseTemplateNode(o,i,r){let n=!1,a=o;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,i,r)||n:a.localName==="slot"&&(i.hasInsertionPoint=!0),mn(a),a.firstChild&&this._parseTemplateChildNodes(a,i,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,i,r)||n),n||r.noted}static _parseTemplateChildNodes(o,i,r){if(!(o.localName==="script"||o.localName==="style"))for(let n=o.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=_n(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)n.textContent+=d.textContent,l=d.nextSibling,o.removeChild(d),d=l;if(i.stripWhiteSpace&&!n.textContent.trim()){o.removeChild(n);continue}}let c={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,i,c)&&(c.infoIndex=i.nodeInfoList.push(c)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(o,i,r){let n=o,a=this._parseTemplate(n,i);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(o,i,r){let n=!1,a=Array.from(o.attributes);for(let l=a.length-1,c;c=a[l];l--)n=this._parseTemplateNodeAttribute(o,i,r,c.name,c.value)||n;return n}static _parseTemplateNodeAttribute(o,i,r,n,a){return n.slice(0,3)==="on-"?(o.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(o){let i=o._templateInfo;return i&&i.content||o.content}_stampTemplate(o,i){o&&!o.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(o),i=i||this.constructor._parseTemplate(o);let r=i.nodeInfoList,n=i.content||o.content,a=document.importNode(n,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let c=0,d=r.length,h;c<d&&(h=r[c]);c++){let p=l[c]=ai(a,h);gn(this,a.$,p,h),yn(this,p,h,i),vn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(o,i,r,n){n=n||o;let a=bn(n,i,r);return this._addEventListenerToNode(o,i,a),a}_addEventListenerToNode(o,i,r){o.addEventListener(i,r)}_removeEventListenerFromNode(o,i,r){o.removeEventListener(i,r)}}return t});/**
|
|
682
|
+
* @fileoverview
|
|
683
|
+
* @suppress {checkPrototypalTypes}
|
|
684
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
685
|
+
* This code may only be used under the BSD style license found at
|
|
686
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
687
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
688
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
689
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
690
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
691
|
+
*/let Be=0;const He=[],y={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},li="__computeInfo",wn=/[A-Z]/;function Nt(s,t,e){let o=s[t];if(!o)o=s[t]={};else if(!s.hasOwnProperty(t)&&(o=s[t]=Object.create(s[t]),e))for(let i in o){let r=o[i],n=o[i]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return o}function ze(s,t,e,o,i,r){if(t){let n=!1;const a=Be++;for(let l in e){let c=i?re(l):l,d=t[c];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==a)&&(!i||Ao(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(s,l,e,o,m.info,i,r),n=!0)}return n}return!1}function En(s,t,e,o,i,r,n,a){let l=!1,c=n?re(o):o,d=t[c];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||Ao(o,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(s,o,i,r,m.info,n,a),l=!0);return l}function Ao(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&Zs(e,s))||!!(t.wildcard&&Re(e,s))}else return!0}function gs(s,t,e,o,i){let r=typeof i.method=="string"?s[i.method]:i.method,n=i.property;r?r.call(s,s.__data[n],o[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Cn(s,t,e,o,i){let r=s[y.NOTIFY],n,a=Be++;for(let c in t)t[c]&&(r&&En(s,r,a,c,e,o,i)||i&&An(s,c,e))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function An(s,t,e){let o=re(t);if(o!==t){let i=yt(o)+"-changed";return ci(s,i,e[t],t),!0}return!1}function ci(s,t,e,o){let i={value:e,queueProperty:!0};o&&(i.path=o),P(s).dispatchEvent(new CustomEvent(t,{detail:i}))}function Sn(s,t,e,o,i,r){let a=(r?re(t):t)!=t?t:null,l=a?O(s,a):s.__data[t];a&&l===void 0&&(l=e[t]),ci(s,i.eventName,l,a)}function kn(s,t,e,o,i){let r,n=s.detail,a=n&&n.path;a?(o=$e(e,o,a),r=n&&n.value):r=s.currentTarget[e],r=i?!r:r,(!t[y.READ_ONLY]||!t[y.READ_ONLY][o])&&t._setPendingPropertyOrPath(o,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function Pn(s,t,e,o,i){let r=s.__data[t];dt&&(r=dt(r,i.attrName,"attribute",s)),s._propertyToAttribute(t,i.attrName,r)}function Tn(s,t,e,o){let i=s[y.COMPUTE];if(i)if(Ur){Be++;const r=On(s),n=[];for(let l in t)vs(l,i,n,r,o);let a;for(;a=n.shift();)ui(s,"",t,e,a)&&vs(a.methodInfo,i,n,r,o);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null}else{let r=t;for(;ze(s,i,r,e,o);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),r=s.__dataPending,s.__dataPending=null}}const Dn=(s,t,e)=>{let o=0,i=t.length-1,r=-1;for(;o<=i;){const n=o+i>>1,a=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(a<0)o=n+1;else if(a>0)i=n-1;else{r=n;break}}r<0&&(r=i+1),t.splice(r,0,s)},vs=(s,t,e,o,i)=>{const r=i?re(s):s,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Be&&(!i||Ao(s,l.trigger))&&(l.info.lastRun=Be,Dn(l.info,e,o))}};function On(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[y.COMPUTE];let{counts:o,ready:i,total:r}=zn(s),n;for(;n=i.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--r,--o[c]===0&&i.push(c)})}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t}return t}function zn(s){const t=s[li],e={},o=s[y.COMPUTE],i=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)t[n]||i.push(n);return{counts:e,ready:i,total:r}}function ui(s,t,e,o,i){let r=oo(s,t,e,o,i);if(r===He)return!1;let n=i.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function Mn(s,t,e){let o=s.__dataLinkedPaths;if(o){let i;for(let r in o){let n=o[r];Re(r,t)?(i=$e(r,n,t),s._setPendingPropertyOrPath(i,e,!0,!0)):Re(n,t)&&(i=$e(n,r,t),s._setPendingPropertyOrPath(i,e,!0,!0))}}}function Lt(s,t,e,o,i,r,n){e.bindings=e.bindings||[];let a={kind:o,target:i,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),Rn(a)){let{event:c,negate:d}=a.parts[0];a.listenerEvent=c||yt(i)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let d=a.parts[c];d.compoundIndex=c,In(s,t,a,d,l)}}function In(s,t,e,o,i){if(!o.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=o.dependencies,n={index:i,binding:e,part:o,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=hi(l),l.wildcard=!0),s._addTemplatePropertyEffect(t,l.rootProperty,{fn:Nn,info:n,trigger:l})}}}function Nn(s,t,e,o,i,r,n){let a=n[i.index],l=i.binding,c=i.part;if(r&&c.source&&t.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=e[t];t=$e(c.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&s._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(s,c,t,e,o,r);d!==He&&Ln(s,a,l,c,d)}}function Ln(s,t,e,o,i){if(i=Fn(t,i,e,o),dt&&(i=dt(i,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,i,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[y.READ_ONLY]||!t[y.READ_ONLY][r])&&t._setPendingProperty(r,i)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,r,i)}}function Fn(s,t,e,o){if(e.isCompound){let i=s.__dataCompoundStorage[e.target];i[o.compoundIndex]=t,t=i.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t==null?"":t),t}function Rn(s){return!!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function $n(s,t){let{nodeList:e,nodeInfoList:o}=t;if(o.length)for(let i=0;i<o.length;i++){let r=o[i],n=e[i],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Bn(n,c),Hn(n,s,c)}n.__dataHost=s}}function Bn(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),o=t.parts,i=new Array(o.length);for(let n=0;n<o.length;n++)i[n]=o[n].literal;let r=t.target;e[r]=i,t.literal&&t.kind=="property"&&(r==="className"&&(s=P(s)),s[r]=t.literal)}}function Hn(s,t,e){if(e.listenerEvent){let o=e.parts[0];s.addEventListener(e.listenerEvent,function(i){kn(i,t,e.target,o.source,o.negate)})}}function ys(s,t,e,o,i,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return r&&s._addPropertyEffect(t.methodName,e,{fn:o,info:n}),n}function oo(s,t,e,o,i){let r=s._methodHost||s,n=r[i.methodName];if(n){let a=s._marshalArgs(i.args,t,e);return a===He?He:n.apply(r,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Vn=[],di="(?:[a-zA-Z_$][\\w.:$\\-*]*)",jn="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Un="(?:'(?:[^'\\\\]|\\\\.)*')",Yn='(?:"(?:[^"\\\\]|\\\\.)*")',Wn="(?:"+Un+"|"+Yn+")",bs="(?:("+di+"|"+jn+"|"+Wn+")\\s*)",qn="(?:"+bs+"(?:,\\s*"+bs+")*)",Kn="(?:\\(\\s*(?:"+qn+"?)\\)\\s*)",Gn="("+di+"\\s*"+Kn+"?)",Jn="(\\[\\[|{{)\\s*",Xn="(?:]]|}})",Qn="(?:(!)\\s*)?",Zn=Jn+Qn+Gn+Xn,xs=new RegExp(Zn,"g");function ws(s){let t="";for(let e=0;e<s.length;e++){let o=s[e].literal;t+=o||""}return t}function Ft(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let o={methodName:t[1],static:!0,args:Vn};if(t[2].trim()){let i=t[2].replace(/\\,/g,",").split(",");return ea(i,o)}else return o}return null}function ea(s,t){return t.args=s.map(function(e){let o=hi(e);return o.literal||(t.static=!1),o},this),t}function hi(s){let t=s.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},o=t[0];switch(o==="-"&&(o=t[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=re(t),e.structured=eo(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Es(s,t,e){let o=O(s,e);return o===void 0&&(o=t[e]),o}function pi(s,t,e,o){const i={indexSplices:o};Zt&&!s._overrideLegacyUndefined&&(t.splices=i),s.notifyPath(e+".splices",i),s.notifyPath(e+".length",t.length),Zt&&!s._overrideLegacyUndefined&&(i.indexSplices=[])}function ke(s,t,e,o,i,r){pi(s,t,e,[{index:o,addedCount:i,removed:r,object:t,type:"splice"}])}function ta(s){return s[0].toUpperCase()+s.substring(1)}const So=A(s=>{const t=xn(dn(s));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return y}_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(Pe.length){let i=Pe[Pe.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let r=this[y.READ_ONLY];for(let n in i)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,r,n){this._createPropertyAccessor(i,r==y.READ_ONLY);let a=Nt(this,r,!0)[i];a||(a=this[r][i]=[]),a.push(n)}_removePropertyEffect(i,r,n){let a=Nt(this,r,!0)[i],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,r){let n=this[r];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,y.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,y.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,y.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,y.COMPUTE)}_setPendingPropertyOrPath(i,r,n,a){if(a||re(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=O(this,i);if(i=ms(this,i,r),!i||!super._shouldPropertyChange(i,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,r,n))return Mn(this,i,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,r,n);this[i]=r}return!1}_setUnmanagedPropertyToNode(i,r,n){(n!==i[r]||typeof n=="object")&&(r==="className"&&(i=P(i)),i[r]=n)}_setPendingProperty(i,r,n){let a=this.__dataHasPaths&&eo(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,r,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=r:this.__data[i]=r,this.__dataPending[i]=r,(a||this[y.NOTIFY]&&this[y.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let r=0;r<i.length;r++){let n=i[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,r){for(let n in i)(r||!this[y.READ_ONLY]||!this[y.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Tn(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),ze(this,this[y.REFLECT],r,n,a),ze(this,this[y.OBSERVE],r,n,a),l&&Cn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,r,n){this[y.PROPAGATE]&&ze(this,this[y.PROPAGATE],i,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,r,n)}_runEffectsForTemplate(i,r,n,a){const l=(c,d)=>{ze(this,i.propertyEffects,c,n,d,i.nodeList);for(let h=i.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,c,n,d)};i.runEffects?i.runEffects(l,r,a):l(r,a)}linkPaths(i,r){i=Oe(i),r=Oe(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=r}unlinkPaths(i){i=Oe(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,r){let n={path:""},a=O(this,i,n);pi(this,a,n.path,r)}get(i,r){return O(r||this,i)}set(i,r,n){n?ms(n,i,r):(!this[y.READ_ONLY]||!this[y.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,r,!0)&&this._invalidateProperties()}push(i,...r){let n={path:""},a=O(this,i,n),l=a.length,c=a.push(...r);return r.length&&ke(this,a,n.path,l,r.length,[]),c}pop(i){let r={path:""},n=O(this,i,r),a=!!n.length,l=n.pop();return a&&ke(this,n,r.path,n.length,0,[l]),l}splice(i,r,n,...a){let l={path:""},c=O(this,i,l);r<0?r=c.length-Math.floor(-r):r&&(r=Math.floor(r));let d;return arguments.length===2?d=c.splice(r):d=c.splice(r,n,...a),(a.length||d.length)&&ke(this,c,l.path,r,a.length,d),d}shift(i){let r={path:""},n=O(this,i,r),a=!!n.length,l=n.shift();return a&&ke(this,n,r.path,0,0,[l]),l}unshift(i,...r){let n={path:""},a=O(this,i,n),l=a.unshift(...r);return r.length&&ke(this,a,n.path,0,r.length,[]),l}notifyPath(i,r){let n;if(arguments.length==1){let a={path:""};r=O(this,i,a),n=a.path}else Array.isArray(i)?n=Oe(i):n=i;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,r){this._addPropertyEffect(i,y.READ_ONLY),r&&(this["_set"+ta(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,r,n){let a={property:i,method:r,dynamicFn:!!n};this._addPropertyEffect(i,y.OBSERVE,{fn:gs,info:a,trigger:{name:i}}),n&&this._addPropertyEffect(r,y.OBSERVE,{fn:gs,info:a,trigger:{name:r}})}_createMethodObserver(i,r){let n=Ft(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");ys(this,n,y.OBSERVE,oo,null,r)}_createNotifyingProperty(i){this._addPropertyEffect(i,y.NOTIFY,{fn:Sn,info:{eventName:yt(i)+"-changed",property:i}})}_createReflectedProperty(i){let r=this.constructor.attributeNameForProperty(i);r[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,y.REFLECT,{fn:Pn,info:{attrName:r}})}_createComputedProperty(i,r,n){let a=Ft(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=ys(this,a,y.COMPUTE,ui,i,n);Nt(this,li)[i]=l}_marshalArgs(i,r,n){const a=this.__data,l=[];for(let c=0,d=i.length;c<d;c++){let{name:h,structured:p,wildcard:m,value:f,literal:v}=i[c];if(!v)if(m){const b=Re(h,r),x=Es(a,n,b?r:h);f={path:b?r:h,value:x,base:b?O(a,h):x}}else f=p?Es(a,n,h):a[h];if(Zt&&!this._overrideLegacyUndefined&&f===void 0&&i.length>1)return He;l[c]=f}return l}static addPropertyEffect(i,r,n){this.prototype._addPropertyEffect(i,r,n)}static createPropertyObserver(i,r,n){this.prototype._createPropertyObserver(i,r,n)}static createMethodObserver(i,r){this.prototype._createMethodObserver(i,r)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,r){this.prototype._createReadOnlyProperty(i,r)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,r,n){this.prototype._createComputedProperty(i,r,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,r){let n=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=i._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,r,n){let a=i.hostProps=i.hostProps||{};a[r]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(i,r){r=r||this._bindTemplate(i,!0),Pe.push(this);let n=super._stampTemplate(i,r);if(Pe.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,$n(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const r=i.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let c=r.childNodes;for(let d=0;d<c.length;d++){let h=c[d];P(P(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,r,n){let a=t._parseTemplateNode.call(this,i,r,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,r);l&&(i.textContent=ws(l)||" ",Lt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,r,n,a,l){let c=this._parseBindings(l,r);if(c){let d=a,h="property";wn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=ws(c);return p&&h=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(p+=" "+i.getAttribute(a)),i.setAttribute(a,p)),h=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),h==="property"&&(a=ti(a)),Lt(this,r,n,h,a,c,p),!0}else return t._parseTemplateNodeAttribute.call(this,i,r,n,a,l)}static _parseTemplateNestedTemplate(i,r,n){let a=t._parseTemplateNestedTemplate.call(this,i,r,n);const l=i.parentNode,c=n.templateInfo,d=l.localName==="dom-if",h=l.localName==="dom-repeat";ls&&(d||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let p=c.hostProps;if(Yr&&d)p&&(r.hostProps=Object.assign(r.hostProps||{},p),ls||(n.parentInfo.noted=!0));else{let m="{";for(let f in p){let v=[{mode:m,source:f,dependencies:[f],hostProp:!0}];Lt(this,r,n,"property","_host_"+f,v)}}return a}static _parseBindings(i,r){let n=[],a=0,l;for(;(l=xs.exec(i))!==null;){l.index>a&&n.push({literal:i.slice(a,l.index)});let c=l[1][0],d=!!l[2],h=l[3].trim(),p=!1,m="",f=-1;c=="{"&&(f=h.indexOf("::"))>0&&(m=h.substring(f+2),h=h.substring(0,f),p=!0);let v=Ft(h),b=[];if(v){let{args:x,methodName:E}=v;for(let j=0;j<x.length;j++){let I=x[j];I.literal||b.push(I)}let z=r.dynamicFns;(z&&z[E]||v.static)&&(b.push(E),v.dynamicFn=!0)}else b.push(h);n.push({source:h,mode:c,negate:d,customEvent:p,signature:v,dependencies:b,event:m}),a=xs.lastIndex}if(a&&a<i.length){let c=i.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(i,r,n,a,l,c){let d;return r.signature?d=oo(i,n,a,l,r.signature):n!=r.source?d=O(i,r.source):c&&eo(n)?d=O(i,n):d=i.__data[n],r.negate&&(d=!d),d}}return e}),Pe=[];/**
|
|
692
|
+
@license
|
|
693
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
694
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
695
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
696
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
697
|
+
Code distributed by Google as part of the polymer project is also
|
|
698
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
699
|
+
*//**
|
|
700
|
+
@license
|
|
701
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
702
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
703
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
704
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
705
|
+
Code distributed by Google as part of the polymer project is also
|
|
706
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
707
|
+
*/function oa(s){const t={};for(let e in s){const o=s[e];t[e]=typeof o=="function"?{type:o}:o}return t}const sa=A(s=>{const t=ri(s);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof i?n:null}function o(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=oa(a))}r.__ownProperties=n}return r.__ownProperties}class i extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=o(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,o(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
|
|
708
|
+
* @fileoverview
|
|
709
|
+
* @suppress {checkPrototypalTypes}
|
|
710
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
711
|
+
* This code may only be used under the BSD style license found at
|
|
712
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
713
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
714
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
715
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
716
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
717
|
+
*/const ia="3.5.1",Cs=window.ShadyCSS&&window.ShadyCSS.cssBuild,ra=A(s=>{const t=sa(So(s));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let d in c){let h=c[d];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=h)}}return l.__propertyDefaults}function o(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,c,d,h){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,d.computed,h)),d.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):d.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),d.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):d.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),d.observer&&l._createPropertyObserver(c,d.observer,h[d.observer]),l._addPropertyToAttributeMap(c)}function r(l,c,d,h){if(!Cs){const p=c.content.querySelectorAll("style"),m=Xs(c),f=Zr(d),v=c.content.firstElementChild;for(let x=0;x<f.length;x++){let E=f[x];E.textContent=l._processStyleText(E.textContent,h),c.content.insertBefore(E,v)}let b=0;for(let x=0;x<m.length;x++){let E=m[x],z=p[b];z!==E?(E=E.cloneNode(!0),z.parentNode.insertBefore(E,z)):b++,E.textContent=l._processStyleText(E.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,d),Wr&&Cs&&Br){const p=c.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(f=>{m+=f.textContent,f.parentNode.removeChild(f)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let c=null;if(l&&(!ht||Vr)&&(c=Fe.import(l,"template"),ht&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends t{static get polymerElementVersion(){return ia}static _finalizeClass(){t._finalizeClass.call(this);const c=o(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):qs||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let d in c)i(this.prototype,d,c[d],c)}static createObservers(c,d){const h=this.prototype;for(let p=0;p<c.length;p++)h._createMethodObserver(c[p],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=Eo(c.url);else{const d=Fe.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Hr,this.importPath=this.constructor.importPath;let c=e(this.constructor);if(c)for(let d in c){let h=c[d];if(this._canApplyPropertyDefault(d)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(d)?this._setPendingProperty(d,p,!0):this[d]=p}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,d){return wo(c,d)}static _finalizeTemplate(c){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const h=this.importPath,p=h?Me(h):"";r(this,d,c,p),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(c){const d=P(this);if(d.attachShadow)return c?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:c}),d.shadowRoot.appendChild(c),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),jr&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,d){return!d&&this.importPath&&(d=Me(this.importPath)),Me(c,d)}static _parseTemplateContent(c,d,h){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,c,d,h)}static _addTemplatePropertyEffect(c,d,h){return Ks&&!(d in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,c,d,h)}}return a});/**
|
|
718
|
+
@license
|
|
719
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
720
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
721
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
722
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
723
|
+
Code distributed by Google as part of the polymer project is also
|
|
724
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
725
|
+
*/const As=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class mi{constructor(t,e){_i(t,e);const o=e.reduce((i,r,n)=>i+fi(r)+t[n+1],t[0]);this.value=o.toString()}toString(){return this.value}}function fi(s){if(s instanceof mi)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function na(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof mi)return fi(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const ne=function(t,...e){_i(t,e);const o=document.createElement("template");let i=e.reduce((r,n,a)=>r+na(n)+t[a+1],t[0]);return As&&(i=As.createHTML(i)),o.innerHTML=i,o},_i=(s,t)=>{if(!Array.isArray(s)||!Array.isArray(s.raw)||t.length!==s.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
726
|
+
@license
|
|
727
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
728
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
729
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
730
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
731
|
+
Code distributed by Google as part of the polymer project is also
|
|
732
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
733
|
+
*/const q=ra(HTMLElement);/**
|
|
734
|
+
* @license
|
|
735
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
736
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
737
|
+
*/const B=[];function so(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir")}function io(){return document.documentElement.getAttribute("dir")}function aa(){const s=io();B.forEach(t=>{so(t,s)})}const la=new MutationObserver(aa);la.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const bt=s=>class extends s{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),so(this,io(),null))}attributeChangedCallback(e,o,i){if(super.attributeChangedCallback(e,o,i),e!=="dir")return;const r=io(),n=i===r&&B.indexOf(this)===-1,a=!i&&o&&B.indexOf(this)===-1;n||a?(this.__subscribe(),so(this,r,i)):i!==r&&o===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=B.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,o,i){i==="dir"&&o===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,o,i)}_attributeToProperty(e,o,i){e==="dir"&&!o?this.dir="":super._attributeToProperty(e,o,i)}__subscribe(){B.includes(this)||B.push(this)}__unsubscribe(){B.includes(this)&&B.splice(B.indexOf(this),1)}};/**
|
|
738
|
+
* @license
|
|
739
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
740
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
741
|
+
*/class ca extends ie(bt(q)){static get is(){return"vaadin-input-container"}static get template(){return ne`
|
|
742
|
+
<style>
|
|
743
|
+
:host {
|
|
744
|
+
display: flex;
|
|
745
|
+
align-items: center;
|
|
746
|
+
flex: 0 1 auto;
|
|
747
|
+
border-radius:
|
|
748
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
749
|
+
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
|
|
750
|
+
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
|
|
751
|
+
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
|
|
752
|
+
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
|
|
753
|
+
--_border-radius: var(--vaadin-input-field-border-radius, 0px);
|
|
754
|
+
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
755
|
+
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
756
|
+
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
:host([dir='rtl']) {
|
|
760
|
+
border-radius:
|
|
761
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
762
|
+
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
|
|
763
|
+
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
|
|
764
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
|
|
765
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
:host([hidden]) {
|
|
769
|
+
display: none !important;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/* Reset the native input styles */
|
|
773
|
+
::slotted(input) {
|
|
774
|
+
-webkit-appearance: none;
|
|
775
|
+
-moz-appearance: none;
|
|
776
|
+
flex: auto;
|
|
777
|
+
white-space: nowrap;
|
|
778
|
+
overflow: hidden;
|
|
779
|
+
width: 100%;
|
|
780
|
+
height: 100%;
|
|
781
|
+
outline: none;
|
|
782
|
+
margin: 0;
|
|
783
|
+
padding: 0;
|
|
784
|
+
border: 0;
|
|
785
|
+
border-radius: 0;
|
|
786
|
+
min-width: 0;
|
|
787
|
+
font: inherit;
|
|
788
|
+
line-height: normal;
|
|
789
|
+
color: inherit;
|
|
790
|
+
background-color: transparent;
|
|
791
|
+
/* Disable default invalid style in Firefox */
|
|
792
|
+
box-shadow: none;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
::slotted(*) {
|
|
796
|
+
flex: none;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
::slotted(:is(input, textarea))::placeholder {
|
|
800
|
+
/* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
|
|
801
|
+
/* because ::slotted(...)::placeholder does not work in Safari. */
|
|
802
|
+
font: inherit;
|
|
803
|
+
color: inherit;
|
|
804
|
+
/* Override default opacity in Firefox */
|
|
805
|
+
opacity: 1;
|
|
806
|
+
}
|
|
807
|
+
</style>
|
|
808
|
+
<slot name="prefix"></slot>
|
|
809
|
+
<slot></slot>
|
|
810
|
+
<slot name="suffix"></slot>
|
|
811
|
+
`}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(e=>e.focus&&e.focus())})}}N(ca);/**
|
|
812
|
+
* @license
|
|
813
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
814
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
815
|
+
*/let ua=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};N(ua);const ve=(s,...t)=>{xo(`lumo-${s}`,t)};/**
|
|
816
|
+
* @license
|
|
817
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
818
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
819
|
+
*/const da=_`
|
|
820
|
+
:host {
|
|
821
|
+
--lumo-size-xs: 1.625rem;
|
|
822
|
+
--lumo-size-s: 1.875rem;
|
|
823
|
+
--lumo-size-m: 2.25rem;
|
|
824
|
+
--lumo-size-l: 2.75rem;
|
|
825
|
+
--lumo-size-xl: 3.5rem;
|
|
826
|
+
|
|
827
|
+
/* Icons */
|
|
828
|
+
--lumo-icon-size-s: 1.25em;
|
|
829
|
+
--lumo-icon-size-m: 1.5em;
|
|
830
|
+
--lumo-icon-size-l: 2.25em;
|
|
831
|
+
/* For backwards compatibility */
|
|
832
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
833
|
+
}
|
|
834
|
+
`;ve("sizing-props",da);/**
|
|
835
|
+
* @license
|
|
836
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
837
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
838
|
+
*/const ha=_`
|
|
839
|
+
:host {
|
|
840
|
+
/* Square */
|
|
841
|
+
--lumo-space-xs: 0.25rem;
|
|
842
|
+
--lumo-space-s: 0.5rem;
|
|
843
|
+
--lumo-space-m: 1rem;
|
|
844
|
+
--lumo-space-l: 1.5rem;
|
|
845
|
+
--lumo-space-xl: 2.5rem;
|
|
846
|
+
|
|
847
|
+
/* Wide */
|
|
848
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
849
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
850
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
851
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
852
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
853
|
+
|
|
854
|
+
/* Tall */
|
|
855
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
856
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
857
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
858
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
859
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
860
|
+
}
|
|
861
|
+
`;ve("spacing-props",ha);/**
|
|
862
|
+
* @license
|
|
863
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
864
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
865
|
+
*/const pa=_`
|
|
866
|
+
:host {
|
|
867
|
+
/* Border radius */
|
|
868
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
869
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
870
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
871
|
+
|
|
872
|
+
/* Shadow */
|
|
873
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
874
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
875
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
876
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
877
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
878
|
+
|
|
879
|
+
/* Clickable element cursor */
|
|
880
|
+
--lumo-clickable-cursor: default;
|
|
881
|
+
}
|
|
882
|
+
`;_`
|
|
883
|
+
html {
|
|
884
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
885
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
886
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
887
|
+
}
|
|
888
|
+
`;ve("style-props",pa);/**
|
|
889
|
+
* @license
|
|
890
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
891
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
892
|
+
*/const ma=_`
|
|
893
|
+
:host {
|
|
894
|
+
/* Base (background) */
|
|
895
|
+
--lumo-base-color: #fff;
|
|
896
|
+
|
|
897
|
+
/* Tint */
|
|
898
|
+
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
899
|
+
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
900
|
+
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
901
|
+
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
902
|
+
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
903
|
+
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
904
|
+
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
905
|
+
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
906
|
+
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
907
|
+
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
908
|
+
--lumo-tint: #fff;
|
|
909
|
+
|
|
910
|
+
/* Shade */
|
|
911
|
+
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
912
|
+
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
913
|
+
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
914
|
+
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
915
|
+
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
916
|
+
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
917
|
+
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
918
|
+
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
919
|
+
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
920
|
+
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
921
|
+
--lumo-shade: hsl(214, 35%, 15%);
|
|
922
|
+
|
|
923
|
+
/* Contrast */
|
|
924
|
+
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
925
|
+
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
926
|
+
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
927
|
+
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
928
|
+
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
929
|
+
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
930
|
+
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
931
|
+
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
932
|
+
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
933
|
+
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
934
|
+
--lumo-contrast: var(--lumo-shade);
|
|
935
|
+
|
|
936
|
+
/* Text */
|
|
937
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
938
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
939
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
940
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
941
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
942
|
+
|
|
943
|
+
/* Primary */
|
|
944
|
+
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
945
|
+
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
946
|
+
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
947
|
+
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
948
|
+
--lumo-primary-contrast-color: #fff;
|
|
949
|
+
|
|
950
|
+
/* Error */
|
|
951
|
+
--lumo-error-color: hsl(3, 85%, 48%);
|
|
952
|
+
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
953
|
+
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
954
|
+
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
955
|
+
--lumo-error-contrast-color: #fff;
|
|
956
|
+
|
|
957
|
+
/* Success */
|
|
958
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
959
|
+
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
960
|
+
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
961
|
+
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
962
|
+
--lumo-success-contrast-color: #fff;
|
|
963
|
+
|
|
964
|
+
/* Warning */
|
|
965
|
+
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
966
|
+
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
967
|
+
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
968
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/* forced-colors mode adjustments */
|
|
972
|
+
@media (forced-colors: active) {
|
|
973
|
+
html {
|
|
974
|
+
--lumo-disabled-text-color: GrayText;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
`;ve("color-props",ma);const fa=_`
|
|
978
|
+
[theme~='dark'] {
|
|
979
|
+
/* Base (background) */
|
|
980
|
+
--lumo-base-color: hsl(214, 35%, 21%);
|
|
981
|
+
|
|
982
|
+
/* Tint */
|
|
983
|
+
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
984
|
+
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
985
|
+
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
986
|
+
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
987
|
+
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
988
|
+
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
989
|
+
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
990
|
+
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
991
|
+
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
992
|
+
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
993
|
+
--lumo-tint: hsl(214, 100%, 98%);
|
|
994
|
+
|
|
995
|
+
/* Shade */
|
|
996
|
+
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
997
|
+
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
998
|
+
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
999
|
+
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
1000
|
+
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
1001
|
+
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
1002
|
+
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
1003
|
+
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
1004
|
+
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
1005
|
+
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
1006
|
+
--lumo-shade: hsl(214, 33%, 13%);
|
|
1007
|
+
|
|
1008
|
+
/* Contrast */
|
|
1009
|
+
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
1010
|
+
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
1011
|
+
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
1012
|
+
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
1013
|
+
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
1014
|
+
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
1015
|
+
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
1016
|
+
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
1017
|
+
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
1018
|
+
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
1019
|
+
--lumo-contrast: var(--lumo-tint);
|
|
1020
|
+
|
|
1021
|
+
/* Text */
|
|
1022
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
1023
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
1024
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
1025
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
1026
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
1027
|
+
|
|
1028
|
+
/* Primary */
|
|
1029
|
+
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
1030
|
+
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
1031
|
+
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
1032
|
+
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
1033
|
+
--lumo-primary-contrast-color: #fff;
|
|
1034
|
+
|
|
1035
|
+
/* Error */
|
|
1036
|
+
--lumo-error-color: hsl(3, 79%, 49%);
|
|
1037
|
+
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
1038
|
+
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
1039
|
+
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
1040
|
+
|
|
1041
|
+
/* Success */
|
|
1042
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
1043
|
+
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
1044
|
+
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
1045
|
+
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
1046
|
+
|
|
1047
|
+
/* Warning */
|
|
1048
|
+
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
1049
|
+
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
1050
|
+
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
1051
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
html {
|
|
1055
|
+
color: var(--lumo-body-text-color);
|
|
1056
|
+
background-color: var(--lumo-base-color);
|
|
1057
|
+
color-scheme: light;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
[theme~='dark'] {
|
|
1061
|
+
color: var(--lumo-body-text-color);
|
|
1062
|
+
background-color: var(--lumo-base-color);
|
|
1063
|
+
color-scheme: dark;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
h1,
|
|
1067
|
+
h2,
|
|
1068
|
+
h3,
|
|
1069
|
+
h4,
|
|
1070
|
+
h5,
|
|
1071
|
+
h6 {
|
|
1072
|
+
color: var(--lumo-header-text-color);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
a:where(:any-link) {
|
|
1076
|
+
color: var(--lumo-primary-text-color);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
a:not(:any-link) {
|
|
1080
|
+
color: var(--lumo-disabled-text-color);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
blockquote {
|
|
1084
|
+
color: var(--lumo-secondary-text-color);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
code,
|
|
1088
|
+
pre {
|
|
1089
|
+
background-color: var(--lumo-contrast-10pct);
|
|
1090
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1091
|
+
}
|
|
1092
|
+
`;C("",fa,{moduleId:"lumo-color"});/**
|
|
1093
|
+
* @license
|
|
1094
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1095
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1096
|
+
*/const _a=_`
|
|
1097
|
+
:host {
|
|
1098
|
+
/* prettier-ignore */
|
|
1099
|
+
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
1100
|
+
|
|
1101
|
+
/* Font sizes */
|
|
1102
|
+
--lumo-font-size-xxs: 0.75rem;
|
|
1103
|
+
--lumo-font-size-xs: 0.8125rem;
|
|
1104
|
+
--lumo-font-size-s: 0.875rem;
|
|
1105
|
+
--lumo-font-size-m: 1rem;
|
|
1106
|
+
--lumo-font-size-l: 1.125rem;
|
|
1107
|
+
--lumo-font-size-xl: 1.375rem;
|
|
1108
|
+
--lumo-font-size-xxl: 1.75rem;
|
|
1109
|
+
--lumo-font-size-xxxl: 2.5rem;
|
|
1110
|
+
|
|
1111
|
+
/* Line heights */
|
|
1112
|
+
--lumo-line-height-xs: 1.25;
|
|
1113
|
+
--lumo-line-height-s: 1.375;
|
|
1114
|
+
--lumo-line-height-m: 1.625;
|
|
1115
|
+
}
|
|
1116
|
+
`,ga=_`
|
|
1117
|
+
body,
|
|
1118
|
+
:host {
|
|
1119
|
+
font-family: var(--lumo-font-family);
|
|
1120
|
+
font-size: var(--lumo-font-size-m);
|
|
1121
|
+
line-height: var(--lumo-line-height-m);
|
|
1122
|
+
-webkit-text-size-adjust: 100%;
|
|
1123
|
+
-webkit-font-smoothing: antialiased;
|
|
1124
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
small,
|
|
1128
|
+
[theme~='font-size-s'] {
|
|
1129
|
+
font-size: var(--lumo-font-size-s);
|
|
1130
|
+
line-height: var(--lumo-line-height-s);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
[theme~='font-size-xs'] {
|
|
1134
|
+
font-size: var(--lumo-font-size-xs);
|
|
1135
|
+
line-height: var(--lumo-line-height-xs);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
1139
|
+
font-weight: 600;
|
|
1140
|
+
line-height: var(--lumo-line-height-xs);
|
|
1141
|
+
margin-block: 0;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
:where(h1) {
|
|
1145
|
+
font-size: var(--lumo-font-size-xxxl);
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
:where(h2) {
|
|
1149
|
+
font-size: var(--lumo-font-size-xxl);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
:where(h3) {
|
|
1153
|
+
font-size: var(--lumo-font-size-xl);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
:where(h4) {
|
|
1157
|
+
font-size: var(--lumo-font-size-l);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
:where(h5) {
|
|
1161
|
+
font-size: var(--lumo-font-size-m);
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
:where(h6) {
|
|
1165
|
+
font-size: var(--lumo-font-size-xs);
|
|
1166
|
+
text-transform: uppercase;
|
|
1167
|
+
letter-spacing: 0.03em;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
p,
|
|
1171
|
+
blockquote {
|
|
1172
|
+
margin-top: 0.5em;
|
|
1173
|
+
margin-bottom: 0.75em;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
a {
|
|
1177
|
+
text-decoration: none;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
a:where(:any-link):hover {
|
|
1181
|
+
text-decoration: underline;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
hr {
|
|
1185
|
+
display: block;
|
|
1186
|
+
align-self: stretch;
|
|
1187
|
+
height: 1px;
|
|
1188
|
+
border: 0;
|
|
1189
|
+
padding: 0;
|
|
1190
|
+
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
1191
|
+
background-color: var(--lumo-contrast-10pct);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
blockquote {
|
|
1195
|
+
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
b,
|
|
1199
|
+
strong {
|
|
1200
|
+
font-weight: 600;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/* RTL specific styles */
|
|
1204
|
+
blockquote[dir='rtl'] {
|
|
1205
|
+
border-left: none;
|
|
1206
|
+
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1207
|
+
}
|
|
1208
|
+
`;C("",ga,{moduleId:"lumo-typography"});ve("typography-props",_a);/**
|
|
1209
|
+
* @license
|
|
1210
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1211
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1212
|
+
*/const gi=_`
|
|
1213
|
+
:host {
|
|
1214
|
+
top: var(--lumo-space-m);
|
|
1215
|
+
right: var(--lumo-space-m);
|
|
1216
|
+
bottom: var(--lumo-space-m);
|
|
1217
|
+
left: var(--lumo-space-m);
|
|
1218
|
+
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
1219
|
+
/* stylelint-disable-next-line */
|
|
1220
|
+
outline: 0px solid transparent;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
[part='overlay'] {
|
|
1224
|
+
background-color: var(--lumo-base-color);
|
|
1225
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
1226
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1227
|
+
box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
|
|
1228
|
+
color: var(--lumo-body-text-color);
|
|
1229
|
+
font-family: var(--lumo-font-family);
|
|
1230
|
+
font-size: var(--lumo-font-size-m);
|
|
1231
|
+
font-weight: 400;
|
|
1232
|
+
line-height: var(--lumo-line-height-m);
|
|
1233
|
+
letter-spacing: 0;
|
|
1234
|
+
text-transform: none;
|
|
1235
|
+
-webkit-text-size-adjust: 100%;
|
|
1236
|
+
-webkit-font-smoothing: antialiased;
|
|
1237
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
[part='content'] {
|
|
1241
|
+
padding: var(--lumo-space-xs);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
[part='backdrop'] {
|
|
1245
|
+
background-color: var(--lumo-shade-20pct);
|
|
1246
|
+
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
1247
|
+
will-change: opacity;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
@keyframes lumo-overlay-backdrop-enter {
|
|
1251
|
+
0% {
|
|
1252
|
+
opacity: 0;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
:host([closing]) [part='backdrop'] {
|
|
1257
|
+
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
@keyframes lumo-overlay-backdrop-exit {
|
|
1261
|
+
100% {
|
|
1262
|
+
opacity: 0;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
@keyframes lumo-overlay-dummy-animation {
|
|
1267
|
+
0% {
|
|
1268
|
+
opacity: 1;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
100% {
|
|
1272
|
+
opacity: 1;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
`;C("",gi,{moduleId:"lumo-overlay"});/**
|
|
1276
|
+
* @license
|
|
1277
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1278
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1279
|
+
*/const vi=_`
|
|
1280
|
+
:host([opening]),
|
|
1281
|
+
:host([closing]) {
|
|
1282
|
+
animation: 0.14s lumo-overlay-dummy-animation;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
[part='overlay'] {
|
|
1286
|
+
will-change: opacity, transform;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
:host([opening]) [part='overlay'] {
|
|
1290
|
+
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
@keyframes lumo-menu-overlay-enter {
|
|
1294
|
+
0% {
|
|
1295
|
+
opacity: 0;
|
|
1296
|
+
transform: translateY(-4px);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
:host([closing]) [part='overlay'] {
|
|
1301
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
@keyframes lumo-menu-overlay-exit {
|
|
1305
|
+
100% {
|
|
1306
|
+
opacity: 0;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
`;C("",vi,{moduleId:"lumo-menu-overlay-core"});const va=_`
|
|
1310
|
+
/* Small viewport (bottom sheet) styles */
|
|
1311
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
1312
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
1313
|
+
:host {
|
|
1314
|
+
top: 0 !important;
|
|
1315
|
+
right: 0 !important;
|
|
1316
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
1317
|
+
left: 0 !important;
|
|
1318
|
+
align-items: stretch !important;
|
|
1319
|
+
justify-content: flex-end !important;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
[part='overlay'] {
|
|
1323
|
+
max-height: 50vh;
|
|
1324
|
+
width: 100vw;
|
|
1325
|
+
border-radius: 0;
|
|
1326
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
1330
|
+
[part='content'] {
|
|
1331
|
+
padding: 30px var(--lumo-space-m);
|
|
1332
|
+
max-height: inherit;
|
|
1333
|
+
box-sizing: border-box;
|
|
1334
|
+
-webkit-overflow-scrolling: touch;
|
|
1335
|
+
overflow: auto;
|
|
1336
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
1337
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
[part='backdrop'] {
|
|
1341
|
+
display: block;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
/* Animations */
|
|
1345
|
+
|
|
1346
|
+
:host([opening]) [part='overlay'] {
|
|
1347
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
:host([closing]),
|
|
1351
|
+
:host([closing]) [part='backdrop'] {
|
|
1352
|
+
animation-delay: 0.14s;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
:host([closing]) [part='overlay'] {
|
|
1356
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
1361
|
+
0% {
|
|
1362
|
+
transform: translateY(150%);
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
1367
|
+
100% {
|
|
1368
|
+
transform: translateY(150%);
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
`,yi=[gi,vi,va];C("",yi,{moduleId:"lumo-menu-overlay"});const ya=_`
|
|
1372
|
+
[part='overlay'] {
|
|
1373
|
+
/*
|
|
1374
|
+
Width:
|
|
1375
|
+
date cell widths
|
|
1376
|
+
+ month calendar side padding
|
|
1377
|
+
+ year scroller width
|
|
1378
|
+
*/
|
|
1379
|
+
/* prettier-ignore */
|
|
1380
|
+
width:
|
|
1381
|
+
calc(
|
|
1382
|
+
var(--lumo-size-m) * 7
|
|
1383
|
+
+ var(--lumo-space-xs) * 2
|
|
1384
|
+
+ 57px
|
|
1385
|
+
);
|
|
1386
|
+
height: 100%;
|
|
1387
|
+
max-height: calc(var(--lumo-size-m) * 14);
|
|
1388
|
+
overflow: hidden;
|
|
1389
|
+
-webkit-tap-highlight-color: transparent;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
[part='overlay'] {
|
|
1393
|
+
flex-direction: column;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
[part='content'] {
|
|
1397
|
+
padding: 0;
|
|
1398
|
+
height: 100%;
|
|
1399
|
+
overflow: hidden;
|
|
1400
|
+
-webkit-mask-image: none;
|
|
1401
|
+
mask-image: none;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
:host([top-aligned]) [part~='overlay'] {
|
|
1405
|
+
margin-top: var(--lumo-space-xs);
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
:host([bottom-aligned]) [part~='overlay'] {
|
|
1409
|
+
margin-bottom: var(--lumo-space-xs);
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
1413
|
+
[part='overlay'] {
|
|
1414
|
+
width: 100vw;
|
|
1415
|
+
height: 70vh;
|
|
1416
|
+
max-height: 70vh;
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
`;C("vaadin-date-picker-overlay",[yi,ya],{moduleId:"lumo-date-picker-overlay"});/**
|
|
1420
|
+
* @license
|
|
1421
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1422
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1423
|
+
*/class ba extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}N(ba);const We=(s,...t)=>{xo(`lumo-${s}`,t)};/**
|
|
1424
|
+
* @license
|
|
1425
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1426
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1427
|
+
*/const xa=_`
|
|
1428
|
+
:host {
|
|
1429
|
+
/* Base (background) */
|
|
1430
|
+
--lumo-base-color: #fff;
|
|
1431
|
+
|
|
1432
|
+
/* Tint */
|
|
1433
|
+
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
1434
|
+
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
1435
|
+
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
1436
|
+
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
1437
|
+
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
1438
|
+
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
1439
|
+
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
1440
|
+
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
1441
|
+
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
1442
|
+
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
1443
|
+
--lumo-tint: #fff;
|
|
1444
|
+
|
|
1445
|
+
/* Shade */
|
|
1446
|
+
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
1447
|
+
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
1448
|
+
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
1449
|
+
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
1450
|
+
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
1451
|
+
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
1452
|
+
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
1453
|
+
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
1454
|
+
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
1455
|
+
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
1456
|
+
--lumo-shade: hsl(214, 35%, 15%);
|
|
1457
|
+
|
|
1458
|
+
/* Contrast */
|
|
1459
|
+
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
1460
|
+
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
1461
|
+
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
1462
|
+
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
1463
|
+
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
1464
|
+
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
1465
|
+
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
1466
|
+
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
1467
|
+
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
1468
|
+
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
1469
|
+
--lumo-contrast: var(--lumo-shade);
|
|
1470
|
+
|
|
1471
|
+
/* Text */
|
|
1472
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
1473
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
1474
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
1475
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
1476
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
1477
|
+
|
|
1478
|
+
/* Primary */
|
|
1479
|
+
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
1480
|
+
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
1481
|
+
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
1482
|
+
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
1483
|
+
--lumo-primary-contrast-color: #fff;
|
|
1484
|
+
|
|
1485
|
+
/* Error */
|
|
1486
|
+
--lumo-error-color: hsl(3, 85%, 48%);
|
|
1487
|
+
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
1488
|
+
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
1489
|
+
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
1490
|
+
--lumo-error-contrast-color: #fff;
|
|
1491
|
+
|
|
1492
|
+
/* Success */
|
|
1493
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
1494
|
+
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
1495
|
+
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
1496
|
+
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
1497
|
+
--lumo-success-contrast-color: #fff;
|
|
1498
|
+
|
|
1499
|
+
/* Warning */
|
|
1500
|
+
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
1501
|
+
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
1502
|
+
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
1503
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
/* forced-colors mode adjustments */
|
|
1507
|
+
@media (forced-colors: active) {
|
|
1508
|
+
html {
|
|
1509
|
+
--lumo-disabled-text-color: GrayText;
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
`;We("color-props",xa);const wa=_`
|
|
1513
|
+
[theme~='dark'] {
|
|
1514
|
+
/* Base (background) */
|
|
1515
|
+
--lumo-base-color: hsl(214, 35%, 21%);
|
|
1516
|
+
|
|
1517
|
+
/* Tint */
|
|
1518
|
+
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
1519
|
+
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
1520
|
+
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
1521
|
+
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
1522
|
+
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
1523
|
+
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
1524
|
+
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
1525
|
+
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
1526
|
+
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
1527
|
+
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
1528
|
+
--lumo-tint: hsl(214, 100%, 98%);
|
|
1529
|
+
|
|
1530
|
+
/* Shade */
|
|
1531
|
+
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
1532
|
+
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
1533
|
+
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
1534
|
+
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
1535
|
+
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
1536
|
+
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
1537
|
+
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
1538
|
+
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
1539
|
+
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
1540
|
+
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
1541
|
+
--lumo-shade: hsl(214, 33%, 13%);
|
|
1542
|
+
|
|
1543
|
+
/* Contrast */
|
|
1544
|
+
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
1545
|
+
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
1546
|
+
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
1547
|
+
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
1548
|
+
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
1549
|
+
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
1550
|
+
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
1551
|
+
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
1552
|
+
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
1553
|
+
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
1554
|
+
--lumo-contrast: var(--lumo-tint);
|
|
1555
|
+
|
|
1556
|
+
/* Text */
|
|
1557
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
1558
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
1559
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
1560
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
1561
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
1562
|
+
|
|
1563
|
+
/* Primary */
|
|
1564
|
+
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
1565
|
+
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
1566
|
+
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
1567
|
+
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
1568
|
+
--lumo-primary-contrast-color: #fff;
|
|
1569
|
+
|
|
1570
|
+
/* Error */
|
|
1571
|
+
--lumo-error-color: hsl(3, 79%, 49%);
|
|
1572
|
+
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
1573
|
+
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
1574
|
+
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
1575
|
+
|
|
1576
|
+
/* Success */
|
|
1577
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
1578
|
+
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
1579
|
+
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
1580
|
+
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
1581
|
+
|
|
1582
|
+
/* Warning */
|
|
1583
|
+
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
1584
|
+
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
1585
|
+
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
1586
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
html {
|
|
1590
|
+
color: var(--lumo-body-text-color);
|
|
1591
|
+
background-color: var(--lumo-base-color);
|
|
1592
|
+
color-scheme: light;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
[theme~='dark'] {
|
|
1596
|
+
color: var(--lumo-body-text-color);
|
|
1597
|
+
background-color: var(--lumo-base-color);
|
|
1598
|
+
color-scheme: dark;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
h1,
|
|
1602
|
+
h2,
|
|
1603
|
+
h3,
|
|
1604
|
+
h4,
|
|
1605
|
+
h5,
|
|
1606
|
+
h6 {
|
|
1607
|
+
color: var(--lumo-header-text-color);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
a:where(:any-link) {
|
|
1611
|
+
color: var(--lumo-primary-text-color);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
a:not(:any-link) {
|
|
1615
|
+
color: var(--lumo-disabled-text-color);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
blockquote {
|
|
1619
|
+
color: var(--lumo-secondary-text-color);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
code,
|
|
1623
|
+
pre {
|
|
1624
|
+
background-color: var(--lumo-contrast-10pct);
|
|
1625
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1626
|
+
}
|
|
1627
|
+
`;C("",wa,{moduleId:"lumo-color"});/**
|
|
1628
|
+
* @license
|
|
1629
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1630
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1631
|
+
*/const Ea=_`
|
|
1632
|
+
:host {
|
|
1633
|
+
--lumo-size-xs: 1.625rem;
|
|
1634
|
+
--lumo-size-s: 1.875rem;
|
|
1635
|
+
--lumo-size-m: 2.25rem;
|
|
1636
|
+
--lumo-size-l: 2.75rem;
|
|
1637
|
+
--lumo-size-xl: 3.5rem;
|
|
1638
|
+
|
|
1639
|
+
/* Icons */
|
|
1640
|
+
--lumo-icon-size-s: 1.25em;
|
|
1641
|
+
--lumo-icon-size-m: 1.5em;
|
|
1642
|
+
--lumo-icon-size-l: 2.25em;
|
|
1643
|
+
/* For backwards compatibility */
|
|
1644
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
1645
|
+
}
|
|
1646
|
+
`;We("sizing-props",Ea);/**
|
|
1647
|
+
* @license
|
|
1648
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1649
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1650
|
+
*/const Ca=_`
|
|
1651
|
+
:host {
|
|
1652
|
+
/* Square */
|
|
1653
|
+
--lumo-space-xs: 0.25rem;
|
|
1654
|
+
--lumo-space-s: 0.5rem;
|
|
1655
|
+
--lumo-space-m: 1rem;
|
|
1656
|
+
--lumo-space-l: 1.5rem;
|
|
1657
|
+
--lumo-space-xl: 2.5rem;
|
|
1658
|
+
|
|
1659
|
+
/* Wide */
|
|
1660
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
1661
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
1662
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
1663
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
1664
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
1665
|
+
|
|
1666
|
+
/* Tall */
|
|
1667
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
1668
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
1669
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
1670
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
1671
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
1672
|
+
}
|
|
1673
|
+
`;We("spacing-props",Ca);/**
|
|
1674
|
+
* @license
|
|
1675
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1676
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1677
|
+
*/const Aa=_`
|
|
1678
|
+
:host {
|
|
1679
|
+
/* Border radius */
|
|
1680
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
1681
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
1682
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
1683
|
+
|
|
1684
|
+
/* Shadow */
|
|
1685
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
1686
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
1687
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
1688
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
1689
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
1690
|
+
|
|
1691
|
+
/* Clickable element cursor */
|
|
1692
|
+
--lumo-clickable-cursor: default;
|
|
1693
|
+
}
|
|
1694
|
+
`;_`
|
|
1695
|
+
html {
|
|
1696
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
1697
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
1698
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
1699
|
+
}
|
|
1700
|
+
`;We("style-props",Aa);/**
|
|
1701
|
+
* @license
|
|
1702
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1703
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1704
|
+
*/const Sa=_`
|
|
1705
|
+
:host {
|
|
1706
|
+
/* prettier-ignore */
|
|
1707
|
+
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
1708
|
+
|
|
1709
|
+
/* Font sizes */
|
|
1710
|
+
--lumo-font-size-xxs: 0.75rem;
|
|
1711
|
+
--lumo-font-size-xs: 0.8125rem;
|
|
1712
|
+
--lumo-font-size-s: 0.875rem;
|
|
1713
|
+
--lumo-font-size-m: 1rem;
|
|
1714
|
+
--lumo-font-size-l: 1.125rem;
|
|
1715
|
+
--lumo-font-size-xl: 1.375rem;
|
|
1716
|
+
--lumo-font-size-xxl: 1.75rem;
|
|
1717
|
+
--lumo-font-size-xxxl: 2.5rem;
|
|
1718
|
+
|
|
1719
|
+
/* Line heights */
|
|
1720
|
+
--lumo-line-height-xs: 1.25;
|
|
1721
|
+
--lumo-line-height-s: 1.375;
|
|
1722
|
+
--lumo-line-height-m: 1.625;
|
|
1723
|
+
}
|
|
1724
|
+
`,ka=_`
|
|
1725
|
+
body,
|
|
1726
|
+
:host {
|
|
1727
|
+
font-family: var(--lumo-font-family);
|
|
1728
|
+
font-size: var(--lumo-font-size-m);
|
|
1729
|
+
line-height: var(--lumo-line-height-m);
|
|
1730
|
+
-webkit-text-size-adjust: 100%;
|
|
1731
|
+
-webkit-font-smoothing: antialiased;
|
|
1732
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
small,
|
|
1736
|
+
[theme~='font-size-s'] {
|
|
1737
|
+
font-size: var(--lumo-font-size-s);
|
|
1738
|
+
line-height: var(--lumo-line-height-s);
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
[theme~='font-size-xs'] {
|
|
1742
|
+
font-size: var(--lumo-font-size-xs);
|
|
1743
|
+
line-height: var(--lumo-line-height-xs);
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
1747
|
+
font-weight: 600;
|
|
1748
|
+
line-height: var(--lumo-line-height-xs);
|
|
1749
|
+
margin-block: 0;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
:where(h1) {
|
|
1753
|
+
font-size: var(--lumo-font-size-xxxl);
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
:where(h2) {
|
|
1757
|
+
font-size: var(--lumo-font-size-xxl);
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
:where(h3) {
|
|
1761
|
+
font-size: var(--lumo-font-size-xl);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
:where(h4) {
|
|
1765
|
+
font-size: var(--lumo-font-size-l);
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
:where(h5) {
|
|
1769
|
+
font-size: var(--lumo-font-size-m);
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
:where(h6) {
|
|
1773
|
+
font-size: var(--lumo-font-size-xs);
|
|
1774
|
+
text-transform: uppercase;
|
|
1775
|
+
letter-spacing: 0.03em;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
p,
|
|
1779
|
+
blockquote {
|
|
1780
|
+
margin-top: 0.5em;
|
|
1781
|
+
margin-bottom: 0.75em;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
a {
|
|
1785
|
+
text-decoration: none;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
a:where(:any-link):hover {
|
|
1789
|
+
text-decoration: underline;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
hr {
|
|
1793
|
+
display: block;
|
|
1794
|
+
align-self: stretch;
|
|
1795
|
+
height: 1px;
|
|
1796
|
+
border: 0;
|
|
1797
|
+
padding: 0;
|
|
1798
|
+
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
1799
|
+
background-color: var(--lumo-contrast-10pct);
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
blockquote {
|
|
1803
|
+
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
b,
|
|
1807
|
+
strong {
|
|
1808
|
+
font-weight: 600;
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
/* RTL specific styles */
|
|
1812
|
+
blockquote[dir='rtl'] {
|
|
1813
|
+
border-left: none;
|
|
1814
|
+
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1815
|
+
}
|
|
1816
|
+
`;C("",ka,{moduleId:"lumo-typography"});We("typography-props",Sa);const Pa=_`
|
|
1817
|
+
:host {
|
|
1818
|
+
/* Sizing */
|
|
1819
|
+
--lumo-button-size: var(--lumo-size-m);
|
|
1820
|
+
min-width: calc(var(--lumo-button-size) * 2);
|
|
1821
|
+
height: var(--lumo-button-size);
|
|
1822
|
+
padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
|
|
1823
|
+
margin: var(--lumo-space-xs) 0;
|
|
1824
|
+
box-sizing: border-box;
|
|
1825
|
+
/* Style */
|
|
1826
|
+
font-family: var(--lumo-font-family);
|
|
1827
|
+
font-size: var(--lumo-font-size-m);
|
|
1828
|
+
font-weight: 500;
|
|
1829
|
+
color: var(--_lumo-button-color, var(--lumo-primary-text-color));
|
|
1830
|
+
background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
|
|
1831
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1832
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1833
|
+
-webkit-tap-highlight-color: transparent;
|
|
1834
|
+
-webkit-font-smoothing: antialiased;
|
|
1835
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1836
|
+
flex-shrink: 0;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
|
1840
|
+
[part='label'],
|
|
1841
|
+
[part='prefix'],
|
|
1842
|
+
[part='suffix'] {
|
|
1843
|
+
line-height: var(--lumo-line-height-xs);
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
[part='label'] {
|
|
1847
|
+
padding: calc(var(--lumo-button-size) / 6) 0;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
:host([theme~='small']) {
|
|
1851
|
+
font-size: var(--lumo-font-size-s);
|
|
1852
|
+
--lumo-button-size: var(--lumo-size-s);
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
:host([theme~='large']) {
|
|
1856
|
+
font-size: var(--lumo-font-size-l);
|
|
1857
|
+
--lumo-button-size: var(--lumo-size-l);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
/* For interaction states */
|
|
1861
|
+
:host::before,
|
|
1862
|
+
:host::after {
|
|
1863
|
+
content: '';
|
|
1864
|
+
/* We rely on the host always being relative */
|
|
1865
|
+
position: absolute;
|
|
1866
|
+
z-index: 1;
|
|
1867
|
+
inset: 0;
|
|
1868
|
+
background-color: currentColor;
|
|
1869
|
+
border-radius: inherit;
|
|
1870
|
+
opacity: 0;
|
|
1871
|
+
pointer-events: none;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
/* Hover */
|
|
1875
|
+
|
|
1876
|
+
@media (any-hover: hover) {
|
|
1877
|
+
:host(:hover)::before {
|
|
1878
|
+
opacity: 0.02;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
/* Active */
|
|
1883
|
+
|
|
1884
|
+
:host::after {
|
|
1885
|
+
transition: opacity 1.4s, transform 0.1s;
|
|
1886
|
+
filter: blur(8px);
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
:host([active])::before {
|
|
1890
|
+
opacity: 0.05;
|
|
1891
|
+
transition-duration: 0s;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
:host([active])::after {
|
|
1895
|
+
opacity: 0.1;
|
|
1896
|
+
transition-duration: 0s, 0s;
|
|
1897
|
+
transform: scale(0);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
/* Keyboard focus */
|
|
1901
|
+
|
|
1902
|
+
:host([focus-ring]) {
|
|
1903
|
+
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
:host([theme~='primary'][focus-ring]) {
|
|
1907
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
/* Types (primary, tertiary, tertiary-inline */
|
|
1911
|
+
|
|
1912
|
+
:host([theme~='tertiary']),
|
|
1913
|
+
:host([theme~='tertiary-inline']) {
|
|
1914
|
+
background-color: transparent !important;
|
|
1915
|
+
min-width: 0;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
:host([theme~='tertiary']) {
|
|
1919
|
+
padding: 0 calc(var(--lumo-button-size) / 6);
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
:host([theme~='tertiary-inline'])::before {
|
|
1923
|
+
display: none;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
:host([theme~='tertiary-inline']) {
|
|
1927
|
+
margin: 0;
|
|
1928
|
+
height: auto;
|
|
1929
|
+
padding: 0;
|
|
1930
|
+
line-height: inherit;
|
|
1931
|
+
font-size: inherit;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
:host([theme~='tertiary-inline']) [part='label'] {
|
|
1935
|
+
padding: 0;
|
|
1936
|
+
overflow: visible;
|
|
1937
|
+
line-height: inherit;
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
:host([theme~='primary']) {
|
|
1941
|
+
background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
|
|
1942
|
+
color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
|
|
1943
|
+
font-weight: 600;
|
|
1944
|
+
min-width: calc(var(--lumo-button-size) * 2.5);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
:host([theme~='primary'])::before {
|
|
1948
|
+
background-color: black;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
@media (any-hover: hover) {
|
|
1952
|
+
:host([theme~='primary']:hover)::before {
|
|
1953
|
+
opacity: 0.05;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
:host([theme~='primary'][active])::before {
|
|
1958
|
+
opacity: 0.1;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
:host([theme~='primary'][active])::after {
|
|
1962
|
+
opacity: 0.2;
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
/* Colors (success, error, contrast) */
|
|
1966
|
+
|
|
1967
|
+
:host([theme~='success']) {
|
|
1968
|
+
color: var(--lumo-success-text-color);
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
:host([theme~='success'][theme~='primary']) {
|
|
1972
|
+
background-color: var(--lumo-success-color);
|
|
1973
|
+
color: var(--lumo-success-contrast-color);
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
:host([theme~='error']) {
|
|
1977
|
+
color: var(--lumo-error-text-color);
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
:host([theme~='error'][theme~='primary']) {
|
|
1981
|
+
background-color: var(--lumo-error-color);
|
|
1982
|
+
color: var(--lumo-error-contrast-color);
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
:host([theme~='contrast']) {
|
|
1986
|
+
color: var(--lumo-contrast);
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
:host([theme~='contrast'][theme~='primary']) {
|
|
1990
|
+
background-color: var(--lumo-contrast);
|
|
1991
|
+
color: var(--lumo-base-color);
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
/* Disabled state. Keep selectors after other color variants. */
|
|
1995
|
+
|
|
1996
|
+
:host([disabled]) {
|
|
1997
|
+
pointer-events: none;
|
|
1998
|
+
color: var(--lumo-disabled-text-color);
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
:host([theme~='primary'][disabled]) {
|
|
2002
|
+
background-color: var(--lumo-contrast-30pct);
|
|
2003
|
+
color: var(--lumo-base-color);
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
:host([theme~='primary'][disabled]) [part] {
|
|
2007
|
+
opacity: 0.7;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
/* Icons */
|
|
2011
|
+
|
|
2012
|
+
[part] ::slotted(vaadin-icon) {
|
|
2013
|
+
display: inline-block;
|
|
2014
|
+
width: var(--lumo-icon-size-m);
|
|
2015
|
+
height: var(--lumo-icon-size-m);
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
2019
|
+
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
2020
|
+
padding: 0.25em;
|
|
2021
|
+
box-sizing: border-box !important;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
[part='prefix'] {
|
|
2025
|
+
margin-left: -0.25em;
|
|
2026
|
+
margin-right: 0.25em;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
[part='suffix'] {
|
|
2030
|
+
margin-left: 0.25em;
|
|
2031
|
+
margin-right: -0.25em;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
/* Icon-only */
|
|
2035
|
+
|
|
2036
|
+
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
|
2037
|
+
min-width: var(--lumo-button-size);
|
|
2038
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
|
2039
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
:host([theme~='icon']) [part='prefix'],
|
|
2043
|
+
:host([theme~='icon']) [part='suffix'] {
|
|
2044
|
+
margin-left: 0;
|
|
2045
|
+
margin-right: 0;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
/* RTL specific styles */
|
|
2049
|
+
|
|
2050
|
+
:host([dir='rtl']) [part='prefix'] {
|
|
2051
|
+
margin-left: 0.25em;
|
|
2052
|
+
margin-right: -0.25em;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
:host([dir='rtl']) [part='suffix'] {
|
|
2056
|
+
margin-left: -0.25em;
|
|
2057
|
+
margin-right: 0.25em;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
|
2061
|
+
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
|
2062
|
+
margin-left: 0;
|
|
2063
|
+
margin-right: 0;
|
|
2064
|
+
}
|
|
2065
|
+
`;C("vaadin-button",Pa,{moduleId:"lumo-button"});/**
|
|
2066
|
+
* @license
|
|
2067
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2068
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2069
|
+
*/const ye=A(s=>typeof s.prototype.addController=="function"?s:class extends s{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Ta=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,at=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Da(){function s(){return!0}return bi(s)}function Oa(){try{return za()?!0:Ma()?at?!Ia():!Da():!1}catch(s){return!1}}function za(){return localStorage.getItem("vaadin.developmentmode.force")}function Ma(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ia(){return!!(at&&Object.keys(at).map(t=>at[t]).filter(t=>t.productionMode).length>0)}function bi(s,t){if(typeof s!="function")return;const e=Ta.exec(s.toString());if(e)try{s=new Function(e[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return s(t)}window.Vaadin=window.Vaadin||{};const Ss=function(s,t){if(window.Vaadin.developmentMode)return bi(s,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Oa());function Na(){}const La=function(){if(typeof Ss=="function")return Ss(Na)};/**
|
|
2070
|
+
* @license
|
|
2071
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2072
|
+
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2073
|
+
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2074
|
+
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2075
|
+
* Code distributed by Google as part of the polymer project is also
|
|
2076
|
+
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2077
|
+
*/let ks=0,xi=0;const pe=[];let ro=!1;function Fa(){ro=!1;const s=pe.length;for(let t=0;t<s;t++){const e=pe[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}pe.splice(0,s),xi+=s}const mt={after(s){return{run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t)}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s)}},Ra={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s)}},$a={run(s){ro||(ro=!0,queueMicrotask(()=>Fa())),pe.push(s);const t=ks;return ks+=1,t},cancel(s){const t=s-xi;if(t>=0){if(!pe[t])throw new Error(`invalid async handle: ${s}`);pe[t]=null}}};/**
|
|
2078
|
+
@license
|
|
2079
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2080
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2081
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2082
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2083
|
+
Code distributed by Google as part of the polymer project is also
|
|
2084
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2085
|
+
*/const no=new Set;let Ve=class ao{static debounce(t,e,o){return t instanceof ao?t._cancelAsync():t=new ao,t.setConfig(e,o),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,no.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),no.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Ba(s){no.add(s)}/**
|
|
2086
|
+
* @license
|
|
2087
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2088
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2089
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){La()};let Rt;const Ps=new Set,wi=s=>class extends bt(s){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!Ps.has(e)&&(window.Vaadin.registrations.push(this),Ps.add(e),window.Vaadin.developmentModeCallback&&(Rt=Ve.debounce(Rt,Ra,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ba(Rt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2090
|
+
* @license
|
|
2091
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2092
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2093
|
+
*/function Ha(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode}return t}function ko(s){return s?new Set(s.split(" ")):new Set}function xt(s){return s?[...s].join(" "):""}function Ei(s,t,e){const o=ko(s.getAttribute(t));o.add(e),s.setAttribute(t,xt(o))}function Va(s,t,e){const o=ko(s.getAttribute(t));if(o.delete(e),o.size===0){s.removeAttribute(t);return}s.setAttribute(t,xt(o))}function ja(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
|
|
2094
|
+
* @license
|
|
2095
|
+
* Copyright (c) 2023 Vaadin Ltd.
|
|
2096
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2097
|
+
*/class Ua{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 o=[],i=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?o.push(r):a!==n&&i.push(r)}),(e.length||o.length||i.length)&&this.callback({addedNodes:e,movedNodes:i,removedNodes:o}),this._storedNodes=t}}/**
|
|
2098
|
+
* @license
|
|
2099
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2100
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2101
|
+
*/let Ya=0;function Ci(){return Ya++}/**
|
|
2102
|
+
* @license
|
|
2103
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2104
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2105
|
+
*/class ee extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${Ci()}`}constructor(t,e,o,i={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l}=i;this.host=t,this.slotName=e,this.tagName=o,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:o}=this;let i=this.defaultNode;return!i&&o&&(i=document.createElement(o),i instanceof Element&&(e!==""&&i.setAttribute("slot",e),this.node=i,this.defaultNode=i)),i&&t.appendChild(i),i}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Ua(o,({addedNodes:i,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=i.filter(l=>!ja(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
|
|
2106
|
+
* @license
|
|
2107
|
+
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
2108
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2109
|
+
*/class Ai extends ee{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
2110
|
+
* @license
|
|
2111
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2112
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2113
|
+
*/const Wa=_`
|
|
2114
|
+
:host {
|
|
2115
|
+
display: inline-block;
|
|
2116
|
+
position: relative;
|
|
2117
|
+
outline: none;
|
|
2118
|
+
white-space: nowrap;
|
|
2119
|
+
-webkit-user-select: none;
|
|
2120
|
+
-moz-user-select: none;
|
|
2121
|
+
user-select: none;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
:host([hidden]) {
|
|
2125
|
+
display: none !important;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
/* Aligns the button with form fields when placed on the same line.
|
|
2129
|
+
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
|
2130
|
+
.vaadin-button-container::before {
|
|
2131
|
+
content: '\\2003';
|
|
2132
|
+
display: inline-block;
|
|
2133
|
+
width: 0;
|
|
2134
|
+
max-height: 100%;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
.vaadin-button-container {
|
|
2138
|
+
display: inline-flex;
|
|
2139
|
+
align-items: center;
|
|
2140
|
+
justify-content: center;
|
|
2141
|
+
text-align: center;
|
|
2142
|
+
width: 100%;
|
|
2143
|
+
height: 100%;
|
|
2144
|
+
min-height: inherit;
|
|
2145
|
+
text-shadow: inherit;
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
[part='prefix'],
|
|
2149
|
+
[part='suffix'] {
|
|
2150
|
+
flex: none;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
[part='label'] {
|
|
2154
|
+
white-space: nowrap;
|
|
2155
|
+
overflow: hidden;
|
|
2156
|
+
text-overflow: ellipsis;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
@media (forced-colors: active) {
|
|
2160
|
+
:host {
|
|
2161
|
+
outline: 1px solid;
|
|
2162
|
+
outline-offset: -1px;
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
:host([focused]) {
|
|
2166
|
+
outline-width: 2px;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
:host([disabled]) {
|
|
2170
|
+
outline-color: GrayText;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
`,qa=s=>s`
|
|
2174
|
+
<div class="vaadin-button-container">
|
|
2175
|
+
<span part="prefix" aria-hidden="true">
|
|
2176
|
+
<slot name="prefix"></slot>
|
|
2177
|
+
</span>
|
|
2178
|
+
<span part="label">
|
|
2179
|
+
<slot></slot>
|
|
2180
|
+
</span>
|
|
2181
|
+
<span part="suffix" aria-hidden="true">
|
|
2182
|
+
<slot name="suffix"></slot>
|
|
2183
|
+
</span>
|
|
2184
|
+
</div>
|
|
2185
|
+
<slot name="tooltip"></slot>
|
|
2186
|
+
`;/**
|
|
2187
|
+
@license
|
|
2188
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2189
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2190
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2191
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2192
|
+
Code distributed by Google as part of the polymer project is also
|
|
2193
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2194
|
+
*/const Ka=!1,Ga=s=>s,Po=typeof document.head.style.touchAction=="string",lo="__polymerGestures",$t="__polymerGesturesHandled",co="__polymerGesturesTouchAction",Ts=25,Ds=5,Ja=2,Xa=["mousedown","mousemove","mouseup","click"],Qa=[0,1,4,2],Za=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return!1}}();function To(s){return Xa.indexOf(s)>-1}let Si=!1;(function(){try{const s=Object.defineProperty({},"passive",{get(){Si=!0}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch(s){}})();function el(s){if(!(To(s)||s==="touchend")&&Po&&Si&&Ka)return{passive:!0}}const tl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),ol={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function oe(s){const t=s.type;if(!To(t))return!1;if(t==="mousemove"){let o=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!Za&&(o=Qa[s.which]||0),!!(o&1)}return(s.button===void 0?0:s.button)===0}function sl(s){if(s.type==="click"){if(s.detail===0)return!0;const t=W(s);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),o=s.pageX,i=s.pageY;return!(o>=e.left&&o<=e.right&&i>=e.top&&i<=e.bottom)}return!1}const H={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function il(s){let t="auto";const e=Pi(s);for(let o=0,i;o<e.length;o++)if(i=e[o],i[co]){t=i[co];break}return t}function ki(s,t,e){s.movefn=t,s.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function me(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null}const Pi=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],Do={},te=[];function rl(s,t){let e=document.elementFromPoint(s,t),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const i=o;if(o=o.shadowRoot.elementFromPoint(s,t),i===o)break;o&&(e=o)}return e}function W(s){const t=Pi(s);return t.length>0?t[0]:s.target}function nl(s){const t=s.type,o=s.currentTarget[lo];if(!o)return;const i=o[t];if(!i)return;if(!s[$t]&&(s[$t]={},t.startsWith("touch"))){const n=s.changedTouches[0];if(t==="touchstart"&&s.touches.length===1&&(H.touch.id=n.identifier),H.touch.id!==n.identifier)return;Po||(t==="touchstart"||t==="touchmove")&&al(s)}const r=s[$t];if(!r.skip){for(let n=0,a;n<te.length;n++)a=te[n],i[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(s.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<te.length;n++)a=te[n],i[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](s))}}function al(s){const t=s.changedTouches[0],e=s.type;if(e==="touchstart")H.touch.x=t.clientX,H.touch.y=t.clientY,H.touch.scrollDecided=!1;else if(e==="touchmove"){if(H.touch.scrollDecided)return;H.touch.scrollDecided=!0;const o=il(s);let i=!1;const r=Math.abs(H.touch.x-t.clientX),n=Math.abs(H.touch.y-t.clientY);s.cancelable&&(o==="none"?i=!0:o==="pan-x"?i=n>r:o==="pan-y"&&(i=r>n)),i?s.preventDefault():ft("track")}}function R(s,t,e){return Do[t]?(ll(s,t,e),!0):!1}function ll(s,t,e){const o=Do[t],i=o.deps,r=o.name;let n=s[lo];n||(s[lo]=n={});for(let a=0,l,c;a<i.length;a++)l=i[a],!(tl&&To(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&s.addEventListener(l,nl,el(l)),c[r]=(c[r]||0)+1,c._count=(c._count||0)+1);s.addEventListener(t,e),o.touchAction&&Ti(s,o.touchAction)}function Oo(s){te.push(s),s.emits.forEach(t=>{Do[t]=s})}function cl(s){for(let t=0,e;t<te.length;t++){e=te[t];for(let o=0,i;o<e.emits.length;o++)if(i=e.emits[o],i===s)return e}return null}function Ti(s,t){Po&&s instanceof HTMLElement&&$a.run(()=>{s.style.touchAction=t}),s[co]=t}function zo(s,t,e){const o=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,Ga(s).dispatchEvent(o),o.defaultPrevented){const i=e.preventer||e.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function ft(s){const t=cl(s);t.info&&(t.info.prevent=!0)}Oo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){me(this.info)},mousedown(s){if(!oe(s))return;const t=W(s),e=this,o=r=>{oe(r)||(Te("up",t,r),me(e.info))},i=r=>{oe(r)&&Te("up",t,r),me(e.info)};ki(this.info,o,i),Te("down",t,s)},touchstart(s){Te("down",W(s),s.changedTouches[0],s)},touchend(s){Te("up",W(s),s.changedTouches[0],s)}});function Te(s,t,e,o){t&&zo(t,s,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(i){return ft(i)}})}Oo({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(s){this.moves.length>Ja&&this.moves.shift(),this.moves.push(s)},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,me(this.info)},mousedown(s){if(!oe(s))return;const t=W(s),e=this,o=r=>{const n=r.clientX,a=r.clientY;Os(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&ft("tap"),e.info.addMove({x:n,y:a}),oe(r)||(e.info.state="end",me(e.info)),t&&Bt(e.info,t,r),e.info.started=!0)},i=r=>{e.info.started&&o(r),me(e.info)};ki(this.info,o,i),this.info.x=s.clientX,this.info.y=s.clientY},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(s){const t=W(s),e=s.changedTouches[0],o=e.clientX,i=e.clientY;Os(this.info,o,i)&&(this.info.state==="start"&&ft("tap"),this.info.addMove({x:o,y:i}),Bt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(s){const t=W(s),e=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Bt(this.info,t,e))}});function Os(s,t,e){if(s.prevent)return!1;if(s.started)return!0;const o=Math.abs(s.x-t),i=Math.abs(s.y-e);return o>=Ds||i>=Ds}function Bt(s,t,e){if(!t)return;const o=s.moves[s.moves.length-2],i=s.moves[s.moves.length-1],r=i.x-s.x,n=i.y-s.y;let a,l=0;o&&(a=i.x-o.x,l=i.y-o.y),zo(t,"track",{state:s.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return rl(e.clientX,e.clientY)}})}Oo({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(s){oe(s)&&(this.info.x=s.clientX,this.info.y=s.clientY)},click(s){oe(s)&&zs(this.info,s)},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(s){zs(this.info,s.changedTouches[0],s)}});function zs(s,t,e){const o=Math.abs(t.clientX-s.x),i=Math.abs(t.clientY-s.y),r=W(e||t);!r||ol[r.localName]&&r.hasAttribute("disabled")||(isNaN(o)||isNaN(i)||o<=Ts&&i<=Ts||sl(t))&&(s.prevent||zo(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
|
|
2195
|
+
* @license
|
|
2196
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2197
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2198
|
+
*/const Di=A(s=>class extends s{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2199
|
+
* @license
|
|
2200
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2201
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2202
|
+
*/const wt=A(s=>class extends s{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
|
|
2203
|
+
* @license
|
|
2204
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2205
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2206
|
+
*/const ul=s=>class extends Di(wt(s)){get _activeKeys(){return[" "]}ready(){super.ready(),R(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),R(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",o=>{this._activeKeys.includes(o.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
|
|
2207
|
+
* @license
|
|
2208
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2209
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2210
|
+
*/let Mo=!1;window.addEventListener("keydown",()=>{Mo=!0},{capture:!0});window.addEventListener("mousedown",()=>{Mo=!1},{capture:!0});function uo(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function dl(){return Mo}function hl(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function pl(s,t){const e=Math.max(s.tabIndex,0),o=Math.max(t.tabIndex,0);return e===0||o===0?o>e:e>o}function ml(s,t){const e=[];for(;s.length>0&&t.length>0;)pl(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function ho(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),o=ho(s.slice(0,e)),i=ho(s.slice(e));return ml(o,i)}function fl(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function _l(s){return s.getRootNode().activeElement===s}function gl(s){if(!fl(s))return-1;const t=s.getAttribute("tabindex")||0;return Number(t)}function Oi(s,t){if(s.nodeType!==Node.ELEMENT_NODE||hl(s))return!1;const e=s,o=gl(e);let i=o>0;o>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{i=Oi(n,t)||i}),i}function vl(s){const t=[];return Oi(s,t)?ho(t):t}/**
|
|
2211
|
+
* @license
|
|
2212
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2213
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2214
|
+
*/const Io=A(s=>class extends s{get _keyboardActive(){return dl()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
|
|
2215
|
+
* @license
|
|
2216
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2217
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2218
|
+
*/const zi=s=>class extends Di(s){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,o){super._disabledChanged(e,o),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):o&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
|
|
2219
|
+
* @license
|
|
2220
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2221
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2222
|
+
*/const yl=s=>class extends ul(zi(Io(s))){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(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
|
|
2223
|
+
* @license
|
|
2224
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2225
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2226
|
+
*/C("vaadin-button",Wa,{moduleId:"vaadin-button-styles"});class bl extends yl(wi(ie(ye(q)))){static get is(){return"vaadin-button"}static get template(){return qa(ne)}ready(){super.ready(),this._tooltipController=new Ai(this),this.addController(this._tooltipController)}}N(bl);C("vaadin-date-picker-year",_`
|
|
2227
|
+
:host([current]) [part='year-number'] {
|
|
2228
|
+
color: var(--lumo-primary-text-color);
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
:host(:not([current])) [part='year-number'],
|
|
2232
|
+
[part='year-separator'] {
|
|
2233
|
+
opacity: var(--_lumo-date-picker-year-opacity, 0.7);
|
|
2234
|
+
transition: 0.2s opacity;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
[part='year-number'],
|
|
2238
|
+
[part='year-separator'] {
|
|
2239
|
+
display: flex;
|
|
2240
|
+
align-items: center;
|
|
2241
|
+
justify-content: center;
|
|
2242
|
+
height: 50%;
|
|
2243
|
+
transform: translateY(-50%);
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
[part='year-separator']::after {
|
|
2247
|
+
color: var(--lumo-disabled-text-color);
|
|
2248
|
+
content: '\\2022';
|
|
2249
|
+
}
|
|
2250
|
+
`,{moduleId:"lumo-date-picker-year"});C("vaadin-date-picker-overlay-content",_`
|
|
2251
|
+
:host {
|
|
2252
|
+
position: relative;
|
|
2253
|
+
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
2254
|
+
background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
|
|
2255
|
+
background-size: 57px 100%;
|
|
2256
|
+
background-position: top right;
|
|
2257
|
+
background-repeat: no-repeat;
|
|
2258
|
+
cursor: default;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
::slotted([slot='months']) {
|
|
2262
|
+
/* Month calendar height:
|
|
2263
|
+
header height + margin-bottom
|
|
2264
|
+
+ weekdays height + margin-bottom
|
|
2265
|
+
+ date cell heights
|
|
2266
|
+
+ small margin between month calendars
|
|
2267
|
+
*/
|
|
2268
|
+
/* prettier-ignore */
|
|
2269
|
+
--vaadin-infinite-scroller-item-height:
|
|
2270
|
+
calc(
|
|
2271
|
+
var(--lumo-font-size-l) + var(--lumo-space-m)
|
|
2272
|
+
+ var(--lumo-font-size-xs) + var(--lumo-space-s)
|
|
2273
|
+
+ var(--lumo-size-m) * 6
|
|
2274
|
+
+ var(--lumo-space-s)
|
|
2275
|
+
);
|
|
2276
|
+
--vaadin-infinite-scroller-buffer-offset: 10%;
|
|
2277
|
+
-webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
2278
|
+
mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
2279
|
+
position: relative;
|
|
2280
|
+
margin-right: 57px;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
::slotted([slot='years']) {
|
|
2284
|
+
/* TODO get rid of fixed magic number */
|
|
2285
|
+
--vaadin-infinite-scroller-buffer-width: 97px;
|
|
2286
|
+
width: 57px;
|
|
2287
|
+
height: auto;
|
|
2288
|
+
top: 0;
|
|
2289
|
+
bottom: 0;
|
|
2290
|
+
font-size: var(--lumo-font-size-s);
|
|
2291
|
+
box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
|
|
2292
|
+
-webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
2293
|
+
mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
2294
|
+
cursor: var(--lumo-clickable-cursor);
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
::slotted([slot='years']:hover) {
|
|
2298
|
+
--_lumo-date-picker-year-opacity: 1;
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
/* TODO unsupported selector */
|
|
2302
|
+
#scrollers {
|
|
2303
|
+
position: static;
|
|
2304
|
+
display: block;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
/* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
|
|
2308
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
2309
|
+
right: auto;
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
/* Year scroller position indicator */
|
|
2313
|
+
::slotted([slot='years'])::before {
|
|
2314
|
+
border: none;
|
|
2315
|
+
width: 1em;
|
|
2316
|
+
height: 1em;
|
|
2317
|
+
background-color: var(--lumo-base-color);
|
|
2318
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
2319
|
+
transform: translate(-75%, -50%) rotate(45deg);
|
|
2320
|
+
border-top-right-radius: var(--lumo-border-radius-s);
|
|
2321
|
+
box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
|
|
2322
|
+
z-index: 1;
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
[part='toolbar'] {
|
|
2326
|
+
padding: var(--lumo-space-s);
|
|
2327
|
+
border-bottom-left-radius: var(--lumo-border-radius-l);
|
|
2328
|
+
margin-right: 57px;
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
[part='toolbar'] ::slotted(vaadin-button) {
|
|
2332
|
+
margin: 0;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
/* Narrow viewport mode (fullscreen) */
|
|
2336
|
+
|
|
2337
|
+
:host([fullscreen]) [part='toolbar'] {
|
|
2338
|
+
order: -1;
|
|
2339
|
+
background-color: var(--lumo-base-color);
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
:host([fullscreen]) [part='overlay-header'] {
|
|
2343
|
+
order: -2;
|
|
2344
|
+
height: var(--lumo-size-m);
|
|
2345
|
+
padding: var(--lumo-space-s);
|
|
2346
|
+
position: absolute;
|
|
2347
|
+
left: 0;
|
|
2348
|
+
right: 0;
|
|
2349
|
+
justify-content: center;
|
|
2350
|
+
}
|
|
2351
|
+
|
|
2352
|
+
:host([fullscreen]) [part='toggle-button'],
|
|
2353
|
+
:host([fullscreen]) [part='clear-button'],
|
|
2354
|
+
[part='overlay-header'] [part='label'] {
|
|
2355
|
+
display: none;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
/* Very narrow screen (year scroller initially hidden) */
|
|
2359
|
+
|
|
2360
|
+
[part='years-toggle-button'] {
|
|
2361
|
+
display: flex;
|
|
2362
|
+
align-items: center;
|
|
2363
|
+
height: var(--lumo-size-s);
|
|
2364
|
+
padding: 0 0.5em;
|
|
2365
|
+
border-radius: var(--lumo-border-radius-m);
|
|
2366
|
+
z-index: 3;
|
|
2367
|
+
color: var(--lumo-primary-text-color);
|
|
2368
|
+
font-weight: 500;
|
|
2369
|
+
-webkit-font-smoothing: antialiased;
|
|
2370
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
:host([years-visible]) [part='years-toggle-button'] {
|
|
2374
|
+
background-color: var(--lumo-primary-color);
|
|
2375
|
+
color: var(--lumo-primary-contrast-color);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
/* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
|
|
2379
|
+
@media screen and (max-width: 374px) {
|
|
2380
|
+
:host {
|
|
2381
|
+
background-image: none;
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
[part='toolbar'],
|
|
2385
|
+
::slotted([slot='months']) {
|
|
2386
|
+
margin-right: 0;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
/* TODO make date-picker adapt to the width of the years part */
|
|
2390
|
+
::slotted([slot='years']) {
|
|
2391
|
+
--vaadin-infinite-scroller-buffer-width: 90px;
|
|
2392
|
+
width: 50px;
|
|
2393
|
+
background-color: var(--lumo-shade-5pct);
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
:host([years-visible]) ::slotted([slot='months']) {
|
|
2397
|
+
padding-left: 50px;
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});C("vaadin-month-calendar",_`
|
|
2401
|
+
:host {
|
|
2402
|
+
-moz-user-select: none;
|
|
2403
|
+
-webkit-user-select: none;
|
|
2404
|
+
-webkit-tap-highlight-color: transparent;
|
|
2405
|
+
user-select: none;
|
|
2406
|
+
font-size: var(--lumo-font-size-m);
|
|
2407
|
+
color: var(--lumo-body-text-color);
|
|
2408
|
+
text-align: center;
|
|
2409
|
+
padding: 0 var(--lumo-space-xs);
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
/* Month header */
|
|
2413
|
+
|
|
2414
|
+
[part='month-header'] {
|
|
2415
|
+
color: var(--lumo-header-text-color);
|
|
2416
|
+
font-size: var(--lumo-font-size-l);
|
|
2417
|
+
line-height: 1;
|
|
2418
|
+
font-weight: 500;
|
|
2419
|
+
margin-bottom: var(--lumo-space-m);
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
/* Week days and numbers */
|
|
2423
|
+
|
|
2424
|
+
[part='weekdays'],
|
|
2425
|
+
[part='weekday'],
|
|
2426
|
+
[part='week-number'] {
|
|
2427
|
+
font-size: var(--lumo-font-size-xxs);
|
|
2428
|
+
line-height: 1;
|
|
2429
|
+
color: var(--lumo-secondary-text-color);
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
[part='weekdays'] {
|
|
2433
|
+
margin-bottom: var(--lumo-space-s);
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
[part='weekday']:empty,
|
|
2437
|
+
[part='week-number'] {
|
|
2438
|
+
width: var(--lumo-size-xs);
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
/* Date and week number cells */
|
|
2442
|
+
|
|
2443
|
+
[part~='date'],
|
|
2444
|
+
[part='week-number'] {
|
|
2445
|
+
box-sizing: border-box;
|
|
2446
|
+
display: inline-flex;
|
|
2447
|
+
align-items: center;
|
|
2448
|
+
justify-content: center;
|
|
2449
|
+
height: var(--lumo-size-m);
|
|
2450
|
+
position: relative;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
[part~='date'] {
|
|
2454
|
+
transition: color 0.1s;
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
[part~='date']:not(:empty) {
|
|
2458
|
+
cursor: var(--lumo-clickable-cursor);
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
2462
|
+
:host([week-numbers]) [part~='date'] {
|
|
2463
|
+
width: calc((100% - var(--lumo-size-xs)) / 7);
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
/* Today date */
|
|
2467
|
+
|
|
2468
|
+
[part~='date'][part~='today'] {
|
|
2469
|
+
color: var(--lumo-primary-text-color);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
/* Focused date */
|
|
2473
|
+
|
|
2474
|
+
[part~='date']::before {
|
|
2475
|
+
content: '';
|
|
2476
|
+
position: absolute;
|
|
2477
|
+
z-index: -1;
|
|
2478
|
+
top: 50%;
|
|
2479
|
+
left: 50%;
|
|
2480
|
+
transform: translate(-50%, -50%);
|
|
2481
|
+
min-width: 2em;
|
|
2482
|
+
min-height: 2em;
|
|
2483
|
+
width: 80%;
|
|
2484
|
+
height: 80%;
|
|
2485
|
+
max-height: 100%;
|
|
2486
|
+
max-width: 100%;
|
|
2487
|
+
border-radius: var(--lumo-border-radius-m);
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
[part~='date'][part~='focused']::before {
|
|
2491
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
:host(:not([focused])) [part~='date'][part~='focused']::before {
|
|
2495
|
+
animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
2499
|
+
50% {
|
|
2500
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
[part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
|
|
2505
|
+
background-color: var(--lumo-primary-color-10pct);
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
[part~='date'][part~='selected'] {
|
|
2509
|
+
color: var(--lumo-primary-contrast-color);
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
[part~='date'][part~='selected']::before {
|
|
2513
|
+
background-color: var(--lumo-primary-color);
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
[part~='date'][part~='disabled'] {
|
|
2517
|
+
color: var(--lumo-disabled-text-color);
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
@media (pointer: coarse) {
|
|
2521
|
+
[part~='date']:hover:not([part~='selected'])::before,
|
|
2522
|
+
[part~='focused']:not([part~='selected'])::before {
|
|
2523
|
+
display: none;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
[part~='date']:not(:empty):not([part~='disabled']):active::before {
|
|
2527
|
+
display: block;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
[part~='date'][part~='selected']::before {
|
|
2531
|
+
box-shadow: none;
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
/* Disabled */
|
|
2536
|
+
|
|
2537
|
+
:host([disabled]) * {
|
|
2538
|
+
color: var(--lumo-disabled-text-color) !important;
|
|
2539
|
+
}
|
|
2540
|
+
`,{moduleId:"lumo-month-calendar"});const Mi=document.createElement("template");Mi.innerHTML=`
|
|
2541
|
+
<style>
|
|
2542
|
+
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
2543
|
+
50% {
|
|
2544
|
+
box-shadow: 0 0 0 2px transparent;
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
</style>
|
|
2548
|
+
`;document.head.appendChild(Mi.content);/**
|
|
2549
|
+
* @license
|
|
2550
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2551
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2552
|
+
*/const xl=_`
|
|
2553
|
+
@font-face {
|
|
2554
|
+
font-family: 'lumo-icons';
|
|
2555
|
+
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==)
|
|
2556
|
+
format('woff');
|
|
2557
|
+
font-weight: normal;
|
|
2558
|
+
font-style: normal;
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
html {
|
|
2562
|
+
--lumo-icons-align-center: '\\ea01';
|
|
2563
|
+
--lumo-icons-align-left: '\\ea02';
|
|
2564
|
+
--lumo-icons-align-right: '\\ea03';
|
|
2565
|
+
--lumo-icons-angle-down: '\\ea04';
|
|
2566
|
+
--lumo-icons-angle-left: '\\ea05';
|
|
2567
|
+
--lumo-icons-angle-right: '\\ea06';
|
|
2568
|
+
--lumo-icons-angle-up: '\\ea07';
|
|
2569
|
+
--lumo-icons-arrow-down: '\\ea08';
|
|
2570
|
+
--lumo-icons-arrow-left: '\\ea09';
|
|
2571
|
+
--lumo-icons-arrow-right: '\\ea0a';
|
|
2572
|
+
--lumo-icons-arrow-up: '\\ea0b';
|
|
2573
|
+
--lumo-icons-bar-chart: '\\ea0c';
|
|
2574
|
+
--lumo-icons-bell: '\\ea0d';
|
|
2575
|
+
--lumo-icons-calendar: '\\ea0e';
|
|
2576
|
+
--lumo-icons-checkmark: '\\ea0f';
|
|
2577
|
+
--lumo-icons-chevron-down: '\\ea10';
|
|
2578
|
+
--lumo-icons-chevron-left: '\\ea11';
|
|
2579
|
+
--lumo-icons-chevron-right: '\\ea12';
|
|
2580
|
+
--lumo-icons-chevron-up: '\\ea13';
|
|
2581
|
+
--lumo-icons-clock: '\\ea14';
|
|
2582
|
+
--lumo-icons-cog: '\\ea15';
|
|
2583
|
+
--lumo-icons-cross: '\\ea16';
|
|
2584
|
+
--lumo-icons-download: '\\ea17';
|
|
2585
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
2586
|
+
--lumo-icons-edit: '\\ea19';
|
|
2587
|
+
--lumo-icons-error: '\\ea1a';
|
|
2588
|
+
--lumo-icons-eye: '\\ea1b';
|
|
2589
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
2590
|
+
--lumo-icons-menu: '\\ea1d';
|
|
2591
|
+
--lumo-icons-minus: '\\ea1e';
|
|
2592
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
2593
|
+
--lumo-icons-phone: '\\ea20';
|
|
2594
|
+
--lumo-icons-photo: '\\ea21';
|
|
2595
|
+
--lumo-icons-play: '\\ea22';
|
|
2596
|
+
--lumo-icons-plus: '\\ea23';
|
|
2597
|
+
--lumo-icons-redo: '\\ea24';
|
|
2598
|
+
--lumo-icons-reload: '\\ea25';
|
|
2599
|
+
--lumo-icons-search: '\\ea26';
|
|
2600
|
+
--lumo-icons-undo: '\\ea27';
|
|
2601
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
2602
|
+
--lumo-icons-upload: '\\ea29';
|
|
2603
|
+
--lumo-icons-user: '\\ea2a';
|
|
2604
|
+
}
|
|
2605
|
+
`;ve("font-icons",xl);/**
|
|
2606
|
+
* @license
|
|
2607
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2608
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2609
|
+
*/const Ii=_`
|
|
2610
|
+
[part$='button'] {
|
|
2611
|
+
flex: none;
|
|
2612
|
+
width: 1em;
|
|
2613
|
+
height: 1em;
|
|
2614
|
+
line-height: 1;
|
|
2615
|
+
font-size: var(--lumo-icon-size-m);
|
|
2616
|
+
text-align: center;
|
|
2617
|
+
color: var(--lumo-contrast-60pct);
|
|
2618
|
+
transition: 0.2s color;
|
|
2619
|
+
cursor: var(--lumo-clickable-cursor);
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
[part$='button']:hover {
|
|
2623
|
+
color: var(--lumo-contrast-90pct);
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
:host([disabled]) [part$='button'],
|
|
2627
|
+
:host([readonly]) [part$='button'] {
|
|
2628
|
+
color: var(--lumo-contrast-20pct);
|
|
2629
|
+
cursor: default;
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
[part$='button']::before {
|
|
2633
|
+
font-family: 'lumo-icons';
|
|
2634
|
+
display: block;
|
|
2635
|
+
}
|
|
2636
|
+
`;C("",Ii,{moduleId:"lumo-field-button"});/**
|
|
2637
|
+
* @license
|
|
2638
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2639
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2640
|
+
*/const wl=_`
|
|
2641
|
+
:host([has-helper]) [part='helper-text']::before {
|
|
2642
|
+
content: '';
|
|
2643
|
+
display: block;
|
|
2644
|
+
height: 0.4em;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
[part='helper-text'] {
|
|
2648
|
+
display: block;
|
|
2649
|
+
color: var(--lumo-secondary-text-color);
|
|
2650
|
+
font-size: var(--lumo-font-size-xs);
|
|
2651
|
+
line-height: var(--lumo-line-height-xs);
|
|
2652
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2653
|
+
transition: color 0.2s;
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
:host(:hover:not([readonly])) [part='helper-text'] {
|
|
2657
|
+
color: var(--lumo-body-text-color);
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
:host([disabled]) [part='helper-text'] {
|
|
2661
|
+
color: var(--lumo-disabled-text-color);
|
|
2662
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
|
|
2666
|
+
display: none;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
2670
|
+
content: '';
|
|
2671
|
+
display: block;
|
|
2672
|
+
height: 0.4em;
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
2676
|
+
order: 0;
|
|
2677
|
+
padding-bottom: 0.4em;
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
2681
|
+
order: 1;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] + * {
|
|
2685
|
+
order: 2;
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
|
|
2689
|
+
order: 3;
|
|
2690
|
+
}
|
|
2691
|
+
`;/**
|
|
2692
|
+
* @license
|
|
2693
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2694
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2695
|
+
*/const Ni=_`
|
|
2696
|
+
[part='label'] {
|
|
2697
|
+
align-self: flex-start;
|
|
2698
|
+
color: var(--lumo-secondary-text-color);
|
|
2699
|
+
font-weight: 500;
|
|
2700
|
+
font-size: var(--lumo-font-size-s);
|
|
2701
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2702
|
+
transition: color 0.2s;
|
|
2703
|
+
line-height: 1;
|
|
2704
|
+
padding-right: 1em;
|
|
2705
|
+
padding-bottom: 0.5em;
|
|
2706
|
+
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
2707
|
+
negative margin to compensate */
|
|
2708
|
+
padding-top: 0.25em;
|
|
2709
|
+
margin-top: -0.25em;
|
|
2710
|
+
overflow: hidden;
|
|
2711
|
+
white-space: nowrap;
|
|
2712
|
+
text-overflow: ellipsis;
|
|
2713
|
+
position: relative;
|
|
2714
|
+
max-width: 100%;
|
|
2715
|
+
box-sizing: border-box;
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
:host([has-label])::before {
|
|
2719
|
+
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
:host([has-label][theme~='small'])::before {
|
|
2723
|
+
margin-top: calc(var(--lumo-font-size-xs) * 1.5);
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
:host([has-label]) {
|
|
2727
|
+
padding-top: var(--lumo-space-m);
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
:host([has-label]) ::slotted([slot='tooltip']) {
|
|
2731
|
+
--vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
:host([required]) [part='required-indicator']::after {
|
|
2735
|
+
content: var(--lumo-required-field-indicator, '\\2022');
|
|
2736
|
+
transition: opacity 0.2s;
|
|
2737
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
2738
|
+
position: absolute;
|
|
2739
|
+
right: 0;
|
|
2740
|
+
width: 1em;
|
|
2741
|
+
text-align: center;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
:host([invalid]) [part='required-indicator']::after {
|
|
2745
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
[part='error-message'] {
|
|
2749
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2750
|
+
font-size: var(--lumo-font-size-xs);
|
|
2751
|
+
line-height: var(--lumo-line-height-xs);
|
|
2752
|
+
color: var(--lumo-error-text-color);
|
|
2753
|
+
will-change: max-height;
|
|
2754
|
+
transition: 0.4s max-height;
|
|
2755
|
+
max-height: 5em;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
:host([has-error-message]) [part='error-message']::before,
|
|
2759
|
+
:host([has-error-message]) [part='error-message']::after {
|
|
2760
|
+
content: '';
|
|
2761
|
+
display: block;
|
|
2762
|
+
height: 0.4em;
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
:host(:not([invalid])) [part='error-message'] {
|
|
2766
|
+
max-height: 0;
|
|
2767
|
+
overflow: hidden;
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
/* RTL specific styles */
|
|
2771
|
+
|
|
2772
|
+
:host([dir='rtl']) [part='label'] {
|
|
2773
|
+
margin-left: 0;
|
|
2774
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
:host([dir='rtl']) [part='label'] {
|
|
2778
|
+
padding-left: 1em;
|
|
2779
|
+
padding-right: 0;
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
:host([dir='rtl']) [part='required-indicator']::after {
|
|
2783
|
+
right: auto;
|
|
2784
|
+
left: 0;
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
:host([dir='rtl']) [part='error-message'] {
|
|
2788
|
+
margin-left: 0;
|
|
2789
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2790
|
+
}
|
|
2791
|
+
`;C("",Ni,{moduleId:"lumo-required-field"});/**
|
|
2792
|
+
* @license
|
|
2793
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2794
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2795
|
+
*/const El=_`
|
|
2796
|
+
:host {
|
|
2797
|
+
--lumo-text-field-size: var(--lumo-size-m);
|
|
2798
|
+
color: var(--lumo-body-text-color);
|
|
2799
|
+
font-size: var(--lumo-font-size-m);
|
|
2800
|
+
font-family: var(--lumo-font-family);
|
|
2801
|
+
-webkit-font-smoothing: antialiased;
|
|
2802
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2803
|
+
-webkit-tap-highlight-color: transparent;
|
|
2804
|
+
padding: var(--lumo-space-xs) 0;
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
:host::before {
|
|
2808
|
+
height: var(--lumo-text-field-size);
|
|
2809
|
+
box-sizing: border-box;
|
|
2810
|
+
display: inline-flex;
|
|
2811
|
+
align-items: center;
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
:host([focused]:not([readonly])) [part='label'] {
|
|
2815
|
+
color: var(--lumo-primary-text-color);
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
2819
|
+
-webkit-mask-image: none;
|
|
2820
|
+
mask-image: none;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
::slotted(:is(input, textarea):placeholder-shown) {
|
|
2824
|
+
color: var(--lumo-secondary-text-color);
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
/* Hover */
|
|
2828
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2829
|
+
color: var(--lumo-body-text-color);
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2833
|
+
opacity: 0.1;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
/* Touch device adjustment */
|
|
2837
|
+
@media (pointer: coarse) {
|
|
2838
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2839
|
+
color: var(--lumo-secondary-text-color);
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2843
|
+
opacity: 0;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
:host(:active:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2847
|
+
opacity: 0.2;
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
/* Trigger when not focusing using the keyboard */
|
|
2852
|
+
:host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
|
|
2853
|
+
transform: scaleX(0);
|
|
2854
|
+
transition-duration: 0.15s, 1s;
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
/* Focus-ring */
|
|
2858
|
+
:host([focus-ring]) [part='input-field'] {
|
|
2859
|
+
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
/* Read-only and disabled */
|
|
2863
|
+
:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
2864
|
+
opacity: 0;
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
/* Read-only style */
|
|
2868
|
+
:host([readonly]) {
|
|
2869
|
+
--vaadin-input-field-border-color: transparent;
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
/* Disabled style */
|
|
2873
|
+
:host([disabled]) {
|
|
2874
|
+
pointer-events: none;
|
|
2875
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
:host([disabled]) [part='label'],
|
|
2879
|
+
:host([disabled]) [part='input-field'] ::slotted(*) {
|
|
2880
|
+
color: var(--lumo-disabled-text-color);
|
|
2881
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2884
|
+
/* Invalid style */
|
|
2885
|
+
:host([invalid]) {
|
|
2886
|
+
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
:host([invalid][focus-ring]) [part='input-field'] {
|
|
2890
|
+
box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
:host([input-prevented]) [part='input-field'] {
|
|
2894
|
+
animation: shake 0.15s infinite;
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
@keyframes shake {
|
|
2898
|
+
25% {
|
|
2899
|
+
transform: translateX(4px);
|
|
2900
|
+
}
|
|
2901
|
+
75% {
|
|
2902
|
+
transform: translateX(-4px);
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
/* Small theme */
|
|
2907
|
+
:host([theme~='small']) {
|
|
2908
|
+
font-size: var(--lumo-font-size-s);
|
|
2909
|
+
--lumo-text-field-size: var(--lumo-size-s);
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
:host([theme~='small']) [part='label'] {
|
|
2913
|
+
font-size: var(--lumo-font-size-xs);
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
:host([theme~='small']) [part='error-message'] {
|
|
2917
|
+
font-size: var(--lumo-font-size-xxs);
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
/* Slotted content */
|
|
2921
|
+
[part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
|
|
2922
|
+
color: var(--lumo-secondary-text-color);
|
|
2923
|
+
font-weight: 400;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
[part='clear-button']::before {
|
|
2927
|
+
content: var(--lumo-icons-cross);
|
|
2928
|
+
}
|
|
2929
|
+
`,Li=[Ni,Ii,wl,El];C("",Li,{moduleId:"lumo-input-field-shared-styles"});const Cl=_`
|
|
2930
|
+
:host {
|
|
2931
|
+
outline: none;
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
[part='toggle-button']::before {
|
|
2935
|
+
content: var(--lumo-icons-calendar);
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
[part='clear-button']::before {
|
|
2939
|
+
content: var(--lumo-icons-cross);
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
2943
|
+
[part='overlay-content'] {
|
|
2944
|
+
height: 70vh;
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input) {
|
|
2949
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
2953
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
2954
|
+
}
|
|
2955
|
+
`;C("vaadin-date-picker",[Li,Cl],{moduleId:"lumo-date-picker"});/**
|
|
2956
|
+
@license
|
|
2957
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2958
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2959
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2960
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2961
|
+
Code distributed by Google as part of the polymer project is also
|
|
2962
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2963
|
+
*/let po=!1,Al=[],Fi=[];function Sl(){po=!0,requestAnimationFrame(function(){po=!1,kl(Al),setTimeout(function(){Pl(Fi)})})}function kl(s){for(;s.length;)Ri(s.shift())}function Pl(s){for(let t=0,e=s.length;t<e;t++)Ri(s.shift())}function Ri(s){const t=s[0],e=s[1],o=s[2];try{e.apply(t,o)}catch(i){setTimeout(()=>{throw i})}}function $i(s,t,e){po||Sl(),Fi.push([s,t,e])}/**
|
|
2964
|
+
* @license
|
|
2965
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2966
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2967
|
+
*/const Et=s=>s.test(navigator.userAgent),mo=s=>s.test(navigator.platform),Tl=s=>s.test(navigator.vendor);Et(/Android/u);Et(/Chrome/u)&&Tl(/Google Inc/u);const Dl=Et(/Firefox/u),Ol=mo(/^iPad/u)||mo(/^Mac/u)&&navigator.maxTouchPoints>1,zl=mo(/^iPhone/u),Bi=zl||Ol;Et(/^((?!chrome|android).)*safari/iu);const Ml=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return!1}})();/**
|
|
2968
|
+
* @license
|
|
2969
|
+
* Copyright (c) 2017 Anton Korzunov
|
|
2970
|
+
* SPDX-License-Identifier: MIT
|
|
2971
|
+
*/let ue=new WeakMap,st=new WeakMap,it={},Ht=0;const Ms=s=>s&&s.nodeType===Node.ELEMENT_NODE,Vt=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`)},Il=(s,t)=>Ms(s)?t.map(e=>{if(!Ms(e))return Vt(e,"is not a valid element"),null;let o=e;for(;o&&o!==s;){if(s.contains(o))return e;o=o.getRootNode().host}return Vt(e,"is not contained inside",s),null}).filter(e=>!!e):(Vt(s,"is not a valid element"),[]),Nl=(s,t,e,o)=>{const i=Il(t,Array.isArray(s)?s:[s]);it[e]||(it[e]=new WeakMap);const r=it[e],n=[],a=new Set,l=new Set(i),c=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&c(p),c(h.parentNode||h.host)};i.forEach(c);const d=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))d(f);else{const v=f.getAttribute(o),b=v!==null&&v!=="false",x=(ue.get(f)||0)+1,E=(r.get(f)||0)+1;ue.set(f,x),r.set(f,E),n.push(f),x===1&&b&&st.set(f,!0),E===1&&f.setAttribute(e,"true"),b||f.setAttribute(o,"true")}})};return d(t),a.clear(),Ht+=1,()=>{n.forEach(h=>{const p=ue.get(h)-1,m=r.get(h)-1;ue.set(h,p),r.set(h,m),p||(st.has(h)?st.delete(h):h.removeAttribute(o)),m||h.removeAttribute(e)}),Ht-=1,Ht||(ue=new WeakMap,ue=new WeakMap,st=new WeakMap,it={})}},Hi=(s,t=document.body,e="data-aria-hidden")=>{const o=Array.from(Array.isArray(s)?s:[s]);return t&&o.push(...Array.from(t.querySelectorAll("[aria-live]"))),Nl(o,t,e,"aria-hidden")};/**
|
|
2972
|
+
* @license
|
|
2973
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2974
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2975
|
+
*/class Ll{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Hi(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
2976
|
+
* @license
|
|
2977
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2978
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2979
|
+
*/class Fl{saveFocus(t){this.focusNode=t||uo()}restoreFocus(){const t=this.focusNode;t&&(uo()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
|
|
2980
|
+
* @license
|
|
2981
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2982
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2983
|
+
*/const jt=[];class Rl{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return vl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(_l).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");jt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,jt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(jt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,o=t?-1:1,i=this.__focusedElementIndex,r=(e.length+i+o)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
|
|
2984
|
+
* @license
|
|
2985
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2986
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2987
|
+
*/const $l=s=>class extends ye(s){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Ll(this),this.__focusTrapController=new Rl(this),this.__focusRestorationController=new Fl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=uo();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let o=e;const i=e.ownerDocument;for(;o&&o!==i&&o!==this;)o=o.parentNode||o.host;return o===this}};/**
|
|
2988
|
+
* @license
|
|
2989
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2990
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2991
|
+
*/const lt=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),Bl=s=>s===lt().pop(),Hl=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Bl(this)}bringToFront(){let e="";const o=lt().filter(i=>i!==this).pop();o&&(e=o.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),lt().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=lt();let o;for(;(o=e.pop())&&!(o!==this&&(o.$.overlay.style.removeProperty("pointer-events"),!o.modeless)););}};/**
|
|
2992
|
+
* @license
|
|
2993
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2994
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2995
|
+
*/const Vl=s=>class extends $l(Hl(s)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Bi&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const o=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),o.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,i=window.innerWidth>e,r=document.documentElement.clientHeight;i&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,o,i,r){const n=this._oldOwner!==o||this._oldModel!==i;this._oldModel=i,this._oldOwner=o;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r,a&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,o){e?(this._saveFocus(),this._animatedOpening(),$i(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):o&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),o=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&o&&o!=="none"}_enqueueAnimation(e,o){const i=`__${e}Handler`,r=n=>{n&&n.target!==this||(o(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const o=`__${e}Handler`;typeof this[o]=="function"&&this[o]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const o=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const o=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}}};/**
|
|
2996
|
+
* @license
|
|
2997
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2998
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2999
|
+
*/const Ut={start:"top",end:"bottom"},Yt={start:"left",end:"right"},Is=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),jl=s=>class extends s{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=Ha(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,o){if(this.__removeUpdatePositionEventListeners(),o&&(o.__overlay=null,Is.unobserve(o),e&&(this.__addUpdatePositionEventListeners(),o.__overlay=this,Is.observe(o))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(i[r],10)})),this.setAttribute("dir",i.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),o=this.__shouldAlignStartVertically(e);this.style.justifyContent=o?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,i),n=!i&&r||i&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Ut,this,o),c=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Yt,this,r);Object.assign(this.style,l,c),this.toggleAttribute("bottom-aligned",!o),this.toggleAttribute("top-aligned",o),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,o){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!o&&this.horizontalAlign==="start"||o&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,r,this.__margins,n,this.noHorizontalOverlap,Yt)}__shouldAlignStartVertically(e){const o=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,o,i,this.__margins,r,this.noVerticalOverlap,Ut)}__shouldAlignStart(e,o,i,r,n,a,l){const c=i-e[a?l.end:l.start]-r[l.end],d=e[a?l.start:l.end]-r[l.start],h=n?c:d,m=h>(n?d:c)||h>o;return n===m}__adjustBottomProperty(e,o,i){let r;if(e===o.end){if(o.end===Ut.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=i-a}this.__oldViewportHeight=n}if(o.end===Yt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=i-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,o,i,r,n,a){const l=a?r.start:r.end,c=a?r.end:r.start,d=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,d),p=o[a?r.start:r.end]-e[i===a?r.end:r.start],m=h?`${h}px`:`${d+p*(a?-1:1)}px`;return{[l]:m,[c]:""}}};/**
|
|
3000
|
+
* @license
|
|
3001
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3002
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3003
|
+
*/const Ul=_`
|
|
3004
|
+
:host {
|
|
3005
|
+
z-index: 200;
|
|
3006
|
+
position: fixed;
|
|
3007
|
+
|
|
3008
|
+
/* Despite of what the names say, <vaadin-overlay> is just a container
|
|
3009
|
+
for position/sizing/alignment. The actual overlay is the overlay part. */
|
|
3010
|
+
|
|
3011
|
+
/* Default position constraints: the entire viewport. Note: themes can
|
|
3012
|
+
override this to introduce gaps between the overlay and the viewport. */
|
|
3013
|
+
inset: 0;
|
|
3014
|
+
bottom: var(--vaadin-overlay-viewport-bottom);
|
|
3015
|
+
|
|
3016
|
+
/* Use flexbox alignment for the overlay part. */
|
|
3017
|
+
display: flex;
|
|
3018
|
+
flex-direction: column; /* makes dropdowns sizing easier */
|
|
3019
|
+
/* Align to center by default. */
|
|
3020
|
+
align-items: center;
|
|
3021
|
+
justify-content: center;
|
|
3022
|
+
|
|
3023
|
+
/* Allow centering when max-width/max-height applies. */
|
|
3024
|
+
margin: auto;
|
|
3025
|
+
|
|
3026
|
+
/* The host is not clickable, only the overlay part is. */
|
|
3027
|
+
pointer-events: none;
|
|
3028
|
+
|
|
3029
|
+
/* Remove tap highlight on touch devices. */
|
|
3030
|
+
-webkit-tap-highlight-color: transparent;
|
|
3031
|
+
|
|
3032
|
+
/* CSS API for host */
|
|
3033
|
+
--vaadin-overlay-viewport-bottom: 0;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
:host([hidden]),
|
|
3037
|
+
:host(:not([opened]):not([closing])) {
|
|
3038
|
+
display: none !important;
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
[part='overlay'] {
|
|
3042
|
+
-webkit-overflow-scrolling: touch;
|
|
3043
|
+
overflow: auto;
|
|
3044
|
+
pointer-events: auto;
|
|
3045
|
+
|
|
3046
|
+
/* Prevent overflowing the host */
|
|
3047
|
+
max-width: 100%;
|
|
3048
|
+
box-sizing: border-box;
|
|
3049
|
+
|
|
3050
|
+
-webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
[part='backdrop'] {
|
|
3054
|
+
z-index: -1;
|
|
3055
|
+
content: '';
|
|
3056
|
+
background: rgba(0, 0, 0, 0.5);
|
|
3057
|
+
position: fixed;
|
|
3058
|
+
inset: 0;
|
|
3059
|
+
pointer-events: auto;
|
|
3060
|
+
}
|
|
3061
|
+
`;/**
|
|
3062
|
+
* @license
|
|
3063
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3064
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3065
|
+
*/const Yl=_`
|
|
3066
|
+
[part='overlay'] {
|
|
3067
|
+
display: flex;
|
|
3068
|
+
flex: auto;
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
[part~='content'] {
|
|
3072
|
+
flex: auto;
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
@media (forced-colors: active) {
|
|
3076
|
+
[part='overlay'] {
|
|
3077
|
+
outline: 3px solid;
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
`;/**
|
|
3081
|
+
* @license
|
|
3082
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3083
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3084
|
+
*/C("vaadin-date-picker-overlay",[Ul,Yl],{moduleId:"vaadin-date-picker-overlay-styles"});class Wl extends jl(Vl(bt(ie(q)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return ne`
|
|
3085
|
+
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
3086
|
+
<div part="overlay" id="overlay">
|
|
3087
|
+
<div part="content" id="content">
|
|
3088
|
+
<slot></slot>
|
|
3089
|
+
</div>
|
|
3090
|
+
</div>
|
|
3091
|
+
`}}N(Wl);/**
|
|
3092
|
+
* @license
|
|
3093
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3094
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3095
|
+
*/function ql(s){let t=s.getDay();t===0&&(t=7);const e=4-t,o=new Date(s.getTime()+e*24*3600*1e3),i=new Date(0,0);i.setFullYear(o.getFullYear());const r=o.getTime()-i.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function V(s,t){return s instanceof Date&&t instanceof Date&&s.getFullYear()===t.getFullYear()&&s.getMonth()===t.getMonth()&&s.getDate()===t.getDate()}function je(s,t,e){return(!t||s>=t)&&(!e||s<=e)}function Vi(s,t){return t.filter(e=>e!==void 0).reduce((e,o)=>{if(!o)return e;if(!e)return o;const i=Math.abs(s.getTime()-o.getTime()),r=Math.abs(e.getTime()-s.getTime());return i<r?o:e})}function ji(s){return{day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function Ui(s){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(s)+t.getMonth()),e}function Kl(s,t,e=0,o=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let i=t+Math.floor(s.getFullYear()/100)*100;return s<new Date(i-50,e,o)?i-=100:s>new Date(i+50,e,o)&&(i+=100),i}function De(s){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}/**
|
|
3096
|
+
* @license
|
|
3097
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3098
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3099
|
+
*/const Yi=document.createElement("template");Yi.innerHTML=`
|
|
3100
|
+
<style>
|
|
3101
|
+
:host {
|
|
3102
|
+
display: block;
|
|
3103
|
+
overflow: hidden;
|
|
3104
|
+
height: 500px;
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
#scroller {
|
|
3108
|
+
position: relative;
|
|
3109
|
+
height: 100%;
|
|
3110
|
+
overflow: auto;
|
|
3111
|
+
outline: none;
|
|
3112
|
+
margin-right: -40px;
|
|
3113
|
+
-webkit-overflow-scrolling: touch;
|
|
3114
|
+
overflow-x: hidden;
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
#scroller.notouchscroll {
|
|
3118
|
+
-webkit-overflow-scrolling: auto;
|
|
3119
|
+
}
|
|
3120
|
+
|
|
3121
|
+
#scroller::-webkit-scrollbar {
|
|
3122
|
+
display: none;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
.buffer {
|
|
3126
|
+
position: absolute;
|
|
3127
|
+
width: var(--vaadin-infinite-scroller-buffer-width, 100%);
|
|
3128
|
+
box-sizing: border-box;
|
|
3129
|
+
padding-right: 40px;
|
|
3130
|
+
top: var(--vaadin-infinite-scroller-buffer-offset, 0);
|
|
3131
|
+
animation: fadein 0.2s;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
@keyframes fadein {
|
|
3135
|
+
from {
|
|
3136
|
+
opacity: 0;
|
|
3137
|
+
}
|
|
3138
|
+
to {
|
|
3139
|
+
opacity: 1;
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
</style>
|
|
3143
|
+
|
|
3144
|
+
<div id="scroller">
|
|
3145
|
+
<div class="buffer"></div>
|
|
3146
|
+
<div class="buffer"></div>
|
|
3147
|
+
<div id="fullHeight"></div>
|
|
3148
|
+
</div>
|
|
3149
|
+
`;class Wi extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Yi.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const o=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(o)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,Dl&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,o=t>this._buffers[1].translateY+e,i=t<this._buffers[0].translateY+e;(o||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Ve.debounce(this._debouncerScrollFinish,mt.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Ve.debounce(this._debouncerUpdateClones,mt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let o=0;o<this.bufferSize;o++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${Ci()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=i,e.appendChild(n),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(o=>{t.instance[o]=e[o]})}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((o,i)=>{if(!o.updated){const r=this._firstIndex+this.bufferSize*i;[...o.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),o.updated=!0}})}_isVisible(t,e){const o=t.getBoundingClientRect();return o.bottom>e.top&&o.top<e.bottom}}/**
|
|
3150
|
+
* @license
|
|
3151
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3152
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3153
|
+
*/const qi=document.createElement("template");qi.innerHTML=`
|
|
3154
|
+
<style>
|
|
3155
|
+
:host {
|
|
3156
|
+
--vaadin-infinite-scroller-item-height: 270px;
|
|
3157
|
+
position: absolute;
|
|
3158
|
+
top: 0;
|
|
3159
|
+
left: 0;
|
|
3160
|
+
right: 0;
|
|
3161
|
+
bottom: 0;
|
|
3162
|
+
height: 100%;
|
|
3163
|
+
}
|
|
3164
|
+
</style>
|
|
3165
|
+
`;class Gl extends Wi{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(qi.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Ui(e)}}N(Gl);/**
|
|
3166
|
+
* @license
|
|
3167
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3168
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3169
|
+
*/const Ki=document.createElement("template");Ki.innerHTML=`
|
|
3170
|
+
<style>
|
|
3171
|
+
:host {
|
|
3172
|
+
--vaadin-infinite-scroller-item-height: 80px;
|
|
3173
|
+
width: 50px;
|
|
3174
|
+
display: block;
|
|
3175
|
+
height: 100%;
|
|
3176
|
+
position: absolute;
|
|
3177
|
+
right: 0;
|
|
3178
|
+
transform: translateX(100%);
|
|
3179
|
+
-webkit-tap-highlight-color: transparent;
|
|
3180
|
+
-webkit-user-select: none;
|
|
3181
|
+
-moz-user-select: none;
|
|
3182
|
+
user-select: none;
|
|
3183
|
+
/* Center the year scroller position. */
|
|
3184
|
+
--vaadin-infinite-scroller-buffer-offset: 50%;
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
:host::before {
|
|
3188
|
+
content: '';
|
|
3189
|
+
display: block;
|
|
3190
|
+
background: transparent;
|
|
3191
|
+
width: 0;
|
|
3192
|
+
height: 0;
|
|
3193
|
+
position: absolute;
|
|
3194
|
+
left: 0;
|
|
3195
|
+
top: 50%;
|
|
3196
|
+
transform: translateY(-50%);
|
|
3197
|
+
border-width: 6px;
|
|
3198
|
+
border-style: solid;
|
|
3199
|
+
border-color: transparent;
|
|
3200
|
+
border-left-color: #000;
|
|
3201
|
+
}
|
|
3202
|
+
</style>
|
|
3203
|
+
`;class Jl extends Wi{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ki.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,o=new Date(e);return o.setFullYear(parseInt(t)+e.getFullYear()),o.getFullYear()}}N(Jl);/**
|
|
3204
|
+
* @license
|
|
3205
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3206
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3207
|
+
*/class Xl extends ie(q){static get is(){return"vaadin-date-picker-year"}static get template(){return ne`
|
|
3208
|
+
<style>
|
|
3209
|
+
:host {
|
|
3210
|
+
display: block;
|
|
3211
|
+
height: 100%;
|
|
3212
|
+
}
|
|
3213
|
+
</style>
|
|
3214
|
+
<div part="year-number">[[year]]</div>
|
|
3215
|
+
<div part="year-separator" aria-hidden="true"></div>
|
|
3216
|
+
`}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,e){this.toggleAttribute("selected",e&&e.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}}N(Xl);/**
|
|
3217
|
+
@license
|
|
3218
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3219
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3220
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3221
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3222
|
+
Code distributed by Google as part of the polymer project is also
|
|
3223
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3224
|
+
*/function No(s,t,e,o,i){let r;i&&(r=typeof e=="object"&&e!==null,r&&(o=s.__dataTemp[t]));let n=o!==e&&(o===o||e===e);return r&&n&&(s.__dataTemp[t]=e),n}const Lo=A(s=>{class t extends s{_shouldPropertyChange(o,i,r){return No(this,o,i,r,!0)}}return t}),Ql=A(s=>{class t extends s{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(o,i,r){return No(this,o,i,r,this.mutableData)}}return t});Lo._mutablePropertyChange=No;/**
|
|
3225
|
+
@license
|
|
3226
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3227
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3228
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3229
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3230
|
+
Code distributed by Google as part of the polymer project is also
|
|
3231
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3232
|
+
*/let fo=null;function _o(){return fo}_o.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:_o,writable:!0}});const Gi=So(_o),Zl=Lo(Gi);function ec(s,t){fo=s,Object.setPrototypeOf(s,t.prototype),new t,fo=null}const tc=So(class{});function oc(s,t){for(let e=0;e<t.length;e++){let o=t[e];if(!!s!=!!o.__hideTemplateChildren__)if(o.nodeType===Node.TEXT_NODE)s?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if(o.localName==="slot")if(s)o.__polymerReplaced__=document.createComment("hidden-slot"),P(P(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const i=o.__polymerReplaced__;i&&P(P(i).parentNode).replaceChild(o,i)}else o.style&&(s?(o.__polymerDisplay__=o.style.display,o.style.display="none"):o.style.display=o.__polymerDisplay__);o.__hideTemplateChildren__=s,o._showHideChildren&&o._showHideChildren(s)}}class K extends tc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let i=this.root.firstChild;i;i=i.nextSibling)e.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let o=this.__templatizeOptions;(t&&o.instanceProps||!o.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let o in this.__hostProps)this._setPendingProperty(o,this.__dataHost["_host_"+o]);for(let o in t)this._setPendingProperty(o,t[o])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,o){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,i=>{i.model=this,o(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(t,e,o)}}_showHideChildren(t){oc(t,this.children)}_setUnmanagedPropertyToNode(t,e,o){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=o:super._setUnmanagedPropertyToNode(t,e,o)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}K.prototype.__dataHost;K.prototype.__templatizeOptions;K.prototype._methodHost;K.prototype.__templatizeOwner;K.prototype.__hostProps;const sc=Lo(K);function Ns(s){let t=s.__dataHost;return t&&t._methodHost||t}function ic(s,t,e){let o=e.mutableData?sc:K;go.mixin&&(o=go.mixin(o));let i=class extends o{};return i.prototype.__templatizeOptions=e,i.prototype._bindTemplate(s),ac(i,s,t,e),i}function rc(s,t,e,o){let i=e.forwardHostProp;if(i&&t.hasHostProps){const r=s.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?Zl:Gi;class c extends l{}n=t.templatizeTemplateClass=c}else{const l=s.constructor;class c extends l{}n=t.templatizeTemplateClass=c}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:nc(l,i)}),n.prototype._createNotifyingProperty("_host_"+l);Ks&&o&&uc(t,e,o)}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)ec(s,n),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else{Object.setPrototypeOf(s,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in s){const c=s[l];delete s[l],s.__data[l]=c}}}}function nc(s,t){return function(o,i,r){t.call(o.__templatizeOwner,i.substring(6),r[i])}}function ac(s,t,e,o){let i=e.hostProps||{};for(let r in o.instanceProps){delete i[r];let n=o.notifyInstanceProp;n&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:lc(r,n)})}if(o.forwardHostProp&&t.__dataHost)for(let r in i)e.hasHostProps||(e.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:cc()})}function lc(s,t){return function(o,i,r){t.call(o.__templatizeOwner,o,i,r[i])}}function cc(){return function(t,e,o){t.__dataHost._setPendingPropertyOrPath("_host_"+e,o[e],!0,!0)}}function go(s,t,e){if(ht&&!Ns(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=t;let i=(t?t.constructor:K)._parseTemplate(s),r=i.templatizeInstanceClass;r||(r=ic(s,i,e),i.templatizeInstanceClass=r);const n=Ns(s);rc(s,i,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=s,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=i.hostProps,a=a,a}function uc(s,t,e){const o=e.constructor._properties,{propertyEffects:i}=s,{instanceProps:r}=t;for(let n in i)if(!o[n]&&!(r&&r[n])){const a=i[n];for(let l=0;l<a.length;l++){const{part:c}=a[l].info;if(!(c.signature&&c.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function dc(s,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=s)t=e.__dataHost;else return e;else t=P(t).parentNode;return null}/**
|
|
3233
|
+
@license
|
|
3234
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3235
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3236
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3237
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3238
|
+
Code distributed by Google as part of the polymer project is also
|
|
3239
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3240
|
+
*/class _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,Ue.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ue.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(t,e,o){return t instanceof _t?t._cancelAsync():t=new _t,t.setConfig(e,o),t}}let Ue=new Set;const hc=function(s){Ue.add(s)},pc=function(){const s=!!Ue.size;return Ue.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),s};/**
|
|
3241
|
+
@license
|
|
3242
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3243
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3244
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3245
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3246
|
+
Code distributed by Google as part of the polymer project is also
|
|
3247
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3248
|
+
*/const Ji=function(){let s,t;do s=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=pc();while(s||t)};/**
|
|
3249
|
+
@license
|
|
3250
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3251
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3252
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3253
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3254
|
+
Code distributed by Google as part of the polymer project is also
|
|
3255
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3256
|
+
*/let Ls=!1;function mc(){if(qs&&!Ws){if(!Ls){Ls=!0;const s=document.createElement("style");s.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(s)}return!0}return!1}/**
|
|
3257
|
+
@license
|
|
3258
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3259
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3260
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3261
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3262
|
+
Code distributed by Google as part of the polymer project is also
|
|
3263
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3264
|
+
*/const fc=Ql(q);class Fs extends fc{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!cs,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),mc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=P(P(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=go(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(i,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(i,r)},notifyInstanceProp:function(i,r,n){if(en(this.as,r)){let a=i[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=$e(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,o=this.__getMethodHost();return function(){return o[e].apply(o,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let o=0;o<e.length;o++)t.indexOf(e[o])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=_t.debounce(this.__renderDebouncer,e>0?an.after(e):ii,t.bind(this)),hc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ji()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),o=this.__calculateLimit(e.length);this.__updateInstances(t,o,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!cs||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let o=0;o<t.length;o++)e[o]=o;return this.__filterFn&&(e=e.filter((o,i,r)=>this.__filterFn(t[o],i,r))),this.__sortFn&&e.sort((o,i)=>this.__sortFn(t[o],t[i])),e}__calculateLimit(t){let e=t;const o=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),i=Math.max(e-o,0),this.__chunkCount=i||1):(i=Math.min(Math.max(t-o,0),this.__chunkCount),e=Math.min(o+i,t)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,o){const i=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=o[r],l=t[a];i[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const o=P(e.root);for(let i=0;i<e.children.length;i++){let r=e.children[i];o.appendChild(r)}return e}__attachInstance(t,e){let o=this.__instances[t];e.insertBefore(o.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,o){let i={};return i[this.as]=t,i[this.indexAs]=e,i[this.itemsIndexAs]=o,new this.__ctor(i)}__insertInstance(t,e,o){const i=this.__stampInstance(t,e,o);let r=this.__instances[e+1],n=r?r.children[0]:this;return P(P(this).parentNode).insertBefore(i.root,n),this.__instances[e]=i,i}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let o=t.slice(6),i=o.indexOf("."),r=i<0?o:o.substring(0,i);if(r==parseInt(r,10)){let n=i<0?"":o.substring(i+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let c=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(c,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return dc(this.template,t)}}customElements.define(Fs.is,Fs);/**
|
|
3265
|
+
* @license
|
|
3266
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3267
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3268
|
+
*/const _c=s=>class extends Io(s){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>V(e.date,this.focusedDate))}ready(){super.ready(),R(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,o,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),o&&i&&o.getMonth()===i.getMonth()&&o.getMonth()===e.getMonth()&&i.getDate()-o.getDate()>=0?!1:!je(r,o,i)&&!je(n,o,i)}_getTitle(e,o){if(!(e===void 0||o===void 0))return o.formatTitle(o.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,o){e.setDate(e.getDate()+o)}_applyFirstDayOfWeek(e,o){if(!(e===void 0||o===void 0))return e.slice(o).concat(e.slice(0,o))}_getWeekDayNames(e,o){if(e===void 0||o===void 0)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(i,n).map((c,d)=>({weekDay:c,weekDayShort:a[d]}))}__focusedDateChanged(e,o){Array.isArray(o)&&o.some(i=>V(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,o){return e&&o&&o.firstDayOfWeek===1}_isToday(e){return V(new Date,e)}_getDays(e,o){if(e===void 0||o===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==o.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],n=i.getMonth(),a=e.getMonth();for(;i.getMonth()===a||i.getMonth()===n;)r.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce((o,i,r)=>(r%7===0&&o.push([]),o[o.length-1].push(i),o),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const o=e.reduce((i,r)=>!i&&r?r:i);return ql(o)}__getDayAriaLabel(e){if(!e)return"";let o=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(o+=`, ${this.i18n.today}`),o}};/**
|
|
3269
|
+
* @license
|
|
3270
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3271
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3272
|
+
*/const gc=_`
|
|
3273
|
+
:host {
|
|
3274
|
+
display: block;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
#monthGrid {
|
|
3278
|
+
width: 100%;
|
|
3279
|
+
border-collapse: collapse;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
#days-container tr,
|
|
3283
|
+
#weekdays-container tr {
|
|
3284
|
+
display: flex;
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
[part~='date'] {
|
|
3288
|
+
outline: none;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
[part~='disabled'] {
|
|
3292
|
+
pointer-events: none;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
[part='week-number'][hidden],
|
|
3296
|
+
[part='weekday'][hidden] {
|
|
3297
|
+
display: none;
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
[part='weekday'],
|
|
3301
|
+
[part~='date'] {
|
|
3302
|
+
width: calc(100% / 7);
|
|
3303
|
+
padding: 0;
|
|
3304
|
+
font-weight: normal;
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3307
|
+
[part='weekday']:empty,
|
|
3308
|
+
[part='week-number'] {
|
|
3309
|
+
width: 12.5%;
|
|
3310
|
+
flex-shrink: 0;
|
|
3311
|
+
padding: 0;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
3315
|
+
:host([week-numbers]) [part~='date'] {
|
|
3316
|
+
width: 12.5%;
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
@media (forced-colors: active) {
|
|
3320
|
+
[part~='date'][part~='focused'] {
|
|
3321
|
+
outline: 1px solid;
|
|
3322
|
+
}
|
|
3323
|
+
|
|
3324
|
+
[part~='date'][part~='selected'] {
|
|
3325
|
+
outline: 3px solid;
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
`;/**
|
|
3329
|
+
* @license
|
|
3330
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3331
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3332
|
+
*/C("vaadin-month-calendar",gc,{moduleId:"vaadin-month-calendar-styles"});class vc extends _c(ie(q)){static get template(){return ne`
|
|
3333
|
+
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3334
|
+
<table
|
|
3335
|
+
id="monthGrid"
|
|
3336
|
+
role="grid"
|
|
3337
|
+
aria-labelledby="month-header"
|
|
3338
|
+
on-touchend="_preventDefault"
|
|
3339
|
+
on-touchstart="_onMonthGridTouchStart"
|
|
3340
|
+
>
|
|
3341
|
+
<thead id="weekdays-container">
|
|
3342
|
+
<tr role="row" part="weekdays">
|
|
3343
|
+
<th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
|
|
3344
|
+
<template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
|
|
3345
|
+
<th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
|
|
3346
|
+
[[item.weekDayShort]]
|
|
3347
|
+
</th>
|
|
3348
|
+
</template>
|
|
3349
|
+
</tr>
|
|
3350
|
+
</thead>
|
|
3351
|
+
<tbody id="days-container">
|
|
3352
|
+
<template is="dom-repeat" items="[[_weeks]]" as="week">
|
|
3353
|
+
<tr role="row">
|
|
3354
|
+
<td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
|
|
3355
|
+
[[__getWeekNumber(week)]]
|
|
3356
|
+
</td>
|
|
3357
|
+
<template is="dom-repeat" items="[[week]]">
|
|
3358
|
+
<td
|
|
3359
|
+
role="gridcell"
|
|
3360
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
|
|
3361
|
+
date="[[item]]"
|
|
3362
|
+
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
3363
|
+
disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
|
|
3364
|
+
aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
|
|
3365
|
+
aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
|
|
3366
|
+
aria-label$="[[__getDayAriaLabel(item)]]"
|
|
3367
|
+
>[[_getDate(item)]]</td
|
|
3368
|
+
>
|
|
3369
|
+
</template>
|
|
3370
|
+
</tr>
|
|
3371
|
+
</template>
|
|
3372
|
+
</tbody>
|
|
3373
|
+
</table>
|
|
3374
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,o,i,r){const n=["date"];return this.__isDayDisabled(t,i,r)&&n.push("disabled"),this.__isDayFocused(t,e)&&n.push("focused"),this.__isDaySelected(t,o)&&n.push("selected"),this._isToday(t)&&n.push("today"),n.join(" ")}__isDayFocused(t,e){return V(t,e)}__isDaySelected(t,e){return V(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,o){return!je(t,e,o)}__getDayAriaDisabled(t,e,o){if(!(t===void 0||e===void 0||o===void 0)&&this.__isDayDisabled(t,e,o))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}N(vc);/**
|
|
3375
|
+
* @license
|
|
3376
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3377
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3378
|
+
*/class Xi{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){typeof this.callback=="function"&&this.callback(t.matches)}}/**
|
|
3379
|
+
* @license
|
|
3380
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3381
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3382
|
+
*/const yc=s=>class extends s{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ti(this.$.scrollers,"pan-y"),R(this.$.scrollers,"track",this._track.bind(this)),R(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),R(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),R(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Xi(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ee(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),R(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ee(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),R(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,o){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ee(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(i=>{i.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ee(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),R(e,"tap",o=>{this._onYearTap(o)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,i,r){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(e,o,i,r,n,a,l,c,d){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=i,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,o,i){e&&e.length&&e.forEach(r=>{r.selectedDate=o,i?r.setAttribute("theme",i):r.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,o=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+c,o);return}const r=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;r?this._scrollToPosition(i,o):l&&this._scrollToPosition(i-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let i=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ve.debounce(this._debouncer,mt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,i){return e&&o&&typeof o.formatDate=="function"?o.formatDate(ji(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(c=>{i=c});const r=(c,d,h,p)=>(c/=p/2,c<1?h/2*c*c+d:(c-=1,-h/2*(c*(c-2)-1)+d));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const d=c-n;if(d<this.scrollDuration){const h=r(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Ui(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){V(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const o=this.focusableDateElement;o&&V(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return et(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,o||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return et(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{$i(this,()=>{Ji(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Vi(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),o&&i.setDate(this.focusedDate.getDate()+o),i}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),i=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==i&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const i=new Date(0,0);i.setFullYear(e.getFullYear()),o==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,i=this.maxDate){return(!o||e>=o)&&(!i||e<=i)}_isTodayAllowed(e,o){const i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,o)}};/**
|
|
3383
|
+
* @license
|
|
3384
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3385
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3386
|
+
*/const bc=_`
|
|
3387
|
+
:host {
|
|
3388
|
+
display: flex;
|
|
3389
|
+
flex-direction: column;
|
|
3390
|
+
height: 100%;
|
|
3391
|
+
width: 100%;
|
|
3392
|
+
outline: none;
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
[part='overlay-header'] {
|
|
3396
|
+
display: flex;
|
|
3397
|
+
flex-shrink: 0;
|
|
3398
|
+
flex-wrap: nowrap;
|
|
3399
|
+
align-items: center;
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
:host(:not([fullscreen])) [part='overlay-header'] {
|
|
3403
|
+
display: none;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
[part='label'] {
|
|
3407
|
+
flex-grow: 1;
|
|
3408
|
+
}
|
|
3409
|
+
|
|
3410
|
+
[hidden] {
|
|
3411
|
+
display: none !important;
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
[part='years-toggle-button'] {
|
|
3415
|
+
display: flex;
|
|
3416
|
+
}
|
|
3417
|
+
|
|
3418
|
+
#scrollers {
|
|
3419
|
+
display: flex;
|
|
3420
|
+
height: 100%;
|
|
3421
|
+
width: 100%;
|
|
3422
|
+
position: relative;
|
|
3423
|
+
overflow: hidden;
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
3427
|
+
right: 50px;
|
|
3428
|
+
transform: none !important;
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
:host([desktop]) ::slotted([slot='years']) {
|
|
3432
|
+
transform: none !important;
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
:host(.animate) ::slotted([slot='months']),
|
|
3436
|
+
:host(.animate) ::slotted([slot='years']) {
|
|
3437
|
+
transition: all 200ms;
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
[part='toolbar'] {
|
|
3441
|
+
display: flex;
|
|
3442
|
+
justify-content: space-between;
|
|
3443
|
+
z-index: 2;
|
|
3444
|
+
flex-shrink: 0;
|
|
3445
|
+
}
|
|
3446
|
+
`;/**
|
|
3447
|
+
* @license
|
|
3448
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3449
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3450
|
+
*/C("vaadin-date-picker-overlay-content",bc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class xc extends yc(ye(ie(bt(q)))){static get template(){return ne`
|
|
3451
|
+
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3452
|
+
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3453
|
+
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
3454
|
+
<div part="toggle-button"></div>
|
|
3455
|
+
|
|
3456
|
+
<div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
|
|
3457
|
+
[[_yearAfterXMonths(_visibleMonthIndex)]]
|
|
3458
|
+
</div>
|
|
3459
|
+
</div>
|
|
3460
|
+
|
|
3461
|
+
<div id="scrollers">
|
|
3462
|
+
<slot name="months"></slot>
|
|
3463
|
+
<slot name="years"></slot>
|
|
3464
|
+
</div>
|
|
3465
|
+
|
|
3466
|
+
<div on-touchend="_preventDefault" role="toolbar" part="toolbar">
|
|
3467
|
+
<slot name="today-button"></slot>
|
|
3468
|
+
<slot name="cancel-button"></slot>
|
|
3469
|
+
</div>
|
|
3470
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}N(xc);/**
|
|
3471
|
+
* @license
|
|
3472
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3473
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3474
|
+
*/const Qi=A(s=>class extends Io(zi(s)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,o){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):o&&this._removeFocusListeners(o)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,o){super._disabledChanged(e,o),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
|
|
3475
|
+
* @license
|
|
3476
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3477
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3478
|
+
*/const Wt=new WeakMap;function wc(s){return Wt.has(s)||Wt.set(s,new Set),Wt.get(s)}function Ec(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Cc=A(s=>class extends s{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),o=wc(e);this.slotStyles.forEach(i=>{o.has(i)||(Ec(i,e),o.add(i))})}});/**
|
|
3479
|
+
* @license
|
|
3480
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3481
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3482
|
+
*/const Zi=A(s=>class extends s{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,o){e?this._addInputListeners(e):o&&this._removeInputListeners(o)}_hasInputValueChanged(e,o){(e||o)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const o=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=o.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,o){this._toggleHasValue(this._hasValue),!(e===""&&o===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const o=e.composedPath()[0];this._hasInputValue=o.value.length>0}});/**
|
|
3483
|
+
* @license
|
|
3484
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3485
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3486
|
+
*/const Ac=s=>class extends Zi(wt(s)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),Ml||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3487
|
+
* @license
|
|
3488
|
+
* Copyright (c) 2023 Vaadin Ltd.
|
|
3489
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3490
|
+
*/const qt=new Map;function Fo(s){return qt.has(s)||qt.set(s,new WeakMap),qt.get(s)}function er(s,t){s&&s.removeAttribute(t)}function tr(s,t){if(!s||!t)return;const e=Fo(t);if(e.has(s))return;const o=ko(s.getAttribute(t));e.set(s,new Set(o))}function Sc(s,t){if(!s||!t)return;const e=Fo(t),o=e.get(s);!o||o.size===0?s.removeAttribute(t):Ei(s,t,xt(o)),e.delete(s)}function Kt(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:o,oldId:i,fromUser:r}=e,n=Fo(t),a=n.get(s);if(!r&&a){i&&a.delete(i),o&&a.add(o);return}r&&(a?o||n.delete(s):tr(s,t),er(s,t)),Va(s,t,i);const l=o||xt(a);l&&Ei(s,t,l)}function kc(s,t){tr(s,t),er(s,t)}/**
|
|
3491
|
+
* @license
|
|
3492
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3493
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3494
|
+
*/class Pc{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const o=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,o,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(kc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Sc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,o){Kt(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:o})}__setErrorIdToAriaAttribute(t,e){Kt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Kt(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")))}}/**
|
|
3495
|
+
* @license
|
|
3496
|
+
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
3497
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3498
|
+
*/class Ro extends ee{constructor(t,e,o,i={}){super(t,e,o,Pt(kt({},i),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(o=>{const i=o.target,r=i===this.node;o.type==="attributes"?r&&this.__updateNodeId(i):(r||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
|
|
3499
|
+
* @license
|
|
3500
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3501
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3502
|
+
*/class Tc extends Ro{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:o}=this,i=!!(o&&e&&e.trim()!=="");t&&(t.textContent=i?e:"",t.hidden=!i,i?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}/**
|
|
3503
|
+
* @license
|
|
3504
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3505
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3506
|
+
*/class Dc extends Ro{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
3507
|
+
* @license
|
|
3508
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3509
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3510
|
+
*/class Oc extends Ro{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
3511
|
+
* @license
|
|
3512
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3513
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3514
|
+
*/const zc=A(s=>class extends ye(s){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Oc(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
|
|
3515
|
+
* @license
|
|
3516
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3517
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3518
|
+
*/const or=A(s=>class extends s{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
|
|
3519
|
+
* @license
|
|
3520
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3521
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3522
|
+
*/const Mc=s=>class extends or(zc(ye(s))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Pc(this),this._helperController=new Dc(this),this._errorController=new Tc(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:i}=e.detail;this.__labelChanged(o,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:i}=e.detail;this.toggleAttribute("has-helper",o),this.__helperChanged(o,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(e,o){e?this._fieldAriaController.setHelperId(o.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,o){e?this._fieldAriaController.setLabelId(o.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const o=this._errorNode;this._fieldAriaController.setErrorId(o&&o.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
3523
|
+
* @license
|
|
3524
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3525
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3526
|
+
*/const Ic=A(s=>class extends s{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((o,i)=>{this._delegateAttribute(o,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((o,i)=>{this._delegateProperty(o,e[i])})}_delegateAttribute(e,o){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",o?"true":!1),typeof o=="boolean"?this.stateTarget.toggleAttribute(e,o):o?this.stateTarget.setAttribute(e,o):this.stateTarget.removeAttribute(e))}_delegateProperty(e,o){this.stateTarget&&(this.stateTarget[e]=o)}});/**
|
|
3527
|
+
* @license
|
|
3528
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3529
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3530
|
+
*/const sr=A(s=>class extends Ic(or(Zi(s))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(o=>this.__isValidConstraint(o))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...o){if(!e)return;const i=this._hasValidConstraints(o),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
|
|
3531
|
+
* @license
|
|
3532
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3533
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3534
|
+
*/const Nc=s=>class extends Cc(Qi(sr(Mc(Ac(wt(s)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
3535
|
+
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3536
|
+
font: inherit;
|
|
3537
|
+
color: inherit;
|
|
3538
|
+
}
|
|
3539
|
+
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Ve.debounce(this._preventInputDebouncer,mt.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const o=e.clipboardData.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const o=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(o){console.error(o)}}};/**
|
|
3540
|
+
* @license
|
|
3541
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3542
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3543
|
+
*/class Lc extends ee{constructor(t,e){super(t,"input","input",{initializer:(o,i)=>{i.value&&(o.value=i.value),i.type&&o.setAttribute("type",i.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0})}}/**
|
|
3544
|
+
* @license
|
|
3545
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3546
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3547
|
+
*/class Fc{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",o=>{this.__initLabel(o.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
|
|
3548
|
+
* @license
|
|
3549
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3550
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3551
|
+
*/const Rc=_`
|
|
3552
|
+
[part='clear-button'] {
|
|
3553
|
+
display: none;
|
|
3554
|
+
cursor: default;
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
[part='clear-button']::before {
|
|
3558
|
+
content: '\\2715';
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
:host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
|
|
3562
|
+
display: block;
|
|
3563
|
+
}
|
|
3564
|
+
`;/**
|
|
3565
|
+
* @license
|
|
3566
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3567
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3568
|
+
*/const $c=_`
|
|
3569
|
+
:host {
|
|
3570
|
+
display: inline-flex;
|
|
3571
|
+
outline: none;
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
:host::before {
|
|
3575
|
+
content: '\\2003';
|
|
3576
|
+
width: 0;
|
|
3577
|
+
display: inline-block;
|
|
3578
|
+
/* Size and position this element on the same vertical position as the input-field element
|
|
3579
|
+
to make vertical align for the host element work as expected */
|
|
3580
|
+
}
|
|
3581
|
+
|
|
3582
|
+
:host([hidden]) {
|
|
3583
|
+
display: none !important;
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
:host(:not([has-label])) [part='label'] {
|
|
3587
|
+
display: none;
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
@media (forced-colors: active) {
|
|
3591
|
+
:host(:not([readonly])) [part='input-field'] {
|
|
3592
|
+
outline: 1px solid;
|
|
3593
|
+
outline-offset: -1px;
|
|
3594
|
+
}
|
|
3595
|
+
:host([focused]) [part='input-field'] {
|
|
3596
|
+
outline-width: 2px;
|
|
3597
|
+
}
|
|
3598
|
+
:host([disabled]) [part='input-field'] {
|
|
3599
|
+
outline-color: GrayText;
|
|
3600
|
+
}
|
|
3601
|
+
}
|
|
3602
|
+
`;/**
|
|
3603
|
+
* @license
|
|
3604
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3605
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3606
|
+
*/const Bc=_`
|
|
3607
|
+
[class$='container'] {
|
|
3608
|
+
display: flex;
|
|
3609
|
+
flex-direction: column;
|
|
3610
|
+
min-width: 100%;
|
|
3611
|
+
max-width: 100%;
|
|
3612
|
+
width: var(--vaadin-field-default-width, 12em);
|
|
3613
|
+
}
|
|
3614
|
+
`;/**
|
|
3615
|
+
* @license
|
|
3616
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3617
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3618
|
+
*/const Hc=[$c,Bc,Rc];/**
|
|
3619
|
+
* @license
|
|
3620
|
+
* Copyright (c) 2023 Vaadin Ltd.
|
|
3621
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3622
|
+
*/const Vc=s=>class extends s{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,o){if(!o||e===void 0)return;const{classList:i}=o;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&i.remove(...n)}const r=typeof e=="string"?e.split(" "):[];r.length>0&&i.add(...r),this.__previousClasses=r}};/**
|
|
3623
|
+
* @license
|
|
3624
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3625
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3626
|
+
*/class jc{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
|
|
3627
|
+
* @license
|
|
3628
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3629
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3630
|
+
*/const Uc=s=>class extends Vc(ye(Qi(sr(wt(s))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const o=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,o].join("/")},parseDate(e){const o=e.split("/"),i=new Date;let r,n=i.getMonth(),a=i.getFullYear();if(o.length===3){if(n=parseInt(o[0])-1,r=parseInt(o[1]),a=parseInt(o[2]),o[2].length<3&&a>=0){const l=this.referenceDate?De(this.referenceDate):new Date;a=Kl(l,a,n,r)}}else o.length===2?(n=parseInt(o[0])-1,r=parseInt(o[1])):o.length===1&&(r=parseInt(o[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,o)=>`${e} ${o}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Bi},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Xi(this._fullscreenMediaQuery,o=>{this._fullscreen=o})),this.addController(new jc(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const o=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(o),this._overlayContent=o,o.addEventListener("close",()=>{this._close()}),o.addEventListener("focus-input",this._focusAndSelect.bind(this)),o.addEventListener("date-tap",i=>{this.__userConfirmedDate=!0,this._selectDate(i.detail.date),this._close()}),o.addEventListener("date-selected",i=>{this.__userConfirmedDate=!!i.detail.date,this._selectDate(i.detail.date)}),o.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),o.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let o=this.i18n.parseDate(e);if(o&&(o=De(`${o.year}-${o.month+1}-${o.day}`)),o&&!isNaN(o.getTime()))return o}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(ji(e))}checkValidity(){const e=this._inputElementValue,o=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||je(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),o&&i&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const o=this.value;this._selectedDate=e,o!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,o,i,r,n,a){return!e||o&&(!a||n)||i&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const o=(d,h="00")=>(h+d).substr((h+d).length-h.length);let i="",r="0000",n=e.getFullYear();n<0?(n=-n,i="-",r="000000"):e.getFullYear()>=1e4&&(i="+",r="000000");const a=i+o(n,r),l=o(e.getMonth()+1),c=o(e.getDate());return[a,l,c].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,o){e===void 0||o===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,o){e===void 0||o===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,o){const i=De(e);if(e&&!i){this.value=o;return}e?V(this._selectedDate,i)||(this._selectedDate=i,o!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,o,i,r,n,a,l,c){e&&(e.i18n=o,e.label=i,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=c)}__updateOverlayContentTheme(e,o){e&&(o?e.setAttribute("theme",o):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,o){e&&e.toggleAttribute("fullscreen",o)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const o=this._getInitialPosition();e.initialPosition=o;const i=e.focusedDate||o;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Hi(n)}_getInitialPosition(){const e=De(this.initialPosition),o=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||je(o,this._minDate,this._maxDate)?o:Vi(o,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",o=this.__parseDate(e);o?this._selectDate(o):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,o){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,o)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const o=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),o===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,V(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return De(e)}};/**
|
|
3631
|
+
* @license
|
|
3632
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3633
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3634
|
+
*/const Yc=_`
|
|
3635
|
+
:host([opened]) {
|
|
3636
|
+
pointer-events: auto;
|
|
3637
|
+
}
|
|
3638
|
+
|
|
3639
|
+
:host([dir='rtl']) [part='input-field'] {
|
|
3640
|
+
direction: ltr;
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
|
|
3644
|
+
direction: rtl;
|
|
3645
|
+
text-align: left;
|
|
3646
|
+
}
|
|
3647
|
+
`;/**
|
|
3648
|
+
* @license
|
|
3649
|
+
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3650
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3651
|
+
*/C("vaadin-date-picker",[Hc,Yc],{moduleId:"vaadin-date-picker-styles"});class Wc extends Uc(Nc(ie(wi(q)))){static get is(){return"vaadin-date-picker"}static get template(){return ne`
|
|
3652
|
+
<div class="vaadin-date-picker-container">
|
|
3653
|
+
<div part="label">
|
|
3654
|
+
<slot name="label"></slot>
|
|
3655
|
+
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
|
3656
|
+
</div>
|
|
3657
|
+
|
|
3658
|
+
<vaadin-input-container
|
|
3659
|
+
part="input-field"
|
|
3660
|
+
readonly="[[readonly]]"
|
|
3661
|
+
disabled="[[disabled]]"
|
|
3662
|
+
invalid="[[invalid]]"
|
|
3663
|
+
theme$="[[_theme]]"
|
|
3664
|
+
>
|
|
3665
|
+
<slot name="prefix" slot="prefix"></slot>
|
|
3666
|
+
<slot name="input"></slot>
|
|
3667
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
3668
|
+
<div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
|
|
3669
|
+
</vaadin-input-container>
|
|
3670
|
+
|
|
3671
|
+
<div part="helper-text">
|
|
3672
|
+
<slot name="helper"></slot>
|
|
3673
|
+
</div>
|
|
3674
|
+
|
|
3675
|
+
<div part="error-message">
|
|
3676
|
+
<slot name="error-message"></slot>
|
|
3677
|
+
</div>
|
|
3678
|
+
</div>
|
|
3679
|
+
|
|
3680
|
+
<vaadin-date-picker-overlay
|
|
3681
|
+
id="overlay"
|
|
3682
|
+
fullscreen$="[[_fullscreen]]"
|
|
3683
|
+
theme$="[[_theme]]"
|
|
3684
|
+
opened="{{opened}}"
|
|
3685
|
+
on-vaadin-overlay-escape-press="_onOverlayEscapePress"
|
|
3686
|
+
on-vaadin-overlay-open="_onOverlayOpened"
|
|
3687
|
+
on-vaadin-overlay-closing="_onOverlayClosed"
|
|
3688
|
+
restore-focus-on-close
|
|
3689
|
+
restore-focus-node="[[inputElement]]"
|
|
3690
|
+
></vaadin-date-picker-overlay>
|
|
3691
|
+
|
|
3692
|
+
<slot name="tooltip"></slot>
|
|
3693
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Lc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Fc(this.inputElement,this._labelController)),this._tooltipController=new Ai(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}N(Wc);function qc(s){u.append_styles(s,"svelte-1btclz8",'.PlayerSelfExclusionTitle.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{display:none}.SelfExclusionWrapper.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{padding:20px 15px;max-width:unset}.MenuReturnButton.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription.svelte-1btclz8 .SelfExclusionDescriptionText a.svelte-1btclz8.svelte-1btclz8{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper.svelte-1btclz8 label.svelte-1btclz8.svelte-1btclz8{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{width:100%}.SelfExclusionRadioWrapper.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper.svelte-1btclz8 label.svelte-1btclz8.svelte-1btclz8{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper.svelte-1btclz8 input.svelte-1btclz8.svelte-1btclz8{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper.svelte-1btclz8 .Checkmark.svelte-1btclz8.svelte-1btclz8{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper.svelte-1btclz8 input.svelte-1btclz8:checked~.Checkmark.svelte-1btclz8{background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper.svelte-1btclz8 .Checkmark.svelte-1btclz8.svelte-1btclz8:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper.svelte-1btclz8 input.svelte-1btclz8:checked~.Checkmark.svelte-1btclz8:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile.svelte-1btclz8 label.svelte-1btclz8.svelte-1btclz8{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{margin-top:40px;width:50%}.SelfExclusionActionButtons.svelte-1btclz8 .SelfExclusionSave.svelte-1btclz8.svelte-1btclz8{cursor:pointer;font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile.svelte-1btclz8 .SelfExclusionSave.svelte-1btclz8.svelte-1btclz8{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function Kc(s){let t,e,o,i,r,n,a,l,c,d,h=s[8]("titleSelfExclusion")+"",p,m,f;return{c(){t=u.element("div"),e=u.svg_element("svg"),o=u.svg_element("defs"),i=u.svg_element("style"),r=u.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=u.svg_element("g"),a=u.svg_element("g"),l=u.svg_element("path"),c=u.space(),d=u.element("h2"),p=u.text(h),u.attr(l,"class","aaa"),u.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),u.attr(l,"transform","translate(15 15) rotate(180)"),u.attr(a,"transform","translate(20 158)"),u.attr(n,"transform","translate(-20 -158)"),u.attr(e,"xmlns","http://www.w3.org/2000/svg"),u.attr(e,"width","15"),u.attr(e,"height","15"),u.attr(e,"viewBox","0 0 15 15"),u.attr(d,"class","PlayerSelfExclusionTitleMobile svelte-1btclz8"),u.attr(t,"class","MenuReturnButton svelte-1btclz8")},m(v,b){u.insert(v,t,b),u.append(t,e),u.append(e,o),u.append(o,i),u.append(i,r),u.append(e,n),u.append(n,a),u.append(a,l),u.append(t,c),u.append(t,d),u.append(d,p),m||(f=u.listen(t,"click",s[17]),m=!0)},p(v,b){b[0]&256&&h!==(h=v[8]("titleSelfExclusion")+"")&&u.set_data(p,h)},d(v){v&&u.detach(t),m=!1,f()}}}function Gc(s){let t,e,o=s[8]("temporarySelfExclusion",{values:{date:s[5]}})+"",i;return{c(){t=u.element("p"),e=u.element("strong"),i=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,i)},p(r,n){n[0]&288&&o!==(o=r[8]("temporarySelfExclusion",{values:{date:r[5]}})+"")&&u.set_data(i,o)},d(r){r&&u.detach(t)}}}function Jc(s){let t,e,o=s[8]("permanentSelfExclusion")+"",i;return{c(){t=u.element("p"),e=u.element("strong"),i=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,i)},p(r,n){n[0]&256&&o!==(o=r[8]("permanentSelfExclusion")+"")&&u.set_data(i,o)},d(r){r&&u.detach(t)}}}function Xc(s){let t,e,o,i,r=s[8]("titleSelfExclusion")+"",n,a,l,c,d=s[8]("selfExclusionText1",{values:{operatorname:s[0]}})+"",h,p,m,f=s[8]("selfExclusionText2")+"",v,b,x,E=s[8]("selfExclusionText3",{values:{operatorname:s[0]}})+"",z,j,I,G=s[8]("selfExclusionText4")+"",ae,be,$,xe,le,qe,U,J,ce=s[8]("duration")+"",we,Ke,L,g,D,T,Ge=s[8]("forever")+"",Ct,$o,Ee,Bo,Je,Ho,Ce,Vo,Xe,Ae,Qe=s[8]("save")+"",At,St,jo,X=s[9]&&Kc(s);function Uo(w,S){return w[4]?Jc:Gc}let Ze=Uo(s),F=Ze(s);return{c(){t=u.element("div"),e=u.element("form"),X&&X.c(),o=u.space(),i=u.element("h2"),n=u.text(r),a=u.space(),l=u.element("div"),c=u.element("p"),h=u.text(d),p=u.space(),m=u.element("p"),v=u.text(f),b=u.space(),x=u.element("p"),z=u.text(E),j=u.space(),I=u.element("p"),ae=u.text(G),be=u.space(),$=u.element("a"),xe=u.text(s[1]),qe=u.space(),U=u.element("div"),J=u.element("label"),we=u.text(ce),Ke=u.space(),L=u.element("vaadin-date-picker"),g=u.space(),D=u.element("div"),T=u.element("label"),Ct=u.text(Ge),$o=u.space(),Ee=u.element("input"),Bo=u.space(),Je=u.element("span"),Ho=u.space(),Ce=u.element("div"),F.c(),Vo=u.space(),Xe=u.element("div"),Ae=u.element("button"),At=u.text(Qe),u.attr(i,"class","PlayerSelfExclusionTitle "+(s[9]?"PlayerSelfExclusionTitleNone":"")+" svelte-1btclz8"),u.attr(c,"class","SelfExclusionDescriptionText"),u.attr(m,"class","SelfExclusionDescriptionText"),u.attr(x,"class","SelfExclusionDescriptionText"),u.attr($,"href",le="mailto:"+s[1]),u.attr($,"class","svelte-1btclz8"),u.attr(I,"class","SelfExclusionDescriptionText"),u.attr(l,"class","SelfExclusionDescription "+(s[9]?"SelfExclusionDescriptionMobile":"")+" svelte-1btclz8"),u.attr(J,"for","SelfExclusionDate"),u.attr(J,"class","svelte-1btclz8"),u.set_custom_element_data(L,"min",s[6]),u.set_custom_element_data(L,"max",s[7]),u.set_custom_element_data(L,"value",s[6]),u.attr(U,"class","SelfExclusionDateWrapper "+(s[9]?"SelfExclusionDateWrapperMobile":"")+" svelte-1btclz8"),u.attr(Ee,"type","Checkbox"),u.attr(Ee,"class","svelte-1btclz8"),u.attr(Je,"class","Checkmark svelte-1btclz8"),u.attr(Je,"part","Checkmark"),u.attr(T,"class","SelfExclusionRadio svelte-1btclz8"),u.attr(D,"class","SelfExclusionRadioWrapper "+(s[9]?"SelfExclusionRadioWrapperMobile":"")+" svelte-1btclz8"),u.attr(Ce,"class","SelfExclusionDescription "+(s[9]?"SelfExclusionDescriptionMobile":"")+" svelte-1btclz8"),u.attr(Ae,"class","SelfExclusionSave svelte-1btclz8"),u.attr(Xe,"class","SelfExclusionActionButtons "+(s[9]?"SelfExclusionActionButtonsMobile":"")+" svelte-1btclz8"),u.attr(e,"class","SelfExclusionWrapper "+(s[9]?"SelfExclusionWrapperMobile":"")+" svelte-1btclz8")},m(w,S){u.insert(w,t,S),u.append(t,e),X&&X.m(e,null),u.append(e,o),u.append(e,i),u.append(i,n),u.append(e,a),u.append(e,l),u.append(l,c),u.append(c,h),u.append(l,p),u.append(l,m),u.append(m,v),u.append(l,b),u.append(l,x),u.append(x,z),u.append(l,j),u.append(l,I),u.append(I,ae),u.append(I,be),u.append(I,$),u.append($,xe),u.append(e,qe),u.append(e,U),u.append(U,J),u.append(J,we),u.append(U,Ke),u.append(U,L),s[18](L),u.append(e,g),u.append(e,D),u.append(D,T),u.append(T,Ct),u.append(T,$o),u.append(T,Ee),u.append(T,Bo),u.append(T,Je),u.append(e,Ho),u.append(e,Ce),F.m(Ce,null),u.append(e,Vo),u.append(e,Xe),u.append(Xe,Ae),u.append(Ae,At),s[21](t),St||(jo=[u.listen(Ee,"click",s[19]),u.listen(Ae,"click",s[20])],St=!0)},p(w,S){w[9]&&X.p(w,S),S[0]&256&&r!==(r=w[8]("titleSelfExclusion")+"")&&u.set_data(n,r),S[0]&257&&d!==(d=w[8]("selfExclusionText1",{values:{operatorname:w[0]}})+"")&&u.set_data(h,d),S[0]&256&&f!==(f=w[8]("selfExclusionText2")+"")&&u.set_data(v,f),S[0]&257&&E!==(E=w[8]("selfExclusionText3",{values:{operatorname:w[0]}})+"")&&u.set_data(z,E),S[0]&256&&G!==(G=w[8]("selfExclusionText4")+"")&&u.set_data(ae,G),S[0]&2&&u.set_data(xe,w[1]),S[0]&2&&le!==(le="mailto:"+w[1])&&u.attr($,"href",le),S[0]&256&&ce!==(ce=w[8]("duration")+"")&&u.set_data(we,ce),S[0]&64&&u.set_custom_element_data(L,"min",w[6]),S[0]&128&&u.set_custom_element_data(L,"max",w[7]),S[0]&64&&u.set_custom_element_data(L,"value",w[6]),S[0]&256&&Ge!==(Ge=w[8]("forever")+"")&&u.set_data(Ct,Ge),Ze===(Ze=Uo(w))&&F?F.p(w,S):(F.d(1),F=Ze(w),F&&(F.c(),F.m(Ce,null))),S[0]&256&&Qe!==(Qe=w[8]("save")+"")&&u.set_data(At,Qe)},i:u.noop,o:u.noop,d(w){w&&u.detach(t),X&&X.d(),s[18](null),F.d(),s[21](null),St=!1,u.run_all(jo)}}}function Qc(s,t,e){let o;u.component_subscribe(s,u.$format,g=>e(8,o=g));let{lang:i="en"}=t,{operator:r="Everymatrix"}=t,{supportemail:n=""}=t,{clientstyling:a=""}=t,{clientstylingurl:l=""}=t,{translationurl:c=""}=t,d,h=window.navigator.userAgent,p=u.getDevice(h)!=="PC",m,f=!1,v="",b="",x=new Date,E,z;const j=()=>{fetch(c).then(D=>D.json()).then(D=>{Object.keys(D).forEach(T=>{Ko(T,D[T])})}).catch(D=>{console.log(D)})};Object.keys(Go).forEach(g=>{Ko(g,Go[g])}),E=qo.hooks(x.setDate(x.getDate())).add(6,"M").format("YYYY-MM-DD"),z=qo.hooks(x.setDate(x.getDate())).add(5,"y").format("YYYY-MM-DD"),b=E;const I=()=>{f==!1?e(4,f=!0):e(4,f=!1)},G=g=>{f==!0?v="SelfExclusionPermanent":(v="SelfExclusionUntilSelectedDate",g&&g.length>0&&e(5,b=g))},ae=g=>{g.preventDefault(),G(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:v,selfExclusionExpiryDate:b},window.location.href)},be=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:p},window.location.href)},$=g=>{G(g.target.value)},xe=()=>{m.addEventListener("change",$,!1)},le=()=>{let g=document.createElement("style");g.innerHTML=a,d.appendChild(g)},qe=()=>{let g=new URL(l),D=document.createElement("style");fetch(g.href).then(T=>T.text()).then(T=>{D.innerHTML=T,setTimeout(()=>{d.appendChild(D)},1)})};u.onMount(()=>()=>{m.removeEventListener("change",$)});const U=()=>{ur(i)},J=()=>be();function ce(g){u.binding_callbacks[g?"unshift":"push"](()=>{m=g,e(3,m)})}const we=()=>I(),Ke=g=>ae(g);function L(g){u.binding_callbacks[g?"unshift":"push"](()=>{d=g,e(2,d)})}return s.$$set=g=>{"lang"in g&&e(13,i=g.lang),"operator"in g&&e(0,r=g.operator),"supportemail"in g&&e(1,n=g.supportemail),"clientstyling"in g&&e(14,a=g.clientstyling),"clientstylingurl"in g&&e(15,l=g.clientstylingurl),"translationurl"in g&&e(16,c=g.translationurl)},s.$$.update=()=>{s.$$.dirty[0]&8&&m&&xe(),s.$$.dirty[0]&8192&&i&&U(),s.$$.dirty[0]&32772&&l&&d&&qe(),s.$$.dirty[0]&16388&&a&&d&&le(),s.$$.dirty[0]&65536&&c&&j()},[r,n,d,m,f,b,E,z,o,p,I,ae,be,i,a,l,c,J,ce,we,Ke,L]}class ir extends u.SvelteComponent{constructor(t){super(),u.init(this,t,Qc,Xc,u.safe_not_equal,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},qc,[-1,-1])}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),u.flush()}get operator(){return this.$$.ctx[0]}set operator(t){this.$$set({operator:t}),u.flush()}get supportemail(){return this.$$.ctx[1]}set supportemail(t){this.$$set({supportemail:t}),u.flush()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),u.flush()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),u.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),u.flush()}}u.create_custom_element(ir,{lang:{},operator:{},supportemail:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=ir;
|