@openui5/sap.ui.support 1.119.1 → 1.120.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/THIRDPARTY.txt CHANGED
@@ -179,7 +179,7 @@ License: Apache-2.0
179
179
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
180
180
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
181
181
 
182
- Component: Unicode Common Locale Data Repository, version: 41
182
+ Component: Unicode Common Locale Data Repository, version: 43
183
183
  Copyright: 1991-2014 Unicode, Inc.
184
184
  License: Unicode-DFS-2015
185
185
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
@@ -334,7 +334,7 @@ License: ISC
334
334
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
335
335
  Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
336
336
 
337
- Component: Time Zone Database, version: 2022a
337
+ Component: Time Zone Database, version: 2023c
338
338
  Copyright: Arthur David Olson, Paul Eggert and other contributors
339
339
  License: LicenseRef-tzdata-PublicDomain
340
340
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
@@ -416,7 +416,7 @@ Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplore
416
416
 
417
417
  Library: sap.ui.webc.common:
418
418
 
419
- Component: UI5 Web Components, version: 1.5.0
419
+ Component: UI5 Web Components, version: 1.18.0
420
420
  Copyright: SAP
421
421
  License: Apache-2.0
422
422
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -436,13 +436,13 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
436
436
 
437
437
  Library: sap.ui.webc.fiori:
438
438
 
439
- Component: UI5 Web Components, version: 1.5.0
439
+ Component: UI5 Web Components, version: 1.18.0
440
440
  Copyright: SAP
441
441
  License: Apache-2.0
442
442
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
443
443
  Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
444
444
 
445
- Component: ZXing, version: 0.19.1
445
+ Component: ZXing, version: 0.17.1
446
446
  Copyright: 2005 Sun Microsystems, Inc.; 2010-2014 University of Manchester; 2010-2015 Stian Soiland-Reyes; 2015 Peter Hull
447
447
  License: Apache-2.0
448
448
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -451,7 +451,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/lib/zxing.js
451
451
 
452
452
  Library: sap.ui.webc.main:
453
453
 
454
- Component: UI5 Web Components, version: 1.5.0
454
+ Component: UI5 Web Components, version: 1.18.0
455
455
  Copyright: SAP
456
456
  License: Apache-2.0
457
457
  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.119.1",
3
+ "version": "1.120.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.119.1",
18
- "@openui5/sap.ui.codeeditor": "1.119.1",
19
- "@openui5/sap.ui.core": "1.119.1",
20
- "@openui5/sap.ui.fl": "1.119.1",
21
- "@openui5/sap.ui.layout": "1.119.1"
17
+ "@openui5/sap.m": "1.120.0",
18
+ "@openui5/sap.ui.codeeditor": "1.120.0",
19
+ "@openui5/sap.ui.core": "1.120.0",
20
+ "@openui5/sap.ui.fl": "1.120.0",
21
+ "@openui5/sap.ui.layout": "1.120.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.119.1</version>
9
+ <version>1.120.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.119.1
35
+ * @version 1.120.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.119.1
37
+ * @version 1.120.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.119.1
26
+ * @version 1.120.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.119.1",
40
+ version: "1.120.0",
41
41
  extensions: {
42
42
  //Configuration used for rule loading of Support Assistant
43
43
  "sap.ui.support": {
@@ -221,6 +221,34 @@ sap.ui.define(["sap/ui/core/library"],
221
221
  {ruleId: "texttooltip", libName: "sap.m"},
222
222
  {ruleId: "rbText", libName: "sap.m"}
223
223
  ]
224
+ },
225
+
226
+ /**
227
+ * Preset to find usages of deprecated controls, properties, aggregations and others.
228
+ *
229
+ * @public
230
+ * @experimental since 1.120
231
+ */
232
+ Deprecations : {
233
+ id: "Deprecations",
234
+ title: "Deprecations",
235
+ description: "Usage of deprecated controls, properties, aggregations and others",
236
+ selections: [
237
+ // Grouped by library
238
+ { ruleId: "deprecatedProperty", libName: "sap.ui.core" },
239
+ { ruleId: "deprecatedElement", libName: "sap.ui.core" },
240
+ { ruleId: "deprecatedAggregation", libName: "sap.ui.core" },
241
+ { ruleId: "deprecatedAssociation", libName: "sap.ui.core" },
242
+ { ruleId: "deprecatedEvent", libName: "sap.ui.core" },
243
+ { ruleId: "globalApiUsage", libName: "sap.ui.core" },
244
+ { ruleId: "jquerySapUsage", libName: "sap.ui.core" },
245
+ { ruleId: "syncFactoryLoading", libName: "sap.ui.core" },
246
+ { ruleId: "deprecatedApiUsage", libName: "sap.ui.core" },
247
+ { ruleId: "jQueryThreeDeprecation", libName: "sap.ui.core" },
248
+ { ruleId: "deprecatedJSViewUsage", libName: "sap.ui.core" },
249
+
250
+ { ruleId: "smartTableDeprecatedModel", libName: "sap.ui.comp" }
251
+ ]
224
252
  }
225
253
  };
