@openui5/sap.ui.table 1.141.2 → 1.142.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/README.md +2 -2
- package/REUSE.toml +38 -0
- package/THIRDPARTY.txt +34 -1
- 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 +62 -143
- package/src/sap/ui/table/RowActionItem.js +67 -41
- package/src/sap/ui/table/RowActionRenderer.js +40 -5
- package/src/sap/ui/table/RowSettings.js +1 -1
- package/src/sap/ui/table/Table.js +62 -4
- package/src/sap/ui/table/TablePersoController.js +1 -1
- package/src/sap/ui/table/TableRenderer.js +8 -1
- package/src/sap/ui/table/TreeTable.js +1 -1
- package/src/sap/ui/table/extensions/Accessibility.js +1 -1
- 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/plugins/BindingSelection.js +1 -1
- package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +10 -2
- package/src/sap/ui/table/plugins/ODataV4Aggregation.js +1 -1
- package/src/sap/ui/table/plugins/ODataV4Hierarchy.js +1 -1
- package/src/sap/ui/table/plugins/ODataV4MultiLevel.js +1 -1
- package/src/sap/ui/table/plugins/ODataV4MultiSelection.js +1 -1
- package/src/sap/ui/table/plugins/ODataV4Selection.js +1 -1
- package/src/sap/ui/table/plugins/ODataV4SingleSelection.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/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/themes/base/Cell.less +53 -28
- package/src/sap/ui/table/themes/base/Scrolling.less +58 -24
- package/src/sap/ui/table/themes/base/library.source.less +7 -3
- package/src/sap/ui/table/themes/sap_hcb/base_Cell.less +54 -29
- package/src/sap/ui/table/themes/sap_hcb/base_Scrolling.less +49 -21
- package/src/sap/ui/table/themes/sap_hcb/library.source.less +7 -3
- 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
|
@@ -5,8 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
//Provides default renderer for control sap.ui.table.RowAction
|
|
8
|
-
sap.ui.define([
|
|
9
|
-
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"./library"
|
|
10
|
+
], function(
|
|
11
|
+
library
|
|
12
|
+
) {
|
|
10
13
|
"use strict";
|
|
11
14
|
|
|
12
15
|
/**
|
|
@@ -42,13 +45,45 @@ sap.ui.define([],
|
|
|
42
45
|
|
|
43
46
|
rm.openEnd();
|
|
44
47
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
// special handling is needed for the navigation item
|
|
49
|
+
const aItems = [];
|
|
50
|
+
const aNavigationItems = [];
|
|
51
|
+
oAction._getVisibleItems().forEach((oItem) => {
|
|
52
|
+
oItem.getType() === library.RowActionType.Navigation ? aNavigationItems.push(oItem) : aItems.push(oItem);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
if (oAction._getSize() >= aItems.length + aNavigationItems.length /*No overflow*/) {
|
|
56
|
+
aItems.forEach((oItem) => {
|
|
57
|
+
renderItem(rm, oItem);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
aNavigationItems.forEach((oItem) => {
|
|
61
|
+
renderItem(rm, oItem);
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
const iItemsBeforeOverflow = Math.max(0, oAction._getSize() - aNavigationItems.length - 1);
|
|
65
|
+
for (let i = 0; i < iItemsBeforeOverflow; i++) {
|
|
66
|
+
renderItem(rm, aItems[i]);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const oIcon = oAction._getOverflowIcon(aItems, aNavigationItems, iItemsBeforeOverflow);
|
|
70
|
+
rm.renderControl(oIcon);
|
|
71
|
+
|
|
72
|
+
for (let i = 0; i < Math.min(aNavigationItems.length, oAction._getSize() - 1); i++) {
|
|
73
|
+
renderItem(rm, aNavigationItems[i]);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
48
76
|
|
|
49
77
|
rm.close("div");
|
|
50
78
|
};
|
|
51
79
|
|
|
80
|
+
function renderItem(rm, oActionItem) {
|
|
81
|
+
const oIcon = oActionItem._getIcon();
|
|
82
|
+
oIcon.addStyleClass("sapUiTableActionIcon");
|
|
83
|
+
|
|
84
|
+
rm.renderControl(oIcon);
|
|
85
|
+
}
|
|
86
|
+
|
|
52
87
|
return RowActionRenderer;
|
|
53
88
|
|
|
54
89
|
}, /* bExport= */ true);
|
|
@@ -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.
|
|
30
|
+
* @version 1.142.0
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @public
|
|
@@ -106,7 +106,7 @@ sap.ui.define([
|
|
|
106
106
|
* the data model and binding being used.
|
|
107
107
|
* </p>
|
|
108
108
|
* @extends sap.ui.core.Control
|
|
109
|
-
* @version 1.
|
|
109
|
+
* @version 1.142.0
|
|
110
110
|
*
|
|
111
111
|
* @constructor
|
|
112
112
|
* @public
|
|
@@ -398,8 +398,9 @@ sap.ui.define([
|
|
|
398
398
|
enableBusyIndicator: {type: "boolean", group: "Behavior", defaultValue: false},
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
|
-
* Number of row actions made visible
|
|
402
|
-
* The
|
|
401
|
+
* Number of row actions made visible, hence this property also determines the width of the row action column.
|
|
402
|
+
* The maximum number of visible row actions is 3. If the <code>rowActionTemplate</code> contains more <code>rowActionItems</code>, they
|
|
403
|
+
* are shown in an overflow menu.
|
|
403
404
|
* @since 1.45.0
|
|
404
405
|
*/
|
|
405
406
|
rowActionCount: {type: "int", group: "Appearance", defaultValue: 0},
|
|
@@ -1977,6 +1978,63 @@ sap.ui.define([
|
|
|
1977
1978
|
oTable.getRows()[Math.min(iIndex, iTotalRowCount - 1) - iFirstRenderedRowIndex]._setFocus(bFirstInteractiveElement);
|
|
1978
1979
|
}
|
|
1979
1980
|
|
|
1981
|
+
/**
|
|
1982
|
+
* Scrolls to the specified row index. If the <code>iIndex</code> is not in the visible area,
|
|
1983
|
+
* it scrolls the row into view.
|
|
1984
|
+
*
|
|
1985
|
+
* If the given index is already in the visible area, it resolves the promise immediately without scrolling.
|
|
1986
|
+
*
|
|
1987
|
+
* @param {number} iIndex The index of the row to scroll into the visible area
|
|
1988
|
+
*
|
|
1989
|
+
* @private
|
|
1990
|
+
* @ui5-restricted sap.ui.mdc
|
|
1991
|
+
* @returns {Promise} A <code>Promise</code> that resolves after scrolling is finished if scrolling was required
|
|
1992
|
+
* @throws {Error} If the table has fixed top rows
|
|
1993
|
+
* @throws {Error} If the index is not a number or less than -1
|
|
1994
|
+
*/
|
|
1995
|
+
Table.prototype._scrollToIndex = function(iIndex) {
|
|
1996
|
+
const mRowCounts = this._getRowCounts();
|
|
1997
|
+
|
|
1998
|
+
if (mRowCounts.fixedTop > 0) {
|
|
1999
|
+
throw new Error("The table has fixed top rows. Scrolling to a specific row index is not supported in this case.");
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
if (typeof iIndex !== "number" || iIndex < -1) {
|
|
2003
|
+
throw new Error("Invalid index: " + iIndex);
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
const iRowCount = this._getRowCounts().count;
|
|
2007
|
+
|
|
2008
|
+
if (iRowCount === 0) {
|
|
2009
|
+
return Promise.resolve();
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
if (iIndex === -1) {
|
|
2013
|
+
// Instead of _getMaxFirstVisibleRowIndex() we use _getTotalRowCount() here.
|
|
2014
|
+
// Scenario: The table displays 5 rows, the first visible row is 7, the total row count is 16.
|
|
2015
|
+
// Rows 7 to 11 are displayed. The user calls _scrollToIndex(-1) to scroll to the last row.
|
|
2016
|
+
// _getMaxFirstVisibleRowIndex() would return 11. Since 11 is currently the last visible row, no scrolling would happen.
|
|
2017
|
+
iIndex = this._getTotalRowCount();
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
const iFirstVisibleRow = this.getFirstVisibleRow();
|
|
2021
|
+
|
|
2022
|
+
if (iIndex >= iFirstVisibleRow && iIndex <= iFirstVisibleRow + iRowCount) {
|
|
2023
|
+
return Promise.resolve();
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
const bExpectRowsUpdated = this._setFirstVisibleRowIndex(iIndex);
|
|
2027
|
+
|
|
2028
|
+
return new Promise((resolve) => {
|
|
2029
|
+
this.attachEventOnce("_rowsUpdated", () => {
|
|
2030
|
+
if (!bExpectRowsUpdated) {
|
|
2031
|
+
this._scrollToIndex(iIndex);
|
|
2032
|
+
}
|
|
2033
|
+
resolve();
|
|
2034
|
+
});
|
|
2035
|
+
});
|
|
2036
|
+
};
|
|
2037
|
+
|
|
1980
2038
|
// enable calling 'bindAggregation("rows")' without a factory
|
|
1981
2039
|
Table.getMetadata().getAggregation("rows")._doesNotRequireFactory = true;
|
|
1982
2040
|
|
|
@@ -4055,7 +4113,7 @@ sap.ui.define([
|
|
|
4055
4113
|
|
|
4056
4114
|
Table.prototype.setRowActionCount = function(iCount) {
|
|
4057
4115
|
if (typeof iCount === "number") {
|
|
4058
|
-
iCount = Math.max(0, Math.min(iCount,
|
|
4116
|
+
iCount = Math.max(0, Math.min(iCount, 3));
|
|
4059
4117
|
}
|
|
4060
4118
|
|
|
4061
4119
|
return this.setProperty("rowActionCount", iCount);
|
|
@@ -108,8 +108,15 @@ sap.ui.define([
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
if (TableUtils.hasRowActions(oTable)) {
|
|
111
|
+
rm.class("sapUiTableRAct");
|
|
111
112
|
const iRowActionCount = oTable.getRowActionCount();
|
|
112
|
-
|
|
113
|
+
if (iRowActionCount === 1) {
|
|
114
|
+
rm.class("sapUiTableRActS");
|
|
115
|
+
} else if (iRowActionCount === 2) {
|
|
116
|
+
rm.class("sapUiTableRActM");
|
|
117
|
+
} else {
|
|
118
|
+
rm.class("sapUiTableRActL");
|
|
119
|
+
}
|
|
113
120
|
} else if (TableUtils.hasRowNavigationIndicators(oTable)) {
|
|
114
121
|
rm.class("sapUiTableRowNavIndicator");
|
|
115
122
|
}
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* The control can be used in combination with {@link sap.ui.model.json.JSONModel JSONModel} and {@link sap.ui.model.odata.v2.ODataModel ODataModel V2}.
|
|
39
39
|
* For a tree-table-like behavior with OData V4 services, use the {@link sap.ui.table.Table Table} control with the {@link sap.ui.table.plugins.ODataV4Hierarchy ODataV4Hierarchy} plugin.
|
|
40
40
|
* @extends sap.ui.table.Table
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.142.0
|
|
42
42
|
*
|
|
43
43
|
* @constructor
|
|
44
44
|
* @public
|
|
@@ -1143,7 +1143,7 @@ sap.ui.define([
|
|
|
1143
1143
|
* @class Extension for sap.ui.table.Table which handles ACC related things.
|
|
1144
1144
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
1145
1145
|
* @author SAP SE
|
|
1146
|
-
* @version 1.
|
|
1146
|
+
* @version 1.142.0
|
|
1147
1147
|
* @constructor
|
|
1148
1148
|
* @private
|
|
1149
1149
|
* @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.
|
|
47
|
+
* @version 1.142.0
|
|
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.
|
|
268
|
+
* @version 1.142.0
|
|
269
269
|
* @constructor
|
|
270
270
|
* @private
|
|
271
271
|
* @alias sap.ui.table.extensions.Keyboard
|
|
@@ -670,7 +670,7 @@ sap.ui.define([
|
|
|
670
670
|
* @class Extension for sap.ui.table.Table which handles mouse and touch related things.
|
|
671
671
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
672
672
|
* @author SAP SE
|
|
673
|
-
* @version 1.
|
|
673
|
+
* @version 1.142.0
|
|
674
674
|
* @constructor
|
|
675
675
|
* @private
|
|
676
676
|
* @alias sap.ui.table.extensions.Pointer
|
|
@@ -2314,7 +2314,7 @@ sap.ui.define([
|
|
|
2314
2314
|
* @class Extension for sap.ui.table.Table which handles scrolling.
|
|
2315
2315
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
2316
2316
|
* @author SAP SE
|
|
2317
|
-
* @version 1.
|
|
2317
|
+
* @version 1.142.0
|
|
2318
2318
|
* @constructor
|
|
2319
2319
|
* @private
|
|
2320
2320
|
* @alias sap.ui.table.extensions.Scrolling
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @class Extension for sap.ui.table.Table which handles the scrollbar on iOS.
|
|
30
30
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.142.0
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
35
35
|
* @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.
|
|
188
|
+
* @version 1.142.0
|
|
189
189
|
* @constructor
|
|
190
190
|
* @private
|
|
191
191
|
* @alias sap.ui.table.extensions.Synchronization
|
|
@@ -40,14 +40,14 @@ sap.ui.define([
|
|
|
40
40
|
* @namespace
|
|
41
41
|
* @alias sap.ui.table
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.142.0
|
|
44
44
|
* @since 0.8
|
|
45
45
|
* @public
|
|
46
46
|
*/
|
|
47
47
|
const thisLib = Library.init({
|
|
48
48
|
name: "sap.ui.table",
|
|
49
49
|
apiVersion: 2,
|
|
50
|
-
version: "1.
|
|
50
|
+
version: "1.142.0",
|
|
51
51
|
dependencies: ["sap.ui.core", "sap.ui.unified"],
|
|
52
52
|
...{
|
|
53
53
|
interactionDocumentation: true
|
|
@@ -114,7 +114,7 @@ sap.ui.define([
|
|
|
114
114
|
/**
|
|
115
115
|
* Navigation mode of the table
|
|
116
116
|
*
|
|
117
|
-
* @version 1.
|
|
117
|
+
* @version 1.142.0
|
|
118
118
|
* @enum {string}
|
|
119
119
|
* @deprecated As of version 1.38, the concept has been discarded.
|
|
120
120
|
* @public
|
|
@@ -145,7 +145,7 @@ sap.ui.define([
|
|
|
145
145
|
/**
|
|
146
146
|
* Row Action types.
|
|
147
147
|
*
|
|
148
|
-
* @version 1.
|
|
148
|
+
* @version 1.142.0
|
|
149
149
|
* @enum {string}
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
@@ -176,7 +176,7 @@ sap.ui.define([
|
|
|
176
176
|
/**
|
|
177
177
|
* Selection behavior of the table
|
|
178
178
|
*
|
|
179
|
-
* @version 1.
|
|
179
|
+
* @version 1.142.0
|
|
180
180
|
* @enum {string}
|
|
181
181
|
* @public
|
|
182
182
|
*/
|
|
@@ -207,7 +207,7 @@ sap.ui.define([
|
|
|
207
207
|
/**
|
|
208
208
|
* Selection mode of the table
|
|
209
209
|
*
|
|
210
|
-
* @version 1.
|
|
210
|
+
* @version 1.142.0
|
|
211
211
|
* @enum {string}
|
|
212
212
|
* @public
|
|
213
213
|
*/
|
|
@@ -245,7 +245,7 @@ sap.ui.define([
|
|
|
245
245
|
/**
|
|
246
246
|
* Sort order of a column
|
|
247
247
|
*
|
|
248
|
-
* @version 1.
|
|
248
|
+
* @version 1.142.0
|
|
249
249
|
* @enum {string}
|
|
250
250
|
* @public
|
|
251
251
|
* @deprecated As of version 1.120, replaced with <code>sap.ui.core.SortOrder</code>
|
|
@@ -272,7 +272,7 @@ sap.ui.define([
|
|
|
272
272
|
/**
|
|
273
273
|
* VisibleRowCountMode of the table
|
|
274
274
|
*
|
|
275
|
-
* @version 1.
|
|
275
|
+
* @version 1.142.0
|
|
276
276
|
* @enum {string}
|
|
277
277
|
* @deprecated As of version 1.119, see the <code>rowMode</code> aggregation of <code>sap.ui.table.Table</code> for more details.
|
|
278
278
|
* @public
|
|
@@ -317,7 +317,7 @@ sap.ui.define([
|
|
|
317
317
|
*
|
|
318
318
|
* Contains IDs of shared DOM references, which should be accessible to inheriting controls via getDomRef() function.
|
|
319
319
|
*
|
|
320
|
-
* @version 1.
|
|
320
|
+
* @version 1.142.0
|
|
321
321
|
* @enum {string}
|
|
322
322
|
* @public
|
|
323
323
|
*/
|
|
@@ -418,7 +418,7 @@ sap.ui.define([
|
|
|
418
418
|
*
|
|
419
419
|
* This is an alias for {@link sap.ui.model.TreeAutoExpandMode} and kept for compatibility reasons.
|
|
420
420
|
*
|
|
421
|
-
* @version 1.
|
|
421
|
+
* @version 1.142.0
|
|
422
422
|
* @typedef {sap.ui.model.TreeAutoExpandMode}
|
|
423
423
|
* @public
|
|
424
424
|
* @deprecated As of version 1.120, replaced by <code>sap.ui.model.TreeAutoExpandMode</code>
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
* @extends sap.ui.table.plugins.SelectionPlugin
|
|
57
57
|
*
|
|
58
58
|
* @author SAP SE
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.142.0
|
|
60
60
|
*
|
|
61
61
|
* @public
|
|
62
62
|
* @since 1.64
|
|
@@ -399,7 +399,15 @@ sap.ui.define([
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
return TableUtils.loadContexts(oPlugin.getControl().getBinding(), iGetContextsStartIndex, iGetContextsLength).then(function() {
|
|
402
|
+
return TableUtils.loadContexts(oPlugin.getControl().getBinding(), iGetContextsStartIndex, iGetContextsLength).then(function(aContexts) {
|
|
403
|
+
if (!oPlugin._bLimitDisabled && aContexts.length < iLimit) {
|
|
404
|
+
oPlugin.setLimitReached(false);
|
|
405
|
+
if (bReverse) {
|
|
406
|
+
iIndexTo = iIndexFrom - aContexts.length + 1;
|
|
407
|
+
} else {
|
|
408
|
+
iIndexTo = iIndexFrom + aContexts.length - 1;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
403
411
|
return {indexFrom: iIndexFrom, indexTo: iIndexTo};
|
|
404
412
|
});
|
|
405
413
|
}
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @public
|
|
41
41
|
*
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.142.0
|
|
44
44
|
*/
|
|
45
45
|
const InteractiveRowMode = RowMode.extend("sap.ui.table.rowmodes.Interactive", /** @lends sap.ui.table.rowmodes.Interactive.prototype */ {
|
|
46
46
|
metadata: {
|