@fluid-topics/ft-chip 1.1.116 → 1.1.118
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/build/ft-chip.d.ts +1 -0
- package/build/ft-chip.js +7 -2
- package/build/ft-chip.light.js +24 -23
- package/build/ft-chip.min.js +18 -17
- package/build/ft-chip.styles.d.ts +1 -1
- package/build/ft-chip.styles.js +5 -4
- package/package.json +6 -6
package/build/ft-chip.d.ts
CHANGED
package/build/ft-chip.js
CHANGED
|
@@ -105,8 +105,13 @@ class FtChip extends FtLitElement {
|
|
|
105
105
|
return this.label || this.textContent;
|
|
106
106
|
}
|
|
107
107
|
get textContent() {
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
return this.unslotText(this.slottedContent).trim();
|
|
109
|
+
}
|
|
110
|
+
unslotText(node) {
|
|
111
|
+
if (node instanceof HTMLSlotElement) {
|
|
112
|
+
return node.assignedNodes().map(n => this.unslotText(n)).join("");
|
|
113
|
+
}
|
|
114
|
+
return (node === null || node === void 0 ? void 0 : node.textContent) || "";
|
|
110
115
|
}
|
|
111
116
|
hasTextContent() {
|
|
112
117
|
return this.textContent.length > 0;
|