@everymatrix/player-account-controller-nd 1.55.0 → 1.56.0
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-9pZTJKCj.cjs +8 -0
- package/components/{GeneralLogout-Ve_dOAMA.js → GeneralLogout-CqNn1bEG.js} +1081 -1088
- package/components/{GeneralLogout-BZhvD1EQ.js → GeneralLogout-qtT2UsMu.js} +1076 -1083
- package/components/PlayerAccountBettingHistory-BgdXC00n.cjs +1 -0
- package/components/PlayerAccountBettingHistory-CgKp1Tsa.js +329 -0
- package/components/{PlayerAccountBettingHistory-C9n4Lfo3.js → PlayerAccountBettingHistory-DGdU5x1X.js} +130 -134
- package/components/{PlayerAccountBiometrics-BrlNlZ5N.cjs → PlayerAccountBiometrics-8CaZALdD.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-BupiQCMJ.js → PlayerAccountBiometrics-BynUcDER.js} +125 -126
- package/components/{PlayerAccountBiometrics-fQlNKCoA.js → PlayerAccountBiometrics-hfEg8HK3.js} +125 -126
- package/components/{PlayerAccountClosureNd-CEad1veU.js → PlayerAccountClosureNd-BNAxe4kI.js} +127 -128
- package/components/{PlayerAccountClosureNd-DcMOj468.cjs → PlayerAccountClosureNd-BzygnnRL.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-DAFiYifr.js → PlayerAccountClosureNd-C56v4kQH.js} +127 -128
- package/components/{PlayerAccountControllerNd-5BH6GjlH.js → PlayerAccountControllerNd-0Azz2muh.js} +1575 -1049
- package/components/{PlayerAccountControllerNd-BmAwgSdK.js → PlayerAccountControllerNd-CU0CZtN2.js} +1509 -983
- package/components/PlayerAccountControllerNd-DiMI0zck.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-9Stjo0gs.js → PlayerAccountGamingLimits-BUBbpeFt.js} +301 -250
- package/components/PlayerAccountGamingLimits-DoYSa5g4.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-DI0RPgPB.js → PlayerAccountGamingLimits-cGyCwFe3.js} +301 -250
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BzAWyxny.js → PlayerAccountGamingLimitsConfirmationModal-BzxaZ7Sb.js} +127 -131
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DKpr25Aj.js → PlayerAccountGamingLimitsConfirmationModal-CPRvI7h-.js} +127 -131
- package/components/PlayerAccountGamingLimitsConfirmationModal-CUg2My3V.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-Dj2jUWb2.js → PlayerAccountGamingLimitsGroupEdit-BJQil0oW.js} +1073 -1077
- package/components/{PlayerAccountGamingLimitsGroupEdit-DrkoLne8.cjs → PlayerAccountGamingLimitsGroupEdit-ByRLb87-.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-CBViR9JR.js → PlayerAccountGamingLimitsGroupEdit-uRCXqfhe.js} +1073 -1077
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BQRXsnS9.js → PlayerAccountGamingLimitsHistory2Nd-B9FC3C6m.js} +208 -216
- package/components/{PlayerAccountGamingLimitsHistory2Nd-2hdjxCBn.cjs → PlayerAccountGamingLimitsHistory2Nd-Daq9D9so.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BQy_79YQ.js → PlayerAccountGamingLimitsHistory2Nd-wYR_HP23.js} +213 -221
- package/components/{PlayerAccountGamingLimitsInfoCard-StfGgmLs.js → PlayerAccountGamingLimitsInfoCard-DgmJAMo8.js} +639 -588
- package/components/{PlayerAccountGamingLimitsInfoCard-CDFRfVT4.js → PlayerAccountGamingLimitsInfoCard-DvaVcUFe.js} +639 -588
- package/components/PlayerAccountGamingLimitsInfoCard-c0kYK6Z1.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-BDBtHDGH.cjs +21 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B672X-1A.js → PlayerAccountGamingLimitsPage2Gm16Nd-BQeFK7FJ.js} +1043 -1019
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Dz-xK27Q.js → PlayerAccountGamingLimitsPage2Gm16Nd-DJhG-lLb.js} +845 -821
- package/components/{PlayerAccountGamingLimitsPopup-DoLZB2lj.js → PlayerAccountGamingLimitsPopup-BgdXe6lp.js} +116 -120
- package/components/{PlayerAccountGamingLimitsPopup-f9QP34fL.js → PlayerAccountGamingLimitsPopup-BhqEVpIP.js} +116 -120
- package/components/{PlayerAccountGamingLimitsPopup-ChBLdQR7.cjs → PlayerAccountGamingLimitsPopup-CfBYEYKc.cjs} +1 -1
- package/components/PlayerAccountGamingLimitsWrapper2Nd-DnBhGv4Z.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-HNcfKvd3.js +1016 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-bkcZAm71.js +1022 -0
- package/components/{PlayerAccountGeneralConfirmationModal-BlglDNwU.js → PlayerAccountGeneralConfirmationModal-BUSAMIdf.js} +141 -142
- package/components/{PlayerAccountGeneralConfirmationModal-rpOFir4P.js → PlayerAccountGeneralConfirmationModal-BXQQtxIE.js} +141 -142
- package/components/PlayerAccountGeneralConfirmationModal-Dr-ZkTHH.cjs +1 -0
- package/components/PlayerAccountMenuNd-BGd35WSX.js +695 -0
- package/components/PlayerAccountMenuNd-BWzYxwjF.cjs +1 -0
- package/components/PlayerAccountMenuNd-Dw-owOIv.js +694 -0
- package/components/PlayerAccountModal-C7aE-f75.js +209 -0
- package/components/PlayerAccountModal-CLW-XTid.cjs +1 -0
- package/components/PlayerAccountModal-DcQTZlVT.js +209 -0
- package/components/PlayerAccountNotifications-0ecn9JH_.js +369 -0
- package/components/PlayerAccountNotifications-CmSue8JR.cjs +1 -0
- package/components/PlayerAccountNotifications-lv1He1RO.js +368 -0
- package/components/{PlayerAccountSelfExclusionNd-D2JmyzgE.js → PlayerAccountSelfExclusionNd-CsBAGhjI.js} +10893 -11100
- package/components/{PlayerAccountSelfExclusionNd-CM37K9pN.js → PlayerAccountSelfExclusionNd-DRQwA-0O.js} +10812 -11065
- package/components/PlayerAccountSelfExclusionNd-TZyj4_3a.cjs +3557 -0
- package/components/PlayerAccountTimeout-BDvJp_Zk.cjs +1 -0
- package/components/{PlayerAccountTimeout-B0zaqo1v.js → PlayerAccountTimeout-C0WAFaPW.js} +498 -367
- package/components/{PlayerAccountTimeout-BO3G2t3W.js → PlayerAccountTimeout-CixN4uD5.js} +498 -367
- package/components/PlayerActiveBonuses-BAx9d0pm.js +1055 -0
- package/components/PlayerActiveBonuses-CbJliQvN.js +1056 -0
- package/components/PlayerActiveBonuses-DTgD47j8.cjs +1 -0
- package/components/{PlayerBonusCard-BC8FfHZz.cjs → PlayerBonusCard-5gtng8cd.cjs} +1 -1
- package/components/{PlayerBonusCard-9LZmOSI1.js → PlayerBonusCard-BiVG3k7R.js} +166 -168
- package/components/{PlayerBonusCard-BvrlU7Ao.js → PlayerBonusCard-DnyVL-Cb.js} +166 -168
- package/components/PlayerBonusHistory-CaiqLQk_.js +938 -0
- package/components/PlayerBonusHistory-DA8a2ZnE.js +937 -0
- package/components/PlayerBonusHistory-rLGeO078.cjs +1 -0
- package/components/{PlayerChangePassword-CzR4Xz0H.cjs → PlayerChangePassword-BsM1lBfW.cjs} +2 -2
- package/components/{PlayerChangePassword-BsQyz4Qc.js → PlayerChangePassword-DsR4BO-Y.js} +383 -387
- package/components/{PlayerChangePassword-BcoctDrY.js → PlayerChangePassword-dEL-0H2u.js} +383 -387
- package/components/PlayerDeposit-0eaqfWH1.cjs +1 -0
- package/components/PlayerDeposit-D_Ujmr4j.js +391 -0
- package/components/PlayerDeposit-IS6_f845.js +391 -0
- package/components/PlayerGamingHistory-BRstQCWo.cjs +1 -0
- package/components/{PlayerGamingHistory-B1Q3Qiuk.js → PlayerGamingHistory-BYRzcRjb.js} +348 -352
- package/components/{PlayerGamingHistory-DUCP4vWS.js → PlayerGamingHistory-GGgBAhXX.js} +373 -377
- package/components/PlayerPendingWithdrawals-CaoLTPFk.js +310 -0
- package/components/PlayerPendingWithdrawals-M9Wq9w2M.js +310 -0
- package/components/PlayerPendingWithdrawals-qMs8We3P.cjs +1 -0
- package/components/PlayerProfileInfo-B4pkapUi.js +1821 -0
- package/components/PlayerProfileInfo-Cr6m7e2V.js +1804 -0
- package/components/PlayerProfileInfo-Mqg0xIQD.cjs +1 -0
- package/components/PlayerRealityCheck-B9LHSWRj.js +652 -0
- package/components/PlayerRealityCheck-CMKhVVBJ.js +668 -0
- package/components/PlayerRealityCheck-DoXLoM9G.cjs +1 -0
- package/components/PlayerTransactionHistory-BaALuJRH.js +314 -0
- package/components/PlayerTransactionHistory-BqEXyDt-.cjs +1 -0
- package/components/PlayerTransactionHistory-CYob92HC.js +314 -0
- package/components/PlayerWithdrawal-1i-tYxaO.cjs +1 -0
- package/components/{PlayerWithdrawal-jGmMHcUX.js → PlayerWithdrawal-CNDRfeXy.js} +137 -141
- package/components/{PlayerWithdrawal-wi9yuRxw.js → PlayerWithdrawal-U9E0FEDt.js} +137 -141
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
- package/stencil/{checkbox-group-input_9-DZvX2H_r.js → checkbox-group-input_9-B_RfUM6E.js} +3279 -2404
- package/stencil/checkbox-group-input_9-C2IUNSpC.cjs +2045 -0
- package/stencil/{checkbox-group-input_9-Cny9rOs9.js → checkbox-group-input_9-C98yT4vw.js} +3348 -2459
- package/stencil/{general-input-Yj_LRx0v.js → general-input-CqTf7ErJ.js} +6 -6
- package/stencil/{general-input-d5RULL12.js → general-input-DTHw5Z1Q.js} +6 -6
- package/stencil/general-input-wM2i7b57.cjs +1 -0
- package/stencil/index-92b64862-BRYoLHww.cjs +1 -0
- package/stencil/index-92b64862-C_69cKxK.js +708 -0
- package/stencil/index-92b64862-w9a1l35N.js +692 -0
- package/stencil/index-db5752f9-DlyF6uv8.js +594 -0
- package/stencil/index-db5752f9-DrdunCay.js +610 -0
- package/stencil/index-db5752f9-dFKrDpwt.cjs +1 -0
- package/stencil/password-input_2-B2qvf6ku.cjs +105 -0
- package/stencil/password-input_2-CdHS5fmR.js +569 -0
- package/stencil/password-input_2-DdQvCp3o.js +569 -0
- package/stencil/{player-change-password-gm2-780eb445-Cg8Z75Vz.js → player-change-password-gm2-38dff08c-BNhjxr22.js} +85 -66
- package/stencil/{player-change-password-gm2-780eb445-DEjz9Jjk.js → player-change-password-gm2-38dff08c-CPRdwVFF.js} +85 -66
- package/stencil/player-change-password-gm2-38dff08c-DnYXSeKg.cjs +1 -0
- package/stencil/player-change-password-gm2-Cxdum0Hh.js +25 -0
- package/stencil/player-change-password-gm2-DJqZO25d.cjs +1 -0
- package/stencil/player-change-password-gm2-DWoAaJ2f.js +7 -0
- package/stencil/{toggle-checkbox-input-ErX2Ngat.js → toggle-checkbox-input-B4OOk9wz.js} +7 -7
- package/stencil/{toggle-checkbox-input-Co64_7cm.js → toggle-checkbox-input-Cwo_Ny77.js} +7 -7
- package/stencil/toggle-checkbox-input-tQDhlcag.cjs +1 -0
- package/stencil/ui-skeleton-982450d2-BKnKTh4c.js +122 -0
- package/stencil/ui-skeleton-982450d2-DDIv0--Q.cjs +1 -0
- package/stencil/ui-skeleton-982450d2-DQzKNKe8.js +122 -0
- package/stencil/ui-skeleton-BL5JJXyn.js +11 -0
- package/stencil/ui-skeleton-CGldUjn2.js +29 -0
- package/stencil/ui-skeleton-ITys8nIA.cjs +1 -0
- package/stencil/{vaadin-button-6001b2a6-Dqz5Vp8D.js → vaadin-button-mixin-ef61174c-B_vhSFKU.js} +8177 -8813
- package/stencil/vaadin-button-mixin-ef61174c-DuDVejN4.cjs +2385 -0
- package/stencil/{vaadin-button-6001b2a6-CZwj1qjO.js → vaadin-button-mixin-ef61174c-EQiVsI4x.js} +6270 -6860
- package/components/GeneralLogout-BW6b3iuS.cjs +0 -8
- package/components/PlayerAccountBettingHistory-BsFzBNDY.cjs +0 -1
- package/components/PlayerAccountBettingHistory-QT3-2u7E.js +0 -333
- package/components/PlayerAccountControllerNd-CO0ce0zs.cjs +0 -1
- package/components/PlayerAccountGamingLimits-BPQrptbd.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-IgBYV9F2.cjs +0 -1
- package/components/PlayerAccountGamingLimitsInfoCard-BOls7ahz.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DSThp4HX.cjs +0 -21
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Bz6Zp5tp.js +0 -865
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Cq5vxtjw.js +0 -871
- package/components/PlayerAccountGamingLimitsWrapper2Nd-KUpEDIP8.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-BpTCzpiW.cjs +0 -1
- package/components/PlayerAccountMenuNd-BWUhUlIY.js +0 -590
- package/components/PlayerAccountMenuNd-BmPerb2f.cjs +0 -1
- package/components/PlayerAccountMenuNd-CxMlvYwa.js +0 -589
- package/components/PlayerAccountModal-BK81ZotM.js +0 -213
- package/components/PlayerAccountModal-C7aZZlBw.cjs +0 -1
- package/components/PlayerAccountModal-CzVRNZzB.js +0 -213
- package/components/PlayerAccountNotifications-BBwUcB1T.js +0 -261
- package/components/PlayerAccountNotifications-CB47Zxq9.js +0 -261
- package/components/PlayerAccountNotifications-DkgHtUGj.cjs +0 -1
- package/components/PlayerAccountSelfExclusionNd-DCsOgBZR.cjs +0 -4171
- package/components/PlayerAccountTimeout-Dg5Mlz5K.cjs +0 -1
- package/components/PlayerActiveBonuses-B9jz3QD8.cjs +0 -1
- package/components/PlayerActiveBonuses-CfZ8tegY.js +0 -1037
- package/components/PlayerActiveBonuses-DkKDWhBN.js +0 -1038
- package/components/PlayerBonusHistory-Bsy2Grk6.js +0 -919
- package/components/PlayerBonusHistory-CuSbmVev.cjs +0 -1
- package/components/PlayerBonusHistory-nN8l2tOZ.js +0 -920
- package/components/PlayerDeposit-BIBRCGiC.js +0 -414
- package/components/PlayerDeposit-B_7saxic.js +0 -414
- package/components/PlayerDeposit-D_78W5GC.cjs +0 -1
- package/components/PlayerGamingHistory-CNPhCSFS.cjs +0 -1
- package/components/PlayerPendingWithdrawals-BG3I8ifu.cjs +0 -1
- package/components/PlayerPendingWithdrawals-C8jyjgZ0.js +0 -311
- package/components/PlayerPendingWithdrawals-wMhZTLpq.js +0 -311
- package/components/PlayerProfileInfo-CGsJydqv.cjs +0 -1
- package/components/PlayerProfileInfo-EkbwdTEh.js +0 -1757
- package/components/PlayerProfileInfo-SeOQq0CG.js +0 -1740
- package/components/PlayerRealityCheck--iYjw4rP.js +0 -598
- package/components/PlayerRealityCheck-BGGIPihT.js +0 -582
- package/components/PlayerRealityCheck-C26ZBWae.cjs +0 -1
- package/components/PlayerTransactionHistory-CJqhYnbs.cjs +0 -1
- package/components/PlayerTransactionHistory-CvBbrQn6.js +0 -315
- package/components/PlayerTransactionHistory-DIfTIxF3.js +0 -315
- package/components/PlayerWithdrawal-GDc_7hZX.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/checkbox-group-input_9-FLO2Qa5Y.cjs +0 -2104
- package/stencil/general-input-igTYIJ6W.cjs +0 -1
- package/stencil/index-72d2f0c7--qtpsDOz.js +0 -642
- package/stencil/index-72d2f0c7-DldCMjBJ.cjs +0 -1
- package/stencil/index-72d2f0c7-DyMEJXra.js +0 -626
- package/stencil/password-input_2-CHOu4hgw.js +0 -1420
- package/stencil/password-input_2-DQAgV1SZ.cjs +0 -896
- package/stencil/password-input_2-DaiHlKbQ.js +0 -1420
- package/stencil/player-change-password-gm2-780eb445-CdItmoKI.cjs +0 -1
- package/stencil/player-change-password-gm2-ClBiis4q.js +0 -25
- package/stencil/player-change-password-gm2-Dt0gP_G_.cjs +0 -1
- package/stencil/player-change-password-gm2-cKh7RACV.js +0 -7
- package/stencil/toggle-checkbox-input-a_0w-Y0n.cjs +0 -1
- package/stencil/vaadin-button-6001b2a6-C6xw53k5.cjs +0 -3018
|
@@ -1,3018 +0,0 @@
|
|
|
1
|
-
"use strict";var Dr=Object.defineProperty,$r=Object.defineProperties;var Lr=Object.getOwnPropertyDescriptors;var Re=Object.getOwnPropertySymbols;var Rr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable;var Be=(o,t,e)=>t in o?Dr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,Mt=(o,t)=>{for(var e in t||(t={}))Rr.call(t,e)&&Be(o,e,t[e]);if(Re)for(var e of Re(t))Br.call(t,e)&&Be(o,e,t[e]);return o},It=(o,t)=>$r(o,Lr(t));var Fe=(o,t,e)=>new Promise((s,r)=>{var i=l=>{try{a(e.next(l))}catch(c){r(c)}},n=l=>{try{a(e.throw(l))}catch(c){r(c)}},a=l=>l.done?s(l.value):Promise.resolve(l.value).then(i,n);a((e=e.apply(o,t)).next())});/**
|
|
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 Y(o){const t=customElements.get(o.is);if(!t)customElements.define(o.is,o);else{const e=t.version;e&&o.version&&e===o.version?console.warn(`The component ${o.is} has been loaded twice`):console.error(`Tried to define ${o.is} version ${o.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
|
-
*/class Fr extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}Y(Fr);/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright 2019 Google LLC
|
|
12
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const mt=window,he=mt.ShadowRoot&&(mt.ShadyCSS===void 0||mt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pe=Symbol(),Ue=new WeakMap;class me{constructor(t,e,s){if(this._$cssResult$=!0,s!==pe)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(he&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Ue.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Ue.set(e,t))}return t}toString(){return this.cssText}}const Ur=o=>new me(typeof o=="string"?o:o+"",void 0,pe),m=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1],o[0]);return new me(e,o,pe)},Hr=(o,t)=>{he?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),r=mt.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)})},He=he?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Ur(e)})(o):o;/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright 2017 Google LLC
|
|
16
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/var Dt;const gt=window,Ve=gt.trustedTypes,Vr=Ve?Ve.emptyScript:"",je=gt.reactiveElementPolyfillSupport,Jt={toAttribute(o,t){switch(t){case Boolean:o=o?Vr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(s){e=null}}return e}},Co=(o,t)=>t!==o&&(t==t||o==o),$t={attribute:!0,type:String,converter:Jt,reflect:!1,hasChanged:Co},Zt="finalized";class R 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,s)=>{const r=this._$Ep(s,e);r!==void 0&&(this._$Ev.set(r,s),t.push(r))}),t}static createProperty(t,e=$t){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,s,e);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(r){const i=this[t];this[e]=r,this.requestUpdate(t,i,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$t}static finalize(){if(this.hasOwnProperty(Zt))return!1;this[Zt]=!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,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of s)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(He(r))}else t!==void 0&&e.push(He(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.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 Hr(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 s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=$t){var r;const i=this.constructor._$Ep(t,s);if(i!==void 0&&s.reflect===!0){const n=(((r=s.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?s.converter:Jt).toAttribute(e,s.type);this._$El=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$El=null}}_$AK(t,e){var s;const r=this.constructor,i=r._$Ev.get(t);if(i!==void 0&&this._$El!==i){const n=r.getPropertyOptions(i),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:Jt;this._$El=i,this[i]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,s){let r=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Co)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}_$Ej(){return Fe(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._$Ei&&(this._$Ei.forEach((r,i)=>this[i]=r),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostUpdate)===null||i===void 0?void 0:i.call(r)}),this.update(s)):this._$Ek()}catch(r){throw e=!1,this._$Ek(),r}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var r;return(r=s.hostUpdated)===null||r===void 0?void 0:r.call(s)}),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,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}R[Zt]=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},je==null||je({ReactiveElement:R}),((Dt=gt.reactiveElementVersions)!==null&&Dt!==void 0?Dt:gt.reactiveElementVersions=[]).push("1.6.3");/**
|
|
18
|
-
* @license
|
|
19
|
-
* Copyright 2017 Google LLC
|
|
20
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var Lt;const vt=window,H=vt.trustedTypes,qe=H?H.createPolicy("lit-html",{createHTML:o=>o}):void 0,Xt="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,Eo="?"+S,jr=`<${Eo}>`,D=document,et=()=>D.createComment(""),ot=o=>o===null||typeof o!="object"&&typeof o!="function",Po=Array.isArray,qr=o=>Po(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Rt=`[
|
|
22
|
-
\f\r]`,W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ye=/-->/g,Ge=/>/g,O=RegExp(`>|${Rt}(?:([^\\s"'>=/]+)(${Rt}*=${Rt}*(?:[^
|
|
23
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),We=/'/g,Ke=/"/g,To=/^(?:script|style|textarea|title)$/i,V=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Je=new WeakMap,z=D.createTreeWalker(D,129,null,!1);function So(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return qe!==void 0?qe.createHTML(t):t}const Yr=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":"",n=W;for(let a=0;a<e;a++){const l=o[a];let c,u,d=-1,h=0;for(;h<l.length&&(n.lastIndex=h,u=n.exec(l),u!==null);)h=n.lastIndex,n===W?u[1]==="!--"?n=Ye:u[1]!==void 0?n=Ge:u[2]!==void 0?(To.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=O):u[3]!==void 0&&(n=O):n===O?u[0]===">"?(n=r!=null?r:W,d=-1):u[1]===void 0?d=-2:(d=n.lastIndex-u[2].length,c=u[1],n=u[3]===void 0?O:u[3]==='"'?Ke:We):n===Ke||n===We?n=O:n===Ye||n===Ge?n=W:(n=O,r=void 0);const p=n===O&&o[a+1].startsWith("/>")?" ":"";i+=n===W?l+jr:d>=0?(s.push(c),l.slice(0,d)+Xt+l.slice(d)+S+p):l+S+(d===-2?(s.push(void 0),a):p)}return[So(o,i+(o[e]||"<?>")+(t===2?"</svg>":"")),s]};class rt{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[c,u]=Yr(t,e);if(this.el=rt.createElement(c,s),z.currentNode=this.el.content,e===2){const d=this.el.content,h=d.firstChild;h.remove(),d.append(...h.childNodes)}for(;(r=z.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){const d=[];for(const h of r.getAttributeNames())if(h.endsWith(Xt)||h.startsWith(S)){const p=u[n++];if(d.push(h),p!==void 0){const _=r.getAttribute(p.toLowerCase()+Xt).split(S),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:b[2],strings:_,ctor:b[1]==="."?Wr:b[1]==="?"?Jr:b[1]==="@"?Zr:At})}else l.push({type:6,index:i})}for(const h of d)r.removeAttribute(h)}if(To.test(r.tagName)){const d=r.textContent.split(S),h=d.length-1;if(h>0){r.textContent=H?H.emptyScript:"";for(let p=0;p<h;p++)r.append(d[p],et()),z.nextNode(),l.push({type:2,index:++i});r.append(d[h],et())}}}else if(r.nodeType===8)if(r.data===Eo)l.push({type:2,index:i});else{let d=-1;for(;(d=r.data.indexOf(S,d+1))!==-1;)l.push({type:7,index:i}),d+=S.length-1}i++}}static createElement(t,e){const s=D.createElement("template");return s.innerHTML=t,s}}function j(o,t,e=o,s){var r,i,n,a;if(t===V)return t;let l=s!==void 0?(r=e._$Co)===null||r===void 0?void 0:r[s]:e._$Cl;const c=ot(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((i=l==null?void 0:l._$AO)===null||i===void 0||i.call(l,!1),c===void 0?l=void 0:(l=new c(o),l._$AT(o,e,s)),s!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[s]=l:e._$Cl=l),l!==void 0&&(t=j(o,l._$AS(o,t.values),l,s)),t}class Gr{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:s},parts:r}=this._$AD,i=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:D).importNode(s,!0);z.currentNode=i;let n=z.nextNode(),a=0,l=0,c=r[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new ut(n,n.nextSibling,this,t):c.type===1?u=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(u=new Xr(n,this,t)),this._$AV.push(u),c=r[++l]}a!==(c==null?void 0:c.index)&&(n=z.nextNode(),a++)}return z.currentNode=D,i}v(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class ut{constructor(t,e,s,r){var i;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cp=(i=r==null?void 0:r.isConnected)===null||i===void 0||i}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=j(this,t,e),ot(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==V&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):qr(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!==g&&ot(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){var e;const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=rt.createElement(So(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===i)this._$AH.v(s);else{const n=new Gr(i,this),a=n.u(this.options);n.v(s),this.$(a),this._$AH=n}}_$AC(t){let e=Je.get(t.strings);return e===void 0&&Je.set(t.strings,e=new rt(t)),e}T(t){Po(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new ut(this.k(et()),this.k(et()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class At{constructor(t,e,s,r,i){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=g}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=j(this,t,e,0),n=!ot(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const a=t;let l,c;for(t=i[0],l=0;l<i.length-1;l++)c=j(this,a[s+l],e,l),c===V&&(c=this._$AH[l]),n||(n=!ot(c)||c!==this._$AH[l]),c===g?t=g:t!==g&&(t+=(c!=null?c:"")+i[l+1]),this._$AH[l]=c}n&&!r&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Wr extends At{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}}const Kr=H?H.emptyScript:"";class Jr extends At{constructor(){super(...arguments),this.type=4}j(t){t&&t!==g?this.element.setAttribute(this.name,Kr):this.element.removeAttribute(this.name)}}class Zr extends At{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){var s;if((t=(s=j(this,t,e,0))!==null&&s!==void 0?s:g)===V)return;const r=this._$AH,i=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==g&&(r===g||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class Xr{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){j(this,t)}}const Ze=vt.litHtmlPolyfillSupport;Ze==null||Ze(rt,ut),((Lt=vt.litHtmlVersions)!==null&&Lt!==void 0?Lt:vt.litHtmlVersions=[]).push("2.8.0");const Qr=(o,t,e)=>{var s,r;const i=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:t;let n=i._$litPart$;if(n===void 0){const a=(r=e==null?void 0:e.renderBefore)!==null&&r!==void 0?r:null;i._$litPart$=n=new ut(t.insertBefore(et(),a),a,void 0,e!=null?e:{})}return n._$AI(o),n};/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2017 Google LLC
|
|
26
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/var Bt,Ft;class ft extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Qr(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 V}}ft.finalized=!0,ft._$litElement$=!0,(Bt=globalThis.litElementHydrateSupport)===null||Bt===void 0||Bt.call(globalThis,{LitElement:ft});const Xe=globalThis.litElementPolyfillSupport;Xe==null||Xe({LitElement:ft});((Ft=globalThis.litElementVersions)!==null&&Ft!==void 0?Ft: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 ts=o=>class extends o{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,s,r){super.attributeChangedCallback(e,s,r),e==="theme"&&this._set_theme(r)}};/**
|
|
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 No=[];function ko(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function es(o){return ko(customElements.get(o))}function os(o=[]){return[o].flat(1/0).filter(t=>t instanceof me?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function C(o,t,e={}){o&&es(o)&&console.warn(`The custom element definition for "${o}"
|
|
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=os(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):No.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId})}function Qt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():No}function rs(o,t){return(o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function ss(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function Oo(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const s=Qt().find(r=>r.moduleId===e);s?t.push(...Oo(s),...s.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function is(o,t){const e=document.createElement("style");e.innerHTML=o.map(s=>s.cssText).join(`
|
|
39
|
-
`),t.content.appendChild(e)}function ns(o){const t=`${o}-default-theme`,e=Qt().filter(s=>s.moduleId!==t&&rs(s.themeFor,o)).map(s=>It(Mt({},s),{styles:[...Oo(s),...s.styles],includePriority:ss(s.moduleId)})).sort((s,r)=>r.includePriority-s.includePriority);return e.length>0?e:Qt().filter(s=>s.moduleId===t)}const fe=o=>class extends ts(o){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||ko(this)||is(this.getStylesForThis(),e)}static finalizeStyles(e){const s=this.getStylesForThis();return e?[...super.finalizeStyles(e),...s]:s}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),s=(e?e.constructor.__themes:[])||[];this.__themes=[...s,...ns(this.is)];const r=this.__themes.flatMap(i=>i.styles);return r.filter((i,n)=>n===r.lastIndexOf(i))}};/**
|
|
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 Ct=(o,...t)=>{const e=document.createElement("style");e.id=o,e.textContent=t.map(s=>s.toString()).join(`
|
|
44
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Et=(o,...t)=>{Ct(`lumo-${o}`,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 as=m`
|
|
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
|
-
`;Et("color-props",as);const ls=m`
|
|
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("",ls,{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 cs=m`
|
|
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
|
-
`;Et("sizing-props",cs);/**
|
|
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 us=m`
|
|
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
|
-
`;m`
|
|
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
|
-
`;Et("style-props",us);/**
|
|
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 ds=m`
|
|
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
|
-
`,hs=m`
|
|
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("",hs,{moduleId:"lumo-typography"});Et("typography-props",ds);C("vaadin-input-container",m`
|
|
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(o,t){return o};/**
|
|
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 ps=/(url\()([^)]*)(\))/g,ms=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ht,A;function tt(o,t){if(o&&ms.test(o)||o==="//")return o;if(ht===void 0){ht=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ht=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),ht)try{return new URL(o,t).href}catch(e){return o}return A||(A=document.implementation.createHTMLDocument("temp"),A.base=A.createElement("base"),A.head.appendChild(A.base),A.anchor=A.createElement("a"),A.body.appendChild(A.anchor)),A.base.href=t,A.anchor.href=o,A.anchor.href||o}function _e(o,t){return o.replace(ps,function(e,s,r,i){return s+"'"+tt(r.replace(/["']/g,""),t)+"'"+i})}function ge(o){return o.substring(0,o.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 zo=!window.ShadyDOM||!window.ShadyDOM.inUse,fs=zo&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let _s=window.Polymer&&window.Polymer.rootPath||ge(document.baseURI||window.location.href),bt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,yt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,gs=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Mo=window.Polymer&&window.Polymer.legacyOptimizations||!1,Io=window.Polymer&&window.Polymer.legacyWarnings||!1,vs=window.Polymer&&window.Polymer.syncInitialRender||!1,te=window.Polymer&&window.Polymer.legacyUndefined||!1,bs=window.Polymer&&window.Polymer.orderedComputed||!1,Qe=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ys=window.Polymer&&window.Polymer.fastDomIf||!1,xs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,ws=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 As=0;const v=function(o){let t=o.__mixinApplications;t||(t=new WeakMap,o.__mixinApplications=t);let e=As++;function s(r){let i=r.__mixinSet;if(i&&i[e])return r;let n=t,a=n.get(r);if(!a){a=o(r),n.set(r,a);let l=Object.create(a.__mixinSet||i||null);l[e]=!0,a.__mixinSet=l}return a}return s};/**
|
|
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 ve={},Do={};function to(o,t){ve[o]=Do[o.toLowerCase()]=t}function eo(o){return ve[o]||Do[o.toLowerCase()]}function Cs(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class st extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let s=eo(t);return s&&e?s.querySelector(e):s}return null}attributeChangedCallback(t,e,s,r){e!==s&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=tt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ge(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(yt&&eo(t)!==void 0)throw to(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,to(t,this),Cs(this)}}}st.prototype.modules=ve;customElements.define("dom-module",st);/**
|
|
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 Es="link[rel=import][type~=css]",Ps="include",oo="shady-unscoped";function $o(o){return st.import(o)}function ro(o){let t=o.body?o.body:o;const e=_e(t.textContent,o.baseURI),s=document.createElement("style");return s.textContent=e,s}function Ts(o){const t=o.trim().split(/\s+/),e=[];for(let s=0;s<t.length;s++)e.push(...Ss(t[s]));return e}function Ss(o){const t=$o(o);if(!t)return console.warn("Could not find style data in module named",o),[];if(t._styles===void 0){const e=[];e.push(...Ro(t));const s=t.querySelector("template");s&&e.push(...Lo(s,t.assetpath)),t._styles=e}return t._styles}function Lo(o,t){if(!o._styles){const e=[],s=o.content.querySelectorAll("style");for(let r=0;r<s.length;r++){let i=s[r],n=i.getAttribute(Ps);n&&e.push(...Ts(n).filter(function(a,l,c){return c.indexOf(a)===l})),t&&(i.textContent=_e(i.textContent,t)),e.push(i)}o._styles=e}return o._styles}function Ns(o){let t=$o(o);return t?Ro(t):[]}function Ro(o){const t=[],e=o.querySelectorAll(Es);for(let s=0;s<e.length;s++){let r=e[s];if(r.import){const i=r.import,n=r.hasAttribute(oo);if(n&&!i._unscopedStyle){const a=ro(i);a.setAttribute(oo,""),i._unscopedStyle=a}else i._style||(i._style=ro(i));t.push(n?i._unscopedStyle:i._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 N=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?o=>ShadyDOM.patch(o):o=>o;/**
|
|
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 ee(o){return o.indexOf(".")>=0}function $(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function Bo(o,t){return o.indexOf(t+".")===0}function it(o,t){return t.indexOf(o+".")===0}function nt(o,t,e){return t+e.slice(o.length)}function ks(o,t){return o===t||Bo(o,t)||it(o,t)}function X(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let s=o[e].toString().split(".");for(let r=0;r<s.length;r++)t.push(s[r])}return t.join(".")}else return o}function Fo(o){return Array.isArray(o)?X(o).split("."):o.toString().split(".")}function y(o,t,e){let s=o,r=Fo(t);for(let i=0;i<r.length;i++){if(!s)return;let n=r[i];s=s[n]}return e&&(e.path=r.join(".")),s}function so(o,t,e){let s=o,r=Fo(t),i=r[r.length-1];if(r.length>1){for(let n=0;n<r.length-1;n++){let a=r[n];if(s=s[a],!s)return}s[i]=e}else s[t]=e;return r.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 xt={},Os=/-[a-z]/g,zs=/([A-Z])/g;function Uo(o){return xt[o]||(xt[o]=o.indexOf("-")<0?o:o.replace(Os,t=>t[1].toUpperCase()))}function Pt(o){return xt[o]||(xt[o]=o.replace(zs,"-$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 Ms=0,Ho=0,B=[],Is=0,oe=!1,Vo=document.createTextNode("");new window.MutationObserver(Ds).observe(Vo,{characterData:!0});function Ds(){oe=!1;const o=B.length;for(let t=0;t<o;t++){let e=B[t];if(e)try{e()}catch(s){setTimeout(()=>{throw s})}}B.splice(0,o),Ho+=o}const $s={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},jo={run(o){return oe||(oe=!0,Vo.textContent=Is++),B.push(o),Ms++},cancel(o){const t=o-Ho;if(t>=0){if(!B[t])throw new Error("invalid async handle: "+o);B[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 Ls=jo,qo=v(o=>{class t extends o{static createProperties(s){const r=this.prototype;for(let i in s)i in r||r._createPropertyAccessor(i)}static attributeNameForProperty(s){return s.toLowerCase()}static typeForProperty(s){}_createPropertyAccessor(s,r){this._addPropertyToAttributeMap(s),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[s]||(this.__dataHasAccessor[s]=!0,this._definePropertyAccessor(s,r))}_addPropertyToAttributeMap(s){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let r=this.__dataAttributes[s];return r||(r=this.constructor.attributeNameForProperty(s),this.__dataAttributes[r]=s),r}_definePropertyAccessor(s,r){Object.defineProperty(this,s,{get(){return this.__data[s]},set:r?function(){}:function(i){this._setPendingProperty(s,i,!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 s in this.__dataHasAccessor)this.hasOwnProperty(s)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[s]=this[s],delete this[s])}_initializeInstanceProperties(s){Object.assign(this,s)}_setProperty(s,r){this._setPendingProperty(s,r)&&this._invalidateProperties()}_getProperty(s){return this.__data[s]}_setPendingProperty(s,r,i){let n=this.__data[s],a=this._shouldPropertyChange(s,r,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(s in this.__dataOld)&&(this.__dataOld[s]=n),this.__data[s]=r,this.__dataPending[s]=r),a}_isPropertyPending(s){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(s))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ls.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 s=this.__data,r=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(s,r,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(s,r,i)),this.__dataCounter--}_shouldPropertiesChange(s,r,i){return!!r}_propertiesChanged(s,r,i){}_shouldPropertyChange(s,r,i){return i!==r&&(i===i||r===r)}attributeChangedCallback(s,r,i,n){r!==i&&this._attributeToProperty(s,i),super.attributeChangedCallback&&super.attributeChangedCallback(s,r,i,n)}_attributeToProperty(s,r,i){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[s]||s;this[a]=this._deserializeValue(r,i||this.constructor.typeForProperty(a))}}_propertyToAttribute(s,r,i){this.__serializing=!0,i=arguments.length<3?this[s]:i,this._valueToNodeAttribute(this,i,r||this.constructor.attributeNameForProperty(s)),this.__serializing=!1}_valueToNodeAttribute(s,r,i){const n=this._serializeValue(r);(i==="class"||i==="name"||i==="slot")&&(s=N(s)),n===void 0?s.removeAttribute(i):s.setAttribute(i,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(s){switch(typeof s){case"boolean":return s?"":void 0;default:return s!=null?s.toString():void 0}}_deserializeValue(s,r){switch(r){case Boolean:return s!==null;case Number:return Number(s);default:return s}}}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 Yo={};let pt=HTMLElement.prototype;for(;pt;){let o=Object.getOwnPropertyNames(pt);for(let t=0;t<o.length;t++)Yo[o[t]]=!0;pt=Object.getPrototypeOf(pt)}const Rs=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function Bs(o,t){if(!Yo[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const Fs=v(o=>{const t=qo(o);class e extends t{static createPropertiesForAttributes(){let r=this.observedAttributes;for(let i=0;i<r.length;i++)this.prototype._createPropertyAccessor(Uo(r[i]))}static attributeNameForProperty(r){return Pt(r)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(r){for(let i in r)this._setProperty(i,r[i])}_ensureAttribute(r,i){const n=this;n.hasAttribute(r)||this._valueToNodeAttribute(n,i,r)}_serializeValue(r){switch(typeof r){case"object":if(r instanceof Date)return r.toString();if(r){if(Rs(r))return r;try{return JSON.stringify(r)}catch(i){return""}}default:return super._serializeValue(r)}}_deserializeValue(r,i){let n;switch(i){case Object:try{n=JSON.parse(r)}catch(a){n=r}break;case Array:try{n=JSON.parse(r)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${r}`)}break;case Date:n=isNaN(r)?String(r):Number(r),n=new Date(n);break;default:n=super._deserializeValue(r,i);break}return n}_definePropertyAccessor(r,i){Bs(this,r),super._definePropertyAccessor(r,i)}_hasAccessor(r){return this.__dataHasAccessor&&this.__dataHasAccessor[r]}_isPropertyPending(r){return!!(this.__dataPending&&r 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 Us={"dom-if":!0,"dom-repeat":!0};let io=!1,no=!1;function Hs(){if(!io){io=!0;const o=document.createElement("textarea");o.placeholder="a",no=o.placeholder===o.textContent}return no}function Vs(o){Hs()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const js=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,s)=>{const r=e.getAttribute(s);if(o&&s.startsWith("on-")){t.setAttribute(s,o.createScript(r,s));return}t.setAttribute(s,r)}})();function qs(o){let t=o.getAttribute("is");if(t&&Us[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:s}=e.attributes[0];js(o,e,s),e.removeAttribute(s)}}return o}function Go(o,t){let e=t.parentInfo&&Go(o,t.parentInfo);if(e){for(let s=e.firstChild,r=0;s;s=s.nextSibling)if(t.parentIndex===r++)return s}else return o}function Ys(o,t,e,s){s.id&&(t[s.id]=e)}function Gs(o,t,e){if(e.events&&e.events.length)for(let s=0,r=e.events,i;s<r.length&&(i=r[s]);s++)o._addMethodEventListenerToNode(t,i.name,i.value,o)}function Ws(o,t,e,s){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=s)}function Ks(o,t,e){return o=o._methodHost||o,function(r){o[e]?o[e](r,r.detail):console.warn("listener method `"+e+"` not defined")}}const Js=v(o=>{class t extends o{static _parseTemplate(s,r){if(!s._templateInfo){let i=s._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=!!r,i.stripWhiteSpace=r&&r.stripWhiteSpace||s.hasAttribute&&s.hasAttribute("strip-whitespace"),this._parseTemplateContent(s,i,{parent:null})}return s._templateInfo}static _parseTemplateContent(s,r,i){return this._parseTemplateNode(s.content,r,i)}static _parseTemplateNode(s,r,i){let n=!1,a=s;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,r,i)||n:a.localName==="slot"&&(r.hasInsertionPoint=!0),Vs(a),a.firstChild&&this._parseTemplateChildNodes(a,r,i),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,r,i)||n),n||i.noted}static _parseTemplateChildNodes(s,r,i){if(!(s.localName==="script"||s.localName==="style"))for(let n=s.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=qs(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,s.removeChild(u),u=l;if(r.stripWhiteSpace&&!n.textContent.trim()){s.removeChild(n);continue}}let c={parentIndex:a,parentInfo:i};this._parseTemplateNode(n,r,c)&&(c.infoIndex=r.nodeInfoList.push(c)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(s,r,i){let n=s,a=this._parseTemplate(n,r);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),i.templateInfo=a,!0}static _parseTemplateNodeAttributes(s,r,i){let n=!1,a=Array.from(s.attributes);for(let l=a.length-1,c;c=a[l];l--)n=this._parseTemplateNodeAttribute(s,r,i,c.name,c.value)||n;return n}static _parseTemplateNodeAttribute(s,r,i,n,a){return n.slice(0,3)==="on-"?(s.removeAttribute(n),i.events=i.events||[],i.events.push({name:n.slice(3),value:a}),!0):n==="id"?(i.id=a,!0):!1}static _contentForTemplate(s){let r=s._templateInfo;return r&&r.content||s.content}_stampTemplate(s,r){s&&!s.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(s),r=r||this.constructor._parseTemplate(s);let i=r.nodeInfoList,n=r.content||s.content,a=document.importNode(n,!0);a.__noInsertionPoint=!r.hasInsertionPoint;let l=a.nodeList=new Array(i.length);a.$={};for(let c=0,u=i.length,d;c<u&&(d=i[c]);c++){let h=l[c]=Go(a,d);Ys(this,a.$,h,d),Ws(this,h,d,r),Gs(this,h,d)}return a=a,a}_addMethodEventListenerToNode(s,r,i,n){n=n||s;let a=Ks(n,r,i);return this._addEventListenerToNode(s,r,a),a}_addEventListenerToNode(s,r,i){s.addEventListener(r,i)}_removeEventListenerFromNode(s,r,i){s.removeEventListener(r,i)}}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 at=0;const lt=[],f={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Wo="__computeInfo",Zs=/[A-Z]/;function Ut(o,t,e){let s=o[t];if(!s)s=o[t]={};else if(!o.hasOwnProperty(t)&&(s=o[t]=Object.create(o[t]),e))for(let r in s){let i=s[r],n=s[r]=Array(i.length);for(let a=0;a<i.length;a++)n[a]=i[a]}return s}function Q(o,t,e,s,r,i){if(t){let n=!1;const a=at++;for(let l in e){let c=r?$(l):l,u=t[c];if(u)for(let d=0,h=u.length,p;d<h&&(p=u[d]);d++)(!p.info||p.info.lastRun!==a)&&(!r||be(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(o,l,e,s,p.info,r,i),n=!0)}return n}return!1}function Xs(o,t,e,s,r,i,n,a){let l=!1,c=n?$(s):s,u=t[c];if(u)for(let d=0,h=u.length,p;d<h&&(p=u[d]);d++)(!p.info||p.info.lastRun!==e)&&(!n||be(s,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(o,s,r,i,p.info,n,a),l=!0);return l}function be(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&Bo(e,o))||!!(t.wildcard&&it(e,o))}else return!0}function ao(o,t,e,s,r){let i=typeof r.method=="string"?o[r.method]:r.method,n=r.property;i?i.call(o,o.__data[n],s[n]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Qs(o,t,e,s,r){let i=o[f.NOTIFY],n,a=at++;for(let c in t)t[c]&&(i&&Xs(o,i,a,c,e,s,r)||r&&ti(o,c,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function ti(o,t,e){let s=$(t);if(s!==t){let r=Pt(s)+"-changed";return Ko(o,r,e[t],t),!0}return!1}function Ko(o,t,e,s){let r={value:e,queueProperty:!0};s&&(r.path=s),N(o).dispatchEvent(new CustomEvent(t,{detail:r}))}function ei(o,t,e,s,r,i){let a=(i?$(t):t)!=t?t:null,l=a?y(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Ko(o,r.eventName,l,a)}function oi(o,t,e,s,r){let i,n=o.detail,a=n&&n.path;a?(s=nt(e,s,a),i=n&&n.value):i=o.currentTarget[e],i=r?!i:i,(!t[f.READ_ONLY]||!t[f.READ_ONLY][s])&&t._setPendingPropertyOrPath(s,i,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function ri(o,t,e,s,r){let i=o.__data[t];bt&&(i=bt(i,r.attrName,"attribute",o)),o._propertyToAttribute(t,r.attrName,i)}function si(o,t,e,s){let r=o[f.COMPUTE];if(r)if(bs){at++;const i=ni(o),n=[];for(let l in t)lo(l,r,n,i,s);let a;for(;a=n.shift();)Jo(o,"",t,e,a)&&lo(a.methodInfo,r,n,i,s);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let i=t;for(;Q(o,r,i,e,s);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),i=o.__dataPending,o.__dataPending=null}}const ii=(o,t,e)=>{let s=0,r=t.length-1,i=-1;for(;s<=r;){const n=s+r>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)s=n+1;else if(a>0)r=n-1;else{i=n;break}}i<0&&(i=r+1),t.splice(i,0,o)},lo=(o,t,e,s,r)=>{const i=r?$(o):o,n=t[i];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==at&&(!r||be(o,l.trigger))&&(l.info.lastRun=at,ii(l.info,e,s))}};function ni(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[f.COMPUTE];let{counts:s,ready:r,total:i}=ai(o),n;for(;n=r.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--i,--s[c]===0&&r.push(c)})}i!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function ai(o){const t=o[Wo],e={},s=o[f.COMPUTE],r=[];let i=0;for(let n in t){const a=t[n];i+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in s)t[n]||r.push(n);return{counts:e,ready:r,total:i}}function Jo(o,t,e,s,r){let i=re(o,t,e,s,r);if(i===lt)return!1;let n=r.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,i,!0):(o[n]=i,!1)}function li(o,t,e){let s=o.__dataLinkedPaths;if(s){let r;for(let i in s){let n=s[i];it(i,t)?(r=nt(i,n,t),o._setPendingPropertyOrPath(r,e,!0,!0)):it(n,t)&&(r=nt(n,i,t),o._setPendingPropertyOrPath(r,e,!0,!0))}}}function Ht(o,t,e,s,r,i,n){e.bindings=e.bindings||[];let a={kind:s,target:r,parts:i,literal:n,isCompound:i.length!==1};if(e.bindings.push(a),pi(a)){let{event:c,negate:u}=a.parts[0];a.listenerEvent=c||Pt(r)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let u=a.parts[c];u.compoundIndex=c,ci(o,t,a,u,l)}}function ci(o,t,e,s,r){if(!s.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 i=s.dependencies,n={index:r,binding:e,part:s,evaluator:o};for(let a=0;a<i.length;a++){let l=i[a];typeof l=="string"&&(l=Xo(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:ui,info:n,trigger:l})}}}function ui(o,t,e,s,r,i,n){let a=n[r.index],l=r.binding,c=r.part;if(i&&c.source&&t.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=nt(c.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=r.evaluator._evaluateBinding(o,c,t,e,s,i);u!==lt&&di(o,a,l,c,u)}}function di(o,t,e,s,r){if(r=hi(t,r,e,s),bt&&(r=bt(r,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,r,e.target);else{let i=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[i]?(!t[f.READ_ONLY]||!t[f.READ_ONLY][i])&&t._setPendingProperty(i,r)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,i,r)}}function hi(o,t,e,s){if(e.isCompound){let r=o.__dataCompoundStorage[e.target];r[s.compoundIndex]=t,t=r.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function pi(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function mi(o,t){let{nodeList:e,nodeInfoList:s}=t;if(s.length)for(let r=0;r<s.length;r++){let i=s[r],n=e[r],a=i.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];fi(n,c),_i(n,o,c)}n.__dataHost=o}}function fi(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),s=t.parts,r=new Array(s.length);for(let n=0;n<s.length;n++)r[n]=s[n].literal;let i=t.target;e[i]=r,t.literal&&t.kind=="property"&&(i==="className"&&(o=N(o)),o[i]=t.literal)}}function _i(o,t,e){if(e.listenerEvent){let s=e.parts[0];o.addEventListener(e.listenerEvent,function(r){oi(r,t,e.target,s.source,s.negate)})}}function co(o,t,e,s,r,i){i=t.static||i&&(typeof i!="object"||i[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:r,dynamicFn:i};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:s,info:n,trigger:l});return i&&o._addPropertyEffect(t.methodName,e,{fn:s,info:n}),n}function re(o,t,e,s,r){let i=o._methodHost||o,n=i[r.methodName];if(n){let a=o._marshalArgs(r.args,t,e);return a===lt?lt:n.apply(i,a)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const gi=[],Zo="(?:[a-zA-Z_$][\\w.:$\\-*]*)",vi="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",bi="(?:'(?:[^'\\\\]|\\\\.)*')",yi='(?:"(?:[^"\\\\]|\\\\.)*")',xi="(?:"+bi+"|"+yi+")",uo="(?:("+Zo+"|"+vi+"|"+xi+")\\s*)",wi="(?:"+uo+"(?:,\\s*"+uo+")*)",Ai="(?:\\(\\s*(?:"+wi+"?)\\)\\s*)",Ci="("+Zo+"\\s*"+Ai+"?)",Ei="(\\[\\[|{{)\\s*",Pi="(?:]]|}})",Ti="(?:(!)\\s*)?",Si=Ei+Ti+Ci+Pi,ho=new RegExp(Si,"g");function po(o){let t="";for(let e=0;e<o.length;e++){let s=o[e].literal;t+=s||""}return t}function Vt(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let s={methodName:t[1],static:!0,args:gi};if(t[2].trim()){let r=t[2].replace(/\\,/g,",").split(",");return Ni(r,s)}else return s}return null}function Ni(o,t){return t.args=o.map(function(e){let s=Xo(e);return s.literal||(t.static=!1),s},this),t}function Xo(o){let t=o.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},s=t[0];switch(s==="-"&&(s=t[1]),s>="0"&&s<="9"&&(s="#"),s){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=$(t),e.structured=ee(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function mo(o,t,e){let s=y(o,e);return s===void 0&&(s=t[e]),s}function Qo(o,t,e,s){const r={indexSplices:s};te&&!o._overrideLegacyUndefined&&(t.splices=r),o.notifyPath(e+".splices",r),o.notifyPath(e+".length",t.length),te&&!o._overrideLegacyUndefined&&(r.indexSplices=[])}function K(o,t,e,s,r,i){Qo(o,t,e,[{index:s,addedCount:r,removed:i,object:t,type:"splice"}])}function ki(o){return o[0].toUpperCase()+o.substring(1)}const tr=v(o=>{const t=Js(Fs(o));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return f}_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(J.length){let r=J[J.length-1];r._enqueueClient(this),this.__dataHost=r}}_initializeProtoProperties(r){this.__data=Object.create(r),this.__dataPending=Object.create(r),this.__dataOld={}}_initializeInstanceProperties(r){let i=this[f.READ_ONLY];for(let n in r)(!i||!i[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=r[n])}_addPropertyEffect(r,i,n){this._createPropertyAccessor(r,i==f.READ_ONLY);let a=Ut(this,i,!0)[r];a||(a=this[i][r]=[]),a.push(n)}_removePropertyEffect(r,i,n){let a=Ut(this,i,!0)[r],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(r,i){let n=this[i];return!!(n&&n[r])}_hasReadOnlyEffect(r){return this._hasPropertyEffect(r,f.READ_ONLY)}_hasNotifyEffect(r){return this._hasPropertyEffect(r,f.NOTIFY)}_hasReflectEffect(r){return this._hasPropertyEffect(r,f.REFLECT)}_hasComputedEffect(r){return this._hasPropertyEffect(r,f.COMPUTE)}_setPendingPropertyOrPath(r,i,n,a){if(a||$(Array.isArray(r)?r[0]:r)!==r){if(!a){let l=y(this,r);if(r=so(this,r,i),!r||!super._shouldPropertyChange(r,i,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(r,i,n))return li(this,r,i),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[r])return this._setPendingProperty(r,i,n);this[r]=i}return!1}_setUnmanagedPropertyToNode(r,i,n){(n!==r[i]||typeof n=="object")&&(i==="className"&&(r=N(r)),r[i]=n)}_setPendingProperty(r,i,n){let a=this.__dataHasPaths&&ee(r),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(r,i,l[r])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),r in this.__dataOld||(this.__dataOld[r]=this.__data[r]),a?this.__dataTemp[r]=i:this.__data[r]=i,this.__dataPending[r]=i,(a||this[f.NOTIFY]&&this[f.NOTIFY][r])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[r]=n),!0):!1}_setProperty(r,i){this._setPendingProperty(r,i,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(r){this.__dataPendingClients=this.__dataPendingClients||[],r!==this&&this.__dataPendingClients.push(r)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let r=this.__dataPendingClients;if(r){this.__dataPendingClients=null;for(let i=0;i<r.length;i++){let n=r[i];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(r,i){for(let n in r)(i||!this[f.READ_ONLY]||!this[f.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,r[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(r,i,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;si(this,i,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(i,n,a),this._flushClients(),Q(this,this[f.REFLECT],i,n,a),Q(this,this[f.OBSERVE],i,n,a),l&&Qs(this,l,i,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,i,n){this[f.PROPAGATE]&&Q(this,this[f.PROPAGATE],r,i,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,i,n)}_runEffectsForTemplate(r,i,n,a){const l=(c,u)=>{Q(this,r.propertyEffects,c,n,u,r.nodeList);for(let d=r.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,c,n,u)};r.runEffects?r.runEffects(l,i,a):l(i,a)}linkPaths(r,i){r=X(r),i=X(i),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=i}unlinkPaths(r){r=X(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,i){let n={path:""},a=y(this,r,n);Qo(this,a,n.path,i)}get(r,i){return y(i||this,r)}set(r,i,n){n?so(n,r,i):(!this[f.READ_ONLY]||!this[f.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,i,!0)&&this._invalidateProperties()}push(r,...i){let n={path:""},a=y(this,r,n),l=a.length,c=a.push(...i);return i.length&&K(this,a,n.path,l,i.length,[]),c}pop(r){let i={path:""},n=y(this,r,i),a=!!n.length,l=n.pop();return a&&K(this,n,i.path,n.length,0,[l]),l}splice(r,i,n,...a){let l={path:""},c=y(this,r,l);i<0?i=c.length-Math.floor(-i):i&&(i=Math.floor(i));let u;return arguments.length===2?u=c.splice(i):u=c.splice(i,n,...a),(a.length||u.length)&&K(this,c,l.path,i,a.length,u),u}shift(r){let i={path:""},n=y(this,r,i),a=!!n.length,l=n.shift();return a&&K(this,n,i.path,0,0,[l]),l}unshift(r,...i){let n={path:""},a=y(this,r,n),l=a.unshift(...i);return i.length&&K(this,a,n.path,0,i.length,[]),l}notifyPath(r,i){let n;if(arguments.length==1){let a={path:""};i=y(this,r,a),n=a.path}else Array.isArray(r)?n=X(r):n=r;this._setPendingPropertyOrPath(n,i,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,i){this._addPropertyEffect(r,f.READ_ONLY),i&&(this["_set"+ki(r)]=function(n){this._setProperty(r,n)})}_createPropertyObserver(r,i,n){let a={property:r,method:i,dynamicFn:!!n};this._addPropertyEffect(r,f.OBSERVE,{fn:ao,info:a,trigger:{name:r}}),n&&this._addPropertyEffect(i,f.OBSERVE,{fn:ao,info:a,trigger:{name:i}})}_createMethodObserver(r,i){let n=Vt(r);if(!n)throw new Error("Malformed observer expression '"+r+"'");co(this,n,f.OBSERVE,re,null,i)}_createNotifyingProperty(r){this._addPropertyEffect(r,f.NOTIFY,{fn:ei,info:{eventName:Pt(r)+"-changed",property:r}})}_createReflectedProperty(r){let i=this.constructor.attributeNameForProperty(r);i[0]==="-"?console.warn("Property "+r+" cannot be reflected to attribute "+i+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(r,f.REFLECT,{fn:ri,info:{attrName:i}})}_createComputedProperty(r,i,n){let a=Vt(i);if(!a)throw new Error("Malformed computed expression '"+i+"'");const l=co(this,a,f.COMPUTE,Jo,r,n);Ut(this,Wo)[r]=l}_marshalArgs(r,i,n){const a=this.__data,l=[];for(let c=0,u=r.length;c<u;c++){let{name:d,structured:h,wildcard:p,value:_,literal:b}=r[c];if(!b)if(p){const E=it(d,i),x=mo(a,n,E?i:d);_={path:E?i:d,value:x,base:E?y(a,d):x}}else _=h?mo(a,n,d):a[d];if(te&&!this._overrideLegacyUndefined&&_===void 0&&r.length>1)return lt;l[c]=_}return l}static addPropertyEffect(r,i,n){this.prototype._addPropertyEffect(r,i,n)}static createPropertyObserver(r,i,n){this.prototype._createPropertyObserver(r,i,n)}static createMethodObserver(r,i){this.prototype._createMethodObserver(r,i)}static createNotifyingProperty(r){this.prototype._createNotifyingProperty(r)}static createReadOnlyProperty(r,i){this.prototype._createReadOnlyProperty(r,i)}static createReflectedProperty(r){this.prototype._createReflectedProperty(r)}static createComputedProperty(r,i,n){this.prototype._createComputedProperty(r,i,n)}static bindTemplate(r){return this.prototype._bindTemplate(r)}_bindTemplate(r,i){let n=this.constructor._parseTemplate(r),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(i)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=r._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(r,i,n){let a=r.hostProps=r.hostProps||{};a[i]=!0;let l=r.propertyEffects=r.propertyEffects||{};(l[i]=l[i]||[]).push(n)}_stampTemplate(r,i){i=i||this._bindTemplate(r,!0),J.push(this);let n=super._stampTemplate(r,i);if(J.pop(),i.nodeList=n.nodeList,!i.wasPreBound){let a=i.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=i,mi(this,i),this.__dataClientsReady&&(this._runEffectsForTemplate(i,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(r){const i=r.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=i;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),i.nextSibling=i.previousSibling=null;let c=i.childNodes;for(let u=0;u<c.length;u++){let d=c[u];N(N(d).parentNode).removeChild(d)}}static _parseTemplateNode(r,i,n){let a=t._parseTemplateNode.call(this,r,i,n);if(r.nodeType===Node.TEXT_NODE){let l=this._parseBindings(r.textContent,i);l&&(r.textContent=po(l)||" ",Ht(this,i,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(r,i,n,a,l){let c=this._parseBindings(l,i);if(c){let u=a,d="property";Zs.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let h=po(c);return h&&d=="attribute"&&(a=="class"&&r.hasAttribute("class")&&(h+=" "+r.getAttribute(a)),r.setAttribute(a,h)),d=="attribute"&&u=="disable-upgrade$"&&r.setAttribute(a,""),r.localName==="input"&&u==="value"&&r.setAttribute(u,""),r.removeAttribute(u),d==="property"&&(a=Uo(a)),Ht(this,i,n,d,a,c,h),!0}else return t._parseTemplateNodeAttribute.call(this,r,i,n,a,l)}static _parseTemplateNestedTemplate(r,i,n){let a=t._parseTemplateNestedTemplate.call(this,r,i,n);const l=r.parentNode,c=n.templateInfo,u=l.localName==="dom-if",d=l.localName==="dom-repeat";Qe&&(u||d)&&(l.removeChild(r),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let h=c.hostProps;if(ys&&u)h&&(i.hostProps=Object.assign(i.hostProps||{},h),Qe||(n.parentInfo.noted=!0));else{let p="{";for(let _ in h){let b=[{mode:p,source:_,dependencies:[_],hostProp:!0}];Ht(this,i,n,"property","_host_"+_,b)}}return a}static _parseBindings(r,i){let n=[],a=0,l;for(;(l=ho.exec(r))!==null;){l.index>a&&n.push({literal:r.slice(a,l.index)});let c=l[1][0],u=!!l[2],d=l[3].trim(),h=!1,p="",_=-1;c=="{"&&(_=d.indexOf("::"))>0&&(p=d.substring(_+2),d=d.substring(0,_),h=!0);let b=Vt(d),E=[];if(b){let{args:x,methodName:w}=b;for(let zt=0;zt<x.length;zt++){let Le=x[zt];Le.literal||E.push(Le)}let L=i.dynamicFns;(L&&L[w]||b.static)&&(E.push(w),b.dynamicFn=!0)}else E.push(d);n.push({source:d,mode:c,negate:u,customEvent:h,signature:b,dependencies:E,event:p}),a=ho.lastIndex}if(a&&a<r.length){let c=r.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(r,i,n,a,l,c){let u;return i.signature?u=re(r,n,a,l,i.signature):n!=i.source?u=y(r,i.source):c&&ee(n)?u=y(r,n):u=r.__data[n],i.negate&&(u=!u),u}}return e}),J=[];/**
|
|
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
|
-
*/function Oi(o){const t={};for(let e in o){const s=o[e];t[e]=typeof s=="function"?{type:s}:s}return t}const zi=v(o=>{const t=qo(o);function e(i){const n=Object.getPrototypeOf(i);return n.prototype instanceof r?n:null}function s(i){if(!i.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",i))){let n=null;if(i.hasOwnProperty(JSCompiler_renameProperty("properties",i))){const a=i.properties;a&&(n=Oi(a))}i.__ownProperties=n}return i.__ownProperties}class r extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){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=s(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,s(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 r});/**
|
|
700
|
-
* @fileoverview
|
|
701
|
-
* @suppress {checkPrototypalTypes}
|
|
702
|
-
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
703
|
-
* This code may only be used under the BSD style license found at
|
|
704
|
-
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
705
|
-
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
706
|
-
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
707
|
-
* Google as part of the polymer project is also subject to an additional IP
|
|
708
|
-
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
709
|
-
*/const Mi="3.5.2",fo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ii=v(o=>{const t=zi(tr(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let u in c){let d=c[u];"value"in d&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=d)}}return l.__propertyDefaults}function s(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function r(l,c,u,d){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,u.computed,d)),u.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):u.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),u.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):u.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),u.observer&&l._createPropertyObserver(c,u.observer,d[u.observer]),l._addPropertyToAttributeMap(c)}function i(l,c,u,d){if(!fo){const h=c.content.querySelectorAll("style"),p=Lo(c),_=Ns(u),b=c.content.firstElementChild;for(let x=0;x<_.length;x++){let w=_[x];w.textContent=l._processStyleText(w.textContent,d),c.content.insertBefore(w,b)}let E=0;for(let x=0;x<p.length;x++){let w=p[x],L=h[E];L!==w?(w=w.cloneNode(!0),L.parentNode.insertBefore(w,L)):E++,w.textContent=l._processStyleText(w.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,u),ws&&fo&&fs){const h=c.content.querySelectorAll("style");if(h){let p="";Array.from(h).forEach(_=>{p+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let c=null;if(l&&(!yt||gs)&&(c=st.import(l,"template"),yt&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends t{static get polymerElementVersion(){return Mi}static _finalizeClass(){t._finalizeClass.call(this);const c=s(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):Mo||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let u in c)r(this.prototype,u,c[u],c)}static createObservers(c,u){const d=this.prototype;for(let h=0;h<c.length;h++)d._createMethodObserver(c[h],u)}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=ge(c.url);else{const u=st.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=_s,this.importPath=this.constructor.importPath;let c=e(this.constructor);if(c)for(let u in c){let d=c[u];if(this._canApplyPropertyDefault(u)){let h=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(u)?this._setPendingProperty(u,h,!0):this[u]=h}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,u){return _e(c,u)}static _finalizeTemplate(c){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const d=this.importPath,h=d?tt(d):"";i(this,u,c,h),this.prototype._bindTemplate(u)}}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 u=N(this);if(u.attachShadow)return c?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:c}),u.shadowRoot.appendChild(c),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),vs&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.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,u){return!u&&this.importPath&&(u=tt(this.importPath)),tt(c,u)}static _parseTemplateContent(c,u,d){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,c,u,d)}static _addTemplatePropertyEffect(c,u,d){return Io&&!(u in this._properties)&&!(d.info.part.signature&&d.info.part.signature.static)&&!d.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,c,u,d)}}return a});/**
|
|
710
|
-
@license
|
|
711
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
712
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
713
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
714
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
715
|
-
Code distributed by Google as part of the polymer project is also
|
|
716
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
717
|
-
*/const _o=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class er{constructor(t,e){rr(t,e);const s=e.reduce((r,i,n)=>r+or(i)+t[n+1],t[0]);this.value=s.toString()}toString(){return this.value}}function or(o){if(o instanceof er)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function Di(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof er)return or(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const ye=function(t,...e){rr(t,e);const s=document.createElement("template");let r=e.reduce((i,n,a)=>i+Di(n)+t[a+1],t[0]);return _o&&(r=_o.createHTML(r)),s.innerHTML=r,s},rr=(o,t)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||t.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
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 xe=Ii(HTMLElement);/**
|
|
726
|
-
* @license
|
|
727
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
728
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
729
|
-
*/const P=[];function se(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir")}function ie(){return document.documentElement.getAttribute("dir")}function $i(){const o=ie();P.forEach(t=>{se(t,o)})}const Li=new MutationObserver($i);Li.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const we=o=>class extends o{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(),se(this,ie(),null))}attributeChangedCallback(e,s,r){if(super.attributeChangedCallback(e,s,r),e!=="dir")return;const i=ie(),n=r===i&&P.indexOf(this)===-1,a=!r&&s&&P.indexOf(this)===-1;n||a?(this.__subscribe(),se(this,i,r)):r!==i&&s===i&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=P.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,s,r){r==="dir"&&s===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,s,r)}_attributeToProperty(e,s,r){e==="dir"&&!s?this.dir="":super._attributeToProperty(e,s,r)}__subscribe(){P.includes(this)||P.push(this)}__unsubscribe(){P.includes(this)&&P.splice(P.indexOf(this),1)}};/**
|
|
730
|
-
* @license
|
|
731
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
732
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
733
|
-
*/class Ri extends fe(we(xe)){static get is(){return"vaadin-input-container"}static get template(){return ye`
|
|
734
|
-
<style>
|
|
735
|
-
:host {
|
|
736
|
-
display: flex;
|
|
737
|
-
align-items: center;
|
|
738
|
-
flex: 0 1 auto;
|
|
739
|
-
border-radius:
|
|
740
|
-
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
741
|
-
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
|
|
742
|
-
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
|
|
743
|
-
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
|
|
744
|
-
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
|
|
745
|
-
--_border-radius: var(--vaadin-input-field-border-radius, 0px);
|
|
746
|
-
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
747
|
-
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
748
|
-
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
:host([dir='rtl']) {
|
|
752
|
-
border-radius:
|
|
753
|
-
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
754
|
-
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
|
|
755
|
-
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
|
|
756
|
-
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
|
|
757
|
-
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
:host([hidden]) {
|
|
761
|
-
display: none !important;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
/* Reset the native input styles */
|
|
765
|
-
::slotted(input) {
|
|
766
|
-
-webkit-appearance: none;
|
|
767
|
-
-moz-appearance: none;
|
|
768
|
-
flex: auto;
|
|
769
|
-
white-space: nowrap;
|
|
770
|
-
overflow: hidden;
|
|
771
|
-
width: 100%;
|
|
772
|
-
height: 100%;
|
|
773
|
-
outline: none;
|
|
774
|
-
margin: 0;
|
|
775
|
-
padding: 0;
|
|
776
|
-
border: 0;
|
|
777
|
-
border-radius: 0;
|
|
778
|
-
min-width: 0;
|
|
779
|
-
font: inherit;
|
|
780
|
-
line-height: normal;
|
|
781
|
-
color: inherit;
|
|
782
|
-
background-color: transparent;
|
|
783
|
-
/* Disable default invalid style in Firefox */
|
|
784
|
-
box-shadow: none;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
::slotted(*) {
|
|
788
|
-
flex: none;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
::slotted(:is(input, textarea))::placeholder {
|
|
792
|
-
/* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
|
|
793
|
-
/* because ::slotted(...)::placeholder does not work in Safari. */
|
|
794
|
-
font: inherit;
|
|
795
|
-
color: inherit;
|
|
796
|
-
/* Override default opacity in Firefox */
|
|
797
|
-
opacity: 1;
|
|
798
|
-
}
|
|
799
|
-
</style>
|
|
800
|
-
<slot name="prefix"></slot>
|
|
801
|
-
<slot></slot>
|
|
802
|
-
<slot name="suffix"></slot>
|
|
803
|
-
`}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())})}}Y(Ri);const Bi=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,_t=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Fi(){function o(){return!0}return sr(o)}function Ui(){try{return Hi()?!0:Vi()?_t?!ji():!Fi():!1}catch(o){return!1}}function Hi(){return localStorage.getItem("vaadin.developmentmode.force")}function Vi(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function ji(){return!!(_t&&Object.keys(_t).map(t=>_t[t]).filter(t=>t.productionMode).length>0)}function sr(o,t){if(typeof o!="function")return;const e=Bi.exec(o.toString());if(e)try{o=new Function(e[1])}catch(s){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",s)}return o(t)}window.Vaadin=window.Vaadin||{};const go=function(o,t){if(window.Vaadin.developmentMode)return sr(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ui());function qi(){/*! vaadin-dev-mode:start
|
|
804
|
-
(function () {
|
|
805
|
-
'use strict';
|
|
806
|
-
|
|
807
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
808
|
-
return typeof obj;
|
|
809
|
-
} : function (obj) {
|
|
810
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
var classCallCheck = function (instance, Constructor) {
|
|
814
|
-
if (!(instance instanceof Constructor)) {
|
|
815
|
-
throw new TypeError("Cannot call a class as a function");
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
var createClass = function () {
|
|
820
|
-
function defineProperties(target, props) {
|
|
821
|
-
for (var i = 0; i < props.length; i++) {
|
|
822
|
-
var descriptor = props[i];
|
|
823
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
824
|
-
descriptor.configurable = true;
|
|
825
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
826
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
return function (Constructor, protoProps, staticProps) {
|
|
831
|
-
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
832
|
-
if (staticProps) defineProperties(Constructor, staticProps);
|
|
833
|
-
return Constructor;
|
|
834
|
-
};
|
|
835
|
-
}();
|
|
836
|
-
|
|
837
|
-
var getPolymerVersion = function getPolymerVersion() {
|
|
838
|
-
return window.Polymer && window.Polymer.version;
|
|
839
|
-
};
|
|
840
|
-
|
|
841
|
-
var StatisticsGatherer = function () {
|
|
842
|
-
function StatisticsGatherer(logger) {
|
|
843
|
-
classCallCheck(this, StatisticsGatherer);
|
|
844
|
-
|
|
845
|
-
this.now = new Date().getTime();
|
|
846
|
-
this.logger = logger;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
createClass(StatisticsGatherer, [{
|
|
850
|
-
key: 'frameworkVersionDetectors',
|
|
851
|
-
value: function frameworkVersionDetectors() {
|
|
852
|
-
return {
|
|
853
|
-
'Flow': function Flow() {
|
|
854
|
-
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
855
|
-
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
856
|
-
return window.Vaadin.Flow.clients[key];
|
|
857
|
-
}).filter(function (client) {
|
|
858
|
-
return client.getVersionInfo;
|
|
859
|
-
}).map(function (client) {
|
|
860
|
-
return client.getVersionInfo().flow;
|
|
861
|
-
});
|
|
862
|
-
if (flowVersions.length > 0) {
|
|
863
|
-
return flowVersions[0];
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
},
|
|
867
|
-
'Vaadin Framework': function VaadinFramework() {
|
|
868
|
-
if (window.vaadin && window.vaadin.clients) {
|
|
869
|
-
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
870
|
-
return client.getVersionInfo;
|
|
871
|
-
}).map(function (client) {
|
|
872
|
-
return client.getVersionInfo().vaadinVersion;
|
|
873
|
-
});
|
|
874
|
-
if (frameworkVersions.length > 0) {
|
|
875
|
-
return frameworkVersions[0];
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
},
|
|
879
|
-
'AngularJs': function AngularJs() {
|
|
880
|
-
if (window.angular && window.angular.version && window.angular.version) {
|
|
881
|
-
return window.angular.version.full;
|
|
882
|
-
}
|
|
883
|
-
},
|
|
884
|
-
'Angular': function Angular() {
|
|
885
|
-
if (window.ng) {
|
|
886
|
-
var tags = document.querySelectorAll("[ng-version]");
|
|
887
|
-
if (tags.length > 0) {
|
|
888
|
-
return tags[0].getAttribute("ng-version");
|
|
889
|
-
}
|
|
890
|
-
return "Unknown";
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
'Backbone.js': function BackboneJs() {
|
|
894
|
-
if (window.Backbone) {
|
|
895
|
-
return window.Backbone.VERSION;
|
|
896
|
-
}
|
|
897
|
-
},
|
|
898
|
-
'React': function React() {
|
|
899
|
-
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
900
|
-
if (!!document.querySelector(reactSelector)) {
|
|
901
|
-
// React does not publish the version by default
|
|
902
|
-
return "unknown";
|
|
903
|
-
}
|
|
904
|
-
},
|
|
905
|
-
'Ember': function Ember() {
|
|
906
|
-
if (window.Em && window.Em.VERSION) {
|
|
907
|
-
return window.Em.VERSION;
|
|
908
|
-
} else if (window.Ember && window.Ember.VERSION) {
|
|
909
|
-
return window.Ember.VERSION;
|
|
910
|
-
}
|
|
911
|
-
},
|
|
912
|
-
'jQuery': function (_jQuery) {
|
|
913
|
-
function jQuery() {
|
|
914
|
-
return _jQuery.apply(this, arguments);
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
jQuery.toString = function () {
|
|
918
|
-
return _jQuery.toString();
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
return jQuery;
|
|
922
|
-
}(function () {
|
|
923
|
-
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
924
|
-
return jQuery.prototype.jquery;
|
|
925
|
-
}
|
|
926
|
-
}),
|
|
927
|
-
'Polymer': function Polymer() {
|
|
928
|
-
var version = getPolymerVersion();
|
|
929
|
-
if (version) {
|
|
930
|
-
return version;
|
|
931
|
-
}
|
|
932
|
-
},
|
|
933
|
-
'LitElement': function LitElement() {
|
|
934
|
-
var version = window.litElementVersions && window.litElementVersions[0];
|
|
935
|
-
if (version) {
|
|
936
|
-
return version;
|
|
937
|
-
}
|
|
938
|
-
},
|
|
939
|
-
'LitHtml': function LitHtml() {
|
|
940
|
-
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
941
|
-
if (version) {
|
|
942
|
-
return version;
|
|
943
|
-
}
|
|
944
|
-
},
|
|
945
|
-
'Vue.js': function VueJs() {
|
|
946
|
-
if (window.Vue) {
|
|
947
|
-
return window.Vue.version;
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
};
|
|
951
|
-
}
|
|
952
|
-
}, {
|
|
953
|
-
key: 'getUsedVaadinElements',
|
|
954
|
-
value: function getUsedVaadinElements(elements) {
|
|
955
|
-
var version = getPolymerVersion();
|
|
956
|
-
var elementClasses = void 0;
|
|
957
|
-
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
958
|
-
// Check all locations calling the method getEntries() in
|
|
959
|
-
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
960
|
-
// Currently it is only used by BootstrapHandler.
|
|
961
|
-
if (version && version.indexOf('2') === 0) {
|
|
962
|
-
// Polymer 2: components classes are stored in window.Vaadin
|
|
963
|
-
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
964
|
-
return window.Vaadin[c];
|
|
965
|
-
}).filter(function (c) {
|
|
966
|
-
return c.is;
|
|
967
|
-
});
|
|
968
|
-
} else {
|
|
969
|
-
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
970
|
-
elementClasses = window.Vaadin.registrations || [];
|
|
971
|
-
}
|
|
972
|
-
elementClasses.forEach(function (klass) {
|
|
973
|
-
var version = klass.version ? klass.version : "0.0.0";
|
|
974
|
-
elements[klass.is] = { version: version };
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
}, {
|
|
978
|
-
key: 'getUsedVaadinThemes',
|
|
979
|
-
value: function getUsedVaadinThemes(themes) {
|
|
980
|
-
['Lumo', 'Material'].forEach(function (themeName) {
|
|
981
|
-
var theme;
|
|
982
|
-
var version = getPolymerVersion();
|
|
983
|
-
if (version && version.indexOf('2') === 0) {
|
|
984
|
-
// Polymer 2: themes are stored in window.Vaadin
|
|
985
|
-
theme = window.Vaadin[themeName];
|
|
986
|
-
} else {
|
|
987
|
-
// Polymer 3: themes are stored in custom element registry
|
|
988
|
-
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
989
|
-
}
|
|
990
|
-
if (theme && theme.version) {
|
|
991
|
-
themes[themeName] = { version: theme.version };
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
}, {
|
|
996
|
-
key: 'getFrameworks',
|
|
997
|
-
value: function getFrameworks(frameworks) {
|
|
998
|
-
var detectors = this.frameworkVersionDetectors();
|
|
999
|
-
Object.keys(detectors).forEach(function (framework) {
|
|
1000
|
-
var detector = detectors[framework];
|
|
1001
|
-
try {
|
|
1002
|
-
var version = detector();
|
|
1003
|
-
if (version) {
|
|
1004
|
-
frameworks[framework] = { version: version };
|
|
1005
|
-
}
|
|
1006
|
-
} catch (e) {}
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
}, {
|
|
1010
|
-
key: 'gather',
|
|
1011
|
-
value: function gather(storage) {
|
|
1012
|
-
var storedStats = storage.read();
|
|
1013
|
-
var gatheredStats = {};
|
|
1014
|
-
var types = ["elements", "frameworks", "themes"];
|
|
1015
|
-
|
|
1016
|
-
types.forEach(function (type) {
|
|
1017
|
-
gatheredStats[type] = {};
|
|
1018
|
-
if (!storedStats[type]) {
|
|
1019
|
-
storedStats[type] = {};
|
|
1020
|
-
}
|
|
1021
|
-
});
|
|
1022
|
-
|
|
1023
|
-
var previousStats = JSON.stringify(storedStats);
|
|
1024
|
-
|
|
1025
|
-
this.getUsedVaadinElements(gatheredStats.elements);
|
|
1026
|
-
this.getFrameworks(gatheredStats.frameworks);
|
|
1027
|
-
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
1028
|
-
|
|
1029
|
-
var now = this.now;
|
|
1030
|
-
types.forEach(function (type) {
|
|
1031
|
-
var keys = Object.keys(gatheredStats[type]);
|
|
1032
|
-
keys.forEach(function (key) {
|
|
1033
|
-
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
1034
|
-
storedStats[type][key] = { firstUsed: now };
|
|
1035
|
-
}
|
|
1036
|
-
// Discards any previously logged version number
|
|
1037
|
-
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
1038
|
-
storedStats[type][key].lastUsed = now;
|
|
1039
|
-
});
|
|
1040
|
-
});
|
|
1041
|
-
|
|
1042
|
-
var newStats = JSON.stringify(storedStats);
|
|
1043
|
-
storage.write(newStats);
|
|
1044
|
-
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
1045
|
-
this.logger.debug("New stats: " + newStats);
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
}]);
|
|
1049
|
-
return StatisticsGatherer;
|
|
1050
|
-
}();
|
|
1051
|
-
|
|
1052
|
-
var StatisticsStorage = function () {
|
|
1053
|
-
function StatisticsStorage(key) {
|
|
1054
|
-
classCallCheck(this, StatisticsStorage);
|
|
1055
|
-
|
|
1056
|
-
this.key = key;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
createClass(StatisticsStorage, [{
|
|
1060
|
-
key: 'read',
|
|
1061
|
-
value: function read() {
|
|
1062
|
-
var localStorageStatsString = localStorage.getItem(this.key);
|
|
1063
|
-
try {
|
|
1064
|
-
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
1065
|
-
} catch (e) {
|
|
1066
|
-
return {};
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
}, {
|
|
1070
|
-
key: 'write',
|
|
1071
|
-
value: function write(data) {
|
|
1072
|
-
localStorage.setItem(this.key, data);
|
|
1073
|
-
}
|
|
1074
|
-
}, {
|
|
1075
|
-
key: 'clear',
|
|
1076
|
-
value: function clear() {
|
|
1077
|
-
localStorage.removeItem(this.key);
|
|
1078
|
-
}
|
|
1079
|
-
}, {
|
|
1080
|
-
key: 'isEmpty',
|
|
1081
|
-
value: function isEmpty() {
|
|
1082
|
-
var storedStats = this.read();
|
|
1083
|
-
var empty = true;
|
|
1084
|
-
Object.keys(storedStats).forEach(function (key) {
|
|
1085
|
-
if (Object.keys(storedStats[key]).length > 0) {
|
|
1086
|
-
empty = false;
|
|
1087
|
-
}
|
|
1088
|
-
});
|
|
1089
|
-
|
|
1090
|
-
return empty;
|
|
1091
|
-
}
|
|
1092
|
-
}]);
|
|
1093
|
-
return StatisticsStorage;
|
|
1094
|
-
}();
|
|
1095
|
-
|
|
1096
|
-
var StatisticsSender = function () {
|
|
1097
|
-
function StatisticsSender(url, logger) {
|
|
1098
|
-
classCallCheck(this, StatisticsSender);
|
|
1099
|
-
|
|
1100
|
-
this.url = url;
|
|
1101
|
-
this.logger = logger;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
createClass(StatisticsSender, [{
|
|
1105
|
-
key: 'send',
|
|
1106
|
-
value: function send(data, errorHandler) {
|
|
1107
|
-
var logger = this.logger;
|
|
1108
|
-
|
|
1109
|
-
if (navigator.onLine === false) {
|
|
1110
|
-
logger.debug("Offline, can't send");
|
|
1111
|
-
errorHandler();
|
|
1112
|
-
return;
|
|
1113
|
-
}
|
|
1114
|
-
logger.debug("Sending data to " + this.url);
|
|
1115
|
-
|
|
1116
|
-
var req = new XMLHttpRequest();
|
|
1117
|
-
req.withCredentials = true;
|
|
1118
|
-
req.addEventListener("load", function () {
|
|
1119
|
-
// Stats sent, nothing more to do
|
|
1120
|
-
logger.debug("Response: " + req.responseText);
|
|
1121
|
-
});
|
|
1122
|
-
req.addEventListener("error", function () {
|
|
1123
|
-
logger.debug("Send failed");
|
|
1124
|
-
errorHandler();
|
|
1125
|
-
});
|
|
1126
|
-
req.addEventListener("abort", function () {
|
|
1127
|
-
logger.debug("Send aborted");
|
|
1128
|
-
errorHandler();
|
|
1129
|
-
});
|
|
1130
|
-
req.open("POST", this.url);
|
|
1131
|
-
req.setRequestHeader("Content-Type", "application/json");
|
|
1132
|
-
req.send(data);
|
|
1133
|
-
}
|
|
1134
|
-
}]);
|
|
1135
|
-
return StatisticsSender;
|
|
1136
|
-
}();
|
|
1137
|
-
|
|
1138
|
-
var StatisticsLogger = function () {
|
|
1139
|
-
function StatisticsLogger(id) {
|
|
1140
|
-
classCallCheck(this, StatisticsLogger);
|
|
1141
|
-
|
|
1142
|
-
this.id = id;
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
createClass(StatisticsLogger, [{
|
|
1146
|
-
key: '_isDebug',
|
|
1147
|
-
value: function _isDebug() {
|
|
1148
|
-
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
1149
|
-
}
|
|
1150
|
-
}, {
|
|
1151
|
-
key: 'debug',
|
|
1152
|
-
value: function debug(msg) {
|
|
1153
|
-
if (this._isDebug()) {
|
|
1154
|
-
console.info(this.id + ": " + msg);
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
}]);
|
|
1158
|
-
return StatisticsLogger;
|
|
1159
|
-
}();
|
|
1160
|
-
|
|
1161
|
-
var UsageStatistics = function () {
|
|
1162
|
-
function UsageStatistics() {
|
|
1163
|
-
classCallCheck(this, UsageStatistics);
|
|
1164
|
-
|
|
1165
|
-
this.now = new Date();
|
|
1166
|
-
this.timeNow = this.now.getTime();
|
|
1167
|
-
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
1168
|
-
this.initialDelay = 24 * 60 * 60;
|
|
1169
|
-
|
|
1170
|
-
this.logger = new StatisticsLogger("statistics");
|
|
1171
|
-
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
1172
|
-
this.gatherer = new StatisticsGatherer(this.logger);
|
|
1173
|
-
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
createClass(UsageStatistics, [{
|
|
1177
|
-
key: 'maybeGatherAndSend',
|
|
1178
|
-
value: function maybeGatherAndSend() {
|
|
1179
|
-
var _this = this;
|
|
1180
|
-
|
|
1181
|
-
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
1182
|
-
return;
|
|
1183
|
-
}
|
|
1184
|
-
this.gatherer.gather(this.storage);
|
|
1185
|
-
setTimeout(function () {
|
|
1186
|
-
_this.maybeSend();
|
|
1187
|
-
}, this.gatherDelay * 1000);
|
|
1188
|
-
}
|
|
1189
|
-
}, {
|
|
1190
|
-
key: 'lottery',
|
|
1191
|
-
value: function lottery() {
|
|
1192
|
-
return true;
|
|
1193
|
-
}
|
|
1194
|
-
}, {
|
|
1195
|
-
key: 'currentMonth',
|
|
1196
|
-
value: function currentMonth() {
|
|
1197
|
-
return this.now.getYear() * 12 + this.now.getMonth();
|
|
1198
|
-
}
|
|
1199
|
-
}, {
|
|
1200
|
-
key: 'maybeSend',
|
|
1201
|
-
value: function maybeSend() {
|
|
1202
|
-
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
1203
|
-
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
1204
|
-
|
|
1205
|
-
if (!firstUse) {
|
|
1206
|
-
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
1207
|
-
firstUse = this.timeNow;
|
|
1208
|
-
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
1212
|
-
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
1213
|
-
return;
|
|
1214
|
-
}
|
|
1215
|
-
if (this.currentMonth() <= monthProcessed) {
|
|
1216
|
-
this.logger.debug("This month has already been processed");
|
|
1217
|
-
return;
|
|
1218
|
-
}
|
|
1219
|
-
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
1220
|
-
// Use random sampling
|
|
1221
|
-
if (this.lottery()) {
|
|
1222
|
-
this.logger.debug("Congratulations, we have a winner!");
|
|
1223
|
-
} else {
|
|
1224
|
-
this.logger.debug("Sorry, no stats from you this time");
|
|
1225
|
-
return;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
this.send();
|
|
1229
|
-
}
|
|
1230
|
-
}, {
|
|
1231
|
-
key: 'send',
|
|
1232
|
-
value: function send() {
|
|
1233
|
-
// Ensure we have the latest data
|
|
1234
|
-
this.gatherer.gather(this.storage);
|
|
1235
|
-
|
|
1236
|
-
// Read, send and clean up
|
|
1237
|
-
var data = this.storage.read();
|
|
1238
|
-
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
1239
|
-
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
1240
|
-
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
|
1241
|
-
var self = this;
|
|
1242
|
-
this.sender.send(info + JSON.stringify(data), function () {
|
|
1243
|
-
// Revert the 'month processed' flag
|
|
1244
|
-
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
1245
|
-
});
|
|
1246
|
-
}
|
|
1247
|
-
}], [{
|
|
1248
|
-
key: 'version',
|
|
1249
|
-
get: function get$1() {
|
|
1250
|
-
return '2.1.2';
|
|
1251
|
-
}
|
|
1252
|
-
}, {
|
|
1253
|
-
key: 'firstUseKey',
|
|
1254
|
-
get: function get$1() {
|
|
1255
|
-
return 'vaadin.statistics.firstuse';
|
|
1256
|
-
}
|
|
1257
|
-
}, {
|
|
1258
|
-
key: 'monthProcessedKey',
|
|
1259
|
-
get: function get$1() {
|
|
1260
|
-
return 'vaadin.statistics.monthProcessed';
|
|
1261
|
-
}
|
|
1262
|
-
}, {
|
|
1263
|
-
key: 'optOutKey',
|
|
1264
|
-
get: function get$1() {
|
|
1265
|
-
return 'vaadin.statistics.optout';
|
|
1266
|
-
}
|
|
1267
|
-
}]);
|
|
1268
|
-
return UsageStatistics;
|
|
1269
|
-
}();
|
|
1270
|
-
|
|
1271
|
-
try {
|
|
1272
|
-
window.Vaadin = window.Vaadin || {};
|
|
1273
|
-
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
1274
|
-
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
1275
|
-
} catch (e) {
|
|
1276
|
-
// Intentionally ignored as this is not a problem in the app being developed
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
}());
|
|
1280
|
-
|
|
1281
|
-
vaadin-dev-mode:end **/}const Yi=function(){if(typeof go=="function")return go(qi)};/**
|
|
1282
|
-
* @license
|
|
1283
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1284
|
-
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1285
|
-
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1286
|
-
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1287
|
-
* Code distributed by Google as part of the polymer project is also
|
|
1288
|
-
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1289
|
-
*/let vo=0,ir=0;const F=[];let ne=!1;function Gi(){ne=!1;const o=F.length;for(let t=0;t<o;t++){const e=F[t];if(e)try{e()}catch(s){setTimeout(()=>{throw s})}}F.splice(0,o),ir+=o}const nr={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Wi={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},ar={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},lr={run(o){ne||(ne=!0,queueMicrotask(()=>Gi())),F.push(o);const t=vo;return vo+=1,t},cancel(o){const t=o-ir;if(t>=0){if(!F[t])throw new Error(`invalid async handle: ${o}`);F[t]=null}}};/**
|
|
1290
|
-
@license
|
|
1291
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1292
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1293
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1294
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1295
|
-
Code distributed by Google as part of the polymer project is also
|
|
1296
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1297
|
-
*/const ct=new Set;class q{static debounce(t,e,s){return t instanceof q?t._cancelAsync():t=new q,t.setConfig(e,s),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,ct.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ct.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 cr(o){ct.add(o)}function Ki(){const o=!!ct.size;return ct.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),o}const Ji=()=>{let o;do o=Ki();while(o)};/**
|
|
1298
|
-
* @license
|
|
1299
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1300
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1301
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Yi()};let jt;const bo=new Set,ur=o=>class extends we(o){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!bo.has(e)&&(window.Vaadin.registrations.push(this),bo.add(e),window.Vaadin.developmentModeCallback&&(jt=q.debounce(jt,ar,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),cr(jt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
1302
|
-
* @license
|
|
1303
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1304
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1305
|
-
*/function Zi(o){const t=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){t.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return t}function Ae(o){return o?new Set(o.split(" ")):new Set}function Tt(o){return o?[...o].join(" "):""}function dr(o,t,e){const s=Ae(o.getAttribute(t));s.add(e),o.setAttribute(t,Tt(s))}function Xi(o,t,e){const s=Ae(o.getAttribute(t));if(s.delete(e),s.size===0){o.removeAttribute(t);return}o.setAttribute(t,Tt(s))}function Qi(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
|
|
1306
|
-
* @license
|
|
1307
|
-
* Copyright (c) 2023 Vaadin Ltd.
|
|
1308
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1309
|
-
*/class hr{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 s=[],r=[];t.length&&(e=t.filter(i=>!this._storedNodes.includes(i))),this._storedNodes.length&&this._storedNodes.forEach((i,n)=>{const a=t.indexOf(i);a===-1?s.push(i):a!==n&&r.push(i)}),(e.length||s.length||r.length)&&this.callback({addedNodes:e,movedNodes:r,removedNodes:s}),this._storedNodes=t}}/**
|
|
1310
|
-
* @license
|
|
1311
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1312
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1313
|
-
*/let tn=0;function pr(){return tn++}/**
|
|
1314
|
-
* @license
|
|
1315
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1316
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1317
|
-
*/class St extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${pr()}`}constructor(t,e,s,r={}){super();const{initializer:i,multiple:n,observe:a,useUniqueId:l}=r;this.host=t,this.slotName=e,this.tagName=s,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=i,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:s}=this;let r=this.defaultNode;return!r&&s&&(r=document.createElement(s),r instanceof Element&&(e!==""&&r.setAttribute("slot",e),this.node=r,this.defaultNode=r)),r&&t.appendChild(r),r}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}]`,s=this.host.shadowRoot.querySelector(e);this.__slotObserver=new hr(s,({addedNodes:r,removedNodes:i})=>{const n=this.multiple?this.nodes:[this.node],a=r.filter(l=>!Qi(l)&&!n.includes(l));i.length&&(this.nodes=n.filter(l=>!i.includes(l)),i.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)))})}}/**
|
|
1318
|
-
* @license
|
|
1319
|
-
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
1320
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1321
|
-
*/class mr extends St{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}}))}}/**
|
|
1322
|
-
* @license
|
|
1323
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
1324
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1325
|
-
*/const en=m`
|
|
1326
|
-
[part='clear-button'] {
|
|
1327
|
-
display: none;
|
|
1328
|
-
cursor: default;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
[part='clear-button']::before {
|
|
1332
|
-
content: '\\2715';
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
:host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
|
|
1336
|
-
display: block;
|
|
1337
|
-
}
|
|
1338
|
-
`;/**
|
|
1339
|
-
* @license
|
|
1340
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
1341
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1342
|
-
*/const on=m`
|
|
1343
|
-
:host {
|
|
1344
|
-
display: inline-flex;
|
|
1345
|
-
outline: none;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
:host::before {
|
|
1349
|
-
content: '\\2003';
|
|
1350
|
-
width: 0;
|
|
1351
|
-
display: inline-block;
|
|
1352
|
-
/* Size and position this element on the same vertical position as the input-field element
|
|
1353
|
-
to make vertical align for the host element work as expected */
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
:host([hidden]) {
|
|
1357
|
-
display: none !important;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
:host(:not([has-label])) [part='label'] {
|
|
1361
|
-
display: none;
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
@media (forced-colors: active) {
|
|
1365
|
-
:host(:not([readonly])) [part='input-field'] {
|
|
1366
|
-
outline: 1px solid;
|
|
1367
|
-
outline-offset: -1px;
|
|
1368
|
-
}
|
|
1369
|
-
:host([focused]) [part='input-field'] {
|
|
1370
|
-
outline-width: 2px;
|
|
1371
|
-
}
|
|
1372
|
-
:host([disabled]) [part='input-field'] {
|
|
1373
|
-
outline-color: GrayText;
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
`;/**
|
|
1377
|
-
* @license
|
|
1378
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
1379
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1380
|
-
*/const rn=m`
|
|
1381
|
-
[class$='container'] {
|
|
1382
|
-
display: flex;
|
|
1383
|
-
flex-direction: column;
|
|
1384
|
-
min-width: 100%;
|
|
1385
|
-
max-width: 100%;
|
|
1386
|
-
width: var(--vaadin-field-default-width, 12em);
|
|
1387
|
-
}
|
|
1388
|
-
`;/**
|
|
1389
|
-
* @license
|
|
1390
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
1391
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1392
|
-
*/const sn=[on,rn,en];/**
|
|
1393
|
-
* @license
|
|
1394
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1395
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1396
|
-
*/class nn extends St{constructor(t,e){super(t,"input","input",{initializer:(s,r)=>{r.value&&(s.value=r.value),r.type&&s.setAttribute("type",r.type),s.id=this.defaultId,typeof e=="function"&&e(s)},useUniqueId:!0})}}/**
|
|
1397
|
-
* @license
|
|
1398
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1399
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1400
|
-
*/let Ce=!1;window.addEventListener("keydown",()=>{Ce=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ce=!1},{capture:!0});function an(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function ln(){return Ce}function cn(o){const t=o.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(o);return e.visibility==="hidden"||e.display==="none"}function un(o,t){const e=Math.max(o.tabIndex,0),s=Math.max(t.tabIndex,0);return e===0||s===0?s>e:e>s}function dn(o,t){const e=[];for(;o.length>0&&t.length>0;)un(o[0],t[0])?e.push(t.shift()):e.push(o.shift());return e.concat(o,t)}function ae(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),s=ae(o.slice(0,e)),r=ae(o.slice(e));return dn(s,r)}function hn(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function pn(o){return o.getRootNode().activeElement===o}function mn(o){if(!hn(o))return-1;const t=o.getAttribute("tabindex")||0;return Number(t)}function fr(o,t){if(o.nodeType!==Node.ELEMENT_NODE||cn(o))return!1;const e=o,s=mn(e);let r=s>0;s>=0&&t.push(e);let i=[];return e.localName==="slot"?i=e.assignedNodes({flatten:!0}):i=(e.shadowRoot||e).children,[...i].forEach(n=>{r=fr(n,t)||r}),r}function fn(o){const t=[];return fr(o,t)?ae(t):t}/**
|
|
1401
|
-
* @license
|
|
1402
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1403
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1404
|
-
*/const Ee=v(o=>class extends o{get _keyboardActive(){return ln()}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}});/**
|
|
1405
|
-
* @license
|
|
1406
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1407
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1408
|
-
*/const Pe=v(o=>class extends o{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()}});/**
|
|
1409
|
-
* @license
|
|
1410
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1411
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1412
|
-
*/const _r=o=>class extends Pe(o){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,s){super._disabledChanged(e,s),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):s&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
|
|
1413
|
-
* @license
|
|
1414
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1415
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1416
|
-
*/const gr=v(o=>class extends Ee(_r(o)){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,s){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):s&&this._removeFocusListeners(s)}_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,s){super._disabledChanged(e,s),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)}});/**
|
|
1417
|
-
* @license
|
|
1418
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1419
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1420
|
-
*/const Nt=v(o=>class extends o{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){}});/**
|
|
1421
|
-
* @license
|
|
1422
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1423
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1424
|
-
*/const qt=new WeakMap;function _n(o){return qt.has(o)||qt.set(o,new Set),qt.get(o)}function gn(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const vn=v(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),s=_n(e);this.slotStyles.forEach(r=>{s.has(r)||(gn(r,e),s.add(r))})}});/**
|
|
1425
|
-
* @license
|
|
1426
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1427
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1428
|
-
*/const kt=o=>o.test(navigator.userAgent),le=o=>o.test(navigator.platform),bn=o=>o.test(navigator.vendor);kt(/Android/u);kt(/Chrome/u)&&bn(/Google Inc/u);const yn=kt(/Firefox/u),xn=le(/^iPad/u)||le(/^Mac/u)&&navigator.maxTouchPoints>1,wn=le(/^iPhone/u),An=wn||xn,Cn=kt(/^((?!chrome|android).)*safari/iu),vr=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
|
|
1429
|
-
* @license
|
|
1430
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1431
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1432
|
-
*/const Te=v(o=>class extends o{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,s){e?this._addInputListeners(e):s&&this._removeInputListeners(s)}_hasInputValueChanged(e,s){(e||s)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const s=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=s.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,s){this._toggleHasValue(this._hasValue),!(e===""&&s===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const s=e.composedPath()[0];this._hasInputValue=s.value.length>0}});/**
|
|
1433
|
-
* @license
|
|
1434
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1435
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1436
|
-
*/const En=o=>class extends Te(Nt(o)){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(),vr||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}))}};/**
|
|
1437
|
-
* @license
|
|
1438
|
-
* Copyright (c) 2023 Vaadin Ltd.
|
|
1439
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1440
|
-
*/const Yt=new Map;function Se(o){return Yt.has(o)||Yt.set(o,new WeakMap),Yt.get(o)}function br(o,t){o&&o.removeAttribute(t)}function yr(o,t){if(!o||!t)return;const e=Se(t);if(e.has(o))return;const s=Ae(o.getAttribute(t));e.set(o,new Set(s))}function Pn(o,t){if(!o||!t)return;const e=Se(t),s=e.get(o);!s||s.size===0?o.removeAttribute(t):dr(o,t,Tt(s)),e.delete(o)}function Gt(o,t,e={newId:null,oldId:null,fromUser:!1}){if(!o||!t)return;const{newId:s,oldId:r,fromUser:i}=e,n=Se(t),a=n.get(o);if(!i&&a){r&&a.delete(r),s&&a.add(s);return}i&&(a?s||n.delete(o):yr(o,t),br(o,t)),Xi(o,t,r);const l=s||Tt(a);l&&dr(o,t,l)}function Tn(o,t){yr(o,t),br(o,t)}/**
|
|
1441
|
-
* @license
|
|
1442
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1443
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1444
|
-
*/class Sn{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 s=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,s,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?(Tn(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Pn(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,s){Gt(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:s})}__setErrorIdToAriaAttribute(t,e){Gt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Gt(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")))}}/**
|
|
1445
|
-
* @license
|
|
1446
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1447
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1448
|
-
*/const Ot=v(o=>typeof o.prototype.addController=="function"?o:class extends o{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)}});/**
|
|
1449
|
-
* @license
|
|
1450
|
-
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
1451
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1452
|
-
*/class Ne extends St{constructor(t,e,s,r={}){super(t,e,s,It(Mt({},r),{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(s=>{const r=s.target,i=r===this.node;s.type==="attributes"?i&&this.__updateNodeId(r):(i||r.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)}}/**
|
|
1453
|
-
* @license
|
|
1454
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1455
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1456
|
-
*/class Nn extends Ne{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:s}=this,r=!!(s&&e&&e.trim()!=="");t&&(t.textContent=r?e:"",t.hidden=!r,r?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}/**
|
|
1457
|
-
* @license
|
|
1458
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1459
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1460
|
-
*/class kn extends Ne{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)}}/**
|
|
1461
|
-
* @license
|
|
1462
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1463
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1464
|
-
*/class On extends Ne{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)}}/**
|
|
1465
|
-
* @license
|
|
1466
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1467
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1468
|
-
*/const xr=v(o=>class extends Ot(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new On(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)}});/**
|
|
1469
|
-
* @license
|
|
1470
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1471
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1472
|
-
*/const ke=v(o=>class extends o{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}});/**
|
|
1473
|
-
* @license
|
|
1474
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1475
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1476
|
-
*/const wr=o=>class extends ke(xr(Ot(o))){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 Sn(this),this._helperController=new kn(this),this._errorController=new Nn(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:s,node:r}=e.detail;this.__labelChanged(s,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:s,node:r}=e.detail;this.toggleAttribute("has-helper",s),this.__helperChanged(s,r)})}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,s){e?this._fieldAriaController.setHelperId(s.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,s){e?this._fieldAriaController.setLabelId(s.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 s=this._errorNode;this._fieldAriaController.setErrorId(s&&s.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
1477
|
-
* @license
|
|
1478
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1479
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1480
|
-
*/const Ar=v(o=>class extends o{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((s,r)=>{this._delegateAttribute(s,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((s,r)=>{this._delegateProperty(s,e[r])})}_delegateAttribute(e,s){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",s?"true":!1),typeof s=="boolean"?this.stateTarget.toggleAttribute(e,s):s?this.stateTarget.setAttribute(e,s):this.stateTarget.removeAttribute(e))}_delegateProperty(e,s){this.stateTarget&&(this.stateTarget[e]=s)}});/**
|
|
1481
|
-
* @license
|
|
1482
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1483
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1484
|
-
*/const Cr=v(o=>class extends Ar(ke(Te(o))){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(s=>this.__isValidConstraint(s))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...s){if(!e)return;const r=this._hasValidConstraints(s),i=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():i&&this._setInvalid(!1),this.__previousHasConstraints=r}_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}});/**
|
|
1485
|
-
* @license
|
|
1486
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1487
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1488
|
-
*/const zn=o=>class extends vn(gr(Cr(wr(En(Nt(o)))))){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[`
|
|
1489
|
-
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
1490
|
-
font: inherit;
|
|
1491
|
-
color: inherit;
|
|
1492
|
-
}
|
|
1493
|
-
`]}_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=q.debounce(this._preventInputDebouncer,nr.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 s=e.clipboardData.getData("text");this.__allowedTextRegExp.test(s)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const s=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(s)||(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(s){console.error(s)}}};/**
|
|
1494
|
-
* @license
|
|
1495
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
1496
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1497
|
-
*/class Mn{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",s=>{this.__initLabel(s.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)}}/**
|
|
1498
|
-
* @license
|
|
1499
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1500
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1501
|
-
*/class In extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}Y(In);const dt=(o,...t)=>{Ct(`lumo-${o}`,t)};/**
|
|
1502
|
-
* @license
|
|
1503
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1504
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1505
|
-
*/const Dn=m`
|
|
1506
|
-
:host {
|
|
1507
|
-
/* Base (background) */
|
|
1508
|
-
--lumo-base-color: #fff;
|
|
1509
|
-
|
|
1510
|
-
/* Tint */
|
|
1511
|
-
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
1512
|
-
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
1513
|
-
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
1514
|
-
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
1515
|
-
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
1516
|
-
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
1517
|
-
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
1518
|
-
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
1519
|
-
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
1520
|
-
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
1521
|
-
--lumo-tint: #fff;
|
|
1522
|
-
|
|
1523
|
-
/* Shade */
|
|
1524
|
-
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
1525
|
-
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
1526
|
-
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
1527
|
-
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
1528
|
-
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
1529
|
-
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
1530
|
-
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
1531
|
-
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
1532
|
-
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
1533
|
-
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
1534
|
-
--lumo-shade: hsl(214, 35%, 15%);
|
|
1535
|
-
|
|
1536
|
-
/* Contrast */
|
|
1537
|
-
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
1538
|
-
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
1539
|
-
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
1540
|
-
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
1541
|
-
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
1542
|
-
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
1543
|
-
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
1544
|
-
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
1545
|
-
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
1546
|
-
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
1547
|
-
--lumo-contrast: var(--lumo-shade);
|
|
1548
|
-
|
|
1549
|
-
/* Text */
|
|
1550
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
1551
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
1552
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
1553
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
1554
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
1555
|
-
|
|
1556
|
-
/* Primary */
|
|
1557
|
-
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
1558
|
-
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
1559
|
-
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
1560
|
-
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
1561
|
-
--lumo-primary-contrast-color: #fff;
|
|
1562
|
-
|
|
1563
|
-
/* Error */
|
|
1564
|
-
--lumo-error-color: hsl(3, 85%, 48%);
|
|
1565
|
-
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
1566
|
-
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
1567
|
-
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
1568
|
-
--lumo-error-contrast-color: #fff;
|
|
1569
|
-
|
|
1570
|
-
/* Success */
|
|
1571
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
1572
|
-
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
1573
|
-
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
1574
|
-
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
1575
|
-
--lumo-success-contrast-color: #fff;
|
|
1576
|
-
|
|
1577
|
-
/* Warning */
|
|
1578
|
-
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
1579
|
-
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
1580
|
-
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
1581
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
/* forced-colors mode adjustments */
|
|
1585
|
-
@media (forced-colors: active) {
|
|
1586
|
-
html {
|
|
1587
|
-
--lumo-disabled-text-color: GrayText;
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
`;dt("color-props",Dn);const $n=m`
|
|
1591
|
-
[theme~='dark'] {
|
|
1592
|
-
/* Base (background) */
|
|
1593
|
-
--lumo-base-color: hsl(214, 35%, 21%);
|
|
1594
|
-
|
|
1595
|
-
/* Tint */
|
|
1596
|
-
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
1597
|
-
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
1598
|
-
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
1599
|
-
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
1600
|
-
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
1601
|
-
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
1602
|
-
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
1603
|
-
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
1604
|
-
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
1605
|
-
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
1606
|
-
--lumo-tint: hsl(214, 100%, 98%);
|
|
1607
|
-
|
|
1608
|
-
/* Shade */
|
|
1609
|
-
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
1610
|
-
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
1611
|
-
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
1612
|
-
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
1613
|
-
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
1614
|
-
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
1615
|
-
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
1616
|
-
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
1617
|
-
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
1618
|
-
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
1619
|
-
--lumo-shade: hsl(214, 33%, 13%);
|
|
1620
|
-
|
|
1621
|
-
/* Contrast */
|
|
1622
|
-
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
1623
|
-
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
1624
|
-
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
1625
|
-
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
1626
|
-
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
1627
|
-
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
1628
|
-
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
1629
|
-
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
1630
|
-
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
1631
|
-
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
1632
|
-
--lumo-contrast: var(--lumo-tint);
|
|
1633
|
-
|
|
1634
|
-
/* Text */
|
|
1635
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
1636
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
1637
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
1638
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
1639
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
1640
|
-
|
|
1641
|
-
/* Primary */
|
|
1642
|
-
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
1643
|
-
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
1644
|
-
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
1645
|
-
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
1646
|
-
--lumo-primary-contrast-color: #fff;
|
|
1647
|
-
|
|
1648
|
-
/* Error */
|
|
1649
|
-
--lumo-error-color: hsl(3, 79%, 49%);
|
|
1650
|
-
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
1651
|
-
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
1652
|
-
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
1653
|
-
|
|
1654
|
-
/* Success */
|
|
1655
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
1656
|
-
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
1657
|
-
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
1658
|
-
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
1659
|
-
|
|
1660
|
-
/* Warning */
|
|
1661
|
-
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
1662
|
-
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
1663
|
-
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
1664
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
html {
|
|
1668
|
-
color: var(--lumo-body-text-color);
|
|
1669
|
-
background-color: var(--lumo-base-color);
|
|
1670
|
-
color-scheme: light;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
[theme~='dark'] {
|
|
1674
|
-
color: var(--lumo-body-text-color);
|
|
1675
|
-
background-color: var(--lumo-base-color);
|
|
1676
|
-
color-scheme: dark;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
h1,
|
|
1680
|
-
h2,
|
|
1681
|
-
h3,
|
|
1682
|
-
h4,
|
|
1683
|
-
h5,
|
|
1684
|
-
h6 {
|
|
1685
|
-
color: var(--lumo-header-text-color);
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
a:where(:any-link) {
|
|
1689
|
-
color: var(--lumo-primary-text-color);
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
a:not(:any-link) {
|
|
1693
|
-
color: var(--lumo-disabled-text-color);
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
blockquote {
|
|
1697
|
-
color: var(--lumo-secondary-text-color);
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
code,
|
|
1701
|
-
pre {
|
|
1702
|
-
background-color: var(--lumo-contrast-10pct);
|
|
1703
|
-
border-radius: var(--lumo-border-radius-m);
|
|
1704
|
-
}
|
|
1705
|
-
`;C("",$n,{moduleId:"lumo-color"});/**
|
|
1706
|
-
* @license
|
|
1707
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1708
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1709
|
-
*/const Ln=m`
|
|
1710
|
-
:host {
|
|
1711
|
-
--lumo-size-xs: 1.625rem;
|
|
1712
|
-
--lumo-size-s: 1.875rem;
|
|
1713
|
-
--lumo-size-m: 2.25rem;
|
|
1714
|
-
--lumo-size-l: 2.75rem;
|
|
1715
|
-
--lumo-size-xl: 3.5rem;
|
|
1716
|
-
|
|
1717
|
-
/* Icons */
|
|
1718
|
-
--lumo-icon-size-s: 1.25em;
|
|
1719
|
-
--lumo-icon-size-m: 1.5em;
|
|
1720
|
-
--lumo-icon-size-l: 2.25em;
|
|
1721
|
-
/* For backwards compatibility */
|
|
1722
|
-
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
1723
|
-
}
|
|
1724
|
-
`;dt("sizing-props",Ln);/**
|
|
1725
|
-
* @license
|
|
1726
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1727
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1728
|
-
*/const Rn=m`
|
|
1729
|
-
:host {
|
|
1730
|
-
/* Square */
|
|
1731
|
-
--lumo-space-xs: 0.25rem;
|
|
1732
|
-
--lumo-space-s: 0.5rem;
|
|
1733
|
-
--lumo-space-m: 1rem;
|
|
1734
|
-
--lumo-space-l: 1.5rem;
|
|
1735
|
-
--lumo-space-xl: 2.5rem;
|
|
1736
|
-
|
|
1737
|
-
/* Wide */
|
|
1738
|
-
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
1739
|
-
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
1740
|
-
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
1741
|
-
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
1742
|
-
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
1743
|
-
|
|
1744
|
-
/* Tall */
|
|
1745
|
-
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
1746
|
-
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
1747
|
-
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
1748
|
-
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
1749
|
-
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
1750
|
-
}
|
|
1751
|
-
`;dt("spacing-props",Rn);/**
|
|
1752
|
-
* @license
|
|
1753
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1754
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1755
|
-
*/const Bn=m`
|
|
1756
|
-
:host {
|
|
1757
|
-
/* Border radius */
|
|
1758
|
-
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
1759
|
-
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
1760
|
-
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
1761
|
-
|
|
1762
|
-
/* Shadow */
|
|
1763
|
-
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
1764
|
-
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
1765
|
-
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
1766
|
-
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
1767
|
-
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
1768
|
-
|
|
1769
|
-
/* Clickable element cursor */
|
|
1770
|
-
--lumo-clickable-cursor: default;
|
|
1771
|
-
}
|
|
1772
|
-
`;m`
|
|
1773
|
-
html {
|
|
1774
|
-
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
1775
|
-
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
1776
|
-
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
1777
|
-
}
|
|
1778
|
-
`;dt("style-props",Bn);/**
|
|
1779
|
-
* @license
|
|
1780
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1781
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1782
|
-
*/const Fn=m`
|
|
1783
|
-
:host {
|
|
1784
|
-
/* prettier-ignore */
|
|
1785
|
-
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
1786
|
-
|
|
1787
|
-
/* Font sizes */
|
|
1788
|
-
--lumo-font-size-xxs: 0.75rem;
|
|
1789
|
-
--lumo-font-size-xs: 0.8125rem;
|
|
1790
|
-
--lumo-font-size-s: 0.875rem;
|
|
1791
|
-
--lumo-font-size-m: 1rem;
|
|
1792
|
-
--lumo-font-size-l: 1.125rem;
|
|
1793
|
-
--lumo-font-size-xl: 1.375rem;
|
|
1794
|
-
--lumo-font-size-xxl: 1.75rem;
|
|
1795
|
-
--lumo-font-size-xxxl: 2.5rem;
|
|
1796
|
-
|
|
1797
|
-
/* Line heights */
|
|
1798
|
-
--lumo-line-height-xs: 1.25;
|
|
1799
|
-
--lumo-line-height-s: 1.375;
|
|
1800
|
-
--lumo-line-height-m: 1.625;
|
|
1801
|
-
}
|
|
1802
|
-
`,Un=m`
|
|
1803
|
-
body,
|
|
1804
|
-
:host {
|
|
1805
|
-
font-family: var(--lumo-font-family);
|
|
1806
|
-
font-size: var(--lumo-font-size-m);
|
|
1807
|
-
line-height: var(--lumo-line-height-m);
|
|
1808
|
-
-webkit-text-size-adjust: 100%;
|
|
1809
|
-
-webkit-font-smoothing: antialiased;
|
|
1810
|
-
-moz-osx-font-smoothing: grayscale;
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
small,
|
|
1814
|
-
[theme~='font-size-s'] {
|
|
1815
|
-
font-size: var(--lumo-font-size-s);
|
|
1816
|
-
line-height: var(--lumo-line-height-s);
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
[theme~='font-size-xs'] {
|
|
1820
|
-
font-size: var(--lumo-font-size-xs);
|
|
1821
|
-
line-height: var(--lumo-line-height-xs);
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
:where(h1, h2, h3, h4, h5, h6) {
|
|
1825
|
-
font-weight: 600;
|
|
1826
|
-
line-height: var(--lumo-line-height-xs);
|
|
1827
|
-
margin-block: 0;
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
:where(h1) {
|
|
1831
|
-
font-size: var(--lumo-font-size-xxxl);
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
:where(h2) {
|
|
1835
|
-
font-size: var(--lumo-font-size-xxl);
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
:where(h3) {
|
|
1839
|
-
font-size: var(--lumo-font-size-xl);
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
:where(h4) {
|
|
1843
|
-
font-size: var(--lumo-font-size-l);
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
:where(h5) {
|
|
1847
|
-
font-size: var(--lumo-font-size-m);
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
:where(h6) {
|
|
1851
|
-
font-size: var(--lumo-font-size-xs);
|
|
1852
|
-
text-transform: uppercase;
|
|
1853
|
-
letter-spacing: 0.03em;
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
p,
|
|
1857
|
-
blockquote {
|
|
1858
|
-
margin-top: 0.5em;
|
|
1859
|
-
margin-bottom: 0.75em;
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
a {
|
|
1863
|
-
text-decoration: none;
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
a:where(:any-link):hover {
|
|
1867
|
-
text-decoration: underline;
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
hr {
|
|
1871
|
-
display: block;
|
|
1872
|
-
align-self: stretch;
|
|
1873
|
-
height: 1px;
|
|
1874
|
-
border: 0;
|
|
1875
|
-
padding: 0;
|
|
1876
|
-
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
1877
|
-
background-color: var(--lumo-contrast-10pct);
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
blockquote {
|
|
1881
|
-
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
b,
|
|
1885
|
-
strong {
|
|
1886
|
-
font-weight: 600;
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
/* RTL specific styles */
|
|
1890
|
-
blockquote[dir='rtl'] {
|
|
1891
|
-
border-left: none;
|
|
1892
|
-
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1893
|
-
}
|
|
1894
|
-
`;C("",Un,{moduleId:"lumo-typography"});dt("typography-props",Fn);const Er=m`
|
|
1895
|
-
:host {
|
|
1896
|
-
/* Sizing */
|
|
1897
|
-
--lumo-button-size: var(--lumo-size-m);
|
|
1898
|
-
min-width: calc(var(--lumo-button-size) * 2);
|
|
1899
|
-
height: var(--lumo-button-size);
|
|
1900
|
-
padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
|
|
1901
|
-
margin: var(--lumo-space-xs) 0;
|
|
1902
|
-
box-sizing: border-box;
|
|
1903
|
-
/* Style */
|
|
1904
|
-
font-family: var(--lumo-font-family);
|
|
1905
|
-
font-size: var(--lumo-font-size-m);
|
|
1906
|
-
font-weight: 500;
|
|
1907
|
-
color: var(--_lumo-button-color, var(--lumo-primary-text-color));
|
|
1908
|
-
background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
|
|
1909
|
-
border-radius: var(--lumo-border-radius-m);
|
|
1910
|
-
cursor: var(--lumo-clickable-cursor);
|
|
1911
|
-
-webkit-tap-highlight-color: transparent;
|
|
1912
|
-
-webkit-font-smoothing: antialiased;
|
|
1913
|
-
-moz-osx-font-smoothing: grayscale;
|
|
1914
|
-
flex-shrink: 0;
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
|
1918
|
-
[part='label'],
|
|
1919
|
-
[part='prefix'],
|
|
1920
|
-
[part='suffix'] {
|
|
1921
|
-
line-height: var(--lumo-line-height-xs);
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
|
-
[part='label'] {
|
|
1925
|
-
padding: calc(var(--lumo-button-size) / 6) 0;
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
:host([theme~='small']) {
|
|
1929
|
-
font-size: var(--lumo-font-size-s);
|
|
1930
|
-
--lumo-button-size: var(--lumo-size-s);
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
:host([theme~='large']) {
|
|
1934
|
-
font-size: var(--lumo-font-size-l);
|
|
1935
|
-
--lumo-button-size: var(--lumo-size-l);
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
/* For interaction states */
|
|
1939
|
-
:host::before,
|
|
1940
|
-
:host::after {
|
|
1941
|
-
content: '';
|
|
1942
|
-
/* We rely on the host always being relative */
|
|
1943
|
-
position: absolute;
|
|
1944
|
-
z-index: 1;
|
|
1945
|
-
inset: 0;
|
|
1946
|
-
background-color: currentColor;
|
|
1947
|
-
border-radius: inherit;
|
|
1948
|
-
opacity: 0;
|
|
1949
|
-
pointer-events: none;
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
/* Hover */
|
|
1953
|
-
|
|
1954
|
-
@media (any-hover: hover) {
|
|
1955
|
-
:host(:hover)::before {
|
|
1956
|
-
opacity: 0.02;
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
/* Active */
|
|
1961
|
-
|
|
1962
|
-
:host::after {
|
|
1963
|
-
transition: opacity 1.4s, transform 0.1s;
|
|
1964
|
-
filter: blur(8px);
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
:host([active])::before {
|
|
1968
|
-
opacity: 0.05;
|
|
1969
|
-
transition-duration: 0s;
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
:host([active])::after {
|
|
1973
|
-
opacity: 0.1;
|
|
1974
|
-
transition-duration: 0s, 0s;
|
|
1975
|
-
transform: scale(0);
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
/* Keyboard focus */
|
|
1979
|
-
|
|
1980
|
-
:host([focus-ring]) {
|
|
1981
|
-
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
:host([theme~='primary'][focus-ring]) {
|
|
1985
|
-
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
/* Types (primary, tertiary, tertiary-inline */
|
|
1989
|
-
|
|
1990
|
-
:host([theme~='tertiary']),
|
|
1991
|
-
:host([theme~='tertiary-inline']) {
|
|
1992
|
-
background-color: transparent !important;
|
|
1993
|
-
min-width: 0;
|
|
1994
|
-
}
|
|
1995
|
-
|
|
1996
|
-
:host([theme~='tertiary']) {
|
|
1997
|
-
padding: 0 calc(var(--lumo-button-size) / 6);
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2000
|
-
:host([theme~='tertiary-inline'])::before {
|
|
2001
|
-
display: none;
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
:host([theme~='tertiary-inline']) {
|
|
2005
|
-
margin: 0;
|
|
2006
|
-
height: auto;
|
|
2007
|
-
padding: 0;
|
|
2008
|
-
line-height: inherit;
|
|
2009
|
-
font-size: inherit;
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
:host([theme~='tertiary-inline']) [part='label'] {
|
|
2013
|
-
padding: 0;
|
|
2014
|
-
overflow: visible;
|
|
2015
|
-
line-height: inherit;
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2018
|
-
:host([theme~='primary']) {
|
|
2019
|
-
background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
|
|
2020
|
-
color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
|
|
2021
|
-
font-weight: 600;
|
|
2022
|
-
min-width: calc(var(--lumo-button-size) * 2.5);
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
:host([theme~='primary'])::before {
|
|
2026
|
-
background-color: black;
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
@media (any-hover: hover) {
|
|
2030
|
-
:host([theme~='primary']:hover)::before {
|
|
2031
|
-
opacity: 0.05;
|
|
2032
|
-
}
|
|
2033
|
-
}
|
|
2034
|
-
|
|
2035
|
-
:host([theme~='primary'][active])::before {
|
|
2036
|
-
opacity: 0.1;
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
:host([theme~='primary'][active])::after {
|
|
2040
|
-
opacity: 0.2;
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
|
-
/* Colors (success, error, contrast) */
|
|
2044
|
-
|
|
2045
|
-
:host([theme~='success']) {
|
|
2046
|
-
color: var(--lumo-success-text-color);
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
:host([theme~='success'][theme~='primary']) {
|
|
2050
|
-
background-color: var(--lumo-success-color);
|
|
2051
|
-
color: var(--lumo-success-contrast-color);
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
|
-
:host([theme~='error']) {
|
|
2055
|
-
color: var(--lumo-error-text-color);
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
:host([theme~='error'][theme~='primary']) {
|
|
2059
|
-
background-color: var(--lumo-error-color);
|
|
2060
|
-
color: var(--lumo-error-contrast-color);
|
|
2061
|
-
}
|
|
2062
|
-
|
|
2063
|
-
:host([theme~='contrast']) {
|
|
2064
|
-
color: var(--lumo-contrast);
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
:host([theme~='contrast'][theme~='primary']) {
|
|
2068
|
-
background-color: var(--lumo-contrast);
|
|
2069
|
-
color: var(--lumo-base-color);
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
/* Disabled state. Keep selectors after other color variants. */
|
|
2073
|
-
|
|
2074
|
-
:host([disabled]) {
|
|
2075
|
-
pointer-events: none;
|
|
2076
|
-
color: var(--lumo-disabled-text-color);
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
:host([theme~='primary'][disabled]) {
|
|
2080
|
-
background-color: var(--lumo-contrast-30pct);
|
|
2081
|
-
color: var(--lumo-base-color);
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
:host([theme~='primary'][disabled]) [part] {
|
|
2085
|
-
opacity: 0.7;
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
/* Icons */
|
|
2089
|
-
|
|
2090
|
-
[part] ::slotted(vaadin-icon) {
|
|
2091
|
-
display: inline-block;
|
|
2092
|
-
width: var(--lumo-icon-size-m);
|
|
2093
|
-
height: var(--lumo-icon-size-m);
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
2097
|
-
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
2098
|
-
padding: 0.25em;
|
|
2099
|
-
box-sizing: border-box !important;
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
|
-
[part='prefix'] {
|
|
2103
|
-
margin-left: -0.25em;
|
|
2104
|
-
margin-right: 0.25em;
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
[part='suffix'] {
|
|
2108
|
-
margin-left: 0.25em;
|
|
2109
|
-
margin-right: -0.25em;
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
/* Icon-only */
|
|
2113
|
-
|
|
2114
|
-
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
|
2115
|
-
min-width: var(--lumo-button-size);
|
|
2116
|
-
padding-left: calc(var(--lumo-button-size) / 4);
|
|
2117
|
-
padding-right: calc(var(--lumo-button-size) / 4);
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
:host([theme~='icon']) [part='prefix'],
|
|
2121
|
-
:host([theme~='icon']) [part='suffix'] {
|
|
2122
|
-
margin-left: 0;
|
|
2123
|
-
margin-right: 0;
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
/* RTL specific styles */
|
|
2127
|
-
|
|
2128
|
-
:host([dir='rtl']) [part='prefix'] {
|
|
2129
|
-
margin-left: 0.25em;
|
|
2130
|
-
margin-right: -0.25em;
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
:host([dir='rtl']) [part='suffix'] {
|
|
2134
|
-
margin-left: -0.25em;
|
|
2135
|
-
margin-right: 0.25em;
|
|
2136
|
-
}
|
|
2137
|
-
|
|
2138
|
-
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
|
2139
|
-
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
|
2140
|
-
margin-left: 0;
|
|
2141
|
-
margin-right: 0;
|
|
2142
|
-
}
|
|
2143
|
-
`;C("vaadin-button",Er,{moduleId:"lumo-button"});/**
|
|
2144
|
-
* @license
|
|
2145
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2146
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2147
|
-
*/class Hn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}Y(Hn);const G=(o,...t)=>{Ct(`lumo-${o}`,t)};/**
|
|
2148
|
-
* @license
|
|
2149
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2150
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2151
|
-
*/const Vn=m`
|
|
2152
|
-
@font-face {
|
|
2153
|
-
font-family: 'lumo-icons';
|
|
2154
|
-
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==)
|
|
2155
|
-
format('woff');
|
|
2156
|
-
font-weight: normal;
|
|
2157
|
-
font-style: normal;
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
html {
|
|
2161
|
-
--lumo-icons-align-center: '\\ea01';
|
|
2162
|
-
--lumo-icons-align-left: '\\ea02';
|
|
2163
|
-
--lumo-icons-align-right: '\\ea03';
|
|
2164
|
-
--lumo-icons-angle-down: '\\ea04';
|
|
2165
|
-
--lumo-icons-angle-left: '\\ea05';
|
|
2166
|
-
--lumo-icons-angle-right: '\\ea06';
|
|
2167
|
-
--lumo-icons-angle-up: '\\ea07';
|
|
2168
|
-
--lumo-icons-arrow-down: '\\ea08';
|
|
2169
|
-
--lumo-icons-arrow-left: '\\ea09';
|
|
2170
|
-
--lumo-icons-arrow-right: '\\ea0a';
|
|
2171
|
-
--lumo-icons-arrow-up: '\\ea0b';
|
|
2172
|
-
--lumo-icons-bar-chart: '\\ea0c';
|
|
2173
|
-
--lumo-icons-bell: '\\ea0d';
|
|
2174
|
-
--lumo-icons-calendar: '\\ea0e';
|
|
2175
|
-
--lumo-icons-checkmark: '\\ea0f';
|
|
2176
|
-
--lumo-icons-chevron-down: '\\ea10';
|
|
2177
|
-
--lumo-icons-chevron-left: '\\ea11';
|
|
2178
|
-
--lumo-icons-chevron-right: '\\ea12';
|
|
2179
|
-
--lumo-icons-chevron-up: '\\ea13';
|
|
2180
|
-
--lumo-icons-clock: '\\ea14';
|
|
2181
|
-
--lumo-icons-cog: '\\ea15';
|
|
2182
|
-
--lumo-icons-cross: '\\ea16';
|
|
2183
|
-
--lumo-icons-download: '\\ea17';
|
|
2184
|
-
--lumo-icons-dropdown: '\\ea18';
|
|
2185
|
-
--lumo-icons-edit: '\\ea19';
|
|
2186
|
-
--lumo-icons-error: '\\ea1a';
|
|
2187
|
-
--lumo-icons-eye: '\\ea1b';
|
|
2188
|
-
--lumo-icons-eye-disabled: '\\ea1c';
|
|
2189
|
-
--lumo-icons-menu: '\\ea1d';
|
|
2190
|
-
--lumo-icons-minus: '\\ea1e';
|
|
2191
|
-
--lumo-icons-ordered-list: '\\ea1f';
|
|
2192
|
-
--lumo-icons-phone: '\\ea20';
|
|
2193
|
-
--lumo-icons-photo: '\\ea21';
|
|
2194
|
-
--lumo-icons-play: '\\ea22';
|
|
2195
|
-
--lumo-icons-plus: '\\ea23';
|
|
2196
|
-
--lumo-icons-redo: '\\ea24';
|
|
2197
|
-
--lumo-icons-reload: '\\ea25';
|
|
2198
|
-
--lumo-icons-search: '\\ea26';
|
|
2199
|
-
--lumo-icons-undo: '\\ea27';
|
|
2200
|
-
--lumo-icons-unordered-list: '\\ea28';
|
|
2201
|
-
--lumo-icons-upload: '\\ea29';
|
|
2202
|
-
--lumo-icons-user: '\\ea2a';
|
|
2203
|
-
}
|
|
2204
|
-
`;G("font-icons",Vn);/**
|
|
2205
|
-
* @license
|
|
2206
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2207
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2208
|
-
*/const jn=m`
|
|
2209
|
-
:host {
|
|
2210
|
-
--lumo-size-xs: 1.625rem;
|
|
2211
|
-
--lumo-size-s: 1.875rem;
|
|
2212
|
-
--lumo-size-m: 2.25rem;
|
|
2213
|
-
--lumo-size-l: 2.75rem;
|
|
2214
|
-
--lumo-size-xl: 3.5rem;
|
|
2215
|
-
|
|
2216
|
-
/* Icons */
|
|
2217
|
-
--lumo-icon-size-s: 1.25em;
|
|
2218
|
-
--lumo-icon-size-m: 1.5em;
|
|
2219
|
-
--lumo-icon-size-l: 2.25em;
|
|
2220
|
-
/* For backwards compatibility */
|
|
2221
|
-
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
2222
|
-
}
|
|
2223
|
-
`;G("sizing-props",jn);/**
|
|
2224
|
-
* @license
|
|
2225
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2226
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2227
|
-
*/const qn=m`
|
|
2228
|
-
:host {
|
|
2229
|
-
/* Border radius */
|
|
2230
|
-
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
2231
|
-
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
2232
|
-
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
2233
|
-
|
|
2234
|
-
/* Shadow */
|
|
2235
|
-
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
2236
|
-
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
2237
|
-
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
2238
|
-
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
2239
|
-
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
2240
|
-
|
|
2241
|
-
/* Clickable element cursor */
|
|
2242
|
-
--lumo-clickable-cursor: default;
|
|
2243
|
-
}
|
|
2244
|
-
`;m`
|
|
2245
|
-
html {
|
|
2246
|
-
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
2247
|
-
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
2248
|
-
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
2249
|
-
}
|
|
2250
|
-
`;G("style-props",qn);/**
|
|
2251
|
-
* @license
|
|
2252
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2253
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2254
|
-
*/const Yn=m`
|
|
2255
|
-
:host {
|
|
2256
|
-
/* Base (background) */
|
|
2257
|
-
--lumo-base-color: #fff;
|
|
2258
|
-
|
|
2259
|
-
/* Tint */
|
|
2260
|
-
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
2261
|
-
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
2262
|
-
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
2263
|
-
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
2264
|
-
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
2265
|
-
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
2266
|
-
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
2267
|
-
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
2268
|
-
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
2269
|
-
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
2270
|
-
--lumo-tint: #fff;
|
|
2271
|
-
|
|
2272
|
-
/* Shade */
|
|
2273
|
-
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
2274
|
-
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
2275
|
-
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
2276
|
-
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
2277
|
-
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
2278
|
-
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
2279
|
-
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
2280
|
-
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
2281
|
-
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
2282
|
-
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
2283
|
-
--lumo-shade: hsl(214, 35%, 15%);
|
|
2284
|
-
|
|
2285
|
-
/* Contrast */
|
|
2286
|
-
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
2287
|
-
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
2288
|
-
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
2289
|
-
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
2290
|
-
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
2291
|
-
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
2292
|
-
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
2293
|
-
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
2294
|
-
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
2295
|
-
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
2296
|
-
--lumo-contrast: var(--lumo-shade);
|
|
2297
|
-
|
|
2298
|
-
/* Text */
|
|
2299
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
2300
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
2301
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
2302
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
2303
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
2304
|
-
|
|
2305
|
-
/* Primary */
|
|
2306
|
-
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
2307
|
-
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
2308
|
-
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
2309
|
-
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
2310
|
-
--lumo-primary-contrast-color: #fff;
|
|
2311
|
-
|
|
2312
|
-
/* Error */
|
|
2313
|
-
--lumo-error-color: hsl(3, 85%, 48%);
|
|
2314
|
-
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
2315
|
-
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
2316
|
-
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
2317
|
-
--lumo-error-contrast-color: #fff;
|
|
2318
|
-
|
|
2319
|
-
/* Success */
|
|
2320
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
2321
|
-
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
2322
|
-
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
2323
|
-
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
2324
|
-
--lumo-success-contrast-color: #fff;
|
|
2325
|
-
|
|
2326
|
-
/* Warning */
|
|
2327
|
-
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
2328
|
-
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
2329
|
-
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
2330
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
2331
|
-
}
|
|
2332
|
-
|
|
2333
|
-
/* forced-colors mode adjustments */
|
|
2334
|
-
@media (forced-colors: active) {
|
|
2335
|
-
html {
|
|
2336
|
-
--lumo-disabled-text-color: GrayText;
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
`;G("color-props",Yn);const Gn=m`
|
|
2340
|
-
[theme~='dark'] {
|
|
2341
|
-
/* Base (background) */
|
|
2342
|
-
--lumo-base-color: hsl(214, 35%, 21%);
|
|
2343
|
-
|
|
2344
|
-
/* Tint */
|
|
2345
|
-
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
2346
|
-
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
2347
|
-
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
2348
|
-
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
2349
|
-
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
2350
|
-
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
2351
|
-
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
2352
|
-
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
2353
|
-
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
2354
|
-
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
2355
|
-
--lumo-tint: hsl(214, 100%, 98%);
|
|
2356
|
-
|
|
2357
|
-
/* Shade */
|
|
2358
|
-
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
2359
|
-
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
2360
|
-
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
2361
|
-
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
2362
|
-
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
2363
|
-
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
2364
|
-
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
2365
|
-
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
2366
|
-
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
2367
|
-
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
2368
|
-
--lumo-shade: hsl(214, 33%, 13%);
|
|
2369
|
-
|
|
2370
|
-
/* Contrast */
|
|
2371
|
-
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
2372
|
-
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
2373
|
-
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
2374
|
-
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
2375
|
-
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
2376
|
-
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
2377
|
-
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
2378
|
-
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
2379
|
-
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
2380
|
-
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
2381
|
-
--lumo-contrast: var(--lumo-tint);
|
|
2382
|
-
|
|
2383
|
-
/* Text */
|
|
2384
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
2385
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
2386
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
2387
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
2388
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
2389
|
-
|
|
2390
|
-
/* Primary */
|
|
2391
|
-
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
2392
|
-
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
2393
|
-
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
2394
|
-
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
2395
|
-
--lumo-primary-contrast-color: #fff;
|
|
2396
|
-
|
|
2397
|
-
/* Error */
|
|
2398
|
-
--lumo-error-color: hsl(3, 79%, 49%);
|
|
2399
|
-
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
2400
|
-
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
2401
|
-
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
2402
|
-
|
|
2403
|
-
/* Success */
|
|
2404
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
2405
|
-
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
2406
|
-
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
2407
|
-
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
2408
|
-
|
|
2409
|
-
/* Warning */
|
|
2410
|
-
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
2411
|
-
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
2412
|
-
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
2413
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
html {
|
|
2417
|
-
color: var(--lumo-body-text-color);
|
|
2418
|
-
background-color: var(--lumo-base-color);
|
|
2419
|
-
color-scheme: light;
|
|
2420
|
-
}
|
|
2421
|
-
|
|
2422
|
-
[theme~='dark'] {
|
|
2423
|
-
color: var(--lumo-body-text-color);
|
|
2424
|
-
background-color: var(--lumo-base-color);
|
|
2425
|
-
color-scheme: dark;
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
|
-
h1,
|
|
2429
|
-
h2,
|
|
2430
|
-
h3,
|
|
2431
|
-
h4,
|
|
2432
|
-
h5,
|
|
2433
|
-
h6 {
|
|
2434
|
-
color: var(--lumo-header-text-color);
|
|
2435
|
-
}
|
|
2436
|
-
|
|
2437
|
-
a:where(:any-link) {
|
|
2438
|
-
color: var(--lumo-primary-text-color);
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
a:not(:any-link) {
|
|
2442
|
-
color: var(--lumo-disabled-text-color);
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
blockquote {
|
|
2446
|
-
color: var(--lumo-secondary-text-color);
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
code,
|
|
2450
|
-
pre {
|
|
2451
|
-
background-color: var(--lumo-contrast-10pct);
|
|
2452
|
-
border-radius: var(--lumo-border-radius-m);
|
|
2453
|
-
}
|
|
2454
|
-
`;C("",Gn,{moduleId:"lumo-color"});/**
|
|
2455
|
-
* @license
|
|
2456
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2457
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2458
|
-
*/const Wn=m`
|
|
2459
|
-
:host {
|
|
2460
|
-
/* Square */
|
|
2461
|
-
--lumo-space-xs: 0.25rem;
|
|
2462
|
-
--lumo-space-s: 0.5rem;
|
|
2463
|
-
--lumo-space-m: 1rem;
|
|
2464
|
-
--lumo-space-l: 1.5rem;
|
|
2465
|
-
--lumo-space-xl: 2.5rem;
|
|
2466
|
-
|
|
2467
|
-
/* Wide */
|
|
2468
|
-
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
2469
|
-
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
2470
|
-
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
2471
|
-
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
2472
|
-
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
2473
|
-
|
|
2474
|
-
/* Tall */
|
|
2475
|
-
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
2476
|
-
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
2477
|
-
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
2478
|
-
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
2479
|
-
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
2480
|
-
}
|
|
2481
|
-
`;G("spacing-props",Wn);/**
|
|
2482
|
-
* @license
|
|
2483
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2484
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2485
|
-
*/const Kn=m`
|
|
2486
|
-
:host {
|
|
2487
|
-
/* prettier-ignore */
|
|
2488
|
-
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
2489
|
-
|
|
2490
|
-
/* Font sizes */
|
|
2491
|
-
--lumo-font-size-xxs: 0.75rem;
|
|
2492
|
-
--lumo-font-size-xs: 0.8125rem;
|
|
2493
|
-
--lumo-font-size-s: 0.875rem;
|
|
2494
|
-
--lumo-font-size-m: 1rem;
|
|
2495
|
-
--lumo-font-size-l: 1.125rem;
|
|
2496
|
-
--lumo-font-size-xl: 1.375rem;
|
|
2497
|
-
--lumo-font-size-xxl: 1.75rem;
|
|
2498
|
-
--lumo-font-size-xxxl: 2.5rem;
|
|
2499
|
-
|
|
2500
|
-
/* Line heights */
|
|
2501
|
-
--lumo-line-height-xs: 1.25;
|
|
2502
|
-
--lumo-line-height-s: 1.375;
|
|
2503
|
-
--lumo-line-height-m: 1.625;
|
|
2504
|
-
}
|
|
2505
|
-
`,Jn=m`
|
|
2506
|
-
body,
|
|
2507
|
-
:host {
|
|
2508
|
-
font-family: var(--lumo-font-family);
|
|
2509
|
-
font-size: var(--lumo-font-size-m);
|
|
2510
|
-
line-height: var(--lumo-line-height-m);
|
|
2511
|
-
-webkit-text-size-adjust: 100%;
|
|
2512
|
-
-webkit-font-smoothing: antialiased;
|
|
2513
|
-
-moz-osx-font-smoothing: grayscale;
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
small,
|
|
2517
|
-
[theme~='font-size-s'] {
|
|
2518
|
-
font-size: var(--lumo-font-size-s);
|
|
2519
|
-
line-height: var(--lumo-line-height-s);
|
|
2520
|
-
}
|
|
2521
|
-
|
|
2522
|
-
[theme~='font-size-xs'] {
|
|
2523
|
-
font-size: var(--lumo-font-size-xs);
|
|
2524
|
-
line-height: var(--lumo-line-height-xs);
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
:where(h1, h2, h3, h4, h5, h6) {
|
|
2528
|
-
font-weight: 600;
|
|
2529
|
-
line-height: var(--lumo-line-height-xs);
|
|
2530
|
-
margin-block: 0;
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
|
-
:where(h1) {
|
|
2534
|
-
font-size: var(--lumo-font-size-xxxl);
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
:where(h2) {
|
|
2538
|
-
font-size: var(--lumo-font-size-xxl);
|
|
2539
|
-
}
|
|
2540
|
-
|
|
2541
|
-
:where(h3) {
|
|
2542
|
-
font-size: var(--lumo-font-size-xl);
|
|
2543
|
-
}
|
|
2544
|
-
|
|
2545
|
-
:where(h4) {
|
|
2546
|
-
font-size: var(--lumo-font-size-l);
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
:where(h5) {
|
|
2550
|
-
font-size: var(--lumo-font-size-m);
|
|
2551
|
-
}
|
|
2552
|
-
|
|
2553
|
-
:where(h6) {
|
|
2554
|
-
font-size: var(--lumo-font-size-xs);
|
|
2555
|
-
text-transform: uppercase;
|
|
2556
|
-
letter-spacing: 0.03em;
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
p,
|
|
2560
|
-
blockquote {
|
|
2561
|
-
margin-top: 0.5em;
|
|
2562
|
-
margin-bottom: 0.75em;
|
|
2563
|
-
}
|
|
2564
|
-
|
|
2565
|
-
a {
|
|
2566
|
-
text-decoration: none;
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
a:where(:any-link):hover {
|
|
2570
|
-
text-decoration: underline;
|
|
2571
|
-
}
|
|
2572
|
-
|
|
2573
|
-
hr {
|
|
2574
|
-
display: block;
|
|
2575
|
-
align-self: stretch;
|
|
2576
|
-
height: 1px;
|
|
2577
|
-
border: 0;
|
|
2578
|
-
padding: 0;
|
|
2579
|
-
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
2580
|
-
background-color: var(--lumo-contrast-10pct);
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
blockquote {
|
|
2584
|
-
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
b,
|
|
2588
|
-
strong {
|
|
2589
|
-
font-weight: 600;
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
|
-
/* RTL specific styles */
|
|
2593
|
-
blockquote[dir='rtl'] {
|
|
2594
|
-
border-left: none;
|
|
2595
|
-
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
2596
|
-
}
|
|
2597
|
-
`;C("",Jn,{moduleId:"lumo-typography"});G("typography-props",Kn);/**
|
|
2598
|
-
* @license
|
|
2599
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2600
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2601
|
-
*/const Pr=m`
|
|
2602
|
-
[part$='button'] {
|
|
2603
|
-
flex: none;
|
|
2604
|
-
width: 1em;
|
|
2605
|
-
height: 1em;
|
|
2606
|
-
line-height: 1;
|
|
2607
|
-
font-size: var(--lumo-icon-size-m);
|
|
2608
|
-
text-align: center;
|
|
2609
|
-
color: var(--lumo-contrast-60pct);
|
|
2610
|
-
transition: 0.2s color;
|
|
2611
|
-
cursor: var(--lumo-clickable-cursor);
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
[part$='button']:hover {
|
|
2615
|
-
color: var(--lumo-contrast-90pct);
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
:host([disabled]) [part$='button'],
|
|
2619
|
-
:host([readonly]) [part$='button'] {
|
|
2620
|
-
color: var(--lumo-contrast-20pct);
|
|
2621
|
-
cursor: default;
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
[part$='button']::before {
|
|
2625
|
-
font-family: 'lumo-icons';
|
|
2626
|
-
display: block;
|
|
2627
|
-
}
|
|
2628
|
-
`;C("",Pr,{moduleId:"lumo-field-button"});/**
|
|
2629
|
-
* @license
|
|
2630
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2631
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2632
|
-
*/const Tr=m`
|
|
2633
|
-
:host([has-helper]) [part='helper-text']::before {
|
|
2634
|
-
content: '';
|
|
2635
|
-
display: block;
|
|
2636
|
-
height: 0.4em;
|
|
2637
|
-
}
|
|
2638
|
-
|
|
2639
|
-
[part='helper-text'] {
|
|
2640
|
-
display: block;
|
|
2641
|
-
color: var(--lumo-secondary-text-color);
|
|
2642
|
-
font-size: var(--lumo-font-size-xs);
|
|
2643
|
-
line-height: var(--lumo-line-height-xs);
|
|
2644
|
-
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2645
|
-
transition: color 0.2s;
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
:host(:hover:not([readonly])) [part='helper-text'] {
|
|
2649
|
-
color: var(--lumo-body-text-color);
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
:host([disabled]) [part='helper-text'] {
|
|
2653
|
-
color: var(--lumo-disabled-text-color);
|
|
2654
|
-
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
2655
|
-
}
|
|
2656
|
-
|
|
2657
|
-
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
|
|
2658
|
-
display: none;
|
|
2659
|
-
}
|
|
2660
|
-
|
|
2661
|
-
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
2662
|
-
content: '';
|
|
2663
|
-
display: block;
|
|
2664
|
-
height: 0.4em;
|
|
2665
|
-
}
|
|
2666
|
-
|
|
2667
|
-
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
2668
|
-
order: 0;
|
|
2669
|
-
padding-bottom: 0.4em;
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
2673
|
-
order: 1;
|
|
2674
|
-
}
|
|
2675
|
-
|
|
2676
|
-
:host([has-helper][theme~='helper-above-field']) [part='label'] + * {
|
|
2677
|
-
order: 2;
|
|
2678
|
-
}
|
|
2679
|
-
|
|
2680
|
-
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
|
|
2681
|
-
order: 3;
|
|
2682
|
-
}
|
|
2683
|
-
`;/**
|
|
2684
|
-
* @license
|
|
2685
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2686
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2687
|
-
*/const Oe=m`
|
|
2688
|
-
[part='label'] {
|
|
2689
|
-
align-self: flex-start;
|
|
2690
|
-
color: var(--lumo-secondary-text-color);
|
|
2691
|
-
font-weight: 500;
|
|
2692
|
-
font-size: var(--lumo-font-size-s);
|
|
2693
|
-
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2694
|
-
transition: color 0.2s;
|
|
2695
|
-
line-height: 1;
|
|
2696
|
-
padding-right: 1em;
|
|
2697
|
-
padding-bottom: 0.5em;
|
|
2698
|
-
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
2699
|
-
negative margin to compensate */
|
|
2700
|
-
padding-top: 0.25em;
|
|
2701
|
-
margin-top: -0.25em;
|
|
2702
|
-
overflow: hidden;
|
|
2703
|
-
white-space: nowrap;
|
|
2704
|
-
text-overflow: ellipsis;
|
|
2705
|
-
position: relative;
|
|
2706
|
-
max-width: 100%;
|
|
2707
|
-
box-sizing: border-box;
|
|
2708
|
-
}
|
|
2709
|
-
|
|
2710
|
-
:host([has-label])::before {
|
|
2711
|
-
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
2712
|
-
}
|
|
2713
|
-
|
|
2714
|
-
:host([has-label][theme~='small'])::before {
|
|
2715
|
-
margin-top: calc(var(--lumo-font-size-xs) * 1.5);
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
:host([has-label]) {
|
|
2719
|
-
padding-top: var(--lumo-space-m);
|
|
2720
|
-
}
|
|
2721
|
-
|
|
2722
|
-
:host([has-label]) ::slotted([slot='tooltip']) {
|
|
2723
|
-
--vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
:host([required]) [part='required-indicator']::after {
|
|
2727
|
-
content: var(--lumo-required-field-indicator, '\\2022');
|
|
2728
|
-
transition: opacity 0.2s;
|
|
2729
|
-
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
2730
|
-
position: absolute;
|
|
2731
|
-
right: 0;
|
|
2732
|
-
width: 1em;
|
|
2733
|
-
text-align: center;
|
|
2734
|
-
}
|
|
2735
|
-
|
|
2736
|
-
:host([invalid]) [part='required-indicator']::after {
|
|
2737
|
-
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
2738
|
-
}
|
|
2739
|
-
|
|
2740
|
-
[part='error-message'] {
|
|
2741
|
-
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
2742
|
-
font-size: var(--lumo-font-size-xs);
|
|
2743
|
-
line-height: var(--lumo-line-height-xs);
|
|
2744
|
-
color: var(--lumo-error-text-color);
|
|
2745
|
-
will-change: max-height;
|
|
2746
|
-
transition: 0.4s max-height;
|
|
2747
|
-
max-height: 5em;
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2750
|
-
:host([has-error-message]) [part='error-message']::before,
|
|
2751
|
-
:host([has-error-message]) [part='error-message']::after {
|
|
2752
|
-
content: '';
|
|
2753
|
-
display: block;
|
|
2754
|
-
height: 0.4em;
|
|
2755
|
-
}
|
|
2756
|
-
|
|
2757
|
-
:host(:not([invalid])) [part='error-message'] {
|
|
2758
|
-
max-height: 0;
|
|
2759
|
-
overflow: hidden;
|
|
2760
|
-
}
|
|
2761
|
-
|
|
2762
|
-
/* RTL specific styles */
|
|
2763
|
-
|
|
2764
|
-
:host([dir='rtl']) [part='label'] {
|
|
2765
|
-
margin-left: 0;
|
|
2766
|
-
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2767
|
-
}
|
|
2768
|
-
|
|
2769
|
-
:host([dir='rtl']) [part='label'] {
|
|
2770
|
-
padding-left: 1em;
|
|
2771
|
-
padding-right: 0;
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
:host([dir='rtl']) [part='required-indicator']::after {
|
|
2775
|
-
right: auto;
|
|
2776
|
-
left: 0;
|
|
2777
|
-
}
|
|
2778
|
-
|
|
2779
|
-
:host([dir='rtl']) [part='error-message'] {
|
|
2780
|
-
margin-left: 0;
|
|
2781
|
-
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2782
|
-
}
|
|
2783
|
-
`;C("",Oe,{moduleId:"lumo-required-field"});/**
|
|
2784
|
-
* @license
|
|
2785
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2786
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2787
|
-
*/const Zn=m`
|
|
2788
|
-
:host {
|
|
2789
|
-
--lumo-text-field-size: var(--lumo-size-m);
|
|
2790
|
-
color: var(--lumo-body-text-color);
|
|
2791
|
-
font-size: var(--lumo-font-size-m);
|
|
2792
|
-
font-family: var(--lumo-font-family);
|
|
2793
|
-
-webkit-font-smoothing: antialiased;
|
|
2794
|
-
-moz-osx-font-smoothing: grayscale;
|
|
2795
|
-
-webkit-tap-highlight-color: transparent;
|
|
2796
|
-
padding: var(--lumo-space-xs) 0;
|
|
2797
|
-
}
|
|
2798
|
-
|
|
2799
|
-
:host::before {
|
|
2800
|
-
height: var(--lumo-text-field-size);
|
|
2801
|
-
box-sizing: border-box;
|
|
2802
|
-
display: inline-flex;
|
|
2803
|
-
align-items: center;
|
|
2804
|
-
}
|
|
2805
|
-
|
|
2806
|
-
:host([focused]:not([readonly])) [part='label'] {
|
|
2807
|
-
color: var(--lumo-primary-text-color);
|
|
2808
|
-
}
|
|
2809
|
-
|
|
2810
|
-
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
2811
|
-
-webkit-mask-image: none;
|
|
2812
|
-
mask-image: none;
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
::slotted(:is(input, textarea):placeholder-shown) {
|
|
2816
|
-
color: var(--lumo-secondary-text-color);
|
|
2817
|
-
}
|
|
2818
|
-
|
|
2819
|
-
/* Hover */
|
|
2820
|
-
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2821
|
-
color: var(--lumo-body-text-color);
|
|
2822
|
-
}
|
|
2823
|
-
|
|
2824
|
-
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2825
|
-
opacity: 0.1;
|
|
2826
|
-
}
|
|
2827
|
-
|
|
2828
|
-
/* Touch device adjustment */
|
|
2829
|
-
@media (pointer: coarse) {
|
|
2830
|
-
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
2831
|
-
color: var(--lumo-secondary-text-color);
|
|
2832
|
-
}
|
|
2833
|
-
|
|
2834
|
-
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2835
|
-
opacity: 0;
|
|
2836
|
-
}
|
|
2837
|
-
|
|
2838
|
-
:host(:active:not([readonly]):not([focused])) [part='input-field']::after {
|
|
2839
|
-
opacity: 0.2;
|
|
2840
|
-
}
|
|
2841
|
-
}
|
|
2842
|
-
|
|
2843
|
-
/* Trigger when not focusing using the keyboard */
|
|
2844
|
-
:host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
|
|
2845
|
-
transform: scaleX(0);
|
|
2846
|
-
transition-duration: 0.15s, 1s;
|
|
2847
|
-
}
|
|
2848
|
-
|
|
2849
|
-
/* Focus-ring */
|
|
2850
|
-
:host([focus-ring]) [part='input-field'] {
|
|
2851
|
-
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
2852
|
-
}
|
|
2853
|
-
|
|
2854
|
-
/* Read-only and disabled */
|
|
2855
|
-
:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
2856
|
-
opacity: 0;
|
|
2857
|
-
}
|
|
2858
|
-
|
|
2859
|
-
/* Read-only style */
|
|
2860
|
-
:host([readonly]) {
|
|
2861
|
-
--vaadin-input-field-border-color: transparent;
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
|
-
/* Disabled style */
|
|
2865
|
-
:host([disabled]) {
|
|
2866
|
-
pointer-events: none;
|
|
2867
|
-
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
2868
|
-
}
|
|
2869
|
-
|
|
2870
|
-
:host([disabled]) [part='label'],
|
|
2871
|
-
:host([disabled]) [part='input-field'] ::slotted(*) {
|
|
2872
|
-
color: var(--lumo-disabled-text-color);
|
|
2873
|
-
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
2874
|
-
}
|
|
2875
|
-
|
|
2876
|
-
/* Invalid style */
|
|
2877
|
-
:host([invalid]) {
|
|
2878
|
-
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
2879
|
-
}
|
|
2880
|
-
|
|
2881
|
-
:host([invalid][focus-ring]) [part='input-field'] {
|
|
2882
|
-
box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
|
|
2883
|
-
}
|
|
2884
|
-
|
|
2885
|
-
:host([input-prevented]) [part='input-field'] {
|
|
2886
|
-
animation: shake 0.15s infinite;
|
|
2887
|
-
}
|
|
2888
|
-
|
|
2889
|
-
@keyframes shake {
|
|
2890
|
-
25% {
|
|
2891
|
-
transform: translateX(4px);
|
|
2892
|
-
}
|
|
2893
|
-
75% {
|
|
2894
|
-
transform: translateX(-4px);
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
|
|
2898
|
-
/* Small theme */
|
|
2899
|
-
:host([theme~='small']) {
|
|
2900
|
-
font-size: var(--lumo-font-size-s);
|
|
2901
|
-
--lumo-text-field-size: var(--lumo-size-s);
|
|
2902
|
-
}
|
|
2903
|
-
|
|
2904
|
-
:host([theme~='small']) [part='label'] {
|
|
2905
|
-
font-size: var(--lumo-font-size-xs);
|
|
2906
|
-
}
|
|
2907
|
-
|
|
2908
|
-
:host([theme~='small']) [part='error-message'] {
|
|
2909
|
-
font-size: var(--lumo-font-size-xxs);
|
|
2910
|
-
}
|
|
2911
|
-
|
|
2912
|
-
/* Slotted content */
|
|
2913
|
-
[part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
|
|
2914
|
-
color: var(--lumo-secondary-text-color);
|
|
2915
|
-
font-weight: 400;
|
|
2916
|
-
}
|
|
2917
|
-
|
|
2918
|
-
[part='clear-button']::before {
|
|
2919
|
-
content: var(--lumo-icons-cross);
|
|
2920
|
-
}
|
|
2921
|
-
`,Sr=[Oe,Pr,Tr,Zn];C("",Sr,{moduleId:"lumo-input-field-shared-styles"});/**
|
|
2922
|
-
* @license
|
|
2923
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2924
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2925
|
-
*/const Xn=m`
|
|
2926
|
-
:host {
|
|
2927
|
-
display: inline-block;
|
|
2928
|
-
position: relative;
|
|
2929
|
-
outline: none;
|
|
2930
|
-
white-space: nowrap;
|
|
2931
|
-
-webkit-user-select: none;
|
|
2932
|
-
-moz-user-select: none;
|
|
2933
|
-
user-select: none;
|
|
2934
|
-
}
|
|
2935
|
-
|
|
2936
|
-
:host([hidden]) {
|
|
2937
|
-
display: none !important;
|
|
2938
|
-
}
|
|
2939
|
-
|
|
2940
|
-
/* Aligns the button with form fields when placed on the same line.
|
|
2941
|
-
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
|
2942
|
-
.vaadin-button-container::before {
|
|
2943
|
-
content: '\\2003';
|
|
2944
|
-
display: inline-block;
|
|
2945
|
-
width: 0;
|
|
2946
|
-
max-height: 100%;
|
|
2947
|
-
}
|
|
2948
|
-
|
|
2949
|
-
.vaadin-button-container {
|
|
2950
|
-
display: inline-flex;
|
|
2951
|
-
align-items: center;
|
|
2952
|
-
justify-content: center;
|
|
2953
|
-
text-align: center;
|
|
2954
|
-
width: 100%;
|
|
2955
|
-
height: 100%;
|
|
2956
|
-
min-height: inherit;
|
|
2957
|
-
text-shadow: inherit;
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2960
|
-
[part='prefix'],
|
|
2961
|
-
[part='suffix'] {
|
|
2962
|
-
flex: none;
|
|
2963
|
-
}
|
|
2964
|
-
|
|
2965
|
-
[part='label'] {
|
|
2966
|
-
white-space: nowrap;
|
|
2967
|
-
overflow: hidden;
|
|
2968
|
-
text-overflow: ellipsis;
|
|
2969
|
-
}
|
|
2970
|
-
|
|
2971
|
-
@media (forced-colors: active) {
|
|
2972
|
-
:host {
|
|
2973
|
-
outline: 1px solid;
|
|
2974
|
-
outline-offset: -1px;
|
|
2975
|
-
}
|
|
2976
|
-
|
|
2977
|
-
:host([focused]) {
|
|
2978
|
-
outline-width: 2px;
|
|
2979
|
-
}
|
|
2980
|
-
|
|
2981
|
-
:host([disabled]) {
|
|
2982
|
-
outline-color: GrayText;
|
|
2983
|
-
}
|
|
2984
|
-
}
|
|
2985
|
-
`,Qn=o=>o`
|
|
2986
|
-
<div class="vaadin-button-container">
|
|
2987
|
-
<span part="prefix" aria-hidden="true">
|
|
2988
|
-
<slot name="prefix"></slot>
|
|
2989
|
-
</span>
|
|
2990
|
-
<span part="label">
|
|
2991
|
-
<slot></slot>
|
|
2992
|
-
</span>
|
|
2993
|
-
<span part="suffix" aria-hidden="true">
|
|
2994
|
-
<slot name="suffix"></slot>
|
|
2995
|
-
</span>
|
|
2996
|
-
</div>
|
|
2997
|
-
<slot name="tooltip"></slot>
|
|
2998
|
-
`;/**
|
|
2999
|
-
@license
|
|
3000
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3001
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3002
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3003
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3004
|
-
Code distributed by Google as part of the polymer project is also
|
|
3005
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3006
|
-
*/const ta=!1,ea=o=>o,ze=typeof document.head.style.touchAction=="string",ce="__polymerGestures",Wt="__polymerGesturesHandled",ue="__polymerGesturesTouchAction",yo=25,xo=5,oa=2,ra=["mousedown","mousemove","mouseup","click"],sa=[0,1,4,2],ia=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Me(o){return ra.indexOf(o)>-1}let Nr=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Nr=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function na(o){if(!(Me(o)||o==="touchend")&&ze&&Nr&&ta)return{passive:!0}}const aa=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),la={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function I(o){const t=o.type;if(!Me(t))return!1;if(t==="mousemove"){let s=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!ia&&(s=sa[o.which]||0),!!(s&1)}return(o.button===void 0?0:o.button)===0}function ca(o){if(o.type==="click"){if(o.detail===0)return!0;const t=k(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),s=o.pageX,r=o.pageY;return!(s>=e.left&&s<=e.right&&r>=e.top&&r<=e.bottom)}return!1}const T={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ua(o){let t="auto";const e=Or(o);for(let s=0,r;s<e.length;s++)if(r=e[s],r[ue]){t=r[ue];break}return t}function kr(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function U(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const Or=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Ie={},M=[];function da(o,t){let e=document.elementFromPoint(o,t),s=e;for(;s&&s.shadowRoot&&!window.ShadyDOM;){const r=s;if(s=s.shadowRoot.elementFromPoint(o,t),r===s)break;s&&(e=s)}return e}function k(o){const t=Or(o);return t.length>0?t[0]:o.target}function ha(o){const t=o.type,s=o.currentTarget[ce];if(!s)return;const r=s[t];if(!r)return;if(!o[Wt]&&(o[Wt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(T.touch.id=n.identifier),T.touch.id!==n.identifier)return;ze||(t==="touchstart"||t==="touchmove")&&pa(o)}const i=o[Wt];if(!i.skip){for(let n=0,a;n<M.length;n++)a=M[n],r[a.name]&&!i[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<M.length;n++)a=M[n],r[a.name]&&!i[a.name]&&(i[a.name]=!0,a[t](o))}}function pa(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")T.touch.x=t.clientX,T.touch.y=t.clientY,T.touch.scrollDecided=!1;else if(e==="touchmove"){if(T.touch.scrollDecided)return;T.touch.scrollDecided=!0;const s=ua(o);let r=!1;const i=Math.abs(T.touch.x-t.clientX),n=Math.abs(T.touch.y-t.clientY);o.cancelable&&(s==="none"?r=!0:s==="pan-x"?r=n>i:s==="pan-y"&&(r=i>n)),r?o.preventDefault():wt("track")}}function de(o,t,e){return Ie[t]?(ma(o,t,e),!0):!1}function ma(o,t,e){const s=Ie[t],r=s.deps,i=s.name;let n=o[ce];n||(o[ce]=n={});for(let a=0,l,c;a<r.length;a++)l=r[a],!(aa&&Me(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&o.addEventListener(l,ha,na(l)),c[i]=(c[i]||0)+1,c._count=(c._count||0)+1);o.addEventListener(t,e),s.touchAction&&zr(o,s.touchAction)}function De(o){M.push(o),o.emits.forEach(t=>{Ie[t]=o})}function fa(o){for(let t=0,e;t<M.length;t++){e=M[t];for(let s=0,r;s<e.emits.length;s++)if(r=e.emits[s],r===o)return e}return null}function zr(o,t){ze&&o instanceof HTMLElement&&lr.run(()=>{o.style.touchAction=t}),o[ue]=t}function $e(o,t,e){const s=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=e,ea(o).dispatchEvent(s),s.defaultPrevented){const r=e.preventer||e.sourceEvent;r&&r.preventDefault&&r.preventDefault()}}function wt(o){const t=fa(o);t.info&&(t.info.prevent=!0)}De({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){U(this.info)},mousedown(o){if(!I(o))return;const t=k(o),e=this,s=i=>{I(i)||(Z("up",t,i),U(e.info))},r=i=>{I(i)&&Z("up",t,i),U(e.info)};kr(this.info,s,r),Z("down",t,o)},touchstart(o){Z("down",k(o),o.changedTouches[0],o)},touchend(o){Z("up",k(o),o.changedTouches[0],o)}});function Z(o,t,e,s){t&&$e(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:s,prevent(r){return wt(r)}})}De({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(o){this.moves.length>oa&&this.moves.shift(),this.moves.push(o)},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,U(this.info)},mousedown(o){if(!I(o))return;const t=k(o),e=this,s=i=>{const n=i.clientX,a=i.clientY;wo(e.info,n,a)&&(e.info.state=e.info.started?i.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&wt("tap"),e.info.addMove({x:n,y:a}),I(i)||(e.info.state="end",U(e.info)),t&&Kt(e.info,t,i),e.info.started=!0)},r=i=>{e.info.started&&s(i),U(e.info)};kr(this.info,s,r),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=k(o),e=o.changedTouches[0],s=e.clientX,r=e.clientY;wo(this.info,s,r)&&(this.info.state==="start"&&wt("tap"),this.info.addMove({x:s,y:r}),Kt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=k(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Kt(this.info,t,e))}});function wo(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const s=Math.abs(o.x-t),r=Math.abs(o.y-e);return s>=xo||r>=xo}function Kt(o,t,e){if(!t)return;const s=o.moves[o.moves.length-2],r=o.moves[o.moves.length-1],i=r.x-o.x,n=r.y-o.y;let a,l=0;s&&(a=r.x-s.x,l=r.y-s.y),$e(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:i,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return da(e.clientX,e.clientY)}})}De({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(o){I(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){I(o)&&Ao(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){Ao(this.info,o.changedTouches[0],o)}});function Ao(o,t,e){const s=Math.abs(t.clientX-o.x),r=Math.abs(t.clientY-o.y),i=k(e||t);!i||la[i.localName]&&i.hasAttribute("disabled")||(isNaN(s)||isNaN(r)||s<=yo&&r<=yo||ca(t))&&(o.prevent||$e(i,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
|
|
3007
|
-
* @license
|
|
3008
|
-
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3009
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3010
|
-
*/const Mr=o=>class extends Pe(Nt(o)){get _activeKeys(){return[" "]}ready(){super.ready(),de(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),de(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",s=>{this._activeKeys.includes(s.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
|
|
3011
|
-
* @license
|
|
3012
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3013
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3014
|
-
*/const _a=o=>class extends Mr(_r(Ee(o))){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())}};/**
|
|
3015
|
-
* @license
|
|
3016
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3017
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3018
|
-
*/C("vaadin-button",Xn,{moduleId:"vaadin-button-styles"});class Ir extends _a(ur(fe(Ot(xe)))){static get is(){return"vaadin-button"}static get template(){return Qn(ye)}ready(){super.ready(),this._tooltipController=new mr(this),this.addController(this._tooltipController)}}Y(Ir);exports.ActiveMixin=Mr;exports.Button=Ir;exports.ControllerMixin=Ot;exports.Debouncer=q;exports.DelegateFocusMixin=gr;exports.DelegateStateMixin=Ar;exports.DirMixin=we;exports.DisabledMixin=Pe;exports.ElementMixin=ur;exports.FieldMixin=wr;exports.FocusMixin=Ee;exports.InputConstraintsMixin=Cr;exports.InputControlMixin=zn;exports.InputController=nn;exports.InputMixin=Te;exports.KeyboardMixin=Nt;exports.LabelMixin=xr;exports.LabelledInputController=Mn;exports.PolymerElement=xe;exports.PropertyEffects=tr;exports.SlotController=St;exports.SlotObserver=hr;exports.ThemableMixin=fe;exports.TooltipController=mr;exports.ValidateMixin=ke;exports.addGlobalThemeStyles=Ct;exports.addListener=de;exports.animationFrame=Wi;exports.button=Er;exports.dedupingMixin=v;exports.defineCustomElement=Y;exports.enqueueDebouncer=cr;exports.flush=Ji;exports.generateUniqueId=pr;exports.getAncestorRootNodes=Zi;exports.getDeepActiveElement=an;exports.getFocusableElements=fn;exports.helper=Tr;exports.html=ye;exports.i$1=m;exports.idlePeriod=ar;exports.inputFieldShared=Sr;exports.inputFieldShared$1=sn;exports.isElementFocused=pn;exports.isFirefox=yn;exports.isIOS=An;exports.isSafari=Cn;exports.isTouch=vr;exports.legacyOptimizations=Mo;exports.legacyWarnings=Io;exports.matches=ks;exports.microTask=lr;exports.microTask$1=jo;exports.registerStyles=C;exports.requiredField=Oe;exports.setTouchAction=zr;exports.strictTemplatePolicy=yt;exports.suppressTemplateNotifications=xs;exports.timeOut=nr;exports.timeOut$1=$s;exports.translate=nt;exports.useShadow=zo;exports.wrap$1=N;
|