@openui5/sap.ui.table 1.97.1 → 1.100.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 +25 -30
- package/THIRDPARTY.txt +15 -22
- 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 +2 -2
- package/src/sap/ui/table/AnalyticalTable.js +12 -29
- package/src/sap/ui/table/Column.js +19 -4
- package/src/sap/ui/table/ColumnMenu.js +4 -6
- package/src/sap/ui/table/CreationRow.js +9 -4
- package/src/sap/ui/table/Row.js +1 -1
- package/src/sap/ui/table/RowAction.js +3 -2
- package/src/sap/ui/table/RowActionItem.js +1 -1
- package/src/sap/ui/table/RowActionRenderer.js +3 -3
- package/src/sap/ui/table/RowSettings.js +1 -1
- package/src/sap/ui/table/Table.js +133 -156
- package/src/sap/ui/table/TablePersoController.js +1 -1
- package/src/sap/ui/table/TableRenderer.js +24 -36
- package/src/sap/ui/table/TreeTable.js +25 -9
- package/src/sap/ui/table/extensions/Accessibility.js +10 -6
- 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 +4 -4
- package/src/sap/ui/table/extensions/Pointer.js +5 -1
- package/src/sap/ui/table/extensions/Scrolling.js +14 -50
- package/src/sap/ui/table/extensions/ScrollingIOS.js +13 -61
- package/src/sap/ui/table/extensions/Synchronization.js +5 -5
- package/src/sap/ui/table/library.js +10 -10
- package/src/sap/ui/table/messagebundle_it.properties +8 -8
- package/src/sap/ui/table/messagebundle_pl.properties +1 -1
- package/src/sap/ui/table/plugins/BindingSelection.js +1 -1
- package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +0 -4
- package/src/sap/ui/table/plugins/PluginBase.js +1 -1
- package/src/sap/ui/table/plugins/SelectionModelSelection.js +9 -17
- package/src/sap/ui/table/plugins/SelectionPlugin.js +1 -1
- package/src/sap/ui/table/plugins/V4Aggregation.js +2 -4
- package/src/sap/ui/table/rowmodes/AutoRowMode.js +5 -5
- package/src/sap/ui/table/rowmodes/FixedRowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/InteractiveRowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/RowMode.js +4 -12
- package/src/sap/ui/table/rowmodes/VariableRowMode.js +1 -1
- package/src/sap/ui/table/rules/Rows.support.js +3 -2
- package/src/sap/ui/table/themes/base/Scrolling.less +18 -38
- package/src/sap/ui/table/themes/base/ScrollingIOS.less +11 -19
- package/src/sap/ui/table/themes/base/Table.less +6 -6
- package/src/sap/ui/table/themes/sap_hcb/Table.less +3 -3
- package/src/sap/ui/table/utils/TableUtils.js +9 -37
- package/src/sap/ui/table/utils/_BindingUtils.js +1 -1
- package/src/sap/ui/table/utils/_ColumnUtils.js +2 -9
- package/src/sap/ui/table/utils/_GroupingUtils.js +2 -3
- package/src/sap/ui/table/utils/_HookUtils.js +2 -2
- package/src/sap/ui/table/utils/_MenuUtils.js +14 -7
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
*
|
|
24
24
|
* @class Implements the selection methods for a Table
|
|
25
25
|
* @extends sap.ui.table.plugins.SelectionPlugin
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.100.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @alias sap.ui.table.plugins.SelectionModelSelection
|
|
@@ -79,7 +79,7 @@ sap.ui.define([
|
|
|
79
79
|
SelectionPlugin.prototype.onActivate.apply(this, arguments);
|
|
80
80
|
this.oSelectionModel.attachSelectionChanged(onSelectionChange, this);
|
|
81
81
|
TableUtils.Hook.register(oTable, TableUtils.Hook.Keys.Table.TotalRowCountChanged, onTotalRowCountChanged, this);
|
|
82
|
-
this.
|
|
82
|
+
this._iTotalRowCount = oTable._getTotalRowCount();
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -294,12 +294,6 @@ sap.ui.define([
|
|
|
294
294
|
*/
|
|
295
295
|
SelectionModelSelection.prototype.onTableRowsBound = function(oBinding) {
|
|
296
296
|
SelectionPlugin.prototype.onTableRowsBound.apply(this, arguments);
|
|
297
|
-
if (!this.hasOwnProperty("_bIgnoreNextTotalRowCountChange")) {
|
|
298
|
-
this._bIgnoreNextTotalRowCountChange = true;
|
|
299
|
-
}
|
|
300
|
-
if (!this.getTable()._bContextsAvailable) {
|
|
301
|
-
this._bWaitForBindingChange = true;
|
|
302
|
-
}
|
|
303
297
|
attachToBinding(this, oBinding);
|
|
304
298
|
};
|
|
305
299
|
|
|
@@ -341,20 +335,18 @@ sap.ui.define([
|
|
|
341
335
|
if (sReason === "sort" || sReason === "filter") {
|
|
342
336
|
this.clearSelection();
|
|
343
337
|
}
|
|
344
|
-
|
|
345
|
-
if (this._bWaitForBindingChange) {
|
|
346
|
-
this._bIgnoreNextTotalRowCountChange = true;
|
|
347
|
-
delete this._bWaitForBindingChange;
|
|
348
|
-
}
|
|
349
338
|
}
|
|
350
339
|
|
|
351
340
|
function onTotalRowCountChanged() {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
341
|
+
var iTotalRowCount = this.getTable()._getTotalRowCount();
|
|
342
|
+
|
|
343
|
+
// If rows are added or removed, the index-based selection of the SelectionModel is invalid and needs to be cleared.
|
|
344
|
+
// Changes from 0 are ignored for compatibility, so it is possible to select something before the initial rows update is done.
|
|
345
|
+
if (this._iTotalRowCount > 0 && this._iTotalRowCount !== iTotalRowCount) {
|
|
355
346
|
this.clearSelection();
|
|
356
347
|
}
|
|
357
|
-
|
|
348
|
+
|
|
349
|
+
this._iTotalRowCount = iTotalRowCount;
|
|
358
350
|
}
|
|
359
351
|
|
|
360
352
|
return SelectionModelSelection;
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @class TODO (don't forget to document fixed row count restrictions because fixed rows are set by this plugin)
|
|
33
33
|
* @extends sap.ui.table.plugins.PluginBase
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.100.0
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.76
|
|
38
38
|
* @experimental
|
|
@@ -396,9 +396,7 @@ sap.ui.define([
|
|
|
396
396
|
}
|
|
397
397
|
}.bind(this));
|
|
398
398
|
|
|
399
|
-
|
|
400
|
-
this._sSearch = oAggregateInfo.search;
|
|
401
|
-
}
|
|
399
|
+
this._sSearch = oAggregateInfo.search;
|
|
402
400
|
}
|
|
403
401
|
|
|
404
402
|
this._mColumnState = oAggregateInfo.columnState;
|
|
@@ -8,13 +8,13 @@ sap.ui.define([
|
|
|
8
8
|
"../utils/TableUtils",
|
|
9
9
|
"./RowMode",
|
|
10
10
|
"sap/ui/Device",
|
|
11
|
-
"sap/
|
|
11
|
+
"sap/ui/thirdparty/jquery"
|
|
12
12
|
], function(
|
|
13
13
|
library,
|
|
14
14
|
TableUtils,
|
|
15
15
|
RowMode,
|
|
16
16
|
Device,
|
|
17
|
-
|
|
17
|
+
jQuery
|
|
18
18
|
) {
|
|
19
19
|
"use strict";
|
|
20
20
|
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @ui5-restricted sap.ui.mdc
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.100.0
|
|
39
39
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
40
40
|
*/
|
|
41
41
|
var AutoRowMode = RowMode.extend("sap.ui.table.rowmodes.AutoRowMode", /** @lends sap.ui.table.rowmodes.AutoRowMode.prototype */ {
|
|
@@ -397,12 +397,12 @@ sap.ui.define([
|
|
|
397
397
|
if (!isRowCountInitial(this)) {
|
|
398
398
|
this.initTableRowsAfterDataRequested(iConfiguredRowCount);
|
|
399
399
|
}
|
|
400
|
-
this.getRowContexts(iConfiguredRowCount
|
|
400
|
+
this.getRowContexts(iConfiguredRowCount); // Trigger data request.
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
|
-
* Gets the row count as configured with the <code>
|
|
405
|
+
* Gets the row count as configured with the <code>minRowCount</code> and <code>maxRowCount</code> properties.
|
|
406
406
|
*
|
|
407
407
|
* @returns {int} The configured row count.
|
|
408
408
|
* @private
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @ui5-restricted sap.ui.mdc
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.100.0
|
|
33
33
|
*
|
|
34
34
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
35
35
|
*/
|
|
@@ -276,7 +276,7 @@ sap.ui.define([
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
this.initTableRowsAfterDataRequested(iRowCount);
|
|
279
|
-
this.getRowContexts(iRowCount
|
|
279
|
+
this.getRowContexts(iRowCount); // Trigger data request.
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
282
|
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @ui5-restricted sap.ui.mdc
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.100.0
|
|
37
37
|
*
|
|
38
38
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
39
39
|
*/
|
|
@@ -251,7 +251,7 @@ sap.ui.define([
|
|
|
251
251
|
|
|
252
252
|
if (iRowCount > 0) {
|
|
253
253
|
this.initTableRowsAfterDataRequested(iRowCount);
|
|
254
|
-
this.getRowContexts(iRowCount
|
|
254
|
+
this.getRowContexts(iRowCount); // Trigger data request.
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
257
|
|
|
@@ -7,13 +7,11 @@ sap.ui.define([
|
|
|
7
7
|
"../library",
|
|
8
8
|
"../utils/TableUtils",
|
|
9
9
|
"sap/ui/core/Element",
|
|
10
|
-
"sap/base/Log",
|
|
11
10
|
"sap/ui/thirdparty/jquery"
|
|
12
11
|
], function(
|
|
13
12
|
library,
|
|
14
13
|
TableUtils,
|
|
15
14
|
Element,
|
|
16
|
-
Log,
|
|
17
15
|
jQuery
|
|
18
16
|
) {
|
|
19
17
|
"use strict";
|
|
@@ -36,7 +34,7 @@ sap.ui.define([
|
|
|
36
34
|
* @ui5-restricted sap.ui.mdc
|
|
37
35
|
*
|
|
38
36
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
37
|
+
* @version 1.100.0
|
|
40
38
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
41
39
|
*/
|
|
42
40
|
var RowMode = Element.extend("sap.ui.table.rowmodes.RowMode", /** @lends sap.ui.table.rowmodes.RowMode.prototype */ {
|
|
@@ -669,19 +667,13 @@ sap.ui.define([
|
|
|
669
667
|
* Gets contexts from the table's rows aggregation binding. Requests at least as many contexts as the table has rows or as is returned
|
|
670
668
|
* by {@link RowMode#getMinRequestLength}.
|
|
671
669
|
*
|
|
672
|
-
* @param {int} [iRequestLength] The number of
|
|
673
|
-
* @param {boolean} [bSuppressAdjustToBindingLength=false] Whether the table should be adjusted to a possibly new binding length.
|
|
670
|
+
* @param {int} [iRequestLength] The number of contexts to request.
|
|
674
671
|
* @returns {Object[]} The contexts returned from the binding.
|
|
675
672
|
* @private
|
|
676
673
|
*/
|
|
677
|
-
RowMode.prototype.getRowContexts = function(iRequestLength
|
|
674
|
+
RowMode.prototype.getRowContexts = function(iRequestLength) {
|
|
678
675
|
var oTable = this.getTable();
|
|
679
|
-
|
|
680
|
-
if (!oTable) {
|
|
681
|
-
return [];
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
return oTable._getRowContexts(iRequestLength, bSuppressAdjustToBindingLength === true);
|
|
676
|
+
return oTable ? oTable._getRowContexts(iRequestLength) : [];
|
|
685
677
|
};
|
|
686
678
|
|
|
687
679
|
/**
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"./TableHelper.support",
|
|
8
8
|
"sap/ui/support/library",
|
|
9
|
-
"sap/ui/Device"
|
|
10
|
-
|
|
9
|
+
"sap/ui/Device",
|
|
10
|
+
"sap/ui/thirdparty/jquery"
|
|
11
|
+
], function(SupportHelper, SupportLibrary, Device, jQuery) {
|
|
11
12
|
"use strict";
|
|
12
13
|
|
|
13
14
|
var Categories = SupportLibrary.Categories;
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
@_sap_ui_table_Scrolling_HScrollbarHeight: @_sap_ui_table_Scrolling_ScrollbarSize;
|
|
16
16
|
@_sap_ui_table_Scrolling_HScrollbarHeightMobile: @_sap_ui_table_Scrolling_ScrollbarSizeMobile;
|
|
17
17
|
|
|
18
|
-
@_sap_ui_table_Scrolling_VScrollbarWidth: calc(@
|
|
19
|
-
@_sap_ui_table_Scrolling_VScrollbarWidthMobile: calc(@
|
|
18
|
+
@_sap_ui_table_Scrolling_VScrollbarWidth: calc(@_sap_ui_table_Scrolling_ScrollbarSize ~"+" @_sap_ui_table_BaseBorderWidth);
|
|
19
|
+
@_sap_ui_table_Scrolling_VScrollbarWidthMobile: calc(@_sap_ui_table_Scrolling_ScrollbarSizeMobile ~"+" @_sap_ui_table_BaseBorderWidth);
|
|
20
20
|
|
|
21
21
|
@_sap_ui_table_Scrolling_ScrollbarBackground: @sapUiListHeaderBackground;
|
|
22
22
|
|
|
@@ -25,9 +25,7 @@
|
|
|
25
25
|
._sap_ui_table_Scrolling_NativeScrollbarDesktop() {}
|
|
26
26
|
._sap_ui_table_Scrolling_NativeScrollbarMobile() {}
|
|
27
27
|
|
|
28
|
-
.
|
|
29
|
-
.sapUiTableVSbBg {
|
|
30
|
-
display: none;
|
|
28
|
+
.sapUiTableVSbContainer {
|
|
31
29
|
position: absolute;
|
|
32
30
|
top: 0;
|
|
33
31
|
right: 0;
|
|
@@ -35,22 +33,17 @@
|
|
|
35
33
|
width: @_sap_ui_table_Scrolling_VScrollbarWidth;
|
|
36
34
|
box-sizing: border-box;
|
|
37
35
|
border-left: @_sap_ui_table_BaseBorderWidth solid @sapUiListVerticalBorderColor;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.sapUiTableVSb {
|
|
41
|
-
overflow-x: hidden;
|
|
42
|
-
overflow-y: scroll;
|
|
43
|
-
-webkit-overflow-scrolling: auto;
|
|
44
|
-
background-color: @sapUiListBackground;
|
|
45
|
-
z-index: 4; /* Ensure scrollbar before Resize/Reorder bars*/
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.sapUiTableVSbBg {
|
|
49
36
|
background-color: @_sap_ui_table_Scrolling_ScrollbarBackground;
|
|
37
|
+
z-index: 4; /* Ensure that the resize/reorder bars do not become visible/active when hovering the scrollbar. */
|
|
38
|
+
|
|
39
|
+
&.sapUiTableVSbExternal {
|
|
40
|
+
position: relative;
|
|
41
|
+
}
|
|
50
42
|
}
|
|
51
43
|
|
|
52
|
-
.
|
|
53
|
-
width:
|
|
44
|
+
.sapUiTableVSb {
|
|
45
|
+
width: 100%;
|
|
46
|
+
position: absolute;
|
|
54
47
|
overflow-x: hidden;
|
|
55
48
|
overflow-y: scroll;
|
|
56
49
|
-webkit-overflow-scrolling: auto;
|
|
@@ -78,15 +71,9 @@
|
|
|
78
71
|
}
|
|
79
72
|
|
|
80
73
|
.sapUiTableVScr {
|
|
81
|
-
|
|
82
|
-
.sapUiTableVSb, .sapUiTableVSbBg {
|
|
83
|
-
display: block;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
74
|
.sapUiTableHSb, .sapUiTableCtrlScr, .sapUiTableColHdrScr, .sapUiTableRowActionScr, .sapUiTableRowWithAction {
|
|
87
75
|
margin-right: @_sap_ui_table_Scrolling_VScrollbarWidth;
|
|
88
76
|
}
|
|
89
|
-
|
|
90
77
|
}
|
|
91
78
|
|
|
92
79
|
._sapUiTableVScrWithActionsInnerMixin(@variant:"Width") {
|
|
@@ -252,7 +239,6 @@
|
|
|
252
239
|
|
|
253
240
|
.sapUiTableVSb,
|
|
254
241
|
.sapUiTableHSb,
|
|
255
|
-
.sapUiTableVSbExternal,
|
|
256
242
|
.sapUiTableHSbExternal {
|
|
257
243
|
&::-webkit-scrollbar-thumb {
|
|
258
244
|
background-color: @sapUiScrollBarFaceColor !important;
|
|
@@ -268,15 +254,13 @@
|
|
|
268
254
|
html.sap-desktop {
|
|
269
255
|
.sapUiTableVSb,
|
|
270
256
|
.sapUiTableHSb,
|
|
271
|
-
.sapUiTableVSbExternal,
|
|
272
257
|
.sapUiTableHSbExternal {
|
|
273
258
|
._sap_ui_table_Scrolling_NativeScrollbarDesktop();
|
|
274
259
|
}
|
|
275
260
|
|
|
276
|
-
.sapUiTableVSb
|
|
277
|
-
.sapUiTableVSbExternal {
|
|
261
|
+
.sapUiTableVSb {
|
|
278
262
|
&::-webkit-scrollbar:vertical {
|
|
279
|
-
width: @
|
|
263
|
+
width: @_sap_ui_table_Scrolling_ScrollbarSize !important;
|
|
280
264
|
}
|
|
281
265
|
|
|
282
266
|
&::-webkit-scrollbar-thumb:vertical {
|
|
@@ -288,7 +272,7 @@ html.sap-desktop {
|
|
|
288
272
|
.sapUiTableHSb,
|
|
289
273
|
.sapUiTableHSbExternal {
|
|
290
274
|
&::-webkit-scrollbar:horizontal {
|
|
291
|
-
height: @
|
|
275
|
+
height: @_sap_ui_table_Scrolling_ScrollbarSize !important;
|
|
292
276
|
}
|
|
293
277
|
|
|
294
278
|
&::-webkit-scrollbar-thumb:horizontal {
|
|
@@ -302,16 +286,14 @@ html.sap-tablet:not(.sap-desktop),
|
|
|
302
286
|
html.sap-phone {
|
|
303
287
|
.sapUiTableVSb,
|
|
304
288
|
.sapUiTableHSb,
|
|
305
|
-
.sapUiTableVSbExternal,
|
|
306
289
|
.sapUiTableHSbExternal {
|
|
307
290
|
-webkit-appearance: none;
|
|
308
291
|
._sap_ui_table_Scrolling_NativeScrollbarMobile();
|
|
309
292
|
}
|
|
310
293
|
|
|
311
|
-
.sapUiTableVSb
|
|
312
|
-
.sapUiTableVSbExternal {
|
|
294
|
+
.sapUiTableVSb {
|
|
313
295
|
&::-webkit-scrollbar:vertical {
|
|
314
|
-
width: @
|
|
296
|
+
width: @_sap_ui_table_Scrolling_ScrollbarSizeMobile !important;
|
|
315
297
|
}
|
|
316
298
|
|
|
317
299
|
&::-webkit-scrollbar-thumb:vertical {
|
|
@@ -325,7 +307,7 @@ html.sap-phone {
|
|
|
325
307
|
.sapUiTableHSb,
|
|
326
308
|
.sapUiTableHSbExternal {
|
|
327
309
|
&::-webkit-scrollbar:horizontal {
|
|
328
|
-
height: @
|
|
310
|
+
height: @_sap_ui_table_Scrolling_ScrollbarSizeMobile !important;
|
|
329
311
|
}
|
|
330
312
|
|
|
331
313
|
&::-webkit-scrollbar-thumb:horizontal {
|
|
@@ -336,9 +318,7 @@ html.sap-phone {
|
|
|
336
318
|
}
|
|
337
319
|
}
|
|
338
320
|
|
|
339
|
-
.
|
|
340
|
-
.sapUiTableVSbBg,
|
|
341
|
-
.sapUiTableVSbExternal,
|
|
321
|
+
.sapUiTableVSbContainer,
|
|
342
322
|
.sapUiTableVSbHeader {
|
|
343
323
|
width: @_sap_ui_table_Scrolling_VScrollbarWidthMobile;
|
|
344
324
|
}
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* ================================== */
|
|
2
2
|
/* CSS for sap.ui.table/ScrollingIOS */
|
|
3
|
-
/* Base theme
|
|
4
|
-
/*
|
|
5
|
-
|
|
6
|
-
.sapUiTableVSbIOSActive {
|
|
7
|
-
.sapUiTableVSb,
|
|
8
|
-
.sapUiTableVSbExternal {
|
|
9
|
-
touch-action: none;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
3
|
+
/* Base theme */
|
|
4
|
+
/* ================================== */
|
|
12
5
|
|
|
13
6
|
.sapUiTableVSbIOS {
|
|
14
7
|
position: absolute;
|
|
15
|
-
|
|
8
|
+
width: 100%;
|
|
16
9
|
z-index: 5;
|
|
17
|
-
width: @_sap_ui_table_Scrolling_ScrollbarSizeMobile;
|
|
18
|
-
}
|
|
19
10
|
|
|
20
|
-
.sapUiTableVSbIOSThumb {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
.sapUiTableVSbIOSThumb {
|
|
12
|
+
position: relative;
|
|
13
|
+
background-color: #949494;
|
|
14
|
+
border-radius: 0.25rem;
|
|
15
|
+
left: @_sap_ui_table_BaseBorderWidth;
|
|
16
|
+
width: calc(100% ~"-" calc(2 * @_sap_ui_table_BaseBorderWidth));
|
|
17
|
+
}
|
|
26
18
|
}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
@_sap_ui_table_Table_TableHeaderBorderColor: @sapUiListVerticalBorderColor;
|
|
14
14
|
|
|
15
15
|
// Can be used in other themes to add styles for which there are no style definitions in the base theme and therefore no theme parameters.
|
|
16
|
-
.
|
|
17
|
-
.
|
|
18
|
-
.
|
|
16
|
+
._sap_ui_table_Table_TitleContainer() {}
|
|
17
|
+
._sap_ui_table_Table_ExtensionContainer() {}
|
|
18
|
+
._sap_ui_table_Table_GridContainer() {}
|
|
19
19
|
|
|
20
20
|
/*******************************************************************************
|
|
21
21
|
* MAIN TABLE SECTIONS (First Level Elements)
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
flex: 1 1 auto;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.
|
|
44
|
+
._sap_ui_table_Table_TitleContainer();
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.sapUiTableHdrTitle {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
|
|
54
54
|
.sapUiTableTbr,
|
|
55
55
|
.sapUiTableExt {
|
|
56
|
-
.
|
|
56
|
+
._sap_ui_table_Table_ExtensionContainer();
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.sapUiTableCnt {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
border-right: @_sap_ui_table_BaseBorderWidth solid @sapUiListVerticalBorderColor;
|
|
65
65
|
border-top: @_sap_ui_table_BaseBorderWidth solid @sapUiListBorderColor;
|
|
66
66
|
background-color: @sapBackgroundColor;
|
|
67
|
-
.
|
|
67
|
+
._sap_ui_table_Table_GridContainer();
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.sapUiTableFtr {
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
@_sap_ui_table_Table_FocusOutlineOffset: -3px;
|
|
7
7
|
@_sap_ui_table_Table_TableHeaderBorderWidth: 3px;
|
|
8
8
|
|
|
9
|
-
.
|
|
9
|
+
._sap_ui_table_Table_TitleContainer() {
|
|
10
10
|
border-bottom: 3px solid @sapUiListHeaderBorderColor;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.
|
|
13
|
+
._sap_ui_table_Table_ExtensionContainer() {
|
|
14
14
|
border-bottom: @_sap_ui_table_BaseBorderWidth solid @sapUiListHeaderBorderColor;
|
|
15
15
|
padding: 0.125rem;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.
|
|
18
|
+
._sap_ui_table_Table_GridContainer() {
|
|
19
19
|
border: @_sap_ui_table_BaseBorderWidth solid @sapUiListBorderColor;
|
|
20
20
|
}
|
|
@@ -54,7 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
* @type {sap.ui.table.utils.TableUtils.CellType}
|
|
55
55
|
* @static
|
|
56
56
|
* @constant
|
|
57
|
-
* @typedef {
|
|
57
|
+
* @typedef {object} sap.ui.table.utils.TableUtils.CellType
|
|
58
58
|
* @property {int} DATACELL - Data cell.
|
|
59
59
|
* @property {int} COLUMNHEADER - Column header cell.
|
|
60
60
|
* @property {int} ROWHEADER - Row header cell.
|
|
@@ -84,7 +84,7 @@ sap.ui.define([
|
|
|
84
84
|
*
|
|
85
85
|
* @type {sap.ui.table.utils.TableUtils.BaseSize}
|
|
86
86
|
* @static
|
|
87
|
-
* @typedef {
|
|
87
|
+
* @typedef {object} sap.ui.table.utils.TableUtils.BaseSize
|
|
88
88
|
* @property {int} sapUiSizeCondensed - The default base size in pixels in condensed content density.
|
|
89
89
|
* @property {int} sapUiSizeCompact - The default base siz in pixels in compact content density.
|
|
90
90
|
* @property {int} sapUiSizeCozy - The default base siz in pixels in cozy content density.
|
|
@@ -119,7 +119,7 @@ sap.ui.define([
|
|
|
119
119
|
*
|
|
120
120
|
* @type {sap.ui.table.utils.TableUtils.DefaultRowHeight}
|
|
121
121
|
* @static
|
|
122
|
-
* @typedef {
|
|
122
|
+
* @typedef {object} sap.ui.table.utils.TableUtils.DefaultRowHeight
|
|
123
123
|
* @property {int} sapUiSizeCondensed - The default height of a row in pixels in condensed content density.
|
|
124
124
|
* @property {int} sapUiSizeCompact - The default height of a row in pixels in compact content density.
|
|
125
125
|
* @property {int} sapUiSizeCozy - The default height of a row in pixels in cozy content density.
|
|
@@ -137,7 +137,7 @@ sap.ui.define([
|
|
|
137
137
|
*
|
|
138
138
|
* @type {sap.ui.table.utils.TableUtils.ThemeParameters}
|
|
139
139
|
* @static
|
|
140
|
-
* @typedef {
|
|
140
|
+
* @typedef {object} sap.ui.table.utils.TableUtils.ThemeParameters
|
|
141
141
|
* @property {string} navigationIcon - Name of the navigation icon.
|
|
142
142
|
* @property {string} deleteIcon - Name of the delete icon.
|
|
143
143
|
* @property {string} clearSelectionIcon - Name of the clearSelection icon.
|
|
@@ -156,7 +156,7 @@ sap.ui.define([
|
|
|
156
156
|
* @type {sap.ui.table.utils.TableUtils.ROWS_UPDATE_REASON}
|
|
157
157
|
* @static
|
|
158
158
|
* @constant
|
|
159
|
-
* @typedef {
|
|
159
|
+
* @typedef {object} sap.ui.table.utils.TableUtils.ROWS_UPDATE_REASON
|
|
160
160
|
* @property {string} Sort - {@link sap.ui.model.ChangeReason.Sort}
|
|
161
161
|
* @property {string} Filter - {@link sap.ui.model.ChangeReason.Filter}
|
|
162
162
|
* @property {string} Change - {@link sap.ui.model.ChangeReason.Change}
|
|
@@ -199,17 +199,11 @@ sap.ui.define([
|
|
|
199
199
|
*/
|
|
200
200
|
var INTERACTIVE_ELEMENT_SELECTORS = ":sapTabbable, .sapUiTableTreeIcon:not(.sapUiTableTreeIconLeaf)";
|
|
201
201
|
|
|
202
|
-
function hasSelectableText(oElement) {
|
|
203
|
-
// Text selection is only supported for <input type="text|password|search|tel|url">
|
|
204
|
-
// In Chrome text selection could also be supported for other input types, but to have a consistent behavior we don't do that.
|
|
205
|
-
return oElement != null && oElement instanceof window.HTMLInputElement && /^(text|password|search|tel|url)$/.test(oElement.type);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
202
|
/**
|
|
209
203
|
* Static collection of utility functions related to the sap.ui.table.Table, ...
|
|
210
204
|
*
|
|
211
205
|
* @author SAP SE
|
|
212
|
-
* @version 1.
|
|
206
|
+
* @version 1.100.0
|
|
213
207
|
* @namespace
|
|
214
208
|
* @alias sap.ui.table.utils.TableUtils
|
|
215
209
|
* @private
|
|
@@ -571,7 +565,7 @@ sap.ui.define([
|
|
|
571
565
|
* @param {sap.ui.table.Table} oTable Instance of the table.
|
|
572
566
|
* @returns {sap.ui.table.utils.TableUtils.FocusedItemInfo | null} Returns the information about the focused item, or <code>null</code>, if the
|
|
573
567
|
* item navigation is not yet initialized.
|
|
574
|
-
* @typedef {
|
|
568
|
+
* @typedef {object} sap.ui.table.utils.TableUtils.FocusedItemInfo
|
|
575
569
|
* @property {int} cell Index of focused cell in the ItemNavigation.
|
|
576
570
|
* @property {int} columnCount Number of columns in the ItemNavigation.
|
|
577
571
|
* @property {int} cellInRow Index of the cell in the row.
|
|
@@ -655,7 +649,7 @@ sap.ui.define([
|
|
|
655
649
|
* <li><b>cell</b>: Is <code>null</code>, if the cell is not a table cell.</li>
|
|
656
650
|
* </ul>
|
|
657
651
|
*
|
|
658
|
-
* @typedef {
|
|
652
|
+
* @typedef {object} sap.ui.table.utils.TableUtils.CellInfo
|
|
659
653
|
* @property {sap.ui.table.utils.TableUtils.CellType} [type] The type of the cell.
|
|
660
654
|
* @property {int | null} [rowIndex] The index of the row the cell is inside.
|
|
661
655
|
* @property {int | null} columnIndex The index of the column, in the <code>columns</code> aggregation, the cell is inside.
|
|
@@ -976,7 +970,7 @@ sap.ui.define([
|
|
|
976
970
|
* sapUiSizeCompact, sapUiSizeCondensed, sapUiSizeCozy
|
|
977
971
|
*
|
|
978
972
|
* @param {sap.ui.table.Table} oControl Instance of the table.
|
|
979
|
-
* @returns {
|
|
973
|
+
* @returns {string | undefined} name of the content density style class or undefined if none was found.
|
|
980
974
|
*/
|
|
981
975
|
getContentDensity: function(oControl) {
|
|
982
976
|
var sContentDensity;
|
|
@@ -1428,28 +1422,6 @@ sap.ui.define([
|
|
|
1428
1422
|
mThemeParameters.navIndicatorWidth = getPixelValue("_sap_ui_table_NavIndicatorWidth");
|
|
1429
1423
|
},
|
|
1430
1424
|
|
|
1431
|
-
/**
|
|
1432
|
-
* Selects the text of an HTMLElement that supports text selection.
|
|
1433
|
-
*
|
|
1434
|
-
* @param {HTMLElement} oElement The element whose text to select.
|
|
1435
|
-
*/
|
|
1436
|
-
selectElementText: function(oElement) {
|
|
1437
|
-
if (hasSelectableText(oElement)) {
|
|
1438
|
-
oElement.select();
|
|
1439
|
-
}
|
|
1440
|
-
},
|
|
1441
|
-
|
|
1442
|
-
/**
|
|
1443
|
-
* Deselects the text of an HTMLElement that supports text selection.
|
|
1444
|
-
*
|
|
1445
|
-
* @param {HTMLElement} oElement The element whose text to deselect.
|
|
1446
|
-
*/
|
|
1447
|
-
deselectElementText: function(oElement) {
|
|
1448
|
-
if (hasSelectableText(oElement)) {
|
|
1449
|
-
oElement.setSelectionRange(0, 0);
|
|
1450
|
-
}
|
|
1451
|
-
},
|
|
1452
|
-
|
|
1453
1425
|
/**
|
|
1454
1426
|
* Adds a delegate that listens to the events of an element.
|
|
1455
1427
|
*
|
|
@@ -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.100.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.100.0
|
|
22
22
|
* @namespace
|
|
23
23
|
* @alias sap.ui.table.utils._ColumnUtils
|
|
24
24
|
* @private
|
|
@@ -551,14 +551,7 @@ sap.ui.define([
|
|
|
551
551
|
* @returns {int} The minimal possible column width in pixels.
|
|
552
552
|
*/
|
|
553
553
|
getMinColumnWidth: function() {
|
|
554
|
-
|
|
555
|
-
return this._iColMinWidth;
|
|
556
|
-
}
|
|
557
|
-
this._iColMinWidth = 48;
|
|
558
|
-
if (!Device.system.desktop) {
|
|
559
|
-
this._iColMinWidth = 88;
|
|
560
|
-
}
|
|
561
|
-
return this._iColMinWidth;
|
|
554
|
+
return Device.system.desktop ? 48 : 88;
|
|
562
555
|
},
|
|
563
556
|
|
|
564
557
|
/**
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* Note: Do not access the functions of this helper directly, but via <code>sap.ui.table.utils.TableUtils.Grouping...</code>
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.100.0
|
|
27
27
|
* @namespace
|
|
28
28
|
* @alias sap.ui.table.utils._GroupingUtils
|
|
29
29
|
* @private
|
|
@@ -356,9 +356,8 @@ sap.ui.define([
|
|
|
356
356
|
},
|
|
357
357
|
|
|
358
358
|
/**
|
|
359
|
-
* Cleanup the
|
|
359
|
+
* Cleanup the DOM changes previously done by <code>updateTableRowForGrouping</code>.
|
|
360
360
|
*
|
|
361
|
-
* @param {sap.ui.table.Table} oTable Instance of the table
|
|
362
361
|
* @param {sap.ui.table.Row} oRow Instance of the row
|
|
363
362
|
*/
|
|
364
363
|
cleanupTableRowForGrouping: function(oRow) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides helper sap.ui.table.utils._HookUtils.
|
|
8
|
-
sap.ui.define(["sap/ui/base/DataType"
|
|
8
|
+
sap.ui.define(["sap/ui/base/DataType"], function(DataType) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
var Hooks = new window.WeakMap();
|
|
@@ -22,7 +22,7 @@ sap.ui.define(["sap/ui/base/DataType", "sap/base/Log"], function(DataType, Log)
|
|
|
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.100.0
|
|
26
26
|
* @namespace
|
|
27
27
|
* @alias sap.ui.table.utils._HookUtils
|
|
28
28
|
*
|