@sapui5/sap.rules.ui 1.107.0 → 1.108.1
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/package.json +1 -1
- package/src/sap/rules/ui/.library +1 -1
- package/src/sap/rules/ui/AstExpressionBasic.js +27 -6
- package/src/sap/rules/ui/AstExpressionBasicRenderer.js +71 -55
- package/src/sap/rules/ui/AutoCompleteSuggestionContent.js +5 -3
- package/src/sap/rules/ui/AutoCompleteSuggestionContentRenderer.js +39 -40
- package/src/sap/rules/ui/BindingSpy.js +1 -1
- package/src/sap/rules/ui/DecisionTable.js +2157 -2154
- package/src/sap/rules/ui/DecisionTableCell.js +7 -4
- package/src/sap/rules/ui/DecisionTableCellAstExpressionBasic.js +7 -4
- package/src/sap/rules/ui/DecisionTableCellAstExpressionBasicRenderer.js +5 -3
- package/src/sap/rules/ui/DecisionTableCellExpressionAdvanced.js +238 -236
- package/src/sap/rules/ui/DecisionTableCellExpressionAdvancedRenderer.js +6 -4
- package/src/sap/rules/ui/DecisionTableCellExpressionBasic.js +29 -22
- package/src/sap/rules/ui/DecisionTableCellExpressionBasicRenderer.js +6 -4
- package/src/sap/rules/ui/DecisionTableCellRenderer.js +10 -10
- package/src/sap/rules/ui/DecisionTableConfiguration.js +1 -1
- package/src/sap/rules/ui/DecisionTableRenderer.js +163 -161
- package/src/sap/rules/ui/DecisionTableSettings.js +6 -4
- package/src/sap/rules/ui/DecisionTableSettingsOld.js +963 -961
- package/src/sap/rules/ui/DecisionTableSettingsOldRenderer.js +9 -10
- package/src/sap/rules/ui/DecisionTableSettingsRenderer.js +9 -10
- package/src/sap/rules/ui/ExpressionAdvanced.js +1726 -1724
- package/src/sap/rules/ui/ExpressionAdvancedRenderer.js +8 -8
- package/src/sap/rules/ui/ExpressionBase.js +1 -1
- package/src/sap/rules/ui/ExpressionBasic.js +7 -4
- package/src/sap/rules/ui/ExpressionBasicRenderer.js +8 -7
- package/src/sap/rules/ui/InstructionRenderer.js +73 -33
- package/src/sap/rules/ui/RuleBase.js +1 -1
- package/src/sap/rules/ui/RuleBuilder.js +433 -430
- package/src/sap/rules/ui/RuleBuilderRenderer.js +8 -9
- package/src/sap/rules/ui/TextRule.js +7 -4
- package/src/sap/rules/ui/TextRuleConfiguration.js +1 -1
- package/src/sap/rules/ui/TextRuleRenderer.js +45 -44
- package/src/sap/rules/ui/TextRuleSettings.js +6 -4
- package/src/sap/rules/ui/TextRuleSettingsRenderer.js +9 -9
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAdvancedFunctionPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAdvancedFunctionPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAggregateFunctionPanel.js +100 -98
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionAggregateFunctionPanelRenderer.js +9 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionArrayOperatorPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionArrayOperatorPanelRenderer.js +10 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionComparisionOperatorPanel.js +109 -107
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionComparisionOperatorPanelRenderer.js +39 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionDateAndTimePanel.js +5 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionDateAndTimePanelRenderer.js +10 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFixedValuePanel.js +840 -838
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFixedValuePanelRenderer.js +40 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFunctionalOperatorPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionFunctionalOperatorPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLogicalOperatorPanel.js +112 -110
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLogicalOperatorPanelRenderer.js +39 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanel.js +100 -98
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionLoopFunctionPanelRenderer.js +9 -10
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMathematicalOperatorPanel.js +122 -119
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMathematicalOperatorPanelRenderer.js +39 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanel.js +5 -2
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionMiscellaneousOperatorPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionOperationsPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionRangeOperatorPanel.js +4 -3
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionRangeOperatorPanelRenderer.js +10 -11
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanel.js +108 -106
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionSelectFunctionPanelRenderer.js +40 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionTimeAndDurationFunctionPanel.js +254 -252
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionTimeAndDurationFunctionPanelRenderer.js +40 -40
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionVocabularyPanel.js +631 -629
- package/src/sap/rules/ui/ast/autoCompleteContent/AutoSuggestionVocabularyPanelRenderer.js +40 -40
- package/src/sap/rules/ui/library.js +31 -10
- package/src/sap/rules/ui/type/ExpressionAbs.js +1 -1
|
@@ -10,8 +10,9 @@ sap.ui.define([
|
|
|
10
10
|
"jquery.sap.global",
|
|
11
11
|
"./library",
|
|
12
12
|
"sap/rules/ui/ExpressionBasic",
|
|
13
|
-
"sap/rules/ui/InstructionRenderer"
|
|
14
|
-
|
|
13
|
+
"sap/rules/ui/InstructionRenderer",
|
|
14
|
+
"./DecisionTableCellExpressionBasicRenderer"
|
|
15
|
+
], function(jQuery, library, ExpressionBasic, InstructionRenderer, DecisionTableCellExpressionBasicRenderer) {
|
|
15
16
|
"use strict";
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -25,7 +26,7 @@ sap.ui.define([
|
|
|
25
26
|
* @extends sap.rules.ui.ExpressionBasic
|
|
26
27
|
*
|
|
27
28
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
29
|
+
* @version 1.108.1
|
|
29
30
|
*
|
|
30
31
|
* @constructor
|
|
31
32
|
* @private
|
|
@@ -150,7 +151,9 @@ sap.ui.define([
|
|
|
150
151
|
},
|
|
151
152
|
_onChangeByIndex: function(instructionIndex, sPrefix) {
|
|
152
153
|
sap.rules.ui.ExpressionBasic.prototype._onChangeByIndex.apply(this, [this.offSet + instructionIndex, this.sHeaderValue + this.FixedOperatorValue, instructionIndex]);
|
|
153
|
-
}
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
renderer: DecisionTableCellExpressionBasicRenderer
|
|
154
157
|
});
|
|
155
158
|
|
|
156
159
|
DecisionTableCellExpressionBasic.prototype.init = function() {
|
|
@@ -168,12 +171,14 @@ sap.ui.define([
|
|
|
168
171
|
DecisionTableCellExpressionBasic.prototype.onAfterRendering = function() {
|
|
169
172
|
sap.rules.ui.ExpressionBasic.prototype.onAfterRendering.apply(this, arguments);
|
|
170
173
|
this._calculateOffSet();
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
this.oDecisionTableCell = (this.getParent() && this.getParent().getParent()) ? this.getParent().getParent() : null;
|
|
175
|
+
if (this.oDecisionTableCell) {
|
|
176
|
+
var valueStatePath = this.oDecisionTableCell.getValueStatePath();
|
|
177
|
+
var dtModel = this.oDecisionTableCell.getModel("dtModel");
|
|
178
|
+
this.setProperty("valueStateText", "");
|
|
179
|
+
dtModel.setProperty(valueStatePath.slice(8), sap.ui.core.ValueState.None);
|
|
180
|
+
this.createEventListeners();
|
|
181
|
+
}
|
|
177
182
|
};
|
|
178
183
|
|
|
179
184
|
DecisionTableCellExpressionBasic.prototype.onBeforeRendering = function() {
|
|
@@ -222,18 +227,20 @@ sap.ui.define([
|
|
|
222
227
|
}
|
|
223
228
|
}.bind(this));
|
|
224
229
|
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
230
|
+
if (this.oDecisionTableCell) {
|
|
231
|
+
var valueStateTextPath = this.oDecisionTableCell.getValueStateTextPath();
|
|
232
|
+
var valueStatePath = this.oDecisionTableCell.getValueStatePath();
|
|
233
|
+
var dtModel = this.oDecisionTableCell.getModel("dtModel");
|
|
234
|
+
if (oResult.status === sap.rules.ui.ValidationStatus.Error) {
|
|
235
|
+
errorDetails = oResult.errorDetails.replace(/\r\n/g, " ").replace(/\r/g, " ").replace(/\n/g, " ");
|
|
236
|
+
this.setProperty("valueStateText", errorDetails);
|
|
237
|
+
dtModel.setProperty(valueStateTextPath.slice(8), errorDetails);
|
|
238
|
+
dtModel.setProperty(valueStatePath.slice(8), sap.ui.core.ValueState.Error);
|
|
239
|
+
} else {
|
|
240
|
+
this.setProperty("valueStateText", "");
|
|
241
|
+
dtModel.setProperty(valueStateTextPath.slice(8), "null");
|
|
242
|
+
dtModel.setProperty(valueStatePath.slice(8), sap.ui.core.ValueState.None);
|
|
243
|
+
}
|
|
237
244
|
}
|
|
238
245
|
}
|
|
239
246
|
};
|
|
@@ -6,16 +6,18 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
sap.ui.define(['
|
|
9
|
+
sap.ui.define(['sap/rules/ui/ExpressionBasicRenderer'],
|
|
10
10
|
|
|
11
|
-
function(
|
|
11
|
+
function(sapRulesUiExpressionBasicRenderer) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* DecisionTableCellExpressionBasic renderer.
|
|
16
16
|
* @namespace
|
|
17
17
|
*/
|
|
18
|
-
var DecisionTableCellExpressionBasicRenderer = {
|
|
18
|
+
var DecisionTableCellExpressionBasicRenderer = {
|
|
19
|
+
apiVersion: 2
|
|
20
|
+
};
|
|
19
21
|
/**
|
|
20
22
|
* Renders the HTML for the given control, using the provided
|
|
21
23
|
* {@link sap.ui.core.RenderManager}.
|
|
@@ -32,7 +34,7 @@ sap.ui.define(['jquery.sap.global', 'sap/rules/ui/ExpressionBasicRenderer'],
|
|
|
32
34
|
return;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
oRm.
|
|
37
|
+
oRm.class("sapRULTDecisionTableCellExpressionBasic");
|
|
36
38
|
|
|
37
39
|
sapRulesUiExpressionBasicRenderer.render(oRm, oControl);
|
|
38
40
|
};
|
|
@@ -5,16 +5,18 @@
|
|
|
5
5
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
sap.ui.define([
|
|
8
|
+
sap.ui.define([],
|
|
9
9
|
|
|
10
|
-
function(
|
|
10
|
+
function() {
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* DecisionTableCellExpressionAdvanced renderer.
|
|
15
15
|
* @namespace
|
|
16
16
|
*/
|
|
17
|
-
var DecisionTableCellRenderer = {
|
|
17
|
+
var DecisionTableCellRenderer = {
|
|
18
|
+
apiVersion: 2
|
|
19
|
+
};
|
|
18
20
|
/**
|
|
19
21
|
* Renders the HTML for the given control, using the provided
|
|
20
22
|
* {@link sap.ui.core.RenderManager}.
|
|
@@ -31,13 +33,11 @@ sap.ui.define(['jquery.sap.global'],
|
|
|
31
33
|
return;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
oRm.renderControl(oControl.getAggregation("_displayedControl"));
|
|
40
|
-
oRm.write("</div>");
|
|
36
|
+
oRm.openStart("div", oControl);
|
|
37
|
+
oRm.class("sapRULDecisionTableSCell");
|
|
38
|
+
oRm.openEnd();
|
|
39
|
+
oRm.renderControl(oControl.getAggregation("_displayedControl"));
|
|
40
|
+
oRm.close("div");
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
return DecisionTableCellRenderer;
|
|
@@ -1,165 +1,167 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
/*!
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
3
|
|
|
4
4
|
(c) Copyright 2009-2016 SAP SE. All rights reserved
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
sap.ui.define([
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
oRm.renderControl(oControl.getAggregation("
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
oRm.
|
|
136
|
-
oRm.
|
|
137
|
-
oRm.
|
|
138
|
-
oRm.
|
|
139
|
-
oRm.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/ui/thirdparty/jquery",
|
|
10
|
+
"sap/ui/core/Configuration",
|
|
11
|
+
"sap/ui/core/syncStyleClass"
|
|
12
|
+
], function(jQuery, Configuration, syncStyleClass) {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* OdataDecisionTable renderer.
|
|
17
|
+
* @namespace
|
|
18
|
+
*/
|
|
19
|
+
var DecisionTableRenderer = {
|
|
20
|
+
apiVersion: 2
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Renders the HTML for the given control, using the provided
|
|
25
|
+
* {@link sap.ui.core.RenderManager}.
|
|
26
|
+
*
|
|
27
|
+
* @param {sap.ui.core.RenderManager} oRm
|
|
28
|
+
* the RenderManager that can be used for writing to
|
|
29
|
+
* the Render-Output-Buffer
|
|
30
|
+
* @param {sap.ui.core.Control} oControl
|
|
31
|
+
* the control to be rendered
|
|
32
|
+
*/
|
|
33
|
+
DecisionTableRenderer.render = function(oRm, oControl) {
|
|
34
|
+
|
|
35
|
+
//oRm.addClass("sapUiSizeCozy");
|
|
36
|
+
if (oControl.getParent() instanceof jQuery){
|
|
37
|
+
syncStyleClass("sapUiSizeCozy", oControl.getParent(), this.oControl);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
var bAccessibility = Configuration.getAccessibility();
|
|
41
|
+
|
|
42
|
+
oRm.openStart("div", oControl);
|
|
43
|
+
oRm.class("sapRULDecisionTable");
|
|
44
|
+
// some controls need to have accessibility attributes applied one level up than the input
|
|
45
|
+
this.writeAccAttributes(oRm, oControl);
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
// accessibility states
|
|
49
|
+
if (bAccessibility) {
|
|
50
|
+
this.writeAccessibilityState(oRm, oControl);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
oRm.openEnd();
|
|
54
|
+
|
|
55
|
+
oRm.renderControl(oControl.getAggregation("_toolbar"));
|
|
56
|
+
oRm.renderControl(oControl.getAggregation("_errorsText"));
|
|
57
|
+
oRm.renderControl(oControl.getAggregation("_table"));
|
|
58
|
+
// finish outer
|
|
59
|
+
oRm.close("div");
|
|
60
|
+
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Writes the accessibility state of the control.
|
|
65
|
+
* Hook for the subclasses.
|
|
66
|
+
*
|
|
67
|
+
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer.
|
|
68
|
+
* @param {sap.ui.core.Control} oControl An object representation of the control that should be rendered.
|
|
69
|
+
*/
|
|
70
|
+
DecisionTableRenderer.writeAccessibilityState = function(oRm, oControl) {
|
|
71
|
+
oRm.accessibilityState(oControl, this.getAccessibilityState(oControl));
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Returns the accessibility state of the control.
|
|
76
|
+
* Hook for the subclasses.
|
|
77
|
+
*
|
|
78
|
+
* @param {sap.ui.core.Control} oControl an object representation of the control.
|
|
79
|
+
* @returns {Object}
|
|
80
|
+
*/
|
|
81
|
+
DecisionTableRenderer.getAccessibilityState = function(oControl) {
|
|
82
|
+
var sAriaRoleDescription = this.getRoleDescription(oControl),
|
|
83
|
+
sRole = this.getAriaRole(oControl),
|
|
84
|
+
mAccessibilityState = { };
|
|
85
|
+
|
|
86
|
+
if (sRole) {
|
|
87
|
+
mAccessibilityState.role = sRole;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (sAriaRoleDescription) {
|
|
91
|
+
mAccessibilityState.roledescription = {
|
|
92
|
+
value: sAriaRoleDescription.trim(),
|
|
93
|
+
append: true
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return mAccessibilityState;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Returns aria accessibility role for the control.
|
|
102
|
+
* Hook for the subclasses.
|
|
103
|
+
*
|
|
104
|
+
* @param {sap.ui.core.Control} oControl an object representation of the control
|
|
105
|
+
* @returns {String}
|
|
106
|
+
*/
|
|
107
|
+
DecisionTableRenderer.getAriaRole = function(oControl) {
|
|
108
|
+
return "grid";
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
DecisionTableRenderer.getRoleDescription = function(oControl) {
|
|
112
|
+
this.oBundle = sap.ui.getCore().getLibraryResourceBundle("sap.rules.ui.i18n");
|
|
113
|
+
return this.oBundle.getText("decisionTableReadOutString");
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* This method is reserved for derived class to add extra attributes for the container one level upper of input.
|
|
118
|
+
*
|
|
119
|
+
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer.
|
|
120
|
+
* @param {sap.ui.core.Control} oControl An object representation of the control that should be rendered.
|
|
121
|
+
*/
|
|
122
|
+
DecisionTableRenderer.writeAccAttributes = function(oRm, oControl) {};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Renders the hidden aria labelledby node for the accessibility.
|
|
126
|
+
* Hook for the subclasses.
|
|
127
|
+
*
|
|
128
|
+
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer.
|
|
129
|
+
* @param {sap.ui.core.Control} oControl An object representation of the control that should be rendered.
|
|
130
|
+
*/
|
|
131
|
+
DecisionTableRenderer.renderAriaRoleDescription = function(oRm, oControl) {
|
|
132
|
+
var sAnnouncement = this.getDescribedByAnnouncement(oControl);
|
|
133
|
+
if (sAnnouncement) {
|
|
134
|
+
|
|
135
|
+
oRm.openStart("span", oControl);
|
|
136
|
+
oRm.attr("id", oControl.getId() + "-roledescription");
|
|
137
|
+
oRm.attr("aria-hidden", "true");
|
|
138
|
+
oRm.class("sapUiInvisibleText");
|
|
139
|
+
oRm.openEnd();
|
|
140
|
+
oRm.text(sAnnouncement.trim());
|
|
141
|
+
oRm.close("span");
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* This method is reserved for derived class to add extra attributes for input container.
|
|
148
|
+
*
|
|
149
|
+
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer.
|
|
150
|
+
* @param {sap.ui.core.Control} oControl An object representation of the control that should be rendered.
|
|
151
|
+
*/
|
|
152
|
+
DecisionTableRenderer.writeOuterAttributes = function(oRm, oControl) {};
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Returns the inner aria describedby announcement texts for the accessibility.
|
|
156
|
+
* Hook for the subclasses.
|
|
157
|
+
*
|
|
158
|
+
* @param {sap.ui.core.Control} oControl an object representation of the control.
|
|
159
|
+
* @returns {String}
|
|
160
|
+
*/
|
|
161
|
+
DecisionTableRenderer.getDescribedByAnnouncement = function(oControl) {
|
|
162
|
+
return "";
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
return DecisionTableRenderer;
|
|
166
|
+
|
|
165
167
|
}, /* bExport= */ true);
|
|
@@ -27,10 +27,11 @@ sap.ui.define([
|
|
|
27
27
|
"sap/rules/ui/Constants",
|
|
28
28
|
"sap/rules/ui/AstExpressionBasic",
|
|
29
29
|
"sap/rules/ui/services/AstExpressionLanguage",
|
|
30
|
-
"sap/rules/ui/ast/util/AstUtil"
|
|
30
|
+
"sap/rules/ui/ast/util/AstUtil",
|
|
31
|
+
"./DecisionTableSettingsRenderer"
|
|
31
32
|
],
|
|
32
33
|
function (jQuery, library, Control, SimpleForm, Label, Switch, Select, MessageBox, Table, Text, CheckBox, Input, Button,
|
|
33
|
-
ExpressionAdvanced, VerticalLayout, ExpressionType, Constants, AstExpressionBasic, AstExpressionLanguage, AstUtil) {
|
|
34
|
+
ExpressionAdvanced, VerticalLayout, ExpressionType, Constants, AstExpressionBasic, AstExpressionLanguage, AstUtil, DecisionTableSettingsRenderer) {
|
|
34
35
|
"use strict";
|
|
35
36
|
|
|
36
37
|
/**
|
|
@@ -43,7 +44,7 @@ sap.ui.define([
|
|
|
43
44
|
* @extends Control
|
|
44
45
|
*
|
|
45
46
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
47
|
+
* @version 1.108.1
|
|
47
48
|
*
|
|
48
49
|
* @constructor
|
|
49
50
|
* @private
|
|
@@ -100,7 +101,8 @@ sap.ui.define([
|
|
|
100
101
|
},
|
|
101
102
|
events: {},
|
|
102
103
|
publicMethods: []
|
|
103
|
-
}
|
|
104
|
+
},
|
|
105
|
+
renderer: DecisionTableSettingsRenderer
|
|
104
106
|
});
|
|
105
107
|
|
|
106
108
|
sap.rules.ui.DecisionTableSettings.prototype._addColumnToJsonModel = function (sequence) {
|