226
254
 
@@ -10,6 +10,7 @@ sap.ui.define([
10
10
  "sap/ui/core/Core",
11
11
  "sap/ui/core/Element",
12
12
  "sap/ui/core/Component",
13
+ "sap/ui/core/Supportability",
13
14
  "sap/ui/support/supportRules/Analyzer",
14
15
  "sap/ui/support/supportRules/CoreFacade",
15
16
  "sap/ui/support/supportRules/ExecutionScope",
@@ -29,6 +30,7 @@ sap.ui.define([
29
30
  Core,
30
31
  Element,
31
32
  Component,
33
+ Supportability,
32
34
  Analyzer,
33
35
  CoreFacade,
34
36
  ExecutionScope,
@@ -128,7 +130,7 @@ sap.ui.define([
128
130
  var aSupportModeConfig = this._aSupportModeConfig;
129
131
  this._pluginStarted = true;
130
132
 
131
- this._supportModeConfig = aSupportModeConfig = aSupportModeConfig || Core.getConfiguration().getSupportMode();
133
+ this._supportModeConfig = aSupportModeConfig = aSupportModeConfig || Supportability.getSupportSettings();
132
134
  CommunicationBus.bSilentMode = aSupportModeConfig.indexOf("silent") > -1;
133
135
  this._setCommunicationSubscriptions();
134
136
 
@@ -34,7 +34,7 @@ function (Log, Version, library, storage) {
34
34
  * @private
35
35
  * @alias sap.ui.support.RuleSet
36
36
  * @author SAP SE
37
- * @version 1.119.1
37
+ * @version 1.120.0
38
38
  * @param {object} oSettings Name of the initiated
39
39
  */
40
40
  var RuleSet = function (oSettings) {
@@ -9,6 +9,7 @@ sap.ui.define([
9
9
  "sap/base/util/extend",
10
10
  "sap/base/util/ObjectPath",
11
11
  "sap/ui/VersionInfo",
12
+ "sap/ui/core/Supportability",
12
13
  "sap/ui/support/supportRules/RuleSet",
13
14
  "sap/ui/support/supportRules/CommunicationBus",
14
15
  "sap/ui/support/supportRules/WCBChannels",
@@ -16,13 +17,13 @@ sap.ui.define([
16
17
  "sap/ui/support/supportRules/Constants",
17
18
  "sap/ui/support/supportRules/util/EvalUtils",
18
19
  "sap/ui/support/supportRules/util/Utils",
19
- "sap/ui/thirdparty/jquery",
20
- "sap/ui/core/Configuration"
20
+ "sap/ui/thirdparty/jquery"
21
21
  ], function (
22
22
  Log,
23
23
  extend,
24
24
  ObjectPath,
25
25
  VersionInfo,
26
+ Supportability,
26
27
  RuleSet,
27
28
  CommunicationBus,
28
29
  channelNames,
@@ -30,8 +31,7 @@ sap.ui.define([
30
31
  constants,
31
32
  EvalUtils,
32
33
  Utils,
33
- jQuery,
34
- Configuration
34
+ jQuery
35
35
  ) {
36
36
  "use strict";
37
37
 
@@ -222,7 +222,7 @@ sap.ui.define([
222
222
  iProgress = 0,
223
223
  iRulesNumber = aLibNames.publicRules.length;
224
224
 
225
- var supportModeConfig = Configuration.getSupportMode();
225
+ var supportModeConfig = Supportability.getSupportSettings();
226
226
  var bSilentMode = supportModeConfig && supportModeConfig.indexOf("silent") > -1;
227
227
 
228
228
  if (bHasInternalRules) {
@@ -333,8 +333,8 @@ sap.ui.define([
333
333
 
334
334
  return new Promise(function (resolve) {
335
335
  try {
336
- sap.ui.require([sLibraryName.replace(/\./g, "/") + "/library.support"], function () {
337
- fnProcessFile.call(that, sLibraryName);
336
+ sap.ui.require([sLibraryName.replace(/\./g, "/") + "/library.support"], function (oLibSupport) {
337
+ fnProcessFile.call(that, sLibraryName, oLibSupport);
338
338
  resolve();
339
339
  }, resolve);
340
340
  } catch (ex) {
@@ -348,13 +348,25 @@ sap.ui.define([
348
348
  *
349
349
  * @private
350
350
  * @param {string} sLibName Name of the library from which to fetch a ruleset
351
+ * @param {object} oLibSupport Export of the library.support file
351
352
  */
352
- RuleSetLoader._fetchRuleSet = function (sLibName) {
353
+ RuleSetLoader._fetchRuleSet = function (sLibName, oLibSupport) {
353
354
  try {
354
355
  var sNormalizedLibName = sLibName.replace("." + sCustomSuffix, "").replace(".internal", ""),
355
- oLibSupport = ObjectPath.get(sLibName).library.support,
356
356
  oRuleSet = this._mRuleSets[sNormalizedLibName];
357
357
 
358
+ /**
359
+ * @deprecated As of 1.120
360
+ */
361
+ if (oLibSupport == null) {
362
+ oLibSupport = ObjectPath.get(sLibName).library.support;
363
+ if (oLibSupport) {
364
+ Log.error(
365
+ `The ruleset for library '${sLibName}' could only be retrieved via globals.` +
366
+ `This is deprecated and won't be supported in future releases`);
367
+ }
368
+ }
369
+
358
370
  if (!oLibSupport) {
359
371
  // This case usually happens when the library flag bExport is set to true.
360
372
  throw "The library.support file was not fetched successfully.";
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  *
54
54
  * @name sap.ui.support.Storage
55
55
  * @author SAP SE.
56
- * @version 1.119.1
56
+ * @version 1.120.0
57
57
  * @private
58
58
  */
59
59
  return /** @lends sap.ui.support.Storage */ {
@@ -5,10 +5,9 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/base/util/UriParameters",
9
8
  "sap/ui/thirdparty/URI"
10
9
  ],
11
- function (UriParameters, URI) {
10
+ function (URI) {
12
11
  "use strict";
13
12
 
14
13
  var DEFAULT_FRAME_ID = '_unnamed_frame_-_use_message_origin_';
@@ -44,12 +43,12 @@ function (UriParameters, URI) {
44
43
  WCBConfig.prototype.getFrameId = function () {
45
44
  // the opener window assigns a tool frame an ID and includes in as a URI parameter upon opening the frame
46
45
  // returns the frame's ID or a default value, when running in an opener window
47
- return UriParameters.fromQuery(window.location.search).get(this._sURIFrameId) || DEFAULT_FRAME_ID;
46
+ return new URLSearchParams(window.location.search).get(this._sURIFrameId) || DEFAULT_FRAME_ID;
48
47
  };
49
48
 
50
49
  WCBConfig.prototype.getOriginURIParameter = function () {
51
50
  // the opener window sets its origin as a URI parameter upon opening the frame
52
- return UriParameters.fromQuery(window.location.search).get(this._sURIOrigin);
51
+ return new URLSearchParams(window.location.search).get(this._sURIOrigin);
53
52
  };
54
53
 
55
54
  WCBConfig.prototype.getReceivingWindow = function () {
@@ -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.119.1
27
+ * @version 1.120.0
28
28
  * @private
29
29
  */
30
30
  var WindowCommunicationBus = BaseObject.extend("sap.ui.support.supportRules.WindowCommunicationBus", {
@@ -91,7 +91,7 @@ sap.ui.define([
91
91
  *
92
92
  * @extends sap.ui.support.supportRules.ui.controllers.BaseController
93
93
  * @author SAP SE
94
- * @version 1.119.1
94
+ * @version 1.120.0
95
95
  * @private
96
96
  * @alias sap.ui.support.supportRules.ui.controllers.PresetsController
97
97
  */