@openui5/sap.ui.table 1.97.1 → 1.100.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 (54) hide show
  1. package/.reuse/dep5 +25 -30
  2. package/THIRDPARTY.txt +15 -22
  3. package/package.json +3 -3
  4. package/src/sap/ui/table/.library +1 -1
  5. package/src/sap/ui/table/AnalyticalColumn.js +1 -1
  6. package/src/sap/ui/table/AnalyticalColumnMenu.js +2 -2
  7. package/src/sap/ui/table/AnalyticalTable.js +12 -29
  8. package/src/sap/ui/table/Column.js +19 -4
  9. package/src/sap/ui/table/ColumnMenu.js +4 -6
  10. package/src/sap/ui/table/CreationRow.js +9 -4
  11. package/src/sap/ui/table/Row.js +1 -1
  12. package/src/sap/ui/table/RowAction.js +3 -2
  13. package/src/sap/ui/table/RowActionItem.js +1 -1
  14. package/src/sap/ui/table/RowActionRenderer.js +3 -3
  15. package/src/sap/ui/table/RowSettings.js +1 -1
  16. package/src/sap/ui/table/Table.js +133 -156
  17. package/src/sap/ui/table/TablePersoController.js +1 -1
  18. package/src/sap/ui/table/TableRenderer.js +24 -36
  19. package/src/sap/ui/table/TreeTable.js +25 -9
  20. package/src/sap/ui/table/extensions/Accessibility.js +10 -6
  21. package/src/sap/ui/table/extensions/AccessibilityRender.js +1 -1
  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 +1 -1
  25. package/src/sap/ui/table/extensions/KeyboardDelegate.js +4 -4
  26. package/src/sap/ui/table/extensions/Pointer.js +5 -1
  27. package/src/sap/ui/table/extensions/Scrolling.js +14 -50
  28. package/src/sap/ui/table/extensions/ScrollingIOS.js +13 -61
  29. package/src/sap/ui/table/extensions/Synchronization.js +5 -5
  30. package/src/sap/ui/table/library.js +10 -10
  31. package/src/sap/ui/table/messagebundle_it.properties +8 -8
  32. package/src/sap/ui/table/messagebundle_pl.properties +1 -1
  33. package/src/sap/ui/table/plugins/BindingSelection.js +1 -1
  34. package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +0 -4
  35. package/src/sap/ui/table/plugins/PluginBase.js +1 -1
  36. package/src/sap/ui/table/plugins/SelectionModelSelection.js +9 -17
  37. package/src/sap/ui/table/plugins/SelectionPlugin.js +1 -1
  38. package/src/sap/ui/table/plugins/V4Aggregation.js +2 -4
  39. package/src/sap/ui/table/rowmodes/AutoRowMode.js +5 -5
  40. package/src/sap/ui/table/rowmodes/FixedRowMode.js +2 -2
  41. package/src/sap/ui/table/rowmodes/InteractiveRowMode.js +2 -2
  42. package/src/sap/ui/table/rowmodes/RowMode.js +4 -12
  43. package/src/sap/ui/table/rowmodes/VariableRowMode.js +1 -1
  44. package/src/sap/ui/table/rules/Rows.support.js +3 -2
  45. package/src/sap/ui/table/themes/base/Scrolling.less +18 -38
  46. package/src/sap/ui/table/themes/base/ScrollingIOS.less +11 -19
  47. package/src/sap/ui/table/themes/base/Table.less +6 -6
  48. package/src/sap/ui/table/themes/sap_hcb/Table.less +3 -3
  49. package/src/sap/ui/table/utils/TableUtils.js +9 -37
  50. package/src/sap/ui/table/utils/_BindingUtils.js +1 -1
  51. package/src/sap/ui/table/utils/_ColumnUtils.js +2 -9
  52. package/src/sap/ui/table/utils/_GroupingUtils.js +2 -3
  53. package/src/sap/ui/table/utils/_HookUtils.js +2 -2
  54. package/src/sap/ui/table/utils/_MenuUtils.js +14 -7
package/.reuse/dep5 CHANGED
@@ -28,7 +28,7 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
28
28
  # OpenUI5 code
29
29
 
30
30
  Files: *
