@openui5/sap.ui.support 1.149.1 → 1.151.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 (24) hide show
  1. package/REUSE.toml +24 -0
  2. package/THIRDPARTY.txt +25 -6
  3. package/package.json +6 -6
  4. package/src/sap/ui/support/.library +1 -5
  5. package/src/sap/ui/support/RuleAnalyzer.js +7 -3
  6. package/src/sap/ui/support/jQuery.sap.support.js +9 -4
  7. package/src/sap/ui/support/library.js +2 -2
  8. package/src/sap/ui/support/supportRules/Constants.js +0 -18
  9. package/src/sap/ui/support/supportRules/Main.js +0 -57
  10. package/src/sap/ui/support/supportRules/RuleSerializer.js +2 -7
  11. package/src/sap/ui/support/supportRules/RuleSet.js +1 -1
  12. package/src/sap/ui/support/supportRules/RuleSetLoader.js +0 -13
  13. package/src/sap/ui/support/supportRules/Storage.js +2 -80
  14. package/src/sap/ui/support/supportRules/WCBChannels.js +0 -40
  15. package/src/sap/ui/support/supportRules/WindowCommunicationBus.js +1 -1
  16. package/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js +17 -494
  17. package/src/sap/ui/support/supportRules/ui/controllers/Main.controller.js +0 -22
  18. package/src/sap/ui/support/supportRules/ui/controllers/PresetsController.js +1 -1
  19. package/src/sap/ui/support/supportRules/ui/models/CustomJSONListSelection.js +0 -14
  20. package/src/sap/ui/support/supportRules/ui/models/SharedModel.js +1 -26
  21. package/src/sap/ui/support/supportRules/ui/views/Analysis.view.xml +1 -12
  22. package/src/sap/ui/support/supportRules/ui/views/StorageSettings.fragment.xml +1 -8
  23. package/src/sap/ui/support/supportRules/ui/views/RuleUpdate.fragment.xml +0 -320
  24. package/src/sap/ui/support/supportRules/util/EvalUtils.js +0 -41
package/REUSE.toml CHANGED
@@ -225,6 +225,16 @@ SPDX-FileCopyrightText = "jQuery Foundation and other contributors"
225
225
  SPDX-License-Identifier = "MIT"
226
226
  SPDX-FileComment = "these files belong to: QUnit 2.18"
227
227
 
228
+ [[annotations]]
229
+ path = [
230
+ "src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.26.0.css",
231
+ "src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.26.0.js"
232
+ ]
233
+ precedence = "aggregate"
234
+ SPDX-FileCopyrightText = "OpenJS Foundation and other contributors"
235
+ SPDX-License-Identifier = "MIT"
236
+ SPDX-FileComment = "these files belong to: QUnit 2.26.0"
237
+
228
238
  [[annotations]]
229
239
  path = "src/sap.ui.core/src/sap/ui/thirdparty/jquery-compat.js"
230
240
  precedence = "aggregate"
@@ -349,6 +359,20 @@ SPDX-FileCopyrightText = "2010-2022, Christian Johansen, christian@cjohansen.no"
349
359
  SPDX-License-Identifier = "BSD-3-Clause"
350
360
  SPDX-FileComment = "these files belong to: SinonJS 14"
351
361
 
362
+ [[annotations]]
363
+ path = "src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-22.0.0.js"
364
+ precedence = "aggregate"
365
+ SPDX-FileCopyrightText = "2010-2024, Christian Johansen, christian@cjohansen.no"
366
+ SPDX-License-Identifier = "BSD-3-Clause"
367
+ SPDX-FileComment = "these files belong to: SinonJS 22"
368
+
369
+ [[annotations]]
370
+ path = "src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/nise-6.1.5.js"
371
+ precedence = "aggregate"
372
+ SPDX-FileCopyrightText = "2010-2017, Christian Johansen, christian@cjohansen.no"
373
+ SPDX-License-Identifier = "BSD-3-Clause"
374
+ SPDX-FileComment = "these files belong to: nise"
375
+
352
376
  [[annotations]]
353
377
  path = "src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js"
354
378
  precedence = "aggregate"
