@aurodesignsystem/auro-formkit 1.6.0-beta.6 → 1.6.0-beta.7

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 (161) hide show
  1. package/.turbo/cache/01de6ab3df8b7e1e-meta.json +1 -0
  2. package/.turbo/cache/{754a6b5c5ce1ed00.tar.zst → 01de6ab3df8b7e1e.tar.zst} +0 -0
  3. package/.turbo/cache/10feda0f037804bb-meta.json +1 -1
  4. package/.turbo/cache/11079d2746265545-meta.json +1 -1
  5. package/.turbo/cache/11079d2746265545.tar.zst +0 -0
  6. package/.turbo/cache/115c4b73a12f5275-meta.json +1 -0
  7. package/.turbo/cache/115c4b73a12f5275.tar.zst +0 -0
  8. package/.turbo/cache/144e8e78657bf800-meta.json +1 -1
  9. package/.turbo/cache/18939b2c7c83b163-meta.json +1 -1
  10. package/.turbo/cache/1de685df0eaa39c8-meta.json +1 -1
  11. package/.turbo/cache/1ec139dcf090d547-meta.json +1 -1
  12. package/.turbo/cache/1f53ce3a28c56cdf-meta.json +1 -1
  13. package/.turbo/cache/23bf100310bd9f5a-meta.json +1 -1
  14. package/.turbo/cache/2900e7ec28e1488f-meta.json +1 -1
  15. package/.turbo/cache/296074aadfa2f8c9-meta.json +1 -1
  16. package/.turbo/cache/296074aadfa2f8c9.tar.zst +0 -0
  17. package/.turbo/cache/29e29355bf6fb4fd-meta.json +1 -1
  18. package/.turbo/cache/2cbcbc4a17387253-meta.json +1 -0
  19. package/.turbo/cache/2cbcbc4a17387253.tar.zst +0 -0
  20. package/.turbo/cache/2f6c898fbb51e995-meta.json +1 -1
  21. package/.turbo/cache/2f6c898fbb51e995.tar.zst +0 -0
  22. package/.turbo/cache/3073b96f6e4d867c-meta.json +1 -1
  23. package/.turbo/cache/33466ea2930c3714-meta.json +1 -1
  24. package/.turbo/cache/3426941a74b0731e-meta.json +1 -0
  25. package/.turbo/cache/{3f41d958c755a6f0.tar.zst → 3426941a74b0731e.tar.zst} +0 -0
  26. package/.turbo/cache/38b0799e2f7e62c5-meta.json +1 -0
  27. package/.turbo/cache/38b0799e2f7e62c5.tar.zst +0 -0
  28. package/.turbo/cache/3fbc89f461c495db-meta.json +1 -0
  29. package/.turbo/cache/3fbc89f461c495db.tar.zst +0 -0
  30. package/.turbo/cache/451e562c76f74ec6-meta.json +1 -1
  31. package/.turbo/cache/4520919609c97850-meta.json +1 -1
  32. package/.turbo/cache/452908d0b0b676bc-meta.json +1 -1
  33. package/.turbo/cache/48c197e39ed31fd2-meta.json +1 -1
  34. package/.turbo/cache/48c197e39ed31fd2.tar.zst +0 -0
  35. package/.turbo/cache/5058ecc7f1e34496-meta.json +1 -1
  36. package/.turbo/cache/5a66a99aa1344401-meta.json +1 -1
  37. package/.turbo/cache/5b66ce21630716cc-meta.json +1 -1
  38. package/.turbo/cache/6002b76d50b8d1ff-meta.json +1 -0
  39. package/.turbo/cache/6002b76d50b8d1ff.tar.zst +0 -0
  40. package/.turbo/cache/627e964e19b2bda5-meta.json +1 -0
  41. package/.turbo/cache/627e964e19b2bda5.tar.zst +0 -0
  42. package/.turbo/cache/6907ebaae4f3a96b-meta.json +1 -0
  43. package/.turbo/cache/6907ebaae4f3a96b.tar.zst +0 -0
  44. package/.turbo/cache/6f7175be597945f7-meta.json +1 -0
  45. package/.turbo/cache/6f7175be597945f7.tar.zst +0 -0
  46. package/.turbo/cache/70d7b72f15ee97a4-meta.json +1 -1
  47. package/.turbo/cache/7cfdc01c415c836c-meta.json +1 -0
  48. package/.turbo/cache/7cfdc01c415c836c.tar.zst +0 -0
  49. package/.turbo/cache/897b0d8a0c301207-meta.json +1 -1
  50. package/.turbo/cache/8b7cdb9a0d4c3112-meta.json +1 -1
  51. package/.turbo/cache/8e1f402b247ebed6-meta.json +1 -1
  52. package/.turbo/cache/8e1f402b247ebed6.tar.zst +0 -0
  53. package/.turbo/cache/90b8d9ccef5e09aa-meta.json +1 -1
  54. package/.turbo/cache/936bccb44ade3650-meta.json +1 -1
  55. package/.turbo/cache/94bcc4c6536ada9d-meta.json +1 -1
  56. package/.turbo/cache/990b9def0e83d33c-meta.json +1 -0
  57. package/.turbo/cache/990b9def0e83d33c.tar.zst +0 -0
  58. package/.turbo/cache/a532f4b8302ca13e-meta.json +1 -1
  59. package/.turbo/cache/a7bf477bbdabc7bc-meta.json +1 -1
  60. package/.turbo/cache/a90aa34f427a2f62-meta.json +1 -1
  61. package/.turbo/cache/aedda428051043c4-meta.json +1 -1
  62. package/.turbo/cache/afc38ab505ef6dbb-meta.json +1 -0
  63. package/.turbo/cache/{2ca214d032893e74.tar.zst → afc38ab505ef6dbb.tar.zst} +0 -0
  64. package/.turbo/cache/b1ed317b29e85c9d-meta.json +1 -0
  65. package/.turbo/cache/b1ed317b29e85c9d.tar.zst +0 -0
  66. package/.turbo/cache/b61416daf63fbaad-meta.json +1 -1
  67. package/.turbo/cache/b76edfbd1c076b0a-meta.json +1 -0
  68. package/.turbo/cache/b76edfbd1c076b0a.tar.zst +0 -0
  69. package/.turbo/cache/b9463532618cdc61-meta.json +1 -1
  70. package/.turbo/cache/bb3afea40c91e8ba-meta.json +1 -1
  71. package/.turbo/cache/c4df38a7e2cc767a-meta.json +1 -0
  72. package/.turbo/cache/{77bf3068f493ef24.tar.zst → c4df38a7e2cc767a.tar.zst} +0 -0
  73. package/.turbo/cache/c63dc7b6157da70b-meta.json +1 -1
  74. package/.turbo/cache/c8b63b6e8a190eb9-meta.json +1 -1
  75. package/.turbo/cache/d35b1eee9f2881af-meta.json +1 -1
  76. package/.turbo/cache/d5188c0fbe45d578-meta.json +1 -1
  77. package/.turbo/cache/e4b3ec56d4ae56ba-meta.json +1 -1
  78. package/.turbo/cache/e6f030eddf6fbf4e-meta.json +1 -1
  79. package/.turbo/cache/ff7e6d09efd93145-meta.json +1 -1
  80. package/.turbo/cache/ff7e6d09efd93145.tar.zst +0 -0
  81. package/CHANGELOG.md +19 -0
  82. package/components/checkbox/.turbo/turbo-build.log +3 -3
  83. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  84. package/components/combobox/.turbo/turbo-build.log +6 -3
  85. package/components/combobox/demo/api.html +1 -0
  86. package/components/combobox/demo/api.js +2 -0
  87. package/components/combobox/demo/api.md +73 -0
  88. package/components/combobox/demo/api.min.js +962 -835
  89. package/components/combobox/demo/index.min.js +920 -832
  90. package/components/combobox/dist/auro-combobox.d.ts +20 -0
  91. package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
  92. package/components/combobox/dist/index.js +58 -22
  93. package/components/combobox/src/auro-combobox.js +58 -22
  94. package/components/counter/.turbo/turbo-build.log +2 -2
  95. package/components/counter/.turbo/turbo-bundler.log +3 -3
  96. package/components/datepicker/.turbo/turbo-build.log +2 -2
  97. package/components/dropdown/.turbo/turbo-build.log +3 -3
  98. package/components/dropdown/.turbo/turbo-bundler.log +3 -3
  99. package/components/form/.turbo/turbo-build.log +3 -3
  100. package/components/form/.turbo/turbo-bundler.log +3 -3
  101. package/components/input/.turbo/turbo-build.log +3 -3
  102. package/components/input/.turbo/turbo-bundler.log +3 -3
  103. package/components/menu/.turbo/turbo-build.log +6 -3
  104. package/components/menu/.turbo/turbo-bundler.log +3 -3
  105. package/components/menu/demo/api.html +2 -0
  106. package/components/menu/demo/api.js +2 -0
  107. package/components/menu/demo/api.md +164 -22
  108. package/components/menu/demo/api.min.js +912 -853
  109. package/components/menu/demo/index.min.js +905 -853
  110. package/components/menu/dist/auro-menu.d.ts +28 -2
  111. package/components/menu/dist/auro-menu.d.ts.map +1 -1
  112. package/components/menu/dist/auro-menuoption.d.ts +1 -1
  113. package/components/menu/dist/index.js +905 -853
  114. package/components/menu/src/auro-menu.js +57 -7
  115. package/components/menu/src/auro-menuoption.js +1 -1
  116. package/components/menu/src/styles/style-menu-css.js +1 -1
  117. package/components/menu/src/styles/style-menu.css +21 -3
  118. package/components/menu/src/styles/style-menu.scss +25 -3
  119. package/components/radio/.turbo/turbo-build.log +3 -3
  120. package/components/radio/.turbo/turbo-bundler.log +3 -3
  121. package/components/select/.turbo/turbo-build.log +6 -3
  122. package/components/select/demo/api.html +1 -0
  123. package/components/select/demo/api.js +2 -0
  124. package/components/select/demo/api.md +66 -0
  125. package/components/select/demo/api.min.js +927 -811
  126. package/components/select/demo/index.min.js +895 -811
  127. package/components/select/dist/auro-select.d.ts +19 -0
  128. package/components/select/dist/auro-select.d.ts.map +1 -1
  129. package/components/select/dist/index.js +32 -0
  130. package/components/select/src/auro-select.js +32 -0
  131. package/package.json +1 -1
  132. package/packages/build-tools/src/docProcessor.mjs +4 -4
  133. package/packages/build-tools/src/kitDocProcessor.mjs +4 -4
  134. package/.turbo/cache/05be1236a4cd5e72-meta.json +0 -1
  135. package/.turbo/cache/05be1236a4cd5e72.tar.zst +0 -0
  136. package/.turbo/cache/2ca214d032893e74-meta.json +0 -1
  137. package/.turbo/cache/3792d285b464b3e6-meta.json +0 -1
  138. package/.turbo/cache/3792d285b464b3e6.tar.zst +0 -0
  139. package/.turbo/cache/3ac4a22a21bdc2be-meta.json +0 -1
  140. package/.turbo/cache/3ac4a22a21bdc2be.tar.zst +0 -0
  141. package/.turbo/cache/3f41d958c755a6f0-meta.json +0 -1
  142. package/.turbo/cache/5d064e768a262314-meta.json +0 -1
  143. package/.turbo/cache/5d064e768a262314.tar.zst +0 -0
  144. package/.turbo/cache/6646f884a18a970a-meta.json +0 -1
  145. package/.turbo/cache/6646f884a18a970a.tar.zst +0 -0
  146. package/.turbo/cache/71212615220331ea-meta.json +0 -1
  147. package/.turbo/cache/71212615220331ea.tar.zst +0 -0
  148. package/.turbo/cache/754a6b5c5ce1ed00-meta.json +0 -1
  149. package/.turbo/cache/77bf3068f493ef24-meta.json +0 -1
  150. package/.turbo/cache/7ddb7ace73fe6ec2-meta.json +0 -1
  151. package/.turbo/cache/7ddb7ace73fe6ec2.tar.zst +0 -0
  152. package/.turbo/cache/9135f474c69d1b3c-meta.json +0 -1
  153. package/.turbo/cache/9135f474c69d1b3c.tar.zst +0 -0
  154. package/.turbo/cache/9a7ab914e08ce75f-meta.json +0 -1
  155. package/.turbo/cache/9a7ab914e08ce75f.tar.zst +0 -0
  156. package/.turbo/cache/aa68cd3545395c90-meta.json +0 -1
  157. package/.turbo/cache/aa68cd3545395c90.tar.zst +0 -0
  158. package/.turbo/cache/dce6f67be2b63c18-meta.json +0 -1
  159. package/.turbo/cache/dce6f67be2b63c18.tar.zst +0 -0
  160. package/.turbo/cache/e28ee527154c4cb2-meta.json +0 -1
  161. package/.turbo/cache/e28ee527154c4cb2.tar.zst +0 -0
