@deephaven/iris-grid 0.9.3 → 0.9.4-beta.4
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/dist/AdvancedFilterCreator.d.ts +1 -2
- package/dist/ColumnStatistics.d.ts +1 -2
- package/dist/IrisGrid.d.ts +2 -3
- package/dist/IrisGridCopyHandler.d.ts +2 -3
- package/dist/IrisGridMetricCalculator.d.ts +10 -3
- package/dist/IrisGridMetricCalculator.d.ts.map +1 -1
- package/dist/IrisGridMetricCalculator.js.map +1 -1
- package/dist/IrisGridModel.d.ts +141 -113
- package/dist/IrisGridModel.d.ts.map +1 -1
- package/dist/IrisGridModel.js +45 -308
- package/dist/IrisGridModel.js.map +1 -1
- package/dist/IrisGridModelUpdater.d.ts +29 -3
- package/dist/IrisGridModelUpdater.d.ts.map +1 -1
- package/dist/IrisGridModelUpdater.js +13 -45
- package/dist/IrisGridModelUpdater.js.map +1 -1
- package/dist/IrisGridProxyModel.d.ts +1 -4
- package/dist/IrisGridProxyModel.d.ts.map +1 -1
- package/dist/IrisGridRenderer.d.ts +1 -1
- package/dist/IrisGridTableModel.d.ts +2 -3
- package/dist/IrisGridTableModel.d.ts.map +1 -1
- package/dist/PendingDataBottomBar.d.ts +0 -1
- package/dist/PendingDataBottomBar.d.ts.map +1 -1
- package/dist/TableUtils.d.ts +1 -0
- package/dist/TableUtils.d.ts.map +1 -1
- package/dist/TableUtils.js +2 -0
- package/dist/TableUtils.js.map +1 -1
- package/dist/mousehandlers/IrisGridColumnSelectMouseHandler.d.ts +14 -8
- package/dist/mousehandlers/IrisGridColumnSelectMouseHandler.d.ts.map +1 -1
- package/dist/mousehandlers/IrisGridColumnSelectMouseHandler.js +6 -1
- package/dist/mousehandlers/IrisGridColumnSelectMouseHandler.js.map +1 -1
- package/dist/mousehandlers/IrisGridColumnTooltipMouseHandler.d.ts +11 -6
- package/dist/mousehandlers/IrisGridColumnTooltipMouseHandler.d.ts.map +1 -1
- package/dist/mousehandlers/IrisGridColumnTooltipMouseHandler.js +7 -1
- package/dist/mousehandlers/IrisGridColumnTooltipMouseHandler.js.map +1 -1
- package/dist/mousehandlers/IrisGridContextMenuHandler.d.ts +1 -1
- package/dist/mousehandlers/IrisGridDataSelectMouseHandler.d.ts +6 -4
- package/dist/mousehandlers/IrisGridDataSelectMouseHandler.d.ts.map +1 -1
- package/dist/mousehandlers/IrisGridDataSelectMouseHandler.js +6 -1
- package/dist/mousehandlers/IrisGridDataSelectMouseHandler.js.map +1 -1
- package/dist/mousehandlers/IrisGridFilterMouseHandler.d.ts +8 -4
- package/dist/mousehandlers/IrisGridFilterMouseHandler.d.ts.map +1 -1
- package/dist/mousehandlers/IrisGridFilterMouseHandler.js +8 -1
- package/dist/mousehandlers/IrisGridFilterMouseHandler.js.map +1 -1
- package/dist/mousehandlers/IrisGridSortMouseHandler.d.ts +9 -6
- package/dist/mousehandlers/IrisGridSortMouseHandler.d.ts.map +1 -1
- package/dist/mousehandlers/IrisGridSortMouseHandler.js +8 -1
- package/dist/mousehandlers/IrisGridSortMouseHandler.js.map +1 -1
- package/dist/mousehandlers/PendingMouseHandler.d.ts +1 -1
- package/dist/mousehandlers/index.d.ts +7 -7
- package/dist/mousehandlers/index.d.ts.map +1 -1
- package/dist/mousehandlers/index.js.map +1 -1
- package/dist/sidebar/AdvancedSettingsMenu.d.ts +0 -1
- package/dist/sidebar/AdvancedSettingsMenu.d.ts.map +1 -1
- package/dist/sidebar/ChartBuilder.d.ts +1 -2
- package/dist/sidebar/CustomColumnBuilder.d.ts +1 -2
- package/dist/sidebar/RollupRows.d.ts +1 -2
- package/dist/sidebar/SelectDistinctBuilder.d.ts +1 -2
- package/dist/sidebar/TableCsvExporter.d.ts +2 -3
- package/dist/sidebar/VisibilityOrderingBuilder.d.ts +1 -2
- package/dist/sidebar/aggregations/AggregationEdit.d.ts +0 -1
- package/dist/sidebar/aggregations/AggregationEdit.d.ts.map +1 -1
- package/dist/sidebar/aggregations/Aggregations.d.ts +0 -1
- package/dist/sidebar/aggregations/Aggregations.d.ts.map +1 -1
- package/package.json +15 -15
package/dist/IrisGridModel.js
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
2
|
-
|
|
3
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
4
|
-
|
|
5
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
2
|
|
|
7
|
-
/* eslint class-methods-use-this
|
|
8
|
-
|
|
9
|
-
/* eslint no-unused-vars: "off" */
|
|
3
|
+
/* eslint-disable class-methods-use-this */
|
|
10
4
|
import { GridModel } from '@deephaven/grid';
|
|
11
|
-
|
|
12
|
-
import Formatter from "./Formatter.js";
|
|
5
|
+
|
|
13
6
|
/**
|
|
14
7
|
* Abstract class that extends the GridModel to have more functionality, like filtering and sorting.
|
|
15
8
|
* For use from IrisGrid.
|
|
@@ -17,15 +10,20 @@ import Formatter from "./Formatter.js";
|
|
|
17
10
|
* Note that it still uses dh.Column, dh.FilterCondition, dh.Sort, etc., still. Theoretically should abstract
|
|
18
11
|
* those out as well, so there's no dependency on IrisAPI at all, but it's a lot of work for no real gain at this time.
|
|
19
12
|
*/
|
|
20
|
-
|
|
21
13
|
class IrisGridModel extends GridModel {
|
|
22
14
|
constructor() {
|
|
23
15
|
super();
|
|
16
|
+
|
|
17
|
+
_defineProperty(this, "listenerCount", void 0);
|
|
18
|
+
|
|
24
19
|
this.listenerCount = 0;
|
|
25
20
|
}
|
|
26
21
|
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
// Pulled directly from event-target-shim implementation signature
|
|
23
|
+
// https://github.com/mysticatea/event-target-shim/blob/master/src/lib/event-target.ts#L99
|
|
24
|
+
// Using Parameters<GridModel['addEventListener']> doesn't work
|
|
25
|
+
addEventListener(type0, callback0, options0) {
|
|
26
|
+
super.addEventListener(type0, callback0, options0);
|
|
29
27
|
this.listenerCount += 1;
|
|
30
28
|
|
|
31
29
|
if (this.listenerCount === 1) {
|
|
@@ -33,8 +31,8 @@ class IrisGridModel extends GridModel {
|
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
removeEventListener() {
|
|
37
|
-
super.removeEventListener(
|
|
34
|
+
removeEventListener(type0, callback0, options0) {
|
|
35
|
+
super.removeEventListener(type0, callback0, options0);
|
|
38
36
|
this.listenerCount -= 1;
|
|
39
37
|
|
|
40
38
|
if (this.listenerCount === 0) {
|
|
@@ -47,198 +45,44 @@ class IrisGridModel extends GridModel {
|
|
|
47
45
|
*/
|
|
48
46
|
|
|
49
47
|
|
|
50
|
-
startListening() {
|
|
48
|
+
startListening() {// no-op
|
|
49
|
+
}
|
|
51
50
|
/**
|
|
52
51
|
* Function called when last listener is removed.
|
|
53
52
|
* Override for implementation specific behaviour.
|
|
54
53
|
*/
|
|
55
54
|
|
|
56
55
|
|
|
57
|
-
stopListening() {
|
|
58
|
-
/**
|
|
59
|
-
* Gets the columns for this model
|
|
60
|
-
* @returns {dh.Column[]} All columns in the model
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
get columns() {
|
|
65
|
-
throw new Error('get columns not implemented');
|
|
56
|
+
stopListening() {// no-op
|
|
66
57
|
}
|
|
67
58
|
/**
|
|
68
|
-
* Gets the
|
|
69
|
-
* @
|
|
70
|
-
* @returns {Number} The numeric index of the requested column.
|
|
59
|
+
* Gets the columns for this model
|
|
60
|
+
* @returns All columns in the model
|
|
71
61
|
*/
|
|
72
62
|
|
|
73
63
|
|
|
74
|
-
getColumnIndexByName(name) {
|
|
75
|
-
throw new Error('getColumnIndexByName not implemented');
|
|
76
|
-
}
|
|
77
64
|
/**
|
|
78
65
|
* Gets the columns for the model before any transformations (such as rollups) are applied.
|
|
79
|
-
* @returns
|
|
66
|
+
* @returns All original columns in the model.
|
|
80
67
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
68
|
get originalColumns() {
|
|
84
69
|
return this.columns;
|
|
85
70
|
}
|
|
86
71
|
/**
|
|
87
72
|
* Retrieve the grouped columns for this model
|
|
88
|
-
* @returns
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
get groupedColumns() {
|
|
93
|
-
throw new Error('get groupedColumns not implemented');
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* The description for this model.
|
|
97
|
-
* @returns {String} The description of the model
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
get description() {
|
|
102
|
-
throw new Error('get description not implemented');
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* @param {Number} x The model column index
|
|
106
|
-
* @param {Number} y The model row index
|
|
107
|
-
* @returns {dh.Format} The format stored for that cell
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
formatForCell(x, y) {
|
|
112
|
-
throw new Error('formatForCell not implemented');
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* @param {Number} x The model column index
|
|
116
|
-
* @param {Number} y The model row index
|
|
117
|
-
* @returns {Any} The value stored for that cell
|
|
118
|
-
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
valueForCell(x, y) {
|
|
122
|
-
throw new Error('valueForCell not implemented');
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* @returns {FilterCondition[]} The filters set on this model
|
|
126
|
-
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
get filter() {
|
|
130
|
-
throw new Error('get filter not implemented');
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* @param {FilterCondition[]} filter The filters to set
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
set filter(filter) {
|
|
138
|
-
throw new Error('set filter not implemented');
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* @returns {Formatter} The formatter used when formatting data
|
|
142
|
-
*/
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
get formatter() {
|
|
146
|
-
throw new Error('get formatter not implemented');
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* @param {Formatter} formatter The formatter to set
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
set formatter(formatter) {
|
|
154
|
-
throw new Error('set formatter not implemented');
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* @param {Any} value The value to format
|
|
158
|
-
* @param {String} columnType The column type to format
|
|
159
|
-
* @param {String} columnName The column name to format
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
displayString(value, columnType) {
|
|
164
|
-
var columnName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
165
|
-
throw new Error('displayString not implemented');
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* @returns {dh.Sort[]} The sorts used on this model
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
get sort() {
|
|
173
|
-
throw new Error('get sort not implemented');
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* @param {dh.Sort[]} sort The sorts to use on this model
|
|
177
|
-
*/
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
set sort(sort) {
|
|
181
|
-
throw new Error('set sort not implemented');
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* @returns {String[]} The custom columns on this model
|
|
185
|
-
*/
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
get customColumns() {
|
|
189
|
-
throw new Error('get customColumns not implemented');
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* @param {String[]} customColumns The custom columns to use
|
|
193
|
-
*/
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
set customColumns(customColumns) {
|
|
197
|
-
throw new Error('set customColumns not implemented');
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* @param {String[]} columns The columns to treat as frozen
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
updateFrozenColumns(columns) {
|
|
205
|
-
throw new Error('updateFrozenColumns not implemented');
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @returns {dh.RollupTableConfig} The config to use for rolling up this table
|
|
209
|
-
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
get rollupConfig() {
|
|
213
|
-
throw new Error('get rollupConfig not implemented');
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
set rollupConfig(rollupConfig) {
|
|
217
|
-
throw new Error('set rollupConfig not implemented');
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* @returns {dh.TotalsTableConfig} The config to use for the totals table of this model
|
|
73
|
+
* @returns The columns that are grouped
|
|
221
74
|
*/
|
|
222
75
|
|
|
223
76
|
|
|
224
|
-
get totalsConfig() {
|
|
225
|
-
throw new Error('get totalsConfig not implemented');
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
set totalsConfig(totalsConfig) {
|
|
229
|
-
throw new Error('set totalsConfig not implemented');
|
|
230
|
-
}
|
|
231
77
|
/**
|
|
232
|
-
* @returns
|
|
78
|
+
* @returns The LayoutHints to use for the columns of this table model
|
|
233
79
|
*/
|
|
234
|
-
|
|
235
|
-
|
|
236
80
|
get layoutHints() {
|
|
237
81
|
return null;
|
|
238
82
|
}
|
|
239
83
|
/**
|
|
240
|
-
* @param
|
|
241
|
-
* @returns
|
|
84
|
+
* @param index The column index to check
|
|
85
|
+
* @returns Whether the column is one of LayoutHints' frozen columns
|
|
242
86
|
*/
|
|
243
87
|
|
|
244
88
|
|
|
@@ -246,7 +90,7 @@ class IrisGridModel extends GridModel {
|
|
|
246
90
|
return false;
|
|
247
91
|
}
|
|
248
92
|
/**
|
|
249
|
-
* @returns
|
|
93
|
+
* @returns True if this model requires a filter to be set
|
|
250
94
|
*/
|
|
251
95
|
|
|
252
96
|
|
|
@@ -258,7 +102,7 @@ class IrisGridModel extends GridModel {
|
|
|
258
102
|
return true;
|
|
259
103
|
}
|
|
260
104
|
/**
|
|
261
|
-
* @returns
|
|
105
|
+
* @returns True if this model supports the columnStatistics(column) function
|
|
262
106
|
*/
|
|
263
107
|
|
|
264
108
|
|
|
@@ -266,7 +110,7 @@ class IrisGridModel extends GridModel {
|
|
|
266
110
|
return false;
|
|
267
111
|
}
|
|
268
112
|
/**
|
|
269
|
-
* @returns
|
|
113
|
+
* @returns True if this model supports customColumns
|
|
270
114
|
*/
|
|
271
115
|
|
|
272
116
|
|
|
@@ -274,7 +118,7 @@ class IrisGridModel extends GridModel {
|
|
|
274
118
|
return false;
|
|
275
119
|
}
|
|
276
120
|
/**
|
|
277
|
-
* @returns
|
|
121
|
+
* @returns True if this model supports the export() function
|
|
278
122
|
*/
|
|
279
123
|
|
|
280
124
|
|
|
@@ -282,7 +126,7 @@ class IrisGridModel extends GridModel {
|
|
|
282
126
|
return false;
|
|
283
127
|
}
|
|
284
128
|
/**
|
|
285
|
-
* @returns
|
|
129
|
+
* @returns True if this model supports the valuesTable(column) function
|
|
286
130
|
*/
|
|
287
131
|
|
|
288
132
|
|
|
@@ -290,7 +134,7 @@ class IrisGridModel extends GridModel {
|
|
|
290
134
|
return false;
|
|
291
135
|
}
|
|
292
136
|
/**
|
|
293
|
-
* @returns
|
|
137
|
+
* @returns True if this model should allow the chart builder
|
|
294
138
|
*/
|
|
295
139
|
|
|
296
140
|
|
|
@@ -298,7 +142,7 @@ class IrisGridModel extends GridModel {
|
|
|
298
142
|
return false;
|
|
299
143
|
}
|
|
300
144
|
/**
|
|
301
|
-
* @returns
|
|
145
|
+
* @returns True if the rollup rows functionality is available
|
|
302
146
|
*/
|
|
303
147
|
|
|
304
148
|
|
|
@@ -306,151 +150,48 @@ class IrisGridModel extends GridModel {
|
|
|
306
150
|
return false;
|
|
307
151
|
}
|
|
308
152
|
/**
|
|
309
|
-
* @
|
|
153
|
+
* @return True if select distinct functionality is available
|
|
310
154
|
*/
|
|
311
155
|
|
|
312
156
|
|
|
313
|
-
get
|
|
157
|
+
get isSelectDistinctAvailable() {
|
|
314
158
|
return false;
|
|
315
159
|
}
|
|
316
160
|
/**
|
|
317
|
-
*
|
|
318
|
-
* @returns {Map<number, Map<string, value>>} A map of row index to a map of column name/value pairs
|
|
319
|
-
*/
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
get pendingDataMap() {
|
|
323
|
-
throw new Error('get pendingDataMap not implemented');
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Set the pending data for this model
|
|
327
|
-
* @param {Map<number, Map<string, value>>} A map of row index to a map of column name/value pairs
|
|
328
|
-
*/
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
set pendingDataMap(map) {
|
|
332
|
-
throw new Error('set pendingDataMap not implemented');
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* @returns {number} The count of pending rows to show
|
|
336
|
-
*/
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
get pendingRowCount() {
|
|
340
|
-
throw new Error('get pendingRowCount not implemented');
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* Set the count of pending rows to show
|
|
344
|
-
* @param {number} count The count of pending rows to show
|
|
345
|
-
*/
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
set pendingRowCount(count) {
|
|
349
|
-
throw new Error('set pendingRowCount not implemented');
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* Errors for the pending data
|
|
353
|
-
* @returns {Map<number, Error>} Map from row number to the error
|
|
161
|
+
* @returns True if the totals functionality is available
|
|
354
162
|
*/
|
|
355
163
|
|
|
356
164
|
|
|
357
|
-
get
|
|
358
|
-
|
|
165
|
+
get isTotalsAvailable() {
|
|
166
|
+
return false;
|
|
359
167
|
}
|
|
360
168
|
/**
|
|
361
|
-
*
|
|
169
|
+
* The names of columns with select distinct enabled
|
|
170
|
+
* @returns An array of column names
|
|
362
171
|
*/
|
|
363
172
|
|
|
364
173
|
|
|
365
|
-
commitPending() {
|
|
366
|
-
return _asyncToGenerator(function* () {
|
|
367
|
-
throw new Error('commitPending not implemented');
|
|
368
|
-
})();
|
|
369
|
-
}
|
|
370
174
|
/**
|
|
371
175
|
* Check if a column is filterable
|
|
372
|
-
* @param columnIndex
|
|
373
|
-
* @returns
|
|
176
|
+
* @param columnIndex The column index to check for filterability
|
|
177
|
+
* @returns True if the current provided column index is filterable, false otherwise
|
|
374
178
|
*/
|
|
375
|
-
|
|
376
|
-
|
|
377
179
|
isFilterable(columnIndex) {
|
|
378
180
|
return false;
|
|
379
181
|
}
|
|
380
182
|
/**
|
|
381
183
|
* Set the indices of the viewport
|
|
382
|
-
* @param
|
|
383
|
-
* @param
|
|
384
|
-
* @param
|
|
385
|
-
*/
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
setViewport(top, bottom, columns) {
|
|
389
|
-
throw new Error('setViewport not implemented');
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* Takes a snapshot of the provided ranges
|
|
393
|
-
* @param {GridRange[]} ranges The model ranges to take the snapshot of
|
|
394
|
-
* @returns {unknown[][]} Returns the data in a row/column matrix
|
|
395
|
-
*/
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
snapshot(ranges) {
|
|
399
|
-
return _asyncToGenerator(function* () {
|
|
400
|
-
throw new Error('snapshot not implemented');
|
|
401
|
-
})();
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* @param {GridRange[]} ranges The ranges to take a snapshot of
|
|
405
|
-
* @param {boolean} includeHeaders Whether to include the headers in the snapshot or not
|
|
406
|
-
* @param {(unknown, dh.Column, dh.Row) => string} formatValue A function to format a value for a cell. Defaults to model format value.
|
|
407
|
-
* @returns {Promise<string>} A text formatted snapshot of the data for the specified range set
|
|
184
|
+
* @param top Top of viewport
|
|
185
|
+
* @param bottom Bottom of viewport
|
|
186
|
+
* @param columns The columns in the viewport. `null` for all columns
|
|
408
187
|
*/
|
|
409
188
|
|
|
410
189
|
|
|
411
|
-
textSnapshot(ranges, includeHeaders, formatValue) {
|
|
412
|
-
return _asyncToGenerator(function* () {
|
|
413
|
-
throw new Error('textSnapshot not implemented');
|
|
414
|
-
})();
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* @returns {Promise<dh.Table>} Returns a raw table that is frozen and can be used for exporting data
|
|
418
|
-
*/
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
export() {
|
|
422
|
-
return _asyncToGenerator(function* () {
|
|
423
|
-
throw new Error('export not implemented');
|
|
424
|
-
})();
|
|
425
|
-
}
|
|
426
|
-
/**
|
|
427
|
-
* @param {dh.Column} column The column to get the distinct values for
|
|
428
|
-
* @returns {Promise<dh.Table>} A table partitioned on the column specified
|
|
429
|
-
*/
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
valuesTable(column) {
|
|
433
|
-
return _asyncToGenerator(function* () {
|
|
434
|
-
throw new Error('getValuesTable not implemented');
|
|
435
|
-
})();
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* @param {dh.Column} column The column to get statistics for
|
|
439
|
-
* @returns {Promise<dh.ColumnStatistics>} The column statistics
|
|
440
|
-
*/
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
columnStatistics(column) {
|
|
444
|
-
return _asyncToGenerator(function* () {
|
|
445
|
-
throw new Error('columnStatistics not implemented');
|
|
446
|
-
})();
|
|
447
|
-
}
|
|
448
190
|
/**
|
|
449
191
|
* Close this model. It can no longer be used after being closed
|
|
450
192
|
*/
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
close() {}
|
|
193
|
+
close() {// no-op
|
|
194
|
+
}
|
|
454
195
|
/**
|
|
455
196
|
* Don't allow any rows to be movable in any IrisGrids by default. Just columns.
|
|
456
197
|
*/
|
|
@@ -461,15 +202,11 @@ class IrisGridModel extends GridModel {
|
|
|
461
202
|
}
|
|
462
203
|
/**
|
|
463
204
|
* Delete ranges from an input grid. Will delete the entire row, causing data to shift up
|
|
464
|
-
* @param
|
|
465
|
-
* @returns
|
|
205
|
+
* @param ranges The ranges to delete
|
|
206
|
+
* @returns A promise that resolves successfully when the operation is complete or rejects if there's an error
|
|
466
207
|
*/
|
|
467
208
|
|
|
468
209
|
|
|
469
|
-
delete(ranges) {
|
|
470
|
-
throw new Error('delete not implemented');
|
|
471
|
-
}
|
|
472
|
-
|
|
473
210
|
}
|
|
474
211
|
|
|
475
212
|
_defineProperty(IrisGridModel, "EVENT", Object.freeze({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/IrisGridModel.js"],"names":["GridModel","dh","Formatter","IrisGridModel","constructor","listenerCount","addEventListener","startListening","removeEventListener","stopListening","columns","Error","getColumnIndexByName","name","originalColumns","groupedColumns","description","formatForCell","x","y","valueForCell","filter","formatter","displayString","value","columnType","columnName","sort","customColumns","updateFrozenColumns","rollupConfig","totalsConfig","layoutHints","isColumnFrozen","index","isFilterRequired","isReversible","isColumnStatisticsAvailable","isCustomColumnsAvailable","isExportAvailable","isValuesTableAvailable","isChartBuilderAvailable","isRollupAvailable","isTotalsAvailable","pendingDataMap","map","pendingRowCount","count","pendingDataErrors","commitPending","isFilterable","columnIndex","setViewport","top","bottom","snapshot","ranges","textSnapshot","includeHeaders","formatValue","export","valuesTable","column","columnStatistics","close","isRowMovable","delete","Object","freeze","UPDATED","FORMATTER_UPDATED","REQUEST_FAILED","COLUMNS_CHANGED","TABLE_CHANGED","FILTERS_CHANGED","SORTS_CHANGED","DISCONNECT","RECONNECT","TOTALS_UPDATED","PENDING_DATA_UPDATED"],"mappings":";;;;;;A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,WAAW,CAACC,MAAD,EAAS;AAAA;AACxB,YAAM,IAAInD,KAAJ,CAAU,gCAAV,CAAN;AADwB;AAEzB;AAED;AACF;AACA;AACA;;;AACQoD,EAAAA,gBAAgB,CAACD,MAAD,EAAS;AAAA;AAC7B,YAAM,IAAInD,KAAJ,CAAU,kCAAV,CAAN;AAD6B;AAE9B;AAED;AACF;AACA;;;AACEqD,EAAAA,KAAK,GAAG,CAAE;AAEV;AACF;AACA;;;AACEC,EAAAA,YAAY,GAAG;AACb,WAAO,KAAP;AACD;AAED;AACF;AACA;AACA;AACA;;;AACEC,EAAAA,MAAM,CAACV,MAAD,EAAS;AACb,UAAM,IAAI7C,KAAJ,CAAU,wBAAV,CAAN;AACD;;AArZmC;;gBAAhCR,a,WACWgE,MAAM,CAACC,MAAP,CAAc;AAC3BC,EAAAA,OAAO,EAAE,SADkB;AAE3BC,EAAAA,iBAAiB,EAAE,mBAFQ;AAG3BC,EAAAA,cAAc,EAAE,gBAHW;AAI3BC,EAAAA,eAAe,EAAE,iBAJU;AAK3BC,EAAAA,aAAa,EAAE,eALY;AAM3BC,EAAAA,eAAe,EAAE,iBANU;AAO3BC,EAAAA,aAAa,EAAE,eAPY;AAQ3BC,EAAAA,UAAU,EAAE,YARe;AAS3BC,EAAAA,SAAS,EAAE,WATgB;AAU3BC,EAAAA,cAAc,EAAE,gBAVW;AAW3BC,EAAAA,oBAAoB,EAAE;AAXK,CAAd,C;;AAuZjB,eAAe5E,aAAf","sourcesContent":["/* eslint class-methods-use-this: \"off\" */\n/* eslint no-unused-vars: \"off\" */\nimport { GridModel } from '@deephaven/grid';\nimport dh from '@deephaven/jsapi-shim';\nimport Formatter from './Formatter';\n\n/**\n * Abstract class that extends the GridModel to have more functionality, like filtering and sorting.\n * For use from IrisGrid.\n * Provides some abstraction from the dh.Table and dh.TreeTable classes, so we can treat them somewhat the same.\n * Note that it still uses dh.Column, dh.FilterCondition, dh.Sort, etc., still. Theoretically should abstract\n * those out as well, so there's no dependency on IrisAPI at all, but it's a lot of work for no real gain at this time.\n */\nclass IrisGridModel extends GridModel {\n static EVENT = Object.freeze({\n UPDATED: 'UPDATED',\n FORMATTER_UPDATED: 'FORMATTER_UPDATED',\n REQUEST_FAILED: 'REQUEST_FAILED',\n COLUMNS_CHANGED: 'COLUMNS_CHANGED',\n TABLE_CHANGED: 'TABLE_CHANGED',\n FILTERS_CHANGED: 'FILTERS_CHANGED',\n SORTS_CHANGED: 'SORTS_CHANGED',\n DISCONNECT: 'DISCONNECT',\n RECONNECT: 'RECONNECT',\n TOTALS_UPDATED: 'TOTALS_UPDATED',\n PENDING_DATA_UPDATED: 'PENDING_DATA_UPDATED',\n });\n\n constructor() {\n super();\n\n this.listenerCount = 0;\n }\n\n addEventListener(...args) {\n super.addEventListener(...args);\n\n this.listenerCount += 1;\n if (this.listenerCount === 1) {\n this.startListening();\n }\n }\n\n removeEventListener(...args) {\n super.removeEventListener(...args);\n\n this.listenerCount -= 1;\n if (this.listenerCount === 0) {\n this.stopListening();\n }\n }\n\n /**\n * Function called when first listener is added.\n * Override for implementation specific behaviour.\n */\n startListening() {}\n\n /**\n * Function called when last listener is removed.\n * Override for implementation specific behaviour.\n */\n stopListening() {}\n\n /**\n * Gets the columns for this model\n * @returns {dh.Column[]} All columns in the model\n */\n get columns() {\n throw new Error('get columns not implemented');\n }\n\n /**\n * Gets the column index for this model\n * @param {String} name The model column name.\n * @returns {Number} The numeric index of the requested column.\n */\n getColumnIndexByName(name) {\n throw new Error('getColumnIndexByName not implemented');\n }\n\n /**\n * Gets the columns for the model before any transformations (such as rollups) are applied.\n * @returns {dh.Column[]} All original columns in the model.\n */\n get originalColumns() {\n return this.columns;\n }\n\n /**\n * Retrieve the grouped columns for this model\n * @returns {dh.Column[]} The columns that are grouped\n */\n get groupedColumns() {\n throw new Error('get groupedColumns not implemented');\n }\n\n /**\n * The description for this model.\n * @returns {String} The description of the model\n */\n get description() {\n throw new Error('get description not implemented');\n }\n\n /**\n * @param {Number} x The model column index\n * @param {Number} y The model row index\n * @returns {dh.Format} The format stored for that cell\n */\n formatForCell(x, y) {\n throw new Error('formatForCell not implemented');\n }\n\n /**\n * @param {Number} x The model column index\n * @param {Number} y The model row index\n * @returns {Any} The value stored for that cell\n */\n valueForCell(x, y) {\n throw new Error('valueForCell not implemented');\n }\n\n /**\n * @returns {FilterCondition[]} The filters set on this model\n */\n get filter() {\n throw new Error('get filter not implemented');\n }\n\n /**\n * @param {FilterCondition[]} filter The filters to set\n */\n set filter(filter) {\n throw new Error('set filter not implemented');\n }\n\n /**\n * @returns {Formatter} The formatter used when formatting data\n */\n get formatter() {\n throw new Error('get formatter not implemented');\n }\n\n /**\n * @param {Formatter} formatter The formatter to set\n */\n set formatter(formatter) {\n throw new Error('set formatter not implemented');\n }\n\n /**\n * @param {Any} value The value to format\n * @param {String} columnType The column type to format\n * @param {String} columnName The column name to format\n */\n displayString(value, columnType, columnName = '') {\n throw new Error('displayString not implemented');\n }\n\n /**\n * @returns {dh.Sort[]} The sorts used on this model\n */\n get sort() {\n throw new Error('get sort not implemented');\n }\n\n /**\n * @param {dh.Sort[]} sort The sorts to use on this model\n */\n set sort(sort) {\n throw new Error('set sort not implemented');\n }\n\n /**\n * @returns {String[]} The custom columns on this model\n */\n get customColumns() {\n throw new Error('get customColumns not implemented');\n }\n\n /**\n * @param {String[]} customColumns The custom columns to use\n */\n set customColumns(customColumns) {\n throw new Error('set customColumns not implemented');\n }\n\n /**\n * @param {String[]} columns The columns to treat as frozen\n */\n updateFrozenColumns(columns) {\n throw new Error('updateFrozenColumns not implemented');\n }\n\n /**\n * @returns {dh.RollupTableConfig} The config to use for rolling up this table\n */\n get rollupConfig() {\n throw new Error('get rollupConfig not implemented');\n }\n\n set rollupConfig(rollupConfig) {\n throw new Error('set rollupConfig not implemented');\n }\n\n /**\n * @returns {dh.TotalsTableConfig} The config to use for the totals table of this model\n */\n get totalsConfig() {\n throw new Error('get totalsConfig not implemented');\n }\n\n set totalsConfig(totalsConfig) {\n throw new Error('set totalsConfig not implemented');\n }\n\n /**\n * @returns {dh.LayoutHints|null} The LayoutHints to use for the columns of this table model\n */\n get layoutHints() {\n return null;\n }\n\n /**\n * @param {Number} index The column index to check\n * @returns {Boolean} Whether the column is one of LayoutHints' frozen columns\n */\n isColumnFrozen(index) {\n return false;\n }\n\n /**\n * @returns {boolean} True if this model requires a filter to be set\n */\n get isFilterRequired() {\n return false;\n }\n\n get isReversible() {\n return true;\n }\n\n /**\n * @returns {boolean} True if this model supports the columnStatistics(column) function\n */\n get isColumnStatisticsAvailable() {\n return false;\n }\n\n /**\n * @returns {boolean} True if this model supports customColumns\n */\n get isCustomColumnsAvailable() {\n return false;\n }\n\n /**\n * @returns {boolean} True if this model supports the export() function\n */\n get isExportAvailable() {\n return false;\n }\n\n /**\n * @returns {boolean} True if this model supports the valuesTable(column) function\n */\n get isValuesTableAvailable() {\n return false;\n }\n\n /**\n * @returns {boolean} True if this model should allow the chart builder\n */\n get isChartBuilderAvailable() {\n return false;\n }\n\n /**\n * @returns {boolean} True if the rollup rows functionality is available\n */\n get isRollupAvailable() {\n return false;\n }\n\n /**\n * @returns {boolean} True if the totals functionality is available\n */\n get isTotalsAvailable() {\n return false;\n }\n\n /**\n * The pending data for this model\n * @returns {Map<number, Map<string, value>>} A map of row index to a map of column name/value pairs\n */\n get pendingDataMap() {\n throw new Error('get pendingDataMap not implemented');\n }\n\n /**\n * Set the pending data for this model\n * @param {Map<number, Map<string, value>>} A map of row index to a map of column name/value pairs\n */\n set pendingDataMap(map) {\n throw new Error('set pendingDataMap not implemented');\n }\n\n /**\n * @returns {number} The count of pending rows to show\n */\n get pendingRowCount() {\n throw new Error('get pendingRowCount not implemented');\n }\n\n /**\n * Set the count of pending rows to show\n * @param {number} count The count of pending rows to show\n */\n set pendingRowCount(count) {\n throw new Error('set pendingRowCount not implemented');\n }\n\n /**\n * Errors for the pending data\n * @returns {Map<number, Error>} Map from row number to the error\n */\n get pendingDataErrors() {\n throw new Error('get pendingDataErrors not implemented');\n }\n\n /**\n * Commit pending data and save all data to the table\n */\n async commitPending() {\n throw new Error('commitPending not implemented');\n }\n\n /**\n * Check if a column is filterable\n * @param columnIndex {number} The column index to check for filterability\n * @returns {boolean} True if the current provided column index is filterable, false otherwise\n */\n isFilterable(columnIndex) {\n return false;\n }\n\n /**\n * Set the indices of the viewport\n * @param {number} top Top of viewport\n * @param {number} bottom Bottom of viewport\n * @param {Iris.Column[]} columns The columns in the viewport. `null` for all columns\n */\n setViewport(top, bottom, columns) {\n throw new Error('setViewport not implemented');\n }\n\n /**\n * Takes a snapshot of the provided ranges\n * @param {GridRange[]} ranges The model ranges to take the snapshot of\n * @returns {unknown[][]} Returns the data in a row/column matrix\n */\n async snapshot(ranges) {\n throw new Error('snapshot not implemented');\n }\n\n /**\n * @param {GridRange[]} ranges The ranges to take a snapshot of\n * @param {boolean} includeHeaders Whether to include the headers in the snapshot or not\n * @param {(unknown, dh.Column, dh.Row) => string} formatValue A function to format a value for a cell. Defaults to model format value.\n * @returns {Promise<string>} A text formatted snapshot of the data for the specified range set\n */\n async textSnapshot(ranges, includeHeaders, formatValue) {\n throw new Error('textSnapshot not implemented');\n }\n\n /**\n * @returns {Promise<dh.Table>} Returns a raw table that is frozen and can be used for exporting data\n */\n async export() {\n throw new Error('export not implemented');\n }\n\n /**\n * @param {dh.Column} column The column to get the distinct values for\n * @returns {Promise<dh.Table>} A table partitioned on the column specified\n */\n async valuesTable(column) {\n throw new Error('getValuesTable not implemented');\n }\n\n /**\n * @param {dh.Column} column The column to get statistics for\n * @returns {Promise<dh.ColumnStatistics>} The column statistics\n */\n async columnStatistics(column) {\n throw new Error('columnStatistics not implemented');\n }\n\n /**\n * Close this model. It can no longer be used after being closed\n */\n close() {}\n\n /**\n * Don't allow any rows to be movable in any IrisGrids by default. Just columns.\n */\n isRowMovable() {\n return false;\n }\n\n /**\n * Delete ranges from an input grid. Will delete the entire row, causing data to shift up\n * @param {GridRange[]} ranges The ranges to delete\n * @returns {Promise<void>} A promise that resolves successfully when the operation is complete or rejects if there's an error\n */\n delete(ranges) {\n throw new Error('delete not implemented');\n }\n}\n\nexport default IrisGridModel;\n"],"file":"IrisGridModel.js"}
|
|
1
|
+
{"version":3,"sources":["../src/IrisGridModel.ts"],"names":["GridModel","IrisGridModel","constructor","listenerCount","addEventListener","type0","callback0","options0","startListening","removeEventListener","stopListening","originalColumns","columns","layoutHints","isColumnFrozen","index","isFilterRequired","isReversible","isColumnStatisticsAvailable","isCustomColumnsAvailable","isExportAvailable","isValuesTableAvailable","isChartBuilderAvailable","isRollupAvailable","isSelectDistinctAvailable","isTotalsAvailable","isFilterable","columnIndex","close","isRowMovable","Object","freeze","UPDATED","FORMATTER_UPDATED","REQUEST_FAILED","COLUMNS_CHANGED","TABLE_CHANGED","FILTERS_CHANGED","SORTS_CHANGED","DISCONNECT","RECONNECT","TOTALS_UPDATED","PENDING_DATA_UPDATED"],"mappings":"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","sourcesContent":["/* eslint-disable class-methods-use-this */\nimport {\n GridModel,\n GridRange,\n ModelIndex,\n VisibleIndex,\n} from '@deephaven/grid';\nimport type {\n Column,\n ColumnStatistics,\n FilterCondition,\n Format,\n LayoutHints,\n RollupConfig,\n Row,\n Sort,\n Table,\n TotalsTableConfig,\n} from '@deephaven/jsapi-shim';\nimport type { Event, EventTarget } from 'event-target-shim';\nimport type Formatter from './Formatter';\n\ntype RowIndex = ModelIndex;\n\ntype IrisGridModelEventNames = typeof IrisGridModel.EVENT[keyof typeof IrisGridModel.EVENT];\n\ntype IrisGridModelEventMap = {\n [E in IrisGridModelEventNames]: Event<E>;\n};\n\n/**\n * Abstract class that extends the GridModel to have more functionality, like filtering and sorting.\n * For use from IrisGrid.\n * Provides some abstraction from the dh.Table and dh.TreeTable classes, so we can treat them somewhat the same.\n * Note that it still uses dh.Column, dh.FilterCondition, dh.Sort, etc., still. Theoretically should abstract\n * those out as well, so there's no dependency on IrisAPI at all, but it's a lot of work for no real gain at this time.\n */\nabstract class IrisGridModel<\n TEventMap extends Record<string, Event<string>> = Record<\n string,\n Event<string>\n >,\n TMode extends 'standard' | 'strict' = 'standard'\n> extends GridModel<TEventMap & IrisGridModelEventMap, TMode> {\n static EVENT = Object.freeze({\n UPDATED: 'UPDATED',\n FORMATTER_UPDATED: 'FORMATTER_UPDATED',\n REQUEST_FAILED: 'REQUEST_FAILED',\n COLUMNS_CHANGED: 'COLUMNS_CHANGED',\n TABLE_CHANGED: 'TABLE_CHANGED',\n FILTERS_CHANGED: 'FILTERS_CHANGED',\n SORTS_CHANGED: 'SORTS_CHANGED',\n DISCONNECT: 'DISCONNECT',\n RECONNECT: 'RECONNECT',\n TOTALS_UPDATED: 'TOTALS_UPDATED',\n PENDING_DATA_UPDATED: 'PENDING_DATA_UPDATED',\n } as const);\n\n constructor() {\n super();\n\n this.listenerCount = 0;\n }\n\n listenerCount: number;\n\n // Pulled directly from event-target-shim implementation signature\n // https://github.com/mysticatea/event-target-shim/blob/master/src/lib/event-target.ts#L99\n // Using Parameters<GridModel['addEventListener']> doesn't work\n addEventListener<T extends string & keyof TEventMap>(\n type0: T,\n callback0?: EventTarget.EventListener<this, TEventMap[T]> | null,\n options0?: boolean | EventTarget.AddOptions\n ): void {\n super.addEventListener(type0, callback0 as never, options0 as never);\n\n this.listenerCount += 1;\n if (this.listenerCount === 1) {\n this.startListening();\n }\n }\n\n removeEventListener<T extends string & keyof TEventMap>(\n type0: T,\n callback0?: EventTarget.EventListener<this, TEventMap[T]> | null,\n options0?: boolean | EventTarget.Options\n ): void {\n super.removeEventListener(type0, callback0 as never, options0 as never);\n\n this.listenerCount -= 1;\n if (this.listenerCount === 0) {\n this.stopListening();\n }\n }\n\n /**\n * Function called when first listener is added.\n * Override for implementation specific behaviour.\n */\n startListening(): void {\n // no-op\n }\n\n /**\n * Function called when last listener is removed.\n * Override for implementation specific behaviour.\n */\n stopListening(): void {\n // no-op\n }\n\n /**\n * Gets the columns for this model\n * @returns All columns in the model\n */\n abstract get columns(): Column[];\n\n /**\n * Gets the column index for this model\n * @param name The model column name.\n * @returns The numeric index of the requested column.\n */\n abstract getColumnIndexByName(name: string): ModelIndex;\n\n /**\n * Gets the columns for the model before any transformations (such as rollups) are applied.\n * @returns All original columns in the model.\n */\n get originalColumns(): Column[] {\n return this.columns;\n }\n\n /**\n * Retrieve the grouped columns for this model\n * @returns The columns that are grouped\n */\n abstract get groupedColumns(): Column[];\n\n /**\n * The description for this model.\n * @returns The description of the model\n */\n abstract get description(): string;\n\n /**\n * @param column The model column index\n * @param row The model row index\n * @returns The format stored for that cell\n */\n abstract formatForCell(\n column: ModelIndex,\n row: ModelIndex\n ): Format | undefined;\n\n /**\n * @param column The model column index\n * @param row The model row index\n * @returns The value stored for that cell\n */\n abstract valueForCell(column: ModelIndex, row: ModelIndex): unknown;\n\n /**\n * @returns The filters set on this model\n */\n abstract get filter(): FilterCondition[];\n\n /**\n * @param filter The filters to set\n */\n abstract set filter(filter: FilterCondition[]);\n\n /**\n * @returns {Formatter} The formatter used when formatting data\n */\n abstract get formatter(): Formatter;\n\n /**\n * @param {Formatter} formatter The formatter to set\n */\n abstract set formatter(formatter: Formatter);\n\n /**\n * @param value The value to format\n * @param columnType The column type to format\n * @param columnName The column name to format\n */\n abstract displayString(\n value: unknown,\n columnType: string,\n columnName?: string\n ): string;\n\n /**\n * @returns The sorts used on this model\n */\n abstract get sort(): Sort[];\n\n /**\n * @param sort The sorts to use on this model\n */\n abstract set sort(sort: Sort[]);\n\n /**\n * @returns The custom columns on this model\n */\n abstract get customColumns(): string[];\n\n /**\n * @param customColumns The custom columns to use\n */\n abstract set customColumns(customColumns: string[]);\n\n /**\n * @param columns The columns to treat as frozen\n */\n abstract updateFrozenColumns(columns: string[]): void;\n\n /**\n * @returns The config to use for rolling up this table\n */\n abstract get rollupConfig(): RollupConfig;\n\n abstract set rollupConfig(rollupConfig: RollupConfig);\n\n /**\n * @returns The config to use for the totals table of this model\n */\n abstract get totalsConfig(): TotalsTableConfig;\n\n abstract set totalsConfig(totalsConfig: TotalsTableConfig);\n\n /**\n * @returns The LayoutHints to use for the columns of this table model\n */\n get layoutHints(): LayoutHints | null {\n return null;\n }\n\n /**\n * @param index The column index to check\n * @returns Whether the column is one of LayoutHints' frozen columns\n */\n isColumnFrozen(index: ModelIndex): boolean {\n return false;\n }\n\n /**\n * @returns True if this model requires a filter to be set\n */\n get isFilterRequired(): boolean {\n return false;\n }\n\n get isReversible(): boolean {\n return true;\n }\n\n /**\n * @returns True if this model supports the columnStatistics(column) function\n */\n get isColumnStatisticsAvailable(): boolean {\n return false;\n }\n\n /**\n * @returns True if this model supports customColumns\n */\n get isCustomColumnsAvailable(): boolean {\n return false;\n }\n\n /**\n * @returns True if this model supports the export() function\n */\n get isExportAvailable(): boolean {\n return false;\n }\n\n /**\n * @returns True if this model supports the valuesTable(column) function\n */\n get isValuesTableAvailable(): boolean {\n return false;\n }\n\n /**\n * @returns True if this model should allow the chart builder\n */\n get isChartBuilderAvailable(): boolean {\n return false;\n }\n\n /**\n * @returns True if the rollup rows functionality is available\n */\n get isRollupAvailable(): boolean {\n return false;\n }\n\n /**\n * @return True if select distinct functionality is available\n */\n get isSelectDistinctAvailable(): boolean {\n return false;\n }\n\n /**\n * @returns True if the totals functionality is available\n */\n get isTotalsAvailable(): boolean {\n return false;\n }\n\n /**\n * The names of columns with select distinct enabled\n * @returns An array of column names\n */\n abstract get selectDistinctColumns(): string[];\n\n /**\n * Set the columns with select distinct enabled\n * @param names The array of column names to enable select distinct on\n */\n abstract set selectDistinctColumns(names: string[]);\n\n /**\n * The pending data for this model\n * @returns A map of row index to a map of column name/value pairs\n */\n abstract get pendingDataMap(): Map<RowIndex, Map<string, unknown>>;\n\n /**\n * Set the pending data for this model\n * @param A map of row index to a map of column name/value pairs\n */\n abstract set pendingDataMap(map: Map<RowIndex, Map<string, unknown>>);\n\n /**\n * @returns The count of pending rows to show\n */\n abstract get pendingRowCount(): number;\n\n /**\n * Set the count of pending rows to show\n * @param count The count of pending rows to show\n */\n abstract set pendingRowCount(count: number);\n\n /**\n * Errors for the pending data\n * @returns Map from row number to the error\n */\n abstract get pendingDataErrors(): Map<RowIndex, Error>;\n\n /**\n * Commit pending data and save all data to the table\n */\n abstract commitPending(): Promise<void>;\n\n /**\n * Check if a column is filterable\n * @param columnIndex The column index to check for filterability\n * @returns True if the current provided column index is filterable, false otherwise\n */\n isFilterable(columnIndex: ModelIndex): boolean {\n return false;\n }\n\n /**\n * Set the indices of the viewport\n * @param top Top of viewport\n * @param bottom Bottom of viewport\n * @param columns The columns in the viewport. `null` for all columns\n */\n abstract setViewport(\n top: VisibleIndex,\n bottom: VisibleIndex,\n columns: Column[] | null\n ): void;\n\n /**\n * Takes a snapshot of the provided ranges\n * @param ranges The model ranges to take the snapshot of\n * @returns Returns the data in a row/column matrix\n */\n abstract snapshot(ranges: GridRange[]): Promise<unknown[][]>;\n\n /**\n * @param ranges The ranges to take a snapshot of\n * @param includeHeaders Whether to include the headers in the snapshot or not\n * @param {(unknown, dh.Column, dh.Row) => string} formatValue A function to format a value for a cell. Defaults to model format value.\n * @returns A text formatted snapshot of the data for the specified range set\n */\n abstract textSnapshot(\n ranges: GridRange[],\n includeHeaders?: boolean,\n formatValue?: (value: unknown, column: Column, row: Row) => string\n ): Promise<string>;\n\n /**\n * @returns Returns a raw table that is frozen and can be used for exporting data\n */\n abstract export(): Promise<Table>;\n\n /**\n * @param column The column to get the distinct values for\n * @returns A table partitioned on the column specified\n */\n abstract valuesTable(column: Column): Promise<Table>;\n\n /**\n * @param column The column to get statistics for\n * @returns The column statistics\n */\n abstract columnStatistics(column: Column): Promise<ColumnStatistics>;\n\n /**\n * Close this model. It can no longer be used after being closed\n */\n close(): void {\n // no-op\n }\n\n /**\n * Don't allow any rows to be movable in any IrisGrids by default. Just columns.\n */\n isRowMovable(): boolean {\n return false;\n }\n\n /**\n * Delete ranges from an input grid. Will delete the entire row, causing data to shift up\n * @param ranges The ranges to delete\n * @returns A promise that resolves successfully when the operation is complete or rejects if there's an error\n */\n abstract delete(ranges: GridRange[]): Promise<void>;\n}\n\nexport default IrisGridModel;\n"],"file":"IrisGridModel.js"}
|
|
@@ -1,7 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Column, FilterCondition, RollupConfig, Sort, TotalsTableConfig } from '@deephaven/jsapi-shim';
|
|
3
|
+
import Formatter from './Formatter';
|
|
4
|
+
import IrisGridModel from './IrisGridModel';
|
|
5
|
+
import { ReverseType } from './TableUtils';
|
|
6
|
+
interface IrisGridModelUpdaterProps {
|
|
7
|
+
model: IrisGridModel;
|
|
8
|
+
modelColumns: Column[];
|
|
9
|
+
top: number;
|
|
10
|
+
bottom: number;
|
|
11
|
+
left?: number;
|
|
12
|
+
right?: number;
|
|
13
|
+
filter: FilterCondition[];
|
|
14
|
+
sorts: Sort[];
|
|
15
|
+
reverseType?: ReverseType;
|
|
16
|
+
customColumns: string[];
|
|
17
|
+
movedColumns: unknown[];
|
|
18
|
+
hiddenColumns: number[];
|
|
19
|
+
frozenColumns?: string[];
|
|
20
|
+
alwaysFetchColumns: string[];
|
|
21
|
+
formatter: Formatter;
|
|
22
|
+
rollupConfig?: RollupConfig;
|
|
23
|
+
totalsConfig?: TotalsTableConfig;
|
|
24
|
+
selectDistinctColumns?: string[];
|
|
25
|
+
pendingRowCount?: number;
|
|
26
|
+
pendingDataMap?: Map<number, Map<string, unknown>>;
|
|
27
|
+
}
|
|
2
28
|
/**
|
|
3
29
|
* React component to keep IrisGridModel in sync
|
|
4
30
|
*/
|
|
5
|
-
declare const IrisGridModelUpdater: React.
|
|
6
|
-
|
|
31
|
+
declare const IrisGridModelUpdater: React.MemoExoticComponent<({ model, modelColumns, top, bottom, left, right, filter, formatter, reverseType, sorts, customColumns, movedColumns, hiddenColumns, alwaysFetchColumns, rollupConfig, totalsConfig, selectDistinctColumns, pendingRowCount, pendingDataMap, frozenColumns, }: IrisGridModelUpdaterProps) => null>;
|
|
32
|
+
export default IrisGridModelUpdater;
|
|
7
33
|
//# sourceMappingURL=IrisGridModelUpdater.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IrisGridModelUpdater.d.ts","sourceRoot":"","sources":["../src/IrisGridModelUpdater.
|
|
1
|
+
{"version":3,"file":"IrisGridModelUpdater.d.ts","sourceRoot":"","sources":["../src/IrisGridModelUpdater.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAW,EACT,MAAM,EACN,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAmB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIvD,UAAU,yBAAyB;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,OAAO,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,eAAe,CAAC,EAAE,MAA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