@descope/web-components-ui 1.0.290 → 1.0.291
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +961 -820
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1188 -920
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1000.js +1 -1
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +2 -2
- package/dist/umd/mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js.js +1 -0
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -0
- package/package.json +1 -1
- package/src/components/mapping-fields/descope-mappings-field/MappingsFieldClass.js +14 -1
- package/src/components/mapping-fields/descope-mappings-field/descope-mapping-item/MappingItem.js +1 -1
- package/src/components/mapping-fields/descope-mappings-field/descope-mappings-field-internal/MappingsFieldInternal.js +2 -2
- package/src/components/mapping-fields/descope-saml-group-mappings/SamlGroupMappingsClass.js +110 -0
- package/src/components/mapping-fields/descope-saml-group-mappings/descope-saml-group-mappings-internal/SamlGroupMappingsInternal.js +136 -0
- package/src/components/mapping-fields/descope-saml-group-mappings/descope-saml-group-mappings-internal/index.js +3 -0
- package/src/components/mapping-fields/descope-saml-group-mappings/index.js +10 -0
- package/src/index.cjs.js +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/mixins/proxyInputMixin.js +7 -0
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/mappingsField.js +3 -1
- package/src/theme/components/samlGroupMappings.js +13 -0
package/dist/index.esm.js
CHANGED
@@ -971,6 +971,7 @@ const proxyInputMixin =
|
|
971
971
|
// allows us to set the event that should trigger validation
|
972
972
|
// it can be either a string or an array of strings (for multiple events)
|
973
973
|
inputEvent = 'input',
|
974
|
+
triggerValidationEvents = [],
|
974
975
|
// Proxies all validations from the parent component to the input element
|
975
976
|
proxyParentValidation = false,
|
976
977
|
}) =>
|
@@ -1059,6 +1060,12 @@ const proxyInputMixin =
|
|
1059
1060
|
}
|
1060
1061
|
};
|
1061
1062
|
|
1063
|
+
triggerValidationEvents.forEach((e) => {
|
1064
|
+
this.baseElement?.addEventListener(e, () => {
|
1065
|
+
this.inputElement?.setCustomValidity('');
|
1066
|
+
});
|
1067
|
+
});
|
1068
|
+
|
1062
1069
|
// on some cases the base element is not ready so the inputElement is empty
|
1063
1070
|
// we are deferring this section to make sure the base element is ready
|
1064
1071
|
setTimeout(() => {
|
@@ -1347,7 +1354,7 @@ const clickableMixin = (superclass) =>
|
|
1347
1354
|
}
|
1348
1355
|
};
|
1349
1356
|
|
1350
|
-
const componentName$
|
1357
|
+
const componentName$P = getComponentName('button');
|
1351
1358
|
|
1352
1359
|
const resetStyles = `
|
1353
1360
|
:host {
|
@@ -1385,7 +1392,7 @@ const iconStyles = `
|
|
1385
1392
|
|
1386
1393
|
const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
|
1387
1394
|
|
1388
|
-
const { host: host$
|
1395
|
+
const { host: host$l, label: label$a } = {
|
1389
1396
|
host: { selector: () => ':host' },
|
1390
1397
|
label: { selector: '::part(label)' },
|
1391
1398
|
};
|
@@ -1397,7 +1404,7 @@ const ButtonClass = compose(
|
|
1397
1404
|
mappings: {
|
1398
1405
|
hostWidth: { property: 'width' },
|
1399
1406
|
hostHeight: { property: 'height' },
|
1400
|
-
hostDirection: { ...host$
|
1407
|
+
hostDirection: { ...host$l, property: 'direction' },
|
1401
1408
|
fontSize: {},
|
1402
1409
|
fontFamily: {},
|
1403
1410
|
|
@@ -1449,7 +1456,7 @@ const ButtonClass = compose(
|
|
1449
1456
|
}
|
1450
1457
|
`,
|
1451
1458
|
excludeAttrsSync: ['tabindex'],
|
1452
|
-
componentName: componentName$
|
1459
|
+
componentName: componentName$P,
|
1453
1460
|
})
|
1454
1461
|
);
|
1455
1462
|
|
@@ -1486,7 +1493,7 @@ loadingIndicatorStyles = `
|
|
1486
1493
|
}
|
1487
1494
|
`;
|
1488
1495
|
|
1489
|
-
customElements.define(componentName$
|
1496
|
+
customElements.define(componentName$P, ButtonClass);
|
1490
1497
|
|
1491
1498
|
const createBaseInputClass = (...args) =>
|
1492
1499
|
compose(
|
@@ -1496,13 +1503,13 @@ const createBaseInputClass = (...args) =>
|
|
1496
1503
|
inputEventsDispatchingMixin
|
1497
1504
|
)(createBaseClass(...args));
|
1498
1505
|
|
1499
|
-
const componentName$
|
1506
|
+
const componentName$O = getComponentName('boolean-field-internal');
|
1500
1507
|
|
1501
1508
|
const forwardAttributes$1 = ['disabled', 'label', 'invalid', 'readonly'];
|
1502
1509
|
|
1503
|
-
const BaseInputClass$
|
1510
|
+
const BaseInputClass$8 = createBaseInputClass({ componentName: componentName$O, baseSelector: 'div' });
|
1504
1511
|
|
1505
|
-
class BooleanInputInternal extends BaseInputClass$
|
1512
|
+
class BooleanInputInternal extends BaseInputClass$8 {
|
1506
1513
|
static get observedAttributes() {
|
1507
1514
|
return ['readonly'];
|
1508
1515
|
}
|
@@ -1576,14 +1583,14 @@ const booleanFieldMixin = (superclass) =>
|
|
1576
1583
|
|
1577
1584
|
const template = document.createElement('template');
|
1578
1585
|
template.innerHTML = `
|
1579
|
-
<${componentName$
|
1586
|
+
<${componentName$O}
|
1580
1587
|
tabindex="-1"
|
1581
1588
|
slot="input"
|
1582
|
-
></${componentName$
|
1589
|
+
></${componentName$O}>
|
1583
1590
|
`;
|
1584
1591
|
|
1585
1592
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
1586
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
1593
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$O);
|
1587
1594
|
this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
|
1588
1595
|
|
1589
1596
|
forwardAttrs(this, this.inputElement, {
|
@@ -1782,10 +1789,10 @@ descope-boolean-field-internal {
|
|
1782
1789
|
}
|
1783
1790
|
`;
|
1784
1791
|
|
1785
|
-
const componentName$
|
1792
|
+
const componentName$N = getComponentName('checkbox');
|
1786
1793
|
|
1787
1794
|
const {
|
1788
|
-
host: host$
|
1795
|
+
host: host$k,
|
1789
1796
|
component: component$1,
|
1790
1797
|
checkboxElement,
|
1791
1798
|
checkboxSurface,
|
@@ -1807,10 +1814,10 @@ const {
|
|
1807
1814
|
const CheckboxClass = compose(
|
1808
1815
|
createStyleMixin({
|
1809
1816
|
mappings: {
|
1810
|
-
hostWidth: { ...host$
|
1811
|
-
hostDirection: { ...host$
|
1817
|
+
hostWidth: { ...host$k, property: 'width' },
|
1818
|
+
hostDirection: { ...host$k, property: 'direction' },
|
1812
1819
|
|
1813
|
-
fontSize: [host$
|
1820
|
+
fontSize: [host$k, checkboxElement, checkboxLabel$1],
|
1814
1821
|
fontFamily: [checkboxLabel$1, helperText$a, errorMessage$c],
|
1815
1822
|
|
1816
1823
|
labelTextColor: { ...checkboxLabel$1, property: 'color' },
|
@@ -1888,18 +1895,18 @@ const CheckboxClass = compose(
|
|
1888
1895
|
}
|
1889
1896
|
`,
|
1890
1897
|
excludeAttrsSync: ['label', 'tabindex'],
|
1891
|
-
componentName: componentName$
|
1898
|
+
componentName: componentName$N,
|
1892
1899
|
})
|
1893
1900
|
);
|
1894
1901
|
|
1895
|
-
customElements.define(componentName$
|
1902
|
+
customElements.define(componentName$O, BooleanInputInternal);
|
1896
1903
|
|
1897
|
-
customElements.define(componentName$
|
1904
|
+
customElements.define(componentName$N, CheckboxClass);
|
1898
1905
|
|
1899
|
-
const componentName$
|
1906
|
+
const componentName$M = getComponentName('switch-toggle');
|
1900
1907
|
|
1901
1908
|
const {
|
1902
|
-
host: host$
|
1909
|
+
host: host$j,
|
1903
1910
|
component,
|
1904
1911
|
checkboxElement: track,
|
1905
1912
|
checkboxSurface: knob,
|
@@ -1921,8 +1928,8 @@ const {
|
|
1921
1928
|
const SwitchToggleClass = compose(
|
1922
1929
|
createStyleMixin({
|
1923
1930
|
mappings: {
|
1924
|
-
hostWidth: { ...host$
|
1925
|
-
hostDirection: { ...host$
|
1931
|
+
hostWidth: { ...host$j, property: 'width' },
|
1932
|
+
hostDirection: { ...host$j, property: 'direction' },
|
1926
1933
|
|
1927
1934
|
fontSize: [component, checkboxLabel, checkboxLabel],
|
1928
1935
|
fontFamily: [checkboxLabel, helperText$9, errorMessage$b],
|
@@ -2028,17 +2035,17 @@ const SwitchToggleClass = compose(
|
|
2028
2035
|
}
|
2029
2036
|
`,
|
2030
2037
|
excludeAttrsSync: ['label', 'tabindex'],
|
2031
|
-
componentName: componentName$
|
2038
|
+
componentName: componentName$M,
|
2032
2039
|
})
|
2033
2040
|
);
|
2034
2041
|
|
2035
|
-
customElements.define(componentName$
|
2042
|
+
customElements.define(componentName$M, SwitchToggleClass);
|
2036
2043
|
|
2037
|
-
const componentName$
|
2044
|
+
const componentName$L = getComponentName('loader-linear');
|
2038
2045
|
|
2039
|
-
class RawLoaderLinear extends createBaseClass({ componentName: componentName$
|
2046
|
+
class RawLoaderLinear extends createBaseClass({ componentName: componentName$L, baseSelector: ':host > div' }) {
|
2040
2047
|
static get componentName() {
|
2041
|
-
return componentName$
|
2048
|
+
return componentName$L;
|
2042
2049
|
}
|
2043
2050
|
|
2044
2051
|
constructor() {
|
@@ -2074,18 +2081,18 @@ const selectors$2 = {
|
|
2074
2081
|
host: { selector: () => ':host' },
|
2075
2082
|
};
|
2076
2083
|
|
2077
|
-
const { after: after$1, host: host$
|
2084
|
+
const { after: after$1, host: host$i } = selectors$2;
|
2078
2085
|
|
2079
2086
|
const LoaderLinearClass = compose(
|
2080
2087
|
createStyleMixin({
|
2081
2088
|
mappings: {
|
2082
2089
|
hostDisplay: {},
|
2083
|
-
hostWidth: { ...host$
|
2090
|
+
hostWidth: { ...host$i, property: 'width' },
|
2084
2091
|
barHeight: [{ property: 'height' }, { ...after$1, property: 'height' }],
|
2085
2092
|
barBorderRadius: [{ property: 'border-radius' }, { ...after$1, property: 'border-radius' }],
|
2086
2093
|
verticalPadding: [
|
2087
|
-
{ ...host$
|
2088
|
-
{ ...host$
|
2094
|
+
{ ...host$i, property: 'padding-top' },
|
2095
|
+
{ ...host$i, property: 'padding-bottom' },
|
2089
2096
|
],
|
2090
2097
|
barBackgroundColor: { property: 'background-color' },
|
2091
2098
|
barColor: { ...after$1, property: 'background-color' },
|
@@ -2099,11 +2106,11 @@ const LoaderLinearClass = compose(
|
|
2099
2106
|
componentNameValidationMixin
|
2100
2107
|
)(RawLoaderLinear);
|
2101
2108
|
|
2102
|
-
customElements.define(componentName$
|
2109
|
+
customElements.define(componentName$L, LoaderLinearClass);
|
2103
2110
|
|
2104
|
-
const componentName$
|
2111
|
+
const componentName$K = getComponentName('loader-radial');
|
2105
2112
|
|
2106
|
-
class RawLoaderRadial extends createBaseClass({ componentName: componentName$
|
2113
|
+
class RawLoaderRadial extends createBaseClass({ componentName: componentName$K, baseSelector: ':host > div' }) {
|
2107
2114
|
constructor() {
|
2108
2115
|
super();
|
2109
2116
|
|
@@ -2147,11 +2154,11 @@ const LoaderRadialClass = compose(
|
|
2147
2154
|
componentNameValidationMixin
|
2148
2155
|
)(RawLoaderRadial);
|
2149
2156
|
|
2150
|
-
customElements.define(componentName$
|
2157
|
+
customElements.define(componentName$K, LoaderRadialClass);
|
2151
2158
|
|
2152
|
-
const componentName$
|
2159
|
+
const componentName$J = getComponentName('container');
|
2153
2160
|
|
2154
|
-
class RawContainer extends createBaseClass({ componentName: componentName$
|
2161
|
+
class RawContainer extends createBaseClass({ componentName: componentName$J, baseSelector: 'slot' }) {
|
2155
2162
|
constructor() {
|
2156
2163
|
super();
|
2157
2164
|
|
@@ -2204,13 +2211,13 @@ const ContainerClass = compose(
|
|
2204
2211
|
componentNameValidationMixin
|
2205
2212
|
)(RawContainer);
|
2206
2213
|
|
2207
|
-
customElements.define(componentName$
|
2214
|
+
customElements.define(componentName$J, ContainerClass);
|
2208
2215
|
|
2209
2216
|
// eslint-disable-next-line max-classes-per-file
|
2210
2217
|
|
2211
|
-
const componentName$
|
2218
|
+
const componentName$I = getComponentName('text');
|
2212
2219
|
|
2213
|
-
class RawText extends createBaseClass({ componentName: componentName$
|
2220
|
+
class RawText extends createBaseClass({ componentName: componentName$I, baseSelector: ':host > slot' }) {
|
2214
2221
|
constructor() {
|
2215
2222
|
super();
|
2216
2223
|
|
@@ -2270,8 +2277,8 @@ const TextClass = compose(
|
|
2270
2277
|
customTextMixin
|
2271
2278
|
)(RawText);
|
2272
2279
|
|
2273
|
-
const componentName$
|
2274
|
-
class RawDivider extends createBaseClass({ componentName: componentName$
|
2280
|
+
const componentName$H = getComponentName('divider');
|
2281
|
+
class RawDivider extends createBaseClass({ componentName: componentName$H, baseSelector: ':host > div' }) {
|
2275
2282
|
constructor() {
|
2276
2283
|
super();
|
2277
2284
|
|
@@ -2317,7 +2324,7 @@ class RawDivider extends createBaseClass({ componentName: componentName$F, baseS
|
|
2317
2324
|
}
|
2318
2325
|
|
2319
2326
|
const textVars$3 = TextClass.cssVarList;
|
2320
|
-
const { host: host$
|
2327
|
+
const { host: host$h, before, after, text: text$3 } = {
|
2321
2328
|
host: { selector: () => ':host' },
|
2322
2329
|
before: { selector: '::before' },
|
2323
2330
|
after: { selector: '::after' },
|
@@ -2327,8 +2334,8 @@ const { host: host$g, before, after, text: text$3 } = {
|
|
2327
2334
|
const DividerClass = compose(
|
2328
2335
|
createStyleMixin({
|
2329
2336
|
mappings: {
|
2330
|
-
hostWidth: { ...host$
|
2331
|
-
hostPadding: { ...host$
|
2337
|
+
hostWidth: { ...host$h, property: 'width' },
|
2338
|
+
hostPadding: { ...host$h, property: 'padding' },
|
2332
2339
|
hostDirection: { ...text$3, property: 'direction' },
|
2333
2340
|
|
2334
2341
|
minHeight: {},
|
@@ -2370,12 +2377,12 @@ const DividerClass = compose(
|
|
2370
2377
|
componentNameValidationMixin
|
2371
2378
|
)(RawDivider);
|
2372
2379
|
|
2373
|
-
customElements.define(componentName$
|
2380
|
+
customElements.define(componentName$I, TextClass);
|
2374
2381
|
|
2375
|
-
customElements.define(componentName$
|
2382
|
+
customElements.define(componentName$H, DividerClass);
|
2376
2383
|
|
2377
2384
|
const {
|
2378
|
-
host: host$
|
2385
|
+
host: host$g,
|
2379
2386
|
label: label$9,
|
2380
2387
|
placeholder: placeholder$3,
|
2381
2388
|
requiredIndicator: requiredIndicator$9,
|
@@ -2400,12 +2407,12 @@ const {
|
|
2400
2407
|
|
2401
2408
|
var textFieldMappings = {
|
2402
2409
|
// we apply font-size also on the host so we can set its width with em
|
2403
|
-
fontSize: [{}, host$
|
2410
|
+
fontSize: [{}, host$g],
|
2404
2411
|
fontFamily: [label$9, inputField$6, helperText$8, errorMessage$a],
|
2405
2412
|
|
2406
|
-
hostWidth: { ...host$
|
2407
|
-
hostMinWidth: { ...host$
|
2408
|
-
hostDirection: { ...host$
|
2413
|
+
hostWidth: { ...host$g, property: 'width' },
|
2414
|
+
hostMinWidth: { ...host$g, property: 'min-width' },
|
2415
|
+
hostDirection: { ...host$g, property: 'direction' },
|
2409
2416
|
|
2410
2417
|
inputBackgroundColor: { ...inputField$6, property: 'background-color' },
|
2411
2418
|
|
@@ -2450,9 +2457,9 @@ var textFieldMappings = {
|
|
2450
2457
|
],
|
2451
2458
|
};
|
2452
2459
|
|
2453
|
-
const componentName$
|
2460
|
+
const componentName$G = getComponentName('email-field');
|
2454
2461
|
|
2455
|
-
const customMixin$
|
2462
|
+
const customMixin$8 = (superclass) =>
|
2456
2463
|
class EmailFieldMixinClass extends superclass {
|
2457
2464
|
init() {
|
2458
2465
|
super.init?.();
|
@@ -2466,7 +2473,7 @@ const EmailFieldClass = compose(
|
|
2466
2473
|
draggableMixin,
|
2467
2474
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
2468
2475
|
componentNameValidationMixin,
|
2469
|
-
customMixin$
|
2476
|
+
customMixin$8
|
2470
2477
|
)(
|
2471
2478
|
createProxy({
|
2472
2479
|
slots: ['', 'suffix'],
|
@@ -2485,15 +2492,15 @@ const EmailFieldClass = compose(
|
|
2485
2492
|
${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
|
2486
2493
|
`,
|
2487
2494
|
excludeAttrsSync: ['tabindex'],
|
2488
|
-
componentName: componentName$
|
2495
|
+
componentName: componentName$G,
|
2489
2496
|
})
|
2490
2497
|
);
|
2491
2498
|
|
2492
|
-
customElements.define(componentName$
|
2499
|
+
customElements.define(componentName$G, EmailFieldClass);
|
2493
2500
|
|
2494
|
-
const componentName$
|
2501
|
+
const componentName$F = getComponentName('link');
|
2495
2502
|
|
2496
|
-
class RawLink extends createBaseClass({ componentName: componentName$
|
2503
|
+
class RawLink extends createBaseClass({ componentName: componentName$F, baseSelector: ':host a' }) {
|
2497
2504
|
constructor() {
|
2498
2505
|
super();
|
2499
2506
|
|
@@ -2539,12 +2546,12 @@ const selectors$1 = {
|
|
2539
2546
|
text: { selector: () => TextClass.componentName },
|
2540
2547
|
};
|
2541
2548
|
|
2542
|
-
const { anchor, text: text$2, host: host$
|
2549
|
+
const { anchor, text: text$2, host: host$f, wrapper: wrapper$1 } = selectors$1;
|
2543
2550
|
|
2544
2551
|
const LinkClass = compose(
|
2545
2552
|
createStyleMixin({
|
2546
2553
|
mappings: {
|
2547
|
-
hostWidth: { ...host$
|
2554
|
+
hostWidth: { ...host$f, property: 'width' },
|
2548
2555
|
hostDirection: { ...text$2, property: 'direction' },
|
2549
2556
|
textAlign: wrapper$1,
|
2550
2557
|
textColor: [
|
@@ -2558,7 +2565,7 @@ const LinkClass = compose(
|
|
2558
2565
|
componentNameValidationMixin
|
2559
2566
|
)(RawLink);
|
2560
2567
|
|
2561
|
-
customElements.define(componentName$
|
2568
|
+
customElements.define(componentName$F, LinkClass);
|
2562
2569
|
|
2563
2570
|
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
2564
2571
|
let style;
|
@@ -2610,37 +2617,37 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
|
|
2610
2617
|
return CssVarImageClass;
|
2611
2618
|
};
|
2612
2619
|
|
2613
|
-
const componentName$
|
2620
|
+
const componentName$E = getComponentName('logo');
|
2614
2621
|
|
2615
2622
|
const LogoClass = createCssVarImageClass({
|
2616
|
-
componentName: componentName$
|
2623
|
+
componentName: componentName$E,
|
2617
2624
|
varName: 'url',
|
2618
2625
|
fallbackVarName: 'fallbackUrl',
|
2619
2626
|
});
|
2620
2627
|
|
2621
|
-
customElements.define(componentName$
|
2628
|
+
customElements.define(componentName$E, LogoClass);
|
2622
2629
|
|
2623
|
-
const componentName$
|
2630
|
+
const componentName$D = getComponentName('totp-image');
|
2624
2631
|
|
2625
2632
|
const TotpImageClass = createCssVarImageClass({
|
2626
|
-
componentName: componentName$
|
2633
|
+
componentName: componentName$D,
|
2627
2634
|
varName: 'url',
|
2628
2635
|
fallbackVarName: 'fallbackUrl',
|
2629
2636
|
});
|
2630
2637
|
|
2631
|
-
customElements.define(componentName$
|
2638
|
+
customElements.define(componentName$D, TotpImageClass);
|
2632
2639
|
|
2633
|
-
const componentName$
|
2640
|
+
const componentName$C = getComponentName('notp-image');
|
2634
2641
|
|
2635
2642
|
const NotpImageClass = createCssVarImageClass({
|
2636
|
-
componentName: componentName$
|
2643
|
+
componentName: componentName$C,
|
2637
2644
|
varName: 'url',
|
2638
2645
|
fallbackVarName: 'fallbackUrl',
|
2639
2646
|
});
|
2640
2647
|
|
2641
|
-
customElements.define(componentName$
|
2648
|
+
customElements.define(componentName$C, NotpImageClass);
|
2642
2649
|
|
2643
|
-
const componentName$
|
2650
|
+
const componentName$B = getComponentName('number-field');
|
2644
2651
|
|
2645
2652
|
const NumberFieldClass = compose(
|
2646
2653
|
createStyleMixin({
|
@@ -2666,11 +2673,11 @@ const NumberFieldClass = compose(
|
|
2666
2673
|
${resetInputOverrides('vaadin-number-field', NumberFieldClass.cssVarList)}
|
2667
2674
|
`,
|
2668
2675
|
excludeAttrsSync: ['tabindex'],
|
2669
|
-
componentName: componentName$
|
2676
|
+
componentName: componentName$B,
|
2670
2677
|
})
|
2671
2678
|
);
|
2672
2679
|
|
2673
|
-
customElements.define(componentName$
|
2680
|
+
customElements.define(componentName$B, NumberFieldClass);
|
2674
2681
|
|
2675
2682
|
const focusElement = (ele) => {
|
2676
2683
|
ele?.focus();
|
@@ -2688,17 +2695,17 @@ const getSanitizedCharacters = (str) => {
|
|
2688
2695
|
|
2689
2696
|
/* eslint-disable no-param-reassign */
|
2690
2697
|
|
2691
|
-
const componentName$
|
2698
|
+
const componentName$A = getComponentName('passcode-internal');
|
2692
2699
|
|
2693
2700
|
const observedAttributes$5 = ['digits', 'loading'];
|
2694
2701
|
|
2695
2702
|
const forwardAttributes = ['disabled', 'bordered', 'size', 'invalid', 'readonly'];
|
2696
2703
|
|
2697
|
-
const BaseInputClass$
|
2704
|
+
const BaseInputClass$7 = createBaseInputClass({ componentName: componentName$A, baseSelector: 'div' });
|
2698
2705
|
|
2699
|
-
class PasscodeInternal extends BaseInputClass$
|
2706
|
+
class PasscodeInternal extends BaseInputClass$7 {
|
2700
2707
|
static get observedAttributes() {
|
2701
|
-
return observedAttributes$5.concat(BaseInputClass$
|
2708
|
+
return observedAttributes$5.concat(BaseInputClass$7.observedAttributes || []);
|
2702
2709
|
}
|
2703
2710
|
|
2704
2711
|
constructor() {
|
@@ -2920,11 +2927,11 @@ class PasscodeInternal extends BaseInputClass$6 {
|
|
2920
2927
|
}
|
2921
2928
|
}
|
2922
2929
|
|
2923
|
-
const componentName$
|
2930
|
+
const componentName$z = getComponentName('text-field');
|
2924
2931
|
|
2925
2932
|
const observedAttrs = ['type'];
|
2926
2933
|
|
2927
|
-
const customMixin$
|
2934
|
+
const customMixin$7 = (superclass) =>
|
2928
2935
|
class TextFieldClass extends superclass {
|
2929
2936
|
static get observedAttributes() {
|
2930
2937
|
return observedAttrs.concat(superclass.observedAttributes || []);
|
@@ -2951,7 +2958,7 @@ const TextFieldClass = compose(
|
|
2951
2958
|
draggableMixin,
|
2952
2959
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
2953
2960
|
componentNameValidationMixin,
|
2954
|
-
customMixin$
|
2961
|
+
customMixin$7
|
2955
2962
|
)(
|
2956
2963
|
createProxy({
|
2957
2964
|
slots: ['prefix', 'suffix'],
|
@@ -2970,15 +2977,15 @@ const TextFieldClass = compose(
|
|
2970
2977
|
${resetInputOverrides('vaadin-text-field', TextFieldClass.cssVarList)}
|
2971
2978
|
`,
|
2972
2979
|
excludeAttrsSync: ['tabindex'],
|
2973
|
-
componentName: componentName$
|
2980
|
+
componentName: componentName$z,
|
2974
2981
|
})
|
2975
2982
|
);
|
2976
2983
|
|
2977
|
-
const componentName$
|
2984
|
+
const componentName$y = getComponentName('passcode');
|
2978
2985
|
|
2979
2986
|
const observedAttributes$4 = ['digits'];
|
2980
2987
|
|
2981
|
-
const customMixin$
|
2988
|
+
const customMixin$6 = (superclass) =>
|
2982
2989
|
class PasscodeMixinClass extends superclass {
|
2983
2990
|
static get observedAttributes() {
|
2984
2991
|
return observedAttributes$4.concat(superclass.observedAttributes || []);
|
@@ -2993,17 +3000,17 @@ const customMixin$5 = (superclass) =>
|
|
2993
3000
|
const template = document.createElement('template');
|
2994
3001
|
|
2995
3002
|
template.innerHTML = `
|
2996
|
-
<${componentName$
|
3003
|
+
<${componentName$A}
|
2997
3004
|
bordered="true"
|
2998
3005
|
name="code"
|
2999
3006
|
tabindex="-1"
|
3000
3007
|
slot="input"
|
3001
|
-
><slot></slot></${componentName$
|
3008
|
+
><slot></slot></${componentName$A}>
|
3002
3009
|
`;
|
3003
3010
|
|
3004
3011
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
3005
3012
|
|
3006
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
3013
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$A);
|
3007
3014
|
|
3008
3015
|
forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size', 'loading'] });
|
3009
3016
|
}
|
@@ -3018,7 +3025,7 @@ const customMixin$5 = (superclass) =>
|
|
3018
3025
|
};
|
3019
3026
|
|
3020
3027
|
const {
|
3021
|
-
host: host$
|
3028
|
+
host: host$e,
|
3022
3029
|
digitField,
|
3023
3030
|
label: label$8,
|
3024
3031
|
requiredIndicator: requiredIndicator$8,
|
@@ -3041,10 +3048,10 @@ const loaderVars = LoaderRadialClass.cssVarList;
|
|
3041
3048
|
const PasscodeClass = compose(
|
3042
3049
|
createStyleMixin({
|
3043
3050
|
mappings: {
|
3044
|
-
fontSize: [{ ...digitField, property: textVars$2.fontSize }, host$
|
3051
|
+
fontSize: [{ ...digitField, property: textVars$2.fontSize }, host$e],
|
3045
3052
|
hostWidth: { property: 'width' },
|
3046
|
-
hostDirection: { ...host$
|
3047
|
-
fontFamily: [host$
|
3053
|
+
hostDirection: { ...host$e, property: 'direction' },
|
3054
|
+
fontFamily: [host$e, { ...label$8 }],
|
3048
3055
|
labelTextColor: [
|
3049
3056
|
{ ...label$8, property: 'color' },
|
3050
3057
|
{ ...requiredIndicator$8, property: 'color' },
|
@@ -3074,7 +3081,7 @@ const PasscodeClass = compose(
|
|
3074
3081
|
draggableMixin,
|
3075
3082
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
3076
3083
|
componentNameValidationMixin,
|
3077
|
-
customMixin$
|
3084
|
+
customMixin$6
|
3078
3085
|
)(
|
3079
3086
|
createProxy({
|
3080
3087
|
slots: [],
|
@@ -3150,15 +3157,15 @@ const PasscodeClass = compose(
|
|
3150
3157
|
${resetInputCursor('vaadin-text-field')}
|
3151
3158
|
`,
|
3152
3159
|
excludeAttrsSync: ['tabindex'],
|
3153
|
-
componentName: componentName$
|
3160
|
+
componentName: componentName$y,
|
3154
3161
|
})
|
3155
3162
|
);
|
3156
3163
|
|
3157
|
-
customElements.define(componentName$
|
3164
|
+
customElements.define(componentName$z, TextFieldClass);
|
3158
3165
|
|
3159
|
-
customElements.define(componentName$
|
3166
|
+
customElements.define(componentName$A, PasscodeInternal);
|
3160
3167
|
|
3161
|
-
customElements.define(componentName$
|
3168
|
+
customElements.define(componentName$y, PasscodeClass);
|
3162
3169
|
|
3163
3170
|
const passwordDraggableMixin = (superclass) =>
|
3164
3171
|
class PasswordDraggableMixinClass extends superclass {
|
@@ -3194,10 +3201,10 @@ const passwordDraggableMixin = (superclass) =>
|
|
3194
3201
|
}
|
3195
3202
|
};
|
3196
3203
|
|
3197
|
-
const componentName$
|
3204
|
+
const componentName$x = getComponentName('password');
|
3198
3205
|
|
3199
3206
|
const {
|
3200
|
-
host: host$
|
3207
|
+
host: host$d,
|
3201
3208
|
inputField: inputField$5,
|
3202
3209
|
inputElement: inputElement$2,
|
3203
3210
|
inputElementPlaceholder,
|
@@ -3223,10 +3230,10 @@ const {
|
|
3223
3230
|
const PasswordClass = compose(
|
3224
3231
|
createStyleMixin({
|
3225
3232
|
mappings: {
|
3226
|
-
hostWidth: { ...host$
|
3227
|
-
hostMinWidth: { ...host$
|
3228
|
-
hostDirection: { ...host$
|
3229
|
-
fontSize: [{}, host$
|
3233
|
+
hostWidth: { ...host$d, property: 'width' },
|
3234
|
+
hostMinWidth: { ...host$d, property: 'min-width' },
|
3235
|
+
hostDirection: { ...host$d, property: 'direction' },
|
3236
|
+
fontSize: [{}, host$d],
|
3230
3237
|
fontFamily: [label$7, inputField$5, errorMessage$8, helperText$7],
|
3231
3238
|
inputHeight: { ...inputField$5, property: 'height' },
|
3232
3239
|
inputHorizontalPadding: [
|
@@ -3323,16 +3330,16 @@ const PasswordClass = compose(
|
|
3323
3330
|
}
|
3324
3331
|
`,
|
3325
3332
|
excludeAttrsSync: ['tabindex'],
|
3326
|
-
componentName: componentName$
|
3333
|
+
componentName: componentName$x,
|
3327
3334
|
})
|
3328
3335
|
);
|
3329
3336
|
|
3330
|
-
customElements.define(componentName$
|
3337
|
+
customElements.define(componentName$x, PasswordClass);
|
3331
3338
|
|
3332
|
-
const componentName$
|
3339
|
+
const componentName$w = getComponentName('text-area');
|
3333
3340
|
|
3334
3341
|
const {
|
3335
|
-
host: host$
|
3342
|
+
host: host$c,
|
3336
3343
|
label: label$6,
|
3337
3344
|
placeholder: placeholder$2,
|
3338
3345
|
inputField: inputField$4,
|
@@ -3354,10 +3361,10 @@ const {
|
|
3354
3361
|
const TextAreaClass = compose(
|
3355
3362
|
createStyleMixin({
|
3356
3363
|
mappings: {
|
3357
|
-
hostWidth: { ...host$
|
3358
|
-
hostMinWidth: { ...host$
|
3359
|
-
hostDirection: { ...host$
|
3360
|
-
fontSize: [host$
|
3364
|
+
hostWidth: { ...host$c, property: 'width' },
|
3365
|
+
hostMinWidth: { ...host$c, property: 'min-width' },
|
3366
|
+
hostDirection: { ...host$c, property: 'direction' },
|
3367
|
+
fontSize: [host$c, textArea$2],
|
3361
3368
|
fontFamily: [label$6, inputField$4, helperText$6, errorMessage$7],
|
3362
3369
|
labelTextColor: [
|
3363
3370
|
{ ...label$6, property: 'color' },
|
@@ -3405,17 +3412,17 @@ const TextAreaClass = compose(
|
|
3405
3412
|
${resetInputCursor('vaadin-text-area')}
|
3406
3413
|
`,
|
3407
3414
|
excludeAttrsSync: ['tabindex'],
|
3408
|
-
componentName: componentName$
|
3415
|
+
componentName: componentName$w,
|
3409
3416
|
})
|
3410
3417
|
);
|
3411
3418
|
|
3412
|
-
customElements.define(componentName$
|
3419
|
+
customElements.define(componentName$w, TextAreaClass);
|
3413
3420
|
|
3414
3421
|
const observedAttributes$3 = ['src', 'alt'];
|
3415
3422
|
|
3416
|
-
const componentName$
|
3423
|
+
const componentName$v = getComponentName('image');
|
3417
3424
|
|
3418
|
-
const BaseClass$1 = createBaseClass({ componentName: componentName$
|
3425
|
+
const BaseClass$1 = createBaseClass({ componentName: componentName$v, baseSelector: ':host > img' });
|
3419
3426
|
class RawImage extends BaseClass$1 {
|
3420
3427
|
static get observedAttributes() {
|
3421
3428
|
return observedAttributes$3.concat(BaseClass$1.observedAttributes || []);
|
@@ -3455,9 +3462,9 @@ const ImageClass = compose(
|
|
3455
3462
|
draggableMixin
|
3456
3463
|
)(RawImage);
|
3457
3464
|
|
3458
|
-
customElements.define(componentName$
|
3465
|
+
customElements.define(componentName$v, ImageClass);
|
3459
3466
|
|
3460
|
-
const componentName$
|
3467
|
+
const componentName$u = getComponentName('combo-box');
|
3461
3468
|
|
3462
3469
|
const ComboBoxMixin = (superclass) =>
|
3463
3470
|
class ComboBoxMixinClass extends superclass {
|
@@ -3683,7 +3690,7 @@ const ComboBoxMixin = (superclass) =>
|
|
3683
3690
|
};
|
3684
3691
|
|
3685
3692
|
const {
|
3686
|
-
host: host$
|
3693
|
+
host: host$b,
|
3687
3694
|
inputField: inputField$3,
|
3688
3695
|
inputElement: inputElement$1,
|
3689
3696
|
placeholder: placeholder$1,
|
@@ -3709,10 +3716,10 @@ const {
|
|
3709
3716
|
const ComboBoxClass = compose(
|
3710
3717
|
createStyleMixin({
|
3711
3718
|
mappings: {
|
3712
|
-
hostWidth: { ...host$
|
3713
|
-
hostDirection: { ...host$
|
3719
|
+
hostWidth: { ...host$b, property: 'width' },
|
3720
|
+
hostDirection: { ...host$b, property: 'direction' },
|
3714
3721
|
// we apply font-size also on the host so we can set its width with em
|
3715
|
-
fontSize: [{}, host$
|
3722
|
+
fontSize: [{}, host$b],
|
3716
3723
|
fontFamily: [label$5, placeholder$1, inputField$3, helperText$5, errorMessage$6],
|
3717
3724
|
labelTextColor: [
|
3718
3725
|
{ ...label$5, property: 'color' },
|
@@ -3840,12 +3847,12 @@ const ComboBoxClass = compose(
|
|
3840
3847
|
// and reset items to an empty array, and opening the list box with no items
|
3841
3848
|
// to display.
|
3842
3849
|
excludeAttrsSync: ['tabindex', 'size', 'data'],
|
3843
|
-
componentName: componentName$
|
3850
|
+
componentName: componentName$u,
|
3844
3851
|
includeForwardProps: ['items', 'renderer', 'selectedItem'],
|
3845
3852
|
})
|
3846
3853
|
);
|
3847
3854
|
|
3848
|
-
customElements.define(componentName$
|
3855
|
+
customElements.define(componentName$u, ComboBoxClass);
|
3849
3856
|
|
3850
3857
|
var CountryCodes = [
|
3851
3858
|
// United States should be the first option
|
@@ -5088,7 +5095,7 @@ const comboBoxItem = ({ code, dialCode, name: country }) => `
|
|
5088
5095
|
</div>
|
5089
5096
|
`;
|
5090
5097
|
|
5091
|
-
const componentName$
|
5098
|
+
const componentName$t = getComponentName('phone-field-internal');
|
5092
5099
|
|
5093
5100
|
const commonAttrs$1 = ['disabled', 'size', 'bordered', 'invalid', 'readonly'];
|
5094
5101
|
const countryAttrs = ['country-input-placeholder', 'default-code', 'restrict-countries'];
|
@@ -5100,11 +5107,11 @@ const mapAttrs$1 = {
|
|
5100
5107
|
|
5101
5108
|
const inputRelatedAttrs$1 = [].concat(commonAttrs$1, countryAttrs, phoneAttrs);
|
5102
5109
|
|
5103
|
-
const BaseInputClass$
|
5110
|
+
const BaseInputClass$6 = createBaseInputClass({ componentName: componentName$t, baseSelector: 'div' });
|
5104
5111
|
|
5105
|
-
let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$
|
5112
|
+
let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$6 {
|
5106
5113
|
static get observedAttributes() {
|
5107
|
-
return [].concat(BaseInputClass$
|
5114
|
+
return [].concat(BaseInputClass$6.observedAttributes || [], inputRelatedAttrs$1);
|
5108
5115
|
}
|
5109
5116
|
|
5110
5117
|
constructor() {
|
@@ -5272,14 +5279,14 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$5 {
|
|
5272
5279
|
}
|
5273
5280
|
};
|
5274
5281
|
|
5275
|
-
customElements.define(componentName$
|
5282
|
+
customElements.define(componentName$t, PhoneFieldInternal$1);
|
5276
5283
|
|
5277
5284
|
const textVars$1 = TextFieldClass.cssVarList;
|
5278
5285
|
const comboVars = ComboBoxClass.cssVarList;
|
5279
5286
|
|
5280
|
-
const componentName$
|
5287
|
+
const componentName$s = getComponentName('phone-field');
|
5281
5288
|
|
5282
|
-
const customMixin$
|
5289
|
+
const customMixin$5 = (superclass) =>
|
5283
5290
|
class PhoneFieldMixinClass extends superclass {
|
5284
5291
|
static get CountryCodes() {
|
5285
5292
|
return CountryCodes;
|
@@ -5291,15 +5298,15 @@ const customMixin$4 = (superclass) =>
|
|
5291
5298
|
const template = document.createElement('template');
|
5292
5299
|
|
5293
5300
|
template.innerHTML = `
|
5294
|
-
<${componentName$
|
5301
|
+
<${componentName$t}
|
5295
5302
|
tabindex="-1"
|
5296
5303
|
slot="input"
|
5297
|
-
></${componentName$
|
5304
|
+
></${componentName$t}>
|
5298
5305
|
`;
|
5299
5306
|
|
5300
5307
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
5301
5308
|
|
5302
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
5309
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$t);
|
5303
5310
|
|
5304
5311
|
forwardAttrs(this.shadowRoot.host, this.inputElement, {
|
5305
5312
|
includeAttrs: [
|
@@ -5319,7 +5326,7 @@ const customMixin$4 = (superclass) =>
|
|
5319
5326
|
};
|
5320
5327
|
|
5321
5328
|
const {
|
5322
|
-
host: host$
|
5329
|
+
host: host$a,
|
5323
5330
|
label: label$4,
|
5324
5331
|
requiredIndicator: requiredIndicator$4,
|
5325
5332
|
inputField: inputField$2,
|
@@ -5344,7 +5351,7 @@ const PhoneFieldClass = compose(
|
|
5344
5351
|
createStyleMixin({
|
5345
5352
|
mappings: {
|
5346
5353
|
fontSize: [
|
5347
|
-
host$
|
5354
|
+
host$a,
|
5348
5355
|
inputField$2,
|
5349
5356
|
{
|
5350
5357
|
selector: TextFieldClass.componentName,
|
@@ -5365,11 +5372,11 @@ const PhoneFieldClass = compose(
|
|
5365
5372
|
},
|
5366
5373
|
],
|
5367
5374
|
hostWidth: [
|
5368
|
-
{ ...host$
|
5375
|
+
{ ...host$a, property: 'width' },
|
5369
5376
|
{ ...phoneInput$1, property: 'width' },
|
5370
5377
|
{ ...countryCodeInput, property: '--vaadin-combo-box-overlay-width' },
|
5371
5378
|
],
|
5372
|
-
hostDirection: { ...host$
|
5379
|
+
hostDirection: { ...host$a, property: 'direction' },
|
5373
5380
|
|
5374
5381
|
inputBorderStyle: [
|
5375
5382
|
{ ...inputField$2, property: 'border-style' },
|
@@ -5419,7 +5426,7 @@ const PhoneFieldClass = compose(
|
|
5419
5426
|
}),
|
5420
5427
|
draggableMixin,
|
5421
5428
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
5422
|
-
customMixin$
|
5429
|
+
customMixin$5
|
5423
5430
|
)(
|
5424
5431
|
createProxy({
|
5425
5432
|
slots: [],
|
@@ -5495,17 +5502,17 @@ const PhoneFieldClass = compose(
|
|
5495
5502
|
${resetInputLabelPosition('vaadin-text-field')}
|
5496
5503
|
`,
|
5497
5504
|
excludeAttrsSync: ['tabindex'],
|
5498
|
-
componentName: componentName$
|
5505
|
+
componentName: componentName$s,
|
5499
5506
|
})
|
5500
5507
|
);
|
5501
5508
|
|
5502
|
-
customElements.define(componentName$
|
5509
|
+
customElements.define(componentName$s, PhoneFieldClass);
|
5503
5510
|
|
5504
5511
|
const getCountryByCodeId = (countryCode) => {
|
5505
5512
|
return CountryCodes.find((c) => c.code === countryCode)?.dialCode;
|
5506
5513
|
};
|
5507
5514
|
|
5508
|
-
const componentName$
|
5515
|
+
const componentName$r = getComponentName('phone-field-internal-input-box');
|
5509
5516
|
|
5510
5517
|
const observedAttributes$2 = [
|
5511
5518
|
'disabled',
|
@@ -5519,11 +5526,11 @@ const mapAttrs = {
|
|
5519
5526
|
'phone-input-placeholder': 'placeholder',
|
5520
5527
|
};
|
5521
5528
|
|
5522
|
-
const BaseInputClass$
|
5529
|
+
const BaseInputClass$5 = createBaseInputClass({ componentName: componentName$r, baseSelector: 'div' });
|
5523
5530
|
|
5524
|
-
class PhoneFieldInternal extends BaseInputClass$
|
5531
|
+
class PhoneFieldInternal extends BaseInputClass$5 {
|
5525
5532
|
static get observedAttributes() {
|
5526
|
-
return [].concat(BaseInputClass$
|
5533
|
+
return [].concat(BaseInputClass$5.observedAttributes || [], observedAttributes$2);
|
5527
5534
|
}
|
5528
5535
|
|
5529
5536
|
constructor() {
|
@@ -5658,13 +5665,13 @@ class PhoneFieldInternal extends BaseInputClass$4 {
|
|
5658
5665
|
}
|
5659
5666
|
}
|
5660
5667
|
|
5661
|
-
customElements.define(componentName$
|
5668
|
+
customElements.define(componentName$r, PhoneFieldInternal);
|
5662
5669
|
|
5663
5670
|
const textVars = TextFieldClass.cssVarList;
|
5664
5671
|
|
5665
|
-
const componentName$
|
5672
|
+
const componentName$q = getComponentName('phone-input-box-field');
|
5666
5673
|
|
5667
|
-
const customMixin$
|
5674
|
+
const customMixin$4 = (superclass) =>
|
5668
5675
|
class PhoneInputBoxFieldMixinClass extends superclass {
|
5669
5676
|
static get CountryCodes() {
|
5670
5677
|
return CountryCodes;
|
@@ -5676,15 +5683,15 @@ const customMixin$3 = (superclass) =>
|
|
5676
5683
|
const template = document.createElement('template');
|
5677
5684
|
|
5678
5685
|
template.innerHTML = `
|
5679
|
-
<${componentName$
|
5686
|
+
<${componentName$r}
|
5680
5687
|
tabindex="-1"
|
5681
5688
|
slot="input"
|
5682
|
-
></${componentName$
|
5689
|
+
></${componentName$r}>
|
5683
5690
|
`;
|
5684
5691
|
|
5685
5692
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
5686
5693
|
|
5687
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
5694
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$r);
|
5688
5695
|
|
5689
5696
|
forwardAttrs(this.shadowRoot.host, this.inputElement, {
|
5690
5697
|
includeAttrs: [
|
@@ -5701,7 +5708,7 @@ const customMixin$3 = (superclass) =>
|
|
5701
5708
|
}
|
5702
5709
|
};
|
5703
5710
|
|
5704
|
-
const { host: host$
|
5711
|
+
const { host: host$9, label: label$3, requiredIndicator: requiredIndicator$3, inputField: inputField$1, phoneInput, errorMessage: errorMessage$4, helperText: helperText$3 } = {
|
5705
5712
|
host: { selector: () => ':host' },
|
5706
5713
|
label: { selector: '::part(label)' },
|
5707
5714
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
@@ -5715,7 +5722,7 @@ const PhoneFieldInputBoxClass = compose(
|
|
5715
5722
|
createStyleMixin({
|
5716
5723
|
mappings: {
|
5717
5724
|
fontSize: [
|
5718
|
-
host$
|
5725
|
+
host$9,
|
5719
5726
|
inputField$1,
|
5720
5727
|
{
|
5721
5728
|
selector: TextFieldClass.componentName,
|
@@ -5723,9 +5730,9 @@ const PhoneFieldInputBoxClass = compose(
|
|
5723
5730
|
},
|
5724
5731
|
],
|
5725
5732
|
fontFamily: [label$3, errorMessage$4, helperText$3],
|
5726
|
-
hostWidth: { ...host$
|
5727
|
-
hostMinWidth: { ...host$
|
5728
|
-
hostDirection: { ...host$
|
5733
|
+
hostWidth: { ...host$9, property: 'width' },
|
5734
|
+
hostMinWidth: { ...host$9, property: 'min-width' },
|
5735
|
+
hostDirection: { ...host$9, property: 'direction' },
|
5729
5736
|
|
5730
5737
|
inputBorderStyle: { ...inputField$1, property: 'border-style' },
|
5731
5738
|
inputBorderWidth: { ...inputField$1, property: 'border-width' },
|
@@ -5751,7 +5758,7 @@ const PhoneFieldInputBoxClass = compose(
|
|
5751
5758
|
}),
|
5752
5759
|
draggableMixin,
|
5753
5760
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
5754
|
-
customMixin$
|
5761
|
+
customMixin$4
|
5755
5762
|
)(
|
5756
5763
|
createProxy({
|
5757
5764
|
slots: [],
|
@@ -5817,17 +5824,17 @@ const PhoneFieldInputBoxClass = compose(
|
|
5817
5824
|
${resetInputLabelPosition('vaadin-text-field')}
|
5818
5825
|
`,
|
5819
5826
|
excludeAttrsSync: ['tabindex'],
|
5820
|
-
componentName: componentName$
|
5827
|
+
componentName: componentName$q,
|
5821
5828
|
})
|
5822
5829
|
);
|
5823
5830
|
|
5824
|
-
customElements.define(componentName$
|
5831
|
+
customElements.define(componentName$q, PhoneFieldInputBoxClass);
|
5825
5832
|
|
5826
|
-
const componentName$
|
5833
|
+
const componentName$p = getComponentName('new-password-internal');
|
5827
5834
|
|
5828
|
-
const componentName$
|
5835
|
+
const componentName$o = getComponentName('new-password');
|
5829
5836
|
|
5830
|
-
const customMixin$
|
5837
|
+
const customMixin$3 = (superclass) =>
|
5831
5838
|
class NewPasswordMixinClass extends superclass {
|
5832
5839
|
init() {
|
5833
5840
|
super.init?.();
|
@@ -5835,16 +5842,16 @@ const customMixin$2 = (superclass) =>
|
|
5835
5842
|
const template = document.createElement('template');
|
5836
5843
|
|
5837
5844
|
template.innerHTML = `
|
5838
|
-
<${componentName$
|
5845
|
+
<${componentName$p}
|
5839
5846
|
name="new-password"
|
5840
5847
|
tabindex="-1"
|
5841
5848
|
slot="input"
|
5842
|
-
></${componentName$
|
5849
|
+
></${componentName$p}>
|
5843
5850
|
`;
|
5844
5851
|
|
5845
5852
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
5846
5853
|
|
5847
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
5854
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$p);
|
5848
5855
|
|
5849
5856
|
forwardAttrs(this, this.inputElement, {
|
5850
5857
|
includeAttrs: [
|
@@ -5865,7 +5872,7 @@ const customMixin$2 = (superclass) =>
|
|
5865
5872
|
}
|
5866
5873
|
};
|
5867
5874
|
|
5868
|
-
const { host: host$
|
5875
|
+
const { host: host$8, label: label$2, internalInputsWrapper, errorMessage: errorMessage$3, helperText: helperText$2, passwordInput } = {
|
5869
5876
|
host: { selector: () => ':host' },
|
5870
5877
|
label: { selector: '::part(label)' },
|
5871
5878
|
internalInputsWrapper: { selector: 'descope-new-password-internal .wrapper' },
|
@@ -5878,7 +5885,7 @@ const NewPasswordClass = compose(
|
|
5878
5885
|
createStyleMixin({
|
5879
5886
|
mappings: {
|
5880
5887
|
fontSize: [
|
5881
|
-
host$
|
5888
|
+
host$8,
|
5882
5889
|
{},
|
5883
5890
|
{
|
5884
5891
|
selector: PasswordClass.componentName,
|
@@ -5887,19 +5894,19 @@ const NewPasswordClass = compose(
|
|
5887
5894
|
],
|
5888
5895
|
fontFamily: [label$2, errorMessage$3, helperText$2],
|
5889
5896
|
errorMessageTextColor: { ...errorMessage$3, property: 'color' },
|
5890
|
-
hostWidth: { ...host$
|
5891
|
-
hostMinWidth: { ...host$
|
5897
|
+
hostWidth: { ...host$8, property: 'width' },
|
5898
|
+
hostMinWidth: { ...host$8, property: 'min-width' },
|
5892
5899
|
hostDirection: [
|
5893
|
-
{ ...host$
|
5900
|
+
{ ...host$8, property: 'direction' },
|
5894
5901
|
{ ...passwordInput, property: PasswordClass.cssVarList.hostDirection },
|
5895
5902
|
],
|
5896
|
-
inputsRequiredIndicator: { ...host$
|
5903
|
+
inputsRequiredIndicator: { ...host$8, property: 'content' },
|
5897
5904
|
spaceBetweenInputs: { ...internalInputsWrapper, property: 'gap' },
|
5898
5905
|
},
|
5899
5906
|
}),
|
5900
5907
|
draggableMixin,
|
5901
5908
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
5902
|
-
customMixin$
|
5909
|
+
customMixin$3
|
5903
5910
|
)(
|
5904
5911
|
createProxy({
|
5905
5912
|
slots: [],
|
@@ -5951,7 +5958,7 @@ const NewPasswordClass = compose(
|
|
5951
5958
|
}
|
5952
5959
|
`,
|
5953
5960
|
excludeAttrsSync: ['tabindex'],
|
5954
|
-
componentName: componentName$
|
5961
|
+
componentName: componentName$o,
|
5955
5962
|
})
|
5956
5963
|
);
|
5957
5964
|
|
@@ -5976,11 +5983,11 @@ const commonAttrs = [
|
|
5976
5983
|
|
5977
5984
|
const inputRelatedAttrs = [].concat(commonAttrs, passwordInputAttrs, confirmInputAttrs);
|
5978
5985
|
|
5979
|
-
const BaseInputClass$
|
5986
|
+
const BaseInputClass$4 = createBaseInputClass({ componentName: componentName$p, baseSelector: 'div' });
|
5980
5987
|
|
5981
|
-
class NewPasswordInternal extends BaseInputClass$
|
5988
|
+
class NewPasswordInternal extends BaseInputClass$4 {
|
5982
5989
|
static get observedAttributes() {
|
5983
|
-
return ['has-confirm'].concat(BaseInputClass$
|
5990
|
+
return ['has-confirm'].concat(BaseInputClass$4.observedAttributes || [], inputRelatedAttrs);
|
5984
5991
|
}
|
5985
5992
|
|
5986
5993
|
constructor() {
|
@@ -6141,16 +6148,16 @@ class NewPasswordInternal extends BaseInputClass$3 {
|
|
6141
6148
|
}
|
6142
6149
|
}
|
6143
6150
|
|
6144
|
-
customElements.define(componentName$
|
6151
|
+
customElements.define(componentName$p, NewPasswordInternal);
|
6145
6152
|
|
6146
|
-
customElements.define(componentName$
|
6153
|
+
customElements.define(componentName$o, NewPasswordClass);
|
6147
6154
|
|
6148
|
-
const componentName$
|
6155
|
+
const componentName$n = getComponentName('recaptcha');
|
6149
6156
|
|
6150
6157
|
const observedAttributes$1 = ['enabled', 'site-key', 'action', 'enterprise'];
|
6151
6158
|
|
6152
6159
|
const BaseClass = createBaseClass({
|
6153
|
-
componentName: componentName$
|
6160
|
+
componentName: componentName$n,
|
6154
6161
|
baseSelector: ':host > div',
|
6155
6162
|
});
|
6156
6163
|
class RawRecaptcha extends BaseClass {
|
@@ -6302,7 +6309,7 @@ class RawRecaptcha extends BaseClass {
|
|
6302
6309
|
|
6303
6310
|
const RecaptchaClass = compose(draggableMixin)(RawRecaptcha);
|
6304
6311
|
|
6305
|
-
customElements.define(componentName$
|
6312
|
+
customElements.define(componentName$n, RecaptchaClass);
|
6306
6313
|
|
6307
6314
|
const getFileBase64 = (fileObj) => {
|
6308
6315
|
return new Promise((resolve) => {
|
@@ -6316,7 +6323,7 @@ const getFilename = (fileObj) => {
|
|
6316
6323
|
return fileObj.name.replace(/^.*\\/, '');
|
6317
6324
|
};
|
6318
6325
|
|
6319
|
-
const componentName$
|
6326
|
+
const componentName$m = getComponentName('upload-file');
|
6320
6327
|
|
6321
6328
|
const observedAttributes = [
|
6322
6329
|
'title',
|
@@ -6331,11 +6338,11 @@ const observedAttributes = [
|
|
6331
6338
|
'icon',
|
6332
6339
|
];
|
6333
6340
|
|
6334
|
-
const BaseInputClass$
|
6341
|
+
const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$m, baseSelector: ':host > div' });
|
6335
6342
|
|
6336
|
-
class RawUploadFile extends BaseInputClass$
|
6343
|
+
class RawUploadFile extends BaseInputClass$3 {
|
6337
6344
|
static get observedAttributes() {
|
6338
|
-
return observedAttributes.concat(BaseInputClass$
|
6345
|
+
return observedAttributes.concat(BaseInputClass$3.observedAttributes || []);
|
6339
6346
|
}
|
6340
6347
|
|
6341
6348
|
constructor() {
|
@@ -6503,7 +6510,7 @@ class RawUploadFile extends BaseInputClass$2 {
|
|
6503
6510
|
}
|
6504
6511
|
|
6505
6512
|
const buttonVars = ButtonClass.cssVarList;
|
6506
|
-
const { host: host$
|
6513
|
+
const { host: host$7, wrapper, icon, title, description, requiredIndicator: requiredIndicator$2 } = {
|
6507
6514
|
host: { selector: () => ':host' },
|
6508
6515
|
wrapper: { selector: () => ':host > div' },
|
6509
6516
|
icon: { selector: () => '::slotted(*)' },
|
@@ -6522,11 +6529,11 @@ const UploadFileClass = compose(
|
|
6522
6529
|
borderWidth: {},
|
6523
6530
|
borderStyle: {},
|
6524
6531
|
borderRadius: {},
|
6525
|
-
hostHeight: { ...host$
|
6526
|
-
hostWidth: { ...host$
|
6532
|
+
hostHeight: { ...host$7, property: 'height' },
|
6533
|
+
hostWidth: { ...host$7, property: 'width' },
|
6527
6534
|
hostPadding: { property: 'padding' },
|
6528
6535
|
hostDirection: [
|
6529
|
-
{ ...host$
|
6536
|
+
{ ...host$7, property: 'direction' },
|
6530
6537
|
{ selector: () => ButtonClass.componentName, property: buttonVars.hostDirection },
|
6531
6538
|
],
|
6532
6539
|
gap: { ...wrapper },
|
@@ -6546,7 +6553,7 @@ const UploadFileClass = compose(
|
|
6546
6553
|
componentNameValidationMixin
|
6547
6554
|
)(RawUploadFile);
|
6548
6555
|
|
6549
|
-
customElements.define(componentName$
|
6556
|
+
customElements.define(componentName$m, UploadFileClass);
|
6550
6557
|
|
6551
6558
|
const createBaseButtonSelectionGroupInternalClass = (componentName) => {
|
6552
6559
|
class BaseButtonSelectionGroupInternalClass extends createBaseInputClass({
|
@@ -6644,10 +6651,10 @@ const createBaseButtonSelectionGroupInternalClass = (componentName) => {
|
|
6644
6651
|
return BaseButtonSelectionGroupInternalClass;
|
6645
6652
|
};
|
6646
6653
|
|
6647
|
-
const componentName$
|
6654
|
+
const componentName$l = getComponentName('button-selection-group-internal');
|
6648
6655
|
|
6649
6656
|
class ButtonSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
|
6650
|
-
componentName$
|
6657
|
+
componentName$l
|
6651
6658
|
) {
|
6652
6659
|
getSelectedNode() {
|
6653
6660
|
return this.items.find((item) => item.hasAttribute('selected'));
|
@@ -6803,7 +6810,7 @@ const buttonSelectionGroupBaseMixin = (superclass) =>
|
|
6803
6810
|
}
|
6804
6811
|
};
|
6805
6812
|
|
6806
|
-
const { host: host$
|
6813
|
+
const { host: host$6, label: label$1, requiredIndicator: requiredIndicator$1, internalWrapper, errorMessage: errorMessage$2 } = {
|
6807
6814
|
host: { selector: () => ':host' },
|
6808
6815
|
label: { selector: '::part(label)' },
|
6809
6816
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
@@ -6812,9 +6819,9 @@ const { host: host$5, label: label$1, requiredIndicator: requiredIndicator$1, in
|
|
6812
6819
|
};
|
6813
6820
|
|
6814
6821
|
const buttonSelectionGroupMappings = {
|
6815
|
-
hostWidth: { ...host$
|
6816
|
-
hostDirection: { ...host$
|
6817
|
-
fontFamily: host$
|
6822
|
+
hostWidth: { ...host$6, property: 'width' },
|
6823
|
+
hostDirection: { ...host$6, property: 'direction' },
|
6824
|
+
fontFamily: host$6,
|
6818
6825
|
labelTextColor: [
|
6819
6826
|
{ ...label$1, property: 'color' },
|
6820
6827
|
{ ...requiredIndicator$1, property: 'color' },
|
@@ -6879,7 +6886,7 @@ const buttonSelectionGroupStyles = `
|
|
6879
6886
|
${resetInputCursor('vaadin-text-field')}
|
6880
6887
|
`;
|
6881
6888
|
|
6882
|
-
const componentName$
|
6889
|
+
const componentName$k = getComponentName('button-selection-group');
|
6883
6890
|
|
6884
6891
|
const buttonSelectionGroupMixin = (superclass) =>
|
6885
6892
|
class ButtonMultiSelectionGroupMixinClass extends superclass {
|
@@ -6888,19 +6895,19 @@ const buttonSelectionGroupMixin = (superclass) =>
|
|
6888
6895
|
const template = document.createElement('template');
|
6889
6896
|
|
6890
6897
|
template.innerHTML = `
|
6891
|
-
<${componentName$
|
6898
|
+
<${componentName$l}
|
6892
6899
|
name="button-selection-group"
|
6893
6900
|
slot="input"
|
6894
6901
|
tabindex="-1"
|
6895
6902
|
part="internal-component"
|
6896
6903
|
>
|
6897
6904
|
<slot></slot>
|
6898
|
-
</${componentName$
|
6905
|
+
</${componentName$l}>
|
6899
6906
|
`;
|
6900
6907
|
|
6901
6908
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
6902
6909
|
|
6903
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
6910
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$l);
|
6904
6911
|
|
6905
6912
|
forwardAttrs(this, this.inputElement, {
|
6906
6913
|
includeAttrs: ['size', 'default-value', 'allow-deselect'],
|
@@ -6925,16 +6932,16 @@ const ButtonSelectionGroupClass = compose(
|
|
6925
6932
|
wrappedEleName: 'vaadin-text-field',
|
6926
6933
|
style: () => buttonSelectionGroupStyles,
|
6927
6934
|
excludeAttrsSync: ['tabindex'],
|
6928
|
-
componentName: componentName$
|
6935
|
+
componentName: componentName$k,
|
6929
6936
|
})
|
6930
6937
|
);
|
6931
6938
|
|
6932
|
-
customElements.define(componentName$
|
6939
|
+
customElements.define(componentName$l, ButtonSelectionGroupInternalClass);
|
6933
6940
|
|
6934
|
-
const componentName$
|
6941
|
+
const componentName$j = getComponentName('button-selection-group-item');
|
6935
6942
|
|
6936
6943
|
class RawSelectItem extends createBaseClass({
|
6937
|
-
componentName: componentName$
|
6944
|
+
componentName: componentName$j,
|
6938
6945
|
baseSelector: ':host > descope-button',
|
6939
6946
|
}) {
|
6940
6947
|
get size() {
|
@@ -7041,14 +7048,14 @@ const ButtonSelectionGroupItemClass = compose(
|
|
7041
7048
|
componentNameValidationMixin
|
7042
7049
|
)(RawSelectItem);
|
7043
7050
|
|
7044
|
-
customElements.define(componentName$
|
7051
|
+
customElements.define(componentName$j, ButtonSelectionGroupItemClass);
|
7045
7052
|
|
7046
|
-
customElements.define(componentName$
|
7053
|
+
customElements.define(componentName$k, ButtonSelectionGroupClass);
|
7047
7054
|
|
7048
|
-
const componentName$
|
7055
|
+
const componentName$i = getComponentName('button-multi-selection-group-internal');
|
7049
7056
|
|
7050
7057
|
class ButtonMultiSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
|
7051
|
-
componentName$
|
7058
|
+
componentName$i
|
7052
7059
|
) {
|
7053
7060
|
#getSelectedNodes() {
|
7054
7061
|
return this.items.filter((item) => item.hasAttribute('selected'));
|
@@ -7151,7 +7158,7 @@ class ButtonMultiSelectionGroupInternalClass extends createBaseButtonSelectionGr
|
|
7151
7158
|
}
|
7152
7159
|
}
|
7153
7160
|
|
7154
|
-
const componentName$
|
7161
|
+
const componentName$h = getComponentName('button-multi-selection-group');
|
7155
7162
|
|
7156
7163
|
const buttonMultiSelectionGroupMixin = (superclass) =>
|
7157
7164
|
class ButtonMultiSelectionGroupMixinClass extends superclass {
|
@@ -7160,19 +7167,19 @@ const buttonMultiSelectionGroupMixin = (superclass) =>
|
|
7160
7167
|
const template = document.createElement('template');
|
7161
7168
|
|
7162
7169
|
template.innerHTML = `
|
7163
|
-
<${componentName$
|
7170
|
+
<${componentName$i}
|
7164
7171
|
name="button-selection-group"
|
7165
7172
|
slot="input"
|
7166
7173
|
tabindex="-1"
|
7167
7174
|
part="internal-component"
|
7168
7175
|
>
|
7169
7176
|
<slot></slot>
|
7170
|
-
</${componentName$
|
7177
|
+
</${componentName$i}>
|
7171
7178
|
`;
|
7172
7179
|
|
7173
7180
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
7174
7181
|
|
7175
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
7182
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$i);
|
7176
7183
|
|
7177
7184
|
forwardAttrs(this, this.inputElement, {
|
7178
7185
|
includeAttrs: ['size', 'default-values', 'min-items-selection', 'max-items-selection'],
|
@@ -7197,13 +7204,13 @@ const ButtonMultiSelectionGroupClass = compose(
|
|
7197
7204
|
wrappedEleName: 'vaadin-text-field',
|
7198
7205
|
style: () => buttonSelectionGroupStyles,
|
7199
7206
|
excludeAttrsSync: ['tabindex'],
|
7200
|
-
componentName: componentName$
|
7207
|
+
componentName: componentName$h,
|
7201
7208
|
})
|
7202
7209
|
);
|
7203
7210
|
|
7204
|
-
customElements.define(componentName$
|
7211
|
+
customElements.define(componentName$i, ButtonMultiSelectionGroupInternalClass);
|
7205
7212
|
|
7206
|
-
customElements.define(componentName$
|
7213
|
+
customElements.define(componentName$h, ButtonMultiSelectionGroupClass);
|
7207
7214
|
|
7208
7215
|
/* eslint-disable no-param-reassign */
|
7209
7216
|
|
@@ -7231,9 +7238,9 @@ class GridTextColumnClass extends GridSortColumn {
|
|
7231
7238
|
}
|
7232
7239
|
}
|
7233
7240
|
|
7234
|
-
const componentName$
|
7241
|
+
const componentName$g = getComponentName('grid-text-column');
|
7235
7242
|
|
7236
|
-
customElements.define(componentName$
|
7243
|
+
customElements.define(componentName$g, GridTextColumnClass);
|
7237
7244
|
|
7238
7245
|
/* eslint-disable no-param-reassign */
|
7239
7246
|
|
@@ -7268,9 +7275,9 @@ class GridCustomColumnClass extends GridTextColumnClass {
|
|
7268
7275
|
|
7269
7276
|
/* eslint-disable no-param-reassign */
|
7270
7277
|
|
7271
|
-
const componentName$
|
7278
|
+
const componentName$f = getComponentName('grid-custom-column');
|
7272
7279
|
|
7273
|
-
customElements.define(componentName$
|
7280
|
+
customElements.define(componentName$f, GridCustomColumnClass);
|
7274
7281
|
|
7275
7282
|
const createCheckboxEle = () => {
|
7276
7283
|
const checkbox = document.createElement('descope-checkbox');
|
@@ -7329,9 +7336,9 @@ class GridSelectionColumnClass extends GridSelectionColumn {
|
|
7329
7336
|
}
|
7330
7337
|
}
|
7331
7338
|
|
7332
|
-
const componentName$
|
7339
|
+
const componentName$e = getComponentName('grid-selection-column');
|
7333
7340
|
|
7334
|
-
customElements.define(componentName$
|
7341
|
+
customElements.define(componentName$e, GridSelectionColumnClass);
|
7335
7342
|
|
7336
7343
|
const isValidDataType = (data) => {
|
7337
7344
|
const isValid = Array.isArray(data);
|
@@ -7343,7 +7350,7 @@ const isValidDataType = (data) => {
|
|
7343
7350
|
return isValid;
|
7344
7351
|
};
|
7345
7352
|
|
7346
|
-
const componentName$
|
7353
|
+
const componentName$d = getComponentName('grid');
|
7347
7354
|
|
7348
7355
|
const GridMixin = (superclass) =>
|
7349
7356
|
class GridMixinClass extends superclass {
|
@@ -7503,7 +7510,7 @@ const GridMixin = (superclass) =>
|
|
7503
7510
|
};
|
7504
7511
|
|
7505
7512
|
const {
|
7506
|
-
host: host$
|
7513
|
+
host: host$5,
|
7507
7514
|
headerRow,
|
7508
7515
|
headerRowCell,
|
7509
7516
|
contentRow,
|
@@ -7538,15 +7545,15 @@ const GridClass = compose(
|
|
7538
7545
|
fontWeight: { ...contentRow },
|
7539
7546
|
valueTextColor: { ...contentRow, property: 'color' },
|
7540
7547
|
backgroundColor: [
|
7541
|
-
{ ...host$
|
7548
|
+
{ ...host$5, property: 'background-color' },
|
7542
7549
|
{ ...contentRow, property: 'background-color' },
|
7543
7550
|
],
|
7544
7551
|
sortIndicatorsColor: { ...sortIndicators, property: 'color' },
|
7545
7552
|
activeSortIndicator: { ...activeSortIndicator, property: 'color' },
|
7546
|
-
borderColor: { ...host$
|
7547
|
-
borderWidth: { ...host$
|
7548
|
-
borderStyle: { ...host$
|
7549
|
-
borderRadius: { ...host$
|
7553
|
+
borderColor: { ...host$5, property: 'border-color' },
|
7554
|
+
borderWidth: { ...host$5, property: 'border-width' },
|
7555
|
+
borderStyle: { ...host$5, property: 'border-style' },
|
7556
|
+
borderRadius: { ...host$5, property: 'border-radius' },
|
7550
7557
|
selectedBackgroundColor: { ...selectedRow, property: 'background-color' },
|
7551
7558
|
headerRowTextColor: { ...headerRowCell, property: 'color' },
|
7552
7559
|
separatorColor: [
|
@@ -7579,13 +7586,13 @@ const GridClass = compose(
|
|
7579
7586
|
}
|
7580
7587
|
`,
|
7581
7588
|
excludeAttrsSync: ['columns', 'tabindex'],
|
7582
|
-
componentName: componentName$
|
7589
|
+
componentName: componentName$d,
|
7583
7590
|
})
|
7584
7591
|
);
|
7585
7592
|
|
7586
|
-
customElements.define(componentName$
|
7593
|
+
customElements.define(componentName$d, GridClass);
|
7587
7594
|
|
7588
|
-
const componentName$
|
7595
|
+
const componentName$c = getComponentName('multi-select-combo-box');
|
7589
7596
|
|
7590
7597
|
const multiSelectComboBoxMixin = (superclass) =>
|
7591
7598
|
class MultiSelectComboBoxMixinClass extends superclass {
|
@@ -7973,7 +7980,7 @@ const multiSelectComboBoxMixin = (superclass) =>
|
|
7973
7980
|
};
|
7974
7981
|
|
7975
7982
|
const {
|
7976
|
-
host: host$
|
7983
|
+
host: host$4,
|
7977
7984
|
inputField,
|
7978
7985
|
inputElement,
|
7979
7986
|
placeholder,
|
@@ -8011,10 +8018,10 @@ const {
|
|
8011
8018
|
const MultiSelectComboBoxClass = compose(
|
8012
8019
|
createStyleMixin({
|
8013
8020
|
mappings: {
|
8014
|
-
hostWidth: { ...host$
|
8015
|
-
hostDirection: { ...host$
|
8021
|
+
hostWidth: { ...host$4, property: 'width' },
|
8022
|
+
hostDirection: { ...host$4, property: 'direction' },
|
8016
8023
|
// we apply font-size also on the host so we can set its width with em
|
8017
|
-
fontSize: [{}, host$
|
8024
|
+
fontSize: [{}, host$4],
|
8018
8025
|
chipFontSize: { ...chipLabel, property: 'font-size' },
|
8019
8026
|
fontFamily: [label, placeholder, inputField, helperText$1, errorMessage$1, chipLabel],
|
8020
8027
|
labelTextColor: [
|
@@ -8189,16 +8196,16 @@ const MultiSelectComboBoxClass = compose(
|
|
8189
8196
|
// Note: we exclude `placeholder` because the vaadin component observes it and
|
8190
8197
|
// tries to override it, causing us to lose the user set placeholder.
|
8191
8198
|
excludeAttrsSync: ['tabindex', 'size', 'data', 'placeholder'],
|
8192
|
-
componentName: componentName$
|
8199
|
+
componentName: componentName$c,
|
8193
8200
|
includeForwardProps: ['items', 'renderer', 'selectedItems'],
|
8194
8201
|
})
|
8195
8202
|
);
|
8196
8203
|
|
8197
|
-
customElements.define(componentName$
|
8204
|
+
customElements.define(componentName$c, MultiSelectComboBoxClass);
|
8198
8205
|
|
8199
|
-
const componentName$
|
8206
|
+
const componentName$b = getComponentName('badge');
|
8200
8207
|
|
8201
|
-
class RawBadge extends createBaseClass({ componentName: componentName$
|
8208
|
+
class RawBadge extends createBaseClass({ componentName: componentName$b, baseSelector: ':host > div' }) {
|
8202
8209
|
constructor() {
|
8203
8210
|
super();
|
8204
8211
|
|
@@ -8249,11 +8256,11 @@ const BadgeClass = compose(
|
|
8249
8256
|
componentNameValidationMixin
|
8250
8257
|
)(RawBadge);
|
8251
8258
|
|
8252
|
-
customElements.define(componentName$
|
8259
|
+
customElements.define(componentName$b, BadgeClass);
|
8253
8260
|
|
8254
|
-
const componentName$
|
8261
|
+
const componentName$a = getComponentName('modal');
|
8255
8262
|
|
8256
|
-
const customMixin$
|
8263
|
+
const customMixin$2 = (superclass) =>
|
8257
8264
|
class ModalMixinClass extends superclass {
|
8258
8265
|
get opened() {
|
8259
8266
|
return this.getAttribute('opened') === 'true';
|
@@ -8343,18 +8350,18 @@ const ModalClass = compose(
|
|
8343
8350
|
}),
|
8344
8351
|
draggableMixin,
|
8345
8352
|
componentNameValidationMixin,
|
8346
|
-
customMixin$
|
8353
|
+
customMixin$2
|
8347
8354
|
)(
|
8348
8355
|
createProxy({
|
8349
8356
|
slots: [''],
|
8350
8357
|
wrappedEleName: 'vaadin-dialog',
|
8351
8358
|
style: () => ``,
|
8352
8359
|
excludeAttrsSync: ['tabindex', 'opened'],
|
8353
|
-
componentName: componentName$
|
8360
|
+
componentName: componentName$a,
|
8354
8361
|
})
|
8355
8362
|
);
|
8356
8363
|
|
8357
|
-
customElements.define(componentName$
|
8364
|
+
customElements.define(componentName$a, ModalClass);
|
8358
8365
|
|
8359
8366
|
const vaadinContainerClass = window.customElements.get('vaadin-notification-container');
|
8360
8367
|
|
@@ -8365,7 +8372,7 @@ if (!vaadinContainerClass) {
|
|
8365
8372
|
class NotificationContainerClass extends vaadinContainerClass {}
|
8366
8373
|
customElements.define(getComponentName('notification-container'), NotificationContainerClass);
|
8367
8374
|
|
8368
|
-
const componentName$
|
8375
|
+
const componentName$9 = getComponentName('notification-card');
|
8369
8376
|
|
8370
8377
|
const notificationCardMixin = (superclass) =>
|
8371
8378
|
class NotificationCardMixinClass extends superclass {
|
@@ -8473,13 +8480,13 @@ const NotificationCardClass = compose(
|
|
8473
8480
|
}
|
8474
8481
|
`,
|
8475
8482
|
excludeAttrsSync: ['tabindex'],
|
8476
|
-
componentName: componentName$
|
8483
|
+
componentName: componentName$9,
|
8477
8484
|
})
|
8478
8485
|
);
|
8479
8486
|
|
8480
|
-
customElements.define(componentName$
|
8487
|
+
customElements.define(componentName$9, NotificationCardClass);
|
8481
8488
|
|
8482
|
-
const componentName$
|
8489
|
+
const componentName$8 = getComponentName('notification');
|
8483
8490
|
|
8484
8491
|
const NotificationMixin = (superclass) =>
|
8485
8492
|
class NotificationMixinClass extends superclass {
|
@@ -8574,14 +8581,14 @@ const NotificationClass = compose(
|
|
8574
8581
|
createProxy({
|
8575
8582
|
wrappedEleName: 'vaadin-notification',
|
8576
8583
|
excludeAttrsSync: ['tabindex'],
|
8577
|
-
componentName: componentName$
|
8584
|
+
componentName: componentName$8,
|
8578
8585
|
})
|
8579
8586
|
);
|
8580
8587
|
|
8581
|
-
customElements.define(componentName$
|
8588
|
+
customElements.define(componentName$8, NotificationClass);
|
8582
8589
|
|
8583
|
-
const componentName$
|
8584
|
-
class RawAvatar extends createBaseClass({ componentName: componentName$
|
8590
|
+
const componentName$7 = getComponentName('avatar');
|
8591
|
+
class RawAvatar extends createBaseClass({ componentName: componentName$7, baseSelector: ':host > .wrapper' }) {
|
8585
8592
|
constructor() {
|
8586
8593
|
super();
|
8587
8594
|
|
@@ -8656,7 +8663,7 @@ class RawAvatar extends createBaseClass({ componentName: componentName$5, baseSe
|
|
8656
8663
|
}
|
8657
8664
|
}
|
8658
8665
|
|
8659
|
-
const { host: host$
|
8666
|
+
const { host: host$3, editableBadge, avatar: avatar$2 } = {
|
8660
8667
|
host: { selector: () => ':host' },
|
8661
8668
|
editableBadge: { selector: '> .editableBadge' },
|
8662
8669
|
avatar: { selector: 'vaadin-avatar' },
|
@@ -8665,10 +8672,10 @@ const { host: host$2, editableBadge, avatar: avatar$2 } = {
|
|
8665
8672
|
const AvatarClass = compose(
|
8666
8673
|
createStyleMixin({
|
8667
8674
|
mappings: {
|
8668
|
-
hostWidth: { ...host$
|
8669
|
-
hostHeight: { ...host$
|
8670
|
-
cursor: [avatar$2, host$
|
8671
|
-
hostDirection: { ...host$
|
8675
|
+
hostWidth: { ...host$3, property: 'width' },
|
8676
|
+
hostHeight: { ...host$3, property: 'height' },
|
8677
|
+
cursor: [avatar$2, host$3],
|
8678
|
+
hostDirection: { ...host$3, property: 'direction' },
|
8672
8679
|
avatarTextColor: { ...avatar$2, property: 'color' },
|
8673
8680
|
avatarBackgroundColor: { ...avatar$2, property: 'background-color' },
|
8674
8681
|
editableIconColor: { ...editableBadge, property: 'color' },
|
@@ -8680,17 +8687,17 @@ const AvatarClass = compose(
|
|
8680
8687
|
componentNameValidationMixin
|
8681
8688
|
)(RawAvatar);
|
8682
8689
|
|
8683
|
-
customElements.define(componentName$
|
8690
|
+
customElements.define(componentName$7, AvatarClass);
|
8684
8691
|
|
8685
|
-
const componentName$
|
8692
|
+
const componentName$6 = getComponentName('mappings-field-internal');
|
8686
8693
|
|
8687
|
-
const BaseInputClass$
|
8694
|
+
const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$6, baseSelector: 'div' });
|
8688
8695
|
|
8689
|
-
class MappingsFieldInternal extends BaseInputClass$
|
8696
|
+
class MappingsFieldInternal extends BaseInputClass$2 {
|
8690
8697
|
#errorItem;
|
8691
8698
|
|
8692
8699
|
static get observedAttributes() {
|
8693
|
-
return [].concat(BaseInputClass$
|
8700
|
+
return [].concat(BaseInputClass$2.observedAttributes || [], [
|
8694
8701
|
'label-value',
|
8695
8702
|
'label-attr',
|
8696
8703
|
'button-label',
|
@@ -8743,7 +8750,7 @@ class MappingsFieldInternal extends BaseInputClass$1 {
|
|
8743
8750
|
// before the new item is added and thus returns a wrong result
|
8744
8751
|
setTimeout(() => {
|
8745
8752
|
this.setCustomValidity('');
|
8746
|
-
newMappingItem.addEventListener('mapping-item-removed', (
|
8753
|
+
newMappingItem.addEventListener('mapping-item-removed', () => {
|
8747
8754
|
// If the removed item was the one that was invalid, we need to reset the invalid indication for the internal
|
8748
8755
|
if (newMappingItem === this.#errorItem) {
|
8749
8756
|
this.resetInvalidIndication();
|
@@ -8751,8 +8758,8 @@ class MappingsFieldInternal extends BaseInputClass$1 {
|
|
8751
8758
|
}
|
8752
8759
|
newMappingItem.remove();
|
8753
8760
|
this.setCustomValidity('');
|
8754
|
-
e.stopPropagation();
|
8755
8761
|
});
|
8762
|
+
this.dispatchEvent(new CustomEvent('mapping-item-added', { bubbles: true, composed: true }));
|
8756
8763
|
if (focusNewItem) {
|
8757
8764
|
newMappingItem.focus();
|
8758
8765
|
}
|
@@ -8919,9 +8926,9 @@ class MappingsFieldInternal extends BaseInputClass$1 {
|
|
8919
8926
|
}
|
8920
8927
|
}
|
8921
8928
|
|
8922
|
-
const componentName$
|
8929
|
+
const componentName$5 = getComponentName('mappings-field');
|
8923
8930
|
|
8924
|
-
const customMixin = (superclass) =>
|
8931
|
+
const customMixin$1 = (superclass) =>
|
8925
8932
|
class MappingsFieldMixinClass extends superclass {
|
8926
8933
|
get defaultValues() {
|
8927
8934
|
const defaultValuesAttr = this.getAttribute('default-values');
|
@@ -8948,14 +8955,14 @@ const customMixin = (superclass) =>
|
|
8948
8955
|
const template = document.createElement('template');
|
8949
8956
|
|
8950
8957
|
template.innerHTML = `
|
8951
|
-
<${componentName$
|
8958
|
+
<${componentName$6}
|
8952
8959
|
tabindex="-1"
|
8953
|
-
></${componentName$
|
8960
|
+
></${componentName$6}>
|
8954
8961
|
`;
|
8955
8962
|
|
8956
8963
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
8957
8964
|
|
8958
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
8965
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$6);
|
8959
8966
|
|
8960
8967
|
forwardAttrs(this, this.inputElement, {
|
8961
8968
|
includeAttrs: [
|
@@ -8973,16 +8980,21 @@ const customMixin = (superclass) =>
|
|
8973
8980
|
],
|
8974
8981
|
});
|
8975
8982
|
|
8983
|
+
// This is required since when we remove the invalid attribute from the internal mappings field,
|
8984
|
+
// we want to reflect the change in the parent component
|
8985
|
+
syncAttrs(this, this.inputElement, { includeAttrs: ['invalid'] });
|
8986
|
+
|
8976
8987
|
this.setDefaultValues();
|
8977
8988
|
}
|
8978
8989
|
};
|
8979
8990
|
|
8980
8991
|
const {
|
8981
|
-
host: host$
|
8992
|
+
host: host$2,
|
8982
8993
|
helperText,
|
8983
8994
|
errorMessage,
|
8984
8995
|
mappingItem,
|
8985
8996
|
labels,
|
8997
|
+
labelsText,
|
8986
8998
|
valueLabel,
|
8987
8999
|
attrLabel,
|
8988
9000
|
separator,
|
@@ -8993,6 +9005,9 @@ const {
|
|
8993
9005
|
errorMessage: { selector: '::part(error-message)' },
|
8994
9006
|
mappingItem: { selector: 'descope-mapping-item::part(wrapper)' },
|
8995
9007
|
labels: { selector: 'descope-mappings-field-internal [part="labels"] descope-text' },
|
9008
|
+
labelsText: {
|
9009
|
+
selector: 'descope-mappings-field-internal [part="labels"] descope-text::part(text-wrapper)',
|
9010
|
+
},
|
8996
9011
|
valueLabel: { selector: 'descope-mappings-field-internal [part="labels"] [part="value-label"]' },
|
8997
9012
|
attrLabel: { selector: 'descope-mappings-field-internal [part="labels"] [part="attr-label"]' },
|
8998
9013
|
separator: { selector: 'descope-mapping-item::part(separator)' },
|
@@ -9002,12 +9017,17 @@ const {
|
|
9002
9017
|
const MappingsFieldClass = compose(
|
9003
9018
|
createStyleMixin({
|
9004
9019
|
mappings: {
|
9005
|
-
hostWidth: { ...host$
|
9006
|
-
hostDirection: { ...host$
|
9020
|
+
hostWidth: { ...host$2, property: 'width' },
|
9021
|
+
hostDirection: { ...host$2, property: 'direction' },
|
9007
9022
|
// we apply font-size also on the host so we can set its width with em
|
9008
|
-
fontSize: [{}, host$
|
9023
|
+
fontSize: [{}, host$2, { ...separator, property: 'margin-top' }],
|
9009
9024
|
fontFamily: [helperText, errorMessage, labels],
|
9010
9025
|
separatorFontSize: { ...separator, property: 'font-size' },
|
9026
|
+
labelsFontSize: { ...labelsText, property: 'font-size' },
|
9027
|
+
labelsLineHeight: [
|
9028
|
+
{ ...labelsText, property: 'line-height' },
|
9029
|
+
{ ...labels, property: 'line-height' },
|
9030
|
+
],
|
9011
9031
|
labelTextColor: { ...labels, property: TextClass.cssVarList.textColor },
|
9012
9032
|
itemMarginBottom: { ...mappingItem, property: 'margin-bottom' },
|
9013
9033
|
valueLabelMinWidth: { ...valueLabel, property: 'min-width' },
|
@@ -9024,7 +9044,7 @@ const MappingsFieldClass = compose(
|
|
9024
9044
|
proxyParentValidation: true,
|
9025
9045
|
}),
|
9026
9046
|
componentNameValidationMixin,
|
9027
|
-
customMixin
|
9047
|
+
customMixin$1
|
9028
9048
|
)(
|
9029
9049
|
createProxy({
|
9030
9050
|
slots: [],
|
@@ -9071,21 +9091,21 @@ const MappingsFieldClass = compose(
|
|
9071
9091
|
'options',
|
9072
9092
|
'error-message',
|
9073
9093
|
],
|
9074
|
-
componentName: componentName$
|
9094
|
+
componentName: componentName$5,
|
9075
9095
|
})
|
9076
9096
|
);
|
9077
9097
|
|
9078
|
-
customElements.define(componentName$
|
9098
|
+
customElements.define(componentName$6, MappingsFieldInternal);
|
9079
9099
|
|
9080
|
-
const componentName$
|
9100
|
+
const componentName$4 = getComponentName('mapping-item');
|
9081
9101
|
|
9082
9102
|
const inputAttrs = ['size', 'bordered', 'readonly', 'full-width', 'disabled'];
|
9083
9103
|
|
9084
|
-
const BaseInputClass = createBaseInputClass({ componentName: componentName$
|
9104
|
+
const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$4, baseSelector: 'div' });
|
9085
9105
|
|
9086
|
-
class MappingItem extends BaseInputClass {
|
9106
|
+
class MappingItem extends BaseInputClass$1 {
|
9087
9107
|
static get observedAttributes() {
|
9088
|
-
return [].concat(BaseInputClass.observedAttributes || [], inputAttrs, [
|
9108
|
+
return [].concat(BaseInputClass$1.observedAttributes || [], inputAttrs, [
|
9089
9109
|
'separator',
|
9090
9110
|
'options',
|
9091
9111
|
'invalid',
|
@@ -9168,7 +9188,7 @@ class MappingItem extends BaseInputClass {
|
|
9168
9188
|
|
9169
9189
|
initRemoveButton() {
|
9170
9190
|
this.removeButton.addEventListener('click', () =>
|
9171
|
-
this.dispatchEvent(new CustomEvent('mapping-item-removed'))
|
9191
|
+
this.dispatchEvent(new CustomEvent('mapping-item-removed', { bubbles: true, composed: true }))
|
9172
9192
|
);
|
9173
9193
|
}
|
9174
9194
|
|
@@ -9231,9 +9251,9 @@ class MappingItem extends BaseInputClass {
|
|
9231
9251
|
}
|
9232
9252
|
}
|
9233
9253
|
|
9234
|
-
customElements.define(componentName$
|
9254
|
+
customElements.define(componentName$4, MappingItem);
|
9235
9255
|
|
9236
|
-
customElements.define(componentName$
|
9256
|
+
customElements.define(componentName$5, MappingsFieldClass);
|
9237
9257
|
|
9238
9258
|
function deleteIcon() {
|
9239
9259
|
return (new DOMParser().parseFromString("<svg width=\"14\" height=\"18\" viewBox=\"0 0 14 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M1 16C1 17.1 1.9 18 3 18H11C12.1 18 13 17.1 13 16V4H1V16ZM3 6H11V16H3V6ZM10.5 1L9.5 0H4.5L3.5 1H0V3H14V1H10.5Z\" fill=\"currentcolor\"/>\n</svg>\n", 'image/svg+xml')).firstChild;
|
@@ -9243,9 +9263,9 @@ function editIcon() {
|
|
9243
9263
|
return (new DOMParser().parseFromString("<svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M10.0002 0.992149C10.0002 1.01615 10.0002 1.01615 10.0002 1.01615L8.22419 3.00815H2.99219C2.46419 3.00815 2.00819 3.44015 2.00819 3.99215V12.0082C2.00819 12.5362 2.44019 12.9922 2.99219 12.9922H5.53619C5.84819 13.0402 6.16019 13.0402 6.47219 12.9922H11.0082C11.5362 12.9922 11.9922 12.5602 11.9922 12.0082V7.78416L13.9362 5.62415L14.0082 5.67215V11.9842C14.0082 13.6642 12.6642 15.0082 11.0082 15.0082H3.01619C1.33619 15.0082 -0.0078125 13.6642 -0.0078125 11.9842V3.99215C-0.0078125 2.33615 1.33619 0.992149 3.01619 0.992149H10.0002ZM11.2722 2.62415L12.6162 4.11215L7.72019 9.68016C7.50419 9.92016 6.83219 10.2322 5.68019 10.6162C5.65619 10.6402 5.60819 10.6402 5.56019 10.6162C5.46419 10.5922 5.39219 10.4722 5.44019 10.3762C5.75219 9.24816 6.04019 8.55216 6.25619 8.31216L11.2722 2.62415ZM11.9202 1.85615L13.2882 0.320149C13.6482 -0.0878516 14.2722 -0.111852 14.6802 0.272149C15.0882 0.632149 15.1122 1.28015 14.7522 1.68815L13.2642 3.36815L11.9202 1.85615Z\" fill=\"currentcolor\"/>\n</svg>\n", 'image/svg+xml')).firstChild;
|
9244
9264
|
}
|
9245
9265
|
|
9246
|
-
const componentName$
|
9266
|
+
const componentName$3 = getComponentName('user-attribute');
|
9247
9267
|
class RawUserAttribute extends createBaseClass({
|
9248
|
-
componentName: componentName$
|
9268
|
+
componentName: componentName$3,
|
9249
9269
|
baseSelector: ':host > .root',
|
9250
9270
|
}) {
|
9251
9271
|
constructor() {
|
@@ -9431,7 +9451,7 @@ class RawUserAttribute extends createBaseClass({
|
|
9431
9451
|
}
|
9432
9452
|
}
|
9433
9453
|
|
9434
|
-
const { host, textFields, buttons, badge: badge$2, labelText, valueText, textWrapper } = {
|
9454
|
+
const { host: host$1, textFields, buttons, badge: badge$2, labelText, valueText, textWrapper } = {
|
9435
9455
|
host: { selector: () => ':host' },
|
9436
9456
|
textFields: { selector: 'descope-text' },
|
9437
9457
|
valueText: { selector: 'descope-text[data-id="value-text"]' },
|
@@ -9444,10 +9464,10 @@ const { host, textFields, buttons, badge: badge$2, labelText, valueText, textWra
|
|
9444
9464
|
const UserAttributeClass = compose(
|
9445
9465
|
createStyleMixin({
|
9446
9466
|
mappings: {
|
9447
|
-
hostWidth: { ...host, property: 'width' },
|
9448
|
-
hostMinWidth: { ...host, property: 'min-width' },
|
9467
|
+
hostWidth: { ...host$1, property: 'width' },
|
9468
|
+
hostMinWidth: { ...host$1, property: 'min-width' },
|
9449
9469
|
hostDirection: [
|
9450
|
-
{ ...host, property: 'direction' },
|
9470
|
+
{ ...host$1, property: 'direction' },
|
9451
9471
|
{ ...textFields, property: TextClass.cssVarList.hostDirection },
|
9452
9472
|
{ ...buttons, property: ButtonClass.cssVarList.hostDirection },
|
9453
9473
|
{ ...badge$2, property: BadgeClass.cssVarList.hostDirection },
|
@@ -9462,108 +9482,338 @@ const UserAttributeClass = compose(
|
|
9462
9482
|
componentNameValidationMixin
|
9463
9483
|
)(RawUserAttribute);
|
9464
9484
|
|
9465
|
-
customElements.define(componentName$
|
9485
|
+
customElements.define(componentName$3, UserAttributeClass);
|
9466
9486
|
|
9467
|
-
const
|
9487
|
+
const componentName$2 = getComponentName('saml-group-mappings-internal');
|
9468
9488
|
|
9469
|
-
|
9470
|
-
const set = (obj, path, value) => {
|
9471
|
-
const pathArray = Array.isArray(path) ? path : path.match(/([^[.\]])+/g);
|
9489
|
+
const BaseInputClass = createBaseInputClass({ componentName: componentName$2, baseSelector: '' });
|
9472
9490
|
|
9473
|
-
|
9474
|
-
|
9475
|
-
|
9476
|
-
|
9477
|
-
}, obj);
|
9491
|
+
class SamlGroupMappingsInternal extends BaseInputClass {
|
9492
|
+
static get observedAttributes() {
|
9493
|
+
return ['invalid'].concat(BaseInputClass.observedAttributes || []);
|
9494
|
+
}
|
9478
9495
|
|
9479
|
-
|
9480
|
-
|
9496
|
+
constructor() {
|
9497
|
+
super();
|
9481
9498
|
|
9482
|
-
|
9483
|
-
|
9484
|
-
|
9485
|
-
|
9486
|
-
}
|
9487
|
-
return merge(acc, transformTheme(val, [...path, key], getTransformation));
|
9488
|
-
}, {});
|
9489
|
-
};
|
9499
|
+
this.innerHTML = `
|
9500
|
+
<descope-text-field variant="body2" bordered="true"></descope-text-field>
|
9501
|
+
<descope-mappings-field></descope-mappings-field>
|
9502
|
+
`;
|
9490
9503
|
|
9491
|
-
|
9492
|
-
|
9504
|
+
this.groupInputElement = this.querySelector('descope-text-field');
|
9505
|
+
this.mappingsElement = this.querySelector('descope-mappings-field');
|
9506
|
+
}
|
9493
9507
|
|
9494
|
-
|
9495
|
-
|
9496
|
-
case Array.isArray(val):
|
9497
|
-
return stringifyArray(val);
|
9498
|
-
case isUrl(val):
|
9499
|
-
return `url(${val})`;
|
9500
|
-
default:
|
9501
|
-
return val;
|
9508
|
+
resetInvalidIndication() {
|
9509
|
+
this.removeAttribute('invalid');
|
9502
9510
|
}
|
9503
|
-
};
|
9504
9511
|
|
9505
|
-
|
9506
|
-
|
9507
|
-
|
9508
|
-
|
9512
|
+
handleMappingsInvalidChange(changedAttributes) {
|
9513
|
+
if (changedAttributes.includes('invalid')) {
|
9514
|
+
if (!this.mappingsElement.hasAttribute('invalid')) {
|
9515
|
+
this.resetInvalidIndication();
|
9516
|
+
}
|
9517
|
+
}
|
9518
|
+
}
|
9509
9519
|
|
9510
|
-
|
9511
|
-
|
9512
|
-
|
9513
|
-
|
9520
|
+
initFocusHandler() {
|
9521
|
+
// This event listener needs to be placed before the super.init() call
|
9522
|
+
this.addEventListener('focus', (e) => {
|
9523
|
+
// we want to ignore focus events we are dispatching
|
9524
|
+
if (e.isTrusted) {
|
9525
|
+
const focusedElement = this.mappingsElement.checkValidity()
|
9526
|
+
? this.groupInputElement
|
9527
|
+
: this.mappingsElement;
|
9528
|
+
focusedElement.focus();
|
9529
|
+
}
|
9530
|
+
});
|
9531
|
+
}
|
9514
9532
|
|
9515
|
-
|
9516
|
-
|
9533
|
+
init() {
|
9534
|
+
// This needs to be placed before the super.init() call to work
|
9535
|
+
this.initFocusHandler();
|
9517
9536
|
|
9518
|
-
|
9519
|
-
const style = Object.entries(themeToCSSVarsObj(theme)).reduce(
|
9520
|
-
(acc, entry) => `${acc}${entry.join(':')};\n`,
|
9521
|
-
''
|
9522
|
-
);
|
9537
|
+
super.init?.();
|
9523
9538
|
|
9524
|
-
|
9539
|
+
forwardAttrs(this, this.groupInputElement, {
|
9540
|
+
mapAttrs: { 'label-group': 'label' },
|
9541
|
+
includeAttrs: ['size', 'label-group', 'readonly', 'disabled'],
|
9542
|
+
});
|
9525
9543
|
|
9526
|
-
|
9527
|
-
|
9544
|
+
forwardAttrs(this, this.mappingsElement, {
|
9545
|
+
includeAttrs: [
|
9546
|
+
'size',
|
9547
|
+
'full-width',
|
9548
|
+
'label-value',
|
9549
|
+
'label-attr',
|
9550
|
+
'button-label',
|
9551
|
+
'separator',
|
9552
|
+
'options',
|
9553
|
+
'readonly',
|
9554
|
+
'disabled',
|
9555
|
+
'data-errormessage-pattern-mismatch',
|
9556
|
+
],
|
9557
|
+
});
|
9528
9558
|
|
9529
|
-
|
9530
|
-
|
9531
|
-
|
9532
|
-
|
9533
|
-
|
9559
|
+
// Observing the invalid attribute of the mappings field to reset the invalid state for this component.
|
9560
|
+
// When an invalid item turns valid, the mappings field will remove the invalid attribute, and at this component
|
9561
|
+
// level, we need to remove the invalid attribute as well to be able to mark the component as invalid the next time
|
9562
|
+
observeAttributes(this.mappingsElement, this.handleMappingsInvalidChange.bind(this), {
|
9563
|
+
includeAttrs: ['invalid'],
|
9564
|
+
});
|
9565
|
+
}
|
9534
9566
|
|
9535
|
-
|
9536
|
-
|
9537
|
-
|
9538
|
-
|
9567
|
+
get value() {
|
9568
|
+
return {
|
9569
|
+
group: this.groupInputElement.value,
|
9570
|
+
mappings: this.mappingsElement.value,
|
9571
|
+
};
|
9572
|
+
}
|
9539
9573
|
|
9540
|
-
|
9541
|
-
|
9542
|
-
|
9543
|
-
|
9544
|
-
|
9574
|
+
set value(value) {
|
9575
|
+
if (value?.group && typeof value.group === 'string') {
|
9576
|
+
this.groupInputElement.value = value.group;
|
9577
|
+
}
|
9578
|
+
if (Array.isArray(value?.mappings)) {
|
9579
|
+
this.mappingsElement.value = value.mappings;
|
9580
|
+
}
|
9581
|
+
}
|
9545
9582
|
|
9546
|
-
|
9547
|
-
|
9583
|
+
getValidity() {
|
9584
|
+
if (!this.groupInputElement.checkValidity()) {
|
9585
|
+
return this.groupInputElement.validity;
|
9586
|
+
}
|
9587
|
+
if (!this.mappingsElement.checkValidity()) {
|
9588
|
+
return this.mappingsElement.validity;
|
9548
9589
|
}
|
9549
9590
|
|
9550
|
-
|
9551
|
-
|
9552
|
-
const attrsSelector = restPath.reduce((acc, section, idx) => {
|
9553
|
-
if (section.startsWith('_')) return `${acc}[${kebabCase(section.replace(/^_/, ''))}="true"]`;
|
9591
|
+
return {};
|
9592
|
+
}
|
9554
9593
|
|
9555
|
-
|
9594
|
+
#handleInvalidState(isInvalid) {
|
9595
|
+
if (isInvalid) {
|
9596
|
+
if (!this.groupInputElement.checkValidity()) {
|
9597
|
+
this.groupInputElement.setAttribute('invalid', 'true');
|
9598
|
+
return;
|
9599
|
+
}
|
9556
9600
|
|
9557
|
-
if (
|
9558
|
-
|
9559
|
-
console.error(
|
9560
|
-
'theme generator',
|
9561
|
-
`your theme structure is invalid, attribute "${section}" is followed by "${nextSection}" which is not allowed`
|
9562
|
-
);
|
9563
|
-
return acc;
|
9601
|
+
if (!this.mappingsElement.checkValidity()) {
|
9602
|
+
this.mappingsElement.setAttribute('invalid', 'true');
|
9564
9603
|
}
|
9604
|
+
}
|
9605
|
+
}
|
9565
9606
|
|
9566
|
-
|
9607
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
9608
|
+
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
9609
|
+
if (attrName === 'invalid') {
|
9610
|
+
this.#handleInvalidState(newValue === 'true');
|
9611
|
+
}
|
9612
|
+
}
|
9613
|
+
}
|
9614
|
+
|
9615
|
+
const componentName$1 = getComponentName('saml-group-mappings');
|
9616
|
+
|
9617
|
+
const customMixin = (superclass) =>
|
9618
|
+
class SamlGroupMappingsMixinClass extends superclass {
|
9619
|
+
init() {
|
9620
|
+
super.init?.();
|
9621
|
+
|
9622
|
+
const template = document.createElement('template');
|
9623
|
+
|
9624
|
+
template.innerHTML = `
|
9625
|
+
<${componentName$2}
|
9626
|
+
tabindex="-1"
|
9627
|
+
></${componentName$2}>
|
9628
|
+
`;
|
9629
|
+
|
9630
|
+
this.baseElement.appendChild(template.content.cloneNode(true));
|
9631
|
+
|
9632
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$2);
|
9633
|
+
|
9634
|
+
forwardAttrs(this, this.inputElement, {
|
9635
|
+
includeAttrs: [
|
9636
|
+
'size',
|
9637
|
+
'full-width',
|
9638
|
+
'label-group',
|
9639
|
+
'label-value',
|
9640
|
+
'label-attr',
|
9641
|
+
'button-label',
|
9642
|
+
'separator',
|
9643
|
+
'options',
|
9644
|
+
'readonly',
|
9645
|
+
'disabled',
|
9646
|
+
],
|
9647
|
+
});
|
9648
|
+
|
9649
|
+
syncAttrs(this, this.inputElement, { includeAttrs: ['invalid'] });
|
9650
|
+
}
|
9651
|
+
};
|
9652
|
+
|
9653
|
+
const { host, groupInput } = {
|
9654
|
+
host: { selector: () => ':host' },
|
9655
|
+
groupInput: { selector: 'descope-text-field' },
|
9656
|
+
};
|
9657
|
+
|
9658
|
+
const SamlGroupMappingsClass = compose(
|
9659
|
+
createStyleMixin({
|
9660
|
+
mappings: {
|
9661
|
+
hostWidth: { ...host, property: 'width' },
|
9662
|
+
hostDirection: { ...host, property: 'direction' },
|
9663
|
+
groupNameInputMarginBottom: { ...groupInput, property: 'margin-bottom' },
|
9664
|
+
},
|
9665
|
+
}),
|
9666
|
+
draggableMixin,
|
9667
|
+
composedProxyInputMixin({
|
9668
|
+
proxyProps: ['value', 'selectionStart'],
|
9669
|
+
inputEvent: 'input',
|
9670
|
+
triggerValidationEvents: ['mapping-item-added', 'mapping-item-removed'],
|
9671
|
+
proxyParentValidation: true,
|
9672
|
+
}),
|
9673
|
+
componentNameValidationMixin,
|
9674
|
+
customMixin
|
9675
|
+
)(
|
9676
|
+
createProxy({
|
9677
|
+
slots: [],
|
9678
|
+
wrappedEleName: 'vaadin-custom-field',
|
9679
|
+
style: () => `
|
9680
|
+
:host {
|
9681
|
+
display: inline-flex;
|
9682
|
+
max-width: 100%;
|
9683
|
+
direction: ltr;
|
9684
|
+
}
|
9685
|
+
|
9686
|
+
vaadin-custom-field {
|
9687
|
+
line-height: unset;
|
9688
|
+
width: 100%;
|
9689
|
+
}
|
9690
|
+
|
9691
|
+
descope-text-field {
|
9692
|
+
width: auto;
|
9693
|
+
}
|
9694
|
+
|
9695
|
+
descope-mappings-field {
|
9696
|
+
display: block;
|
9697
|
+
}
|
9698
|
+
`,
|
9699
|
+
excludeAttrsSync: [
|
9700
|
+
'tabindex',
|
9701
|
+
'label-group',
|
9702
|
+
'label-value',
|
9703
|
+
'label-attr',
|
9704
|
+
'button-label',
|
9705
|
+
'separator',
|
9706
|
+
'options',
|
9707
|
+
'error-message',
|
9708
|
+
],
|
9709
|
+
componentName: componentName$1,
|
9710
|
+
})
|
9711
|
+
);
|
9712
|
+
|
9713
|
+
customElements.define(componentName$2, SamlGroupMappingsInternal);
|
9714
|
+
|
9715
|
+
customElements.define(componentName$1, SamlGroupMappingsClass);
|
9716
|
+
|
9717
|
+
const getVarName = (path) => getCssVarName(DESCOPE_PREFIX, ...path);
|
9718
|
+
|
9719
|
+
// lodash.set alternative
|
9720
|
+
const set = (obj, path, value) => {
|
9721
|
+
const pathArray = Array.isArray(path) ? path : path.match(/([^[.\]])+/g);
|
9722
|
+
|
9723
|
+
pathArray.reduce((acc, key, i) => {
|
9724
|
+
if (acc[key] === undefined) acc[key] = {};
|
9725
|
+
if (i === pathArray.length - 1) acc[key] = value;
|
9726
|
+
return acc[key];
|
9727
|
+
}, obj);
|
9728
|
+
|
9729
|
+
return obj;
|
9730
|
+
};
|
9731
|
+
|
9732
|
+
const transformTheme = (theme, path, getTransformation) => {
|
9733
|
+
return Object.entries(theme).reduce((acc, [key, val]) => {
|
9734
|
+
if (val?.constructor !== Object) {
|
9735
|
+
return merge(acc, getTransformation(path.concat(key), val));
|
9736
|
+
}
|
9737
|
+
return merge(acc, transformTheme(val, [...path, key], getTransformation));
|
9738
|
+
}, {});
|
9739
|
+
};
|
9740
|
+
|
9741
|
+
const stringifyArray = (strArr) =>
|
9742
|
+
strArr.map((str) => (str.includes(' ') ? `"${str}"` : str)).join(', ');
|
9743
|
+
|
9744
|
+
const getCssVarValue = (val) => {
|
9745
|
+
switch (true) {
|
9746
|
+
case Array.isArray(val):
|
9747
|
+
return stringifyArray(val);
|
9748
|
+
case isUrl(val):
|
9749
|
+
return `url(${val})`;
|
9750
|
+
default:
|
9751
|
+
return val;
|
9752
|
+
}
|
9753
|
+
};
|
9754
|
+
|
9755
|
+
const themeToCSSVarsObj = (theme) =>
|
9756
|
+
transformTheme(theme, [], (path, val) => ({
|
9757
|
+
[getVarName(path)]: getCssVarValue(val),
|
9758
|
+
}));
|
9759
|
+
|
9760
|
+
const getThemeRefs = (theme, prefix) =>
|
9761
|
+
transformTheme(theme, [], (path) =>
|
9762
|
+
set({}, path, `var(${getVarName(prefix ? [prefix, ...path] : path)})`)
|
9763
|
+
);
|
9764
|
+
|
9765
|
+
const getThemeVars = (theme, prefix) =>
|
9766
|
+
transformTheme(theme, [], (path) => set({}, path, getVarName(prefix ? [prefix, ...path] : path)));
|
9767
|
+
|
9768
|
+
const globalsThemeToStyle = (theme, themeName = '') => {
|
9769
|
+
const style = Object.entries(themeToCSSVarsObj(theme)).reduce(
|
9770
|
+
(acc, entry) => `${acc}${entry.join(':')};\n`,
|
9771
|
+
''
|
9772
|
+
);
|
9773
|
+
|
9774
|
+
if (!themeName) return style;
|
9775
|
+
|
9776
|
+
return `*[data-theme="${themeName}"] {${style}}`;
|
9777
|
+
};
|
9778
|
+
|
9779
|
+
const componentsThemeToStyleObj = (componentsTheme) =>
|
9780
|
+
transformTheme(componentsTheme, [], (path, val) => {
|
9781
|
+
const [component, ...restPath] = path;
|
9782
|
+
const property = restPath.pop();
|
9783
|
+
const componentName = getComponentName(component);
|
9784
|
+
|
9785
|
+
if (property === 'undefined') {
|
9786
|
+
// eslint-disable-next-line no-console
|
9787
|
+
console.warn(componentName, `theme value: "${val}" is mapped to an invalid property`);
|
9788
|
+
}
|
9789
|
+
|
9790
|
+
// we need a support for portal components theme (e.g. overlay)
|
9791
|
+
// this allows us to generate those themes under different sections
|
9792
|
+
// if the theme has root level attribute that starts with #
|
9793
|
+
// we are generating a new theme
|
9794
|
+
let themeName = BASE_THEME_SECTION;
|
9795
|
+
|
9796
|
+
if (restPath[0] && restPath[0].startsWith(PORTAL_THEME_PREFIX)) {
|
9797
|
+
themeName = restPath.shift();
|
9798
|
+
}
|
9799
|
+
|
9800
|
+
// do not start with underscore -> key:value, must have 2 no underscore attrs in a row
|
9801
|
+
// starts with underscore -> attribute selector
|
9802
|
+
const attrsSelector = restPath.reduce((acc, section, idx) => {
|
9803
|
+
if (section.startsWith('_')) return `${acc}[${kebabCase(section.replace(/^_/, ''))}="true"]`;
|
9804
|
+
|
9805
|
+
const nextSection = restPath[idx + 1];
|
9806
|
+
|
9807
|
+
if (typeof nextSection !== 'string' || nextSection.startsWith('_')) {
|
9808
|
+
// eslint-disable-next-line no-console
|
9809
|
+
console.error(
|
9810
|
+
'theme generator',
|
9811
|
+
`your theme structure is invalid, attribute "${section}" is followed by "${nextSection}" which is not allowed`
|
9812
|
+
);
|
9813
|
+
return acc;
|
9814
|
+
}
|
9815
|
+
|
9816
|
+
return `${acc}[${kebabCase(section)}="${restPath.splice(idx + 1, 1).join('')}"]`;
|
9567
9817
|
}, '');
|
9568
9818
|
|
9569
9819
|
const selector = `:host${attrsSelector ? `(${attrsSelector})` : ''}`;
|
@@ -9894,7 +10144,7 @@ const globals = {
|
|
9894
10144
|
fonts,
|
9895
10145
|
direction,
|
9896
10146
|
};
|
9897
|
-
const vars$
|
10147
|
+
const vars$C = getThemeVars(globals);
|
9898
10148
|
|
9899
10149
|
const globalRefs$k = getThemeRefs(globals);
|
9900
10150
|
const compVars$5 = ButtonClass.cssVarList;
|
@@ -9907,7 +10157,7 @@ const mode = {
|
|
9907
10157
|
surface: globalRefs$k.colors.surface,
|
9908
10158
|
};
|
9909
10159
|
|
9910
|
-
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$
|
10160
|
+
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$P);
|
9911
10161
|
|
9912
10162
|
const button = {
|
9913
10163
|
...helperTheme$3,
|
@@ -10014,7 +10264,7 @@ const button = {
|
|
10014
10264
|
},
|
10015
10265
|
};
|
10016
10266
|
|
10017
|
-
const vars$
|
10267
|
+
const vars$B = {
|
10018
10268
|
...compVars$5,
|
10019
10269
|
...helperVars$3,
|
10020
10270
|
};
|
@@ -10022,13 +10272,13 @@ const vars$A = {
|
|
10022
10272
|
var button$1 = /*#__PURE__*/Object.freeze({
|
10023
10273
|
__proto__: null,
|
10024
10274
|
default: button,
|
10025
|
-
vars: vars$
|
10275
|
+
vars: vars$B
|
10026
10276
|
});
|
10027
10277
|
|
10028
10278
|
const componentName = getComponentName('input-wrapper');
|
10029
10279
|
const globalRefs$j = getThemeRefs(globals);
|
10030
10280
|
|
10031
|
-
const [theme$1, refs, vars$
|
10281
|
+
const [theme$1, refs, vars$A] = createHelperVars(
|
10032
10282
|
{
|
10033
10283
|
labelTextColor: globalRefs$j.colors.surface.dark,
|
10034
10284
|
valueTextColor: globalRefs$j.colors.surface.contrast,
|
@@ -10103,22 +10353,64 @@ var inputWrapper = /*#__PURE__*/Object.freeze({
|
|
10103
10353
|
__proto__: null,
|
10104
10354
|
default: theme$1,
|
10105
10355
|
refs: refs,
|
10106
|
-
vars: vars$
|
10356
|
+
vars: vars$A
|
10107
10357
|
});
|
10108
10358
|
|
10109
|
-
const vars$
|
10359
|
+
const vars$z = TextFieldClass.cssVarList;
|
10110
10360
|
|
10111
10361
|
const textField = {
|
10362
|
+
[vars$z.hostWidth]: refs.width,
|
10363
|
+
[vars$z.hostMinWidth]: refs.minWidth,
|
10364
|
+
[vars$z.hostDirection]: refs.direction,
|
10365
|
+
[vars$z.fontSize]: refs.fontSize,
|
10366
|
+
[vars$z.fontFamily]: refs.fontFamily,
|
10367
|
+
[vars$z.labelTextColor]: refs.labelTextColor,
|
10368
|
+
[vars$z.labelRequiredIndicator]: refs.requiredIndicator,
|
10369
|
+
[vars$z.errorMessageTextColor]: refs.errorMessageTextColor,
|
10370
|
+
[vars$z.inputValueTextColor]: refs.valueTextColor,
|
10371
|
+
[vars$z.inputPlaceholderColor]: refs.placeholderTextColor,
|
10372
|
+
[vars$z.inputBorderWidth]: refs.borderWidth,
|
10373
|
+
[vars$z.inputBorderStyle]: refs.borderStyle,
|
10374
|
+
[vars$z.inputBorderColor]: refs.borderColor,
|
10375
|
+
[vars$z.inputBorderRadius]: refs.borderRadius,
|
10376
|
+
[vars$z.inputOutlineWidth]: refs.outlineWidth,
|
10377
|
+
[vars$z.inputOutlineStyle]: refs.outlineStyle,
|
10378
|
+
[vars$z.inputOutlineColor]: refs.outlineColor,
|
10379
|
+
[vars$z.inputOutlineOffset]: refs.outlineOffset,
|
10380
|
+
[vars$z.inputBackgroundColor]: refs.backgroundColor,
|
10381
|
+
[vars$z.inputHeight]: refs.inputHeight,
|
10382
|
+
[vars$z.inputHorizontalPadding]: refs.horizontalPadding,
|
10383
|
+
[vars$z.helperTextColor]: refs.helperTextColor,
|
10384
|
+
textAlign: {
|
10385
|
+
right: { [vars$z.inputTextAlign]: 'right' },
|
10386
|
+
left: { [vars$z.inputTextAlign]: 'left' },
|
10387
|
+
center: { [vars$z.inputTextAlign]: 'center' },
|
10388
|
+
},
|
10389
|
+
};
|
10390
|
+
|
10391
|
+
var textField$1 = /*#__PURE__*/Object.freeze({
|
10392
|
+
__proto__: null,
|
10393
|
+
default: textField,
|
10394
|
+
textField: textField,
|
10395
|
+
vars: vars$z
|
10396
|
+
});
|
10397
|
+
|
10398
|
+
const globalRefs$i = getThemeRefs(globals);
|
10399
|
+
const vars$y = PasswordClass.cssVarList;
|
10400
|
+
|
10401
|
+
const password = {
|
10112
10402
|
[vars$y.hostWidth]: refs.width,
|
10113
|
-
[vars$y.hostMinWidth]: refs.minWidth,
|
10114
10403
|
[vars$y.hostDirection]: refs.direction,
|
10115
10404
|
[vars$y.fontSize]: refs.fontSize,
|
10116
10405
|
[vars$y.fontFamily]: refs.fontFamily,
|
10117
10406
|
[vars$y.labelTextColor]: refs.labelTextColor,
|
10118
|
-
[vars$y.labelRequiredIndicator]: refs.requiredIndicator,
|
10119
10407
|
[vars$y.errorMessageTextColor]: refs.errorMessageTextColor,
|
10408
|
+
[vars$y.inputHorizontalPadding]: refs.horizontalPadding,
|
10409
|
+
[vars$y.inputHeight]: refs.inputHeight,
|
10410
|
+
[vars$y.inputBackgroundColor]: refs.backgroundColor,
|
10411
|
+
[vars$y.labelRequiredIndicator]: refs.requiredIndicator,
|
10120
10412
|
[vars$y.inputValueTextColor]: refs.valueTextColor,
|
10121
|
-
[vars$y.
|
10413
|
+
[vars$y.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
10122
10414
|
[vars$y.inputBorderWidth]: refs.borderWidth,
|
10123
10415
|
[vars$y.inputBorderStyle]: refs.borderStyle,
|
10124
10416
|
[vars$y.inputBorderColor]: refs.borderColor,
|
@@ -10127,40 +10419,29 @@ const textField = {
|
|
10127
10419
|
[vars$y.inputOutlineStyle]: refs.outlineStyle,
|
10128
10420
|
[vars$y.inputOutlineColor]: refs.outlineColor,
|
10129
10421
|
[vars$y.inputOutlineOffset]: refs.outlineOffset,
|
10130
|
-
[vars$y.
|
10131
|
-
[vars$y.
|
10132
|
-
[vars$y.
|
10133
|
-
[vars$y.helperTextColor]: refs.helperTextColor,
|
10134
|
-
textAlign: {
|
10135
|
-
right: { [vars$y.inputTextAlign]: 'right' },
|
10136
|
-
left: { [vars$y.inputTextAlign]: 'left' },
|
10137
|
-
center: { [vars$y.inputTextAlign]: 'center' },
|
10138
|
-
},
|
10422
|
+
[vars$y.revealButtonOffset]: globalRefs$i.spacing.md,
|
10423
|
+
[vars$y.revealButtonSize]: refs.toggleButtonSize,
|
10424
|
+
[vars$y.revealButtonColor]: refs.placeholderTextColor,
|
10139
10425
|
};
|
10140
10426
|
|
10141
|
-
var
|
10427
|
+
var password$1 = /*#__PURE__*/Object.freeze({
|
10142
10428
|
__proto__: null,
|
10143
|
-
default:
|
10144
|
-
textField: textField,
|
10429
|
+
default: password,
|
10145
10430
|
vars: vars$y
|
10146
10431
|
});
|
10147
10432
|
|
10148
|
-
const
|
10149
|
-
const vars$x = PasswordClass.cssVarList;
|
10433
|
+
const vars$x = NumberFieldClass.cssVarList;
|
10150
10434
|
|
10151
|
-
const
|
10435
|
+
const numberField = {
|
10152
10436
|
[vars$x.hostWidth]: refs.width,
|
10437
|
+
[vars$x.hostMinWidth]: refs.minWidth,
|
10153
10438
|
[vars$x.hostDirection]: refs.direction,
|
10154
10439
|
[vars$x.fontSize]: refs.fontSize,
|
10155
10440
|
[vars$x.fontFamily]: refs.fontFamily,
|
10156
10441
|
[vars$x.labelTextColor]: refs.labelTextColor,
|
10157
10442
|
[vars$x.errorMessageTextColor]: refs.errorMessageTextColor,
|
10158
|
-
[vars$x.inputHorizontalPadding]: refs.horizontalPadding,
|
10159
|
-
[vars$x.inputHeight]: refs.inputHeight,
|
10160
|
-
[vars$x.inputBackgroundColor]: refs.backgroundColor,
|
10161
|
-
[vars$x.labelRequiredIndicator]: refs.requiredIndicator,
|
10162
10443
|
[vars$x.inputValueTextColor]: refs.valueTextColor,
|
10163
|
-
[vars$x.
|
10444
|
+
[vars$x.inputPlaceholderColor]: refs.placeholderTextColor,
|
10164
10445
|
[vars$x.inputBorderWidth]: refs.borderWidth,
|
10165
10446
|
[vars$x.inputBorderStyle]: refs.borderStyle,
|
10166
10447
|
[vars$x.inputBorderColor]: refs.borderColor,
|
@@ -10169,20 +10450,21 @@ const password = {
|
|
10169
10450
|
[vars$x.inputOutlineStyle]: refs.outlineStyle,
|
10170
10451
|
[vars$x.inputOutlineColor]: refs.outlineColor,
|
10171
10452
|
[vars$x.inputOutlineOffset]: refs.outlineOffset,
|
10172
|
-
[vars$x.
|
10173
|
-
[vars$x.
|
10174
|
-
[vars$x.
|
10453
|
+
[vars$x.inputBackgroundColor]: refs.backgroundColor,
|
10454
|
+
[vars$x.labelRequiredIndicator]: refs.requiredIndicator,
|
10455
|
+
[vars$x.inputHorizontalPadding]: refs.horizontalPadding,
|
10456
|
+
[vars$x.inputHeight]: refs.inputHeight,
|
10175
10457
|
};
|
10176
10458
|
|
10177
|
-
var
|
10459
|
+
var numberField$1 = /*#__PURE__*/Object.freeze({
|
10178
10460
|
__proto__: null,
|
10179
|
-
default:
|
10461
|
+
default: numberField,
|
10180
10462
|
vars: vars$x
|
10181
10463
|
});
|
10182
10464
|
|
10183
|
-
const vars$w =
|
10465
|
+
const vars$w = EmailFieldClass.cssVarList;
|
10184
10466
|
|
10185
|
-
const
|
10467
|
+
const emailField = {
|
10186
10468
|
[vars$w.hostWidth]: refs.width,
|
10187
10469
|
[vars$w.hostMinWidth]: refs.minWidth,
|
10188
10470
|
[vars$w.hostDirection]: refs.direction,
|
@@ -10191,6 +10473,7 @@ const numberField = {
|
|
10191
10473
|
[vars$w.labelTextColor]: refs.labelTextColor,
|
10192
10474
|
[vars$w.errorMessageTextColor]: refs.errorMessageTextColor,
|
10193
10475
|
[vars$w.inputValueTextColor]: refs.valueTextColor,
|
10476
|
+
[vars$w.labelRequiredIndicator]: refs.requiredIndicator,
|
10194
10477
|
[vars$w.inputPlaceholderColor]: refs.placeholderTextColor,
|
10195
10478
|
[vars$w.inputBorderWidth]: refs.borderWidth,
|
10196
10479
|
[vars$w.inputBorderStyle]: refs.borderStyle,
|
@@ -10201,197 +10484,164 @@ const numberField = {
|
|
10201
10484
|
[vars$w.inputOutlineColor]: refs.outlineColor,
|
10202
10485
|
[vars$w.inputOutlineOffset]: refs.outlineOffset,
|
10203
10486
|
[vars$w.inputBackgroundColor]: refs.backgroundColor,
|
10204
|
-
[vars$w.labelRequiredIndicator]: refs.requiredIndicator,
|
10205
10487
|
[vars$w.inputHorizontalPadding]: refs.horizontalPadding,
|
10206
10488
|
[vars$w.inputHeight]: refs.inputHeight,
|
10207
10489
|
};
|
10208
10490
|
|
10209
|
-
var
|
10491
|
+
var emailField$1 = /*#__PURE__*/Object.freeze({
|
10210
10492
|
__proto__: null,
|
10211
|
-
default:
|
10493
|
+
default: emailField,
|
10212
10494
|
vars: vars$w
|
10213
10495
|
});
|
10214
10496
|
|
10215
|
-
const vars$v =
|
10497
|
+
const vars$v = TextAreaClass.cssVarList;
|
10216
10498
|
|
10217
|
-
const
|
10499
|
+
const textArea = {
|
10218
10500
|
[vars$v.hostWidth]: refs.width,
|
10219
10501
|
[vars$v.hostMinWidth]: refs.minWidth,
|
10220
10502
|
[vars$v.hostDirection]: refs.direction,
|
10221
10503
|
[vars$v.fontSize]: refs.fontSize,
|
10222
10504
|
[vars$v.fontFamily]: refs.fontFamily,
|
10223
10505
|
[vars$v.labelTextColor]: refs.labelTextColor,
|
10506
|
+
[vars$v.labelRequiredIndicator]: refs.requiredIndicator,
|
10224
10507
|
[vars$v.errorMessageTextColor]: refs.errorMessageTextColor,
|
10508
|
+
[vars$v.inputBackgroundColor]: refs.backgroundColor,
|
10225
10509
|
[vars$v.inputValueTextColor]: refs.valueTextColor,
|
10226
|
-
[vars$v.
|
10227
|
-
[vars$v.
|
10510
|
+
[vars$v.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
10511
|
+
[vars$v.inputBorderRadius]: refs.borderRadius,
|
10228
10512
|
[vars$v.inputBorderWidth]: refs.borderWidth,
|
10229
10513
|
[vars$v.inputBorderStyle]: refs.borderStyle,
|
10230
10514
|
[vars$v.inputBorderColor]: refs.borderColor,
|
10231
|
-
[vars$v.inputBorderRadius]: refs.borderRadius,
|
10232
10515
|
[vars$v.inputOutlineWidth]: refs.outlineWidth,
|
10233
10516
|
[vars$v.inputOutlineStyle]: refs.outlineStyle,
|
10234
10517
|
[vars$v.inputOutlineColor]: refs.outlineColor,
|
10235
10518
|
[vars$v.inputOutlineOffset]: refs.outlineOffset,
|
10236
|
-
[vars$v.
|
10237
|
-
[vars$v.
|
10238
|
-
|
10519
|
+
[vars$v.inputResizeType]: 'vertical',
|
10520
|
+
[vars$v.inputMinHeight]: '5em',
|
10521
|
+
textAlign: {
|
10522
|
+
right: { [vars$v.inputTextAlign]: 'right' },
|
10523
|
+
left: { [vars$v.inputTextAlign]: 'left' },
|
10524
|
+
center: { [vars$v.inputTextAlign]: 'center' },
|
10525
|
+
},
|
10526
|
+
|
10527
|
+
_readonly: {
|
10528
|
+
[vars$v.inputResizeType]: 'none',
|
10529
|
+
},
|
10239
10530
|
};
|
10240
10531
|
|
10241
|
-
var
|
10532
|
+
var textArea$1 = /*#__PURE__*/Object.freeze({
|
10242
10533
|
__proto__: null,
|
10243
|
-
default:
|
10534
|
+
default: textArea,
|
10244
10535
|
vars: vars$v
|
10245
10536
|
});
|
10246
10537
|
|
10247
|
-
const vars$u =
|
10538
|
+
const vars$u = CheckboxClass.cssVarList;
|
10539
|
+
const checkboxSize = '1.35em';
|
10248
10540
|
|
10249
|
-
const
|
10541
|
+
const checkbox = {
|
10250
10542
|
[vars$u.hostWidth]: refs.width,
|
10251
|
-
[vars$u.hostMinWidth]: refs.minWidth,
|
10252
10543
|
[vars$u.hostDirection]: refs.direction,
|
10253
10544
|
[vars$u.fontSize]: refs.fontSize,
|
10254
10545
|
[vars$u.fontFamily]: refs.fontFamily,
|
10255
10546
|
[vars$u.labelTextColor]: refs.labelTextColor,
|
10256
10547
|
[vars$u.labelRequiredIndicator]: refs.requiredIndicator,
|
10548
|
+
[vars$u.labelFontWeight]: '400',
|
10549
|
+
[vars$u.labelLineHeight]: checkboxSize,
|
10550
|
+
[vars$u.labelSpacing]: '1em',
|
10257
10551
|
[vars$u.errorMessageTextColor]: refs.errorMessageTextColor,
|
10258
|
-
[vars$u.
|
10259
|
-
[vars$u.
|
10260
|
-
[vars$u.
|
10552
|
+
[vars$u.inputOutlineWidth]: refs.outlineWidth,
|
10553
|
+
[vars$u.inputOutlineOffset]: refs.outlineOffset,
|
10554
|
+
[vars$u.inputOutlineColor]: refs.outlineColor,
|
10555
|
+
[vars$u.inputOutlineStyle]: refs.outlineStyle,
|
10261
10556
|
[vars$u.inputBorderRadius]: refs.borderRadius,
|
10557
|
+
[vars$u.inputBorderColor]: refs.borderColor,
|
10262
10558
|
[vars$u.inputBorderWidth]: refs.borderWidth,
|
10263
10559
|
[vars$u.inputBorderStyle]: refs.borderStyle,
|
10264
|
-
[vars$u.
|
10265
|
-
[vars$u.
|
10266
|
-
|
10267
|
-
|
10268
|
-
|
10269
|
-
[vars$u.inputResizeType]: 'vertical',
|
10270
|
-
[vars$u.inputMinHeight]: '5em',
|
10271
|
-
textAlign: {
|
10272
|
-
right: { [vars$u.inputTextAlign]: 'right' },
|
10273
|
-
left: { [vars$u.inputTextAlign]: 'left' },
|
10274
|
-
center: { [vars$u.inputTextAlign]: 'center' },
|
10560
|
+
[vars$u.inputBackgroundColor]: refs.backgroundColor,
|
10561
|
+
[vars$u.inputSize]: checkboxSize,
|
10562
|
+
|
10563
|
+
_checked: {
|
10564
|
+
[vars$u.inputValueTextColor]: refs.valueTextColor,
|
10275
10565
|
},
|
10276
10566
|
|
10277
|
-
|
10278
|
-
[vars$u.
|
10567
|
+
_disabled: {
|
10568
|
+
[vars$u.labelTextColor]: refs.labelTextColor,
|
10279
10569
|
},
|
10280
10570
|
};
|
10281
10571
|
|
10282
|
-
var
|
10572
|
+
var checkbox$1 = /*#__PURE__*/Object.freeze({
|
10283
10573
|
__proto__: null,
|
10284
|
-
default:
|
10574
|
+
default: checkbox,
|
10285
10575
|
vars: vars$u
|
10286
10576
|
});
|
10287
10577
|
|
10288
|
-
const
|
10289
|
-
const
|
10578
|
+
const knobMargin = '2px';
|
10579
|
+
const checkboxHeight = '1.25em';
|
10290
10580
|
|
10291
|
-
const
|
10581
|
+
const globalRefs$h = getThemeRefs(globals);
|
10582
|
+
const vars$t = SwitchToggleClass.cssVarList;
|
10583
|
+
|
10584
|
+
const switchToggle = {
|
10292
10585
|
[vars$t.hostWidth]: refs.width,
|
10293
10586
|
[vars$t.hostDirection]: refs.direction,
|
10294
10587
|
[vars$t.fontSize]: refs.fontSize,
|
10295
10588
|
[vars$t.fontFamily]: refs.fontFamily,
|
10296
|
-
|
10297
|
-
[vars$t.labelRequiredIndicator]: refs.requiredIndicator,
|
10298
|
-
[vars$t.labelFontWeight]: '400',
|
10299
|
-
[vars$t.labelLineHeight]: checkboxSize,
|
10300
|
-
[vars$t.labelSpacing]: '1em',
|
10301
|
-
[vars$t.errorMessageTextColor]: refs.errorMessageTextColor,
|
10589
|
+
|
10302
10590
|
[vars$t.inputOutlineWidth]: refs.outlineWidth,
|
10303
10591
|
[vars$t.inputOutlineOffset]: refs.outlineOffset,
|
10304
10592
|
[vars$t.inputOutlineColor]: refs.outlineColor,
|
10305
10593
|
[vars$t.inputOutlineStyle]: refs.outlineStyle,
|
10306
|
-
[vars$t.inputBorderRadius]: refs.borderRadius,
|
10307
|
-
[vars$t.inputBorderColor]: refs.borderColor,
|
10308
|
-
[vars$t.inputBorderWidth]: refs.borderWidth,
|
10309
|
-
[vars$t.inputBorderStyle]: refs.borderStyle,
|
10310
|
-
[vars$t.inputBackgroundColor]: refs.backgroundColor,
|
10311
|
-
[vars$t.inputSize]: checkboxSize,
|
10312
|
-
|
10313
|
-
_checked: {
|
10314
|
-
[vars$t.inputValueTextColor]: refs.valueTextColor,
|
10315
|
-
},
|
10316
|
-
|
10317
|
-
_disabled: {
|
10318
|
-
[vars$t.labelTextColor]: refs.labelTextColor,
|
10319
|
-
},
|
10320
|
-
};
|
10321
10594
|
|
10322
|
-
|
10323
|
-
|
10324
|
-
|
10325
|
-
vars:
|
10326
|
-
|
10595
|
+
[vars$t.trackBorderStyle]: refs.borderStyle,
|
10596
|
+
[vars$t.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
10597
|
+
[vars$t.trackBorderColor]: refs.borderColor,
|
10598
|
+
[vars$t.trackBackgroundColor]: refs.backgroundColor,
|
10599
|
+
[vars$t.trackBorderRadius]: globalRefs$h.radius.md,
|
10600
|
+
[vars$t.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
10601
|
+
[vars$t.trackHeight]: checkboxHeight,
|
10602
|
+
|
10603
|
+
[vars$t.knobSize]: `calc(1em - ${knobMargin})`,
|
10604
|
+
[vars$t.knobRadius]: '50%',
|
10605
|
+
[vars$t.knobTopOffset]: '1px',
|
10606
|
+
[vars$t.knobLeftOffset]: knobMargin,
|
10607
|
+
[vars$t.knobColor]: refs.labelTextColor,
|
10608
|
+
[vars$t.knobTransitionDuration]: '0.3s',
|
10327
10609
|
|
10328
|
-
|
10329
|
-
|
10330
|
-
|
10331
|
-
|
10332
|
-
|
10333
|
-
|
10334
|
-
const switchToggle = {
|
10335
|
-
[vars$s.hostWidth]: refs.width,
|
10336
|
-
[vars$s.hostDirection]: refs.direction,
|
10337
|
-
[vars$s.fontSize]: refs.fontSize,
|
10338
|
-
[vars$s.fontFamily]: refs.fontFamily,
|
10339
|
-
|
10340
|
-
[vars$s.inputOutlineWidth]: refs.outlineWidth,
|
10341
|
-
[vars$s.inputOutlineOffset]: refs.outlineOffset,
|
10342
|
-
[vars$s.inputOutlineColor]: refs.outlineColor,
|
10343
|
-
[vars$s.inputOutlineStyle]: refs.outlineStyle,
|
10344
|
-
|
10345
|
-
[vars$s.trackBorderStyle]: refs.borderStyle,
|
10346
|
-
[vars$s.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
10347
|
-
[vars$s.trackBorderColor]: refs.borderColor,
|
10348
|
-
[vars$s.trackBackgroundColor]: refs.backgroundColor,
|
10349
|
-
[vars$s.trackBorderRadius]: globalRefs$h.radius.md,
|
10350
|
-
[vars$s.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
10351
|
-
[vars$s.trackHeight]: checkboxHeight,
|
10352
|
-
|
10353
|
-
[vars$s.knobSize]: `calc(1em - ${knobMargin})`,
|
10354
|
-
[vars$s.knobRadius]: '50%',
|
10355
|
-
[vars$s.knobTopOffset]: '1px',
|
10356
|
-
[vars$s.knobLeftOffset]: knobMargin,
|
10357
|
-
[vars$s.knobColor]: refs.labelTextColor,
|
10358
|
-
[vars$s.knobTransitionDuration]: '0.3s',
|
10359
|
-
|
10360
|
-
[vars$s.labelTextColor]: refs.labelTextColor,
|
10361
|
-
[vars$s.labelFontWeight]: '400',
|
10362
|
-
[vars$s.labelLineHeight]: '1.35em',
|
10363
|
-
[vars$s.labelSpacing]: '1em',
|
10364
|
-
[vars$s.labelRequiredIndicator]: refs.requiredIndicator,
|
10365
|
-
[vars$s.errorMessageTextColor]: refs.errorMessageTextColor,
|
10610
|
+
[vars$t.labelTextColor]: refs.labelTextColor,
|
10611
|
+
[vars$t.labelFontWeight]: '400',
|
10612
|
+
[vars$t.labelLineHeight]: '1.35em',
|
10613
|
+
[vars$t.labelSpacing]: '1em',
|
10614
|
+
[vars$t.labelRequiredIndicator]: refs.requiredIndicator,
|
10615
|
+
[vars$t.errorMessageTextColor]: refs.errorMessageTextColor,
|
10366
10616
|
|
10367
10617
|
_checked: {
|
10368
|
-
[vars$
|
10369
|
-
[vars$
|
10370
|
-
[vars$
|
10371
|
-
[vars$
|
10618
|
+
[vars$t.trackBorderColor]: refs.borderColor,
|
10619
|
+
[vars$t.knobLeftOffset]: `calc(100% - var(${vars$t.knobSize}) - ${knobMargin})`,
|
10620
|
+
[vars$t.knobColor]: refs.valueTextColor,
|
10621
|
+
[vars$t.knobTextColor]: refs.valueTextColor,
|
10372
10622
|
},
|
10373
10623
|
|
10374
10624
|
_disabled: {
|
10375
|
-
[vars$
|
10376
|
-
[vars$
|
10377
|
-
[vars$
|
10378
|
-
[vars$
|
10625
|
+
[vars$t.knobColor]: globalRefs$h.colors.surface.light,
|
10626
|
+
[vars$t.trackBorderColor]: globalRefs$h.colors.surface.light,
|
10627
|
+
[vars$t.trackBackgroundColor]: globalRefs$h.colors.surface.main,
|
10628
|
+
[vars$t.labelTextColor]: refs.labelTextColor,
|
10379
10629
|
_checked: {
|
10380
|
-
[vars$
|
10381
|
-
[vars$
|
10630
|
+
[vars$t.knobColor]: globalRefs$h.colors.surface.light,
|
10631
|
+
[vars$t.trackBackgroundColor]: globalRefs$h.colors.surface.main,
|
10382
10632
|
},
|
10383
10633
|
},
|
10384
10634
|
|
10385
10635
|
_invalid: {
|
10386
|
-
[vars$
|
10387
|
-
[vars$
|
10636
|
+
[vars$t.trackBorderColor]: globalRefs$h.colors.error.main,
|
10637
|
+
[vars$t.knobColor]: globalRefs$h.colors.error.main,
|
10388
10638
|
},
|
10389
10639
|
};
|
10390
10640
|
|
10391
10641
|
var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
10392
10642
|
__proto__: null,
|
10393
10643
|
default: switchToggle,
|
10394
|
-
vars: vars$
|
10644
|
+
vars: vars$t
|
10395
10645
|
});
|
10396
10646
|
|
10397
10647
|
const globalRefs$g = getThemeRefs(globals);
|
@@ -10416,7 +10666,7 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
|
|
10416
10666
|
horizontalAlignment,
|
10417
10667
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
10418
10668
|
},
|
10419
|
-
componentName$
|
10669
|
+
componentName$J
|
10420
10670
|
);
|
10421
10671
|
|
10422
10672
|
const { shadowColor: shadowColor$1 } = helperRefs$2;
|
@@ -10502,7 +10752,7 @@ const container = {
|
|
10502
10752
|
},
|
10503
10753
|
};
|
10504
10754
|
|
10505
|
-
const vars$
|
10755
|
+
const vars$s = {
|
10506
10756
|
...compVars$4,
|
10507
10757
|
...helperVars$2,
|
10508
10758
|
};
|
@@ -10510,166 +10760,166 @@ const vars$r = {
|
|
10510
10760
|
var container$1 = /*#__PURE__*/Object.freeze({
|
10511
10761
|
__proto__: null,
|
10512
10762
|
default: container,
|
10513
|
-
vars: vars$
|
10763
|
+
vars: vars$s
|
10514
10764
|
});
|
10515
10765
|
|
10516
|
-
const vars$
|
10766
|
+
const vars$r = LogoClass.cssVarList;
|
10517
10767
|
|
10518
10768
|
const logo$2 = {
|
10519
|
-
[vars$
|
10769
|
+
[vars$r.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
|
10520
10770
|
};
|
10521
10771
|
|
10522
10772
|
var logo$3 = /*#__PURE__*/Object.freeze({
|
10523
10773
|
__proto__: null,
|
10524
10774
|
default: logo$2,
|
10525
|
-
vars: vars$
|
10775
|
+
vars: vars$r
|
10526
10776
|
});
|
10527
10777
|
|
10528
|
-
const vars$
|
10778
|
+
const vars$q = TotpImageClass.cssVarList;
|
10529
10779
|
|
10530
10780
|
const logo$1 = {
|
10531
|
-
[vars$
|
10781
|
+
[vars$q.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
|
10532
10782
|
};
|
10533
10783
|
|
10534
10784
|
var totpImage = /*#__PURE__*/Object.freeze({
|
10535
10785
|
__proto__: null,
|
10536
10786
|
default: logo$1,
|
10537
|
-
vars: vars$
|
10787
|
+
vars: vars$q
|
10538
10788
|
});
|
10539
10789
|
|
10540
|
-
const vars$
|
10790
|
+
const vars$p = NotpImageClass.cssVarList;
|
10541
10791
|
|
10542
10792
|
const logo = {
|
10543
|
-
[vars$
|
10793
|
+
[vars$p.fallbackUrl]: 'url(https://imgs.descope.com/components/notp-placeholder.svg)',
|
10544
10794
|
};
|
10545
10795
|
|
10546
10796
|
var notpImage = /*#__PURE__*/Object.freeze({
|
10547
10797
|
__proto__: null,
|
10548
10798
|
default: logo,
|
10549
|
-
vars: vars$
|
10799
|
+
vars: vars$p
|
10550
10800
|
});
|
10551
10801
|
|
10552
10802
|
const globalRefs$f = getThemeRefs(globals);
|
10553
|
-
const vars$
|
10803
|
+
const vars$o = TextClass.cssVarList;
|
10554
10804
|
|
10555
10805
|
const text = {
|
10556
|
-
[vars$
|
10557
|
-
[vars$
|
10558
|
-
[vars$
|
10559
|
-
[vars$
|
10806
|
+
[vars$o.hostDirection]: globalRefs$f.direction,
|
10807
|
+
[vars$o.textLineHeight]: '1.35em',
|
10808
|
+
[vars$o.textAlign]: 'left',
|
10809
|
+
[vars$o.textColor]: globalRefs$f.colors.surface.dark,
|
10560
10810
|
variant: {
|
10561
10811
|
h1: {
|
10562
|
-
[vars$
|
10563
|
-
[vars$
|
10564
|
-
[vars$
|
10812
|
+
[vars$o.fontSize]: globalRefs$f.typography.h1.size,
|
10813
|
+
[vars$o.fontWeight]: globalRefs$f.typography.h1.weight,
|
10814
|
+
[vars$o.fontFamily]: globalRefs$f.typography.h1.font,
|
10565
10815
|
},
|
10566
10816
|
h2: {
|
10567
|
-
[vars$
|
10568
|
-
[vars$
|
10569
|
-
[vars$
|
10817
|
+
[vars$o.fontSize]: globalRefs$f.typography.h2.size,
|
10818
|
+
[vars$o.fontWeight]: globalRefs$f.typography.h2.weight,
|
10819
|
+
[vars$o.fontFamily]: globalRefs$f.typography.h2.font,
|
10570
10820
|
},
|
10571
10821
|
h3: {
|
10572
|
-
[vars$
|
10573
|
-
[vars$
|
10574
|
-
[vars$
|
10822
|
+
[vars$o.fontSize]: globalRefs$f.typography.h3.size,
|
10823
|
+
[vars$o.fontWeight]: globalRefs$f.typography.h3.weight,
|
10824
|
+
[vars$o.fontFamily]: globalRefs$f.typography.h3.font,
|
10575
10825
|
},
|
10576
10826
|
subtitle1: {
|
10577
|
-
[vars$
|
10578
|
-
[vars$
|
10579
|
-
[vars$
|
10827
|
+
[vars$o.fontSize]: globalRefs$f.typography.subtitle1.size,
|
10828
|
+
[vars$o.fontWeight]: globalRefs$f.typography.subtitle1.weight,
|
10829
|
+
[vars$o.fontFamily]: globalRefs$f.typography.subtitle1.font,
|
10580
10830
|
},
|
10581
10831
|
subtitle2: {
|
10582
|
-
[vars$
|
10583
|
-
[vars$
|
10584
|
-
[vars$
|
10832
|
+
[vars$o.fontSize]: globalRefs$f.typography.subtitle2.size,
|
10833
|
+
[vars$o.fontWeight]: globalRefs$f.typography.subtitle2.weight,
|
10834
|
+
[vars$o.fontFamily]: globalRefs$f.typography.subtitle2.font,
|
10585
10835
|
},
|
10586
10836
|
body1: {
|
10587
|
-
[vars$
|
10588
|
-
[vars$
|
10589
|
-
[vars$
|
10837
|
+
[vars$o.fontSize]: globalRefs$f.typography.body1.size,
|
10838
|
+
[vars$o.fontWeight]: globalRefs$f.typography.body1.weight,
|
10839
|
+
[vars$o.fontFamily]: globalRefs$f.typography.body1.font,
|
10590
10840
|
},
|
10591
10841
|
body2: {
|
10592
|
-
[vars$
|
10593
|
-
[vars$
|
10594
|
-
[vars$
|
10842
|
+
[vars$o.fontSize]: globalRefs$f.typography.body2.size,
|
10843
|
+
[vars$o.fontWeight]: globalRefs$f.typography.body2.weight,
|
10844
|
+
[vars$o.fontFamily]: globalRefs$f.typography.body2.font,
|
10595
10845
|
},
|
10596
10846
|
},
|
10597
10847
|
|
10598
10848
|
mode: {
|
10599
10849
|
primary: {
|
10600
|
-
[vars$
|
10850
|
+
[vars$o.textColor]: globalRefs$f.colors.surface.contrast,
|
10601
10851
|
},
|
10602
10852
|
secondary: {
|
10603
|
-
[vars$
|
10853
|
+
[vars$o.textColor]: globalRefs$f.colors.surface.dark,
|
10604
10854
|
},
|
10605
10855
|
error: {
|
10606
|
-
[vars$
|
10856
|
+
[vars$o.textColor]: globalRefs$f.colors.error.main,
|
10607
10857
|
},
|
10608
10858
|
success: {
|
10609
|
-
[vars$
|
10859
|
+
[vars$o.textColor]: globalRefs$f.colors.success.main,
|
10610
10860
|
},
|
10611
10861
|
},
|
10612
10862
|
|
10613
10863
|
textAlign: {
|
10614
|
-
right: { [vars$
|
10615
|
-
left: { [vars$
|
10616
|
-
center: { [vars$
|
10864
|
+
right: { [vars$o.textAlign]: 'right' },
|
10865
|
+
left: { [vars$o.textAlign]: 'left' },
|
10866
|
+
center: { [vars$o.textAlign]: 'center' },
|
10617
10867
|
},
|
10618
10868
|
|
10619
10869
|
_fullWidth: {
|
10620
|
-
[vars$
|
10870
|
+
[vars$o.hostWidth]: '100%',
|
10621
10871
|
},
|
10622
10872
|
|
10623
10873
|
_italic: {
|
10624
|
-
[vars$
|
10874
|
+
[vars$o.fontStyle]: 'italic',
|
10625
10875
|
},
|
10626
10876
|
|
10627
10877
|
_uppercase: {
|
10628
|
-
[vars$
|
10878
|
+
[vars$o.textTransform]: 'uppercase',
|
10629
10879
|
},
|
10630
10880
|
|
10631
10881
|
_lowercase: {
|
10632
|
-
[vars$
|
10882
|
+
[vars$o.textTransform]: 'lowercase',
|
10633
10883
|
},
|
10634
10884
|
};
|
10635
10885
|
|
10636
10886
|
var text$1 = /*#__PURE__*/Object.freeze({
|
10637
10887
|
__proto__: null,
|
10638
10888
|
default: text,
|
10639
|
-
vars: vars$
|
10889
|
+
vars: vars$o
|
10640
10890
|
});
|
10641
10891
|
|
10642
10892
|
const globalRefs$e = getThemeRefs(globals);
|
10643
|
-
const vars$
|
10893
|
+
const vars$n = LinkClass.cssVarList;
|
10644
10894
|
|
10645
10895
|
const link = {
|
10646
|
-
[vars$
|
10647
|
-
[vars$
|
10896
|
+
[vars$n.hostDirection]: globalRefs$e.direction,
|
10897
|
+
[vars$n.cursor]: 'pointer',
|
10648
10898
|
|
10649
|
-
[vars$
|
10899
|
+
[vars$n.textColor]: globalRefs$e.colors.primary.main,
|
10650
10900
|
|
10651
10901
|
textAlign: {
|
10652
|
-
right: { [vars$
|
10653
|
-
left: { [vars$
|
10654
|
-
center: { [vars$
|
10902
|
+
right: { [vars$n.textAlign]: 'right' },
|
10903
|
+
left: { [vars$n.textAlign]: 'left' },
|
10904
|
+
center: { [vars$n.textAlign]: 'center' },
|
10655
10905
|
},
|
10656
10906
|
|
10657
10907
|
_fullWidth: {
|
10658
|
-
[vars$
|
10908
|
+
[vars$n.hostWidth]: '100%',
|
10659
10909
|
},
|
10660
10910
|
|
10661
10911
|
mode: {
|
10662
10912
|
primary: {
|
10663
|
-
[vars$
|
10913
|
+
[vars$n.textColor]: globalRefs$e.colors.primary.main,
|
10664
10914
|
},
|
10665
10915
|
secondary: {
|
10666
|
-
[vars$
|
10916
|
+
[vars$n.textColor]: globalRefs$e.colors.secondary.main,
|
10667
10917
|
},
|
10668
10918
|
error: {
|
10669
|
-
[vars$
|
10919
|
+
[vars$n.textColor]: globalRefs$e.colors.error.main,
|
10670
10920
|
},
|
10671
10921
|
success: {
|
10672
|
-
[vars$
|
10922
|
+
[vars$n.textColor]: globalRefs$e.colors.success.main,
|
10673
10923
|
},
|
10674
10924
|
},
|
10675
10925
|
};
|
@@ -10677,7 +10927,7 @@ const link = {
|
|
10677
10927
|
var link$1 = /*#__PURE__*/Object.freeze({
|
10678
10928
|
__proto__: null,
|
10679
10929
|
default: link,
|
10680
|
-
vars: vars$
|
10930
|
+
vars: vars$n
|
10681
10931
|
});
|
10682
10932
|
|
10683
10933
|
const globalRefs$d = getThemeRefs(globals);
|
@@ -10688,7 +10938,7 @@ const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
|
10688
10938
|
thickness: '2px',
|
10689
10939
|
spacing: '10px',
|
10690
10940
|
},
|
10691
|
-
componentName$
|
10941
|
+
componentName$H
|
10692
10942
|
);
|
10693
10943
|
|
10694
10944
|
const divider = {
|
@@ -10719,7 +10969,7 @@ const divider = {
|
|
10719
10969
|
},
|
10720
10970
|
};
|
10721
10971
|
|
10722
|
-
const vars$
|
10972
|
+
const vars$m = {
|
10723
10973
|
...compVars$3,
|
10724
10974
|
...helperVars$1,
|
10725
10975
|
};
|
@@ -10727,93 +10977,93 @@ const vars$l = {
|
|
10727
10977
|
var divider$1 = /*#__PURE__*/Object.freeze({
|
10728
10978
|
__proto__: null,
|
10729
10979
|
default: divider,
|
10730
|
-
vars: vars$
|
10980
|
+
vars: vars$m
|
10731
10981
|
});
|
10732
10982
|
|
10733
|
-
const vars$
|
10983
|
+
const vars$l = PasscodeClass.cssVarList;
|
10734
10984
|
|
10735
10985
|
const passcode = {
|
10736
|
-
[vars$
|
10737
|
-
[vars$
|
10738
|
-
[vars$
|
10739
|
-
[vars$
|
10740
|
-
[vars$
|
10741
|
-
[vars$
|
10742
|
-
[vars$
|
10743
|
-
[vars$
|
10744
|
-
[vars$
|
10745
|
-
[vars$
|
10746
|
-
[vars$
|
10747
|
-
[vars$
|
10748
|
-
[vars$
|
10749
|
-
[vars$
|
10750
|
-
[vars$
|
10986
|
+
[vars$l.hostDirection]: refs.direction,
|
10987
|
+
[vars$l.fontFamily]: refs.fontFamily,
|
10988
|
+
[vars$l.fontSize]: refs.fontSize,
|
10989
|
+
[vars$l.labelTextColor]: refs.labelTextColor,
|
10990
|
+
[vars$l.labelRequiredIndicator]: refs.requiredIndicator,
|
10991
|
+
[vars$l.errorMessageTextColor]: refs.errorMessageTextColor,
|
10992
|
+
[vars$l.digitValueTextColor]: refs.valueTextColor,
|
10993
|
+
[vars$l.digitPadding]: '0',
|
10994
|
+
[vars$l.digitTextAlign]: 'center',
|
10995
|
+
[vars$l.digitSpacing]: '4px',
|
10996
|
+
[vars$l.hostWidth]: refs.width,
|
10997
|
+
[vars$l.digitOutlineColor]: 'transparent',
|
10998
|
+
[vars$l.digitOutlineWidth]: refs.outlineWidth,
|
10999
|
+
[vars$l.focusedDigitFieldOutlineColor]: refs.outlineColor,
|
11000
|
+
[vars$l.digitSize]: refs.inputHeight,
|
10751
11001
|
|
10752
11002
|
size: {
|
10753
|
-
xs: { [vars$
|
10754
|
-
sm: { [vars$
|
10755
|
-
md: { [vars$
|
10756
|
-
lg: { [vars$
|
11003
|
+
xs: { [vars$l.spinnerSize]: '15px' },
|
11004
|
+
sm: { [vars$l.spinnerSize]: '20px' },
|
11005
|
+
md: { [vars$l.spinnerSize]: '20px' },
|
11006
|
+
lg: { [vars$l.spinnerSize]: '20px' },
|
10757
11007
|
},
|
10758
11008
|
|
10759
11009
|
_hideCursor: {
|
10760
|
-
[vars$
|
11010
|
+
[vars$l.digitCaretTextColor]: 'transparent',
|
10761
11011
|
},
|
10762
11012
|
|
10763
11013
|
_loading: {
|
10764
|
-
[vars$
|
11014
|
+
[vars$l.overlayOpacity]: refs.overlayOpacity,
|
10765
11015
|
},
|
10766
11016
|
};
|
10767
11017
|
|
10768
11018
|
var passcode$1 = /*#__PURE__*/Object.freeze({
|
10769
11019
|
__proto__: null,
|
10770
11020
|
default: passcode,
|
10771
|
-
vars: vars$
|
11021
|
+
vars: vars$l
|
10772
11022
|
});
|
10773
11023
|
|
10774
11024
|
const globalRefs$c = getThemeRefs(globals);
|
10775
|
-
const vars$
|
11025
|
+
const vars$k = LoaderLinearClass.cssVarList;
|
10776
11026
|
|
10777
11027
|
const loaderLinear = {
|
10778
|
-
[vars$
|
10779
|
-
[vars$
|
11028
|
+
[vars$k.hostDisplay]: 'inline-block',
|
11029
|
+
[vars$k.hostWidth]: '100%',
|
10780
11030
|
|
10781
|
-
[vars$
|
10782
|
-
[vars$
|
11031
|
+
[vars$k.barColor]: globalRefs$c.colors.surface.contrast,
|
11032
|
+
[vars$k.barWidth]: '20%',
|
10783
11033
|
|
10784
|
-
[vars$
|
10785
|
-
[vars$
|
11034
|
+
[vars$k.barBackgroundColor]: globalRefs$c.colors.surface.light,
|
11035
|
+
[vars$k.barBorderRadius]: '4px',
|
10786
11036
|
|
10787
|
-
[vars$
|
10788
|
-
[vars$
|
10789
|
-
[vars$
|
10790
|
-
[vars$
|
11037
|
+
[vars$k.animationDuration]: '2s',
|
11038
|
+
[vars$k.animationTimingFunction]: 'linear',
|
11039
|
+
[vars$k.animationIterationCount]: 'infinite',
|
11040
|
+
[vars$k.verticalPadding]: '0.25em',
|
10791
11041
|
|
10792
11042
|
size: {
|
10793
|
-
xs: { [vars$
|
10794
|
-
sm: { [vars$
|
10795
|
-
md: { [vars$
|
10796
|
-
lg: { [vars$
|
11043
|
+
xs: { [vars$k.barHeight]: '2px' },
|
11044
|
+
sm: { [vars$k.barHeight]: '4px' },
|
11045
|
+
md: { [vars$k.barHeight]: '6px' },
|
11046
|
+
lg: { [vars$k.barHeight]: '8px' },
|
10797
11047
|
},
|
10798
11048
|
|
10799
11049
|
mode: {
|
10800
11050
|
primary: {
|
10801
|
-
[vars$
|
11051
|
+
[vars$k.barColor]: globalRefs$c.colors.primary.main,
|
10802
11052
|
},
|
10803
11053
|
secondary: {
|
10804
|
-
[vars$
|
11054
|
+
[vars$k.barColor]: globalRefs$c.colors.secondary.main,
|
10805
11055
|
},
|
10806
11056
|
},
|
10807
11057
|
|
10808
11058
|
_hidden: {
|
10809
|
-
[vars$
|
11059
|
+
[vars$k.hostDisplay]: 'none',
|
10810
11060
|
},
|
10811
11061
|
};
|
10812
11062
|
|
10813
11063
|
var loaderLinear$1 = /*#__PURE__*/Object.freeze({
|
10814
11064
|
__proto__: null,
|
10815
11065
|
default: loaderLinear,
|
10816
|
-
vars: vars$
|
11066
|
+
vars: vars$k
|
10817
11067
|
});
|
10818
11068
|
|
10819
11069
|
const globalRefs$b = getThemeRefs(globals);
|
@@ -10831,7 +11081,7 @@ const [helperTheme, helperRefs, helperVars] = createHelperVars(
|
|
10831
11081
|
},
|
10832
11082
|
},
|
10833
11083
|
},
|
10834
|
-
componentName$
|
11084
|
+
componentName$K
|
10835
11085
|
);
|
10836
11086
|
|
10837
11087
|
const loaderRadial = {
|
@@ -10860,7 +11110,7 @@ const loaderRadial = {
|
|
10860
11110
|
[compVars$2.hostDisplay]: 'none',
|
10861
11111
|
},
|
10862
11112
|
};
|
10863
|
-
const vars$
|
11113
|
+
const vars$j = {
|
10864
11114
|
...compVars$2,
|
10865
11115
|
...helperVars,
|
10866
11116
|
};
|
@@ -10868,78 +11118,114 @@ const vars$i = {
|
|
10868
11118
|
var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
10869
11119
|
__proto__: null,
|
10870
11120
|
default: loaderRadial,
|
10871
|
-
vars: vars$
|
11121
|
+
vars: vars$j
|
10872
11122
|
});
|
10873
11123
|
|
10874
11124
|
const globalRefs$a = getThemeRefs(globals);
|
10875
|
-
const vars$
|
11125
|
+
const vars$i = ComboBoxClass.cssVarList;
|
10876
11126
|
|
10877
11127
|
const comboBox = {
|
10878
|
-
[vars$
|
10879
|
-
[vars$
|
10880
|
-
[vars$
|
10881
|
-
[vars$
|
10882
|
-
[vars$
|
10883
|
-
[vars$
|
10884
|
-
[vars$
|
10885
|
-
[vars$
|
10886
|
-
[vars$
|
10887
|
-
[vars$
|
10888
|
-
[vars$
|
10889
|
-
[vars$
|
10890
|
-
[vars$
|
10891
|
-
[vars$
|
10892
|
-
[vars$
|
10893
|
-
[vars$
|
10894
|
-
[vars$
|
10895
|
-
[vars$
|
10896
|
-
[vars$
|
10897
|
-
[vars$
|
10898
|
-
[vars$
|
10899
|
-
[vars$
|
10900
|
-
[vars$
|
10901
|
-
[vars$
|
10902
|
-
[vars$
|
10903
|
-
[vars$
|
11128
|
+
[vars$i.hostWidth]: refs.width,
|
11129
|
+
[vars$i.hostDirection]: refs.direction,
|
11130
|
+
[vars$i.fontSize]: refs.fontSize,
|
11131
|
+
[vars$i.fontFamily]: refs.fontFamily,
|
11132
|
+
[vars$i.labelTextColor]: refs.labelTextColor,
|
11133
|
+
[vars$i.errorMessageTextColor]: refs.errorMessageTextColor,
|
11134
|
+
[vars$i.inputBorderColor]: refs.borderColor,
|
11135
|
+
[vars$i.inputBorderWidth]: refs.borderWidth,
|
11136
|
+
[vars$i.inputBorderStyle]: refs.borderStyle,
|
11137
|
+
[vars$i.inputBorderRadius]: refs.borderRadius,
|
11138
|
+
[vars$i.inputOutlineColor]: refs.outlineColor,
|
11139
|
+
[vars$i.inputOutlineOffset]: refs.outlineOffset,
|
11140
|
+
[vars$i.inputOutlineWidth]: refs.outlineWidth,
|
11141
|
+
[vars$i.inputOutlineStyle]: refs.outlineStyle,
|
11142
|
+
[vars$i.labelRequiredIndicator]: refs.requiredIndicator,
|
11143
|
+
[vars$i.inputValueTextColor]: refs.valueTextColor,
|
11144
|
+
[vars$i.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
11145
|
+
[vars$i.inputBackgroundColor]: refs.backgroundColor,
|
11146
|
+
[vars$i.inputHorizontalPadding]: refs.horizontalPadding,
|
11147
|
+
[vars$i.inputHeight]: refs.inputHeight,
|
11148
|
+
[vars$i.inputDropdownButtonColor]: globalRefs$a.colors.surface.dark,
|
11149
|
+
[vars$i.inputDropdownButtonCursor]: 'pointer',
|
11150
|
+
[vars$i.inputDropdownButtonSize]: refs.toggleButtonSize,
|
11151
|
+
[vars$i.inputDropdownButtonOffset]: globalRefs$a.spacing.xs,
|
11152
|
+
[vars$i.overlayItemPaddingInlineStart]: globalRefs$a.spacing.xs,
|
11153
|
+
[vars$i.overlayItemPaddingInlineEnd]: globalRefs$a.spacing.lg,
|
10904
11154
|
|
10905
11155
|
_readonly: {
|
10906
|
-
[vars$
|
11156
|
+
[vars$i.inputDropdownButtonCursor]: 'default',
|
10907
11157
|
},
|
10908
11158
|
|
10909
11159
|
// Overlay theme exposed via the component:
|
10910
|
-
[vars$
|
10911
|
-
[vars$
|
10912
|
-
[vars$
|
10913
|
-
[vars$
|
10914
|
-
[vars$
|
10915
|
-
[vars$
|
11160
|
+
[vars$i.overlayFontSize]: refs.fontSize,
|
11161
|
+
[vars$i.overlayFontFamily]: refs.fontFamily,
|
11162
|
+
[vars$i.overlayCursor]: 'pointer',
|
11163
|
+
[vars$i.overlayItemBoxShadow]: 'none',
|
11164
|
+
[vars$i.overlayBackground]: refs.backgroundColor,
|
11165
|
+
[vars$i.overlayTextColor]: refs.valueTextColor,
|
10916
11166
|
|
10917
11167
|
// Overlay direct theme:
|
10918
|
-
[vars$
|
10919
|
-
[vars$
|
11168
|
+
[vars$i.overlay.minHeight]: '400px',
|
11169
|
+
[vars$i.overlay.margin]: '0',
|
10920
11170
|
};
|
10921
11171
|
|
10922
11172
|
var comboBox$1 = /*#__PURE__*/Object.freeze({
|
10923
11173
|
__proto__: null,
|
10924
11174
|
comboBox: comboBox,
|
10925
11175
|
default: comboBox,
|
10926
|
-
vars: vars$
|
11176
|
+
vars: vars$i
|
10927
11177
|
});
|
10928
11178
|
|
10929
|
-
const vars$
|
11179
|
+
const vars$h = ImageClass.cssVarList;
|
10930
11180
|
|
10931
11181
|
const image = {};
|
10932
11182
|
|
10933
11183
|
var image$1 = /*#__PURE__*/Object.freeze({
|
10934
11184
|
__proto__: null,
|
10935
11185
|
default: image,
|
10936
|
-
vars: vars$
|
11186
|
+
vars: vars$h
|
10937
11187
|
});
|
10938
11188
|
|
10939
|
-
const vars$
|
11189
|
+
const vars$g = PhoneFieldClass.cssVarList;
|
10940
11190
|
|
10941
11191
|
const phoneField = {
|
10942
|
-
[vars$
|
11192
|
+
[vars$g.hostWidth]: refs.width,
|
11193
|
+
[vars$g.hostDirection]: refs.direction,
|
11194
|
+
[vars$g.fontSize]: refs.fontSize,
|
11195
|
+
[vars$g.fontFamily]: refs.fontFamily,
|
11196
|
+
[vars$g.labelTextColor]: refs.labelTextColor,
|
11197
|
+
[vars$g.labelRequiredIndicator]: refs.requiredIndicator,
|
11198
|
+
[vars$g.errorMessageTextColor]: refs.errorMessageTextColor,
|
11199
|
+
[vars$g.inputValueTextColor]: refs.valueTextColor,
|
11200
|
+
[vars$g.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
11201
|
+
[vars$g.inputBorderStyle]: refs.borderStyle,
|
11202
|
+
[vars$g.inputBorderWidth]: refs.borderWidth,
|
11203
|
+
[vars$g.inputBorderColor]: refs.borderColor,
|
11204
|
+
[vars$g.inputBorderRadius]: refs.borderRadius,
|
11205
|
+
[vars$g.inputOutlineStyle]: refs.outlineStyle,
|
11206
|
+
[vars$g.inputOutlineWidth]: refs.outlineWidth,
|
11207
|
+
[vars$g.inputOutlineColor]: refs.outlineColor,
|
11208
|
+
[vars$g.inputOutlineOffset]: refs.outlineOffset,
|
11209
|
+
[vars$g.phoneInputWidth]: refs.minWidth,
|
11210
|
+
[vars$g.countryCodeInputWidth]: '5em',
|
11211
|
+
[vars$g.countryCodeDropdownWidth]: '20em',
|
11212
|
+
|
11213
|
+
// '@overlay': {
|
11214
|
+
// overlayItemBackgroundColor: 'red'
|
11215
|
+
// }
|
11216
|
+
};
|
11217
|
+
|
11218
|
+
var phoneField$1 = /*#__PURE__*/Object.freeze({
|
11219
|
+
__proto__: null,
|
11220
|
+
default: phoneField,
|
11221
|
+
vars: vars$g
|
11222
|
+
});
|
11223
|
+
|
11224
|
+
const vars$f = PhoneFieldInputBoxClass.cssVarList;
|
11225
|
+
|
11226
|
+
const phoneInputBoxField = {
|
11227
|
+
[vars$f.hostWidth]: '16em',
|
11228
|
+
[vars$f.hostMinWidth]: refs.minWidth,
|
10943
11229
|
[vars$f.hostDirection]: refs.direction,
|
10944
11230
|
[vars$f.fontSize]: refs.fontSize,
|
10945
11231
|
[vars$f.fontFamily]: refs.fontFamily,
|
@@ -10956,178 +11242,142 @@ const phoneField = {
|
|
10956
11242
|
[vars$f.inputOutlineWidth]: refs.outlineWidth,
|
10957
11243
|
[vars$f.inputOutlineColor]: refs.outlineColor,
|
10958
11244
|
[vars$f.inputOutlineOffset]: refs.outlineOffset,
|
10959
|
-
|
10960
|
-
|
10961
|
-
|
10962
|
-
|
10963
|
-
// '@overlay': {
|
10964
|
-
// overlayItemBackgroundColor: 'red'
|
10965
|
-
// }
|
11245
|
+
_fullWidth: {
|
11246
|
+
[vars$f.hostWidth]: refs.width,
|
11247
|
+
},
|
10966
11248
|
};
|
10967
11249
|
|
10968
|
-
var
|
11250
|
+
var phoneInputBoxField$1 = /*#__PURE__*/Object.freeze({
|
10969
11251
|
__proto__: null,
|
10970
|
-
default:
|
11252
|
+
default: phoneInputBoxField,
|
10971
11253
|
vars: vars$f
|
10972
11254
|
});
|
10973
11255
|
|
10974
|
-
const vars$e =
|
11256
|
+
const vars$e = NewPasswordClass.cssVarList;
|
10975
11257
|
|
10976
|
-
const
|
10977
|
-
[vars$e.hostWidth]:
|
11258
|
+
const newPassword = {
|
11259
|
+
[vars$e.hostWidth]: refs.width,
|
10978
11260
|
[vars$e.hostMinWidth]: refs.minWidth,
|
10979
11261
|
[vars$e.hostDirection]: refs.direction,
|
10980
11262
|
[vars$e.fontSize]: refs.fontSize,
|
10981
11263
|
[vars$e.fontFamily]: refs.fontFamily,
|
10982
|
-
[vars$e.
|
10983
|
-
[vars$e.labelRequiredIndicator]: refs.requiredIndicator,
|
11264
|
+
[vars$e.spaceBetweenInputs]: '1em',
|
10984
11265
|
[vars$e.errorMessageTextColor]: refs.errorMessageTextColor,
|
10985
|
-
[vars$e.inputValueTextColor]: refs.valueTextColor,
|
10986
|
-
[vars$e.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
10987
|
-
[vars$e.inputBorderStyle]: refs.borderStyle,
|
10988
|
-
[vars$e.inputBorderWidth]: refs.borderWidth,
|
10989
|
-
[vars$e.inputBorderColor]: refs.borderColor,
|
10990
|
-
[vars$e.inputBorderRadius]: refs.borderRadius,
|
10991
|
-
[vars$e.inputOutlineStyle]: refs.outlineStyle,
|
10992
|
-
[vars$e.inputOutlineWidth]: refs.outlineWidth,
|
10993
|
-
[vars$e.inputOutlineColor]: refs.outlineColor,
|
10994
|
-
[vars$e.inputOutlineOffset]: refs.outlineOffset,
|
10995
|
-
_fullWidth: {
|
10996
|
-
[vars$e.hostWidth]: refs.width,
|
10997
|
-
},
|
10998
|
-
};
|
10999
|
-
|
11000
|
-
var phoneInputBoxField$1 = /*#__PURE__*/Object.freeze({
|
11001
|
-
__proto__: null,
|
11002
|
-
default: phoneInputBoxField,
|
11003
|
-
vars: vars$e
|
11004
|
-
});
|
11005
|
-
|
11006
|
-
const vars$d = NewPasswordClass.cssVarList;
|
11007
|
-
|
11008
|
-
const newPassword = {
|
11009
|
-
[vars$d.hostWidth]: refs.width,
|
11010
|
-
[vars$d.hostMinWidth]: refs.minWidth,
|
11011
|
-
[vars$d.hostDirection]: refs.direction,
|
11012
|
-
[vars$d.fontSize]: refs.fontSize,
|
11013
|
-
[vars$d.fontFamily]: refs.fontFamily,
|
11014
|
-
[vars$d.spaceBetweenInputs]: '1em',
|
11015
|
-
[vars$d.errorMessageTextColor]: refs.errorMessageTextColor,
|
11016
11266
|
|
11017
11267
|
_required: {
|
11018
11268
|
// NewPassword doesn't pass `required` attribute to its Password components.
|
11019
11269
|
// That's why we fake the required indicator on each input.
|
11020
11270
|
// We do that by injecting `::after` element, and populating it with requiredIndicator content.
|
11021
|
-
[vars$
|
11271
|
+
[vars$e.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
|
11022
11272
|
},
|
11023
11273
|
};
|
11024
11274
|
|
11025
11275
|
var newPassword$1 = /*#__PURE__*/Object.freeze({
|
11026
11276
|
__proto__: null,
|
11027
11277
|
default: newPassword,
|
11028
|
-
vars: vars$
|
11278
|
+
vars: vars$e
|
11029
11279
|
});
|
11030
11280
|
|
11031
|
-
const vars$
|
11281
|
+
const vars$d = UploadFileClass.cssVarList;
|
11032
11282
|
|
11033
11283
|
const uploadFile = {
|
11034
|
-
[vars$
|
11035
|
-
[vars$
|
11036
|
-
[vars$
|
11284
|
+
[vars$d.hostDirection]: refs.direction,
|
11285
|
+
[vars$d.labelTextColor]: refs.labelTextColor,
|
11286
|
+
[vars$d.fontFamily]: refs.fontFamily,
|
11037
11287
|
|
11038
|
-
[vars$
|
11288
|
+
[vars$d.iconSize]: '2em',
|
11039
11289
|
|
11040
|
-
[vars$
|
11041
|
-
[vars$
|
11290
|
+
[vars$d.hostPadding]: '0.75em',
|
11291
|
+
[vars$d.gap]: '0.5em',
|
11042
11292
|
|
11043
|
-
[vars$
|
11044
|
-
[vars$
|
11045
|
-
[vars$
|
11293
|
+
[vars$d.fontSize]: '16px',
|
11294
|
+
[vars$d.titleFontWeight]: '500',
|
11295
|
+
[vars$d.lineHeight]: '1em',
|
11046
11296
|
|
11047
|
-
[vars$
|
11048
|
-
[vars$
|
11049
|
-
[vars$
|
11050
|
-
[vars$
|
11297
|
+
[vars$d.borderWidth]: refs.borderWidth,
|
11298
|
+
[vars$d.borderColor]: refs.borderColor,
|
11299
|
+
[vars$d.borderRadius]: refs.borderRadius,
|
11300
|
+
[vars$d.borderStyle]: 'dashed',
|
11051
11301
|
|
11052
11302
|
_required: {
|
11053
|
-
[vars$
|
11303
|
+
[vars$d.requiredIndicator]: refs.requiredIndicator,
|
11054
11304
|
},
|
11055
11305
|
|
11056
11306
|
size: {
|
11057
11307
|
xs: {
|
11058
|
-
[vars$
|
11059
|
-
[vars$
|
11060
|
-
[vars$
|
11061
|
-
[vars$
|
11062
|
-
[vars$
|
11308
|
+
[vars$d.hostHeight]: '196px',
|
11309
|
+
[vars$d.hostWidth]: '200px',
|
11310
|
+
[vars$d.titleFontSize]: '0.875em',
|
11311
|
+
[vars$d.descriptionFontSize]: '0.875em',
|
11312
|
+
[vars$d.lineHeight]: '1.25em',
|
11063
11313
|
},
|
11064
11314
|
sm: {
|
11065
|
-
[vars$
|
11066
|
-
[vars$
|
11067
|
-
[vars$
|
11068
|
-
[vars$
|
11069
|
-
[vars$
|
11315
|
+
[vars$d.hostHeight]: '216px',
|
11316
|
+
[vars$d.hostWidth]: '230px',
|
11317
|
+
[vars$d.titleFontSize]: '1em',
|
11318
|
+
[vars$d.descriptionFontSize]: '0.875em',
|
11319
|
+
[vars$d.lineHeight]: '1.25em',
|
11070
11320
|
},
|
11071
11321
|
md: {
|
11072
|
-
[vars$
|
11073
|
-
[vars$
|
11074
|
-
[vars$
|
11075
|
-
[vars$
|
11076
|
-
[vars$
|
11322
|
+
[vars$d.hostHeight]: '256px',
|
11323
|
+
[vars$d.hostWidth]: '312px',
|
11324
|
+
[vars$d.titleFontSize]: '1.125em',
|
11325
|
+
[vars$d.descriptionFontSize]: '1em',
|
11326
|
+
[vars$d.lineHeight]: '1.5em',
|
11077
11327
|
},
|
11078
11328
|
lg: {
|
11079
|
-
[vars$
|
11080
|
-
[vars$
|
11081
|
-
[vars$
|
11082
|
-
[vars$
|
11083
|
-
[vars$
|
11329
|
+
[vars$d.hostHeight]: '280px',
|
11330
|
+
[vars$d.hostWidth]: '336px',
|
11331
|
+
[vars$d.titleFontSize]: '1.125em',
|
11332
|
+
[vars$d.descriptionFontSize]: '1.125em',
|
11333
|
+
[vars$d.lineHeight]: '1.75em',
|
11084
11334
|
},
|
11085
11335
|
},
|
11086
11336
|
|
11087
11337
|
_fullWidth: {
|
11088
|
-
[vars$
|
11338
|
+
[vars$d.hostWidth]: refs.width,
|
11089
11339
|
},
|
11090
11340
|
};
|
11091
11341
|
|
11092
11342
|
var uploadFile$1 = /*#__PURE__*/Object.freeze({
|
11093
11343
|
__proto__: null,
|
11094
11344
|
default: uploadFile,
|
11095
|
-
vars: vars$
|
11345
|
+
vars: vars$d
|
11096
11346
|
});
|
11097
11347
|
|
11098
11348
|
const globalRefs$9 = getThemeRefs(globals);
|
11099
11349
|
|
11100
|
-
const vars$
|
11350
|
+
const vars$c = ButtonSelectionGroupItemClass.cssVarList;
|
11101
11351
|
|
11102
11352
|
const buttonSelectionGroupItem = {
|
11103
|
-
[vars$
|
11104
|
-
[vars$
|
11105
|
-
[vars$
|
11106
|
-
[vars$
|
11107
|
-
[vars$
|
11108
|
-
[vars$
|
11109
|
-
[vars$
|
11110
|
-
[vars$
|
11353
|
+
[vars$c.hostDirection]: 'inherit',
|
11354
|
+
[vars$c.backgroundColor]: globalRefs$9.colors.surface.main,
|
11355
|
+
[vars$c.labelTextColor]: globalRefs$9.colors.surface.contrast,
|
11356
|
+
[vars$c.borderColor]: globalRefs$9.colors.surface.light,
|
11357
|
+
[vars$c.borderStyle]: 'solid',
|
11358
|
+
[vars$c.borderRadius]: globalRefs$9.radius.sm,
|
11359
|
+
[vars$c.outlineColor]: 'transparent',
|
11360
|
+
[vars$c.borderWidth]: globalRefs$9.border.xs,
|
11111
11361
|
|
11112
11362
|
_hover: {
|
11113
|
-
[vars$
|
11363
|
+
[vars$c.backgroundColor]: globalRefs$9.colors.surface.highlight,
|
11114
11364
|
},
|
11115
11365
|
|
11116
11366
|
_focused: {
|
11117
|
-
[vars$
|
11367
|
+
[vars$c.outlineColor]: globalRefs$9.colors.surface.light,
|
11118
11368
|
},
|
11119
11369
|
|
11120
11370
|
_selected: {
|
11121
|
-
[vars$
|
11122
|
-
[vars$
|
11123
|
-
[vars$
|
11371
|
+
[vars$c.borderColor]: globalRefs$9.colors.surface.contrast,
|
11372
|
+
[vars$c.backgroundColor]: globalRefs$9.colors.surface.contrast,
|
11373
|
+
[vars$c.labelTextColor]: globalRefs$9.colors.surface.main,
|
11124
11374
|
},
|
11125
11375
|
};
|
11126
11376
|
|
11127
11377
|
var buttonSelectionGroupItem$1 = /*#__PURE__*/Object.freeze({
|
11128
11378
|
__proto__: null,
|
11129
11379
|
default: buttonSelectionGroupItem,
|
11130
|
-
vars: vars$
|
11380
|
+
vars: vars$c
|
11131
11381
|
});
|
11132
11382
|
|
11133
11383
|
const globalRefs$8 = getThemeRefs(globals);
|
@@ -11142,28 +11392,28 @@ const createBaseButtonSelectionGroupMappings = (vars) => ({
|
|
11142
11392
|
[vars.hostWidth]: refs.width,
|
11143
11393
|
});
|
11144
11394
|
|
11145
|
-
const vars$
|
11395
|
+
const vars$b = ButtonSelectionGroupClass.cssVarList;
|
11146
11396
|
|
11147
11397
|
const buttonSelectionGroup = {
|
11148
|
-
...createBaseButtonSelectionGroupMappings(vars$
|
11398
|
+
...createBaseButtonSelectionGroupMappings(vars$b),
|
11149
11399
|
};
|
11150
11400
|
|
11151
11401
|
var buttonSelectionGroup$1 = /*#__PURE__*/Object.freeze({
|
11152
11402
|
__proto__: null,
|
11153
11403
|
default: buttonSelectionGroup,
|
11154
|
-
vars: vars$
|
11404
|
+
vars: vars$b
|
11155
11405
|
});
|
11156
11406
|
|
11157
|
-
const vars$
|
11407
|
+
const vars$a = ButtonMultiSelectionGroupClass.cssVarList;
|
11158
11408
|
|
11159
11409
|
const buttonMultiSelectionGroup = {
|
11160
|
-
...createBaseButtonSelectionGroupMappings(vars$
|
11410
|
+
...createBaseButtonSelectionGroupMappings(vars$a),
|
11161
11411
|
};
|
11162
11412
|
|
11163
11413
|
var buttonMultiSelectionGroup$1 = /*#__PURE__*/Object.freeze({
|
11164
11414
|
__proto__: null,
|
11165
11415
|
default: buttonMultiSelectionGroup,
|
11166
|
-
vars: vars$
|
11416
|
+
vars: vars$a
|
11167
11417
|
});
|
11168
11418
|
|
11169
11419
|
const globalRefs$7 = getThemeRefs(globals);
|
@@ -11176,46 +11426,46 @@ const modal = {
|
|
11176
11426
|
[compVars$1.overlayWidth]: '540px',
|
11177
11427
|
};
|
11178
11428
|
|
11179
|
-
const vars$
|
11429
|
+
const vars$9 = {
|
11180
11430
|
...compVars$1,
|
11181
11431
|
};
|
11182
11432
|
|
11183
11433
|
var modal$1 = /*#__PURE__*/Object.freeze({
|
11184
11434
|
__proto__: null,
|
11185
11435
|
default: modal,
|
11186
|
-
vars: vars$
|
11436
|
+
vars: vars$9
|
11187
11437
|
});
|
11188
11438
|
|
11189
11439
|
const globalRefs$6 = getThemeRefs(globals);
|
11190
|
-
const vars$
|
11440
|
+
const vars$8 = GridClass.cssVarList;
|
11191
11441
|
|
11192
11442
|
const grid = {
|
11193
|
-
[vars$
|
11194
|
-
[vars$
|
11195
|
-
[vars$
|
11196
|
-
[vars$
|
11197
|
-
[vars$
|
11443
|
+
[vars$8.hostWidth]: '100%',
|
11444
|
+
[vars$8.hostHeight]: '100%',
|
11445
|
+
[vars$8.hostMinHeight]: '400px',
|
11446
|
+
[vars$8.fontWeight]: '400',
|
11447
|
+
[vars$8.backgroundColor]: globalRefs$6.colors.surface.main,
|
11198
11448
|
|
11199
|
-
[vars$
|
11200
|
-
[vars$
|
11449
|
+
[vars$8.fontSize]: refs.fontSize,
|
11450
|
+
[vars$8.fontFamily]: refs.fontFamily,
|
11201
11451
|
|
11202
|
-
[vars$
|
11203
|
-
[vars$
|
11204
|
-
[vars$
|
11452
|
+
[vars$8.sortIndicatorsColor]: globalRefs$6.colors.surface.light,
|
11453
|
+
[vars$8.activeSortIndicator]: globalRefs$6.colors.surface.dark,
|
11454
|
+
[vars$8.resizeHandleColor]: globalRefs$6.colors.surface.light,
|
11205
11455
|
|
11206
|
-
[vars$
|
11207
|
-
[vars$
|
11208
|
-
[vars$
|
11209
|
-
[vars$
|
11456
|
+
[vars$8.borderWidth]: refs.borderWidth,
|
11457
|
+
[vars$8.borderStyle]: refs.borderStyle,
|
11458
|
+
[vars$8.borderRadius]: refs.borderRadius,
|
11459
|
+
[vars$8.borderColor]: 'transparent',
|
11210
11460
|
|
11211
|
-
[vars$
|
11212
|
-
[vars$
|
11461
|
+
[vars$8.headerRowTextColor]: globalRefs$6.colors.surface.dark,
|
11462
|
+
[vars$8.separatorColor]: globalRefs$6.colors.surface.light,
|
11213
11463
|
|
11214
|
-
[vars$
|
11215
|
-
[vars$
|
11464
|
+
[vars$8.valueTextColor]: globalRefs$6.colors.surface.contrast,
|
11465
|
+
[vars$8.selectedBackgroundColor]: globalRefs$6.colors.surface.highlight,
|
11216
11466
|
|
11217
11467
|
_bordered: {
|
11218
|
-
[vars$
|
11468
|
+
[vars$8.borderColor]: refs.borderColor,
|
11219
11469
|
},
|
11220
11470
|
};
|
11221
11471
|
|
@@ -11223,53 +11473,53 @@ var grid$1 = /*#__PURE__*/Object.freeze({
|
|
11223
11473
|
__proto__: null,
|
11224
11474
|
default: grid,
|
11225
11475
|
grid: grid,
|
11226
|
-
vars: vars$
|
11476
|
+
vars: vars$8
|
11227
11477
|
});
|
11228
11478
|
|
11229
11479
|
const globalRefs$5 = getThemeRefs(globals);
|
11230
|
-
const vars$
|
11480
|
+
const vars$7 = NotificationCardClass.cssVarList;
|
11231
11481
|
|
11232
11482
|
const shadowColor = '#00000020';
|
11233
11483
|
|
11234
11484
|
const notification = {
|
11235
|
-
[vars$
|
11236
|
-
[vars$
|
11237
|
-
[vars$
|
11238
|
-
[vars$
|
11239
|
-
[vars$
|
11240
|
-
[vars$
|
11241
|
-
[vars$
|
11242
|
-
[vars$
|
11243
|
-
[vars$
|
11485
|
+
[vars$7.hostMinWidth]: '415px',
|
11486
|
+
[vars$7.fontFamily]: globalRefs$5.fonts.font1.family,
|
11487
|
+
[vars$7.fontSize]: globalRefs$5.typography.body1.size,
|
11488
|
+
[vars$7.backgroundColor]: globalRefs$5.colors.surface.main,
|
11489
|
+
[vars$7.textColor]: globalRefs$5.colors.surface.contrast,
|
11490
|
+
[vars$7.boxShadow]: `${globalRefs$5.shadow.wide.xl} ${shadowColor}, ${globalRefs$5.shadow.narrow.xl} ${shadowColor}`,
|
11491
|
+
[vars$7.verticalPadding]: '0.625em',
|
11492
|
+
[vars$7.horizontalPadding]: '1.5em',
|
11493
|
+
[vars$7.borderRadius]: globalRefs$5.radius.xs,
|
11244
11494
|
|
11245
11495
|
_bordered: {
|
11246
|
-
[vars$
|
11247
|
-
[vars$
|
11248
|
-
[vars$
|
11496
|
+
[vars$7.borderWidth]: globalRefs$5.border.sm,
|
11497
|
+
[vars$7.borderStyle]: 'solid',
|
11498
|
+
[vars$7.borderColor]: 'transparent',
|
11249
11499
|
},
|
11250
11500
|
|
11251
11501
|
size: {
|
11252
|
-
xs: { [vars$
|
11253
|
-
sm: { [vars$
|
11254
|
-
md: { [vars$
|
11255
|
-
lg: { [vars$
|
11502
|
+
xs: { [vars$7.fontSize]: '12px' },
|
11503
|
+
sm: { [vars$7.fontSize]: '14px' },
|
11504
|
+
md: { [vars$7.fontSize]: '16px' },
|
11505
|
+
lg: { [vars$7.fontSize]: '18px' },
|
11256
11506
|
},
|
11257
11507
|
|
11258
11508
|
mode: {
|
11259
11509
|
primary: {
|
11260
|
-
[vars$
|
11261
|
-
[vars$
|
11262
|
-
[vars$
|
11510
|
+
[vars$7.backgroundColor]: globalRefs$5.colors.primary.main,
|
11511
|
+
[vars$7.textColor]: globalRefs$5.colors.primary.contrast,
|
11512
|
+
[vars$7.borderColor]: globalRefs$5.colors.primary.light,
|
11263
11513
|
},
|
11264
11514
|
success: {
|
11265
|
-
[vars$
|
11266
|
-
[vars$
|
11267
|
-
[vars$
|
11515
|
+
[vars$7.backgroundColor]: globalRefs$5.colors.success.main,
|
11516
|
+
[vars$7.textColor]: globalRefs$5.colors.success.contrast,
|
11517
|
+
[vars$7.borderColor]: globalRefs$5.colors.success.light,
|
11268
11518
|
},
|
11269
11519
|
error: {
|
11270
|
-
[vars$
|
11271
|
-
[vars$
|
11272
|
-
[vars$
|
11520
|
+
[vars$7.backgroundColor]: globalRefs$5.colors.error.main,
|
11521
|
+
[vars$7.textColor]: globalRefs$5.colors.error.contrast,
|
11522
|
+
[vars$7.borderColor]: globalRefs$5.colors.error.light,
|
11273
11523
|
},
|
11274
11524
|
},
|
11275
11525
|
};
|
@@ -11277,128 +11527,128 @@ const notification = {
|
|
11277
11527
|
var notificationCard = /*#__PURE__*/Object.freeze({
|
11278
11528
|
__proto__: null,
|
11279
11529
|
default: notification,
|
11280
|
-
vars: vars$
|
11530
|
+
vars: vars$7
|
11281
11531
|
});
|
11282
11532
|
|
11283
11533
|
const globalRefs$4 = getThemeRefs(globals);
|
11284
|
-
const vars$
|
11534
|
+
const vars$6 = MultiSelectComboBoxClass.cssVarList;
|
11285
11535
|
|
11286
11536
|
const multiSelectComboBox = {
|
11287
|
-
[vars$
|
11288
|
-
[vars$
|
11289
|
-
[vars$
|
11290
|
-
[vars$
|
11291
|
-
[vars$
|
11292
|
-
[vars$
|
11293
|
-
[vars$
|
11294
|
-
[vars$
|
11295
|
-
[vars$
|
11296
|
-
[vars$
|
11297
|
-
[vars$
|
11298
|
-
[vars$
|
11299
|
-
[vars$
|
11300
|
-
[vars$
|
11301
|
-
[vars$
|
11302
|
-
[vars$
|
11303
|
-
[vars$
|
11304
|
-
[vars$
|
11305
|
-
[vars$
|
11306
|
-
[vars$
|
11307
|
-
[vars$
|
11308
|
-
[vars$
|
11309
|
-
[vars$
|
11310
|
-
[vars$
|
11311
|
-
[vars$
|
11312
|
-
[vars$
|
11313
|
-
[vars$
|
11314
|
-
[vars$
|
11315
|
-
[vars$
|
11316
|
-
[vars$
|
11537
|
+
[vars$6.hostWidth]: refs.width,
|
11538
|
+
[vars$6.hostDirection]: refs.direction,
|
11539
|
+
[vars$6.fontSize]: refs.fontSize,
|
11540
|
+
[vars$6.fontFamily]: refs.fontFamily,
|
11541
|
+
[vars$6.labelTextColor]: refs.labelTextColor,
|
11542
|
+
[vars$6.errorMessageTextColor]: refs.errorMessageTextColor,
|
11543
|
+
[vars$6.inputBorderColor]: refs.borderColor,
|
11544
|
+
[vars$6.inputBorderWidth]: refs.borderWidth,
|
11545
|
+
[vars$6.inputBorderStyle]: refs.borderStyle,
|
11546
|
+
[vars$6.inputBorderRadius]: refs.borderRadius,
|
11547
|
+
[vars$6.inputOutlineColor]: refs.outlineColor,
|
11548
|
+
[vars$6.inputOutlineOffset]: refs.outlineOffset,
|
11549
|
+
[vars$6.inputOutlineWidth]: refs.outlineWidth,
|
11550
|
+
[vars$6.inputOutlineStyle]: refs.outlineStyle,
|
11551
|
+
[vars$6.labelRequiredIndicator]: refs.requiredIndicator,
|
11552
|
+
[vars$6.inputValueTextColor]: refs.valueTextColor,
|
11553
|
+
[vars$6.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
11554
|
+
[vars$6.inputBackgroundColor]: refs.backgroundColor,
|
11555
|
+
[vars$6.inputHorizontalPadding]: refs.horizontalPadding,
|
11556
|
+
[vars$6.inputVerticalPadding]: refs.verticalPadding,
|
11557
|
+
[vars$6.inputHeight]: refs.inputHeight,
|
11558
|
+
[vars$6.inputDropdownButtonColor]: globalRefs$4.colors.surface.dark,
|
11559
|
+
[vars$6.inputDropdownButtonCursor]: 'pointer',
|
11560
|
+
[vars$6.inputDropdownButtonSize]: refs.toggleButtonSize,
|
11561
|
+
[vars$6.inputDropdownButtonOffset]: globalRefs$4.spacing.xs,
|
11562
|
+
[vars$6.overlayItemPaddingInlineStart]: globalRefs$4.spacing.xs,
|
11563
|
+
[vars$6.overlayItemPaddingInlineEnd]: globalRefs$4.spacing.lg,
|
11564
|
+
[vars$6.chipFontSize]: refs.chipFontSize,
|
11565
|
+
[vars$6.chipTextColor]: globalRefs$4.colors.surface.contrast,
|
11566
|
+
[vars$6.chipBackgroundColor]: globalRefs$4.colors.surface.light,
|
11317
11567
|
|
11318
11568
|
_readonly: {
|
11319
|
-
[vars$
|
11569
|
+
[vars$6.inputDropdownButtonCursor]: 'default',
|
11320
11570
|
},
|
11321
11571
|
|
11322
11572
|
// Overlay theme exposed via the component:
|
11323
|
-
[vars$
|
11324
|
-
[vars$
|
11325
|
-
[vars$
|
11326
|
-
[vars$
|
11327
|
-
[vars$
|
11328
|
-
[vars$
|
11573
|
+
[vars$6.overlayFontSize]: refs.fontSize,
|
11574
|
+
[vars$6.overlayFontFamily]: refs.fontFamily,
|
11575
|
+
[vars$6.overlayCursor]: 'pointer',
|
11576
|
+
[vars$6.overlayItemBoxShadow]: 'none',
|
11577
|
+
[vars$6.overlayBackground]: refs.backgroundColor,
|
11578
|
+
[vars$6.overlayTextColor]: refs.valueTextColor,
|
11329
11579
|
|
11330
11580
|
// Overlay direct theme:
|
11331
|
-
[vars$
|
11332
|
-
[vars$
|
11581
|
+
[vars$6.overlay.minHeight]: '400px',
|
11582
|
+
[vars$6.overlay.margin]: '0',
|
11333
11583
|
};
|
11334
11584
|
|
11335
11585
|
var multiSelectComboBox$1 = /*#__PURE__*/Object.freeze({
|
11336
11586
|
__proto__: null,
|
11337
11587
|
default: multiSelectComboBox,
|
11338
11588
|
multiSelectComboBox: multiSelectComboBox,
|
11339
|
-
vars: vars$
|
11589
|
+
vars: vars$6
|
11340
11590
|
});
|
11341
11591
|
|
11342
11592
|
const globalRefs$3 = getThemeRefs(globals);
|
11343
|
-
const vars$
|
11593
|
+
const vars$5 = BadgeClass.cssVarList;
|
11344
11594
|
|
11345
11595
|
const badge = {
|
11346
|
-
[vars$
|
11347
|
-
[vars$
|
11596
|
+
[vars$5.hostWidth]: 'fit-content',
|
11597
|
+
[vars$5.hostDirection]: globalRefs$3.direction,
|
11348
11598
|
|
11349
|
-
[vars$
|
11599
|
+
[vars$5.textAlign]: 'center',
|
11350
11600
|
|
11351
|
-
[vars$
|
11352
|
-
[vars$
|
11601
|
+
[vars$5.fontFamily]: globalRefs$3.fonts.font1.family,
|
11602
|
+
[vars$5.fontWeight]: '400',
|
11353
11603
|
|
11354
|
-
[vars$
|
11355
|
-
[vars$
|
11604
|
+
[vars$5.verticalPadding]: '0.25em',
|
11605
|
+
[vars$5.horizontalPadding]: '0.5em',
|
11356
11606
|
|
11357
|
-
[vars$
|
11358
|
-
[vars$
|
11359
|
-
[vars$
|
11360
|
-
[vars$
|
11607
|
+
[vars$5.borderWidth]: globalRefs$3.border.xs,
|
11608
|
+
[vars$5.borderRadius]: globalRefs$3.radius.xs,
|
11609
|
+
[vars$5.borderColor]: 'transparent',
|
11610
|
+
[vars$5.borderStyle]: 'solid',
|
11361
11611
|
|
11362
11612
|
_fullWidth: {
|
11363
|
-
[vars$
|
11613
|
+
[vars$5.hostWidth]: '100%',
|
11364
11614
|
},
|
11365
11615
|
|
11366
11616
|
size: {
|
11367
|
-
xs: { [vars$
|
11368
|
-
sm: { [vars$
|
11369
|
-
md: { [vars$
|
11370
|
-
lg: { [vars$
|
11617
|
+
xs: { [vars$5.fontSize]: '12px' },
|
11618
|
+
sm: { [vars$5.fontSize]: '14px' },
|
11619
|
+
md: { [vars$5.fontSize]: '16px' },
|
11620
|
+
lg: { [vars$5.fontSize]: '18px' },
|
11371
11621
|
},
|
11372
11622
|
|
11373
11623
|
mode: {
|
11374
11624
|
default: {
|
11375
|
-
[vars$
|
11625
|
+
[vars$5.textColor]: globalRefs$3.colors.surface.dark,
|
11376
11626
|
_bordered: {
|
11377
|
-
[vars$
|
11627
|
+
[vars$5.borderColor]: globalRefs$3.colors.surface.light,
|
11378
11628
|
},
|
11379
11629
|
},
|
11380
11630
|
primary: {
|
11381
|
-
[vars$
|
11631
|
+
[vars$5.textColor]: globalRefs$3.colors.primary.main,
|
11382
11632
|
_bordered: {
|
11383
|
-
[vars$
|
11633
|
+
[vars$5.borderColor]: globalRefs$3.colors.primary.light,
|
11384
11634
|
},
|
11385
11635
|
},
|
11386
11636
|
secondary: {
|
11387
|
-
[vars$
|
11637
|
+
[vars$5.textColor]: globalRefs$3.colors.secondary.main,
|
11388
11638
|
_bordered: {
|
11389
|
-
[vars$
|
11639
|
+
[vars$5.borderColor]: globalRefs$3.colors.secondary.light,
|
11390
11640
|
},
|
11391
11641
|
},
|
11392
11642
|
error: {
|
11393
|
-
[vars$
|
11643
|
+
[vars$5.textColor]: globalRefs$3.colors.error.main,
|
11394
11644
|
_bordered: {
|
11395
|
-
[vars$
|
11645
|
+
[vars$5.borderColor]: globalRefs$3.colors.error.light,
|
11396
11646
|
},
|
11397
11647
|
},
|
11398
11648
|
success: {
|
11399
|
-
[vars$
|
11649
|
+
[vars$5.textColor]: globalRefs$3.colors.success.main,
|
11400
11650
|
_bordered: {
|
11401
|
-
[vars$
|
11651
|
+
[vars$5.borderColor]: globalRefs$3.colors.success.light,
|
11402
11652
|
},
|
11403
11653
|
},
|
11404
11654
|
},
|
@@ -11407,7 +11657,7 @@ const badge = {
|
|
11407
11657
|
var badge$1 = /*#__PURE__*/Object.freeze({
|
11408
11658
|
__proto__: null,
|
11409
11659
|
default: badge,
|
11410
|
-
vars: vars$
|
11660
|
+
vars: vars$5
|
11411
11661
|
});
|
11412
11662
|
|
11413
11663
|
const globalRefs$2 = getThemeRefs(globals);
|
@@ -11445,62 +11695,79 @@ const avatar = {
|
|
11445
11695
|
},
|
11446
11696
|
};
|
11447
11697
|
|
11448
|
-
const vars$
|
11698
|
+
const vars$4 = {
|
11449
11699
|
...compVars,
|
11450
11700
|
};
|
11451
11701
|
|
11452
11702
|
var avatar$1 = /*#__PURE__*/Object.freeze({
|
11453
11703
|
__proto__: null,
|
11454
11704
|
default: avatar,
|
11455
|
-
vars: vars$
|
11705
|
+
vars: vars$4
|
11456
11706
|
});
|
11457
11707
|
|
11458
11708
|
const globalRefs$1 = getThemeRefs(globals);
|
11459
11709
|
|
11460
|
-
const vars$
|
11710
|
+
const vars$3 = MappingsFieldClass.cssVarList;
|
11461
11711
|
|
11462
11712
|
const mappingsField = {
|
11463
|
-
[vars$
|
11464
|
-
[vars$
|
11465
|
-
[vars$
|
11466
|
-
[vars$
|
11467
|
-
[vars$
|
11468
|
-
[vars$
|
11469
|
-
[vars$
|
11713
|
+
[vars$3.hostWidth]: refs.width,
|
11714
|
+
[vars$3.hostDirection]: refs.direction,
|
11715
|
+
[vars$3.fontSize]: refs.fontSize,
|
11716
|
+
[vars$3.fontFamily]: refs.fontFamily,
|
11717
|
+
[vars$3.separatorFontSize]: '14px',
|
11718
|
+
[vars$3.labelsFontSize]: '14px',
|
11719
|
+
[vars$3.labelsLineHeight]: '1',
|
11720
|
+
[vars$3.labelsMarginBottom]: '6px',
|
11721
|
+
[vars$3.labelTextColor]: refs.labelTextColor,
|
11722
|
+
[vars$3.itemMarginBottom]: '1em',
|
11470
11723
|
// To be positioned correctly, the min width has to match the text field min width
|
11471
|
-
[vars$
|
11724
|
+
[vars$3.valueLabelMinWidth]: refs.minWidth,
|
11472
11725
|
// To be positioned correctly, the min width has to match the combo box field min width
|
11473
|
-
[vars$
|
11474
|
-
[vars$
|
11475
|
-
[vars$
|
11476
|
-
[vars$2.removeButtonWidth]: '60px',
|
11726
|
+
[vars$3.attrLabelMinWidth]: `calc(12em + 2 * ${globalRefs$1.border.xs})`,
|
11727
|
+
[vars$3.separatorWidth]: '70px',
|
11728
|
+
[vars$3.removeButtonWidth]: '60px',
|
11477
11729
|
};
|
11478
11730
|
|
11479
11731
|
var mappingsField$1 = /*#__PURE__*/Object.freeze({
|
11480
11732
|
__proto__: null,
|
11481
11733
|
default: mappingsField,
|
11482
11734
|
mappingsField: mappingsField,
|
11483
|
-
vars: vars$
|
11735
|
+
vars: vars$3
|
11484
11736
|
});
|
11485
11737
|
|
11486
11738
|
const globalRefs = getThemeRefs(globals);
|
11487
|
-
const vars$
|
11739
|
+
const vars$2 = UserAttributeClass.cssVarList;
|
11488
11740
|
|
11489
11741
|
const userAttribute = {
|
11490
|
-
[vars$
|
11491
|
-
[vars$
|
11492
|
-
[vars$
|
11493
|
-
[vars$
|
11494
|
-
[vars$
|
11495
|
-
[vars$
|
11742
|
+
[vars$2.hostDirection]: globalRefs.direction,
|
11743
|
+
[vars$2.labelTextWidth]: '150px',
|
11744
|
+
[vars$2.valueTextWidth]: '200px',
|
11745
|
+
[vars$2.badgeMaxWidth]: '85px',
|
11746
|
+
[vars$2.itemsGap]: '16px',
|
11747
|
+
[vars$2.hostMinWidth]: '530px',
|
11496
11748
|
_fullWidth: {
|
11497
|
-
[vars$
|
11749
|
+
[vars$2.hostWidth]: '100%',
|
11498
11750
|
},
|
11499
11751
|
};
|
11500
11752
|
|
11501
11753
|
var userAttribute$1 = /*#__PURE__*/Object.freeze({
|
11502
11754
|
__proto__: null,
|
11503
11755
|
default: userAttribute,
|
11756
|
+
vars: vars$2
|
11757
|
+
});
|
11758
|
+
|
11759
|
+
const vars$1 = SamlGroupMappingsClass.cssVarList;
|
11760
|
+
|
11761
|
+
const samlGroupMappings = {
|
11762
|
+
[vars$1.hostWidth]: refs.width,
|
11763
|
+
[vars$1.hostDirection]: refs.direction,
|
11764
|
+
[vars$1.groupNameInputMarginBottom]: '1em',
|
11765
|
+
};
|
11766
|
+
|
11767
|
+
var samlGroupMappings$1 = /*#__PURE__*/Object.freeze({
|
11768
|
+
__proto__: null,
|
11769
|
+
default: samlGroupMappings,
|
11770
|
+
samlGroupMappings: samlGroupMappings,
|
11504
11771
|
vars: vars$1
|
11505
11772
|
});
|
11506
11773
|
|
@@ -11541,6 +11808,7 @@ const components = {
|
|
11541
11808
|
avatar: avatar$1,
|
11542
11809
|
mappingsField: mappingsField$1,
|
11543
11810
|
userAttribute: userAttribute$1,
|
11811
|
+
samlGroupMappings: samlGroupMappings$1,
|
11544
11812
|
};
|
11545
11813
|
|
11546
11814
|
const theme = Object.keys(components).reduce(
|
@@ -11553,7 +11821,7 @@ const vars = Object.keys(components).reduce(
|
|
11553
11821
|
);
|
11554
11822
|
|
11555
11823
|
const defaultTheme = { globals, components: theme };
|
11556
|
-
const themeVars = { globals: vars$
|
11824
|
+
const themeVars = { globals: vars$C, components: vars };
|
11557
11825
|
|
11558
11826
|
const colors = {
|
11559
11827
|
surface: {
|
@@ -11599,5 +11867,5 @@ const darkTheme = merge({}, defaultTheme, {
|
|
11599
11867
|
},
|
11600
11868
|
});
|
11601
11869
|
|
11602
|
-
export { AvatarClass, BadgeClass, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CheckboxClass, ComboBoxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, MappingsFieldClass, ModalClass, MultiSelectComboBoxClass, NewPasswordClass, NotificationClass, NotpImageClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, RecaptchaClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, UserAttributeClass, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
|
11870
|
+
export { AvatarClass, BadgeClass, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CheckboxClass, ComboBoxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, MappingsFieldClass, ModalClass, MultiSelectComboBoxClass, NewPasswordClass, NotificationClass, NotpImageClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, RecaptchaClass, SamlGroupMappingsClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, UserAttributeClass, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
|
11603
11871
|
//# sourceMappingURL=index.esm.js.map
|