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