@aurodesignsystem-dev/auro-formkit 0.0.0-pr987.0 → 0.0.0-pr988.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 (31) hide show
  1. package/components/checkbox/demo/api.min.js +2 -2
  2. package/components/checkbox/demo/index.min.js +2 -2
  3. package/components/checkbox/dist/index.js +2 -2
  4. package/components/checkbox/dist/registered.js +2 -2
  5. package/components/combobox/demo/api.min.js +5 -4
  6. package/components/combobox/demo/index.min.js +5 -4
  7. package/components/combobox/dist/index.js +5 -4
  8. package/components/combobox/dist/registered.js +5 -4
  9. package/components/counter/demo/api.min.js +2 -2
  10. package/components/counter/demo/index.min.js +2 -2
  11. package/components/counter/dist/index.js +2 -2
  12. package/components/counter/dist/registered.js +2 -2
  13. package/components/datepicker/demo/api.md +1 -1
  14. package/components/datepicker/demo/api.min.js +37 -24
  15. package/components/datepicker/demo/index.min.js +37 -24
  16. package/components/datepicker/dist/auro-datepicker.d.ts +1 -1
  17. package/components/datepicker/dist/index.js +37 -24
  18. package/components/datepicker/dist/registered.js +37 -24
  19. package/components/input/demo/api.min.js +3 -2
  20. package/components/input/demo/index.min.js +3 -2
  21. package/components/input/dist/index.js +3 -2
  22. package/components/input/dist/registered.js +3 -2
  23. package/components/radio/demo/api.min.js +2 -2
  24. package/components/radio/demo/index.min.js +2 -2
  25. package/components/radio/dist/index.js +2 -2
  26. package/components/radio/dist/registered.js +2 -2
  27. package/components/select/demo/api.min.js +3 -3
  28. package/components/select/demo/index.min.js +3 -3
  29. package/components/select/dist/index.js +3 -3
  30. package/components/select/dist/registered.js +3 -3
  31. package/package.json +1 -1
@@ -1117,9 +1117,9 @@ class AuroFormValidation {
1117
1117
  elem.validity = this.auroInputElements[0].validity;
1118
1118
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1119
1119
 
1120
+ // multiple input in one components (datepicker)
1120
1121
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1121
- // combobox's 2nd input will have noValidate set true.
1122
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1122
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1123
1123
  elem.validity = this.auroInputElements[1].validity;
1124
1124
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1125
1125
  }
@@ -1109,9 +1109,9 @@ class AuroFormValidation {
1109
1109
  elem.validity = this.auroInputElements[0].validity;
1110
1110
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1111
1111
 
1112
+ // multiple input in one components (datepicker)
1112
1113
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1113
- // combobox's 2nd input will have noValidate set true.
1114
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1114
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1115
1115
  elem.validity = this.auroInputElements[1].validity;
1116
1116
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1117
1117
  }
@@ -1062,9 +1062,9 @@ class AuroFormValidation {
1062
1062
  elem.validity = this.auroInputElements[0].validity;
1063
1063
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1064
1064
 
1065
+ // multiple input in one components (datepicker)
1065
1066
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1066
- // combobox's 2nd input will have noValidate set true.
1067
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1067
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1068
1068
  elem.validity = this.auroInputElements[1].validity;
1069
1069
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1070
1070
  }
@@ -1062,9 +1062,9 @@ class AuroFormValidation {
1062
1062
  elem.validity = this.auroInputElements[0].validity;
1063
1063
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1064
1064
 
1065
+ // multiple input in one components (datepicker)
1065
1066
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1066
- // combobox's 2nd input will have noValidate set true.
1067
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1067
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1068
1068
  elem.validity = this.auroInputElements[1].validity;
1069
1069
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1070
1070
  }
@@ -1025,9 +1025,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
1025
1025
  elem.validity = this.auroInputElements[0].validity;
1026
1026
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1027
1027
 
1028
+ // multiple input in one components (datepicker)
1028
1029
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1029
- // combobox's 2nd input will have noValidate set true.
1030
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1030
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1031
1031
  elem.validity = this.auroInputElements[1].validity;
1032
1032
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1033
1033
  }
@@ -10234,9 +10234,9 @@ class AuroFormValidation {
10234
10234
  elem.validity = this.auroInputElements[0].validity;
10235
10235
  elem.errorMessage = this.auroInputElements[0].errorMessage;
10236
10236
 
10237
+ // multiple input in one components (datepicker)
10237
10238
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
10238
- // combobox's 2nd input will have noValidate set true.
10239
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
10239
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
10240
10240
  elem.validity = this.auroInputElements[1].validity;
10241
10241
  elem.errorMessage = this.auroInputElements[1].errorMessage;
10242
10242
  }
@@ -11245,6 +11245,7 @@ class BaseInput extends AuroElement$2$1 {
11245
11245
  * @returns {void}
11246
11246
  */
11247
11247
  reset() {
11248
+ this.value = undefined;
11248
11249
  this.validation.reset(this);
11249
11250
  }
11250
11251
 
@@ -883,9 +883,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
883
883
  elem.validity = this.auroInputElements[0].validity;
884
884
  elem.errorMessage = this.auroInputElements[0].errorMessage;
885
885
 
886
+ // multiple input in one components (datepicker)
886
887
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
887
- // combobox's 2nd input will have noValidate set true.
888
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
888
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
889
889
  elem.validity = this.auroInputElements[1].validity;
890
890
  elem.errorMessage = this.auroInputElements[1].errorMessage;
891
891
  }
@@ -10092,9 +10092,9 @@ class AuroFormValidation {
10092
10092
  elem.validity = this.auroInputElements[0].validity;
10093
10093
  elem.errorMessage = this.auroInputElements[0].errorMessage;
10094
10094
 
10095
+ // multiple input in one components (datepicker)
10095
10096
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
10096
- // combobox's 2nd input will have noValidate set true.
10097
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
10097
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
10098
10098
  elem.validity = this.auroInputElements[1].validity;
10099
10099
  elem.errorMessage = this.auroInputElements[1].errorMessage;
10100
10100
  }
