@everymatrix/general-registration 1.53.0 → 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_14.cjs.entry.js → checkbox-group-input_13.cjs.entry.js} +1820 -991
- package/dist/cjs/general-registration.cjs.js +3 -3
- package/dist/cjs/{index-e11c50f2.js → index-ed891a0d.js} +177 -80
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -7
- package/dist/collection/components/general-registration/general-registration.js +50 -21
- package/dist/esm/{checkbox-group-input_14.entry.js → checkbox-group-input_13.entry.js} +1868 -1038
- package/dist/esm/general-registration.js +4 -4
- package/dist/esm/{index-a3724f84.js → index-d069ae9e.js} +177 -80
- package/dist/esm/loader.js +3 -3
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/p-30224c7b.js +2 -0
- package/dist/general-registration/{p-0925f5f9.entry.js → p-a04c166c.entry.js} +1878 -892
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/general-registration/general-registration.d.ts +1 -1
- package/package.json +1 -1
- package/dist/general-registration/p-0095c1dc.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +0 -0
package/dist/cjs/{checkbox-group-input_14.cjs.entry.js → checkbox-group-input_13.cjs.entry.js}
RENAMED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ed891a0d.js');
|
|
6
|
+
require('@everymatrix/player-consents/dist');
|
|
6
7
|
|
|
7
|
-
const DEFAULT_LANGUAGE$
|
|
8
|
-
const TRANSLATIONS$
|
|
8
|
+
const DEFAULT_LANGUAGE$1 = 'en';
|
|
9
|
+
const TRANSLATIONS$1 = {
|
|
9
10
|
"en": {
|
|
10
11
|
"dateError": "The selected date should be between {min} and {max}",
|
|
11
12
|
"dateError2": "The selected date is not within the accepted range",
|
|
@@ -126,9 +127,9 @@ const TRANSLATIONS$2 = {
|
|
|
126
127
|
"InvalidFieldSize": "La longitud debe ser exactamente de 11 dígitos."
|
|
127
128
|
}
|
|
128
129
|
};
|
|
129
|
-
const translate$
|
|
130
|
+
const translate$2 = (key, customLang, values) => {
|
|
130
131
|
const lang = customLang;
|
|
131
|
-
let translation = TRANSLATIONS$
|
|
132
|
+
let translation = TRANSLATIONS$1[lang !== undefined ? lang : DEFAULT_LANGUAGE$1][key];
|
|
132
133
|
if (values !== undefined) {
|
|
133
134
|
for (const [key, value] of Object.entries(values.values)) {
|
|
134
135
|
const regex = new RegExp(`{${key}}`, 'g');
|
|
@@ -137,7 +138,7 @@ const translate$3 = (key, customLang, values) => {
|
|
|
137
138
|
}
|
|
138
139
|
return translation;
|
|
139
140
|
};
|
|
140
|
-
const getTranslations$
|
|
141
|
+
const getTranslations$1 = (url) => {
|
|
141
142
|
// fetch url, get the data, replace the TRANSLATIONS content
|
|
142
143
|
return new Promise((resolve) => {
|
|
143
144
|
fetch(url)
|
|
@@ -145,7 +146,7 @@ const getTranslations$2 = (url) => {
|
|
|
145
146
|
.then((data) => {
|
|
146
147
|
Object.keys(data).forEach((item) => {
|
|
147
148
|
for (let key in data[item]) {
|
|
148
|
-
TRANSLATIONS$
|
|
149
|
+
TRANSLATIONS$1[item][key] = data[item][key];
|
|
149
150
|
}
|
|
150
151
|
});
|
|
151
152
|
resolve(true);
|
|
@@ -153,7 +154,7 @@ const getTranslations$2 = (url) => {
|
|
|
153
154
|
});
|
|
154
155
|
};
|
|
155
156
|
|
|
156
|
-
const tooltipIconSvg
|
|
157
|
+
const tooltipIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==';
|
|
157
158
|
|
|
158
159
|
/**
|
|
159
160
|
* @license
|
|
@@ -206,26 +207,26 @@ defineCustomElement(Lumo$4);
|
|
|
206
207
|
* Copyright 2019 Google LLC
|
|
207
208
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
208
209
|
*/
|
|
209
|
-
const t$
|
|
210
|
+
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;
|
|
210
211
|
|
|
211
212
|
/**
|
|
212
213
|
* @license
|
|
213
214
|
* Copyright 2017 Google LLC
|
|
214
215
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
215
|
-
*/var s$
|
|
216
|
+
*/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");
|
|
216
217
|
|
|
217
218
|
/**
|
|
218
219
|
* @license
|
|
219
220
|
* Copyright 2017 Google LLC
|
|
220
221
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
221
222
|
*/
|
|
222
|
-
var t;const i=window,s$
|
|
223
|
+
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};
|
|
223
224
|
|
|
224
225
|
/**
|
|
225
226
|
* @license
|
|
226
227
|
* Copyright 2017 Google LLC
|
|
227
228
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
228
|
-
*/var l,o;class s extends u$
|
|
229
|
+
*/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");
|
|
229
230
|
|
|
230
231
|
/**
|
|
231
232
|
* @license
|
|
@@ -324,7 +325,7 @@ function hasThemes(tagName) {
|
|
|
324
325
|
*/
|
|
325
326
|
function flattenStyles(styles = []) {
|
|
326
327
|
return [styles].flat(Infinity).filter((style) => {
|
|
327
|
-
if (style instanceof o$
|
|
328
|
+
if (style instanceof o$i) {
|
|
328
329
|
return true;
|
|
329
330
|
}
|
|
330
331
|
console.warn('An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.');
|
|
@@ -553,7 +554,7 @@ const addLumoGlobalStyles$4 = (id, ...styles) => {
|
|
|
553
554
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
554
555
|
*/
|
|
555
556
|
|
|
556
|
-
const colorBase$3 = i$
|
|
557
|
+
const colorBase$3 = i$b`
|
|
557
558
|
:host {
|
|
558
559
|
/* Base (background) */
|
|
559
560
|
--lumo-base-color: #fff;
|
|
@@ -642,7 +643,7 @@ const colorBase$3 = i$1`
|
|
|
642
643
|
|
|
643
644
|
addLumoGlobalStyles$4('color-props', colorBase$3);
|
|
644
645
|
|
|
645
|
-
const color$3 = i$
|
|
646
|
+
const color$3 = i$b`
|
|
646
647
|
[theme~='dark'] {
|
|
647
648
|
/* Base (background) */
|
|
648
649
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -767,7 +768,7 @@ registerStyles('', color$3, { moduleId: 'lumo-color' });
|
|
|
767
768
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
768
769
|
*/
|
|
769
770
|
|
|
770
|
-
const fontIcons$
|
|
771
|
+
const fontIcons$3 = i$b`
|
|
771
772
|
@font-face {
|
|
772
773
|
font-family: 'lumo-icons';
|
|
773
774
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTE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nCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -822,7 +823,7 @@ const fontIcons$2 = i$1`
|
|
|
822
823
|
}
|
|
823
824
|
`;
|
|
824
825
|
|
|
825
|
-
addLumoGlobalStyles$4('font-icons', fontIcons$
|
|
826
|
+
addLumoGlobalStyles$4('font-icons', fontIcons$3);
|
|
826
827
|
|
|
827
828
|
/**
|
|
828
829
|
* @license
|
|
@@ -830,7 +831,7 @@ addLumoGlobalStyles$4('font-icons', fontIcons$2);
|
|
|
830
831
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
831
832
|
*/
|
|
832
833
|
|
|
833
|
-
const sizing$4 = i$
|
|
834
|
+
const sizing$4 = i$b`
|
|
834
835
|
:host {
|
|
835
836
|
--lumo-size-xs: 1.625rem;
|
|
836
837
|
--lumo-size-s: 1.875rem;
|
|
@@ -855,7 +856,7 @@ addLumoGlobalStyles$4('sizing-props', sizing$4);
|
|
|
855
856
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
856
857
|
*/
|
|
857
858
|
|
|
858
|
-
const spacing$3 = i$
|
|
859
|
+
const spacing$3 = i$b`
|
|
859
860
|
:host {
|
|
860
861
|
/* Square */
|
|
861
862
|
--lumo-space-xs: 0.25rem;
|
|
@@ -888,7 +889,7 @@ addLumoGlobalStyles$4('spacing-props', spacing$3);
|
|
|
888
889
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
889
890
|
*/
|
|
890
891
|
|
|
891
|
-
const style$4 = i$
|
|
892
|
+
const style$4 = i$b`
|
|
892
893
|
:host {
|
|
893
894
|
/* Border radius */
|
|
894
895
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -910,7 +911,7 @@ const style$4 = i$1`
|
|
|
910
911
|
/**
|
|
911
912
|
* Default values for component-specific custom properties.
|
|
912
913
|
*/
|
|
913
|
-
i$
|
|
914
|
+
i$b`
|
|
914
915
|
html {
|
|
915
916
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
916
917
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -926,7 +927,7 @@ addLumoGlobalStyles$4('style-props', style$4);
|
|
|
926
927
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
927
928
|
*/
|
|
928
929
|
|
|
929
|
-
const font$4 = i$
|
|
930
|
+
const font$4 = i$b`
|
|
930
931
|
:host {
|
|
931
932
|
/* prettier-ignore */
|
|
932
933
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -948,7 +949,7 @@ const font$4 = i$1`
|
|
|
948
949
|
}
|
|
949
950
|
`;
|
|
950
951
|
|
|
951
|
-
const typography$4 = i$
|
|
952
|
+
const typography$4 = i$b`
|
|
952
953
|
body,
|
|
953
954
|
:host {
|
|
954
955
|
font-family: var(--lumo-font-family);
|
|
@@ -1047,7 +1048,7 @@ addLumoGlobalStyles$4('typography-props', font$4);
|
|
|
1047
1048
|
|
|
1048
1049
|
registerStyles(
|
|
1049
1050
|
'vaadin-checkbox',
|
|
1050
|
-
i$
|
|
1051
|
+
i$b`
|
|
1051
1052
|
:host {
|
|
1052
1053
|
color: var(--lumo-body-text-color);
|
|
1053
1054
|
font-size: var(--lumo-font-size-m);
|
|
@@ -1978,7 +1979,7 @@ function isDescendant(base, path) {
|
|
|
1978
1979
|
* @param {string} path Path to translate
|
|
1979
1980
|
* @return {string} Translated string
|
|
1980
1981
|
*/
|
|
1981
|
-
function translate$
|
|
1982
|
+
function translate$1(base, newBase, path) {
|
|
1982
1983
|
return newBase + path.slice(base.length);
|
|
1983
1984
|
}
|
|
1984
1985
|
|
|
@@ -4179,7 +4180,7 @@ function handleNotification(event, inst, fromProp, toPath, negate) {
|
|
|
4179
4180
|
let detail = /** @type {Object} */(event.detail);
|
|
4180
4181
|
let fromPath = detail && detail.path;
|
|
4181
4182
|
if (fromPath) {
|
|
4182
|
-
toPath = translate$
|
|
4183
|
+
toPath = translate$1(fromProp, toPath, fromPath);
|
|
4183
4184
|
value = detail && detail.value;
|
|
4184
4185
|
} else {
|
|
4185
4186
|
value = event.currentTarget[fromProp];
|
|
@@ -4465,10 +4466,10 @@ function computeLinkedPaths(inst, path, value) {
|
|
|
4465
4466
|
for (let a in links) {
|
|
4466
4467
|
let b = links[a];
|
|
4467
4468
|
if (isDescendant(a, path)) {
|
|
4468
|
-
link = translate$
|
|
4469
|
+
link = translate$1(a, b, path);
|
|
4469
4470
|
inst._setPendingPropertyOrPath(link, value, true, true);
|
|
4470
4471
|
} else if (isDescendant(b, path)) {
|
|
4471
|
-
link = translate$
|
|
4472
|
+
link = translate$1(b, a, path);
|
|
4472
4473
|
inst._setPendingPropertyOrPath(link, value, true, true);
|
|
4473
4474
|
}
|
|
4474
4475
|
}
|
|
@@ -4580,7 +4581,7 @@ function runBindingEffect(inst, path, props, oldProps, info, hasPaths, nodeList)
|
|
|
4580
4581
|
node.__isPropertyEffectsClient &&
|
|
4581
4582
|
node.__dataHasAccessor && node.__dataHasAccessor[binding.target]) {
|
|
4582
4583
|
let value = props[path];
|
|
4583
|
-
path = translate$
|
|
4584
|
+
path = translate$1(part.source, binding.target, path);
|
|
4584
4585
|
if (node._setPendingPropertyOrPath(path, value, false, true)) {
|
|
4585
4586
|
inst._enqueueClient(node);
|
|
4586
4587
|
}
|
|
@@ -12905,7 +12906,7 @@ const CheckboxMixin = (superclass) =>
|
|
|
12905
12906
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12906
12907
|
*/
|
|
12907
12908
|
|
|
12908
|
-
const checkboxStyles = i$
|
|
12909
|
+
const checkboxStyles = i$b`
|
|
12909
12910
|
:host {
|
|
12910
12911
|
display: inline-block;
|
|
12911
12912
|
}
|
|
@@ -13065,7 +13066,7 @@ defineCustomElement(Checkbox);
|
|
|
13065
13066
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13066
13067
|
*/
|
|
13067
13068
|
|
|
13068
|
-
const helper$
|
|
13069
|
+
const helper$2 = i$b`
|
|
13069
13070
|
:host([has-helper]) [part='helper-text']::before {
|
|
13070
13071
|
content: '';
|
|
13071
13072
|
display: block;
|
|
@@ -13124,7 +13125,7 @@ const helper$1 = i$1`
|
|
|
13124
13125
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13125
13126
|
*/
|
|
13126
13127
|
|
|
13127
|
-
const requiredField$
|
|
13128
|
+
const requiredField$2 = i$b`
|
|
13128
13129
|
[part='label'] {
|
|
13129
13130
|
align-self: flex-start;
|
|
13130
13131
|
color: var(--lumo-secondary-text-color);
|
|
@@ -13222,9 +13223,9 @@ const requiredField$1 = i$1`
|
|
|
13222
13223
|
}
|
|
13223
13224
|
`;
|
|
13224
13225
|
|
|
13225
|
-
registerStyles('', requiredField$
|
|
13226
|
+
registerStyles('', requiredField$2, { moduleId: 'lumo-required-field' });
|
|
13226
13227
|
|
|
13227
|
-
const checkboxGroup = i$
|
|
13228
|
+
const checkboxGroup = i$b`
|
|
13228
13229
|
:host {
|
|
13229
13230
|
color: var(--lumo-body-text-color);
|
|
13230
13231
|
font-size: var(--lumo-font-size-m);
|
|
@@ -13269,7 +13270,7 @@ const checkboxGroup = i$1`
|
|
|
13269
13270
|
}
|
|
13270
13271
|
`;
|
|
13271
13272
|
|
|
13272
|
-
registerStyles('vaadin-checkbox-group', [requiredField$
|
|
13273
|
+
registerStyles('vaadin-checkbox-group', [requiredField$2, helper$2, checkboxGroup], {
|
|
13273
13274
|
moduleId: 'lumo-checkbox-group',
|
|
13274
13275
|
});
|
|
13275
13276
|
|
|
@@ -14490,27 +14491,23 @@ const CheckboxGroupInput = class {
|
|
|
14490
14491
|
index.registerInstance(this, hostRef);
|
|
14491
14492
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
14492
14493
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
14494
|
+
/**
|
|
14495
|
+
* Default value for the input.
|
|
14496
|
+
*/
|
|
14497
|
+
this.defaultValue = '';
|
|
14498
|
+
/**
|
|
14499
|
+
* Client custom styling via inline style
|
|
14500
|
+
*/
|
|
14501
|
+
this.clientStyling = '';
|
|
14502
|
+
this.limitStylingAppends = false;
|
|
14503
|
+
this.showTooltip = false;
|
|
14504
|
+
this.selectedValues = [];
|
|
14493
14505
|
this.value = null;
|
|
14494
14506
|
this.setClientStyling = () => {
|
|
14495
14507
|
let sheet = document.createElement('style');
|
|
14496
14508
|
sheet.innerHTML = this.clientStyling;
|
|
14497
14509
|
this.stylingContainer.prepend(sheet);
|
|
14498
14510
|
};
|
|
14499
|
-
this.name = undefined;
|
|
14500
|
-
this.displayName = undefined;
|
|
14501
|
-
this.defaultValue = '';
|
|
14502
|
-
this.autofilled = undefined;
|
|
14503
|
-
this.tooltip = undefined;
|
|
14504
|
-
this.options = undefined;
|
|
14505
|
-
this.validation = undefined;
|
|
14506
|
-
this.language = undefined;
|
|
14507
|
-
this.emitValue = undefined;
|
|
14508
|
-
this.clientStyling = '';
|
|
14509
|
-
this.errorMessage = undefined;
|
|
14510
|
-
this.isValid = undefined;
|
|
14511
|
-
this.limitStylingAppends = false;
|
|
14512
|
-
this.showTooltip = false;
|
|
14513
|
-
this.selectedValues = [];
|
|
14514
14511
|
}
|
|
14515
14512
|
validityChanged() {
|
|
14516
14513
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -14567,7 +14564,7 @@ const CheckboxGroupInput = class {
|
|
|
14567
14564
|
}
|
|
14568
14565
|
setErrorMessage() {
|
|
14569
14566
|
if (this.inputReference.validity.valueMissing) {
|
|
14570
|
-
return translate$
|
|
14567
|
+
return translate$2('requiredError', this.language);
|
|
14571
14568
|
}
|
|
14572
14569
|
}
|
|
14573
14570
|
renderTooltip() {
|
|
@@ -14587,7 +14584,7 @@ const CheckboxGroupInput = class {
|
|
|
14587
14584
|
}
|
|
14588
14585
|
render() {
|
|
14589
14586
|
return index.h("div", { key: 'fa45026502fd8d46aa537aee03210ad68d30e577', class: `checkboxgroup__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '15ded4fd896920c6244806e49f300c124c27186d', class: 'checkboxgroup__wrapper--flex' }, index.h("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 &&
|
|
14590
|
-
index.h("img", { key: 'aca39ed398415a6e2cef861be40dad33e0398759', class: 'checkboxgroup__tooltip-icon', src: tooltipIconSvg
|
|
14587
|
+
index.h("img", { key: 'aca39ed398415a6e2cef861be40dad33e0398759', class: 'checkboxgroup__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("small", { key: 'a1a6e1c3c02edcca572b8826ffba06835ca451c3', class: 'checkboxgroup__error-message' }, this.errorMessage), index.h("vaadin-checkbox-group", { key: '9f5f8a945e4ba13d7d0da6d362c15d00a7796b71', theme: "vertical", value: this.selectedValues, "on-value-changed": (event) => {
|
|
14591
14588
|
this.selectedValues = event.detail.value;
|
|
14592
14589
|
} }, this.options.map((checkbox) => index.h("vaadin-checkbox", { class: 'checkbox__input', name: checkbox.name, value: checkbox.name, label: checkbox.displayName }))));
|
|
14593
14590
|
}
|
|
@@ -14608,25 +14605,22 @@ const CheckboxInput = class {
|
|
|
14608
14605
|
index.registerInstance(this, hostRef);
|
|
14609
14606
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
14610
14607
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
14608
|
+
/**
|
|
14609
|
+
* Default value for the input.
|
|
14610
|
+
*/
|
|
14611
|
+
this.defaultValue = '';
|
|
14612
|
+
/**
|
|
14613
|
+
* Client custom styling via inline style
|
|
14614
|
+
*/
|
|
14615
|
+
this.clientStyling = '';
|
|
14616
|
+
this.limitStylingAppends = false;
|
|
14617
|
+
this.showTooltip = false;
|
|
14611
14618
|
this.value = '';
|
|
14612
14619
|
this.setClientStyling = () => {
|
|
14613
14620
|
let sheet = document.createElement('style');
|
|
14614
14621
|
sheet.innerHTML = this.clientStyling;
|
|
14615
14622
|
this.stylingContainer.prepend(sheet);
|
|
14616
14623
|
};
|
|
14617
|
-
this.name = undefined;
|
|
14618
|
-
this.displayName = undefined;
|
|
14619
|
-
this.defaultValue = '';
|
|
14620
|
-
this.autofilled = undefined;
|
|
14621
|
-
this.tooltip = undefined;
|
|
14622
|
-
this.validation = undefined;
|
|
14623
|
-
this.language = undefined;
|
|
14624
|
-
this.emitValue = undefined;
|
|
14625
|
-
this.clientStyling = '';
|
|
14626
|
-
this.errorMessage = undefined;
|
|
14627
|
-
this.isValid = undefined;
|
|
14628
|
-
this.limitStylingAppends = false;
|
|
14629
|
-
this.showTooltip = false;
|
|
14630
14624
|
}
|
|
14631
14625
|
validityChanged() {
|
|
14632
14626
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -14677,7 +14671,7 @@ const CheckboxInput = class {
|
|
|
14677
14671
|
}
|
|
14678
14672
|
setErrorMessage() {
|
|
14679
14673
|
if (this.inputReference.validity.valueMissing) {
|
|
14680
|
-
return translate$
|
|
14674
|
+
return translate$2('requiredError', this.language);
|
|
14681
14675
|
}
|
|
14682
14676
|
}
|
|
14683
14677
|
renderLabel() {
|
|
@@ -14691,7 +14685,7 @@ const CheckboxInput = class {
|
|
|
14691
14685
|
}
|
|
14692
14686
|
render() {
|
|
14693
14687
|
return index.h("div", { key: '0aae00d291d1da02adae1bc91e79ccd579aa5c7f', class: `checkbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("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(), index.h("small", { key: '934263cb58a0d379e8b7dc1f5004ad7e61c63ce0', class: 'checkbox__error-message' }, this.errorMessage), index.h("div", { key: '88cc71329d88b6325d792226e64ff7f93e940178', class: 'checkbox__wrapper--relative' }, this.tooltip &&
|
|
14694
|
-
index.h("img", { key: '3708dc613dc920bac6557f2a8020bbafd97d9127', class: 'checkbox__tooltip-icon', src: tooltipIconSvg
|
|
14688
|
+
index.h("img", { key: '3708dc613dc920bac6557f2a8020bbafd97d9127', class: 'checkbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()));
|
|
14695
14689
|
}
|
|
14696
14690
|
static get watchers() { return {
|
|
14697
14691
|
"isValid": ["validityChanged"],
|
|
@@ -14734,7 +14728,7 @@ const addLumoGlobalStyles$3 = (id, ...styles) => {
|
|
|
14734
14728
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14735
14729
|
*/
|
|
14736
14730
|
|
|
14737
|
-
const colorBase$2 = i$
|
|
14731
|
+
const colorBase$2 = i$b`
|
|
14738
14732
|
:host {
|
|
14739
14733
|
/* Base (background) */
|
|
14740
14734
|
--lumo-base-color: #fff;
|
|
@@ -14823,7 +14817,7 @@ const colorBase$2 = i$1`
|
|
|
14823
14817
|
|
|
14824
14818
|
addLumoGlobalStyles$3('color-props', colorBase$2);
|
|
14825
14819
|
|
|
14826
|
-
const color$2 = i$
|
|
14820
|
+
const color$2 = i$b`
|
|
14827
14821
|
[theme~='dark'] {
|
|
14828
14822
|
/* Base (background) */
|
|
14829
14823
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -14948,7 +14942,7 @@ registerStyles('', color$2, { moduleId: 'lumo-color' });
|
|
|
14948
14942
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14949
14943
|
*/
|
|
14950
14944
|
|
|
14951
|
-
const sizing$3 = i$
|
|
14945
|
+
const sizing$3 = i$b`
|
|
14952
14946
|
:host {
|
|
14953
14947
|
--lumo-size-xs: 1.625rem;
|
|
14954
14948
|
--lumo-size-s: 1.875rem;
|
|
@@ -14973,7 +14967,7 @@ addLumoGlobalStyles$3('sizing-props', sizing$3);
|
|
|
14973
14967
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14974
14968
|
*/
|
|
14975
14969
|
|
|
14976
|
-
const style$3 = i$
|
|
14970
|
+
const style$3 = i$b`
|
|
14977
14971
|
:host {
|
|
14978
14972
|
/* Border radius */
|
|
14979
14973
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -14995,7 +14989,7 @@ const style$3 = i$1`
|
|
|
14995
14989
|
/**
|
|
14996
14990
|
* Default values for component-specific custom properties.
|
|
14997
14991
|
*/
|
|
14998
|
-
i$
|
|
14992
|
+
i$b`
|
|
14999
14993
|
html {
|
|
15000
14994
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
15001
14995
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -15011,7 +15005,7 @@ addLumoGlobalStyles$3('style-props', style$3);
|
|
|
15011
15005
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15012
15006
|
*/
|
|
15013
15007
|
|
|
15014
|
-
const font$3 = i$
|
|
15008
|
+
const font$3 = i$b`
|
|
15015
15009
|
:host {
|
|
15016
15010
|
/* prettier-ignore */
|
|
15017
15011
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -15033,7 +15027,7 @@ const font$3 = i$1`
|
|
|
15033
15027
|
}
|
|
15034
15028
|
`;
|
|
15035
15029
|
|
|
15036
|
-
const typography$3 = i$
|
|
15030
|
+
const typography$3 = i$b`
|
|
15037
15031
|
body,
|
|
15038
15032
|
:host {
|
|
15039
15033
|
font-family: var(--lumo-font-family);
|
|
@@ -15132,7 +15126,7 @@ addLumoGlobalStyles$3('typography-props', font$3);
|
|
|
15132
15126
|
|
|
15133
15127
|
registerStyles(
|
|
15134
15128
|
'vaadin-input-container',
|
|
15135
|
-
i$
|
|
15129
|
+
i$b`
|
|
15136
15130
|
:host {
|
|
15137
15131
|
background-color: var(--lumo-contrast-10pct);
|
|
15138
15132
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -15448,241 +15442,6 @@ class InputContainer extends ThemableMixin(DirMixin(PolymerElement)) {
|
|
|
15448
15442
|
|
|
15449
15443
|
defineCustomElement(InputContainer);
|
|
15450
15444
|
|
|
15451
|
-
/**
|
|
15452
|
-
* @license
|
|
15453
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15454
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15455
|
-
*/
|
|
15456
|
-
|
|
15457
|
-
const overlay = i$1`
|
|
15458
|
-
:host {
|
|
15459
|
-
top: var(--lumo-space-m);
|
|
15460
|
-
right: var(--lumo-space-m);
|
|
15461
|
-
bottom: var(--lumo-space-m);
|
|
15462
|
-
left: var(--lumo-space-m);
|
|
15463
|
-
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
15464
|
-
/* stylelint-disable-next-line */
|
|
15465
|
-
outline: 0px solid transparent;
|
|
15466
|
-
}
|
|
15467
|
-
|
|
15468
|
-
[part='overlay'] {
|
|
15469
|
-
background-color: var(--lumo-base-color);
|
|
15470
|
-
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
15471
|
-
border-radius: var(--lumo-border-radius-m);
|
|
15472
|
-
box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
|
|
15473
|
-
color: var(--lumo-body-text-color);
|
|
15474
|
-
font-family: var(--lumo-font-family);
|
|
15475
|
-
font-size: var(--lumo-font-size-m);
|
|
15476
|
-
font-weight: 400;
|
|
15477
|
-
line-height: var(--lumo-line-height-m);
|
|
15478
|
-
letter-spacing: 0;
|
|
15479
|
-
text-transform: none;
|
|
15480
|
-
-webkit-text-size-adjust: 100%;
|
|
15481
|
-
-webkit-font-smoothing: antialiased;
|
|
15482
|
-
-moz-osx-font-smoothing: grayscale;
|
|
15483
|
-
}
|
|
15484
|
-
|
|
15485
|
-
[part='content'] {
|
|
15486
|
-
padding: var(--lumo-space-xs);
|
|
15487
|
-
}
|
|
15488
|
-
|
|
15489
|
-
[part='backdrop'] {
|
|
15490
|
-
background-color: var(--lumo-shade-20pct);
|
|
15491
|
-
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
15492
|
-
will-change: opacity;
|
|
15493
|
-
}
|
|
15494
|
-
|
|
15495
|
-
@keyframes lumo-overlay-backdrop-enter {
|
|
15496
|
-
0% {
|
|
15497
|
-
opacity: 0;
|
|
15498
|
-
}
|
|
15499
|
-
}
|
|
15500
|
-
|
|
15501
|
-
:host([closing]) [part='backdrop'] {
|
|
15502
|
-
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
15503
|
-
}
|
|
15504
|
-
|
|
15505
|
-
@keyframes lumo-overlay-backdrop-exit {
|
|
15506
|
-
100% {
|
|
15507
|
-
opacity: 0;
|
|
15508
|
-
}
|
|
15509
|
-
}
|
|
15510
|
-
|
|
15511
|
-
@keyframes lumo-overlay-dummy-animation {
|
|
15512
|
-
0% {
|
|
15513
|
-
opacity: 1;
|
|
15514
|
-
}
|
|
15515
|
-
|
|
15516
|
-
100% {
|
|
15517
|
-
opacity: 1;
|
|
15518
|
-
}
|
|
15519
|
-
}
|
|
15520
|
-
`;
|
|
15521
|
-
|
|
15522
|
-
registerStyles('', overlay, { moduleId: 'lumo-overlay' });
|
|
15523
|
-
|
|
15524
|
-
/**
|
|
15525
|
-
* @license
|
|
15526
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15527
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15528
|
-
*/
|
|
15529
|
-
|
|
15530
|
-
const menuOverlayCore = i$1`
|
|
15531
|
-
:host([opening]),
|
|
15532
|
-
:host([closing]) {
|
|
15533
|
-
animation: 0.14s lumo-overlay-dummy-animation;
|
|
15534
|
-
}
|
|
15535
|
-
|
|
15536
|
-
[part='overlay'] {
|
|
15537
|
-
will-change: opacity, transform;
|
|
15538
|
-
}
|
|
15539
|
-
|
|
15540
|
-
:host([opening]) [part='overlay'] {
|
|
15541
|
-
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
15542
|
-
}
|
|
15543
|
-
|
|
15544
|
-
@keyframes lumo-menu-overlay-enter {
|
|
15545
|
-
0% {
|
|
15546
|
-
opacity: 0;
|
|
15547
|
-
transform: translateY(-4px);
|
|
15548
|
-
}
|
|
15549
|
-
}
|
|
15550
|
-
|
|
15551
|
-
:host([closing]) [part='overlay'] {
|
|
15552
|
-
animation: 0.1s lumo-menu-overlay-exit both;
|
|
15553
|
-
}
|
|
15554
|
-
|
|
15555
|
-
@keyframes lumo-menu-overlay-exit {
|
|
15556
|
-
100% {
|
|
15557
|
-
opacity: 0;
|
|
15558
|
-
}
|
|
15559
|
-
}
|
|
15560
|
-
`;
|
|
15561
|
-
|
|
15562
|
-
registerStyles('', menuOverlayCore, { moduleId: 'lumo-menu-overlay-core' });
|
|
15563
|
-
|
|
15564
|
-
const menuOverlayExt = i$1`
|
|
15565
|
-
/* Small viewport (bottom sheet) styles */
|
|
15566
|
-
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
15567
|
-
@media (max-width: 420px), (max-height: 420px) {
|
|
15568
|
-
:host {
|
|
15569
|
-
top: 0 !important;
|
|
15570
|
-
right: 0 !important;
|
|
15571
|
-
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
15572
|
-
left: 0 !important;
|
|
15573
|
-
align-items: stretch !important;
|
|
15574
|
-
justify-content: flex-end !important;
|
|
15575
|
-
}
|
|
15576
|
-
|
|
15577
|
-
[part='overlay'] {
|
|
15578
|
-
max-height: 50vh;
|
|
15579
|
-
width: 100vw;
|
|
15580
|
-
border-radius: 0;
|
|
15581
|
-
box-shadow: var(--lumo-box-shadow-xl);
|
|
15582
|
-
}
|
|
15583
|
-
|
|
15584
|
-
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
15585
|
-
[part='content'] {
|
|
15586
|
-
padding: 30px var(--lumo-space-m);
|
|
15587
|
-
max-height: inherit;
|
|
15588
|
-
box-sizing: border-box;
|
|
15589
|
-
-webkit-overflow-scrolling: touch;
|
|
15590
|
-
overflow: auto;
|
|
15591
|
-
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
15592
|
-
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
15593
|
-
}
|
|
15594
|
-
|
|
15595
|
-
[part='backdrop'] {
|
|
15596
|
-
display: block;
|
|
15597
|
-
}
|
|
15598
|
-
|
|
15599
|
-
/* Animations */
|
|
15600
|
-
|
|
15601
|
-
:host([opening]) [part='overlay'] {
|
|
15602
|
-
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
15603
|
-
}
|
|
15604
|
-
|
|
15605
|
-
:host([closing]),
|
|
15606
|
-
:host([closing]) [part='backdrop'] {
|
|
15607
|
-
animation-delay: 0.14s;
|
|
15608
|
-
}
|
|
15609
|
-
|
|
15610
|
-
:host([closing]) [part='overlay'] {
|
|
15611
|
-
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
15612
|
-
}
|
|
15613
|
-
}
|
|
15614
|
-
|
|
15615
|
-
@keyframes lumo-mobile-menu-overlay-enter {
|
|
15616
|
-
0% {
|
|
15617
|
-
transform: translateY(150%);
|
|
15618
|
-
}
|
|
15619
|
-
}
|
|
15620
|
-
|
|
15621
|
-
@keyframes lumo-mobile-menu-overlay-exit {
|
|
15622
|
-
100% {
|
|
15623
|
-
transform: translateY(150%);
|
|
15624
|
-
}
|
|
15625
|
-
}
|
|
15626
|
-
`;
|
|
15627
|
-
|
|
15628
|
-
const menuOverlay = [overlay, menuOverlayCore, menuOverlayExt];
|
|
15629
|
-
|
|
15630
|
-
registerStyles('', menuOverlay, { moduleId: 'lumo-menu-overlay' });
|
|
15631
|
-
|
|
15632
|
-
const datePickerOverlay = i$1`
|
|
15633
|
-
[part='overlay'] {
|
|
15634
|
-
/*
|
|
15635
|
-
Width:
|
|
15636
|
-
date cell widths
|
|
15637
|
-
+ month calendar side padding
|
|
15638
|
-
+ year scroller width
|
|
15639
|
-
*/
|
|
15640
|
-
/* prettier-ignore */
|
|
15641
|
-
width:
|
|
15642
|
-
calc(
|
|
15643
|
-
var(--lumo-size-m) * 7
|
|
15644
|
-
+ var(--lumo-space-xs) * 2
|
|
15645
|
-
+ 57px
|
|
15646
|
-
);
|
|
15647
|
-
height: 100%;
|
|
15648
|
-
max-height: calc(var(--lumo-size-m) * 14);
|
|
15649
|
-
overflow: hidden;
|
|
15650
|
-
-webkit-tap-highlight-color: transparent;
|
|
15651
|
-
}
|
|
15652
|
-
|
|
15653
|
-
[part='overlay'] {
|
|
15654
|
-
flex-direction: column;
|
|
15655
|
-
}
|
|
15656
|
-
|
|
15657
|
-
[part='content'] {
|
|
15658
|
-
padding: 0;
|
|
15659
|
-
height: 100%;
|
|
15660
|
-
overflow: hidden;
|
|
15661
|
-
-webkit-mask-image: none;
|
|
15662
|
-
mask-image: none;
|
|
15663
|
-
}
|
|
15664
|
-
|
|
15665
|
-
:host([top-aligned]) [part~='overlay'] {
|
|
15666
|
-
margin-top: var(--lumo-space-xs);
|
|
15667
|
-
}
|
|
15668
|
-
|
|
15669
|
-
:host([bottom-aligned]) [part~='overlay'] {
|
|
15670
|
-
margin-bottom: var(--lumo-space-xs);
|
|
15671
|
-
}
|
|
15672
|
-
|
|
15673
|
-
@media (max-width: 420px), (max-height: 420px) {
|
|
15674
|
-
[part='overlay'] {
|
|
15675
|
-
width: 100vw;
|
|
15676
|
-
height: 70vh;
|
|
15677
|
-
max-height: 70vh;
|
|
15678
|
-
}
|
|
15679
|
-
}
|
|
15680
|
-
`;
|
|
15681
|
-
|
|
15682
|
-
registerStyles('vaadin-date-picker-overlay', [menuOverlay, datePickerOverlay], {
|
|
15683
|
-
moduleId: 'lumo-date-picker-overlay',
|
|
15684
|
-
});
|
|
15685
|
-
|
|
15686
15445
|
/**
|
|
15687
15446
|
* @license
|
|
15688
15447
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
@@ -15717,7 +15476,103 @@ const addLumoGlobalStyles$2 = (id, ...styles) => {
|
|
|
15717
15476
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15718
15477
|
*/
|
|
15719
15478
|
|
|
15720
|
-
const
|
|
15479
|
+
const sizing$2 = i$b`
|
|
15480
|
+
:host {
|
|
15481
|
+
--lumo-size-xs: 1.625rem;
|
|
15482
|
+
--lumo-size-s: 1.875rem;
|
|
15483
|
+
--lumo-size-m: 2.25rem;
|
|
15484
|
+
--lumo-size-l: 2.75rem;
|
|
15485
|
+
--lumo-size-xl: 3.5rem;
|
|
15486
|
+
|
|
15487
|
+
/* Icons */
|
|
15488
|
+
--lumo-icon-size-s: 1.25em;
|
|
15489
|
+
--lumo-icon-size-m: 1.5em;
|
|
15490
|
+
--lumo-icon-size-l: 2.25em;
|
|
15491
|
+
/* For backwards compatibility */
|
|
15492
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
15493
|
+
}
|
|
15494
|
+
`;
|
|
15495
|
+
|
|
15496
|
+
addLumoGlobalStyles$2('sizing-props', sizing$2);
|
|
15497
|
+
|
|
15498
|
+
/**
|
|
15499
|
+
* @license
|
|
15500
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15501
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15502
|
+
*/
|
|
15503
|
+
|
|
15504
|
+
const spacing$2 = i$b`
|
|
15505
|
+
:host {
|
|
15506
|
+
/* Square */
|
|
15507
|
+
--lumo-space-xs: 0.25rem;
|
|
15508
|
+
--lumo-space-s: 0.5rem;
|
|
15509
|
+
--lumo-space-m: 1rem;
|
|
15510
|
+
--lumo-space-l: 1.5rem;
|
|
15511
|
+
--lumo-space-xl: 2.5rem;
|
|
15512
|
+
|
|
15513
|
+
/* Wide */
|
|
15514
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
15515
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
15516
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
15517
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
15518
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
15519
|
+
|
|
15520
|
+
/* Tall */
|
|
15521
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
15522
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
15523
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
15524
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
15525
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
15526
|
+
}
|
|
15527
|
+
`;
|
|
15528
|
+
|
|
15529
|
+
addLumoGlobalStyles$2('spacing-props', spacing$2);
|
|
15530
|
+
|
|
15531
|
+
/**
|
|
15532
|
+
* @license
|
|
15533
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15534
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15535
|
+
*/
|
|
15536
|
+
|
|
15537
|
+
const style$2 = i$b`
|
|
15538
|
+
:host {
|
|
15539
|
+
/* Border radius */
|
|
15540
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
15541
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
15542
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
15543
|
+
|
|
15544
|
+
/* Shadow */
|
|
15545
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
15546
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
15547
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
15548
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
15549
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
15550
|
+
|
|
15551
|
+
/* Clickable element cursor */
|
|
15552
|
+
--lumo-clickable-cursor: default;
|
|
15553
|
+
}
|
|
15554
|
+
`;
|
|
15555
|
+
|
|
15556
|
+
/**
|
|
15557
|
+
* Default values for component-specific custom properties.
|
|
15558
|
+
*/
|
|
15559
|
+
i$b`
|
|
15560
|
+
html {
|
|
15561
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
15562
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
15563
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
15564
|
+
}
|
|
15565
|
+
`;
|
|
15566
|
+
|
|
15567
|
+
addLumoGlobalStyles$2('style-props', style$2);
|
|
15568
|
+
|
|
15569
|
+
/**
|
|
15570
|
+
* @license
|
|
15571
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15572
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15573
|
+
*/
|
|
15574
|
+
|
|
15575
|
+
const colorBase$1 = i$b`
|
|
15721
15576
|
:host {
|
|
15722
15577
|
/* Base (background) */
|
|
15723
15578
|
--lumo-base-color: #fff;
|
|
@@ -15806,7 +15661,7 @@ const colorBase$1 = i$1`
|
|
|
15806
15661
|
|
|
15807
15662
|
addLumoGlobalStyles$2('color-props', colorBase$1);
|
|
15808
15663
|
|
|
15809
|
-
const color$1 = i$
|
|
15664
|
+
const color$1 = i$b`
|
|
15810
15665
|
[theme~='dark'] {
|
|
15811
15666
|
/* Base (background) */
|
|
15812
15667
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -15931,103 +15786,7 @@ registerStyles('', color$1, { moduleId: 'lumo-color' });
|
|
|
15931
15786
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15932
15787
|
*/
|
|
15933
15788
|
|
|
15934
|
-
const
|
|
15935
|
-
:host {
|
|
15936
|
-
--lumo-size-xs: 1.625rem;
|
|
15937
|
-
--lumo-size-s: 1.875rem;
|
|
15938
|
-
--lumo-size-m: 2.25rem;
|
|
15939
|
-
--lumo-size-l: 2.75rem;
|
|
15940
|
-
--lumo-size-xl: 3.5rem;
|
|
15941
|
-
|
|
15942
|
-
/* Icons */
|
|
15943
|
-
--lumo-icon-size-s: 1.25em;
|
|
15944
|
-
--lumo-icon-size-m: 1.5em;
|
|
15945
|
-
--lumo-icon-size-l: 2.25em;
|
|
15946
|
-
/* For backwards compatibility */
|
|
15947
|
-
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
15948
|
-
}
|
|
15949
|
-
`;
|
|
15950
|
-
|
|
15951
|
-
addLumoGlobalStyles$2('sizing-props', sizing$2);
|
|
15952
|
-
|
|
15953
|
-
/**
|
|
15954
|
-
* @license
|
|
15955
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15956
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15957
|
-
*/
|
|
15958
|
-
|
|
15959
|
-
const spacing$2 = i$1`
|
|
15960
|
-
:host {
|
|
15961
|
-
/* Square */
|
|
15962
|
-
--lumo-space-xs: 0.25rem;
|
|
15963
|
-
--lumo-space-s: 0.5rem;
|
|
15964
|
-
--lumo-space-m: 1rem;
|
|
15965
|
-
--lumo-space-l: 1.5rem;
|
|
15966
|
-
--lumo-space-xl: 2.5rem;
|
|
15967
|
-
|
|
15968
|
-
/* Wide */
|
|
15969
|
-
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
15970
|
-
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
15971
|
-
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
15972
|
-
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
15973
|
-
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
15974
|
-
|
|
15975
|
-
/* Tall */
|
|
15976
|
-
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
15977
|
-
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
15978
|
-
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
15979
|
-
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
15980
|
-
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
15981
|
-
}
|
|
15982
|
-
`;
|
|
15983
|
-
|
|
15984
|
-
addLumoGlobalStyles$2('spacing-props', spacing$2);
|
|
15985
|
-
|
|
15986
|
-
/**
|
|
15987
|
-
* @license
|
|
15988
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15989
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15990
|
-
*/
|
|
15991
|
-
|
|
15992
|
-
const style$2 = i$1`
|
|
15993
|
-
:host {
|
|
15994
|
-
/* Border radius */
|
|
15995
|
-
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
15996
|
-
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
15997
|
-
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
15998
|
-
|
|
15999
|
-
/* Shadow */
|
|
16000
|
-
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
16001
|
-
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
16002
|
-
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
16003
|
-
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
16004
|
-
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
16005
|
-
|
|
16006
|
-
/* Clickable element cursor */
|
|
16007
|
-
--lumo-clickable-cursor: default;
|
|
16008
|
-
}
|
|
16009
|
-
`;
|
|
16010
|
-
|
|
16011
|
-
/**
|
|
16012
|
-
* Default values for component-specific custom properties.
|
|
16013
|
-
*/
|
|
16014
|
-
i$1`
|
|
16015
|
-
html {
|
|
16016
|
-
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
16017
|
-
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
16018
|
-
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
16019
|
-
}
|
|
16020
|
-
`;
|
|
16021
|
-
|
|
16022
|
-
addLumoGlobalStyles$2('style-props', style$2);
|
|
16023
|
-
|
|
16024
|
-
/**
|
|
16025
|
-
* @license
|
|
16026
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
16027
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16028
|
-
*/
|
|
16029
|
-
|
|
16030
|
-
const font$2 = i$1`
|
|
15789
|
+
const font$2 = i$b`
|
|
16031
15790
|
:host {
|
|
16032
15791
|
/* prettier-ignore */
|
|
16033
15792
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -16049,7 +15808,7 @@ const font$2 = i$1`
|
|
|
16049
15808
|
}
|
|
16050
15809
|
`;
|
|
16051
15810
|
|
|
16052
|
-
const typography$2 = i$
|
|
15811
|
+
const typography$2 = i$b`
|
|
16053
15812
|
body,
|
|
16054
15813
|
:host {
|
|
16055
15814
|
font-family: var(--lumo-font-family);
|
|
@@ -16146,7 +15905,242 @@ const typography$2 = i$1`
|
|
|
16146
15905
|
registerStyles('', typography$2, { moduleId: 'lumo-typography' });
|
|
16147
15906
|
addLumoGlobalStyles$2('typography-props', font$2);
|
|
16148
15907
|
|
|
16149
|
-
|
|
15908
|
+
/**
|
|
15909
|
+
* @license
|
|
15910
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15911
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15912
|
+
*/
|
|
15913
|
+
|
|
15914
|
+
const overlay$1 = i$b`
|
|
15915
|
+
:host {
|
|
15916
|
+
top: var(--lumo-space-m);
|
|
15917
|
+
right: var(--lumo-space-m);
|
|
15918
|
+
bottom: var(--lumo-space-m);
|
|
15919
|
+
left: var(--lumo-space-m);
|
|
15920
|
+
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
15921
|
+
/* stylelint-disable-next-line */
|
|
15922
|
+
outline: 0px solid transparent;
|
|
15923
|
+
}
|
|
15924
|
+
|
|
15925
|
+
[part='overlay'] {
|
|
15926
|
+
background-color: var(--lumo-base-color);
|
|
15927
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
15928
|
+
border-radius: var(--lumo-border-radius-m);
|
|
15929
|
+
box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
|
|
15930
|
+
color: var(--lumo-body-text-color);
|
|
15931
|
+
font-family: var(--lumo-font-family);
|
|
15932
|
+
font-size: var(--lumo-font-size-m);
|
|
15933
|
+
font-weight: 400;
|
|
15934
|
+
line-height: var(--lumo-line-height-m);
|
|
15935
|
+
letter-spacing: 0;
|
|
15936
|
+
text-transform: none;
|
|
15937
|
+
-webkit-text-size-adjust: 100%;
|
|
15938
|
+
-webkit-font-smoothing: antialiased;
|
|
15939
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15940
|
+
}
|
|
15941
|
+
|
|
15942
|
+
[part='content'] {
|
|
15943
|
+
padding: var(--lumo-space-xs);
|
|
15944
|
+
}
|
|
15945
|
+
|
|
15946
|
+
[part='backdrop'] {
|
|
15947
|
+
background-color: var(--lumo-shade-20pct);
|
|
15948
|
+
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
15949
|
+
will-change: opacity;
|
|
15950
|
+
}
|
|
15951
|
+
|
|
15952
|
+
@keyframes lumo-overlay-backdrop-enter {
|
|
15953
|
+
0% {
|
|
15954
|
+
opacity: 0;
|
|
15955
|
+
}
|
|
15956
|
+
}
|
|
15957
|
+
|
|
15958
|
+
:host([closing]) [part='backdrop'] {
|
|
15959
|
+
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
15960
|
+
}
|
|
15961
|
+
|
|
15962
|
+
@keyframes lumo-overlay-backdrop-exit {
|
|
15963
|
+
100% {
|
|
15964
|
+
opacity: 0;
|
|
15965
|
+
}
|
|
15966
|
+
}
|
|
15967
|
+
|
|
15968
|
+
@keyframes lumo-overlay-dummy-animation {
|
|
15969
|
+
0% {
|
|
15970
|
+
opacity: 1;
|
|
15971
|
+
}
|
|
15972
|
+
|
|
15973
|
+
100% {
|
|
15974
|
+
opacity: 1;
|
|
15975
|
+
}
|
|
15976
|
+
}
|
|
15977
|
+
`;
|
|
15978
|
+
|
|
15979
|
+
registerStyles('', overlay$1, { moduleId: 'lumo-overlay' });
|
|
15980
|
+
|
|
15981
|
+
/**
|
|
15982
|
+
* @license
|
|
15983
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
15984
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15985
|
+
*/
|
|
15986
|
+
|
|
15987
|
+
const menuOverlayCore$1 = i$b`
|
|
15988
|
+
:host([opening]),
|
|
15989
|
+
:host([closing]) {
|
|
15990
|
+
animation: 0.14s lumo-overlay-dummy-animation;
|
|
15991
|
+
}
|
|
15992
|
+
|
|
15993
|
+
[part='overlay'] {
|
|
15994
|
+
will-change: opacity, transform;
|
|
15995
|
+
}
|
|
15996
|
+
|
|
15997
|
+
:host([opening]) [part='overlay'] {
|
|
15998
|
+
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
15999
|
+
}
|
|
16000
|
+
|
|
16001
|
+
@keyframes lumo-menu-overlay-enter {
|
|
16002
|
+
0% {
|
|
16003
|
+
opacity: 0;
|
|
16004
|
+
transform: translateY(-4px);
|
|
16005
|
+
}
|
|
16006
|
+
}
|
|
16007
|
+
|
|
16008
|
+
:host([closing]) [part='overlay'] {
|
|
16009
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
16010
|
+
}
|
|
16011
|
+
|
|
16012
|
+
@keyframes lumo-menu-overlay-exit {
|
|
16013
|
+
100% {
|
|
16014
|
+
opacity: 0;
|
|
16015
|
+
}
|
|
16016
|
+
}
|
|
16017
|
+
`;
|
|
16018
|
+
|
|
16019
|
+
registerStyles('', menuOverlayCore$1, { moduleId: 'lumo-menu-overlay-core' });
|
|
16020
|
+
|
|
16021
|
+
const menuOverlayExt$1 = i$b`
|
|
16022
|
+
/* Small viewport (bottom sheet) styles */
|
|
16023
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
16024
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
16025
|
+
:host {
|
|
16026
|
+
top: 0 !important;
|
|
16027
|
+
right: 0 !important;
|
|
16028
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
16029
|
+
left: 0 !important;
|
|
16030
|
+
align-items: stretch !important;
|
|
16031
|
+
justify-content: flex-end !important;
|
|
16032
|
+
}
|
|
16033
|
+
|
|
16034
|
+
[part='overlay'] {
|
|
16035
|
+
max-height: 50vh;
|
|
16036
|
+
width: 100vw;
|
|
16037
|
+
border-radius: 0;
|
|
16038
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
16039
|
+
}
|
|
16040
|
+
|
|
16041
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
16042
|
+
[part='content'] {
|
|
16043
|
+
padding: 30px var(--lumo-space-m);
|
|
16044
|
+
max-height: inherit;
|
|
16045
|
+
box-sizing: border-box;
|
|
16046
|
+
-webkit-overflow-scrolling: touch;
|
|
16047
|
+
overflow: auto;
|
|
16048
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
16049
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
16050
|
+
}
|
|
16051
|
+
|
|
16052
|
+
[part='backdrop'] {
|
|
16053
|
+
display: block;
|
|
16054
|
+
}
|
|
16055
|
+
|
|
16056
|
+
/* Animations */
|
|
16057
|
+
|
|
16058
|
+
:host([opening]) [part='overlay'] {
|
|
16059
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
16060
|
+
}
|
|
16061
|
+
|
|
16062
|
+
:host([closing]),
|
|
16063
|
+
:host([closing]) [part='backdrop'] {
|
|
16064
|
+
animation-delay: 0.14s;
|
|
16065
|
+
}
|
|
16066
|
+
|
|
16067
|
+
:host([closing]) [part='overlay'] {
|
|
16068
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
16069
|
+
}
|
|
16070
|
+
}
|
|
16071
|
+
|
|
16072
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
16073
|
+
0% {
|
|
16074
|
+
transform: translateY(150%);
|
|
16075
|
+
}
|
|
16076
|
+
}
|
|
16077
|
+
|
|
16078
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
16079
|
+
100% {
|
|
16080
|
+
transform: translateY(150%);
|
|
16081
|
+
}
|
|
16082
|
+
}
|
|
16083
|
+
`;
|
|
16084
|
+
|
|
16085
|
+
const menuOverlay$1 = [overlay$1, menuOverlayCore$1, menuOverlayExt$1];
|
|
16086
|
+
|
|
16087
|
+
registerStyles('', menuOverlay$1, { moduleId: 'lumo-menu-overlay' });
|
|
16088
|
+
|
|
16089
|
+
const datePickerOverlay = i$b`
|
|
16090
|
+
[part='overlay'] {
|
|
16091
|
+
/*
|
|
16092
|
+
Width:
|
|
16093
|
+
date cell widths
|
|
16094
|
+
+ month calendar side padding
|
|
16095
|
+
+ year scroller width
|
|
16096
|
+
*/
|
|
16097
|
+
/* prettier-ignore */
|
|
16098
|
+
width:
|
|
16099
|
+
calc(
|
|
16100
|
+
var(--lumo-size-m) * 7
|
|
16101
|
+
+ var(--lumo-space-xs) * 2
|
|
16102
|
+
+ 57px
|
|
16103
|
+
);
|
|
16104
|
+
height: 100%;
|
|
16105
|
+
max-height: calc(var(--lumo-size-m) * 14);
|
|
16106
|
+
overflow: hidden;
|
|
16107
|
+
-webkit-tap-highlight-color: transparent;
|
|
16108
|
+
}
|
|
16109
|
+
|
|
16110
|
+
[part='overlay'] {
|
|
16111
|
+
flex-direction: column;
|
|
16112
|
+
}
|
|
16113
|
+
|
|
16114
|
+
[part='content'] {
|
|
16115
|
+
padding: 0;
|
|
16116
|
+
height: 100%;
|
|
16117
|
+
overflow: hidden;
|
|
16118
|
+
-webkit-mask-image: none;
|
|
16119
|
+
mask-image: none;
|
|
16120
|
+
}
|
|
16121
|
+
|
|
16122
|
+
:host([top-aligned]) [part~='overlay'] {
|
|
16123
|
+
margin-top: var(--lumo-space-xs);
|
|
16124
|
+
}
|
|
16125
|
+
|
|
16126
|
+
:host([bottom-aligned]) [part~='overlay'] {
|
|
16127
|
+
margin-bottom: var(--lumo-space-xs);
|
|
16128
|
+
}
|
|
16129
|
+
|
|
16130
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
16131
|
+
[part='overlay'] {
|
|
16132
|
+
width: 100vw;
|
|
16133
|
+
height: 70vh;
|
|
16134
|
+
max-height: 70vh;
|
|
16135
|
+
}
|
|
16136
|
+
}
|
|
16137
|
+
`;
|
|
16138
|
+
|
|
16139
|
+
registerStyles('vaadin-date-picker-overlay', [menuOverlay$1, datePickerOverlay], {
|
|
16140
|
+
moduleId: 'lumo-date-picker-overlay',
|
|
16141
|
+
});
|
|
16142
|
+
|
|
16143
|
+
const button$1 = i$b`
|
|
16150
16144
|
:host {
|
|
16151
16145
|
/* Sizing */
|
|
16152
16146
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -16397,7 +16391,33 @@ const button = i$1`
|
|
|
16397
16391
|
}
|
|
16398
16392
|
`;
|
|
16399
16393
|
|
|
16400
|
-
registerStyles('vaadin-button', button, { moduleId: 'lumo-button' });
|
|
16394
|
+
registerStyles('vaadin-button', button$1, { moduleId: 'lumo-button' });
|
|
16395
|
+
|
|
16396
|
+
/**
|
|
16397
|
+
* @license
|
|
16398
|
+
* Copyright 2019 Google LLC
|
|
16399
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16400
|
+
*/
|
|
16401
|
+
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;
|
|
16402
|
+
|
|
16403
|
+
/**
|
|
16404
|
+
* @license
|
|
16405
|
+
* Copyright 2017 Google LLC
|
|
16406
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16407
|
+
*/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");
|
|
16408
|
+
|
|
16409
|
+
/**
|
|
16410
|
+
* @license
|
|
16411
|
+
* Copyright 2017 Google LLC
|
|
16412
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16413
|
+
*/
|
|
16414
|
+
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};
|
|
16415
|
+
|
|
16416
|
+
/**
|
|
16417
|
+
* @license
|
|
16418
|
+
* Copyright 2017 Google LLC
|
|
16419
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16420
|
+
*/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");
|
|
16401
16421
|
|
|
16402
16422
|
/**
|
|
16403
16423
|
* @license
|
|
@@ -16405,7 +16425,7 @@ registerStyles('vaadin-button', button, { moduleId: 'lumo-button' });
|
|
|
16405
16425
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16406
16426
|
*/
|
|
16407
16427
|
|
|
16408
|
-
const buttonStyles = i$
|
|
16428
|
+
const buttonStyles$1 = i$9`
|
|
16409
16429
|
:host {
|
|
16410
16430
|
display: inline-block;
|
|
16411
16431
|
position: relative;
|
|
@@ -16467,7 +16487,7 @@ const buttonStyles = i$1`
|
|
|
16467
16487
|
}
|
|
16468
16488
|
`;
|
|
16469
16489
|
|
|
16470
|
-
const buttonTemplate = (html) => html`
|
|
16490
|
+
const buttonTemplate$1 = (html) => html`
|
|
16471
16491
|
<div class="vaadin-button-container">
|
|
16472
16492
|
<span part="prefix" aria-hidden="true">
|
|
16473
16493
|
<slot name="prefix"></slot>
|
|
@@ -16496,7 +16516,7 @@ const buttonTemplate = (html) => html`
|
|
|
16496
16516
|
* @mixes FocusMixin
|
|
16497
16517
|
* @mixes TabindexMixin
|
|
16498
16518
|
*/
|
|
16499
|
-
const ButtonMixin = (superClass) =>
|
|
16519
|
+
const ButtonMixin$1 = (superClass) =>
|
|
16500
16520
|
class ButtonMixinClass extends ActiveMixin(TabindexMixin(FocusMixin(superClass))) {
|
|
16501
16521
|
static get properties() {
|
|
16502
16522
|
return {
|
|
@@ -16575,7 +16595,7 @@ const ButtonMixin = (superClass) =>
|
|
|
16575
16595
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16576
16596
|
*/
|
|
16577
16597
|
|
|
16578
|
-
registerStyles('vaadin-button', buttonStyles, { moduleId: 'vaadin-button-styles' });
|
|
16598
|
+
registerStyles('vaadin-button', buttonStyles$1, { moduleId: 'vaadin-button-styles' });
|
|
16579
16599
|
|
|
16580
16600
|
/**
|
|
16581
16601
|
* `<vaadin-button>` is an accessible and customizable button that allows users to perform actions.
|
|
@@ -16612,13 +16632,13 @@ registerStyles('vaadin-button', buttonStyles, { moduleId: 'vaadin-button-styles'
|
|
|
16612
16632
|
* @mixes ElementMixin
|
|
16613
16633
|
* @mixes ThemableMixin
|
|
16614
16634
|
*/
|
|
16615
|
-
class Button extends ButtonMixin(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement)))) {
|
|
16635
|
+
class Button$1 extends ButtonMixin$1(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement)))) {
|
|
16616
16636
|
static get is() {
|
|
16617
16637
|
return 'vaadin-button';
|
|
16618
16638
|
}
|
|
16619
16639
|
|
|
16620
16640
|
static get template() {
|
|
16621
|
-
return buttonTemplate(html);
|
|
16641
|
+
return buttonTemplate$1(html);
|
|
16622
16642
|
}
|
|
16623
16643
|
|
|
16624
16644
|
/** @protected */
|
|
@@ -16630,11 +16650,11 @@ class Button extends ButtonMixin(ElementMixin(ThemableMixin(ControllerMixin(Poly
|
|
|
16630
16650
|
}
|
|
16631
16651
|
}
|
|
16632
16652
|
|
|
16633
|
-
defineCustomElement(Button);
|
|
16653
|
+
defineCustomElement(Button$1);
|
|
16634
16654
|
|
|
16635
16655
|
registerStyles(
|
|
16636
16656
|
'vaadin-date-picker-year',
|
|
16637
|
-
i$
|
|
16657
|
+
i$b`
|
|
16638
16658
|
:host([current]) [part='year-number'] {
|
|
16639
16659
|
color: var(--lumo-primary-text-color);
|
|
16640
16660
|
}
|
|
@@ -16664,7 +16684,7 @@ registerStyles(
|
|
|
16664
16684
|
|
|
16665
16685
|
registerStyles(
|
|
16666
16686
|
'vaadin-date-picker-overlay-content',
|
|
16667
|
-
i$
|
|
16687
|
+
i$b`
|
|
16668
16688
|
:host {
|
|
16669
16689
|
position: relative;
|
|
16670
16690
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -16820,7 +16840,7 @@ registerStyles(
|
|
|
16820
16840
|
|
|
16821
16841
|
registerStyles(
|
|
16822
16842
|
'vaadin-month-calendar',
|
|
16823
|
-
i$
|
|
16843
|
+
i$b`
|
|
16824
16844
|
:host {
|
|
16825
16845
|
-moz-user-select: none;
|
|
16826
16846
|
-webkit-user-select: none;
|
|
@@ -16984,7 +17004,70 @@ document.head.appendChild(template$1.content);
|
|
|
16984
17004
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
16985
17005
|
*/
|
|
16986
17006
|
|
|
16987
|
-
const
|
|
17007
|
+
const fontIcons$2 = i$b`
|
|
17008
|
+
@font-face {
|
|
17009
|
+
font-family: 'lumo-icons';
|
|
17010
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPG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eJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
17011
|
+
format('woff');
|
|
17012
|
+
font-weight: normal;
|
|
17013
|
+
font-style: normal;
|
|
17014
|
+
}
|
|
17015
|
+
|
|
17016
|
+
html {
|
|
17017
|
+
--lumo-icons-align-center: '\\ea01';
|
|
17018
|
+
--lumo-icons-align-left: '\\ea02';
|
|
17019
|
+
--lumo-icons-align-right: '\\ea03';
|
|
17020
|
+
--lumo-icons-angle-down: '\\ea04';
|
|
17021
|
+
--lumo-icons-angle-left: '\\ea05';
|
|
17022
|
+
--lumo-icons-angle-right: '\\ea06';
|
|
17023
|
+
--lumo-icons-angle-up: '\\ea07';
|
|
17024
|
+
--lumo-icons-arrow-down: '\\ea08';
|
|
17025
|
+
--lumo-icons-arrow-left: '\\ea09';
|
|
17026
|
+
--lumo-icons-arrow-right: '\\ea0a';
|
|
17027
|
+
--lumo-icons-arrow-up: '\\ea0b';
|
|
17028
|
+
--lumo-icons-bar-chart: '\\ea0c';
|
|
17029
|
+
--lumo-icons-bell: '\\ea0d';
|
|
17030
|
+
--lumo-icons-calendar: '\\ea0e';
|
|
17031
|
+
--lumo-icons-checkmark: '\\ea0f';
|
|
17032
|
+
--lumo-icons-chevron-down: '\\ea10';
|
|
17033
|
+
--lumo-icons-chevron-left: '\\ea11';
|
|
17034
|
+
--lumo-icons-chevron-right: '\\ea12';
|
|
17035
|
+
--lumo-icons-chevron-up: '\\ea13';
|
|
17036
|
+
--lumo-icons-clock: '\\ea14';
|
|
17037
|
+
--lumo-icons-cog: '\\ea15';
|
|
17038
|
+
--lumo-icons-cross: '\\ea16';
|
|
17039
|
+
--lumo-icons-download: '\\ea17';
|
|
17040
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
17041
|
+
--lumo-icons-edit: '\\ea19';
|
|
17042
|
+
--lumo-icons-error: '\\ea1a';
|
|
17043
|
+
--lumo-icons-eye: '\\ea1b';
|
|
17044
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
17045
|
+
--lumo-icons-menu: '\\ea1d';
|
|
17046
|
+
--lumo-icons-minus: '\\ea1e';
|
|
17047
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
17048
|
+
--lumo-icons-phone: '\\ea20';
|
|
17049
|
+
--lumo-icons-photo: '\\ea21';
|
|
17050
|
+
--lumo-icons-play: '\\ea22';
|
|
17051
|
+
--lumo-icons-plus: '\\ea23';
|
|
17052
|
+
--lumo-icons-redo: '\\ea24';
|
|
17053
|
+
--lumo-icons-reload: '\\ea25';
|
|
17054
|
+
--lumo-icons-search: '\\ea26';
|
|
17055
|
+
--lumo-icons-undo: '\\ea27';
|
|
17056
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
17057
|
+
--lumo-icons-upload: '\\ea29';
|
|
17058
|
+
--lumo-icons-user: '\\ea2a';
|
|
17059
|
+
}
|
|
17060
|
+
`;
|
|
17061
|
+
|
|
17062
|
+
addLumoGlobalStyles$2('font-icons', fontIcons$2);
|
|
17063
|
+
|
|
17064
|
+
/**
|
|
17065
|
+
* @license
|
|
17066
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
17067
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
17068
|
+
*/
|
|
17069
|
+
|
|
17070
|
+
const fieldButton$2 = i$b`
|
|
16988
17071
|
[part$='button'] {
|
|
16989
17072
|
flex: none;
|
|
16990
17073
|
width: 1em;
|
|
@@ -17012,7 +17095,7 @@ const fieldButton$1 = i$1`
|
|
|
17012
17095
|
display: block;
|
|
17013
17096
|
}
|
|
17014
17097
|
`;
|
|
17015
|
-
registerStyles('', fieldButton$
|
|
17098
|
+
registerStyles('', fieldButton$2, { moduleId: 'lumo-field-button' });
|
|
17016
17099
|
|
|
17017
17100
|
/**
|
|
17018
17101
|
* @license
|
|
@@ -17020,7 +17103,172 @@ registerStyles('', fieldButton$1, { moduleId: 'lumo-field-button' });
|
|
|
17020
17103
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
17021
17104
|
*/
|
|
17022
17105
|
|
|
17023
|
-
const
|
|
17106
|
+
const helper$1 = i$b`
|
|
17107
|
+
:host([has-helper]) [part='helper-text']::before {
|
|
17108
|
+
content: '';
|
|
17109
|
+
display: block;
|
|
17110
|
+
height: 0.4em;
|
|
17111
|
+
}
|
|
17112
|
+
|
|
17113
|
+
[part='helper-text'] {
|
|
17114
|
+
display: block;
|
|
17115
|
+
color: var(--lumo-secondary-text-color);
|
|
17116
|
+
font-size: var(--lumo-font-size-xs);
|
|
17117
|
+
line-height: var(--lumo-line-height-xs);
|
|
17118
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
17119
|
+
transition: color 0.2s;
|
|
17120
|
+
}
|
|
17121
|
+
|
|
17122
|
+
:host(:hover:not([readonly])) [part='helper-text'] {
|
|
17123
|
+
color: var(--lumo-body-text-color);
|
|
17124
|
+
}
|
|
17125
|
+
|
|
17126
|
+
:host([disabled]) [part='helper-text'] {
|
|
17127
|
+
color: var(--lumo-disabled-text-color);
|
|
17128
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
17129
|
+
}
|
|
17130
|
+
|
|
17131
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
|
|
17132
|
+
display: none;
|
|
17133
|
+
}
|
|
17134
|
+
|
|
17135
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
17136
|
+
content: '';
|
|
17137
|
+
display: block;
|
|
17138
|
+
height: 0.4em;
|
|
17139
|
+
}
|
|
17140
|
+
|
|
17141
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
17142
|
+
order: 0;
|
|
17143
|
+
padding-bottom: 0.4em;
|
|
17144
|
+
}
|
|
17145
|
+
|
|
17146
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
17147
|
+
order: 1;
|
|
17148
|
+
}
|
|
17149
|
+
|
|
17150
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] + * {
|
|
17151
|
+
order: 2;
|
|
17152
|
+
}
|
|
17153
|
+
|
|
17154
|
+
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
|
|
17155
|
+
order: 3;
|
|
17156
|
+
}
|
|
17157
|
+
`;
|
|
17158
|
+
|
|
17159
|
+
/**
|
|
17160
|
+
* @license
|
|
17161
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
17162
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
17163
|
+
*/
|
|
17164
|
+
|
|
17165
|
+
const requiredField$1 = i$b`
|
|
17166
|
+
[part='label'] {
|
|
17167
|
+
align-self: flex-start;
|
|
17168
|
+
color: var(--lumo-secondary-text-color);
|
|
17169
|
+
font-weight: 500;
|
|
17170
|
+
font-size: var(--lumo-font-size-s);
|
|
17171
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
17172
|
+
transition: color 0.2s;
|
|
17173
|
+
line-height: 1;
|
|
17174
|
+
padding-right: 1em;
|
|
17175
|
+
padding-bottom: 0.5em;
|
|
17176
|
+
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
17177
|
+
negative margin to compensate */
|
|
17178
|
+
padding-top: 0.25em;
|
|
17179
|
+
margin-top: -0.25em;
|
|
17180
|
+
overflow: hidden;
|
|
17181
|
+
white-space: nowrap;
|
|
17182
|
+
text-overflow: ellipsis;
|
|
17183
|
+
position: relative;
|
|
17184
|
+
max-width: 100%;
|
|
17185
|
+
box-sizing: border-box;
|
|
17186
|
+
}
|
|
17187
|
+
|
|
17188
|
+
:host([has-label])::before {
|
|
17189
|
+
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
17190
|
+
}
|
|
17191
|
+
|
|
17192
|
+
:host([has-label][theme~='small'])::before {
|
|
17193
|
+
margin-top: calc(var(--lumo-font-size-xs) * 1.5);
|
|
17194
|
+
}
|
|
17195
|
+
|
|
17196
|
+
:host([has-label]) {
|
|
17197
|
+
padding-top: var(--lumo-space-m);
|
|
17198
|
+
}
|
|
17199
|
+
|
|
17200
|
+
:host([has-label]) ::slotted([slot='tooltip']) {
|
|
17201
|
+
--vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
|
|
17202
|
+
}
|
|
17203
|
+
|
|
17204
|
+
:host([required]) [part='required-indicator']::after {
|
|
17205
|
+
content: var(--lumo-required-field-indicator, '\\2022');
|
|
17206
|
+
transition: opacity 0.2s;
|
|
17207
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
17208
|
+
position: absolute;
|
|
17209
|
+
right: 0;
|
|
17210
|
+
width: 1em;
|
|
17211
|
+
text-align: center;
|
|
17212
|
+
}
|
|
17213
|
+
|
|
17214
|
+
:host([invalid]) [part='required-indicator']::after {
|
|
17215
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
17216
|
+
}
|
|
17217
|
+
|
|
17218
|
+
[part='error-message'] {
|
|
17219
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
17220
|
+
font-size: var(--lumo-font-size-xs);
|
|
17221
|
+
line-height: var(--lumo-line-height-xs);
|
|
17222
|
+
color: var(--lumo-error-text-color);
|
|
17223
|
+
will-change: max-height;
|
|
17224
|
+
transition: 0.4s max-height;
|
|
17225
|
+
max-height: 5em;
|
|
17226
|
+
}
|
|
17227
|
+
|
|
17228
|
+
:host([has-error-message]) [part='error-message']::before,
|
|
17229
|
+
:host([has-error-message]) [part='error-message']::after {
|
|
17230
|
+
content: '';
|
|
17231
|
+
display: block;
|
|
17232
|
+
height: 0.4em;
|
|
17233
|
+
}
|
|
17234
|
+
|
|
17235
|
+
:host(:not([invalid])) [part='error-message'] {
|
|
17236
|
+
max-height: 0;
|
|
17237
|
+
overflow: hidden;
|
|
17238
|
+
}
|
|
17239
|
+
|
|
17240
|
+
/* RTL specific styles */
|
|
17241
|
+
|
|
17242
|
+
:host([dir='rtl']) [part='label'] {
|
|
17243
|
+
margin-left: 0;
|
|
17244
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
17245
|
+
}
|
|
17246
|
+
|
|
17247
|
+
:host([dir='rtl']) [part='label'] {
|
|
17248
|
+
padding-left: 1em;
|
|
17249
|
+
padding-right: 0;
|
|
17250
|
+
}
|
|
17251
|
+
|
|
17252
|
+
:host([dir='rtl']) [part='required-indicator']::after {
|
|
17253
|
+
right: auto;
|
|
17254
|
+
left: 0;
|
|
17255
|
+
}
|
|
17256
|
+
|
|
17257
|
+
:host([dir='rtl']) [part='error-message'] {
|
|
17258
|
+
margin-left: 0;
|
|
17259
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
17260
|
+
}
|
|
17261
|
+
`;
|
|
17262
|
+
|
|
17263
|
+
registerStyles('', requiredField$1, { moduleId: 'lumo-required-field' });
|
|
17264
|
+
|
|
17265
|
+
/**
|
|
17266
|
+
* @license
|
|
17267
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
17268
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
17269
|
+
*/
|
|
17270
|
+
|
|
17271
|
+
const inputField$2 = i$b`
|
|
17024
17272
|
:host {
|
|
17025
17273
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
17026
17274
|
color: var(--lumo-body-text-color);
|
|
@@ -17156,13 +17404,13 @@ const inputField$1 = i$1`
|
|
|
17156
17404
|
}
|
|
17157
17405
|
`;
|
|
17158
17406
|
|
|
17159
|
-
const inputFieldShared$
|
|
17407
|
+
const inputFieldShared$3 = [requiredField$1, fieldButton$2, helper$1, inputField$2];
|
|
17160
17408
|
|
|
17161
|
-
registerStyles('', inputFieldShared$
|
|
17409
|
+
registerStyles('', inputFieldShared$3, {
|
|
17162
17410
|
moduleId: 'lumo-input-field-shared-styles',
|
|
17163
17411
|
});
|
|
17164
17412
|
|
|
17165
|
-
const datePicker = i$
|
|
17413
|
+
const datePicker = i$b`
|
|
17166
17414
|
:host {
|
|
17167
17415
|
outline: none;
|
|
17168
17416
|
}
|
|
@@ -17190,7 +17438,7 @@ const datePicker = i$1`
|
|
|
17190
17438
|
}
|
|
17191
17439
|
`;
|
|
17192
17440
|
|
|
17193
|
-
registerStyles('vaadin-date-picker', [inputFieldShared$
|
|
17441
|
+
registerStyles('vaadin-date-picker', [inputFieldShared$3, datePicker], { moduleId: 'lumo-date-picker' });
|
|
17194
17442
|
|
|
17195
17443
|
/**
|
|
17196
17444
|
@license
|
|
@@ -18867,13 +19115,39 @@ const PositionMixin = (superClass) =>
|
|
|
18867
19115
|
}
|
|
18868
19116
|
};
|
|
18869
19117
|
|
|
19118
|
+
/**
|
|
19119
|
+
* @license
|
|
19120
|
+
* Copyright 2019 Google LLC
|
|
19121
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
19122
|
+
*/
|
|
19123
|
+
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;
|
|
19124
|
+
|
|
19125
|
+
/**
|
|
19126
|
+
* @license
|
|
19127
|
+
* Copyright 2017 Google LLC
|
|
19128
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
19129
|
+
*/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");
|
|
19130
|
+
|
|
19131
|
+
/**
|
|
19132
|
+
* @license
|
|
19133
|
+
* Copyright 2017 Google LLC
|
|
19134
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
19135
|
+
*/
|
|
19136
|
+
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};
|
|
19137
|
+
|
|
19138
|
+
/**
|
|
19139
|
+
* @license
|
|
19140
|
+
* Copyright 2017 Google LLC
|
|
19141
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
19142
|
+
*/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");
|
|
19143
|
+
|
|
18870
19144
|
/**
|
|
18871
19145
|
* @license
|
|
18872
19146
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
18873
19147
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
18874
19148
|
*/
|
|
18875
19149
|
|
|
18876
|
-
const overlayStyles = i$
|
|
19150
|
+
const overlayStyles = i$7`
|
|
18877
19151
|
:host {
|
|
18878
19152
|
z-index: 200;
|
|
18879
19153
|
position: fixed;
|
|
@@ -18939,7 +19213,7 @@ const overlayStyles = i$1`
|
|
|
18939
19213
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
18940
19214
|
*/
|
|
18941
19215
|
|
|
18942
|
-
const datePickerOverlayStyles = i$
|
|
19216
|
+
const datePickerOverlayStyles = i$9`
|
|
18943
19217
|
[part='overlay'] {
|
|
18944
19218
|
display: flex;
|
|
18945
19219
|
flex: auto;
|
|
@@ -21248,7 +21522,7 @@ class DomRepeat extends domRepeatBase {
|
|
|
21248
21522
|
if (prop == this.as) {
|
|
21249
21523
|
this.items[idx] = value;
|
|
21250
21524
|
}
|
|
21251
|
-
let path = translate$
|
|
21525
|
+
let path = translate$1(this.as, `${JSCompiler_renameProperty('items', this)}.${idx}`, prop);
|
|
21252
21526
|
this.notifyPath(path, value);
|
|
21253
21527
|
}
|
|
21254
21528
|
}
|
|
@@ -21933,7 +22207,7 @@ const MonthCalendarMixin = (superClass) =>
|
|
|
21933
22207
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
21934
22208
|
*/
|
|
21935
22209
|
|
|
21936
|
-
const monthCalendarStyles = i$
|
|
22210
|
+
const monthCalendarStyles = i$9`
|
|
21937
22211
|
:host {
|
|
21938
22212
|
display: block;
|
|
21939
22213
|
}
|
|
@@ -23253,7 +23527,7 @@ const DatePickerOverlayContentMixin = (superClass) =>
|
|
|
23253
23527
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
23254
23528
|
*/
|
|
23255
23529
|
|
|
23256
|
-
const overlayContentStyles = i$
|
|
23530
|
+
const overlayContentStyles = i$9`
|
|
23257
23531
|
:host {
|
|
23258
23532
|
display: flex;
|
|
23259
23533
|
flex-direction: column;
|
|
@@ -23957,13 +24231,39 @@ const InputControlMixin = (superclass) =>
|
|
|
23957
24231
|
*/
|
|
23958
24232
|
};
|
|
23959
24233
|
|
|
24234
|
+
/**
|
|
24235
|
+
* @license
|
|
24236
|
+
* Copyright 2019 Google LLC
|
|
24237
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24238
|
+
*/
|
|
24239
|
+
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;
|
|
24240
|
+
|
|
24241
|
+
/**
|
|
24242
|
+
* @license
|
|
24243
|
+
* Copyright 2017 Google LLC
|
|
24244
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24245
|
+
*/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");
|
|
24246
|
+
|
|
24247
|
+
/**
|
|
24248
|
+
* @license
|
|
24249
|
+
* Copyright 2017 Google LLC
|
|
24250
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24251
|
+
*/
|
|
24252
|
+
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};
|
|
24253
|
+
|
|
24254
|
+
/**
|
|
24255
|
+
* @license
|
|
24256
|
+
* Copyright 2017 Google LLC
|
|
24257
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24258
|
+
*/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");
|
|
24259
|
+
|
|
23960
24260
|
/**
|
|
23961
24261
|
* @license
|
|
23962
24262
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
23963
24263
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
23964
24264
|
*/
|
|
23965
24265
|
|
|
23966
|
-
const clearButton = i$
|
|
24266
|
+
const clearButton = i$3`
|
|
23967
24267
|
[part='clear-button'] {
|
|
23968
24268
|
display: none;
|
|
23969
24269
|
cursor: default;
|
|
@@ -23984,7 +24284,7 @@ const clearButton = i$1`
|
|
|
23984
24284
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
23985
24285
|
*/
|
|
23986
24286
|
|
|
23987
|
-
const fieldShared = i$
|
|
24287
|
+
const fieldShared = i$3`
|
|
23988
24288
|
:host {
|
|
23989
24289
|
display: inline-flex;
|
|
23990
24290
|
outline: none;
|
|
@@ -24026,7 +24326,7 @@ const fieldShared = i$1`
|
|
|
24026
24326
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
24027
24327
|
*/
|
|
24028
24328
|
|
|
24029
|
-
const inputFieldContainer = i$
|
|
24329
|
+
const inputFieldContainer = i$3`
|
|
24030
24330
|
[class$='container'] {
|
|
24031
24331
|
display: flex;
|
|
24032
24332
|
flex-direction: column;
|
|
@@ -24042,7 +24342,7 @@ const inputFieldContainer = i$1`
|
|
|
24042
24342
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
24043
24343
|
*/
|
|
24044
24344
|
|
|
24045
|
-
const inputFieldShared$
|
|
24345
|
+
const inputFieldShared$2 = [fieldShared, inputFieldContainer, clearButton];
|
|
24046
24346
|
|
|
24047
24347
|
/**
|
|
24048
24348
|
* @license
|
|
@@ -25334,7 +25634,7 @@ const DatePickerMixin = (subclass) =>
|
|
|
25334
25634
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
25335
25635
|
*/
|
|
25336
25636
|
|
|
25337
|
-
const datePickerStyles = i$
|
|
25637
|
+
const datePickerStyles = i$9`
|
|
25338
25638
|
:host([opened]) {
|
|
25339
25639
|
pointer-events: auto;
|
|
25340
25640
|
}
|
|
@@ -25355,7 +25655,7 @@ const datePickerStyles = i$1`
|
|
|
25355
25655
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
25356
25656
|
*/
|
|
25357
25657
|
|
|
25358
|
-
registerStyles('vaadin-date-picker', [inputFieldShared$
|
|
25658
|
+
registerStyles('vaadin-date-picker', [inputFieldShared$2, datePickerStyles], { moduleId: 'vaadin-date-picker-styles' });
|
|
25359
25659
|
|
|
25360
25660
|
/**
|
|
25361
25661
|
* `<vaadin-date-picker>` is an input field that allows to enter a date by typing or by selecting from a calendar overlay.
|
|
@@ -30660,6 +30960,16 @@ const DateInput = class {
|
|
|
30660
30960
|
index.registerInstance(this, hostRef);
|
|
30661
30961
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
30662
30962
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
30963
|
+
/**
|
|
30964
|
+
* Client custom styling via inline style
|
|
30965
|
+
*/
|
|
30966
|
+
this.clientStyling = '';
|
|
30967
|
+
/**
|
|
30968
|
+
* Emit event on click
|
|
30969
|
+
*/
|
|
30970
|
+
this.emitOnClick = false;
|
|
30971
|
+
this.limitStylingAppends = false;
|
|
30972
|
+
this.showTooltip = false;
|
|
30663
30973
|
this.touched = false;
|
|
30664
30974
|
this.formatDate = (dateParts) => {
|
|
30665
30975
|
const { year, month, day } = dateParts;
|
|
@@ -30680,22 +30990,6 @@ const DateInput = class {
|
|
|
30680
30990
|
sheet.innerHTML = this.clientStyling;
|
|
30681
30991
|
this.stylingContainer.prepend(sheet);
|
|
30682
30992
|
};
|
|
30683
|
-
this.name = undefined;
|
|
30684
|
-
this.displayName = undefined;
|
|
30685
|
-
this.placeholder = undefined;
|
|
30686
|
-
this.validation = undefined;
|
|
30687
|
-
this.defaultValue = undefined;
|
|
30688
|
-
this.autofilled = undefined;
|
|
30689
|
-
this.tooltip = undefined;
|
|
30690
|
-
this.language = undefined;
|
|
30691
|
-
this.emitValue = undefined;
|
|
30692
|
-
this.clientStyling = '';
|
|
30693
|
-
this.dateFormat = undefined;
|
|
30694
|
-
this.emitOnClick = false;
|
|
30695
|
-
this.errorMessage = undefined;
|
|
30696
|
-
this.isValid = undefined;
|
|
30697
|
-
this.limitStylingAppends = false;
|
|
30698
|
-
this.showTooltip = false;
|
|
30699
30993
|
}
|
|
30700
30994
|
validityChanged() {
|
|
30701
30995
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -30773,13 +31067,13 @@ const DateInput = class {
|
|
|
30773
31067
|
}
|
|
30774
31068
|
setErrorMessage() {
|
|
30775
31069
|
if (isBefore(this.valueAsDate, this.minDate) || isAfter(this.valueAsDate, this.maxDate)) {
|
|
30776
|
-
return translate$
|
|
31070
|
+
return translate$2('dateError2', this.language);
|
|
30777
31071
|
}
|
|
30778
31072
|
if (this.inputReference.validity.rangeUnderflow || this.inputReference.validity.rangeOverflow) {
|
|
30779
|
-
return translate$
|
|
31073
|
+
return translate$2('dateError', this.language, { values: { min: this.validation.min, max: this.validation.max } });
|
|
30780
31074
|
}
|
|
30781
31075
|
if (this.inputReference.validity.valueMissing) {
|
|
30782
|
-
return translate$
|
|
31076
|
+
return translate$2('requiredError', this.language);
|
|
30783
31077
|
}
|
|
30784
31078
|
}
|
|
30785
31079
|
renderTooltip() {
|
|
@@ -30794,7 +31088,7 @@ const DateInput = class {
|
|
|
30794
31088
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
30795
31089
|
}
|
|
30796
31090
|
return index.h("div", { key: 'fc9cd0a618c7b6e62962c0800399a470fffa1fc4', class: `date__wrapper ${this.autofilled ? 'date__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("label", { key: 'abc7c1715dd2d0c60dd2ac6d028355de910be501', class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("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 }), index.h("small", { key: 'd802ea7b25a64802aca3a7491107fcee7af2a23c', class: 'date__error-message' }, this.errorMessage), this.tooltip &&
|
|
30797
|
-
index.h("img", { key: '46edd200a9ce9eba27414a6434c6b3d5e9dc9964', class: 'date__tooltip-icon', src: tooltipIconSvg
|
|
31091
|
+
index.h("img", { key: '46edd200a9ce9eba27414a6434c6b3d5e9dc9964', class: 'date__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
30798
31092
|
}
|
|
30799
31093
|
get element() { return index.getElement(this); }
|
|
30800
31094
|
static get watchers() { return {
|
|
@@ -30812,6 +31106,12 @@ const EmailInput = class {
|
|
|
30812
31106
|
index.registerInstance(this, hostRef);
|
|
30813
31107
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
30814
31108
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
31109
|
+
/**
|
|
31110
|
+
* Client custom styling via inline style
|
|
31111
|
+
*/
|
|
31112
|
+
this.clientStyling = '';
|
|
31113
|
+
this.limitStylingAppends = false;
|
|
31114
|
+
this.showTooltip = false;
|
|
30815
31115
|
this.validationPattern = '';
|
|
30816
31116
|
this.touched = false;
|
|
30817
31117
|
this.handleInput = (event) => {
|
|
@@ -30836,21 +31136,6 @@ const EmailInput = class {
|
|
|
30836
31136
|
sheet.innerHTML = this.clientStyling;
|
|
30837
31137
|
this.stylingContainer.prepend(sheet);
|
|
30838
31138
|
};
|
|
30839
|
-
this.name = undefined;
|
|
30840
|
-
this.displayName = undefined;
|
|
30841
|
-
this.placeholder = undefined;
|
|
30842
|
-
this.validation = undefined;
|
|
30843
|
-
this.defaultValue = undefined;
|
|
30844
|
-
this.autofilled = undefined;
|
|
30845
|
-
this.tooltip = undefined;
|
|
30846
|
-
this.language = undefined;
|
|
30847
|
-
this.emitValue = undefined;
|
|
30848
|
-
this.isDuplicateInput = undefined;
|
|
30849
|
-
this.clientStyling = '';
|
|
30850
|
-
this.errorMessage = undefined;
|
|
30851
|
-
this.isValid = undefined;
|
|
30852
|
-
this.limitStylingAppends = false;
|
|
30853
|
-
this.showTooltip = false;
|
|
30854
31139
|
}
|
|
30855
31140
|
validityChanged() {
|
|
30856
31141
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -30915,18 +31200,18 @@ const EmailInput = class {
|
|
|
30915
31200
|
if (this.inputReference.validity.patternMismatch) {
|
|
30916
31201
|
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
30917
31202
|
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
30918
|
-
return translate$
|
|
31203
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
30919
31204
|
}
|
|
30920
31205
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
30921
|
-
return translate$
|
|
31206
|
+
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
30922
31207
|
}
|
|
30923
31208
|
if (this.inputReference.validity.valueMissing) {
|
|
30924
|
-
return translate$
|
|
31209
|
+
return translate$2('requiredError', this.language);
|
|
30925
31210
|
}
|
|
30926
31211
|
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
30927
31212
|
const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
|
|
30928
31213
|
const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
|
|
30929
|
-
return translate$
|
|
31214
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
30930
31215
|
}
|
|
30931
31216
|
}
|
|
30932
31217
|
renderTooltip() {
|
|
@@ -30941,7 +31226,7 @@ const EmailInput = class {
|
|
|
30941
31226
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
30942
31227
|
}
|
|
30943
31228
|
return index.h("div", { key: '23ac67984ab7a0f4db01e5fe01f4f326b4c6a912', class: `email__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'aa2405e435aea20f1678dd74776a8ce4094bc95b', class: 'email__wrapper--flex' }, index.h("label", { key: '970b83bbcf082d1721c1647993fecd076939b65d', class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '2f03eaf161aab9b45282c1bc0de15bea8455427c', class: 'email__wrapper--relative' }, this.tooltip &&
|
|
30944
|
-
index.h("img", { key: '3c34b91f0b478cf04f5aabc5fdd33a8ed73d091b', class: 'email__tooltip-icon', src: tooltipIconSvg
|
|
31229
|
+
index.h("img", { key: '3c34b91f0b478cf04f5aabc5fdd33a8ed73d091b', class: 'email__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("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 }), index.h("small", { key: 'edb6660d958cc5d0cb41b0db195bd7e847ecbefe', class: 'email__error-message' }, this.errorMessage));
|
|
30945
31230
|
}
|
|
30946
31231
|
static get watchers() { return {
|
|
30947
31232
|
"isValid": ["validityChanged"],
|
|
@@ -30950,339 +31235,38 @@ const EmailInput = class {
|
|
|
30950
31235
|
};
|
|
30951
31236
|
EmailInput.style = EmailInputStyle0;
|
|
30952
31237
|
|
|
30953
|
-
const DEFAULT_LANGUAGE$1 = 'en';
|
|
30954
|
-
const TRANSLATIONS$1 = {
|
|
30955
|
-
"en": {
|
|
30956
|
-
"termsandconditions__description": "Needed to prove user accepted terms and conditions.",
|
|
30957
|
-
"emailmarketing__description": "Needed to prove email marketing consent.",
|
|
30958
|
-
"sms__description": "Needed to prove sms marketing consent.",
|
|
30959
|
-
"3rdparty__description": "Needed to prove 3rd party marketing consent.",
|
|
30960
|
-
"noDataFound": "No data found for consents.",
|
|
30961
|
-
"loading": "Loading...please wait",
|
|
30962
|
-
"requiredError": "This field is mandatory",
|
|
30963
|
-
},
|
|
30964
|
-
"hu": {
|
|
30965
|
-
"termsandconditions__description": "Szükséges annak igazolására, hogy a felhasználó elfogadta a feltételeket és kikötéseket.",
|
|
30966
|
-
"emailmarketing__description": "Szükséges annak igazolására, hogy a felhasználó beleegyezett az e-mail marketingbe.",
|
|
30967
|
-
"sms__description": "Szükséges annak igazolására, hogy a felhasználó beleegyezett az SMS marketingbe.",
|
|
30968
|
-
"3rdparty__description": "Szükséges annak igazolására, hogy a felhasználó beleegyezett a harmadik fél általi marketingbe.",
|
|
30969
|
-
"noDataFound": "Nincs adat a hozzájárulásokról.",
|
|
30970
|
-
"loading": "Betöltés...kérem várjon",
|
|
30971
|
-
"requiredError": "Ez a mező kötelező"
|
|
30972
|
-
},
|
|
30973
|
-
"hr": {
|
|
30974
|
-
"termsandconditions__description": "Potrebno za dokazivanje da je korisnik prihvatio uvjete i odredbe.",
|
|
30975
|
-
"emailmarketing__description": "Potrebno za dokazivanje pristanka na email marketing.",
|
|
30976
|
-
"sms__description": "Potrebno za dokazivanje pristanka na SMS marketing.",
|
|
30977
|
-
"3rdparty__description": "Potrebno za dokazivanje pristanka na marketing trećih strana.",
|
|
30978
|
-
"noDataFound": "Nema podataka o privolama.",
|
|
30979
|
-
"loading": "Učitavanje...molimo pričekajte",
|
|
30980
|
-
"requiredError": "Ovo polje je obavezno"
|
|
30981
|
-
},
|
|
30982
|
-
"tr": {
|
|
30983
|
-
"termsandconditions__description": "Kullanıcının şartlar ve koşulları kabul ettiğini kanıtlamak için gereklidir.",
|
|
30984
|
-
"emailmarketing__description": "E-posta pazarlama onayını kanıtlamak için gereklidir.",
|
|
30985
|
-
"sms__description": "SMS pazarlama onayını kanıtlamak için gereklidir.",
|
|
30986
|
-
"3rdparty__description": "Üçüncü taraf pazarlama onayını kanıtlamak için gereklidir.",
|
|
30987
|
-
"noDataFound": "Onaylarla ilgili veri bulunamadı.",
|
|
30988
|
-
"loading": "Yükleniyor...lütfen bekleyin",
|
|
30989
|
-
"requiredError": "Bu alan zorunludur"
|
|
30990
|
-
},
|
|
30991
|
-
"pt-br": {
|
|
30992
|
-
"termsandconditions__description": "Necessário para comprovar que o usuário aceitou os termos e condições.",
|
|
30993
|
-
"emailmarketing__description": "Necessário para comprovar o consentimento para marketing por e-mail.",
|
|
30994
|
-
"sms__description": "Necessário para comprovar o consentimento para marketing por SMS.",
|
|
30995
|
-
"3rdparty__description": "Necessário para comprovar o consentimento para marketing de terceiros.",
|
|
30996
|
-
"noDataFound": "Nenhum dado encontrado para consentimentos.",
|
|
30997
|
-
"loading": "Carregando...por favor aguarde",
|
|
30998
|
-
"requiredError": "Este campo é obrigatório"
|
|
30999
|
-
},
|
|
31000
|
-
"es-mx": {
|
|
31001
|
-
"termsandconditions__description": "Necesario para demostrar que el usuario aceptó los términos y condiciones.",
|
|
31002
|
-
"emailmarketing__description": "Necesario para demostrar el consentimiento para el marketing por correo electrónico.",
|
|
31003
|
-
"sms__description": "Necesario para demostrar el consentimiento para el marketing por SMS.",
|
|
31004
|
-
"3rdparty__description": "Necesario para demostrar el consentimiento para el marketing de terceros.",
|
|
31005
|
-
"noDataFound": "No se encontraron datos para los consentimientos.",
|
|
31006
|
-
"loading": "Cargando...por favor espera",
|
|
31007
|
-
"requiredError": "Este campo es obligatorio"
|
|
31008
|
-
}
|
|
31009
|
-
};
|
|
31010
|
-
const translate$1 = (key, customLang, values) => {
|
|
31011
|
-
const lang = customLang;
|
|
31012
|
-
let translation = TRANSLATIONS$1[lang !== undefined ? lang : DEFAULT_LANGUAGE$1][key];
|
|
31013
|
-
if (values !== undefined) {
|
|
31014
|
-
for (const [key, value] of Object.entries(values.values)) {
|
|
31015
|
-
const regex = new RegExp(`{${key}}`, 'g');
|
|
31016
|
-
translation = translation.replace(regex, value);
|
|
31017
|
-
}
|
|
31018
|
-
}
|
|
31019
|
-
return translation;
|
|
31020
|
-
};
|
|
31021
|
-
const getTranslations$1 = (url) => {
|
|
31022
|
-
// fetch url, get the data, replace the TRANSLATIONS content
|
|
31023
|
-
return new Promise((resolve) => {
|
|
31024
|
-
fetch(url)
|
|
31025
|
-
.then((res) => res.json())
|
|
31026
|
-
.then((data) => {
|
|
31027
|
-
Object.keys(data).forEach((item) => {
|
|
31028
|
-
for (let key in data[item]) {
|
|
31029
|
-
TRANSLATIONS$1[item][key] = data[item][key];
|
|
31030
|
-
}
|
|
31031
|
-
});
|
|
31032
|
-
resolve(true);
|
|
31033
|
-
});
|
|
31034
|
-
});
|
|
31035
|
-
};
|
|
31036
|
-
|
|
31037
|
-
const tooltipIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==';
|
|
31038
|
-
|
|
31039
|
-
const generalConsentsCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:\"Roboto\";font-style:normal}.checkbox .checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.checkbox .checkbox__wrapper .checkbox__wrapper--relative{position:relative}.checkbox .checkbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox .checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.checkbox .checkbox__label .checkbox__label-text{font-size:var(--emw--font-size-medium, 16px)}.checkbox .checkbox__label .checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox .checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox .checkbox__tooltip-icon{width:16px;height:auto}.checkbox .checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox .checkbox__tooltip.visible{opacity:1}";
|
|
31040
|
-
const GeneralConsentsStyle0 = generalConsentsCss;
|
|
31041
|
-
|
|
31042
|
-
const GeneralConsents = class {
|
|
31043
|
-
constructor(hostRef) {
|
|
31044
|
-
index.registerInstance(this, hostRef);
|
|
31045
|
-
this.value = '';
|
|
31046
|
-
this.registerErrors = false;
|
|
31047
|
-
this.setClientStyling = () => {
|
|
31048
|
-
let sheet = document.createElement('style');
|
|
31049
|
-
sheet.innerHTML = this.clientStyling;
|
|
31050
|
-
this.host.shadowRoot.prepend(sheet);
|
|
31051
|
-
};
|
|
31052
|
-
this.setClientStylingURL = () => {
|
|
31053
|
-
let url = new URL(this.clientStylingUrl);
|
|
31054
|
-
let cssFile = document.createElement('style');
|
|
31055
|
-
fetch(url.href)
|
|
31056
|
-
.then((res) => res.text())
|
|
31057
|
-
.then((data) => {
|
|
31058
|
-
cssFile.innerHTML = data;
|
|
31059
|
-
this.clientStyling = data;
|
|
31060
|
-
setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
|
|
31061
|
-
});
|
|
31062
|
-
};
|
|
31063
|
-
//Debounce to stop user from multiple calls
|
|
31064
|
-
this.debouncedHandleClick = this.debounce(this.handleClick, 500);
|
|
31065
|
-
this.endpoint = undefined;
|
|
31066
|
-
this.language = 'en';
|
|
31067
|
-
this.clientStyling = '';
|
|
31068
|
-
this.clientStylingUrl = '';
|
|
31069
|
-
this.translationUrl = '';
|
|
31070
|
-
this.name = undefined;
|
|
31071
|
-
this.tooltip = undefined;
|
|
31072
|
-
this.isLoading = true;
|
|
31073
|
-
this.consentsData = undefined;
|
|
31074
|
-
this.showTooltip = false;
|
|
31075
|
-
this.playerConsents = [];
|
|
31076
|
-
this.isValid = undefined;
|
|
31077
|
-
}
|
|
31078
|
-
handleStylingChange(newValue, oldValue) {
|
|
31079
|
-
if (newValue !== oldValue)
|
|
31080
|
-
this.setClientStyling();
|
|
31081
|
-
}
|
|
31082
|
-
handleStylingUrlChange(newValue, oldValue) {
|
|
31083
|
-
if (newValue !== oldValue)
|
|
31084
|
-
this.setClientStylingURL();
|
|
31085
|
-
}
|
|
31086
|
-
handleNewTranslations() {
|
|
31087
|
-
this.isLoading = true;
|
|
31088
|
-
getTranslations$1(this.translationUrl).then(() => {
|
|
31089
|
-
this.isLoading = false;
|
|
31090
|
-
});
|
|
31091
|
-
}
|
|
31092
|
-
//Watch only executes if newVal !== oldVal
|
|
31093
|
-
sendMessage() {
|
|
31094
|
-
window.postMessage({
|
|
31095
|
-
type: 'isConsentsValid',
|
|
31096
|
-
isValid: this.isValid
|
|
31097
|
-
});
|
|
31098
|
-
}
|
|
31099
|
-
//Listener for registration message so the sendConsents is made when the user is heading to the next step
|
|
31100
|
-
messageHandler(e) {
|
|
31101
|
-
//Handle Consents Message
|
|
31102
|
-
if (e.data && e.data.type != "setUpPlayerConsents")
|
|
31103
|
-
return;
|
|
31104
|
-
this.sendConsents(e.data.registerid);
|
|
31105
|
-
}
|
|
31106
|
-
handleClickOutside(event) {
|
|
31107
|
-
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
31108
|
-
return;
|
|
31109
|
-
if (event.composedPath()[0] !== this.tooltipReference)
|
|
31110
|
-
this.showTooltip = false;
|
|
31111
|
-
}
|
|
31112
|
-
async componentWillLoad() {
|
|
31113
|
-
if (this.translationUrl.length > 2) {
|
|
31114
|
-
await getTranslations$1(this.translationUrl);
|
|
31115
|
-
}
|
|
31116
|
-
this.getConsents();
|
|
31117
|
-
}
|
|
31118
|
-
addTranslation(field) {
|
|
31119
|
-
const lang = TRANSLATIONS$1[this.language];
|
|
31120
|
-
if (TRANSLATIONS$1[lang][field.name]) {
|
|
31121
|
-
Object.keys(TRANSLATIONS$1[this.language][field.name]).forEach((key) => {
|
|
31122
|
-
field[key] = TRANSLATIONS$1[this.language][field.name][key];
|
|
31123
|
-
});
|
|
31124
|
-
}
|
|
31125
|
-
}
|
|
31126
|
-
getConsents() {
|
|
31127
|
-
this.isLoading = true;
|
|
31128
|
-
this.registerErrors = false;
|
|
31129
|
-
const url = new URL(`${this.endpoint}/api/v2/gm/legislation/consents`), headers = {
|
|
31130
|
-
'Content-Type': 'application/json',
|
|
31131
|
-
'Accept': 'application/json'
|
|
31132
|
-
}, options = {
|
|
31133
|
-
method: 'GET',
|
|
31134
|
-
headers
|
|
31135
|
-
};
|
|
31136
|
-
fetch(url.href, options)
|
|
31137
|
-
.then((res) => {
|
|
31138
|
-
if (!res.ok) {
|
|
31139
|
-
this.registerErrors = true;
|
|
31140
|
-
return res.json().then(error => {
|
|
31141
|
-
return console.error(error);
|
|
31142
|
-
});
|
|
31143
|
-
}
|
|
31144
|
-
return res.json();
|
|
31145
|
-
})
|
|
31146
|
-
.then((data) => {
|
|
31147
|
-
if (!this.registerErrors) {
|
|
31148
|
-
this.consentsData = data;
|
|
31149
|
-
//If consents are in the localStorage user it instead of the one from the call
|
|
31150
|
-
if (localStorage.getItem("playerConsents")) {
|
|
31151
|
-
try {
|
|
31152
|
-
this.playerConsents = JSON.parse(localStorage.getItem('playerConsents'));
|
|
31153
|
-
}
|
|
31154
|
-
catch (error) {
|
|
31155
|
-
console.error(error);
|
|
31156
|
-
}
|
|
31157
|
-
return;
|
|
31158
|
-
}
|
|
31159
|
-
this.playerConsents = this.consentsData.map((consent) => ({
|
|
31160
|
-
status: '3',
|
|
31161
|
-
tagCode: consent.tagCode,
|
|
31162
|
-
}));
|
|
31163
|
-
//Setup default localStorage consents
|
|
31164
|
-
localStorage.setItem('playerConsents', JSON.stringify(this.playerConsents));
|
|
31165
|
-
}
|
|
31166
|
-
})
|
|
31167
|
-
.catch((err) => {
|
|
31168
|
-
console.error(err);
|
|
31169
|
-
})
|
|
31170
|
-
.finally(() => {
|
|
31171
|
-
this.isLoading = false;
|
|
31172
|
-
});
|
|
31173
|
-
}
|
|
31174
|
-
sendConsents(registerID) {
|
|
31175
|
-
const url = new URL(`${this.endpoint}/api/v2/gm/legislation/consents`), headers = {
|
|
31176
|
-
'Content-Type': 'application/json',
|
|
31177
|
-
'Accept': 'application/json'
|
|
31178
|
-
}, body = {
|
|
31179
|
-
playerConsents: this.playerConsents,
|
|
31180
|
-
registrationId: registerID
|
|
31181
|
-
}, options = {
|
|
31182
|
-
method: 'POST',
|
|
31183
|
-
body: JSON.stringify(body),
|
|
31184
|
-
headers
|
|
31185
|
-
};
|
|
31186
|
-
fetch(url.href, options)
|
|
31187
|
-
.then((res) => {
|
|
31188
|
-
if (!res.ok) {
|
|
31189
|
-
this.registerErrors = true;
|
|
31190
|
-
}
|
|
31191
|
-
})
|
|
31192
|
-
.catch((err) => {
|
|
31193
|
-
console.error(err);
|
|
31194
|
-
})
|
|
31195
|
-
.finally(() => {
|
|
31196
|
-
this.isLoading = false;
|
|
31197
|
-
});
|
|
31198
|
-
}
|
|
31199
|
-
handleClick(data) {
|
|
31200
|
-
const consent = this.consentsData.find((consent) => data.tagCode === consent.tagCode && data.status === "3" && consent.mustAccept);
|
|
31201
|
-
//Setup value for the consent in localStorage
|
|
31202
|
-
localStorage.setItem('playerConsents', JSON.stringify(this.playerConsents));
|
|
31203
|
-
//Show error for mandatory fields when they are not seleted
|
|
31204
|
-
this[`errorMessage__${data.tagCode}`].innerHTML = consent ? this.setErrorMessage() : "";
|
|
31205
|
-
//Check form validity
|
|
31206
|
-
this.isValid = this.checkValidity();
|
|
31207
|
-
}
|
|
31208
|
-
//Handle the input when user select a consent
|
|
31209
|
-
handleInput(index, event) {
|
|
31210
|
-
const target = event.target;
|
|
31211
|
-
this.playerConsents[index].status = target.checked ? '1' : '3';
|
|
31212
|
-
this.debouncedHandleClick(this.playerConsents[index]);
|
|
31213
|
-
}
|
|
31214
|
-
handleTooltipClick() { this.showTooltip = !this.showTooltip; }
|
|
31215
|
-
debounce(func, delay) {
|
|
31216
|
-
let timer;
|
|
31217
|
-
return function (...args) {
|
|
31218
|
-
clearTimeout(timer);
|
|
31219
|
-
timer = setTimeout(() => {
|
|
31220
|
-
func.apply(this, args);
|
|
31221
|
-
}, delay);
|
|
31222
|
-
};
|
|
31223
|
-
}
|
|
31224
|
-
checkValidity() {
|
|
31225
|
-
const invalidConsents = this.playerConsents.filter((formConsent) => this.consentsData.some((consent) => formConsent.tagCode === consent.tagCode &&
|
|
31226
|
-
consent.mustAccept &&
|
|
31227
|
-
formConsent.status === "3"));
|
|
31228
|
-
return invalidConsents.length === 0;
|
|
31229
|
-
}
|
|
31230
|
-
setErrorMessage() {
|
|
31231
|
-
return translate$1('requiredError', this.language);
|
|
31232
|
-
}
|
|
31233
|
-
render() {
|
|
31234
|
-
if (this.isLoading) {
|
|
31235
|
-
return index.h("p", null, translate$1('loading', this.language));
|
|
31236
|
-
}
|
|
31237
|
-
if (!this.consentsData) {
|
|
31238
|
-
return index.h("p", null, translate$1('noDataFound', this.language));
|
|
31239
|
-
}
|
|
31240
|
-
return (index.h("form", { class: "checkbox" }, this.consentsData.map((consent, index$1) => (index.h("div", { class: `checkbox__wrapper ${consent.tagCode}__input`, ref: (host) => (this[consent.tagCode] = host) }, index.h("input", { class: 'checkbox__input', type: "checkbox", checked: this.playerConsents[index$1].status === '1', id: `${consent.tagCode}__input`, onInput: this.handleInput.bind(this, index$1) }), index.h("label", { class: 'checkbox__label', htmlFor: `${consent.tagCode}__input` }, index.h("div", { class: 'checkbox__label-text', innerHTML: `${translate$1(`${consent.tagCode}__description`, this.language)} ${consent.mustAccept ? '*' : ''}` })), index.h("small", { class: 'checkbox__error-message', ref: (host) => (this[`errorMessage__${consent.tagCode}`] = host) }), index.h("div", { class: 'checkbox__wrapper--relative' }, this.tooltip &&
|
|
31241
|
-
index.h("img", { class: 'checkbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.handleTooltipClick() }), index.h("div", { class: `checkbox__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (host) => this.tooltipReference = host, innerHTML: this.tooltip })))))));
|
|
31242
|
-
}
|
|
31243
|
-
get host() { return index.getElement(this); }
|
|
31244
|
-
static get watchers() { return {
|
|
31245
|
-
"clientStyling": ["handleStylingChange"],
|
|
31246
|
-
"clientStylingUrl": ["handleStylingUrlChange"],
|
|
31247
|
-
"translationUrl": ["handleNewTranslations"],
|
|
31248
|
-
"isValid": ["sendMessage"]
|
|
31249
|
-
}; }
|
|
31250
|
-
};
|
|
31251
|
-
GeneralConsents.style = GeneralConsentsStyle0;
|
|
31252
|
-
|
|
31253
31238
|
const generalInputCss = ":host{display:block;height:100%}";
|
|
31254
31239
|
const GeneralInputStyle0 = generalInputCss;
|
|
31255
31240
|
|
|
31256
31241
|
const GeneralInput = class {
|
|
31257
31242
|
constructor(hostRef) {
|
|
31258
31243
|
index.registerInstance(this, hostRef);
|
|
31244
|
+
/**
|
|
31245
|
+
* Type the general-input should take. Can take the default HTML input values.
|
|
31246
|
+
*/
|
|
31247
|
+
this.type = 'text';
|
|
31248
|
+
/**
|
|
31249
|
+
* Client custom styling via inline style
|
|
31250
|
+
*/
|
|
31251
|
+
this.clientStyling = '';
|
|
31252
|
+
/**
|
|
31253
|
+
* Translations via URL
|
|
31254
|
+
*/
|
|
31255
|
+
this.translationUrl = '';
|
|
31256
|
+
/**
|
|
31257
|
+
* Emit event on click
|
|
31258
|
+
*/
|
|
31259
|
+
this.emitOnClick = false;
|
|
31259
31260
|
this.handleClick = (event) => {
|
|
31260
31261
|
if (this.emitOnClick) {
|
|
31261
31262
|
event.stopPropagation();
|
|
31262
31263
|
window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href);
|
|
31263
31264
|
}
|
|
31264
31265
|
};
|
|
31265
|
-
this.type = 'text';
|
|
31266
|
-
this.name = undefined;
|
|
31267
|
-
this.displayName = undefined;
|
|
31268
|
-
this.placeholder = undefined;
|
|
31269
|
-
this.action = undefined;
|
|
31270
|
-
this.validation = undefined;
|
|
31271
|
-
this.options = undefined;
|
|
31272
|
-
this.language = undefined;
|
|
31273
|
-
this.autofilled = undefined;
|
|
31274
|
-
this.tooltip = undefined;
|
|
31275
|
-
this.defaultValue = undefined;
|
|
31276
|
-
this.emitValue = undefined;
|
|
31277
|
-
this.isDuplicateInput = undefined;
|
|
31278
|
-
this.clientStyling = '';
|
|
31279
|
-
this.dateFormat = undefined;
|
|
31280
|
-
this.translationUrl = '';
|
|
31281
|
-
this.emitOnClick = false;
|
|
31282
31266
|
}
|
|
31283
31267
|
connectedCallback() {
|
|
31284
31268
|
if (this.translationUrl) {
|
|
31285
|
-
getTranslations$
|
|
31269
|
+
getTranslations$1(this.translationUrl);
|
|
31286
31270
|
}
|
|
31287
31271
|
}
|
|
31288
31272
|
renderInput() {
|
|
@@ -31967,6 +31951,36 @@ const GeneralRegistration = class {
|
|
|
31967
31951
|
index.registerInstance(this, hostRef);
|
|
31968
31952
|
this.registrationWidgetLoaded = index.createEvent(this, "registrationWidgetLoaded", 7);
|
|
31969
31953
|
this.registrationStepUpdated = index.createEvent(this, "registrationStepUpdated", 7);
|
|
31954
|
+
/**
|
|
31955
|
+
* Currently selected language
|
|
31956
|
+
*/
|
|
31957
|
+
this.language = 'en';
|
|
31958
|
+
/**
|
|
31959
|
+
* Client custom styling via inline styles
|
|
31960
|
+
*/
|
|
31961
|
+
this.clientStyling = '';
|
|
31962
|
+
/**
|
|
31963
|
+
* Client custom styling via url
|
|
31964
|
+
*/
|
|
31965
|
+
this.clientStylingUrl = '';
|
|
31966
|
+
/**
|
|
31967
|
+
* Translations via URL
|
|
31968
|
+
*/
|
|
31969
|
+
this.translationUrl = '';
|
|
31970
|
+
/**
|
|
31971
|
+
* Affiliate code to be passed in and sent in the registration.
|
|
31972
|
+
*/
|
|
31973
|
+
this.btag = null;
|
|
31974
|
+
/**
|
|
31975
|
+
* Boolean flag that tells inputs to emit an event on click.
|
|
31976
|
+
*/
|
|
31977
|
+
this.emitOnClick = false;
|
|
31978
|
+
this.isConsentValid = false;
|
|
31979
|
+
this.isConsentReady = false;
|
|
31980
|
+
this.isLoading = true;
|
|
31981
|
+
this.forms = [];
|
|
31982
|
+
this.limitStylingAppends = false;
|
|
31983
|
+
this.autofilled = false;
|
|
31970
31984
|
this.listOfInputValues = [];
|
|
31971
31985
|
this.listOfInputValidity = [];
|
|
31972
31986
|
this.listOfActions = [];
|
|
@@ -31994,25 +32008,6 @@ const GeneralRegistration = class {
|
|
|
31994
32008
|
setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
|
|
31995
32009
|
});
|
|
31996
32010
|
};
|
|
31997
|
-
this.endpoint = undefined;
|
|
31998
|
-
this.language = 'en';
|
|
31999
|
-
this.clientStyling = '';
|
|
32000
|
-
this.clientStylingUrl = '';
|
|
32001
|
-
this.translationUrl = '';
|
|
32002
|
-
this.dateFormat = undefined;
|
|
32003
|
-
this.buttonInsideForm = undefined;
|
|
32004
|
-
this.btag = null;
|
|
32005
|
-
this.emitOnClick = false;
|
|
32006
|
-
this.errorMessage = undefined;
|
|
32007
|
-
this.isFormValid = undefined;
|
|
32008
|
-
this.isConsentValid = false;
|
|
32009
|
-
this.isConsentReady = false;
|
|
32010
|
-
this.isLoading = true;
|
|
32011
|
-
this.isLoadingPOST = undefined;
|
|
32012
|
-
this.registrationStep = undefined;
|
|
32013
|
-
this.forms = [];
|
|
32014
|
-
this.limitStylingAppends = false;
|
|
32015
|
-
this.autofilled = false;
|
|
32016
32011
|
}
|
|
32017
32012
|
sendStep() {
|
|
32018
32013
|
this.registrationStepUpdated.emit(this.registrationStep);
|
|
@@ -32544,7 +32539,7 @@ const GeneralRegistration = class {
|
|
|
32544
32539
|
}
|
|
32545
32540
|
;
|
|
32546
32541
|
renderConsents() {
|
|
32547
|
-
return (index.h("div", { class: "consentsContainer" }, index.h("
|
|
32542
|
+
return (index.h("div", { class: "consentsContainer" }, index.h("player-consents", { endpoint: this.endpoint })));
|
|
32548
32543
|
}
|
|
32549
32544
|
renderButtons() {
|
|
32550
32545
|
return (index.h("div", { class: `registration__buttons-wrapper ${this.autofilled ? 'registration__buttons-wrapper--autofilled' : ''}` }, this.isLoadingPOST
|
|
@@ -32576,6 +32571,12 @@ const NumberInput = class {
|
|
|
32576
32571
|
index.registerInstance(this, hostRef);
|
|
32577
32572
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
32578
32573
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
32574
|
+
/**
|
|
32575
|
+
* Client custom styling via inline style
|
|
32576
|
+
*/
|
|
32577
|
+
this.clientStyling = '';
|
|
32578
|
+
this.limitStylingAppends = false;
|
|
32579
|
+
this.showTooltip = false;
|
|
32579
32580
|
this.validationPattern = '';
|
|
32580
32581
|
this.touched = false;
|
|
32581
32582
|
this.handleInput = (event) => {
|
|
@@ -32600,20 +32601,6 @@ const NumberInput = class {
|
|
|
32600
32601
|
sheet.innerHTML = this.clientStyling;
|
|
32601
32602
|
this.stylingContainer.prepend(sheet);
|
|
32602
32603
|
};
|
|
32603
|
-
this.name = undefined;
|
|
32604
|
-
this.displayName = undefined;
|
|
32605
|
-
this.placeholder = undefined;
|
|
32606
|
-
this.validation = undefined;
|
|
32607
|
-
this.defaultValue = undefined;
|
|
32608
|
-
this.autofilled = undefined;
|
|
32609
|
-
this.tooltip = undefined;
|
|
32610
|
-
this.language = undefined;
|
|
32611
|
-
this.emitValue = undefined;
|
|
32612
|
-
this.clientStyling = '';
|
|
32613
|
-
this.errorMessage = undefined;
|
|
32614
|
-
this.isValid = undefined;
|
|
32615
|
-
this.limitStylingAppends = false;
|
|
32616
|
-
this.showTooltip = false;
|
|
32617
32604
|
}
|
|
32618
32605
|
validityChanged() {
|
|
32619
32606
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -32671,13 +32658,13 @@ const NumberInput = class {
|
|
|
32671
32658
|
if (this.inputReference.validity.patternMismatch) {
|
|
32672
32659
|
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
32673
32660
|
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
32674
|
-
return translate$
|
|
32661
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
32675
32662
|
}
|
|
32676
32663
|
if (this.inputReference.validity.rangeUnderflow || this.inputReference.validity.rangeOverflow) {
|
|
32677
|
-
return translate$
|
|
32664
|
+
return translate$2('numberLengthError', this.language, { values: { min: this.validation.min, max: this.validation.max } });
|
|
32678
32665
|
}
|
|
32679
32666
|
if (this.inputReference.validity.valueMissing) {
|
|
32680
|
-
return translate$
|
|
32667
|
+
return translate$2('requiredError', this.language);
|
|
32681
32668
|
}
|
|
32682
32669
|
}
|
|
32683
32670
|
renderTooltip() {
|
|
@@ -32692,7 +32679,7 @@ const NumberInput = class {
|
|
|
32692
32679
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
32693
32680
|
}
|
|
32694
32681
|
return index.h("div", { key: '2032f77ca52b330ae2e8f484d7a0aba60ee7b9d5', class: `number__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '0786901cd928bba86597180f058bff43fba522b6', class: 'number__wrapper--flex' }, index.h("label", { key: 'ff7f39306cef7aeba3e0e4508df03c5a945e748b', class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'dced91223621551472fee374d56f1ad7476f4191', class: 'number__wrapper--relative' }, this.tooltip &&
|
|
32695
|
-
index.h("img", { key: 'a804a983e342e4d117126720a32c4c34a2b267dc', class: 'number__tooltip-icon', src: tooltipIconSvg
|
|
32682
|
+
index.h("img", { key: 'a804a983e342e4d117126720a32c4c34a2b267dc', class: 'number__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("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 }), index.h("small", { key: 'ca11558b5704b69311626736ab84a298449b98d7', class: 'number__error-message' }, this.errorMessage));
|
|
32696
32683
|
}
|
|
32697
32684
|
static get watchers() { return {
|
|
32698
32685
|
"isValid": ["validityChanged"],
|
|
@@ -32735,7 +32722,7 @@ const addLumoGlobalStyles$1 = (id, ...styles) => {
|
|
|
32735
32722
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
32736
32723
|
*/
|
|
32737
32724
|
|
|
32738
|
-
const colorBase = i$
|
|
32725
|
+
const colorBase = i$b`
|
|
32739
32726
|
:host {
|
|
32740
32727
|
/* Base (background) */
|
|
32741
32728
|
--lumo-base-color: #fff;
|
|
@@ -32824,7 +32811,7 @@ const colorBase = i$1`
|
|
|
32824
32811
|
|
|
32825
32812
|
addLumoGlobalStyles$1('color-props', colorBase);
|
|
32826
32813
|
|
|
32827
|
-
const color = i$
|
|
32814
|
+
const color = i$b`
|
|
32828
32815
|
[theme~='dark'] {
|
|
32829
32816
|
/* Base (background) */
|
|
32830
32817
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -32949,7 +32936,7 @@ registerStyles('', color, { moduleId: 'lumo-color' });
|
|
|
32949
32936
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
32950
32937
|
*/
|
|
32951
32938
|
|
|
32952
|
-
const fontIcons$1 = i$
|
|
32939
|
+
const fontIcons$1 = i$b`
|
|
32953
32940
|
@font-face {
|
|
32954
32941
|
font-family: 'lumo-icons';
|
|
32955
32942
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxD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
|
33012
32999
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33013
33000
|
*/
|
|
33014
33001
|
|
|
33015
|
-
const sizing$1 = i$
|
|
33002
|
+
const sizing$1 = i$b`
|
|
33016
33003
|
:host {
|
|
33017
33004
|
--lumo-size-xs: 1.625rem;
|
|
33018
33005
|
--lumo-size-s: 1.875rem;
|
|
@@ -33037,7 +33024,7 @@ addLumoGlobalStyles$1('sizing-props', sizing$1);
|
|
|
33037
33024
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33038
33025
|
*/
|
|
33039
33026
|
|
|
33040
|
-
const spacing$1 = i$
|
|
33027
|
+
const spacing$1 = i$b`
|
|
33041
33028
|
:host {
|
|
33042
33029
|
/* Square */
|
|
33043
33030
|
--lumo-space-xs: 0.25rem;
|
|
@@ -33070,7 +33057,7 @@ addLumoGlobalStyles$1('spacing-props', spacing$1);
|
|
|
33070
33057
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33071
33058
|
*/
|
|
33072
33059
|
|
|
33073
|
-
const style$1 = i$
|
|
33060
|
+
const style$1 = i$b`
|
|
33074
33061
|
:host {
|
|
33075
33062
|
/* Border radius */
|
|
33076
33063
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -33092,7 +33079,7 @@ const style$1 = i$1`
|
|
|
33092
33079
|
/**
|
|
33093
33080
|
* Default values for component-specific custom properties.
|
|
33094
33081
|
*/
|
|
33095
|
-
i$
|
|
33082
|
+
i$b`
|
|
33096
33083
|
html {
|
|
33097
33084
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
33098
33085
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -33108,7 +33095,7 @@ addLumoGlobalStyles$1('style-props', style$1);
|
|
|
33108
33095
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33109
33096
|
*/
|
|
33110
33097
|
|
|
33111
|
-
const font$1 = i$
|
|
33098
|
+
const font$1 = i$b`
|
|
33112
33099
|
:host {
|
|
33113
33100
|
/* prettier-ignore */
|
|
33114
33101
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -33130,7 +33117,7 @@ const font$1 = i$1`
|
|
|
33130
33117
|
}
|
|
33131
33118
|
`;
|
|
33132
33119
|
|
|
33133
|
-
const typography$1 = i$
|
|
33120
|
+
const typography$1 = i$b`
|
|
33134
33121
|
body,
|
|
33135
33122
|
:host {
|
|
33136
33123
|
font-family: var(--lumo-font-family);
|
|
@@ -33233,7 +33220,7 @@ addLumoGlobalStyles$1('typography-props', font$1);
|
|
|
33233
33220
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33234
33221
|
*/
|
|
33235
33222
|
|
|
33236
|
-
const fieldButton = i$
|
|
33223
|
+
const fieldButton$1 = i$b`
|
|
33237
33224
|
[part$='button'] {
|
|
33238
33225
|
flex: none;
|
|
33239
33226
|
width: 1em;
|
|
@@ -33261,7 +33248,7 @@ const fieldButton = i$1`
|
|
|
33261
33248
|
display: block;
|
|
33262
33249
|
}
|
|
33263
33250
|
`;
|
|
33264
|
-
registerStyles('', fieldButton, { moduleId: 'lumo-field-button' });
|
|
33251
|
+
registerStyles('', fieldButton$1, { moduleId: 'lumo-field-button' });
|
|
33265
33252
|
|
|
33266
33253
|
/**
|
|
33267
33254
|
* @license
|
|
@@ -33269,7 +33256,7 @@ registerStyles('', fieldButton, { moduleId: 'lumo-field-button' });
|
|
|
33269
33256
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33270
33257
|
*/
|
|
33271
33258
|
|
|
33272
|
-
const helper = i$
|
|
33259
|
+
const helper = i$b`
|
|
33273
33260
|
:host([has-helper]) [part='helper-text']::before {
|
|
33274
33261
|
content: '';
|
|
33275
33262
|
display: block;
|
|
@@ -33328,7 +33315,7 @@ const helper = i$1`
|
|
|
33328
33315
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33329
33316
|
*/
|
|
33330
33317
|
|
|
33331
|
-
const requiredField = i$
|
|
33318
|
+
const requiredField = i$b`
|
|
33332
33319
|
[part='label'] {
|
|
33333
33320
|
align-self: flex-start;
|
|
33334
33321
|
color: var(--lumo-secondary-text-color);
|
|
@@ -33434,7 +33421,7 @@ registerStyles('', requiredField, { moduleId: 'lumo-required-field' });
|
|
|
33434
33421
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33435
33422
|
*/
|
|
33436
33423
|
|
|
33437
|
-
const inputField = i$
|
|
33424
|
+
const inputField$1 = i$b`
|
|
33438
33425
|
:host {
|
|
33439
33426
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
33440
33427
|
color: var(--lumo-body-text-color);
|
|
@@ -33570,9 +33557,9 @@ const inputField = i$1`
|
|
|
33570
33557
|
}
|
|
33571
33558
|
`;
|
|
33572
33559
|
|
|
33573
|
-
const inputFieldShared = [requiredField, fieldButton, helper, inputField];
|
|
33560
|
+
const inputFieldShared$1 = [requiredField, fieldButton$1, helper, inputField$1];
|
|
33574
33561
|
|
|
33575
|
-
registerStyles('', inputFieldShared, {
|
|
33562
|
+
registerStyles('', inputFieldShared$1, {
|
|
33576
33563
|
moduleId: 'lumo-input-field-shared-styles',
|
|
33577
33564
|
});
|
|
33578
33565
|
|
|
@@ -33582,7 +33569,7 @@ registerStyles('', inputFieldShared, {
|
|
|
33582
33569
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33583
33570
|
*/
|
|
33584
33571
|
|
|
33585
|
-
registerStyles('vaadin-text-field', inputFieldShared, {
|
|
33572
|
+
registerStyles('vaadin-text-field', inputFieldShared$1, {
|
|
33586
33573
|
moduleId: 'lumo-text-field-styles',
|
|
33587
33574
|
});
|
|
33588
33575
|
|
|
@@ -33805,7 +33792,7 @@ const TextFieldMixin = (superClass) =>
|
|
|
33805
33792
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33806
33793
|
*/
|
|
33807
33794
|
|
|
33808
|
-
registerStyles('vaadin-text-field', inputFieldShared$
|
|
33795
|
+
registerStyles('vaadin-text-field', inputFieldShared$2, { moduleId: 'vaadin-text-field-styles' });
|
|
33809
33796
|
|
|
33810
33797
|
/**
|
|
33811
33798
|
* `<vaadin-text-field>` is a web component that allows the user to input and edit text.
|
|
@@ -33951,13 +33938,266 @@ class TextField extends TextFieldMixin(ThemableMixin(ElementMixin(PolymerElement
|
|
|
33951
33938
|
|
|
33952
33939
|
defineCustomElement(TextField);
|
|
33953
33940
|
|
|
33941
|
+
const button = i$b`
|
|
33942
|
+
:host {
|
|
33943
|
+
/* Sizing */
|
|
33944
|
+
--lumo-button-size: var(--lumo-size-m);
|
|
33945
|
+
min-width: calc(var(--lumo-button-size) * 2);
|
|
33946
|
+
height: var(--lumo-button-size);
|
|
33947
|
+
padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
|
|
33948
|
+
margin: var(--lumo-space-xs) 0;
|
|
33949
|
+
box-sizing: border-box;
|
|
33950
|
+
/* Style */
|
|
33951
|
+
font-family: var(--lumo-font-family);
|
|
33952
|
+
font-size: var(--lumo-font-size-m);
|
|
33953
|
+
font-weight: 500;
|
|
33954
|
+
color: var(--_lumo-button-color, var(--lumo-primary-text-color));
|
|
33955
|
+
background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
|
|
33956
|
+
border-radius: var(--lumo-border-radius-m);
|
|
33957
|
+
cursor: var(--lumo-clickable-cursor);
|
|
33958
|
+
-webkit-tap-highlight-color: transparent;
|
|
33959
|
+
-webkit-font-smoothing: antialiased;
|
|
33960
|
+
-moz-osx-font-smoothing: grayscale;
|
|
33961
|
+
flex-shrink: 0;
|
|
33962
|
+
}
|
|
33963
|
+
|
|
33964
|
+
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
|
33965
|
+
[part='label'],
|
|
33966
|
+
[part='prefix'],
|
|
33967
|
+
[part='suffix'] {
|
|
33968
|
+
line-height: var(--lumo-line-height-xs);
|
|
33969
|
+
}
|
|
33970
|
+
|
|
33971
|
+
[part='label'] {
|
|
33972
|
+
padding: calc(var(--lumo-button-size) / 6) 0;
|
|
33973
|
+
}
|
|
33974
|
+
|
|
33975
|
+
:host([theme~='small']) {
|
|
33976
|
+
font-size: var(--lumo-font-size-s);
|
|
33977
|
+
--lumo-button-size: var(--lumo-size-s);
|
|
33978
|
+
}
|
|
33979
|
+
|
|
33980
|
+
:host([theme~='large']) {
|
|
33981
|
+
font-size: var(--lumo-font-size-l);
|
|
33982
|
+
--lumo-button-size: var(--lumo-size-l);
|
|
33983
|
+
}
|
|
33984
|
+
|
|
33985
|
+
/* For interaction states */
|
|
33986
|
+
:host::before,
|
|
33987
|
+
:host::after {
|
|
33988
|
+
content: '';
|
|
33989
|
+
/* We rely on the host always being relative */
|
|
33990
|
+
position: absolute;
|
|
33991
|
+
z-index: 1;
|
|
33992
|
+
inset: 0;
|
|
33993
|
+
background-color: currentColor;
|
|
33994
|
+
border-radius: inherit;
|
|
33995
|
+
opacity: 0;
|
|
33996
|
+
pointer-events: none;
|
|
33997
|
+
}
|
|
33998
|
+
|
|
33999
|
+
/* Hover */
|
|
34000
|
+
|
|
34001
|
+
@media (any-hover: hover) {
|
|
34002
|
+
:host(:hover)::before {
|
|
34003
|
+
opacity: 0.02;
|
|
34004
|
+
}
|
|
34005
|
+
}
|
|
34006
|
+
|
|
34007
|
+
/* Active */
|
|
34008
|
+
|
|
34009
|
+
:host::after {
|
|
34010
|
+
transition: opacity 1.4s, transform 0.1s;
|
|
34011
|
+
filter: blur(8px);
|
|
34012
|
+
}
|
|
34013
|
+
|
|
34014
|
+
:host([active])::before {
|
|
34015
|
+
opacity: 0.05;
|
|
34016
|
+
transition-duration: 0s;
|
|
34017
|
+
}
|
|
34018
|
+
|
|
34019
|
+
:host([active])::after {
|
|
34020
|
+
opacity: 0.1;
|
|
34021
|
+
transition-duration: 0s, 0s;
|
|
34022
|
+
transform: scale(0);
|
|
34023
|
+
}
|
|
34024
|
+
|
|
34025
|
+
/* Keyboard focus */
|
|
34026
|
+
|
|
34027
|
+
:host([focus-ring]) {
|
|
34028
|
+
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
34029
|
+
}
|
|
34030
|
+
|
|
34031
|
+
:host([theme~='primary'][focus-ring]) {
|
|
34032
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
|
|
34033
|
+
}
|
|
34034
|
+
|
|
34035
|
+
/* Types (primary, tertiary, tertiary-inline */
|
|
34036
|
+
|
|
34037
|
+
:host([theme~='tertiary']),
|
|
34038
|
+
:host([theme~='tertiary-inline']) {
|
|
34039
|
+
background-color: transparent !important;
|
|
34040
|
+
min-width: 0;
|
|
34041
|
+
}
|
|
34042
|
+
|
|
34043
|
+
:host([theme~='tertiary']) {
|
|
34044
|
+
padding: 0 calc(var(--lumo-button-size) / 6);
|
|
34045
|
+
}
|
|
34046
|
+
|
|
34047
|
+
:host([theme~='tertiary-inline'])::before {
|
|
34048
|
+
display: none;
|
|
34049
|
+
}
|
|
34050
|
+
|
|
34051
|
+
:host([theme~='tertiary-inline']) {
|
|
34052
|
+
margin: 0;
|
|
34053
|
+
height: auto;
|
|
34054
|
+
padding: 0;
|
|
34055
|
+
line-height: inherit;
|
|
34056
|
+
font-size: inherit;
|
|
34057
|
+
}
|
|
34058
|
+
|
|
34059
|
+
:host([theme~='tertiary-inline']) [part='label'] {
|
|
34060
|
+
padding: 0;
|
|
34061
|
+
overflow: visible;
|
|
34062
|
+
line-height: inherit;
|
|
34063
|
+
}
|
|
34064
|
+
|
|
34065
|
+
:host([theme~='primary']) {
|
|
34066
|
+
background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
|
|
34067
|
+
color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
|
|
34068
|
+
font-weight: 600;
|
|
34069
|
+
min-width: calc(var(--lumo-button-size) * 2.5);
|
|
34070
|
+
}
|
|
34071
|
+
|
|
34072
|
+
:host([theme~='primary'])::before {
|
|
34073
|
+
background-color: black;
|
|
34074
|
+
}
|
|
34075
|
+
|
|
34076
|
+
@media (any-hover: hover) {
|
|
34077
|
+
:host([theme~='primary']:hover)::before {
|
|
34078
|
+
opacity: 0.05;
|
|
34079
|
+
}
|
|
34080
|
+
}
|
|
34081
|
+
|
|
34082
|
+
:host([theme~='primary'][active])::before {
|
|
34083
|
+
opacity: 0.1;
|
|
34084
|
+
}
|
|
34085
|
+
|
|
34086
|
+
:host([theme~='primary'][active])::after {
|
|
34087
|
+
opacity: 0.2;
|
|
34088
|
+
}
|
|
34089
|
+
|
|
34090
|
+
/* Colors (success, error, contrast) */
|
|
34091
|
+
|
|
34092
|
+
:host([theme~='success']) {
|
|
34093
|
+
color: var(--lumo-success-text-color);
|
|
34094
|
+
}
|
|
34095
|
+
|
|
34096
|
+
:host([theme~='success'][theme~='primary']) {
|
|
34097
|
+
background-color: var(--lumo-success-color);
|
|
34098
|
+
color: var(--lumo-success-contrast-color);
|
|
34099
|
+
}
|
|
34100
|
+
|
|
34101
|
+
:host([theme~='error']) {
|
|
34102
|
+
color: var(--lumo-error-text-color);
|
|
34103
|
+
}
|
|
34104
|
+
|
|
34105
|
+
:host([theme~='error'][theme~='primary']) {
|
|
34106
|
+
background-color: var(--lumo-error-color);
|
|
34107
|
+
color: var(--lumo-error-contrast-color);
|
|
34108
|
+
}
|
|
34109
|
+
|
|
34110
|
+
:host([theme~='contrast']) {
|
|
34111
|
+
color: var(--lumo-contrast);
|
|
34112
|
+
}
|
|
34113
|
+
|
|
34114
|
+
:host([theme~='contrast'][theme~='primary']) {
|
|
34115
|
+
background-color: var(--lumo-contrast);
|
|
34116
|
+
color: var(--lumo-base-color);
|
|
34117
|
+
}
|
|
34118
|
+
|
|
34119
|
+
/* Disabled state. Keep selectors after other color variants. */
|
|
34120
|
+
|
|
34121
|
+
:host([disabled]) {
|
|
34122
|
+
pointer-events: none;
|
|
34123
|
+
color: var(--lumo-disabled-text-color);
|
|
34124
|
+
}
|
|
34125
|
+
|
|
34126
|
+
:host([theme~='primary'][disabled]) {
|
|
34127
|
+
background-color: var(--lumo-contrast-30pct);
|
|
34128
|
+
color: var(--lumo-base-color);
|
|
34129
|
+
}
|
|
34130
|
+
|
|
34131
|
+
:host([theme~='primary'][disabled]) [part] {
|
|
34132
|
+
opacity: 0.7;
|
|
34133
|
+
}
|
|
34134
|
+
|
|
34135
|
+
/* Icons */
|
|
34136
|
+
|
|
34137
|
+
[part] ::slotted(vaadin-icon) {
|
|
34138
|
+
display: inline-block;
|
|
34139
|
+
width: var(--lumo-icon-size-m);
|
|
34140
|
+
height: var(--lumo-icon-size-m);
|
|
34141
|
+
}
|
|
34142
|
+
|
|
34143
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
34144
|
+
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
34145
|
+
padding: 0.25em;
|
|
34146
|
+
box-sizing: border-box !important;
|
|
34147
|
+
}
|
|
34148
|
+
|
|
34149
|
+
[part='prefix'] {
|
|
34150
|
+
margin-left: -0.25em;
|
|
34151
|
+
margin-right: 0.25em;
|
|
34152
|
+
}
|
|
34153
|
+
|
|
34154
|
+
[part='suffix'] {
|
|
34155
|
+
margin-left: 0.25em;
|
|
34156
|
+
margin-right: -0.25em;
|
|
34157
|
+
}
|
|
34158
|
+
|
|
34159
|
+
/* Icon-only */
|
|
34160
|
+
|
|
34161
|
+
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
|
34162
|
+
min-width: var(--lumo-button-size);
|
|
34163
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
|
34164
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
|
34165
|
+
}
|
|
34166
|
+
|
|
34167
|
+
:host([theme~='icon']) [part='prefix'],
|
|
34168
|
+
:host([theme~='icon']) [part='suffix'] {
|
|
34169
|
+
margin-left: 0;
|
|
34170
|
+
margin-right: 0;
|
|
34171
|
+
}
|
|
34172
|
+
|
|
34173
|
+
/* RTL specific styles */
|
|
34174
|
+
|
|
34175
|
+
:host([dir='rtl']) [part='prefix'] {
|
|
34176
|
+
margin-left: 0.25em;
|
|
34177
|
+
margin-right: -0.25em;
|
|
34178
|
+
}
|
|
34179
|
+
|
|
34180
|
+
:host([dir='rtl']) [part='suffix'] {
|
|
34181
|
+
margin-left: -0.25em;
|
|
34182
|
+
margin-right: 0.25em;
|
|
34183
|
+
}
|
|
34184
|
+
|
|
34185
|
+
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
|
34186
|
+
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
|
34187
|
+
margin-left: 0;
|
|
34188
|
+
margin-right: 0;
|
|
34189
|
+
}
|
|
34190
|
+
`;
|
|
34191
|
+
|
|
34192
|
+
registerStyles('vaadin-button', button, { moduleId: 'lumo-button' });
|
|
34193
|
+
|
|
33954
34194
|
/**
|
|
33955
34195
|
* @license
|
|
33956
34196
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
33957
34197
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33958
34198
|
*/
|
|
33959
34199
|
|
|
33960
|
-
const passwordFieldButton = i$
|
|
34200
|
+
const passwordFieldButton = i$b`
|
|
33961
34201
|
:host {
|
|
33962
34202
|
position: absolute;
|
|
33963
34203
|
right: 0;
|
|
@@ -33982,7 +34222,7 @@ registerStyles('vaadin-password-field-button', [button, passwordFieldButton], {
|
|
|
33982
34222
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
33983
34223
|
*/
|
|
33984
34224
|
|
|
33985
|
-
const passwordField = i$
|
|
34225
|
+
const passwordField = i$b`
|
|
33986
34226
|
[part='reveal-button']::before {
|
|
33987
34227
|
content: var(--lumo-icons-eye);
|
|
33988
34228
|
}
|
|
@@ -34002,7 +34242,266 @@ const passwordField = i$1`
|
|
|
34002
34242
|
}
|
|
34003
34243
|
`;
|
|
34004
34244
|
|
|
34005
|
-
registerStyles('vaadin-password-field', [inputFieldShared$
|
|
34245
|
+
registerStyles('vaadin-password-field', [inputFieldShared$1, passwordField], { moduleId: 'lumo-password-field' });
|
|
34246
|
+
|
|
34247
|
+
/**
|
|
34248
|
+
* @license
|
|
34249
|
+
* Copyright 2019 Google LLC
|
|
34250
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34251
|
+
*/
|
|
34252
|
+
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;
|
|
34253
|
+
|
|
34254
|
+
/**
|
|
34255
|
+
* @license
|
|
34256
|
+
* Copyright 2017 Google LLC
|
|
34257
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34258
|
+
*/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");
|
|
34259
|
+
|
|
34260
|
+
/**
|
|
34261
|
+
* @license
|
|
34262
|
+
* Copyright 2017 Google LLC
|
|
34263
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34264
|
+
*/
|
|
34265
|
+
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};
|
|
34266
|
+
|
|
34267
|
+
/**
|
|
34268
|
+
* @license
|
|
34269
|
+
* Copyright 2017 Google LLC
|
|
34270
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34271
|
+
*/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");
|
|
34272
|
+
|
|
34273
|
+
/**
|
|
34274
|
+
* @license
|
|
34275
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34276
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34277
|
+
*/
|
|
34278
|
+
|
|
34279
|
+
const buttonStyles = i$1`
|
|
34280
|
+
:host {
|
|
34281
|
+
display: inline-block;
|
|
34282
|
+
position: relative;
|
|
34283
|
+
outline: none;
|
|
34284
|
+
white-space: nowrap;
|
|
34285
|
+
-webkit-user-select: none;
|
|
34286
|
+
-moz-user-select: none;
|
|
34287
|
+
user-select: none;
|
|
34288
|
+
}
|
|
34289
|
+
|
|
34290
|
+
:host([hidden]) {
|
|
34291
|
+
display: none !important;
|
|
34292
|
+
}
|
|
34293
|
+
|
|
34294
|
+
/* Aligns the button with form fields when placed on the same line.
|
|
34295
|
+
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
|
34296
|
+
.vaadin-button-container::before {
|
|
34297
|
+
content: '\\2003';
|
|
34298
|
+
display: inline-block;
|
|
34299
|
+
width: 0;
|
|
34300
|
+
max-height: 100%;
|
|
34301
|
+
}
|
|
34302
|
+
|
|
34303
|
+
.vaadin-button-container {
|
|
34304
|
+
display: inline-flex;
|
|
34305
|
+
align-items: center;
|
|
34306
|
+
justify-content: center;
|
|
34307
|
+
text-align: center;
|
|
34308
|
+
width: 100%;
|
|
34309
|
+
height: 100%;
|
|
34310
|
+
min-height: inherit;
|
|
34311
|
+
text-shadow: inherit;
|
|
34312
|
+
}
|
|
34313
|
+
|
|
34314
|
+
[part='prefix'],
|
|
34315
|
+
[part='suffix'] {
|
|
34316
|
+
flex: none;
|
|
34317
|
+
}
|
|
34318
|
+
|
|
34319
|
+
[part='label'] {
|
|
34320
|
+
white-space: nowrap;
|
|
34321
|
+
overflow: hidden;
|
|
34322
|
+
text-overflow: ellipsis;
|
|
34323
|
+
}
|
|
34324
|
+
|
|
34325
|
+
@media (forced-colors: active) {
|
|
34326
|
+
:host {
|
|
34327
|
+
outline: 1px solid;
|
|
34328
|
+
outline-offset: -1px;
|
|
34329
|
+
}
|
|
34330
|
+
|
|
34331
|
+
:host([focused]) {
|
|
34332
|
+
outline-width: 2px;
|
|
34333
|
+
}
|
|
34334
|
+
|
|
34335
|
+
:host([disabled]) {
|
|
34336
|
+
outline-color: GrayText;
|
|
34337
|
+
}
|
|
34338
|
+
}
|
|
34339
|
+
`;
|
|
34340
|
+
|
|
34341
|
+
const buttonTemplate = (html) => html`
|
|
34342
|
+
<div class="vaadin-button-container">
|
|
34343
|
+
<span part="prefix" aria-hidden="true">
|
|
34344
|
+
<slot name="prefix"></slot>
|
|
34345
|
+
</span>
|
|
34346
|
+
<span part="label">
|
|
34347
|
+
<slot></slot>
|
|
34348
|
+
</span>
|
|
34349
|
+
<span part="suffix" aria-hidden="true">
|
|
34350
|
+
<slot name="suffix"></slot>
|
|
34351
|
+
</span>
|
|
34352
|
+
</div>
|
|
34353
|
+
<slot name="tooltip"></slot>
|
|
34354
|
+
`;
|
|
34355
|
+
|
|
34356
|
+
/**
|
|
34357
|
+
* @license
|
|
34358
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34359
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34360
|
+
*/
|
|
34361
|
+
|
|
34362
|
+
/**
|
|
34363
|
+
* A mixin providing common button functionality.
|
|
34364
|
+
*
|
|
34365
|
+
* @polymerMixin
|
|
34366
|
+
* @mixes ActiveMixin
|
|
34367
|
+
* @mixes FocusMixin
|
|
34368
|
+
* @mixes TabindexMixin
|
|
34369
|
+
*/
|
|
34370
|
+
const ButtonMixin = (superClass) =>
|
|
34371
|
+
class ButtonMixinClass extends ActiveMixin(TabindexMixin(FocusMixin(superClass))) {
|
|
34372
|
+
static get properties() {
|
|
34373
|
+
return {
|
|
34374
|
+
/**
|
|
34375
|
+
* Indicates whether the element can be focused and where it participates in sequential keyboard navigation.
|
|
34376
|
+
*
|
|
34377
|
+
* @override
|
|
34378
|
+
* @protected
|
|
34379
|
+
*/
|
|
34380
|
+
tabindex: {
|
|
34381
|
+
type: Number,
|
|
34382
|
+
value: 0,
|
|
34383
|
+
reflectToAttribute: true,
|
|
34384
|
+
},
|
|
34385
|
+
};
|
|
34386
|
+
}
|
|
34387
|
+
|
|
34388
|
+
/**
|
|
34389
|
+
* By default, `Space` is the only possible activation key for a focusable HTML element.
|
|
34390
|
+
* Nonetheless, the button is an exception as it can be also activated by pressing `Enter`.
|
|
34391
|
+
* See the "Keyboard Support" section in https://www.w3.org/TR/wai-aria-practices/examples/button/button.html.
|
|
34392
|
+
*
|
|
34393
|
+
* @protected
|
|
34394
|
+
* @override
|
|
34395
|
+
*/
|
|
34396
|
+
get _activeKeys() {
|
|
34397
|
+
return ['Enter', ' '];
|
|
34398
|
+
}
|
|
34399
|
+
|
|
34400
|
+
/** @protected */
|
|
34401
|
+
ready() {
|
|
34402
|
+
super.ready();
|
|
34403
|
+
|
|
34404
|
+
// By default, if the user hasn't provided a custom role,
|
|
34405
|
+
// the role attribute is set to "button".
|
|
34406
|
+
if (!this.hasAttribute('role')) {
|
|
34407
|
+
this.setAttribute('role', 'button');
|
|
34408
|
+
}
|
|
34409
|
+
}
|
|
34410
|
+
|
|
34411
|
+
/**
|
|
34412
|
+
* Since the button component is designed on the base of the `[role=button]` attribute,
|
|
34413
|
+
* and doesn't have a native <button> inside, in order to be fully accessible from the keyboard,
|
|
34414
|
+
* it should manually fire the `click` event once an activation key is pressed,
|
|
34415
|
+
* as it follows from the WAI-ARIA specifications:
|
|
34416
|
+
* https://www.w3.org/TR/wai-aria-practices-1.1/#button
|
|
34417
|
+
*
|
|
34418
|
+
* According to the UI Events specifications,
|
|
34419
|
+
* the `click` event should be fired exactly on `keydown`:
|
|
34420
|
+
* https://www.w3.org/TR/uievents/#event-type-keydown
|
|
34421
|
+
*
|
|
34422
|
+
* @param {KeyboardEvent} event
|
|
34423
|
+
* @protected
|
|
34424
|
+
* @override
|
|
34425
|
+
*/
|
|
34426
|
+
_onKeyDown(event) {
|
|
34427
|
+
super._onKeyDown(event);
|
|
34428
|
+
|
|
34429
|
+
if (event.altKey || event.shiftKey || event.ctrlKey || event.metaKey) {
|
|
34430
|
+
return;
|
|
34431
|
+
}
|
|
34432
|
+
|
|
34433
|
+
if (this._activeKeys.includes(event.key)) {
|
|
34434
|
+
event.preventDefault();
|
|
34435
|
+
|
|
34436
|
+
// `DisabledMixin` overrides the standard `click()` method
|
|
34437
|
+
// so that it doesn't fire the `click` event when the element is disabled.
|
|
34438
|
+
this.click();
|
|
34439
|
+
}
|
|
34440
|
+
}
|
|
34441
|
+
};
|
|
34442
|
+
|
|
34443
|
+
/**
|
|
34444
|
+
* @license
|
|
34445
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34446
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34447
|
+
*/
|
|
34448
|
+
|
|
34449
|
+
registerStyles('vaadin-button', buttonStyles, { moduleId: 'vaadin-button-styles' });
|
|
34450
|
+
|
|
34451
|
+
/**
|
|
34452
|
+
* `<vaadin-button>` is an accessible and customizable button that allows users to perform actions.
|
|
34453
|
+
*
|
|
34454
|
+
* ```html
|
|
34455
|
+
* <vaadin-button>Press me</vaadin-button>
|
|
34456
|
+
* ```
|
|
34457
|
+
*
|
|
34458
|
+
* ### Styling
|
|
34459
|
+
*
|
|
34460
|
+
* The following shadow DOM parts are available for styling:
|
|
34461
|
+
*
|
|
34462
|
+
* Part name | Description
|
|
34463
|
+
* ----------|-------------
|
|
34464
|
+
* `label` | The label (text) inside the button.
|
|
34465
|
+
* `prefix` | A slot for content before the label (e.g. an icon).
|
|
34466
|
+
* `suffix` | A slot for content after the label (e.g. an icon).
|
|
34467
|
+
*
|
|
34468
|
+
* The following attributes are available for styling:
|
|
34469
|
+
*
|
|
34470
|
+
* Attribute | Description
|
|
34471
|
+
* -------------|-------------
|
|
34472
|
+
* `active` | Set when the button is pressed down, either with mouse, touch or the keyboard.
|
|
34473
|
+
* `disabled` | Set when the button is disabled.
|
|
34474
|
+
* `focus-ring` | Set when the button is focused using the keyboard.
|
|
34475
|
+
* `focused` | Set when the button is focused.
|
|
34476
|
+
*
|
|
34477
|
+
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
34478
|
+
*
|
|
34479
|
+
* @customElement
|
|
34480
|
+
* @extends HTMLElement
|
|
34481
|
+
* @mixes ButtonMixin
|
|
34482
|
+
* @mixes ControllerMixin
|
|
34483
|
+
* @mixes ElementMixin
|
|
34484
|
+
* @mixes ThemableMixin
|
|
34485
|
+
*/
|
|
34486
|
+
class Button extends ButtonMixin(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement)))) {
|
|
34487
|
+
static get is() {
|
|
34488
|
+
return 'vaadin-button';
|
|
34489
|
+
}
|
|
34490
|
+
|
|
34491
|
+
static get template() {
|
|
34492
|
+
return buttonTemplate(html);
|
|
34493
|
+
}
|
|
34494
|
+
|
|
34495
|
+
/** @protected */
|
|
34496
|
+
ready() {
|
|
34497
|
+
super.ready();
|
|
34498
|
+
|
|
34499
|
+
this._tooltipController = new TooltipController(this);
|
|
34500
|
+
this.addController(this._tooltipController);
|
|
34501
|
+
}
|
|
34502
|
+
}
|
|
34503
|
+
|
|
34504
|
+
defineCustomElement(Button);
|
|
34006
34505
|
|
|
34007
34506
|
/**
|
|
34008
34507
|
* @license
|
|
@@ -34367,6 +34866,17 @@ const PasswordInput = class {
|
|
|
34367
34866
|
this.sendOriginalValidityState = index.createEvent(this, "sendOriginalValidityState", 7);
|
|
34368
34867
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
34369
34868
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
34869
|
+
/**
|
|
34870
|
+
* Default value for the input.
|
|
34871
|
+
*/
|
|
34872
|
+
this.defaultValue = '';
|
|
34873
|
+
/**
|
|
34874
|
+
* Client custom styling via inline style
|
|
34875
|
+
*/
|
|
34876
|
+
this.clientStyling = '';
|
|
34877
|
+
this.limitStylingAppends = false;
|
|
34878
|
+
this.showTooltip = false;
|
|
34879
|
+
this.value = '';
|
|
34370
34880
|
this.touched = false;
|
|
34371
34881
|
this.originalValid = false;
|
|
34372
34882
|
this.validationPattern = '';
|
|
@@ -34405,24 +34915,6 @@ const PasswordInput = class {
|
|
|
34405
34915
|
sheet.innerHTML = this.clientStyling;
|
|
34406
34916
|
this.stylingContainer.prepend(sheet);
|
|
34407
34917
|
};
|
|
34408
|
-
this.name = undefined;
|
|
34409
|
-
this.displayName = undefined;
|
|
34410
|
-
this.placeholder = undefined;
|
|
34411
|
-
this.defaultValue = '';
|
|
34412
|
-
this.autofilled = undefined;
|
|
34413
|
-
this.tooltip = undefined;
|
|
34414
|
-
this.validation = undefined;
|
|
34415
|
-
this.language = undefined;
|
|
34416
|
-
this.emitValue = undefined;
|
|
34417
|
-
this.isDuplicateInput = undefined;
|
|
34418
|
-
this.clientStyling = '';
|
|
34419
|
-
this.isValid = undefined;
|
|
34420
|
-
this.errorMessage = undefined;
|
|
34421
|
-
this.limitStylingAppends = false;
|
|
34422
|
-
this.showTooltip = false;
|
|
34423
|
-
this.passwordComplexity = undefined;
|
|
34424
|
-
this.showPopup = undefined;
|
|
34425
|
-
this.value = '';
|
|
34426
34918
|
}
|
|
34427
34919
|
validityChanged() {
|
|
34428
34920
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -34543,23 +35035,23 @@ const PasswordInput = class {
|
|
|
34543
35035
|
setErrorMessage() {
|
|
34544
35036
|
var _a, _b, _c, _d;
|
|
34545
35037
|
if (this.isDuplicateInput && !this.originalValid) {
|
|
34546
|
-
return translate$
|
|
35038
|
+
return translate$2('invalidOriginalPasswordError', this.language);
|
|
34547
35039
|
}
|
|
34548
35040
|
if (this.inputReference.validity.patternMismatch) {
|
|
34549
35041
|
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
34550
35042
|
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
34551
|
-
return translate$
|
|
35043
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
34552
35044
|
}
|
|
34553
35045
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
34554
|
-
return translate$
|
|
35046
|
+
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
34555
35047
|
}
|
|
34556
35048
|
if (this.inputReference.validity.valueMissing) {
|
|
34557
|
-
return translate$
|
|
35049
|
+
return translate$2('requiredError', this.language);
|
|
34558
35050
|
}
|
|
34559
35051
|
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
34560
35052
|
const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
|
|
34561
35053
|
const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
|
|
34562
|
-
return translate$
|
|
35054
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
34563
35055
|
}
|
|
34564
35056
|
}
|
|
34565
35057
|
renderTooltip() {
|
|
@@ -34573,8 +35065,8 @@ const PasswordInput = class {
|
|
|
34573
35065
|
const passedRules = this.passwordComplexity.filter(complexity => complexity.passed).length;
|
|
34574
35066
|
const meterValue = passedRules / totalRules;
|
|
34575
35067
|
const allRulesPassed = this.passwordComplexity.every(complexity => complexity.passed);
|
|
34576
|
-
return (index.h("div", { class: `password__complexity ${!this.showPopup ? 'password__complexity--hidden' : ''}` }, index.h("div", { class: 'password__complexity--strength' }, index.h("p", { class: 'password__complexity--text' }, translate$
|
|
34577
|
-
return (index.h("div", { key: index$1 }, index.h("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }), index.h("span", null, translate$
|
|
35068
|
+
return (index.h("div", { class: `password__complexity ${!this.showPopup ? 'password__complexity--hidden' : ''}` }, index.h("div", { class: 'password__complexity--strength' }, index.h("p", { class: 'password__complexity--text' }, translate$2('passwordStrength', this.language), "\u00A0", index.h("span", { class: 'password__complexity--text-bold' }, translate$2(`${allRulesPassed ? 'passwordStrengthStrong' : 'passwordStrengthWeak'}`, this.language))), index.h("meter", { value: meterValue, min: "0", max: "1" })), index.h("div", null, this.passwordComplexity.map((complexity, index$1) => {
|
|
35069
|
+
return (index.h("div", { key: index$1 }, index.h("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }), index.h("span", null, translate$2(`${complexity.ruleKey}`, this.language) ? translate$2(`${complexity.ruleKey}`, this.language) : complexity.rule)));
|
|
34578
35070
|
}))));
|
|
34579
35071
|
}
|
|
34580
35072
|
render() {
|
|
@@ -34583,7 +35075,7 @@ const PasswordInput = class {
|
|
|
34583
35075
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
34584
35076
|
}
|
|
34585
35077
|
return index.h("div", { key: 'c704b51efdf53817beb1541b4794e0b11b490a24', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'e590afa403084ff95a8735ade400ab81ad16937f', class: 'password__wrapper--flex' }, index.h("label", { key: '9d8db00b59c4b9594538aeacee3ef5a0e678c0e9', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'bb39f6018cf688fafcd0b5bef91ba079edf09daf', class: 'password__wrapper--relative' }, this.tooltip &&
|
|
34586
|
-
index.h("img", { key: 'd8dbd086da34a8c7db9b5826654530bdb888c927', class: 'password__tooltip-icon', src: tooltipIconSvg
|
|
35078
|
+
index.h("img", { key: 'd8dbd086da34a8c7db9b5826654530bdb888c927', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("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 }), index.h("small", { key: '2fa1e25239a7314399c16b2f897873b7a31e9f77', class: 'password__error-message' }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
|
|
34587
35079
|
}
|
|
34588
35080
|
get element() { return index.getElement(this); }
|
|
34589
35081
|
static get watchers() { return {
|
|
@@ -34602,23 +35094,17 @@ const RadioInput = class {
|
|
|
34602
35094
|
index.registerInstance(this, hostRef);
|
|
34603
35095
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
34604
35096
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
35097
|
+
/**
|
|
35098
|
+
* Client custom styling via inline style
|
|
35099
|
+
*/
|
|
35100
|
+
this.clientStyling = '';
|
|
35101
|
+
this.limitStylingAppends = false;
|
|
35102
|
+
this.showTooltip = false;
|
|
34605
35103
|
this.setClientStyling = () => {
|
|
34606
35104
|
let sheet = document.createElement('style');
|
|
34607
35105
|
sheet.innerHTML = this.clientStyling;
|
|
34608
35106
|
this.stylingContainer.prepend(sheet);
|
|
34609
35107
|
};
|
|
34610
|
-
this.name = undefined;
|
|
34611
|
-
this.displayName = undefined;
|
|
34612
|
-
this.optionsGroup = undefined;
|
|
34613
|
-
this.validation = undefined;
|
|
34614
|
-
this.tooltip = undefined;
|
|
34615
|
-
this.language = undefined;
|
|
34616
|
-
this.emitValue = undefined;
|
|
34617
|
-
this.clientStyling = '';
|
|
34618
|
-
this.errorMessage = undefined;
|
|
34619
|
-
this.isValid = undefined;
|
|
34620
|
-
this.limitStylingAppends = false;
|
|
34621
|
-
this.showTooltip = false;
|
|
34622
35108
|
}
|
|
34623
35109
|
validityChanged() {
|
|
34624
35110
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -34663,7 +35149,7 @@ const RadioInput = class {
|
|
|
34663
35149
|
}
|
|
34664
35150
|
setErrorMessage() {
|
|
34665
35151
|
if (this.inputReference.validity.valueMissing) {
|
|
34666
|
-
return translate$
|
|
35152
|
+
return translate$2('requiredError', this.language);
|
|
34667
35153
|
}
|
|
34668
35154
|
}
|
|
34669
35155
|
renderTooltip() {
|
|
@@ -34674,7 +35160,7 @@ const RadioInput = class {
|
|
|
34674
35160
|
}
|
|
34675
35161
|
render() {
|
|
34676
35162
|
return index.h("fieldset", { key: '3d90735f7dc8fef6a96dc85b8f9ba22880cb205f', class: `radio__fieldset ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("legend", { key: '9472ed76f5c7fabb90d2b3d39eeb9e18f05a30dd', class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => index.h("div", { class: 'radio__wrapper' }, index.h("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) }), index.h("label", { htmlFor: `${option.label}__input` }, option.label))), index.h("small", { key: '2ae0947580bb8a0a3d889a2d9ebd0b82458fdfd2', class: 'radio__error-message' }, this.errorMessage), this.tooltip &&
|
|
34677
|
-
index.h("img", { key: '4f3cbf341f1c559bbdf44ca5d169be7a64d46e97', class: 'radio__tooltip-icon', src: tooltipIconSvg
|
|
35163
|
+
index.h("img", { key: '4f3cbf341f1c559bbdf44ca5d169be7a64d46e97', class: 'radio__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
34678
35164
|
}
|
|
34679
35165
|
static get watchers() { return {
|
|
34680
35166
|
"isValid": ["validityChanged"],
|
|
@@ -34717,7 +35203,7 @@ const addLumoGlobalStyles = (id, ...styles) => {
|
|
|
34717
35203
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34718
35204
|
*/
|
|
34719
35205
|
|
|
34720
|
-
const fontIcons = i$
|
|
35206
|
+
const fontIcons = i$b`
|
|
34721
35207
|
@font-face {
|
|
34722
35208
|
font-family: 'lumo-icons';
|
|
34723
35209
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1l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QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -34780,7 +35266,7 @@ addLumoGlobalStyles('font-icons', fontIcons);
|
|
|
34780
35266
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34781
35267
|
*/
|
|
34782
35268
|
|
|
34783
|
-
const sizing = i$
|
|
35269
|
+
const sizing = i$b`
|
|
34784
35270
|
:host {
|
|
34785
35271
|
--lumo-size-xs: 1.625rem;
|
|
34786
35272
|
--lumo-size-s: 1.875rem;
|
|
@@ -34805,7 +35291,7 @@ addLumoGlobalStyles('sizing-props', sizing);
|
|
|
34805
35291
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34806
35292
|
*/
|
|
34807
35293
|
|
|
34808
|
-
const spacing = i$
|
|
35294
|
+
const spacing = i$b`
|
|
34809
35295
|
:host {
|
|
34810
35296
|
/* Square */
|
|
34811
35297
|
--lumo-space-xs: 0.25rem;
|
|
@@ -34838,7 +35324,7 @@ addLumoGlobalStyles('spacing-props', spacing);
|
|
|
34838
35324
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34839
35325
|
*/
|
|
34840
35326
|
|
|
34841
|
-
const style = i$
|
|
35327
|
+
const style = i$b`
|
|
34842
35328
|
:host {
|
|
34843
35329
|
/* Border radius */
|
|
34844
35330
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -34860,7 +35346,7 @@ const style = i$1`
|
|
|
34860
35346
|
/**
|
|
34861
35347
|
* Default values for component-specific custom properties.
|
|
34862
35348
|
*/
|
|
34863
|
-
i$
|
|
35349
|
+
i$b`
|
|
34864
35350
|
html {
|
|
34865
35351
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
34866
35352
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -34876,7 +35362,7 @@ addLumoGlobalStyles('style-props', style);
|
|
|
34876
35362
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
34877
35363
|
*/
|
|
34878
35364
|
|
|
34879
|
-
const font = i$
|
|
35365
|
+
const font = i$b`
|
|
34880
35366
|
:host {
|
|
34881
35367
|
/* prettier-ignore */
|
|
34882
35368
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -34898,7 +35384,7 @@ const font = i$1`
|
|
|
34898
35384
|
}
|
|
34899
35385
|
`;
|
|
34900
35386
|
|
|
34901
|
-
const typography = i$
|
|
35387
|
+
const typography = i$b`
|
|
34902
35388
|
body,
|
|
34903
35389
|
:host {
|
|
34904
35390
|
font-family: var(--lumo-font-family);
|
|
@@ -34995,7 +35481,7 @@ const typography = i$1`
|
|
|
34995
35481
|
registerStyles('', typography, { moduleId: 'lumo-typography' });
|
|
34996
35482
|
addLumoGlobalStyles('typography-props', font);
|
|
34997
35483
|
|
|
34998
|
-
const item = i$
|
|
35484
|
+
const item = i$b`
|
|
34999
35485
|
:host {
|
|
35000
35486
|
display: flex;
|
|
35001
35487
|
align-items: center;
|
|
@@ -35078,7 +35564,7 @@ const item = i$1`
|
|
|
35078
35564
|
|
|
35079
35565
|
registerStyles('vaadin-item', item, { moduleId: 'lumo-item' });
|
|
35080
35566
|
|
|
35081
|
-
const comboBoxItem = i$
|
|
35567
|
+
const comboBoxItem = i$b`
|
|
35082
35568
|
:host {
|
|
35083
35569
|
transition: background-color 100ms;
|
|
35084
35570
|
overflow: hidden;
|
|
@@ -35102,7 +35588,7 @@ registerStyles('vaadin-combo-box-item', [item, comboBoxItem], {
|
|
|
35102
35588
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35103
35589
|
*/
|
|
35104
35590
|
|
|
35105
|
-
const loader = i$
|
|
35591
|
+
const loader = i$b`
|
|
35106
35592
|
[part~='loader'] {
|
|
35107
35593
|
box-sizing: border-box;
|
|
35108
35594
|
width: var(--lumo-icon-size-s);
|
|
@@ -35144,7 +35630,188 @@ const loader = i$1`
|
|
|
35144
35630
|
}
|
|
35145
35631
|
`;
|
|
35146
35632
|
|
|
35147
|
-
|
|
35633
|
+
/**
|
|
35634
|
+
* @license
|
|
35635
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
35636
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35637
|
+
*/
|
|
35638
|
+
|
|
35639
|
+
const overlay = i$b`
|
|
35640
|
+
:host {
|
|
35641
|
+
top: var(--lumo-space-m);
|
|
35642
|
+
right: var(--lumo-space-m);
|
|
35643
|
+
bottom: var(--lumo-space-m);
|
|
35644
|
+
left: var(--lumo-space-m);
|
|
35645
|
+
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
35646
|
+
/* stylelint-disable-next-line */
|
|
35647
|
+
outline: 0px solid transparent;
|
|
35648
|
+
}
|
|
35649
|
+
|
|
35650
|
+
[part='overlay'] {
|
|
35651
|
+
background-color: var(--lumo-base-color);
|
|
35652
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
35653
|
+
border-radius: var(--lumo-border-radius-m);
|
|
35654
|
+
box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
|
|
35655
|
+
color: var(--lumo-body-text-color);
|
|
35656
|
+
font-family: var(--lumo-font-family);
|
|
35657
|
+
font-size: var(--lumo-font-size-m);
|
|
35658
|
+
font-weight: 400;
|
|
35659
|
+
line-height: var(--lumo-line-height-m);
|
|
35660
|
+
letter-spacing: 0;
|
|
35661
|
+
text-transform: none;
|
|
35662
|
+
-webkit-text-size-adjust: 100%;
|
|
35663
|
+
-webkit-font-smoothing: antialiased;
|
|
35664
|
+
-moz-osx-font-smoothing: grayscale;
|
|
35665
|
+
}
|
|
35666
|
+
|
|
35667
|
+
[part='content'] {
|
|
35668
|
+
padding: var(--lumo-space-xs);
|
|
35669
|
+
}
|
|
35670
|
+
|
|
35671
|
+
[part='backdrop'] {
|
|
35672
|
+
background-color: var(--lumo-shade-20pct);
|
|
35673
|
+
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
35674
|
+
will-change: opacity;
|
|
35675
|
+
}
|
|
35676
|
+
|
|
35677
|
+
@keyframes lumo-overlay-backdrop-enter {
|
|
35678
|
+
0% {
|
|
35679
|
+
opacity: 0;
|
|
35680
|
+
}
|
|
35681
|
+
}
|
|
35682
|
+
|
|
35683
|
+
:host([closing]) [part='backdrop'] {
|
|
35684
|
+
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
35685
|
+
}
|
|
35686
|
+
|
|
35687
|
+
@keyframes lumo-overlay-backdrop-exit {
|
|
35688
|
+
100% {
|
|
35689
|
+
opacity: 0;
|
|
35690
|
+
}
|
|
35691
|
+
}
|
|
35692
|
+
|
|
35693
|
+
@keyframes lumo-overlay-dummy-animation {
|
|
35694
|
+
0% {
|
|
35695
|
+
opacity: 1;
|
|
35696
|
+
}
|
|
35697
|
+
|
|
35698
|
+
100% {
|
|
35699
|
+
opacity: 1;
|
|
35700
|
+
}
|
|
35701
|
+
}
|
|
35702
|
+
`;
|
|
35703
|
+
|
|
35704
|
+
registerStyles('', overlay, { moduleId: 'lumo-overlay' });
|
|
35705
|
+
|
|
35706
|
+
/**
|
|
35707
|
+
* @license
|
|
35708
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
35709
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35710
|
+
*/
|
|
35711
|
+
|
|
35712
|
+
const menuOverlayCore = i$b`
|
|
35713
|
+
:host([opening]),
|
|
35714
|
+
:host([closing]) {
|
|
35715
|
+
animation: 0.14s lumo-overlay-dummy-animation;
|
|
35716
|
+
}
|
|
35717
|
+
|
|
35718
|
+
[part='overlay'] {
|
|
35719
|
+
will-change: opacity, transform;
|
|
35720
|
+
}
|
|
35721
|
+
|
|
35722
|
+
:host([opening]) [part='overlay'] {
|
|
35723
|
+
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
35724
|
+
}
|
|
35725
|
+
|
|
35726
|
+
@keyframes lumo-menu-overlay-enter {
|
|
35727
|
+
0% {
|
|
35728
|
+
opacity: 0;
|
|
35729
|
+
transform: translateY(-4px);
|
|
35730
|
+
}
|
|
35731
|
+
}
|
|
35732
|
+
|
|
35733
|
+
:host([closing]) [part='overlay'] {
|
|
35734
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
35735
|
+
}
|
|
35736
|
+
|
|
35737
|
+
@keyframes lumo-menu-overlay-exit {
|
|
35738
|
+
100% {
|
|
35739
|
+
opacity: 0;
|
|
35740
|
+
}
|
|
35741
|
+
}
|
|
35742
|
+
`;
|
|
35743
|
+
|
|
35744
|
+
registerStyles('', menuOverlayCore, { moduleId: 'lumo-menu-overlay-core' });
|
|
35745
|
+
|
|
35746
|
+
const menuOverlayExt = i$b`
|
|
35747
|
+
/* Small viewport (bottom sheet) styles */
|
|
35748
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
35749
|
+
@media (max-width: 420px), (max-height: 420px) {
|
|
35750
|
+
:host {
|
|
35751
|
+
top: 0 !important;
|
|
35752
|
+
right: 0 !important;
|
|
35753
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
35754
|
+
left: 0 !important;
|
|
35755
|
+
align-items: stretch !important;
|
|
35756
|
+
justify-content: flex-end !important;
|
|
35757
|
+
}
|
|
35758
|
+
|
|
35759
|
+
[part='overlay'] {
|
|
35760
|
+
max-height: 50vh;
|
|
35761
|
+
width: 100vw;
|
|
35762
|
+
border-radius: 0;
|
|
35763
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
35764
|
+
}
|
|
35765
|
+
|
|
35766
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
35767
|
+
[part='content'] {
|
|
35768
|
+
padding: 30px var(--lumo-space-m);
|
|
35769
|
+
max-height: inherit;
|
|
35770
|
+
box-sizing: border-box;
|
|
35771
|
+
-webkit-overflow-scrolling: touch;
|
|
35772
|
+
overflow: auto;
|
|
35773
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
35774
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
35775
|
+
}
|
|
35776
|
+
|
|
35777
|
+
[part='backdrop'] {
|
|
35778
|
+
display: block;
|
|
35779
|
+
}
|
|
35780
|
+
|
|
35781
|
+
/* Animations */
|
|
35782
|
+
|
|
35783
|
+
:host([opening]) [part='overlay'] {
|
|
35784
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
35785
|
+
}
|
|
35786
|
+
|
|
35787
|
+
:host([closing]),
|
|
35788
|
+
:host([closing]) [part='backdrop'] {
|
|
35789
|
+
animation-delay: 0.14s;
|
|
35790
|
+
}
|
|
35791
|
+
|
|
35792
|
+
:host([closing]) [part='overlay'] {
|
|
35793
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
35794
|
+
}
|
|
35795
|
+
}
|
|
35796
|
+
|
|
35797
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
35798
|
+
0% {
|
|
35799
|
+
transform: translateY(150%);
|
|
35800
|
+
}
|
|
35801
|
+
}
|
|
35802
|
+
|
|
35803
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
35804
|
+
100% {
|
|
35805
|
+
transform: translateY(150%);
|
|
35806
|
+
}
|
|
35807
|
+
}
|
|
35808
|
+
`;
|
|
35809
|
+
|
|
35810
|
+
const menuOverlay = [overlay, menuOverlayCore, menuOverlayExt];
|
|
35811
|
+
|
|
35812
|
+
registerStyles('', menuOverlay, { moduleId: 'lumo-menu-overlay' });
|
|
35813
|
+
|
|
35814
|
+
const comboBoxOverlay = i$b`
|
|
35148
35815
|
[part='content'] {
|
|
35149
35816
|
padding: 0;
|
|
35150
35817
|
}
|
|
@@ -35167,7 +35834,7 @@ const comboBoxOverlay = i$1`
|
|
|
35167
35834
|
}
|
|
35168
35835
|
`;
|
|
35169
35836
|
|
|
35170
|
-
const comboBoxLoader = i$
|
|
35837
|
+
const comboBoxLoader = i$b`
|
|
35171
35838
|
[part~='loader'] {
|
|
35172
35839
|
position: absolute;
|
|
35173
35840
|
z-index: 1;
|
|
@@ -35196,7 +35863,7 @@ registerStyles(
|
|
|
35196
35863
|
comboBoxOverlay,
|
|
35197
35864
|
loader,
|
|
35198
35865
|
comboBoxLoader,
|
|
35199
|
-
i$
|
|
35866
|
+
i$b`
|
|
35200
35867
|
:host {
|
|
35201
35868
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
35202
35869
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
@@ -35206,7 +35873,191 @@ registerStyles(
|
|
|
35206
35873
|
{ moduleId: 'lumo-combo-box-overlay' },
|
|
35207
35874
|
);
|
|
35208
35875
|
|
|
35209
|
-
|
|
35876
|
+
/**
|
|
35877
|
+
* @license
|
|
35878
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
35879
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35880
|
+
*/
|
|
35881
|
+
|
|
35882
|
+
const fieldButton = i$b`
|
|
35883
|
+
[part$='button'] {
|
|
35884
|
+
flex: none;
|
|
35885
|
+
width: 1em;
|
|
35886
|
+
height: 1em;
|
|
35887
|
+
line-height: 1;
|
|
35888
|
+
font-size: var(--lumo-icon-size-m);
|
|
35889
|
+
text-align: center;
|
|
35890
|
+
color: var(--lumo-contrast-60pct);
|
|
35891
|
+
transition: 0.2s color;
|
|
35892
|
+
cursor: var(--lumo-clickable-cursor);
|
|
35893
|
+
}
|
|
35894
|
+
|
|
35895
|
+
[part$='button']:hover {
|
|
35896
|
+
color: var(--lumo-contrast-90pct);
|
|
35897
|
+
}
|
|
35898
|
+
|
|
35899
|
+
:host([disabled]) [part$='button'],
|
|
35900
|
+
:host([readonly]) [part$='button'] {
|
|
35901
|
+
color: var(--lumo-contrast-20pct);
|
|
35902
|
+
cursor: default;
|
|
35903
|
+
}
|
|
35904
|
+
|
|
35905
|
+
[part$='button']::before {
|
|
35906
|
+
font-family: 'lumo-icons';
|
|
35907
|
+
display: block;
|
|
35908
|
+
}
|
|
35909
|
+
`;
|
|
35910
|
+
registerStyles('', fieldButton, { moduleId: 'lumo-field-button' });
|
|
35911
|
+
|
|
35912
|
+
/**
|
|
35913
|
+
* @license
|
|
35914
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
35915
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35916
|
+
*/
|
|
35917
|
+
|
|
35918
|
+
const inputField = i$b`
|
|
35919
|
+
:host {
|
|
35920
|
+
--lumo-text-field-size: var(--lumo-size-m);
|
|
35921
|
+
color: var(--lumo-body-text-color);
|
|
35922
|
+
font-size: var(--lumo-font-size-m);
|
|
35923
|
+
font-family: var(--lumo-font-family);
|
|
35924
|
+
-webkit-font-smoothing: antialiased;
|
|
35925
|
+
-moz-osx-font-smoothing: grayscale;
|
|
35926
|
+
-webkit-tap-highlight-color: transparent;
|
|
35927
|
+
padding: var(--lumo-space-xs) 0;
|
|
35928
|
+
}
|
|
35929
|
+
|
|
35930
|
+
:host::before {
|
|
35931
|
+
height: var(--lumo-text-field-size);
|
|
35932
|
+
box-sizing: border-box;
|
|
35933
|
+
display: inline-flex;
|
|
35934
|
+
align-items: center;
|
|
35935
|
+
}
|
|
35936
|
+
|
|
35937
|
+
:host([focused]:not([readonly])) [part='label'] {
|
|
35938
|
+
color: var(--lumo-primary-text-color);
|
|
35939
|
+
}
|
|
35940
|
+
|
|
35941
|
+
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
35942
|
+
-webkit-mask-image: none;
|
|
35943
|
+
mask-image: none;
|
|
35944
|
+
}
|
|
35945
|
+
|
|
35946
|
+
::slotted(:is(input, textarea):placeholder-shown) {
|
|
35947
|
+
color: var(--lumo-secondary-text-color);
|
|
35948
|
+
}
|
|
35949
|
+
|
|
35950
|
+
/* Hover */
|
|
35951
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
35952
|
+
color: var(--lumo-body-text-color);
|
|
35953
|
+
}
|
|
35954
|
+
|
|
35955
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
35956
|
+
opacity: 0.1;
|
|
35957
|
+
}
|
|
35958
|
+
|
|
35959
|
+
/* Touch device adjustment */
|
|
35960
|
+
@media (pointer: coarse) {
|
|
35961
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
35962
|
+
color: var(--lumo-secondary-text-color);
|
|
35963
|
+
}
|
|
35964
|
+
|
|
35965
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
35966
|
+
opacity: 0;
|
|
35967
|
+
}
|
|
35968
|
+
|
|
35969
|
+
:host(:active:not([readonly]):not([focused])) [part='input-field']::after {
|
|
35970
|
+
opacity: 0.2;
|
|
35971
|
+
}
|
|
35972
|
+
}
|
|
35973
|
+
|
|
35974
|
+
/* Trigger when not focusing using the keyboard */
|
|
35975
|
+
:host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
|
|
35976
|
+
transform: scaleX(0);
|
|
35977
|
+
transition-duration: 0.15s, 1s;
|
|
35978
|
+
}
|
|
35979
|
+
|
|
35980
|
+
/* Focus-ring */
|
|
35981
|
+
:host([focus-ring]) [part='input-field'] {
|
|
35982
|
+
box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
35983
|
+
}
|
|
35984
|
+
|
|
35985
|
+
/* Read-only and disabled */
|
|
35986
|
+
:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
35987
|
+
opacity: 0;
|
|
35988
|
+
}
|
|
35989
|
+
|
|
35990
|
+
/* Read-only style */
|
|
35991
|
+
:host([readonly]) {
|
|
35992
|
+
--vaadin-input-field-border-color: transparent;
|
|
35993
|
+
}
|
|
35994
|
+
|
|
35995
|
+
/* Disabled style */
|
|
35996
|
+
:host([disabled]) {
|
|
35997
|
+
pointer-events: none;
|
|
35998
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
35999
|
+
}
|
|
36000
|
+
|
|
36001
|
+
:host([disabled]) [part='label'],
|
|
36002
|
+
:host([disabled]) [part='input-field'] ::slotted(*) {
|
|
36003
|
+
color: var(--lumo-disabled-text-color);
|
|
36004
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
36005
|
+
}
|
|
36006
|
+
|
|
36007
|
+
/* Invalid style */
|
|
36008
|
+
:host([invalid]) {
|
|
36009
|
+
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
36010
|
+
}
|
|
36011
|
+
|
|
36012
|
+
:host([invalid][focus-ring]) [part='input-field'] {
|
|
36013
|
+
box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
|
|
36014
|
+
}
|
|
36015
|
+
|
|
36016
|
+
:host([input-prevented]) [part='input-field'] {
|
|
36017
|
+
animation: shake 0.15s infinite;
|
|
36018
|
+
}
|
|
36019
|
+
|
|
36020
|
+
@keyframes shake {
|
|
36021
|
+
25% {
|
|
36022
|
+
transform: translateX(4px);
|
|
36023
|
+
}
|
|
36024
|
+
75% {
|
|
36025
|
+
transform: translateX(-4px);
|
|
36026
|
+
}
|
|
36027
|
+
}
|
|
36028
|
+
|
|
36029
|
+
/* Small theme */
|
|
36030
|
+
:host([theme~='small']) {
|
|
36031
|
+
font-size: var(--lumo-font-size-s);
|
|
36032
|
+
--lumo-text-field-size: var(--lumo-size-s);
|
|
36033
|
+
}
|
|
36034
|
+
|
|
36035
|
+
:host([theme~='small']) [part='label'] {
|
|
36036
|
+
font-size: var(--lumo-font-size-xs);
|
|
36037
|
+
}
|
|
36038
|
+
|
|
36039
|
+
:host([theme~='small']) [part='error-message'] {
|
|
36040
|
+
font-size: var(--lumo-font-size-xxs);
|
|
36041
|
+
}
|
|
36042
|
+
|
|
36043
|
+
/* Slotted content */
|
|
36044
|
+
[part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
|
|
36045
|
+
color: var(--lumo-secondary-text-color);
|
|
36046
|
+
font-weight: 400;
|
|
36047
|
+
}
|
|
36048
|
+
|
|
36049
|
+
[part='clear-button']::before {
|
|
36050
|
+
content: var(--lumo-icons-cross);
|
|
36051
|
+
}
|
|
36052
|
+
`;
|
|
36053
|
+
|
|
36054
|
+
const inputFieldShared = [requiredField$2, fieldButton, helper$2, inputField];
|
|
36055
|
+
|
|
36056
|
+
registerStyles('', inputFieldShared, {
|
|
36057
|
+
moduleId: 'lumo-input-field-shared-styles',
|
|
36058
|
+
});
|
|
36059
|
+
|
|
36060
|
+
const comboBox = i$b`
|
|
35210
36061
|
:host {
|
|
35211
36062
|
outline: none;
|
|
35212
36063
|
}
|
|
@@ -35216,7 +36067,7 @@ const comboBox = i$1`
|
|
|
35216
36067
|
}
|
|
35217
36068
|
`;
|
|
35218
36069
|
|
|
35219
|
-
registerStyles('vaadin-combo-box', [inputFieldShared
|
|
36070
|
+
registerStyles('vaadin-combo-box', [inputFieldShared, comboBox], { moduleId: 'lumo-combo-box' });
|
|
35220
36071
|
|
|
35221
36072
|
/**
|
|
35222
36073
|
* @license
|
|
@@ -35492,7 +36343,7 @@ const ComboBoxOverlayMixin = (superClass) =>
|
|
|
35492
36343
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35493
36344
|
*/
|
|
35494
36345
|
|
|
35495
|
-
const comboBoxOverlayStyles = i$
|
|
36346
|
+
const comboBoxOverlayStyles = i$b`
|
|
35496
36347
|
#overlay {
|
|
35497
36348
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
35498
36349
|
}
|
|
@@ -39237,7 +40088,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
39237
40088
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
39238
40089
|
*/
|
|
39239
40090
|
|
|
39240
|
-
registerStyles('vaadin-combo-box', inputFieldShared$
|
|
40091
|
+
registerStyles('vaadin-combo-box', inputFieldShared$2, { moduleId: 'vaadin-combo-box-styles' });
|
|
39241
40092
|
|
|
39242
40093
|
/**
|
|
39243
40094
|
* `<vaadin-combo-box>` is a web component for choosing a value from a filterable list of options
|
|
@@ -39512,6 +40363,20 @@ const SelectInput = class {
|
|
|
39512
40363
|
index.registerInstance(this, hostRef);
|
|
39513
40364
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
39514
40365
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
40366
|
+
/**
|
|
40367
|
+
* Default value for the input.
|
|
40368
|
+
*/
|
|
40369
|
+
this.defaultValue = '';
|
|
40370
|
+
/**
|
|
40371
|
+
* Options of the input.
|
|
40372
|
+
*/
|
|
40373
|
+
this.options = [];
|
|
40374
|
+
/**
|
|
40375
|
+
* Client custom styling via inline style
|
|
40376
|
+
*/
|
|
40377
|
+
this.clientStyling = '';
|
|
40378
|
+
this.limitStylingAppends = false;
|
|
40379
|
+
this.showTooltip = false;
|
|
39515
40380
|
this.touched = false;
|
|
39516
40381
|
this.handleChange = (event) => {
|
|
39517
40382
|
this.touched = true;
|
|
@@ -39540,22 +40405,6 @@ const SelectInput = class {
|
|
|
39540
40405
|
sheet.innerHTML = this.clientStyling;
|
|
39541
40406
|
this.stylingContainer.prepend(sheet);
|
|
39542
40407
|
};
|
|
39543
|
-
this.name = undefined;
|
|
39544
|
-
this.displayName = undefined;
|
|
39545
|
-
this.placeholder = undefined;
|
|
39546
|
-
this.action = undefined;
|
|
39547
|
-
this.defaultValue = '';
|
|
39548
|
-
this.autofilled = undefined;
|
|
39549
|
-
this.tooltip = undefined;
|
|
39550
|
-
this.options = [];
|
|
39551
|
-
this.validation = undefined;
|
|
39552
|
-
this.language = undefined;
|
|
39553
|
-
this.emitValue = undefined;
|
|
39554
|
-
this.clientStyling = '';
|
|
39555
|
-
this.errorMessage = undefined;
|
|
39556
|
-
this.isValid = undefined;
|
|
39557
|
-
this.limitStylingAppends = false;
|
|
39558
|
-
this.showTooltip = false;
|
|
39559
40408
|
}
|
|
39560
40409
|
validityChanged() {
|
|
39561
40410
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -39634,7 +40483,7 @@ const SelectInput = class {
|
|
|
39634
40483
|
}
|
|
39635
40484
|
setErrorMessage() {
|
|
39636
40485
|
if (this.inputReference.validity.valueMissing) {
|
|
39637
|
-
return translate$
|
|
40486
|
+
return translate$2('requiredError', this.language);
|
|
39638
40487
|
}
|
|
39639
40488
|
}
|
|
39640
40489
|
renderTooltip() {
|
|
@@ -39649,7 +40498,7 @@ const SelectInput = class {
|
|
|
39649
40498
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
39650
40499
|
}
|
|
39651
40500
|
return index.h("div", { key: '3d298b9709617233adacd88b8acb7d6298d35627', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '9ba53148a200b925da11ad0dea5589e9634ffb03', class: 'select__wrapper--flex' }, index.h("label", { key: 'eb2fa2233926ada4da750e47304325d0d7ea3985', class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`), index.h("div", { key: '3cbe968f9a7c612d0b8d0517621a933cccd1bd58', class: 'select__wrapper--relative' }, this.tooltip &&
|
|
39652
|
-
index.h("img", { key: '9fa9be645ed72897a95705b0e17b3aee855eb6d4', class: 'select__tooltip-icon', src: tooltipIconSvg
|
|
40501
|
+
index.h("img", { key: '9fa9be645ed72897a95705b0e17b3aee855eb6d4', class: 'select__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("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 }), index.h("small", { key: 'a9c652406489ba1d23497c55aa14e7b67fa701bd', class: 'select__error-message' }, this.errorMessage));
|
|
39653
40502
|
}
|
|
39654
40503
|
get element() { return index.getElement(this); }
|
|
39655
40504
|
static get watchers() { return {
|
|
@@ -39667,6 +40516,12 @@ const TelInput = class {
|
|
|
39667
40516
|
index.registerInstance(this, hostRef);
|
|
39668
40517
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
39669
40518
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
40519
|
+
/**
|
|
40520
|
+
* Client custom styling via inline style
|
|
40521
|
+
*/
|
|
40522
|
+
this.clientStyling = '';
|
|
40523
|
+
this.limitStylingAppends = false;
|
|
40524
|
+
this.showTooltip = false;
|
|
39670
40525
|
this.validationPattern = '';
|
|
39671
40526
|
this.touched = false;
|
|
39672
40527
|
this.handleInput = (event) => {
|
|
@@ -39692,22 +40547,6 @@ const TelInput = class {
|
|
|
39692
40547
|
sheet.innerHTML = this.clientStyling;
|
|
39693
40548
|
this.stylingContainer.prepend(sheet);
|
|
39694
40549
|
};
|
|
39695
|
-
this.name = undefined;
|
|
39696
|
-
this.displayName = undefined;
|
|
39697
|
-
this.placeholder = undefined;
|
|
39698
|
-
this.showLabels = undefined;
|
|
39699
|
-
this.action = undefined;
|
|
39700
|
-
this.validation = undefined;
|
|
39701
|
-
this.defaultValue = undefined;
|
|
39702
|
-
this.autofilled = undefined;
|
|
39703
|
-
this.tooltip = undefined;
|
|
39704
|
-
this.language = undefined;
|
|
39705
|
-
this.emitValue = undefined;
|
|
39706
|
-
this.clientStyling = '';
|
|
39707
|
-
this.isValid = undefined;
|
|
39708
|
-
this.errorMessage = undefined;
|
|
39709
|
-
this.limitStylingAppends = false;
|
|
39710
|
-
this.showTooltip = false;
|
|
39711
40550
|
}
|
|
39712
40551
|
validityChanged() {
|
|
39713
40552
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -39799,13 +40638,13 @@ const TelInput = class {
|
|
|
39799
40638
|
if (this.inputReference.validity.patternMismatch) {
|
|
39800
40639
|
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
39801
40640
|
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
39802
|
-
return translate$
|
|
40641
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
39803
40642
|
}
|
|
39804
40643
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
39805
|
-
return translate$
|
|
40644
|
+
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
39806
40645
|
}
|
|
39807
40646
|
if (this.inputReference.validity.valueMissing) {
|
|
39808
|
-
return translate$
|
|
40647
|
+
return translate$2('requiredError', this.language);
|
|
39809
40648
|
}
|
|
39810
40649
|
}
|
|
39811
40650
|
renderTooltip() {
|
|
@@ -39820,7 +40659,7 @@ const TelInput = class {
|
|
|
39820
40659
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
39821
40660
|
}
|
|
39822
40661
|
return index.h("div", { key: '5febd36c339710683111039d477196daac87853c', class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'fb779beee03992b23478ffcaac85095420048ceb', class: 'tel__wrapper--flex-label' }, index.h("label", { key: '5b69271c1c8bf403a003d765adb40a553e09466e', class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '040c487308231459fc92eba2e643a80639df09d6', class: 'tel__wrapper--relative' }, this.tooltip &&
|
|
39823
|
-
index.h("img", { key: '91efd4656c718c75e5047413daf10c22c37e8f93', class: 'tel__tooltip-icon', src: tooltipIconSvg
|
|
40662
|
+
index.h("img", { key: '91efd4656c718c75e5047413daf10c22c37e8f93', class: 'tel__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("div", { key: '6215f80b6bccb3dfb03dbbc485c850725633627c', class: `tel__wrapper--flex ${invalidClass}` }, index.h("vaadin-combo-box", { key: '3b7b1ef3415619c51d74f5fc7c5e034acb8f037f', class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.handlePrefixInput(e) }), index.h("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 })), index.h("small", { key: 'd4c88d386c3342c789527d925e9cd061494b785c', class: 'tel__error-message' }, this.errorMessage));
|
|
39824
40663
|
}
|
|
39825
40664
|
static get watchers() { return {
|
|
39826
40665
|
"isValid": ["validityChanged"],
|
|
@@ -39837,6 +40676,17 @@ const TextInput = class {
|
|
|
39837
40676
|
index.registerInstance(this, hostRef);
|
|
39838
40677
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
39839
40678
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
40679
|
+
/**
|
|
40680
|
+
* Default value for the input.
|
|
40681
|
+
*/
|
|
40682
|
+
this.defaultValue = '';
|
|
40683
|
+
/**
|
|
40684
|
+
* Client custom styling via inline style
|
|
40685
|
+
*/
|
|
40686
|
+
this.clientStyling = '';
|
|
40687
|
+
this.errorMessage = '';
|
|
40688
|
+
this.limitStylingAppends = false;
|
|
40689
|
+
this.showTooltip = false;
|
|
39840
40690
|
this.value = '';
|
|
39841
40691
|
this.validationPattern = '';
|
|
39842
40692
|
this.duplicateInputValue = null;
|
|
@@ -39866,22 +40716,6 @@ const TextInput = class {
|
|
|
39866
40716
|
sheet.innerHTML = this.clientStyling;
|
|
39867
40717
|
this.stylingContainer.prepend(sheet);
|
|
39868
40718
|
};
|
|
39869
|
-
this.name = undefined;
|
|
39870
|
-
this.displayName = undefined;
|
|
39871
|
-
this.placeholder = undefined;
|
|
39872
|
-
this.validation = undefined;
|
|
39873
|
-
this.defaultValue = '';
|
|
39874
|
-
this.autofilled = undefined;
|
|
39875
|
-
this.tooltip = undefined;
|
|
39876
|
-
this.language = undefined;
|
|
39877
|
-
this.checkValidity = undefined;
|
|
39878
|
-
this.emitValue = undefined;
|
|
39879
|
-
this.isDuplicateInput = undefined;
|
|
39880
|
-
this.clientStyling = '';
|
|
39881
|
-
this.isValid = undefined;
|
|
39882
|
-
this.errorMessage = '';
|
|
39883
|
-
this.limitStylingAppends = false;
|
|
39884
|
-
this.showTooltip = false;
|
|
39885
40719
|
}
|
|
39886
40720
|
validityChanged() {
|
|
39887
40721
|
this.validityStateHandler({ valid: this.isValid, name: this.name });
|
|
@@ -39963,18 +40797,18 @@ const TextInput = class {
|
|
|
39963
40797
|
if (this.inputReference.validity.patternMismatch) {
|
|
39964
40798
|
const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
|
|
39965
40799
|
const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
|
|
39966
|
-
return translate$
|
|
40800
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
39967
40801
|
}
|
|
39968
40802
|
if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
|
|
39969
|
-
return translate$
|
|
40803
|
+
return translate$2('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
|
|
39970
40804
|
}
|
|
39971
40805
|
if (this.inputReference.validity.valueMissing) {
|
|
39972
|
-
return translate$
|
|
40806
|
+
return translate$2('requiredError', this.language);
|
|
39973
40807
|
}
|
|
39974
40808
|
if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
|
|
39975
40809
|
const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
|
|
39976
40810
|
const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
|
|
39977
|
-
return translate$
|
|
40811
|
+
return translate$2(`${errorCode}`, this.language) ? translate$2(`${errorCode}`, this.language) : errorMessage;
|
|
39978
40812
|
}
|
|
39979
40813
|
}
|
|
39980
40814
|
renderTooltip() {
|
|
@@ -39989,7 +40823,7 @@ const TextInput = class {
|
|
|
39989
40823
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
39990
40824
|
}
|
|
39991
40825
|
return index.h("div", { key: 'bfb803110a70b89dd484e993c204b572f0115a17', class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el }, index.h("div", { key: '6e9f8f5aada98821d5dc78ccb8b1431ba23b81ab', class: 'text__wrapper--flex' }, index.h("label", { key: '05cf07855121a79641475a5b020774cf8120d1ed', class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'f8c48a999f6827a61ec392ce99858c19559c77d2', class: 'text__wrapper--relative' }, this.tooltip &&
|
|
39992
|
-
index.h("img", { key: 'e866f1df104ce57c29164e73b4ad4d017c7201cd', class: 'text__tooltip-icon', src: tooltipIconSvg
|
|
40826
|
+
index.h("img", { key: 'e866f1df104ce57c29164e73b4ad4d017c7201cd', class: 'text__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("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 }), index.h("small", { key: '5c8df34dd47959eb1668cdf389524d145c69fa84', class: 'text__error-message' }, this.errorMessage));
|
|
39993
40827
|
}
|
|
39994
40828
|
static get watchers() { return {
|
|
39995
40829
|
"isValid": ["validityChanged"],
|
|
@@ -40006,27 +40840,23 @@ const ToggleCheckboxInput = class {
|
|
|
40006
40840
|
index.registerInstance(this, hostRef);
|
|
40007
40841
|
this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
|
|
40008
40842
|
this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
|
|
40843
|
+
/**
|
|
40844
|
+
* Default value for the input.
|
|
40845
|
+
*/
|
|
40846
|
+
this.defaultValue = '';
|
|
40847
|
+
/**
|
|
40848
|
+
* Client custom styling via inline style
|
|
40849
|
+
*/
|
|
40850
|
+
this.clientStyling = '';
|
|
40851
|
+
this.limitStylingAppends = false;
|
|
40852
|
+
this.showTooltip = false;
|
|
40853
|
+
this.showFields = this.defaultValue === 'true';
|
|
40009
40854
|
this.value = '';
|
|
40010
40855
|
this.setClientStyling = () => {
|
|
40011
40856
|
let sheet = document.createElement('style');
|
|
40012
40857
|
sheet.innerHTML = this.clientStyling;
|
|
40013
40858
|
this.stylingContainer.prepend(sheet);
|
|
40014
40859
|
};
|
|
40015
|
-
this.name = undefined;
|
|
40016
|
-
this.displayName = undefined;
|
|
40017
|
-
this.defaultValue = '';
|
|
40018
|
-
this.options = undefined;
|
|
40019
|
-
this.autofilled = undefined;
|
|
40020
|
-
this.tooltip = undefined;
|
|
40021
|
-
this.validation = undefined;
|
|
40022
|
-
this.language = undefined;
|
|
40023
|
-
this.emitValue = undefined;
|
|
40024
|
-
this.clientStyling = '';
|
|
40025
|
-
this.errorMessage = undefined;
|
|
40026
|
-
this.isValid = undefined;
|
|
40027
|
-
this.limitStylingAppends = false;
|
|
40028
|
-
this.showTooltip = false;
|
|
40029
|
-
this.showFields = this.defaultValue === 'true';
|
|
40030
40860
|
}
|
|
40031
40861
|
validityStateHandler(inputStateEvent) {
|
|
40032
40862
|
this.sendValidityState.emit(inputStateEvent);
|
|
@@ -40060,7 +40890,7 @@ const ToggleCheckboxInput = class {
|
|
|
40060
40890
|
}
|
|
40061
40891
|
setErrorMessage() {
|
|
40062
40892
|
if (this.checkboxReference.validity.valueMissing) {
|
|
40063
|
-
return translate$
|
|
40893
|
+
return translate$2('requiredError', this.language);
|
|
40064
40894
|
}
|
|
40065
40895
|
}
|
|
40066
40896
|
renderLabel() {
|
|
@@ -40074,7 +40904,7 @@ const ToggleCheckboxInput = class {
|
|
|
40074
40904
|
}
|
|
40075
40905
|
render() {
|
|
40076
40906
|
return index.h("div", { key: '8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '18e2ec43ff98738323ddab1e134d6d215978e1c7', class: 'togglecheckbox__wrapper--flex' }, index.h("input", { key: '640b3ba4fd34bd813239533236e51f452e735409', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), index.h("small", { key: 'efd70a691559cfa98e93561dd945a0fe92909718', class: 'togglecheckbox__error-message' }, this.errorMessage), index.h("div", { key: 'e56a8fafa17da25d01f894fe6e6c143c318d2aab', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
|
|
40077
|
-
index.h("img", { key: '8b59366827b8f4f8ca5581203a2dca44ae8132d5', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg
|
|
40907
|
+
index.h("img", { key: '8b59366827b8f4f8ca5581203a2dca44ae8132d5', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("div", { key: '475e27345b51396c36e78b5a1e06edd980bc3ae1', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
|
|
40078
40908
|
return index.h("general-input", { type: subfield.inputType, name: subfield.name, displayName: subfield.displayName, validation: subfield.validate, action: subfield.action || null, defaultValue: subfield.defaultValue, autofilled: subfield.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: subfield.tooltip, placeholder: subfield.placeholder == null ? '' : subfield.placeholder });
|
|
40079
40909
|
})));
|
|
40080
40910
|
}
|
|
@@ -40085,7 +40915,6 @@ exports.checkbox_group_input = CheckboxGroupInput;
|
|
|
40085
40915
|
exports.checkbox_input = CheckboxInput;
|
|
40086
40916
|
exports.date_input = DateInput;
|
|
40087
40917
|
exports.email_input = EmailInput;
|
|
40088
|
-
exports.general_consents = GeneralConsents;
|
|
40089
40918
|
exports.general_input = GeneralInput;
|
|
40090
40919
|
exports.general_registration = GeneralRegistration;
|
|
40091
40920
|
exports.number_input = NumberInput;
|