31
- Copyright: 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
31
+ Copyright: 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
32
32
  License: Apache-2.0
33
33
 
34
34
 
@@ -60,7 +60,7 @@ Comment: these files belong to: jQuery UI
60
60
 
61
61
  Files: src/sap.ui.commons/src/sap/ui/commons/Carousel.js
62
62
  Copyright:
63
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
63
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
64
64
  Spencer Tipping
65
65
  License: Apache-2.0 and MIT
66
66
  Comment: these files contain content from SAP and jquery.fix.clone: Carousel.js is authored by SAP, but contains an improved implementation of the clone function which is taken from jquery-fix-clone
@@ -75,35 +75,35 @@ Comment: these files belong to: jQuery 3
75
75
 
76
76
  Files: src/sap.ui.core/src/sap/base/util/isPlainObject.js
77
77
  Copyright:
78
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
78
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
79
79
  OpenJS Foundation and other contributors
80
80
  License: Apache-2.0 and MIT
81
81
  Comment: these files contain content from SAP and jQuery 3: isPlainObject.js is overall written by SAP, but contains a modified implementation of jQuery.isPlainObject taken from jQuery
82
82
 
83
83
  Files: src/sap.ui.core/src/sap/base/util/_merge.js
84
84
  Copyright:
85
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
85
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
86
86
  OpenJS Foundation and other contributors
87
87
  License: Apache-2.0 and MIT
88
88
  Comment: these files contain content from SAP and jQuery 3: _merge.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
89
89
 
90
90
  Files: src/sap.ui.core/src/jquery.sap.script.js
91
91
  Copyright:
92
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
92
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
93
93
  OpenJS Foundation and other contributors
94
94
  License: Apache-2.0 and MIT
95
95
  Comment: these files contain content from SAP and jQuery 3: jquery.sap.script.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
96
96
 
97
97
  Files: src/sap.ui.core/src/sap/ui/Device.js
98
98
  Copyright:
99
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
99
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
100
100
  2011, John Resig
101
101
  License: Apache-2.0 and MIT
102
102
  Comment: these files contain content from SAP and jQuery 1: Device.js is overall written by SAP, but contains code taken from jQuery 1.7.1 (see the respective comment)
103
103
 
104
104
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/Selectors.js
105
105
  Copyright:
106
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
106
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
107
107
  2014 jQuery Foundation and other contributors
108
108
  License: Apache-2.0 and MIT
109
109
  Comment: these files contain content from SAP and jQuery UI 1.8: Selectors.js is overall written by SAP, but contains code taken from jQuery UI (see the respective comments)
@@ -115,14 +115,14 @@ Comment: these files belong to: jQuery UI 1.10
115
115
 
116
116
  Files: src/sap.ui.core/src/jquery.sap.dom.js
117
117
  Copyright:
118
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
118
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
119
119
  2014 jQuery Foundation and other contributors
120
120
  License: Apache-2.0 and MIT
121
121
  Comment: these files contain content from SAP and jQuery UI 1.10: jquery.sap.dom.js is overall written by SAP, but contains code taken from jQuery UI Core (see the respective comment)
122
122
 
123
123
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/zIndex.js
124
124
  Copyright:
125
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
125
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
126
126
  2014 jQuery Foundation and other contributors
127
127
  License: Apache-2.0 and MIT
128
128
  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
@@ -149,7 +149,7 @@ Comment: these files belong to: jQuery Mobile
149
149
 
150
150
  Files: src/sap.ui.core/src/sap/ui/util/_FeatureDetection.js
151
151
  Copyright:
152
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
152
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
153
153
  2012 Wei-Ko Kao
154
154
  License: Apache-2.0 and MIT
155
155
  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
@@ -281,14 +281,14 @@ Comment: these files belong to: blanket.js
281
281
 
282
282
  Files: src/sap.ui.core/src/sap/base/util/JSTokenizer.js
283
283
  Copyright:
284
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
284
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
285
285
  Douglas Crockford
286
286
  License: Apache-2.0 and LicenseRef-JSONinJSPublicDomain
