@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
|
@@ -242,19 +242,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
242
242
|
|
|
243
243
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
244
244
|
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Gets the text content of a named slot.
|
|
248
|
-
* @returns {String}
|
|
249
|
-
* @private
|
|
250
|
-
*/
|
|
251
|
-
getSlotText(elem, name) {
|
|
252
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
253
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
254
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
255
|
-
|
|
256
|
-
return text || null;
|
|
257
|
-
}
|
|
258
245
|
};
|
|
259
246
|
|
|
260
247
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -202,19 +202,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
202
202
|
|
|
203
203
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
204
204
|
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Gets the text content of a named slot.
|
|
208
|
-
* @returns {String}
|
|
209
|
-
* @private
|
|
210
|
-
*/
|
|
211
|
-
getSlotText(elem, name) {
|
|
212
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
213
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
214
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
215
|
-
|
|
216
|
-
return text || null;
|
|
217
|
-
}
|
|
218
205
|
};
|
|
219
206
|
|
|
220
207
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -181,19 +181,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
181
181
|
|
|
182
182
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Gets the text content of a named slot.
|
|
187
|
-
* @returns {String}
|
|
188
|
-
* @private
|
|
189
|
-
*/
|
|
190
|
-
getSlotText(elem, name) {
|
|
191
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
192
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
193
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
194
|
-
|
|
195
|
-
return text || null;
|
|
196
|
-
}
|
|
197
184
|
};
|
|
198
185
|
|
|
199
186
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -181,19 +181,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
181
181
|
|
|
182
182
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Gets the text content of a named slot.
|
|
187
|
-
* @returns {String}
|
|
188
|
-
* @private
|
|
189
|
-
*/
|
|
190
|
-
getSlotText(elem, name) {
|
|
191
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
192
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
193
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
194
|
-
|
|
195
|
-
return text || null;
|
|
196
|
-
}
|
|
197
184
|
};
|
|
198
185
|
|
|
199
186
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -144,19 +144,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
144
144
|
|
|
145
145
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Gets the text content of a named slot.
|
|
150
|
-
* @returns {String}
|
|
151
|
-
* @private
|
|
152
|
-
*/
|
|
153
|
-
getSlotText(elem, name) {
|
|
154
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
155
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
156
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
157
|
-
|
|
158
|
-
return text || null;
|
|
159
|
-
}
|
|
160
147
|
};
|
|
161
148
|
|
|
162
149
|
/* eslint-disable max-lines */
|
|
@@ -1133,6 +1120,14 @@ class AuroFormValidation {
|
|
|
1133
1120
|
if (typeof elem.value === "string") {
|
|
1134
1121
|
hasValue = elem.value && elem.value.length > 0;
|
|
1135
1122
|
}
|
|
1123
|
+
|
|
1124
|
+
if (typeof elem.value === "boolean") {
|
|
1125
|
+
hasValue = elem.value || elem.value === false;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
if (typeof elem.value === "number") {
|
|
1129
|
+
hasValue = !isNaN(elem.value) && elem.value !== null;
|
|
1130
|
+
}
|
|
1136
1131
|
|
|
1137
1132
|
// Check array value types for having a value
|
|
1138
1133
|
if (Array.isArray(elem.value)) {
|
|
@@ -1149,6 +1144,7 @@ class AuroFormValidation {
|
|
|
1149
1144
|
}
|
|
1150
1145
|
}
|
|
1151
1146
|
|
|
1147
|
+
console.log(elem, hasValue);
|
|
1152
1148
|
if (!hasValue && elem.required && elem.touched) {
|
|
1153
1149
|
elem.validity = 'valueMissing';
|
|
1154
1150
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
@@ -1371,19 +1367,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1371
1367
|
|
|
1372
1368
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1373
1369
|
}
|
|
1374
|
-
|
|
1375
|
-
/**
|
|
1376
|
-
* Gets the text content of a named slot.
|
|
1377
|
-
* @returns {String}
|
|
1378
|
-
* @private
|
|
1379
|
-
*/
|
|
1380
|
-
getSlotText(elem, name) {
|
|
1381
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
1382
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
1383
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
1384
|
-
|
|
1385
|
-
return text || null;
|
|
1386
|
-
}
|
|
1387
1370
|
}
|
|
1388
1371
|
|
|
1389
1372
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -1684,7 +1667,7 @@ class AuroRadioGroup extends i$2 {
|
|
|
1684
1667
|
* @returns {void}
|
|
1685
1668
|
*/
|
|
1686
1669
|
handleSelection(event) {
|
|
1687
|
-
if (event.target.value) {
|
|
1670
|
+
if (event.target.value !== null || event.target.value !== undefined) {
|
|
1688
1671
|
this.value = event.target.value;
|
|
1689
1672
|
} else {
|
|
1690
1673
|
this.value = '';
|
|
@@ -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 */
|
|
@@ -1108,6 +1095,14 @@ class AuroFormValidation {
|
|
|
1108
1095
|
if (typeof elem.value === "string") {
|
|
1109
1096
|
hasValue = elem.value && elem.value.length > 0;
|
|
1110
1097
|
}
|
|
1098
|
+
|
|
1099
|
+
if (typeof elem.value === "boolean") {
|
|
1100
|
+
hasValue = elem.value || elem.value === false;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
if (typeof elem.value === "number") {
|
|
1104
|
+
hasValue = !isNaN(elem.value) && elem.value !== null;
|
|
1105
|
+
}
|
|
1111
1106
|
|
|
1112
1107
|
// Check array value types for having a value
|
|
1113
1108
|
if (Array.isArray(elem.value)) {
|
|
@@ -1124,6 +1119,7 @@ class AuroFormValidation {
|
|
|
1124
1119
|
}
|
|
1125
1120
|
}
|
|
1126
1121
|
|
|
1122
|
+
console.log(elem, hasValue);
|
|
1127
1123
|
if (!hasValue && elem.required && elem.touched) {
|
|
1128
1124
|
elem.validity = 'valueMissing';
|
|
1129
1125
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
@@ -1346,19 +1342,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1346
1342
|
|
|
1347
1343
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1348
1344
|
}
|
|
1349
|
-
|
|
1350
|
-
/**
|
|
1351
|
-
* Gets the text content of a named slot.
|
|
1352
|
-
* @returns {String}
|
|
1353
|
-
* @private
|
|
1354
|
-
*/
|
|
1355
|
-
getSlotText(elem, name) {
|
|
1356
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
1357
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
1358
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
1359
|
-
|
|
1360
|
-
return text || null;
|
|
1361
|
-
}
|
|
1362
1345
|
}
|
|
1363
1346
|
|
|
1364
1347
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -1659,7 +1642,7 @@ class AuroRadioGroup extends i$2 {
|
|
|
1659
1642
|
* @returns {void}
|
|
1660
1643
|
*/
|
|
1661
1644
|
handleSelection(event) {
|
|
1662
|
-
if (event.target.value) {
|
|
1645
|
+
if (event.target.value !== null || event.target.value !== undefined) {
|
|
1663
1646
|
this.value = event.target.value;
|
|
1664
1647
|
} else {
|
|
1665
1648
|
this.value = '';
|
|
@@ -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 */
|
|
@@ -1061,6 +1048,14 @@ class AuroFormValidation {
|
|
|
1061
1048
|
if (typeof elem.value === "string") {
|
|
1062
1049
|
hasValue = elem.value && elem.value.length > 0;
|
|
1063
1050
|
}
|
|
1051
|
+
|
|
1052
|
+
if (typeof elem.value === "boolean") {
|
|
1053
|
+
hasValue = elem.value || elem.value === false;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
if (typeof elem.value === "number") {
|
|
1057
|
+
hasValue = !isNaN(elem.value) && elem.value !== null;
|
|
1058
|
+
}
|
|
1064
1059
|
|
|
1065
1060
|
// Check array value types for having a value
|
|
1066
1061
|
if (Array.isArray(elem.value)) {
|
|
@@ -1077,6 +1072,7 @@ class AuroFormValidation {
|
|
|
1077
1072
|
}
|
|
1078
1073
|
}
|
|
1079
1074
|
|
|
1075
|
+
console.log(elem, hasValue);
|
|
1080
1076
|
if (!hasValue && elem.required && elem.touched) {
|
|
1081
1077
|
elem.validity = 'valueMissing';
|
|
1082
1078
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
@@ -1299,19 +1295,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1299
1295
|
|
|
1300
1296
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1301
1297
|
}
|
|
1302
|
-
|
|
1303
|
-
/**
|
|
1304
|
-
* Gets the text content of a named slot.
|
|
1305
|
-
* @returns {String}
|
|
1306
|
-
* @private
|
|
1307
|
-
*/
|
|
1308
|
-
getSlotText(elem, name) {
|
|
1309
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
1310
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
1311
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
1312
|
-
|
|
1313
|
-
return text || null;
|
|
1314
|
-
}
|
|
1315
1298
|
}
|
|
1316
1299
|
|
|
1317
1300
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -1612,7 +1595,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1612
1595
|
* @returns {void}
|
|
1613
1596
|
*/
|
|
1614
1597
|
handleSelection(event) {
|
|
1615
|
-
if (event.target.value) {
|
|
1598
|
+
if (event.target.value !== null || event.target.value !== undefined) {
|
|
1616
1599
|
this.value = event.target.value;
|
|
1617
1600
|
} else {
|
|
1618
1601
|
this.value = '';
|
|
@@ -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 */
|
|
@@ -1061,6 +1048,14 @@ class AuroFormValidation {
|
|
|
1061
1048
|
if (typeof elem.value === "string") {
|
|
1062
1049
|
hasValue = elem.value && elem.value.length > 0;
|
|
1063
1050
|
}
|
|
1051
|
+
|
|
1052
|
+
if (typeof elem.value === "boolean") {
|
|
1053
|
+
hasValue = elem.value || elem.value === false;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
if (typeof elem.value === "number") {
|
|
1057
|
+
hasValue = !isNaN(elem.value) && elem.value !== null;
|
|
1058
|
+
}
|
|
1064
1059
|
|
|
1065
1060
|
// Check array value types for having a value
|
|
1066
1061
|
if (Array.isArray(elem.value)) {
|
|
@@ -1077,6 +1072,7 @@ class AuroFormValidation {
|
|
|
1077
1072
|
}
|
|
1078
1073
|
}
|
|
1079
1074
|
|
|
1075
|
+
console.log(elem, hasValue);
|
|
1080
1076
|
if (!hasValue && elem.required && elem.touched) {
|
|
1081
1077
|
elem.validity = 'valueMissing';
|
|
1082
1078
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
@@ -1299,19 +1295,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1299
1295
|
|
|
1300
1296
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1301
1297
|
}
|
|
1302
|
-
|
|
1303
|
-
/**
|
|
1304
|
-
* Gets the text content of a named slot.
|
|
1305
|
-
* @returns {String}
|
|
1306
|
-
* @private
|
|
1307
|
-
*/
|
|
1308
|
-
getSlotText(elem, name) {
|
|
1309
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
1310
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
1311
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
1312
|
-
|
|
1313
|
-
return text || null;
|
|
1314
|
-
}
|
|
1315
1298
|
}
|
|
1316
1299
|
|
|
1317
1300
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -1612,7 +1595,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1612
1595
|
* @returns {void}
|
|
1613
1596
|
*/
|
|
1614
1597
|
handleSelection(event) {
|
|
1615
|
-
if (event.target.value) {
|
|
1598
|
+
if (event.target.value !== null || event.target.value !== undefined) {
|
|
1616
1599
|
this.value = event.target.value;
|
|
1617
1600
|
} else {
|
|
1618
1601
|
this.value = '';
|