@aurodesignsystem/auro-formkit 2.0.0-beta.29 → 2.0.0-beta.30

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 (185) hide show
  1. package/.turbo/cache/019608f754b4fd0c-meta.json +1 -1
  2. package/.turbo/cache/111ea1a7d5e86aac-meta.json +1 -0
  3. package/.turbo/cache/111ea1a7d5e86aac.tar.zst +0 -0
  4. package/.turbo/cache/18ce0cc67c14e0c9-meta.json +1 -1
  5. package/.turbo/cache/1d4280429ff4222f-meta.json +1 -1
  6. package/.turbo/cache/251ba344c6338ba3-meta.json +1 -1
  7. package/.turbo/cache/298b6ff0272e6226-meta.json +1 -1
  8. package/.turbo/cache/2abb5400a01a1694-meta.json +1 -1
  9. package/.turbo/cache/30fda91ef83677e4-meta.json +1 -1
  10. package/.turbo/cache/3221d91a94756c26-meta.json +1 -1
  11. package/.turbo/cache/3ab09fe7cf32b3bf-meta.json +1 -1
  12. package/.turbo/cache/3d05fb6e2d593287-meta.json +1 -0
  13. package/.turbo/cache/3f1b3db13386acdc-meta.json +1 -1
  14. package/.turbo/cache/430c124614841675-meta.json +1 -1
  15. package/.turbo/cache/45bdeb0396723b25-meta.json +1 -1
  16. package/.turbo/cache/4e9c9a5dd62c50a4-meta.json +1 -1
  17. package/.turbo/cache/559b052d8150dd3f-meta.json +1 -0
  18. package/.turbo/cache/{9dc293081f28a24d.tar.zst → 559b052d8150dd3f.tar.zst} +0 -0
  19. package/.turbo/cache/5748467be5ef9c07-meta.json +1 -0
  20. package/.turbo/cache/5748467be5ef9c07.tar.zst +0 -0
  21. package/.turbo/cache/59481fd7f6f355ed-meta.json +1 -1
  22. package/.turbo/cache/5a78bd07d371dd47-meta.json +1 -0
  23. package/.turbo/cache/{46f08b3f239b6b3c.tar.zst → 5a78bd07d371dd47.tar.zst} +0 -0
  24. package/.turbo/cache/5fc9a7a072827b7b-meta.json +1 -1
  25. package/.turbo/cache/63f832b4947ecf9d-meta.json +1 -0
  26. package/.turbo/cache/63f832b4947ecf9d.tar.zst +0 -0
  27. package/.turbo/cache/6a5dc307d8619c06-meta.json +1 -0
  28. package/.turbo/cache/6a5dc307d8619c06.tar.zst +0 -0
  29. package/.turbo/cache/6ed764f60d634993-meta.json +1 -0
  30. package/.turbo/cache/6ed764f60d634993.tar.zst +0 -0
  31. package/.turbo/cache/753b119a389426be-meta.json +1 -1
  32. package/.turbo/cache/80ece7354266e40f-meta.json +1 -0
  33. package/.turbo/cache/80ece7354266e40f.tar.zst +0 -0
  34. package/.turbo/cache/846bade4a9a3eba9-meta.json +1 -0
  35. package/.turbo/cache/846bade4a9a3eba9.tar.zst +0 -0
  36. package/.turbo/cache/8ac38d70a60381cb-meta.json +1 -1
  37. package/.turbo/cache/8c637a8d4c2166c5-meta.json +1 -1
  38. package/.turbo/cache/8cd5a06a396632cf-meta.json +1 -0
  39. package/.turbo/cache/{4472ff3b156042a3.tar.zst → 8cd5a06a396632cf.tar.zst} +0 -0
  40. package/.turbo/cache/970ba88c4c4092cd-meta.json +1 -0
  41. package/.turbo/cache/970ba88c4c4092cd.tar.zst +0 -0
  42. package/.turbo/cache/9db5147195c32672-meta.json +1 -0
  43. package/.turbo/cache/a002bc214179bedc-meta.json +1 -0
  44. package/.turbo/cache/a02c2bc2a4638817-meta.json +1 -0
  45. package/.turbo/cache/{cbc12d12ec0e13ca.tar.zst → a02c2bc2a4638817.tar.zst} +0 -0
  46. package/.turbo/cache/a7004571f6307848-meta.json +1 -0
  47. package/.turbo/cache/a7004571f6307848.tar.zst +0 -0
  48. package/.turbo/cache/a7dea1f1ae1fdc27-meta.json +1 -1
  49. package/.turbo/cache/a8307dcc447702ad-meta.json +1 -0
  50. package/.turbo/cache/a8307dcc447702ad.tar.zst +0 -0
  51. package/.turbo/cache/a9dc1069fcd851ff-meta.json +1 -0
  52. package/.turbo/cache/a9dc1069fcd851ff.tar.zst +0 -0
  53. package/.turbo/cache/b4de0d19f9eeaceb-meta.json +1 -0
  54. package/.turbo/cache/b4de0d19f9eeaceb.tar.zst +0 -0
  55. package/.turbo/cache/b682d4cec0741fa1-meta.json +1 -0
  56. package/.turbo/cache/b682d4cec0741fa1.tar.zst +0 -0
  57. package/.turbo/cache/bf3d1eace5e676f9-meta.json +1 -1
  58. package/.turbo/cache/c27d47351838ceb1-meta.json +1 -0
  59. package/.turbo/cache/c27d47351838ceb1.tar.zst +0 -0
  60. package/.turbo/cache/c7d435ade46f3c1e-meta.json +1 -0
  61. package/.turbo/cache/cbcd9db8ac9a2d52-meta.json +1 -1
  62. package/.turbo/cache/d0c4bf3a3a3840fd-meta.json +1 -0
  63. package/.turbo/cache/d0c4bf3a3a3840fd.tar.zst +0 -0
  64. package/.turbo/cache/d3afdb9a7db9eacc-meta.json +1 -1
  65. package/.turbo/cache/d8ecdff9c663c38e-meta.json +1 -1
  66. package/.turbo/cache/de494df6a3006101-meta.json +1 -1
  67. package/.turbo/cache/e06dedab4c19ae2a-meta.json +1 -0
  68. package/.turbo/cache/e06dedab4c19ae2a.tar.zst +0 -0
  69. package/.turbo/cache/e56a9865641ec3e8-meta.json +1 -1
  70. package/.turbo/cache/e7ed9e7056d80938-meta.json +1 -1
  71. package/.turbo/cache/e837827cd24834c4-meta.json +1 -1
  72. package/.turbo/cache/e9ff93179777aa26-meta.json +1 -1
  73. package/.turbo/cache/f6220a9af06bee74-meta.json +1 -0
  74. package/.turbo/cache/f6220a9af06bee74.tar.zst +0 -0
  75. package/.turbo/cache/f7ab9a13f9acc0ab-meta.json +1 -1
  76. package/.turbo/cache/ff3c8a3042cab66e-meta.json +1 -1
  77. package/CHANGELOG.md +12 -0
  78. package/components/checkbox/.turbo/turbo-build.log +3 -3
  79. package/components/checkbox/README.md +1 -1
  80. package/components/checkbox/demo/api.min.js +30 -18
  81. package/components/checkbox/demo/index.min.js +30 -18
  82. package/components/checkbox/dist/index.js +30 -18
  83. package/components/combobox/.turbo/turbo-build.log +3 -3
  84. package/components/combobox/README.md +4 -4
  85. package/components/combobox/demo/api.min.js +60 -36
  86. package/components/combobox/demo/index.min.js +60 -36
  87. package/components/combobox/dist/index.js +60 -36
  88. package/components/counter/.turbo/turbo-build.log +7 -3
  89. package/components/counter/.turbo/turbo-bundler.log +3 -3
  90. package/components/counter/README.md +1 -1
  91. package/components/counter/demo/api.md +6 -3
  92. package/components/counter/demo/api.min.js +9 -2
  93. package/components/counter/demo/index.md +126 -24
  94. package/components/counter/demo/index.min.js +9 -2
  95. package/components/counter/dist/auro-counter-group.d.ts +3 -0
  96. package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
  97. package/components/counter/dist/index.js +9 -2
  98. package/components/counter/src/auro-counter-group.js +8 -1
  99. package/components/counter/src/styles/counter-group-css.js +1 -1
  100. package/components/counter/src/styles/counter-group.css +4 -5
  101. package/components/counter/src/styles/counter-group.scss +4 -6
  102. package/components/datepicker/.turbo/turbo-build.log +2 -2
  103. package/components/datepicker/README.md +4 -4
  104. package/components/datepicker/demo/api.min.js +60 -36
  105. package/components/datepicker/demo/index.min.js +60 -36
  106. package/components/datepicker/dist/index.js +60 -36
  107. package/components/dropdown/.turbo/turbo-build.log +3 -3
  108. package/components/dropdown/README.md +1 -1
  109. package/components/dropdown/demo/api.min.js +30 -18
  110. package/components/dropdown/demo/index.min.js +30 -18
  111. package/components/dropdown/dist/index.js +30 -18
  112. package/components/form/.turbo/turbo-build.log +2 -2
  113. package/components/form/.turbo/turbo-bundler.log +3 -3
  114. package/components/form/README.md +1 -1
  115. package/components/helptext/.turbo/turbo-build.log +1 -1
  116. package/components/helptext/.turbo/turbo-bundler.log +1 -1
  117. package/components/helptext/dist/auro-helptext.d.ts +8 -0
  118. package/components/helptext/dist/auro-helptext.d.ts.map +1 -1
  119. package/components/helptext/dist/index.js +31 -19
  120. package/components/helptext/src/auro-helptext.js +31 -19
  121. package/components/input/.turbo/turbo-build.log +2 -2
  122. package/components/input/README.md +1 -1
  123. package/components/input/demo/api.min.js +30 -18
  124. package/components/input/demo/index.min.js +30 -18
  125. package/components/input/dist/index.js +30 -18
  126. package/components/menu/.turbo/turbo-build.log +3 -3
  127. package/components/menu/.turbo/turbo-bundler.log +3 -3
  128. package/components/menu/README.md +1 -1
  129. package/components/radio/.turbo/turbo-build.log +3 -3
  130. package/components/radio/README.md +1 -1
  131. package/components/radio/demo/api.min.js +30 -18
  132. package/components/radio/demo/index.min.js +30 -18
  133. package/components/radio/dist/index.js +30 -18
  134. package/components/select/.turbo/turbo-build.log +3 -3
  135. package/components/select/README.md +3 -3
  136. package/components/select/demo/api.min.js +30 -18
  137. package/components/select/demo/index.min.js +30 -18
  138. package/components/select/dist/index.js +30 -18
  139. package/package.json +1 -1
  140. package/.turbo/cache/06322ed0d04880b4-meta.json +0 -1
  141. package/.turbo/cache/06322ed0d04880b4.tar.zst +0 -0
  142. package/.turbo/cache/0b25a5384daf4b43-meta.json +0 -1
  143. package/.turbo/cache/0b25a5384daf4b43.tar.zst +0 -0
  144. package/.turbo/cache/1e42bb6f66cd5516-meta.json +0 -1
  145. package/.turbo/cache/202a84630d73699f-meta.json +0 -1
  146. package/.turbo/cache/202a84630d73699f.tar.zst +0 -0
  147. package/.turbo/cache/3b758f5ca6cedcac-meta.json +0 -1
  148. package/.turbo/cache/3b758f5ca6cedcac.tar.zst +0 -0
  149. package/.turbo/cache/4472ff3b156042a3-meta.json +0 -1
  150. package/.turbo/cache/448b2ae2221bf660-meta.json +0 -1
  151. package/.turbo/cache/448b2ae2221bf660.tar.zst +0 -0
  152. package/.turbo/cache/4655a084a08732a7-meta.json +0 -1
  153. package/.turbo/cache/46f08b3f239b6b3c-meta.json +0 -1
  154. package/.turbo/cache/4f06a06e4f458e75-meta.json +0 -1
  155. package/.turbo/cache/4f06a06e4f458e75.tar.zst +0 -0
  156. package/.turbo/cache/4f0d7e7df611108b-meta.json +0 -1
  157. package/.turbo/cache/4f0d7e7df611108b.tar.zst +0 -0
  158. package/.turbo/cache/533b2c6c9fb1166a-meta.json +0 -1
  159. package/.turbo/cache/533b2c6c9fb1166a.tar.zst +0 -0
  160. package/.turbo/cache/560d172ca96e1544-meta.json +0 -1
  161. package/.turbo/cache/560d172ca96e1544.tar.zst +0 -0
  162. package/.turbo/cache/9dc293081f28a24d-meta.json +0 -1
  163. package/.turbo/cache/a9db8818bc92a60e-meta.json +0 -1
  164. package/.turbo/cache/a9db8818bc92a60e.tar.zst +0 -0
  165. package/.turbo/cache/bae62d7b71b88997-meta.json +0 -1
  166. package/.turbo/cache/bae62d7b71b88997.tar.zst +0 -0
  167. package/.turbo/cache/bb3131b31c8adc36-meta.json +0 -1
  168. package/.turbo/cache/bb3131b31c8adc36.tar.zst +0 -0
  169. package/.turbo/cache/c45962e00a15f78b-meta.json +0 -1
  170. package/.turbo/cache/c45962e00a15f78b.tar.zst +0 -0
  171. package/.turbo/cache/c49eaa579b60f045-meta.json +0 -1
  172. package/.turbo/cache/c49eaa579b60f045.tar.zst +0 -0
  173. package/.turbo/cache/cbc12d12ec0e13ca-meta.json +0 -1
  174. package/.turbo/cache/d7d47541c105641f-meta.json +0 -1
  175. package/.turbo/cache/e95a7d076e700003-meta.json +0 -1
  176. package/.turbo/cache/e95a7d076e700003.tar.zst +0 -0
  177. package/.turbo/cache/f571abacf9ec4e84-meta.json +0 -1
  178. package/.turbo/cache/f571abacf9ec4e84.tar.zst +0 -0
  179. package/.turbo/cache/fa0bc0a1d41397e8-meta.json +0 -1
  180. package/.turbo/cache/fa0bc0a1d41397e8.tar.zst +0 -0
  181. package/.turbo/cache/fce6b6ea288791bf-meta.json +0 -1
  182. /package/.turbo/cache/{fce6b6ea288791bf.tar.zst → 3d05fb6e2d593287.tar.zst} +0 -0
  183. /package/.turbo/cache/{d7d47541c105641f.tar.zst → 9db5147195c32672.tar.zst} +0 -0
  184. /package/.turbo/cache/{1e42bb6f66cd5516.tar.zst → a002bc214179bedc.tar.zst} +0 -0
  185. /package/.turbo/cache/{4655a084a08732a7.tar.zst → c7d435ade46f3c1e.tar.zst} +0 -0
