@sapui5/sap.rules.ui 1.112.0 → 1.113.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/package.json +1 -1
- package/src/sap/rules/ui/.library +1 -1
- package/src/sap/rules/ui/BindingSpy.js +1 -1
- package/src/sap/rules/ui/DecisionTable.js +8 -6
- package/src/sap/rules/ui/DecisionTableCell.js +13 -3
- package/src/sap/rules/ui/DecisionTableCellAstExpressionBasic.js +1 -1
- package/src/sap/rules/ui/DecisionTableCellExpressionAdvanced.js +1 -1
- package/src/sap/rules/ui/DecisionTableCellExpressionBasic.js +1 -1
- package/src/sap/rules/ui/DecisionTableConfiguration.js +1 -1
- package/src/sap/rules/ui/DecisionTableSettings.js +1 -1
- package/src/sap/rules/ui/DecisionTableSettingsOld.js +1 -1
- package/src/sap/rules/ui/ExpressionBase.js +1 -1
- package/src/sap/rules/ui/ExpressionBasic.js +1 -1
- package/src/sap/rules/ui/RuleBase.js +1 -1
- package/src/sap/rules/ui/RuleBuilder.js +1 -1
- package/src/sap/rules/ui/TextRule.js +1 -1
- package/src/sap/rules/ui/TextRuleConfiguration.js +1 -1
- package/src/sap/rules/ui/TextRuleSettings.js +1 -1
- package/src/sap/rules/ui/library.js +1 -1
- package/src/sap/rules/ui/type/ExpressionAbs.js +1 -1
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ sap.ui.define([
|
|
|
58
58
|
* @extends Control
|
|
59
59
|
*
|
|
60
60
|
* @author SAP SE
|
|
61
|
-
* @version 1.
|
|
61
|
+
* @version 1.113.0
|
|
62
62
|
*
|
|
63
63
|
* @constructor
|
|
64
64
|
* @private
|
|
@@ -640,15 +640,16 @@ sap.ui.define([
|
|
|
640
640
|
var contextModel = oContext.getModel();
|
|
641
641
|
var bindingInfo = contextModel.aBindings;
|
|
642
642
|
this.columnWidth = "auto";
|
|
643
|
-
|
|
643
|
+
var _colIfThenHeader = this._createColIfThenHeader(oContext);
|
|
644
|
+
var _colDescriptionHeader = this._createColDescriptionHeader(oContext, this);
|
|
644
645
|
var column = new Column(sId, {
|
|
645
646
|
width: this.columnWidth,
|
|
646
647
|
minWidth : 128,
|
|
647
648
|
multiLabels: [
|
|
648
|
-
|
|
649
|
-
|
|
649
|
+
_colIfThenHeader, // The order of the labels is important!
|
|
650
|
+
_colDescriptionHeader
|
|
650
651
|
],
|
|
651
|
-
template: this._createCell(oContext) //, headerSpan: columnType === sap.rules.ui.DecisionTableColumn.Condition ? [this.iNumOfCondition, 1] : [this.iNumOfResults, 1]
|
|
652
|
+
template: this._createCell(oContext,_colDescriptionHeader.getId()) //, headerSpan: columnType === sap.rules.ui.DecisionTableColumn.Condition ? [this.iNumOfCondition, 1] : [this.iNumOfResults, 1]
|
|
652
653
|
});
|
|
653
654
|
|
|
654
655
|
relativePath = this._getBindModelName();
|
|
@@ -738,13 +739,14 @@ sap.ui.define([
|
|
|
738
739
|
this._cutCopyRow("copy");
|
|
739
740
|
},
|
|
740
741
|
|
|
741
|
-
_createCell: function (oContext) {
|
|
742
|
+
_createCell: function (oContext, sAriaLabelledId) {
|
|
742
743
|
var colID = oContext.getProperty("Id");
|
|
743
744
|
var colType = oContext.getProperty("Type");
|
|
744
745
|
|
|
745
746
|
var oCell = new DecisionTableCell({
|
|
746
747
|
editable: "{dtModel>/editable}",
|
|
747
748
|
displayModelName: "displayModel",
|
|
749
|
+
ariaLabelledBy: sAriaLabelledId,
|
|
748
750
|
decisionTableCellType: this._decisionTableCellFormatter
|
|
749
751
|
// type: sap.rules.ui.ExpressionType.BooleanEnhanced
|
|
750
752
|
}).data({
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.core.Control
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.113.0
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @public
|
|
@@ -205,7 +205,15 @@ sap.ui.define([
|
|
|
205
205
|
type: "sap.rules.ui.services.AstExpressionLanguage",
|
|
206
206
|
multiple: false,
|
|
207
207
|
singularName: "astExpressionLanguage"
|
|
208
|
-
}
|
|
208
|
+
},
|
|
209
|
+
/**
|
|
210
|
+
* Association to controls / IDs which label this control (see WAI-ARIA attribute <code>aria-labelledby</code>).
|
|
211
|
+
*/
|
|
212
|
+
ariaLabelledBy: {
|
|
213
|
+
type: "sap.ui.core.Control",
|
|
214
|
+
multiple: true,
|
|
215
|
+
singularName: "ariaLabelledBy"
|
|
216
|
+
}
|
|
209
217
|
}
|
|
210
218
|
},
|
|
211
219
|
|
|
@@ -339,7 +347,9 @@ sap.ui.define([
|
|
|
339
347
|
oDisplayedControl.destroy();
|
|
340
348
|
}
|
|
341
349
|
oDisplayedControl = new sap.m.Input({
|
|
342
|
-
|
|
350
|
+
ariaLabelledBy:this.getAriaLabelledBy(),
|
|
351
|
+
editable: false,
|
|
352
|
+
|
|
343
353
|
});
|
|
344
354
|
|
|
345
355
|
if(bEditable) {
|