@descope/web-components-ui 3.20.3 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +414 -27
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +414 -27
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1411.js +339 -0
- package/dist/umd/1411.js.map +1 -0
- package/dist/umd/189.js +171 -0
- package/dist/umd/189.js.map +1 -0
- package/dist/umd/2894.js +339 -0
- package/dist/umd/2894.js.map +1 -0
- package/dist/umd/3792.js +339 -0
- package/dist/umd/3792.js.map +1 -0
- package/dist/umd/{9117.js → 384.js} +121 -9
- package/dist/umd/{descope-tooltip.js.LICENSE.txt → 384.js.LICENSE.txt} +2 -2
- package/dist/umd/384.js.map +1 -0
- package/dist/umd/4268.js +339 -0
- package/dist/umd/4268.js.LICENSE.txt +11 -0
- package/dist/umd/4268.js.map +1 -0
- package/dist/umd/513.js +339 -0
- package/dist/umd/513.js.LICENSE.txt +11 -0
- package/dist/umd/513.js.map +1 -0
- package/dist/umd/6227.js +320 -0
- package/dist/umd/6227.js.map +1 -0
- package/dist/umd/6535.js +115 -0
- package/dist/umd/{9275.js.LICENSE.txt → 6535.js.LICENSE.txt} +0 -6
- package/dist/umd/6535.js.map +1 -0
- package/dist/umd/6649.js +339 -0
- package/dist/umd/6649.js.LICENSE.txt +11 -0
- package/dist/umd/6649.js.map +1 -0
- package/dist/umd/7125.js +339 -0
- package/dist/umd/7125.js.LICENSE.txt +11 -0
- package/dist/umd/7125.js.map +1 -0
- package/dist/umd/{5263.js → 8264.js} +5 -5
- package/dist/umd/8264.js.map +1 -0
- package/dist/umd/8983.js +7 -324
- package/dist/umd/8983.js.map +1 -1
- package/dist/umd/9030.js +339 -0
- package/dist/umd/9030.js.LICENSE.txt +11 -0
- package/dist/umd/9030.js.map +1 -0
- package/dist/umd/9380.js +130 -0
- package/dist/umd/9380.js.map +1 -0
- package/dist/umd/9506.js +339 -0
- package/dist/umd/9506.js.LICENSE.txt +11 -0
- package/dist/umd/9506.js.map +1 -0
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -338
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.map +1 -1
- package/dist/umd/descope-apps-list.js +161 -1
- package/dist/umd/descope-apps-list.js.LICENSE.txt +17 -0
- package/dist/umd/descope-apps-list.js.map +1 -1
- package/dist/umd/descope-avatar.js +5 -20
- package/dist/umd/descope-avatar.js.LICENSE.txt +0 -12
- package/dist/umd/descope-avatar.js.map +1 -1
- package/dist/umd/descope-button.js +3 -3
- package/dist/umd/descope-button.js.LICENSE.txt +6 -0
- package/dist/umd/descope-button.js.map +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js.map +1 -1
- package/dist/umd/descope-email-field-index-js.js +4 -4
- package/dist/umd/descope-email-field-index-js.js.map +1 -1
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +4 -321
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js.LICENSE.txt +0 -6
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js.map +1 -1
- package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +5 -322
- package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js.map +1 -1
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +4 -321
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.LICENSE.txt +0 -6
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.map +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +2 -2
- package/dist/umd/descope-hybrid-field-index-js.js.map +1 -1
- package/dist/umd/descope-multi-line-mappings.js +1 -1
- package/dist/umd/descope-multi-line-mappings.js.map +1 -1
- package/dist/umd/descope-multi-sso.js +1 -338
- package/dist/umd/descope-multi-sso.js.map +1 -1
- package/dist/umd/descope-outbound-app-button.js +1 -338
- package/dist/umd/descope-outbound-app-button.js.map +1 -1
- package/dist/umd/descope-recovery-codes.js +1 -1
- package/dist/umd/descope-recovery-codes.js.map +1 -1
- package/dist/umd/descope-timer-button.js +1 -338
- package/dist/umd/descope-timer-button.js.map +1 -1
- package/dist/umd/descope-tooltip.js +1 -2
- package/dist/umd/descope-tooltip.js.map +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -338
- package/dist/umd/descope-upload-file-index-js.js.map +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +1 -338
- package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -338
- package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
- package/dist/umd/descope-user-passkeys.js +1 -338
- package/dist/umd/descope-user-passkeys.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +42 -42
- package/src/components/descope-email-field/EmailFieldClass.js +50 -2
- package/src/components/descope-email-field/emailPattern.js +7 -0
- package/stories/descope-email-field.stories.js +8 -0
- package/dist/umd/1453.js +0 -177
- package/dist/umd/1453.js.LICENSE.txt +0 -29
- package/dist/umd/1453.js.map +0 -1
- package/dist/umd/5263.js.map +0 -1
- package/dist/umd/6063.js +0 -18
- package/dist/umd/6063.js.map +0 -1
- package/dist/umd/6818.js +0 -3
- package/dist/umd/6818.js.map +0 -1
- package/dist/umd/8248.js +0 -171
- package/dist/umd/8248.js.map +0 -1
- package/dist/umd/8968.js +0 -432
- package/dist/umd/8968.js.map +0 -1
- package/dist/umd/9117.js.map +0 -1
- package/dist/umd/9275.js +0 -18
- package/dist/umd/9275.js.map +0 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.LICENSE.txt +0 -5
- package/dist/umd/descope-multi-sso.js.LICENSE.txt +0 -5
- package/dist/umd/descope-outbound-app-button.js.LICENSE.txt +0 -5
- package/dist/umd/descope-timer-button.js.LICENSE.txt +0 -5
- package/dist/umd/descope-upload-file-index-js.js.LICENSE.txt +0 -5
- package/dist/umd/descope-user-attribute-index-js.js.LICENSE.txt +0 -5
- package/dist/umd/descope-user-passkeys.js.LICENSE.txt +0 -5
- /package/dist/umd/{8968.js.LICENSE.txt → 1411.js.LICENSE.txt} +0 -0
- /package/dist/umd/{6063.js.LICENSE.txt → 189.js.LICENSE.txt} +0 -0
- /package/dist/umd/{9117.js.LICENSE.txt → 2894.js.LICENSE.txt} +0 -0
- /package/dist/umd/{descope-user-auth-method-index-js.js.LICENSE.txt → 3792.js.LICENSE.txt} +0 -0
- /package/dist/umd/{6818.js.LICENSE.txt → 6227.js.LICENSE.txt} +0 -0
- /package/dist/umd/{5263.js.LICENSE.txt → 8264.js.LICENSE.txt} +0 -0
- /package/dist/umd/{8248.js.LICENSE.txt → 9380.js.LICENSE.txt} +0 -0
package/dist/umd/8983.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see 8983.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[8983],{4080(
|
|
2
|
+
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[8983],{4080(t,e,o){o.d(e,{CI:()=>m,H8:()=>r,gm:()=>s,m0:()=>a,nr:()=>c,un:()=>d});const i=t=>t.test(navigator.userAgent),n=t=>t.test(navigator.platform),a=i(/Android/u),r=i(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),s=i(/Firefox/u),l=n(/^iPad/u)||n(/^Mac/u)&&navigator.maxTouchPoints>1,d=n(/^iPhone/u)||l,c=i(/^((?!chrome|android).)*safari/iu),m=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})()},55341(t,e,o){o.d(e,{i:()=>i});const i=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:o}=e;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter(t=>!this.__initialClasses.has(t));t.length>0&&o.remove(...t)}const i="string"==typeof t?t.split(" ").filter(Boolean):[];i.length>0&&o.add(...i),this.__previousClasses=i}}},21255(t,e,o){function i(t){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn(`WARNING: <template> inside <${t.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}o.d(e,{h:()=>i})},18983(t,e,o){o(64511),o(9433),o(3241),o(83315);var i=o(87550);(0,i.SF)("vaadin-notification-card",i.AH`
|
|
3
3
|
:host {
|
|
4
4
|
position: relative;
|
|
5
5
|
margin: var(--lumo-space-s);
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
--vaadin-button-primary-background: var(--lumo-shade-50pct);
|
|
190
190
|
--vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
|
|
191
191
|
}
|
|
192
|
-
`,{moduleId:"lumo-notification-card"});var
|
|
192
|
+
`,{moduleId:"lumo-notification-card"});var n=o(13256),a=o(51450),r=o(73278),s=o(4080),l=o(82901),d=o(72562),c=o(55341),m=o(21255),u=o(75365);class h extends((0,i.cp)((0,d.q)(n.Pu))){static get template(){return n.qy`
|
|
193
193
|
<style>
|
|
194
194
|
:host {
|
|
195
195
|
position: fixed;
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
<div region="bottom-end"><slot name="bottom-end"></slot></div>
|
|
257
257
|
</div>
|
|
258
258
|
<div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
|
|
259
|
-
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),
|
|
259
|
+
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),s.un&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const t=window.innerHeight,e=window.innerWidth>t,o=document.documentElement.clientHeight;this.style.bottom=e&&o>t?o-t+"px":"0"}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault()}}class p extends((0,i.cp)(n.Pu)){static get template(){return n.qy`
|
|
260
260
|
<style>
|
|
261
261
|
:host {
|
|
262
262
|
display: block;
|
|
@@ -278,331 +278,14 @@
|
|
|
278
278
|
<slot></slot>
|
|
279
279
|
</div>
|
|
280
280
|
</div>
|
|
281
|
-
`}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class v extends((0,
|
|
281
|
+
`}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class v extends((0,c.i)((0,u._)((0,d.q)(n.Pu)))){static get template(){return n.qy`
|
|
282
282
|
<style>
|
|
283
283
|
:host {
|
|
284
284
|
display: none !important;
|
|
285
285
|
}
|
|
286
286
|
</style>
|
|
287
287
|
<vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
|
|
288
|
-
`}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(
|
|
289
|
-
:host {
|
|
290
|
-
/* Base (background) */
|
|
291
|
-
--lumo-base-color: #fff;
|
|
292
|
-
|
|
293
|
-
/* Tint */
|
|
294
|
-
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
295
|
-
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
296
|
-
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
297
|
-
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
298
|
-
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
299
|
-
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
300
|
-
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
301
|
-
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
302
|
-
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
303
|
-
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
304
|
-
--lumo-tint: #fff;
|
|
305
|
-
|
|
306
|
-
/* Shade */
|
|
307
|
-
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
308
|
-
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
309
|
-
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
310
|
-
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
311
|
-
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
312
|
-
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
313
|
-
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
314
|
-
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
315
|
-
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
316
|
-
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
317
|
-
--lumo-shade: hsl(214, 35%, 15%);
|
|
318
|
-
|
|
319
|
-
/* Contrast */
|
|
320
|
-
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
321
|
-
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
322
|
-
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
323
|
-
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
324
|
-
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
325
|
-
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
326
|
-
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
327
|
-
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
328
|
-
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
329
|
-
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
330
|
-
--lumo-contrast: var(--lumo-shade);
|
|
331
|
-
|
|
332
|
-
/* Text */
|
|
333
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
334
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
335
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
336
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
337
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
338
|
-
|
|
339
|
-
/* Primary */
|
|
340
|
-
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
341
|
-
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
342
|
-
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
343
|
-
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
344
|
-
--lumo-primary-contrast-color: #fff;
|
|
345
|
-
|
|
346
|
-
/* Error */
|
|
347
|
-
--lumo-error-color: hsl(3, 85%, 48%);
|
|
348
|
-
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
349
|
-
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
350
|
-
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
351
|
-
--lumo-error-contrast-color: #fff;
|
|
352
|
-
|
|
353
|
-
/* Success */
|
|
354
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
355
|
-
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
356
|
-
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
357
|
-
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
358
|
-
--lumo-success-contrast-color: #fff;
|
|
359
|
-
|
|
360
|
-
/* Warning */
|
|
361
|
-
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
362
|
-
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
363
|
-
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
364
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/* forced-colors mode adjustments */
|
|
368
|
-
@media (forced-colors: active) {
|
|
369
|
-
html {
|
|
370
|
-
--lumo-disabled-text-color: GrayText;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
`;(0,r.q)("color-props",i);const n=e.AH`
|
|
374
|
-
[theme~='dark'] {
|
|
375
|
-
/* Base (background) */
|
|
376
|
-
--lumo-base-color: hsl(214, 35%, 21%);
|
|
377
|
-
|
|
378
|
-
/* Tint */
|
|
379
|
-
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
380
|
-
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
381
|
-
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
382
|
-
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
383
|
-
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
384
|
-
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
385
|
-
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
386
|
-
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
387
|
-
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
388
|
-
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
389
|
-
--lumo-tint: hsl(214, 100%, 98%);
|
|
390
|
-
|
|
391
|
-
/* Shade */
|
|
392
|
-
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
393
|
-
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
394
|
-
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
395
|
-
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
396
|
-
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
397
|
-
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
398
|
-
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
399
|
-
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
400
|
-
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
401
|
-
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
402
|
-
--lumo-shade: hsl(214, 33%, 13%);
|
|
403
|
-
|
|
404
|
-
/* Contrast */
|
|
405
|
-
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
406
|
-
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
407
|
-
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
408
|
-
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
409
|
-
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
410
|
-
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
411
|
-
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
412
|
-
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
413
|
-
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
414
|
-
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
415
|
-
--lumo-contrast: var(--lumo-tint);
|
|
416
|
-
|
|
417
|
-
/* Text */
|
|
418
|
-
--lumo-header-text-color: var(--lumo-contrast);
|
|
419
|
-
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
420
|
-
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
421
|
-
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
422
|
-
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
423
|
-
|
|
424
|
-
/* Primary */
|
|
425
|
-
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
426
|
-
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
427
|
-
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
428
|
-
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
429
|
-
--lumo-primary-contrast-color: #fff;
|
|
430
|
-
|
|
431
|
-
/* Error */
|
|
432
|
-
--lumo-error-color: hsl(3, 79%, 49%);
|
|
433
|
-
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
434
|
-
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
435
|
-
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
436
|
-
|
|
437
|
-
/* Success */
|
|
438
|
-
--lumo-success-color: hsl(145, 72%, 30%);
|
|
439
|
-
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
440
|
-
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
441
|
-
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
442
|
-
|
|
443
|
-
/* Warning */
|
|
444
|
-
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
445
|
-
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
446
|
-
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
447
|
-
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
html {
|
|
451
|
-
color: var(--lumo-body-text-color);
|
|
452
|
-
background-color: var(--lumo-base-color);
|
|
453
|
-
color-scheme: light;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
[theme~='dark'] {
|
|
457
|
-
color: var(--lumo-body-text-color);
|
|
458
|
-
background-color: var(--lumo-base-color);
|
|
459
|
-
color-scheme: dark;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
h1,
|
|
463
|
-
h2,
|
|
464
|
-
h3,
|
|
465
|
-
h4,
|
|
466
|
-
h5,
|
|
467
|
-
h6 {
|
|
468
|
-
color: var(--lumo-header-text-color);
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
a:where(:any-link) {
|
|
472
|
-
color: var(--lumo-primary-text-color);
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
a:not(:any-link) {
|
|
476
|
-
color: var(--lumo-disabled-text-color);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
blockquote {
|
|
480
|
-
color: var(--lumo-secondary-text-color);
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
code,
|
|
484
|
-
pre {
|
|
485
|
-
background-color: var(--lumo-contrast-10pct);
|
|
486
|
-
border-radius: var(--lumo-border-radius-m);
|
|
487
|
-
}
|
|
488
|
-
`;(0,e.SF)("",n,{moduleId:"lumo-color"})},9433(o,t,a){a(88660);var e=a(87550),r=a(36411);const i=e.AH`
|
|
489
|
-
:host {
|
|
490
|
-
/* Square */
|
|
491
|
-
--lumo-space-xs: 0.25rem;
|
|
492
|
-
--lumo-space-s: 0.5rem;
|
|
493
|
-
--lumo-space-m: 1rem;
|
|
494
|
-
--lumo-space-l: 1.5rem;
|
|
495
|
-
--lumo-space-xl: 2.5rem;
|
|
496
|
-
|
|
497
|
-
/* Wide */
|
|
498
|
-
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
499
|
-
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
500
|
-
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
501
|
-
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
502
|
-
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
503
|
-
|
|
504
|
-
/* Tall */
|
|
505
|
-
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
506
|
-
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
507
|
-
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
508
|
-
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
509
|
-
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
510
|
-
}
|
|
511
|
-
`;(0,r.q)("spacing-props",i)},3241(o,t,a){a(88660);var e=a(87550),r=a(36411);const i=e.AH`
|
|
512
|
-
:host {
|
|
513
|
-
/* Border radius */
|
|
514
|
-
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
515
|
-
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
516
|
-
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
517
|
-
|
|
518
|
-
/* Shadow */
|
|
519
|
-
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
520
|
-
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
521
|
-
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
522
|
-
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
523
|
-
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
524
|
-
|
|
525
|
-
/* Clickable element cursor */
|
|
526
|
-
--lumo-clickable-cursor: default;
|
|
527
|
-
}
|
|
528
|
-
`;e.AH`
|
|
529
|
-
html {
|
|
530
|
-
/* Button */
|
|
531
|
-
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
532
|
-
--vaadin-button-border: none;
|
|
533
|
-
--vaadin-button-border-radius: var(--lumo-border-radius-m);
|
|
534
|
-
--vaadin-button-font-size: var(--lumo-font-size-m);
|
|
535
|
-
--vaadin-button-font-weight: 500;
|
|
536
|
-
--vaadin-button-height: var(--lumo-size-m);
|
|
537
|
-
--vaadin-button-margin: var(--lumo-space-xs) 0;
|
|
538
|
-
--vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
|
|
539
|
-
--vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
|
|
540
|
-
--vaadin-button-text-color: var(--lumo-primary-text-color);
|
|
541
|
-
--vaadin-button-primary-background: var(--lumo-primary-color);
|
|
542
|
-
--vaadin-button-primary-border: none;
|
|
543
|
-
--vaadin-button-primary-font-weight: 600;
|
|
544
|
-
--vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
|
|
545
|
-
--vaadin-button-tertiary-background: transparent !important;
|
|
546
|
-
--vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
|
|
547
|
-
--vaadin-button-tertiary-font-weight: 500;
|
|
548
|
-
--vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
|
|
549
|
-
/* Checkbox */
|
|
550
|
-
--vaadin-checkbox-background: var(--lumo-contrast-20pct);
|
|
551
|
-
--vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
|
|
552
|
-
--vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
|
|
553
|
-
--vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
|
|
554
|
-
--vaadin-checkbox-checkmark-char-indeterminate: '';
|
|
555
|
-
--vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
|
|
556
|
-
--vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
|
|
557
|
-
--vaadin-checkbox-label-color: var(--lumo-body-text-color);
|
|
558
|
-
--vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
|
|
559
|
-
--vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
|
|
560
|
-
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
561
|
-
/* Radio button */
|
|
562
|
-
--vaadin-radio-button-background: var(--lumo-contrast-20pct);
|
|
563
|
-
--vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
|
|
564
|
-
--vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
|
|
565
|
-
--vaadin-radio-button-dot-size: 3px;
|
|
566
|
-
--vaadin-radio-button-label-color: var(--lumo-body-text-color);
|
|
567
|
-
--vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
|
|
568
|
-
--vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
|
|
569
|
-
var(--lumo-space-xs);
|
|
570
|
-
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
571
|
-
--vaadin-selection-color: var(--lumo-primary-color);
|
|
572
|
-
--vaadin-selection-color-text: var(--lumo-primary-text-color);
|
|
573
|
-
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
574
|
-
--vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
|
|
575
|
-
--vaadin-focus-ring-width: 2px;
|
|
576
|
-
/* Label */
|
|
577
|
-
--vaadin-input-field-label-color: var(--lumo-secondary-text-color);
|
|
578
|
-
--vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
|
|
579
|
-
--vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
|
|
580
|
-
--vaadin-input-field-label-font-size: var(--lumo-font-size-s);
|
|
581
|
-
--vaadin-input-field-label-font-weight: 500;
|
|
582
|
-
/* Helper */
|
|
583
|
-
--vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
|
|
584
|
-
--vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
|
|
585
|
-
--vaadin-input-field-helper-font-weight: 400;
|
|
586
|
-
--vaadin-input-field-helper-spacing: 0.4em;
|
|
587
|
-
/* Error message */
|
|
588
|
-
--vaadin-input-field-error-color: var(--lumo-error-text-color);
|
|
589
|
-
--vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
|
|
590
|
-
--vaadin-input-field-error-font-weight: 400;
|
|
591
|
-
/* Input field */
|
|
592
|
-
--vaadin-input-field-background: var(--lumo-contrast-10pct);
|
|
593
|
-
--vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
|
|
594
|
-
--vaadin-input-field-icon-size: var(--lumo-icon-size-m);
|
|
595
|
-
--vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
|
|
596
|
-
--vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
|
|
597
|
-
--vaadin-input-field-height: var(--lumo-size-m);
|
|
598
|
-
--vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
|
|
599
|
-
--vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
|
|
600
|
-
--vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
|
|
601
|
-
--vaadin-input-field-value-color: var(--lumo-body-text-color);
|
|
602
|
-
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
603
|
-
--vaadin-input-field-value-font-weight: 400;
|
|
604
|
-
}
|
|
605
|
-
`,(0,r.q)("style-props",i)},83315(o,t,a){a(88660);var e=a(87550),r=a(36411);const i=e.AH`
|
|
288
|
+
`}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return(0,r.qb)(t)?v._createAndShowNotification(e=>{(0,a.XX)(t,e)},e):v._createAndShowNotification(e=>{e.innerText=t},e)}static _createAndShowNotification(t,e){const o=document.createElement(v.is);return e&&Number.isFinite(e.duration)&&(o.duration=e.duration),e&&e.position&&(o.position=e.position),e&&e.theme&&o.setAttribute("theme",e.theme),o.renderer=t,document.body.appendChild(o),o.opened=!0,o.addEventListener("opened-changed",t=>{t.detail.value||o.remove()}),o}get _container(){return v._container||(v._container=document.createElement("vaadin-notification-container"),document.body.appendChild(v._container)),v._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),(0,m.h)(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(t,e,o){if(!o)return;const i=this._oldRenderer!==t;this._oldRenderer=t,i&&(o.innerHTML="",delete o._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}_animatedAppendNotificationCard(){if(this._card){this._card.setAttribute("opening",""),this._appendNotificationCard();const t=()=>{this._card.removeEventListener("animationend",t),this._card.removeAttribute("opening")};this._card.addEventListener("animationend",t),this._didAnimateNotificationAppend=!0}else this._didAnimateNotificationAppend=!1}_appendNotificationCard(){this._card&&(this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)?(this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)):console.warn(`Invalid alignment parameter provided: position=${this.position}`))}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=Boolean(this._container.firstElementChild)}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");if(t&&"none"!==t){const t=()=>{this._removeNotificationCard(),this._card.removeEventListener("animationend",t)};this._card.addEventListener("animationend",t)}else this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),t)))}}(0,l.X)(h),(0,l.X)(p),(0,l.X)(v)},83315(t,e,o){o(88660);var i=o(87550),n=o(36411);const a=i.AH`
|
|
606
289
|
:host {
|
|
607
290
|
/* prettier-ignore */
|
|
608
291
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -622,7 +305,7 @@
|
|
|
622
305
|
--lumo-line-height-s: 1.375;
|
|
623
306
|
--lumo-line-height-m: 1.625;
|
|
624
307
|
}
|
|
625
|
-
`,
|
|
308
|
+
`,r=i.AH`
|
|
626
309
|
body,
|
|
627
310
|
:host {
|
|
628
311
|
font-family: var(--lumo-font-family);
|
|
@@ -714,5 +397,5 @@
|
|
|
714
397
|
border-left: none;
|
|
715
398
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
716
399
|
}
|
|
717
|
-
`;(0,
|
|
400
|
+
`;(0,i.SF)("",r,{moduleId:"lumo-typography"}),(0,n.q)("typography-props",a)},73278(t,e,o){o.d(e,{Qk:()=>a,qb:()=>r});var i=o(55670);const{I:n}=i.ge,a={HTML:1,SVG:2,MATHML:3},r=(t,e)=>void 0===e?void 0!==t?._$litType$:t?._$litType$===e}}]);
|
|
718
401
|
//# sourceMappingURL=8983.js.map
|