@openui5/sap.ui.support 1.120.6 → 1.121.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
@@ -28,7 +28,7 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
28
28
  # OpenUI5 code
29
29
 
30
30
  Files: *
31
- Copyright: 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
31
+ Copyright: 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
32
32
  License: Apache-2.0
33
33
 
34
34
 
@@ -68,7 +68,7 @@ Comment: these files belong to: jQuery UI
68
68
 
69
69
  Files: src/sap.ui.commons/src/sap/ui/commons/Carousel.js
70
70
  Copyright:
71
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
71
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
72
72
  Spencer Tipping
73
73
  License: Apache-2.0 and MIT
74
74
  Comment: these files contain content from SAP and jquery.fix.clone: Carousel.js is authored by SAP, but contains an improved implementation of the clone function which is taken from jquery-fix-clone
@@ -83,35 +83,35 @@ Comment: these files belong to: jQuery 3
83
83
 
84
84
  Files: src/sap.ui.core/src/sap/base/util/isPlainObject.js
85
85
  Copyright:
86
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
86
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
87
87
  OpenJS Foundation and other contributors
88
88
  License: Apache-2.0 and MIT
89
89
  Comment: these files contain content from SAP and jQuery 3: isPlainObject.js is overall written by SAP, but contains a modified implementation of jQuery.isPlainObject taken from jQuery
90
90
 
91
91
  Files: src/sap.ui.core/src/sap/base/util/_merge.js
92
92
  Copyright:
93
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
93
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
94
94
  OpenJS Foundation and other contributors
95
95
  License: Apache-2.0 and MIT
96
96
  Comment: these files contain content from SAP and jQuery 3: _merge.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
97
97
 
98
98
  Files: src/sap.ui.core/src/jquery.sap.script.js
99
99
  Copyright:
100
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
100
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
101
101
  OpenJS Foundation and other contributors
102
102
  License: Apache-2.0 and MIT
103
103
  Comment: these files contain content from SAP and jQuery 3: jquery.sap.script.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
104
104
 
105
105
  Files: src/sap.ui.core/src/sap/ui/Device.js
106
106
  Copyright:
107
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
107
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
108
108
  2011, John Resig
109
109
  License: Apache-2.0 and MIT
110
110
  Comment: these files contain content from SAP and jQuery 1: Device.js is overall written by SAP, but contains code taken from jQuery 1.7.1 (see the respective comment)
111
111
 
112
112
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/Selectors.js
113
113
  Copyright:
114
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
114
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
115
115
  2014 jQuery Foundation and other contributors
116
116
  License: Apache-2.0 and MIT
117
117
  Comment: these files contain content from SAP and jQuery UI 1.8: Selectors.js is overall written by SAP, but contains code taken from jQuery UI (see the respective comments)
@@ -123,14 +123,14 @@ Comment: these files belong to: jQuery UI 1.10
123
123
 
124
124
  Files: src/sap.ui.core/src/jquery.sap.dom.js
125
125
  Copyright:
126
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
126
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
127
127
  2014 jQuery Foundation and other contributors
128
128
  License: Apache-2.0 and MIT
129
129
  Comment: these files contain content from SAP and jQuery UI 1.10: jquery.sap.dom.js is overall written by SAP, but contains code taken from jQuery UI Core (see the respective comment)
130
130
 
131
131
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/zIndex.js
132
132
  Copyright:
133
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
133
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
134
134
  2014 jQuery Foundation and other contributors
135
135
  License: Apache-2.0 and MIT
136
136
  Comment: these files contain content from SAP and jQuery UI 1.11: zIndex.js is overall written by SAP, but contains an implementation of the function 'fnzIndex' which is taken from jQuery UI Datepicker 1.11.1
@@ -162,7 +162,7 @@ Comment: these files belong to: jQuery Mobile
162
162
 
163
163
  Files: src/sap.ui.core/src/sap/ui/util/_FeatureDetection.js
164
164
  Copyright:
165
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
165
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
166
166
  2012 Wei-Ko Kao
167
167
  License: Apache-2.0 and MIT
168
168
  Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
@@ -177,6 +177,13 @@ Copyright: jQuery Foundation and other contributors
177
177
  License: MIT
178
178
  Comment: these files belong to: JUnit Reporter for QUnit
179
179
 
180
+ Files: src/sap.ui.core/src/sap/ui/qunit/qunit-junit.js
181
+ Copyright:
182
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
183
+ jQuery Foundation and other contributors
184
+ License: Apache-2.0 and MIT
185
+ Comment: these files contain content from SAP and JUnit Reporter for QUnit: qunit-junit.js is overall written by SAP, but contains a modified copy of JUnit Reporter for QUnit (qunit-reporter-junit)
186
+
180
187
  Files: src/sap.ui.core/src/sap/ui/thirdparty/iscroll.js
181
188
  Copyright: 2012 Matteo Spinelli
182
189
  License: MIT
@@ -294,14 +301,14 @@ Comment: these files belong to: blanket.js
294
301
 
295
302
  Files: src/sap.ui.core/src/sap/base/util/JSTokenizer.js
296
303
  Copyright:
297
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
304
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
298
305
  Douglas Crockford
299
306
  License: Apache-2.0 and LicenseRef-JSONinJSPublicDomain
