@openui5/sap.ui.support 1.96.2 → 1.98.0

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.
Files changed (51) hide show
  1. package/.reuse/dep5 +26 -31
  2. package/THIRDPARTY.txt +15 -21
  3. package/package.json +6 -6
  4. package/src/sap/ui/support/.library +2 -2
  5. package/src/sap/ui/support/.supportrc +1 -1
  6. package/src/sap/ui/support/Bootstrap.js +4 -6
  7. package/src/sap/ui/support/RuleAnalyzer.js +2 -2
  8. package/src/sap/ui/support/jQuery.sap.support.js +7 -4
  9. package/src/sap/ui/support/library.js +8 -8
  10. package/src/sap/ui/support/supportRules/Analyzer.js +5 -5
  11. package/src/sap/ui/support/supportRules/CommunicationBus.js +2 -3
  12. package/src/sap/ui/support/supportRules/Constants.js +1 -1
  13. package/src/sap/ui/support/supportRules/CoreFacade.js +1 -1
  14. package/src/sap/ui/support/supportRules/ExecutionScope.js +5 -5
  15. package/src/sap/ui/support/supportRules/History.js +1 -1
  16. package/src/sap/ui/support/supportRules/IssueManager.js +7 -7
  17. package/src/sap/ui/support/supportRules/Main.js +11 -11
  18. package/src/sap/ui/support/supportRules/RuleSerializer.js +1 -1
  19. package/src/sap/ui/support/supportRules/RuleSet.js +17 -16
  20. package/src/sap/ui/support/supportRules/RuleSetLoader.js +35 -23
  21. package/src/sap/ui/support/supportRules/Storage.js +2 -2
  22. package/src/sap/ui/support/supportRules/WCBChannels.js +1 -1
  23. package/src/sap/ui/support/supportRules/WCBConfig.js +5 -5
  24. package/src/sap/ui/support/supportRules/WindowCommunicationBus.js +5 -5
  25. package/src/sap/ui/support/supportRules/report/AbapHistoryFormatter.js +1 -1
  26. package/src/sap/ui/support/supportRules/report/Archiver.js +9 -9
  27. package/src/sap/ui/support/supportRules/report/DataCollector.js +9 -9
  28. package/src/sap/ui/support/supportRules/report/IssueRenderer.js +6 -6
  29. package/src/sap/ui/support/supportRules/report/ReportProvider.js +17 -17
  30. package/src/sap/ui/support/supportRules/report/StringHistoryFormatter.js +1 -1
  31. package/src/sap/ui/support/supportRules/report/resources/index.js +1 -1
  32. package/src/sap/ui/support/supportRules/ui/IFrameController.js +10 -9
  33. package/src/sap/ui/support/supportRules/ui/Overlay.js +1 -1
  34. package/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js +1 -1
  35. package/src/sap/ui/support/supportRules/ui/controllers/BaseController.js +1 -1
  36. package/src/sap/ui/support/supportRules/ui/controllers/Issues.controller.js +7 -7
  37. package/src/sap/ui/support/supportRules/ui/controllers/Main.controller.js +2 -2
  38. package/src/sap/ui/support/supportRules/ui/controllers/PresetsController.js +5 -5
  39. package/src/sap/ui/support/supportRules/ui/external/ElementTree.js +7 -7
  40. package/src/sap/ui/support/supportRules/ui/external/Highlighter.js +1 -1
  41. package/src/sap/ui/support/supportRules/ui/models/CustomJSONListSelection.js +1 -1
  42. package/src/sap/ui/support/supportRules/ui/models/CustomListSelection.js +2 -2
  43. package/src/sap/ui/support/supportRules/ui/models/Documentation.js +8 -6
  44. package/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js +5 -5
  45. package/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js +1 -1
  46. package/src/sap/ui/support/supportRules/ui/models/SharedModel.js +1 -1
  47. package/src/sap/ui/support/supportRules/ui/models/formatter.js +1 -1
  48. package/src/sap/ui/support/supportRules/util/EvalUtils.js +1 -1
  49. package/src/sap/ui/support/supportRules/util/RuleValidator.js +2 -2
  50. package/src/sap/ui/support/supportRules/util/StringAnalyzer.js +2 -2
  51. package/src/sap/ui/support/supportRules/util/Utils.js +4 -4
@@ -1,31 +1,31 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
7
  /**
8
8
  * Creates a report from data.
9
9
  */
