@aurodesignsystem-dev/auro-formkit 0.0.0-pr1167.2 → 0.0.0-pr1169.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/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 +8 -26
- package/components/checkbox/demo/index.min.js +8 -26
- package/components/checkbox/dist/index.js +8 -26
- package/components/checkbox/dist/registered.js +8 -26
- package/components/combobox/demo/api.min.js +2894 -965
- package/components/combobox/demo/index.min.js +2894 -965
- package/components/combobox/dist/index.js +2858 -929
- package/components/combobox/dist/registered.js +2858 -929
- package/components/counter/demo/api.md +4 -11
- package/components/counter/demo/api.min.js +7359 -5424
- package/components/counter/demo/index.min.js +7359 -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 +4342 -2407
- package/components/counter/dist/registered.js +4342 -2407
- package/components/datepicker/demo/api.md +18 -65
- package/components/datepicker/demo/api.min.js +10672 -7747
- package/components/datepicker/demo/index.min.js +10672 -7747
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -1
- package/components/datepicker/dist/index.js +9400 -6475
- package/components/datepicker/dist/registered.js +9400 -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 +1167 -183
- package/components/input/demo/index.min.js +1167 -183
- package/components/input/dist/index.js +1130 -146
- package/components/input/dist/registered.js +1130 -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 +9 -27
- package/components/radio/demo/index.min.js +9 -27
- package/components/radio/dist/index.js +9 -27
- package/components/radio/dist/registered.js +9 -27
- package/components/select/demo/api.min.js +1225 -280
- package/components/select/demo/index.min.js +1225 -280
- package/components/select/dist/index.js +1190 -245
- package/components/select/dist/registered.js +1190 -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)) {
|
|
@@ -1369,19 +1364,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1369
1364
|
|
|
1370
1365
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1371
1366
|
}
|
|
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
1367
|
}
|
|
1386
1368
|
|
|
1387
1369
|
// 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)) {
|
|
@@ -1361,19 +1356,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1361
1356
|
|
|
1362
1357
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1363
1358
|
}
|
|
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
1359
|
}
|
|
1378
1360
|
|
|
1379
1361
|
// 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)) {
|
|
@@ -1314,19 +1309,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1314
1309
|
|
|
1315
1310
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1316
1311
|
}
|
|
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
1312
|
}
|
|
1331
1313
|
|
|
1332
1314
|
// 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)) {
|
|
@@ -1314,19 +1309,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
1314
1309
|
|
|
1315
1310
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1316
1311
|
}
|
|
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
1312
|
}
|
|
1331
1313
|
|
|
1332
1314
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|