@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
|
@@ -8,13 +8,15 @@ sap.ui.define([
|
|
|
8
8
|
"../utils/TableUtils",
|
|
9
9
|
"sap/ui/Device",
|
|
10
10
|
"sap/m/Menu",
|
|
11
|
-
"sap/m/MenuItem"
|
|
11
|
+
"sap/m/MenuItem",
|
|
12
|
+
"sap/ui/core/InvisibleMessage"
|
|
12
13
|
], function(
|
|
13
14
|
RowMode,
|
|
14
15
|
TableUtils,
|
|
15
16
|
Device,
|
|
16
17
|
Menu,
|
|
17
|
-
MenuItem
|
|
18
|
+
MenuItem,
|
|
19
|
+
InvisibleMessage
|
|
18
20
|
) {
|
|
19
21
|
"use strict";
|
|
20
22
|
|
|
@@ -38,7 +40,7 @@ sap.ui.define([
|
|
|
38
40
|
* @public
|
|
39
41
|
*
|
|
40
42
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
43
|
+
* @version 1.134.0
|
|
42
44
|
*/
|
|
43
45
|
const InteractiveRowMode = RowMode.extend("sap.ui.table.rowmodes.Interactive", /** @lends sap.ui.table.rowmodes.Interactive.prototype */ {
|
|
44
46
|
metadata: {
|
|
@@ -95,6 +97,11 @@ sap.ui.define([
|
|
|
95
97
|
*/
|
|
96
98
|
const ResizeHelper = {};
|
|
97
99
|
|
|
100
|
+
function setNewRowCount(iRowCount) {
|
|
101
|
+
_private(this).rowCount = iRowCount;
|
|
102
|
+
InvisibleMessage.getInstance().announce(TableUtils.getResourceText("TBL_RSZ_RESIZED", [iRowCount]));
|
|
103
|
+
}
|
|
104
|
+
|
|
98
105
|
/**
|
|
99
106
|
* @inheritDoc
|
|
100
107
|
*/
|
|
@@ -367,7 +374,7 @@ sap.ui.define([
|
|
|
367
374
|
|
|
368
375
|
InteractiveRowMode.prototype.setRowCount = function(iRowCount) {
|
|
369
376
|
this.setProperty("rowCount", iRowCount);
|
|
370
|
-
|
|
377
|
+
setNewRowCount.call(this, iRowCount);
|
|
371
378
|
return this;
|
|
372
379
|
};
|
|
373
380
|
|
|
@@ -430,22 +437,22 @@ sap.ui.define([
|
|
|
430
437
|
switch (oEvent.key) {
|
|
431
438
|
case "ArrowUp":
|
|
432
439
|
oEvent.preventDefault();
|
|
433
|
-
|
|
440
|
+
setNewRowCount.call(this, Math.max(this.getActualRowCount() - 1, this.getMinRowCount()));
|
|
434
441
|
this.updateTable(TableUtils.RowsUpdateReason.Render);
|
|
435
442
|
break;
|
|
436
443
|
case "ArrowDown":
|
|
437
444
|
oEvent.preventDefault();
|
|
438
|
-
|
|
445
|
+
setNewRowCount.call(this, Math.min(this.getActualRowCount() + 1, this._getMaxRowCount()));
|
|
439
446
|
this.updateTable(TableUtils.RowsUpdateReason.Render);
|
|
440
447
|
break;
|
|
441
448
|
case "Home":
|
|
442
449
|
oEvent.preventDefault();
|
|
443
|
-
|
|
450
|
+
setNewRowCount.call(this, this.getMinRowCount());
|
|
444
451
|
this.updateTable(TableUtils.RowsUpdateReason.Render);
|
|
445
452
|
break;
|
|
446
453
|
case "End":
|
|
447
454
|
oEvent.preventDefault();
|
|
448
|
-
|
|
455
|
+
setNewRowCount.call(this, this._getMaxRowCount());
|
|
449
456
|
this.updateTable(TableUtils.RowsUpdateReason.Render);
|
|
450
457
|
break;
|
|
451
458
|
default:
|
|
@@ -460,11 +467,11 @@ sap.ui.define([
|
|
|
460
467
|
|
|
461
468
|
const iActualRowCount = this.getActualRowCount();
|
|
462
469
|
if (iActualRowCount === this._getMaxRowCount()) {
|
|
463
|
-
|
|
470
|
+
setNewRowCount.call(this, this.getMinRowCount());
|
|
464
471
|
} else if (iActualRowCount === this.getMinRowCount()) {
|
|
465
|
-
|
|
472
|
+
setNewRowCount.call(this, this.getRowCount());
|
|
466
473
|
} else {
|
|
467
|
-
|
|
474
|
+
setNewRowCount.call(this, this._getMaxRowCount());
|
|
468
475
|
}
|
|
469
476
|
this.updateTable(TableUtils.RowsUpdateReason.Render);
|
|
470
477
|
};
|
|
@@ -529,7 +536,7 @@ sap.ui.define([
|
|
|
529
536
|
this.setVisibleRowCount(iNewRowCount);
|
|
530
537
|
}
|
|
531
538
|
|
|
532
|
-
|
|
539
|
+
setNewRowCount.call(oMode, iNewRowCount);
|
|
533
540
|
oMode.updateTable(TableUtils.RowsUpdateReason.Render);
|
|
534
541
|
|
|
535
542
|
document.removeEventListener("touchmove", ResizeHelper.onResizerMove);
|
|
@@ -76,10 +76,11 @@ sap.ui.define([
|
|
|
76
76
|
ROWHEADER: 1 << 3,
|
|
77
77
|
ROWACTION: 1 << 4,
|
|
78
78
|
COLUMNROWHEADER: 1 << 5,
|
|
79
|
-
|
|
79
|
+
ROWACTIONCOLUMNHEADER: 1 << 6,
|
|
80
|
+
PSEUDO: 1 << 7
|
|
80
81
|
};
|
|
81
82
|
CELLTYPE.ANYCONTENTCELL = CELLTYPE.ROWHEADER | CELLTYPE.DATACELL | CELLTYPE.ROWACTION;
|
|
82
|
-
CELLTYPE.ANYCOLUMNHEADER = CELLTYPE.COLUMNHEADER | CELLTYPE.COLUMNROWHEADER;
|
|
83
|
+
CELLTYPE.ANYCOLUMNHEADER = CELLTYPE.COLUMNHEADER | CELLTYPE.COLUMNROWHEADER | CELLTYPE.ROWACTIONCOLUMNHEADER;
|
|
83
84
|
CELLTYPE.ANYROWHEADER = CELLTYPE.ROWHEADER | CELLTYPE.COLUMNROWHEADER;
|
|
84
85
|
CELLTYPE.ANY = CELLTYPE.ANYCONTENTCELL | CELLTYPE.ANYCOLUMNHEADER;
|
|
85
86
|
|
|
@@ -209,7 +210,7 @@ sap.ui.define([
|
|
|
209
210
|
* Static collection of utility functions related to the sap.ui.table.Table, ...
|
|
210
211
|
*
|
|
211
212
|
* @author SAP SE
|
|
212
|
-
* @version 1.
|
|
213
|
+
* @version 1.134.0
|
|
213
214
|
* @namespace
|
|
214
215
|
* @alias sap.ui.table.utils.TableUtils
|
|
215
216
|
* @private
|
|
@@ -368,7 +369,8 @@ sap.ui.define([
|
|
|
368
369
|
return false;
|
|
369
370
|
}
|
|
370
371
|
|
|
371
|
-
|
|
372
|
+
const sSelector = oTable.getCreationRow() ? "-sapUiTableGridCnt" : "-sapUiTableCnt";
|
|
373
|
+
return oTable.getDomRef().querySelector('[id="' + oTable.getId() + sSelector + '"] > .sapUiLocalBusyIndicator') != null;
|
|
372
374
|
},
|
|
373
375
|
|
|
374
376
|
/**
|
|
@@ -634,6 +636,10 @@ sap.ui.define([
|
|
|
634
636
|
const sTitle = TableUtils.getResourceText("TBL_SELECT_LIMIT_TITLE");
|
|
635
637
|
const sMessage = TableUtils.getResourceText("TBL_SELECT_LIMIT", [iLimit]);
|
|
636
638
|
|
|
639
|
+
if (!oRow) {
|
|
640
|
+
return Promise.resolve();
|
|
641
|
+
}
|
|
642
|
+
|
|
637
643
|
return new Promise(function(resolve) {
|
|
638
644
|
sap.ui.require([
|
|
639
645
|
"sap/m/Popover", "sap/m/Bar", "sap/m/Title", "sap/m/Text", "sap/m/HBox", "sap/ui/core/library", "sap/m/library"
|
|
@@ -795,6 +801,11 @@ sap.ui.define([
|
|
|
795
801
|
oCellInfo.columnIndex = -2;
|
|
796
802
|
oCellInfo.columnSpan = 1;
|
|
797
803
|
|
|
804
|
+
} else if ($Cell.hasClass("sapUiTableRowActionHeaderCell")) {
|
|
805
|
+
oCellInfo.type = TableUtils.CELLTYPE.ROWACTIONCOLUMNHEADER;
|
|
806
|
+
oCellInfo.columnIndex = -2;
|
|
807
|
+
oCellInfo.columnSpan = 1;
|
|
808
|
+
|
|
798
809
|
} else if ($Cell.hasClass("sapUiTableRowSelectionHeaderCell")) {
|
|
799
810
|
oCellInfo.type = TableUtils.CELLTYPE.COLUMNROWHEADER;
|
|
800
811
|
oCellInfo.columnIndex = -1;
|
|
@@ -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.Binding...</code>
|
|
15
15
|
*
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.134.0
|
|
18
18
|
* @namespace
|
|
19
19
|
* @alias sap.ui.table.utils._BindingUtils
|
|
20
20
|
* @private
|
|
@@ -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.
|
|
21
|
+
* @version 1.134.0
|
|
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.
|
|
27
|
+
* @version 1.134.0
|
|
28
28
|
* @namespace
|
|
29
29
|
* @alias sap.ui.table.utils._GroupingUtils
|
|
30
30
|
* @private
|
|
@@ -22,7 +22,7 @@ sap.ui.define(["sap/ui/base/DataType", "sap/ui/model/ChangeReason"], function(Da
|
|
|
22
22
|
* - There is no concept for public or protected hooks. Never expose a hook directly, only indirectly as can be seen in the examples.
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.134.0
|
|
26
26
|
* @namespace
|
|
27
27
|
* @alias sap.ui.table.utils._HookUtils
|
|
28
28
|
*
|
|
@@ -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.
|
|
17
|
+
* @version 1.134.0
|
|
18
18
|
* @namespace
|
|
19
19
|
* @alias sap.ui.table.utils._MenuUtils
|
|
20
20
|
* @private
|