10
- sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver',
11
- 'sap/ui/support/supportRules/report/IssueRenderer'], function(jQuery, Archiver, IssueRenderer) {
10
+ sap.ui.define(['sap/ui/thirdparty/jquery', 'sap/base/Log', 'sap/base/security/encodeXML', 'sap/base/util/isEmptyObject', 'sap/base/util/isPlainObject', 'sap/ui/support/supportRules/report/Archiver',
11
+ 'sap/ui/support/supportRules/report/IssueRenderer'], function(jQuery, Log, encodeXML, isEmptyObject, isPlainObject, Archiver, IssueRenderer) {
12
12
  'use strict';
13
13
 
14
14
  // Private fields
15
- var resourcesBaseUrl = jQuery.sap.getResourcePath('sap/ui/support/supportRules/report/resources');
15
+ var resourcesBaseUrl = sap.ui.require.toUrl('sap/ui/support/supportRules/report/resources');
16
16
 
17
17
  /*
18
18
  * Functions taken from core.support.plugins.TechInfo.js
19
19
  */
20
20
  var techInfoRenderer = {
21
21
  line: function (buffer, right, border, label, content) {
22
- buffer.push("<tr><td ", right ? "align='right' " : "", "valign='top'>", "<label class='sapUiSupportLabel'>", jQuery.sap.escapeHTML(label || ""), "</label></td><td",
22
+ buffer.push("<tr><td ", right ? "align='right' " : "", "valign='top'>", "<label class='sapUiSupportLabel'>", encodeXML(label || ""), "</label></td><td",
23
23
  border ? " class='sapUiSupportTechInfoBorder'" : "", ">");
24
24
  var ctnt = content;
25
25
  if (typeof content === "function") {
26
26
  ctnt = content(buffer);
27
27
  }
28
- buffer.push(jQuery.sap.escapeHTML(ctnt || ""));
28
+ buffer.push(encodeXML(ctnt || ""));
29
29
  buffer.push("</td></tr>");
30
30
  },
31
31
  multiline: function (buffer, right, border, label, content){
@@ -37,7 +37,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver
37
37
  if (v) {
38
38
  if (typeof (v) === "string" || typeof (v) === "string" || typeof (v) === "boolean") {
39
39
  val = v;
40
- } else if (Array.isArray(v) || jQuery.isPlainObject(v)) {
40
+ } else if (Array.isArray(v) || isPlainObject(v)) {
41
41
  val = JSON.stringify(v);
42
42
  }
43
43
  }
@@ -48,7 +48,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver
48
48
  },
49
49
  subheader: function (buffer, title) {
50
50
  buffer.push("<tr class='sapUiSupportTitle'><td valign='top' colspan='2'>", "<label class='sapUiSupportLabel'>",
51
- jQuery.sap.escapeHTML(title || ""), "</label></td></tr>");
51
+ encodeXML(title || ""), "</label></td></tr>");
52
52
  }
53
53
  };
54
54
 
@@ -85,8 +85,8 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver
85
85
  var sapUI5Version = technicalInfo.sapUi5Version;
86
86
  if (sapUI5Version && sapUI5Version.version) {
87
87
  var oVersionInfo = sapUI5Version.version;
88
- var sVersion = jQuery.sap.escapeHTML(oVersionInfo.version || "");
89
- buffer.push(sVersion, " (built at ", jQuery.sap.escapeHTML(oVersionInfo.buildTimestamp || ""), ", last change ", jQuery.sap.escapeHTML(oVersionInfo.scmRevision || ""), ")");
88
+ var sVersion = encodeXML(oVersionInfo.version || "");
89
+ buffer.push(sVersion, " (built at ", encodeXML(oVersionInfo.buildTimestamp || ""), ", last change ", encodeXML(oVersionInfo.scmRevision || ""), ")");
90
90
  } else {
91
91
  buffer.push("not available");
92
92
  }
@@ -103,14 +103,14 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver
103
103
  techInfoRenderer.line(html, true, true, "Application", technicalInfo.appurl);
104
104
  techInfoRenderer.multiline(html, true, true, "Configuration (bootstrap)", technicalInfo.bootconfig);
105
105
  techInfoRenderer.multiline(html, true, true, "Configuration (computed)", technicalInfo.config);
106
- if (!jQuery.isEmptyObject(technicalInfo.libraries)) {
106
+ if (!isEmptyObject(technicalInfo.libraries)) {
107
107
  techInfoRenderer.multiline(html, true, true, "Libraries", technicalInfo.libraries);
108
108
  }
109
109
  techInfoRenderer.multiline(html, true, true, "Loaded Libraries", technicalInfo.loadedLibraries);
110
110
  techInfoRenderer.line(html, true, true, "Loaded Modules", function(buffer){
111
111
  jQuery.each(technicalInfo.modules, function(i,v){
112
112
  if (v.indexOf("sap.ui.core.support") < 0) {
113
- buffer.push("<span>", jQuery.sap.escapeHTML(v || ""), "</span>");
113
+ buffer.push("<span>", encodeXML(v || ""), "</span>");
114
114
  if (i < technicalInfo.modules.length - 1) {
115
115
  buffer.push(", ");
116
116
  }
@@ -122,7 +122,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver
122
122
  html.push("</table></div>");
123
123
  content = html.join('');
124
124
  } catch (ex) {
125
- jQuery.sap.log.warning('There was a problem extracting technical info.');
125
+ Log.warning('There was a problem extracting technical info.');
126
126
  }
127
127
 
128
128
  return content;
@@ -131,7 +131,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver
131
131
  function getComponentPart(value) {
132
132
  var result = '<td>';
133
133
  if (value) {
134
- result += jQuery.sap.escapeHTML(value);
134
+ result += encodeXML(value);
135
135
  }
136
136
  result += '</td>';
137
137
  return result;
@@ -166,7 +166,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver
166
166
 
167
167
  content += '</table>';
168
168
  } catch (ex) {
169
- jQuery.sap.log.warning('There was a problem extracting app info.');
169
+ Log.warning('There was a problem extracting app info.');
170
170
  content = '';
171
171
  }
172
172
 
@@ -229,7 +229,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver
229
229
  break;
230
230
  }
231
231
  } catch (ex) {
232
- jQuery.sap.log.warning('There was a problem extracting scope info.');
232
+ Log.warning('There was a problem extracting scope info.');
233
233
  content = '';
234
234
  }
235
235
 
@@ -282,7 +282,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/support/supportRules/report/Archiver
282
282
 
283
283
  content += '</table>';
284
284
  } catch (ex) {
285
- jQuery.sap.log.warning('There was a problem extracting selected rules info.');
285
+ Log.warning('There was a problem extracting selected rules info.');
286
286
  content = '';
287
287
  }
288
288
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,17 +1,18 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "jquery.sap.global",
8
+ "sap/base/Log",
9
9
  "sap/ui/base/ManagedObject",
10
10
  "sap/ui/support/supportRules/CommunicationBus",
11
11
  "sap/ui/support/supportRules/WCBChannels",
12
- "sap/ui/support/supportRules/Constants"
12
+ "sap/ui/support/supportRules/Constants",
13
+ "sap/ui/thirdparty/URI"
13
14
  ],
14
- function (jQuery, ManagedObject, CommunicationBus, channelNames, constants) {
15
+ function (Log, ManagedObject, CommunicationBus, channelNames, constants, URI) {
15
16
  "use strict";
16
17
 
17
18
  var oIFrameController = null;
@@ -23,7 +24,7 @@ function (jQuery, ManagedObject, CommunicationBus, channelNames, constants) {
23
24
  var sFrameUrl;
24
25
 
25
26
  function computeFrameOrigin(sUrl) {
26
- var frameURI = new window.URI(sUrl);
27
+ var frameURI = new URI(sUrl);
27
28
  var sOrigin = ( frameURI.protocol() || window.location.protocol.replace(':', '') ) +
28
29
  '://' +
29
30
  ( frameURI.host() || window.location.host );
@@ -86,7 +87,7 @@ function (jQuery, ManagedObject, CommunicationBus, channelNames, constants) {
86
87
  if (!oIFrameController) {
87
88
  ManagedObject.apply(this, arguments);
88
89
  } else {
89
- jQuery.sap.log.warning("Only one support tool allowed");
90
+ Log.warning("Only one support tool allowed");
90
91
  return oIFrameController;
91
92
  }
92
93
  }
@@ -108,10 +109,10 @@ function (jQuery, ManagedObject, CommunicationBus, channelNames, constants) {
108
109
  IFrameController.prototype.injectFrame = function (supportModeConfig) {
109
110
  sFrameIdentifier = generateIdentifier();
110
111
 
111
- sFrameUrl = jQuery.sap.getModulePath("sap.ui.support.supportRules.ui",
112
- "/overlay.html?sap-ui-xx-formfactor=compact&sap-ui-xx-support-origin=" +
112
+ sFrameUrl = sap.ui.require.toUrl("sap/ui/support/supportRules/ui/overlay.html") +
113
+ "?sap-ui-xx-formfactor=compact&sap-ui-xx-support-origin=" +
113
114
  window.location.protocol + "//" + window.location.host + "&" +
114
- "sap-ui-xx-frame-identifier=" + sFrameIdentifier);
115
+ "sap-ui-xx-frame-identifier=" + sFrameIdentifier;
115
116
 
116
117
  sFrameOrigin = computeFrameOrigin(sFrameUrl);
117
118
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define(["sap/ui/core/Core",
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,11 +1,10 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "jquery.sap.global",
9
8
  "sap/ui/support/supportRules/ui/controllers/BaseController",
10
9
  "sap/ui/model/json/JSONModel",
11
10
  "sap/ui/support/supportRules/CommunicationBus",
@@ -15,8 +14,9 @@ sap.ui.define([
15
14
  "sap/ui/support/supportRules/WCBChannels",
16
15
  "sap/ui/support/supportRules/ui/models/formatter",
17
16
  "sap/ui/support/supportRules/Constants",
18
- "sap/m/OverflowToolbarAssociativePopoverControls"
19
- ], function ($, BaseController, JSONModel, CommunicationBus, SharedModel, ElementTree, IssueManager, channelNames, formatter, constants, OverflowToolbarAssociativePopoverControls) {
17
+ "sap/m/OverflowToolbarAssociativePopoverControls",
18
+ "sap/base/util/deepExtend"
19
+ ], function (BaseController, JSONModel, CommunicationBus, SharedModel, ElementTree, IssueManager, channelNames, formatter, constants, OverflowToolbarAssociativePopoverControls, deepExtend) {
20
20
  "use strict";
21
21
 
22
22
  var mIssueSettings = {
@@ -178,11 +178,11 @@ sap.ui.define([
178
178
  var sevFilter = this.model.getProperty("/severityFilter"),
179
179
  sevFilterApplied = issue.severity === sevFilter || sevFilter === constants.FILTER_VALUE_ALL,
180
180
  catFilter = this.model.getProperty("/categoryFilter"),
181
- catFilterApplied = $.inArray( catFilter, issue.categories ) > -1 || catFilter === constants.FILTER_VALUE_ALL,
181
+ catFilterApplied = (issue.categories && issue.categories.indexOf(catFilter) > -1) || catFilter === constants.FILTER_VALUE_ALL,
182
182
  elementFilter = this.model.getProperty("/elementFilter"),
183
183
  elementFilterApplied = elementFilter === issue.context.id || elementFilter === constants.FILTER_VALUE_ALL,
184
184
  audFilter = this.model.getProperty("/audienceFilter"),
185
- audienceFilterApplied = $.inArray( audFilter, issue.audiences ) > -1 || audFilter === constants.FILTER_VALUE_ALL,
185
+ audienceFilterApplied = (issue.audiences && issue.audiences.indexOf(audFilter) > -1) || audFilter === constants.FILTER_VALUE_ALL,
186
186
  bEnabledFilterButton = sevFilter === constants.FILTER_VALUE_ALL && catFilter === constants.FILTER_VALUE_ALL && audFilter === constants.FILTER_VALUE_ALL && elementFilter === constants.FILTER_VALUE_ALL;
187
187
 
188
188
  this.model.setProperty("/bEnabledFilterButton", !bEnabledFilterButton);
@@ -221,7 +221,7 @@ sap.ui.define([
221
221
  selectionCopy;
222
222
  if (this.model.getProperty("/visibleIssuesCount") > 0) {
223
223
  selectedIssues = this.structuredIssuesModel[selection.ruleLibName][selection.ruleId];
224
- selectionCopy = jQuery.extend(true, {}, selection); // clone the model so that the TreeTable will not be affected
224
+ selectionCopy = deepExtend({}, selection); // clone the model so that the TreeTable will not be affected
225
225
  selectionCopy.issues = selectedIssues;
226
226
  selectionCopy.resolutionUrls = selectedIssues[0].resolutionUrls;
227
227
  this.issueTable.setSelectedIndex(0);
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -96,7 +96,7 @@ sap.ui.define([
96
96
  VersionInfo.load({ library: "sap.ui.core" }).then(function (oCoreLibInfo) {
97
97
  CommunicationBus.publish(channelNames.POST_UI_INFORMATION, {
98
98
  version: oCoreLibInfo,
99
- location: new URI(jQuery.sap.getModulePath("sap.ui.support"), window.location.origin + window.location.pathname).toString()
99
+ location: new URI(sap.ui.require.toUrl("sap/ui/support"), window.location.origin + window.location.pathname).toString()
100
100
  });
101
101
  });
102
102
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  "sap/ui/support/supportRules/ui/models/Documentation",
15
15
  "sap/ui/support/supportRules/util/Utils",
16
16
  "sap/m/GroupHeaderListItem",
17
- "sap/ui/thirdparty/jquery",
17
+ "sap/base/util/deepExtend",
18
18
  "sap/ui/core/library"
19
19
  ], function (
20
20
  BaseController,
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  Documentation,
27
27
  Utils,
28
28
  GroupHeaderListItem,
29
- jQuery,
29
+ deepExtend,
30
30
  coreLibrary
31
31
  ) {
32
32
  "use strict";
@@ -89,7 +89,7 @@ sap.ui.define([
89
89
  *
90
90
  * @extends sap.ui.support.supportRules.ui.controllers.BaseController
91
91
  * @author SAP SE
92
- * @version 1.96.2
92
+ * @version 1.98.0
93
93
  * @private
94
94
  * @alias sap.ui.support.supportRules.ui.controllers.PresetsController
95
95
  */
@@ -658,7 +658,7 @@ sap.ui.define([
658
658
  aSelectedPresets.push(oPresetOptions);
659
659
 
660
660
  // keep the original version of the preset
661
- aCustomPresets.push(jQuery.extend(true, {}, oPresetOptions));
661
+ aCustomPresets.push(deepExtend({}, oPresetOptions));
662
662
 
663
663
  if (PresetsUtils.isPersistingAllowed()) {
664
664
  PresetsUtils.persistCustomPresets();
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- sap.ui.define(["jquery.sap.global"],
8
- function (jQuery) {
7
+ sap.ui.define(["sap/base/Log", "sap/ui/thirdparty/jquery"],
8
+ function (Log, jQuery) {
9
9
  "use strict";
10
10
 
11
11
  function _isObject(data) {
@@ -212,7 +212,7 @@ sap.ui.define(["jquery.sap.global"],
212
212
  var isDataAnObject = _isObject(data);
213
213
 
214
214
  if (isDataAnObject === false) {
215
- jQuery.sap.log.warning("The parameter should be an Object");
215
+ Log.warning("The parameter should be an Object");
216
216
  return;
217
217
  }
218
218
 
@@ -257,14 +257,14 @@ sap.ui.define(["jquery.sap.global"],
257
257
  var selectedElement;
258
258
 
259
259
  if (typeof elementID !== "string") {
260
- jQuery.sap.log.warning("Please use a valid string parameter");
260
+ Log.warning("Please use a valid string parameter");
261
261
  return;
262
262
  }
263
263
 
264
264
  selectedElement = this._ElementTreeContainer.querySelector("[data-id='" + elementID + "']");
265
265
 
266
266
  if (selectedElement === null) {
267
- jQuery.sap.log.warning("The selected element is not a child of the ElementTree");
267
+ Log.warning("The selected element is not a child of the ElementTree");
268
268
  return;
269
269
  }
270
270
 
@@ -293,7 +293,7 @@ sap.ui.define(["jquery.sap.global"],
293
293
  html += this._createTreeContainer();
294
294
 
295
295
  this._ElementTreeContainer.innerHTML = html;
296
- // Save reverences for future use
296
+ // Save references for future use
297
297
  this._setReferences();
298
298
 
299
299
  if (this.getData() !== undefined) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -80,7 +80,7 @@ sap.ui.define([
80
80
 
81
81
  function doCallOnHelper(sName, oHelper) {
82
82
  return function() {
83
- //jQuery.sap.log.warning("Function called on helper: " + sName);
83
+ //Log.warning("Function called on helper: " + sName);
84
84
  return TABLESELECTIONADAPTER[sName].apply(oHelper, arguments);
85
85
  };
86
86
  }
@@ -1,14 +1,16 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "jquery.sap.global",
8
+ "sap/base/Log",
9
+ "sap/base/util/Version",
10
+ "sap/ui/thirdparty/jquery",
9
11
  "sap/m/library",
10
12
  "sap/ui/VersionInfo"
11
- ], function (jQuery, mLibrary, VersionInfo) {
13
+ ], function (Log, Version, jQuery, mLibrary, VersionInfo) {
12
14
  "use strict";
13
15
 
14
16
  var Documentation = {
@@ -21,8 +23,8 @@ sap.ui.define([
21
23
  var sUrl = "",
22
24
  sVersion = "",
23
25
  sFullVersion = oCoreLibInfo.version,
24
- iMajorVersion = jQuery.sap.Version(sFullVersion).getMajor(),
25
- iMinorVersion = jQuery.sap.Version(sFullVersion).getMinor(),
26
+ iMajorVersion = Version(sFullVersion).getMajor(),
27
+ iMinorVersion = Version(sFullVersion).getMinor(),
26
28
  sOrigin = window.location.origin;
27
29
 
28
30
  //This check is to make sure that version is even. Example: 1.53 will back down to 1.52
@@ -55,7 +57,7 @@ sap.ui.define([
55
57
  this._pingUrl(sUrl).then(function success() {
56
58
  mLibrary.URLHelper.redirect(sUrl, true);
57
59
  }, function error() {
58
- jQuery.sap.log.info("Support Assistant tried to load documentation link in " + sUrl + "but fail");
60
+ Log.info("Support Assistant tried to load documentation link in " + sUrl + "but fail");
59
61
  sUrl = "https://ui5.sap.com/#/topic/" + sTopicId;
60
62
  mLibrary.URLHelper.redirect(sUrl, true);
61
63
  });
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -10,9 +10,9 @@ sap.ui.define([
10
10
  "sap/ui/support/supportRules/ui/models/SelectionUtils",
11
11
  "sap/ui/support/supportRules/ui/models/SharedModel",
12
12
  "sap/ui/core/util/File",
13
- "sap/ui/thirdparty/jquery",
13
+ "sap/base/util/extend",
14
14
  "sap/ui/support/library"
15
- ], function (Storage, constants, SelectionUtils, SharedModel, File, jQuery, library) {
15
+ ], function (Storage, constants, SelectionUtils, SharedModel, File, extend, library) {
16
16
  "use strict";
17
17
 
18
18
  var PresetsUtils = {
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  if (oSystemPreset.id === oPreset.id) {
52
52
  if (!oPreset.isModified) {
53
53
  var bIsSelected = oPreset.selected;
54
- oPreset = jQuery.extend({}, oSystemPreset);
54
+ oPreset = extend({}, oSystemPreset);
55
55
  oPreset.selected = bIsSelected;
56
56
  if (bIsSelected) {
57
57
  SelectionUtils.setSelectedRules(oPreset.selections);
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  disableDelete: true,
67
67
  isSystemPreset: true
68
68
  };
69
- aPresets.splice(iLastSystemPresetPosition + 1, 0, jQuery.extend(mSystemPresetConfig, oSystemPreset));
69
+ aPresets.splice(iLastSystemPresetPosition + 1, 0, extend(mSystemPresetConfig, oSystemPreset));
70
70
  }
71
71
 
72
72
  iLastSystemPresetPosition++;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  /*!
4
4
  * OpenUI5
5
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
5
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
6
6
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
7
7
  */
8
8
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -125,4 +125,4 @@ sap.ui.define([],
125
125
  };
126
126
 
127
127
  return RuleValidator;
128
- }, false);
128
+ });
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -66,4 +66,4 @@ sap.ui.define([],
66
66
  };
67
67
 
68
68
  return StringAnalyzer;
69
- }, false);
69
+ });
@@ -1,16 +1,16 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
7
  /**
8
8
  * Contains functionality that may be used trough the whole Support Assistant
9
9
  */
10
- sap.ui.define([],
11
- function() {
10
+ sap.ui.define(["sap/ui/thirdparty/jquery"],
11
+ function(jQuery) {
12
12
  "use strict";
13
- var sInternalPingFilePath = jQuery.sap.getModulePath("sap.ui.support").replace(/(^|\/)resources\//, "$1test-resources/") + "/internal/.ping";
13
+ var sInternalPingFilePath = sap.ui.require.toUrl("sap/ui/support").replace(/(^|\/)resources\//, "$1test-resources/") + "/internal/.ping";
14
14
 
15
15
  var Utils = {
16
16
  bCanLoadInternalRules: null,