@sap-ux/preview-middleware 0.23.123 → 0.23.124

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.
@@ -89,10 +89,11 @@ sap.ui.define(["../../../utils/core", "sap/ui/rta/command/CommandFactory", "../.
89
89
  * @param table - table control
90
90
  * @returns string
91
91
  */
92
+
92
93
  function getActionsPropertyPath(table) {
93
94
  const macroTable = table.getParent();
94
95
  const configPath = '';
95
- if (macroTable && isA('sap.fe.macros.table.TableAPI', macroTable)) {
96
+ if (macroTable && (isA('sap.fe.macros.Table', macroTable) || isA('sap.fe.macros.table.TableAPI', macroTable))) {
96
97
  const lineItemAnnotation = getLineItemAnnotation(macroTable);
97
98
  const navigationPath = macroTable.metaPath.split(macroTable.getProperty('contextPath'))[1];
98
99
  if (!lineItemAnnotation) {
@@ -108,10 +108,15 @@ function getLineItemAnnotation(table: MacroTable): string | undefined {
108
108
  * @param table - table control
109
109
  * @returns string
110
110
  */
111
+
111
112
  export function getActionsPropertyPath(table: UI5Element): string | undefined {
112
113
  const macroTable = table.getParent();
113
114
  const configPath = '';
114
- if (macroTable && isA<MacroTable>('sap.fe.macros.table.TableAPI', macroTable)) {
115
+ if (
116
+ macroTable &&
117
+ (isA<MacroTable>('sap.fe.macros.Table', macroTable) ||
118
+ isA<MacroTable>('sap.fe.macros.table.TableAPI', macroTable))
119
+ ) {
115
120
  const lineItemAnnotation = getLineItemAnnotation(macroTable);
116
121
 
117
122
  const navigationPath = macroTable.metaPath.split(macroTable.getProperty('contextPath'))[1];
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.23.123",
12
+ "version": "0.23.124",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -30,11 +30,11 @@
30
30
  "@sap-ux/adp-tooling": "0.18.65",
31
31
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.11",
32
32
  "@sap-ux/feature-toggle": "0.3.6",
33
- "@sap-ux/btp-utils": "1.1.9",
33
+ "@sap-ux/logger": "0.8.1",
34
34
  "@sap-ux/project-access": "1.35.4",
35
+ "@sap-ux/system-access": "0.6.53",
35
36
  "@sap-ux/i18n": "0.3.7",
36
- "@sap-ux/logger": "0.8.1",
37
- "@sap-ux/system-access": "0.6.53"
37
+ "@sap-ux/btp-utils": "1.1.9"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@sap-ux-private/playwright": "0.2.6",
@@ -53,10 +53,10 @@
53
53
  "nock": "13.4.0",
54
54
  "npm-run-all2": "6.2.0",
55
55
  "supertest": "7.1.4",
56
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.18.18",
56
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.18.19",
57
+ "@sap-ux/axios-extension": "1.25.13",
57
58
  "@sap-ux/store": "1.5.6",
58
- "@sap-ux/ui5-info": "0.13.12",
59
- "@sap-ux/axios-extension": "1.25.13"
59
+ "@sap-ux/ui5-info": "0.13.12"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "express": "4"