package/THIRDPARTY.txt CHANGED
@@ -6,31 +6,31 @@ The full text of all referenced licenses is appended at the end of this file.
6
6
 
7
7
  Library: sap.f:
8
8
 
9
- Component: UI5 Web Components, version: 2.19.2
9
+ Component: UI5 Web Components, version: 2.24.0
10
10
  Copyright: SAP
11
11
  License: Apache-2.0
12
12
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
13
13
  Contained in: src/sap.f/src/sap/f/thirdparty/**
14
14
 
15
- Component: UI5 Web Components Fiori, version: 2.19.2
15
+ Component: UI5 Web Components Fiori, version: 2.24.0
16
16
  Copyright: SAP
17
17
  License: Apache-2.0
18
18
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
19
19
  Contained in: src/sap.f/src/sap/f/thirdparty/**
20
20
 
21
- Component: UI5 Web Components Icons, version: 2.19.2
21
+ Component: UI5 Web Components Icons, version: 2.24.0
22
22
  Copyright: SAP
23
23
  License: Apache-2.0
24
24
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
25
25
  Contained in: src/sap.f/src/sap/f/thirdparty/**
26
26
 
27
- Component: UI5 Web Components Icons Business Suite, version: 2.19.2
27
+ Component: UI5 Web Components Icons Business Suite, version: 2.24.0
28
28
  Copyright: SAP
29
29
  License: Apache-2.0
30
30
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
31
31
  Contained in: src/sap.f/src/sap/f/thirdparty/**
32
32
 
33
- Component: UI5 Web Components Icons TNT, version: 2.19.2
33
+ Component: UI5 Web Components Icons TNT, version: 2.24.0
34
34
  Copyright: SAP
35
35
  License: Apache-2.0
36
36
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -134,6 +134,13 @@ License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
134
134
  Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.css
135
135
  src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.js
136
136
 
137
+ Component: QUnit 2.26.0, version: 2.26.0
138
+ Copyright: OpenJS Foundation and other contributors
139
+ License: MIT
140
+ License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
141
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.26.0.css
142
+ src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.26.0.js
143
+
137
144
  Component: jQuery-Migrate, version: 3.3.1
138
145
  Copyright: OpenJS Foundation and other contributors
139
146
  License: MIT
@@ -227,6 +234,18 @@ License: BSD-3-Clause
227
234
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/BSD-3-Clause.txt
228
235
  Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.js
229
236
 
237
+ Component: SinonJS 22, version: 22.0.0
238
+ Copyright: 2010-2024, Christian Johansen, christian@cjohansen.no
239
+ License: BSD-3-Clause
240
+ License Text: https://github.com/UI5/openui5/blob/master/LICENSES/BSD-3-Clause.txt
241
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-22.0.0.js
242
+
243
+ Component: nise, version: 6.1.5
244
+ Copyright: 2010-2017, Christian Johansen, christian@cjohansen.no
245
+ License: BSD-3-Clause
246
+ License Text: https://github.com/UI5/openui5/blob/master/LICENSES/BSD-3-Clause.txt
247
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/nise-6.1.5.js
248
+
230
249
  Component: Sinon-qunit, version: 2.0.0
231
250
  Copyright: 2010-2011, Christian Johansen
232
251
  License: BSD-3-Clause
@@ -248,7 +267,7 @@ License: MIT
248
267
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
249
268
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/punycode.js
250
269
 
251
- Component: handlebars, version: 4.7.7
270
+ Component: handlebars, version: 4.7.9
252
271
  Copyright: 2011-2019 by Yehuda Katz
253
272
  License: MIT
254
273
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.support",
3
- "version": "1.149.1",
3
+ "version": "1.151.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/UI5/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.149.1",
18
- "@openui5/sap.ui.codeeditor": "1.149.1",
19
- "@openui5/sap.ui.core": "1.149.1",
20
- "@openui5/sap.ui.fl": "1.149.1",
21
- "@openui5/sap.ui.layout": "1.149.1"
17
+ "@openui5/sap.m": "1.151.0",
18
+ "@openui5/sap.ui.codeeditor": "1.151.0",
19
+ "@openui5/sap.ui.core": "1.151.0",
20
+ "@openui5/sap.ui.fl": "1.151.0",
21
+ "@openui5/sap.ui.layout": "1.151.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2026 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.149.1</version>
9
+ <version>1.151.0</version>
10
10
 
11
11
  <documentation>UI5 library: sap.ui.support</documentation>
12
12
 
@@ -25,10 +25,6 @@
25
25
  </sap.ui5>
26
26
  </manifest>
27
27
  <packaging xmlns="http://www.sap.com/ui5/buildext/packaging" version="2.0" >
28
- <!-- excludes for the all-in-one file -->
29
- <all-in-one>
30
- <exclude name="sap/ui/support/supportRules/util/EvalUtils.js" />
31
- </all-in-one>
32
28
  </packaging>
33
29
  <!-- excludes for the JSDoc -->
34
30
  <jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc">
@@ -5,10 +5,11 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
+ "sap/base/Log",
8
9
  "sap/ui/support/Bootstrap",
9
10
  "sap/ui/support/supportRules/Main",
10
11
  "sap/ui/support/supportRules/RuleSetLoader"],
11
- function (Bootstrap, Main, RuleSetLoader) {
12
+ function (Log, Bootstrap, Main, RuleSetLoader) {
12
13
  "use strict";
13
14
 
14
15
 
@@ -32,7 +33,7 @@ sap.ui.define([
32
33
  * @namespace
33
34
  * @alias sap.ui.support.RuleAnalyzer
34
35
  * @author SAP SE
35
- * @version 1.149.1
36
+ * @version 1.151.0
36
37
  * @public
37
38
  */
