@openui5/sap.ui.documentation 1.90.5 → 1.90.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/THIRDPARTY.txt CHANGED
@@ -197,7 +197,7 @@ License: BSD-3-Clause
197
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
199
 
200
- Component: URI.js, version: 1.19.6
200
+ Component: URI.js, version: 1.19.7
201
201
  Copyright: Rodney Rehm
202
202
  License: MIT
203
203
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.documentation",
3
- "version": "1.90.5",
3
+ "version": "1.90.9",
4
4
  "description": "OpenUI5 UI Library sap.ui.documentation",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,10 +14,10 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.90.5",
18
- "@openui5/sap.ui.core": "1.90.5",
19
- "@openui5/sap.ui.layout": "1.90.5",
20
- "@openui5/themelib_sap_belize": "1.90.5",
21
- "@openui5/themelib_sap_fiori_3": "1.90.5"
17
+ "@openui5/sap.m": "1.90.9",
18
+ "@openui5/sap.ui.core": "1.90.9",
19
+ "@openui5/sap.ui.layout": "1.90.9",
20
+ "@openui5/themelib_sap_belize": "1.90.9",
21
+ "@openui5/themelib_sap_fiori_3": "1.90.9"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.90.5</version>
9
+ <version>1.90.9</version>
10
10
 
11
11
  <documentation>SAPUI5 library for the Demokit 2.0.</documentation>
12
12
 
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  // delegate further initialization of this library to the Core
24
24
  sap.ui.getCore().initLibrary({
25
25
  name : 'sap.ui.documentation',
26
- version: '1.90.5',
26
+ version: '1.90.9',
27
27
  dependencies : ['sap.ui.core','sap.m'],
28
28
  types: [],
29
29
  interfaces: [],
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @namespace
50
50
  * @name sap.ui.documentation
51
51
  * @author SAP SE
52
- * @version 1.90.5
52
+ * @version 1.90.9
53
53
  * @public
54
54
  */
55
55
  var thisLibrary = sap.ui.documentation;
@@ -82,6 +82,7 @@ sap.ui.define([
82
82
  sVersionOverviewJsonPath = ResourcesUtil.getResourceOriginPath("/versionoverview.json"), /* Load versionoverview.json always from root URL */
83
83
  ABOUT_TEXT = "about",
84
84
  FEEDBACK_TEXT = "feedback",
85
+ FEEDBACK_URL = "https://demokit-feedback-proxy.cfapps.eu12.hana.ondemand.com/issue",
85
86
  CHANGE_VERSION_TEXT = "change_version",
86
87
  CHANGE_SETTINGS_TEXT = "settings",
87
88
  CHANGE_COOKIE_PREFERENCES_TEXT = "cookie_preferences",
@@ -154,8 +155,6 @@ sap.ui.define([
154
155
  });
155
156
  }.bind(this));
156
157
 
157
- this.FEEDBACK_SERVICE_URL = "https://feedback-sapuisofiaprod.hana.ondemand.com:443/api/v2/apps/5bb7d7ff-bab9-477a-a4c7-309fa84dc652/posts";
158
-
159
158
  // Cache view reference
160
159
  this._oSupportedLangModel = new JSONModel();
161
160
 
@@ -1128,37 +1127,27 @@ sap.ui.define([
1128
1127
  * Event handler for the send feedback button
1129
1128
  */
1130
1129
  onFeedbackDialogSend: function() {
1131
- var data = {},
1130
+ var oVersionInfo = Version(sap.ui.version),
1131
+ data = {
1132
+ "text": this._oFeedbackDialog.textInput.getValue(),
1133
+ "rating": this._oFeedbackDialog.ratingStatus.value,
1134
+ "major": oVersionInfo.getMajor(),
1135
+ "minor": oVersionInfo.getMinor(),
1136
+ "patch": oVersionInfo.getPatch(),
1137
+ "distribution": this._getUI5Distribution(),
1138
+ "snapshot": oVersionInfo.getSuffix().indexOf("SNAPSHOT") > -1,
1139
+ "url": this._getCurrentURL(),
1140
+ "page": this._getCurrentPageRelativeURL(),
1141
+ "pageContext": this._oFeedbackDialog.contextCheckBox.getSelected()
1142
+ },
1132
1143
  oResourceBundle = this.getModel("i18n").getResourceBundle();
1133
1144
 
1134
- if (this._oFeedbackDialog.contextCheckBox.getSelected()) {
1135
- data = {
1136
- "texts": {
1137
- "t1": this._oFeedbackDialog.textInput.getValue()
1138
- },
1139
- "ratings":{
1140
- "r1": {"value" : this._oFeedbackDialog.ratingStatus.value}
1141
- },
1142
- "context": {"page": this._getCurrentPageRelativeURL(), "attr1": this._getUI5Distribution() + ":" + sap.ui.version}
1143
- };
1144
- } else {
1145
- data = {
1146
- "texts": {
1147
- "t1": this._oFeedbackDialog.textInput.getValue()
1148
- },
1149
- "ratings":{
1150
- "r1": {"value" : this._oFeedbackDialog.ratingStatus.value}
1151
- },
1152
- "context": {"attr1": this._getUI5Distribution() + ":" + sap.ui.version}
1153
- };
1154
- }
1155
-
1156
1145
  // send feedback
1157
1146
  this._oFeedbackDialog.setBusyIndicatorDelay(0);
1158
1147
  this._oFeedbackDialog.setBusy(true);
1159
1148
 
1160
1149
  jQuery.ajax({
1161
- url: this.FEEDBACK_SERVICE_URL,
1150
+ url: FEEDBACK_URL,
1162
1151
  type: "POST",
1163
1152
  contentType: "application/json",
1164
1153
  data: JSON.stringify(data)
@@ -1496,8 +1485,13 @@ sap.ui.define([
1496
1485
  },
1497
1486
 
1498
1487
  _getCurrentPageRelativeURL: function () {
1499
- var parser = window.location;
1500
- return parser.pathname + parser.hash + parser.search;
1488
+ var currentLocation = window.location;
1489
+ return currentLocation.pathname + currentLocation.hash + currentLocation.search;
1490
+ },
1491
+
1492
+ _getCurrentURL: function () {
1493
+ var currentLocation = window.location;
1494
+ return currentLocation.href;
1501
1495
  },
1502
1496
 
1503
1497
  _setHeaderSelectedKey: function(sKey) {