@descope/web-components-ui 1.0.246 → 1.0.248

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/cjs/index.cjs.js +877 -658
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +2 -1
  4. package/dist/index.esm.js +994 -769
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/umd/1000.js +1 -1
  7. package/dist/umd/9214.js +1 -0
  8. package/dist/umd/9434.js +1 -0
  9. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -0
  10. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js +1 -0
  11. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -0
  12. package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js +1 -0
  13. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -0
  14. package/dist/umd/index.js +1 -1
  15. package/package.json +1 -1
  16. package/src/components/{descope-button-selection-group/ButtonSelectionGroupClass.js → button-selection-group-fields/baseButtonSelectionGroup.js} +19 -70
  17. package/src/components/button-selection-group-fields/createBaseButtonSelectionGroupInternalClass.js +101 -0
  18. package/src/components/button-selection-group-fields/descope-button-multi-selection-group/ButtonMultiSelectionGroupClass.js +67 -0
  19. package/src/components/button-selection-group-fields/descope-button-multi-selection-group/index.js +7 -0
  20. package/src/components/button-selection-group-fields/descope-button-multi-selection-group-internal/ButtonMultiSelectionGroupInternalClass.js +106 -0
  21. package/src/components/button-selection-group-fields/descope-button-multi-selection-group-internal/index.js +8 -0
  22. package/src/components/button-selection-group-fields/descope-button-selection-group/ButtonSelectionGroupClass.js +67 -0
  23. package/src/components/{descope-button-selection-group → button-selection-group-fields/descope-button-selection-group}/index.js +2 -2
  24. package/src/components/button-selection-group-fields/descope-button-selection-group-internal/ButtonSelectionGroupInternalClass.js +77 -0
  25. package/src/index.cjs.js +3 -2
  26. package/src/index.d.ts +2 -1
  27. package/src/index.js +3 -1
  28. package/src/mixins/inputValidationMixin.js +2 -2
  29. package/src/theme/components/buttonSelectionGroup/baseButtonSelectionGroup.js +15 -0
  30. package/src/theme/components/buttonSelectionGroup/buttonMultiSelectionGroup.js +11 -0
  31. package/src/theme/components/buttonSelectionGroup/buttonSelectionGroup.js +3 -12
  32. package/src/theme/components/buttonSelectionGroup/buttonSelectionGroupItem.js +1 -1
  33. package/src/theme/components/index.js +2 -0
  34. package/dist/umd/descope-button-selection-group-descope-button-selection-group-internal-index-js.js +0 -1
  35. package/dist/umd/descope-button-selection-group-descope-button-selection-group-item-index-js.js +0 -1
  36. package/dist/umd/descope-button-selection-group-index-js.js +0 -1
  37. package/src/components/descope-button-selection-group/descope-button-selection-group-internal/ButtonSelectionGroupInternalClass.js +0 -145
  38. /package/src/components/{descope-button-selection-group → button-selection-group-fields}/descope-button-selection-group-internal/index.js +0 -0
  39. /package/src/components/{descope-button-selection-group → button-selection-group-fields}/descope-button-selection-group-item/ButtonSelectionGroupItemClass.js +0 -0
  40. /package/src/components/{descope-button-selection-group → button-selection-group-fields}/descope-button-selection-group-item/index.js +0 -0
@@ -499,7 +499,7 @@ const globals = {
499
499
  fonts,
500
500
  direction,
501
501
  };
502
- const vars$w = getThemeVars(globals);
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.minItemsSelection} items are required.`;
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.maxItemsSelection} items are allowed.`;
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$C = getComponentName('button');
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$C,
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$C);
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$v = {
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$v
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$B = getComponentName('text-field');
2830
+ const componentName$D = getComponentName('text-field');
2831
2831
 
2832
2832
  const observedAttrs = ['type'];
2833
2833
 
2834
- const customMixin$7 = (superclass) =>
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$7
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$B,
2880
+ componentName: componentName$D,
2881
2881
  })
2882
2882
  );
2883
2883
 
2884
- const componentName$A = getComponentName('input-wrapper');
2884
+ const componentName$C = getComponentName('input-wrapper');
2885
2885
  const globalRefs$h = getThemeRefs(globals);
2886
2886
 
2887
- const [theme$1, refs, vars$u] = createHelperVars(
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$A
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$u
2960
+ vars: vars$v
2961
2961
  });
2962
2962
 
2963
- const vars$t = TextFieldClass.cssVarList;
2963
+ const vars$u = TextFieldClass.cssVarList;
2964
2964
 
2965
2965
  const textField = {
2966
- [vars$t.hostWidth]: refs.width,
2967
- [vars$t.hostMinWidth]: refs.minWidth,
2968
- [vars$t.hostDirection]: refs.direction,
2969
- [vars$t.fontSize]: refs.fontSize,
2970
- [vars$t.fontFamily]: refs.fontFamily,
2971
- [vars$t.labelTextColor]: refs.labelTextColor,
2972
- [vars$t.labelRequiredIndicator]: refs.requiredIndicator,
2973
- [vars$t.errorMessageTextColor]: refs.errorMessageTextColor,
2974
- [vars$t.inputValueTextColor]: refs.valueTextColor,
2975
- [vars$t.inputPlaceholderColor]: refs.placeholderTextColor,
2976
- [vars$t.inputBorderWidth]: refs.borderWidth,
2977
- [vars$t.inputBorderStyle]: refs.borderStyle,
2978
- [vars$t.inputBorderColor]: refs.borderColor,
2979
- [vars$t.inputBorderRadius]: refs.borderRadius,
2980
- [vars$t.inputOutlineWidth]: refs.outlineWidth,
2981
- [vars$t.inputOutlineStyle]: refs.outlineStyle,
2982
- [vars$t.inputOutlineColor]: refs.outlineColor,
2983
- [vars$t.inputOutlineOffset]: refs.outlineOffset,
2984
- [vars$t.inputBackgroundColor]: refs.backgroundColor,
2985
- [vars$t.inputHeight]: refs.inputHeight,
2986
- [vars$t.inputHorizontalPadding]: refs.horizontalPadding,
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$t
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$z = getComponentName('password');
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$z,
3161
+ componentName: componentName$B,
3162
3162
  })
3163
3163
  );
3164
3164
 
3165
3165
  const globalRefs$g = getThemeRefs(globals);
3166
- const vars$s = PasswordClass.cssVarList;
3166
+ const vars$t = PasswordClass.cssVarList;
3167
3167
 