@@ -11103,6 +11103,7 @@ class BaseInput extends AuroElement$2$1 {
11103
11103
  * @returns {void}
11104
11104
  */
11105
11105
  reset() {
11106
+ this.value = undefined;
11106
11107
  this.validation.reset(this);
11107
11108
  }
11108
11109
 
@@ -820,9 +820,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
820
820
  elem.validity = this.auroInputElements[0].validity;
821
821
  elem.errorMessage = this.auroInputElements[0].errorMessage;
822
822
 
823
+ // multiple input in one components (datepicker)
823
824
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
824
- // combobox's 2nd input will have noValidate set true.
825
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
825
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
826
826
  elem.validity = this.auroInputElements[1].validity;
827
827
  elem.errorMessage = this.auroInputElements[1].errorMessage;
828
828
  }
@@ -10010,9 +10010,9 @@ class AuroFormValidation {
10010
10010
  elem.validity = this.auroInputElements[0].validity;
10011
10011
  elem.errorMessage = this.auroInputElements[0].errorMessage;
10012
10012
 
10013
+ // multiple input in one components (datepicker)
10013
10014
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
10014
- // combobox's 2nd input will have noValidate set true.
10015
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
10015
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
10016
10016
  elem.validity = this.auroInputElements[1].validity;
10017
10017
  elem.errorMessage = this.auroInputElements[1].errorMessage;
10018
10018
  }
@@ -11021,6 +11021,7 @@ class BaseInput extends AuroElement$2$1 {
11021
11021
  * @returns {void}
11022
11022
  */
11023
11023
  reset() {
11024
+ this.value = undefined;
11024
11025
  this.validation.reset(this);
11025
11026
  }
11026
11027
 
@@ -820,9 +820,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
820
820
  elem.validity = this.auroInputElements[0].validity;
821
821
  elem.errorMessage = this.auroInputElements[0].errorMessage;
822
822
 
823
+ // multiple input in one components (datepicker)
823
824
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
824
- // combobox's 2nd input will have noValidate set true.
825
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
825
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
826
826
  elem.validity = this.auroInputElements[1].validity;
827
827
  elem.errorMessage = this.auroInputElements[1].errorMessage;
828
828
  }
@@ -10010,9 +10010,9 @@ class AuroFormValidation {
10010
10010
  elem.validity = this.auroInputElements[0].validity;
10011
10011
  elem.errorMessage = this.auroInputElements[0].errorMessage;
10012
10012
 
10013
+ // multiple input in one components (datepicker)
10013
10014
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
10014
- // combobox's 2nd input will have noValidate set true.
10015
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
10015
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
10016
10016
  elem.validity = this.auroInputElements[1].validity;
10017
10017
  elem.errorMessage = this.auroInputElements[1].errorMessage;
10018
10018
  }
