@everymatrix/general-input 1.52.6 → 1.53.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/checkbox-group-input_10.cjs.entry.js +1707 -584
- package/dist/cjs/general-input.cjs.entry.js +17 -18
- package/dist/cjs/general-input.cjs.js +2 -2
- package/dist/cjs/{index-01420a64.js → index-1277658a.js} +171 -76
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/toggle-checkbox-input.cjs.entry.js +12 -16
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +33 -17
- package/dist/collection/components/checkbox-input/checkbox-input.js +29 -14
- package/dist/collection/components/date-input/date-input.js +35 -17
- package/dist/collection/components/email-input/email-input.js +29 -16
- package/dist/collection/components/general-input/general-input.js +51 -18
- package/dist/collection/components/number-input/number-input.js +27 -15
- package/dist/collection/components/password-input/password-input.js +34 -19
- package/dist/collection/components/radio-input/radio-input.js +24 -14
- package/dist/collection/components/select-input/select-input.js +39 -17
- package/dist/collection/components/tel-input/tel-input.js +31 -17
- package/dist/collection/components/text-input/text-input.js +36 -17
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +33 -17
- package/dist/esm/checkbox-group-input_10.entry.js +1742 -619
- package/dist/esm/general-input.entry.js +17 -18
- package/dist/esm/general-input.js +3 -3
- package/dist/esm/{index-542cff81.js → index-b1fc8a5f.js} +171 -76
- package/dist/esm/loader.js +2 -2
- package/dist/esm/toggle-checkbox-input.entry.js +12 -16
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/p-09c73744.js +2 -0
- package/dist/general-input/p-1922ef4e.entry.js +1 -0
- package/dist/general-input/{p-cc4fcb3f.entry.js → p-5b3e1098.entry.js} +1912 -926
- package/dist/general-input/p-ab0375f4.entry.js +1 -0
- package/package.json +1 -1
- package/dist/general-input/p-3cab3b95.entry.js +0 -1
- package/dist/general-input/p-3ce1e382.js +0 -2
- package/dist/general-input/p-e5532cb1.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h as h$
|
|
1
|
+
import { r as registerInstance, c as createEvent, h as h$a, g as getElement } from './index-b1fc8a5f.js';
|
|
2
2
|
import { t as translate$1 } from './locale.utils-0883d9a6.js';
|
|
3
3
|
import { t as tooltipIconSvg } from './tooltipIcon-0a5a06a2.js';
|
|
4
4
|
|
|
@@ -53,26 +53,26 @@ defineCustomElement(Lumo$4);
|
|
|
53
53
|
* Copyright 2019 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
55
|
*/
|
|
56
|
-
const t$
|
|
56
|
+
const t$9=window,e$e=t$9.ShadowRoot&&(void 0===t$9.ShadyCSS||t$9.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$h=Symbol(),n$i=new WeakMap;class o$i{constructor(t,e,n){if(this._$cssResult$=!0,n!==s$h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n$i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n$i.set(s,t));}return t}toString(){return this.cssText}}const r$f=t=>new o$i("string"==typeof t?t:t+"",void 0,s$h),i$b=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[n+1]),t[0]);return new o$i(n,t,s$h)},S$9=(s,n)=>{e$e?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement("style"),o=t$9.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=e.cssText,s.appendChild(n);}));},c$a=e$e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$f(e)})(t):t;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2017 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
|
-
*/var s$
|
|
62
|
+
*/var s$g;const e$d=window,r$e=e$d.trustedTypes,h$9=r$e?r$e.emptyScript:"",o$h=e$d.reactiveElementPolyfillSupport,n$h={toAttribute(t,i){switch(i){case Boolean:t=t?h$9:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t);}catch(t){s=null;}}return s}},a$9=(t,i)=>i!==t&&(i==i||t==t),l$d={attribute:!0,type:String,converter:n$h,reflect:!1,hasChanged:a$9},d$9="finalized";class u$9 extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu();}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t);}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e));})),t}static createProperty(t,i=l$d){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e);}}static getPropertyDescriptor(t,i,s){return {get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$d}static finalize(){if(this.hasOwnProperty(d$9))return !1;this[d$9]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(c$a(i));}else void 0!==i&&s.push(c$a(i));return s}static _$Ep(t,i){const s=i.attribute;return !1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)));}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t));}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i]);}));}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S$9(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}));}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}));}attributeChangedCallback(t,i,s){this._$AK(t,s);}_$EO(t,i,s=l$d){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n$h).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null;}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n$h;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null;}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a$9)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek();}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s);}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),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){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek();}updated(t){}firstUpdated(t){}}u$9[d$9]=!0,u$9.elementProperties=new Map,u$9.elementStyles=[],u$9.shadowRootOptions={mode:"open"},null==o$h||o$h({ReactiveElement:u$9}),(null!==(s$g=e$d.reactiveElementVersions)&&void 0!==s$g?s$g:e$d.reactiveElementVersions=[]).push("1.6.3");
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var t;const i=window,s$
|
|
69
|
+
var t$8;const i$a=window,s$f=i$a.trustedTypes,e$c=s$f?s$f.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$g="$lit$",n$g=`lit$${(Math.random()+"").slice(9)}$`,l$c="?"+n$g,h$8=`<${l$c}>`,r$d=document,u$8=()=>r$d.createComment(""),d$8=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c$9=Array.isArray,v$4=t=>c$9(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a$8="[ \t\n\f\r]",f$5=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_$4=/-->/g,m$4=/>/g,p$5=RegExp(`>|${a$8}(?:([^\\s"'>=/]+)(${a$8}*=${a$8}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g$4=/'/g,$$4=/"/g,y$4=/^(?:script|style|textarea|title)$/i,T$4=Symbol.for("lit-noChange"),A$4=Symbol.for("lit-nothing"),E$4=new WeakMap,C$4=r$d.createTreeWalker(r$d,129,null,!1);function P$4(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e$c?e$c.createHTML(i):i}const V$4=(t,i)=>{const s=t.length-1,e=[];let l,r=2===i?"<svg>":"",u=f$5;for(let i=0;i<s;i++){const s=t[i];let d,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f$5?"!--"===c[1]?u=_$4:void 0!==c[1]?u=m$4:void 0!==c[2]?(y$4.test(c[2])&&(l=RegExp("</"+c[2],"g")),u=p$5):void 0!==c[3]&&(u=p$5):u===p$5?">"===c[0]?(u=null!=l?l:f$5,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,d=c[1],u=void 0===c[3]?p$5:'"'===c[3]?$$4:g$4):u===$$4||u===g$4?u=p$5:u===_$4||u===m$4?u=f$5:(u=p$5,l=void 0);const w=u===p$5&&t[i+1].startsWith("/>")?" ":"";r+=u===f$5?s+h$8:v>=0?(e.push(d),s.slice(0,v)+o$g+s.slice(v)+n$g+w):s+n$g+(-2===v?(e.push(void 0),i):w);}return [P$4(t,r+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class N$4{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,d=0;const c=t.length-1,v=this.parts,[a,f]=V$4(t,i);if(this.el=N$4.createElement(a,e),C$4.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes);}for(;null!==(h=C$4.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o$g)||i.startsWith(n$g)){const s=f[d++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o$g).split(n$g),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?H$4:"?"===i[1]?L$4:"@"===i[1]?z$4:k$4});}else v.push({type:6,index:r});}for(const i of t)h.removeAttribute(i);}if(y$4.test(h.tagName)){const t=h.textContent.split(n$g),i=t.length-1;if(i>0){h.textContent=s$f?s$f.emptyScript:"";for(let s=0;s<i;s++)h.append(t[s],u$8()),C$4.nextNode(),v.push({type:2,index:++r});h.append(t[i],u$8());}}}else if(8===h.nodeType)if(h.data===l$c)v.push({type:2,index:r});else {let t=-1;for(;-1!==(t=h.data.indexOf(n$g,t+1));)v.push({type:7,index:r}),t+=n$g.length-1;}r++;}}static createElement(t,i){const s=r$d.createElement("template");return s.innerHTML=t,s}}function S$8(t,i,s=t,e){var o,n,l,h;if(i===T$4)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const u=d$8(i)?void 0:i._$litDirective$;return (null==r?void 0:r.constructor)!==u&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===u?r=void 0:(r=new u(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=S$8(t,r._$AS(t,i.values),r,e)),i}class M$4{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r$d).importNode(s,!0);C$4.currentNode=o;let n=C$4.nextNode(),l=0,h=0,u=e[0];for(;void 0!==u;){if(l===u.index){let i;2===u.type?i=new R$4(n,n.nextSibling,this,t):1===u.type?i=new u.ctor(n,u.name,u.strings,this,t):6===u.type&&(i=new Z$3(n,this,t)),this._$AV.push(i),u=e[++h];}l!==(null==u?void 0:u.index)&&(n=C$4.nextNode(),l++);}return C$4.currentNode=r$d,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R$4{constructor(t,i,s,e){var o;this.type=2,this._$AH=A$4,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o;}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$8(this,t,i),d$8(t)?t===A$4||null==t||""===t?(this._$AH!==A$4&&this._$AR(),this._$AH=A$4):t!==this._$AH&&t!==T$4&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v$4(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!==A$4&&d$8(this._$AH)?this._$AA.nextSibling.data=t:this.$(r$d.createTextNode(t)),this._$AH=t;}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=N$4.createElement(P$4(e.h,e.h[0]),this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else {const t=new M$4(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t;}}_$AC(t){let i=E$4.get(t.strings);return void 0===i&&E$4.set(t.strings,i=new N$4(t)),i}T(t){c$9(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new R$4(this.k(u$8()),this.k(u$8()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t));}}class k$4{constructor(t,i,s,e,o){this.type=1,this._$AH=A$4,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A$4;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=S$8(this,t,i,0),n=!d$8(t)||t!==this._$AH&&t!==T$4,n&&(this._$AH=t);else {const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=S$8(this,e[s+l],i,l),h===T$4&&(h=this._$AH[l]),n||(n=!d$8(h)||h!==this._$AH[l]),h===A$4?t=A$4:t!==A$4&&(t+=(null!=h?h:"")+o[l+1]),this._$AH[l]=h;}n&&!e&&this.j(t);}j(t){t===A$4?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"");}}class H$4 extends k$4{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A$4?void 0:t;}}const I$4=s$f?s$f.emptyScript:"";class L$4 extends k$4{constructor(){super(...arguments),this.type=4;}j(t){t&&t!==A$4?this.element.setAttribute(this.name,I$4):this.element.removeAttribute(this.name);}}class z$4 extends k$4{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5;}_$AI(t,i=this){var s;if((t=null!==(s=S$8(this,t,i,0))&&void 0!==s?s:A$4)===T$4)return;const e=this._$AH,o=t===A$4&&e!==A$4||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==A$4&&(e===A$4||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t);}}class Z$3{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$8(this,t);}}const B$4=i$a.litHtmlPolyfillSupport;null==B$4||B$4(N$4,R$4),(null!==(t$8=i$a.litHtmlVersions)&&void 0!==t$8?t$8:i$a.litHtmlVersions=[]).push("2.8.0");const D$3=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new R$4(i.insertBefore(u$8(),t),t,void 0,null!=s?s:{});}return l._$AI(t),l};
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
73
73
|
* Copyright 2017 Google LLC
|
|
74
74
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
75
|
-
*/var l,o;class s extends u$
|
|
75
|
+
*/var l$b,o$f;class s$e extends u$9{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D$3(i,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1);}render(){return T$4}}s$e.finalized=!0,s$e._$litElement$=!0,null===(l$b=globalThis.litElementHydrateSupport)||void 0===l$b||l$b.call(globalThis,{LitElement:s$e});const n$f=globalThis.litElementPolyfillSupport;null==n$f||n$f({LitElement:s$e});(null!==(o$f=globalThis.litElementVersions)&&void 0!==o$f?o$f:globalThis.litElementVersions=[]).push("3.3.3");
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* @license
|
|
@@ -171,7 +171,7 @@ function hasThemes(tagName) {
|
|
|
171
171
|
*/
|
|
172
172
|
function flattenStyles(styles = []) {
|
|
173
173
|
return [styles].flat(Infinity).filter((style) => {
|
|
174
|
-
if (style instanceof o$
|
|
174
|
+
if (style instanceof o$i) {
|
|
175
175
|
return true;
|
|
176
176
|
}
|
|
177
177
|
console.warn('An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.');
|
|
@@ -400,7 +400,7 @@ const addLumoGlobalStyles$4 = (id, ...styles) => {
|
|
|
400
400
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
401
401
|
*/
|
|
402
402
|
|
|
403
|
-
const colorBase$3 = i$
|
|
403
|
+
const colorBase$3 = i$b`
|
|
404
404
|
:host {
|
|
405
405
|
/* Base (background) */
|
|
406
406
|
--lumo-base-color: #fff;
|
|
@@ -489,7 +489,7 @@ const colorBase$3 = i$1`
|
|
|
489
489
|
|
|
490
490
|
addLumoGlobalStyles$4('color-props', colorBase$3);
|
|
491
491
|
|
|
492
|
-
const color$3 = i$
|
|
492
|
+
const color$3 = i$b`
|
|
493
493
|
[theme~='dark'] {
|
|
494
494
|
/* Base (background) */
|
|
495
495
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -614,7 +614,7 @@ registerStyles('', color$3, { moduleId: 'lumo-color' });
|
|
|
614
614
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
615
615
|
*/
|
|
616
616
|
|
|
617
|
-
const fontIcons$
|
|
617
|
+
const fontIcons$3 = i$b`
|
|
618
618
|
@font-face {
|
|
619
619
|
font-family: 'lumo-icons';
|
|
620
620
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAf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S6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -669,7 +669,7 @@ const fontIcons$2 = i$1`
|
|
|
669
669
|
}
|
|
670
670
|
`;
|
|
671
671
|
|
|
672
|
-
addLumoGlobalStyles$4('font-icons', fontIcons$
|
|
672
|
+
addLumoGlobalStyles$4('font-icons', fontIcons$3);
|
|
673
673
|
|
|
674
674
|
/**
|
|
675
675
|
* @license
|
|
@@ -677,7 +677,7 @@ addLumoGlobalStyles$4('font-icons', fontIcons$2);
|
|
|
677
677
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
678
678
|
*/
|
|
679
679
|
|
|
680
|
-
const sizing$4 = i$
|
|
680
|
+
const sizing$4 = i$b`
|
|
681
681
|
:host {
|
|
682
682
|
--lumo-size-xs: 1.625rem;
|
|
683
683
|
--lumo-size-s: 1.875rem;
|
|
@@ -702,7 +702,7 @@ addLumoGlobalStyles$4('sizing-props', sizing$4);
|
|
|
702
702
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
703
703
|
*/
|
|
704
704
|
|
|
705
|
-
const spacing$3 = i$
|
|
705
|
+
const spacing$3 = i$b`
|
|
706
706
|
:host {
|
|
707
707
|
/* Square */
|
|
708
708
|
--lumo-space-xs: 0.25rem;
|
|
@@ -735,7 +735,7 @@ addLumoGlobalStyles$4('spacing-props', spacing$3);
|
|
|
735
735
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
736
736
|
*/
|
|
737
737
|
|
|
738
|
-
const style$4 = i$
|
|
738
|
+
const style$4 = i$b`
|
|
739
739
|
:host {
|
|
740
740
|
/* Border radius */
|
|
741
741
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -757,7 +757,7 @@ const style$4 = i$1`
|
|
|
757
757
|
/**
|
|
758
758
|
* Default values for component-specific custom properties.
|
|
759
759
|
*/
|
|
760
|
-
i$
|
|
760
|
+
i$b`
|
|
761
761
|
html {
|
|
762
762
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
763
763
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -773,7 +773,7 @@ addLumoGlobalStyles$4('style-props', style$4);
|
|
|
773
773
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
774
774
|
*/
|
|
775
775
|
|
|
776
|
-
const font$4 = i$
|
|
776
|
+
const font$4 = i$b`
|
|
777
777
|
:host {
|
|
778
778
|
/* prettier-ignore */
|
|
779
779
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -795,7 +795,7 @@ const font$4 = i$1`
|
|
|
795
795
|
}
|
|
796
796
|
`;
|
|
797
797
|
|
|
798
|
-
const typography$4 = i$
|
|
798
|
+
const typography$4 = i$b`
|
|
799
799
|
body,
|
|
800
800
|
:host {
|
|
801
801
|
font-family: var(--lumo-font-family);
|
|
@@ -894,7 +894,7 @@ addLumoGlobalStyles$4('typography-props', font$4);
|
|
|
894
894
|
|
|
895
895
|
registerStyles(
|
|
896
896
|
'vaadin-checkbox',
|
|
897
|
-
i$
|
|
897
|
+
i$b`
|
|
898
898
|
:host {
|
|
899
899
|
color: var(--lumo-body-text-color);
|
|
900
900
|
font-size: var(--lumo-font-size-m);
|
|
@@ -12752,7 +12752,7 @@ const CheckboxMixin = (superclass) =>
|
|
|
12752
12752
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12753
12753
|
*/
|
|
12754
12754
|
|
|
12755
|
-
const checkboxStyles = i$
|
|
12755
|
+
const checkboxStyles = i$b`
|
|
12756
12756
|
:host {
|
|
12757
12757
|
display: inline-block;
|
|
12758
12758
|
}
|
|
@@ -12912,7 +12912,7 @@ defineCustomElement(Checkbox);
|
|
|
12912
12912
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12913
12913
|
*/
|
|
12914
12914
|
|
|
12915
|
-
const helper$
|
|
12915
|
+
const helper$2 = i$b`
|
|
12916
12916
|
:host([has-helper]) [part='helper-text']::before {
|
|
12917
12917
|
content: '';
|
|
12918
12918
|
display: block;
|
|
@@ -12971,7 +12971,7 @@ const helper$1 = i$1`
|
|
|
12971
12971
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12972
12972
|
*/
|
|
12973
12973
|
|
|
12974
|
-
const requiredField$
|
|
12974
|
+
const requiredField$2 = i$b`
|
|
12975
12975
|
[part='label'] {
|
|
12976
12976
|
align-self: flex-start;
|
|
12977
12977
|
color: var(--lumo-secondary-text-color);
|
|
@@ -13069,9 +13069,9 @@ const requiredField$1 = i$1`
|
|
|
13069
13069
|
}
|
|
13070
13070
|
`;
|
|
13071
13071
|
|
|
13072
|
-
registerStyles('', requiredField$
|
|
13072
|
+
registerStyles('', requiredField$2, { moduleId: 'lumo-required-field' });
|
|
13073
13073
|
|
|
13074
|
-
const checkboxGroup = i$
|
|
13074
|
+
const checkboxGroup = i$b`
|
|
13075
13075
|
:host {
|
|
13076
13076
|
color: var(--lumo-body-text-color);
|
|
13077
13077
|
font-size: var(--lumo-font-size-m);
|
|
@@ -13116,7 +13116,7 @@ const checkboxGroup = i$1`
|
|
|
13116
13116
|
}
|
|
13117
13117
|
`;
|
|
13118
13118
|
|
|
13119
|
-
registerStyles('vaadin-checkbox-group', [requiredField$
|
|
13119
|
+
registerStyles('vaadin-checkbox-group', [requiredField$2, helper$2, checkboxGroup], {
|
|
13120
13120
|
moduleId: 'lumo-checkbox-group',
|
|
13121
13121
|
});
|
|
13122
13122
|
|
|
@@ -14337,27 +14337,23 @@ const CheckboxGroupInput = class {
|
|
|
14337
14337
|
registerInstance(this, hostRef);
|
|
14338
14338
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
14339
14339
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
14340
|
+
/**
|
|
14341
|
+
* Default value for the input.
|
|
14342
|
+
*/
|
|
14343
|
+
this.defaultValue = '';
|
|
14344
|
+
/**
|
|
14345
|
+
* Client custom styling via inline style
|
|
14346
|
+
*/
|
|
14347
|
+
this.clientStyling = '';
|
|
14348
|
+
this.limitStylingAppends = false;
|
|
14349
|
+
this.showTooltip = false;
|
|
14350
|
+
this.selectedValues = [];
|
|
14340
14351
|
this.value = null;
|
|
14341
14352
|
this.setClientStyling = () => {
|
|
14342
14353
|
let sheet = document.createElement('style');
|
|
14343
14354
|
sheet.innerHTML = this.clientStyling;
|
|
14344
14355
|
this.stylingContainer.prepend(sheet);
|
|
14345
14356
|
};
|
|
14346
|
-
this.name = undefined;
|
|
14347
|
-
this.displayName = undefined;
|
|
14348
|
-
this.defaultValue = '';
|
|
14349
|
-
this.autofilled = undefined;
|
|
14350
|
-
this.tooltip = undefined;
|
|
14351
|
-
this.options = undefined;
|
|
14352
|
-
this.validation = undefined;
|
|
14353
|
-
this.language = undefined;
|
|
14354
|
-
this.emitValue = undefined;
|
|
14355
|
-
this.clientStyling = '';
|
|
14356
|
-
this.errorMessage = undefined;
|
|
14357
|
-
this.isValid = undefined;
|
|
14358
|
-
this.limitStylingAppends = false;
|
|
14359
|
-
this.showTooltip = false;
|
|
14360
|
-
this.selectedValues = [];
|
|
14361
14357
|
}
|
|
14362
14358
|
validityChanged() {
|
|
14363
14359
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -14419,7 +14415,7 @@ const CheckboxGroupInput = class {
|
|
|
14419
14415
|
}
|
|
14420
14416
|
renderTooltip() {
|
|
14421
14417
|
if (this.showTooltip) {
|
|
14422
|
-
return (h$
|
|
14418
|
+
return (h$a("div", { class: `checkboxgroup__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
14423
14419
|
}
|
|
14424
14420
|
return null;
|
|
14425
14421
|
}
|
|
@@ -14430,13 +14426,13 @@ const CheckboxGroupInput = class {
|
|
|
14430
14426
|
: [];
|
|
14431
14427
|
}
|
|
14432
14428
|
renderLabel() {
|
|
14433
|
-
return (h$
|
|
14429
|
+
return (h$a("label", { class: 'checkbox__label', htmlFor: `${this.name}__input`, slot: 'label' }, h$a("div", { class: 'checkbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
|
|
14434
14430
|
}
|
|
14435
14431
|
render() {
|
|
14436
|
-
return h$
|
|
14437
|
-
h$
|
|
14432
|
+
return h$a("div", { key: 'fa45026502fd8d46aa537aee03210ad68d30e577', class: `checkboxgroup__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h$a("div", { key: '15ded4fd896920c6244806e49f300c124c27186d', class: 'checkboxgroup__wrapper--flex' }, h$a("vaadin-checkbox", { key: 'd7eaa205877f8f12c9ef7d4f77018665806f5c7c', class: 'checkbox__input', checked: this.selectedValues.length === this.options.length || this.defaultValue === 'true', indeterminate: this.selectedValues.length > 0 && this.selectedValues.length < this.options.length, onChange: (e) => this.handleParentCheckbox(e) }, this.renderLabel()), this.tooltip &&
|
|
14433
|
+
h$a("img", { key: 'aca39ed398415a6e2cef861be40dad33e0398759', class: 'checkboxgroup__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h$a("small", { key: 'a1a6e1c3c02edcca572b8826ffba06835ca451c3', class: 'checkboxgroup__error-message' }, this.errorMessage), h$a("vaadin-checkbox-group", { key: '9f5f8a945e4ba13d7d0da6d362c15d00a7796b71', theme: "vertical", value: this.selectedValues, "on-value-changed": (event) => {
|
|
14438
14434
|
this.selectedValues = event.detail.value;
|
|
14439
|
-
} }, this.options.map((checkbox) => h$
|
|
14435
|
+
} }, this.options.map((checkbox) => h$a("vaadin-checkbox", { class: 'checkbox__input', name: checkbox.name, value: checkbox.name, label: checkbox.displayName }))));
|
|
14440
14436
|
}
|
|
14441
14437
|
get element() { return getElement(this); }
|
|
14442
14438
|
static get watchers() { return {
|
|
@@ -14455,25 +14451,22 @@ const CheckboxInput = class {
|
|
|
14455
14451
|
registerInstance(this, hostRef);
|
|
14456
14452
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
14457
14453
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
14454
|
+
/**
|
|
14455
|
+
* Default value for the input.
|
|
14456
|
+
*/
|
|
14457
|
+
this.defaultValue = '';
|
|
14458
|
+
/**
|
|
14459
|
+
* Client custom styling via inline style
|
|
14460
|
+
*/
|
|
14461
|
+
this.clientStyling = '';
|
|
14462
|
+
this.limitStylingAppends = false;
|
|
14463
|
+
this.showTooltip = false;
|
|
14458
14464
|
this.value = '';
|
|
14459
14465
|
this.setClientStyling = () => {
|
|
14460
14466
|
let sheet = document.createElement('style');
|
|
14461
14467
|
sheet.innerHTML = this.clientStyling;
|
|
14462
14468
|
this.stylingContainer.prepend(sheet);
|
|
14463
14469
|
};
|
|
14464
|
-
this.name = undefined;
|
|
14465
|
-
this.displayName = undefined;
|
|
14466
|
-
this.defaultValue = '';
|
|
14467
|
-
this.autofilled = undefined;
|
|
14468
|
-
this.tooltip = undefined;
|
|
14469
|
-
this.validation = undefined;
|
|
14470
|
-
this.language = undefined;
|
|
14471
|
-
this.emitValue = undefined;
|
|
14472
|
-
this.clientStyling = '';
|
|
14473
|
-
this.errorMessage = undefined;
|
|
14474
|
-
this.isValid = undefined;
|
|
14475
|
-
this.limitStylingAppends = false;
|
|
14476
|
-
this.showTooltip = false;
|
|
14477
14470
|
}
|
|
14478
14471
|
validityChanged() {
|
|
14479
14472
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -14528,17 +14521,17 @@ const CheckboxInput = class {
|
|
|
14528
14521
|
}
|
|
14529
14522
|
}
|
|
14530
14523
|
renderLabel() {
|
|
14531
|
-
return (h$
|
|
14524
|
+
return (h$a("label", { class: 'checkbox__label', htmlFor: `${this.name}__input` }, h$a("div", { class: 'checkbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
|
|
14532
14525
|
}
|
|
14533
14526
|
renderTooltip() {
|
|
14534
14527
|
if (this.showTooltip) {
|
|
14535
|
-
return (h$
|
|
14528
|
+
return (h$a("div", { class: `checkbox__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
14536
14529
|
}
|
|
14537
14530
|
return null;
|
|
14538
14531
|
}
|
|
14539
14532
|
render() {
|
|
14540
|
-
return h$
|
|
14541
|
-
h$
|
|
14533
|
+
return h$a("div", { key: '0aae00d291d1da02adae1bc91e79ccd579aa5c7f', class: `checkbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h$a("input", { key: '4b8c61d322b5065d8abe4e2687e270511fadc97f', class: 'checkbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel(), h$a("small", { key: '934263cb58a0d379e8b7dc1f5004ad7e61c63ce0', class: 'checkbox__error-message' }, this.errorMessage), h$a("div", { key: '88cc71329d88b6325d792226e64ff7f93e940178', class: 'checkbox__wrapper--relative' }, this.tooltip &&
|
|
14534
|
+
h$a("img", { key: '3708dc613dc920bac6557f2a8020bbafd97d9127', class: 'checkbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()));
|
|
14542
14535
|
}
|
|
14543
14536
|
static get watchers() { return {
|
|
14544
14537
|
"isValid": ["validityChanged"],
|
|
@@ -14581,7 +14574,7 @@ const addLumoGlobalStyles$3 = (id, ...styles) => {
|
|
|
14581
14574
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14582
14575
|
*/
|
|
14583
14576
|
|
|
14584
|
-
const colorBase$2 = i$
|
|
14577
|
+
const colorBase$2 = i$b`
|
|
14585
14578
|
:host {
|
|
14586
14579
|
/* Base (background) */
|
|
14587
14580
|
--lumo-base-color: #fff;
|
|
@@ -14670,7 +14663,7 @@ const colorBase$2 = i$1`
|
|
|
14670
14663
|
|
|
14671
14664
|
addLumoGlobalStyles$3('color-props', colorBase$2);
|
|
14672
14665
|
|
|
14673
|
-
const color$2 = i$
|
|
14666
|
+
const color$2 = i$b`
|
|
14674
14667
|
[theme~='dark'] {
|
|
14675
14668
|
/* Base (background) */
|
|
14676
14669
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -14795,7 +14788,7 @@ registerStyles('', color$2, { moduleId: 'lumo-color' });
|
|
|
14795
14788
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14796
14789
|
*/
|
|
14797
14790
|
|
|
14798
|
-
const sizing$3 = i$
|
|
14791
|
+
const sizing$3 = i$b`
|
|
14799
14792
|
:host {
|
|
14800
14793
|
--lumo-size-xs: 1.625rem;
|
|
14801
14794
|
--lumo-size-s: 1.875rem;
|
|
@@ -14820,7 +14813,7 @@ addLumoGlobalStyles$3('sizing-props', sizing$3);
|
|
|
14820
14813
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14821
14814
|
*/
|
|
14822
14815
|
|
|
14823
|
-
const style$3 = i$
|
|
14816
|
+
const style$3 = i$b`
|
|
14824
14817
|
:host {
|
|
14825
14818
|
/* Border radius */
|
|
14826
14819
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -14842,7 +14835,7 @@ const style$3 = i$1`
|
|
|
14842
14835
|
/**
|
|
14843
14836
|
* Default values for component-specific custom properties.
|
|
14844
14837
|
*/
|
|
14845
|
-
i$
|
|
14838
|
+
i$b`
|
|
14846
14839
|
html {
|
|
14847
14840
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
14848
14841
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -14858,7 +14851,7 @@ addLumoGlobalStyles$3('style-props', style$3);
|
|
|
14858
14851
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14859
14852
|
*/
|
|
14860
14853
|
|
|
14861
|
-
const font$3 = i$
|
|
14854
|
+
const font$3 = i$b`
|
|
14862
14855
|
:host {
|
|
14863
14856
|
/* prettier-ignore */
|
|
14864
14857
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -14880,7 +14873,7 @@ const font$3 = i$1`
|
|
|
14880
14873
|
}
|
|
14881
14874
|
`;
|
|
14882
14875
|
|
|
14883
|
-
const typography$3 = i$
|
|
14876
|
+
const typography$3 = i$b`
|
|
14884
14877
|
body,
|
|
14885
14878
|
:host {
|
|
14886
14879
|
font-family: var(--lumo-font-family);
|
|
@@ -14979,7 +14972,7 @@ addLumoGlobalStyles$3('typography-props', font$3);
|
|
|
14979
14972
|
|
|
14980
14973
|
registerStyles(
|
|
14981
14974
|
'vaadin-input-container',
|
|
14982
|
-
i$
|
|
14975
|
+
i$b`
|
|
14983
14976
|
:host {
|
|
14984
14977
|
background-color: var(--lumo-contrast-10pct);
|
|
14985
14978
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -15295,241 +15288,6 @@ class InputContainer extends ThemableMixin(DirMixin(PolymerElement)) {
|
|
|
15295
15288
|
|
|
15296
15289
|
defineCustomElement(InputContainer);
|
|
15297
15290
|
|
|
15298
|
-
/**
|
|
15299
|
-
* @license
|
|
15300
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15301
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15302
|
-
*/
|
|
15303
|
-
|
|
15304
|
-
const overlay = i$1`
|
|
15305
|
-
:host {
|
|
15306
|
-
top: var(--lumo-space-m);
|
|
15307
|
-
right: var(--lumo-space-m);
|
|
15308
|
-
bottom: var(--lumo-space-m);
|
|
15309
|
-
left: var(--lumo-space-m);
|
|
15310
|
-
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
15311
|
-
/* stylelint-disable-next-line */
|
|
15312
|
-
outline: 0px solid transparent;
|
|
15313
|
-
}
|
|
15314
|
-
|
|
15315
|
-
[part='overlay'] {
|
|
15316
|
-
background-color: var(--lumo-base-color);
|
|
15317
|
-
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
15318
|
-
border-radius: var(--lumo-border-radius-m);
|
|
15319
|
-
box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
|
|
15320
|
-
color: var(--lumo-body-text-color);
|
|
15321
|
-
font-family: var(--lumo-font-family);
|
|
15322
|
-
font-size: var(--lumo-font-size-m);
|
|
15323
|
-
font-weight: 400;
|
|
15324
|
-
line-height: var(--lumo-line-height-m);
|
|
15325
|
-
letter-spacing: 0;
|
|
15326
|
-
text-transform: none;
|
|
15327
|
-
-webkit-text-size-adjust: 100%;
|
|
15328
|
-
-webkit-font-smoothing: antialiased;
|
|
15329
|
-
-moz-osx-font-smoothing: grayscale;
|
|
15330
|
-
}
|
|
15331
|
-
|
|
15332
|
-
[part='content'] {
|
|
15333
|
-
padding: var(--lumo-space-xs);
|
|
15334
|
-
}
|
|
15335
|
-
|
|
15336
|
-
[part='backdrop'] {
|
|
15337
|
-
background-color: var(--lumo-shade-20pct);
|
|
15338
|
-
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
15339
|
-
will-change: opacity;
|
|
15340
|
-
}
|
|
15341
|
-
|
|
15342
|
-
@keyframes lumo-overlay-backdrop-enter {
|
|
15343
|
-
0% {
|
|
15344
|
-
opacity: 0;
|
|
15345
|
-
}
|
|
15346
|
-
}
|
|
15347
|
-
|
|
15348
|
-
:host([closing]) [part='backdrop'] {
|
|
15349
|
-
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
15350
|
-
}
|
|
15351
|
-
|
|
15352
|
-
@keyframes lumo-overlay-backdrop-exit {
|
|
15353
|
-
100% {
|
|
15354
|
-
opacity: 0;
|
|
15355
|
-
}
|
|
15356
|
-
}
|
|
15357
|
-
|
|
15358
|
-
@keyframes lumo-overlay-dummy-animation {
|
|
15359
|
-
0% {
|
|
15360
|
-
opacity: 1;
|
|
15361
|
-
}
|
|
15362
|
-
|
|
15363
|
-
100% {
|
|
15364
|
-
opacity: 1;
|
|
15365
|
-
}
|
|
15366
|
-
}
|
|
15367
|
-
`;
|
|
15368
|
-
|
|
15369
|
-
registerStyles('', overlay, { moduleId: 'lumo-overlay' });
|
|
15370
|
-
|
|
15371
|
-
/**
|
|
15372
|
-
* @license
|
|
15373
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15374
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15375
|
-
*/
|
|
15376
|
-
|
|
15377
|
-
const menuOverlayCore = i$1`
|
|
15378
|
-
:host([opening]),
|
|
15379
|
-
:host([closing]) {
|
|
15380
|
-
animation: 0.14s lumo-overlay-dummy-animation;
|
|
15381
|
-
}
|
|
15382
|
-
|
|
15383
|
-
[part='overlay'] {
|
|
15384
|
-
will-change: opacity, transform;
|
|
15385
|
-
}
|
|
15386
|
-
|
|
15387
|
-
:host([opening]) [part='overlay'] {
|
|
15388
|
-
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
15389
|
-
}
|
|
15390
|
-
|
|
15391
|
-
@keyframes lumo-menu-overlay-enter {
|
|
15392
|
-
0% {
|
|
15393
|
-
opacity: 0;
|
|
15394
|
-
transform: translateY(-4px);
|
|
15395
|
-
}
|
|
15396
|
-
}
|
|
15397
|
-
|
|
15398
|
-
:host([closing]) [part='overlay'] {
|
|
15399
|
-
animation: 0.1s lumo-menu-overlay-exit both;
|
|
15400
|
-
}
|
|
15401
|
-
|
|
15402
|
-
@keyframes lumo-menu-overlay-exit {
|
|
15403
|
-
100% {
|
|
15404
|
-
opacity: 0;
|
|
15405
|
-
}
|
|
15406
|
-
}
|
|
15407
|
-
`;
|
|
15408
|
-
|
|
15409
|
-
registerStyles('', menuOverlayCore, { moduleId: 'lumo-menu-overlay-core' });
|
|
15410
|
-
|
|
15411
|
-
const menuOverlayExt = i$1`
|
|
15412
|
-
/* Small viewport (bottom sheet) styles */
|
|
15413
|
-
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
15414
|
-
@media (max-width: 420px), (max-height: 420px) {
|
|
15415
|
-
:host {
|
|
15416
|
-
top: 0 !important;
|
|
15417
|
-
right: 0 !important;
|
|
15418
|
-
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
15419
|
-
left: 0 !important;
|
|
15420
|
-
align-items: stretch !important;
|
|
15421
|
-
justify-content: flex-end !important;
|
|
15422
|
-
}
|
|
15423
|
-
|
|
15424
|
-
[part='overlay'] {
|
|
15425
|
-
max-height: 50vh;
|
|
15426
|
-
width: 100vw;
|
|
15427
|
-
border-radius: 0;
|
|
15428
|
-
box-shadow: var(--lumo-box-shadow-xl);
|
|
15429
|
-
}
|
|
15430
|
-
|
|
15431
|
-
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
15432
|
-
[part='content'] {
|
|
15433
|
-
padding: 30px var(--lumo-space-m);
|
|
15434
|
-
max-height: inherit;
|
|
15435
|
-
box-sizing: border-box;
|
|
15436
|
-
-webkit-overflow-scrolling: touch;
|
|
15437
|
-
overflow: auto;
|
|
15438
|
-
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
15439
|
-
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
15440
|
-
}
|
|
15441
|
-
|
|
15442
|
-
[part='backdrop'] {
|
|
15443
|
-
display: block;
|
|
15444
|
-
}
|
|
15445
|
-
|
|
15446
|
-
/* Animations */
|
|
15447
|
-
|
|
15448
|
-
:host([opening]) [part='overlay'] {
|
|
15449
|
-
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
15450
|
-
}
|
|
15451
|
-
|
|
15452
|
-
:host([closing]),
|
|
15453
|
-
:host([closing]) [part='backdrop'] {
|
|
15454
|
-
animation-delay: 0.14s;
|
|
15455
|
-
}
|
|
15456
|
-
|
|
15457
|
-
:host([closing]) [part='overlay'] {
|
|
15458
|
-
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
15459
|
-
}
|
|
15460
|
-
}
|
|
15461
|
-
|
|
15462
|
-
@keyframes lumo-mobile-menu-overlay-enter {
|
|
15463
|
-
0% {
|
|
15464
|
-
transform: translateY(150%);
|
|
15465
|
-
}
|
|
15466
|
-
}
|
|
15467
|
-
|
|
15468
|
-
@keyframes lumo-mobile-menu-overlay-exit {
|
|
15469
|
-
100% {
|
|
15470
|
-
transform: translateY(150%);
|
|
15471
|
-
}
|
|
15472
|
-
}
|
|
15473
|
-
`;
|
|
15474
|
-
|
|
15475
|
-
const menuOverlay = [overlay, menuOverlayCore, menuOverlayExt];
|
|
15476
|
-
|
|
15477
|
-
registerStyles('', menuOverlay, { moduleId: 'lumo-menu-overlay' });
|
|
15478
|
-
|
|
15479
|
-
const datePickerOverlay = i$1`
|
|
15480
|
-
[part='overlay'] {
|
|
15481
|
-
/*
|
|
15482
|
-
Width:
|
|
15483
|
-
date cell widths
|
|
15484
|
-
+ month calendar side padding
|
|
15485
|
-
+ year scroller width
|
|
15486
|
-
*/
|
|
15487
|
-
/* prettier-ignore */
|
|
15488
|
-
width:
|
|
15489
|
-
calc(
|
|
15490
|
-
var(--lumo-size-m) * 7
|
|
15491
|
-
+ var(--lumo-space-xs) * 2
|
|
15492
|
-
+ 57px
|
|
15493
|
-
);
|
|
15494
|
-
height: 100%;
|
|
15495
|
-
max-height: calc(var(--lumo-size-m) * 14);
|
|
15496
|
-
overflow: hidden;
|
|
15497
|
-
-webkit-tap-highlight-color: transparent;
|
|
15498
|
-
}
|
|
15499
|
-
|
|
15500
|
-
[part='overlay'] {
|
|
15501
|
-
flex-direction: column;
|
|
15502
|
-
}
|
|
15503
|
-
|
|
15504
|
-
[part='content'] {
|
|
15505
|
-
padding: 0;
|
|
15506
|
-
height: 100%;
|
|
15507
|
-
overflow: hidden;
|
|
15508
|
-
-webkit-mask-image: none;
|
|
15509
|
-
mask-image: none;
|
|
15510
|
-
}
|
|
15511
|
-
|
|
15512
|
-
:host([top-aligned]) [part~='overlay'] {
|
|
15513
|
-
margin-top: var(--lumo-space-xs);
|
|
15514
|
-
}
|
|
15515
|
-
|
|
15516
|
-
:host([bottom-aligned]) [part~='overlay'] {
|
|
15517
|
-
margin-bottom: var(--lumo-space-xs);
|
|
15518
|
-
}
|
|
15519
|
-
|
|
15520
|
-
@media (max-width: 420px), (max-height: 420px) {
|
|
15521
|
-
[part='overlay'] {
|
|
15522
|
-
width: 100vw;
|
|
15523
|
-
height: 70vh;
|
|
15524
|
-
max-height: 70vh;
|
|
15525
|
-
}
|
|
15526
|
-
}
|
|
15527
|
-
`;
|
|
15528
|
-
|
|
15529
|
-
registerStyles('vaadin-date-picker-overlay', [menuOverlay, datePickerOverlay], {
|
|
15530
|
-
moduleId: 'lumo-date-picker-overlay',
|
|
15531
|
-
});
|
|
15532
|
-
|
|
15533
15291
|
/**
|
|
15534
15292
|
* @license
|
|
15535
15293
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
@@ -15564,7 +15322,103 @@ const addLumoGlobalStyles$2 = (id, ...styles) => {
|
|
|
15564
15322
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15565
15323
|
*/
|
|
15566
15324
|
|
|
15567
|
-
const
|
|
15325
|
+
const sizing$2 = i$b`
|
|
15326
|
+
:host {
|
|
15327
|
+
--lumo-size-xs: 1.625rem;
|
|
15328
|
+
--lumo-size-s: 1.875rem;
|
|
15329
|
+
--lumo-size-m: 2.25rem;
|
|
15330
|
+
--lumo-size-l: 2.75rem;
|
|
15331
|
+
--lumo-size-xl: 3.5rem;
|
|
15332
|
+
|
|
15333
|
+
/* Icons */
|
|
15334
|
+
--lumo-icon-size-s: 1.25em;
|
|
15335
|
+
--lumo-icon-size-m: 1.5em;
|
|
15336
|
+
--lumo-icon-size-l: 2.25em;
|
|
15337
|
+
/* For backwards compatibility */
|
|
15338
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
15339
|
+
}
|
|
15340
|
+
`;
|
|
15341
|
+
|
|
15342
|
+
addLumoGlobalStyles$2('sizing-props', sizing$2);
|
|
15343
|
+
|
|
15344
|
+
/**
|
|
15345
|
+
* @license
|
|
15346
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15347
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15348
|
+
*/
|
|
15349
|
+
|
|
15350
|
+
const spacing$2 = i$b`
|
|
15351
|
+
:host {
|
|
15352
|
+
/* Square */
|
|
15353
|
+
--lumo-space-xs: 0.25rem;
|
|
15354
|
+
--lumo-space-s: 0.5rem;
|
|
15355
|
+
--lumo-space-m: 1rem;
|
|
15356
|
+
--lumo-space-l: 1.5rem;
|
|
15357
|
+
--lumo-space-xl: 2.5rem;
|
|
15358
|
+
|
|
15359
|
+
/* Wide */
|
|
15360
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
15361
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
15362
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
15363
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
15364
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
15365
|
+
|
|
15366
|
+
/* Tall */
|
|
15367
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
15368
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
15369
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
15370
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
15371
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
15372
|
+
}
|
|
15373
|
+
`;
|
|
15374
|
+
|
|
15375
|
+
addLumoGlobalStyles$2('spacing-props', spacing$2);
|
|
15376
|
+
|
|
15377
|
+
/**
|
|
15378
|
+
* @license
|
|
15379
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15380
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15381
|
+
*/
|
|
15382
|
+
|
|
15383
|
+
const style$2 = i$b`
|
|
15384
|
+
:host {
|
|
15385
|
+
/* Border radius */
|
|
15386
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
15387
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
15388
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
15389
|
+
|
|
15390
|
+
/* Shadow */
|
|
15391
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
15392
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
15393
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
15394
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
15395
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
15396
|
+
|
|
15397
|
+
/* Clickable element cursor */
|
|
15398
|
+
--lumo-clickable-cursor: default;
|
|
15399
|
+
}
|
|
15400
|
+
`;
|
|
15401
|
+
|
|
15402
|
+
/**
|
|
15403
|
+
* Default values for component-specific custom properties.
|
|
15404
|
+
*/
|
|
15405
|
+
i$b`
|
|
15406
|
+
html {
|
|
15407
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
15408
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
15409
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
15410
|
+
}
|
|
15411
|
+
`;
|
|
15412
|
+
|
|
15413
|
+
addLumoGlobalStyles$2('style-props', style$2);
|
|
15414
|
+
|
|
15415
|
+
/**
|
|
15416
|
+
* @license
|
|
15417
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15418
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15419
|
+
*/
|
|
15420
|
+
|
|
15421
|
+
const colorBase$1 = i$b`
|
|
15568
15422
|
:host {
|
|
15569
15423
|
/* Base (background) */
|
|
15570
15424
|
--lumo-base-color: #fff;
|
|
@@ -15653,7 +15507,7 @@ const colorBase$1 = i$1`
|
|
|
15653
15507
|
|
|
15654
15508
|
addLumoGlobalStyles$2('color-props', colorBase$1);
|
|
15655
15509
|
|
|
15656
|
-
const color$1 = i$
|
|
15510
|
+
const color$1 = i$b`
|
|
15657
15511
|
[theme~='dark'] {
|
|
15658
15512
|
/* Base (background) */
|
|
15659
15513
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -15778,103 +15632,7 @@ registerStyles('', color$1, { moduleId: 'lumo-color' });
|
|
|
15778
15632
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15779
15633
|
*/
|
|
15780
15634
|
|
|
15781
|
-
const
|
|
15782
|
-
:host {
|
|
15783
|
-
--lumo-size-xs: 1.625rem;
|
|
15784
|
-
--lumo-size-s: 1.875rem;
|
|
15785
|
-
--lumo-size-m: 2.25rem;
|
|
15786
|
-
--lumo-size-l: 2.75rem;
|
|
15787
|
-
--lumo-size-xl: 3.5rem;
|
|
15788
|
-
|
|
15789
|
-
/* Icons */
|
|
15790
|
-
--lumo-icon-size-s: 1.25em;
|
|
15791
|
-
--lumo-icon-size-m: 1.5em;
|
|
15792
|
-
--lumo-icon-size-l: 2.25em;
|
|
15793
|
-
/* For backwards compatibility */
|
|
15794
|
-
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
15795
|
-
}
|
|
15796
|
-
`;
|
|
15797
|
-
|
|
15798
|
-
addLumoGlobalStyles$2('sizing-props', sizing$2);
|
|
15799
|
-
|
|
15800
|
-
/**
|
|
15801
|
-
* @license
|
|
15802
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15803
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15804
|
-
*/
|
|
15805
|
-
|
|
15806
|
-
const spacing$2 = i$1`
|
|
15807
|
-
:host {
|
|
15808
|
-
/* Square */
|
|
15809
|
-
--lumo-space-xs: 0.25rem;
|
|
15810
|
-
--lumo-space-s: 0.5rem;
|
|
15811
|
-
--lumo-space-m: 1rem;
|
|
15812
|
-
--lumo-space-l: 1.5rem;
|
|
15813
|
-
--lumo-space-xl: 2.5rem;
|
|
15814
|
-
|
|
15815
|
-
/* Wide */
|
|
15816
|
-
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
15817
|
-
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
15818
|
-
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
15819
|
-
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
15820
|
-
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
15821
|
-
|
|
15822
|
-
/* Tall */
|
|
15823
|
-
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
15824
|
-
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
15825
|
-
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
15826
|
-
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
15827
|
-
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
15828
|
-
}
|
|
15829
|
-
`;
|
|
15830
|
-
|
|
15831
|
-
addLumoGlobalStyles$2('spacing-props', spacing$2);
|
|
15832
|
-
|
|
15833
|
-
/**
|
|
15834
|
-
* @license
|
|
15835
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15836
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15837
|
-
*/
|
|
15838
|
-
|
|
15839
|
-
const style$2 = i$1`
|
|
15840
|
-
:host {
|
|
15841
|
-
/* Border radius */
|
|
15842
|
-
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
15843
|
-
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
15844
|
-
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
15845
|
-
|
|
15846
|
-
/* Shadow */
|
|
15847
|
-
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
15848
|
-
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
15849
|
-
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
15850
|
-
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
15851
|
-
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
15852
|
-
|
|
15853
|
-
/* Clickable element cursor */
|
|
15854
|
-
--lumo-clickable-cursor: default;
|
|
15855
|
-
}
|
|
15856
|
-
`;
|
|
15857
|
-
|
|
15858
|
-
/**
|
|
15859
|
-
* Default values for component-specific custom properties.
|
|
15860
|
-
*/
|
|
15861
|
-
i$1`
|
|
15862
|
-
html {
|
|
15863
|
-
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
15864
|
-
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
15865
|
-
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
15866
|
-
}
|
|
15867
|
-
`;
|
|
15868
|
-
|
|
15869
|
-
addLumoGlobalStyles$2('style-props', style$2);
|
|
15870
|
-
|
|
15871
|
-
/**
|
|
15872
|
-
* @license
|
|
15873
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15874
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15875
|
-
*/
|
|
15876
|
-
|
|
15877
|
-
const font$2 = i$1`
|
|
15635
|
+
const font$2 = i$b`
|
|
15878
15636
|
:host {
|
|
15879
15637
|
/* prettier-ignore */
|
|
15880
15638
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -15896,7 +15654,7 @@ const font$2 = i$1`
|
|
|
15896
15654
|
}
|
|
15897
15655
|
`;
|
|
15898
15656
|
|
|
15899
|
-
const typography$2 = i$
|
|
15657
|
+
const typography$2 = i$b`
|
|
15900
15658
|
body,
|
|
15901
15659
|
:host {
|
|
15902
15660
|
font-family: var(--lumo-font-family);
|
|
@@ -15993,7 +15751,242 @@ const typography$2 = i$1`
|
|
|
15993
15751
|
registerStyles('', typography$2, { moduleId: 'lumo-typography' });
|
|
15994
15752
|
addLumoGlobalStyles$2('typography-props', font$2);
|
|
15995
15753
|
|
|
15996
|
-
|
|
15754
|
+
/**
|
|
15755
|
+
* @license
|
|
15756
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15757
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15758
|
+
*/
|
|
15759
|
+
|
|
15760
|
+
const overlay$1 = i$b`
|
|
15761
|
+
:host {
|
|
15762
|
+
top: var(--lumo-space-m);
|
|
15763
|
+
right: var(--lumo-space-m);
|
|
15764
|
+
bottom: var(--lumo-space-m);
|
|
15765
|
+
left: var(--lumo-space-m);
|
|
15766
|
+
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
15767
|
+
/* stylelint-disable-next-line */
|
|
15768
|
+
outline: 0px solid transparent;
|
|
15769
|
+
}
|
|
15770
|
+
|
|
15771
|
+
[part='overlay'] {
|
|
15772
|
+
background-color: var(--lumo-base-color);
|
|
15773
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
15774
|
+
border-radius: var(--lumo-border-radius-m);
|
|
15775
|
+
box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
|
|
15776
|
+
color: var(--lumo-body-text-color);
|
|
15777
|
+
font-family: var(--lumo-font-family);
|
|
15778
|
+
font-size: var(--lumo-font-size-m);
|
|
15779
|
+
font-weight: 400;
|
|
15780
|
+
line-height: var(--lumo-line-height-m);
|
|
15781
|
+
letter-spacing: 0;
|
|
15782
|
+
text-transform: none;
|
|
15783
|
+
-webkit-text-size-adjust: 100%;
|
|
15784
|
+
-webkit-font-smoothing: antialiased;
|
|
15785
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15786
|
+
}
|
|
15787
|
+
|
|
15788
|
+
[part='content'] {
|
|
15789
|
+
padding: var(--lumo-space-xs);
|
|
15790
|
+
}
|
|
15791
|
+
|
|
15792
|
+
[part='backdrop'] {
|
|
15793
|
+
background-color: var(--lumo-shade-20pct);
|
|
15794
|
+
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
15795
|
+
will-change: opacity;
|
|
15796
|
+
}
|
|
15797
|
+
|
|
15798
|
+
@keyframes lumo-overlay-backdrop-enter {
|
|
15799
|
+
0% {
|
|
15800
|
+
opacity: 0;
|
|
15801
|
+
}
|
|
15802
|
+
}
|
|
15803
|
+
|
|
15804
|
+
:host([closing]) [part='backdrop'] {
|
|
15805
|
+
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
15806
|
+
}
|
|
15807
|
+
|
|
15808
|
+
@keyframes lumo-overlay-backdrop-exit {
|
|
15809
|
+
100% {
|
|
15810
|
+
opacity: 0;
|
|
15811
|
+
}
|
|
15812
|
+
}
|
|
15813
|
+
|
|
15814
|
+
@keyframes lumo-overlay-dummy-animation {
|
|
15815
|
+
0% {
|
|
15816
|
+
opacity: 1;
|
|
15817
|
+
}
|
|
15818
|
+
|
|
15819
|
+
100% {
|
|
15820
|
+
opacity: 1;
|
|
15821
|
+
}
|
|
15822
|
+
}
|
|
15823
|
+
`;
|
|
15824
|
+
|
|
15825
|
+
registerStyles('', overlay$1, { moduleId: 'lumo-overlay' });
|
|
15826
|
+
|
|
15827
|
+
/**
|
|
15828
|
+
* @license
|
|
15829
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15830
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15831
|
+
*/
|
|
15832
|
+
|
|
15833
|
+
const menuOverlayCore$1 = i$b`
|
|
15834
|
+
:host([opening]),
|
|
15835
|
+
:host([closing]) {
|
|
15836
|
+
animation: 0.14s lumo-overlay-dummy-animation;
|
|
15837
|
+
}
|
|
15838
|
+
|
|
15839
|
+
[part='overlay'] {
|
|
15840
|
+
will-change: opacity, transform;
|
|
15841
|
+
}
|
|
15842
|
+
|
|
15843
|
+
:host([opening]) [part='overlay'] {
|
|
15844
|
+
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
15845
|
+
}
|
|
15846
|
+
|
|
15847
|
+
@keyframes lumo-menu-overlay-enter {
|
|
15848
|
+
0% {
|
|
15849
|
+
opacity: 0;
|
|
15850
|
+
transform: translateY(-4px);
|
|
15851
|
+
}
|
|
15852
|
+
}
|
|
15853
|
+
|
|
15854
|
+
:host([closing]) [part='overlay'] {
|
|
15855
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
15856
|
+
}
|
|
15857
|
+
|
|
15858
|
+
@keyframes lumo-menu-overlay-exit {
|
|
15859
|
+
100% {
|
|
15860
|
+
opacity: 0;
|
|
15861
|
+
}
|
|
15862
|
+
}
|
|
15863
|
+
`;
|
|
15864
|
+
|
|
15865
|
+
registerStyles('', menuOverlayCore$1, { moduleId: 'lumo-menu-overlay-core' });
|
|
15866
|
+
|
|
15867
|
+
const menuOverlayExt$1 = i$b`
|
|
15868
|
+
/* Small viewport (bottom sheet) styles */
|
|
15869
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
15870
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
15871
|
+
:host {
|
|
15872
|
+
top: 0 !important;
|
|
15873
|
+
right: 0 !important;
|
|
15874
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
15875
|
+
left: 0 !important;
|
|
15876
|
+
align-items: stretch !important;
|
|
15877
|
+
justify-content: flex-end !important;
|
|
15878
|
+
}
|
|
15879
|
+
|
|
15880
|
+
[part='overlay'] {
|
|
15881
|
+
max-height: 50vh;
|
|
15882
|
+
width: 100vw;
|
|
15883
|
+
border-radius: 0;
|
|
15884
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
15885
|
+
}
|
|
15886
|
+
|
|
15887
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
15888
|
+
[part='content'] {
|
|
15889
|
+
padding: 30px var(--lumo-space-m);
|
|
15890
|
+
max-height: inherit;
|
|
15891
|
+
box-sizing: border-box;
|
|
15892
|
+
-webkit-overflow-scrolling: touch;
|
|
15893
|
+
overflow: auto;
|
|
15894
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
15895
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
15896
|
+
}
|
|
15897
|
+
|
|
15898
|
+
[part='backdrop'] {
|
|
15899
|
+
display: block;
|
|
15900
|
+
}
|
|
15901
|
+
|
|
15902
|
+
/* Animations */
|
|
15903
|
+
|
|
15904
|
+
:host([opening]) [part='overlay'] {
|
|
15905
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
15906
|
+
}
|
|
15907
|
+
|
|
15908
|
+
:host([closing]),
|
|
15909
|
+
:host([closing]) [part='backdrop'] {
|
|
15910
|
+
animation-delay: 0.14s;
|
|
15911
|
+
}
|
|
15912
|
+
|
|
15913
|
+
:host([closing]) [part='overlay'] {
|
|
15914
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
15915
|
+
}
|
|
15916
|
+
}
|
|
15917
|
+
|
|
15918
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
15919
|
+
0% {
|
|
15920
|
+
transform: translateY(150%);
|
|
15921
|
+
}
|
|
15922
|
+
}
|
|
15923
|
+
|
|
15924
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
15925
|
+
100% {
|
|
15926
|
+
transform: translateY(150%);
|
|
15927
|
+
}
|
|
15928
|
+
}
|
|
15929
|
+
`;
|
|
15930
|
+
|
|
15931
|
+
const menuOverlay$1 = [overlay$1, menuOverlayCore$1, menuOverlayExt$1];
|
|
15932
|
+
|
|
15933
|
+
registerStyles('', menuOverlay$1, { moduleId: 'lumo-menu-overlay' });
|
|
15934
|
+
|
|
15935
|
+
const datePickerOverlay = i$b`
|
|
15936
|
+
[part='overlay'] {
|
|
15937
|
+
/*
|
|
15938
|
+
Width:
|
|
15939
|
+
date cell widths
|
|
15940
|
+
+ month calendar side padding
|
|
15941
|
+
+ year scroller width
|
|
15942
|
+
*/
|
|
15943
|
+
/* prettier-ignore */
|
|
15944
|
+
width:
|
|
15945
|
+
calc(
|
|
15946
|
+
var(--lumo-size-m) * 7
|
|
15947
|
+
+ var(--lumo-space-xs) * 2
|
|
15948
|
+
+ 57px
|
|
15949
|
+
);
|
|
15950
|
+
height: 100%;
|
|
15951
|
+
max-height: calc(var(--lumo-size-m) * 14);
|
|
15952
|
+
overflow: hidden;
|
|
15953
|
+
-webkit-tap-highlight-color: transparent;
|
|
15954
|
+
}
|
|
15955
|
+
|
|
15956
|
+
[part='overlay'] {
|
|
15957
|
+
flex-direction: column;
|
|
15958
|
+
}
|
|
15959
|
+
|
|
15960
|
+
[part='content'] {
|
|
15961
|
+
padding: 0;
|
|
15962
|
+
height: 100%;
|
|
15963
|
+
overflow: hidden;
|
|
15964
|
+
-webkit-mask-image: none;
|
|
15965
|
+
mask-image: none;
|
|
15966
|
+
}
|
|
15967
|
+
|
|
15968
|
+
:host([top-aligned]) [part~='overlay'] {
|
|
15969
|
+
margin-top: var(--lumo-space-xs);
|
|
15970
|
+
}
|
|
15971
|
+
|
|
15972
|
+
:host([bottom-aligned]) [part~='overlay'] {
|
|
15973
|
+
margin-bottom: var(--lumo-space-xs);
|
|
15974
|
+
}
|
|
15975
|
+
|
|
15976
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
15977
|
+
[part='overlay'] {
|
|
15978
|
+
width: 100vw;
|
|
15979
|
+
height: 70vh;
|
|
15980
|
+
max-height: 70vh;
|
|
15981
|
+
}
|
|
15982
|
+
}
|
|
15983
|
+
`;
|
|
15984
|
+
|
|
15985
|
+
registerStyles('vaadin-date-picker-overlay', [menuOverlay$1, datePickerOverlay], {
|
|
15986
|
+
moduleId: 'lumo-date-picker-overlay',
|
|
15987
|
+
});
|
|
15988
|
+
|
|
15989
|
+
const button$1 = i$b`
|
|
15997
15990
|
:host {
|
|
15998
15991
|
/* Sizing */
|
|
15999
15992
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -16244,7 +16237,33 @@ const button = i$1`
|
|
|
16244
16237
|
}
|
|
16245
16238
|
`;
|
|
16246
16239
|
|
|
16247
|
-
registerStyles('vaadin-button', button, { moduleId: 'lumo-button' });
|
|
16240
|
+
registerStyles('vaadin-button', button$1, { moduleId: 'lumo-button' });
|
|
16241
|
+
|
|
16242
|
+
/**
|
|
16243
|
+
* @license
|
|
16244
|
+
* Copyright 2019 Google LLC
|
|
16245
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16246
|
+
*/
|
|
16247
|
+
const t$7=window,e$b=t$7.ShadowRoot&&(void 0===t$7.ShadyCSS||t$7.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$d=Symbol(),n$e=new WeakMap;class o$e{constructor(t,e,n){if(this._$cssResult$=!0,n!==s$d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$b&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n$e.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n$e.set(s,t));}return t}toString(){return this.cssText}}const r$c=t=>new o$e("string"==typeof t?t:t+"",void 0,s$d),i$9=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[n+1]),t[0]);return new o$e(n,t,s$d)},S$7=(s,n)=>{e$b?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement("style"),o=t$7.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=e.cssText,s.appendChild(n);}));},c$8=e$b?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$c(e)})(t):t;
|
|
16248
|
+
|
|
16249
|
+
/**
|
|
16250
|
+
* @license
|
|
16251
|
+
* Copyright 2017 Google LLC
|
|
16252
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16253
|
+
*/var s$c;const e$a=window,r$b=e$a.trustedTypes,h$7=r$b?r$b.emptyScript:"",o$d=e$a.reactiveElementPolyfillSupport,n$d={toAttribute(t,i){switch(i){case Boolean:t=t?h$7:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t);}catch(t){s=null;}}return s}},a$7=(t,i)=>i!==t&&(i==i||t==t),l$a={attribute:!0,type:String,converter:n$d,reflect:!1,hasChanged:a$7},d$7="finalized";class u$7 extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu();}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t);}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e));})),t}static createProperty(t,i=l$a){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e);}}static getPropertyDescriptor(t,i,s){return {get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$a}static finalize(){if(this.hasOwnProperty(d$7))return !1;this[d$7]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(c$8(i));}else void 0!==i&&s.push(c$8(i));return s}static _$Ep(t,i){const s=i.attribute;return !1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)));}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t));}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i]);}));}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S$7(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}));}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}));}attributeChangedCallback(t,i,s){this._$AK(t,s);}_$EO(t,i,s=l$a){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n$d).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null;}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n$d;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null;}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a$7)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek();}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s);}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),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){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek();}updated(t){}firstUpdated(t){}}u$7[d$7]=!0,u$7.elementProperties=new Map,u$7.elementStyles=[],u$7.shadowRootOptions={mode:"open"},null==o$d||o$d({ReactiveElement:u$7}),(null!==(s$c=e$a.reactiveElementVersions)&&void 0!==s$c?s$c:e$a.reactiveElementVersions=[]).push("1.6.3");
|
|
16254
|
+
|
|
16255
|
+
/**
|
|
16256
|
+
* @license
|
|
16257
|
+
* Copyright 2017 Google LLC
|
|
16258
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16259
|
+
*/
|
|
16260
|
+
var t$6;const i$8=window,s$b=i$8.trustedTypes,e$9=s$b?s$b.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$c="$lit$",n$c=`lit$${(Math.random()+"").slice(9)}$`,l$9="?"+n$c,h$6=`<${l$9}>`,r$a=document,u$6=()=>r$a.createComment(""),d$6=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c$7=Array.isArray,v$3=t=>c$7(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a$6="[ \t\n\f\r]",f$4=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_$3=/-->/g,m$3=/>/g,p$4=RegExp(`>|${a$6}(?:([^\\s"'>=/]+)(${a$6}*=${a$6}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g$3=/'/g,$$3=/"/g,y$3=/^(?:script|style|textarea|title)$/i,T$3=Symbol.for("lit-noChange"),A$3=Symbol.for("lit-nothing"),E$3=new WeakMap,C$3=r$a.createTreeWalker(r$a,129,null,!1);function P$3(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e$9?e$9.createHTML(i):i}const V$3=(t,i)=>{const s=t.length-1,e=[];let l,r=2===i?"<svg>":"",u=f$4;for(let i=0;i<s;i++){const s=t[i];let d,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f$4?"!--"===c[1]?u=_$3:void 0!==c[1]?u=m$3:void 0!==c[2]?(y$3.test(c[2])&&(l=RegExp("</"+c[2],"g")),u=p$4):void 0!==c[3]&&(u=p$4):u===p$4?">"===c[0]?(u=null!=l?l:f$4,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,d=c[1],u=void 0===c[3]?p$4:'"'===c[3]?$$3:g$3):u===$$3||u===g$3?u=p$4:u===_$3||u===m$3?u=f$4:(u=p$4,l=void 0);const w=u===p$4&&t[i+1].startsWith("/>")?" ":"";r+=u===f$4?s+h$6:v>=0?(e.push(d),s.slice(0,v)+o$c+s.slice(v)+n$c+w):s+n$c+(-2===v?(e.push(void 0),i):w);}return [P$3(t,r+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class N$3{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,d=0;const c=t.length-1,v=this.parts,[a,f]=V$3(t,i);if(this.el=N$3.createElement(a,e),C$3.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes);}for(;null!==(h=C$3.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o$c)||i.startsWith(n$c)){const s=f[d++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o$c).split(n$c),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?H$3:"?"===i[1]?L$3:"@"===i[1]?z$3:k$3});}else v.push({type:6,index:r});}for(const i of t)h.removeAttribute(i);}if(y$3.test(h.tagName)){const t=h.textContent.split(n$c),i=t.length-1;if(i>0){h.textContent=s$b?s$b.emptyScript:"";for(let s=0;s<i;s++)h.append(t[s],u$6()),C$3.nextNode(),v.push({type:2,index:++r});h.append(t[i],u$6());}}}else if(8===h.nodeType)if(h.data===l$9)v.push({type:2,index:r});else {let t=-1;for(;-1!==(t=h.data.indexOf(n$c,t+1));)v.push({type:7,index:r}),t+=n$c.length-1;}r++;}}static createElement(t,i){const s=r$a.createElement("template");return s.innerHTML=t,s}}function S$6(t,i,s=t,e){var o,n,l,h;if(i===T$3)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const u=d$6(i)?void 0:i._$litDirective$;return (null==r?void 0:r.constructor)!==u&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===u?r=void 0:(r=new u(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=S$6(t,r._$AS(t,i.values),r,e)),i}class M$3{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r$a).importNode(s,!0);C$3.currentNode=o;let n=C$3.nextNode(),l=0,h=0,u=e[0];for(;void 0!==u;){if(l===u.index){let i;2===u.type?i=new R$3(n,n.nextSibling,this,t):1===u.type?i=new u.ctor(n,u.name,u.strings,this,t):6===u.type&&(i=new Z$2(n,this,t)),this._$AV.push(i),u=e[++h];}l!==(null==u?void 0:u.index)&&(n=C$3.nextNode(),l++);}return C$3.currentNode=r$a,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R$3{constructor(t,i,s,e){var o;this.type=2,this._$AH=A$3,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o;}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$6(this,t,i),d$6(t)?t===A$3||null==t||""===t?(this._$AH!==A$3&&this._$AR(),this._$AH=A$3):t!==this._$AH&&t!==T$3&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v$3(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!==A$3&&d$6(this._$AH)?this._$AA.nextSibling.data=t:this.$(r$a.createTextNode(t)),this._$AH=t;}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=N$3.createElement(P$3(e.h,e.h[0]),this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else {const t=new M$3(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t;}}_$AC(t){let i=E$3.get(t.strings);return void 0===i&&E$3.set(t.strings,i=new N$3(t)),i}T(t){c$7(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new R$3(this.k(u$6()),this.k(u$6()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t));}}class k$3{constructor(t,i,s,e,o){this.type=1,this._$AH=A$3,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A$3;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=S$6(this,t,i,0),n=!d$6(t)||t!==this._$AH&&t!==T$3,n&&(this._$AH=t);else {const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=S$6(this,e[s+l],i,l),h===T$3&&(h=this._$AH[l]),n||(n=!d$6(h)||h!==this._$AH[l]),h===A$3?t=A$3:t!==A$3&&(t+=(null!=h?h:"")+o[l+1]),this._$AH[l]=h;}n&&!e&&this.j(t);}j(t){t===A$3?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"");}}class H$3 extends k$3{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A$3?void 0:t;}}const I$3=s$b?s$b.emptyScript:"";class L$3 extends k$3{constructor(){super(...arguments),this.type=4;}j(t){t&&t!==A$3?this.element.setAttribute(this.name,I$3):this.element.removeAttribute(this.name);}}class z$3 extends k$3{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5;}_$AI(t,i=this){var s;if((t=null!==(s=S$6(this,t,i,0))&&void 0!==s?s:A$3)===T$3)return;const e=this._$AH,o=t===A$3&&e!==A$3||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==A$3&&(e===A$3||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t);}}class Z$2{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$6(this,t);}}const B$3=i$8.litHtmlPolyfillSupport;null==B$3||B$3(N$3,R$3),(null!==(t$6=i$8.litHtmlVersions)&&void 0!==t$6?t$6:i$8.litHtmlVersions=[]).push("2.8.0");const D$2=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new R$3(i.insertBefore(u$6(),t),t,void 0,null!=s?s:{});}return l._$AI(t),l};
|
|
16261
|
+
|
|
16262
|
+
/**
|
|
16263
|
+
* @license
|
|
16264
|
+
* Copyright 2017 Google LLC
|
|
16265
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16266
|
+
*/var l$8,o$b;class s$a extends u$7{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D$2(i,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1);}render(){return T$3}}s$a.finalized=!0,s$a._$litElement$=!0,null===(l$8=globalThis.litElementHydrateSupport)||void 0===l$8||l$8.call(globalThis,{LitElement:s$a});const n$b=globalThis.litElementPolyfillSupport;null==n$b||n$b({LitElement:s$a});(null!==(o$b=globalThis.litElementVersions)&&void 0!==o$b?o$b:globalThis.litElementVersions=[]).push("3.3.3");
|
|
16248
16267
|
|
|
16249
16268
|
/**
|
|
16250
16269
|
* @license
|
|
@@ -16252,7 +16271,7 @@ registerStyles('vaadin-button', button, { moduleId: 'lumo-button' });
|
|
|
16252
16271
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16253
16272
|
*/
|
|
16254
16273
|
|
|
16255
|
-
const buttonStyles = i$
|
|
16274
|
+
const buttonStyles$1 = i$9`
|
|
16256
16275
|
:host {
|
|
16257
16276
|
display: inline-block;
|
|
16258
16277
|
position: relative;
|
|
@@ -16314,7 +16333,7 @@ const buttonStyles = i$1`
|
|
|
16314
16333
|
}
|
|
16315
16334
|
`;
|
|
16316
16335
|
|
|
16317
|
-
const buttonTemplate = (html) => html`
|
|
16336
|
+
const buttonTemplate$1 = (html) => html`
|
|
16318
16337
|
<div class="vaadin-button-container">
|
|
16319
16338
|
<span part="prefix" aria-hidden="true">
|
|
16320
16339
|
<slot name="prefix"></slot>
|
|
@@ -16343,7 +16362,7 @@ const buttonTemplate = (html) => html`
|
|
|
16343
16362
|
* @mixes FocusMixin
|
|
16344
16363
|
* @mixes TabindexMixin
|
|
16345
16364
|
*/
|
|
16346
|
-
const ButtonMixin = (superClass) =>
|
|
16365
|
+
const ButtonMixin$1 = (superClass) =>
|
|
16347
16366
|
class ButtonMixinClass extends ActiveMixin(TabindexMixin(FocusMixin(superClass))) {
|
|
16348
16367
|
static get properties() {
|
|
16349
16368
|
return {
|
|
@@ -16422,7 +16441,7 @@ const ButtonMixin = (superClass) =>
|
|
|
16422
16441
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16423
16442
|
*/
|
|
16424
16443
|
|
|
16425
|
-
registerStyles('vaadin-button', buttonStyles, { moduleId: 'vaadin-button-styles' });
|
|
16444
|
+
registerStyles('vaadin-button', buttonStyles$1, { moduleId: 'vaadin-button-styles' });
|
|
16426
16445
|
|
|
16427
16446
|
/**
|
|
16428
16447
|
* `<vaadin-button>` is an accessible and customizable button that allows users to perform actions.
|
|
@@ -16459,13 +16478,13 @@ registerStyles('vaadin-button', buttonStyles, { moduleId: 'vaadin-button-styles'
|
|
|
16459
16478
|
* @mixes ElementMixin
|
|
16460
16479
|
* @mixes ThemableMixin
|
|
16461
16480
|
*/
|
|
16462
|
-
class Button extends ButtonMixin(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement)))) {
|
|
16481
|
+
class Button$1 extends ButtonMixin$1(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement)))) {
|
|
16463
16482
|
static get is() {
|
|
16464
16483
|
return 'vaadin-button';
|
|
16465
16484
|
}
|
|
16466
16485
|
|
|
16467
16486
|
static get template() {
|
|
16468
|
-
return buttonTemplate(html);
|
|
16487
|
+
return buttonTemplate$1(html);
|
|
16469
16488
|
}
|
|
16470
16489
|
|
|
16471
16490
|
/** @protected */
|
|
@@ -16477,11 +16496,11 @@ class Button extends ButtonMixin(ElementMixin(ThemableMixin(ControllerMixin(Poly
|
|
|
16477
16496
|
}
|
|
16478
16497
|
}
|
|
16479
16498
|
|
|
16480
|
-
defineCustomElement(Button);
|
|
16499
|
+
defineCustomElement(Button$1);
|
|
16481
16500
|
|
|
16482
16501
|
registerStyles(
|
|
16483
16502
|
'vaadin-date-picker-year',
|
|
16484
|
-
i$
|
|
16503
|
+
i$b`
|
|
16485
16504
|
:host([current]) [part='year-number'] {
|
|
16486
16505
|
color: var(--lumo-primary-text-color);
|
|
16487
16506
|
}
|
|
@@ -16511,7 +16530,7 @@ registerStyles(
|
|
|
16511
16530
|
|
|
16512
16531
|
registerStyles(
|
|
16513
16532
|
'vaadin-date-picker-overlay-content',
|
|
16514
|
-
i$
|
|
16533
|
+
i$b`
|
|
16515
16534
|
:host {
|
|
16516
16535
|
position: relative;
|
|
16517
16536
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -16667,7 +16686,7 @@ registerStyles(
|
|
|
16667
16686
|
|
|
16668
16687
|
registerStyles(
|
|
16669
16688
|
'vaadin-month-calendar',
|
|
16670
|
-
i$
|
|
16689
|
+
i$b`
|
|
16671
16690
|
:host {
|
|
16672
16691
|
-moz-user-select: none;
|
|
16673
16692
|
-webkit-user-select: none;
|
|
@@ -16831,7 +16850,70 @@ document.head.appendChild(template$1.content);
|
|
|
16831
16850
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16832
16851
|
*/
|
|
16833
16852
|
|
|
16834
|
-
const
|
|
16853
|
+
const fontIcons$2 = i$b`
|
|
16854
|
+
@font-face {
|
|
16855
|
+
font-family: 'lumo-icons';
|
|
16856
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3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P0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
16857
|
+
format('woff');
|
|
16858
|
+
font-weight: normal;
|
|
16859
|
+
font-style: normal;
|
|
16860
|
+
}
|
|
16861
|
+
|
|
16862
|
+
html {
|
|
16863
|
+
--lumo-icons-align-center: '\\ea01';
|
|
16864
|
+
--lumo-icons-align-left: '\\ea02';
|
|
16865
|
+
--lumo-icons-align-right: '\\ea03';
|
|
16866
|
+
--lumo-icons-angle-down: '\\ea04';
|
|
16867
|
+
--lumo-icons-angle-left: '\\ea05';
|
|
16868
|
+
--lumo-icons-angle-right: '\\ea06';
|
|
16869
|
+
--lumo-icons-angle-up: '\\ea07';
|
|
16870
|
+
--lumo-icons-arrow-down: '\\ea08';
|
|
16871
|
+
--lumo-icons-arrow-left: '\\ea09';
|
|
16872
|
+
--lumo-icons-arrow-right: '\\ea0a';
|
|
16873
|
+
--lumo-icons-arrow-up: '\\ea0b';
|
|
16874
|
+
--lumo-icons-bar-chart: '\\ea0c';
|
|
16875
|
+
--lumo-icons-bell: '\\ea0d';
|
|
16876
|
+
--lumo-icons-calendar: '\\ea0e';
|
|
16877
|
+
--lumo-icons-checkmark: '\\ea0f';
|
|
16878
|
+
--lumo-icons-chevron-down: '\\ea10';
|
|
16879
|
+
--lumo-icons-chevron-left: '\\ea11';
|
|
16880
|
+
--lumo-icons-chevron-right: '\\ea12';
|
|
16881
|
+
--lumo-icons-chevron-up: '\\ea13';
|
|
16882
|
+
--lumo-icons-clock: '\\ea14';
|
|
16883
|
+
--lumo-icons-cog: '\\ea15';
|
|
16884
|
+
--lumo-icons-cross: '\\ea16';
|
|
16885
|
+
--lumo-icons-download: '\\ea17';
|
|
16886
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
16887
|
+
--lumo-icons-edit: '\\ea19';
|
|
16888
|
+
--lumo-icons-error: '\\ea1a';
|
|
16889
|
+
--lumo-icons-eye: '\\ea1b';
|
|
16890
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
16891
|
+
--lumo-icons-menu: '\\ea1d';
|
|
16892
|
+
--lumo-icons-minus: '\\ea1e';
|
|
16893
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
16894
|
+
--lumo-icons-phone: '\\ea20';
|
|
16895
|
+
--lumo-icons-photo: '\\ea21';
|
|
16896
|
+
--lumo-icons-play: '\\ea22';
|
|
16897
|
+
--lumo-icons-plus: '\\ea23';
|
|
16898
|
+
--lumo-icons-redo: '\\ea24';
|
|
16899
|
+
--lumo-icons-reload: '\\ea25';
|
|
16900
|
+
--lumo-icons-search: '\\ea26';
|
|
16901
|
+
--lumo-icons-undo: '\\ea27';
|
|
16902
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
16903
|
+
--lumo-icons-upload: '\\ea29';
|
|
16904
|
+
--lumo-icons-user: '\\ea2a';
|
|
16905
|
+
}
|
|
16906
|
+
`;
|
|
16907
|
+
|
|
16908
|
+
addLumoGlobalStyles$2('font-icons', fontIcons$2);
|
|
16909
|
+
|
|
16910
|
+
/**
|
|
16911
|
+
* @license
|
|
16912
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
16913
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16914
|
+
*/
|
|
16915
|
+
|
|
16916
|
+
const fieldButton$2 = i$b`
|
|
16835
16917
|
[part$='button'] {
|
|
16836
16918
|
flex: none;
|
|
16837
16919
|
width: 1em;
|
|
@@ -16859,7 +16941,172 @@ const fieldButton$1 = i$1`
|
|
|
16859
16941
|
display: block;
|
|
16860
16942
|
}
|
|
16861
16943
|
`;
|
|
16862
|
-
registerStyles('', fieldButton$
|
|
16944
|
+
registerStyles('', fieldButton$2, { moduleId: 'lumo-field-button' });
|
|
16945
|
+
|
|
16946
|
+
/**
|
|
16947
|
+
* @license
|
|
16948
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
16949
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16950
|
+
*/
|
|
16951
|
+
|
|
16952
|
+
const helper$1 = i$b`
|
|
16953
|
+
:host([has-helper]) [part='helper-text']::before {
|
|
16954
|
+
content: '';
|
|
16955
|
+
display: block;
|
|
16956
|
+
height: 0.4em;
|
|
16957
|
+
}
|
|
16958
|
+
|
|
16959
|
+
[part='helper-text'] {
|
|
16960
|
+
display: block;
|
|
16961
|
+
color: var(--lumo-secondary-text-color);
|
|
16962
|
+
font-size: var(--lumo-font-size-xs);
|
|
16963
|
+
line-height: var(--lumo-line-height-xs);
|
|
16964
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
16965
|
+
transition: color 0.2s;
|
|
16966
|
+
}
|
|
16967
|
+
|
|
16968
|
+
:host(:hover:not([readonly])) [part='helper-text'] {
|
|
16969
|
+
color: var(--lumo-body-text-color);
|
|
16970
|
+
}
|
|
16971
|
+
|
|
16972
|
+
:host([disabled]) [part='helper-text'] {
|
|
16973
|
+
color: var(--lumo-disabled-text-color);
|
|
16974
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
16975
|
+
}
|
|
16976
|
+
|
|
16977
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
|
|
16978
|
+
display: none;
|
|
16979
|
+
}
|
|
16980
|
+
|
|
16981
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
16982
|
+
content: '';
|
|
16983
|
+
display: block;
|
|
16984
|
+
height: 0.4em;
|
|
16985
|
+
}
|
|
16986
|
+
|
|
16987
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
16988
|
+
order: 0;
|
|
16989
|
+
padding-bottom: 0.4em;
|
|
16990
|
+
}
|
|
16991
|
+
|
|
16992
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
16993
|
+
order: 1;
|
|
16994
|
+
}
|
|
16995
|
+
|
|
16996
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] + * {
|
|
16997
|
+
order: 2;
|
|
16998
|
+
}
|
|
16999
|
+
|
|
17000
|
+
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
|
|
17001
|
+
order: 3;
|
|
17002
|
+
}
|
|
17003
|
+
`;
|
|
17004
|
+
|
|
17005
|
+
/**
|
|
17006
|
+
* @license
|
|
17007
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
17008
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
17009
|
+
*/
|
|
17010
|
+
|
|
17011
|
+
const requiredField$1 = i$b`
|
|
17012
|
+
[part='label'] {
|
|
17013
|
+
align-self: flex-start;
|
|
17014
|
+
color: var(--lumo-secondary-text-color);
|
|
17015
|
+
font-weight: 500;
|
|
17016
|
+
font-size: var(--lumo-font-size-s);
|
|
17017
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
17018
|
+
transition: color 0.2s;
|
|
17019
|
+
line-height: 1;
|
|
17020
|
+
padding-right: 1em;
|
|
17021
|
+
padding-bottom: 0.5em;
|
|
17022
|
+
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
17023
|
+
negative margin to compensate */
|
|
17024
|
+
padding-top: 0.25em;
|
|
17025
|
+
margin-top: -0.25em;
|
|
17026
|
+
overflow: hidden;
|
|
17027
|
+
white-space: nowrap;
|
|
17028
|
+
text-overflow: ellipsis;
|
|
17029
|
+
position: relative;
|
|
17030
|
+
max-width: 100%;
|
|
17031
|
+
box-sizing: border-box;
|
|
17032
|
+
}
|
|
17033
|
+
|
|
17034
|
+
:host([has-label])::before {
|
|
17035
|
+
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
17036
|
+
}
|
|
17037
|
+
|
|
17038
|
+
:host([has-label][theme~='small'])::before {
|
|
17039
|
+
margin-top: calc(var(--lumo-font-size-xs) * 1.5);
|
|
17040
|
+
}
|
|
17041
|
+
|
|
17042
|
+
:host([has-label]) {
|
|
17043
|
+
padding-top: var(--lumo-space-m);
|
|
17044
|
+
}
|
|
17045
|
+
|
|
17046
|
+
:host([has-label]) ::slotted([slot='tooltip']) {
|
|
17047
|
+
--vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
|
|
17048
|
+
}
|
|
17049
|
+
|
|
17050
|
+
:host([required]) [part='required-indicator']::after {
|
|
17051
|
+
content: var(--lumo-required-field-indicator, '\\2022');
|
|
17052
|
+
transition: opacity 0.2s;
|
|
17053
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
17054
|
+
position: absolute;
|
|
17055
|
+
right: 0;
|
|
17056
|
+
width: 1em;
|
|
17057
|
+
text-align: center;
|
|
17058
|
+
}
|
|
17059
|
+
|
|
17060
|
+
:host([invalid]) [part='required-indicator']::after {
|
|
17061
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
17062
|
+
}
|
|
17063
|
+
|
|
17064
|
+
[part='error-message'] {
|
|
17065
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
17066
|
+
font-size: var(--lumo-font-size-xs);
|
|
17067
|
+
line-height: var(--lumo-line-height-xs);
|
|
17068
|
+
color: var(--lumo-error-text-color);
|
|
17069
|
+
will-change: max-height;
|
|
17070
|
+
transition: 0.4s max-height;
|
|
17071
|
+
max-height: 5em;
|
|
17072
|
+
}
|
|
17073
|
+
|
|
17074
|
+
:host([has-error-message]) [part='error-message']::before,
|
|
17075
|
+
:host([has-error-message]) [part='error-message']::after {
|
|
17076
|
+
content: '';
|
|
17077
|
+
display: block;
|
|
17078
|
+
height: 0.4em;
|
|
17079
|
+
}
|
|
17080
|
+
|
|
17081
|
+
:host(:not([invalid])) [part='error-message'] {
|
|
17082
|
+
max-height: 0;
|
|
17083
|
+
overflow: hidden;
|
|
17084
|
+
}
|
|
17085
|
+
|
|
17086
|
+
/* RTL specific styles */
|
|
17087
|
+
|
|
17088
|
+
:host([dir='rtl']) [part='label'] {
|
|
17089
|
+
margin-left: 0;
|
|
17090
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
17091
|
+
}
|
|
17092
|
+
|
|
17093
|
+
:host([dir='rtl']) [part='label'] {
|
|
17094
|
+
padding-left: 1em;
|
|
17095
|
+
padding-right: 0;
|
|
17096
|
+
}
|
|
17097
|
+
|
|
17098
|
+
:host([dir='rtl']) [part='required-indicator']::after {
|
|
17099
|
+
right: auto;
|
|
17100
|
+
left: 0;
|
|
17101
|
+
}
|
|
17102
|
+
|
|
17103
|
+
:host([dir='rtl']) [part='error-message'] {
|
|
17104
|
+
margin-left: 0;
|
|
17105
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
17106
|
+
}
|
|
17107
|
+
`;
|
|
17108
|
+
|
|
17109
|
+
registerStyles('', requiredField$1, { moduleId: 'lumo-required-field' });
|
|
16863
17110
|
|
|
16864
17111
|
/**
|
|
16865
17112
|
* @license
|
|
@@ -16867,7 +17114,7 @@ registerStyles('', fieldButton$1, { moduleId: 'lumo-field-button' });
|
|
|
16867
17114
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16868
17115
|
*/
|
|
16869
17116
|
|
|
16870
|
-
const inputField$
|
|
17117
|
+
const inputField$2 = i$b`
|
|
16871
17118
|
:host {
|
|
16872
17119
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
16873
17120
|
color: var(--lumo-body-text-color);
|
|
@@ -17003,13 +17250,13 @@ const inputField$1 = i$1`
|
|
|
17003
17250
|
}
|
|
17004
17251
|
`;
|
|
17005
17252
|
|
|
17006
|
-
const inputFieldShared$
|
|
17253
|
+
const inputFieldShared$3 = [requiredField$1, fieldButton$2, helper$1, inputField$2];
|
|
17007
17254
|
|
|
17008
|
-
registerStyles('', inputFieldShared$
|
|
17255
|
+
registerStyles('', inputFieldShared$3, {
|
|
17009
17256
|
moduleId: 'lumo-input-field-shared-styles',
|
|
17010
17257
|
});
|
|
17011
17258
|
|
|
17012
|
-
const datePicker = i$
|
|
17259
|
+
const datePicker = i$b`
|
|
17013
17260
|
:host {
|
|
17014
17261
|
outline: none;
|
|
17015
17262
|
}
|
|
@@ -17037,7 +17284,7 @@ const datePicker = i$1`
|
|
|
17037
17284
|
}
|
|
17038
17285
|
`;
|
|
17039
17286
|
|
|
17040
|
-
registerStyles('vaadin-date-picker', [inputFieldShared$
|
|
17287
|
+
registerStyles('vaadin-date-picker', [inputFieldShared$3, datePicker], { moduleId: 'lumo-date-picker' });
|
|
17041
17288
|
|
|
17042
17289
|
/**
|
|
17043
17290
|
@license
|
|
@@ -18714,13 +18961,39 @@ const PositionMixin = (superClass) =>
|
|
|
18714
18961
|
}
|
|
18715
18962
|
};
|
|
18716
18963
|
|
|
18964
|
+
/**
|
|
18965
|
+
* @license
|
|
18966
|
+
* Copyright 2019 Google LLC
|
|
18967
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
18968
|
+
*/
|
|
18969
|
+
const t$5=globalThis,e$8=t$5.ShadowRoot&&(void 0===t$5.ShadyCSS||t$5.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$9=Symbol(),o$a=new WeakMap;class n$a{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$9)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$8&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$a.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$a.set(s,t));}return t}toString(){return this.cssText}}const r$9=t=>new n$a("string"==typeof t?t:t+"",void 0,s$9),i$7=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$a(o,t,s$9)},S$5=(s,o)=>{if(e$8)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$5.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$6=e$8?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$9(e)})(t):t;
|
|
18970
|
+
|
|
18971
|
+
/**
|
|
18972
|
+
* @license
|
|
18973
|
+
* Copyright 2017 Google LLC
|
|
18974
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
18975
|
+
*/const{is:i$6,defineProperty:e$7,getOwnPropertyDescriptor:r$8,getOwnPropertyNames:h$5,getOwnPropertySymbols:o$9,getPrototypeOf:n$9}=Object,a$5=globalThis,c$5=a$5.trustedTypes,l$7=c$5?c$5.emptyScript:"",p$3=a$5.reactiveElementPolyfillSupport,d$5=(t,s)=>t,u$5={toAttribute(t,s){switch(s){case Boolean:t=t?l$7:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$3=(t,s)=>!i$6(t,s),y$2={attribute:!0,type:String,converter:u$5,reflect:!1,hasChanged:f$3};Symbol.metadata??=Symbol("metadata"),a$5.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$2){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$7(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$8(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2}static _$Ei(){if(this.hasOwnProperty(d$5("elementProperties")))return;const t=n$9(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$5("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$5("properties"))){const t=this.properties,s=[...h$5(t),...o$9(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$6(s));}else void 0!==s&&i.push(c$6(s));return i}static _$Eu(t,s){const i=s.attribute;return !1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$5(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$5).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$5;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$3)(this[t],s))return;this.P(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$5("elementProperties")]=new Map,b[d$5("finalized")]=new Map,p$3?.({ReactiveElement:b}),(a$5.reactiveElementVersions??=[]).push("2.0.4");
|
|
18976
|
+
|
|
18977
|
+
/**
|
|
18978
|
+
* @license
|
|
18979
|
+
* Copyright 2017 Google LLC
|
|
18980
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
18981
|
+
*/
|
|
18982
|
+
const t$4=globalThis,i$5=t$4.trustedTypes,s$8=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$6="$lit$",h$4=`lit$${Math.random().toFixed(9).slice(2)}$`,o$8="?"+h$4,n$8=`<${o$8}>`,r$7=document,l$6=()=>r$7.createComment(""),c$4=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$4=t=>a$4(t)||"function"==typeof t?.[Symbol.iterator],d$4="[ \t\n\f\r]",f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$2=/>/g,m$2=RegExp(`>|${d$4}(?:([^\\s"'>=/]+)(${d$4}*=${d$4}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g$2=/"/g,$$2=/^(?:script|style|textarea|title)$/i,T$2=Symbol.for("lit-noChange"),E$2=Symbol.for("lit-nothing"),A$2=new WeakMap,C$2=r$7.createTreeWalker(r$7,129);function P$2(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$8?s$8.createHTML(i):i}const V$2=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$2;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$2?"!--"===u[1]?c=v$2:void 0!==u[1]?c=_$2:void 0!==u[2]?($$2.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):void 0!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$2,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$2:'"'===u[3]?g$2:p$2):c===g$2||c===p$2?c=m$2:c===v$2||c===_$2?c=f$2:(c=m$2,r=void 0);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$2?s+n$8:d>=0?(o.push(a),s.slice(0,d)+e$6+s.slice(d)+h$4+x):s+h$4+(-2===d?i:x);}return [P$2(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N$2{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$2(t,s);if(this.el=N$2.createElement(f,n),C$2.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$2.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$6)){const i=v[a++],s=r.getAttribute(t).split(h$4),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$2:"@"===e[1]?L$2:k$2}),r.removeAttribute(t);}else t.startsWith(h$4)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$2.test(r.tagName)){const t=r.textContent.split(h$4),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$6()),C$2.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$6());}}}else if(8===r.nodeType)if(r.data===o$8)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$4,t+1));)d.push({type:7,index:c}),t+=h$4.length-1;}c++;}}static createElement(t,i){const s=r$7.createElement("template");return s.innerHTML=t,s}}function S$4(t,i,s=t,e){if(i===T$2)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$4(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$4(t,h._$AS(t,i.values),h,e)),i}class M$2{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$7).importNode(i,!0);C$2.currentNode=e;let h=C$2.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$2(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$2.nextNode(),o++);}return C$2.currentNode=r$7,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R$2{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$2,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$4(this,t,i),c$4(t)?t===E$2||null==t||""===t?(this._$AH!==E$2&&this._$AR(),this._$AH=E$2):t!==this._$AH&&t!==T$2&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$2&&c$4(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$7.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$2.createElement(P$2(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$2(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$2.get(t.strings);return void 0===i&&A$2.set(t.strings,i=new N$2(t)),i}k(t){a$4(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R$2(this.O(l$6()),this.O(l$6()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k$2{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$2,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$2;}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=S$4(this,t,i,0),o=!c$4(t)||t!==this._$AH&&t!==T$2,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$4(this,e[s+n],i,n),r===T$2&&(r=this._$AH[n]),o||=!c$4(r)||r!==this._$AH[n],r===E$2?t=E$2:t!==E$2&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H$2 extends k$2{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$2?void 0:t;}}class I$2 extends k$2{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$2);}}class L$2 extends k$2{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$4(this,t,i,0)??E$2)===T$2)return;const s=this._$AH,e=t===E$2&&s!==E$2||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$2&&(s===E$2||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z$2{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$4(this,t);}}const j=t$4.litHtmlPolyfillSupport;j?.(N$2,R$2),(t$4.litHtmlVersions??=[]).push("3.2.1");const B$2=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$2(i.insertBefore(l$6(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
18983
|
+
|
|
18984
|
+
/**
|
|
18985
|
+
* @license
|
|
18986
|
+
* Copyright 2017 Google LLC
|
|
18987
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
18988
|
+
*/class r$6 extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$2(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return T$2}}r$6._$litElement$=!0,r$6["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:r$6});const i$4=globalThis.litElementPolyfillSupport;i$4?.({LitElement:r$6});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
18989
|
+
|
|
18717
18990
|
/**
|
|
18718
18991
|
* @license
|
|
18719
18992
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
18720
18993
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
18721
18994
|
*/
|
|
18722
18995
|
|
|
18723
|
-
const overlayStyles = i$
|
|
18996
|
+
const overlayStyles = i$7`
|
|
18724
18997
|
:host {
|
|
18725
18998
|
z-index: 200;
|
|
18726
18999
|
position: fixed;
|
|
@@ -18786,7 +19059,7 @@ const overlayStyles = i$1`
|
|
|
18786
19059
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
18787
19060
|
*/
|
|
18788
19061
|
|
|
18789
|
-
const datePickerOverlayStyles = i$
|
|
19062
|
+
const datePickerOverlayStyles = i$9`
|
|
18790
19063
|
[part='overlay'] {
|
|
18791
19064
|
display: flex;
|
|
18792
19065
|
flex: auto;
|
|
@@ -21780,7 +22053,7 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
21780
22053
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
21781
22054
|
*/
|
|
21782
22055
|
|
|
21783
|
-
const monthCalendarStyles = i$
|
|
22056
|
+
const monthCalendarStyles = i$9`
|
|
21784
22057
|
:host {
|
|
21785
22058
|
display: block;
|
|
21786
22059
|
}
|
|
@@ -23100,7 +23373,7 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
23100
23373
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
23101
23374
|
*/
|
|
23102
23375
|
|
|
23103
|
-
const overlayContentStyles = i$
|
|
23376
|
+
const overlayContentStyles = i$9`
|
|
23104
23377
|
:host {
|
|
23105
23378
|
display: flex;
|
|
23106
23379
|
flex-direction: column;
|
|
@@ -23804,13 +24077,39 @@ const InputControlMixin = (superclass) =>
|
|
|
23804
24077
|
*/
|
|
23805
24078
|
};
|
|
23806
24079
|
|
|
24080
|
+
/**
|
|
24081
|
+
* @license
|
|
24082
|
+
* Copyright 2019 Google LLC
|
|
24083
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24084
|
+
*/
|
|
24085
|
+
const t$3=window,e$5=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$7=Symbol(),n$7=new WeakMap;class o$7{constructor(t,e,n){if(this._$cssResult$=!0,n!==s$7)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$5&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n$7.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n$7.set(s,t));}return t}toString(){return this.cssText}}const r$5=t=>new o$7("string"==typeof t?t:t+"",void 0,s$7),i$3=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[n+1]),t[0]);return new o$7(n,t,s$7)},S$3=(s,n)=>{e$5?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement("style"),o=t$3.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=e.cssText,s.appendChild(n);}));},c$3=e$5?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$5(e)})(t):t;
|
|
24086
|
+
|
|
24087
|
+
/**
|
|
24088
|
+
* @license
|
|
24089
|
+
* Copyright 2017 Google LLC
|
|
24090
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24091
|
+
*/var s$6;const e$4=window,r$4=e$4.trustedTypes,h$3=r$4?r$4.emptyScript:"",o$6=e$4.reactiveElementPolyfillSupport,n$6={toAttribute(t,i){switch(i){case Boolean:t=t?h$3:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t);}catch(t){s=null;}}return s}},a$3=(t,i)=>i!==t&&(i==i||t==t),l$5={attribute:!0,type:String,converter:n$6,reflect:!1,hasChanged:a$3},d$3="finalized";class u$3 extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu();}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t);}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e));})),t}static createProperty(t,i=l$5){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e);}}static getPropertyDescriptor(t,i,s){return {get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$5}static finalize(){if(this.hasOwnProperty(d$3))return !1;this[d$3]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(c$3(i));}else void 0!==i&&s.push(c$3(i));return s}static _$Ep(t,i){const s=i.attribute;return !1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)));}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t));}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i]);}));}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S$3(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}));}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}));}attributeChangedCallback(t,i,s){this._$AK(t,s);}_$EO(t,i,s=l$5){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n$6).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null;}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n$6;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null;}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a$3)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek();}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s);}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),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){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek();}updated(t){}firstUpdated(t){}}u$3[d$3]=!0,u$3.elementProperties=new Map,u$3.elementStyles=[],u$3.shadowRootOptions={mode:"open"},null==o$6||o$6({ReactiveElement:u$3}),(null!==(s$6=e$4.reactiveElementVersions)&&void 0!==s$6?s$6:e$4.reactiveElementVersions=[]).push("1.6.3");
|
|
24092
|
+
|
|
24093
|
+
/**
|
|
24094
|
+
* @license
|
|
24095
|
+
* Copyright 2017 Google LLC
|
|
24096
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24097
|
+
*/
|
|
24098
|
+
var t$2;const i$2=window,s$5=i$2.trustedTypes,e$3=s$5?s$5.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$5="$lit$",n$5=`lit$${(Math.random()+"").slice(9)}$`,l$4="?"+n$5,h$2=`<${l$4}>`,r$3=document,u$2=()=>r$3.createComment(""),d$2=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c$2=Array.isArray,v$1=t=>c$2(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a$2="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_$1=/-->/g,m$1=/>/g,p$1=RegExp(`>|${a$2}(?:([^\\s"'>=/]+)(${a$2}*=${a$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g$1=/'/g,$$1=/"/g,y$1=/^(?:script|style|textarea|title)$/i,T$1=Symbol.for("lit-noChange"),A$1=Symbol.for("lit-nothing"),E$1=new WeakMap,C$1=r$3.createTreeWalker(r$3,129,null,!1);function P$1(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e$3?e$3.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,e=[];let l,r=2===i?"<svg>":"",u=f$1;for(let i=0;i<s;i++){const s=t[i];let d,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f$1?"!--"===c[1]?u=_$1:void 0!==c[1]?u=m$1:void 0!==c[2]?(y$1.test(c[2])&&(l=RegExp("</"+c[2],"g")),u=p$1):void 0!==c[3]&&(u=p$1):u===p$1?">"===c[0]?(u=null!=l?l:f$1,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,d=c[1],u=void 0===c[3]?p$1:'"'===c[3]?$$1:g$1):u===$$1||u===g$1?u=p$1:u===_$1||u===m$1?u=f$1:(u=p$1,l=void 0);const w=u===p$1&&t[i+1].startsWith("/>")?" ":"";r+=u===f$1?s+h$2:v>=0?(e.push(d),s.slice(0,v)+o$5+s.slice(v)+n$5+w):s+n$5+(-2===v?(e.push(void 0),i):w);}return [P$1(t,r+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class N$1{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,d=0;const c=t.length-1,v=this.parts,[a,f]=V$1(t,i);if(this.el=N$1.createElement(a,e),C$1.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes);}for(;null!==(h=C$1.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o$5)||i.startsWith(n$5)){const s=f[d++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o$5).split(n$5),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?H$1:"?"===i[1]?L$1:"@"===i[1]?z$1:k$1});}else v.push({type:6,index:r});}for(const i of t)h.removeAttribute(i);}if(y$1.test(h.tagName)){const t=h.textContent.split(n$5),i=t.length-1;if(i>0){h.textContent=s$5?s$5.emptyScript:"";for(let s=0;s<i;s++)h.append(t[s],u$2()),C$1.nextNode(),v.push({type:2,index:++r});h.append(t[i],u$2());}}}else if(8===h.nodeType)if(h.data===l$4)v.push({type:2,index:r});else {let t=-1;for(;-1!==(t=h.data.indexOf(n$5,t+1));)v.push({type:7,index:r}),t+=n$5.length-1;}r++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}}function S$2(t,i,s=t,e){var o,n,l,h;if(i===T$1)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const u=d$2(i)?void 0:i._$litDirective$;return (null==r?void 0:r.constructor)!==u&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===u?r=void 0:(r=new u(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=S$2(t,r._$AS(t,i.values),r,e)),i}class M$1{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r$3).importNode(s,!0);C$1.currentNode=o;let n=C$1.nextNode(),l=0,h=0,u=e[0];for(;void 0!==u;){if(l===u.index){let i;2===u.type?i=new R$1(n,n.nextSibling,this,t):1===u.type?i=new u.ctor(n,u.name,u.strings,this,t):6===u.type&&(i=new Z$1(n,this,t)),this._$AV.push(i),u=e[++h];}l!==(null==u?void 0:u.index)&&(n=C$1.nextNode(),l++);}return C$1.currentNode=r$3,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R$1{constructor(t,i,s,e){var o;this.type=2,this._$AH=A$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o;}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$2(this,t,i),d$2(t)?t===A$1||null==t||""===t?(this._$AH!==A$1&&this._$AR(),this._$AH=A$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v$1(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!==A$1&&d$2(this._$AH)?this._$AA.nextSibling.data=t:this.$(r$3.createTextNode(t)),this._$AH=t;}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=N$1.createElement(P$1(e.h,e.h[0]),this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else {const t=new M$1(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t;}}_$AC(t){let i=E$1.get(t.strings);return void 0===i&&E$1.set(t.strings,i=new N$1(t)),i}T(t){c$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new R$1(this.k(u$2()),this.k(u$2()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t));}}class k$1{constructor(t,i,s,e,o){this.type=1,this._$AH=A$1,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A$1;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=S$2(this,t,i,0),n=!d$2(t)||t!==this._$AH&&t!==T$1,n&&(this._$AH=t);else {const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=S$2(this,e[s+l],i,l),h===T$1&&(h=this._$AH[l]),n||(n=!d$2(h)||h!==this._$AH[l]),h===A$1?t=A$1:t!==A$1&&(t+=(null!=h?h:"")+o[l+1]),this._$AH[l]=h;}n&&!e&&this.j(t);}j(t){t===A$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"");}}class H$1 extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A$1?void 0:t;}}const I$1=s$5?s$5.emptyScript:"";class L$1 extends k$1{constructor(){super(...arguments),this.type=4;}j(t){t&&t!==A$1?this.element.setAttribute(this.name,I$1):this.element.removeAttribute(this.name);}}class z$1 extends k$1{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5;}_$AI(t,i=this){var s;if((t=null!==(s=S$2(this,t,i,0))&&void 0!==s?s:A$1)===T$1)return;const e=this._$AH,o=t===A$1&&e!==A$1||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==A$1&&(e===A$1||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t);}}class Z$1{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$2(this,t);}}const B$1=i$2.litHtmlPolyfillSupport;null==B$1||B$1(N$1,R$1),(null!==(t$2=i$2.litHtmlVersions)&&void 0!==t$2?t$2:i$2.litHtmlVersions=[]).push("2.8.0");const D$1=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new R$1(i.insertBefore(u$2(),t),t,void 0,null!=s?s:{});}return l._$AI(t),l};
|
|
24099
|
+
|
|
24100
|
+
/**
|
|
24101
|
+
* @license
|
|
24102
|
+
* Copyright 2017 Google LLC
|
|
24103
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24104
|
+
*/var l$3,o$4;class s$4 extends u$3{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D$1(i,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1);}render(){return T$1}}s$4.finalized=!0,s$4._$litElement$=!0,null===(l$3=globalThis.litElementHydrateSupport)||void 0===l$3||l$3.call(globalThis,{LitElement:s$4});const n$4=globalThis.litElementPolyfillSupport;null==n$4||n$4({LitElement:s$4});(null!==(o$4=globalThis.litElementVersions)&&void 0!==o$4?o$4:globalThis.litElementVersions=[]).push("3.3.3");
|
|
24105
|
+
|
|
23807
24106
|
/**
|
|
23808
24107
|
* @license
|
|
23809
24108
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
23810
24109
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
23811
24110
|
*/
|
|
23812
24111
|
|
|
23813
|
-
const clearButton = i$
|
|
24112
|
+
const clearButton = i$3`
|
|
23814
24113
|
[part='clear-button'] {
|
|
23815
24114
|
display: none;
|
|
23816
24115
|
cursor: default;
|
|
@@ -23831,7 +24130,7 @@ const clearButton = i$1`
|
|
|
23831
24130
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
23832
24131
|
*/
|
|
23833
24132
|
|
|
23834
|
-
const fieldShared = i$
|
|
24133
|
+
const fieldShared = i$3`
|
|
23835
24134
|
:host {
|
|
23836
24135
|
display: inline-flex;
|
|
23837
24136
|
outline: none;
|
|
@@ -23873,7 +24172,7 @@ const fieldShared = i$1`
|
|
|
23873
24172
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
23874
24173
|
*/
|
|
23875
24174
|
|
|
23876
|
-
const inputFieldContainer = i$
|
|
24175
|
+
const inputFieldContainer = i$3`
|
|
23877
24176
|
[class$='container'] {
|
|
23878
24177
|
display: flex;
|
|
23879
24178
|
flex-direction: column;
|
|
@@ -23889,7 +24188,7 @@ const inputFieldContainer = i$1`
|
|
|
23889
24188
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
23890
24189
|
*/
|
|
23891
24190
|
|
|
23892
|
-
const inputFieldShared$
|
|
24191
|
+
const inputFieldShared$2 = [fieldShared, inputFieldContainer, clearButton];
|
|
23893
24192
|
|
|
23894
24193
|
/**
|
|
23895
24194
|
* @license
|
|
@@ -25181,7 +25480,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
25181
25480
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
25182
25481
|
*/
|
|
25183
25482
|
|
|
25184
|
-
const datePickerStyles = i$
|
|
25483
|
+
const datePickerStyles = i$9`
|
|
25185
25484
|
:host([opened]) {
|
|
25186
25485
|
pointer-events: auto;
|
|
25187
25486
|
}
|
|
@@ -25202,7 +25501,7 @@ const datePickerStyles = i$1`
|
|
|
25202
25501
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
25203
25502
|
*/
|
|
25204
25503
|
|
|
25205
|
-
registerStyles('vaadin-date-picker', [inputFieldShared$
|
|
25504
|
+
registerStyles('vaadin-date-picker', [inputFieldShared$2, datePickerStyles], { moduleId: 'vaadin-date-picker-styles' });
|
|
25206
25505
|
|
|
25207
25506
|
/**
|
|
25208
25507
|
* `<vaadin-date-picker>` is an input field that allows to enter a date by typing or by selecting from a calendar overlay.
|
|
@@ -30507,6 +30806,16 @@ const DateInput = class {
|
|
|
30507
30806
|
registerInstance(this, hostRef);
|
|
30508
30807
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
30509
30808
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
30809
|
+
/**
|
|
30810
|
+
* Client custom styling via inline style
|
|
30811
|
+
*/
|
|
30812
|
+
this.clientStyling = '';
|
|
30813
|
+
/**
|
|
30814
|
+
* Emit event on click
|
|
30815
|
+
*/
|
|
30816
|
+
this.emitOnClick = false;
|
|
30817
|
+
this.limitStylingAppends = false;
|
|
30818
|
+
this.showTooltip = false;
|
|
30510
30819
|
this.touched = false;
|
|
30511
30820
|
this.formatDate = (dateParts) => {
|
|
30512
30821
|
const { year, month, day } = dateParts;
|
|
@@ -30527,22 +30836,6 @@ const DateInput = class {
|
|
|
30527
30836
|
sheet.innerHTML = this.clientStyling;
|
|
30528
30837
|
this.stylingContainer.prepend(sheet);
|
|
30529
30838
|
};
|
|
30530
|
-
this.name = undefined;
|
|
30531
|
-
this.displayName = undefined;
|
|
30532
|
-
this.placeholder = undefined;
|
|
30533
|
-
this.validation = undefined;
|
|
30534
|
-
this.defaultValue = undefined;
|
|
30535
|
-
this.autofilled = undefined;
|
|
30536
|
-
this.tooltip = undefined;
|
|
30537
|
-
this.language = undefined;
|
|
30538
|
-
this.emitValue = undefined;
|
|
30539
|
-
this.clientStyling = '';
|
|
30540
|
-
this.dateFormat = undefined;
|
|
30541
|
-
this.emitOnClick = false;
|
|
30542
|
-
this.errorMessage = undefined;
|
|
30543
|
-
this.isValid = undefined;
|
|
30544
|
-
this.limitStylingAppends = false;
|
|
30545
|
-
this.showTooltip = false;
|
|
30546
30839
|
}
|
|
30547
30840
|
validityChanged() {
|
|
30548
30841
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -30631,7 +30924,7 @@ const DateInput = class {
|
|
|
30631
30924
|
}
|
|
30632
30925
|
renderTooltip() {
|
|
30633
30926
|
if (this.showTooltip) {
|
|
30634
|
-
return (h$
|
|
30927
|
+
return (h$a("div", { class: `date__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
30635
30928
|
}
|
|
30636
30929
|
return null;
|
|
30637
30930
|
}
|
|
@@ -30640,8 +30933,8 @@ const DateInput = class {
|
|
|
30640
30933
|
if (this.touched) {
|
|
30641
30934
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
30642
30935
|
}
|
|
30643
|
-
return h$
|
|
30644
|
-
h$
|
|
30936
|
+
return h$a("div", { key: 'fc9cd0a618c7b6e62962c0800399a470fffa1fc4', class: `date__wrapper ${this.autofilled ? 'date__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h$a("label", { key: 'abc7c1715dd2d0c60dd2ac6d028355de910be501', class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), h$a("vaadin-date-picker", { key: 'a6b40a978b573d41490457d708f9a7ac78622a6f', id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (e) => this.handleInput(e), onBlur: this.handleBlur }), h$a("small", { key: 'd802ea7b25a64802aca3a7491107fcee7af2a23c', class: 'date__error-message' }, this.errorMessage), this.tooltip &&
|
|
30937
|
+
h$a("img", { key: '46edd200a9ce9eba27414a6434c6b3d5e9dc9964', class: 'date__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
30645
30938
|
}
|
|
30646
30939
|
get element() { return getElement(this); }
|
|
30647
30940
|
static get watchers() { return {
|
|
@@ -30659,6 +30952,12 @@ const EmailInput = class {
|
|
|
30659
30952
|
registerInstance(this, hostRef);
|
|
30660
30953
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
30661
30954
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
30955
|
+
/**
|
|
30956
|
+
* Client custom styling via inline style
|
|
30957
|
+
*/
|
|
30958
|
+
this.clientStyling = '';
|
|
30959
|
+
this.limitStylingAppends = false;
|
|
30960
|
+
this.showTooltip = false;
|
|
30662
30961
|
this.validationPattern = '';
|
|
30663
30962
|
this.touched = false;
|
|
30664
30963
|
this.handleInput = (event) => {
|
|
@@ -30683,21 +30982,6 @@ const EmailInput = class {
|
|
|
30683
30982
|
sheet.innerHTML = this.clientStyling;
|
|
30684
30983
|
this.stylingContainer.prepend(sheet);
|
|
30685
30984
|
};
|
|
30686
|
-
this.name = undefined;
|
|
30687
|
-
this.displayName = undefined;
|
|
30688
|
-
this.placeholder = undefined;
|
|
30689
|
-
this.validation = undefined;
|
|
30690
|
-
this.defaultValue = undefined;
|
|
30691
|
-
this.autofilled = undefined;
|
|
30692
|
-
this.tooltip = undefined;
|
|
30693
|
-
this.language = undefined;
|
|
30694
|
-
this.emitValue = undefined;
|
|
30695
|
-
this.isDuplicateInput = undefined;
|
|
30696
|
-
this.clientStyling = '';
|
|
30697
|
-
this.errorMessage = undefined;
|
|
30698
|
-
this.isValid = undefined;
|
|
30699
|
-
this.limitStylingAppends = false;
|
|
30700
|
-
this.showTooltip = false;
|
|
30701
30985
|
}
|
|
30702
30986
|
validityChanged() {
|
|
30703
30987
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -30778,7 +31062,7 @@ const EmailInput = class {
|
|
|
30778
31062
|
}
|
|
30779
31063
|
renderTooltip() {
|
|
30780
31064
|
if (this.showTooltip) {
|
|
30781
|
-
return (h$
|
|
31065
|
+
return (h$a("div", { class: `email__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
30782
31066
|
}
|
|
30783
31067
|
return null;
|
|
30784
31068
|
}
|
|
@@ -30787,8 +31071,8 @@ const EmailInput = class {
|
|
|
30787
31071
|
if (this.touched) {
|
|
30788
31072
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
30789
31073
|
}
|
|
30790
|
-
return h$
|
|
30791
|
-
h$
|
|
31074
|
+
return h$a("div", { key: '23ac67984ab7a0f4db01e5fe01f4f326b4c6a912', class: `email__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h$a("div", { key: 'aa2405e435aea20f1678dd74776a8ce4094bc95b', class: 'email__wrapper--flex' }, h$a("label", { key: '970b83bbcf082d1721c1647993fecd076939b65d', class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h$a("div", { key: '2f03eaf161aab9b45282c1bc0de15bea8455427c', class: 'email__wrapper--relative' }, this.tooltip &&
|
|
31075
|
+
h$a("img", { key: '3c34b91f0b478cf04f5aabc5fdd33a8ed73d091b', class: 'email__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h$a("input", { key: '491f83c0f562893c02e3425b4d54eecc214e3c95', id: `${this.name}__input`, type: 'email', class: `email__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), h$a("small", { key: 'edb6660d958cc5d0cb41b0db195bd7e847ecbefe', class: 'email__error-message' }, this.errorMessage));
|
|
30792
31076
|
}
|
|
30793
31077
|
static get watchers() { return {
|
|
30794
31078
|
"isValid": ["validityChanged"],
|
|
@@ -30805,6 +31089,12 @@ const NumberInput = class {
|
|
|
30805
31089
|
registerInstance(this, hostRef);
|
|
30806
31090
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
30807
31091
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
31092
|
+
/**
|
|
31093
|
+
* Client custom styling via inline style
|
|
31094
|
+
*/
|
|
31095
|
+
this.clientStyling = '';
|
|
31096
|
+
this.limitStylingAppends = false;
|
|
31097
|
+
this.showTooltip = false;
|
|
30808
31098
|
this.validationPattern = '';
|
|
30809
31099
|
this.touched = false;
|
|
30810
31100
|
this.handleInput = (event) => {
|
|
@@ -30829,20 +31119,6 @@ const NumberInput = class {
|
|
|
30829
31119
|
sheet.innerHTML = this.clientStyling;
|
|
30830
31120
|
this.stylingContainer.prepend(sheet);
|
|
30831
31121
|
};
|
|
30832
|
-
this.name = undefined;
|
|
30833
|
-
this.displayName = undefined;
|
|
30834
|
-
this.placeholder = undefined;
|
|
30835
|
-
this.validation = undefined;
|
|
30836
|
-
this.defaultValue = undefined;
|
|
30837
|
-
this.autofilled = undefined;
|
|
30838
|
-
this.tooltip = undefined;
|
|
30839
|
-
this.language = undefined;
|
|
30840
|
-
this.emitValue = undefined;
|
|
30841
|
-
this.clientStyling = '';
|
|
30842
|
-
this.errorMessage = undefined;
|
|
30843
|
-
this.isValid = undefined;
|
|
30844
|
-
this.limitStylingAppends = false;
|
|
30845
|
-
this.showTooltip = false;
|
|
30846
31122
|
}
|
|
30847
31123
|
validityChanged() {
|
|
30848
31124
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -30911,7 +31187,7 @@ const NumberInput = class {
|
|
|
30911
31187
|
}
|
|
30912
31188
|
renderTooltip() {
|
|
30913
31189
|
if (this.showTooltip) {
|
|
30914
|
-
return (h$
|
|
31190
|
+
return (h$a("div", { class: `number__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
30915
31191
|
}
|
|
30916
31192
|
return null;
|
|
30917
31193
|
}
|
|
@@ -30920,8 +31196,8 @@ const NumberInput = class {
|
|
|
30920
31196
|
if (this.touched) {
|
|
30921
31197
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
30922
31198
|
}
|
|
30923
|
-
return h$
|
|
30924
|
-
h$
|
|
31199
|
+
return h$a("div", { key: '2032f77ca52b330ae2e8f484d7a0aba60ee7b9d5', class: `number__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h$a("div", { key: '0786901cd928bba86597180f058bff43fba522b6', class: 'number__wrapper--flex' }, h$a("label", { key: 'ff7f39306cef7aeba3e0e4508df03c5a945e748b', class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h$a("div", { key: 'dced91223621551472fee374d56f1ad7476f4191', class: 'number__wrapper--relative' }, this.tooltip &&
|
|
31200
|
+
h$a("img", { key: 'a804a983e342e4d117126720a32c4c34a2b267dc', class: 'number__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h$a("input", { key: 'fd59afaedf7d9f761684b057a1809474d735cc26', ref: (el) => this.inputReference = el, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${invalidClass}`, pattern: this.validationPattern, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onInput: this.handleInput, onBlur: this.handleBlur }), h$a("small", { key: 'ca11558b5704b69311626736ab84a298449b98d7', class: 'number__error-message' }, this.errorMessage));
|
|
30925
31201
|
}
|
|
30926
31202
|
static get watchers() { return {
|
|
30927
31203
|
"isValid": ["validityChanged"],
|
|
@@ -30964,7 +31240,7 @@ const addLumoGlobalStyles$1 = (id, ...styles) => {
|
|
|
30964
31240
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
30965
31241
|
*/
|
|
30966
31242
|
|
|
30967
|
-
const colorBase = i$
|
|
31243
|
+
const colorBase = i$b`
|
|
30968
31244
|
:host {
|
|
30969
31245
|
/* Base (background) */
|
|
30970
31246
|
--lumo-base-color: #fff;
|
|
@@ -31053,7 +31329,7 @@ const colorBase = i$1`
|
|
|
31053
31329
|
|
|
31054
31330
|
addLumoGlobalStyles$1('color-props', colorBase);
|
|
31055
31331
|
|
|
31056
|
-
const color = i$
|
|
31332
|
+
const color = i$b`
|
|
31057
31333
|
[theme~='dark'] {
|
|
31058
31334
|
/* Base (background) */
|
|
31059
31335
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -31178,7 +31454,7 @@ registerStyles('', color, { moduleId: 'lumo-color' });
|
|
|
31178
31454
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31179
31455
|
*/
|
|
31180
31456
|
|
|
31181
|
-
const fontIcons$1 = i$
|
|
31457
|
+
const fontIcons$1 = i$b`
|
|
31182
31458
|
@font-face {
|
|
31183
31459
|
font-family: 'lumo-icons';
|
|
31184
31460
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I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PU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -31241,7 +31517,7 @@ addLumoGlobalStyles$1('font-icons', fontIcons$1);
|
|
|
31241
31517
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31242
31518
|
*/
|
|
31243
31519
|
|
|
31244
|
-
const sizing$1 = i$
|
|
31520
|
+
const sizing$1 = i$b`
|
|
31245
31521
|
:host {
|
|
31246
31522
|
--lumo-size-xs: 1.625rem;
|
|
31247
31523
|
--lumo-size-s: 1.875rem;
|
|
@@ -31266,7 +31542,7 @@ addLumoGlobalStyles$1('sizing-props', sizing$1);
|
|
|
31266
31542
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31267
31543
|
*/
|
|
31268
31544
|
|
|
31269
|
-
const spacing$1 = i$
|
|
31545
|
+
const spacing$1 = i$b`
|
|
31270
31546
|
:host {
|
|
31271
31547
|
/* Square */
|
|
31272
31548
|
--lumo-space-xs: 0.25rem;
|
|
@@ -31299,7 +31575,7 @@ addLumoGlobalStyles$1('spacing-props', spacing$1);
|
|
|
31299
31575
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31300
31576
|
*/
|
|
31301
31577
|
|
|
31302
|
-
const style$1 = i$
|
|
31578
|
+
const style$1 = i$b`
|
|
31303
31579
|
:host {
|
|
31304
31580
|
/* Border radius */
|
|
31305
31581
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -31321,7 +31597,7 @@ const style$1 = i$1`
|
|
|
31321
31597
|
/**
|
|
31322
31598
|
* Default values for component-specific custom properties.
|
|
31323
31599
|
*/
|
|
31324
|
-
i$
|
|
31600
|
+
i$b`
|
|
31325
31601
|
html {
|
|
31326
31602
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
31327
31603
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -31337,7 +31613,7 @@ addLumoGlobalStyles$1('style-props', style$1);
|
|
|
31337
31613
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31338
31614
|
*/
|
|
31339
31615
|
|
|
31340
|
-
const font$1 = i$
|
|
31616
|
+
const font$1 = i$b`
|
|
31341
31617
|
:host {
|
|
31342
31618
|
/* prettier-ignore */
|
|
31343
31619
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -31359,7 +31635,7 @@ const font$1 = i$1`
|
|
|
31359
31635
|
}
|
|
31360
31636
|
`;
|
|
31361
31637
|
|
|
31362
|
-
const typography$1 = i$
|
|
31638
|
+
const typography$1 = i$b`
|
|
31363
31639
|
body,
|
|
31364
31640
|
:host {
|
|
31365
31641
|
font-family: var(--lumo-font-family);
|
|
@@ -31462,7 +31738,7 @@ addLumoGlobalStyles$1('typography-props', font$1);
|
|
|
31462
31738
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31463
31739
|
*/
|
|
31464
31740
|
|
|
31465
|
-
const fieldButton = i$
|
|
31741
|
+
const fieldButton$1 = i$b`
|
|
31466
31742
|
[part$='button'] {
|
|
31467
31743
|
flex: none;
|
|
31468
31744
|
width: 1em;
|
|
@@ -31490,7 +31766,7 @@ const fieldButton = i$1`
|
|
|
31490
31766
|
display: block;
|
|
31491
31767
|
}
|
|
31492
31768
|
`;
|
|
31493
|
-
registerStyles('', fieldButton, { moduleId: 'lumo-field-button' });
|
|
31769
|
+
registerStyles('', fieldButton$1, { moduleId: 'lumo-field-button' });
|
|
31494
31770
|
|
|
31495
31771
|
/**
|
|
31496
31772
|
* @license
|
|
@@ -31498,7 +31774,7 @@ registerStyles('', fieldButton, { moduleId: 'lumo-field-button' });
|
|
|
31498
31774
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31499
31775
|
*/
|
|
31500
31776
|
|
|
31501
|
-
const helper = i$
|
|
31777
|
+
const helper = i$b`
|
|
31502
31778
|
:host([has-helper]) [part='helper-text']::before {
|
|
31503
31779
|
content: '';
|
|
31504
31780
|
display: block;
|
|
@@ -31557,7 +31833,7 @@ const helper = i$1`
|
|
|
31557
31833
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31558
31834
|
*/
|
|
31559
31835
|
|
|
31560
|
-
const requiredField = i$
|
|
31836
|
+
const requiredField = i$b`
|
|
31561
31837
|
[part='label'] {
|
|
31562
31838
|
align-self: flex-start;
|
|
31563
31839
|
color: var(--lumo-secondary-text-color);
|
|
@@ -31663,7 +31939,7 @@ registerStyles('', requiredField, { moduleId: 'lumo-required-field' });
|
|
|
31663
31939
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31664
31940
|
*/
|
|
31665
31941
|
|
|
31666
|
-
const inputField = i$
|
|
31942
|
+
const inputField$1 = i$b`
|
|
31667
31943
|
:host {
|
|
31668
31944
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
31669
31945
|
color: var(--lumo-body-text-color);
|
|
@@ -31799,9 +32075,9 @@ const inputField = i$1`
|
|
|
31799
32075
|
}
|
|
31800
32076
|
`;
|
|
31801
32077
|
|
|
31802
|
-
const inputFieldShared = [requiredField, fieldButton, helper, inputField];
|
|
32078
|
+
const inputFieldShared$1 = [requiredField, fieldButton$1, helper, inputField$1];
|
|
31803
32079
|
|
|
31804
|
-
registerStyles('', inputFieldShared, {
|
|
32080
|
+
registerStyles('', inputFieldShared$1, {
|
|
31805
32081
|
moduleId: 'lumo-input-field-shared-styles',
|
|
31806
32082
|
});
|
|
31807
32083
|
|
|
@@ -31811,7 +32087,7 @@ registerStyles('', inputFieldShared, {
|
|
|
31811
32087
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31812
32088
|
*/
|
|
31813
32089
|
|
|
31814
|
-
registerStyles('vaadin-text-field', inputFieldShared, {
|
|
32090
|
+
registerStyles('vaadin-text-field', inputFieldShared$1, {
|
|
31815
32091
|
moduleId: 'lumo-text-field-styles',
|
|
31816
32092
|
});
|
|
31817
32093
|
|
|
@@ -32034,7 +32310,7 @@ const TextFieldMixin = (superClass) =>
|
|
|
32034
32310
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
32035
32311
|
*/
|
|
32036
32312
|
|
|
32037
|
-
registerStyles('vaadin-text-field', inputFieldShared$
|
|
32313
|
+
registerStyles('vaadin-text-field', inputFieldShared$2, { moduleId: 'vaadin-text-field-styles' });
|
|
32038
32314
|
|
|
32039
32315
|
/**
|
|
32040
32316
|
* `<vaadin-text-field>` is a web component that allows the user to input and edit text.
|
|
@@ -32180,13 +32456,266 @@ class TextField extends TextFieldMixin(ThemableMixin(ElementMixin(PolymerElement
|
|
|
32180
32456
|
|
|
32181
32457
|
defineCustomElement(TextField);
|
|
32182
32458
|
|
|
32459
|
+
const button = i$b`
|
|
32460
|
+
:host {
|
|
32461
|
+
/* Sizing */
|
|
32462
|
+
--lumo-button-size: var(--lumo-size-m);
|
|
32463
|
+
min-width: calc(var(--lumo-button-size) * 2);
|
|
32464
|
+
height: var(--lumo-button-size);
|
|
32465
|
+
padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
|
|
32466
|
+
margin: var(--lumo-space-xs) 0;
|
|
32467
|
+
box-sizing: border-box;
|
|
32468
|
+
/* Style */
|
|
32469
|
+
font-family: var(--lumo-font-family);
|
|
32470
|
+
font-size: var(--lumo-font-size-m);
|
|
32471
|
+
font-weight: 500;
|
|
32472
|
+
color: var(--_lumo-button-color, var(--lumo-primary-text-color));
|
|
32473
|
+
background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
|
|
32474
|
+
border-radius: var(--lumo-border-radius-m);
|
|
32475
|
+
cursor: var(--lumo-clickable-cursor);
|
|
32476
|
+
-webkit-tap-highlight-color: transparent;
|
|
32477
|
+
-webkit-font-smoothing: antialiased;
|
|
32478
|
+
-moz-osx-font-smoothing: grayscale;
|
|
32479
|
+
flex-shrink: 0;
|
|
32480
|
+
}
|
|
32481
|
+
|
|
32482
|
+
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
|
32483
|
+
[part='label'],
|
|
32484
|
+
[part='prefix'],
|
|
32485
|
+
[part='suffix'] {
|
|
32486
|
+
line-height: var(--lumo-line-height-xs);
|
|
32487
|
+
}
|
|
32488
|
+
|
|
32489
|
+
[part='label'] {
|
|
32490
|
+
padding: calc(var(--lumo-button-size) / 6) 0;
|
|
32491
|
+
}
|
|
32492
|
+
|
|
32493
|
+
:host([theme~='small']) {
|
|
32494
|
+
font-size: var(--lumo-font-size-s);
|
|
32495
|
+
--lumo-button-size: var(--lumo-size-s);
|
|
32496
|
+
}
|
|
32497
|
+
|
|
32498
|
+
:host([theme~='large']) {
|
|
32499
|
+
font-size: var(--lumo-font-size-l);
|
|
32500
|
+
--lumo-button-size: var(--lumo-size-l);
|
|
32501
|
+
}
|
|
32502
|
+
|
|
32503
|
+
/* For interaction states */
|
|
32504
|
+
:host::before,
|
|
32505
|
+
:host::after {
|
|
32506
|
+
content: '';
|
|
32507
|
+
/* We rely on the host always being relative */
|
|
32508
|
+
position: absolute;
|
|
32509
|
+
z-index: 1;
|
|
32510
|
+
inset: 0;
|
|
32511
|
+
background-color: currentColor;
|
|
32512
|
+
border-radius: inherit;
|
|
32513
|
+
opacity: 0;
|
|
32514
|
+
pointer-events: none;
|
|
32515
|
+
}
|
|
32516
|
+
|
|
32517
|
+
/* Hover */
|
|
32518
|
+
|
|
32519
|
+
@media (any-hover: hover) {
|
|
32520
|
+
:host(:hover)::before {
|
|
32521
|
+
opacity: 0.02;
|
|
32522
|
+
}
|
|
32523
|
+
}
|
|
32524
|
+
|
|
32525
|
+
/* Active */
|
|
32526
|
+
|
|
32527
|
+
:host::after {
|
|
32528
|
+
transition: opacity 1.4s, transform 0.1s;
|
|
32529
|
+
filter: blur(8px);
|
|
32530
|
+
}
|
|
32531
|
+
|
|
32532
|
+
:host([active])::before {
|
|
32533
|
+
opacity: 0.05;
|
|
32534
|
+
transition-duration: 0s;
|
|
32535
|
+
}
|
|
32536
|
+
|
|
32537
|
+
:host([active])::after {
|
|
32538
|
+
opacity: 0.1;
|
|
32539
|
+
transition-duration: 0s, 0s;
|
|
32540
|
+
transform: scale(0);
|
|
32541
|
+
}
|
|
32542
|
+
|
|
32543
|
+
/* Keyboard focus */
|
|
32544
|
+
|
|
32545
|
+
:host([focus-ring]) {
|
|
32546
|
+
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
32547
|
+
}
|
|
32548
|
+
|
|
32549
|
+
:host([theme~='primary'][focus-ring]) {
|
|
32550
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
|
|
32551
|
+
}
|
|
32552
|
+
|
|
32553
|
+
/* Types (primary, tertiary, tertiary-inline */
|
|
32554
|
+
|
|
32555
|
+
:host([theme~='tertiary']),
|
|
32556
|
+
:host([theme~='tertiary-inline']) {
|
|
32557
|
+
background-color: transparent !important;
|
|
32558
|
+
min-width: 0;
|
|
32559
|
+
}
|
|
32560
|
+
|
|
32561
|
+
:host([theme~='tertiary']) {
|
|
32562
|
+
padding: 0 calc(var(--lumo-button-size) / 6);
|
|
32563
|
+
}
|
|
32564
|
+
|
|
32565
|
+
:host([theme~='tertiary-inline'])::before {
|
|
32566
|
+
display: none;
|
|
32567
|
+
}
|
|
32568
|
+
|
|
32569
|
+
:host([theme~='tertiary-inline']) {
|
|
32570
|
+
margin: 0;
|
|
32571
|
+
height: auto;
|
|
32572
|
+
padding: 0;
|
|
32573
|
+
line-height: inherit;
|
|
32574
|
+
font-size: inherit;
|
|
32575
|
+
}
|
|
32576
|
+
|
|
32577
|
+
:host([theme~='tertiary-inline']) [part='label'] {
|
|
32578
|
+
padding: 0;
|
|
32579
|
+
overflow: visible;
|
|
32580
|
+
line-height: inherit;
|
|
32581
|
+
}
|
|
32582
|
+
|
|
32583
|
+
:host([theme~='primary']) {
|
|
32584
|
+
background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
|
|
32585
|
+
color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
|
|
32586
|
+
font-weight: 600;
|
|
32587
|
+
min-width: calc(var(--lumo-button-size) * 2.5);
|
|
32588
|
+
}
|
|
32589
|
+
|
|
32590
|
+
:host([theme~='primary'])::before {
|
|
32591
|
+
background-color: black;
|
|
32592
|
+
}
|
|
32593
|
+
|
|
32594
|
+
@media (any-hover: hover) {
|
|
32595
|
+
:host([theme~='primary']:hover)::before {
|
|
32596
|
+
opacity: 0.05;
|
|
32597
|
+
}
|
|
32598
|
+
}
|
|
32599
|
+
|
|
32600
|
+
:host([theme~='primary'][active])::before {
|
|
32601
|
+
opacity: 0.1;
|
|
32602
|
+
}
|
|
32603
|
+
|
|
32604
|
+
:host([theme~='primary'][active])::after {
|
|
32605
|
+
opacity: 0.2;
|
|
32606
|
+
}
|
|
32607
|
+
|
|
32608
|
+
/* Colors (success, error, contrast) */
|
|
32609
|
+
|
|
32610
|
+
:host([theme~='success']) {
|
|
32611
|
+
color: var(--lumo-success-text-color);
|
|
32612
|
+
}
|
|
32613
|
+
|
|
32614
|
+
:host([theme~='success'][theme~='primary']) {
|
|
32615
|
+
background-color: var(--lumo-success-color);
|
|
32616
|
+
color: var(--lumo-success-contrast-color);
|
|
32617
|
+
}
|
|
32618
|
+
|
|
32619
|
+
:host([theme~='error']) {
|
|
32620
|
+
color: var(--lumo-error-text-color);
|
|
32621
|
+
}
|
|
32622
|
+
|
|
32623
|
+
:host([theme~='error'][theme~='primary']) {
|
|
32624
|
+
background-color: var(--lumo-error-color);
|
|
32625
|
+
color: var(--lumo-error-contrast-color);
|
|
32626
|
+
}
|
|
32627
|
+
|
|
32628
|
+
:host([theme~='contrast']) {
|
|
32629
|
+
color: var(--lumo-contrast);
|
|
32630
|
+
}
|
|
32631
|
+
|
|
32632
|
+
:host([theme~='contrast'][theme~='primary']) {
|
|
32633
|
+
background-color: var(--lumo-contrast);
|
|
32634
|
+
color: var(--lumo-base-color);
|
|
32635
|
+
}
|
|
32636
|
+
|
|
32637
|
+
/* Disabled state. Keep selectors after other color variants. */
|
|
32638
|
+
|
|
32639
|
+
:host([disabled]) {
|
|
32640
|
+
pointer-events: none;
|
|
32641
|
+
color: var(--lumo-disabled-text-color);
|
|
32642
|
+
}
|
|
32643
|
+
|
|
32644
|
+
:host([theme~='primary'][disabled]) {
|
|
32645
|
+
background-color: var(--lumo-contrast-30pct);
|
|
32646
|
+
color: var(--lumo-base-color);
|
|
32647
|
+
}
|
|
32648
|
+
|
|
32649
|
+
:host([theme~='primary'][disabled]) [part] {
|
|
32650
|
+
opacity: 0.7;
|
|
32651
|
+
}
|
|
32652
|
+
|
|
32653
|
+
/* Icons */
|
|
32654
|
+
|
|
32655
|
+
[part] ::slotted(vaadin-icon) {
|
|
32656
|
+
display: inline-block;
|
|
32657
|
+
width: var(--lumo-icon-size-m);
|
|
32658
|
+
height: var(--lumo-icon-size-m);
|
|
32659
|
+
}
|
|
32660
|
+
|
|
32661
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
32662
|
+
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
32663
|
+
padding: 0.25em;
|
|
32664
|
+
box-sizing: border-box !important;
|
|
32665
|
+
}
|
|
32666
|
+
|
|
32667
|
+
[part='prefix'] {
|
|
32668
|
+
margin-left: -0.25em;
|
|
32669
|
+
margin-right: 0.25em;
|
|
32670
|
+
}
|
|
32671
|
+
|
|
32672
|
+
[part='suffix'] {
|
|
32673
|
+
margin-left: 0.25em;
|
|
32674
|
+
margin-right: -0.25em;
|
|
32675
|
+
}
|
|
32676
|
+
|
|
32677
|
+
/* Icon-only */
|
|
32678
|
+
|
|
32679
|
+
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
|
32680
|
+
min-width: var(--lumo-button-size);
|
|
32681
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
|
32682
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
|
32683
|
+
}
|
|
32684
|
+
|
|
32685
|
+
:host([theme~='icon']) [part='prefix'],
|
|
32686
|
+
:host([theme~='icon']) [part='suffix'] {
|
|
32687
|
+
margin-left: 0;
|
|
32688
|
+
margin-right: 0;
|
|
32689
|
+
}
|
|
32690
|
+
|
|
32691
|
+
/* RTL specific styles */
|
|
32692
|
+
|
|
32693
|
+
:host([dir='rtl']) [part='prefix'] {
|
|
32694
|
+
margin-left: 0.25em;
|
|
32695
|
+
margin-right: -0.25em;
|
|
32696
|
+
}
|
|
32697
|
+
|
|
32698
|
+
:host([dir='rtl']) [part='suffix'] {
|
|
32699
|
+
margin-left: -0.25em;
|
|
32700
|
+
margin-right: 0.25em;
|
|
32701
|
+
}
|
|
32702
|
+
|
|
32703
|
+
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
|
32704
|
+
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
|
32705
|
+
margin-left: 0;
|
|
32706
|
+
margin-right: 0;
|
|
32707
|
+
}
|
|
32708
|
+
`;
|
|
32709
|
+
|
|
32710
|
+
registerStyles('vaadin-button', button, { moduleId: 'lumo-button' });
|
|
32711
|
+
|
|
32183
32712
|
/**
|
|
32184
32713
|
* @license
|
|
32185
32714
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
32186
32715
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
32187
32716
|
*/
|
|
32188
32717
|
|
|
32189
|
-
const passwordFieldButton = i$
|
|
32718
|
+
const passwordFieldButton = i$b`
|
|
32190
32719
|
:host {
|
|
32191
32720
|
position: absolute;
|
|
32192
32721
|
right: 0;
|
|
@@ -32211,7 +32740,7 @@ registerStyles('vaadin-password-field-button', [button, passwordFieldButton], {
|
|
|
32211
32740
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
32212
32741
|
*/
|
|
32213
32742
|
|
|
32214
|
-
const passwordField = i$
|
|
32743
|
+
const passwordField = i$b`
|
|
32215
32744
|
[part='reveal-button']::before {
|
|
32216
32745
|
content: var(--lumo-icons-eye);
|
|
32217
32746
|
}
|
|
@@ -32231,7 +32760,266 @@ const passwordField = i$1`
|
|
|
32231
32760
|
}
|
|
32232
32761
|
`;
|
|
32233
32762
|
|
|
32234
|
-
registerStyles('vaadin-password-field', [inputFieldShared$
|
|
32763
|
+
registerStyles('vaadin-password-field', [inputFieldShared$1, passwordField], { moduleId: 'lumo-password-field' });
|
|
32764
|
+
|
|
32765
|
+
/**
|
|
32766
|
+
* @license
|
|
32767
|
+
* Copyright 2019 Google LLC
|
|
32768
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32769
|
+
*/
|
|
32770
|
+
const t$1=window,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),n$3=new WeakMap;class o$3{constructor(t,e,n){if(this._$cssResult$=!0,n!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n$3.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n$3.set(s,t));}return t}toString(){return this.cssText}}const r$2=t=>new o$3("string"==typeof t?t:t+"",void 0,s$3),i$1=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[n+1]),t[0]);return new o$3(n,t,s$3)},S$1=(s,n)=>{e$2?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement("style"),o=t$1.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=e.cssText,s.appendChild(n);}));},c$1=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
|
|
32771
|
+
|
|
32772
|
+
/**
|
|
32773
|
+
* @license
|
|
32774
|
+
* Copyright 2017 Google LLC
|
|
32775
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32776
|
+
*/var s$2;const e$1=window,r$1=e$1.trustedTypes,h$1=r$1?r$1.emptyScript:"",o$2=e$1.reactiveElementPolyfillSupport,n$2={toAttribute(t,i){switch(i){case Boolean:t=t?h$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t);}catch(t){s=null;}}return s}},a$1=(t,i)=>i!==t&&(i==i||t==t),l$2={attribute:!0,type:String,converter:n$2,reflect:!1,hasChanged:a$1},d$1="finalized";class u$1 extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu();}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t);}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e));})),t}static createProperty(t,i=l$2){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e);}}static getPropertyDescriptor(t,i,s){return {get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$2}static finalize(){if(this.hasOwnProperty(d$1))return !1;this[d$1]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(c$1(i));}else void 0!==i&&s.push(c$1(i));return s}static _$Ep(t,i){const s=i.attribute;return !1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)));}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t));}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i]);}));}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S$1(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}));}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}));}attributeChangedCallback(t,i,s){this._$AK(t,s);}_$EO(t,i,s=l$2){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n$2).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null;}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n$2;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null;}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a$1)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek();}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s);}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),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){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek();}updated(t){}firstUpdated(t){}}u$1[d$1]=!0,u$1.elementProperties=new Map,u$1.elementStyles=[],u$1.shadowRootOptions={mode:"open"},null==o$2||o$2({ReactiveElement:u$1}),(null!==(s$2=e$1.reactiveElementVersions)&&void 0!==s$2?s$2:e$1.reactiveElementVersions=[]).push("1.6.3");
|
|
32777
|
+
|
|
32778
|
+
/**
|
|
32779
|
+
* @license
|
|
32780
|
+
* Copyright 2017 Google LLC
|
|
32781
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32782
|
+
*/
|
|
32783
|
+
var t;const i=window,s$1=i.trustedTypes,e=s$1?s$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$1="$lit$",n$1=`lit$${(Math.random()+"").slice(9)}$`,l$1="?"+n$1,h=`<${l$1}>`,r=document,u=()=>r.createComment(""),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c=Array.isArray,v=t=>c(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E=new WeakMap,C=r.createTreeWalker(r,129,null,!1);function P(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e?e.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,e=[];let l,r=2===i?"<svg>":"",u=f;for(let i=0;i<s;i++){const s=t[i];let d,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f?"!--"===c[1]?u=_:void 0!==c[1]?u=m:void 0!==c[2]?(y.test(c[2])&&(l=RegExp("</"+c[2],"g")),u=p):void 0!==c[3]&&(u=p):u===p?">"===c[0]?(u=null!=l?l:f,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,d=c[1],u=void 0===c[3]?p:'"'===c[3]?$:g):u===$||u===g?u=p:u===_||u===m?u=f:(u=p,l=void 0);const w=u===p&&t[i+1].startsWith("/>")?" ":"";r+=u===f?s+h:v>=0?(e.push(d),s.slice(0,v)+o$1+s.slice(v)+n$1+w):s+n$1+(-2===v?(e.push(void 0),i):w);}return [P(t,r+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class N{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,d=0;const c=t.length-1,v=this.parts,[a,f]=V(t,i);if(this.el=N.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes);}for(;null!==(h=C.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o$1)||i.startsWith(n$1)){const s=f[d++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o$1).split(n$1),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?L:"@"===i[1]?z:k});}else v.push({type:6,index:r});}for(const i of t)h.removeAttribute(i);}if(y.test(h.tagName)){const t=h.textContent.split(n$1),i=t.length-1;if(i>0){h.textContent=s$1?s$1.emptyScript:"";for(let s=0;s<i;s++)h.append(t[s],u()),C.nextNode(),v.push({type:2,index:++r});h.append(t[i],u());}}}else if(8===h.nodeType)if(h.data===l$1)v.push({type:2,index:r});else {let t=-1;for(;-1!==(t=h.data.indexOf(n$1,t+1));)v.push({type:7,index:r}),t+=n$1.length-1;}r++;}}static createElement(t,i){const s=r.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){var o,n,l,h;if(i===T)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const u=d(i)?void 0:i._$litDirective$;return (null==r?void 0:r.constructor)!==u&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===u?r=void 0:(r=new u(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=S(t,r._$AS(t,i.values),r,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r).importNode(s,!0);C.currentNode=o;let n=C.nextNode(),l=0,h=0,u=e[0];for(;void 0!==u;){if(l===u.index){let i;2===u.type?i=new R(n,n.nextSibling,this,t):1===u.type?i=new u.ctor(n,u.name,u.strings,this,t):6===u.type&&(i=new Z(n,this,t)),this._$AV.push(i),u=e[++h];}l!==(null==u?void 0:u.index)&&(n=C.nextNode(),l++);}return C.currentNode=r,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{constructor(t,i,s,e){var o;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o;}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),d(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v(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!==A&&d(this._$AH)?this._$AA.nextSibling.data=t:this.$(r.createTextNode(t)),this._$AH=t;}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=N.createElement(P(e.h,e.h[0]),this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else {const t=new M(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t;}}_$AC(t){let i=E.get(t.strings);return void 0===i&&E.set(t.strings,i=new N(t)),i}T(t){c(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new R(this.k(u()),this.k(u()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t));}}class k{constructor(t,i,s,e,o){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=S(this,t,i,0),n=!d(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else {const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=S(this,e[s+l],i,l),h===T&&(h=this._$AH[l]),n||(n=!d(h)||h!==this._$AH[l]),h===A?t=A:t!==A&&(t+=(null!=h?h:"")+o[l+1]),this._$AH[l]=h;}n&&!e&&this.j(t);}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A?void 0:t;}}const I=s$1?s$1.emptyScript:"";class L extends k{constructor(){super(...arguments),this.type=4;}j(t){t&&t!==A?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name);}}class z extends k{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5;}_$AI(t,i=this){var s;if((t=null!==(s=S(this,t,i,0))&&void 0!==s?s:A)===T)return;const e=this._$AH,o=t===A&&e!==A||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==A&&(e===A||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t);}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const B=i.litHtmlPolyfillSupport;null==B||B(N,R),(null!==(t=i.litHtmlVersions)&&void 0!==t?t:i.litHtmlVersions=[]).push("2.8.0");const D=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new R(i.insertBefore(u(),t),t,void 0,null!=s?s:{});}return l._$AI(t),l};
|
|
32784
|
+
|
|
32785
|
+
/**
|
|
32786
|
+
* @license
|
|
32787
|
+
* Copyright 2017 Google LLC
|
|
32788
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32789
|
+
*/var l,o;class s extends u$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D(i,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1);}render(){return T}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push("3.3.3");
|
|
32790
|
+
|
|
32791
|
+
/**
|
|
32792
|
+
* @license
|
|
32793
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
32794
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
32795
|
+
*/
|
|
32796
|
+
|
|
32797
|
+
const buttonStyles = i$1`
|
|
32798
|
+
:host {
|
|
32799
|
+
display: inline-block;
|
|
32800
|
+
position: relative;
|
|
32801
|
+
outline: none;
|
|
32802
|
+
white-space: nowrap;
|
|
32803
|
+
-webkit-user-select: none;
|
|
32804
|
+
-moz-user-select: none;
|
|
32805
|
+
user-select: none;
|
|
32806
|
+
}
|
|
32807
|
+
|
|
32808
|
+
:host([hidden]) {
|
|
32809
|
+
display: none !important;
|
|
32810
|
+
}
|
|
32811
|
+
|
|
32812
|
+
/* Aligns the button with form fields when placed on the same line.
|
|
32813
|
+
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
|
32814
|
+
.vaadin-button-container::before {
|
|
32815
|
+
content: '\\2003';
|
|
32816
|
+
display: inline-block;
|
|
32817
|
+
width: 0;
|
|
32818
|
+
max-height: 100%;
|
|
32819
|
+
}
|
|
32820
|
+
|
|
32821
|
+
.vaadin-button-container {
|
|
32822
|
+
display: inline-flex;
|
|
32823
|
+
align-items: center;
|
|
32824
|
+
justify-content: center;
|
|
32825
|
+
text-align: center;
|
|
32826
|
+
width: 100%;
|
|
32827
|
+
height: 100%;
|
|
32828
|
+
min-height: inherit;
|
|
32829
|
+
text-shadow: inherit;
|
|
32830
|
+
}
|
|
32831
|
+
|
|
32832
|
+
[part='prefix'],
|
|
32833
|
+
[part='suffix'] {
|
|
32834
|
+
flex: none;
|
|
32835
|
+
}
|
|
32836
|
+
|
|
32837
|
+
[part='label'] {
|
|
32838
|
+
white-space: nowrap;
|
|
32839
|
+
overflow: hidden;
|
|
32840
|
+
text-overflow: ellipsis;
|
|
32841
|
+
}
|
|
32842
|
+
|
|
32843
|
+
@media (forced-colors: active) {
|
|
32844
|
+
:host {
|
|
32845
|
+
outline: 1px solid;
|
|
32846
|
+
outline-offset: -1px;
|
|
32847
|
+
}
|
|
32848
|
+
|
|
32849
|
+
:host([focused]) {
|
|
32850
|
+
outline-width: 2px;
|
|
32851
|
+
}
|
|
32852
|
+
|
|
32853
|
+
:host([disabled]) {
|
|
32854
|
+
outline-color: GrayText;
|
|
32855
|
+
}
|
|
32856
|
+
}
|
|
32857
|
+
`;
|
|
32858
|
+
|
|
32859
|
+
const buttonTemplate = (html) => html`
|
|
32860
|
+
<div class="vaadin-button-container">
|
|
32861
|
+
<span part="prefix" aria-hidden="true">
|
|
32862
|
+
<slot name="prefix"></slot>
|
|
32863
|
+
</span>
|
|
32864
|
+
<span part="label">
|
|
32865
|
+
<slot></slot>
|
|
32866
|
+
</span>
|
|
32867
|
+
<span part="suffix" aria-hidden="true">
|
|
32868
|
+
<slot name="suffix"></slot>
|
|
32869
|
+
</span>
|
|
32870
|
+
</div>
|
|
32871
|
+
<slot name="tooltip"></slot>
|
|
32872
|
+
`;
|
|
32873
|
+
|
|
32874
|
+
/**
|
|
32875
|
+
* @license
|
|
32876
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
32877
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
32878
|
+
*/
|
|
32879
|
+
|
|
32880
|
+
/**
|
|
32881
|
+
* A mixin providing common button functionality.
|
|
32882
|
+
*
|
|
32883
|
+
* @polymerMixin
|
|
32884
|
+
* @mixes ActiveMixin
|
|
32885
|
+
* @mixes FocusMixin
|
|
32886
|
+
* @mixes TabindexMixin
|
|
32887
|
+
*/
|
|
32888
|
+
const ButtonMixin = (superClass) =>
|
|
32889
|
+
class ButtonMixinClass extends ActiveMixin(TabindexMixin(FocusMixin(superClass))) {
|
|
32890
|
+
static get properties() {
|
|
32891
|
+
return {
|
|
32892
|
+
/**
|
|
32893
|
+
* Indicates whether the element can be focused and where it participates in sequential keyboard navigation.
|
|
32894
|
+
*
|
|
32895
|
+
* @override
|
|
32896
|
+
* @protected
|
|
32897
|
+
*/
|
|
32898
|
+
tabindex: {
|
|
32899
|
+
type: Number,
|
|
32900
|
+
value: 0,
|
|
32901
|
+
reflectToAttribute: true,
|
|
32902
|
+
},
|
|
32903
|
+
};
|
|
32904
|
+
}
|
|
32905
|
+
|
|
32906
|
+
/**
|
|
32907
|
+
* By default, `Space` is the only possible activation key for a focusable HTML element.
|
|
32908
|
+
* Nonetheless, the button is an exception as it can be also activated by pressing `Enter`.
|
|
32909
|
+
* See the "Keyboard Support" section in https://www.w3.org/TR/wai-aria-practices/examples/button/button.html.
|
|
32910
|
+
*
|
|
32911
|
+
* @protected
|
|
32912
|
+
* @override
|
|
32913
|
+
*/
|
|
32914
|
+
get _activeKeys() {
|
|
32915
|
+
return ['Enter', ' '];
|
|
32916
|
+
}
|
|
32917
|
+
|
|
32918
|
+
/** @protected */
|
|
32919
|
+
ready() {
|
|
32920
|
+
super.ready();
|
|
32921
|
+
|
|
32922
|
+
// By default, if the user hasn't provided a custom role,
|
|
32923
|
+
// the role attribute is set to "button".
|
|
32924
|
+
if (!this.hasAttribute('role')) {
|
|
32925
|
+
this.setAttribute('role', 'button');
|
|
32926
|
+
}
|
|
32927
|
+
}
|
|
32928
|
+
|
|
32929
|
+
/**
|
|
32930
|
+
* Since the button component is designed on the base of the `[role=button]` attribute,
|
|
32931
|
+
* and doesn't have a native <button> inside, in order to be fully accessible from the keyboard,
|
|
32932
|
+
* it should manually fire the `click` event once an activation key is pressed,
|
|
32933
|
+
* as it follows from the WAI-ARIA specifications:
|
|
32934
|
+
* https://www.w3.org/TR/wai-aria-practices-1.1/#button
|
|
32935
|
+
*
|
|
32936
|
+
* According to the UI Events specifications,
|
|
32937
|
+
* the `click` event should be fired exactly on `keydown`:
|
|
32938
|
+
* https://www.w3.org/TR/uievents/#event-type-keydown
|
|
32939
|
+
*
|
|
32940
|
+
* @param {KeyboardEvent} event
|
|
32941
|
+
* @protected
|
|
32942
|
+
* @override
|
|
32943
|
+
*/
|
|
32944
|
+
_onKeyDown(event) {
|
|
32945
|
+
super._onKeyDown(event);
|
|
32946
|
+
|
|
32947
|
+
if (event.altKey || event.shiftKey || event.ctrlKey || event.metaKey) {
|
|
32948
|
+
return;
|
|
32949
|
+
}
|
|
32950
|
+
|
|
32951
|
+
if (this._activeKeys.includes(event.key)) {
|
|
32952
|
+
event.preventDefault();
|
|
32953
|
+
|
|
32954
|
+
// `DisabledMixin` overrides the standard `click()` method
|
|
32955
|
+
// so that it doesn't fire the `click` event when the element is disabled.
|
|
32956
|
+
this.click();
|
|
32957
|
+
}
|
|
32958
|
+
}
|
|
32959
|
+
};
|
|
32960
|
+
|
|
32961
|
+
/**
|
|
32962
|
+
* @license
|
|
32963
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
32964
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
32965
|
+
*/
|
|
32966
|
+
|
|
32967
|
+
registerStyles('vaadin-button', buttonStyles, { moduleId: 'vaadin-button-styles' });
|
|
32968
|
+
|
|
32969
|
+
/**
|
|
32970
|
+
* `<vaadin-button>` is an accessible and customizable button that allows users to perform actions.
|
|
32971
|
+
*
|
|
32972
|
+
* ```html
|
|
32973
|
+
* <vaadin-button>Press me</vaadin-button>
|
|
32974
|
+
* ```
|
|
32975
|
+
*
|
|
32976
|
+
* ### Styling
|
|
32977
|
+
*
|
|
32978
|
+
* The following shadow DOM parts are available for styling:
|
|
32979
|
+
*
|
|
32980
|
+
* Part name | Description
|
|
32981
|
+
* ----------|-------------
|
|
32982
|
+
* `label` | The label (text) inside the button.
|
|
32983
|
+
* `prefix` | A slot for content before the label (e.g. an icon).
|
|
32984
|
+
* `suffix` | A slot for content after the label (e.g. an icon).
|
|
32985
|
+
*
|
|
32986
|
+
* The following attributes are available for styling:
|
|
32987
|
+
*
|
|
32988
|
+
* Attribute | Description
|
|
32989
|
+
* -------------|-------------
|
|
32990
|
+
* `active` | Set when the button is pressed down, either with mouse, touch or the keyboard.
|
|
32991
|
+
* `disabled` | Set when the button is disabled.
|
|
32992
|
+
* `focus-ring` | Set when the button is focused using the keyboard.
|
|
32993
|
+
* `focused` | Set when the button is focused.
|
|
32994
|
+
*
|
|
32995
|
+
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
32996
|
+
*
|
|
32997
|
+
* @customElement
|
|
32998
|
+
* @extends HTMLElement
|
|
32999
|
+
* @mixes ButtonMixin
|
|
33000
|
+
* @mixes ControllerMixin
|
|
33001
|
+
* @mixes ElementMixin
|
|
33002
|
+
* @mixes ThemableMixin
|
|
33003
|
+
*/
|
|
33004
|
+
class Button extends ButtonMixin(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement)))) {
|
|
33005
|
+
static get is() {
|
|
33006
|
+
return 'vaadin-button';
|
|
33007
|
+
}
|
|
33008
|
+
|
|
33009
|
+
static get template() {
|
|
33010
|
+
return buttonTemplate(html);
|
|
33011
|
+
}
|
|
33012
|
+
|
|
33013
|
+
/** @protected */
|
|
33014
|
+
ready() {
|
|
33015
|
+
super.ready();
|
|
33016
|
+
|
|
33017
|
+
this._tooltipController = new TooltipController(this);
|
|
33018
|
+
this.addController(this._tooltipController);
|
|
33019
|
+
}
|
|
33020
|
+
}
|
|
33021
|
+
|
|
33022
|
+
defineCustomElement(Button);
|
|
32235
33023
|
|
|
32236
33024
|
/**
|
|
32237
33025
|
* @license
|
|
@@ -32596,6 +33384,17 @@ const PasswordInput = class {
|
|
|
32596
33384
|
this.sendOriginalValidityState = createEvent(this, "sendOriginalValidityState", 7);
|
|
32597
33385
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
32598
33386
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
33387
|
+
/**
|
|
33388
|
+
* Default value for the input.
|
|
33389
|
+
*/
|
|
33390
|
+
this.defaultValue = '';
|
|
33391
|
+
/**
|
|
33392
|
+
* Client custom styling via inline style
|
|
33393
|
+
*/
|
|
33394
|
+
this.clientStyling = '';
|
|
33395
|
+
this.limitStylingAppends = false;
|
|
33396
|
+
this.showTooltip = false;
|
|
33397
|
+
this.value = '';
|
|
32599
33398
|
this.touched = false;
|
|
32600
33399
|
this.originalValid = false;
|
|
32601
33400
|
this.validationPattern = '';
|
|
@@ -32634,24 +33433,6 @@ const PasswordInput = class {
|
|
|
32634
33433
|
sheet.innerHTML = this.clientStyling;
|
|
32635
33434
|
this.stylingContainer.prepend(sheet);
|
|
32636
33435
|
};
|
|
32637
|
-
this.name = undefined;
|
|
32638
|
-
this.displayName = undefined;
|
|
32639
|
-
this.placeholder = undefined;
|
|
32640
|
-
this.defaultValue = '';
|
|
32641
|
-
this.autofilled = undefined;
|
|
32642
|
-
this.tooltip = undefined;
|
|
32643
|
-
this.validation = undefined;
|
|
32644
|
-
this.language = undefined;
|
|
32645
|
-
this.emitValue = undefined;
|
|
32646
|
-
this.isDuplicateInput = undefined;
|
|
32647
|
-
this.clientStyling = '';
|
|
32648
|
-
this.isValid = undefined;
|
|
32649
|
-
this.errorMessage = undefined;
|
|
32650
|
-
this.limitStylingAppends = false;
|
|
32651
|
-
this.showTooltip = false;
|
|
32652
|
-
this.passwordComplexity = undefined;
|
|
32653
|
-
this.showPopup = undefined;
|
|
32654
|
-
this.value = '';
|
|
32655
33436
|
}
|
|
32656
33437
|
validityChanged() {
|
|
32657
33438
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -32793,7 +33574,7 @@ const PasswordInput = class {
|
|
|
32793
33574
|
}
|
|
32794
33575
|
renderTooltip() {
|
|
32795
33576
|
if (this.showTooltip) {
|
|
32796
|
-
return (h$
|
|
33577
|
+
return (h$a("div", { class: `password__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
32797
33578
|
}
|
|
32798
33579
|
return null;
|
|
32799
33580
|
}
|
|
@@ -32802,8 +33583,8 @@ const PasswordInput = class {
|
|
|
32802
33583
|
const passedRules = this.passwordComplexity.filter(complexity => complexity.passed).length;
|
|
32803
33584
|
const meterValue = passedRules / totalRules;
|
|
32804
33585
|
const allRulesPassed = this.passwordComplexity.every(complexity => complexity.passed);
|
|
32805
|
-
return (h$
|
|
32806
|
-
return (h$
|
|
33586
|
+
return (h$a("div", { class: `password__complexity ${!this.showPopup ? 'password__complexity--hidden' : ''}` }, h$a("div", { class: 'password__complexity--strength' }, h$a("p", { class: 'password__complexity--text' }, translate$1('passwordStrength', this.language), "\u00A0", h$a("span", { class: 'password__complexity--text-bold' }, translate$1(`${allRulesPassed ? 'passwordStrengthStrong' : 'passwordStrengthWeak'}`, this.language))), h$a("meter", { value: meterValue, min: "0", max: "1" })), h$a("div", null, this.passwordComplexity.map((complexity, index) => {
|
|
33587
|
+
return (h$a("div", { key: index }, h$a("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }), h$a("span", null, translate$1(`${complexity.ruleKey}`, this.language) ? translate$1(`${complexity.ruleKey}`, this.language) : complexity.rule)));
|
|
32807
33588
|
}))));
|
|
32808
33589
|
}
|
|
32809
33590
|
render() {
|
|
@@ -32811,8 +33592,8 @@ const PasswordInput = class {
|
|
|
32811
33592
|
if (this.touched) {
|
|
32812
33593
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
32813
33594
|
}
|
|
32814
|
-
return h$
|
|
32815
|
-
h$
|
|
33595
|
+
return h$a("div", { key: 'c704b51efdf53817beb1541b4794e0b11b490a24', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h$a("div", { key: 'e590afa403084ff95a8735ade400ab81ad16937f', class: 'password__wrapper--flex' }, h$a("label", { key: '9d8db00b59c4b9594538aeacee3ef5a0e678c0e9', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h$a("div", { key: 'bb39f6018cf688fafcd0b5bef91ba079edf09daf', class: 'password__wrapper--relative' }, this.tooltip &&
|
|
33596
|
+
h$a("img", { key: 'd8dbd086da34a8c7db9b5826654530bdb888c927', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h$a("vaadin-password-field", { key: 'ae1c212d663fe379561b1c514087629409196ac3', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), h$a("small", { key: '2fa1e25239a7314399c16b2f897873b7a31e9f77', class: 'password__error-message' }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
|
|
32816
33597
|
}
|
|
32817
33598
|
get element() { return getElement(this); }
|
|
32818
33599
|
static get watchers() { return {
|
|
@@ -32831,23 +33612,17 @@ const RadioInput = class {
|
|
|
32831
33612
|
registerInstance(this, hostRef);
|
|
32832
33613
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
32833
33614
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
33615
|
+
/**
|
|
33616
|
+
* Client custom styling via inline style
|
|
33617
|
+
*/
|
|
33618
|
+
this.clientStyling = '';
|
|
33619
|
+
this.limitStylingAppends = false;
|
|
33620
|
+
this.showTooltip = false;
|
|
32834
33621
|
this.setClientStyling = () => {
|
|
32835
33622
|
let sheet = document.createElement('style');
|
|
32836
33623
|
sheet.innerHTML = this.clientStyling;
|
|
32837
33624
|
this.stylingContainer.prepend(sheet);
|
|
32838
33625
|
};
|
|
32839
|
-
this.name = undefined;
|
|
32840
|
-
this.displayName = undefined;
|
|
32841
|
-
this.optionsGroup = undefined;
|
|
32842
|
-
this.validation = undefined;
|
|
32843
|
-
this.tooltip = undefined;
|
|
32844
|
-
this.language = undefined;
|
|
32845
|
-
this.emitValue = undefined;
|
|
32846
|
-
this.clientStyling = '';
|
|
32847
|
-
this.errorMessage = undefined;
|
|
32848
|
-
this.isValid = undefined;
|
|
32849
|
-
this.limitStylingAppends = false;
|
|
32850
|
-
this.showTooltip = false;
|
|
32851
33626
|
}
|
|
32852
33627
|
validityChanged() {
|
|
32853
33628
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -32897,13 +33672,13 @@ const RadioInput = class {
|
|
|
32897
33672
|
}
|
|
32898
33673
|
renderTooltip() {
|
|
32899
33674
|
if (this.showTooltip) {
|
|
32900
|
-
return (h$
|
|
33675
|
+
return (h$a("div", { class: `radio__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
32901
33676
|
}
|
|
32902
33677
|
return null;
|
|
32903
33678
|
}
|
|
32904
33679
|
render() {
|
|
32905
|
-
return h$
|
|
32906
|
-
h$
|
|
33680
|
+
return h$a("fieldset", { key: '3d90735f7dc8fef6a96dc85b8f9ba22880cb205f', class: `radio__fieldset ${this.name}__input`, ref: el => this.stylingContainer = el }, h$a("legend", { key: '9472ed76f5c7fabb90d2b3d39eeb9e18f05a30dd', class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => h$a("div", { class: 'radio__wrapper' }, h$a("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), h$a("label", { htmlFor: `${option.label}__input` }, option.label))), h$a("small", { key: '2ae0947580bb8a0a3d889a2d9ebd0b82458fdfd2', class: 'radio__error-message' }, this.errorMessage), this.tooltip &&
|
|
33681
|
+
h$a("img", { key: '4f3cbf341f1c559bbdf44ca5d169be7a64d46e97', class: 'radio__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
32907
33682
|
}
|
|
32908
33683
|
static get watchers() { return {
|
|
32909
33684
|
"isValid": ["validityChanged"],
|
|
@@ -32946,7 +33721,7 @@ const addLumoGlobalStyles = (id, ...styles) => {
|
|
|
32946
33721
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
32947
33722
|
*/
|
|
32948
33723
|
|
|
32949
|
-
const fontIcons = i$
|
|
33724
|
+
const fontIcons = i$b`
|
|
32950
33725
|
@font-face {
|
|
32951
33726
|
font-family: 'lumo-icons';
|
|
32952
33727
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB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0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -33009,7 +33784,7 @@ addLumoGlobalStyles('font-icons', fontIcons);
|
|
|
33009
33784
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33010
33785
|
*/
|
|
33011
33786
|
|
|
33012
|
-
const sizing = i$
|
|
33787
|
+
const sizing = i$b`
|
|
33013
33788
|
:host {
|
|
33014
33789
|
--lumo-size-xs: 1.625rem;
|
|
33015
33790
|
--lumo-size-s: 1.875rem;
|
|
@@ -33034,7 +33809,7 @@ addLumoGlobalStyles('sizing-props', sizing);
|
|
|
33034
33809
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33035
33810
|
*/
|
|
33036
33811
|
|
|
33037
|
-
const spacing = i$
|
|
33812
|
+
const spacing = i$b`
|
|
33038
33813
|
:host {
|
|
33039
33814
|
/* Square */
|
|
33040
33815
|
--lumo-space-xs: 0.25rem;
|
|
@@ -33067,7 +33842,7 @@ addLumoGlobalStyles('spacing-props', spacing);
|
|
|
33067
33842
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33068
33843
|
*/
|
|
33069
33844
|
|
|
33070
|
-
const style = i$
|
|
33845
|
+
const style = i$b`
|
|
33071
33846
|
:host {
|
|
33072
33847
|
/* Border radius */
|
|
33073
33848
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -33089,7 +33864,7 @@ const style = i$1`
|
|
|
33089
33864
|
/**
|
|
33090
33865
|
* Default values for component-specific custom properties.
|
|
33091
33866
|
*/
|
|
33092
|
-
i$
|
|
33867
|
+
i$b`
|
|
33093
33868
|
html {
|
|
33094
33869
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
33095
33870
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -33105,7 +33880,7 @@ addLumoGlobalStyles('style-props', style);
|
|
|
33105
33880
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33106
33881
|
*/
|
|
33107
33882
|
|
|
33108
|
-
const font = i$
|
|
33883
|
+
const font = i$b`
|
|
33109
33884
|
:host {
|
|
33110
33885
|
/* prettier-ignore */
|
|
33111
33886
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -33127,7 +33902,7 @@ const font = i$1`
|
|
|
33127
33902
|
}
|
|
33128
33903
|
`;
|
|
33129
33904
|
|
|
33130
|
-
const typography = i$
|
|
33905
|
+
const typography = i$b`
|
|
33131
33906
|
body,
|
|
33132
33907
|
:host {
|
|
33133
33908
|
font-family: var(--lumo-font-family);
|
|
@@ -33224,7 +33999,7 @@ const typography = i$1`
|
|
|
33224
33999
|
registerStyles('', typography, { moduleId: 'lumo-typography' });
|
|
33225
34000
|
addLumoGlobalStyles('typography-props', font);
|
|
33226
34001
|
|
|
33227
|
-
const item = i$
|
|
34002
|
+
const item = i$b`
|
|
33228
34003
|
:host {
|
|
33229
34004
|
display: flex;
|
|
33230
34005
|
align-items: center;
|
|
@@ -33307,7 +34082,7 @@ const item = i$1`
|
|
|
33307
34082
|
|
|
33308
34083
|
registerStyles('vaadin-item', item, { moduleId: 'lumo-item' });
|
|
33309
34084
|
|
|
33310
|
-
const comboBoxItem = i$
|
|
34085
|
+
const comboBoxItem = i$b`
|
|
33311
34086
|
:host {
|
|
33312
34087
|
transition: background-color 100ms;
|
|
33313
34088
|
overflow: hidden;
|
|
@@ -33331,7 +34106,7 @@ registerStyles('vaadin-combo-box-item', [item, comboBoxItem], {
|
|
|
33331
34106
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33332
34107
|
*/
|
|
33333
34108
|
|
|
33334
|
-
const loader = i$
|
|
34109
|
+
const loader = i$b`
|
|
33335
34110
|
[part~='loader'] {
|
|
33336
34111
|
box-sizing: border-box;
|
|
33337
34112
|
width: var(--lumo-icon-size-s);
|
|
@@ -33373,7 +34148,188 @@ const loader = i$1`
|
|
|
33373
34148
|
}
|
|
33374
34149
|
`;
|
|
33375
34150
|
|
|
33376
|
-
|
|
34151
|
+
/**
|
|
34152
|
+
* @license
|
|
34153
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34154
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34155
|
+
*/
|
|
34156
|
+
|
|
34157
|
+
const overlay = i$b`
|
|
34158
|
+
:host {
|
|
34159
|
+
top: var(--lumo-space-m);
|
|
34160
|
+
right: var(--lumo-space-m);
|
|
34161
|
+
bottom: var(--lumo-space-m);
|
|
34162
|
+
left: var(--lumo-space-m);
|
|
34163
|
+
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
34164
|
+
/* stylelint-disable-next-line */
|
|
34165
|
+
outline: 0px solid transparent;
|
|
34166
|
+
}
|
|
34167
|
+
|
|
34168
|
+
[part='overlay'] {
|
|
34169
|
+
background-color: var(--lumo-base-color);
|
|
34170
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
34171
|
+
border-radius: var(--lumo-border-radius-m);
|
|
34172
|
+
box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
|
|
34173
|
+
color: var(--lumo-body-text-color);
|
|
34174
|
+
font-family: var(--lumo-font-family);
|
|
34175
|
+
font-size: var(--lumo-font-size-m);
|
|
34176
|
+
font-weight: 400;
|
|
34177
|
+
line-height: var(--lumo-line-height-m);
|
|
34178
|
+
letter-spacing: 0;
|
|
34179
|
+
text-transform: none;
|
|
34180
|
+
-webkit-text-size-adjust: 100%;
|
|
34181
|
+
-webkit-font-smoothing: antialiased;
|
|
34182
|
+
-moz-osx-font-smoothing: grayscale;
|
|
34183
|
+
}
|
|
34184
|
+
|
|
34185
|
+
[part='content'] {
|
|
34186
|
+
padding: var(--lumo-space-xs);
|
|
34187
|
+
}
|
|
34188
|
+
|
|
34189
|
+
[part='backdrop'] {
|
|
34190
|
+
background-color: var(--lumo-shade-20pct);
|
|
34191
|
+
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
34192
|
+
will-change: opacity;
|
|
34193
|
+
}
|
|
34194
|
+
|
|
34195
|
+
@keyframes lumo-overlay-backdrop-enter {
|
|
34196
|
+
0% {
|
|
34197
|
+
opacity: 0;
|
|
34198
|
+
}
|
|
34199
|
+
}
|
|
34200
|
+
|
|
34201
|
+
:host([closing]) [part='backdrop'] {
|
|
34202
|
+
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
34203
|
+
}
|
|
34204
|
+
|
|
34205
|
+
@keyframes lumo-overlay-backdrop-exit {
|
|
34206
|
+
100% {
|
|
34207
|
+
opacity: 0;
|
|
34208
|
+
}
|
|
34209
|
+
}
|
|
34210
|
+
|
|
34211
|
+
@keyframes lumo-overlay-dummy-animation {
|
|
34212
|
+
0% {
|
|
34213
|
+
opacity: 1;
|
|
34214
|
+
}
|
|
34215
|
+
|
|
34216
|
+
100% {
|
|
34217
|
+
opacity: 1;
|
|
34218
|
+
}
|
|
34219
|
+
}
|
|
34220
|
+
`;
|
|
34221
|
+
|
|
34222
|
+
registerStyles('', overlay, { moduleId: 'lumo-overlay' });
|
|
34223
|
+
|
|
34224
|
+
/**
|
|
34225
|
+
* @license
|
|
34226
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34227
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34228
|
+
*/
|
|
34229
|
+
|
|
34230
|
+
const menuOverlayCore = i$b`
|
|
34231
|
+
:host([opening]),
|
|
34232
|
+
:host([closing]) {
|
|
34233
|
+
animation: 0.14s lumo-overlay-dummy-animation;
|
|
34234
|
+
}
|
|
34235
|
+
|
|
34236
|
+
[part='overlay'] {
|
|
34237
|
+
will-change: opacity, transform;
|
|
34238
|
+
}
|
|
34239
|
+
|
|
34240
|
+
:host([opening]) [part='overlay'] {
|
|
34241
|
+
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
34242
|
+
}
|
|
34243
|
+
|
|
34244
|
+
@keyframes lumo-menu-overlay-enter {
|
|
34245
|
+
0% {
|
|
34246
|
+
opacity: 0;
|
|
34247
|
+
transform: translateY(-4px);
|
|
34248
|
+
}
|
|
34249
|
+
}
|
|
34250
|
+
|
|
34251
|
+
:host([closing]) [part='overlay'] {
|
|
34252
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
34253
|
+
}
|
|
34254
|
+
|
|
34255
|
+
@keyframes lumo-menu-overlay-exit {
|
|
34256
|
+
100% {
|
|
34257
|
+
opacity: 0;
|
|
34258
|
+
}
|
|
34259
|
+
}
|
|
34260
|
+
`;
|
|
34261
|
+
|
|
34262
|
+
registerStyles('', menuOverlayCore, { moduleId: 'lumo-menu-overlay-core' });
|
|
34263
|
+
|
|
34264
|
+
const menuOverlayExt = i$b`
|
|
34265
|
+
/* Small viewport (bottom sheet) styles */
|
|
34266
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
34267
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
34268
|
+
:host {
|
|
34269
|
+
top: 0 !important;
|
|
34270
|
+
right: 0 !important;
|
|
34271
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
34272
|
+
left: 0 !important;
|
|
34273
|
+
align-items: stretch !important;
|
|
34274
|
+
justify-content: flex-end !important;
|
|
34275
|
+
}
|
|
34276
|
+
|
|
34277
|
+
[part='overlay'] {
|
|
34278
|
+
max-height: 50vh;
|
|
34279
|
+
width: 100vw;
|
|
34280
|
+
border-radius: 0;
|
|
34281
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
34282
|
+
}
|
|
34283
|
+
|
|
34284
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
34285
|
+
[part='content'] {
|
|
34286
|
+
padding: 30px var(--lumo-space-m);
|
|
34287
|
+
max-height: inherit;
|
|
34288
|
+
box-sizing: border-box;
|
|
34289
|
+
-webkit-overflow-scrolling: touch;
|
|
34290
|
+
overflow: auto;
|
|
34291
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
34292
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
34293
|
+
}
|
|
34294
|
+
|
|
34295
|
+
[part='backdrop'] {
|
|
34296
|
+
display: block;
|
|
34297
|
+
}
|
|
34298
|
+
|
|
34299
|
+
/* Animations */
|
|
34300
|
+
|
|
34301
|
+
:host([opening]) [part='overlay'] {
|
|
34302
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
34303
|
+
}
|
|
34304
|
+
|
|
34305
|
+
:host([closing]),
|
|
34306
|
+
:host([closing]) [part='backdrop'] {
|
|
34307
|
+
animation-delay: 0.14s;
|
|
34308
|
+
}
|
|
34309
|
+
|
|
34310
|
+
:host([closing]) [part='overlay'] {
|
|
34311
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
34312
|
+
}
|
|
34313
|
+
}
|
|
34314
|
+
|
|
34315
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
34316
|
+
0% {
|
|
34317
|
+
transform: translateY(150%);
|
|
34318
|
+
}
|
|
34319
|
+
}
|
|
34320
|
+
|
|
34321
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
34322
|
+
100% {
|
|
34323
|
+
transform: translateY(150%);
|
|
34324
|
+
}
|
|
34325
|
+
}
|
|
34326
|
+
`;
|
|
34327
|
+
|
|
34328
|
+
const menuOverlay = [overlay, menuOverlayCore, menuOverlayExt];
|
|
34329
|
+
|
|
34330
|
+
registerStyles('', menuOverlay, { moduleId: 'lumo-menu-overlay' });
|
|
34331
|
+
|
|
34332
|
+
const comboBoxOverlay = i$b`
|
|
33377
34333
|
[part='content'] {
|
|
33378
34334
|
padding: 0;
|
|
33379
34335
|
}
|
|
@@ -33396,7 +34352,7 @@ const comboBoxOverlay = i$1`
|
|
|
33396
34352
|
}
|
|
33397
34353
|
`;
|
|
33398
34354
|
|
|
33399
|
-
const comboBoxLoader = i$
|
|
34355
|
+
const comboBoxLoader = i$b`
|
|
33400
34356
|
[part~='loader'] {
|
|
33401
34357
|
position: absolute;
|
|
33402
34358
|
z-index: 1;
|
|
@@ -33425,7 +34381,7 @@ registerStyles(
|
|
|
33425
34381
|
comboBoxOverlay,
|
|
33426
34382
|
loader,
|
|
33427
34383
|
comboBoxLoader,
|
|
33428
|
-
i$
|
|
34384
|
+
i$b`
|
|
33429
34385
|
:host {
|
|
33430
34386
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
33431
34387
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
@@ -33435,7 +34391,191 @@ registerStyles(
|
|
|
33435
34391
|
{ moduleId: 'lumo-combo-box-overlay' },
|
|
33436
34392
|
);
|
|
33437
34393
|
|
|
33438
|
-
|
|
34394
|
+
/**
|
|
34395
|
+
* @license
|
|
34396
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34397
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34398
|
+
*/
|
|
34399
|
+
|
|
34400
|
+
const fieldButton = i$b`
|
|
34401
|
+
[part$='button'] {
|
|
34402
|
+
flex: none;
|
|
34403
|
+
width: 1em;
|
|
34404
|
+
height: 1em;
|
|
34405
|
+
line-height: 1;
|
|
34406
|
+
font-size: var(--lumo-icon-size-m);
|
|
34407
|
+
text-align: center;
|
|
34408
|
+
color: var(--lumo-contrast-60pct);
|
|
34409
|
+
transition: 0.2s color;
|
|
34410
|
+
cursor: var(--lumo-clickable-cursor);
|
|
34411
|
+
}
|
|
34412
|
+
|
|
34413
|
+
[part$='button']:hover {
|
|
34414
|
+
color: var(--lumo-contrast-90pct);
|
|
34415
|
+
}
|
|
34416
|
+
|
|
34417
|
+
:host([disabled]) [part$='button'],
|
|
34418
|
+
:host([readonly]) [part$='button'] {
|
|
34419
|
+
color: var(--lumo-contrast-20pct);
|
|
34420
|
+
cursor: default;
|
|
34421
|
+
}
|
|
34422
|
+
|
|
34423
|
+
[part$='button']::before {
|
|
34424
|
+
font-family: 'lumo-icons';
|
|
34425
|
+
display: block;
|
|
34426
|
+
}
|
|
34427
|
+
`;
|
|
34428
|
+
registerStyles('', fieldButton, { moduleId: 'lumo-field-button' });
|
|
34429
|
+
|
|
34430
|
+
/**
|
|
34431
|
+
* @license
|
|
34432
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34433
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34434
|
+
*/
|
|
34435
|
+
|
|
34436
|
+
const inputField = i$b`
|
|
34437
|
+
:host {
|
|
34438
|
+
--lumo-text-field-size: var(--lumo-size-m);
|
|
34439
|
+
color: var(--lumo-body-text-color);
|
|
34440
|
+
font-size: var(--lumo-font-size-m);
|
|
34441
|
+
font-family: var(--lumo-font-family);
|
|
34442
|
+
-webkit-font-smoothing: antialiased;
|
|
34443
|
+
-moz-osx-font-smoothing: grayscale;
|
|
34444
|
+
-webkit-tap-highlight-color: transparent;
|
|
34445
|
+
padding: var(--lumo-space-xs) 0;
|
|
34446
|
+
}
|
|
34447
|
+
|
|
34448
|
+
:host::before {
|
|
34449
|
+
height: var(--lumo-text-field-size);
|
|
34450
|
+
box-sizing: border-box;
|
|
34451
|
+
display: inline-flex;
|
|
34452
|
+
align-items: center;
|
|
34453
|
+
}
|
|
34454
|
+
|
|
34455
|
+
:host([focused]:not([readonly])) [part='label'] {
|
|
34456
|
+
color: var(--lumo-primary-text-color);
|
|
34457
|
+
}
|
|
34458
|
+
|
|
34459
|
+
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
34460
|
+
-webkit-mask-image: none;
|
|
34461
|
+
mask-image: none;
|
|
34462
|
+
}
|
|
34463
|
+
|
|
34464
|
+
::slotted(:is(input, textarea):placeholder-shown) {
|
|
34465
|
+
color: var(--lumo-secondary-text-color);
|
|
34466
|
+
}
|
|
34467
|
+
|
|
34468
|
+
/* Hover */
|
|
34469
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
34470
|
+
color: var(--lumo-body-text-color);
|
|
34471
|
+
}
|
|
34472
|
+
|
|
34473
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
34474
|
+
opacity: 0.1;
|
|
34475
|
+
}
|
|
34476
|
+
|
|
34477
|
+
/* Touch device adjustment */
|
|
34478
|
+
@media (pointer: coarse) {
|
|
34479
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
34480
|
+
color: var(--lumo-secondary-text-color);
|
|
34481
|
+
}
|
|
34482
|
+
|
|
34483
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
34484
|
+
opacity: 0;
|
|
34485
|
+
}
|
|
34486
|
+
|
|
34487
|
+
:host(:active:not([readonly]):not([focused])) [part='input-field']::after {
|
|
34488
|
+
opacity: 0.2;
|
|
34489
|
+
}
|
|
34490
|
+
}
|
|
34491
|
+
|
|
34492
|
+
/* Trigger when not focusing using the keyboard */
|
|
34493
|
+
:host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
|
|
34494
|
+
transform: scaleX(0);
|
|
34495
|
+
transition-duration: 0.15s, 1s;
|
|
34496
|
+
}
|
|
34497
|
+
|
|
34498
|
+
/* Focus-ring */
|
|
34499
|
+
:host([focus-ring]) [part='input-field'] {
|
|
34500
|
+
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
34501
|
+
}
|
|
34502
|
+
|
|
34503
|
+
/* Read-only and disabled */
|
|
34504
|
+
:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
34505
|
+
opacity: 0;
|
|
34506
|
+
}
|
|
34507
|
+
|
|
34508
|
+
/* Read-only style */
|
|
34509
|
+
:host([readonly]) {
|
|
34510
|
+
--vaadin-input-field-border-color: transparent;
|
|
34511
|
+
}
|
|
34512
|
+
|
|
34513
|
+
/* Disabled style */
|
|
34514
|
+
:host([disabled]) {
|
|
34515
|
+
pointer-events: none;
|
|
34516
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
34517
|
+
}
|
|
34518
|
+
|
|
34519
|
+
:host([disabled]) [part='label'],
|
|
34520
|
+
:host([disabled]) [part='input-field'] ::slotted(*) {
|
|
34521
|
+
color: var(--lumo-disabled-text-color);
|
|
34522
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
34523
|
+
}
|
|
34524
|
+
|
|
34525
|
+
/* Invalid style */
|
|
34526
|
+
:host([invalid]) {
|
|
34527
|
+
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
34528
|
+
}
|
|
34529
|
+
|
|
34530
|
+
:host([invalid][focus-ring]) [part='input-field'] {
|
|
34531
|
+
box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
|
|
34532
|
+
}
|
|
34533
|
+
|
|
34534
|
+
:host([input-prevented]) [part='input-field'] {
|
|
34535
|
+
animation: shake 0.15s infinite;
|
|
34536
|
+
}
|
|
34537
|
+
|
|
34538
|
+
@keyframes shake {
|
|
34539
|
+
25% {
|
|
34540
|
+
transform: translateX(4px);
|
|
34541
|
+
}
|
|
34542
|
+
75% {
|
|
34543
|
+
transform: translateX(-4px);
|
|
34544
|
+
}
|
|
34545
|
+
}
|
|
34546
|
+
|
|
34547
|
+
/* Small theme */
|
|
34548
|
+
:host([theme~='small']) {
|
|
34549
|
+
font-size: var(--lumo-font-size-s);
|
|
34550
|
+
--lumo-text-field-size: var(--lumo-size-s);
|
|
34551
|
+
}
|
|
34552
|
+
|
|
34553
|
+
:host([theme~='small']) [part='label'] {
|
|
34554
|
+
font-size: var(--lumo-font-size-xs);
|
|
34555
|
+
}
|
|
34556
|
+
|
|
34557
|
+
:host([theme~='small']) [part='error-message'] {
|
|
34558
|
+
font-size: var(--lumo-font-size-xxs);
|
|
34559
|
+
}
|
|
34560
|
+
|
|
34561
|
+
/* Slotted content */
|
|
34562
|
+
[part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
|
|
34563
|
+
color: var(--lumo-secondary-text-color);
|
|
34564
|
+
font-weight: 400;
|
|
34565
|
+
}
|
|
34566
|
+
|
|
34567
|
+
[part='clear-button']::before {
|
|
34568
|
+
content: var(--lumo-icons-cross);
|
|
34569
|
+
}
|
|
34570
|
+
`;
|
|
34571
|
+
|
|
34572
|
+
const inputFieldShared = [requiredField$2, fieldButton, helper$2, inputField];
|
|
34573
|
+
|
|
34574
|
+
registerStyles('', inputFieldShared, {
|
|
34575
|
+
moduleId: 'lumo-input-field-shared-styles',
|
|
34576
|
+
});
|
|
34577
|
+
|
|
34578
|
+
const comboBox = i$b`
|
|
33439
34579
|
:host {
|
|
33440
34580
|
outline: none;
|
|
33441
34581
|
}
|
|
@@ -33445,7 +34585,7 @@ const comboBox = i$1`
|
|
|
33445
34585
|
}
|
|
33446
34586
|
`;
|
|
33447
34587
|
|
|
33448
|
-
registerStyles('vaadin-combo-box', [inputFieldShared
|
|
34588
|
+
registerStyles('vaadin-combo-box', [inputFieldShared, comboBox], { moduleId: 'lumo-combo-box' });
|
|
33449
34589
|
|
|
33450
34590
|
/**
|
|
33451
34591
|
* @license
|
|
@@ -33721,7 +34861,7 @@ const ComboBoxOverlayMixin = (superClass) =>
|
|
|
33721
34861
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33722
34862
|
*/
|
|
33723
34863
|
|
|
33724
|
-
const comboBoxOverlayStyles = i$
|
|
34864
|
+
const comboBoxOverlayStyles = i$b`
|
|
33725
34865
|
#overlay {
|
|
33726
34866
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
33727
34867
|
}
|
|
@@ -37466,7 +38606,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
37466
38606
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
37467
38607
|
*/
|
|
37468
38608
|
|
|
37469
|
-
registerStyles('vaadin-combo-box', inputFieldShared$
|
|
38609
|
+
registerStyles('vaadin-combo-box', inputFieldShared$2, { moduleId: 'vaadin-combo-box-styles' });
|
|
37470
38610
|
|
|
37471
38611
|
/**
|
|
37472
38612
|
* `<vaadin-combo-box>` is a web component for choosing a value from a filterable list of options
|
|
@@ -37741,6 +38881,20 @@ const SelectInput = class {
|
|
|
37741
38881
|
registerInstance(this, hostRef);
|
|
37742
38882
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
37743
38883
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
38884
|
+
/**
|
|
38885
|
+
* Default value for the input.
|
|
38886
|
+
*/
|
|
38887
|
+
this.defaultValue = '';
|
|
38888
|
+
/**
|
|
38889
|
+
* Options of the input.
|
|
38890
|
+
*/
|
|
38891
|
+
this.options = [];
|
|
38892
|
+
/**
|
|
38893
|
+
* Client custom styling via inline style
|
|
38894
|
+
*/
|
|
38895
|
+
this.clientStyling = '';
|
|
38896
|
+
this.limitStylingAppends = false;
|
|
38897
|
+
this.showTooltip = false;
|
|
37744
38898
|
this.touched = false;
|
|
37745
38899
|
this.handleChange = (event) => {
|
|
37746
38900
|
this.touched = true;
|
|
@@ -37769,22 +38923,6 @@ const SelectInput = class {
|
|
|
37769
38923
|
sheet.innerHTML = this.clientStyling;
|
|
37770
38924
|
this.stylingContainer.prepend(sheet);
|
|
37771
38925
|
};
|
|
37772
|
-
this.name = undefined;
|
|
37773
|
-
this.displayName = undefined;
|
|
37774
|
-
this.placeholder = undefined;
|
|
37775
|
-
this.action = undefined;
|
|
37776
|
-
this.defaultValue = '';
|
|
37777
|
-
this.autofilled = undefined;
|
|
37778
|
-
this.tooltip = undefined;
|
|
37779
|
-
this.options = [];
|
|
37780
|
-
this.validation = undefined;
|
|
37781
|
-
this.language = undefined;
|
|
37782
|
-
this.emitValue = undefined;
|
|
37783
|
-
this.clientStyling = '';
|
|
37784
|
-
this.errorMessage = undefined;
|
|
37785
|
-
this.isValid = undefined;
|
|
37786
|
-
this.limitStylingAppends = false;
|
|
37787
|
-
this.showTooltip = false;
|
|
37788
38926
|
}
|
|
37789
38927
|
validityChanged() {
|
|
37790
38928
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -37868,7 +39006,7 @@ const SelectInput = class {
|
|
|
37868
39006
|
}
|
|
37869
39007
|
renderTooltip() {
|
|
37870
39008
|
if (this.showTooltip) {
|
|
37871
|
-
return (h$
|
|
39009
|
+
return (h$a("div", { class: `select__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
37872
39010
|
}
|
|
37873
39011
|
return null;
|
|
37874
39012
|
}
|
|
@@ -37877,8 +39015,8 @@ const SelectInput = class {
|
|
|
37877
39015
|
if (this.touched) {
|
|
37878
39016
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
37879
39017
|
}
|
|
37880
|
-
return h$
|
|
37881
|
-
h$
|
|
39018
|
+
return h$a("div", { key: '3d298b9709617233adacd88b8acb7d6298d35627', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h$a("div", { key: '9ba53148a200b925da11ad0dea5589e9634ffb03', class: 'select__wrapper--flex' }, h$a("label", { key: 'eb2fa2233926ada4da750e47304325d0d7ea3985', class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`), h$a("div", { key: '3cbe968f9a7c612d0b8d0517621a933cccd1bd58', class: 'select__wrapper--relative' }, this.tooltip &&
|
|
39019
|
+
h$a("img", { key: '9fa9be645ed72897a95705b0e17b3aee855eb6d4', class: 'select__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h$a("vaadin-combo-box", { key: 'f596a5fa5b480791080dfa63359ed30eeabfaa02', name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleChange, onBlur: this.handleBlur }), h$a("small", { key: 'a9c652406489ba1d23497c55aa14e7b67fa701bd', class: 'select__error-message' }, this.errorMessage));
|
|
37882
39020
|
}
|
|
37883
39021
|
get element() { return getElement(this); }
|
|
37884
39022
|
static get watchers() { return {
|
|
@@ -37896,6 +39034,12 @@ const TelInput = class {
|
|
|
37896
39034
|
registerInstance(this, hostRef);
|
|
37897
39035
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
37898
39036
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
39037
|
+
/**
|
|
39038
|
+
* Client custom styling via inline style
|
|
39039
|
+
*/
|
|
39040
|
+
this.clientStyling = '';
|
|
39041
|
+
this.limitStylingAppends = false;
|
|
39042
|
+
this.showTooltip = false;
|
|
37899
39043
|
this.validationPattern = '';
|
|
37900
39044
|
this.touched = false;
|
|
37901
39045
|
this.handleInput = (event) => {
|
|
@@ -37921,22 +39065,6 @@ const TelInput = class {
|
|
|
37921
39065
|
sheet.innerHTML = this.clientStyling;
|
|
37922
39066
|
this.stylingContainer.prepend(sheet);
|
|
37923
39067
|
};
|
|
37924
|
-
this.name = undefined;
|
|
37925
|
-
this.displayName = undefined;
|
|
37926
|
-
this.placeholder = undefined;
|
|
37927
|
-
this.showLabels = undefined;
|
|
37928
|
-
this.action = undefined;
|
|
37929
|
-
this.validation = undefined;
|
|
37930
|
-
this.defaultValue = undefined;
|
|
37931
|
-
this.autofilled = undefined;
|
|
37932
|
-
this.tooltip = undefined;
|
|
37933
|
-
this.language = undefined;
|
|
37934
|
-
this.emitValue = undefined;
|
|
37935
|
-
this.clientStyling = '';
|
|
37936
|
-
this.isValid = undefined;
|
|
37937
|
-
this.errorMessage = undefined;
|
|
37938
|
-
this.limitStylingAppends = false;
|
|
37939
|
-
this.showTooltip = false;
|
|
37940
39068
|
}
|
|
37941
39069
|
validityChanged() {
|
|
37942
39070
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -38039,7 +39167,7 @@ const TelInput = class {
|
|
|
38039
39167
|
}
|
|
38040
39168
|
renderTooltip() {
|
|
38041
39169
|
if (this.showTooltip) {
|
|
38042
|
-
return (h$
|
|
39170
|
+
return (h$a("div", { class: `tel__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
38043
39171
|
}
|
|
38044
39172
|
return null;
|
|
38045
39173
|
}
|
|
@@ -38048,8 +39176,8 @@ const TelInput = class {
|
|
|
38048
39176
|
if (this.touched) {
|
|
38049
39177
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
38050
39178
|
}
|
|
38051
|
-
return h$
|
|
38052
|
-
h$
|
|
39179
|
+
return h$a("div", { key: '5febd36c339710683111039d477196daac87853c', class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h$a("div", { key: 'fb779beee03992b23478ffcaac85095420048ceb', class: 'tel__wrapper--flex-label' }, h$a("label", { key: '5b69271c1c8bf403a003d765adb40a553e09466e', class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h$a("div", { key: '040c487308231459fc92eba2e643a80639df09d6', class: 'tel__wrapper--relative' }, this.tooltip &&
|
|
39180
|
+
h$a("img", { key: '91efd4656c718c75e5047413daf10c22c37e8f93', class: 'tel__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h$a("div", { key: '6215f80b6bccb3dfb03dbbc485c850725633627c', class: `tel__wrapper--flex ${invalidClass}` }, h$a("vaadin-combo-box", { key: '3b7b1ef3415619c51d74f5fc7c5e034acb8f037f', class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.handlePrefixInput(e) }), h$a("input", { key: '886553206896c367ba96f015d81b44ea86f741ea', type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), h$a("small", { key: 'd4c88d386c3342c789527d925e9cd061494b785c', class: 'tel__error-message' }, this.errorMessage));
|
|
38053
39181
|
}
|
|
38054
39182
|
static get watchers() { return {
|
|
38055
39183
|
"isValid": ["validityChanged"],
|
|
@@ -38066,6 +39194,17 @@ const TextInput = class {
|
|
|
38066
39194
|
registerInstance(this, hostRef);
|
|
38067
39195
|
this.sendValidityState = createEvent(this, "sendValidityState", 7);
|
|
38068
39196
|
this.sendInputValue = createEvent(this, "sendInputValue", 7);
|
|
39197
|
+
/**
|
|
39198
|
+
* Default value for the input.
|
|
39199
|
+
*/
|
|
39200
|
+
this.defaultValue = '';
|
|
39201
|
+
/**
|
|
39202
|
+
* Client custom styling via inline style
|
|
39203
|
+
*/
|
|
39204
|
+
this.clientStyling = '';
|
|
39205
|
+
this.errorMessage = '';
|
|
39206
|
+
this.limitStylingAppends = false;
|
|
39207
|
+
this.showTooltip = false;
|
|
38069
39208
|
this.value = '';
|
|
38070
39209
|
this.validationPattern = '';
|
|
38071
39210
|
this.duplicateInputValue = null;
|
|
@@ -38095,22 +39234,6 @@ const TextInput = class {
|
|
|
38095
39234
|
sheet.innerHTML = this.clientStyling;
|
|
38096
39235
|
this.stylingContainer.prepend(sheet);
|
|
38097
39236
|
};
|
|
38098
|
-
this.name = undefined;
|
|
38099
|
-
this.displayName = undefined;
|
|
38100
|
-
this.placeholder = undefined;
|
|
38101
|
-
this.validation = undefined;
|
|
38102
|
-
this.defaultValue = '';
|
|
38103
|
-
this.autofilled = undefined;
|
|
38104
|
-
this.tooltip = undefined;
|
|
38105
|
-
this.language = undefined;
|
|
38106
|
-
this.checkValidity = undefined;
|
|
38107
|
-
this.emitValue = undefined;
|
|
38108
|
-
this.isDuplicateInput = undefined;
|
|
38109
|
-
this.clientStyling = '';
|
|
38110
|
-
this.isValid = undefined;
|
|
38111
|
-
this.errorMessage = '';
|
|
38112
|
-
this.limitStylingAppends = false;
|
|
38113
|
-
this.showTooltip = false;
|
|
38114
39237
|
}
|
|
38115
39238
|
validityChanged() {
|
|
38116
39239
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -38208,7 +39331,7 @@ const TextInput = class {
|
|
|
38208
39331
|
}
|
|
38209
39332
|
renderTooltip() {
|
|
38210
39333
|
if (this.showTooltip) {
|
|
38211
|
-
return (h$
|
|
39334
|
+
return (h$a("div", { class: `text__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
38212
39335
|
}
|
|
38213
39336
|
return null;
|
|
38214
39337
|
}
|
|
@@ -38217,8 +39340,8 @@ const TextInput = class {
|
|
|
38217
39340
|
if (this.touched) {
|
|
38218
39341
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
38219
39342
|
}
|
|
38220
|
-
return h$
|
|
38221
|
-
h$
|
|
39343
|
+
return h$a("div", { key: 'bfb803110a70b89dd484e993c204b572f0115a17', class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el }, h$a("div", { key: '6e9f8f5aada98821d5dc78ccb8b1431ba23b81ab', class: 'text__wrapper--flex' }, h$a("label", { key: '05cf07855121a79641475a5b020774cf8120d1ed', class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h$a("div", { key: 'f8c48a999f6827a61ec392ce99858c19559c77d2', class: 'text__wrapper--relative' }, this.tooltip &&
|
|
39344
|
+
h$a("img", { key: 'e866f1df104ce57c29164e73b4ad4d017c7201cd', class: 'text__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h$a("input", { key: 'd761c265b1487fe73af54568b6da7fed82656b8d', name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), h$a("small", { key: '5c8df34dd47959eb1668cdf389524d145c69fa84', class: 'text__error-message' }, this.errorMessage));
|
|
38222
39345
|
}
|
|
38223
39346
|
static get watchers() { return {
|
|
38224
39347
|
"isValid": ["validityChanged"],
|