@openui5/sap.ui.table 1.105.1 → 1.107.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/.reuse/dep5 +20 -17
  2. package/THIRDPARTY.txt +31 -21
  3. package/package.json +3 -3
  4. package/src/sap/ui/table/.library +1 -1
  5. package/src/sap/ui/table/AnalyticalColumn.js +20 -3
  6. package/src/sap/ui/table/AnalyticalColumnMenu.js +19 -15
  7. package/src/sap/ui/table/AnalyticalTable.js +1 -17
  8. package/src/sap/ui/table/Column.js +102 -50
  9. package/src/sap/ui/table/ColumnMenu.js +19 -5
  10. package/src/sap/ui/table/CreationRow.js +1 -2
  11. package/src/sap/ui/table/Row.js +1 -3
  12. package/src/sap/ui/table/RowAction.js +1 -2
  13. package/src/sap/ui/table/RowActionItem.js +1 -2
  14. package/src/sap/ui/table/RowSettings.js +1 -2
  15. package/src/sap/ui/table/Table.js +77 -44
  16. package/src/sap/ui/table/TablePersoController.js +6 -5
  17. package/src/sap/ui/table/TableRenderer.js +7 -6
  18. package/src/sap/ui/table/TreeTable.js +2 -10
  19. package/src/sap/ui/table/extensions/Accessibility.js +37 -24
  20. package/src/sap/ui/table/extensions/AccessibilityRender.js +3 -1
  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 +1 -1
  24. package/src/sap/ui/table/extensions/KeyboardDelegate.js +7 -6
  25. package/src/sap/ui/table/extensions/Pointer.js +4 -2
  26. package/src/sap/ui/table/extensions/Scrolling.js +1 -1
  27. package/src/sap/ui/table/extensions/ScrollingIOS.js +1 -1
  28. package/src/sap/ui/table/extensions/Synchronization.js +46 -7
  29. package/src/sap/ui/table/library.js +10 -16
  30. package/src/sap/ui/table/menus/ColumnHeaderMenuAdapter.js +224 -0
  31. package/src/sap/ui/table/menus/MobileColumnHeaderMenuAdapter.js +428 -0
  32. package/src/sap/ui/table/messagebundle.properties +6 -0
  33. package/src/sap/ui/table/messagebundle_ar.properties +4 -0
  34. package/src/sap/ui/table/messagebundle_bg.properties +4 -0
  35. package/src/sap/ui/table/messagebundle_ca.properties +4 -0
  36. package/src/sap/ui/table/messagebundle_cs.properties +4 -0
  37. package/src/sap/ui/table/messagebundle_cy.properties +4 -0
  38. package/src/sap/ui/table/messagebundle_da.properties +4 -0
  39. package/src/sap/ui/table/messagebundle_de.properties +4 -0
  40. package/src/sap/ui/table/messagebundle_el.properties +4 -0
  41. package/src/sap/ui/table/messagebundle_en.properties +4 -0
  42. package/src/sap/ui/table/messagebundle_en_GB.properties +4 -0
  43. package/src/sap/ui/table/messagebundle_en_US_sappsd.properties +4 -0
  44. package/src/sap/ui/table/messagebundle_en_US_saprigi.properties +4 -0
  45. package/src/sap/ui/table/messagebundle_en_US_saptrc.properties +4 -0
  46. package/src/sap/ui/table/messagebundle_es.properties +4 -0
  47. package/src/sap/ui/table/messagebundle_es_MX.properties +4 -0
  48. package/src/sap/ui/table/messagebundle_et.properties +4 -0
  49. package/src/sap/ui/table/messagebundle_fi.properties +4 -0
  50. package/src/sap/ui/table/messagebundle_fr.properties +4 -0
  51. package/src/sap/ui/table/messagebundle_fr_CA.properties +4 -0
  52. package/src/sap/ui/table/messagebundle_hi.properties +4 -0
  53. package/src/sap/ui/table/messagebundle_hr.properties +4 -0
  54. package/src/sap/ui/table/messagebundle_hu.properties +4 -0
  55. package/src/sap/ui/table/messagebundle_id.properties +4 -0
  56. package/src/sap/ui/table/messagebundle_it.properties +4 -0
  57. package/src/sap/ui/table/messagebundle_iw.properties +4 -0
  58. package/src/sap/ui/table/messagebundle_ja.properties +4 -0
  59. package/src/sap/ui/table/messagebundle_kk.properties +4 -0
  60. package/src/sap/ui/table/messagebundle_ko.properties +4 -0
  61. package/src/sap/ui/table/messagebundle_lt.properties +4 -0
  62. package/src/sap/ui/table/messagebundle_lv.properties +4 -0
  63. package/src/sap/ui/table/messagebundle_ms.properties +4 -0
  64. package/src/sap/ui/table/messagebundle_nl.properties +4 -0
  65. package/src/sap/ui/table/messagebundle_no.properties +4 -0
  66. package/src/sap/ui/table/messagebundle_pl.properties +4 -0
  67. package/src/sap/ui/table/messagebundle_pt.properties +4 -0
  68. package/src/sap/ui/table/messagebundle_pt_PT.properties +4 -0
  69. package/src/sap/ui/table/messagebundle_ro.properties +4 -0
  70. package/src/sap/ui/table/messagebundle_ru.properties +4 -0
  71. package/src/sap/ui/table/messagebundle_sh.properties +4 -0
  72. package/src/sap/ui/table/messagebundle_sk.properties +4 -0
  73. package/src/sap/ui/table/messagebundle_sl.properties +4 -0
  74. package/src/sap/ui/table/messagebundle_sv.properties +5 -1
  75. package/src/sap/ui/table/messagebundle_th.properties +4 -0
  76. package/src/sap/ui/table/messagebundle_tr.properties +4 -0
  77. package/src/sap/ui/table/messagebundle_uk.properties +4 -0
  78. package/src/sap/ui/table/messagebundle_vi.properties +4 -0
  79. package/src/sap/ui/table/messagebundle_zh_CN.properties +4 -0
  80. package/src/sap/ui/table/messagebundle_zh_TW.properties +4 -0
  81. package/src/sap/ui/table/plugins/BindingSelection.js +1 -1
  82. package/src/sap/ui/table/plugins/PluginBase.js +1 -2
  83. package/src/sap/ui/table/plugins/SelectionModelSelection.js +1 -1
  84. package/src/sap/ui/table/plugins/SelectionPlugin.js +1 -2
  85. package/src/sap/ui/table/plugins/V4Aggregation.js +13 -16
  86. package/src/sap/ui/table/rowmodes/AutoRowMode.js +1 -2
  87. package/src/sap/ui/table/rowmodes/FixedRowMode.js +1 -2
  88. package/src/sap/ui/table/rowmodes/InteractiveRowMode.js +1 -2
  89. package/src/sap/ui/table/rowmodes/RowMode.js +1 -2
  90. package/src/sap/ui/table/rowmodes/VariableRowMode.js +1 -2
  91. package/src/sap/ui/table/utils/TableUtils.js +12 -30
  92. package/src/sap/ui/table/utils/_BindingUtils.js +1 -1
  93. package/src/sap/ui/table/utils/_ColumnUtils.js +38 -12
  94. package/src/sap/ui/table/utils/_GroupingUtils.js +1 -1
  95. package/src/sap/ui/table/utils/_HookUtils.js +1 -1
  96. package/src/sap/ui/table/utils/_MenuUtils.js +19 -21
