@openui5/sap.ui.table 1.96.2 → 1.98.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 +26 -31
- package/THIRDPARTY.txt +15 -21
- package/package.json +3 -3
- package/src/sap/ui/table/.library +2 -2
- package/src/sap/ui/table/AnalyticalColumn.js +2 -2
- package/src/sap/ui/table/AnalyticalColumnMenu.js +2 -2
- package/src/sap/ui/table/AnalyticalColumnMenuRenderer.js +1 -1
- package/src/sap/ui/table/AnalyticalTable.js +13 -26
- package/src/sap/ui/table/AnalyticalTableRenderer.js +1 -1
- package/src/sap/ui/table/Column.js +21 -3
- package/src/sap/ui/table/ColumnMenu.js +2 -2
- package/src/sap/ui/table/ColumnMenuRenderer.js +1 -1
- package/src/sap/ui/table/CreationRow.js +8 -4
- package/src/sap/ui/table/CreationRowRenderer.js +1 -1
- package/src/sap/ui/table/Row.js +2 -2
- package/src/sap/ui/table/RowAction.js +2 -2
- package/src/sap/ui/table/RowActionItem.js +2 -2
- package/src/sap/ui/table/RowActionRenderer.js +1 -1
- package/src/sap/ui/table/RowSettings.js +2 -2
- package/src/sap/ui/table/Table.js +126 -150
- package/src/sap/ui/table/TablePersoController.js +2 -2
- package/src/sap/ui/table/TableRenderer.js +25 -37
- package/src/sap/ui/table/TreeTable.js +26 -10
- package/src/sap/ui/table/TreeTableRenderer.js +1 -1
- package/src/sap/ui/table/designtime/AnalyticalTable.designtime.js +1 -1
- package/src/sap/ui/table/designtime/Table.designtime.js +1 -1
- package/src/sap/ui/table/designtime/library.designtime.js +1 -1
- package/src/sap/ui/table/extensions/Accessibility.js +9 -4
- 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 +7 -3
- package/src/sap/ui/table/extensions/KeyboardDelegate.js +5 -5
- package/src/sap/ui/table/extensions/Pointer.js +2 -2
- package/src/sap/ui/table/extensions/Scrolling.js +13 -50
- package/src/sap/ui/table/extensions/ScrollingIOS.js +14 -62
- package/src/sap/ui/table/extensions/Synchronization.js +3 -3
- package/src/sap/ui/table/library.js +11 -11
- package/src/sap/ui/table/library.support.js +1 -1
- 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 +2 -2
- package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +1 -1
- package/src/sap/ui/table/plugins/PluginBase.js +2 -2
- package/src/sap/ui/table/plugins/SelectionModelSelection.js +10 -18
- package/src/sap/ui/table/plugins/SelectionPlugin.js +2 -2
- package/src/sap/ui/table/plugins/V4Aggregation.js +3 -5
- package/src/sap/ui/table/rowmodes/AutoRowMode.js +6 -8
- package/src/sap/ui/table/rowmodes/FixedRowMode.js +3 -3
- package/src/sap/ui/table/rowmodes/InteractiveRowMode.js +3 -3
- package/src/sap/ui/table/rowmodes/RowMode.js +5 -11
- 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/Scrolling.less +18 -38
- package/src/sap/ui/table/themes/base/ScrollingIOS.less +11 -19
- 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 -30
- package/src/sap/ui/table/utils/_BindingUtils.js +2 -2
- package/src/sap/ui/table/utils/_ColumnUtils.js +2 -2
- 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 +15 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -703,8 +703,13 @@ sap.ui.define([
|
|
|
703
703
|
mAttributes["aria-sort"] = oColumn.getSortOrder() === "Ascending" ? "ascending" : "descending";
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
if (!bHasColSpan && oColumn
|
|
707
|
-
|
|
706
|
+
if (!bHasColSpan && oColumn) {
|
|
707
|
+
var oPopover = oColumn.getColumnHeaderMenu();
|
|
708
|
+
if (oPopover) {
|
|
709
|
+
mAttributes["aria-haspopup"] = oPopover.getAriaHasPopupType().toLowerCase();
|
|
710
|
+
} else if (oColumn._menuHasItems()) {
|
|
711
|
+
mAttributes["aria-haspopup"] = "menu";
|
|
712
|
+
}
|
|
708
713
|
}
|
|
709
714
|
break;
|
|
710
715
|
|
|
@@ -902,7 +907,7 @@ sap.ui.define([
|
|
|
902
907
|
* @class Extension for sap.ui.table.Table which handles ACC related things.
|
|
903
908
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
904
909
|
* @author SAP SE
|
|
905
|
-
* @version 1.
|
|
910
|
+
* @version 1.98.0
|
|
906
911
|
* @constructor
|
|
907
912
|
* @private
|
|
908
913
|
* @alias sap.ui.table.extensions.Accessibility
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.98.0
|
|
46
46
|
* @constructor
|
|
47
47
|
* @private
|
|
48
48
|
* @alias sap.ui.table.extensions.AccessibilityRender
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -244,7 +244,7 @@ sap.ui.define([
|
|
|
244
244
|
*
|
|
245
245
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
246
246
|
* @author SAP SE
|
|
247
|
-
* @version 1.
|
|
247
|
+
* @version 1.98.0
|
|
248
248
|
* @constructor
|
|
249
249
|
* @private
|
|
250
250
|
* @alias sap.ui.table.extensions.DragAndDrop
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @abstract
|
|
20
20
|
* @extends sap.ui.base.Object
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.98.0
|
|
23
23
|
* @constructor
|
|
24
24
|
* @private
|
|
25
25
|
* @alias sap.ui.table.extensions.ExtensionBase
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.98.0
|
|
271
271
|
* @constructor
|
|
272
272
|
* @private
|
|
273
273
|
* @alias sap.ui.table.extensions.Keyboard
|
|
@@ -555,7 +555,11 @@ sap.ui.define([
|
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
-
oElement
|
|
558
|
+
if (oElement instanceof HTMLElement) {
|
|
559
|
+
oElement.focus();
|
|
560
|
+
} else {
|
|
561
|
+
oElement.trigger("focus");
|
|
562
|
+
}
|
|
559
563
|
};
|
|
560
564
|
|
|
561
565
|
return KeyboardExtension;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -64,7 +64,7 @@ sap.ui.define([
|
|
|
64
64
|
*
|
|
65
65
|
* @extends sap.ui.base.Object
|
|
66
66
|
* @author SAP SE
|
|
67
|
-
* @version 1.
|
|
67
|
+
* @version 1.98.0
|
|
68
68
|
* @constructor
|
|
69
69
|
* @private
|
|
70
70
|
* @alias sap.ui.table.extensions.KeyboardDelegate
|
|
@@ -591,15 +591,15 @@ sap.ui.define([
|
|
|
591
591
|
bSilentFocus = false;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
TableUtils.deselectElementText(document.activeElement);
|
|
595
|
-
|
|
596
594
|
if (bSilentFocus) {
|
|
597
595
|
oTable._getKeyboardExtension().setSilentFocus(oElement);
|
|
598
596
|
} else {
|
|
599
597
|
oElement.focus();
|
|
600
598
|
}
|
|
601
599
|
|
|
602
|
-
|
|
600
|
+
if (oElement instanceof window.HTMLInputElement) {
|
|
601
|
+
oElement.select();
|
|
602
|
+
}
|
|
603
603
|
};
|
|
604
604
|
|
|
605
605
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -792,7 +792,7 @@ sap.ui.define([
|
|
|
792
792
|
* @class Extension for sap.ui.table.Table which handles mouse and touch related things.
|
|
793
793
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
794
794
|
* @author SAP SE
|
|
795
|
-
* @version 1.
|
|
795
|
+
* @version 1.98.0
|
|
796
796
|
* @constructor
|
|
797
797
|
* @private
|
|
798
798
|
* @alias sap.ui.table.extensions.Pointer
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -1692,34 +1692,10 @@ sap.ui.define([
|
|
|
1692
1692
|
* @private
|
|
1693
1693
|
*/
|
|
1694
1694
|
onUpdateTableSizes: function(sReason) {
|
|
1695
|
-
VerticalScrollingHelper.updateScrollbarPosition(this);
|
|
1696
1695
|
VerticalScrollingHelper.updateScrollbarVisibility(this);
|
|
1697
1696
|
HorizontalScrollingHelper.updateScrollbar(this);
|
|
1698
1697
|
},
|
|
1699
1698
|
|
|
1700
|
-
updateScrollbarPosition: function(oTable) {
|
|
1701
|
-
var oScrollExtension = oTable._getScrollExtension();
|
|
1702
|
-
var oVSb = oScrollExtension.getVerticalScrollbar();
|
|
1703
|
-
var oTableCCnt = oTable.getDomRef("tableCCnt");
|
|
1704
|
-
|
|
1705
|
-
if (!oVSb || !oTableCCnt) {
|
|
1706
|
-
return;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
var iTop = oTableCCnt.offsetTop;
|
|
1710
|
-
|
|
1711
|
-
var oVSbBg = oTable.getDomRef("vsb-bg");
|
|
1712
|
-
if (oVSbBg) {
|
|
1713
|
-
oVSbBg.style.top = iTop + "px";
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
if (oTable._getRowCounts().fixedTop > 0) {
|
|
1717
|
-
iTop += oTable._iVsbTop;
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
oVSb.style.top = iTop + "px";
|
|
1721
|
-
},
|
|
1722
|
-
|
|
1723
1699
|
updateScrollbarVisibility: function(oTable) {
|
|
1724
1700
|
var oScrollExtension = oTable._getScrollExtension();
|
|
1725
1701
|
var oVSb = oScrollExtension.getVerticalScrollbar();
|
|
@@ -1731,19 +1707,8 @@ sap.ui.define([
|
|
|
1731
1707
|
|
|
1732
1708
|
var bVerticalScrollbarRequired = oScrollExtension.isVerticalScrollbarRequired();
|
|
1733
1709
|
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
if (!oScrollExtension.isVerticalScrollbarExternal()) {
|
|
1737
|
-
oTableElement.classList.add("sapUiTableVScr");
|
|
1738
|
-
}
|
|
1739
|
-
oVSb.classList.remove("sapUiTableHidden");
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
// Hide the currently visible scrollbar.
|
|
1743
|
-
if (!bVerticalScrollbarRequired && oScrollExtension.isVerticalScrollbarVisible()) {
|
|
1744
|
-
oTableElement.classList.remove("sapUiTableVScr");
|
|
1745
|
-
oVSb.classList.add("sapUiTableHidden");
|
|
1746
|
-
}
|
|
1710
|
+
oTableElement.classList.toggle("sapUiTableVScr", bVerticalScrollbarRequired && !oScrollExtension.isVerticalScrollbarExternal());
|
|
1711
|
+
oVSb.parentElement.classList.toggle("sapUiTableHidden", !bVerticalScrollbarRequired);
|
|
1747
1712
|
},
|
|
1748
1713
|
|
|
1749
1714
|
/**
|
|
@@ -2256,7 +2221,7 @@ sap.ui.define([
|
|
|
2256
2221
|
* The final overflow is the content which overflows when the table is scrolled to the last set of rows which can be rendered. The last row
|
|
2257
2222
|
* is always in the buffer, so there is always an overflow.
|
|
2258
2223
|
*
|
|
2259
|
-
* <i>Currently known
|
|
2224
|
+
* <i>Currently known restrictions:</i>
|
|
2260
2225
|
* - Experimental implementation!
|
|
2261
2226
|
* - Fixed rows are not supported.
|
|
2262
2227
|
* - Keyboard navigation is not fully supported.
|
|
@@ -2267,7 +2232,7 @@ sap.ui.define([
|
|
|
2267
2232
|
*
|
|
2268
2233
|
* <b>Enables horizontal scrolling.</b>
|
|
2269
2234
|
*
|
|
2270
|
-
* <i>Currently known
|
|
2235
|
+
* <i>Currently known restrictions:</i>
|
|
2271
2236
|
* - If the total width of all scrollable columns exceeds the maximum width of an element (limited by the browser), horizontal scrolling does
|
|
2272
2237
|
* no longer work.
|
|
2273
2238
|
*
|
|
@@ -2280,7 +2245,7 @@ sap.ui.define([
|
|
|
2280
2245
|
* When variable row heights are enabled, full rows are scrolled when the delta is at least one default row height, otherwise the rows are
|
|
2281
2246
|
* partially scrolled.
|
|
2282
2247
|
*
|
|
2283
|
-
* <i>Currently known
|
|
2248
|
+
* <i>Currently known restrictions:</i>
|
|
2284
2249
|
* - For performance reasons, horizontal line and page scrolling is performed by the distance of one minimum column width, regardless of the
|
|
2285
2250
|
* number of lines or pages.
|
|
2286
2251
|
* - When variable row heights are enabled, the scroll distance can be irregular on the transition between the final overflow and the rest
|
|
@@ -2291,7 +2256,7 @@ sap.ui.define([
|
|
|
2291
2256
|
* @class Extension for sap.ui.table.Table which handles scrolling.
|
|
2292
2257
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
2293
2258
|
* @author SAP SE
|
|
2294
|
-
* @version 1.
|
|
2259
|
+
* @version 1.98.0
|
|
2295
2260
|
* @constructor
|
|
2296
2261
|
* @private
|
|
2297
2262
|
* @alias sap.ui.table.extensions.Scrolling
|
|
@@ -2454,12 +2419,9 @@ sap.ui.define([
|
|
|
2454
2419
|
/**
|
|
2455
2420
|
* Gets DOM reference of the vertical scrollbar.
|
|
2456
2421
|
*
|
|
2457
|
-
* @param {boolean} [bIgnoreDOMConnection=false] Whether the scrollbar should also be returned if it is not connected with the DOM. This can
|
|
2458
|
-
* happen if the table's DOM is removed without notifying the table. For example, if the parent
|
|
2459
|
-
* of the table is made invisible.
|
|
2460
2422
|
* @returns {HTMLElement|null} Returns <code>null</code>, if the vertical scrollbar does not exist.
|
|
2461
2423
|
*/
|
|
2462
|
-
ScrollExtension.prototype.getVerticalScrollbar = function(
|
|
2424
|
+
ScrollExtension.prototype.getVerticalScrollbar = function() {
|
|
2463
2425
|
var oTable = this.getTable();
|
|
2464
2426
|
var bIsExternal = this.isVerticalScrollbarExternal();
|
|
2465
2427
|
|
|
@@ -2468,8 +2430,9 @@ sap.ui.define([
|
|
|
2468
2430
|
}
|
|
2469
2431
|
|
|
2470
2432
|
if (!oTable._bInvalid && !_private(oTable).oVerticalScrollbar) {
|
|
2471
|
-
//
|
|
2472
|
-
//
|
|
2433
|
+
// The scrollbar element might not yet be in the DOM, for example if it is initially rendered, or going to be re-rendered as a child
|
|
2434
|
+
// of a control that is still using the old string-based rendering engine. In these cases, the reference to the new scrollbar element
|
|
2435
|
+
// can be obtained only after rendering.
|
|
2473
2436
|
// Table#getDomRef (document#getElementById) returns null if the element does not exist in the DOM.
|
|
2474
2437
|
_private(oTable).oVerticalScrollbar = oTable.getDomRef(SharedDomRef.VerticalScrollBar);
|
|
2475
2438
|
|
|
@@ -2480,7 +2443,7 @@ sap.ui.define([
|
|
|
2480
2443
|
|
|
2481
2444
|
var oScrollbar = _private(oTable).oVerticalScrollbar;
|
|
2482
2445
|
|
|
2483
|
-
if (oScrollbar && !bIsExternal && !
|
|
2446
|
+
if (oScrollbar && !bIsExternal && !oScrollbar.isConnected) {
|
|
2484
2447
|
// The internal scrollbar was removed from DOM without notifying the table.
|
|
2485
2448
|
// This can be the case, for example, if the parent of the table was made invisible.
|
|
2486
2449
|
return null;
|
|
@@ -2506,7 +2469,7 @@ sap.ui.define([
|
|
|
2506
2469
|
*/
|
|
2507
2470
|
ScrollExtension.prototype.isVerticalScrollbarVisible = function() {
|
|
2508
2471
|
var oVSb = this.getVerticalScrollbar();
|
|
2509
|
-
return oVSb != null && !oVSb.classList.contains("sapUiTableHidden");
|
|
2472
|
+
return oVSb != null && !oVSb.parentElement.classList.contains("sapUiTableHidden");
|
|
2510
2473
|
};
|
|
2511
2474
|
|
|
2512
2475
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -13,9 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
|
|
14
14
|
var ExtensionDelegate = {
|
|
15
15
|
onAfterRendering: function() {
|
|
16
|
-
|
|
17
|
-
oScrollIOSExtension.attachScrollbar();
|
|
18
|
-
oScrollIOSExtension.updateVerticalScrollbar();
|
|
16
|
+
this.attachScrollbar();
|
|
19
17
|
}
|
|
20
18
|
};
|
|
21
19
|
|
|
@@ -29,7 +27,7 @@ sap.ui.define([
|
|
|
29
27
|
* @class Extension for sap.ui.table.Table which handles the scrollbar on iOS.
|
|
30
28
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
31
29
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
30
|
+
* @version 1.98.0
|
|
33
31
|
* @constructor
|
|
34
32
|
* @private
|
|
35
33
|
* @alias sap.ui.table.extensions.ScrollingIOS
|
|
@@ -41,13 +39,8 @@ sap.ui.define([
|
|
|
41
39
|
* @returns {string} The name of this extension.
|
|
42
40
|
*/
|
|
43
41
|
_init: function(oTable) {
|
|
44
|
-
TableUtils.addDelegate(oTable, ExtensionDelegate,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (this.attachScrollbar()) {
|
|
48
|
-
this.updateVerticalScrollbar();
|
|
49
|
-
}
|
|
50
|
-
|
|
42
|
+
TableUtils.addDelegate(oTable, ExtensionDelegate, this);
|
|
43
|
+
this.attachScrollbar();
|
|
51
44
|
return "ScrollIOSExtension";
|
|
52
45
|
},
|
|
53
46
|
|
|
@@ -59,7 +52,6 @@ sap.ui.define([
|
|
|
59
52
|
var oTable = this.getTable();
|
|
60
53
|
|
|
61
54
|
TableUtils.removeDelegate(oTable, ExtensionDelegate);
|
|
62
|
-
oTable.removeStyleClass("sapUiTableVSbIOSActive");
|
|
63
55
|
clearTimeout(this._iUpdateDefaultScrollbarPositionTimeoutId);
|
|
64
56
|
ExtensionBase.prototype.destroy.apply(this, arguments);
|
|
65
57
|
},
|
|
@@ -106,20 +98,16 @@ sap.ui.define([
|
|
|
106
98
|
});
|
|
107
99
|
|
|
108
100
|
ScrollIOSExtension.prototype.onUpdateTableSizes = function() {
|
|
109
|
-
this.updateVerticalScrollbarVisibility();
|
|
110
101
|
this.updateVerticalScrollbarThumbHeight();
|
|
111
102
|
this.updateVerticalScrollbarThumbPosition();
|
|
112
103
|
};
|
|
113
104
|
|
|
114
105
|
ScrollIOSExtension.prototype.onTotalRowCountChanged = function() {
|
|
115
|
-
this.updateVerticalScrollbarVisibility();
|
|
116
106
|
this.updateVerticalScrollbarThumbHeight();
|
|
117
107
|
};
|
|
118
108
|
|
|
119
109
|
/**
|
|
120
110
|
* Inserts the scrollbar into the DOM if it does not yet exist.
|
|
121
|
-
*
|
|
122
|
-
* @returns {boolean} Whether the scrollbar was attached.
|
|
123
111
|
*/
|
|
124
112
|
ScrollIOSExtension.prototype.attachScrollbar = function() {
|
|
125
113
|
var oTable = this.getTable();
|
|
@@ -128,7 +116,7 @@ sap.ui.define([
|
|
|
128
116
|
var oVSbThumb = this.getVerticalScrollbarThumb();
|
|
129
117
|
|
|
130
118
|
if (!oVSb) {
|
|
131
|
-
return
|
|
119
|
+
return;
|
|
132
120
|
}
|
|
133
121
|
|
|
134
122
|
// Render scrollbar
|
|
@@ -154,7 +142,7 @@ sap.ui.define([
|
|
|
154
142
|
oVSb.addEventListener("scroll", this._onVerticalScrollEventHandler);
|
|
155
143
|
}
|
|
156
144
|
|
|
157
|
-
|
|
145
|
+
this.updateVerticalScrollbar();
|
|
158
146
|
};
|
|
159
147
|
|
|
160
148
|
/**
|
|
@@ -177,58 +165,18 @@ sap.ui.define([
|
|
|
177
165
|
return oVSb ? oVSb.firstElementChild : null;
|
|
178
166
|
};
|
|
179
167
|
|
|
180
|
-
/**
|
|
181
|
-
* Checks whether the vertical scrollbar is visible.
|
|
182
|
-
*
|
|
183
|
-
* @returns {boolean} Returns <code>true</code>, if the vertical scrollbar is visible.
|
|
184
|
-
*/
|
|
185
|
-
ScrollIOSExtension.prototype.isVerticalScrollbarVisible = function() {
|
|
186
|
-
var oVSbIOS = this.getVerticalScrollbar();
|
|
187
|
-
return oVSbIOS ? !oVSbIOS.classList.contains("sapUiTableHidden") : false;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
168
|
/**
|
|
191
169
|
* Performs a full update of the vertical scrollbar.
|
|
192
170
|
*/
|
|
193
171
|
ScrollIOSExtension.prototype.updateVerticalScrollbar = function() {
|
|
194
172
|
var oTable = this.getTable();
|
|
195
|
-
var oTableCCnt = oTable.getDomRef("tableCCnt");
|
|
196
|
-
var oScrollExtension = oTable._getScrollExtension();
|
|
197
|
-
|
|
198
173
|
var oVSbIOS = this.getVerticalScrollbar();
|
|
199
|
-
var iTop = oScrollExtension.isVerticalScrollbarExternal() ? 0 : oTableCCnt.offsetTop;
|
|
200
|
-
|
|
201
|
-
if (oTable._getRowCounts().fixedTop > 0) {
|
|
202
|
-
iTop += oTable._iVsbTop;
|
|
203
|
-
}
|
|
204
174
|
|
|
205
|
-
oVSbIOS.style.height =
|
|
206
|
-
oVSbIOS.style.top =
|
|
175
|
+
oVSbIOS.style.height = oTable._getScrollExtension().getVerticalScrollbarHeight() + "px";
|
|
176
|
+
oVSbIOS.style.top = Math.max(0, oTable._getRowCounts().fixedTop * oTable._getBaseRowHeight() - 1) + "px";
|
|
207
177
|
|
|
208
|
-
this.updateVerticalScrollbarVisibility();
|
|
209
|
-
this.updateVerticalScrollbarThumbHeight();
|
|
210
178
|
this.updateVerticalScrollbarThumbPosition();
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Updates the visibility of the vertical scrollbar.
|
|
215
|
-
*/
|
|
216
|
-
ScrollIOSExtension.prototype.updateVerticalScrollbarVisibility = function() {
|
|
217
|
-
var oTable = this.getTable();
|
|
218
|
-
var oScrollExtension = oTable._getScrollExtension();
|
|
219
|
-
var oVSbIOS = this.getVerticalScrollbar();
|
|
220
|
-
|
|
221
|
-
if (!oVSbIOS) {
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (oScrollExtension.isVerticalScrollbarRequired() && !this.isVerticalScrollbarVisible()) {
|
|
226
|
-
// Show the currently invisible scrollbar.
|
|
227
|
-
oVSbIOS.classList.remove("sapUiTableHidden");
|
|
228
|
-
} else if (!oScrollExtension.isVerticalScrollbarRequired() && this.isVerticalScrollbarVisible()) {
|
|
229
|
-
// Hide the currently visible scrollbar.
|
|
230
|
-
oVSbIOS.classList.add("sapUiTableHidden");
|
|
231
|
-
}
|
|
179
|
+
this.updateVerticalScrollbarThumbHeight();
|
|
232
180
|
};
|
|
233
181
|
|
|
234
182
|
/**
|
|
@@ -304,6 +252,7 @@ sap.ui.define([
|
|
|
304
252
|
var iOffset = Math.min(oScrollExtension.getVerticalScrollbarHeight() - iThumbHeight, Math.max(0, iTop));
|
|
305
253
|
|
|
306
254
|
oEvent.preventDefault();
|
|
255
|
+
oEvent.stopPropagation();
|
|
307
256
|
oVSbThumb.style.top = iOffset + "px";
|
|
308
257
|
|
|
309
258
|
clearTimeout(this._iUpdateDefaultScrollbarPositionTimeoutId);
|
|
@@ -327,6 +276,9 @@ sap.ui.define([
|
|
|
327
276
|
var iTop = oVSbThumb.offsetTop + oEvent.clientY - iThumbTop - iThumbHeight / 2;
|
|
328
277
|
var iOffset = Math.min(oScrollExtension.getVerticalScrollbarHeight() - iThumbHeight, Math.max(0, iTop));
|
|
329
278
|
|
|
279
|
+
oEvent.preventDefault();
|
|
280
|
+
oEvent.stopPropagation();
|
|
281
|
+
|
|
330
282
|
oVSbThumb.style.top = iOffset + "px";
|
|
331
283
|
this.updateDefaultScrollbarPosition(iOffset, iThumbHeight);
|
|
332
284
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -76,7 +76,7 @@ sap.ui.define([
|
|
|
76
76
|
oTable.invalidate();
|
|
77
77
|
} else {
|
|
78
78
|
// To avoid table invalidation on every call of this method, the scrollbar that is still in memory is inserted back into the DOM.
|
|
79
|
-
oHTMLElement.appendChild(oScrollExtension.getVerticalScrollbar());
|
|
79
|
+
oHTMLElement.appendChild(oScrollExtension.getVerticalScrollbar().parentElement);
|
|
80
80
|
|
|
81
81
|
// If an element is removed from DOM and is inserted again, the scroll position is reset to 0 and needs to be restored.
|
|
82
82
|
oScrollExtension.restoreVerticalScrollPosition();
|
|
@@ -142,7 +142,7 @@ sap.ui.define([
|
|
|
142
142
|
* @class Extension for sap.ui.table.Table that allows synchronization with a table.
|
|
143
143
|
* @extends sap.ui.table.extensions.ExtensionBase
|
|
144
144
|
* @author SAP SE
|
|
145
|
-
* @version 1.
|
|
145
|
+
* @version 1.98.0
|
|
146
146
|
* @constructor
|
|
147
147
|
* @private
|
|
148
148
|
* @alias sap.ui.table.extensions.Synchronization
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
17
17
|
// delegate further initialization of this library to the Core
|
|
18
18
|
sap.ui.getCore().initLibrary({
|
|
19
19
|
name : "sap.ui.table",
|
|
20
|
-
version: "1.
|
|
20
|
+
version: "1.98.0",
|
|
21
21
|
dependencies : ["sap.ui.core","sap.ui.unified"],
|
|
22
22
|
designtime: "sap/ui/table/designtime/library.designtime",
|
|
23
23
|
types: [
|
|
@@ -74,7 +74,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
74
74
|
* @namespace
|
|
75
75
|
* @alias sap.ui.table
|
|
76
76
|
* @author SAP SE
|
|
77
|
-
* @version 1.
|
|
77
|
+
* @version 1.98.0
|
|
78
78
|
* @since 0.8
|
|
79
79
|
* @public
|
|
80
80
|
*/
|
|
@@ -83,7 +83,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
83
83
|
/**
|
|
84
84
|
* Navigation mode of the table
|
|
85
85
|
*
|
|
86
|
-
* @version 1.
|
|
86
|
+
* @version 1.98.0
|
|
87
87
|
* @enum {string}
|
|
88
88
|
* @public
|
|
89
89
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -111,7 +111,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
111
111
|
/**
|
|
112
112
|
* Row Action types.
|
|
113
113
|
*
|
|
114
|
-
* @version 1.
|
|
114
|
+
* @version 1.98.0
|
|
115
115
|
* @enum {string}
|
|
116
116
|
* @public
|
|
117
117
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -142,7 +142,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
142
142
|
/**
|
|
143
143
|
* Selection behavior of the table
|
|
144
144
|
*
|
|
145
|
-
* @version 1.
|
|
145
|
+
* @version 1.98.0
|
|
146
146
|
* @enum {string}
|
|
147
147
|
* @public
|
|
148
148
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -173,7 +173,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
173
173
|
/**
|
|
174
174
|
* Selection mode of the table
|
|
175
175
|
*
|
|
176
|
-
* @version 1.
|
|
176
|
+
* @version 1.98.0
|
|
177
177
|
* @enum {string}
|
|
178
178
|
* @public
|
|
179
179
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -211,7 +211,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
211
211
|
/**
|
|
212
212
|
* Sort order of a column
|
|
213
213
|
*
|
|
214
|
-
* @version 1.
|
|
214
|
+
* @version 1.98.0
|
|
215
215
|
* @enum {string}
|
|
216
216
|
* @public
|
|
217
217
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -236,7 +236,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
236
236
|
/**
|
|
237
237
|
* VisibleRowCountMode of the table
|
|
238
238
|
*
|
|
239
|
-
* @version 1.
|
|
239
|
+
* @version 1.98.0
|
|
240
240
|
* @enum {string}
|
|
241
241
|
* @public
|
|
242
242
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -268,7 +268,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
268
268
|
*
|
|
269
269
|
* Contains IDs of shared DOM references, which should be accessible to inheriting controls via getDomRef() function.
|
|
270
270
|
*
|
|
271
|
-
* @version 1.
|
|
271
|
+
* @version 1.98.0
|
|
272
272
|
* @enum {string}
|
|
273
273
|
* @public
|
|
274
274
|
*/
|
|
@@ -366,7 +366,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/model/TreeAutoExpandMode',
|
|
|
366
366
|
*
|
|
367
367
|
* This is an alias for {@link sap.ui.model.TreeAutoExpandMode} and kept for compatibility reasons.
|
|
368
368
|
*
|
|
369
|
-
* @version 1.
|
|
369
|
+
* @version 1.98.0
|
|
370
370
|
* @typedef {sap.ui.model.TreeAutoExpandMode}
|
|
371
371
|
* @public
|
|
372
372
|
*/
|
|
@@ -20,9 +20,9 @@ TBL_HIDE_COLUMN=Nascondi
|
|
|
20
20
|
TBL_COL_VISBILITY_MENUITEM_SHOW=Visualizza colonna
|
|
21
21
|
TBL_COL_VISBILITY_MENUITEM_HIDE=Nascondi colonna
|
|
22
22
|
|
|
23
|
-
TBL_ROW_SELECT=
|
|
24
|
-
TBL_ROW_DESELECT=
|
|
25
|
-
TBL_ROW_SELECT_MULTI_TOGGLE=
|
|
23
|
+
TBL_ROW_SELECT=Fai clic per selezionare
|
|
24
|
+
TBL_ROW_DESELECT=Fai clic per deselezionare
|
|
25
|
+
TBL_ROW_SELECT_MULTI_TOGGLE=Fai clic per selezionare o premi MAIUSC e fai clic per selezionare un intervallo
|
|
26
26
|
|
|
27
27
|
TBL_TABLE_SELECTION_MULTI=Tabella con selezione multipla attivata
|
|
28
28
|
TBL_TABLE_SELECTION_SINGLE=Tabella con selezione singola attivata
|
|
@@ -31,8 +31,8 @@ TBL_TABLE_INVALID=Tabella non valida
|
|
|
31
31
|
|
|
32
32
|
TBL_DATA_ROWS_COLS=La tabella contiene {0} righe e {1} colonne
|
|
33
33
|
|
|
34
|
-
TBL_ROW_SELECT_KEY=
|
|
35
|
-
TBL_ROW_DESELECT_KEY=
|
|
34
|
+
TBL_ROW_SELECT_KEY=Premi la barra spaziatrice per selezionare la riga
|
|
35
|
+
TBL_ROW_DESELECT_KEY=Premi la barra spaziatrice per annullare la selezione
|
|
36
36
|
|
|
37
37
|
TBL_ANALYTICAL_TABLE_ROLE_DESCRIPTION=Tabella analitica
|
|
38
38
|
|
|
@@ -43,7 +43,7 @@ TBL_NO_DATA=Nessun dato
|
|
|
43
43
|
TBL_SELECT_ALL=Seleziona tutto
|
|
44
44
|
TBL_DESELECT_ALL=Deseleziona tutto
|
|
45
45
|
|
|
46
|
-
TBL_TOGGLE_EDIT_KEY=Per passare a una cella della tabella
|
|
46
|
+
TBL_TOGGLE_EDIT_KEY=Per passare a una cella della tabella premi F2
|
|
47
47
|
|
|
48
48
|
TBL_EXPAND=Esplodi nodo
|
|
49
49
|
|
|
@@ -109,9 +109,9 @@ TBL_ROW_STATE_SUCCESS=Corretta esecuzione
|
|
|
109
109
|
|
|
110
110
|
TBL_ROW_STATE_NAVIGATED=Navigato
|
|
111
111
|
|
|
112
|
-
TBL_ROW_EXPAND_KEY=Per esplodere una riga,
|
|
112
|
+
TBL_ROW_EXPAND_KEY=Per esplodere una riga, premi la barra spaziatrice
|
|
113
113
|
|
|
114
|
-
TBL_ROW_COLLAPSE_KEY=Per comprimere una riga,
|
|
114
|
+
TBL_ROW_COLLAPSE_KEY=Per comprimere una riga, premi la barra spaziatrice
|
|
115
115
|
|
|
116
116
|
TBL_CREATIONROW_APPLY=Aggiungi riga
|
|
117
117
|
|
|
@@ -40,7 +40,7 @@ TBL_NO_COLUMNS=W tej chwili nie ma widocznych kolumn w tabeli. Wybierz wymagane
|
|
|
40
40
|
|
|
41
41
|
TBL_NO_DATA=Brak danych
|
|
42
42
|
|
|
43
|
-
TBL_SELECT_ALL=
|
|
43
|
+
TBL_SELECT_ALL=Zaznacz wszystko
|
|
44
44
|
TBL_DESELECT_ALL=Odznacz wszystko
|
|
45
45
|
|
|
46
46
|
TBL_TOGGLE_EDIT_KEY=Naci\u015Bnij klawisz F2, aby przej\u015B\u0107 do kom\u00F3rki tabeli
|