@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.
Files changed (51) hide show
  1. package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +1080 -91
  3. package/components/bibtemplate/dist/registered.js +1080 -91
  4. package/components/checkbox/demo/api.min.js +8 -26
  5. package/components/checkbox/demo/index.min.js +8 -26
  6. package/components/checkbox/dist/index.js +8 -26
  7. package/components/checkbox/dist/registered.js +8 -26
  8. package/components/combobox/demo/api.min.js +2894 -965
  9. package/components/combobox/demo/index.min.js +2894 -965
  10. package/components/combobox/dist/index.js +2858 -929
  11. package/components/combobox/dist/registered.js +2858 -929
  12. package/components/counter/demo/api.md +4 -11
  13. package/components/counter/demo/api.min.js +7359 -5424
  14. package/components/counter/demo/index.min.js +7359 -5424
  15. package/components/counter/dist/auro-counter-button.d.ts +11 -2
  16. package/components/counter/dist/auro-counter.d.ts +1 -8
  17. package/components/counter/dist/index.js +4342 -2407
  18. package/components/counter/dist/registered.js +4342 -2407
  19. package/components/datepicker/demo/api.md +18 -65
  20. package/components/datepicker/demo/api.min.js +10672 -7747
  21. package/components/datepicker/demo/index.min.js +10672 -7747
  22. package/components/datepicker/dist/auro-datepicker.d.ts +0 -1
  23. package/components/datepicker/dist/index.js +9400 -6475
  24. package/components/datepicker/dist/registered.js +9400 -6475
  25. package/components/dropdown/demo/api.min.js +2 -28
  26. package/components/dropdown/demo/index.min.js +2 -28
  27. package/components/dropdown/dist/index.js +2 -28
  28. package/components/dropdown/dist/registered.js +2 -28
  29. package/components/form/demo/api.min.js +0 -13
  30. package/components/form/demo/index.min.js +0 -13
  31. package/components/form/dist/index.js +0 -13
  32. package/components/form/dist/registered.js +0 -13
  33. package/components/helptext/dist/index.js +0 -13
  34. package/components/helptext/dist/registered.js +0 -13
  35. package/components/input/demo/api.min.js +1167 -183
  36. package/components/input/demo/index.min.js +1167 -183
  37. package/components/input/dist/index.js +1130 -146
  38. package/components/input/dist/registered.js +1130 -146
  39. package/components/menu/demo/api.min.js +0 -13
  40. package/components/menu/demo/index.min.js +0 -13
  41. package/components/menu/dist/index.js +0 -13
  42. package/components/menu/dist/registered.js +0 -13
  43. package/components/radio/demo/api.min.js +9 -27
  44. package/components/radio/demo/index.min.js +9 -27
  45. package/components/radio/dist/index.js +9 -27
  46. package/components/radio/dist/registered.js +9 -27
  47. package/components/select/demo/api.min.js +1225 -280
  48. package/components/select/demo/index.min.js +1225 -280
  49. package/components/select/dist/index.js +1190 -245
  50. package/components/select/dist/registered.js +1190 -245
  51. package/package.json +3 -3
@@ -155,19 +155,6 @@ 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
- }
171
158
  };
172
159
 