3168
3168
  const password = {
3169
- [vars$s.hostWidth]: refs.width,
3170
- [vars$s.hostDirection]: refs.direction,
3171
- [vars$s.fontSize]: refs.fontSize,
3172
- [vars$s.fontFamily]: refs.fontFamily,
3173
- [vars$s.labelTextColor]: refs.labelTextColor,
3174
- [vars$s.errorMessageTextColor]: refs.errorMessageTextColor,
3175
- [vars$s.inputHorizontalPadding]: refs.horizontalPadding,
3176
- [vars$s.inputHeight]: refs.inputHeight,
3177
- [vars$s.inputBackgroundColor]: refs.backgroundColor,
3178
- [vars$s.labelRequiredIndicator]: refs.requiredIndicator,
3179
- [vars$s.inputValueTextColor]: refs.valueTextColor,
3180
- [vars$s.inputPlaceholderTextColor]: refs.placeholderTextColor,
3181
- [vars$s.inputBorderWidth]: refs.borderWidth,
3182
- [vars$s.inputBorderStyle]: refs.borderStyle,
3183
- [vars$s.inputBorderColor]: refs.borderColor,
3184
- [vars$s.inputBorderRadius]: refs.borderRadius,
3185
- [vars$s.inputOutlineWidth]: refs.outlineWidth,
3186
- [vars$s.inputOutlineStyle]: refs.outlineStyle,
3187
- [vars$s.inputOutlineColor]: refs.outlineColor,
3188
- [vars$s.inputOutlineOffset]: refs.outlineOffset,
3189
- [vars$s.revealButtonOffset]: globalRefs$g.spacing.md,
3190
- [vars$s.revealButtonSize]: refs.toggleButtonSize,
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$s
3196
+ vars: vars$t
3197
3197
  });
3198
3198
 
3199
- const componentName$y = getComponentName('number-field');
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$y,
3225
+ componentName: componentName$A,
3226
3226
  })
3227
3227
  );
3228
3228
 
3229
- const vars$r = NumberFieldClass.cssVarList;
3229
+ const vars$s = NumberFieldClass.cssVarList;
3230
3230
 
3231
3231
  const numberField = {
3232
- [vars$r.hostWidth]: refs.width,
3233
- [vars$r.hostMinWidth]: refs.minWidth,
3234
- [vars$r.hostDirection]: refs.direction,
3235
- [vars$r.fontSize]: refs.fontSize,
3236
- [vars$r.fontFamily]: refs.fontFamily,
3237
- [vars$r.labelTextColor]: refs.labelTextColor,
3238
- [vars$r.errorMessageTextColor]: refs.errorMessageTextColor,
3239
- [vars$r.inputValueTextColor]: refs.valueTextColor,
3240
- [vars$r.inputPlaceholderColor]: refs.placeholderTextColor,
3241
- [vars$r.inputBorderWidth]: refs.borderWidth,
3242
- [vars$r.inputBorderStyle]: refs.borderStyle,
3243
- [vars$r.inputBorderColor]: refs.borderColor,
3244
- [vars$r.inputBorderRadius]: refs.borderRadius,
3245
- [vars$r.inputOutlineWidth]: refs.outlineWidth,
3246
- [vars$r.inputOutlineStyle]: refs.outlineStyle,
3247
- [vars$r.inputOutlineColor]: refs.outlineColor,
3248
- [vars$r.inputOutlineOffset]: refs.outlineOffset,
3249
- [vars$r.inputBackgroundColor]: refs.backgroundColor,
3250
- [vars$r.labelRequiredIndicator]: refs.requiredIndicator,
3251
- [vars$r.inputHorizontalPadding]: refs.horizontalPadding,
3252
- [vars$r.inputHeight]: refs.inputHeight,
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$r
3258
+ vars: vars$s
3259
3259
  });
3260
3260
 
3261
- const componentName$x = getComponentName('email-field');
3261
+ const componentName$z = getComponentName('email-field');
3262
3262
 
3263
- const customMixin$6 = (superclass) =>
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$6
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$x,
3296
+ componentName: componentName$z,
3297
3297
  })
3298
3298
  );
3299
3299
 
3300
- const vars$q = EmailFieldClass.cssVarList;
3300
+ const vars$r = EmailFieldClass.cssVarList;
3301
3301
 
3302
3302
  const emailField = {
3303
- [vars$q.hostWidth]: refs.width,
3304
- [vars$q.hostMinWidth]: refs.minWidth,
3305
- [vars$q.hostDirection]: refs.direction,
3306
- [vars$q.fontSize]: refs.fontSize,
3307
- [vars$q.fontFamily]: refs.fontFamily,
3308
- [vars$q.labelTextColor]: refs.labelTextColor,
3309
- [vars$q.errorMessageTextColor]: refs.errorMessageTextColor,
3310
- [vars$q.inputValueTextColor]: refs.valueTextColor,
3311
- [vars$q.labelRequiredIndicator]: refs.requiredIndicator,
3312
- [vars$q.inputPlaceholderColor]: refs.placeholderTextColor,
3313
- [vars$q.inputBorderWidth]: refs.borderWidth,
3314
- [vars$q.inputBorderStyle]: refs.borderStyle,
3315
- [vars$q.inputBorderColor]: refs.borderColor,
3316
- [vars$q.inputBorderRadius]: refs.borderRadius,
3317
- [vars$q.inputOutlineWidth]: refs.outlineWidth,
3318
- [vars$q.inputOutlineStyle]: refs.outlineStyle,
3319
- [vars$q.inputOutlineColor]: refs.outlineColor,
3320
- [vars$q.inputOutlineOffset]: refs.outlineOffset,
3321
- [vars$q.inputBackgroundColor]: refs.backgroundColor,
3322
- [vars$q.inputHorizontalPadding]: refs.horizontalPadding,
3323
- [vars$q.inputHeight]: refs.inputHeight,
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$q
3329
+ vars: vars$r
3330
3330
  });
3331
3331
 
3332
- const componentName$w = getComponentName('text-area');
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$w,
3407
+ componentName: componentName$y,
3408
3408
  })
3409
3409
  );
3410
3410
 
3411
3411
  const globalRefs$f = getThemeRefs(globals);
3412
- const vars$p = TextAreaClass.cssVarList;
3412
+ const vars$q = TextAreaClass.cssVarList;
3413
3413
 
