@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
|
@@ -3207,26 +3207,38 @@ let AuroHelpText$1 = class AuroHelpText extends r$a {
|
|
|
3207
3207
|
this.slotNodes = event.target.assignedNodes();
|
|
3208
3208
|
}
|
|
3209
3209
|
|
|
3210
|
-
|
|
3211
|
-
|
|
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
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
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
|
-
|
|
7970
|
-
|
|
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
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
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
|
-
|
|
3069
|
-
|
|
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
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
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
|
-
|
|
7828
|
-
|
|
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
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
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
|
-
|
|
3046
|
-
|
|
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
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
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
|
-
|
|
7805
|
-
|
|
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
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
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
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
|
343
343
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
|
344
344
|
[1m@aurodesignsystem/auro-dropdown[22m (imported by "src/auro-counter-group.js")
|
|
345
|
-
[32mcreated [1mdist[22m in [
|
|
345
|
+
[32mcreated [1mdist[22m in [1m1s[22m[39m
|
|
346
346
|
[36m
|
|
347
347
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
348
348
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
|
349
349
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
|
350
350
|
[1m@aurodesignsystem/auro-dropdown[22m (imported by "src/auro-counter-group.js")
|
|
351
|
-
[32mcreated [1m./demo/[22m in [
|
|
351
|
+
[32mcreated [1m./demo/[22m in [1m676ms[22m[39m
|
|
352
352
|
[36m
|
|
353
353
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
354
354
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
|
355
355
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
|
356
356
|
[1m@aurodesignsystem/auro-dropdown[22m (imported by "src/auro-counter-group.js")
|
|
357
|
-
[32mcreated [1m./demo/[22m in [
|
|
357
|
+
[32mcreated [1m./demo/[22m in [1m699ms[22m[39m
|
|
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
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
|
8
8
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
|
9
9
|
[1m@aurodesignsystem/auro-dropdown[22m (imported by "src/auro-counter-group.js")
|
|
10
|
-
[32mcreated [1mdist[22m in [
|
|
10
|
+
[32mcreated [1mdist[22m in [1m670ms[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
13
13
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
|
14
14
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
|
15
15
|
[1m@aurodesignsystem/auro-dropdown[22m (imported by "src/auro-counter-group.js")
|
|
16
|
-
[32mcreated [1m./demo/[22m in [
|
|
16
|
+
[32mcreated [1m./demo/[22m in [1m370ms[22m[39m
|
|
17
17
|
[36m
|
|
18
18
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
19
19
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
|
20
20
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
|
21
21
|
[1m@aurodesignsystem/auro-dropdown[22m (imported by "src/auro-counter-group.js")
|
|
22
|
-
[32mcreated [1m./demo/[22m in [
|
|
22
|
+
[32mcreated [1m./demo/[22m in [1m296ms[22m[39m
|
|
@@ -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.
|
|
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
|
|
65
|
-
|
|
66
|
-
| [Default](#Default)
|
|
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:
|
|
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"
|
|
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:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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:
|
|
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="
|
|
164
|
+
<div slot="valueText">Custom value text</div>
|
|
165
|
+
<div slot="label"></div>
|
|
140
166
|
<auro-counter>
|
|
141
|
-
|
|
142
|
-
<span slot="description">
|
|
167
|
+
Adults
|
|
168
|
+
<span slot="description">18 years or older</span>
|
|
143
169
|
</auro-counter>
|
|
144
170
|
<auro-counter>
|
|
145
|
-
|
|
146
|
-
<span slot="description">
|
|
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
|
-
|
|
150
|
-
<span slot="description">
|
|
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 -->
|