@openui5/sap.ui.table 1.116.0 → 1.117.1
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/package.json +3 -3
- package/src/sap/ui/table/.library +1 -1
- package/src/sap/ui/table/AnalyticalColumn.js +3 -2
- package/src/sap/ui/table/AnalyticalColumnMenu.js +3 -2
- package/src/sap/ui/table/AnalyticalTable.js +14 -2
- package/src/sap/ui/table/Column.js +33 -183
- package/src/sap/ui/table/ColumnMenu.js +30 -34
- 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 +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 +23 -38
- package/src/sap/ui/table/TablePersoController.js +1 -1
- package/src/sap/ui/table/TableRenderer.js +11 -5
- package/src/sap/ui/table/TreeTable.js +1 -1
- package/src/sap/ui/table/extensions/Accessibility.js +10 -3
- 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 +11 -11
- package/src/sap/ui/table/menus/ColumnHeaderMenuAdapter.js +12 -2
- package/src/sap/ui/table/menus/LegacyColumnMenuAdapter.js +272 -0
- 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/ODataV4Selection.js +9 -0
- 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/plugins/V4Aggregation.js +1 -1
- package/src/sap/ui/table/rowmodes/AutoRowMode.js +1 -1
- package/src/sap/ui/table/rowmodes/FixedRowMode.js +1 -1
- package/src/sap/ui/table/rowmodes/InteractiveRowMode.js +1 -1
- package/src/sap/ui/table/rowmodes/RowMode.js +17 -3
- package/src/sap/ui/table/rowmodes/VariableRowMode.js +1 -1
- package/src/sap/ui/table/rules/TableHelper.support.js +5 -0
- package/src/sap/ui/table/utils/TableUtils.js +1 -1
- 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 +18 -1
- package/src/sap/ui/table/utils/_MenuUtils.js +3 -151
- package/ui5.yaml +1 -1
|
@@ -92,7 +92,7 @@ sap.ui.define([
|
|
|
92
92
|
* the data model and binding being used.
|
|
93
93
|
* </p>
|
|
94
94
|
* @extends sap.ui.core.Control
|
|
95
|
-
* @version 1.
|
|
95
|
+
* @version 1.117.1
|
|
96
96
|
*
|
|
97
97
|
* @constructor
|
|
98
98
|
* @public
|
|
@@ -240,6 +240,8 @@ sap.ui.define([
|
|
|
240
240
|
/**
|
|
241
241
|
* Flag to show or hide the column visibility menu. This menu will get displayed in each
|
|
242
242
|
* generated column header menu. It allows to show or hide columns
|
|
243
|
+
* @deprecated As of Version 1.117, use a <code>ColumnMenu</code> with a custom menu item in the <code>headerMenu</code> association
|
|
244
|
+
* instead.
|
|
243
245
|
*/
|
|
244
246
|
showColumnVisibilityMenu: {type: "boolean", group: "Appearance", defaultValue: false},
|
|
245
247
|
|
|
@@ -696,6 +698,7 @@ sap.ui.define([
|
|
|
696
698
|
|
|
697
699
|
/**
|
|
698
700
|
* fired when the visibility of a table column is changed.
|
|
701
|
+
* @deprecated As of Version 1.117
|
|
699
702
|
*/
|
|
700
703
|
columnVisibility: {
|
|
701
704
|
allowPreventDefault: true,
|
|
@@ -1177,8 +1180,10 @@ sap.ui.define([
|
|
|
1177
1180
|
// Clear the cell context menu.
|
|
1178
1181
|
TableUtils.Menu.cleanupDefaultContentCellContextMenu(this);
|
|
1179
1182
|
|
|
1180
|
-
|
|
1181
|
-
|
|
1183
|
+
/**
|
|
1184
|
+
* @deprecated As of Version 1.117
|
|
1185
|
+
*/
|
|
1186
|
+
this._invalidateColumnMenus(); // Update the column menus.
|
|
1182
1187
|
}
|
|
1183
1188
|
}.bind(this));
|
|
1184
1189
|
};
|
|
@@ -1376,6 +1381,9 @@ sap.ui.define([
|
|
|
1376
1381
|
|
|
1377
1382
|
if (this._bIgnoreFixedColumnCount !== bIgnoreFixedColumnCountCandidate) {
|
|
1378
1383
|
this._bIgnoreFixedColumnCount = bIgnoreFixedColumnCountCandidate;
|
|
1384
|
+
/**
|
|
1385
|
+
* @deprecated As of Version 1.117
|
|
1386
|
+
*/
|
|
1379
1387
|
if (this.getEnableColumnFreeze()) {
|
|
1380
1388
|
this._invalidateColumnMenus();
|
|
1381
1389
|
}
|
|
@@ -3244,7 +3252,13 @@ sap.ui.define([
|
|
|
3244
3252
|
var bSelectAll = oEvent.getParameter("selectAll");
|
|
3245
3253
|
var iRowIndex = this._iSourceRowIndex !== undefined ? this._iSourceRowIndex : oSelectionPlugin.getSelectedIndex();
|
|
3246
3254
|
|
|
3247
|
-
|
|
3255
|
+
/**
|
|
3256
|
+
* @deprecated As of Version 1.69
|
|
3257
|
+
*/
|
|
3258
|
+
if (this.getMetadata().hasProperty("selectedIndex")) {
|
|
3259
|
+
this.setProperty("selectedIndex", oSelectionPlugin.getSelectedIndex(), true);
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3248
3262
|
this.fireRowSelectionChange({
|
|
3249
3263
|
rowIndex: iRowIndex,
|
|
3250
3264
|
rowContext: this.getContextByIndex(iRowIndex),
|
|
@@ -3519,36 +3533,6 @@ sap.ui.define([
|
|
|
3519
3533
|
TableUtils.Grouping.resetExperimentalGrouping(this);
|
|
3520
3534
|
}
|
|
3521
3535
|
|
|
3522
|
-
// update the column headers
|
|
3523
|
-
this._invalidateColumnMenus();
|
|
3524
|
-
return this;
|
|
3525
|
-
};
|
|
3526
|
-
|
|
3527
|
-
/*
|
|
3528
|
-
* @see JSDoc generated by SAPUI5 control API generator
|
|
3529
|
-
*/
|
|
3530
|
-
Table.prototype.setEnableCustomFilter = function(bEnableCustomFilter) {
|
|
3531
|
-
this.setProperty("enableCustomFilter", bEnableCustomFilter);
|
|
3532
|
-
// update the column headers
|
|
3533
|
-
this._invalidateColumnMenus();
|
|
3534
|
-
return this;
|
|
3535
|
-
};
|
|
3536
|
-
|
|
3537
|
-
/*
|
|
3538
|
-
* @see JSDoc generated by SAPUI5 control API generator
|
|
3539
|
-
*/
|
|
3540
|
-
Table.prototype.setEnableColumnFreeze = function(bEnableColumnFreeze) {
|
|
3541
|
-
this.setProperty("enableColumnFreeze", bEnableColumnFreeze);
|
|
3542
|
-
this._invalidateColumnMenus();
|
|
3543
|
-
return this;
|
|
3544
|
-
};
|
|
3545
|
-
|
|
3546
|
-
/*
|
|
3547
|
-
* @see JSDoc generated by SAPUI5 control API generator
|
|
3548
|
-
*/
|
|
3549
|
-
Table.prototype.setShowColumnVisibilityMenu = function(bShowColumnVisibilityMenu) {
|
|
3550
|
-
this.setProperty("showColumnVisibilityMenu", bShowColumnVisibilityMenu);
|
|
3551
|
-
this._invalidateColumnMenus();
|
|
3552
3536
|
return this;
|
|
3553
3537
|
};
|
|
3554
3538
|
|
|
@@ -3616,6 +3600,9 @@ sap.ui.define([
|
|
|
3616
3600
|
|
|
3617
3601
|
this._collectTableSizes(); // Avoid double rendering if the fixed column count needs to be adjusted.
|
|
3618
3602
|
|
|
3603
|
+
/**
|
|
3604
|
+
* @deprecated As of Version 1.117
|
|
3605
|
+
*/
|
|
3619
3606
|
if (this.getEnableColumnFreeze()) {
|
|
3620
3607
|
this._invalidateColumnMenus();
|
|
3621
3608
|
}
|
|
@@ -3684,12 +3671,10 @@ sap.ui.define([
|
|
|
3684
3671
|
/**
|
|
3685
3672
|
* Invalidates all column menus.
|
|
3686
3673
|
* @private
|
|
3674
|
+
* @deprecated As of Version 1.117
|
|
3687
3675
|
*/
|
|
3688
3676
|
Table.prototype._invalidateColumnMenus = function() {
|
|
3689
|
-
|
|
3690
|
-
for (var i = 0, l = aCols.length; i < l; i++) {
|
|
3691
|
-
aCols[i]._invalidateMenu();
|
|
3692
|
-
}
|
|
3677
|
+
TableUtils.Hook.call(this, TableUtils.Hook.Keys.Table.InvalidateColumnMenus, this);
|
|
3693
3678
|
};
|
|
3694
3679
|
|
|
3695
3680
|
/**
|
|
@@ -83,10 +83,8 @@ sap.ui.define(['sap/ui/Device', './library', "./Column", './utils/TableUtils', "
|
|
|
83
83
|
if (oScrollExtension.isVerticalScrollbarRequired() && !oScrollExtension.isVerticalScrollbarExternal()) {
|
|
84
84
|
rm.class("sapUiTableVScr"); // show vertical scrollbar
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
* @
|
|
88
|
-
* editable is a deprecated property of sap.ui.table.Table.
|
|
89
|
-
* Once the deprecated code is removed the following 3 lines of code will become obsolete.
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated As of Version 1.115
|
|
90
88
|
*/
|
|
91
89
|
if (oTable.getEditable && oTable.getEditable()) {
|
|
92
90
|
rm.class("sapUiTableEdt"); // editable (background color)
|
|
@@ -556,7 +554,15 @@ sap.ui.define(['sap/ui/Device', './library', "./Column", './utils/TableUtils', "
|
|
|
556
554
|
rm.class("sapUiTableCell");
|
|
557
555
|
rm.class("sapUiTableHeaderCell");
|
|
558
556
|
rm.class("sapUiTableHeaderDataCell");
|
|
559
|
-
|
|
557
|
+
|
|
558
|
+
var oColumnHeaderMenu = oColumn.getHeaderMenuInstance();
|
|
559
|
+
if (oTable.getEnableColumnReordering() || oTable.hasListeners("columnSelect") || oColumnHeaderMenu && oColumnHeaderMenu.getAriaHasPopupType() !== "None") {
|
|
560
|
+
rm.class("sapUiTableHeaderCellActive");
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* @deprecated As of Version 1.117
|
|
564
|
+
*/
|
|
565
|
+
if (!oTable.getEnableColumnReordering() && !oTable.hasListeners("columnSelect") && !oColumnHeaderMenu && oColumn._menuHasItems()) {
|
|
560
566
|
rm.class("sapUiTableHeaderCellActive");
|
|
561
567
|
}
|
|
562
568
|
if (bIsFirstColumn) {
|
|
@@ -719,8 +719,15 @@ sap.ui.define([
|
|
|
719
719
|
if (!bHasColSpan && oColumn) {
|
|
720
720
|
var oColumnHeaderMenu = oColumn.getHeaderMenuInstance();
|
|
721
721
|
if (oColumnHeaderMenu) {
|
|
722
|
-
|
|
723
|
-
|
|
722
|
+
var sPopupType = oColumnHeaderMenu.getAriaHasPopupType();
|
|
723
|
+
if (sPopupType !== "None") {
|
|
724
|
+
mAttributes["aria-haspopup"] = sPopupType.toLowerCase();
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* @deprecated As of Version 1.117
|
|
729
|
+
*/
|
|
730
|
+
if (!oColumnHeaderMenu && oColumn._menuHasItems()) {
|
|
724
731
|
mAttributes["aria-haspopup"] = "menu";
|
|
725
732
|
}
|
|
726
733
|
}
|
|
@@ -947,7 +954,7 @@ sap.ui.define([
|
|
|
947
954
|
* @class Extension for sap.ui.table.Table which handles ACC related things.
|
|
948
955
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
949
956
|
* @author SAP SE
|
|
950
|
-
* @version 1.
|
|
957
|
+
* @version 1.117.1
|
|
951
958
|
* @constructor
|
|
952
959
|
* @private
|
|
953
960
|
* @alias sap.ui.table.extensions.Accessibility
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @class Extension for sap.ui.table.TableRenderer which handles ACC related things.
|
|
43
43
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.117.1
|
|
46
46
|
* @constructor
|
|
47
47
|
* @private
|
|
48
48
|
* @alias sap.ui.table.extensions.AccessibilityRender
|
|
@@ -267,7 +267,7 @@ sap.ui.define([
|
|
|
267
267
|
* @class Extension for sap.ui.table.Table which handles keyboard related things.
|
|
268
268
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
269
269
|
* @author SAP SE
|
|
270
|
-
* @version 1.
|
|
270
|
+
* @version 1.117.1
|
|
271
271
|
* @constructor
|
|
272
272
|
* @private
|
|
273
273
|
* @alias sap.ui.table.extensions.Keyboard
|
|
@@ -770,7 +770,7 @@ sap.ui.define([
|
|
|
770
770
|
* @class Extension for sap.ui.table.Table which handles mouse and touch related things.
|
|
771
771
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
772
772
|
* @author SAP SE
|
|
773
|
-
* @version 1.
|
|
773
|
+
* @version 1.117.1
|
|
774
774
|
* @constructor
|
|
775
775
|
* @private
|
|
776
776
|
* @alias sap.ui.table.extensions.Pointer
|
|
@@ -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.117.1
|
|
2260
2260
|
* @constructor
|
|
2261
2261
|
* @private
|
|
2262
2262
|
* @alias sap.ui.table.extensions.Scrolling
|
|
@@ -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.117.1
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @alias sap.ui.table.extensions.ScrollingIOS
|
|
@@ -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.117.1
|
|
185
185
|
* @constructor
|
|
186
186
|
* @private
|
|
187
187
|
* @alias sap.ui.table.extensions.Synchronization
|
|
@@ -24,13 +24,13 @@ sap.ui.define([
|
|
|
24
24
|
* @namespace
|
|
25
25
|
* @alias sap.ui.table
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.117.1
|
|
28
28
|
* @since 0.8
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
31
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
32
32
|
name: "sap.ui.table",
|
|
33
|
-
version: "1.
|
|
33
|
+
version: "1.117.1",
|
|
34
34
|
dependencies: ["sap.ui.core", "sap.ui.unified"],
|
|
35
35
|
designtime: "sap/ui/table/designtime/library.designtime",
|
|
36
36
|
types: [
|
|
@@ -88,7 +88,7 @@ sap.ui.define([
|
|
|
88
88
|
/**
|
|
89
89
|
* Navigation mode of the table
|
|
90
90
|
*
|
|
91
|
-
* @version 1.
|
|
91
|
+
* @version 1.117.1
|
|
92
92
|
* @enum {string}
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
@@ -115,7 +115,7 @@ sap.ui.define([
|
|
|
115
115
|
/**
|
|
116
116
|
* Row Action types.
|
|
117
117
|
*
|
|
118
|
-
* @version 1.
|
|
118
|
+
* @version 1.117.1
|
|
119
119
|
* @enum {string}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
@@ -144,7 +144,7 @@ sap.ui.define([
|
|
|
144
144
|
/**
|
|
145
145
|
* Selection behavior of the table
|
|
146
146
|
*
|
|
147
|
-
* @version 1.
|
|
147
|
+
* @version 1.117.1
|
|
148
148
|
* @enum {string}
|
|
149
149
|
* @public
|
|
150
150
|
*/
|
|
@@ -173,7 +173,7 @@ sap.ui.define([
|
|
|
173
173
|
/**
|
|
174
174
|
* Selection mode of the table
|
|
175
175
|
*
|
|
176
|
-
* @version 1.
|
|
176
|
+
* @version 1.117.1
|
|
177
177
|
* @enum {string}
|
|
178
178
|
* @public
|
|
179
179
|
*/
|
|
@@ -209,7 +209,7 @@ sap.ui.define([
|
|
|
209
209
|
/**
|
|
210
210
|
* Sort order of a column
|
|
211
211
|
*
|
|
212
|
-
* @version 1.
|
|
212
|
+
* @version 1.117.1
|
|
213
213
|
* @enum {string}
|
|
214
214
|
* @public
|
|
215
215
|
*/
|
|
@@ -232,7 +232,7 @@ sap.ui.define([
|
|
|
232
232
|
/**
|
|
233
233
|
* VisibleRowCountMode of the table
|
|
234
234
|
*
|
|
235
|
-
* @version 1.
|
|
235
|
+
* @version 1.117.1
|
|
236
236
|
* @enum {string}
|
|
237
237
|
* @public
|
|
238
238
|
*/
|
|
@@ -263,7 +263,7 @@ sap.ui.define([
|
|
|
263
263
|
*
|
|
264
264
|
* Contains IDs of shared DOM references, which should be accessible to inheriting controls via getDomRef() function.
|
|
265
265
|
*
|
|
266
|
-
* @version 1.
|
|
266
|
+
* @version 1.117.1
|
|
267
267
|
* @enum {string}
|
|
268
268
|
* @public
|
|
269
269
|
*/
|
|
@@ -361,7 +361,7 @@ sap.ui.define([
|
|
|
361
361
|
*
|
|
362
362
|
* This is an alias for {@link sap.ui.model.TreeAutoExpandMode} and kept for compatibility reasons.
|
|
363
363
|
*
|
|
364
|
-
* @version 1.
|
|
364
|
+
* @version 1.117.1
|
|
365
365
|
* @typedef {sap.ui.model.TreeAutoExpandMode}
|
|
366
366
|
* @public
|
|
367
367
|
*/
|
|
@@ -374,7 +374,7 @@ sap.ui.define([
|
|
|
374
374
|
/**
|
|
375
375
|
* Mode of a selection plugin
|
|
376
376
|
*
|
|
377
|
-
* @version 1.
|
|
377
|
+
* @version 1.117.1
|
|
378
378
|
* @enum {string}
|
|
379
379
|
* @private
|
|
380
380
|
*/
|
|
@@ -19,7 +19,10 @@ sap.ui.define([
|
|
|
19
19
|
|
|
20
20
|
var oAdapterRegistry = new window.Map();
|
|
21
21
|
var mAdapterMapping = {
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated As of Version 1.117
|
|
24
|
+
*/
|
|
25
|
+
"default": "LegacyColumnMenuAdapter",
|
|
23
26
|
"sap.m.table.columnmenu.Menu": "MobileColumnHeaderMenuAdapter",
|
|
24
27
|
"sap.ui.table.test.Menu": "test/TestAdapter" // needed for qunit tests
|
|
25
28
|
};
|
|
@@ -32,7 +35,7 @@ sap.ui.define([
|
|
|
32
35
|
*
|
|
33
36
|
* @extends sap.ui.base.Object
|
|
34
37
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
38
|
+
* @version 1.117.1
|
|
36
39
|
* @private
|
|
37
40
|
* @alias sap.ui.table.menus.ColumnHeaderMenuAdapter
|
|
38
41
|
*/
|
|
@@ -83,6 +86,13 @@ sap.ui.define([
|
|
|
83
86
|
mRegistryData = oAdapterRegistry.get(sAdapterName);
|
|
84
87
|
mRegistryData.adapter = new Adapter();
|
|
85
88
|
mRegistryData.adapter._injectMenuItems(mRegistryData.activeFor.getHeaderMenuInstance(), mRegistryData.activeFor);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated As of Version 1.117
|
|
92
|
+
*/
|
|
93
|
+
if (sAdapterName === "LegacyColumnMenuAdapter") {
|
|
94
|
+
TableUtils.Hook.register(oColumn._getTable(), TableUtils.Hook.Keys.Table.InvalidateColumnMenus, mRegistryData.adapter._invalidateAllMenus, mRegistryData.adapter);
|
|
95
|
+
}
|
|
86
96
|
}),
|
|
87
97
|
columns: [oColumn],
|
|
88
98
|
activeFor: oColumn
|