3414
3414
  const textArea = {
3415
- [vars$p.hostWidth]: refs.width,
3416
- [vars$p.hostMinWidth]: refs.minWidth,
3417
- [vars$p.hostDirection]: refs.direction,
3418
- [vars$p.fontSize]: refs.fontSize,
3419
- [vars$p.fontFamily]: refs.fontFamily,
3420
- [vars$p.labelTextColor]: refs.labelTextColor,
3421
- [vars$p.labelRequiredIndicator]: refs.requiredIndicator,
3422
- [vars$p.errorMessageTextColor]: refs.errorMessageTextColor,
3423
- [vars$p.inputBackgroundColor]: refs.backgroundColor,
3424
- [vars$p.inputValueTextColor]: refs.valueTextColor,
3425
- [vars$p.inputPlaceholderTextColor]: refs.placeholderTextColor,
3426
- [vars$p.inputBorderRadius]: refs.borderRadius,
3427
- [vars$p.inputBorderWidth]: refs.borderWidth,
3428
- [vars$p.inputBorderStyle]: refs.borderStyle,
3429
- [vars$p.inputBorderColor]: refs.borderColor,
3430
- [vars$p.inputOutlineWidth]: refs.outlineWidth,
3431
- [vars$p.inputOutlineStyle]: refs.outlineStyle,
3432
- [vars$p.inputOutlineColor]: refs.outlineColor,
3433
- [vars$p.inputOutlineOffset]: refs.outlineOffset,
3434
- [vars$p.inputResizeType]: 'vertical',
3435
- [vars$p.inputMinHeight]: '5em',
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$p.inputBackgroundColor]: globalRefs$f.colors.surface.light,
3438
+ [vars$q.inputBackgroundColor]: globalRefs$f.colors.surface.light,
3439
3439
  },
3440
3440
 
3441
3441
  _readonly: {
3442
- [vars$p.inputResizeType]: 'none',
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$p
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$v = getComponentName('boolean-field-internal');
3460
+ const componentName$x = getComponentName('boolean-field-internal');
3461
3461
 
3462
- createBaseInputClass({ componentName: componentName$v, baseSelector: 'div' });
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$v}
3471
+ <${componentName$x}
3472
3472
  tabindex="-1"
3473
3473
  slot="input"
