@aurodesignsystem/auro-formkit 3.4.0 → 3.4.1
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.
- package/CHANGELOG.md +7 -0
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +14 -1
- package/components/checkbox/demo/index.min.js +14 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/index.js +14 -1
- package/components/checkbox/dist/registered.js +14 -1
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.min.js +28 -2
- package/components/combobox/demo/index.min.js +28 -2
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/index.js +28 -2
- package/components/combobox/dist/registered.js +28 -2
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +14 -1
- package/components/counter/demo/index.min.js +14 -1
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/index.js +14 -1
- package/components/counter/dist/registered.js +14 -1
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.min.js +28 -2
- package/components/datepicker/demo/index.min.js +28 -2
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/index.js +28 -2
- package/components/datepicker/dist/registered.js +28 -2
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/readme.md +1 -1
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +14 -1
- package/components/input/demo/index.min.js +14 -1
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/index.js +14 -1
- package/components/input/dist/registered.js +14 -1
- package/components/menu/README.md +1 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +14 -1
- package/components/radio/demo/index.min.js +14 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/index.js +14 -1
- package/components/radio/dist/registered.js +14 -1
- package/components/select/README.md +1 -1
- package/components/select/demo/api.min.js +14 -1
- package/components/select/demo/index.min.js +14 -1
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/index.js +14 -1
- package/components/select/dist/registered.js +14 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
## [3.4.1](https://github.com/AlaskaAirlines/auro-formkit/compare/v3.4.0...v3.4.1) (2025-05-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update check for hasValue to accommodate array value types ([3cf8d4d](https://github.com/AlaskaAirlines/auro-formkit/commit/3cf8d4df0b089f63e16bf65bf46d3710b7c279b9))
|
|
9
|
+
|
|
3
10
|
# [3.4.0](https://github.com/AlaskaAirlines/auro-formkit/compare/v3.3.0...v3.4.0) (2025-05-12)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -106,7 +106,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
106
106
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
107
107
|
|
|
108
108
|
```html
|
|
109
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
109
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-checkbox/+esm"></script>
|
|
110
110
|
```
|
|
111
111
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
112
112
|
|
|
@@ -1040,7 +1040,20 @@ class AuroFormValidation {
|
|
|
1040
1040
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1041
1041
|
*/
|
|
1042
1042
|
|
|
1043
|
-
let hasValue =
|
|
1043
|
+
let hasValue = false;
|
|
1044
|
+
|
|
1045
|
+
// Check string for having a value
|
|
1046
|
+
if (typeof elem.value === "string") {
|
|
1047
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
// Check array value types for having a value
|
|
1051
|
+
if (Array.isArray(elem.value)) {
|
|
1052
|
+
hasValue = Boolean(
|
|
1053
|
+
elem.value.length > 0 &&
|
|
1054
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1055
|
+
);
|
|
1056
|
+
}
|
|
1044
1057
|
|
|
1045
1058
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1046
1059
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -1032,7 +1032,20 @@ class AuroFormValidation {
|
|
|
1032
1032
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1033
1033
|
*/
|
|
1034
1034
|
|
|
1035
|
-
let hasValue =
|
|
1035
|
+
let hasValue = false;
|
|
1036
|
+
|
|
1037
|
+
// Check string for having a value
|
|
1038
|
+
if (typeof elem.value === "string") {
|
|
1039
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
// Check array value types for having a value
|
|
1043
|
+
if (Array.isArray(elem.value)) {
|
|
1044
|
+
hasValue = Boolean(
|
|
1045
|
+
elem.value.length > 0 &&
|
|
1046
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1047
|
+
);
|
|
1048
|
+
}
|
|
1036
1049
|
|
|
1037
1050
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1038
1051
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -106,7 +106,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
106
106
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
107
107
|
|
|
108
108
|
```html
|
|
109
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
109
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-checkbox/+esm"></script>
|
|
110
110
|
```
|
|
111
111
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
112
112
|
|
|
@@ -985,7 +985,20 @@ class AuroFormValidation {
|
|
|
985
985
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
986
986
|
*/
|
|
987
987
|
|
|
988
|
-
let hasValue =
|
|
988
|
+
let hasValue = false;
|
|
989
|
+
|
|
990
|
+
// Check string for having a value
|
|
991
|
+
if (typeof elem.value === "string") {
|
|
992
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
// Check array value types for having a value
|
|
996
|
+
if (Array.isArray(elem.value)) {
|
|
997
|
+
hasValue = Boolean(
|
|
998
|
+
elem.value.length > 0 &&
|
|
999
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1000
|
+
);
|
|
1001
|
+
}
|
|
989
1002
|
|
|
990
1003
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
991
1004
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -985,7 +985,20 @@ class AuroFormValidation {
|
|
|
985
985
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
986
986
|
*/
|
|
987
987
|
|
|
988
|
-
let hasValue =
|
|
988
|
+
let hasValue = false;
|
|
989
|
+
|
|
990
|
+
// Check string for having a value
|
|
991
|
+
if (typeof elem.value === "string") {
|
|
992
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
// Check array value types for having a value
|
|
996
|
+
if (Array.isArray(elem.value)) {
|
|
997
|
+
hasValue = Boolean(
|
|
998
|
+
elem.value.length > 0 &&
|
|
999
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1000
|
+
);
|
|
1001
|
+
}
|
|
989
1002
|
|
|
990
1003
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
991
1004
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
111
111
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
112
112
|
|
|
113
113
|
```html
|
|
114
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-combobox/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
|
@@ -963,7 +963,20 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
963
963
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
964
964
|
*/
|
|
965
965
|
|
|
966
|
-
let hasValue =
|
|
966
|
+
let hasValue = false;
|
|
967
|
+
|
|
968
|
+
// Check string for having a value
|
|
969
|
+
if (typeof elem.value === "string") {
|
|
970
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
// Check array value types for having a value
|
|
974
|
+
if (Array.isArray(elem.value)) {
|
|
975
|
+
hasValue = Boolean(
|
|
976
|
+
elem.value.length > 0 &&
|
|
977
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
978
|
+
);
|
|
979
|
+
}
|
|
967
980
|
|
|
968
981
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
969
982
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -9525,7 +9538,20 @@ class AuroFormValidation {
|
|
|
9525
9538
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
9526
9539
|
*/
|
|
9527
9540
|
|
|
9528
|
-
let hasValue =
|
|
9541
|
+
let hasValue = false;
|
|
9542
|
+
|
|
9543
|
+
// Check string for having a value
|
|
9544
|
+
if (typeof elem.value === "string") {
|
|
9545
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
9546
|
+
}
|
|
9547
|
+
|
|
9548
|
+
// Check array value types for having a value
|
|
9549
|
+
if (Array.isArray(elem.value)) {
|
|
9550
|
+
hasValue = Boolean(
|
|
9551
|
+
elem.value.length > 0 &&
|
|
9552
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
9553
|
+
);
|
|
9554
|
+
}
|
|
9529
9555
|
|
|
9530
9556
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
9531
9557
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -821,7 +821,20 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
821
821
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
822
822
|
*/
|
|
823
823
|
|
|
824
|
-
let hasValue =
|
|
824
|
+
let hasValue = false;
|
|
825
|
+
|
|
826
|
+
// Check string for having a value
|
|
827
|
+
if (typeof elem.value === "string") {
|
|
828
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// Check array value types for having a value
|
|
832
|
+
if (Array.isArray(elem.value)) {
|
|
833
|
+
hasValue = Boolean(
|
|
834
|
+
elem.value.length > 0 &&
|
|
835
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
836
|
+
);
|
|
837
|
+
}
|
|
825
838
|
|
|
826
839
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
827
840
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -9383,7 +9396,20 @@ class AuroFormValidation {
|
|
|
9383
9396
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
9384
9397
|
*/
|
|
9385
9398
|
|
|
9386
|
-
let hasValue =
|
|
9399
|
+
let hasValue = false;
|
|
9400
|
+
|
|
9401
|
+
// Check string for having a value
|
|
9402
|
+
if (typeof elem.value === "string") {
|
|
9403
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
9404
|
+
}
|
|
9405
|
+
|
|
9406
|
+
// Check array value types for having a value
|
|
9407
|
+
if (Array.isArray(elem.value)) {
|
|
9408
|
+
hasValue = Boolean(
|
|
9409
|
+
elem.value.length > 0 &&
|
|
9410
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
9411
|
+
);
|
|
9412
|
+
}
|
|
9387
9413
|
|
|
9388
9414
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
9389
9415
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
111
111
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
112
112
|
|
|
113
113
|
```html
|
|
114
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-combobox/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
|
@@ -771,7 +771,20 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
771
771
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
772
772
|
*/
|
|
773
773
|
|
|
774
|
-
let hasValue =
|
|
774
|
+
let hasValue = false;
|
|
775
|
+
|
|
776
|
+
// Check string for having a value
|
|
777
|
+
if (typeof elem.value === "string") {
|
|
778
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
// Check array value types for having a value
|
|
782
|
+
if (Array.isArray(elem.value)) {
|
|
783
|
+
hasValue = Boolean(
|
|
784
|
+
elem.value.length > 0 &&
|
|
785
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
786
|
+
);
|
|
787
|
+
}
|
|
775
788
|
|
|
776
789
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
777
790
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -9301,7 +9314,20 @@ class AuroFormValidation {
|
|
|
9301
9314
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
9302
9315
|
*/
|
|
9303
9316
|
|
|
9304
|
-
let hasValue =
|
|
9317
|
+
let hasValue = false;
|
|
9318
|
+
|
|
9319
|
+
// Check string for having a value
|
|
9320
|
+
if (typeof elem.value === "string") {
|
|
9321
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
9322
|
+
}
|
|
9323
|
+
|
|
9324
|
+
// Check array value types for having a value
|
|
9325
|
+
if (Array.isArray(elem.value)) {
|
|
9326
|
+
hasValue = Boolean(
|
|
9327
|
+
elem.value.length > 0 &&
|
|
9328
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
9329
|
+
);
|
|
9330
|
+
}
|
|
9305
9331
|
|
|
9306
9332
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
9307
9333
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -771,7 +771,20 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
771
771
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
772
772
|
*/
|
|
773
773
|
|
|
774
|
-
let hasValue =
|
|
774
|
+
let hasValue = false;
|
|
775
|
+
|
|
776
|
+
// Check string for having a value
|
|
777
|
+
if (typeof elem.value === "string") {
|
|
778
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
// Check array value types for having a value
|
|
782
|
+
if (Array.isArray(elem.value)) {
|
|
783
|
+
hasValue = Boolean(
|
|
784
|
+
elem.value.length > 0 &&
|
|
785
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
786
|
+
);
|
|
787
|
+
}
|
|
775
788
|
|
|
776
789
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
777
790
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -9301,7 +9314,20 @@ class AuroFormValidation {
|
|
|
9301
9314
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
9302
9315
|
*/
|
|
9303
9316
|
|
|
9304
|
-
let hasValue =
|
|
9317
|
+
let hasValue = false;
|
|
9318
|
+
|
|
9319
|
+
// Check string for having a value
|
|
9320
|
+
if (typeof elem.value === "string") {
|
|
9321
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
9322
|
+
}
|
|
9323
|
+
|
|
9324
|
+
// Check array value types for having a value
|
|
9325
|
+
if (Array.isArray(elem.value)) {
|
|
9326
|
+
hasValue = Boolean(
|
|
9327
|
+
elem.value.length > 0 &&
|
|
9328
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
9329
|
+
);
|
|
9330
|
+
}
|
|
9305
9331
|
|
|
9306
9332
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
9307
9333
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-counter/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -1619,7 +1619,20 @@ class AuroFormValidation {
|
|
|
1619
1619
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1620
1620
|
*/
|
|
1621
1621
|
|
|
1622
|
-
let hasValue =
|
|
1622
|
+
let hasValue = false;
|
|
1623
|
+
|
|
1624
|
+
// Check string for having a value
|
|
1625
|
+
if (typeof elem.value === "string") {
|
|
1626
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
// Check array value types for having a value
|
|
1630
|
+
if (Array.isArray(elem.value)) {
|
|
1631
|
+
hasValue = Boolean(
|
|
1632
|
+
elem.value.length > 0 &&
|
|
1633
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1634
|
+
);
|
|
1635
|
+
}
|
|
1623
1636
|
|
|
1624
1637
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1625
1638
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -1619,7 +1619,20 @@ class AuroFormValidation {
|
|
|
1619
1619
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1620
1620
|
*/
|
|
1621
1621
|
|
|
1622
|
-
let hasValue =
|
|
1622
|
+
let hasValue = false;
|
|
1623
|
+
|
|
1624
|
+
// Check string for having a value
|
|
1625
|
+
if (typeof elem.value === "string") {
|
|
1626
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
// Check array value types for having a value
|
|
1630
|
+
if (Array.isArray(elem.value)) {
|
|
1631
|
+
hasValue = Boolean(
|
|
1632
|
+
elem.value.length > 0 &&
|
|
1633
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1634
|
+
);
|
|
1635
|
+
}
|
|
1623
1636
|
|
|
1624
1637
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1625
1638
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-counter/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -1572,7 +1572,20 @@ class AuroFormValidation {
|
|
|
1572
1572
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1573
1573
|
*/
|
|
1574
1574
|
|
|
1575
|
-
let hasValue =
|
|
1575
|
+
let hasValue = false;
|
|
1576
|
+
|
|
1577
|
+
// Check string for having a value
|
|
1578
|
+
if (typeof elem.value === "string") {
|
|
1579
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
// Check array value types for having a value
|
|
1583
|
+
if (Array.isArray(elem.value)) {
|
|
1584
|
+
hasValue = Boolean(
|
|
1585
|
+
elem.value.length > 0 &&
|
|
1586
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1587
|
+
);
|
|
1588
|
+
}
|
|
1576
1589
|
|
|
1577
1590
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1578
1591
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -1572,7 +1572,20 @@ class AuroFormValidation {
|
|
|
1572
1572
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1573
1573
|
*/
|
|
1574
1574
|
|
|
1575
|
-
let hasValue =
|
|
1575
|
+
let hasValue = false;
|
|
1576
|
+
|
|
1577
|
+
// Check string for having a value
|
|
1578
|
+
if (typeof elem.value === "string") {
|
|
1579
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
// Check array value types for having a value
|
|
1583
|
+
if (Array.isArray(elem.value)) {
|
|
1584
|
+
hasValue = Boolean(
|
|
1585
|
+
elem.value.length > 0 &&
|
|
1586
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1587
|
+
);
|
|
1588
|
+
}
|
|
1576
1589
|
|
|
1577
1590
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1578
1591
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
104
104
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-datepicker/+esm"></script>
|
|
108
108
|
```
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
110
110
|
|
|
@@ -1017,7 +1017,20 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
1017
1017
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1018
1018
|
*/
|
|
1019
1019
|
|
|
1020
|
-
let hasValue =
|
|
1020
|
+
let hasValue = false;
|
|
1021
|
+
|
|
1022
|
+
// Check string for having a value
|
|
1023
|
+
if (typeof elem.value === "string") {
|
|
1024
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
// Check array value types for having a value
|
|
1028
|
+
if (Array.isArray(elem.value)) {
|
|
1029
|
+
hasValue = Boolean(
|
|
1030
|
+
elem.value.length > 0 &&
|
|
1031
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1032
|
+
);
|
|
1033
|
+
}
|
|
1021
1034
|
|
|
1022
1035
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1023
1036
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -20995,7 +21008,20 @@ class AuroFormValidation {
|
|
|
20995
21008
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
20996
21009
|
*/
|
|
20997
21010
|
|
|
20998
|
-
let hasValue =
|
|
21011
|
+
let hasValue = false;
|
|
21012
|
+
|
|
21013
|
+
// Check string for having a value
|
|
21014
|
+
if (typeof elem.value === "string") {
|
|
21015
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
21016
|
+
}
|
|
21017
|
+
|
|
21018
|
+
// Check array value types for having a value
|
|
21019
|
+
if (Array.isArray(elem.value)) {
|
|
21020
|
+
hasValue = Boolean(
|
|
21021
|
+
elem.value.length > 0 &&
|
|
21022
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
21023
|
+
);
|
|
21024
|
+
}
|
|
20999
21025
|
|
|
21000
21026
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
21001
21027
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -758,7 +758,20 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
758
758
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
759
759
|
*/
|
|
760
760
|
|
|
761
|
-
let hasValue =
|
|
761
|
+
let hasValue = false;
|
|
762
|
+
|
|
763
|
+
// Check string for having a value
|
|
764
|
+
if (typeof elem.value === "string") {
|
|
765
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
// Check array value types for having a value
|
|
769
|
+
if (Array.isArray(elem.value)) {
|
|
770
|
+
hasValue = Boolean(
|
|
771
|
+
elem.value.length > 0 &&
|
|
772
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
773
|
+
);
|
|
774
|
+
}
|
|
762
775
|
|
|
763
776
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
764
777
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -20736,7 +20749,20 @@ class AuroFormValidation {
|
|
|
20736
20749
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
20737
20750
|
*/
|
|
20738
20751
|
|
|
20739
|
-
let hasValue =
|
|
20752
|
+
let hasValue = false;
|
|
20753
|
+
|
|
20754
|
+
// Check string for having a value
|
|
20755
|
+
if (typeof elem.value === "string") {
|
|
20756
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
20757
|
+
}
|
|
20758
|
+
|
|
20759
|
+
// Check array value types for having a value
|
|
20760
|
+
if (Array.isArray(elem.value)) {
|
|
20761
|
+
hasValue = Boolean(
|
|
20762
|
+
elem.value.length > 0 &&
|
|
20763
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
20764
|
+
);
|
|
20765
|
+
}
|
|
20740
20766
|
|
|
20741
20767
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
20742
20768
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
104
104
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-datepicker/+esm"></script>
|
|
108
108
|
```
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
110
110
|
|
|
@@ -732,7 +732,20 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
732
732
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
733
733
|
*/
|
|
734
734
|
|
|
735
|
-
let hasValue =
|
|
735
|
+
let hasValue = false;
|
|
736
|
+
|
|
737
|
+
// Check string for having a value
|
|
738
|
+
if (typeof elem.value === "string") {
|
|
739
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
// Check array value types for having a value
|
|
743
|
+
if (Array.isArray(elem.value)) {
|
|
744
|
+
hasValue = Boolean(
|
|
745
|
+
elem.value.length > 0 &&
|
|
746
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
747
|
+
);
|
|
748
|
+
}
|
|
736
749
|
|
|
737
750
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
738
751
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -20672,7 +20685,20 @@ class AuroFormValidation {
|
|
|
20672
20685
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
20673
20686
|
*/
|
|
20674
20687
|
|
|
20675
|
-
let hasValue =
|
|
20688
|
+
let hasValue = false;
|
|
20689
|
+
|
|
20690
|
+
// Check string for having a value
|
|
20691
|
+
if (typeof elem.value === "string") {
|
|
20692
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
20693
|
+
}
|
|
20694
|
+
|
|
20695
|
+
// Check array value types for having a value
|
|
20696
|
+
if (Array.isArray(elem.value)) {
|
|
20697
|
+
hasValue = Boolean(
|
|
20698
|
+
elem.value.length > 0 &&
|
|
20699
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
20700
|
+
);
|
|
20701
|
+
}
|
|
20676
20702
|
|
|
20677
20703
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
20678
20704
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -732,7 +732,20 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
732
732
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
733
733
|
*/
|
|
734
734
|
|
|
735
|
-
let hasValue =
|
|
735
|
+
let hasValue = false;
|
|
736
|
+
|
|
737
|
+
// Check string for having a value
|
|
738
|
+
if (typeof elem.value === "string") {
|
|
739
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
// Check array value types for having a value
|
|
743
|
+
if (Array.isArray(elem.value)) {
|
|
744
|
+
hasValue = Boolean(
|
|
745
|
+
elem.value.length > 0 &&
|
|
746
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
747
|
+
);
|
|
748
|
+
}
|
|
736
749
|
|
|
737
750
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
738
751
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -20672,7 +20685,20 @@ class AuroFormValidation {
|
|
|
20672
20685
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
20673
20686
|
*/
|
|
20674
20687
|
|
|
20675
|
-
let hasValue =
|
|
20688
|
+
let hasValue = false;
|
|
20689
|
+
|
|
20690
|
+
// Check string for having a value
|
|
20691
|
+
if (typeof elem.value === "string") {
|
|
20692
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
20693
|
+
}
|
|
20694
|
+
|
|
20695
|
+
// Check array value types for having a value
|
|
20696
|
+
if (Array.isArray(elem.value)) {
|
|
20697
|
+
hasValue = Boolean(
|
|
20698
|
+
elem.value.length > 0 &&
|
|
20699
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
20700
|
+
);
|
|
20701
|
+
}
|
|
20676
20702
|
|
|
20677
20703
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
20678
20704
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
107
107
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
110
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-dropdown/+esm"></script>
|
|
111
111
|
```
|
|
112
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
113
|
|
|
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
107
107
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
110
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-dropdown/+esm"></script>
|
|
111
111
|
```
|
|
112
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
113
|
|
|
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
109
109
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
112
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-form/+esm"></script>
|
|
113
113
|
```
|
|
114
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
115
|
|
|
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
109
109
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
112
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-form/+esm"></script>
|
|
113
113
|
```
|
|
114
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
115
|
|
|
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
99
99
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
102
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-input/+esm"></script>
|
|
103
103
|
```
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
@@ -4851,7 +4851,20 @@ class AuroFormValidation {
|
|
|
4851
4851
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
4852
4852
|
*/
|
|
4853
4853
|
|
|
4854
|
-
let hasValue =
|
|
4854
|
+
let hasValue = false;
|
|
4855
|
+
|
|
4856
|
+
// Check string for having a value
|
|
4857
|
+
if (typeof elem.value === "string") {
|
|
4858
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4861
|
+
// Check array value types for having a value
|
|
4862
|
+
if (Array.isArray(elem.value)) {
|
|
4863
|
+
hasValue = Boolean(
|
|
4864
|
+
elem.value.length > 0 &&
|
|
4865
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
4866
|
+
);
|
|
4867
|
+
}
|
|
4855
4868
|
|
|
4856
4869
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
4857
4870
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -4776,7 +4776,20 @@ class AuroFormValidation {
|
|
|
4776
4776
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
4777
4777
|
*/
|
|
4778
4778
|
|
|
4779
|
-
let hasValue =
|
|
4779
|
+
let hasValue = false;
|
|
4780
|
+
|
|
4781
|
+
// Check string for having a value
|
|
4782
|
+
if (typeof elem.value === "string") {
|
|
4783
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
// Check array value types for having a value
|
|
4787
|
+
if (Array.isArray(elem.value)) {
|
|
4788
|
+
hasValue = Boolean(
|
|
4789
|
+
elem.value.length > 0 &&
|
|
4790
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
4791
|
+
);
|
|
4792
|
+
}
|
|
4780
4793
|
|
|
4781
4794
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
4782
4795
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
99
99
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
102
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-input/+esm"></script>
|
|
103
103
|
```
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
@@ -4700,7 +4700,20 @@ class AuroFormValidation {
|
|
|
4700
4700
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
4701
4701
|
*/
|
|
4702
4702
|
|
|
4703
|
-
let hasValue =
|
|
4703
|
+
let hasValue = false;
|
|
4704
|
+
|
|
4705
|
+
// Check string for having a value
|
|
4706
|
+
if (typeof elem.value === "string") {
|
|
4707
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
4708
|
+
}
|
|
4709
|
+
|
|
4710
|
+
// Check array value types for having a value
|
|
4711
|
+
if (Array.isArray(elem.value)) {
|
|
4712
|
+
hasValue = Boolean(
|
|
4713
|
+
elem.value.length > 0 &&
|
|
4714
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
4715
|
+
);
|
|
4716
|
+
}
|
|
4704
4717
|
|
|
4705
4718
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
4706
4719
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -4700,7 +4700,20 @@ class AuroFormValidation {
|
|
|
4700
4700
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
4701
4701
|
*/
|
|
4702
4702
|
|
|
4703
|
-
let hasValue =
|
|
4703
|
+
let hasValue = false;
|
|
4704
|
+
|
|
4705
|
+
// Check string for having a value
|
|
4706
|
+
if (typeof elem.value === "string") {
|
|
4707
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
4708
|
+
}
|
|
4709
|
+
|
|
4710
|
+
// Check array value types for having a value
|
|
4711
|
+
if (Array.isArray(elem.value)) {
|
|
4712
|
+
hasValue = Boolean(
|
|
4713
|
+
elem.value.length > 0 &&
|
|
4714
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
4715
|
+
);
|
|
4716
|
+
}
|
|
4704
4717
|
|
|
4705
4718
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
4706
4719
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-menu/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-menu/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -100,7 +100,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
100
100
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
101
101
|
|
|
102
102
|
```html
|
|
103
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
103
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-radio/+esm"></script>
|
|
104
104
|
```
|
|
105
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
106
|
|
|
@@ -1075,7 +1075,20 @@ class AuroFormValidation {
|
|
|
1075
1075
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1076
1076
|
*/
|
|
1077
1077
|
|
|
1078
|
-
let hasValue =
|
|
1078
|
+
let hasValue = false;
|
|
1079
|
+
|
|
1080
|
+
// Check string for having a value
|
|
1081
|
+
if (typeof elem.value === "string") {
|
|
1082
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
// Check array value types for having a value
|
|
1086
|
+
if (Array.isArray(elem.value)) {
|
|
1087
|
+
hasValue = Boolean(
|
|
1088
|
+
elem.value.length > 0 &&
|
|
1089
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1090
|
+
);
|
|
1091
|
+
}
|
|
1079
1092
|
|
|
1080
1093
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1081
1094
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -1050,7 +1050,20 @@ class AuroFormValidation {
|
|
|
1050
1050
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1051
1051
|
*/
|
|
1052
1052
|
|
|
1053
|
-
let hasValue =
|
|
1053
|
+
let hasValue = false;
|
|
1054
|
+
|
|
1055
|
+
// Check string for having a value
|
|
1056
|
+
if (typeof elem.value === "string") {
|
|
1057
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
// Check array value types for having a value
|
|
1061
|
+
if (Array.isArray(elem.value)) {
|
|
1062
|
+
hasValue = Boolean(
|
|
1063
|
+
elem.value.length > 0 &&
|
|
1064
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1065
|
+
);
|
|
1066
|
+
}
|
|
1054
1067
|
|
|
1055
1068
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1056
1069
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -100,7 +100,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
100
100
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
101
101
|
|
|
102
102
|
```html
|
|
103
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
103
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-radio/+esm"></script>
|
|
104
104
|
```
|
|
105
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
106
|
|
|
@@ -1003,7 +1003,20 @@ class AuroFormValidation {
|
|
|
1003
1003
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1004
1004
|
*/
|
|
1005
1005
|
|
|
1006
|
-
let hasValue =
|
|
1006
|
+
let hasValue = false;
|
|
1007
|
+
|
|
1008
|
+
// Check string for having a value
|
|
1009
|
+
if (typeof elem.value === "string") {
|
|
1010
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
// Check array value types for having a value
|
|
1014
|
+
if (Array.isArray(elem.value)) {
|
|
1015
|
+
hasValue = Boolean(
|
|
1016
|
+
elem.value.length > 0 &&
|
|
1017
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1018
|
+
);
|
|
1019
|
+
}
|
|
1007
1020
|
|
|
1008
1021
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1009
1022
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -1003,7 +1003,20 @@ class AuroFormValidation {
|
|
|
1003
1003
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
1004
1004
|
*/
|
|
1005
1005
|
|
|
1006
|
-
let hasValue =
|
|
1006
|
+
let hasValue = false;
|
|
1007
|
+
|
|
1008
|
+
// Check string for having a value
|
|
1009
|
+
if (typeof elem.value === "string") {
|
|
1010
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
// Check array value types for having a value
|
|
1014
|
+
if (Array.isArray(elem.value)) {
|
|
1015
|
+
hasValue = Boolean(
|
|
1016
|
+
elem.value.length > 0 &&
|
|
1017
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
1018
|
+
);
|
|
1019
|
+
}
|
|
1007
1020
|
|
|
1008
1021
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1009
1022
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
111
111
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
112
112
|
|
|
113
113
|
```html
|
|
114
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-select/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
|
@@ -863,7 +863,20 @@ class AuroFormValidation {
|
|
|
863
863
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
864
864
|
*/
|
|
865
865
|
|
|
866
|
-
let hasValue =
|
|
866
|
+
let hasValue = false;
|
|
867
|
+
|
|
868
|
+
// Check string for having a value
|
|
869
|
+
if (typeof elem.value === "string") {
|
|
870
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
// Check array value types for having a value
|
|
874
|
+
if (Array.isArray(elem.value)) {
|
|
875
|
+
hasValue = Boolean(
|
|
876
|
+
elem.value.length > 0 &&
|
|
877
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
878
|
+
);
|
|
879
|
+
}
|
|
867
880
|
|
|
868
881
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
869
882
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -771,7 +771,20 @@ class AuroFormValidation {
|
|
|
771
771
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
772
772
|
*/
|
|
773
773
|
|
|
774
|
-
let hasValue =
|
|
774
|
+
let hasValue = false;
|
|
775
|
+
|
|
776
|
+
// Check string for having a value
|
|
777
|
+
if (typeof elem.value === "string") {
|
|
778
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
// Check array value types for having a value
|
|
782
|
+
if (Array.isArray(elem.value)) {
|
|
783
|
+
hasValue = Boolean(
|
|
784
|
+
elem.value.length > 0 &&
|
|
785
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
786
|
+
);
|
|
787
|
+
}
|
|
775
788
|
|
|
776
789
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
777
790
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
111
111
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
112
112
|
|
|
113
113
|
```html
|
|
114
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-select/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
|
@@ -730,7 +730,20 @@ class AuroFormValidation {
|
|
|
730
730
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
731
731
|
*/
|
|
732
732
|
|
|
733
|
-
let hasValue =
|
|
733
|
+
let hasValue = false;
|
|
734
|
+
|
|
735
|
+
// Check string for having a value
|
|
736
|
+
if (typeof elem.value === "string") {
|
|
737
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
// Check array value types for having a value
|
|
741
|
+
if (Array.isArray(elem.value)) {
|
|
742
|
+
hasValue = Boolean(
|
|
743
|
+
elem.value.length > 0 &&
|
|
744
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
745
|
+
);
|
|
746
|
+
}
|
|
734
747
|
|
|
735
748
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
736
749
|
if (this.auroInputElements?.length === 2) {
|
|
@@ -730,7 +730,20 @@ class AuroFormValidation {
|
|
|
730
730
|
* The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
|
|
731
731
|
*/
|
|
732
732
|
|
|
733
|
-
let hasValue =
|
|
733
|
+
let hasValue = false;
|
|
734
|
+
|
|
735
|
+
// Check string for having a value
|
|
736
|
+
if (typeof elem.value === "string") {
|
|
737
|
+
hasValue = elem.value && elem.value.length > 0;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
// Check array value types for having a value
|
|
741
|
+
if (Array.isArray(elem.value)) {
|
|
742
|
+
hasValue = Boolean(
|
|
743
|
+
elem.value.length > 0 &&
|
|
744
|
+
elem.value.some((value) => typeof value === "string" && value.length > 0)
|
|
745
|
+
);
|
|
746
|
+
}
|
|
734
747
|
|
|
735
748
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
736
749
|
if (this.auroInputElements?.length === 2) {
|
package/package.json
CHANGED