@sap-ux/preview-middleware 0.11.10 → 0.11.13
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/dist/client/adp/controllers/BaseDialog.controller.js +1 -1
- package/dist/client/adp/controllers/BaseDialog.controller.ts +1 -1
- package/dist/client/adp/controllers/ControllerExtension.controller.js +2 -1
- package/dist/client/adp/controllers/ControllerExtension.controller.ts +3 -2
- package/package.json +4 -4
- package/templates/flp/sandbox.html +1 -1
|
@@ -11,7 +11,7 @@ sap.ui.define(["sap/ui/core/library", "sap/ui/core/mvc/Controller"], function (s
|
|
|
11
11
|
onFragmentNameInputChange: function _onFragmentNameInputChange(event) {
|
|
12
12
|
const input = event.getSource();
|
|
13
13
|
const beginBtn = this.dialog.getBeginButton();
|
|
14
|
-
const fragmentName = input.getValue()
|
|
14
|
+
const fragmentName = input.getValue();
|
|
15
15
|
const fragmentList = this.model.getProperty('/fragmentList');
|
|
16
16
|
const updateDialogState = function (valueState) {
|
|
17
17
|
let valueStateText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
@@ -52,7 +52,7 @@ export default abstract class BaseDialog extends Controller {
|
|
|
52
52
|
const input = event.getSource<Input>();
|
|
53
53
|
const beginBtn = this.dialog.getBeginButton();
|
|
54
54
|
|
|
55
|
-
const fragmentName: string = input.getValue()
|
|
55
|
+
const fragmentName: string = input.getValue();
|
|
56
56
|
const fragmentList: { fragmentName: string }[] = this.model.getProperty('/fragmentList');
|
|
57
57
|
|
|
58
58
|
const updateDialogState = (valueState: ValueState, valueStateText = '') => {
|
|
@@ -35,7 +35,7 @@ sap.ui.define(["sap/m/MessageToast", "sap/ui/core/library", "sap/ui/model/json/J
|
|
|
35
35
|
onControllerNameInputChange: function _onControllerNameInputChange(event) {
|
|
36
36
|
const input = event.getSource();
|
|
37
37
|
const beginBtn = this.dialog.getBeginButton();
|
|
38
|
-
const controllerName = input.getValue()
|
|
38
|
+
const controllerName = input.getValue();
|
|
39
39
|
const controllerList = this.model.getProperty('/controllersList');
|
|
40
40
|
const updateDialogState = function (valueState) {
|
|
41
41
|
let valueStateText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
@@ -158,6 +158,7 @@ sap.ui.define(["sap/m/MessageToast", "sap/ui/core/library", "sap/ui/model/json/J
|
|
|
158
158
|
};
|
|
159
159
|
const service = await this.rta.getService('controllerExtension');
|
|
160
160
|
const change = await service.add(controllerRef.codeRef, controllerRef.viewId);
|
|
161
|
+
change.creation = new Date().toISOString();
|
|
161
162
|
await writeChange(change);
|
|
162
163
|
MessageToast.show(`Controller extension with name '${controllerName}' was created.`);
|
|
163
164
|
} catch (e) {
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import BaseDialog from './BaseDialog.controller';
|
|
38
38
|
|
|
39
39
|
interface ControllerExtensionService {
|
|
40
|
-
add: (codeRef: string, viewId: string) => Promise<
|
|
40
|
+
add: (codeRef: string, viewId: string) => Promise<{ creation: string }>;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
interface ControllerInfo {
|
|
@@ -80,7 +80,7 @@ export default class ControllerExtension extends BaseDialog {
|
|
|
80
80
|
const input = event.getSource<Input>();
|
|
81
81
|
const beginBtn = this.dialog.getBeginButton();
|
|
82
82
|
|
|
83
|
-
const controllerName: string = input.getValue()
|
|
83
|
+
const controllerName: string = input.getValue();
|
|
84
84
|
const controllerList: { controllerName: string }[] = this.model.getProperty('/controllersList');
|
|
85
85
|
|
|
86
86
|
const updateDialogState = (valueState: ValueState, valueStateText = '') => {
|
|
@@ -266,6 +266,7 @@ export default class ControllerExtension extends BaseDialog {
|
|
|
266
266
|
const service = await this.rta.getService<ControllerExtensionService>('controllerExtension');
|
|
267
267
|
|
|
268
268
|
const change = await service.add(controllerRef.codeRef, controllerRef.viewId);
|
|
269
|
+
change.creation = new Date().toISOString();
|
|
269
270
|
|
|
270
271
|
await writeChange(change);
|
|
271
272
|
MessageToast.show(`Controller extension with name '${controllerName}' was created.`);
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.11.
|
|
12
|
+
"version": "0.11.13",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"npm-run-all": "4.1.5",
|
|
37
37
|
"nock": "13.2.1",
|
|
38
38
|
"supertest": "6.3.3",
|
|
39
|
-
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.8.
|
|
40
|
-
"@sap-ux/
|
|
41
|
-
"@sap-ux/
|
|
39
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.8.8",
|
|
40
|
+
"@sap-ux/store": "0.4.0",
|
|
41
|
+
"@sap-ux/project-access": "1.16.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"express": "4"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</script><% if (locals.flex && flex?.scenario === 'ADAPTATION_PROJECT') { %>
|
|
62
62
|
<!-- Temporary fix until RTA provides api for enable/disable buttons in main RTA navigation menu -->
|
|
63
63
|
<style>
|
|
64
|
-
.sapUiRtaToolbarActionsSection button[
|
|
64
|
+
.sapUiRtaToolbarActionsSection button[aria-label="Exit"],
|
|
65
65
|
.sapUiRtaToolbarActionsSection button[id$="fragment--sapUiRta_feedback"],
|
|
66
66
|
.sapUiRtaToolbarActionsSection button[id$="fragment--sapUiRta_actionsToolbar-overflowButton"] {
|
|
67
67
|
display:none;
|