@aurodesignsystem-dev/auro-formkit 0.0.0-pr1166.0 → 0.0.0-pr1167.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 +91 -1080
- package/components/bibtemplate/dist/registered.js +91 -1080
- package/components/checkbox/demo/api.min.js +26 -0
- package/components/checkbox/demo/index.min.js +26 -0
- package/components/checkbox/dist/index.js +26 -0
- package/components/checkbox/dist/registered.js +26 -0
- package/components/combobox/demo/api.min.js +959 -2872
- package/components/combobox/demo/index.min.js +959 -2872
- package/components/combobox/dist/index.js +929 -2842
- package/components/combobox/dist/registered.js +929 -2842
- package/components/counter/demo/api.md +11 -4
- package/components/counter/demo/api.min.js +5508 -7435
- package/components/counter/demo/index.min.js +5508 -7435
- package/components/counter/dist/auro-counter-button.d.ts +2 -11
- package/components/counter/dist/auro-counter.d.ts +8 -1
- package/components/counter/dist/index.js +5536 -7463
- package/components/counter/dist/registered.js +5536 -7463
- package/components/datepicker/demo/api.md +112 -27
- package/components/datepicker/demo/api.min.js +10343 -13252
- package/components/datepicker/demo/index.min.js +10343 -13252
- package/components/datepicker/dist/auro-datepicker.d.ts +2 -0
- package/components/datepicker/dist/index.js +10420 -13329
- package/components/datepicker/dist/registered.js +10420 -13329
- package/components/dropdown/demo/api.min.js +28 -2
- package/components/dropdown/demo/index.min.js +28 -2
- package/components/dropdown/dist/index.js +28 -2
- package/components/dropdown/dist/registered.js +28 -2
- package/components/form/demo/api.min.js +13 -0
- package/components/form/demo/index.min.js +13 -0
- package/components/form/dist/index.js +13 -0
- package/components/form/dist/registered.js +13 -0
- package/components/helptext/dist/index.js +13 -0
- package/components/helptext/dist/registered.js +13 -0
- package/components/input/demo/api.min.js +183 -1159
- package/components/input/demo/index.min.js +183 -1159
- package/components/input/dist/index.js +146 -1122
- package/components/input/dist/registered.js +146 -1122
- package/components/menu/demo/api.min.js +13 -0
- package/components/menu/demo/index.min.js +13 -0
- package/components/menu/dist/index.js +13 -0
- package/components/menu/dist/registered.js +13 -0
- package/components/radio/demo/api.min.js +26 -0
- package/components/radio/demo/index.min.js +26 -0
- package/components/radio/dist/index.js +26 -0
- package/components/radio/dist/registered.js +26 -0
- package/components/select/demo/api.min.js +273 -1210
- package/components/select/demo/index.min.js +273 -1210
- package/components/select/dist/index.js +246 -1183
- package/components/select/dist/registered.js +246 -1183
- package/package.json +3 -3
|
@@ -155,6 +155,19 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
155
155
|
|
|
156
156
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
157
157
|
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Gets the text content of a named slot.
|
|
161
|
+
* @returns {String}
|
|
162
|
+
* @private
|
|
163
|
+
*/
|
|
164
|
+
getSlotText(elem, name) {
|
|
165
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
166
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
167
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
168
|
+
|
|
169
|
+
return text || null;
|
|
170
|
+
}
|
|
158
171
|
};
|
|
159
172
|
|
|
160
173
|
/**
|
|
@@ -1984,7 +1997,7 @@ class AuroFloatingUI {
|
|
|
1984
1997
|
document.body.style.overflow = 'hidden'; // hide body's scrollbar
|
|
1985
1998
|
|
|
1986
1999
|
// Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
|
|
1987
|
-
this.element.bib.style.transform = `translateY(${visualViewport
|
|
2000
|
+
this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
|
|
1988
2001
|
} else {
|
|
1989
2002
|
document.body.style.overflow = '';
|
|
1990
2003
|
}
|
|
@@ -2017,7 +2030,7 @@ class AuroFloatingUI {
|
|
|
2017
2030
|
bibContent.style.width = '';
|
|
2018
2031
|
bibContent.style.height = '';
|
|
2019
2032
|
bibContent.style.maxWidth = '';
|
|
2020
|
-
bibContent.style.maxHeight = `${window
|
|
2033
|
+
bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
|
|
2021
2034
|
this.configureTrial = 0;
|
|
2022
2035
|
} else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
|
|
2023
2036
|
this.configureTrial += 1;
|
|
@@ -3419,6 +3432,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
3419
3432
|
|
|
3420
3433
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
3421
3434
|
}
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* Gets the text content of a named slot.
|
|
3438
|
+
* @returns {String}
|
|
3439
|
+
* @private
|
|
3440
|
+
*/
|
|
3441
|
+
getSlotText(elem, name) {
|
|
3442
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
3443
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
3444
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
3445
|
+
|
|
3446
|
+
return text || null;
|
|
3447
|
+
}
|
|
3422
3448
|
}
|
|
3423
3449
|
|
|
3424
3450
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -130,6 +130,19 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
130
130
|
|
|
131
131
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
132
132
|
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Gets the text content of a named slot.
|
|
136
|
+
* @returns {String}
|
|
137
|
+
* @private
|
|
138
|
+
*/
|
|
139
|
+
getSlotText(elem, name) {
|
|
140
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
141
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
142
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
143
|
+
|
|
144
|
+
return text || null;
|
|
145
|
+
}
|
|
133
146
|
};
|
|
134
147
|
|
|
135
148
|
/**
|
|
@@ -1959,7 +1972,7 @@ class AuroFloatingUI {
|
|
|
1959
1972
|
document.body.style.overflow = 'hidden'; // hide body's scrollbar
|
|
1960
1973
|
|
|
1961
1974
|
// Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
|
|
1962
|
-
this.element.bib.style.transform = `translateY(${visualViewport
|
|
1975
|
+
this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
|
|
1963
1976
|
} else {
|
|
1964
1977
|
document.body.style.overflow = '';
|
|
1965
1978
|
}
|
|
@@ -1992,7 +2005,7 @@ class AuroFloatingUI {
|
|
|
1992
2005
|
bibContent.style.width = '';
|
|
1993
2006
|
bibContent.style.height = '';
|
|
1994
2007
|
bibContent.style.maxWidth = '';
|
|
1995
|
-
bibContent.style.maxHeight = `${window
|
|
2008
|
+
bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
|
|
1996
2009
|
this.configureTrial = 0;
|
|
1997
2010
|
} else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
|
|
1998
2011
|
this.configureTrial += 1;
|
|
@@ -3394,6 +3407,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
3394
3407
|
|
|
3395
3408
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
3396
3409
|
}
|
|
3410
|
+
|
|
3411
|
+
/**
|
|
3412
|
+
* Gets the text content of a named slot.
|
|
3413
|
+
* @returns {String}
|
|
3414
|
+
* @private
|
|
3415
|
+
*/
|
|
3416
|
+
getSlotText(elem, name) {
|
|
3417
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
3418
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
3419
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
3420
|
+
|
|
3421
|
+
return text || null;
|
|
3422
|
+
}
|
|
3397
3423
|
}
|
|
3398
3424
|
|
|
3399
3425
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -72,6 +72,19 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
72
72
|
|
|
73
73
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
74
74
|
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Gets the text content of a named slot.
|
|
78
|
+
* @returns {String}
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
81
|
+
getSlotText(elem, name) {
|
|
82
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
83
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
84
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
85
|
+
|
|
86
|
+
return text || null;
|
|
87
|
+
}
|
|
75
88
|
};
|
|
76
89
|
|
|
77
90
|
/**
|
|
@@ -1901,7 +1914,7 @@ class AuroFloatingUI {
|
|
|
1901
1914
|
document.body.style.overflow = 'hidden'; // hide body's scrollbar
|
|
1902
1915
|
|
|
1903
1916
|
// Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
|
|
1904
|
-
this.element.bib.style.transform = `translateY(${visualViewport
|
|
1917
|
+
this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
|
|
1905
1918
|
} else {
|
|
1906
1919
|
document.body.style.overflow = '';
|
|
1907
1920
|
}
|
|
@@ -1934,7 +1947,7 @@ class AuroFloatingUI {
|
|
|
1934
1947
|
bibContent.style.width = '';
|
|
1935
1948
|
bibContent.style.height = '';
|
|
1936
1949
|
bibContent.style.maxWidth = '';
|
|
1937
|
-
bibContent.style.maxHeight = `${window
|
|
1950
|
+
bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
|
|
1938
1951
|
this.configureTrial = 0;
|
|
1939
1952
|
} else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
|
|
1940
1953
|
this.configureTrial += 1;
|
|
@@ -3330,6 +3343,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
3330
3343
|
|
|
3331
3344
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
3332
3345
|
}
|
|
3346
|
+
|
|
3347
|
+
/**
|
|
3348
|
+
* Gets the text content of a named slot.
|
|
3349
|
+
* @returns {String}
|
|
3350
|
+
* @private
|
|
3351
|
+
*/
|
|
3352
|
+
getSlotText(elem, name) {
|
|
3353
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
3354
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
3355
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
3356
|
+
|
|
3357
|
+
return text || null;
|
|
3358
|
+
}
|
|
3333
3359
|
}
|
|
3334
3360
|
|
|
3335
3361
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -72,6 +72,19 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
72
72
|
|
|
73
73
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
74
74
|
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Gets the text content of a named slot.
|
|
78
|
+
* @returns {String}
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
81
|
+
getSlotText(elem, name) {
|
|
82
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
83
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
84
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
85
|
+
|
|
86
|
+
return text || null;
|
|
87
|
+
}
|
|
75
88
|
};
|
|
76
89
|
|
|
77
90
|
/**
|
|
@@ -1901,7 +1914,7 @@ class AuroFloatingUI {
|
|
|
1901
1914
|
document.body.style.overflow = 'hidden'; // hide body's scrollbar
|
|
1902
1915
|
|
|
1903
1916
|
// Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
|
|
1904
|
-
this.element.bib.style.transform = `translateY(${visualViewport
|
|
1917
|
+
this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
|
|
1905
1918
|
} else {
|
|
1906
1919
|
document.body.style.overflow = '';
|
|
1907
1920
|
}
|
|
@@ -1934,7 +1947,7 @@ class AuroFloatingUI {
|
|
|
1934
1947
|
bibContent.style.width = '';
|
|
1935
1948
|
bibContent.style.height = '';
|
|
1936
1949
|
bibContent.style.maxWidth = '';
|
|
1937
|
-
bibContent.style.maxHeight = `${window
|
|
1950
|
+
bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
|
|
1938
1951
|
this.configureTrial = 0;
|
|
1939
1952
|
} else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
|
|
1940
1953
|
this.configureTrial += 1;
|
|
@@ -3330,6 +3343,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
3330
3343
|
|
|
3331
3344
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
3332
3345
|
}
|
|
3346
|
+
|
|
3347
|
+
/**
|
|
3348
|
+
* Gets the text content of a named slot.
|
|
3349
|
+
* @returns {String}
|
|
3350
|
+
* @private
|
|
3351
|
+
*/
|
|
3352
|
+
getSlotText(elem, name) {
|
|
3353
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
3354
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
3355
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
3356
|
+
|
|
3357
|
+
return text || null;
|
|
3358
|
+
}
|
|
3333
3359
|
}
|
|
3334
3360
|
|
|
3335
3361
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -94,6 +94,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
|
|
95
95
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Gets the text content of a named slot.
|
|
100
|
+
* @returns {String}
|
|
101
|
+
* @private
|
|
102
|
+
*/
|
|
103
|
+
getSlotText(elem, name) {
|
|
104
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
105
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
106
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
107
|
+
|
|
108
|
+
return text || null;
|
|
109
|
+
}
|
|
97
110
|
}
|
|
98
111
|
|
|
99
112
|
/* eslint-disable no-underscore-dangle,max-lines */
|
|
@@ -94,6 +94,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
|
|
95
95
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Gets the text content of a named slot.
|
|
100
|
+
* @returns {String}
|
|
101
|
+
* @private
|
|
102
|
+
*/
|
|
103
|
+
getSlotText(elem, name) {
|
|
104
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
105
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
106
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
107
|
+
|
|
108
|
+
return text || null;
|
|
109
|
+
}
|
|
97
110
|
}
|
|
98
111
|
|
|
99
112
|
/* eslint-disable no-underscore-dangle,max-lines */
|
|
@@ -70,6 +70,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
70
70
|
|
|
71
71
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Gets the text content of a named slot.
|
|
76
|
+
* @returns {String}
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
79
|
+
getSlotText(elem, name) {
|
|
80
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
81
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
82
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
83
|
+
|
|
84
|
+
return text || null;
|
|
85
|
+
}
|
|
73
86
|
}
|
|
74
87
|
|
|
75
88
|
/* eslint-disable no-underscore-dangle,max-lines */
|
|
@@ -70,6 +70,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
70
70
|
|
|
71
71
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Gets the text content of a named slot.
|
|
76
|
+
* @returns {String}
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
79
|
+
getSlotText(elem, name) {
|
|
80
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
81
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
82
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
83
|
+
|
|
84
|
+
return text || null;
|
|
85
|
+
}
|
|
73
86
|
}
|
|
74
87
|
|
|
75
88
|
/* eslint-disable no-underscore-dangle,max-lines */
|
|
@@ -74,6 +74,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
74
74
|
|
|
75
75
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Gets the text content of a named slot.
|
|
80
|
+
* @returns {String}
|
|
81
|
+
* @private
|
|
82
|
+
*/
|
|
83
|
+
getSlotText(elem, name) {
|
|
84
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
85
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
86
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
87
|
+
|
|
88
|
+
return text || null;
|
|
89
|
+
}
|
|
77
90
|
}
|
|
78
91
|
|
|
79
92
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -74,6 +74,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
74
74
|
|
|
75
75
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Gets the text content of a named slot.
|
|
80
|
+
* @returns {String}
|
|
81
|
+
* @private
|
|
82
|
+
*/
|
|
83
|
+
getSlotText(elem, name) {
|
|
84
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
85
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
86
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
87
|
+
|
|
88
|
+
return text || null;
|
|
89
|
+
}
|
|
77
90
|
}
|
|
78
91
|
|
|
79
92
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|