@meshmakers/octo-ui 3.3.950 → 3.3.960
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.
|
@@ -118,7 +118,15 @@ class AttributeSortSelectorDialogComponent {
|
|
|
118
118
|
const filteredItems = this.attributePathsSet
|
|
119
119
|
? result.items.filter(item => this.attributePathsSet.has(item.attributePath))
|
|
120
120
|
: result.items;
|
|
121
|
-
|
|
121
|
+
// Append virtual attributes (e.g. stream-data `timestamp`) — these bypass the
|
|
122
|
+
// attributePaths restriction since they're not part of the CK type's graph.
|
|
123
|
+
const virtuals = (this.data?.additionalAttributes ?? []).filter(a => !selectedPaths.has(a.attributePath) &&
|
|
124
|
+
!filteredItems.some(i => i.attributePath === a.attributePath) &&
|
|
125
|
+
(searchTerm ? a.attributePath.toLowerCase().includes(searchTerm.toLowerCase()) : true));
|
|
126
|
+
this.availableAttributes = [
|
|
127
|
+
...filteredItems.filter(item => !selectedPaths.has(item.attributePath)),
|
|
128
|
+
...virtuals
|
|
129
|
+
];
|
|
122
130
|
this.updateAvailableGrid();
|
|
123
131
|
});
|
|
124
132
|
}
|
|
@@ -607,14 +615,15 @@ class AttributeSortSelectorDialogService {
|
|
|
607
615
|
* @param hideNavigationControls Optional flag to hide the navigation property controls
|
|
608
616
|
* @returns Promise that resolves with the result containing selected attributes with sort orders and confirmation status
|
|
609
617
|
*/
|
|
610
|
-
async openAttributeSortSelector(ckTypeId, selectedAttributes, dialogTitle, includeNavigationProperties, hideNavigationControls, attributePaths) {
|
|
618
|
+
async openAttributeSortSelector(ckTypeId, selectedAttributes, dialogTitle, includeNavigationProperties, hideNavigationControls, attributePaths, additionalAttributes) {
|
|
611
619
|
const data = {
|
|
612
620
|
ckTypeId,
|
|
613
621
|
selectedAttributes,
|
|
614
622
|
dialogTitle,
|
|
615
623
|
includeNavigationProperties,
|
|
616
624
|
hideNavigationControls,
|
|
617
|
-
attributePaths
|
|
625
|
+
attributePaths,
|
|
626
|
+
additionalAttributes
|
|
618
627
|
};
|
|
619
628
|
const size = this.windowStateService.resolveWindowSize('attribute-sort-selector', { width: 1200, height: 750 });
|
|
620
629
|
const windowRef = this.windowService.open({
|