@openui5/sap.ui.support 1.92.0 → 1.95.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 +1 -6
- package/THIRDPARTY.txt +4 -10
- package/package.json +6 -6
- package/src/sap/ui/support/.library +1 -1
- package/src/sap/ui/support/RuleAnalyzer.js +1 -1
- package/src/sap/ui/support/jQuery.sap.support.js +1 -1
- package/src/sap/ui/support/library.js +7 -7
- package/src/sap/ui/support/supportRules/RuleSet.js +2 -2
- package/src/sap/ui/support/supportRules/Storage.js +1 -1
- package/src/sap/ui/support/supportRules/WindowCommunicationBus.js +1 -1
- package/src/sap/ui/support/supportRules/report/IssueRenderer.js +0 -2
- package/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js +37 -11
- package/src/sap/ui/support/supportRules/ui/controllers/Main.controller.js +20 -5
- package/src/sap/ui/support/supportRules/ui/controllers/PresetsController.js +60 -54
- package/src/sap/ui/support/supportRules/ui/overlay.html +3 -3
- package/src/sap/ui/support/supportRules/ui/styles/overlay.css +11 -1
package/.reuse/dep5
CHANGED
|
@@ -309,7 +309,7 @@ License: MIT
|
|
|
309
309
|
Comment: these files belong to: lodash
|
|
310
310
|
|
|
311
311
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
312
|
-
Copyright:
|
|
312
|
+
Copyright: 2021 Mathias Nater
|
|
313
313
|
License: MIT
|
|
314
314
|
Comment: these files belong to: Hyphenopoly
|
|
315
315
|
|
|
@@ -347,11 +347,6 @@ Copyright: 2013 Ariya Hidayat and other contributors
|
|
|
347
347
|
License: BSD-2-Clause
|
|
348
348
|
Comment: these files belong to: Esprima
|
|
349
349
|
|
|
350
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
351
|
-
Copyright: 2006 Google Inc.
|
|
352
|
-
License: Apache-2.0
|
|
353
|
-
Comment: these files belong to: google-code-prettify
|
|
354
|
-
|
|
355
350
|
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
|
|
356
351
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
357
352
|
License: BSD-3-Clause
|
package/THIRDPARTY.txt
CHANGED
|
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
|
|
|
6
6
|
|
|
7
7
|
Library: sap.ui.codeeditor:
|
|
8
8
|
|
|
9
|
-
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.
|
|
9
|
+
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.12
|
|
10
10
|
Copyright: 2010, Ajax.org B.V.
|
|
11
11
|
License: BSD-3-Clause
|
|
12
12
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -279,8 +279,8 @@ License: MIT
|
|
|
279
279
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
280
280
|
Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
|
|
281
281
|
|
|
282
|
-
Component: Hyphenopoly, version:
|
|
283
|
-
Copyright:
|
|
282
|
+
Component: Hyphenopoly, version: 3.4.0
|
|
283
|
+
Copyright: 2021 Mathias Nater
|
|
284
284
|
License: MIT
|
|
285
285
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
286
286
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
@@ -324,12 +324,6 @@ License: BSD-2-Clause
|
|
|
324
324
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
|
|
325
325
|
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
|
|
326
326
|
|
|
327
|
-
Component: google-code-prettify, version: 20130304
|
|
328
|
-
Copyright: 2006 Google Inc.
|
|
329
|
-
License: Apache-2.0
|
|
330
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
331
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
332
|
-
|
|
333
327
|
Component: highlight.js, version: 10.4.1
|
|
334
328
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
335
329
|
License: BSD-3-Clause
|
|
@@ -376,7 +370,7 @@ License: Unicode-DFS-2015
|
|
|
376
370
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
|
|
377
371
|
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/Unicode-Data-Files-LICENSE.txt
|
|
378
372
|
|
|
379
|
-
Component: Adaptive Cards, version:
|
|
373
|
+
Component: Adaptive Cards, version: 2.9.0
|
|
380
374
|
Copyright: 2017 Microsoft
|
|
381
375
|
License: MIT
|
|
382
376
|
License Text: https://github.com/SAP/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.
|
|
3
|
+
"version": "1.95.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.
|
|
18
|
-
"@openui5/sap.ui.codeeditor": "1.
|
|
19
|
-
"@openui5/sap.ui.core": "1.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.95.0",
|
|
18
|
+
"@openui5/sap.ui.codeeditor": "1.95.0",
|
|
19
|
+
"@openui5/sap.ui.core": "1.95.0",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.95.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.95.0"
|
|
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.
|
|
9
|
+
<version>1.95.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.support</documentation>
|
|
12
12
|
|
|
@@ -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.
|
|
35
|
+
* @version 1.95.0
|
|
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.
|
|
26
|
+
* @version 1.95.0
|
|
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.
|
|
44
|
+
version: "1.95.0",
|
|
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.
|
|
56
|
+
* @since 1.95.0
|
|
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.
|
|
80
|
+
* @since 1.95.0
|
|
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.
|
|
104
|
+
* @since 1.95.0
|
|
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.
|
|
173
|
+
* @since 1.95.0
|
|
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.
|
|
192
|
+
* @since 1.95.0
|
|
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.
|
|
41
|
+
* @version 1.95.0
|
|
42
42
|
* @param {object} oSettings Name of the initiated
|
|
43
43
|
* @returns {void}
|
|
44
44
|
*/
|
|
@@ -141,7 +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
|
-
if (!oSettings.resolution && (!oSettings.resolutionurls ||
|
|
144
|
+
if (!oSettings.resolution && (!oSettings.resolutionurls || oSettings.resolutionurls.length === 0)) {
|
|
145
145
|
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
146
|
return "Support rule with the id " + oSettings.id + " needs either a resolution or resolutionurls or should have a ticket handler function";
|
|
147
147
|
}
|
|
@@ -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.
|
|
60
|
+
* @version 1.95.0
|
|
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.
|
|
29
|
+
* @version 1.95.0
|
|
30
30
|
* @private
|
|
31
31
|
*/
|
|
32
32
|
var WindowCommunicationBus = BaseObject.extend("sap.ui.support.supportRules.WindowCommunicationBus", {
|
|
@@ -179,7 +179,6 @@ sap.ui.define(['jquery.sap.global'], function(jQuery) {
|
|
|
179
179
|
return '<div>' + content + '</div>';
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
/* eslint-disable no-undef */
|
|
183
182
|
/**
|
|
184
183
|
* Creates an html string containing the issues and appends it to the OPA html page
|
|
185
184
|
* @param {Object} issues - the issues in viewmodel format
|
|
@@ -218,7 +217,6 @@ sap.ui.define(['jquery.sap.global'], function(jQuery) {
|
|
|
218
217
|
window.sapUiSupportReport.filter.init();
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
|
-
/* eslint-enable no-undef */
|
|
222
220
|
|
|
223
221
|
return {
|
|
224
222
|
render: render,
|
|
@@ -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
|
|
95
|
-
|
|
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,10 +315,11 @@ sap.ui.define([
|
|
|
299
315
|
var currentPreset = this.model.getProperty("/selectionPresetsCurrent"),
|
|
300
316
|
oExecutionContext = this._getExecutionContext();
|
|
301
317
|
|
|
302
|
-
if (
|
|
318
|
+
if (currentPreset.selections.length === 0) {
|
|
303
319
|
MessageToast.show("Select some rules to be analyzed.");
|
|
304
320
|
return;
|
|
305
321
|
}
|
|
322
|
+
|
|
306
323
|
if (oExecutionContext.type === "components" && oExecutionContext.components.length === 0) {
|
|
307
324
|
MessageToast.show("Please select some components to be analyzed.");
|
|
308
325
|
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.
|
|
498
|
-
this.
|
|
499
|
-
|
|
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.
|
|
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
|
-
|
|
84
|
-
|
|
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 =
|
|
289
|
-
|
|
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.
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
* @version 1.95.0
|
|
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 =
|
|
113
|
-
Constants.SELECT_FRAGMENT_ID,
|
|
114
|
-
"sap.ui.support.supportRules.ui.views.Presets",
|
|
115
|
-
this
|
|
116
|
-
)
|
|
117
|
-
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
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 =
|
|
237
|
-
Constants.IMPORT_FRAGMENT_ID,
|
|
238
|
-
"sap.ui.support.supportRules.ui.views.PresetImport",
|
|
239
|
-
this
|
|
240
|
-
)
|
|
241
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
377
|
-
Constants.EXPORT_FRAGMENT_ID,
|
|
378
|
-
"sap.ui.support.supportRules.ui.views.PresetExport",
|
|
379
|
-
this
|
|
380
|
-
)
|
|
381
|
-
|
|
382
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!DOCTYPE HTML>
|
|
2
|
-
<html
|
|
2
|
+
<html>
|
|
3
3
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
</script>
|
|
18
18
|
</head>
|
|
19
19
|
|
|
20
|
-
<body class="sapUiBody"
|
|
21
|
-
<div id="content"
|
|
20
|
+
<body class="sapUiBody">
|
|
21
|
+
<div id="content" class="sapUiSupportToolContent"></div>
|
|
22
22
|
</body>
|
|
23
23
|
|
|
24
24
|
</html>
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
@import url("ControlTree.css");
|
|
2
2
|
|
|
3
|
+
html {
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
3
7
|
body {
|
|
4
|
-
|
|
8
|
+
height: 100%;
|
|
9
|
+
background-color: #3f5161;
|
|
10
|
+
overflow: hidden;
|
|
5
11
|
content: "SupportTools loading...";
|
|
6
12
|
}
|
|
7
13
|
|
|
14
|
+
.sapUiSupportToolContent {
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
8
18
|
.sapUiSupportToolSettingsPopoverPadding {
|
|
9
19
|
padding-left: 1rem;
|
|
10
20
|
padding-bottom: 0.5rem;
|