@openui5/sap.ui.support 1.92.0 → 1.93.3

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
@@ -464,3 +464,8 @@ Copyright:
464
464
  License: Apache-2.0
465
465
  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)
466
466
 
467
+ Files: src/sap.ui.core/src/sap/ui/core/themes/base/base.less src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
468
+ Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
469
+ License: Apache-2.0
470
+ Comment: these files belong to: SAP Theming Base Content
471
+
package/THIRDPARTY.txt CHANGED
@@ -197,7 +197,7 @@ License: BSD-3-Clause
197
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
199
 
200
- Component: URI.js, version: 1.19.6
200
+ Component: URI.js, version: 1.19.7
201
201
  Copyright: Rodney Rehm
202
202
  License: MIT
203
203
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
@@ -462,6 +462,15 @@ License: Apache-2.0
462
462
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
463
463
  Contained in: lib/jsdoc/ui5/plugin.js
464
464
 
465
+ Component: SAP Theming Base Content, version: 11.1.34
466
+ Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
467
+ License: Apache-2.0
468
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
469
+ Contained in: src/sap.ui.core/src/sap/ui/core/themes/base/base.less
470
+ src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less
471
+ src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less
472
+ src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
473
+
465
474
 
466
475
  ALL LICENSE TEXTS:
467
476
  ==================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.support",
3
- "version": "1.92.0",
3
+ "version": "1.93.3",
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.92.0",
18
- "@openui5/sap.ui.codeeditor": "1.92.0",
19
- "@openui5/sap.ui.core": "1.92.0",
20
- "@openui5/sap.ui.fl": "1.92.0",
21
- "@openui5/sap.ui.layout": "1.92.0"
17
+ "@openui5/sap.m": "1.93.3",
18
+ "@openui5/sap.ui.codeeditor": "1.93.3",
19
+ "@openui5/sap.ui.core": "1.93.3",
20
+ "@openui5/sap.ui.fl": "1.93.3",
21
+ "@openui5/sap.ui.layout": "1.93.3"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.92.0</version>
9
+ <version>1.93.3</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.92.0
35
+ * @version 1.93.3
36
36
  * @public
37
37
  */
