@veloceapps/sdk 11.0.0-33 → 11.0.0-35
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.
@@ -2019,10 +2019,18 @@ class ElementsResolver {
|
|
2019
2019
|
this.config = config;
|
2020
2020
|
this.renderableElements = [];
|
2021
2021
|
this.sharedElements = [];
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2022
|
+
const services = [];
|
2023
|
+
const shared = [];
|
2024
|
+
for (const el of this.flattenElements(elements)) {
|
2025
|
+
if (el.type === 'SERVICE') {
|
2026
|
+
services.push(el);
|
2027
|
+
}
|
2028
|
+
else if (this.isSharedElement(el)) {
|
2029
|
+
shared.push(el);
|
2030
|
+
}
|
2031
|
+
}
|
2032
|
+
this.sharedElements = shared.concat(sharedElements);
|
2033
|
+
this.elements = [...services, ...elements.map(el => this.processElementMetadata(el)).filter(isDefined)];
|
2026
2034
|
this.renderableElements = this.getRenderableElements(this.elements);
|
2027
2035
|
this.uiDefMetadata = {
|
2028
2036
|
...this.uiDef,
|
@@ -2084,6 +2092,9 @@ class ElementsResolver {
|
|
2084
2092
|
}
|
2085
2093
|
processElementMetadata(sourceElement) {
|
2086
2094
|
let finalElement;
|
2095
|
+
if (sourceElement.type === 'SERVICE') {
|
2096
|
+
return;
|
2097
|
+
}
|
2087
2098
|
if (sourceElement.type === 'REFERENCE') {
|
2088
2099
|
const sharedElement = this.getSharedElement(sourceElement);
|
2089
2100
|
if (!sharedElement) {
|