@sapui5/sap.zen.dsh 1.120.7 → 1.120.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.zen.dsh",
3
- "version": "1.120.7",
3
+ "version": "1.120.9",
4
4
  "description": "SAPUI5 Library sap.zen.dsh",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -7,7 +7,7 @@
7
7
  <vendor>SAP SE</vendor>
8
8
  <copyright>SAPUI5
9
9
  (c) Copyright 2009-2021 SAP SE. All rights reserved</copyright>
10
- <version>1.120.7</version>
10
+ <version>1.120.9</version>
11
11
  <documentation>Design Studio Runtime Library. Intended only to be used within S/4 HANA Fiori applications.</documentation>
12
12
  <appData>
13
13
  <jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc" >
@@ -103,9 +103,11 @@ sap.ui.define(
103
103
  sap.zen.dsh.doReplaceDots = true;
104
104
  AnalyticGrid.prototype.init = function() {
105
105
  this.parameters = {};
106
- this.dshBaseUrl = URI(sap.ui.resource("sap.zen.dsh","rt/")).absoluteTo(window.location.pathname).toString();
106
+
107
+ this.dshBaseUrl = URI(sap.ui.resource("sap.zen.dsh", "rt/")).relativeTo(document.baseURI).toString();
108
+ this.repositoryUrl = URI(sap.ui.resource("sap.zen.dsh", "applications/")).relativeTo(document.baseURI).toString();
109
+
107
110
  sap.zen.dsh.sapbi_page.staticMimeUrlPrefix = this.dshBaseUrl;
108
- this.repositoryUrl = URI(sap.ui.resource("sap.zen.dsh","applications/")).absoluteTo(window.location.pathname).toString();
109
111
  };
110
112
  AnalyticGrid.prototype._initializeInternal = function() {
111
113
  if(this.initialized) {
@@ -196,8 +196,9 @@ sap.ui.define( "sap/zen/dsh/Dsh",
196
196
  this.initial = true;
197
197
  this.rendered = false;
198
198
  this.parameters = {};
199
- this.dshBaseUrl = URI(sap.ui.resource("sap.zen.dsh","widgets/")).absoluteTo(window.location.pathname).toString();
199
+
200
200
  this.dshBaseAppUrlBW = "/sap/bw/Mime";
201
+ this.dshBaseUrl = URI(sap.ui.resource("sap.zen.dsh", "widgets/")).relativeTo(document.baseURI).toString();
201
202
  };
202
203
 
203
204
  /**
@@ -213,7 +214,7 @@ sap.ui.define( "sap/zen/dsh/Dsh",
213
214
  Dsh.prototype.doInit = function() {
214
215
  //0ANALYSIS will always come from our library for now. This will be cleaned up later.
215
216
  if (this.getDshAppName() === "0ANALYSIS" || this.getDshAppName() === "0ANALYTIC_GRID") {
216
- this.setRepoPath(URI(sap.ui.resource("sap.zen.dsh","applications/")).absoluteTo(window.location.pathname).toString());
217
+ this.setRepoPath(URI(sap.ui.resource("sap.zen.dsh", "applications/")).relativeTo(document.baseURI).toString());
217
218
  }
218
219
 
219
220
  if (this.getRepoPath() !== "") {
@@ -6559,7 +6559,7 @@ sap.ui.define(
6559
6559
  loRequest.setAcceptContentType(oFF.ContentType.APPLICATION_XML);
6560
6560
  loRequest.setTextContentEncoding("UTF-8");
6561
6561
  let loResponse = loHttpClient.processHttpRequest(oFF.SyncType.BLOCKING, null, null);
6562
- if (loResponse.isValid() && loResponse.getData() !== null) {
6562
+ if (loResponse.isValid() && loResponse.getData() !== null && loResponse.getData().getStatusCode() < 400) {
6563
6563
  return loResponse.getData().getString();
6564
6564
  }
6565
6565
  return null;
@@ -9470,16 +9470,18 @@ sap.ui.define(
9470
9470
  lFound = true;
9471
9471
  break;
9472
9472
  }
9473
- let lValueRespectingCase = value;
9474
- if (!loInternalDimension.supportsLowerCase() || loInternalFieldValue.getValueType() === oFF.XValueType.UPPER_CASE_STRING) {
9475
- lValueRespectingCase = oFF.XString.toUpperCase(value);
9476
- }
9477
- else if (loInternalFieldValue.getValueType() === oFF.XValueType.LOWER_CASE_STRING) {
9478
- lValueRespectingCase = oFF.XString.toLowerCase(value);
9479
- }
9480
- if (oFF.XString.isEqual(loInternalFieldValue.getString(), lValueRespectingCase)) {
9481
- lFound = true;
9482
- break;
9473
+ if(!oFF.isNull(loInternalFieldValue)) {
9474
+ let lValueRespectingCase = value;
9475
+ if (!loInternalDimension.supportsLowerCase() || loInternalFieldValue.getValueType() === oFF.XValueType.UPPER_CASE_STRING) {
9476
+ lValueRespectingCase = oFF.XString.toUpperCase(value);
9477
+ }
9478
+ else if (loInternalFieldValue.getValueType() === oFF.XValueType.LOWER_CASE_STRING) {
9479
+ lValueRespectingCase = oFF.XString.toLowerCase(value);
9480
+ }
9481
+ if (oFF.XString.isEqual(loInternalFieldValue.getString(), lValueRespectingCase)) {
9482
+ lFound = true;
9483
+ break;
9484
+ }
9483
9485
  }
9484
9486
  if (oFF.XString.containsString(loInternalFieldValue.getString(), value)) {
9485
9487
  ltMatchingDimensionMembers.add(loInternalDimensionMember);
@@ -31,7 +31,7 @@ sap.ui.define(
31
31
  * @alias sap.zen.dsh
32
32
  * @public
33
33
  * @author SAP SE
34
- * @version 1.120.7
34
+ * @version 1.120.9
35
35
  */
36
36
  var thisLib = sap.ui.getCore().initLibrary(
37
37
  {
@@ -56,7 +56,7 @@ sap.ui.define(
56
56
  ],
57
57
  elements: [],
58
58
  noLibraryCSS: true,
59
- version: "1.120.7"
59
+ version: "1.120.9"
60
60
  }
61
61
  );
62
62
 
@@ -940,8 +940,8 @@ sap.ui.define(
940
940
  lTextTo = lKeyTo;
941
941
  }
942
942
  } else {
943
- lKeyTo = "";
944
- lTextTo = "";
943
+ lKeyTo = undefined;
944
+ lTextTo = undefined;
945
945
  }
946
946
 
947
947
  // prepare Token