@aurodesignsystem-dev/auro-formkit 0.0.0-pr1167.2 → 0.0.0-pr1169.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.
- package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1080 -91
- package/components/bibtemplate/dist/registered.js +1080 -91
- package/components/checkbox/demo/api.min.js +9 -26
- package/components/checkbox/demo/index.min.js +9 -26
- package/components/checkbox/dist/index.js +9 -26
- package/components/checkbox/dist/registered.js +9 -26
- package/components/combobox/demo/api.min.js +2896 -965
- package/components/combobox/demo/index.min.js +2896 -965
- package/components/combobox/dist/index.js +2860 -929
- package/components/combobox/dist/registered.js +2860 -929
- package/components/counter/demo/api.md +4 -11
- package/components/counter/demo/api.min.js +7360 -5424
- package/components/counter/demo/index.min.js +7360 -5424
- package/components/counter/dist/auro-counter-button.d.ts +11 -2
- package/components/counter/dist/auro-counter.d.ts +1 -8
- package/components/counter/dist/index.js +4343 -2407
- package/components/counter/dist/registered.js +4343 -2407
- package/components/datepicker/demo/api.md +18 -65
- package/components/datepicker/demo/api.min.js +10674 -7747
- package/components/datepicker/demo/index.min.js +10674 -7747
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -1
- package/components/datepicker/dist/index.js +9402 -6475
- package/components/datepicker/dist/registered.js +9402 -6475
- package/components/dropdown/demo/api.min.js +2 -28
- package/components/dropdown/demo/index.min.js +2 -28
- package/components/dropdown/dist/index.js +2 -28
- package/components/dropdown/dist/registered.js +2 -28
- package/components/form/demo/api.min.js +0 -13
- package/components/form/demo/index.min.js +0 -13
- package/components/form/dist/index.js +0 -13
- package/components/form/dist/registered.js +0 -13
- package/components/helptext/dist/index.js +0 -13
- package/components/helptext/dist/registered.js +0 -13
- package/components/input/demo/api.min.js +1168 -183
- package/components/input/demo/index.min.js +1168 -183
- package/components/input/dist/index.js +1131 -146
- package/components/input/dist/registered.js +1131 -146
- package/components/menu/demo/api.min.js +0 -13
- package/components/menu/demo/index.min.js +0 -13
- package/components/menu/dist/index.js +0 -13
- package/components/menu/dist/registered.js +0 -13
- package/components/radio/demo/api.min.js +10 -27
- package/components/radio/demo/index.min.js +10 -27
- package/components/radio/dist/index.js +10 -27
- package/components/radio/dist/registered.js +10 -27
- package/components/select/demo/api.min.js +1226 -280
- package/components/select/demo/index.min.js +1226 -280
- package/components/select/dist/index.js +1191 -245
- package/components/select/dist/registered.js +1191 -245
- package/package.json +3 -3
|
@@ -127,19 +127,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
127
127
|
|
|
128
128
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Gets the text content of a named slot.
|
|
133
|
-
* @returns {String}
|
|
134
|
-
* @private
|
|
135
|
-
*/
|
|
136
|
-
getSlotText(elem, name) {
|
|
137
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
138
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
139
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
140
|
-
|
|
141
|
-
return text || null;
|
|
142
|
-
}
|
|
143
130
|
};
|
|
144
131
|
|
|
145
132
|
/* eslint-disable max-lines */
|
|
@@ -1127,6 +1114,14 @@ class AuroFormValidation {
|
|
|
1127
1114
|
if (typeof elem.value === "string") {
|
|
1128
1115
|
hasValue = elem.value && elem.value.length > 0;
|
|
1129
1116
|
}
|
|
1117
|
+
|
|
1118
|
+
if (typeof elem.value === "boolean") {
|
|
1119
|
+
hasValue = elem.value || elem.value === false;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
if (typeof elem.value === "number") {
|
|
1123
|
+
hasValue = !isNaN(elem.value) && elem.value !== null;
|
|
1124
|
+
}
|
|
1130
1125
|
|
|
1131
1126
|
// Check array value types for having a value
|
|
1132
1127
|
if (Array.isArray(elem.value)) {
|
|
@@ -1143,6 +1138,7 @@ class AuroFormValidation {
|
|
|
1143
1138
|
}
|
|
1144
1139
|
}
|
|
1145
1140
|
|
|
1141
|
+
console.log(elem, hasValue);
|
|
1146
1142
|
if (!hasValue && elem.required && elem.touched) {
|
|
1147
1143
|
elem.validity = 'valueMissing';
|
|
1148
1144
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
@@ -1369,19 +1365,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1369
1365
|
|
|
1370
1366
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1371
1367
|
}
|
|
1372
|
-
|
|
1373
|
-
/**
|
|
1374
|
-
* Gets the text content of a named slot.
|
|
1375
|
-
* @returns {String}
|
|
1376
|
-
* @private
|
|
1377
|
-
*/
|
|
1378
|
-
getSlotText(elem, name) {
|
|
1379
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
1380
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
1381
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
1382
|
-
|
|
1383
|
-
return text || null;
|
|
1384
|
-
}
|
|
1385
1368
|
}
|
|
1386
1369
|
|
|
1387
1370
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -119,19 +119,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
119
119
|
|
|
120
120
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Gets the text content of a named slot.
|
|
125
|
-
* @returns {String}
|
|
126
|
-
* @private
|
|
127
|
-
*/
|
|
128
|
-
getSlotText(elem, name) {
|
|
129
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
130
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
131
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
132
|
-
|
|
133
|
-
return text || null;
|
|
134
|
-
}
|
|
135
122
|
};
|
|
136
123
|
|
|
137
124
|
/* eslint-disable max-lines */
|
|
@@ -1119,6 +1106,14 @@ class AuroFormValidation {
|
|
|
1119
1106
|
if (typeof elem.value === "string") {
|
|
1120
1107
|
hasValue = elem.value && elem.value.length > 0;
|
|
1121
1108
|
}
|
|
1109
|
+
|
|
1110
|
+
if (typeof elem.value === "boolean") {
|
|
1111
|
+
hasValue = elem.value || elem.value === false;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
if (typeof elem.value === "number") {
|
|
1115
|
+
hasValue = !isNaN(elem.value) && elem.value !== null;
|
|
1116
|
+
}
|
|
1122
1117
|
|
|
1123
1118
|
// Check array value types for having a value
|
|
1124
1119
|
if (Array.isArray(elem.value)) {
|
|
@@ -1135,6 +1130,7 @@ class AuroFormValidation {
|
|
|
1135
1130
|
}
|
|
1136
1131
|
}
|
|
1137
1132
|
|
|
1133
|
+
console.log(elem, hasValue);
|
|
1138
1134
|
if (!hasValue && elem.required && elem.touched) {
|
|
1139
1135
|
elem.validity = 'valueMissing';
|
|
1140
1136
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
@@ -1361,19 +1357,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1361
1357
|
|
|
1362
1358
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1363
1359
|
}
|
|
1364
|
-
|
|
1365
|
-
/**
|
|
1366
|
-
* Gets the text content of a named slot.
|
|
1367
|
-
* @returns {String}
|
|
1368
|
-
* @private
|
|
1369
|
-
*/
|
|
1370
|
-
getSlotText(elem, name) {
|
|
1371
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
1372
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
1373
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
1374
|
-
|
|
1375
|
-
return text || null;
|
|
1376
|
-
}
|
|
1377
1360
|
}
|
|
1378
1361
|
|
|
1379
1362
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -79,19 +79,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
79
79
|
|
|
80
80
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Gets the text content of a named slot.
|
|
85
|
-
* @returns {String}
|
|
86
|
-
* @private
|
|
87
|
-
*/
|
|
88
|
-
getSlotText(elem, name) {
|
|
89
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
90
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
91
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
92
|
-
|
|
93
|
-
return text || null;
|
|
94
|
-
}
|
|
95
82
|
};
|
|
96
83
|
|
|
97
84
|
/* eslint-disable max-lines */
|
|
@@ -1072,6 +1059,14 @@ class AuroFormValidation {
|
|
|
1072
1059
|
if (typeof elem.value === "string") {
|
|
1073
1060
|
hasValue = elem.value && elem.value.length > 0;
|
|
1074
1061
|
}
|
|
1062
|
+
|
|
1063
|
+
if (typeof elem.value === "boolean") {
|
|
1064
|
+
hasValue = elem.value || elem.value === false;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
if (typeof elem.value === "number") {
|
|
1068
|
+
hasValue = !isNaN(elem.value) && elem.value !== null;
|
|
1069
|
+
}
|
|
1075
1070
|
|
|
1076
1071
|
// Check array value types for having a value
|
|
1077
1072
|
if (Array.isArray(elem.value)) {
|
|
@@ -1088,6 +1083,7 @@ class AuroFormValidation {
|
|
|
1088
1083
|
}
|
|
1089
1084
|
}
|
|
1090
1085
|
|
|
1086
|
+
console.log(elem, hasValue);
|
|
1091
1087
|
if (!hasValue && elem.required && elem.touched) {
|
|
1092
1088
|
elem.validity = 'valueMissing';
|
|
1093
1089
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
@@ -1314,19 +1310,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1314
1310
|
|
|
1315
1311
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1316
1312
|
}
|
|
1317
|
-
|
|
1318
|
-
/**
|
|
1319
|
-
* Gets the text content of a named slot.
|
|
1320
|
-
* @returns {String}
|
|
1321
|
-
* @private
|
|
1322
|
-
*/
|
|
1323
|
-
getSlotText(elem, name) {
|
|
1324
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
1325
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
1326
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
1327
|
-
|
|
1328
|
-
return text || null;
|
|
1329
|
-
}
|
|
1330
1313
|
}
|
|
1331
1314
|
|
|
1332
1315
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -79,19 +79,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
79
79
|
|
|
80
80
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Gets the text content of a named slot.
|
|
85
|
-
* @returns {String}
|
|
86
|
-
* @private
|
|
87
|
-
*/
|
|
88
|
-
getSlotText(elem, name) {
|
|
89
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
90
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
91
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
92
|
-
|
|
93
|
-
return text || null;
|
|
94
|
-
}
|
|
95
82
|
};
|
|
96
83
|
|
|
97
84
|
/* eslint-disable max-lines */
|
|
@@ -1072,6 +1059,14 @@ class AuroFormValidation {
|
|
|
1072
1059
|
if (typeof elem.value === "string") {
|
|
1073
1060
|
hasValue = elem.value && elem.value.length > 0;
|
|
1074
1061
|
}
|
|
1062
|
+
|
|
1063
|
+
if (typeof elem.value === "boolean") {
|
|
1064
|
+
hasValue = elem.value || elem.value === false;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
if (typeof elem.value === "number") {
|
|
1068
|
+
hasValue = !isNaN(elem.value) && elem.value !== null;
|
|
1069
|
+
}
|
|
1075
1070
|
|
|
1076
1071
|
// Check array value types for having a value
|
|
1077
1072
|
if (Array.isArray(elem.value)) {
|
|
@@ -1088,6 +1083,7 @@ class AuroFormValidation {
|
|
|
1088
1083
|
}
|
|
1089
1084
|
}
|
|
1090
1085
|
|
|
1086
|
+
console.log(elem, hasValue);
|
|
1091
1087
|
if (!hasValue && elem.required && elem.touched) {
|
|
1092
1088
|
elem.validity = 'valueMissing';
|
|
1093
1089
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
@@ -1314,19 +1310,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1314
1310
|
|
|
1315
1311
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1316
1312
|
}
|
|
1317
|
-
|
|
1318
|
-
/**
|
|
1319
|
-
* Gets the text content of a named slot.
|
|
1320
|
-
* @returns {String}
|
|
1321
|
-
* @private
|
|
1322
|
-
*/
|
|
1323
|
-
getSlotText(elem, name) {
|
|
1324
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
1325
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
1326
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
1327
|
-
|
|
1328
|
-
return text || null;
|
|
1329
|
-
}
|
|
1330
1313
|
}
|
|
1331
1314
|
|
|
1332
1315
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|