300
307
  Comment: these files contain content from SAP and JSON in JS: JSTokenizer.js is overall written by SAP, but contains code has been taken from the component JSON in JavaScript (https://github.com/douglascrockford/JSON-js/blob/master/json2.js) from Douglas Crockford which is licensed under Public Domain
301
308
 
302
309
  Files: src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
303
310
  Copyright:
304
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
311
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
305
312
  2010 Douglas Crockford
306
313
  License: Apache-2.0
307
314
  Comment: these files contain content from SAP and Top Down Operator Precedence: ExpressionParser.js is overall written by SAP, but contains code taken from or inspired by TDOP by Douglas Crockford (see the respective comment)
@@ -335,7 +342,7 @@ Comment: these files contain content from p-cancelable and @babel/helpers: _Canc
335
342
 
336
343
  Files: src/sap.ui.core/src/sap/ui/core/date/Persian.js
337
344
  Copyright:
338
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
345
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
339
346
  Behrang Norouzinia
340
347
  License: Apache-2.0 and MIT
341
348
  Comment: these files contain content from SAP and Jalaali JS: Persian.js is overall written by SAP, but the calculation is taken from jalaali-js
@@ -347,14 +354,14 @@ Comment: these files belong to: vkBeautify
347
354
 
348
355
  Files: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
349
356
  Copyright:
350
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
357
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
351
358
  Isaac Z. Schlueter and Contributors
352
359
  License: Apache-2.0 and ISC
353
360
  Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
354
361
 
355
362
  Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
356
363
  Copyright:
357
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
364
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
358
365
  Arthur David Olson, Paul Eggert and other contributors
359
366
  License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
360
367
  Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
@@ -362,11 +369,6 @@ Comment: these files contain content from SAP and Time Zone Database: _timezones
362
369
 
363
370
  # Library: sap.ui.documentation:
364
371
 
365
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
366
- Copyright: 2013 Ariya Hidayat and other contributors
367
- License: BSD-2-Clause
368
- Comment: these files belong to: Esprima
369
-
370
372
  Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
371
373
  Copyright: 2006-2020, Ivan Sagalaev
372
374
  License: BSD-3-Clause
@@ -459,7 +461,7 @@ Comment: these files belong to: UI5 Web Components
459
461
 
460
462
  Files: lib/jsdoc/ui5/plugin.js
461
463
  Copyright:
462
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
464
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
463
465
  2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
464
466
  License: Apache-2.0
465
467
  Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
package/THIRDPARTY.txt CHANGED
@@ -15,7 +15,7 @@ Contained in: src/sap.m/src/sap/m/_thirdparty/purify.js
15
15
 
16
16
  Library: sap.ui.codeeditor:
17
17
 
18
- Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.13
18
+ Component: Ace (Ajax.org Cloud9 Editor), version: 1.31.1
19
19
  Copyright: 2010, Ajax.org B.V.
20
20
  License: BSD-3-Clause
21
21
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -124,6 +124,7 @@ Copyright: jQuery Foundation and other contributors
124
124
  License: MIT
125
125
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
126
126
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-reporter-junit.js
127
+ src/sap.ui.core/src/sap/ui/qunit/qunit-junit.js
127
128
 
128
129
  Component: cubiq.org - iScroll, version: 4.2.5
129
130
  Copyright: 2012 Matteo Spinelli
@@ -179,7 +180,7 @@ License: Apache-2.0
179
180
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
180
181
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
181
182
 
182
- Component: Unicode Common Locale Data Repository, version: 43
183
+ Component: Unicode Common Locale Data Repository, version: 44
183
184
  Copyright: 1991-2023 Unicode, Inc.
184
185
  License: Unicode-DFS-2015
185
186
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
@@ -334,7 +335,7 @@ License: ISC
334
335
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
335
336
  Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
336
337
 
337
- Component: Time Zone Database, version: 2023c
338
+ Component: Time Zone Database, version: 2023d
338
339
  Copyright: Arthur David Olson, Paul Eggert and other contributors
339
340
  License: LicenseRef-tzdata-PublicDomain
340
341
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
@@ -343,13 +344,7 @@ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
343
344
 
344
345
  Library: sap.ui.documentation:
345
346
 
346
- Component: Esprima, version: 1.2.2
347
- Copyright: 2013 Ariya Hidayat and other contributors
348
- License: BSD-2-Clause
349
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
350
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
351
-
352
- Component: highlight.js, version: 10.4.1
347
+ Component: highlight.js, version: 11.9.0
353
348
  Copyright: 2006-2020, Ivan Sagalaev
354
349
  License: BSD-3-Clause
355
350
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -466,7 +461,7 @@ License: Apache-2.0
466
461
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
467
462
  Contained in: lib/jsdoc/ui5/plugin.js
468
463
 
469
- Component: SAP Theming Base Content, version: 11.6.8
464
+ Component: SAP Theming Base Content, version: 11.10.0
470
465
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
471
466
  License: Apache-2.0
472
467
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -663,38 +658,6 @@ END of license: Apache-2.0
663
658
  =================================
664
659
 
665
660
 
666
- =================================
667
- BEGIN of license: BSD-2-Clause
668
- =================================
669
-
670
- Copyright (c) <year> <owner>. All rights reserved.
671
-
672
- Redistribution and use in source and binary forms, with or without modification,
673
- are permitted provided that the following conditions are met:
674
-
675
- 1. Redistributions of source code must retain the above copyright notice,
676
- this list of conditions and the following disclaimer.
677
-
678
- 2. Redistributions in binary form must reproduce the above copyright notice,
679
- this list of conditions and the following disclaimer in the documentation
680
- and/or other materials provided with the distribution.
681
-
682
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
683
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
684
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
685
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
686
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
687
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
688
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
689
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
690
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
691
- USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
692
-
693
- =================================
694
- END of license: BSD-2-Clause
695
- =================================
696
-
697
-
698
661
  =================================
699
662
  BEGIN of license: BSD-3-Clause
700
663
  =================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.support",
3
- "version": "1.120.6",
3
+ "version": "1.121.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.120.6",
18
- "@openui5/sap.ui.codeeditor": "1.120.6",
19
- "@openui5/sap.ui.core": "1.120.6",
20
- "@openui5/sap.ui.fl": "1.120.6",
21
- "@openui5/sap.ui.layout": "1.120.6"
17
+ "@openui5/sap.m": "1.121.0",
18
+ "@openui5/sap.ui.codeeditor": "1.121.0",
19
+ "@openui5/sap.ui.core": "1.121.0",
20
+ "@openui5/sap.ui.fl": "1.121.0",
21
+ "@openui5/sap.ui.layout": "1.121.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.120.6</version>
9
+ <version>1.121.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.120.6
35
+ * @version 1.121.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.120.6
37
+ * @version 1.121.0
38
38
  * @public
39
39
  */
40
40
  jQuery.sap.support = {
@@ -7,8 +7,8 @@
7
7
  /**
8
8
  * Initialization Code and shared classes of library sap.ui.support.
9
9
  */
10
- sap.ui.define(["sap/ui/core/library"],
11
- function (library1) {
10
+ sap.ui.define(["sap/ui/core/Lib", "sap/ui/base/DataType", "sap/ui/core/library"],
11
+ function (Library, DataType, library1) {
12
12
  "use strict";
13
13
 
14
14
  /**
@@ -23,12 +23,13 @@ sap.ui.define(["sap/ui/core/library"],
23
23
  * @namespace
24
24
  * @alias sap.ui.support
25
25
  * @author SAP SE
26
- * @version 1.120.6
26
+ * @version 1.121.0
27
27
  * @since 1.50
28
28
  * @public
29
29
  */
30
- var thisLib = sap.ui.getCore().initLibrary({
30
+ var thisLib = Library.init({
31
31
  name : "sap.ui.support",
32
+ apiVersion: 2,
32
33
  dependencies : ["sap.ui.core"],
33
34
  types: [
34
35
  "sap.ui.support.Severity"
@@ -37,7 +38,7 @@ sap.ui.define(["sap/ui/core/library"],
37
38
  controls: [],
38
39
  elements: [],
39
40
  noLibraryCSS: true,
40
- version: "1.120.6",
41
+ version: "1.121.0",
41
42
  extensions: {
42
43
  //Configuration used for rule loading of Support Assistant
43
44
  "sap.ui.support": {
@@ -70,6 +71,8 @@ sap.ui.define(["sap/ui/core/library"],
70
71
  Low: "Low"
71
72
  };
72
73
 
74
+ DataType.registerEnum("sap.ui.support.Severity", thisLib.Severity);
75
+
73
76
  /**
74
77
  * Defines the Audiences.
75
78
  * @enum {string}
@@ -8,10 +8,10 @@
8
8
  * An interface to the core to be used by rules
9
9
  */
10
10
  sap.ui.define([
11
- 'sap/ui/core/Component',
12
- 'sap/ui/core/UIArea'
11
+ 'sap/ui/core/ComponentRegistry',
12
+ 'sap/ui/core/UIAreaRegistry'
13
13
  ],
14
- function (Component, UIArea) {
14
+ function (ComponentRegistry, UIAreaRegistry) {
15
15
  "use strict";
16
16
 
17
17
  var coreInstance = null;
@@ -44,14 +44,14 @@ sap.ui.define([
44
44
  * @public
45
45
  */
46
46
  getUIAreas: function () {
47
- return UIArea.registry.all();
47
+ return UIAreaRegistry.all();
48
48
  },
49
49
  /**
50
50
  * Gets the Components from the Core object.
51
51
  * @public
52
52
  */
53
53
  getComponents: function () {
54
- return Component.registry.all();
54
+ return ComponentRegistry.all();
55
55
  },
56
56
  /**
57
57
  * Gets the Models from the Core object.
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  sap.ui.define(
8
- ["sap/base/Log", "sap/ui/core/Component", "sap/ui/core/Element", "sap/ui/core/UIArea"],
9
- function (Log, Component, Element, UIArea) {
8
+ ["sap/base/Log", "sap/ui/core/ComponentRegistry", "sap/ui/core/ElementRegistry", "sap/ui/core/UIAreaRegistry"],
9
+ function (Log, ComponentRegistry, ElementRegistry, UIAreaRegistry) {
10
10
  "use strict";
11
11
 
12
12
  var _context = null,
@@ -14,13 +14,13 @@ sap.ui.define(
14
14
 
15
15
  var globalContext = {
16
16
  setScope: function () {
17
- elements = Element.registry.filter(function() { return true;});
17
+ elements = ElementRegistry.filter(function() { return true;});
18
18
  }
19
19
  };
20
20
 
21
21
  var subtreeContext = {
22
22
  setScope: function () {
23
- var parent = Element.registry.get(_context.parentId);
23
+ var parent = ElementRegistry.get(_context.parentId);
24
24
  //TODO: Handle parent not found
25
25
  elements = parent.findAggregatedObjects(true);
26
26
  }
@@ -30,7 +30,7 @@ sap.ui.define(
30
30
  setScope: function () {
31
31
  var set = {};
32
32
  _context.components.forEach(function (componentId) {
33
- var component = Component.registry.get(componentId),
33
+ var component = ComponentRegistry.get(componentId),
34
34
  aggregations = component.findAggregatedObjects(true);
35
35
 
36
36
  aggregations.forEach(function (agg) {
@@ -242,9 +242,9 @@ sap.ui.define(
242
242
  */
243
243
  getPublicElements: function () {
244
244
  var aPublicElements = [];
245
- var mUIAreas = UIArea.registry.all();
245
+ var mUIAreas = UIAreaRegistry.all();
246
246
 
247
- Component.registry.forEach(function(oComponent) {
247
+ ComponentRegistry.forEach(function(oComponent) {
248
248
  aPublicElements = aPublicElements.concat(
249
249
  getPublicElementsInside(oComponent)
250
250
  );
@@ -151,7 +151,7 @@ function (library, IssueManager, RuleSetLoader, StringHistoryFormatter, AbapHist
151
151
  return oContext._oDataCollector.getTechInfoJSON().then(function (oTechData) {
152
152
  var mIssues = IssueManager.groupIssues(IssueManager.getIssuesModel()),
153
153
  aIssues = IssueManager.getIssues(),
154
- mRules = RuleSetLoader.getRuleSets(),
154
+ mRuleLibs = RuleSetLoader.getRuleLibs(),
155
155
  mSelectedRules = oContext._oSelectedRulesIds,
156
156
  oSelectedRulePreset = oContext._oSelectedRulePreset;
157
157
 
@@ -161,7 +161,7 @@ function (library, IssueManager, RuleSetLoader, StringHistoryFormatter, AbapHist
161
161
  onlyIssues: aIssues,
162
162
  application: oContext._oDataCollector.getAppInfo(),
163
163
  technical: oTechData,
164
- rules: IssueManager.getRulesViewModel(mRules, mSelectedRules, mIssues),
164
+ rules: IssueManager.getRulesViewModel(mRuleLibs, mSelectedRules, mIssues),
165
165
  rulePreset: oSelectedRulePreset,
166
166
  scope: {
167
167
  executionScope: {
@@ -4,8 +4,8 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- sap.ui.define(["sap/base/util/deepExtend", "sap/ui/base/Object", "sap/ui/support/library", "sap/ui/support/supportRules/Constants"],
8
- function (deepExtend, BaseObject, library, constants) {
7
+ sap.ui.define(["sap/base/util/deepExtend", "sap/ui/base/Object", "sap/ui/core/Element", "sap/ui/support/library", "sap/ui/support/supportRules/Constants"],
8
+ function(deepExtend, BaseObject, Element, library, constants) {
9
9
  "use strict";
10
10
  /**
11
11
  * Issues stored in the IssueManager.
@@ -20,7 +20,7 @@ sap.ui.define(["sap/base/util/deepExtend", "sap/ui/base/Object", "sap/ui/support
20
20
  * @returns {object} Converted Issue Object
21
21
  */
22
22
  var _convertIssueToViewModel = function (oIssue) {
23
- var element = sap.ui.getCore().byId(oIssue.context.id),
23
+ var element = Element.getElementById(oIssue.context.id),
24
24
  className = "";
25
25
 
26
26
  if (oIssue.context.id === "WEBPAGE") {
@@ -107,24 +107,24 @@ sap.ui.define(["sap/base/util/deepExtend", "sap/ui/base/Object", "sap/ui/support
107
107
  /**
108
108
  * Gets rules and issues, and converts each rule to a ruleViewModel - parameters should be converted as specified beforehand.
109
109
  * @public
110
- * @param {object} rules All the rules from _mRulesets
110
+ * @param {object} ruleLibs All rule libraries
111
111
  * @param {array} selectedRulesIDs The rule ID's of the selected rules.
112
112
  * @param {array} issues The issues to map to the rulesViewModel
113
113
  * The issues passes should be grouped and in ViewModel format.
114
114
  * @returns {object} rulesViewModel All the rules with issues, selected flag and issueCount properties
115
115
  * The issues are in ViewModel format.
116
116
  */
117
- getRulesViewModel: function (rules, selectedRulesIDs, issues) {
117
+ getRulesViewModel: function (ruleLibs, selectedRulesIDs, issues) {
118
118
  var rulesViewModel = {},
119
119
  issueCount = 0,
120
120
  group = {},
121
121
  library = {},
122
122
  rule = {},
123
- rulesCopy = deepExtend({}, rules),
123
+ ruleLibsCopy = deepExtend({}, ruleLibs),
124
124
  issuesCopy = deepExtend({}, issues);
125
125
 
126
- for (group in rulesCopy) {
127
- rulesViewModel[group] = deepExtend({}, rulesCopy[group].ruleset._mRules);
126
+ for (group in ruleLibsCopy) {
127
+ rulesViewModel[group] = deepExtend({}, ruleLibsCopy[group].ruleset._mRules);
128
128
  library = rulesViewModel[group];
129
129
 
130
130
  // Create non-enumerable properties
@@ -141,7 +141,7 @@ sap.ui.define(["sap/base/util/deepExtend", "sap/ui/base/Object", "sap/ui/support
141
141
  value: 0
142
142
  });
143
143
 
144
- for (rule in rulesCopy[group].ruleset._mRules) {
144
+ for (rule in ruleLibsCopy[group].ruleset._mRules) {
145
145
  library[rule] = deepExtend([], library[rule]);
146
146
 
147
147
  // Create non-enumerable properties
@@ -9,7 +9,9 @@ sap.ui.define([
9
9
  "sap/ui/base/ManagedObject",
10
10
  "sap/ui/core/Core",
11
11
  "sap/ui/core/Element",
12
- "sap/ui/core/Component",
12
+ "sap/ui/core/ElementRegistry",
13
+ "sap/ui/core/ComponentRegistry",
14
+ "sap/ui/core/Lib",
13
15
  "sap/ui/core/Supportability",
14
16
  "sap/ui/support/supportRules/Analyzer",
15
17
  "sap/ui/support/supportRules/CoreFacade",
@@ -24,12 +26,14 @@ sap.ui.define([
24
26
  "sap/ui/support/supportRules/RuleSetLoader",
25
27
  "sap/ui/support/supportRules/RuleSerializer",
26
28
  "sap/ui/support/library"
27
- ], function (
29
+ ], function(
28
30
  Log,
29
31
  ManagedObject,
30
32
  Core,
31
33
  Element,
32
- Component,
34
+ ElementRegistry,
35
+ ComponentRegistry,
36
+ Library,
33
37
  Supportability,
34
38
  Analyzer,
35
39
  CoreFacade,
@@ -118,12 +122,7 @@ sap.ui.define([
118
122
  }
119
123
 
120
124
  this._aSupportModeConfig = aSupportModeConfig;
121
-
122
- if (Core.isInitialized()) {
123
- this._initPlugin();
124
- } else {
125
- Core.attachInit(this._initPlugin.bind(this));
126
- }
125
+ Core.ready(this._initPlugin.bind(this));
127
126
  };
128
127
 
129
128
  Main.prototype._initPlugin = function () {
@@ -144,7 +143,7 @@ sap.ui.define([
144
143
  this._oCoreFacade = CoreFacade(Core);
145
144
  this._oExecutionScope = null;
146
145
  this._createElementSpies();
147
- Core.attachLibraryChanged(RuleSetLoader._onLibraryChanged.bind(RuleSetLoader));
146
+ Library.attachLibraryChanged(RuleSetLoader._onLibraryChanged.bind(RuleSetLoader));
148
147
 
149
148
  // Make sure that we load UI frame, when no parameter supplied
150
149
  // but tools is required to load, or when parameter is there
@@ -209,7 +208,7 @@ sap.ui.define([
209
208
 
210
209
  CommunicationBus.subscribe(channelNames.VERIFY_CREATE_RULE, function (tempRuleSerialized) {
211
210
  var oTempRule = RuleSerializer.deserialize(tempRuleSerialized),
212
- oTempRuleSet = RuleSetLoader.getRuleSet(constants.TEMP_RULESETS_NAME).ruleset,
211
+ oTempRuleSet = RuleSetLoader.getRuleLib(constants.TEMP_RULESETS_NAME).ruleset,
213
212
  sResult = oTempRuleSet.addRule(oTempRule);
214
213
 
215
214
  CommunicationBus.publish(channelNames.VERIFY_RULE_CREATE_RESULT, {
@@ -221,7 +220,7 @@ sap.ui.define([
221
220
 
222
221
  CommunicationBus.subscribe(channelNames.VERIFY_UPDATE_RULE, function (data) {
223
222
  var oTempRule = RuleSerializer.deserialize(data.updateObj),
224
- oTempRuleSet = RuleSetLoader.getRuleSet(constants.TEMP_RULESETS_NAME).ruleset,
223
+ oTempRuleSet = RuleSetLoader.getRuleLib(constants.TEMP_RULESETS_NAME).ruleset,
225
224
  sResult = oTempRuleSet.updateRule(data.oldId, oTempRule);
226
225
 
227
226
  CommunicationBus.publish(channelNames.VERIFY_RULE_UPDATE_RESULT, {
@@ -232,7 +231,7 @@ sap.ui.define([
232
231
 
233
232
  CommunicationBus.subscribe(channelNames.DELETE_RULE, function (data) {
234
233
  var oTempRule = RuleSerializer.deserialize(data),
235
- oTempRuleSet = RuleSetLoader.getRuleSet(constants.TEMP_RULESETS_NAME).ruleset;
234
+ oTempRuleSet = RuleSetLoader.getRuleLib(constants.TEMP_RULESETS_NAME).ruleset;
236
235
 
237
236
  oTempRuleSet.removeRule(oTempRule);
238
237
  }, this);
@@ -252,7 +251,7 @@ sap.ui.define([
252
251
  }, this);
253
252
 
254
253
  CommunicationBus.subscribe(channelNames.HIGHLIGHT_ELEMENT, function (id) {
255
- var $domElem = Core.byId(id).$();
254
+ var $domElem = Element.getElementById(id).$();
256
255
  $domElem.css("background-color", "red");
257
256
  }, this);
258
257
 
@@ -274,7 +273,7 @@ sap.ui.define([
274
273
  }, this);
275
274
 
276
275
  CommunicationBus.subscribe(channelNames.GET_AVAILABLE_COMPONENTS, function () {
277
- CommunicationBus.publish(channelNames.POST_AVAILABLE_COMPONENTS, Object.keys(Component.registry.all()));
276
+ CommunicationBus.publish(channelNames.POST_AVAILABLE_COMPONENTS, Object.keys(ComponentRegistry.all()));
278
277
  }, this);
279
278
 
280
279
  CommunicationBus.subscribe(channelNames.ON_ANALYZE_REQUEST, function (data) {
@@ -434,7 +433,7 @@ sap.ui.define([
434
433
  }
435
434
 
436
435
  for (i = 0; i < aSelectors.length; i++) {
437
- if (Core.byId(aSelectors[i])) {
436
+ if (Element.getElementById(aSelectors[i])) {
438
437
  bHasValidSelector = true;
439
438
  break;
440
439
  }
@@ -485,7 +484,7 @@ sap.ui.define([
485
484
  return;
486
485
  }
487
486
 
488
- oRuleset = RuleSetLoader.getRuleSet(oRuleDescriptor.libName);
487
+ oRuleset = RuleSetLoader.getRuleLib(oRuleDescriptor.libName);
489
488
 
490
489
  if (!oRuleset || !oRuleset.ruleset) {
491
490
  Log.error("[" + constants.SUPPORT_ASSISTANT_NAME + "] Could not find Ruleset for library " + oRuleDescriptor.libName);
@@ -576,7 +575,7 @@ sap.ui.define([
576
575
  * @param {object} oContextElements Contains all context elements from the element tree
577
576
  */
578
577
  Main.prototype._setContextElementReferences = function (oContextElements) {
579
- var coreElements = Element.registry.all();
578
+ var coreElements = ElementRegistry.all();
580
579
 
581
580
  for (var elementId in oContextElements) {
582
581
  var element = oContextElements[elementId],
@@ -634,7 +633,7 @@ sap.ui.define([
634
633
  this._oExecutionScope.getElements().forEach(function (element) {
635
634
  if (element instanceof sap.ui.core.ComponentContainer) {
636
635
  var componentId = element.getComponent(),
637
- component = Component.registry.get(componentId);
636
+ component = ComponentRegistry.get(componentId);
638
637
  if (component) {
639
638
  copyElementsFromCoreObject([component], "sap-ui-component");
640
639
  }
@@ -650,13 +649,13 @@ sap.ui.define([
650
649
 
651
650
  case "subtree":
652
651
  var parentId = this._oExecutionScope._getContext().parentId;
653
- copyElementsFromCoreObject([ Element.registry.get(parentId) ]);
652
+ copyElementsFromCoreObject([ ElementRegistry.get(parentId) ]);
654
653
  break;
655
654
 
656
655
  case "components":
657
656
  var components = this._oExecutionScope._getContext().components;
658
657
  components.forEach(function (componentId) {
659
- copyElementsFromCoreObject([Component.registry.get(componentId)], "sap-ui-component");
658
+ copyElementsFromCoreObject([ComponentRegistry.get(componentId)], "sap-ui-component");
660
659
  });
661
660
  break;
662
661
  }
@@ -674,7 +673,7 @@ sap.ui.define([
674
673
  Main.prototype._getReportData = function (oReportConstants) {
675
674
  return this._oDataCollector.getTechInfoJSON().then(function (oTechData) {
676
675
  var mIssues = IssueManager.groupIssues(IssueManager.getIssuesModel()),
677
- mRules = RuleSetLoader.getRuleSets(),
676
+ mRuleLibs = RuleSetLoader.getRuleLibs(),
678
677
  mSelectedRules = this._oSelectedRulesIds,
679
678
  oSelectedRulePreset = this._oSelectedRulePreset || null;
680
679
 
@@ -682,7 +681,7 @@ sap.ui.define([
682
681
  issues: mIssues,
683
682
  technical: oTechData,
684
683
  application: this._oDataCollector.getAppInfo(),
685
- rules: IssueManager.getRulesViewModel(mRules, mSelectedRules, mIssues),
684
+ rules: IssueManager.getRulesViewModel(mRuleLibs, mSelectedRules, mIssues),
686
685
  rulePreset: oSelectedRulePreset,
687
686
  scope: {
688
687
  executionScope: this._oExecutionScope,
@@ -758,7 +757,7 @@ sap.ui.define([
758
757
  oRule.selected = oRule.selected !== undefined ? oRule.selected : true;
759
758
  oRule.async = oRule.async || false;
760
759
 
761
- var sResult = RuleSetLoader.getRuleSet(constants.TEMP_RULESETS_NAME).ruleset.addRule(oRule);
760
+ var sResult = RuleSetLoader.getRuleLib(constants.TEMP_RULESETS_NAME).ruleset.addRule(oRule);
762
761
 
763
762
  CommunicationBus.publish(channelNames.VERIFY_RULE_CREATE_RESULT, {
764
763
  result: sResult,
@@ -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.120.6
37
+ * @version 1.121.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/Lib",
12
13
  "sap/ui/core/Supportability",
13
14
  "sap/ui/support/supportRules/RuleSet",
14
15
  "sap/ui/support/supportRules/CommunicationBus",
@@ -18,11 +19,12 @@ sap.ui.define([
18
19
  "sap/ui/support/supportRules/util/EvalUtils",
19
20
  "sap/ui/support/supportRules/util/Utils",
20
21
  "sap/ui/thirdparty/jquery"
21
- ], function (
22
+ ], function(
22
23
  Log,
23
24
  extend,
24
25
  ObjectPath,
25
26
  VersionInfo,
27
+ Lib,
26
28
  Supportability,
27
29
  RuleSet,
28
30
  CommunicationBus,
@@ -32,7 +34,7 @@ sap.ui.define([
32
34
  EvalUtils,
33
35
  Utils,
34
36
  jQuery
35
- ) {
37
+ ) {
36
38
  "use strict";
37
39
 
38
40
  // can be put in a util container
@@ -62,19 +64,19 @@ sap.ui.define([
62
64
  */
63
65
  var RuleSetLoader = {};
64
66
 
65
- RuleSetLoader._mRuleSets = {};
66
- RuleSetLoader._mRequireLibraryRuleSet = {};
67
+ RuleSetLoader._mRuleLibs = {};
68
+ RuleSetLoader._mRequireRuleLibs = {};
67
69
 
68
- RuleSetLoader.getRuleSets = function () {
69
- return this._mRuleSets;
70
+ RuleSetLoader.getRuleLibs = function () {
71
+ return this._mRuleLibs;
70
72
  };
71
73
 
72
- RuleSetLoader.addRuleSet = function (sLibName, oRuleSet) {
73
- this._mRuleSets[sLibName] = oRuleSet;
74
+ RuleSetLoader.addRuleLib = function (sLibName, oRuleLib) {
75
+ this._mRuleLibs[sLibName] = oRuleLib;
74
76
  };
75
77
 
76
- RuleSetLoader.getRuleSet = function (sLibName) {
77
- return this._mRuleSets[sLibName];
78
+ RuleSetLoader.getRuleLib = function (sLibName) {
79
+ return this._mRuleLibs[sLibName];
78
80
  };
79
81
 
80
82
  /**
@@ -86,7 +88,7 @@ sap.ui.define([
86
88
  * @returns {Promise<CommunicationBus>} mainPromise Has promises for all libraries regarding rulesets in the SupportAssistant
87
89
  */
88
90
  RuleSetLoader._fetchSupportRuleSets = function (fnReadyCbk, mLibraries) {
89
- var mLoadedLibraries = mLibraries || sap.ui.getCore().getLoadedLibraries(),
91
+ var mLoadedLibraries = mLibraries || Lib.all(),
90
92
  oLibNamesWithRulesPromise = this._fetchLibraryNamesWithSupportRules(mLoadedLibraries);
91
93
 
92
94
  // VersionInfo.load() returns the web application's version.
@@ -98,12 +100,12 @@ sap.ui.define([
98
100
  return oLibNamesWithRulesPromise;
99
101
  })
100
102
  .then(function (oLibNamesWithRules) {
101
- return Promise.all(this._fetchLibraryFiles(oLibNamesWithRules, this._fetchRuleSet));
103
+ return Promise.all(this._fetchLibraryFiles(oLibNamesWithRules, this._fetchRuleLib));
102
104
  }.bind(this))
103
105
  .then(function () {
104
106
  this._bRulesCreated = true;
105
107
  CommunicationBus.publish(channelNames.UPDATE_SUPPORT_RULES, {
106
- sRuleSet: RuleSerializer.serialize(this._mRuleSets),
108
+ sRuleSet: RuleSerializer.serialize(this._mRuleLibs),
107
109
  oVersionInfo: RuleSet.versionInfo
108
110
  });
109
111
 
@@ -120,13 +122,13 @@ sap.ui.define([
120
122
  */
121
123
  RuleSetLoader.loadAdditionalRuleSets = function (aLibNames) {
122
124
  var that = this,
123
- aLibFetchPromises = that._fetchLibraryFiles(aLibNames, that._fetchRuleSet);
125
+ aLibFetchPromises = that._fetchLibraryFiles(aLibNames, that._fetchRuleLib);
124
126
 
125
127
  Promise.all(aLibFetchPromises).then(function () {
126
128
  that._bRulesCreated = true;
127
129
  CommunicationBus.publish(channelNames.UPDATE_SUPPORT_RULES,
128
130
  {
129
- sRuleSet: RuleSerializer.serialize(that._mRuleSets)
131
+ sRuleSet: RuleSerializer.serialize(that._mRuleLibs)
130
132
  });
131
133
  });
132
134
  };
@@ -210,10 +212,9 @@ sap.ui.define([
210
212
  * @private
211
213
  * @param {string[]} aLibNames Contains all library names for the given state
212
214
  * @param {function} fnProcessFile Callback that publishes all rules within each library in the SupportAssistant
213
- * @param {boolean} bSupressProgressReporting Flag wether to report ruleset loading to UI. Default is falsy
214
215
  * @returns {Promise[]} Promises for each library in the SupportAssistant
215
216
  */
216
- RuleSetLoader._fetchLibraryFiles = function (aLibNames, fnProcessFile, bSupressProgressReporting) {
217
+ RuleSetLoader._fetchLibraryFiles = function (aLibNames, fnProcessFile) {
217
218
  var aAjaxPromises = [],
218
219
  supportModulePath = sap.ui.require.toUrl("sap/ui/support"),
219
220
  supportModulesRoot = supportModulePath.replace("sap/ui/support", ""),
@@ -240,20 +241,20 @@ sap.ui.define([
240
241
  aLibNames.publicRules.forEach(function (oLibName) {
241
242
  var customizableLibName = this._registerLibraryPath(oLibName, supportModulePath, supportModulesRoot).customizableLibName;
242
243
 
243
- if (this._mRequireLibraryRuleSet[customizableLibName]) {
244
+ if (this._mRequireRuleLibs[customizableLibName]) {
244
245
  return;
245
246
  }
246
247
 
247
- var oLibPublicRulesPromise = this._requireRuleSet(customizableLibName, fnProcessFile);
248
+ var oLibPublicRulesPromise = this._requireRuleLib(customizableLibName, fnProcessFile);
248
249
 
249
250
  // Do not report progress if in silent mode
250
- if (!bSilentMode && !bSupressProgressReporting) {
251
+ if (!bSilentMode) {
251
252
  oLibPublicRulesPromise.then(function () {
252
253
  reportCurrentLoadingProgress();
253
254
  });
254
255
  }
255
256
 
256
- this._mRequireLibraryRuleSet[customizableLibName] = oLibPublicRulesPromise;
257
+ this._mRequireRuleLibs[customizableLibName] = oLibPublicRulesPromise;
257
258
  aAjaxPromises.push(oLibPublicRulesPromise);
258
259
  }.bind(this));
259
260
  }
@@ -263,20 +264,20 @@ sap.ui.define([
263
264
  aLibNames.internalRules.forEach(function (oLibName) {
264
265
  var internalLibName = this._registerLibraryPath(oLibName, supportModulePath, supportModulesRoot).internalLibName;
265
266
 
266
- if (this._mRequireLibraryRuleSet[internalLibName]) {
267
+ if (this._mRequireRuleLibs[internalLibName]) {
267
268
  return;
268
269
  }
269
270
 
270
- var oLibPrivateRulesPromise = this._requireRuleSet(internalLibName, fnProcessFile);
271
+ var oLibPrivateRulesPromise = this._requireRuleLib(internalLibName, fnProcessFile);
271
272
 
272
273
  // Do not report progress if in silent mode
273
- if (!bSilentMode && !bSupressProgressReporting) {
274
+ if (!bSilentMode) {
274
275
  oLibPrivateRulesPromise.then(function () {
275
276
  reportCurrentLoadingProgress();
276
277
  });
277
278
  }
278
279
 
279
- this._mRequireLibraryRuleSet[internalLibName] = oLibPrivateRulesPromise;
280
+ this._mRequireRuleLibs[internalLibName] = oLibPrivateRulesPromise;
280
281
  aAjaxPromises.push(oLibPrivateRulesPromise);
281
282
  }.bind(this));
282
283
  }
@@ -328,7 +329,7 @@ sap.ui.define([
328
329
  * @return {Promise} Promise for the library in the SupportAssistant
329
330
  * @private
330
331
  */
331
- RuleSetLoader._requireRuleSet = function (sLibraryName, fnProcessFile) {
332
+ RuleSetLoader._requireRuleLib = function (sLibraryName, fnProcessFile) {
332
333
  var that = this;
333
334
 
334
335
  return new Promise(function (resolve) {
@@ -350,10 +351,10 @@ sap.ui.define([
350
351
  * @param {string} sLibName Name of the library from which to fetch a ruleset
351
352
  * @param {object} oLibSupport Export of the library.support file
352
353
  */
353
- RuleSetLoader._fetchRuleSet = function (sLibName, oLibSupport) {
354
+ RuleSetLoader._fetchRuleLib = function (sLibName, oLibSupport) {
354
355
  try {
355
356
  var sNormalizedLibName = sLibName.replace("." + sCustomSuffix, "").replace(".internal", ""),
356
- oRuleSet = this._mRuleSets[sNormalizedLibName];
357
+ oRuleLib = this._mRuleLibs[sNormalizedLibName];
357
358
 
358
359
  /**
359
360
  * @deprecated As of 1.120
@@ -369,24 +370,23 @@ sap.ui.define([
369
370
 
370
371
  if (!oLibSupport) {
371
372
  // This case usually happens when the library flag bExport is set to true.
372
- throw "The library.support file was not fetched successfully.";
373
+ throw "The library.support file was not fetched successfully or doesn't export a value.";
373
374
  }
374
375
 
375
376
  // ruleset already exists, just merge the new rules into it
376
- if (oRuleSet) {
377
- oRuleSet.ruleset.mergeRuleSet(oLibSupport.ruleset);
377
+ if (oRuleLib) {
378
+ oRuleLib.ruleset.mergeRuleSet(oLibSupport.ruleset);
378
379
  return;
379
380
  }
380
381
 
381
382
  // create the ruleset for the first time
382
383
  if (oLibSupport.ruleset instanceof RuleSet) {
383
- oRuleSet = extend({}, oLibSupport);
384
+ oRuleLib = extend({}, oLibSupport);
384
385
  } else {
385
- oRuleSet = this._createRuleSet(oLibSupport);
386
+ oRuleLib = this._createRuleLib(oLibSupport);
386
387
  }
387
388
 
388
- this._mRuleSets[sNormalizedLibName] = oRuleSet;
389
-
389
+ this.addRuleLib(sNormalizedLibName, oRuleLib);
390
390
  } catch (e) {
391
391
  Log.error("[" + constants.SUPPORT_ASSISTANT_NAME + "] Failed to load RuleSet for " + sLibName + " library", e);
392
392
  }
@@ -463,9 +463,9 @@ sap.ui.define([
463
463
  *
464
464
  * @private
465
465
  * @param {object} oLibrarySupport Object to be used for RuleSet creation
466
- * @returns {object} The RuleSet added to _mRuleSets
466
+ * @returns {object} The RuleSet added to _mRuleLibs
467
467
  */
468
- RuleSetLoader._createRuleSet = function (oLibrarySupport) {
468
+ RuleSetLoader._createRuleLib = function (oLibrarySupport) {
469
469
  var oLib = {
470
470
  name: oLibrarySupport.name,
471
471
  niceName: oLibrarySupport.niceName
@@ -489,8 +489,8 @@ sap.ui.define([
489
489
  RuleSetLoader.getAllRules = function () {
490
490
  var mRules = {};
491
491
 
492
- Object.keys(this._mRuleSets).map(function (sLibName) {
493
- mRules = extend(mRules, this._mRuleSets[sLibName].ruleset.getRules());
492
+ Object.keys(this._mRuleLibs).map(function (sLibName) {
493
+ mRules = extend(mRules, this._mRuleLibs[sLibName].ruleset.getRules());
494
494
  }, this);
495
495
 
496
496
  return mRules;
@@ -513,7 +513,7 @@ sap.ui.define([
513
513
  };
514
514
 
515
515
  if (EvalUtils.isEvalAllowed()) {
516
- RuleSetLoader.addRuleSet(constants.TEMP_RULESETS_NAME, {
516
+ RuleSetLoader.addRuleLib(constants.TEMP_RULESETS_NAME, {
517
517
  lib: {
518
518
  name: constants.TEMP_RULESETS_NAME
519
519
  },
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  *
54
54
  * @name sap.ui.support.Storage
55
55
  * @author SAP SE.
56
- * @version 1.120.6
56
+ * @version 1.121.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.120.6
27
+ * @version 1.121.0
28
28
  * @private
29
29
  */
30
30
  var WindowCommunicationBus = BaseObject.extend("sap.ui.support.supportRules.WindowCommunicationBus", {
@@ -8,17 +8,17 @@
8
8
  * Provides methods for information retrieval from the core.
9
9
  */
10
10
  sap.ui.define([
11
- "sap/ui/core/Core",
12
11
  "sap/ui/VersionInfo",
13
12
  "sap/base/util/LoaderExtensions",
14
13
  "sap/base/security/encodeXML",
15
- "sap/ui/core/Component",
16
- "sap/ui/core/Configuration",
14
+ "sap/ui/core/ComponentRegistry",
15
+ "sap/ui/core/Lib",
16
+ "sap/ui/core/Theming",
17
17
  "sap/ui/core/theming/ThemeManager",
18
18
  "sap/ui/core/support/ToolsAPI",
19
19
  "sap/ui/thirdparty/URI"
20
20
  ],
21
- function (Core, VersionInfo, LoaderExtensions, encodeXML, Component, Configuration, ThemeManager, ToolsAPI, URI) {
21
+ function (VersionInfo, LoaderExtensions, encodeXML, ComponentRegistry, Lib, Theming, ThemeManager, ToolsAPI, URI) {
22
22
  "use strict";
23
23
 
24
24
  /**
@@ -75,7 +75,7 @@ sap.ui.define([
75
75
  */
76
76
  DataCollector.prototype.getAppInfo = function() {
77
77
  var aAppInfos = [];
78
- Component.registry.forEach(function(oComponent) {
78
+ ComponentRegistry.forEach(function(oComponent) {
79
79
  var oSapApp = oComponent.getManifestEntry("sap.app"),
80
80
  oSapFiori = oComponent.getManifestEntry("sap.fiori");
81
81
 
@@ -134,7 +134,7 @@ sap.ui.define([
134
134
  oTechData.resourcePaths = aResults;
135
135
 
136
136
  //add theme paths
137
- var mLibraries = Core.getLoadedLibraries();
137
+ var mLibraries = Lib.all();
138
138
  aResults = [];
139
139
  for (var n in mLibraries) {
140
140
  if (n === "") {
@@ -143,9 +143,9 @@ sap.ui.define([
143
143
  // (e.g. "MyControl" instead of "com.example.MyControl").
144
144
  continue;
145
145
  }
146
- var sPath = ThemeManager._getThemePath(n, Configuration.getTheme());
146
+ var sPath = ThemeManager._getThemePath(n, Theming.getTheme());
147
147
  aResults.push({
148
- theme : Configuration.getTheme(),
148
+ theme : Theming.getTheme(),
149
149
  library: n,
150
150
  relativePath: sPath,
151
151
  absolutePath: URI(sPath).absoluteTo(document.location.origin + document.location.pathname).toString()
@@ -11,7 +11,7 @@ sap.ui.define(["sap/ui/core/Core",
11
11
  Page) {
12
12
  "use strict";
13
13
 
14
- Core.attachInit(function () {
14
+ Core.ready(function () {
15
15
 
16
16
  XMLView.create({
17
17
  viewName: "sap.ui.support.supportRules.ui.views.Main"
@@ -13,6 +13,7 @@ sap.ui.define([
13
13
  "../models/PresetsUtils",
14
14
  "../models/CustomJSONListSelection",
15
15
  "sap/base/util/deepExtend",
16
+ "sap/ui/core/Element",
16
17
  "sap/ui/model/json/JSONModel",
17
18
  "sap/ui/model/BindingMode",
18
19
  "sap/ui/core/Fragment",
@@ -28,7 +29,7 @@ sap.ui.define([
28
29
  "sap/ui/support/supportRules/Constants",
29
30
  "sap/ui/support/supportRules/Storage",
30
31
  "sap/ui/support/supportRules/util/EvalUtils"
31
- ], function (
32
+ ], function(
32
33
  BaseController,
33
34
  PresetsController,
34
35
  SharedModel,
@@ -37,6 +38,7 @@ sap.ui.define([
37
38
  PresetsUtils,
38
39
  CustomJSONListSelection,
39
40
  deepExtend,
41
+ Element,
40
42
  JSONModel,
41
43
  BindingMode,
42
44
  Fragment,
@@ -105,18 +107,7 @@ sap.ui.define([
105
107
 
106
108
  onAfterRendering: function () {
107
109
  if (!this.bInitFired) {
108
- var fnThemeChangeHandler = function () {
109
- CommunicationBus.publish(channelNames.ON_INIT_ANALYSIS_CTRL);
110
- sap.ui.getCore().detachThemeChanged(fnThemeChangeHandler);
111
- };
112
-
113
- // If the theme is already applied themeChanged event won't be fired.
114
- if (sap.ui.getCore().isThemeApplied()) {
115
- CommunicationBus.publish(channelNames.ON_INIT_ANALYSIS_CTRL);
116
- } else {
117
- sap.ui.getCore().attachThemeChanged(fnThemeChangeHandler);
118
- }
119
-
110
+ CommunicationBus.publish(channelNames.ON_INIT_ANALYSIS_CTRL);
120
111
  this.bInitFired = true;
121
112
  }
122
113
  },
@@ -353,7 +344,7 @@ sap.ui.define([
353
344
  }
354
345
 
355
346
  if (ctx.type === "components") {
356
- var selectionContainer = sap.ui.getCore().byId("componentsSelectionContainer"),
347
+ var selectionContainer = Element.getElementById("componentsSelectionContainer"),
357
348
  cbs = selectionContainer.getContent();
358
349
 
359
350
  ctx.components = [];
@@ -511,7 +502,7 @@ sap.ui.define([
511
502
  },
512
503
 
513
504
  _hasSelectedComponent: function () {
514
- var aAllComponentElements = sap.ui.getCore().byId("componentsSelectionContainer").getContent();
505
+ var aAllComponentElements = Element.getElementById("componentsSelectionContainer").getContent();
515
506
  function isSelected(oComponent) {
516
507
  return oComponent.getSelected();
517
508
  }
@@ -545,7 +536,7 @@ sap.ui.define([
545
536
  radioKey = source.getCustomData()[0].getValue(),
546
537
  execScope = this.model.getProperty("/executionScopes")[radioKey];
547
538
  if (radioKey === "components" && !this._hasSelectedComponent()) {
548
- var aComponents = sap.ui.getCore().byId("componentsSelectionContainer").getContent();
539
+ var aComponents = Element.getElementById("componentsSelectionContainer").getContent();
549
540
  if (aComponents.length > 0) {
550
541
  aComponents[0].setSelected(true);
551
542
  this.onScopeComponentSelect(null);
@@ -749,7 +740,7 @@ sap.ui.define([
749
740
 
750
741
  goToCreateRule: function () {
751
742
  var navCont = this.byId("rulesNavContainer");
752
- navCont.to(sap.ui.getCore().byId("rulesCreatePage"), "show");
743
+ navCont.to(Element.getElementById("rulesCreatePage"), "show");
753
744
  },
754
745
 
755
746
  checkFunctionString: function (functionString) {
@@ -896,7 +887,7 @@ sap.ui.define([
896
887
  this.model.setProperty("/editRuleSource", selectedRule);
897
888
  this.model.setProperty("/editRule", deepExtend({}, selectedRule));
898
889
  var navCont = this.byId("rulesNavContainer");
899
- navCont.to(sap.ui.getCore().byId("ruleUpdatePage"), "show");
890
+ navCont.to(Element.getElementById("ruleUpdatePage"), "show");
900
891
  },
901
892
 
902
893
  deleteTemporaryRule: function (event) {
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
+ "sap/ui/core/Element",
8
9
  "sap/ui/support/supportRules/ui/controllers/BaseController",
9
10
  "sap/ui/support/supportRules/CommunicationBus",
10
11
  "sap/ui/support/supportRules/ui/models/SharedModel",
@@ -14,7 +15,8 @@ sap.ui.define([
14
15
  "sap/ui/support/supportRules/Constants",
15
16
  "sap/m/OverflowToolbarAssociativePopoverControls",
16
17
  "sap/base/util/deepExtend"
17
- ], function (
18
+ ], function(
19
+ Element,
18
20
  BaseController,
19
21
  CommunicationBus,
20
22
  SharedModel,
@@ -169,7 +171,7 @@ sap.ui.define([
169
171
 
170
172
  },
171
173
  openDocumentation: function (oEvent) {
172
- var link = sap.ui.getCore().byId(oEvent.mParameters.id),
174
+ var link = Element.getElementById(oEvent.mParameters.id),
173
175
  url = link.getBindingContext().getProperty("href");
174
176
  CommunicationBus.publish(channelNames.OPEN_URL, url);
175
177
  },
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
+ "sap/ui/core/Element",
8
9
  "sap/ui/support/supportRules/ui/controllers/BaseController",
9
10
  "sap/ui/support/supportRules/ui/models/SelectionUtils",
10
11
  "sap/ui/support/supportRules/ui/models/PresetsUtils",
@@ -17,7 +18,8 @@ sap.ui.define([
17
18
  "sap/base/util/deepExtend",
18
19
  "sap/ui/core/library",
19
20
  "sap/ui/core/date/UI5Date"
20
- ], function (
21
+ ], function(
22
+ Element,
21
23
  BaseController,
22
24
  SelectionUtils,
23
25
  PresetsUtils,
@@ -91,7 +93,7 @@ sap.ui.define([
91
93
  *
92
94
  * @extends sap.ui.support.supportRules.ui.controllers.BaseController
93
95
  * @author SAP SE
94
- * @version 1.120.6
96
+ * @version 1.121.0
95
97
  * @private
96
98
  * @alias sap.ui.support.supportRules.ui.controllers.PresetsController
97
99
  */
@@ -162,7 +164,7 @@ sap.ui.define([
162
164
  var sPath = oEvent.getSource().getBindingContext().getPath(),
163
165
  oDeletePreset = this.oModel.getProperty(sPath),
164
166
  aCustomPresets = this.oModel.getProperty("/customPresets"),
165
- sDeletedItemId = oEvent.getSource().$().closest(".sapMLIB").attr("id");
167
+ sDeletedItemId = oEvent.getSource().getDomRef().closest(".sapMLIB").getAttribute("id");
166
168
 
167
169
  // use the path to find and delete
168
170
  var aPresets = this.oModel.getProperty("/selectionPresets");
@@ -196,7 +198,7 @@ sap.ui.define([
196
198
  // deleting item fires tap event
197
199
  // for the next item in the list which needs to be suppressed
198
200
  if (iDeletedPresetIndex !== aPresets.length) {
199
- var oNextListItem = sap.ui.getCore().byId(sDeletedItemId),
201
+ var oNextListItem = Element.getElementById(sDeletedItemId),
200
202
  fnOntap = oNextListItem.ontap;
201
203
 
202
204
  oNextListItem.ontap = function() {
@@ -1,22 +0,0 @@
1
- Copyright (c) <year> <owner>. All rights reserved.
2
-
3
- Redistribution and use in source and binary forms, with or without modification,
4
- are permitted provided that the following conditions are met:
5
-
6
- 1. Redistributions of source code must retain the above copyright notice,
7
- this list of conditions and the following disclaimer.
8
-
9
- 2. Redistributions in binary form must reproduce the above copyright notice,
10
- this list of conditions and the following disclaimer in the documentation
11
- and/or other materials provided with the distribution.
12
-
13
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
17
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
20
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
22
- USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.