173
160
  /**
@@ -1997,7 +1984,7 @@ class AuroFloatingUI {
1997
1984
  document.body.style.overflow = 'hidden'; // hide body's scrollbar
1998
1985
 
1999
1986
  // Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
2000
- this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
1987
+ this.element.bib.style.transform = `translateY(${visualViewport.offsetTop}px)`;
2001
1988
  } else {
2002
1989
  document.body.style.overflow = '';
2003
1990
  }
@@ -2030,7 +2017,7 @@ class AuroFloatingUI {
2030
2017
  bibContent.style.width = '';
2031
2018
  bibContent.style.height = '';
2032
2019
  bibContent.style.maxWidth = '';
2033
- bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
2020
+ bibContent.style.maxHeight = `${window.visualViewport.height}px`;
2034
2021
  this.configureTrial = 0;
2035
2022
  } else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
2036
2023
  this.configureTrial += 1;
@@ -3432,19 +3419,6 @@ class AuroLibraryRuntimeUtils {
3432
3419
 
3433
3420
  return elemTag === tag || elem.hasAttribute(tag);
3434
3421
  }
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
- }
3448
3422
  }
3449
3423
 
3450
3424
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -130,19 +130,6 @@ 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
- }
146
133
  };
147
134
 
148
135
  /**
@@ -1972,7 +1959,7 @@ class AuroFloatingUI {
1972
1959
  document.body.style.overflow = 'hidden'; // hide body's scrollbar
1973
1960
 
1974
1961
  // Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
1975
- this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
1962
+ this.element.bib.style.transform = `translateY(${visualViewport.offsetTop}px)`;
1976
1963
  } else {
1977
1964
  document.body.style.overflow = '';
1978
1965
  }
@@ -2005,7 +1992,7 @@ class AuroFloatingUI {
2005
1992
  bibContent.style.width = '';
2006
1993
  bibContent.style.height = '';
2007
1994
  bibContent.style.maxWidth = '';
2008
- bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
1995
+ bibContent.style.maxHeight = `${window.visualViewport.height}px`;
2009
1996
  this.configureTrial = 0;
2010
1997
  } else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
2011
1998
  this.configureTrial += 1;
@@ -3407,19 +3394,6 @@ class AuroLibraryRuntimeUtils {
3407
3394
 
3408
3395
  return elemTag === tag || elem.hasAttribute(tag);
3409
3396
  }
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
- }
3423
3397
  }
3424
3398
 
3425
3399
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -72,19 +72,6 @@ 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
- }
88
75
  };
89
76
 
90
77
  /**
@@ -1914,7 +1901,7 @@ class AuroFloatingUI {
1914
1901
  document.body.style.overflow = 'hidden'; // hide body's scrollbar
1915
1902
 
1916
1903
  // Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
1917
- this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
1904
+ this.element.bib.style.transform = `translateY(${visualViewport.offsetTop}px)`;
1918
1905
  } else {
1919
1906
  document.body.style.overflow = '';
1920
1907
  }
@@ -1947,7 +1934,7 @@ class AuroFloatingUI {
1947
1934
  bibContent.style.width = '';
1948
1935
  bibContent.style.height = '';
1949
1936
  bibContent.style.maxWidth = '';
1950
- bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
1937
+ bibContent.style.maxHeight = `${window.visualViewport.height}px`;
1951
1938
  this.configureTrial = 0;
1952
1939
  } else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
1953
1940
  this.configureTrial += 1;
@@ -3343,19 +3330,6 @@ class AuroLibraryRuntimeUtils {
3343
3330
 
3344
3331
  return elemTag === tag || elem.hasAttribute(tag);
3345
3332
  }
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
- }
3359
3333
  }
3360
3334
 
3361
3335
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -72,19 +72,6 @@ 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
- }
88
75
  };
89
76
 
90
77
  /**
@@ -1914,7 +1901,7 @@ class AuroFloatingUI {
1914
1901
  document.body.style.overflow = 'hidden'; // hide body's scrollbar
1915
1902
 
1916
1903
  // Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
1917
- this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
1904
+ this.element.bib.style.transform = `translateY(${visualViewport.offsetTop}px)`;
1918
1905
  } else {
1919
1906
  document.body.style.overflow = '';
1920
1907
  }
@@ -1947,7 +1934,7 @@ class AuroFloatingUI {
1947
1934
  bibContent.style.width = '';
1948
1935
  bibContent.style.height = '';
1949
1936
  bibContent.style.maxWidth = '';
1950
- bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
1937
+ bibContent.style.maxHeight = `${window.visualViewport.height}px`;
1951
1938
  this.configureTrial = 0;
1952
1939
  } else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
1953
1940
  this.configureTrial += 1;
@@ -3343,19 +3330,6 @@ class AuroLibraryRuntimeUtils {
3343
3330
 
3344
3331
  return elemTag === tag || elem.hasAttribute(tag);
3345
3332
  }
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
- }
3359
3333
  }
3360
3334
 
3361
3335
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -94,19 +94,6 @@ 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
- }
110
97
  }
111
98
 
112
99
  /* eslint-disable no-underscore-dangle,max-lines */
@@ -94,19 +94,6 @@ 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
- }
110
97
  }
111
98
 
112
99
  /* eslint-disable no-underscore-dangle,max-lines */
@@ -70,19 +70,6 @@ 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
- }
86
73
  }
87
74
 
88
75
  /* eslint-disable no-underscore-dangle,max-lines */
@@ -70,19 +70,6 @@ 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
- }
86
73
  }
87
74
 
88
75
  /* eslint-disable no-underscore-dangle,max-lines */
@@ -74,19 +74,6 @@ 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
- }
90
77
  }
91
78
 
92
79
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -74,19 +74,6 @@ 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
- }
90
77
  }
91
78
 
92
79
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license