@sapui5/sap.rules.ui 1.111.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.rules.ui",
3
- "version": "1.111.0",
3
+ "version": "1.113.0",
4
4
  "description": "SAPUI5 Library sap.rules.ui",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -7,7 +7,7 @@
7
7
 
8
8
  (c) Copyright 2009-2016 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.111.0</version>
10
+ <version>1.113.0</version>
11
11
 
12
12
  <documentation>UI5 library: sap.rules.ui</documentation>
13
13
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends ManagedObject
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.111.0
28
+ * @version 1.113.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -58,7 +58,7 @@ sap.ui.define([
58
58
  * @extends Control
59
59
  *
60
60
  * @author SAP SE
61
- * @version 1.111.0
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
- this._createColIfThenHeader(oContext), // The order of the labels is important!
649
- this._createColDescriptionHeader(oContext, this)
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.111.0
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
- editable: false
350
+ ariaLabelledBy:this.getAriaLabelledBy(),
351
+ editable: false,
352
+
343
353
  });
344
354
 
345
355
  if(bEditable) {
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.rules.ui.AstExpressionBasic
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.111.0
30
+ * @version 1.113.0
31
31
  *
32
32
  * @constructor
33
33
  * @private
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.rules.ui.ExpressionAdvanced
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.111.0
30
+ * @version 1.113.0
31
31
  *
32
32
  * @constructor
33
33
  * @private
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.rules.ui.ExpressionBasic
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.111.0
29
+ * @version 1.113.0
30
30
  *
31
31
  * @constructor
32
32
  * @private
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.core.Element
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.111.0
27
+ * @version 1.113.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  properties : {
40
40
  /**
41
41
  * The value determines the user input mode for the corresponding rule cells when creating or editing a rule.
42
- * @deprecated This attribute is deprecated since version 1.52.8, use the decisionTableFormat property.
42
+ * @deprecated Since 1.52.8, use the decisionTableFormat property.
43
43
  */
44
44
  cellFormat: {
45
45
  type: "sap.rules.ui.DecisionTableCellFormat",
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  * @extends Control
45
45
  *
46
46
  * @author SAP SE
47
- * @version 1.111.0
47
+ * @version 1.113.0
48
48
  *
49
49
  * @constructor
50
50
  * @private
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends Control
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.111.0
41
+ * @version 1.113.0
42
42
  *
43
43
  * @constructor
44
44
  * @private
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.Control
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.111.0
25
+ * @version 1.113.0
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends Control
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.111.0
29
+ * @version 1.113.0
30
30
  *
31
31
  * @constructor
32
32
  * @private
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends Control
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.111.0
27
+ * @version 1.113.0
28
28
  *
29
29
  * @constructor
30
30
  * @private
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.ui.core.Control
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.111.0
37
+ * @version 1.113.0
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -47,7 +47,7 @@ sap.ui.define(["sap/base/Log","sap/ui/thirdparty/jquery",
47
47
  * @extends Control
48
48
  *
49
49
  * @author SAP SE
50
- * @version 1.111.0
50
+ * @version 1.113.0
51
51
  *
52
52
  * @constructor
53
53
  * @private
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.core.Element
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.111.0
27
+ * @version 1.113.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @extends Control
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.111.0
48
+ * @version 1.113.0
49
49
  *
50
50
  * @constructor
51
51
  * @private
@@ -110,14 +110,18 @@ sap.ui.define([
110
110
  hasValueSource = false;
111
111
  }
112
112
  //The invisible text is introduced to identify the input field by screen reader.
113
- this._invisibleText = new sap.ui.core.InvisibleText({
113
+ this._invisibleTextLabel = new sap.ui.core.InvisibleText({
114
+ text:this.oBundle.getText("fixedValuePanelTitle")
115
+ })
116
+ this._invisibleTextDescription = new sap.ui.core.InvisibleText({
114
117
  text:this.oBundle.getText("fixedValueInvisibleText")
115
118
  });
116
119
  this.fixedValueTextArea = new sap.m.Input({
117
120
  showValueHelp: hasValueSource,
118
121
  showSuggestion: true,
119
122
  autocomplete: false,
120
- ariaLabelledBy: this._invisibleText.getId(),
123
+ ariaLabelledBy: this._invisibleTextLabel.getId(),
124
+ ariaDescribedBy: this._invisibleTextDescription.getId(),
121
125
  valueHelpRequest: function () {
122
126
  that._dialogOpenedCallbackReference(true);
123
127
  that._setModal(true);
@@ -137,7 +141,7 @@ sap.ui.define([
137
141
  headerText: this.oBundle.getText("fixedValuePanelTitle"),
138
142
  expandable: true,
139
143
  expanded: false,
140
- content: [this._invisibleText, this.fixedValueTextArea],
144
+ content: [this._invisibleTextLabel, this._invisibleTextDescription, this.fixedValueTextArea],
141
145
  width: "auto"
142
146
  })
143
147
 
@@ -85,7 +85,7 @@ sap.ui.define([
85
85
  "sap.rules.ui.type.Expression"
86
86
  ],
87
87
  noLibraryCSS: false,
88
- version: "1.111.0"
88
+ version: "1.113.0"
89
89
  });
90
90
 
91
91
  // sap.rules.ui library contants
@@ -173,7 +173,7 @@ sap.ui.define([
173
173
  *
174
174
  * @enum {string}
175
175
  * @public
176
- * @deprecated This attribute is deprecated since version 1.52.8, use the property decisionTableFormat.
176
+ * @deprecated Since 1.52.8, use the property decisionTableFormat.
177
177
  */
178
178
  rulesUI.DecisionTableCellFormat = {
179
179
  /**
@@ -230,7 +230,7 @@ sap.ui.define([
230
230
  /**
231
231
  * Specifies that the rendering of a cell is based on cellFormat and each cell can have a different format during rendering
232
232
  * @public
233
- * @deprecated This attribute is deprecated since version 1.52.8, use the attribute RuleFormat instead.
233
+ * @deprecated Since 1.52.8, use the attribute RuleFormat instead.
234
234
  */
235
235
  CellFormat: "CELLFORMAT",
236
236
  /**
@@ -18,7 +18,7 @@ sap.ui.define(["jquery.sap.global"], function(jQuery) {
18
18
  * @extends sap.ui.model.CompositeType
19
19
  *
20
20
  * @author SAP SE
21
- * @version 1.111.0
21
+ * @version 1.113.0
22
22
  *
23
23
  * @constructor
24
24
  * @private