@agile-team/mach-table 0.19.0 → 0.23.0
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/README.md +1 -1
- package/dist/index.cjs +5 -6
- package/dist/index.d.cts +33 -8
- package/dist/index.d.ts +33 -8
- package/dist/index.js +5 -6
- package/dist/{worker-P1ks_WSx.d.cts → worker-DsFc5zec.d.cts} +31 -0
- package/dist/{worker-P1ks_WSx.d.ts → worker-DsFc5zec.d.ts} +31 -0
- package/dist/worker.cjs +0 -1
- package/dist/worker.d.cts +1 -1
- package/dist/worker.d.ts +1 -1
- package/dist/worker.js +0 -1
- package/package.json +3 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/worker.cjs.map +0 -1
- package/dist/worker.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as GridOptions, a as GridApi, C as ColDefOrGroup, b as Column, c as ColumnGroup, P as PinnedDirection, d as ColumnState, S as SortModel, R as RemoteBlockCacheSnapshot, e as RowTransaction, F as FilterModel, A as AdvancedFilterModel, f as RowNode, g as GridChange, h as GridPerformanceSnapshot, i as RefreshCellsParams, j as ResolvedGridOptions, k as GridSize, T as ThemeMode, D as DomLayoutMode, O as OverlayTemplate, l as GridEventMap, m as CellRendererFn, n as CellEditorFactory, o as GridFeature, p as RgLocaleKey, q as GridEventType, r as GridDiagnostics, s as ColumnFilter, t as ColDef, u as ColDefGroup, v as AdvancedFilterCondition, w as AdvancedFilterNode, x as AdvancedFilterGroup, y as ColumnStateStore, z as GridStateStore, B as GridState, E as GridStateInput, H as CellRendererParams, I as FieldPath, J as FieldPathValue, K as GridComponents, L as SaveChangesResult, M as GridBatchSaveResult, N as SaveChangeConflict } from './worker-
|
|
2
|
-
export { Q as ActionPolicy, U as ActionPolicyContext, V as ApplyGridStateOptions, W as CellAlign, X as CellClassParams, Y as CellClassRule, Z as CellClickEvent, _ as CellContextMenuEvent, $ as CellDoubleClickEvent, a0 as CellEditingStartedEvent, a1 as CellEditingStoppedEvent, a2 as CellEditorParams, a3 as CellRendererOutput, a4 as CellStyleRule, a5 as CellValueChangedEvent, a6 as ColumnLayoutMode, a7 as ColumnMovedEvent, a8 as ColumnResizedEvent, a9 as ColumnVisibilityChangedEvent, aa as ColumnWorkbenchItem, ab as ContextMenuItem, ac as ContextMenuParams, ad as CsvExportParams, ae as DEFAULT_LOCALE, af as DatasourceMode, ag as DateFilterCondition, ah as DateFilterMatch, ai as DetailRowRendererParams, aj as DetailToggledEvent, ak as DirtyStateChangedEvent, al as EVENT_TYPES, am as EditableIndicator, an as EditableParams, ao as EventHandlers, ap as FieldDataProcessorOptions, aq as FilterChangedEvent, ar as FilterType, as as GetRowHeightParams, at as GetRowIdParams, au as GridAsyncOptions, av as GridCellChange, aw as GridCellRange, ax as GridColumnsApi, ay as GridDataProcessor, az as GridDataProcessorColumn, aA as GridDataProcessorPayload, aB as GridDataProcessorRequest, aC as GridDataProcessorResult, aD as GridDataProcessorRow, aE as GridDataWorkerScope, aF as GridDatasource, aG as GridDiagnosticError, aH as GridDiagnosticsApi, aI as GridEditType, aJ as GridEditingApi, aK as GridErrorCode, aL as GridErrorEvent, aM as GridEventBase, aN as GridFeatureContext, aO as GridReadyEvent, aP as GridRowsApi, aQ as GridSelectionApi, aR as GridStateApi, aS as GridStateSection, aT as GridUpdateSchedulerSnapshot, aU as GridWorkerCancelMessage, aV as GridWorkerProcessMessage, aW as GridWorkerRequestMessage, aX as GridWorkerResponseMessage, aY as HeaderComponentParams, aZ as ICellEditor, a_ as ICellRendererResult, a$ as ImportCsvOptions, b0 as InfiniteGetRowsParams, b1 as LOCALE_EN, b2 as LegacyGridStateV1, b3 as ModelUpdatedEvent, b4 as NumberFilterCondition, b5 as NumberFilterMatch, b6 as OverlayContent, b7 as PaginationChangedEvent, b8 as PaginationConfig, b9 as PrintOptions, ba as RangeSelectionChangedEvent, bb as RgLocale, bc as RowClickEvent, bd as RowDragEndEvent, be as RowEditChange, bf as RowEditValidationParams, bg as RowEditValidationResult, bh as RowEditingStartedEvent, bi as RowEditingStoppedEvent, bj as RowSelectionMode, bk as SaveChangeIssue, bl as SaveChangesHandler, bm as SelectEditorParams, bn as SelectionChangedEvent, bo as SetFilterCondition, bp as SetFilterParams, bq as SortChangedEvent, br as SortDirection, bs as SortModelItem, bt as StatusBarConfig, bu as StatusBarPanel, bv as TextFilterCondition, bw as TextFilterMatch, bx as TooltipParams, by as TreeChildrenLoadFailedEvent, bz as TreeChildrenLoadedEvent, bA as TreeDataLoadParams, bB as ValueFormatterParams, bC as ValueGetterParams, bD as ValueSetterParams, bE as WatermarkConfig, bF as WorkerDataProcessorOptions, bG as formatText, bH as formatTwo, bI as isColDefGroup, bJ as matchLocaleKey } from './worker-
|
|
1
|
+
import { G as GridOptions, a as GridApi, C as ColDefOrGroup, b as Column, c as ColumnGroup, P as PinnedDirection, d as ColumnState, S as SortModel, R as RemoteBlockCacheSnapshot, e as RowTransaction, F as FilterModel, A as AdvancedFilterModel, f as RowNode, g as GridChange, h as GridPerformanceSnapshot, i as RefreshCellsParams, j as ResolvedGridOptions, k as GridSize, T as ThemeMode, D as DomLayoutMode, O as OverlayTemplate, l as GridEventMap, m as CellRendererFn, n as CellEditorFactory, o as GridFeature, p as RgLocaleKey, q as GridEventType, r as GridDiagnostics, s as ColumnFilter, t as ColDef, u as ColDefGroup, v as AdvancedFilterCondition, w as AdvancedFilterNode, x as AdvancedFilterGroup, y as ColumnStateStore, z as GridStateStore, B as GridState, E as GridStateInput, H as CellRendererParams, I as FieldPath, J as FieldPathValue, K as GridComponents, L as SaveChangesResult, M as GridBatchSaveResult, N as SaveChangeConflict } from './worker-DsFc5zec.cjs';
|
|
2
|
+
export { Q as ActionPolicy, U as ActionPolicyContext, V as ApplyGridStateOptions, W as CellAlign, X as CellClassParams, Y as CellClassRule, Z as CellClickEvent, _ as CellContextMenuEvent, $ as CellDoubleClickEvent, a0 as CellEditingStartedEvent, a1 as CellEditingStoppedEvent, a2 as CellEditorParams, a3 as CellRendererOutput, a4 as CellStyleRule, a5 as CellValueChangedEvent, a6 as ColumnLayoutMode, a7 as ColumnMovedEvent, a8 as ColumnResizedEvent, a9 as ColumnVisibilityChangedEvent, aa as ColumnWorkbenchItem, ab as ContextMenuItem, ac as ContextMenuParams, ad as CsvExportParams, ae as DEFAULT_LOCALE, af as DatasourceMode, ag as DateFilterCondition, ah as DateFilterMatch, ai as DetailRowRendererParams, aj as DetailToggledEvent, ak as DirtyStateChangedEvent, al as EVENT_TYPES, am as EditableIndicator, an as EditableParams, ao as EventHandlers, ap as FieldDataProcessorOptions, aq as FilterChangedEvent, ar as FilterType, as as GetRowHeightParams, at as GetRowIdParams, au as GridAsyncOptions, av as GridCellChange, aw as GridCellRange, ax as GridColumnsApi, ay as GridDataProcessor, az as GridDataProcessorColumn, aA as GridDataProcessorPayload, aB as GridDataProcessorRequest, aC as GridDataProcessorResult, aD as GridDataProcessorRow, aE as GridDataWorkerScope, aF as GridDatasource, aG as GridDiagnosticError, aH as GridDiagnosticsApi, aI as GridEditType, aJ as GridEditingApi, aK as GridErrorCode, aL as GridErrorEvent, aM as GridEventBase, aN as GridFeatureContext, aO as GridReadyEvent, aP as GridRowsApi, aQ as GridSelectionApi, aR as GridStateApi, aS as GridStateSection, aT as GridUpdateSchedulerSnapshot, aU as GridWorkerCancelMessage, aV as GridWorkerProcessMessage, aW as GridWorkerRequestMessage, aX as GridWorkerResponseMessage, aY as HeaderComponentParams, aZ as ICellEditor, a_ as ICellRendererResult, a$ as ImportCsvOptions, b0 as InfiniteGetRowsParams, b1 as LOCALE_EN, b2 as LegacyGridStateV1, b3 as ModelUpdatedEvent, b4 as NumberFilterCondition, b5 as NumberFilterMatch, b6 as OverlayContent, b7 as PaginationChangedEvent, b8 as PaginationConfig, b9 as PrintOptions, ba as RangeSelectionChangedEvent, bb as RgLocale, bc as RowClickEvent, bd as RowDragEndEvent, be as RowEditChange, bf as RowEditValidationParams, bg as RowEditValidationResult, bh as RowEditingStartedEvent, bi as RowEditingStoppedEvent, bj as RowSelectionMode, bk as SaveChangeIssue, bl as SaveChangesHandler, bm as SelectEditorParams, bn as SelectionChangedEvent, bo as SetFilterCondition, bp as SetFilterParams, bq as SortChangedEvent, br as SortDirection, bs as SortModelItem, bt as StatusBarConfig, bu as StatusBarPanel, bv as TextFilterCondition, bw as TextFilterMatch, bx as TooltipParams, by as TreeChildrenLoadFailedEvent, bz as TreeChildrenLoadedEvent, bA as TreeDataLoadParams, bB as ValueFormatterParams, bC as ValueGetterParams, bD as ValueSetterParams, bE as WatermarkConfig, bF as WorkerDataProcessorOptions, bG as formatText, bH as formatTwo, bI as isColDefGroup, bJ as matchLocaleKey } from './worker-DsFc5zec.cjs';
|
|
3
3
|
|
|
4
4
|
declare function createGrid<TData = any>(container: HTMLElement, options?: GridOptions<TData>): GridApi<TData>;
|
|
5
5
|
|
|
@@ -65,6 +65,12 @@ declare class ColumnModel {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
type RowModelContext = Pick<GridCore<any>, "bodyRenderer" | "changeTracker" | "columnModel" | "emit" | "getApi" | "getCellValue" | "getLocaleText" | "headerRenderer" | "isDestroyed" | "nextId" | "options" | "performanceMonitor" | "relayout" | "reportError" | "requestUpdate" | "selectionService" | "skeleton" | "undoService">;
|
|
68
|
+
interface RowTransactionImpact {
|
|
69
|
+
/** True when ordering, membership, grouping, spans or row geometry may have changed. */
|
|
70
|
+
pipelineChanged: boolean;
|
|
71
|
+
/** Stable IDs whose data references were replaced. */
|
|
72
|
+
updatedRowIds: readonly string[];
|
|
73
|
+
}
|
|
68
74
|
declare class RowModel<TData = any> {
|
|
69
75
|
private core;
|
|
70
76
|
private all;
|
|
@@ -99,6 +105,7 @@ declare class RowModel<TData = any> {
|
|
|
99
105
|
private dataProcessorSeq;
|
|
100
106
|
private dataProcessorAbort;
|
|
101
107
|
private skipDataProcessorOnce;
|
|
108
|
+
private lastRequestedBlock;
|
|
102
109
|
constructor(core: RowModelContext);
|
|
103
110
|
resolveRowId(data: TData, index: number, fallback: string): string;
|
|
104
111
|
get isTree(): boolean;
|
|
@@ -121,7 +128,9 @@ declare class RowModel<TData = any> {
|
|
|
121
128
|
private resolveBlockRowCount;
|
|
122
129
|
private blockPlaceholder;
|
|
123
130
|
private abortError;
|
|
131
|
+
private retryDelay;
|
|
124
132
|
checkInfiniteScroll(lastVisibleIndex: number): void;
|
|
133
|
+
private prefetchVisibleBlocks;
|
|
125
134
|
onServerParamsChanged(): Promise<void>;
|
|
126
135
|
onDatasourceChanged(): Promise<void>;
|
|
127
136
|
destroy(): void;
|
|
@@ -137,8 +146,10 @@ declare class RowModel<TData = any> {
|
|
|
137
146
|
loadTreeChildren(id: string, force?: boolean): Promise<readonly TData[]>;
|
|
138
147
|
private replaceTreeChildren;
|
|
139
148
|
private validateTreeChildren;
|
|
140
|
-
applyTransaction(transaction: RowTransaction<TData>, refresh?: boolean):
|
|
141
|
-
applyTransactions(transactions: readonly RowTransaction<TData>[]):
|
|
149
|
+
applyTransaction(transaction: RowTransaction<TData>, refresh?: boolean): RowTransactionImpact;
|
|
150
|
+
applyTransactions(transactions: readonly RowTransaction<TData>[]): RowTransactionImpact;
|
|
151
|
+
private transactionNeedsPipeline;
|
|
152
|
+
private emitIncrementalModelUpdate;
|
|
142
153
|
private buildChildNodes;
|
|
143
154
|
private reindexAll;
|
|
144
155
|
setFilterModel(filterModel: FilterModel | null): boolean;
|
|
@@ -489,9 +500,8 @@ declare class PerformanceMonitor {
|
|
|
489
500
|
private samples;
|
|
490
501
|
private layoutSamples;
|
|
491
502
|
private modelSamples;
|
|
492
|
-
private
|
|
493
|
-
private
|
|
494
|
-
private longTaskObserver;
|
|
503
|
+
private longTaskBaseline;
|
|
504
|
+
private releaseLongTaskHub;
|
|
495
505
|
constructor();
|
|
496
506
|
start(): number;
|
|
497
507
|
recordRender(startedAt: number, rows: number, columns: number): void;
|
|
@@ -598,14 +608,21 @@ declare class HeaderRenderer {
|
|
|
598
608
|
private leafCells;
|
|
599
609
|
private groupCells;
|
|
600
610
|
private paneTrees;
|
|
611
|
+
private columnViewport;
|
|
612
|
+
private centerFirst;
|
|
613
|
+
private centerLastExcl;
|
|
601
614
|
constructor(core: HeaderContext);
|
|
602
615
|
build(): void;
|
|
616
|
+
updateColumnWindow(): void;
|
|
617
|
+
private updateColumnWindowState;
|
|
618
|
+
private filterTreeColumns;
|
|
603
619
|
private createLeafCell;
|
|
604
620
|
private createGroupCell;
|
|
605
621
|
applyLayout(): void;
|
|
606
622
|
private visiblePaneLeaves;
|
|
607
623
|
private onHeaderKeyDown;
|
|
608
624
|
private focusHeaderCell;
|
|
625
|
+
private scrollColumnIntoView;
|
|
609
626
|
private canResizeColumn;
|
|
610
627
|
refreshSortIndicators(): void;
|
|
611
628
|
refreshFilterIcons(): void;
|
|
@@ -620,7 +637,7 @@ interface NormalizedRange {
|
|
|
620
637
|
c2: number;
|
|
621
638
|
}
|
|
622
639
|
|
|
623
|
-
type BodyContext = Pick<GridCore<any>, "buildDefaultEmptyState" | "buildDefaultErrorState" | "columnModel" | "contextMenuService" | "editingService" | "emit" | "getApi" | "getCellValue" | "gridId" | "isDestroyed" | "options" | "performanceMonitor" | "pinnedRowsRenderer" | "reportError" | "resolveCellRenderer" | "rowModel" | "selectionService" | "setCellValue" | "skeleton" | "summaryRenderer" | "toggleDetail" | "tooltipService" | "undoService">;
|
|
640
|
+
type BodyContext = Pick<GridCore<any>, "buildDefaultEmptyState" | "buildDefaultErrorState" | "columnModel" | "contextMenuService" | "editingService" | "emit" | "getApi" | "getCellValue" | "gridId" | "headerRenderer" | "isDestroyed" | "options" | "performanceMonitor" | "pinnedRowsRenderer" | "reportError" | "resolveCellRenderer" | "rowModel" | "selectionService" | "setCellValue" | "skeleton" | "summaryRenderer" | "toggleDetail" | "tooltipService" | "undoService">;
|
|
624
641
|
interface FocusedCell {
|
|
625
642
|
rowIndex: number;
|
|
626
643
|
colId: string;
|
|
@@ -1289,6 +1306,10 @@ declare const GRID_OPTION_META: {
|
|
|
1289
1306
|
readonly kind: "number";
|
|
1290
1307
|
readonly update: "options";
|
|
1291
1308
|
};
|
|
1309
|
+
readonly datasourceMaxConcurrentRequests: {
|
|
1310
|
+
readonly kind: "number";
|
|
1311
|
+
readonly update: "options";
|
|
1312
|
+
};
|
|
1292
1313
|
readonly blockPrefetch: {
|
|
1293
1314
|
readonly kind: "number";
|
|
1294
1315
|
readonly update: "options";
|
|
@@ -1313,6 +1334,10 @@ declare const GRID_OPTION_META: {
|
|
|
1313
1334
|
readonly kind: "number";
|
|
1314
1335
|
readonly update: "options";
|
|
1315
1336
|
};
|
|
1337
|
+
readonly datasourceRetryJitter: {
|
|
1338
|
+
readonly kind: "number";
|
|
1339
|
+
readonly update: "options";
|
|
1340
|
+
};
|
|
1316
1341
|
readonly suppressCellFocus: {
|
|
1317
1342
|
readonly kind: "boolean";
|
|
1318
1343
|
readonly update: "options";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as GridOptions, a as GridApi, C as ColDefOrGroup, b as Column, c as ColumnGroup, P as PinnedDirection, d as ColumnState, S as SortModel, R as RemoteBlockCacheSnapshot, e as RowTransaction, F as FilterModel, A as AdvancedFilterModel, f as RowNode, g as GridChange, h as GridPerformanceSnapshot, i as RefreshCellsParams, j as ResolvedGridOptions, k as GridSize, T as ThemeMode, D as DomLayoutMode, O as OverlayTemplate, l as GridEventMap, m as CellRendererFn, n as CellEditorFactory, o as GridFeature, p as RgLocaleKey, q as GridEventType, r as GridDiagnostics, s as ColumnFilter, t as ColDef, u as ColDefGroup, v as AdvancedFilterCondition, w as AdvancedFilterNode, x as AdvancedFilterGroup, y as ColumnStateStore, z as GridStateStore, B as GridState, E as GridStateInput, H as CellRendererParams, I as FieldPath, J as FieldPathValue, K as GridComponents, L as SaveChangesResult, M as GridBatchSaveResult, N as SaveChangeConflict } from './worker-
|
|
2
|
-
export { Q as ActionPolicy, U as ActionPolicyContext, V as ApplyGridStateOptions, W as CellAlign, X as CellClassParams, Y as CellClassRule, Z as CellClickEvent, _ as CellContextMenuEvent, $ as CellDoubleClickEvent, a0 as CellEditingStartedEvent, a1 as CellEditingStoppedEvent, a2 as CellEditorParams, a3 as CellRendererOutput, a4 as CellStyleRule, a5 as CellValueChangedEvent, a6 as ColumnLayoutMode, a7 as ColumnMovedEvent, a8 as ColumnResizedEvent, a9 as ColumnVisibilityChangedEvent, aa as ColumnWorkbenchItem, ab as ContextMenuItem, ac as ContextMenuParams, ad as CsvExportParams, ae as DEFAULT_LOCALE, af as DatasourceMode, ag as DateFilterCondition, ah as DateFilterMatch, ai as DetailRowRendererParams, aj as DetailToggledEvent, ak as DirtyStateChangedEvent, al as EVENT_TYPES, am as EditableIndicator, an as EditableParams, ao as EventHandlers, ap as FieldDataProcessorOptions, aq as FilterChangedEvent, ar as FilterType, as as GetRowHeightParams, at as GetRowIdParams, au as GridAsyncOptions, av as GridCellChange, aw as GridCellRange, ax as GridColumnsApi, ay as GridDataProcessor, az as GridDataProcessorColumn, aA as GridDataProcessorPayload, aB as GridDataProcessorRequest, aC as GridDataProcessorResult, aD as GridDataProcessorRow, aE as GridDataWorkerScope, aF as GridDatasource, aG as GridDiagnosticError, aH as GridDiagnosticsApi, aI as GridEditType, aJ as GridEditingApi, aK as GridErrorCode, aL as GridErrorEvent, aM as GridEventBase, aN as GridFeatureContext, aO as GridReadyEvent, aP as GridRowsApi, aQ as GridSelectionApi, aR as GridStateApi, aS as GridStateSection, aT as GridUpdateSchedulerSnapshot, aU as GridWorkerCancelMessage, aV as GridWorkerProcessMessage, aW as GridWorkerRequestMessage, aX as GridWorkerResponseMessage, aY as HeaderComponentParams, aZ as ICellEditor, a_ as ICellRendererResult, a$ as ImportCsvOptions, b0 as InfiniteGetRowsParams, b1 as LOCALE_EN, b2 as LegacyGridStateV1, b3 as ModelUpdatedEvent, b4 as NumberFilterCondition, b5 as NumberFilterMatch, b6 as OverlayContent, b7 as PaginationChangedEvent, b8 as PaginationConfig, b9 as PrintOptions, ba as RangeSelectionChangedEvent, bb as RgLocale, bc as RowClickEvent, bd as RowDragEndEvent, be as RowEditChange, bf as RowEditValidationParams, bg as RowEditValidationResult, bh as RowEditingStartedEvent, bi as RowEditingStoppedEvent, bj as RowSelectionMode, bk as SaveChangeIssue, bl as SaveChangesHandler, bm as SelectEditorParams, bn as SelectionChangedEvent, bo as SetFilterCondition, bp as SetFilterParams, bq as SortChangedEvent, br as SortDirection, bs as SortModelItem, bt as StatusBarConfig, bu as StatusBarPanel, bv as TextFilterCondition, bw as TextFilterMatch, bx as TooltipParams, by as TreeChildrenLoadFailedEvent, bz as TreeChildrenLoadedEvent, bA as TreeDataLoadParams, bB as ValueFormatterParams, bC as ValueGetterParams, bD as ValueSetterParams, bE as WatermarkConfig, bF as WorkerDataProcessorOptions, bG as formatText, bH as formatTwo, bI as isColDefGroup, bJ as matchLocaleKey } from './worker-
|
|
1
|
+
import { G as GridOptions, a as GridApi, C as ColDefOrGroup, b as Column, c as ColumnGroup, P as PinnedDirection, d as ColumnState, S as SortModel, R as RemoteBlockCacheSnapshot, e as RowTransaction, F as FilterModel, A as AdvancedFilterModel, f as RowNode, g as GridChange, h as GridPerformanceSnapshot, i as RefreshCellsParams, j as ResolvedGridOptions, k as GridSize, T as ThemeMode, D as DomLayoutMode, O as OverlayTemplate, l as GridEventMap, m as CellRendererFn, n as CellEditorFactory, o as GridFeature, p as RgLocaleKey, q as GridEventType, r as GridDiagnostics, s as ColumnFilter, t as ColDef, u as ColDefGroup, v as AdvancedFilterCondition, w as AdvancedFilterNode, x as AdvancedFilterGroup, y as ColumnStateStore, z as GridStateStore, B as GridState, E as GridStateInput, H as CellRendererParams, I as FieldPath, J as FieldPathValue, K as GridComponents, L as SaveChangesResult, M as GridBatchSaveResult, N as SaveChangeConflict } from './worker-DsFc5zec.js';
|
|
2
|
+
export { Q as ActionPolicy, U as ActionPolicyContext, V as ApplyGridStateOptions, W as CellAlign, X as CellClassParams, Y as CellClassRule, Z as CellClickEvent, _ as CellContextMenuEvent, $ as CellDoubleClickEvent, a0 as CellEditingStartedEvent, a1 as CellEditingStoppedEvent, a2 as CellEditorParams, a3 as CellRendererOutput, a4 as CellStyleRule, a5 as CellValueChangedEvent, a6 as ColumnLayoutMode, a7 as ColumnMovedEvent, a8 as ColumnResizedEvent, a9 as ColumnVisibilityChangedEvent, aa as ColumnWorkbenchItem, ab as ContextMenuItem, ac as ContextMenuParams, ad as CsvExportParams, ae as DEFAULT_LOCALE, af as DatasourceMode, ag as DateFilterCondition, ah as DateFilterMatch, ai as DetailRowRendererParams, aj as DetailToggledEvent, ak as DirtyStateChangedEvent, al as EVENT_TYPES, am as EditableIndicator, an as EditableParams, ao as EventHandlers, ap as FieldDataProcessorOptions, aq as FilterChangedEvent, ar as FilterType, as as GetRowHeightParams, at as GetRowIdParams, au as GridAsyncOptions, av as GridCellChange, aw as GridCellRange, ax as GridColumnsApi, ay as GridDataProcessor, az as GridDataProcessorColumn, aA as GridDataProcessorPayload, aB as GridDataProcessorRequest, aC as GridDataProcessorResult, aD as GridDataProcessorRow, aE as GridDataWorkerScope, aF as GridDatasource, aG as GridDiagnosticError, aH as GridDiagnosticsApi, aI as GridEditType, aJ as GridEditingApi, aK as GridErrorCode, aL as GridErrorEvent, aM as GridEventBase, aN as GridFeatureContext, aO as GridReadyEvent, aP as GridRowsApi, aQ as GridSelectionApi, aR as GridStateApi, aS as GridStateSection, aT as GridUpdateSchedulerSnapshot, aU as GridWorkerCancelMessage, aV as GridWorkerProcessMessage, aW as GridWorkerRequestMessage, aX as GridWorkerResponseMessage, aY as HeaderComponentParams, aZ as ICellEditor, a_ as ICellRendererResult, a$ as ImportCsvOptions, b0 as InfiniteGetRowsParams, b1 as LOCALE_EN, b2 as LegacyGridStateV1, b3 as ModelUpdatedEvent, b4 as NumberFilterCondition, b5 as NumberFilterMatch, b6 as OverlayContent, b7 as PaginationChangedEvent, b8 as PaginationConfig, b9 as PrintOptions, ba as RangeSelectionChangedEvent, bb as RgLocale, bc as RowClickEvent, bd as RowDragEndEvent, be as RowEditChange, bf as RowEditValidationParams, bg as RowEditValidationResult, bh as RowEditingStartedEvent, bi as RowEditingStoppedEvent, bj as RowSelectionMode, bk as SaveChangeIssue, bl as SaveChangesHandler, bm as SelectEditorParams, bn as SelectionChangedEvent, bo as SetFilterCondition, bp as SetFilterParams, bq as SortChangedEvent, br as SortDirection, bs as SortModelItem, bt as StatusBarConfig, bu as StatusBarPanel, bv as TextFilterCondition, bw as TextFilterMatch, bx as TooltipParams, by as TreeChildrenLoadFailedEvent, bz as TreeChildrenLoadedEvent, bA as TreeDataLoadParams, bB as ValueFormatterParams, bC as ValueGetterParams, bD as ValueSetterParams, bE as WatermarkConfig, bF as WorkerDataProcessorOptions, bG as formatText, bH as formatTwo, bI as isColDefGroup, bJ as matchLocaleKey } from './worker-DsFc5zec.js';
|
|
3
3
|
|
|
4
4
|
declare function createGrid<TData = any>(container: HTMLElement, options?: GridOptions<TData>): GridApi<TData>;
|
|
5
5
|
|
|
@@ -65,6 +65,12 @@ declare class ColumnModel {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
type RowModelContext = Pick<GridCore<any>, "bodyRenderer" | "changeTracker" | "columnModel" | "emit" | "getApi" | "getCellValue" | "getLocaleText" | "headerRenderer" | "isDestroyed" | "nextId" | "options" | "performanceMonitor" | "relayout" | "reportError" | "requestUpdate" | "selectionService" | "skeleton" | "undoService">;
|
|
68
|
+
interface RowTransactionImpact {
|
|
69
|
+
/** True when ordering, membership, grouping, spans or row geometry may have changed. */
|
|
70
|
+
pipelineChanged: boolean;
|
|
71
|
+
/** Stable IDs whose data references were replaced. */
|
|
72
|
+
updatedRowIds: readonly string[];
|
|
73
|
+
}
|
|
68
74
|
declare class RowModel<TData = any> {
|
|
69
75
|
private core;
|
|
70
76
|
private all;
|
|
@@ -99,6 +105,7 @@ declare class RowModel<TData = any> {
|
|
|
99
105
|
private dataProcessorSeq;
|
|
100
106
|
private dataProcessorAbort;
|
|
101
107
|
private skipDataProcessorOnce;
|
|
108
|
+
private lastRequestedBlock;
|
|
102
109
|
constructor(core: RowModelContext);
|
|
103
110
|
resolveRowId(data: TData, index: number, fallback: string): string;
|
|
104
111
|
get isTree(): boolean;
|
|
@@ -121,7 +128,9 @@ declare class RowModel<TData = any> {
|
|
|
121
128
|
private resolveBlockRowCount;
|
|
122
129
|
private blockPlaceholder;
|
|
123
130
|
private abortError;
|
|
131
|
+
private retryDelay;
|
|
124
132
|
checkInfiniteScroll(lastVisibleIndex: number): void;
|
|
133
|
+
private prefetchVisibleBlocks;
|
|
125
134
|
onServerParamsChanged(): Promise<void>;
|
|
126
135
|
onDatasourceChanged(): Promise<void>;
|
|
127
136
|
destroy(): void;
|
|
@@ -137,8 +146,10 @@ declare class RowModel<TData = any> {
|
|
|
137
146
|
loadTreeChildren(id: string, force?: boolean): Promise<readonly TData[]>;
|
|
138
147
|
private replaceTreeChildren;
|
|
139
148
|
private validateTreeChildren;
|
|
140
|
-
applyTransaction(transaction: RowTransaction<TData>, refresh?: boolean):
|
|
141
|
-
applyTransactions(transactions: readonly RowTransaction<TData>[]):
|
|
149
|
+
applyTransaction(transaction: RowTransaction<TData>, refresh?: boolean): RowTransactionImpact;
|
|
150
|
+
applyTransactions(transactions: readonly RowTransaction<TData>[]): RowTransactionImpact;
|
|
151
|
+
private transactionNeedsPipeline;
|
|
152
|
+
private emitIncrementalModelUpdate;
|
|
142
153
|
private buildChildNodes;
|
|
143
154
|
private reindexAll;
|
|
144
155
|
setFilterModel(filterModel: FilterModel | null): boolean;
|
|
@@ -489,9 +500,8 @@ declare class PerformanceMonitor {
|
|
|
489
500
|
private samples;
|
|
490
501
|
private layoutSamples;
|
|
491
502
|
private modelSamples;
|
|
492
|
-
private
|
|
493
|
-
private
|
|
494
|
-
private longTaskObserver;
|
|
503
|
+
private longTaskBaseline;
|
|
504
|
+
private releaseLongTaskHub;
|
|
495
505
|
constructor();
|
|
496
506
|
start(): number;
|
|
497
507
|
recordRender(startedAt: number, rows: number, columns: number): void;
|
|
@@ -598,14 +608,21 @@ declare class HeaderRenderer {
|
|
|
598
608
|
private leafCells;
|
|
599
609
|
private groupCells;
|
|
600
610
|
private paneTrees;
|
|
611
|
+
private columnViewport;
|
|
612
|
+
private centerFirst;
|
|
613
|
+
private centerLastExcl;
|
|
601
614
|
constructor(core: HeaderContext);
|
|
602
615
|
build(): void;
|
|
616
|
+
updateColumnWindow(): void;
|
|
617
|
+
private updateColumnWindowState;
|
|
618
|
+
private filterTreeColumns;
|
|
603
619
|
private createLeafCell;
|
|
604
620
|
private createGroupCell;
|
|
605
621
|
applyLayout(): void;
|
|
606
622
|
private visiblePaneLeaves;
|
|
607
623
|
private onHeaderKeyDown;
|
|
608
624
|
private focusHeaderCell;
|
|
625
|
+
private scrollColumnIntoView;
|
|
609
626
|
private canResizeColumn;
|
|
610
627
|
refreshSortIndicators(): void;
|
|
611
628
|
refreshFilterIcons(): void;
|
|
@@ -620,7 +637,7 @@ interface NormalizedRange {
|
|
|
620
637
|
c2: number;
|
|
621
638
|
}
|
|
622
639
|
|
|
623
|
-
type BodyContext = Pick<GridCore<any>, "buildDefaultEmptyState" | "buildDefaultErrorState" | "columnModel" | "contextMenuService" | "editingService" | "emit" | "getApi" | "getCellValue" | "gridId" | "isDestroyed" | "options" | "performanceMonitor" | "pinnedRowsRenderer" | "reportError" | "resolveCellRenderer" | "rowModel" | "selectionService" | "setCellValue" | "skeleton" | "summaryRenderer" | "toggleDetail" | "tooltipService" | "undoService">;
|
|
640
|
+
type BodyContext = Pick<GridCore<any>, "buildDefaultEmptyState" | "buildDefaultErrorState" | "columnModel" | "contextMenuService" | "editingService" | "emit" | "getApi" | "getCellValue" | "gridId" | "headerRenderer" | "isDestroyed" | "options" | "performanceMonitor" | "pinnedRowsRenderer" | "reportError" | "resolveCellRenderer" | "rowModel" | "selectionService" | "setCellValue" | "skeleton" | "summaryRenderer" | "toggleDetail" | "tooltipService" | "undoService">;
|
|
624
641
|
interface FocusedCell {
|
|
625
642
|
rowIndex: number;
|
|
626
643
|
colId: string;
|
|
@@ -1289,6 +1306,10 @@ declare const GRID_OPTION_META: {
|
|
|
1289
1306
|
readonly kind: "number";
|
|
1290
1307
|
readonly update: "options";
|
|
1291
1308
|
};
|
|
1309
|
+
readonly datasourceMaxConcurrentRequests: {
|
|
1310
|
+
readonly kind: "number";
|
|
1311
|
+
readonly update: "options";
|
|
1312
|
+
};
|
|
1292
1313
|
readonly blockPrefetch: {
|
|
1293
1314
|
readonly kind: "number";
|
|
1294
1315
|
readonly update: "options";
|
|
@@ -1313,6 +1334,10 @@ declare const GRID_OPTION_META: {
|
|
|
1313
1334
|
readonly kind: "number";
|
|
1314
1335
|
readonly update: "options";
|
|
1315
1336
|
};
|
|
1337
|
+
readonly datasourceRetryJitter: {
|
|
1338
|
+
readonly kind: "number";
|
|
1339
|
+
readonly update: "options";
|
|
1340
|
+
};
|
|
1316
1341
|
readonly suppressCellFocus: {
|
|
1317
1342
|
readonly kind: "boolean";
|
|
1318
1343
|
readonly update: "options";
|