@openui5/sap.ui.table 1.133.0 → 1.134.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/.reuse/dep5 +0 -7
- package/THIRDPARTY.txt +1 -22
- package/package.json +3 -3
- package/src/sap/ui/table/.library +1 -1
- package/src/sap/ui/table/AnalyticalColumn.js +18 -13
- package/src/sap/ui/table/AnalyticalColumnMenu.js +1 -1
- package/src/sap/ui/table/AnalyticalTable.js +3 -3
- 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/CreationRowRenderer.js +2 -2
- 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 +18 -8
- package/src/sap/ui/table/TablePersoController.js +1 -1
- package/src/sap/ui/table/TableRenderer.js +48 -49
- package/src/sap/ui/table/TreeTable.js +3 -3
- package/src/sap/ui/table/extensions/Accessibility.js +535 -375
- package/src/sap/ui/table/extensions/AccessibilityRender.js +1 -9
- 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 +2 -4
- package/src/sap/ui/table/extensions/KeyboardDelegate.js +9 -46
- 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 +11 -11
- 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 +10 -14
- package/src/sap/ui/table/messagebundle_ar.properties +6 -9
- package/src/sap/ui/table/messagebundle_bg.properties +6 -9
- package/src/sap/ui/table/messagebundle_ca.properties +6 -9
- package/src/sap/ui/table/messagebundle_cnr.properties +6 -9
- package/src/sap/ui/table/messagebundle_cs.properties +6 -9
- package/src/sap/ui/table/messagebundle_cy.properties +6 -9
- package/src/sap/ui/table/messagebundle_da.properties +6 -9
- package/src/sap/ui/table/messagebundle_de.properties +4 -7
- package/src/sap/ui/table/messagebundle_el.properties +5 -8
- package/src/sap/ui/table/messagebundle_en.properties +6 -9
- package/src/sap/ui/table/messagebundle_en_GB.properties +4 -7
- package/src/sap/ui/table/messagebundle_es.properties +6 -9
- package/src/sap/ui/table/messagebundle_es_MX.properties +5 -8
- package/src/sap/ui/table/messagebundle_et.properties +6 -9
- package/src/sap/ui/table/messagebundle_fi.properties +6 -9
- package/src/sap/ui/table/messagebundle_fr.properties +6 -9
- package/src/sap/ui/table/messagebundle_fr_CA.properties +6 -9
- package/src/sap/ui/table/messagebundle_hi.properties +6 -9
- package/src/sap/ui/table/messagebundle_hr.properties +6 -9
- package/src/sap/ui/table/messagebundle_hu.properties +6 -9
- package/src/sap/ui/table/messagebundle_id.properties +6 -9
- package/src/sap/ui/table/messagebundle_it.properties +6 -9
- package/src/sap/ui/table/messagebundle_iw.properties +6 -9
- package/src/sap/ui/table/messagebundle_ja.properties +5 -8
- package/src/sap/ui/table/messagebundle_kk.properties +10 -13
- package/src/sap/ui/table/messagebundle_ko.properties +5 -8
- package/src/sap/ui/table/messagebundle_lt.properties +4 -7
- package/src/sap/ui/table/messagebundle_lv.properties +5 -8
- package/src/sap/ui/table/messagebundle_mk.properties +6 -9
- package/src/sap/ui/table/messagebundle_ms.properties +5 -8
- package/src/sap/ui/table/messagebundle_nl.properties +6 -9
- package/src/sap/ui/table/messagebundle_no.properties +6 -9
- package/src/sap/ui/table/messagebundle_pl.properties +6 -9
- package/src/sap/ui/table/messagebundle_pt.properties +6 -9
- package/src/sap/ui/table/messagebundle_pt_PT.properties +4 -7
- package/src/sap/ui/table/messagebundle_ro.properties +6 -9
- package/src/sap/ui/table/messagebundle_ru.properties +6 -9
- package/src/sap/ui/table/messagebundle_sh.properties +6 -9
- package/src/sap/ui/table/messagebundle_sk.properties +6 -9
- package/src/sap/ui/table/messagebundle_sl.properties +6 -9
- package/src/sap/ui/table/messagebundle_sr.properties +6 -9
- package/src/sap/ui/table/messagebundle_sv.properties +6 -9
- package/src/sap/ui/table/messagebundle_th.properties +6 -9
- package/src/sap/ui/table/messagebundle_tr.properties +6 -9
- package/src/sap/ui/table/messagebundle_uk.properties +4 -7
- package/src/sap/ui/table/messagebundle_vi.properties +6 -9
- package/src/sap/ui/table/messagebundle_zh_CN.properties +4 -7
- package/src/sap/ui/table/messagebundle_zh_TW.properties +6 -9
- package/src/sap/ui/table/plugins/BindingSelection.js +1 -1
- package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +2 -2
- package/src/sap/ui/table/plugins/PluginBase.js +1 -1
- package/src/sap/ui/table/plugins/SelectionModelSelection.js +3 -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 +19 -12
- 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/utils/TableUtils.js +15 -4
- package/src/sap/ui/table/utils/_BindingUtils.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/LICENSES/LicenseRef-tzdata-PublicDomain.txt +0 -5
|
@@ -12,7 +12,6 @@ sap.ui.define([
|
|
|
12
12
|
"./utils/TableUtils",
|
|
13
13
|
"./extensions/ExtensionBase",
|
|
14
14
|
"sap/ui/core/Renderer",
|
|
15
|
-
"sap/ui/core/IconPool",
|
|
16
15
|
"sap/ui/core/library",
|
|
17
16
|
"sap/base/Log"
|
|
18
17
|
], function(
|
|
@@ -22,7 +21,6 @@ sap.ui.define([
|
|
|
22
21
|
TableUtils,
|
|
23
22
|
ExtensionBase,
|
|
24
23
|
Renderer,
|
|
25
|
-
IconPool,
|
|
26
24
|
CoreLibrary,
|
|
27
25
|
Log
|
|
28
26
|
) {
|
|
@@ -64,7 +62,6 @@ sap.ui.define([
|
|
|
64
62
|
|
|
65
63
|
// basic table div
|
|
66
64
|
rm.openStart("div", oTable);
|
|
67
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "ROOT");
|
|
68
65
|
rm.class("sapUiTable");
|
|
69
66
|
|
|
70
67
|
if (Device.browser.chrome && window.devicePixelRatio < 1) {
|
|
@@ -117,7 +114,7 @@ sap.ui.define([
|
|
|
117
114
|
rm.class("sapUiTableRowNavIndicator");
|
|
118
115
|
}
|
|
119
116
|
|
|
120
|
-
if (TableUtils.isNoDataVisible(oTable) && !oTable.
|
|
117
|
+
if (TableUtils.isNoDataVisible(oTable) && !oTable._isWaitingForData()) {
|
|
121
118
|
rm.class("sapUiTableEmpty"); // no data!
|
|
122
119
|
}
|
|
123
120
|
|
|
@@ -172,14 +169,17 @@ sap.ui.define([
|
|
|
172
169
|
// Define the paste region for the paste event
|
|
173
170
|
rm.attr("data-sap-ui-pasteregion", "true");
|
|
174
171
|
|
|
175
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "CONTAINER");
|
|
176
172
|
rm.openEnd();
|
|
177
173
|
|
|
174
|
+
if (!oTable._getScrollExtension().isVerticalScrollbarExternal()) {
|
|
175
|
+
this.renderVSb(rm, oTable);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
178
|
const bDummyTabbable = oTable.getRows().length || oTable.getColumnHeaderVisible();
|
|
179
179
|
this.renderTabElement(rm, "sapUiTableCtrlBefore", bDummyTabbable ? "0" : "-1");
|
|
180
180
|
|
|
181
181
|
rm.openStart("div", oTable.getId() + "-sapUiTableGridCnt");
|
|
182
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
182
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "Content");
|
|
183
183
|
rm.openEnd();
|
|
184
184
|
|
|
185
185
|
this.renderColRsz(rm, oTable);
|
|
@@ -194,18 +194,17 @@ sap.ui.define([
|
|
|
194
194
|
const oCreationRow = oTable.getCreationRow();
|
|
195
195
|
if (oCreationRow && oCreationRow.getVisible()) {
|
|
196
196
|
rm.renderControl(oCreationRow);
|
|
197
|
-
|
|
198
|
-
// If the table has a creation row, the horizontal scrollbar needs to be rendered outside the element covered by the busy indicator.
|
|
199
|
-
this.renderHSbBackground(rm, oTable);
|
|
200
|
-
this.renderHSb(rm, oTable);
|
|
201
197
|
}
|
|
202
198
|
|
|
199
|
+
this.renderHSbBackground(rm, oTable);
|
|
200
|
+
this.renderHSb(rm, oTable);
|
|
201
|
+
|
|
203
202
|
oTable._getAccRenderExtension().writeHiddenAccTexts(rm, oTable);
|
|
204
203
|
|
|
205
204
|
rm.openStart("div", oTable.getId() + "-overlay");
|
|
206
205
|
rm.class("sapUiTableOverlayArea");
|
|
207
206
|
rm.attr("tabindex", "0");
|
|
208
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
207
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "Overlay");
|
|
209
208
|
rm.openEnd();
|
|
210
209
|
rm.close("div");
|
|
211
210
|
|
|
@@ -234,7 +233,7 @@ sap.ui.define([
|
|
|
234
233
|
TableRenderer.renderHeader = function(rm, oTable, oTitle) {
|
|
235
234
|
rm.openStart("div");
|
|
236
235
|
rm.class("sapUiTableHdr");
|
|
237
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
236
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "TableHeader");
|
|
238
237
|
rm.openEnd();
|
|
239
238
|
|
|
240
239
|
rm.renderControl(oTitle);
|
|
@@ -262,7 +261,7 @@ sap.ui.define([
|
|
|
262
261
|
rm.class("sapUiTableMTbr"); // Just a marker when sap.m toolbar is used
|
|
263
262
|
}
|
|
264
263
|
|
|
265
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
264
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "TableSubHeader");
|
|
266
265
|
rm.openEnd();
|
|
267
266
|
rm.renderControl(oToolbar);
|
|
268
267
|
rm.close("div");
|
|
@@ -277,7 +276,7 @@ sap.ui.define([
|
|
|
277
276
|
TableRenderer.renderExtension = function(rm, oTable, oExtension) {
|
|
278
277
|
rm.openStart("div");
|
|
279
278
|
rm.class("sapUiTableExt");
|
|
280
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
279
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "TableSubHeader");
|
|
281
280
|
rm.openEnd();
|
|
282
281
|
|
|
283
282
|
rm.renderControl(oExtension);
|
|
@@ -293,12 +292,6 @@ sap.ui.define([
|
|
|
293
292
|
|
|
294
293
|
this.renderTableCCnt(rm, oTable);
|
|
295
294
|
rm.close("div");
|
|
296
|
-
|
|
297
|
-
const oCreationRow = oTable.getCreationRow();
|
|
298
|
-
if (!oCreationRow || !oCreationRow.getVisible()) {
|
|
299
|
-
this.renderHSbBackground(rm, oTable);
|
|
300
|
-
this.renderHSb(rm, oTable);
|
|
301
|
-
}
|
|
302
295
|
};
|
|
303
296
|
|
|
304
297
|
TableRenderer.renderTableCCnt = function(rm, oTable) {
|
|
@@ -306,14 +299,10 @@ sap.ui.define([
|
|
|
306
299
|
this.renderRowHdr(rm, oTable);
|
|
307
300
|
this.renderRowActions(rm, oTable);
|
|
308
301
|
|
|
309
|
-
if (!oTable._getScrollExtension().isVerticalScrollbarExternal()) {
|
|
310
|
-
this.renderVSb(rm, oTable);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
302
|
rm.openStart("div", oTable.getId() + "-noDataCnt");
|
|
314
303
|
rm.class("sapUiTableCtrlEmpty");
|
|
315
304
|
rm.attr("tabindex", "0");
|
|
316
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
305
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "NoData");
|
|
317
306
|
rm.openEnd();
|
|
318
307
|
|
|
319
308
|
const vNoContentMessage = TableUtils.getNoContentMessage(oTable);
|
|
@@ -334,7 +323,7 @@ sap.ui.define([
|
|
|
334
323
|
TableRenderer.renderFooter = function(rm, oTable, oFooter) {
|
|
335
324
|
rm.openStart("div");
|
|
336
325
|
rm.class("sapUiTableFtr");
|
|
337
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
326
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "TableFooter");
|
|
338
327
|
rm.openEnd();
|
|
339
328
|
|
|
340
329
|
rm.renderControl(oFooter);
|
|
@@ -351,7 +340,7 @@ sap.ui.define([
|
|
|
351
340
|
const aCols = oTable.getColumns();
|
|
352
341
|
const iFixedColumnCount = oTable.getComputedFixedColumnCount();
|
|
353
342
|
|
|
354
|
-
rm.openStart("div");
|
|
343
|
+
rm.openStart("div", oTable.getId() + "-sapUiTableColHdrCnt");
|
|
355
344
|
rm.class("sapUiTableColHdrCnt");
|
|
356
345
|
rm.openEnd();
|
|
357
346
|
|
|
@@ -393,18 +382,14 @@ sap.ui.define([
|
|
|
393
382
|
|
|
394
383
|
rm.close("div");
|
|
395
384
|
|
|
396
|
-
rm.openStart("div");
|
|
397
|
-
rm.class("sapUiTableVSbHeader");
|
|
398
|
-
rm.openEnd();
|
|
399
|
-
rm.close("div");
|
|
400
|
-
|
|
401
385
|
if (TableUtils.hasRowActions(oTable)) {
|
|
402
386
|
rm.openStart("div", oTable.getId() + "-rowacthdr");
|
|
403
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
387
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "RowActionHeader");
|
|
404
388
|
|
|
405
389
|
rm.class("sapUiTableCell");
|
|
406
390
|
rm.class("sapUiTableHeaderCell");
|
|
407
391
|
rm.class("sapUiTableRowActionHeaderCell");
|
|
392
|
+
rm.attr("tabindex", "-1");
|
|
408
393
|
rm.openEnd();
|
|
409
394
|
rm.openStart("span");
|
|
410
395
|
|
|
@@ -415,6 +400,11 @@ sap.ui.define([
|
|
|
415
400
|
rm.close("div");
|
|
416
401
|
}
|
|
417
402
|
|
|
403
|
+
rm.openStart("div");
|
|
404
|
+
rm.class("sapUiTableVSbHeader");
|
|
405
|
+
rm.openEnd();
|
|
406
|
+
rm.close("div");
|
|
407
|
+
|
|
418
408
|
rm.close("div");
|
|
419
409
|
};
|
|
420
410
|
|
|
@@ -423,6 +413,12 @@ sap.ui.define([
|
|
|
423
413
|
let bSelAll = false;
|
|
424
414
|
const mRenderConfig = oTable._getSelectionPlugin().getRenderConfig();
|
|
425
415
|
|
|
416
|
+
rm.openStart("div");
|
|
417
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "ColumnRowHeaderRow");
|
|
418
|
+
rm.openEnd();
|
|
419
|
+
rm.openStart("div", oTable.getId() + "-rowcolhdr");
|
|
420
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "ColumnRowHeaderCell");
|
|
421
|
+
rm.openEnd();
|
|
426
422
|
rm.openStart("div", oTable.getId() + "-selall");
|
|
427
423
|
|
|
428
424
|
rm.class("sapUiTableCell");
|
|
@@ -459,7 +455,7 @@ sap.ui.define([
|
|
|
459
455
|
enabled: bEnabled,
|
|
460
456
|
checked: bSelAll
|
|
461
457
|
};
|
|
462
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
458
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "ColumnRowHeader", oParams);
|
|
463
459
|
|
|
464
460
|
rm.openEnd();
|
|
465
461
|
|
|
@@ -482,7 +478,7 @@ sap.ui.define([
|
|
|
482
478
|
rm.close("span");
|
|
483
479
|
}
|
|
484
480
|
|
|
485
|
-
rm.close("div");
|
|
481
|
+
rm.close("div").close("div").close("div");
|
|
486
482
|
};
|
|
487
483
|
|
|
488
484
|
TableRenderer.renderCol = function(rm, oTable, oColumn, iHeader, nSpan, bIsFirstColumn, bIsLastFixedColumn, bIsLastColumn, bRenderIcons) {
|
|
@@ -543,7 +539,7 @@ sap.ui.define([
|
|
|
543
539
|
}
|
|
544
540
|
}
|
|
545
541
|
|
|
546
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
542
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "ColumnHeader", mAccParams);
|
|
547
543
|
|
|
548
544
|
rm.class("sapUiTableCell");
|
|
549
545
|
rm.class("sapUiTableHeaderCell");
|
|
@@ -624,10 +620,10 @@ sap.ui.define([
|
|
|
624
620
|
|
|
625
621
|
TableRenderer.renderRowHdr = function(rm, oTable) {
|
|
626
622
|
rm.openStart("div", oTable.getId() + "-sapUiTableRowHdrScr");
|
|
627
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
623
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "Presentation");
|
|
628
624
|
rm.class("sapUiTableRowHdrScr");
|
|
629
625
|
rm.class("sapUiTableNoOpacity");
|
|
630
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
626
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "RowHeaderCol");
|
|
631
627
|
rm.openEnd();
|
|
632
628
|
|
|
633
629
|
// start with the first current top visible row
|
|
@@ -643,7 +639,7 @@ sap.ui.define([
|
|
|
643
639
|
return;
|
|
644
640
|
}
|
|
645
641
|
rm.openStart("div", oTable.getId() + "-sapUiTableRowActionScr");
|
|
646
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
642
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "Presentation");
|
|
647
643
|
TableUtils.hasRowActions(oTable) ? rm.class("sapUiTableRowWithAction") : rm.class("sapUiTableRowActionScr");
|
|
648
644
|
rm.class("sapUiTableNoOpacity");
|
|
649
645
|
rm.openEnd();
|
|
@@ -686,6 +682,7 @@ sap.ui.define([
|
|
|
686
682
|
const bRowSelected = oTable._getSelectionPlugin().isSelected(oRow);
|
|
687
683
|
|
|
688
684
|
rm.openStart("div");
|
|
685
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "RowAddon");
|
|
689
686
|
|
|
690
687
|
rm.attr("data-sap-ui-related", oRow.getId());
|
|
691
688
|
rm.attr("data-sap-ui-rowindex", iRowIndex);
|
|
@@ -720,7 +717,7 @@ sap.ui.define([
|
|
|
720
717
|
rowSelected: bRowSelected,
|
|
721
718
|
rowHidden: oRow.isEmpty()
|
|
722
719
|
};
|
|
723
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, bHeader ? "
|
|
720
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, bHeader ? "RowHeader" : "RowAction", oParams);
|
|
724
721
|
|
|
725
722
|
rm.openEnd();
|
|
726
723
|
if (bHeader) {
|
|
@@ -819,7 +816,7 @@ sap.ui.define([
|
|
|
819
816
|
rm.class(sClass);
|
|
820
817
|
});
|
|
821
818
|
|
|
822
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, bHeader ? "
|
|
819
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, bHeader ? "Presentation" : "Table");
|
|
823
820
|
|
|
824
821
|
rm.class("sapUiTableCtrl");
|
|
825
822
|
if (bHeader) {
|
|
@@ -885,7 +882,7 @@ sap.ui.define([
|
|
|
885
882
|
if (oColParam.shouldRender) {
|
|
886
883
|
if (iStartRow === 0) {
|
|
887
884
|
rm.openStart("th", oTable.getId() + sSuffix + iCol);
|
|
888
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
885
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "Th", {column: oColumn});
|
|
889
886
|
} else {
|
|
890
887
|
rm.openStart("th");
|
|
891
888
|
}
|
|
@@ -910,7 +907,7 @@ sap.ui.define([
|
|
|
910
907
|
// dummy column to fill the table width
|
|
911
908
|
if (bRenderDummyColumn) {
|
|
912
909
|
rm.openStart("th", bHeader && oTable.getId() + "-dummycolhdr");
|
|
913
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
910
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "Presentation");
|
|
914
911
|
rm.openEnd().close("th");
|
|
915
912
|
}
|
|
916
913
|
|
|
@@ -1011,7 +1008,7 @@ sap.ui.define([
|
|
|
1011
1008
|
rm.class("sapUiTableRow");
|
|
1012
1009
|
rm.class("sapUiTableHeaderRow");
|
|
1013
1010
|
rm.class("sapUiTableColHdrTr");
|
|
1014
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
1011
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "ColumnHeaderRow");
|
|
1015
1012
|
rm.openEnd();
|
|
1016
1013
|
|
|
1017
1014
|
//
|
|
@@ -1063,7 +1060,7 @@ sap.ui.define([
|
|
|
1063
1060
|
|
|
1064
1061
|
if (!bFixedTable && bHasOnlyFixedColumns && aColumns.length > 0) {
|
|
1065
1062
|
rm.openStart("td").class("sapUiTableCellDummy");
|
|
1066
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
1063
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "Presentation");
|
|
1067
1064
|
rm.openEnd().close("td");
|
|
1068
1065
|
}
|
|
1069
1066
|
rm.close("tr");
|
|
@@ -1115,7 +1112,7 @@ sap.ui.define([
|
|
|
1115
1112
|
fixedCol: bFixedTable,
|
|
1116
1113
|
rowNavigated: oRowSettings ? oRowSettings.getNavigated() : false
|
|
1117
1114
|
};
|
|
1118
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
1115
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "Tr", oParams);
|
|
1119
1116
|
|
|
1120
1117
|
rm.openEnd();
|
|
1121
1118
|
|
|
@@ -1127,7 +1124,7 @@ sap.ui.define([
|
|
|
1127
1124
|
}
|
|
1128
1125
|
if (!bFixedTable && bHasOnlyFixedColumns && aCells.length > 0) {
|
|
1129
1126
|
rm.openStart("td").class("sapUiTableCellDummy");
|
|
1130
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
1127
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "Presentation");
|
|
1131
1128
|
rm.openEnd();
|
|
1132
1129
|
rm.close("td");
|
|
1133
1130
|
}
|
|
@@ -1156,7 +1153,7 @@ sap.ui.define([
|
|
|
1156
1153
|
fixed: bFixedTable,
|
|
1157
1154
|
rowSelected: bSelected
|
|
1158
1155
|
};
|
|
1159
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
1156
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "DataCell", oParams);
|
|
1160
1157
|
|
|
1161
1158
|
const sTextAlign = Renderer.getTextAlign(oColumn.getHAlign());
|
|
1162
1159
|
if (sTextAlign) {
|
|
@@ -1204,7 +1201,7 @@ sap.ui.define([
|
|
|
1204
1201
|
rm.openStart("span", oRow.getId() + "-treeicon");
|
|
1205
1202
|
rm.class("sapUiTableTreeIcon");
|
|
1206
1203
|
rm.attr("tabindex", "-1");
|
|
1207
|
-
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "
|
|
1204
|
+
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "TreeIcon", {row: oRow});
|
|
1208
1205
|
rm.openEnd();
|
|
1209
1206
|
rm.close("span");
|
|
1210
1207
|
}
|
|
@@ -1225,6 +1222,8 @@ sap.ui.define([
|
|
|
1225
1222
|
rm.class("sapUiTableHidden");
|
|
1226
1223
|
}
|
|
1227
1224
|
rm.class(mConfig.cssClass);
|
|
1225
|
+
const iHeaderHeight = oTable._collectRowHeights(true).reduce((iSum, iHeight) => iSum + iHeight, 0) + 1;
|
|
1226
|
+
rm.style("margin-top", iHeaderHeight + "px");
|
|
1228
1227
|
rm.openEnd();
|
|
1229
1228
|
|
|
1230
1229
|
rm.openStart("div", oTable.getId() + "-vsb");
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @class
|
|
43
43
|
* The TreeTable control provides a comprehensive set of features to display hierarchical data.
|
|
44
44
|
* @extends sap.ui.table.Table
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.134.0
|
|
46
46
|
*
|
|
47
47
|
* @constructor
|
|
48
48
|
* @public
|
|
@@ -601,8 +601,8 @@ sap.ui.define([
|
|
|
601
601
|
Table.prototype._onBindingDataReceived.apply(this, arguments);
|
|
602
602
|
};
|
|
603
603
|
|
|
604
|
-
TreeTable.prototype.
|
|
605
|
-
return _private(this).bPendingRequest;
|
|
604
|
+
TreeTable.prototype._isWaitingForData = function() {
|
|
605
|
+
return _private(this).bPendingRequest && Table.prototype._isWaitingForData.apply(this);
|
|
606
606
|
};
|
|
607
607
|
|
|
608
608
|
return TreeTable;
|