@openui5/sap.ui.table 1.109.0 → 1.111.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/.eslintrc.json +21 -1
- package/.reuse/dep5 +16 -16
- package/THIRDPARTY.txt +2 -2
- package/package.json +3 -3
- package/src/sap/ui/table/.library +2 -2
- package/src/sap/ui/table/AnalyticalColumn.js +11 -11
- package/src/sap/ui/table/AnalyticalColumnMenu.js +4 -5
- package/src/sap/ui/table/AnalyticalColumnMenuRenderer.js +1 -1
- package/src/sap/ui/table/AnalyticalTable.js +14 -14
- package/src/sap/ui/table/AnalyticalTableRenderer.js +1 -1
- package/src/sap/ui/table/Column.js +55 -48
- package/src/sap/ui/table/ColumnMenu.js +5 -17
- package/src/sap/ui/table/ColumnMenuRenderer.js +2 -2
- package/src/sap/ui/table/CreationRow.js +3 -3
- package/src/sap/ui/table/CreationRowRenderer.js +1 -1
- package/src/sap/ui/table/Row.js +18 -18
- package/src/sap/ui/table/RowAction.js +2 -2
- package/src/sap/ui/table/RowActionItem.js +13 -11
- package/src/sap/ui/table/RowActionRenderer.js +1 -1
- package/src/sap/ui/table/RowSettings.js +6 -6
- package/src/sap/ui/table/Table.js +166 -177
- package/src/sap/ui/table/TablePersoController.js +4 -6
- package/src/sap/ui/table/TableRenderer.js +12 -14
- package/src/sap/ui/table/TreeTable.js +16 -18
- package/src/sap/ui/table/TreeTableRenderer.js +1 -1
- package/src/sap/ui/table/designtime/AnalyticalTable.designtime.js +8 -8
- package/src/sap/ui/table/designtime/Table.designtime.js +10 -10
- package/src/sap/ui/table/designtime/library.designtime.js +1 -1
- package/src/sap/ui/table/extensions/Accessibility.js +3 -3
- package/src/sap/ui/table/extensions/AccessibilityRender.js +2 -2
- package/src/sap/ui/table/extensions/DragAndDrop.js +10 -2
- package/src/sap/ui/table/extensions/ExtensionBase.js +2 -2
- package/src/sap/ui/table/extensions/Keyboard.js +3 -3
- package/src/sap/ui/table/extensions/KeyboardDelegate.js +15 -6
- package/src/sap/ui/table/extensions/Pointer.js +24 -19
- package/src/sap/ui/table/extensions/Scrolling.js +2 -2
- package/src/sap/ui/table/extensions/ScrollingIOS.js +4 -4
- package/src/sap/ui/table/extensions/Synchronization.js +2 -2
- package/src/sap/ui/table/library.js +39 -43
- package/src/sap/ui/table/library.support.js +1 -1
- package/src/sap/ui/table/menus/ColumnHeaderMenuAdapter.js +2 -3
- package/src/sap/ui/table/menus/MobileColumnHeaderMenuAdapter.js +7 -5
- package/src/sap/ui/table/messagebundle_ar.properties +1 -3
- package/src/sap/ui/table/messagebundle_bg.properties +3 -5
- package/src/sap/ui/table/messagebundle_ca.properties +1 -3
- package/src/sap/ui/table/messagebundle_cs.properties +1 -3
- package/src/sap/ui/table/messagebundle_cy.properties +1 -3
- package/src/sap/ui/table/messagebundle_da.properties +1 -3
- package/src/sap/ui/table/messagebundle_de.properties +1 -3
- package/src/sap/ui/table/messagebundle_el.properties +1 -3
- package/src/sap/ui/table/messagebundle_en.properties +1 -3
- package/src/sap/ui/table/messagebundle_en_GB.properties +1 -3
- package/src/sap/ui/table/messagebundle_en_US_saptrc.properties +1 -3
- package/src/sap/ui/table/messagebundle_es.properties +1 -3
- package/src/sap/ui/table/messagebundle_es_MX.properties +1 -3
- package/src/sap/ui/table/messagebundle_et.properties +1 -3
- package/src/sap/ui/table/messagebundle_fi.properties +1 -3
- package/src/sap/ui/table/messagebundle_fr.properties +1 -3
- package/src/sap/ui/table/messagebundle_fr_CA.properties +1 -3
- package/src/sap/ui/table/messagebundle_hi.properties +1 -3
- package/src/sap/ui/table/messagebundle_hr.properties +1 -3
- package/src/sap/ui/table/messagebundle_hu.properties +1 -3
- package/src/sap/ui/table/messagebundle_id.properties +1 -3
- package/src/sap/ui/table/messagebundle_it.properties +1 -3
- package/src/sap/ui/table/messagebundle_iw.properties +1 -3
- package/src/sap/ui/table/messagebundle_ja.properties +1 -3
- package/src/sap/ui/table/messagebundle_kk.properties +2 -4
- package/src/sap/ui/table/messagebundle_ko.properties +1 -3
- package/src/sap/ui/table/messagebundle_lt.properties +1 -3
- package/src/sap/ui/table/messagebundle_lv.properties +1 -3
- package/src/sap/ui/table/messagebundle_ms.properties +1 -3
- package/src/sap/ui/table/messagebundle_nl.properties +1 -3
- package/src/sap/ui/table/messagebundle_no.properties +1 -3
- package/src/sap/ui/table/messagebundle_pl.properties +1 -3
- package/src/sap/ui/table/messagebundle_pt.properties +1 -3
- package/src/sap/ui/table/messagebundle_pt_PT.properties +1 -3
- package/src/sap/ui/table/messagebundle_ro.properties +1 -3
- package/src/sap/ui/table/messagebundle_ru.properties +1 -3
- package/src/sap/ui/table/messagebundle_sh.properties +1 -3
- package/src/sap/ui/table/messagebundle_sk.properties +1 -3
- package/src/sap/ui/table/messagebundle_sl.properties +1 -3
- package/src/sap/ui/table/messagebundle_sv.properties +1 -3
- package/src/sap/ui/table/messagebundle_th.properties +1 -3
- package/src/sap/ui/table/messagebundle_tr.properties +1 -3
- package/src/sap/ui/table/messagebundle_uk.properties +1 -3
- package/src/sap/ui/table/messagebundle_vi.properties +1 -3
- package/src/sap/ui/table/messagebundle_zh_CN.properties +1 -3
- package/src/sap/ui/table/messagebundle_zh_TW.properties +1 -3
- package/src/sap/ui/table/plugins/BindingSelection.js +12 -4
- package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +24 -37
- package/src/sap/ui/table/plugins/PluginBase.js +2 -2
- package/src/sap/ui/table/plugins/SelectionModelSelection.js +6 -3
- package/src/sap/ui/table/plugins/SelectionPlugin.js +2 -2
- package/src/sap/ui/table/plugins/V4Aggregation.js +2 -2
- package/src/sap/ui/table/rowmodes/AutoRowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/FixedRowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/InteractiveRowMode.js +3 -3
- package/src/sap/ui/table/rowmodes/RowMode.js +16 -8
- package/src/sap/ui/table/rowmodes/VariableRowMode.js +2 -2
- package/src/sap/ui/table/rules/Accessibility.support.js +1 -1
- package/src/sap/ui/table/rules/Binding.support.js +1 -1
- package/src/sap/ui/table/rules/ColumnTemplate.support.js +1 -1
- package/src/sap/ui/table/rules/Plugins.support.js +1 -1
- package/src/sap/ui/table/rules/Rows.support.js +1 -1
- package/src/sap/ui/table/rules/TableHelper.support.js +1 -1
- package/src/sap/ui/table/themes/base/Cell.less +31 -0
- package/src/sap/ui/table/themes/base/Row.less +5 -0
- package/src/sap/ui/table/themes/base/library.source.less +1 -1
- package/src/sap/ui/table/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/table/utils/TableUtils.js +2 -2
- package/src/sap/ui/table/utils/_BindingUtils.js +2 -2
- package/src/sap/ui/table/utils/_ColumnUtils.js +11 -7
- package/src/sap/ui/table/utils/_GroupingUtils.js +3 -3
- package/src/sap/ui/table/utils/_HookUtils.js +2 -2
- package/src/sap/ui/table/utils/_MenuUtils.js +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -10,16 +10,18 @@ sap.ui.define([
|
|
|
10
10
|
"../utils/TableUtils",
|
|
11
11
|
"../library",
|
|
12
12
|
"sap/ui/Device",
|
|
13
|
+
"sap/ui/core/Element",
|
|
13
14
|
"sap/ui/core/Popup",
|
|
14
15
|
"sap/base/Log",
|
|
15
16
|
"sap/ui/thirdparty/jquery",
|
|
16
17
|
"sap/ui/dom/jquery/scrollLeftRTL",
|
|
17
18
|
"sap/ui/dom/jquery/control"
|
|
18
|
-
], function(ExtensionBase, TableUtils, library, Device, Popup, Log, jQuery) {
|
|
19
|
+
], function(ExtensionBase, TableUtils, library, Device, Element, Popup, Log, jQuery) {
|
|
19
20
|
"use strict";
|
|
20
21
|
|
|
21
22
|
// shortcuts
|
|
22
23
|
var SelectionMode = library.SelectionMode;
|
|
24
|
+
var SelectionBehavior = library.SelectionBehavior;
|
|
23
25
|
|
|
24
26
|
var KNOWNCLICKABLECONTROLS = [
|
|
25
27
|
"sapMBtnBase", "sapMInputBase", "sapMLnk", "sapMSlt",
|
|
@@ -77,7 +79,7 @@ sap.ui.define([
|
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
// Special handling for known clickable controls
|
|
80
|
-
var oClickedControl = $Target
|
|
82
|
+
var oClickedControl = Element.closestTo($Target[0]);
|
|
81
83
|
if (oClickedControl) {
|
|
82
84
|
var $ClickedControl = oClickedControl.$();
|
|
83
85
|
if ($ClickedControl.length) {
|
|
@@ -174,9 +176,11 @@ sap.ui.define([
|
|
|
174
176
|
var iLocationX = ExtensionHelper._getEventPosition(oEvent, this).x;
|
|
175
177
|
var oColumn = this._getVisibleColumns()[this._iLastHoveredVisibleColumnIndex];
|
|
176
178
|
var $RelevantColumnElement = this.$().find("th[data-sap-ui-colid=\"" + oColumn.getId() + "\"]"); // Consider span and multi-header
|
|
177
|
-
var iColumnWidth = $RelevantColumnElement[0].offsetWidth;
|
|
179
|
+
var iColumnWidth = $RelevantColumnElement[0].offsetWidth; // the width of the column with padding and border
|
|
180
|
+
var iInnerWidth = $RelevantColumnElement.width(); // the content width of the column without padding and border
|
|
181
|
+
var iPaddingAndBorder = iColumnWidth - iInnerWidth;
|
|
178
182
|
var iDeltaX = iLocationX - ($RelevantColumnElement.offset().left + (this._bRtlMode ? 0 : iColumnWidth));
|
|
179
|
-
var iCalculatedColumnWidth = Math.round(iColumnWidth + iDeltaX * (this._bRtlMode ? -1 : 1));
|
|
183
|
+
var iCalculatedColumnWidth = Math.round(iColumnWidth + iDeltaX * (this._bRtlMode ? -1 : 1)) - iPaddingAndBorder;
|
|
180
184
|
var iNewColumnWidth = Math.max(iCalculatedColumnWidth, TableUtils.Column.getMinColumnWidth());
|
|
181
185
|
|
|
182
186
|
ColumnResizeHelper._resizeColumn(this, this._iLastHoveredVisibleColumnIndex, this._bColumnResizerMoved ? iNewColumnWidth : null);
|
|
@@ -573,9 +577,9 @@ sap.ui.define([
|
|
|
573
577
|
|
|
574
578
|
initRowHovering: function(oTable) {
|
|
575
579
|
var $Table = oTable.$();
|
|
576
|
-
|
|
577
|
-
RowHoverHandler._initRowHoveringForArea(oTable, $Table,
|
|
578
|
-
}
|
|
580
|
+
RowHoverHandler.ROWAREAS.forEach(function(sRowArea) {
|
|
581
|
+
RowHoverHandler._initRowHoveringForArea(oTable, $Table, sRowArea);
|
|
582
|
+
});
|
|
579
583
|
},
|
|
580
584
|
|
|
581
585
|
_initRowHoveringForArea: function(oTable, $Table, sArea) {
|
|
@@ -587,11 +591,13 @@ sap.ui.define([
|
|
|
587
591
|
},
|
|
588
592
|
|
|
589
593
|
_onHover: function(oTable, $Table, sArea, oElem) {
|
|
590
|
-
|
|
591
|
-
|
|
594
|
+
if ((oTable.getSelectionMode() !== SelectionMode.None && oTable.getSelectionBehavior() !== SelectionBehavior.RowSelector) || oTable.hasListeners("cellClick")) {
|
|
595
|
+
var iIndex = $Table.find(sArea).index(oElem);
|
|
596
|
+
var oRow = oTable.getRows()[iIndex];
|
|
592
597
|
|
|
593
|
-
|
|
594
|
-
|
|
598
|
+
if (oRow) {
|
|
599
|
+
oRow._setHovered(true);
|
|
600
|
+
}
|
|
595
601
|
}
|
|
596
602
|
},
|
|
597
603
|
|
|
@@ -723,9 +729,8 @@ sap.ui.define([
|
|
|
723
729
|
|
|
724
730
|
if (oCellInfo.isOfType(TableUtils.CELLTYPE.COLUMNHEADER)) {
|
|
725
731
|
var oPointerExtension = this._getPointerExtension();
|
|
726
|
-
var oColumn = this.getColumns()[oCellInfo.columnIndex];
|
|
727
732
|
|
|
728
|
-
if (oPointerExtension._bShowMenu
|
|
733
|
+
if (oPointerExtension._bShowMenu) {
|
|
729
734
|
TableUtils.Menu.openContextMenu(this, oEvent.target);
|
|
730
735
|
delete oPointerExtension._bShowMenu;
|
|
731
736
|
}
|
|
@@ -770,7 +775,7 @@ sap.ui.define([
|
|
|
770
775
|
var oPointerExtension = this._getPointerExtension();
|
|
771
776
|
|
|
772
777
|
if (oPointerExtension._bShowDefaultMenu) {
|
|
773
|
-
oEvent.setMarked("
|
|
778
|
+
oEvent.setMarked("sapUiTableHandledByPointerExtension");
|
|
774
779
|
delete oPointerExtension._bShowDefaultMenu;
|
|
775
780
|
|
|
776
781
|
} else if (oPointerExtension._bShowMenu) {
|
|
@@ -779,11 +784,11 @@ sap.ui.define([
|
|
|
779
784
|
if (bContextMenuOpened) {
|
|
780
785
|
oEvent.preventDefault(); // To prevent opening the default browser context menu.
|
|
781
786
|
}
|
|
782
|
-
oEvent.setMarked("
|
|
787
|
+
oEvent.setMarked("sapUiTableHandledByPointerExtension");
|
|
783
788
|
delete oPointerExtension._bShowMenu;
|
|
784
789
|
|
|
785
790
|
} else if (oPointerExtension._bHideMenu) {
|
|
786
|
-
oEvent.setMarked("
|
|
791
|
+
oEvent.setMarked("sapUiTableHandledByPointerExtension");
|
|
787
792
|
oEvent.preventDefault(); // To prevent opening the default browser context menu.
|
|
788
793
|
delete oPointerExtension._bHideMenu;
|
|
789
794
|
}
|
|
@@ -798,7 +803,7 @@ sap.ui.define([
|
|
|
798
803
|
* @class Extension for sap.ui.table.Table which handles mouse and touch related things.
|
|
799
804
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
800
805
|
* @author SAP SE
|
|
801
|
-
* @version 1.
|
|
806
|
+
* @version 1.111.0
|
|
802
807
|
* @constructor
|
|
803
808
|
* @private
|
|
804
809
|
* @alias sap.ui.table.extensions.Pointer
|
|
@@ -923,4 +928,4 @@ sap.ui.define([
|
|
|
923
928
|
* @function
|
|
924
929
|
* @returns {sap.ui.table.extensions.Pointer} The pointer extension.
|
|
925
930
|
* @private
|
|
926
|
-
*/
|
|
931
|
+
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -2256,7 +2256,7 @@ sap.ui.define([
|
|
|
2256
2256
|
* @class Extension for sap.ui.table.Table which handles scrolling.
|
|
2257
2257
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
2258
2258
|
* @author SAP SE
|
|
2259
|
-
* @version 1.
|
|
2259
|
+
* @version 1.111.0
|
|
2260
2260
|
* @constructor
|
|
2261
2261
|
* @private
|
|
2262
2262
|
* @alias sap.ui.table.extensions.Scrolling
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.
|
|
30
|
+
* @version 1.111.0
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @alias sap.ui.table.extensions.ScrollingIOS
|
|
@@ -256,7 +256,7 @@ sap.ui.define([
|
|
|
256
256
|
oVSbThumb.style.top = iOffset + "px";
|
|
257
257
|
|
|
258
258
|
clearTimeout(this._iUpdateDefaultScrollbarPositionTimeoutId);
|
|
259
|
-
this._iUpdateDefaultScrollbarPositionTimeoutId = setTimeout(function
|
|
259
|
+
this._iUpdateDefaultScrollbarPositionTimeoutId = setTimeout(function() {
|
|
260
260
|
this.updateDefaultScrollbarPosition(iOffset, iThumbHeight);
|
|
261
261
|
delete this._iUpdateDefaultScrollbarPositionTimeoutId;
|
|
262
262
|
}.bind(this), 30);
|
|
@@ -267,7 +267,7 @@ sap.ui.define([
|
|
|
267
267
|
*
|
|
268
268
|
* @param {jQuery.Event} oEvent The event triggered
|
|
269
269
|
*/
|
|
270
|
-
ScrollIOSExtension.prototype.onPointerDown = function
|
|
270
|
+
ScrollIOSExtension.prototype.onPointerDown = function(oEvent) {
|
|
271
271
|
var oTable = this.getTable();
|
|
272
272
|
var oScrollExtension = oTable._getScrollExtension();
|
|
273
273
|
var oVSbThumb = this.getVerticalScrollbarThumb();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -181,7 +181,7 @@ sap.ui.define([
|
|
|
181
181
|
* @class Extension for sap.ui.table.Table that allows synchronization with a table.
|
|
182
182
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
183
183
|
* @author SAP SE
|
|
184
|
-
* @version 1.
|
|
184
|
+
* @version 1.111.0
|
|
185
185
|
* @constructor
|
|
186
186
|
* @private
|
|
187
187
|
* @alias sap.ui.table.extensions.Synchronization
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,14 +20,14 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
20
20
|
* @namespace
|
|
21
21
|
* @alias sap.ui.table
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.111.0
|
|
24
24
|
* @since 0.8
|
|
25
25
|
* @public
|
|
26
26
|
*/
|
|
27
27
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
28
|
-
name
|
|
29
|
-
version: "1.
|
|
30
|
-
dependencies
|
|
28
|
+
name: "sap.ui.table",
|
|
29
|
+
version: "1.111.0",
|
|
30
|
+
dependencies: ["sap.ui.core", "sap.ui.unified"],
|
|
31
31
|
designtime: "sap/ui/table/designtime/library.designtime",
|
|
32
32
|
types: [
|
|
33
33
|
"sap.ui.table.NavigationMode",
|
|
@@ -63,16 +63,16 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
63
63
|
],
|
|
64
64
|
extensions: {
|
|
65
65
|
flChangeHandlers: {
|
|
66
|
-
"sap.ui.table.Table"
|
|
66
|
+
"sap.ui.table.Table": {
|
|
67
67
|
"moveElements": "default"
|
|
68
68
|
},
|
|
69
|
-
"sap.ui.table.AnalyticalTable"
|
|
69
|
+
"sap.ui.table.AnalyticalTable": {
|
|
70
70
|
"moveElements": "default"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
//Configuration used for rule loading of Support Assistant
|
|
74
74
|
"sap.ui.support": {
|
|
75
|
-
publicRules:true
|
|
75
|
+
publicRules: true
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
});
|
|
@@ -80,7 +80,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
80
80
|
/**
|
|
81
81
|
* Navigation mode of the table
|
|
82
82
|
*
|
|
83
|
-
* @version 1.
|
|
83
|
+
* @version 1.111.0
|
|
84
84
|
* @enum {string}
|
|
85
85
|
* @public
|
|
86
86
|
*/
|
|
@@ -90,7 +90,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
90
90
|
* Uses the scrollbar control.
|
|
91
91
|
* @public
|
|
92
92
|
*/
|
|
93
|
-
Scrollbar
|
|
93
|
+
Scrollbar: "Scrollbar",
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* Uses the paginator control.
|
|
@@ -100,14 +100,14 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
100
100
|
* @public
|
|
101
101
|
* @deprecated As of version 1.38, replaced by {@link sap.ui.table.NavigationMode.Scrollbar}
|
|
102
102
|
*/
|
|
103
|
-
Paginator
|
|
103
|
+
Paginator: "Paginator"
|
|
104
104
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* Row Action types.
|
|
109
109
|
*
|
|
110
|
-
* @version 1.
|
|
110
|
+
* @version 1.111.0
|
|
111
111
|
* @enum {string}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
@@ -117,27 +117,26 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
117
117
|
* Custom defined Row Action.
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
|
-
Custom
|
|
120
|
+
Custom: "Custom",
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Navigation Row Action.
|
|
124
124
|
* @public
|
|
125
125
|
*/
|
|
126
|
-
Navigation
|
|
126
|
+
Navigation: "Navigation",
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* Delete Row Action.
|
|
130
130
|
* @public
|
|
131
131
|
*/
|
|
132
|
-
Delete
|
|
132
|
+
Delete: "Delete"
|
|
133
133
|
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
|
|
137
136
|
/**
|
|
138
137
|
* Selection behavior of the table
|
|
139
138
|
*
|
|
140
|
-
* @version 1.
|
|
139
|
+
* @version 1.111.0
|
|
141
140
|
* @enum {string}
|
|
142
141
|
* @public
|
|
143
142
|
*/
|
|
@@ -147,27 +146,26 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
147
146
|
* Rows can be selected on the complete row.
|
|
148
147
|
* @public
|
|
149
148
|
*/
|
|
150
|
-
Row
|
|
149
|
+
Row: "Row",
|
|
151
150
|
|
|
152
151
|
/**
|
|
153
152
|
* Rows can only be selected on the row selector.
|
|
154
153
|
* @public
|
|
155
154
|
*/
|
|
156
|
-
RowSelector
|
|
155
|
+
RowSelector: "RowSelector",
|
|
157
156
|
|
|
158
157
|
/**
|
|
159
158
|
* Rows can only be selected on the row (and the selector is hidden).
|
|
160
159
|
* @public
|
|
161
160
|
*/
|
|
162
|
-
RowOnly
|
|
161
|
+
RowOnly: "RowOnly"
|
|
163
162
|
|
|
164
163
|
};
|
|
165
164
|
|
|
166
|
-
|
|
167
165
|
/**
|
|
168
166
|
* Selection mode of the table
|
|
169
167
|
*
|
|
170
|
-
* @version 1.
|
|
168
|
+
* @version 1.111.0
|
|
171
169
|
* @enum {string}
|
|
172
170
|
* @public
|
|
173
171
|
*/
|
|
@@ -177,34 +175,33 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
177
175
|
* Select multiple rows at a time (toggle behavior).
|
|
178
176
|
* @public
|
|
179
177
|
*/
|
|
180
|
-
MultiToggle
|
|
178
|
+
MultiToggle: "MultiToggle",
|
|
181
179
|
|
|
182
180
|
/**
|
|
183
181
|
* Select multiple rows at a time.
|
|
184
182
|
* @public
|
|
185
183
|
* @deprecated As of version 1.38, replaced by {@link sap.ui.table.SelectionMode.MultiToggle}
|
|
186
184
|
*/
|
|
187
|
-
Multi
|
|
185
|
+
Multi: "Multi",
|
|
188
186
|
|
|
189
187
|
/**
|
|
190
188
|
* Select one row at a time.
|
|
191
189
|
* @public
|
|
192
190
|
*/
|
|
193
|
-
Single
|
|
191
|
+
Single: "Single",
|
|
194
192
|
|
|
195
193
|
/**
|
|
196
194
|
* No rows can be selected.
|
|
197
195
|
* @public
|
|
198
196
|
*/
|
|
199
|
-
None
|
|
197
|
+
None: "None"
|
|
200
198
|
|
|
201
199
|
};
|
|
202
200
|
|
|
203
|
-
|
|
204
201
|
/**
|
|
205
202
|
* Sort order of a column
|
|
206
203
|
*
|
|
207
|
-
* @version 1.
|
|
204
|
+
* @version 1.111.0
|
|
208
205
|
* @enum {string}
|
|
209
206
|
* @public
|
|
210
207
|
*/
|
|
@@ -214,21 +211,20 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
214
211
|
* Sort Order: ascending.
|
|
215
212
|
* @public
|
|
216
213
|
*/
|
|
217
|
-
Ascending
|
|
214
|
+
Ascending: "Ascending",
|
|
218
215
|
|
|
219
216
|
/**
|
|
220
217
|
* Sort Order: descending.
|
|
221
218
|
* @public
|
|
222
219
|
*/
|
|
223
|
-
Descending
|
|
220
|
+
Descending: "Descending"
|
|
224
221
|
|
|
225
222
|
};
|
|
226
223
|
|
|
227
|
-
|
|
228
224
|
/**
|
|
229
225
|
* VisibleRowCountMode of the table
|
|
230
226
|
*
|
|
231
|
-
* @version 1.
|
|
227
|
+
* @version 1.111.0
|
|
232
228
|
* @enum {string}
|
|
233
229
|
* @public
|
|
234
230
|
*/
|
|
@@ -238,19 +234,19 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
238
234
|
* The table always has as many rows as defined in the <code>visibleRowCount</code> property.
|
|
239
235
|
* @public
|
|
240
236
|
*/
|
|
241
|
-
Fixed
|
|
237
|
+
Fixed: "Fixed",
|
|
242
238
|
|
|
243
239
|
/**
|
|
244
240
|
* The user can change the <code>visibleRowCount</code> by dragging a resizer.
|
|
245
241
|
* @public
|
|
246
242
|
*/
|
|
247
|
-
Interactive
|
|
243
|
+
Interactive: "Interactive",
|
|
248
244
|
|
|
249
245
|
/**
|
|
250
246
|
* The table automatically fills the height of the surrounding container.
|
|
251
247
|
* @public
|
|
252
248
|
*/
|
|
253
|
-
Auto
|
|
249
|
+
Auto: "Auto"
|
|
254
250
|
|
|
255
251
|
};
|
|
256
252
|
|
|
@@ -259,7 +255,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
259
255
|
*
|
|
260
256
|
* Contains IDs of shared DOM references, which should be accessible to inheriting controls via getDomRef() function.
|
|
261
257
|
*
|
|
262
|
-
* @version 1.
|
|
258
|
+
* @version 1.111.0
|
|
263
259
|
* @enum {string}
|
|
264
260
|
* @public
|
|
265
261
|
*/
|
|
@@ -269,13 +265,13 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
269
265
|
* The element id of the Horizontal Scroll Bar of the sap.ui.table.Table.
|
|
270
266
|
* @public
|
|
271
267
|
*/
|
|
272
|
-
HorizontalScrollBar
|
|
268
|
+
HorizontalScrollBar: "hsb",
|
|
273
269
|
|
|
274
270
|
/**
|
|
275
271
|
* The element id of the Vertical Scroll Bar of the sap.ui.table.Table.
|
|
276
272
|
* @public
|
|
277
273
|
*/
|
|
278
|
-
VerticalScrollBar
|
|
274
|
+
VerticalScrollBar: "vsb"
|
|
279
275
|
};
|
|
280
276
|
|
|
281
277
|
/**
|
|
@@ -357,7 +353,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
357
353
|
*
|
|
358
354
|
* This is an alias for {@link sap.ui.model.TreeAutoExpandMode} and kept for compatibility reasons.
|
|
359
355
|
*
|
|
360
|
-
* @version 1.
|
|
356
|
+
* @version 1.111.0
|
|
361
357
|
* @typedef {sap.ui.model.TreeAutoExpandMode}
|
|
362
358
|
* @public
|
|
363
359
|
*/
|
|
@@ -366,13 +362,13 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
366
362
|
//factory for table to create labels and textviews to be overwritten by commons and mobile library
|
|
367
363
|
if (!thisLib.TableHelper) {
|
|
368
364
|
thisLib.TableHelper = {
|
|
369
|
-
addTableClass: function(){ return ""; }, /* must return some additional CSS class */
|
|
370
|
-
createLabel: function(mConfig){ throw new Error("no Label control available!"); }, /* must return a Label control */
|
|
371
|
-
createTextView: function(mConfig){ throw new Error("no TextView control available!"); }, /* must return a textview control */
|
|
365
|
+
addTableClass: function() { return ""; }, /* must return some additional CSS class */
|
|
366
|
+
createLabel: function(mConfig) { throw new Error("no Label control available!"); }, /* must return a Label control */
|
|
367
|
+
createTextView: function(mConfig) { throw new Error("no TextView control available!"); }, /* must return a textview control */
|
|
372
368
|
bFinal: false /* if true, the helper must not be overwritten by an other library */
|
|
373
369
|
};
|
|
374
370
|
}
|
|
375
371
|
|
|
376
372
|
return thisLib;
|
|
377
373
|
|
|
378
|
-
});
|
|
374
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
*
|
|
32
32
|
* @extends sap.ui.base.Object
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.111.0
|
|
35
35
|
* @private
|
|
36
36
|
* @alias sap.ui.table.menus.ColumnHeaderMenuAdapter
|
|
37
37
|
*/
|
|
@@ -200,7 +200,6 @@ sap.ui.define([
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
|
|
204
203
|
if (!mRegistryData) {
|
|
205
204
|
return;
|
|
206
205
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
*
|
|
60
60
|
* @extends sap.ui.table.menus.ColumnHeaderMenuAdapter
|
|
61
61
|
* @author SAP SE
|
|
62
|
-
* @version 1.
|
|
62
|
+
* @version 1.111.0
|
|
63
63
|
* @private
|
|
64
64
|
* @alias sap.ui.table.menus.MobileColumnHeaderMenuAdapter
|
|
65
65
|
*/
|
|
@@ -209,7 +209,7 @@ sap.ui.define([
|
|
|
209
209
|
if (sSortOrder === CoreLibrary.SortOrder.None) {
|
|
210
210
|
this._oColumn._unsort();
|
|
211
211
|
} else {
|
|
212
|
-
this._oColumn.sort(sSortOrder === CoreLibrary.SortOrder.Descending,
|
|
212
|
+
this._oColumn.sort(sSortOrder === CoreLibrary.SortOrder.Descending, false);
|
|
213
213
|
}
|
|
214
214
|
}, this]
|
|
215
215
|
});
|
|
@@ -364,7 +364,7 @@ sap.ui.define([
|
|
|
364
364
|
};
|
|
365
365
|
|
|
366
366
|
MobileColumnHeaderMenuAdapter.prototype._prepareQuickResize = function(oColumn) {
|
|
367
|
-
if (Device.
|
|
367
|
+
if (!Device.system.desktop && oColumn.getResizable()) {
|
|
368
368
|
if (!this._oQuickResize) {
|
|
369
369
|
this._oQuickResize = this._createQuickResize(oColumn);
|
|
370
370
|
}
|
|
@@ -375,9 +375,11 @@ sap.ui.define([
|
|
|
375
375
|
};
|
|
376
376
|
|
|
377
377
|
MobileColumnHeaderMenuAdapter.prototype._createQuickResize = function(oColumn) {
|
|
378
|
+
var oSapMResourceBundle = oCore.getLibraryResourceBundle("sap.m");
|
|
379
|
+
|
|
378
380
|
return new QuickAction({
|
|
379
381
|
content: new Button({
|
|
380
|
-
|
|
382
|
+
text: oSapMResourceBundle.getText("table.COLUMNMENU_RESIZE"),
|
|
381
383
|
press: [function(oEvent) {
|
|
382
384
|
this._startColumnResize(oColumn);
|
|
383
385
|
this._oMenu.close();
|
|
@@ -45,9 +45,7 @@ TBL_DESELECT_ALL=\u0625\u0644\u063A\u0627\u0621 \u062A\u062D\u062F\u064A\u062F \
|
|
|
45
45
|
|
|
46
46
|
TBL_TOGGLE_EDIT_KEY=\u0644\u0625\u062F\u062E\u0627\u0644 \u062E\u0644\u064A\u0629 \u062C\u062F\u0648\u0644\u060C \u0627\u0636\u063A\u0637 F2
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
TBL_COLLAPSE=\u0637\u064A \u0627\u0644\u0639\u0642\u062F\u0629
|
|
48
|
+
TBL_COLLAPSE_EXPAND=\u062A\u0648\u0633\u064A\u0639/\u0637\u064A \u0627\u0644\u0639\u0642\u062F\u0629
|
|
51
49
|
|
|
52
50
|
TBL_LEAF=\u0627\u0644\u0639\u0642\u062F\u0629
|
|
53
51
|
|
|
@@ -20,7 +20,7 @@ TBL_HIDE_COLUMN=\u0421\u043A\u0440\u0438\u0432\u0430\u043D\u0435
|
|
|
20
20
|
TBL_COL_VISBILITY_MENUITEM_SHOW=\u041F\u043E\u043A\u0430\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u043A\u043E\u043B\u043E\u043D\u0430\u0442\u0430
|
|
21
21
|
TBL_COL_VISBILITY_MENUITEM_HIDE=\u0421\u043A\u0440\u0438\u0432\u0430\u043D\u0435 \u043D\u0430 \u043A\u043E\u043B\u043E\u043D\u0430\u0442\u0430
|
|
22
22
|
|
|
23
|
-
TBL_ROW_SELECT=\
|
|
23
|
+
TBL_ROW_SELECT=\u041A\u043B\u0438\u043A\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435.
|
|
24
24
|
TBL_ROW_DESELECT=\u041A\u043B\u0438\u043A\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043E\u0442 \u0438\u0437\u0431\u0440\u0430\u043D\u0438\u0442\u0435
|
|
25
25
|
TBL_ROW_SELECT_MULTI_TOGGLE=\u041A\u043B\u0438\u043A\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435, \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 SHIFT \u0438 \u043A\u043B\u0438\u043A\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D
|
|
26
26
|
|
|
@@ -41,13 +41,11 @@ TBL_NO_COLUMNS=\u0412 \u043C\u043E\u043C\u0435\u043D\u0442\u0430 \u0432 \u0442\u
|
|
|
41
41
|
TBL_NO_DATA=\u041D\u044F\u043C\u0430 \u0434\u0430\u043D\u043D\u0438
|
|
42
42
|
|
|
43
43
|
TBL_SELECT_ALL=\u0418\u0437\u0431\u043E\u0440 \u043D\u0430 \u0432\u0441\u0438\u0447\u043A\u0438
|
|
44
|
-
TBL_DESELECT_ALL=\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0438\u0437\u0431\
|
|
44
|
+
TBL_DESELECT_ALL=\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0441\u0438\u0447\u043A\u0438 \u0438\u0437\u0431\u0440\u0430\u043D\u0438
|
|
45
45
|
|
|
46
46
|
TBL_TOGGLE_EDIT_KEY=\u0417\u0430 \u0434\u0430 \u0432\u044A\u0432\u0435\u0434\u0435\u0442\u0435 \u043A\u043B\u0435\u0442\u043A\u0430 \u043E\u0442 \u0442\u0430\u0431\u043B\u0438\u0446\u0430, \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 F2
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
TBL_COLLAPSE=\u0421\u043A\u0440\u0438\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u044A\u0437\u0435\u043B\u0430
|
|
48
|
+
TBL_COLLAPSE_EXPAND=\u0420\u0430\u0437\u0433\u044A\u0432\u0430\u043D\u0435/\u0441\u0432\u0438\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u044A\u0437\u0435\u043B
|
|
51
49
|
|
|
52
50
|
TBL_LEAF=\u0412\u044A\u0437\u0435\u043B
|
|
53
51
|
|
|
@@ -45,9 +45,7 @@ TBL_DESELECT_ALL=Suprimir totes les marques de selecci\u00F3
|
|
|
45
45
|
|
|
46
46
|
TBL_TOGGLE_EDIT_KEY=Per passar a una cel\u00B7la d'una taula, pr\u00E9mer F2
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
TBL_COLLAPSE=Comprimir nodes
|
|
48
|
+
TBL_COLLAPSE_EXPAND=Desplegar/ocultar node
|
|
51
49
|
|
|
52
50
|
TBL_LEAF=Nodes
|
|
53
51
|
|
|
@@ -45,9 +45,7 @@ TBL_DESELECT_ALL=V\u00FDmaz v\u0161ech ozna\u010Den\u00ED
|
|
|
45
45
|
|
|
46
46
|
TBL_TOGGLE_EDIT_KEY=Pro p\u0159echod do bu\u0148ky tabulky stiskn\u011Bte F2
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
TBL_COLLAPSE=Sbalit uzel
|
|
48
|
+
TBL_COLLAPSE_EXPAND=Rozbalit/Sbalit uzel
|
|
51
49
|
|
|
52
50
|
TBL_LEAF=Uzel
|
|
53
51
|
|
|
@@ -45,9 +45,7 @@ TBL_DESELECT_ALL=Alle Markierungen l\u00F6schen
|
|
|
45
45
|
|
|
46
46
|
TBL_TOGGLE_EDIT_KEY=Um in eine Tabellenzelle zu springen, F2 dr\u00FCcken
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
TBL_COLLAPSE=Knoten komprimieren
|
|
48
|
+
TBL_COLLAPSE_EXPAND=Knoten expandieren/komprimieren
|
|
51
49
|
|
|
52
50
|
TBL_LEAF=Knoten
|
|
53
51
|
|
|
@@ -45,9 +45,7 @@ TBL_DESELECT_ALL=\u0391\u03C0\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u
|
|
|
45
45
|
|
|
46
46
|
TBL_TOGGLE_EDIT_KEY=\u0393\u03B9\u03B1 \u03B5\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BA\u03B5\u03BB\u03B9\u03BF\u03CD \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1, \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 F2
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
TBL_COLLAPSE=\u03A3\u03CD\u03BC\u03C0\u03C4\u03B7\u03BE\u03B7 \u039A\u03CC\u03BC\u03B2\u03BF\u03C5
|
|
48
|
+
TBL_COLLAPSE_EXPAND=\u0395\u03C0\u03AD\u03BA\u03C4\u03B1\u03C3\u03B7/\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7 \u039A\u03CC\u03BC\u03B2\u03BF\u03C5
|
|
51
49
|
|
|
52
50
|
TBL_LEAF=\u039A\u03CC\u03BC\u03B2\u03BF\u03C2
|
|
53
51
|
|