@openui5/sap.ui.table 1.133.0 → 1.134.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 (101) hide show
  1. package/.reuse/dep5 +0 -7
  2. package/THIRDPARTY.txt +1 -22
  3. package/package.json +3 -3
  4. package/src/sap/ui/table/.library +1 -1
  5. package/src/sap/ui/table/AnalyticalColumn.js +18 -13
  6. package/src/sap/ui/table/AnalyticalColumnMenu.js +1 -1
  7. package/src/sap/ui/table/AnalyticalTable.js +3 -3
  8. package/src/sap/ui/table/Column.js +1 -1
  9. package/src/sap/ui/table/ColumnMenu.js +1 -1
  10. package/src/sap/ui/table/CreationRow.js +1 -1
  11. package/src/sap/ui/table/CreationRowRenderer.js +2 -2
  12. package/src/sap/ui/table/Row.js +1 -1
  13. package/src/sap/ui/table/RowAction.js +1 -1
  14. package/src/sap/ui/table/RowActionItem.js +1 -1
  15. package/src/sap/ui/table/RowSettings.js +1 -1
  16. package/src/sap/ui/table/Table.js +18 -8
  17. package/src/sap/ui/table/TablePersoController.js +1 -1
  18. package/src/sap/ui/table/TableRenderer.js +48 -49
  19. package/src/sap/ui/table/TreeTable.js +3 -3
  20. package/src/sap/ui/table/extensions/Accessibility.js +535 -375
  21. package/src/sap/ui/table/extensions/AccessibilityRender.js +1 -9
  22. package/src/sap/ui/table/extensions/DragAndDrop.js +1 -1
  23. package/src/sap/ui/table/extensions/ExtensionBase.js +1 -1
  24. package/src/sap/ui/table/extensions/Keyboard.js +2 -4
  25. package/src/sap/ui/table/extensions/KeyboardDelegate.js +9 -46
  26. package/src/sap/ui/table/extensions/Pointer.js +1 -1
  27. package/src/sap/ui/table/extensions/Scrolling.js +1 -1
  28. package/src/sap/ui/table/extensions/ScrollingIOS.js +1 -1
  29. package/src/sap/ui/table/extensions/Synchronization.js +1 -1
  30. package/src/sap/ui/table/library.js +11 -11
  31. package/src/sap/ui/table/menus/AnalyticalTableContextMenu.js +1 -1
  32. package/src/sap/ui/table/menus/ColumnHeaderMenuAdapter.js +1 -1
  33. package/src/sap/ui/table/menus/ContextMenu.js +1 -1
  34. package/src/sap/ui/table/menus/MobileColumnHeaderMenuAdapter.js +1 -1
  35. package/src/sap/ui/table/messagebundle.properties +10 -14
  36. package/src/sap/ui/table/messagebundle_ar.properties +6 -9
  37. package/src/sap/ui/table/messagebundle_bg.properties +6 -9
  38. package/src/sap/ui/table/messagebundle_ca.properties +6 -9
  39. package/src/sap/ui/table/messagebundle_cnr.properties +6 -9
  40. package/src/sap/ui/table/messagebundle_cs.properties +6 -9
  41. package/src/sap/ui/table/messagebundle_cy.properties +6 -9
  42. package/src/sap/ui/table/messagebundle_da.properties +6 -9
  43. package/src/sap/ui/table/messagebundle_de.properties +4 -7
  44. package/src/sap/ui/table/messagebundle_el.properties +5 -8
  45. package/src/sap/ui/table/messagebundle_en.properties +6 -9
  46. package/src/sap/ui/table/messagebundle_en_GB.properties +4 -7
  47. package/src/sap/ui/table/messagebundle_es.properties +6 -9
  48. package/src/sap/ui/table/messagebundle_es_MX.properties +5 -8
  49. package/src/sap/ui/table/messagebundle_et.properties +6 -9
  50. package/src/sap/ui/table/messagebundle_fi.properties +6 -9
  51. package/src/sap/ui/table/messagebundle_fr.properties +6 -9
  52. package/src/sap/ui/table/messagebundle_fr_CA.properties +6 -9
  53. package/src/sap/ui/table/messagebundle_hi.properties +6 -9
  54. package/src/sap/ui/table/messagebundle_hr.properties +6 -9
  55. package/src/sap/ui/table/messagebundle_hu.properties +6 -9
  56. package/src/sap/ui/table/messagebundle_id.properties +6 -9
  57. package/src/sap/ui/table/messagebundle_it.properties +6 -9
  58. package/src/sap/ui/table/messagebundle_iw.properties +6 -9
  59. package/src/sap/ui/table/messagebundle_ja.properties +5 -8
  60. package/src/sap/ui/table/messagebundle_kk.properties +10 -13
  61. package/src/sap/ui/table/messagebundle_ko.properties +5 -8
  62. package/src/sap/ui/table/messagebundle_lt.properties +4 -7
  63. package/src/sap/ui/table/messagebundle_lv.properties +5 -8
  64. package/src/sap/ui/table/messagebundle_mk.properties +6 -9
  65. package/src/sap/ui/table/messagebundle_ms.properties +5 -8
  66. package/src/sap/ui/table/messagebundle_nl.properties +6 -9
  67. package/src/sap/ui/table/messagebundle_no.properties +6 -9
  68. package/src/sap/ui/table/messagebundle_pl.properties +6 -9
  69. package/src/sap/ui/table/messagebundle_pt.properties +6 -9
  70. package/src/sap/ui/table/messagebundle_pt_PT.properties +4 -7
  71. package/src/sap/ui/table/messagebundle_ro.properties +6 -9
  72. package/src/sap/ui/table/messagebundle_ru.properties +6 -9
  73. package/src/sap/ui/table/messagebundle_sh.properties +6 -9
  74. package/src/sap/ui/table/messagebundle_sk.properties +6 -9
  75. package/src/sap/ui/table/messagebundle_sl.properties +6 -9
  76. package/src/sap/ui/table/messagebundle_sr.properties +6 -9
  77. package/src/sap/ui/table/messagebundle_sv.properties +6 -9
  78. package/src/sap/ui/table/messagebundle_th.properties +6 -9
  79. package/src/sap/ui/table/messagebundle_tr.properties +6 -9
  80. package/src/sap/ui/table/messagebundle_uk.properties +4 -7
  81. package/src/sap/ui/table/messagebundle_vi.properties +6 -9
  82. package/src/sap/ui/table/messagebundle_zh_CN.properties +4 -7
  83. package/src/sap/ui/table/messagebundle_zh_TW.properties +6 -9
  84. package/src/sap/ui/table/plugins/BindingSelection.js +1 -1
  85. package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +2 -2
  86. package/src/sap/ui/table/plugins/PluginBase.js +1 -1
  87. package/src/sap/ui/table/plugins/SelectionModelSelection.js +3 -1
  88. package/src/sap/ui/table/plugins/SelectionPlugin.js +1 -1
  89. package/src/sap/ui/table/plugins/V4Aggregation.js +1 -1
  90. package/src/sap/ui/table/rowmodes/Auto.js +1 -1
  91. package/src/sap/ui/table/rowmodes/Fixed.js +1 -1
  92. package/src/sap/ui/table/rowmodes/Interactive.js +19 -12
  93. package/src/sap/ui/table/rowmodes/RowMode.js +1 -1
  94. package/src/sap/ui/table/rowmodes/Variable.js +1 -1
  95. package/src/sap/ui/table/utils/TableUtils.js +15 -4
  96. package/src/sap/ui/table/utils/_BindingUtils.js +1 -1
  97. package/src/sap/ui/table/utils/_ColumnUtils.js +1 -1
  98. package/src/sap/ui/table/utils/_GroupingUtils.js +1 -1
  99. package/src/sap/ui/table/utils/_HookUtils.js +1 -1
  100. package/src/sap/ui/table/utils/_MenuUtils.js +1 -1
  101. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +0 -5