@@ -11021,6 +11021,7 @@ class BaseInput extends AuroElement$2$1 {
11021
11021
  * @returns {void}
11022
11022
  */
11023
11023
  reset() {
11024
+ this.value = undefined;
11024
11025
  this.validation.reset(this);
11025
11026
  }
11026
11027
 
@@ -2402,9 +2402,9 @@ class AuroFormValidation {
2402
2402
  elem.validity = this.auroInputElements[0].validity;
2403
2403
  elem.errorMessage = this.auroInputElements[0].errorMessage;
2404
2404
 
2405
+ // multiple input in one components (datepicker)
2405
2406
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
2406
- // combobox's 2nd input will have noValidate set true.
2407
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
2407
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
2408
2408
  elem.validity = this.auroInputElements[1].validity;
2409
2409
  elem.errorMessage = this.auroInputElements[1].errorMessage;
2410
2410
  }
@@ -2402,9 +2402,9 @@ class AuroFormValidation {
2402
2402
  elem.validity = this.auroInputElements[0].validity;
2403
2403
  elem.errorMessage = this.auroInputElements[0].errorMessage;
2404
2404
 
2405
+ // multiple input in one components (datepicker)
2405
2406
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
2406
- // combobox's 2nd input will have noValidate set true.
2407
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
2407
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
2408
2408
  elem.validity = this.auroInputElements[1].validity;
2409
2409
  elem.errorMessage = this.auroInputElements[1].errorMessage;
2410
2410
  }
@@ -2355,9 +2355,9 @@ class AuroFormValidation {
2355
2355
  elem.validity = this.auroInputElements[0].validity;
2356
2356
  elem.errorMessage = this.auroInputElements[0].errorMessage;
2357
2357
 
2358
+ // multiple input in one components (datepicker)
2358
2359
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
2359
- // combobox's 2nd input will have noValidate set true.
2360
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
2360
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
2361
2361
  elem.validity = this.auroInputElements[1].validity;
2362
2362
  elem.errorMessage = this.auroInputElements[1].errorMessage;
2363
2363
  }
@@ -2355,9 +2355,9 @@ class AuroFormValidation {
2355
2355
  elem.validity = this.auroInputElements[0].validity;
2356
2356
  elem.errorMessage = this.auroInputElements[0].errorMessage;
2357
2357
 
2358
+ // multiple input in one components (datepicker)
2358
2359
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
2359
- // combobox's 2nd input will have noValidate set true.
2360
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
2360
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
2361
2361
  elem.validity = this.auroInputElements[1].validity;
2362
2362
  elem.errorMessage = this.auroInputElements[1].errorMessage;
2363
2363
  }
@@ -54,9 +54,9 @@
54
54
  | [focus](#focus) | `(focusInput?: string): void` | Focuses the datepicker trigger input.<br /><br />**focusInput**: Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input. |
55
55
  | [hideBib](#hideBib) | `(): void` | Hides the dropdown bib if its open. |
56
56
  | [reset](#reset) | `(): void` | Resets component to initial state. |
57
+ | [resetInputs](#resetInputs) | `(): void` | Resets values without resetting validation. |
57
58
  | [resetLayoutClasses](#resetLayoutClasses) | `(): void` | |
58
59
  | [resetShapeClasses](#resetShapeClasses) | `(): void` | |
59
- | [resetValues](#resetValues) | `(): void` | Resets values without resetting validation. |
60
60
  | [showBib](#showBib) | `(): void` | Shows the dropdown bib if there are options to show. |
61
61
  | [updateComponentArchitecture](#updateComponentArchitecture) | `(): void` | |
62
62
  | [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
@@ -1060,9 +1060,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
1060
1060
  elem.validity = this.auroInputElements[0].validity;
1061
1061
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1062
1062
 
1063
+ // multiple input in one components (datepicker)
1063
1064
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1064
- // combobox's 2nd input will have noValidate set true.
1065
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1065
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1066
1066
  elem.validity = this.auroInputElements[1].validity;
1067
1067
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1068
1068
  }
@@ -23670,9 +23670,9 @@ class AuroFormValidation {
23670
23670
  elem.validity = this.auroInputElements[0].validity;
23671
23671
  elem.errorMessage = this.auroInputElements[0].errorMessage;
23672
23672
 
23673
+ // multiple input in one components (datepicker)
23673
23674
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
23674
- // combobox's 2nd input will have noValidate set true.
23675
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
23675
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
23676
23676
  elem.validity = this.auroInputElements[1].validity;
23677
23677
  elem.errorMessage = this.auroInputElements[1].errorMessage;
23678
23678
  }
@@ -24681,6 +24681,7 @@ class BaseInput extends AuroElement$2 {
24681
24681
  * @returns {void}
24682
24682
  */
24683
24683
  reset() {
24684
+ this.value = undefined;
24684
24685
  this.validation.reset(this);
24685
24686
  }
24686
24687
 
@@ -28826,11 +28827,8 @@ class AuroDatePicker extends AuroElement$1 {
28826
28827
  }
28827
28828
 
28828
28829
  if (!this.contains(document.activeElement)) {
28829
- this.validation.validate(this.inputList[0]);
28830
-
28831
- if (this.inputList[1]) {
28832
- this.validation.validate(this.inputList[1]);
28833
- }
28830
+ this.validate();
28831
+ this.dropdown.hide();
28834
28832
  }
28835
28833
  });
28836
28834
 
@@ -28908,23 +28906,33 @@ class AuroDatePicker extends AuroElement$1 {
28908
28906
  const convertedDate = this.convertWcTimeToDate(time);
28909
28907
  const newDate = this.util.toCustomFormat(convertedDate, this.format);
28910
28908
 
28909
+ let onEndValue = false;
28911
28910
  if (this.util.validDateStr(newDate, this.format)) {
28912
- if (this.inputList.length > 1) {
28913
- if (!this.value || !this.util.validDateStr(this.value, this.format)) {
28914
- this.value = newDate;
28915
- } else if (!this.valueEnd || !this.util.validDateStr(this.valueEnd, this.format)) {
28911
+ if (this.range) {
28912
+ const isValueValid = this.value && this.util.validDateStr(this.value, this.format);
28913
+ const isValueEndValid = this.valueEnd && this.util.validDateStr(this.valueEnd, this.format);
28914
+
28915
+ if (isValueValid && !isValueEndValid) {
28916
28916
  // verify the date is after this.value to insure we are setting a proper range
28917
28917
  if (new Date(this.util.toNorthAmericanFormat(newDate, this.format)) >= new Date(this.formattedValue)) {
28918
- this.valueEnd = newDate;
28919
- } else {
28920
- this.value = newDate;
28918
+ onEndValue = true;
28921
28919
  }
28922
- } else {
28923
- this.value = newDate;
28920
+ } else if (isValueValid && isValueEndValid) {
28921
+ // both dateTo and dateFrom are valid, then reset datTo
28924
28922
  this.valueEnd = '';
28925
28923
  }
28924
+ }
28925
+
28926
+ if (onEndValue) {
28927
+ this.valueEnd = newDate;
28928
+ if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
28929
+ this.focus('startDate');
28930
+ }
28926
28931
  } else {
28927
28932
  this.value = newDate;
28933
+ if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
28934
+ this.focus('endDate');
28935
+ }
28928
28936
  }
28929
28937
  }
28930
28938
  }
@@ -28945,7 +28953,7 @@ class AuroDatePicker extends AuroElement$1 {
28945
28953
  */
28946
28954
  handleKeydownReset(event) {
28947
28955
  if (event.key === 'Enter' || event.key === ' ') {
28948
- this.resetValues();
28956
+ this.resetInputs();
28949
28957
  this.focus();
28950
28958
  }
28951
28959
  }
@@ -28953,9 +28961,9 @@ class AuroDatePicker extends AuroElement$1 {
28953
28961
  /**
28954
28962
  * Resets values without resetting validation.
28955
28963
  */
28956
- resetValues() {
28964
+ resetInputs() {
28957
28965
  this.inputList.forEach((input) => {
28958
- input.clear();
28966
+ input.reset();
28959
28967
  });
28960
28968
  }
28961
28969
 
@@ -28964,7 +28972,7 @@ class AuroDatePicker extends AuroElement$1 {
28964
28972
  * @returns {void}
28965
28973
  */
28966
28974
  reset() {
28967
- this.resetValues();
28975
+ this.resetInputs();
28968
28976
  this.validation.reset(this);
28969
28977
  }
28970
28978
 
@@ -28973,7 +28981,7 @@ class AuroDatePicker extends AuroElement$1 {
28973
28981
  * @returns {void}
28974
28982
  */
28975
28983
  clear() {
28976
- this.resetValues();
28984
+ this.resetInputs();
28977
28985
  }
28978
28986
 
28979
28987
  /**
@@ -28981,6 +28989,11 @@ class AuroDatePicker extends AuroElement$1 {
28981
28989
  * @param {boolean} [force=false] - Whether to force validation.
28982
28990
  */
28983
28991
  validate(force = false) {
28992
+ this.inputList[0].validate(force);
28993
+ if (this.range) {
28994
+ this.inputList[1].validate(force);
28995
+ }
28996
+
28984
28997
  this.validation.validate(this, force);
28985
28998
  }
28986
28999
 
@@ -29553,7 +29566,7 @@ class AuroDatePicker extends AuroElement$1 {
29553
29566
  return u$3`
29554
29567
  <div class="${e$2(clearActionClassMap)}">
29555
29568
  <${this.buttonTag}
29556
- @click="${this.resetValues}"
29569
+ @click="${this.resetInputs}"
29557
29570
  @keydown="${this.handleKeydownReset}"
29558
29571
  ?onDark="${this.onDark}"
29559
29572
  aria-label="${i18n(this.lang, 'clearInput')}"
@@ -801,9 +801,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
801
801
  elem.validity = this.auroInputElements[0].validity;
802
802
  elem.errorMessage = this.auroInputElements[0].errorMessage;
803
803
 
804
+ // multiple input in one components (datepicker)
804
805
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
805
- // combobox's 2nd input will have noValidate set true.
806
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
806
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
807
807
  elem.validity = this.auroInputElements[1].validity;
808
808
  elem.errorMessage = this.auroInputElements[1].errorMessage;
809
809
  }
@@ -23411,9 +23411,9 @@ class AuroFormValidation {
23411
23411
  elem.validity = this.auroInputElements[0].validity;
23412
23412
  elem.errorMessage = this.auroInputElements[0].errorMessage;
23413
23413
 
23414
+ // multiple input in one components (datepicker)
23414
23415
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
23415
- // combobox's 2nd input will have noValidate set true.
23416
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
23416
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
23417
23417
  elem.validity = this.auroInputElements[1].validity;
23418
23418
  elem.errorMessage = this.auroInputElements[1].errorMessage;
23419
23419
  }
@@ -24422,6 +24422,7 @@ class BaseInput extends AuroElement$2 {
24422
24422
  * @returns {void}
24423
24423
  */
24424
24424
  reset() {
24425
+ this.value = undefined;
24425
24426
  this.validation.reset(this);
24426
24427
  }
24427
24428
 
@@ -28567,11 +28568,8 @@ class AuroDatePicker extends AuroElement$1 {
28567
28568
  }
28568
28569
 
28569
28570
  if (!this.contains(document.activeElement)) {
28570
- this.validation.validate(this.inputList[0]);
28571
-
28572
- if (this.inputList[1]) {
28573
- this.validation.validate(this.inputList[1]);
28574
- }
28571
+ this.validate();
28572
+ this.dropdown.hide();
28575
28573
  }
28576
28574
  });
28577
28575
 
@@ -28649,23 +28647,33 @@ class AuroDatePicker extends AuroElement$1 {
28649
28647
  const convertedDate = this.convertWcTimeToDate(time);
28650
28648
  const newDate = this.util.toCustomFormat(convertedDate, this.format);
28651
28649
 
28650
+ let onEndValue = false;
28652
28651
  if (this.util.validDateStr(newDate, this.format)) {
28653
- if (this.inputList.length > 1) {
28654
- if (!this.value || !this.util.validDateStr(this.value, this.format)) {
28655
- this.value = newDate;
28656
- } else if (!this.valueEnd || !this.util.validDateStr(this.valueEnd, this.format)) {
28652
+ if (this.range) {
28653
+ const isValueValid = this.value && this.util.validDateStr(this.value, this.format);
28654
+ const isValueEndValid = this.valueEnd && this.util.validDateStr(this.valueEnd, this.format);
28655
+
28656
+ if (isValueValid && !isValueEndValid) {
28657
28657
  // verify the date is after this.value to insure we are setting a proper range
28658
28658
  if (new Date(this.util.toNorthAmericanFormat(newDate, this.format)) >= new Date(this.formattedValue)) {
28659
- this.valueEnd = newDate;
28660
- } else {
28661
- this.value = newDate;
28659
+ onEndValue = true;
28662
28660
  }
28663
- } else {
28664
- this.value = newDate;
28661
+ } else if (isValueValid && isValueEndValid) {
28662
+ // both dateTo and dateFrom are valid, then reset datTo
28665
28663
  this.valueEnd = '';
28666
28664
  }
28665
+ }
28666
+
28667
+ if (onEndValue) {
28668
+ this.valueEnd = newDate;
28669
+ if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
28670
+ this.focus('startDate');
28671
+ }
28667
28672
  } else {
28668
28673
  this.value = newDate;
28674
+ if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
28675
+ this.focus('endDate');
28676
+ }
28669
28677
  }
28670
28678
  }
28671
28679
  }
@@ -28686,7 +28694,7 @@ class AuroDatePicker extends AuroElement$1 {
28686
28694
  */
28687
28695
  handleKeydownReset(event) {
28688
28696
  if (event.key === 'Enter' || event.key === ' ') {
28689
- this.resetValues();
28697
+ this.resetInputs();
28690
28698
  this.focus();
28691
28699
  }
28692
28700
  }
@@ -28694,9 +28702,9 @@ class AuroDatePicker extends AuroElement$1 {
28694
28702
  /**
28695
28703
  * Resets values without resetting validation.
28696
28704
  */
28697
- resetValues() {
28705
+ resetInputs() {
28698
28706
  this.inputList.forEach((input) => {
28699
- input.clear();
28707
+ input.reset();
28700
28708
  });
28701
28709
  }
28702
28710
 
@@ -28705,7 +28713,7 @@ class AuroDatePicker extends AuroElement$1 {
28705
28713
  * @returns {void}
28706
28714
  */
28707
28715
  reset() {
28708
- this.resetValues();
28716
+ this.resetInputs();
28709
28717
  this.validation.reset(this);
28710
28718
  }
28711
28719
 
@@ -28714,7 +28722,7 @@ class AuroDatePicker extends AuroElement$1 {
28714
28722
  * @returns {void}
28715
28723
  */
28716
28724
  clear() {
28717
- this.resetValues();
28725
+ this.resetInputs();
28718
28726
  }
28719
28727
 
28720
28728
  /**
@@ -28722,6 +28730,11 @@ class AuroDatePicker extends AuroElement$1 {
28722
28730
  * @param {boolean} [force=false] - Whether to force validation.
28723
28731
  */
28724
28732
  validate(force = false) {
28733
+ this.inputList[0].validate(force);
28734
+ if (this.range) {
28735
+ this.inputList[1].validate(force);
28736
+ }
28737
+
28725
28738
  this.validation.validate(this, force);
28726
28739
  }
28727
28740
 
@@ -29294,7 +29307,7 @@ class AuroDatePicker extends AuroElement$1 {
29294
29307
  return u$3`
29295
29308
  <div class="${e$2(clearActionClassMap)}">
29296
29309
  <${this.buttonTag}
29297
- @click="${this.resetValues}"
29310
+ @click="${this.resetInputs}"
29298
29311
  @keydown="${this.handleKeydownReset}"
29299
29312
  ?onDark="${this.onDark}"
29300
29313
  aria-label="${i18n(this.lang, 'clearInput')}"
@@ -503,7 +503,7 @@ export class AuroDatePicker extends AuroElement {
503
503
  /**
504
504
  * Resets values without resetting validation.
505
505
  */
506
- resetValues(): void;
506
+ resetInputs(): void;
507
507
  /**
508
508
  * Resets component to initial state.
509
509
  * @returns {void}
@@ -781,9 +781,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
781
781
  elem.validity = this.auroInputElements[0].validity;
782
782
  elem.errorMessage = this.auroInputElements[0].errorMessage;
783
783
 
784
+ // multiple input in one components (datepicker)
784
785
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
785
- // combobox's 2nd input will have noValidate set true.
786
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
786
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
787
787
  elem.validity = this.auroInputElements[1].validity;
788
788
  elem.errorMessage = this.auroInputElements[1].errorMessage;
789
789
  }
@@ -23347,9 +23347,9 @@ class AuroFormValidation {
23347
23347
  elem.validity = this.auroInputElements[0].validity;
23348
23348
  elem.errorMessage = this.auroInputElements[0].errorMessage;
23349
23349
 
23350
+ // multiple input in one components (datepicker)
23350
23351
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
23351
- // combobox's 2nd input will have noValidate set true.
23352
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
23352
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
23353
23353
  elem.validity = this.auroInputElements[1].validity;
23354
23354
  elem.errorMessage = this.auroInputElements[1].errorMessage;
23355
23355
  }
@@ -24358,6 +24358,7 @@ class BaseInput extends AuroElement$2 {
24358
24358
  * @returns {void}
24359
24359
  */
24360
24360
  reset() {
24361
+ this.value = undefined;
24361
24362
  this.validation.reset(this);
24362
24363
  }
24363
24364
 
@@ -28503,11 +28504,8 @@ class AuroDatePicker extends AuroElement$1 {
28503
28504
  }
28504
28505
 
28505
28506
  if (!this.contains(document.activeElement)) {
28506
- this.validation.validate(this.inputList[0]);
28507
-
28508
- if (this.inputList[1]) {
28509
- this.validation.validate(this.inputList[1]);
28510
- }
28507
+ this.validate();
28508
+ this.dropdown.hide();
28511
28509
  }
28512
28510
  });
28513
28511
 
@@ -28585,23 +28583,33 @@ class AuroDatePicker extends AuroElement$1 {
28585
28583
  const convertedDate = this.convertWcTimeToDate(time);
28586
28584
  const newDate = this.util.toCustomFormat(convertedDate, this.format);
28587
28585
 
28586
+ let onEndValue = false;
28588
28587
  if (this.util.validDateStr(newDate, this.format)) {
28589
- if (this.inputList.length > 1) {
28590
- if (!this.value || !this.util.validDateStr(this.value, this.format)) {
28591
- this.value = newDate;
28592
- } else if (!this.valueEnd || !this.util.validDateStr(this.valueEnd, this.format)) {
28588
+ if (this.range) {
28589
+ const isValueValid = this.value && this.util.validDateStr(this.value, this.format);
28590
+ const isValueEndValid = this.valueEnd && this.util.validDateStr(this.valueEnd, this.format);
28591
+
28592
+ if (isValueValid && !isValueEndValid) {
28593
28593
  // verify the date is after this.value to insure we are setting a proper range
28594
28594
  if (new Date(this.util.toNorthAmericanFormat(newDate, this.format)) >= new Date(this.formattedValue)) {
28595
- this.valueEnd = newDate;
28596
- } else {
28597
- this.value = newDate;
28595
+ onEndValue = true;
28598
28596
  }
28599
- } else {
28600
- this.value = newDate;
28597
+ } else if (isValueValid && isValueEndValid) {
28598
+ // both dateTo and dateFrom are valid, then reset datTo
28601
28599
  this.valueEnd = '';
28602
28600
  }
28601
+ }
28602
+
28603
+ if (onEndValue) {
28604
+ this.valueEnd = newDate;
28605
+ if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
28606
+ this.focus('startDate');
28607
+ }
28603
28608
  } else {
28604
28609
  this.value = newDate;
28610
+ if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
28611
+ this.focus('endDate');
28612
+ }
28605
28613
  }
28606
28614
  }
28607
28615
  }
@@ -28622,7 +28630,7 @@ class AuroDatePicker extends AuroElement$1 {
28622
28630
  */
28623
28631
  handleKeydownReset(event) {
28624
28632
  if (event.key === 'Enter' || event.key === ' ') {
28625
- this.resetValues();
28633
+ this.resetInputs();
28626
28634
  this.focus();
28627
28635
  }
28628
28636
  }
@@ -28630,9 +28638,9 @@ class AuroDatePicker extends AuroElement$1 {
28630
28638
  /**
28631
28639
  * Resets values without resetting validation.
28632
28640
  */
28633
- resetValues() {
28641
+ resetInputs() {
28634
28642
  this.inputList.forEach((input) => {
28635
- input.clear();
28643
+ input.reset();
28636
28644
  });
28637
28645
  }
28638
28646
 
@@ -28641,7 +28649,7 @@ class AuroDatePicker extends AuroElement$1 {
28641
28649
  * @returns {void}
28642
28650
  */
28643
28651
  reset() {
28644
- this.resetValues();
28652
+ this.resetInputs();
28645
28653
  this.validation.reset(this);
28646
28654
  }
28647
28655
 
@@ -28650,7 +28658,7 @@ class AuroDatePicker extends AuroElement$1 {
28650
28658
  * @returns {void}
28651
28659
  */
28652
28660
  clear() {
28653
- this.resetValues();
28661
+ this.resetInputs();
28654
28662
  }
28655
28663
 
28656
28664
  /**
@@ -28658,6 +28666,11 @@ class AuroDatePicker extends AuroElement$1 {
28658
28666
  * @param {boolean} [force=false] - Whether to force validation.
28659
28667
  */
28660
28668
  validate(force = false) {
28669
+ this.inputList[0].validate(force);
28670
+ if (this.range) {
28671
+ this.inputList[1].validate(force);
28672
+ }
28673
+
28661
28674
  this.validation.validate(this, force);
28662
28675
  }
28663
28676
 
@@ -29230,7 +29243,7 @@ class AuroDatePicker extends AuroElement$1 {
29230
29243
  return html$1`
29231
29244
  <div class="${classMap(clearActionClassMap)}">
29232
29245
  <${this.buttonTag}
29233
- @click="${this.resetValues}"
29246
+ @click="${this.resetInputs}"
29234
29247
  @keydown="${this.handleKeydownReset}"
29235
29248
  ?onDark="${this.onDark}"
29236
29249
  aria-label="${i18n(this.lang, 'clearInput')}"
@@ -781,9 +781,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
781
781
  elem.validity = this.auroInputElements[0].validity;
782
782
  elem.errorMessage = this.auroInputElements[0].errorMessage;
783
783
 
784
+ // multiple input in one components (datepicker)
784
785
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
785
- // combobox's 2nd input will have noValidate set true.
786
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
786
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
787
787
  elem.validity = this.auroInputElements[1].validity;
788
788
  elem.errorMessage = this.auroInputElements[1].errorMessage;
789
789
  }
@@ -23347,9 +23347,9 @@ class AuroFormValidation {
23347
23347
  elem.validity = this.auroInputElements[0].validity;
23348
23348
  elem.errorMessage = this.auroInputElements[0].errorMessage;
23349
23349
 
23350
+ // multiple input in one components (datepicker)
23350
23351
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
23351
- // combobox's 2nd input will have noValidate set true.
23352
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
23352
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
23353
23353
  elem.validity = this.auroInputElements[1].validity;
23354
23354
  elem.errorMessage = this.auroInputElements[1].errorMessage;
23355
23355
  }
@@ -24358,6 +24358,7 @@ class BaseInput extends AuroElement$2 {
24358
24358
  * @returns {void}
24359
24359
  */
24360
24360
  reset() {
24361
+ this.value = undefined;
24361
24362
  this.validation.reset(this);
24362
24363
  }
24363
24364
 
@@ -28503,11 +28504,8 @@ class AuroDatePicker extends AuroElement$1 {
28503
28504
  }
28504
28505
 
28505
28506
  if (!this.contains(document.activeElement)) {
28506
- this.validation.validate(this.inputList[0]);
28507
-
28508
- if (this.inputList[1]) {
28509
- this.validation.validate(this.inputList[1]);
28510
- }
28507
+ this.validate();
28508
+ this.dropdown.hide();
28511
28509
  }
28512
28510
  });
28513
28511
 
@@ -28585,23 +28583,33 @@ class AuroDatePicker extends AuroElement$1 {
28585
28583
  const convertedDate = this.convertWcTimeToDate(time);
28586
28584
  const newDate = this.util.toCustomFormat(convertedDate, this.format);
28587
28585
 
28586
+ let onEndValue = false;
28588
28587
  if (this.util.validDateStr(newDate, this.format)) {
28589
- if (this.inputList.length > 1) {
28590
- if (!this.value || !this.util.validDateStr(this.value, this.format)) {
28591
- this.value = newDate;
28592
- } else if (!this.valueEnd || !this.util.validDateStr(this.valueEnd, this.format)) {
28588
+ if (this.range) {
28589
+ const isValueValid = this.value && this.util.validDateStr(this.value, this.format);
28590
+ const isValueEndValid = this.valueEnd && this.util.validDateStr(this.valueEnd, this.format);
28591
+
28592
+ if (isValueValid && !isValueEndValid) {
28593
28593
  // verify the date is after this.value to insure we are setting a proper range
28594
28594
  if (new Date(this.util.toNorthAmericanFormat(newDate, this.format)) >= new Date(this.formattedValue)) {
28595
- this.valueEnd = newDate;
28596
- } else {
28597
- this.value = newDate;
28595
+ onEndValue = true;
28598
28596
  }
28599
- } else {
28600
- this.value = newDate;
28597
+ } else if (isValueValid && isValueEndValid) {
28598
+ // both dateTo and dateFrom are valid, then reset datTo
28601
28599
  this.valueEnd = '';
28602
28600
  }
28601
+ }
28602
+
28603
+ if (onEndValue) {
28604
+ this.valueEnd = newDate;
28605
+ if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
28606
+ this.focus('startDate');
28607
+ }
28603
28608
  } else {
28604
28609
  this.value = newDate;
28610
+ if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
28611
+ this.focus('endDate');
28612
+ }
28605
28613
  }
28606
28614
  }
28607
28615
  }
@@ -28622,7 +28630,7 @@ class AuroDatePicker extends AuroElement$1 {
28622
28630
  */
28623
28631
  handleKeydownReset(event) {
28624
28632
  if (event.key === 'Enter' || event.key === ' ') {
28625
- this.resetValues();
28633
+ this.resetInputs();
28626
28634
  this.focus();
28627
28635
  }
28628
28636
  }
@@ -28630,9 +28638,9 @@ class AuroDatePicker extends AuroElement$1 {
28630
28638
  /**
28631
28639
  * Resets values without resetting validation.
28632
28640
  */
28633
- resetValues() {
28641
+ resetInputs() {
28634
28642
  this.inputList.forEach((input) => {
28635
- input.clear();
28643
+ input.reset();
28636
28644
  });
28637
28645
  }
28638
28646
 
@@ -28641,7 +28649,7 @@ class AuroDatePicker extends AuroElement$1 {
28641
28649
  * @returns {void}
28642
28650
  */
28643
28651
  reset() {
28644
- this.resetValues();
28652
+ this.resetInputs();
28645
28653
  this.validation.reset(this);
28646
28654
  }
28647
28655
 
@@ -28650,7 +28658,7 @@ class AuroDatePicker extends AuroElement$1 {
28650
28658
  * @returns {void}
28651
28659
  */
28652
28660
  clear() {
28653
- this.resetValues();
28661
+ this.resetInputs();
28654
28662
  }
28655
28663
 
28656
28664
  /**
@@ -28658,6 +28666,11 @@ class AuroDatePicker extends AuroElement$1 {
28658
28666
  * @param {boolean} [force=false] - Whether to force validation.
28659
28667
  */
28660
28668
  validate(force = false) {
28669
+ this.inputList[0].validate(force);
28670
+ if (this.range) {
28671
+ this.inputList[1].validate(force);
28672
+ }
28673
+
28661
28674
  this.validation.validate(this, force);
28662
28675
  }
28663
28676
 
@@ -29230,7 +29243,7 @@ class AuroDatePicker extends AuroElement$1 {
29230
29243
  return html$1`
29231
29244
  <div class="${classMap(clearActionClassMap)}">
29232
29245
  <${this.buttonTag}
29233
- @click="${this.resetValues}"
29246
+ @click="${this.resetInputs}"
29234
29247
  @keydown="${this.handleKeydownReset}"
29235
29248
  ?onDark="${this.onDark}"
29236
29249
  aria-label="${i18n(this.lang, 'clearInput')}"
@@ -4918,9 +4918,9 @@ class AuroFormValidation {
4918
4918
  elem.validity = this.auroInputElements[0].validity;
4919
4919
  elem.errorMessage = this.auroInputElements[0].errorMessage;
4920
4920
 
4921
+ // multiple input in one components (datepicker)
4921
4922
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
4922
- // combobox's 2nd input will have noValidate set true.
4923
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
4923
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
4924
4924
  elem.validity = this.auroInputElements[1].validity;
4925
4925
  elem.errorMessage = this.auroInputElements[1].errorMessage;
4926
4926
  }
@@ -5929,6 +5929,7 @@ class BaseInput extends AuroElement$2 {
5929
5929
  * @returns {void}
5930
5930
  */
5931
5931
  reset() {
5932
+ this.value = undefined;
5932
5933
  this.validation.reset(this);
5933
5934
  }
5934
5935
 
@@ -4843,9 +4843,9 @@ class AuroFormValidation {
4843
4843
  elem.validity = this.auroInputElements[0].validity;
4844
4844
  elem.errorMessage = this.auroInputElements[0].errorMessage;
4845
4845
 
4846
+ // multiple input in one components (datepicker)
4846
4847
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
4847
- // combobox's 2nd input will have noValidate set true.
4848
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
4848
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
4849
4849
  elem.validity = this.auroInputElements[1].validity;
4850
4850
  elem.errorMessage = this.auroInputElements[1].errorMessage;
4851
4851
  }
@@ -5854,6 +5854,7 @@ class BaseInput extends AuroElement$2 {
5854
5854
  * @returns {void}
5855
5855
  */
5856
5856
  reset() {
5857
+ this.value = undefined;
5857
5858
  this.validation.reset(this);
5858
5859
  }
5859
5860
 
@@ -4767,9 +4767,9 @@ class AuroFormValidation {
4767
4767
  elem.validity = this.auroInputElements[0].validity;
4768
4768
  elem.errorMessage = this.auroInputElements[0].errorMessage;
4769
4769
 
4770
+ // multiple input in one components (datepicker)
4770
4771
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
4771
- // combobox's 2nd input will have noValidate set true.
4772
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
4772
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
4773
4773
  elem.validity = this.auroInputElements[1].validity;
4774
4774
  elem.errorMessage = this.auroInputElements[1].errorMessage;
4775
4775
  }
@@ -5778,6 +5778,7 @@ class BaseInput extends AuroElement$2 {
5778
5778
  * @returns {void}
5779
5779
  */
5780
5780
  reset() {
5781
+ this.value = undefined;
5781
5782
  this.validation.reset(this);
5782
5783
  }
5783
5784
 
@@ -4767,9 +4767,9 @@ class AuroFormValidation {
4767
4767
  elem.validity = this.auroInputElements[0].validity;
4768
4768
  elem.errorMessage = this.auroInputElements[0].errorMessage;
4769
4769
 
4770
+ // multiple input in one components (datepicker)
4770
4771
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
4771
- // combobox's 2nd input will have noValidate set true.
4772
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
4772
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
4773
4773
  elem.validity = this.auroInputElements[1].validity;
4774
4774
  elem.errorMessage = this.auroInputElements[1].errorMessage;
4775
4775
  }
@@ -5778,6 +5778,7 @@ class BaseInput extends AuroElement$2 {
5778
5778
  * @returns {void}
5779
5779
  */
5780
5780
  reset() {
5781
+ this.value = undefined;
5781
5782
  this.validation.reset(this);
5782
5783
  }
5783
5784
 
@@ -1155,9 +1155,9 @@ class AuroFormValidation {
1155
1155
  elem.validity = this.auroInputElements[0].validity;
1156
1156
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1157
1157
 
1158
+ // multiple input in one components (datepicker)
1158
1159
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1159
- // combobox's 2nd input will have noValidate set true.
1160
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1160
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1161
1161
  elem.validity = this.auroInputElements[1].validity;
1162
1162
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1163
1163
  }
@@ -1130,9 +1130,9 @@ class AuroFormValidation {
1130
1130
  elem.validity = this.auroInputElements[0].validity;
1131
1131
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1132
1132
 
1133
+ // multiple input in one components (datepicker)
1133
1134
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1134
- // combobox's 2nd input will have noValidate set true.
1135
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1135
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1136
1136
  elem.validity = this.auroInputElements[1].validity;
1137
1137
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1138
1138
  }
@@ -1083,9 +1083,9 @@ class AuroFormValidation {
1083
1083
  elem.validity = this.auroInputElements[0].validity;
1084
1084
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1085
1085
 
1086
+ // multiple input in one components (datepicker)
1086
1087
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1087
- // combobox's 2nd input will have noValidate set true.
1088
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1088
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1089
1089
  elem.validity = this.auroInputElements[1].validity;
1090
1090
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1091
1091
  }
@@ -1083,9 +1083,9 @@ class AuroFormValidation {
1083
1083
  elem.validity = this.auroInputElements[0].validity;
1084
1084
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1085
1085
 
1086
+ // multiple input in one components (datepicker)
1086
1087
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1087
- // combobox's 2nd input will have noValidate set true.
1088
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1088
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1089
1089
  elem.validity = this.auroInputElements[1].validity;
1090
1090
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1091
1091
  }
@@ -1011,9 +1011,9 @@ class AuroFormValidation {
1011
1011
  elem.validity = this.auroInputElements[0].validity;
1012
1012
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1013
1013
 
1014
+ // multiple input in one components (datepicker)
1014
1015
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1015
- // combobox's 2nd input will have noValidate set true.
1016
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1016
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1017
1017
  elem.validity = this.auroInputElements[1].validity;
1018
1018
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1019
1019
  }
@@ -8706,7 +8706,7 @@ class AuroSelect extends AuroElement$4 {
8706
8706
  */
8707
8707
  renderNativeSelect() {
8708
8708
  return u`
8709
- <div class="nativeSelectWrapper util_displayHidden">
8709
+ <div class="nativeSelectWrapper util_displayHiddenVisually">
8710
8710
  <select
8711
8711
  tabindex="-1"
8712
8712
  id="${`native-select-${this.id || this.uniqueId}`}"
@@ -919,9 +919,9 @@ class AuroFormValidation {
919
919
  elem.validity = this.auroInputElements[0].validity;
920
920
  elem.errorMessage = this.auroInputElements[0].errorMessage;
921
921
 
922
+ // multiple input in one components (datepicker)
922
923
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
923
- // combobox's 2nd input will have noValidate set true.
924
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
924
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
925
925
  elem.validity = this.auroInputElements[1].validity;
926
926
  elem.errorMessage = this.auroInputElements[1].errorMessage;
927
927
  }
@@ -8614,7 +8614,7 @@ class AuroSelect extends AuroElement$4 {
8614
8614
  */
8615
8615
  renderNativeSelect() {
8616
8616
  return u`
8617
- <div class="nativeSelectWrapper util_displayHidden">
8617
+ <div class="nativeSelectWrapper util_displayHiddenVisually">
8618
8618
  <select
8619
8619
  tabindex="-1"
8620
8620
  id="${`native-select-${this.id || this.uniqueId}`}"
@@ -879,9 +879,9 @@ class AuroFormValidation {
879
879
  elem.validity = this.auroInputElements[0].validity;
880
880
  elem.errorMessage = this.auroInputElements[0].errorMessage;
881
881
 
882
+ // multiple input in one components (datepicker)
882
883
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
883
- // combobox's 2nd input will have noValidate set true.
884
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
884
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
885
885
  elem.validity = this.auroInputElements[1].validity;
886
886
  elem.errorMessage = this.auroInputElements[1].errorMessage;
887
887
  }
@@ -8568,7 +8568,7 @@ class AuroSelect extends AuroElement$3 {
8568
8568
  */
8569
8569
  renderNativeSelect() {
8570
8570
  return html`
8571
- <div class="nativeSelectWrapper util_displayHidden">
8571
+ <div class="nativeSelectWrapper util_displayHiddenVisually">
8572
8572
  <select
8573
8573
  tabindex="-1"
8574
8574
  id="${`native-select-${this.id || this.uniqueId}`}"
@@ -879,9 +879,9 @@ class AuroFormValidation {
879
879
  elem.validity = this.auroInputElements[0].validity;
880
880
  elem.errorMessage = this.auroInputElements[0].errorMessage;
881
881
 
882
+ // multiple input in one components (datepicker)
882
883
  // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
883
- // combobox's 2nd input will have noValidate set true.
884
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
884
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
885
885
  elem.validity = this.auroInputElements[1].validity;
886
886
  elem.errorMessage = this.auroInputElements[1].errorMessage;
887
887
  }
@@ -8568,7 +8568,7 @@ class AuroSelect extends AuroElement$3 {
8568
8568
  */
8569
8569
  renderNativeSelect() {
8570
8570
  return html`
8571
- <div class="nativeSelectWrapper util_displayHidden">
8571
+ <div class="nativeSelectWrapper util_displayHiddenVisually">
8572
8572
  <select
8573
8573
  tabindex="-1"
8574
8574
  id="${`native-select-${this.id || this.uniqueId}`}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr987.0",
3
+ "version": "0.0.0-pr988.0",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {