@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.
@@ -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
- * @name sap.zen.crosstab.HeaderCell
36
-
36
+ * @alias sap.zen.crosstab.HeaderCell
37
37
  */
38
- Control.extend("sap.zen.crosstab.HeaderCell", /** @lends sap.zen.crosstab.HeaderCell.prototype */ { metadata : {
39
-
40
- library : "sap.zen.crosstab",
41
- properties : {
42
-
43
- /**
44
- Rowspan of the cell
45
- */
46
- rowSpan : {type : "int", group : "Misc", defaultValue : null},
47
-
48
- /**
49
- Colspan of the cell
50
- */
51
- colSpan : {type : "int", group : "Misc", defaultValue : null},
52
-
53
- /**
54
- Text of the cell
55
- */
56
- text : {type : "string", group : "Misc", defaultValue : null},
57
-
58
- /**
59
- helper to format the cell
60
- */
61
- formatter : {type : "object", group : "Misc", defaultValue : null},
62
-
63
- /**
64
- whether to merge the cell if the keys are equal
65
- */
66
- mergeKey : {type : "string", group : "Misc", defaultValue : null},
67
-
68
- /**
69
- sorting
70
- */
71
- sort : {type : "string", group : "Misc", defaultValue : null},
72
-
73
- /**
74
- sort action
75
- */
76
- sortAction : {type : "string", group : "Misc", defaultValue : null},
77
-
78
- /**
79
- area of the cell
80
- */
81
- area : {type : "object", group : "Misc", defaultValue : null},
82
-
83
- /**
84
- the effective col span
85
- */
86
- effectiveColSpan : {type : "int", group : "Misc", defaultValue : null},
87
-
88
- /**
89
- the effective row span
90
- */
91
- effectiveRowSpan : {type : "int", group : "Misc", defaultValue : null},
92
-
93
- /**
94
- the row of the cell in the crosstab
95
- */
96
- row : {type : "int", group : "Misc", defaultValue : null},
97
-
98
- /**
99
- the column of the cell in the crosstab
100
- */
101
- col : {type : "int", group : "Misc", defaultValue : null},
102
-
103
- /**
104
- the level of the cell
105
- */
106
- level : {type : "int", group : "Misc", defaultValue : null},
107
-
108
- /**
109
- the drillstate of the cell
110
- */
111
- drillState : {type : "string", group : "Misc", defaultValue : null},
112
-
113
- /**
114
- the hierarcyh action of the cell
115
- */
116
- hierarchyAction : {type : "string", group : "Misc", defaultValue : null},
117
-
118
- /**
119
- the hierarchy tooltip
120
- */
121
- hierarchyTooltip : {type : "string", group : "Misc", defaultValue : null},
122
-
123
- /**
124
- the IE8 row span
125
- * @deprecated since 1.89.0
126
- */
127
- htmlIE8RowSpan : {type : "int", group : "Misc", defaultValue : 1},
128
-
129
- /**
130
- the text sort index
131
- */
132
- sortTextIndex : {type : "int", group : "Misc", defaultValue : null},
133
-
134
- /**
135
- the row of the tabe
136
- */
137
- tableRow : {type : "int", group : "Misc", defaultValue : null},
138
-
139
- /**
140
- the column of the table
141
- */
142
- tableCol : {type : "int", group : "Misc", defaultValue : null},
143
-
144
- /**
145
- the alignment of the cell
146
- */
147
- alignment : {type : "string", group : "Misc", defaultValue : null},
148
-
149
- /**
150
- the id of the associated member
151
- */
152
- memberId : {type : "string", group : "Misc", defaultValue : null},
153
-
154
- /**
155
- the id of the parent of the associated member
156
- */
157
- parentMemberId : {type : "string", group : "Misc", defaultValue : null},
158
-
159
- /**
160
- the node alignment
161
- */
162
- nodeAlignment : {type : "string", group : "Misc", defaultValue : null}
163
- }
164
- }});
165
-
166
- sap.zen.crosstab.HeaderCell.prototype.init = function () {
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
- sap.zen.crosstab.HeaderCell.prototype.getCellType = function() {
185
+ HeaderCell.prototype.getCellType = function() {
183
186
  return RenderingConstants.TYPE_HEADER_CELL;
184
187
  };
185
188
 
186
- sap.zen.crosstab.HeaderCell.prototype.isHeaderCell = function() {
189
+ HeaderCell.prototype.isHeaderCell = function() {
187
190
  return true;
188
191
  };
189
192
 
190
- sap.zen.crosstab.HeaderCell.prototype.getCssClassNames = function (bIsIE8, bIsRtl, bIsMsIE) {
193
+ HeaderCell.prototype.getCssClassNames = function (bIsIE8, bIsRtl, bIsMsIE) {
191
194
  return CellStyleHandler.getCssClasses(this.aStyles, bIsIE8, bIsRtl, bIsMsIE);
192
195
  };
193
196
 
194
- sap.zen.crosstab.HeaderCell.prototype.getStyleIdList = function () {
197
+ HeaderCell.prototype.getStyleIdList = function () {
195
198
  return this.aStyles;
196
199
  };
197
200
 
198
- sap.zen.crosstab.HeaderCell.prototype.setStyleIdList = function (aNewStyles) {
201
+ HeaderCell.prototype.setStyleIdList = function (aNewStyles) {
199
202
  this.aStyles = aNewStyles;
200
203
  };
201
204
 
202
- sap.zen.crosstab.HeaderCell.prototype.addStyle = function (sStyle) {
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
- sap.zen.crosstab.HeaderCell.prototype.removeStyle = function (sStyle) {
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
- sap.zen.crosstab.HeaderCell.prototype.hasStyle = function (sStyle) {
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
- sap.zen.crosstab.HeaderCell.prototype.isLoading = function () {
239
+ HeaderCell.prototype.isLoading = function () {
237
240
  return this.bLoading;
238
241
  };
239
242
 
240
- sap.zen.crosstab.HeaderCell.prototype.setLoading = function (bLoading) {
243
+ HeaderCell.prototype.setLoading = function (bLoading) {
241
244
  this.bLoading = bLoading;
242
245
  };
243
246
 
244
- sap.zen.crosstab.HeaderCell.prototype.isSelectable = function () {
247
+ HeaderCell.prototype.isSelectable = function () {
245
248
  return this.bSelectable;
246
249
  };
247
250
 
248
- sap.zen.crosstab.HeaderCell.prototype.setSelectable = function (bSelectable) {
251
+ HeaderCell.prototype.setSelectable = function (bSelectable) {
249
252
  this.bSelectable = bSelectable;
250
253
  };
251
254
 
252
- sap.zen.crosstab.HeaderCell.prototype.setResult = function (bIsResult) {
255
+ HeaderCell.prototype.setResult = function (bIsResult) {
253
256
  this.bIsResult = bIsResult;
254
257
  };
255
258
 
256
- sap.zen.crosstab.HeaderCell.prototype.isResult = function () {
259
+ HeaderCell.prototype.isResult = function () {
257
260
  return this.bIsResult;
258
261
  };
259
262
 
260
- sap.zen.crosstab.HeaderCell.prototype.getUnescapedText = function () {
263
+ HeaderCell.prototype.getUnescapedText = function () {
261
264
  return sap.zen.crosstab.utils.Utils.unEscapeDisplayString(this.getText());
262
265
  };
263
266
 
264
- sap.zen.crosstab.HeaderCell.prototype.isMobileResize = function () {
267
+ HeaderCell.prototype.isMobileResize = function () {
265
268
  return this.bIsMobileResize;
266
269
  };
267
270
 
268
- sap.zen.crosstab.HeaderCell.prototype.setMobileResize = function (pbMobileResize) {
271
+ HeaderCell.prototype.setMobileResize = function (pbMobileResize) {
269
272
  this.bIsMobileResize = pbMobileResize;
270
273
  };
271
274
 
272
- sap.zen.crosstab.HeaderCell.prototype.setEntryEnabled = function (bIsEntryEnabled) {
275
+ HeaderCell.prototype.setEntryEnabled = function (bIsEntryEnabled) {
273
276
  this.bIsEntryEnabled = bIsEntryEnabled;
274
277
  };
275
278
 
276
- sap.zen.crosstab.HeaderCell.prototype.isEntryEnabled = function () {
279
+ HeaderCell.prototype.isEntryEnabled = function () {
277
280
  return this.bIsEntryEnabled;
278
281
  };
279
282
 
280
- sap.zen.crosstab.HeaderCell.prototype.setUnit = function (sUnit) {
283
+ HeaderCell.prototype.setUnit = function (sUnit) {
281
284
  this.sUnit = sUnit;
282
285
  };
283
286
 
284
- sap.zen.crosstab.HeaderCell.prototype.getUnit = function () {
287
+ HeaderCell.prototype.getUnit = function () {
285
288
  return this.sUnit;
286
289
  };
287
290
 
288
- sap.zen.crosstab.HeaderCell.prototype.getPassiveCellType = function () {
291
+ HeaderCell.prototype.getPassiveCellType = function () {
289
292
  return this.sPassiveCellType;
290
293
  };
291
294
 
292
- sap.zen.crosstab.HeaderCell.prototype.setPassiveCellType = function (sPCellType) {
295
+ HeaderCell.prototype.setPassiveCellType = function (sPCellType) {
293
296
  this.sPassiveCellType = sPCellType;
294
297
  };
295
298
 
296
- sap.zen.crosstab.HeaderCell.prototype.setNumberOfLineBreaks = function (iNumberOfLineBreaks) {
299
+ HeaderCell.prototype.setNumberOfLineBreaks = function (iNumberOfLineBreaks) {
297
300
  this.iNumberOfLineBreaks = iNumberOfLineBreaks;
298
301
  };
299
302
 
300
- sap.zen.crosstab.HeaderCell.prototype.getNumberOfLineBreaks = function () {
303
+ HeaderCell.prototype.getNumberOfLineBreaks = function () {
301
304
  return this.iNumberOfLineBreaks;
302
305
  };
303
306
 
304
- sap.zen.crosstab.HeaderCell.prototype.getScalingAxis = function() {
307
+ HeaderCell.prototype.getScalingAxis = function() {
305
308
  return this.sScalingAxis;
306
309
  };
307
310
 
308
- sap.zen.crosstab.HeaderCell.prototype.setScalingAxis = function(sScalingAxis) {
311
+ HeaderCell.prototype.setScalingAxis = function(sScalingAxis) {
309
312
  this.sScalingAxis = sScalingAxis;
310
313
  };
311
314
 
312
- sap.zen.crosstab.HeaderCell.prototype.isPivotCell = function() {
315
+ HeaderCell.prototype.isPivotCell = function() {
313
316
  return this.bIsPivotCell;
314
317
  };
315
318
 
316
- sap.zen.crosstab.HeaderCell.prototype.setPivotCell = function(bIsPivotCell) {
319
+ HeaderCell.prototype.setPivotCell = function(bIsPivotCell) {
317
320
  this.bIsPivotCell = bIsPivotCell;
318
321
  };
319
322
 
320
- sap.zen.crosstab.HeaderCell.prototype.isSplitPivotCell = function() {
323
+ HeaderCell.prototype.isSplitPivotCell = function() {
321
324
  return this.bIsSplitPivotCell;
322
325
  };
323
326
 
324
- sap.zen.crosstab.HeaderCell.prototype.setSplitPivotCell = function(bIsSplitPivotCell) {
327
+ HeaderCell.prototype.setSplitPivotCell = function(bIsSplitPivotCell) {
325
328
  this.bIsSplitPivotCell = bIsSplitPivotCell;
326
329
  };
327
330
 
328
- sap.zen.crosstab.HeaderCell.prototype.isRevertDrop = function() {
331
+ HeaderCell.prototype.isRevertDrop = function() {
329
332
  return this.bIsRevertDrop;
330
333
  };
331
334
 
332
- sap.zen.crosstab.HeaderCell.prototype.setRevertDrop = function(bIsRevertDrop) {
335
+ HeaderCell.prototype.setRevertDrop = function(bIsRevertDrop) {
333
336
  this.bIsRevertDrop = bIsRevertDrop;
334
337
  };
335
338
 
336
- sap.zen.crosstab.HeaderCell.prototype.getFormattedText = function() {
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
- return sap.zen.crosstab.HeaderCell;
357
+
358
+ return HeaderCell;
355
359
  }
356
360
  );