@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
@@ -858,26 +858,38 @@ class AuroHelpText extends r {
858
858
  this.slotNodes = event.target.assignedNodes();
859
859
  }
860
860
 
861
- if (this.slotNodes) {
862
- this.hasTextContent = this.slotNodes.some((slot) => {
863
- if (slot.textContent.trim()) {
864
- return true;
865
- }
866
-
867
- if (!slot.querySelector) {
868
- return false;
869
- }
861
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
862
+ }
870
863
 
871
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
872
- if (!nestedSlot) {
873
- return false;
874
- }
875
- const nestedSlotNodes = nestedSlot.assignedNodes();
876
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
877
- });
878
- } else {
879
- this.hasTextContent = false;
864
+ /**
865
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
866
+ *
867
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
868
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
869
+ * @private
870
+ */
871
+ checkSlotsForContent(nodes) {
872
+ if (!nodes) {
873
+ return false;
880
874
  }
875
+
876
+ return nodes.some((node) => {
877
+ if (node.textContent.trim()) {
878
+ return true;
879
+ }
880
+
881
+ if (!node.querySelector) {
882
+ return false;
883
+ }
884
+
885
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
886
+ if (!nestedSlot) {
887
+ return false;
888
+ }
889
+
890
+ const nestedSlotNodes = nestedSlot.assignedNodes();
891
+ return this.checkSlotsForContent(nestedSlotNodes);
892
+ });
881
893
  }
882
894
 
883
895
  // function that renders the HTML and CSS into the scope of the component
@@ -858,26 +858,38 @@ class AuroHelpText extends r {
858
858
  this.slotNodes = event.target.assignedNodes();
859
859
  }
860
860
 
861
- if (this.slotNodes) {
862
- this.hasTextContent = this.slotNodes.some((slot) => {
863
- if (slot.textContent.trim()) {
864
- return true;
865
- }
866
-
867
- if (!slot.querySelector) {
868
- return false;
869
- }
861
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
862
+ }
870
863
 
871
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
872
- if (!nestedSlot) {
873
- return false;
874
- }
875
- const nestedSlotNodes = nestedSlot.assignedNodes();
876
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
877
- });
878
- } else {
879
- this.hasTextContent = false;
864
+ /**
865
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
866
+ *
867
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
868
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
869
+ * @private
870
+ */
871
+ checkSlotsForContent(nodes) {
872
+ if (!nodes) {
873
+ return false;
880
874
  }
875
+
876
+ return nodes.some((node) => {
877
+ if (node.textContent.trim()) {
878
+ return true;
879
+ }
880
+
881
+ if (!node.querySelector) {
882
+ return false;
883
+ }
884
+
885
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
886
+ if (!nestedSlot) {
887
+ return false;
888
+ }
889
+
890
+ const nestedSlotNodes = nestedSlot.assignedNodes();
891
+ return this.checkSlotsForContent(nestedSlotNodes);
892
+ });
881
893
  }
882
894
 
883
895
  // function that renders the HTML and CSS into the scope of the component
@@ -137,13 +137,13 @@ More info and automated migrator: https://sass-lang.com/d/import
137
137
 
138
138
  
139
139
  ./src/index.js → dist...
140
- created dist in 794ms
140
+ created dist in 850ms
141
141
  
142
142
  ./demo/index.js → ./demo/...
143
- created ./demo/ in 829ms
143
+ created ./demo/ in 716ms
144
144
  
145
145
  ./demo/api.js → ./demo/...
146
- created ./demo/ in 515ms
146
+ created ./demo/ in 561ms
147
147
 
148
148
  > @aurodesignsystem/auro-select@3.3.0 build:docs
149
149
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component select
@@ -99,9 +99,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
99
99
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
100
100
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
101
101
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
102
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.28/dist/auro-dropdown__bundled.js" type="module"></script>
103
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.28/dist/auro-menu__bundled.js" type="module"></script>
104
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-select@2.0.0-beta.28/dist/auro-select__bundled.js" type="module"></script>
102
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.29/dist/auro-dropdown__bundled.js" type="module"></script>
103
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.29/dist/auro-menu__bundled.js" type="module"></script>
104
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-select@2.0.0-beta.29/dist/auro-select__bundled.js" type="module"></script>
105
105
  <!-- AURO-GENERATED-CONTENT:END -->
106
106
 
107
107
  ## auro-select use cases
@@ -3159,26 +3159,38 @@ class AuroHelpText extends r$8 {
3159
3159
  this.slotNodes = event.target.assignedNodes();
3160
3160
  }
3161
3161
 
3162
- if (this.slotNodes) {
3163
- this.hasTextContent = this.slotNodes.some((slot) => {
3164
- if (slot.textContent.trim()) {
3165
- return true;
3166
- }
3167
-
3168
- if (!slot.querySelector) {
3169
- return false;
3170
- }
3162
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
3163
+ }
3171
3164
 
3172
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
3173
- if (!nestedSlot) {
3174
- return false;
3175
- }
3176
- const nestedSlotNodes = nestedSlot.assignedNodes();
3177
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3178
- });
3179
- } else {
3180
- this.hasTextContent = false;
3165
+ /**
3166
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
3167
+ *
3168
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
3169
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
3170
+ * @private
3171
+ */
3172
+ checkSlotsForContent(nodes) {
3173
+ if (!nodes) {
3174
+ return false;
3181
3175
  }
3176
+
3177
+ return nodes.some((node) => {
3178
+ if (node.textContent.trim()) {
3179
+ return true;
3180
+ }
3181
+
3182
+ if (!node.querySelector) {
3183
+ return false;
3184
+ }
3185
+
3186
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
3187
+ if (!nestedSlot) {
3188
+ return false;
3189
+ }
3190
+
3191
+ const nestedSlotNodes = nestedSlot.assignedNodes();
3192
+ return this.checkSlotsForContent(nestedSlotNodes);
3193
+ });
3182
3194
  }
3183
3195
 
3184
3196
  // function that renders the HTML and CSS into the scope of the component
@@ -3055,26 +3055,38 @@ class AuroHelpText extends r$8 {
3055
3055
  this.slotNodes = event.target.assignedNodes();
3056
3056
  }
3057
3057
 
3058
- if (this.slotNodes) {
3059
- this.hasTextContent = this.slotNodes.some((slot) => {
3060
- if (slot.textContent.trim()) {
3061
- return true;
3062
- }
3063
-
3064
- if (!slot.querySelector) {
3065
- return false;
3066
- }
3058
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
3059
+ }
3067
3060
 
3068
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
3069
- if (!nestedSlot) {
3070
- return false;
3071
- }
3072
- const nestedSlotNodes = nestedSlot.assignedNodes();
3073
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3074
- });
3075
- } else {
3076
- this.hasTextContent = false;
3061
+ /**
3062
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
3063
+ *
3064
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
3065
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
3066
+ * @private
3067
+ */
3068
+ checkSlotsForContent(nodes) {
3069
+ if (!nodes) {
3070
+ return false;
3077
3071
  }
3072
+
3073
+ return nodes.some((node) => {
3074
+ if (node.textContent.trim()) {
3075
+ return true;
3076
+ }
3077
+
3078
+ if (!node.querySelector) {
3079
+ return false;
3080
+ }
3081
+
3082
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
3083
+ if (!nestedSlot) {
3084
+ return false;
3085
+ }
3086
+
3087
+ const nestedSlotNodes = nestedSlot.assignedNodes();
3088
+ return this.checkSlotsForContent(nestedSlotNodes);
3089
+ });
3078
3090
  }
3079
3091
 
3080
3092
  // function that renders the HTML and CSS into the scope of the component
@@ -3055,26 +3055,38 @@ class AuroHelpText extends r$8 {
3055
3055
  this.slotNodes = event.target.assignedNodes();
3056
3056
  }
3057
3057
 
3058
- if (this.slotNodes) {
3059
- this.hasTextContent = this.slotNodes.some((slot) => {
3060
- if (slot.textContent.trim()) {
3061
- return true;
3062
- }
3063
-
3064
- if (!slot.querySelector) {
3065
- return false;
3066
- }
3058
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
3059
+ }
3067
3060
 
3068
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
3069
- if (!nestedSlot) {
3070
- return false;
3071
- }
3072
- const nestedSlotNodes = nestedSlot.assignedNodes();
3073
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3074
- });
3075
- } else {
3076
- this.hasTextContent = false;
3061
+ /**
3062
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
3063
+ *
3064
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
3065
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
3066
+ * @private
3067
+ */
3068
+ checkSlotsForContent(nodes) {
3069
+ if (!nodes) {
3070
+ return false;
3077
3071
  }
3072
+
3073
+ return nodes.some((node) => {
3074
+ if (node.textContent.trim()) {
3075
+ return true;
3076
+ }
3077
+
3078
+ if (!node.querySelector) {
3079
+ return false;
3080
+ }
3081
+
3082
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
3083
+ if (!nestedSlot) {
3084
+ return false;
3085
+ }
3086
+
3087
+ const nestedSlotNodes = nestedSlot.assignedNodes();
3088
+ return this.checkSlotsForContent(nestedSlotNodes);
3089
+ });
3078
3090
  }
3079
3091
 
3080
3092
  // function that renders the HTML and CSS into the scope of the component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem/auro-formkit",
3
- "version": "2.0.0-beta.29",
3
+ "version": "2.0.0-beta.30",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -1 +0,0 @@
1
- {"hash":"06322ed0d04880b4","duration":10124}
@@ -1 +0,0 @@
1
- {"hash":"0b25a5384daf4b43","duration":18529}
@@ -1 +0,0 @@
1
- {"hash":"1e42bb6f66cd5516","duration":5144}
@@ -1 +0,0 @@
1
- {"hash":"202a84630d73699f","duration":20581}
@@ -1 +0,0 @@
1
- {"hash":"3b758f5ca6cedcac","duration":1397}
@@ -1 +0,0 @@
1
- {"hash":"4472ff3b156042a3","duration":17639}
@@ -1 +0,0 @@
1
- {"hash":"448b2ae2221bf660","duration":17618}
@@ -1 +0,0 @@
1
- {"hash":"4655a084a08732a7","duration":1325}
@@ -1 +0,0 @@
1
- {"hash":"46f08b3f239b6b3c","duration":1165}
@@ -1 +0,0 @@
1
- {"hash":"4f06a06e4f458e75","duration":19086}
@@ -1 +0,0 @@
1
- {"hash":"4f0d7e7df611108b","duration":3584}
@@ -1 +0,0 @@
1
- {"hash":"533b2c6c9fb1166a","duration":9578}
@@ -1 +0,0 @@
1
- {"hash":"560d172ca96e1544","duration":4786}
@@ -1 +0,0 @@
1
- {"hash":"9dc293081f28a24d","duration":1544}
@@ -1 +0,0 @@
1
- {"hash":"a9db8818bc92a60e","duration":2941}
@@ -1 +0,0 @@
1
- {"hash":"bae62d7b71b88997","duration":762}
@@ -1 +0,0 @@
1
- {"hash":"bb3131b31c8adc36","duration":18596}
@@ -1 +0,0 @@
1
- {"hash":"c45962e00a15f78b","duration":6069}
@@ -1 +0,0 @@
1
- {"hash":"c49eaa579b60f045","duration":2112}
@@ -1 +0,0 @@
1
- {"hash":"cbc12d12ec0e13ca","duration":20885}
@@ -1 +0,0 @@
1
- {"hash":"d7d47541c105641f","duration":1038}
@@ -1 +0,0 @@
1
- {"hash":"e95a7d076e700003","duration":1820}
@@ -1 +0,0 @@
1
- {"hash":"f571abacf9ec4e84","duration":2317}
@@ -1 +0,0 @@
1
- {"hash":"fa0bc0a1d41397e8","duration":4628}
@@ -1 +0,0 @@
1
- {"hash":"fce6b6ea288791bf","duration":6482}