38
39
  var RuleAnalyzer = {
@@ -114,11 +115,14 @@ sap.ui.define([
114
115
  *
115
116
  * @public
116
117
  * @since 1.60
118
+ * @deprecated As of version 1.150. Temporary rules are deprecated. Please use library rulesets instead.
119
+ * See {@link topic:b5a51358b3574aea9143fa50ae4e0e2a Creating a Ruleset for a Library}.
117
120
  * @param {sap.ui.support.RuleConfiguration} oRule Settings for the new rule. For detailed information about its properties see {@link topic:eaeea19a991d46f29e6d8d8827317d0e Rule Property Values}
118
121
  * @returns {string} Rule creation status. Possible values are "success" or description of why adding failed.
119
122
  */
120
123
  addRule: function (oRule) {
121
- return Main.addRule(oRule);
124
+ Log.warning("[Support Assistant] Temporary rules are deprecated and non-functional anymore. Please use library rulesets instead. See https://ui5.sap.com/#/topic/b5a51358b3574aea9143fa50ae4e0e2a");
125
+ return "Temporary rules are deprecated and non-functional anymore. Please use library rulesets instead.";
122
126
  }
123
127
  };
124
128
 
@@ -10,10 +10,12 @@
10
10
  */
11
11
  sap.ui.define(["sap/ui/thirdparty/jquery",
12
12
  "sap/ui/support/supportRules/Main",
13
- "sap/ui/support/supportRules/RuleSetLoader"],
13
+ "sap/ui/support/supportRules/RuleSetLoader",
14
+ "sap/base/Log"],
14
15
  function (jQuery,
15
16
  Main,
16
- RuleSetLoader) {
17
+ RuleSetLoader,
18
+ Log) {
17
19
  "use strict";
18
20
 
19
21
  jQuery.sap = jQuery.sap || {};
@@ -38,7 +40,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery",
38
40
  * @namespace
39
41
  * @deprecated Since version 1.60.0. Please use sap/ui/support/RuleAnalyzer instead.
40
42
  * @author SAP SE
41
- * @version 1.149.1
43
+ * @version 1.151.0
42
44
  * @public
43
45
  */
44
46
  jQuery.sap.support = {
@@ -111,13 +113,16 @@ sap.ui.define(["sap/ui/thirdparty/jquery",
111
113
  * Adds new temporary rule when in silent mode
112
114
  *
113
115
  * @deprecated Since version 1.60.0. Please use sap/ui/support/RuleAnalyzer instead.
116
+ * As of version 1.150, temporary rules themselves are also deprecated.
117
+ * Please use library rulesets instead. See {@link topic:b5a51358b3574aea9143fa50ae4e0e2a Creating a Ruleset for a Library}.
114
118
  * @public
115
119
  * @since 1.60
116
120
  * @param {Object} oRule Settings for the new rule. For detailed information about its properties see {@link topic:eaeea19a991d46f29e6d8d8827317d0e Rule Property Values}
117
121
  * @returns {string} Rule creation status. Possible values are "success" or description of why adding failed.
118
122
  */
119
123
  addRule: function (oRule) {
120
- return Main.addRule(oRule);
124
+ Log.warning("[Support Assistant] Temporary rules are deprecated and non-functional anymore. Please use library rulesets instead. See https://ui5.sap.com/#/topic/b5a51358b3574aea9143fa50ae4e0e2a");
125
+ return "Temporary rules are deprecated and non-functional anymore. Please use library rulesets instead.";
121
126
  }
122
127
  };
123
128
 
@@ -23,7 +23,7 @@ sap.ui.define(["sap/ui/core/Lib", "sap/ui/base/DataType", "sap/ui/core/library"]
23
23
  * @namespace
24
24
  * @alias sap.ui.support
25
25
  * @author SAP SE
26
- * @version 1.149.1
26
+ * @version 1.151.0
27
27
  * @since 1.50
28
28
  * @public
29
29
  */
@@ -38,7 +38,7 @@ sap.ui.define(["sap/ui/core/Lib", "sap/ui/base/DataType", "sap/ui/core/library"]
38
38
  controls: [],
39
39
  elements: [],
40
40
  noLibraryCSS: true,
41
- version: "1.149.1",
41
+ version: "1.151.0",
42
42
  extensions: {
43
43
  //Configuration used for rule loading of Support Assistant
44
44
  "sap.ui.support": {
@@ -19,24 +19,12 @@ sap.ui.define([],
19
19
  * The following constants are used to store rules and user data in the local storage.
20
20
  */
21
21
 
22
- /**
23
- * Stores temporary rules.
24
- * @readonly
25
- */
26
- TEMP_RULESETS_NAME: "temporary",
27
-
28
22
  /**
29
23
  * Name of the SupportAssistant.
30
24
  * @readonly
31
25
  */
32
26
  SUPPORT_ASSISTANT_NAME: "Support Assistant",
33
27
 
34
- /**
35
- * Key for storing temporary rules in the local storage.
36
- * @readonly
37
- */
38
- LOCAL_STORAGE_TEMP_RULES_KEY: "support-assistant-temprules",
39
-
40
28
  /**
41
29
  * Key for storing selected rules in the local storage.
42
30
  * @readonly
@@ -73,12 +61,6 @@ sap.ui.define([],
73
61
  */
74
62
  LOCAL_STORAGE_CUSTOM_PRESETS_KEY: "support-assistant-custom-presets",
75
63
 
76
- /**
77
- * Tells if the user was already warned that temp rules are disabled
78
- * @readonly
79
- */
80
- LOCAL_STORAGE_TEMP_RULES_DISABLED_WARNED: "support-assistant-temp-rules-disabled-warned",
81
-
82
64
  /**
83
65
  * The name of the persistence cookie.
84
66
  * @readonly
@@ -24,7 +24,6 @@ sap.ui.define([
24
24
  "sap/ui/support/supportRules/WCBChannels",
25
25
  "sap/ui/support/supportRules/Constants",
26
26
  "sap/ui/support/supportRules/RuleSetLoader",
27
- "sap/ui/support/supportRules/RuleSerializer",
28
27
  "sap/ui/support/library",
29
28
  "sap/ui/core/ComponentContainer"
30
29
  ], function(
@@ -47,7 +46,6 @@ sap.ui.define([
47
46
  channelNames,
48
47
  constants,
49
48
  RuleSetLoader,
50
- RuleSerializer,
51
49
  library,
52
50
  ComponentContainer
53
51
  ) {
@@ -208,36 +206,6 @@ sap.ui.define([
208
206
  */
209
207
  Main.prototype._setCommunicationSubscriptions = function () {
210
208
 
211
- CommunicationBus.subscribe(channelNames.VERIFY_CREATE_RULE, function (tempRuleSerialized) {
212
- var oTempRule = RuleSerializer.deserialize(tempRuleSerialized),
213
- oTempRuleSet = RuleSetLoader.getRuleLib(constants.TEMP_RULESETS_NAME).ruleset,
214
- sResult = oTempRuleSet.addRule(oTempRule);
215
-
216
- CommunicationBus.publish(channelNames.VERIFY_RULE_CREATE_RESULT, {
217
- result: sResult,
218
- newRule: RuleSerializer.serialize(oTempRule)
219
- });
220
-
221
- }, this);
222
-
223
- CommunicationBus.subscribe(channelNames.VERIFY_UPDATE_RULE, function (data) {
224
- var oTempRule = RuleSerializer.deserialize(data.updateObj),
225
- oTempRuleSet = RuleSetLoader.getRuleLib(constants.TEMP_RULESETS_NAME).ruleset,
226
- sResult = oTempRuleSet.updateRule(data.oldId, oTempRule);
227
-
228
- CommunicationBus.publish(channelNames.VERIFY_RULE_UPDATE_RESULT, {
229
- result: sResult,
230
- updateRule: RuleSerializer.serialize(oTempRule)
231
- });
232
- }, this);
233
-
234
- CommunicationBus.subscribe(channelNames.DELETE_RULE, function (data) {
235
- var oTempRule = RuleSerializer.deserialize(data),
236
- oTempRuleSet = RuleSetLoader.getRuleLib(constants.TEMP_RULESETS_NAME).ruleset;
237
-
238
- oTempRuleSet.removeRule(oTempRule);
239
- }, this);
240
-
241
209
  CommunicationBus.subscribe(channelNames.OPEN_URL, function (url) {
242
210
  var win = window.open(url, "_blank");
243
211
  win.opener = null;
@@ -744,31 +712,6 @@ sap.ui.define([
744
712
  }
745
713
  };
746
714
 
747
- /**
748
- * Adds new temporary rule when in silent mode
749
- *
750
- * @public
751
- * @param {Object} oRule Object with rule information
752
- * @returns {string} Rule creation status
753
- */
754
- Main.prototype.addRule = function (oRule) {
755
- if (!oRule) {
756
- return "No rule provided.";
757
- }
758
-
759
- oRule.selected = oRule.selected !== undefined ? oRule.selected : true;
760
- oRule.async = oRule.async || false;
761
-
762
- var sResult = RuleSetLoader.getRuleLib(constants.TEMP_RULESETS_NAME).ruleset.addRule(oRule);
763
-
764
- CommunicationBus.publish(channelNames.VERIFY_RULE_CREATE_RESULT, {
765
- result: sResult,
766
- newRule: RuleSerializer.serialize(oRule)
767
- });
768
-
769
- return sResult;
770
- };
771
-
772
715
  var oMain = new Main();
773
716
 
774
717
  return oMain;
@@ -5,8 +5,7 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "./util/EvalUtils"
9
- ], function (EvalUtils) {
8
+ ], function () {
10
9
  "use strict";
11
10
 
12
11
  return {
@@ -22,7 +21,7 @@ sap.ui.define([
22
21
  var result = JSON.stringify(rule, replacer);
23
22
  return result;
24
23
  },
25
- deserialize: function (serializedRule, stringifyCheck) {
24
+ deserialize: function (serializedRule) {
26
25
  var rule;
27
26
 
28
27
  if (typeof serializedRule === 'string') {
@@ -31,10 +30,6 @@ sap.ui.define([
31
30
  rule = serializedRule;
32
31
  }
33
32
 
34
- if (!stringifyCheck && rule.check !== undefined) {
35
- rule.check = EvalUtils.evalFunction(rule.check);
36
- }
37
-
38
33
  return rule;
39
34
  }
40
35
  };
@@ -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.149.1
37
+ * @version 1.151.0
38
38
  * @param {object} oSettings Name of the initiated
39
39
  */
40
40
  var RuleSet = function (oSettings) {
@@ -16,7 +16,6 @@ sap.ui.define([
16
16
  "sap/ui/support/supportRules/WCBChannels",
17
17
  "sap/ui/support/supportRules/RuleSerializer",
18
18
  "sap/ui/support/supportRules/Constants",
19
- "sap/ui/support/supportRules/util/EvalUtils",
20
19
  "sap/ui/support/supportRules/util/Utils",
21
20
  "sap/ui/thirdparty/jquery"
22
21
  ], function(
@@ -31,7 +30,6 @@ sap.ui.define([
31
30
  channelNames,
32
31
  RuleSerializer,
33
32
  constants,
34
- EvalUtils,
35
33
  Utils,
36
34
  jQuery
37
35
  ) {
@@ -512,16 +510,5 @@ sap.ui.define([
512
510
  });
513
511
  };
514
512
 
515
- if (EvalUtils.isEvalAllowed()) {
516
- RuleSetLoader.addRuleLib(constants.TEMP_RULESETS_NAME, {
517
- lib: {
518
- name: constants.TEMP_RULESETS_NAME
519
- },
520
- ruleset: new RuleSet({
521
- name: constants.TEMP_RULESETS_NAME
522
- })
523
- });
524
- }
525
-
526
513
  return RuleSetLoader;
527
514
  }, true);
@@ -7,31 +7,10 @@
7
7
  /* global localStorage */
8
8
 
9
9
  sap.ui.define([
10
- "sap/ui/support/supportRules/RuleSerializer",
11
10
  "sap/ui/support/supportRules/Constants"
12
- ], function (RuleSerializer, Constants) {
11
+ ], function (Constants) {
13
12
  "use strict";
14
13
 
15
- /**
16
- * Encodes rules written by the user.
17
- * @private
18
- * @param {string} sData Stringified object containing rule properties.
19
- * @returns {string} base-64 encoded string.
20
- */
21
- function encode(sData) {
22
- return window.btoa(unescape(encodeURIComponent(sData)));
23
- }
24
-
25
- /**
26
- * Decodes the already encoded data by the user.
27
- * @private
28
- * @param {string} sData Stringified base-64 object containing rule properties.
29
- * @returns {string} Stringified object containing rule properties.
30
- */
31
- function decode(sData) {
32
- return decodeURIComponent(escape(window.atob(sData)));
33
- }
34
-
35
14
  var _storage = localStorage,
36
15
  _cookieInterface = {
37
16
  get cookie() {
@@ -53,49 +32,11 @@ sap.ui.define([
53
32
  *
54
33
  * @name sap.ui.support.Storage
55
34
  * @author SAP SE.
56
- * @version 1.149.1
35
+ * @version 1.151.0
57
36
  * @private
58
37
  */
59
38
  return /** @lends sap.ui.support.Storage */ {
60
39
 
61
- /**
62
- * Returns all previously created temporary rules.
63
- * @private
64
- * @returns {object[]} An array containing all the temporary rules.
65
- */
66
- getRules: function () {
67
- var tempRules = [],
68
- rawLSData;
69
-
70
- try {
71
- rawLSData = _storage.getItem(Constants.LOCAL_STORAGE_TEMP_RULES_KEY);
72
-
73
- if (!rawLSData) {
74
- return null;
75
- }
76
-
77
- tempRules = JSON.parse(decode(rawLSData));
78
-
79
- tempRules = tempRules.map(function (tempRule) {
80
- return RuleSerializer.deserialize(tempRule, true);
81
- });
82
- } catch (oError) {
83
- // Swallow "Access Denied" exceptions in cross-origin scenarios.
84
- }
85
-
86
- return tempRules;
87
- },
88
-
89
- /**
90
- * Saves the temporary rules into the LocalStorage persistence layer.
91
- * @private
92
- * @param {object[]} rules The temporary rules from the shared model.
93
- */
94
- setRules: function (rules) {
95
- var stringifyRules = encode(JSON.stringify(rules));
96
- _storage.setItem(Constants.LOCAL_STORAGE_TEMP_RULES_KEY, stringifyRules);
97
- },
98
-
99
40
  /**
100
41
  * Retrieves the selected rules which are stored in the LocalStorage persistence layer.
101
42
  * @private
@@ -157,15 +98,6 @@ sap.ui.define([
157
98
  return JSON.parse(componentContext);
158
99
  },
159
100
 
160
- /**
161
- * Overwrites the temporary rules into the local storage persistence layer.
162
- * @private
163
- * @param {object[]} aSelectedRules The temporary rules from the shared model.
164
- */
165
- removeSelectedRules: function(aSelectedRules) {
166
- this.setRules(aSelectedRules);
167
- },
168
-
169
101
  /**
170
102
  * Sets the visible column setting selection.
171
103
  * @param {string[]} aVisibleColumns visible columns ids
@@ -223,7 +155,6 @@ sap.ui.define([
223
155
  * @private
224
156
  */
225
157
  removeAllData: function() {
226
- _storage.removeItem(Constants.LOCAL_STORAGE_TEMP_RULES_KEY);
227
158
  _storage.removeItem(Constants.LOCAL_STORAGE_SELECTED_RULES_KEY);
228
159
  _storage.removeItem(Constants.LOCAL_STORAGE_SELECTED_CONTEXT_KEY);
229
160
  _storage.removeItem(Constants.LOCAL_STORAGE_SELECTED_CONTEXT_COMPONENT_KEY);
@@ -231,7 +162,6 @@ sap.ui.define([
231
162
  _storage.removeItem(Constants.LOCAL_STORAGE_SELECTION_PRESETS_KEY);
232
163
  _storage.removeItem(Constants.LOCAL_STORAGE_CUSTOM_PRESETS_KEY);
233
164
  _storage.removeItem(Constants.LOCAL_STORAGE_CUSTOM_PRESETS_KEY);
234
- _storage.removeItem(Constants.LOCAL_STORAGE_TEMP_RULES_DISABLED_WARNED);
235
165
  },
236
166
 
237
167
  /**
@@ -282,14 +212,6 @@ sap.ui.define([
282
212
  _cookieInterface.cookie = sCookieName + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
283
213
  },
284
214
 
285
- markTempRulesDisabledWarned: function () {
286
- _storage.setItem(Constants.LOCAL_STORAGE_TEMP_RULES_DISABLED_WARNED, true);
287
- },
288
-
289
- getTempRulesDisabledWarned: function () {
290
- return _storage.getItem(Constants.LOCAL_STORAGE_TEMP_RULES_DISABLED_WARNED);
291
- },
292
-
293
215
  _setStorage: function (oStorage) {
294
216
  _storage = oStorage;
295
217
  },
@@ -93,46 +93,6 @@ function () {
93
93
  */
94
94
  POST_UI_INFORMATION: "POST_UI_INFORMATION",
95
95
 
96
- /**
97
- * Verifies rule creation.
98
- * @type {string}
99
- * @const
100
- * @protected
101
- */
102
- VERIFY_CREATE_RULE: "VERIFY_CREATE_RULE",
103
-
104
- /**
105
- * Verifies rule creation after it's finished.
106
- * @type {string}
107
- * @const
108
- * @protected
109
- */
110
- VERIFY_RULE_CREATE_RESULT: "VERIFY_RULE_CREATE_RESULT",
111
-
112
- /**
113
- * Verifies rule update.
114
- * @type {string}
115
- * @const
116
- * @protected
117
- */
118
- VERIFY_UPDATE_RULE: "VERIFY_UPDATE_RULE",
119
-
120
- /**
121
- * Verifies rule update after it's finished.
122
- * @type {string}
123
- * @const
124
- * @protected
125
- */
126
- VERIFY_RULE_UPDATE_RESULT: "VERIFY_RULE_UPDATE_RESULT",
127
-
128
- /**
129
- * Posts information about which rule to be deleted.
130
- * @type {string}
131
- * @const
132
- * @protected
133
- */
134
- DELETE_RULE: "DELETE_RULE",
135
-
136
96
  /**
137
97
  * Posts available libraries.
138
98
  * @type {string}
@@ -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.149.1
27
+ * @version 1.151.0
28
28
  * @private
29
29
  */
30
30
  var WindowCommunicationBus = BaseObject.extend("sap.ui.support.supportRules.WindowCommunicationBus", {