@sap-ux/preview-middleware 0.20.4 → 0.20.6
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/ControllerExtension.controller.js +2 -2
- package/dist/client/adp/controllers/ControllerExtension.controller.ts +2 -2
- package/dist/client/messagebundle.properties +3 -3
- package/package.json +5 -5
- package/templates/flp/cdm.html +2 -3
- package/templates/flp/sandbox.html +2 -3
- package/templates/flp/sandbox2.html +2 -3
|
@@ -110,6 +110,7 @@ sap.ui.define(["sap/m/MessageToast", "sap/ui/core/library", "sap/ui/model/json/J
|
|
|
110
110
|
};
|
|
111
111
|
if (this.data) {
|
|
112
112
|
this.data.deferred.resolve(controllerRef);
|
|
113
|
+
notifyUser(this.bundle.getText('ADP_CREATE_CONTROLLER_EXTENSION', [controllerName]), 8000);
|
|
113
114
|
} else {
|
|
114
115
|
await this.createNewController(controllerName, controllerRef);
|
|
115
116
|
}
|
|
@@ -261,8 +262,7 @@ sap.ui.define(["sap/m/MessageToast", "sap/ui/core/library", "sap/ui/model/json/J
|
|
|
261
262
|
const view = getControlById(controllerRef.viewId);
|
|
262
263
|
const command = await commandExecutor.getCommand(view, 'codeExt', controllerRef, flexSettings);
|
|
263
264
|
await commandExecutor.pushAndExecuteCommand(command);
|
|
264
|
-
|
|
265
|
-
notifyUser(bundle.getText('ADP_CREATE_CONTROLLER_EXTENSION', [controllerName]), 8000);
|
|
265
|
+
notifyUser(this.bundle.getText('ADP_CREATE_CONTROLLER_EXTENSION', [controllerName]), 8000);
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
return ControllerExtension;
|
|
@@ -185,6 +185,7 @@ export default class ControllerExtension extends BaseDialog<ControllerModel> {
|
|
|
185
185
|
|
|
186
186
|
if (this.data) {
|
|
187
187
|
this.data.deferred.resolve(controllerRef);
|
|
188
|
+
notifyUser(this.bundle.getText('ADP_CREATE_CONTROLLER_EXTENSION', [controllerName]), 8000);
|
|
188
189
|
} else {
|
|
189
190
|
await this.createNewController(controllerName, controllerRef);
|
|
190
191
|
}
|
|
@@ -358,7 +359,6 @@ export default class ControllerExtension extends BaseDialog<ControllerModel> {
|
|
|
358
359
|
|
|
359
360
|
await commandExecutor.pushAndExecuteCommand(command);
|
|
360
361
|
|
|
361
|
-
|
|
362
|
-
notifyUser(bundle.getText('ADP_CREATE_CONTROLLER_EXTENSION', [controllerName]), 8000);
|
|
362
|
+
notifyUser(this.bundle.getText('ADP_CREATE_CONTROLLER_EXTENSION', [controllerName]), 8000);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
@@ -49,9 +49,9 @@ ADP_QUICK_ACTION_CONTROLLER_PENDING_CHANGE_EXISTS =This action is disabled becau
|
|
|
49
49
|
ADP_ADD_FRAGMENT_MENU_ITEM = Add: Fragment
|
|
50
50
|
ADP_ADD_FRAGMENT_MENU_ITEM_REUSE_COMPONENT = Add: Fragment (This action is disabled because the control is a reuse component)
|
|
51
51
|
ADP_ADD_FRAGMENT_MENU_ITEM_UNSTABLE_ID = Add: Fragment (This action is disabled because the control or parent control has an unstable ID)
|
|
52
|
-
ADP_ADD_CONTROLLER_EXTENSION_MENU_ITEM = Extend
|
|
53
|
-
ADP_ADD_CONTROLLER_EXTENSION_MENU_ITEM_REUSE_COMPONENT = Extend
|
|
54
|
-
ADP_ADD_CONTROLLER_EXTENSION_MENU_ITEM_SYNC_VIEW = Extend
|
|
52
|
+
ADP_ADD_CONTROLLER_EXTENSION_MENU_ITEM = Extend Controller
|
|
53
|
+
ADP_ADD_CONTROLLER_EXTENSION_MENU_ITEM_REUSE_COMPONENT = Extend Controller (This action is disabled because the control is a reuse component)
|
|
54
|
+
ADP_ADD_CONTROLLER_EXTENSION_MENU_ITEM_SYNC_VIEW = Extend Controller (This action is disabled because the controls are part of a synchronous view)
|
|
55
55
|
CPE_CHANGES_VISIBLE_AFTER_SAVE_AND_RELOAD_MESSAGE = Note: The change will be visible after save and reload.
|
|
56
56
|
|
|
57
57
|
TABLE_ROWS_NEEDED_TO_CREATE_CUSTOM_COLUMN=At least one table row is required to create a new custom column. Make sure the table data is loaded and try again.
|
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.20.
|
|
12
|
+
"version": "0.20.6",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@sap-ux/adp-tooling": "0.14.2",
|
|
29
29
|
"@sap-ux/btp-utils": "1.1.0",
|
|
30
30
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.5",
|
|
31
|
+
"@sap-ux/feature-toggle": "0.3.0",
|
|
31
32
|
"@sap-ux/logger": "0.7.0",
|
|
32
|
-
"@sap-ux/project-access": "1.30.1",
|
|
33
33
|
"@sap-ux/system-access": "0.6.0",
|
|
34
|
-
"@sap-ux/
|
|
34
|
+
"@sap-ux/project-access": "1.30.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@sap-ux-private/playwright": "0.2.0",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"nock": "13.4.0",
|
|
50
50
|
"npm-run-all2": "6.2.0",
|
|
51
51
|
"supertest": "6.3.3",
|
|
52
|
-
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.14.
|
|
53
|
-
"@sap-ux/axios-extension": "1.21.0",
|
|
52
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.14.4",
|
|
54
53
|
"@sap-ux/i18n": "0.3.0",
|
|
54
|
+
"@sap-ux/axios-extension": "1.21.0",
|
|
55
55
|
"@sap-ux/store": "1.1.0",
|
|
56
56
|
"@sap-ux/ui5-info": "0.11.0"
|
|
57
57
|
},
|
package/templates/flp/cdm.html
CHANGED
|
@@ -41,9 +41,8 @@
|
|
|
41
41
|
data-sap-ui-flexibilityServices='<%- JSON.stringify(ui5.flex) %>'
|
|
42
42
|
data-sap-ui-resourceroots='<%- JSON.stringify(ui5.resources) %>'
|
|
43
43
|
data-sap-ui-frameOptions="allow"
|
|
44
|
-
data-sap-ui-xx-componentPreload="off"<%- ui5.bootstrapOptions %>
|
|
45
|
-
|
|
46
|
-
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
44
|
+
data-sap-ui-xx-componentPreload="off"<%- ui5.bootstrapOptions %><% if (enableCardGenerator) { %>
|
|
45
|
+
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
47
46
|
<% } %>
|
|
48
47
|
data-sap-ui-oninit="module:open/ux/preview/client/flp/init"<% if (locals.init) { %>
|
|
49
48
|
data-open-ux-preview-customInit='<%- init %>'<% } if (locals.flex) { %>
|
|
@@ -58,9 +58,8 @@
|
|
|
58
58
|
data-sap-ui-flexibilityServices='<%- JSON.stringify(ui5.flex) %>'
|
|
59
59
|
data-sap-ui-resourceroots='<%- JSON.stringify(ui5.resources) %>'
|
|
60
60
|
data-sap-ui-frameOptions="allow"
|
|
61
|
-
data-sap-ui-xx-componentPreload="off"<%- ui5.bootstrapOptions %>
|
|
62
|
-
|
|
63
|
-
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
61
|
+
data-sap-ui-xx-componentPreload="off"<%- ui5.bootstrapOptions %><% if (enableCardGenerator) { %>
|
|
62
|
+
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
64
63
|
<% } %>
|
|
65
64
|
data-sap-ui-oninit="module:open/ux/preview/client/flp/init"<% if (locals.init) { %>
|
|
66
65
|
data-open-ux-preview-customInit='<%- init %>'<% } if (locals.flex) { %>
|
|
@@ -56,9 +56,8 @@
|
|
|
56
56
|
data-sap-ui-flexibility-services='<%- JSON.stringify(ui5.flex) %>'
|
|
57
57
|
data-sap-ui-resource-roots='<%- JSON.stringify(ui5.resources) %>'
|
|
58
58
|
data-sap-ui-frame-options="allow"
|
|
59
|
-
data-sap-ui-xx-component-preload="off"<%- ui5.bootstrapOptions %>
|
|
60
|
-
|
|
61
|
-
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
59
|
+
data-sap-ui-xx-component-preload="off"<%- ui5.bootstrapOptions %><% if (enableCardGenerator) { %>
|
|
60
|
+
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
62
61
|
<% } %>
|
|
63
62
|
data-sap-ui-on-init="module:open/ux/preview/client/flp/init"<% if (locals.init) { %>
|
|
64
63
|
data-open-ux-preview-customInit='<%- init %>'<% } if (locals.flex) { %>
|