@sap-ux/ui5-application-writer 1.1.1 → 1.1.2
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/package.json
CHANGED
|
@@ -41,6 +41,23 @@
|
|
|
41
41
|
});
|
|
42
42
|
return libOrCompKeysStringTmp;
|
|
43
43
|
}
|
|
44
|
+
function getComponentUsageNames(compUsages, libOrCompKeysString) {
|
|
45
|
+
var libOrCompKeysStringTmp = libOrCompKeysString;
|
|
46
|
+
var compNames = Object.keys(compUsages).map(function (compUsageKey) {
|
|
47
|
+
return compUsages[compUsageKey].name;
|
|
48
|
+
});
|
|
49
|
+
compNames.forEach(function (compName) {
|
|
50
|
+
// ignore libs or Components that start with SAPUI5 delivered namespaces
|
|
51
|
+
if (!ui5Libs.some(function (substring) { return compName === substring || compName.startsWith(substring + "."); })) {
|
|
52
|
+
if (libOrCompKeysStringTmp.length > 0) {
|
|
53
|
+
libOrCompKeysStringTmp = libOrCompKeysStringTmp + "," + compName;
|
|
54
|
+
} else {
|
|
55
|
+
libOrCompKeysStringTmp = compName;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
return libOrCompKeysStringTmp;
|
|
60
|
+
}
|
|
44
61
|
return new Promise(function (resolve, reject) {
|
|
45
62
|
$.ajax(url)
|
|
46
63
|
.done(function (manifest) {
|
|
@@ -60,7 +77,7 @@
|
|
|
60
77
|
manifest["sap.ui5"] &&
|
|
61
78
|
manifest["sap.ui5"].componentUsages
|
|
62
79
|
) {
|
|
63
|
-
result =
|
|
80
|
+
result = getComponentUsageNames(manifest["sap.ui5"].componentUsages, result);
|
|
64
81
|
}
|
|
65
82
|
}
|
|
66
83
|
resolve(result);
|
|
@@ -211,7 +228,9 @@ sap.registerComponentDependencyPaths(manifestUri)
|
|
|
211
228
|
sap.ui.getCore().attachInit(function () {
|
|
212
229
|
registerSAPFonts();
|
|
213
230
|
// initialize the ushell sandbox component
|
|
214
|
-
sap.ushell.Container.createRenderer().
|
|
231
|
+
sap.ushell.Container.createRenderer(true).then(function (component) {
|
|
232
|
+
component.placeAt("content");
|
|
233
|
+
});
|
|
215
234
|
});
|
|
216
235
|
}
|
|
217
236
|
});
|