@openui5/sap.ui.table 1.106.0 → 1.107.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/package.json +3 -3
- package/src/sap/ui/table/.library +1 -1
- package/src/sap/ui/table/AnalyticalColumn.js +2 -3
- package/src/sap/ui/table/AnalyticalColumnMenu.js +1 -2
- package/src/sap/ui/table/AnalyticalTable.js +1 -17
- package/src/sap/ui/table/Column.js +1 -4
- package/src/sap/ui/table/ColumnMenu.js +2 -3
- package/src/sap/ui/table/CreationRow.js +1 -2
- package/src/sap/ui/table/Row.js +1 -3
- package/src/sap/ui/table/RowAction.js +1 -2
- package/src/sap/ui/table/RowActionItem.js +1 -2
- package/src/sap/ui/table/RowSettings.js +1 -2
- package/src/sap/ui/table/Table.js +35 -32
- package/src/sap/ui/table/TablePersoController.js +6 -5
- package/src/sap/ui/table/TableRenderer.js +7 -6
- package/src/sap/ui/table/TreeTable.js +2 -10
- package/src/sap/ui/table/extensions/Accessibility.js +34 -21
- package/src/sap/ui/table/extensions/AccessibilityRender.js +3 -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 +7 -6
- 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 +46 -7
- package/src/sap/ui/table/library.js +10 -16
- package/src/sap/ui/table/menus/ColumnHeaderMenuAdapter.js +1 -1
- package/src/sap/ui/table/menus/MobileColumnHeaderMenuAdapter.js +79 -49
- package/src/sap/ui/table/messagebundle.properties +6 -0
- package/src/sap/ui/table/messagebundle_ar.properties +4 -0
- package/src/sap/ui/table/messagebundle_bg.properties +4 -0
- package/src/sap/ui/table/messagebundle_ca.properties +4 -0
- package/src/sap/ui/table/messagebundle_cs.properties +4 -0
- package/src/sap/ui/table/messagebundle_cy.properties +4 -0
- package/src/sap/ui/table/messagebundle_da.properties +4 -0
- package/src/sap/ui/table/messagebundle_de.properties +4 -0
- package/src/sap/ui/table/messagebundle_el.properties +4 -0
- package/src/sap/ui/table/messagebundle_en.properties +4 -0
- package/src/sap/ui/table/messagebundle_en_GB.properties +4 -0
- package/src/sap/ui/table/messagebundle_en_US_sappsd.properties +4 -0
- package/src/sap/ui/table/messagebundle_en_US_saprigi.properties +4 -0
- package/src/sap/ui/table/messagebundle_en_US_saptrc.properties +4 -0
- package/src/sap/ui/table/messagebundle_es.properties +4 -0
- package/src/sap/ui/table/messagebundle_es_MX.properties +4 -0
- package/src/sap/ui/table/messagebundle_et.properties +4 -0
- package/src/sap/ui/table/messagebundle_fi.properties +4 -0
- package/src/sap/ui/table/messagebundle_fr.properties +4 -0
- package/src/sap/ui/table/messagebundle_fr_CA.properties +4 -0
- package/src/sap/ui/table/messagebundle_hi.properties +4 -0
- package/src/sap/ui/table/messagebundle_hr.properties +4 -0
- package/src/sap/ui/table/messagebundle_hu.properties +4 -0
- package/src/sap/ui/table/messagebundle_id.properties +4 -0
- package/src/sap/ui/table/messagebundle_it.properties +4 -0
- package/src/sap/ui/table/messagebundle_iw.properties +4 -0
- package/src/sap/ui/table/messagebundle_ja.properties +4 -0
- package/src/sap/ui/table/messagebundle_kk.properties +4 -0
- package/src/sap/ui/table/messagebundle_ko.properties +4 -0
- package/src/sap/ui/table/messagebundle_lt.properties +4 -0
- package/src/sap/ui/table/messagebundle_lv.properties +4 -0
- package/src/sap/ui/table/messagebundle_ms.properties +4 -0
- package/src/sap/ui/table/messagebundle_nl.properties +4 -0
- package/src/sap/ui/table/messagebundle_no.properties +4 -0
- package/src/sap/ui/table/messagebundle_pl.properties +4 -0
- package/src/sap/ui/table/messagebundle_pt.properties +4 -0
- package/src/sap/ui/table/messagebundle_pt_PT.properties +4 -0
- package/src/sap/ui/table/messagebundle_ro.properties +4 -0
- package/src/sap/ui/table/messagebundle_ru.properties +4 -0
- package/src/sap/ui/table/messagebundle_sh.properties +4 -0
- package/src/sap/ui/table/messagebundle_sk.properties +4 -0
- package/src/sap/ui/table/messagebundle_sl.properties +4 -0
- package/src/sap/ui/table/messagebundle_sv.properties +5 -1
- package/src/sap/ui/table/messagebundle_th.properties +4 -0
- package/src/sap/ui/table/messagebundle_tr.properties +4 -0
- package/src/sap/ui/table/messagebundle_uk.properties +4 -0
- package/src/sap/ui/table/messagebundle_vi.properties +4 -0
- package/src/sap/ui/table/messagebundle_zh_CN.properties +4 -0
- package/src/sap/ui/table/messagebundle_zh_TW.properties +4 -0
- package/src/sap/ui/table/plugins/BindingSelection.js +1 -1
- package/src/sap/ui/table/plugins/PluginBase.js +1 -2
- package/src/sap/ui/table/plugins/SelectionModelSelection.js +1 -1
- package/src/sap/ui/table/plugins/SelectionPlugin.js +1 -2
- package/src/sap/ui/table/plugins/V4Aggregation.js +1 -2
- package/src/sap/ui/table/rowmodes/AutoRowMode.js +1 -2
- package/src/sap/ui/table/rowmodes/FixedRowMode.js +1 -2
- package/src/sap/ui/table/rowmodes/InteractiveRowMode.js +1 -2
- package/src/sap/ui/table/rowmodes/RowMode.js +1 -2
- package/src/sap/ui/table/rowmodes/VariableRowMode.js +1 -2
- package/src/sap/ui/table/utils/TableUtils.js +12 -30
- package/src/sap/ui/table/utils/_BindingUtils.js +1 -1
- package/src/sap/ui/table/utils/_ColumnUtils.js +38 -12
- package/src/sap/ui/table/utils/_GroupingUtils.js +1 -1
- package/src/sap/ui/table/utils/_HookUtils.js +1 -1
- package/src/sap/ui/table/utils/_MenuUtils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.table",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.107.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.table",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.
|
|
18
|
-
"@openui5/sap.ui.unified": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.107.0",
|
|
18
|
+
"@openui5/sap.ui.unified": "1.107.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.107.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Table-like controls, mainly for desktop scenarios.</documentation>
|
|
12
12
|
|
|
@@ -48,13 +48,12 @@ sap.ui.define([
|
|
|
48
48
|
* @extends sap.ui.table.Column
|
|
49
49
|
*
|
|
50
50
|
* @author SAP SE
|
|
51
|
-
* @version 1.
|
|
51
|
+
* @version 1.107.0
|
|
52
52
|
*
|
|
53
53
|
* @constructor
|
|
54
54
|
* @public
|
|
55
55
|
* @experimental Since version 1.21.
|
|
56
56
|
* @alias sap.ui.table.AnalyticalColumn
|
|
57
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
58
57
|
*/
|
|
59
58
|
var AnalyticalColumn = Column.extend("sap.ui.table.AnalyticalColumn", /** @lends sap.ui.table.AnalyticalColumn.prototype */ { metadata : {
|
|
60
59
|
|
|
@@ -84,7 +83,7 @@ sap.ui.define([
|
|
|
84
83
|
/**
|
|
85
84
|
* If the column is grouped, this formatter is used to format the value in the group header
|
|
86
85
|
*/
|
|
87
|
-
groupHeaderFormatter : {type : "
|
|
86
|
+
groupHeaderFormatter : {type : "function", group : "Behavior", defaultValue : null}
|
|
88
87
|
}
|
|
89
88
|
}});
|
|
90
89
|
|
|
@@ -20,14 +20,13 @@ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './utils/TableUtil
|
|
|
20
20
|
* @extends sap.ui.table.ColumnMenu
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.107.0
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @public
|
|
27
27
|
* @experimental Since version 1.21.
|
|
28
28
|
* The AnalyticalColumnMenu will be productized soon.
|
|
29
29
|
* @alias sap.ui.table.AnalyticalColumnMenu
|
|
30
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
31
30
|
*/
|
|
32
31
|
var AnalyticalColumnMenu = ColumnMenu.extend("sap.ui.table.AnalyticalColumnMenu", /** @lends sap.ui.table.AnalyticalColumnMenu.prototype */ {
|
|
33
32
|
metadata : {
|
|
@@ -56,14 +56,13 @@ sap.ui.define([
|
|
|
56
56
|
* @see http://scn.sap.com/docs/DOC-44986
|
|
57
57
|
*
|
|
58
58
|
* @extends sap.ui.table.Table
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.107.0
|
|
60
60
|
*
|
|
61
61
|
* @constructor
|
|
62
62
|
* @public
|
|
63
63
|
* @alias sap.ui.table.AnalyticalTable
|
|
64
64
|
* @see {@link topic:08197fa68e4f479cbe30f639cc1cd22c sap.ui.table}
|
|
65
65
|
* @see {@link fiori:/analytical-table-alv/ Analytical Table}
|
|
66
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
67
66
|
*/
|
|
68
67
|
var AnalyticalTable = Table.extend("sap.ui.table.AnalyticalTable", /** @lends sap.ui.table.AnalyticalTable.prototype */ { metadata : {
|
|
69
68
|
|
|
@@ -743,7 +742,6 @@ sap.ui.define([
|
|
|
743
742
|
* Index of the row to return the context from.
|
|
744
743
|
* @returns {sap.ui.model.Context} The context of a row by its index
|
|
745
744
|
* @public
|
|
746
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
747
745
|
*/
|
|
748
746
|
AnalyticalTable.prototype.getContextByIndex = function(iIndex) {
|
|
749
747
|
var oBinding = this.getBinding();
|
|
@@ -1007,7 +1005,6 @@ sap.ui.define([
|
|
|
1007
1005
|
*
|
|
1008
1006
|
* @returns {int} The total size of the data entries
|
|
1009
1007
|
* @public
|
|
1010
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1011
1008
|
*/
|
|
1012
1009
|
AnalyticalTable.prototype.getTotalSize = function() {
|
|
1013
1010
|
var oBinding = this.getBinding();
|
|
@@ -1074,7 +1071,6 @@ sap.ui.define([
|
|
|
1074
1071
|
* @param {int} iRowIndex The row index for which the selection state should be retrieved
|
|
1075
1072
|
* @returns {boolean} true if the index is selected, false otherwise
|
|
1076
1073
|
* @public
|
|
1077
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1078
1074
|
* @function
|
|
1079
1075
|
* @name sap.ui.table.AnalyticalTable#isIndexSelected
|
|
1080
1076
|
*/
|
|
@@ -1087,7 +1083,6 @@ sap.ui.define([
|
|
|
1087
1083
|
* @param {int} iRowIndex The row index which will be selected (in case it exists)
|
|
1088
1084
|
* @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
|
|
1089
1085
|
* @public
|
|
1090
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1091
1086
|
* @function
|
|
1092
1087
|
* @name sap.ui.table.AnalyticalTable#setSelectedIndex
|
|
1093
1088
|
*/
|
|
@@ -1102,7 +1097,6 @@ sap.ui.define([
|
|
|
1102
1097
|
*
|
|
1103
1098
|
* @returns {int[]} an array containing all selected indices
|
|
1104
1099
|
* @public
|
|
1105
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1106
1100
|
* @function
|
|
1107
1101
|
* @name sap.ui.table.AnalyticalTable#getSelectedIndices
|
|
1108
1102
|
*/
|
|
@@ -1117,7 +1111,6 @@ sap.ui.define([
|
|
|
1117
1111
|
* @param {int} iToIndex the end index of the selection range
|
|
1118
1112
|
* @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
|
|
1119
1113
|
* @public
|
|
1120
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1121
1114
|
* @function
|
|
1122
1115
|
* @name sap.ui.table.AnalyticalTable#setSelectionInterval
|
|
1123
1116
|
*/
|
|
@@ -1135,7 +1128,6 @@ sap.ui.define([
|
|
|
1135
1128
|
* @param {int} iToIndex The starting index of the range which will be selected.
|
|
1136
1129
|
* @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
|
|
1137
1130
|
* @public
|
|
1138
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1139
1131
|
* @function
|
|
1140
1132
|
* @name sap.ui.table.AnalyticalTable#addSelectionInterval
|
|
1141
1133
|
*/
|
|
@@ -1150,7 +1142,6 @@ sap.ui.define([
|
|
|
1150
1142
|
* @param {int} iToIndex The starting index of the range which will be deselected.
|
|
1151
1143
|
* @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
|
|
1152
1144
|
* @public
|
|
1153
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1154
1145
|
* @function
|
|
1155
1146
|
* @name sap.ui.table.AnalyticalTable#removeSelectionInterval
|
|
1156
1147
|
*/
|
|
@@ -1165,7 +1156,6 @@ sap.ui.define([
|
|
|
1165
1156
|
*
|
|
1166
1157
|
* @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
|
|
1167
1158
|
* @public
|
|
1168
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1169
1159
|
* @function
|
|
1170
1160
|
* @name sap.ui.table.AnalyticalTable#selectAll
|
|
1171
1161
|
*/
|
|
@@ -1178,7 +1168,6 @@ sap.ui.define([
|
|
|
1178
1168
|
*
|
|
1179
1169
|
* @returns {int} Current lead selection index.
|
|
1180
1170
|
* @public
|
|
1181
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1182
1171
|
* @function
|
|
1183
1172
|
* @name sap.ui.table.AnalyticalTable#getSelectedIndex
|
|
1184
1173
|
*/
|
|
@@ -1189,7 +1178,6 @@ sap.ui.define([
|
|
|
1189
1178
|
* @param {int|int[]} vRowIndex A single index or an array of indices of the rows to be expanded
|
|
1190
1179
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
1191
1180
|
* @public
|
|
1192
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1193
1181
|
* @function
|
|
1194
1182
|
*/
|
|
1195
1183
|
AnalyticalTable.prototype.expand = TreeTable.prototype.expand;
|
|
@@ -1200,7 +1188,6 @@ sap.ui.define([
|
|
|
1200
1188
|
* @param {int|int[]} vRowIndex A single index, or an array of indices of the rows to be collapsed
|
|
1201
1189
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
1202
1190
|
* @public
|
|
1203
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1204
1191
|
* @function
|
|
1205
1192
|
*/
|
|
1206
1193
|
AnalyticalTable.prototype.collapse = TreeTable.prototype.collapse;
|
|
@@ -1212,7 +1199,6 @@ sap.ui.define([
|
|
|
1212
1199
|
*
|
|
1213
1200
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
1214
1201
|
* @public
|
|
1215
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1216
1202
|
* @since 1.70
|
|
1217
1203
|
*/
|
|
1218
1204
|
AnalyticalTable.prototype.expandAll = function() {
|
|
@@ -1230,7 +1216,6 @@ sap.ui.define([
|
|
|
1230
1216
|
*
|
|
1231
1217
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
1232
1218
|
* @public
|
|
1233
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1234
1219
|
* @function
|
|
1235
1220
|
*/
|
|
1236
1221
|
AnalyticalTable.prototype.collapseAll = TreeTable.prototype.collapseAll;
|
|
@@ -1241,7 +1226,6 @@ sap.ui.define([
|
|
|
1241
1226
|
* @param {int} iRowIndex The index of the row to be checked
|
|
1242
1227
|
* @returns {boolean} <code>true</code> if the row is expanded, <code>false</code> if it is collapsed
|
|
1243
1228
|
* @public
|
|
1244
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
1245
1229
|
* @function
|
|
1246
1230
|
*/
|
|
1247
1231
|
AnalyticalTable.prototype.isExpanded = TreeTable.prototype.isExpanded;
|
|
@@ -72,12 +72,11 @@ sap.ui.define([
|
|
|
72
72
|
* @class
|
|
73
73
|
* The column allows you to define column specific properties that will be applied when rendering the table.
|
|
74
74
|
* @extends sap.ui.core.Element
|
|
75
|
-
* @version 1.
|
|
75
|
+
* @version 1.107.0
|
|
76
76
|
*
|
|
77
77
|
* @constructor
|
|
78
78
|
* @public
|
|
79
79
|
* @alias sap.ui.table.Column
|
|
80
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
81
80
|
*/
|
|
82
81
|
var Column = Element.extend("sap.ui.table.Column", /** @lends sap.ui.table.Column.prototype */ { metadata : {
|
|
83
82
|
|
|
@@ -844,7 +843,6 @@ sap.ui.define([
|
|
|
844
843
|
* @public
|
|
845
844
|
* @deprecated Since version 1.5.1.
|
|
846
845
|
* Please use the function "sap.ui.Table.prototype.sort".
|
|
847
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
848
846
|
*/
|
|
849
847
|
Column.prototype.toggleSort = function() {
|
|
850
848
|
// by default we sort ascending / only if already is sorted ascending then we toggle
|
|
@@ -859,7 +857,6 @@ sap.ui.define([
|
|
|
859
857
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
860
858
|
* @public
|
|
861
859
|
* @deprecated Since version 1.5.1. Please use the function "sap.ui.Table.prototype.sort".
|
|
862
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
863
860
|
*/
|
|
864
861
|
Column.prototype.sort = function(bDescending, bAdd) {
|
|
865
862
|
var oTable = this.getParent();
|
|
@@ -39,12 +39,11 @@ sap.ui.define([
|
|
|
39
39
|
* @class
|
|
40
40
|
* The column menu provides all common actions that can be performed on a column.
|
|
41
41
|
* @extends sap.ui.unified.Menu
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.107.0
|
|
43
43
|
*
|
|
44
44
|
* @constructor
|
|
45
45
|
* @public
|
|
46
46
|
* @alias sap.ui.table.ColumnMenu
|
|
47
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) design time metamodel
|
|
48
47
|
*/
|
|
49
48
|
var ColumnMenu = Menu.extend("sap.ui.table.ColumnMenu", /** @lends sap.ui.table.ColumnMenu.prototype */ {
|
|
50
49
|
metadata : {
|
|
@@ -349,7 +348,7 @@ sap.ui.define([
|
|
|
349
348
|
*/
|
|
350
349
|
ColumnMenu.prototype._createColumnVisibilityMenuItem = function(oColumn) {
|
|
351
350
|
var oTable = this._oTable;
|
|
352
|
-
var sText = TableUtils.Column.getHeaderText(
|
|
351
|
+
var sText = TableUtils.Column.getHeaderText(oColumn);
|
|
353
352
|
|
|
354
353
|
return new MenuItem({
|
|
355
354
|
text: sText,
|
|
@@ -32,13 +32,12 @@ sap.ui.define([
|
|
|
32
32
|
* <code>sap.ui.commons</code> library.
|
|
33
33
|
* @extends sap.ui.core.Control
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.107.0
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
39
39
|
* @ui5-restricted sap.ui.mdc
|
|
40
40
|
* @alias sap.ui.table.CreationRow
|
|
41
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
42
41
|
*/
|
|
43
42
|
var CreationRow = Control.extend("sap.ui.table.CreationRow", /** @lends sap.ui.table.CreationRow.prototype */ {
|
|
44
43
|
metadata: {
|
package/src/sap/ui/table/Row.js
CHANGED
|
@@ -135,12 +135,11 @@ sap.ui.define([
|
|
|
135
135
|
* @class
|
|
136
136
|
* The row.
|
|
137
137
|
* @extends sap.ui.core.Element
|
|
138
|
-
* @version 1.
|
|
138
|
+
* @version 1.107.0
|
|
139
139
|
*
|
|
140
140
|
* @constructor
|
|
141
141
|
* @public
|
|
142
142
|
* @alias sap.ui.table.Row
|
|
143
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
144
143
|
*/
|
|
145
144
|
var Row = Element.extend("sap.ui.table.Row", /** @lends sap.ui.table.Row.prototype */ { metadata : {
|
|
146
145
|
library : "sap.ui.table",
|
|
@@ -240,7 +239,6 @@ sap.ui.define([
|
|
|
240
239
|
*
|
|
241
240
|
* @returns {int} index of the row (considers scroll position and fixed rows)
|
|
242
241
|
* @public
|
|
243
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
244
242
|
*/
|
|
245
243
|
Row.prototype.getIndex = function() {
|
|
246
244
|
var oTable = this.getTable();
|
|
@@ -35,13 +35,12 @@ sap.ui.define([
|
|
|
35
35
|
* If more action items are available as the available space allows to display an overflow mechanism is provided.
|
|
36
36
|
* This control must only be used in the context of the <code>sap.ui.table.Table</code> control to define row actions.
|
|
37
37
|
* @extends sap.ui.core.Control
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.107.0
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @public
|
|
42
42
|
* @since 1.45
|
|
43
43
|
* @alias sap.ui.table.RowAction
|
|
44
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
45
44
|
*/
|
|
46
45
|
var RowAction = Control.extend("sap.ui.table.RowAction", /** @lends sap.ui.table.RowAction.prototype */ {
|
|
47
46
|
metadata: {
|
|
@@ -24,13 +24,12 @@ sap.ui.define([
|
|
|
24
24
|
* @extends sap.ui.core.Element
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.107.0
|
|
28
28
|
* @since 1.45
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
32
32
|
* @alias sap.ui.table.RowActionItem
|
|
33
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
34
33
|
*/
|
|
35
34
|
var Item = Element.extend("sap.ui.table.RowActionItem", /** @lends sap.ui.table.RowActionItem.prototype */ {
|
|
36
35
|
metadata: {
|
|
@@ -24,13 +24,12 @@ sap.ui.define([
|
|
|
24
24
|
* The <code>RowSettings</code> control allows you to configure a row.
|
|
25
25
|
* You can only use this control in the context of the <code>sap.ui.table.Table</code> control to define row settings.
|
|
26
26
|
* @extends sap.ui.core.Element
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.107.0
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
31
31
|
* @since 1.48.0
|
|
32
32
|
* @alias sap.ui.table.RowSettings
|
|
33
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
34
33
|
*/
|
|
35
34
|
var RowSettings = Element.extend("sap.ui.table.RowSettings", /** @lends sap.ui.table.RowSettings.prototype */ {
|
|
36
35
|
metadata: {
|
|
@@ -28,7 +28,8 @@ sap.ui.define([
|
|
|
28
28
|
"./rowmodes/AutoRowMode",
|
|
29
29
|
"./plugins/SelectionModelSelection",
|
|
30
30
|
"sap/ui/thirdparty/jquery",
|
|
31
|
-
"sap/base/Log"
|
|
31
|
+
"sap/base/Log",
|
|
32
|
+
"sap/ui/core/Configuration"
|
|
32
33
|
], function(
|
|
33
34
|
Device,
|
|
34
35
|
Control,
|
|
@@ -53,7 +54,8 @@ sap.ui.define([
|
|
|
53
54
|
AutoRowMode,
|
|
54
55
|
SelectionModelSelectionPlugin,
|
|
55
56
|
jQuery,
|
|
56
|
-
Log
|
|
57
|
+
Log,
|
|
58
|
+
Configuration
|
|
57
59
|
) {
|
|
58
60
|
"use strict";
|
|
59
61
|
|
|
@@ -90,7 +92,7 @@ sap.ui.define([
|
|
|
90
92
|
* the data model and binding being used.
|
|
91
93
|
* </p>
|
|
92
94
|
* @extends sap.ui.core.Control
|
|
93
|
-
* @version 1.
|
|
95
|
+
* @version 1.107.0
|
|
94
96
|
*
|
|
95
97
|
* @constructor
|
|
96
98
|
* @public
|
|
@@ -98,7 +100,6 @@ sap.ui.define([
|
|
|
98
100
|
* @see {@link topic:08197fa68e4f479cbe30f639cc1cd22c sap.ui.table}
|
|
99
101
|
* @see {@link topic:148892ff9aea4a18b912829791e38f3e Tables: Which One Should I Choose?}
|
|
100
102
|
* @see {@link fiori:/grid-table/ Grid Table}
|
|
101
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
102
103
|
*/
|
|
103
104
|
var Table = Control.extend("sap.ui.table.Table", /** @lends sap.ui.table.Table.prototype */ { metadata : {
|
|
104
105
|
library : "sap.ui.table",
|
|
@@ -961,7 +962,7 @@ sap.ui.define([
|
|
|
961
962
|
/*
|
|
962
963
|
* Flag indicating whether the text direction is RTL. If <code>false</code>, the text direction is LTR.
|
|
963
964
|
*/
|
|
964
|
-
this._bRtlMode =
|
|
965
|
+
this._bRtlMode = Configuration.getRTL();
|
|
965
966
|
|
|
966
967
|
/*
|
|
967
968
|
* Flag indicating whether the rows are currently being bound. This is the time between #bindRows and the actual instantiation of the
|
|
@@ -1153,7 +1154,7 @@ sap.ui.define([
|
|
|
1153
1154
|
var pUpdateLocalizationInfo = Promise.resolve();
|
|
1154
1155
|
|
|
1155
1156
|
if (bRtlChanged) {
|
|
1156
|
-
this._bRtlMode =
|
|
1157
|
+
this._bRtlMode = Configuration.getRTL();
|
|
1157
1158
|
}
|
|
1158
1159
|
|
|
1159
1160
|
if (bLangChanged) {
|
|
@@ -2616,7 +2617,7 @@ sap.ui.define([
|
|
|
2616
2617
|
var $this = this.$();
|
|
2617
2618
|
var sTableId = this.getId();
|
|
2618
2619
|
|
|
2619
|
-
if (
|
|
2620
|
+
if (Configuration.getAnimation()) {
|
|
2620
2621
|
jQuery(document.body).on("webkitTransitionEnd." + sTableId + " transitionend." + sTableId,
|
|
2621
2622
|
function(oEvent) {
|
|
2622
2623
|
if (jQuery(oEvent.target).has($this).length > 0) {
|
|
@@ -3048,7 +3049,6 @@ sap.ui.define([
|
|
|
3048
3049
|
* @param {sap.ui.table.Column} oColumn Column to be sorted
|
|
3049
3050
|
* @param {boolean} bAdd Set to true to add the new sort criterion to the existing sort criteria
|
|
3050
3051
|
* @private
|
|
3051
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3052
3052
|
*/
|
|
3053
3053
|
Table.prototype.pushSortedColumn = function(oColumn, bAdd) {
|
|
3054
3054
|
if (!bAdd) {
|
|
@@ -3075,7 +3075,6 @@ sap.ui.define([
|
|
|
3075
3075
|
* @see sap.ui.table.Table#sort
|
|
3076
3076
|
* @returns {sap.ui.table.Column[]} Array of sorted columns
|
|
3077
3077
|
* @public
|
|
3078
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3079
3078
|
*/
|
|
3080
3079
|
Table.prototype.getSortedColumns = function() {
|
|
3081
3080
|
// ensure that _aSortedColumns can't be altered by accident
|
|
@@ -3089,7 +3088,6 @@ sap.ui.define([
|
|
|
3089
3088
|
* @param {sap.ui.table.SortOrder} oSortOrder Sort order of the column (if undefined the default will be ascending)
|
|
3090
3089
|
* @param {boolean} bAdd Set to true to add the new sort criterion to the existing sort criteria
|
|
3091
3090
|
* @public
|
|
3092
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3093
3091
|
*/
|
|
3094
3092
|
Table.prototype.sort = function(oColumn, oSortOrder, bAdd) {
|
|
3095
3093
|
if (!oColumn) {
|
|
@@ -3121,7 +3119,6 @@ sap.ui.define([
|
|
|
3121
3119
|
* @param {string} [sValue] Filter value as string (will be converted)
|
|
3122
3120
|
* @throws {Error} If the filter value is not a string
|
|
3123
3121
|
* @public
|
|
3124
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3125
3122
|
*/
|
|
3126
3123
|
Table.prototype.filter = function(oColumn, sValue) {
|
|
3127
3124
|
if (this.getColumns().indexOf(oColumn) >= 0) {
|
|
@@ -3242,7 +3239,6 @@ sap.ui.define([
|
|
|
3242
3239
|
* @param {int} iIndex Index of the row to return the context from.
|
|
3243
3240
|
* @returns {sap.ui.model.Context | null} The context at this index or <code>null</code>
|
|
3244
3241
|
* @public
|
|
3245
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3246
3242
|
*/
|
|
3247
3243
|
Table.prototype.getContextByIndex = function(iIndex) {
|
|
3248
3244
|
var oBinding = this.getBinding();
|
|
@@ -3292,7 +3288,6 @@ sap.ui.define([
|
|
|
3292
3288
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
3293
3289
|
* @throws {Error} If a selection plugin is applied
|
|
3294
3290
|
* @public
|
|
3295
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3296
3291
|
*/
|
|
3297
3292
|
Table.prototype.clearSelection = function() {
|
|
3298
3293
|
if (this._hasSelectionPlugin()) {
|
|
@@ -3312,7 +3307,6 @@ sap.ui.define([
|
|
|
3312
3307
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
3313
3308
|
* @throws {Error} If a selection plugin is applied
|
|
3314
3309
|
* @public
|
|
3315
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3316
3310
|
*/
|
|
3317
3311
|
Table.prototype.selectAll = function() {
|
|
3318
3312
|
if (this._hasSelectionPlugin()) {
|
|
@@ -3332,7 +3326,6 @@ sap.ui.define([
|
|
|
3332
3326
|
* @returns {int[]} Selected indices
|
|
3333
3327
|
* @throws {Error} If a selection plugin is applied
|
|
3334
3328
|
* @public
|
|
3335
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3336
3329
|
*/
|
|
3337
3330
|
Table.prototype.getSelectedIndices = function() {
|
|
3338
3331
|
if (this._hasSelectionPlugin()) {
|
|
@@ -3350,7 +3343,6 @@ sap.ui.define([
|
|
|
3350
3343
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
3351
3344
|
* @throws {Error} If a selection plugin is applied
|
|
3352
3345
|
* @public
|
|
3353
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3354
3346
|
*/
|
|
3355
3347
|
Table.prototype.addSelectionInterval = function(iIndexFrom, iIndexTo) {
|
|
3356
3348
|
if (this._hasSelectionPlugin()) {
|
|
@@ -3369,7 +3361,6 @@ sap.ui.define([
|
|
|
3369
3361
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
3370
3362
|
* @throws {Error} If a selection plugin is applied
|
|
3371
3363
|
* @public
|
|
3372
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3373
3364
|
*/
|
|
3374
3365
|
Table.prototype.setSelectionInterval = function(iIndexFrom, iIndexTo) {
|
|
3375
3366
|
if (this._hasSelectionPlugin()) {
|
|
@@ -3388,7 +3379,6 @@ sap.ui.define([
|
|
|
3388
3379
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
3389
3380
|
* @throws {Error} If a selection plugin is applied
|
|
3390
3381
|
* @public
|
|
3391
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3392
3382
|
*/
|
|
3393
3383
|
Table.prototype.removeSelectionInterval = function(iIndexFrom, iIndexTo) {
|
|
3394
3384
|
if (this._hasSelectionPlugin()) {
|
|
@@ -3406,7 +3396,6 @@ sap.ui.define([
|
|
|
3406
3396
|
* @returns {boolean} Whether the index is selected
|
|
3407
3397
|
* @throws {Error} If a selection plugin is applied
|
|
3408
3398
|
* @public
|
|
3409
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
3410
3399
|
*/
|
|
3411
3400
|
Table.prototype.isIndexSelected = function(iIndex) {
|
|
3412
3401
|
if (this._hasSelectionPlugin()) {
|
|
@@ -3790,25 +3779,20 @@ sap.ui.define([
|
|
|
3790
3779
|
* @see JSDoc generated by SAPUI5 control API generator
|
|
3791
3780
|
*/
|
|
3792
3781
|
Table.prototype.setNoData = function(vNoData) {
|
|
3793
|
-
var
|
|
3782
|
+
var vOldNoContentMessage = TableUtils.getNoContentMessage(this);
|
|
3794
3783
|
this.setAggregation("noData", vNoData, true);
|
|
3795
|
-
var
|
|
3784
|
+
var vNewNoContentMessage = TableUtils.getNoContentMessage(this);
|
|
3796
3785
|
|
|
3797
3786
|
if (TableUtils.isA(vNoData, "sap.m.IllustratedMessage")) {
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
oNoColumnsMessage = MTableUtil.getNoColumnsIllustratedMessage();
|
|
3802
|
-
this.setAggregation("_noColumnsMessage", oNoColumnsMessage);
|
|
3803
|
-
}.bind(this));
|
|
3804
|
-
}
|
|
3787
|
+
insertNoColumnsIllustratedMessage(this);
|
|
3788
|
+
} else {
|
|
3789
|
+
this.destroyAggregation("_noColumnsMessage", true);
|
|
3805
3790
|
}
|
|
3806
3791
|
|
|
3807
|
-
|
|
3808
|
-
if (sOldNoDataText != null && sNewNoDataText != null) {
|
|
3792
|
+
if (typeof vOldNoContentMessage === "string" && typeof vNewNoContentMessage === "string") {
|
|
3809
3793
|
// Old and new NoData texts are plain strings, therefore we are able to directly update the DOM in case of a text change.
|
|
3810
|
-
if (
|
|
3811
|
-
this.$("noDataMsg").text(
|
|
3794
|
+
if (vOldNoContentMessage !== vNewNoContentMessage) {
|
|
3795
|
+
this.$("noDataMsg").text(vNewNoContentMessage);
|
|
3812
3796
|
}
|
|
3813
3797
|
} else {
|
|
3814
3798
|
this.invalidate();
|
|
@@ -3817,6 +3801,25 @@ sap.ui.define([
|
|
|
3817
3801
|
return this;
|
|
3818
3802
|
};
|
|
3819
3803
|
|
|
3804
|
+
function insertNoColumnsIllustratedMessage(oTable) {
|
|
3805
|
+
if (oTable.getAggregation("_noColumnsMessage") || _private(oTable).bIsLoadingNoColumnsMessage) {
|
|
3806
|
+
return;
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
_private(oTable).bIsLoadingNoColumnsMessage = true;
|
|
3810
|
+
|
|
3811
|
+
sap.ui.require(["sap/m/table/Util"], function(MTableUtil) {
|
|
3812
|
+
if (!TableUtils.isA(oTable.getNoData(), "sap.m.IllustratedMessage")) {
|
|
3813
|
+
return;
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
var oNoColumnsMessage = MTableUtil.getNoColumnsIllustratedMessage();
|
|
3817
|
+
oNoColumnsMessage.setEnableVerticalResponsiveness(true);
|
|
3818
|
+
oTable.setAggregation("_noColumnsMessage", oNoColumnsMessage, TableUtils.getVisibleColumnCount(oTable) > 0);
|
|
3819
|
+
delete _private(oTable).bIsLoadingNoColumnsMessage;
|
|
3820
|
+
});
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3820
3823
|
/**
|
|
3821
3824
|
* Creates a new {@link sap.ui.core.util.Export} object and fills row/column information from the table if not provided. For the cell content,
|
|
3822
3825
|
* the column's "sortProperty" will be used (experimental!)
|
|
@@ -11,9 +11,10 @@ sap.ui.define([
|
|
|
11
11
|
"sap/ui/core/syncStyleClass",
|
|
12
12
|
"sap/base/Log",
|
|
13
13
|
"sap/ui/thirdparty/jquery",
|
|
14
|
-
'./utils/TableUtils'
|
|
14
|
+
'./utils/TableUtils',
|
|
15
|
+
"sap/ui/core/Configuration"
|
|
15
16
|
],
|
|
16
|
-
function(Library, ManagedObject, syncStyleClass, Log, jQuery, TableUtils) {
|
|
17
|
+
function(Library, ManagedObject, syncStyleClass, Log, jQuery, TableUtils, Configuration) {
|
|
17
18
|
"use strict";
|
|
18
19
|
|
|
19
20
|
// shortcut for sap.ui.table.ResetAllMode
|
|
@@ -30,7 +31,7 @@ sap.ui.define([
|
|
|
30
31
|
* @extends sap.ui.base.ManagedObject
|
|
31
32
|
*
|
|
32
33
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
34
|
+
* @version 1.107.0
|
|
34
35
|
* @since 1.21.1
|
|
35
36
|
*
|
|
36
37
|
* @constructor
|
|
@@ -405,7 +406,7 @@ sap.ui.define([
|
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
408
|
if (bForDialog) {
|
|
408
|
-
oColumnInfo.text = TableUtils.Column.getHeaderText(
|
|
409
|
+
oColumnInfo.text = TableUtils.Column.getHeaderText(oColumn) || sPersoKey;
|
|
409
410
|
}
|
|
410
411
|
oData.aColumns.push(oColumnInfo);
|
|
411
412
|
}
|
|
@@ -425,7 +426,7 @@ sap.ui.define([
|
|
|
425
426
|
var sPersoKey = oControl.data(this.getCustomDataKey());
|
|
426
427
|
if (!sPersoKey) {
|
|
427
428
|
sPersoKey = oControl.getId();
|
|
428
|
-
if (sPersoKey.indexOf(
|
|
429
|
+
if (sPersoKey.indexOf(Configuration.getUIDPrefix()) === 0) {
|
|
429
430
|
Log.warning("Generated IDs should not be used as personalization keys! The stability cannot be ensured! (Control: \"" + oControl.getId() + "\")");
|
|
430
431
|
}
|
|
431
432
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
//Provides default renderer for control sap.ui.table.Table
|
|
8
|
-
sap.ui.define(['sap/ui/
|
|
8
|
+
sap.ui.define(['sap/ui/Device', './library', "./Column", './utils/TableUtils', "./extensions/ExtensionBase",
|
|
9
9
|
'sap/ui/core/Renderer', 'sap/ui/core/IconPool', "sap/base/Log"],
|
|
10
|
-
function(
|
|
10
|
+
function(Device, library, Column, TableUtils, ExtensionBase, Renderer, IconPool, Log) {
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
13
|
|
|
@@ -300,17 +300,18 @@ sap.ui.define(['sap/ui/core/Control', 'sap/ui/Device', './library', "./Column",
|
|
|
300
300
|
oTable._getAccRenderExtension().writeAriaAttributesFor(rm, oTable, "NODATA");
|
|
301
301
|
rm.openEnd();
|
|
302
302
|
|
|
303
|
-
var
|
|
303
|
+
var vNoContentMessage = TableUtils.getNoContentMessage(oTable);
|
|
304
304
|
|
|
305
|
-
if (
|
|
306
|
-
rm.renderControl(
|
|
305
|
+
if (TableUtils.isA(vNoContentMessage, "sap.ui.core.Control")) {
|
|
306
|
+
rm.renderControl(vNoContentMessage);
|
|
307
307
|
} else {
|
|
308
308
|
rm.openStart("span", oTable.getId() + "-noDataMsg");
|
|
309
309
|
rm.class("sapUiTableCtrlEmptyMsg");
|
|
310
310
|
rm.openEnd();
|
|
311
|
-
rm.text(
|
|
311
|
+
rm.text(vNoContentMessage);
|
|
312
312
|
rm.close("span");
|
|
313
313
|
}
|
|
314
|
+
|
|
314
315
|
rm.close("div");
|
|
315
316
|
};
|
|
316
317
|
|