package/.reuse/dep5 CHANGED
@@ -43,6 +43,14 @@ License: Apache-2.0
43
43
  #
44
44
 
45
45
 
46
+ # Library: sap.m:
47
+
48
+ Files: src/sap.m/src/sap/m/_thirdparty/purify.js
49
+ Copyright: Mario Heiderich
50
+ License: Apache-2.0
51
+ Comment: these files belong to: purify.js
52
+
53
+
46
54
  # Library: sap.ui.codeeditor:
47
55
 
48
56
  Files: src/sap.ui.codeeditor/src/sap/ui/codeeditor/js/ace/*
@@ -127,17 +135,17 @@ Copyright:
127
135
  License: Apache-2.0 and MIT
128
136
  Comment: these files contain content from SAP and jQuery UI 1.11: zIndex.js is overall written by SAP, but contains an implementation of the function 'fnzIndex' which is taken from jQuery UI Datepicker 1.11.1
129
137
 
130
- Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit.*
138
+ Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit.css src/sap.ui.core/src/sap/ui/thirdparty/qunit.js
131
139
  Copyright: jQuery Foundation and other contributors
132
140
  License: MIT
133
141
  Comment: these files belong to: QUnit
134
142
 
135
- Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-2.*
143
+ Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-2.css src/sap.ui.core/src/sap/ui/thirdparty/qunit-2.js
136
144
  Copyright: jQuery Foundation and other contributors
137
145
  License: MIT
138
146
  Comment: these files belong to: QUnit 2
139
147
 
140
- Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.*
148
+ Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.css src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.js
141
149
  Copyright: jQuery Foundation and other contributors
142
150
  License: MIT
143
151
  Comment: these files belong to: QUnit 2.18
@@ -159,7 +167,7 @@ Copyright:
159
167
  License: Apache-2.0 and MIT
160
168
  Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
161
169
 
162
- Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
170
+ Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.css src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.js
163
171
  Copyright: jQuery Foundation and other contributors
164
172
  License: MIT
165
173
  Comment: these files belong to: QUnit Composite
@@ -239,7 +247,7 @@ Copyright: 2010-2017, Christian Johansen, christian@cjohansen.no
239
247
  License: BSD-3-Clause
240
248
  Comment: these files belong to: SinonJS
241
249
 
242
- Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.*
250
+ Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.js
243
251
  Copyright: 2010-2022, Christian Johansen, christian@cjohansen.no
244
252
  License: BSD-3-Clause
245
253
  Comment: these files belong to: SinonJS 14
@@ -313,7 +321,7 @@ Copyright: 2018 Michael Mclaughlin
313
321
  License: MIT
314
322
  Comment: these files belong to: bignumber.js
315
323
 
316
- Files: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
324
+ Files: src/sap.ui.core/src/sap/base/util/restricted/_/lodash.custom.js
317
325
  Copyright: OpenJS Foundation and other contributors
318
326
  License: MIT
319
327
  Comment: these files belong to: lodash
@@ -323,7 +331,7 @@ Copyright: 2021 Mathias Nater
323
331
  License: MIT
324
332
  Comment: these files belong to: Hyphenopoly
325
333
 
326
- Files: src/sap.ui.core/src/sap/ui/base/util/restricted/_CancelablePromise.js
334
+ Files: src/sap.ui.core/src/sap/base/util/restricted/_CancelablePromise.js
327
335
  Copyright:
328
336
  Sindre Sorhus <sindresorhus@gmail.com>
329
337
  2014-present Sebastian McKenzie and other contributors
@@ -418,16 +426,6 @@ License: MIT
418
426
  Comment: these files belong to: @cfworker/json-schema
419
427
 
420
428
 
421
- # Library: sap.ui.mdc:
422
-
423
- Files: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperators/BoolExprTool.js
424
- Copyright:
425
- 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
426
- 2015 unnikked
427
- License: Apache-2.0 and MIT
428
- Comment: these files contain content from SAP and BooleanExpressionEvaluator: BoolExprTool.js is authored by SAP, but partly inspired by BooleanExpressionEvaluator
429
-
430
-
431
429
  # Library: sap.ui.webc.common:
432
430
 
433
431
  Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
@@ -448,6 +446,11 @@ Copyright: SAP
448
446
  License: Apache-2.0
449
447
  Comment: these files belong to: UI5 Web Components
450
448
 
449
+ Files: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/lib/zxing.js
450
+ Copyright: 2005 Sun Microsystems, Inc.; 2010-2014 University of Manchester; 2010-2015 Stian Soiland-Reyes; 2015 Peter Hull
451
+ License: Apache-2.0
452
+ Comment: these files belong to: ZXing
453
+
451
454
 
452
455
  # Library: sap.ui.webc.main:
453
456
 
package/THIRDPARTY.txt CHANGED
@@ -4,6 +4,15 @@ each subcomponent.
4
4
  The full text of all referenced licenses is appended at the end of this file.
5
5
 
6
6
 
7
+ Library: sap.m:
8
+
9
+ Component: purify.js, version: 2.3.8
10
+ Copyright: Mario Heiderich
11
+ License: Apache-2.0
12
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
13
+ Contained in: src/sap.m/src/sap/m/_thirdparty/purify.js
14
+
15
+
7
16
  Library: sap.ui.codeeditor:
8
17
 
9
18
  Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.13
@@ -68,19 +77,22 @@ Component: QUnit, version: 1.18.0
68
77
  Copyright: jQuery Foundation and other contributors
69
78
  License: MIT
70
79
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
71
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit.*
80
+ Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit.css
81
+ src/sap.ui.core/src/sap/ui/thirdparty/qunit.js
72
82
 
73
83
  Component: QUnit 2, version: 2.3.2
74
84
  Copyright: jQuery Foundation and other contributors
75
85
  License: MIT
76
86
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
77
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-2.*
87
+ Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-2.css
88
+ src/sap.ui.core/src/sap/ui/thirdparty/qunit-2.js
78
89
 
79
90
  Component: QUnit 2.18, version: 2.18.0
80
91
  Copyright: jQuery Foundation and other contributors
81
92
  License: MIT
82
93
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
83
- Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.*
94
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.css
95
+ src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.js
84
96
 
85
97
  Component: jQuery-Migrate, version: 3.3.1
86
98
  Copyright: OpenJS Foundation and other contributors
@@ -104,7 +116,8 @@ Component: QUnit Composite, version: 1.0.2-pre
104
116
  Copyright: jQuery Foundation and other contributors
105
117
  License: MIT
106
118
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
107
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
119
+ Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.css
120
+ src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.js
108
121
 
109
122
  Component: JUnit Reporter for QUnit, version: 1.1.1
110
123
  Copyright: jQuery Foundation and other contributors
@@ -201,7 +214,7 @@ Component: SinonJS 14, version: 14.0.0
201
214
  Copyright: 2010-2022, Christian Johansen, christian@cjohansen.no
202
215
  License: BSD-3-Clause
203
216
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
204
- Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.*
217
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.js
205
218
 
206
219
  Component: Sinon-qunit, version: 2.0.0
207
220
  Copyright: 2010-2011, Christian Johansen
@@ -289,7 +302,7 @@ Component: lodash, version: 4.17.21
289
302
  Copyright: OpenJS Foundation and other contributors
290
303
  License: MIT
291
304
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
292
- Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
305
+ Contained in: src/sap.ui.core/src/sap/base/util/restricted/_/lodash.custom.js
293
306
 
294
307
  Component: Hyphenopoly, version: 3.4.0
295
308
  Copyright: 2021 Mathias Nater
@@ -301,13 +314,13 @@ Component: p-cancelable, version: 2.0.0
301
314
  Copyright: Sindre Sorhus <sindresorhus@gmail.com>
302
315
  License: MIT
303
316
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
304
- Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_CancelablePromise.js
317
+ Contained in: src/sap.ui.core/src/sap/base/util/restricted/_CancelablePromise.js
305
318
 
306
319
  Component: @babel/helpers, version: 7.10.4
307
320
  Copyright: 2014-present Sebastian McKenzie and other contributors
308
321
  License: MIT
309
322
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
310
- Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_CancelablePromise.js
323
+ Contained in: src/sap.ui.core/src/sap/base/util/restricted/_CancelablePromise.js
311
324
 
312
325
  Component: Jalaali JS
313
326
  Copyright: Behrang Norouzinia
@@ -407,18 +420,9 @@ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
407
420
  Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/CfWorkerJsonSchemaValidator.js
408
421
 
409
422
 
410
- Library: sap.ui.mdc:
411
-
412
- Component: BooleanExpressionEvaluator, version: master-18530acbf3
413
- Copyright: 2015 unnikked
414
- License: MIT
415
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
416
- Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperators/BoolExprTool.js
417
-
418
-
419
423
  Library: sap.ui.webc.common:
420
424
 
421
- Component: UI5 Web Components, version: 1.1.2
425
+ Component: UI5 Web Components, version: 1.5.0
422
426
  Copyright: SAP
423
427
  License: Apache-2.0
424
428
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -429,7 +433,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
429
433
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
430
434
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
431
435
 
432
- Component: lit-html, version: 2.0.1
436
+ Component: lit-html, version: 2.2.2
433
437
  Copyright: Google LLC
434
438
  License: BSD-3-Clause
435
439
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -438,16 +442,22 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
438
442
 
439
443
  Library: sap.ui.webc.fiori:
440
444
 
441
- Component: UI5 Web Components, version: 1.1.2
445
+ Component: UI5 Web Components, version: 1.5.0
442
446
  Copyright: SAP
443
447
  License: Apache-2.0
444
448
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
445
449
  Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
446
450
 
451
+ Component: ZXing, version: 0.19.1
452
+ Copyright: 2005 Sun Microsystems, Inc.; 2010-2014 University of Manchester; 2010-2015 Stian Soiland-Reyes; 2015 Peter Hull
453
+ License: Apache-2.0
454
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
455
+ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/lib/zxing.js
456
+
447
457
 
448
458
  Library: sap.ui.webc.main:
449
459
 
450
- Component: UI5 Web Components, version: 1.1.2
460
+ Component: UI5 Web Components, version: 1.5.0
451
461
  Copyright: SAP
452
462
  License: Apache-2.0
453
463
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.table",
3
- "version": "1.105.1",
3
+ "version": "1.107.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.table",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,7 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.ui.core": "1.105.1",
18
- "@openui5/sap.ui.unified": "1.105.1"
17
+ "@openui5/sap.ui.core": "1.107.0",
18
+ "@openui5/sap.ui.unified": "1.107.0"
19
19
  }
20
20
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.105.1</version>
9
+ <version>1.107.0</version>
10
10
 
11
11
  <documentation>Table-like controls, mainly for desktop scenarios.</documentation>
12
12
 
@@ -31,6 +31,8 @@ sap.ui.define([
31
31
  ) {
32
32
  "use strict";
33
33
 
34
+ var GroupEventType = library.GroupEventType;
35
+
34
36
  function isInstanceOfAnalyticalTable(oControl) {
35
37
  return TableUtils.isA(oControl, "sap.ui.table.AnalyticalTable");
36
38
  }
@@ -46,13 +48,12 @@ sap.ui.define([
46
48
  * @extends sap.ui.table.Column
47
49
  *
48
50
  * @author SAP SE
49
- * @version 1.105.1
51
+ * @version 1.107.0
50
52
  *
51
53
  * @constructor
52
54
  * @public
53
55
  * @experimental Since version 1.21.
54
56
  * @alias sap.ui.table.AnalyticalColumn
55
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
56
57
  */
