@deephaven/js-plugin-ag-grid 0.1.5-ag-grid-key.909 → 0.1.5-ag-grid-pivot.943
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/AgGridDhTheme.d.ts.map +1 -1
- package/dist/AgGridDhTheme.js +3 -0
- package/dist/AgGridDhTheme.js.map +1 -1
- package/dist/AgGridPlugin.js +3 -2
- package/dist/AgGridPlugin.js.map +1 -1
- package/dist/AgGridTableType.d.ts +5 -0
- package/dist/AgGridTableType.d.ts.map +1 -0
- package/dist/AgGridTableType.js +2 -0
- package/dist/AgGridTableType.js.map +1 -0
- package/dist/AgGridView.d.ts +2 -2
- package/dist/AgGridView.d.ts.map +1 -1
- package/dist/AgGridView.js +50 -40
- package/dist/AgGridView.js.map +1 -1
- package/dist/AgGridWidget.d.ts.map +1 -1
- package/dist/AgGridWidget.js +5 -49
- package/dist/AgGridWidget.js.map +1 -1
- package/dist/bundle/index.js +30201 -14165
- package/dist/datasources/DeephavenViewportDatasource.d.ts +9 -1
- package/dist/datasources/DeephavenViewportDatasource.d.ts.map +1 -1
- package/dist/datasources/DeephavenViewportDatasource.js +119 -8
- package/dist/datasources/DeephavenViewportDatasource.js.map +1 -1
- package/dist/hooks/useWidgetFetch.d.ts +6 -0
- package/dist/hooks/useWidgetFetch.d.ts.map +1 -0
- package/dist/hooks/useWidgetFetch.js +54 -0
- package/dist/hooks/useWidgetFetch.js.map +1 -0
- package/dist/renderers/TreeCellRenderer.d.ts.map +1 -1
- package/dist/renderers/TreeCellRenderer.js +10 -13
- package/dist/renderers/TreeCellRenderer.js.map +1 -1
- package/dist/utils/AgGridPivotUtils.d.ts +57 -0
- package/dist/utils/AgGridPivotUtils.d.ts.map +1 -0
- package/dist/utils/AgGridPivotUtils.js +246 -0
- package/dist/utils/AgGridPivotUtils.js.map +1 -0
- package/dist/utils/AgGridRenderUtils.d.ts +8 -0
- package/dist/utils/AgGridRenderUtils.d.ts.map +1 -0
- package/dist/utils/AgGridRenderUtils.js +16 -0
- package/dist/utils/AgGridRenderUtils.js.map +1 -0
- package/dist/utils/AgGridTableUtils.d.ts +21 -5
- package/dist/utils/AgGridTableUtils.d.ts.map +1 -1
- package/dist/utils/AgGridTableUtils.js +85 -19
- package/dist/utils/AgGridTableUtils.js.map +1 -1
- package/dist/utils/AgGridUtils.d.ts +3 -0
- package/dist/utils/AgGridUtils.d.ts.map +1 -0
- package/dist/utils/AgGridUtils.js +38 -0
- package/dist/utils/AgGridUtils.js.map +1 -0
- package/dist/utils/CorePlusUtils.d.ts +4 -0
- package/dist/utils/CorePlusUtils.d.ts.map +1 -0
- package/dist/utils/CorePlusUtils.js +5 -0
- package/dist/utils/CorePlusUtils.js.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +13 -10
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { TableUtils } from '@deephaven/jsapi-utils';
|
|
2
|
+
import { assertNotNull } from '@deephaven/utils';
|
|
3
|
+
import { getCellStyleFunction, TREE_NODE_KEY, } from './AgGridTableUtils';
|
|
4
|
+
export function isPivotColumnGroupContext(context) {
|
|
5
|
+
return (context === null || context === void 0 ? void 0 : context.snapshotIndex) != null;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Converts an array of group keys to a string representation.
|
|
9
|
+
* @param groupKeys The group keys to convert to a string.
|
|
10
|
+
* @returns A string representation of the group keys.
|
|
11
|
+
*/
|
|
12
|
+
export function toGroupKeyString(groupKeys) {
|
|
13
|
+
return groupKeys.filter(key => key != null).join('/');
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Converts a group key string and a value source name to a value key string.
|
|
17
|
+
* @param groupKeyString The group key string.
|
|
18
|
+
* @param valueSourceName The value source name.
|
|
19
|
+
* @returns A value key string.
|
|
20
|
+
*/
|
|
21
|
+
export function toValueKeyString(groupKeyString, valueSourceName) {
|
|
22
|
+
return `${groupKeyString}/${valueSourceName}`;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get the row group keys from the provided row sources and data.
|
|
26
|
+
* @param rowSources The row sources to extract keys from.
|
|
27
|
+
* @param data The data object containing the values.
|
|
28
|
+
* @returns An array of row group keys.
|
|
29
|
+
*/
|
|
30
|
+
export function getRowGroupKeys(rowSources, data) {
|
|
31
|
+
const rowGroupKeys = [];
|
|
32
|
+
for (let i = 0; i < rowSources.length; i += 1) {
|
|
33
|
+
const rowSource = rowSources[i];
|
|
34
|
+
if (data[rowSource.name] != null) {
|
|
35
|
+
rowGroupKeys.push(String(data[rowSource.name]));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return rowGroupKeys;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Finds the index of a row in the pivot table snapshot based on the provided row group keys.
|
|
42
|
+
* @param rows Rows from the pivot table snapshot.
|
|
43
|
+
* @param rowGroupKeys The row group keys to find the index for.
|
|
44
|
+
* @returns The index of the row, or null if not found.
|
|
45
|
+
*/
|
|
46
|
+
export function findRowIndex(rows, rowGroupKeys) {
|
|
47
|
+
for (let r = 0; r < rows.count; r += 1) {
|
|
48
|
+
const rowkeys = rows.getKeys(r);
|
|
49
|
+
const nonNullRowKeys = rowkeys.filter(key => key != null);
|
|
50
|
+
if (rowGroupKeys.length === nonNullRowKeys.length &&
|
|
51
|
+
rowGroupKeys.every((key, index) => key === nonNullRowKeys[index])) {
|
|
52
|
+
return r;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
export function getHeaderName(columnKeys) {
|
|
58
|
+
for (let i = columnKeys.length - 1; i >= 0; i -= 1) {
|
|
59
|
+
const columnKey = columnKeys[i];
|
|
60
|
+
if (columnKey != null) {
|
|
61
|
+
return columnKey;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
throw new Error('No non-null column key found');
|
|
65
|
+
}
|
|
66
|
+
export function makePendingColDef(groupId) {
|
|
67
|
+
return {
|
|
68
|
+
headerName: '...',
|
|
69
|
+
field: `${groupId}/...`,
|
|
70
|
+
colId: `${groupId}/...`,
|
|
71
|
+
columnGroupShow: 'open',
|
|
72
|
+
maxWidth: 30, // We don't need the pending column to be very wide
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get the column definition for a column with value sources in a pivot table.
|
|
77
|
+
* If only one value source is provided, it will return a simple column definition.
|
|
78
|
+
* If multiple value sources are provided, it will return a column group definition
|
|
79
|
+
* @param headerName Header name of the value source group
|
|
80
|
+
* @param columnKey Column key of the value source group
|
|
81
|
+
* @param valueSources Value sources for the pivot table
|
|
82
|
+
* @returns The pivot value source group definition
|
|
83
|
+
*/
|
|
84
|
+
export function makeColumnValuesColDef(headerName, columnKey, valueSources) {
|
|
85
|
+
if (valueSources.length === 0) {
|
|
86
|
+
throw new Error('No value sources provided');
|
|
87
|
+
}
|
|
88
|
+
const children = valueSources.map(valueSource => {
|
|
89
|
+
const dataType = TableUtils.getNormalizedType(valueSource.type);
|
|
90
|
+
return {
|
|
91
|
+
headerName: valueSource.name,
|
|
92
|
+
field: toValueKeyString(columnKey, valueSource.name),
|
|
93
|
+
colId: toValueKeyString(columnKey, valueSource.name),
|
|
94
|
+
cellDataType: dataType,
|
|
95
|
+
cellStyle: getCellStyleFunction(dataType),
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
if (children.length === 1) {
|
|
99
|
+
return Object.assign(Object.assign({}, children[0]), { headerName });
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
headerName,
|
|
103
|
+
groupId: columnKey,
|
|
104
|
+
children,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get the pivot result columns from the provided pivot dimension data. This tells AG Grid how to display the columns, including expandable/collapsible groups.
|
|
109
|
+
* @param columns The pivot dimension data representing the columns.
|
|
110
|
+
* @param valueSources The value sources for the pivot table.
|
|
111
|
+
* @returns An array of column definitions for the pivot result.
|
|
112
|
+
*/
|
|
113
|
+
export function getPivotResultColumns(columns, valueSources) {
|
|
114
|
+
const result = [];
|
|
115
|
+
// This is the current groups in progress. So we know which ones to push to.
|
|
116
|
+
const currentGroups = [];
|
|
117
|
+
function getCurrentChildren() {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
return (_b = (_a = currentGroups[currentGroups.length - 1]) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : result;
|
|
120
|
+
}
|
|
121
|
+
function closeGroup() {
|
|
122
|
+
var _a, _b;
|
|
123
|
+
// This isn't a child, we can pop the last group
|
|
124
|
+
const currentGroup = currentGroups.pop();
|
|
125
|
+
assertNotNull(currentGroup);
|
|
126
|
+
// If there were no children added to this group yet, that means we haven't expanded it yet. Add a placeholder so AG Grid knows it can be expanded.
|
|
127
|
+
if (currentGroup.children.length === 0) {
|
|
128
|
+
currentGroup.children.push(makePendingColDef((_a = currentGroup.groupId) !== null && _a !== void 0 ? _a : ''));
|
|
129
|
+
}
|
|
130
|
+
// Also add the totals for this group
|
|
131
|
+
const totalsValueGroup = makeColumnValuesColDef(`${currentGroup.headerName} Totals`, (_b = currentGroup.groupId) !== null && _b !== void 0 ? _b : '', valueSources);
|
|
132
|
+
currentGroup.children.push(totalsValueGroup);
|
|
133
|
+
getCurrentChildren().push(currentGroup);
|
|
134
|
+
}
|
|
135
|
+
for (let c = 0; c < columns.count; c += 1) {
|
|
136
|
+
const columnKeys = columns.getKeys(c);
|
|
137
|
+
const columnKey = toGroupKeyString(columnKeys);
|
|
138
|
+
const headerName = getHeaderName(columnKeys);
|
|
139
|
+
while (currentGroups.length > 0 &&
|
|
140
|
+
!columnKey.startsWith(`${currentGroups[currentGroups.length - 1].groupId}/`)) {
|
|
141
|
+
closeGroup();
|
|
142
|
+
}
|
|
143
|
+
if (columns.hasChildren(c)) {
|
|
144
|
+
const context = {
|
|
145
|
+
snapshotIndex: columns.offset + c,
|
|
146
|
+
};
|
|
147
|
+
currentGroups.push({
|
|
148
|
+
headerName,
|
|
149
|
+
groupId: columnKey,
|
|
150
|
+
context,
|
|
151
|
+
columnGroupShow: 'open',
|
|
152
|
+
children: [],
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
const columnValueGroup = makeColumnValuesColDef(headerName, columnKey, valueSources);
|
|
157
|
+
getCurrentChildren().push(Object.assign(Object.assign({}, columnValueGroup), {
|
|
158
|
+
// We only want these values to show when the parent is open
|
|
159
|
+
columnGroupShow: 'open' }));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
while (currentGroups.length > 0) {
|
|
163
|
+
closeGroup();
|
|
164
|
+
}
|
|
165
|
+
// Add a root level totals column for each value source as well
|
|
166
|
+
for (let v = 0; v < valueSources.length; v += 1) {
|
|
167
|
+
const valueSource = valueSources[v];
|
|
168
|
+
const dataType = TableUtils.getNormalizedType(valueSource.type);
|
|
169
|
+
result.push({
|
|
170
|
+
headerName: `${valueSource.name} Totals`,
|
|
171
|
+
field: valueSource.name,
|
|
172
|
+
colId: valueSource.name,
|
|
173
|
+
cellDataType: dataType,
|
|
174
|
+
cellStyle: getCellStyleFunction(dataType),
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return result;
|
|
178
|
+
}
|
|
179
|
+
export function extractSnapshotRow(snapshot, table, rowIndex) {
|
|
180
|
+
const rowKeys = snapshot.rows.getKeys(rowIndex);
|
|
181
|
+
const row = {};
|
|
182
|
+
for (let rowSourceIndex = 0; rowSourceIndex < table.rowSources.length; rowSourceIndex += 1) {
|
|
183
|
+
const rowSource = table.rowSources[rowSourceIndex];
|
|
184
|
+
const rowSourceKey = rowKeys[rowSourceIndex];
|
|
185
|
+
if (rowSourceKey != null) {
|
|
186
|
+
row[rowSource.name] = rowSourceKey;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
const depth = snapshot.rows.getDepth(rowIndex);
|
|
190
|
+
row[TREE_NODE_KEY] = {
|
|
191
|
+
hasChildren: snapshot.rows.hasChildren(rowIndex),
|
|
192
|
+
isExpanded: snapshot.rows.isExpanded(rowIndex),
|
|
193
|
+
depth,
|
|
194
|
+
index: rowIndex,
|
|
195
|
+
};
|
|
196
|
+
for (let c = 0; c < snapshot.columns.count; c += 1) {
|
|
197
|
+
const columnKey = toGroupKeyString(snapshot.columns.getKeys(c));
|
|
198
|
+
for (let v = 0; v < table.valueSources.length; v += 1) {
|
|
199
|
+
const valueSource = table.valueSources[v];
|
|
200
|
+
const valueKey = toValueKeyString(columnKey, valueSource.name);
|
|
201
|
+
const value = snapshot.getValue(valueSource, rowIndex, snapshot.columns.offset + c);
|
|
202
|
+
row[valueKey] = value;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
// Add the totals data
|
|
206
|
+
for (let v = 0; v < table.valueSources.length; v += 1) {
|
|
207
|
+
const valueSource = table.valueSources[v];
|
|
208
|
+
row[valueSource.name] = snapshot.rows.getTotal(rowIndex, valueSource);
|
|
209
|
+
}
|
|
210
|
+
return row;
|
|
211
|
+
}
|
|
212
|
+
export function extractTotalsRow(snapshot, table) {
|
|
213
|
+
const totalsRow = {};
|
|
214
|
+
totalsRow[TREE_NODE_KEY] = {
|
|
215
|
+
hasChildren: false,
|
|
216
|
+
isExpanded: false,
|
|
217
|
+
depth: 0,
|
|
218
|
+
index: snapshot.rows.totalCount,
|
|
219
|
+
};
|
|
220
|
+
for (let c = 0; c < snapshot.columns.count; c += 1) {
|
|
221
|
+
const columnKey = toGroupKeyString(snapshot.columns.getKeys(c));
|
|
222
|
+
for (let v = 0; v < table.valueSources.length; v += 1) {
|
|
223
|
+
const valueSource = table.valueSources[v];
|
|
224
|
+
const valueKey = toValueKeyString(columnKey, valueSource.name);
|
|
225
|
+
const value = snapshot.columns.getTotal(c, valueSource);
|
|
226
|
+
totalsRow[valueKey] = value;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
// Grand totals values
|
|
230
|
+
for (let v = 0; v < table.valueSources.length; v += 1) {
|
|
231
|
+
const valueSource = table.valueSources[v];
|
|
232
|
+
totalsRow[valueSource.name] = snapshot.getGrandTotal(valueSource);
|
|
233
|
+
}
|
|
234
|
+
return totalsRow;
|
|
235
|
+
}
|
|
236
|
+
export function extractSnapshotRows(snapshot, table) {
|
|
237
|
+
const rows = {};
|
|
238
|
+
for (let rowIndex = 0; rowIndex < snapshot.rows.count; rowIndex += 1) {
|
|
239
|
+
const row = extractSnapshotRow(snapshot, table, snapshot.rows.offset + rowIndex);
|
|
240
|
+
rows[snapshot.rows.offset + rowIndex] = row;
|
|
241
|
+
}
|
|
242
|
+
// Need to push a row for totals as well
|
|
243
|
+
rows[snapshot.rows.totalCount] = extractTotalsRow(snapshot, table);
|
|
244
|
+
return rows;
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=AgGridPivotUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgGridPivotUtils.js","sourceRoot":"","sources":["../../src/utils/AgGridPivotUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAEL,oBAAoB,EAEpB,aAAa,GACd,MAAM,oBAAoB,CAAC;AAM5B,MAAM,UAAU,yBAAyB,CACvC,OAAiB;IAEjB,OAAO,CAAC,OAAmC,aAAnC,OAAO,uBAAP,OAAO,CAA8B,aAAa,KAAI,IAAI,CAAC;AACrE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAA6B;IAC5D,OAAO,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACxD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB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AC;IAEnE,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColDef } from '@ag-grid-community/core';
|
|
2
|
+
import { DeephavenViewportDatasource } from '../datasources';
|
|
3
|
+
export declare function getAutoGroupColumnDef(datasource: DeephavenViewportDatasource): ColDef;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
getAutoGroupColumnDef: typeof getAutoGroupColumnDef;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=AgGridRenderUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgGridRenderUtils.d.ts","sourceRoot":"","sources":["../../src/utils/AgGridRenderUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAG7D,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,2BAA2B,GACtC,MAAM,CAeR;;;;AAED,wBAEE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { TreeCellRenderer } from '../renderers';
|
|
3
|
+
export function getAutoGroupColumnDef(datasource) {
|
|
4
|
+
const treeCellRenderer = function customTreeCellRenderer(props) {
|
|
5
|
+
return (_jsx(TreeCellRenderer
|
|
6
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
7
|
+
, Object.assign({}, props, { datasource: datasource })));
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
cellRenderer: treeCellRenderer,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export default {
|
|
14
|
+
getAutoGroupColumnDef,
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=AgGridRenderUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgGridRenderUtils.js","sourceRoot":"","sources":["../../src/utils/AgGridRenderUtils.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,UAAU,qBAAqB,CACnC,UAAuC;IAEvC,MAAM,gBAAgB,GAAG,SAAS,sBAAsB,CACtD,KAA8B;QAE9B,OAAO,CACL,KAAC,gBAAgB;QACf,wDAAwD;4BACpD,KAAK,IACT,UAAU,EAAE,UAAU,IACtB,CACH,CAAC;IACJ,CAAC,CAAC;IACF,OAAO;QACL,YAAY,EAAE,gBAAgB;KAC/B,CAAC;AACJ,CAAC;AAED,eAAe;IACb,qBAAqB;CACtB,CAAC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { dh as DhType } from '@deephaven/jsapi-types';
|
|
2
|
-
import { ColDef } from '@ag-grid-community/core';
|
|
2
|
+
import type { ColDef, SideBarDef } from '@ag-grid-community/core';
|
|
3
|
+
import type { dh as CorePlusDhType } from '@deephaven-enterprise/jsapi-coreplus-types';
|
|
4
|
+
import AgGridTableType from '../AgGridTableType';
|
|
5
|
+
export type SingleRowData = {
|
|
6
|
+
[columnKey: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
export type AgGridViewportRowData = {
|
|
9
|
+
[rowIndex: number]: SingleRowData;
|
|
10
|
+
};
|
|
3
11
|
export declare const TREE_NODE_KEY = "__dhTreeNodeKey__";
|
|
4
12
|
export type TreeNode = {
|
|
5
13
|
hasChildren: boolean;
|
|
@@ -7,6 +15,15 @@ export type TreeNode = {
|
|
|
7
15
|
depth: number;
|
|
8
16
|
index: number;
|
|
9
17
|
};
|
|
18
|
+
export declare function isPivotTable(table: AgGridTableType): table is CorePlusDhType.coreplus.pivot.PivotTable;
|
|
19
|
+
export declare function isTable(table: AgGridTableType): table is DhType.Table;
|
|
20
|
+
export declare function isTreeTable(table: AgGridTableType): table is DhType.TreeTable;
|
|
21
|
+
/**
|
|
22
|
+
* Get the cell style function for a specific data type.
|
|
23
|
+
* @param dataType Data type of the column
|
|
24
|
+
* @returns A function to style the cell based on its data type
|
|
25
|
+
*/
|
|
26
|
+
export declare function getCellStyleFunction(dataType: string): ColDef['cellStyle'];
|
|
10
27
|
/**
|
|
11
28
|
* Converts a Deephaven column to an AG Grid ColDef with appropriate properties.
|
|
12
29
|
*
|
|
@@ -15,8 +32,7 @@ export type TreeNode = {
|
|
|
15
32
|
* @returns The equivalent AG Grid ColDef
|
|
16
33
|
*/
|
|
17
34
|
export declare function convertColumnToColDef(column: DhType.Column, templateColDef?: Partial<ColDef>): ColDef;
|
|
18
|
-
export declare function getColumnDefs(table:
|
|
19
|
-
export declare function
|
|
20
|
-
|
|
21
|
-
};
|
|
35
|
+
export declare function getColumnDefs(table: AgGridTableType): ColDef[];
|
|
36
|
+
export declare function getSideBar(table: AgGridTableType): SideBarDef;
|
|
37
|
+
export declare function extractViewportRow(row: DhType.Row, columns: DhType.Column[]): SingleRowData;
|
|
22
38
|
//# sourceMappingURL=AgGridTableUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgGridTableUtils.d.ts","sourceRoot":"","sources":["../../src/utils/AgGridTableUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"AgGridTableUtils.d.ts","sourceRoot":"","sources":["../../src/utils/AgGridTableUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,IAAI,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAGvF,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,aAAa,G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ormatter from './AgGridFormatter';
|
|
3
3
|
export const TREE_NODE_KEY = '__dhTreeNodeKey__';
|
|
4
|
+
export function isPivotTable(table) {
|
|
5
|
+
return ('columnSources' in table && 'rowSources' in table && 'valueSources' in table);
|
|
6
|
+
}
|
|
7
|
+
export function isTable(table) {
|
|
8
|
+
return ('columns' in table &&
|
|
9
|
+
'rollup' in table &&
|
|
10
|
+
typeof table.rollup === 'function');
|
|
11
|
+
}
|
|
12
|
+
export function isTreeTable(table) {
|
|
13
|
+
return ('columns' in table &&
|
|
14
|
+
'groupedColumns' in table &&
|
|
15
|
+
'expand' in table &&
|
|
16
|
+
'collapse' in table);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get the cell style function for a specific data type.
|
|
20
|
+
* @param dataType Data type of the column
|
|
21
|
+
* @returns A function to style the cell based on its data type
|
|
22
|
+
*/
|
|
23
|
+
export function getCellStyleFunction(dataType) {
|
|
24
|
+
switch (dataType) {
|
|
25
|
+
case TableUtils.dataType.DECIMAL:
|
|
26
|
+
case TableUtils.dataType.INT:
|
|
27
|
+
return AgGridFormatter.styleForNumberCell;
|
|
28
|
+
case TableUtils.dataType.DATETIME:
|
|
29
|
+
return AgGridFormatter.styleForDateCell;
|
|
30
|
+
default:
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
4
34
|
/**
|
|
5
35
|
* Converts a Deephaven column to an AG Grid ColDef with appropriate properties.
|
|
6
36
|
*
|
|
@@ -23,11 +53,11 @@ export function convertColumnToColDef(column, templateColDef) {
|
|
|
23
53
|
numberFormatter: (value) => value != null ? String.fromCharCode(value) : null,
|
|
24
54
|
} });
|
|
25
55
|
case TableUtils.dataType.DATETIME:
|
|
26
|
-
return Object.assign(Object.assign({}, templateColDef), { cellDataType: dataType, filter: 'agDateColumnFilter', cellStyle:
|
|
56
|
+
return Object.assign(Object.assign({}, templateColDef), { cellDataType: dataType, filter: 'agDateColumnFilter', cellStyle: getCellStyleFunction(dataType) });
|
|
27
57
|
case TableUtils.dataType.DECIMAL:
|
|
28
|
-
return Object.assign(Object.assign({}, templateColDef), { cellDataType: dataType, filter: 'agNumberColumnFilter', cellStyle:
|
|
58
|
+
return Object.assign(Object.assign({}, templateColDef), { cellDataType: dataType, filter: 'agNumberColumnFilter', cellStyle: getCellStyleFunction(dataType) });
|
|
29
59
|
case TableUtils.dataType.INT:
|
|
30
|
-
return Object.assign(Object.assign({}, templateColDef), { cellDataType: dataType, filter: 'agNumberColumnFilter', cellStyle:
|
|
60
|
+
return Object.assign(Object.assign({}, templateColDef), { cellDataType: dataType, filter: 'agNumberColumnFilter', cellStyle: getCellStyleFunction(dataType) });
|
|
31
61
|
case TableUtils.dataType.STRING:
|
|
32
62
|
return Object.assign(Object.assign({}, templateColDef), { cellDataType: dataType, filter: true });
|
|
33
63
|
case TableUtils.dataType.UNKNOWN:
|
|
@@ -36,22 +66,58 @@ export function convertColumnToColDef(column, templateColDef) {
|
|
|
36
66
|
}
|
|
37
67
|
export function getColumnDefs(table) {
|
|
38
68
|
var _a;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
69
|
+
if (isTable(table) || isTreeTable(table)) {
|
|
70
|
+
const groupedColSet = new Set((isTreeTable(table) ? table.groupedColumns : []).map(c => c.name));
|
|
71
|
+
const newDefs = (_a = table === null || table === void 0 ? void 0 : table.columns.map(c => {
|
|
72
|
+
const templateColDef = groupedColSet.has(c.name)
|
|
73
|
+
? {
|
|
74
|
+
field: c.name,
|
|
75
|
+
rowGroup: true,
|
|
76
|
+
}
|
|
77
|
+
: {
|
|
78
|
+
field: c.name,
|
|
79
|
+
// TODO: Actually use the table/column information to determine whether we can group/aggregate by it
|
|
80
|
+
enableRowGroup: true,
|
|
81
|
+
enableValue: true,
|
|
82
|
+
};
|
|
83
|
+
return convertColumnToColDef(c, templateColDef);
|
|
84
|
+
})) !== null && _a !== void 0 ? _a : [];
|
|
85
|
+
return newDefs;
|
|
86
|
+
}
|
|
87
|
+
if (isPivotTable(table)) {
|
|
88
|
+
// For pivot tables, we need to create ColDefs for the row, column, and value sources.
|
|
89
|
+
const colDefs = [];
|
|
90
|
+
table.rowSources.forEach(c => {
|
|
91
|
+
colDefs.push({ field: c.name, rowGroup: true });
|
|
92
|
+
});
|
|
93
|
+
table.columnSources.forEach(c => {
|
|
94
|
+
colDefs.push({ field: c.name, pivot: true });
|
|
95
|
+
});
|
|
96
|
+
table.valueSources.forEach(c => {
|
|
97
|
+
// TODO: We're just pushing an `aggFunc` here so it shows up correctly in the UI, but we also set the `suppressAggFuncInHeader` so that it doesn't actually appear. We don't use it when we're fetching the data since the server has already aggregated it for us.
|
|
98
|
+
colDefs.push({ field: c.name, aggFunc: 'sum' });
|
|
99
|
+
});
|
|
100
|
+
return colDefs;
|
|
101
|
+
}
|
|
102
|
+
throw new Error(`Unsupported table type: ${table}`);
|
|
103
|
+
}
|
|
104
|
+
export function getSideBar(table) {
|
|
105
|
+
return {
|
|
106
|
+
toolPanels: [
|
|
107
|
+
{
|
|
108
|
+
id: 'columns',
|
|
109
|
+
labelDefault: 'Columns',
|
|
110
|
+
labelKey: 'columns',
|
|
111
|
+
iconKey: 'columns',
|
|
112
|
+
toolPanel: 'agColumnsToolPanel',
|
|
113
|
+
toolPanelParams: {
|
|
114
|
+
suppressRowGroups: isTreeTable(table),
|
|
115
|
+
suppressValues: isTreeTable(table),
|
|
116
|
+
suppressPivots: true,
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
};
|
|
55
121
|
}
|
|
56
122
|
function isTreeRow(row) {
|
|
57
123
|
return 'hasChildren' in row && 'isExpanded' in row && 'depth' in row;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgGridTableUtils.js","sourceRoot":"","sources":["../../src/utils/AgGridTableUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgGridTableUtils.js","sourceRoot":"","sources":["../../src/utils/AgGridTableUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAMhD,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAQjD,MAAM,UAAU,YAAY,CAC1B,KAAsB;IAEtB,OAAO,CACL,eAAe,IAAI,KAAK,IAAI,YAAY,IAAI,KAAK,IAAI,cAAc,IAAI,KAAK,CAC7E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,KAAsB;IAC5C,OAAO,CACL,SAAS,IAAI,KAAK;QAClB,QAAQ,IAAI,KAAK;QACjB,OAAO,KAAK,CAAC,MAAM,KAAK,UAAU,CACnC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAsB;IAChD,OAAO,CACL,SAAS,IAAI,KAAK;QAClB,gBAAgB,IAAI,KAAK;QACzB,QAAQ,IAAI,KAAK;QACjB,UAAU,IAAI,KAAK,CACpB,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAgB;IACnD,QAAQ,QAAQ,EAAE;QAChB,KAAK,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC;QACjC,KAAK,UAAU,CAAC,QAAQ,CAAC,GAAG;YAC1B,OAAO,eAAe,CAAC,kBAAkB,CAAC;QAC5C,KAAK,UAAU,CAAC,QAAQ,CAAC,QAAQ;YAC/B,OAAO,eAAe,CAAC,gBAAgB,CAAC;QAC1C;YACE,OAAO,SAAS,CAAC;KACpB;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CACnC,MAAqB,EACrB,cAAgC;IAEhC,MAAM,QAAQ,GAAG,UAAU,CAAC,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ACvE,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,GAAe,EACf,OAAwB;IAExB,MAAM,IAAI,GAAkB,EAAE,CAAC;IAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QAC1C,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACrC;IAED,IAAI,SAAS,CAAC,GAAG,CAAC,EAAE;QAClB,IAAI,CAAC,aAAa,CAAC,GAAG;YACpB,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE;SACT,CAAC;KACtB;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgGridUtils.d.ts","sourceRoot":"","sources":["../../src/utils/AgGridUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,wBAAgB,eAAe,IAAI,gBAAgB,CA+BlD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ViewportRowModelModule } from '@ag-grid-enterprise/viewport-row-model';
|
|
2
|
+
import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';
|
|
3
|
+
import { ColumnsToolPanelModule } from '@ag-grid-enterprise/column-tool-panel';
|
|
4
|
+
import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping';
|
|
5
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
6
|
+
export function getDefaultProps() {
|
|
7
|
+
return {
|
|
8
|
+
modules: [
|
|
9
|
+
RowGroupingModule,
|
|
10
|
+
ViewportRowModelModule,
|
|
11
|
+
ColumnsToolPanelModule,
|
|
12
|
+
ServerSideRowModelModule,
|
|
13
|
+
],
|
|
14
|
+
defaultColDef: {
|
|
15
|
+
filterParams: {
|
|
16
|
+
buttons: ['reset', 'apply'],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
rowSelection: {
|
|
20
|
+
mode: 'multiRow',
|
|
21
|
+
checkboxes: false,
|
|
22
|
+
headerCheckbox: false,
|
|
23
|
+
enableClickSelection: true,
|
|
24
|
+
},
|
|
25
|
+
suppressCellFocus: true,
|
|
26
|
+
rowStyle: {
|
|
27
|
+
// Displays numbers as monospace figures. Keeps decimal alignment.
|
|
28
|
+
fontVariantNumeric: 'tabular-nums',
|
|
29
|
+
},
|
|
30
|
+
// Set this to true, otherwise AG Grid will try and re-sort columns when we expand/collapse pivots
|
|
31
|
+
enableStrictPivotColumnOrder: true,
|
|
32
|
+
// We use a different separator because the default `_` is used often in column names.
|
|
33
|
+
// `/` is not a valid Java identifier so is good as a separator.
|
|
34
|
+
serverSidePivotResultFieldSeparator: '/',
|
|
35
|
+
suppressAggFuncInHeader: true,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=AgGridUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgGridUtils.js","sourceRoot":"","sources":["../../src/utils/AgGridUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,wDAAwD;AACxD,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,OAAO,EAAE;YACP,iBAAiB;YACjB,sBAAsB;YACtB,sBAAsB;YACtB,wBAAwB;SACzB;QACD,aAAa,EAAE;YACb,YAAY,EAAE;gBACZ,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;aAC5B;SACF;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,UAAU;YAChB,UAAU,EAAE,KAAK;YACjB,cAAc,EAAE,KAAK;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,iBAAiB,EAAE,IAAI;QACvB,QAAQ,EAAE;YACR,kEAAkE;YAClE,kBAAkB,EAAE,cAAc;SACnC;QACD,kGAAkG;QAClG,4BAA4B,EAAE,IAAI;QAClC,sFAAsF;QACtF,gEAAgE;QAChE,mCAAmC,EAAE,GAAG;QACxC,uBAAuB,EAAE,IAAI;KAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { dh as DhType } from '@deephaven/jsapi-types';
|
|
2
|
+
import type { dh as CorePlusDhType } from '@deephaven-enterprise/jsapi-coreplus-types';
|
|
3
|
+
export declare function isCorePlusDhType(api: typeof DhType): api is typeof CorePlusDhType;
|
|
4
|
+
//# sourceMappingURL=CorePlusUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorePlusUtils.d.ts","sourceRoot":"","sources":["../../src/utils/CorePlusUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,IAAI,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAGvF,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,OAAO,MAAM,GACjB,GAAG,IAAI,OAAO,cAAc,CAE9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorePlusUtils.js","sourceRoot":"","sources":["../../src/utils/CorePlusUtils.ts"],"names":[],"mappings":"AAGA,wDAAwD;AACxD,MAAM,UAAU,gBAAgB,CAC9B,GAAkB;IAElB,OAAQ,GAA6B,CAAC,QAAQ,IAAI,IAAI,CAAC;AACzD,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -2,6 +2,9 @@ export * from './AgGridAggUtils';
|
|
|
2
2
|
export * from './AgGridColors';
|
|
3
3
|
export * from './AgGridFilterUtils';
|
|
4
4
|
export * from './AgGridFormatter';
|
|
5
|
+
export * from './AgGridPivotUtils';
|
|
6
|
+
export * from './AgGridRenderUtils';
|
|
5
7
|
export * from './AgGridSortUtils';
|
|
6
8
|
export * from './AgGridTableUtils';
|
|
9
|
+
export * from './AgGridUtils';
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -2,6 +2,9 @@ export * from './AgGridAggUtils';
|
|
|
2
2
|
export * from './AgGridColors';
|
|
3
3
|
export * from './AgGridFilterUtils';
|
|
4
4
|
export * from './AgGridFormatter';
|
|
5
|
+
export * from './AgGridPivotUtils';
|
|
6
|
+
export * from './AgGridRenderUtils';
|
|
5
7
|
export * from './AgGridSortUtils';
|
|
6
8
|
export * from './AgGridTableUtils';
|
|
9
|
+
export * from './AgGridUtils';
|
|
7
10
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|