@descope/web-components-ui 1.0.246 → 1.0.248
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +877 -658
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +994 -769
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1000.js +1 -1
- package/dist/umd/9214.js +1 -0
- package/dist/umd/9434.js +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -0
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- package/src/components/{descope-button-selection-group/ButtonSelectionGroupClass.js → button-selection-group-fields/baseButtonSelectionGroup.js} +19 -70
- package/src/components/button-selection-group-fields/createBaseButtonSelectionGroupInternalClass.js +101 -0
- package/src/components/button-selection-group-fields/descope-button-multi-selection-group/ButtonMultiSelectionGroupClass.js +67 -0
- package/src/components/button-selection-group-fields/descope-button-multi-selection-group/index.js +7 -0
- package/src/components/button-selection-group-fields/descope-button-multi-selection-group-internal/ButtonMultiSelectionGroupInternalClass.js +106 -0
- package/src/components/button-selection-group-fields/descope-button-multi-selection-group-internal/index.js +8 -0
- package/src/components/button-selection-group-fields/descope-button-selection-group/ButtonSelectionGroupClass.js +67 -0
- package/src/components/{descope-button-selection-group → button-selection-group-fields/descope-button-selection-group}/index.js +2 -2
- package/src/components/button-selection-group-fields/descope-button-selection-group-internal/ButtonSelectionGroupInternalClass.js +77 -0
- package/src/index.cjs.js +3 -2
- package/src/index.d.ts +2 -1
- package/src/index.js +3 -1
- package/src/mixins/inputValidationMixin.js +2 -2
- package/src/theme/components/buttonSelectionGroup/baseButtonSelectionGroup.js +15 -0
- package/src/theme/components/buttonSelectionGroup/buttonMultiSelectionGroup.js +11 -0
- package/src/theme/components/buttonSelectionGroup/buttonSelectionGroup.js +3 -12
- package/src/theme/components/buttonSelectionGroup/buttonSelectionGroupItem.js +1 -1
- package/src/theme/components/index.js +2 -0
- package/dist/umd/descope-button-selection-group-descope-button-selection-group-internal-index-js.js +0 -1
- package/dist/umd/descope-button-selection-group-descope-button-selection-group-item-index-js.js +0 -1
- package/dist/umd/descope-button-selection-group-index-js.js +0 -1
- package/src/components/descope-button-selection-group/descope-button-selection-group-internal/ButtonSelectionGroupInternalClass.js +0 -145
- /package/src/components/{descope-button-selection-group → button-selection-group-fields}/descope-button-selection-group-internal/index.js +0 -0
- /package/src/components/{descope-button-selection-group → button-selection-group-fields}/descope-button-selection-group-item/ButtonSelectionGroupItemClass.js +0 -0
- /package/src/components/{descope-button-selection-group → button-selection-group-fields}/descope-button-selection-group-item/index.js +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$x = getThemeVars(globals);
|
503
503
|
|
504
504
|
const createCssVarFallback = (first, ...rest) =>
|
505
505
|
`var(${first}${rest.length ? ` , ${createCssVarFallback(...rest)}` : ''})`;
|
@@ -1888,11 +1888,11 @@ const inputValidationMixin = (superclass) =>
|
|
1888
1888
|
}
|
1889
1889
|
|
1890
1890
|
get defaultErrorMsgRangeUnderflow() {
|
1891
|
-
return `At least ${this.
|
1891
|
+
return `At least ${this.getAttribute('min-items-selection')} items are required.`;
|
1892
1892
|
}
|
1893
1893
|
|
1894
1894
|
get defaultErrorMsgRangeOverflow() {
|
1895
|
-
return `At most ${this.
|
1895
|
+
return `At most ${this.getAttribute('max-items-selection')} items are allowed.`;
|
1896
1896
|
}
|
1897
1897
|
|
1898
1898
|
getErrorMessage(flags) {
|
@@ -2385,7 +2385,7 @@ const clickableMixin = (superclass) =>
|
|
2385
2385
|
}
|
2386
2386
|
};
|
2387
2387
|
|
2388
|
-
const componentName$
|
2388
|
+
const componentName$E = getComponentName('button');
|
2389
2389
|
|
2390
2390
|
const resetStyles = `
|
2391
2391
|
:host {
|
@@ -2486,7 +2486,7 @@ const ButtonClass = compose(
|
|
2486
2486
|
}
|
2487
2487
|
`,
|
2488
2488
|
excludeAttrsSync: ['tabindex'],
|
2489
|
-
componentName: componentName$
|
2489
|
+
componentName: componentName$E,
|
2490
2490
|
})
|
2491
2491
|
);
|
2492
2492
|
|
@@ -2534,7 +2534,7 @@ const mode = {
|
|
2534
2534
|
surface: globalRefs$i.colors.surface,
|
2535
2535
|
};
|
2536
2536
|
|
2537
|
-
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$
|
2537
|
+
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$E);
|
2538
2538
|
|
2539
2539
|
const button = {
|
2540
2540
|
...helperTheme$3,
|
@@ -2632,7 +2632,7 @@ const button = {
|
|
2632
2632
|
},
|
2633
2633
|
};
|
2634
2634
|
|
2635
|
-
const vars$
|
2635
|
+
const vars$w = {
|
2636
2636
|
...compVars$4,
|
2637
2637
|
...helperVars$3,
|
2638
2638
|
};
|
@@ -2640,7 +2640,7 @@ const vars$v = {
|
|
2640
2640
|
var button$1 = /*#__PURE__*/Object.freeze({
|
2641
2641
|
__proto__: null,
|
2642
2642
|
default: button,
|
2643
|
-
vars: vars$
|
2643
|
+
vars: vars$w
|
2644
2644
|
});
|
2645
2645
|
|
2646
2646
|
const { host: host$g, label: label$9, placeholder: placeholder$3, requiredIndicator: requiredIndicator$b, inputField: inputField$6, input, helperText: helperText$9, errorMessage: errorMessage$b } =
|
@@ -2827,11 +2827,11 @@ const resetInputLabelPosition = (name) => `
|
|
2827
2827
|
}
|
2828
2828
|
`;
|
2829
2829
|
|
2830
|
-
const componentName$
|
2830
|
+
const componentName$D = getComponentName('text-field');
|
2831
2831
|
|
2832
2832
|
const observedAttrs = ['type'];
|
2833
2833
|
|
2834
|
-
const customMixin$
|
2834
|
+
const customMixin$6 = (superclass) =>
|
2835
2835
|
class TextFieldClass extends superclass {
|
2836
2836
|
static get observedAttributes() {
|
2837
2837
|
return observedAttrs.concat(superclass.observedAttributes || []);
|
@@ -2858,7 +2858,7 @@ const TextFieldClass = compose(
|
|
2858
2858
|
draggableMixin,
|
2859
2859
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
2860
2860
|
componentNameValidationMixin,
|
2861
|
-
customMixin$
|
2861
|
+
customMixin$6
|
2862
2862
|
)(
|
2863
2863
|
createProxy({
|
2864
2864
|
slots: ['prefix', 'suffix'],
|
@@ -2877,14 +2877,14 @@ const TextFieldClass = compose(
|
|
2877
2877
|
${resetInputOverrides('vaadin-text-field', TextFieldClass.cssVarList)}
|
2878
2878
|
`,
|
2879
2879
|
excludeAttrsSync: ['tabindex'],
|
2880
|
-
componentName: componentName$
|
2880
|
+
componentName: componentName$D,
|
2881
2881
|
})
|
2882
2882
|
);
|
2883
2883
|
|
2884
|
-
const componentName$
|
2884
|
+
const componentName$C = getComponentName('input-wrapper');
|
2885
2885
|
const globalRefs$h = getThemeRefs(globals);
|
2886
2886
|
|
2887
|
-
const [theme$1, refs, vars$
|
2887
|
+
const [theme$1, refs, vars$v] = createHelperVars(
|
2888
2888
|
{
|
2889
2889
|
labelTextColor: globalRefs$h.colors.surface.contrast,
|
2890
2890
|
valueTextColor: globalRefs$h.colors.surface.contrast,
|
@@ -2950,47 +2950,47 @@ const [theme$1, refs, vars$u] = createHelperVars(
|
|
2950
2950
|
backgroundColor: globalRefs$h.colors.surface.main,
|
2951
2951
|
},
|
2952
2952
|
},
|
2953
|
-
componentName$
|
2953
|
+
componentName$C
|
2954
2954
|
);
|
2955
2955
|
|
2956
2956
|
var inputWrapper = /*#__PURE__*/Object.freeze({
|
2957
2957
|
__proto__: null,
|
2958
2958
|
default: theme$1,
|
2959
2959
|
refs: refs,
|
2960
|
-
vars: vars$
|
2960
|
+
vars: vars$v
|
2961
2961
|
});
|
2962
2962
|
|
2963
|
-
const vars$
|
2963
|
+
const vars$u = TextFieldClass.cssVarList;
|
2964
2964
|
|
2965
2965
|
const textField = {
|
2966
|
-
[vars$
|
2967
|
-
[vars$
|
2968
|
-
[vars$
|
2969
|
-
[vars$
|
2970
|
-
[vars$
|
2971
|
-
[vars$
|
2972
|
-
[vars$
|
2973
|
-
[vars$
|
2974
|
-
[vars$
|
2975
|
-
[vars$
|
2976
|
-
[vars$
|
2977
|
-
[vars$
|
2978
|
-
[vars$
|
2979
|
-
[vars$
|
2980
|
-
[vars$
|
2981
|
-
[vars$
|
2982
|
-
[vars$
|
2983
|
-
[vars$
|
2984
|
-
[vars$
|
2985
|
-
[vars$
|
2986
|
-
[vars$
|
2966
|
+
[vars$u.hostWidth]: refs.width,
|
2967
|
+
[vars$u.hostMinWidth]: refs.minWidth,
|
2968
|
+
[vars$u.hostDirection]: refs.direction,
|
2969
|
+
[vars$u.fontSize]: refs.fontSize,
|
2970
|
+
[vars$u.fontFamily]: refs.fontFamily,
|
2971
|
+
[vars$u.labelTextColor]: refs.labelTextColor,
|
2972
|
+
[vars$u.labelRequiredIndicator]: refs.requiredIndicator,
|
2973
|
+
[vars$u.errorMessageTextColor]: refs.errorMessageTextColor,
|
2974
|
+
[vars$u.inputValueTextColor]: refs.valueTextColor,
|
2975
|
+
[vars$u.inputPlaceholderColor]: refs.placeholderTextColor,
|
2976
|
+
[vars$u.inputBorderWidth]: refs.borderWidth,
|
2977
|
+
[vars$u.inputBorderStyle]: refs.borderStyle,
|
2978
|
+
[vars$u.inputBorderColor]: refs.borderColor,
|
2979
|
+
[vars$u.inputBorderRadius]: refs.borderRadius,
|
2980
|
+
[vars$u.inputOutlineWidth]: refs.outlineWidth,
|
2981
|
+
[vars$u.inputOutlineStyle]: refs.outlineStyle,
|
2982
|
+
[vars$u.inputOutlineColor]: refs.outlineColor,
|
2983
|
+
[vars$u.inputOutlineOffset]: refs.outlineOffset,
|
2984
|
+
[vars$u.inputBackgroundColor]: refs.backgroundColor,
|
2985
|
+
[vars$u.inputHeight]: refs.inputHeight,
|
2986
|
+
[vars$u.inputHorizontalPadding]: refs.horizontalPadding,
|
2987
2987
|
};
|
2988
2988
|
|
2989
2989
|
var textField$1 = /*#__PURE__*/Object.freeze({
|
2990
2990
|
__proto__: null,
|
2991
2991
|
default: textField,
|
2992
2992
|
textField: textField,
|
2993
|
-
vars: vars$
|
2993
|
+
vars: vars$u
|
2994
2994
|
});
|
2995
2995
|
|
2996
2996
|
const passwordDraggableMixin = (superclass) =>
|
@@ -3027,7 +3027,7 @@ const passwordDraggableMixin = (superclass) =>
|
|
3027
3027
|
}
|
3028
3028
|
};
|
3029
3029
|
|
3030
|
-
const componentName$
|
3030
|
+
const componentName$B = getComponentName('password');
|
3031
3031
|
|
3032
3032
|
const {
|
3033
3033
|
host: host$f,
|
@@ -3158,45 +3158,45 @@ const PasswordClass = compose(
|
|
3158
3158
|
}
|
3159
3159
|
`,
|
3160
3160
|
excludeAttrsSync: ['tabindex'],
|
3161
|
-
componentName: componentName$
|
3161
|
+
componentName: componentName$B,
|
3162
3162
|
})
|
3163
3163
|
);
|
3164
3164
|
|
3165
3165
|
const globalRefs$g = getThemeRefs(globals);
|
3166
|
-
const vars$
|
3166
|
+
const vars$t = PasswordClass.cssVarList;
|
3167
3167
|
|
3168
3168
|
const password = {
|
3169
|
-
[vars$
|
3170
|
-
[vars$
|
3171
|
-
[vars$
|
3172
|
-
[vars$
|
3173
|
-
[vars$
|
3174
|
-
[vars$
|
3175
|
-
[vars$
|
3176
|
-
[vars$
|
3177
|
-
[vars$
|
3178
|
-
[vars$
|
3179
|
-
[vars$
|
3180
|
-
[vars$
|
3181
|
-
[vars$
|
3182
|
-
[vars$
|
3183
|
-
[vars$
|
3184
|
-
[vars$
|
3185
|
-
[vars$
|
3186
|
-
[vars$
|
3187
|
-
[vars$
|
3188
|
-
[vars$
|
3189
|
-
[vars$
|
3190
|
-
[vars$
|
3169
|
+
[vars$t.hostWidth]: refs.width,
|
3170
|
+
[vars$t.hostDirection]: refs.direction,
|
3171
|
+
[vars$t.fontSize]: refs.fontSize,
|
3172
|
+
[vars$t.fontFamily]: refs.fontFamily,
|
3173
|
+
[vars$t.labelTextColor]: refs.labelTextColor,
|
3174
|
+
[vars$t.errorMessageTextColor]: refs.errorMessageTextColor,
|
3175
|
+
[vars$t.inputHorizontalPadding]: refs.horizontalPadding,
|
3176
|
+
[vars$t.inputHeight]: refs.inputHeight,
|
3177
|
+
[vars$t.inputBackgroundColor]: refs.backgroundColor,
|
3178
|
+
[vars$t.labelRequiredIndicator]: refs.requiredIndicator,
|
3179
|
+
[vars$t.inputValueTextColor]: refs.valueTextColor,
|
3180
|
+
[vars$t.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
3181
|
+
[vars$t.inputBorderWidth]: refs.borderWidth,
|
3182
|
+
[vars$t.inputBorderStyle]: refs.borderStyle,
|
3183
|
+
[vars$t.inputBorderColor]: refs.borderColor,
|
3184
|
+
[vars$t.inputBorderRadius]: refs.borderRadius,
|
3185
|
+
[vars$t.inputOutlineWidth]: refs.outlineWidth,
|
3186
|
+
[vars$t.inputOutlineStyle]: refs.outlineStyle,
|
3187
|
+
[vars$t.inputOutlineColor]: refs.outlineColor,
|
3188
|
+
[vars$t.inputOutlineOffset]: refs.outlineOffset,
|
3189
|
+
[vars$t.revealButtonOffset]: globalRefs$g.spacing.md,
|
3190
|
+
[vars$t.revealButtonSize]: refs.toggleButtonSize,
|
3191
3191
|
};
|
3192
3192
|
|
3193
3193
|
var password$1 = /*#__PURE__*/Object.freeze({
|
3194
3194
|
__proto__: null,
|
3195
3195
|
default: password,
|
3196
|
-
vars: vars$
|
3196
|
+
vars: vars$t
|
3197
3197
|
});
|
3198
3198
|
|
3199
|
-
const componentName$
|
3199
|
+
const componentName$A = getComponentName('number-field');
|
3200
3200
|
|
3201
3201
|
const NumberFieldClass = compose(
|
3202
3202
|
createStyleMixin({
|
@@ -3222,45 +3222,45 @@ const NumberFieldClass = compose(
|
|
3222
3222
|
${resetInputOverrides('vaadin-number-field', NumberFieldClass.cssVarList)}
|
3223
3223
|
`,
|
3224
3224
|
excludeAttrsSync: ['tabindex'],
|
3225
|
-
componentName: componentName$
|
3225
|
+
componentName: componentName$A,
|
3226
3226
|
})
|
3227
3227
|
);
|
3228
3228
|
|
3229
|
-
const vars$
|
3229
|
+
const vars$s = NumberFieldClass.cssVarList;
|
3230
3230
|
|
3231
3231
|
const numberField = {
|
3232
|
-
[vars$
|
3233
|
-
[vars$
|
3234
|
-
[vars$
|
3235
|
-
[vars$
|
3236
|
-
[vars$
|
3237
|
-
[vars$
|
3238
|
-
[vars$
|
3239
|
-
[vars$
|
3240
|
-
[vars$
|
3241
|
-
[vars$
|
3242
|
-
[vars$
|
3243
|
-
[vars$
|
3244
|
-
[vars$
|
3245
|
-
[vars$
|
3246
|
-
[vars$
|
3247
|
-
[vars$
|
3248
|
-
[vars$
|
3249
|
-
[vars$
|
3250
|
-
[vars$
|
3251
|
-
[vars$
|
3252
|
-
[vars$
|
3232
|
+
[vars$s.hostWidth]: refs.width,
|
3233
|
+
[vars$s.hostMinWidth]: refs.minWidth,
|
3234
|
+
[vars$s.hostDirection]: refs.direction,
|
3235
|
+
[vars$s.fontSize]: refs.fontSize,
|
3236
|
+
[vars$s.fontFamily]: refs.fontFamily,
|
3237
|
+
[vars$s.labelTextColor]: refs.labelTextColor,
|
3238
|
+
[vars$s.errorMessageTextColor]: refs.errorMessageTextColor,
|
3239
|
+
[vars$s.inputValueTextColor]: refs.valueTextColor,
|
3240
|
+
[vars$s.inputPlaceholderColor]: refs.placeholderTextColor,
|
3241
|
+
[vars$s.inputBorderWidth]: refs.borderWidth,
|
3242
|
+
[vars$s.inputBorderStyle]: refs.borderStyle,
|
3243
|
+
[vars$s.inputBorderColor]: refs.borderColor,
|
3244
|
+
[vars$s.inputBorderRadius]: refs.borderRadius,
|
3245
|
+
[vars$s.inputOutlineWidth]: refs.outlineWidth,
|
3246
|
+
[vars$s.inputOutlineStyle]: refs.outlineStyle,
|
3247
|
+
[vars$s.inputOutlineColor]: refs.outlineColor,
|
3248
|
+
[vars$s.inputOutlineOffset]: refs.outlineOffset,
|
3249
|
+
[vars$s.inputBackgroundColor]: refs.backgroundColor,
|
3250
|
+
[vars$s.labelRequiredIndicator]: refs.requiredIndicator,
|
3251
|
+
[vars$s.inputHorizontalPadding]: refs.horizontalPadding,
|
3252
|
+
[vars$s.inputHeight]: refs.inputHeight,
|
3253
3253
|
};
|
3254
3254
|
|
3255
3255
|
var numberField$1 = /*#__PURE__*/Object.freeze({
|
3256
3256
|
__proto__: null,
|
3257
3257
|
default: numberField,
|
3258
|
-
vars: vars$
|
3258
|
+
vars: vars$s
|
3259
3259
|
});
|
3260
3260
|
|
3261
|
-
const componentName$
|
3261
|
+
const componentName$z = getComponentName('email-field');
|
3262
3262
|
|
3263
|
-
const customMixin$
|
3263
|
+
const customMixin$5 = (superclass) =>
|
3264
3264
|
class EmailFieldMixinClass extends superclass {
|
3265
3265
|
init() {
|
3266
3266
|
super.init?.();
|
@@ -3274,7 +3274,7 @@ const EmailFieldClass = compose(
|
|
3274
3274
|
draggableMixin,
|
3275
3275
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
3276
3276
|
componentNameValidationMixin,
|
3277
|
-
customMixin$
|
3277
|
+
customMixin$5
|
3278
3278
|
)(
|
3279
3279
|
createProxy({
|
3280
3280
|
slots: ['', 'suffix'],
|
@@ -3293,43 +3293,43 @@ const EmailFieldClass = compose(
|
|
3293
3293
|
${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
|
3294
3294
|
`,
|
3295
3295
|
excludeAttrsSync: ['tabindex'],
|
3296
|
-
componentName: componentName$
|
3296
|
+
componentName: componentName$z,
|
3297
3297
|
})
|
3298
3298
|
);
|
3299
3299
|
|
3300
|
-
const vars$
|
3300
|
+
const vars$r = EmailFieldClass.cssVarList;
|
3301
3301
|
|
3302
3302
|
const emailField = {
|
3303
|
-
[vars$
|
3304
|
-
[vars$
|
3305
|
-
[vars$
|
3306
|
-
[vars$
|
3307
|
-
[vars$
|
3308
|
-
[vars$
|
3309
|
-
[vars$
|
3310
|
-
[vars$
|
3311
|
-
[vars$
|
3312
|
-
[vars$
|
3313
|
-
[vars$
|
3314
|
-
[vars$
|
3315
|
-
[vars$
|
3316
|
-
[vars$
|
3317
|
-
[vars$
|
3318
|
-
[vars$
|
3319
|
-
[vars$
|
3320
|
-
[vars$
|
3321
|
-
[vars$
|
3322
|
-
[vars$
|
3323
|
-
[vars$
|
3303
|
+
[vars$r.hostWidth]: refs.width,
|
3304
|
+
[vars$r.hostMinWidth]: refs.minWidth,
|
3305
|
+
[vars$r.hostDirection]: refs.direction,
|
3306
|
+
[vars$r.fontSize]: refs.fontSize,
|
3307
|
+
[vars$r.fontFamily]: refs.fontFamily,
|
3308
|
+
[vars$r.labelTextColor]: refs.labelTextColor,
|
3309
|
+
[vars$r.errorMessageTextColor]: refs.errorMessageTextColor,
|
3310
|
+
[vars$r.inputValueTextColor]: refs.valueTextColor,
|
3311
|
+
[vars$r.labelRequiredIndicator]: refs.requiredIndicator,
|
3312
|
+
[vars$r.inputPlaceholderColor]: refs.placeholderTextColor,
|
3313
|
+
[vars$r.inputBorderWidth]: refs.borderWidth,
|
3314
|
+
[vars$r.inputBorderStyle]: refs.borderStyle,
|
3315
|
+
[vars$r.inputBorderColor]: refs.borderColor,
|
3316
|
+
[vars$r.inputBorderRadius]: refs.borderRadius,
|
3317
|
+
[vars$r.inputOutlineWidth]: refs.outlineWidth,
|
3318
|
+
[vars$r.inputOutlineStyle]: refs.outlineStyle,
|
3319
|
+
[vars$r.inputOutlineColor]: refs.outlineColor,
|
3320
|
+
[vars$r.inputOutlineOffset]: refs.outlineOffset,
|
3321
|
+
[vars$r.inputBackgroundColor]: refs.backgroundColor,
|
3322
|
+
[vars$r.inputHorizontalPadding]: refs.horizontalPadding,
|
3323
|
+
[vars$r.inputHeight]: refs.inputHeight,
|
3324
3324
|
};
|
3325
3325
|
|
3326
3326
|
var emailField$1 = /*#__PURE__*/Object.freeze({
|
3327
3327
|
__proto__: null,
|
3328
3328
|
default: emailField,
|
3329
|
-
vars: vars$
|
3329
|
+
vars: vars$r
|
3330
3330
|
});
|
3331
3331
|
|
3332
|
-
const componentName$
|
3332
|
+
const componentName$y = getComponentName('text-area');
|
3333
3333
|
|
3334
3334
|
const {
|
3335
3335
|
host: host$e,
|
@@ -3404,49 +3404,49 @@ const TextAreaClass = compose(
|
|
3404
3404
|
${resetInputCursor('vaadin-text-area')}
|
3405
3405
|
`,
|
3406
3406
|
excludeAttrsSync: ['tabindex'],
|
3407
|
-
componentName: componentName$
|
3407
|
+
componentName: componentName$y,
|
3408
3408
|
})
|
3409
3409
|
);
|
3410
3410
|
|
3411
3411
|
const globalRefs$f = getThemeRefs(globals);
|
3412
|
-
const vars$
|
3412
|
+
const vars$q = TextAreaClass.cssVarList;
|
3413
3413
|
|
3414
3414
|
const textArea = {
|
3415
|
-
[vars$
|
3416
|
-
[vars$
|
3417
|
-
[vars$
|
3418
|
-
[vars$
|
3419
|
-
[vars$
|
3420
|
-
[vars$
|
3421
|
-
[vars$
|
3422
|
-
[vars$
|
3423
|
-
[vars$
|
3424
|
-
[vars$
|
3425
|
-
[vars$
|
3426
|
-
[vars$
|
3427
|
-
[vars$
|
3428
|
-
[vars$
|
3429
|
-
[vars$
|
3430
|
-
[vars$
|
3431
|
-
[vars$
|
3432
|
-
[vars$
|
3433
|
-
[vars$
|
3434
|
-
[vars$
|
3435
|
-
[vars$
|
3415
|
+
[vars$q.hostWidth]: refs.width,
|
3416
|
+
[vars$q.hostMinWidth]: refs.minWidth,
|
3417
|
+
[vars$q.hostDirection]: refs.direction,
|
3418
|
+
[vars$q.fontSize]: refs.fontSize,
|
3419
|
+
[vars$q.fontFamily]: refs.fontFamily,
|
3420
|
+
[vars$q.labelTextColor]: refs.labelTextColor,
|
3421
|
+
[vars$q.labelRequiredIndicator]: refs.requiredIndicator,
|
3422
|
+
[vars$q.errorMessageTextColor]: refs.errorMessageTextColor,
|
3423
|
+
[vars$q.inputBackgroundColor]: refs.backgroundColor,
|
3424
|
+
[vars$q.inputValueTextColor]: refs.valueTextColor,
|
3425
|
+
[vars$q.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
3426
|
+
[vars$q.inputBorderRadius]: refs.borderRadius,
|
3427
|
+
[vars$q.inputBorderWidth]: refs.borderWidth,
|
3428
|
+
[vars$q.inputBorderStyle]: refs.borderStyle,
|
3429
|
+
[vars$q.inputBorderColor]: refs.borderColor,
|
3430
|
+
[vars$q.inputOutlineWidth]: refs.outlineWidth,
|
3431
|
+
[vars$q.inputOutlineStyle]: refs.outlineStyle,
|
3432
|
+
[vars$q.inputOutlineColor]: refs.outlineColor,
|
3433
|
+
[vars$q.inputOutlineOffset]: refs.outlineOffset,
|
3434
|
+
[vars$q.inputResizeType]: 'vertical',
|
3435
|
+
[vars$q.inputMinHeight]: '5em',
|
3436
3436
|
|
3437
3437
|
_disabled: {
|
3438
|
-
[vars$
|
3438
|
+
[vars$q.inputBackgroundColor]: globalRefs$f.colors.surface.light,
|
3439
3439
|
},
|
3440
3440
|
|
3441
3441
|
_readonly: {
|
3442
|
-
[vars$
|
3442
|
+
[vars$q.inputResizeType]: 'none',
|
3443
3443
|
},
|
3444
3444
|
};
|
3445
3445
|
|
3446
3446
|
var textArea$1 = /*#__PURE__*/Object.freeze({
|
3447
3447
|
__proto__: null,
|
3448
3448
|
default: textArea,
|
3449
|
-
vars: vars$
|
3449
|
+
vars: vars$q
|
3450
3450
|
});
|
3451
3451
|
|
3452
3452
|
const createBaseInputClass = (...args) =>
|
@@ -3457,9 +3457,9 @@ const createBaseInputClass = (...args) =>
|
|
3457
3457
|
inputEventsDispatchingMixin
|
3458
3458
|
)(createBaseClass(...args));
|
3459
3459
|
|
3460
|
-
const componentName$
|
3460
|
+
const componentName$x = getComponentName('boolean-field-internal');
|
3461
3461
|
|
3462
|
-
createBaseInputClass({ componentName: componentName$
|
3462
|
+
createBaseInputClass({ componentName: componentName$x, baseSelector: 'div' });
|
3463
3463
|
|
3464
3464
|
const booleanFieldMixin = (superclass) =>
|
3465
3465
|
class BooleanFieldMixinClass extends superclass {
|
@@ -3468,14 +3468,14 @@ const booleanFieldMixin = (superclass) =>
|
|
3468
3468
|
|
3469
3469
|
const template = document.createElement('template');
|
3470
3470
|
template.innerHTML = `
|
3471
|
-
<${componentName$
|
3471
|
+
<${componentName$x}
|
3472
3472
|
tabindex="-1"
|
3473
3473
|
slot="input"
|
3474
|
-
></${componentName$
|
3474
|
+
></${componentName$x}>
|
3475
3475
|
`;
|
3476
3476
|
|
3477
3477
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
3478
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
3478
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$x);
|
3479
3479
|
this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
|
3480
3480
|
|
3481
3481
|
forwardAttrs(this, this.inputElement, {
|
@@ -3545,7 +3545,7 @@ descope-boolean-field-internal {
|
|
3545
3545
|
}
|
3546
3546
|
`;
|
3547
3547
|
|
3548
|
-
const componentName$
|
3548
|
+
const componentName$w = getComponentName('checkbox');
|
3549
3549
|
|
3550
3550
|
const {
|
3551
3551
|
host: host$d,
|
@@ -3651,51 +3651,51 @@ const CheckboxClass = compose(
|
|
3651
3651
|
}
|
3652
3652
|
`,
|
3653
3653
|
excludeAttrsSync: ['label', 'tabindex'],
|
3654
|
-
componentName: componentName$
|
3654
|
+
componentName: componentName$w,
|
3655
3655
|
})
|
3656
3656
|
);
|
3657
3657
|
|
3658
|
-
const vars$
|
3658
|
+
const vars$p = CheckboxClass.cssVarList;
|
3659
3659
|
const checkboxSize = '1.35em';
|
3660
3660
|
|
3661
3661
|
const checkbox = {
|
3662
|
-
[vars$
|
3663
|
-
[vars$
|
3664
|
-
[vars$
|
3665
|
-
[vars$
|
3666
|
-
[vars$
|
3667
|
-
[vars$
|
3668
|
-
[vars$
|
3669
|
-
[vars$
|
3670
|
-
[vars$
|
3671
|
-
[vars$
|
3672
|
-
[vars$
|
3673
|
-
[vars$
|
3674
|
-
[vars$
|
3675
|
-
[vars$
|
3676
|
-
[vars$
|
3677
|
-
[vars$
|
3678
|
-
[vars$
|
3679
|
-
[vars$
|
3680
|
-
[vars$
|
3681
|
-
[vars$
|
3662
|
+
[vars$p.hostWidth]: refs.width,
|
3663
|
+
[vars$p.hostDirection]: refs.direction,
|
3664
|
+
[vars$p.fontSize]: refs.fontSize,
|
3665
|
+
[vars$p.fontFamily]: refs.fontFamily,
|
3666
|
+
[vars$p.labelTextColor]: refs.labelTextColor,
|
3667
|
+
[vars$p.labelRequiredIndicator]: refs.requiredIndicator,
|
3668
|
+
[vars$p.labelFontWeight]: '400',
|
3669
|
+
[vars$p.labelLineHeight]: checkboxSize,
|
3670
|
+
[vars$p.labelSpacing]: '1em',
|
3671
|
+
[vars$p.errorMessageTextColor]: refs.errorMessageTextColor,
|
3672
|
+
[vars$p.inputOutlineWidth]: refs.outlineWidth,
|
3673
|
+
[vars$p.inputOutlineOffset]: refs.outlineOffset,
|
3674
|
+
[vars$p.inputOutlineColor]: refs.outlineColor,
|
3675
|
+
[vars$p.inputOutlineStyle]: refs.outlineStyle,
|
3676
|
+
[vars$p.inputBorderRadius]: refs.borderRadius,
|
3677
|
+
[vars$p.inputBorderColor]: refs.borderColor,
|
3678
|
+
[vars$p.inputBorderWidth]: refs.borderWidth,
|
3679
|
+
[vars$p.inputBorderStyle]: refs.borderStyle,
|
3680
|
+
[vars$p.inputBackgroundColor]: refs.backgroundColor,
|
3681
|
+
[vars$p.inputSize]: checkboxSize,
|
3682
3682
|
|
3683
3683
|
_checked: {
|
3684
|
-
[vars$
|
3684
|
+
[vars$p.inputValueTextColor]: refs.valueTextColor,
|
3685
3685
|
},
|
3686
3686
|
|
3687
3687
|
_disabled: {
|
3688
|
-
[vars$
|
3688
|
+
[vars$p.labelTextColor]: refs.labelTextColor,
|
3689
3689
|
},
|
3690
3690
|
};
|
3691
3691
|
|
3692
3692
|
var checkbox$1 = /*#__PURE__*/Object.freeze({
|
3693
3693
|
__proto__: null,
|
3694
3694
|
default: checkbox,
|
3695
|
-
vars: vars$
|
3695
|
+
vars: vars$p
|
3696
3696
|
});
|
3697
3697
|
|
3698
|
-
const componentName$
|
3698
|
+
const componentName$v = getComponentName('switch-toggle');
|
3699
3699
|
|
3700
3700
|
const {
|
3701
3701
|
host: host$c,
|
@@ -3827,7 +3827,7 @@ const SwitchToggleClass = compose(
|
|
3827
3827
|
}
|
3828
3828
|
`,
|
3829
3829
|
excludeAttrsSync: ['label', 'tabindex'],
|
3830
|
-
componentName: componentName$
|
3830
|
+
componentName: componentName$v,
|
3831
3831
|
})
|
3832
3832
|
);
|
3833
3833
|
|
@@ -3835,75 +3835,75 @@ const knobMargin = '2px';
|
|
3835
3835
|
const checkboxHeight = '1.25em';
|
3836
3836
|
|
3837
3837
|
const globalRefs$e = getThemeRefs(globals);
|
3838
|
-
const vars$
|
3838
|
+
const vars$o = SwitchToggleClass.cssVarList;
|
3839
3839
|
|
3840
3840
|
const switchToggle = {
|
3841
|
-
[vars$
|
3842
|
-
[vars$
|
3843
|
-
[vars$
|
3844
|
-
[vars$
|
3845
|
-
|
3846
|
-
[vars$
|
3847
|
-
[vars$
|
3848
|
-
[vars$
|
3849
|
-
[vars$
|
3850
|
-
|
3851
|
-
[vars$
|
3852
|
-
[vars$
|
3853
|
-
[vars$
|
3854
|
-
[vars$
|
3855
|
-
[vars$
|
3856
|
-
[vars$
|
3857
|
-
[vars$
|
3858
|
-
|
3859
|
-
[vars$
|
3860
|
-
[vars$
|
3861
|
-
[vars$
|
3862
|
-
[vars$
|
3863
|
-
[vars$
|
3864
|
-
[vars$
|
3865
|
-
|
3866
|
-
[vars$
|
3867
|
-
[vars$
|
3868
|
-
[vars$
|
3869
|
-
[vars$
|
3870
|
-
[vars$
|
3871
|
-
[vars$
|
3841
|
+
[vars$o.hostWidth]: refs.width,
|
3842
|
+
[vars$o.hostDirection]: refs.direction,
|
3843
|
+
[vars$o.fontSize]: refs.fontSize,
|
3844
|
+
[vars$o.fontFamily]: refs.fontFamily,
|
3845
|
+
|
3846
|
+
[vars$o.inputOutlineWidth]: refs.outlineWidth,
|
3847
|
+
[vars$o.inputOutlineOffset]: refs.outlineOffset,
|
3848
|
+
[vars$o.inputOutlineColor]: refs.outlineColor,
|
3849
|
+
[vars$o.inputOutlineStyle]: refs.outlineStyle,
|
3850
|
+
|
3851
|
+
[vars$o.trackBorderStyle]: refs.borderStyle,
|
3852
|
+
[vars$o.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
3853
|
+
[vars$o.trackBorderColor]: refs.borderColor,
|
3854
|
+
[vars$o.trackBackgroundColor]: 'none',
|
3855
|
+
[vars$o.trackBorderRadius]: globalRefs$e.radius.md,
|
3856
|
+
[vars$o.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
3857
|
+
[vars$o.trackHeight]: checkboxHeight,
|
3858
|
+
|
3859
|
+
[vars$o.knobSize]: `calc(1em - ${knobMargin})`,
|
3860
|
+
[vars$o.knobRadius]: '50%',
|
3861
|
+
[vars$o.knobTopOffset]: '1px',
|
3862
|
+
[vars$o.knobLeftOffset]: knobMargin,
|
3863
|
+
[vars$o.knobColor]: refs.valueTextColor,
|
3864
|
+
[vars$o.knobTransitionDuration]: '0.3s',
|
3865
|
+
|
3866
|
+
[vars$o.labelTextColor]: refs.labelTextColor,
|
3867
|
+
[vars$o.labelFontWeight]: '400',
|
3868
|
+
[vars$o.labelLineHeight]: '1.35em',
|
3869
|
+
[vars$o.labelSpacing]: '1em',
|
3870
|
+
[vars$o.labelRequiredIndicator]: refs.requiredIndicator,
|
3871
|
+
[vars$o.errorMessageTextColor]: refs.errorMessageTextColor,
|
3872
3872
|
|
3873
3873
|
_checked: {
|
3874
|
-
[vars$
|
3875
|
-
[vars$
|
3876
|
-
[vars$
|
3877
|
-
[vars$
|
3878
|
-
[vars$
|
3874
|
+
[vars$o.trackBorderColor]: refs.borderColor,
|
3875
|
+
[vars$o.trackBackgroundColor]: refs.backgroundColor,
|
3876
|
+
[vars$o.knobLeftOffset]: `calc(100% - var(${vars$o.knobSize}) - ${knobMargin})`,
|
3877
|
+
[vars$o.knobColor]: refs.valueTextColor,
|
3878
|
+
[vars$o.knobTextColor]: refs.valueTextColor,
|
3879
3879
|
},
|
3880
3880
|
|
3881
3881
|
_disabled: {
|
3882
|
-
[vars$
|
3883
|
-
[vars$
|
3884
|
-
[vars$
|
3885
|
-
[vars$
|
3882
|
+
[vars$o.knobColor]: globalRefs$e.colors.surface.light,
|
3883
|
+
[vars$o.trackBorderColor]: globalRefs$e.colors.surface.main,
|
3884
|
+
[vars$o.trackBackgroundColor]: globalRefs$e.colors.surface.main,
|
3885
|
+
[vars$o.labelTextColor]: refs.labelTextColor,
|
3886
3886
|
_checked: {
|
3887
|
-
[vars$
|
3888
|
-
[vars$
|
3887
|
+
[vars$o.knobColor]: globalRefs$e.colors.surface.light,
|
3888
|
+
[vars$o.trackBackgroundColor]: globalRefs$e.colors.surface.main,
|
3889
3889
|
},
|
3890
3890
|
},
|
3891
3891
|
|
3892
3892
|
_invalid: {
|
3893
|
-
[vars$
|
3894
|
-
[vars$
|
3893
|
+
[vars$o.trackBorderColor]: globalRefs$e.colors.error.main,
|
3894
|
+
[vars$o.knobColor]: globalRefs$e.colors.error.main,
|
3895
3895
|
},
|
3896
3896
|
};
|
3897
3897
|
|
3898
3898
|
var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
3899
3899
|
__proto__: null,
|
3900
3900
|
default: switchToggle,
|
3901
|
-
vars: vars$
|
3901
|
+
vars: vars$o
|
3902
3902
|
});
|
3903
3903
|
|
3904
|
-
const componentName$
|
3904
|
+
const componentName$u = getComponentName('container');
|
3905
3905
|
|
3906
|
-
class RawContainer extends createBaseClass({ componentName: componentName$
|
3906
|
+
class RawContainer extends createBaseClass({ componentName: componentName$u, baseSelector: 'slot' }) {
|
3907
3907
|
constructor() {
|
3908
3908
|
super();
|
3909
3909
|
|
@@ -3977,7 +3977,7 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
|
|
3977
3977
|
horizontalAlignment,
|
3978
3978
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
3979
3979
|
},
|
3980
|
-
componentName$
|
3980
|
+
componentName$u
|
3981
3981
|
);
|
3982
3982
|
|
3983
3983
|
const { shadowColor: shadowColor$1 } = helperRefs$2;
|
@@ -4062,7 +4062,7 @@ const container = {
|
|
4062
4062
|
},
|
4063
4063
|
};
|
4064
4064
|
|
4065
|
-
const vars$
|
4065
|
+
const vars$n = {
|
4066
4066
|
...compVars$3,
|
4067
4067
|
...helperVars$2,
|
4068
4068
|
};
|
@@ -4070,7 +4070,7 @@ const vars$m = {
|
|
4070
4070
|
var container$1 = /*#__PURE__*/Object.freeze({
|
4071
4071
|
__proto__: null,
|
4072
4072
|
default: container,
|
4073
|
-
vars: vars$
|
4073
|
+
vars: vars$n
|
4074
4074
|
});
|
4075
4075
|
|
4076
4076
|
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
@@ -4123,51 +4123,51 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
|
|
4123
4123
|
return CssVarImageClass;
|
4124
4124
|
};
|
4125
4125
|
|
4126
|
-
const componentName$
|
4126
|
+
const componentName$t = getComponentName('logo');
|
4127
4127
|
|
4128
4128
|
const LogoClass = createCssVarImageClass({
|
4129
|
-
componentName: componentName$
|
4129
|
+
componentName: componentName$t,
|
4130
4130
|
varName: 'url',
|
4131
4131
|
fallbackVarName: 'fallbackUrl',
|
4132
4132
|
});
|
4133
4133
|
|
4134
|
-
const vars$
|
4134
|
+
const vars$m = LogoClass.cssVarList;
|
4135
4135
|
|
4136
4136
|
const logo$1 = {
|
4137
|
-
[vars$
|
4137
|
+
[vars$m.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
|
4138
4138
|
};
|
4139
4139
|
|
4140
4140
|
var logo$2 = /*#__PURE__*/Object.freeze({
|
4141
4141
|
__proto__: null,
|
4142
4142
|
default: logo$1,
|
4143
|
-
vars: vars$
|
4143
|
+
vars: vars$m
|
4144
4144
|
});
|
4145
4145
|
|
4146
|
-
const componentName$
|
4146
|
+
const componentName$s = getComponentName('totp-image');
|
4147
4147
|
|
4148
4148
|
const TotpImageClass = createCssVarImageClass({
|
4149
|
-
componentName: componentName$
|
4149
|
+
componentName: componentName$s,
|
4150
4150
|
varName: 'url',
|
4151
4151
|
fallbackVarName: 'fallbackUrl',
|
4152
4152
|
});
|
4153
4153
|
|
4154
|
-
const vars$
|
4154
|
+
const vars$l = TotpImageClass.cssVarList;
|
4155
4155
|
|
4156
4156
|
const logo = {
|
4157
|
-
[vars$
|
4157
|
+
[vars$l.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
|
4158
4158
|
};
|
4159
4159
|
|
4160
4160
|
var totpImage = /*#__PURE__*/Object.freeze({
|
4161
4161
|
__proto__: null,
|
4162
4162
|
default: logo,
|
4163
|
-
vars: vars$
|
4163
|
+
vars: vars$l
|
4164
4164
|
});
|
4165
4165
|
|
4166
4166
|
// eslint-disable-next-line max-classes-per-file
|
4167
4167
|
|
4168
|
-
const componentName$
|
4168
|
+
const componentName$r = getComponentName('text');
|
4169
4169
|
|
4170
|
-
class RawText extends createBaseClass({ componentName: componentName$
|
4170
|
+
class RawText extends createBaseClass({ componentName: componentName$r, baseSelector: ':host > slot' }) {
|
4171
4171
|
constructor() {
|
4172
4172
|
super();
|
4173
4173
|
|
@@ -4228,98 +4228,98 @@ const TextClass = compose(
|
|
4228
4228
|
)(RawText);
|
4229
4229
|
|
4230
4230
|
const globalRefs$c = getThemeRefs(globals);
|
4231
|
-
const vars$
|
4231
|
+
const vars$k = TextClass.cssVarList;
|
4232
4232
|
|
4233
4233
|
const text$2 = {
|
4234
|
-
[vars$
|
4235
|
-
[vars$
|
4236
|
-
[vars$
|
4237
|
-
[vars$
|
4234
|
+
[vars$k.hostDirection]: globalRefs$c.direction,
|
4235
|
+
[vars$k.textLineHeight]: '1.35em',
|
4236
|
+
[vars$k.textAlign]: 'left',
|
4237
|
+
[vars$k.textColor]: globalRefs$c.colors.surface.dark,
|
4238
4238
|
variant: {
|
4239
4239
|
h1: {
|
4240
|
-
[vars$
|
4241
|
-
[vars$
|
4242
|
-
[vars$
|
4240
|
+
[vars$k.fontSize]: globalRefs$c.typography.h1.size,
|
4241
|
+
[vars$k.fontWeight]: globalRefs$c.typography.h1.weight,
|
4242
|
+
[vars$k.fontFamily]: globalRefs$c.typography.h1.font,
|
4243
4243
|
},
|
4244
4244
|
h2: {
|
4245
|
-
[vars$
|
4246
|
-
[vars$
|
4247
|
-
[vars$
|
4245
|
+
[vars$k.fontSize]: globalRefs$c.typography.h2.size,
|
4246
|
+
[vars$k.fontWeight]: globalRefs$c.typography.h2.weight,
|
4247
|
+
[vars$k.fontFamily]: globalRefs$c.typography.h2.font,
|
4248
4248
|
},
|
4249
4249
|
h3: {
|
4250
|
-
[vars$
|
4251
|
-
[vars$
|
4252
|
-
[vars$
|
4250
|
+
[vars$k.fontSize]: globalRefs$c.typography.h3.size,
|
4251
|
+
[vars$k.fontWeight]: globalRefs$c.typography.h3.weight,
|
4252
|
+
[vars$k.fontFamily]: globalRefs$c.typography.h3.font,
|
4253
4253
|
},
|
4254
4254
|
subtitle1: {
|
4255
|
-
[vars$
|
4256
|
-
[vars$
|
4257
|
-
[vars$
|
4255
|
+
[vars$k.fontSize]: globalRefs$c.typography.subtitle1.size,
|
4256
|
+
[vars$k.fontWeight]: globalRefs$c.typography.subtitle1.weight,
|
4257
|
+
[vars$k.fontFamily]: globalRefs$c.typography.subtitle1.font,
|
4258
4258
|
},
|
4259
4259
|
subtitle2: {
|
4260
|
-
[vars$
|
4261
|
-
[vars$
|
4262
|
-
[vars$
|
4260
|
+
[vars$k.fontSize]: globalRefs$c.typography.subtitle2.size,
|
4261
|
+
[vars$k.fontWeight]: globalRefs$c.typography.subtitle2.weight,
|
4262
|
+
[vars$k.fontFamily]: globalRefs$c.typography.subtitle2.font,
|
4263
4263
|
},
|
4264
4264
|
body1: {
|
4265
|
-
[vars$
|
4266
|
-
[vars$
|
4267
|
-
[vars$
|
4265
|
+
[vars$k.fontSize]: globalRefs$c.typography.body1.size,
|
4266
|
+
[vars$k.fontWeight]: globalRefs$c.typography.body1.weight,
|
4267
|
+
[vars$k.fontFamily]: globalRefs$c.typography.body1.font,
|
4268
4268
|
},
|
4269
4269
|
body2: {
|
4270
|
-
[vars$
|
4271
|
-
[vars$
|
4272
|
-
[vars$
|
4270
|
+
[vars$k.fontSize]: globalRefs$c.typography.body2.size,
|
4271
|
+
[vars$k.fontWeight]: globalRefs$c.typography.body2.weight,
|
4272
|
+
[vars$k.fontFamily]: globalRefs$c.typography.body2.font,
|
4273
4273
|
},
|
4274
4274
|
},
|
4275
4275
|
|
4276
4276
|
mode: {
|
4277
4277
|
primary: {
|
4278
|
-
[vars$
|
4278
|
+
[vars$k.textColor]: globalRefs$c.colors.primary.main,
|
4279
4279
|
},
|
4280
4280
|
secondary: {
|
4281
|
-
[vars$
|
4281
|
+
[vars$k.textColor]: globalRefs$c.colors.secondary.main,
|
4282
4282
|
},
|
4283
4283
|
error: {
|
4284
|
-
[vars$
|
4284
|
+
[vars$k.textColor]: globalRefs$c.colors.error.main,
|
4285
4285
|
},
|
4286
4286
|
success: {
|
4287
|
-
[vars$
|
4287
|
+
[vars$k.textColor]: globalRefs$c.colors.success.main,
|
4288
4288
|
},
|
4289
4289
|
},
|
4290
4290
|
|
4291
4291
|
textAlign: {
|
4292
|
-
right: { [vars$
|
4293
|
-
left: { [vars$
|
4294
|
-
center: { [vars$
|
4292
|
+
right: { [vars$k.textAlign]: 'right' },
|
4293
|
+
left: { [vars$k.textAlign]: 'left' },
|
4294
|
+
center: { [vars$k.textAlign]: 'center' },
|
4295
4295
|
},
|
4296
4296
|
|
4297
4297
|
_fullWidth: {
|
4298
|
-
[vars$
|
4298
|
+
[vars$k.hostWidth]: '100%',
|
4299
4299
|
},
|
4300
4300
|
|
4301
4301
|
_italic: {
|
4302
|
-
[vars$
|
4302
|
+
[vars$k.fontStyle]: 'italic',
|
4303
4303
|
},
|
4304
4304
|
|
4305
4305
|
_uppercase: {
|
4306
|
-
[vars$
|
4306
|
+
[vars$k.textTransform]: 'uppercase',
|
4307
4307
|
},
|
4308
4308
|
|
4309
4309
|
_lowercase: {
|
4310
|
-
[vars$
|
4310
|
+
[vars$k.textTransform]: 'lowercase',
|
4311
4311
|
},
|
4312
4312
|
};
|
4313
4313
|
|
4314
4314
|
var text$3 = /*#__PURE__*/Object.freeze({
|
4315
4315
|
__proto__: null,
|
4316
4316
|
default: text$2,
|
4317
|
-
vars: vars$
|
4317
|
+
vars: vars$k
|
4318
4318
|
});
|
4319
4319
|
|
4320
|
-
const componentName$
|
4320
|
+
const componentName$q = getComponentName('link');
|
4321
4321
|
|
4322
|
-
class RawLink extends createBaseClass({ componentName: componentName$
|
4322
|
+
class RawLink extends createBaseClass({ componentName: componentName$q, baseSelector: ':host a' }) {
|
4323
4323
|
constructor() {
|
4324
4324
|
super();
|
4325
4325
|
|
@@ -4385,36 +4385,36 @@ const LinkClass = compose(
|
|
4385
4385
|
)(RawLink);
|
4386
4386
|
|
4387
4387
|
const globalRefs$b = getThemeRefs(globals);
|
4388
|
-
const vars$
|
4388
|
+
const vars$j = LinkClass.cssVarList;
|
4389
4389
|
|
4390
4390
|
const link = {
|
4391
|
-
[vars$
|
4392
|
-
[vars$
|
4391
|
+
[vars$j.hostDirection]: globalRefs$b.direction,
|
4392
|
+
[vars$j.cursor]: 'pointer',
|
4393
4393
|
|
4394
|
-
[vars$
|
4394
|
+
[vars$j.textColor]: globalRefs$b.colors.primary.main,
|
4395
4395
|
|
4396
4396
|
textAlign: {
|
4397
|
-
right: { [vars$
|
4398
|
-
left: { [vars$
|
4399
|
-
center: { [vars$
|
4397
|
+
right: { [vars$j.textAlign]: 'right' },
|
4398
|
+
left: { [vars$j.textAlign]: 'left' },
|
4399
|
+
center: { [vars$j.textAlign]: 'center' },
|
4400
4400
|
},
|
4401
4401
|
|
4402
4402
|
_fullWidth: {
|
4403
|
-
[vars$
|
4403
|
+
[vars$j.hostWidth]: '100%',
|
4404
4404
|
},
|
4405
4405
|
|
4406
4406
|
mode: {
|
4407
4407
|
primary: {
|
4408
|
-
[vars$
|
4408
|
+
[vars$j.textColor]: globalRefs$b.colors.primary.main,
|
4409
4409
|
},
|
4410
4410
|
secondary: {
|
4411
|
-
[vars$
|
4411
|
+
[vars$j.textColor]: globalRefs$b.colors.secondary.main,
|
4412
4412
|
},
|
4413
4413
|
error: {
|
4414
|
-
[vars$
|
4414
|
+
[vars$j.textColor]: globalRefs$b.colors.error.main,
|
4415
4415
|
},
|
4416
4416
|
success: {
|
4417
|
-
[vars$
|
4417
|
+
[vars$j.textColor]: globalRefs$b.colors.success.main,
|
4418
4418
|
},
|
4419
4419
|
},
|
4420
4420
|
};
|
@@ -4422,11 +4422,11 @@ const link = {
|
|
4422
4422
|
var link$1 = /*#__PURE__*/Object.freeze({
|
4423
4423
|
__proto__: null,
|
4424
4424
|
default: link,
|
4425
|
-
vars: vars$
|
4425
|
+
vars: vars$j
|
4426
4426
|
});
|
4427
4427
|
|
4428
|
-
const componentName$
|
4429
|
-
class RawDivider extends createBaseClass({ componentName: componentName$
|
4428
|
+
const componentName$p = getComponentName('divider');
|
4429
|
+
class RawDivider extends createBaseClass({ componentName: componentName$p, baseSelector: ':host > div' }) {
|
4430
4430
|
constructor() {
|
4431
4431
|
super();
|
4432
4432
|
|
@@ -4533,7 +4533,7 @@ const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
|
4533
4533
|
thickness: '2px',
|
4534
4534
|
spacing: '10px',
|
4535
4535
|
},
|
4536
|
-
componentName$
|
4536
|
+
componentName$p
|
4537
4537
|
);
|
4538
4538
|
|
4539
4539
|
const divider = {
|
@@ -4564,7 +4564,7 @@ const divider = {
|
|
4564
4564
|
},
|
4565
4565
|
};
|
4566
4566
|
|
4567
|
-
const vars$
|
4567
|
+
const vars$i = {
|
4568
4568
|
...compVars$2,
|
4569
4569
|
...helperVars$1,
|
4570
4570
|
};
|
@@ -4572,18 +4572,18 @@ const vars$h = {
|
|
4572
4572
|
var divider$1 = /*#__PURE__*/Object.freeze({
|
4573
4573
|
__proto__: null,
|
4574
4574
|
default: divider,
|
4575
|
-
vars: vars$
|
4575
|
+
vars: vars$i
|
4576
4576
|
});
|
4577
4577
|
|
4578
4578
|
/* eslint-disable no-param-reassign */
|
4579
4579
|
|
4580
|
-
const componentName$
|
4580
|
+
const componentName$o = getComponentName('passcode-internal');
|
4581
4581
|
|
4582
|
-
createBaseInputClass({ componentName: componentName$
|
4582
|
+
createBaseInputClass({ componentName: componentName$o, baseSelector: 'div' });
|
4583
4583
|
|
4584
|
-
const componentName$
|
4584
|
+
const componentName$n = getComponentName('loader-radial');
|
4585
4585
|
|
4586
|
-
class RawLoaderRadial extends createBaseClass({ componentName: componentName$
|
4586
|
+
class RawLoaderRadial extends createBaseClass({ componentName: componentName$n, baseSelector: ':host > div' }) {
|
4587
4587
|
constructor() {
|
4588
4588
|
super();
|
4589
4589
|
|
@@ -4627,11 +4627,11 @@ const LoaderRadialClass = compose(
|
|
4627
4627
|
componentNameValidationMixin
|
4628
4628
|
)(RawLoaderRadial);
|
4629
4629
|
|
4630
|
-
const componentName$
|
4630
|
+
const componentName$m = getComponentName('passcode');
|
4631
4631
|
|
4632
4632
|
const observedAttributes$3 = ['digits'];
|
4633
4633
|
|
4634
|
-
const customMixin$
|
4634
|
+
const customMixin$4 = (superclass) =>
|
4635
4635
|
class PasscodeMixinClass extends superclass {
|
4636
4636
|
static get observedAttributes() {
|
4637
4637
|
return observedAttributes$3.concat(superclass.observedAttributes || []);
|
@@ -4646,17 +4646,17 @@ const customMixin$5 = (superclass) =>
|
|
4646
4646
|
const template = document.createElement('template');
|
4647
4647
|
|
4648
4648
|
template.innerHTML = `
|
4649
|
-
<${componentName$
|
4649
|
+
<${componentName$o}
|
4650
4650
|
bordered="true"
|
4651
4651
|
name="code"
|
4652
4652
|
tabindex="-1"
|
4653
4653
|
slot="input"
|
4654
|
-
><slot></slot></${componentName$
|
4654
|
+
><slot></slot></${componentName$o}>
|
4655
4655
|
`;
|
4656
4656
|
|
4657
4657
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
4658
4658
|
|
4659
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
4659
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$o);
|
4660
4660
|
|
4661
4661
|
forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size', 'loading'] });
|
4662
4662
|
}
|
@@ -4727,7 +4727,7 @@ const PasscodeClass = compose(
|
|
4727
4727
|
draggableMixin,
|
4728
4728
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
4729
4729
|
componentNameValidationMixin,
|
4730
|
-
customMixin$
|
4730
|
+
customMixin$4
|
4731
4731
|
)(
|
4732
4732
|
createProxy({
|
4733
4733
|
slots: [],
|
@@ -4803,56 +4803,56 @@ const PasscodeClass = compose(
|
|
4803
4803
|
${resetInputCursor('vaadin-text-field')}
|
4804
4804
|
`,
|
4805
4805
|
excludeAttrsSync: ['tabindex'],
|
4806
|
-
componentName: componentName$
|
4806
|
+
componentName: componentName$m,
|
4807
4807
|
})
|
4808
4808
|
);
|
4809
4809
|
|
4810
|
-
const vars$
|
4810
|
+
const vars$h = PasscodeClass.cssVarList;
|
4811
4811
|
|
4812
4812
|
const passcode = {
|
4813
|
-
[vars$
|
4814
|
-
[vars$
|
4815
|
-
[vars$
|
4816
|
-
[vars$
|
4817
|
-
[vars$
|
4818
|
-
[vars$
|
4819
|
-
[vars$
|
4820
|
-
[vars$
|
4821
|
-
[vars$
|
4822
|
-
[vars$
|
4823
|
-
[vars$
|
4824
|
-
[vars$
|
4825
|
-
[vars$
|
4826
|
-
[vars$
|
4827
|
-
[vars$
|
4813
|
+
[vars$h.hostDirection]: refs.direction,
|
4814
|
+
[vars$h.fontFamily]: refs.fontFamily,
|
4815
|
+
[vars$h.fontSize]: refs.fontSize,
|
4816
|
+
[vars$h.labelTextColor]: refs.labelTextColor,
|
4817
|
+
[vars$h.labelRequiredIndicator]: refs.requiredIndicator,
|
4818
|
+
[vars$h.errorMessageTextColor]: refs.errorMessageTextColor,
|
4819
|
+
[vars$h.digitValueTextColor]: refs.valueTextColor,
|
4820
|
+
[vars$h.digitPadding]: '0',
|
4821
|
+
[vars$h.digitTextAlign]: 'center',
|
4822
|
+
[vars$h.digitSpacing]: '4px',
|
4823
|
+
[vars$h.hostWidth]: refs.width,
|
4824
|
+
[vars$h.digitOutlineColor]: 'transparent',
|
4825
|
+
[vars$h.digitOutlineWidth]: refs.outlineWidth,
|
4826
|
+
[vars$h.focusedDigitFieldOutlineColor]: refs.outlineColor,
|
4827
|
+
[vars$h.digitSize]: refs.inputHeight,
|
4828
4828
|
|
4829
4829
|
size: {
|
4830
|
-
xs: { [vars$
|
4831
|
-
sm: { [vars$
|
4832
|
-
md: { [vars$
|
4833
|
-
lg: { [vars$
|
4830
|
+
xs: { [vars$h.spinnerSize]: '15px' },
|
4831
|
+
sm: { [vars$h.spinnerSize]: '20px' },
|
4832
|
+
md: { [vars$h.spinnerSize]: '20px' },
|
4833
|
+
lg: { [vars$h.spinnerSize]: '20px' },
|
4834
4834
|
},
|
4835
4835
|
|
4836
4836
|
_hideCursor: {
|
4837
|
-
[vars$
|
4837
|
+
[vars$h.digitCaretTextColor]: 'transparent',
|
4838
4838
|
},
|
4839
4839
|
|
4840
4840
|
_loading: {
|
4841
|
-
[vars$
|
4841
|
+
[vars$h.overlayOpacity]: refs.overlayOpacity,
|
4842
4842
|
},
|
4843
4843
|
};
|
4844
4844
|
|
4845
4845
|
var passcode$1 = /*#__PURE__*/Object.freeze({
|
4846
4846
|
__proto__: null,
|
4847
4847
|
default: passcode,
|
4848
|
-
vars: vars$
|
4848
|
+
vars: vars$h
|
4849
4849
|
});
|
4850
4850
|
|
4851
|
-
const componentName$
|
4851
|
+
const componentName$l = getComponentName('loader-linear');
|
4852
4852
|
|
4853
|
-
class RawLoaderLinear extends createBaseClass({ componentName: componentName$
|
4853
|
+
class RawLoaderLinear extends createBaseClass({ componentName: componentName$l, baseSelector: ':host > div' }) {
|
4854
4854
|
static get componentName() {
|
4855
|
-
return componentName$
|
4855
|
+
return componentName$l;
|
4856
4856
|
}
|
4857
4857
|
|
4858
4858
|
constructor() {
|
@@ -4914,48 +4914,48 @@ const LoaderLinearClass = compose(
|
|
4914
4914
|
)(RawLoaderLinear);
|
4915
4915
|
|
4916
4916
|
const globalRefs$9 = getThemeRefs(globals);
|
4917
|
-
const vars$
|
4917
|
+
const vars$g = LoaderLinearClass.cssVarList;
|
4918
4918
|
|
4919
4919
|
const loaderLinear = {
|
4920
|
-
[vars$
|
4921
|
-
[vars$
|
4920
|
+
[vars$g.hostDisplay]: 'inline-block',
|
4921
|
+
[vars$g.hostWidth]: '100%',
|
4922
4922
|
|
4923
|
-
[vars$
|
4924
|
-
[vars$
|
4923
|
+
[vars$g.barColor]: globalRefs$9.colors.surface.contrast,
|
4924
|
+
[vars$g.barWidth]: '20%',
|
4925
4925
|
|
4926
|
-
[vars$
|
4927
|
-
[vars$
|
4926
|
+
[vars$g.barBackgroundColor]: globalRefs$9.colors.surface.main,
|
4927
|
+
[vars$g.barBorderRadius]: '4px',
|
4928
4928
|
|
4929
|
-
[vars$
|
4930
|
-
[vars$
|
4931
|
-
[vars$
|
4932
|
-
[vars$
|
4929
|
+
[vars$g.animationDuration]: '2s',
|
4930
|
+
[vars$g.animationTimingFunction]: 'linear',
|
4931
|
+
[vars$g.animationIterationCount]: 'infinite',
|
4932
|
+
[vars$g.verticalPadding]: '0.25em',
|
4933
4933
|
|
4934
4934
|
size: {
|
4935
|
-
xs: { [vars$
|
4936
|
-
sm: { [vars$
|
4937
|
-
md: { [vars$
|
4938
|
-
lg: { [vars$
|
4935
|
+
xs: { [vars$g.barHeight]: '2px' },
|
4936
|
+
sm: { [vars$g.barHeight]: '4px' },
|
4937
|
+
md: { [vars$g.barHeight]: '6px' },
|
4938
|
+
lg: { [vars$g.barHeight]: '8px' },
|
4939
4939
|
},
|
4940
4940
|
|
4941
4941
|
mode: {
|
4942
4942
|
primary: {
|
4943
|
-
[vars$
|
4943
|
+
[vars$g.barColor]: globalRefs$9.colors.primary.main,
|
4944
4944
|
},
|
4945
4945
|
secondary: {
|
4946
|
-
[vars$
|
4946
|
+
[vars$g.barColor]: globalRefs$9.colors.secondary.main,
|
4947
4947
|
},
|
4948
4948
|
},
|
4949
4949
|
|
4950
4950
|
_hidden: {
|
4951
|
-
[vars$
|
4951
|
+
[vars$g.hostDisplay]: 'none',
|
4952
4952
|
},
|
4953
4953
|
};
|
4954
4954
|
|
4955
4955
|
var loaderLinear$1 = /*#__PURE__*/Object.freeze({
|
4956
4956
|
__proto__: null,
|
4957
4957
|
default: loaderLinear,
|
4958
|
-
vars: vars$
|
4958
|
+
vars: vars$g
|
4959
4959
|
});
|
4960
4960
|
|
4961
4961
|
const globalRefs$8 = getThemeRefs(globals);
|
@@ -4973,7 +4973,7 @@ const [helperTheme, helperRefs, helperVars] = createHelperVars(
|
|
4973
4973
|
},
|
4974
4974
|
},
|
4975
4975
|
},
|
4976
|
-
componentName$
|
4976
|
+
componentName$n
|
4977
4977
|
);
|
4978
4978
|
|
4979
4979
|
const loaderRadial = {
|
@@ -5002,7 +5002,7 @@ const loaderRadial = {
|
|
5002
5002
|
[compVars$1.hostDisplay]: 'none',
|
5003
5003
|
},
|
5004
5004
|
};
|
5005
|
-
const vars$
|
5005
|
+
const vars$f = {
|
5006
5006
|
...compVars$1,
|
5007
5007
|
...helperVars,
|
5008
5008
|
};
|
@@ -5010,10 +5010,10 @@ const vars$e = {
|
|
5010
5010
|
var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
5011
5011
|
__proto__: null,
|
5012
5012
|
default: loaderRadial,
|
5013
|
-
vars: vars$
|
5013
|
+
vars: vars$f
|
5014
5014
|
});
|
5015
5015
|
|
5016
|
-
const componentName$
|
5016
|
+
const componentName$k = getComponentName('combo-box');
|
5017
5017
|
|
5018
5018
|
const ComboBoxMixin = (superclass) =>
|
5019
5019
|
class ComboBoxMixinClass extends superclass {
|
@@ -5377,69 +5377,69 @@ const ComboBoxClass = compose(
|
|
5377
5377
|
// and reset items to an empty array, and opening the list box with no items
|
5378
5378
|
// to display.
|
5379
5379
|
excludeAttrsSync: ['tabindex', 'size', 'data'],
|
5380
|
-
componentName: componentName$
|
5380
|
+
componentName: componentName$k,
|
5381
5381
|
includeForwardProps: ['items', 'renderer', 'selectedItem'],
|
5382
5382
|
})
|
5383
5383
|
);
|
5384
5384
|
|
5385
5385
|
const globalRefs$7 = getThemeRefs(globals);
|
5386
|
-
const vars$
|
5386
|
+
const vars$e = ComboBoxClass.cssVarList;
|
5387
5387
|
|
5388
5388
|
const comboBox = {
|
5389
|
-
[vars$
|
5390
|
-
[vars$
|
5391
|
-
[vars$
|
5392
|
-
[vars$
|
5393
|
-
[vars$
|
5394
|
-
[vars$
|
5395
|
-
[vars$
|
5396
|
-
[vars$
|
5397
|
-
[vars$
|
5398
|
-
[vars$
|
5399
|
-
[vars$
|
5400
|
-
[vars$
|
5401
|
-
[vars$
|
5402
|
-
[vars$
|
5403
|
-
[vars$
|
5404
|
-
[vars$
|
5405
|
-
[vars$
|
5406
|
-
[vars$
|
5407
|
-
[vars$
|
5408
|
-
[vars$
|
5409
|
-
[vars$
|
5410
|
-
[vars$
|
5411
|
-
[vars$
|
5412
|
-
[vars$
|
5413
|
-
[vars$
|
5414
|
-
[vars$
|
5389
|
+
[vars$e.hostWidth]: refs.width,
|
5390
|
+
[vars$e.hostDirection]: refs.direction,
|
5391
|
+
[vars$e.fontSize]: refs.fontSize,
|
5392
|
+
[vars$e.fontFamily]: refs.fontFamily,
|
5393
|
+
[vars$e.labelTextColor]: refs.labelTextColor,
|
5394
|
+
[vars$e.errorMessageTextColor]: refs.errorMessageTextColor,
|
5395
|
+
[vars$e.inputBorderColor]: refs.borderColor,
|
5396
|
+
[vars$e.inputBorderWidth]: refs.borderWidth,
|
5397
|
+
[vars$e.inputBorderStyle]: refs.borderStyle,
|
5398
|
+
[vars$e.inputBorderRadius]: refs.borderRadius,
|
5399
|
+
[vars$e.inputOutlineColor]: refs.outlineColor,
|
5400
|
+
[vars$e.inputOutlineOffset]: refs.outlineOffset,
|
5401
|
+
[vars$e.inputOutlineWidth]: refs.outlineWidth,
|
5402
|
+
[vars$e.inputOutlineStyle]: refs.outlineStyle,
|
5403
|
+
[vars$e.labelRequiredIndicator]: refs.requiredIndicator,
|
5404
|
+
[vars$e.inputValueTextColor]: refs.valueTextColor,
|
5405
|
+
[vars$e.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
5406
|
+
[vars$e.inputBackgroundColor]: refs.backgroundColor,
|
5407
|
+
[vars$e.inputHorizontalPadding]: refs.horizontalPadding,
|
5408
|
+
[vars$e.inputHeight]: refs.inputHeight,
|
5409
|
+
[vars$e.inputDropdownButtonColor]: globalRefs$7.colors.surface.contrast,
|
5410
|
+
[vars$e.inputDropdownButtonCursor]: 'pointer',
|
5411
|
+
[vars$e.inputDropdownButtonSize]: refs.toggleButtonSize,
|
5412
|
+
[vars$e.inputDropdownButtonOffset]: globalRefs$7.spacing.xs,
|
5413
|
+
[vars$e.overlayItemPaddingInlineStart]: globalRefs$7.spacing.xs,
|
5414
|
+
[vars$e.overlayItemPaddingInlineEnd]: globalRefs$7.spacing.lg,
|
5415
5415
|
|
5416
5416
|
_readonly: {
|
5417
|
-
[vars$
|
5417
|
+
[vars$e.inputDropdownButtonCursor]: 'default',
|
5418
5418
|
},
|
5419
5419
|
|
5420
5420
|
// Overlay theme exposed via the component:
|
5421
|
-
[vars$
|
5422
|
-
[vars$
|
5423
|
-
[vars$
|
5424
|
-
[vars$
|
5421
|
+
[vars$e.overlayFontSize]: refs.fontSize,
|
5422
|
+
[vars$e.overlayFontFamily]: refs.fontFamily,
|
5423
|
+
[vars$e.overlayCursor]: 'pointer',
|
5424
|
+
[vars$e.overlayItemBoxShadow]: 'none',
|
5425
5425
|
|
5426
5426
|
// Overlay direct theme:
|
5427
|
-
[vars$
|
5428
|
-
[vars$
|
5427
|
+
[vars$e.overlay.minHeight]: '400px',
|
5428
|
+
[vars$e.overlay.margin]: '0',
|
5429
5429
|
};
|
5430
5430
|
|
5431
5431
|
var comboBox$1 = /*#__PURE__*/Object.freeze({
|
5432
5432
|
__proto__: null,
|
5433
5433
|
comboBox: comboBox,
|
5434
5434
|
default: comboBox,
|
5435
|
-
vars: vars$
|
5435
|
+
vars: vars$e
|
5436
5436
|
});
|
5437
5437
|
|
5438
5438
|
const observedAttributes$2 = ['src', 'alt'];
|
5439
5439
|
|
5440
|
-
const componentName$
|
5440
|
+
const componentName$j = getComponentName('image');
|
5441
5441
|
|
5442
|
-
const BaseClass$1 = createBaseClass({ componentName: componentName$
|
5442
|
+
const BaseClass$1 = createBaseClass({ componentName: componentName$j, baseSelector: ':host > img' });
|
5443
5443
|
class RawImage extends BaseClass$1 {
|
5444
5444
|
static get observedAttributes() {
|
5445
5445
|
return observedAttributes$2.concat(BaseClass$1.observedAttributes || []);
|
@@ -5479,14 +5479,14 @@ const ImageClass = compose(
|
|
5479
5479
|
draggableMixin
|
5480
5480
|
)(RawImage);
|
5481
5481
|
|
5482
|
-
const vars$
|
5482
|
+
const vars$d = ImageClass.cssVarList;
|
5483
5483
|
|
5484
5484
|
const image = {};
|
5485
5485
|
|
5486
5486
|
var image$1 = /*#__PURE__*/Object.freeze({
|
5487
5487
|
__proto__: null,
|
5488
5488
|
default: image,
|
5489
|
-
vars: vars$
|
5489
|
+
vars: vars$d
|
5490
5490
|
});
|
5491
5491
|
|
5492
5492
|
var CountryCodes = [
|
@@ -6702,16 +6702,16 @@ var CountryCodes = [
|
|
6702
6702
|
},
|
6703
6703
|
].sort((a, b) => (a.name < b.name ? -1 : 1));
|
6704
6704
|
|
6705
|
-
const componentName$
|
6705
|
+
const componentName$i = getComponentName('phone-field-internal');
|
6706
6706
|
|
6707
|
-
createBaseInputClass({ componentName: componentName$
|
6707
|
+
createBaseInputClass({ componentName: componentName$i, baseSelector: 'div' });
|
6708
6708
|
|
6709
6709
|
const textVars$1 = TextFieldClass.cssVarList;
|
6710
6710
|
const comboVars = ComboBoxClass.cssVarList;
|
6711
6711
|
|
6712
|
-
const componentName$
|
6712
|
+
const componentName$h = getComponentName('phone-field');
|
6713
6713
|
|
6714
|
-
const customMixin$
|
6714
|
+
const customMixin$3 = (superclass) =>
|
6715
6715
|
class PhoneFieldMixinClass extends superclass {
|
6716
6716
|
static get CountryCodes() {
|
6717
6717
|
return CountryCodes;
|
@@ -6723,15 +6723,15 @@ const customMixin$4 = (superclass) =>
|
|
6723
6723
|
const template = document.createElement('template');
|
6724
6724
|
|
6725
6725
|
template.innerHTML = `
|
6726
|
-
<${componentName$
|
6726
|
+
<${componentName$i}
|
6727
6727
|
tabindex="-1"
|
6728
6728
|
slot="input"
|
6729
|
-
></${componentName$
|
6729
|
+
></${componentName$i}>
|
6730
6730
|
`;
|
6731
6731
|
|
6732
6732
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
6733
6733
|
|
6734
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
6734
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$i);
|
6735
6735
|
|
6736
6736
|
forwardAttrs(this.shadowRoot.host, this.inputElement, {
|
6737
6737
|
includeAttrs: [
|
@@ -6851,7 +6851,7 @@ const PhoneFieldClass = compose(
|
|
6851
6851
|
}),
|
6852
6852
|
draggableMixin,
|
6853
6853
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
6854
|
-
customMixin$
|
6854
|
+
customMixin$3
|
6855
6855
|
)(
|
6856
6856
|
createProxy({
|
6857
6857
|
slots: [],
|
@@ -6927,33 +6927,33 @@ const PhoneFieldClass = compose(
|
|
6927
6927
|
${resetInputLabelPosition('vaadin-text-field')}
|
6928
6928
|
`,
|
6929
6929
|
excludeAttrsSync: ['tabindex'],
|
6930
|
-
componentName: componentName$
|
6930
|
+
componentName: componentName$h,
|
6931
6931
|
})
|
6932
6932
|
);
|
6933
6933
|
|
6934
|
-
const vars$
|
6934
|
+
const vars$c = PhoneFieldClass.cssVarList;
|
6935
6935
|
|
6936
6936
|
const phoneField = {
|
6937
|
-
[vars$
|
6938
|
-
[vars$
|
6939
|
-
[vars$
|
6940
|
-
[vars$
|
6941
|
-
[vars$
|
6942
|
-
[vars$
|
6943
|
-
[vars$
|
6944
|
-
[vars$
|
6945
|
-
[vars$
|
6946
|
-
[vars$
|
6947
|
-
[vars$
|
6948
|
-
[vars$
|
6949
|
-
[vars$
|
6950
|
-
[vars$
|
6951
|
-
[vars$
|
6952
|
-
[vars$
|
6953
|
-
[vars$
|
6954
|
-
[vars$
|
6955
|
-
[vars$
|
6956
|
-
[vars$
|
6937
|
+
[vars$c.hostWidth]: refs.width,
|
6938
|
+
[vars$c.hostDirection]: refs.direction,
|
6939
|
+
[vars$c.fontSize]: refs.fontSize,
|
6940
|
+
[vars$c.fontFamily]: refs.fontFamily,
|
6941
|
+
[vars$c.labelTextColor]: refs.labelTextColor,
|
6942
|
+
[vars$c.labelRequiredIndicator]: refs.requiredIndicator,
|
6943
|
+
[vars$c.errorMessageTextColor]: refs.errorMessageTextColor,
|
6944
|
+
[vars$c.inputValueTextColor]: refs.valueTextColor,
|
6945
|
+
[vars$c.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
6946
|
+
[vars$c.inputBorderStyle]: refs.borderStyle,
|
6947
|
+
[vars$c.inputBorderWidth]: refs.borderWidth,
|
6948
|
+
[vars$c.inputBorderColor]: refs.borderColor,
|
6949
|
+
[vars$c.inputBorderRadius]: refs.borderRadius,
|
6950
|
+
[vars$c.inputOutlineStyle]: refs.outlineStyle,
|
6951
|
+
[vars$c.inputOutlineWidth]: refs.outlineWidth,
|
6952
|
+
[vars$c.inputOutlineColor]: refs.outlineColor,
|
6953
|
+
[vars$c.inputOutlineOffset]: refs.outlineOffset,
|
6954
|
+
[vars$c.phoneInputWidth]: refs.minWidth,
|
6955
|
+
[vars$c.countryCodeInputWidth]: '5em',
|
6956
|
+
[vars$c.countryCodeDropdownWidth]: '20em',
|
6957
6957
|
|
6958
6958
|
// '@overlay': {
|
6959
6959
|
// overlayItemBackgroundColor: 'red'
|
@@ -6963,18 +6963,18 @@ const phoneField = {
|
|
6963
6963
|
var phoneField$1 = /*#__PURE__*/Object.freeze({
|
6964
6964
|
__proto__: null,
|
6965
6965
|
default: phoneField,
|
6966
|
-
vars: vars$
|
6966
|
+
vars: vars$c
|
6967
6967
|
});
|
6968
6968
|
|
6969
|
-
const componentName$
|
6969
|
+
const componentName$g = getComponentName('phone-field-internal-input-box');
|
6970
6970
|
|
6971
|
-
createBaseInputClass({ componentName: componentName$
|
6971
|
+
createBaseInputClass({ componentName: componentName$g, baseSelector: 'div' });
|
6972
6972
|
|
6973
6973
|
const textVars = TextFieldClass.cssVarList;
|
6974
6974
|
|
6975
|
-
const componentName$
|
6975
|
+
const componentName$f = getComponentName('phone-input-box-field');
|
6976
6976
|
|
6977
|
-
const customMixin$
|
6977
|
+
const customMixin$2 = (superclass) =>
|
6978
6978
|
class PhoneInputBoxFieldMixinClass extends superclass {
|
6979
6979
|
static get CountryCodes() {
|
6980
6980
|
return CountryCodes;
|
@@ -6986,15 +6986,15 @@ const customMixin$3 = (superclass) =>
|
|
6986
6986
|
const template = document.createElement('template');
|
6987
6987
|
|
6988
6988
|
template.innerHTML = `
|
6989
|
-
<${componentName$
|
6989
|
+
<${componentName$g}
|
6990
6990
|
tabindex="-1"
|
6991
6991
|
slot="input"
|
6992
|
-
></${componentName$
|
6992
|
+
></${componentName$g}>
|
6993
6993
|
`;
|
6994
6994
|
|
6995
6995
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
6996
6996
|
|
6997
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
6997
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$g);
|
6998
6998
|
|
6999
6999
|
forwardAttrs(this.shadowRoot.host, this.inputElement, {
|
7000
7000
|
includeAttrs: [
|
@@ -7061,7 +7061,7 @@ const PhoneFieldInputBoxClass = compose(
|
|
7061
7061
|
}),
|
7062
7062
|
draggableMixin,
|
7063
7063
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
7064
|
-
customMixin$
|
7064
|
+
customMixin$2
|
7065
7065
|
)(
|
7066
7066
|
createProxy({
|
7067
7067
|
slots: [],
|
@@ -7127,47 +7127,47 @@ const PhoneFieldInputBoxClass = compose(
|
|
7127
7127
|
${resetInputLabelPosition('vaadin-text-field')}
|
7128
7128
|
`,
|
7129
7129
|
excludeAttrsSync: ['tabindex'],
|
7130
|
-
componentName: componentName$
|
7130
|
+
componentName: componentName$f,
|
7131
7131
|
})
|
7132
7132
|
);
|
7133
7133
|
|
7134
|
-
const vars$
|
7134
|
+
const vars$b = PhoneFieldInputBoxClass.cssVarList;
|
7135
7135
|
|
7136
7136
|
const phoneInputBoxField = {
|
7137
|
-
[vars$
|
7138
|
-
[vars$
|
7139
|
-
[vars$
|
7140
|
-
[vars$
|
7141
|
-
[vars$
|
7142
|
-
[vars$
|
7143
|
-
[vars$
|
7144
|
-
[vars$
|
7145
|
-
[vars$
|
7146
|
-
[vars$
|
7147
|
-
[vars$
|
7148
|
-
[vars$
|
7149
|
-
[vars$
|
7150
|
-
[vars$
|
7151
|
-
[vars$
|
7152
|
-
[vars$
|
7153
|
-
[vars$
|
7154
|
-
[vars$
|
7137
|
+
[vars$b.hostWidth]: '16em',
|
7138
|
+
[vars$b.hostMinWidth]: refs.minWidth,
|
7139
|
+
[vars$b.hostDirection]: refs.direction,
|
7140
|
+
[vars$b.fontSize]: refs.fontSize,
|
7141
|
+
[vars$b.fontFamily]: refs.fontFamily,
|
7142
|
+
[vars$b.labelTextColor]: refs.labelTextColor,
|
7143
|
+
[vars$b.labelRequiredIndicator]: refs.requiredIndicator,
|
7144
|
+
[vars$b.errorMessageTextColor]: refs.errorMessageTextColor,
|
7145
|
+
[vars$b.inputValueTextColor]: refs.valueTextColor,
|
7146
|
+
[vars$b.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
7147
|
+
[vars$b.inputBorderStyle]: refs.borderStyle,
|
7148
|
+
[vars$b.inputBorderWidth]: refs.borderWidth,
|
7149
|
+
[vars$b.inputBorderColor]: refs.borderColor,
|
7150
|
+
[vars$b.inputBorderRadius]: refs.borderRadius,
|
7151
|
+
[vars$b.inputOutlineStyle]: refs.outlineStyle,
|
7152
|
+
[vars$b.inputOutlineWidth]: refs.outlineWidth,
|
7153
|
+
[vars$b.inputOutlineColor]: refs.outlineColor,
|
7154
|
+
[vars$b.inputOutlineOffset]: refs.outlineOffset,
|
7155
7155
|
_fullWidth: {
|
7156
|
-
[vars$
|
7156
|
+
[vars$b.hostWidth]: refs.width,
|
7157
7157
|
},
|
7158
7158
|
};
|
7159
7159
|
|
7160
7160
|
var phoneInputBoxField$1 = /*#__PURE__*/Object.freeze({
|
7161
7161
|
__proto__: null,
|
7162
7162
|
default: phoneInputBoxField,
|
7163
|
-
vars: vars$
|
7163
|
+
vars: vars$b
|
7164
7164
|
});
|
7165
7165
|
|
7166
|
-
const componentName$
|
7166
|
+
const componentName$e = getComponentName('new-password-internal');
|
7167
7167
|
|
7168
|
-
const componentName$
|
7168
|
+
const componentName$d = getComponentName('new-password');
|
7169
7169
|
|
7170
|
-
const customMixin$
|
7170
|
+
const customMixin$1 = (superclass) =>
|
7171
7171
|
class NewPasswordMixinClass extends superclass {
|
7172
7172
|
init() {
|
7173
7173
|
super.init?.();
|
@@ -7175,16 +7175,16 @@ const customMixin$2 = (superclass) =>
|
|
7175
7175
|
const template = document.createElement('template');
|
7176
7176
|
|
7177
7177
|
template.innerHTML = `
|
7178
|
-
<${componentName$
|
7178
|
+
<${componentName$e}
|
7179
7179
|
name="new-password"
|
7180
7180
|
tabindex="-1"
|
7181
7181
|
slot="input"
|
7182
|
-
></${componentName$
|
7182
|
+
></${componentName$e}>
|
7183
7183
|
`;
|
7184
7184
|
|
7185
7185
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
7186
7186
|
|
7187
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
7187
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$e);
|
7188
7188
|
|
7189
7189
|
forwardAttrs(this, this.inputElement, {
|
7190
7190
|
includeAttrs: [
|
@@ -7239,7 +7239,7 @@ const NewPasswordClass = compose(
|
|
7239
7239
|
}),
|
7240
7240
|
draggableMixin,
|
7241
7241
|
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
7242
|
-
customMixin$
|
7242
|
+
customMixin$1
|
7243
7243
|
)(
|
7244
7244
|
createProxy({
|
7245
7245
|
slots: [],
|
@@ -7291,33 +7291,33 @@ const NewPasswordClass = compose(
|
|
7291
7291
|
}
|
7292
7292
|
`,
|
7293
7293
|
excludeAttrsSync: ['tabindex'],
|
7294
|
-
componentName: componentName$
|
7294
|
+
componentName: componentName$d,
|
7295
7295
|
})
|
7296
7296
|
);
|
7297
7297
|
|
7298
|
-
const vars$
|
7298
|
+
const vars$a = NewPasswordClass.cssVarList;
|
7299
7299
|
|
7300
7300
|
const newPassword = {
|
7301
|
-
[vars$
|
7302
|
-
[vars$
|
7303
|
-
[vars$
|
7304
|
-
[vars$
|
7305
|
-
[vars$
|
7306
|
-
[vars$
|
7307
|
-
[vars$
|
7301
|
+
[vars$a.hostWidth]: refs.width,
|
7302
|
+
[vars$a.hostMinWidth]: refs.minWidth,
|
7303
|
+
[vars$a.hostDirection]: refs.direction,
|
7304
|
+
[vars$a.fontSize]: refs.fontSize,
|
7305
|
+
[vars$a.fontFamily]: refs.fontFamily,
|
7306
|
+
[vars$a.spaceBetweenInputs]: '1em',
|
7307
|
+
[vars$a.errorMessageTextColor]: refs.errorMessageTextColor,
|
7308
7308
|
|
7309
7309
|
_required: {
|
7310
7310
|
// NewPassword doesn't pass `required` attribute to its Password components.
|
7311
7311
|
// That's why we fake the required indicator on each input.
|
7312
7312
|
// We do that by injecting `::after` element, and populating it with requiredIndicator content.
|
7313
|
-
[vars$
|
7313
|
+
[vars$a.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
|
7314
7314
|
},
|
7315
7315
|
};
|
7316
7316
|
|
7317
7317
|
var newPassword$1 = /*#__PURE__*/Object.freeze({
|
7318
7318
|
__proto__: null,
|
7319
7319
|
default: newPassword,
|
7320
|
-
vars: vars$
|
7320
|
+
vars: vars$a
|
7321
7321
|
});
|
7322
7322
|
|
7323
7323
|
const getFileBase64 = (fileObj) => {
|
@@ -7332,7 +7332,7 @@ const getFilename = (fileObj) => {
|
|
7332
7332
|
return fileObj.name.replace(/^.*\\/, '');
|
7333
7333
|
};
|
7334
7334
|
|
7335
|
-
const componentName$
|
7335
|
+
const componentName$c = getComponentName('upload-file');
|
7336
7336
|
|
7337
7337
|
const observedAttributes$1 = [
|
7338
7338
|
'title',
|
@@ -7347,7 +7347,7 @@ const observedAttributes$1 = [
|
|
7347
7347
|
'icon',
|
7348
7348
|
];
|
7349
7349
|
|
7350
|
-
const BaseInputClass = createBaseInputClass({ componentName: componentName$
|
7350
|
+
const BaseInputClass = createBaseInputClass({ componentName: componentName$c, baseSelector: ':host > div' });
|
7351
7351
|
|
7352
7352
|
class RawUploadFile extends BaseInputClass {
|
7353
7353
|
static get observedAttributes() {
|
@@ -7562,77 +7562,77 @@ const UploadFileClass = compose(
|
|
7562
7562
|
componentNameValidationMixin
|
7563
7563
|
)(RawUploadFile);
|
7564
7564
|
|
7565
|
-
const vars$
|
7565
|
+
const vars$9 = UploadFileClass.cssVarList;
|
7566
7566
|
|
7567
7567
|
const uploadFile = {
|
7568
|
-
[vars$
|
7569
|
-
[vars$
|
7570
|
-
[vars$
|
7568
|
+
[vars$9.hostDirection]: refs.direction,
|
7569
|
+
[vars$9.labelTextColor]: refs.labelTextColor,
|
7570
|
+
[vars$9.fontFamily]: refs.fontFamily,
|
7571
7571
|
|
7572
|
-
[vars$
|
7572
|
+
[vars$9.iconSize]: '2em',
|
7573
7573
|
|
7574
|
-
[vars$
|
7575
|
-
[vars$
|
7574
|
+
[vars$9.hostPadding]: '0.75em',
|
7575
|
+
[vars$9.gap]: '0.5em',
|
7576
7576
|
|
7577
|
-
[vars$
|
7578
|
-
[vars$
|
7579
|
-
[vars$
|
7577
|
+
[vars$9.fontSize]: '16px',
|
7578
|
+
[vars$9.titleFontWeight]: '500',
|
7579
|
+
[vars$9.lineHeight]: '1em',
|
7580
7580
|
|
7581
|
-
[vars$
|
7582
|
-
[vars$
|
7583
|
-
[vars$
|
7584
|
-
[vars$
|
7581
|
+
[vars$9.borderWidth]: refs.borderWidth,
|
7582
|
+
[vars$9.borderColor]: refs.borderColor,
|
7583
|
+
[vars$9.borderRadius]: refs.borderRadius,
|
7584
|
+
[vars$9.borderStyle]: 'dashed',
|
7585
7585
|
|
7586
7586
|
_required: {
|
7587
|
-
[vars$
|
7587
|
+
[vars$9.requiredIndicator]: refs.requiredIndicator,
|
7588
7588
|
},
|
7589
7589
|
|
7590
7590
|
size: {
|
7591
7591
|
xs: {
|
7592
|
-
[vars$
|
7593
|
-
[vars$
|
7594
|
-
[vars$
|
7595
|
-
[vars$
|
7596
|
-
[vars$
|
7592
|
+
[vars$9.hostHeight]: '196px',
|
7593
|
+
[vars$9.hostWidth]: '200px',
|
7594
|
+
[vars$9.titleFontSize]: '0.875em',
|
7595
|
+
[vars$9.descriptionFontSize]: '0.875em',
|
7596
|
+
[vars$9.lineHeight]: '1.25em',
|
7597
7597
|
},
|
7598
7598
|
sm: {
|
7599
|
-
[vars$
|
7600
|
-
[vars$
|
7601
|
-
[vars$
|
7602
|
-
[vars$
|
7603
|
-
[vars$
|
7599
|
+
[vars$9.hostHeight]: '216px',
|
7600
|
+
[vars$9.hostWidth]: '230px',
|
7601
|
+
[vars$9.titleFontSize]: '1em',
|
7602
|
+
[vars$9.descriptionFontSize]: '0.875em',
|
7603
|
+
[vars$9.lineHeight]: '1.25em',
|
7604
7604
|
},
|
7605
7605
|
md: {
|
7606
|
-
[vars$
|
7607
|
-
[vars$
|
7608
|
-
[vars$
|
7609
|
-
[vars$
|
7610
|
-
[vars$
|
7606
|
+
[vars$9.hostHeight]: '256px',
|
7607
|
+
[vars$9.hostWidth]: '312px',
|
7608
|
+
[vars$9.titleFontSize]: '1.125em',
|
7609
|
+
[vars$9.descriptionFontSize]: '1em',
|
7610
|
+
[vars$9.lineHeight]: '1.5em',
|
7611
7611
|
},
|
7612
7612
|
lg: {
|
7613
|
-
[vars$
|
7614
|
-
[vars$
|
7615
|
-
[vars$
|
7616
|
-
[vars$
|
7617
|
-
[vars$
|
7613
|
+
[vars$9.hostHeight]: '280px',
|
7614
|
+
[vars$9.hostWidth]: '336px',
|
7615
|
+
[vars$9.titleFontSize]: '1.125em',
|
7616
|
+
[vars$9.descriptionFontSize]: '1.125em',
|
7617
|
+
[vars$9.lineHeight]: '1.75em',
|
7618
7618
|
},
|
7619
7619
|
},
|
7620
7620
|
|
7621
7621
|
_fullWidth: {
|
7622
|
-
[vars$
|
7622
|
+
[vars$9.hostWidth]: refs.width,
|
7623
7623
|
},
|
7624
7624
|
};
|
7625
7625
|
|
7626
7626
|
var uploadFile$1 = /*#__PURE__*/Object.freeze({
|
7627
7627
|
__proto__: null,
|
7628
7628
|
default: uploadFile,
|
7629
|
-
vars: vars$
|
7629
|
+
vars: vars$9
|
7630
7630
|
});
|
7631
7631
|
|
7632
|
-
const componentName$
|
7632
|
+
const componentName$b = getComponentName('button-selection-group-item');
|
7633
7633
|
|
7634
7634
|
class RawSelectItem extends createBaseClass({
|
7635
|
-
componentName: componentName$
|
7635
|
+
componentName: componentName$b,
|
7636
7636
|
baseSelector: ':host > descope-button',
|
7637
7637
|
}) {
|
7638
7638
|
get size() {
|
@@ -7732,73 +7732,138 @@ const ButtonSelectionGroupItemClass = compose(
|
|
7732
7732
|
|
7733
7733
|
const globalRefs$6 = getThemeRefs(globals);
|
7734
7734
|
|
7735
|
-
const vars$
|
7735
|
+
const vars$8 = ButtonSelectionGroupItemClass.cssVarList;
|
7736
7736
|
|
7737
7737
|
const buttonSelectionGroupItem = {
|
7738
|
-
[vars$
|
7739
|
-
[vars$
|
7740
|
-
[vars$
|
7741
|
-
[vars$
|
7742
|
-
[vars$
|
7743
|
-
[vars$
|
7738
|
+
[vars$8.hostDirection]: 'inherit',
|
7739
|
+
[vars$8.backgroundColor]: globalRefs$6.colors.surface.light,
|
7740
|
+
[vars$8.labelTextColor]: globalRefs$6.colors.surface.contrast,
|
7741
|
+
[vars$8.borderColor]: globalRefs$6.colors.surface.main,
|
7742
|
+
[vars$8.borderStyle]: 'solid',
|
7743
|
+
[vars$8.borderRadius]: globalRefs$6.radius.sm,
|
7744
7744
|
|
7745
7745
|
_hover: {
|
7746
|
-
[vars$
|
7746
|
+
[vars$8.backgroundColor]: '#f4f5f5', // can we take it from the palette?
|
7747
7747
|
},
|
7748
7748
|
|
7749
7749
|
_selected: {
|
7750
|
-
[vars$
|
7751
|
-
[vars$
|
7752
|
-
[vars$
|
7750
|
+
[vars$8.borderColor]: globalRefs$6.colors.surface.contrast,
|
7751
|
+
[vars$8.backgroundColor]: globalRefs$6.colors.surface.contrast,
|
7752
|
+
[vars$8.labelTextColor]: globalRefs$6.colors.surface.light,
|
7753
7753
|
},
|
7754
7754
|
};
|
7755
7755
|
|
7756
7756
|
var buttonSelectionGroupItem$1 = /*#__PURE__*/Object.freeze({
|
7757
7757
|
__proto__: null,
|
7758
7758
|
default: buttonSelectionGroupItem,
|
7759
|
-
vars: vars$
|
7759
|
+
vars: vars$8
|
7760
7760
|
});
|
7761
7761
|
|
7762
|
-
const
|
7762
|
+
const createBaseButtonSelectionGroupInternalClass = (componentName) => {
|
7763
|
+
class BaseButtonSelectionGroupInternalClass extends createBaseInputClass({
|
7764
|
+
componentName,
|
7765
|
+
baseSelector: 'slot',
|
7766
|
+
}) {
|
7767
|
+
constructor() {
|
7768
|
+
super();
|
7763
7769
|
|
7764
|
-
|
7765
|
-
|
7766
|
-
|
7767
|
-
|
7768
|
-
|
7769
|
-
|
7770
|
+
this.innerHTML = `
|
7771
|
+
<style>
|
7772
|
+
slot {
|
7773
|
+
box-sizing: border-box;
|
7774
|
+
width: 100%;
|
7775
|
+
display: flex;
|
7776
|
+
flex-wrap: wrap;
|
7777
|
+
}
|
7778
|
+
</style>
|
7779
|
+
<slot part="wrapper"></slot>
|
7780
|
+
`;
|
7781
|
+
}
|
7770
7782
|
|
7771
|
-
|
7772
|
-
|
7773
|
-
|
7774
|
-
|
7775
|
-
width: 100%;
|
7776
|
-
display: flex;
|
7777
|
-
flex-wrap: wrap;
|
7783
|
+
dispatchChange = createDispatchEvent.bind(this, 'change');
|
7784
|
+
|
7785
|
+
get items() {
|
7786
|
+
return this.querySelector('slot').assignedElements();
|
7778
7787
|
}
|
7779
|
-
</style>
|
7780
|
-
<slot part="wrapper"></slot>
|
7781
|
-
`;
|
7782
|
-
}
|
7783
7788
|
|
7784
|
-
|
7789
|
+
get isReadonly() {
|
7790
|
+
return this.getAttribute('readonly') === 'true';
|
7791
|
+
}
|
7785
7792
|
|
7786
|
-
|
7787
|
-
|
7788
|
-
|
7793
|
+
get size() {
|
7794
|
+
return this.getAttribute('size') || 'md';
|
7795
|
+
}
|
7796
|
+
|
7797
|
+
// eslint-disable-next-line getter-return, class-methods-use-this
|
7798
|
+
get value() {
|
7799
|
+
// eslint-disable-next-line no-console
|
7800
|
+
console.warn('get value', 'is not implemented');
|
7801
|
+
}
|
7802
|
+
|
7803
|
+
// eslint-disable-next-line class-methods-use-this
|
7804
|
+
set value(value) {
|
7805
|
+
// eslint-disable-next-line no-console
|
7806
|
+
console.warn('set value', 'is not implemented');
|
7807
|
+
}
|
7808
|
+
|
7809
|
+
onSizeChange() {
|
7810
|
+
this.items.forEach((item) => {
|
7811
|
+
item.setAttribute('size', this.size);
|
7812
|
+
});
|
7813
|
+
}
|
7814
|
+
|
7815
|
+
onReadOnlyChange() {
|
7816
|
+
this.querySelector('slot').toggleAttribute('inert', this.isReadonly);
|
7817
|
+
}
|
7818
|
+
|
7819
|
+
// eslint-disable-next-line class-methods-use-this
|
7820
|
+
getValidity() {
|
7821
|
+
// eslint-disable-next-line no-console
|
7822
|
+
console.warn('getValidity', 'is not implemented');
|
7823
|
+
}
|
7789
7824
|
|
7790
|
-
|
7791
|
-
|
7825
|
+
onObservedAttributeChange(attrs) {
|
7826
|
+
attrs.forEach((attr) => {
|
7827
|
+
switch (attr) {
|
7828
|
+
case 'size':
|
7829
|
+
this.onSizeChange();
|
7830
|
+
break;
|
7831
|
+
case 'readonly':
|
7832
|
+
this.onReadOnlyChange();
|
7833
|
+
break;
|
7834
|
+
}
|
7835
|
+
});
|
7836
|
+
}
|
7837
|
+
|
7838
|
+
init() {
|
7839
|
+
// we are adding listeners before calling to super because it's stopping the events
|
7840
|
+
this.addEventListener('focus', (e) => {
|
7841
|
+
// we want to ignore focus events we are dispatching
|
7842
|
+
if (e.isTrusted) {
|
7843
|
+
this.items[0]?.focus();
|
7844
|
+
}
|
7845
|
+
});
|
7846
|
+
|
7847
|
+
super.init?.();
|
7848
|
+
|
7849
|
+
observeAttributes(this, this.onObservedAttributeChange.bind(this), {
|
7850
|
+
includeAttrs: ['size', 'readonly'],
|
7851
|
+
});
|
7852
|
+
}
|
7792
7853
|
}
|
7793
7854
|
|
7855
|
+
return BaseButtonSelectionGroupInternalClass;
|
7856
|
+
};
|
7857
|
+
|
7858
|
+
const componentName$a = getComponentName('button-selection-group-internal');
|
7859
|
+
|
7860
|
+
class ButtonSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
|
7861
|
+
componentName$a
|
7862
|
+
) {
|
7794
7863
|
getSelectedNode() {
|
7795
7864
|
return this.items.find((item) => item.hasAttribute('selected'));
|
7796
7865
|
}
|
7797
7866
|
|
7798
|
-
get size() {
|
7799
|
-
return this.getAttribute('size') || 'md';
|
7800
|
-
}
|
7801
|
-
|
7802
7867
|
get allowDeselect() {
|
7803
7868
|
return this.getAttribute('allow-deselect') === 'true';
|
7804
7869
|
}
|
@@ -7814,7 +7879,7 @@ class ButtonSelectionGroupInternalClass extends createBaseInputClass({
|
|
7814
7879
|
} else {
|
7815
7880
|
this.setSelected(e.target);
|
7816
7881
|
}
|
7817
|
-
this
|
7882
|
+
this.dispatchChange();
|
7818
7883
|
}
|
7819
7884
|
}
|
7820
7885
|
|
@@ -7825,15 +7890,6 @@ class ButtonSelectionGroupInternalClass extends createBaseInputClass({
|
|
7825
7890
|
}
|
7826
7891
|
}
|
7827
7892
|
|
7828
|
-
get value() {
|
7829
|
-
return this.getSelectedNode()?.value || '';
|
7830
|
-
}
|
7831
|
-
|
7832
|
-
set value(value) {
|
7833
|
-
const node = this.items.find((child) => child.value === value);
|
7834
|
-
this.setSelected(node);
|
7835
|
-
}
|
7836
|
-
|
7837
7893
|
get defaultValue() {
|
7838
7894
|
return this.getAttribute('default-value');
|
7839
7895
|
}
|
@@ -7848,14 +7904,13 @@ class ButtonSelectionGroupInternalClass extends createBaseInputClass({
|
|
7848
7904
|
});
|
7849
7905
|
}
|
7850
7906
|
|
7851
|
-
|
7852
|
-
this.
|
7853
|
-
item.setAttribute('size', this.size);
|
7854
|
-
});
|
7907
|
+
get value() {
|
7908
|
+
return this.getSelectedNode()?.value || '';
|
7855
7909
|
}
|
7856
7910
|
|
7857
|
-
|
7858
|
-
this.
|
7911
|
+
set value(value) {
|
7912
|
+
const node = this.items.find((child) => child.value === value);
|
7913
|
+
this.setSelected(node);
|
7859
7914
|
}
|
7860
7915
|
|
7861
7916
|
getValidity() {
|
@@ -7866,42 +7921,16 @@ class ButtonSelectionGroupInternalClass extends createBaseInputClass({
|
|
7866
7921
|
return {};
|
7867
7922
|
}
|
7868
7923
|
|
7869
|
-
onObservedAttributeChange(attrs) {
|
7870
|
-
attrs.forEach((attr) => {
|
7871
|
-
switch (attr) {
|
7872
|
-
case 'size':
|
7873
|
-
this.onSizeChange();
|
7874
|
-
break;
|
7875
|
-
case 'readonly':
|
7876
|
-
this.onReadOnlyChange();
|
7877
|
-
break;
|
7878
|
-
}
|
7879
|
-
});
|
7880
|
-
}
|
7881
|
-
|
7882
7924
|
init() {
|
7883
|
-
|
7884
|
-
this.addEventListener('focus', (e) => {
|
7885
|
-
// we want to ignore focus events we are dispatching
|
7886
|
-
if (e.isTrusted) {
|
7887
|
-
this.items[0]?.focus();
|
7888
|
-
}
|
7889
|
-
});
|
7925
|
+
super.init();
|
7890
7926
|
|
7891
|
-
super.init?.();
|
7892
7927
|
this.setDefaultValue();
|
7893
7928
|
|
7894
|
-
observeAttributes(this, this.onObservedAttributeChange.bind(this), {
|
7895
|
-
includeAttrs: ['size', 'readonly'],
|
7896
|
-
});
|
7897
|
-
|
7898
7929
|
this.querySelector('slot').addEventListener('click', this.onClick.bind(this));
|
7899
7930
|
}
|
7900
7931
|
}
|
7901
7932
|
|
7902
|
-
const
|
7903
|
-
|
7904
|
-
const customMixin$1 = (superclass) =>
|
7933
|
+
const buttonSelectionGroupBaseMixin = (superclass) =>
|
7905
7934
|
class ButtonSelectionGroupMixinClass extends superclass {
|
7906
7935
|
// eslint-disable-next-line class-methods-use-this
|
7907
7936
|
#renderItem = ({ value, label }) =>
|
@@ -7971,25 +8000,6 @@ const customMixin$1 = (superclass) =>
|
|
7971
8000
|
|
7972
8001
|
init() {
|
7973
8002
|
super.init?.();
|
7974
|
-
const template = document.createElement('template');
|
7975
|
-
|
7976
|
-
template.innerHTML = `
|
7977
|
-
<${componentName$8}
|
7978
|
-
name="button-selection-group"
|
7979
|
-
slot="input"
|
7980
|
-
tabindex="-1"
|
7981
|
-
>
|
7982
|
-
<slot></slot>
|
7983
|
-
</${componentName$8}>
|
7984
|
-
`;
|
7985
|
-
|
7986
|
-
this.baseElement.appendChild(template.content.cloneNode(true));
|
7987
|
-
|
7988
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$8);
|
7989
|
-
|
7990
|
-
forwardAttrs(this, this.inputElement, {
|
7991
|
-
includeAttrs: ['size', 'default-value', 'allow-deselect'],
|
7992
|
-
});
|
7993
8003
|
|
7994
8004
|
this.renderItems();
|
7995
8005
|
|
@@ -8008,34 +8018,24 @@ const { host: host$2, label: label$1, requiredIndicator: requiredIndicator$1, in
|
|
8008
8018
|
host: { selector: () => ':host' },
|
8009
8019
|
label: { selector: '::part(label)' },
|
8010
8020
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
8011
|
-
internalWrapper: { selector: '
|
8021
|
+
internalWrapper: { selector: () => ':host [part="internal-component"] slot' },
|
8012
8022
|
errorMessage: { selector: '::part(error-message)' },
|
8013
8023
|
};
|
8014
8024
|
|
8015
|
-
const
|
8016
|
-
|
8017
|
-
|
8018
|
-
|
8019
|
-
|
8020
|
-
|
8021
|
-
|
8022
|
-
|
8023
|
-
|
8024
|
-
|
8025
|
-
|
8026
|
-
|
8027
|
-
|
8028
|
-
|
8029
|
-
}),
|
8030
|
-
draggableMixin,
|
8031
|
-
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
8032
|
-
componentNameValidationMixin,
|
8033
|
-
customMixin$1
|
8034
|
-
)(
|
8035
|
-
createProxy({
|
8036
|
-
slots: [],
|
8037
|
-
wrappedEleName: 'vaadin-text-field',
|
8038
|
-
style: () => `
|
8025
|
+
const buttonSelectionGroupMappings = {
|
8026
|
+
hostWidth: { ...host$2, property: 'width' },
|
8027
|
+
hostDirection: { ...host$2, property: 'direction' },
|
8028
|
+
fontFamily: host$2,
|
8029
|
+
labelTextColor: [
|
8030
|
+
{ ...label$1, property: 'color' },
|
8031
|
+
{ ...requiredIndicator$1, property: 'color' },
|
8032
|
+
],
|
8033
|
+
labelRequiredIndicator: { ...requiredIndicator$1, property: 'content' },
|
8034
|
+
errorMessageTextColor: { ...errorMessage$1, property: 'color' },
|
8035
|
+
itemsSpacing: { ...internalWrapper, property: 'gap' },
|
8036
|
+
};
|
8037
|
+
|
8038
|
+
const buttonSelectionGroupStyles = `
|
8039
8039
|
:host {
|
8040
8040
|
display: inline-flex;
|
8041
8041
|
max-width: 100%;
|
@@ -8048,7 +8048,7 @@ const ButtonSelectionGroupClass = compose(
|
|
8048
8048
|
background-color: transparent;
|
8049
8049
|
}
|
8050
8050
|
|
8051
|
-
|
8051
|
+
[part="internal-component"] {
|
8052
8052
|
-webkit-mask-image: none;
|
8053
8053
|
padding: 0;
|
8054
8054
|
width: 100%;
|
@@ -8088,28 +8088,245 @@ const ButtonSelectionGroupClass = compose(
|
|
8088
8088
|
|
8089
8089
|
${resetInputLabelPosition('vaadin-text-field')}
|
8090
8090
|
${resetInputCursor('vaadin-text-field')}
|
8091
|
-
|
8091
|
+
`;
|
8092
|
+
|
8093
|
+
const componentName$9 = getComponentName('button-selection-group');
|
8094
|
+
|
8095
|
+
const buttonSelectionGroupMixin = (superclass) =>
|
8096
|
+
class ButtonMultiSelectionGroupMixinClass extends superclass {
|
8097
|
+
init() {
|
8098
|
+
super.init?.();
|
8099
|
+
const template = document.createElement('template');
|
8100
|
+
|
8101
|
+
template.innerHTML = `
|
8102
|
+
<${componentName$a}
|
8103
|
+
name="button-selection-group"
|
8104
|
+
slot="input"
|
8105
|
+
tabindex="-1"
|
8106
|
+
part="internal-component"
|
8107
|
+
>
|
8108
|
+
<slot></slot>
|
8109
|
+
</${componentName$a}>
|
8110
|
+
`;
|
8111
|
+
|
8112
|
+
this.baseElement.appendChild(template.content.cloneNode(true));
|
8113
|
+
|
8114
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$a);
|
8115
|
+
|
8116
|
+
forwardAttrs(this, this.inputElement, {
|
8117
|
+
includeAttrs: ['size', 'default-value', 'allow-deselect'],
|
8118
|
+
});
|
8119
|
+
}
|
8120
|
+
};
|
8121
|
+
|
8122
|
+
const ButtonSelectionGroupClass = compose(
|
8123
|
+
createStyleMixin({
|
8124
|
+
mappings: {
|
8125
|
+
...buttonSelectionGroupMappings,
|
8126
|
+
},
|
8127
|
+
}),
|
8128
|
+
draggableMixin,
|
8129
|
+
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
8130
|
+
componentNameValidationMixin,
|
8131
|
+
buttonSelectionGroupBaseMixin,
|
8132
|
+
buttonSelectionGroupMixin
|
8133
|
+
)(
|
8134
|
+
createProxy({
|
8135
|
+
slots: [],
|
8136
|
+
wrappedEleName: 'vaadin-text-field',
|
8137
|
+
style: () => buttonSelectionGroupStyles,
|
8092
8138
|
excludeAttrsSync: ['tabindex'],
|
8093
|
-
componentName: componentName$
|
8139
|
+
componentName: componentName$9,
|
8094
8140
|
})
|
8095
8141
|
);
|
8096
8142
|
|
8097
8143
|
const globalRefs$5 = getThemeRefs(globals);
|
8098
|
-
|
8144
|
+
|
8145
|
+
const createBaseButtonSelectionGroupMappings = (vars) => ({
|
8146
|
+
[vars.hostDirection]: refs.direction,
|
8147
|
+
[vars.fontFamily]: refs.fontFamily,
|
8148
|
+
[vars.labelTextColor]: refs.labelTextColor,
|
8149
|
+
[vars.labelRequiredIndicator]: refs.requiredIndicator,
|
8150
|
+
[vars.errorMessageTextColor]: refs.errorMessageTextColor,
|
8151
|
+
[vars.itemsSpacing]: globalRefs$5.spacing.sm,
|
8152
|
+
[vars.hostWidth]: refs.width,
|
8153
|
+
});
|
8154
|
+
|
8155
|
+
const vars$7 = ButtonSelectionGroupClass.cssVarList;
|
8099
8156
|
|
8100
8157
|
const buttonSelectionGroup = {
|
8101
|
-
|
8102
|
-
[vars$6.fontFamily]: refs.fontFamily,
|
8103
|
-
[vars$6.labelTextColor]: refs.labelTextColor,
|
8104
|
-
[vars$6.labelRequiredIndicator]: refs.requiredIndicator,
|
8105
|
-
[vars$6.errorMessageTextColor]: refs.errorMessageTextColor,
|
8106
|
-
[vars$6.itemsSpacing]: globalRefs$5.spacing.sm,
|
8107
|
-
[vars$6.hostWidth]: refs.width,
|
8158
|
+
...createBaseButtonSelectionGroupMappings(vars$7),
|
8108
8159
|
};
|
8109
8160
|
|
8110
8161
|
var buttonSelectionGroup$1 = /*#__PURE__*/Object.freeze({
|
8111
8162
|
__proto__: null,
|
8112
8163
|
default: buttonSelectionGroup,
|
8164
|
+
vars: vars$7
|
8165
|
+
});
|
8166
|
+
|
8167
|
+
const componentName$8 = getComponentName('button-multi-selection-group-internal');
|
8168
|
+
|
8169
|
+
class ButtonMultiSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
|
8170
|
+
componentName$8
|
8171
|
+
) {
|
8172
|
+
#getSelectedNodes() {
|
8173
|
+
return this.items.filter((item) => item.hasAttribute('selected'));
|
8174
|
+
}
|
8175
|
+
|
8176
|
+
onClick(e) {
|
8177
|
+
if (e.target !== e.currentTarget) {
|
8178
|
+
if (this.#getSelectedNodes().includes(e.target)) {
|
8179
|
+
e.target.removeAttribute('selected');
|
8180
|
+
} else {
|
8181
|
+
e.target.setAttribute('selected', 'true');
|
8182
|
+
}
|
8183
|
+
this.dispatchChange();
|
8184
|
+
}
|
8185
|
+
}
|
8186
|
+
|
8187
|
+
get value() {
|
8188
|
+
return this.#getSelectedNodes().map((node) => node.value);
|
8189
|
+
}
|
8190
|
+
|
8191
|
+
set value(values) {
|
8192
|
+
this.items.forEach((item) => {
|
8193
|
+
if (values.includes(item.value)) {
|
8194
|
+
item.setAttribute('selected', 'true');
|
8195
|
+
}
|
8196
|
+
});
|
8197
|
+
}
|
8198
|
+
|
8199
|
+
get minItemsSelection() {
|
8200
|
+
return parseInt(this.getAttribute('min-items-selection'), 10) || 0;
|
8201
|
+
}
|
8202
|
+
|
8203
|
+
get maxItemsSelection() {
|
8204
|
+
return parseInt(this.getAttribute('max-items-selection'), 10) || 0;
|
8205
|
+
}
|
8206
|
+
|
8207
|
+
// eslint-disable-next-line class-methods-use-this
|
8208
|
+
#isValidDataType(data) {
|
8209
|
+
const isValid = Array.isArray(data);
|
8210
|
+
if (!isValid) {
|
8211
|
+
// eslint-disable-next-line no-console
|
8212
|
+
console.error('default-values must be an array, received:', data);
|
8213
|
+
}
|
8214
|
+
|
8215
|
+
return isValid;
|
8216
|
+
}
|
8217
|
+
|
8218
|
+
get defaultValues() {
|
8219
|
+
const defaultValuesAttr = this.getAttribute('default-values');
|
8220
|
+
if (defaultValuesAttr) {
|
8221
|
+
try {
|
8222
|
+
const defaultValues = JSON.parse(defaultValuesAttr);
|
8223
|
+
if (this.#isValidDataType(defaultValues)) {
|
8224
|
+
return defaultValues;
|
8225
|
+
}
|
8226
|
+
} catch (e) {
|
8227
|
+
// eslint-disable-next-line no-console
|
8228
|
+
console.error('could not parse data string from attribute "default-values" -', e.message);
|
8229
|
+
}
|
8230
|
+
}
|
8231
|
+
return [];
|
8232
|
+
}
|
8233
|
+
|
8234
|
+
setDefaultValues() {
|
8235
|
+
// we want to defer this action until all attributes are synced
|
8236
|
+
setTimeout(() => {
|
8237
|
+
if (this.defaultValues) {
|
8238
|
+
this.value = this.defaultValues;
|
8239
|
+
this.setCustomValidity();
|
8240
|
+
}
|
8241
|
+
});
|
8242
|
+
}
|
8243
|
+
|
8244
|
+
getValidity() {
|
8245
|
+
if (this.isRequired && !this.value.length) {
|
8246
|
+
return { valueMissing: true };
|
8247
|
+
}
|
8248
|
+
// If the field is not required, no minimum selection can be set
|
8249
|
+
if (this.isRequired && this.minItemsSelection && this.value.length < this.minItemsSelection) {
|
8250
|
+
return {
|
8251
|
+
rangeUnderflow: true,
|
8252
|
+
};
|
8253
|
+
}
|
8254
|
+
if (this.maxItemsSelection && this.value.length > this.maxItemsSelection) {
|
8255
|
+
return {
|
8256
|
+
rangeOverflow: true,
|
8257
|
+
};
|
8258
|
+
}
|
8259
|
+
return {};
|
8260
|
+
}
|
8261
|
+
|
8262
|
+
init() {
|
8263
|
+
super.init();
|
8264
|
+
|
8265
|
+
this.setDefaultValues();
|
8266
|
+
|
8267
|
+
this.querySelector('slot').addEventListener('click', this.onClick.bind(this));
|
8268
|
+
}
|
8269
|
+
}
|
8270
|
+
|
8271
|
+
const componentName$7 = getComponentName('button-multi-selection-group');
|
8272
|
+
|
8273
|
+
const buttonMultiSelectionGroupMixin = (superclass) =>
|
8274
|
+
class ButtonMultiSelectionGroupMixinClass extends superclass {
|
8275
|
+
init() {
|
8276
|
+
super.init?.();
|
8277
|
+
const template = document.createElement('template');
|
8278
|
+
|
8279
|
+
template.innerHTML = `
|
8280
|
+
<${componentName$8}
|
8281
|
+
name="button-selection-group"
|
8282
|
+
slot="input"
|
8283
|
+
tabindex="-1"
|
8284
|
+
part="internal-component"
|
8285
|
+
>
|
8286
|
+
<slot></slot>
|
8287
|
+
</${componentName$8}>
|
8288
|
+
`;
|
8289
|
+
|
8290
|
+
this.baseElement.appendChild(template.content.cloneNode(true));
|
8291
|
+
|
8292
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$8);
|
8293
|
+
|
8294
|
+
forwardAttrs(this, this.inputElement, {
|
8295
|
+
includeAttrs: ['size', 'default-values', 'min-items-selection', 'max-items-selection'],
|
8296
|
+
});
|
8297
|
+
}
|
8298
|
+
};
|
8299
|
+
|
8300
|
+
const ButtonMultiSelectionGroupClass = compose(
|
8301
|
+
createStyleMixin({
|
8302
|
+
mappings: {
|
8303
|
+
...buttonSelectionGroupMappings,
|
8304
|
+
},
|
8305
|
+
}),
|
8306
|
+
draggableMixin,
|
8307
|
+
composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
|
8308
|
+
componentNameValidationMixin,
|
8309
|
+
buttonSelectionGroupBaseMixin,
|
8310
|
+
buttonMultiSelectionGroupMixin
|
8311
|
+
)(
|
8312
|
+
createProxy({
|
8313
|
+
slots: [],
|
8314
|
+
wrappedEleName: 'vaadin-text-field',
|
8315
|
+
style: () => buttonSelectionGroupStyles,
|
8316
|
+
excludeAttrsSync: ['tabindex'],
|
8317
|
+
componentName: componentName$7,
|
8318
|
+
})
|
8319
|
+
);
|
8320
|
+
|
8321
|
+
const vars$6 = ButtonMultiSelectionGroupClass.cssVarList;
|
8322
|
+
|
8323
|
+
const buttonMultiSelectionGroup = {
|
8324
|
+
...createBaseButtonSelectionGroupMappings(vars$6),
|
8325
|
+
};
|
8326
|
+
|
8327
|
+
var buttonMultiSelectionGroup$1 = /*#__PURE__*/Object.freeze({
|
8328
|
+
__proto__: null,
|
8329
|
+
default: buttonMultiSelectionGroup,
|
8113
8330
|
vars: vars$6
|
8114
8331
|
});
|
8115
8332
|
|
@@ -9385,6 +9602,7 @@ const components = {
|
|
9385
9602
|
uploadFile: uploadFile$1,
|
9386
9603
|
buttonSelectionGroupItem: buttonSelectionGroupItem$1,
|
9387
9604
|
buttonSelectionGroup: buttonSelectionGroup$1,
|
9605
|
+
buttonMultiSelectionGroup: buttonMultiSelectionGroup$1,
|
9388
9606
|
modal: modal$1,
|
9389
9607
|
grid: grid$1,
|
9390
9608
|
notificationCard,
|
@@ -9402,7 +9620,7 @@ const vars = Object.keys(components).reduce(
|
|
9402
9620
|
);
|
9403
9621
|
|
9404
9622
|
const defaultTheme = { globals, components: theme };
|
9405
|
-
const themeVars = { globals: vars$
|
9623
|
+
const themeVars = { globals: vars$x, components: vars };
|
9406
9624
|
|
9407
9625
|
const componentName$1 = getComponentName('recaptcha');
|
9408
9626
|
|
@@ -9659,6 +9877,7 @@ const NotificationClass = compose(
|
|
9659
9877
|
|
9660
9878
|
exports.BadgeClass = BadgeClass;
|
9661
9879
|
exports.ButtonClass = ButtonClass;
|
9880
|
+
exports.ButtonMultiSelectionGroupClass = ButtonMultiSelectionGroupClass;
|
9662
9881
|
exports.ButtonSelectionGroupClass = ButtonSelectionGroupClass;
|
9663
9882
|
exports.ButtonSelectionGroupItemClass = ButtonSelectionGroupItemClass;
|
9664
9883
|
exports.CheckboxClass = CheckboxClass;
|