@@ -3207,26 +3207,38 @@ let AuroHelpText$1 = class AuroHelpText extends r$a {
3207
3207
  this.slotNodes = event.target.assignedNodes();
3208
3208
  }
3209
3209
 
3210
- if (this.slotNodes) {
3211
- this.hasTextContent = this.slotNodes.some((slot) => {
3212
- if (slot.textContent.trim()) {
3213
- return true;
3214
- }
3215
-
3216
- if (!slot.querySelector) {
3217
- return false;
3218
- }
3210
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
3211
+ }
3219
3212
 
3220
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
3221
- if (!nestedSlot) {
3222
- return false;
3223
- }
3224
- const nestedSlotNodes = nestedSlot.assignedNodes();
3225
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3226
- });
3227
- } else {
3228
- this.hasTextContent = false;
3213
+ /**
3214
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
3215
+ *
3216
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
3217
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
3218
+ * @private
3219
+ */
3220
+ checkSlotsForContent(nodes) {
3221
+ if (!nodes) {
3222
+ return false;
3229
3223
  }
3224
+
3225
+ return nodes.some((node) => {
3226
+ if (node.textContent.trim()) {
3227
+ return true;
3228
+ }
3229
+
3230
+ if (!node.querySelector) {
3231
+ return false;
3232
+ }
3233
+
3234
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
3235
+ if (!nestedSlot) {
3236
+ return false;
3237
+ }
3238
+
3239
+ const nestedSlotNodes = nestedSlot.assignedNodes();
3240
+ return this.checkSlotsForContent(nestedSlotNodes);
3241
+ });
3230
3242
  }
3231
3243
 
3232
3244
  // function that renders the HTML and CSS into the scope of the component
@@ -7966,26 +7978,38 @@ class AuroHelpText extends r$9 {
7966
7978
  this.slotNodes = event.target.assignedNodes();
7967
7979
  }
7968
7980
 
7969
- if (this.slotNodes) {
7970
- this.hasTextContent = this.slotNodes.some((slot) => {
7971
- if (slot.textContent.trim()) {
7972
- return true;
7973
- }
7974
-
7975
- if (!slot.querySelector) {
7976
- return false;
7977
- }
7981
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
7982
+ }
7978
7983
 
7979
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
7980
- if (!nestedSlot) {
7981
- return false;
7982
- }
7983
- const nestedSlotNodes = nestedSlot.assignedNodes();
7984
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
7985
- });
7986
- } else {
7987
- this.hasTextContent = false;
7984
+ /**
7985
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
7986
+ *
7987
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
7988
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
7989
+ * @private
7990
+ */
7991
+ checkSlotsForContent(nodes) {
7992
+ if (!nodes) {
7993
+ return false;
7988
7994
  }
7995
+
7996
+ return nodes.some((node) => {
7997
+ if (node.textContent.trim()) {
7998
+ return true;
7999
+ }
8000
+
8001
+ if (!node.querySelector) {
8002
+ return false;
8003
+ }
8004
+
8005
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
8006
+ if (!nestedSlot) {
8007
+ return false;
8008
+ }
8009
+
8010
+ const nestedSlotNodes = nestedSlot.assignedNodes();
8011
+ return this.checkSlotsForContent(nestedSlotNodes);
8012
+ });
7989
8013
  }
7990
8014
 
7991
8015
  // function that renders the HTML and CSS into the scope of the component
@@ -3065,26 +3065,38 @@ let AuroHelpText$1 = class AuroHelpText extends r$a {
3065
3065
  this.slotNodes = event.target.assignedNodes();
3066
3066
  }
3067
3067
 
3068
- if (this.slotNodes) {
3069
- this.hasTextContent = this.slotNodes.some((slot) => {
3070
- if (slot.textContent.trim()) {
3071
- return true;
3072
- }
3073
-
3074
- if (!slot.querySelector) {
3075
- return false;
3076
- }
3068
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
3069
+ }
3077
3070
 
3078
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
3079
- if (!nestedSlot) {
3080
- return false;
3081
- }
3082
- const nestedSlotNodes = nestedSlot.assignedNodes();
3083
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3084
- });
3085
- } else {
3086
- this.hasTextContent = false;
3071
+ /**
3072
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
3073
+ *
3074
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
3075
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
3076
+ * @private
3077
+ */
3078
+ checkSlotsForContent(nodes) {
3079
+ if (!nodes) {
3080
+ return false;
3087
3081
  }
3082
+
3083
+ return nodes.some((node) => {
3084
+ if (node.textContent.trim()) {
3085
+ return true;
3086
+ }
3087
+
3088
+ if (!node.querySelector) {
3089
+ return false;
3090
+ }
3091
+
3092
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
3093
+ if (!nestedSlot) {
3094
+ return false;
3095
+ }
3096
+
3097
+ const nestedSlotNodes = nestedSlot.assignedNodes();
3098
+ return this.checkSlotsForContent(nestedSlotNodes);
3099
+ });
3088
3100
  }
3089
3101
 
3090
3102
  // function that renders the HTML and CSS into the scope of the component
@@ -7824,26 +7836,38 @@ class AuroHelpText extends r$9 {
7824
7836
  this.slotNodes = event.target.assignedNodes();
7825
7837
  }
7826
7838
 
7827
- if (this.slotNodes) {
7828
- this.hasTextContent = this.slotNodes.some((slot) => {
7829
- if (slot.textContent.trim()) {
7830
- return true;
7831
- }
7832
-
7833
- if (!slot.querySelector) {
7834
- return false;
7835
- }
7839
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
7840
+ }
7836
7841
 
7837
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
7838
- if (!nestedSlot) {
7839
- return false;
7840
- }
7841
- const nestedSlotNodes = nestedSlot.assignedNodes();
7842
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
7843
- });
7844
- } else {
7845
- this.hasTextContent = false;
7842
+ /**
7843
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
7844
+ *
7845
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
7846
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
7847
+ * @private
7848
+ */
7849
+ checkSlotsForContent(nodes) {
7850
+ if (!nodes) {
7851
+ return false;
7846
7852
  }
7853
+
7854
+ return nodes.some((node) => {
7855
+ if (node.textContent.trim()) {
7856
+ return true;
7857
+ }
7858
+
7859
+ if (!node.querySelector) {
7860
+ return false;
7861
+ }
7862
+
7863
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
7864
+ if (!nestedSlot) {
7865
+ return false;
7866
+ }
7867
+
7868
+ const nestedSlotNodes = nestedSlot.assignedNodes();
7869
+ return this.checkSlotsForContent(nestedSlotNodes);
7870
+ });
7847
7871
  }
7848
7872
 
7849
7873
  // function that renders the HTML and CSS into the scope of the component
@@ -3042,26 +3042,38 @@ let AuroHelpText$1 = class AuroHelpText extends r$a {
3042
3042
  this.slotNodes = event.target.assignedNodes();
3043
3043
  }
3044
3044
 
3045
- if (this.slotNodes) {
3046
- this.hasTextContent = this.slotNodes.some((slot) => {
3047
- if (slot.textContent.trim()) {
3048
- return true;
3049
- }
3050
-
3051
- if (!slot.querySelector) {
3052
- return false;
3053
- }
3045
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
3046
+ }
3054
3047
 
3055
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
3056
- if (!nestedSlot) {
3057
- return false;
3058
- }
3059
- const nestedSlotNodes = nestedSlot.assignedNodes();
3060
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3061
- });
3062
- } else {
3063
- this.hasTextContent = false;
3048
+ /**
3049
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
3050
+ *
3051
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
3052
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
3053
+ * @private
3054
+ */
3055
+ checkSlotsForContent(nodes) {
3056
+ if (!nodes) {
3057
+ return false;
3064
3058
  }
3059
+
3060
+ return nodes.some((node) => {
3061
+ if (node.textContent.trim()) {
3062
+ return true;
3063
+ }
3064
+
3065
+ if (!node.querySelector) {
3066
+ return false;
3067
+ }
3068
+
3069
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
3070
+ if (!nestedSlot) {
3071
+ return false;
3072
+ }
3073
+
3074
+ const nestedSlotNodes = nestedSlot.assignedNodes();
3075
+ return this.checkSlotsForContent(nestedSlotNodes);
3076
+ });
3065
3077
  }
3066
3078
 
3067
3079
  // function that renders the HTML and CSS into the scope of the component
@@ -7801,26 +7813,38 @@ class AuroHelpText extends r$9 {
7801
7813
  this.slotNodes = event.target.assignedNodes();
7802
7814
  }
7803
7815
 
7804
- if (this.slotNodes) {
7805
- this.hasTextContent = this.slotNodes.some((slot) => {
7806
- if (slot.textContent.trim()) {
7807
- return true;
7808
- }
7809
-
7810
- if (!slot.querySelector) {
7811
- return false;
7812
- }
7816
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
7817
+ }
7813
7818
 
7814
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
7815
- if (!nestedSlot) {
7816
- return false;
7817
- }
7818
- const nestedSlotNodes = nestedSlot.assignedNodes();
7819
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
7820
- });
7821
- } else {
7822
- this.hasTextContent = false;
7819
+ /**
7820
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
7821
+ *
7822
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
7823
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
7824
+ * @private
7825
+ */
7826
+ checkSlotsForContent(nodes) {
7827
+ if (!nodes) {
7828
+ return false;
7823
7829
  }
7830
+
7831
+ return nodes.some((node) => {
7832
+ if (node.textContent.trim()) {
7833
+ return true;
7834
+ }
7835
+
7836
+ if (!node.querySelector) {
7837
+ return false;
7838
+ }
7839
+
7840
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
7841
+ if (!nestedSlot) {
7842
+ return false;
7843
+ }
7844
+
7845
+ const nestedSlotNodes = nestedSlot.assignedNodes();
7846
+ return this.checkSlotsForContent(nestedSlotNodes);
7847
+ });
7824
7848
  }
7825
7849
 
7826
7850
  // function that renders the HTML and CSS into the scope of the component
@@ -342,19 +342,19 @@ Complete!
342
342
  (!) Unresolved dependencies
343
343
  https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
344
344
  @aurodesignsystem/auro-dropdown (imported by "src/auro-counter-group.js")
345
- created dist in 698ms
345
+ created dist in 1s
346
346
  
347
347
  ./demo/index.js → ./demo/...
348
348
  (!) Unresolved dependencies
349
349
  https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
350
350
  @aurodesignsystem/auro-dropdown (imported by "src/auro-counter-group.js")
351
- created ./demo/ in 606ms
351
+ created ./demo/ in 676ms
352
352
  
353
353
  ./demo/api.js → ./demo/...
354
354
  (!) Unresolved dependencies
355
355
  https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
356
356
  @aurodesignsystem/auro-dropdown (imported by "src/auro-counter-group.js")
357
- created ./demo/ in 605ms
357
+ created ./demo/ in 699ms
358
358
 
359
359
  > @aurodesignsystem/auro-counter@1.0.0 build:docs
360
360
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component counter
@@ -386,10 +386,14 @@ Web Component Analyzer analyzing 2 files...
386
386
  ⁕ FILE:src=./../apiExamples/basic.html
387
387
  ⁕ FILE:src=./../apiExamples/description.html
388
388
  ⁕ FILE:src=./../apiExamples/dropdown.html
389
+ ⁕ FILE:src=./../apiExamples/dropdown-value-text.html
390
+ ⁕ FILE:src=./../apiExamples/dropdown-help-text.html
389
391
  ⁕ FILE:src=./../apiExamples/disabled.html
390
392
  ⁕ CODE:src=./../apiExamples/basic.html
391
393
  ⁕ CODE:src=./../apiExamples/description.html
392
394
  ⁕ CODE:src=./../apiExamples/dropdown.html
395
+ ⁕ CODE:src=./../apiExamples/dropdown-value-text.html
396
+ ⁕ CODE:src=./../apiExamples/dropdown-help-text.html
393
397
  ⁕ CODE:src=./../apiExamples/disabled.html
394
398
 
395
399
  ✔ /demo/api.md Updated
@@ -7,16 +7,16 @@
7
7
  (!) Unresolved dependencies
8
8
  https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
9
9
  @aurodesignsystem/auro-dropdown (imported by "src/auro-counter-group.js")
10
- created dist in 631ms
10
+ created dist in 670ms
11
11
  
12
12
  ./demo/index.js → ./demo/...
13
13
  (!) Unresolved dependencies
14
14
  https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
15
15
  @aurodesignsystem/auro-dropdown (imported by "src/auro-counter-group.js")
16
- created ./demo/ in 451ms
16
+ created ./demo/ in 370ms
17
17
  
18
18
  ./demo/api.js → ./demo/...
19
19
  (!) Unresolved dependencies
20
20
  https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
21
21
  @aurodesignsystem/auro-dropdown (imported by "src/auro-counter-group.js")
22
- created ./demo/ in 299ms
22
+ created ./demo/ in 296ms
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
100
100
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
101
101
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
102
102
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
103
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.28/dist/auro-counter__bundled.js" type="module"></script>
103
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.29/dist/auro-counter__bundled.js" type="module"></script>
104
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
106
106
  ## auro-counter use cases
@@ -61,9 +61,12 @@
61
61
 
62
62
  ## Slots
63
63
 
64
- | Name | Description |
65
- |-----------|----------------------------|
66
- | [Default](#Default) | Slot for counter elements. |
64
+ | Name | Description |
65
+ |-------------|--------------------------------------------------|
66
+ | [Default](#Default) | Slot for counter elements. |
67
+ | [HelpText](#HelpText) | Dropdown help text content. Only used when `isDropdown` is true. |
68
+ | [Label](#Label) | Dropdown label content. Only used when `isDropdown` is true. |
69
+ | [ValueText](#ValueText) | Dropdown value text display. Only used when `isDropdown` is true. |
67
70
  <!-- AURO-GENERATED-CONTENT:END -->
68
71
 
69
72
  ## API Examples
@@ -1583,7 +1583,7 @@ class AuroCounter extends r {
1583
1583
  }
1584
1584
  }
1585
1585
 
1586
- var styleCss$1 = i$5`:host{position:relative;display:block}[slot=trigger]{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}[auro-dropdown]{display:block}`;
1586
+ var styleCss$1 = i$5`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:auto;text-overflow:ellipsis}[auro-dropdown]{display:block}`;
1587
1587
 
1588
1588
  var dropdownVersion = '3.0.0';
1589
1589
 
@@ -1648,6 +1648,9 @@ if (!customElements.get("auro-counter-wrapper")) {
1648
1648
  * @element auro-counter-group
1649
1649
  * @extends LitElement
1650
1650
  * @slot Default - Slot for counter elements.
1651
+ * @slot Label - Dropdown label content. Only used when `isDropdown` is true.
1652
+ * @slot ValueText - Dropdown value text display. Only used when `isDropdown` is true.
1653
+ * @slot HelpText - Dropdown help text content. Only used when `isDropdown` is true.
1651
1654
  */
1652
1655
  class AuroCounterGroup extends r {
1653
1656
  constructor() {
@@ -1866,7 +1869,11 @@ class AuroCounterGroup extends r {
1866
1869
  return u`
1867
1870
  ${this.isDropdown
1868
1871
  ? u`<${this.dropdownTag} common chevron>
1869
- <div slot="trigger">${this.total}<slot name="placeholder"></slot></div>
1872
+ <div slot="trigger"><slot name="valueText">
1873
+ ${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.shadowRoot.querySelector('.label slot').assignedNodes()[0].textContent}${index !== this.counters.length - 1 ? ', ' : ''}`)}
1874
+ </slot></div>
1875
+ <div slot="label"><slot name="label"></slot></div>
1876
+ <div slot="helpText"><slot name="helpText"></slot></div>
1870
1877
  <auro-counter-wrapper isInDropdown>
1871
1878
  </auro-counter-wrapper>
1872
1879
  </${this.dropdownTag}>
@@ -109,22 +109,22 @@ The `auro-counter` component is a ui element that enables a way to increment or
109
109
  <div class="exampleWrapper">
110
110
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown.html) -->
111
111
  <!-- The below content is automatically added from ./../apiExamples/dropdown.html -->
112
- <div style="width: 300px;">
113
- <auro-counter-group isDropdown>
114
- <div slot="placeholder">Passengers</div>
115
- <auro-counter>
116
- Short label
117
- <span slot="description">This is an example of a long sub label wrapping behavior</span>
118
- </auro-counter>
119
- <auro-counter>
120
- This is an example of the wrapping behavior for a long label
121
- <span slot="description">with short sub label text</span>
122
- </auro-counter>
123
- <auro-counter>
124
- This is an example of the wrapping behavior for a long label
125
- <span slot="description">Combined with an example of a long sub label wrapping behavior</span>
126
- </auro-counter>
127
- </auro-counter-group>
112
+ <div style="max-width: 350px;">
113
+ <auro-counter-group isDropdown>
114
+ <div slot="label">Passengers</div>
115
+ <auro-counter>
116
+ Adults
117
+ <span slot="description">18 years or older</span>
118
+ </auro-counter>
119
+ <auro-counter>
120
+ Children
121
+ <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
122
+ </auro-counter>
123
+ <auro-counter>
124
+ Lap Infants
125
+ <span slot="description">Under 2 years</span>
126
+ </auro-counter>
127
+ </auro-counter-group>
128
128
  </div>
129
129
  <!-- AURO-GENERATED-CONTENT:END -->
130
130
  </div>
@@ -134,22 +134,124 @@ The `auro-counter` component is a ui element that enables a way to increment or
134
134
  <!-- The below code snippet is automatically added from ./../apiExamples/dropdown.html -->
135
135
 
136
136
  ```html
137
- <div style="width: 300px;">
137
+ <div style="max-width: 350px;">
138
+ <auro-counter-group isDropdown>
139
+ <div slot="label">Passengers</div>
140
+ <auro-counter>
141
+ Adults
142
+ <span slot="description">18 years or older</span>
143
+ </auro-counter>
144
+ <auro-counter>
145
+ Children
146
+ <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
147
+ </auro-counter>
148
+ <auro-counter>
149
+ Lap Infants
150
+ <span slot="description">Under 2 years</span>
151
+ </auro-counter>
152
+ </auro-counter-group>
153
+ </div>
154
+ ```
155
+ <!-- AURO-GENERATED-CONTENT:END -->
156
+ </auro-accordion>
157
+
158
+ ### Dropdown with custom value text
159
+ <div class="exampleWrapper">
160
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-value-text.html) -->
161
+ <!-- The below content is automatically added from ./../apiExamples/dropdown-value-text.html -->
162
+ <div style="max-width: 350px;">
138
163
  <auro-counter-group isDropdown>
139
- <div slot="placeholder">Passengers</div>
164
+ <div slot="valueText">Custom value text</div>
165
+ <div slot="label"></div>
140
166
  <auro-counter>
141
- Short label
142
- <span slot="description">This is an example of a long sub label wrapping behavior</span>
167
+ Adults
168
+ <span slot="description">18 years or older</span>
143
169
  </auro-counter>
144
170
  <auro-counter>
145
- This is an example of the wrapping behavior for a long label
146
- <span slot="description">with short sub label text</span>
171
+ Children
172
+ <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
147
173
  </auro-counter>
148
174
  <auro-counter>
149
- This is an example of the wrapping behavior for a long label
150
- <span slot="description">Combined with an example of a long sub label wrapping behavior</span>
175
+ Lap Infants
176
+ <span slot="description">Under 2 years</span>
151
177
  </auro-counter>
152
178
  </auro-counter-group>
179
+ </div>
180
+ <!-- AURO-GENERATED-CONTENT:END -->
181
+ </div>
182
+ <auro-accordion alignRight>
183
+ <span slot="trigger">See code</span>
184
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-value-text.html) -->
185
+ <!-- The below code snippet is automatically added from ./../apiExamples/dropdown-value-text.html -->
186
+
187
+ ```html
188
+ <div style="max-width: 350px;">
189
+ <auro-counter-group isDropdown>
190
+ <div slot="valueText">Custom value text</div>
191
+ <div slot="label"></div>
192
+ <auro-counter>
193
+ Adults
194
+ <span slot="description">18 years or older</span>
195
+ </auro-counter>
196
+ <auro-counter>
197
+ Children
198
+ <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
199
+ </auro-counter>
200
+ <auro-counter>
201
+ Lap Infants
202
+ <span slot="description">Under 2 years</span>
203
+ </auro-counter>
204
+ </auro-counter-group>
205
+ </div>
206
+ ```
207
+ <!-- AURO-GENERATED-CONTENT:END -->
208
+ </auro-accordion>
209
+
210
+ ### Dropdown with help text
211
+ <div class="exampleWrapper">
212
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-help-text.html) -->
213
+ <!-- The below content is automatically added from ./../apiExamples/dropdown-help-text.html -->
214
+ <div style="max-width: 350px;">
215
+ <auro-counter-group isDropdown>
216
+ <div slot="helpText">This is help text</div>
217
+ <auro-counter>
218
+ Adults
219
+ <span slot="description">18 years or older</span>
220
+ </auro-counter>
221
+ <auro-counter>
222
+ Children
223
+ <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
224
+ </auro-counter>
225
+ <auro-counter>
226
+ Lap Infants
227
+ <span slot="description">Under 2 years</span>
228
+ </auro-counter>
229
+ </auro-counter-group>
230
+ </div>
231
+ <!-- AURO-GENERATED-CONTENT:END -->
232
+ </div>
233
+ <auro-accordion alignRight>
234
+ <span slot="trigger">See code</span>
235
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-help-text.html) -->
236
+ <!-- The below code snippet is automatically added from ./../apiExamples/dropdown-help-text.html -->
237
+
238
+ ```html
239
+ <div style="max-width: 350px;">
240
+ <auro-counter-group isDropdown>
241
+ <div slot="helpText">This is help text</div>
242
+ <auro-counter>
243
+ Adults
244
+ <span slot="description">18 years or older</span>
245
+ </auro-counter>
246
+ <auro-counter>
247
+ Children
248
+ <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
249
+ </auro-counter>
250
+ <auro-counter>
251
+ Lap Infants
252
+ <span slot="description">Under 2 years</span>
253
+ </auro-counter>
254
+ </auro-counter-group>
153
255
  </div>
154
256
  ```
155
257
  <!-- AURO-GENERATED-CONTENT:END -->