@refinitiv-ui/efx-grid 6.0.91 → 6.0.92
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/column-dragging/es6/ColumnDragging.d.ts +1 -1
- package/lib/column-dragging/es6/ColumnDragging.js +144 -34
- package/lib/core/dist/core.js +2410 -2621
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/ColumnStats.js +14 -14
- package/lib/core/es6/data/DataCache.js +118 -118
- package/lib/core/es6/data/DataTable.d.ts +3 -1
- package/lib/core/es6/data/DataTable.js +208 -190
- package/lib/core/es6/data/DataView.d.ts +1 -1
- package/lib/core/es6/data/DataView.js +291 -291
- package/lib/core/es6/data/Segment.js +79 -79
- package/lib/core/es6/data/SegmentCollection.js +81 -81
- package/lib/core/es6/data/WrappedView.js +41 -41
- package/lib/core/es6/grid/Core.js +635 -635
- package/lib/core/es6/grid/ILayoutGrid.js +1 -1
- package/lib/core/es6/grid/LayoutGrid.js +183 -183
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +91 -91
- package/lib/core/es6/grid/components/Cell.js +29 -29
- package/lib/core/es6/grid/components/CellFloatingPanel.js +11 -11
- package/lib/core/es6/grid/components/CellSpan.js +7 -7
- package/lib/core/es6/grid/components/CellSpans.js +36 -34
- package/lib/core/es6/grid/components/Column.js +40 -40
- package/lib/core/es6/grid/components/ElementWrapper.js +17 -17
- package/lib/core/es6/grid/components/HScrollbar.js +31 -31
- package/lib/core/es6/grid/components/Scrollbar.js +77 -77
- package/lib/core/es6/grid/components/StretchedCells.js +49 -49
- package/lib/core/es6/grid/components/VScrollbar.js +11 -11
- package/lib/core/es6/grid/components/VirtualItems.js +3 -3
- package/lib/core/es6/grid/event/EventDispatcher.js +9 -9
- package/lib/core/es6/grid/event/EventListeners.js +4 -4
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +186 -186
- package/lib/core/es6/grid/util/Conflator.js +4 -4
- package/lib/core/es6/grid/util/Reverter.js +1 -1
- package/lib/core/es6/grid/util/SectionSettings.js +20 -20
- package/lib/core/es6/grid/util/SelectionList.js +23 -23
- package/lib/core/es6/grid/util/TrackLayout.js +74 -74
- package/lib/core/es6/grid/util/Virtualizer.js +15 -15
- package/lib/core/es6/grid/util/util.js +20 -20
- package/lib/core/es6/index.d.ts +0 -2
- package/lib/core/es6/index.js +0 -3
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +193 -70
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +46 -30
- package/lib/rt-grid/es6/RowDefinition.d.ts +2 -1
- package/lib/rt-grid/es6/RowDefinition.js +74 -16
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +56 -1
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +3 -1
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +29 -1
- package/lib/tr-grid-util/es6/CellPainter.js +94 -93
- package/lib/tr-grid-util/es6/Conflator.js +4 -4
- package/lib/tr-grid-util/es6/CoralItems.js +6 -6
- package/lib/tr-grid-util/es6/DateTime.js +39 -39
- package/lib/tr-grid-util/es6/Deferred.js +5 -5
- package/lib/tr-grid-util/es6/Delay.js +1 -1
- package/lib/tr-grid-util/es6/Dom.js +26 -26
- package/lib/tr-grid-util/es6/DragUI.js +17 -17
- package/lib/tr-grid-util/es6/ElementObserver.js +12 -12
- package/lib/tr-grid-util/es6/ElementWrapper.js +2 -2
- package/lib/tr-grid-util/es6/ElfDate.js +4 -4
- package/lib/tr-grid-util/es6/ElfUtil.js +37 -37
- package/lib/tr-grid-util/es6/EventDispatcher.js +12 -12
- package/lib/tr-grid-util/es6/ExpanderIcon.js +6 -6
- package/lib/tr-grid-util/es6/ExpressionParser.js +43 -43
- package/lib/tr-grid-util/es6/Ext.js +6 -6
- package/lib/tr-grid-util/es6/FieldFormatter.js +17 -17
- package/lib/tr-grid-util/es6/FilterBuilder.js +57 -57
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +12 -1
- package/lib/tr-grid-util/es6/FilterOperators.js +13 -2
- package/lib/tr-grid-util/es6/GridPlugin.js +86 -86
- package/lib/tr-grid-util/es6/GroupDefinitions.js +90 -90
- package/lib/tr-grid-util/es6/Icon.js +4 -4
- package/lib/tr-grid-util/es6/MouseDownTrait.js +6 -6
- package/lib/tr-grid-util/es6/MultiTableManager.js +68 -68
- package/lib/tr-grid-util/es6/NumberFormatter.js +22 -22
- package/lib/tr-grid-util/es6/PercentBar.js +17 -17
- package/lib/tr-grid-util/es6/Perf.js +5 -5
- package/lib/tr-grid-util/es6/Popup.js +42 -42
- package/lib/tr-grid-util/es6/RangeBar.js +5 -5
- package/lib/tr-grid-util/es6/RequestQueue.js +5 -5
- package/lib/tr-grid-util/es6/RowPainter.js +23 -23
- package/lib/tr-grid-util/es6/SubTable.js +94 -94
- package/lib/tr-grid-util/es6/Table.js +51 -51
- package/lib/tr-grid-util/es6/TextHighlighter.js +49 -49
- package/lib/tr-grid-util/es6/TickCodes.js +2 -2
- package/lib/tr-grid-util/es6/Timer.js +2 -2
- package/lib/tr-grid-util/es6/TouchProxy.js +7 -7
- package/lib/tr-grid-util/es6/Util.js +50 -50
- package/lib/tr-grid-util/es6/formula/ADCService.js +2 -2
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +19 -19
- package/lib/tr-grid-util/es6/formula/AdFinService.js +2 -2
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +19 -19
- package/lib/tr-grid-util/es6/formula/Engine.js +56 -56
- package/lib/tr-grid-util/es6/formula/Formula.js +62 -62
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +3 -3
- package/lib/tr-grid-util/es6/formula/Realtime.js +15 -15
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +15 -15
- package/lib/tr-grid-util/es6/formula/TSIService.js +2 -2
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +104 -104
- package/lib/tr-grid-util/es6/formula/VariableToken.js +20 -20
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +10 -10
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +1 -1
- package/lib/tr-grid-util/es6/formula/functions/Info.js +2 -2
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +5 -5
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +5 -5
- package/lib/tr-grid-util/es6/formula/functions/Math.js +46 -46
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +27 -27
- package/lib/tr-grid-util/es6/formula/functions/Text.js +19 -19
- package/lib/tr-grid-util/es6/index.js +1 -1
- package/lib/tr-grid-util/es6/jet/Adc.js +36 -36
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +11 -11
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +95 -95
- package/lib/tr-grid-util/es6/jet/DataSet.js +1 -1
- package/lib/tr-grid-util/es6/jet/MockArchive.js +5 -5
- package/lib/tr-grid-util/es6/jet/MockJET.js +1 -1
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +13 -13
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +100 -100
- package/lib/tr-grid-util/es6/jet/MockRTK.js +4 -4
- package/lib/tr-grid-util/es6/jet/MockUtil.js +2 -2
- package/lib/tr-grid-util/es6/jet/index.js +1 -1
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +15 -15
- package/lib/tr-grid-util/es6/locale/translation-de.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation-en.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation-ja.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation-zh.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation.js +1 -1
- package/lib/types/es6/ColumnDragging.d.ts +1 -1
- package/lib/types/es6/ColumnGrouping.d.ts +3 -1
- package/lib/types/es6/Core/data/DataTable.d.ts +4 -0
- package/lib/types/es6/Core/data/DataView.d.ts +2 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +2 -0
- package/lib/types/es6/Core/index.d.ts +0 -2
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +2 -1
- package/lib/versions.json +4 -4
- package/package.json +1 -1
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +0 -18
- package/lib/core/es6/grid/util/ElementFrameWork.js +0 -227
- package/lib/core/es6/grid/util/HttpRequest.d.ts +0 -53
- package/lib/core/es6/grid/util/HttpRequest.js +0 -371
- package/lib/core/es6/grid/util/PercentBar.d.ts +0 -43
- package/lib/core/es6/grid/util/PercentBar.js +0 -390
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +0 -41
- package/lib/core/es6/grid/util/PercentBarRenderer.js +0 -316
- package/lib/core/es6/grid/util/RangeBar.d.ts +0 -25
- package/lib/core/es6/grid/util/RangeBar.js +0 -255
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +0 -18
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +0 -53
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +0 -43
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +0 -41
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +0 -25
@@ -1,390 +0,0 @@
|
|
1
|
-
import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
2
|
-
import ElementWrapper from "../components/ElementWrapper.js";
|
3
|
-
|
4
|
-
/**
|
5
|
-
* @constructor
|
6
|
-
* @extends {ElementWrapper}
|
7
|
-
* @param {Element=} opt_element
|
8
|
-
*/
|
9
|
-
var PercentBar = function (opt_element) {
|
10
|
-
this._element = opt_element ? opt_element : document.createElement("div");
|
11
|
-
this._element._percentBar = this; // For internal reference by PercentBarRenderer
|
12
|
-
this._element.className = "tr-percent-bar";
|
13
|
-
|
14
|
-
this._bar = document.createElement("div");
|
15
|
-
this._track = document.createElement("div");
|
16
|
-
this._track.appendChild(this._bar);
|
17
|
-
|
18
|
-
this._txt = document.createElement("span");
|
19
|
-
this.setAlignment("c");
|
20
|
-
};
|
21
|
-
Ext.inherits(PercentBar, ElementWrapper);
|
22
|
-
|
23
|
-
/**
|
24
|
-
* @public
|
25
|
-
* @returns {number}
|
26
|
-
*/
|
27
|
-
PercentBar.prototype.getValue = function () {
|
28
|
-
return this._absValue * this._sign;
|
29
|
-
};
|
30
|
-
/**
|
31
|
-
* @public
|
32
|
-
* @returns {number}
|
33
|
-
*/
|
34
|
-
PercentBar.prototype.getPercent = function () {
|
35
|
-
return (this._absValue / this._maxValue) * this._sign;
|
36
|
-
};
|
37
|
-
|
38
|
-
/**
|
39
|
-
* @public
|
40
|
-
* @param {number|string} value
|
41
|
-
* @param {number=} opt_max
|
42
|
-
* @param {string=} opt_displayText
|
43
|
-
*/
|
44
|
-
PercentBar.prototype.setValue = function (value, opt_max, opt_displayText) {
|
45
|
-
if(typeof value !== "number") {
|
46
|
-
if(!value || value === " ") {
|
47
|
-
value = NaN;
|
48
|
-
} else {
|
49
|
-
value = Number(value);
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
if(!value && value !== 0) { // NaN or undefined
|
54
|
-
this._absValue = NaN;
|
55
|
-
|
56
|
-
if(!this._invalid) {
|
57
|
-
this._invalid = true;
|
58
|
-
this.hide();
|
59
|
-
}
|
60
|
-
|
61
|
-
return;
|
62
|
-
} else {
|
63
|
-
if(this._invalid) {
|
64
|
-
this._invalid = false;
|
65
|
-
this.show();
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
if(value >= 0) {
|
70
|
-
this._absValue = value;
|
71
|
-
this._dirtySign |= this._sign !== 1;
|
72
|
-
this._sign = 1;
|
73
|
-
} else {
|
74
|
-
this._absValue = -value;
|
75
|
-
this._dirtySign |= this._sign !== -1;
|
76
|
-
this._sign = -1;
|
77
|
-
}
|
78
|
-
|
79
|
-
if(opt_max != null) {
|
80
|
-
this._maxValue = (opt_max >= 0) ? opt_max : -opt_max;
|
81
|
-
}
|
82
|
-
|
83
|
-
if(this._absValue > this._maxValue) {
|
84
|
-
this._absValue = this._maxValue;
|
85
|
-
}
|
86
|
-
|
87
|
-
this._update(true, opt_displayText);
|
88
|
-
};
|
89
|
-
/**
|
90
|
-
* @public
|
91
|
-
* @param {number} absVal
|
92
|
-
*/
|
93
|
-
PercentBar.prototype.setMax = function (absVal) {
|
94
|
-
this._maxValue = (absVal >= 0) ? absVal : -absVal;
|
95
|
-
if(this._absValue > this._maxValue) {
|
96
|
-
this._absValue = this._maxValue;
|
97
|
-
}
|
98
|
-
this._update();
|
99
|
-
};
|
100
|
-
|
101
|
-
/**
|
102
|
-
* @public
|
103
|
-
* @param {string} txt
|
104
|
-
*/
|
105
|
-
PercentBar.prototype.setText = function (txt) {
|
106
|
-
if(!this._invalid) {
|
107
|
-
if(this._txt._prevText !== txt) {
|
108
|
-
this._txt._prevText = txt;
|
109
|
-
this._txt.textContent = txt;
|
110
|
-
if (this._tooltipEnabled) {
|
111
|
-
this.setTooltip(txt);
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
};
|
116
|
-
/**
|
117
|
-
* @public
|
118
|
-
* @param {boolean=} opt_hiden
|
119
|
-
*/
|
120
|
-
PercentBar.prototype.hideText = function (opt_hiden) {
|
121
|
-
this._textHidden = opt_hiden !== false;
|
122
|
-
this._txt.style.display = this.isTextHidden() ? "none" : "";
|
123
|
-
this.setAlignment(this._alignment);
|
124
|
-
};
|
125
|
-
/**
|
126
|
-
* @public
|
127
|
-
* @return {boolean}
|
128
|
-
*/
|
129
|
-
PercentBar.prototype.isTextHidden = function () {
|
130
|
-
return this._textHidden || (this._textWidth === "0px");
|
131
|
-
};
|
132
|
-
|
133
|
-
/** Use when alignment is not center. This will be a reserved space for text
|
134
|
-
* @public
|
135
|
-
* @param {number|string} width
|
136
|
-
*/
|
137
|
-
PercentBar.prototype.setTextWidth = function (width) {
|
138
|
-
if(!width && width !== 0) { // undefined, NaN, null, and ""
|
139
|
-
width = 56;
|
140
|
-
}
|
141
|
-
var txtWidth = (typeof width === "number") ? width + "px" : width;
|
142
|
-
if(this._textWidth !== txtWidth) {
|
143
|
-
this._textWidth = txtWidth;
|
144
|
-
this._txt.style.display = this.isTextHidden() ? "none" : "";
|
145
|
-
this.setAlignment(this._alignment);
|
146
|
-
}
|
147
|
-
};
|
148
|
-
/** @public
|
149
|
-
* @function
|
150
|
-
* @param {number|string} width
|
151
|
-
*/
|
152
|
-
PercentBar.prototype.setMaxTextLength = PercentBar.prototype.setTextWidth;
|
153
|
-
/**
|
154
|
-
* @public
|
155
|
-
* @return {number} scrollWidth
|
156
|
-
*/
|
157
|
-
PercentBar.prototype.getTextScrollWidth = function() {
|
158
|
-
if(this._txt.scrollWidth > this._txt.offsetWidth) {
|
159
|
-
return this._txt.scrollWidth;
|
160
|
-
}
|
161
|
-
return NaN;
|
162
|
-
};
|
163
|
-
|
164
|
-
/**
|
165
|
-
* @public
|
166
|
-
* @returns {string} alignment Alignment can be "left", "center", "right"
|
167
|
-
*/
|
168
|
-
PercentBar.prototype.getAlignment = function () {
|
169
|
-
switch(this._alignment) {
|
170
|
-
case "l": return "left";
|
171
|
-
case "r": return "right";
|
172
|
-
}
|
173
|
-
return "center";
|
174
|
-
};
|
175
|
-
|
176
|
-
/**
|
177
|
-
* @public
|
178
|
-
* @param {string} alignment Alignment can be "left", "center", "right"
|
179
|
-
*/
|
180
|
-
PercentBar.prototype.setAlignment = function (alignment) {
|
181
|
-
if(alignment) {
|
182
|
-
alignment = alignment.charAt(0).toLowerCase();
|
183
|
-
} else {
|
184
|
-
alignment = "c";
|
185
|
-
}
|
186
|
-
|
187
|
-
if(alignment === "c") {
|
188
|
-
this._track.style.width = "50%";
|
189
|
-
this._txt.style.width = '50%';
|
190
|
-
this._txt.style.textOverflow = 'elipsis';
|
191
|
-
this._dirtySign = true;
|
192
|
-
} else {
|
193
|
-
if (this.isTextHidden()) {
|
194
|
-
this._track.style.width = "100%";
|
195
|
-
} else {
|
196
|
-
this._track.style.width = "calc(100% - " + this._textWidth + ")";
|
197
|
-
}
|
198
|
-
this._txt.style.width = this._textWidth; // Text width can be percent ("50%") or pixel ("50px")
|
199
|
-
this._txt.style.textAlign = "right";
|
200
|
-
|
201
|
-
this._track.style.left = ""; // Important
|
202
|
-
this._txt.style.transform = ""; // Important
|
203
|
-
|
204
|
-
if(alignment === "r") {
|
205
|
-
this._bar.style.right = "0";
|
206
|
-
} else {
|
207
|
-
this._bar.style.right = "";
|
208
|
-
}
|
209
|
-
}
|
210
|
-
|
211
|
-
if(this._alignment !== alignment) {
|
212
|
-
this._alignment = alignment;
|
213
|
-
if(alignment !== "l") {
|
214
|
-
this.addContent(this._track);
|
215
|
-
this.addContent(this._txt);
|
216
|
-
} else { // align left
|
217
|
-
this.addContent(this._txt);
|
218
|
-
this.addContent(this._track);
|
219
|
-
}
|
220
|
-
}
|
221
|
-
this._update(false);
|
222
|
-
};
|
223
|
-
|
224
|
-
/**
|
225
|
-
* @public
|
226
|
-
* @param {Object=} colorObject An object with property "up" and "down"
|
227
|
-
*/
|
228
|
-
PercentBar.prototype.setMovementColor = function (colorObject) {
|
229
|
-
if(colorObject) {
|
230
|
-
if(colorObject["up"] && colorObject["down"]) {
|
231
|
-
this._movementColor = colorObject;
|
232
|
-
}
|
233
|
-
}
|
234
|
-
};
|
235
|
-
/** @public
|
236
|
-
* @param {boolean=} opt_enabled
|
237
|
-
*/
|
238
|
-
PercentBar.prototype.useMovementColor = function (opt_enabled) {
|
239
|
-
this._movementColorUsed = opt_enabled !== false;
|
240
|
-
this._updateBarColor();
|
241
|
-
};
|
242
|
-
|
243
|
-
/**
|
244
|
-
* @public
|
245
|
-
* @param {string=} color
|
246
|
-
*/
|
247
|
-
PercentBar.prototype.setTrackColor = function (color) {
|
248
|
-
this._track.style.backgroundColor = color ? color : "";
|
249
|
-
};
|
250
|
-
|
251
|
-
/** @public
|
252
|
-
* @param {boolean=} opt_enabled
|
253
|
-
*/
|
254
|
-
PercentBar.prototype.enableTooltip = function (opt_enabled) {
|
255
|
-
this._tooltipEnabled = opt_enabled !== false;
|
256
|
-
this.setTooltip('');
|
257
|
-
};
|
258
|
-
|
259
|
-
/**
|
260
|
-
* @private
|
261
|
-
* @param {boolean=} opt_updateVal
|
262
|
-
* @param {string=} opt_displayText
|
263
|
-
*/
|
264
|
-
PercentBar.prototype._update = function (opt_updateVal, opt_displayText) {
|
265
|
-
if(this._dirtySign) {
|
266
|
-
this._dirtySign = false;
|
267
|
-
if(this._alignment === "c") {
|
268
|
-
if(this._sign >= 0) {
|
269
|
-
this._track.style.left = "50%";
|
270
|
-
this._bar.style.right = "";
|
271
|
-
this._txt.style.transform = "translateX(-100%)";
|
272
|
-
this._txt.style.textAlign = "right";
|
273
|
-
} else {
|
274
|
-
this._track.style.left = "";
|
275
|
-
this._bar.style.right = "0";
|
276
|
-
this._txt.style.transform = "";
|
277
|
-
this._txt.style.textAlign = "left";
|
278
|
-
}
|
279
|
-
}
|
280
|
-
|
281
|
-
if(this._movementColorUsed) {
|
282
|
-
this._updateBarColor();
|
283
|
-
}
|
284
|
-
}
|
285
|
-
|
286
|
-
if (opt_updateVal !== false) {
|
287
|
-
var percent = (this._absValue / this._maxValue) * 100;
|
288
|
-
this._bar.style.width = percent + "%";
|
289
|
-
if(opt_displayText) {
|
290
|
-
this.setText(opt_displayText);
|
291
|
-
} else {
|
292
|
-
this.setText(Math.floor(percent * this._sign * 100) / 100 + "%");
|
293
|
-
}
|
294
|
-
}
|
295
|
-
};
|
296
|
-
/**
|
297
|
-
* @private
|
298
|
-
*/
|
299
|
-
PercentBar.prototype._updateBarColor = function () {
|
300
|
-
if(this._movementColorUsed) {
|
301
|
-
if(this._sign >= 0) {
|
302
|
-
this._bar.style.backgroundColor = (this._movementColor && this._movementColor["up"]) ? this._movementColor["up"] : "green";
|
303
|
-
} else {
|
304
|
-
this._bar.style.backgroundColor = (this._movementColor && this._movementColor["down"]) ? this._movementColor["down"] : "red";
|
305
|
-
}
|
306
|
-
} else {
|
307
|
-
this._bar.style.backgroundColor = "";
|
308
|
-
}
|
309
|
-
};
|
310
|
-
|
311
|
-
/**
|
312
|
-
* @type {Element}
|
313
|
-
* @private
|
314
|
-
*/
|
315
|
-
PercentBar.prototype._track = null;
|
316
|
-
/**
|
317
|
-
* @type {Element}
|
318
|
-
* @private
|
319
|
-
*/
|
320
|
-
PercentBar.prototype._bar = null;
|
321
|
-
/**
|
322
|
-
* @type {Element}
|
323
|
-
* @private
|
324
|
-
*/
|
325
|
-
PercentBar.prototype._txt = null;
|
326
|
-
|
327
|
-
/**
|
328
|
-
* @type {string}
|
329
|
-
* @private
|
330
|
-
*/
|
331
|
-
PercentBar.prototype._textWidth = "56px"; // 56 is the exact fit to the default format
|
332
|
-
|
333
|
-
/**
|
334
|
-
* @type {boolean}
|
335
|
-
* @private
|
336
|
-
*/
|
337
|
-
PercentBar.prototype._textHidden = false;
|
338
|
-
|
339
|
-
/**
|
340
|
-
* @type {string}
|
341
|
-
* @private
|
342
|
-
*/
|
343
|
-
PercentBar.prototype._alignment;
|
344
|
-
/**
|
345
|
-
* @type {number}
|
346
|
-
* @private
|
347
|
-
*/
|
348
|
-
PercentBar.prototype._absValue;
|
349
|
-
/**
|
350
|
-
* @type {number}
|
351
|
-
* @private
|
352
|
-
*/
|
353
|
-
PercentBar.prototype._maxValue = 100;
|
354
|
-
/** Sign of value. 1 for positive and -1 for negative.
|
355
|
-
* @type {number}
|
356
|
-
* @private
|
357
|
-
*/
|
358
|
-
PercentBar.prototype._sign = 1;
|
359
|
-
/**
|
360
|
-
* @type {boolean}
|
361
|
-
* @private
|
362
|
-
*/
|
363
|
-
PercentBar.prototype._dirtySign = true;
|
364
|
-
/**
|
365
|
-
* @type {boolean}
|
366
|
-
* @private
|
367
|
-
*/
|
368
|
-
PercentBar.prototype._invalid = false;
|
369
|
-
|
370
|
-
/**
|
371
|
-
* @type {Object}
|
372
|
-
* @private
|
373
|
-
*/
|
374
|
-
PercentBar.prototype._movementColor = null;
|
375
|
-
/**
|
376
|
-
* @type {boolean}
|
377
|
-
* @private
|
378
|
-
*/
|
379
|
-
PercentBar.prototype._movementColorUsed = true;
|
380
|
-
|
381
|
-
/**
|
382
|
-
* @type {boolean}
|
383
|
-
* @private
|
384
|
-
*/
|
385
|
-
PercentBar.prototype._tooltipEnabled = true;
|
386
|
-
|
387
|
-
PercentBar._proto = PercentBar.prototype;
|
388
|
-
|
389
|
-
export default PercentBar;
|
390
|
-
export { PercentBar };
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import ElementWrapper from "../components/ElementWrapper.js";
|
2
|
-
import PercentBar from "./PercentBar.js";
|
3
|
-
|
4
|
-
declare class PercentBarRenderer {
|
5
|
-
|
6
|
-
constructor();
|
7
|
-
|
8
|
-
public dispose(): void;
|
9
|
-
|
10
|
-
public render(cell: ElementWrapper|null, value: number, opt_max?: number|null, opt_displayText?: string|null, opt_textWidth?: number|null): void;
|
11
|
-
|
12
|
-
public renderForPrinting(cell: ElementWrapper|null, value: number, opt_max?: number|null): PercentBar|null;
|
13
|
-
|
14
|
-
public setAlignment(alignment: string): void;
|
15
|
-
|
16
|
-
public setMovementColor(colorObj?: any): void;
|
17
|
-
|
18
|
-
public useMovementColor(opt_enabled?: boolean|null): void;
|
19
|
-
|
20
|
-
public setTrackColor(color?: string|null): void;
|
21
|
-
|
22
|
-
public hideText(opt_enabled?: boolean|null): void;
|
23
|
-
|
24
|
-
public setTextWidth(width: number|string|null, opt_pbs?: (PercentBar)[]|null): void;
|
25
|
-
|
26
|
-
public enableTooltip(opt_enabled?: boolean|null): void;
|
27
|
-
|
28
|
-
public getAlignment(): string;
|
29
|
-
|
30
|
-
public isMovementColorUsed(): boolean;
|
31
|
-
|
32
|
-
public isTextHidden(): boolean;
|
33
|
-
|
34
|
-
public startTextAutoResizing(): boolean;
|
35
|
-
|
36
|
-
public endTextAutoResizing(widthLimit?: number|null, opt_resetToDefaultWidth?: boolean|null, opt_pbs?: (PercentBar)[]|null): void;
|
37
|
-
|
38
|
-
}
|
39
|
-
|
40
|
-
export default PercentBarRenderer;
|
41
|
-
export { PercentBarRenderer };
|