@openui5/sap.ui.table 1.109.0 → 1.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +21 -1
- package/.reuse/dep5 +16 -16
- package/THIRDPARTY.txt +2 -2
- package/package.json +3 -3
- package/src/sap/ui/table/.library +2 -2
- package/src/sap/ui/table/AnalyticalColumn.js +11 -11
- package/src/sap/ui/table/AnalyticalColumnMenu.js +4 -5
- package/src/sap/ui/table/AnalyticalColumnMenuRenderer.js +1 -1
- package/src/sap/ui/table/AnalyticalTable.js +14 -14
- package/src/sap/ui/table/AnalyticalTableRenderer.js +1 -1
- package/src/sap/ui/table/Column.js +44 -46
- package/src/sap/ui/table/ColumnMenu.js +5 -17
- package/src/sap/ui/table/ColumnMenuRenderer.js +2 -2
- package/src/sap/ui/table/CreationRow.js +3 -3
- package/src/sap/ui/table/CreationRowRenderer.js +1 -1
- package/src/sap/ui/table/Row.js +18 -18
- package/src/sap/ui/table/RowAction.js +2 -2
- package/src/sap/ui/table/RowActionItem.js +13 -11
- package/src/sap/ui/table/RowActionRenderer.js +1 -1
- package/src/sap/ui/table/RowSettings.js +6 -6
- package/src/sap/ui/table/Table.js +162 -168
- package/src/sap/ui/table/TablePersoController.js +4 -6
- package/src/sap/ui/table/TableRenderer.js +12 -14
- package/src/sap/ui/table/TreeTable.js +16 -18
- package/src/sap/ui/table/TreeTableRenderer.js +1 -1
- package/src/sap/ui/table/designtime/AnalyticalTable.designtime.js +8 -8
- package/src/sap/ui/table/designtime/Table.designtime.js +10 -10
- package/src/sap/ui/table/designtime/library.designtime.js +1 -1
- package/src/sap/ui/table/extensions/Accessibility.js +3 -3
- package/src/sap/ui/table/extensions/AccessibilityRender.js +2 -2
- package/src/sap/ui/table/extensions/DragAndDrop.js +2 -2
- package/src/sap/ui/table/extensions/ExtensionBase.js +2 -2
- package/src/sap/ui/table/extensions/Keyboard.js +3 -3
- package/src/sap/ui/table/extensions/KeyboardDelegate.js +7 -4
- package/src/sap/ui/table/extensions/Pointer.js +24 -19
- package/src/sap/ui/table/extensions/Scrolling.js +2 -2
- package/src/sap/ui/table/extensions/ScrollingIOS.js +4 -4
- package/src/sap/ui/table/extensions/Synchronization.js +2 -2
- package/src/sap/ui/table/library.js +39 -43
- package/src/sap/ui/table/library.support.js +1 -1
- package/src/sap/ui/table/menus/ColumnHeaderMenuAdapter.js +2 -3
- package/src/sap/ui/table/menus/MobileColumnHeaderMenuAdapter.js +7 -5
- package/src/sap/ui/table/messagebundle_ar.properties +1 -3
- package/src/sap/ui/table/messagebundle_bg.properties +3 -5
- package/src/sap/ui/table/messagebundle_ca.properties +1 -3
- package/src/sap/ui/table/messagebundle_cs.properties +1 -3
- package/src/sap/ui/table/messagebundle_cy.properties +1 -3
- package/src/sap/ui/table/messagebundle_da.properties +1 -3
- package/src/sap/ui/table/messagebundle_de.properties +1 -3
- package/src/sap/ui/table/messagebundle_el.properties +1 -3
- package/src/sap/ui/table/messagebundle_en.properties +1 -3
- package/src/sap/ui/table/messagebundle_en_GB.properties +1 -3
- package/src/sap/ui/table/messagebundle_en_US_saptrc.properties +1 -3
- package/src/sap/ui/table/messagebundle_es.properties +1 -3
- package/src/sap/ui/table/messagebundle_es_MX.properties +1 -3
- package/src/sap/ui/table/messagebundle_et.properties +1 -3
- package/src/sap/ui/table/messagebundle_fi.properties +1 -3
- package/src/sap/ui/table/messagebundle_fr.properties +1 -3
- package/src/sap/ui/table/messagebundle_fr_CA.properties +1 -3
- package/src/sap/ui/table/messagebundle_hi.properties +1 -3
- package/src/sap/ui/table/messagebundle_hr.properties +1 -3
- package/src/sap/ui/table/messagebundle_hu.properties +1 -3
- package/src/sap/ui/table/messagebundle_id.properties +1 -3
- package/src/sap/ui/table/messagebundle_it.properties +1 -3
- package/src/sap/ui/table/messagebundle_iw.properties +1 -3
- package/src/sap/ui/table/messagebundle_ja.properties +1 -3
- package/src/sap/ui/table/messagebundle_kk.properties +2 -4
- package/src/sap/ui/table/messagebundle_ko.properties +1 -3
- package/src/sap/ui/table/messagebundle_lt.properties +1 -3
- package/src/sap/ui/table/messagebundle_lv.properties +1 -3
- package/src/sap/ui/table/messagebundle_ms.properties +1 -3
- package/src/sap/ui/table/messagebundle_nl.properties +1 -3
- package/src/sap/ui/table/messagebundle_no.properties +1 -3
- package/src/sap/ui/table/messagebundle_pl.properties +1 -3
- package/src/sap/ui/table/messagebundle_pt.properties +1 -3
- package/src/sap/ui/table/messagebundle_pt_PT.properties +1 -3
- package/src/sap/ui/table/messagebundle_ro.properties +1 -3
- package/src/sap/ui/table/messagebundle_ru.properties +1 -3
- package/src/sap/ui/table/messagebundle_sh.properties +1 -3
- package/src/sap/ui/table/messagebundle_sk.properties +1 -3
- package/src/sap/ui/table/messagebundle_sl.properties +1 -3
- package/src/sap/ui/table/messagebundle_sv.properties +1 -3
- package/src/sap/ui/table/messagebundle_th.properties +1 -3
- package/src/sap/ui/table/messagebundle_tr.properties +1 -3
- package/src/sap/ui/table/messagebundle_uk.properties +1 -3
- package/src/sap/ui/table/messagebundle_vi.properties +1 -3
- package/src/sap/ui/table/messagebundle_zh_CN.properties +1 -3
- package/src/sap/ui/table/messagebundle_zh_TW.properties +1 -3
- package/src/sap/ui/table/plugins/BindingSelection.js +2 -2
- package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +15 -15
- package/src/sap/ui/table/plugins/PluginBase.js +2 -2
- package/src/sap/ui/table/plugins/SelectionModelSelection.js +2 -2
- package/src/sap/ui/table/plugins/SelectionPlugin.js +2 -2
- package/src/sap/ui/table/plugins/V4Aggregation.js +2 -2
- package/src/sap/ui/table/rowmodes/AutoRowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/FixedRowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/InteractiveRowMode.js +3 -3
- package/src/sap/ui/table/rowmodes/RowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/VariableRowMode.js +2 -2
- package/src/sap/ui/table/rules/Accessibility.support.js +1 -1
- package/src/sap/ui/table/rules/Binding.support.js +1 -1
- package/src/sap/ui/table/rules/ColumnTemplate.support.js +1 -1
- package/src/sap/ui/table/rules/Plugins.support.js +1 -1
- package/src/sap/ui/table/rules/Rows.support.js +1 -1
- package/src/sap/ui/table/rules/TableHelper.support.js +1 -1
- package/src/sap/ui/table/themes/base/Cell.less +31 -0
- package/src/sap/ui/table/themes/base/Row.less +5 -0
- package/src/sap/ui/table/themes/base/library.source.less +1 -1
- package/src/sap/ui/table/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/table/utils/TableUtils.js +2 -2
- package/src/sap/ui/table/utils/_BindingUtils.js +2 -2
- package/src/sap/ui/table/utils/_ColumnUtils.js +3 -3
- package/src/sap/ui/table/utils/_GroupingUtils.js +3 -3
- package/src/sap/ui/table/utils/_HookUtils.js +2 -2
- package/src/sap/ui/table/utils/_MenuUtils.js +2 -2
|
@@ -195,11 +195,22 @@
|
|
|
195
195
|
opacity: 0.3;
|
|
196
196
|
pointer-events: none;
|
|
197
197
|
}
|
|
198
|
+
|
|
199
|
+
&:not(.sapUiTableSelAllDisabled), &:not(.sapUiTableSelAllDisabled) .sapUiIcon {
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
}
|
|
198
202
|
}
|
|
199
203
|
|
|
200
204
|
.sapUiTableHeaderDataCell {
|
|
201
205
|
padding: 7px 0;
|
|
202
206
|
|
|
207
|
+
&.sapUiTableHeaderCellActive {
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
.sapMLabel, .sapMText, .sapUiIcon {
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
203
214
|
&.sapUiTableHeaderCellActive:active {
|
|
204
215
|
// The active state background color and text color should not be applied if column reordering is in progress.
|
|
205
216
|
.sapUiTable:not(.sapUiTableDragDrop) & {
|
|
@@ -348,6 +359,10 @@
|
|
|
348
359
|
}
|
|
349
360
|
}
|
|
350
361
|
|
|
362
|
+
.sapUiTableRowSelectionCell {
|
|
363
|
+
cursor: pointer;
|
|
364
|
+
}
|
|
365
|
+
|
|
351
366
|
.sapUiTableRowSelectionCell,
|
|
352
367
|
.sapUiTableRowActionCell {
|
|
353
368
|
position: relative;
|
|
@@ -407,4 +422,20 @@
|
|
|
407
422
|
.sapUiTableRowHidden > .sapUiTableCell > *,
|
|
408
423
|
.sapUiTableCellHidden > * {
|
|
409
424
|
display: none;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* If there is no element (selection/highlight/expand/collapse) at the left most of the table
|
|
429
|
+
* then the first cell must have 1rem left padding while regular cells have 0.5rem left padding
|
|
430
|
+
* this additional 0.5rem padding decreases the max content width of the column cells 0.5rem.
|
|
431
|
+
* The selector below is adding additional 0.5rem padding to the first th elements of the table.
|
|
432
|
+
* Since the box-sizing is content-box for table cells this will increase the DOM column width
|
|
433
|
+
* 0.5rem when compared to the width property of the column. Although this might not be desired
|
|
434
|
+
* it is now aligned with the resposive table behavior.
|
|
435
|
+
* Another alternative would be rendering a dummy 0.5rem width column. While this can solve the
|
|
436
|
+
* API and DOM column width difference, changing the table layout might be expensive.
|
|
437
|
+
*/
|
|
438
|
+
.sapUiTable:not(.sapUiTableRowSelectors,.sapUiTableRowHighlights) .sapUiTableFirstVisibleColumnTH {
|
|
439
|
+
padding-left: .25rem;
|
|
440
|
+
padding-right: .25rem;
|
|
410
441
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
@import "../../../../../sap/ui/core/themes/base/base.less";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -203,7 +203,7 @@ sap.ui.define([
|
|
|
203
203
|
* Static collection of utility functions related to the sap.ui.table.Table, ...
|
|
204
204
|
*
|
|
205
205
|
* @author SAP SE
|
|
206
|
-
* @version 1.
|
|
206
|
+
* @version 1.110.0
|
|
207
207
|
* @namespace
|
|
208
208
|
* @alias sap.ui.table.utils.TableUtils
|
|
209
209
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
18
18
|
* @namespace
|
|
19
19
|
* @alias sap.ui.table.utils._BindingUtils
|
|
20
20
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
22
22
|
* @namespace
|
|
23
23
|
* @alias sap.ui.table.utils._ColumnUtils
|
|
24
24
|
* @private
|
|
@@ -772,7 +772,7 @@ sap.ui.define([
|
|
|
772
772
|
* @param {sap.ui.table.Column} oColumn Instance of the column
|
|
773
773
|
* @returns {sap.ui.core.Control} Returns the column header label
|
|
774
774
|
*/
|
|
775
|
-
getHeaderLabel: function
|
|
775
|
+
getHeaderLabel: function(oColumn) {
|
|
776
776
|
if (!oColumn) {
|
|
777
777
|
return null;
|
|
778
778
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.110.0
|
|
27
27
|
* @namespace
|
|
28
28
|
* @alias sap.ui.table.utils._GroupingUtils
|
|
29
29
|
* @private
|
|
@@ -549,7 +549,7 @@ sap.ui.define([
|
|
|
549
549
|
|
|
550
550
|
// the table need to fetch the updated/changed contexts again, therefore requires the binding to fire a change event
|
|
551
551
|
oTable._mTimeouts.groupingFireBindingChange = oTable._mTimeouts.groupingFireBindingChange || window.setTimeout(
|
|
552
|
-
function() {oBinding._fireChange();}, 0);
|
|
552
|
+
function() { oBinding._fireChange(); }, 0);
|
|
553
553
|
},
|
|
554
554
|
|
|
555
555
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ sap.ui.define(["sap/ui/base/DataType"], function(DataType) {
|
|
|
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.110.0
|
|
26
26
|
* @namespace
|
|
27
27
|
* @alias sap.ui.table.utils._HookUtils
|
|
28
28
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* Note: Do not access the functions of this helper directly, but via <code>sap.ui.table.utils.TableUtils.Menu...</code>
|
|
40
40
|
*
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.110.0
|
|
43
43
|
* @namespace
|
|
44
44
|
* @alias sap.ui.table.utils._MenuUtils
|
|
45
45
|
* @private
|