@openui5/sap.ui.support 1.94.0 → 1.97.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 +12 -12
- package/THIRDPARTY.txt +21 -17
- 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/IssueManager.js +9 -9
- package/src/sap/ui/support/supportRules/RuleSet.js +1 -1
- 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 +1 -43
- package/src/sap/ui/support/supportRules/report/ReportProvider.js +92 -115
- package/src/sap/ui/support/supportRules/report/resources/ReportTemplate.html +43 -95
- package/src/sap/ui/support/supportRules/report/resources/images/checked.svg +2 -0
- package/src/sap/ui/support/supportRules/report/resources/images/collapsed.svg +2 -0
- package/src/sap/ui/support/supportRules/report/resources/images/expanded.svg +2 -0
- package/src/sap/ui/support/supportRules/report/resources/images/unchecked.svg +2 -0
- package/src/sap/ui/support/supportRules/report/resources/{filter.js → index.js} +56 -0
- package/src/sap/ui/support/supportRules/report/resources/styles.css +104 -0
- package/src/sap/ui/support/supportRules/ui/controllers/PresetsController.js +1 -1
- package/src/sap/ui/support/supportRules/ui/external/ElementTree.js +20 -1
- package/src/sap/ui/support/supportRules/ui/models/CustomListSelection.js +2 -2
- package/src/sap/ui/support/supportRules/ui/overlay.html +3 -3
- package/src/sap/ui/support/supportRules/ui/styles/overlay.css +20 -1
- package/ui5.yaml +4 -1
- package/src/sap/ui/support/supportRules/report/resources/collapseExpand.css +0 -33
- package/src/sap/ui/support/supportRules/report/resources/collapseExpand.js +0 -60
- package/src/sap/ui/support/supportRules/report/resources/filter.css +0 -19
|
@@ -60,7 +60,7 @@ sap.ui.define(["jquery.sap.global"],
|
|
|
60
60
|
* @private
|
|
61
61
|
*/
|
|
62
62
|
function _getElementTreeLeftColumnOfListItem(controls, paddingLeft) {
|
|
63
|
-
var html = "<offset
|
|
63
|
+
var html = "<offset data-indent=\"" + paddingLeft + "\" >";
|
|
64
64
|
|
|
65
65
|
if (controls.content.length > 0) {
|
|
66
66
|
html += "<arrow down=\"true\"></arrow>";
|
|
@@ -334,6 +334,25 @@ sap.ui.define(["jquery.sap.global"],
|
|
|
334
334
|
var controls = this.getData().controls;
|
|
335
335
|
|
|
336
336
|
this._treeContainer.innerHTML = this._createTreeHTML(controls);
|
|
337
|
+
|
|
338
|
+
this._provideIndentation();
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Sets the padding for each row in the element tree.
|
|
343
|
+
* @private
|
|
344
|
+
*/
|
|
345
|
+
ElementTree.prototype._provideIndentation = function () {
|
|
346
|
+
var aOffsets = this._treeContainer.getElementsByTagName("offset"),
|
|
347
|
+
oOffset,
|
|
348
|
+
iIndex;
|
|
349
|
+
|
|
350
|
+
for (iIndex = 0; iIndex < aOffsets.length; iIndex++) {
|
|
351
|
+
oOffset = aOffsets[iIndex];
|
|
352
|
+
if (oOffset.dataset && oOffset.dataset.indent) {
|
|
353
|
+
oOffset.style.paddingLeft = oOffset.dataset.indent + "px";
|
|
354
|
+
}
|
|
355
|
+
}
|
|
337
356
|
};
|
|
338
357
|
|
|
339
358
|
/**
|
|
@@ -196,7 +196,7 @@ sap.ui.define([
|
|
|
196
196
|
},
|
|
197
197
|
|
|
198
198
|
_getContextByIndex: function(iRowIndex) {
|
|
199
|
-
return this._getBinding().getContexts(iRowIndex, 1)[0];
|
|
199
|
+
return this._getBinding().getContexts(iRowIndex, 1, undefined, true)[0];
|
|
200
200
|
},
|
|
201
201
|
|
|
202
202
|
_getSelectionModel: function(bForceInit) {
|
|
@@ -405,4 +405,4 @@ sap.ui.define([
|
|
|
405
405
|
|
|
406
406
|
return Selection;
|
|
407
407
|
|
|
408
|
-
});
|
|
408
|
+
});
|
|
@@ -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;
|
|
@@ -213,3 +223,12 @@ body {
|
|
|
213
223
|
padding-right: 0.2rem;
|
|
214
224
|
}
|
|
215
225
|
|
|
226
|
+
.issueSeverityHigh {
|
|
227
|
+
color: #bb0000;
|
|
228
|
+
}
|
|
229
|
+
.issueSeverityMedium {
|
|
230
|
+
color: #e78c07;
|
|
231
|
+
}
|
|
232
|
+
.issueSeverityLow {
|
|
233
|
+
color:#5e696e;
|
|
234
|
+
}
|
package/ui5.yaml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
specVersion: "
|
|
2
|
+
specVersion: "2.0"
|
|
3
3
|
type: library
|
|
4
4
|
metadata:
|
|
5
5
|
name: sap.ui.support
|
|
@@ -7,3 +7,6 @@ metadata:
|
|
|
7
7
|
OpenUI5
|
|
8
8
|
* (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company.
|
|
9
9
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
10
|
+
resources:
|
|
11
|
+
configuration:
|
|
12
|
+
propertiesFileSourceEncoding: ISO-8859-1
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/* Expand/Collapse functionality */
|
|
2
|
-
.expanded {
|
|
3
|
-
padding-left: 30px;
|
|
4
|
-
}
|
|
5
|
-
.expanded > tr > td:first-child {
|
|
6
|
-
padding-left: 35px;
|
|
7
|
-
}
|
|
8
|
-
.collapsed {
|
|
9
|
-
display: none;
|
|
10
|
-
}
|
|
11
|
-
.expanded-content > .expandable-title::before {
|
|
12
|
-
margin-right: 8px;
|
|
13
|
-
vertical-align: middle;
|
|
14
|
-
display: inline-block;
|
|
15
|
-
width: 16px;
|
|
16
|
-
height: 16px;
|
|
17
|
-
content: "";
|
|
18
|
-
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23346187'><path d='M39.46875,17.53125 C40.1562534,16.7812462 40.8749963,16.7812462 41.625,17.53125 C41.9375016,17.8437516 42.09375,18.1874981 42.09375,18.5625 C42.09375,18.9375019 41.9375016,19.2812484 41.625,19.59375 L26.15625,35.0625 C25.5312469,35.6250028 24.8125041,35.90625 24,35.90625 C23.1874959,35.90625 22.5000028,35.6250028 21.9375,35.0625 L6.375,19.59375 C6.06249844,19.2812484 5.90625,18.921877 5.90625,18.515625 C5.90625,18.109373 6.06249844,17.7500016 6.375,17.4375 C6.68750156,17.1249984 7.04687297,16.96875 7.453125,16.96875 C7.85937703,16.96875 8.21874844,17.1249984 8.53125,17.4375 L23.53125,32.4375 C23.8437516,32.8125019 24.1874981,32.8125019 24.5625,32.4375 L39.46875,17.53125 Z'></path></svg>") no-repeat;
|
|
19
|
-
}
|
|
20
|
-
.collapsed-content > .expandable-title::before {
|
|
21
|
-
margin-right: 8px;
|
|
22
|
-
vertical-align: middle;
|
|
23
|
-
display: inline-block;
|
|
24
|
-
width: 16px;
|
|
25
|
-
height: 16px;
|
|
26
|
-
content: "";
|
|
27
|
-
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23346187'><path d='M31.96875,21.84375 C32.5937531,22.4687531 32.90625,23.1874959 32.90625,24 C32.90625,24.8125041 32.5937531,25.5312469 31.96875,26.15625 L16.5,41.625 C15.7499963,42.3125034 15.0312534,42.3125034 14.34375,41.625 C13.6562466,40.9374966 13.6562466,40.2187538 14.34375,39.46875 L29.34375,24.5625 C29.7187519,24.1874981 29.7187519,23.8125019 29.34375,23.4375 L14.4375,8.53125 C14.1249984,8.21874844 13.96875,7.87500188 13.96875,7.5 C13.96875,7.12499813 14.1249984,6.78125156 14.4375,6.46875 C14.7500016,6.15624844 15.0937481,6 15.46875,6 C15.8437519,6 16.1874984,6.15624844 16.5,6.46875 L31.96875,21.84375 Z'></path></svg>") no-repeat;
|
|
28
|
-
}
|
|
29
|
-
.expanded-content > h1.expandable-title::before,
|
|
30
|
-
.collapsed-content > h1.expandable-title::before {
|
|
31
|
-
width: 22px;
|
|
32
|
-
height: 22px;
|
|
33
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
window.sapUiSupportReport = window.sapUiSupportReport || {};
|
|
8
|
-
window.sapUiSupportReport.collapseExpand = (function() {
|
|
9
|
-
'use strict';
|
|
10
|
-
|
|
11
|
-
function collapseExpandClickHandler(event) {
|
|
12
|
-
var toExpandElementId = this.getAttribute('data-expandableElement');
|
|
13
|
-
var expandableElement = document.getElementById(toExpandElementId);
|
|
14
|
-
var toExpand = expandableElement.classList.contains('collapsed');
|
|
15
|
-
|
|
16
|
-
if (toExpand) {
|
|
17
|
-
expandableElement.classList.remove('collapsed');
|
|
18
|
-
expandableElement.classList.add('expanded');
|
|
19
|
-
this.classList.remove('collapsed-content');
|
|
20
|
-
this.classList.add('expanded-content');
|
|
21
|
-
} else {
|
|
22
|
-
expandableElement.classList.remove('expanded');
|
|
23
|
-
expandableElement.classList.add('collapsed');
|
|
24
|
-
this.classList.remove('expanded-content');
|
|
25
|
-
this.classList.add('collapsed-content');
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function init() {
|
|
30
|
-
try {
|
|
31
|
-
var expandableElements = document.getElementsByClassName('expandable-control');
|
|
32
|
-
if (!expandableElements) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
for (var i = 0; i < expandableElements.length; i++) {
|
|
37
|
-
expandableElements[i].addEventListener('click', collapseExpandClickHandler);
|
|
38
|
-
|
|
39
|
-
// Set the default collapsed/expanded state of the expandable content.
|
|
40
|
-
var elementToExpandId = expandableElements[i].getAttribute('data-expandableElement');
|
|
41
|
-
var elementToExpand = document.getElementById(elementToExpandId);
|
|
42
|
-
if (expandableElements[i].classList.contains('collapsed-content')) {
|
|
43
|
-
elementToExpand.classList.add('collapsed');
|
|
44
|
-
} else {
|
|
45
|
-
elementToExpand.classList.add('expanded');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
expandableElements[i].style = 'cursor: pointer;';
|
|
49
|
-
}
|
|
50
|
-
} catch (ex) {
|
|
51
|
-
/* eslint-disable no-console */
|
|
52
|
-
console.log('There was a problem initializing collapse/expand functionality.');
|
|
53
|
-
/* eslint-enable no-console */
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return {
|
|
58
|
-
init: init
|
|
59
|
-
};
|
|
60
|
-
}());
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* Filters functionality */
|
|
2
|
-
.filters {
|
|
3
|
-
margin: 10px;
|
|
4
|
-
font-size: 1em;
|
|
5
|
-
}
|
|
6
|
-
.filter {
|
|
7
|
-
padding: 5px;
|
|
8
|
-
display: inline-block;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
border-radius: 5px;
|
|
11
|
-
}
|
|
12
|
-
.filter-active {
|
|
13
|
-
background-color: #ddd;
|
|
14
|
-
box-shadow: 1px 1px 5px #888888;
|
|
15
|
-
}
|
|
16
|
-
.filtered {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
|