@openui5/sap.ui.table 1.108.2 → 1.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +21 -1
- package/.reuse/dep5 +16 -16
- package/THIRDPARTY.txt +2 -2
- package/package.json +3 -3
- package/src/sap/ui/table/.library +2 -2
- package/src/sap/ui/table/AnalyticalColumn.js +11 -12
- package/src/sap/ui/table/AnalyticalColumnMenu.js +4 -5
- package/src/sap/ui/table/AnalyticalColumnMenuRenderer.js +1 -1
- package/src/sap/ui/table/AnalyticalTable.js +14 -14
- package/src/sap/ui/table/AnalyticalTableRenderer.js +1 -1
- package/src/sap/ui/table/Column.js +44 -46
- package/src/sap/ui/table/ColumnMenu.js +5 -17
- package/src/sap/ui/table/ColumnMenuRenderer.js +2 -2
- package/src/sap/ui/table/CreationRow.js +3 -3
- package/src/sap/ui/table/CreationRowRenderer.js +1 -1
- package/src/sap/ui/table/Row.js +18 -18
- package/src/sap/ui/table/RowAction.js +2 -2
- package/src/sap/ui/table/RowActionItem.js +13 -11
- package/src/sap/ui/table/RowActionRenderer.js +1 -1
- package/src/sap/ui/table/RowSettings.js +6 -6
- package/src/sap/ui/table/Table.js +162 -168
- package/src/sap/ui/table/TablePersoController.js +4 -6
- package/src/sap/ui/table/TableRenderer.js +12 -14
- package/src/sap/ui/table/TreeTable.js +16 -18
- package/src/sap/ui/table/TreeTableRenderer.js +1 -1
- package/src/sap/ui/table/designtime/AnalyticalTable.designtime.js +8 -8
- package/src/sap/ui/table/designtime/Table.designtime.js +10 -10
- package/src/sap/ui/table/designtime/library.designtime.js +1 -1
- package/src/sap/ui/table/extensions/Accessibility.js +4 -4
- package/src/sap/ui/table/extensions/AccessibilityRender.js +2 -2
- package/src/sap/ui/table/extensions/DragAndDrop.js +2 -2
- package/src/sap/ui/table/extensions/ExtensionBase.js +2 -2
- package/src/sap/ui/table/extensions/Keyboard.js +3 -3
- package/src/sap/ui/table/extensions/KeyboardDelegate.js +7 -4
- package/src/sap/ui/table/extensions/Pointer.js +24 -19
- package/src/sap/ui/table/extensions/Scrolling.js +2 -2
- package/src/sap/ui/table/extensions/ScrollingIOS.js +4 -4
- package/src/sap/ui/table/extensions/Synchronization.js +2 -2
- package/src/sap/ui/table/library.js +39 -43
- package/src/sap/ui/table/library.support.js +1 -1
- package/src/sap/ui/table/menus/ColumnHeaderMenuAdapter.js +2 -3
- package/src/sap/ui/table/menus/MobileColumnHeaderMenuAdapter.js +7 -5
- package/src/sap/ui/table/messagebundle.properties +2 -5
- package/src/sap/ui/table/messagebundle_ar.properties +1 -3
- package/src/sap/ui/table/messagebundle_bg.properties +1 -3
- package/src/sap/ui/table/messagebundle_ca.properties +1 -3
- package/src/sap/ui/table/messagebundle_cs.properties +1 -3
- package/src/sap/ui/table/messagebundle_cy.properties +1 -3
- package/src/sap/ui/table/messagebundle_da.properties +1 -3
- package/src/sap/ui/table/messagebundle_de.properties +1 -3
- package/src/sap/ui/table/messagebundle_el.properties +1 -3
- package/src/sap/ui/table/messagebundle_en.properties +1 -3
- package/src/sap/ui/table/messagebundle_en_GB.properties +1 -3
- package/src/sap/ui/table/messagebundle_en_US_sappsd.properties +1 -3
- package/src/sap/ui/table/messagebundle_en_US_saprigi.properties +1 -3
- package/src/sap/ui/table/messagebundle_en_US_saptrc.properties +1 -3
- package/src/sap/ui/table/messagebundle_es.properties +1 -3
- package/src/sap/ui/table/messagebundle_es_MX.properties +1 -3
- package/src/sap/ui/table/messagebundle_et.properties +1 -3
- package/src/sap/ui/table/messagebundle_fi.properties +1 -3
- package/src/sap/ui/table/messagebundle_fr.properties +1 -3
- package/src/sap/ui/table/messagebundle_fr_CA.properties +1 -3
- package/src/sap/ui/table/messagebundle_hi.properties +1 -3
- package/src/sap/ui/table/messagebundle_hr.properties +1 -3
- package/src/sap/ui/table/messagebundle_hu.properties +1 -3
- package/src/sap/ui/table/messagebundle_id.properties +1 -3
- package/src/sap/ui/table/messagebundle_it.properties +1 -3
- package/src/sap/ui/table/messagebundle_iw.properties +1 -3
- package/src/sap/ui/table/messagebundle_ja.properties +1 -3
- package/src/sap/ui/table/messagebundle_kk.properties +2 -4
- package/src/sap/ui/table/messagebundle_ko.properties +1 -3
- package/src/sap/ui/table/messagebundle_lt.properties +1 -3
- package/src/sap/ui/table/messagebundle_lv.properties +1 -3
- package/src/sap/ui/table/messagebundle_ms.properties +1 -3
- package/src/sap/ui/table/messagebundle_nl.properties +1 -3
- package/src/sap/ui/table/messagebundle_no.properties +1 -3
- package/src/sap/ui/table/messagebundle_pl.properties +1 -3
- package/src/sap/ui/table/messagebundle_pt.properties +1 -3
- package/src/sap/ui/table/messagebundle_pt_PT.properties +1 -3
- package/src/sap/ui/table/messagebundle_ro.properties +1 -3
- package/src/sap/ui/table/messagebundle_ru.properties +1 -3
- package/src/sap/ui/table/messagebundle_sh.properties +1 -3
- package/src/sap/ui/table/messagebundle_sk.properties +1 -3
- package/src/sap/ui/table/messagebundle_sl.properties +1 -3
- package/src/sap/ui/table/messagebundle_sv.properties +1 -3
- package/src/sap/ui/table/messagebundle_th.properties +1 -3
- package/src/sap/ui/table/messagebundle_tr.properties +1 -3
- package/src/sap/ui/table/messagebundle_uk.properties +1 -3
- package/src/sap/ui/table/messagebundle_vi.properties +1 -3
- package/src/sap/ui/table/messagebundle_zh_CN.properties +1 -3
- package/src/sap/ui/table/messagebundle_zh_TW.properties +1 -3
- package/src/sap/ui/table/plugins/BindingSelection.js +2 -2
- package/src/sap/ui/table/plugins/MultiSelectionPlugin.js +15 -15
- package/src/sap/ui/table/plugins/PluginBase.js +2 -2
- package/src/sap/ui/table/plugins/SelectionModelSelection.js +2 -2
- package/src/sap/ui/table/plugins/SelectionPlugin.js +2 -2
- package/src/sap/ui/table/plugins/V4Aggregation.js +2 -2
- package/src/sap/ui/table/rowmodes/AutoRowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/FixedRowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/InteractiveRowMode.js +3 -3
- package/src/sap/ui/table/rowmodes/RowMode.js +2 -2
- package/src/sap/ui/table/rowmodes/VariableRowMode.js +2 -2
- package/src/sap/ui/table/rules/Accessibility.support.js +1 -1
- package/src/sap/ui/table/rules/Binding.support.js +1 -1
- package/src/sap/ui/table/rules/ColumnTemplate.support.js +1 -1
- package/src/sap/ui/table/rules/Plugins.support.js +1 -1
- package/src/sap/ui/table/rules/Rows.support.js +1 -1
- package/src/sap/ui/table/rules/TableHelper.support.js +1 -1
- package/src/sap/ui/table/themes/base/Cell.less +31 -0
- package/src/sap/ui/table/themes/base/Row.less +5 -0
- package/src/sap/ui/table/themes/base/library.source.less +1 -1
- package/src/sap/ui/table/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/table/utils/TableUtils.js +2 -2
- package/src/sap/ui/table/utils/_BindingUtils.js +2 -2
- package/src/sap/ui/table/utils/_ColumnUtils.js +3 -3
- package/src/sap/ui/table/utils/_GroupingUtils.js +3 -3
- package/src/sap/ui/table/utils/_HookUtils.js +2 -2
- package/src/sap/ui/table/utils/_MenuUtils.js +2 -2
package/.eslintrc.json
CHANGED
|
@@ -11,7 +11,27 @@
|
|
|
11
11
|
],
|
|
12
12
|
"globals": {
|
|
13
13
|
"jQuery": "off"
|
|
14
|
+
},
|
|
15
|
+
"rules": {
|
|
16
|
+
"space-before-function-paren": ["error", "never"],
|
|
17
|
+
"space-before-blocks": "error",
|
|
18
|
+
"space-in-parens": "error",
|
|
19
|
+
"block-spacing": "error",
|
|
20
|
+
"key-spacing": "error",
|
|
21
|
+
"comma-spacing": "error",
|
|
22
|
+
"comma-style": "error",
|
|
23
|
+
"eol-last": ["error", "never"],
|
|
24
|
+
//"padded-blocks": ["error", "never"],
|
|
25
|
+
"array-bracket-spacing": "error",
|
|
26
|
+
"no-multi-spaces": "error",
|
|
27
|
+
"no-multiple-empty-lines": ["error", {"max": 1}],
|
|
28
|
+
"no-whitespace-before-property": "error",
|
|
29
|
+
"object-curly-newline": ["error", {"consistent": true}],
|
|
30
|
+
"object-curly-spacing": "error",
|
|
31
|
+
"max-depth": ["warn", 4],
|
|
32
|
+
"max-len": ["warn", 150],
|
|
33
|
+
"complexity": ["warn", { "max": 12 }]
|
|
14
34
|
}
|
|
15
35
|
}
|
|
16
36
|
]
|
|
17
|
-
}
|
|
37
|
+
}
|
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-
|
|
31
|
+
Copyright: 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
32
32
|
License: Apache-2.0
|
|
33
33
|
|
|
34
34
|
|
|
@@ -68,7 +68,7 @@ Comment: these files belong to: jQuery UI
|
|
|
68
68
|
|
|
69
69
|
Files: src/sap.ui.commons/src/sap/ui/commons/Carousel.js
|
|
70
70
|
Copyright:
|
|
71
|
-
2009-
|
|
71
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
72
72
|
Spencer Tipping
|
|
73
73
|
License: Apache-2.0 and MIT
|
|
74
74
|
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
|
|
@@ -83,35 +83,35 @@ Comment: these files belong to: jQuery 3
|
|
|
83
83
|
|
|
84
84
|
Files: src/sap.ui.core/src/sap/base/util/isPlainObject.js
|
|
85
85
|
Copyright:
|
|
86
|
-
2009-
|
|
86
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
87
87
|
OpenJS Foundation and other contributors
|
|
88
88
|
License: Apache-2.0 and MIT
|
|
89
89
|
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
|
|
90
90
|
|
|
91
91
|
Files: src/sap.ui.core/src/sap/base/util/_merge.js
|
|
92
92
|
Copyright:
|
|
93
|
-
2009-
|
|
93
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
94
94
|
OpenJS Foundation and other contributors
|
|
95
95
|
License: Apache-2.0 and MIT
|
|
96
96
|
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
|
|
97
97
|
|
|
98
98
|
Files: src/sap.ui.core/src/jquery.sap.script.js
|
|
99
99
|
Copyright:
|
|
100
|
-
2009-
|
|
100
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
101
101
|
OpenJS Foundation and other contributors
|
|
102
102
|
License: Apache-2.0 and MIT
|
|
103
103
|
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
|
|
104
104
|
|
|
105
105
|
Files: src/sap.ui.core/src/sap/ui/Device.js
|
|
106
106
|
Copyright:
|
|
107
|
-
2009-
|
|
107
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
108
108
|
2011, John Resig
|
|
109
109
|
License: Apache-2.0 and MIT
|
|
110
110
|
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)
|
|
111
111
|
|
|
112
112
|
Files: src/sap.ui.core/src/sap/ui/dom/jquery/Selectors.js
|
|
113
113
|
Copyright:
|
|
114
|
-
2009-
|
|
114
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
115
115
|
2014 jQuery Foundation and other contributors
|
|
116
116
|
License: Apache-2.0 and MIT
|
|
117
117
|
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)
|
|
@@ -123,14 +123,14 @@ Comment: these files belong to: jQuery UI 1.10
|
|
|
123
123
|
|
|
124
124
|
Files: src/sap.ui.core/src/jquery.sap.dom.js
|
|
125
125
|
Copyright:
|
|
126
|
-
2009-
|
|
126
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
127
127
|
2014 jQuery Foundation and other contributors
|
|
128
128
|
License: Apache-2.0 and MIT
|
|
129
129
|
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)
|
|
130
130
|
|
|
131
131
|
Files: src/sap.ui.core/src/sap/ui/dom/jquery/zIndex.js
|
|
132
132
|
Copyright:
|
|
133
|
-
2009-
|
|
133
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
134
134
|
2014 jQuery Foundation and other contributors
|
|
135
135
|
License: Apache-2.0 and MIT
|
|
136
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
|
|
@@ -162,7 +162,7 @@ Comment: these files belong to: jQuery Mobile
|
|
|
162
162
|
|
|
163
163
|
Files: src/sap.ui.core/src/sap/ui/util/_FeatureDetection.js
|
|
164
164
|
Copyright:
|
|
165
|
-
2009-
|
|
165
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
166
166
|
2012 Wei-Ko Kao
|
|
167
167
|
License: Apache-2.0 and MIT
|
|
168
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
|
|
@@ -299,14 +299,14 @@ Comment: these files belong to: blanket.js
|
|
|
299
299
|
|
|
300
300
|
Files: src/sap.ui.core/src/sap/base/util/JSTokenizer.js
|
|
301
301
|
Copyright:
|
|
302
|
-
2009-
|
|
302
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
303
303
|
Douglas Crockford
|
|
304
304
|
License: Apache-2.0 and LicenseRef-JSONinJSPublicDomain
|
|
305
305
|
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
|
|
306
306
|
|
|
307
307
|
Files: src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
|
|
308
308
|
Copyright:
|
|
309
|
-
2009-
|
|
309
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
310
310
|
2010 Douglas Crockford
|
|
311
311
|
License: Apache-2.0
|
|
312
312
|
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)
|
|
@@ -340,7 +340,7 @@ Comment: these files contain content from p-cancelable and @babel/helpers: _Canc
|
|
|
340
340
|
|
|
341
341
|
Files: src/sap.ui.core/src/sap/ui/core/date/Persian.js
|
|
342
342
|
Copyright:
|
|
343
|
-
2009-
|
|
343
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
344
344
|
Behrang Norouzinia
|
|
345
345
|
License: Apache-2.0 and MIT
|
|
346
346
|
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
|
|
@@ -352,14 +352,14 @@ Comment: these files belong to: vkBeautify
|
|
|
352
352
|
|
|
353
353
|
Files: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
|
|
354
354
|
Copyright:
|
|
355
|
-
2009-
|
|
355
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
356
356
|
Isaac Z. Schlueter and Contributors
|
|
357
357
|
License: Apache-2.0 and ISC
|
|
358
358
|
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.
|
|
359
359
|
|
|
360
360
|
Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
|
|
361
361
|
Copyright:
|
|
362
|
-
2009-
|
|
362
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
363
363
|
Arthur David Olson, Paul Eggert and other contributors
|
|
364
364
|
License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
|
|
365
365
|
Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
|
|
@@ -469,7 +469,7 @@ Comment: these files belong to: LESS
|
|
|
469
469
|
|
|
470
470
|
Files: lib/jsdoc/ui5/plugin.js
|
|
471
471
|
Copyright:
|
|
472
|
-
2009-
|
|
472
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
473
473
|
2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
474
474
|
License: Apache-2.0
|
|
475
475
|
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
|
@@ -185,7 +185,7 @@ License: Apache-2.0
|
|
|
185
185
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
186
186
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
|
|
187
187
|
|
|
188
|
-
Component: Unicode Common Locale Data Repository, version:
|
|
188
|
+
Component: Unicode Common Locale Data Repository, version: 41
|
|
189
189
|
Copyright: 1991-2014 Unicode, Inc.
|
|
190
190
|
License: Unicode-DFS-2015
|
|
191
191
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
|
|
@@ -478,7 +478,7 @@ License: Apache-2.0
|
|
|
478
478
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
479
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
480
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
481
|
+
Component: SAP Theming Base Content, version: 11.1.48
|
|
482
482
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
483
|
License: Apache-2.0
|
|
484
484
|
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.
|
|
3
|
+
"version": "1.110.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.
|
|
18
|
-
"@openui5/sap.ui.unified": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.110.0",
|
|
18
|
+
"@openui5/sap.ui.unified": "1.110.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<name>sap.ui.table</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>OpenUI5
|
|
7
|
-
* (c) Copyright 2009-
|
|
7
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.110.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Table-like controls, mainly for desktop scenarios.</documentation>
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -48,42 +48,41 @@ sap.ui.define([
|
|
|
48
48
|
* @extends sap.ui.table.Column
|
|
49
49
|
*
|
|
50
50
|
* @author SAP SE
|
|
51
|
-
* @version 1.
|
|
51
|
+
* @version 1.110.0
|
|
52
52
|
*
|
|
53
53
|
* @constructor
|
|
54
54
|
* @public
|
|
55
|
-
* @experimental Since version 1.21.
|
|
56
55
|
* @alias sap.ui.table.AnalyticalColumn
|
|
57
56
|
*/
|
|
58
|
-
var AnalyticalColumn = Column.extend("sap.ui.table.AnalyticalColumn", /** @lends sap.ui.table.AnalyticalColumn.prototype */ {
|
|
57
|
+
var AnalyticalColumn = Column.extend("sap.ui.table.AnalyticalColumn", /** @lends sap.ui.table.AnalyticalColumn.prototype */ {metadata: {
|
|
59
58
|
|
|
60
|
-
library
|
|
61
|
-
properties
|
|
59
|
+
library: "sap.ui.table",
|
|
60
|
+
properties: {
|
|
62
61
|
|
|
63
62
|
/**
|
|
64
63
|
* Defines the primary model property which is used inside the Column. In case of the analytical extension this means the property which is grouped by for dimensions or the property which is summed for measures.
|
|
65
64
|
*/
|
|
66
|
-
leadingProperty
|
|
65
|
+
leadingProperty: {type: "string", group: "Misc", defaultValue: null},
|
|
67
66
|
|
|
68
67
|
/**
|
|
69
68
|
* If defined a sum for this column is calculated
|
|
70
69
|
*/
|
|
71
|
-
summed
|
|
70
|
+
summed: {type: "boolean", group: "Misc", defaultValue: false},
|
|
72
71
|
|
|
73
72
|
/**
|
|
74
73
|
* Specifies that the dimension referred to by the column shall be included in the granularity of the data result. It allows a finer distinction between a visible/grouped/(included)inResult column.
|
|
75
74
|
*/
|
|
76
|
-
inResult
|
|
75
|
+
inResult: {type: "boolean", group: "Misc", defaultValue: false},
|
|
77
76
|
|
|
78
77
|
/**
|
|
79
78
|
* Specifies whether the column is displayed within the table even if it is grouped or not. A grouped column has the same value for every rows within the group.
|
|
80
79
|
*/
|
|
81
|
-
showIfGrouped
|
|
80
|
+
showIfGrouped: {type: "boolean", group: "Appearance", defaultValue: false},
|
|
82
81
|
|
|
83
82
|
/**
|
|
84
83
|
* If the column is grouped, this formatter is used to format the value in the group header
|
|
85
84
|
*/
|
|
86
|
-
groupHeaderFormatter
|
|
85
|
+
groupHeaderFormatter: {type: "function", group: "Behavior", defaultValue: null}
|
|
87
86
|
}
|
|
88
87
|
}});
|
|
89
88
|
|
|
@@ -320,7 +319,7 @@ sap.ui.define([
|
|
|
320
319
|
var oTable = this.getParent();
|
|
321
320
|
var oBinding = oTable.getBinding();
|
|
322
321
|
var oResultSet = oBinding && oBinding.getAnalyticalQueryResult();
|
|
323
|
-
return
|
|
322
|
+
return (oTable && oResultSet && oResultSet.findMeasureByPropertyName(this.getLeadingProperty())); // totals menu entry
|
|
324
323
|
}.bind(this);
|
|
325
324
|
|
|
326
325
|
return Column.prototype._menuHasItems.apply(this) || fnMenuHasItems();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './utils/TableUtil
|
|
|
20
20
|
* @extends sap.ui.table.ColumnMenu
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.110.0
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @public
|
|
@@ -29,8 +29,8 @@ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './utils/TableUtil
|
|
|
29
29
|
* @alias sap.ui.table.AnalyticalColumnMenu
|
|
30
30
|
*/
|
|
31
31
|
var AnalyticalColumnMenu = ColumnMenu.extend("sap.ui.table.AnalyticalColumnMenu", /** @lends sap.ui.table.AnalyticalColumnMenu.prototype */ {
|
|
32
|
-
metadata
|
|
33
|
-
library
|
|
32
|
+
metadata: {
|
|
33
|
+
library: "sap.ui.table"
|
|
34
34
|
},
|
|
35
35
|
renderer: MenuRenderer
|
|
36
36
|
});
|
|
@@ -109,7 +109,6 @@ sap.ui.define(['./ColumnMenu', "sap/ui/unified/MenuRenderer", './utils/TableUtil
|
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
|
|
113
112
|
AnalyticalColumnMenu.prototype.open = function() {
|
|
114
113
|
ColumnMenu.prototype.open.apply(this, arguments);
|
|
115
114
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -55,10 +55,10 @@ sap.ui.define([
|
|
|
55
55
|
* @class
|
|
56
56
|
* Table which handles analytical OData backends. The AnalyticalTable only works with an AnalyticalBinding and
|
|
57
57
|
* correctly annotated OData services. Please check on the SAP Annotations for OData Version 2.0 documentation for further details.
|
|
58
|
-
* @see
|
|
58
|
+
* @see https://github.com/SAP/odata-vocabularies/blob/main/docs/v2-annotations.md
|
|
59
59
|
*
|
|
60
60
|
* @extends sap.ui.table.Table
|
|
61
|
-
* @version 1.
|
|
61
|
+
* @version 1.110.0
|
|
62
62
|
*
|
|
63
63
|
* @constructor
|
|
64
64
|
* @public
|
|
@@ -66,10 +66,10 @@ sap.ui.define([
|
|
|
66
66
|
* @see {@link topic:08197fa68e4f479cbe30f639cc1cd22c sap.ui.table}
|
|
67
67
|
* @see {@link fiori:/analytical-table-alv/ Analytical Table}
|
|
68
68
|
*/
|
|
69
|
-
var AnalyticalTable = Table.extend("sap.ui.table.AnalyticalTable", /** @lends sap.ui.table.AnalyticalTable.prototype */ {
|
|
69
|
+
var AnalyticalTable = Table.extend("sap.ui.table.AnalyticalTable", /** @lends sap.ui.table.AnalyticalTable.prototype */ {metadata: {
|
|
70
70
|
|
|
71
|
-
library
|
|
72
|
-
properties
|
|
71
|
+
library: "sap.ui.table",
|
|
72
|
+
properties: {
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Specifies if the total values should be displayed in the group headers or on bottom of the row. Does not affect the total sum.
|
|
@@ -89,7 +89,7 @@ sap.ui.define([
|
|
|
89
89
|
*
|
|
90
90
|
* @deprecated As of version 1.44, replaced by the <code>sumOnTop</code> binding parameter
|
|
91
91
|
*/
|
|
92
|
-
sumOnTop
|
|
92
|
+
sumOnTop: {type: "boolean", group: "Appearance", defaultValue: false, deprecated: true},
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Number of levels, which should be opened initially (on first load of data).
|
|
@@ -109,7 +109,7 @@ sap.ui.define([
|
|
|
109
109
|
*
|
|
110
110
|
* @deprecated As of version 1.44, replaced by the <code>numberOfExpandedLevels</code> binding parameter
|
|
111
111
|
*/
|
|
112
|
-
numberOfExpandedLevels
|
|
112
|
+
numberOfExpandedLevels: {type: "int", group: "Misc", defaultValue: 0, deprecated: true},
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* The kind of auto expansion algorithm, e.g. optimized filter conditions, per level requests, ...
|
|
@@ -136,7 +136,7 @@ sap.ui.define([
|
|
|
136
136
|
* Functions which is used to sort the column visibility menu entries e.g.: function(ColumnA, ColumnB) { return 0 = equals, <0 lower, >0
|
|
137
137
|
* greater }; Other values than functions will be ignored.
|
|
138
138
|
*/
|
|
139
|
-
columnVisibilityMenuSorter
|
|
139
|
+
columnVisibilityMenuSorter: {type: "any", group: "Appearance", defaultValue: null},
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* Setting collapseRecursive to true means, that when collapsing a node all subsequent child nodes will also be collapsed.
|
|
@@ -156,13 +156,13 @@ sap.ui.define([
|
|
|
156
156
|
*
|
|
157
157
|
* @deprecated As of version 1.76, replaced by the <code>collapseRecursive</code> binding parameter
|
|
158
158
|
*/
|
|
159
|
-
collapseRecursive
|
|
159
|
+
collapseRecursive: {type: "boolean", defaultValue: true, deprecated: true},
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* If dirty the content of the Table will be overlayed.
|
|
163
163
|
* @deprecated As of version 1.21.2, replaced by {@link sap.ui.table.Table#setShowOverlay}
|
|
164
164
|
*/
|
|
165
|
-
dirty
|
|
165
|
+
dirty: {type: "boolean", group: "Appearance", defaultValue: null, deprecated: true}
|
|
166
166
|
},
|
|
167
167
|
designtime: "sap/ui/table/designtime/AnalyticalTable.designtime"
|
|
168
168
|
}, renderer: TableRenderer});
|
|
@@ -521,7 +521,7 @@ sap.ui.define([
|
|
|
521
521
|
var iIndex = that._iGroupedLevel - 1;
|
|
522
522
|
|
|
523
523
|
if (that._aGroupedColumns[iIndex]) {
|
|
524
|
-
var oGroupedColumn = that.getColumns().filter(function(oColumn){
|
|
524
|
+
var oGroupedColumn = that.getColumns().filter(function(oColumn) {
|
|
525
525
|
return that._aGroupedColumns[iIndex] === oColumn.getId();
|
|
526
526
|
})[0];
|
|
527
527
|
|
|
@@ -549,7 +549,7 @@ sap.ui.define([
|
|
|
549
549
|
bShowIfGrouped = oColumn.getShowIfGrouped();
|
|
550
550
|
oColumn.setShowIfGrouped(!bShowIfGrouped);
|
|
551
551
|
|
|
552
|
-
that.fireGroup({column: oColumn, groupedColumns: oColumn.getParent()._aGroupedColumns, type:(
|
|
552
|
+
that.fireGroup({column: oColumn, groupedColumns: oColumn.getParent()._aGroupedColumns, type: (!bShowIfGrouped ? GroupEventType.showGroupedColumn : GroupEventType.hideGroupedColumn)});
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
});
|
|
@@ -839,7 +839,7 @@ sap.ui.define([
|
|
|
839
839
|
|
|
840
840
|
AnalyticalTable.prototype._getColumn = function(vColumn) {
|
|
841
841
|
if (typeof vColumn === "string") {
|
|
842
|
-
var oColumn =
|
|
842
|
+
var oColumn = new AnalyticalColumn({
|
|
843
843
|
leadingProperty: vColumn,
|
|
844
844
|
template: vColumn,
|
|
845
845
|
managed: true
|