@openui5/sap.ui.table 1.139.2 → 1.139.3
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.toml +1 -1
- package/THIRDPARTY.txt +2 -2
- package/package.json +3 -3
- package/src/sap/ui/table/.library +1 -1
- package/src/sap/ui/table/AnalyticalColumn.js +1 -1
- package/src/sap/ui/table/AnalyticalColumnMenu.js +1 -1
- package/src/sap/ui/table/AnalyticalTable.js +1 -1
- package/src/sap/ui/table/Column.js +1 -1
- package/src/sap/ui/table/ColumnMenu.js +1 -1
- package/src/sap/ui/table/CreationRow.js +1 -1
- package/src/sap/ui/table/Row.js +1 -1
- package/src/sap/ui/table/RowAction.js +1 -1
- package/src/sap/ui/table/RowActionItem.js +1 -1
- package/src/sap/ui/table/RowSettings.js +1 -1
- package/src/sap/ui/table/Table.js +1 -1
- package/src/sap/ui/table/TablePersoController.js +1 -1
- package/src/sap/ui/table/TableRenderer.js +42 -23
- package/src/sap/ui/table/TreeTable.js +1 -1
- package/src/sap/ui/table/extensions/Accessibility.js +47 -15
- package/src/sap/ui/table/extensions/AccessibilityRender.js +1 -1
- package/src/sap/ui/table/extensions/DragAndDrop.js +1 -1
- package/src/sap/ui/table/extensions/ExtensionBase.js +1 -1
- package/src/sap/ui/table/extensions/Keyboard.js +1 -1
- package/src/sap/ui/table/extensions/KeyboardDelegate.js +1 -1
- package/src/sap/ui/table/extensions/Pointer.js +1 -1
- package/src/sap/ui/table/extensions/Scrolling.js +1 -1
- package/src/sap/ui/table/extensions/ScrollingIOS.js +1 -1
- package/src/sap/ui/table/extensions/Synchronization.js +1 -1
- package/src/sap/ui/table/library.js +10 -10
- package/src/sap/ui/table/menus/AnalyticalTableContextMenu.js +1 -1
- package/src/sap/ui/table/menus/ColumnHeaderMenuAdapter.js +1 -1
- package/src/sap/ui/table/menus/ContextMenu.js +1 -1
- package/src/sap/ui/table/menus/MobileColumnHeaderMenuAdapter.js +1 -1
- package/src/sap/ui/table/messagebundle.properties +6 -0
- package/src/sap/ui/table/plugins/BindingSelection.js +1 -1
- package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +1 -1
- package/src/sap/ui/table/plugins/ODataV4Selection.js +1 -1
- package/src/sap/ui/table/plugins/PluginBase.js +1 -1
- package/src/sap/ui/table/plugins/SelectionModelSelection.js +1 -1
- package/src/sap/ui/table/plugins/SelectionPlugin.js +1 -1
- package/src/sap/ui/table/plugins/V4Aggregation.js +1 -1
- package/src/sap/ui/table/rowmodes/Auto.js +1 -1
- package/src/sap/ui/table/rowmodes/Fixed.js +1 -1
- package/src/sap/ui/table/rowmodes/Interactive.js +1 -1
- package/src/sap/ui/table/rowmodes/RowMode.js +1 -1
- package/src/sap/ui/table/rowmodes/Variable.js +1 -1
- package/src/sap/ui/table/rules/ColumnTemplate.support.js +2 -7
- package/src/sap/ui/table/utils/TableUtils.js +1 -1
- package/src/sap/ui/table/utils/_ColumnUtils.js +1 -1
- package/src/sap/ui/table/utils/_GroupingUtils.js +1 -1
- package/src/sap/ui/table/utils/_HookUtils.js +1 -1
- package/src/sap/ui/table/utils/_MenuUtils.js +1 -1
package/REUSE.toml
CHANGED
|
@@ -347,7 +347,7 @@ SPDX-FileComment = "these files belong to: handlebars"
|
|
|
347
347
|
[[annotations]]
|
|
348
348
|
path = "src/sap.ui.core/src/sap/ui/thirdparty/require.js"
|
|
349
349
|
precedence = "aggregate"
|
|
350
|
-
SPDX-FileCopyrightText = "2010-
|
|
350
|
+
SPDX-FileCopyrightText = "2010-2024, jQuery Foundation and other contributors"
|
|
351
351
|
SPDX-License-Identifier = "MIT"
|
|
352
352
|
SPDX-FileComment = "these files belong to: requireJS"
|
|
353
353
|
|
package/THIRDPARTY.txt
CHANGED
|
@@ -221,8 +221,8 @@ License: MIT
|
|
|
221
221
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
|
|
222
222
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/handlebars.js
|
|
223
223
|
|
|
224
|
-
Component: requireJS, version: 2.
|
|
225
|
-
Copyright: 2010-
|
|
224
|
+
Component: requireJS, version: 2.3.7
|
|
225
|
+
Copyright: 2010-2024, jQuery Foundation and other contributors
|
|
226
226
|
License: MIT
|
|
227
227
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
|
|
228
228
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/require.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.table",
|
|
3
|
-
"version": "1.139.
|
|
3
|
+
"version": "1.139.3",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.table",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/UI5/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.139.
|
|
18
|
-
"@openui5/sap.ui.unified": "1.139.
|
|
17
|
+
"@openui5/sap.ui.core": "1.139.3",
|
|
18
|
+
"@openui5/sap.ui.unified": "1.139.3"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.139.
|
|
9
|
+
<version>1.139.3</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Table-like controls, mainly for desktop scenarios.</documentation>
|
|
12
12
|
|
package/src/sap/ui/table/Row.js
CHANGED
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* If more action items are available as the available space allows to display an overflow mechanism is provided.
|
|
36
36
|
* This control must only be used in the context of the <code>sap.ui.table.Table</code> control to define row actions.
|
|
37
37
|
* @extends sap.ui.core.Control
|
|
38
|
-
* @version 1.139.
|
|
38
|
+
* @version 1.139.3
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @public
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* The <code>RowSettings</code> control allows you to configure a row.
|
|
28
28
|
* You can only use this control in the context of the <code>sap.ui.table.Table</code> control to define row settings.
|
|
29
29
|
* @extends sap.ui.core.Element
|
|
30
|
-
* @version 1.139.
|
|
30
|
+
* @version 1.139.3
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @public
|
|
@@ -97,6 +97,7 @@ sap.ui.define([
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
const oScrollExtension = oTable._getScrollExtension();
|
|
100
|
+
const oAccRenderExtension = oTable._getAccRenderExtension();
|
|
100
101
|
if (oScrollExtension.isVerticalScrollbarRequired() && !oScrollExtension.isVerticalScrollbarExternal()) {
|
|
101
102
|
rm.class("sapUiTableVScr"); // show vertical scrollbar
|
|
102
103
|
}
|
|
@@ -179,7 +180,7 @@ sap.ui.define([
|
|
|
179
180
|
this.renderTabElement(rm, "sapUiTableCtrlBefore", bDummyTabbable ? "0" : "-1");
|
|
180
181
|
|
|
181
182
|
rm.openStart("div", oTable.getId() + "-sapUiTableGridCnt");
|
|
182
|
-
|
|
183
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "Content");
|
|
183
184
|
rm.openEnd();
|
|
184
185
|
|
|
185
186
|
this.renderColRsz(rm, oTable);
|
|
@@ -199,12 +200,12 @@ sap.ui.define([
|
|
|
199
200
|
this.renderHSbBackground(rm, oTable);
|
|
200
201
|
this.renderHSb(rm, oTable);
|
|
201
202
|
|
|
202
|
-
|
|
203
|
+
oAccRenderExtension.writeHiddenAccTexts(rm, oTable);
|
|
203
204
|
|
|
204
205
|
rm.openStart("div", oTable.getId() + "-overlay");
|
|
205
206
|
rm.class("sapUiTableOverlayArea");
|
|
206
207
|
rm.attr("tabindex", "0");
|
|
207
|
-
|
|
208
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "Overlay");
|
|
208
209
|
rm.openEnd();
|
|
209
210
|
rm.close("div");
|
|
210
211
|
|
|
@@ -408,12 +409,28 @@ sap.ui.define([
|
|
|
408
409
|
let bEnabled = false;
|
|
409
410
|
let bSelAll = false;
|
|
410
411
|
const mRenderConfig = oTable._getSelectionPlugin().getRenderConfig();
|
|
412
|
+
const oAccRenderExtension = oTable._getAccRenderExtension();
|
|
411
413
|
|
|
412
414
|
rm.openStart("div");
|
|
413
|
-
|
|
415
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "ColumnRowHeaderRow");
|
|
414
416
|
rm.openEnd();
|
|
415
|
-
|
|
416
|
-
|
|
417
|
+
|
|
418
|
+
const iHeaderRowCount = TableUtils.getHeaderRowCount(oTable);
|
|
419
|
+
if (iHeaderRowCount > 1) {
|
|
420
|
+
// In multi label scenario extra hidden cells are rendered in order to maintain correct aria-ownns relationship for each header row. They
|
|
421
|
+
// are rendered in the same row which does not affect the announcement because the row has aria-hidden.
|
|
422
|
+
for (let i = 0; i < iHeaderRowCount - 1; i++) {
|
|
423
|
+
rm.openStart("div", oTable.getId() + "-rowcolhdr" + i);
|
|
424
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "ColumnRowHeaderCell", {bLabel: false});
|
|
425
|
+
rm.openEnd();
|
|
426
|
+
rm.close("div");
|
|
427
|
+
}
|
|
428
|
+
rm.openStart("div", oTable.getId() + "-rowcolhdr" + (iHeaderRowCount - 1));
|
|
429
|
+
} else {
|
|
430
|
+
rm.openStart("div", oTable.getId() + "-rowcolhdr");
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "ColumnRowHeaderCell", {bLabel: true});
|
|
417
434
|
rm.openEnd();
|
|
418
435
|
rm.openStart("div", oTable.getId() + "-selall");
|
|
419
436
|
|
|
@@ -451,7 +468,7 @@ sap.ui.define([
|
|
|
451
468
|
enabled: bEnabled,
|
|
452
469
|
checked: bSelAll
|
|
453
470
|
};
|
|
454
|
-
|
|
471
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "ColumnRowHeader", oParams);
|
|
455
472
|
|
|
456
473
|
rm.openEnd();
|
|
457
474
|
|
|
@@ -620,11 +637,12 @@ sap.ui.define([
|
|
|
620
637
|
// =============================================================================
|
|
621
638
|
|
|
622
639
|
TableRenderer.renderRowHdr = function(rm, oTable) {
|
|
640
|
+
const oAccRenderExtension = oTable._getAccRenderExtension();
|
|
623
641
|
rm.openStart("div", oTable.getId() + "-sapUiTableRowHdrScr");
|
|
624
|
-
|
|
642
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "Presentation");
|
|
625
643
|
rm.class("sapUiTableRowHdrScr");
|
|
626
644
|
rm.class("sapUiTableNoOpacity");
|
|
627
|
-
|
|
645
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "RowHeaderCol");
|
|
628
646
|
rm.openEnd();
|
|
629
647
|
|
|
630
648
|
// start with the first current top visible row
|
|
@@ -681,9 +699,10 @@ sap.ui.define([
|
|
|
681
699
|
|
|
682
700
|
TableRenderer.renderRowAddon = function(rm, oTable, oRow, iRowIndex, bHeader) {
|
|
683
701
|
const bRowSelected = oRow._isSelected();
|
|
702
|
+
const oAccRenderExtension = oTable._getAccRenderExtension();
|
|
684
703
|
|
|
685
704
|
rm.openStart("div");
|
|
686
|
-
|
|
705
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "RowAddon");
|
|
687
706
|
|
|
688
707
|
rm.attr("data-sap-ui-related", oRow.getId());
|
|
689
708
|
rm.attr("data-sap-ui-rowindex", iRowIndex);
|
|
@@ -718,7 +737,7 @@ sap.ui.define([
|
|
|
718
737
|
rowSelected: bRowSelected,
|
|
719
738
|
rowHidden: oRow.isEmpty()
|
|
720
739
|
};
|
|
721
|
-
|
|
740
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, bHeader ? "RowHeader" : "RowAction", oParams);
|
|
722
741
|
|
|
723
742
|
rm.openEnd();
|
|
724
743
|
if (bHeader) {
|
|
@@ -817,7 +836,8 @@ sap.ui.define([
|
|
|
817
836
|
rm.class(sClass);
|
|
818
837
|
});
|
|
819
838
|
|
|
820
|
-
oTable._getAccRenderExtension()
|
|
839
|
+
const oAccRenderExtension = oTable._getAccRenderExtension();
|
|
840
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, bHeader ? "Presentation" : "Table");
|
|
821
841
|
|
|
822
842
|
rm.class("sapUiTableCtrl");
|
|
823
843
|
if (bHeader) {
|
|
@@ -883,7 +903,7 @@ sap.ui.define([
|
|
|
883
903
|
if (oColParam.shouldRender) {
|
|
884
904
|
if (iStartRow === 0) {
|
|
885
905
|
rm.openStart("th", oTable.getId() + sSuffix + iCol);
|
|
886
|
-
|
|
906
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "Th", {column: oColumn});
|
|
887
907
|
} else {
|
|
888
908
|
rm.openStart("th");
|
|
889
909
|
}
|
|
@@ -908,7 +928,7 @@ sap.ui.define([
|
|
|
908
928
|
// dummy column to fill the table width
|
|
909
929
|
if (bRenderDummyColumn) {
|
|
910
930
|
rm.openStart("th", bHeader && oTable.getId() + "-dummycolhdr");
|
|
911
|
-
|
|
931
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "Presentation");
|
|
912
932
|
rm.openEnd().close("th");
|
|
913
933
|
}
|
|
914
934
|
|
|
@@ -1009,7 +1029,8 @@ sap.ui.define([
|
|
|
1009
1029
|
rm.class("sapUiTableRow");
|
|
1010
1030
|
rm.class("sapUiTableHeaderRow");
|
|
1011
1031
|
rm.class("sapUiTableColHdrTr");
|
|
1012
|
-
oTable._getAccRenderExtension()
|
|
1032
|
+
const oAccRenderExtension = oTable._getAccRenderExtension();
|
|
1033
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "ColumnHeaderRow", {rowIndex: iRow, fixedCol: bFixedTable});
|
|
1013
1034
|
rm.openEnd();
|
|
1014
1035
|
|
|
1015
1036
|
//
|
|
@@ -1061,7 +1082,7 @@ sap.ui.define([
|
|
|
1061
1082
|
|
|
1062
1083
|
if (!bFixedTable && bHasOnlyFixedColumns && aColumns.length > 0) {
|
|
1063
1084
|
rm.openStart("td").class("sapUiTableCellDummy");
|
|
1064
|
-
|
|
1085
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "Presentation");
|
|
1065
1086
|
rm.openEnd().close("td");
|
|
1066
1087
|
}
|
|
1067
1088
|
rm.close("tr");
|
|
@@ -1111,7 +1132,8 @@ sap.ui.define([
|
|
|
1111
1132
|
fixedCol: bFixedTable,
|
|
1112
1133
|
rowNavigated: oRowSettings ? oRowSettings.getNavigated() : false
|
|
1113
1134
|
};
|
|
1114
|
-
oTable._getAccRenderExtension()
|
|
1135
|
+
const oAccRenderExtension = oTable._getAccRenderExtension();
|
|
1136
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "Tr", oParams);
|
|
1115
1137
|
|
|
1116
1138
|
rm.openEnd();
|
|
1117
1139
|
|
|
@@ -1123,14 +1145,14 @@ sap.ui.define([
|
|
|
1123
1145
|
}
|
|
1124
1146
|
if (!bFixedTable && bHasOnlyFixedColumns && aCells.length > 0) {
|
|
1125
1147
|
rm.openStart("td").class("sapUiTableCellDummy");
|
|
1126
|
-
|
|
1148
|
+
oAccRenderExtension.writeAriaAttributesFor(rm, oTable, "Presentation");
|
|
1127
1149
|
rm.openEnd();
|
|
1128
1150
|
rm.close("td");
|
|
1129
1151
|
}
|
|
1130
1152
|
rm.close("tr");
|
|
1131
1153
|
};
|
|
1132
1154
|
|
|
1133
|
-
TableRenderer.renderTableCell = function(rm, oTable, oRow, oCell, iCellIndex, bFixedTable, iStartColumn, iEndColumn, aVisibleColumns, iLastFixedColumnIndex
|
|
1155
|
+
TableRenderer.renderTableCell = function(rm, oTable, oRow, oCell, iCellIndex, bFixedTable, iStartColumn, iEndColumn, aVisibleColumns, iLastFixedColumnIndex) {
|
|
1134
1156
|
const oColumn = Column.ofCell(oCell);
|
|
1135
1157
|
const iColIndex = oColumn.getIndex();
|
|
1136
1158
|
|
|
@@ -1146,10 +1168,7 @@ sap.ui.define([
|
|
|
1146
1168
|
const bIsLastFixedColumn = bFixedTable && iLastFixedColumnIndex === iColIndex;
|
|
1147
1169
|
|
|
1148
1170
|
const oParams = {
|
|
1149
|
-
column: oColumn
|
|
1150
|
-
row: oRow,
|
|
1151
|
-
fixed: bFixedTable,
|
|
1152
|
-
rowSelected: bSelected
|
|
1171
|
+
column: oColumn
|
|
1153
1172
|
};
|
|
1154
1173
|
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "DataCell", oParams);
|
|
1155
1174
|
|
|
@@ -634,10 +634,26 @@ sap.ui.define([
|
|
|
634
634
|
|
|
635
635
|
/**
|
|
636
636
|
* Returns the aria attributes for the column row header cell.
|
|
637
|
+
*
|
|
638
|
+
* @param {sap.ui.table.extensions.Accessibility} oExtension The accessibility extension
|
|
639
|
+
* @param {{bLabel: boolean}} mParams Whether an aria-label should be added
|
|
637
640
|
* @returns {object} An object containing the aria attributes
|
|
638
641
|
*/
|
|
639
|
-
getAriaAttributesForColumnRowHeaderCell: function() {
|
|
640
|
-
|
|
642
|
+
getAriaAttributesForColumnRowHeaderCell: function(oExtension, mParams) {
|
|
643
|
+
const mAttributes = {"role": "columnheader"};
|
|
644
|
+
const oTable = oExtension.getTable();
|
|
645
|
+
const sSelectionMode = oTable.getSelectionMode();
|
|
646
|
+
|
|
647
|
+
if (mParams.bLabel) {
|
|
648
|
+
if (sSelectionMode !== SelectionMode.None) {
|
|
649
|
+
mAttributes["aria-label"] = TableUtils.getResourceText("TBL_TABLE_SELECTION_COLUMNHEADER");
|
|
650
|
+
} else if (TableUtils.hasRowHeader(oTable)) {
|
|
651
|
+
// Table has no selection, but because group mode is active, selection column is still visible with focusable row header cells.
|
|
652
|
+
mAttributes["aria-label"] = TableUtils.getResourceText("TBL_ROW_SELECTION_COLUMN_LABEL");
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
return mAttributes;
|
|
641
657
|
},
|
|
642
658
|
|
|
643
659
|
/**
|
|
@@ -725,8 +741,8 @@ sap.ui.define([
|
|
|
725
741
|
* Returns the aria attributes for a column header.
|
|
726
742
|
*
|
|
727
743
|
* @param {sap.ui.table.extensions.Accessibility} oExtension The accessibility extension
|
|
728
|
-
* @param {{column: sap.ui.table.Column, headerId: string,
|
|
729
|
-
* column, the id of the header cell,
|
|
744
|
+
* @param {{column: sap.ui.table.Column, headerId: string, colspan: boolean}} mParams An object containing the instance of the
|
|
745
|
+
* column, the id of the header cell, and whether the column has span
|
|
730
746
|
* @returns {object} An object containing the aria attributes
|
|
731
747
|
*/
|
|
732
748
|
getAriaAttributesForColumnHeader: function(oExtension, mParams) {
|
|
@@ -778,9 +794,7 @@ sap.ui.define([
|
|
|
778
794
|
* Returns the aria attributes for a data cell.
|
|
779
795
|
*
|
|
780
796
|
* @param {sap.ui.table.extensions.Accessibility} oExtension The accessibility extension
|
|
781
|
-
* @param {{
|
|
782
|
-
* containing the index of the row, the instance of the column, the instance of the row, whether the column is fixed and whether the row is
|
|
783
|
-
* selected
|
|
797
|
+
* @param {{column: sap.ui.table.Column}} mParams An object containing the instance of the column
|
|
784
798
|
* @returns {object} An object containing the aria attributes
|
|
785
799
|
*/
|
|
786
800
|
getAriaAttributesForDataCell: function(oExtension, mParams) {
|
|
@@ -891,23 +905,37 @@ sap.ui.define([
|
|
|
891
905
|
* Returns the aria attributes for the row that contains the column headers.
|
|
892
906
|
*
|
|
893
907
|
* @param {sap.ui.table.extensions.Accessibility} oExtension The accessibility extension
|
|
894
|
-
* @param {
|
|
895
|
-
* @param {int} mParams.rowIndex The index of the row
|
|
908
|
+
* @param {{rowIndex: int, fixedCol: boolean}} mParams An object containing the index of the row and whether the column is fixed
|
|
896
909
|
* @returns {object} An object containing the aria attributes
|
|
897
910
|
*/
|
|
898
911
|
getAriaAttributesForColumnHeaderRow: function(oExtension, mParams) {
|
|
899
912
|
const mAttributes = {"role": "row"};
|
|
913
|
+
if (mParams.fixedCol) {
|
|
914
|
+
return mAttributes;
|
|
915
|
+
}
|
|
900
916
|
const oTable = oExtension.getTable();
|
|
901
917
|
const sTableId = oTable.getId();
|
|
902
918
|
|
|
903
919
|
mAttributes["aria-rowindex"] = mParams.rowIndex + 1;
|
|
904
920
|
mAttributes["aria-owns"] = [];
|
|
905
|
-
if (TableUtils.hasRowHeader(oTable)) {
|
|
906
|
-
mAttributes["aria-owns"].push(sTableId + "-rowcolhdr");
|
|
907
|
-
}
|
|
908
921
|
|
|
909
|
-
|
|
910
|
-
|
|
922
|
+
const aVisibleColumns = oTable._getVisibleColumns();
|
|
923
|
+
if (TableUtils.getHeaderRowCount(oTable) > 1) {
|
|
924
|
+
if (TableUtils.hasRowHeader(oTable)) {
|
|
925
|
+
mAttributes["aria-owns"].push(sTableId + "-rowcolhdr" + mParams.rowIndex);
|
|
926
|
+
}
|
|
927
|
+
let j = 0;
|
|
928
|
+
while (j < TableUtils.getVisibleColumnCount(oTable)) {
|
|
929
|
+
mAttributes["aria-owns"].push(aVisibleColumns[j].getId() + (mParams.rowIndex > 0 ? "_" + mParams.rowIndex : ""));
|
|
930
|
+
j += parseInt(aVisibleColumns[j].getHeaderSpan()[mParams.rowIndex]) || 1;
|
|
931
|
+
}
|
|
932
|
+
} else {
|
|
933
|
+
if (TableUtils.hasRowHeader(oTable)) {
|
|
934
|
+
mAttributes["aria-owns"].push(sTableId + "-rowcolhdr");
|
|
935
|
+
}
|
|
936
|
+
for (let j = 0; j < TableUtils.getVisibleColumnCount(oTable); j++) {
|
|
937
|
+
mAttributes["aria-owns"].push(aVisibleColumns[j].getId());
|
|
938
|
+
}
|
|
911
939
|
}
|
|
912
940
|
|
|
913
941
|
if (TableUtils.hasRowActions(oTable)) {
|
|
@@ -978,6 +1006,10 @@ sap.ui.define([
|
|
|
978
1006
|
mAttributes["aria-current"] = true;
|
|
979
1007
|
}
|
|
980
1008
|
|
|
1009
|
+
if (mParams.fixedCol) {
|
|
1010
|
+
return mAttributes;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
981
1013
|
mAttributes["aria-owns"] = [];
|
|
982
1014
|
if (TableUtils.hasRowHeader(oTable)) {
|
|
983
1015
|
mAttributes["aria-owns"].push(sTableId + "-rowsel" + mParams.index);
|
|
@@ -1143,7 +1175,7 @@ sap.ui.define([
|
|
|
1143
1175
|
* @class Extension for sap.ui.table.Table which handles ACC related things.
|
|
1144
1176
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
1145
1177
|
* @author SAP SE
|
|
1146
|
-
* @version 1.139.
|
|
1178
|
+
* @version 1.139.3
|
|
1147
1179
|
* @constructor
|
|
1148
1180
|
* @private
|
|
1149
1181
|
* @alias sap.ui.table.extensions.Accessibility
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* @class Extension for sap.ui.table.TableRenderer which handles ACC related things.
|
|
45
45
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
46
46
|
* @author SAP SE
|
|
47
|
-
* @version 1.139.
|
|
47
|
+
* @version 1.139.3
|
|
48
48
|
* @constructor
|
|
49
49
|
* @private
|
|
50
50
|
* @alias sap.ui.table.extensions.AccessibilityRender
|
|
@@ -265,7 +265,7 @@ sap.ui.define([
|
|
|
265
265
|
* @class Extension for sap.ui.table.Table which handles keyboard related things.
|
|
266
266
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
267
267
|
* @author SAP SE
|
|
268
|
-
* @version 1.139.
|
|
268
|
+
* @version 1.139.3
|
|
269
269
|
* @constructor
|
|
270
270
|
* @private
|
|
271
271
|
* @alias sap.ui.table.extensions.Keyboard
|
|
@@ -668,7 +668,7 @@ sap.ui.define([
|
|
|
668
668
|
* @class Extension for sap.ui.table.Table which handles mouse and touch related things.
|
|
669
669
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
670
670
|
* @author SAP SE
|
|
671
|
-
* @version 1.139.
|
|
671
|
+
* @version 1.139.3
|
|
672
672
|
* @constructor
|
|
673
673
|
* @private
|
|
674
674
|
* @alias sap.ui.table.extensions.Pointer
|
|
@@ -2327,7 +2327,7 @@ sap.ui.define([
|
|
|
2327
2327
|
* @class Extension for sap.ui.table.Table which handles scrolling.
|
|
2328
2328
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
2329
2329
|
* @author SAP SE
|
|
2330
|
-
* @version 1.139.
|
|
2330
|
+
* @version 1.139.3
|
|
2331
2331
|
* @constructor
|
|
2332
2332
|
* @private
|
|
2333
2333
|
* @alias sap.ui.table.extensions.Scrolling
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @class Extension for sap.ui.table.Table which handles the scrollbar on iOS.
|
|
28
28
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.139.
|
|
30
|
+
* @version 1.139.3
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @alias sap.ui.table.extensions.ScrollingIOS
|
|
@@ -185,7 +185,7 @@ sap.ui.define([
|
|
|
185
185
|
* @class Extension for sap.ui.table.Table that allows synchronization with a table.
|
|
186
186
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
187
187
|
* @author SAP SE
|
|
188
|
-
* @version 1.139.
|
|
188
|
+
* @version 1.139.3
|
|
189
189
|
* @constructor
|
|
190
190
|
* @private
|
|
191
191
|
* @alias sap.ui.table.extensions.Synchronization
|
|
@@ -27,14 +27,14 @@ sap.ui.define([
|
|
|
27
27
|
* @namespace
|
|
28
28
|
* @alias sap.ui.table
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.139.
|
|
30
|
+
* @version 1.139.3
|
|
31
31
|
* @since 0.8
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
34
|
const thisLib = Library.init({
|
|
35
35
|
name: "sap.ui.table",
|
|
36
36
|
apiVersion: 2,
|
|
37
|
-
version: "1.139.
|
|
37
|
+
version: "1.139.3",
|
|
38
38
|
dependencies: ["sap.ui.core", "sap.ui.unified"],
|
|
39
39
|
...{
|
|
40
40
|
interactionDocumentation: true
|
|
@@ -98,7 +98,7 @@ sap.ui.define([
|
|
|
98
98
|
/**
|
|
99
99
|
* Navigation mode of the table
|
|
100
100
|
*
|
|
101
|
-
* @version 1.139.
|
|
101
|
+
* @version 1.139.3
|
|
102
102
|
* @enum {string}
|
|
103
103
|
* @deprecated As of version 1.38, the concept has been discarded.
|
|
104
104
|
* @public
|
|
@@ -129,7 +129,7 @@ sap.ui.define([
|
|
|
129
129
|
/**
|
|
130
130
|
* Row Action types.
|
|
131
131
|
*
|
|
132
|
-
* @version 1.139.
|
|
132
|
+
* @version 1.139.3
|
|
133
133
|
* @enum {string}
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
@@ -160,7 +160,7 @@ sap.ui.define([
|
|
|
160
160
|
/**
|
|
161
161
|
* Selection behavior of the table
|
|
162
162
|
*
|
|
163
|
-
* @version 1.139.
|
|
163
|
+
* @version 1.139.3
|
|
164
164
|
* @enum {string}
|
|
165
165
|
* @public
|
|
166
166
|
*/
|
|
@@ -191,7 +191,7 @@ sap.ui.define([
|
|
|
191
191
|
/**
|
|
192
192
|
* Selection mode of the table
|
|
193
193
|
*
|
|
194
|
-
* @version 1.139.
|
|
194
|
+
* @version 1.139.3
|
|
195
195
|
* @enum {string}
|
|
196
196
|
* @public
|
|
197
197
|
*/
|
|
@@ -229,7 +229,7 @@ sap.ui.define([
|
|
|
229
229
|
/**
|
|
230
230
|
* Sort order of a column
|
|
231
231
|
*
|
|
232
|
-
* @version 1.139.
|
|
232
|
+
* @version 1.139.3
|
|
233
233
|
* @enum {string}
|
|
234
234
|
* @public
|
|
235
235
|
* @deprecated As of version 1.120, replaced with <code>sap.ui.core.SortOrder</code>
|
|
@@ -256,7 +256,7 @@ sap.ui.define([
|
|
|
256
256
|
/**
|
|
257
257
|
* VisibleRowCountMode of the table
|
|
258
258
|
*
|
|
259
|
-
* @version 1.139.
|
|
259
|
+
* @version 1.139.3
|
|
260
260
|
* @enum {string}
|
|
261
261
|
* @deprecated As of version 1.119, see the <code>rowMode</code> aggregation of <code>sap.ui.table.Table</code> for more details.
|
|
262
262
|
* @public
|
|
@@ -301,7 +301,7 @@ sap.ui.define([
|
|
|
301
301
|
*
|
|
302
302
|
* Contains IDs of shared DOM references, which should be accessible to inheriting controls via getDomRef() function.
|
|
303
303
|
*
|
|
304
|
-
* @version 1.139.
|
|
304
|
+
* @version 1.139.3
|
|
305
305
|
* @enum {string}
|
|
306
306
|
* @public
|
|
307
307
|
*/
|
|
@@ -402,7 +402,7 @@ sap.ui.define([
|
|
|
402
402
|
*
|
|
403
403
|
* This is an alias for {@link sap.ui.model.TreeAutoExpandMode} and kept for compatibility reasons.
|
|
404
404
|
*
|
|
405
|
-
* @version 1.139.
|
|
405
|
+
* @version 1.139.3
|
|
406
406
|
* @typedef {sap.ui.model.TreeAutoExpandMode}
|
|
407
407
|
* @public
|
|
408
408
|
* @deprecated As of version 1.120, replaced by <code>sap.ui.model.TreeAutoExpandMode</code>
|
|
@@ -177,9 +177,15 @@ TBL_ROW_STATE_NAVIGATED=Navigated
|
|
|
177
177
|
#XACT: accessibilty description for expanding the table row via keyboard
|
|
178
178
|
TBL_ROW_EXPAND_KEY=To expand row press SPACEBAR
|
|
179
179
|
|
|
180
|
+
#XACT: accessibilty description for expanding the table row via keyboard when cell selection is enabled
|
|
181
|
+
TBL_ROW_EXPAND_KEY_ALTERNATIVE=To expand row press ENTER
|
|
182
|
+
|
|
180
183
|
#XACT: accessibilty description for collapsing the table row via keyboard
|
|
181
184
|
TBL_ROW_COLLAPSE_KEY=To collapse row press SPACEBAR
|
|
182
185
|
|
|
186
|
+
#XACT: accessibilty description for collapsing the table row via keyboard when cell selection is enabled
|
|
187
|
+
TBL_ROW_COLLAPSE_KEY_ALTERNATIVE=To collapse row press ENTER
|
|
188
|
+
|
|
183
189
|
#XBUT: Text of the apply button to save the data entered in the "creation row", a form in the table for creating new rows.
|
|
184
190
|
TBL_CREATIONROW_APPLY=Add Row
|
|
185
191
|
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @public
|
|
41
41
|
*
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.139.
|
|
43
|
+
* @version 1.139.3
|
|
44
44
|
*/
|
|
45
45
|
const InteractiveRowMode = RowMode.extend("sap.ui.table.rowmodes.Interactive", /** @lends sap.ui.table.rowmodes.Interactive.prototype */ {
|
|
46
46
|
metadata: {
|
|
@@ -47,9 +47,9 @@ sap.ui.define([
|
|
|
47
47
|
minversion: "1.38",
|
|
48
48
|
categories: [Categories.Usage],
|
|
49
49
|
title: "Column template validation - 'sap.m.Text'",
|
|
50
|
-
description: "The 'wrapping'
|
|
50
|
+
description: "The 'wrapping' property of the control 'sap.m.Text' is set to 'true' "
|
|
51
51
|
+ "although the control is used as a column template.",
|
|
52
|
-
resolution: "Set the 'wrapping'
|
|
52
|
+
resolution: "Set the 'wrapping' property of the control 'sap.m.Text' to 'false' if the "
|
|
53
53
|
+ "control is used as a column template.",
|
|
54
54
|
check: function(oIssueManager, oCoreFacade, oScope) {
|
|
55
55
|
checkColumnTemplate(function(oTable, oColumn, oMTextTemplate) {
|
|
@@ -59,11 +59,6 @@ sap.ui.define([
|
|
|
59
59
|
SupportHelper.reportIssue(oIssueManager, "Column '" + sColumnId + "' of table '" + oTable.getId() + "' uses an "
|
|
60
60
|
+ "'sap.m.Text' control with wrapping enabled.", Severity.High, sColumnId);
|
|
61
61
|
}
|
|
62
|
-
if (oMTextTemplate.isBound("renderWhitespace") || (!oMTextTemplate.isBound("renderWhitespace")
|
|
63
|
-
&& oMTextTemplate.getRenderWhitespace())) {
|
|
64
|
-
SupportHelper.reportIssue(oIssueManager, "Column '" + sColumnId + "' of table '" + oTable.getId() + "' uses an "
|
|
65
|
-
+ "'sap.m.Text' control with renderWhitespace enabled.", Severity.High, sColumnId);
|
|
66
|
-
}
|
|
67
62
|
}, oScope, "sap.m.Text");
|
|
68
63
|
}
|
|
69
64
|
});
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
* Note: Do not access the functions of this helper directly, but via <code>sap.ui.table.utils.TableUtils.Column...</code>
|
|
19
19
|
*
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.139.
|
|
21
|
+
* @version 1.139.3
|
|
22
22
|
* @namespace
|
|
23
23
|
* @alias sap.ui.table.utils._ColumnUtils
|
|
24
24
|
* @private
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* Note: Do not access the functions of this helper directly, but via <code>sap.ui.table.utils.TableUtils.Grouping...</code>
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.139.
|
|
27
|
+
* @version 1.139.3
|
|
28
28
|
* @namespace
|
|
29
29
|
* @alias sap.ui.table.utils._GroupingUtils
|
|
30
30
|
* @private
|
|
@@ -21,7 +21,7 @@ sap.ui.define(["sap/ui/base/DataType", "sap/ui/model/ChangeReason"], function(Da
|
|
|
21
21
|
* - There is no concept for public or protected hooks. Never expose a hook directly, only indirectly as can be seen in the examples.
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.139.
|
|
24
|
+
* @version 1.139.3
|
|
25
25
|
* @namespace
|
|
26
26
|
* @alias sap.ui.table.utils._HookUtils
|
|
27
27
|
*
|
|
@@ -14,7 +14,7 @@ sap.ui.define([], function() {
|
|
|
14
14
|
* Note: Do not access the functions of this helper directly, but via <code>sap.ui.table.utils.TableUtils.Menu...</code>
|
|
15
15
|
*
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.139.
|
|
17
|
+
* @version 1.139.3
|
|
18
18
|
* @namespace
|
|
19
19
|
* @alias sap.ui.table.utils._MenuUtils
|
|
20
20
|
* @private
|