@descope/web-components-ui 1.0.239 → 1.0.240
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +1418 -894
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1401 -877
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1438.js +374 -0
- package/dist/umd/1438.js.LICENSE.txt +5 -0
- package/dist/umd/1940.js +303 -0
- package/dist/umd/{849.js → 4595.js} +5 -5
- package/dist/umd/63.js +2 -0
- package/dist/umd/63.js.LICENSE.txt +5 -0
- package/dist/umd/6687.js +9 -0
- package/dist/umd/6687.js.LICENSE.txt +5 -0
- package/dist/umd/7583.js +113 -0
- package/dist/umd/{5977.js.LICENSE.txt → 7583.js.LICENSE.txt} +0 -6
- package/dist/umd/8866.js +183 -0
- package/dist/umd/8866.js.LICENSE.txt +11 -0
- package/dist/umd/9558.js +1 -1
- package/dist/umd/descope-combo-box-index-js.js +1 -1
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/dist/umd/descope-modal-index-js.js +1 -1
- package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -0
- package/dist/umd/index.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/package.json +2 -1
- package/src/components/descope-multi-select-combo-box/MultiSelectComboBoxClass.js +488 -0
- package/src/components/descope-multi-select-combo-box/index.js +6 -0
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/inputWrapper.js +4 -4
- package/src/theme/components/multiSelectComboBox.js +57 -0
- package/dist/umd/1932.js +0 -310
- package/dist/umd/5977.js +0 -294
- /package/dist/umd/{1932.js.LICENSE.txt → 1940.js.LICENSE.txt} +0 -0
- /package/dist/umd/{849.js.LICENSE.txt → 4595.js.LICENSE.txt} +0 -0
package/dist/cjs/index.cjs.js
CHANGED
@@ -499,7 +499,7 @@ const globals = {
|
|
499
499
|
fonts,
|
500
500
|
direction,
|
501
501
|
};
|
502
|
-
const vars$
|
502
|
+
const vars$w = getThemeVars(globals);
|
503
503
|
|
504
504
|
const createCssVarFallback = (first, ...rest) =>
|
505
505
|
`var(${first}${rest.length ? ` , ${createCssVarFallback(...rest)}` : ''})`;
|
@@ -2367,7 +2367,7 @@ const clickableMixin = (superclass) =>
|
|
2367
2367
|
}
|
2368
2368
|
};
|
2369
2369
|
|
2370
|
-
const componentName$
|
2370
|
+
const componentName$C = getComponentName('button');
|
2371
2371
|
|
2372
2372
|
const resetStyles = `
|
2373
2373
|
:host {
|
@@ -2405,7 +2405,7 @@ const iconStyles = `
|
|
2405
2405
|
|
2406
2406
|
const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
|
2407
2407
|
|
2408
|
-
const { host: host$
|
2408
|
+
const { host: host$h, label: label$a } = {
|
2409
2409
|
host: { selector: () => ':host' },
|
2410
2410
|
label: { selector: '::part(label)' },
|
2411
2411
|
};
|
@@ -2417,7 +2417,7 @@ const ButtonClass = compose(
|
|
2417
2417
|
mappings: {
|
2418
2418
|
hostWidth: { property: 'width' },
|
2419
2419
|
hostHeight: { property: 'height' },
|
2420
|
-
hostDirection: { ...host$
|
2420
|
+
hostDirection: { ...host$h, property: 'direction' },
|
2421
2421
|
fontSize: {},
|
2422
2422
|
fontFamily: {},
|
2423
2423
|
|
@@ -2437,8 +2437,8 @@ const ButtonClass = compose(
|
|
2437
2437
|
verticalPadding: [{ property: 'padding-top' }, { property: 'padding-bottom' }],
|
2438
2438
|
|
2439
2439
|
labelTextColor: { property: 'color' },
|
2440
|
-
labelTextDecoration: { ...label$
|
2441
|
-
labelSpacing: { ...label$
|
2440
|
+
labelTextDecoration: { ...label$a, property: 'text-decoration' },
|
2441
|
+
labelSpacing: { ...label$a, property: 'gap' },
|
2442
2442
|
},
|
2443
2443
|
}),
|
2444
2444
|
clickableMixin,
|
@@ -2468,7 +2468,7 @@ const ButtonClass = compose(
|
|
2468
2468
|
}
|
2469
2469
|
`,
|
2470
2470
|
excludeAttrsSync: ['tabindex'],
|
2471
|
-
componentName: componentName$
|
2471
|
+
componentName: componentName$C,
|
2472
2472
|
})
|
2473
2473
|
);
|
2474
2474
|
|
@@ -2505,31 +2505,31 @@ loadingIndicatorStyles = `
|
|
2505
2505
|
}
|
2506
2506
|
`;
|
2507
2507
|
|
2508
|
-
const globalRefs$
|
2508
|
+
const globalRefs$i = getThemeRefs(globals);
|
2509
2509
|
const compVars$4 = ButtonClass.cssVarList;
|
2510
2510
|
|
2511
2511
|
const mode = {
|
2512
|
-
primary: globalRefs$
|
2513
|
-
secondary: globalRefs$
|
2514
|
-
success: globalRefs$
|
2515
|
-
error: globalRefs$
|
2516
|
-
surface: globalRefs$
|
2512
|
+
primary: globalRefs$i.colors.primary,
|
2513
|
+
secondary: globalRefs$i.colors.secondary,
|
2514
|
+
success: globalRefs$i.colors.success,
|
2515
|
+
error: globalRefs$i.colors.error,
|
2516
|
+
surface: globalRefs$i.colors.surface,
|
2517
2517
|
};
|
2518
2518
|
|
2519
|
-
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$
|
2519
|
+
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$C);
|
2520
2520
|
|
2521
2521
|
const button = {
|
2522
2522
|
...helperTheme$3,
|
2523
2523
|
|
2524
|
-
[compVars$4.fontFamily]: globalRefs$
|
2524
|
+
[compVars$4.fontFamily]: globalRefs$i.fonts.font1.family,
|
2525
2525
|
|
2526
2526
|
[compVars$4.cursor]: 'pointer',
|
2527
2527
|
[compVars$4.hostHeight]: '3em',
|
2528
2528
|
[compVars$4.hostWidth]: 'auto',
|
2529
|
-
[compVars$4.hostDirection]: globalRefs$
|
2529
|
+
[compVars$4.hostDirection]: globalRefs$i.direction,
|
2530
2530
|
|
2531
|
-
[compVars$4.borderRadius]: globalRefs$
|
2532
|
-
[compVars$4.borderWidth]: globalRefs$
|
2531
|
+
[compVars$4.borderRadius]: globalRefs$i.radius.sm,
|
2532
|
+
[compVars$4.borderWidth]: globalRefs$i.border.xs,
|
2533
2533
|
[compVars$4.borderStyle]: 'solid',
|
2534
2534
|
[compVars$4.borderColor]: 'transparent',
|
2535
2535
|
|
@@ -2565,10 +2565,10 @@ const button = {
|
|
2565
2565
|
},
|
2566
2566
|
|
2567
2567
|
_disabled: {
|
2568
|
-
[helperVars$3.main]: globalRefs$
|
2569
|
-
[helperVars$3.dark]: globalRefs$
|
2570
|
-
[helperVars$3.light]: globalRefs$
|
2571
|
-
[helperVars$3.contrast]: globalRefs$
|
2568
|
+
[helperVars$3.main]: globalRefs$i.colors.surface.main,
|
2569
|
+
[helperVars$3.dark]: globalRefs$i.colors.surface.dark,
|
2570
|
+
[helperVars$3.light]: globalRefs$i.colors.surface.light,
|
2571
|
+
[helperVars$3.contrast]: globalRefs$i.colors.surface.contrast,
|
2572
2572
|
},
|
2573
2573
|
|
2574
2574
|
variant: {
|
@@ -2610,11 +2610,11 @@ const button = {
|
|
2610
2610
|
},
|
2611
2611
|
|
2612
2612
|
_focused: {
|
2613
|
-
[compVars$4.outlineColor]: globalRefs$
|
2613
|
+
[compVars$4.outlineColor]: globalRefs$i.colors.surface.main,
|
2614
2614
|
},
|
2615
2615
|
};
|
2616
2616
|
|
2617
|
-
const vars$
|
2617
|
+
const vars$v = {
|
2618
2618
|
...compVars$4,
|
2619
2619
|
...helperVars$3,
|
2620
2620
|
};
|
@@ -2622,10 +2622,10 @@ const vars$u = {
|
|
2622
2622
|
var button$1 = /*#__PURE__*/Object.freeze({
|
2623
2623
|
__proto__: null,
|
2624
2624
|
default: button,
|
2625
|
-
vars: vars$
|
2625
|
+
vars: vars$v
|
2626
2626
|
});
|
2627
2627
|
|
2628
|
-
const { host: host$
|
2628
|
+
const { host: host$g, label: label$9, placeholder: placeholder$3, requiredIndicator: requiredIndicator$b, inputField: inputField$6, input, helperText: helperText$9, errorMessage: errorMessage$b } =
|
2629
2629
|
{
|
2630
2630
|
host: { selector: () => ':host' },
|
2631
2631
|
label: { selector: '::part(label)' },
|
@@ -2639,45 +2639,45 @@ const { host: host$f, label: label$8, placeholder: placeholder$2, requiredIndica
|
|
2639
2639
|
|
2640
2640
|
var textFieldMappings = {
|
2641
2641
|
// we apply font-size also on the host so we can set its width with em
|
2642
|
-
fontSize: [{}, host$
|
2643
|
-
fontFamily: [label$
|
2642
|
+
fontSize: [{}, host$g],
|
2643
|
+
fontFamily: [label$9, inputField$6, helperText$9, errorMessage$b],
|
2644
2644
|
|
2645
|
-
hostWidth: { ...host$
|
2646
|
-
hostMinWidth: { ...host$
|
2647
|
-
hostDirection: { ...host$
|
2645
|
+
hostWidth: { ...host$g, property: 'width' },
|
2646
|
+
hostMinWidth: { ...host$g, property: 'min-width' },
|
2647
|
+
hostDirection: { ...host$g, property: 'direction' },
|
2648
2648
|
|
2649
|
-
inputBackgroundColor: { ...inputField$
|
2649
|
+
inputBackgroundColor: { ...inputField$6, property: 'background-color' },
|
2650
2650
|
|
2651
2651
|
labelTextColor: [
|
2652
|
-
{ ...label$
|
2653
|
-
{ ...requiredIndicator$
|
2652
|
+
{ ...label$9, property: 'color' },
|
2653
|
+
{ ...requiredIndicator$b, property: 'color' },
|
2654
2654
|
],
|
2655
|
-
errorMessageTextColor: { ...errorMessage$
|
2655
|
+
errorMessageTextColor: { ...errorMessage$b, property: 'color' },
|
2656
2656
|
|
2657
|
-
inputValueTextColor: { ...inputField$
|
2657
|
+
inputValueTextColor: { ...inputField$6, property: 'color' },
|
2658
2658
|
inputCaretTextColor: { ...input, property: 'color' },
|
2659
2659
|
|
2660
|
-
labelRequiredIndicator: { ...requiredIndicator$
|
2660
|
+
labelRequiredIndicator: { ...requiredIndicator$b, property: 'content' },
|
2661
2661
|
|
2662
|
-
inputBorderColor: { ...inputField$
|
2663
|
-
inputBorderWidth: { ...inputField$
|
2664
|
-
inputBorderStyle: { ...inputField$
|
2665
|
-
inputBorderRadius: { ...inputField$
|
2662
|
+
inputBorderColor: { ...inputField$6, property: 'border-color' },
|
2663
|
+
inputBorderWidth: { ...inputField$6, property: 'border-width' },
|
2664
|
+
inputBorderStyle: { ...inputField$6, property: 'border-style' },
|
2665
|
+
inputBorderRadius: { ...inputField$6, property: 'border-radius' },
|
2666
2666
|
|
2667
|
-
inputHeight: { ...inputField$
|
2667
|
+
inputHeight: { ...inputField$6, property: 'height' },
|
2668
2668
|
inputHorizontalPadding: [
|
2669
2669
|
{ ...input, property: 'padding-left' },
|
2670
2670
|
{ ...input, property: 'padding-right' },
|
2671
2671
|
],
|
2672
2672
|
|
2673
|
-
inputOutlineColor: { ...inputField$
|
2674
|
-
inputOutlineStyle: { ...inputField$
|
2675
|
-
inputOutlineWidth: { ...inputField$
|
2676
|
-
inputOutlineOffset: { ...inputField$
|
2673
|
+
inputOutlineColor: { ...inputField$6, property: 'outline-color' },
|
2674
|
+
inputOutlineStyle: { ...inputField$6, property: 'outline-style' },
|
2675
|
+
inputOutlineWidth: { ...inputField$6, property: 'outline-width' },
|
2676
|
+
inputOutlineOffset: { ...inputField$6, property: 'outline-offset' },
|
2677
2677
|
|
2678
2678
|
inputTextAlign: { ...input, property: 'text-align' },
|
2679
2679
|
|
2680
|
-
inputPlaceholderColor: { ...placeholder$
|
2680
|
+
inputPlaceholderColor: { ...placeholder$3, property: 'color' },
|
2681
2681
|
};
|
2682
2682
|
|
2683
2683
|
const useHostExternalPadding = (cssVarList) => `
|
@@ -2809,7 +2809,7 @@ const resetInputLabelPosition = (name) => `
|
|
2809
2809
|
}
|
2810
2810
|
`;
|
2811
2811
|
|
2812
|
-
const componentName$
|
2812
|
+
const componentName$B = getComponentName('text-field');
|
2813
2813
|
|
2814
2814
|
const observedAttrs = ['type'];
|
2815
2815
|
|
@@ -2859,26 +2859,26 @@ const TextFieldClass = compose(
|
|
2859
2859
|
${resetInputOverrides('vaadin-text-field', TextFieldClass.cssVarList)}
|
2860
2860
|
`,
|
2861
2861
|
excludeAttrsSync: ['tabindex'],
|
2862
|
-
componentName: componentName$
|
2862
|
+
componentName: componentName$B,
|
2863
2863
|
})
|
2864
2864
|
);
|
2865
2865
|
|
2866
|
-
const componentName$
|
2867
|
-
const globalRefs$
|
2866
|
+
const componentName$A = getComponentName('input-wrapper');
|
2867
|
+
const globalRefs$h = getThemeRefs(globals);
|
2868
2868
|
|
2869
|
-
const [theme$1, refs, vars$
|
2869
|
+
const [theme$1, refs, vars$u] = createHelperVars(
|
2870
2870
|
{
|
2871
|
-
labelTextColor: globalRefs$
|
2872
|
-
valueTextColor: globalRefs$
|
2873
|
-
placeholderTextColor: globalRefs$
|
2871
|
+
labelTextColor: globalRefs$h.colors.surface.contrast,
|
2872
|
+
valueTextColor: globalRefs$h.colors.surface.contrast,
|
2873
|
+
placeholderTextColor: globalRefs$h.colors.surface.main,
|
2874
2874
|
requiredIndicator: "'*'",
|
2875
|
-
errorMessageTextColor: globalRefs$
|
2875
|
+
errorMessageTextColor: globalRefs$h.colors.error.main,
|
2876
2876
|
|
2877
|
-
borderWidth: globalRefs$
|
2878
|
-
borderRadius: globalRefs$
|
2877
|
+
borderWidth: globalRefs$h.border.xs,
|
2878
|
+
borderRadius: globalRefs$h.radius.xs,
|
2879
2879
|
borderColor: 'transparent',
|
2880
2880
|
|
2881
|
-
outlineWidth: globalRefs$
|
2881
|
+
outlineWidth: globalRefs$h.border.sm,
|
2882
2882
|
outlineStyle: 'solid',
|
2883
2883
|
outlineColor: 'transparent',
|
2884
2884
|
outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
|
@@ -2889,17 +2889,17 @@ const [theme$1, refs, vars$t] = createHelperVars(
|
|
2889
2889
|
horizontalPadding: '0.5em',
|
2890
2890
|
verticalPadding: '0.5em',
|
2891
2891
|
|
2892
|
-
backgroundColor: globalRefs$
|
2892
|
+
backgroundColor: globalRefs$h.colors.surface.light,
|
2893
2893
|
|
2894
|
-
fontFamily: globalRefs$
|
2894
|
+
fontFamily: globalRefs$h.fonts.font1.family,
|
2895
2895
|
|
2896
|
-
direction: globalRefs$
|
2896
|
+
direction: globalRefs$h.direction,
|
2897
2897
|
|
2898
2898
|
size: {
|
2899
|
-
xs: { fontSize: '12px' },
|
2900
|
-
sm: { fontSize: '14px' },
|
2901
|
-
md: { fontSize: '16px' },
|
2902
|
-
lg: { fontSize: '18px' },
|
2899
|
+
xs: { fontSize: '12px', chipFontSize: '10px' },
|
2900
|
+
sm: { fontSize: '14px', chipFontSize: '12px' },
|
2901
|
+
md: { fontSize: '16px', chipFontSize: '14px' },
|
2902
|
+
lg: { fontSize: '18px', chipFontSize: '16px' },
|
2903
2903
|
},
|
2904
2904
|
|
2905
2905
|
_fullWidth: {
|
@@ -2907,70 +2907,70 @@ const [theme$1, refs, vars$t] = createHelperVars(
|
|
2907
2907
|
},
|
2908
2908
|
|
2909
2909
|
_focused: {
|
2910
|
-
outlineColor: globalRefs$
|
2910
|
+
outlineColor: globalRefs$h.colors.surface.main,
|
2911
2911
|
_invalid: {
|
2912
|
-
outlineColor: globalRefs$
|
2912
|
+
outlineColor: globalRefs$h.colors.error.main,
|
2913
2913
|
},
|
2914
2914
|
},
|
2915
2915
|
|
2916
2916
|
_bordered: {
|
2917
|
-
outlineWidth: globalRefs$
|
2918
|
-
borderColor: globalRefs$
|
2917
|
+
outlineWidth: globalRefs$h.border.xs,
|
2918
|
+
borderColor: globalRefs$h.colors.surface.main,
|
2919
2919
|
borderStyle: 'solid',
|
2920
2920
|
_invalid: {
|
2921
|
-
borderColor: globalRefs$
|
2921
|
+
borderColor: globalRefs$h.colors.error.main,
|
2922
2922
|
},
|
2923
2923
|
},
|
2924
2924
|
|
2925
2925
|
_disabled: {
|
2926
|
-
labelTextColor: globalRefs$
|
2927
|
-
borderColor: globalRefs$
|
2928
|
-
valueTextColor: globalRefs$
|
2929
|
-
placeholderTextColor: globalRefs$
|
2930
|
-
backgroundColor: globalRefs$
|
2926
|
+
labelTextColor: globalRefs$h.colors.surface.main,
|
2927
|
+
borderColor: globalRefs$h.colors.surface.main,
|
2928
|
+
valueTextColor: globalRefs$h.colors.surface.dark,
|
2929
|
+
placeholderTextColor: globalRefs$h.colors.surface.dark,
|
2930
|
+
backgroundColor: globalRefs$h.colors.surface.main,
|
2931
2931
|
},
|
2932
2932
|
},
|
2933
|
-
componentName$
|
2933
|
+
componentName$A
|
2934
2934
|
);
|
2935
2935
|
|
2936
2936
|
var inputWrapper = /*#__PURE__*/Object.freeze({
|
2937
2937
|
__proto__: null,
|
2938
2938
|
default: theme$1,
|
2939
2939
|
refs: refs,
|
2940
|
-
vars: vars$
|
2940
|
+
vars: vars$u
|
2941
2941
|
});
|
2942
2942
|
|
2943
|
-
const vars$
|
2943
|
+
const vars$t = TextFieldClass.cssVarList;
|
2944
2944
|
|
2945
2945
|
const textField = {
|
2946
|
-
[vars$
|
2947
|
-
[vars$
|
2948
|
-
[vars$
|
2949
|
-
[vars$
|
2950
|
-
[vars$
|
2951
|
-
[vars$
|
2952
|
-
[vars$
|
2953
|
-
[vars$
|
2954
|
-
[vars$
|
2955
|
-
[vars$
|
2956
|
-
[vars$
|
2957
|
-
[vars$
|
2958
|
-
[vars$
|
2959
|
-
[vars$
|
2960
|
-
[vars$
|
2961
|
-
[vars$
|
2962
|
-
[vars$
|
2963
|
-
[vars$
|
2964
|
-
[vars$
|
2965
|
-
[vars$
|
2966
|
-
[vars$
|
2946
|
+
[vars$t.hostWidth]: refs.width,
|
2947
|
+
[vars$t.hostMinWidth]: refs.minWidth,
|
2948
|
+
[vars$t.hostDirection]: refs.direction,
|
2949
|
+
[vars$t.fontSize]: refs.fontSize,
|
2950
|
+
[vars$t.fontFamily]: refs.fontFamily,
|
2951
|
+
[vars$t.labelTextColor]: refs.labelTextColor,
|
2952
|
+
[vars$t.labelRequiredIndicator]: refs.requiredIndicator,
|
2953
|
+
[vars$t.errorMessageTextColor]: refs.errorMessageTextColor,
|
2954
|
+
[vars$t.inputValueTextColor]: refs.valueTextColor,
|
2955
|
+
[vars$t.inputPlaceholderColor]: refs.placeholderTextColor,
|
2956
|
+
[vars$t.inputBorderWidth]: refs.borderWidth,
|
2957
|
+
[vars$t.inputBorderStyle]: refs.borderStyle,
|
2958
|
+
[vars$t.inputBorderColor]: refs.borderColor,
|
2959
|
+
[vars$t.inputBorderRadius]: refs.borderRadius,
|
2960
|
+
[vars$t.inputOutlineWidth]: refs.outlineWidth,
|
2961
|
+
[vars$t.inputOutlineStyle]: refs.outlineStyle,
|
2962
|
+
[vars$t.inputOutlineColor]: refs.outlineColor,
|
2963
|
+
[vars$t.inputOutlineOffset]: refs.outlineOffset,
|
2964
|
+
[vars$t.inputBackgroundColor]: refs.backgroundColor,
|
2965
|
+
[vars$t.inputHeight]: refs.inputHeight,
|
2966
|
+
[vars$t.inputHorizontalPadding]: refs.horizontalPadding,
|
2967
2967
|
};
|
2968
2968
|
|
2969
2969
|
var textField$1 = /*#__PURE__*/Object.freeze({
|
2970
2970
|
__proto__: null,
|
2971
2971
|
default: textField,
|
2972
2972
|
textField: textField,
|
2973
|
-
vars: vars$
|
2973
|
+
vars: vars$t
|
2974
2974
|
});
|
2975
2975
|
|
2976
2976
|
const passwordDraggableMixin = (superclass) =>
|
@@ -3007,19 +3007,19 @@ const passwordDraggableMixin = (superclass) =>
|
|
3007
3007
|
}
|
3008
3008
|
};
|
3009
3009
|
|
3010
|
-
const componentName$
|
3010
|
+
const componentName$z = getComponentName('password');
|
3011
3011
|
|
3012
3012
|
const {
|
3013
|
-
host: host$
|
3014
|
-
inputField: inputField$
|
3015
|
-
inputElement: inputElement$
|
3013
|
+
host: host$f,
|
3014
|
+
inputField: inputField$5,
|
3015
|
+
inputElement: inputElement$2,
|
3016
3016
|
inputElementPlaceholder,
|
3017
3017
|
revealButtonContainer,
|
3018
3018
|
revealButtonIcon,
|
3019
|
-
label: label$
|
3020
|
-
requiredIndicator: requiredIndicator$
|
3021
|
-
errorMessage: errorMessage$
|
3022
|
-
helperText: helperText$
|
3019
|
+
label: label$8,
|
3020
|
+
requiredIndicator: requiredIndicator$a,
|
3021
|
+
errorMessage: errorMessage$a,
|
3022
|
+
helperText: helperText$8,
|
3023
3023
|
} = {
|
3024
3024
|
host: { selector: () => ':host' },
|
3025
3025
|
inputField: { selector: '::part(input-field)' },
|
@@ -3036,37 +3036,37 @@ const {
|
|
3036
3036
|
const PasswordClass = compose(
|
3037
3037
|
createStyleMixin({
|
3038
3038
|
mappings: {
|
3039
|
-
hostWidth: { ...host$
|
3040
|
-
hostMinWidth: { ...host$
|
3041
|
-
hostDirection: { ...host$
|
3042
|
-
fontSize: [{}, host$
|
3043
|
-
fontFamily: [label$
|
3044
|
-
inputHeight: { ...inputField$
|
3039
|
+
hostWidth: { ...host$f, property: 'width' },
|
3040
|
+
hostMinWidth: { ...host$f, property: 'min-width' },
|
3041
|
+
hostDirection: { ...host$f, property: 'direction' },
|
3042
|
+
fontSize: [{}, host$f],
|
3043
|
+
fontFamily: [label$8, inputField$5, errorMessage$a, helperText$8],
|
3044
|
+
inputHeight: { ...inputField$5, property: 'height' },
|
3045
3045
|
inputHorizontalPadding: [
|
3046
|
-
{ ...inputElement$
|
3047
|
-
{ ...inputElement$
|
3046
|
+
{ ...inputElement$2, property: 'padding-left' },
|
3047
|
+
{ ...inputElement$2, property: 'padding-right' },
|
3048
3048
|
],
|
3049
|
-
inputBackgroundColor: { ...inputField$
|
3049
|
+
inputBackgroundColor: { ...inputField$5, property: 'background-color' },
|
3050
3050
|
|
3051
|
-
inputBorderStyle: { ...inputField$
|
3052
|
-
inputBorderWidth: { ...inputField$
|
3053
|
-
inputBorderColor: { ...inputField$
|
3054
|
-
inputBorderRadius: { ...inputField$
|
3051
|
+
inputBorderStyle: { ...inputField$5, property: 'border-style' },
|
3052
|
+
inputBorderWidth: { ...inputField$5, property: 'border-width' },
|
3053
|
+
inputBorderColor: { ...inputField$5, property: 'border-color' },
|
3054
|
+
inputBorderRadius: { ...inputField$5, property: 'border-radius' },
|
3055
3055
|
|
3056
|
-
inputOutlineColor: { ...inputField$
|
3057
|
-
inputOutlineStyle: { ...inputField$
|
3058
|
-
inputOutlineOffset: { ...inputField$
|
3059
|
-
inputOutlineWidth: { ...inputField$
|
3056
|
+
inputOutlineColor: { ...inputField$5, property: 'outline-color' },
|
3057
|
+
inputOutlineStyle: { ...inputField$5, property: 'outline-style' },
|
3058
|
+
inputOutlineOffset: { ...inputField$5, property: 'outline-offset' },
|
3059
|
+
inputOutlineWidth: { ...inputField$5, property: 'outline-width' },
|
3060
3060
|
|
3061
3061
|
labelTextColor: [
|
3062
|
-
{ ...label$
|
3063
|
-
{ ...requiredIndicator$
|
3062
|
+
{ ...label$8, property: 'color' },
|
3063
|
+
{ ...requiredIndicator$a, property: 'color' },
|
3064
3064
|
],
|
3065
|
-
labelRequiredIndicator: { ...requiredIndicator$
|
3066
|
-
errorMessageTextColor: { ...errorMessage$
|
3065
|
+
labelRequiredIndicator: { ...requiredIndicator$a, property: 'content' },
|
3066
|
+
errorMessageTextColor: { ...errorMessage$a, property: 'color' },
|
3067
3067
|
|
3068
3068
|
inputValueTextColor: [
|
3069
|
-
{ ...inputElement$
|
3069
|
+
{ ...inputElement$2, property: 'color' },
|
3070
3070
|
{ ...revealButtonIcon, property: 'color' },
|
3071
3071
|
],
|
3072
3072
|
inputPlaceholderTextColor: { ...inputElementPlaceholder, property: 'color' },
|
@@ -3138,45 +3138,45 @@ const PasswordClass = compose(
|
|
3138
3138
|
}
|
3139
3139
|
`,
|
3140
3140
|
excludeAttrsSync: ['tabindex'],
|
3141
|
-
componentName: componentName$
|
3141
|
+
componentName: componentName$z,
|
3142
3142
|
})
|
3143
3143
|
);
|
3144
3144
|
|
3145
|
-
const globalRefs$
|
3146
|
-
const vars$
|
3145
|
+
const globalRefs$g = getThemeRefs(globals);
|
3146
|
+
const vars$s = PasswordClass.cssVarList;
|
3147
3147
|
|
3148
3148
|
const password = {
|
3149
|
-
[vars$
|
3150
|
-
[vars$
|
3151
|
-
[vars$
|
3152
|
-
[vars$
|
3153
|
-
[vars$
|
3154
|
-
[vars$
|
3155
|
-
[vars$
|
3156
|
-
[vars$
|
3157
|
-
[vars$
|
3158
|
-
[vars$
|
3159
|
-
[vars$
|
3160
|
-
[vars$
|
3161
|
-
[vars$
|
3162
|
-
[vars$
|
3163
|
-
[vars$
|
3164
|
-
[vars$
|
3165
|
-
[vars$
|
3166
|
-
[vars$
|
3167
|
-
[vars$
|
3168
|
-
[vars$
|
3169
|
-
[vars$
|
3170
|
-
[vars$
|
3149
|
+
[vars$s.hostWidth]: refs.width,
|
3150
|
+
[vars$s.hostDirection]: refs.direction,
|
3151
|
+
[vars$s.fontSize]: refs.fontSize,
|
3152
|
+
[vars$s.fontFamily]: refs.fontFamily,
|
3153
|
+
[vars$s.labelTextColor]: refs.labelTextColor,
|
3154
|
+
[vars$s.errorMessageTextColor]: refs.errorMessageTextColor,
|
3155
|
+
[vars$s.inputHorizontalPadding]: refs.horizontalPadding,
|
3156
|
+
[vars$s.inputHeight]: refs.inputHeight,
|
3157
|
+
[vars$s.inputBackgroundColor]: refs.backgroundColor,
|
3158
|
+
[vars$s.labelRequiredIndicator]: refs.requiredIndicator,
|
3159
|
+
[vars$s.inputValueTextColor]: refs.valueTextColor,
|
3160
|
+
[vars$s.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
3161
|
+
[vars$s.inputBorderWidth]: refs.borderWidth,
|
3162
|
+
[vars$s.inputBorderStyle]: refs.borderStyle,
|
3163
|
+
[vars$s.inputBorderColor]: refs.borderColor,
|
3164
|
+
[vars$s.inputBorderRadius]: refs.borderRadius,
|
3165
|
+
[vars$s.inputOutlineWidth]: refs.outlineWidth,
|
3166
|
+
[vars$s.inputOutlineStyle]: refs.outlineStyle,
|
3167
|
+
[vars$s.inputOutlineColor]: refs.outlineColor,
|
3168
|
+
[vars$s.inputOutlineOffset]: refs.outlineOffset,
|
3169
|
+
[vars$s.revealButtonOffset]: globalRefs$g.spacing.md,
|
3170
|
+
[vars$s.revealButtonSize]: refs.toggleButtonSize,
|
3171
3171
|
};
|
3172
3172
|
|
3173
3173
|
var password$1 = /*#__PURE__*/Object.freeze({
|
3174
3174
|
__proto__: null,
|
3175
3175
|
default: password,
|
3176
|
-
vars: vars$
|
3176
|
+
vars: vars$s
|
3177
3177
|
});
|
3178
3178
|
|
3179
|
-
const componentName$
|
3179
|
+
const componentName$y = getComponentName('number-field');
|
3180
3180
|
|
3181
3181
|
const NumberFieldClass = compose(
|
3182
3182
|
createStyleMixin({
|
@@ -3202,43 +3202,43 @@ const NumberFieldClass = compose(
|
|
3202
3202
|
${resetInputOverrides('vaadin-number-field', NumberFieldClass.cssVarList)}
|
3203
3203
|
`,
|
3204
3204
|
excludeAttrsSync: ['tabindex'],
|
3205
|
-
componentName: componentName$
|
3205
|
+
componentName: componentName$y,
|
3206
3206
|
})
|
3207
3207
|
);
|
3208
3208
|
|
3209
|
-
const vars$
|
3209
|
+
const vars$r = NumberFieldClass.cssVarList;
|
3210
3210
|
|
3211
3211
|
const numberField = {
|
3212
|
-
[vars$
|
3213
|
-
[vars$
|
3214
|
-
[vars$
|
3215
|
-
[vars$
|
3216
|
-
[vars$
|
3217
|
-
[vars$
|
3218
|
-
[vars$
|
3219
|
-
[vars$
|
3220
|
-
[vars$
|
3221
|
-
[vars$
|
3222
|
-
[vars$
|
3223
|
-
[vars$
|
3224
|
-
[vars$
|
3225
|
-
[vars$
|
3226
|
-
[vars$
|
3227
|
-
[vars$
|
3228
|
-
[vars$
|
3229
|
-
[vars$
|
3230
|
-
[vars$
|
3231
|
-
[vars$
|
3232
|
-
[vars$
|
3212
|
+
[vars$r.hostWidth]: refs.width,
|
3213
|
+
[vars$r.hostMinWidth]: refs.minWidth,
|
3214
|
+
[vars$r.hostDirection]: refs.direction,
|
3215
|
+
[vars$r.fontSize]: refs.fontSize,
|
3216
|
+
[vars$r.fontFamily]: refs.fontFamily,
|
3217
|
+
[vars$r.labelTextColor]: refs.labelTextColor,
|
3218
|
+
[vars$r.errorMessageTextColor]: refs.errorMessageTextColor,
|
3219
|
+
[vars$r.inputValueTextColor]: refs.valueTextColor,
|
3220
|
+
[vars$r.inputPlaceholderColor]: refs.placeholderTextColor,
|
3221
|
+
[vars$r.inputBorderWidth]: refs.borderWidth,
|
3222
|
+
[vars$r.inputBorderStyle]: refs.borderStyle,
|
3223
|
+
[vars$r.inputBorderColor]: refs.borderColor,
|
3224
|
+
[vars$r.inputBorderRadius]: refs.borderRadius,
|
3225
|
+
[vars$r.inputOutlineWidth]: refs.outlineWidth,
|
3226
|
+
[vars$r.inputOutlineStyle]: refs.outlineStyle,
|
3227
|
+
[vars$r.inputOutlineColor]: refs.outlineColor,
|
3228
|
+
[vars$r.inputOutlineOffset]: refs.outlineOffset,
|
3229
|
+
[vars$r.inputBackgroundColor]: refs.backgroundColor,
|
3230
|
+
[vars$r.labelRequiredIndicator]: refs.requiredIndicator,
|
3231
|
+
[vars$r.inputHorizontalPadding]: refs.horizontalPadding,
|
3232
|
+
[vars$r.inputHeight]: refs.inputHeight,
|
3233
3233
|
};
|
3234
3234
|
|
3235
3235
|
var numberField$1 = /*#__PURE__*/Object.freeze({
|
3236
3236
|
__proto__: null,
|
3237
3237
|
default: numberField,
|
3238
|
-
vars: vars$
|
3238
|
+
vars: vars$r
|
3239
3239
|
});
|
3240
3240
|
|
3241
|
-
const componentName$
|
3241
|
+
const componentName$x = getComponentName('email-field');
|
3242
3242
|
|
3243
3243
|
const customMixin$6 = (superclass) =>
|
3244
3244
|
class EmailFieldMixinClass extends superclass {
|
@@ -3273,53 +3273,53 @@ const EmailFieldClass = compose(
|
|
3273
3273
|
${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
|
3274
3274
|
`,
|
3275
3275
|
excludeAttrsSync: ['tabindex'],
|
3276
|
-
componentName: componentName$
|
3276
|
+
componentName: componentName$x,
|
3277
3277
|
})
|
3278
3278
|
);
|
3279
3279
|
|
3280
|
-
const vars$
|
3280
|
+
const vars$q = EmailFieldClass.cssVarList;
|
3281
3281
|
|
3282
3282
|
const emailField = {
|
3283
|
-
[vars$
|
3284
|
-
[vars$
|
3285
|
-
[vars$
|
3286
|
-
[vars$
|
3287
|
-
[vars$
|
3288
|
-
[vars$
|
3289
|
-
[vars$
|
3290
|
-
[vars$
|
3291
|
-
[vars$
|
3292
|
-
[vars$
|
3293
|
-
[vars$
|
3294
|
-
[vars$
|
3295
|
-
[vars$
|
3296
|
-
[vars$
|
3297
|
-
[vars$
|
3298
|
-
[vars$
|
3299
|
-
[vars$
|
3300
|
-
[vars$
|
3301
|
-
[vars$
|
3302
|
-
[vars$
|
3303
|
-
[vars$
|
3283
|
+
[vars$q.hostWidth]: refs.width,
|
3284
|
+
[vars$q.hostMinWidth]: refs.minWidth,
|
3285
|
+
[vars$q.hostDirection]: refs.direction,
|
3286
|
+
[vars$q.fontSize]: refs.fontSize,
|
3287
|
+
[vars$q.fontFamily]: refs.fontFamily,
|
3288
|
+
[vars$q.labelTextColor]: refs.labelTextColor,
|
3289
|
+
[vars$q.errorMessageTextColor]: refs.errorMessageTextColor,
|
3290
|
+
[vars$q.inputValueTextColor]: refs.valueTextColor,
|
3291
|
+
[vars$q.labelRequiredIndicator]: refs.requiredIndicator,
|
3292
|
+
[vars$q.inputPlaceholderColor]: refs.placeholderTextColor,
|
3293
|
+
[vars$q.inputBorderWidth]: refs.borderWidth,
|
3294
|
+
[vars$q.inputBorderStyle]: refs.borderStyle,
|
3295
|
+
[vars$q.inputBorderColor]: refs.borderColor,
|
3296
|
+
[vars$q.inputBorderRadius]: refs.borderRadius,
|
3297
|
+
[vars$q.inputOutlineWidth]: refs.outlineWidth,
|
3298
|
+
[vars$q.inputOutlineStyle]: refs.outlineStyle,
|
3299
|
+
[vars$q.inputOutlineColor]: refs.outlineColor,
|
3300
|
+
[vars$q.inputOutlineOffset]: refs.outlineOffset,
|
3301
|
+
[vars$q.inputBackgroundColor]: refs.backgroundColor,
|
3302
|
+
[vars$q.inputHorizontalPadding]: refs.horizontalPadding,
|
3303
|
+
[vars$q.inputHeight]: refs.inputHeight,
|
3304
3304
|
};
|
3305
3305
|
|
3306
3306
|
var emailField$1 = /*#__PURE__*/Object.freeze({
|
3307
3307
|
__proto__: null,
|
3308
3308
|
default: emailField,
|
3309
|
-
vars: vars$
|
3309
|
+
vars: vars$q
|
3310
3310
|
});
|
3311
3311
|
|
3312
|
-
const componentName$
|
3312
|
+
const componentName$w = getComponentName('text-area');
|
3313
3313
|
|
3314
3314
|
const {
|
3315
|
-
host: host$
|
3316
|
-
label: label$
|
3317
|
-
placeholder: placeholder$
|
3318
|
-
inputField: inputField$
|
3315
|
+
host: host$e,
|
3316
|
+
label: label$7,
|
3317
|
+
placeholder: placeholder$2,
|
3318
|
+
inputField: inputField$4,
|
3319
3319
|
textArea: textArea$2,
|
3320
|
-
requiredIndicator: requiredIndicator$
|
3321
|
-
helperText: helperText$
|
3322
|
-
errorMessage: errorMessage$
|
3320
|
+
requiredIndicator: requiredIndicator$9,
|
3321
|
+
helperText: helperText$7,
|
3322
|
+
errorMessage: errorMessage$9,
|
3323
3323
|
} = {
|
3324
3324
|
host: { selector: () => ':host' },
|
3325
3325
|
label: { selector: '::part(label)' },
|
@@ -3334,28 +3334,28 @@ const {
|
|
3334
3334
|
const TextAreaClass = compose(
|
3335
3335
|
createStyleMixin({
|
3336
3336
|
mappings: {
|
3337
|
-
hostWidth: { ...host$
|
3338
|
-
hostMinWidth: { ...host$
|
3339
|
-
hostDirection: { ...host$
|
3340
|
-
fontSize: [host$
|
3341
|
-
fontFamily: [label$
|
3337
|
+
hostWidth: { ...host$e, property: 'width' },
|
3338
|
+
hostMinWidth: { ...host$e, property: 'min-width' },
|
3339
|
+
hostDirection: { ...host$e, property: 'direction' },
|
3340
|
+
fontSize: [host$e, textArea$2],
|
3341
|
+
fontFamily: [label$7, inputField$4, helperText$7, errorMessage$9],
|
3342
3342
|
labelTextColor: [
|
3343
|
-
{ ...label$
|
3344
|
-
{ ...requiredIndicator$
|
3343
|
+
{ ...label$7, property: 'color' },
|
3344
|
+
{ ...requiredIndicator$9, property: 'color' },
|
3345
3345
|
],
|
3346
|
-
labelRequiredIndicator: { ...requiredIndicator$
|
3347
|
-
errorMessageTextColor: { ...errorMessage$
|
3348
|
-
inputBackgroundColor: { ...inputField$
|
3346
|
+
labelRequiredIndicator: { ...requiredIndicator$9, property: 'content' },
|
3347
|
+
errorMessageTextColor: { ...errorMessage$9, property: 'color' },
|
3348
|
+
inputBackgroundColor: { ...inputField$4, property: 'background-color' },
|
3349
3349
|
inputValueTextColor: { ...textArea$2, property: 'color' },
|
3350
|
-
inputPlaceholderTextColor: { ...placeholder$
|
3351
|
-
inputBorderWidth: { ...inputField$
|
3352
|
-
inputBorderStyle: { ...inputField$
|
3353
|
-
inputBorderColor: { ...inputField$
|
3354
|
-
inputBorderRadius: { ...inputField$
|
3355
|
-
inputOutlineStyle: { ...inputField$
|
3356
|
-
inputOutlineColor: { ...inputField$
|
3357
|
-
inputOutlineOffset: { ...inputField$
|
3358
|
-
inputOutlineWidth: { ...inputField$
|
3350
|
+
inputPlaceholderTextColor: { ...placeholder$2, property: 'color' },
|
3351
|
+
inputBorderWidth: { ...inputField$4, property: 'border-width' },
|
3352
|
+
inputBorderStyle: { ...inputField$4, property: 'border-style' },
|
3353
|
+
inputBorderColor: { ...inputField$4, property: 'border-color' },
|
3354
|
+
inputBorderRadius: { ...inputField$4, property: 'border-radius' },
|
3355
|
+
inputOutlineStyle: { ...inputField$4, property: 'outline-Style' },
|
3356
|
+
inputOutlineColor: { ...inputField$4, property: 'outline-color' },
|
3357
|
+
inputOutlineOffset: { ...inputField$4, property: 'outline-offset' },
|
3358
|
+
inputOutlineWidth: { ...inputField$4, property: 'outline-width' },
|
3359
3359
|
inputResizeType: { ...textArea$2, property: 'resize' },
|
3360
3360
|
inputMinHeight: { ...textArea$2, property: 'min-height' },
|
3361
3361
|
},
|
@@ -3384,49 +3384,49 @@ const TextAreaClass = compose(
|
|
3384
3384
|
${resetInputCursor('vaadin-text-area')}
|
3385
3385
|
`,
|
3386
3386
|
excludeAttrsSync: ['tabindex'],
|
3387
|
-
componentName: componentName$
|
3387
|
+
componentName: componentName$w,
|
3388
3388
|
})
|
3389
3389
|
);
|
3390
3390
|
|
3391
|
-
const globalRefs$
|
3392
|
-
const vars$
|
3391
|
+
const globalRefs$f = getThemeRefs(globals);
|
3392
|
+
const vars$p = TextAreaClass.cssVarList;
|
3393
3393
|
|
3394
3394
|
const textArea = {
|
3395
|
-
[vars$
|
3396
|
-
[vars$
|
3397
|
-
[vars$
|
3398
|
-
[vars$
|
3399
|
-
[vars$
|
3400
|
-
[vars$
|
3401
|
-
[vars$
|
3402
|
-
[vars$
|
3403
|
-
[vars$
|
3404
|
-
[vars$
|
3405
|
-
[vars$
|
3406
|
-
[vars$
|
3407
|
-
[vars$
|
3408
|
-
[vars$
|
3409
|
-
[vars$
|
3410
|
-
[vars$
|
3411
|
-
[vars$
|
3412
|
-
[vars$
|
3413
|
-
[vars$
|
3414
|
-
[vars$
|
3415
|
-
[vars$
|
3416
|
-
|
3417
|
-
_disabled: {
|
3418
|
-
[vars$
|
3419
|
-
},
|
3420
|
-
|
3421
|
-
_readonly: {
|
3422
|
-
[vars$
|
3423
|
-
},
|
3424
|
-
};
|
3425
|
-
|
3426
|
-
var textArea$1 = /*#__PURE__*/Object.freeze({
|
3427
|
-
__proto__: null,
|
3428
|
-
default: textArea,
|
3429
|
-
vars: vars$
|
3395
|
+
[vars$p.hostWidth]: refs.width,
|
3396
|
+
[vars$p.hostMinWidth]: refs.minWidth,
|
3397
|
+
[vars$p.hostDirection]: refs.direction,
|
3398
|
+
[vars$p.fontSize]: refs.fontSize,
|
3399
|
+
[vars$p.fontFamily]: refs.fontFamily,
|
3400
|
+
[vars$p.labelTextColor]: refs.labelTextColor,
|
3401
|
+
[vars$p.labelRequiredIndicator]: refs.requiredIndicator,
|
3402
|
+
[vars$p.errorMessageTextColor]: refs.errorMessageTextColor,
|
3403
|
+
[vars$p.inputBackgroundColor]: refs.backgroundColor,
|
3404
|
+
[vars$p.inputValueTextColor]: refs.valueTextColor,
|
3405
|
+
[vars$p.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
3406
|
+
[vars$p.inputBorderRadius]: refs.borderRadius,
|
3407
|
+
[vars$p.inputBorderWidth]: refs.borderWidth,
|
3408
|
+
[vars$p.inputBorderStyle]: refs.borderStyle,
|
3409
|
+
[vars$p.inputBorderColor]: refs.borderColor,
|
3410
|
+
[vars$p.inputOutlineWidth]: refs.outlineWidth,
|
3411
|
+
[vars$p.inputOutlineStyle]: refs.outlineStyle,
|
3412
|
+
[vars$p.inputOutlineColor]: refs.outlineColor,
|
3413
|
+
[vars$p.inputOutlineOffset]: refs.outlineOffset,
|
3414
|
+
[vars$p.inputResizeType]: 'vertical',
|
3415
|
+
[vars$p.inputMinHeight]: '5em',
|
3416
|
+
|
3417
|
+
_disabled: {
|
3418
|
+
[vars$p.inputBackgroundColor]: globalRefs$f.colors.surface.light,
|
3419
|
+
},
|
3420
|
+
|
3421
|
+
_readonly: {
|
3422
|
+
[vars$p.inputResizeType]: 'none',
|
3423
|
+
},
|
3424
|
+
};
|
3425
|
+
|
3426
|
+
var textArea$1 = /*#__PURE__*/Object.freeze({
|
3427
|
+
__proto__: null,
|
3428
|
+
default: textArea,
|
3429
|
+
vars: vars$p
|
3430
3430
|
});
|
3431
3431
|
|
3432
3432
|
const createBaseInputClass = (...args) =>
|
@@ -3437,9 +3437,9 @@ const createBaseInputClass = (...args) =>
|
|
3437
3437
|
inputEventsDispatchingMixin
|
3438
3438
|
)(createBaseClass(...args));
|
3439
3439
|
|
3440
|
-
const componentName$
|
3440
|
+
const componentName$v = getComponentName('boolean-field-internal');
|
3441
3441
|
|
3442
|
-
createBaseInputClass({ componentName: componentName$
|
3442
|
+
createBaseInputClass({ componentName: componentName$v, baseSelector: 'div' });
|
3443
3443
|
|
3444
3444
|
const booleanFieldMixin = (superclass) =>
|
3445
3445
|
class BooleanFieldMixinClass extends superclass {
|
@@ -3448,14 +3448,14 @@ const booleanFieldMixin = (superclass) =>
|
|
3448
3448
|
|
3449
3449
|
const template = document.createElement('template');
|
3450
3450
|
template.innerHTML = `
|
3451
|
-
<${componentName$
|
3451
|
+
<${componentName$v}
|
3452
3452
|
tabindex="-1"
|
3453
3453
|
slot="input"
|
3454
|
-
></${componentName$
|
3454
|
+
></${componentName$v}>
|
3455
3455
|
`;
|
3456
3456
|
|
3457
3457
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
3458
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
3458
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$v);
|
3459
3459
|
this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
|
3460
3460
|
|
3461
3461
|
forwardAttrs(this, this.inputElement, {
|
@@ -3525,17 +3525,17 @@ descope-boolean-field-internal {
|
|
3525
3525
|
}
|
3526
3526
|
`;
|
3527
3527
|
|
3528
|
-
const componentName$
|
3528
|
+
const componentName$u = getComponentName('checkbox');
|
3529
3529
|
|
3530
3530
|
const {
|
3531
|
-
host: host$
|
3531
|
+
host: host$d,
|
3532
3532
|
component: component$1,
|
3533
3533
|
checkboxElement,
|
3534
3534
|
checkboxSurface,
|
3535
3535
|
checkboxLabel: checkboxLabel$1,
|
3536
|
-
requiredIndicator: requiredIndicator$
|
3537
|
-
helperText: helperText$
|
3538
|
-
errorMessage: errorMessage$
|
3536
|
+
requiredIndicator: requiredIndicator$8,
|
3537
|
+
helperText: helperText$6,
|
3538
|
+
errorMessage: errorMessage$8,
|
3539
3539
|
} = {
|
3540
3540
|
host: { selector: () => ':host' },
|
3541
3541
|
requiredIndicator: { selector: '[required] vaadin-checkbox [slot="label"]:not(:empty)::after' },
|
@@ -3550,19 +3550,19 @@ const {
|
|
3550
3550
|
const CheckboxClass = compose(
|
3551
3551
|
createStyleMixin({
|
3552
3552
|
mappings: {
|
3553
|
-
hostWidth: { ...host$
|
3554
|
-
hostDirection: { ...host$
|
3553
|
+
hostWidth: { ...host$d, property: 'width' },
|
3554
|
+
hostDirection: { ...host$d, property: 'direction' },
|
3555
3555
|
|
3556
|
-
fontSize: [host$
|
3557
|
-
fontFamily: [checkboxLabel$1, helperText$
|
3556
|
+
fontSize: [host$d, checkboxElement, checkboxLabel$1],
|
3557
|
+
fontFamily: [checkboxLabel$1, helperText$6, errorMessage$8],
|
3558
3558
|
|
3559
3559
|
labelTextColor: { ...checkboxLabel$1, property: 'color' },
|
3560
3560
|
labelSpacing: { ...checkboxLabel$1, property: 'padding-inline-start' },
|
3561
3561
|
labelLineHeight: { ...checkboxLabel$1, property: 'line-height' },
|
3562
3562
|
labelFontWeight: { ...checkboxLabel$1, property: 'font-weight' },
|
3563
|
-
labelRequiredIndicator: { ...requiredIndicator$
|
3563
|
+
labelRequiredIndicator: { ...requiredIndicator$8, property: 'content' },
|
3564
3564
|
|
3565
|
-
errorMessageTextColor: { ...errorMessage$
|
3565
|
+
errorMessageTextColor: { ...errorMessage$8, property: 'color' },
|
3566
3566
|
|
3567
3567
|
inputValueTextColor: { ...checkboxSurface, property: 'color' },
|
3568
3568
|
inputBackgroundColor: { ...checkboxElement, property: 'background-color' },
|
@@ -3631,61 +3631,61 @@ const CheckboxClass = compose(
|
|
3631
3631
|
}
|
3632
3632
|
`,
|
3633
3633
|
excludeAttrsSync: ['label', 'tabindex'],
|
3634
|
-
componentName: componentName$
|
3634
|
+
componentName: componentName$u,
|
3635
3635
|
})
|
3636
3636
|
);
|
3637
3637
|
|
3638
|
-
const vars$
|
3638
|
+
const vars$o = CheckboxClass.cssVarList;
|
3639
3639
|
const checkboxSize = '1.35em';
|
3640
3640
|
|
3641
3641
|
const checkbox = {
|
3642
|
-
[vars$
|
3643
|
-
[vars$
|
3644
|
-
[vars$
|
3645
|
-
[vars$
|
3646
|
-
[vars$
|
3647
|
-
[vars$
|
3648
|
-
[vars$
|
3649
|
-
[vars$
|
3650
|
-
[vars$
|
3651
|
-
[vars$
|
3652
|
-
[vars$
|
3653
|
-
[vars$
|
3654
|
-
[vars$
|
3655
|
-
[vars$
|
3656
|
-
[vars$
|
3657
|
-
[vars$
|
3658
|
-
[vars$
|
3659
|
-
[vars$
|
3660
|
-
[vars$
|
3661
|
-
[vars$
|
3642
|
+
[vars$o.hostWidth]: refs.width,
|
3643
|
+
[vars$o.hostDirection]: refs.direction,
|
3644
|
+
[vars$o.fontSize]: refs.fontSize,
|
3645
|
+
[vars$o.fontFamily]: refs.fontFamily,
|
3646
|
+
[vars$o.labelTextColor]: refs.labelTextColor,
|
3647
|
+
[vars$o.labelRequiredIndicator]: refs.requiredIndicator,
|
3648
|
+
[vars$o.labelFontWeight]: '400',
|
3649
|
+
[vars$o.labelLineHeight]: checkboxSize,
|
3650
|
+
[vars$o.labelSpacing]: '1em',
|
3651
|
+
[vars$o.errorMessageTextColor]: refs.errorMessageTextColor,
|
3652
|
+
[vars$o.inputOutlineWidth]: refs.outlineWidth,
|
3653
|
+
[vars$o.inputOutlineOffset]: refs.outlineOffset,
|
3654
|
+
[vars$o.inputOutlineColor]: refs.outlineColor,
|
3655
|
+
[vars$o.inputOutlineStyle]: refs.outlineStyle,
|
3656
|
+
[vars$o.inputBorderRadius]: refs.borderRadius,
|
3657
|
+
[vars$o.inputBorderColor]: refs.borderColor,
|
3658
|
+
[vars$o.inputBorderWidth]: refs.borderWidth,
|
3659
|
+
[vars$o.inputBorderStyle]: refs.borderStyle,
|
3660
|
+
[vars$o.inputBackgroundColor]: refs.backgroundColor,
|
3661
|
+
[vars$o.inputSize]: checkboxSize,
|
3662
3662
|
|
3663
3663
|
_checked: {
|
3664
|
-
[vars$
|
3664
|
+
[vars$o.inputValueTextColor]: refs.valueTextColor,
|
3665
3665
|
},
|
3666
3666
|
|
3667
3667
|
_disabled: {
|
3668
|
-
[vars$
|
3668
|
+
[vars$o.labelTextColor]: refs.labelTextColor,
|
3669
3669
|
},
|
3670
3670
|
};
|
3671
3671
|
|
3672
3672
|
var checkbox$1 = /*#__PURE__*/Object.freeze({
|
3673
3673
|
__proto__: null,
|
3674
3674
|
default: checkbox,
|
3675
|
-
vars: vars$
|
3675
|
+
vars: vars$o
|
3676
3676
|
});
|
3677
3677
|
|
3678
|
-
const componentName$
|
3678
|
+
const componentName$t = getComponentName('switch-toggle');
|
3679
3679
|
|
3680
3680
|
const {
|
3681
|
-
host: host$
|
3681
|
+
host: host$c,
|
3682
3682
|
component,
|
3683
3683
|
checkboxElement: track,
|
3684
3684
|
checkboxSurface: knob,
|
3685
3685
|
checkboxLabel,
|
3686
|
-
requiredIndicator: requiredIndicator$
|
3687
|
-
helperText: helperText$
|
3688
|
-
errorMessage: errorMessage$
|
3686
|
+
requiredIndicator: requiredIndicator$7,
|
3687
|
+
helperText: helperText$5,
|
3688
|
+
errorMessage: errorMessage$7,
|
3689
3689
|
} = {
|
3690
3690
|
host: { selector: () => ':host' },
|
3691
3691
|
requiredIndicator: { selector: '[required] vaadin-checkbox [slot="label"]:not(:empty)::after' },
|
@@ -3700,19 +3700,19 @@ const {
|
|
3700
3700
|
const SwitchToggleClass = compose(
|
3701
3701
|
createStyleMixin({
|
3702
3702
|
mappings: {
|
3703
|
-
hostWidth: { ...host$
|
3704
|
-
hostDirection: { ...host$
|
3703
|
+
hostWidth: { ...host$c, property: 'width' },
|
3704
|
+
hostDirection: { ...host$c, property: 'direction' },
|
3705
3705
|
|
3706
3706
|
fontSize: [component, checkboxLabel, checkboxLabel],
|
3707
|
-
fontFamily: [checkboxLabel, helperText$
|
3707
|
+
fontFamily: [checkboxLabel, helperText$5, errorMessage$7],
|
3708
3708
|
|
3709
3709
|
labelTextColor: { ...checkboxLabel, property: 'color' },
|
3710
3710
|
labelSpacing: { ...checkboxLabel, property: 'padding-inline-start' },
|
3711
3711
|
labelLineHeight: { ...checkboxLabel, property: 'line-height' },
|
3712
3712
|
labelFontWeight: { ...checkboxLabel, property: 'font-weight' },
|
3713
|
-
labelRequiredIndicator: { ...requiredIndicator$
|
3713
|
+
labelRequiredIndicator: { ...requiredIndicator$7, property: 'content' },
|
3714
3714
|
|
3715
|
-
errorMessageTextColor: { ...errorMessage$
|
3715
|
+
errorMessageTextColor: { ...errorMessage$7, property: 'color' },
|
3716
3716
|
|
3717
3717
|
trackBorderWidth: { ...track, property: 'border-width' },
|
3718
3718
|
trackBorderStyle: { ...track, property: 'border-style' },
|
@@ -3807,83 +3807,83 @@ const SwitchToggleClass = compose(
|
|
3807
3807
|
}
|
3808
3808
|
`,
|
3809
3809
|
excludeAttrsSync: ['label', 'tabindex'],
|
3810
|
-
componentName: componentName$
|
3810
|
+
componentName: componentName$t,
|
3811
3811
|
})
|
3812
3812
|
);
|
3813
3813
|
|
3814
3814
|
const knobMargin = '2px';
|
3815
3815
|
const checkboxHeight = '1.25em';
|
3816
3816
|
|
3817
|
-
const globalRefs$
|
3818
|
-
const vars$
|
3817
|
+
const globalRefs$e = getThemeRefs(globals);
|
3818
|
+
const vars$n = SwitchToggleClass.cssVarList;
|
3819
3819
|
|
3820
3820
|
const switchToggle = {
|
3821
|
-
[vars$
|
3822
|
-
[vars$
|
3823
|
-
[vars$
|
3824
|
-
[vars$
|
3825
|
-
|
3826
|
-
[vars$
|
3827
|
-
[vars$
|
3828
|
-
[vars$
|
3829
|
-
[vars$
|
3830
|
-
|
3831
|
-
[vars$
|
3832
|
-
[vars$
|
3833
|
-
[vars$
|
3834
|
-
[vars$
|
3835
|
-
[vars$
|
3836
|
-
[vars$
|
3837
|
-
[vars$
|
3838
|
-
|
3839
|
-
[vars$
|
3840
|
-
[vars$
|
3841
|
-
[vars$
|
3842
|
-
[vars$
|
3843
|
-
[vars$
|
3844
|
-
[vars$
|
3845
|
-
|
3846
|
-
[vars$
|
3847
|
-
[vars$
|
3848
|
-
[vars$
|
3849
|
-
[vars$
|
3850
|
-
[vars$
|
3851
|
-
[vars$
|
3821
|
+
[vars$n.hostWidth]: refs.width,
|
3822
|
+
[vars$n.hostDirection]: refs.direction,
|
3823
|
+
[vars$n.fontSize]: refs.fontSize,
|
3824
|
+
[vars$n.fontFamily]: refs.fontFamily,
|
3825
|
+
|
3826
|
+
[vars$n.inputOutlineWidth]: refs.outlineWidth,
|
3827
|
+
[vars$n.inputOutlineOffset]: refs.outlineOffset,
|
3828
|
+
[vars$n.inputOutlineColor]: refs.outlineColor,
|
3829
|
+
[vars$n.inputOutlineStyle]: refs.outlineStyle,
|
3830
|
+
|
3831
|
+
[vars$n.trackBorderStyle]: refs.borderStyle,
|
3832
|
+
[vars$n.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
3833
|
+
[vars$n.trackBorderColor]: refs.borderColor,
|
3834
|
+
[vars$n.trackBackgroundColor]: 'none',
|
3835
|
+
[vars$n.trackBorderRadius]: globalRefs$e.radius.md,
|
3836
|
+
[vars$n.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
3837
|
+
[vars$n.trackHeight]: checkboxHeight,
|
3838
|
+
|
3839
|
+
[vars$n.knobSize]: `calc(1em - ${knobMargin})`,
|
3840
|
+
[vars$n.knobRadius]: '50%',
|
3841
|
+
[vars$n.knobTopOffset]: '1px',
|
3842
|
+
[vars$n.knobLeftOffset]: knobMargin,
|
3843
|
+
[vars$n.knobColor]: refs.valueTextColor,
|
3844
|
+
[vars$n.knobTransitionDuration]: '0.3s',
|
3845
|
+
|
3846
|
+
[vars$n.labelTextColor]: refs.labelTextColor,
|
3847
|
+
[vars$n.labelFontWeight]: '400',
|
3848
|
+
[vars$n.labelLineHeight]: '1.35em',
|
3849
|
+
[vars$n.labelSpacing]: '1em',
|
3850
|
+
[vars$n.labelRequiredIndicator]: refs.requiredIndicator,
|
3851
|
+
[vars$n.errorMessageTextColor]: refs.errorMessageTextColor,
|
3852
3852
|
|
3853
3853
|
_checked: {
|
3854
|
-
[vars$
|
3855
|
-
[vars$
|
3856
|
-
[vars$
|
3857
|
-
[vars$
|
3858
|
-
[vars$
|
3854
|
+
[vars$n.trackBorderColor]: refs.borderColor,
|
3855
|
+
[vars$n.trackBackgroundColor]: refs.backgroundColor,
|
3856
|
+
[vars$n.knobLeftOffset]: `calc(100% - var(${vars$n.knobSize}) - ${knobMargin})`,
|
3857
|
+
[vars$n.knobColor]: refs.valueTextColor,
|
3858
|
+
[vars$n.knobTextColor]: refs.valueTextColor,
|
3859
3859
|
},
|
3860
3860
|
|
3861
3861
|
_disabled: {
|
3862
|
-
[vars$
|
3863
|
-
[vars$
|
3864
|
-
[vars$
|
3865
|
-
[vars$
|
3862
|
+
[vars$n.knobColor]: globalRefs$e.colors.surface.light,
|
3863
|
+
[vars$n.trackBorderColor]: globalRefs$e.colors.surface.main,
|
3864
|
+
[vars$n.trackBackgroundColor]: globalRefs$e.colors.surface.main,
|
3865
|
+
[vars$n.labelTextColor]: refs.labelTextColor,
|
3866
3866
|
_checked: {
|
3867
|
-
[vars$
|
3868
|
-
[vars$
|
3867
|
+
[vars$n.knobColor]: globalRefs$e.colors.surface.light,
|
3868
|
+
[vars$n.trackBackgroundColor]: globalRefs$e.colors.surface.main,
|
3869
3869
|
},
|
3870
3870
|
},
|
3871
3871
|
|
3872
3872
|
_invalid: {
|
3873
|
-
[vars$
|
3874
|
-
[vars$
|
3873
|
+
[vars$n.trackBorderColor]: globalRefs$e.colors.error.main,
|
3874
|
+
[vars$n.knobColor]: globalRefs$e.colors.error.main,
|
3875
3875
|
},
|
3876
3876
|
};
|
3877
3877
|
|
3878
3878
|
var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
3879
3879
|
__proto__: null,
|
3880
3880
|
default: switchToggle,
|
3881
|
-
vars: vars$
|
3881
|
+
vars: vars$n
|
3882
3882
|
});
|
3883
3883
|
|
3884
|
-
const componentName$
|
3884
|
+
const componentName$s = getComponentName('container');
|
3885
3885
|
|
3886
|
-
class RawContainer extends createBaseClass({ componentName: componentName$
|
3886
|
+
class RawContainer extends createBaseClass({ componentName: componentName$s, baseSelector: 'slot' }) {
|
3887
3887
|
constructor() {
|
3888
3888
|
super();
|
3889
3889
|
|
@@ -3935,7 +3935,7 @@ const ContainerClass = compose(
|
|
3935
3935
|
componentNameValidationMixin
|
3936
3936
|
)(RawContainer);
|
3937
3937
|
|
3938
|
-
const globalRefs$
|
3938
|
+
const globalRefs$d = getThemeRefs(globals);
|
3939
3939
|
|
3940
3940
|
const compVars$3 = ContainerClass.cssVarList;
|
3941
3941
|
|
@@ -3957,7 +3957,7 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
|
|
3957
3957
|
horizontalAlignment,
|
3958
3958
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
3959
3959
|
},
|
3960
|
-
componentName$
|
3960
|
+
componentName$s
|
3961
3961
|
);
|
3962
3962
|
|
3963
3963
|
const { shadowColor: shadowColor$1 } = helperRefs$2;
|
@@ -3967,8 +3967,8 @@ const container = {
|
|
3967
3967
|
|
3968
3968
|
[compVars$3.hostWidth]: '100%',
|
3969
3969
|
[compVars$3.boxShadow]: 'none',
|
3970
|
-
[compVars$3.backgroundColor]: globalRefs$
|
3971
|
-
[compVars$3.color]: globalRefs$
|
3970
|
+
[compVars$3.backgroundColor]: globalRefs$d.colors.surface.light,
|
3971
|
+
[compVars$3.color]: globalRefs$d.colors.surface.contrast,
|
3972
3972
|
[compVars$3.borderRadius]: '0px',
|
3973
3973
|
|
3974
3974
|
verticalPadding: {
|
@@ -4015,34 +4015,34 @@ const container = {
|
|
4015
4015
|
|
4016
4016
|
shadow: {
|
4017
4017
|
sm: {
|
4018
|
-
[compVars$3.boxShadow]: `${globalRefs$
|
4018
|
+
[compVars$3.boxShadow]: `${globalRefs$d.shadow.wide.sm} ${shadowColor$1}, ${globalRefs$d.shadow.narrow.sm} ${shadowColor$1}`,
|
4019
4019
|
},
|
4020
4020
|
md: {
|
4021
|
-
[compVars$3.boxShadow]: `${globalRefs$
|
4021
|
+
[compVars$3.boxShadow]: `${globalRefs$d.shadow.wide.md} ${shadowColor$1}, ${globalRefs$d.shadow.narrow.md} ${shadowColor$1}`,
|
4022
4022
|
},
|
4023
4023
|
lg: {
|
4024
|
-
[compVars$3.boxShadow]: `${globalRefs$
|
4024
|
+
[compVars$3.boxShadow]: `${globalRefs$d.shadow.wide.lg} ${shadowColor$1}, ${globalRefs$d.shadow.narrow.lg} ${shadowColor$1}`,
|
4025
4025
|
},
|
4026
4026
|
xl: {
|
4027
|
-
[compVars$3.boxShadow]: `${globalRefs$
|
4027
|
+
[compVars$3.boxShadow]: `${globalRefs$d.shadow.wide.xl} ${shadowColor$1}, ${globalRefs$d.shadow.narrow.xl} ${shadowColor$1}`,
|
4028
4028
|
},
|
4029
4029
|
'2xl': {
|
4030
4030
|
[helperVars$2.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
4031
|
-
[compVars$3.boxShadow]: `${globalRefs$
|
4031
|
+
[compVars$3.boxShadow]: `${globalRefs$d.shadow.wide['2xl']} ${shadowColor$1}`,
|
4032
4032
|
},
|
4033
4033
|
},
|
4034
4034
|
|
4035
4035
|
borderRadius: {
|
4036
|
-
sm: { [compVars$3.borderRadius]: globalRefs$
|
4037
|
-
md: { [compVars$3.borderRadius]: globalRefs$
|
4038
|
-
lg: { [compVars$3.borderRadius]: globalRefs$
|
4039
|
-
xl: { [compVars$3.borderRadius]: globalRefs$
|
4040
|
-
'2xl': { [compVars$3.borderRadius]: globalRefs$
|
4041
|
-
'3xl': { [compVars$3.borderRadius]: globalRefs$
|
4036
|
+
sm: { [compVars$3.borderRadius]: globalRefs$d.radius.sm },
|
4037
|
+
md: { [compVars$3.borderRadius]: globalRefs$d.radius.md },
|
4038
|
+
lg: { [compVars$3.borderRadius]: globalRefs$d.radius.lg },
|
4039
|
+
xl: { [compVars$3.borderRadius]: globalRefs$d.radius.xl },
|
4040
|
+
'2xl': { [compVars$3.borderRadius]: globalRefs$d.radius['2xl'] },
|
4041
|
+
'3xl': { [compVars$3.borderRadius]: globalRefs$d.radius['3xl'] },
|
4042
4042
|
},
|
4043
4043
|
};
|
4044
4044
|
|
4045
|
-
const vars$
|
4045
|
+
const vars$m = {
|
4046
4046
|
...compVars$3,
|
4047
4047
|
...helperVars$2,
|
4048
4048
|
};
|
@@ -4050,7 +4050,7 @@ const vars$l = {
|
|
4050
4050
|
var container$1 = /*#__PURE__*/Object.freeze({
|
4051
4051
|
__proto__: null,
|
4052
4052
|
default: container,
|
4053
|
-
vars: vars$
|
4053
|
+
vars: vars$m
|
4054
4054
|
});
|
4055
4055
|
|
4056
4056
|
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
@@ -4103,51 +4103,51 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
|
|
4103
4103
|
return CssVarImageClass;
|
4104
4104
|
};
|
4105
4105
|
|
4106
|
-
const componentName$
|
4106
|
+
const componentName$r = getComponentName('logo');
|
4107
4107
|
|
4108
4108
|
const LogoClass = createCssVarImageClass({
|
4109
|
-
componentName: componentName$
|
4109
|
+
componentName: componentName$r,
|
4110
4110
|
varName: 'url',
|
4111
4111
|
fallbackVarName: 'fallbackUrl',
|
4112
4112
|
});
|
4113
4113
|
|
4114
|
-
const vars$
|
4114
|
+
const vars$l = LogoClass.cssVarList;
|
4115
4115
|
|
4116
4116
|
const logo$1 = {
|
4117
|
-
[vars$
|
4117
|
+
[vars$l.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
|
4118
4118
|
};
|
4119
4119
|
|
4120
4120
|
var logo$2 = /*#__PURE__*/Object.freeze({
|
4121
4121
|
__proto__: null,
|
4122
4122
|
default: logo$1,
|
4123
|
-
vars: vars$
|
4123
|
+
vars: vars$l
|
4124
4124
|
});
|
4125
4125
|
|
4126
|
-
const componentName$
|
4126
|
+
const componentName$q = getComponentName('totp-image');
|
4127
4127
|
|
4128
4128
|
const TotpImageClass = createCssVarImageClass({
|
4129
|
-
componentName: componentName$
|
4129
|
+
componentName: componentName$q,
|
4130
4130
|
varName: 'url',
|
4131
4131
|
fallbackVarName: 'fallbackUrl',
|
4132
4132
|
});
|
4133
4133
|
|
4134
|
-
const vars$
|
4134
|
+
const vars$k = TotpImageClass.cssVarList;
|
4135
4135
|
|
4136
4136
|
const logo = {
|
4137
|
-
[vars$
|
4137
|
+
[vars$k.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
|
4138
4138
|
};
|
4139
4139
|
|
4140
4140
|
var totpImage = /*#__PURE__*/Object.freeze({
|
4141
4141
|
__proto__: null,
|
4142
4142
|
default: logo,
|
4143
|
-
vars: vars$
|
4143
|
+
vars: vars$k
|
4144
4144
|
});
|
4145
4145
|
|
4146
4146
|
// eslint-disable-next-line max-classes-per-file
|
4147
4147
|
|
4148
|
-
const componentName$
|
4148
|
+
const componentName$p = getComponentName('text');
|
4149
4149
|
|
4150
|
-
class RawText extends createBaseClass({ componentName: componentName$
|
4150
|
+
class RawText extends createBaseClass({ componentName: componentName$p, baseSelector: ':host > slot' }) {
|
4151
4151
|
constructor() {
|
4152
4152
|
super();
|
4153
4153
|
|
@@ -4207,99 +4207,99 @@ const TextClass = compose(
|
|
4207
4207
|
customTextMixin
|
4208
4208
|
)(RawText);
|
4209
4209
|
|
4210
|
-
const globalRefs$
|
4211
|
-
const vars$
|
4210
|
+
const globalRefs$c = getThemeRefs(globals);
|
4211
|
+
const vars$j = TextClass.cssVarList;
|
4212
4212
|
|
4213
4213
|
const text$2 = {
|
4214
|
-
[vars$
|
4215
|
-
[vars$
|
4216
|
-
[vars$
|
4217
|
-
[vars$
|
4214
|
+
[vars$j.hostDirection]: globalRefs$c.direction,
|
4215
|
+
[vars$j.textLineHeight]: '1.35em',
|
4216
|
+
[vars$j.textAlign]: 'left',
|
4217
|
+
[vars$j.textColor]: globalRefs$c.colors.surface.dark,
|
4218
4218
|
variant: {
|
4219
4219
|
h1: {
|
4220
|
-
[vars$
|
4221
|
-
[vars$
|
4222
|
-
[vars$
|
4220
|
+
[vars$j.fontSize]: globalRefs$c.typography.h1.size,
|
4221
|
+
[vars$j.fontWeight]: globalRefs$c.typography.h1.weight,
|
4222
|
+
[vars$j.fontFamily]: globalRefs$c.typography.h1.font,
|
4223
4223
|
},
|
4224
4224
|
h2: {
|
4225
|
-
[vars$
|
4226
|
-
[vars$
|
4227
|
-
[vars$
|
4225
|
+
[vars$j.fontSize]: globalRefs$c.typography.h2.size,
|
4226
|
+
[vars$j.fontWeight]: globalRefs$c.typography.h2.weight,
|
4227
|
+
[vars$j.fontFamily]: globalRefs$c.typography.h2.font,
|
4228
4228
|
},
|
4229
4229
|
h3: {
|
4230
|
-
[vars$
|
4231
|
-
[vars$
|
4232
|
-
[vars$
|
4230
|
+
[vars$j.fontSize]: globalRefs$c.typography.h3.size,
|
4231
|
+
[vars$j.fontWeight]: globalRefs$c.typography.h3.weight,
|
4232
|
+
[vars$j.fontFamily]: globalRefs$c.typography.h3.font,
|
4233
4233
|
},
|
4234
4234
|
subtitle1: {
|
4235
|
-
[vars$
|
4236
|
-
[vars$
|
4237
|
-
[vars$
|
4235
|
+
[vars$j.fontSize]: globalRefs$c.typography.subtitle1.size,
|
4236
|
+
[vars$j.fontWeight]: globalRefs$c.typography.subtitle1.weight,
|
4237
|
+
[vars$j.fontFamily]: globalRefs$c.typography.subtitle1.font,
|
4238
4238
|
},
|
4239
4239
|
subtitle2: {
|
4240
|
-
[vars$
|
4241
|
-
[vars$
|
4242
|
-
[vars$
|
4240
|
+
[vars$j.fontSize]: globalRefs$c.typography.subtitle2.size,
|
4241
|
+
[vars$j.fontWeight]: globalRefs$c.typography.subtitle2.weight,
|
4242
|
+
[vars$j.fontFamily]: globalRefs$c.typography.subtitle2.font,
|
4243
4243
|
},
|
4244
4244
|
body1: {
|
4245
|
-
[vars$
|
4246
|
-
[vars$
|
4247
|
-
[vars$
|
4245
|
+
[vars$j.fontSize]: globalRefs$c.typography.body1.size,
|
4246
|
+
[vars$j.fontWeight]: globalRefs$c.typography.body1.weight,
|
4247
|
+
[vars$j.fontFamily]: globalRefs$c.typography.body1.font,
|
4248
4248
|
},
|
4249
4249
|
body2: {
|
4250
|
-
[vars$
|
4251
|
-
[vars$
|
4252
|
-
[vars$
|
4250
|
+
[vars$j.fontSize]: globalRefs$c.typography.body2.size,
|
4251
|
+
[vars$j.fontWeight]: globalRefs$c.typography.body2.weight,
|
4252
|
+
[vars$j.fontFamily]: globalRefs$c.typography.body2.font,
|
4253
4253
|
},
|
4254
4254
|
},
|
4255
4255
|
|
4256
4256
|
mode: {
|
4257
4257
|
primary: {
|
4258
|
-
[vars$
|
4258
|
+
[vars$j.textColor]: globalRefs$c.colors.primary.main,
|
4259
4259
|
},
|
4260
4260
|
secondary: {
|
4261
|
-
[vars$
|
4261
|
+
[vars$j.textColor]: globalRefs$c.colors.secondary.main,
|
4262
4262
|
},
|
4263
4263
|
error: {
|
4264
|
-
[vars$
|
4264
|
+
[vars$j.textColor]: globalRefs$c.colors.error.main,
|
4265
4265
|
},
|
4266
4266
|
success: {
|
4267
|
-
[vars$
|
4267
|
+
[vars$j.textColor]: globalRefs$c.colors.success.main,
|
4268
4268
|
},
|
4269
4269
|
},
|
4270
4270
|
|
4271
4271
|
textAlign: {
|
4272
|
-
right: { [vars$
|
4273
|
-
left: { [vars$
|
4274
|
-
center: { [vars$
|
4272
|
+
right: { [vars$j.textAlign]: 'right' },
|
4273
|
+
left: { [vars$j.textAlign]: 'left' },
|
4274
|
+
center: { [vars$j.textAlign]: 'center' },
|
4275
4275
|
},
|
4276
4276
|
|
4277
4277
|
_fullWidth: {
|
4278
|
-
[vars$
|
4278
|
+
[vars$j.hostWidth]: '100%',
|
4279
4279
|
},
|
4280
4280
|
|
4281
4281
|
_italic: {
|
4282
|
-
[vars$
|
4282
|
+
[vars$j.fontStyle]: 'italic',
|
4283
4283
|
},
|
4284
4284
|
|
4285
4285
|
_uppercase: {
|
4286
|
-
[vars$
|
4286
|
+
[vars$j.textTransform]: 'uppercase',
|
4287
4287
|
},
|
4288
4288
|
|
4289
4289
|
_lowercase: {
|
4290
|
-
[vars$
|
4290
|
+
[vars$j.textTransform]: 'lowercase',
|
4291
4291
|
},
|
4292
4292
|
};
|
4293
4293
|
|
4294
4294
|
var text$3 = /*#__PURE__*/Object.freeze({
|
4295
4295
|
__proto__: null,
|
4296
4296
|
default: text$2,
|
4297
|
-
vars: vars$
|
4297
|
+
vars: vars$j
|
4298
4298
|
});
|
4299
4299
|
|
4300
|
-
const componentName$
|
4300
|
+
const componentName$o = getComponentName('link');
|
4301
4301
|
|
4302
|
-
class RawLink extends createBaseClass({ componentName: componentName$
|
4302
|
+
class RawLink extends createBaseClass({ componentName: componentName$o, baseSelector: ':host a' }) {
|
4303
4303
|
constructor() {
|
4304
4304
|
super();
|
4305
4305
|
|
@@ -4345,12 +4345,12 @@ const selectors$2 = {
|
|
4345
4345
|
text: { selector: () => TextClass.componentName },
|
4346
4346
|
};
|
4347
4347
|
|
4348
|
-
const { anchor, text: text$1, host: host$
|
4348
|
+
const { anchor, text: text$1, host: host$b, wrapper: wrapper$1 } = selectors$2;
|
4349
4349
|
|
4350
4350
|
const LinkClass = compose(
|
4351
4351
|
createStyleMixin({
|
4352
4352
|
mappings: {
|
4353
|
-
hostWidth: { ...host$
|
4353
|
+
hostWidth: { ...host$b, property: 'width' },
|
4354
4354
|
hostDirection: { ...text$1, property: 'direction' },
|
4355
4355
|
textAlign: wrapper$1,
|
4356
4356
|
textColor: [
|
@@ -4364,37 +4364,37 @@ const LinkClass = compose(
|
|
4364
4364
|
componentNameValidationMixin
|
4365
4365
|
)(RawLink);
|
4366
4366
|
|
4367
|
-
const globalRefs$
|
4368
|
-
const vars$
|
4367
|
+
const globalRefs$b = getThemeRefs(globals);
|
4368
|
+
const vars$i = LinkClass.cssVarList;
|
4369
4369
|
|
4370
4370
|
const link = {
|
4371
|
-
[vars$
|
4372
|
-
[vars$
|
4371
|
+
[vars$i.hostDirection]: globalRefs$b.direction,
|
4372
|
+
[vars$i.cursor]: 'pointer',
|
4373
4373
|
|
4374
|
-
[vars$
|
4374
|
+
[vars$i.textColor]: globalRefs$b.colors.primary.main,
|
4375
4375
|
|
4376
4376
|
textAlign: {
|
4377
|
-
right: { [vars$
|
4378
|
-
left: { [vars$
|
4379
|
-
center: { [vars$
|
4377
|
+
right: { [vars$i.textAlign]: 'right' },
|
4378
|
+
left: { [vars$i.textAlign]: 'left' },
|
4379
|
+
center: { [vars$i.textAlign]: 'center' },
|
4380
4380
|
},
|
4381
4381
|
|
4382
4382
|
_fullWidth: {
|
4383
|
-
[vars$
|
4383
|
+
[vars$i.hostWidth]: '100%',
|
4384
4384
|
},
|
4385
4385
|
|
4386
4386
|
mode: {
|
4387
4387
|
primary: {
|
4388
|
-
[vars$
|
4388
|
+
[vars$i.textColor]: globalRefs$b.colors.primary.main,
|
4389
4389
|
},
|
4390
4390
|
secondary: {
|
4391
|
-
[vars$
|
4391
|
+
[vars$i.textColor]: globalRefs$b.colors.secondary.main,
|
4392
4392
|
},
|
4393
4393
|
error: {
|
4394
|
-
[vars$
|
4394
|
+
[vars$i.textColor]: globalRefs$b.colors.error.main,
|
4395
4395
|
},
|
4396
4396
|
success: {
|
4397
|
-
[vars$
|
4397
|
+
[vars$i.textColor]: globalRefs$b.colors.success.main,
|
4398
4398
|
},
|
4399
4399
|
},
|
4400
4400
|
};
|
@@ -4402,11 +4402,11 @@ const link = {
|
|
4402
4402
|
var link$1 = /*#__PURE__*/Object.freeze({
|
4403
4403
|
__proto__: null,
|
4404
4404
|
default: link,
|
4405
|
-
vars: vars$
|
4405
|
+
vars: vars$i
|
4406
4406
|
});
|
4407
4407
|
|
4408
|
-
const componentName$
|
4409
|
-
class RawDivider extends createBaseClass({ componentName: componentName$
|
4408
|
+
const componentName$n = getComponentName('divider');
|
4409
|
+
class RawDivider extends createBaseClass({ componentName: componentName$n, baseSelector: ':host > div' }) {
|
4410
4410
|
constructor() {
|
4411
4411
|
super();
|
4412
4412
|
|
@@ -4452,7 +4452,7 @@ class RawDivider extends createBaseClass({ componentName: componentName$m, baseS
|
|
4452
4452
|
}
|
4453
4453
|
|
4454
4454
|
const textVars$3 = TextClass.cssVarList;
|
4455
|
-
const { host: host$
|
4455
|
+
const { host: host$a, before, after: after$1, text } = {
|
4456
4456
|
host: { selector: () => ':host' },
|
4457
4457
|
before: { selector: '::before' },
|
4458
4458
|
after: { selector: '::after' },
|
@@ -4462,8 +4462,8 @@ const { host: host$9, before, after: after$1, text } = {
|
|
4462
4462
|
const DividerClass = compose(
|
4463
4463
|
createStyleMixin({
|
4464
4464
|
mappings: {
|
4465
|
-
hostWidth: { ...host$
|
4466
|
-
hostPadding: { ...host$
|
4465
|
+
hostWidth: { ...host$a, property: 'width' },
|
4466
|
+
hostPadding: { ...host$a, property: 'padding' },
|
4467
4467
|
hostDirection: { ...text, property: 'direction' },
|
4468
4468
|
|
4469
4469
|
minHeight: {},
|
@@ -4505,7 +4505,7 @@ const DividerClass = compose(
|
|
4505
4505
|
componentNameValidationMixin
|
4506
4506
|
)(RawDivider);
|
4507
4507
|
|
4508
|
-
const globalRefs$
|
4508
|
+
const globalRefs$a = getThemeRefs(globals);
|
4509
4509
|
const compVars$2 = DividerClass.cssVarList;
|
4510
4510
|
|
4511
4511
|
const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
@@ -4513,18 +4513,18 @@ const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
|
4513
4513
|
thickness: '2px',
|
4514
4514
|
spacing: '10px',
|
4515
4515
|
},
|
4516
|
-
componentName$
|
4516
|
+
componentName$n
|
4517
4517
|
);
|
4518
4518
|
|
4519
4519
|
const divider = {
|
4520
4520
|
...helperTheme$1,
|
4521
4521
|
|
4522
|
-
[compVars$2.hostDirection]: globalRefs$
|
4522
|
+
[compVars$2.hostDirection]: globalRefs$a.direction,
|
4523
4523
|
[compVars$2.alignItems]: 'center',
|
4524
4524
|
[compVars$2.flexDirection]: 'row',
|
4525
4525
|
[compVars$2.alignSelf]: 'stretch',
|
4526
4526
|
[compVars$2.hostWidth]: '100%',
|
4527
|
-
[compVars$2.stripeColor]: globalRefs$
|
4527
|
+
[compVars$2.stripeColor]: globalRefs$a.colors.surface.main,
|
4528
4528
|
[compVars$2.stripeColorOpacity]: '0.5',
|
4529
4529
|
[compVars$2.stripeHorizontalThickness]: helperRefs$1.thickness,
|
4530
4530
|
[compVars$2.labelTextWidth]: 'fit-content',
|
@@ -4544,7 +4544,7 @@ const divider = {
|
|
4544
4544
|
},
|
4545
4545
|
};
|
4546
4546
|
|
4547
|
-
const vars$
|
4547
|
+
const vars$h = {
|
4548
4548
|
...compVars$2,
|
4549
4549
|
...helperVars$1,
|
4550
4550
|
};
|
@@ -4552,16 +4552,16 @@ const vars$g = {
|
|
4552
4552
|
var divider$1 = /*#__PURE__*/Object.freeze({
|
4553
4553
|
__proto__: null,
|
4554
4554
|
default: divider,
|
4555
|
-
vars: vars$
|
4555
|
+
vars: vars$h
|
4556
4556
|
});
|
4557
4557
|
|
4558
4558
|
/* eslint-disable no-param-reassign */
|
4559
4559
|
|
4560
|
-
const componentName$
|
4560
|
+
const componentName$m = getComponentName('passcode-internal');
|
4561
4561
|
|
4562
|
-
createBaseInputClass({ componentName: componentName$
|
4562
|
+
createBaseInputClass({ componentName: componentName$m, baseSelector: 'div' });
|
4563
4563
|
|
4564
|
-
const componentName$
|
4564
|
+
const componentName$l = getComponentName('passcode');
|
4565
4565
|
|
4566
4566
|
const observedAttributes$3 = ['digits'];
|
4567
4567
|
|
@@ -4580,17 +4580,17 @@ const customMixin$5 = (superclass) =>
|
|
4580
4580
|
const template = document.createElement('template');
|
4581
4581
|
|
4582
4582
|
template.innerHTML = `
|
4583
|
-
<${componentName$
|
4583
|
+
<${componentName$m}
|
4584
4584
|
bordered="true"
|
4585
4585
|
name="code"
|
4586
4586
|
tabindex="-1"
|
4587
4587
|
slot="input"
|
4588
|
-
><slot></slot></${componentName$
|
4588
|
+
><slot></slot></${componentName$m}>
|
4589
4589
|
`;
|
4590
4590
|
|
4591
4591
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
4592
4592
|
|
4593
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
4593
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$m);
|
4594
4594
|
|
4595
4595
|
forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size'] });
|
4596
4596
|
}
|
@@ -4605,13 +4605,13 @@ const customMixin$5 = (superclass) =>
|
|
4605
4605
|
};
|
4606
4606
|
|
4607
4607
|
const {
|
4608
|
-
host: host$
|
4608
|
+
host: host$9,
|
4609
4609
|
digitField,
|
4610
|
-
label: label$
|
4611
|
-
requiredIndicator: requiredIndicator$
|
4610
|
+
label: label$6,
|
4611
|
+
requiredIndicator: requiredIndicator$6,
|
4612
4612
|
internalWrapper: internalWrapper$1,
|
4613
4613
|
focusedDigitField,
|
4614
|
-
errorMessage: errorMessage$
|
4614
|
+
errorMessage: errorMessage$6,
|
4615
4615
|
} = {
|
4616
4616
|
host: { selector: () => ':host' },
|
4617
4617
|
focusedDigitField: { selector: () => `${TextFieldClass.componentName}[focused="true"]` },
|
@@ -4627,16 +4627,16 @@ const textVars$2 = TextFieldClass.cssVarList;
|
|
4627
4627
|
const PasscodeClass = compose(
|
4628
4628
|
createStyleMixin({
|
4629
4629
|
mappings: {
|
4630
|
-
fontSize: [{ ...digitField, property: textVars$2.fontSize }, host$
|
4630
|
+
fontSize: [{ ...digitField, property: textVars$2.fontSize }, host$9],
|
4631
4631
|
hostWidth: { property: 'width' },
|
4632
|
-
hostDirection: { ...host$
|
4633
|
-
fontFamily: [host$
|
4632
|
+
hostDirection: { ...host$9, property: 'direction' },
|
4633
|
+
fontFamily: [host$9, { ...label$6 }],
|
4634
4634
|
labelTextColor: [
|
4635
|
-
{ ...label$
|
4636
|
-
{ ...requiredIndicator$
|
4635
|
+
{ ...label$6, property: 'color' },
|
4636
|
+
{ ...requiredIndicator$6, property: 'color' },
|
4637
4637
|
],
|
4638
|
-
labelRequiredIndicator: { ...requiredIndicator$
|
4639
|
-
errorMessageTextColor: { ...errorMessage$
|
4638
|
+
labelRequiredIndicator: { ...requiredIndicator$6, property: 'content' },
|
4639
|
+
errorMessageTextColor: { ...errorMessage$6, property: 'color' },
|
4640
4640
|
digitValueTextColor: {
|
4641
4641
|
selector: TextFieldClass.componentName,
|
4642
4642
|
property: textVars$2.inputValueTextColor,
|
@@ -4730,45 +4730,45 @@ const PasscodeClass = compose(
|
|
4730
4730
|
${resetInputCursor('vaadin-text-field')}
|
4731
4731
|
`,
|
4732
4732
|
excludeAttrsSync: ['tabindex'],
|
4733
|
-
componentName: componentName$
|
4733
|
+
componentName: componentName$l,
|
4734
4734
|
})
|
4735
4735
|
);
|
4736
4736
|
|
4737
|
-
const vars$
|
4737
|
+
const vars$g = PasscodeClass.cssVarList;
|
4738
4738
|
|
4739
4739
|
const passcode = {
|
4740
|
-
[vars$
|
4741
|
-
[vars$
|
4742
|
-
[vars$
|
4743
|
-
[vars$
|
4744
|
-
[vars$
|
4745
|
-
[vars$
|
4746
|
-
[vars$
|
4747
|
-
[vars$
|
4748
|
-
[vars$
|
4749
|
-
[vars$
|
4750
|
-
[vars$
|
4751
|
-
[vars$
|
4752
|
-
[vars$
|
4753
|
-
[vars$
|
4754
|
-
[vars$
|
4740
|
+
[vars$g.hostDirection]: refs.direction,
|
4741
|
+
[vars$g.fontFamily]: refs.fontFamily,
|
4742
|
+
[vars$g.fontSize]: refs.fontSize,
|
4743
|
+
[vars$g.labelTextColor]: refs.labelTextColor,
|
4744
|
+
[vars$g.labelRequiredIndicator]: refs.requiredIndicator,
|
4745
|
+
[vars$g.errorMessageTextColor]: refs.errorMessageTextColor,
|
4746
|
+
[vars$g.digitValueTextColor]: refs.valueTextColor,
|
4747
|
+
[vars$g.digitPadding]: '0',
|
4748
|
+
[vars$g.digitTextAlign]: 'center',
|
4749
|
+
[vars$g.digitSpacing]: '4px',
|
4750
|
+
[vars$g.hostWidth]: refs.width,
|
4751
|
+
[vars$g.digitOutlineColor]: 'transparent',
|
4752
|
+
[vars$g.digitOutlineWidth]: refs.outlineWidth,
|
4753
|
+
[vars$g.focusedDigitFieldOutlineColor]: refs.outlineColor,
|
4754
|
+
[vars$g.digitSize]: refs.inputHeight,
|
4755
4755
|
|
4756
4756
|
_hideCursor: {
|
4757
|
-
[vars$
|
4757
|
+
[vars$g.digitCaretTextColor]: 'transparent',
|
4758
4758
|
},
|
4759
4759
|
};
|
4760
4760
|
|
4761
4761
|
var passcode$1 = /*#__PURE__*/Object.freeze({
|
4762
4762
|
__proto__: null,
|
4763
4763
|
default: passcode,
|
4764
|
-
vars: vars$
|
4764
|
+
vars: vars$g
|
4765
4765
|
});
|
4766
4766
|
|
4767
|
-
const componentName$
|
4767
|
+
const componentName$k = getComponentName('loader-linear');
|
4768
4768
|
|
4769
|
-
class RawLoaderLinear extends createBaseClass({ componentName: componentName$
|
4769
|
+
class RawLoaderLinear extends createBaseClass({ componentName: componentName$k, baseSelector: ':host > div' }) {
|
4770
4770
|
static get componentName() {
|
4771
|
-
return componentName$
|
4771
|
+
return componentName$k;
|
4772
4772
|
}
|
4773
4773
|
|
4774
4774
|
constructor() {
|
@@ -4804,18 +4804,18 @@ const selectors$1 = {
|
|
4804
4804
|
host: { selector: () => ':host' },
|
4805
4805
|
};
|
4806
4806
|
|
4807
|
-
const { after, host: host$
|
4807
|
+
const { after, host: host$8 } = selectors$1;
|
4808
4808
|
|
4809
4809
|
const LoaderLinearClass = compose(
|
4810
4810
|
createStyleMixin({
|
4811
4811
|
mappings: {
|
4812
4812
|
hostDisplay: {},
|
4813
|
-
hostWidth: { ...host$
|
4813
|
+
hostWidth: { ...host$8, property: 'width' },
|
4814
4814
|
barHeight: [{ property: 'height' }, { ...after, property: 'height' }],
|
4815
4815
|
barBorderRadius: [{ property: 'border-radius' }, { ...after, property: 'border-radius' }],
|
4816
4816
|
verticalPadding: [
|
4817
|
-
{ ...host$
|
4818
|
-
{ ...host$
|
4817
|
+
{ ...host$8, property: 'padding-top' },
|
4818
|
+
{ ...host$8, property: 'padding-bottom' },
|
4819
4819
|
],
|
4820
4820
|
barBackgroundColor: { property: 'background-color' },
|
4821
4821
|
barColor: { ...after, property: 'background-color' },
|
@@ -4829,54 +4829,54 @@ const LoaderLinearClass = compose(
|
|
4829
4829
|
componentNameValidationMixin
|
4830
4830
|
)(RawLoaderLinear);
|
4831
4831
|
|
4832
|
-
const globalRefs$
|
4833
|
-
const vars$
|
4832
|
+
const globalRefs$9 = getThemeRefs(globals);
|
4833
|
+
const vars$f = LoaderLinearClass.cssVarList;
|
4834
4834
|
|
4835
4835
|
const loaderLinear = {
|
4836
|
-
[vars$
|
4837
|
-
[vars$
|
4836
|
+
[vars$f.hostDisplay]: 'inline-block',
|
4837
|
+
[vars$f.hostWidth]: '100%',
|
4838
4838
|
|
4839
|
-
[vars$
|
4840
|
-
[vars$
|
4839
|
+
[vars$f.barColor]: globalRefs$9.colors.surface.contrast,
|
4840
|
+
[vars$f.barWidth]: '20%',
|
4841
4841
|
|
4842
|
-
[vars$
|
4843
|
-
[vars$
|
4842
|
+
[vars$f.barBackgroundColor]: globalRefs$9.colors.surface.main,
|
4843
|
+
[vars$f.barBorderRadius]: '4px',
|
4844
4844
|
|
4845
|
-
[vars$
|
4846
|
-
[vars$
|
4847
|
-
[vars$
|
4848
|
-
[vars$
|
4845
|
+
[vars$f.animationDuration]: '2s',
|
4846
|
+
[vars$f.animationTimingFunction]: 'linear',
|
4847
|
+
[vars$f.animationIterationCount]: 'infinite',
|
4848
|
+
[vars$f.verticalPadding]: '0.25em',
|
4849
4849
|
|
4850
4850
|
size: {
|
4851
|
-
xs: { [vars$
|
4852
|
-
sm: { [vars$
|
4853
|
-
md: { [vars$
|
4854
|
-
lg: { [vars$
|
4851
|
+
xs: { [vars$f.barHeight]: '2px' },
|
4852
|
+
sm: { [vars$f.barHeight]: '4px' },
|
4853
|
+
md: { [vars$f.barHeight]: '6px' },
|
4854
|
+
lg: { [vars$f.barHeight]: '8px' },
|
4855
4855
|
},
|
4856
4856
|
|
4857
4857
|
mode: {
|
4858
4858
|
primary: {
|
4859
|
-
[vars$
|
4859
|
+
[vars$f.barColor]: globalRefs$9.colors.primary.main,
|
4860
4860
|
},
|
4861
4861
|
secondary: {
|
4862
|
-
[vars$
|
4862
|
+
[vars$f.barColor]: globalRefs$9.colors.secondary.main,
|
4863
4863
|
},
|
4864
4864
|
},
|
4865
4865
|
|
4866
4866
|
_hidden: {
|
4867
|
-
[vars$
|
4867
|
+
[vars$f.hostDisplay]: 'none',
|
4868
4868
|
},
|
4869
4869
|
};
|
4870
4870
|
|
4871
4871
|
var loaderLinear$1 = /*#__PURE__*/Object.freeze({
|
4872
4872
|
__proto__: null,
|
4873
4873
|
default: loaderLinear,
|
4874
|
-
vars: vars$
|
4874
|
+
vars: vars$f
|
4875
4875
|
});
|
4876
4876
|
|
4877
|
-
const componentName$
|
4877
|
+
const componentName$j = getComponentName('loader-radial');
|
4878
4878
|
|
4879
|
-
class RawLoaderRadial extends createBaseClass({ componentName: componentName$
|
4879
|
+
class RawLoaderRadial extends createBaseClass({ componentName: componentName$j, baseSelector: ':host > div' }) {
|
4880
4880
|
constructor() {
|
4881
4881
|
super();
|
4882
4882
|
|
@@ -4920,22 +4920,22 @@ const LoaderRadialClass = compose(
|
|
4920
4920
|
componentNameValidationMixin
|
4921
4921
|
)(RawLoaderRadial);
|
4922
4922
|
|
4923
|
-
const globalRefs$
|
4923
|
+
const globalRefs$8 = getThemeRefs(globals);
|
4924
4924
|
const compVars$1 = LoaderRadialClass.cssVarList;
|
4925
4925
|
|
4926
4926
|
const [helperTheme, helperRefs, helperVars] = createHelperVars(
|
4927
4927
|
{
|
4928
|
-
spinnerColor: globalRefs$
|
4928
|
+
spinnerColor: globalRefs$8.colors.surface.contrast,
|
4929
4929
|
mode: {
|
4930
4930
|
primary: {
|
4931
|
-
spinnerColor: globalRefs$
|
4931
|
+
spinnerColor: globalRefs$8.colors.primary.main,
|
4932
4932
|
},
|
4933
4933
|
secondary: {
|
4934
|
-
spinnerColor: globalRefs$
|
4934
|
+
spinnerColor: globalRefs$8.colors.secondary.main,
|
4935
4935
|
},
|
4936
4936
|
},
|
4937
4937
|
},
|
4938
|
-
componentName$
|
4938
|
+
componentName$j
|
4939
4939
|
);
|
4940
4940
|
|
4941
4941
|
const loaderRadial = {
|
@@ -4964,7 +4964,7 @@ const loaderRadial = {
|
|
4964
4964
|
[compVars$1.hostDisplay]: 'none',
|
4965
4965
|
},
|
4966
4966
|
};
|
4967
|
-
const vars$
|
4967
|
+
const vars$e = {
|
4968
4968
|
...compVars$1,
|
4969
4969
|
...helperVars,
|
4970
4970
|
};
|
@@ -4972,10 +4972,10 @@ const vars$d = {
|
|
4972
4972
|
var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
4973
4973
|
__proto__: null,
|
4974
4974
|
default: loaderRadial,
|
4975
|
-
vars: vars$
|
4975
|
+
vars: vars$e
|
4976
4976
|
});
|
4977
4977
|
|
4978
|
-
const componentName$
|
4978
|
+
const componentName$i = getComponentName('combo-box');
|
4979
4979
|
|
4980
4980
|
const ComboBoxMixin = (superclass) =>
|
4981
4981
|
class ComboBoxMixinClass extends superclass {
|
@@ -5197,15 +5197,15 @@ const ComboBoxMixin = (superclass) =>
|
|
5197
5197
|
};
|
5198
5198
|
|
5199
5199
|
const {
|
5200
|
-
host: host$
|
5201
|
-
inputField: inputField$
|
5202
|
-
inputElement,
|
5203
|
-
placeholder,
|
5204
|
-
toggle,
|
5205
|
-
label: label$
|
5206
|
-
requiredIndicator: requiredIndicator$
|
5207
|
-
helperText: helperText$
|
5208
|
-
errorMessage: errorMessage$
|
5200
|
+
host: host$7,
|
5201
|
+
inputField: inputField$3,
|
5202
|
+
inputElement: inputElement$1,
|
5203
|
+
placeholder: placeholder$1,
|
5204
|
+
toggle: toggle$1,
|
5205
|
+
label: label$5,
|
5206
|
+
requiredIndicator: requiredIndicator$5,
|
5207
|
+
helperText: helperText$4,
|
5208
|
+
errorMessage: errorMessage$5,
|
5209
5209
|
} = {
|
5210
5210
|
host: { selector: () => ':host' },
|
5211
5211
|
inputField: { selector: '::part(input-field)' },
|
@@ -5221,39 +5221,39 @@ const {
|
|
5221
5221
|
const ComboBoxClass = compose(
|
5222
5222
|
createStyleMixin({
|
5223
5223
|
mappings: {
|
5224
|
-
hostWidth: { ...host$
|
5225
|
-
hostDirection: { ...host$
|
5224
|
+
hostWidth: { ...host$7, property: 'width' },
|
5225
|
+
hostDirection: { ...host$7, property: 'direction' },
|
5226
5226
|
// we apply font-size also on the host so we can set its width with em
|
5227
|
-
fontSize: [{}, host$
|
5228
|
-
fontFamily: [label$
|
5227
|
+
fontSize: [{}, host$7],
|
5228
|
+
fontFamily: [label$5, placeholder$1, inputField$3, helperText$4, errorMessage$5],
|
5229
5229
|
labelTextColor: [
|
5230
|
-
{ ...label$
|
5231
|
-
{ ...requiredIndicator$
|
5230
|
+
{ ...label$5, property: 'color' },
|
5231
|
+
{ ...requiredIndicator$5, property: 'color' },
|
5232
5232
|
],
|
5233
|
-
errorMessageTextColor: { ...errorMessage$
|
5234
|
-
inputHeight: { ...inputField$
|
5235
|
-
inputBackgroundColor: { ...inputField$
|
5236
|
-
inputBorderColor: { ...inputField$
|
5237
|
-
inputBorderWidth: { ...inputField$
|
5238
|
-
inputBorderStyle: { ...inputField$
|
5239
|
-
inputBorderRadius: { ...inputField$
|
5240
|
-
labelRequiredIndicator: { ...requiredIndicator$
|
5241
|
-
inputValueTextColor: { ...inputField$
|
5242
|
-
inputPlaceholderTextColor: { ...placeholder, property: 'color' },
|
5243
|
-
inputDropdownButtonCursor: { ...toggle, property: 'cursor' },
|
5244
|
-
inputDropdownButtonColor: { ...toggle, property: 'color' },
|
5245
|
-
inputDropdownButtonSize: { ...toggle, property: 'font-size' },
|
5233
|
+
errorMessageTextColor: { ...errorMessage$5, property: 'color' },
|
5234
|
+
inputHeight: { ...inputField$3, property: 'height' },
|
5235
|
+
inputBackgroundColor: { ...inputField$3, property: 'background-color' },
|
5236
|
+
inputBorderColor: { ...inputField$3, property: 'border-color' },
|
5237
|
+
inputBorderWidth: { ...inputField$3, property: 'border-width' },
|
5238
|
+
inputBorderStyle: { ...inputField$3, property: 'border-style' },
|
5239
|
+
inputBorderRadius: { ...inputField$3, property: 'border-radius' },
|
5240
|
+
labelRequiredIndicator: { ...requiredIndicator$5, property: 'content' },
|
5241
|
+
inputValueTextColor: { ...inputField$3, property: 'color' },
|
5242
|
+
inputPlaceholderTextColor: { ...placeholder$1, property: 'color' },
|
5243
|
+
inputDropdownButtonCursor: { ...toggle$1, property: 'cursor' },
|
5244
|
+
inputDropdownButtonColor: { ...toggle$1, property: 'color' },
|
5245
|
+
inputDropdownButtonSize: { ...toggle$1, property: 'font-size' },
|
5246
5246
|
inputDropdownButtonOffset: [
|
5247
|
-
{ ...toggle, property: 'margin-right' },
|
5248
|
-
{ ...toggle, property: 'margin-left' },
|
5247
|
+
{ ...toggle$1, property: 'margin-right' },
|
5248
|
+
{ ...toggle$1, property: 'margin-left' },
|
5249
5249
|
],
|
5250
|
-
inputOutlineColor: { ...inputField$
|
5251
|
-
inputOutlineWidth: { ...inputField$
|
5252
|
-
inputOutlineStyle: { ...inputField$
|
5253
|
-
inputOutlineOffset: { ...inputField$
|
5250
|
+
inputOutlineColor: { ...inputField$3, property: 'outline-color' },
|
5251
|
+
inputOutlineWidth: { ...inputField$3, property: 'outline-width' },
|
5252
|
+
inputOutlineStyle: { ...inputField$3, property: 'outline-style' },
|
5253
|
+
inputOutlineOffset: { ...inputField$3, property: 'outline-offset' },
|
5254
5254
|
inputHorizontalPadding: [
|
5255
|
-
{ ...inputElement, property: 'padding-left' },
|
5256
|
-
{ ...inputElement, property: 'padding-right' },
|
5255
|
+
{ ...inputElement$1, property: 'padding-left' },
|
5256
|
+
{ ...inputElement$1, property: 'padding-right' },
|
5257
5257
|
],
|
5258
5258
|
|
5259
5259
|
// we need to use the variables from the portal mixin
|
@@ -5339,69 +5339,69 @@ const ComboBoxClass = compose(
|
|
5339
5339
|
// and reset items to an empty array, and opening the list box with no items
|
5340
5340
|
// to display.
|
5341
5341
|
excludeAttrsSync: ['tabindex', 'size', 'data'],
|
5342
|
-
componentName: componentName$
|
5342
|
+
componentName: componentName$i,
|
5343
5343
|
includeForwardProps: ['items', 'renderer', 'selectedItem'],
|
5344
5344
|
})
|
5345
5345
|
);
|
5346
5346
|
|
5347
|
-
const globalRefs$
|
5348
|
-
const vars$
|
5347
|
+
const globalRefs$7 = getThemeRefs(globals);
|
5348
|
+
const vars$d = ComboBoxClass.cssVarList;
|
5349
5349
|
|
5350
5350
|
const comboBox = {
|
5351
|
-
[vars$
|
5352
|
-
[vars$
|
5353
|
-
[vars$
|
5354
|
-
[vars$
|
5355
|
-
[vars$
|
5356
|
-
[vars$
|
5357
|
-
[vars$
|
5358
|
-
[vars$
|
5359
|
-
[vars$
|
5360
|
-
[vars$
|
5361
|
-
[vars$
|
5362
|
-
[vars$
|
5363
|
-
[vars$
|
5364
|
-
[vars$
|
5365
|
-
[vars$
|
5366
|
-
[vars$
|
5367
|
-
[vars$
|
5368
|
-
[vars$
|
5369
|
-
[vars$
|
5370
|
-
[vars$
|
5371
|
-
[vars$
|
5372
|
-
[vars$
|
5373
|
-
[vars$
|
5374
|
-
[vars$
|
5375
|
-
[vars$
|
5376
|
-
[vars$
|
5351
|
+
[vars$d.hostWidth]: refs.width,
|
5352
|
+
[vars$d.hostDirection]: refs.direction,
|
5353
|
+
[vars$d.fontSize]: refs.fontSize,
|
5354
|
+
[vars$d.fontFamily]: refs.fontFamily,
|
5355
|
+
[vars$d.labelTextColor]: refs.labelTextColor,
|
5356
|
+
[vars$d.errorMessageTextColor]: refs.errorMessageTextColor,
|
5357
|
+
[vars$d.inputBorderColor]: refs.borderColor,
|
5358
|
+
[vars$d.inputBorderWidth]: refs.borderWidth,
|
5359
|
+
[vars$d.inputBorderStyle]: refs.borderStyle,
|
5360
|
+
[vars$d.inputBorderRadius]: refs.borderRadius,
|
5361
|
+
[vars$d.inputOutlineColor]: refs.outlineColor,
|
5362
|
+
[vars$d.inputOutlineOffset]: refs.outlineOffset,
|
5363
|
+
[vars$d.inputOutlineWidth]: refs.outlineWidth,
|
5364
|
+
[vars$d.inputOutlineStyle]: refs.outlineStyle,
|
5365
|
+
[vars$d.labelRequiredIndicator]: refs.requiredIndicator,
|
5366
|
+
[vars$d.inputValueTextColor]: refs.valueTextColor,
|
5367
|
+
[vars$d.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
5368
|
+
[vars$d.inputBackgroundColor]: refs.backgroundColor,
|
5369
|
+
[vars$d.inputHorizontalPadding]: refs.horizontalPadding,
|
5370
|
+
[vars$d.inputHeight]: refs.inputHeight,
|
5371
|
+
[vars$d.inputDropdownButtonColor]: globalRefs$7.colors.surface.contrast,
|
5372
|
+
[vars$d.inputDropdownButtonCursor]: 'pointer',
|
5373
|
+
[vars$d.inputDropdownButtonSize]: refs.toggleButtonSize,
|
5374
|
+
[vars$d.inputDropdownButtonOffset]: globalRefs$7.spacing.xs,
|
5375
|
+
[vars$d.overlayItemPaddingInlineStart]: globalRefs$7.spacing.xs,
|
5376
|
+
[vars$d.overlayItemPaddingInlineEnd]: globalRefs$7.spacing.lg,
|
5377
5377
|
|
5378
5378
|
_readonly: {
|
5379
|
-
[vars$
|
5379
|
+
[vars$d.inputDropdownButtonCursor]: 'default',
|
5380
5380
|
},
|
5381
5381
|
|
5382
5382
|
// Overlay theme exposed via the component:
|
5383
|
-
[vars$
|
5384
|
-
[vars$
|
5385
|
-
[vars$
|
5386
|
-
[vars$
|
5383
|
+
[vars$d.overlayFontSize]: refs.fontSize,
|
5384
|
+
[vars$d.overlayFontFamily]: refs.fontFamily,
|
5385
|
+
[vars$d.overlayCursor]: 'pointer',
|
5386
|
+
[vars$d.overlayItemBoxShadow]: 'none',
|
5387
5387
|
|
5388
5388
|
// Overlay direct theme:
|
5389
|
-
[vars$
|
5390
|
-
[vars$
|
5389
|
+
[vars$d.overlay.minHeight]: '400px',
|
5390
|
+
[vars$d.overlay.margin]: '0',
|
5391
5391
|
};
|
5392
5392
|
|
5393
5393
|
var comboBox$1 = /*#__PURE__*/Object.freeze({
|
5394
5394
|
__proto__: null,
|
5395
5395
|
comboBox: comboBox,
|
5396
5396
|
default: comboBox,
|
5397
|
-
vars: vars$
|
5397
|
+
vars: vars$d
|
5398
5398
|
});
|
5399
5399
|
|
5400
5400
|
const observedAttributes$2 = ['src', 'alt'];
|
5401
5401
|
|
5402
|
-
const componentName$
|
5402
|
+
const componentName$h = getComponentName('image');
|
5403
5403
|
|
5404
|
-
const BaseClass$1 = createBaseClass({ componentName: componentName$
|
5404
|
+
const BaseClass$1 = createBaseClass({ componentName: componentName$h, baseSelector: ':host > img' });
|
5405
5405
|
class RawImage extends BaseClass$1 {
|
5406
5406
|
static get observedAttributes() {
|
5407
5407
|
return observedAttributes$2.concat(BaseClass$1.observedAttributes || []);
|
@@ -5441,14 +5441,14 @@ const ImageClass = compose(
|
|
5441
5441
|
draggableMixin
|
5442
5442
|
)(RawImage);
|
5443
5443
|
|
5444
|
-
const vars$
|
5444
|
+
const vars$c = ImageClass.cssVarList;
|
5445
5445
|
|
5446
5446
|
const image = {};
|
5447
5447
|
|
5448
5448
|
var image$1 = /*#__PURE__*/Object.freeze({
|
5449
5449
|
__proto__: null,
|
5450
5450
|
default: image,
|
5451
|
-
vars: vars$
|
5451
|
+
vars: vars$c
|
5452
5452
|
});
|
5453
5453
|
|
5454
5454
|
var CountryCodes = [
|
@@ -6664,14 +6664,14 @@ var CountryCodes = [
|
|
6664
6664
|
},
|
6665
6665
|
].sort((a, b) => (a.name < b.name ? -1 : 1));
|
6666
6666
|
|
6667
|
-
const componentName$
|
6667
|
+
const componentName$g = getComponentName('phone-field-internal');
|
6668
6668
|
|
6669
|
-
createBaseInputClass({ componentName: componentName$
|
6669
|
+
createBaseInputClass({ componentName: componentName$g, baseSelector: 'div' });
|
6670
6670
|
|
6671
6671
|
const textVars$1 = TextFieldClass.cssVarList;
|
6672
6672
|
const comboVars = ComboBoxClass.cssVarList;
|
6673
6673
|
|
6674
|
-
const componentName$
|
6674
|
+
const componentName$f = getComponentName('phone-field');
|
6675
6675
|
|
6676
6676
|
const customMixin$4 = (superclass) =>
|
6677
6677
|
class PhoneFieldMixinClass extends superclass {
|
@@ -6685,15 +6685,15 @@ const customMixin$4 = (superclass) =>
|
|
6685
6685
|
const template = document.createElement('template');
|
6686
6686
|
|
6687
6687
|
template.innerHTML = `
|
6688
|
-
<${componentName$
|
6688
|
+
<${componentName$g}
|
6689
6689
|
tabindex="-1"
|
6690
6690
|
slot="input"
|
6691
|
-
></${componentName$
|
6691
|
+
></${componentName$g}>
|
6692
6692
|
`;
|
6693
6693
|
|
6694
6694
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
6695
6695
|
|
6696
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
6696
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$g);
|
6697
6697
|
|
6698
6698
|
forwardAttrs(this.shadowRoot.host, this.inputElement, {
|
6699
6699
|
includeAttrs: [
|
@@ -6713,15 +6713,15 @@ const customMixin$4 = (superclass) =>
|
|
6713
6713
|
};
|
6714
6714
|
|
6715
6715
|
const {
|
6716
|
-
host: host$
|
6717
|
-
label: label$
|
6718
|
-
requiredIndicator: requiredIndicator$
|
6719
|
-
inputField: inputField$
|
6716
|
+
host: host$6,
|
6717
|
+
label: label$4,
|
6718
|
+
requiredIndicator: requiredIndicator$4,
|
6719
|
+
inputField: inputField$2,
|
6720
6720
|
countryCodeInput,
|
6721
6721
|
phoneInput: phoneInput$1,
|
6722
6722
|
separator,
|
6723
|
-
errorMessage: errorMessage$
|
6724
|
-
helperText: helperText$
|
6723
|
+
errorMessage: errorMessage$4,
|
6724
|
+
helperText: helperText$3,
|
6725
6725
|
} = {
|
6726
6726
|
host: { selector: () => ':host' },
|
6727
6727
|
label: { selector: '::part(label)' },
|
@@ -6738,8 +6738,8 @@ const PhoneFieldClass = compose(
|
|
6738
6738
|
createStyleMixin({
|
6739
6739
|
mappings: {
|
6740
6740
|
fontSize: [
|
6741
|
-
host$
|
6742
|
-
inputField$
|
6741
|
+
host$6,
|
6742
|
+
inputField$2,
|
6743
6743
|
{
|
6744
6744
|
selector: TextFieldClass.componentName,
|
6745
6745
|
property: TextFieldClass.cssVarList.fontSize,
|
@@ -6750,34 +6750,34 @@ const PhoneFieldClass = compose(
|
|
6750
6750
|
},
|
6751
6751
|
],
|
6752
6752
|
fontFamily: [
|
6753
|
-
label$
|
6754
|
-
errorMessage$
|
6755
|
-
helperText$
|
6753
|
+
label$4,
|
6754
|
+
errorMessage$4,
|
6755
|
+
helperText$3,
|
6756
6756
|
{
|
6757
6757
|
...countryCodeInput,
|
6758
6758
|
property: ComboBoxClass.cssVarList.overlay.fontFamily,
|
6759
6759
|
},
|
6760
6760
|
],
|
6761
6761
|
hostWidth: [
|
6762
|
-
{ ...host$
|
6762
|
+
{ ...host$6, property: 'width' },
|
6763
6763
|
{ ...phoneInput$1, property: 'width' },
|
6764
6764
|
{ ...countryCodeInput, property: '--vaadin-combo-box-overlay-width' },
|
6765
6765
|
],
|
6766
|
-
hostDirection: { ...host$
|
6766
|
+
hostDirection: { ...host$6, property: 'direction' },
|
6767
6767
|
|
6768
6768
|
inputBorderStyle: [
|
6769
|
-
{ ...inputField$
|
6769
|
+
{ ...inputField$2, property: 'border-style' },
|
6770
6770
|
{ ...separator, property: 'border-left-style' },
|
6771
6771
|
],
|
6772
6772
|
inputBorderWidth: [
|
6773
|
-
{ ...inputField$
|
6773
|
+
{ ...inputField$2, property: 'border-width' },
|
6774
6774
|
{ ...separator, property: 'border-left-width' },
|
6775
6775
|
],
|
6776
6776
|
inputBorderColor: [
|
6777
|
-
{ ...inputField$
|
6777
|
+
{ ...inputField$2, property: 'border-color' },
|
6778
6778
|
{ ...separator, property: 'border-left-color' },
|
6779
6779
|
],
|
6780
|
-
inputBorderRadius: { ...inputField$
|
6780
|
+
inputBorderRadius: { ...inputField$2, property: 'border-radius' },
|
6781
6781
|
|
6782
6782
|
countryCodeInputWidth: { ...countryCodeInput, property: comboVars.hostWidth },
|
6783
6783
|
countryCodeDropdownWidth: {
|
@@ -6787,11 +6787,11 @@ const PhoneFieldClass = compose(
|
|
6787
6787
|
phoneInputWidth: { ...phoneInput$1, property: 'width' },
|
6788
6788
|
|
6789
6789
|
labelTextColor: [
|
6790
|
-
{ ...label$
|
6791
|
-
{ ...requiredIndicator$
|
6790
|
+
{ ...label$4, property: 'color' },
|
6791
|
+
{ ...requiredIndicator$4, property: 'color' },
|
6792
6792
|
],
|
6793
|
-
labelRequiredIndicator: { ...requiredIndicator$
|
6794
|
-
errorMessageTextColor: { ...errorMessage$
|
6793
|
+
labelRequiredIndicator: { ...requiredIndicator$4, property: 'content' },
|
6794
|
+
errorMessageTextColor: { ...errorMessage$4, property: 'color' },
|
6795
6795
|
|
6796
6796
|
inputValueTextColor: [
|
6797
6797
|
{ ...phoneInput$1, property: textVars$1.inputValueTextColor },
|
@@ -6805,10 +6805,10 @@ const PhoneFieldClass = compose(
|
|
6805
6805
|
property: comboVars.overlayItemBackgroundColor,
|
6806
6806
|
},
|
6807
6807
|
|
6808
|
-
inputOutlineStyle: { ...inputField$
|
6809
|
-
inputOutlineColor: { ...inputField$
|
6810
|
-
inputOutlineWidth: { ...inputField$
|
6811
|
-
inputOutlineOffset: { ...inputField$
|
6808
|
+
inputOutlineStyle: { ...inputField$2, property: 'outline-style' },
|
6809
|
+
inputOutlineColor: { ...inputField$2, property: 'outline-color' },
|
6810
|
+
inputOutlineWidth: { ...inputField$2, property: 'outline-width' },
|
6811
|
+
inputOutlineOffset: { ...inputField$2, property: 'outline-offset' },
|
6812
6812
|
},
|
6813
6813
|
}),
|
6814
6814
|
draggableMixin,
|
@@ -6889,33 +6889,33 @@ const PhoneFieldClass = compose(
|
|
6889
6889
|
${resetInputLabelPosition('vaadin-text-field')}
|
6890
6890
|
`,
|
6891
6891
|
excludeAttrsSync: ['tabindex'],
|
6892
|
-
componentName: componentName$
|
6892
|
+
componentName: componentName$f,
|
6893
6893
|
})
|
6894
6894
|
);
|
6895
6895
|
|
6896
|
-
const vars$
|
6896
|
+
const vars$b = PhoneFieldClass.cssVarList;
|
6897
6897
|
|
6898
6898
|
const phoneField = {
|
6899
|
-
[vars$
|
6900
|
-
[vars$
|
6901
|
-
[vars$
|
6902
|
-
[vars$
|
6903
|
-
[vars$
|
6904
|
-
[vars$
|
6905
|
-
[vars$
|
6906
|
-
[vars$
|
6907
|
-
[vars$
|
6908
|
-
[vars$
|
6909
|
-
[vars$
|
6910
|
-
[vars$
|
6911
|
-
[vars$
|
6912
|
-
[vars$
|
6913
|
-
[vars$
|
6914
|
-
[vars$
|
6915
|
-
[vars$
|
6916
|
-
[vars$
|
6917
|
-
[vars$
|
6918
|
-
[vars$
|
6899
|
+
[vars$b.hostWidth]: refs.width,
|
6900
|
+
[vars$b.hostDirection]: refs.direction,
|
6901
|
+
[vars$b.fontSize]: refs.fontSize,
|
6902
|
+
[vars$b.fontFamily]: refs.fontFamily,
|
6903
|
+
[vars$b.labelTextColor]: refs.labelTextColor,
|
6904
|
+
[vars$b.labelRequiredIndicator]: refs.requiredIndicator,
|
6905
|
+
[vars$b.errorMessageTextColor]: refs.errorMessageTextColor,
|
6906
|
+
[vars$b.inputValueTextColor]: refs.valueTextColor,
|
6907
|
+
[vars$b.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
6908
|
+
[vars$b.inputBorderStyle]: refs.borderStyle,
|
6909
|
+
[vars$b.inputBorderWidth]: refs.borderWidth,
|
6910
|
+
[vars$b.inputBorderColor]: refs.borderColor,
|
6911
|
+
[vars$b.inputBorderRadius]: refs.borderRadius,
|
6912
|
+
[vars$b.inputOutlineStyle]: refs.outlineStyle,
|
6913
|
+
[vars$b.inputOutlineWidth]: refs.outlineWidth,
|
6914
|
+
[vars$b.inputOutlineColor]: refs.outlineColor,
|
6915
|
+
[vars$b.inputOutlineOffset]: refs.outlineOffset,
|
6916
|
+
[vars$b.phoneInputWidth]: refs.minWidth,
|
6917
|
+
[vars$b.countryCodeInputWidth]: '5em',
|
6918
|
+
[vars$b.countryCodeDropdownWidth]: '20em',
|
6919
6919
|
|
6920
6920
|
// '@overlay': {
|
6921
6921
|
// overlayItemBackgroundColor: 'red'
|
@@ -6925,16 +6925,16 @@ const phoneField = {
|
|
6925
6925
|
var phoneField$1 = /*#__PURE__*/Object.freeze({
|
6926
6926
|
__proto__: null,
|
6927
6927
|
default: phoneField,
|
6928
|
-
vars: vars$
|
6928
|
+
vars: vars$b
|
6929
6929
|
});
|
6930
6930
|
|
6931
|
-
const componentName$
|
6931
|
+
const componentName$e = getComponentName('phone-field-internal-input-box');
|
6932
6932
|
|
6933
|
-
createBaseInputClass({ componentName: componentName$
|
6933
|
+
createBaseInputClass({ componentName: componentName$e, baseSelector: 'div' });
|
6934
6934
|
|
6935
6935
|
const textVars = TextFieldClass.cssVarList;
|
6936
6936
|
|
6937
|
-
const componentName$
|
6937
|
+
const componentName$d = getComponentName('phone-input-box-field');
|
6938
6938
|
|
6939
6939
|
const customMixin$3 = (superclass) =>
|
6940
6940
|
class PhoneInputBoxFieldMixinClass extends superclass {
|
@@ -6948,15 +6948,15 @@ const customMixin$3 = (superclass) =>
|
|
6948
6948
|
const template = document.createElement('template');
|
6949
6949
|
|
6950
6950
|
template.innerHTML = `
|
6951
|
-
<${componentName$
|
6951
|
+
<${componentName$e}
|
6952
6952
|
tabindex="-1"
|
6953
6953
|
slot="input"
|
6954
|
-
></${componentName$
|
6954
|
+
></${componentName$e}>
|
6955
6955
|
`;
|
6956
6956
|
|
6957
6957
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
6958
6958
|
|
6959
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
6959
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$e);
|
6960
6960
|
|
6961
6961
|
forwardAttrs(this.shadowRoot.host, this.inputElement, {
|
6962
6962
|
includeAttrs: [
|
@@ -6973,7 +6973,7 @@ const customMixin$3 = (superclass) =>
|
|
6973
6973
|
}
|
6974
6974
|
};
|
6975
6975
|
|
6976
|
-
const { host: host$
|
6976
|
+
const { host: host$5, label: label$3, requiredIndicator: requiredIndicator$3, inputField: inputField$1, phoneInput, errorMessage: errorMessage$3, helperText: helperText$2 } = {
|
6977
6977
|
host: { selector: () => ':host' },
|
6978
6978
|
label: { selector: '::part(label)' },
|
6979
6979
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
@@ -6987,38 +6987,38 @@ const PhoneFieldInputBoxClass = compose(
|
|
6987
6987
|
createStyleMixin({
|
6988
6988
|
mappings: {
|
6989
6989
|
fontSize: [
|
6990
|
-
host$
|
6991
|
-
inputField,
|
6990
|
+
host$5,
|
6991
|
+
inputField$1,
|
6992
6992
|
{
|
6993
6993
|
selector: TextFieldClass.componentName,
|
6994
6994
|
property: TextFieldClass.cssVarList.fontSize,
|
6995
6995
|
},
|
6996
6996
|
],
|
6997
|
-
fontFamily: [label$
|
6998
|
-
hostWidth: { ...host$
|
6999
|
-
hostMinWidth: { ...host$
|
7000
|
-
hostDirection: { ...host$
|
6997
|
+
fontFamily: [label$3, errorMessage$3, helperText$2],
|
6998
|
+
hostWidth: { ...host$5, property: 'width' },
|
6999
|
+
hostMinWidth: { ...host$5, property: 'min-width' },
|
7000
|
+
hostDirection: { ...host$5, property: 'direction' },
|
7001
7001
|
|
7002
|
-
inputBorderStyle: { ...inputField, property: 'border-style' },
|
7003
|
-
inputBorderWidth: { ...inputField, property: 'border-width' },
|
7004
|
-
inputBorderColor: { ...inputField, property: 'border-color' },
|
7005
|
-
inputBorderRadius: { ...inputField, property: 'border-radius' },
|
7002
|
+
inputBorderStyle: { ...inputField$1, property: 'border-style' },
|
7003
|
+
inputBorderWidth: { ...inputField$1, property: 'border-width' },
|
7004
|
+
inputBorderColor: { ...inputField$1, property: 'border-color' },
|
7005
|
+
inputBorderRadius: { ...inputField$1, property: 'border-radius' },
|
7006
7006
|
|
7007
7007
|
labelTextColor: [
|
7008
|
-
{ ...label$
|
7009
|
-
{ ...requiredIndicator$
|
7008
|
+
{ ...label$3, property: 'color' },
|
7009
|
+
{ ...requiredIndicator$3, property: 'color' },
|
7010
7010
|
],
|
7011
|
-
labelRequiredIndicator: { ...requiredIndicator$
|
7012
|
-
errorMessageTextColor: { ...errorMessage$
|
7011
|
+
labelRequiredIndicator: { ...requiredIndicator$3, property: 'content' },
|
7012
|
+
errorMessageTextColor: { ...errorMessage$3, property: 'color' },
|
7013
7013
|
|
7014
7014
|
inputValueTextColor: { ...phoneInput, property: textVars.inputValueTextColor },
|
7015
7015
|
|
7016
7016
|
inputPlaceholderTextColor: { ...phoneInput, property: textVars.inputPlaceholderColor },
|
7017
7017
|
|
7018
|
-
inputOutlineStyle: { ...inputField, property: 'outline-style' },
|
7019
|
-
inputOutlineColor: { ...inputField, property: 'outline-color' },
|
7020
|
-
inputOutlineWidth: { ...inputField, property: 'outline-width' },
|
7021
|
-
inputOutlineOffset: { ...inputField, property: 'outline-offset' },
|
7018
|
+
inputOutlineStyle: { ...inputField$1, property: 'outline-style' },
|
7019
|
+
inputOutlineColor: { ...inputField$1, property: 'outline-color' },
|
7020
|
+
inputOutlineWidth: { ...inputField$1, property: 'outline-width' },
|
7021
|
+
inputOutlineOffset: { ...inputField$1, property: 'outline-offset' },
|
7022
7022
|
},
|
7023
7023
|
}),
|
7024
7024
|
draggableMixin,
|
@@ -7089,45 +7089,45 @@ const PhoneFieldInputBoxClass = compose(
|
|
7089
7089
|
${resetInputLabelPosition('vaadin-text-field')}
|
7090
7090
|
`,
|
7091
7091
|
excludeAttrsSync: ['tabindex'],
|
7092
|
-
componentName: componentName$
|
7092
|
+
componentName: componentName$d,
|
7093
7093
|
})
|
7094
7094
|
);
|
7095
7095
|
|
7096
|
-
const vars$
|
7096
|
+
const vars$a = PhoneFieldInputBoxClass.cssVarList;
|
7097
7097
|
|
7098
7098
|
const phoneInputBoxField = {
|
7099
|
-
[vars$
|
7100
|
-
[vars$
|
7101
|
-
[vars$
|
7102
|
-
[vars$
|
7103
|
-
[vars$
|
7104
|
-
[vars$
|
7105
|
-
[vars$
|
7106
|
-
[vars$
|
7107
|
-
[vars$
|
7108
|
-
[vars$
|
7109
|
-
[vars$
|
7110
|
-
[vars$
|
7111
|
-
[vars$
|
7112
|
-
[vars$
|
7113
|
-
[vars$
|
7114
|
-
[vars$
|
7115
|
-
[vars$
|
7116
|
-
[vars$
|
7099
|
+
[vars$a.hostWidth]: '16em',
|
7100
|
+
[vars$a.hostMinWidth]: refs.minWidth,
|
7101
|
+
[vars$a.hostDirection]: refs.direction,
|
7102
|
+
[vars$a.fontSize]: refs.fontSize,
|
7103
|
+
[vars$a.fontFamily]: refs.fontFamily,
|
7104
|
+
[vars$a.labelTextColor]: refs.labelTextColor,
|
7105
|
+
[vars$a.labelRequiredIndicator]: refs.requiredIndicator,
|
7106
|
+
[vars$a.errorMessageTextColor]: refs.errorMessageTextColor,
|
7107
|
+
[vars$a.inputValueTextColor]: refs.valueTextColor,
|
7108
|
+
[vars$a.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
7109
|
+
[vars$a.inputBorderStyle]: refs.borderStyle,
|
7110
|
+
[vars$a.inputBorderWidth]: refs.borderWidth,
|
7111
|
+
[vars$a.inputBorderColor]: refs.borderColor,
|
7112
|
+
[vars$a.inputBorderRadius]: refs.borderRadius,
|
7113
|
+
[vars$a.inputOutlineStyle]: refs.outlineStyle,
|
7114
|
+
[vars$a.inputOutlineWidth]: refs.outlineWidth,
|
7115
|
+
[vars$a.inputOutlineColor]: refs.outlineColor,
|
7116
|
+
[vars$a.inputOutlineOffset]: refs.outlineOffset,
|
7117
7117
|
_fullWidth: {
|
7118
|
-
[vars$
|
7118
|
+
[vars$a.hostWidth]: refs.width,
|
7119
7119
|
},
|
7120
7120
|
};
|
7121
7121
|
|
7122
7122
|
var phoneInputBoxField$1 = /*#__PURE__*/Object.freeze({
|
7123
7123
|
__proto__: null,
|
7124
7124
|
default: phoneInputBoxField,
|
7125
|
-
vars: vars$
|
7125
|
+
vars: vars$a
|
7126
7126
|
});
|
7127
7127
|
|
7128
|
-
const componentName$
|
7128
|
+
const componentName$c = getComponentName('new-password-internal');
|
7129
7129
|
|
7130
|
-
const componentName$
|
7130
|
+
const componentName$b = getComponentName('new-password');
|
7131
7131
|
|
7132
7132
|
const customMixin$2 = (superclass) =>
|
7133
7133
|
class NewPasswordMixinClass extends superclass {
|
@@ -7137,16 +7137,16 @@ const customMixin$2 = (superclass) =>
|
|
7137
7137
|
const template = document.createElement('template');
|
7138
7138
|
|
7139
7139
|
template.innerHTML = `
|
7140
|
-
<${componentName$
|
7140
|
+
<${componentName$c}
|
7141
7141
|
name="new-password"
|
7142
7142
|
tabindex="-1"
|
7143
7143
|
slot="input"
|
7144
|
-
></${componentName$
|
7144
|
+
></${componentName$c}>
|
7145
7145
|
`;
|
7146
7146
|
|
7147
7147
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
7148
7148
|
|
7149
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
7149
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$c);
|
7150
7150
|
|
7151
7151
|
forwardAttrs(this, this.inputElement, {
|
7152
7152
|
includeAttrs: [
|
@@ -7167,7 +7167,7 @@ const customMixin$2 = (superclass) =>
|
|
7167
7167
|
}
|
7168
7168
|
};
|
7169
7169
|
|
7170
|
-
const { host: host$
|
7170
|
+
const { host: host$4, label: label$2, internalInputsWrapper, errorMessage: errorMessage$2, helperText: helperText$1, passwordInput } = {
|
7171
7171
|
host: { selector: () => ':host' },
|
7172
7172
|
label: { selector: '::part(label)' },
|
7173
7173
|
internalInputsWrapper: { selector: 'descope-new-password-internal .wrapper' },
|
@@ -7180,22 +7180,22 @@ const NewPasswordClass = compose(
|
|
7180
7180
|
createStyleMixin({
|
7181
7181
|
mappings: {
|
7182
7182
|
fontSize: [
|
7183
|
-
host$
|
7183
|
+
host$4,
|
7184
7184
|
{},
|
7185
7185
|
{
|
7186
7186
|
selector: PasswordClass.componentName,
|
7187
7187
|
property: PasswordClass.cssVarList.fontSize,
|
7188
7188
|
},
|
7189
7189
|
],
|
7190
|
-
fontFamily: [label$
|
7191
|
-
errorMessageTextColor: { ...errorMessage$
|
7192
|
-
hostWidth: { ...host$
|
7193
|
-
hostMinWidth: { ...host$
|
7190
|
+
fontFamily: [label$2, errorMessage$2, helperText$1],
|
7191
|
+
errorMessageTextColor: { ...errorMessage$2, property: 'color' },
|
7192
|
+
hostWidth: { ...host$4, property: 'width' },
|
7193
|
+
hostMinWidth: { ...host$4, property: 'min-width' },
|
7194
7194
|
hostDirection: [
|
7195
|
-
{ ...host$
|
7195
|
+
{ ...host$4, property: 'direction' },
|
7196
7196
|
{ ...passwordInput, property: PasswordClass.cssVarList.hostDirection },
|
7197
7197
|
],
|
7198
|
-
inputsRequiredIndicator: { ...host$
|
7198
|
+
inputsRequiredIndicator: { ...host$4, property: 'content' },
|
7199
7199
|
spaceBetweenInputs: { ...internalInputsWrapper, property: 'gap' },
|
7200
7200
|
},
|
7201
7201
|
}),
|
@@ -7253,33 +7253,33 @@ const NewPasswordClass = compose(
|
|
7253
7253
|
}
|
7254
7254
|
`,
|
7255
7255
|
excludeAttrsSync: ['tabindex'],
|
7256
|
-
componentName: componentName$
|
7256
|
+
componentName: componentName$b,
|
7257
7257
|
})
|
7258
7258
|
);
|
7259
7259
|
|
7260
|
-
const vars$
|
7260
|
+
const vars$9 = NewPasswordClass.cssVarList;
|
7261
7261
|
|
7262
7262
|
const newPassword = {
|
7263
|
-
[vars$
|
7264
|
-
[vars$
|
7265
|
-
[vars$
|
7266
|
-
[vars$
|
7267
|
-
[vars$
|
7268
|
-
[vars$
|
7269
|
-
[vars$
|
7263
|
+
[vars$9.hostWidth]: refs.width,
|
7264
|
+
[vars$9.hostMinWidth]: refs.minWidth,
|
7265
|
+
[vars$9.hostDirection]: refs.direction,
|
7266
|
+
[vars$9.fontSize]: refs.fontSize,
|
7267
|
+
[vars$9.fontFamily]: refs.fontFamily,
|
7268
|
+
[vars$9.spaceBetweenInputs]: '1em',
|
7269
|
+
[vars$9.errorMessageTextColor]: refs.errorMessageTextColor,
|
7270
7270
|
|
7271
7271
|
_required: {
|
7272
7272
|
// NewPassword doesn't pass `required` attribute to its Password components.
|
7273
7273
|
// That's why we fake the required indicator on each input.
|
7274
7274
|
// We do that by injecting `::after` element, and populating it with requiredIndicator content.
|
7275
|
-
[vars$
|
7275
|
+
[vars$9.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
|
7276
7276
|
},
|
7277
7277
|
};
|
7278
7278
|
|
7279
7279
|
var newPassword$1 = /*#__PURE__*/Object.freeze({
|
7280
7280
|
__proto__: null,
|
7281
7281
|
default: newPassword,
|
7282
|
-
vars: vars$
|
7282
|
+
vars: vars$9
|
7283
7283
|
});
|
7284
7284
|
|
7285
7285
|
const getFileBase64 = (fileObj) => {
|
@@ -7294,7 +7294,7 @@ const getFilename = (fileObj) => {
|
|
7294
7294
|
return fileObj.name.replace(/^.*\\/, '');
|
7295
7295
|
};
|
7296
7296
|
|
7297
|
-
const componentName$
|
7297
|
+
const componentName$a = getComponentName('upload-file');
|
7298
7298
|
|
7299
7299
|
const observedAttributes$1 = [
|
7300
7300
|
'title',
|
@@ -7309,7 +7309,7 @@ const observedAttributes$1 = [
|
|
7309
7309
|
'icon',
|
7310
7310
|
];
|
7311
7311
|
|
7312
|
-
const BaseInputClass = createBaseInputClass({ componentName: componentName$
|
7312
|
+
const BaseInputClass = createBaseInputClass({ componentName: componentName$a, baseSelector: ':host > div' });
|
7313
7313
|
|
7314
7314
|
class RawUploadFile extends BaseInputClass {
|
7315
7315
|
static get observedAttributes() {
|
@@ -7481,7 +7481,7 @@ class RawUploadFile extends BaseInputClass {
|
|
7481
7481
|
}
|
7482
7482
|
|
7483
7483
|
const buttonVars = ButtonClass.cssVarList;
|
7484
|
-
const { host: host$
|
7484
|
+
const { host: host$3, wrapper, icon, title, description, requiredIndicator: requiredIndicator$2 } = {
|
7485
7485
|
host: { selector: () => ':host' },
|
7486
7486
|
wrapper: { selector: () => ':host > div' },
|
7487
7487
|
icon: { selector: () => '::slotted(*)' },
|
@@ -7500,11 +7500,11 @@ const UploadFileClass = compose(
|
|
7500
7500
|
borderWidth: {},
|
7501
7501
|
borderStyle: {},
|
7502
7502
|
borderRadius: {},
|
7503
|
-
hostHeight: { ...host$
|
7504
|
-
hostWidth: { ...host$
|
7503
|
+
hostHeight: { ...host$3, property: 'height' },
|
7504
|
+
hostWidth: { ...host$3, property: 'width' },
|
7505
7505
|
hostPadding: { property: 'padding' },
|
7506
7506
|
hostDirection: [
|
7507
|
-
{ ...host$
|
7507
|
+
{ ...host$3, property: 'direction' },
|
7508
7508
|
{ selector: () => ButtonClass.componentName, property: buttonVars.hostDirection },
|
7509
7509
|
],
|
7510
7510
|
gap: { ...wrapper },
|
@@ -7517,84 +7517,84 @@ const UploadFileClass = compose(
|
|
7517
7517
|
{ ...description, property: 'color' },
|
7518
7518
|
],
|
7519
7519
|
iconSize: { ...icon, property: 'width' },
|
7520
|
-
requiredIndicator: { ...requiredIndicator$
|
7520
|
+
requiredIndicator: { ...requiredIndicator$2, property: 'content' },
|
7521
7521
|
},
|
7522
7522
|
}),
|
7523
7523
|
draggableMixin,
|
7524
7524
|
componentNameValidationMixin
|
7525
7525
|
)(RawUploadFile);
|
7526
7526
|
|
7527
|
-
const vars$
|
7527
|
+
const vars$8 = UploadFileClass.cssVarList;
|
7528
7528
|
|
7529
7529
|
const uploadFile = {
|
7530
|
-
[vars$
|
7531
|
-
[vars$
|
7532
|
-
[vars$
|
7530
|
+
[vars$8.hostDirection]: refs.direction,
|
7531
|
+
[vars$8.labelTextColor]: refs.labelTextColor,
|
7532
|
+
[vars$8.fontFamily]: refs.fontFamily,
|
7533
7533
|
|
7534
|
-
[vars$
|
7534
|
+
[vars$8.iconSize]: '2em',
|
7535
7535
|
|
7536
|
-
[vars$
|
7537
|
-
[vars$
|
7536
|
+
[vars$8.hostPadding]: '0.75em',
|
7537
|
+
[vars$8.gap]: '0.5em',
|
7538
7538
|
|
7539
|
-
[vars$
|
7540
|
-
[vars$
|
7541
|
-
[vars$
|
7539
|
+
[vars$8.fontSize]: '16px',
|
7540
|
+
[vars$8.titleFontWeight]: '500',
|
7541
|
+
[vars$8.lineHeight]: '1em',
|
7542
7542
|
|
7543
|
-
[vars$
|
7544
|
-
[vars$
|
7545
|
-
[vars$
|
7546
|
-
[vars$
|
7543
|
+
[vars$8.borderWidth]: refs.borderWidth,
|
7544
|
+
[vars$8.borderColor]: refs.borderColor,
|
7545
|
+
[vars$8.borderRadius]: refs.borderRadius,
|
7546
|
+
[vars$8.borderStyle]: 'dashed',
|
7547
7547
|
|
7548
7548
|
_required: {
|
7549
|
-
[vars$
|
7549
|
+
[vars$8.requiredIndicator]: refs.requiredIndicator,
|
7550
7550
|
},
|
7551
7551
|
|
7552
7552
|
size: {
|
7553
7553
|
xs: {
|
7554
|
-
[vars$
|
7555
|
-
[vars$
|
7556
|
-
[vars$
|
7557
|
-
[vars$
|
7558
|
-
[vars$
|
7554
|
+
[vars$8.hostHeight]: '196px',
|
7555
|
+
[vars$8.hostWidth]: '200px',
|
7556
|
+
[vars$8.titleFontSize]: '0.875em',
|
7557
|
+
[vars$8.descriptionFontSize]: '0.875em',
|
7558
|
+
[vars$8.lineHeight]: '1.25em',
|
7559
7559
|
},
|
7560
7560
|
sm: {
|
7561
|
-
[vars$
|
7562
|
-
[vars$
|
7563
|
-
[vars$
|
7564
|
-
[vars$
|
7565
|
-
[vars$
|
7561
|
+
[vars$8.hostHeight]: '216px',
|
7562
|
+
[vars$8.hostWidth]: '230px',
|
7563
|
+
[vars$8.titleFontSize]: '1em',
|
7564
|
+
[vars$8.descriptionFontSize]: '0.875em',
|
7565
|
+
[vars$8.lineHeight]: '1.25em',
|
7566
7566
|
},
|
7567
7567
|
md: {
|
7568
|
-
[vars$
|
7569
|
-
[vars$
|
7570
|
-
[vars$
|
7571
|
-
[vars$
|
7572
|
-
[vars$
|
7568
|
+
[vars$8.hostHeight]: '256px',
|
7569
|
+
[vars$8.hostWidth]: '312px',
|
7570
|
+
[vars$8.titleFontSize]: '1.125em',
|
7571
|
+
[vars$8.descriptionFontSize]: '1em',
|
7572
|
+
[vars$8.lineHeight]: '1.5em',
|
7573
7573
|
},
|
7574
7574
|
lg: {
|
7575
|
-
[vars$
|
7576
|
-
[vars$
|
7577
|
-
[vars$
|
7578
|
-
[vars$
|
7579
|
-
[vars$
|
7575
|
+
[vars$8.hostHeight]: '280px',
|
7576
|
+
[vars$8.hostWidth]: '336px',
|
7577
|
+
[vars$8.titleFontSize]: '1.125em',
|
7578
|
+
[vars$8.descriptionFontSize]: '1.125em',
|
7579
|
+
[vars$8.lineHeight]: '1.75em',
|
7580
7580
|
},
|
7581
7581
|
},
|
7582
7582
|
|
7583
7583
|
_fullWidth: {
|
7584
|
-
[vars$
|
7584
|
+
[vars$8.hostWidth]: refs.width,
|
7585
7585
|
},
|
7586
7586
|
};
|
7587
7587
|
|
7588
7588
|
var uploadFile$1 = /*#__PURE__*/Object.freeze({
|
7589
7589
|
__proto__: null,
|
7590
7590
|
default: uploadFile,
|
7591
|
-
vars: vars$
|
7591
|
+
vars: vars$8
|
7592
7592
|
});
|
7593
7593
|
|
7594
|
-
const componentName$
|
7594
|
+
const componentName$9 = getComponentName('button-selection-group-item');
|
7595
7595
|
|
7596
7596
|
class RawSelectItem extends createBaseClass({
|
7597
|
-
componentName: componentName$
|
7597
|
+
componentName: componentName$9,
|
7598
7598
|
baseSelector: ':host > descope-button',
|
7599
7599
|
}) {
|
7600
7600
|
get size() {
|
@@ -7692,39 +7692,39 @@ const ButtonSelectionGroupItemClass = compose(
|
|
7692
7692
|
componentNameValidationMixin
|
7693
7693
|
)(RawSelectItem);
|
7694
7694
|
|
7695
|
-
const globalRefs$
|
7695
|
+
const globalRefs$6 = getThemeRefs(globals);
|
7696
7696
|
|
7697
|
-
const vars$
|
7697
|
+
const vars$7 = ButtonSelectionGroupItemClass.cssVarList;
|
7698
7698
|
|
7699
7699
|
const buttonSelectionGroupItem = {
|
7700
|
-
[vars$
|
7701
|
-
[vars$
|
7702
|
-
[vars$
|
7703
|
-
[vars$
|
7704
|
-
[vars$
|
7705
|
-
[vars$
|
7700
|
+
[vars$7.hostDirection]: 'inherit',
|
7701
|
+
[vars$7.backgroundColor]: globalRefs$6.colors.surface.light,
|
7702
|
+
[vars$7.labelTextColor]: globalRefs$6.colors.surface.contrast,
|
7703
|
+
[vars$7.borderColor]: globalRefs$6.colors.surface.main,
|
7704
|
+
[vars$7.borderStyle]: 'solid',
|
7705
|
+
[vars$7.borderRadius]: globalRefs$6.radius.sm,
|
7706
7706
|
|
7707
7707
|
_hover: {
|
7708
|
-
[vars$
|
7708
|
+
[vars$7.backgroundColor]: '#f4f5f5', // can we take it from the palette?
|
7709
7709
|
},
|
7710
7710
|
|
7711
7711
|
_selected: {
|
7712
|
-
[vars$
|
7713
|
-
[vars$
|
7714
|
-
[vars$
|
7712
|
+
[vars$7.borderColor]: globalRefs$6.colors.surface.contrast,
|
7713
|
+
[vars$7.backgroundColor]: globalRefs$6.colors.surface.contrast,
|
7714
|
+
[vars$7.labelTextColor]: globalRefs$6.colors.surface.light,
|
7715
7715
|
},
|
7716
7716
|
};
|
7717
7717
|
|
7718
7718
|
var buttonSelectionGroupItem$1 = /*#__PURE__*/Object.freeze({
|
7719
7719
|
__proto__: null,
|
7720
7720
|
default: buttonSelectionGroupItem,
|
7721
|
-
vars: vars$
|
7721
|
+
vars: vars$7
|
7722
7722
|
});
|
7723
7723
|
|
7724
|
-
const componentName$
|
7724
|
+
const componentName$8 = getComponentName('button-selection-group-internal');
|
7725
7725
|
|
7726
7726
|
class ButtonSelectionGroupInternalClass extends createBaseInputClass({
|
7727
|
-
componentName: componentName$
|
7727
|
+
componentName: componentName$8,
|
7728
7728
|
baseSelector: 'slot',
|
7729
7729
|
}) {
|
7730
7730
|
constructor() {
|
@@ -7861,7 +7861,7 @@ class ButtonSelectionGroupInternalClass extends createBaseInputClass({
|
|
7861
7861
|
}
|
7862
7862
|
}
|
7863
7863
|
|
7864
|
-
const componentName$
|
7864
|
+
const componentName$7 = getComponentName('button-selection-group');
|
7865
7865
|
|
7866
7866
|
const customMixin$1 = (superclass) =>
|
7867
7867
|
class ButtonSelectionGroupMixinClass extends superclass {
|
@@ -7936,18 +7936,18 @@ const customMixin$1 = (superclass) =>
|
|
7936
7936
|
const template = document.createElement('template');
|
7937
7937
|
|
7938
7938
|
template.innerHTML = `
|
7939
|
-
<${componentName$
|
7939
|
+
<${componentName$8}
|
7940
7940
|
name="button-selection-group"
|
7941
7941
|
slot="input"
|
7942
7942
|
tabindex="-1"
|
7943
7943
|
>
|
7944
7944
|
<slot></slot>
|
7945
|
-
</${componentName$
|
7945
|
+
</${componentName$8}>
|
7946
7946
|
`;
|
7947
7947
|
|
7948
7948
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
7949
7949
|
|
7950
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
7950
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$8);
|
7951
7951
|
|
7952
7952
|
forwardAttrs(this, this.inputElement, {
|
7953
7953
|
includeAttrs: ['size', 'default-value', 'allow-deselect'],
|
@@ -7966,7 +7966,7 @@ const customMixin$1 = (superclass) =>
|
|
7966
7966
|
}
|
7967
7967
|
};
|
7968
7968
|
|
7969
|
-
const { host: host$
|
7969
|
+
const { host: host$2, label: label$1, requiredIndicator: requiredIndicator$1, internalWrapper, errorMessage: errorMessage$1 } = {
|
7970
7970
|
host: { selector: () => ':host' },
|
7971
7971
|
label: { selector: '::part(label)' },
|
7972
7972
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
@@ -7977,15 +7977,15 @@ const { host: host$1, label, requiredIndicator, internalWrapper, errorMessage }
|
|
7977
7977
|
const ButtonSelectionGroupClass = compose(
|
7978
7978
|
createStyleMixin({
|
7979
7979
|
mappings: {
|
7980
|
-
hostWidth: { ...host$
|
7981
|
-
hostDirection: { ...host$
|
7982
|
-
fontFamily: host$
|
7980
|
+
hostWidth: { ...host$2, property: 'width' },
|
7981
|
+
hostDirection: { ...host$2, property: 'direction' },
|
7982
|
+
fontFamily: host$2,
|
7983
7983
|
labelTextColor: [
|
7984
|
-
{ ...label, property: 'color' },
|
7985
|
-
{ ...requiredIndicator, property: 'color' },
|
7984
|
+
{ ...label$1, property: 'color' },
|
7985
|
+
{ ...requiredIndicator$1, property: 'color' },
|
7986
7986
|
],
|
7987
|
-
labelRequiredIndicator: { ...requiredIndicator, property: 'content' },
|
7988
|
-
errorMessageTextColor: { ...errorMessage, property: 'color' },
|
7987
|
+
labelRequiredIndicator: { ...requiredIndicator$1, property: 'content' },
|
7988
|
+
errorMessageTextColor: { ...errorMessage$1, property: 'color' },
|
7989
7989
|
itemsSpacing: { ...internalWrapper, property: 'gap' },
|
7990
7990
|
},
|
7991
7991
|
}),
|
@@ -8052,30 +8052,30 @@ const ButtonSelectionGroupClass = compose(
|
|
8052
8052
|
${resetInputCursor('vaadin-text-field')}
|
8053
8053
|
`,
|
8054
8054
|
excludeAttrsSync: ['tabindex'],
|
8055
|
-
componentName: componentName$
|
8055
|
+
componentName: componentName$7,
|
8056
8056
|
})
|
8057
8057
|
);
|
8058
8058
|
|
8059
|
-
const globalRefs$
|
8060
|
-
const vars$
|
8059
|
+
const globalRefs$5 = getThemeRefs(globals);
|
8060
|
+
const vars$6 = ButtonSelectionGroupClass.cssVarList;
|
8061
8061
|
|
8062
8062
|
const buttonSelectionGroup = {
|
8063
|
-
[vars$
|
8064
|
-
[vars$
|
8065
|
-
[vars$
|
8066
|
-
[vars$
|
8067
|
-
[vars$
|
8068
|
-
[vars$
|
8069
|
-
[vars$
|
8063
|
+
[vars$6.hostDirection]: refs.direction,
|
8064
|
+
[vars$6.fontFamily]: refs.fontFamily,
|
8065
|
+
[vars$6.labelTextColor]: refs.labelTextColor,
|
8066
|
+
[vars$6.labelRequiredIndicator]: refs.requiredIndicator,
|
8067
|
+
[vars$6.errorMessageTextColor]: refs.errorMessageTextColor,
|
8068
|
+
[vars$6.itemsSpacing]: globalRefs$5.spacing.sm,
|
8069
|
+
[vars$6.hostWidth]: refs.width,
|
8070
8070
|
};
|
8071
8071
|
|
8072
8072
|
var buttonSelectionGroup$1 = /*#__PURE__*/Object.freeze({
|
8073
8073
|
__proto__: null,
|
8074
8074
|
default: buttonSelectionGroup,
|
8075
|
-
vars: vars$
|
8075
|
+
vars: vars$6
|
8076
8076
|
});
|
8077
8077
|
|
8078
|
-
const componentName$
|
8078
|
+
const componentName$6 = getComponentName('modal');
|
8079
8079
|
|
8080
8080
|
const customMixin = (superclass) =>
|
8081
8081
|
class ModalMixinClass extends superclass {
|
@@ -8174,28 +8174,28 @@ const ModalClass = compose(
|
|
8174
8174
|
wrappedEleName: 'vaadin-dialog',
|
8175
8175
|
style: () => ``,
|
8176
8176
|
excludeAttrsSync: ['tabindex', 'opened'],
|
8177
|
-
componentName: componentName$
|
8177
|
+
componentName: componentName$6,
|
8178
8178
|
})
|
8179
8179
|
);
|
8180
8180
|
|
8181
|
-
const globalRefs$
|
8181
|
+
const globalRefs$4 = getThemeRefs(globals);
|
8182
8182
|
|
8183
8183
|
const compVars = ModalClass.cssVarList;
|
8184
8184
|
|
8185
8185
|
const modal = {
|
8186
|
-
[compVars.overlayBackgroundColor]: globalRefs$
|
8186
|
+
[compVars.overlayBackgroundColor]: globalRefs$4.colors.surface.light,
|
8187
8187
|
[compVars.overlayShadow]: 'none',
|
8188
8188
|
[compVars.overlayWidth]: '700px',
|
8189
8189
|
};
|
8190
8190
|
|
8191
|
-
const vars$
|
8191
|
+
const vars$5 = {
|
8192
8192
|
...compVars,
|
8193
8193
|
};
|
8194
8194
|
|
8195
8195
|
var modal$1 = /*#__PURE__*/Object.freeze({
|
8196
8196
|
__proto__: null,
|
8197
8197
|
default: modal,
|
8198
|
-
vars: vars$
|
8198
|
+
vars: vars$5
|
8199
8199
|
});
|
8200
8200
|
|
8201
8201
|
const isValidDataType = (data) => {
|
@@ -8208,7 +8208,7 @@ const isValidDataType = (data) => {
|
|
8208
8208
|
return isValid;
|
8209
8209
|
};
|
8210
8210
|
|
8211
|
-
const componentName$
|
8211
|
+
const componentName$5 = getComponentName('grid');
|
8212
8212
|
|
8213
8213
|
const GridMixin = (superclass) =>
|
8214
8214
|
class GridMixinClass extends superclass {
|
@@ -8368,7 +8368,7 @@ const GridMixin = (superclass) =>
|
|
8368
8368
|
};
|
8369
8369
|
|
8370
8370
|
const {
|
8371
|
-
host,
|
8371
|
+
host: host$1,
|
8372
8372
|
headerRow,
|
8373
8373
|
headerRowCell,
|
8374
8374
|
contentRow,
|
@@ -8403,15 +8403,15 @@ const GridClass = compose(
|
|
8403
8403
|
fontWeight: { ...contentRow },
|
8404
8404
|
valueTextColor: { ...contentRow, property: 'color' },
|
8405
8405
|
backgroundColor: [
|
8406
|
-
{ ...host, property: 'background-color' },
|
8406
|
+
{ ...host$1, property: 'background-color' },
|
8407
8407
|
{ ...contentRow, property: 'background-color' },
|
8408
8408
|
],
|
8409
8409
|
sortIndicatorsColor: { ...sortIndicators, property: 'color' },
|
8410
8410
|
activeSortIndicator: { ...activeSortIndicator, property: 'color' },
|
8411
|
-
inputBorderColor: { ...host, property: 'border-color' },
|
8412
|
-
inputBorderWidth: { ...host, property: 'border-width' },
|
8413
|
-
inputBorderStyle: { ...host, property: 'border-style' },
|
8414
|
-
inputBorderRadius: { ...host, property: 'border-radius' },
|
8411
|
+
inputBorderColor: { ...host$1, property: 'border-color' },
|
8412
|
+
inputBorderWidth: { ...host$1, property: 'border-width' },
|
8413
|
+
inputBorderStyle: { ...host$1, property: 'border-style' },
|
8414
|
+
inputBorderRadius: { ...host$1, property: 'border-radius' },
|
8415
8415
|
selectedBackgroundColor: { ...selectedRow, property: 'background-color' },
|
8416
8416
|
selectedTextColor: { ...selectedRow, property: 'color' },
|
8417
8417
|
headerRowTextColor: { ...headerRowCell, property: 'color' },
|
@@ -8440,39 +8440,39 @@ const GridClass = compose(
|
|
8440
8440
|
}
|
8441
8441
|
`,
|
8442
8442
|
excludeAttrsSync: ['columns', 'tabindex'],
|
8443
|
-
componentName: componentName$
|
8443
|
+
componentName: componentName$5,
|
8444
8444
|
})
|
8445
8445
|
);
|
8446
8446
|
|
8447
|
-
const globalRefs$
|
8448
|
-
const vars$
|
8447
|
+
const globalRefs$3 = getThemeRefs(globals);
|
8448
|
+
const vars$4 = GridClass.cssVarList;
|
8449
8449
|
|
8450
8450
|
const grid = {
|
8451
|
-
[vars$
|
8452
|
-
[vars$
|
8453
|
-
[vars$
|
8454
|
-
[vars$
|
8451
|
+
[vars$4.hostWidth]: '100%',
|
8452
|
+
[vars$4.hostHeight]: '100%',
|
8453
|
+
[vars$4.hostMinHeight]: '400px',
|
8454
|
+
[vars$4.backgroundColor]: globalRefs$3.colors.surface.light,
|
8455
8455
|
|
8456
|
-
[vars$
|
8457
|
-
[vars$
|
8456
|
+
[vars$4.fontSize]: refs.fontSize,
|
8457
|
+
[vars$4.fontFamily]: refs.fontFamily,
|
8458
8458
|
|
8459
|
-
[vars$
|
8460
|
-
[vars$
|
8461
|
-
[vars$
|
8459
|
+
[vars$4.sortIndicatorsColor]: globalRefs$3.colors.surface.main,
|
8460
|
+
[vars$4.activeSortIndicator]: globalRefs$3.colors.surface.dark,
|
8461
|
+
[vars$4.resizeHandleColor]: globalRefs$3.colors.surface.main,
|
8462
8462
|
|
8463
|
-
[vars$
|
8464
|
-
[vars$
|
8465
|
-
[vars$
|
8466
|
-
[vars$
|
8463
|
+
[vars$4.inputBorderWidth]: refs.borderWidth,
|
8464
|
+
[vars$4.inputBorderStyle]: refs.borderStyle,
|
8465
|
+
[vars$4.inputBorderRadius]: refs.borderRadius,
|
8466
|
+
[vars$4.inputBorderColor]: 'transparent',
|
8467
8467
|
|
8468
|
-
[vars$
|
8469
|
-
[vars$
|
8468
|
+
[vars$4.headerRowTextColor]: globalRefs$3.colors.surface.dark,
|
8469
|
+
[vars$4.separatorColor]: globalRefs$3.colors.surface.main,
|
8470
8470
|
|
8471
|
-
[vars$
|
8472
|
-
[vars$
|
8471
|
+
[vars$4.valueTextColor]: globalRefs$3.colors.surface.contrast,
|
8472
|
+
[vars$4.selectedBackgroundColor]: globalRefs$3.colors.primary.contrast,
|
8473
8473
|
|
8474
8474
|
_bordered: {
|
8475
|
-
[vars$
|
8475
|
+
[vars$4.inputBorderColor]: refs.borderColor,
|
8476
8476
|
},
|
8477
8477
|
};
|
8478
8478
|
|
@@ -8480,10 +8480,10 @@ var grid$1 = /*#__PURE__*/Object.freeze({
|
|
8480
8480
|
__proto__: null,
|
8481
8481
|
default: grid,
|
8482
8482
|
grid: grid,
|
8483
|
-
vars: vars$
|
8483
|
+
vars: vars$4
|
8484
8484
|
});
|
8485
8485
|
|
8486
|
-
const componentName$
|
8486
|
+
const componentName$4 = getComponentName('notification-card');
|
8487
8487
|
|
8488
8488
|
const notificationCardMixin = (superclass) =>
|
8489
8489
|
class NotificationCardMixinClass extends superclass {
|
@@ -8591,54 +8591,54 @@ const NotificationCardClass = compose(
|
|
8591
8591
|
}
|
8592
8592
|
`,
|
8593
8593
|
excludeAttrsSync: ['tabindex'],
|
8594
|
-
componentName: componentName$
|
8594
|
+
componentName: componentName$4,
|
8595
8595
|
})
|
8596
8596
|
);
|
8597
8597
|
|
8598
|
-
const globalRefs$
|
8599
|
-
const vars$
|
8598
|
+
const globalRefs$2 = getThemeRefs(globals);
|
8599
|
+
const vars$3 = NotificationCardClass.cssVarList;
|
8600
8600
|
|
8601
8601
|
const shadowColor = '#00000020';
|
8602
8602
|
|
8603
8603
|
const notification = {
|
8604
|
-
[vars$
|
8605
|
-
[vars$
|
8606
|
-
[vars$
|
8607
|
-
[vars$
|
8608
|
-
[vars$
|
8609
|
-
[vars$
|
8610
|
-
[vars$
|
8611
|
-
[vars$
|
8612
|
-
[vars$
|
8604
|
+
[vars$3.hostMinWidth]: '415px',
|
8605
|
+
[vars$3.fontFamily]: globalRefs$2.fonts.font1.family,
|
8606
|
+
[vars$3.fontSize]: globalRefs$2.typography.body1.size,
|
8607
|
+
[vars$3.backgroundColor]: globalRefs$2.colors.surface.main,
|
8608
|
+
[vars$3.textColor]: globalRefs$2.colors.surface.contrast,
|
8609
|
+
[vars$3.boxShadow]: `${globalRefs$2.shadow.wide.xl} ${shadowColor}, ${globalRefs$2.shadow.narrow.xl} ${shadowColor}`,
|
8610
|
+
[vars$3.verticalPadding]: '0.625em',
|
8611
|
+
[vars$3.horizontalPadding]: '1.5em',
|
8612
|
+
[vars$3.borderRadius]: globalRefs$2.radius.xs,
|
8613
8613
|
|
8614
8614
|
_bordered: {
|
8615
|
-
[vars$
|
8616
|
-
[vars$
|
8617
|
-
[vars$
|
8615
|
+
[vars$3.borderWidth]: globalRefs$2.border.sm,
|
8616
|
+
[vars$3.borderStyle]: 'solid',
|
8617
|
+
[vars$3.borderColor]: 'transparent',
|
8618
8618
|
},
|
8619
8619
|
|
8620
8620
|
size: {
|
8621
|
-
xs: { [vars$
|
8622
|
-
sm: { [vars$
|
8623
|
-
md: { [vars$
|
8624
|
-
lg: { [vars$
|
8621
|
+
xs: { [vars$3.fontSize]: '12px' },
|
8622
|
+
sm: { [vars$3.fontSize]: '14px' },
|
8623
|
+
md: { [vars$3.fontSize]: '16px' },
|
8624
|
+
lg: { [vars$3.fontSize]: '18px' },
|
8625
8625
|
},
|
8626
8626
|
|
8627
8627
|
mode: {
|
8628
8628
|
primary: {
|
8629
|
-
[vars$
|
8630
|
-
[vars$
|
8631
|
-
[vars$
|
8629
|
+
[vars$3.backgroundColor]: globalRefs$2.colors.primary.main,
|
8630
|
+
[vars$3.textColor]: globalRefs$2.colors.primary.contrast,
|
8631
|
+
[vars$3.borderColor]: globalRefs$2.colors.primary.light,
|
8632
8632
|
},
|
8633
8633
|
success: {
|
8634
|
-
[vars$
|
8635
|
-
[vars$
|
8636
|
-
[vars$
|
8634
|
+
[vars$3.backgroundColor]: globalRefs$2.colors.success.main,
|
8635
|
+
[vars$3.textColor]: globalRefs$2.colors.success.contrast,
|
8636
|
+
[vars$3.borderColor]: globalRefs$2.colors.success.light,
|
8637
8637
|
},
|
8638
8638
|
error: {
|
8639
|
-
[vars$
|
8640
|
-
[vars$
|
8641
|
-
[vars$
|
8639
|
+
[vars$3.backgroundColor]: globalRefs$2.colors.error.main,
|
8640
|
+
[vars$3.textColor]: globalRefs$2.colors.error.contrast,
|
8641
|
+
[vars$3.borderColor]: globalRefs$2.colors.error.light,
|
8642
8642
|
},
|
8643
8643
|
},
|
8644
8644
|
};
|
@@ -8646,6 +8646,529 @@ const notification = {
|
|
8646
8646
|
var notificationCard = /*#__PURE__*/Object.freeze({
|
8647
8647
|
__proto__: null,
|
8648
8648
|
default: notification,
|
8649
|
+
vars: vars$3
|
8650
|
+
});
|
8651
|
+
|
8652
|
+
const componentName$3 = getComponentName('multi-select-combo-box');
|
8653
|
+
|
8654
|
+
const MultiSelectComboBoxMixin = (superclass) =>
|
8655
|
+
class MultiSelectComboBoxMixinClass extends superclass {
|
8656
|
+
// eslint-disable-next-line class-methods-use-this
|
8657
|
+
#renderItem = ({ displayName, value, label }) => {
|
8658
|
+
return `<span data-name="${label}" data-id="${value}">${displayName || label}</span>`;
|
8659
|
+
};
|
8660
|
+
|
8661
|
+
#data;
|
8662
|
+
|
8663
|
+
get defaultValues() {
|
8664
|
+
const defaultValuesAttr = this.getAttribute('default-values');
|
8665
|
+
if (defaultValuesAttr) {
|
8666
|
+
try {
|
8667
|
+
const defaultValues = JSON.parse(defaultValuesAttr);
|
8668
|
+
if (this.isValidDataType(defaultValues)) {
|
8669
|
+
return defaultValues;
|
8670
|
+
}
|
8671
|
+
} catch (e) {
|
8672
|
+
// eslint-disable-next-line no-console
|
8673
|
+
console.error('could not parse data string from attribute "default-values" -', e.message);
|
8674
|
+
}
|
8675
|
+
}
|
8676
|
+
return [];
|
8677
|
+
}
|
8678
|
+
|
8679
|
+
get renderItem() {
|
8680
|
+
return this.#renderItem;
|
8681
|
+
}
|
8682
|
+
|
8683
|
+
set renderItem(renderFn) {
|
8684
|
+
this.#renderItem = renderFn;
|
8685
|
+
this.renderItems();
|
8686
|
+
}
|
8687
|
+
|
8688
|
+
get data() {
|
8689
|
+
if (this.#data) return this.#data;
|
8690
|
+
|
8691
|
+
const dataAttr = this.getAttribute('data');
|
8692
|
+
|
8693
|
+
if (dataAttr) {
|
8694
|
+
try {
|
8695
|
+
const data = JSON.parse(dataAttr);
|
8696
|
+
if (this.isValidDataType(data)) {
|
8697
|
+
return data;
|
8698
|
+
}
|
8699
|
+
} catch (e) {
|
8700
|
+
// eslint-disable-next-line no-console
|
8701
|
+
console.error('could not parse data string from attribute "data" -', e.message);
|
8702
|
+
}
|
8703
|
+
}
|
8704
|
+
|
8705
|
+
return [];
|
8706
|
+
}
|
8707
|
+
|
8708
|
+
set data(data) {
|
8709
|
+
if (this.isValidDataType(data)) {
|
8710
|
+
this.#data = data;
|
8711
|
+
this.renderItems();
|
8712
|
+
}
|
8713
|
+
}
|
8714
|
+
|
8715
|
+
get allowCustomValue() {
|
8716
|
+
return this.getAttribute('allow-custom-value') === 'true';
|
8717
|
+
}
|
8718
|
+
|
8719
|
+
// eslint-disable-next-line class-methods-use-this
|
8720
|
+
isValidDataType(data) {
|
8721
|
+
const isValid = Array.isArray(data);
|
8722
|
+
if (!isValid) {
|
8723
|
+
// eslint-disable-next-line no-console
|
8724
|
+
console.error('data and default-values must be an array, received:', data);
|
8725
|
+
}
|
8726
|
+
|
8727
|
+
return isValid;
|
8728
|
+
}
|
8729
|
+
|
8730
|
+
getItemsTemplate() {
|
8731
|
+
return this.data?.reduce?.((acc, item) => acc + (this.renderItem?.(item || {}) || ''), '');
|
8732
|
+
}
|
8733
|
+
|
8734
|
+
renderItems() {
|
8735
|
+
const template = this.getItemsTemplate();
|
8736
|
+
if (template) this.innerHTML = template;
|
8737
|
+
}
|
8738
|
+
|
8739
|
+
handleSelectedItems() {
|
8740
|
+
const currentSelected =
|
8741
|
+
this.baseElement.selectedItems?.map((item) => item.getAttribute('data-id')) || [];
|
8742
|
+
|
8743
|
+
this.baseElement.selectedItems = [];
|
8744
|
+
|
8745
|
+
// if previously selected item ID exists in current children, set it as selected
|
8746
|
+
if (currentSelected.length > 0) {
|
8747
|
+
this.value = currentSelected;
|
8748
|
+
}
|
8749
|
+
|
8750
|
+
// otherwise, if default value is specified, set default value as selected item
|
8751
|
+
if (this.value.length === 0) {
|
8752
|
+
this.setDefaultValues();
|
8753
|
+
}
|
8754
|
+
}
|
8755
|
+
|
8756
|
+
// eslint-disable-next-line class-methods-use-this
|
8757
|
+
customValueTransformFn(val) {
|
8758
|
+
return val;
|
8759
|
+
}
|
8760
|
+
|
8761
|
+
// We want to override Vaadin's Combo Box value setter. This is needed since Vaadin couples between the
|
8762
|
+
// field that it searches the value, and the finaly display value of the input.
|
8763
|
+
// We provide a custom transform function to override that behavior.
|
8764
|
+
setComboBoxDescriptor() {
|
8765
|
+
const valueDescriptor = Object.getOwnPropertyDescriptor(
|
8766
|
+
this.inputElement.constructor.prototype,
|
8767
|
+
'value'
|
8768
|
+
);
|
8769
|
+
|
8770
|
+
const comboBox = this;
|
8771
|
+
|
8772
|
+
Object.defineProperties(this.inputElement, {
|
8773
|
+
value: {
|
8774
|
+
...valueDescriptor,
|
8775
|
+
set(val) {
|
8776
|
+
const transformedValue = comboBox.customValueTransformFn(val) || '';
|
8777
|
+
|
8778
|
+
if (transformedValue === this.value) {
|
8779
|
+
return;
|
8780
|
+
}
|
8781
|
+
|
8782
|
+
valueDescriptor.set.call(this, transformedValue);
|
8783
|
+
},
|
8784
|
+
},
|
8785
|
+
});
|
8786
|
+
}
|
8787
|
+
|
8788
|
+
// vaadin api is to set props on their combo box node,
|
8789
|
+
// in order to avoid it, we are passing the children of this component
|
8790
|
+
// to the items & renderer props, so it will be used as the combo box items
|
8791
|
+
#onChildrenChange() {
|
8792
|
+
const items = Array.from(this.children);
|
8793
|
+
|
8794
|
+
// we want the data-name attribute to be accessible as an object attribute
|
8795
|
+
if (items.length) {
|
8796
|
+
this.removeAttribute('has-no-options');
|
8797
|
+
|
8798
|
+
items.forEach((node) => {
|
8799
|
+
Object.defineProperty(node, 'data-name', {
|
8800
|
+
value: node.getAttribute('data-name'),
|
8801
|
+
configurable: true,
|
8802
|
+
writable: true,
|
8803
|
+
});
|
8804
|
+
Object.defineProperty(node, 'data-id', {
|
8805
|
+
value: node.getAttribute('data-id'),
|
8806
|
+
configurable: true,
|
8807
|
+
writable: true,
|
8808
|
+
});
|
8809
|
+
});
|
8810
|
+
|
8811
|
+
this.baseElement.items = items;
|
8812
|
+
|
8813
|
+
setTimeout(() => {
|
8814
|
+
// set timeout to ensure this runs after customValueTransformFn had the chance to be overriden
|
8815
|
+
this.handleSelectedItems();
|
8816
|
+
}, 0);
|
8817
|
+
} else {
|
8818
|
+
this.baseElement.items = [];
|
8819
|
+
this.setAttribute('has-no-options', '');
|
8820
|
+
}
|
8821
|
+
|
8822
|
+
// use vaadin combobox custom renderer to render options as HTML
|
8823
|
+
// and not via default renderer, which renders only the data-name's value
|
8824
|
+
// in its own HTML template
|
8825
|
+
this.baseElement.renderer = (root, combo, model) => {
|
8826
|
+
// eslint-disable-next-line no-param-reassign
|
8827
|
+
root.innerHTML = model.item.outerHTML;
|
8828
|
+
};
|
8829
|
+
}
|
8830
|
+
|
8831
|
+
// the default vaadin behavior is to attach the overlay to the body when opened
|
8832
|
+
// we do not want that because it's difficult to style the overlay in this way
|
8833
|
+
// so we override it to open inside the shadow DOM
|
8834
|
+
#overrideOverlaySettings() {
|
8835
|
+
const overlay = this.baseElement.shadowRoot
|
8836
|
+
.querySelector('vaadin-multi-select-combo-box-internal')
|
8837
|
+
.shadowRoot.querySelector('vaadin-multi-select-combo-box-overlay');
|
8838
|
+
overlay._attachOverlay = () => {
|
8839
|
+
overlay.bringToFront();
|
8840
|
+
};
|
8841
|
+
overlay._detachOverlay = () => {};
|
8842
|
+
overlay._enterModalState = () => {};
|
8843
|
+
}
|
8844
|
+
|
8845
|
+
#handleCustomValues() {
|
8846
|
+
if (this.allowCustomValue) {
|
8847
|
+
this.baseElement.addEventListener('custom-value-set', (e) => {
|
8848
|
+
const newItemHtml = this.#renderItem({
|
8849
|
+
label: e.detail,
|
8850
|
+
displayName: e.detail,
|
8851
|
+
value: e.detail,
|
8852
|
+
});
|
8853
|
+
this.innerHTML += newItemHtml;
|
8854
|
+
// The value needs to be set with a timeout because it needs to execute after
|
8855
|
+
// the custom value is added to items by the children change observer
|
8856
|
+
setTimeout(() => {
|
8857
|
+
this.value = [...this.value, e.detail];
|
8858
|
+
}, 0);
|
8859
|
+
});
|
8860
|
+
}
|
8861
|
+
}
|
8862
|
+
|
8863
|
+
init() {
|
8864
|
+
super.init?.();
|
8865
|
+
|
8866
|
+
// eslint-disable-next-line func-names
|
8867
|
+
this.getValidity = function () {
|
8868
|
+
if (!this.value.length && this.isRequired) {
|
8869
|
+
return {
|
8870
|
+
valueMissing: true,
|
8871
|
+
};
|
8872
|
+
}
|
8873
|
+
return {};
|
8874
|
+
};
|
8875
|
+
|
8876
|
+
this.setComboBoxDescriptor();
|
8877
|
+
|
8878
|
+
this.#overrideOverlaySettings();
|
8879
|
+
|
8880
|
+
this.#handleCustomValues();
|
8881
|
+
|
8882
|
+
this.renderItems();
|
8883
|
+
|
8884
|
+
observeAttributes(this, this.renderItems.bind(this), { includeAttrs: ['data'] });
|
8885
|
+
|
8886
|
+
observeChildren(this, this.#onChildrenChange.bind(this));
|
8887
|
+
|
8888
|
+
// Note: we need to forward the `placeholder` because the vaadin component observes it and
|
8889
|
+
// tries to override it, causing us to lose the user set placeholder.
|
8890
|
+
forwardAttrs(this, this.baseElement, { includeAttrs: ['placeholder'] });
|
8891
|
+
|
8892
|
+
this.setDefaultValues();
|
8893
|
+
}
|
8894
|
+
|
8895
|
+
setDefaultValues() {
|
8896
|
+
this.value = this.defaultValues;
|
8897
|
+
}
|
8898
|
+
|
8899
|
+
set value(vals) {
|
8900
|
+
if (vals && vals.length > 0) {
|
8901
|
+
const children = this.baseElement.items?.filter((item) => vals.includes(item['data-id']));
|
8902
|
+
|
8903
|
+
if (children?.length > 0) {
|
8904
|
+
this.baseElement.selectedItems = children;
|
8905
|
+
}
|
8906
|
+
} else {
|
8907
|
+
this.baseElement.selectedItems = [];
|
8908
|
+
}
|
8909
|
+
}
|
8910
|
+
|
8911
|
+
get value() {
|
8912
|
+
return this.baseElement.selectedItems.map((elem) => elem.getAttribute('data-id')) || [];
|
8913
|
+
}
|
8914
|
+
};
|
8915
|
+
|
8916
|
+
const {
|
8917
|
+
host,
|
8918
|
+
inputField,
|
8919
|
+
inputElement,
|
8920
|
+
placeholder,
|
8921
|
+
toggle,
|
8922
|
+
label,
|
8923
|
+
requiredIndicator,
|
8924
|
+
helperText,
|
8925
|
+
errorMessage,
|
8926
|
+
chip,
|
8927
|
+
chipLabel,
|
8928
|
+
overflowChipFirstBorder,
|
8929
|
+
overflowChipSecondBorder,
|
8930
|
+
} = {
|
8931
|
+
host: { selector: () => ':host' },
|
8932
|
+
inputField: { selector: '::part(input-field)' },
|
8933
|
+
inputElement: { selector: 'input' },
|
8934
|
+
placeholder: { selector: '> input:placeholder-shown' },
|
8935
|
+
toggle: { selector: '::part(toggle-button)' },
|
8936
|
+
label: { selector: '::part(label)' },
|
8937
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
8938
|
+
helperText: { selector: '::part(helper-text)' },
|
8939
|
+
errorMessage: { selector: '::part(error-message)' },
|
8940
|
+
chip: { selector: 'vaadin-multi-select-combo-box-chip' },
|
8941
|
+
chipLabel: { selector: 'vaadin-multi-select-combo-box-chip::part(label)' },
|
8942
|
+
overflowChipFirstBorder: {
|
8943
|
+
selector: "vaadin-multi-select-combo-box-chip[slot='overflow']::before",
|
8944
|
+
},
|
8945
|
+
overflowChipSecondBorder: {
|
8946
|
+
selector: "vaadin-multi-select-combo-box-chip[slot='overflow']::after",
|
8947
|
+
},
|
8948
|
+
};
|
8949
|
+
|
8950
|
+
const MultiSelectComboBoxClass = compose(
|
8951
|
+
createStyleMixin({
|
8952
|
+
mappings: {
|
8953
|
+
hostWidth: { ...host, property: 'width' },
|
8954
|
+
hostDirection: { ...host, property: 'direction' },
|
8955
|
+
// we apply font-size also on the host so we can set its width with em
|
8956
|
+
fontSize: [{}, host],
|
8957
|
+
chipFontSize: { ...chipLabel, property: 'font-size' },
|
8958
|
+
fontFamily: [label, placeholder, inputField, helperText, errorMessage, chipLabel],
|
8959
|
+
labelTextColor: [
|
8960
|
+
{ ...label, property: 'color' },
|
8961
|
+
{ ...requiredIndicator, property: 'color' },
|
8962
|
+
],
|
8963
|
+
errorMessageTextColor: { ...errorMessage, property: 'color' },
|
8964
|
+
inputHeight: { ...inputField, property: 'min-height' },
|
8965
|
+
inputBackgroundColor: { ...inputField, property: 'background-color' },
|
8966
|
+
inputBorderColor: { ...inputField, property: 'border-color' },
|
8967
|
+
inputBorderWidth: { ...inputField, property: 'border-width' },
|
8968
|
+
inputBorderStyle: { ...inputField, property: 'border-style' },
|
8969
|
+
inputBorderRadius: { ...inputField, property: 'border-radius' },
|
8970
|
+
labelRequiredIndicator: { ...requiredIndicator, property: 'content' },
|
8971
|
+
inputValueTextColor: { ...inputField, property: 'color' },
|
8972
|
+
inputPlaceholderTextColor: { ...placeholder, property: 'color' },
|
8973
|
+
inputDropdownButtonCursor: { ...toggle, property: 'cursor' },
|
8974
|
+
inputDropdownButtonColor: { ...toggle, property: 'color' },
|
8975
|
+
inputDropdownButtonSize: { ...toggle, property: 'font-size' },
|
8976
|
+
inputDropdownButtonOffset: [
|
8977
|
+
{ ...toggle, property: 'margin-right' },
|
8978
|
+
{ ...toggle, property: 'margin-left' },
|
8979
|
+
],
|
8980
|
+
inputOutlineColor: { ...inputField, property: 'outline-color' },
|
8981
|
+
inputOutlineWidth: { ...inputField, property: 'outline-width' },
|
8982
|
+
inputOutlineStyle: { ...inputField, property: 'outline-style' },
|
8983
|
+
inputOutlineOffset: { ...inputField, property: 'outline-offset' },
|
8984
|
+
inputHorizontalPadding: [
|
8985
|
+
{ ...inputElement, property: 'padding-left' },
|
8986
|
+
{ ...inputElement, property: 'padding-right' },
|
8987
|
+
{ ...inputField, property: 'padding-inline-start' },
|
8988
|
+
],
|
8989
|
+
inputVerticalPadding: [
|
8990
|
+
{ ...inputField, property: 'padding-top' },
|
8991
|
+
{ ...inputField, property: 'padding-bottom' },
|
8992
|
+
],
|
8993
|
+
chipTextColor: { ...chipLabel, property: 'color' },
|
8994
|
+
chipBackgroundColor: [
|
8995
|
+
{ ...chip, property: 'background-color' },
|
8996
|
+
{ ...overflowChipFirstBorder, property: 'border-color' },
|
8997
|
+
{ ...overflowChipSecondBorder, property: 'border-color' },
|
8998
|
+
],
|
8999
|
+
|
9000
|
+
// we need to use the variables from the portal mixin
|
9001
|
+
// so we need to use an arrow function on the selector
|
9002
|
+
// for that to work, because ComboBox is not available
|
9003
|
+
// at this time.
|
9004
|
+
overlayBackground: {
|
9005
|
+
property: () => MultiSelectComboBoxClass.cssVarList.overlay.backgroundColor,
|
9006
|
+
},
|
9007
|
+
overlayBorder: { property: () => MultiSelectComboBoxClass.cssVarList.overlay.border },
|
9008
|
+
overlayFontSize: { property: () => MultiSelectComboBoxClass.cssVarList.overlay.fontSize },
|
9009
|
+
overlayFontFamily: { property: () => MultiSelectComboBoxClass.cssVarList.overlay.fontFamily },
|
9010
|
+
overlayCursor: { property: () => MultiSelectComboBoxClass.cssVarList.overlay.cursor },
|
9011
|
+
overlayItemBoxShadow: {
|
9012
|
+
property: () => MultiSelectComboBoxClass.cssVarList.overlay.itemBoxShadow,
|
9013
|
+
},
|
9014
|
+
overlayItemPaddingInlineStart: {
|
9015
|
+
property: () => MultiSelectComboBoxClass.cssVarList.overlay.itemPaddingInlineStart,
|
9016
|
+
},
|
9017
|
+
overlayItemPaddingInlineEnd: {
|
9018
|
+
property: () => MultiSelectComboBoxClass.cssVarList.overlay.itemPaddingInlineEnd,
|
9019
|
+
},
|
9020
|
+
},
|
9021
|
+
}),
|
9022
|
+
draggableMixin,
|
9023
|
+
portalMixin({
|
9024
|
+
name: 'overlay',
|
9025
|
+
selector: 'vaadin-multi-select-combo-box-internal',
|
9026
|
+
mappings: {
|
9027
|
+
backgroundColor: { selector: 'vaadin-multi-select-combo-box-scroller' },
|
9028
|
+
minHeight: { selector: 'vaadin-multi-select-combo-box-overlay' },
|
9029
|
+
margin: { selector: 'vaadin-multi-select-combo-box-overlay' },
|
9030
|
+
cursor: { selector: 'vaadin-multi-select-combo-box-item' },
|
9031
|
+
fontFamily: { selector: 'vaadin-multi-select-combo-box-item' },
|
9032
|
+
fontSize: { selector: 'vaadin-multi-select-combo-box-item' },
|
9033
|
+
itemBoxShadow: { selector: 'vaadin-multi-select-combo-box-item', property: 'box-shadow' },
|
9034
|
+
itemPaddingInlineStart: {
|
9035
|
+
selector: 'vaadin-multi-select-combo-box-item',
|
9036
|
+
property: 'padding-inline-start',
|
9037
|
+
},
|
9038
|
+
itemPaddingInlineEnd: {
|
9039
|
+
selector: 'vaadin-multi-select-combo-box-item',
|
9040
|
+
property: 'padding-inline-end',
|
9041
|
+
},
|
9042
|
+
},
|
9043
|
+
forward: {
|
9044
|
+
include: false,
|
9045
|
+
attributes: ['size'],
|
9046
|
+
},
|
9047
|
+
}),
|
9048
|
+
composedProxyInputMixin({ proxyProps: ['selectionStart'], inputEvent: 'selected-items-changed' }),
|
9049
|
+
componentNameValidationMixin,
|
9050
|
+
MultiSelectComboBoxMixin
|
9051
|
+
)(
|
9052
|
+
createProxy({
|
9053
|
+
slots: ['', 'prefix'],
|
9054
|
+
wrappedEleName: 'vaadin-multi-select-combo-box',
|
9055
|
+
style: () => `
|
9056
|
+
:host {
|
9057
|
+
display: inline-flex;
|
9058
|
+
box-sizing: border-box;
|
9059
|
+
-webkit-mask-image: none;
|
9060
|
+
}
|
9061
|
+
${useHostExternalPadding(MultiSelectComboBoxClass.cssVarList)}
|
9062
|
+
${resetInputReadonlyStyle('vaadin-multi-select-combo-box')}
|
9063
|
+
${resetInputPlaceholder('vaadin-multi-select-combo-box')}
|
9064
|
+
${resetInputCursor('vaadin-multi-select-combo-box')}
|
9065
|
+
|
9066
|
+
vaadin-multi-select-combo-box {
|
9067
|
+
padding: 0;
|
9068
|
+
width: 100%;
|
9069
|
+
}
|
9070
|
+
vaadin-multi-select-combo-box::before {
|
9071
|
+
height: initial;
|
9072
|
+
}
|
9073
|
+
vaadin-multi-select-combo-box [slot="input"] {
|
9074
|
+
-webkit-mask-image: none;
|
9075
|
+
min-height: 0;
|
9076
|
+
align-self: center;
|
9077
|
+
box-sizing: border-box;
|
9078
|
+
}
|
9079
|
+
|
9080
|
+
::part(input-field) {
|
9081
|
+
padding: 0;
|
9082
|
+
box-shadow: none;
|
9083
|
+
}
|
9084
|
+
${resetInputLabelPosition('vaadin-multi-select-combo-box')}
|
9085
|
+
:host([has-label]) vaadin-multi-select-combo-box-chip::part(label) {
|
9086
|
+
display: block;
|
9087
|
+
}
|
9088
|
+
|
9089
|
+
vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::before,
|
9090
|
+
vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {
|
9091
|
+
left: -4px;
|
9092
|
+
right: -4px;
|
9093
|
+
border-left-width: 0;
|
9094
|
+
border-inline-start-style: solid;
|
9095
|
+
border-inline-start-width: 2px;
|
9096
|
+
}
|
9097
|
+
vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {
|
9098
|
+
left: -8px;
|
9099
|
+
right: -8px;
|
9100
|
+
}
|
9101
|
+
|
9102
|
+
:host([has-no-options][allow-custom-value='true']) ::part(toggle-button) {
|
9103
|
+
display: none;
|
9104
|
+
}
|
9105
|
+
`,
|
9106
|
+
// Note: we exclude `size` to avoid overriding Vaadin's ComboBox property
|
9107
|
+
// with the same name. Including it will cause Vaadin to calculate NaN size,
|
9108
|
+
// and reset items to an empty array, and opening the list box with no items
|
9109
|
+
// to display.
|
9110
|
+
// Note: we exclude `placeholder` because the vaadin component observes it and
|
9111
|
+
// tries to override it, causing us to lose the user set placeholder.
|
9112
|
+
excludeAttrsSync: ['tabindex', 'size', 'data', 'placeholder'],
|
9113
|
+
componentName: componentName$3,
|
9114
|
+
includeForwardProps: ['items', 'renderer', 'selectedItems'],
|
9115
|
+
})
|
9116
|
+
);
|
9117
|
+
|
9118
|
+
const globalRefs$1 = getThemeRefs(globals);
|
9119
|
+
const vars$2 = MultiSelectComboBoxClass.cssVarList;
|
9120
|
+
|
9121
|
+
const multiSelectComboBox = {
|
9122
|
+
[vars$2.hostWidth]: refs.width,
|
9123
|
+
[vars$2.hostDirection]: refs.direction,
|
9124
|
+
[vars$2.fontSize]: refs.fontSize,
|
9125
|
+
[vars$2.fontFamily]: refs.fontFamily,
|
9126
|
+
[vars$2.labelTextColor]: refs.labelTextColor,
|
9127
|
+
[vars$2.errorMessageTextColor]: refs.errorMessageTextColor,
|
9128
|
+
[vars$2.inputBorderColor]: refs.borderColor,
|
9129
|
+
[vars$2.inputBorderWidth]: refs.borderWidth,
|
9130
|
+
[vars$2.inputBorderStyle]: refs.borderStyle,
|
9131
|
+
[vars$2.inputBorderRadius]: refs.borderRadius,
|
9132
|
+
[vars$2.inputOutlineColor]: refs.outlineColor,
|
9133
|
+
[vars$2.inputOutlineOffset]: refs.outlineOffset,
|
9134
|
+
[vars$2.inputOutlineWidth]: refs.outlineWidth,
|
9135
|
+
[vars$2.inputOutlineStyle]: refs.outlineStyle,
|
9136
|
+
[vars$2.labelRequiredIndicator]: refs.requiredIndicator,
|
9137
|
+
[vars$2.inputValueTextColor]: refs.valueTextColor,
|
9138
|
+
[vars$2.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
9139
|
+
[vars$2.inputBackgroundColor]: refs.backgroundColor,
|
9140
|
+
[vars$2.inputHorizontalPadding]: refs.horizontalPadding,
|
9141
|
+
[vars$2.inputVerticalPadding]: refs.verticalPadding,
|
9142
|
+
[vars$2.inputHeight]: refs.inputHeight,
|
9143
|
+
[vars$2.inputDropdownButtonColor]: globalRefs$1.colors.surface.contrast,
|
9144
|
+
[vars$2.inputDropdownButtonCursor]: 'pointer',
|
9145
|
+
[vars$2.inputDropdownButtonSize]: refs.toggleButtonSize,
|
9146
|
+
[vars$2.inputDropdownButtonOffset]: globalRefs$1.spacing.xs,
|
9147
|
+
[vars$2.overlayItemPaddingInlineStart]: globalRefs$1.spacing.xs,
|
9148
|
+
[vars$2.overlayItemPaddingInlineEnd]: globalRefs$1.spacing.lg,
|
9149
|
+
[vars$2.chipFontSize]: refs.chipFontSize,
|
9150
|
+
[vars$2.chipTextColor]: refs.valueTextColor,
|
9151
|
+
[vars$2.chipBackgroundColor]: globalRefs$1.colors.surface.main,
|
9152
|
+
|
9153
|
+
_readonly: {
|
9154
|
+
[vars$2.inputDropdownButtonCursor]: 'default',
|
9155
|
+
},
|
9156
|
+
|
9157
|
+
// Overlay theme exposed via the component:
|
9158
|
+
[vars$2.overlayFontSize]: refs.fontSize,
|
9159
|
+
[vars$2.overlayFontFamily]: refs.fontFamily,
|
9160
|
+
[vars$2.overlayCursor]: 'pointer',
|
9161
|
+
[vars$2.overlayItemBoxShadow]: 'none',
|
9162
|
+
|
9163
|
+
// Overlay direct theme:
|
9164
|
+
[vars$2.overlay.minHeight]: '400px',
|
9165
|
+
[vars$2.overlay.margin]: '0',
|
9166
|
+
};
|
9167
|
+
|
9168
|
+
var multiSelectComboBox$1 = /*#__PURE__*/Object.freeze({
|
9169
|
+
__proto__: null,
|
9170
|
+
default: multiSelectComboBox,
|
9171
|
+
multiSelectComboBox: multiSelectComboBox,
|
8649
9172
|
vars: vars$2
|
8650
9173
|
});
|
8651
9174
|
|
@@ -8800,6 +9323,7 @@ const components = {
|
|
8800
9323
|
modal: modal$1,
|
8801
9324
|
grid: grid$1,
|
8802
9325
|
notificationCard,
|
9326
|
+
multiSelectComboBox: multiSelectComboBox$1,
|
8803
9327
|
badge: badge$1,
|
8804
9328
|
};
|
8805
9329
|
|
@@ -8813,7 +9337,7 @@ const vars = Object.keys(components).reduce(
|
|
8813
9337
|
);
|
8814
9338
|
|
8815
9339
|
const defaultTheme = { globals, components: theme };
|
8816
|
-
const themeVars = { globals: vars$
|
9340
|
+
const themeVars = { globals: vars$w, components: vars };
|
8817
9341
|
|
8818
9342
|
const componentName$1 = getComponentName('recaptcha');
|
8819
9343
|
|