@descope/web-components-ui 1.0.425 → 1.0.427
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 +1855 -910
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4441 -3497
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1484.js +1 -1
- package/dist/umd/2159.js +1 -1
- package/dist/umd/404.js +1 -1
- package/dist/umd/4127.js +1 -1
- package/dist/umd/{2755.js → 5459.js} +1 -1
- package/dist/umd/8823.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-combo-box.js +113 -0
- package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +3 -3
- package/dist/umd/descope-security-questions-setup-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +2 -2
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +8 -8
- package/node_modules/common/package.json +3 -0
- package/node_modules/common/src/componentsMixins/mixins/normalizeBooleanAttributesMixin.js +2 -0
- package/node_modules/common/src/sbHelpers.js +53 -0
- package/node_modules/common/src/themeHelpers/index.js +26 -11
- package/node_modules/common/src/themeHelpers/resetHelpers.js +144 -0
- package/node_modules/descope-combo-box/e2e/descope-combo-box.spec.ts +462 -0
- package/node_modules/descope-combo-box/package.json +34 -0
- package/node_modules/descope-combo-box/project.json +7 -0
- package/{src/components/descope-combo-box → node_modules/descope-combo-box/src/component}/ComboBoxClass.js +114 -38
- package/{src/theme/components/comboBox.js → node_modules/descope-combo-box/src/theme.js} +6 -6
- package/node_modules/descope-combo-box/stories/descope-combo-box.stories.js +180 -0
- package/node_modules/theme-input-wrapper/package.json +17 -0
- package/node_modules/theme-input-wrapper/project.json +7 -0
- package/node_modules/theme-input-wrapper/src/index.js +130 -0
- package/package.json +10 -6
- package/src/components/descope-date-field/descope-calendar/index.js +1 -1
- package/src/components/descope-security-questions-setup/SecurityQuestionsSetupClass.js +1 -1
- package/src/components/descope-security-questions-setup/index.js +1 -1
- package/src/components/mapping-fields/descope-mappings-field/index.js +1 -1
- package/src/components/phone-fields/descope-phone-field/PhoneFieldClass.js +1 -1
- package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/index.js +1 -1
- package/src/components/phone-fields/descope-phone-field/index.js +1 -1
- package/src/components/phone-fields/descope-phone-input-box-field/index.js +1 -1
- package/src/index.js +0 -1
- package/src/theme/components/index.js +1 -1
- package/dist/umd/4480.js +0 -1
- package/dist/umd/descope-combo-box-index-js.js +0 -113
- /package/dist/umd/{descope-combo-box-index-js.js.LICENSE.txt → descope-combo-box.js.LICENSE.txt} +0 -0
- /package/{src/components/descope-combo-box → node_modules/descope-combo-box/src/component}/index.js +0 -0
package/dist/cjs/index.cjs.js
CHANGED
@@ -11,7 +11,7 @@ var hljs = require('highlight.js');
|
|
11
11
|
const DESCOPE_PREFIX$1 = 'descope';
|
12
12
|
const CSS_SELECTOR_SPECIFIER_MULTIPLY$1 = 3;
|
13
13
|
const BASE_THEME_SECTION$1 = 'host';
|
14
|
-
const PORTAL_THEME_PREFIX = '@';
|
14
|
+
const PORTAL_THEME_PREFIX$1 = '@';
|
15
15
|
|
16
16
|
const kebabCase$1 = (str) =>
|
17
17
|
str
|
@@ -140,7 +140,7 @@ const createSyncAttrsCb$1 =
|
|
140
140
|
});
|
141
141
|
};
|
142
142
|
|
143
|
-
const syncAttrs = (ele1, ele2, options) => {
|
143
|
+
const syncAttrs$1 = (ele1, ele2, options) => {
|
144
144
|
observeAttributes$1(ele1, createSyncAttrsCb$1(ele1, ele2), options);
|
145
145
|
observeAttributes$1(ele2, createSyncAttrsCb$1(ele2, ele1), options);
|
146
146
|
};
|
@@ -153,7 +153,7 @@ const forwardAttrs$1 = (source, dest, options = {}) => {
|
|
153
153
|
observeAttributes$1(source, createSyncAttrsCb$1(source, dest, options.mapAttrs), options);
|
154
154
|
};
|
155
155
|
|
156
|
-
const forwardProps$
|
156
|
+
const forwardProps$3 = (src, target, props = []) => {
|
157
157
|
if (!props.length) return;
|
158
158
|
|
159
159
|
const config = props.reduce(
|
@@ -260,6 +260,11 @@ const createSyncAttrsCb =
|
|
260
260
|
});
|
261
261
|
};
|
262
262
|
|
263
|
+
const syncAttrs = (ele1, ele2, options) => {
|
264
|
+
observeAttributes(ele1, createSyncAttrsCb(ele1, ele2), options);
|
265
|
+
observeAttributes(ele2, createSyncAttrsCb(ele2, ele1), options);
|
266
|
+
};
|
267
|
+
|
263
268
|
const getComponentName = (name) => kebabCaseJoin(DESCOPE_PREFIX, name);
|
264
269
|
|
265
270
|
const getCssVarName = (...args) => `--${kebabCaseJoin(...args)}`;
|
@@ -268,6 +273,28 @@ const forwardAttrs = (source, dest, options = {}) => {
|
|
268
273
|
observeAttributes(source, createSyncAttrsCb(source, dest, options.mapAttrs), options);
|
269
274
|
};
|
270
275
|
|
276
|
+
const forwardProps$2 = (src, target, props = []) => {
|
277
|
+
if (!props.length) return;
|
278
|
+
|
279
|
+
const config = props.reduce(
|
280
|
+
(acc, prop) =>
|
281
|
+
Object.assign(acc, {
|
282
|
+
[prop]: {
|
283
|
+
get() {
|
284
|
+
return src[prop];
|
285
|
+
},
|
286
|
+
set(v) {
|
287
|
+
// eslint-disable-next-line no-param-reassign
|
288
|
+
src[prop] = v;
|
289
|
+
},
|
290
|
+
},
|
291
|
+
}),
|
292
|
+
{}
|
293
|
+
);
|
294
|
+
|
295
|
+
Object.defineProperties(target, config);
|
296
|
+
};
|
297
|
+
|
271
298
|
class ComponentsThemeManager {
|
272
299
|
static mountOnPropName = 'DescopeThemeManager';
|
273
300
|
|
@@ -407,6 +434,77 @@ const genColors$1 = (colors) => {
|
|
407
434
|
}, {});
|
408
435
|
};
|
409
436
|
|
437
|
+
const useHostExternalPadding$1 = (cssVarList) => `
|
438
|
+
:host {
|
439
|
+
padding: calc(var(${cssVarList.inputOutlineWidth}) + var(${cssVarList.inputOutlineOffset}))
|
440
|
+
}
|
441
|
+
`;
|
442
|
+
|
443
|
+
const resetInputCursor$1 = (name) => `
|
444
|
+
${name} > label,
|
445
|
+
${name}::part(label),
|
446
|
+
${name}::part(required-indicator) {
|
447
|
+
cursor: pointer;
|
448
|
+
}
|
449
|
+
`;
|
450
|
+
|
451
|
+
const resetInputPlaceholder$1 = (name, ele = 'input') => `
|
452
|
+
${name}[disabled] > ${ele}:placeholder-shown,
|
453
|
+
${name}[readonly] > ${ele}:placeholder-shown {
|
454
|
+
opacity: 1;
|
455
|
+
}
|
456
|
+
`;
|
457
|
+
|
458
|
+
const resetInputReadonlyStyle$1 = (name) => `
|
459
|
+
${name}::part(input-field)::after {
|
460
|
+
opacity: 0;
|
461
|
+
}
|
462
|
+
`;
|
463
|
+
|
464
|
+
// This function is used to support RTL correctly for input components.
|
465
|
+
// It also fixes the error message to be displayed LTR since we currently
|
466
|
+
// don't support RTL for error messages.
|
467
|
+
const resetInputLabelPosition$1 = (name) => `
|
468
|
+
:host ::part(error-message) {
|
469
|
+
direction: ltr;
|
470
|
+
}
|
471
|
+
:host([required]) ::part(required-indicator) {
|
472
|
+
width: 1em;
|
473
|
+
display: inline-flex;
|
474
|
+
}
|
475
|
+
:host([required]) ::part(required-indicator)::after {
|
476
|
+
position: static;
|
477
|
+
}
|
478
|
+
:host([has-label]) ::part(label) {
|
479
|
+
padding-right: 0;
|
480
|
+
padding-bottom: 0;
|
481
|
+
display: flex;
|
482
|
+
width: 100%;
|
483
|
+
}
|
484
|
+
${name} [slot="label"] {
|
485
|
+
max-width: calc(100% - 1em);
|
486
|
+
overflow: hidden;
|
487
|
+
text-overflow: ellipsis;
|
488
|
+
padding-bottom: 0.5em;
|
489
|
+
}
|
490
|
+
`;
|
491
|
+
|
492
|
+
const inputFloatingLabelStyle$1 = () => {
|
493
|
+
return `
|
494
|
+
:host([label-type="floating"]) {
|
495
|
+
position: relative;
|
496
|
+
}
|
497
|
+
:host([label-type="floating"][has-label]) [slot="label"] {
|
498
|
+
padding: 0;
|
499
|
+
}
|
500
|
+
:host([label-type="floating"][has-label]) > ::part(label) {
|
501
|
+
z-index: 1;
|
502
|
+
padding: 0;
|
503
|
+
width: auto;
|
504
|
+
}
|
505
|
+
`;
|
506
|
+
};
|
507
|
+
|
410
508
|
const getVarName$1 = (path) => getCssVarName(DESCOPE_PREFIX, ...path);
|
411
509
|
|
412
510
|
// lodash.set alternative
|
@@ -433,11 +531,37 @@ const transformTheme$1 = (theme, path, getTransformation) => {
|
|
433
531
|
|
434
532
|
const getThemeRefs$1 = (theme, prefix) =>
|
435
533
|
transformTheme$1(theme, [], (path) =>
|
436
|
-
set$1({}, path, `var(${getVarName$1(prefix ? [prefix, ...path] : path)})`)
|
534
|
+
set$1({}, path, `var(${getVarName$1(prefix ? [prefix, ...path] : path)})`),
|
437
535
|
);
|
438
536
|
|
439
537
|
const getThemeVars$1 = (theme, prefix) =>
|
440
|
-
transformTheme$1(theme, [], (path) =>
|
538
|
+
transformTheme$1(theme, [], (path) =>
|
539
|
+
set$1({}, path, getVarName$1(prefix ? [prefix, ...path] : path)),
|
540
|
+
);
|
541
|
+
|
542
|
+
// allows to generate css variables with nested fallbacks
|
543
|
+
const useVar$1 = (...varNames) => {
|
544
|
+
return varNames.reduceRight((acc, value) => {
|
545
|
+
if (value.startsWith('--')) return `var(${value}${acc ? `, ${acc}` : acc})`;
|
546
|
+
|
547
|
+
return `${value}${acc ? `, ${acc}` : acc}`;
|
548
|
+
}, '');
|
549
|
+
};
|
550
|
+
|
551
|
+
const createHelperVars$1 = (theme, prefix) => {
|
552
|
+
const res = transformTheme$1(theme, [], (path, value) => {
|
553
|
+
const modifiedPath = [...path];
|
554
|
+
const property = modifiedPath.splice(-1);
|
555
|
+
const varName = getCssVarName(prefix, property);
|
556
|
+
|
557
|
+
const vars = { [property]: varName };
|
558
|
+
const useVars = { [property]: useVar$1(varName) };
|
559
|
+
|
560
|
+
return { theme: set$1({}, [...modifiedPath, varName], value), useVars, vars };
|
561
|
+
});
|
562
|
+
|
563
|
+
return [res.theme, res.useVars, res.vars];
|
564
|
+
};
|
441
565
|
|
442
566
|
const getVarName = (path) => getCssVarName$1(DESCOPE_PREFIX$1, ...path);
|
443
567
|
|
@@ -518,7 +642,7 @@ const componentsThemeToStyleObj = (componentsTheme) =>
|
|
518
642
|
// we are generating a new theme
|
519
643
|
let themeName = BASE_THEME_SECTION$1;
|
520
644
|
|
521
|
-
if (restPath[0] && restPath[0].startsWith(PORTAL_THEME_PREFIX)) {
|
645
|
+
if (restPath[0] && restPath[0].startsWith(PORTAL_THEME_PREFIX$1)) {
|
522
646
|
themeName = restPath.shift();
|
523
647
|
}
|
524
648
|
|
@@ -876,7 +1000,7 @@ const globals$1 = {
|
|
876
1000
|
fonts: fonts$1,
|
877
1001
|
direction: direction$1,
|
878
1002
|
};
|
879
|
-
const vars$
|
1003
|
+
const vars$V = getThemeVars(globals$1);
|
880
1004
|
|
881
1005
|
const createCssVar$1 = (varName, fallback) => `var(${varName}${fallback ? `, ${fallback}` : ''})`;
|
882
1006
|
|
@@ -1381,14 +1505,14 @@ const createBaseClass$1 = ({ componentName, baseSelector = '' }) => {
|
|
1381
1505
|
// usage example:
|
1382
1506
|
// #dispatchSomething = createDispatchEvent.bind(this, 'something' { ...options })
|
1383
1507
|
// this will dispatch a new event when called, but also call to "onsomething"
|
1384
|
-
function createDispatchEvent(eventName, options = {}) {
|
1508
|
+
function createDispatchEvent$1(eventName, options = {}) {
|
1385
1509
|
const event = new Event(eventName, options);
|
1386
1510
|
|
1387
1511
|
this[`on${eventName}`]?.(event); // in case we got an event callback as property
|
1388
1512
|
this.dispatchEvent(event);
|
1389
1513
|
}
|
1390
1514
|
|
1391
|
-
const createProxy = ({
|
1515
|
+
const createProxy$1 = ({
|
1392
1516
|
componentName,
|
1393
1517
|
wrappedEleName,
|
1394
1518
|
slots = [],
|
@@ -1399,9 +1523,9 @@ const createProxy = ({
|
|
1399
1523
|
delegatesFocus = true,
|
1400
1524
|
}) => {
|
1401
1525
|
class ProxyClass extends createBaseClass$1({ componentName, baseSelector: wrappedEleName }) {
|
1402
|
-
#dispatchBlur = createDispatchEvent.bind(this, 'blur');
|
1526
|
+
#dispatchBlur = createDispatchEvent$1.bind(this, 'blur');
|
1403
1527
|
|
1404
|
-
#dispatchFocus = createDispatchEvent.bind(this, 'focus');
|
1528
|
+
#dispatchFocus = createDispatchEvent$1.bind(this, 'focus');
|
1405
1529
|
|
1406
1530
|
constructor() {
|
1407
1531
|
super().attachShadow({ mode: 'open', delegatesFocus }).innerHTML = `
|
@@ -1430,9 +1554,9 @@ const createProxy = ({
|
|
1430
1554
|
});
|
1431
1555
|
|
1432
1556
|
// this is needed for components that uses props, such as combo box
|
1433
|
-
forwardProps$
|
1557
|
+
forwardProps$3(this.baseElement, this, includeForwardProps);
|
1434
1558
|
|
1435
|
-
syncAttrs(this.baseElement, this, {
|
1559
|
+
syncAttrs$1(this.baseElement, this, {
|
1436
1560
|
excludeAttrs: excludeAttrsSync,
|
1437
1561
|
includeAttrs: includeAttrsSync,
|
1438
1562
|
});
|
@@ -1442,9 +1566,9 @@ const createProxy = ({
|
|
1442
1566
|
return ProxyClass;
|
1443
1567
|
};
|
1444
1568
|
|
1445
|
-
const observedAttributes$
|
1569
|
+
const observedAttributes$5 = ['required', 'pattern'];
|
1446
1570
|
|
1447
|
-
const errorAttributes = {
|
1571
|
+
const errorAttributes$1 = {
|
1448
1572
|
valueMissing: 'data-errormessage-value-missing',
|
1449
1573
|
patternMismatch: 'data-errormessage-pattern-mismatch',
|
1450
1574
|
tooShort: 'data-errormessage-pattern-mismatch-too-short',
|
@@ -1454,14 +1578,14 @@ const errorAttributes = {
|
|
1454
1578
|
typeMismatch: 'data-errormessage-type-mismatch',
|
1455
1579
|
};
|
1456
1580
|
|
1457
|
-
const validationTargetSymbol = Symbol('validationTarget');
|
1581
|
+
const validationTargetSymbol$1 = Symbol('validationTarget');
|
1458
1582
|
|
1459
|
-
const inputValidationMixin = (superclass) =>
|
1583
|
+
const inputValidationMixin$1 = (superclass) =>
|
1460
1584
|
class InputValidationMixinClass extends superclass {
|
1461
|
-
#validationTarget = validationTargetSymbol;
|
1585
|
+
#validationTarget = validationTargetSymbol$1;
|
1462
1586
|
|
1463
1587
|
static get observedAttributes() {
|
1464
|
-
return [...(superclass.observedAttributes || []), ...observedAttributes$
|
1588
|
+
return [...(superclass.observedAttributes || []), ...observedAttributes$5];
|
1465
1589
|
}
|
1466
1590
|
|
1467
1591
|
static get formAssociated() {
|
@@ -1532,30 +1656,30 @@ const inputValidationMixin = (superclass) =>
|
|
1532
1656
|
switch (true) {
|
1533
1657
|
case valueMissing:
|
1534
1658
|
return (
|
1535
|
-
this.getAttribute(errorAttributes.valueMissing) || this.defaultErrorMsgValueMissing
|
1659
|
+
this.getAttribute(errorAttributes$1.valueMissing) || this.defaultErrorMsgValueMissing
|
1536
1660
|
);
|
1537
1661
|
case patternMismatch || stepMismatch || badInput:
|
1538
1662
|
return (
|
1539
|
-
this.getAttribute(errorAttributes.patternMismatch) ||
|
1663
|
+
this.getAttribute(errorAttributes$1.patternMismatch) ||
|
1540
1664
|
this.defaultErrorMsgPatternMismatch
|
1541
1665
|
);
|
1542
1666
|
case typeMismatch:
|
1543
1667
|
return (
|
1544
|
-
this.getAttribute(errorAttributes.typeMismatch) ||
|
1545
|
-
this.getAttribute(errorAttributes.patternMismatch) ||
|
1668
|
+
this.getAttribute(errorAttributes$1.typeMismatch) ||
|
1669
|
+
this.getAttribute(errorAttributes$1.patternMismatch) ||
|
1546
1670
|
this.defaultErrorMsgTypeMismatch
|
1547
1671
|
);
|
1548
1672
|
case tooShort:
|
1549
|
-
return this.getAttribute(errorAttributes.tooShort) || this.defaultErrorMsgTooShort;
|
1673
|
+
return this.getAttribute(errorAttributes$1.tooShort) || this.defaultErrorMsgTooShort;
|
1550
1674
|
case tooLong:
|
1551
|
-
return this.getAttribute(errorAttributes.tooLong) || this.defaultErrorMsgTooLong;
|
1675
|
+
return this.getAttribute(errorAttributes$1.tooLong) || this.defaultErrorMsgTooLong;
|
1552
1676
|
case rangeUnderflow:
|
1553
1677
|
return (
|
1554
|
-
this.getAttribute(errorAttributes.rangeUnderflow) || this.defaultErrorMsgRangeUnderflow
|
1678
|
+
this.getAttribute(errorAttributes$1.rangeUnderflow) || this.defaultErrorMsgRangeUnderflow
|
1555
1679
|
);
|
1556
1680
|
case rangeOverflow:
|
1557
1681
|
return (
|
1558
|
-
this.getAttribute(errorAttributes.rangeOverflow) || this.defaultErrorMsgRangeOverflow
|
1682
|
+
this.getAttribute(errorAttributes$1.rangeOverflow) || this.defaultErrorMsgRangeOverflow
|
1559
1683
|
);
|
1560
1684
|
case customError:
|
1561
1685
|
return this.validationMessage;
|
@@ -1592,7 +1716,7 @@ const inputValidationMixin = (superclass) =>
|
|
1592
1716
|
}
|
1593
1717
|
|
1594
1718
|
get validationTarget() {
|
1595
|
-
return this.#validationTarget === validationTargetSymbol
|
1719
|
+
return this.#validationTarget === validationTargetSymbol$1
|
1596
1720
|
? this.inputElement
|
1597
1721
|
: this.#validationTarget;
|
1598
1722
|
}
|
@@ -1633,7 +1757,7 @@ const inputValidationMixin = (superclass) =>
|
|
1633
1757
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
1634
1758
|
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
1635
1759
|
|
1636
|
-
if (observedAttributes$
|
1760
|
+
if (observedAttributes$5.includes(attrName)) {
|
1637
1761
|
this.#setValidity();
|
1638
1762
|
}
|
1639
1763
|
}
|
@@ -1653,9 +1777,9 @@ const inputValidationMixin = (superclass) =>
|
|
1653
1777
|
|
1654
1778
|
/* eslint-disable no-param-reassign */
|
1655
1779
|
|
1656
|
-
const errorAttrs = ['invalid', 'required'];
|
1780
|
+
const errorAttrs$1 = ['invalid', 'required'];
|
1657
1781
|
|
1658
|
-
const forwardProps = (src, targets, property) => {
|
1782
|
+
const forwardProps$1 = (src, targets, property) => {
|
1659
1783
|
const targetArr = Array.isArray(targets) ? targets : [targets];
|
1660
1784
|
|
1661
1785
|
Object.defineProperty(src, property, {
|
@@ -1673,7 +1797,7 @@ const forwardProps = (src, targets, property) => {
|
|
1673
1797
|
|
1674
1798
|
// recursively take the first slot child until it finds an element which is not a slot
|
1675
1799
|
// stops after "nestingLevel" times
|
1676
|
-
const getNestedInput = (ele) => {
|
1800
|
+
const getNestedInput$1 = (ele) => {
|
1677
1801
|
if (!ele) return undefined;
|
1678
1802
|
|
1679
1803
|
const nestingLevel = 10;
|
@@ -1686,7 +1810,7 @@ const getNestedInput = (ele) => {
|
|
1686
1810
|
return undefined;
|
1687
1811
|
};
|
1688
1812
|
|
1689
|
-
const proxyInputMixin =
|
1813
|
+
const proxyInputMixin$1 =
|
1690
1814
|
({
|
1691
1815
|
proxyProps = [],
|
1692
1816
|
// useProxyTargets flag allows to forwardProps to other targets, other than
|
@@ -1701,14 +1825,14 @@ const proxyInputMixin =
|
|
1701
1825
|
proxyParentValidation = false,
|
1702
1826
|
}) =>
|
1703
1827
|
(superclass) =>
|
1704
|
-
class ProxyInputMixinClass extends inputValidationMixin(superclass) {
|
1828
|
+
class ProxyInputMixinClass extends inputValidationMixin$1(superclass) {
|
1705
1829
|
static get observedAttributes() {
|
1706
|
-
return [...(superclass.observedAttributes || []), ...errorAttrs];
|
1830
|
+
return [...(superclass.observedAttributes || []), ...errorAttrs$1];
|
1707
1831
|
}
|
1708
1832
|
|
1709
1833
|
#inputElement;
|
1710
1834
|
|
1711
|
-
#dispatchChange = createDispatchEvent.bind(this, 'change');
|
1835
|
+
#dispatchChange = createDispatchEvent$1.bind(this, 'change');
|
1712
1836
|
|
1713
1837
|
constructor() {
|
1714
1838
|
super();
|
@@ -1735,7 +1859,7 @@ const proxyInputMixin =
|
|
1735
1859
|
const inputSlot = this.baseElement.shadowRoot?.querySelector('slot[name="input"]');
|
1736
1860
|
const textAreaSlot = this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');
|
1737
1861
|
|
1738
|
-
this.#inputElement = getNestedInput(inputSlot) || getNestedInput(textAreaSlot);
|
1862
|
+
this.#inputElement = getNestedInput$1(inputSlot) || getNestedInput$1(textAreaSlot);
|
1739
1863
|
|
1740
1864
|
return this.#inputElement;
|
1741
1865
|
}
|
@@ -1833,7 +1957,7 @@ const proxyInputMixin =
|
|
1833
1957
|
const proxyTargets = useProxyTargets
|
1834
1958
|
? [this.baseElement, externalInput].filter(Boolean)
|
1835
1959
|
: [];
|
1836
|
-
forwardProps(this, [this.inputElement, ...proxyTargets], prop);
|
1960
|
+
forwardProps$1(this, [this.inputElement, ...proxyTargets], prop);
|
1837
1961
|
});
|
1838
1962
|
|
1839
1963
|
this.setSelectionRange = this.inputElement?.setSelectionRange?.bind(this.inputElement);
|
@@ -1878,9 +2002,9 @@ const proxyInputMixin =
|
|
1878
2002
|
}
|
1879
2003
|
};
|
1880
2004
|
|
1881
|
-
const composedProxyInputMixin = (proxyInputMixinConfig) =>
|
2005
|
+
const composedProxyInputMixin$1 = (proxyInputMixinConfig) =>
|
1882
2006
|
compose$1(
|
1883
|
-
proxyInputMixin(proxyInputMixinConfig),
|
2007
|
+
proxyInputMixin$1(proxyInputMixinConfig),
|
1884
2008
|
// in order to use input-wrapper across all our input components, we need to inject its theme
|
1885
2009
|
// to every proxy input mixin, to allow its css vars to be scoped properly and accessible
|
1886
2010
|
// in the proxy input component
|
@@ -1892,11 +2016,11 @@ const composedProxyInputMixin = (proxyInputMixinConfig) =>
|
|
1892
2016
|
// will generate the same var as "color" attribute in portals's mapping
|
1893
2017
|
// when the portal name is "overlay".
|
1894
2018
|
// because of that, we are adding this separator that is also used as a differentiator
|
1895
|
-
const DISPLAY_NAME_SEPARATOR = '_';
|
2019
|
+
const DISPLAY_NAME_SEPARATOR$1 = '_';
|
1896
2020
|
|
1897
|
-
const sanitizeSelector = (selector) => selector.replace(/[^\w\s]/gi, '');
|
2021
|
+
const sanitizeSelector$1 = (selector) => selector.replace(/[^\w\s]/gi, '');
|
1898
2022
|
|
1899
|
-
const withWaitForShadowRoot = (getRootElementFn) => async (that) => {
|
2023
|
+
const withWaitForShadowRoot$1 = (getRootElementFn) => async (that) => {
|
1900
2024
|
const ele = await getRootElementFn(that);
|
1901
2025
|
|
1902
2026
|
return new Promise((res) => {
|
@@ -1923,10 +2047,10 @@ const withWaitForShadowRoot = (getRootElementFn) => async (that) => {
|
|
1923
2047
|
});
|
1924
2048
|
};
|
1925
2049
|
|
1926
|
-
const portalMixin =
|
2050
|
+
const portalMixin$1 =
|
1927
2051
|
({ name, selector, mappings = {}, forward: { attributes = [], include = true } = {} }) =>
|
1928
2052
|
(superclass) => {
|
1929
|
-
const eleDisplayName = name || sanitizeSelector(selector);
|
2053
|
+
const eleDisplayName = name || sanitizeSelector$1(selector);
|
1930
2054
|
|
1931
2055
|
const BaseClass = createStyleMixin$1({
|
1932
2056
|
mappings,
|
@@ -1937,7 +2061,7 @@ const portalMixin =
|
|
1937
2061
|
return {
|
1938
2062
|
...BaseClass.cssVarList,
|
1939
2063
|
[eleDisplayName]: createCssVarsList$1(
|
1940
|
-
kebabCaseJoin$1(superclass.componentName, DISPLAY_NAME_SEPARATOR + eleDisplayName),
|
2064
|
+
kebabCaseJoin$1(superclass.componentName, DISPLAY_NAME_SEPARATOR$1 + eleDisplayName),
|
1941
2065
|
mappings
|
1942
2066
|
),
|
1943
2067
|
};
|
@@ -1955,16 +2079,16 @@ const portalMixin =
|
|
1955
2079
|
|
1956
2080
|
// in case we have a selector, we should first wait for the base element shadow root
|
1957
2081
|
// and then look for the internal element
|
1958
|
-
const baseEleShadowRoot = await withWaitForShadowRoot(() => baseEle)(that);
|
2082
|
+
const baseEleShadowRoot = await withWaitForShadowRoot$1(() => baseEle)(that);
|
1959
2083
|
return baseEleShadowRoot.querySelector(selector);
|
1960
2084
|
};
|
1961
2085
|
|
1962
|
-
const getPortalElement = withWaitForShadowRoot(getRootElement);
|
2086
|
+
const getPortalElement = withWaitForShadowRoot$1(getRootElement);
|
1963
2087
|
|
1964
2088
|
super({
|
1965
2089
|
getRootElement: getPortalElement,
|
1966
|
-
componentNameSuffix: DISPLAY_NAME_SEPARATOR + eleDisplayName,
|
1967
|
-
themeSection: PORTAL_THEME_PREFIX + eleDisplayName,
|
2090
|
+
componentNameSuffix: DISPLAY_NAME_SEPARATOR$1 + eleDisplayName,
|
2091
|
+
themeSection: PORTAL_THEME_PREFIX$1 + eleDisplayName,
|
1968
2092
|
baseSelector: ':host',
|
1969
2093
|
});
|
1970
2094
|
|
@@ -1995,7 +2119,7 @@ const portalMixin =
|
|
1995
2119
|
|
1996
2120
|
const changeMixin = (superclass) =>
|
1997
2121
|
class ChangeMixinClass extends superclass {
|
1998
|
-
#dispatchChange = createDispatchEvent.bind(this, 'change');
|
2122
|
+
#dispatchChange = createDispatchEvent$1.bind(this, 'change');
|
1999
2123
|
|
2000
2124
|
init() {
|
2001
2125
|
super.init?.();
|
@@ -2043,8 +2167,8 @@ const inputEventsDispatchingMixin = (superclass) =>
|
|
2043
2167
|
timerId = setTimeout(() => {
|
2044
2168
|
timerId = null;
|
2045
2169
|
|
2046
|
-
createDispatchEvent.call(this, 'blur');
|
2047
|
-
createDispatchEvent.call(this, 'focusout', { bubbles: true });
|
2170
|
+
createDispatchEvent$1.call(this, 'blur');
|
2171
|
+
createDispatchEvent$1.call(this, 'focusout', { bubbles: true });
|
2048
2172
|
});
|
2049
2173
|
});
|
2050
2174
|
|
@@ -2056,8 +2180,8 @@ const inputEventsDispatchingMixin = (superclass) =>
|
|
2056
2180
|
e.stopImmediatePropagation();
|
2057
2181
|
clearTimeout(timerId);
|
2058
2182
|
if (!timerId) {
|
2059
|
-
createDispatchEvent.call(this, 'focus');
|
2060
|
-
createDispatchEvent.call(this, 'focusin', { bubbles: true });
|
2183
|
+
createDispatchEvent$1.call(this, 'focus');
|
2184
|
+
createDispatchEvent$1.call(this, 'focusin', { bubbles: true });
|
2061
2185
|
}
|
2062
2186
|
};
|
2063
2187
|
|
@@ -2082,7 +2206,7 @@ const inputEventsDispatchingMixin = (superclass) =>
|
|
2082
2206
|
|
2083
2207
|
if (previousRootComponentValue !== this.value) {
|
2084
2208
|
previousRootComponentValue = this.value;
|
2085
|
-
createDispatchEvent.call(this, 'input', { bubbles: true, composed: true });
|
2209
|
+
createDispatchEvent$1.call(this, 'input', { bubbles: true, composed: true });
|
2086
2210
|
}
|
2087
2211
|
}
|
2088
2212
|
});
|
@@ -2231,7 +2355,7 @@ const externalInputMixin =
|
|
2231
2355
|
// 1Password catches the internal input, so we forward the value to the external input
|
2232
2356
|
this.forwardInputValue(origInput, this.externalInput);
|
2233
2357
|
|
2234
|
-
syncAttrs(origInput, this.externalInput, {
|
2358
|
+
syncAttrs$1(origInput, this.externalInput, {
|
2235
2359
|
includeAttrs,
|
2236
2360
|
});
|
2237
2361
|
|
@@ -2399,9 +2523,9 @@ const createIcon = async (src) => {
|
|
2399
2523
|
|
2400
2524
|
/* eslint-disable no-use-before-define */
|
2401
2525
|
|
2402
|
-
const componentName$
|
2526
|
+
const componentName$12 = getComponentName$1('icon');
|
2403
2527
|
|
2404
|
-
class RawIcon extends createBaseClass$1({ componentName: componentName$
|
2528
|
+
class RawIcon extends createBaseClass$1({ componentName: componentName$12, baseSelector: 'slot' }) {
|
2405
2529
|
static get observedAttributes() {
|
2406
2530
|
return ['src'];
|
2407
2531
|
}
|
@@ -2486,7 +2610,7 @@ const clickableMixin = (superclass) =>
|
|
2486
2610
|
}
|
2487
2611
|
};
|
2488
2612
|
|
2489
|
-
const componentName$
|
2613
|
+
const componentName$11 = getComponentName$1('button');
|
2490
2614
|
|
2491
2615
|
const resetStyles = `
|
2492
2616
|
:host {
|
@@ -2579,7 +2703,7 @@ const ButtonClass = compose$1(
|
|
2579
2703
|
draggableMixin$1,
|
2580
2704
|
componentNameValidationMixin$1
|
2581
2705
|
)(
|
2582
|
-
createProxy({
|
2706
|
+
createProxy$1({
|
2583
2707
|
slots: ['', 'prefix', 'label', 'suffix'],
|
2584
2708
|
wrappedEleName: 'vaadin-button',
|
2585
2709
|
style: () => `
|
@@ -2602,7 +2726,7 @@ const ButtonClass = compose$1(
|
|
2602
2726
|
}
|
2603
2727
|
`,
|
2604
2728
|
excludeAttrsSync: ['tabindex'],
|
2605
|
-
componentName: componentName$
|
2729
|
+
componentName: componentName$11,
|
2606
2730
|
})
|
2607
2731
|
);
|
2608
2732
|
|
@@ -2639,31 +2763,31 @@ loadingIndicatorStyles = `
|
|
2639
2763
|
}
|
2640
2764
|
`;
|
2641
2765
|
|
2642
|
-
const globalRefs$
|
2766
|
+
const globalRefs$A = getThemeRefs(globals$1);
|
2643
2767
|
const compVars$6 = ButtonClass.cssVarList;
|
2644
2768
|
|
2645
2769
|
const mode = {
|
2646
|
-
primary: globalRefs$
|
2647
|
-
secondary: globalRefs$
|
2648
|
-
success: globalRefs$
|
2649
|
-
error: globalRefs$
|
2650
|
-
surface: globalRefs$
|
2770
|
+
primary: globalRefs$A.colors.primary,
|
2771
|
+
secondary: globalRefs$A.colors.secondary,
|
2772
|
+
success: globalRefs$A.colors.success,
|
2773
|
+
error: globalRefs$A.colors.error,
|
2774
|
+
surface: globalRefs$A.colors.surface,
|
2651
2775
|
};
|
2652
2776
|
|
2653
|
-
const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars({ mode }, componentName$
|
2777
|
+
const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars({ mode }, componentName$11);
|
2654
2778
|
|
2655
2779
|
const button = {
|
2656
2780
|
...helperTheme$4,
|
2657
2781
|
|
2658
|
-
[compVars$6.fontFamily]: globalRefs$
|
2782
|
+
[compVars$6.fontFamily]: globalRefs$A.fonts.font1.family,
|
2659
2783
|
|
2660
2784
|
[compVars$6.cursor]: 'pointer',
|
2661
2785
|
[compVars$6.hostHeight]: '3em',
|
2662
2786
|
[compVars$6.hostWidth]: 'auto',
|
2663
|
-
[compVars$6.hostDirection]: globalRefs$
|
2787
|
+
[compVars$6.hostDirection]: globalRefs$A.direction,
|
2664
2788
|
|
2665
|
-
[compVars$6.borderRadius]: globalRefs$
|
2666
|
-
[compVars$6.borderWidth]: globalRefs$
|
2789
|
+
[compVars$6.borderRadius]: globalRefs$A.radius.sm,
|
2790
|
+
[compVars$6.borderWidth]: globalRefs$A.border.xs,
|
2667
2791
|
[compVars$6.borderStyle]: 'solid',
|
2668
2792
|
[compVars$6.borderColor]: 'transparent',
|
2669
2793
|
|
@@ -2709,11 +2833,11 @@ const button = {
|
|
2709
2833
|
},
|
2710
2834
|
|
2711
2835
|
_disabled: {
|
2712
|
-
[helperVars$4.main]: globalRefs$
|
2713
|
-
[helperVars$4.dark]: globalRefs$
|
2714
|
-
[helperVars$4.light]: globalRefs$
|
2715
|
-
[helperVars$4.contrast]: globalRefs$
|
2716
|
-
[compVars$6.iconColor]: globalRefs$
|
2836
|
+
[helperVars$4.main]: globalRefs$A.colors.surface.light,
|
2837
|
+
[helperVars$4.dark]: globalRefs$A.colors.surface.dark,
|
2838
|
+
[helperVars$4.light]: globalRefs$A.colors.surface.light,
|
2839
|
+
[helperVars$4.contrast]: globalRefs$A.colors.surface.main,
|
2840
|
+
[compVars$6.iconColor]: globalRefs$A.colors.surface.main,
|
2717
2841
|
},
|
2718
2842
|
|
2719
2843
|
variant: {
|
@@ -2762,7 +2886,7 @@ const button = {
|
|
2762
2886
|
},
|
2763
2887
|
};
|
2764
2888
|
|
2765
|
-
const vars$
|
2889
|
+
const vars$U = {
|
2766
2890
|
...compVars$6,
|
2767
2891
|
...helperVars$4,
|
2768
2892
|
};
|
@@ -2770,7 +2894,7 @@ const vars$T = {
|
|
2770
2894
|
var button$1 = /*#__PURE__*/Object.freeze({
|
2771
2895
|
__proto__: null,
|
2772
2896
|
default: button,
|
2773
|
-
vars: vars$
|
2897
|
+
vars: vars$U
|
2774
2898
|
});
|
2775
2899
|
|
2776
2900
|
const {
|
@@ -3070,7 +3194,7 @@ const inputFloatingLabelStyle = () => {
|
|
3070
3194
|
`;
|
3071
3195
|
};
|
3072
3196
|
|
3073
|
-
const componentName
|
3197
|
+
const componentName$10 = getComponentName$1('text-field');
|
3074
3198
|
|
3075
3199
|
const observedAttrs$2 = ['type', 'label-type', 'copy-to-clipboard'];
|
3076
3200
|
|
@@ -3156,11 +3280,11 @@ const TextFieldClass = compose$1(
|
|
3156
3280
|
mappings: textFieldMappings,
|
3157
3281
|
}),
|
3158
3282
|
draggableMixin$1,
|
3159
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'], useProxyTargets: true }),
|
3283
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'], useProxyTargets: true }),
|
3160
3284
|
componentNameValidationMixin$1,
|
3161
3285
|
customMixin$c
|
3162
3286
|
)(
|
3163
|
-
createProxy({
|
3287
|
+
createProxy$1({
|
3164
3288
|
slots: ['prefix', 'suffix'],
|
3165
3289
|
wrappedEleName: 'vaadin-text-field',
|
3166
3290
|
style: () => `
|
@@ -3192,30 +3316,30 @@ const TextFieldClass = compose$1(
|
|
3192
3316
|
}
|
3193
3317
|
`,
|
3194
3318
|
excludeAttrsSync: ['tabindex'],
|
3195
|
-
componentName: componentName
|
3319
|
+
componentName: componentName$10,
|
3196
3320
|
})
|
3197
3321
|
);
|
3198
3322
|
|
3199
|
-
const componentName
|
3200
|
-
const globalRefs$
|
3323
|
+
const componentName$$ = getComponentName$1('input-wrapper');
|
3324
|
+
const globalRefs$z = getThemeRefs(globals$1);
|
3201
3325
|
|
3202
|
-
const [theme$
|
3326
|
+
const [theme$2, refs$1, vars$T] = createHelperVars(
|
3203
3327
|
{
|
3204
|
-
labelTextColor: globalRefs$
|
3328
|
+
labelTextColor: globalRefs$z.colors.surface.dark,
|
3205
3329
|
labelFontSize: '14px', // not taken from globals as it is fixed in all inputs
|
3206
3330
|
labelFontWeight: '500', // not taken from globals as it is fixed in all inputs
|
3207
|
-
valueTextColor: globalRefs$
|
3208
|
-
placeholderTextColor: globalRefs$
|
3331
|
+
valueTextColor: globalRefs$z.colors.surface.contrast,
|
3332
|
+
placeholderTextColor: globalRefs$z.colors.surface.dark,
|
3209
3333
|
requiredIndicator: "'*'",
|
3210
|
-
helperTextColor: globalRefs$
|
3211
|
-
errorMessageTextColor: globalRefs$
|
3212
|
-
successMessageTextColor: globalRefs$
|
3334
|
+
helperTextColor: globalRefs$z.colors.surface.dark,
|
3335
|
+
errorMessageTextColor: globalRefs$z.colors.error.main,
|
3336
|
+
successMessageTextColor: globalRefs$z.colors.success.main,
|
3213
3337
|
|
3214
|
-
borderWidth: globalRefs$
|
3215
|
-
borderRadius: globalRefs$
|
3338
|
+
borderWidth: globalRefs$z.border.xs,
|
3339
|
+
borderRadius: globalRefs$z.radius.xs,
|
3216
3340
|
borderColor: 'transparent',
|
3217
3341
|
|
3218
|
-
outlineWidth: globalRefs$
|
3342
|
+
outlineWidth: globalRefs$z.border.sm,
|
3219
3343
|
outlineStyle: 'solid',
|
3220
3344
|
outlineColor: 'transparent',
|
3221
3345
|
outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
|
@@ -3229,11 +3353,11 @@ const [theme$1, refs, vars$S] = createHelperVars(
|
|
3229
3353
|
|
3230
3354
|
textAlign: 'start',
|
3231
3355
|
|
3232
|
-
backgroundColor: globalRefs$
|
3356
|
+
backgroundColor: globalRefs$z.colors.surface.main,
|
3233
3357
|
|
3234
|
-
fontFamily: globalRefs$
|
3358
|
+
fontFamily: globalRefs$z.fonts.font1.family,
|
3235
3359
|
|
3236
|
-
direction: globalRefs$
|
3360
|
+
direction: globalRefs$z.direction,
|
3237
3361
|
|
3238
3362
|
overlayOpacity: '0.3',
|
3239
3363
|
|
@@ -3293,101 +3417,101 @@ const [theme$1, refs, vars$S] = createHelperVars(
|
|
3293
3417
|
},
|
3294
3418
|
|
3295
3419
|
_focused: {
|
3296
|
-
outlineColor: globalRefs$
|
3420
|
+
outlineColor: globalRefs$z.colors.surface.light,
|
3297
3421
|
_invalid: {
|
3298
|
-
outlineColor: globalRefs$
|
3422
|
+
outlineColor: globalRefs$z.colors.error.main,
|
3299
3423
|
},
|
3300
3424
|
},
|
3301
3425
|
|
3302
3426
|
_bordered: {
|
3303
|
-
outlineWidth: globalRefs$
|
3304
|
-
borderColor: globalRefs$
|
3427
|
+
outlineWidth: globalRefs$z.border.xs,
|
3428
|
+
borderColor: globalRefs$z.colors.surface.light,
|
3305
3429
|
borderStyle: 'solid',
|
3306
3430
|
_invalid: {
|
3307
|
-
borderColor: globalRefs$
|
3431
|
+
borderColor: globalRefs$z.colors.error.main,
|
3308
3432
|
},
|
3309
3433
|
},
|
3310
3434
|
|
3311
3435
|
_disabled: {
|
3312
|
-
labelTextColor: globalRefs$
|
3313
|
-
borderColor: globalRefs$
|
3314
|
-
valueTextColor: globalRefs$
|
3315
|
-
placeholderTextColor: globalRefs$
|
3316
|
-
helperTextColor: globalRefs$
|
3317
|
-
backgroundColor: globalRefs$
|
3436
|
+
labelTextColor: globalRefs$z.colors.surface.light,
|
3437
|
+
borderColor: globalRefs$z.colors.surface.light,
|
3438
|
+
valueTextColor: globalRefs$z.colors.surface.light,
|
3439
|
+
placeholderTextColor: globalRefs$z.colors.surface.light,
|
3440
|
+
helperTextColor: globalRefs$z.colors.surface.light,
|
3441
|
+
backgroundColor: globalRefs$z.colors.surface.main,
|
3318
3442
|
},
|
3319
3443
|
},
|
3320
|
-
componentName
|
3444
|
+
componentName$$
|
3321
3445
|
);
|
3322
3446
|
|
3323
3447
|
var inputWrapper = /*#__PURE__*/Object.freeze({
|
3324
3448
|
__proto__: null,
|
3325
|
-
default: theme$
|
3326
|
-
refs: refs,
|
3327
|
-
vars: vars$
|
3449
|
+
default: theme$2,
|
3450
|
+
refs: refs$1,
|
3451
|
+
vars: vars$T
|
3328
3452
|
});
|
3329
3453
|
|
3330
|
-
const globalRefs$
|
3331
|
-
const vars$
|
3454
|
+
const globalRefs$y = getThemeRefs(globals$1);
|
3455
|
+
const vars$S = TextFieldClass.cssVarList;
|
3332
3456
|
|
3333
3457
|
const textField$1 = {
|
3334
|
-
[vars$
|
3335
|
-
[vars$
|
3336
|
-
[vars$
|
3337
|
-
[vars$
|
3338
|
-
[vars$
|
3339
|
-
[vars$
|
3340
|
-
[vars$
|
3341
|
-
[vars$
|
3342
|
-
[vars$
|
3343
|
-
[vars$
|
3344
|
-
[vars$
|
3345
|
-
[vars$
|
3346
|
-
[vars$
|
3347
|
-
[vars$
|
3348
|
-
[vars$
|
3349
|
-
[vars$
|
3350
|
-
[vars$
|
3351
|
-
[vars$
|
3352
|
-
[vars$
|
3353
|
-
[vars$
|
3354
|
-
[vars$
|
3355
|
-
[vars$
|
3356
|
-
[vars$
|
3357
|
-
[vars$
|
3358
|
-
[vars$
|
3458
|
+
[vars$S.hostWidth]: refs$1.width,
|
3459
|
+
[vars$S.hostMinWidth]: refs$1.minWidth,
|
3460
|
+
[vars$S.hostDirection]: refs$1.direction,
|
3461
|
+
[vars$S.fontSize]: refs$1.fontSize,
|
3462
|
+
[vars$S.fontFamily]: refs$1.fontFamily,
|
3463
|
+
[vars$S.labelFontSize]: refs$1.labelFontSize,
|
3464
|
+
[vars$S.labelFontWeight]: refs$1.labelFontWeight,
|
3465
|
+
[vars$S.labelTextColor]: refs$1.labelTextColor,
|
3466
|
+
[vars$S.labelRequiredIndicator]: refs$1.requiredIndicator,
|
3467
|
+
[vars$S.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
3468
|
+
[vars$S.inputValueTextColor]: refs$1.valueTextColor,
|
3469
|
+
[vars$S.inputPlaceholderColor]: refs$1.placeholderTextColor,
|
3470
|
+
[vars$S.inputBorderWidth]: refs$1.borderWidth,
|
3471
|
+
[vars$S.inputBorderStyle]: refs$1.borderStyle,
|
3472
|
+
[vars$S.inputBorderColor]: refs$1.borderColor,
|
3473
|
+
[vars$S.inputBorderRadius]: refs$1.borderRadius,
|
3474
|
+
[vars$S.inputOutlineWidth]: refs$1.outlineWidth,
|
3475
|
+
[vars$S.inputOutlineStyle]: refs$1.outlineStyle,
|
3476
|
+
[vars$S.inputOutlineColor]: refs$1.outlineColor,
|
3477
|
+
[vars$S.inputOutlineOffset]: refs$1.outlineOffset,
|
3478
|
+
[vars$S.inputBackgroundColor]: refs$1.backgroundColor,
|
3479
|
+
[vars$S.inputHeight]: refs$1.inputHeight,
|
3480
|
+
[vars$S.inputHorizontalPadding]: refs$1.horizontalPadding,
|
3481
|
+
[vars$S.helperTextColor]: refs$1.helperTextColor,
|
3482
|
+
[vars$S.textAlign]: refs$1.textAlign,
|
3359
3483
|
textAlign: {
|
3360
|
-
right: { [vars$
|
3361
|
-
left: { [vars$
|
3362
|
-
center: { [vars$
|
3484
|
+
right: { [vars$S.inputTextAlign]: 'right' },
|
3485
|
+
left: { [vars$S.inputTextAlign]: 'left' },
|
3486
|
+
center: { [vars$S.inputTextAlign]: 'center' },
|
3363
3487
|
},
|
3364
|
-
[vars$
|
3365
|
-
[vars$
|
3366
|
-
[vars$
|
3367
|
-
[vars$
|
3368
|
-
[vars$
|
3369
|
-
[vars$
|
3370
|
-
[vars$
|
3371
|
-
[vars$
|
3372
|
-
[vars$
|
3373
|
-
[vars$
|
3374
|
-
[vars$
|
3375
|
-
[vars$
|
3376
|
-
[vars$
|
3488
|
+
[vars$S.labelPosition]: refs$1.labelPosition,
|
3489
|
+
[vars$S.labelTopPosition]: refs$1.labelTopPosition,
|
3490
|
+
[vars$S.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
|
3491
|
+
[vars$S.inputTransformY]: refs$1.inputTransformY,
|
3492
|
+
[vars$S.inputTransition]: refs$1.inputTransition,
|
3493
|
+
[vars$S.marginInlineStart]: refs$1.marginInlineStart,
|
3494
|
+
[vars$S.placeholderOpacity]: refs$1.placeholderOpacity,
|
3495
|
+
[vars$S.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
|
3496
|
+
[vars$S.valueInputHeight]: refs$1.valueInputHeight,
|
3497
|
+
[vars$S.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
|
3498
|
+
[vars$S.inputIconOffset]: globalRefs$y.spacing.md,
|
3499
|
+
[vars$S.inputIconSize]: refs$1.inputIconSize,
|
3500
|
+
[vars$S.inputIconColor]: refs$1.placeholderTextColor,
|
3377
3501
|
|
3378
3502
|
// error message icon
|
3379
|
-
[vars$
|
3380
|
-
[vars$
|
3381
|
-
[vars$
|
3382
|
-
[vars$
|
3383
|
-
[vars$
|
3503
|
+
[vars$S.errorMessageIcon]: refs$1.errorMessageIcon,
|
3504
|
+
[vars$S.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
3505
|
+
[vars$S.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
3506
|
+
[vars$S.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
3507
|
+
[vars$S.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
3384
3508
|
};
|
3385
3509
|
|
3386
3510
|
var textField$2 = /*#__PURE__*/Object.freeze({
|
3387
3511
|
__proto__: null,
|
3388
3512
|
default: textField$1,
|
3389
3513
|
textField: textField$1,
|
3390
|
-
vars: vars$
|
3514
|
+
vars: vars$S
|
3391
3515
|
});
|
3392
3516
|
|
3393
3517
|
const passwordDraggableMixin = (superclass) =>
|
@@ -3429,7 +3553,7 @@ const passwordDraggableMixin = (superclass) =>
|
|
3429
3553
|
}
|
3430
3554
|
};
|
3431
3555
|
|
3432
|
-
const componentName$
|
3556
|
+
const componentName$_ = getComponentName$1('password');
|
3433
3557
|
|
3434
3558
|
const customMixin$b = (superclass) =>
|
3435
3559
|
class PasswordFieldMixinClass extends superclass {
|
@@ -3640,12 +3764,12 @@ const PasswordClass = compose$1(
|
|
3640
3764
|
includeAttrs: ['disabled', 'readonly', 'pattern', 'type', 'autocomplete'],
|
3641
3765
|
noBlurDispatch: true,
|
3642
3766
|
}),
|
3643
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'], useProxyTargets: true }),
|
3767
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'], useProxyTargets: true }),
|
3644
3768
|
componentNameValidationMixin$1,
|
3645
3769
|
passwordDraggableMixin,
|
3646
3770
|
customMixin$b
|
3647
3771
|
)(
|
3648
|
-
createProxy({
|
3772
|
+
createProxy$1({
|
3649
3773
|
slots: ['', 'suffix'],
|
3650
3774
|
wrappedEleName: 'vaadin-password-field',
|
3651
3775
|
style: () => `
|
@@ -3710,75 +3834,75 @@ const PasswordClass = compose$1(
|
|
3710
3834
|
}
|
3711
3835
|
`,
|
3712
3836
|
excludeAttrsSync: ['tabindex'],
|
3713
|
-
componentName: componentName$
|
3837
|
+
componentName: componentName$_,
|
3714
3838
|
})
|
3715
3839
|
);
|
3716
3840
|
|
3717
|
-
const globalRefs$
|
3718
|
-
const vars$
|
3841
|
+
const globalRefs$x = getThemeRefs(globals$1);
|
3842
|
+
const vars$R = PasswordClass.cssVarList;
|
3719
3843
|
|
3720
3844
|
const password = {
|
3721
|
-
[vars$
|
3722
|
-
[vars$
|
3723
|
-
[vars$
|
3724
|
-
[vars$
|
3725
|
-
[vars$
|
3726
|
-
[vars$
|
3727
|
-
[vars$
|
3728
|
-
[vars$
|
3729
|
-
[vars$
|
3730
|
-
[vars$
|
3731
|
-
[vars$
|
3732
|
-
[vars$
|
3733
|
-
[vars$
|
3734
|
-
[vars$
|
3735
|
-
[vars$
|
3736
|
-
[vars$
|
3737
|
-
[vars$
|
3738
|
-
[vars$
|
3739
|
-
[vars$
|
3740
|
-
[vars$
|
3741
|
-
[vars$
|
3742
|
-
[vars$
|
3743
|
-
[vars$
|
3744
|
-
[vars$
|
3745
|
-
[vars$
|
3746
|
-
[vars$
|
3747
|
-
[vars$
|
3748
|
-
[vars$
|
3749
|
-
[vars$
|
3750
|
-
[vars$
|
3751
|
-
[vars$
|
3752
|
-
[vars$
|
3753
|
-
[vars$
|
3754
|
-
[vars$
|
3755
|
-
[vars$
|
3845
|
+
[vars$R.hostWidth]: refs$1.width,
|
3846
|
+
[vars$R.hostMinWidth]: refs$1.minWidth,
|
3847
|
+
[vars$R.hostDirection]: refs$1.direction,
|
3848
|
+
[vars$R.fontSize]: refs$1.fontSize,
|
3849
|
+
[vars$R.fontFamily]: refs$1.fontFamily,
|
3850
|
+
[vars$R.labelFontSize]: refs$1.labelFontSize,
|
3851
|
+
[vars$R.labelFontWeight]: refs$1.labelFontWeight,
|
3852
|
+
[vars$R.labelTextColor]: refs$1.labelTextColor,
|
3853
|
+
[vars$R.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
3854
|
+
[vars$R.inputHorizontalPadding]: refs$1.horizontalPadding,
|
3855
|
+
[vars$R.inputHeight]: refs$1.inputHeight,
|
3856
|
+
[vars$R.inputBackgroundColor]: refs$1.backgroundColor,
|
3857
|
+
[vars$R.labelRequiredIndicator]: refs$1.requiredIndicator,
|
3858
|
+
[vars$R.inputValueTextColor]: refs$1.valueTextColor,
|
3859
|
+
[vars$R.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
|
3860
|
+
[vars$R.inputBorderWidth]: refs$1.borderWidth,
|
3861
|
+
[vars$R.inputBorderStyle]: refs$1.borderStyle,
|
3862
|
+
[vars$R.inputBorderColor]: refs$1.borderColor,
|
3863
|
+
[vars$R.inputBorderRadius]: refs$1.borderRadius,
|
3864
|
+
[vars$R.inputOutlineWidth]: refs$1.outlineWidth,
|
3865
|
+
[vars$R.inputOutlineStyle]: refs$1.outlineStyle,
|
3866
|
+
[vars$R.inputOutlineColor]: refs$1.outlineColor,
|
3867
|
+
[vars$R.inputOutlineOffset]: refs$1.outlineOffset,
|
3868
|
+
[vars$R.revealButtonOffset]: globalRefs$x.spacing.md,
|
3869
|
+
[vars$R.revealButtonSize]: refs$1.toggleButtonSize,
|
3870
|
+
[vars$R.revealButtonColor]: refs$1.placeholderTextColor,
|
3871
|
+
[vars$R.labelPosition]: refs$1.labelPosition,
|
3872
|
+
[vars$R.labelTopPosition]: refs$1.labelTopPosition,
|
3873
|
+
[vars$R.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
|
3874
|
+
[vars$R.inputTransformY]: refs$1.inputTransformY,
|
3875
|
+
[vars$R.inputTransition]: refs$1.inputTransition,
|
3876
|
+
[vars$R.marginInlineStart]: refs$1.marginInlineStart,
|
3877
|
+
[vars$R.placeholderOpacity]: refs$1.placeholderOpacity,
|
3878
|
+
[vars$R.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
|
3879
|
+
[vars$R.valueInputHeight]: refs$1.valueInputHeight,
|
3756
3880
|
|
3757
3881
|
// error message icon
|
3758
|
-
[vars$
|
3759
|
-
[vars$
|
3760
|
-
[vars$
|
3761
|
-
[vars$
|
3762
|
-
[vars$
|
3882
|
+
[vars$R.errorMessageIcon]: refs$1.errorMessageIcon,
|
3883
|
+
[vars$R.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
3884
|
+
[vars$R.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
3885
|
+
[vars$R.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
3886
|
+
[vars$R.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
3763
3887
|
};
|
3764
3888
|
|
3765
3889
|
var password$1 = /*#__PURE__*/Object.freeze({
|
3766
3890
|
__proto__: null,
|
3767
3891
|
default: password,
|
3768
|
-
vars: vars$
|
3892
|
+
vars: vars$R
|
3769
3893
|
});
|
3770
3894
|
|
3771
|
-
const componentName$
|
3895
|
+
const componentName$Z = getComponentName$1('number-field');
|
3772
3896
|
|
3773
3897
|
const NumberFieldClass = compose$1(
|
3774
3898
|
createStyleMixin$1({
|
3775
3899
|
mappings: textFieldMappings,
|
3776
3900
|
}),
|
3777
3901
|
draggableMixin$1,
|
3778
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
3902
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
3779
3903
|
componentNameValidationMixin$1
|
3780
3904
|
)(
|
3781
|
-
createProxy({
|
3905
|
+
createProxy$1({
|
3782
3906
|
slots: ['', 'prefix', 'suffix'],
|
3783
3907
|
wrappedEleName: 'vaadin-number-field',
|
3784
3908
|
style: () => `
|
@@ -3802,62 +3926,62 @@ const NumberFieldClass = compose$1(
|
|
3802
3926
|
}
|
3803
3927
|
`,
|
3804
3928
|
excludeAttrsSync: ['tabindex'],
|
3805
|
-
componentName: componentName$
|
3929
|
+
componentName: componentName$Z,
|
3806
3930
|
})
|
3807
3931
|
);
|
3808
3932
|
|
3809
|
-
const vars$
|
3933
|
+
const vars$Q = NumberFieldClass.cssVarList;
|
3810
3934
|
|
3811
3935
|
const numberField = {
|
3812
|
-
[vars$
|
3813
|
-
[vars$
|
3814
|
-
[vars$
|
3815
|
-
[vars$
|
3816
|
-
[vars$
|
3817
|
-
[vars$
|
3818
|
-
[vars$
|
3819
|
-
[vars$
|
3820
|
-
[vars$
|
3821
|
-
[vars$
|
3822
|
-
[vars$
|
3823
|
-
[vars$
|
3824
|
-
[vars$
|
3825
|
-
[vars$
|
3826
|
-
[vars$
|
3827
|
-
[vars$
|
3828
|
-
[vars$
|
3829
|
-
[vars$
|
3830
|
-
[vars$
|
3831
|
-
[vars$
|
3832
|
-
[vars$
|
3833
|
-
[vars$
|
3834
|
-
[vars$
|
3835
|
-
[vars$
|
3836
|
-
[vars$
|
3837
|
-
[vars$
|
3838
|
-
[vars$
|
3839
|
-
[vars$
|
3840
|
-
[vars$
|
3841
|
-
[vars$
|
3842
|
-
[vars$
|
3843
|
-
[vars$
|
3844
|
-
[vars$
|
3936
|
+
[vars$Q.hostWidth]: refs$1.width,
|
3937
|
+
[vars$Q.hostMinWidth]: refs$1.minWidth,
|
3938
|
+
[vars$Q.hostDirection]: refs$1.direction,
|
3939
|
+
[vars$Q.fontSize]: refs$1.fontSize,
|
3940
|
+
[vars$Q.fontFamily]: refs$1.fontFamily,
|
3941
|
+
[vars$Q.labelFontSize]: refs$1.labelFontSize,
|
3942
|
+
[vars$Q.labelFontWeight]: refs$1.labelFontWeight,
|
3943
|
+
[vars$Q.labelTextColor]: refs$1.labelTextColor,
|
3944
|
+
[vars$Q.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
3945
|
+
[vars$Q.inputValueTextColor]: refs$1.valueTextColor,
|
3946
|
+
[vars$Q.inputPlaceholderColor]: refs$1.placeholderTextColor,
|
3947
|
+
[vars$Q.inputBorderWidth]: refs$1.borderWidth,
|
3948
|
+
[vars$Q.inputBorderStyle]: refs$1.borderStyle,
|
3949
|
+
[vars$Q.inputBorderColor]: refs$1.borderColor,
|
3950
|
+
[vars$Q.inputBorderRadius]: refs$1.borderRadius,
|
3951
|
+
[vars$Q.inputOutlineWidth]: refs$1.outlineWidth,
|
3952
|
+
[vars$Q.inputOutlineStyle]: refs$1.outlineStyle,
|
3953
|
+
[vars$Q.inputOutlineColor]: refs$1.outlineColor,
|
3954
|
+
[vars$Q.inputOutlineOffset]: refs$1.outlineOffset,
|
3955
|
+
[vars$Q.inputBackgroundColor]: refs$1.backgroundColor,
|
3956
|
+
[vars$Q.labelRequiredIndicator]: refs$1.requiredIndicator,
|
3957
|
+
[vars$Q.inputHorizontalPadding]: refs$1.horizontalPadding,
|
3958
|
+
[vars$Q.inputHeight]: refs$1.inputHeight,
|
3959
|
+
[vars$Q.labelPosition]: refs$1.labelPosition,
|
3960
|
+
[vars$Q.labelTopPosition]: refs$1.labelTopPosition,
|
3961
|
+
[vars$Q.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
|
3962
|
+
[vars$Q.inputTransformY]: refs$1.inputTransformY,
|
3963
|
+
[vars$Q.inputTransition]: refs$1.inputTransition,
|
3964
|
+
[vars$Q.marginInlineStart]: refs$1.marginInlineStart,
|
3965
|
+
[vars$Q.placeholderOpacity]: refs$1.placeholderOpacity,
|
3966
|
+
[vars$Q.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
|
3967
|
+
[vars$Q.valueInputHeight]: refs$1.valueInputHeight,
|
3968
|
+
[vars$Q.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
|
3845
3969
|
|
3846
3970
|
// error message icon
|
3847
|
-
[vars$
|
3848
|
-
[vars$
|
3849
|
-
[vars$
|
3850
|
-
[vars$
|
3851
|
-
[vars$
|
3971
|
+
[vars$Q.errorMessageIcon]: refs$1.errorMessageIcon,
|
3972
|
+
[vars$Q.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
3973
|
+
[vars$Q.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
3974
|
+
[vars$Q.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
3975
|
+
[vars$Q.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
3852
3976
|
};
|
3853
3977
|
|
3854
3978
|
var numberField$1 = /*#__PURE__*/Object.freeze({
|
3855
3979
|
__proto__: null,
|
3856
3980
|
default: numberField,
|
3857
|
-
vars: vars$
|
3981
|
+
vars: vars$Q
|
3858
3982
|
});
|
3859
3983
|
|
3860
|
-
const componentName$
|
3984
|
+
const componentName$Y = getComponentName$1('email-field');
|
3861
3985
|
|
3862
3986
|
const defaultPattern = "^[\\w\\.\\%\\+\\-']+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$";
|
3863
3987
|
const defaultAutocomplete = 'username';
|
@@ -3889,11 +4013,11 @@ const EmailFieldClass = compose$1(
|
|
3889
4013
|
autocompleteType: 'username',
|
3890
4014
|
includeAttrs: ['disabled', 'readonly', 'pattern'],
|
3891
4015
|
}),
|
3892
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'], useProxyTargets: true }),
|
4016
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'], useProxyTargets: true }),
|
3893
4017
|
componentNameValidationMixin$1,
|
3894
4018
|
customMixin$a
|
3895
4019
|
)(
|
3896
|
-
createProxy({
|
4020
|
+
createProxy$1({
|
3897
4021
|
slots: ['', 'suffix'],
|
3898
4022
|
wrappedEleName: 'vaadin-email-field',
|
3899
4023
|
style: () => `
|
@@ -3926,62 +4050,62 @@ const EmailFieldClass = compose$1(
|
|
3926
4050
|
}
|
3927
4051
|
`,
|
3928
4052
|
excludeAttrsSync: ['tabindex'],
|
3929
|
-
componentName: componentName$
|
4053
|
+
componentName: componentName$Y,
|
3930
4054
|
})
|
3931
4055
|
);
|
3932
4056
|
|
3933
|
-
const vars$
|
4057
|
+
const vars$P = EmailFieldClass.cssVarList;
|
3934
4058
|
|
3935
4059
|
const emailField = {
|
3936
|
-
[vars$
|
3937
|
-
[vars$
|
3938
|
-
[vars$
|
3939
|
-
[vars$
|
3940
|
-
[vars$
|
3941
|
-
[vars$
|
3942
|
-
[vars$
|
3943
|
-
[vars$
|
3944
|
-
[vars$
|
3945
|
-
[vars$
|
3946
|
-
[vars$
|
3947
|
-
[vars$
|
3948
|
-
[vars$
|
3949
|
-
[vars$
|
3950
|
-
[vars$
|
3951
|
-
[vars$
|
3952
|
-
[vars$
|
3953
|
-
[vars$
|
3954
|
-
[vars$
|
3955
|
-
[vars$
|
3956
|
-
[vars$
|
3957
|
-
[vars$
|
3958
|
-
[vars$
|
3959
|
-
[vars$
|
3960
|
-
[vars$
|
3961
|
-
[vars$
|
3962
|
-
[vars$
|
3963
|
-
[vars$
|
3964
|
-
[vars$
|
3965
|
-
[vars$
|
3966
|
-
[vars$
|
3967
|
-
[vars$
|
3968
|
-
[vars$
|
4060
|
+
[vars$P.hostWidth]: refs$1.width,
|
4061
|
+
[vars$P.hostMinWidth]: refs$1.minWidth,
|
4062
|
+
[vars$P.hostDirection]: refs$1.direction,
|
4063
|
+
[vars$P.fontSize]: refs$1.fontSize,
|
4064
|
+
[vars$P.fontFamily]: refs$1.fontFamily,
|
4065
|
+
[vars$P.labelFontSize]: refs$1.labelFontSize,
|
4066
|
+
[vars$P.labelFontWeight]: refs$1.labelFontWeight,
|
4067
|
+
[vars$P.labelTextColor]: refs$1.labelTextColor,
|
4068
|
+
[vars$P.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
4069
|
+
[vars$P.inputValueTextColor]: refs$1.valueTextColor,
|
4070
|
+
[vars$P.labelRequiredIndicator]: refs$1.requiredIndicator,
|
4071
|
+
[vars$P.inputPlaceholderColor]: refs$1.placeholderTextColor,
|
4072
|
+
[vars$P.inputBorderWidth]: refs$1.borderWidth,
|
4073
|
+
[vars$P.inputBorderStyle]: refs$1.borderStyle,
|
4074
|
+
[vars$P.inputBorderColor]: refs$1.borderColor,
|
4075
|
+
[vars$P.inputBorderRadius]: refs$1.borderRadius,
|
4076
|
+
[vars$P.inputOutlineWidth]: refs$1.outlineWidth,
|
4077
|
+
[vars$P.inputOutlineStyle]: refs$1.outlineStyle,
|
4078
|
+
[vars$P.inputOutlineColor]: refs$1.outlineColor,
|
4079
|
+
[vars$P.inputOutlineOffset]: refs$1.outlineOffset,
|
4080
|
+
[vars$P.inputBackgroundColor]: refs$1.backgroundColor,
|
4081
|
+
[vars$P.inputHorizontalPadding]: refs$1.horizontalPadding,
|
4082
|
+
[vars$P.inputHeight]: refs$1.inputHeight,
|
4083
|
+
[vars$P.labelPosition]: refs$1.labelPosition,
|
4084
|
+
[vars$P.labelTopPosition]: refs$1.labelTopPosition,
|
4085
|
+
[vars$P.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
|
4086
|
+
[vars$P.inputTransformY]: refs$1.inputTransformY,
|
4087
|
+
[vars$P.inputTransition]: refs$1.inputTransition,
|
4088
|
+
[vars$P.marginInlineStart]: refs$1.marginInlineStart,
|
4089
|
+
[vars$P.placeholderOpacity]: refs$1.placeholderOpacity,
|
4090
|
+
[vars$P.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
|
4091
|
+
[vars$P.valueInputHeight]: refs$1.valueInputHeight,
|
4092
|
+
[vars$P.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
|
3969
4093
|
|
3970
4094
|
// error message icon
|
3971
|
-
[vars$
|
3972
|
-
[vars$
|
3973
|
-
[vars$
|
3974
|
-
[vars$
|
3975
|
-
[vars$
|
4095
|
+
[vars$P.errorMessageIcon]: refs$1.errorMessageIcon,
|
4096
|
+
[vars$P.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
4097
|
+
[vars$P.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
4098
|
+
[vars$P.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
4099
|
+
[vars$P.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
3976
4100
|
};
|
3977
4101
|
|
3978
4102
|
var emailField$1 = /*#__PURE__*/Object.freeze({
|
3979
4103
|
__proto__: null,
|
3980
4104
|
default: emailField,
|
3981
|
-
vars: vars$
|
4105
|
+
vars: vars$P
|
3982
4106
|
});
|
3983
4107
|
|
3984
|
-
const componentName$
|
4108
|
+
const componentName$X = getComponentName$1('text-area');
|
3985
4109
|
|
3986
4110
|
const {
|
3987
4111
|
host: host$l,
|
@@ -4039,10 +4163,10 @@ const TextAreaClass = compose$1(
|
|
4039
4163
|
},
|
4040
4164
|
}),
|
4041
4165
|
draggableMixin$1,
|
4042
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
4166
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
4043
4167
|
componentNameValidationMixin$1
|
4044
4168
|
)(
|
4045
|
-
createProxy({
|
4169
|
+
createProxy$1({
|
4046
4170
|
slots: [],
|
4047
4171
|
wrappedEleName: 'vaadin-text-area',
|
4048
4172
|
style: () => `
|
@@ -4062,70 +4186,70 @@ const TextAreaClass = compose$1(
|
|
4062
4186
|
${resetInputCursor('vaadin-text-area')}
|
4063
4187
|
`,
|
4064
4188
|
excludeAttrsSync: ['tabindex'],
|
4065
|
-
componentName: componentName$
|
4189
|
+
componentName: componentName$X,
|
4066
4190
|
})
|
4067
4191
|
);
|
4068
4192
|
|
4069
|
-
const vars$
|
4193
|
+
const vars$O = TextAreaClass.cssVarList;
|
4070
4194
|
|
4071
4195
|
const textArea = {
|
4072
|
-
[vars$
|
4073
|
-
[vars$
|
4074
|
-
[vars$
|
4075
|
-
[vars$
|
4076
|
-
[vars$
|
4077
|
-
[vars$
|
4078
|
-
[vars$
|
4079
|
-
[vars$
|
4080
|
-
[vars$
|
4081
|
-
[vars$
|
4082
|
-
[vars$
|
4083
|
-
[vars$
|
4084
|
-
[vars$
|
4085
|
-
[vars$
|
4086
|
-
[vars$
|
4087
|
-
[vars$
|
4088
|
-
[vars$
|
4089
|
-
[vars$
|
4090
|
-
[vars$
|
4091
|
-
[vars$
|
4092
|
-
[vars$
|
4196
|
+
[vars$O.hostWidth]: refs$1.width,
|
4197
|
+
[vars$O.hostMinWidth]: refs$1.minWidth,
|
4198
|
+
[vars$O.hostDirection]: refs$1.direction,
|
4199
|
+
[vars$O.fontSize]: refs$1.fontSize,
|
4200
|
+
[vars$O.fontFamily]: refs$1.fontFamily,
|
4201
|
+
[vars$O.labelTextColor]: refs$1.labelTextColor,
|
4202
|
+
[vars$O.labelRequiredIndicator]: refs$1.requiredIndicator,
|
4203
|
+
[vars$O.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
4204
|
+
[vars$O.inputBackgroundColor]: refs$1.backgroundColor,
|
4205
|
+
[vars$O.inputValueTextColor]: refs$1.valueTextColor,
|
4206
|
+
[vars$O.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
|
4207
|
+
[vars$O.inputBorderRadius]: refs$1.borderRadius,
|
4208
|
+
[vars$O.inputBorderWidth]: refs$1.borderWidth,
|
4209
|
+
[vars$O.inputBorderStyle]: refs$1.borderStyle,
|
4210
|
+
[vars$O.inputBorderColor]: refs$1.borderColor,
|
4211
|
+
[vars$O.inputOutlineWidth]: refs$1.outlineWidth,
|
4212
|
+
[vars$O.inputOutlineStyle]: refs$1.outlineStyle,
|
4213
|
+
[vars$O.inputOutlineColor]: refs$1.outlineColor,
|
4214
|
+
[vars$O.inputOutlineOffset]: refs$1.outlineOffset,
|
4215
|
+
[vars$O.inputResizeType]: 'vertical',
|
4216
|
+
[vars$O.inputMinHeight]: '5em',
|
4093
4217
|
|
4094
4218
|
// error message icon
|
4095
|
-
[vars$
|
4096
|
-
[vars$
|
4097
|
-
[vars$
|
4098
|
-
[vars$
|
4099
|
-
[vars$
|
4219
|
+
[vars$O.errorMessageIcon]: refs$1.errorMessageIcon,
|
4220
|
+
[vars$O.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
4221
|
+
[vars$O.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
4222
|
+
[vars$O.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
4223
|
+
[vars$O.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
4100
4224
|
|
4101
4225
|
textAlign: {
|
4102
|
-
right: { [vars$
|
4103
|
-
left: { [vars$
|
4104
|
-
center: { [vars$
|
4226
|
+
right: { [vars$O.inputTextAlign]: 'right' },
|
4227
|
+
left: { [vars$O.inputTextAlign]: 'left' },
|
4228
|
+
center: { [vars$O.inputTextAlign]: 'center' },
|
4105
4229
|
},
|
4106
4230
|
|
4107
4231
|
_readonly: {
|
4108
|
-
[vars$
|
4232
|
+
[vars$O.inputResizeType]: 'none',
|
4109
4233
|
},
|
4110
4234
|
};
|
4111
4235
|
|
4112
4236
|
var textArea$1 = /*#__PURE__*/Object.freeze({
|
4113
4237
|
__proto__: null,
|
4114
4238
|
default: textArea,
|
4115
|
-
vars: vars$
|
4239
|
+
vars: vars$O
|
4116
4240
|
});
|
4117
4241
|
|
4118
4242
|
const createBaseInputClass = (...args) =>
|
4119
4243
|
compose$1(
|
4120
|
-
inputValidationMixin,
|
4244
|
+
inputValidationMixin$1,
|
4121
4245
|
changeMixin,
|
4122
4246
|
normalizeBooleanAttributesMixin$1,
|
4123
4247
|
inputEventsDispatchingMixin
|
4124
4248
|
)(createBaseClass$1(...args));
|
4125
4249
|
|
4126
|
-
const componentName$
|
4250
|
+
const componentName$W = getComponentName$1('boolean-field-internal');
|
4127
4251
|
|
4128
|
-
createBaseInputClass({ componentName: componentName$
|
4252
|
+
createBaseInputClass({ componentName: componentName$W, baseSelector: 'div' });
|
4129
4253
|
|
4130
4254
|
const booleanFieldMixin = (superclass) =>
|
4131
4255
|
class BooleanFieldMixinClass extends superclass {
|
@@ -4134,14 +4258,14 @@ const booleanFieldMixin = (superclass) =>
|
|
4134
4258
|
|
4135
4259
|
const template = document.createElement('template');
|
4136
4260
|
template.innerHTML = `
|
4137
|
-
<${componentName$
|
4261
|
+
<${componentName$W}
|
4138
4262
|
tabindex="-1"
|
4139
4263
|
slot="input"
|
4140
|
-
></${componentName$
|
4264
|
+
></${componentName$W}>
|
4141
4265
|
`;
|
4142
4266
|
|
4143
4267
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
4144
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
4268
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$W);
|
4145
4269
|
this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
|
4146
4270
|
|
4147
4271
|
forwardAttrs$1(this, this.inputElement, {
|
@@ -4156,8 +4280,8 @@ const booleanFieldMixin = (superclass) =>
|
|
4156
4280
|
],
|
4157
4281
|
});
|
4158
4282
|
|
4159
|
-
forwardProps$
|
4160
|
-
syncAttrs(this, this.inputElement, { includeAttrs: ['checked'] });
|
4283
|
+
forwardProps$3(this.inputElement, this, ['checked']);
|
4284
|
+
syncAttrs$1(this, this.inputElement, { includeAttrs: ['checked'] });
|
4161
4285
|
}
|
4162
4286
|
};
|
4163
4287
|
|
@@ -4210,7 +4334,7 @@ descope-boolean-field-internal {
|
|
4210
4334
|
}
|
4211
4335
|
`;
|
4212
4336
|
|
4213
|
-
const componentName$
|
4337
|
+
const componentName$V = getComponentName$1('checkbox');
|
4214
4338
|
|
4215
4339
|
const {
|
4216
4340
|
host: host$k,
|
@@ -4277,11 +4401,11 @@ const CheckboxClass = compose$1(
|
|
4277
4401
|
},
|
4278
4402
|
}),
|
4279
4403
|
draggableMixin$1,
|
4280
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
4404
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
4281
4405
|
componentNameValidationMixin$1,
|
4282
4406
|
booleanFieldMixin
|
4283
4407
|
)(
|
4284
|
-
createProxy({
|
4408
|
+
createProxy$1({
|
4285
4409
|
slots: [],
|
4286
4410
|
wrappedEleName: 'vaadin-text-field',
|
4287
4411
|
style: () => `
|
@@ -4327,51 +4451,51 @@ const CheckboxClass = compose$1(
|
|
4327
4451
|
}
|
4328
4452
|
`,
|
4329
4453
|
excludeAttrsSync: ['label', 'tabindex'],
|
4330
|
-
componentName: componentName$
|
4454
|
+
componentName: componentName$V,
|
4331
4455
|
})
|
4332
4456
|
);
|
4333
4457
|
|
4334
|
-
const vars$
|
4458
|
+
const vars$N = CheckboxClass.cssVarList;
|
4335
4459
|
const checkboxSize = '1.35em';
|
4336
4460
|
|
4337
4461
|
const checkbox = {
|
4338
|
-
[vars$
|
4339
|
-
[vars$
|
4340
|
-
[vars$
|
4341
|
-
[vars$
|
4342
|
-
[vars$
|
4343
|
-
[vars$
|
4344
|
-
[vars$
|
4345
|
-
[vars$
|
4346
|
-
[vars$
|
4347
|
-
[vars$
|
4348
|
-
[vars$
|
4349
|
-
[vars$
|
4350
|
-
[vars$
|
4351
|
-
[vars$
|
4352
|
-
[vars$
|
4353
|
-
[vars$
|
4354
|
-
[vars$
|
4355
|
-
[vars$
|
4356
|
-
[vars$
|
4357
|
-
[vars$
|
4358
|
-
[vars$
|
4462
|
+
[vars$N.hostWidth]: refs$1.width,
|
4463
|
+
[vars$N.hostDirection]: refs$1.direction,
|
4464
|
+
[vars$N.fontSize]: refs$1.fontSize,
|
4465
|
+
[vars$N.fontFamily]: refs$1.fontFamily,
|
4466
|
+
[vars$N.labelTextColor]: refs$1.labelTextColor,
|
4467
|
+
[vars$N.labelRequiredIndicator]: refs$1.requiredIndicator,
|
4468
|
+
[vars$N.labelFontWeight]: '400',
|
4469
|
+
[vars$N.labelLineHeight]: checkboxSize,
|
4470
|
+
[vars$N.labelSpacing]: '1em',
|
4471
|
+
[vars$N.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
4472
|
+
[vars$N.inputOutlineWidth]: refs$1.outlineWidth,
|
4473
|
+
[vars$N.inputOutlineOffset]: refs$1.outlineOffset,
|
4474
|
+
[vars$N.inputOutlineColor]: refs$1.outlineColor,
|
4475
|
+
[vars$N.inputOutlineStyle]: refs$1.outlineStyle,
|
4476
|
+
[vars$N.inputBorderRadius]: refs$1.borderRadius,
|
4477
|
+
[vars$N.inputBorderColor]: refs$1.borderColor,
|
4478
|
+
[vars$N.inputBorderWidth]: refs$1.borderWidth,
|
4479
|
+
[vars$N.inputBorderStyle]: refs$1.borderStyle,
|
4480
|
+
[vars$N.inputBackgroundColor]: refs$1.backgroundColor,
|
4481
|
+
[vars$N.inputSize]: checkboxSize,
|
4482
|
+
[vars$N.inputValueTextColor]: refs$1.valueTextColor,
|
4359
4483
|
|
4360
4484
|
// error message icon
|
4361
|
-
[vars$
|
4362
|
-
[vars$
|
4363
|
-
[vars$
|
4364
|
-
[vars$
|
4365
|
-
[vars$
|
4485
|
+
[vars$N.errorMessageIcon]: refs$1.errorMessageIcon,
|
4486
|
+
[vars$N.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
4487
|
+
[vars$N.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
4488
|
+
[vars$N.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
4489
|
+
[vars$N.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
4366
4490
|
};
|
4367
4491
|
|
4368
4492
|
var checkbox$1 = /*#__PURE__*/Object.freeze({
|
4369
4493
|
__proto__: null,
|
4370
4494
|
default: checkbox,
|
4371
|
-
vars: vars$
|
4495
|
+
vars: vars$N
|
4372
4496
|
});
|
4373
4497
|
|
4374
|
-
const componentName$
|
4498
|
+
const componentName$U = getComponentName$1('switch-toggle');
|
4375
4499
|
|
4376
4500
|
const {
|
4377
4501
|
host: host$j,
|
@@ -4445,11 +4569,11 @@ const SwitchToggleClass = compose$1(
|
|
4445
4569
|
},
|
4446
4570
|
}),
|
4447
4571
|
draggableMixin$1,
|
4448
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
4572
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
4449
4573
|
componentNameValidationMixin$1,
|
4450
4574
|
booleanFieldMixin
|
4451
4575
|
)(
|
4452
|
-
createProxy({
|
4576
|
+
createProxy$1({
|
4453
4577
|
slots: [],
|
4454
4578
|
wrappedEleName: 'vaadin-text-field',
|
4455
4579
|
style: () => `
|
@@ -4509,89 +4633,89 @@ const SwitchToggleClass = compose$1(
|
|
4509
4633
|
}
|
4510
4634
|
`,
|
4511
4635
|
excludeAttrsSync: ['label', 'tabindex'],
|
4512
|
-
componentName: componentName$
|
4636
|
+
componentName: componentName$U,
|
4513
4637
|
})
|
4514
4638
|
);
|
4515
4639
|
|
4516
4640
|
const knobMargin = '2px';
|
4517
4641
|
const checkboxHeight = '1.25em';
|
4518
4642
|
|
4519
|
-
const globalRefs$
|
4520
|
-
const vars$
|
4643
|
+
const globalRefs$w = getThemeRefs(globals$1);
|
4644
|
+
const vars$M = SwitchToggleClass.cssVarList;
|
4521
4645
|
|
4522
4646
|
const switchToggle = {
|
4523
|
-
[vars$
|
4524
|
-
[vars$
|
4525
|
-
[vars$
|
4526
|
-
[vars$
|
4527
|
-
|
4528
|
-
[vars$
|
4529
|
-
[vars$
|
4530
|
-
[vars$
|
4531
|
-
[vars$
|
4532
|
-
|
4533
|
-
[vars$
|
4534
|
-
[vars$
|
4535
|
-
[vars$
|
4536
|
-
[vars$
|
4537
|
-
[vars$
|
4538
|
-
[vars$
|
4539
|
-
[vars$
|
4540
|
-
|
4541
|
-
[vars$
|
4542
|
-
[vars$
|
4543
|
-
[vars$
|
4544
|
-
[vars$
|
4545
|
-
[vars$
|
4546
|
-
[vars$
|
4547
|
-
|
4548
|
-
[vars$
|
4549
|
-
[vars$
|
4550
|
-
[vars$
|
4551
|
-
[vars$
|
4552
|
-
[vars$
|
4553
|
-
[vars$
|
4647
|
+
[vars$M.hostWidth]: refs$1.width,
|
4648
|
+
[vars$M.hostDirection]: refs$1.direction,
|
4649
|
+
[vars$M.fontSize]: refs$1.fontSize,
|
4650
|
+
[vars$M.fontFamily]: refs$1.fontFamily,
|
4651
|
+
|
4652
|
+
[vars$M.inputOutlineWidth]: refs$1.outlineWidth,
|
4653
|
+
[vars$M.inputOutlineOffset]: refs$1.outlineOffset,
|
4654
|
+
[vars$M.inputOutlineColor]: refs$1.outlineColor,
|
4655
|
+
[vars$M.inputOutlineStyle]: refs$1.outlineStyle,
|
4656
|
+
|
4657
|
+
[vars$M.trackBorderStyle]: refs$1.borderStyle,
|
4658
|
+
[vars$M.trackBorderWidth]: refs$1.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
4659
|
+
[vars$M.trackBorderColor]: refs$1.borderColor,
|
4660
|
+
[vars$M.trackBackgroundColor]: refs$1.backgroundColor,
|
4661
|
+
[vars$M.trackBorderRadius]: globalRefs$w.radius.md,
|
4662
|
+
[vars$M.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
4663
|
+
[vars$M.trackHeight]: checkboxHeight,
|
4664
|
+
|
4665
|
+
[vars$M.knobSize]: `calc(1em - ${knobMargin})`,
|
4666
|
+
[vars$M.knobRadius]: '50%',
|
4667
|
+
[vars$M.knobTopOffset]: '1px',
|
4668
|
+
[vars$M.knobLeftOffset]: knobMargin,
|
4669
|
+
[vars$M.knobColor]: refs$1.labelTextColor,
|
4670
|
+
[vars$M.knobTransitionDuration]: '0.3s',
|
4671
|
+
|
4672
|
+
[vars$M.labelTextColor]: refs$1.labelTextColor,
|
4673
|
+
[vars$M.labelFontWeight]: '400',
|
4674
|
+
[vars$M.labelLineHeight]: '1.35em',
|
4675
|
+
[vars$M.labelSpacing]: '1em',
|
4676
|
+
[vars$M.labelRequiredIndicator]: refs$1.requiredIndicator,
|
4677
|
+
[vars$M.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
4554
4678
|
|
4555
4679
|
// error message icon
|
4556
|
-
[vars$
|
4557
|
-
[vars$
|
4558
|
-
[vars$
|
4559
|
-
[vars$
|
4560
|
-
[vars$
|
4680
|
+
[vars$M.errorMessageIcon]: refs$1.errorMessageIcon,
|
4681
|
+
[vars$M.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
4682
|
+
[vars$M.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
4683
|
+
[vars$M.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
4684
|
+
[vars$M.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
4561
4685
|
|
4562
4686
|
_checked: {
|
4563
|
-
[vars$
|
4564
|
-
[vars$
|
4565
|
-
[vars$
|
4566
|
-
[vars$
|
4687
|
+
[vars$M.trackBorderColor]: refs$1.borderColor,
|
4688
|
+
[vars$M.knobLeftOffset]: `calc(100% - var(${vars$M.knobSize}) - ${knobMargin})`,
|
4689
|
+
[vars$M.knobColor]: refs$1.valueTextColor,
|
4690
|
+
[vars$M.knobTextColor]: refs$1.valueTextColor,
|
4567
4691
|
},
|
4568
4692
|
|
4569
4693
|
_disabled: {
|
4570
|
-
[vars$
|
4571
|
-
[vars$
|
4572
|
-
[vars$
|
4573
|
-
[vars$
|
4694
|
+
[vars$M.knobColor]: globalRefs$w.colors.surface.light,
|
4695
|
+
[vars$M.trackBorderColor]: globalRefs$w.colors.surface.light,
|
4696
|
+
[vars$M.trackBackgroundColor]: globalRefs$w.colors.surface.main,
|
4697
|
+
[vars$M.labelTextColor]: refs$1.labelTextColor,
|
4574
4698
|
_checked: {
|
4575
|
-
[vars$
|
4576
|
-
[vars$
|
4699
|
+
[vars$M.knobColor]: globalRefs$w.colors.surface.light,
|
4700
|
+
[vars$M.trackBackgroundColor]: globalRefs$w.colors.surface.main,
|
4577
4701
|
},
|
4578
4702
|
},
|
4579
4703
|
|
4580
4704
|
_invalid: {
|
4581
|
-
[vars$
|
4582
|
-
[vars$
|
4705
|
+
[vars$M.trackBorderColor]: globalRefs$w.colors.error.main,
|
4706
|
+
[vars$M.knobColor]: globalRefs$w.colors.error.main,
|
4583
4707
|
},
|
4584
4708
|
};
|
4585
4709
|
|
4586
4710
|
var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
4587
4711
|
__proto__: null,
|
4588
4712
|
default: switchToggle,
|
4589
|
-
vars: vars$
|
4713
|
+
vars: vars$M
|
4590
4714
|
});
|
4591
4715
|
|
4592
|
-
const componentName$
|
4716
|
+
const componentName$T = getComponentName$1('container');
|
4593
4717
|
|
4594
|
-
class RawContainer extends createBaseClass$1({ componentName: componentName$
|
4718
|
+
class RawContainer extends createBaseClass$1({ componentName: componentName$T, baseSelector: 'slot' }) {
|
4595
4719
|
constructor() {
|
4596
4720
|
super();
|
4597
4721
|
|
@@ -4650,7 +4774,7 @@ const ContainerClass = compose$1(
|
|
4650
4774
|
componentNameValidationMixin$1
|
4651
4775
|
)(RawContainer);
|
4652
4776
|
|
4653
|
-
const globalRefs$
|
4777
|
+
const globalRefs$v = getThemeRefs(globals$1);
|
4654
4778
|
|
4655
4779
|
const compVars$5 = ContainerClass.cssVarList;
|
4656
4780
|
|
@@ -4672,7 +4796,7 @@ const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars(
|
|
4672
4796
|
horizontalAlignment,
|
4673
4797
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
4674
4798
|
},
|
4675
|
-
componentName$
|
4799
|
+
componentName$T
|
4676
4800
|
);
|
4677
4801
|
|
4678
4802
|
const { shadowColor: shadowColor$3 } = helperRefs$3;
|
@@ -4684,7 +4808,7 @@ const container = {
|
|
4684
4808
|
[compVars$5.hostWidth]: '100%',
|
4685
4809
|
[compVars$5.boxShadow]: 'none',
|
4686
4810
|
|
4687
|
-
[compVars$5.backgroundColor]: globalRefs$
|
4811
|
+
[compVars$5.backgroundColor]: globalRefs$v.colors.surface.main,
|
4688
4812
|
|
4689
4813
|
[compVars$5.backgroundImage]: '', // we need to set a value to avoid inner containers from inheriting the parent's background image
|
4690
4814
|
[compVars$5.backgroundPositionX]: 'center',
|
@@ -4692,9 +4816,9 @@ const container = {
|
|
4692
4816
|
[compVars$5.backgroundSize]: 'cover',
|
4693
4817
|
[compVars$5.backgroundRepeat]: 'no-repeat',
|
4694
4818
|
|
4695
|
-
[compVars$5.color]: globalRefs$
|
4819
|
+
[compVars$5.color]: globalRefs$v.colors.surface.contrast,
|
4696
4820
|
[compVars$5.borderRadius]: '0px',
|
4697
|
-
[compVars$5.hostDirection]: globalRefs$
|
4821
|
+
[compVars$5.hostDirection]: globalRefs$v.direction,
|
4698
4822
|
|
4699
4823
|
verticalPadding: {
|
4700
4824
|
sm: { [compVars$5.verticalPadding]: '5px' },
|
@@ -4740,34 +4864,34 @@ const container = {
|
|
4740
4864
|
|
4741
4865
|
shadow: {
|
4742
4866
|
sm: {
|
4743
|
-
[compVars$5.boxShadow]: `${globalRefs$
|
4867
|
+
[compVars$5.boxShadow]: `${globalRefs$v.shadow.wide.sm} ${shadowColor$3}, ${globalRefs$v.shadow.narrow.sm} ${shadowColor$3}`,
|
4744
4868
|
},
|
4745
4869
|
md: {
|
4746
|
-
[compVars$5.boxShadow]: `${globalRefs$
|
4870
|
+
[compVars$5.boxShadow]: `${globalRefs$v.shadow.wide.md} ${shadowColor$3}, ${globalRefs$v.shadow.narrow.md} ${shadowColor$3}`,
|
4747
4871
|
},
|
4748
4872
|
lg: {
|
4749
|
-
[compVars$5.boxShadow]: `${globalRefs$
|
4873
|
+
[compVars$5.boxShadow]: `${globalRefs$v.shadow.wide.lg} ${shadowColor$3}, ${globalRefs$v.shadow.narrow.lg} ${shadowColor$3}`,
|
4750
4874
|
},
|
4751
4875
|
xl: {
|
4752
|
-
[compVars$5.boxShadow]: `${globalRefs$
|
4876
|
+
[compVars$5.boxShadow]: `${globalRefs$v.shadow.wide.xl} ${shadowColor$3}, ${globalRefs$v.shadow.narrow.xl} ${shadowColor$3}`,
|
4753
4877
|
},
|
4754
4878
|
'2xl': {
|
4755
4879
|
[helperVars$3.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
4756
|
-
[compVars$5.boxShadow]: `${globalRefs$
|
4880
|
+
[compVars$5.boxShadow]: `${globalRefs$v.shadow.wide['2xl']} ${shadowColor$3}`,
|
4757
4881
|
},
|
4758
4882
|
},
|
4759
4883
|
|
4760
4884
|
borderRadius: {
|
4761
|
-
sm: { [compVars$5.borderRadius]: globalRefs$
|
4762
|
-
md: { [compVars$5.borderRadius]: globalRefs$
|
4763
|
-
lg: { [compVars$5.borderRadius]: globalRefs$
|
4764
|
-
xl: { [compVars$5.borderRadius]: globalRefs$
|
4765
|
-
'2xl': { [compVars$5.borderRadius]: globalRefs$
|
4766
|
-
'3xl': { [compVars$5.borderRadius]: globalRefs$
|
4885
|
+
sm: { [compVars$5.borderRadius]: globalRefs$v.radius.sm },
|
4886
|
+
md: { [compVars$5.borderRadius]: globalRefs$v.radius.md },
|
4887
|
+
lg: { [compVars$5.borderRadius]: globalRefs$v.radius.lg },
|
4888
|
+
xl: { [compVars$5.borderRadius]: globalRefs$v.radius.xl },
|
4889
|
+
'2xl': { [compVars$5.borderRadius]: globalRefs$v.radius['2xl'] },
|
4890
|
+
'3xl': { [compVars$5.borderRadius]: globalRefs$v.radius['3xl'] },
|
4767
4891
|
},
|
4768
4892
|
};
|
4769
4893
|
|
4770
|
-
const vars$
|
4894
|
+
const vars$L = {
|
4771
4895
|
...compVars$5,
|
4772
4896
|
...helperVars$3,
|
4773
4897
|
};
|
@@ -4775,7 +4899,7 @@ const vars$K = {
|
|
4775
4899
|
var container$1 = /*#__PURE__*/Object.freeze({
|
4776
4900
|
__proto__: null,
|
4777
4901
|
default: container,
|
4778
|
-
vars: vars$
|
4902
|
+
vars: vars$L
|
4779
4903
|
});
|
4780
4904
|
|
4781
4905
|
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
@@ -4828,64 +4952,64 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
|
|
4828
4952
|
return CssVarImageClass;
|
4829
4953
|
};
|
4830
4954
|
|
4831
|
-
const componentName$
|
4955
|
+
const componentName$S = getComponentName$1('logo');
|
4832
4956
|
|
4833
4957
|
const LogoClass = createCssVarImageClass({
|
4834
|
-
componentName: componentName$
|
4958
|
+
componentName: componentName$S,
|
4835
4959
|
varName: 'url',
|
4836
4960
|
fallbackVarName: 'fallbackUrl',
|
4837
4961
|
});
|
4838
4962
|
|
4839
|
-
const vars$
|
4963
|
+
const vars$K = LogoClass.cssVarList;
|
4840
4964
|
|
4841
4965
|
const logo$2 = {
|
4842
|
-
[vars$
|
4966
|
+
[vars$K.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
|
4843
4967
|
};
|
4844
4968
|
|
4845
4969
|
var logo$3 = /*#__PURE__*/Object.freeze({
|
4846
4970
|
__proto__: null,
|
4847
4971
|
default: logo$2,
|
4848
|
-
vars: vars$
|
4972
|
+
vars: vars$K
|
4849
4973
|
});
|
4850
4974
|
|
4851
|
-
const componentName$
|
4975
|
+
const componentName$R = getComponentName$1('totp-image');
|
4852
4976
|
|
4853
4977
|
const TotpImageClass = createCssVarImageClass({
|
4854
|
-
componentName: componentName$
|
4978
|
+
componentName: componentName$R,
|
4855
4979
|
varName: 'url',
|
4856
4980
|
fallbackVarName: 'fallbackUrl',
|
4857
4981
|
});
|
4858
4982
|
|
4859
|
-
const vars$
|
4983
|
+
const vars$J = TotpImageClass.cssVarList;
|
4860
4984
|
|
4861
4985
|
const logo$1 = {
|
4862
|
-
[vars$
|
4986
|
+
[vars$J.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
|
4863
4987
|
};
|
4864
4988
|
|
4865
4989
|
var totpImage = /*#__PURE__*/Object.freeze({
|
4866
4990
|
__proto__: null,
|
4867
4991
|
default: logo$1,
|
4868
|
-
vars: vars$
|
4992
|
+
vars: vars$J
|
4869
4993
|
});
|
4870
4994
|
|
4871
|
-
const componentName$
|
4995
|
+
const componentName$Q = getComponentName$1('notp-image');
|
4872
4996
|
|
4873
4997
|
const NotpImageClass = createCssVarImageClass({
|
4874
|
-
componentName: componentName$
|
4998
|
+
componentName: componentName$Q,
|
4875
4999
|
varName: 'url',
|
4876
5000
|
fallbackVarName: 'fallbackUrl',
|
4877
5001
|
});
|
4878
5002
|
|
4879
|
-
const vars$
|
5003
|
+
const vars$I = NotpImageClass.cssVarList;
|
4880
5004
|
|
4881
5005
|
const logo = {
|
4882
|
-
[vars$
|
5006
|
+
[vars$I.fallbackUrl]: 'url(https://imgs.descope.com/components/notp-placeholder.svg)',
|
4883
5007
|
};
|
4884
5008
|
|
4885
5009
|
var notpImage = /*#__PURE__*/Object.freeze({
|
4886
5010
|
__proto__: null,
|
4887
5011
|
default: logo,
|
4888
|
-
vars: vars$
|
5012
|
+
vars: vars$I
|
4889
5013
|
});
|
4890
5014
|
|
4891
5015
|
const direction = 'ltr';
|
@@ -5465,6 +5589,8 @@ const booleanAttributesList = [
|
|
5465
5589
|
'opening',
|
5466
5590
|
'closing',
|
5467
5591
|
'has-no-options',
|
5592
|
+
'loading',
|
5593
|
+
'allow-custom-value',
|
5468
5594
|
];
|
5469
5595
|
|
5470
5596
|
const isBooleanAttribute = (attr) => {
|
@@ -5541,30 +5667,648 @@ const createBaseClass = ({ componentName, baseSelector = '' }) => {
|
|
5541
5667
|
return this.getAttribute('name');
|
5542
5668
|
}
|
5543
5669
|
|
5544
|
-
connectedCallback() {
|
5545
|
-
super.connectedCallback?.();
|
5670
|
+
connectedCallback() {
|
5671
|
+
super.connectedCallback?.();
|
5672
|
+
|
5673
|
+
if (this.rootElement.isConnected) {
|
5674
|
+
// the init function is running once, on the first time the component is connected
|
5675
|
+
if (this.#isInit) {
|
5676
|
+
this.#isInit = false;
|
5677
|
+
this.init?.();
|
5678
|
+
}
|
5679
|
+
}
|
5680
|
+
}
|
5681
|
+
}
|
5682
|
+
|
5683
|
+
return compose(
|
5684
|
+
componentNameValidationMixin,
|
5685
|
+
hoverableMixin,
|
5686
|
+
normalizeBooleanAttributesMixin,
|
5687
|
+
componentsContextMixin
|
5688
|
+
)(DescopeBaseClass);
|
5689
|
+
};
|
5690
|
+
|
5691
|
+
// create a dispatch event function that also calls to the onevent function in case it's set
|
5692
|
+
// usage example:
|
5693
|
+
// #dispatchSomething = createDispatchEvent.bind(this, 'something' { ...options })
|
5694
|
+
// this will dispatch a new event when called, but also call to "onsomething"
|
5695
|
+
function createDispatchEvent(eventName, options = {}) {
|
5696
|
+
const event = new Event(eventName, options);
|
5697
|
+
|
5698
|
+
this[`on${eventName}`]?.(event); // in case we got an event callback as property
|
5699
|
+
this.dispatchEvent(event);
|
5700
|
+
}
|
5701
|
+
|
5702
|
+
const observedAttributes$4 = ['required', 'pattern'];
|
5703
|
+
|
5704
|
+
const errorAttributes = {
|
5705
|
+
valueMissing: 'data-errormessage-value-missing',
|
5706
|
+
patternMismatch: 'data-errormessage-pattern-mismatch',
|
5707
|
+
tooShort: 'data-errormessage-pattern-mismatch-too-short',
|
5708
|
+
tooLong: 'data-errormessage-pattern-mismatch-too-long',
|
5709
|
+
rangeUnderflow: 'data-errormessage-pattern-range-underflow',
|
5710
|
+
rangeOverflow: 'data-errormessage-pattern-range-overflow',
|
5711
|
+
typeMismatch: 'data-errormessage-type-mismatch',
|
5712
|
+
};
|
5713
|
+
|
5714
|
+
const validationTargetSymbol = Symbol('validationTarget');
|
5715
|
+
|
5716
|
+
const inputValidationMixin = (superclass) =>
|
5717
|
+
class InputValidationMixinClass extends superclass {
|
5718
|
+
#validationTarget = validationTargetSymbol;
|
5719
|
+
|
5720
|
+
static get observedAttributes() {
|
5721
|
+
return [...(superclass.observedAttributes || []), ...observedAttributes$4];
|
5722
|
+
}
|
5723
|
+
|
5724
|
+
static get formAssociated() {
|
5725
|
+
return true;
|
5726
|
+
}
|
5727
|
+
|
5728
|
+
#internals;
|
5729
|
+
|
5730
|
+
get internals() {
|
5731
|
+
return this.#internals;
|
5732
|
+
}
|
5733
|
+
|
5734
|
+
set internals(value) {
|
5735
|
+
this.#internals = value;
|
5736
|
+
}
|
5737
|
+
|
5738
|
+
constructor() {
|
5739
|
+
super();
|
5740
|
+
|
5741
|
+
this.#internals = this.attachInternals();
|
5742
|
+
}
|
5743
|
+
|
5744
|
+
// eslint-disable-next-line class-methods-use-this
|
5745
|
+
get defaultErrorMsgValueMissing() {
|
5746
|
+
return 'Please fill out this field.';
|
5747
|
+
}
|
5748
|
+
|
5749
|
+
// eslint-disable-next-line class-methods-use-this
|
5750
|
+
get defaultErrorMsgPatternMismatch() {
|
5751
|
+
return 'Please match the requested format.';
|
5752
|
+
}
|
5753
|
+
|
5754
|
+
get defaultErrorMsgTooShort() {
|
5755
|
+
return `Minimum length is ${this.getAttribute('minlength')}.`;
|
5756
|
+
}
|
5757
|
+
|
5758
|
+
get defaultErrorMsgTooLong() {
|
5759
|
+
return `Maximum length is ${this.getAttribute('maxlength')}. `;
|
5760
|
+
}
|
5761
|
+
|
5762
|
+
get defaultErrorMsgRangeUnderflow() {
|
5763
|
+
return `At least ${this.getAttribute('min-items-selection')} items are required.`;
|
5764
|
+
}
|
5765
|
+
|
5766
|
+
get defaultErrorMsgRangeOverflow() {
|
5767
|
+
return `At most ${this.getAttribute('max-items-selection')} items are allowed.`;
|
5768
|
+
}
|
5769
|
+
|
5770
|
+
// eslint-disable-next-line class-methods-use-this
|
5771
|
+
get defaultErrorMsgTypeMismatch() {
|
5772
|
+
return `Please match the requested type.`;
|
5773
|
+
}
|
5774
|
+
|
5775
|
+
getErrorMessage(flags) {
|
5776
|
+
const {
|
5777
|
+
valueMissing,
|
5778
|
+
patternMismatch,
|
5779
|
+
typeMismatch,
|
5780
|
+
stepMismatch,
|
5781
|
+
tooShort,
|
5782
|
+
tooLong,
|
5783
|
+
rangeOverflow,
|
5784
|
+
rangeUnderflow,
|
5785
|
+
badInput,
|
5786
|
+
customError,
|
5787
|
+
} = flags;
|
5788
|
+
|
5789
|
+
switch (true) {
|
5790
|
+
case valueMissing:
|
5791
|
+
return (
|
5792
|
+
this.getAttribute(errorAttributes.valueMissing) || this.defaultErrorMsgValueMissing
|
5793
|
+
);
|
5794
|
+
case patternMismatch || stepMismatch || badInput:
|
5795
|
+
return (
|
5796
|
+
this.getAttribute(errorAttributes.patternMismatch) ||
|
5797
|
+
this.defaultErrorMsgPatternMismatch
|
5798
|
+
);
|
5799
|
+
case typeMismatch:
|
5800
|
+
return (
|
5801
|
+
this.getAttribute(errorAttributes.typeMismatch) ||
|
5802
|
+
this.getAttribute(errorAttributes.patternMismatch) ||
|
5803
|
+
this.defaultErrorMsgTypeMismatch
|
5804
|
+
);
|
5805
|
+
case tooShort:
|
5806
|
+
return this.getAttribute(errorAttributes.tooShort) || this.defaultErrorMsgTooShort;
|
5807
|
+
case tooLong:
|
5808
|
+
return this.getAttribute(errorAttributes.tooLong) || this.defaultErrorMsgTooLong;
|
5809
|
+
case rangeUnderflow:
|
5810
|
+
return (
|
5811
|
+
this.getAttribute(errorAttributes.rangeUnderflow) || this.defaultErrorMsgRangeUnderflow
|
5812
|
+
);
|
5813
|
+
case rangeOverflow:
|
5814
|
+
return (
|
5815
|
+
this.getAttribute(errorAttributes.rangeOverflow) || this.defaultErrorMsgRangeOverflow
|
5816
|
+
);
|
5817
|
+
case customError:
|
5818
|
+
return this.validationMessage;
|
5819
|
+
default:
|
5820
|
+
return '';
|
5821
|
+
}
|
5822
|
+
}
|
5823
|
+
|
5824
|
+
#setValidity() {
|
5825
|
+
const validity = this.isReadOnly ? {} : this.getValidity();
|
5826
|
+
this.#internals.setValidity(validity, this.getErrorMessage(validity), this.validationTarget);
|
5827
|
+
}
|
5828
|
+
|
5829
|
+
get validationMessage() {
|
5830
|
+
return this.#internals.validationMessage;
|
5831
|
+
}
|
5832
|
+
|
5833
|
+
// eslint-disable-next-line class-methods-use-this
|
5834
|
+
getValidity() {
|
5835
|
+
// eslint-disable-next-line no-console
|
5836
|
+
console.warn('getValidity', 'is not implemented');
|
5837
|
+
}
|
5838
|
+
|
5839
|
+
checkValidity() {
|
5840
|
+
return this.#internals.validity.valid;
|
5841
|
+
}
|
5842
|
+
|
5843
|
+
reportValidity() {
|
5844
|
+
return this.#internals.reportValidity();
|
5845
|
+
}
|
5846
|
+
|
5847
|
+
get validity() {
|
5848
|
+
return this.#internals.validity;
|
5849
|
+
}
|
5850
|
+
|
5851
|
+
get validationTarget() {
|
5852
|
+
return this.#validationTarget === validationTargetSymbol
|
5853
|
+
? this.inputElement
|
5854
|
+
: this.#validationTarget;
|
5855
|
+
}
|
5856
|
+
|
5857
|
+
set validationTarget(val) {
|
5858
|
+
this.#validationTarget = val;
|
5859
|
+
}
|
5860
|
+
|
5861
|
+
setCustomValidity(errorMessage) {
|
5862
|
+
if (errorMessage) {
|
5863
|
+
this.#internals.setValidity({ customError: true }, errorMessage, this.validationTarget);
|
5864
|
+
} else {
|
5865
|
+
this.#internals.setValidity({});
|
5866
|
+
this.#setValidity();
|
5867
|
+
}
|
5868
|
+
}
|
5869
|
+
|
5870
|
+
get isRequired() {
|
5871
|
+
return this.hasAttribute('required') && this.getAttribute('required') !== 'false';
|
5872
|
+
}
|
5873
|
+
|
5874
|
+
get isReadOnly() {
|
5875
|
+
return this.hasAttribute('readonly') && this.getAttribute('readonly') !== 'false';
|
5876
|
+
}
|
5877
|
+
|
5878
|
+
get isDisabled() {
|
5879
|
+
return this.hasAttribute('disabled') && this.getAttribute('disabled') !== 'false';
|
5880
|
+
}
|
5881
|
+
|
5882
|
+
get pattern() {
|
5883
|
+
return this.getAttribute('pattern');
|
5884
|
+
}
|
5885
|
+
|
5886
|
+
get form() {
|
5887
|
+
return this.#internals.form;
|
5888
|
+
}
|
5889
|
+
|
5890
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
5891
|
+
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
5892
|
+
|
5893
|
+
if (observedAttributes$4.includes(attrName)) {
|
5894
|
+
this.#setValidity();
|
5895
|
+
}
|
5896
|
+
}
|
5897
|
+
|
5898
|
+
init() {
|
5899
|
+
super.init?.();
|
5900
|
+
this.addEventListener('change', this.#setValidity);
|
5901
|
+
this.addEventListener('invalid', (e) => e.stopPropagation());
|
5902
|
+
this.addEventListener('input', this.#setValidity);
|
5903
|
+
|
5904
|
+
// The attribute sync takes time, so getValidity returns valid,
|
5905
|
+
// even when it shouldn't. This way allows all attributes to sync
|
5906
|
+
// after render, before checking the validity.
|
5907
|
+
setTimeout(() => this.#setValidity());
|
5908
|
+
}
|
5909
|
+
};
|
5910
|
+
|
5911
|
+
const createProxy = ({
|
5912
|
+
componentName,
|
5913
|
+
wrappedEleName,
|
5914
|
+
slots = [],
|
5915
|
+
style,
|
5916
|
+
excludeAttrsSync = [],
|
5917
|
+
includeAttrsSync = [],
|
5918
|
+
includeForwardProps = [],
|
5919
|
+
delegatesFocus = true,
|
5920
|
+
}) => {
|
5921
|
+
class ProxyClass extends createBaseClass({ componentName, baseSelector: wrappedEleName }) {
|
5922
|
+
#dispatchBlur = createDispatchEvent.bind(this, 'blur');
|
5923
|
+
|
5924
|
+
#dispatchFocus = createDispatchEvent.bind(this, 'focus');
|
5925
|
+
|
5926
|
+
constructor() {
|
5927
|
+
super().attachShadow({ mode: 'open', delegatesFocus }).innerHTML = `
|
5928
|
+
<style id="create-proxy">${(isFunction(style) ? style() : style) || ''}</style>
|
5929
|
+
<${wrappedEleName}>
|
5930
|
+
${slots
|
5931
|
+
.map(
|
5932
|
+
(
|
5933
|
+
slot // when slot is an empty string, we will create the default slot (without a name)
|
5934
|
+
) => `<slot ${slot ? `name="${slot}" slot="${slot}"` : ''}></slot>`
|
5935
|
+
)
|
5936
|
+
.join('')}
|
5937
|
+
</${wrappedEleName}>
|
5938
|
+
`;
|
5939
|
+
}
|
5940
|
+
|
5941
|
+
init() {
|
5942
|
+
super.init?.();
|
5943
|
+
|
5944
|
+
this.baseElement.addEventListener('blur', (_) => {
|
5945
|
+
this.#dispatchBlur();
|
5946
|
+
});
|
5947
|
+
|
5948
|
+
this.baseElement.addEventListener('focus', (_) => {
|
5949
|
+
this.#dispatchFocus();
|
5950
|
+
});
|
5951
|
+
|
5952
|
+
// this is needed for components that uses props, such as combo box
|
5953
|
+
forwardProps$2(this.baseElement, this, includeForwardProps);
|
5954
|
+
|
5955
|
+
syncAttrs(this.baseElement, this, {
|
5956
|
+
excludeAttrs: excludeAttrsSync,
|
5957
|
+
includeAttrs: includeAttrsSync,
|
5958
|
+
});
|
5959
|
+
}
|
5960
|
+
}
|
5961
|
+
|
5962
|
+
return ProxyClass;
|
5963
|
+
};
|
5964
|
+
|
5965
|
+
/* eslint-disable no-param-reassign */
|
5966
|
+
|
5967
|
+
const errorAttrs = ['invalid', 'required'];
|
5968
|
+
|
5969
|
+
const forwardProps = (src, targets, property) => {
|
5970
|
+
const targetArr = Array.isArray(targets) ? targets : [targets];
|
5971
|
+
|
5972
|
+
Object.defineProperty(src, property, {
|
5973
|
+
set(v) {
|
5974
|
+
targetArr.forEach((target) => {
|
5975
|
+
target[property] = v;
|
5976
|
+
});
|
5977
|
+
},
|
5978
|
+
get() {
|
5979
|
+
return targets[0][property];
|
5980
|
+
},
|
5981
|
+
configurable: true,
|
5982
|
+
});
|
5983
|
+
};
|
5984
|
+
|
5985
|
+
// recursively take the first slot child until it finds an element which is not a slot
|
5986
|
+
// stops after "nestingLevel" times
|
5987
|
+
const getNestedInput = (ele) => {
|
5988
|
+
if (!ele) return undefined;
|
5989
|
+
|
5990
|
+
const nestingLevel = 10;
|
5991
|
+
|
5992
|
+
let nonSlotEle = ele;
|
5993
|
+
for (let i = 0; i < nestingLevel; i++) {
|
5994
|
+
[nonSlotEle] = nonSlotEle.assignedElements();
|
5995
|
+
if (nonSlotEle?.localName !== 'slot') return nonSlotEle;
|
5996
|
+
}
|
5997
|
+
return undefined;
|
5998
|
+
};
|
5999
|
+
|
6000
|
+
const proxyInputMixin =
|
6001
|
+
({
|
6002
|
+
proxyProps = [],
|
6003
|
+
// useProxyTargets flag allows to forwardProps to other targets, other than
|
6004
|
+
// `this.inputElement`. It's to be used within `external-input` components,
|
6005
|
+
// if needed
|
6006
|
+
useProxyTargets = false,
|
6007
|
+
// allows us to set the event that should trigger validation
|
6008
|
+
// it can be either a string or an array of strings (for multiple events)
|
6009
|
+
inputEvent = 'input',
|
6010
|
+
triggerValidationEvents = [],
|
6011
|
+
// Proxies all validations from the parent component to the input element
|
6012
|
+
proxyParentValidation = false,
|
6013
|
+
}) =>
|
6014
|
+
(superclass) =>
|
6015
|
+
class ProxyInputMixinClass extends inputValidationMixin(superclass) {
|
6016
|
+
static get observedAttributes() {
|
6017
|
+
return [...(superclass.observedAttributes || []), ...errorAttrs];
|
6018
|
+
}
|
6019
|
+
|
6020
|
+
#inputElement;
|
6021
|
+
|
6022
|
+
#dispatchChange = createDispatchEvent.bind(this, 'change');
|
6023
|
+
|
6024
|
+
constructor() {
|
6025
|
+
super();
|
6026
|
+
|
6027
|
+
this.#inputElement = super.inputElement;
|
6028
|
+
}
|
6029
|
+
|
6030
|
+
// the web-component does not loaded immediately, so we want to defer the warning
|
6031
|
+
// and show it only if the input element was not found after the component is loaded
|
6032
|
+
warnIfInputElementIsMissing() {
|
6033
|
+
clearTimeout(this.inputElementTimerId);
|
6034
|
+
|
6035
|
+
this.inputElementTimerId = setTimeout(() => {
|
6036
|
+
// eslint-disable-next-line no-console
|
6037
|
+
!this.#inputElement && console.warn(this.localName, 'no input was found');
|
6038
|
+
}, 0);
|
6039
|
+
}
|
6040
|
+
|
6041
|
+
get inputElement() {
|
6042
|
+
if (this.#inputElement) return this.#inputElement;
|
6043
|
+
|
6044
|
+
this.warnIfInputElementIsMissing();
|
6045
|
+
|
6046
|
+
const inputSlot = this.baseElement.shadowRoot?.querySelector('slot[name="input"]');
|
6047
|
+
const textAreaSlot = this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');
|
6048
|
+
|
6049
|
+
this.#inputElement = getNestedInput(inputSlot) || getNestedInput(textAreaSlot);
|
6050
|
+
|
6051
|
+
return this.#inputElement;
|
6052
|
+
}
|
6053
|
+
|
6054
|
+
set inputElement(ele) {
|
6055
|
+
this.#inputElement = ele;
|
6056
|
+
}
|
6057
|
+
|
6058
|
+
getValidity() {
|
6059
|
+
return this.inputElement?.validity || {};
|
6060
|
+
}
|
6061
|
+
|
6062
|
+
#handleErrorMessage() {
|
6063
|
+
this.setAttribute('error-message', this.validationMessage);
|
6064
|
+
}
|
6065
|
+
|
6066
|
+
// We do not want to show the default validity report tooltip
|
6067
|
+
// So we are overriding the reportValidity fn to show the input's error message
|
6068
|
+
reportValidity = () => {
|
6069
|
+
// we want to update validity so in case the value was set programmatically, we won't get an error
|
6070
|
+
this.inputElement.setCustomValidity('');
|
6071
|
+
this.setCustomValidity('');
|
6072
|
+
if (!this.checkValidity()) {
|
6073
|
+
this.setAttribute('invalid', 'true');
|
6074
|
+
this.#handleErrorMessage();
|
6075
|
+
this.focus();
|
6076
|
+
}
|
6077
|
+
};
|
6078
|
+
|
6079
|
+
// we are keeping also the default reportValidity because there are some components that still using it
|
6080
|
+
defaultReportValidity() {
|
6081
|
+
return super.reportValidity();
|
6082
|
+
}
|
6083
|
+
|
6084
|
+
init() {
|
6085
|
+
super.init?.();
|
6086
|
+
|
6087
|
+
// vaadin sets invalid indication on blur
|
6088
|
+
// we want invalid indication to appear only when calling reportValidity
|
6089
|
+
// this is why we are overriding vaadin's setInvalid behavior
|
6090
|
+
// to update only when the element is valid (so invalid indication will only be removed)
|
6091
|
+
// and we are adding it in reportValidity
|
6092
|
+
// eslint-disable-next-line func-names
|
6093
|
+
this.baseElement._setInvalid = function (invalid) {
|
6094
|
+
if (!invalid && this._shouldSetInvalid(invalid)) {
|
6095
|
+
this.invalid = invalid;
|
6096
|
+
}
|
6097
|
+
};
|
6098
|
+
|
6099
|
+
// We want to ensure that `input` events properly cross ShadowDOM boundries
|
6100
|
+
// e.g. When we autofill a component's input with 1Password, for instance,
|
6101
|
+
// the event is fired without `composed: true` and doesn't our component's
|
6102
|
+
// ShadowDOM.
|
6103
|
+
this.baseElement.addEventListener('input', (e) => {
|
6104
|
+
if (!e.composed) {
|
6105
|
+
this.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
|
6106
|
+
}
|
6107
|
+
});
|
6108
|
+
|
6109
|
+
triggerValidationEvents.forEach((e) => {
|
6110
|
+
this.baseElement?.addEventListener(e, () => {
|
6111
|
+
this.inputElement?.setCustomValidity('');
|
6112
|
+
});
|
6113
|
+
});
|
6114
|
+
|
6115
|
+
// on some cases the base element is not ready so the inputElement is empty
|
6116
|
+
// we are deferring this section to make sure the base element is ready
|
6117
|
+
setTimeout(() => {
|
6118
|
+
const validationEvents = Array.isArray(inputEvent) ? inputEvent : [inputEvent];
|
6119
|
+
|
6120
|
+
validationEvents.forEach((e) => {
|
6121
|
+
this.baseElement?.addEventListener(e, () => {
|
6122
|
+
if (!this.baseElement.checkValidity()) {
|
6123
|
+
this.#handleErrorMessage();
|
6124
|
+
} else {
|
6125
|
+
this.removeAttribute('invalid');
|
6126
|
+
}
|
6127
|
+
});
|
6128
|
+
});
|
6129
|
+
|
6130
|
+
this.baseElement.addEventListener('change', () => {
|
6131
|
+
this.#dispatchChange();
|
6132
|
+
});
|
6133
|
+
|
6134
|
+
this.addEventListener('invalid', () => {
|
6135
|
+
if (!this.checkValidity()) {
|
6136
|
+
this.setAttribute('invalid', 'true');
|
6137
|
+
}
|
6138
|
+
this.#handleErrorMessage();
|
6139
|
+
});
|
6140
|
+
|
6141
|
+
// sync properties
|
6142
|
+
proxyProps.forEach((prop) => {
|
6143
|
+
const externalInput = this.querySelector('input[slot="external-input"]') || null;
|
6144
|
+
const proxyTargets = useProxyTargets
|
6145
|
+
? [this.baseElement, externalInput].filter(Boolean)
|
6146
|
+
: [];
|
6147
|
+
forwardProps(this, [this.inputElement, ...proxyTargets], prop);
|
6148
|
+
});
|
6149
|
+
|
6150
|
+
this.setSelectionRange = this.inputElement.setSelectionRange?.bind(this.inputElement);
|
6151
|
+
|
6152
|
+
forwardAttrs(this, this.inputElement, { includeAttrs: ['inputmode'] });
|
6153
|
+
});
|
6154
|
+
|
6155
|
+
if (proxyParentValidation) {
|
6156
|
+
// All functions called on the inputElement internals will be applied to the parent
|
6157
|
+
// component internals as well. As a result, there's no need to add outer mechanisms
|
6158
|
+
// to update the parent component's validity state based on the input elements validity.
|
6159
|
+
const inputElementInternals = this.inputElement.internals;
|
6160
|
+
const parentThis = this;
|
6161
|
+
this.inputElement.internals = new Proxy(inputElementInternals, {
|
6162
|
+
get: (target, prop) => {
|
6163
|
+
if (typeof target[prop] === 'function' && prop === 'setValidity') {
|
6164
|
+
return (...args) => {
|
6165
|
+
// If we're calling setValidity with 3 args, then the validationTarget
|
6166
|
+
// needs to be swapped to be the inputElement
|
6167
|
+
if (args.length === 3) {
|
6168
|
+
const newArgs = args.slice(0, args.length - 1);
|
6169
|
+
newArgs.push(parentThis.inputElement);
|
6170
|
+
parentThis.internals[prop](...newArgs);
|
6171
|
+
} else {
|
6172
|
+
parentThis.internals[prop](...args);
|
6173
|
+
}
|
6174
|
+
return target[prop](...args);
|
6175
|
+
};
|
6176
|
+
}
|
6177
|
+
|
6178
|
+
if (typeof target[prop] === 'function') {
|
6179
|
+
return (...args) => {
|
6180
|
+
parentThis.internals[prop](...args);
|
6181
|
+
return target[prop](...args);
|
6182
|
+
};
|
6183
|
+
}
|
6184
|
+
|
6185
|
+
return target[prop];
|
6186
|
+
},
|
6187
|
+
});
|
6188
|
+
}
|
6189
|
+
}
|
6190
|
+
};
|
6191
|
+
|
6192
|
+
const composedProxyInputMixin = (proxyInputMixinConfig) =>
|
6193
|
+
compose(
|
6194
|
+
proxyInputMixin(proxyInputMixinConfig),
|
6195
|
+
// in order to use input-wrapper across all our input components, we need to inject its theme
|
6196
|
+
// to every proxy input mixin, to allow its css vars to be scoped properly and accessible
|
6197
|
+
// in the proxy input component
|
6198
|
+
createStyleMixin({ componentNameOverride: getComponentName('input-wrapper') })
|
6199
|
+
);
|
6200
|
+
|
6201
|
+
// this is needed because we might generate the same css vars names
|
6202
|
+
// e.g. "overlayColor" attribute in style mixin's mapping,
|
6203
|
+
// will generate the same var as "color" attribute in portals's mapping
|
6204
|
+
// when the portal name is "overlay".
|
6205
|
+
// because of that, we are adding this separator that is also used as a differentiator
|
6206
|
+
const DISPLAY_NAME_SEPARATOR = '_';
|
6207
|
+
const PORTAL_THEME_PREFIX = '@';
|
6208
|
+
|
6209
|
+
|
6210
|
+
const sanitizeSelector = (selector) => selector.replace(/[^\w\s]/gi, '');
|
6211
|
+
|
6212
|
+
const withWaitForShadowRoot = (getRootElementFn) => async (that) => {
|
6213
|
+
const ele = await getRootElementFn(that);
|
6214
|
+
|
6215
|
+
return new Promise((res) => {
|
6216
|
+
const MAX_RETRIES = 20;
|
6217
|
+
let counter = 0;
|
6218
|
+
|
6219
|
+
const check = () => {
|
6220
|
+
if (counter > MAX_RETRIES) {
|
6221
|
+
// eslint-disable-next-line no-console
|
6222
|
+
console.error('could not get shadow root for element', ele);
|
6223
|
+
res(ele);
|
6224
|
+
return;
|
6225
|
+
}
|
6226
|
+
|
6227
|
+
counter++;
|
6228
|
+
|
6229
|
+
if (!ele?.shadowRoot) {
|
6230
|
+
setTimeout(check);
|
6231
|
+
} else {
|
6232
|
+
res(ele.shadowRoot);
|
6233
|
+
}
|
6234
|
+
};
|
6235
|
+
check();
|
6236
|
+
});
|
6237
|
+
};
|
6238
|
+
|
6239
|
+
const portalMixin =
|
6240
|
+
({ name, selector, mappings = {}, forward: { attributes = [], include = true } = {} }) =>
|
6241
|
+
(superclass) => {
|
6242
|
+
const eleDisplayName = name || sanitizeSelector(selector);
|
6243
|
+
|
6244
|
+
const BaseClass = createStyleMixin({
|
6245
|
+
mappings,
|
6246
|
+
})(superclass);
|
6247
|
+
|
6248
|
+
return class PortalMixinClass extends BaseClass {
|
6249
|
+
static get cssVarList() {
|
6250
|
+
return {
|
6251
|
+
...BaseClass.cssVarList,
|
6252
|
+
[eleDisplayName]: createCssVarsList(
|
6253
|
+
kebabCaseJoin(superclass.componentName, DISPLAY_NAME_SEPARATOR + eleDisplayName),
|
6254
|
+
mappings
|
6255
|
+
),
|
6256
|
+
};
|
6257
|
+
}
|
6258
|
+
|
6259
|
+
#portalEle;
|
6260
|
+
|
6261
|
+
constructor() {
|
6262
|
+
// we cannot use "this" before calling "super"
|
6263
|
+
const getRootElement = async (that) => {
|
6264
|
+
const baseEle = (that.shadowRoot || that).querySelector(that.baseSelector);
|
6265
|
+
if (!selector) {
|
6266
|
+
return baseEle;
|
6267
|
+
}
|
6268
|
+
|
6269
|
+
// in case we have a selector, we should first wait for the base element shadow root
|
6270
|
+
// and then look for the internal element
|
6271
|
+
const baseEleShadowRoot = await withWaitForShadowRoot(() => baseEle)(that);
|
6272
|
+
return baseEleShadowRoot.querySelector(selector);
|
6273
|
+
};
|
6274
|
+
|
6275
|
+
const getPortalElement = withWaitForShadowRoot(getRootElement);
|
6276
|
+
|
6277
|
+
super({
|
6278
|
+
getRootElement: getPortalElement,
|
6279
|
+
componentNameSuffix: DISPLAY_NAME_SEPARATOR + eleDisplayName,
|
6280
|
+
themeSection: PORTAL_THEME_PREFIX + eleDisplayName,
|
6281
|
+
baseSelector: ':host',
|
6282
|
+
});
|
6283
|
+
|
6284
|
+
this.#portalEle = getPortalElement(this).then((ele) => ele.host);
|
6285
|
+
}
|
5546
6286
|
|
5547
|
-
|
5548
|
-
|
5549
|
-
|
5550
|
-
|
5551
|
-
|
5552
|
-
|
6287
|
+
async #handleHoverAttribute() {
|
6288
|
+
const portalEle = await this.#portalEle;
|
6289
|
+
portalEle.onmouseenter = (e) => {
|
6290
|
+
e.target.setAttribute('hover', 'true');
|
6291
|
+
};
|
6292
|
+
portalEle.onmouseleave = (e) => {
|
6293
|
+
e.target.removeAttribute('hover');
|
6294
|
+
};
|
5553
6295
|
}
|
5554
|
-
}
|
5555
|
-
}
|
5556
6296
|
|
5557
|
-
|
5558
|
-
|
5559
|
-
|
5560
|
-
|
5561
|
-
|
5562
|
-
|
5563
|
-
|
6297
|
+
async init() {
|
6298
|
+
super.init?.();
|
6299
|
+
const portalEle = await this.#portalEle;
|
6300
|
+
forwardAttrs(this, portalEle, {
|
6301
|
+
[include ? 'includeAttrs' : 'excludeAttrs']: attributes,
|
6302
|
+
});
|
6303
|
+
|
6304
|
+
this.#handleHoverAttribute();
|
6305
|
+
}
|
6306
|
+
};
|
6307
|
+
};
|
5564
6308
|
|
5565
|
-
const componentName$
|
6309
|
+
const componentName$P = getComponentName('text');
|
5566
6310
|
|
5567
|
-
class RawText extends createBaseClass({ componentName: componentName$
|
6311
|
+
class RawText extends createBaseClass({ componentName: componentName$P, baseSelector: ':host > slot' }) {
|
5568
6312
|
constructor() {
|
5569
6313
|
super();
|
5570
6314
|
|
@@ -5621,95 +6365,95 @@ const TextClass = compose(
|
|
5621
6365
|
componentNameValidationMixin
|
5622
6366
|
)(RawText);
|
5623
6367
|
|
5624
|
-
const globalRefs$
|
5625
|
-
const vars$
|
6368
|
+
const globalRefs$u = getThemeRefs$1(globals);
|
6369
|
+
const vars$H = TextClass.cssVarList;
|
5626
6370
|
|
5627
6371
|
const text$2 = {
|
5628
|
-
[vars$
|
5629
|
-
[vars$
|
5630
|
-
[vars$
|
5631
|
-
[vars$
|
6372
|
+
[vars$H.hostDirection]: globalRefs$u.direction,
|
6373
|
+
[vars$H.textLineHeight]: '1.35em',
|
6374
|
+
[vars$H.textAlign]: 'left',
|
6375
|
+
[vars$H.textColor]: globalRefs$u.colors.surface.dark,
|
5632
6376
|
|
5633
6377
|
variant: {
|
5634
6378
|
h1: {
|
5635
|
-
[vars$
|
5636
|
-
[vars$
|
5637
|
-
[vars$
|
6379
|
+
[vars$H.fontSize]: globalRefs$u.typography.h1.size,
|
6380
|
+
[vars$H.fontWeight]: globalRefs$u.typography.h1.weight,
|
6381
|
+
[vars$H.fontFamily]: globalRefs$u.typography.h1.font,
|
5638
6382
|
},
|
5639
6383
|
h2: {
|
5640
|
-
[vars$
|
5641
|
-
[vars$
|
5642
|
-
[vars$
|
6384
|
+
[vars$H.fontSize]: globalRefs$u.typography.h2.size,
|
6385
|
+
[vars$H.fontWeight]: globalRefs$u.typography.h2.weight,
|
6386
|
+
[vars$H.fontFamily]: globalRefs$u.typography.h2.font,
|
5643
6387
|
},
|
5644
6388
|
h3: {
|
5645
|
-
[vars$
|
5646
|
-
[vars$
|
5647
|
-
[vars$
|
6389
|
+
[vars$H.fontSize]: globalRefs$u.typography.h3.size,
|
6390
|
+
[vars$H.fontWeight]: globalRefs$u.typography.h3.weight,
|
6391
|
+
[vars$H.fontFamily]: globalRefs$u.typography.h3.font,
|
5648
6392
|
},
|
5649
6393
|
subtitle1: {
|
5650
|
-
[vars$
|
5651
|
-
[vars$
|
5652
|
-
[vars$
|
6394
|
+
[vars$H.fontSize]: globalRefs$u.typography.subtitle1.size,
|
6395
|
+
[vars$H.fontWeight]: globalRefs$u.typography.subtitle1.weight,
|
6396
|
+
[vars$H.fontFamily]: globalRefs$u.typography.subtitle1.font,
|
5653
6397
|
},
|
5654
6398
|
subtitle2: {
|
5655
|
-
[vars$
|
5656
|
-
[vars$
|
5657
|
-
[vars$
|
6399
|
+
[vars$H.fontSize]: globalRefs$u.typography.subtitle2.size,
|
6400
|
+
[vars$H.fontWeight]: globalRefs$u.typography.subtitle2.weight,
|
6401
|
+
[vars$H.fontFamily]: globalRefs$u.typography.subtitle2.font,
|
5658
6402
|
},
|
5659
6403
|
body1: {
|
5660
|
-
[vars$
|
5661
|
-
[vars$
|
5662
|
-
[vars$
|
6404
|
+
[vars$H.fontSize]: globalRefs$u.typography.body1.size,
|
6405
|
+
[vars$H.fontWeight]: globalRefs$u.typography.body1.weight,
|
6406
|
+
[vars$H.fontFamily]: globalRefs$u.typography.body1.font,
|
5663
6407
|
},
|
5664
6408
|
body2: {
|
5665
|
-
[vars$
|
5666
|
-
[vars$
|
5667
|
-
[vars$
|
6409
|
+
[vars$H.fontSize]: globalRefs$u.typography.body2.size,
|
6410
|
+
[vars$H.fontWeight]: globalRefs$u.typography.body2.weight,
|
6411
|
+
[vars$H.fontFamily]: globalRefs$u.typography.body2.font,
|
5668
6412
|
},
|
5669
6413
|
},
|
5670
6414
|
|
5671
6415
|
mode: {
|
5672
6416
|
primary: {
|
5673
|
-
[vars$
|
6417
|
+
[vars$H.textColor]: globalRefs$u.colors.surface.contrast,
|
5674
6418
|
},
|
5675
6419
|
secondary: {
|
5676
|
-
[vars$
|
6420
|
+
[vars$H.textColor]: globalRefs$u.colors.surface.dark,
|
5677
6421
|
},
|
5678
6422
|
error: {
|
5679
|
-
[vars$
|
6423
|
+
[vars$H.textColor]: globalRefs$u.colors.error.main,
|
5680
6424
|
},
|
5681
6425
|
success: {
|
5682
|
-
[vars$
|
6426
|
+
[vars$H.textColor]: globalRefs$u.colors.success.main,
|
5683
6427
|
},
|
5684
6428
|
},
|
5685
6429
|
|
5686
6430
|
textAlign: {
|
5687
|
-
right: { [vars$
|
5688
|
-
left: { [vars$
|
5689
|
-
center: { [vars$
|
6431
|
+
right: { [vars$H.textAlign]: 'right' },
|
6432
|
+
left: { [vars$H.textAlign]: 'left' },
|
6433
|
+
center: { [vars$H.textAlign]: 'center' },
|
5690
6434
|
},
|
5691
6435
|
|
5692
6436
|
_fullWidth: {
|
5693
|
-
[vars$
|
6437
|
+
[vars$H.hostWidth]: '100%',
|
5694
6438
|
},
|
5695
6439
|
|
5696
6440
|
_italic: {
|
5697
|
-
[vars$
|
6441
|
+
[vars$H.fontStyle]: 'italic',
|
5698
6442
|
},
|
5699
6443
|
|
5700
6444
|
_uppercase: {
|
5701
|
-
[vars$
|
6445
|
+
[vars$H.textTransform]: 'uppercase',
|
5702
6446
|
},
|
5703
6447
|
|
5704
6448
|
_lowercase: {
|
5705
|
-
[vars$
|
6449
|
+
[vars$H.textTransform]: 'lowercase',
|
5706
6450
|
},
|
5707
6451
|
};
|
5708
6452
|
|
5709
6453
|
var text$3 = /*#__PURE__*/Object.freeze({
|
5710
6454
|
__proto__: null,
|
5711
6455
|
default: text$2,
|
5712
|
-
vars: vars$
|
6456
|
+
vars: vars$H
|
5713
6457
|
});
|
5714
6458
|
|
5715
6459
|
const disableRules = [
|
@@ -5736,9 +6480,9 @@ const decodeHTML = (html) => {
|
|
5736
6480
|
/* eslint-disable no-param-reassign */
|
5737
6481
|
|
5738
6482
|
|
5739
|
-
const componentName$
|
6483
|
+
const componentName$O = getComponentName$1('enriched-text');
|
5740
6484
|
|
5741
|
-
class EnrichedText extends createBaseClass$1({ componentName: componentName$
|
6485
|
+
class EnrichedText extends createBaseClass$1({ componentName: componentName$O, baseSelector: ':host > div' }) {
|
5742
6486
|
#origLinkRenderer;
|
5743
6487
|
|
5744
6488
|
#origEmRenderer;
|
@@ -5931,9 +6675,9 @@ const EnrichedTextClass = compose$1(
|
|
5931
6675
|
componentNameValidationMixin$1
|
5932
6676
|
)(EnrichedText);
|
5933
6677
|
|
5934
|
-
const componentName$
|
6678
|
+
const componentName$N = getComponentName$1('link');
|
5935
6679
|
|
5936
|
-
class RawLink extends createBaseClass$1({ componentName: componentName$
|
6680
|
+
class RawLink extends createBaseClass$1({ componentName: componentName$N, baseSelector: ':host a' }) {
|
5937
6681
|
constructor() {
|
5938
6682
|
super();
|
5939
6683
|
|
@@ -5997,32 +6741,32 @@ const LinkClass = compose$1(
|
|
5997
6741
|
componentNameValidationMixin$1
|
5998
6742
|
)(RawLink);
|
5999
6743
|
|
6000
|
-
const globalRefs$
|
6001
|
-
const vars$
|
6744
|
+
const globalRefs$t = getThemeRefs(globals$1);
|
6745
|
+
const vars$G = LinkClass.cssVarList;
|
6002
6746
|
|
6003
6747
|
const link$1 = {
|
6004
|
-
[vars$
|
6005
|
-
[vars$
|
6748
|
+
[vars$G.hostDirection]: globalRefs$t.direction,
|
6749
|
+
[vars$G.cursor]: 'pointer',
|
6006
6750
|
|
6007
|
-
[vars$
|
6751
|
+
[vars$G.textColor]: globalRefs$t.colors.primary.main,
|
6008
6752
|
|
6009
6753
|
textAlign: {
|
6010
|
-
right: { [vars$
|
6011
|
-
left: { [vars$
|
6012
|
-
center: { [vars$
|
6754
|
+
right: { [vars$G.textAlign]: 'right' },
|
6755
|
+
left: { [vars$G.textAlign]: 'left' },
|
6756
|
+
center: { [vars$G.textAlign]: 'center' },
|
6013
6757
|
},
|
6014
6758
|
|
6015
6759
|
_fullWidth: {
|
6016
|
-
[vars$
|
6760
|
+
[vars$G.hostWidth]: '100%',
|
6017
6761
|
},
|
6018
6762
|
|
6019
6763
|
_hover: {
|
6020
|
-
[vars$
|
6764
|
+
[vars$G.textDecoration]: 'underline',
|
6021
6765
|
},
|
6022
6766
|
|
6023
6767
|
mode: {
|
6024
6768
|
secondary: {
|
6025
|
-
[vars$
|
6769
|
+
[vars$G.textColor]: globalRefs$t.colors.secondary.main,
|
6026
6770
|
},
|
6027
6771
|
},
|
6028
6772
|
};
|
@@ -6030,37 +6774,37 @@ const link$1 = {
|
|
6030
6774
|
var link$2 = /*#__PURE__*/Object.freeze({
|
6031
6775
|
__proto__: null,
|
6032
6776
|
default: link$1,
|
6033
|
-
vars: vars$
|
6777
|
+
vars: vars$G
|
6034
6778
|
});
|
6035
6779
|
|
6036
|
-
const globalRefs$
|
6037
|
-
const vars$
|
6780
|
+
const globalRefs$s = getThemeRefs(globals$1);
|
6781
|
+
const vars$F = EnrichedTextClass.cssVarList;
|
6038
6782
|
|
6039
6783
|
const enrichedText = {
|
6040
|
-
[vars$
|
6041
|
-
[vars$
|
6784
|
+
[vars$F.hostDirection]: globalRefs$s.direction,
|
6785
|
+
[vars$F.hostWidth]: useVar(vars$H.hostWidth),
|
6042
6786
|
|
6043
|
-
[vars$
|
6044
|
-
[vars$
|
6045
|
-
[vars$
|
6787
|
+
[vars$F.textLineHeight]: useVar(vars$H.textLineHeight),
|
6788
|
+
[vars$F.textColor]: useVar(vars$H.textColor),
|
6789
|
+
[vars$F.textAlign]: useVar(vars$H.textAlign),
|
6046
6790
|
|
6047
|
-
[vars$
|
6048
|
-
[vars$
|
6049
|
-
[vars$
|
6791
|
+
[vars$F.fontSize]: useVar(vars$H.fontSize),
|
6792
|
+
[vars$F.fontWeight]: useVar(vars$H.fontWeight),
|
6793
|
+
[vars$F.fontFamily]: useVar(vars$H.fontFamily),
|
6050
6794
|
|
6051
|
-
[vars$
|
6052
|
-
[vars$
|
6053
|
-
[vars$
|
6795
|
+
[vars$F.linkColor]: useVar(vars$G.textColor),
|
6796
|
+
[vars$F.linkTextDecoration]: 'none',
|
6797
|
+
[vars$F.linkHoverTextDecoration]: 'underline',
|
6054
6798
|
|
6055
|
-
[vars$
|
6056
|
-
[vars$
|
6057
|
-
[vars$
|
6799
|
+
[vars$F.fontWeightBold]: '900',
|
6800
|
+
[vars$F.minWidth]: '0.25em',
|
6801
|
+
[vars$F.minHeight]: '1.35em',
|
6058
6802
|
|
6059
|
-
[vars$
|
6803
|
+
[vars$F.hostDisplay]: 'inline-block',
|
6060
6804
|
|
6061
6805
|
_empty: {
|
6062
6806
|
_hideWhenEmpty: {
|
6063
|
-
[vars$
|
6807
|
+
[vars$F.hostDisplay]: 'none',
|
6064
6808
|
},
|
6065
6809
|
},
|
6066
6810
|
};
|
@@ -6068,11 +6812,11 @@ const enrichedText = {
|
|
6068
6812
|
var enrichedText$1 = /*#__PURE__*/Object.freeze({
|
6069
6813
|
__proto__: null,
|
6070
6814
|
default: enrichedText,
|
6071
|
-
vars: vars$
|
6815
|
+
vars: vars$F
|
6072
6816
|
});
|
6073
6817
|
|
6074
|
-
const componentName$
|
6075
|
-
class RawDivider extends createBaseClass$1({ componentName: componentName$
|
6818
|
+
const componentName$M = getComponentName$1('divider');
|
6819
|
+
class RawDivider extends createBaseClass$1({ componentName: componentName$M, baseSelector: ':host > div' }) {
|
6076
6820
|
constructor() {
|
6077
6821
|
super();
|
6078
6822
|
|
@@ -6171,7 +6915,7 @@ const DividerClass = compose$1(
|
|
6171
6915
|
componentNameValidationMixin$1
|
6172
6916
|
)(RawDivider);
|
6173
6917
|
|
6174
|
-
const globalRefs$
|
6918
|
+
const globalRefs$r = getThemeRefs(globals$1);
|
6175
6919
|
const compVars$4 = DividerClass.cssVarList;
|
6176
6920
|
|
6177
6921
|
const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
|
@@ -6179,18 +6923,18 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
|
|
6179
6923
|
thickness: '2px',
|
6180
6924
|
spacing: '10px',
|
6181
6925
|
},
|
6182
|
-
componentName$
|
6926
|
+
componentName$M
|
6183
6927
|
);
|
6184
6928
|
|
6185
6929
|
const divider = {
|
6186
6930
|
...helperTheme$2,
|
6187
6931
|
|
6188
|
-
[compVars$4.hostDirection]: globalRefs$
|
6932
|
+
[compVars$4.hostDirection]: globalRefs$r.direction,
|
6189
6933
|
[compVars$4.alignItems]: 'center',
|
6190
6934
|
[compVars$4.flexDirection]: 'row',
|
6191
6935
|
[compVars$4.alignSelf]: 'stretch',
|
6192
6936
|
[compVars$4.hostWidth]: '100%',
|
6193
|
-
[compVars$4.stripeColor]: globalRefs$
|
6937
|
+
[compVars$4.stripeColor]: globalRefs$r.colors.surface.light,
|
6194
6938
|
[compVars$4.stripeColorOpacity]: '0.5',
|
6195
6939
|
[compVars$4.stripeHorizontalThickness]: helperRefs$2.thickness,
|
6196
6940
|
[compVars$4.labelTextWidth]: 'fit-content',
|
@@ -6210,7 +6954,7 @@ const divider = {
|
|
6210
6954
|
},
|
6211
6955
|
};
|
6212
6956
|
|
6213
|
-
const vars$
|
6957
|
+
const vars$E = {
|
6214
6958
|
...compVars$4,
|
6215
6959
|
...helperVars$2,
|
6216
6960
|
};
|
@@ -6218,18 +6962,18 @@ const vars$D = {
|
|
6218
6962
|
var divider$1 = /*#__PURE__*/Object.freeze({
|
6219
6963
|
__proto__: null,
|
6220
6964
|
default: divider,
|
6221
|
-
vars: vars$
|
6965
|
+
vars: vars$E
|
6222
6966
|
});
|
6223
6967
|
|
6224
6968
|
/* eslint-disable no-param-reassign */
|
6225
6969
|
|
6226
|
-
const componentName$
|
6970
|
+
const componentName$L = getComponentName$1('passcode-internal');
|
6227
6971
|
|
6228
|
-
createBaseInputClass({ componentName: componentName$
|
6972
|
+
createBaseInputClass({ componentName: componentName$L, baseSelector: 'div' });
|
6229
6973
|
|
6230
|
-
const componentName$
|
6974
|
+
const componentName$K = getComponentName$1('loader-radial');
|
6231
6975
|
|
6232
|
-
class RawLoaderRadial extends createBaseClass$1({ componentName: componentName$
|
6976
|
+
class RawLoaderRadial extends createBaseClass$1({ componentName: componentName$K, baseSelector: ':host > div' }) {
|
6233
6977
|
constructor() {
|
6234
6978
|
super();
|
6235
6979
|
|
@@ -6273,7 +7017,7 @@ const LoaderRadialClass = compose$1(
|
|
6273
7017
|
componentNameValidationMixin$1
|
6274
7018
|
)(RawLoaderRadial);
|
6275
7019
|
|
6276
|
-
const componentName$
|
7020
|
+
const componentName$J = getComponentName$1('passcode');
|
6277
7021
|
|
6278
7022
|
const observedAttributes$3 = ['digits'];
|
6279
7023
|
|
@@ -6292,18 +7036,18 @@ const customMixin$9 = (superclass) =>
|
|
6292
7036
|
const template = document.createElement('template');
|
6293
7037
|
|
6294
7038
|
template.innerHTML = `
|
6295
|
-
<${componentName$
|
7039
|
+
<${componentName$L}
|
6296
7040
|
bordered="true"
|
6297
7041
|
name="code"
|
6298
7042
|
tabindex="-1"
|
6299
7043
|
slot="input"
|
6300
7044
|
role="textbox"
|
6301
|
-
><slot></slot></${componentName$
|
7045
|
+
><slot></slot></${componentName$L}>
|
6302
7046
|
`;
|
6303
7047
|
|
6304
7048
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
6305
7049
|
|
6306
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
7050
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$L);
|
6307
7051
|
|
6308
7052
|
forwardAttrs$1(this, this.inputElement, { includeAttrs: ['digits', 'size', 'loading'] });
|
6309
7053
|
}
|
@@ -6377,11 +7121,11 @@ const PasscodeClass = compose$1(
|
|
6377
7121
|
},
|
6378
7122
|
}),
|
6379
7123
|
draggableMixin$1,
|
6380
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
7124
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
6381
7125
|
componentNameValidationMixin$1,
|
6382
7126
|
customMixin$9
|
6383
7127
|
)(
|
6384
|
-
createProxy({
|
7128
|
+
createProxy$1({
|
6385
7129
|
slots: [],
|
6386
7130
|
wrappedEleName: 'vaadin-text-field',
|
6387
7131
|
style: () => `
|
@@ -6460,63 +7204,63 @@ const PasscodeClass = compose$1(
|
|
6460
7204
|
${resetInputCursor('vaadin-text-field')}
|
6461
7205
|
`,
|
6462
7206
|
excludeAttrsSync: ['tabindex'],
|
6463
|
-
componentName: componentName$
|
7207
|
+
componentName: componentName$J,
|
6464
7208
|
})
|
6465
7209
|
);
|
6466
7210
|
|
6467
|
-
const vars$
|
7211
|
+
const vars$D = PasscodeClass.cssVarList;
|
6468
7212
|
|
6469
7213
|
const passcode = {
|
6470
|
-
[vars$
|
6471
|
-
[vars$
|
6472
|
-
[vars$
|
6473
|
-
[vars$
|
6474
|
-
[vars$
|
6475
|
-
[vars$
|
6476
|
-
[vars$
|
6477
|
-
[vars$
|
6478
|
-
[vars$
|
6479
|
-
[vars$
|
6480
|
-
[vars$
|
6481
|
-
[vars$
|
6482
|
-
[vars$
|
6483
|
-
[vars$
|
6484
|
-
[vars$
|
7214
|
+
[vars$D.hostDirection]: refs$1.direction,
|
7215
|
+
[vars$D.fontFamily]: refs$1.fontFamily,
|
7216
|
+
[vars$D.fontSize]: refs$1.fontSize,
|
7217
|
+
[vars$D.labelTextColor]: refs$1.labelTextColor,
|
7218
|
+
[vars$D.labelRequiredIndicator]: refs$1.requiredIndicator,
|
7219
|
+
[vars$D.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
7220
|
+
[vars$D.digitValueTextColor]: refs$1.valueTextColor,
|
7221
|
+
[vars$D.digitPadding]: '0',
|
7222
|
+
[vars$D.digitTextAlign]: 'center',
|
7223
|
+
[vars$D.digitSpacing]: '4px',
|
7224
|
+
[vars$D.hostWidth]: refs$1.width,
|
7225
|
+
[vars$D.digitOutlineColor]: 'transparent',
|
7226
|
+
[vars$D.digitOutlineWidth]: refs$1.outlineWidth,
|
7227
|
+
[vars$D.focusedDigitFieldOutlineColor]: refs$1.outlineColor,
|
7228
|
+
[vars$D.digitSize]: refs$1.inputHeight,
|
6485
7229
|
|
6486
7230
|
// error message icon
|
6487
|
-
[vars$
|
6488
|
-
[vars$
|
6489
|
-
[vars$
|
6490
|
-
[vars$
|
6491
|
-
[vars$
|
7231
|
+
[vars$D.errorMessageIcon]: refs$1.errorMessageIcon,
|
7232
|
+
[vars$D.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
7233
|
+
[vars$D.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
7234
|
+
[vars$D.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
7235
|
+
[vars$D.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
6492
7236
|
|
6493
7237
|
size: {
|
6494
|
-
xs: { [vars$
|
6495
|
-
sm: { [vars$
|
6496
|
-
md: { [vars$
|
6497
|
-
lg: { [vars$
|
7238
|
+
xs: { [vars$D.spinnerSize]: '15px' },
|
7239
|
+
sm: { [vars$D.spinnerSize]: '20px' },
|
7240
|
+
md: { [vars$D.spinnerSize]: '20px' },
|
7241
|
+
lg: { [vars$D.spinnerSize]: '20px' },
|
6498
7242
|
},
|
6499
7243
|
|
6500
7244
|
_hideCursor: {
|
6501
|
-
[vars$
|
7245
|
+
[vars$D.digitCaretTextColor]: 'transparent',
|
6502
7246
|
},
|
6503
7247
|
|
6504
7248
|
_loading: {
|
6505
|
-
[vars$
|
7249
|
+
[vars$D.overlayOpacity]: refs$1.overlayOpacity,
|
6506
7250
|
},
|
6507
7251
|
};
|
6508
7252
|
|
6509
7253
|
var passcode$1 = /*#__PURE__*/Object.freeze({
|
6510
7254
|
__proto__: null,
|
6511
7255
|
default: passcode,
|
6512
|
-
vars: vars$
|
7256
|
+
vars: vars$D
|
6513
7257
|
});
|
6514
7258
|
|
6515
|
-
const componentName$
|
7259
|
+
const componentName$I = getComponentName$1('loader-linear');
|
6516
7260
|
|
6517
|
-
class RawLoaderLinear extends createBaseClass$1({ componentName: componentName$
|
7261
|
+
class RawLoaderLinear extends createBaseClass$1({ componentName: componentName$I, baseSelector: ':host > div' }) {
|
6518
7262
|
static get componentName() {
|
6519
|
-
return componentName$
|
7263
|
+
return componentName$I;
|
6520
7264
|
}
|
6521
7265
|
|
6522
7266
|
constructor() {
|
@@ -6577,67 +7321,67 @@ const LoaderLinearClass = compose$1(
|
|
6577
7321
|
componentNameValidationMixin$1
|
6578
7322
|
)(RawLoaderLinear);
|
6579
7323
|
|
6580
|
-
const globalRefs$
|
6581
|
-
const vars$
|
7324
|
+
const globalRefs$q = getThemeRefs(globals$1);
|
7325
|
+
const vars$C = LoaderLinearClass.cssVarList;
|
6582
7326
|
|
6583
7327
|
const loaderLinear = {
|
6584
|
-
[vars$
|
6585
|
-
[vars$
|
7328
|
+
[vars$C.hostDisplay]: 'inline-block',
|
7329
|
+
[vars$C.hostWidth]: '100%',
|
6586
7330
|
|
6587
|
-
[vars$
|
6588
|
-
[vars$
|
7331
|
+
[vars$C.barColor]: globalRefs$q.colors.surface.contrast,
|
7332
|
+
[vars$C.barWidth]: '20%',
|
6589
7333
|
|
6590
|
-
[vars$
|
6591
|
-
[vars$
|
7334
|
+
[vars$C.barBackgroundColor]: globalRefs$q.colors.surface.light,
|
7335
|
+
[vars$C.barBorderRadius]: '4px',
|
6592
7336
|
|
6593
|
-
[vars$
|
6594
|
-
[vars$
|
6595
|
-
[vars$
|
6596
|
-
[vars$
|
7337
|
+
[vars$C.animationDuration]: '2s',
|
7338
|
+
[vars$C.animationTimingFunction]: 'linear',
|
7339
|
+
[vars$C.animationIterationCount]: 'infinite',
|
7340
|
+
[vars$C.verticalPadding]: '0.25em',
|
6597
7341
|
|
6598
7342
|
size: {
|
6599
|
-
xs: { [vars$
|
6600
|
-
sm: { [vars$
|
6601
|
-
md: { [vars$
|
6602
|
-
lg: { [vars$
|
7343
|
+
xs: { [vars$C.barHeight]: '2px' },
|
7344
|
+
sm: { [vars$C.barHeight]: '4px' },
|
7345
|
+
md: { [vars$C.barHeight]: '6px' },
|
7346
|
+
lg: { [vars$C.barHeight]: '8px' },
|
6603
7347
|
},
|
6604
7348
|
|
6605
7349
|
mode: {
|
6606
7350
|
primary: {
|
6607
|
-
[vars$
|
7351
|
+
[vars$C.barColor]: globalRefs$q.colors.primary.main,
|
6608
7352
|
},
|
6609
7353
|
secondary: {
|
6610
|
-
[vars$
|
7354
|
+
[vars$C.barColor]: globalRefs$q.colors.secondary.main,
|
6611
7355
|
},
|
6612
7356
|
},
|
6613
7357
|
|
6614
7358
|
_hidden: {
|
6615
|
-
[vars$
|
7359
|
+
[vars$C.hostDisplay]: 'none',
|
6616
7360
|
},
|
6617
7361
|
};
|
6618
7362
|
|
6619
7363
|
var loaderLinear$1 = /*#__PURE__*/Object.freeze({
|
6620
7364
|
__proto__: null,
|
6621
7365
|
default: loaderLinear,
|
6622
|
-
vars: vars$
|
7366
|
+
vars: vars$C
|
6623
7367
|
});
|
6624
7368
|
|
6625
|
-
const globalRefs$
|
7369
|
+
const globalRefs$p = getThemeRefs(globals$1);
|
6626
7370
|
const compVars$3 = LoaderRadialClass.cssVarList;
|
6627
7371
|
|
6628
7372
|
const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
6629
7373
|
{
|
6630
|
-
spinnerColor: globalRefs$
|
7374
|
+
spinnerColor: globalRefs$p.colors.surface.contrast,
|
6631
7375
|
mode: {
|
6632
7376
|
primary: {
|
6633
|
-
spinnerColor: globalRefs$
|
7377
|
+
spinnerColor: globalRefs$p.colors.primary.main,
|
6634
7378
|
},
|
6635
7379
|
secondary: {
|
6636
|
-
spinnerColor: globalRefs$
|
7380
|
+
spinnerColor: globalRefs$p.colors.secondary.main,
|
6637
7381
|
},
|
6638
7382
|
},
|
6639
7383
|
},
|
6640
|
-
componentName$
|
7384
|
+
componentName$K
|
6641
7385
|
);
|
6642
7386
|
|
6643
7387
|
const loaderRadial = {
|
@@ -6666,7 +7410,7 @@ const loaderRadial = {
|
|
6666
7410
|
[compVars$3.hostDisplay]: 'none',
|
6667
7411
|
},
|
6668
7412
|
};
|
6669
|
-
const vars$
|
7413
|
+
const vars$B = {
|
6670
7414
|
...compVars$3,
|
6671
7415
|
...helperVars$1,
|
6672
7416
|
};
|
@@ -6674,10 +7418,10 @@ const vars$A = {
|
|
6674
7418
|
var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
6675
7419
|
__proto__: null,
|
6676
7420
|
default: loaderRadial,
|
6677
|
-
vars: vars$
|
7421
|
+
vars: vars$B
|
6678
7422
|
});
|
6679
7423
|
|
6680
|
-
const componentName$
|
7424
|
+
const componentName$H = getComponentName('combo-box');
|
6681
7425
|
|
6682
7426
|
const ComboBoxMixin = (superclass) =>
|
6683
7427
|
class ComboBoxMixinClass extends superclass {
|
@@ -6687,7 +7431,9 @@ const ComboBoxMixin = (superclass) =>
|
|
6687
7431
|
|
6688
7432
|
// eslint-disable-next-line class-methods-use-this
|
6689
7433
|
#renderItem = ({ displayName, value, label }) => {
|
6690
|
-
return `<span data-name="${label}" data-id="${value}">${
|
7434
|
+
return `<span data-name="${label}" data-id="${value}">${
|
7435
|
+
displayName || label
|
7436
|
+
}</span>`;
|
6691
7437
|
};
|
6692
7438
|
|
6693
7439
|
#data;
|
@@ -6735,7 +7481,10 @@ const ComboBoxMixin = (superclass) =>
|
|
6735
7481
|
}
|
6736
7482
|
} catch (e) {
|
6737
7483
|
// eslint-disable-next-line no-console
|
6738
|
-
console.error(
|
7484
|
+
console.error(
|
7485
|
+
'could not parse data string from attribute "data" -',
|
7486
|
+
e.message,
|
7487
|
+
);
|
6739
7488
|
}
|
6740
7489
|
}
|
6741
7490
|
|
@@ -6761,7 +7510,10 @@ const ComboBoxMixin = (superclass) =>
|
|
6761
7510
|
}
|
6762
7511
|
|
6763
7512
|
getItemsTemplate() {
|
6764
|
-
return this.data?.reduce?.(
|
7513
|
+
return this.data?.reduce?.(
|
7514
|
+
(acc, item) => acc + (this.renderItem?.(item || {}) || ''),
|
7515
|
+
'',
|
7516
|
+
);
|
6765
7517
|
}
|
6766
7518
|
|
6767
7519
|
renderItems() {
|
@@ -6802,7 +7554,7 @@ const ComboBoxMixin = (superclass) =>
|
|
6802
7554
|
setComboBoxDescriptor() {
|
6803
7555
|
const valueDescriptor = Object.getOwnPropertyDescriptor(
|
6804
7556
|
this.inputElement.constructor.prototype,
|
6805
|
-
'value'
|
7557
|
+
'value',
|
6806
7558
|
);
|
6807
7559
|
|
6808
7560
|
const comboBox = this;
|
@@ -6811,7 +7563,10 @@ const ComboBoxMixin = (superclass) =>
|
|
6811
7563
|
value: {
|
6812
7564
|
...valueDescriptor,
|
6813
7565
|
set(val) {
|
6814
|
-
if (
|
7566
|
+
if (
|
7567
|
+
!comboBox.baseElement.items?.length &&
|
7568
|
+
!comboBox.allowCustomValue
|
7569
|
+
) {
|
6815
7570
|
return;
|
6816
7571
|
}
|
6817
7572
|
|
@@ -6858,7 +7613,9 @@ const ComboBoxMixin = (superclass) =>
|
|
6858
7613
|
// we do not want that because it's difficult to style the overlay in this way
|
6859
7614
|
// so we override it to open inside the shadow DOM
|
6860
7615
|
#overrideOverlaySettings() {
|
6861
|
-
const overlay = this.baseElement.shadowRoot.querySelector(
|
7616
|
+
const overlay = this.baseElement.shadowRoot.querySelector(
|
7617
|
+
'vaadin-combo-box-overlay',
|
7618
|
+
);
|
6862
7619
|
overlay._attachOverlay = () => {
|
6863
7620
|
overlay.bringToFront();
|
6864
7621
|
};
|
@@ -6894,13 +7651,17 @@ const ComboBoxMixin = (superclass) =>
|
|
6894
7651
|
this.#overrideRenderer();
|
6895
7652
|
|
6896
7653
|
// Set up observers - order matters here since renderItems can clear innerHTML
|
6897
|
-
observeAttributes
|
6898
|
-
|
7654
|
+
observeAttributes(this, this.renderItems.bind(this), {
|
7655
|
+
includeAttrs: ['data'],
|
7656
|
+
});
|
7657
|
+
observeChildren(this, this.#onChildrenChange.bind(this));
|
6899
7658
|
|
6900
7659
|
this.setDefaultValue();
|
6901
7660
|
|
6902
7661
|
this.baseElement.addEventListener('selected-item-changed', () => {
|
6903
|
-
this.dispatchEvent(
|
7662
|
+
this.dispatchEvent(
|
7663
|
+
new Event('input', { bubbles: true, composed: true }),
|
7664
|
+
);
|
6904
7665
|
});
|
6905
7666
|
}
|
6906
7667
|
|
@@ -6947,7 +7708,7 @@ const ComboBoxMixin = (superclass) =>
|
|
6947
7708
|
(e) => {
|
6948
7709
|
e.stopImmediatePropagation();
|
6949
7710
|
},
|
6950
|
-
{ once: true, capture: true }
|
7711
|
+
{ once: true, capture: true },
|
6951
7712
|
);
|
6952
7713
|
}
|
6953
7714
|
}
|
@@ -6994,13 +7755,15 @@ const {
|
|
6994
7755
|
toggle: { selector: '::part(toggle-button)' },
|
6995
7756
|
clearButton: { selector: '::part(clear-button)' },
|
6996
7757
|
label: { selector: '::part(label)' },
|
6997
|
-
requiredIndicator: {
|
7758
|
+
requiredIndicator: {
|
7759
|
+
selector: '[required]::part(required-indicator)::after',
|
7760
|
+
},
|
6998
7761
|
helperText: { selector: '::part(helper-text)' },
|
6999
7762
|
errorMessage: { selector: '::part(error-message)' },
|
7000
7763
|
};
|
7001
7764
|
|
7002
|
-
const ComboBoxClass = compose
|
7003
|
-
createStyleMixin
|
7765
|
+
const ComboBoxClass = compose(
|
7766
|
+
createStyleMixin({
|
7004
7767
|
mappings: {
|
7005
7768
|
hostWidth: { ...host$e, property: 'width' },
|
7006
7769
|
hostDirection: { ...host$e, property: 'direction' },
|
@@ -7016,9 +7779,18 @@ const ComboBoxClass = compose$1(
|
|
7016
7779
|
errorMessageTextColor: { ...errorMessage$7, property: 'color' },
|
7017
7780
|
errorMessageIcon: { ...errorMessage$7, property: 'background-image' },
|
7018
7781
|
errorMessageIconSize: { ...errorMessage$7, property: 'background-size' },
|
7019
|
-
errorMessageIconPadding: {
|
7020
|
-
|
7021
|
-
|
7782
|
+
errorMessageIconPadding: {
|
7783
|
+
...errorMessage$7,
|
7784
|
+
property: 'padding-inline-start',
|
7785
|
+
},
|
7786
|
+
errorMessageIconRepeat: {
|
7787
|
+
...errorMessage$7,
|
7788
|
+
property: 'background-repeat',
|
7789
|
+
},
|
7790
|
+
errorMessageIconPosition: {
|
7791
|
+
...errorMessage$7,
|
7792
|
+
property: 'background-position',
|
7793
|
+
},
|
7022
7794
|
inputHeight: { ...inputField$3, property: 'height' },
|
7023
7795
|
inputBackgroundColor: { ...inputField$3, property: 'background-color' },
|
7024
7796
|
inputBorderColor: { ...inputField$3, property: 'border-color' },
|
@@ -7071,15 +7843,27 @@ const ComboBoxClass = compose$1(
|
|
7071
7843
|
// so we need to use an arrow function on the selector
|
7072
7844
|
// for that to work, because ComboBox is not available
|
7073
7845
|
// at this time.
|
7074
|
-
overlayBackground: {
|
7846
|
+
overlayBackground: {
|
7847
|
+
property: () => ComboBoxClass.cssVarList.overlay.backgroundColor,
|
7848
|
+
},
|
7075
7849
|
overlayTextColor: {
|
7076
7850
|
property: () => ComboBoxClass.cssVarList.overlay.textColor,
|
7077
7851
|
},
|
7078
|
-
overlayBorder: {
|
7079
|
-
|
7080
|
-
|
7081
|
-
|
7082
|
-
|
7852
|
+
overlayBorder: {
|
7853
|
+
property: () => ComboBoxClass.cssVarList.overlay.border,
|
7854
|
+
},
|
7855
|
+
overlayFontSize: {
|
7856
|
+
property: () => ComboBoxClass.cssVarList.overlay.fontSize,
|
7857
|
+
},
|
7858
|
+
overlayFontFamily: {
|
7859
|
+
property: () => ComboBoxClass.cssVarList.overlay.fontFamily,
|
7860
|
+
},
|
7861
|
+
overlayCursor: {
|
7862
|
+
property: () => ComboBoxClass.cssVarList.overlay.cursor,
|
7863
|
+
},
|
7864
|
+
overlayItemBoxShadow: {
|
7865
|
+
property: () => ComboBoxClass.cssVarList.overlay.itemBoxShadow,
|
7866
|
+
},
|
7083
7867
|
overlayItemPaddingInlineStart: {
|
7084
7868
|
property: () => ComboBoxClass.cssVarList.overlay.itemPaddingInlineStart,
|
7085
7869
|
},
|
@@ -7088,7 +7872,7 @@ const ComboBoxClass = compose$1(
|
|
7088
7872
|
},
|
7089
7873
|
},
|
7090
7874
|
}),
|
7091
|
-
draggableMixin
|
7875
|
+
draggableMixin,
|
7092
7876
|
portalMixin({
|
7093
7877
|
name: 'overlay',
|
7094
7878
|
selector: '',
|
@@ -7103,20 +7887,47 @@ const ComboBoxClass = compose$1(
|
|
7103
7887
|
fontFamily: { selector: 'vaadin-combo-box-item' },
|
7104
7888
|
textColor: { selector: 'vaadin-combo-box-item', property: 'color' },
|
7105
7889
|
fontSize: { selector: 'vaadin-combo-box-item' },
|
7106
|
-
itemBoxShadow: {
|
7890
|
+
itemBoxShadow: {
|
7891
|
+
selector: 'vaadin-combo-box-item',
|
7892
|
+
property: 'box-shadow',
|
7893
|
+
},
|
7107
7894
|
itemPaddingInlineStart: {
|
7108
7895
|
selector: 'vaadin-combo-box-item',
|
7109
7896
|
property: 'padding-inline-start',
|
7110
7897
|
},
|
7111
|
-
itemPaddingInlineEnd: {
|
7112
|
-
|
7113
|
-
|
7114
|
-
|
7115
|
-
|
7116
|
-
|
7117
|
-
|
7118
|
-
|
7119
|
-
|
7898
|
+
itemPaddingInlineEnd: {
|
7899
|
+
selector: 'vaadin-combo-box-item',
|
7900
|
+
property: 'padding-inline-end',
|
7901
|
+
},
|
7902
|
+
|
7903
|
+
loaderTop: {
|
7904
|
+
selector: 'vaadin-combo-box-overlay::part(loader)',
|
7905
|
+
property: 'top',
|
7906
|
+
},
|
7907
|
+
loaderLeft: {
|
7908
|
+
selector: 'vaadin-combo-box-overlay::part(loader)',
|
7909
|
+
property: 'left',
|
7910
|
+
},
|
7911
|
+
loaderRight: {
|
7912
|
+
selector: 'vaadin-combo-box-overlay::part(loader)',
|
7913
|
+
property: 'right',
|
7914
|
+
},
|
7915
|
+
loaderMargin: {
|
7916
|
+
selector: 'vaadin-combo-box-overlay::part(loader)',
|
7917
|
+
property: 'margin',
|
7918
|
+
},
|
7919
|
+
loaderWidth: {
|
7920
|
+
selector: 'vaadin-combo-box-overlay::part(loader)',
|
7921
|
+
property: 'width',
|
7922
|
+
},
|
7923
|
+
loaderHeight: {
|
7924
|
+
selector: 'vaadin-combo-box-overlay::part(loader)',
|
7925
|
+
property: 'height',
|
7926
|
+
},
|
7927
|
+
loaderBorder: {
|
7928
|
+
selector: 'vaadin-combo-box-overlay::part(loader)',
|
7929
|
+
property: 'border',
|
7930
|
+
},
|
7120
7931
|
loaderBorderColor: {
|
7121
7932
|
selector: 'vaadin-combo-box-overlay::part(loader)',
|
7122
7933
|
property: 'border-color',
|
@@ -7125,17 +7936,26 @@ const ComboBoxClass = compose$1(
|
|
7125
7936
|
selector: 'vaadin-combo-box-overlay::part(loader)',
|
7126
7937
|
property: 'border-radius',
|
7127
7938
|
},
|
7128
|
-
contentHeight: {
|
7129
|
-
|
7939
|
+
contentHeight: {
|
7940
|
+
selector: 'vaadin-combo-box-overlay::part(content)',
|
7941
|
+
property: 'height',
|
7942
|
+
},
|
7943
|
+
contentOpacity: {
|
7944
|
+
selector: 'vaadin-combo-box-overlay::part(content)',
|
7945
|
+
property: 'opacity',
|
7946
|
+
},
|
7130
7947
|
},
|
7131
7948
|
forward: {
|
7132
7949
|
include: false,
|
7133
7950
|
attributes: ['size'],
|
7134
7951
|
},
|
7135
7952
|
}),
|
7136
|
-
composedProxyInputMixin({
|
7137
|
-
|
7138
|
-
|
7953
|
+
composedProxyInputMixin({
|
7954
|
+
proxyProps: ['selectionStart'],
|
7955
|
+
inputEvent: 'selected-item-changed',
|
7956
|
+
}),
|
7957
|
+
componentNameValidationMixin,
|
7958
|
+
ComboBoxMixin,
|
7139
7959
|
)(
|
7140
7960
|
createProxy({
|
7141
7961
|
slots: ['', 'prefix'],
|
@@ -7146,10 +7966,10 @@ const ComboBoxClass = compose$1(
|
|
7146
7966
|
box-sizing: border-box;
|
7147
7967
|
-webkit-mask-image: none;
|
7148
7968
|
}
|
7149
|
-
${useHostExternalPadding(ComboBoxClass.cssVarList)}
|
7150
|
-
${resetInputReadonlyStyle('vaadin-combo-box')}
|
7151
|
-
${resetInputPlaceholder('vaadin-combo-box')}
|
7152
|
-
${resetInputCursor('vaadin-combo-box')}
|
7969
|
+
${useHostExternalPadding$1(ComboBoxClass.cssVarList)}
|
7970
|
+
${resetInputReadonlyStyle$1('vaadin-combo-box')}
|
7971
|
+
${resetInputPlaceholder$1('vaadin-combo-box')}
|
7972
|
+
${resetInputCursor$1('vaadin-combo-box')}
|
7153
7973
|
|
7154
7974
|
vaadin-combo-box {
|
7155
7975
|
padding: 0;
|
@@ -7185,20 +8005,144 @@ const ComboBoxClass = compose$1(
|
|
7185
8005
|
opacity: 0;
|
7186
8006
|
}
|
7187
8007
|
|
7188
|
-
${resetInputLabelPosition('vaadin-combo-box')}
|
7189
|
-
${inputFloatingLabelStyle()}
|
8008
|
+
${resetInputLabelPosition$1('vaadin-combo-box')}
|
8009
|
+
${inputFloatingLabelStyle$1()}
|
7190
8010
|
`,
|
7191
8011
|
// Note: we exclude `size` to avoid overriding Vaadin's ComboBox property
|
7192
8012
|
// with the same name. Including it will cause Vaadin to calculate NaN size,
|
7193
8013
|
// and reset items to an empty array, and opening the list box with no items
|
7194
8014
|
// to display.
|
7195
8015
|
excludeAttrsSync: ['tabindex', 'size', 'data', 'loading'],
|
7196
|
-
componentName: componentName$
|
8016
|
+
componentName: componentName$H,
|
7197
8017
|
includeForwardProps: ['items', 'renderer', 'selectedItem'],
|
7198
|
-
})
|
8018
|
+
}),
|
8019
|
+
);
|
8020
|
+
|
8021
|
+
const componentName$G = getComponentName('input-wrapper');
|
8022
|
+
const globalRefs$o = getThemeRefs$1(globals);
|
8023
|
+
|
8024
|
+
const [theme$1, refs, vars$A] = createHelperVars$1(
|
8025
|
+
{
|
8026
|
+
labelTextColor: globalRefs$o.colors.surface.dark,
|
8027
|
+
labelFontSize: '14px', // not taken from globals as it is fixed in all inputs
|
8028
|
+
labelFontWeight: '500', // not taken from globals as it is fixed in all inputs
|
8029
|
+
valueTextColor: globalRefs$o.colors.surface.contrast,
|
8030
|
+
placeholderTextColor: globalRefs$o.colors.surface.dark,
|
8031
|
+
requiredIndicator: "'*'",
|
8032
|
+
helperTextColor: globalRefs$o.colors.surface.dark,
|
8033
|
+
errorMessageTextColor: globalRefs$o.colors.error.main,
|
8034
|
+
successMessageTextColor: globalRefs$o.colors.success.main,
|
8035
|
+
|
8036
|
+
borderWidth: globalRefs$o.border.xs,
|
8037
|
+
borderRadius: globalRefs$o.radius.xs,
|
8038
|
+
borderColor: 'transparent',
|
8039
|
+
|
8040
|
+
outlineWidth: globalRefs$o.border.sm,
|
8041
|
+
outlineStyle: 'solid',
|
8042
|
+
outlineColor: 'transparent',
|
8043
|
+
outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
|
8044
|
+
|
8045
|
+
minWidth: '10em',
|
8046
|
+
toggleButtonSize: '1.5em',
|
8047
|
+
inputIconSize: '1em',
|
8048
|
+
inputHeight: '3em',
|
8049
|
+
horizontalPadding: '0.5em',
|
8050
|
+
verticalPadding: '0.5em',
|
8051
|
+
|
8052
|
+
textAlign: 'start',
|
8053
|
+
|
8054
|
+
backgroundColor: globalRefs$o.colors.surface.main,
|
8055
|
+
|
8056
|
+
fontFamily: globalRefs$o.fonts.font1.family,
|
8057
|
+
|
8058
|
+
direction: globalRefs$o.direction,
|
8059
|
+
|
8060
|
+
overlayOpacity: '0.3',
|
8061
|
+
|
8062
|
+
errorMessageIcon: '',
|
8063
|
+
errorMessageIconSize: '0',
|
8064
|
+
errorMessageIconPadding: '0',
|
8065
|
+
errorMessageIconPosition: '0 0.4em',
|
8066
|
+
errorMessageIconRepeat: 'no-repeat',
|
8067
|
+
|
8068
|
+
size: {
|
8069
|
+
xs: { fontSize: '12px', chipFontSize: '10px' },
|
8070
|
+
sm: { fontSize: '14px', chipFontSize: '12px' },
|
8071
|
+
md: { fontSize: '16px', chipFontSize: '14px' },
|
8072
|
+
lg: { fontSize: '18px', chipFontSize: '16px' },
|
8073
|
+
},
|
8074
|
+
|
8075
|
+
labelType: {
|
8076
|
+
static: {
|
8077
|
+
valueInputHeight: '3em',
|
8078
|
+
valueInputMarginBottom: 'auto',
|
8079
|
+
},
|
8080
|
+
floating: {
|
8081
|
+
labelPosition: 'absolute',
|
8082
|
+
labelTopPosition: '0',
|
8083
|
+
labelHorizontalPosition: '0.9em',
|
8084
|
+
labelFontSize: '1em',
|
8085
|
+
placeholderOpacity: 0,
|
8086
|
+
inputHeight: '3.5em',
|
8087
|
+
inputVerticalAlignment: 'flex-end',
|
8088
|
+
inputTransformY: 'translateY(1.55em)',
|
8089
|
+
inputTransition: 'all 75ms ease-in-out',
|
8090
|
+
marginInlineStart: '0',
|
8091
|
+
valueInputHeight: '1.5702em',
|
8092
|
+
valueInputMarginBottom: '0.5em',
|
8093
|
+
|
8094
|
+
_focused: {
|
8095
|
+
labelFontSize: '0.75em',
|
8096
|
+
inputTransformY: 'translateY(1.05em)',
|
8097
|
+
labelFontWeight: '400',
|
8098
|
+
placeholderOpacity: 1,
|
8099
|
+
},
|
8100
|
+
|
8101
|
+
_readOnly: {
|
8102
|
+
placeholderOpacity: 0,
|
8103
|
+
},
|
8104
|
+
|
8105
|
+
_hasValue: {
|
8106
|
+
inputTransformY: 'translateY(1.05em)',
|
8107
|
+
labelFontSize: '0.75em',
|
8108
|
+
labelFontWeight: '400',
|
8109
|
+
},
|
8110
|
+
},
|
8111
|
+
},
|
8112
|
+
|
8113
|
+
_fullWidth: {
|
8114
|
+
width: '100%',
|
8115
|
+
},
|
8116
|
+
|
8117
|
+
_focused: {
|
8118
|
+
outlineColor: globalRefs$o.colors.surface.light,
|
8119
|
+
_invalid: {
|
8120
|
+
outlineColor: globalRefs$o.colors.error.main,
|
8121
|
+
},
|
8122
|
+
},
|
8123
|
+
|
8124
|
+
_bordered: {
|
8125
|
+
outlineWidth: globalRefs$o.border.xs,
|
8126
|
+
borderColor: globalRefs$o.colors.surface.light,
|
8127
|
+
borderStyle: 'solid',
|
8128
|
+
_invalid: {
|
8129
|
+
borderColor: globalRefs$o.colors.error.main,
|
8130
|
+
},
|
8131
|
+
},
|
8132
|
+
|
8133
|
+
_disabled: {
|
8134
|
+
labelTextColor: globalRefs$o.colors.surface.light,
|
8135
|
+
borderColor: globalRefs$o.colors.surface.light,
|
8136
|
+
valueTextColor: globalRefs$o.colors.surface.light,
|
8137
|
+
placeholderTextColor: globalRefs$o.colors.surface.light,
|
8138
|
+
helperTextColor: globalRefs$o.colors.surface.light,
|
8139
|
+
backgroundColor: globalRefs$o.colors.surface.main,
|
8140
|
+
},
|
8141
|
+
},
|
8142
|
+
componentName$G,
|
7199
8143
|
);
|
7200
8144
|
|
7201
|
-
const globalRefs$n = getThemeRefs(globals
|
8145
|
+
const globalRefs$n = getThemeRefs$1(globals);
|
7202
8146
|
const vars$z = ComboBoxClass.cssVarList;
|
7203
8147
|
|
7204
8148
|
const comboBox = {
|
@@ -7276,8 +8220,8 @@ const comboBox = {
|
|
7276
8220
|
[vars$z.overlay.loaderWidth]: '30px',
|
7277
8221
|
[vars$z.overlay.loaderHeight]: '30px',
|
7278
8222
|
[vars$z.overlay.loaderBorder]: '2px solid transparent',
|
7279
|
-
[vars$z.overlay
|
7280
|
-
`${globalRefs$n.colors.primary.highlight} ${globalRefs$n.colors.primary.highlight} ${globalRefs$n.colors.primary.main} ${globalRefs$n.colors.primary.main}`,
|
8223
|
+
[vars$z.overlay
|
8224
|
+
.loaderBorderColor]: `${globalRefs$n.colors.primary.highlight} ${globalRefs$n.colors.primary.highlight} ${globalRefs$n.colors.primary.main} ${globalRefs$n.colors.primary.main}`,
|
7281
8225
|
[vars$z.overlay.loaderBorderRadius]: '50%',
|
7282
8226
|
[vars$z.overlay.contentHeight]: '100px',
|
7283
8227
|
[vars$z.overlay.contentOpacity]: '0',
|
@@ -8757,10 +9701,10 @@ const PhoneFieldClass = compose$1(
|
|
8757
9701
|
},
|
8758
9702
|
}),
|
8759
9703
|
draggableMixin$1,
|
8760
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
9704
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
8761
9705
|
customMixin$8
|
8762
9706
|
)(
|
8763
|
-
createProxy({
|
9707
|
+
createProxy$1({
|
8764
9708
|
slots: [],
|
8765
9709
|
wrappedEleName: 'vaadin-text-field',
|
8766
9710
|
style: () => `
|
@@ -8865,36 +9809,36 @@ const PhoneFieldClass = compose$1(
|
|
8865
9809
|
const vars$x = PhoneFieldClass.cssVarList;
|
8866
9810
|
|
8867
9811
|
const phoneField = {
|
8868
|
-
[vars$x.hostWidth]: refs.width,
|
8869
|
-
[vars$x.hostDirection]: refs.direction,
|
8870
|
-
[vars$x.fontSize]: refs.fontSize,
|
8871
|
-
[vars$x.fontFamily]: refs.fontFamily,
|
8872
|
-
[vars$x.labelTextColor]: refs.labelTextColor,
|
8873
|
-
[vars$x.labelRequiredIndicator]: refs.requiredIndicator,
|
8874
|
-
[vars$x.errorMessageTextColor]: refs.errorMessageTextColor,
|
8875
|
-
[vars$x.inputValueTextColor]: refs.valueTextColor,
|
8876
|
-
[vars$x.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
8877
|
-
[vars$x.inputBorderStyle]: refs.borderStyle,
|
8878
|
-
[vars$x.inputBorderWidth]: refs.borderWidth,
|
8879
|
-
[vars$x.inputBorderColor]: refs.borderColor,
|
8880
|
-
[vars$x.inputBorderRadius]: refs.borderRadius,
|
8881
|
-
[vars$x.inputOutlineStyle]: refs.outlineStyle,
|
8882
|
-
[vars$x.inputOutlineWidth]: refs.outlineWidth,
|
8883
|
-
[vars$x.inputOutlineColor]: refs.outlineColor,
|
8884
|
-
[vars$x.inputOutlineOffset]: refs.outlineOffset,
|
8885
|
-
[vars$x.phoneInputWidth]: refs.minWidth,
|
9812
|
+
[vars$x.hostWidth]: refs$1.width,
|
9813
|
+
[vars$x.hostDirection]: refs$1.direction,
|
9814
|
+
[vars$x.fontSize]: refs$1.fontSize,
|
9815
|
+
[vars$x.fontFamily]: refs$1.fontFamily,
|
9816
|
+
[vars$x.labelTextColor]: refs$1.labelTextColor,
|
9817
|
+
[vars$x.labelRequiredIndicator]: refs$1.requiredIndicator,
|
9818
|
+
[vars$x.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
9819
|
+
[vars$x.inputValueTextColor]: refs$1.valueTextColor,
|
9820
|
+
[vars$x.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
|
9821
|
+
[vars$x.inputBorderStyle]: refs$1.borderStyle,
|
9822
|
+
[vars$x.inputBorderWidth]: refs$1.borderWidth,
|
9823
|
+
[vars$x.inputBorderColor]: refs$1.borderColor,
|
9824
|
+
[vars$x.inputBorderRadius]: refs$1.borderRadius,
|
9825
|
+
[vars$x.inputOutlineStyle]: refs$1.outlineStyle,
|
9826
|
+
[vars$x.inputOutlineWidth]: refs$1.outlineWidth,
|
9827
|
+
[vars$x.inputOutlineColor]: refs$1.outlineColor,
|
9828
|
+
[vars$x.inputOutlineOffset]: refs$1.outlineOffset,
|
9829
|
+
[vars$x.phoneInputWidth]: refs$1.minWidth,
|
8886
9830
|
[vars$x.countryCodeInputWidth]: '5em',
|
8887
9831
|
[vars$x.countryCodeDropdownWidth]: '20em',
|
8888
9832
|
[vars$x.marginInlineStart]: '-0.25em',
|
8889
|
-
[vars$x.valueInputHeight]: refs.valueInputHeight,
|
8890
|
-
[vars$x.valueInputMarginBottom]: refs.valueInputMarginBottom,
|
9833
|
+
[vars$x.valueInputHeight]: refs$1.valueInputHeight,
|
9834
|
+
[vars$x.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
|
8891
9835
|
|
8892
9836
|
// error message icon
|
8893
|
-
[vars$x.errorMessageIcon]: refs.errorMessageIcon,
|
8894
|
-
[vars$x.errorMessageIconSize]: refs.errorMessageIconSize,
|
8895
|
-
[vars$x.errorMessageIconPadding]: refs.errorMessageIconPadding,
|
8896
|
-
[vars$x.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
8897
|
-
[vars$x.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
9837
|
+
[vars$x.errorMessageIcon]: refs$1.errorMessageIcon,
|
9838
|
+
[vars$x.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
9839
|
+
[vars$x.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
9840
|
+
[vars$x.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
9841
|
+
[vars$x.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
8898
9842
|
|
8899
9843
|
// '@overlay': {
|
8900
9844
|
// overlayItemBackgroundColor: 'red'
|
@@ -9054,10 +9998,10 @@ const PhoneFieldInputBoxClass = compose$1(
|
|
9054
9998
|
},
|
9055
9999
|
}),
|
9056
10000
|
draggableMixin$1,
|
9057
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
10001
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
9058
10002
|
customMixin$7
|
9059
10003
|
)(
|
9060
|
-
createProxy({
|
10004
|
+
createProxy$1({
|
9061
10005
|
slots: [],
|
9062
10006
|
wrappedEleName: 'vaadin-text-field',
|
9063
10007
|
style: () => `
|
@@ -9135,44 +10079,44 @@ const vars$w = PhoneFieldInputBoxClass.cssVarList;
|
|
9135
10079
|
|
9136
10080
|
const phoneInputBoxField = {
|
9137
10081
|
[vars$w.hostWidth]: '16em',
|
9138
|
-
[vars$w.hostMinWidth]: refs.minWidth,
|
9139
|
-
[vars$w.hostDirection]: refs.direction,
|
9140
|
-
[vars$w.fontSize]: refs.fontSize,
|
9141
|
-
[vars$w.fontFamily]: refs.fontFamily,
|
9142
|
-
[vars$w.labelFontSize]: refs.labelFontSize,
|
9143
|
-
[vars$w.labelFontWeight]: refs.labelFontWeight,
|
9144
|
-
[vars$w.labelTextColor]: refs.labelTextColor,
|
9145
|
-
[vars$w.labelRequiredIndicator]: refs.requiredIndicator,
|
9146
|
-
[vars$w.errorMessageTextColor]: refs.errorMessageTextColor,
|
9147
|
-
[vars$w.inputValueTextColor]: refs.valueTextColor,
|
9148
|
-
[vars$w.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
9149
|
-
[vars$w.inputBorderStyle]: refs.borderStyle,
|
9150
|
-
[vars$w.inputBorderWidth]: refs.borderWidth,
|
9151
|
-
[vars$w.inputBorderColor]: refs.borderColor,
|
9152
|
-
[vars$w.inputBorderRadius]: refs.borderRadius,
|
9153
|
-
[vars$w.inputOutlineStyle]: refs.outlineStyle,
|
9154
|
-
[vars$w.inputOutlineWidth]: refs.outlineWidth,
|
9155
|
-
[vars$w.inputOutlineColor]: refs.outlineColor,
|
9156
|
-
[vars$w.inputOutlineOffset]: refs.outlineOffset,
|
9157
|
-
[vars$w.labelPosition]: refs.labelPosition,
|
9158
|
-
[vars$w.labelTopPosition]: refs.labelTopPosition,
|
9159
|
-
[vars$w.labelHorizontalPosition]: refs.labelHorizontalPosition,
|
9160
|
-
[vars$w.inputTransformY]: refs.inputTransformY,
|
9161
|
-
[vars$w.inputTransition]: refs.inputTransition,
|
9162
|
-
[vars$w.marginInlineStart]: refs.marginInlineStart,
|
9163
|
-
[vars$w.valueInputHeight]: refs.valueInputHeight,
|
9164
|
-
[vars$w.valueInputMarginBottom]: refs.valueInputMarginBottom,
|
10082
|
+
[vars$w.hostMinWidth]: refs$1.minWidth,
|
10083
|
+
[vars$w.hostDirection]: refs$1.direction,
|
10084
|
+
[vars$w.fontSize]: refs$1.fontSize,
|
10085
|
+
[vars$w.fontFamily]: refs$1.fontFamily,
|
10086
|
+
[vars$w.labelFontSize]: refs$1.labelFontSize,
|
10087
|
+
[vars$w.labelFontWeight]: refs$1.labelFontWeight,
|
10088
|
+
[vars$w.labelTextColor]: refs$1.labelTextColor,
|
10089
|
+
[vars$w.labelRequiredIndicator]: refs$1.requiredIndicator,
|
10090
|
+
[vars$w.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
10091
|
+
[vars$w.inputValueTextColor]: refs$1.valueTextColor,
|
10092
|
+
[vars$w.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
|
10093
|
+
[vars$w.inputBorderStyle]: refs$1.borderStyle,
|
10094
|
+
[vars$w.inputBorderWidth]: refs$1.borderWidth,
|
10095
|
+
[vars$w.inputBorderColor]: refs$1.borderColor,
|
10096
|
+
[vars$w.inputBorderRadius]: refs$1.borderRadius,
|
10097
|
+
[vars$w.inputOutlineStyle]: refs$1.outlineStyle,
|
10098
|
+
[vars$w.inputOutlineWidth]: refs$1.outlineWidth,
|
10099
|
+
[vars$w.inputOutlineColor]: refs$1.outlineColor,
|
10100
|
+
[vars$w.inputOutlineOffset]: refs$1.outlineOffset,
|
10101
|
+
[vars$w.labelPosition]: refs$1.labelPosition,
|
10102
|
+
[vars$w.labelTopPosition]: refs$1.labelTopPosition,
|
10103
|
+
[vars$w.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
|
10104
|
+
[vars$w.inputTransformY]: refs$1.inputTransformY,
|
10105
|
+
[vars$w.inputTransition]: refs$1.inputTransition,
|
10106
|
+
[vars$w.marginInlineStart]: refs$1.marginInlineStart,
|
10107
|
+
[vars$w.valueInputHeight]: refs$1.valueInputHeight,
|
10108
|
+
[vars$w.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
|
9165
10109
|
[vars$w.inputHorizontalPadding]: '0',
|
9166
10110
|
|
9167
10111
|
// error message icon
|
9168
|
-
[vars$w.errorMessageIcon]: refs.errorMessageIcon,
|
9169
|
-
[vars$w.errorMessageIconSize]: refs.errorMessageIconSize,
|
9170
|
-
[vars$w.errorMessageIconPadding]: refs.errorMessageIconPadding,
|
9171
|
-
[vars$w.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
9172
|
-
[vars$w.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
10112
|
+
[vars$w.errorMessageIcon]: refs$1.errorMessageIcon,
|
10113
|
+
[vars$w.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
10114
|
+
[vars$w.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
10115
|
+
[vars$w.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
10116
|
+
[vars$w.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
9173
10117
|
|
9174
10118
|
_fullWidth: {
|
9175
|
-
[vars$w.hostWidth]: refs.width,
|
10119
|
+
[vars$w.hostWidth]: refs$1.width,
|
9176
10120
|
},
|
9177
10121
|
};
|
9178
10122
|
|
@@ -9550,10 +10494,10 @@ const NewPasswordClass = compose$1(
|
|
9550
10494
|
},
|
9551
10495
|
}),
|
9552
10496
|
draggableMixin$1,
|
9553
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
10497
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
9554
10498
|
customMixin$6
|
9555
10499
|
)(
|
9556
|
-
createProxy({
|
10500
|
+
createProxy$1({
|
9557
10501
|
slots: [],
|
9558
10502
|
wrappedEleName: 'vaadin-text-field',
|
9559
10503
|
style: () => `
|
@@ -9618,32 +10562,32 @@ const globalRefs$m = getThemeRefs(globals$1);
|
|
9618
10562
|
const vars$v = NewPasswordClass.cssVarList;
|
9619
10563
|
|
9620
10564
|
const newPassword = {
|
9621
|
-
[vars$v.hostWidth]: refs.width,
|
9622
|
-
[vars$v.hostMinWidth]: refs.minWidth,
|
9623
|
-
[vars$v.hostDirection]: refs.direction,
|
9624
|
-
[vars$v.fontSize]: refs.fontSize,
|
9625
|
-
[vars$v.fontFamily]: refs.fontFamily,
|
9626
|
-
[vars$v.labelFontSize]: refs.labelFontSize,
|
9627
|
-
[vars$v.labelFontWeight]: refs.labelFontWeight,
|
9628
|
-
[vars$v.labelTextColor]: refs.labelTextColor,
|
10565
|
+
[vars$v.hostWidth]: refs$1.width,
|
10566
|
+
[vars$v.hostMinWidth]: refs$1.minWidth,
|
10567
|
+
[vars$v.hostDirection]: refs$1.direction,
|
10568
|
+
[vars$v.fontSize]: refs$1.fontSize,
|
10569
|
+
[vars$v.fontFamily]: refs$1.fontFamily,
|
10570
|
+
[vars$v.labelFontSize]: refs$1.labelFontSize,
|
10571
|
+
[vars$v.labelFontWeight]: refs$1.labelFontWeight,
|
10572
|
+
[vars$v.labelTextColor]: refs$1.labelTextColor,
|
9629
10573
|
[vars$v.spaceBetweenInputs]: '1em',
|
9630
|
-
[vars$v.errorMessageTextColor]: refs.errorMessageTextColor,
|
10574
|
+
[vars$v.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
9631
10575
|
[vars$v.policyPreviewBackgroundColor]: 'none',
|
9632
10576
|
[vars$v.policyPreviewPadding]: globalRefs$m.spacing.lg,
|
9633
|
-
[vars$v.valueInputHeight]: refs.valueInputHeight,
|
10577
|
+
[vars$v.valueInputHeight]: refs$1.valueInputHeight,
|
9634
10578
|
|
9635
10579
|
// error message icon
|
9636
|
-
[vars$v.errorMessageIcon]: refs.errorMessageIcon,
|
9637
|
-
[vars$v.errorMessageIconSize]: refs.errorMessageIconSize,
|
9638
|
-
[vars$v.errorMessageIconPadding]: refs.errorMessageIconPadding,
|
9639
|
-
[vars$v.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
9640
|
-
[vars$v.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
10580
|
+
[vars$v.errorMessageIcon]: refs$1.errorMessageIcon,
|
10581
|
+
[vars$v.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
10582
|
+
[vars$v.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
10583
|
+
[vars$v.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
10584
|
+
[vars$v.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
9641
10585
|
|
9642
10586
|
_required: {
|
9643
10587
|
// NewPassword doesn't pass `required` attribute to its Password components.
|
9644
10588
|
// That's why we fake the required indicator on each input.
|
9645
10589
|
// We do that by injecting `::after` element, and populating it with requiredIndicator content.
|
9646
|
-
[vars$v.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
|
10590
|
+
[vars$v.inputsRequiredIndicator]: refs$1.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
|
9647
10591
|
},
|
9648
10592
|
};
|
9649
10593
|
|
@@ -9898,9 +10842,9 @@ const UploadFileClass = compose$1(
|
|
9898
10842
|
const vars$u = UploadFileClass.cssVarList;
|
9899
10843
|
|
9900
10844
|
const uploadFile = {
|
9901
|
-
[vars$u.hostDirection]: refs.direction,
|
9902
|
-
[vars$u.labelTextColor]: refs.labelTextColor,
|
9903
|
-
[vars$u.fontFamily]: refs.fontFamily,
|
10845
|
+
[vars$u.hostDirection]: refs$1.direction,
|
10846
|
+
[vars$u.labelTextColor]: refs$1.labelTextColor,
|
10847
|
+
[vars$u.fontFamily]: refs$1.fontFamily,
|
9904
10848
|
|
9905
10849
|
[vars$u.iconSize]: '2em',
|
9906
10850
|
|
@@ -9911,13 +10855,13 @@ const uploadFile = {
|
|
9911
10855
|
[vars$u.titleFontWeight]: '500',
|
9912
10856
|
[vars$u.lineHeight]: '1em',
|
9913
10857
|
|
9914
|
-
[vars$u.borderWidth]: refs.borderWidth,
|
9915
|
-
[vars$u.borderColor]: refs.borderColor,
|
9916
|
-
[vars$u.borderRadius]: refs.borderRadius,
|
10858
|
+
[vars$u.borderWidth]: refs$1.borderWidth,
|
10859
|
+
[vars$u.borderColor]: refs$1.borderColor,
|
10860
|
+
[vars$u.borderRadius]: refs$1.borderRadius,
|
9917
10861
|
[vars$u.borderStyle]: 'dashed',
|
9918
10862
|
|
9919
10863
|
_required: {
|
9920
|
-
[vars$u.requiredIndicator]: refs.requiredIndicator,
|
10864
|
+
[vars$u.requiredIndicator]: refs$1.requiredIndicator,
|
9921
10865
|
},
|
9922
10866
|
|
9923
10867
|
size: {
|
@@ -9952,7 +10896,7 @@ const uploadFile = {
|
|
9952
10896
|
},
|
9953
10897
|
|
9954
10898
|
_fullWidth: {
|
9955
|
-
[vars$u.hostWidth]: refs.width,
|
10899
|
+
[vars$u.hostWidth]: refs$1.width,
|
9956
10900
|
},
|
9957
10901
|
};
|
9958
10902
|
|
@@ -10128,7 +11072,7 @@ const createBaseButtonSelectionGroupInternalClass = (componentName) => {
|
|
10128
11072
|
`;
|
10129
11073
|
}
|
10130
11074
|
|
10131
|
-
dispatchChange = createDispatchEvent.bind(this, 'change');
|
11075
|
+
dispatchChange = createDispatchEvent$1.bind(this, 'change');
|
10132
11076
|
|
10133
11077
|
get items() {
|
10134
11078
|
return this.querySelector('slot').assignedElements();
|
@@ -10479,12 +11423,12 @@ const ButtonSelectionGroupClass = compose$1(
|
|
10479
11423
|
},
|
10480
11424
|
}),
|
10481
11425
|
draggableMixin$1,
|
10482
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
11426
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
10483
11427
|
componentNameValidationMixin$1,
|
10484
11428
|
buttonSelectionGroupBaseMixin,
|
10485
11429
|
buttonSelectionGroupMixin
|
10486
11430
|
)(
|
10487
|
-
createProxy({
|
11431
|
+
createProxy$1({
|
10488
11432
|
slots: [],
|
10489
11433
|
wrappedEleName: 'vaadin-text-field',
|
10490
11434
|
style: () => buttonSelectionGroupStyles,
|
@@ -10496,21 +11440,21 @@ const ButtonSelectionGroupClass = compose$1(
|
|
10496
11440
|
const globalRefs$k = getThemeRefs(globals$1);
|
10497
11441
|
|
10498
11442
|
const createBaseButtonSelectionGroupMappings = (vars) => ({
|
10499
|
-
[vars.hostDirection]: refs.direction,
|
10500
|
-
[vars.fontFamily]: refs.fontFamily,
|
10501
|
-
[vars.labelTextColor]: refs.labelTextColor,
|
10502
|
-
[vars.labelRequiredIndicator]: refs.requiredIndicator,
|
11443
|
+
[vars.hostDirection]: refs$1.direction,
|
11444
|
+
[vars.fontFamily]: refs$1.fontFamily,
|
11445
|
+
[vars.labelTextColor]: refs$1.labelTextColor,
|
11446
|
+
[vars.labelRequiredIndicator]: refs$1.requiredIndicator,
|
10503
11447
|
[vars.itemsSpacing]: globalRefs$k.spacing.sm,
|
10504
|
-
[vars.hostWidth]: refs.width,
|
11448
|
+
[vars.hostWidth]: refs$1.width,
|
10505
11449
|
|
10506
|
-
[vars.errorMessageTextColor]: refs.errorMessageTextColor,
|
11450
|
+
[vars.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
10507
11451
|
|
10508
11452
|
// error message icon
|
10509
|
-
[vars.errorMessageIcon]: refs.errorMessageIcon,
|
10510
|
-
[vars.errorMessageIconSize]: refs.errorMessageIconSize,
|
10511
|
-
[vars.errorMessageIconPadding]: refs.errorMessageIconPadding,
|
10512
|
-
[vars.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
10513
|
-
[vars.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
11453
|
+
[vars.errorMessageIcon]: refs$1.errorMessageIcon,
|
11454
|
+
[vars.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
11455
|
+
[vars.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
11456
|
+
[vars.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
11457
|
+
[vars.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
10514
11458
|
});
|
10515
11459
|
|
10516
11460
|
const vars$s = ButtonSelectionGroupClass.cssVarList;
|
@@ -10667,12 +11611,12 @@ const ButtonMultiSelectionGroupClass = compose$1(
|
|
10667
11611
|
},
|
10668
11612
|
}),
|
10669
11613
|
draggableMixin$1,
|
10670
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
11614
|
+
composedProxyInputMixin$1({ proxyProps: ['value', 'selectionStart'] }),
|
10671
11615
|
componentNameValidationMixin$1,
|
10672
11616
|
buttonSelectionGroupBaseMixin,
|
10673
11617
|
buttonMultiSelectionGroupMixin
|
10674
11618
|
)(
|
10675
|
-
createProxy({
|
11619
|
+
createProxy$1({
|
10676
11620
|
slots: [],
|
10677
11621
|
wrappedEleName: 'vaadin-text-field',
|
10678
11622
|
style: () => buttonSelectionGroupStyles,
|
@@ -10762,7 +11706,7 @@ const ModalClass = compose$1(
|
|
10762
11706
|
overlayWidth: { property: () => ModalClass.cssVarList.overlay.width },
|
10763
11707
|
},
|
10764
11708
|
}),
|
10765
|
-
portalMixin({
|
11709
|
+
portalMixin$1({
|
10766
11710
|
name: 'overlay',
|
10767
11711
|
selector: '',
|
10768
11712
|
mappings: {
|
@@ -10787,7 +11731,7 @@ const ModalClass = compose$1(
|
|
10787
11731
|
componentNameValidationMixin$1,
|
10788
11732
|
customMixin$5
|
10789
11733
|
)(
|
10790
|
-
createProxy({
|
11734
|
+
createProxy$1({
|
10791
11735
|
slots: [''],
|
10792
11736
|
wrappedEleName: 'vaadin-dialog',
|
10793
11737
|
style: () => ``,
|
@@ -11194,7 +12138,7 @@ const GridClass = compose$1(
|
|
11194
12138
|
componentNameValidationMixin$1,
|
11195
12139
|
GridMixin
|
11196
12140
|
)(
|
11197
|
-
createProxy({
|
12141
|
+
createProxy$1({
|
11198
12142
|
delegatesFocus: false,
|
11199
12143
|
slots: [''],
|
11200
12144
|
wrappedEleName: 'vaadin-grid',
|
@@ -11257,16 +12201,16 @@ const grid = {
|
|
11257
12201
|
[vars$p.fontWeight]: '400',
|
11258
12202
|
[vars$p.backgroundColor]: globalRefs$i.colors.surface.main,
|
11259
12203
|
|
11260
|
-
[vars$p.fontSize]: refs.fontSize,
|
11261
|
-
[vars$p.fontFamily]: refs.fontFamily,
|
12204
|
+
[vars$p.fontSize]: refs$1.fontSize,
|
12205
|
+
[vars$p.fontFamily]: refs$1.fontFamily,
|
11262
12206
|
|
11263
12207
|
[vars$p.sortIndicatorsColor]: globalRefs$i.colors.surface.light,
|
11264
12208
|
[vars$p.activeSortIndicator]: globalRefs$i.colors.surface.dark,
|
11265
12209
|
[vars$p.resizeHandleColor]: globalRefs$i.colors.surface.light,
|
11266
12210
|
|
11267
|
-
[vars$p.borderWidth]: refs.borderWidth,
|
11268
|
-
[vars$p.borderStyle]: refs.borderStyle,
|
11269
|
-
[vars$p.borderRadius]: refs.borderRadius,
|
12211
|
+
[vars$p.borderWidth]: refs$1.borderWidth,
|
12212
|
+
[vars$p.borderStyle]: refs$1.borderStyle,
|
12213
|
+
[vars$p.borderRadius]: refs$1.borderRadius,
|
11270
12214
|
[vars$p.borderColor]: 'transparent',
|
11271
12215
|
|
11272
12216
|
[vars$p.headerRowTextColor]: globalRefs$i.colors.surface.dark,
|
@@ -11288,7 +12232,7 @@ const grid = {
|
|
11288
12232
|
[vars$p.detailsPanelPadding]: '12px 0',
|
11289
12233
|
|
11290
12234
|
_bordered: {
|
11291
|
-
[vars$p.borderColor]: refs.borderColor,
|
12235
|
+
[vars$p.borderColor]: refs$1.borderColor,
|
11292
12236
|
},
|
11293
12237
|
};
|
11294
12238
|
|
@@ -11376,7 +12320,7 @@ const NotificationCardClass = compose$1(
|
|
11376
12320
|
}),
|
11377
12321
|
notificationCardMixin
|
11378
12322
|
)(
|
11379
|
-
createProxy({
|
12323
|
+
createProxy$1({
|
11380
12324
|
slots: [],
|
11381
12325
|
wrappedEleName: 'vaadin-notification-card',
|
11382
12326
|
style: () => `
|
@@ -12001,7 +12945,7 @@ const MultiSelectComboBoxClass = compose$1(
|
|
12001
12945
|
},
|
12002
12946
|
}),
|
12003
12947
|
draggableMixin$1,
|
12004
|
-
portalMixin({
|
12948
|
+
portalMixin$1({
|
12005
12949
|
name: 'overlay',
|
12006
12950
|
selector: 'vaadin-multi-select-combo-box-internal',
|
12007
12951
|
mappings: {
|
@@ -12027,12 +12971,12 @@ const MultiSelectComboBoxClass = compose$1(
|
|
12027
12971
|
attributes: ['size'],
|
12028
12972
|
},
|
12029
12973
|
}),
|
12030
|
-
composedProxyInputMixin({ proxyProps: ['selectionStart'], inputEvent: 'selected-items-changed' }),
|
12974
|
+
composedProxyInputMixin$1({ proxyProps: ['selectionStart'], inputEvent: 'selected-items-changed' }),
|
12031
12975
|
changeMixin,
|
12032
12976
|
componentNameValidationMixin$1,
|
12033
12977
|
multiSelectComboBoxMixin
|
12034
12978
|
)(
|
12035
|
-
createProxy({
|
12979
|
+
createProxy$1({
|
12036
12980
|
slots: ['', 'prefix'],
|
12037
12981
|
wrappedEleName: 'vaadin-multi-select-combo-box',
|
12038
12982
|
style: () => `
|
@@ -12121,54 +13065,54 @@ const globalRefs$g = getThemeRefs(globals$1);
|
|
12121
13065
|
const vars$n = MultiSelectComboBoxClass.cssVarList;
|
12122
13066
|
|
12123
13067
|
const multiSelectComboBox = {
|
12124
|
-
[vars$n.hostWidth]: refs.width,
|
12125
|
-
[vars$n.hostDirection]: refs.direction,
|
12126
|
-
[vars$n.fontSize]: refs.fontSize,
|
12127
|
-
[vars$n.fontFamily]: refs.fontFamily,
|
12128
|
-
[vars$n.labelFontSize]: refs.labelFontSize,
|
12129
|
-
[vars$n.labelFontWeight]: refs.labelFontWeight,
|
12130
|
-
[vars$n.labelTextColor]: refs.labelTextColor,
|
12131
|
-
[vars$n.errorMessageTextColor]: refs.errorMessageTextColor,
|
12132
|
-
[vars$n.inputBorderColor]: refs.borderColor,
|
12133
|
-
[vars$n.inputBorderWidth]: refs.borderWidth,
|
12134
|
-
[vars$n.inputBorderStyle]: refs.borderStyle,
|
12135
|
-
[vars$n.inputBorderRadius]: refs.borderRadius,
|
12136
|
-
[vars$n.inputOutlineColor]: refs.outlineColor,
|
12137
|
-
[vars$n.inputOutlineOffset]: refs.outlineOffset,
|
12138
|
-
[vars$n.inputOutlineWidth]: refs.outlineWidth,
|
12139
|
-
[vars$n.inputOutlineStyle]: refs.outlineStyle,
|
12140
|
-
[vars$n.labelRequiredIndicator]: refs.requiredIndicator,
|
12141
|
-
[vars$n.inputValueTextColor]: refs.valueTextColor,
|
12142
|
-
[vars$n.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
12143
|
-
[vars$n.inputBackgroundColor]: refs.backgroundColor,
|
12144
|
-
[vars$n.inputHorizontalPadding]: refs.horizontalPadding,
|
12145
|
-
[vars$n.inputVerticalPadding]: refs.verticalPadding,
|
12146
|
-
[vars$n.inputHeight]: refs.inputHeight,
|
13068
|
+
[vars$n.hostWidth]: refs$1.width,
|
13069
|
+
[vars$n.hostDirection]: refs$1.direction,
|
13070
|
+
[vars$n.fontSize]: refs$1.fontSize,
|
13071
|
+
[vars$n.fontFamily]: refs$1.fontFamily,
|
13072
|
+
[vars$n.labelFontSize]: refs$1.labelFontSize,
|
13073
|
+
[vars$n.labelFontWeight]: refs$1.labelFontWeight,
|
13074
|
+
[vars$n.labelTextColor]: refs$1.labelTextColor,
|
13075
|
+
[vars$n.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
13076
|
+
[vars$n.inputBorderColor]: refs$1.borderColor,
|
13077
|
+
[vars$n.inputBorderWidth]: refs$1.borderWidth,
|
13078
|
+
[vars$n.inputBorderStyle]: refs$1.borderStyle,
|
13079
|
+
[vars$n.inputBorderRadius]: refs$1.borderRadius,
|
13080
|
+
[vars$n.inputOutlineColor]: refs$1.outlineColor,
|
13081
|
+
[vars$n.inputOutlineOffset]: refs$1.outlineOffset,
|
13082
|
+
[vars$n.inputOutlineWidth]: refs$1.outlineWidth,
|
13083
|
+
[vars$n.inputOutlineStyle]: refs$1.outlineStyle,
|
13084
|
+
[vars$n.labelRequiredIndicator]: refs$1.requiredIndicator,
|
13085
|
+
[vars$n.inputValueTextColor]: refs$1.valueTextColor,
|
13086
|
+
[vars$n.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
|
13087
|
+
[vars$n.inputBackgroundColor]: refs$1.backgroundColor,
|
13088
|
+
[vars$n.inputHorizontalPadding]: refs$1.horizontalPadding,
|
13089
|
+
[vars$n.inputVerticalPadding]: refs$1.verticalPadding,
|
13090
|
+
[vars$n.inputHeight]: refs$1.inputHeight,
|
12147
13091
|
[vars$n.inputDropdownButtonColor]: globalRefs$g.colors.surface.dark,
|
12148
13092
|
[vars$n.inputDropdownButtonCursor]: 'pointer',
|
12149
|
-
[vars$n.inputDropdownButtonSize]: refs.toggleButtonSize,
|
13093
|
+
[vars$n.inputDropdownButtonSize]: refs$1.toggleButtonSize,
|
12150
13094
|
[vars$n.inputDropdownButtonOffset]: globalRefs$g.spacing.xs,
|
12151
13095
|
[vars$n.overlayItemPaddingInlineStart]: globalRefs$g.spacing.xs,
|
12152
13096
|
[vars$n.overlayItemPaddingInlineEnd]: globalRefs$g.spacing.lg,
|
12153
|
-
[vars$n.chipFontSize]: refs.chipFontSize,
|
13097
|
+
[vars$n.chipFontSize]: refs$1.chipFontSize,
|
12154
13098
|
[vars$n.chipTextColor]: globalRefs$g.colors.surface.contrast,
|
12155
13099
|
[vars$n.chipBackgroundColor]: globalRefs$g.colors.surface.light,
|
12156
|
-
[vars$n.labelPosition]: refs.labelPosition,
|
12157
|
-
[vars$n.labelTopPosition]: refs.labelTopPosition,
|
12158
|
-
[vars$n.labelLeftPosition]: refs.labelLeftPosition,
|
12159
|
-
[vars$n.labelHorizontalPosition]: refs.labelHorizontalPosition,
|
12160
|
-
[vars$n.inputTransformY]: refs.inputTransformY,
|
12161
|
-
[vars$n.inputTransition]: refs.inputTransition,
|
12162
|
-
[vars$n.marginInlineStart]: refs.marginInlineStart,
|
12163
|
-
[vars$n.placeholderOpacity]: refs.placeholderOpacity,
|
12164
|
-
[vars$n.inputVerticalAlignment]: refs.inputVerticalAlignment,
|
13100
|
+
[vars$n.labelPosition]: refs$1.labelPosition,
|
13101
|
+
[vars$n.labelTopPosition]: refs$1.labelTopPosition,
|
13102
|
+
[vars$n.labelLeftPosition]: refs$1.labelLeftPosition,
|
13103
|
+
[vars$n.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
|
13104
|
+
[vars$n.inputTransformY]: refs$1.inputTransformY,
|
13105
|
+
[vars$n.inputTransition]: refs$1.inputTransition,
|
13106
|
+
[vars$n.marginInlineStart]: refs$1.marginInlineStart,
|
13107
|
+
[vars$n.placeholderOpacity]: refs$1.placeholderOpacity,
|
13108
|
+
[vars$n.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
|
12165
13109
|
|
12166
13110
|
// error message icon
|
12167
|
-
[vars$n.errorMessageIcon]: refs.errorMessageIcon,
|
12168
|
-
[vars$n.errorMessageIconSize]: refs.errorMessageIconSize,
|
12169
|
-
[vars$n.errorMessageIconPadding]: refs.errorMessageIconPadding,
|
12170
|
-
[vars$n.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
12171
|
-
[vars$n.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
13111
|
+
[vars$n.errorMessageIcon]: refs$1.errorMessageIcon,
|
13112
|
+
[vars$n.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
13113
|
+
[vars$n.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
13114
|
+
[vars$n.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
13115
|
+
[vars$n.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
12172
13116
|
|
12173
13117
|
labelType: {
|
12174
13118
|
floating: {
|
@@ -12184,12 +13128,12 @@ const multiSelectComboBox = {
|
|
12184
13128
|
},
|
12185
13129
|
|
12186
13130
|
// Overlay theme exposed via the component:
|
12187
|
-
[vars$n.overlayFontSize]: refs.fontSize,
|
12188
|
-
[vars$n.overlayFontFamily]: refs.fontFamily,
|
13131
|
+
[vars$n.overlayFontSize]: refs$1.fontSize,
|
13132
|
+
[vars$n.overlayFontFamily]: refs$1.fontFamily,
|
12189
13133
|
[vars$n.overlayCursor]: 'pointer',
|
12190
13134
|
[vars$n.overlayItemBoxShadow]: 'none',
|
12191
|
-
[vars$n.overlayBackground]: refs.backgroundColor,
|
12192
|
-
[vars$n.overlayTextColor]: refs.valueTextColor,
|
13135
|
+
[vars$n.overlayBackground]: refs$1.backgroundColor,
|
13136
|
+
[vars$n.overlayTextColor]: refs$1.valueTextColor,
|
12193
13137
|
|
12194
13138
|
// Overlay direct theme:
|
12195
13139
|
[vars$n.overlay.minHeight]: '400px',
|
@@ -12540,7 +13484,7 @@ const customMixin$4 = (superclass) =>
|
|
12540
13484
|
|
12541
13485
|
// This is required since when we remove the invalid attribute from the internal mappings field,
|
12542
13486
|
// we want to reflect the change in the parent component
|
12543
|
-
syncAttrs(this, this.inputElement, { includeAttrs: ['invalid'] });
|
13487
|
+
syncAttrs$1(this, this.inputElement, { includeAttrs: ['invalid'] });
|
12544
13488
|
|
12545
13489
|
this.setDefaultValues();
|
12546
13490
|
}
|
@@ -12599,7 +13543,7 @@ const MappingsFieldClass = compose$1(
|
|
12599
13543
|
},
|
12600
13544
|
}),
|
12601
13545
|
draggableMixin$1,
|
12602
|
-
composedProxyInputMixin({
|
13546
|
+
composedProxyInputMixin$1({
|
12603
13547
|
proxyProps: ['value', 'selectionStart'],
|
12604
13548
|
inputEvent: 'input',
|
12605
13549
|
proxyParentValidation: true,
|
@@ -12607,7 +13551,7 @@ const MappingsFieldClass = compose$1(
|
|
12607
13551
|
componentNameValidationMixin$1,
|
12608
13552
|
customMixin$4
|
12609
13553
|
)(
|
12610
|
-
createProxy({
|
13554
|
+
createProxy$1({
|
12611
13555
|
slots: [],
|
12612
13556
|
wrappedEleName: 'vaadin-custom-field',
|
12613
13557
|
style: () => `
|
@@ -12661,18 +13605,18 @@ const globalRefs$d = getThemeRefs(globals$1);
|
|
12661
13605
|
const vars$k = MappingsFieldClass.cssVarList;
|
12662
13606
|
|
12663
13607
|
const mappingsField = {
|
12664
|
-
[vars$k.hostWidth]: refs.width,
|
12665
|
-
[vars$k.hostDirection]: refs.direction,
|
12666
|
-
[vars$k.fontSize]: refs.fontSize,
|
12667
|
-
[vars$k.fontFamily]: refs.fontFamily,
|
13608
|
+
[vars$k.hostWidth]: refs$1.width,
|
13609
|
+
[vars$k.hostDirection]: refs$1.direction,
|
13610
|
+
[vars$k.fontSize]: refs$1.fontSize,
|
13611
|
+
[vars$k.fontFamily]: refs$1.fontFamily,
|
12668
13612
|
[vars$k.separatorFontSize]: '14px',
|
12669
13613
|
[vars$k.labelsFontSize]: '14px',
|
12670
13614
|
[vars$k.labelsLineHeight]: '1',
|
12671
13615
|
[vars$k.labelsMarginBottom]: '6px',
|
12672
|
-
[vars$k.labelTextColor]: refs.labelTextColor,
|
13616
|
+
[vars$k.labelTextColor]: refs$1.labelTextColor,
|
12673
13617
|
[vars$k.itemMarginBottom]: '1em',
|
12674
13618
|
// To be positioned correctly, the min width has to match the text field min width
|
12675
|
-
[vars$k.valueLabelMinWidth]: refs.minWidth,
|
13619
|
+
[vars$k.valueLabelMinWidth]: refs$1.minWidth,
|
12676
13620
|
// To be positioned correctly, the min width has to match the combo box field min width
|
12677
13621
|
[vars$k.attrLabelMinWidth]: `calc(12em + 2 * ${globalRefs$d.border.xs})`,
|
12678
13622
|
[vars$k.separatorWidth]: '70px',
|
@@ -13203,7 +14147,7 @@ const customMixin$3 = (superclass) =>
|
|
13203
14147
|
],
|
13204
14148
|
});
|
13205
14149
|
|
13206
|
-
syncAttrs(this, this.inputElement, { includeAttrs: ['invalid'] });
|
14150
|
+
syncAttrs$1(this, this.inputElement, { includeAttrs: ['invalid'] });
|
13207
14151
|
}
|
13208
14152
|
};
|
13209
14153
|
|
@@ -13227,7 +14171,7 @@ const SamlGroupMappingsClass = compose$1(
|
|
13227
14171
|
},
|
13228
14172
|
}),
|
13229
14173
|
draggableMixin$1,
|
13230
|
-
composedProxyInputMixin({
|
14174
|
+
composedProxyInputMixin$1({
|
13231
14175
|
proxyProps: ['value', 'selectionStart'],
|
13232
14176
|
inputEvent: 'input',
|
13233
14177
|
triggerValidationEvents: ['mapping-item-added', 'mapping-item-removed'],
|
@@ -13236,7 +14180,7 @@ const SamlGroupMappingsClass = compose$1(
|
|
13236
14180
|
componentNameValidationMixin$1,
|
13237
14181
|
customMixin$3
|
13238
14182
|
)(
|
13239
|
-
createProxy({
|
14183
|
+
createProxy$1({
|
13240
14184
|
slots: [],
|
13241
14185
|
wrappedEleName: 'vaadin-custom-field',
|
13242
14186
|
style: () => `
|
@@ -13276,16 +14220,16 @@ const SamlGroupMappingsClass = compose$1(
|
|
13276
14220
|
const vars$h = SamlGroupMappingsClass.cssVarList;
|
13277
14221
|
|
13278
14222
|
const samlGroupMappings = {
|
13279
|
-
[vars$h.hostWidth]: refs.width,
|
13280
|
-
[vars$h.hostDirection]: refs.direction,
|
14223
|
+
[vars$h.hostWidth]: refs$1.width,
|
14224
|
+
[vars$h.hostDirection]: refs$1.direction,
|
13281
14225
|
[vars$h.groupNameInputMarginBottom]: '1em',
|
13282
14226
|
|
13283
14227
|
// error message icon
|
13284
|
-
[vars$h.errorMessageIcon]: refs.errorMessageIcon,
|
13285
|
-
[vars$h.errorMessageIconSize]: refs.errorMessageIconSize,
|
13286
|
-
[vars$h.errorMessageIconPadding]: refs.errorMessageIconPadding,
|
13287
|
-
[vars$h.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
13288
|
-
[vars$h.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
14228
|
+
[vars$h.errorMessageIcon]: refs$1.errorMessageIcon,
|
14229
|
+
[vars$h.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
14230
|
+
[vars$h.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
14231
|
+
[vars$h.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
14232
|
+
[vars$h.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
13289
14233
|
};
|
13290
14234
|
|
13291
14235
|
var samlGroupMappings$1 = /*#__PURE__*/Object.freeze({
|
@@ -13299,12 +14243,12 @@ const globalRefs$a = getThemeRefs(globals$1);
|
|
13299
14243
|
const vars$g = PolicyValidationClass.cssVarList;
|
13300
14244
|
|
13301
14245
|
const policyValidation = {
|
13302
|
-
[vars$g.fontFamily]: refs.fontFamily,
|
13303
|
-
[vars$g.fontSize]: refs.labelFontSize,
|
13304
|
-
[vars$g.textColor]: refs.labelTextColor,
|
13305
|
-
[vars$g.borderWidth]: refs.borderWidth,
|
13306
|
-
[vars$g.borderStyle]: refs.borderStyle,
|
13307
|
-
[vars$g.borderColor]: refs.borderColor,
|
14246
|
+
[vars$g.fontFamily]: refs$1.fontFamily,
|
14247
|
+
[vars$g.fontSize]: refs$1.labelFontSize,
|
14248
|
+
[vars$g.textColor]: refs$1.labelTextColor,
|
14249
|
+
[vars$g.borderWidth]: refs$1.borderWidth,
|
14250
|
+
[vars$g.borderStyle]: refs$1.borderStyle,
|
14251
|
+
[vars$g.borderColor]: refs$1.borderColor,
|
13308
14252
|
[vars$g.borderRadius]: globalRefs$a.radius.sm,
|
13309
14253
|
[vars$g.backgroundColor]: 'none',
|
13310
14254
|
[vars$g.padding]: '0px',
|
@@ -13777,11 +14721,11 @@ const RadioButtonClass = compose$1(
|
|
13777
14721
|
radioBorderStyle: { selector: '::part(radio)', property: 'border-style', fallback: 'solid' },
|
13778
14722
|
},
|
13779
14723
|
}),
|
13780
|
-
composedProxyInputMixin({ proxyProps: ['setSelectionRange'] }),
|
14724
|
+
composedProxyInputMixin$1({ proxyProps: ['setSelectionRange'] }),
|
13781
14725
|
componentNameValidationMixin$1,
|
13782
14726
|
customMixin$2
|
13783
14727
|
)(
|
13784
|
-
createProxy({
|
14728
|
+
createProxy$1({
|
13785
14729
|
slots: [''],
|
13786
14730
|
wrappedEleName: 'vaadin-radio-button',
|
13787
14731
|
excludeAttrsSync: ['tabindex', 'data'],
|
@@ -13937,11 +14881,11 @@ const RadioGroupClass = compose$1(
|
|
13937
14881
|
},
|
13938
14882
|
}),
|
13939
14883
|
draggableMixin$1,
|
13940
|
-
composedProxyInputMixin({ proxyProps: ['setSelectionRange'] }),
|
14884
|
+
composedProxyInputMixin$1({ proxyProps: ['setSelectionRange'] }),
|
13941
14885
|
componentNameValidationMixin$1,
|
13942
14886
|
RadioGroupMixin
|
13943
14887
|
)(
|
13944
|
-
createProxy({
|
14888
|
+
createProxy$1({
|
13945
14889
|
slots: ['', 'prefix'],
|
13946
14890
|
wrappedEleName: 'vaadin-radio-group',
|
13947
14891
|
style: () => `
|
@@ -13970,19 +14914,19 @@ const globalRefs$8 = getThemeRefs(globals$1);
|
|
13970
14914
|
|
13971
14915
|
const radioGroup = {
|
13972
14916
|
[vars$d.buttonsRowGap]: '9px',
|
13973
|
-
[vars$d.hostWidth]: refs.width,
|
13974
|
-
[vars$d.hostDirection]: refs.direction,
|
13975
|
-
[vars$d.fontSize]: refs.fontSize,
|
13976
|
-
[vars$d.fontFamily]: refs.fontFamily,
|
13977
|
-
[vars$d.labelTextColor]: refs.labelTextColor,
|
13978
|
-
[vars$d.labelRequiredIndicator]: refs.requiredIndicator,
|
13979
|
-
[vars$d.errorMessageTextColor]: refs.errorMessageTextColor,
|
13980
|
-
[vars$d.errorMessageIcon]: refs.errorMessageIcon,
|
13981
|
-
[vars$d.errorMessageIconSize]: refs.errorMessageIconSize,
|
13982
|
-
[vars$d.errorMessageIconPadding]: refs.errorMessageIconPadding,
|
13983
|
-
[vars$d.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
13984
|
-
[vars$d.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
13985
|
-
[vars$d.helperTextColor]: refs.helperTextColor,
|
14917
|
+
[vars$d.hostWidth]: refs$1.width,
|
14918
|
+
[vars$d.hostDirection]: refs$1.direction,
|
14919
|
+
[vars$d.fontSize]: refs$1.fontSize,
|
14920
|
+
[vars$d.fontFamily]: refs$1.fontFamily,
|
14921
|
+
[vars$d.labelTextColor]: refs$1.labelTextColor,
|
14922
|
+
[vars$d.labelRequiredIndicator]: refs$1.requiredIndicator,
|
14923
|
+
[vars$d.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
14924
|
+
[vars$d.errorMessageIcon]: refs$1.errorMessageIcon,
|
14925
|
+
[vars$d.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
14926
|
+
[vars$d.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
14927
|
+
[vars$d.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
14928
|
+
[vars$d.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
14929
|
+
[vars$d.helperTextColor]: refs$1.helperTextColor,
|
13986
14930
|
[vars$d.itemsLabelColor]: globalRefs$8.colors.surface.contrast,
|
13987
14931
|
|
13988
14932
|
textAlign: {
|
@@ -14011,7 +14955,7 @@ const vars$c = RadioButtonClass.cssVarList;
|
|
14011
14955
|
const globalRefs$7 = getThemeRefs(globals$1);
|
14012
14956
|
|
14013
14957
|
const radioButton = {
|
14014
|
-
[vars$c.fontFamily]: refs.fontFamily,
|
14958
|
+
[vars$c.fontFamily]: refs$1.fontFamily,
|
14015
14959
|
[vars$c.radioSize]: 'calc(1em + 6px)',
|
14016
14960
|
[vars$c.radioMargin]: 'auto 4px',
|
14017
14961
|
[vars$c.radioCheckedSize]: `calc(var(${vars$c.radioSize})/5)`,
|
@@ -15002,9 +15946,9 @@ const globalRefs$6 = getThemeRefs(globals$1);
|
|
15002
15946
|
const vars$b = CalendarClass.cssVarList;
|
15003
15947
|
|
15004
15948
|
const calendar = {
|
15005
|
-
[vars$b.fontFamily]: refs.fontFamily,
|
15006
|
-
[vars$b.fontSize]: refs.fontSize,
|
15007
|
-
[vars$b.hostDirection]: refs.direction,
|
15949
|
+
[vars$b.fontFamily]: refs$1.fontFamily,
|
15950
|
+
[vars$b.fontSize]: refs$1.fontSize,
|
15951
|
+
[vars$b.hostDirection]: refs$1.direction,
|
15008
15952
|
|
15009
15953
|
[vars$b.calendarPadding]: '1em',
|
15010
15954
|
|
@@ -15875,7 +16819,7 @@ const DateFieldClass = compose$1(
|
|
15875
16819
|
},
|
15876
16820
|
},
|
15877
16821
|
}),
|
15878
|
-
portalMixin({
|
16822
|
+
portalMixin$1({
|
15879
16823
|
name: 'overlay',
|
15880
16824
|
selector: '',
|
15881
16825
|
mappings: {
|
@@ -15901,12 +16845,12 @@ const { shadow } = globalRefs$5;
|
|
15901
16845
|
const vars$a = DateFieldClass.cssVarList;
|
15902
16846
|
|
15903
16847
|
const dateField = {
|
15904
|
-
[vars$a.hostWidth]: refs.width,
|
15905
|
-
[vars$a.hostDirection]: refs.direction,
|
16848
|
+
[vars$a.hostWidth]: refs$1.width,
|
16849
|
+
[vars$a.hostDirection]: refs$1.direction,
|
15906
16850
|
[vars$a.iconMargin]: '0.375em',
|
15907
16851
|
|
15908
|
-
[vars$a.overlay.marginTop]: `calc(${refs.outlineWidth} + 1px)`,
|
15909
|
-
[vars$a.overlay.backgroundColor]: refs.backgroundColor,
|
16852
|
+
[vars$a.overlay.marginTop]: `calc(${refs$1.outlineWidth} + 1px)`,
|
16853
|
+
[vars$a.overlay.backgroundColor]: refs$1.backgroundColor,
|
15910
16854
|
[vars$a.overlay.backdropBackgroundColor]: 'transparent',
|
15911
16855
|
[vars$a.overlay.backdropPointerEvents]: 'all',
|
15912
16856
|
[vars$a.overlay.boxShadow]: `${shadow.wide.xl} ${shadowColor$1}, ${shadow.narrow.xl} ${shadowColor$1}`,
|
@@ -16396,7 +17340,7 @@ const AppsListClass = compose$1(
|
|
16396
17340
|
componentNameValidationMixin$1,
|
16397
17341
|
customMixin
|
16398
17342
|
)(
|
16399
|
-
createProxy({
|
17343
|
+
createProxy$1({
|
16400
17344
|
slots: ['empty-state'],
|
16401
17345
|
wrappedEleName: 'descope-list',
|
16402
17346
|
excludeAttrsSync: ['tabindex', 'class', 'empty'],
|
@@ -16589,8 +17533,8 @@ const ScopesListClass = compose$1(
|
|
16589
17533
|
const vars$6 = ScopesListClass.cssVarList;
|
16590
17534
|
|
16591
17535
|
const scopesList = {
|
16592
|
-
[vars$6.requiredInputBorderColor]: theme$
|
16593
|
-
[vars$6.requiredInputValueTextColor]: theme$
|
17536
|
+
[vars$6.requiredInputBorderColor]: theme$2._disabled[vars$T.borderColor],
|
17537
|
+
[vars$6.requiredInputValueTextColor]: theme$2._disabled[vars$T.valueTextColor],
|
16594
17538
|
[vars$6.hostWidth]: '280px',
|
16595
17539
|
_fullWidth: {
|
16596
17540
|
[vars$6.hostWidth]: '100%',
|
@@ -17220,8 +18164,8 @@ const securityQuestionsVerify = {
|
|
17220
18164
|
_fullWidth: {
|
17221
18165
|
[vars$3.hostWidth]: '100%',
|
17222
18166
|
},
|
17223
|
-
[vars$3.questionFontSize]: refs.fontSize,
|
17224
|
-
[vars$3.questionFontFamily]: refs.fontFamily,
|
18167
|
+
[vars$3.questionFontSize]: refs$1.fontSize,
|
18168
|
+
[vars$3.questionFontFamily]: refs$1.fontFamily,
|
17225
18169
|
};
|
17226
18170
|
|
17227
18171
|
var securityQuestionsVerify$1 = /*#__PURE__*/Object.freeze({
|
@@ -17595,14 +18539,14 @@ const HybridFieldClass = compose$1(
|
|
17595
18539
|
const vars$2 = HybridFieldClass.cssVarList;
|
17596
18540
|
|
17597
18541
|
const hybridField = {
|
17598
|
-
[vars$2.hostDirection]: refs.direction,
|
18542
|
+
[vars$2.hostDirection]: refs$1.direction,
|
17599
18543
|
|
17600
18544
|
// error message icon
|
17601
|
-
[vars$2.errorMessageIcon]: refs.errorMessageIcon,
|
17602
|
-
[vars$2.errorMessageIconSize]: refs.errorMessageIconSize,
|
17603
|
-
[vars$2.errorMessageIconPadding]: refs.errorMessageIconPadding,
|
17604
|
-
[vars$2.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
17605
|
-
[vars$2.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
18545
|
+
[vars$2.errorMessageIcon]: refs$1.errorMessageIcon,
|
18546
|
+
[vars$2.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
18547
|
+
[vars$2.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
18548
|
+
[vars$2.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
18549
|
+
[vars$2.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
17606
18550
|
|
17607
18551
|
_fullWidth: {
|
17608
18552
|
[vars$2.hostWidth]: '100%',
|
@@ -17729,7 +18673,7 @@ const alert = {
|
|
17729
18673
|
[vars$1.horizontalPadding]: '0',
|
17730
18674
|
[vars$1.verticalPadding]: '0',
|
17731
18675
|
[vars$1.gap]: `0.5em`,
|
17732
|
-
[vars$1.fontSize]: useVar(vars$
|
18676
|
+
[vars$1.fontSize]: useVar(vars$H.fontSize),
|
17733
18677
|
|
17734
18678
|
mode: {
|
17735
18679
|
error: {
|
@@ -17872,7 +18816,7 @@ const vars = Object.keys(components).reduce(
|
|
17872
18816
|
);
|
17873
18817
|
|
17874
18818
|
const defaultTheme = { globals: globals$1, components: theme };
|
17875
|
-
const themeVars = { globals: vars$
|
18819
|
+
const themeVars = { globals: vars$V, components: vars };
|
17876
18820
|
|
17877
18821
|
const colors = {
|
17878
18822
|
surface: {
|
@@ -18203,7 +19147,7 @@ const NotificationMixin = (superclass) =>
|
|
18203
19147
|
this.createCard();
|
18204
19148
|
|
18205
19149
|
forwardAttrs$1(this, this.#card);
|
18206
|
-
syncAttrs(this.#card, this, { includeAttrs: ['opened'] });
|
19150
|
+
syncAttrs$1(this.#card, this, { includeAttrs: ['opened'] });
|
18207
19151
|
|
18208
19152
|
this.baseElement.renderer = (cardRoot) => {
|
18209
19153
|
Array.from(this.childNodes).forEach((child) => cardRoot.appendChild(child));
|
@@ -18239,7 +19183,7 @@ const NotificationClass = compose$1(
|
|
18239
19183
|
hoverableMixin$1,
|
18240
19184
|
NotificationMixin
|
18241
19185
|
)(
|
18242
|
-
createProxy({
|
19186
|
+
createProxy$1({
|
18243
19187
|
wrappedEleName: 'vaadin-notification',
|
18244
19188
|
excludeAttrsSync: ['tabindex'],
|
18245
19189
|
componentName,
|
@@ -18257,6 +19201,7 @@ exports.ButtonSelectionGroupItemClass = ButtonSelectionGroupItemClass;
|
|
18257
19201
|
exports.CalendarClass = CalendarClass;
|
18258
19202
|
exports.CheckboxClass = CheckboxClass;
|
18259
19203
|
exports.CodeSnippetClass = CodeSnippetClass;
|
19204
|
+
exports.ComboBoxClass = ComboBoxClass;
|
18260
19205
|
exports.ContainerClass = ContainerClass;
|
18261
19206
|
exports.DateFieldClass = DateFieldClass;
|
18262
19207
|
exports.DividerClass = DividerClass;
|