@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
@@ -2585,26 +2585,38 @@ class AuroHelpText extends r {
2585
2585
  this.slotNodes = event.target.assignedNodes();
2586
2586
  }
2587
2587
 
2588
- if (this.slotNodes) {
2589
- this.hasTextContent = this.slotNodes.some((slot) => {
2590
- if (slot.textContent.trim()) {
2591
- return true;
2592
- }
2593
-
2594
- if (!slot.querySelector) {
2595
- return false;
2596
- }
2588
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
2589
+ }
2597
2590
 
2598
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
2599
- if (!nestedSlot) {
2600
- return false;
2601
- }
2602
- const nestedSlotNodes = nestedSlot.assignedNodes();
2603
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
2604
- });
2605
- } else {
2606
- this.hasTextContent = false;
2591
+ /**
2592
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
2593
+ *
2594
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
2595
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
2596
+ * @private
2597
+ */
2598
+ checkSlotsForContent(nodes) {
2599
+ if (!nodes) {
2600
+ return false;
2607
2601
  }
2602
+
2603
+ return nodes.some((node) => {
2604
+ if (node.textContent.trim()) {
2605
+ return true;
2606
+ }
2607
+
2608
+ if (!node.querySelector) {
2609
+ return false;
2610
+ }
2611
+
2612
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
2613
+ if (!nestedSlot) {
2614
+ return false;
2615
+ }
2616
+
2617
+ const nestedSlotNodes = nestedSlot.assignedNodes();
2618
+ return this.checkSlotsForContent(nestedSlotNodes);
2619
+ });
2608
2620
  }
2609
2621
 
2610
2622
  // function that renders the HTML and CSS into the scope of the component
@@ -2585,26 +2585,38 @@ class AuroHelpText extends r {
2585
2585
  this.slotNodes = event.target.assignedNodes();
2586
2586
  }
2587
2587
 
2588
- if (this.slotNodes) {
2589
- this.hasTextContent = this.slotNodes.some((slot) => {
2590
- if (slot.textContent.trim()) {
2591
- return true;
2592
- }
2593
-
2594
- if (!slot.querySelector) {
2595
- return false;
2596
- }
2588
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
2589
+ }
2597
2590
 
2598
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
2599
- if (!nestedSlot) {
2600
- return false;
2601
- }
2602
- const nestedSlotNodes = nestedSlot.assignedNodes();
2603
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
2604
- });
2605
- } else {
2606
- this.hasTextContent = false;
2591
+ /**
2592
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
2593
+ *
2594
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
2595
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
2596
+ * @private
2597
+ */
2598
+ checkSlotsForContent(nodes) {
2599
+ if (!nodes) {
2600
+ return false;
2607
2601
  }
2602
+
2603
+ return nodes.some((node) => {
2604
+ if (node.textContent.trim()) {
2605
+ return true;
2606
+ }
2607
+
2608
+ if (!node.querySelector) {
2609
+ return false;
2610
+ }
2611
+
2612
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
2613
+ if (!nestedSlot) {
2614
+ return false;
2615
+ }
2616
+
2617
+ const nestedSlotNodes = nestedSlot.assignedNodes();
2618
+ return this.checkSlotsForContent(nestedSlotNodes);
2619
+ });
2608
2620
  }
2609
2621
 
2610
2622
  // function that renders the HTML and CSS into the scope of the component
@@ -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 146ms
72
+ created dist in 151ms
73
73
  
74
74
  ./demo/index.js → ./demo/...
75
75
  created ./demo/ in 76ms
76
76
  
77
77
  ./demo/api.js → ./demo/...
78
- created ./demo/ in 66ms
78
+ created ./demo/ in 67ms
79
79
 
80
80
  > @aurodesignsystem/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 304ms
7
+ created dist in 299ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 175ms
10
+ created ./demo/ in 188ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 202ms
13
+ created ./demo/ in 135ms
@@ -98,7 +98,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
98
98
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
99
99
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
100
100
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
101
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.28/dist/auro-form__bundled.js" type="module"></script>
101
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.29/dist/auro-form__bundled.js" type="module"></script>
102
102
  <!-- AURO-GENERATED-CONTENT:END -->
103
103
 
104
104
  ## auro-form use cases
@@ -42,7 +42,7 @@ More info and automated migrator: https://sass-lang.com/d/import
42
42
 
43
43
  
44
44
  ./src/index.js → dist...
45
- created dist in 239ms
45
+ created dist in 243ms
46
46
 
47
47
  > @aurodesignsystem/auro-helptext@1.0.0 types
48
48
  > tsc --project tsconfig.json
@@ -4,4 +4,4 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 384ms
7
+ created dist in 339ms
@@ -40,6 +40,14 @@ export class AuroHelpText extends LitElement {
40
40
  updated(): void;
41
41
  handleSlotChange(event: any): void;
42
42
  slotNodes: any;
43
+ /**
44
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
45
+ *
46
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
47
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
48
+ * @private
49
+ */
50
+ private checkSlotsForContent;
43
51
  render(): import("lit-html").TemplateResult<1>;
44
52
  }
45
53
  import { LitElement } from "lit";
@@ -1 +1 @@
1
- {"version":3,"file":"auro-helptext.d.ts","sourceRoot":"","sources":["../src/auro-helptext.js"],"names":[],"mappings":"AAaA;;;;GAIG;AACH;IASE,+CAMC;IAGD;QAGI;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;MAMN;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAlDC,eAAkB;IAClB,wBAA2B;IAmD7B,gBAEC;IAED,mCAyBC;IAvBG,eAA6C;IA0BjD,+CAMC;CACF;2BA7GgC,KAAK"}
1
+ {"version":3,"file":"auro-helptext.d.ts","sourceRoot":"","sources":["../src/auro-helptext.js"],"names":[],"mappings":"AAaA;;;;GAIG;AACH;IASE,+CAMC;IAGD;QAGI;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;MAMN;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAlDC,eAAkB;IAClB,wBAA2B;IAmD7B,gBAEC;IAED,mCAMC;IAJG,eAA6C;IAMjD;;;;;;OAMG;IACH,6BAsBC;IAGD,+CAMC;CACF;2BAzHgC,KAAK"}
@@ -175,26 +175,38 @@ class AuroHelpText extends r {
175
175
  this.slotNodes = event.target.assignedNodes();
176
176
  }
177
177
 
178
- if (this.slotNodes) {
179
- this.hasTextContent = this.slotNodes.some((slot) => {
180
- if (slot.textContent.trim()) {
181
- return true;
182
- }
183
-
184
- if (!slot.querySelector) {
185
- return false;
186
- }
187
-
188
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
189
- if (!nestedSlot) {
190
- return false;
191
- }
192
- const nestedSlotNodes = nestedSlot.assignedNodes();
193
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
194
- });
195
- } else {
196
- this.hasTextContent = false;
178
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
179
+ }
180
+
181
+ /**
182
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
183
+ *
184
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
185
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
186
+ * @private
187
+ */
188
+ checkSlotsForContent(nodes) {
189
+ if (!nodes) {
190
+ return false;
197
191
  }
192
+
193
+ return nodes.some((node) => {
194
+ if (node.textContent.trim()) {
195
+ return true;
196
+ }
197
+
198
+ if (!node.querySelector) {
199
+ return false;
200
+ }
201
+
202
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
203
+ if (!nestedSlot) {
204
+ return false;
205
+ }
206
+
207
+ const nestedSlotNodes = nestedSlot.assignedNodes();
208
+ return this.checkSlotsForContent(nestedSlotNodes);
209
+ });
198
210
  }
199
211
 
200
212
  // function that renders the HTML and CSS into the scope of the component
@@ -82,26 +82,38 @@ export class AuroHelpText extends LitElement {
82
82
  this.slotNodes = event.target.assignedNodes();
83
83
  }
84
84
 
85
- if (this.slotNodes) {
86
- this.hasTextContent = this.slotNodes.some((slot) => {
87
- if (slot.textContent.trim()) {
88
- return true;
89
- }
90
-
91
- if (!slot.querySelector) {
92
- return false;
93
- }
94
-
95
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
96
- if (!nestedSlot) {
97
- return false;
98
- }
99
- const nestedSlotNodes = nestedSlot.assignedNodes();
100
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
101
- });
102
- } else {
103
- this.hasTextContent = false;
85
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
86
+ }
87
+
88
+ /**
89
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
90
+ *
91
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
92
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
93
+ * @private
94
+ */
95
+ checkSlotsForContent(nodes) {
96
+ if (!nodes) {
97
+ return false;
104
98
  }
99
+
100
+ return nodes.some((node) => {
101
+ if (node.textContent.trim()) {
102
+ return true;
103
+ }
104
+
105
+ if (!node.querySelector) {
106
+ return false;
107
+ }
108
+
109
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
110
+ if (!nestedSlot) {
111
+ return false;
112
+ }
113
+
114
+ const nestedSlotNodes = nestedSlot.assignedNodes();
115
+ return this.checkSlotsForContent(nestedSlotNodes);
116
+ });
105
117
  }
106
118
 
107
119
  // function that renders the HTML and CSS into the scope of the component
@@ -209,10 +209,10 @@ More info and automated migrator: https://sass-lang.com/d/import
209
209
  created dist in 1.5s
210
210
  
211
211
  ./demo/index.js → ./demo/...
212
- created ./demo/ in 1s
212
+ created ./demo/ in 960ms
213
213
  
214
214
  ./demo/api.js → ./demo/...
215
- created ./demo/ in 1.1s
215
+ created ./demo/ in 902ms
216
216
 
217
217
  > @aurodesignsystem/auro-input@4.2.0 build:docs
218
218
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component input
@@ -89,7 +89,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
89
89
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
90
90
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
91
91
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
92
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.28/dist/auro-input__bundled.js" type="module"></script>
92
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.29/dist/auro-input__bundled.js" type="module"></script>
93
93
  <!-- AURO-GENERATED-CONTENT:END -->
94
94
 
95
95
  ## auro-input use cases
@@ -4247,26 +4247,38 @@ class AuroHelpText extends r {
4247
4247
  this.slotNodes = event.target.assignedNodes();
4248
4248
  }
4249
4249
 
4250
- if (this.slotNodes) {
4251
- this.hasTextContent = this.slotNodes.some((slot) => {
4252
- if (slot.textContent.trim()) {
4253
- return true;
4254
- }
4255
-
4256
- if (!slot.querySelector) {
4257
- return false;
4258
- }
4250
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
4251
+ }
4259
4252
 
4260
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
4261
- if (!nestedSlot) {
4262
- return false;
4263
- }
4264
- const nestedSlotNodes = nestedSlot.assignedNodes();
4265
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
4266
- });
4267
- } else {
4268
- this.hasTextContent = false;
4253
+ /**
4254
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
4255
+ *
4256
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
4257
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
4258
+ * @private
4259
+ */
4260
+ checkSlotsForContent(nodes) {
4261
+ if (!nodes) {
4262
+ return false;
4269
4263
  }
4264
+
4265
+ return nodes.some((node) => {
4266
+ if (node.textContent.trim()) {
4267
+ return true;
4268
+ }
4269
+
4270
+ if (!node.querySelector) {
4271
+ return false;
4272
+ }
4273
+
4274
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
4275
+ if (!nestedSlot) {
4276
+ return false;
4277
+ }
4278
+
4279
+ const nestedSlotNodes = nestedSlot.assignedNodes();
4280
+ return this.checkSlotsForContent(nestedSlotNodes);
4281
+ });
4270
4282
  }
4271
4283
 
4272
4284
  // function that renders the HTML and CSS into the scope of the component
@@ -4185,26 +4185,38 @@ class AuroHelpText extends r {
4185
4185
  this.slotNodes = event.target.assignedNodes();
4186
4186
  }
4187
4187
 
4188
- if (this.slotNodes) {
4189
- this.hasTextContent = this.slotNodes.some((slot) => {
4190
- if (slot.textContent.trim()) {
4191
- return true;
4192
- }
4193
-
4194
- if (!slot.querySelector) {
4195
- return false;
4196
- }
4188
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
4189
+ }
4197
4190
 
4198
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
4199
- if (!nestedSlot) {
4200
- return false;
4201
- }
4202
- const nestedSlotNodes = nestedSlot.assignedNodes();
4203
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
4204
- });
4205
- } else {
4206
- this.hasTextContent = false;
4191
+ /**
4192
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
4193
+ *
4194
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
4195
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
4196
+ * @private
4197
+ */
4198
+ checkSlotsForContent(nodes) {
4199
+ if (!nodes) {
4200
+ return false;
4207
4201
  }
4202
+
4203
+ return nodes.some((node) => {
4204
+ if (node.textContent.trim()) {
4205
+ return true;
4206
+ }
4207
+
4208
+ if (!node.querySelector) {
4209
+ return false;
4210
+ }
4211
+
4212
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
4213
+ if (!nestedSlot) {
4214
+ return false;
4215
+ }
4216
+
4217
+ const nestedSlotNodes = nestedSlot.assignedNodes();
4218
+ return this.checkSlotsForContent(nestedSlotNodes);
4219
+ });
4208
4220
  }
4209
4221
 
4210
4222
  // function that renders the HTML and CSS into the scope of the component
@@ -4168,26 +4168,38 @@ class AuroHelpText extends r {
4168
4168
  this.slotNodes = event.target.assignedNodes();
4169
4169
  }
4170
4170
 
4171
- if (this.slotNodes) {
4172
- this.hasTextContent = this.slotNodes.some((slot) => {
4173
- if (slot.textContent.trim()) {
4174
- return true;
4175
- }
4176
-
4177
- if (!slot.querySelector) {
4178
- return false;
4179
- }
4171
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
4172
+ }
4180
4173
 
4181
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
4182
- if (!nestedSlot) {
4183
- return false;
4184
- }
4185
- const nestedSlotNodes = nestedSlot.assignedNodes();
4186
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
4187
- });
4188
- } else {
4189
- this.hasTextContent = false;
4174
+ /**
4175
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
4176
+ *
4177
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
4178
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
4179
+ * @private
4180
+ */
4181
+ checkSlotsForContent(nodes) {
4182
+ if (!nodes) {
4183
+ return false;
4190
4184
  }
4185
+
4186
+ return nodes.some((node) => {
4187
+ if (node.textContent.trim()) {
4188
+ return true;
4189
+ }
4190
+
4191
+ if (!node.querySelector) {
4192
+ return false;
4193
+ }
4194
+
4195
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
4196
+ if (!nestedSlot) {
4197
+ return false;
4198
+ }
4199
+
4200
+ const nestedSlotNodes = nestedSlot.assignedNodes();
4201
+ return this.checkSlotsForContent(nestedSlotNodes);
4202
+ });
4191
4203
  }
4192
4204
 
4193
4205
  // function that renders the HTML and CSS into the scope of the component
@@ -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 660ms
104
+ created dist in 829ms
105
105
  
106
106
  ./demo/index.js → ./demo/...
107
- created ./demo/ in 617ms
107
+ created ./demo/ in 410ms
108
108
  
109
109
  ./demo/api.js → ./demo/...
110
- created ./demo/ in 483ms
110
+ created ./demo/ in 331ms
111
111
 
112
112
  > @aurodesignsystem/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
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 453ms
7
+ created dist in 518ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 385ms
10
+ created ./demo/ in 284ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 248ms
13
+ created ./demo/ in 276ms
@@ -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-menu@2.0.0-beta.28/dist/auro-menu__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
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
106
106
  ## auro-menu use cases
@@ -138,13 +138,13 @@ Run in verbose mode to see all warnings.
138
138
 
139
139
  
140
140
  ./src/index.js → dist...
141
- created dist in 642ms
141
+ created dist in 768ms
142
142
  
143
143
  ./demo/index.js → ./demo/...
144
- created ./demo/ in 586ms
144
+ created ./demo/ in 584ms
145
145
  
146
146
  ./demo/api.js → ./demo/...
147
- created ./demo/ in 717ms
147
+ created ./demo/ in 504ms
148
148
 
149
149
  > @aurodesignsystem/auro-radio@4.1.1 build:docs
150
150
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component radio
@@ -90,7 +90,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
90
90
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
91
91
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
92
92
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
93
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-radio@2.0.0-beta.28/dist/auro-radio__bundled.js" type="module"></script>
93
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-radio@2.0.0-beta.29/dist/auro-radio__bundled.js" type="module"></script>
94
94
  <!-- AURO-GENERATED-CONTENT:END -->
95
95
 
96
96
  ## auro-radio use cases
@@ -883,26 +883,38 @@ class AuroHelpText extends r {
883
883
  this.slotNodes = event.target.assignedNodes();
884
884
  }
885
885
 
886
- if (this.slotNodes) {
887
- this.hasTextContent = this.slotNodes.some((slot) => {
888
- if (slot.textContent.trim()) {
889
- return true;
890
- }
891
-
892
- if (!slot.querySelector) {
893
- return false;
894
- }
886
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
887
+ }
895
888
 
896
- const nestedSlot = slot.tagName === 'SLOT' ? slot : slot.querySelector('slot');
897
- if (!nestedSlot) {
898
- return false;
899
- }
900
- const nestedSlotNodes = nestedSlot.assignedNodes();
901
- return nestedSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
902
- });
903
- } else {
904
- this.hasTextContent = false;
889
+ /**
890
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
891
+ *
892
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
893
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
894
+ * @private
895
+ */
896
+ checkSlotsForContent(nodes) {
897
+ if (!nodes) {
898
+ return false;
905
899
  }
900
+
901
+ return nodes.some((node) => {
902
+ if (node.textContent.trim()) {
903
+ return true;
904
+ }
905
+
906
+ if (!node.querySelector) {
907
+ return false;
908
+ }
909
+
910
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
911
+ if (!nestedSlot) {
912
+ return false;
913
+ }
914
+
915
+ const nestedSlotNodes = nestedSlot.assignedNodes();
916
+ return this.checkSlotsForContent(nestedSlotNodes);
917
+ });
906
918
  }
907
919
 
908
920
  // function that renders the HTML and CSS into the scope of the component