@sap-ux/preview-middleware 0.19.9 → 0.19.10

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.
@@ -71,9 +71,9 @@ sap.ui.define([
71
71
  this.model.setProperty('/selectedIndex', updatedIndexArray.length - 1);
72
72
  },
73
73
  onCreateBtnPress: async function _onCreateBtnPress(event) {
74
- await BaseDialog.prototype.onCreateBtnPressHandler.call(this);
75
74
  const source = event.getSource();
76
75
  source.setEnabled(false);
76
+ await BaseDialog.prototype.onCreateBtnPressHandler.call(this);
77
77
  const fragmentName = this.model.getProperty('/newFragmentName');
78
78
  const index = this.model.getProperty('/selectedIndex');
79
79
  const targetAggregation = this.model.getProperty('/selectedAggregation/value');
@@ -142,10 +142,11 @@ export default class AddFragment extends BaseDialog<AddFragmentModel> {
142
142
  * @param event Event
143
143
  */
144
144
  async onCreateBtnPress(event: Event) {
145
- await super.onCreateBtnPressHandler();
146
145
  const source = event.getSource<Button>();
147
146
  source.setEnabled(false);
148
147
 
148
+ await super.onCreateBtnPressHandler();
149
+
149
150
  const fragmentName = this.model.getProperty('/newFragmentName');
150
151
  const index = this.model.getProperty('/selectedIndex');
151
152
  const targetAggregation = this.model.getProperty('/selectedAggregation/value');
@@ -80,8 +80,8 @@ sap.ui.define(["sap/m/MessageToast", "sap/ui/core/library", "sap/ui/model/json/J
80
80
  * @param event Event
81
81
  */
82
82
  onCreateBtnPress: async function _onCreateBtnPress(event) {
83
- await BaseDialog.prototype.onCreateBtnPressHandler.call(this);
84
83
  const source = event.getSource();
84
+ await BaseDialog.prototype.onCreateBtnPressHandler.call(this);
85
85
  const controllerExists = this.model.getProperty('/controllerExists');
86
86
  if (!controllerExists) {
87
87
  source.setEnabled(false);
@@ -128,8 +128,10 @@ export default class ControllerExtension extends BaseDialog<ControllerModel> {
128
128
  * @param event Event
129
129
  */
130
130
  async onCreateBtnPress(event: Event) {
131
- await super.onCreateBtnPressHandler();
132
131
  const source = event.getSource<Button>();
132
+
133
+ await super.onCreateBtnPressHandler();
134
+
133
135
  const controllerExists = this.model.getProperty('/controllerExists');
134
136
 
135
137
  if (!controllerExists) {
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.19.9",
12
+ "version": "0.19.10",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -25,12 +25,12 @@
25
25
  "ejs": "3.1.10",
26
26
  "mem-fs": "2.1.0",
27
27
  "mem-fs-editor": "9.4.0",
28
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.2",
29
- "@sap-ux/btp-utils": "1.0.2",
30
28
  "@sap-ux/adp-tooling": "0.13.22",
29
+ "@sap-ux/btp-utils": "1.0.2",
30
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.2",
31
+ "@sap-ux/feature-toggle": "0.2.3",
31
32
  "@sap-ux/logger": "0.6.0",
32
33
  "@sap-ux/project-access": "1.29.18",
33
- "@sap-ux/feature-toggle": "0.2.3",
34
34
  "@sap-ux/system-access": "0.5.34"
35
35
  },
36
36
  "devDependencies": {
@@ -49,11 +49,11 @@
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.13.11",
52
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.13.12",
53
+ "@sap-ux/axios-extension": "1.19.2",
53
54
  "@sap-ux/i18n": "0.2.3",
54
- "@sap-ux/ui5-info": "0.9.1",
55
55
  "@sap-ux/store": "1.0.0",
56
- "@sap-ux/axios-extension": "1.19.2"
56
+ "@sap-ux/ui5-info": "0.9.1"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "express": "4"