@descope/web-components-ui 3.1.12 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +789 -505
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1027 -742
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/5414.js +1 -1
- package/dist/umd/5414.js.LICENSE.txt +1 -1
- package/dist/umd/5414.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-attachment.js +2 -0
- package/dist/umd/descope-attachment.js.map +1 -0
- package/dist/umd/descope-badge.js +1 -1
- package/dist/umd/descope-badge.js.map +1 -1
- package/dist/umd/descope-tooltip.js +1 -1
- package/dist/umd/descope-tooltip.js.map +1 -1
- package/dist/umd/descope-trusted-devices.js +1 -1
- package/dist/umd/descope-trusted-devices.js.map +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +4 -4
- package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +3 -3
- package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +32 -31
- package/src/constants.js +0 -1
- package/src/helpers/themeHelpers/index.js +48 -21
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/phoneField.js +0 -4
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -34,7 +34,6 @@ var zxcvbnEnPackage__namespace = /*#__PURE__*/_interopNamespaceDefault(zxcvbnEnP
|
|
|
34
34
|
const DESCOPE_PREFIX$1 = 'descope';
|
|
35
35
|
const CSS_SELECTOR_SPECIFIER_MULTIPLY$1 = 5;
|
|
36
36
|
const BASE_THEME_SECTION$1 = 'host';
|
|
37
|
-
const PORTAL_THEME_PREFIX = '@';
|
|
38
37
|
|
|
39
38
|
const kebabCase$1 = (str) =>
|
|
40
39
|
str
|
|
@@ -953,6 +952,13 @@ function splitAmpersands(str) {
|
|
|
953
952
|
return [match[1] || '', match[2] || ''];
|
|
954
953
|
}
|
|
955
954
|
|
|
955
|
+
const CONTAINER_QUERY_PREFIX = '@container';
|
|
956
|
+
const isContainerQuery = (key) => key.startsWith(CONTAINER_QUERY_PREFIX);
|
|
957
|
+
|
|
958
|
+
const BREAKPOINTS_KEY = '$breakpoints';
|
|
959
|
+
const BREAKPOINTS_REF_PREFIX = '$breakpoints.';
|
|
960
|
+
const isBreakpointRef = (key) => key.startsWith(BREAKPOINTS_REF_PREFIX);
|
|
961
|
+
|
|
956
962
|
// st attributes are also using selector multiplication
|
|
957
963
|
// so we need to limit the multiplication
|
|
958
964
|
const MAX_SELECTOR_MULTIPLY = 3;
|
|
@@ -960,6 +966,10 @@ const MAX_SELECTOR_MULTIPLY = 3;
|
|
|
960
966
|
const componentsThemeToStyleObj = (componentsTheme) =>
|
|
961
967
|
transformTheme(componentsTheme, [], (path, val) => {
|
|
962
968
|
const [component, ...restPath] = path;
|
|
969
|
+
|
|
970
|
+
// skip $breakpoints definitions — they are metadata, not CSS output
|
|
971
|
+
if (restPath[0] === BREAKPOINTS_KEY) return {};
|
|
972
|
+
|
|
963
973
|
const property = restPath.pop();
|
|
964
974
|
const componentName = getComponentName$1(component);
|
|
965
975
|
|
|
@@ -968,15 +978,27 @@ const componentsThemeToStyleObj = (componentsTheme) =>
|
|
|
968
978
|
console.warn(componentName, `theme value: "${val}" is mapped to an invalid property`);
|
|
969
979
|
}
|
|
970
980
|
|
|
971
|
-
|
|
972
|
-
// this allows us to generate those themes under different sections
|
|
973
|
-
// if the theme has root level attribute that starts with #
|
|
974
|
-
// we are generating a new theme
|
|
975
|
-
let themeName = BASE_THEME_SECTION$1;
|
|
981
|
+
const themeName = BASE_THEME_SECTION$1;
|
|
976
982
|
|
|
977
|
-
|
|
978
|
-
|
|
983
|
+
// extract @container queries from restPath at any position,
|
|
984
|
+
// resolving breakpoints.X references via the component's $breakpoints map
|
|
985
|
+
const componentBreakpoints = componentsTheme[component]?.[BREAKPOINTS_KEY] || {};
|
|
986
|
+
const resolveKey = (key) =>
|
|
987
|
+
isBreakpointRef(key)
|
|
988
|
+
? `${CONTAINER_QUERY_PREFIX} ${componentBreakpoints[key.slice(BREAKPOINTS_REF_PREFIX.length)]}`
|
|
989
|
+
: key;
|
|
990
|
+
const breakpointRefs = restPath.filter(isBreakpointRef);
|
|
991
|
+
const missingRef = breakpointRefs.find(
|
|
992
|
+
(key) => !componentBreakpoints[key.slice(BREAKPOINTS_REF_PREFIX.length)]
|
|
993
|
+
);
|
|
994
|
+
if (missingRef) {
|
|
995
|
+
// eslint-disable-next-line no-console
|
|
996
|
+
console.warn(componentName, `theme references undefined breakpoint "${missingRef}"`);
|
|
997
|
+
return {};
|
|
979
998
|
}
|
|
999
|
+
const containerQueries = breakpointRefs.map(resolveKey);
|
|
1000
|
+
// remove breakpoint refs from restPath so the remaining parts are processed as attribute selectors
|
|
1001
|
+
restPath.splice(0, restPath.length, ...restPath.filter((s) => !isBreakpointRef(s)));
|
|
980
1002
|
|
|
981
1003
|
// do not start with underscore -> key:value, must have 2 no underscore attrs in a row
|
|
982
1004
|
// starts with underscore -> attribute selector
|
|
@@ -1015,25 +1037,29 @@ const componentsThemeToStyleObj = (componentsTheme) =>
|
|
|
1015
1037
|
|
|
1016
1038
|
const selector = `:host${attrsSelector ? `(${attrsSelector})` : ''}`;
|
|
1017
1039
|
|
|
1040
|
+
// wrap the selector rule in container queries from innermost to outermost
|
|
1041
|
+
// e.g. ['@container (max-width: 80px)'] + { ':host': { prop: val } }
|
|
1042
|
+
// => { '@container (max-width: 80px)': { ':host': { prop: val } } }
|
|
1043
|
+
const leaf = containerQueries.reduceRight((acc, query) => ({ [query]: acc }), {
|
|
1044
|
+
[selector]: { [property]: getCssVarValue(val) },
|
|
1045
|
+
});
|
|
1046
|
+
|
|
1018
1047
|
return {
|
|
1019
1048
|
[componentName]: {
|
|
1020
|
-
[themeName]:
|
|
1021
|
-
[selector]: {
|
|
1022
|
-
[property]: getCssVarValue(val),
|
|
1023
|
-
},
|
|
1024
|
-
},
|
|
1049
|
+
[themeName]: leaf,
|
|
1025
1050
|
},
|
|
1026
1051
|
};
|
|
1027
1052
|
});
|
|
1028
1053
|
|
|
1029
1054
|
const componentsThemeToStyle = (componentsTheme) =>
|
|
1030
|
-
Object.entries(componentsTheme).reduce(
|
|
1031
|
-
(
|
|
1032
|
-
`${acc}${
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1055
|
+
Object.entries(componentsTheme).reduce((acc, [key, value]) => {
|
|
1056
|
+
if (isContainerQuery(key)) {
|
|
1057
|
+
return `${acc}${key} {\n${componentsThemeToStyle(value)}}\n\n`;
|
|
1058
|
+
}
|
|
1059
|
+
return `${acc}${key} { \n${Object.entries(value)
|
|
1060
|
+
.map(([prop, val]) => `${prop}: ${val}`)
|
|
1061
|
+
.join(';\n')} \n}\n\n`;
|
|
1062
|
+
}, '');
|
|
1037
1063
|
|
|
1038
1064
|
const createComponentsTheme = (componentsTheme) => {
|
|
1039
1065
|
const styleObj = componentsThemeToStyleObj(componentsTheme);
|
|
@@ -1263,7 +1289,7 @@ const globals$1 = {
|
|
|
1263
1289
|
fonts: fonts$1,
|
|
1264
1290
|
direction: direction$1,
|
|
1265
1291
|
};
|
|
1266
|
-
const vars$
|
|
1292
|
+
const vars$16 = getThemeVars(globals$1);
|
|
1267
1293
|
|
|
1268
1294
|
const direction = 'ltr';
|
|
1269
1295
|
|
|
@@ -3059,12 +3085,12 @@ const createImage = async (src, altText) => {
|
|
|
3059
3085
|
|
|
3060
3086
|
/* eslint-disable no-use-before-define */
|
|
3061
3087
|
|
|
3062
|
-
const componentName$
|
|
3088
|
+
const componentName$1k = getComponentName('image');
|
|
3063
3089
|
|
|
3064
3090
|
const srcAttrs = ['src', 'src-dark'];
|
|
3065
3091
|
|
|
3066
3092
|
class RawImage extends createBaseClass$1({
|
|
3067
|
-
componentName: componentName$
|
|
3093
|
+
componentName: componentName$1k,
|
|
3068
3094
|
baseSelector: 'slot',
|
|
3069
3095
|
}) {
|
|
3070
3096
|
static get observedAttributes() {
|
|
@@ -3192,7 +3218,7 @@ const ImageClass = compose(
|
|
|
3192
3218
|
componentNameValidationMixin$1,
|
|
3193
3219
|
)(RawImage);
|
|
3194
3220
|
|
|
3195
|
-
const componentName$
|
|
3221
|
+
const componentName$1j = getComponentName('icon');
|
|
3196
3222
|
|
|
3197
3223
|
const IconClass = compose(
|
|
3198
3224
|
createStyleMixin$1({
|
|
@@ -3213,7 +3239,7 @@ const IconClass = compose(
|
|
|
3213
3239
|
}
|
|
3214
3240
|
`,
|
|
3215
3241
|
excludeAttrsSync: ['tabindex', 'class', 'style'],
|
|
3216
|
-
componentName: componentName$
|
|
3242
|
+
componentName: componentName$1j,
|
|
3217
3243
|
}),
|
|
3218
3244
|
);
|
|
3219
3245
|
|
|
@@ -3228,7 +3254,7 @@ const clickableMixin = (superclass) =>
|
|
|
3228
3254
|
}
|
|
3229
3255
|
};
|
|
3230
3256
|
|
|
3231
|
-
const componentName$
|
|
3257
|
+
const componentName$1i = getComponentName('button');
|
|
3232
3258
|
|
|
3233
3259
|
const resetStyles = `
|
|
3234
3260
|
:host {
|
|
@@ -3344,7 +3370,7 @@ const ButtonClass = compose(
|
|
|
3344
3370
|
}
|
|
3345
3371
|
`,
|
|
3346
3372
|
excludeAttrsSync: ['tabindex', 'class', 'style'],
|
|
3347
|
-
componentName: componentName$
|
|
3373
|
+
componentName: componentName$1i,
|
|
3348
3374
|
})
|
|
3349
3375
|
);
|
|
3350
3376
|
|
|
@@ -3392,10 +3418,10 @@ const mode = {
|
|
|
3392
3418
|
surface: globalRefs$H.colors.surface,
|
|
3393
3419
|
};
|
|
3394
3420
|
|
|
3395
|
-
const [helperTheme$
|
|
3421
|
+
const [helperTheme$7, helperRefs$7, helperVars$6] = createHelperVars$1({ mode }, componentName$1i);
|
|
3396
3422
|
|
|
3397
3423
|
const button = {
|
|
3398
|
-
...helperTheme$
|
|
3424
|
+
...helperTheme$7,
|
|
3399
3425
|
|
|
3400
3426
|
[compVars$9.fontFamily]: globalRefs$H.fonts.font1.family,
|
|
3401
3427
|
|
|
@@ -3447,7 +3473,7 @@ const button = {
|
|
|
3447
3473
|
|
|
3448
3474
|
_loading: {
|
|
3449
3475
|
[compVars$9.cursor]: 'wait',
|
|
3450
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
3476
|
+
[compVars$9.labelTextColor]: helperRefs$7.main,
|
|
3451
3477
|
},
|
|
3452
3478
|
|
|
3453
3479
|
_disabled: {
|
|
@@ -3460,51 +3486,51 @@ const button = {
|
|
|
3460
3486
|
|
|
3461
3487
|
variant: {
|
|
3462
3488
|
contained: {
|
|
3463
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
3464
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
3489
|
+
[compVars$9.labelTextColor]: helperRefs$7.contrast,
|
|
3490
|
+
[compVars$9.backgroundColor]: helperRefs$7.main,
|
|
3465
3491
|
_hover: {
|
|
3466
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
3492
|
+
[compVars$9.backgroundColor]: helperRefs$7.dark,
|
|
3467
3493
|
_loading: {
|
|
3468
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
3494
|
+
[compVars$9.backgroundColor]: helperRefs$7.main,
|
|
3469
3495
|
},
|
|
3470
3496
|
},
|
|
3471
3497
|
_active: {
|
|
3472
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
3498
|
+
[compVars$9.backgroundColor]: helperRefs$7.main,
|
|
3473
3499
|
},
|
|
3474
3500
|
},
|
|
3475
3501
|
|
|
3476
3502
|
outline: {
|
|
3477
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
3478
|
-
[compVars$9.borderColor]: helperRefs$
|
|
3503
|
+
[compVars$9.labelTextColor]: helperRefs$7.main,
|
|
3504
|
+
[compVars$9.borderColor]: helperRefs$7.main,
|
|
3479
3505
|
_hover: {
|
|
3480
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
3481
|
-
[compVars$9.borderColor]: helperRefs$
|
|
3506
|
+
[compVars$9.labelTextColor]: helperRefs$7.dark,
|
|
3507
|
+
[compVars$9.borderColor]: helperRefs$7.dark,
|
|
3482
3508
|
},
|
|
3483
3509
|
_active: {
|
|
3484
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
3485
|
-
[compVars$9.borderColor]: helperRefs$
|
|
3510
|
+
[compVars$9.labelTextColor]: helperRefs$7.main,
|
|
3511
|
+
[compVars$9.borderColor]: helperRefs$7.main,
|
|
3486
3512
|
},
|
|
3487
3513
|
},
|
|
3488
3514
|
|
|
3489
3515
|
link: {
|
|
3490
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
3516
|
+
[compVars$9.labelTextColor]: helperRefs$7.main,
|
|
3491
3517
|
[compVars$9.horizontalPadding]: '0.125em',
|
|
3492
3518
|
_hover: {
|
|
3493
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
3519
|
+
[compVars$9.labelTextColor]: helperRefs$7.dark,
|
|
3494
3520
|
[compVars$9.labelTextDecoration]: 'underline',
|
|
3495
3521
|
},
|
|
3496
3522
|
_active: {
|
|
3497
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
3523
|
+
[compVars$9.labelTextColor]: helperRefs$7.main,
|
|
3498
3524
|
},
|
|
3499
3525
|
},
|
|
3500
3526
|
},
|
|
3501
3527
|
|
|
3502
3528
|
_focused: {
|
|
3503
|
-
[compVars$9.outlineColor]: helperRefs$
|
|
3529
|
+
[compVars$9.outlineColor]: helperRefs$7.light,
|
|
3504
3530
|
},
|
|
3505
3531
|
};
|
|
3506
3532
|
|
|
3507
|
-
const vars$
|
|
3533
|
+
const vars$15 = {
|
|
3508
3534
|
...compVars$9,
|
|
3509
3535
|
...helperVars$6,
|
|
3510
3536
|
};
|
|
@@ -3512,13 +3538,13 @@ const vars$14 = {
|
|
|
3512
3538
|
var button$1 = /*#__PURE__*/Object.freeze({
|
|
3513
3539
|
__proto__: null,
|
|
3514
3540
|
default: button,
|
|
3515
|
-
vars: vars$
|
|
3541
|
+
vars: vars$15
|
|
3516
3542
|
});
|
|
3517
3543
|
|
|
3518
|
-
const componentName$
|
|
3544
|
+
const componentName$1h = getComponentName('text');
|
|
3519
3545
|
|
|
3520
3546
|
class RawText extends createBaseClass$1({
|
|
3521
|
-
componentName: componentName$
|
|
3547
|
+
componentName: componentName$1h,
|
|
3522
3548
|
baseSelector: ':host > slot',
|
|
3523
3549
|
}) {
|
|
3524
3550
|
constructor() {
|
|
@@ -3585,106 +3611,106 @@ const TextClass = compose(
|
|
|
3585
3611
|
)(RawText);
|
|
3586
3612
|
|
|
3587
3613
|
const globalRefs$G = getThemeRefs$1(globals);
|
|
3588
|
-
const vars$
|
|
3614
|
+
const vars$14 = TextClass.cssVarList;
|
|
3589
3615
|
|
|
3590
3616
|
const text$3 = {
|
|
3591
|
-
[vars$
|
|
3592
|
-
[vars$
|
|
3593
|
-
[vars$
|
|
3594
|
-
[vars$
|
|
3617
|
+
[vars$14.hostDirection]: globalRefs$G.direction,
|
|
3618
|
+
[vars$14.textLineHeight]: '1.35em',
|
|
3619
|
+
[vars$14.textAlign]: 'start',
|
|
3620
|
+
[vars$14.textColor]: globalRefs$G.colors.surface.dark,
|
|
3595
3621
|
|
|
3596
3622
|
variant: {
|
|
3597
3623
|
h1: {
|
|
3598
|
-
[vars$
|
|
3599
|
-
[vars$
|
|
3600
|
-
[vars$
|
|
3624
|
+
[vars$14.fontSize]: globalRefs$G.typography.h1.size,
|
|
3625
|
+
[vars$14.fontWeight]: globalRefs$G.typography.h1.weight,
|
|
3626
|
+
[vars$14.fontFamily]: globalRefs$G.typography.h1.font,
|
|
3601
3627
|
},
|
|
3602
3628
|
h2: {
|
|
3603
|
-
[vars$
|
|
3604
|
-
[vars$
|
|
3605
|
-
[vars$
|
|
3629
|
+
[vars$14.fontSize]: globalRefs$G.typography.h2.size,
|
|
3630
|
+
[vars$14.fontWeight]: globalRefs$G.typography.h2.weight,
|
|
3631
|
+
[vars$14.fontFamily]: globalRefs$G.typography.h2.font,
|
|
3606
3632
|
},
|
|
3607
3633
|
h3: {
|
|
3608
|
-
[vars$
|
|
3609
|
-
[vars$
|
|
3610
|
-
[vars$
|
|
3634
|
+
[vars$14.fontSize]: globalRefs$G.typography.h3.size,
|
|
3635
|
+
[vars$14.fontWeight]: globalRefs$G.typography.h3.weight,
|
|
3636
|
+
[vars$14.fontFamily]: globalRefs$G.typography.h3.font,
|
|
3611
3637
|
},
|
|
3612
3638
|
subtitle1: {
|
|
3613
|
-
[vars$
|
|
3614
|
-
[vars$
|
|
3615
|
-
[vars$
|
|
3639
|
+
[vars$14.fontSize]: globalRefs$G.typography.subtitle1.size,
|
|
3640
|
+
[vars$14.fontWeight]: globalRefs$G.typography.subtitle1.weight,
|
|
3641
|
+
[vars$14.fontFamily]: globalRefs$G.typography.subtitle1.font,
|
|
3616
3642
|
},
|
|
3617
3643
|
subtitle2: {
|
|
3618
|
-
[vars$
|
|
3619
|
-
[vars$
|
|
3620
|
-
[vars$
|
|
3644
|
+
[vars$14.fontSize]: globalRefs$G.typography.subtitle2.size,
|
|
3645
|
+
[vars$14.fontWeight]: globalRefs$G.typography.subtitle2.weight,
|
|
3646
|
+
[vars$14.fontFamily]: globalRefs$G.typography.subtitle2.font,
|
|
3621
3647
|
},
|
|
3622
3648
|
body1: {
|
|
3623
|
-
[vars$
|
|
3624
|
-
[vars$
|
|
3625
|
-
[vars$
|
|
3649
|
+
[vars$14.fontSize]: globalRefs$G.typography.body1.size,
|
|
3650
|
+
[vars$14.fontWeight]: globalRefs$G.typography.body1.weight,
|
|
3651
|
+
[vars$14.fontFamily]: globalRefs$G.typography.body1.font,
|
|
3626
3652
|
},
|
|
3627
3653
|
body2: {
|
|
3628
|
-
[vars$
|
|
3629
|
-
[vars$
|
|
3630
|
-
[vars$
|
|
3654
|
+
[vars$14.fontSize]: globalRefs$G.typography.body2.size,
|
|
3655
|
+
[vars$14.fontWeight]: globalRefs$G.typography.body2.weight,
|
|
3656
|
+
[vars$14.fontFamily]: globalRefs$G.typography.body2.font,
|
|
3631
3657
|
},
|
|
3632
3658
|
},
|
|
3633
3659
|
|
|
3634
3660
|
mode: {
|
|
3635
3661
|
primary: {
|
|
3636
|
-
[vars$
|
|
3662
|
+
[vars$14.textColor]: globalRefs$G.colors.surface.contrast,
|
|
3637
3663
|
},
|
|
3638
3664
|
secondary: {
|
|
3639
|
-
[vars$
|
|
3665
|
+
[vars$14.textColor]: globalRefs$G.colors.surface.dark,
|
|
3640
3666
|
},
|
|
3641
3667
|
error: {
|
|
3642
|
-
[vars$
|
|
3668
|
+
[vars$14.textColor]: globalRefs$G.colors.error.main,
|
|
3643
3669
|
},
|
|
3644
3670
|
'error-dark': {
|
|
3645
|
-
[vars$
|
|
3671
|
+
[vars$14.textColor]: globalRefs$G.colors.error.dark,
|
|
3646
3672
|
},
|
|
3647
3673
|
success: {
|
|
3648
|
-
[vars$
|
|
3674
|
+
[vars$14.textColor]: globalRefs$G.colors.success.main,
|
|
3649
3675
|
},
|
|
3650
3676
|
'success-dark': {
|
|
3651
|
-
[vars$
|
|
3677
|
+
[vars$14.textColor]: globalRefs$G.colors.success.dark,
|
|
3652
3678
|
},
|
|
3653
3679
|
warning: {
|
|
3654
|
-
[vars$
|
|
3680
|
+
[vars$14.textColor]: globalRefs$G.colors.warning.main,
|
|
3655
3681
|
},
|
|
3656
3682
|
'warning-dark': {
|
|
3657
|
-
[vars$
|
|
3683
|
+
[vars$14.textColor]: globalRefs$G.colors.warning.dark,
|
|
3658
3684
|
},
|
|
3659
3685
|
},
|
|
3660
3686
|
|
|
3661
3687
|
textAlign: {
|
|
3662
|
-
right: { [vars$
|
|
3663
|
-
left: { [vars$
|
|
3664
|
-
center: { [vars$
|
|
3688
|
+
right: { [vars$14.textAlign]: 'right' },
|
|
3689
|
+
left: { [vars$14.textAlign]: 'left' },
|
|
3690
|
+
center: { [vars$14.textAlign]: 'center' },
|
|
3665
3691
|
},
|
|
3666
3692
|
|
|
3667
3693
|
_fullWidth: {
|
|
3668
|
-
[vars$
|
|
3694
|
+
[vars$14.hostWidth]: '100%',
|
|
3669
3695
|
},
|
|
3670
3696
|
|
|
3671
3697
|
_italic: {
|
|
3672
|
-
[vars$
|
|
3698
|
+
[vars$14.fontStyle]: 'italic',
|
|
3673
3699
|
},
|
|
3674
3700
|
|
|
3675
3701
|
_uppercase: {
|
|
3676
|
-
[vars$
|
|
3702
|
+
[vars$14.textTransform]: 'uppercase',
|
|
3677
3703
|
},
|
|
3678
3704
|
|
|
3679
3705
|
_lowercase: {
|
|
3680
|
-
[vars$
|
|
3706
|
+
[vars$14.textTransform]: 'lowercase',
|
|
3681
3707
|
},
|
|
3682
3708
|
};
|
|
3683
3709
|
|
|
3684
3710
|
var text$4 = /*#__PURE__*/Object.freeze({
|
|
3685
3711
|
__proto__: null,
|
|
3686
3712
|
default: text$3,
|
|
3687
|
-
vars: vars$
|
|
3713
|
+
vars: vars$14
|
|
3688
3714
|
});
|
|
3689
3715
|
|
|
3690
3716
|
const disableRules = [
|
|
@@ -3711,9 +3737,9 @@ const decodeHTML = (html) => {
|
|
|
3711
3737
|
/* eslint-disable no-param-reassign */
|
|
3712
3738
|
|
|
3713
3739
|
|
|
3714
|
-
const componentName$
|
|
3740
|
+
const componentName$1g = getComponentName('enriched-text');
|
|
3715
3741
|
|
|
3716
|
-
class EnrichedText extends createBaseClass$1({ componentName: componentName$
|
|
3742
|
+
class EnrichedText extends createBaseClass$1({ componentName: componentName$1g, baseSelector: ':host > div' }) {
|
|
3717
3743
|
#origLinkRenderer;
|
|
3718
3744
|
|
|
3719
3745
|
#origEmRenderer;
|
|
@@ -3918,9 +3944,9 @@ const EnrichedTextClass = compose(
|
|
|
3918
3944
|
componentNameValidationMixin$1
|
|
3919
3945
|
)(EnrichedText);
|
|
3920
3946
|
|
|
3921
|
-
const componentName$
|
|
3947
|
+
const componentName$1f = getComponentName('link');
|
|
3922
3948
|
|
|
3923
|
-
class RawLink extends createBaseClass$1({ componentName: componentName$
|
|
3949
|
+
class RawLink extends createBaseClass$1({ componentName: componentName$1f, baseSelector: ':host a' }) {
|
|
3924
3950
|
constructor() {
|
|
3925
3951
|
super();
|
|
3926
3952
|
|
|
@@ -3998,31 +4024,31 @@ const LinkClass = compose(
|
|
|
3998
4024
|
)(RawLink);
|
|
3999
4025
|
|
|
4000
4026
|
const globalRefs$F = getThemeRefs$1(globals);
|
|
4001
|
-
const vars$
|
|
4027
|
+
const vars$13 = LinkClass.cssVarList;
|
|
4002
4028
|
|
|
4003
4029
|
const link$1 = {
|
|
4004
|
-
[vars$
|
|
4005
|
-
[vars$
|
|
4030
|
+
[vars$13.hostDirection]: globalRefs$F.direction,
|
|
4031
|
+
[vars$13.cursor]: 'pointer',
|
|
4006
4032
|
|
|
4007
|
-
[vars$
|
|
4033
|
+
[vars$13.textColor]: globalRefs$F.colors.primary.main,
|
|
4008
4034
|
|
|
4009
4035
|
textAlign: {
|
|
4010
|
-
right: { [vars$
|
|
4011
|
-
left: { [vars$
|
|
4012
|
-
center: { [vars$
|
|
4036
|
+
right: { [vars$13.textAlign]: 'right' },
|
|
4037
|
+
left: { [vars$13.textAlign]: 'left' },
|
|
4038
|
+
center: { [vars$13.textAlign]: 'center' },
|
|
4013
4039
|
},
|
|
4014
4040
|
|
|
4015
4041
|
_fullWidth: {
|
|
4016
|
-
[vars$
|
|
4042
|
+
[vars$13.hostWidth]: '100%',
|
|
4017
4043
|
},
|
|
4018
4044
|
|
|
4019
4045
|
_hover: {
|
|
4020
|
-
[vars$
|
|
4046
|
+
[vars$13.textDecoration]: 'underline',
|
|
4021
4047
|
},
|
|
4022
4048
|
|
|
4023
4049
|
mode: {
|
|
4024
4050
|
secondary: {
|
|
4025
|
-
[vars$
|
|
4051
|
+
[vars$13.textColor]: globalRefs$F.colors.secondary.main,
|
|
4026
4052
|
},
|
|
4027
4053
|
},
|
|
4028
4054
|
};
|
|
@@ -4030,37 +4056,37 @@ const link$1 = {
|
|
|
4030
4056
|
var link$2 = /*#__PURE__*/Object.freeze({
|
|
4031
4057
|
__proto__: null,
|
|
4032
4058
|
default: link$1,
|
|
4033
|
-
vars: vars$
|
|
4059
|
+
vars: vars$13
|
|
4034
4060
|
});
|
|
4035
4061
|
|
|
4036
4062
|
const globalRefs$E = getThemeRefs$1(globals);
|
|
4037
|
-
const vars$
|
|
4063
|
+
const vars$12 = EnrichedTextClass.cssVarList;
|
|
4038
4064
|
|
|
4039
4065
|
const enrichedText = {
|
|
4040
|
-
[vars$
|
|
4041
|
-
[vars$
|
|
4066
|
+
[vars$12.hostDirection]: globalRefs$E.direction,
|
|
4067
|
+
[vars$12.hostWidth]: useVar$1(vars$14.hostWidth),
|
|
4042
4068
|
|
|
4043
|
-
[vars$
|
|
4044
|
-
[vars$
|
|
4045
|
-
[vars$
|
|
4069
|
+
[vars$12.textLineHeight]: useVar$1(vars$14.textLineHeight),
|
|
4070
|
+
[vars$12.textColor]: useVar$1(vars$14.textColor),
|
|
4071
|
+
[vars$12.textAlign]: useVar$1(vars$14.textAlign),
|
|
4046
4072
|
|
|
4047
|
-
[vars$
|
|
4048
|
-
[vars$
|
|
4049
|
-
[vars$
|
|
4073
|
+
[vars$12.fontSize]: useVar$1(vars$14.fontSize),
|
|
4074
|
+
[vars$12.fontWeight]: useVar$1(vars$14.fontWeight),
|
|
4075
|
+
[vars$12.fontFamily]: useVar$1(vars$14.fontFamily),
|
|
4050
4076
|
|
|
4051
|
-
[vars$
|
|
4052
|
-
[vars$
|
|
4053
|
-
[vars$
|
|
4077
|
+
[vars$12.linkColor]: useVar$1(vars$13.textColor),
|
|
4078
|
+
[vars$12.linkTextDecoration]: 'none',
|
|
4079
|
+
[vars$12.linkHoverTextDecoration]: 'underline',
|
|
4054
4080
|
|
|
4055
|
-
[vars$
|
|
4056
|
-
[vars$
|
|
4057
|
-
[vars$
|
|
4081
|
+
[vars$12.fontWeightBold]: '900',
|
|
4082
|
+
[vars$12.minWidth]: '0.25em',
|
|
4083
|
+
[vars$12.minHeight]: '1.35em',
|
|
4058
4084
|
|
|
4059
|
-
[vars$
|
|
4085
|
+
[vars$12.hostDisplay]: 'inline-block',
|
|
4060
4086
|
|
|
4061
4087
|
_empty: {
|
|
4062
4088
|
_hideWhenEmpty: {
|
|
4063
|
-
[vars$
|
|
4089
|
+
[vars$12.hostDisplay]: 'none',
|
|
4064
4090
|
},
|
|
4065
4091
|
},
|
|
4066
4092
|
};
|
|
@@ -4068,10 +4094,10 @@ const enrichedText = {
|
|
|
4068
4094
|
var enrichedText$1 = /*#__PURE__*/Object.freeze({
|
|
4069
4095
|
__proto__: null,
|
|
4070
4096
|
default: enrichedText,
|
|
4071
|
-
vars: vars$
|
|
4097
|
+
vars: vars$12
|
|
4072
4098
|
});
|
|
4073
4099
|
|
|
4074
|
-
const componentName$
|
|
4100
|
+
const componentName$1e = getComponentName('combo-box');
|
|
4075
4101
|
|
|
4076
4102
|
const ComboBoxMixin = (superclass) =>
|
|
4077
4103
|
class ComboBoxMixinClass extends superclass {
|
|
@@ -4755,12 +4781,12 @@ const ComboBoxClass = compose(
|
|
|
4755
4781
|
// and reset items to an empty array, and opening the list box with no items
|
|
4756
4782
|
// to display.
|
|
4757
4783
|
excludeAttrsSync: ['tabindex', 'size', 'data', 'loading', 'style'],
|
|
4758
|
-
componentName: componentName$
|
|
4784
|
+
componentName: componentName$1e,
|
|
4759
4785
|
includeForwardProps: ['items', 'renderer', 'selectedItem'],
|
|
4760
4786
|
}),
|
|
4761
4787
|
);
|
|
4762
4788
|
|
|
4763
|
-
const componentName$
|
|
4789
|
+
const componentName$1d = getComponentName('input-wrapper');
|
|
4764
4790
|
const globalRefs$D = getThemeRefs$1(globals);
|
|
4765
4791
|
|
|
4766
4792
|
const [theme$2, refs$1] = createHelperVars$1(
|
|
@@ -4883,103 +4909,103 @@ const [theme$2, refs$1] = createHelperVars$1(
|
|
|
4883
4909
|
backgroundColor: globalRefs$D.colors.surface.main,
|
|
4884
4910
|
},
|
|
4885
4911
|
},
|
|
4886
|
-
componentName$
|
|
4912
|
+
componentName$1d,
|
|
4887
4913
|
);
|
|
4888
4914
|
|
|
4889
4915
|
const globalRefs$C = getThemeRefs$1(globals);
|
|
4890
|
-
const vars$
|
|
4916
|
+
const vars$11 = ComboBoxClass.cssVarList;
|
|
4891
4917
|
|
|
4892
4918
|
const comboBox = {
|
|
4893
|
-
[vars$
|
|
4894
|
-
[vars$
|
|
4895
|
-
[vars$
|
|
4896
|
-
[vars$
|
|
4897
|
-
[vars$
|
|
4898
|
-
[vars$
|
|
4899
|
-
[vars$
|
|
4900
|
-
[vars$
|
|
4901
|
-
[vars$
|
|
4902
|
-
[vars$
|
|
4903
|
-
[vars$
|
|
4904
|
-
[vars$
|
|
4905
|
-
[vars$
|
|
4906
|
-
[vars$
|
|
4907
|
-
[vars$
|
|
4908
|
-
[vars$
|
|
4909
|
-
[vars$
|
|
4910
|
-
[vars$
|
|
4911
|
-
[vars$
|
|
4912
|
-
[vars$
|
|
4913
|
-
[vars$
|
|
4914
|
-
[vars$
|
|
4915
|
-
[vars$
|
|
4916
|
-
[vars$
|
|
4917
|
-
[vars$
|
|
4918
|
-
[vars$
|
|
4919
|
-
[vars$
|
|
4920
|
-
[vars$
|
|
4921
|
-
[vars$
|
|
4922
|
-
[vars$
|
|
4923
|
-
[vars$
|
|
4924
|
-
[vars$
|
|
4925
|
-
[vars$
|
|
4926
|
-
[vars$
|
|
4927
|
-
[vars$
|
|
4928
|
-
[vars$
|
|
4929
|
-
[vars$
|
|
4930
|
-
[vars$
|
|
4919
|
+
[vars$11.hostWidth]: refs$1.width,
|
|
4920
|
+
[vars$11.hostDirection]: refs$1.direction,
|
|
4921
|
+
[vars$11.fontSize]: refs$1.fontSize,
|
|
4922
|
+
[vars$11.fontFamily]: refs$1.fontFamily,
|
|
4923
|
+
[vars$11.labelFontSize]: refs$1.labelFontSize,
|
|
4924
|
+
[vars$11.labelFontWeight]: refs$1.labelFontWeight,
|
|
4925
|
+
[vars$11.labelTextColor]: refs$1.labelTextColor,
|
|
4926
|
+
[vars$11.errorMessageTextColor]: refs$1.errorMessageTextColor,
|
|
4927
|
+
[vars$11.inputBorderColor]: refs$1.borderColor,
|
|
4928
|
+
[vars$11.inputBorderWidth]: refs$1.borderWidth,
|
|
4929
|
+
[vars$11.inputBorderStyle]: refs$1.borderStyle,
|
|
4930
|
+
[vars$11.inputBorderRadius]: refs$1.borderRadius,
|
|
4931
|
+
[vars$11.inputOutlineColor]: refs$1.outlineColor,
|
|
4932
|
+
[vars$11.inputOutlineOffset]: refs$1.outlineOffset,
|
|
4933
|
+
[vars$11.inputOutlineWidth]: refs$1.outlineWidth,
|
|
4934
|
+
[vars$11.inputOutlineStyle]: refs$1.outlineStyle,
|
|
4935
|
+
[vars$11.labelRequiredIndicator]: refs$1.requiredIndicator,
|
|
4936
|
+
[vars$11.inputValueTextColor]: refs$1.valueTextColor,
|
|
4937
|
+
[vars$11.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
|
|
4938
|
+
[vars$11.inputBackgroundColor]: refs$1.backgroundColor,
|
|
4939
|
+
[vars$11.inputHorizontalPadding]: refs$1.horizontalPadding,
|
|
4940
|
+
[vars$11.inputHeight]: refs$1.inputHeight,
|
|
4941
|
+
[vars$11.inputDropdownButtonColor]: globalRefs$C.colors.surface.dark,
|
|
4942
|
+
[vars$11.inputDropdownButtonCursor]: 'pointer',
|
|
4943
|
+
[vars$11.inputDropdownButtonSize]: refs$1.toggleButtonSize,
|
|
4944
|
+
[vars$11.inputDropdownButtonOffset]: globalRefs$C.spacing.xs,
|
|
4945
|
+
[vars$11.overlayItemPaddingInlineStart]: globalRefs$C.spacing.xs,
|
|
4946
|
+
[vars$11.overlayItemPaddingInlineEnd]: globalRefs$C.spacing.lg,
|
|
4947
|
+
[vars$11.labelPosition]: refs$1.labelPosition,
|
|
4948
|
+
[vars$11.labelTopPosition]: refs$1.labelTopPosition,
|
|
4949
|
+
[vars$11.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
|
|
4950
|
+
[vars$11.inputTransformY]: refs$1.inputTransformY,
|
|
4951
|
+
[vars$11.inputTransition]: refs$1.inputTransition,
|
|
4952
|
+
[vars$11.marginInlineStart]: refs$1.marginInlineStart,
|
|
4953
|
+
[vars$11.placeholderOpacity]: refs$1.placeholderOpacity,
|
|
4954
|
+
[vars$11.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
|
|
4955
|
+
[vars$11.valueInputHeight]: refs$1.valueInputHeight,
|
|
4956
|
+
[vars$11.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
|
|
4931
4957
|
|
|
4932
4958
|
// error message icon
|
|
4933
|
-
[vars$
|
|
4934
|
-
[vars$
|
|
4935
|
-
[vars$
|
|
4936
|
-
[vars$
|
|
4937
|
-
[vars$
|
|
4938
|
-
[vars$
|
|
4959
|
+
[vars$11.errorMessageIcon]: refs$1.errorMessageIcon,
|
|
4960
|
+
[vars$11.errorMessageIconSize]: refs$1.errorMessageIconSize,
|
|
4961
|
+
[vars$11.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
|
|
4962
|
+
[vars$11.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
|
|
4963
|
+
[vars$11.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
|
|
4964
|
+
[vars$11.errorMessageFontSize]: refs$1.errorMessageFontSize,
|
|
4939
4965
|
|
|
4940
4966
|
_readonly: {
|
|
4941
|
-
[vars$
|
|
4967
|
+
[vars$11.inputDropdownButtonCursor]: 'default',
|
|
4942
4968
|
},
|
|
4943
4969
|
|
|
4944
4970
|
// Overlay theme exposed via the component:
|
|
4945
|
-
[vars$
|
|
4946
|
-
[vars$
|
|
4947
|
-
[vars$
|
|
4948
|
-
[vars$
|
|
4949
|
-
[vars$
|
|
4950
|
-
[vars$
|
|
4951
|
-
[vars$
|
|
4952
|
-
[vars$
|
|
4953
|
-
[vars$
|
|
4971
|
+
[vars$11.overlayFontSize]: refs$1.fontSize,
|
|
4972
|
+
[vars$11.overlayFontFamily]: refs$1.fontFamily,
|
|
4973
|
+
[vars$11.overlayCursor]: 'pointer',
|
|
4974
|
+
[vars$11.overlayItemBoxShadow]: 'none',
|
|
4975
|
+
[vars$11.overlayBackground]: refs$1.backgroundColor,
|
|
4976
|
+
[vars$11.overlayTextColor]: refs$1.valueTextColor,
|
|
4977
|
+
[vars$11.overlayCheckmarkDisplay]: 'initial',
|
|
4978
|
+
[vars$11.overlaySelectedItemBackground]: 'initial',
|
|
4979
|
+
[vars$11.overlaySelectedItemHoverBackground]:
|
|
4954
4980
|
globalRefs$C.colors.primary.highlight,
|
|
4955
|
-
[vars$
|
|
4981
|
+
[vars$11.overlaySelectedItemFocusBackground]:
|
|
4956
4982
|
globalRefs$C.colors.primary.highlight,
|
|
4957
|
-
[vars$
|
|
4958
|
-
[vars$
|
|
4983
|
+
[vars$11.overlayItemHoverBackground]: globalRefs$C.colors.primary.highlight,
|
|
4984
|
+
[vars$11.overlayItemFocusBackground]: globalRefs$C.colors.primary.highlight,
|
|
4959
4985
|
|
|
4960
4986
|
// Overlay direct theme:
|
|
4961
|
-
[vars$
|
|
4962
|
-
[vars$
|
|
4987
|
+
[vars$11.overlay.minHeight]: '400px',
|
|
4988
|
+
[vars$11.overlay.margin]: '0',
|
|
4963
4989
|
|
|
4964
|
-
[vars$
|
|
4965
|
-
[vars$
|
|
4966
|
-
[vars$
|
|
4990
|
+
[vars$11.overlay.contentHeight]: '100%',
|
|
4991
|
+
[vars$11.overlay.contentOpacity]: '1',
|
|
4992
|
+
[vars$11.overlay.scrollerMinHeight]: '1px',
|
|
4967
4993
|
_loading: {
|
|
4968
|
-
[vars$
|
|
4969
|
-
[vars$
|
|
4970
|
-
[vars$
|
|
4994
|
+
[vars$11.overlay.loaderTop]: '50%',
|
|
4995
|
+
[vars$11.overlay.loaderLeft]: '50%',
|
|
4996
|
+
[vars$11.overlay.loaderRight]: 'auto',
|
|
4971
4997
|
// Margin has to be negative to center the loader, "transform" can't be used because the animation uses it
|
|
4972
4998
|
// Margin has to be half of the width/height of the loader to center it
|
|
4973
|
-
[vars$
|
|
4974
|
-
[vars$
|
|
4975
|
-
[vars$
|
|
4976
|
-
[vars$
|
|
4977
|
-
[vars$
|
|
4999
|
+
[vars$11.overlay.loaderMargin]: '-15px 0 0 -15px',
|
|
5000
|
+
[vars$11.overlay.loaderWidth]: '30px',
|
|
5001
|
+
[vars$11.overlay.loaderHeight]: '30px',
|
|
5002
|
+
[vars$11.overlay.loaderBorder]: '2px solid transparent',
|
|
5003
|
+
[vars$11.overlay.loaderBorderColor]:
|
|
4978
5004
|
`${globalRefs$C.colors.primary.highlight} ${globalRefs$C.colors.primary.highlight} ${globalRefs$C.colors.primary.main} ${globalRefs$C.colors.primary.main}`,
|
|
4979
|
-
[vars$
|
|
4980
|
-
[vars$
|
|
4981
|
-
[vars$
|
|
4982
|
-
[vars$
|
|
5005
|
+
[vars$11.overlay.loaderBorderRadius]: '50%',
|
|
5006
|
+
[vars$11.overlay.contentHeight]: '100px',
|
|
5007
|
+
[vars$11.overlay.scrollerMinHeight]: '100px',
|
|
5008
|
+
[vars$11.overlay.contentOpacity]: '0',
|
|
4983
5009
|
},
|
|
4984
5010
|
};
|
|
4985
5011
|
|
|
@@ -4987,13 +5013,13 @@ var comboBox$1 = /*#__PURE__*/Object.freeze({
|
|
|
4987
5013
|
__proto__: null,
|
|
4988
5014
|
comboBox: comboBox,
|
|
4989
5015
|
default: comboBox,
|
|
4990
|
-
vars: vars$
|
|
5016
|
+
vars: vars$11
|
|
4991
5017
|
});
|
|
4992
5018
|
|
|
4993
|
-
const componentName$
|
|
5019
|
+
const componentName$1c = getComponentName('badge');
|
|
4994
5020
|
|
|
4995
5021
|
class RawBadge extends createBaseClass$1({
|
|
4996
|
-
componentName: componentName$
|
|
5022
|
+
componentName: componentName$1c,
|
|
4997
5023
|
baseSelector: ':host > div',
|
|
4998
5024
|
}) {
|
|
4999
5025
|
constructor() {
|
|
@@ -5011,6 +5037,7 @@ class RawBadge extends createBaseClass$1({
|
|
|
5011
5037
|
display: inline-flex;
|
|
5012
5038
|
}
|
|
5013
5039
|
:host > div {
|
|
5040
|
+
position: relative;
|
|
5014
5041
|
width: 100%;
|
|
5015
5042
|
text-overflow: ellipsis;
|
|
5016
5043
|
overflow: hidden;
|
|
@@ -5026,6 +5053,7 @@ const BadgeClass = compose(
|
|
|
5026
5053
|
createStyleMixin$1({
|
|
5027
5054
|
mappings: {
|
|
5028
5055
|
hostWidth: [{ selector: () => ':host', property: 'width' }],
|
|
5056
|
+
hostHeight: [{ selector: () => ':host', property: 'height' }],
|
|
5029
5057
|
hostDirection: { property: 'direction' },
|
|
5030
5058
|
|
|
5031
5059
|
fontFamily: {},
|
|
@@ -5050,6 +5078,8 @@ const BadgeClass = compose(
|
|
|
5050
5078
|
|
|
5051
5079
|
textColor: { property: 'color' },
|
|
5052
5080
|
textAlign: {},
|
|
5081
|
+
boxShadow: {},
|
|
5082
|
+
textIndent: {},
|
|
5053
5083
|
},
|
|
5054
5084
|
}),
|
|
5055
5085
|
draggableMixin$1,
|
|
@@ -5058,79 +5088,125 @@ const BadgeClass = compose(
|
|
|
5058
5088
|
|
|
5059
5089
|
const globalRefs$B = getThemeRefs$1(globals);
|
|
5060
5090
|
|
|
5061
|
-
const
|
|
5091
|
+
const [helperTheme$6, helperRefs$6] = createHelperVars$1(
|
|
5092
|
+
{
|
|
5093
|
+
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
5094
|
+
},
|
|
5095
|
+
componentName$1c,
|
|
5096
|
+
);
|
|
5097
|
+
|
|
5098
|
+
const { shadowColor: shadowColor$6 } = helperRefs$6;
|
|
5099
|
+
|
|
5100
|
+
const vars$10 = BadgeClass.cssVarList;
|
|
5062
5101
|
|
|
5063
5102
|
const badge$2 = {
|
|
5064
|
-
|
|
5065
|
-
[vars$$.hostDirection]: globalRefs$B.direction,
|
|
5103
|
+
...helperTheme$6,
|
|
5066
5104
|
|
|
5067
|
-
[vars
|
|
5105
|
+
[vars$10.hostWidth]: 'fit-content',
|
|
5106
|
+
[vars$10.hostDirection]: globalRefs$B.direction,
|
|
5068
5107
|
|
|
5069
|
-
[vars
|
|
5070
|
-
[vars$$.fontWeight]: '400',
|
|
5108
|
+
[vars$10.textAlign]: 'center',
|
|
5071
5109
|
|
|
5072
|
-
[vars
|
|
5073
|
-
[vars
|
|
5110
|
+
[vars$10.fontFamily]: globalRefs$B.fonts.font1.family,
|
|
5111
|
+
[vars$10.fontWeight]: '400',
|
|
5074
5112
|
|
|
5075
|
-
[vars
|
|
5076
|
-
[vars
|
|
5077
|
-
|
|
5078
|
-
[vars
|
|
5113
|
+
[vars$10.verticalPadding]: '0.25em',
|
|
5114
|
+
[vars$10.horizontalPadding]: '0.5em',
|
|
5115
|
+
|
|
5116
|
+
[vars$10.borderWidth]: globalRefs$B.border.xs,
|
|
5117
|
+
[vars$10.borderRadius]: globalRefs$B.radius.xs,
|
|
5118
|
+
[vars$10.borderColor]: 'transparent',
|
|
5119
|
+
[vars$10.borderStyle]: 'solid',
|
|
5079
5120
|
|
|
5080
5121
|
_fullWidth: {
|
|
5081
|
-
[vars
|
|
5122
|
+
[vars$10.hostWidth]: '100%',
|
|
5082
5123
|
},
|
|
5083
5124
|
|
|
5084
5125
|
size: {
|
|
5085
|
-
xs: { [vars
|
|
5086
|
-
sm: { [vars
|
|
5087
|
-
md: { [vars
|
|
5088
|
-
lg: { [vars
|
|
5126
|
+
xs: { [vars$10.fontSize]: '12px' },
|
|
5127
|
+
sm: { [vars$10.fontSize]: '14px' },
|
|
5128
|
+
md: { [vars$10.fontSize]: '16px' },
|
|
5129
|
+
lg: { [vars$10.fontSize]: '18px' },
|
|
5130
|
+
},
|
|
5131
|
+
|
|
5132
|
+
variant: {
|
|
5133
|
+
contained: {
|
|
5134
|
+
[vars$10.backgroundColor]: globalRefs$B.colors.surface.main,
|
|
5135
|
+
},
|
|
5136
|
+
},
|
|
5137
|
+
|
|
5138
|
+
$breakpoints: {
|
|
5139
|
+
indicator: '(max-width: 65px)',
|
|
5140
|
+
},
|
|
5141
|
+
|
|
5142
|
+
_shrinkToIndicator: {
|
|
5143
|
+
'$breakpoints.indicator': {
|
|
5144
|
+
[vars$10.hostWidth]: '13px',
|
|
5145
|
+
[vars$10.hostHeight]: '13px',
|
|
5146
|
+
[vars$10.borderRadius]: '50%',
|
|
5147
|
+
[vars$10.fontSize]: '0',
|
|
5148
|
+
[vars$10.textIndent]: '-9999px',
|
|
5149
|
+
},
|
|
5089
5150
|
},
|
|
5090
5151
|
|
|
5091
5152
|
mode: {
|
|
5092
5153
|
default: {
|
|
5093
|
-
[vars
|
|
5154
|
+
[vars$10.textColor]: globalRefs$B.colors.surface.dark,
|
|
5094
5155
|
_bordered: {
|
|
5095
|
-
[vars
|
|
5156
|
+
[vars$10.borderColor]: globalRefs$B.colors.surface.light,
|
|
5096
5157
|
},
|
|
5097
5158
|
},
|
|
5098
5159
|
primary: {
|
|
5099
|
-
[vars
|
|
5160
|
+
[vars$10.textColor]: globalRefs$B.colors.primary.main,
|
|
5100
5161
|
_bordered: {
|
|
5101
|
-
[vars
|
|
5162
|
+
[vars$10.borderColor]: globalRefs$B.colors.primary.light,
|
|
5102
5163
|
},
|
|
5103
5164
|
},
|
|
5104
5165
|
secondary: {
|
|
5105
|
-
[vars
|
|
5166
|
+
[vars$10.textColor]: globalRefs$B.colors.secondary.main,
|
|
5106
5167
|
_bordered: {
|
|
5107
|
-
[vars
|
|
5168
|
+
[vars$10.borderColor]: globalRefs$B.colors.secondary.light,
|
|
5108
5169
|
},
|
|
5109
5170
|
},
|
|
5110
5171
|
error: {
|
|
5111
|
-
[vars
|
|
5172
|
+
[vars$10.textColor]: globalRefs$B.colors.error.main,
|
|
5112
5173
|
_bordered: {
|
|
5113
|
-
[vars
|
|
5174
|
+
[vars$10.borderColor]: globalRefs$B.colors.error.light,
|
|
5114
5175
|
},
|
|
5115
5176
|
},
|
|
5116
5177
|
success: {
|
|
5117
|
-
[vars
|
|
5178
|
+
[vars$10.textColor]: globalRefs$B.colors.success.main,
|
|
5118
5179
|
_bordered: {
|
|
5119
|
-
[vars
|
|
5180
|
+
[vars$10.borderColor]: globalRefs$B.colors.success.light,
|
|
5120
5181
|
},
|
|
5121
5182
|
},
|
|
5122
5183
|
},
|
|
5184
|
+
|
|
5185
|
+
shadow: {
|
|
5186
|
+
sm: {
|
|
5187
|
+
[vars$10.boxShadow]: `${globalRefs$B.shadow.wide.sm} ${shadowColor$6}, ${globalRefs$B.shadow.narrow.sm} ${shadowColor$6}`,
|
|
5188
|
+
},
|
|
5189
|
+
md: {
|
|
5190
|
+
[vars$10.boxShadow]: `${globalRefs$B.shadow.wide.md} ${shadowColor$6}, ${globalRefs$B.shadow.narrow.md} ${shadowColor$6}`,
|
|
5191
|
+
},
|
|
5192
|
+
lg: {
|
|
5193
|
+
[vars$10.boxShadow]: `${globalRefs$B.shadow.wide.lg} ${shadowColor$6}, ${globalRefs$B.shadow.narrow.lg} ${shadowColor$6}`,
|
|
5194
|
+
},
|
|
5195
|
+
xl: {
|
|
5196
|
+
[vars$10.boxShadow]: `${globalRefs$B.shadow.wide.xl} ${shadowColor$6}, ${globalRefs$B.shadow.narrow.xl} ${shadowColor$6}`,
|
|
5197
|
+
},
|
|
5198
|
+
},
|
|
5123
5199
|
};
|
|
5124
5200
|
|
|
5125
5201
|
var badge$3 = /*#__PURE__*/Object.freeze({
|
|
5126
5202
|
__proto__: null,
|
|
5127
5203
|
default: badge$2,
|
|
5128
|
-
vars: vars
|
|
5204
|
+
vars: vars$10
|
|
5129
5205
|
});
|
|
5130
5206
|
|
|
5131
|
-
const componentName$
|
|
5207
|
+
const componentName$1b = getComponentName('avatar');
|
|
5132
5208
|
class RawAvatar extends createBaseClass$1({
|
|
5133
|
-
componentName: componentName$
|
|
5209
|
+
componentName: componentName$1b,
|
|
5134
5210
|
baseSelector: ':host > .wrapper',
|
|
5135
5211
|
}) {
|
|
5136
5212
|
constructor() {
|
|
@@ -5281,37 +5357,37 @@ const avatar = {
|
|
|
5281
5357
|
},
|
|
5282
5358
|
};
|
|
5283
5359
|
|
|
5284
|
-
const vars
|
|
5360
|
+
const vars$$ = {
|
|
5285
5361
|
...compVars$8,
|
|
5286
5362
|
};
|
|
5287
5363
|
|
|
5288
5364
|
var avatar$1 = /*#__PURE__*/Object.freeze({
|
|
5289
5365
|
__proto__: null,
|
|
5290
5366
|
default: avatar,
|
|
5291
|
-
vars: vars
|
|
5367
|
+
vars: vars$$
|
|
5292
5368
|
});
|
|
5293
5369
|
|
|
5294
|
-
const vars$
|
|
5370
|
+
const vars$_ = IconClass.cssVarList;
|
|
5295
5371
|
|
|
5296
5372
|
const icon$3 = {};
|
|
5297
5373
|
|
|
5298
5374
|
var icon$4 = /*#__PURE__*/Object.freeze({
|
|
5299
5375
|
__proto__: null,
|
|
5300
5376
|
default: icon$3,
|
|
5301
|
-
vars: vars$
|
|
5377
|
+
vars: vars$_
|
|
5302
5378
|
});
|
|
5303
5379
|
|
|
5304
|
-
const vars$
|
|
5380
|
+
const vars$Z = ImageClass.cssVarList;
|
|
5305
5381
|
|
|
5306
5382
|
const image = {};
|
|
5307
5383
|
|
|
5308
5384
|
var image$1 = /*#__PURE__*/Object.freeze({
|
|
5309
5385
|
__proto__: null,
|
|
5310
5386
|
default: image,
|
|
5311
|
-
vars: vars$
|
|
5387
|
+
vars: vars$Z
|
|
5312
5388
|
});
|
|
5313
5389
|
|
|
5314
|
-
const componentName$
|
|
5390
|
+
const componentName$1a = getComponentName('list-item');
|
|
5315
5391
|
|
|
5316
5392
|
const customMixin$f = (superclass) =>
|
|
5317
5393
|
class ListItemMixinClass extends superclass {
|
|
@@ -5368,12 +5444,12 @@ const ListItemClass = compose(
|
|
|
5368
5444
|
componentNameValidationMixin$1,
|
|
5369
5445
|
customMixin$f,
|
|
5370
5446
|
activeableMixin,
|
|
5371
|
-
)(createBaseClass$1({ componentName: componentName$
|
|
5447
|
+
)(createBaseClass$1({ componentName: componentName$1a, baseSelector: 'slot' }));
|
|
5372
5448
|
|
|
5373
|
-
const componentName$
|
|
5449
|
+
const componentName$19 = getComponentName('list');
|
|
5374
5450
|
|
|
5375
5451
|
class RawList extends createBaseClass$1({
|
|
5376
|
-
componentName: componentName$
|
|
5452
|
+
componentName: componentName$19,
|
|
5377
5453
|
baseSelector: '.wrapper',
|
|
5378
5454
|
}) {
|
|
5379
5455
|
static get observedAttributes() {
|
|
@@ -5544,7 +5620,7 @@ const ListClass = compose(
|
|
|
5544
5620
|
componentNameValidationMixin$1,
|
|
5545
5621
|
)(RawList);
|
|
5546
5622
|
|
|
5547
|
-
const componentName$
|
|
5623
|
+
const componentName$18 = getComponentName('apps-list');
|
|
5548
5624
|
|
|
5549
5625
|
const itemRenderer$4 = ({ name, icon, url }, _, ref) => `
|
|
5550
5626
|
<a ${url ? `href="${url}" title="${url}"` : ''} ${ref.openInSameWindow ? '' : 'target="_blank"'}>
|
|
@@ -5668,7 +5744,7 @@ const AppsListClass = compose(
|
|
|
5668
5744
|
slots: ['empty-state'],
|
|
5669
5745
|
wrappedEleName: 'descope-list',
|
|
5670
5746
|
excludeAttrsSync: ['tabindex', 'class', 'empty', 'style'],
|
|
5671
|
-
componentName: componentName$
|
|
5747
|
+
componentName: componentName$18,
|
|
5672
5748
|
style: () => `
|
|
5673
5749
|
:host {
|
|
5674
5750
|
width: 100%;
|
|
@@ -5703,60 +5779,60 @@ const AppsListClass = compose(
|
|
|
5703
5779
|
}),
|
|
5704
5780
|
);
|
|
5705
5781
|
|
|
5706
|
-
const vars$
|
|
5782
|
+
const vars$Y = AppsListClass.cssVarList;
|
|
5707
5783
|
const globalRefs$z = getThemeRefs$1(globals);
|
|
5708
5784
|
|
|
5709
5785
|
const defaultHeight = '400px';
|
|
5710
5786
|
|
|
5711
5787
|
const appsList = {
|
|
5712
|
-
[vars$
|
|
5713
|
-
[vars$
|
|
5714
|
-
[vars$
|
|
5715
|
-
[vars$
|
|
5788
|
+
[vars$Y.itemsTextAlign]: 'start',
|
|
5789
|
+
[vars$Y.hostDirection]: globalRefs$z.direction,
|
|
5790
|
+
[vars$Y.maxHeight]: defaultHeight,
|
|
5791
|
+
[vars$Y.itemHoverBackgroundColor]: globalRefs$z.colors.surface.highlight,
|
|
5716
5792
|
|
|
5717
5793
|
_empty: {
|
|
5718
|
-
[vars$
|
|
5794
|
+
[vars$Y.minHeight]: defaultHeight,
|
|
5719
5795
|
},
|
|
5720
5796
|
|
|
5721
5797
|
size: {
|
|
5722
5798
|
xs: {
|
|
5723
|
-
[vars$
|
|
5724
|
-
[vars$
|
|
5799
|
+
[vars$Y.itemsFontSize]: '14px',
|
|
5800
|
+
[vars$Y.itemsFontWeight]: 'normal',
|
|
5725
5801
|
},
|
|
5726
5802
|
sm: {
|
|
5727
|
-
[vars$
|
|
5728
|
-
[vars$
|
|
5803
|
+
[vars$Y.itemsFontSize]: '14px',
|
|
5804
|
+
[vars$Y.itemsFontWeight]: 'normal',
|
|
5729
5805
|
},
|
|
5730
5806
|
md: {
|
|
5731
|
-
[vars$
|
|
5732
|
-
[vars$
|
|
5807
|
+
[vars$Y.itemsFontSize]: '16px',
|
|
5808
|
+
[vars$Y.itemsFontWeight]: 'normal',
|
|
5733
5809
|
},
|
|
5734
5810
|
lg: {
|
|
5735
|
-
[vars$
|
|
5736
|
-
[vars$
|
|
5811
|
+
[vars$Y.itemsFontSize]: '20px',
|
|
5812
|
+
[vars$Y.itemsFontWeight]: 'normal',
|
|
5737
5813
|
},
|
|
5738
5814
|
},
|
|
5739
5815
|
|
|
5740
5816
|
itemPadding: {
|
|
5741
5817
|
xs: {
|
|
5742
|
-
[vars$
|
|
5743
|
-
[vars$
|
|
5818
|
+
[vars$Y.itemVerticalPadding]: globalRefs$z.spacing.xs,
|
|
5819
|
+
[vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.xs,
|
|
5744
5820
|
},
|
|
5745
5821
|
sm: {
|
|
5746
|
-
[vars$
|
|
5747
|
-
[vars$
|
|
5822
|
+
[vars$Y.itemVerticalPadding]: globalRefs$z.spacing.sm,
|
|
5823
|
+
[vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.sm,
|
|
5748
5824
|
},
|
|
5749
5825
|
md: {
|
|
5750
|
-
[vars$
|
|
5751
|
-
[vars$
|
|
5826
|
+
[vars$Y.itemVerticalPadding]: globalRefs$z.spacing.md,
|
|
5827
|
+
[vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.md,
|
|
5752
5828
|
},
|
|
5753
5829
|
lg: {
|
|
5754
|
-
[vars$
|
|
5755
|
-
[vars$
|
|
5830
|
+
[vars$Y.itemVerticalPadding]: globalRefs$z.spacing.lg,
|
|
5831
|
+
[vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.lg,
|
|
5756
5832
|
},
|
|
5757
5833
|
xl: {
|
|
5758
|
-
[vars$
|
|
5759
|
-
[vars$
|
|
5834
|
+
[vars$Y.itemVerticalPadding]: globalRefs$z.spacing.xl,
|
|
5835
|
+
[vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.xl,
|
|
5760
5836
|
},
|
|
5761
5837
|
},
|
|
5762
5838
|
};
|
|
@@ -5764,7 +5840,7 @@ const appsList = {
|
|
|
5764
5840
|
var appsList$1 = /*#__PURE__*/Object.freeze({
|
|
5765
5841
|
__proto__: null,
|
|
5766
5842
|
default: appsList,
|
|
5767
|
-
vars: vars$
|
|
5843
|
+
vars: vars$Y
|
|
5768
5844
|
});
|
|
5769
5845
|
|
|
5770
5846
|
const globalRefs$y = getThemeRefs$1(globals);
|
|
@@ -5773,7 +5849,7 @@ const compVars$7 = ListClass.cssVarList;
|
|
|
5773
5849
|
|
|
5774
5850
|
const [helperTheme$5, helperRefs$5, helperVars$5] = createHelperVars$1(
|
|
5775
5851
|
{ shadowColor: '#00000020' },
|
|
5776
|
-
componentName$
|
|
5852
|
+
componentName$19,
|
|
5777
5853
|
);
|
|
5778
5854
|
|
|
5779
5855
|
const { shadowColor: shadowColor$5 } = helperRefs$5;
|
|
@@ -5834,7 +5910,7 @@ const list = {
|
|
|
5834
5910
|
},
|
|
5835
5911
|
};
|
|
5836
5912
|
|
|
5837
|
-
const vars$
|
|
5913
|
+
const vars$X = {
|
|
5838
5914
|
...compVars$7,
|
|
5839
5915
|
...helperVars$5,
|
|
5840
5916
|
};
|
|
@@ -5842,60 +5918,60 @@ const vars$W = {
|
|
|
5842
5918
|
var list$1 = /*#__PURE__*/Object.freeze({
|
|
5843
5919
|
__proto__: null,
|
|
5844
5920
|
default: list,
|
|
5845
|
-
vars: vars$
|
|
5921
|
+
vars: vars$X
|
|
5846
5922
|
});
|
|
5847
5923
|
|
|
5848
5924
|
const globalRefs$x = getThemeRefs$1(globals);
|
|
5849
5925
|
|
|
5850
|
-
const vars$
|
|
5926
|
+
const vars$W = ListItemClass.cssVarList;
|
|
5851
5927
|
|
|
5852
5928
|
const listItem = {
|
|
5853
|
-
[vars$
|
|
5854
|
-
[vars$
|
|
5855
|
-
[vars$
|
|
5856
|
-
[vars$
|
|
5857
|
-
[vars$
|
|
5858
|
-
[vars$
|
|
5859
|
-
[vars$
|
|
5860
|
-
[vars$
|
|
5861
|
-
[vars$
|
|
5862
|
-
[vars$
|
|
5863
|
-
[vars$
|
|
5864
|
-
[vars$
|
|
5929
|
+
[vars$W.backgroundColor]: globalRefs$x.colors.surface.main,
|
|
5930
|
+
[vars$W.verticalPadding]: globalRefs$x.spacing.lg,
|
|
5931
|
+
[vars$W.horizontalPadding]: globalRefs$x.spacing.lg,
|
|
5932
|
+
[vars$W.gap]: globalRefs$x.spacing.md,
|
|
5933
|
+
[vars$W.borderStyle]: 'solid',
|
|
5934
|
+
[vars$W.borderWidth]: globalRefs$x.border.xs,
|
|
5935
|
+
[vars$W.borderColor]: globalRefs$x.colors.surface.main,
|
|
5936
|
+
[vars$W.borderRadius]: globalRefs$x.radius.sm,
|
|
5937
|
+
[vars$W.cursor]: 'pointer',
|
|
5938
|
+
[vars$W.alignItems]: 'center',
|
|
5939
|
+
[vars$W.flexDirection]: 'row',
|
|
5940
|
+
[vars$W.transition]: 'border-color 0.2s, background-color 0.2s',
|
|
5865
5941
|
|
|
5866
5942
|
variant: {
|
|
5867
5943
|
tile: {
|
|
5868
|
-
[vars$
|
|
5869
|
-
[vars$
|
|
5870
|
-
[vars$
|
|
5944
|
+
[vars$W.alignItems]: 'flex-start',
|
|
5945
|
+
[vars$W.flexDirection]: 'column',
|
|
5946
|
+
[vars$W.borderColor]: globalRefs$x.colors.surface.light,
|
|
5871
5947
|
},
|
|
5872
5948
|
},
|
|
5873
5949
|
|
|
5874
5950
|
_hover: {
|
|
5875
|
-
[vars$
|
|
5951
|
+
[vars$W.backgroundColor]: globalRefs$x.colors.surface.highlight,
|
|
5876
5952
|
},
|
|
5877
5953
|
|
|
5878
5954
|
_active: {
|
|
5879
|
-
[vars$
|
|
5880
|
-
[vars$
|
|
5881
|
-
[vars$
|
|
5955
|
+
[vars$W.backgroundColor]: globalRefs$x.colors.surface.main,
|
|
5956
|
+
[vars$W.borderColor]: globalRefs$x.colors.primary.light,
|
|
5957
|
+
[vars$W.outline]: `1px solid ${globalRefs$x.colors.primary.light}`,
|
|
5882
5958
|
},
|
|
5883
5959
|
};
|
|
5884
5960
|
|
|
5885
5961
|
var listItem$1 = /*#__PURE__*/Object.freeze({
|
|
5886
5962
|
__proto__: null,
|
|
5887
5963
|
default: listItem,
|
|
5888
|
-
vars: vars$
|
|
5964
|
+
vars: vars$W
|
|
5889
5965
|
});
|
|
5890
5966
|
|
|
5891
|
-
const componentName$
|
|
5967
|
+
const componentName$17 = getComponentName('autocomplete-field-internal');
|
|
5892
5968
|
|
|
5893
5969
|
createBaseInputClass$1({
|
|
5894
|
-
componentName: componentName$
|
|
5970
|
+
componentName: componentName$17,
|
|
5895
5971
|
baseSelector: '',
|
|
5896
5972
|
});
|
|
5897
5973
|
|
|
5898
|
-
const componentName$
|
|
5974
|
+
const componentName$16 = getComponentName('autocomplete-field');
|
|
5899
5975
|
|
|
5900
5976
|
const customMixin$d = (superclass) =>
|
|
5901
5977
|
class AutocompleteFieldMixinClass extends superclass {
|
|
@@ -5916,15 +5992,15 @@ const customMixin$d = (superclass) =>
|
|
|
5916
5992
|
const template = document.createElement('template');
|
|
5917
5993
|
|
|
5918
5994
|
template.innerHTML = `
|
|
5919
|
-
<${componentName$
|
|
5995
|
+
<${componentName$17}
|
|
5920
5996
|
tabindex="-1"
|
|
5921
|
-
></${componentName$
|
|
5997
|
+
></${componentName$17}>
|
|
5922
5998
|
`;
|
|
5923
5999
|
|
|
5924
6000
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
5925
6001
|
|
|
5926
6002
|
this.inputElement = this.shadowRoot.querySelector(
|
|
5927
|
-
componentName$
|
|
6003
|
+
componentName$17,
|
|
5928
6004
|
);
|
|
5929
6005
|
|
|
5930
6006
|
forwardAttrs(this, this.inputElement, {
|
|
@@ -6043,34 +6119,34 @@ const AutocompleteFieldClass = compose(
|
|
|
6043
6119
|
}
|
|
6044
6120
|
`,
|
|
6045
6121
|
excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
|
|
6046
|
-
componentName: componentName$
|
|
6122
|
+
componentName: componentName$16,
|
|
6047
6123
|
}),
|
|
6048
6124
|
);
|
|
6049
6125
|
|
|
6050
|
-
const vars$
|
|
6126
|
+
const vars$V = AutocompleteFieldClass.cssVarList;
|
|
6051
6127
|
const globalRefs$w = getThemeRefs$1(globals);
|
|
6052
6128
|
|
|
6053
6129
|
const autocompleteField = {
|
|
6054
|
-
[vars$
|
|
6055
|
-
[vars$
|
|
6056
|
-
[vars$
|
|
6057
|
-
[vars$
|
|
6058
|
-
[vars$
|
|
6059
|
-
[vars$
|
|
6060
|
-
[vars$
|
|
6061
|
-
[vars$
|
|
6062
|
-
[vars$
|
|
6063
|
-
[vars$
|
|
6130
|
+
[vars$V.hostWidth]: refs$1.width,
|
|
6131
|
+
[vars$V.hostDirection]: refs$1.direction,
|
|
6132
|
+
[vars$V.fontSize]: refs$1.fontSize,
|
|
6133
|
+
[vars$V.checkmarkDisplay]: 'none',
|
|
6134
|
+
[vars$V.itemPaddingInlineStart]: globalRefs$w.spacing.lg,
|
|
6135
|
+
[vars$V.itemPaddingInlineEnd]: globalRefs$w.spacing.lg,
|
|
6136
|
+
[vars$V.selectedItemBackground]: globalRefs$w.colors.primary.light,
|
|
6137
|
+
[vars$V.selectedItemHoverBackground]: globalRefs$w.colors.primary.light,
|
|
6138
|
+
[vars$V.selectedItemFocusBackground]: globalRefs$w.colors.primary.light,
|
|
6139
|
+
[vars$V.itemHoverBackground]: globalRefs$w.colors.primary.highlight,
|
|
6064
6140
|
|
|
6065
6141
|
_fullWidth: {
|
|
6066
|
-
[vars$
|
|
6142
|
+
[vars$V.hostWidth]: '100%',
|
|
6067
6143
|
},
|
|
6068
6144
|
};
|
|
6069
6145
|
|
|
6070
6146
|
var autocompleteField$1 = /*#__PURE__*/Object.freeze({
|
|
6071
6147
|
__proto__: null,
|
|
6072
6148
|
default: autocompleteField,
|
|
6073
|
-
vars: vars$
|
|
6149
|
+
vars: vars$V
|
|
6074
6150
|
});
|
|
6075
6151
|
|
|
6076
6152
|
const initGoogleMapsLoader = (apiKey) => {
|
|
@@ -6297,7 +6373,7 @@ class RadarConnector extends createBaseConnectorClass() {
|
|
|
6297
6373
|
}
|
|
6298
6374
|
}
|
|
6299
6375
|
|
|
6300
|
-
const componentName$
|
|
6376
|
+
const componentName$15 = getComponentName('address-field-internal');
|
|
6301
6377
|
|
|
6302
6378
|
const GOOGLE_MAPS_CONNECTOR_TEMPLATE = 'google-maps-places';
|
|
6303
6379
|
const RADAR_CONNECTOR_TEMPLATE = 'radar';
|
|
@@ -6308,7 +6384,7 @@ const CONNECTOR_CLASSES = {
|
|
|
6308
6384
|
};
|
|
6309
6385
|
|
|
6310
6386
|
const BaseInputClass$5 = createBaseInputClass$1({
|
|
6311
|
-
componentName: componentName$
|
|
6387
|
+
componentName: componentName$15,
|
|
6312
6388
|
baseSelector: '',
|
|
6313
6389
|
});
|
|
6314
6390
|
const initConnectorAttrs = ['public-api-key'];
|
|
@@ -6415,7 +6491,7 @@ compose(
|
|
|
6415
6491
|
connectorMixin({ connectorClasses: CONNECTOR_CLASSES }),
|
|
6416
6492
|
)(RawAddressFieldInternal);
|
|
6417
6493
|
|
|
6418
|
-
const componentName$
|
|
6494
|
+
const componentName$14 = getComponentName('address-field');
|
|
6419
6495
|
|
|
6420
6496
|
const customMixin$c = (superclass) =>
|
|
6421
6497
|
class AddressFieldMixinClass extends superclass {
|
|
@@ -6444,15 +6520,15 @@ const customMixin$c = (superclass) =>
|
|
|
6444
6520
|
const template = document.createElement('template');
|
|
6445
6521
|
|
|
6446
6522
|
template.innerHTML = `
|
|
6447
|
-
<${componentName$
|
|
6523
|
+
<${componentName$15}
|
|
6448
6524
|
tabindex="-1"
|
|
6449
|
-
></${componentName$
|
|
6525
|
+
></${componentName$15}>
|
|
6450
6526
|
`;
|
|
6451
6527
|
|
|
6452
6528
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
6453
6529
|
|
|
6454
6530
|
this.inputElement = this.shadowRoot.querySelector(
|
|
6455
|
-
componentName$
|
|
6531
|
+
componentName$15,
|
|
6456
6532
|
);
|
|
6457
6533
|
|
|
6458
6534
|
forwardAttrs(this, this.inputElement, {
|
|
@@ -6530,7 +6606,7 @@ const AddressFieldClass = compose(
|
|
|
6530
6606
|
width: 100%;
|
|
6531
6607
|
}
|
|
6532
6608
|
|
|
6533
|
-
${componentName$
|
|
6609
|
+
${componentName$15} {
|
|
6534
6610
|
display: inline-block;
|
|
6535
6611
|
box-sizing: border-box;
|
|
6536
6612
|
user-select: none;
|
|
@@ -6538,30 +6614,30 @@ const AddressFieldClass = compose(
|
|
|
6538
6614
|
max-width: 100%;
|
|
6539
6615
|
}
|
|
6540
6616
|
|
|
6541
|
-
${componentName$
|
|
6617
|
+
${componentName$15} ::slotted {
|
|
6542
6618
|
padding: 0;
|
|
6543
6619
|
}
|
|
6544
6620
|
`,
|
|
6545
6621
|
excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
|
|
6546
|
-
componentName: componentName$
|
|
6622
|
+
componentName: componentName$14,
|
|
6547
6623
|
}),
|
|
6548
6624
|
);
|
|
6549
6625
|
|
|
6550
|
-
const vars$
|
|
6626
|
+
const vars$U = AddressFieldClass.cssVarList;
|
|
6551
6627
|
|
|
6552
6628
|
const addressField = {
|
|
6553
|
-
[vars$
|
|
6554
|
-
[vars$
|
|
6629
|
+
[vars$U.hostWidth]: refs$1.width,
|
|
6630
|
+
[vars$U.hostDirection]: refs$1.direction,
|
|
6555
6631
|
|
|
6556
6632
|
_fullWidth: {
|
|
6557
|
-
[vars$
|
|
6633
|
+
[vars$U.hostWidth]: '100%',
|
|
6558
6634
|
},
|
|
6559
6635
|
};
|
|
6560
6636
|
|
|
6561
6637
|
var addressField$1 = /*#__PURE__*/Object.freeze({
|
|
6562
6638
|
__proto__: null,
|
|
6563
6639
|
default: addressField,
|
|
6564
|
-
vars: vars$
|
|
6640
|
+
vars: vars$U
|
|
6565
6641
|
});
|
|
6566
6642
|
|
|
6567
6643
|
var clockIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwNCAxMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=";
|
|
@@ -6583,12 +6659,12 @@ const formatTime = (ms = 0) => {
|
|
|
6583
6659
|
return timeParts.join(':');
|
|
6584
6660
|
};
|
|
6585
6661
|
|
|
6586
|
-
const componentName$
|
|
6662
|
+
const componentName$13 = getComponentName('timer');
|
|
6587
6663
|
|
|
6588
6664
|
const observedAttributes$5 = ['seconds', 'hide-icon', 'paused'];
|
|
6589
6665
|
|
|
6590
6666
|
const BaseClass$7 = createBaseClass$1({
|
|
6591
|
-
componentName: componentName$
|
|
6667
|
+
componentName: componentName$13,
|
|
6592
6668
|
baseSelector: ':host > .wrapper',
|
|
6593
6669
|
});
|
|
6594
6670
|
|
|
@@ -6772,44 +6848,44 @@ const TimerClass = compose(
|
|
|
6772
6848
|
)(RawTimer);
|
|
6773
6849
|
|
|
6774
6850
|
const globalRefs$v = getThemeRefs$1(globals);
|
|
6775
|
-
const vars$
|
|
6851
|
+
const vars$T = TimerClass.cssVarList;
|
|
6776
6852
|
|
|
6777
6853
|
const timer = {
|
|
6778
|
-
[vars$
|
|
6779
|
-
[vars$
|
|
6780
|
-
[vars$
|
|
6781
|
-
[vars$
|
|
6782
|
-
[vars$
|
|
6783
|
-
[vars$
|
|
6784
|
-
[vars$
|
|
6785
|
-
[vars$
|
|
6786
|
-
[vars$
|
|
6854
|
+
[vars$T.hostDirection]: globalRefs$v.direction,
|
|
6855
|
+
[vars$T.gap]: '0.25em',
|
|
6856
|
+
[vars$T.fontFamily]: globalRefs$v.fonts.font1.family,
|
|
6857
|
+
[vars$T.minHeight]: '1.5em',
|
|
6858
|
+
[vars$T.lineHeight]: '1em',
|
|
6859
|
+
[vars$T.fontWeight]: globalRefs$v.fonts.font1.fontWeight,
|
|
6860
|
+
[vars$T.textColor]: globalRefs$v.colors.surface.contrast,
|
|
6861
|
+
[vars$T.iconColor]: globalRefs$v.colors.surface.contrast,
|
|
6862
|
+
[vars$T.iconSize]: '1em',
|
|
6787
6863
|
|
|
6788
6864
|
size: {
|
|
6789
|
-
xs: { [vars$
|
|
6790
|
-
sm: { [vars$
|
|
6791
|
-
md: { [vars$
|
|
6792
|
-
lg: { [vars$
|
|
6865
|
+
xs: { [vars$T.fontSize]: '12px' },
|
|
6866
|
+
sm: { [vars$T.fontSize]: '14px' },
|
|
6867
|
+
md: { [vars$T.fontSize]: '16px' },
|
|
6868
|
+
lg: { [vars$T.fontSize]: '18px' },
|
|
6793
6869
|
},
|
|
6794
6870
|
|
|
6795
6871
|
textAlign: {
|
|
6796
|
-
right: { [vars$
|
|
6797
|
-
left: { [vars$
|
|
6798
|
-
center: { [vars$
|
|
6872
|
+
right: { [vars$T.textAlign]: 'right' },
|
|
6873
|
+
left: { [vars$T.textAlign]: 'left' },
|
|
6874
|
+
center: { [vars$T.textAlign]: 'center' },
|
|
6799
6875
|
},
|
|
6800
6876
|
|
|
6801
6877
|
_fullWidth: {
|
|
6802
|
-
[vars$
|
|
6878
|
+
[vars$T.hostWidth]: '100%',
|
|
6803
6879
|
},
|
|
6804
6880
|
};
|
|
6805
6881
|
|
|
6806
6882
|
var timer$1 = /*#__PURE__*/Object.freeze({
|
|
6807
6883
|
__proto__: null,
|
|
6808
6884
|
default: timer,
|
|
6809
|
-
vars: vars$
|
|
6885
|
+
vars: vars$T
|
|
6810
6886
|
});
|
|
6811
6887
|
|
|
6812
|
-
const componentName$
|
|
6888
|
+
const componentName$12 = getComponentName('timer-button');
|
|
6813
6889
|
|
|
6814
6890
|
const buttonAttrs = [
|
|
6815
6891
|
'button-variant',
|
|
@@ -6840,7 +6916,7 @@ const mapTimerAttrs = {
|
|
|
6840
6916
|
};
|
|
6841
6917
|
|
|
6842
6918
|
const BaseClass$6 = createBaseClass$1({
|
|
6843
|
-
componentName: componentName$
|
|
6919
|
+
componentName: componentName$12,
|
|
6844
6920
|
baseSelector: ':host > div',
|
|
6845
6921
|
});
|
|
6846
6922
|
|
|
@@ -6949,30 +7025,30 @@ const TimerButtonClass = compose(
|
|
|
6949
7025
|
)(RawTimerButton);
|
|
6950
7026
|
|
|
6951
7027
|
const globalRefs$u = getThemeRefs$1(globals);
|
|
6952
|
-
const vars$
|
|
7028
|
+
const vars$S = TimerButtonClass.cssVarList;
|
|
6953
7029
|
|
|
6954
7030
|
const timerButton = {
|
|
6955
|
-
[vars$
|
|
6956
|
-
[vars$
|
|
7031
|
+
[vars$S.gap]: globalRefs$u.spacing.sm,
|
|
7032
|
+
[vars$S.flexDirection]: 'column',
|
|
6957
7033
|
|
|
6958
7034
|
_horizontal: {
|
|
6959
|
-
[vars$
|
|
7035
|
+
[vars$S.flexDirection]: 'row',
|
|
6960
7036
|
},
|
|
6961
7037
|
|
|
6962
7038
|
_fullWidth: {
|
|
6963
|
-
[vars$
|
|
7039
|
+
[vars$S.hostWidth]: '100%',
|
|
6964
7040
|
},
|
|
6965
7041
|
};
|
|
6966
7042
|
|
|
6967
7043
|
var timerButton$1 = /*#__PURE__*/Object.freeze({
|
|
6968
7044
|
__proto__: null,
|
|
6969
7045
|
default: timerButton,
|
|
6970
|
-
vars: vars$
|
|
7046
|
+
vars: vars$S
|
|
6971
7047
|
});
|
|
6972
7048
|
|
|
6973
|
-
const componentName$
|
|
7049
|
+
const componentName$11 = getComponentName('password-strength');
|
|
6974
7050
|
class RawPasswordStrength extends createBaseClass$1({
|
|
6975
|
-
componentName: componentName$
|
|
7051
|
+
componentName: componentName$11,
|
|
6976
7052
|
baseSelector: ':host > .wrapper',
|
|
6977
7053
|
}) {
|
|
6978
7054
|
static get observedAttributes() {
|
|
@@ -7163,22 +7239,22 @@ const passwordStrength = {
|
|
|
7163
7239
|
}
|
|
7164
7240
|
};
|
|
7165
7241
|
|
|
7166
|
-
const vars$
|
|
7242
|
+
const vars$R = {
|
|
7167
7243
|
...compVars$6,
|
|
7168
7244
|
};
|
|
7169
7245
|
|
|
7170
7246
|
var passwordStrength$1 = /*#__PURE__*/Object.freeze({
|
|
7171
7247
|
__proto__: null,
|
|
7172
7248
|
default: passwordStrength,
|
|
7173
|
-
vars: vars$
|
|
7249
|
+
vars: vars$R
|
|
7174
7250
|
});
|
|
7175
7251
|
|
|
7176
7252
|
var chevronIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNy4yMTkzIDkuMjcyODNDMTcuNjU4NCA4Ljg3OTEyIDE4LjMzMzQgOC45MTU4NyAxOC43MjcyIDkuMzU0OTJDMTkuMTIwOSA5Ljc5Mzk3IDE5LjA4NDEgMTAuNDY5MSAxOC42NDUxIDEwLjg2MjhDMTguNjQ1MSAxMC44NjI4IDEzLjA0NTcgMTYuMDAyMiAxMi42NCAxNi4zNjZDMTIuMjM0MyAxNi43Mjk4IDExLjc2MDggMTYuNzI5OCAxMS4zNTUyIDE2LjM2Nkw1LjM1NDkyIDEwLjg2MjhDNC45MTU4NyAxMC40NjkxIDQuODc5MTIgOS43OTM5NyA1LjI3MjgzIDkuMzU0OTJDNS42NjY1NSA4LjkxNTg3IDYuMzQxNjQgOC44NzkxMiA2Ljc4MDY5IDkuMjcyODNMMTIgMTQuMTM2OEwxNy4yMTkzIDkuMjcyODNaIi8+Cjwvc3ZnPgo=";
|
|
7177
7253
|
|
|
7178
|
-
const componentName
|
|
7254
|
+
const componentName$10 = getComponentName('collapsible-container');
|
|
7179
7255
|
|
|
7180
7256
|
class RawCollapsibleContainer extends createBaseClass$1({
|
|
7181
|
-
componentName: componentName
|
|
7257
|
+
componentName: componentName$10,
|
|
7182
7258
|
baseSelector: 'slot',
|
|
7183
7259
|
}) {
|
|
7184
7260
|
static get observedAttributes() {
|
|
@@ -7413,7 +7489,7 @@ const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars$1(
|
|
|
7413
7489
|
{
|
|
7414
7490
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
7415
7491
|
},
|
|
7416
|
-
componentName
|
|
7492
|
+
componentName$10
|
|
7417
7493
|
);
|
|
7418
7494
|
|
|
7419
7495
|
const { shadowColor: shadowColor$4 } = helperRefs$4;
|
|
@@ -7513,7 +7589,7 @@ const collapsibleContainer = {
|
|
|
7513
7589
|
}
|
|
7514
7590
|
};
|
|
7515
7591
|
|
|
7516
|
-
const vars$
|
|
7592
|
+
const vars$Q = {
|
|
7517
7593
|
...compVars$5,
|
|
7518
7594
|
...helperVars$4,
|
|
7519
7595
|
};
|
|
@@ -7521,10 +7597,10 @@ const vars$P = {
|
|
|
7521
7597
|
var collapsibleContainer$1 = /*#__PURE__*/Object.freeze({
|
|
7522
7598
|
__proto__: null,
|
|
7523
7599
|
default: collapsibleContainer,
|
|
7524
|
-
vars: vars$
|
|
7600
|
+
vars: vars$Q
|
|
7525
7601
|
});
|
|
7526
7602
|
|
|
7527
|
-
const componentName
|
|
7603
|
+
const componentName$$ = getComponentName('recovery-codes');
|
|
7528
7604
|
|
|
7529
7605
|
const itemRenderer$3 = ({ value }, _, ref) => {
|
|
7530
7606
|
return `
|
|
@@ -7535,7 +7611,7 @@ const itemRenderer$3 = ({ value }, _, ref) => {
|
|
|
7535
7611
|
};
|
|
7536
7612
|
|
|
7537
7613
|
class RawRecoveryCodes extends createBaseClass$1({
|
|
7538
|
-
componentName: componentName
|
|
7614
|
+
componentName: componentName$$,
|
|
7539
7615
|
baseSelector: ':host > div',
|
|
7540
7616
|
}) {
|
|
7541
7617
|
static get observedAttributes() {
|
|
@@ -7675,35 +7751,35 @@ const RecoveryCodesClass = compose(
|
|
|
7675
7751
|
)(RawRecoveryCodes);
|
|
7676
7752
|
|
|
7677
7753
|
const globalRefs$r = getThemeRefs$1(globals);
|
|
7678
|
-
const vars$
|
|
7754
|
+
const vars$P = RecoveryCodesClass.cssVarList;
|
|
7679
7755
|
const textVars$5 = TextClass.cssVarList;
|
|
7680
7756
|
|
|
7681
7757
|
const recoveryCodes = {
|
|
7682
|
-
[vars$
|
|
7683
|
-
[vars$
|
|
7684
|
-
[vars$
|
|
7685
|
-
[vars$
|
|
7686
|
-
[vars$
|
|
7687
|
-
[vars$
|
|
7758
|
+
[vars$P.hostMinWidth]: '190px',
|
|
7759
|
+
[vars$P.hostDirection]: globalRefs$r.direction,
|
|
7760
|
+
[vars$P.iconColor]: useVar$1(textVars$5.textColor),
|
|
7761
|
+
[vars$P.iconSize]: useVar$1(textVars$5.fontSize),
|
|
7762
|
+
[vars$P.iconGap]: '8px',
|
|
7763
|
+
[vars$P.bulletGap]: '0.35em',
|
|
7688
7764
|
|
|
7689
7765
|
textAlign: {
|
|
7690
|
-
right: { [vars$
|
|
7691
|
-
left: { [vars$
|
|
7692
|
-
center: { [vars$
|
|
7766
|
+
right: { [vars$P.textAlign]: 'flex-end' },
|
|
7767
|
+
left: { [vars$P.textAlign]: 'flex-start' },
|
|
7768
|
+
center: { [vars$P.textAlign]: 'center' },
|
|
7693
7769
|
},
|
|
7694
7770
|
|
|
7695
7771
|
_fullWidth: {
|
|
7696
|
-
[vars$
|
|
7772
|
+
[vars$P.hostWidth]: '100%',
|
|
7697
7773
|
},
|
|
7698
7774
|
};
|
|
7699
7775
|
|
|
7700
7776
|
var recoveryCodes$1 = /*#__PURE__*/Object.freeze({
|
|
7701
7777
|
__proto__: null,
|
|
7702
7778
|
default: recoveryCodes,
|
|
7703
|
-
vars: vars$
|
|
7779
|
+
vars: vars$P
|
|
7704
7780
|
});
|
|
7705
7781
|
|
|
7706
|
-
const componentName$
|
|
7782
|
+
const componentName$_ = getComponentName('outbound-apps');
|
|
7707
7783
|
|
|
7708
7784
|
const itemRenderer$2 = (
|
|
7709
7785
|
{ name, description, logo, appId, isConnected },
|
|
@@ -7749,7 +7825,7 @@ const itemRenderer$2 = (
|
|
|
7749
7825
|
};
|
|
7750
7826
|
|
|
7751
7827
|
const BaseClass$5 = createBaseClass$1({
|
|
7752
|
-
componentName: componentName$
|
|
7828
|
+
componentName: componentName$_,
|
|
7753
7829
|
baseSelector: 'descope-list',
|
|
7754
7830
|
});
|
|
7755
7831
|
|
|
@@ -7925,36 +8001,36 @@ const OutboundAppsClass = compose(
|
|
|
7925
8001
|
componentNameValidationMixin$1,
|
|
7926
8002
|
)(RawOutboundAppsClass);
|
|
7927
8003
|
|
|
7928
|
-
const vars$
|
|
8004
|
+
const vars$O = OutboundAppsClass.cssVarList;
|
|
7929
8005
|
|
|
7930
8006
|
const outboundApps = {
|
|
7931
|
-
[vars$
|
|
7932
|
-
[vars$
|
|
8007
|
+
[vars$O.iconColor]: globals.colors.primary.main,
|
|
8008
|
+
[vars$O.errorIconColor]: globals.colors.error.main,
|
|
7933
8009
|
|
|
7934
|
-
[vars$
|
|
7935
|
-
[vars$
|
|
8010
|
+
[vars$O.appLogoGap]: globals.spacing.md,
|
|
8011
|
+
[vars$O.contentGap]: globals.spacing.xs,
|
|
7936
8012
|
|
|
7937
8013
|
// list-item overrides
|
|
7938
|
-
[vars$
|
|
7939
|
-
[vars$
|
|
7940
|
-
[vars$
|
|
8014
|
+
[vars$O.itemCursor]: 'default',
|
|
8015
|
+
[vars$O.itemOutline]: 'none',
|
|
8016
|
+
[vars$O.itemBorderColor]: 'transparent',
|
|
7941
8017
|
|
|
7942
|
-
[vars$
|
|
7943
|
-
[vars$
|
|
7944
|
-
[vars$
|
|
8018
|
+
[vars$O.listPadding]: '0',
|
|
8019
|
+
[vars$O.listBorderWidth]: '0',
|
|
8020
|
+
[vars$O.listBoxShadow]: 'none',
|
|
7945
8021
|
|
|
7946
8022
|
size: {
|
|
7947
8023
|
xs: {
|
|
7948
|
-
[vars$
|
|
8024
|
+
[vars$O.fontSize]: '0.6em',
|
|
7949
8025
|
},
|
|
7950
8026
|
sm: {
|
|
7951
|
-
[vars$
|
|
8027
|
+
[vars$O.fontSize]: '0.8em',
|
|
7952
8028
|
},
|
|
7953
8029
|
md: {
|
|
7954
|
-
[vars$
|
|
8030
|
+
[vars$O.fontSize]: '1em',
|
|
7955
8031
|
},
|
|
7956
8032
|
lg: {
|
|
7957
|
-
[vars$
|
|
8033
|
+
[vars$O.fontSize]: '1.5em',
|
|
7958
8034
|
},
|
|
7959
8035
|
},
|
|
7960
8036
|
};
|
|
@@ -7962,13 +8038,13 @@ const outboundApps = {
|
|
|
7962
8038
|
var outboundApps$1 = /*#__PURE__*/Object.freeze({
|
|
7963
8039
|
__proto__: null,
|
|
7964
8040
|
default: outboundApps,
|
|
7965
|
-
vars: vars$
|
|
8041
|
+
vars: vars$O
|
|
7966
8042
|
});
|
|
7967
8043
|
|
|
7968
|
-
const componentName$
|
|
8044
|
+
const componentName$Z = getComponentName('outbound-app-button');
|
|
7969
8045
|
|
|
7970
8046
|
class RawOutboundAppButton extends createBaseClass$1({
|
|
7971
|
-
componentName: componentName$
|
|
8047
|
+
componentName: componentName$Z,
|
|
7972
8048
|
baseSelector: ':host > descope-button',
|
|
7973
8049
|
}) {
|
|
7974
8050
|
static get observedAttributes() {
|
|
@@ -8067,12 +8143,12 @@ const outboundAppButton = {
|
|
|
8067
8143
|
},
|
|
8068
8144
|
};
|
|
8069
8145
|
|
|
8070
|
-
const vars$
|
|
8146
|
+
const vars$N = compVars$4;
|
|
8071
8147
|
|
|
8072
8148
|
var outboundAppButton$1 = /*#__PURE__*/Object.freeze({
|
|
8073
8149
|
__proto__: null,
|
|
8074
8150
|
default: outboundAppButton,
|
|
8075
|
-
vars: vars$
|
|
8151
|
+
vars: vars$N
|
|
8076
8152
|
});
|
|
8077
8153
|
|
|
8078
8154
|
var desktopDeviceIconLight = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==";
|
|
@@ -8150,7 +8226,7 @@ const getDeviceIcon = (deviceType) => {
|
|
|
8150
8226
|
};
|
|
8151
8227
|
};
|
|
8152
8228
|
|
|
8153
|
-
const componentName$
|
|
8229
|
+
const componentName$Y = getComponentName('trusted-devices');
|
|
8154
8230
|
|
|
8155
8231
|
const itemRenderer$1 = (
|
|
8156
8232
|
{ id, name, lastLoginDate, deviceType, isCurrent },
|
|
@@ -8239,7 +8315,7 @@ const itemRenderer$1 = (
|
|
|
8239
8315
|
};
|
|
8240
8316
|
|
|
8241
8317
|
const BaseClass$4 = createBaseClass$1({
|
|
8242
|
-
componentName: componentName$
|
|
8318
|
+
componentName: componentName$Y,
|
|
8243
8319
|
baseSelector: ListClass.componentName,
|
|
8244
8320
|
});
|
|
8245
8321
|
|
|
@@ -8529,51 +8605,51 @@ const TrustedDevicesClass = compose(
|
|
|
8529
8605
|
componentNameValidationMixin$1,
|
|
8530
8606
|
)(RawTrustedDevicesClass);
|
|
8531
8607
|
|
|
8532
|
-
const vars$
|
|
8608
|
+
const vars$M = TrustedDevicesClass.cssVarList;
|
|
8533
8609
|
|
|
8534
8610
|
const TrustedDevices = {
|
|
8535
|
-
[vars$
|
|
8536
|
-
[vars$
|
|
8537
|
-
[vars$
|
|
8538
|
-
|
|
8539
|
-
[vars$
|
|
8540
|
-
[vars$
|
|
8541
|
-
[vars$
|
|
8542
|
-
[vars$
|
|
8543
|
-
[vars$
|
|
8544
|
-
[vars$
|
|
8545
|
-
|
|
8546
|
-
[vars$
|
|
8547
|
-
[vars$
|
|
8548
|
-
[vars$
|
|
8549
|
-
[vars$
|
|
8550
|
-
[vars$
|
|
8551
|
-
[vars$
|
|
8552
|
-
[vars$
|
|
8553
|
-
[vars$
|
|
8554
|
-
|
|
8555
|
-
[vars$
|
|
8556
|
-
[vars$
|
|
8557
|
-
[vars$
|
|
8558
|
-
[vars$
|
|
8559
|
-
|
|
8560
|
-
[vars$
|
|
8561
|
-
[vars$
|
|
8562
|
-
[vars$
|
|
8563
|
-
[vars$
|
|
8611
|
+
[vars$M.hostWidth]: 'auto',
|
|
8612
|
+
[vars$M.hostWidth]: '300px',
|
|
8613
|
+
[vars$M.hostMinWidth]: '300px',
|
|
8614
|
+
|
|
8615
|
+
[vars$M.listBackgroundColor]: 'transparent',
|
|
8616
|
+
[vars$M.listBorderRadius]: '0',
|
|
8617
|
+
[vars$M.listBorderWidth]: '0',
|
|
8618
|
+
[vars$M.listPadding]: '0',
|
|
8619
|
+
[vars$M.listBoxShadow]: 'none',
|
|
8620
|
+
[vars$M.listItemsGap]: globals.spacing.lg,
|
|
8621
|
+
|
|
8622
|
+
[vars$M.itemBorderColor]: globals.colors.surface.light,
|
|
8623
|
+
[vars$M.itemVerticalPadding]: globals.spacing.lg,
|
|
8624
|
+
[vars$M.itemHorizontalPadding]: globals.spacing.lg,
|
|
8625
|
+
[vars$M.itemBorderRadius]: globals.radius.xs,
|
|
8626
|
+
[vars$M.itemOutline]: 'transparent',
|
|
8627
|
+
[vars$M.itemBackgroundColor]: 'transparent',
|
|
8628
|
+
[vars$M.itemCursor]: 'default',
|
|
8629
|
+
[vars$M.itemContentGap]: globals.spacing.sm,
|
|
8630
|
+
|
|
8631
|
+
[vars$M.badgeBorderColor]: globals.colors.surface.light,
|
|
8632
|
+
[vars$M.badgeTextColor]: globals.colors.surface.dark,
|
|
8633
|
+
[vars$M.badgeBorderRadius]: globals.radius.xs,
|
|
8634
|
+
[vars$M.badgeBackgroundColor]: globals.colors.surface.main,
|
|
8635
|
+
|
|
8636
|
+
[vars$M.devicePanelGap]: globals.spacing.md,
|
|
8637
|
+
[vars$M.deviceIconGap]: globals.spacing.md,
|
|
8638
|
+
[vars$M.deviceIconSize]: '24px',
|
|
8639
|
+
[vars$M.lastLoginLabelGap]: globals.spacing.xs,
|
|
8564
8640
|
|
|
8565
8641
|
_fullWidth: {
|
|
8566
|
-
[vars$
|
|
8642
|
+
[vars$M.hostWidth]: '100%',
|
|
8567
8643
|
},
|
|
8568
8644
|
};
|
|
8569
8645
|
|
|
8570
8646
|
var trustedDevices = /*#__PURE__*/Object.freeze({
|
|
8571
8647
|
__proto__: null,
|
|
8572
8648
|
default: TrustedDevices,
|
|
8573
|
-
vars: vars$
|
|
8649
|
+
vars: vars$M
|
|
8574
8650
|
});
|
|
8575
8651
|
|
|
8576
|
-
const componentName$
|
|
8652
|
+
const componentName$X = getComponentName('tooltip');
|
|
8577
8653
|
|
|
8578
8654
|
const tooltipAttrs = [
|
|
8579
8655
|
'text',
|
|
@@ -8584,7 +8660,7 @@ const tooltipAttrs = [
|
|
|
8584
8660
|
];
|
|
8585
8661
|
|
|
8586
8662
|
const BaseClass$3 = createBaseClass$1({
|
|
8587
|
-
componentName: componentName$
|
|
8663
|
+
componentName: componentName$X,
|
|
8588
8664
|
baseSelector: 'vaadin-tooltip',
|
|
8589
8665
|
});
|
|
8590
8666
|
|
|
@@ -8649,7 +8725,7 @@ class RawTooltip extends BaseClass$3 {
|
|
|
8649
8725
|
this.tooltip.style.overflow = 'hidden';
|
|
8650
8726
|
this.tooltip.style.position = 'absolute';
|
|
8651
8727
|
}
|
|
8652
|
-
|
|
8728
|
+
|
|
8653
8729
|
#revealWrappedParts() {
|
|
8654
8730
|
this.tooltip.style.width = '100%';
|
|
8655
8731
|
this.tooltip.style.height = '100%';
|
|
@@ -8674,9 +8750,7 @@ class RawTooltip extends BaseClass$3 {
|
|
|
8674
8750
|
#setTooltipTarget() {
|
|
8675
8751
|
if (!this.children?.length) return;
|
|
8676
8752
|
|
|
8677
|
-
let ele = Array.from(this.children).find(
|
|
8678
|
-
(child) => child !== this.tooltip,
|
|
8679
|
-
);
|
|
8753
|
+
let ele = Array.from(this.children).find((child) => child !== this.tooltip);
|
|
8680
8754
|
|
|
8681
8755
|
if (!ele) return;
|
|
8682
8756
|
|
|
@@ -8696,6 +8770,10 @@ class RawTooltip extends BaseClass$3 {
|
|
|
8696
8770
|
return enrichedText;
|
|
8697
8771
|
}
|
|
8698
8772
|
|
|
8773
|
+
get srLabel() {
|
|
8774
|
+
return this.tooltip?.querySelector('[slot="sr-label"]');
|
|
8775
|
+
}
|
|
8776
|
+
|
|
8699
8777
|
#initTooltipTextComponent() {
|
|
8700
8778
|
if (!this.overlayContentNode) return;
|
|
8701
8779
|
|
|
@@ -8706,6 +8784,12 @@ class RawTooltip extends BaseClass$3 {
|
|
|
8706
8784
|
|
|
8707
8785
|
this.overlayContentNode.appendChild(this.textComponent);
|
|
8708
8786
|
|
|
8787
|
+
// An empty sr-label with role="tooltip" fails accessibility checks.
|
|
8788
|
+
// Hide it when there's no tooltip text; vaadin handles populating it when text is present.
|
|
8789
|
+
if (this.srLabel && !this.tooltipText) {
|
|
8790
|
+
this.srLabel.setAttribute('aria-hidden', 'true');
|
|
8791
|
+
}
|
|
8792
|
+
|
|
8709
8793
|
forwardAttrs(this, this.textComponent, {
|
|
8710
8794
|
includeAttrs: ['readonly'],
|
|
8711
8795
|
});
|
|
@@ -8741,7 +8825,15 @@ class RawTooltip extends BaseClass$3 {
|
|
|
8741
8825
|
|
|
8742
8826
|
#updateText(value) {
|
|
8743
8827
|
if (!this.textComponent) return;
|
|
8744
|
-
|
|
8828
|
+
const trimmedValue = (value ?? '').trim();
|
|
8829
|
+
this.textComponent.textContent = trimmedValue;
|
|
8830
|
+
if (this.srLabel) {
|
|
8831
|
+
if (trimmedValue) {
|
|
8832
|
+
this.srLabel.removeAttribute('aria-hidden');
|
|
8833
|
+
} else {
|
|
8834
|
+
this.srLabel.setAttribute('aria-hidden', 'true');
|
|
8835
|
+
}
|
|
8836
|
+
}
|
|
8745
8837
|
}
|
|
8746
8838
|
|
|
8747
8839
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
@@ -8753,7 +8845,7 @@ class RawTooltip extends BaseClass$3 {
|
|
|
8753
8845
|
}
|
|
8754
8846
|
|
|
8755
8847
|
if (attrName === 'opened') {
|
|
8756
|
-
this.#handleTooltipVisibility(
|
|
8848
|
+
this.#handleTooltipVisibility();
|
|
8757
8849
|
}
|
|
8758
8850
|
}
|
|
8759
8851
|
}
|
|
@@ -8817,13 +8909,13 @@ const TooltipClass = compose(
|
|
|
8817
8909
|
)(RawTooltip);
|
|
8818
8910
|
|
|
8819
8911
|
const globalRefs$q = getThemeRefs$1(globals);
|
|
8820
|
-
const vars$
|
|
8912
|
+
const vars$L = TooltipClass.cssVarList;
|
|
8821
8913
|
|
|
8822
8914
|
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars$1(
|
|
8823
8915
|
{
|
|
8824
8916
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
8825
8917
|
},
|
|
8826
|
-
componentName$
|
|
8918
|
+
componentName$X
|
|
8827
8919
|
);
|
|
8828
8920
|
|
|
8829
8921
|
const { shadowColor: shadowColor$3 } = helperRefs$3;
|
|
@@ -8831,36 +8923,36 @@ const defaultShadow = `${globalRefs$q.shadow.wide.sm} ${shadowColor$3}, ${global
|
|
|
8831
8923
|
|
|
8832
8924
|
const tooltip = {
|
|
8833
8925
|
...helperTheme$3,
|
|
8834
|
-
[vars$
|
|
8835
|
-
[vars$
|
|
8836
|
-
[vars$
|
|
8837
|
-
[vars$
|
|
8838
|
-
[vars$
|
|
8839
|
-
[vars$
|
|
8840
|
-
[vars$
|
|
8841
|
-
[vars$
|
|
8842
|
-
[vars$
|
|
8843
|
-
[vars$
|
|
8844
|
-
[vars$
|
|
8845
|
-
[vars$
|
|
8846
|
-
[vars$
|
|
8926
|
+
[vars$L.fontFamily]: globalRefs$q.fonts.font1.family,
|
|
8927
|
+
[vars$L.fontSize]: globals.typography.body2.size,
|
|
8928
|
+
[vars$L.fontWeight]: globals.typography.body2.weight,
|
|
8929
|
+
[vars$L.textColor]: globalRefs$q.colors.surface.contrast,
|
|
8930
|
+
[vars$L.hostDirection]: globalRefs$q.direction,
|
|
8931
|
+
[vars$L.backgroundColor]: globalRefs$q.colors.surface.main,
|
|
8932
|
+
[vars$L.borderColor]: globalRefs$q.colors.surface.light,
|
|
8933
|
+
[vars$L.borderStyle]: 'solid',
|
|
8934
|
+
[vars$L.borderWidth]: globalRefs$q.border.xs,
|
|
8935
|
+
[vars$L.borderRadius]: globalRefs$q.radius.xs,
|
|
8936
|
+
[vars$L.horizontalPadding]: globalRefs$q.spacing.md,
|
|
8937
|
+
[vars$L.verticalPadding]: globalRefs$q.spacing.sm,
|
|
8938
|
+
[vars$L.boxShadow]: defaultShadow,
|
|
8847
8939
|
|
|
8848
8940
|
shadow: {
|
|
8849
8941
|
sm: {
|
|
8850
|
-
[vars$
|
|
8942
|
+
[vars$L.boxShadow]: defaultShadow,
|
|
8851
8943
|
},
|
|
8852
8944
|
md: {
|
|
8853
|
-
[vars$
|
|
8945
|
+
[vars$L.boxShadow]: `${globalRefs$q.shadow.wide.md} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.md} ${shadowColor$3}`,
|
|
8854
8946
|
},
|
|
8855
8947
|
lg: {
|
|
8856
|
-
[vars$
|
|
8948
|
+
[vars$L.boxShadow]: `${globalRefs$q.shadow.wide.lg} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.lg} ${shadowColor$3}`,
|
|
8857
8949
|
},
|
|
8858
8950
|
xl: {
|
|
8859
|
-
[vars$
|
|
8951
|
+
[vars$L.boxShadow]: `${globalRefs$q.shadow.wide.xl} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.xl} ${shadowColor$3}`,
|
|
8860
8952
|
},
|
|
8861
8953
|
'2xl': {
|
|
8862
8954
|
[helperVars$3.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
8863
|
-
[vars$
|
|
8955
|
+
[vars$L.boxShadow]: `${globalRefs$q.shadow.wide['2xl']} ${shadowColor$3}`,
|
|
8864
8956
|
},
|
|
8865
8957
|
},
|
|
8866
8958
|
};
|
|
@@ -8868,7 +8960,7 @@ const tooltip = {
|
|
|
8868
8960
|
var tooltip$1 = /*#__PURE__*/Object.freeze({
|
|
8869
8961
|
__proto__: null,
|
|
8870
8962
|
default: tooltip,
|
|
8871
|
-
vars: vars$
|
|
8963
|
+
vars: vars$L
|
|
8872
8964
|
});
|
|
8873
8965
|
|
|
8874
8966
|
// Data service for country/subdivision/city data.
|
|
@@ -8921,7 +9013,7 @@ const fetchLabels = async (baseUrl) => {
|
|
|
8921
9013
|
const fetchCitiesForCountry = async (countryIso2, baseUrl) =>
|
|
8922
9014
|
fetchJson(`${baseUrl}/countries/${countryIso2}/cities.json`);
|
|
8923
9015
|
|
|
8924
|
-
const componentName$
|
|
9016
|
+
const componentName$W = getComponentName(
|
|
8925
9017
|
'country-subdivision-city-field-internal',
|
|
8926
9018
|
);
|
|
8927
9019
|
|
|
@@ -8981,7 +9073,7 @@ const comboBoxHTML = (id) =>
|
|
|
8981
9073
|
// --- Base class ---
|
|
8982
9074
|
|
|
8983
9075
|
const BaseInputClass$4 = createBaseInputClass$1({
|
|
8984
|
-
componentName: componentName$
|
|
9076
|
+
componentName: componentName$W,
|
|
8985
9077
|
baseSelector: '',
|
|
8986
9078
|
});
|
|
8987
9079
|
|
|
@@ -9157,7 +9249,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
|
|
|
9157
9249
|
if (e.isTrusted) {
|
|
9158
9250
|
const firstInvalidCombo = this.#allCombos.find(
|
|
9159
9251
|
(combo) =>
|
|
9160
|
-
!combo.classList.contains(`${componentName$
|
|
9252
|
+
!combo.classList.contains(`${componentName$W}-hidden`) &&
|
|
9161
9253
|
!combo.checkValidity(),
|
|
9162
9254
|
);
|
|
9163
9255
|
(firstInvalidCombo || this.#getFirstVisibleCombo())?.focus();
|
|
@@ -9254,7 +9346,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
|
|
|
9254
9346
|
// Iterate in reverse so reportValidity's focus() lands on the first invalid combo last.
|
|
9255
9347
|
#handleInvalidCombos() {
|
|
9256
9348
|
for (const combo of [...this.#allCombos].reverse()) {
|
|
9257
|
-
if (combo.classList.contains(`${componentName$
|
|
9349
|
+
if (combo.classList.contains(`${componentName$W}-hidden`)) continue;
|
|
9258
9350
|
if (!combo.checkValidity()) combo.reportValidity();
|
|
9259
9351
|
}
|
|
9260
9352
|
}
|
|
@@ -9527,7 +9619,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
|
|
|
9527
9619
|
if (!this.#pendingValue && this.#defaultCountry)
|
|
9528
9620
|
this.#onCountrySelected(this.#defaultCountry);
|
|
9529
9621
|
} catch (e) {
|
|
9530
|
-
console.error(`[${componentName$
|
|
9622
|
+
console.error(`[${componentName$W}] Failed to load countries`, e);
|
|
9531
9623
|
} finally {
|
|
9532
9624
|
this.#countryComboBox.removeAttribute('loading');
|
|
9533
9625
|
}
|
|
@@ -9552,7 +9644,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
|
|
|
9552
9644
|
}
|
|
9553
9645
|
} catch (e) {
|
|
9554
9646
|
console.error(
|
|
9555
|
-
`[${componentName$
|
|
9647
|
+
`[${componentName$W}] Failed to load subdivisions for ${countryIso2}`,
|
|
9556
9648
|
e,
|
|
9557
9649
|
);
|
|
9558
9650
|
this.#subdivisionVisible = false;
|
|
@@ -9580,7 +9672,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
|
|
|
9580
9672
|
}
|
|
9581
9673
|
} catch (e) {
|
|
9582
9674
|
console.error(
|
|
9583
|
-
`[${componentName$
|
|
9675
|
+
`[${componentName$W}] Failed to load cities for ${countryIso2}${stateCode ? `/${stateCode}` : ''}`,
|
|
9584
9676
|
e,
|
|
9585
9677
|
);
|
|
9586
9678
|
} finally {
|
|
@@ -9672,7 +9764,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
|
|
|
9672
9764
|
}
|
|
9673
9765
|
|
|
9674
9766
|
#setVisible(el, visible) {
|
|
9675
|
-
el?.classList.toggle(`${componentName$
|
|
9767
|
+
el?.classList.toggle(`${componentName$W}-hidden`, !visible);
|
|
9676
9768
|
}
|
|
9677
9769
|
|
|
9678
9770
|
#updateRequiredOnCombos() {
|
|
@@ -9742,7 +9834,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
|
|
|
9742
9834
|
|
|
9743
9835
|
#getFirstVisibleCombo() {
|
|
9744
9836
|
return this.#allCombos.find(
|
|
9745
|
-
(combo) => !combo.classList.contains(`${componentName$
|
|
9837
|
+
(combo) => !combo.classList.contains(`${componentName$W}-hidden`),
|
|
9746
9838
|
);
|
|
9747
9839
|
}
|
|
9748
9840
|
|
|
@@ -9759,7 +9851,7 @@ compose()(
|
|
|
9759
9851
|
RawCountrySubdivisionCityFieldInternal,
|
|
9760
9852
|
);
|
|
9761
9853
|
|
|
9762
|
-
const componentName$
|
|
9854
|
+
const componentName$V = getComponentName('country-subdivision-city-field');
|
|
9763
9855
|
|
|
9764
9856
|
const customMixin$b = (superclass) =>
|
|
9765
9857
|
class CountrySubdivisionCityFieldMixinClass extends superclass {
|
|
@@ -9769,15 +9861,15 @@ const customMixin$b = (superclass) =>
|
|
|
9769
9861
|
const template = document.createElement('template');
|
|
9770
9862
|
|
|
9771
9863
|
template.innerHTML = `
|
|
9772
|
-
<${componentName$
|
|
9864
|
+
<${componentName$W}
|
|
9773
9865
|
tabindex="-1"
|
|
9774
|
-
></${componentName$
|
|
9866
|
+
></${componentName$W}>
|
|
9775
9867
|
`;
|
|
9776
9868
|
|
|
9777
9869
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
9778
9870
|
|
|
9779
9871
|
this.inputElement = this.shadowRoot.querySelector(
|
|
9780
|
-
componentName$
|
|
9872
|
+
componentName$W,
|
|
9781
9873
|
);
|
|
9782
9874
|
|
|
9783
9875
|
forwardAttrs(this, this.inputElement, {
|
|
@@ -9814,11 +9906,11 @@ const customMixin$b = (superclass) =>
|
|
|
9814
9906
|
const host$l = { selector: () => ':host' };
|
|
9815
9907
|
|
|
9816
9908
|
const internalWrapper$2 = {
|
|
9817
|
-
selector: `${componentName$
|
|
9909
|
+
selector: `${componentName$W} > .wrapper`,
|
|
9818
9910
|
};
|
|
9819
9911
|
|
|
9820
9912
|
const internalComboBoxes = {
|
|
9821
|
-
selector: `${componentName$
|
|
9913
|
+
selector: `${componentName$W} > .wrapper > descope-combo-box`,
|
|
9822
9914
|
};
|
|
9823
9915
|
|
|
9824
9916
|
const CountrySubdivisionCityFieldClass = compose(
|
|
@@ -9868,7 +9960,7 @@ const CountrySubdivisionCityFieldClass = compose(
|
|
|
9868
9960
|
width: 100%;
|
|
9869
9961
|
}
|
|
9870
9962
|
|
|
9871
|
-
${componentName$
|
|
9963
|
+
${componentName$W} {
|
|
9872
9964
|
display: inline-block;
|
|
9873
9965
|
box-sizing: border-box;
|
|
9874
9966
|
user-select: none;
|
|
@@ -9876,47 +9968,241 @@ const CountrySubdivisionCityFieldClass = compose(
|
|
|
9876
9968
|
max-width: 100%;
|
|
9877
9969
|
}
|
|
9878
9970
|
|
|
9879
|
-
${componentName$
|
|
9971
|
+
${componentName$W} > .wrapper {
|
|
9880
9972
|
display: flex;
|
|
9881
9973
|
width: 100%;
|
|
9882
9974
|
flex-wrap: wrap;
|
|
9883
9975
|
}
|
|
9884
9976
|
|
|
9885
|
-
.${componentName$
|
|
9977
|
+
.${componentName$W}-hidden {
|
|
9886
9978
|
display: none;
|
|
9887
9979
|
}
|
|
9888
9980
|
|
|
9889
9981
|
`,
|
|
9890
9982
|
excludeAttrsSync: ['tabindex', 'style', 'error-message'],
|
|
9891
|
-
componentName: componentName$
|
|
9983
|
+
componentName: componentName$V,
|
|
9892
9984
|
}),
|
|
9893
9985
|
);
|
|
9894
9986
|
|
|
9895
|
-
const vars$
|
|
9987
|
+
const vars$K = CountrySubdivisionCityFieldClass.cssVarList;
|
|
9896
9988
|
|
|
9897
9989
|
const countrySubdivisionCityField = {
|
|
9898
|
-
[vars$
|
|
9899
|
-
[vars$
|
|
9900
|
-
[vars$
|
|
9901
|
-
[vars$
|
|
9902
|
-
[vars$
|
|
9903
|
-
[vars$
|
|
9904
|
-
[vars$
|
|
9990
|
+
[vars$K.hostWidth]: refs$1.width,
|
|
9991
|
+
[vars$K.hostDirection]: refs$1.direction,
|
|
9992
|
+
[vars$K.flexDirection]: 'column',
|
|
9993
|
+
[vars$K.flexGap]: '0.5em',
|
|
9994
|
+
[vars$K.itemAlignment]: 'stretch',
|
|
9995
|
+
[vars$K.itemFlexGrow]: '0',
|
|
9996
|
+
[vars$K.itemWidth]: 'auto',
|
|
9905
9997
|
|
|
9906
9998
|
_fullWidth: {
|
|
9907
|
-
[vars$
|
|
9999
|
+
[vars$K.hostWidth]: '100%',
|
|
9908
10000
|
},
|
|
9909
10001
|
|
|
9910
10002
|
_horizontal: {
|
|
9911
|
-
[vars$
|
|
9912
|
-
[vars$
|
|
10003
|
+
[vars$K.flexDirection]: 'row',
|
|
10004
|
+
[vars$K.itemFlexGrow]: '1',
|
|
9913
10005
|
},
|
|
9914
10006
|
};
|
|
9915
10007
|
|
|
9916
10008
|
var countrySubdivisionCityField$1 = /*#__PURE__*/Object.freeze({
|
|
9917
10009
|
__proto__: null,
|
|
9918
10010
|
default: countrySubdivisionCityField,
|
|
9919
|
-
vars: vars$
|
|
10011
|
+
vars: vars$K
|
|
10012
|
+
});
|
|
10013
|
+
|
|
10014
|
+
const componentName$U = getComponentName('attachment');
|
|
10015
|
+
|
|
10016
|
+
const ATTACHMENT_POSITIONS = [
|
|
10017
|
+
'top-end',
|
|
10018
|
+
'top-start',
|
|
10019
|
+
'top-center',
|
|
10020
|
+
'bottom-start',
|
|
10021
|
+
'bottom-end',
|
|
10022
|
+
'bottom-center',
|
|
10023
|
+
];
|
|
10024
|
+
|
|
10025
|
+
const DEFAULT_POSITION = ATTACHMENT_POSITIONS[0];
|
|
10026
|
+
|
|
10027
|
+
class RawAttachment extends createBaseClass$1({
|
|
10028
|
+
componentName: componentName$U,
|
|
10029
|
+
baseSelector: ':host > .wrapper',
|
|
10030
|
+
}) {
|
|
10031
|
+
constructor() {
|
|
10032
|
+
super();
|
|
10033
|
+
|
|
10034
|
+
this.attachShadow({ mode: 'open' }).innerHTML = `
|
|
10035
|
+
<div class="wrapper">
|
|
10036
|
+
<slot></slot>
|
|
10037
|
+
<div class="attachment-container">
|
|
10038
|
+
<slot name="attachment"></slot>
|
|
10039
|
+
</div>
|
|
10040
|
+
</div>
|
|
10041
|
+
`;
|
|
10042
|
+
|
|
10043
|
+
this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
|
|
10044
|
+
this.attachmentSlot = this.shadowRoot.querySelector(
|
|
10045
|
+
'slot[name="attachment"]',
|
|
10046
|
+
);
|
|
10047
|
+
}
|
|
10048
|
+
|
|
10049
|
+
static get observedAttributes() {
|
|
10050
|
+
return [...(super.observedAttributes || []), 'position'];
|
|
10051
|
+
}
|
|
10052
|
+
|
|
10053
|
+
attributeChangedCallback(name, oldVal, newVal) {
|
|
10054
|
+
super.attributeChangedCallback?.(name, oldVal, newVal);
|
|
10055
|
+
if (name === 'position' && oldVal !== newVal) {
|
|
10056
|
+
this.#handlePositionChange();
|
|
10057
|
+
}
|
|
10058
|
+
}
|
|
10059
|
+
|
|
10060
|
+
init() {
|
|
10061
|
+
super.init?.();
|
|
10062
|
+
|
|
10063
|
+
injectStyle(
|
|
10064
|
+
`
|
|
10065
|
+
:host {
|
|
10066
|
+
display: inline-block;
|
|
10067
|
+
}
|
|
10068
|
+
.wrapper {
|
|
10069
|
+
position: relative;
|
|
10070
|
+
display: inline-flex;
|
|
10071
|
+
}
|
|
10072
|
+
.attachment-container {
|
|
10073
|
+
position: absolute;
|
|
10074
|
+
z-index: 1;
|
|
10075
|
+
pointer-events: none;
|
|
10076
|
+
width: 100%;
|
|
10077
|
+
display: flex;
|
|
10078
|
+
align-items: center;
|
|
10079
|
+
container-type: inline-size;
|
|
10080
|
+
}
|
|
10081
|
+
:host(.hidden) {
|
|
10082
|
+
display: none;
|
|
10083
|
+
}
|
|
10084
|
+
`,
|
|
10085
|
+
this,
|
|
10086
|
+
);
|
|
10087
|
+
|
|
10088
|
+
this.#handlePositionChange();
|
|
10089
|
+
|
|
10090
|
+
this.defaultSlot.addEventListener('slotchange', () => {
|
|
10091
|
+
this.#setVisibility();
|
|
10092
|
+
this.#syncDirection();
|
|
10093
|
+
});
|
|
10094
|
+
|
|
10095
|
+
window.requestAnimationFrame(() => {
|
|
10096
|
+
this.#setVisibility();
|
|
10097
|
+
this.#syncDirection();
|
|
10098
|
+
});
|
|
10099
|
+
}
|
|
10100
|
+
|
|
10101
|
+
#setVisibility() {
|
|
10102
|
+
const hasAnchor = this.defaultSlot?.assignedElements()?.length > 0;
|
|
10103
|
+
this.classList.toggle('hidden', !hasAnchor);
|
|
10104
|
+
}
|
|
10105
|
+
|
|
10106
|
+
#syncDirection() {
|
|
10107
|
+
const child = this.defaultSlot?.assignedElements()?.[0];
|
|
10108
|
+
if (!child) return;
|
|
10109
|
+
|
|
10110
|
+
const { direction } = window.getComputedStyle(child);
|
|
10111
|
+
|
|
10112
|
+
// currently we support direction sync only for web-components-ui
|
|
10113
|
+
// elements, which support st-host-direction attribute.
|
|
10114
|
+
this.attachmentSlot?.assignedElements().forEach((el) => {
|
|
10115
|
+
el.setAttribute('st-host-direction', direction);
|
|
10116
|
+
});
|
|
10117
|
+
}
|
|
10118
|
+
|
|
10119
|
+
get offsetX() {
|
|
10120
|
+
return this.getAttribute('offset-x') || '0px';
|
|
10121
|
+
}
|
|
10122
|
+
|
|
10123
|
+
get offsetY() {
|
|
10124
|
+
return this.getAttribute('offset-y') || '0px';
|
|
10125
|
+
}
|
|
10126
|
+
|
|
10127
|
+
#handlePositionChange() {
|
|
10128
|
+
const pos = this.getAttribute('position');
|
|
10129
|
+
if (!ATTACHMENT_POSITIONS.includes(pos)) {
|
|
10130
|
+
this.setAttribute('position', DEFAULT_POSITION);
|
|
10131
|
+
}
|
|
10132
|
+
}
|
|
10133
|
+
}
|
|
10134
|
+
|
|
10135
|
+
const attachmentContainer = { selector: () => '.attachment-container' };
|
|
10136
|
+
|
|
10137
|
+
const AttachmentClass = compose(
|
|
10138
|
+
createStyleMixin$1({
|
|
10139
|
+
mappings: {
|
|
10140
|
+
transform: { ...attachmentContainer },
|
|
10141
|
+
justifyContent: { ...attachmentContainer },
|
|
10142
|
+
maxWidth: { ...attachmentContainer },
|
|
10143
|
+
top: { ...attachmentContainer },
|
|
10144
|
+
bottom: { ...attachmentContainer },
|
|
10145
|
+
left: { ...attachmentContainer },
|
|
10146
|
+
right: { ...attachmentContainer },
|
|
10147
|
+
offsetX: {},
|
|
10148
|
+
offsetY: {},
|
|
10149
|
+
},
|
|
10150
|
+
}),
|
|
10151
|
+
draggableMixin$1,
|
|
10152
|
+
componentNameValidationMixin$1,
|
|
10153
|
+
)(RawAttachment);
|
|
10154
|
+
|
|
10155
|
+
const vars$J = AttachmentClass.cssVarList;
|
|
10156
|
+
|
|
10157
|
+
const defaultOffset = '8px';
|
|
10158
|
+
const insetCalc = `calc(${defaultOffset} + var(${vars$J.offsetX}))`;
|
|
10159
|
+
|
|
10160
|
+
const attachment = {
|
|
10161
|
+
[vars$J.maxWidth]: `calc(100% - 2 * ${defaultOffset})`,
|
|
10162
|
+
|
|
10163
|
+
position: {
|
|
10164
|
+
'top-start': {
|
|
10165
|
+
[vars$J.transform]: 'translateY(-50%)',
|
|
10166
|
+
[vars$J.justifyContent]: 'start',
|
|
10167
|
+
[vars$J.left]: insetCalc,
|
|
10168
|
+
[vars$J.top]: useVar$1(vars$J.offsetY),
|
|
10169
|
+
},
|
|
10170
|
+
'top-center': {
|
|
10171
|
+
[vars$J.transform]: 'translate(-50%, -50%)',
|
|
10172
|
+
[vars$J.justifyContent]: 'center',
|
|
10173
|
+
[vars$J.top]: useVar$1(vars$J.offsetY),
|
|
10174
|
+
[vars$J.left]: '50%',
|
|
10175
|
+
},
|
|
10176
|
+
'top-end': {
|
|
10177
|
+
[vars$J.transform]: 'translateY(-50%)',
|
|
10178
|
+
[vars$J.justifyContent]: 'end',
|
|
10179
|
+
[vars$J.right]: insetCalc,
|
|
10180
|
+
[vars$J.top]: useVar$1(vars$J.offsetY),
|
|
10181
|
+
},
|
|
10182
|
+
'bottom-start': {
|
|
10183
|
+
[vars$J.transform]: 'translateY(50%)',
|
|
10184
|
+
[vars$J.justifyContent]: 'start',
|
|
10185
|
+
[vars$J.left]: insetCalc,
|
|
10186
|
+
[vars$J.bottom]: useVar$1(vars$J.offsetY),
|
|
10187
|
+
},
|
|
10188
|
+
'bottom-center': {
|
|
10189
|
+
[vars$J.bottom]: useVar$1(vars$J.offsetY),
|
|
10190
|
+
[vars$J.transform]: 'translate(-50%, 50%)',
|
|
10191
|
+
[vars$J.justifyContent]: 'center',
|
|
10192
|
+
[vars$J.left]: '50%',
|
|
10193
|
+
},
|
|
10194
|
+
'bottom-end': {
|
|
10195
|
+
[vars$J.transform]: 'translateY(50%)',
|
|
10196
|
+
[vars$J.justifyContent]: 'end',
|
|
10197
|
+
[vars$J.right]: insetCalc,
|
|
10198
|
+
[vars$J.bottom]: useVar$1(vars$J.offsetY),
|
|
10199
|
+
},
|
|
10200
|
+
},
|
|
10201
|
+
};
|
|
10202
|
+
|
|
10203
|
+
var attachment$1 = /*#__PURE__*/Object.freeze({
|
|
10204
|
+
__proto__: null,
|
|
10205
|
+
default: attachment
|
|
9920
10206
|
});
|
|
9921
10207
|
|
|
9922
10208
|
const getOverrideCssVarName = (origVarName) => `${origVarName}__override`;
|
|
@@ -15629,10 +15915,6 @@ const phoneField = {
|
|
|
15629
15915
|
[vars$s.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
|
15630
15916
|
[vars$s.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
|
15631
15917
|
[vars$s.errorMessageFontSize]: refs.errorMessageFontSize,
|
|
15632
|
-
|
|
15633
|
-
// '@overlay': {
|
|
15634
|
-
// overlayItemBackgroundColor: 'red'
|
|
15635
|
-
// }
|
|
15636
15918
|
};
|
|
15637
15919
|
|
|
15638
15920
|
var phoneField$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -24474,7 +24756,7 @@ const alert = {
|
|
|
24474
24756
|
[vars$2.horizontalPadding]: '0',
|
|
24475
24757
|
[vars$2.verticalPadding]: '0',
|
|
24476
24758
|
[vars$2.gap]: `0.5em`,
|
|
24477
|
-
[vars$2.fontSize]: useVar(vars$
|
|
24759
|
+
[vars$2.fontSize]: useVar(vars$14.fontSize),
|
|
24478
24760
|
|
|
24479
24761
|
mode: {
|
|
24480
24762
|
error: {
|
|
@@ -24766,6 +25048,7 @@ const components = {
|
|
|
24766
25048
|
outboundAppButton: outboundAppButton$1,
|
|
24767
25049
|
trustedDevices,
|
|
24768
25050
|
tooltip: tooltip$1,
|
|
25051
|
+
attachment: attachment$1,
|
|
24769
25052
|
};
|
|
24770
25053
|
|
|
24771
25054
|
const theme = Object.keys(components).reduce(
|
|
@@ -24778,7 +25061,7 @@ const vars = Object.keys(components).reduce(
|
|
|
24778
25061
|
);
|
|
24779
25062
|
|
|
24780
25063
|
const defaultTheme = { globals: globals$1, components: theme };
|
|
24781
|
-
const themeVars = { globals: vars$
|
|
25064
|
+
const themeVars = { globals: vars$16, components: vars };
|
|
24782
25065
|
|
|
24783
25066
|
const colors = {
|
|
24784
25067
|
surface: {
|
|
@@ -25282,6 +25565,7 @@ var calcScore = /*#__PURE__*/Object.freeze({
|
|
|
25282
25565
|
exports.AddressFieldClass = AddressFieldClass;
|
|
25283
25566
|
exports.AlertClass = AlertClass;
|
|
25284
25567
|
exports.AppsListClass = AppsListClass;
|
|
25568
|
+
exports.AttachmentClass = AttachmentClass;
|
|
25285
25569
|
exports.AutocompleteFieldClass = AutocompleteFieldClass;
|
|
25286
25570
|
exports.AvatarClass = AvatarClass;
|
|
25287
25571
|
exports.BadgeClass = BadgeClass;
|