57
58
  var AnalyticalColumn = Column.extend("sap.ui.table.AnalyticalColumn", /** @lends sap.ui.table.AnalyticalColumn.prototype */ { metadata : {
58
59
 
@@ -82,7 +83,7 @@ sap.ui.define([
82
83
  /**
83
84
  * If the column is grouped, this formatter is used to format the value in the group header
84
85
  */
85
- groupHeaderFormatter : {type : "any", group : "Behavior", defaultValue : null}
86
+ groupHeaderFormatter : {type : "function", group : "Behavior", defaultValue : null}
86
87
  }
87
88
  }});
88
89
 
@@ -107,6 +108,22 @@ sap.ui.define([
107
108
  return new AnalyticalColumnMenu(this.getId() + "-menu");
108
109
  };
109
110
 
111
+ AnalyticalColumn.prototype._setGrouped = function(bGrouped) {
112
+ var oTable = this._getTable();
113
+ var sGroupEventType = bGrouped ? GroupEventType.group : GroupEventType.ungroup;
114
+
115
+ this.setGrouped(bGrouped);
116
+ oTable.fireGroup({column: this, groupedColumns: oTable._aGroupedColumns, type: sGroupEventType});
117
+ };
118
+
119
+ AnalyticalColumn.prototype._isAggregatableByMenu = function() {
120
+ var oTable = this._getTable(),
121
+ oBinding = oTable.getBinding(),
122
+ oResultSet = oBinding && oBinding.getAnalyticalQueryResult();
123
+
124
+ return oTable && oResultSet && oResultSet.findMeasureByPropertyName(this.getLeadingProperty());
125
+ };
126
+
110
127
  AnalyticalColumn.prototype.setGrouped = function(bGrouped) {
111
128
  var oParent = this.getParent();
112
129
 
@@ -5,13 +5,10 @@
5
5
  */
6
6
 
7
7
  // Provides control sap.ui.table.AnalyticalColumnMenu.
8
- sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './library', "sap/ui/thirdparty/jquery"],
9
- function(ColumnMenu, MenuRenderer, library, jQuery) {
8
+ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './utils/TableUtils', './library', "sap/ui/thirdparty/jquery"],
9
+ function(ColumnMenu, MenuRenderer, TableUtils, library, jQuery) {
10
10
  "use strict";
11
11
 
12
- // shortcut
13
- var GroupEventType = library.GroupEventType;
14
-
15
12
  /**
16
13
  * Constructor for a new AnalyticalColumnMenu.
17
14
  *
@@ -23,14 +20,13 @@ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './library', "sap/
23
20
  * @extends sap.ui.table.ColumnMenu
24
21
  *
25
22
  * @author SAP SE
26
- * @version 1.105.1
23
+ * @version 1.107.0
27
24
  *
28
25
  * @constructor
29
26
  * @public
30
27
  * @experimental Since version 1.21.
31
28
  * The AnalyticalColumnMenu will be productized soon.
32
29
  * @alias sap.ui.table.AnalyticalColumnMenu
33
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
34
30
  */
35
31
  var AnalyticalColumnMenu = ColumnMenu.extend("sap.ui.table.AnalyticalColumnMenu", /** @lends sap.ui.table.AnalyticalColumnMenu.prototype */ {
36
32
  metadata : {
@@ -67,10 +63,21 @@ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './library', "sap/
67
63
  function(oEvent) {
68
64
  var oMenuItem = oEvent.getSource();
69
65
  var bGrouped = oColumn.getGrouped();
70
- var sGroupEventType = bGrouped ? GroupEventType.group : GroupEventType.ungroup;
71
66
 
72
- oColumn.setGrouped(!bGrouped);
73
- oTable.fireGroup({column: oColumn, groupedColumns: oTable._aGroupedColumns, type: sGroupEventType});
67
+ oColumn._setGrouped(!bGrouped);
68
+ if (!bGrouped && !oColumn.getShowIfGrouped()) {
69
+ var oDomRef;
70
+
71
+ if (TableUtils.isNoDataVisible(oTable)) {
72
+ oDomRef = oTable.getDomRef("noDataCnt");
73
+ } else {
74
+ oDomRef = oTable.getDomRef("rowsel0");
75
+ }
76
+
77
+ if (oDomRef) {
78
+ oDomRef.focus();
79
+ }
80
+ }
74
81
  oMenuItem.setIcon(!bGrouped ? "sap-icon://accept" : null);
75
82
  }
76
83
  );
@@ -83,12 +90,9 @@ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './library', "sap/
83
90
  * @private
84
91
  */
85
92
  AnalyticalColumnMenu.prototype._addSumMenuItem = function() {
86
- var oColumn = this._oColumn,
87
- oTable = this._oTable,
88
- oBinding = oTable.getBinding(),
89
- oResultSet = oBinding && oBinding.getAnalyticalQueryResult();
93
+ var oColumn = this._oColumn;
90
94
 
91
- if (oTable && oResultSet && oResultSet.findMeasureByPropertyName(oColumn.getLeadingProperty())) {
95
+ if (oColumn._isAggregatableByMenu()) {
92
96
  this._oSumItem = this._createMenuItem(
93
97
  "total",
94
98
  "TBL_TOTAL",
@@ -56,14 +56,13 @@ sap.ui.define([
56
56
  * @see http://scn.sap.com/docs/DOC-44986
57
57
  *
58
58
  * @extends sap.ui.table.Table
59
- * @version 1.105.1
59
+ * @version 1.107.0
60
60
  *
61
61
  * @constructor
62
62
  * @public
63
63
  * @alias sap.ui.table.AnalyticalTable
64
64
  * @see {@link topic:08197fa68e4f479cbe30f639cc1cd22c sap.ui.table}
65
65
  * @see {@link fiori:/analytical-table-alv/ Analytical Table}
66
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
67
66
  */
68
67
  var AnalyticalTable = Table.extend("sap.ui.table.AnalyticalTable", /** @lends sap.ui.table.AnalyticalTable.prototype */ { metadata : {
69
68
 
@@ -743,7 +742,6 @@ sap.ui.define([
743
742
  * Index of the row to return the context from.
744
743
  * @returns {sap.ui.model.Context} The context of a row by its index
745
744
  * @public
746
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
747
745
  */
748
746
  AnalyticalTable.prototype.getContextByIndex = function(iIndex) {
749
747
  var oBinding = this.getBinding();
@@ -1007,7 +1005,6 @@ sap.ui.define([
1007
1005
  *
1008
1006
  * @returns {int} The total size of the data entries
1009
1007
  * @public
1010
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1011
1008
  */
1012
1009
  AnalyticalTable.prototype.getTotalSize = function() {
1013
1010
  var oBinding = this.getBinding();
@@ -1074,7 +1071,6 @@ sap.ui.define([
1074
1071
  * @param {int} iRowIndex The row index for which the selection state should be retrieved
1075
1072
  * @returns {boolean} true if the index is selected, false otherwise
1076
1073
  * @public
1077
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1078
1074
  * @function
1079
1075
  * @name sap.ui.table.AnalyticalTable#isIndexSelected
1080
1076
  */
@@ -1087,7 +1083,6 @@ sap.ui.define([
1087
1083
  * @param {int} iRowIndex The row index which will be selected (in case it exists)
1088
1084
  * @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
1089
1085
  * @public
1090
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1091
1086
  * @function
1092
1087
  * @name sap.ui.table.AnalyticalTable#setSelectedIndex
1093
1088
  */
@@ -1102,7 +1097,6 @@ sap.ui.define([
1102
1097
  *
1103
1098
  * @returns {int[]} an array containing all selected indices
1104
1099
  * @public
1105
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1106
1100
  * @function
1107
1101
  * @name sap.ui.table.AnalyticalTable#getSelectedIndices
1108
1102
  */
@@ -1117,7 +1111,6 @@ sap.ui.define([
1117
1111
  * @param {int} iToIndex the end index of the selection range
1118
1112
  * @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
1119
1113
  * @public
1120
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1121
1114
  * @function
1122
1115
  * @name sap.ui.table.AnalyticalTable#setSelectionInterval
1123
1116
  */
@@ -1135,7 +1128,6 @@ sap.ui.define([
1135
1128
  * @param {int} iToIndex The starting index of the range which will be selected.
1136
1129
  * @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
1137
1130
  * @public
1138
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1139
1131
  * @function
1140
1132
  * @name sap.ui.table.AnalyticalTable#addSelectionInterval
1141
1133
  */
@@ -1150,7 +1142,6 @@ sap.ui.define([
1150
1142
  * @param {int} iToIndex The starting index of the range which will be deselected.
1151
1143
  * @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
1152
1144
  * @public
1153
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1154
1145
  * @function
1155
1146
  * @name sap.ui.table.AnalyticalTable#removeSelectionInterval
1156
1147
  */
@@ -1165,7 +1156,6 @@ sap.ui.define([
1165
1156
  *
1166
1157
  * @returns {this} a reference to the <code>AnalyticalTable</code> control, can be used for chaining
1167
1158
  * @public
1168
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1169
1159
  * @function
1170
1160
  * @name sap.ui.table.AnalyticalTable#selectAll
1171
1161
  */
@@ -1178,7 +1168,6 @@ sap.ui.define([
1178
1168
  *
1179
1169
  * @returns {int} Current lead selection index.
1180
1170
  * @public
1181
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1182
1171
  * @function
1183
1172
  * @name sap.ui.table.AnalyticalTable#getSelectedIndex
1184
1173
  */
@@ -1189,7 +1178,6 @@ sap.ui.define([
1189
1178
  * @param {int|int[]} vRowIndex A single index or an array of indices of the rows to be expanded
1190
1179
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
1191
1180
  * @public
1192
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1193
1181
  * @function
1194
1182
  */
1195
1183
  AnalyticalTable.prototype.expand = TreeTable.prototype.expand;
@@ -1200,7 +1188,6 @@ sap.ui.define([
1200
1188
  * @param {int|int[]} vRowIndex A single index, or an array of indices of the rows to be collapsed
1201
1189
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
1202
1190
  * @public
1203
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1204
1191
  * @function
1205
1192
  */
1206
1193
  AnalyticalTable.prototype.collapse = TreeTable.prototype.collapse;
@@ -1212,7 +1199,6 @@ sap.ui.define([
1212
1199
  *
1213
1200
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
1214
1201
  * @public
1215
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1216
1202
  * @since 1.70
1217
1203
  */
1218
1204
  AnalyticalTable.prototype.expandAll = function() {
@@ -1230,7 +1216,6 @@ sap.ui.define([
1230
1216
  *
1231
1217
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
1232
1218
  * @public
1233
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1234
1219
  * @function
1235
1220
  */
1236
1221
  AnalyticalTable.prototype.collapseAll = TreeTable.prototype.collapseAll;
@@ -1241,7 +1226,6 @@ sap.ui.define([
1241
1226
  * @param {int} iRowIndex The index of the row to be checked
1242
1227
  * @returns {boolean} <code>true</code> if the row is expanded, <code>false</code> if it is collapsed
1243
1228
  * @public
1244
- * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
1245
1229
  * @function
1246
1230
  */
1247
1231
  AnalyticalTable.prototype.isExpanded = TreeTable.prototype.isExpanded;