@adaptabletools/adaptable 24.0.2 → 24.0.3
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/devtools.d.ts +506 -5
- package/devtools.js +11 -1
- package/index.css +15 -5
- package/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -1
- package/src/AdaptableOptions/DataImportOptions.d.ts +1 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableFormat.d.ts +2 -10
- package/src/AdaptableState/Common/RowSummary.d.ts +2 -0
- package/src/AdaptableState/LayoutState.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +25 -3
- package/src/Api/Internal/ExportInternalApi.d.ts +2 -0
- package/src/Api/Internal/ExportInternalApi.js +39 -3
- package/src/Api/Internal/LayoutInternalApi.d.ts +11 -1
- package/src/Api/Internal/LayoutInternalApi.js +34 -3
- package/src/Api/Internal/NoteInternalApi.d.ts +12 -0
- package/src/Api/Internal/NoteInternalApi.js +11 -0
- package/src/EnvVars.d.ts +1 -0
- package/src/EnvVars.js +1 -0
- package/src/Redux/Store/AdaptableStore.js +4 -7
- package/src/Strategy/FlashingCellModule.js +2 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +15 -0
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +7 -0
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +17 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +11 -1
- package/src/Utilities/Services/QueryLanguageService.js +46 -1
- package/src/Utilities/Services/RowSummaryService.d.ts +2 -0
- package/src/Utilities/Services/RowSummaryService.js +6 -1
- package/src/Utilities/license/instanceLicense.d.ts +12 -0
- package/src/Utilities/license/instanceLicense.js +10 -0
- package/src/Utilities/license/licenseStatus.d.ts +26 -0
- package/src/Utilities/license/licenseStatus.js +72 -0
- package/src/View/Components/CellPopup/index.js +15 -10
- package/src/View/GridInfo/GridInfoPopup.js +6 -1
- package/src/View/Layout/TransposedPopup.js +1 -0
- package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +3 -5
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +10 -24
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +5 -1
- package/src/View/ObjectItemViews/Layout/aggregationSummaryHelpers.d.ts +5 -1
- package/src/View/ObjectItemViews/Layout/aggregationSummaryHelpers.js +6 -3
- package/src/agGrid/AdaptableAgGrid.d.ts +7 -3
- package/src/agGrid/AdaptableAgGrid.js +122 -47
- package/src/agGrid/AdaptableFilterHandler.d.ts +2 -0
- package/src/agGrid/AdaptableFilterHandler.js +34 -0
- package/src/agGrid/AgGridAdapter.d.ts +9 -0
- package/src/agGrid/AgGridAdapter.js +23 -12
- package/src/agGrid/AgGridColumnAdapter.d.ts +2 -0
- package/src/agGrid/AgGridColumnAdapter.js +124 -78
- package/src/agGrid/AgGridExportAdapter.d.ts +5 -0
- package/src/agGrid/AgGridExportAdapter.js +31 -0
- package/src/agGrid/AgGridMenuAdapter.js +1 -1
- package/src/agGrid/applyGlobalGridOptions.d.ts +9 -0
- package/src/agGrid/applyGlobalGridOptions.js +36 -0
- package/src/agGrid/cellRenderers/BadgeRenderer.js +22 -0
- package/src/agGrid/columnMinMaxCache.d.ts +33 -0
- package/src/agGrid/columnMinMaxCache.js +50 -0
- package/src/devTools/PerfStore.d.ts +218 -0
- package/src/devTools/PerfStore.js +717 -0
- package/src/devTools/index.d.ts +33 -0
- package/src/devTools/index.js +132 -56
- package/src/devTools/logBuffer.d.ts +17 -0
- package/src/devTools/logBuffer.js +33 -0
- package/src/devTools/memoryInfo.d.ts +15 -0
- package/src/devTools/memoryInfo.js +229 -0
- package/src/devTools/memoryRoots.d.ts +41 -0
- package/src/devTools/memoryRoots.js +136 -0
- package/src/devTools/perfContext.d.ts +5 -0
- package/src/devTools/perfContext.js +155 -0
- package/src/devTools/perfInstrumentation.d.ts +13 -0
- package/src/devTools/perfInstrumentation.js +78 -0
- package/src/env.js +2 -2
- package/src/layout-manager/src/LayoutManagerModel.d.ts +3 -1
- package/src/layout-manager/src/expandAllRowGroups.d.ts +6 -0
- package/src/layout-manager/src/expandAllRowGroups.js +13 -0
- package/src/layout-manager/src/index.js +18 -10
- package/src/setupDevTools.js +560 -106
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/vendor/components/Combobox/index.js +1 -1
- package/vendor/components/Combobox/index.js.map +1 -1
- package/vendor/components/Radio/index.d.ts.map +1 -1
- package/vendor/components/Radio/index.js +1 -1
- package/vendor/components/Radio/index.js.map +1 -1
- package/vendor/components/Resizable/index.d.ts +14 -9
- package/vendor/components/Resizable/index.d.ts.map +1 -1
- package/vendor/components/Resizable/index.js +23 -0
- package/vendor/components/Resizable/index.js.map +1 -1
- package/vendor/components/Resizable/resizableUtils.d.ts +24 -13
- package/vendor/components/Resizable/resizableUtils.d.ts.map +1 -1
- package/vendor/components/Resizable/resizableUtils.js +13 -3
- package/vendor/components/Resizable/resizableUtils.js.map +1 -1
- package/vendor/components/index.css +12 -5
- package/vendor/components/ui/combobox.js +1 -1
- package/vendor/components/ui/combobox.js.map +1 -1
- package/vendor/components/ui/input.js +1 -1
- package/vendor/components/ui/input.js.map +1 -1
- package/vendor/components/ui/select.js +1 -1
- package/vendor/components/ui/select.js.map +1 -1
- package/vendor/components/ui/textarea.js +1 -1
- package/vendor/components/ui/textarea.js.map +1 -1
- package/vendor/components/ui/tooltip.d.ts.map +1 -1
- package/vendor/components/ui/tooltip.js +3 -1
- package/vendor/components/ui/tooltip.js.map +1 -1
package/devtools.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { VisibleSettingsPanelNavigationGroup, VisibleSettingsPanelNavigationItem } from './src/Utilities/Helpers/SettingsPanelHelper';
|
|
2
2
|
import type { AdaptableApi, AdaptableColumnDataType, AdaptableModule, AdaptablePersistentState, AdaptableState } from './types';
|
|
3
|
+
import type { LicenseStatus } from './src/Utilities/license/licenseStatus';
|
|
4
|
+
/**
|
|
5
|
+
* What the instance's licence key means (not present, invalid, or trial / commercial with
|
|
6
|
+
* its end date). DevTools never receives the key itself.
|
|
7
|
+
*/
|
|
8
|
+
export type DevToolsLicenseStatus = LicenseStatus;
|
|
3
9
|
/**
|
|
4
10
|
* One AdapTable instance as reported by `window.__ADAPTABLE_DEVTOOLS__.listInstances()`.
|
|
5
11
|
*/
|
|
@@ -49,6 +55,11 @@ export type DevToolsObjectRow = {
|
|
|
49
55
|
*/
|
|
50
56
|
export type DevToolsScopedObject = {
|
|
51
57
|
module: string;
|
|
58
|
+
/**
|
|
59
|
+
* Why the object applies to the column: `Column Id`, `All Columns`,
|
|
60
|
+
* `Data Type: number` or `Column Type: price`.
|
|
61
|
+
*/
|
|
62
|
+
matchedBy: string;
|
|
52
63
|
rows: DevToolsObjectRow[];
|
|
53
64
|
};
|
|
54
65
|
/**
|
|
@@ -60,6 +71,10 @@ export type DevToolsColumnDetail = {
|
|
|
60
71
|
columns: DevToolsColumnOption[];
|
|
61
72
|
summary: DevToolsColumnSummaryRow[];
|
|
62
73
|
scopedObjects: DevToolsScopedObject[];
|
|
74
|
+
/** Friendly names of the modules searched for `scopedObjects` */
|
|
75
|
+
checkedModules: string[];
|
|
76
|
+
/** Friendly names of the modules not searched because Entitlements hide them */
|
|
77
|
+
hiddenModules: string[];
|
|
63
78
|
};
|
|
64
79
|
export type DevToolsColumnInfo = {
|
|
65
80
|
/** AdapTable column id (AG Grid `colId`) */
|
|
@@ -91,7 +106,7 @@ export type DevToolsGridInfo = {
|
|
|
91
106
|
userName?: string;
|
|
92
107
|
primaryKey?: string;
|
|
93
108
|
isAutogeneratedPrimaryKey: boolean;
|
|
94
|
-
|
|
109
|
+
license: DevToolsLicenseStatus;
|
|
95
110
|
layout: {
|
|
96
111
|
name: string;
|
|
97
112
|
type: 'Table' | 'Pivot';
|
|
@@ -141,6 +156,374 @@ export type DevToolsActionEntry = {
|
|
|
141
156
|
timestamp: number;
|
|
142
157
|
actionName: string;
|
|
143
158
|
};
|
|
159
|
+
/** A name/value pair attached to a timing (shown in the Performance panel tooltip). */
|
|
160
|
+
export type DevToolsPerfDetail = {
|
|
161
|
+
name: string;
|
|
162
|
+
value: string | number | boolean;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* One timed AdapTable operation: initialisation phases, Layout changes, column-model refreshes
|
|
166
|
+
* and Redux actions. Initialisation is always kept; the other operations only while a
|
|
167
|
+
* Performance recording runs. The same entries appear as Chrome Performance panel tracks during a
|
|
168
|
+
* recording, and all the time when profile tracks are enabled.
|
|
169
|
+
*/
|
|
170
|
+
export type DevToolsPerfMeasure = {
|
|
171
|
+
/** Increases by one for every measure of the instance; use it to fetch only new entries */
|
|
172
|
+
seq: number;
|
|
173
|
+
/** Epoch milliseconds when the operation started */
|
|
174
|
+
timestamp: number;
|
|
175
|
+
/** Milliseconds */
|
|
176
|
+
duration: number;
|
|
177
|
+
/** e.g. `Initialisation`, `Runtime`, `Layout Manager`, `Redux` */
|
|
178
|
+
track: string;
|
|
179
|
+
label: string;
|
|
180
|
+
details?: DevToolsPerfDetail[];
|
|
181
|
+
tooltip?: string;
|
|
182
|
+
};
|
|
183
|
+
/** Aggregated timings for one track + label. */
|
|
184
|
+
export type DevToolsPerfLabelStats = {
|
|
185
|
+
track: string;
|
|
186
|
+
label: string;
|
|
187
|
+
count: number;
|
|
188
|
+
totalMs: number;
|
|
189
|
+
avgMs: number;
|
|
190
|
+
maxMs: number;
|
|
191
|
+
/** 95th percentile over the most recent 200 entries */
|
|
192
|
+
p95Ms: number;
|
|
193
|
+
lastMs: number;
|
|
194
|
+
lastTimestamp: number;
|
|
195
|
+
};
|
|
196
|
+
/** A script that ran during a long animation frame. */
|
|
197
|
+
export type DevToolsLongFrameScript = {
|
|
198
|
+
invoker?: string;
|
|
199
|
+
invokerType?: string;
|
|
200
|
+
sourceURL?: string;
|
|
201
|
+
sourceFunctionName?: string;
|
|
202
|
+
/** Milliseconds */
|
|
203
|
+
duration: number;
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* A frame that took longer than 50ms to produce (Chrome `long-animation-frame` entries).
|
|
207
|
+
* Recorded while a Performance recording is running.
|
|
208
|
+
*/
|
|
209
|
+
export type DevToolsLongFrame = {
|
|
210
|
+
seq: number;
|
|
211
|
+
/** Epoch milliseconds */
|
|
212
|
+
timestamp: number;
|
|
213
|
+
duration: number;
|
|
214
|
+
/** The part of the frame that blocked user input (ms) */
|
|
215
|
+
blockingDuration: number;
|
|
216
|
+
scripts: DevToolsLongFrameScript[];
|
|
217
|
+
/** AdapTable operations that overlapped the frame, e.g. `Runtime: Refresh cells (42ms)` */
|
|
218
|
+
adaptableOperations: string[];
|
|
219
|
+
};
|
|
220
|
+
/** Whole-page JS heap, as Chrome reports it in `performance.memory`. */
|
|
221
|
+
export type DevToolsHeapSample = {
|
|
222
|
+
timestamp: number;
|
|
223
|
+
usedJSHeapSize: number;
|
|
224
|
+
totalJSHeapSize: number;
|
|
225
|
+
jsHeapSizeLimit: number;
|
|
226
|
+
};
|
|
227
|
+
/** What a hot-path entry measures. */
|
|
228
|
+
export type DevToolsHotPathKind = 'cellStyle' | 'cellClass' | 'valueFormatter' | 'comparator' | 'quickFilterText'
|
|
229
|
+
/** Building an IN filter's list of values (with their counts), per column */
|
|
230
|
+
| 'inFilterValues' | 'expression' | 'calculatedColumn' | 'columnFilter' | 'gridFilter' | 'filterPass' | 'dataChange' | 'alert' | 'flashingCell' | 'badge';
|
|
231
|
+
/**
|
|
232
|
+
* Cumulative cost of one per-cell or per-row operation during a recording, attributed to
|
|
233
|
+
* the AdapTable object (Format Column, Alert, Calculated Column, ...) that caused it when known.
|
|
234
|
+
*/
|
|
235
|
+
export type DevToolsHotPathStat = {
|
|
236
|
+
key: string;
|
|
237
|
+
kind: DevToolsHotPathKind;
|
|
238
|
+
module?: AdaptableModule;
|
|
239
|
+
objectId?: string;
|
|
240
|
+
objectName?: string;
|
|
241
|
+
columnId?: string;
|
|
242
|
+
/** Expression text, for expression evaluations */
|
|
243
|
+
expression?: string;
|
|
244
|
+
count: number;
|
|
245
|
+
totalMs: number;
|
|
246
|
+
maxMs: number;
|
|
247
|
+
};
|
|
248
|
+
/** Data change activity during a recording. */
|
|
249
|
+
export type DevToolsTickingStats = {
|
|
250
|
+
/** Seconds covered by the counters */
|
|
251
|
+
durationSec: number;
|
|
252
|
+
cellChanges: number;
|
|
253
|
+
/** Row transactions applied through the Adaptable API (add, update, delete) */
|
|
254
|
+
rowTransactions: number;
|
|
255
|
+
flashes: number;
|
|
256
|
+
alertsFired: number;
|
|
257
|
+
/** Full re-filters AdapTable triggered because a filtered column changed */
|
|
258
|
+
refiltersFromDataChange: number;
|
|
259
|
+
/** Per-second rates over the last 5 seconds */
|
|
260
|
+
recent: {
|
|
261
|
+
cellChangesPerSec: number;
|
|
262
|
+
refiltersPerSec: number;
|
|
263
|
+
flashesPerSec: number;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
/** Response of `get-perf-data`; ring-buffer entries are only those newer than the cursor passed in. */
|
|
267
|
+
export type DevToolsPerfData = {
|
|
268
|
+
adaptableId: string;
|
|
269
|
+
/**
|
|
270
|
+
* A recording runs: operations, long frames, memory (`memory`) and, with `recordingHotPaths`,
|
|
271
|
+
* per-cell and per-row costs and data change rates
|
|
272
|
+
*/
|
|
273
|
+
recording: boolean;
|
|
274
|
+
recordingStartedAt?: number;
|
|
275
|
+
recordingStoppedAt?: number;
|
|
276
|
+
/** The current or last recording includes Hot Paths */
|
|
277
|
+
recordingHotPaths?: boolean;
|
|
278
|
+
/** The current or last recording was started by Record and reload, at page load */
|
|
279
|
+
recordingOnLoad?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Why the last recording stopped, when it did not stop on request: one started from the
|
|
282
|
+
* DevTools panel stops by itself a few seconds after DevTools is closed
|
|
283
|
+
*/
|
|
284
|
+
recordingStopReason?: 'devtools-closed';
|
|
285
|
+
/**
|
|
286
|
+
* While a recording runs: whether it stops by itself a few seconds after DevTools closes.
|
|
287
|
+
* `false` when it was asked to keep recording, or was started from the in-page API or the
|
|
288
|
+
* in-page DevTools UI.
|
|
289
|
+
*/
|
|
290
|
+
recordingStopsWithDevTools?: boolean;
|
|
291
|
+
/** The memory part of the current or last recording */
|
|
292
|
+
memory?: DevToolsPerfMemory;
|
|
293
|
+
/**
|
|
294
|
+
* Every long frame of the current or last recording. `longFrames` lists only the newest 200,
|
|
295
|
+
* and `measures` the newest 500 operations (`labelStats` counts them all).
|
|
296
|
+
*/
|
|
297
|
+
longFrameTotals?: {
|
|
298
|
+
count: number;
|
|
299
|
+
slowestMs: number;
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Whether AdapTable's structures are tagged for a heap snapshot (DevTools asks for it while the
|
|
303
|
+
* Memory tab is open); `structures` is how many are tagged
|
|
304
|
+
*/
|
|
305
|
+
memoryTagging?: {
|
|
306
|
+
tagging: boolean;
|
|
307
|
+
until?: number;
|
|
308
|
+
structures?: number;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* `localStorage.adaptableProfileTracks` (or the `Adaptable:<id>:perf` debug channel) is on:
|
|
312
|
+
* operations are written as Chrome Performance panel tracks all the time, not only during a
|
|
313
|
+
* recording
|
|
314
|
+
*/
|
|
315
|
+
profileTracksEnabled: boolean;
|
|
316
|
+
supports: {
|
|
317
|
+
longAnimationFrame: boolean;
|
|
318
|
+
memory: boolean;
|
|
319
|
+
};
|
|
320
|
+
measures: DevToolsPerfMeasure[];
|
|
321
|
+
labelStats: DevToolsPerfLabelStats[];
|
|
322
|
+
longFrames: DevToolsLongFrame[];
|
|
323
|
+
hotPaths: DevToolsHotPathStat[];
|
|
324
|
+
ticking?: DevToolsTickingStats;
|
|
325
|
+
cursor: DevToolsPerfCursor;
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* What the caller already has: the last `seq` per ring buffer, and when the heap series and the
|
|
329
|
+
* inventory last changed (`cursor.heap` / `cursor.inventory` of the previous response).
|
|
330
|
+
*/
|
|
331
|
+
export type DevToolsPerfCursor = {
|
|
332
|
+
measures: number;
|
|
333
|
+
longFrames: number;
|
|
334
|
+
heap: number;
|
|
335
|
+
inventory: number;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* The memory a recording samples: the whole page's JS heap for the whole run, and the size of
|
|
339
|
+
* AdapTable's structures (the memory inventory, see `getMemoryInfo()`).
|
|
340
|
+
*/
|
|
341
|
+
export type DevToolsPerfMemory = {
|
|
342
|
+
/** Width of each heap point, in ms: 2000 at first, doubled whenever a long recording fills the series */
|
|
343
|
+
intervalMs: number;
|
|
344
|
+
/**
|
|
345
|
+
* The whole heap series (Chrome only). Left out when it has nothing newer than the cursor
|
|
346
|
+
* passed in: the caller keeps the series it has.
|
|
347
|
+
*/
|
|
348
|
+
heap?: DevToolsMemoryRecordingPoint[];
|
|
349
|
+
/**
|
|
350
|
+
* AdapTable's structures, read at the start, about every 30 s (less often when reading them
|
|
351
|
+
* is slow) and at the stop; the first sample is the baseline. Left out like `heap`.
|
|
352
|
+
*/
|
|
353
|
+
inventory?: DevToolsMemoryInventorySample[];
|
|
354
|
+
/** What reading the inventory cost: DevTools' own work during the recording */
|
|
355
|
+
inventoryReads: {
|
|
356
|
+
count: number;
|
|
357
|
+
totalMs: number;
|
|
358
|
+
maxMs: number;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
export type DevToolsPerfFindingSeverity = 'info' | 'warning' | 'critical';
|
|
362
|
+
/**
|
|
363
|
+
* One Performance Advisor finding: a configuration that is known to cost performance.
|
|
364
|
+
*/
|
|
365
|
+
export type DevToolsPerfFinding = {
|
|
366
|
+
/** Stable rule id, e.g. `quick-search-filter-without-cache` */
|
|
367
|
+
ruleId: string;
|
|
368
|
+
severity: DevToolsPerfFindingSeverity;
|
|
369
|
+
title: string;
|
|
370
|
+
/** Why this costs performance, with the numbers found */
|
|
371
|
+
message: string;
|
|
372
|
+
/** What to change */
|
|
373
|
+
fix: string;
|
|
374
|
+
/** Settings Panel module to open for the fix */
|
|
375
|
+
module?: AdaptableModule;
|
|
376
|
+
/** Affected objects (names or column ids) */
|
|
377
|
+
objects?: string[];
|
|
378
|
+
/** Docs page (slug) and anchor */
|
|
379
|
+
docs?: string;
|
|
380
|
+
};
|
|
381
|
+
export type DevToolsPerfContextExpression = {
|
|
382
|
+
module: AdaptableModule;
|
|
383
|
+
objectName: string;
|
|
384
|
+
expression: string;
|
|
385
|
+
valid: boolean;
|
|
386
|
+
};
|
|
387
|
+
export type DevToolsPerfContextFormatColumn = {
|
|
388
|
+
name: string;
|
|
389
|
+
scopeAll: boolean;
|
|
390
|
+
hasRule: boolean;
|
|
391
|
+
columnIds: string[];
|
|
392
|
+
};
|
|
393
|
+
export type DevToolsPerfContextCalculatedColumn = {
|
|
394
|
+
columnId: string;
|
|
395
|
+
name: string;
|
|
396
|
+
kind: 'scalar' | 'aggregated';
|
|
397
|
+
/** Other Calculated Columns referenced by the expression */
|
|
398
|
+
referencedCalculatedColumnIds: string[];
|
|
399
|
+
};
|
|
400
|
+
export type DevToolsPerfContextAlert = {
|
|
401
|
+
name: string;
|
|
402
|
+
type: string | null;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Everything the Performance Advisor rules look at, read once from the live grid. The page sends
|
|
406
|
+
* it to DevTools, which runs the rules: they are not part of AdapTable.
|
|
407
|
+
*/
|
|
408
|
+
export type DevToolsPerfContext = {
|
|
409
|
+
rowModelType: string;
|
|
410
|
+
rowCount: number;
|
|
411
|
+
columnCount: number;
|
|
412
|
+
visibleColumnCount: number;
|
|
413
|
+
primaryKey?: string;
|
|
414
|
+
isAutogeneratedPrimaryKey: boolean;
|
|
415
|
+
hasRowGroups: boolean;
|
|
416
|
+
gridOptions: {
|
|
417
|
+
cacheQuickFilter: boolean;
|
|
418
|
+
valueCache: boolean;
|
|
419
|
+
};
|
|
420
|
+
quickSearch: {
|
|
421
|
+
filterGridAfterQuickSearch: boolean;
|
|
422
|
+
};
|
|
423
|
+
dataChangeHistory: {
|
|
424
|
+
available: boolean;
|
|
425
|
+
mode: 'ACTIVE' | 'INACTIVE' | 'SUSPENDED';
|
|
426
|
+
activeByDefault: boolean;
|
|
427
|
+
maxDataChangesInStore?: number;
|
|
428
|
+
entries: number;
|
|
429
|
+
};
|
|
430
|
+
expressionOptions: {
|
|
431
|
+
maxHistoryPerCell?: number;
|
|
432
|
+
maxTimeframeSize?: number;
|
|
433
|
+
};
|
|
434
|
+
formatColumns: DevToolsPerfContextFormatColumn[];
|
|
435
|
+
calculatedColumns: DevToolsPerfContextCalculatedColumn[];
|
|
436
|
+
/** Column ids that have a Badge Styled Column */
|
|
437
|
+
badgeColumnIds: {
|
|
438
|
+
name: string;
|
|
439
|
+
columnId: string;
|
|
440
|
+
}[];
|
|
441
|
+
/** Column ids in scope of an active Flashing Cell definition */
|
|
442
|
+
flashingColumnIds: string[];
|
|
443
|
+
alerts: DevToolsPerfContextAlert[];
|
|
444
|
+
expressions: DevToolsPerfContextExpression[];
|
|
445
|
+
observableHistoryEntries?: number;
|
|
446
|
+
/**
|
|
447
|
+
* The expression engine's cache of prepared row evaluators: `size` and `limit` now, and how
|
|
448
|
+
* many evaluators it had to drop so far because it was full
|
|
449
|
+
*/
|
|
450
|
+
expressionCache?: {
|
|
451
|
+
size: number;
|
|
452
|
+
limit: number;
|
|
453
|
+
evictions: number;
|
|
454
|
+
};
|
|
455
|
+
/** Data change counters of the last (or running) DevTools recording */
|
|
456
|
+
ticking?: DevToolsTickingStats;
|
|
457
|
+
/** The Hot Paths results of the last (or running) recording */
|
|
458
|
+
hotPaths: DevToolsHotPathStat[];
|
|
459
|
+
};
|
|
460
|
+
/** Response of `get-perf-context` / `getPerformanceContext()` */
|
|
461
|
+
export type DevToolsPerfContextResult = {
|
|
462
|
+
adaptableId: string;
|
|
463
|
+
generatedAt: number;
|
|
464
|
+
adaptableVersion: string;
|
|
465
|
+
agGridVersion: string;
|
|
466
|
+
context: DevToolsPerfContext;
|
|
467
|
+
};
|
|
468
|
+
/** Facts the advisor rules used, reported with the findings. */
|
|
469
|
+
export type DevToolsPerfReportContext = {
|
|
470
|
+
rowModelType: string;
|
|
471
|
+
rowCount: number;
|
|
472
|
+
columnCount: number;
|
|
473
|
+
primaryKey?: string;
|
|
474
|
+
isAutogeneratedPrimaryKey: boolean;
|
|
475
|
+
activeExpressionCount: number;
|
|
476
|
+
};
|
|
477
|
+
export type DevToolsPerfReport = {
|
|
478
|
+
adaptableId: string;
|
|
479
|
+
generatedAt: number;
|
|
480
|
+
adaptableVersion: string;
|
|
481
|
+
agGridVersion: string;
|
|
482
|
+
context: DevToolsPerfReportContext;
|
|
483
|
+
findings: DevToolsPerfFinding[];
|
|
484
|
+
};
|
|
485
|
+
/** Size and item count of one structure AdapTable keeps in memory. */
|
|
486
|
+
export type DevToolsMemoryItem = {
|
|
487
|
+
key: string;
|
|
488
|
+
label: string;
|
|
489
|
+
group: 'State' | 'Runtime' | 'Caches' | 'DevTools';
|
|
490
|
+
/** Number of entries, when the structure is a collection */
|
|
491
|
+
count?: number;
|
|
492
|
+
/** Approximate size: JSON length in bytes (not the retained heap size) */
|
|
493
|
+
approxBytes?: number;
|
|
494
|
+
/** Configured limit, when there is one */
|
|
495
|
+
limit?: number;
|
|
496
|
+
note?: string;
|
|
497
|
+
};
|
|
498
|
+
export type DevToolsMemoryInfo = {
|
|
499
|
+
adaptableId: string;
|
|
500
|
+
timestamp: number;
|
|
501
|
+
items: DevToolsMemoryItem[];
|
|
502
|
+
/** Whole-page JS heap, Chrome only */
|
|
503
|
+
heap?: DevToolsHeapSample;
|
|
504
|
+
};
|
|
505
|
+
/**
|
|
506
|
+
* One point of a recording's heap series. Points start 2 s wide; when a long recording
|
|
507
|
+
* fills the series, neighbouring points are merged and the width doubles.
|
|
508
|
+
*/
|
|
509
|
+
export type DevToolsMemoryRecordingPoint = {
|
|
510
|
+
/** Start of the point's interval */
|
|
511
|
+
timestamp: number;
|
|
512
|
+
/** Last sample in the interval */
|
|
513
|
+
usedJSHeapSize: number;
|
|
514
|
+
/** Lowest sample in the interval: the heap after garbage collection */
|
|
515
|
+
usedMin: number;
|
|
516
|
+
usedMax: number;
|
|
517
|
+
totalJSHeapSize: number;
|
|
518
|
+
};
|
|
519
|
+
/** `count` and `approxBytes` of every memory inventory item, by item `key` */
|
|
520
|
+
export type DevToolsMemoryInventorySample = {
|
|
521
|
+
timestamp: number;
|
|
522
|
+
items: Record<string, {
|
|
523
|
+
count?: number;
|
|
524
|
+
approxBytes?: number;
|
|
525
|
+
}>;
|
|
526
|
+
};
|
|
144
527
|
/**
|
|
145
528
|
* In-page API exposed as `window.__ADAPTABLE_DEVTOOLS__` as soon as AdapTable
|
|
146
529
|
* loads in a browser.
|
|
@@ -180,7 +563,8 @@ export interface AdaptableDevToolsGlobal {
|
|
|
180
563
|
/** Columns AdapTable knows about, with data types and visibility */
|
|
181
564
|
getColumns(adaptableId?: string): DevToolsColumnInfo[];
|
|
182
565
|
/**
|
|
183
|
-
* Read-only Column Info for one column: summary plus the objects
|
|
566
|
+
* Read-only Column Info for one column: summary plus the objects that apply to it,
|
|
567
|
+
* each with the part of its Scope that matched, and the modules searched or hidden.
|
|
184
568
|
* Omit `columnId` to use the first column. Does not include distinct cell values.
|
|
185
569
|
*/
|
|
186
570
|
getColumnInfo(adaptableId?: string, columnId?: string): DevToolsColumnDetail;
|
|
@@ -210,6 +594,51 @@ export interface AdaptableDevToolsGlobal {
|
|
|
210
594
|
setLogging(pattern: string | null): string | null;
|
|
211
595
|
/** Toggles `localStorage.adaptableProfileTracks` (Chrome Performance panel tracks) */
|
|
212
596
|
enableProfiling(enabled?: boolean): void;
|
|
597
|
+
/**
|
|
598
|
+
* Starts a recording: operation timings, long animation frames, memory (the JS heap every 2 s
|
|
599
|
+
* and the size of AdapTable's structures about every 30 s) and, unless `hotPaths` is `false`,
|
|
600
|
+
* per-cell and per-row costs attributed to AdapTable objects and data change rates (Hot Paths
|
|
601
|
+
* add overhead while they run). Operations are also written as Chrome Performance panel tracks.
|
|
602
|
+
* It runs until stopped. Read it with `getPerfData()`.
|
|
603
|
+
*/
|
|
604
|
+
startPerfRecording(adaptableId?: string, options?: {
|
|
605
|
+
hotPaths?: boolean;
|
|
606
|
+
}): void;
|
|
607
|
+
/** Stops the recording; the results stay available until the next start */
|
|
608
|
+
stopPerfRecording(adaptableId?: string): void;
|
|
609
|
+
/**
|
|
610
|
+
* Reloads the page and records from its start (start-up included), for every instance that
|
|
611
|
+
* starts in the new page load. Read once, at load; ignored after 30 s. Stop it with
|
|
612
|
+
* `stopPerfRecording()`.
|
|
613
|
+
*/
|
|
614
|
+
recordPerfAfterReload(options?: {
|
|
615
|
+
hotPaths?: boolean;
|
|
616
|
+
}): void;
|
|
617
|
+
/**
|
|
618
|
+
* Timings and recording results, memory included. Pass the `cursor` of the previous call to
|
|
619
|
+
* get only what is new.
|
|
620
|
+
*/
|
|
621
|
+
getPerfData(adaptableId?: string, cursor?: DevToolsPerfCursor): DevToolsPerfData;
|
|
622
|
+
/**
|
|
623
|
+
* The facts the DevTools Performance Advisor checks: row model and counts, the active Format
|
|
624
|
+
* Columns, Calculated Columns, Alerts, Flashing Cells, Badges and Expressions, the options that
|
|
625
|
+
* matter for performance, and the Hot Paths results of the last recording. The Advisor's rules run in DevTools
|
|
626
|
+
* (see the Performance docs for the list)
|
|
627
|
+
*/
|
|
628
|
+
getPerformanceContext(adaptableId?: string): DevToolsPerfContextResult;
|
|
629
|
+
/**
|
|
630
|
+
* Approximate size of the structures AdapTable keeps in memory, read now. A recording samples
|
|
631
|
+
* the same (see `getPerfData().memory`).
|
|
632
|
+
*/
|
|
633
|
+
getMemoryInfo(adaptableId?: string): DevToolsMemoryInfo;
|
|
634
|
+
/**
|
|
635
|
+
* Tags AdapTable's main structures with weak references on
|
|
636
|
+
* `globalThis.__ADAPTABLE_MEMORY_ROOTS__` and keeps the tags current for 5 minutes. A heap
|
|
637
|
+
* snapshot taken meanwhile (Chrome Memory panel) can then be broken down by structure in the
|
|
638
|
+
* DevTools Memory tab. Weak references change no retained size. Returns `false` when the
|
|
639
|
+
* browser has no `WeakRef`.
|
|
640
|
+
*/
|
|
641
|
+
tagMemoryRoots(adaptableId?: string): boolean;
|
|
213
642
|
/** The live `AdaptableApi` of an instance (not serializable; for in-page use) */
|
|
214
643
|
getApi(adaptableId?: string): AdaptableApi;
|
|
215
644
|
}
|
|
@@ -238,7 +667,53 @@ export type DevToolsHostPageMessagePayload = {
|
|
|
238
667
|
adaptableId: string;
|
|
239
668
|
[key: string]: any;
|
|
240
669
|
};
|
|
241
|
-
export type DevToolsHostPageMessageType = 'mount' | 'update' | 'unmount' | 'log' | 'state-change' | 'column-info';
|
|
670
|
+
export type DevToolsHostPageMessageType = 'mount' | 'update' | 'unmount' | 'log' | 'state-change' | 'column-info' | DevToolsHostPageLiveMessageType;
|
|
671
|
+
/**
|
|
672
|
+
* Responses the extension forwards straight to the panel without storing them
|
|
673
|
+
* (they are requested by the panel and only meaningful while it is open).
|
|
674
|
+
*/
|
|
675
|
+
export type DevToolsHostPageLiveMessageType = 'perf-data' | 'perf-context' | 'memory-info';
|
|
676
|
+
export declare const DEVTOOLS_LIVE_MESSAGE_TYPES: readonly DevToolsHostPageLiveMessageType[];
|
|
677
|
+
/**
|
|
678
|
+
* The open AdapTable panel sends a `heartbeat` every second: after this long without one, the page
|
|
679
|
+
* treats the panel as closed. (The content script sends `register` every second too; the page
|
|
680
|
+
* treats the extension as gone after 90 s without one.)
|
|
681
|
+
*/
|
|
682
|
+
export declare const DEVTOOLS_HEARTBEAT_TIMEOUT_MS = 4000;
|
|
683
|
+
/**
|
|
684
|
+
* Version of the messages between AdapTable and DevTools. Sent by the extension in `register`
|
|
685
|
+
* (`{ protocol }`) and by AdapTable in `mount` (`devtools.protocol`). A `register` without it comes
|
|
686
|
+
* from an older extension, a `mount` without it from an older AdapTable: both sides then keep the
|
|
687
|
+
* behaviour of that older version (see `design_docs/tooling/devtools_recording.md`).
|
|
688
|
+
*/
|
|
689
|
+
export declare const DEVTOOLS_PROTOCOL_VERSION = 2;
|
|
690
|
+
/**
|
|
691
|
+
* What the page's AdapTable supports, so DevTools can tell an older version from a newer one
|
|
692
|
+
* without comparing version numbers:
|
|
693
|
+
* - `perf-recording`: one Performance recording (`set-perf-recording` with `hotPaths`)
|
|
694
|
+
* - `record-on-load`: Record and reload (`record-and-reload`)
|
|
695
|
+
*/
|
|
696
|
+
export type DevToolsPageFeature = 'perf-recording' | 'record-on-load';
|
|
697
|
+
export declare const DEVTOOLS_PAGE_FEATURES: readonly DevToolsPageFeature[];
|
|
698
|
+
/**
|
|
699
|
+
* Sent in `mount` and in every `state-change`; a `state-change` without State carries it alone
|
|
700
|
+
* when the recording of the instance starts or stops
|
|
701
|
+
*/
|
|
702
|
+
export type DevToolsPageInfo = {
|
|
703
|
+
protocol: number;
|
|
704
|
+
features: DevToolsPageFeature[];
|
|
705
|
+
/**
|
|
706
|
+
* The State timeline is paused: the page sends no State copies while the recording of this
|
|
707
|
+
* instance runs (they would be part of what it measures). When it resumes,
|
|
708
|
+
* the page sends the State if it changed meanwhile.
|
|
709
|
+
*/
|
|
710
|
+
stateTimelinePaused?: boolean;
|
|
711
|
+
/**
|
|
712
|
+
* A Performance recording runs for this instance. Sent again whenever a recording starts or
|
|
713
|
+
* stops, so the panel shows it without asking for the performance data.
|
|
714
|
+
*/
|
|
715
|
+
perfRecording?: boolean;
|
|
716
|
+
};
|
|
242
717
|
export type DevToolsGridRuntime = {
|
|
243
718
|
allRowsCount: number;
|
|
244
719
|
visibleRowsCount: number;
|
|
@@ -250,12 +725,14 @@ export type DevToolsMountPayload = {
|
|
|
250
725
|
adaptableId: string;
|
|
251
726
|
adaptableVersion: string;
|
|
252
727
|
agGridVersion: string;
|
|
253
|
-
|
|
728
|
+
license?: DevToolsLicenseStatus;
|
|
254
729
|
userName?: string;
|
|
255
730
|
primaryKey?: string;
|
|
256
731
|
/** Grouped modules visible in the Settings Panel sidebar for this instance. */
|
|
257
732
|
settingsPanelNavigation?: DevToolsSettingsPanelNavigationGroup[];
|
|
258
733
|
appThemeVars?: DevToolsThemeVars;
|
|
734
|
+
/** Missing for AdapTable versions before DevTools protocol 2 */
|
|
735
|
+
devtools?: DevToolsPageInfo;
|
|
259
736
|
themeVariant?: DevToolsThemeVariant;
|
|
260
737
|
};
|
|
261
738
|
/** Whether the current AdapTable theme is light or dark. */
|
|
@@ -301,8 +778,14 @@ export type DevToolsHostPageMessage = {
|
|
|
301
778
|
adaptableId: string;
|
|
302
779
|
state: any;
|
|
303
780
|
actionName?: string;
|
|
781
|
+
/**
|
|
782
|
+
* Sent again after the extension (re)connected rather than because of a change:
|
|
783
|
+
* the extension skips the snapshot when the state equals the latest one
|
|
784
|
+
*/
|
|
785
|
+
replay?: boolean;
|
|
786
|
+
devtools?: DevToolsPageInfo;
|
|
304
787
|
gridRuntime?: DevToolsGridRuntime;
|
|
305
|
-
|
|
788
|
+
license?: DevToolsLicenseStatus;
|
|
306
789
|
userName?: string;
|
|
307
790
|
primaryKey?: string;
|
|
308
791
|
settingsPanelNavigation?: DevToolsSettingsPanelNavigationGroup[];
|
|
@@ -314,5 +797,23 @@ export type DevToolsHostPageMessage = {
|
|
|
314
797
|
adaptableId: string;
|
|
315
798
|
columnInfo: DevToolsColumnDetail;
|
|
316
799
|
};
|
|
800
|
+
} | {
|
|
801
|
+
type: Extract<DevToolsHostPageMessageType, 'perf-data'>;
|
|
802
|
+
payload: {
|
|
803
|
+
adaptableId: string;
|
|
804
|
+
perfData: DevToolsPerfData;
|
|
805
|
+
};
|
|
806
|
+
} | {
|
|
807
|
+
type: Extract<DevToolsHostPageMessageType, 'perf-context'>;
|
|
808
|
+
payload: {
|
|
809
|
+
adaptableId: string;
|
|
810
|
+
perfContext: DevToolsPerfContextResult;
|
|
811
|
+
};
|
|
812
|
+
} | {
|
|
813
|
+
type: Extract<DevToolsHostPageMessageType, 'memory-info'>;
|
|
814
|
+
payload: {
|
|
815
|
+
adaptableId: string;
|
|
816
|
+
memoryInfo: DevToolsMemoryInfo;
|
|
817
|
+
};
|
|
317
818
|
} | DevToolsHostPageLogMessage);
|
|
318
819
|
export type DevToolsHookFn = (adaptableId: string, options: null | DevToolsFnOptions) => void;
|
package/devtools.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const DEVTOOLS_LIVE_MESSAGE_TYPES = [
|
|
2
|
+
'perf-data',
|
|
3
|
+
'perf-context',
|
|
4
|
+
'memory-info',
|
|
5
|
+
];
|
|
6
|
+
export const DEVTOOLS_HEARTBEAT_TIMEOUT_MS = 4000;
|
|
7
|
+
export const DEVTOOLS_PROTOCOL_VERSION = 2;
|
|
8
|
+
export const DEVTOOLS_PAGE_FEATURES = [
|
|
9
|
+
'perf-recording',
|
|
10
|
+
'record-on-load',
|
|
11
|
+
];
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer adaptable.reset, adaptable.components, adaptable.utilities, adaptable.theming;
|
|
4
4
|
@property --tw-animation-delay {
|
|
@@ -2835,8 +2835,8 @@
|
|
|
2835
2835
|
.twa\:file\:text-foreground::file-selector-button {
|
|
2836
2836
|
color: var(--ab-color-foreground);
|
|
2837
2837
|
}
|
|
2838
|
-
.twa\:placeholder\:text-
|
|
2839
|
-
color: var(--ab-color-
|
|
2838
|
+
.twa\:placeholder\:text-input-placeholder::placeholder {
|
|
2839
|
+
color: var(--ab-color-input-placeholder);
|
|
2840
2840
|
}
|
|
2841
2841
|
.twa\:before\:pointer-events-none::before {
|
|
2842
2842
|
content: var(--tw-content);
|
|
@@ -3727,8 +3727,8 @@
|
|
|
3727
3727
|
.twa\:data-open\:slide-in-from-bottom-2[data-open] {
|
|
3728
3728
|
--tw-enter-translate-y: calc(2*var(--spacing));
|
|
3729
3729
|
}
|
|
3730
|
-
.twa\:data-placeholder\:text-
|
|
3731
|
-
color: var(--ab-color-
|
|
3730
|
+
.twa\:data-placeholder\:text-input-placeholder[data-placeholder] {
|
|
3731
|
+
color: var(--ab-color-input-placeholder);
|
|
3732
3732
|
}
|
|
3733
3733
|
.twa\:data-popup-open\:bg-accent[data-popup-open] {
|
|
3734
3734
|
background-color: var(--ab-color-accent);
|
|
@@ -6279,6 +6279,14 @@
|
|
|
6279
6279
|
}
|
|
6280
6280
|
:root {
|
|
6281
6281
|
--ab-color-input-foreground: var(--ab-color-inputcolor, var(--ab-color-primary-foreground));
|
|
6282
|
+
--ab-color-input-placeholder: var(--ab-color-input-foreground);
|
|
6283
|
+
}
|
|
6284
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
6285
|
+
:root {
|
|
6286
|
+
--ab-color-input-placeholder: color-mix(in srgb, var(--ab-color-input-foreground) 50%, transparent);
|
|
6287
|
+
}
|
|
6288
|
+
}
|
|
6289
|
+
:root {
|
|
6282
6290
|
--ab-color-warn: #eb9316;
|
|
6283
6291
|
--ab-color-info: #17a2b8;
|
|
6284
6292
|
--ab-color-success: #419641;
|
|
@@ -9403,6 +9411,8 @@
|
|
|
9403
9411
|
border: 0;
|
|
9404
9412
|
background: none;
|
|
9405
9413
|
font-weight: 400;
|
|
9414
|
+
flex-shrink: 0;
|
|
9415
|
+
white-space: nowrap;
|
|
9406
9416
|
border-right: var(--ab-cmp-adaptable-statusbar__border);
|
|
9407
9417
|
}
|
|
9408
9418
|
.ab-StatusBar__SubPanel:last-child {
|
package/package.json
CHANGED
|
@@ -337,6 +337,11 @@ export interface IAdaptable {
|
|
|
337
337
|
* migrate (when enabled), then normalise.
|
|
338
338
|
*/
|
|
339
339
|
buildPostLoadHook(gridOptions: NormalizeAdaptableStateOptions): (state: Partial<AdaptablePersistentState>) => Partial<AdaptablePersistentState>;
|
|
340
|
-
|
|
340
|
+
/**
|
|
341
|
+
* @param config.columnsChanged only Columns (e.g. Calculated or FreeText Columns) changed, not the filters
|
|
342
|
+
*/
|
|
343
|
+
refreshLayout(config?: {
|
|
344
|
+
columnsChanged?: boolean;
|
|
345
|
+
}): void;
|
|
341
346
|
}
|
|
342
347
|
export type NormalizeAdaptableStateOptions = Pick<GridOptions, 'rowModelType' | 'treeData' | 'columnDefs' | 'autoGroupColumnDef' | 'defaultColDef' | 'pivotMode'>;
|