@deephaven-enterprise/jsapi-coreplus-types 2026.1.61 → 2026.1.63
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/index.d.ts +102 -102
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -38,26 +38,6 @@ export namespace dh.coreplus.pivot {
|
|
|
38
38
|
toString():string;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* Describes the desired snapshot for a pivot table.
|
|
43
|
-
*/
|
|
44
|
-
export class PivotSnapshotOptions {
|
|
45
|
-
/**
|
|
46
|
-
* The rows to include in the snapshot.
|
|
47
|
-
*/
|
|
48
|
-
rows:dh.RangeSet|dh.SimpleRange;
|
|
49
|
-
/**
|
|
50
|
-
* The columns to include in the snapshot
|
|
51
|
-
*/
|
|
52
|
-
columns:dh.RangeSet|dh.SimpleRange;
|
|
53
|
-
/**
|
|
54
|
-
* The aggregated sources to include in the snapshot
|
|
55
|
-
*/
|
|
56
|
-
sources:Array<PivotSource>;
|
|
57
|
-
|
|
58
|
-
constructor();
|
|
59
|
-
}
|
|
60
|
-
|
|
61
41
|
/**
|
|
62
42
|
* Tool to request the server pivot a table and return the results. Obtain an instance with
|
|
63
43
|
* {@link getInstance}, then call {@link createPivotTable} to pivot a table.
|
|
@@ -86,48 +66,56 @@ export namespace dh.coreplus.pivot {
|
|
|
86
66
|
}
|
|
87
67
|
|
|
88
68
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
69
|
+
* This type is an analog of {@link dh.Sort}, with a few differences:
|
|
70
|
+
* <ul>
|
|
71
|
+
* <li>The {@link column} property always returns null, and instead there is a {@link name} property</li>
|
|
72
|
+
* <li>Reverse is not supported</li>
|
|
73
|
+
* </ul>
|
|
74
|
+
*
|
|
75
|
+
* A PivotSort doesn't sort the columns of the pivot directly, but sorts the keys uses for columns or rows.
|
|
92
76
|
*/
|
|
93
|
-
export class
|
|
77
|
+
export class PivotSort {
|
|
78
|
+
static readonly ASCENDING:string;
|
|
79
|
+
static readonly DESCENDING:string;
|
|
80
|
+
|
|
94
81
|
protected constructor();
|
|
95
82
|
|
|
96
83
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
|
|
100
|
-
* @param value - the value source to read, must have been included in the subscription
|
|
101
|
-
* @return the grand total for the given value source
|
|
84
|
+
* Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in ascending order.
|
|
85
|
+
* @return {@link dh.coreplus.pivot.PivotSort}
|
|
102
86
|
*/
|
|
103
|
-
|
|
87
|
+
asc():PivotSort;
|
|
104
88
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
|
|
108
|
-
* <p>
|
|
109
|
-
* Both positions are absolute positions within the pivot table, matching those used by {@link PivotSnapshot.rows} and
|
|
110
|
-
* {@link PivotSnapshot.columns}, so each must fall within the corresponding dimension's offset and count.
|
|
111
|
-
* @param value - the value source to read, must have been included in the subscription
|
|
112
|
-
* @param rowPosition - the row position within the pivot table
|
|
113
|
-
* @param colPosition - the column position within the pivot table
|
|
114
|
-
* @return the value present in the pivot table at the given position
|
|
89
|
+
* Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in descending order.
|
|
90
|
+
* @return {@link dh.coreplus.pivot.PivotSort}
|
|
115
91
|
*/
|
|
116
|
-
|
|
92
|
+
desc():PivotSort;
|
|
117
93
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
94
|
+
* Builds a {@link dh.coreplus.pivot.PivotSort} instance which takes the absolute value before applying order.
|
|
95
|
+
* @return {@link dh.coreplus.pivot.PivotSort}
|
|
120
96
|
*/
|
|
121
|
-
|
|
97
|
+
abs():PivotSort;
|
|
98
|
+
toString():string;
|
|
122
99
|
/**
|
|
123
|
-
*
|
|
124
|
-
*
|
|
100
|
+
* Set to `true` if the absolute value of the column should be used when sorting; defaults to `false`.
|
|
101
|
+
* @return boolean
|
|
125
102
|
*/
|
|
126
|
-
get
|
|
103
|
+
get isAbs():boolean;
|
|
127
104
|
/**
|
|
128
|
-
* The
|
|
105
|
+
* The column which is sorted.
|
|
106
|
+
* @return {@link dh.Column}
|
|
129
107
|
*/
|
|
130
|
-
get
|
|
108
|
+
get column():dh.Column;
|
|
109
|
+
/**
|
|
110
|
+
* The name of the column which is sorted.
|
|
111
|
+
* @return String
|
|
112
|
+
*/
|
|
113
|
+
get name():string;
|
|
114
|
+
/**
|
|
115
|
+
* The direction of this sort, either `ASC` or `DESC`.
|
|
116
|
+
* @return String
|
|
117
|
+
*/
|
|
118
|
+
get direction():string;
|
|
131
119
|
}
|
|
132
120
|
|
|
133
121
|
/**
|
|
@@ -215,6 +203,26 @@ export namespace dh.coreplus.pivot {
|
|
|
215
203
|
constructor();
|
|
216
204
|
}
|
|
217
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Describes the desired snapshot for a pivot table.
|
|
208
|
+
*/
|
|
209
|
+
export class PivotSnapshotOptions {
|
|
210
|
+
/**
|
|
211
|
+
* The rows to include in the snapshot.
|
|
212
|
+
*/
|
|
213
|
+
rows:dh.RangeSet|dh.SimpleRange;
|
|
214
|
+
/**
|
|
215
|
+
* The columns to include in the snapshot
|
|
216
|
+
*/
|
|
217
|
+
columns:dh.RangeSet|dh.SimpleRange;
|
|
218
|
+
/**
|
|
219
|
+
* The aggregated sources to include in the snapshot
|
|
220
|
+
*/
|
|
221
|
+
sources:Array<PivotSource>;
|
|
222
|
+
|
|
223
|
+
constructor();
|
|
224
|
+
}
|
|
225
|
+
|
|
218
226
|
/**
|
|
219
227
|
* Analog of {@link dh.Column}, but specific to pivot tables. Represents a named, typed set of values in the pivot table
|
|
220
228
|
* that can be read.
|
|
@@ -254,6 +262,51 @@ export namespace dh.coreplus.pivot {
|
|
|
254
262
|
get type():string;
|
|
255
263
|
}
|
|
256
264
|
|
|
265
|
+
/**
|
|
266
|
+
* Provides the details for an updated event from a pivot table subscription. Unlike
|
|
267
|
+
* {@link dh.TableData}, this class offers a matrix of data for each value column, and
|
|
268
|
+
* row/column expand state, depth, and grand totals.
|
|
269
|
+
*/
|
|
270
|
+
export class PivotSnapshot {
|
|
271
|
+
protected constructor();
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Returns the grand total for a given value source in the pivot table.
|
|
275
|
+
* <p>
|
|
276
|
+
* The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
|
|
277
|
+
* @param value - the value source to read, must have been included in the subscription
|
|
278
|
+
* @return the grand total for the given value source
|
|
279
|
+
*/
|
|
280
|
+
getGrandTotal(value:PivotSource):any;
|
|
281
|
+
/**
|
|
282
|
+
* Reads a value from the pivot table data for a given position in the grid.
|
|
283
|
+
* <p>
|
|
284
|
+
* The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
|
|
285
|
+
* <p>
|
|
286
|
+
* Both positions are absolute positions within the pivot table, matching those used by {@link PivotSnapshot.rows} and
|
|
287
|
+
* {@link PivotSnapshot.columns}, so each must fall within the corresponding dimension's offset and count.
|
|
288
|
+
* @param value - the value source to read, must have been included in the subscription
|
|
289
|
+
* @param rowPosition - the row position within the pivot table
|
|
290
|
+
* @param colPosition - the column position within the pivot table
|
|
291
|
+
* @return the value present in the pivot table at the given position
|
|
292
|
+
*/
|
|
293
|
+
getValue(value:PivotSource, rowPosition:number, colPosition:number):any;
|
|
294
|
+
/**
|
|
295
|
+
* Data specific to the column dimension of the pivot table, including the groups, depth of each column, whether
|
|
296
|
+
* each column is expanded, and the totals for each column.
|
|
297
|
+
*/
|
|
298
|
+
get columns():DimensionData;
|
|
299
|
+
/**
|
|
300
|
+
* Data specific to the row dimension of the pivot table, including the groups, depth of each row, whether each row
|
|
301
|
+
* is expanded, and the totals for each row.
|
|
302
|
+
*/
|
|
303
|
+
get rows():DimensionData;
|
|
304
|
+
/**
|
|
305
|
+
* The value sources that were included in the subscription and can be read from this snapshot.
|
|
306
|
+
*/
|
|
307
|
+
get valueSources():Array<PivotSource>;
|
|
308
|
+
}
|
|
309
|
+
|
|
257
310
|
/**
|
|
258
311
|
* Represents a PivotTable on the Deephaven server, with support for sorting, filtering, and viewports with
|
|
259
312
|
* expand/collapse on rows and columns.
|
|
@@ -476,59 +529,6 @@ export namespace dh.coreplus.pivot {
|
|
|
476
529
|
removeEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):boolean;
|
|
477
530
|
}
|
|
478
531
|
|
|
479
|
-
/**
|
|
480
|
-
* This type is an analog of {@link dh.Sort}, with a few differences:
|
|
481
|
-
* <ul>
|
|
482
|
-
* <li>The {@link column} property always returns null, and instead there is a {@link name} property</li>
|
|
483
|
-
* <li>Reverse is not supported</li>
|
|
484
|
-
* </ul>
|
|
485
|
-
*
|
|
486
|
-
* A PivotSort doesn't sort the columns of the pivot directly, but sorts the keys uses for columns or rows.
|
|
487
|
-
*/
|
|
488
|
-
export class PivotSort {
|
|
489
|
-
static readonly ASCENDING:string;
|
|
490
|
-
static readonly DESCENDING:string;
|
|
491
|
-
|
|
492
|
-
protected constructor();
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in ascending order.
|
|
496
|
-
* @return {@link dh.coreplus.pivot.PivotSort}
|
|
497
|
-
*/
|
|
498
|
-
asc():PivotSort;
|
|
499
|
-
/**
|
|
500
|
-
* Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in descending order.
|
|
501
|
-
* @return {@link dh.coreplus.pivot.PivotSort}
|
|
502
|
-
*/
|
|
503
|
-
desc():PivotSort;
|
|
504
|
-
/**
|
|
505
|
-
* Builds a {@link dh.coreplus.pivot.PivotSort} instance which takes the absolute value before applying order.
|
|
506
|
-
* @return {@link dh.coreplus.pivot.PivotSort}
|
|
507
|
-
*/
|
|
508
|
-
abs():PivotSort;
|
|
509
|
-
toString():string;
|
|
510
|
-
/**
|
|
511
|
-
* Set to `true` if the absolute value of the column should be used when sorting; defaults to `false`.
|
|
512
|
-
* @return boolean
|
|
513
|
-
*/
|
|
514
|
-
get isAbs():boolean;
|
|
515
|
-
/**
|
|
516
|
-
* The column which is sorted.
|
|
517
|
-
* @return {@link dh.Column}
|
|
518
|
-
*/
|
|
519
|
-
get column():dh.Column;
|
|
520
|
-
/**
|
|
521
|
-
* The name of the column which is sorted.
|
|
522
|
-
* @return String
|
|
523
|
-
*/
|
|
524
|
-
get name():string;
|
|
525
|
-
/**
|
|
526
|
-
* The direction of this sort, either `ASC` or `DESC`.
|
|
527
|
-
* @return String
|
|
528
|
-
*/
|
|
529
|
-
get direction():string;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
export namespace dh.coreplus.schema {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven-enterprise/jsapi-coreplus-types",
|
|
3
|
-
"version": "2026.1.
|
|
3
|
+
"version": "2026.1.63",
|
|
4
4
|
"description": "Deephaven Enterprise Core+ JSAPI Types",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"typescript": "^5.1.6"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@deephaven/jsapi-types": "^42.
|
|
18
|
+
"@deephaven/jsapi-types": "^42.7.0"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|