@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.
- package/.turbo/cache/019608f754b4fd0c-meta.json +1 -1
- package/.turbo/cache/111ea1a7d5e86aac-meta.json +1 -0
- package/.turbo/cache/111ea1a7d5e86aac.tar.zst +0 -0
- package/.turbo/cache/18ce0cc67c14e0c9-meta.json +1 -1
- package/.turbo/cache/1d4280429ff4222f-meta.json +1 -1
- package/.turbo/cache/251ba344c6338ba3-meta.json +1 -1
- package/.turbo/cache/298b6ff0272e6226-meta.json +1 -1
- package/.turbo/cache/2abb5400a01a1694-meta.json +1 -1
- package/.turbo/cache/30fda91ef83677e4-meta.json +1 -1
- package/.turbo/cache/3221d91a94756c26-meta.json +1 -1
- package/.turbo/cache/3ab09fe7cf32b3bf-meta.json +1 -1
- package/.turbo/cache/3d05fb6e2d593287-meta.json +1 -0
- package/.turbo/cache/3f1b3db13386acdc-meta.json +1 -1
- package/.turbo/cache/430c124614841675-meta.json +1 -1
- package/.turbo/cache/45bdeb0396723b25-meta.json +1 -1
- package/.turbo/cache/4e9c9a5dd62c50a4-meta.json +1 -1
- package/.turbo/cache/559b052d8150dd3f-meta.json +1 -0
- package/.turbo/cache/{9dc293081f28a24d.tar.zst → 559b052d8150dd3f.tar.zst} +0 -0
- package/.turbo/cache/5748467be5ef9c07-meta.json +1 -0
- package/.turbo/cache/5748467be5ef9c07.tar.zst +0 -0
- package/.turbo/cache/59481fd7f6f355ed-meta.json +1 -1
- package/.turbo/cache/5a78bd07d371dd47-meta.json +1 -0
- package/.turbo/cache/{46f08b3f239b6b3c.tar.zst → 5a78bd07d371dd47.tar.zst} +0 -0
- package/.turbo/cache/5fc9a7a072827b7b-meta.json +1 -1
- package/.turbo/cache/63f832b4947ecf9d-meta.json +1 -0
- package/.turbo/cache/63f832b4947ecf9d.tar.zst +0 -0
- package/.turbo/cache/6a5dc307d8619c06-meta.json +1 -0
- package/.turbo/cache/6a5dc307d8619c06.tar.zst +0 -0
- package/.turbo/cache/6ed764f60d634993-meta.json +1 -0
- package/.turbo/cache/6ed764f60d634993.tar.zst +0 -0
- package/.turbo/cache/753b119a389426be-meta.json +1 -1
- package/.turbo/cache/80ece7354266e40f-meta.json +1 -0
- package/.turbo/cache/80ece7354266e40f.tar.zst +0 -0
- package/.turbo/cache/846bade4a9a3eba9-meta.json +1 -0
- package/.turbo/cache/846bade4a9a3eba9.tar.zst +0 -0
- package/.turbo/cache/8ac38d70a60381cb-meta.json +1 -1
- package/.turbo/cache/8c637a8d4c2166c5-meta.json +1 -1
- package/.turbo/cache/8cd5a06a396632cf-meta.json +1 -0
- package/.turbo/cache/{4472ff3b156042a3.tar.zst → 8cd5a06a396632cf.tar.zst} +0 -0
- package/.turbo/cache/970ba88c4c4092cd-meta.json +1 -0
- package/.turbo/cache/970ba88c4c4092cd.tar.zst +0 -0
- package/.turbo/cache/9db5147195c32672-meta.json +1 -0
- package/.turbo/cache/a002bc214179bedc-meta.json +1 -0
- package/.turbo/cache/a02c2bc2a4638817-meta.json +1 -0
- package/.turbo/cache/{cbc12d12ec0e13ca.tar.zst → a02c2bc2a4638817.tar.zst} +0 -0
- package/.turbo/cache/a7004571f6307848-meta.json +1 -0
- package/.turbo/cache/a7004571f6307848.tar.zst +0 -0
- package/.turbo/cache/a7dea1f1ae1fdc27-meta.json +1 -1
- package/.turbo/cache/a8307dcc447702ad-meta.json +1 -0
- package/.turbo/cache/a8307dcc447702ad.tar.zst +0 -0
- package/.turbo/cache/a9dc1069fcd851ff-meta.json +1 -0
- package/.turbo/cache/a9dc1069fcd851ff.tar.zst +0 -0
- package/.turbo/cache/b4de0d19f9eeaceb-meta.json +1 -0
- package/.turbo/cache/b4de0d19f9eeaceb.tar.zst +0 -0
- package/.turbo/cache/b682d4cec0741fa1-meta.json +1 -0
- package/.turbo/cache/b682d4cec0741fa1.tar.zst +0 -0
- package/.turbo/cache/bf3d1eace5e676f9-meta.json +1 -1
- package/.turbo/cache/c27d47351838ceb1-meta.json +1 -0
- package/.turbo/cache/c27d47351838ceb1.tar.zst +0 -0
- package/.turbo/cache/c7d435ade46f3c1e-meta.json +1 -0
- package/.turbo/cache/cbcd9db8ac9a2d52-meta.json +1 -1
- package/.turbo/cache/d0c4bf3a3a3840fd-meta.json +1 -0
- package/.turbo/cache/d0c4bf3a3a3840fd.tar.zst +0 -0
- package/.turbo/cache/d3afdb9a7db9eacc-meta.json +1 -1
- package/.turbo/cache/d8ecdff9c663c38e-meta.json +1 -1
- package/.turbo/cache/de494df6a3006101-meta.json +1 -1
- package/.turbo/cache/e06dedab4c19ae2a-meta.json +1 -0
- package/.turbo/cache/e06dedab4c19ae2a.tar.zst +0 -0
- package/.turbo/cache/e56a9865641ec3e8-meta.json +1 -1
- package/.turbo/cache/e7ed9e7056d80938-meta.json +1 -1
- package/.turbo/cache/e837827cd24834c4-meta.json +1 -1
- package/.turbo/cache/e9ff93179777aa26-meta.json +1 -1
- package/.turbo/cache/f6220a9af06bee74-meta.json +1 -0
- package/.turbo/cache/f6220a9af06bee74.tar.zst +0 -0
- package/.turbo/cache/f7ab9a13f9acc0ab-meta.json +1 -1
- package/.turbo/cache/ff3c8a3042cab66e-meta.json +1 -1
- package/CHANGELOG.md +12 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +30 -18
- package/components/checkbox/demo/index.min.js +30 -18
- package/components/checkbox/dist/index.js +30 -18
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/README.md +4 -4
- package/components/combobox/demo/api.min.js +60 -36
- package/components/combobox/demo/index.min.js +60 -36
- package/components/combobox/dist/index.js +60 -36
- package/components/counter/.turbo/turbo-build.log +7 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.md +6 -3
- package/components/counter/demo/api.min.js +9 -2
- package/components/counter/demo/index.md +126 -24
- package/components/counter/demo/index.min.js +9 -2
- package/components/counter/dist/auro-counter-group.d.ts +3 -0
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/index.js +9 -2
- package/components/counter/src/auro-counter-group.js +8 -1
- package/components/counter/src/styles/counter-group-css.js +1 -1
- package/components/counter/src/styles/counter-group.css +4 -5
- package/components/counter/src/styles/counter-group.scss +4 -6
- package/components/datepicker/.turbo/turbo-build.log +2 -2
- package/components/datepicker/README.md +4 -4
- package/components/datepicker/demo/api.min.js +60 -36
- package/components/datepicker/demo/index.min.js +60 -36
- package/components/datepicker/dist/index.js +60 -36
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.min.js +30 -18
- package/components/dropdown/demo/index.min.js +30 -18
- package/components/dropdown/dist/index.js +30 -18
- package/components/form/.turbo/turbo-build.log +2 -2
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/form/README.md +1 -1
- package/components/helptext/.turbo/turbo-build.log +1 -1
- package/components/helptext/.turbo/turbo-bundler.log +1 -1
- package/components/helptext/dist/auro-helptext.d.ts +8 -0
- package/components/helptext/dist/auro-helptext.d.ts.map +1 -1
- package/components/helptext/dist/index.js +31 -19
- package/components/helptext/src/auro-helptext.js +31 -19
- package/components/input/.turbo/turbo-build.log +2 -2
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +30 -18
- package/components/input/demo/index.min.js +30 -18
- package/components/input/dist/index.js +30 -18
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/README.md +1 -1
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +30 -18
- package/components/radio/demo/index.min.js +30 -18
- package/components/radio/dist/index.js +30 -18
- package/components/select/.turbo/turbo-build.log +3 -3
- package/components/select/README.md +3 -3
- package/components/select/demo/api.min.js +30 -18
- package/components/select/demo/index.min.js +30 -18
- package/components/select/dist/index.js +30 -18
- package/package.json +1 -1
- package/.turbo/cache/06322ed0d04880b4-meta.json +0 -1
- package/.turbo/cache/06322ed0d04880b4.tar.zst +0 -0
- package/.turbo/cache/0b25a5384daf4b43-meta.json +0 -1
- package/.turbo/cache/0b25a5384daf4b43.tar.zst +0 -0
- package/.turbo/cache/1e42bb6f66cd5516-meta.json +0 -1
- package/.turbo/cache/202a84630d73699f-meta.json +0 -1
- package/.turbo/cache/202a84630d73699f.tar.zst +0 -0
- package/.turbo/cache/3b758f5ca6cedcac-meta.json +0 -1
- package/.turbo/cache/3b758f5ca6cedcac.tar.zst +0 -0
- package/.turbo/cache/4472ff3b156042a3-meta.json +0 -1
- package/.turbo/cache/448b2ae2221bf660-meta.json +0 -1
- package/.turbo/cache/448b2ae2221bf660.tar.zst +0 -0
- package/.turbo/cache/4655a084a08732a7-meta.json +0 -1
- package/.turbo/cache/46f08b3f239b6b3c-meta.json +0 -1
- package/.turbo/cache/4f06a06e4f458e75-meta.json +0 -1
- package/.turbo/cache/4f06a06e4f458e75.tar.zst +0 -0
- package/.turbo/cache/4f0d7e7df611108b-meta.json +0 -1
- package/.turbo/cache/4f0d7e7df611108b.tar.zst +0 -0
- package/.turbo/cache/533b2c6c9fb1166a-meta.json +0 -1
- package/.turbo/cache/533b2c6c9fb1166a.tar.zst +0 -0
- package/.turbo/cache/560d172ca96e1544-meta.json +0 -1
- package/.turbo/cache/560d172ca96e1544.tar.zst +0 -0
- package/.turbo/cache/9dc293081f28a24d-meta.json +0 -1
- package/.turbo/cache/a9db8818bc92a60e-meta.json +0 -1
- package/.turbo/cache/a9db8818bc92a60e.tar.zst +0 -0
- package/.turbo/cache/bae62d7b71b88997-meta.json +0 -1
- package/.turbo/cache/bae62d7b71b88997.tar.zst +0 -0
- package/.turbo/cache/bb3131b31c8adc36-meta.json +0 -1
- package/.turbo/cache/bb3131b31c8adc36.tar.zst +0 -0
- package/.turbo/cache/c45962e00a15f78b-meta.json +0 -1
- package/.turbo/cache/c45962e00a15f78b.tar.zst +0 -0
- package/.turbo/cache/c49eaa579b60f045-meta.json +0 -1
- package/.turbo/cache/c49eaa579b60f045.tar.zst +0 -0
- package/.turbo/cache/cbc12d12ec0e13ca-meta.json +0 -1
- package/.turbo/cache/d7d47541c105641f-meta.json +0 -1
- package/.turbo/cache/e95a7d076e700003-meta.json +0 -1
- package/.turbo/cache/e95a7d076e700003.tar.zst +0 -0
- package/.turbo/cache/f571abacf9ec4e84-meta.json +0 -1
- package/.turbo/cache/f571abacf9ec4e84.tar.zst +0 -0
- package/.turbo/cache/fa0bc0a1d41397e8-meta.json +0 -1
- package/.turbo/cache/fa0bc0a1d41397e8.tar.zst +0 -0
- package/.turbo/cache/fce6b6ea288791bf-meta.json +0 -1
- /package/.turbo/cache/{fce6b6ea288791bf.tar.zst → 3d05fb6e2d593287.tar.zst} +0 -0
- /package/.turbo/cache/{d7d47541c105641f.tar.zst → 9db5147195c32672.tar.zst} +0 -0
- /package/.turbo/cache/{1e42bb6f66cd5516.tar.zst → a002bc214179bedc.tar.zst} +0 -0
- /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
|
-
|
|
862
|
-
|
|
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
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
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
|
-
|
|
862
|
-
|
|
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
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
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
|
[36m
|
|
139
139
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
140
|
-
[32mcreated [1mdist[22m in [
|
|
140
|
+
[32mcreated [1mdist[22m in [1m850ms[22m[39m
|
|
141
141
|
[36m
|
|
142
142
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
143
|
-
[32mcreated [1m./demo/[22m in [
|
|
143
|
+
[32mcreated [1m./demo/[22m in [1m716ms[22m[39m
|
|
144
144
|
[36m
|
|
145
145
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
146
|
-
[32mcreated [1m./demo/[22m in [
|
|
146
|
+
[32mcreated [1m./demo/[22m in [1m561ms[22m[39m
|
|
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.
|
|
103
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.
|
|
104
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-select@2.0.0-beta.
|
|
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
|
-
|
|
3163
|
-
|
|
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
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
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
|
-
|
|
3059
|
-
|
|
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
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
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
|
-
|
|
3059
|
-
|
|
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
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
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 +0,0 @@
|
|
|
1
|
-
{"hash":"06322ed0d04880b4","duration":10124}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"0b25a5384daf4b43","duration":18529}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"1e42bb6f66cd5516","duration":5144}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"202a84630d73699f","duration":20581}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"3b758f5ca6cedcac","duration":1397}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"4472ff3b156042a3","duration":17639}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"448b2ae2221bf660","duration":17618}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"4655a084a08732a7","duration":1325}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"46f08b3f239b6b3c","duration":1165}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"4f06a06e4f458e75","duration":19086}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"4f0d7e7df611108b","duration":3584}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"533b2c6c9fb1166a","duration":9578}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"560d172ca96e1544","duration":4786}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"9dc293081f28a24d","duration":1544}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"a9db8818bc92a60e","duration":2941}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"bae62d7b71b88997","duration":762}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"bb3131b31c8adc36","duration":18596}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"c45962e00a15f78b","duration":6069}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"c49eaa579b60f045","duration":2112}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"cbc12d12ec0e13ca","duration":20885}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"d7d47541c105641f","duration":1038}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"e95a7d076e700003","duration":1820}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"f571abacf9ec4e84","duration":2317}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"fa0bc0a1d41397e8","duration":4628}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"fce6b6ea288791bf","duration":6482}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|