@ni/spright-components 3.0.1 → 3.0.3
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.
|
@@ -16032,7 +16032,7 @@
|
|
|
16032
16032
|
|
|
16033
16033
|
/**
|
|
16034
16034
|
* Do not edit directly
|
|
16035
|
-
* Generated on
|
|
16035
|
+
* Generated on Wed, 07 Aug 2024 16:42:32 GMT
|
|
16036
16036
|
*/
|
|
16037
16037
|
|
|
16038
16038
|
const Information100DarkUi = "#a46eff";
|
|
@@ -25033,6 +25033,17 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25033
25033
|
</template>
|
|
25034
25034
|
`;
|
|
25035
25035
|
|
|
25036
|
+
/**
|
|
25037
|
+
* Finds all text content within a slot and returns it as a space-delimited string.
|
|
25038
|
+
*/
|
|
25039
|
+
const slotTextContent = (slot) => {
|
|
25040
|
+
return slot
|
|
25041
|
+
.assignedNodes()
|
|
25042
|
+
.map(node => node.textContent?.trim())
|
|
25043
|
+
.filter(content => content !== undefined && content !== '')
|
|
25044
|
+
.join(' ');
|
|
25045
|
+
};
|
|
25046
|
+
|
|
25036
25047
|
/**
|
|
25037
25048
|
* A nimble-styled HTML listbox option
|
|
25038
25049
|
*/
|
|
@@ -25070,10 +25081,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25070
25081
|
}
|
|
25071
25082
|
/** @internal */
|
|
25072
25083
|
get elementTextContent() {
|
|
25073
|
-
return this.contentSlot
|
|
25074
|
-
.assignedNodes()
|
|
25075
|
-
.map(node => node.textContent?.trim())
|
|
25076
|
-
.join(' ');
|
|
25084
|
+
return slotTextContent(this.contentSlot);
|
|
25077
25085
|
}
|
|
25078
25086
|
connectedCallback() {
|
|
25079
25087
|
super.connectedCallback();
|
|
@@ -25254,11 +25262,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25254
25262
|
if (!this.$fastController.isConnected) {
|
|
25255
25263
|
return '';
|
|
25256
25264
|
}
|
|
25257
|
-
|
|
25258
|
-
return nodes
|
|
25259
|
-
.filter(node => node.textContent?.trim() !== '')
|
|
25260
|
-
.map(node => node.textContent?.trim())
|
|
25261
|
-
.join(' ');
|
|
25265
|
+
return slotTextContent(this.labelSlot);
|
|
25262
25266
|
}
|
|
25263
25267
|
/**
|
|
25264
25268
|
* @internal
|
|
@@ -60583,11 +60587,7 @@ img.ProseMirror-separator {
|
|
|
60583
60587
|
if (!this.$fastController.isConnected) {
|
|
60584
60588
|
return '';
|
|
60585
60589
|
}
|
|
60586
|
-
|
|
60587
|
-
return nodes
|
|
60588
|
-
.filter(node => node.textContent?.trim() !== '')
|
|
60589
|
-
.map(node => node.textContent?.trim())
|
|
60590
|
-
.join(' ');
|
|
60590
|
+
return slotTextContent(this.labelSlot);
|
|
60591
60591
|
}
|
|
60592
60592
|
/**
|
|
60593
60593
|
* @internal
|
|
@@ -65493,10 +65493,7 @@ img.ProseMirror-separator {
|
|
|
65493
65493
|
}
|
|
65494
65494
|
/** @internal */
|
|
65495
65495
|
get headerTextContent() {
|
|
65496
|
-
return this.contentSlot
|
|
65497
|
-
.assignedNodes()
|
|
65498
|
-
.map(node => node.textContent?.trim())
|
|
65499
|
-
.join(' ');
|
|
65496
|
+
return slotTextContent(this.contentSlot);
|
|
65500
65497
|
}
|
|
65501
65498
|
connectedCallback() {
|
|
65502
65499
|
super.connectedCallback();
|