@sapui5/sap.zen.crosstab 1.107.0 → 1.109.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/package.json +1 -1
- package/src/sap/zen/crosstab/.library +1 -1
- package/src/sap/zen/crosstab/BaseArea.js +32 -36
- package/src/sap/zen/crosstab/CrosstabRenderer.js +102 -145
- package/src/sap/zen/crosstab/DataCell.js +61 -61
- package/src/sap/zen/crosstab/DataCellRenderer.js +24 -30
- package/src/sap/zen/crosstab/HeaderCell.js +171 -167
- package/src/sap/zen/crosstab/HeaderCellRenderer.js +115 -135
- package/src/sap/zen/crosstab/library.js +1 -1
- package/src/sap/zen/crosstab/themes/base/Chart.less +4 -0
- package/src/sap/zen/crosstab/utils/Utils.js +28 -29
|
@@ -8,12 +8,13 @@ sap.ui.define(
|
|
|
8
8
|
"sap/ui/core/Control",
|
|
9
9
|
"sap/zen/crosstab/IHeaderCell",
|
|
10
10
|
"sap/zen/crosstab/CellStyleHandler",
|
|
11
|
+
"sap/zen/crosstab/HeaderCellRenderer",
|
|
11
12
|
"sap/zen/crosstab/rendering/RenderingConstants",
|
|
12
13
|
"sap/zen/crosstab/utils/Utils",
|
|
13
14
|
"sap/zen/crosstab/library"
|
|
14
15
|
],
|
|
15
16
|
function(
|
|
16
|
-
jQuery, Control, IHeaderCell, CellStyleHandler,
|
|
17
|
+
jQuery, Control, IHeaderCell, CellStyleHandler, HeaderCellRenderer,
|
|
17
18
|
RenderingConstants
|
|
18
19
|
){
|
|
19
20
|
"use strict";
|
|
@@ -32,138 +33,140 @@ sap.ui.define(
|
|
|
32
33
|
* @constructor
|
|
33
34
|
* @public
|
|
34
35
|
* @deprecated since 1.89.0
|
|
35
|
-
* @
|
|
36
|
-
|
|
36
|
+
* @alias sap.zen.crosstab.HeaderCell
|
|
37
37
|
*/
|
|
38
|
-
Control.extend("sap.zen.crosstab.HeaderCell", /** @lends sap.zen.crosstab.HeaderCell.prototype */ {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
38
|
+
var HeaderCell = Control.extend("sap.zen.crosstab.HeaderCell", /** @lends sap.zen.crosstab.HeaderCell.prototype */ {
|
|
39
|
+
metadata : {
|
|
40
|
+
|
|
41
|
+
library : "sap.zen.crosstab",
|
|
42
|
+
properties : {
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Rowspan of the cell
|
|
46
|
+
*/
|
|
47
|
+
rowSpan : {type : "int", group : "Misc", defaultValue : null},
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Colspan of the cell
|
|
51
|
+
*/
|
|
52
|
+
colSpan : {type : "int", group : "Misc", defaultValue : null},
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Text of the cell
|
|
56
|
+
*/
|
|
57
|
+
text : {type : "string", group : "Misc", defaultValue : null},
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* helper to format the cell
|
|
61
|
+
*/
|
|
62
|
+
formatter : {type : "object", group : "Misc", defaultValue : null},
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* whether to merge the cell if the keys are equal
|
|
66
|
+
*/
|
|
67
|
+
mergeKey : {type : "string", group : "Misc", defaultValue : null},
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* sorting
|
|
71
|
+
*/
|
|
72
|
+
sort : {type : "string", group : "Misc", defaultValue : null},
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* sort action
|
|
76
|
+
*/
|
|
77
|
+
sortAction : {type : "string", group : "Misc", defaultValue : null},
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* area of the cell
|
|
81
|
+
*/
|
|
82
|
+
area : {type : "object", group : "Misc", defaultValue : null},
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* the effective col span
|
|
86
|
+
*/
|
|
87
|
+
effectiveColSpan : {type : "int", group : "Misc", defaultValue : null},
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* the effective row span
|
|
91
|
+
*/
|
|
92
|
+
effectiveRowSpan : {type : "int", group : "Misc", defaultValue : null},
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* the row of the cell in the crosstab
|
|
96
|
+
*/
|
|
97
|
+
row : {type : "int", group : "Misc", defaultValue : null},
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* the column of the cell in the crosstab
|
|
101
|
+
*/
|
|
102
|
+
col : {type : "int", group : "Misc", defaultValue : null},
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* the level of the cell
|
|
106
|
+
*/
|
|
107
|
+
level : {type : "int", group : "Misc", defaultValue : null},
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* the drillstate of the cell
|
|
111
|
+
*/
|
|
112
|
+
drillState : {type : "string", group : "Misc", defaultValue : null},
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* the hierarchy action of the cell
|
|
116
|
+
*/
|
|
117
|
+
hierarchyAction : {type : "string", group : "Misc", defaultValue : null},
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* the hierarchy tooltip
|
|
121
|
+
*/
|
|
122
|
+
hierarchyTooltip : {type : "string", group : "Misc", defaultValue : null},
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* the IE8 row span
|
|
126
|
+
* @deprecated since 1.89.0
|
|
127
|
+
*/
|
|
128
|
+
htmlIE8RowSpan : {type : "int", group : "Misc", defaultValue : 1},
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* the text sort index
|
|
132
|
+
*/
|
|
133
|
+
sortTextIndex : {type : "int", group : "Misc", defaultValue : null},
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* the row of the tabe
|
|
137
|
+
*/
|
|
138
|
+
tableRow : {type : "int", group : "Misc", defaultValue : null},
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* the column of the table
|
|
142
|
+
*/
|
|
143
|
+
tableCol : {type : "int", group : "Misc", defaultValue : null},
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* the alignment of the cell
|
|
147
|
+
*/
|
|
148
|
+
alignment : {type : "string", group : "Misc", defaultValue : null},
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* the id of the associated member
|
|
152
|
+
*/
|
|
153
|
+
memberId : {type : "string", group : "Misc", defaultValue : null},
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* the id of the parent of the associated member
|
|
157
|
+
*/
|
|
158
|
+
parentMemberId : {type : "string", group : "Misc", defaultValue : null},
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* the node alignment
|
|
162
|
+
*/
|
|
163
|
+
nodeAlignment : {type : "string", group : "Misc", defaultValue : null}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
renderer: HeaderCellRenderer
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
HeaderCell.prototype.init = function () {
|
|
167
170
|
this.aStyles = [];
|
|
168
171
|
this.bLoading = false;
|
|
169
172
|
this.bSelectable = false;
|
|
@@ -179,27 +182,27 @@ sap.ui.define(
|
|
|
179
182
|
this.bIsRevertDrop = false;
|
|
180
183
|
};
|
|
181
184
|
|
|
182
|
-
|
|
185
|
+
HeaderCell.prototype.getCellType = function() {
|
|
183
186
|
return RenderingConstants.TYPE_HEADER_CELL;
|
|
184
187
|
};
|
|
185
188
|
|
|
186
|
-
|
|
189
|
+
HeaderCell.prototype.isHeaderCell = function() {
|
|
187
190
|
return true;
|
|
188
191
|
};
|
|
189
192
|
|
|
190
|
-
|
|
193
|
+
HeaderCell.prototype.getCssClassNames = function (bIsIE8, bIsRtl, bIsMsIE) {
|
|
191
194
|
return CellStyleHandler.getCssClasses(this.aStyles, bIsIE8, bIsRtl, bIsMsIE);
|
|
192
195
|
};
|
|
193
196
|
|
|
194
|
-
|
|
197
|
+
HeaderCell.prototype.getStyleIdList = function () {
|
|
195
198
|
return this.aStyles;
|
|
196
199
|
};
|
|
197
200
|
|
|
198
|
-
|
|
201
|
+
HeaderCell.prototype.setStyleIdList = function (aNewStyles) {
|
|
199
202
|
this.aStyles = aNewStyles;
|
|
200
203
|
};
|
|
201
204
|
|
|
202
|
-
|
|
205
|
+
HeaderCell.prototype.addStyle = function (sStyle) {
|
|
203
206
|
var iStyleId = CellStyleHandler.getStyleId(
|
|
204
207
|
sStyle,
|
|
205
208
|
RenderingConstants.TYPE_HEADER_CELL
|
|
@@ -209,7 +212,7 @@ sap.ui.define(
|
|
|
209
212
|
}
|
|
210
213
|
};
|
|
211
214
|
|
|
212
|
-
|
|
215
|
+
HeaderCell.prototype.removeStyle = function (sStyle) {
|
|
213
216
|
var iStyleId = CellStyleHandler.getStyleId(
|
|
214
217
|
sStyle,
|
|
215
218
|
RenderingConstants.TYPE_HEADER_CELL
|
|
@@ -220,7 +223,7 @@ sap.ui.define(
|
|
|
220
223
|
}
|
|
221
224
|
};
|
|
222
225
|
|
|
223
|
-
|
|
226
|
+
HeaderCell.prototype.hasStyle = function (sStyle) {
|
|
224
227
|
var iStyleId =CellStyleHandler.getStyleId(
|
|
225
228
|
sStyle,
|
|
226
229
|
RenderingConstants.TYPE_HEADER_CELL
|
|
@@ -233,107 +236,107 @@ sap.ui.define(
|
|
|
233
236
|
}
|
|
234
237
|
};
|
|
235
238
|
|
|
236
|
-
|
|
239
|
+
HeaderCell.prototype.isLoading = function () {
|
|
237
240
|
return this.bLoading;
|
|
238
241
|
};
|
|
239
242
|
|
|
240
|
-
|
|
243
|
+
HeaderCell.prototype.setLoading = function (bLoading) {
|
|
241
244
|
this.bLoading = bLoading;
|
|
242
245
|
};
|
|
243
246
|
|
|
244
|
-
|
|
247
|
+
HeaderCell.prototype.isSelectable = function () {
|
|
245
248
|
return this.bSelectable;
|
|
246
249
|
};
|
|
247
250
|
|
|
248
|
-
|
|
251
|
+
HeaderCell.prototype.setSelectable = function (bSelectable) {
|
|
249
252
|
this.bSelectable = bSelectable;
|
|
250
253
|
};
|
|
251
254
|
|
|
252
|
-
|
|
255
|
+
HeaderCell.prototype.setResult = function (bIsResult) {
|
|
253
256
|
this.bIsResult = bIsResult;
|
|
254
257
|
};
|
|
255
258
|
|
|
256
|
-
|
|
259
|
+
HeaderCell.prototype.isResult = function () {
|
|
257
260
|
return this.bIsResult;
|
|
258
261
|
};
|
|
259
262
|
|
|
260
|
-
|
|
263
|
+
HeaderCell.prototype.getUnescapedText = function () {
|
|
261
264
|
return sap.zen.crosstab.utils.Utils.unEscapeDisplayString(this.getText());
|
|
262
265
|
};
|
|
263
266
|
|
|
264
|
-
|
|
267
|
+
HeaderCell.prototype.isMobileResize = function () {
|
|
265
268
|
return this.bIsMobileResize;
|
|
266
269
|
};
|
|
267
270
|
|
|
268
|
-
|
|
271
|
+
HeaderCell.prototype.setMobileResize = function (pbMobileResize) {
|
|
269
272
|
this.bIsMobileResize = pbMobileResize;
|
|
270
273
|
};
|
|
271
274
|
|
|
272
|
-
|
|
275
|
+
HeaderCell.prototype.setEntryEnabled = function (bIsEntryEnabled) {
|
|
273
276
|
this.bIsEntryEnabled = bIsEntryEnabled;
|
|
274
277
|
};
|
|
275
278
|
|
|
276
|
-
|
|
279
|
+
HeaderCell.prototype.isEntryEnabled = function () {
|
|
277
280
|
return this.bIsEntryEnabled;
|
|
278
281
|
};
|
|
279
282
|
|
|
280
|
-
|
|
283
|
+
HeaderCell.prototype.setUnit = function (sUnit) {
|
|
281
284
|
this.sUnit = sUnit;
|
|
282
285
|
};
|
|
283
286
|
|
|
284
|
-
|
|
287
|
+
HeaderCell.prototype.getUnit = function () {
|
|
285
288
|
return this.sUnit;
|
|
286
289
|
};
|
|
287
290
|
|
|
288
|
-
|
|
291
|
+
HeaderCell.prototype.getPassiveCellType = function () {
|
|
289
292
|
return this.sPassiveCellType;
|
|
290
293
|
};
|
|
291
294
|
|
|
292
|
-
|
|
295
|
+
HeaderCell.prototype.setPassiveCellType = function (sPCellType) {
|
|
293
296
|
this.sPassiveCellType = sPCellType;
|
|
294
297
|
};
|
|
295
298
|
|
|
296
|
-
|
|
299
|
+
HeaderCell.prototype.setNumberOfLineBreaks = function (iNumberOfLineBreaks) {
|
|
297
300
|
this.iNumberOfLineBreaks = iNumberOfLineBreaks;
|
|
298
301
|
};
|
|
299
302
|
|
|
300
|
-
|
|
303
|
+
HeaderCell.prototype.getNumberOfLineBreaks = function () {
|
|
301
304
|
return this.iNumberOfLineBreaks;
|
|
302
305
|
};
|
|
303
306
|
|
|
304
|
-
|
|
307
|
+
HeaderCell.prototype.getScalingAxis = function() {
|
|
305
308
|
return this.sScalingAxis;
|
|
306
309
|
};
|
|
307
310
|
|
|
308
|
-
|
|
311
|
+
HeaderCell.prototype.setScalingAxis = function(sScalingAxis) {
|
|
309
312
|
this.sScalingAxis = sScalingAxis;
|
|
310
313
|
};
|
|
311
314
|
|
|
312
|
-
|
|
315
|
+
HeaderCell.prototype.isPivotCell = function() {
|
|
313
316
|
return this.bIsPivotCell;
|
|
314
317
|
};
|
|
315
318
|
|
|
316
|
-
|
|
319
|
+
HeaderCell.prototype.setPivotCell = function(bIsPivotCell) {
|
|
317
320
|
this.bIsPivotCell = bIsPivotCell;
|
|
318
321
|
};
|
|
319
322
|
|
|
320
|
-
|
|
323
|
+
HeaderCell.prototype.isSplitPivotCell = function() {
|
|
321
324
|
return this.bIsSplitPivotCell;
|
|
322
325
|
};
|
|
323
326
|
|
|
324
|
-
|
|
327
|
+
HeaderCell.prototype.setSplitPivotCell = function(bIsSplitPivotCell) {
|
|
325
328
|
this.bIsSplitPivotCell = bIsSplitPivotCell;
|
|
326
329
|
};
|
|
327
330
|
|
|
328
|
-
|
|
331
|
+
HeaderCell.prototype.isRevertDrop = function() {
|
|
329
332
|
return this.bIsRevertDrop;
|
|
330
333
|
};
|
|
331
334
|
|
|
332
|
-
|
|
335
|
+
HeaderCell.prototype.setRevertDrop = function(bIsRevertDrop) {
|
|
333
336
|
this.bIsRevertDrop = bIsRevertDrop;
|
|
334
337
|
};
|
|
335
338
|
|
|
336
|
-
|
|
339
|
+
HeaderCell.prototype.getFormattedText = function() {
|
|
337
340
|
var lText = this.getText();
|
|
338
341
|
|
|
339
342
|
var oArea = this.getArea();
|
|
@@ -351,6 +354,7 @@ sap.ui.define(
|
|
|
351
354
|
}
|
|
352
355
|
return lText;
|
|
353
356
|
};
|
|
354
|
-
|
|
357
|
+
|
|
358
|
+
return HeaderCell;
|
|
355
359
|
}
|
|
356
360
|
);
|