3474
- ></${componentName$v}>
3474
+ ></${componentName$x}>
3475
3475
  `;
3476
3476
 
3477
3477
  this.baseElement.appendChild(template.content.cloneNode(true));
3478
- this.inputElement = this.shadowRoot.querySelector(componentName$v);
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$u = getComponentName('checkbox');
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$u,
3654
+ componentName: componentName$w,
3655
3655
  })
3656
3656
  );
3657
3657
 
3658
- const vars$o = CheckboxClass.cssVarList;
3658
+ const vars$p = CheckboxClass.cssVarList;
3659
3659
  const checkboxSize = '1.35em';
3660
3660
 
3661
3661
  const checkbox = {
3662
- [vars$o.hostWidth]: refs.width,
3663
- [vars$o.hostDirection]: refs.direction,
3664
- [vars$o.fontSize]: refs.fontSize,
3665
- [vars$o.fontFamily]: refs.fontFamily,
3666
- [vars$o.labelTextColor]: refs.labelTextColor,
3667
- [vars$o.labelRequiredIndicator]: refs.requiredIndicator,
3668
- [vars$o.labelFontWeight]: '400',
3669
- [vars$o.labelLineHeight]: checkboxSize,
3670
- [vars$o.labelSpacing]: '1em',
3671
- [vars$o.errorMessageTextColor]: refs.errorMessageTextColor,
3672
- [vars$o.inputOutlineWidth]: refs.outlineWidth,
3673
- [vars$o.inputOutlineOffset]: refs.outlineOffset,
3674
- [vars$o.inputOutlineColor]: refs.outlineColor,
3675
- [vars$o.inputOutlineStyle]: refs.outlineStyle,
3676
- [vars$o.inputBorderRadius]: refs.borderRadius,
3677
- [vars$o.inputBorderColor]: refs.borderColor,
3678
- [vars$o.inputBorderWidth]: refs.borderWidth,
3679
- [vars$o.inputBorderStyle]: refs.borderStyle,
3680
- [vars$o.inputBackgroundColor]: refs.backgroundColor,
3681
- [vars$o.inputSize]: checkboxSize,
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$o.inputValueTextColor]: refs.valueTextColor,
3684
+ [vars$p.inputValueTextColor]: refs.valueTextColor,
3685
3685
  },
3686
3686
 
3687
3687
  _disabled: {
3688
- [vars$o.labelTextColor]: refs.labelTextColor,
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$o
3695
+ vars: vars$p
3696
3696
  });
3697
3697
 
3698
- const componentName$t = getComponentName('switch-toggle');
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$t,
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$n = SwitchToggleClass.cssVarList;
3838
+ const vars$o = SwitchToggleClass.cssVarList;
3839
3839
 
3840
3840
  const switchToggle = {
3841
- [vars$n.hostWidth]: refs.width,
3842
- [vars$n.hostDirection]: refs.direction,
3843
- [vars$n.fontSize]: refs.fontSize,
3844
- [vars$n.fontFamily]: refs.fontFamily,
3845
-
3846
- [vars$n.inputOutlineWidth]: refs.outlineWidth,
3847
- [vars$n.inputOutlineOffset]: refs.outlineOffset,
3848
- [vars$n.inputOutlineColor]: refs.outlineColor,
3849
- [vars$n.inputOutlineStyle]: refs.outlineStyle,
3850
-
3851
- [vars$n.trackBorderStyle]: refs.borderStyle,
3852
- [vars$n.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
3853
- [vars$n.trackBorderColor]: refs.borderColor,
3854
- [vars$n.trackBackgroundColor]: 'none',
3855
- [vars$n.trackBorderRadius]: globalRefs$e.radius.md,
3856
- [vars$n.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
3857
- [vars$n.trackHeight]: checkboxHeight,
3858
-
3859
- [vars$n.knobSize]: `calc(1em - ${knobMargin})`,
3860
- [vars$n.knobRadius]: '50%',
3861
- [vars$n.knobTopOffset]: '1px',
3862
- [vars$n.knobLeftOffset]: knobMargin,
3863
- [vars$n.knobColor]: refs.valueTextColor,
3864
- [vars$n.knobTransitionDuration]: '0.3s',
3865
-
3866
- [vars$n.labelTextColor]: refs.labelTextColor,
3867
- [vars$n.labelFontWeight]: '400',
3868
- [vars$n.labelLineHeight]: '1.35em',
3869
- [vars$n.labelSpacing]: '1em',
3870
- [vars$n.labelRequiredIndicator]: refs.requiredIndicator,
3871
- [vars$n.errorMessageTextColor]: refs.errorMessageTextColor,
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$n.trackBorderColor]: refs.borderColor,
3875
- [vars$n.trackBackgroundColor]: refs.backgroundColor,
3876
- [vars$n.knobLeftOffset]: `calc(100% - var(${vars$n.knobSize}) - ${knobMargin})`,
3877
- [vars$n.knobColor]: refs.valueTextColor,
3878
- [vars$n.knobTextColor]: refs.valueTextColor,
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$n.knobColor]: globalRefs$e.colors.surface.light,
3883
- [vars$n.trackBorderColor]: globalRefs$e.colors.surface.main,
3884
- [vars$n.trackBackgroundColor]: globalRefs$e.colors.surface.main,
3885
- [vars$n.labelTextColor]: refs.labelTextColor,
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$n.knobColor]: globalRefs$e.colors.surface.light,
3888
- [vars$n.trackBackgroundColor]: globalRefs$e.colors.surface.main,
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$n.trackBorderColor]: globalRefs$e.colors.error.main,
3894
- [vars$n.knobColor]: globalRefs$e.colors.error.main,
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$n
3901
+ vars: vars$o
3902
3902
  });
3903
3903
 
3904
- const componentName$s = getComponentName('container');
3904
+ const componentName$u = getComponentName('container');
3905
3905
 
3906
- class RawContainer extends createBaseClass({ componentName: componentName$s, baseSelector: 'slot' }) {
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$s
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$m = {
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$m
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$r = getComponentName('logo');
4126
+ const componentName$t = getComponentName('logo');
4127
4127
 
4128
4128
  const LogoClass = createCssVarImageClass({
4129
- componentName: componentName$r,
4129
+ componentName: componentName$t,
4130
4130
  varName: 'url',
4131
4131
  fallbackVarName: 'fallbackUrl',
4132
4132
  });
4133
4133
 
4134
- const vars$l = LogoClass.cssVarList;
4134
+ const vars$m = LogoClass.cssVarList;
4135
4135
 
4136
4136
  const logo$1 = {
4137
- [vars$l.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
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$l
4143
+ vars: vars$m
4144
4144
  });
4145
4145
 
4146
- const componentName$q = getComponentName('totp-image');
4146
+ const componentName$s = getComponentName('totp-image');
4147
4147
 
4148
4148
  const TotpImageClass = createCssVarImageClass({
4149
- componentName: componentName$q,
4149
+ componentName: componentName$s,
4150
4150
  varName: 'url',
4151
4151
  fallbackVarName: 'fallbackUrl',
4152
4152
  });
4153
4153
 
4154
- const vars$k = TotpImageClass.cssVarList;
4154
+ const vars$l = TotpImageClass.cssVarList;
4155
4155
 
4156
4156
  const logo = {
4157
- [vars$k.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
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$k
4163
+ vars: vars$l
4164
4164
  });
4165
4165
 
4166
4166
  // eslint-disable-next-line max-classes-per-file
4167
4167
 
4168
- const componentName$p = getComponentName('text');
4168
+ const componentName$r = getComponentName('text');
4169
4169
 
4170
- class RawText extends createBaseClass({ componentName: componentName$p, baseSelector: ':host > slot' }) {
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$j = TextClass.cssVarList;
4231
+ const vars$k = TextClass.cssVarList;
4232
4232
 
4233
4233
  const text$2 = {
4234
- [vars$j.hostDirection]: globalRefs$c.direction,
4235
- [vars$j.textLineHeight]: '1.35em',
4236
- [vars$j.textAlign]: 'left',
4237
- [vars$j.textColor]: globalRefs$c.colors.surface.dark,
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$j.fontSize]: globalRefs$c.typography.h1.size,
4241
- [vars$j.fontWeight]: globalRefs$c.typography.h1.weight,
4242
- [vars$j.fontFamily]: globalRefs$c.typography.h1.font,
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$j.fontSize]: globalRefs$c.typography.h2.size,
4246
- [vars$j.fontWeight]: globalRefs$c.typography.h2.weight,
4247
- [vars$j.fontFamily]: globalRefs$c.typography.h2.font,
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$j.fontSize]: globalRefs$c.typography.h3.size,
4251
- [vars$j.fontWeight]: globalRefs$c.typography.h3.weight,
4252
- [vars$j.fontFamily]: globalRefs$c.typography.h3.font,
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$j.fontSize]: globalRefs$c.typography.subtitle1.size,
4256
- [vars$j.fontWeight]: globalRefs$c.typography.subtitle1.weight,
4257
- [vars$j.fontFamily]: globalRefs$c.typography.subtitle1.font,
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$j.fontSize]: globalRefs$c.typography.subtitle2.size,
4261
- [vars$j.fontWeight]: globalRefs$c.typography.subtitle2.weight,
4262
- [vars$j.fontFamily]: globalRefs$c.typography.subtitle2.font,
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$j.fontSize]: globalRefs$c.typography.body1.size,
4266
- [vars$j.fontWeight]: globalRefs$c.typography.body1.weight,
4267
- [vars$j.fontFamily]: globalRefs$c.typography.body1.font,
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$j.fontSize]: globalRefs$c.typography.body2.size,
4271
- [vars$j.fontWeight]: globalRefs$c.typography.body2.weight,
4272
- [vars$j.fontFamily]: globalRefs$c.typography.body2.font,
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$j.textColor]: globalRefs$c.colors.primary.main,
4278
+ [vars$k.textColor]: globalRefs$c.colors.primary.main,
4279
4279
  },
4280
4280
  secondary: {
4281
- [vars$j.textColor]: globalRefs$c.colors.secondary.main,
4281
+ [vars$k.textColor]: globalRefs$c.colors.secondary.main,
4282
4282
  },
4283
4283
  error: {
4284
- [vars$j.textColor]: globalRefs$c.colors.error.main,
4284
+ [vars$k.textColor]: globalRefs$c.colors.error.main,
4285
4285
  },
4286
4286
  success: {
4287
- [vars$j.textColor]: globalRefs$c.colors.success.main,
4287
+ [vars$k.textColor]: globalRefs$c.colors.success.main,
4288
4288
  },
4289
4289
  },
4290
4290
 
4291
4291
  textAlign: {
4292
- right: { [vars$j.textAlign]: 'right' },
4293
- left: { [vars$j.textAlign]: 'left' },
4294
- center: { [vars$j.textAlign]: 'center' },
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$j.hostWidth]: '100%',
4298
+ [vars$k.hostWidth]: '100%',
4299
4299
  },
4300
4300
 
4301
4301
  _italic: {
4302
- [vars$j.fontStyle]: 'italic',
4302
+ [vars$k.fontStyle]: 'italic',
4303
4303
  },
4304
4304
 
4305
4305
  _uppercase: {
4306
- [vars$j.textTransform]: 'uppercase',
4306
+ [vars$k.textTransform]: 'uppercase',
4307
4307
  },
4308
4308
 
4309
4309
  _lowercase: {
4310
- [vars$j.textTransform]: 'lowercase',
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$j
4317
+ vars: vars$k
4318
4318
  });
4319
4319
 
4320
- const componentName$o = getComponentName('link');
4320
+ const componentName$q = getComponentName('link');
4321
4321
 
4322
- class RawLink extends createBaseClass({ componentName: componentName$o, baseSelector: ':host a' }) {
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$i = LinkClass.cssVarList;
4388
+ const vars$j = LinkClass.cssVarList;
4389
4389
 
4390
4390
  const link = {
4391
- [vars$i.hostDirection]: globalRefs$b.direction,
4392
- [vars$i.cursor]: 'pointer',
4391
+ [vars$j.hostDirection]: globalRefs$b.direction,
4392
+ [vars$j.cursor]: 'pointer',
4393
4393
 
4394
- [vars$i.textColor]: globalRefs$b.colors.primary.main,
4394
+ [vars$j.textColor]: globalRefs$b.colors.primary.main,
4395
4395
 
4396
4396
  textAlign: {
4397
- right: { [vars$i.textAlign]: 'right' },
4398
- left: { [vars$i.textAlign]: 'left' },
4399
- center: { [vars$i.textAlign]: 'center' },
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$i.hostWidth]: '100%',
4403
+ [vars$j.hostWidth]: '100%',
4404
4404
  },
4405
4405
 
4406
4406
  mode: {
4407
4407
  primary: {
4408
- [vars$i.textColor]: globalRefs$b.colors.primary.main,
4408
+ [vars$j.textColor]: globalRefs$b.colors.primary.main,
4409
4409
  },
4410
4410
  secondary: {
4411
- [vars$i.textColor]: globalRefs$b.colors.secondary.main,
4411
+ [vars$j.textColor]: globalRefs$b.colors.secondary.main,
4412
4412
  },
4413
4413
  error: {
4414
- [vars$i.textColor]: globalRefs$b.colors.error.main,
4414
+ [vars$j.textColor]: globalRefs$b.colors.error.main,
4415
4415
  },
4416
4416
  success: {
4417
- [vars$i.textColor]: globalRefs$b.colors.success.main,
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$i
4425
+ vars: vars$j
4426
4426
  });
4427
4427
 
4428
- const componentName$n = getComponentName('divider');
4429
- class RawDivider extends createBaseClass({ componentName: componentName$n, baseSelector: ':host > div' }) {
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$n
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$h = {
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$h
4575
+ vars: vars$i
4576
4576
  });
4577
4577
 
4578
4578
  /* eslint-disable no-param-reassign */
4579
4579
 
4580
- const componentName$m = getComponentName('passcode-internal');
4580
+ const componentName$o = getComponentName('passcode-internal');
4581
4581
 
4582
- createBaseInputClass({ componentName: componentName$m, baseSelector: 'div' });
4582
+ createBaseInputClass({ componentName: componentName$o, baseSelector: 'div' });
4583
4583
 
4584
- const componentName$l = getComponentName('loader-radial');
4584
+ const componentName$n = getComponentName('loader-radial');
4585
4585
 
4586
- class RawLoaderRadial extends createBaseClass({ componentName: componentName$l, baseSelector: ':host > div' }) {
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$k = getComponentName('passcode');
4630
+ const componentName$m = getComponentName('passcode');
4631
4631
 
4632
4632
  const observedAttributes$3 = ['digits'];
4633
4633
 
4634
- const customMixin$5 = (superclass) =>
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$m}
4649
+ <${componentName$o}
4650
4650
  bordered="true"
4651
4651
  name="code"
4652
4652
  tabindex="-1"
4653
4653
  slot="input"
4654
- ><slot></slot></${componentName$m}>
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$m);
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$5
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$k,
4806
+ componentName: componentName$m,
4807
4807
  })
4808
4808
  );
4809
4809
 
4810
- const vars$g = PasscodeClass.cssVarList;
4810
+ const vars$h = PasscodeClass.cssVarList;
4811
4811
 
4812
4812
  const passcode = {
4813
- [vars$g.hostDirection]: refs.direction,
4814
- [vars$g.fontFamily]: refs.fontFamily,
4815
- [vars$g.fontSize]: refs.fontSize,
4816
- [vars$g.labelTextColor]: refs.labelTextColor,
4817
- [vars$g.labelRequiredIndicator]: refs.requiredIndicator,
4818
- [vars$g.errorMessageTextColor]: refs.errorMessageTextColor,
4819
- [vars$g.digitValueTextColor]: refs.valueTextColor,
4820
- [vars$g.digitPadding]: '0',
4821
- [vars$g.digitTextAlign]: 'center',
4822
- [vars$g.digitSpacing]: '4px',
4823
- [vars$g.hostWidth]: refs.width,
4824
- [vars$g.digitOutlineColor]: 'transparent',
4825
- [vars$g.digitOutlineWidth]: refs.outlineWidth,
4826
- [vars$g.focusedDigitFieldOutlineColor]: refs.outlineColor,
4827
- [vars$g.digitSize]: refs.inputHeight,
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$g.spinnerSize]: '15px' },
4831
- sm: { [vars$g.spinnerSize]: '20px' },
4832
- md: { [vars$g.spinnerSize]: '20px' },
4833
- lg: { [vars$g.spinnerSize]: '20px' },
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$g.digitCaretTextColor]: 'transparent',
4837
+ [vars$h.digitCaretTextColor]: 'transparent',
4838
4838
  },
4839
4839
 
4840
4840
  _loading: {
4841
- [vars$g.overlayOpacity]: refs.overlayOpacity,
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$g
4848
+ vars: vars$h
4849
4849
  });
4850
4850
 
4851
- const componentName$j = getComponentName('loader-linear');
4851
+ const componentName$l = getComponentName('loader-linear');
4852
4852
 
4853
- class RawLoaderLinear extends createBaseClass({ componentName: componentName$j, baseSelector: ':host > div' }) {
4853
+ class RawLoaderLinear extends createBaseClass({ componentName: componentName$l, baseSelector: ':host > div' }) {
4854
4854
  static get componentName() {
4855
- return componentName$j;
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$f = LoaderLinearClass.cssVarList;
4917
+ const vars$g = LoaderLinearClass.cssVarList;
4918
4918
 
4919
4919
  const loaderLinear = {
4920
- [vars$f.hostDisplay]: 'inline-block',
4921
- [vars$f.hostWidth]: '100%',
4920
+ [vars$g.hostDisplay]: 'inline-block',
4921
+ [vars$g.hostWidth]: '100%',
4922
4922
 
4923
- [vars$f.barColor]: globalRefs$9.colors.surface.contrast,
4924
- [vars$f.barWidth]: '20%',
4923
+ [vars$g.barColor]: globalRefs$9.colors.surface.contrast,
4924
+ [vars$g.barWidth]: '20%',
4925
4925
 
4926
- [vars$f.barBackgroundColor]: globalRefs$9.colors.surface.main,
4927
- [vars$f.barBorderRadius]: '4px',
4926
+ [vars$g.barBackgroundColor]: globalRefs$9.colors.surface.main,
4927
+ [vars$g.barBorderRadius]: '4px',
4928
4928
 
4929
- [vars$f.animationDuration]: '2s',
4930
- [vars$f.animationTimingFunction]: 'linear',
4931
- [vars$f.animationIterationCount]: 'infinite',
4932
- [vars$f.verticalPadding]: '0.25em',
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$f.barHeight]: '2px' },
4936
- sm: { [vars$f.barHeight]: '4px' },
4937
- md: { [vars$f.barHeight]: '6px' },
4938
- lg: { [vars$f.barHeight]: '8px' },
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$f.barColor]: globalRefs$9.colors.primary.main,
4943
+ [vars$g.barColor]: globalRefs$9.colors.primary.main,
4944
4944
  },
4945
4945
  secondary: {
4946
- [vars$f.barColor]: globalRefs$9.colors.secondary.main,
4946
+ [vars$g.barColor]: globalRefs$9.colors.secondary.main,
4947
4947
  },
4948
4948
  },
4949
4949
 
4950
4950
  _hidden: {
4951
- [vars$f.hostDisplay]: 'none',
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$f
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$l
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$e = {
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$e
5013
+ vars: vars$f
5014
5014
  });
5015
5015
 
5016
- const componentName$i = getComponentName('combo-box');
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$i,
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$d = ComboBoxClass.cssVarList;
5386
+ const vars$e = ComboBoxClass.cssVarList;
5387
5387
 
5388
5388
  const comboBox = {
5389
- [vars$d.hostWidth]: refs.width,
5390
- [vars$d.hostDirection]: refs.direction,
5391
- [vars$d.fontSize]: refs.fontSize,
5392
- [vars$d.fontFamily]: refs.fontFamily,
5393
- [vars$d.labelTextColor]: refs.labelTextColor,
5394
- [vars$d.errorMessageTextColor]: refs.errorMessageTextColor,
5395
- [vars$d.inputBorderColor]: refs.borderColor,
5396
- [vars$d.inputBorderWidth]: refs.borderWidth,
5397
- [vars$d.inputBorderStyle]: refs.borderStyle,
5398
- [vars$d.inputBorderRadius]: refs.borderRadius,
5399
- [vars$d.inputOutlineColor]: refs.outlineColor,
5400
- [vars$d.inputOutlineOffset]: refs.outlineOffset,
5401
- [vars$d.inputOutlineWidth]: refs.outlineWidth,
5402
- [vars$d.inputOutlineStyle]: refs.outlineStyle,
5403
- [vars$d.labelRequiredIndicator]: refs.requiredIndicator,
5404
- [vars$d.inputValueTextColor]: refs.valueTextColor,
5405
- [vars$d.inputPlaceholderTextColor]: refs.placeholderTextColor,
5406
- [vars$d.inputBackgroundColor]: refs.backgroundColor,
5407
- [vars$d.inputHorizontalPadding]: refs.horizontalPadding,
5408
- [vars$d.inputHeight]: refs.inputHeight,
5409
- [vars$d.inputDropdownButtonColor]: globalRefs$7.colors.surface.contrast,
5410
- [vars$d.inputDropdownButtonCursor]: 'pointer',
5411
- [vars$d.inputDropdownButtonSize]: refs.toggleButtonSize,
5412
- [vars$d.inputDropdownButtonOffset]: globalRefs$7.spacing.xs,
5413
- [vars$d.overlayItemPaddingInlineStart]: globalRefs$7.spacing.xs,
5414
- [vars$d.overlayItemPaddingInlineEnd]: globalRefs$7.spacing.lg,
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$d.inputDropdownButtonCursor]: 'default',
5417
+ [vars$e.inputDropdownButtonCursor]: 'default',
5418
5418
  },
5419
5419
 
5420
5420
  // Overlay theme exposed via the component:
5421
- [vars$d.overlayFontSize]: refs.fontSize,
5422
- [vars$d.overlayFontFamily]: refs.fontFamily,
5423
- [vars$d.overlayCursor]: 'pointer',
5424
- [vars$d.overlayItemBoxShadow]: 'none',
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$d.overlay.minHeight]: '400px',
5428
- [vars$d.overlay.margin]: '0',
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$d
5435
+ vars: vars$e
5436
5436
  });
5437
5437
 
5438
5438
  const observedAttributes$2 = ['src', 'alt'];
5439
5439
 
5440
- const componentName$h = getComponentName('image');
5440
+ const componentName$j = getComponentName('image');
5441
5441
 
5442
- const BaseClass$1 = createBaseClass({ componentName: componentName$h, baseSelector: ':host > img' });
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$c = ImageClass.cssVarList;
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$c
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$g = getComponentName('phone-field-internal');
6705
+ const componentName$i = getComponentName('phone-field-internal');
6706
6706
 
6707
- createBaseInputClass({ componentName: componentName$g, baseSelector: 'div' });
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$f = getComponentName('phone-field');
6712
+ const componentName$h = getComponentName('phone-field');
6713
6713
 
6714
- const customMixin$4 = (superclass) =>
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$g}
6726
+ <${componentName$i}
6727
6727
  tabindex="-1"
6728
6728
  slot="input"
6729
- ></${componentName$g}>
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$g);
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$4
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$f,
6930
+ componentName: componentName$h,
6931
6931
  })
6932
6932
  );
6933
6933
 
6934
- const vars$b = PhoneFieldClass.cssVarList;
6934
+ const vars$c = PhoneFieldClass.cssVarList;
6935
6935
 
6936
6936
  const phoneField = {
6937
- [vars$b.hostWidth]: refs.width,
6938
- [vars$b.hostDirection]: refs.direction,
6939
- [vars$b.fontSize]: refs.fontSize,
6940
- [vars$b.fontFamily]: refs.fontFamily,
6941
- [vars$b.labelTextColor]: refs.labelTextColor,
6942
- [vars$b.labelRequiredIndicator]: refs.requiredIndicator,
6943
- [vars$b.errorMessageTextColor]: refs.errorMessageTextColor,
6944
- [vars$b.inputValueTextColor]: refs.valueTextColor,
6945
- [vars$b.inputPlaceholderTextColor]: refs.placeholderTextColor,
6946
- [vars$b.inputBorderStyle]: refs.borderStyle,
6947
- [vars$b.inputBorderWidth]: refs.borderWidth,
6948
- [vars$b.inputBorderColor]: refs.borderColor,
6949
- [vars$b.inputBorderRadius]: refs.borderRadius,
6950
- [vars$b.inputOutlineStyle]: refs.outlineStyle,
6951
- [vars$b.inputOutlineWidth]: refs.outlineWidth,
6952
- [vars$b.inputOutlineColor]: refs.outlineColor,
6953
- [vars$b.inputOutlineOffset]: refs.outlineOffset,
6954
- [vars$b.phoneInputWidth]: refs.minWidth,
6955
- [vars$b.countryCodeInputWidth]: '5em',
6956
- [vars$b.countryCodeDropdownWidth]: '20em',
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$b
6966
+ vars: vars$c
6967
6967
  });
6968
6968
 
6969
- const componentName$e = getComponentName('phone-field-internal-input-box');
6969
+ const componentName$g = getComponentName('phone-field-internal-input-box');
6970
6970
 
6971
- createBaseInputClass({ componentName: componentName$e, baseSelector: 'div' });
6971
+ createBaseInputClass({ componentName: componentName$g, baseSelector: 'div' });
6972
6972
 
6973
6973
  const textVars = TextFieldClass.cssVarList;
6974
6974
 
6975
- const componentName$d = getComponentName('phone-input-box-field');
6975
+ const componentName$f = getComponentName('phone-input-box-field');
6976
6976
 
6977
- const customMixin$3 = (superclass) =>
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$e}
6989
+ <${componentName$g}
6990
6990
  tabindex="-1"
6991
6991
  slot="input"
6992
- ></${componentName$e}>
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$e);
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$3
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$d,
7130
+ componentName: componentName$f,
7131
7131
  })
7132
7132
  );
7133
7133
 
7134
- const vars$a = PhoneFieldInputBoxClass.cssVarList;
7134
+ const vars$b = PhoneFieldInputBoxClass.cssVarList;
7135
7135
 
7136
7136
  const phoneInputBoxField = {
7137
- [vars$a.hostWidth]: '16em',
7138
- [vars$a.hostMinWidth]: refs.minWidth,
7139
- [vars$a.hostDirection]: refs.direction,
7140
- [vars$a.fontSize]: refs.fontSize,
7141
- [vars$a.fontFamily]: refs.fontFamily,
7142
- [vars$a.labelTextColor]: refs.labelTextColor,
7143
- [vars$a.labelRequiredIndicator]: refs.requiredIndicator,
7144
- [vars$a.errorMessageTextColor]: refs.errorMessageTextColor,
7145
- [vars$a.inputValueTextColor]: refs.valueTextColor,
7146
- [vars$a.inputPlaceholderTextColor]: refs.placeholderTextColor,
7147
- [vars$a.inputBorderStyle]: refs.borderStyle,
7148
- [vars$a.inputBorderWidth]: refs.borderWidth,
7149
- [vars$a.inputBorderColor]: refs.borderColor,
7150
- [vars$a.inputBorderRadius]: refs.borderRadius,
7151
- [vars$a.inputOutlineStyle]: refs.outlineStyle,
7152
- [vars$a.inputOutlineWidth]: refs.outlineWidth,
7153
- [vars$a.inputOutlineColor]: refs.outlineColor,
7154
- [vars$a.inputOutlineOffset]: refs.outlineOffset,
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$a.hostWidth]: refs.width,
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$a
7163
+ vars: vars$b
7164
7164
  });
7165
7165
 
7166
- const componentName$c = getComponentName('new-password-internal');
7166
+ const componentName$e = getComponentName('new-password-internal');
7167
7167
 
7168
- const componentName$b = getComponentName('new-password');
7168
+ const componentName$d = getComponentName('new-password');
7169
7169
 
7170
- const customMixin$2 = (superclass) =>
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$c}
7178
+ <${componentName$e}
7179
7179
  name="new-password"
7180
7180
  tabindex="-1"
7181
7181
  slot="input"
7182
- ></${componentName$c}>
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$c);
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$2
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$b,
7294
+ componentName: componentName$d,
7295
7295
  })
7296
7296
  );
7297
7297
 
7298
- const vars$9 = NewPasswordClass.cssVarList;
7298
+ const vars$a = NewPasswordClass.cssVarList;
7299
7299
 
7300
7300
  const newPassword = {
7301
- [vars$9.hostWidth]: refs.width,
7302
- [vars$9.hostMinWidth]: refs.minWidth,
7303
- [vars$9.hostDirection]: refs.direction,
7304
- [vars$9.fontSize]: refs.fontSize,
7305
- [vars$9.fontFamily]: refs.fontFamily,
7306
- [vars$9.spaceBetweenInputs]: '1em',
7307
- [vars$9.errorMessageTextColor]: refs.errorMessageTextColor,
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$9.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
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$9
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$a = getComponentName('upload-file');
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$a, baseSelector: ':host > div' });
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$8 = UploadFileClass.cssVarList;
7565
+ const vars$9 = UploadFileClass.cssVarList;
7566
7566
 
7567
7567
  const uploadFile = {
7568
- [vars$8.hostDirection]: refs.direction,
7569
- [vars$8.labelTextColor]: refs.labelTextColor,
7570
- [vars$8.fontFamily]: refs.fontFamily,
7568
+ [vars$9.hostDirection]: refs.direction,
7569
+ [vars$9.labelTextColor]: refs.labelTextColor,
7570
+ [vars$9.fontFamily]: refs.fontFamily,
7571
7571
 
7572
- [vars$8.iconSize]: '2em',
7572
+ [vars$9.iconSize]: '2em',
7573
7573
 
7574
- [vars$8.hostPadding]: '0.75em',
7575
- [vars$8.gap]: '0.5em',
7574
+ [vars$9.hostPadding]: '0.75em',
7575
+ [vars$9.gap]: '0.5em',
7576
7576
 
7577
- [vars$8.fontSize]: '16px',
7578
- [vars$8.titleFontWeight]: '500',
7579
- [vars$8.lineHeight]: '1em',
7577
+ [vars$9.fontSize]: '16px',
7578
+ [vars$9.titleFontWeight]: '500',
7579
+ [vars$9.lineHeight]: '1em',
7580
7580
 
7581
- [vars$8.borderWidth]: refs.borderWidth,
7582
- [vars$8.borderColor]: refs.borderColor,
7583
- [vars$8.borderRadius]: refs.borderRadius,
7584
- [vars$8.borderStyle]: 'dashed',
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$8.requiredIndicator]: refs.requiredIndicator,
7587
+ [vars$9.requiredIndicator]: refs.requiredIndicator,
7588
7588
  },
7589
7589
 
7590
7590
  size: {
7591
7591
  xs: {
7592
- [vars$8.hostHeight]: '196px',
7593
- [vars$8.hostWidth]: '200px',
7594
- [vars$8.titleFontSize]: '0.875em',
7595
- [vars$8.descriptionFontSize]: '0.875em',
7596
- [vars$8.lineHeight]: '1.25em',
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$8.hostHeight]: '216px',
7600
- [vars$8.hostWidth]: '230px',
7601
- [vars$8.titleFontSize]: '1em',
7602
- [vars$8.descriptionFontSize]: '0.875em',
7603
- [vars$8.lineHeight]: '1.25em',
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$8.hostHeight]: '256px',
7607
- [vars$8.hostWidth]: '312px',
7608
- [vars$8.titleFontSize]: '1.125em',
7609
- [vars$8.descriptionFontSize]: '1em',
7610
- [vars$8.lineHeight]: '1.5em',
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$8.hostHeight]: '280px',
7614
- [vars$8.hostWidth]: '336px',
7615
- [vars$8.titleFontSize]: '1.125em',
7616
- [vars$8.descriptionFontSize]: '1.125em',
7617
- [vars$8.lineHeight]: '1.75em',
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$8.hostWidth]: refs.width,
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$8
7629
+ vars: vars$9
7630
7630
  });
7631
7631
 
7632
- const componentName$9 = getComponentName('button-selection-group-item');
7632
+ const componentName$b = getComponentName('button-selection-group-item');
7633
7633
 
7634
7634
  class RawSelectItem extends createBaseClass({
7635
- componentName: componentName$9,
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$7 = ButtonSelectionGroupItemClass.cssVarList;
7735
+ const vars$8 = ButtonSelectionGroupItemClass.cssVarList;
7736
7736
 
7737
7737
  const buttonSelectionGroupItem = {
7738
- [vars$7.hostDirection]: 'inherit',
7739
- [vars$7.backgroundColor]: globalRefs$6.colors.surface.light,
7740
- [vars$7.labelTextColor]: globalRefs$6.colors.surface.contrast,
7741
- [vars$7.borderColor]: globalRefs$6.colors.surface.main,
7742
- [vars$7.borderStyle]: 'solid',
7743
- [vars$7.borderRadius]: globalRefs$6.radius.sm,
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$7.backgroundColor]: '#f4f5f5', // can we take it from the palette?
7746
+ [vars$8.backgroundColor]: '#f4f5f5', // can we take it from the palette?
7747
7747
  },
7748
7748
 
7749
7749
  _selected: {
7750
- [vars$7.borderColor]: globalRefs$6.colors.surface.contrast,
7751
- [vars$7.backgroundColor]: globalRefs$6.colors.surface.contrast,
7752
- [vars$7.labelTextColor]: globalRefs$6.colors.surface.light,
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$7
7759
+ vars: vars$8
7760
7760
  });
7761
7761
 
7762
- const componentName$8 = getComponentName('button-selection-group-internal');
7762
+ const createBaseButtonSelectionGroupInternalClass = (componentName) => {
7763
+ class BaseButtonSelectionGroupInternalClass extends createBaseInputClass({
7764
+ componentName,
7765
+ baseSelector: 'slot',
7766
+ }) {
7767
+ constructor() {
7768
+ super();
7763
7769
 
7764
- class ButtonSelectionGroupInternalClass extends createBaseInputClass({
7765
- componentName: componentName$8,
7766
- baseSelector: 'slot',
7767
- }) {
7768
- constructor() {
7769
- super();
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
- this.innerHTML = `
7772
- <style>
7773
- slot {
7774
- box-sizing: border-box;
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
- #dispatchChange = createDispatchEvent.bind(this, 'change');
7789
+ get isReadonly() {
7790
+ return this.getAttribute('readonly') === 'true';
7791
+ }
7785
7792
 
7786
- get items() {
7787
- return this.querySelector('slot').assignedElements();
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
- get isReadonly() {
7791
- return this.getAttribute('readonly') === 'true';
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.#dispatchChange();
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
- onSizeChange() {
7852
- this.items.forEach((item) => {
7853
- item.setAttribute('size', this.size);
7854
- });
7907
+ get value() {
7908
+ return this.getSelectedNode()?.value || '';
7855
7909
  }
7856
7910
 
7857
- onReadOnlyChange() {
7858
- this.querySelector('slot').toggleAttribute('inert', this.isReadonly);
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
- // we are adding listeners before calling to super because it's stopping the events
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 componentName$7 = getComponentName('button-selection-group');
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: 'descope-button-selection-group-internal slot' },
8021
+ internalWrapper: { selector: () => ':host [part="internal-component"] slot' },
8012
8022
  errorMessage: { selector: '::part(error-message)' },
8013
8023
  };
8014
8024
 
8015
- const ButtonSelectionGroupClass = compose(
8016
- createStyleMixin({
8017
- mappings: {
8018
- hostWidth: { ...host$2, property: 'width' },
8019
- hostDirection: { ...host$2, property: 'direction' },
8020
- fontFamily: host$2,
8021
- labelTextColor: [
8022
- { ...label$1, property: 'color' },
8023
- { ...requiredIndicator$1, property: 'color' },
8024
- ],
8025
- labelRequiredIndicator: { ...requiredIndicator$1, property: 'content' },
8026
- errorMessageTextColor: { ...errorMessage$1, property: 'color' },
8027
- itemsSpacing: { ...internalWrapper, property: 'gap' },
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
- descope-button-selection-group-internal {
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$7,
8139
+ componentName: componentName$9,
8094
8140
  })
8095
8141
  );
8096
8142
 
8097
8143
  const globalRefs$5 = getThemeRefs(globals);
8098
- const vars$6 = ButtonSelectionGroupClass.cssVarList;
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
- [vars$6.hostDirection]: refs.direction,
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$w, components: 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;