@openui5/sap.ui.support 1.113.0 → 1.115.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.
package/.reuse/dep5 CHANGED
@@ -192,11 +192,6 @@ Copyright: 2012 Matteo Spinelli
192
192
  License: MIT
193
193
  Comment: these files belong to: cubiq.org - swipeview
194
194
 
195
- Files: src/sap.ui.core/src/sap/ui/thirdparty/mobify-carousel.js
196
- Copyright: Mobify R&D Inc.
197
- License: MIT
198
- Comment: these files belong to: Mobify.js
199
-
200
195
  Files: src/sap.ui.core/src/sap/ui/thirdparty/zyngascroll.js
201
196
  Copyright: 2011 Zynga Inc.
202
197
  License: MIT
package/THIRDPARTY.txt CHANGED
@@ -143,12 +143,6 @@ License: MIT
143
143
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
144
144
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/swipe-view.js
145
145
 
146
- Component: Mobify.js, version: 1.1
147
- Copyright: Mobify R&D Inc.
148
- License: MIT
149
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
150
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/mobify-carousel.js
151
-
152
146
  Component: Zynga Scroller, version: 1.2.1-0-g5d43806
153
147
  Copyright: 2011 Zynga Inc.
154
148
  License: MIT
@@ -478,7 +472,7 @@ License: Apache-2.0
478
472
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
479
473
  Contained in: lib/jsdoc/ui5/plugin.js
480
474
 
481
- Component: SAP Theming Base Content, version: 11.2.1
475
+ Component: SAP Theming Base Content, version: 11.3.0
482
476
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
483
477
  License: Apache-2.0
484
478
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.support",
3
- "version": "1.113.0",
3
+ "version": "1.115.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.support",
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.113.0",
18
- "@openui5/sap.ui.codeeditor": "1.113.0",
19
- "@openui5/sap.ui.core": "1.113.0",
20
- "@openui5/sap.ui.fl": "1.113.0",
21
- "@openui5/sap.ui.layout": "1.113.0"
17
+ "@openui5/sap.m": "1.115.0",
18
+ "@openui5/sap.ui.codeeditor": "1.115.0",
19
+ "@openui5/sap.ui.core": "1.115.0",
20
+ "@openui5/sap.ui.fl": "1.115.0",
21
+ "@openui5/sap.ui.layout": "1.115.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.113.0</version>
9
+ <version>1.115.0</version>
10
10
 
11
11
  <documentation>UI5 library: sap.ui.support</documentation>
12
12
 
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @namespace
33
33
  * @alias sap.ui.support.RuleAnalyzer
34
34
  * @author SAP SE
35
- * @version 1.113.0
35
+ * @version 1.115.0
36
36
  * @public
37
37
  */