@@ -8,13 +8,15 @@ sap.ui.define([
8
8
  "../utils/TableUtils",
9
9
  "sap/ui/Device",
10
10
  "sap/m/Menu",
11
- "sap/m/MenuItem"
11
+ "sap/m/MenuItem",
12
+ "sap/ui/core/InvisibleMessage"
12
13
  ], function(
13
14
  RowMode,
14
15
  TableUtils,
15
16
  Device,
16
17
  Menu,
17
- MenuItem
18
+ MenuItem,
19
+ InvisibleMessage
18
20
  ) {
19
21
  "use strict";
20
22
 
@@ -38,7 +40,7 @@ sap.ui.define([
38
40
  * @public
39
41
  *
40
42
  * @author SAP SE
41
- * @version 1.133.0
43
+ * @version 1.134.0
42
44
  */
43
45
  const InteractiveRowMode = RowMode.extend("sap.ui.table.rowmodes.Interactive", /** @lends sap.ui.table.rowmodes.Interactive.prototype */ {
44
46
  metadata: {
@@ -95,6 +97,11 @@ sap.ui.define([
95
97
  */
96
98
  const ResizeHelper = {};
97
99
 
100
+ function setNewRowCount(iRowCount) {
101
+ _private(this).rowCount = iRowCount;
102
+ InvisibleMessage.getInstance().announce(TableUtils.getResourceText("TBL_RSZ_RESIZED", [iRowCount]));
103
+ }
104
+
98
105
  /**
99
106
  * @inheritDoc
100
107
  */
@@ -367,7 +374,7 @@ sap.ui.define([
367
374
 
368
375
  InteractiveRowMode.prototype.setRowCount = function(iRowCount) {
369
376
  this.setProperty("rowCount", iRowCount);
370
- _private(this).rowCount = iRowCount;
377
+ setNewRowCount.call(this, iRowCount);
371
378
  return this;
372
379
  };
373
380
 
@@ -430,22 +437,22 @@ sap.ui.define([
430
437
  switch (oEvent.key) {
431
438
  case "ArrowUp":
432
439
  oEvent.preventDefault();
433
- _private(this).rowCount = Math.max(this.getActualRowCount() - 1, this.getMinRowCount());
440
+ setNewRowCount.call(this, Math.max(this.getActualRowCount() - 1, this.getMinRowCount()));
434
441
  this.updateTable(TableUtils.RowsUpdateReason.Render);
435
442
  break;
436
443
  case "ArrowDown":
437
444
  oEvent.preventDefault();
438
- _private(this).rowCount = Math.min(this.getActualRowCount() + 1, this._getMaxRowCount());
445
+ setNewRowCount.call(this, Math.min(this.getActualRowCount() + 1, this._getMaxRowCount()));
439
446
  this.updateTable(TableUtils.RowsUpdateReason.Render);
440
447
  break;
441
448
  case "Home":
442
449
  oEvent.preventDefault();
443
- _private(this).rowCount = this.getMinRowCount();
450
+ setNewRowCount.call(this, this.getMinRowCount());
444
451
  this.updateTable(TableUtils.RowsUpdateReason.Render);
445
452
  break;
446
453
  case "End":
447
454
  oEvent.preventDefault();
448
- _private(this).rowCount = this._getMaxRowCount();
455
+ setNewRowCount.call(this, this._getMaxRowCount());
449
456
  this.updateTable(TableUtils.RowsUpdateReason.Render);
450
457
  break;
451
458
  default:
@@ -460,11 +467,11 @@ sap.ui.define([
460
467
 
461
468
  const iActualRowCount = this.getActualRowCount();
462
469
  if (iActualRowCount === this._getMaxRowCount()) {
463
- _private(this).rowCount = this.getMinRowCount();
470
+ setNewRowCount.call(this, this.getMinRowCount());
464
471
  } else if (iActualRowCount === this.getMinRowCount()) {
465
- _private(this).rowCount = this.getRowCount();
472
+ setNewRowCount.call(this, this.getRowCount());
466
473
  } else {
467
- _private(this).rowCount = this._getMaxRowCount();
474
+ setNewRowCount.call(this, this._getMaxRowCount());
468
475
  }
469
476
  this.updateTable(TableUtils.RowsUpdateReason.Render);
470
477
  };
@@ -529,7 +536,7 @@ sap.ui.define([
529
536
  this.setVisibleRowCount(iNewRowCount);
530
537
  }
531
538
 
532
- _private(oMode).rowCount = iNewRowCount;
539
+ setNewRowCount.call(oMode, iNewRowCount);
533
540
  oMode.updateTable(TableUtils.RowsUpdateReason.Render);
534
541
 
535
542
  document.removeEventListener("touchmove", ResizeHelper.onResizerMove);
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @public
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.133.0
40
+ * @version 1.134.0
41
41
  */
42
42
  const RowMode = Element.extend("sap.ui.table.rowmodes.RowMode", /** @lends sap.ui.table.rowmodes.RowMode.prototype */ {
43
43
  metadata: {
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.ui.table.rowmodes.RowMode
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.133.0
26
+ * @version 1.134.0
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -76,10 +76,11 @@ sap.ui.define([
76
76
  ROWHEADER: 1 << 3,
77
77
  ROWACTION: 1 << 4,
78
78
  COLUMNROWHEADER: 1 << 5,
79
- PSEUDO: 1 << 6
79
+ ROWACTIONCOLUMNHEADER: 1 << 6,
80
+ PSEUDO: 1 << 7
80
81
  };
81
82
  CELLTYPE.ANYCONTENTCELL = CELLTYPE.ROWHEADER | CELLTYPE.DATACELL | CELLTYPE.ROWACTION;
82
- CELLTYPE.ANYCOLUMNHEADER = CELLTYPE.COLUMNHEADER | CELLTYPE.COLUMNROWHEADER;
83
+ CELLTYPE.ANYCOLUMNHEADER = CELLTYPE.COLUMNHEADER | CELLTYPE.COLUMNROWHEADER | CELLTYPE.ROWACTIONCOLUMNHEADER;
83
84
  CELLTYPE.ANYROWHEADER = CELLTYPE.ROWHEADER | CELLTYPE.COLUMNROWHEADER;
84
85
  CELLTYPE.ANY = CELLTYPE.ANYCONTENTCELL | CELLTYPE.ANYCOLUMNHEADER;
85
86
 
@@ -209,7 +210,7 @@ sap.ui.define([
209
210
  * Static collection of utility functions related to the sap.ui.table.Table, ...
210
211
  *
211
212
  * @author SAP SE
212
- * @version 1.133.0
213
+ * @version 1.134.0
213
214
  * @namespace
214
215
  * @alias sap.ui.table.utils.TableUtils
215
216
  * @private
@@ -368,7 +369,8 @@ sap.ui.define([
368
369
  return false;
369
370
  }
370
371
 
371
- return oTable.getDomRef().querySelector('[id="' + oTable.getId() + '-sapUiTableGridCnt"] > .sapUiLocalBusyIndicator') != null;
372
+ const sSelector = oTable.getCreationRow() ? "-sapUiTableGridCnt" : "-sapUiTableCnt";
373
+ return oTable.getDomRef().querySelector('[id="' + oTable.getId() + sSelector + '"] > .sapUiLocalBusyIndicator') != null;
372
374
  },
373
375
 
374
376
  /**
@@ -634,6 +636,10 @@ sap.ui.define([
634
636
  const sTitle = TableUtils.getResourceText("TBL_SELECT_LIMIT_TITLE");
635
637
  const sMessage = TableUtils.getResourceText("TBL_SELECT_LIMIT", [iLimit]);
636
638
 
639
+ if (!oRow) {
640
+ return Promise.resolve();
641
+ }
642
+
637
643
  return new Promise(function(resolve) {
638
644
  sap.ui.require([
639
645
  "sap/m/Popover", "sap/m/Bar", "sap/m/Title", "sap/m/Text", "sap/m/HBox", "sap/ui/core/library", "sap/m/library"
@@ -795,6 +801,11 @@ sap.ui.define([
795
801
  oCellInfo.columnIndex = -2;
796
802
  oCellInfo.columnSpan = 1;
797
803
 
804
+ } else if ($Cell.hasClass("sapUiTableRowActionHeaderCell")) {
805
+ oCellInfo.type = TableUtils.CELLTYPE.ROWACTIONCOLUMNHEADER;
806
+ oCellInfo.columnIndex = -2;
807
+ oCellInfo.columnSpan = 1;
808
+
798
809
  } else if ($Cell.hasClass("sapUiTableRowSelectionHeaderCell")) {
799
810
  oCellInfo.type = TableUtils.CELLTYPE.COLUMNROWHEADER;
800
811
  oCellInfo.columnIndex = -1;
@@ -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.133.0
17
+ * @version 1.134.0
18
18
  * @namespace
19
19
  * @alias sap.ui.table.utils._BindingUtils
20
20
  * @private
@@ -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.133.0
21
+ * @version 1.134.0
22
22
  * @namespace
23
23
  * @alias sap.ui.table.utils._ColumnUtils
24
24
  * @private
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * Note: Do not access the functions of this helper directly, but via <code>sap.ui.table.utils.TableUtils.Grouping...</code>
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.133.0
27
+ * @version 1.134.0
28
28
  * @namespace
29
29
  * @alias sap.ui.table.utils._GroupingUtils
30
30
  * @private
@@ -22,7 +22,7 @@ sap.ui.define(["sap/ui/base/DataType", "sap/ui/model/ChangeReason"], function(Da
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.133.0
25
+ * @version 1.134.0
26
26
  * @namespace
27
27
  * @alias sap.ui.table.utils._HookUtils
28
28
  *
@@ -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.Menu...</code>
15
15
  *
16
16
  * @author SAP SE
17
- * @version 1.133.0
17
+ * @version 1.134.0
18
18
  * @namespace
19
19
  * @alias sap.ui.table.utils._MenuUtils
20
20
  * @private
@@ -1,5 +0,0 @@
1
- Unless specified below, all files in the tz code and data (including
2
- this LICENSE file) are in the public domain.
3
-
4
- If the files date.c, newstrftime.3, and strftime.c are present, they
5
- contain material derived from BSD and use the BSD 3-clause license.