@aurodesignsystem-dev/auro-formkit 0.0.0-pr784.0 → 0.0.0-pr785.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/components/checkbox/demo/api.html +10 -16
  2. package/components/checkbox/demo/api.min.js +7 -18
  3. package/components/checkbox/demo/index.html +10 -16
  4. package/components/checkbox/demo/index.min.js +7 -18
  5. package/components/checkbox/demo/readme.html +9 -16
  6. package/components/checkbox/dist/index.js +7 -18
  7. package/components/checkbox/dist/registered.js +7 -18
  8. package/components/combobox/demo/api.html +10 -16
  9. package/components/combobox/demo/api.md +0 -1
  10. package/components/combobox/demo/api.min.js +20 -58
  11. package/components/combobox/demo/index.html +10 -16
  12. package/components/combobox/demo/index.min.js +20 -58
  13. package/components/combobox/demo/readme.html +9 -16
  14. package/components/combobox/dist/auro-combobox.d.ts +0 -5
  15. package/components/combobox/dist/index.js +20 -58
  16. package/components/combobox/dist/registered.js +20 -58
  17. package/components/counter/demo/api.html +10 -16
  18. package/components/counter/demo/api.min.js +8 -19
  19. package/components/counter/demo/index.html +10 -16
  20. package/components/counter/demo/index.min.js +8 -19
  21. package/components/counter/demo/readme.html +9 -16
  22. package/components/counter/dist/index.js +8 -19
  23. package/components/counter/dist/registered.js +8 -19
  24. package/components/datepicker/demo/api.html +10 -16
  25. package/components/datepicker/demo/api.md +1 -2
  26. package/components/datepicker/demo/api.min.js +68 -58
  27. package/components/datepicker/demo/index.html +10 -16
  28. package/components/datepicker/demo/index.min.js +68 -58
  29. package/components/datepicker/demo/readme.html +9 -16
  30. package/components/datepicker/dist/auro-datepicker.d.ts +18 -6
  31. package/components/datepicker/dist/index.js +68 -58
  32. package/components/datepicker/dist/registered.js +68 -58
  33. package/components/dropdown/demo/api.html +10 -16
  34. package/components/dropdown/demo/api.min.js +3 -3
  35. package/components/dropdown/demo/index.html +10 -16
  36. package/components/dropdown/demo/index.min.js +3 -3
  37. package/components/dropdown/demo/readme.html +9 -16
  38. package/components/dropdown/dist/index.js +3 -3
  39. package/components/dropdown/dist/registered.js +3 -3
  40. package/components/form/demo/api.html +9 -16
  41. package/components/form/demo/autocomplete.html +3 -19
  42. package/components/form/demo/index.html +9 -16
  43. package/components/form/demo/readme.html +9 -16
  44. package/components/form/demo/working.html +13 -19
  45. package/components/input/demo/api.html +10 -16
  46. package/components/input/demo/api.md +1 -2
  47. package/components/input/demo/api.min.js +9 -27
  48. package/components/input/demo/index.html +10 -16
  49. package/components/input/demo/index.min.js +9 -27
  50. package/components/input/demo/readme.html +9 -16
  51. package/components/input/dist/base-input.d.ts +1 -5
  52. package/components/input/dist/index.js +9 -27
  53. package/components/input/dist/registered.js +9 -27
  54. package/components/menu/demo/api.html +32 -16
  55. package/components/menu/demo/index.html +10 -16
  56. package/components/menu/demo/readme.html +9 -16
  57. package/components/radio/demo/api.html +10 -16
  58. package/components/radio/demo/api.min.js +5 -16
  59. package/components/radio/demo/index.html +10 -16
  60. package/components/radio/demo/index.min.js +5 -16
  61. package/components/radio/demo/readme.html +9 -16
  62. package/components/radio/dist/index.js +5 -16
  63. package/components/radio/dist/registered.js +5 -16
  64. package/components/select/demo/api.html +10 -16
  65. package/components/select/demo/api.min.js +8 -19
  66. package/components/select/demo/index.html +11 -16
  67. package/components/select/demo/index.min.js +8 -19
  68. package/components/select/demo/readme.html +9 -16
  69. package/components/select/dist/index.js +8 -19
  70. package/components/select/dist/registered.js +8 -19
  71. package/package.json +3 -4