38
38
  var RuleAnalyzer = {
@@ -32,7 +32,7 @@ sap.ui.define(["sap/ui/support/supportRules/Main",
32
32
  * @deprecated Since version 1.60.0. Please use sap/ui/support/RuleAnalyzer instead.
33
33
  * @alias jQuery.sap.support
34
34
  * @author SAP SE
35
- * @version 1.92.0
35
+ * @version 1.93.3
36
36
  * @public
37
37
  */
38
38
  jQuery.sap.support = {
@@ -23,7 +23,7 @@ sap.ui.define(["sap/ui/core/library"],
23
23
  * @namespace
24
24
  * @name sap.ui.support
25
25
  * @author SAP SE
26
- * @version 1.92.0
26
+ * @version 1.93.3
27
27
  * @since 1.50
28
28
  * @public
29
29
  */
@@ -41,7 +41,7 @@ sap.ui.define(["sap/ui/core/library"],
41
41
  controls: [],
42
42
  elements: [],
43
43
  noLibraryCSS: true,
44
- version: "1.92.0",
44
+ version: "1.93.3",
45
45
  extensions: {
46
46
  //Configuration used for rule loading of Support Assistant
47
47
  "sap.ui.support": {
@@ -53,7 +53,7 @@ sap.ui.define(["sap/ui/core/library"],
53
53
  /**
54
54
  * Defines severity types.
55
55
  * @enum {string}
56
- * @since 1.92.0
56
+ * @since 1.93.3
57
57
  * @public
58
58
  */
59
59
  sap.ui.support.Severity = {
@@ -77,7 +77,7 @@ sap.ui.define(["sap/ui/core/library"],
77
77
  /**
78
78
  * Defines the Audiences.
79
79
  * @enum {string}
80
- * @since 1.92.0
80
+ * @since 1.93.3
81
81
  * @public
82
82
  */
83
83
  sap.ui.support.Audiences = {
@@ -101,7 +101,7 @@ sap.ui.define(["sap/ui/core/library"],
101
101
  /**
102
102
  * Issue Categories.
103
103
  * @enum {string}
104
- * @since 1.92.0
104
+ * @since 1.93.3
105
105
  * @public
106
106
  */
107
107
  sap.ui.support.Categories = {
@@ -170,7 +170,7 @@ sap.ui.define(["sap/ui/core/library"],
170
170
  /**
171
171
  * Analysis history formats.
172
172
  * @enum {string}
173
- * @since 1.92.0
173
+ * @since 1.93.3
174
174
  * @public
175
175
  */
176
176
  sap.ui.support.HistoryFormats = {
@@ -189,7 +189,7 @@ sap.ui.define(["sap/ui/core/library"],
189
189
  /**
190
190
  * Contains the available system presets.
191
191
  * @enum {object}
192
- * @since 1.92.0
192
+ * @since 1.93.3
193
193
  * @public
194
194
  */
195
195
  sap.ui.support.SystemPresets = {
@@ -38,7 +38,7 @@ function (jQuery, library, storage, constants) {
38
38
  * @name sap.ui.support.RuleSet
39
39
  * @memberof sap.ui.support
40
40
  * @author SAP SE
41
- * @version 1.92.0
41
+ * @version 1.93.3
42
42
  * @param {object} oSettings Name of the initiated
43
43
  * @returns {void}
44
44
  */
@@ -141,6 +141,7 @@ function (jQuery, library, storage, constants) {
141
141
  return "Support rule with the id " + oSettings.id + " needs a description.";
142
142
  }
143
143
 
144
+ // eslint-disable-next-line no-unsafe-negation
144
145
  if (!oSettings.resolution && (!oSettings.resolutionurls || !oSettings.resolutionurls.length > 0)) {
145
146
  jQuery.sap.log.error("Support rule with the id " + oSettings.id + " needs either a resolution or resolutionurls or should have a ticket handler function");
146
147
  return "Support rule with the id " + oSettings.id + " needs either a resolution or resolutionurls or should have a ticket handler function";
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @name sap.ui.support.Storage
58
58
  * @alias sap.ui.support.Storage
59
59
  * @author SAP SE.
60
- * @version 1.92.0
60
+ * @version 1.93.3
61
61
  * @private
62
62
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
63
63
  */
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @name sap.ui.support.WindowCommunicationBus
27
27
  * @memberof sap.ui.support
28
28
  * @author SAP SE
29
- * @version 1.92.0
29
+ * @version 1.93.3
30
30
  * @private
31
31
  */
32
32
  var WindowCommunicationBus = BaseObject.extend("sap.ui.support.supportRules.WindowCommunicationBus", {
@@ -8,6 +8,7 @@ sap.ui.define([
8
8
  "sap/base/util/deepExtend",
9
9
  "sap/ui/support/supportRules/ui/controllers/BaseController",
10
10
  "sap/ui/model/json/JSONModel",
11
+ "sap/ui/core/Fragment",
11
12
  "sap/m/MessageToast",
12
13
  "sap/ui/support/supportRules/CommunicationBus",
13
14
  "sap/ui/support/supportRules/WCBChannels",
@@ -24,6 +25,7 @@ sap.ui.define([
24
25
  deepExtend,
25
26
  BaseController,
26
27
  JSONModel,
28
+ Fragment,
27
29
  MessageToast,
28
30
  CommunicationBus,
29
31
  channelNames,
@@ -91,13 +93,27 @@ sap.ui.define([
91
93
  },
92
94
 
93
95
  loadAdditionalUI: function () {
94
- this._ruleDetails = sap.ui.xmlfragment("sap.ui.support.supportRules.ui.views.RuleDetails", this);
95
- this.byId("rulesDisplayPage").addContentArea(this._ruleDetails);
96
+ if (!this._ruleDetails) {
97
+ this._ruleDetails = Fragment.load({
98
+ name: "sap.ui.support.supportRules.ui.views.RuleDetails",
99
+ controller: this
100
+ }).then(function (ruleDetails) {
101
+ this.byId("rulesDisplayPage").addContentArea(ruleDetails);
102
+ }.bind(this));
103
+ }
104
+
105
+ if (!this._ruleCreateUpdatePages) {
106
+ this._ruleCreateUpdatePages = Fragment.load({
107
+ name: "sap.ui.support.supportRules.ui.views.RuleUpdate",
108
+ controller: this
109
+ }).then(function (ruleCreateUpdatePages) {
110
+ ruleCreateUpdatePages.forEach(function (rcuPage) {
111
+ this.byId("rulesNavContainer").insertPage(rcuPage);
112
+ }, this);
113
+
114
+ }.bind(this));
115
+ }
96
116
 
97
- this._ruleCreateUpdatePages = sap.ui.xmlfragment("sap.ui.support.supportRules.ui.views.RuleUpdate", this);
98
- this._ruleCreateUpdatePages.forEach(function (rcuPage) {
99
- this.byId("rulesNavContainer").insertPage(rcuPage);
100
- }, this);
101
117
  this._updateRuleList();
102
118
  },
103
119
 
@@ -299,6 +315,7 @@ sap.ui.define([
299
315
  var currentPreset = this.model.getProperty("/selectionPresetsCurrent"),
300
316
  oExecutionContext = this._getExecutionContext();
301
317
 
318
+ // eslint-disable-next-line no-unsafe-negation
302
319
  if (!currentPreset.selections.length > 0) {
303
320
  MessageToast.show("Select some rules to be analyzed.");
304
321
  return;
@@ -492,14 +509,23 @@ sap.ui.define([
492
509
  },
493
510
 
494
511
  onAnalyzeSettings: function (oEvent) {
512
+ var oSource = oEvent.getSource();
513
+
495
514
  CommunicationBus.publish(channelNames.GET_AVAILABLE_COMPONENTS);
496
515
 
497
- if (!this._settingsPopover) {
498
- this._settingsPopover = sap.ui.xmlfragment("sap.ui.support.supportRules.ui.views.AnalyzeSettings", this);
499
- this.getView().addDependent(this._settingsPopover);
516
+ if (!this._analyzeSettingsPopover) {
517
+ this._analyzeSettingsPopover = Fragment.load({
518
+ name: "sap.ui.support.supportRules.ui.views.AnalyzeSettings",
519
+ controller: this
520
+ }).then(function (analyzeSettingsPopover) {
521
+ this.getView().addDependent(analyzeSettingsPopover);
522
+ return analyzeSettingsPopover;
523
+ }.bind(this));
500
524
  }
501
525
 
502
- this._settingsPopover.openBy(oEvent.getSource());
526
+ this._analyzeSettingsPopover.then(function (analyzeSettingsPopover) {
527
+ analyzeSettingsPopover.openBy(oSource);
528
+ });
503
529
  },
504
530
 
505
531
  onContextSelect: function (oEvent) {
@@ -10,6 +10,8 @@ sap.ui.define([
10
10
  "../models/Documentation",
11
11
  "../models/SelectionUtils",
12
12
  "../models/PresetsUtils",
13
+ "sap/ui/core/Fragment",
14
+ "sap/ui/core/mvc/XMLView",
13
15
  "sap/ui/support/supportRules/CommunicationBus",
14
16
  "sap/ui/support/supportRules/WCBChannels",
15
17
  "sap/ui/support/supportRules/Constants",
@@ -24,6 +26,8 @@ sap.ui.define([
24
26
  Documentation,
25
27
  SelectionUtils,
26
28
  PresetsUtils,
29
+ Fragment,
30
+ XMLView,
27
31
  CommunicationBus,
28
32
  channelNames,
29
33
  Constants,
@@ -80,8 +84,12 @@ sap.ui.define([
80
84
  },
81
85
 
82
86
  loadAdditionalUI: function () {
83
- this._issuesPage = sap.ui.xmlview(this.getView().getId() + "--issues", "sap.ui.support.supportRules.ui.views.Issues");
84
- this.byId("navCon").insertPage(this._issuesPage);
87
+ XMLView.create({
88
+ id: this.getView().getId() + "--issues",
89
+ viewName: "sap.ui.support.supportRules.ui.views.Issues"
90
+ }).then(function (issuesPage) {
91
+ this.byId("navCon").insertPage(issuesPage);
92
+ }.bind(this));
85
93
  },
86
94
 
87
95
  onAfterRendering: function () {
@@ -285,11 +293,18 @@ sap.ui.define([
285
293
 
286
294
  _openSettingsPopover: function () {
287
295
  if (!this._settingsPopover) {
288
- this._settingsPopover = sap.ui.xmlfragment("sap.ui.support.supportRules.ui.views.StorageSettings", this);
289
- this.getView().addDependent(this._settingsPopover);
296
+ this._settingsPopover = Fragment.load({
297
+ name: "sap.ui.support.supportRules.ui.views.StorageSettings",
298
+ controller: this
299
+ }).then(function (settingsPopover) {
300
+ this.getView().addDependent(settingsPopover);
301
+ return settingsPopover;
302
+ }.bind(this));
290
303
  }
291
304
 
292
- this._settingsPopover.openBy(this.byId("settingsIcon"));
305
+ this._settingsPopover.then(function (settingsPopover) {
306
+ settingsPopover.openBy(this.byId("settingsIcon"));
307
+ }.bind(this));
293
308
  },
294
309
 
295
310
  _isSettingsPopoverOpen: function () {
@@ -15,20 +15,20 @@ sap.ui.define([
15
15
  "sap/ui/support/supportRules/util/Utils",
16
16
  "sap/m/GroupHeaderListItem",
17
17
  "sap/ui/thirdparty/jquery",
18
- "sap/ui/core/library",
19
- "sap/ui/support/library"
20
- ], function (BaseController,
21
- SelectionUtils,
22
- PresetsUtils,
23
- Fragment,
24
- MessageToast,
25
- MessageBox,
26
- Documentation,
27
- Utils,
28
- GroupHeaderListItem,
29
- jQuery,
30
- coreLibrary,
31
- library) {
18
+ "sap/ui/core/library"
19
+ ], function (
20
+ BaseController,
21
+ SelectionUtils,
22
+ PresetsUtils,
23
+ Fragment,
24
+ MessageToast,
25
+ MessageBox,
26
+ Documentation,
27
+ Utils,
28
+ GroupHeaderListItem,
29
+ jQuery,
30
+ coreLibrary
31
+ ) {
32
32
  "use strict";
33
33
 
34
34
  // shortcut for sap.ui.core.ValueState
@@ -89,7 +89,7 @@ sap.ui.define([
89
89
  *
90
90
  * @extends sap.ui.support.supportRules.ui.controllers.BaseController
91
91
  * @author SAP SE
92
- * @version 1.92.0
92
+ * @version 1.93.3
93
93
  * @private
94
94
  * @alias sap.ui.support.supportRules.ui.controllers.PresetsController
95
95
  */
@@ -109,24 +109,28 @@ sap.ui.define([
109
109
  oBtn.focus();
110
110
 
111
111
  if (!this._oPresetsPopover) {
112
- this._oPresetsPopover = sap.ui.xmlfragment(
113
- Constants.SELECT_FRAGMENT_ID,
114
- "sap.ui.support.supportRules.ui.views.Presets",
115
- this
116
- );
117
- this.oView.addDependent(this._oPresetsPopover);
112
+ this._oPresetsPopover = Fragment.load({
113
+ id: Constants.SELECT_FRAGMENT_ID,
114
+ name: "sap.ui.support.supportRules.ui.views.Presets",
115
+ controller: this
116
+ }).then(function (oPresetsPopover) {
117
+ this.oView.addDependent(oPresetsPopover);
118
+ return oPresetsPopover;
119
+ }.bind(this));
118
120
  }
119
121
 
120
- if (!this._oPresetsPopover.isOpen()) {
121
- // set correct focus in the popover
122
- this._oPresetsPopover.setInitialFocus(
123
- Fragment.byId(Constants.SELECT_FRAGMENT_ID, "select").getSelectedItem().getId()
124
- );
122
+ this._oPresetsPopover.then(function (oPresetsPopover) {
123
+ if (!oPresetsPopover.isOpen()) {
124
+ // set correct focus in the popover
125
+ oPresetsPopover.setInitialFocus(
126
+ Fragment.byId(Constants.SELECT_FRAGMENT_ID, "select").getSelectedItem().getId()
127
+ );
125
128
 
126
- this._oPresetsPopover.openBy(oBtn);
127
- } else {
128
- this._oPresetsPopover.close();
129
- }
129
+ oPresetsPopover.openBy(oBtn);
130
+ } else {
131
+ oPresetsPopover.close();
132
+ }
133
+ });
130
134
  };
131
135
 
132
136
  /**
@@ -145,7 +149,7 @@ sap.ui.define([
145
149
  * Closes the variant select when an item is clicked
146
150
  */
147
151
  PresetsController.prototype.onPresetItemPress = function () {
148
- this._oPresetsPopover.close();
152
+ Fragment.byId(Constants.SELECT_FRAGMENT_ID, "presetsPopover").close();
149
153
  };
150
154
 
151
155
  /**
@@ -233,15 +237,19 @@ sap.ui.define([
233
237
  */
234
238
  PresetsController.prototype.onImportPress = function () {
235
239
  if (!this._oImportDialog) {
236
- this._oImportDialog = sap.ui.xmlfragment(
237
- Constants.IMPORT_FRAGMENT_ID,
238
- "sap.ui.support.supportRules.ui.views.PresetImport",
239
- this
240
- );
241
- this.oView.addDependent(this._oImportDialog);
240
+ this._oImportDialog = Fragment.load({
241
+ id: Constants.IMPORT_FRAGMENT_ID,
242
+ name: "sap.ui.support.supportRules.ui.views.PresetImport",
243
+ controller: this
244
+ }).then(function (oImportDialog) {
245
+ this.oView.addDependent(oImportDialog);
246
+ return oImportDialog;
247
+ }.bind(this));
242
248
  }
243
249
 
244
- this._oImportDialog.open();
250
+ this._oImportDialog.then(function (oImportDialog) {
251
+ oImportDialog.open();
252
+ });
245
253
  };
246
254
 
247
255
  /**
@@ -319,7 +327,7 @@ sap.ui.define([
319
327
  * Handles the pressing of the cancel button on import
320
328
  */
321
329
  PresetsController.prototype.onImportCancelPress = function () {
322
- this._oImportDialog.close();
330
+ Fragment.byId(Constants.IMPORT_FRAGMENT_ID, "importDialog").close();
323
331
  };
324
332
 
325
333
  /**
@@ -337,7 +345,7 @@ sap.ui.define([
337
345
  + "\"I agree to use local storage persistency\" from Support Assistant settings.";
338
346
  }
339
347
 
340
- this._oImportDialog.close();
348
+ Fragment.byId(Constants.IMPORT_FRAGMENT_ID, "importDialog").close();
341
349
 
342
350
  MessageToast.show(sMessage, { width: "50%" });
343
351
  };
@@ -373,20 +381,19 @@ sap.ui.define([
373
381
  });
374
382
 
375
383
  if (!this._oExportDialog) {
376
- this._oExportDialog = sap.ui.xmlfragment(
377
- Constants.EXPORT_FRAGMENT_ID,
378
- "sap.ui.support.supportRules.ui.views.PresetExport",
379
- this
380
- );
381
- this._oExportDialog.attachAfterClose(function () {
382
- this._clearValidationState();
384
+ this._oExportDialog = Fragment.load({
385
+ id: Constants.EXPORT_FRAGMENT_ID,
386
+ name: "sap.ui.support.supportRules.ui.views.PresetExport",
387
+ controller: this
388
+ }).then(function (oExportDialog) {
389
+ this.oView.addDependent(oExportDialog);
390
+ return oExportDialog;
383
391
  }.bind(this));
384
- this.oView.addDependent(this._oExportDialog);
385
-
386
- this.initializeExportValidations();
387
392
  }
388
393
 
389
- this._oExportDialog.open();
394
+ this._oExportDialog.then(function (oExportDialog) {
395
+ oExportDialog.open();
396
+ });
390
397
  };
391
398
 
392
399
  /**
@@ -496,7 +503,7 @@ sap.ui.define([
496
503
  * Cancels an export
497
504
  */
498
505
  PresetsController.prototype.onExportCancelPress = function () {
499
- this._oExportDialog.close();
506
+ Fragment.byId(Constants.EXPORT_FRAGMENT_ID, "exportDialog").close();
500
507
  };
501
508
 
502
509
  /**
@@ -523,8 +530,7 @@ sap.ui.define([
523
530
  );
524
531
 
525
532
  MessageToast.show("The Rule Preset \"" + title + "\" was successfully exported.", {width: "50%"});
526
-
527
- this._oExportDialog.close();
533
+ Fragment.byId(Constants.EXPORT_FRAGMENT_ID, "exportDialog").close();
528
534
  };
529
535
 
530
536
  /**