@sap-ux/preview-middleware 0.25.19 → 0.25.21

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.
@@ -96,7 +96,7 @@ sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../dialog-factory", "../control-
96
96
  return '';
97
97
  }
98
98
  const columns = macroTable.getModel()?.getMetaModel()?.getObject(metaPath);
99
- const filteredColumns = columns.filter(col => ['com.sap.vocabularies.UI.v1.DataField', 'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation', 'com.sap.vocabularies.UI.v1.DataFieldForAnnotation'].includes(col.$Type) || 'com.sap.vocabularies.UI.v1.DataFieldForAction' === col.$Type && col.Inline);
99
+ const filteredColumns = columns.filter(col => ['com.sap.vocabularies.UI.v1.DataField', 'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation', 'com.sap.vocabularies.UI.v1.DataFieldForAnnotation'].includes(col.$Type) || col.$Type === 'com.sap.vocabularies.UI.v1.DataFieldForAction' && col.Inline);
100
100
  const lastColumn = filteredColumns.at(-1);
101
101
  if (!lastColumn) {
102
102
  return '';
@@ -123,7 +123,7 @@ function findAnchor(table: UI5Element): string {
123
123
  'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation',
124
124
  'com.sap.vocabularies.UI.v1.DataFieldForAnnotation'
125
125
  ].includes(col.$Type) ||
126
- ('com.sap.vocabularies.UI.v1.DataFieldForAction' === col.$Type && col.Inline)
126
+ (col.$Type === 'com.sap.vocabularies.UI.v1.DataFieldForAction' && col.Inline)
127
127
  ) as {
128
128
  $Type: string;
129
129
  Inline?: boolean;
@@ -6,7 +6,7 @@ import { CHANGES_API_PATH as CHANGES_API_PATH_STATIC, getFlexSettings } from './
6
6
  import { getUi5Version, isLowerThanMinimalUi5Version } from '../utils/version';
7
7
  import { getAdditionalChangeInfo } from '../utils/additional-change-info';
8
8
 
9
- const baseUrl = document.getElementById('sap-ui-bootstrap')?.dataset.openUxPreviewBaseUrl ??'';
9
+ const baseUrl = document.getElementById('sap-ui-bootstrap')?.dataset.openUxPreviewBaseUrl ?? '';
10
10
  const changesApiPath = `${baseUrl}${CHANGES_API_PATH_STATIC}`;
11
11
 
12
12
  const connector = merge({}, ObjectStorageConnector, {
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.25.19",
12
+ "version": "0.25.21",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -27,9 +27,9 @@
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "qrcode": "1.5.4",
29
29
  "@sap/bas-sdk": "3.13.3",
30
- "@sap-ux/adp-tooling": "0.18.112",
31
- "@sap-ux/btp-utils": "1.1.12",
30
+ "@sap-ux/adp-tooling": "0.18.113",
32
31
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.23",
32
+ "@sap-ux/btp-utils": "1.1.12",
33
33
  "@sap-ux/feature-toggle": "0.3.8",
34
34
  "@sap-ux/logger": "0.8.5",
35
35
  "@sap-ux/project-access": "1.35.19",
@@ -53,7 +53,7 @@
53
53
  "nock": "14.0.11",
54
54
  "npm-run-all2": "8.0.4",
55
55
  "supertest": "7.2.2",
56
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.25.19",
56
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.25.21",
57
57
  "@sap-ux/axios-extension": "1.25.29",
58
58
  "@sap-ux/store": "1.5.13",
59
59
  "@sap-ux/ui5-info": "0.13.18"