@@ -954,24 +954,13 @@ let AuroFormValidation$1 = class AuroFormValidation {
954
954
  this.getInputElements(elem);
955
955
  this.getAuroInputs(elem);
956
956
 
957
- // Check if validation should run
957
+ // Validate only if noValidate is not true and the input does not have focus
958
958
  let validationShouldRun =
959
-
960
- // If the validation was forced
961
959
  force ||
962
-
963
- // If the validation should run on input
964
- elem.validateOnInput ||
965
-
966
- // State-based checks
967
- (
968
- // Element is not currently focused
969
- !elem.contains(document.activeElement) && // native input is not focused directly
970
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
971
-
972
- // And element has been touched or is untouched but has a value
973
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
974
- );
960
+ (!elem.contains(document.activeElement) &&
961
+ (elem.touched ||
962
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
963
+ elem.validateOnInput;
975
964
 
976
965
  if (elem.hasAttribute('error')) {
977
966
  elem.validity = 'customError';
@@ -2799,7 +2788,7 @@ class AuroFloatingUI {
2799
2788
  */
2800
2789
  mirrorSize() {
2801
2790
  // mirror the boxsize from bibSizer
2802
- if (this.element.bibSizer) {
2791
+ if (this.element.bibSizer && this.element.matchWidth) {
2803
2792
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2804
2793
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2805
2794
  if (sizerStyle.width !== '0px') {
@@ -3011,7 +3000,7 @@ class AuroFloatingUI {
3011
3000
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
3012
3001
  return;
3013
3002
  }
3014
-
3003
+
3015
3004
  // if fullscreen bib is in fullscreen mode, do not close
3016
3005
  if (this.element.bib.hasAttribute('isfullscreen')) {
3017
3006
  return;
@@ -3199,7 +3188,7 @@ class AuroFloatingUI {
3199
3188
 
3200
3189
  event.preventDefault();
3201
3190
  this.handleClick();
3202
- }
3191
+ }
3203
3192
  break;
3204
3193
  case 'mouseenter':
3205
3194
  if (this.element.hoverToggle) {
@@ -10201,24 +10190,13 @@ class AuroFormValidation {
10201
10190
  this.getInputElements(elem);
10202
10191
  this.getAuroInputs(elem);
10203
10192
 
10204
- // Check if validation should run
10193
+ // Validate only if noValidate is not true and the input does not have focus
10205
10194
  let validationShouldRun =
10206
-
10207
- // If the validation was forced
10208
10195
  force ||
10209
-
10210
- // If the validation should run on input
10211
- elem.validateOnInput ||
10212
-
10213
- // State-based checks
10214
- (
10215
- // Element is not currently focused
10216
- !elem.contains(document.activeElement) && // native input is not focused directly
10217
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
10218
-
10219
- // And element has been touched or is untouched but has a value
10220
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
10221
- );
10196
+ (!elem.contains(document.activeElement) &&
10197
+ (elem.touched ||
10198
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
10199
+ elem.validateOnInput;
10222
10200
 
10223
10201
  if (elem.hasAttribute('error')) {
10224
10202
  elem.validity = 'customError';
@@ -11042,9 +11020,9 @@ class BaseInput extends AuroElement$2$1 {
11042
11020
  if (!this.shadowRoot.contains(this.getActiveElement())) {
11043
11021
  this.validation.validate(this);
11044
11022
  }
11045
- }
11046
11023
 
11047
- this.notifyValueChanged();
11024
+ this.notifyValueChanged();
11025
+ }
11048
11026
  }
11049
11027
 
11050
11028
  if (changedProperties.has('error')) {
@@ -11169,9 +11147,9 @@ class BaseInput extends AuroElement$2$1 {
11169
11147
  this.inputElement.value = "";
11170
11148
  this.value = "";
11171
11149
  this.labelElement.classList.remove('inputElement-label--sticky');
11172
- this.notifyValueChanged();
11173
11150
  this.focus();
11174
11151
  this.validation.validate(this);
11152
+ this.notifyValueChanged();
11175
11153
  }
11176
11154
 
11177
11155
  /**
@@ -11266,20 +11244,13 @@ class BaseInput extends AuroElement$2$1 {
11266
11244
  }
11267
11245
 
11268
11246
  /**
11269
- * Resets component to initial state, including resetting the touched state and validity.
11247
+ * Resets component to initial state.
11270
11248
  * @returns {void}
11271
11249
  */
11272
11250
  reset() {
11273
11251
  this.validation.reset(this);
11274
11252
  }
11275
11253
 
11276
- /**
11277
- * Clears the input value
11278
- */
11279
- clear() {
11280
- this.value = undefined;
11281
- }
11282
-
11283
11254
  /**
11284
11255
  * Sets configuration data used elsewhere based on the `type` attribute.
11285
11256
  * @private
@@ -16623,7 +16594,7 @@ class AuroCombobox extends AuroElement$1 {
16623
16594
  });
16624
16595
 
16625
16596
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
16626
- this.clear();
16597
+ this.reset();
16627
16598
  });
16628
16599
  }
16629
16600
 
@@ -16643,7 +16614,7 @@ class AuroCombobox extends AuroElement$1 {
16643
16614
  });
16644
16615
 
16645
16616
  /**
16646
- * Validate every time we remove focus from the combo box.
16617
+ * Validate every time we remove focus from the datepicker.
16647
16618
  */
16648
16619
  this.addEventListener('focusout', () => {
16649
16620
  if (document.activeElement !== this) {
@@ -16848,16 +16819,7 @@ class AuroCombobox extends AuroElement$1 {
16848
16819
  */
16849
16820
  reset() {
16850
16821
  this.input.reset();
16851
- this.menu.value = undefined;
16852
16822
  this.validation.reset(this);
16853
- }
16854
-
16855
- /**
16856
- * Clears the current value of the combobox.
16857
- * @returns {void}
16858
- */
16859
- clear() {
16860
- this.input.clear();
16861
16823
  this.menu.value = undefined;
16862
16824
  }
16863
16825
 
@@ -16883,7 +16845,7 @@ class AuroCombobox extends AuroElement$1 {
16883
16845
  this.hideBib();
16884
16846
  }
16885
16847
  } else {
16886
- this.clear();
16848
+ this.reset();
16887
16849
  }
16888
16850
  }
16889
16851
 
@@ -16,24 +16,18 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Demo | auro-combobox</title>
20
-
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
-
24
- <!-- Legacy reference is still needed to support auro-combobox's use of legacy token values at this time -->
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
-
27
- <!-- Design Token Alaska Theme -->
28
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
30
- <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
-
33
- <!-- Demo Specific Styles -->
19
+ <title>Auro Web Component Generator | auro-combobox custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
34
27
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
29
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials-as.css" />
30
+ </head>
37
31
  <body class="auro-markdown">
38
32
  <main></main>
39
33
 
@@ -812,24 +812,13 @@ let AuroFormValidation$1 = class AuroFormValidation {
812
812
  this.getInputElements(elem);
813
813
  this.getAuroInputs(elem);
814
814
 
815
- // Check if validation should run
815
+ // Validate only if noValidate is not true and the input does not have focus
816
816
  let validationShouldRun =
817
-
818
- // If the validation was forced
819
817
  force ||
820
-
821
- // If the validation should run on input
822
- elem.validateOnInput ||
823
-
824
- // State-based checks
825
- (
826
- // Element is not currently focused
827
- !elem.contains(document.activeElement) && // native input is not focused directly
828
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
829
-
830
- // And element has been touched or is untouched but has a value
831
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
832
- );
818
+ (!elem.contains(document.activeElement) &&
819
+ (elem.touched ||
820
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
821
+ elem.validateOnInput;
833
822
 
834
823
  if (elem.hasAttribute('error')) {
835
824
  elem.validity = 'customError';
@@ -2657,7 +2646,7 @@ class AuroFloatingUI {
2657
2646
  */
2658
2647
  mirrorSize() {
2659
2648
  // mirror the boxsize from bibSizer
2660
- if (this.element.bibSizer) {
2649
+ if (this.element.bibSizer && this.element.matchWidth) {
2661
2650
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2662
2651
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2663
2652
  if (sizerStyle.width !== '0px') {
@@ -2869,7 +2858,7 @@ class AuroFloatingUI {
2869
2858
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
2870
2859
  return;
2871
2860
  }
2872
-
2861
+
2873
2862
  // if fullscreen bib is in fullscreen mode, do not close
2874
2863
  if (this.element.bib.hasAttribute('isfullscreen')) {
2875
2864
  return;
@@ -3057,7 +3046,7 @@ class AuroFloatingUI {
3057
3046
 
3058
3047
  event.preventDefault();
3059
3048
  this.handleClick();
3060
- }
3049
+ }
3061
3050
  break;
3062
3051
  case 'mouseenter':
3063
3052
  if (this.element.hoverToggle) {
@@ -10059,24 +10048,13 @@ class AuroFormValidation {
10059
10048
  this.getInputElements(elem);
10060
10049
  this.getAuroInputs(elem);
10061
10050
 
10062
- // Check if validation should run
10051
+ // Validate only if noValidate is not true and the input does not have focus
10063
10052
  let validationShouldRun =
10064
-
10065
- // If the validation was forced
10066
10053
  force ||
10067
-
10068
- // If the validation should run on input
10069
- elem.validateOnInput ||
10070
-
10071
- // State-based checks
10072
- (
10073
- // Element is not currently focused
10074
- !elem.contains(document.activeElement) && // native input is not focused directly
10075
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
10076
-
10077
- // And element has been touched or is untouched but has a value
10078
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
10079
- );
10054
+ (!elem.contains(document.activeElement) &&
10055
+ (elem.touched ||
10056
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
10057
+ elem.validateOnInput;
10080
10058
 
10081
10059
  if (elem.hasAttribute('error')) {
10082
10060
  elem.validity = 'customError';
@@ -10900,9 +10878,9 @@ class BaseInput extends AuroElement$2$1 {
10900
10878
  if (!this.shadowRoot.contains(this.getActiveElement())) {
10901
10879
  this.validation.validate(this);
10902
10880
  }
10903
- }
10904
10881
 
10905
- this.notifyValueChanged();
10882
+ this.notifyValueChanged();
10883
+ }
10906
10884
  }
10907
10885
 
10908
10886
  if (changedProperties.has('error')) {
@@ -11027,9 +11005,9 @@ class BaseInput extends AuroElement$2$1 {
11027
11005
  this.inputElement.value = "";
11028
11006
  this.value = "";
11029
11007
  this.labelElement.classList.remove('inputElement-label--sticky');
11030
- this.notifyValueChanged();
11031
11008
  this.focus();
11032
11009
  this.validation.validate(this);
11010
+ this.notifyValueChanged();
11033
11011
  }
11034
11012
 
11035
11013
  /**
@@ -11124,20 +11102,13 @@ class BaseInput extends AuroElement$2$1 {
11124
11102
  }
11125
11103
 
11126
11104
  /**
11127
- * Resets component to initial state, including resetting the touched state and validity.
11105
+ * Resets component to initial state.
11128
11106
  * @returns {void}
11129
11107
  */
11130
11108
  reset() {
11131
11109
  this.validation.reset(this);
11132
11110
  }
11133
11111
 
11134
- /**
11135
- * Clears the input value
11136
- */
11137
- clear() {
11138
- this.value = undefined;
11139
- }
11140
-
11141
11112
  /**
11142
11113
  * Sets configuration data used elsewhere based on the `type` attribute.
11143
11114
  * @private
@@ -16481,7 +16452,7 @@ class AuroCombobox extends AuroElement$1 {
16481
16452
  });
16482
16453
 
16483
16454
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
16484
- this.clear();
16455
+ this.reset();
16485
16456
  });
16486
16457
  }
16487
16458
 
@@ -16501,7 +16472,7 @@ class AuroCombobox extends AuroElement$1 {
16501
16472
  });
16502
16473
 
16503
16474
  /**
16504
- * Validate every time we remove focus from the combo box.
16475
+ * Validate every time we remove focus from the datepicker.
16505
16476
  */
16506
16477
  this.addEventListener('focusout', () => {
16507
16478
  if (document.activeElement !== this) {
@@ -16706,16 +16677,7 @@ class AuroCombobox extends AuroElement$1 {
16706
16677
  */
16707
16678
  reset() {
16708
16679
  this.input.reset();
16709
- this.menu.value = undefined;
16710
16680
  this.validation.reset(this);
16711
- }
16712
-
16713
- /**
16714
- * Clears the current value of the combobox.
16715
- * @returns {void}
16716
- */
16717
- clear() {
16718
- this.input.clear();
16719
16681
  this.menu.value = undefined;
16720
16682
  }
16721
16683
 
@@ -16741,7 +16703,7 @@ class AuroCombobox extends AuroElement$1 {
16741
16703
  this.hideBib();
16742
16704
  }
16743
16705
  } else {
16744
- this.clear();
16706
+ this.reset();
16745
16707
  }
16746
16708
  }
16747
16709
 
@@ -16,24 +16,17 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Demo | auro-combobox</title>
20
-
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
-
24
- <!-- Legacy reference is still needed to support auro-combobox's use of legacy token values at this time -->
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
-
27
- <!-- Design Token Alaska Theme -->
28
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
30
- <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
-
33
- <!-- Demo Specific Styles -->
19
+ <title>Auro Web Component Generator | auro-combobox custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
34
27
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
29
+ </head>
37
30
  <body class="auro-markdown">
38
31
  <main></main>
39
32
 
@@ -390,11 +390,6 @@ export class AuroCombobox extends AuroElement {
390
390
  * @returns {void}
391
391
  */
392
392
  reset(): void;
393
- /**
394
- * Clears the current value of the combobox.
395
- * @returns {void}
396
- */
397
- clear(): void;
398
393
  /**
399
394
  * Validates value.
400
395
  * @param {boolean} [force=false] - Whether to force validation.
@@ -749,24 +749,13 @@ let AuroFormValidation$1 = class AuroFormValidation {
749
749
  this.getInputElements(elem);
750
750
  this.getAuroInputs(elem);
751
751
 
752
- // Check if validation should run
752
+ // Validate only if noValidate is not true and the input does not have focus
753
753
  let validationShouldRun =
754
-
755
- // If the validation was forced
756
754
  force ||
757
-
758
- // If the validation should run on input
759
- elem.validateOnInput ||
760
-
761
- // State-based checks
762
- (
763
- // Element is not currently focused
764
- !elem.contains(document.activeElement) && // native input is not focused directly
765
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
766
-
767
- // And element has been touched or is untouched but has a value
768
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
769
- );
755
+ (!elem.contains(document.activeElement) &&
756
+ (elem.touched ||
757
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
758
+ elem.validateOnInput;
770
759
 
771
760
  if (elem.hasAttribute('error')) {
772
761
  elem.validity = 'customError';
@@ -2588,7 +2577,7 @@ class AuroFloatingUI {
2588
2577
  */
2589
2578
  mirrorSize() {
2590
2579
  // mirror the boxsize from bibSizer
2591
- if (this.element.bibSizer) {
2580
+ if (this.element.bibSizer && this.element.matchWidth) {
2592
2581
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2593
2582
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2594
2583
  if (sizerStyle.width !== '0px') {
@@ -2800,7 +2789,7 @@ class AuroFloatingUI {
2800
2789
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
2801
2790
  return;
2802
2791
  }
2803
-
2792
+
2804
2793
  // if fullscreen bib is in fullscreen mode, do not close
2805
2794
  if (this.element.bib.hasAttribute('isfullscreen')) {
2806
2795
  return;
@@ -2988,7 +2977,7 @@ class AuroFloatingUI {
2988
2977
 
2989
2978
  event.preventDefault();
2990
2979
  this.handleClick();
2991
- }
2980
+ }
2992
2981
  break;
2993
2982
  case 'mouseenter':
2994
2983
  if (this.element.hoverToggle) {
@@ -9977,24 +9966,13 @@ class AuroFormValidation {
9977
9966
  this.getInputElements(elem);
9978
9967
  this.getAuroInputs(elem);
9979
9968
 
9980
- // Check if validation should run
9969
+ // Validate only if noValidate is not true and the input does not have focus
9981
9970
  let validationShouldRun =
9982
-
9983
- // If the validation was forced
9984
9971
  force ||
9985
-
9986
- // If the validation should run on input
9987
- elem.validateOnInput ||
9988
-
9989
- // State-based checks
9990
- (
9991
- // Element is not currently focused
9992
- !elem.contains(document.activeElement) && // native input is not focused directly
9993
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
9994
-
9995
- // And element has been touched or is untouched but has a value
9996
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
9997
- );
9972
+ (!elem.contains(document.activeElement) &&
9973
+ (elem.touched ||
9974
+ (!elem.touched && typeof elem.value !== "undefined"))) ||
9975
+ elem.validateOnInput;
9998
9976
 
9999
9977
  if (elem.hasAttribute('error')) {
10000
9978
  elem.validity = 'customError';
@@ -10818,9 +10796,9 @@ class BaseInput extends AuroElement$2$1 {
10818
10796
  if (!this.shadowRoot.contains(this.getActiveElement())) {
10819
10797
  this.validation.validate(this);
10820
10798
  }
10821
- }
10822
10799
 
10823
- this.notifyValueChanged();
10800
+ this.notifyValueChanged();
10801
+ }
10824
10802
  }
10825
10803
 
10826
10804
  if (changedProperties.has('error')) {
@@ -10945,9 +10923,9 @@ class BaseInput extends AuroElement$2$1 {
10945
10923
  this.inputElement.value = "";
10946
10924
  this.value = "";
10947
10925
  this.labelElement.classList.remove('inputElement-label--sticky');
10948
- this.notifyValueChanged();
10949
10926
  this.focus();
10950
10927
  this.validation.validate(this);
10928
+ this.notifyValueChanged();
10951
10929
  }
10952
10930
 
10953
10931
  /**
@@ -11042,20 +11020,13 @@ class BaseInput extends AuroElement$2$1 {
11042
11020
  }
11043
11021
 
11044
11022
  /**
11045
- * Resets component to initial state, including resetting the touched state and validity.
11023
+ * Resets component to initial state.
11046
11024
  * @returns {void}
11047
11025
  */
11048
11026
  reset() {
11049
11027
  this.validation.reset(this);
11050
11028
  }
11051
11029
 
11052
- /**
11053
- * Clears the input value
11054
- */
11055
- clear() {
11056
- this.value = undefined;
11057
- }
11058
-
11059
11030
  /**
11060
11031
  * Sets configuration data used elsewhere based on the `type` attribute.
11061
11032
  * @private
@@ -16399,7 +16370,7 @@ class AuroCombobox extends AuroElement {
16399
16370
  });
16400
16371
 
16401
16372
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
16402
- this.clear();
16373
+ this.reset();
16403
16374
  });
16404
16375
  }
16405
16376
 
@@ -16419,7 +16390,7 @@ class AuroCombobox extends AuroElement {
16419
16390
  });
16420
16391
 
16421
16392
  /**
16422
- * Validate every time we remove focus from the combo box.
16393
+ * Validate every time we remove focus from the datepicker.
16423
16394
  */
16424
16395
  this.addEventListener('focusout', () => {
16425
16396
  if (document.activeElement !== this) {
@@ -16624,16 +16595,7 @@ class AuroCombobox extends AuroElement {
16624
16595
  */
16625
16596
  reset() {
16626
16597
  this.input.reset();
16627
- this.menu.value = undefined;
16628
16598
  this.validation.reset(this);
16629
- }
16630
-
16631
- /**
16632
- * Clears the current value of the combobox.
16633
- * @returns {void}
16634
- */
16635
- clear() {
16636
- this.input.clear();
16637
16599
  this.menu.value = undefined;
16638
16600
  }
16639
16601
 
@@ -16659,7 +16621,7 @@ class AuroCombobox extends AuroElement {
16659
16621
  this.hideBib();
16660
16622
  }
16661
16623
  } else {
16662
- this.clear();
16624
+ this.reset();
16663
16625
  }
16664
16626
  }
16665
16627