@sap-ux/fiori-freestyle-writer 0.22.1 → 0.22.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-freestyle-writer",
|
|
3
3
|
"description": "SAP Fiori freestyle application writer",
|
|
4
|
-
"version": "0.22.
|
|
4
|
+
"version": "0.22.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"read-pkg-up": "7.0.1",
|
|
29
29
|
"@sap-ux/odata-service-writer": "0.17.1",
|
|
30
|
-
"@sap-ux/ui5-application-writer": "0.26.
|
|
30
|
+
"@sap-ux/ui5-application-writer": "0.26.10",
|
|
31
31
|
"@sap-ux/ui5-config": "0.22.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
sap.ui.define([
|
|
2
2
|
"sap/ui/core/mvc/Controller"
|
|
3
3
|
],
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
function (Controller) {
|
|
8
|
-
"use strict";
|
|
4
|
+
function (Controller) {
|
|
5
|
+
"use strict";
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
return Controller.extend("<%- app.id %>.controller.<%- template.settings.viewName %>", {
|
|
8
|
+
onInit: function () {
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
});
|
|
10
|
+
}
|
|
15
11
|
});
|
|
12
|
+
});
|
|
@@ -2,22 +2,18 @@ sap.ui.define([
|
|
|
2
2
|
"sap/ui/model/json/JSONModel",
|
|
3
3
|
"sap/ui/Device"
|
|
4
4
|
],
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
* @param {typeof sap.ui.model.json.JSONModel} JSONModel
|
|
9
|
-
* @param {typeof sap.ui.Device} Device
|
|
10
|
-
*
|
|
11
|
-
* @returns {Function} createDeviceModel() for providing runtime info for the device the UI5 app is running on
|
|
12
|
-
*/
|
|
13
|
-
function (JSONModel, Device) {
|
|
14
|
-
"use strict";
|
|
5
|
+
function (JSONModel, Device) {
|
|
6
|
+
"use strict";
|
|
15
7
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
return {
|
|
9
|
+
/**
|
|
10
|
+
* Provides runtime info for the device the UI5 app is running on as JSONModel
|
|
11
|
+
*/
|
|
12
|
+
createDeviceModel: function () {
|
|
13
|
+
var oModel = new JSONModel(Device);
|
|
14
|
+
oModel.setDefaultBindingMode("OneWay");
|
|
15
|
+
return oModel;
|
|
21
16
|
}
|
|
22
17
|
};
|
|
18
|
+
|
|
23
19
|
});
|
|
@@ -9,10 +9,6 @@ function (UIComponent, Device, models, ListSelector, ErrorHandler) {
|
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
return UIComponent.extend("<%- app.id %>.Component", {
|
|
12
|
-
/**
|
|
13
|
-
* @param {typeof sap.ui.model.json.JSONModel} JSONModel
|
|
14
|
-
* @param {typeof sap.ui.Device} Device
|
|
15
|
-
*/
|
|
16
12
|
metadata : {
|
|
17
13
|
manifest : "json"
|
|
18
14
|
},
|