@openui5/sap.ui.table 1.120.6 → 1.121.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.
Files changed (106) hide show
  1. package/.reuse/dep5 +23 -21
  2. package/THIRDPARTY.txt +6 -43
  3. package/package.json +3 -3
  4. package/src/sap/ui/table/.library +1 -1
  5. package/src/sap/ui/table/AnalyticalColumn.js +1 -42
  6. package/src/sap/ui/table/AnalyticalColumnMenu.js +1 -1
  7. package/src/sap/ui/table/AnalyticalTable.js +16 -6
  8. package/src/sap/ui/table/Column.js +41 -57
  9. package/src/sap/ui/table/ColumnMenu.js +5 -4
  10. package/src/sap/ui/table/CreationRow.js +1 -7
  11. package/src/sap/ui/table/Row.js +3 -7
  12. package/src/sap/ui/table/RowAction.js +1 -1
  13. package/src/sap/ui/table/RowActionItem.js +1 -1
  14. package/src/sap/ui/table/RowSettings.js +1 -10
  15. package/src/sap/ui/table/Table.js +54 -181
  16. package/src/sap/ui/table/TablePersoController.js +7 -6
  17. package/src/sap/ui/table/TableRenderer.js +4 -6
  18. package/src/sap/ui/table/TreeTable.js +1 -1
  19. package/src/sap/ui/table/extensions/Accessibility.js +31 -116
  20. package/src/sap/ui/table/extensions/AccessibilityRender.js +6 -8
  21. package/src/sap/ui/table/extensions/DragAndDrop.js +1 -1
  22. package/src/sap/ui/table/extensions/ExtensionBase.js +1 -1
  23. package/src/sap/ui/table/extensions/Keyboard.js +7 -7
  24. package/src/sap/ui/table/extensions/KeyboardDelegate.js +27 -28
  25. package/src/sap/ui/table/extensions/Pointer.js +2 -6
  26. package/src/sap/ui/table/extensions/Scrolling.js +12 -4
  27. package/src/sap/ui/table/extensions/ScrollingIOS.js +1 -1
  28. package/src/sap/ui/table/extensions/Synchronization.js +8 -4
  29. package/src/sap/ui/table/library.js +44 -21
  30. package/src/sap/ui/table/menus/ColumnHeaderMenuAdapter.js +1 -1
  31. package/src/sap/ui/table/menus/MobileColumnHeaderMenuAdapter.js +5 -5
  32. package/src/sap/ui/table/messagebundle.properties +0 -7
  33. package/src/sap/ui/table/messagebundle_ar.properties +0 -4
  34. package/src/sap/ui/table/messagebundle_bg.properties +0 -4
  35. package/src/sap/ui/table/messagebundle_ca.properties +0 -4
  36. package/src/sap/ui/table/messagebundle_cnr.properties +0 -4
  37. package/src/sap/ui/table/messagebundle_cs.properties +0 -4
  38. package/src/sap/ui/table/messagebundle_cy.properties +0 -4
  39. package/src/sap/ui/table/messagebundle_da.properties +0 -4
  40. package/src/sap/ui/table/messagebundle_de.properties +0 -4
  41. package/src/sap/ui/table/messagebundle_el.properties +0 -4
  42. package/src/sap/ui/table/messagebundle_en.properties +0 -4
  43. package/src/sap/ui/table/messagebundle_en_GB.properties +0 -4
  44. package/src/sap/ui/table/messagebundle_en_US_saprigi.properties +0 -4
  45. package/src/sap/ui/table/messagebundle_es.properties +0 -4
  46. package/src/sap/ui/table/messagebundle_es_MX.properties +0 -4
  47. package/src/sap/ui/table/messagebundle_et.properties +0 -4
  48. package/src/sap/ui/table/messagebundle_fi.properties +0 -4
  49. package/src/sap/ui/table/messagebundle_fr.properties +0 -4
  50. package/src/sap/ui/table/messagebundle_fr_CA.properties +0 -4
  51. package/src/sap/ui/table/messagebundle_hi.properties +0 -4
  52. package/src/sap/ui/table/messagebundle_hr.properties +0 -4
  53. package/src/sap/ui/table/messagebundle_hu.properties +0 -4
  54. package/src/sap/ui/table/messagebundle_id.properties +0 -4
  55. package/src/sap/ui/table/messagebundle_it.properties +0 -4
  56. package/src/sap/ui/table/messagebundle_iw.properties +0 -4
  57. package/src/sap/ui/table/messagebundle_ja.properties +0 -4
  58. package/src/sap/ui/table/messagebundle_kk.properties +0 -4
  59. package/src/sap/ui/table/messagebundle_ko.properties +0 -4
  60. package/src/sap/ui/table/messagebundle_lt.properties +0 -4
  61. package/src/sap/ui/table/messagebundle_lv.properties +0 -4
  62. package/src/sap/ui/table/messagebundle_mk.properties +0 -4
  63. package/src/sap/ui/table/messagebundle_ms.properties +0 -4
  64. package/src/sap/ui/table/messagebundle_nl.properties +0 -4
  65. package/src/sap/ui/table/messagebundle_no.properties +0 -4
  66. package/src/sap/ui/table/messagebundle_pl.properties +0 -4
  67. package/src/sap/ui/table/messagebundle_pt.properties +0 -4
  68. package/src/sap/ui/table/messagebundle_pt_PT.properties +0 -4
  69. package/src/sap/ui/table/messagebundle_ro.properties +0 -4
  70. package/src/sap/ui/table/messagebundle_ru.properties +0 -4
  71. package/src/sap/ui/table/messagebundle_sh.properties +0 -4
  72. package/src/sap/ui/table/messagebundle_sk.properties +0 -4
  73. package/src/sap/ui/table/messagebundle_sl.properties +0 -4
  74. package/src/sap/ui/table/messagebundle_sr.properties +0 -4
  75. package/src/sap/ui/table/messagebundle_sv.properties +0 -4
  76. package/src/sap/ui/table/messagebundle_th.properties +0 -4
  77. package/src/sap/ui/table/messagebundle_tr.properties +0 -4
  78. package/src/sap/ui/table/messagebundle_uk.properties +0 -4
  79. package/src/sap/ui/table/messagebundle_vi.properties +0 -4
  80. package/src/sap/ui/table/messagebundle_zh_CN.properties +0 -4
  81. package/src/sap/ui/table/messagebundle_zh_TW.properties +0 -4
  82. package/src/sap/ui/table/plugins/BindingSelection.js +1 -1
  83. package/src/sap/ui/table/plugins/ODataV4Selection.js +5 -9
  84. package/src/sap/ui/table/plugins/PluginBase.js +3 -3
  85. package/src/sap/ui/table/plugins/SelectionModelSelection.js +1 -1
  86. package/src/sap/ui/table/plugins/SelectionPlugin.js +1 -1
  87. package/src/sap/ui/table/plugins/V4Aggregation.js +12 -18
  88. package/src/sap/ui/table/rowmodes/Auto.js +2 -2
  89. package/src/sap/ui/table/rowmodes/Fixed.js +1 -1
  90. package/src/sap/ui/table/rowmodes/Interactive.js +1 -1
  91. package/src/sap/ui/table/rowmodes/RowMode.js +4 -2
  92. package/src/sap/ui/table/rowmodes/Type.js +4 -2
  93. package/src/sap/ui/table/rowmodes/Variable.js +1 -1
  94. package/src/sap/ui/table/rules/Rows.support.js +3 -1
  95. package/src/sap/ui/table/themes/base/RowHighlight.less +0 -6
  96. package/src/sap/ui/table/utils/TableUtils.js +26 -5
  97. package/src/sap/ui/table/utils/_BindingUtils.js +1 -1
  98. package/src/sap/ui/table/utils/_ColumnUtils.js +1 -1
  99. package/src/sap/ui/table/utils/_GroupingUtils.js +6 -6
  100. package/src/sap/ui/table/utils/_HookUtils.js +1 -1
  101. package/src/sap/ui/table/utils/_MenuUtils.js +64 -123
  102. package/LICENSES/BSD-2-Clause.txt +0 -22
  103. package/src/sap/ui/table/AnalyticalColumnMenuRenderer.js +0 -12
  104. package/src/sap/ui/table/AnalyticalTableRenderer.js +0 -12
  105. package/src/sap/ui/table/ColumnMenuRenderer.js +0 -12
  106. package/src/sap/ui/table/TreeTableRenderer.js +0 -12