@@ -130,6 +130,10 @@ export class AuroCombobox extends LitElement {
130
130
  * @private
131
131
  */
132
132
  private runtimeUtils;
133
+ /**
134
+ * @private
135
+ */
136
+ private isHiddenWhileLoading;
133
137
  dropdownTag: any;
134
138
  inputTag: any;
135
139
  /**
@@ -187,6 +191,21 @@ export class AuroCombobox extends LitElement {
187
191
  */
188
192
  private configureInput;
189
193
  auroInputHelpText: any;
194
+ /**
195
+ * Manages the visibility of the dropdown based on loading state changes.
196
+ *
197
+ * This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
198
+ * If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
199
+ * and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
200
+ * hidden, it checks if the active element is within the dropdown and shows it again if true.
201
+ *
202
+ * @private
203
+ * @param {CustomEvent} event - The event object containing details about the loading state change.
204
+ * @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
205
+ * @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
206
+ * @returns {void}
207
+ */
208
+ private handleMenuLoadingChange;
190
209
  /**
191
210
  * Handle changes to the input value and trigger changes that should result.
192
211
  * @private
@@ -212,6 +231,7 @@ export class AuroCombobox extends LitElement {
212
231
  /**
213
232
  * Watch for slot changes and recalculate the menuoptions.
214
233
  * @private
234
+ * @param {Event} event - slotchange event
215
235
  * @returns {void}
216
236
  */
217
237
  private handleSlotChange;
@@ -1 +1 @@
1
- {"version":3,"file":"auro-combobox.d.ts","sourceRoot":"","sources":["../src/auro-combobox.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;;;;;;GAkBG;AAGH;IA0CE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8CI;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;MAGN;IAED,+CAEC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAvIC,kBAAqB;IACrB,cAAyB;IACzB,WAAiB;IACjB,oBAA0B;IAI1B;;OAEG;IACH,mBAA0C;IAE1C;;OAEG;IACH,qBAAiD;IAMjD,iBAAyF;IACzF,cAA6E;IAG/E;;;OAGG;IACH,wBAIC;IAHC,wBAA0B;IAC1B,kBAAwB;IACxB,4BAAqD;IAyGvD;;;;OAIG;IACH,0BAiDC;IA1CG,mBAA8B;IA4ClC;;;;OAIG;IACH,6BAMC;IAJG,qCAA+E;IAMnF;;;;OAIG;IACH,gBAIC;IAED;;;;OAIG;IACH,gBAUC;IAED;;;;OAIG;IACH,0BAaC;IAZC,iBAA8D;IAchE;;;;OAIG;IACH,sBAyEC;IAxEC,cAAwD;IA0E1D;;;;OAIG;IACH,uBAuEC;IAFG,uBAA2C;IAI/C;;;;OAIG;IACH,+BAeC;IAED;;;;OAIG;IACH,0BAqCC;IAWC,iBAAiE;IAWnE,qBAgBC;IAZC,cAA4E;IAC5E,WAAoE;IAatE;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED,sCAgCC;IAED;;;;OAIG;IACH,yBAWC;IAGD,4CA8CC;CACF;2BA1pB0B,KAAK"}
1
+ {"version":3,"file":"auro-combobox.d.ts","sourceRoot":"","sources":["../src/auro-combobox.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;;;;;;GAkBG;AAGH;IA+CE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8CI;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;MAGN;IAED,+CAEC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IA5IC,kBAAqB;IACrB,cAAyB;IACzB,WAAiB;IACjB,oBAA0B;IAI1B;;OAEG;IACH,mBAA0C;IAE1C;;OAEG;IACH,qBAAiD;IAEjD;;OAEG;IACH,6BAAiC;IAMjC,iBAAyF;IACzF,cAA6E;IAG/E;;;OAGG;IACH,wBAIC;IAHC,wBAA0B;IAC1B,kBAAwB;IACxB,4BAAqD;IAyGvD;;;;OAIG;IACH,0BAiDC;IA1CG,mBAA8B;IA4ClC;;;;OAIG;IACH,6BAMC;IAJG,qCAA+E;IAMnF;;;;OAIG;IACH,gBAIC;IAED;;;;OAIG;IACH,gBAcC;IAED;;;;OAIG;IACH,0BAaC;IAZC,iBAA8D;IAchE;;;;OAIG;IACH,sBAyEC;IAxEC,cAAwD;IA0E1D;;;;OAIG;IACH,uBAuEC;IAFG,uBAA2C;IAI/C;;;;;;;;;;;;;OAaG;IACH,gCAOC;IAED;;;;OAIG;IACH,+BAeC;IAED;;;;OAIG;IACH,0BAqCC;IAWC,iBAAiE;IAWnE,qBAgBC;IAZC,cAA4E;IAC5E,WAAoE;IAatE;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED,sCAgCC;IAED;;;;;OAKG;IACH,yBAcC;IAGD,4CA8CC;CACF;2BA9rB0B,KAAK"}
@@ -7234,6 +7234,11 @@ class AuroCombobox extends r$6 {
7234
7234
  */
7235
7235
  this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
7236
7236
 
7237
+ /**
7238
+ * @private
7239
+ */
7240
+ this.isHiddenWhileLoading = false;
7241
+
7237
7242
  /**
7238
7243
  * Generate unique names for dependency components.
7239
7244
  */
@@ -7369,7 +7374,7 @@ class AuroCombobox extends r$6 {
7369
7374
  this.noMatchOption = undefined;
7370
7375
 
7371
7376
  this.options.forEach((option) => {
7372
- let matchString = option.innerText.toLowerCase();
7377
+ let matchString = option.textContent.toLowerCase();
7373
7378
 
7374
7379
  if (option.hasAttribute('nomatch')) {
7375
7380
  this.noMatchOption = option;
@@ -7445,8 +7450,12 @@ class AuroCombobox extends r$6 {
7445
7450
  return;
7446
7451
  }
7447
7452
  if (!this.dropdown.isPopoverVisible && this.input.value && this.input.value.length > 0) {
7448
- if ((this.availableOptions && this.availableOptions.length > 0) || this.noMatchOption !== undefined) { // eslint-disable-line no-extra-parens
7449
- this.dropdown.show();
7453
+ if (this.menu.getAttribute('loading') || (this.availableOptions && this.availableOptions.length > 0) || this.noMatchOption !== undefined) { // eslint-disable-line no-extra-parens
7454
+ if (this.menu.hasAttribute('loading') && !this.menu.hasLoadingPlaceholder) {
7455
+ this.isHiddenWhileLoading = true;
7456
+ } else {
7457
+ this.dropdown.show();
7458
+ }
7450
7459
  }
7451
7460
  }
7452
7461
  }
@@ -7478,7 +7487,7 @@ class AuroCombobox extends r$6 {
7478
7487
  */
7479
7488
  configureMenu() {
7480
7489
  this.menu = this.querySelector('auro-menu, [auro-menu]');
7481
-
7490
+ this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
7482
7491
 
7483
7492
  // a racing condition on custom-combobox with custom-menu
7484
7493
  if (!this.menu) {
@@ -7489,7 +7498,7 @@ class AuroCombobox extends r$6 {
7489
7498
  return;
7490
7499
  }
7491
7500
 
7492
- this.menu.shadowRoot.addEventListener('slotchange', () => this.handleSlotChange());
7501
+ this.menu.shadowRoot.addEventListener('slotchange', (event) => this.handleSlotChange(event));
7493
7502
 
7494
7503
  if (this.checkmark) {
7495
7504
  this.menu.removeAttribute('nocheckmark');
@@ -7511,8 +7520,8 @@ class AuroCombobox extends r$6 {
7511
7520
  this.value = this.optionSelected.value;
7512
7521
  }
7513
7522
 
7514
- if (this.input.value !== this.optionSelected.innerText) {
7515
- this.input.value = this.optionSelected.innerText;
7523
+ if (this.input.value !== this.optionSelected.textContent) {
7524
+ this.input.value = this.optionSelected.textContent;
7516
7525
  }
7517
7526
 
7518
7527
  if (this.menu.matchWord !== this.input.value) {
@@ -7588,7 +7597,7 @@ class AuroCombobox extends r$6 {
7588
7597
  this.menu.value = this.value;
7589
7598
  }
7590
7599
 
7591
- if (this.optionSelected && this.input.value !== this.optionSelected.innerText) {
7600
+ if (this.optionSelected && this.input.value !== this.optionSelected.textContent) {
7592
7601
  this.optionSelected = undefined;
7593
7602
  }
7594
7603
 
@@ -7629,6 +7638,29 @@ class AuroCombobox extends r$6 {
7629
7638
  });
7630
7639
  }
7631
7640
 
7641
+ /**
7642
+ * Manages the visibility of the dropdown based on loading state changes.
7643
+ *
7644
+ * This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
7645
+ * If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
7646
+ * and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
7647
+ * hidden, it checks if the active element is within the dropdown and shows it again if true.
7648
+ *
7649
+ * @private
7650
+ * @param {CustomEvent} event - The event object containing details about the loading state change.
7651
+ * @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
7652
+ * @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
7653
+ * @returns {void}
7654
+ */
7655
+ handleMenuLoadingChange(event) {
7656
+ if (!event.detail.loading && this.isHiddenWhileLoading) {
7657
+ if (this.contains(document.activeElement)) {
7658
+ this.dropdown.show();
7659
+ }
7660
+ this.isHiddenWhileLoading = false;
7661
+ }
7662
+ }
7663
+
7632
7664
  /**
7633
7665
  * Handle changes to the input value and trigger changes that should result.
7634
7666
  * @private
@@ -7675,7 +7707,7 @@ class AuroCombobox extends r$6 {
7675
7707
  */
7676
7708
  if (evt.key === 'ArrowUp' || evt.key === 'ArrowDown') {
7677
7709
  if (this.availableOptions.length > 0) {
7678
- this.dropdown.show();
7710
+ this.showBib();
7679
7711
  }
7680
7712
 
7681
7713
  if (this.dropdown.isPopoverVisible) {
@@ -7747,8 +7779,8 @@ class AuroCombobox extends r$6 {
7747
7779
  if (this.value) {
7748
7780
  if (this.optionSelected && this.optionSelected.value === this.value) {
7749
7781
  // If value updates and the previously selected option already matches the new value
7750
- // just update the input value to use the innerText of the optionSelected
7751
- this.input.value = this.optionSelected.innerText;
7782
+ // just update the input value to use the textContent of the optionSelected
7783
+ this.input.value = this.optionSelected.textContent;
7752
7784
  } else {
7753
7785
  // Otherwise just enter the value into the input
7754
7786
  this.optionSelected = undefined;
@@ -7778,19 +7810,23 @@ class AuroCombobox extends r$6 {
7778
7810
  /**
7779
7811
  * Watch for slot changes and recalculate the menuoptions.
7780
7812
  * @private
7813
+ * @param {Event} event - slotchange event
7781
7814
  * @returns {void}
7782
7815
  */
7783
- handleSlotChange() {
7784
- this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
7785
- this.options.forEach((opt) => {
7786
- if (this.checkmark) {
7787
- opt.removeAttribute('nocheckmark');
7788
- } else {
7789
- opt.setAttribute('nocheckmark', '');
7790
- }
7791
- });
7816
+ handleSlotChange(event) {
7817
+ // treat only generic menuoptions
7818
+ if (!event.target.name) {
7819
+ this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
7820
+ this.options.forEach((opt) => {
7821
+ if (this.checkmark) {
7822
+ opt.removeAttribute('nocheckmark');
7823
+ } else {
7824
+ opt.setAttribute('nocheckmark', '');
7825
+ }
7826
+ });
7792
7827
 
7793
- this.handleMenuOptions();
7828
+ this.handleMenuOptions();
7829
+ }
7794
7830
  }
7795
7831
 
7796
7832
  // function that renders the HTML and CSS into the scope of the component
@@ -7800,7 +7836,7 @@ class AuroCombobox extends r$6 {
7800
7836
  <div aria-live="polite" class="util_displayHiddenVisually">
7801
7837
  ${this.optionActive && this.availableOptions.length > 0
7802
7838
  ? u$6`
7803
- ${`${this.optionActive.innerText}, selected, ${this.availableOptions.indexOf(this.optionActive) + 1} of ${this.availableOptions.length}`}
7839
+ ${`${this.optionActive.textContent}, selected, ${this.availableOptions.indexOf(this.optionActive) + 1} of ${this.availableOptions.length}`}
7804
7840
  `
7805
7841
  : undefined
7806
7842
  }
@@ -65,6 +65,11 @@ export class AuroCombobox extends LitElement {
65
65
  */
66
66
  this.runtimeUtils = new AuroLibraryRuntimeUtils();
67
67
 
68
+ /**
69
+ * @private
70
+ */
71
+ this.isHiddenWhileLoading = false;
72
+
68
73
  /**
69
74
  * Generate unique names for dependency components.
70
75
  */
@@ -200,7 +205,7 @@ export class AuroCombobox extends LitElement {
200
205
  this.noMatchOption = undefined;
201
206
 
202
207
  this.options.forEach((option) => {
203
- let matchString = option.innerText.toLowerCase();
208
+ let matchString = option.textContent.toLowerCase();
204
209
 
205
210
  if (option.hasAttribute('nomatch')) {
206
211
  this.noMatchOption = option;
@@ -276,8 +281,12 @@ export class AuroCombobox extends LitElement {
276
281
  return;
277
282
  }
278
283
  if (!this.dropdown.isPopoverVisible && this.input.value && this.input.value.length > 0) {
279
- if ((this.availableOptions && this.availableOptions.length > 0) || this.noMatchOption !== undefined) { // eslint-disable-line no-extra-parens
280
- this.dropdown.show();
284
+ if (this.menu.getAttribute('loading') || (this.availableOptions && this.availableOptions.length > 0) || this.noMatchOption !== undefined) { // eslint-disable-line no-extra-parens
285
+ if (this.menu.hasAttribute('loading') && !this.menu.hasLoadingPlaceholder) {
286
+ this.isHiddenWhileLoading = true;
287
+ } else {
288
+ this.dropdown.show();
289
+ }
281
290
  }
282
291
  }
283
292
  }
@@ -309,7 +318,7 @@ export class AuroCombobox extends LitElement {
309
318
  */
310
319
  configureMenu() {
311
320
  this.menu = this.querySelector('auro-menu, [auro-menu]');
312
-
321
+ this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
313
322
 
314
323
  // a racing condition on custom-combobox with custom-menu
315
324
  if (!this.menu) {
@@ -320,7 +329,7 @@ export class AuroCombobox extends LitElement {
320
329
  return;
321
330
  }
322
331
 
323
- this.menu.shadowRoot.addEventListener('slotchange', () => this.handleSlotChange());
332
+ this.menu.shadowRoot.addEventListener('slotchange', (event) => this.handleSlotChange(event));
324
333
 
325
334
  if (this.checkmark) {
326
335
  this.menu.removeAttribute('nocheckmark');
@@ -342,8 +351,8 @@ export class AuroCombobox extends LitElement {
342
351
  this.value = this.optionSelected.value;
343
352
  }
344
353
 
345
- if (this.input.value !== this.optionSelected.innerText) {
346
- this.input.value = this.optionSelected.innerText;
354
+ if (this.input.value !== this.optionSelected.textContent) {
355
+ this.input.value = this.optionSelected.textContent;
347
356
  }
348
357
 
349
358
  if (this.menu.matchWord !== this.input.value) {
@@ -419,7 +428,7 @@ export class AuroCombobox extends LitElement {
419
428
  this.menu.value = this.value;
420
429
  }
421
430
 
422
- if (this.optionSelected && this.input.value !== this.optionSelected.innerText) {
431
+ if (this.optionSelected && this.input.value !== this.optionSelected.textContent) {
423
432
  this.optionSelected = undefined;
424
433
  }
425
434
 
@@ -460,6 +469,29 @@ export class AuroCombobox extends LitElement {
460
469
  });
461
470
  }
462
471
 
472
+ /**
473
+ * Manages the visibility of the dropdown based on loading state changes.
474
+ *
475
+ * This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
476
+ * If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
477
+ * and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
478
+ * hidden, it checks if the active element is within the dropdown and shows it again if true.
479
+ *
480
+ * @private
481
+ * @param {CustomEvent} event - The event object containing details about the loading state change.
482
+ * @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
483
+ * @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
484
+ * @returns {void}
485
+ */
486
+ handleMenuLoadingChange(event) {
487
+ if (!event.detail.loading && this.isHiddenWhileLoading) {
488
+ if (this.contains(document.activeElement)) {
489
+ this.dropdown.show();
490
+ }
491
+ this.isHiddenWhileLoading = false;
492
+ }
493
+ }
494
+
463
495
  /**
464
496
  * Handle changes to the input value and trigger changes that should result.
465
497
  * @private
@@ -506,7 +538,7 @@ export class AuroCombobox extends LitElement {
506
538
  */
507
539
  if (evt.key === 'ArrowUp' || evt.key === 'ArrowDown') {
508
540
  if (this.availableOptions.length > 0) {
509
- this.dropdown.show();
541
+ this.showBib();
510
542
  }
511
543
 
512
544
  if (this.dropdown.isPopoverVisible) {
@@ -578,8 +610,8 @@ export class AuroCombobox extends LitElement {
578
610
  if (this.value) {
579
611
  if (this.optionSelected && this.optionSelected.value === this.value) {
580
612
  // If value updates and the previously selected option already matches the new value
581
- // just update the input value to use the innerText of the optionSelected
582
- this.input.value = this.optionSelected.innerText;
613
+ // just update the input value to use the textContent of the optionSelected
614
+ this.input.value = this.optionSelected.textContent;
583
615
  } else {
584
616
  // Otherwise just enter the value into the input
585
617
  this.optionSelected = undefined;
@@ -609,19 +641,23 @@ export class AuroCombobox extends LitElement {
609
641
  /**
610
642
  * Watch for slot changes and recalculate the menuoptions.
611
643
  * @private
644
+ * @param {Event} event - slotchange event
612
645
  * @returns {void}
613
646
  */
614
- handleSlotChange() {
615
- this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
616
- this.options.forEach((opt) => {
617
- if (this.checkmark) {
618
- opt.removeAttribute('nocheckmark');
619
- } else {
620
- opt.setAttribute('nocheckmark', '');
621
- }
622
- });
647
+ handleSlotChange(event) {
648
+ // treat only generic menuoptions
649
+ if (!event.target.name) {
650
+ this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
651
+ this.options.forEach((opt) => {
652
+ if (this.checkmark) {
653
+ opt.removeAttribute('nocheckmark');
654
+ } else {
655
+ opt.setAttribute('nocheckmark', '');
656
+ }
657
+ });
623
658
 
624
- this.handleMenuOptions();
659
+ this.handleMenuOptions();
660
+ }
625
661
  }
626
662
 
627
663
  // function that renders the HTML and CSS into the scope of the component
@@ -631,7 +667,7 @@ export class AuroCombobox extends LitElement {
631
667
  <div aria-live="polite" class="util_displayHiddenVisually">
632
668
  ${this.optionActive && this.availableOptions.length > 0
633
669
  ? html`
634
- ${`${this.optionActive.innerText}, selected, ${this.availableOptions.indexOf(this.optionActive) + 1} of ${this.availableOptions.length}`}
670
+ ${`${this.optionActive.textContent}, selected, ${this.availableOptions.indexOf(this.optionActive) + 1} of ${this.availableOptions.length}`}
635
671
  `
636
672
  : undefined
637
673
  }
@@ -74,10 +74,10 @@ More info and automated migrator: https://sass-lang.com/d/import
74
74
 
75
75
  
76
76
  ./src/index.js → dist...
77
- created dist in 515ms
77
+ created dist in 448ms
78
78
  
79
79
  ./demo/index.js → ./demo/...
80
- created ./demo/ in 273ms
80
+ created ./demo/ in 299ms
81
81
  
82
82
  ./demo/api.js → ./demo/...
83
83
  created ./demo/ in 304ms
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 668ms
7
+ created dist in 561ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 346ms
10
+ created ./demo/ in 308ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 303ms
13
+ created ./demo/ in 253ms
@@ -376,10 +376,10 @@ More info and automated migrator: https://sass-lang.com/d/import
376
376
  created dist in 7.3s
377
377
  
378
378
  ./demo/index.js → ./demo/...
379
- created ./demo/ in 3.6s
379
+ created ./demo/ in 3.5s
380
380
  
381
381
  ./demo/api.js → ./demo/...
382
- created ./demo/ in 3.4s
382
+ created ./demo/ in 3.2s
383
383
 
384
384
  > @auro-formkit/auro-datepicker@3.2.0 build:docs
385
385
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component datepicker
@@ -90,13 +90,13 @@ More info and automated migrator: https://sass-lang.com/d/import
90
90
 
91
91
  
92
92
  ./src/index.js → dist...
93
- created dist in 1.5s
93
+ created dist in 1.1s
94
94
  
95
95
  ./demo/index.js → ./demo/...
96
- created ./demo/ in 1s
96
+ created ./demo/ in 748ms
97
97
  
98
98
  ./demo/api.js → ./demo/...
99
- created ./demo/ in 746ms
99
+ created ./demo/ in 705ms
100
100
 
101
101
  > @auro-formkit/auro-dropdown@3.0.0 build:docs
102
102
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component dropdown
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 1.3s
7
+ created dist in 1.1s
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 1s
10
+ created ./demo/ in 623ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 606ms
13
+ created ./demo/ in 628ms
@@ -69,13 +69,13 @@ Run in verbose mode to see all warnings.
69
69
 
70
70
  
71
71
  ./src/index.js → dist...
72
- created dist in 574ms
72
+ created dist in 425ms
73
73
  
74
74
  ./demo/index.js → ./demo/...
75
- created ./demo/ in 233ms
75
+ created ./demo/ in 311ms
76
76
  
77
77
  ./demo/api.js → ./demo/...
78
- created ./demo/ in 160ms
78
+ created ./demo/ in 235ms
79
79
 
80
80
  > @auro-formkit/auro-form@1.0.0 build:docs
81
81
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component form
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 684ms
7
+ created dist in 419ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 259ms
10
+ created ./demo/ in 232ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 231ms
13
+ created ./demo/ in 218ms
@@ -166,13 +166,13 @@ More info and automated migrator: https://sass-lang.com/d/import
166
166
 
167
167
  
168
168
  ./src/index.js → dist...
169
- created dist in 1.5s
169
+ created dist in 1.2s
170
170
  
171
171
  ./demo/index.js → ./demo/...
172
- created ./demo/ in 856ms
172
+ created ./demo/ in 1s
173
173
  
174
174
  ./demo/api.js → ./demo/...
175
- created ./demo/ in 949ms
175
+ created ./demo/ in 811ms
176
176
 
177
177
  > @auro-formkit/auro-input@4.2.0 build:docs
178
178
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component input
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 1.6s
7
+ created dist in 1s
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 706ms
10
+ created ./demo/ in 964ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 773ms
13
+ created ./demo/ in 940ms
@@ -101,13 +101,13 @@ More info and automated migrator: https://sass-lang.com/d/import
101
101
 
102
102
  
103
103
  ./src/index.js → dist...
104
- created dist in 846ms
104
+ created dist in 662ms
105
105
  
106
106
  ./demo/index.js → ./demo/...
107
- created ./demo/ in 512ms
107
+ created ./demo/ in 542ms
108
108
  
109
109
  ./demo/api.js → ./demo/...
110
- created ./demo/ in 533ms
110
+ created ./demo/ in 522ms
111
111
 
112
112
  > @auro-formkit/auro-menu@4.1.4 build:docs
113
113
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component menu
@@ -150,6 +150,7 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/menu/d
150
150
  ⁕ FILE:src=./../apiExamples/nocheckmark.html
151
151
  ⁕ FILE:src=./../apiExamples/disabledMenu.html
152
152
  ⁕ FILE:src=./../apiExamples/matchWord.html
153
+ ⁕ FILE:src=./../apiExamples/loading.html
153
154
  ⁕ FILE:src=./../apiExamples/scroll.html
154
155
  ⁕ FILE:src=./../apiExamples/hr.html
155
156
  ⁕ FILE:src=./../apiExamples/nestedMenu.html
@@ -163,6 +164,8 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/menu/d
163
164
  ⁕ CODE:src=./../apiExamples/disabledMenu.html
164
165
  ⁕ CODE:src=./../apiExamples/matchWord.js
165
166
  ⁕ CODE:src=./../apiExamples/matchWord.html
167
+ ⁕ CODE:src=./../apiExamples/loading.js
168
+ ⁕ CODE:src=./../apiExamples/loading.html
166
169
  ⁕ CODE:src=./../apiExamples/scroll.html
167
170
  ⁕ CODE:src=./../apiExamples/hr.html
168
171
  ⁕ CODE:src=./../apiExamples/nestedMenu.html
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 675ms
7
+ created dist in 1s
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 838ms
10
+ created ./demo/ in 713ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 643ms
13
+ created ./demo/ in 547ms
@@ -43,6 +43,8 @@
43
43
  <!-- If additional elements are needed for the demo, add them here. -->
44
44
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
45
45
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-input@latest/dist/auro-input__bundled.js" type="module"></script>
46
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
47
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-loader@latest/dist/auro-loader__bundled.js" type="module"></script>
46
48
  <script type="module" data-demo-script="true">
47
49
  import { initExamples } from "./api.min.js"
48
50
  initExamples();
@@ -3,6 +3,7 @@
3
3
  import { auroMenuResetExample } from '../apiExamples/reset';
4
4
  import { auroMenuMatchWordExample } from '../apiExamples/matchWord';
5
5
  import { auroMenuCustomEventExample } from '../apiExamples/customEvent';
6
+ import { auroMenuLoadingExample } from '../apiExamples/loading';
6
7
  import '../src/index.js';
7
8
 
8
9
  export function initExamples(initCount) {
@@ -13,6 +14,7 @@ export function initExamples(initCount) {
13
14
  auroMenuResetExample();
14
15
  auroMenuMatchWordExample();
15
16
  auroMenuCustomEventExample();
17
+ auroMenuLoadingExample();
16
18
  } catch (err) {
17
19
  if (initCount <= 20) {
18
20
  // setTimeout handles issue where content is sometimes loaded after the functions get called