287
287
  Comment: these files contain content from SAP and JSON in JS: JSTokenizer.js is overall written by SAP, but contains code has been taken from the component JSON in JavaScript (https://github.com/douglascrockford/JSON-js/blob/master/json2.js) from Douglas Crockford which is licensed under Public Domain
288
288
 
289
289
  Files: src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
290
290
  Copyright:
291
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
291
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
292
292
  2010 Douglas Crockford
293
293
  License: Apache-2.0
294
294
  Comment: these files contain content from SAP and Top Down Operator Precedence: ExpressionParser.js is overall written by SAP, but contains code taken from or inspired by TDOP by Douglas Crockford (see the respective comment)
@@ -322,7 +322,7 @@ Comment: these files contain content from p-cancelable and @babel/helpers: _Canc
322
322
 
323
323
  Files: src/sap.ui.core/src/sap/ui/core/date/Persian.js
324
324
  Copyright:
325
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
325
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
326
326
  Behrang Norouzinia
327
327
  License: Apache-2.0 and MIT
328
328
  Comment: these files contain content from SAP and Jalaali JS: Persian.js is overall written by SAP, but the calculation is taken from jalaali-js
@@ -334,7 +334,7 @@ Comment: these files belong to: vkBeautify
334
334
 
335
335
  Files: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
336
336
  Copyright:
337
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
337
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
338
338
  Isaac Z. Schlueter and Contributors
339
339
  License: Apache-2.0 and ISC
340
340
  Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
@@ -370,21 +370,11 @@ Comment: these files belong to: Buttons extension for DataTables
370
370
 
371
371
  # Library: sap.ui.integration:
372
372
 
373
- Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/*.*.json src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/bundle*
373
+ Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/*
374
374
  Copyright: SAP
375
375
  License: Apache-2.0
376
376
  Comment: these files belong to: UI5 Web Components
377
377
 
378
- Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/webcomponentsjs/*
379
- Copyright: 2015 The Polymer Authors
380
- License: BSD-3-Clause
381
- Comment: these files belong to: Webcomponentsjs
382
-
383
- Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/Unicode-Data-Files-LICENSE.txt
384
- Copyright: 1991-2014 Unicode, Inc.
385
- License: Unicode-DFS-2015
386
- Comment: these files belong to: Unicode Common Locale Data Repository
387
-
388
378
  Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptivecards.js src/sap.ui.integration/src/sap/ui/integration/schemas/adaptive-card.json
389
379
  Copyright: 2017 Microsoft
390
380
  License: MIT
@@ -395,22 +385,27 @@ Copyright: 2017 Microsoft
395
385
  License: MIT
396
386
  Comment: these files belong to: Adaptive Cards Templating
397
387
 
388
+ Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptive-expressions.js
389
+ Copyright: Microsoft
390
+ License: MIT
391
+ Comment: these files belong to: Adaptive Expressions
392
+
398
393
  Files: src/sap.ui.integration/src/sap/ui/integration/thirdparty/markdown-it.js
399
394
  Copyright: 2014 Vitaly Puzrin, Alex Kocharin
400
395
  License: MIT
401
396
  Comment: these files belong to: Markdown-it
402
397
 
403
- Files: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
404
- Copyright: 2015-2017 Evgeny Poberezkin
398
+ Files: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/CfWorkerJsonSchemaValidator.js
399
+ Copyright: 2020 Jeremy Danyow
405
400
  License: MIT
406
- Comment: these files belong to: ajv
401
+ Comment: these files belong to: @cfworker/json-schema
407
402
 
408
403
 
409
404
  # Library: sap.ui.mdc:
410
405
 
411
406
  Files: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperators/BoolExprTool.js
412
407
  Copyright:
413
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
408
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
414
409
  2015 unnikked
415
410
  License: Apache-2.0 and MIT
416
411
  Comment: these files contain content from SAP and BooleanExpressionEvaluator: BoolExprTool.js is authored by SAP, but partly inspired by BooleanExpressionEvaluator
@@ -454,7 +449,7 @@ Comment: these files belong to: LESS
454
449
 
455
450
  Files: lib/jsdoc/ui5/plugin.js
456
451
  Copyright:
457
- 2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
452
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
458
453
  2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
459
454
  License: Apache-2.0
460
455
  Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
package/THIRDPARTY.txt CHANGED
@@ -197,7 +197,7 @@ License: BSD-3-Clause
197
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
199
 
200
- Component: URI.js, version: 1.19.7
200
+ Component: URI.js, version: 1.19.10
201
201
  Copyright: Rodney Rehm
202
202
  License: MIT
203
203
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
@@ -351,24 +351,11 @@ Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/D
351
351
 
352
352
  Library: sap.ui.integration:
353
353
 
354
- Component: UI5 Web Components, version: 1.0.0-rc.8
354
+ Component: UI5 Web Components, version: 1.0.1
355
355
  Copyright: SAP
356
356
  License: Apache-2.0
357
357
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
358
- Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/*.*.json
359
- src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/bundle*
360
-
361
- Component: Webcomponentsjs, version: 1.0.2
362
- Copyright: 2015 The Polymer Authors
363
- License: BSD-3-Clause
364
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
365
- Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/webcomponentsjs/*
366
-
367
- Component: Unicode Common Locale Data Repository
368
- Copyright: 1991-2014 Unicode, Inc.
369
- License: Unicode-DFS-2015
370
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
371
- Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/Unicode-Data-Files-LICENSE.txt
358
+ Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/*
372
359
 
373
360
  Component: Adaptive Cards, version: 2.9.0
374
361
  Copyright: 2017 Microsoft
@@ -377,23 +364,29 @@ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
377
364
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptivecards.js
378
365
  src/sap.ui.integration/src/sap/ui/integration/schemas/adaptive-card.json
379
366
 
380
- Component: Adaptive Cards Templating, version: 0.1.1-alpha.0
367
+ Component: Adaptive Cards Templating, version: 2.2.0
381
368
  Copyright: 2017 Microsoft
382
369
  License: MIT
383
370
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
384
371
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptivecards-templating.js
385
372
 
386
- Component: Markdown-it, version: 10.0.0
373
+ Component: Adaptive Expressions, version: 4.15.0
374
+ Copyright: Microsoft
375
+ License: MIT
376
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
377
+ Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptive-expressions.js
378
+
379
+ Component: Markdown-it, version: 12.2.0
387
380
  Copyright: 2014 Vitaly Puzrin, Alex Kocharin
388
381
  License: MIT
389
382
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
390
383
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/markdown-it.js
391
384
 
392
- Component: ajv, version: 6.12.3
393
- Copyright: 2015-2017 Evgeny Poberezkin
385
+ Component: @cfworker/json-schema, version: 1.6.8
386
+ Copyright: 2020 Jeremy Danyow
394
387
  License: MIT
395
388
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
396
- Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
389
+ Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/CfWorkerJsonSchemaValidator.js
397
390
 
398
391
 
399
392
  Library: sap.ui.mdc:
@@ -457,7 +450,7 @@ License: Apache-2.0
457
450
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
458
451
  Contained in: lib/jsdoc/ui5/plugin.js
459
452
 
460
- Component: SAP Theming Base Content, version: 11.1.34
453
+ Component: SAP Theming Base Content, version: 11.1.36-SNAPSHOT
461
454
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
462
455
  License: Apache-2.0
463
456
  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.97.1",
3
+ "version": "1.100.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.97.1",
18
- "@openui5/sap.ui.unified": "1.97.1"
17
+ "@openui5/sap.ui.core": "1.100.0",
18
+ "@openui5/sap.ui.unified": "1.100.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.97.1</version>
9
+ <version>1.100.0</version>
10
10
 
11
11
  <documentation>Table-like controls, mainly for desktop scenarios.</documentation>
12
12
 
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @extends sap.ui.table.Column
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.97.1
49
+ * @version 1.100.0
50
50
  *
51
51
  * @constructor
52
52
  * @public
@@ -23,7 +23,7 @@ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './library', "sap/
23
23
  * @extends sap.ui.table.ColumnMenu
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.97.1
26
+ * @version 1.100.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -36,7 +36,7 @@ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './library', "sap/
36
36
  metadata : {
37
37
  library : "sap.ui.table"
38
38
  },
39
- renderer: "sap.ui.unified.MenuRenderer"
39
+ renderer: MenuRenderer
40
40
  });
41
41
 
42
42
  /**
@@ -13,9 +13,7 @@ sap.ui.define([
13
13
  "./TableRenderer",
14
14
  './library',
15
15
  'sap/ui/model/analytics/ODataModelAdapter',
16
- 'sap/ui/model/SelectionModel',
17
16
  'sap/ui/model/Sorter',
18
- 'sap/ui/unified/Menu',
19
17
  'sap/ui/unified/MenuItem',
20
18
  './utils/TableUtils',
21
19
  "./plugins/BindingSelection",
@@ -31,9 +29,7 @@ sap.ui.define([
31
29
  TableRenderer,
32
30
  library,
33
31
  ODataModelAdapter,
34
- SelectionModel,
35
32
  Sorter,
36
- Menu,
37
33
  MenuItem,
38
34
  TableUtils,
39
35
  BindingSelectionPlugin,
@@ -60,7 +56,7 @@ sap.ui.define([
60
56
  * @see http://scn.sap.com/docs/DOC-44986
61
57
  *
62
58
  * @extends sap.ui.table.Table
63
- * @version 1.97.1
59
+ * @version 1.100.0
64
60
  *
65
61
  * @constructor
66
62
  * @public
@@ -168,18 +164,14 @@ sap.ui.define([
168
164
  dirty : {type : "boolean", group : "Appearance", defaultValue : null, deprecated: true}
169
165
  },
170
166
  designtime: "sap/ui/table/designtime/AnalyticalTable.designtime"
171
- }, renderer: "sap.ui.table.TableRenderer"});
167
+ }, renderer: TableRenderer});
172
168
 
173
169
  /**
174
- * This function retrieves the grand total context, in case of an analytical table
175
- * Overidden from Table.js
176
- * @overrides
170
+ * @inheritDoc
177
171
  */
178
172
  AnalyticalTable.prototype._getFixedBottomRowContexts = function() {
179
173
  var oBinding = this.getBinding();
180
- if (oBinding) {
181
- return [oBinding.getGrandTotalNode()];
182
- }
174
+ return oBinding ? [oBinding.getGrandTotalNode()] : [];
183
175
  };
184
176
 
185
177
  AnalyticalTable.prototype._getContexts = TreeTable.prototype._getContexts;
@@ -298,19 +290,11 @@ sap.ui.define([
298
290
  return oModel;
299
291
  };
300
292
 
301
- /**
302
- * handler for change events of the binding
303
- * @param {sap.ui.base.Event} oEvent change event
304
- * @private
305
- */
306
- AnalyticalTable.prototype._onBindingChange = function(oEvent) {
307
- Table.prototype._onBindingChange.apply(this, arguments);
308
- // the column menus have to be invalidated when the amount
309
- // of data changes in the Table; this happens on normal changes
310
- // of the Table as well as when filtering
311
- var sReason = typeof (oEvent) === "object" ? oEvent.getParameter("reason") : oEvent;
293
+ AnalyticalTable.prototype.updateRows = function(sReason) {
294
+ Table.prototype.updateRows.apply(this, arguments);
295
+
312
296
  if (sReason !== "sort") {
313
- this._invalidateColumnMenus();
297
+ this._invalidateColumnMenus(); // TODO: Is this needed?
314
298
  }
315
299
  };
316
300
 
@@ -323,14 +307,13 @@ sap.ui.define([
323
307
  Table.prototype._bindRows.call(this, oBindingInfo);
324
308
  };
325
309
 
326
- /**
327
- * This function will be called by either by {@link sap.ui.base.ManagedObject#bindAggregation} or {@link sap.ui.base.ManagedObject#setModel}.
328
- *
329
- * @override {@link sap.ui.table.Table#_bindAggregation}
310
+ /*
311
+ * This function will be called either by {@link sap.ui.base.ManagedObject#bindAggregation} or {@link sap.ui.base.ManagedObject#setModel}.
312
+ * If only the model has been changed, ManagedObject only calls _bindAggregation, while bindAggregation / bindRows is not called.
313
+ * @see sap.ui.base.ManagedObject#_bindAggregation
330
314
  */
331
315
  AnalyticalTable.prototype._bindAggregation = function(sName, oBindingInfo) {
332
316
  if (sName === "rows") {
333
- // If only the model has been changed, the ManagedObject only calls _bindAggregation while bindAggregation / bindRows is not called.
334
317
  this._invalidateColumnMenus(); // Metadata might change.
335
318
  this._applyODataModelAnalyticalAdapter(oBindingInfo.model);
336
319
 
@@ -20,7 +20,6 @@ sap.ui.define([
20
20
  "sap/ui/model/type/String",
21
21
  "sap/base/util/ObjectPath",
22
22
  "sap/base/util/JSTokenizer",
23
- "sap/base/util/deepClone",
24
23
  "sap/base/Log"
25
24
  ], function(
26
25
  ColumnMenu,
@@ -37,7 +36,6 @@ sap.ui.define([
37
36
  StringType,
38
37
  ObjectPath,
39
38
  JSTokenizer,
40
- deepClone,
41
39
  Log
42
40
  ) {
43
41
  "use strict";
@@ -70,7 +68,7 @@ sap.ui.define([
70
68
  * @class
71
69
  * The column allows you to define column specific properties that will be applied when rendering the table.
72
70
  * @extends sap.ui.core.Element
73
- * @version 1.97.1
71
+ * @version 1.100.0
74
72
  *
75
73
  * @constructor
76
74
  * @public
@@ -323,7 +321,14 @@ sap.ui.define([
323
321
  */
324
322
  menu : {type : "sap.ui.unified.Menu", multiple : false}
325
323
  },
326
-
324
+ associations: {
325
+ /**
326
+ * Provides a menu that is used by the column and replaces the menu aggregation when set.
327
+ * The given menu has to follow the same pattern as the <code>sap.ui.core.IColumnHeaderMenu</code> interface.
328
+ * @since 1.98.0
329
+ */
330
+ columnHeaderMenu: {type: "sap.ui.core.IColumnHeaderMenu", multiple: false, visibility: "hidden"}
331
+ },
327
332
  events : {
328
333
  /**
329
334
  * Fires before the column menu is opened.
@@ -1290,6 +1295,16 @@ sap.ui.define([
1290
1295
  return _private(this).mCellContentVisibilitySettings;
1291
1296
  };
1292
1297
 
1298
+ /**
1299
+ * Returns the <code>sap.ui.core.IColumnHeaderMenu<\code>, which is the current target of the association <code>columnHeaderMenu</code>, or null.
1300
+ *
1301
+ * @returns {sap.ui.core.IColumnHeaderMenu}
1302
+ * @private
1303
+ */
1304
+ Column.prototype.getColumnHeaderMenu = function () {
1305
+ return sap.ui.getCore().byId(this.getAssociation("columnHeaderMenu"));
1306
+ };
1307
+
1293
1308
  function validateCellContentVisibilitySettings(mSettings) {
1294
1309
  if (mSettings == null) {
1295
1310
  return;
@@ -11,12 +11,11 @@ sap.ui.define([
11
11
  'sap/ui/unified/MenuItem',
12
12
  'sap/ui/unified/MenuTextFieldItem',
13
13
  "sap/ui/unified/MenuRenderer",
14
- 'sap/ui/Device',
15
14
  './utils/TableUtils',
16
15
  "sap/base/assert",
17
16
  "sap/ui/thirdparty/jquery"
18
17
  ],
19
- function(library, Menu, MenuItem, MenuTextFieldItem, MenuRenderer, Device, TableUtils, assert, jQuery) {
18
+ function(library, Menu, MenuItem, MenuTextFieldItem, MenuRenderer, TableUtils, assert, jQuery) {
20
19
  "use strict";
21
20
 
22
21
  /**
@@ -40,7 +39,7 @@ sap.ui.define([
40
39
  * @class
41
40
  * The column menu provides all common actions that can be performed on a column.
42
41
  * @extends sap.ui.unified.Menu
43
- * @version 1.97.1
42
+ * @version 1.100.0
44
43
  *
45
44
  * @constructor
46
45
  * @public
@@ -51,7 +50,7 @@ sap.ui.define([
51
50
  metadata : {
52
51
  library : "sap.ui.table"
53
52
  },
54
- renderer: "sap.ui.unified.MenuRenderer"
53
+ renderer: MenuRenderer
55
54
  });
56
55
 
57
56
 
@@ -333,7 +332,6 @@ sap.ui.define([
333
332
 
334
333
  /**
335
334
  * Factory method for the column visibility menu item.
336
- * @param {string} sId the id of the menu item.
337
335
  * @param {sap.ui.table.Column} oColumn the associated column to the menu item.
338
336
  * @returns {sap.ui.unified.MenuItem} the created menu item.
339
337
  * @private
@@ -407,7 +405,7 @@ sap.ui.define([
407
405
 
408
406
  /**
409
407
  * sets a new filter value into the filter field
410
- * @param {String} sValue value of the filter input field to be set
408
+ * @param {string} sValue value of the filter input field to be set
411
409
  * @returns {this} this reference for chaining
412
410
  * @private
413
411
  */
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * <code>sap.ui.commons</code> library.
33
33
  * @extends sap.ui.core.Control
34
34
  * @author SAP SE
35
- * @version 1.97.1
35
+ * @version 1.100.0
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -76,7 +76,8 @@ sap.ui.define([
76
76
  allowPreventDefault: true
77
77
  }
78
78
  }
79
- }
79
+ },
80
+ renderer: Renderer
80
81
  });
81
82
 
82
83
  /*
@@ -125,7 +126,9 @@ sap.ui.define([
125
126
 
126
127
  if (oInteractiveElement) {
127
128
  oInteractiveElement.focus();
128
- TableUtils.selectElementText(oInteractiveElement);
129
+ if (oInteractiveElement instanceof window.HTMLInputElement) {
130
+ oInteractiveElement.select();
131
+ }
129
132
  return true;
130
133
  }
131
134
 
@@ -335,7 +338,9 @@ sap.ui.define([
335
338
 
336
339
  if ($InteractiveElements) {
337
340
  $InteractiveElements[0].focus();
338
- TableUtils.selectElementText($InteractiveElements[0]);
341
+ if ($InteractiveElements[0] instanceof window.HTMLInputElement) {
342
+ $InteractiveElements[0].select();
343
+ }
339
344
  return true;
340
345
  }
341
346
 
@@ -135,7 +135,7 @@ sap.ui.define([
135
135
  * @class
136
136
  * The row.
137
137
  * @extends sap.ui.core.Element
138
- * @version 1.97.1
138
+ * @version 1.100.0
139
139
  *
140
140
  * @constructor
141
141
  * @public
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * If more action items are available as the available space allows to display an overflow mechanism is provided.
36
36
  * This control must only be used in the context of the <code>sap.ui.table.Table</code> control to define row actions.
37
37
  * @extends sap.ui.core.Control
38
- * @version 1.97.1
38
+ * @version 1.100.0
39
39
  *
40
40
  * @constructor
41
41
  * @public
@@ -70,7 +70,8 @@ sap.ui.define([
70
70
  _menu: {type: "sap.ui.unified.Menu", multiple: false, visibility: "hidden"}
71
71
  },
72
72
  events: {}
73
- }
73
+ },
74
+ renderer: RowActionRenderer
74
75
  });
75
76
 
76
77
  RowAction.prototype.init = function() {
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.core.Element
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.97.1
27
+ * @version 1.100.0
28
28
  * @since 1.45
29
29
  *
30
30
  * @constructor
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  //Provides default renderer for control sap.ui.table.RowAction
8
- sap.ui.define(['sap/ui/table/Row'],
9
- function(Row) {
8
+ sap.ui.define([],
9
+ function() {
10
10
  "use strict";
11
11
 
12
12
  /**
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/table/Row'],
21
21
  * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
22
22
  *
23
23
  * @param {sap.ui.core.RenderManager} rm the RenderManager that can be used for writing to the Render-Output-Buffer
24
- * @param {sap.ui.core.Control} oTable an object representation of the control that should be rendered
24
+ * @param {sap.ui.table.RowAction} oAction an object representation of the control that should be rendered
25
25
  */
26
26
  RowActionRenderer.render = function(rm, oAction) {
27
27
  rm.openStart("div", oAction);
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * The <code>RowSettings</code> control allows you to configure a row.
25
25
  * You can only use this control in the context of the <code>sap.ui.table.Table</code> control to define row settings.
26
26
  * @extends sap.ui.core.Element
27
- * @version 1.97.1
27
+ * @version 1.100.0
28
28
  *
29
29
  * @constructor
30
30
  * @public