38
38
  var RuleAnalyzer = {
@@ -34,7 +34,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery",
34
34
  * @namespace
35
35
  * @deprecated Since version 1.60.0. Please use sap/ui/support/RuleAnalyzer instead.
36
36
  * @author SAP SE
37
- * @version 1.113.0
37
+ * @version 1.115.0
38
38
  * @public
39
39
  */
40
40
  jQuery.sap.support = {
@@ -23,7 +23,7 @@ sap.ui.define(["sap/ui/core/library"],
23
23
  * @namespace
24
24
  * @alias sap.ui.support
25
25
  * @author SAP SE
26
- * @version 1.113.0
26
+ * @version 1.115.0
27
27
  * @since 1.50
28
28
  * @public
29
29
  */
@@ -37,7 +37,7 @@ sap.ui.define(["sap/ui/core/library"],
37
37
  controls: [],
38
38
  elements: [],
39
39
  noLibraryCSS: true,
40
- version: "1.113.0",
40
+ version: "1.115.0",
41
41
  extensions: {
42
42
  //Configuration used for rule loading of Support Assistant
43
43
  "sap.ui.support": {
@@ -9,8 +9,8 @@
9
9
  * runs tasks added by addTask function. Analysis can be started, stopped, restarted, paused and continued.
10
10
  * The analyzer can be used to update the UI with the current progress of a task while it's running.
11
11
  */
12
- sap.ui.define(["sap/base/Log", "sap/ui/support/supportRules/IssueManager","sap/ui/support/supportRules/Constants"],
13
- function (Log, IssueManager, Constants) {
12
+ sap.ui.define(["sap/base/Log", "sap/ui/support/supportRules/IssueManager","sap/ui/support/supportRules/Constants", "sap/ui/core/date/UI5Date"],
13
+ function (Log, IssueManager, Constants, UI5Date) {
14
14
  "use strict";
15
15
 
16
16
  /**
@@ -72,7 +72,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/support/supportRules/IssueManager","sap/u
72
72
  var oIssueManagerFacade,
73
73
  that = this;
74
74
 
75
- this.dStartedAt = new Date();
75
+ this.dStartedAt = UI5Date.getInstance();
76
76
  this._iTotalRules = aRules.length;
77
77
  this._bRunning = true;
78
78
 
@@ -96,7 +96,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/support/supportRules/IssueManager","sap/u
96
96
 
97
97
  return Promise.all(this._aRulePromices).then(function () {
98
98
  that.reset();
99
- that.dFinishedAt = new Date();
99
+ that.dFinishedAt = UI5Date.getInstance();
100
100
  that.iElapsedTime = that.dFinishedAt.getTime() - that.dStartedAt.getTime(); // In milliseconds
101
101
  });
102
102
  };
@@ -178,7 +178,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/support/supportRules/IssueManager","sap/u
178
178
  return "";
179
179
  }
180
180
 
181
- var oDate = new Date(null);
181
+ var oDate = UI5Date.getInstance(null);
182
182
  oDate.setHours(0, 0, 0, 0);
183
183
  oDate.setMilliseconds(this.iElapsedTime);
184
184
  var aBuffer = [
@@ -8,9 +8,10 @@ sap.ui.define([
8
8
  "sap/ui/support/supportRules/IssueManager",
9
9
  "sap/ui/support/supportRules/RuleSetLoader",
10
10
  "sap/ui/support/supportRules/report/StringHistoryFormatter",
11
- "sap/ui/support/supportRules/report/AbapHistoryFormatter"
11
+ "sap/ui/support/supportRules/report/AbapHistoryFormatter",
12
+ "sap/ui/core/date/UI5Date"
12
13
  ],
13
- function (library, IssueManager, RuleSetLoader, StringHistoryFormatter, AbapHistoryFormatter) {
14
+ function (library, IssueManager, RuleSetLoader, StringHistoryFormatter, AbapHistoryFormatter, UI5Date) {
14
15
  "use strict";
15
16
 
16
17
  /**
@@ -155,7 +156,7 @@ function (library, IssueManager, RuleSetLoader, StringHistoryFormatter, AbapHist
155
156
  oSelectedRulePreset = oContext._oSelectedRulePreset;
156
157
 
157
158
  _aRuns.push({
158
- date: new Date().toUTCString(),
159
+ date: UI5Date.getInstance().toUTCString(),
159
160
  issues: mIssues,
160
161
  onlyIssues: aIssues,
161
162
  application: oContext._oDataCollector.getAppInfo(),
@@ -35,7 +35,7 @@ function (Log, Version, library, storage, constants) {
35
35
  * @private
36
36
  * @alias sap.ui.support.RuleSet
37
37
  * @author SAP SE
38
- * @version 1.113.0
38
+ * @version 1.115.0
39
39
  * @param {object} oSettings Name of the initiated
40
40
  */
41
41
  var RuleSet = function (oSettings) {
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  *
54
54
  * @name sap.ui.support.Storage
55
55
  * @author SAP SE.
56
- * @version 1.113.0
56
+ * @version 1.115.0
57
57
  * @private
58
58
  */
59
59
  return /** @lends sap.ui.support.Storage */ {
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @alias sap.ui.support.WindowCommunicationBus
26
26
  * @author SAP SE
27
- * @version 1.113.0
27
+ * @version 1.115.0
28
28
  * @private
29
29
  */
30
30
  var WindowCommunicationBus = BaseObject.extend("sap.ui.support.supportRules.WindowCommunicationBus", {
@@ -8,7 +8,7 @@
8
8
  * Creates a report from data.
9
9
  */
10
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) {
11
+ 'sap/ui/support/supportRules/report/IssueRenderer', 'sap/ui/core/date/UI5Date'], function(jQuery, Log, encodeXML, isEmptyObject, isPlainObject, Archiver, IssueRenderer, UI5Date) {
12
12
  'use strict';
13
13
 
14
14
  // Private fields
@@ -327,7 +327,7 @@ sap.ui.define(['sap/ui/thirdparty/jquery', 'sap/base/Log', 'sap/base/security/en
327
327
  metadataTitleIssues: 'Issues',
328
328
  metadataTitleAppInfo: 'Application Information',
329
329
  metadataTitleSelectedRules: 'Available and (<span class="checked"></span>) Selected Rules',
330
- metadataTimestamp: new Date(),
330
+ metadataTimestamp: UI5Date.getInstance(),
331
331
  metadataScope: getScope(oData.scope),
332
332
  metadataAnalysisDuration: oData.analysisDuration,
333
333
  metadataAnalysisDurationTitle: oData.analysisDurationTitle
@@ -10,9 +10,10 @@ sap.ui.define([
10
10
  "sap/ui/support/supportRules/CommunicationBus",
11
11
  "sap/ui/support/supportRules/WCBChannels",
12
12
  "sap/ui/support/supportRules/Constants",
13
- "sap/ui/thirdparty/URI"
13
+ "sap/ui/thirdparty/URI",
14
+ "sap/ui/core/date/UI5Date"
14
15
  ],
15
- function (Log, ManagedObject, CommunicationBus, channelNames, constants, URI) {
16
+ function (Log, ManagedObject, CommunicationBus, channelNames, constants, URI, UI5Date) {
16
17
  "use strict";
17
18
 
18
19
  var oIFrameController = null;
@@ -33,7 +34,7 @@ function (Log, ManagedObject, CommunicationBus, channelNames, constants, URI) {
33
34
  }
34
35
 
35
36
  function generateIdentifier() {
36
- return '' + +new Date();
37
+ return '' + +UI5Date.getInstance();
37
38
  }
38
39
 
39
40
  function openFrame(sUrl) {
@@ -15,7 +15,8 @@ sap.ui.define([
15
15
  "sap/ui/support/supportRules/util/Utils",
16
16
  "sap/m/GroupHeaderListItem",
17
17
  "sap/base/util/deepExtend",
18
- "sap/ui/core/library"
18
+ "sap/ui/core/library",
19
+ "sap/ui/core/date/UI5Date"
19
20
  ], function (
20
21
  BaseController,
21
22
  SelectionUtils,
@@ -27,7 +28,8 @@ sap.ui.define([
27
28
  Utils,
28
29
  GroupHeaderListItem,
29
30
  deepExtend,
30
- coreLibrary
31
+ coreLibrary,
32
+ UI5Date
31
33
  ) {
32
34
  "use strict";
33
35
 
@@ -89,7 +91,7 @@ sap.ui.define([
89
91
  *
90
92
  * @extends sap.ui.support.supportRules.ui.controllers.BaseController
91
93
  * @author SAP SE
92
- * @version 1.113.0
94
+ * @version 1.115.0
93
95
  * @private
94
96
  * @alias sap.ui.support.supportRules.ui.controllers.PresetsController
95
97
  */
@@ -312,7 +314,7 @@ sap.ui.define([
312
314
 
313
315
  // parse the date exported value, so it can be displayed
314
316
  if (oFileData.dateExported) {
315
- oFileData.dateExported = new Date(oFileData.dateExported);
317
+ oFileData.dateExported = UI5Date.getInstance(oFileData.dateExported);
316
318
  }
317
319
 
318
320
  this.oModel.setProperty("/currentImportData", oFileData);
@@ -376,7 +378,7 @@ sap.ui.define([
376
378
  "id": (oCurrentPreset.isMySelection || oCurrentPreset.isSystemPreset) ? "" : oCurrentPreset.id,
377
379
  "title": oCurrentPreset.title,
378
380
  "descriptionValue": oCurrentPreset.description, // there is an issue on build if we use ${description}
379
- "dateExportedForDisplay": new Date(), // the current date is shown as export date
381
+ "dateExportedForDisplay": UI5Date.getInstance(), // the current date is shown as export date
380
382
  "isMySelection": oCurrentPreset.isMySelection
381
383
  });
382
384
 
@@ -11,8 +11,9 @@ sap.ui.define([
11
11
  "sap/ui/support/supportRules/ui/models/SharedModel",
12
12
  "sap/ui/core/util/File",
13
13
  "sap/base/util/extend",
14
- "sap/ui/support/library"
15
- ], function (Storage, constants, SelectionUtils, SharedModel, File, extend, library) {
14
+ "sap/ui/support/library",
15
+ "sap/ui/core/date/UI5Date"
16
+ ], function (Storage, constants, SelectionUtils, SharedModel, File, extend, library, UI5Date) {
16
17
  "use strict";
17
18
 
18
19
  var PresetsUtils = {
@@ -123,7 +124,7 @@ sap.ui.define([
123
124
  id: sId,
124
125
  title: sTitle,
125
126
  description: sDescription,
126
- dateExported: (new Date()).toISOString(),
127
+ dateExported: (UI5Date.getInstance()).toISOString(),
127
128
  version: "1.0",
128
129
  selections: aSelections
129
130
  };
@@ -29,6 +29,7 @@ sap.ui.define([],
29
29
  * - "-"
30
30
  * - "*"
31
31
  * - "<digit>.<digit><digit>"
32
+ * - "<digit>.<digit><digit><digit>"
32
33
  *
33
34
  * @private
34
35
  * @param {string} sVersion Version number in string format - could be - * or numeric.
@@ -40,8 +41,7 @@ sap.ui.define([],
40
41
  return false;
41
42
  }
42
43
 
43
- //Match 0 or 1 of the following symbols - "*" or "-" or the following pattern of digits - "<digit>.<digit><digit>"
44
- var versionRegEx = /^\*$|^\-$|^\d\.\d\d$/;
44
+ var versionRegEx = /^\*$|^\-$|^\d\.\d{2,3}$/;
45
45
 
46
46
  if (sVersion.match(versionRegEx)) {
47
47
  return true;