@@ -5,8 +5,11 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
+ "sap/base/i18n/Localization",
8
9
  "sap/ui/Device",
9
10
  "sap/ui/core/Control",
11
+ "sap/ui/core/ControlBehavior",
12
+ "sap/ui/core/Element",
10
13
  "sap/ui/core/util/PasteHelper",
11
14
  "sap/ui/model/ChangeReason",
12
15
  "sap/ui/model/Filter",
@@ -30,11 +33,14 @@ sap.ui.define([
30
33
  "./plugins/SelectionModelSelection",
31
34
  "sap/ui/thirdparty/jquery",
32
35
  "sap/base/Log",
33
- "sap/ui/core/Configuration",
36
+ "sap/ui/core/AnimationMode",
34
37
  "sap/ui/core/library"
35
38
  ], function(
39
+ Localization,
36
40
  Device,
37
41
  Control,
42
+ ControlBehavior,
43
+ Element,
38
44
  PasteHelper,
39
45
  ChangeReason,
40
46
  Filter,
@@ -58,17 +64,15 @@ sap.ui.define([
58
64
  SelectionModelSelectionPlugin,
59
65
  jQuery,
60
66
  Log,
61
- Configuration,
67
+ AnimationMode,
62
68
  CoreLibrary
63
69
  ) {
64
70
  "use strict";
65
71
 
66
72
  var GroupEventType = library.GroupEventType;
67
- var NavigationMode = library.NavigationMode;
68
73
  var SelectionMode = library.SelectionMode;
69
74
  var SelectionBehavior = library.SelectionBehavior;
70
75
  var SortOrder = CoreLibrary.SortOrder;
71
- var VisibleRowCountMode = library.VisibleRowCountMode;
72
76
  var Hook = TableUtils.Hook.Keys.Table;
73
77
  var _private = TableUtils.createWeakMapFacade();
74
78
 
@@ -96,7 +100,7 @@ sap.ui.define([
96
100
  * the data model and binding being used.
97
101
  * </p>
98
102
  * @extends sap.ui.core.Control
99
- * @version 1.120.6
103
+ * @version 1.121.0
100
104
  *
101
105
  * @constructor
102
106
  * @public
@@ -209,7 +213,7 @@ sap.ui.define([
209
213
  *
210
214
  * @deprecated As of version 1.38
211
215
  */
212
- navigationMode: {type: "sap.ui.table.NavigationMode", group: "Behavior", defaultValue: NavigationMode.Scrollbar, deprecated: true},
216
+ navigationMode: {type: "sap.ui.table.NavigationMode", group: "Behavior", defaultValue: "Scrollbar", deprecated: true},
213
217
 
214
218
  /**
215
219
  * Defines how many additional (not yet visible) data records from the back-end system are pre-fetched to enable smooth scrolling.
@@ -282,7 +286,7 @@ sap.ui.define([
282
286
  * @since 1.9.2
283
287
  * @deprecated As of version 1.119, use the <code>rowMode</code> aggregation instead.
284
288
  */
285
- visibleRowCountMode: {type: "sap.ui.table.VisibleRowCountMode", group: "Appearance", defaultValue: VisibleRowCountMode.Fixed, deprecated: true},
289
+ visibleRowCountMode: {type: "sap.ui.table.VisibleRowCountMode", group: "Appearance", defaultValue: "Fixed", deprecated: true},
286
290
 
287
291
  /**
288
292
  * This property is used to set the minimum count of visible rows when the property visibleRowCountMode is set to Auto or Interactive.
@@ -419,7 +423,7 @@ sap.ui.define([
419
423
  /**
420
424
  * Columns of the Table
421
425
  */
422
- columns: {type: "sap.ui.table.Column", multiple: true, singularName: "column", bindable: "bindable", dnd: {layout: "Horizontal"}},
426
+ columns: {type: "sap.ui.table.Column", defaultClass: Column, multiple: true, singularName: "column", bindable: "bindable", dnd: {layout: "Horizontal"}},
423
427
 
424
428
  /**
425
429
  * This aggregation is managed by the table itself. It can only be used with data binding, is read-only, and does not support templates or
@@ -818,7 +822,9 @@ sap.ui.define([
818
822
  },
819
823
 
820
824
  /**
821
- * Fired when the user requests the context menu for a table cell.
825
+ * Fired when the {@link sap.ui.table.Table#setContextMenu context menu} is opened.
826
+ * When the context menu is opened, the binding context of the row is set to the context menu.
827
+ *
822
828
  * @since 1.54
823
829
  */
824
830
  beforeOpenContextMenu: {
@@ -996,7 +1002,7 @@ sap.ui.define([
996
1002
  /*
997
1003
  * Flag indicating whether the text direction is RTL. If <code>false</code>, the text direction is LTR.
998
1004
  */
999
- this._bRtlMode = Configuration.getRTL();
1005
+ this._bRtlMode = Localization.getRTL();
1000
1006
 
1001
1007
  /*
1002
1008
  * Flag indicating whether the rows are currently being bound. This is the time between #bindRows and the actual instantiation of the
@@ -1019,10 +1025,6 @@ sap.ui.define([
1019
1025
  this._bRowAggregationInvalid = true;
1020
1026
  this._mTimeouts = {};
1021
1027
  this._mAnimationFrames = {};
1022
-
1023
- // TBD: Tooltips are not desired by Visual Design, discuss whether to switch it off by default
1024
- this._setHideStandardTooltips(false);
1025
-
1026
1028
  this._aRowHeights = [];
1027
1029
  this._aSortedColumns = [];
1028
1030
  this._aTableHeaders = [];
@@ -1037,7 +1039,7 @@ sap.ui.define([
1037
1039
 
1038
1040
  this._nDevicePixelRatio = window.devicePixelRatio;
1039
1041
 
1040
- if (sap.ui.getCore().isThemeApplied()) {
1042
+ if (TableUtils.isThemeApplied()) {
1041
1043
  TableUtils.readThemeParameters();
1042
1044
  }
1043
1045
 
@@ -1195,7 +1197,7 @@ sap.ui.define([
1195
1197
  var pUpdateLocalizationInfo = Promise.resolve();
1196
1198
 
1197
1199
  if (bRtlChanged) {
1198
- this._bRtlMode = Configuration.getRTL();
1200
+ this._bRtlMode = Localization.getRTL();
1199
1201
  }
1200
1202
 
1201
1203
  if (bLangChanged) {
@@ -1480,7 +1482,7 @@ sap.ui.define([
1480
1482
 
1481
1483
  // enable/disable text selection for column headers
1482
1484
  if (!this._bAllowColumnHeaderTextSelection && !bRenderedRows) {
1483
- this._disableTextSelection(this.$().find(".sapUiTableCHA"));
1485
+ this._disableTextSelection(this.$().find(".sapUiTableColHdrCnt"));
1484
1486
  }
1485
1487
 
1486
1488
  // If only the rows are rendered, the css flag is not removed while the positioning of the actions is reset. Therefore, the flag must be
@@ -1520,7 +1522,7 @@ sap.ui.define([
1520
1522
 
1521
1523
  var oDomRef = this.getDomRef();
1522
1524
 
1523
- if (this._bInvalid || !oDomRef || !sap.ui.getCore().isThemeApplied() || oDomRef.offsetWidth === 0) {
1525
+ if (this._bInvalid || !oDomRef || !TableUtils.isThemeApplied() || oDomRef.offsetWidth === 0) {
1524
1526
  return;
1525
1527
  }
1526
1528
 
@@ -1653,9 +1655,6 @@ sap.ui.define([
1653
1655
  TableUtils.Hook.call(this, Hook.UpdateSizes, sReason);
1654
1656
  };
1655
1657
 
1656
- /*
1657
- * @see JSDoc generated by SAPUI5 control
1658
- */
1659
1658
  Table.prototype.setShowOverlay = function(bShow) {
1660
1659
  this.setProperty("showOverlay", bShow, true);
1661
1660
 
@@ -1715,9 +1714,6 @@ sap.ui.define([
1715
1714
  delete this._oFocusInfo;
1716
1715
  };
1717
1716
 
1718
- /*
1719
- * @see JSDoc generated by SAPUI5 control
1720
- */
1721
1717
  Table.prototype.getFocusInfo = function() {
1722
1718
  var sId = this.$().find(":focus").attr("id");
1723
1719
  if (sId) {
@@ -1727,9 +1723,6 @@ sap.ui.define([
1727
1723
  }
1728
1724
  };
1729
1725
 
1730
- /*
1731
- * @see JSDoc generated by SAPUI5 control
1732
- */
1733
1726
  Table.prototype.applyFocusInfo = function(mFocusInfo) {
1734
1727
  delete this._bApplyFocusInfoFailed;
1735
1728
  if (mFocusInfo && mFocusInfo.customId) {
@@ -1744,13 +1737,6 @@ sap.ui.define([
1744
1737
  return this;
1745
1738
  };
1746
1739
 
1747
- // =============================================================================
1748
- // PUBLIC TABLE API
1749
- // =============================================================================
1750
-
1751
- /*
1752
- * @see JSDoc generated by SAPUI5 control API generator
1753
- */
1754
1740
  Table.prototype.setTitle = function(vTitle) {
1755
1741
  var oTitle = vTitle;
1756
1742
  if (typeof (vTitle) === "string" || vTitle instanceof String) {
@@ -1763,9 +1749,6 @@ sap.ui.define([
1763
1749
  return this;
1764
1750
  };
1765
1751
 
1766
- /*
1767
- * @see JSDoc generated by SAPUI5 control API generator
1768
- */
1769
1752
  Table.prototype.setFooter = function(vFooter) {
1770
1753
  var oFooter = vFooter;
1771
1754
  if (typeof (vFooter) === "string" || vFooter instanceof String) {
@@ -1780,12 +1763,12 @@ sap.ui.define([
1780
1763
  /**
1781
1764
  * Sets the selection mode. The current selection is lost.
1782
1765
  *
1766
+ * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
1767
+ * it is recommended to use a selection plugin instead.
1768
+ *
1783
1769
  * @param {sap.ui.table.SelectionMode} sSelectionMode the selection mode, see sap.ui.table.SelectionMode
1784
1770
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
1785
1771
  * @public
1786
- *
1787
- * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
1788
- * it is recommended to use a selection plugin instead.
1789
1772
  */
1790
1773
  Table.prototype.setSelectionMode = function(sSelectionMode) {
1791
1774
  if (sSelectionMode === SelectionMode.Multi) {
@@ -1804,9 +1787,6 @@ sap.ui.define([
1804
1787
  return this;
1805
1788
  };
1806
1789
 
1807
- /*
1808
- * @see JSDoc generated by SAPUI5 control API generator
1809
- */
1810
1790
  Table.prototype.setFirstVisibleRow = function(iRowIndex) {
1811
1791
  if (iRowIndex == null) {
1812
1792
  iRowIndex = 0;
@@ -1951,7 +1931,7 @@ sap.ui.define([
1951
1931
  }
1952
1932
 
1953
1933
  if (this._setFirstVisibleRowIndex(iIndex)) {
1954
- this.attachEventOnce("rowsUpdated", function() {
1934
+ this.attachEventOnce("_rowsUpdated", function() {
1955
1935
  setFocus(this, iIndex, bFirstInteractiveElement);
1956
1936
  return resolve();
1957
1937
  });
@@ -1971,9 +1951,6 @@ sap.ui.define([
1971
1951
  // enable calling 'bindAggregation("rows")' without a factory
1972
1952
  Table.getMetadata().getAggregation("rows")._doesNotRequireFactory = true;
1973
1953
 
1974
- /*
1975
- * @see JSDoc generated by SAPUI5 control API generator
1976
- */
1977
1954
  Table.prototype.bindAggregation = function(sName, oBindingInfo) {
1978
1955
  if (sName === "rows") {
1979
1956
  this._bindRows(getSanitizedBindingInfo(Array.prototype.slice.call(arguments, 1)));
@@ -1983,9 +1960,6 @@ sap.ui.define([
1983
1960
  return Control.prototype.bindAggregation.apply(this, arguments);
1984
1961
  };
1985
1962
 
1986
- /*
1987
- * @see JSDoc generated by SAPUI5 control API generator
1988
- */
1989
1963
  Table.prototype.bindRows = function(oBindingInfo) {
1990
1964
  this._bindRows(getSanitizedBindingInfo(arguments));
1991
1965
  return this;
@@ -2049,9 +2023,6 @@ sap.ui.define([
2049
2023
  }
2050
2024
  };
2051
2025
 
2052
- /*
2053
- * @see JSDoc generated by SAPUI5 control API generator
2054
- */
2055
2026
  Table.prototype.unbindAggregation = function(sName, bSuppressReset) {
2056
2027
  if (sName === "rows") {
2057
2028
  this._unbindRows();
@@ -2061,9 +2032,6 @@ sap.ui.define([
2061
2032
  return Control.prototype.unbindAggregation.apply(this, arguments);
2062
2033
  };
2063
2034
 
2064
- /*
2065
- * @see JSDoc generated by SAPUI5 control API generator
2066
- */
2067
2035
  Table.prototype.unbindRows = function() {
2068
2036
  this._unbindRows();
2069
2037
  return this;
@@ -2319,7 +2287,7 @@ sap.ui.define([
2319
2287
 
2320
2288
  Table.prototype.setVisibleRowCount = function(iVisibleRowCount) {
2321
2289
  var sVisibleRowCountMode = this.getVisibleRowCountMode();
2322
- if (sVisibleRowCountMode == VisibleRowCountMode.Auto) {
2290
+ if (sVisibleRowCountMode == "Auto") {
2323
2291
  Log.error("VisibleRowCount will be ignored since VisibleRowCountMode is set to Auto", this);
2324
2292
  return this;
2325
2293
  }
@@ -2385,7 +2353,7 @@ sap.ui.define([
2385
2353
  };
2386
2354
 
2387
2355
  Table.prototype.setNavigationMode = function() {
2388
- this.setProperty("navigationMode", NavigationMode.Scrollbar, true);
2356
+ this.setProperty("navigationMode", "Scrollbar", true);
2389
2357
  Log.error("The navigationMode property is deprecated and must not be used anymore. Your setting was defaulted to 'Scrollbar'", this);
2390
2358
  return this;
2391
2359
  };
@@ -2601,41 +2569,26 @@ sap.ui.define([
2601
2569
  }
2602
2570
  }
2603
2571
 
2604
- /*
2605
- * @see JSDoc generated by SAPUI5 control API generator
2606
- */
2607
2572
  Table.prototype.insertRow = function() {
2608
2573
  Log.error("The control manages the rows aggregation. The method \"insertRow\" cannot be used programmatically!", this);
2609
2574
  return this;
2610
2575
  };
2611
2576
 
2612
- /*
2613
- * @see JSDoc generated by SAPUI5 control API generator
2614
- */
2615
2577
  Table.prototype.addRow = function() {
2616
2578
  Log.error("The control manages the rows aggregation. The method \"addRow\" cannot be used programmatically!", this);
2617
2579
  return this;
2618
2580
  };
2619
2581
 
2620
- /*
2621
- * @see JSDoc generated by SAPUI5 control API generator
2622
- */
2623
2582
  Table.prototype.removeRow = function() {
2624
2583
  Log.error("The control manages the rows aggregation. The method \"removeRow\" cannot be used programmatically!", this);
2625
2584
  return null;
2626
2585
  };
2627
2586
 
2628
- /*
2629
- * @see JSDoc generated by SAPUI5 control API generator
2630
- */
2631
2587
  Table.prototype.removeAllRows = function() {
2632
2588
  Log.error("The control manages the rows aggregation. The method \"removeAllRows\" cannot be used programmatically!", this);
2633
2589
  return [];
2634
2590
  };
2635
2591
 
2636
- /*
2637
- * @see JSDoc generated by SAPUI5 control API generator
2638
- */
2639
2592
  Table.prototype.destroyRows = function() {
2640
2593
  Log.error("The control manages the rows aggregation. The method \"destroyRows\" cannot be used programmatically!", this);
2641
2594
  return this;
@@ -2692,7 +2645,7 @@ sap.ui.define([
2692
2645
  var $this = this.$();
2693
2646
  var sTableId = this.getId();
2694
2647
 
2695
- if (Configuration.getAnimationMode() !== Configuration.AnimationMode.none) {
2648
+ if (ControlBehavior.getAnimationMode() !== AnimationMode.none) {
2696
2649
  jQuery(document.body).on("webkitTransitionEnd." + sTableId + " transitionend." + sTableId,
2697
2650
  function(oEvent) {
2698
2651
  if (jQuery(oEvent.target).has($this).length > 0) {
@@ -2760,9 +2713,6 @@ sap.ui.define([
2760
2713
  }
2761
2714
  }
2762
2715
 
2763
- /*
2764
- * @see JSDoc generated by SAPUI5 control API generator
2765
- */
2766
2716
  Table.prototype.removeColumn = function(oColumn) {
2767
2717
  oColumn = this.removeAggregation("columns", oColumn);
2768
2718
 
@@ -2779,9 +2729,6 @@ sap.ui.define([
2779
2729
  return oColumn;
2780
2730
  };
2781
2731
 
2782
- /*
2783
- * @see JSDoc generated by SAPUI5 control API generator
2784
- */
2785
2732
  Table.prototype.removeAllColumns = function() {
2786
2733
  var oResult = this.removeAllAggregation("columns");
2787
2734
  this._aSortedColumns = [];
@@ -2789,9 +2736,6 @@ sap.ui.define([
2789
2736
  return oResult;
2790
2737
  };
2791
2738
 
2792
- /*
2793
- * @see JSDoc generated by SAPUI5 contdrol API generator
2794
- */
2795
2739
  Table.prototype.destroyColumns = function() {
2796
2740
  var oResult = this.destroyAggregation("columns");
2797
2741
  this._aSortedColumns = [];
@@ -2799,18 +2743,12 @@ sap.ui.define([
2799
2743
  return oResult;
2800
2744
  };
2801
2745
 
2802
- /*
2803
- * @see JSDoc generated by SAPUI5 control API generator
2804
- */
2805
2746
  Table.prototype.addColumn = function(oColumn) {
2806
2747
  this.addAggregation("columns", oColumn);
2807
2748
  onColumnsAggregationChange(this);
2808
2749
  return this;
2809
2750
  };
2810
2751
 
2811
- /*
2812
- * @see JSDoc generated by SAPUI5 control API generator
2813
- */
2814
2752
  Table.prototype.insertColumn = function(oColumn, iIndex) {
2815
2753
  this.insertAggregation("columns", oColumn, iIndex);
2816
2754
  onColumnsAggregationChange(this);
@@ -3256,40 +3194,6 @@ sap.ui.define([
3256
3194
  }
3257
3195
  };
3258
3196
 
3259
- /**
3260
- * Returns whether certain additional standard tooltips should be shown or not.
3261
- *
3262
- * see <code>_setHideStandardTooltips</code> for more details
3263
- *
3264
- * @private
3265
- * @returns {boolean} <code>true</code>, when additional standard tooltips should be shown
3266
- */
3267
- Table.prototype._getHideStandardTooltips = function() {
3268
- return this._bHideStandardTooltips;
3269
- };
3270
-
3271
- /**
3272
- * Defines whether certain additional standard tooltips should be shown or hidden.
3273
- * The tooltips which are affected by this setting are:
3274
- *
3275
- * <ul>
3276
- * <li>Text on Group headers</li>
3277
- * <li>Tooltips on Row Selectors and Row for Selection</li>
3278
- * <li>Default tooltips on AnalyticalColumn headers</li>
3279
- * </ul>
3280
- *
3281
- * Other tooltips like for Select All / Clear All icons, Expand / Collapse icons or Row Actions are not affected.
3282
- *
3283
- * <b>Note: The changes only take effect after a full invalidation / rerendering of the table.</b>
3284
- *
3285
- * @param {boolean} bHideStandardTooltips Whether to show the additional tooltips or not
3286
- * @private
3287
- * @ui5-restricted sap.ui.comp, sap.ui.mdc
3288
- */
3289
- Table.prototype._setHideStandardTooltips = function(bHideStandardTooltips) {
3290
- this._bHideStandardTooltips = bHideStandardTooltips;
3291
- };
3292
-
3293
3197
  /**
3294
3198
  * Notifies the selection listeners about the changed rows.
3295
3199
  * @private
@@ -3376,13 +3280,13 @@ sap.ui.define([
3376
3280
  /**
3377
3281
  * Sets the selected index. The previous selection is removed.
3378
3282
  *
3283
+ * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3284
+ * it is recommended to use a selection plugin instead.
3285
+ *
3379
3286
  * @param {int} iIndex The index to select
3380
3287
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
3381
3288
  * @throws {Error} If a selection plugin is applied
3382
3289
  * @public
3383
- *
3384
- * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3385
- * it is recommended to use a selection plugin instead.
3386
3290
  */
3387
3291
  Table.prototype.setSelectedIndex = function(iIndex) {
3388
3292
  if (this._hasSelectionPlugin()) {
@@ -3396,12 +3300,12 @@ sap.ui.define([
3396
3300
  /**
3397
3301
  * Removes complete selection.
3398
3302
  *
3303
+ * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3304
+ * it is recommended to use a selection plugin instead.
3305
+ *
3399
3306
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
3400
3307
  * @throws {Error} If a selection plugin is applied
3401
3308
  * @public
3402
- *
3403
- * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3404
- * it is recommended to use a selection plugin instead.
3405
3309
  */
3406
3310
  Table.prototype.clearSelection = function() {
3407
3311
  if (this._hasSelectionPlugin()) {
@@ -3418,12 +3322,12 @@ sap.ui.define([
3418
3322
  * be available at the client yet. Calling getContextByIndex might not return a result but trigger a roundtrip
3419
3323
  * to request this single entity.
3420
3324
  *
3325
+ * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3326
+ * it is recommended to use a selection plugin instead.
3327
+ *
3421
3328
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
3422
3329
  * @throws {Error} If a selection plugin is applied
3423
3330
  * @public
3424
- *
3425
- * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3426
- * it is recommended to use a selection plugin instead.
3427
3331
  */
3428
3332
  Table.prototype.selectAll = function() {
3429
3333
  if (this._hasSelectionPlugin()) {
@@ -3440,12 +3344,12 @@ sap.ui.define([
3440
3344
  /**
3441
3345
  * Zero-based indices of selected items, wrapped in an array. An empty array means "no selection".
3442
3346
  *
3347
+ * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3348
+ * it is recommended to use a selection plugin instead.
3349
+ *
3443
3350
  * @returns {int[]} Selected indices
3444
3351
  * @throws {Error} If a selection plugin is applied
3445
3352
  * @public
3446
- *
3447
- * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3448
- * it is recommended to use a selection plugin instead.
3449
3353
  */
3450
3354
  Table.prototype.getSelectedIndices = function() {
3451
3355
  if (this._hasSelectionPlugin()) {
@@ -3458,14 +3362,14 @@ sap.ui.define([
3458
3362
  /**
3459
3363
  * Adds the given selection interval to the selection. In case of a single selection, only <code>iIndexTo</code> is added to the selection.
3460
3364
  *
3365
+ * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3366
+ * it is recommended to use a selection plugin instead.
3367
+ *
3461
3368
  * @param {int} iIndexFrom Index from which the selection starts
3462
3369
  * @param {int} iIndexTo Index up to which to select
3463
3370
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
3464
3371
  * @throws {Error} If a selection plugin is applied
3465
3372
  * @public
3466
- *
3467
- * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3468
- * it is recommended to use a selection plugin instead.
3469
3373
  */
3470
3374
  Table.prototype.addSelectionInterval = function(iIndexFrom, iIndexTo) {
3471
3375
  if (this._hasSelectionPlugin()) {
@@ -3479,14 +3383,14 @@ sap.ui.define([
3479
3383
  /**
3480
3384
  * Sets the given selection interval as selection. In case of a single selection, only <code>iIndexTo</code> is selected.
3481
3385
  *
3386
+ * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3387
+ * it is recommended to use a selection plugin instead.
3388
+ *
3482
3389
  * @param {int} iIndexFrom Index from which the selection starts
3483
3390
  * @param {int} iIndexTo Index up to which to select
3484
3391
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
3485
3392
  * @throws {Error} If a selection plugin is applied
3486
3393
  * @public
3487
- *
3488
- * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3489
- * it is recommended to use a selection plugin instead.
3490
3394
  */
3491
3395
  Table.prototype.setSelectionInterval = function(iIndexFrom, iIndexTo) {
3492
3396
  if (this._hasSelectionPlugin()) {
@@ -3500,14 +3404,14 @@ sap.ui.define([
3500
3404
  /**
3501
3405
  * Removes the given selection interval from the selection. In case of single selection, only <code>iIndexTo</code> is removed from the selection.
3502
3406
  *
3407
+ * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3408
+ * it is recommended to use a selection plugin instead.
3409
+ *
3503
3410
  * @param {int} iIndexFrom Index from which the deselection should start
3504
3411
  * @param {int} iIndexTo Index up to which to deselect
3505
3412
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
3506
3413
  * @throws {Error} If a selection plugin is applied
3507
3414
  * @public
3508
- *
3509
- * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3510
- * it is recommended to use a selection plugin instead.
3511
3415
  */
3512
3416
  Table.prototype.removeSelectionInterval = function(iIndexFrom, iIndexTo) {
3513
3417
  if (this._hasSelectionPlugin()) {
@@ -3521,13 +3425,13 @@ sap.ui.define([
3521
3425
  /**
3522
3426
  * Checks whether an index is selected.
3523
3427
  *
3428
+ * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3429
+ * it is recommended to use a selection plugin instead.
3430
+ *
3524
3431
  * @param {int} iIndex Index to check for selection
3525
3432
  * @returns {boolean} Whether the index is selected
3526
3433
  * @throws {Error} If a selection plugin is applied
3527
3434
  * @public
3528
- *
3529
- * <b>Note:</b> The built-in selection API has limited functionality, especially when it is combined with paging (e.g. OData). Therefore,
3530
- * it is recommended to use a selection plugin instead.
3531
3435
  */
3532
3436
  Table.prototype.isIndexSelected = function(iIndex) {
3533
3437
  if (this._hasSelectionPlugin()) {
@@ -3537,21 +3441,12 @@ sap.ui.define([
3537
3441
  return this._getSelectionPlugin().isIndexSelected(iIndex);
3538
3442
  };
3539
3443
 
3540
- // =============================================================================
3541
- // GROUPING
3542
- // =============================================================================
3543
-
3544
- /*
3545
- * @see JSDoc generated by SAPUI5 control API generator
3546
- *
3547
- * @deprecated As of version 1.118.
3548
- */
3549
3444
  Table.prototype.setGroupBy = function(vValue) {
3550
3445
  var oGroupByColumn = vValue;
3551
- var oOldGroupByColumn = sap.ui.getCore().byId(this.getGroupBy());
3446
+ var oOldGroupByColumn = Element.getElementById(this.getGroupBy());
3552
3447
 
3553
3448
  if (typeof oGroupByColumn === "string") {
3554
- oGroupByColumn = sap.ui.getCore().byId(oGroupByColumn);
3449
+ oGroupByColumn = Element.getElementById(oGroupByColumn);
3555
3450
  }
3556
3451
 
3557
3452
  // only for columns we do the full handling here - otherwise the method
@@ -3608,12 +3503,8 @@ sap.ui.define([
3608
3503
  return Control.prototype.getBinding.call(this, sName == null ? "rows" : sName);
3609
3504
  };
3610
3505
 
3611
- /*
3612
- * @see JSDoc generated by SAPUI5 control API generator
3613
- * @deprecated As of version 1.118.
3614
- */
3615
3506
  Table.prototype.setEnableGrouping = function(bEnableGrouping) {
3616
- var oGroupedByColumn = sap.ui.getCore().byId(this.getGroupBy());
3507
+ var oGroupedByColumn = Element.getElementById(this.getGroupBy());
3617
3508
 
3618
3509
  this.setProperty("enableGrouping", bEnableGrouping);
3619
3510
 
@@ -3672,9 +3563,6 @@ sap.ui.define([
3672
3563
  return _private(this).iComputedFixedColumnCount;
3673
3564
  };
3674
3565
 
3675
- /*
3676
- * @see JSDoc generated by SAPUI5 control API generator
3677
- */
3678
3566
  Table.prototype.setFixedColumnCount = function(iFixedColumnCount) {
3679
3567
  this.setProperty("fixedColumnCount", iFixedColumnCount);
3680
3568
  this._invalidateComputedFixedColumnCount();
@@ -3875,9 +3763,6 @@ sap.ui.define([
3875
3763
  return TableUtils.BaseSize[sContentDensity];
3876
3764
  };
3877
3765
 
3878
- /*
3879
- * @see JSDoc generated by SAPUI5 control API generator
3880
- */
3881
3766
  Table.prototype.setNoData = function(vNoData) {
3882
3767
  var vOldNoContentMessage = TableUtils.getNoContentMessage(this);
3883
3768
  this.setAggregation("noData", vNoData, true);
@@ -4031,9 +3916,6 @@ sap.ui.define([
4031
3916
  return vReturn;
4032
3917
  };
4033
3918
 
4034
- /*
4035
- * @see JSDoc generated by SAPUI5 control API generator
4036
- */
4037
3919
  Table.prototype.setEnableBusyIndicator = function(bValue) {
4038
3920
  this.setProperty("enableBusyIndicator", bValue, true);
4039
3921
 
@@ -4106,18 +3988,12 @@ sap.ui.define([
4106
3988
  this._bLargeDataScrolling = !!bLargeDataScrolling;
4107
3989
  };
4108
3990
 
4109
- /*
4110
- * @see JSDoc generated by SAPUI5 control API generator
4111
- */
4112
3991
  Table.prototype.setRowActionTemplate = function(oTemplate) {
4113
3992
  this.setAggregation("rowActionTemplate", oTemplate);
4114
3993
  this.invalidateRowsAggregation();
4115
3994
  return this;
4116
3995
  };
4117
3996
 
4118
- /*
4119
- * @see JSDoc generated by SAPUI5 control API generator
4120
- */
4121
3997
  Table.prototype.setRowActionCount = function(iCount) {
4122
3998
  if (typeof iCount === "number") {
4123
3999
  iCount = Math.max(0, Math.min(iCount, 2));
@@ -4126,9 +4002,6 @@ sap.ui.define([
4126
4002
  return this.setProperty("rowActionCount", iCount);
4127
4003
  };
4128
4004
 
4129
- /*
4130
- * @see JSDoc generated by SAPUI5 control API generator
4131
- */
4132
4005
  Table.prototype.setRowSettingsTemplate = function(oTemplate) {
4133
4006
  this.setAggregation("rowSettingsTemplate", oTemplate);
4134
4007
  this.invalidateRowsAggregation();
@@ -8,13 +8,14 @@
8
8
  sap.ui.define([
9
9
  "./library",
10
10
  'sap/ui/base/ManagedObject',
11
+ "sap/ui/base/ManagedObjectMetadata",
12
+ "sap/ui/core/Element",
11
13
  "sap/ui/core/syncStyleClass",
12
14
  "sap/base/Log",
13
15
  "sap/ui/thirdparty/jquery",
14
- './utils/TableUtils',
15
- "sap/ui/core/Configuration"
16
+ './utils/TableUtils'
16
17
  ],
17
- function(Library, ManagedObject, syncStyleClass, Log, jQuery, TableUtils, Configuration) {
18
+ function(Library, ManagedObject, ManagedObjectMetadata, Element, syncStyleClass, Log, jQuery, TableUtils) {
18
19
  "use strict";
19
20
 
20
21
  // shortcut for sap.ui.table.ResetAllMode
@@ -33,7 +34,7 @@ sap.ui.define([
33
34
  * @extends sap.ui.base.ManagedObject
34
35
  *
35
36
  * @author SAP SE
36
- * @version 1.120.6
37
+ * @version 1.121.0
37
38
  * @since 1.21.1
38
39
  *
39
40
  * @constructor
@@ -417,7 +418,7 @@ sap.ui.define([
417
418
  };
418
419
 
419
420
  TablePersoController.prototype._getTable = function() {
420
- return sap.ui.getCore().byId(this.getTable());
421
+ return Element.getElementById(this.getTable());
421
422
  };
422
423
 
423
424
  TablePersoController.prototype._getColumnPersoKey = function(oColumn) {
@@ -428,7 +429,7 @@ sap.ui.define([
428
429
  var sPersoKey = oControl.data(this.getCustomDataKey());
429
430
  if (!sPersoKey) {
430
431
  sPersoKey = oControl.getId();
431
- if (sPersoKey.indexOf(Configuration.getUIDPrefix()) === 0) {
432
+ if (sPersoKey.indexOf(ManagedObjectMetadata.getUIDPrefix()) === 0) {
432
433
  Log.warning("Generated IDs should not be used as personalization keys! The stability cannot be ensured! (Control: \"" + oControl.getId() + "\")");
433
434
  }
434
435
  }