@agile-team/mach-table 0.32.1 → 0.34.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 +33 -2
- package/dist/adapter.cjs +1 -1
- package/dist/adapter.d.cts +28 -26
- package/dist/adapter.d.ts +28 -26
- package/dist/adapter.js +1 -1
- package/dist/analysis.cjs +2 -2
- package/dist/analysis.d.cts +2 -2
- package/dist/analysis.d.ts +2 -2
- package/dist/analysis.js +2 -2
- package/dist/{api-pOhyuSQk.d.cts → api-CfZinb9Q.d.cts} +39 -4
- package/dist/{api-pOhyuSQk.d.ts → api-CfZinb9Q.d.ts} +39 -4
- package/dist/business.cjs +1 -0
- package/dist/business.d.cts +61 -0
- package/dist/business.d.ts +61 -0
- package/dist/business.js +1 -0
- package/dist/cachedDictionary-HXvqrDI0.d.cts +30 -0
- package/dist/cachedDictionary-HXvqrDI0.d.ts +30 -0
- package/dist/{configuration-gAE1eZuB.d.cts → configuration-D2lEYcli.d.cts} +5 -2
- package/dist/{configuration-SYWVjGft.d.ts → configuration-WTbQcWck.d.ts} +5 -2
- package/dist/import.cjs +1 -0
- package/dist/import.d.cts +47 -0
- package/dist/import.d.ts +47 -0
- package/dist/import.js +1 -0
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +10 -27
- package/dist/index.d.ts +10 -27
- package/dist/index.js +6 -6
- package/dist/multi-range.cjs +2 -2
- package/dist/multi-range.d.cts +1 -1
- package/dist/multi-range.d.ts +1 -1
- package/dist/multi-range.js +3 -3
- package/dist/ordering.cjs +1 -1
- package/dist/ordering.d.cts +1 -1
- package/dist/ordering.d.ts +1 -1
- package/dist/ordering.js +1 -1
- package/dist/preferences.cjs +1 -1
- package/dist/preferences.d.cts +1 -1
- package/dist/preferences.d.ts +1 -1
- package/dist/preferences.js +1 -1
- package/dist/server-side.cjs +1 -1
- package/dist/server-side.d.cts +1 -1
- package/dist/server-side.d.ts +1 -1
- package/dist/server-side.js +1 -1
- package/dist/{shared-Bi8hAuzn.d.cts → shared-D-DnodkE.d.cts} +1 -1
- package/dist/{shared-Bn77TiBm.d.ts → shared-buw2Rj4E.d.ts} +1 -1
- package/dist/workbench.cjs +1 -1
- package/dist/workbench.d.cts +3 -3
- package/dist/workbench.d.ts +3 -3
- package/dist/workbench.js +1 -1
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +4 -2
- package/dist/worker.d.ts +4 -2
- package/dist/worker.js +1 -1
- package/package.json +22 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { c as GridOptions, b as GridApi, S as SortModel, h as FilterModel, A as AdvancedFilterModel,
|
|
2
|
-
export {
|
|
1
|
+
import { c as GridOptions, b as GridApi, S as SortModel, h as FilterModel, A as AdvancedFilterModel, l as ColumnFilter, m as AdvancedFilterCondition, n as AdvancedFilterNode, o as AdvancedFilterGroup, G as GridFeature, C as ColDef, p as ColDefGroup, g as GridStateStore, f as GridState, q as GridStateInput, r as GridSize, s as CellRendererParams, t as GridChange, u as CellRendererFn, i as FieldPath, v as FieldPathValue, d as GridDataProcessor, w as SaveChangeConflict, x as ColumnState } from './api-CfZinb9Q.cjs';
|
|
2
|
+
export { y as ActionPolicy, z as ActionPolicyContext, B as ApplyGridStateOptions, D as CellAlign, E as CellClassParams, H as CellClassRule, J as CellClickEvent, K as CellContextMenuEvent, L as CellDoubleClickEvent, M as CellEditingStartedEvent, N as CellEditingStoppedEvent, O as CellEditorFactory, P as CellEditorParams, Q as CellRendererOutput, R as CellStyleRule, T as CellValueChangedEvent, U as ColDefOrGroup, W as ColumnLayoutMode, X as ColumnMovedEvent, Y as ColumnResizedEvent, Z as ColumnVisibilityChangedEvent, _ as ColumnWorkbenchItem, $ as ContextMenuItem, a0 as ContextMenuParams, a1 as CsvExportParams, a2 as DEFAULT_LOCALE, a3 as DatasourceMode, a4 as DateFilterCondition, a5 as DateFilterMatch, a6 as DetailRowRendererParams, a7 as DetailToggledEvent, a8 as DirtyStateChangedEvent, a9 as DomLayoutMode, aa as EVENT_TYPES, ab as EditableIndicator, ac as EditableParams, ad as EventHandlers, ae as FilterChangedEvent, F as FilterType, af as GetRowHeightParams, ag as GridAsyncOptions, ah as GridBatchSaveResult, ai as GridCellChange, a as GridCellRange, aj as GridColumnsApi, e as GridComponents, ak as GridDataProcessorColumn, al as GridDataProcessorRequest, am as GridDataProcessorResult, an as GridDataProcessorRow, ao as GridDatasource, ap as GridDiagnosticError, aq as GridDiagnostics, ar as GridDiagnosticsApi, as as GridEditType, at as GridEditingApi, au as GridErrorCode, av as GridErrorEvent, aw as GridEventBase, ax as GridEventMap, j as GridEventType, ay as GridFeatureContext, az as GridFilteringApi, aA as GridHierarchyApi, aB as GridIoApi, aC as GridPaginationApi, aD as GridPerformanceSnapshot, aE as GridPersistenceOptions, aF as GridReadyEvent, aG as GridRowsApi, aH as GridSelectionApi, aI as GridSortingApi, aJ as GridStateApi, aK as GridStateSection, aL as GridUpdateSchedulerSnapshot, aM as GridViewApi, aN as HeaderComponentParams, aO as ICellEditor, aP as ICellRendererResult, aQ as ImportCsvOptions, I as ImportMatrixOptions, aR as InfiniteGetRowsParams, aS as LOCALE_EN, aT as MachTableLocale, aU as MachTableLocaleKey, aV as MatrixExportParams, aW as ModelUpdatedEvent, aX as NumberFilterCondition, aY as NumberFilterMatch, aZ as OverlayContent, a_ as OverlayTemplate, a$ as PaginationChangedEvent, b0 as PaginationConfig, b1 as PinnedDirection, b2 as PrintOptions, b3 as RangeSelectionChangedEvent, b4 as RefreshCellsParams, b5 as RemoteBlockCacheSnapshot, b6 as ResolvedGridOptions, b7 as RowClickEvent, b8 as RowDragEndEvent, b9 as RowDragIntent, ba as RowDragPolicy, bb as RowEditChange, bc as RowEditValidationParams, bd as RowEditValidationResult, be as RowEditingStartedEvent, bf as RowEditingStoppedEvent, bg as RowNode, bh as RowSelectionMode, bi as RowStyleParams, bj as RowStyleRule, bk as RowTone, bl as RowTransaction, bm as SaveChangeIssue, k as SaveChangesHandler, bn as SaveChangesResult, bo as SelectEditorOption, bp as SelectEditorParams, bq as SelectionChangedEvent, br as SetFilterCondition, bs as SetFilterParams, bt as SortChangedEvent, bu as SortDirection, bv as SortModelItem, bw as StatusBarConfig, bx as StatusBarPanel, by as TextFilterCondition, bz as TextFilterMatch, bA as ThemeMode, bB as TooltipParams, bC as TreeChildrenLoadFailedEvent, bD as TreeChildrenLoadedEvent, bE as TreeDataLoadParams, bF as ValueFormatterParams, bG as ValueGetterParams, bH as ValueInputSource, V as ValueOutputTarget, bI as ValueParserParams, bJ as ValueSerializerParams, bK as ValueSetterParams, bL as WatermarkConfig, bM as formatText, bN as formatTwo, bO as isColDefGroup, bP as matchLocaleKey } from './api-CfZinb9Q.cjs';
|
|
3
3
|
export { FieldDataProcessorOptions, GridDataProcessorPayload, GridDataWorkerScope, GridWorkerCancelMessage, GridWorkerProcessMessage, GridWorkerRequestMessage, GridWorkerResponseMessage, WorkerDataProcessorOptions } from './worker.cjs';
|
|
4
|
-
export { b as MachTableConfigWarning, c as MachTableDefaults, d as MachTableInstanceOptionKey, M as MachTableOptionExplanation, e as MachTablePreset, f as MachTablePresetSelection, g as MachTableRuntimeConfig, R as ResolvedMachTableConfig, h as defineMachTableConfig } from './configuration-
|
|
4
|
+
export { b as MachTableConfigWarning, c as MachTableDefaults, d as MachTableInstanceOptionKey, M as MachTableOptionExplanation, e as MachTablePreset, f as MachTablePresetSelection, g as MachTableRuntimeConfig, R as ResolvedMachTableConfig, h as defineMachTableConfig } from './configuration-D2lEYcli.cjs';
|
|
5
|
+
import { D as DictionaryKey, C as CachedDictionary } from './cachedDictionary-HXvqrDI0.cjs';
|
|
6
|
+
export { b as CachedDictionaryOptions, a as DictionaryEntry, c as createCachedDictionary } from './cachedDictionary-HXvqrDI0.cjs';
|
|
5
7
|
|
|
6
8
|
declare function createGrid<TData = any>(container: HTMLElement, options?: GridOptions<TData>): GridApi<TData>;
|
|
7
9
|
|
|
@@ -275,6 +277,10 @@ declare function createMachTablePreset<TData>(...sources: readonly Partial<GridO
|
|
|
275
277
|
/** Recommended defaults for editable enterprise back-office screens. */
|
|
276
278
|
declare function createEnterprisePreset<TData>(overrides?: Partial<GridOptions<TData>>): GridOptions<TData>;
|
|
277
279
|
/** Compile-time helper for a reusable partial preset. */
|
|
280
|
+
type FactoryPreset<TData> = Omit<Partial<GridOptions<TData>>, "dataProcessor"> & {
|
|
281
|
+
dataProcessor?: () => GridDataProcessor<TData>;
|
|
282
|
+
};
|
|
283
|
+
declare function defineMachTablePreset<TData>(preset: FactoryPreset<TData>): FactoryPreset<TData>;
|
|
278
284
|
declare function defineMachTablePreset<TData>(preset: Partial<GridOptions<TData>>): Partial<GridOptions<TData>>;
|
|
279
285
|
/** Compile-time helper for reusable, typed grid option objects. */
|
|
280
286
|
declare function defineGridOptions<TData>(options: GridOptions<TData>): GridOptions<TData>;
|
|
@@ -296,29 +302,6 @@ interface BusinessColumnTypeOptions {
|
|
|
296
302
|
* `mach-table.config.ts`, then pages only declare `type: "money"` etc.
|
|
297
303
|
*/
|
|
298
304
|
declare function createBusinessColumnTypes<TData = any>(options?: BusinessColumnTypeOptions): Readonly<Record<BusinessColumnType, Partial<ColDef<TData>>>>;
|
|
299
|
-
type DictionaryKey = string | number;
|
|
300
|
-
interface DictionaryEntry<TKey extends DictionaryKey = DictionaryKey> {
|
|
301
|
-
value: TKey;
|
|
302
|
-
label: string;
|
|
303
|
-
}
|
|
304
|
-
interface CachedDictionaryOptions<TKey extends DictionaryKey = DictionaryKey> {
|
|
305
|
-
load(keys: readonly TKey[], signal: AbortSignal): Promise<readonly DictionaryEntry<TKey>[]>;
|
|
306
|
-
ttlMs?: number;
|
|
307
|
-
maxSize?: number;
|
|
308
|
-
batchDelayMs?: number;
|
|
309
|
-
onError?(error: unknown, keys: readonly TKey[]): void;
|
|
310
|
-
}
|
|
311
|
-
interface CachedDictionary<TKey extends DictionaryKey = DictionaryKey> {
|
|
312
|
-
get(key: TKey): string | undefined;
|
|
313
|
-
resolve(key: TKey): Promise<string | undefined>;
|
|
314
|
-
resolveMany(keys: readonly TKey[]): Promise<ReadonlyMap<TKey, string>>;
|
|
315
|
-
prime(entries: readonly DictionaryEntry<TKey>[]): void;
|
|
316
|
-
invalidate(keys?: readonly TKey[]): void;
|
|
317
|
-
destroy(): void;
|
|
318
|
-
readonly size: number;
|
|
319
|
-
}
|
|
320
|
-
/** Batched, de-duplicated TTL/LRU dictionary resolver for code-to-label fields. */
|
|
321
|
-
declare function createCachedDictionary<TKey extends DictionaryKey = DictionaryKey>(options: CachedDictionaryOptions<TKey>): CachedDictionary<TKey>;
|
|
322
305
|
interface DictionaryRendererOptions {
|
|
323
306
|
loadingText?: string;
|
|
324
307
|
emptyText?: string;
|
|
@@ -385,4 +368,4 @@ declare function createGridViewManager<TData>(api: GridApi<TData>, options: {
|
|
|
385
368
|
|
|
386
369
|
declare const version: string;
|
|
387
370
|
|
|
388
|
-
export { type ActionButtonsConfig, type ActionItem, type ActionOverflowMode, type ActionVariant, AdvancedFilterCondition, AdvancedFilterGroup, AdvancedFilterModel, AdvancedFilterNode, type AggFunction, type AggValues, BUILTIN_AGG_FUNCS, type BuiltInActionIcon, type BusinessColumnType, type BusinessColumnTypeOptions,
|
|
371
|
+
export { type ActionButtonsConfig, type ActionItem, type ActionOverflowMode, type ActionVariant, AdvancedFilterCondition, AdvancedFilterGroup, AdvancedFilterModel, AdvancedFilterNode, type AggFunction, type AggValues, BUILTIN_AGG_FUNCS, type BuiltInActionIcon, type BusinessColumnType, type BusinessColumnTypeOptions, CachedDictionary, CellRendererFn, CellRendererParams, ColDef, ColDefGroup, ColumnFilter, type ColumnHelper, ColumnState, DictionaryKey, type DictionaryRendererOptions, FieldPath, FieldPathValue, FilterModel, GridApi, GridChange, GridDataProcessor, GridFeature, type GridFeatureIssue, type GridFeatureIssueCode, GridOptions, type GridSchema, type GridSchemaField, type GridSchemaFieldType, type GridSchemaGroup, GridSize, GridState, GridStateInput, type GridStateStorage, GridStateStore, type GridValidationCode, type GridValidationIssue, type GridViewManager, type GridViewState, type GridViewStore, type LocalGridStateStoreOptions, type LocalGridViewStoreOptions, type MachTableCommandOptions, type MachTableCommands, type ManagedGridStateStore, type ProgressConfig, type RemoteExportRequest, type RemoteExportRequestOptions, type RemoteExportScope, type RemoteExportSelection, type ResolvedGridFeatures, type RowActionsConfig, SaveChangeConflict, type SavedGridView, type SchemaSelectOption, SortModel, type StatusTagConfig, type StoredGridState, type TagVariant, actionsColumn, advancedFilterCondition, advancedFilterGroup, applyGridViewState, buildColDefsFromSchema, captureGridViewState, clearGridState, createActionButtonsRenderer, createAggResolver, createBusinessColumnTypes, createColumnHelper, createDictionaryRenderer, createEnterprisePreset, createGrid, createGridViewManager, createLocalGridStateStore, createLocalGridViewStore, createMachTableCommands, createMachTablePreset, createProgressBarRenderer, createRemoteExportRequest, createRowActionsRenderer, createStatusTagRenderer, defineColumns, defineGridOptions, defineMachTablePreset, describeFilter, downloadFile, dragColumn, escapeHtml, getByPath, indexColumn, isSafePath, linkRenderer, loadGridState, normalizeAdvancedFilterModel, normalizeColumnFilter, normalizeFilterModel, normalizeGridState, normalizeGridViewState, normalizeSavedGridView, parseCsv, parseDelimited, parseTsv, resolveGridFeatures, resolveSaveConflict, resolveTagVariant, rowActionsColumn, sanitizeFormulaCell, saveGridState, selectionColumn, setByPath, toTsv, validateGridOptions, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { c as GridOptions, b as GridApi, S as SortModel, h as FilterModel, A as AdvancedFilterModel,
|
|
2
|
-
export {
|
|
1
|
+
import { c as GridOptions, b as GridApi, S as SortModel, h as FilterModel, A as AdvancedFilterModel, l as ColumnFilter, m as AdvancedFilterCondition, n as AdvancedFilterNode, o as AdvancedFilterGroup, G as GridFeature, C as ColDef, p as ColDefGroup, g as GridStateStore, f as GridState, q as GridStateInput, r as GridSize, s as CellRendererParams, t as GridChange, u as CellRendererFn, i as FieldPath, v as FieldPathValue, d as GridDataProcessor, w as SaveChangeConflict, x as ColumnState } from './api-CfZinb9Q.js';
|
|
2
|
+
export { y as ActionPolicy, z as ActionPolicyContext, B as ApplyGridStateOptions, D as CellAlign, E as CellClassParams, H as CellClassRule, J as CellClickEvent, K as CellContextMenuEvent, L as CellDoubleClickEvent, M as CellEditingStartedEvent, N as CellEditingStoppedEvent, O as CellEditorFactory, P as CellEditorParams, Q as CellRendererOutput, R as CellStyleRule, T as CellValueChangedEvent, U as ColDefOrGroup, W as ColumnLayoutMode, X as ColumnMovedEvent, Y as ColumnResizedEvent, Z as ColumnVisibilityChangedEvent, _ as ColumnWorkbenchItem, $ as ContextMenuItem, a0 as ContextMenuParams, a1 as CsvExportParams, a2 as DEFAULT_LOCALE, a3 as DatasourceMode, a4 as DateFilterCondition, a5 as DateFilterMatch, a6 as DetailRowRendererParams, a7 as DetailToggledEvent, a8 as DirtyStateChangedEvent, a9 as DomLayoutMode, aa as EVENT_TYPES, ab as EditableIndicator, ac as EditableParams, ad as EventHandlers, ae as FilterChangedEvent, F as FilterType, af as GetRowHeightParams, ag as GridAsyncOptions, ah as GridBatchSaveResult, ai as GridCellChange, a as GridCellRange, aj as GridColumnsApi, e as GridComponents, ak as GridDataProcessorColumn, al as GridDataProcessorRequest, am as GridDataProcessorResult, an as GridDataProcessorRow, ao as GridDatasource, ap as GridDiagnosticError, aq as GridDiagnostics, ar as GridDiagnosticsApi, as as GridEditType, at as GridEditingApi, au as GridErrorCode, av as GridErrorEvent, aw as GridEventBase, ax as GridEventMap, j as GridEventType, ay as GridFeatureContext, az as GridFilteringApi, aA as GridHierarchyApi, aB as GridIoApi, aC as GridPaginationApi, aD as GridPerformanceSnapshot, aE as GridPersistenceOptions, aF as GridReadyEvent, aG as GridRowsApi, aH as GridSelectionApi, aI as GridSortingApi, aJ as GridStateApi, aK as GridStateSection, aL as GridUpdateSchedulerSnapshot, aM as GridViewApi, aN as HeaderComponentParams, aO as ICellEditor, aP as ICellRendererResult, aQ as ImportCsvOptions, I as ImportMatrixOptions, aR as InfiniteGetRowsParams, aS as LOCALE_EN, aT as MachTableLocale, aU as MachTableLocaleKey, aV as MatrixExportParams, aW as ModelUpdatedEvent, aX as NumberFilterCondition, aY as NumberFilterMatch, aZ as OverlayContent, a_ as OverlayTemplate, a$ as PaginationChangedEvent, b0 as PaginationConfig, b1 as PinnedDirection, b2 as PrintOptions, b3 as RangeSelectionChangedEvent, b4 as RefreshCellsParams, b5 as RemoteBlockCacheSnapshot, b6 as ResolvedGridOptions, b7 as RowClickEvent, b8 as RowDragEndEvent, b9 as RowDragIntent, ba as RowDragPolicy, bb as RowEditChange, bc as RowEditValidationParams, bd as RowEditValidationResult, be as RowEditingStartedEvent, bf as RowEditingStoppedEvent, bg as RowNode, bh as RowSelectionMode, bi as RowStyleParams, bj as RowStyleRule, bk as RowTone, bl as RowTransaction, bm as SaveChangeIssue, k as SaveChangesHandler, bn as SaveChangesResult, bo as SelectEditorOption, bp as SelectEditorParams, bq as SelectionChangedEvent, br as SetFilterCondition, bs as SetFilterParams, bt as SortChangedEvent, bu as SortDirection, bv as SortModelItem, bw as StatusBarConfig, bx as StatusBarPanel, by as TextFilterCondition, bz as TextFilterMatch, bA as ThemeMode, bB as TooltipParams, bC as TreeChildrenLoadFailedEvent, bD as TreeChildrenLoadedEvent, bE as TreeDataLoadParams, bF as ValueFormatterParams, bG as ValueGetterParams, bH as ValueInputSource, V as ValueOutputTarget, bI as ValueParserParams, bJ as ValueSerializerParams, bK as ValueSetterParams, bL as WatermarkConfig, bM as formatText, bN as formatTwo, bO as isColDefGroup, bP as matchLocaleKey } from './api-CfZinb9Q.js';
|
|
3
3
|
export { FieldDataProcessorOptions, GridDataProcessorPayload, GridDataWorkerScope, GridWorkerCancelMessage, GridWorkerProcessMessage, GridWorkerRequestMessage, GridWorkerResponseMessage, WorkerDataProcessorOptions } from './worker.js';
|
|
4
|
-
export { b as MachTableConfigWarning, c as MachTableDefaults, d as MachTableInstanceOptionKey, M as MachTableOptionExplanation, e as MachTablePreset, f as MachTablePresetSelection, g as MachTableRuntimeConfig, R as ResolvedMachTableConfig, h as defineMachTableConfig } from './configuration-
|
|
4
|
+
export { b as MachTableConfigWarning, c as MachTableDefaults, d as MachTableInstanceOptionKey, M as MachTableOptionExplanation, e as MachTablePreset, f as MachTablePresetSelection, g as MachTableRuntimeConfig, R as ResolvedMachTableConfig, h as defineMachTableConfig } from './configuration-WTbQcWck.js';
|
|
5
|
+
import { D as DictionaryKey, C as CachedDictionary } from './cachedDictionary-HXvqrDI0.js';
|
|
6
|
+
export { b as CachedDictionaryOptions, a as DictionaryEntry, c as createCachedDictionary } from './cachedDictionary-HXvqrDI0.js';
|
|
5
7
|
|
|
6
8
|
declare function createGrid<TData = any>(container: HTMLElement, options?: GridOptions<TData>): GridApi<TData>;
|
|
7
9
|
|
|
@@ -275,6 +277,10 @@ declare function createMachTablePreset<TData>(...sources: readonly Partial<GridO
|
|
|
275
277
|
/** Recommended defaults for editable enterprise back-office screens. */
|
|
276
278
|
declare function createEnterprisePreset<TData>(overrides?: Partial<GridOptions<TData>>): GridOptions<TData>;
|
|
277
279
|
/** Compile-time helper for a reusable partial preset. */
|
|
280
|
+
type FactoryPreset<TData> = Omit<Partial<GridOptions<TData>>, "dataProcessor"> & {
|
|
281
|
+
dataProcessor?: () => GridDataProcessor<TData>;
|
|
282
|
+
};
|
|
283
|
+
declare function defineMachTablePreset<TData>(preset: FactoryPreset<TData>): FactoryPreset<TData>;
|
|
278
284
|
declare function defineMachTablePreset<TData>(preset: Partial<GridOptions<TData>>): Partial<GridOptions<TData>>;
|
|
279
285
|
/** Compile-time helper for reusable, typed grid option objects. */
|
|
280
286
|
declare function defineGridOptions<TData>(options: GridOptions<TData>): GridOptions<TData>;
|
|
@@ -296,29 +302,6 @@ interface BusinessColumnTypeOptions {
|
|
|
296
302
|
* `mach-table.config.ts`, then pages only declare `type: "money"` etc.
|
|
297
303
|
*/
|
|
298
304
|
declare function createBusinessColumnTypes<TData = any>(options?: BusinessColumnTypeOptions): Readonly<Record<BusinessColumnType, Partial<ColDef<TData>>>>;
|
|
299
|
-
type DictionaryKey = string | number;
|
|
300
|
-
interface DictionaryEntry<TKey extends DictionaryKey = DictionaryKey> {
|
|
301
|
-
value: TKey;
|
|
302
|
-
label: string;
|
|
303
|
-
}
|
|
304
|
-
interface CachedDictionaryOptions<TKey extends DictionaryKey = DictionaryKey> {
|
|
305
|
-
load(keys: readonly TKey[], signal: AbortSignal): Promise<readonly DictionaryEntry<TKey>[]>;
|
|
306
|
-
ttlMs?: number;
|
|
307
|
-
maxSize?: number;
|
|
308
|
-
batchDelayMs?: number;
|
|
309
|
-
onError?(error: unknown, keys: readonly TKey[]): void;
|
|
310
|
-
}
|
|
311
|
-
interface CachedDictionary<TKey extends DictionaryKey = DictionaryKey> {
|
|
312
|
-
get(key: TKey): string | undefined;
|
|
313
|
-
resolve(key: TKey): Promise<string | undefined>;
|
|
314
|
-
resolveMany(keys: readonly TKey[]): Promise<ReadonlyMap<TKey, string>>;
|
|
315
|
-
prime(entries: readonly DictionaryEntry<TKey>[]): void;
|
|
316
|
-
invalidate(keys?: readonly TKey[]): void;
|
|
317
|
-
destroy(): void;
|
|
318
|
-
readonly size: number;
|
|
319
|
-
}
|
|
320
|
-
/** Batched, de-duplicated TTL/LRU dictionary resolver for code-to-label fields. */
|
|
321
|
-
declare function createCachedDictionary<TKey extends DictionaryKey = DictionaryKey>(options: CachedDictionaryOptions<TKey>): CachedDictionary<TKey>;
|
|
322
305
|
interface DictionaryRendererOptions {
|
|
323
306
|
loadingText?: string;
|
|
324
307
|
emptyText?: string;
|
|
@@ -385,4 +368,4 @@ declare function createGridViewManager<TData>(api: GridApi<TData>, options: {
|
|
|
385
368
|
|
|
386
369
|
declare const version: string;
|
|
387
370
|
|
|
388
|
-
export { type ActionButtonsConfig, type ActionItem, type ActionOverflowMode, type ActionVariant, AdvancedFilterCondition, AdvancedFilterGroup, AdvancedFilterModel, AdvancedFilterNode, type AggFunction, type AggValues, BUILTIN_AGG_FUNCS, type BuiltInActionIcon, type BusinessColumnType, type BusinessColumnTypeOptions,
|
|
371
|
+
export { type ActionButtonsConfig, type ActionItem, type ActionOverflowMode, type ActionVariant, AdvancedFilterCondition, AdvancedFilterGroup, AdvancedFilterModel, AdvancedFilterNode, type AggFunction, type AggValues, BUILTIN_AGG_FUNCS, type BuiltInActionIcon, type BusinessColumnType, type BusinessColumnTypeOptions, CachedDictionary, CellRendererFn, CellRendererParams, ColDef, ColDefGroup, ColumnFilter, type ColumnHelper, ColumnState, DictionaryKey, type DictionaryRendererOptions, FieldPath, FieldPathValue, FilterModel, GridApi, GridChange, GridDataProcessor, GridFeature, type GridFeatureIssue, type GridFeatureIssueCode, GridOptions, type GridSchema, type GridSchemaField, type GridSchemaFieldType, type GridSchemaGroup, GridSize, GridState, GridStateInput, type GridStateStorage, GridStateStore, type GridValidationCode, type GridValidationIssue, type GridViewManager, type GridViewState, type GridViewStore, type LocalGridStateStoreOptions, type LocalGridViewStoreOptions, type MachTableCommandOptions, type MachTableCommands, type ManagedGridStateStore, type ProgressConfig, type RemoteExportRequest, type RemoteExportRequestOptions, type RemoteExportScope, type RemoteExportSelection, type ResolvedGridFeatures, type RowActionsConfig, SaveChangeConflict, type SavedGridView, type SchemaSelectOption, SortModel, type StatusTagConfig, type StoredGridState, type TagVariant, actionsColumn, advancedFilterCondition, advancedFilterGroup, applyGridViewState, buildColDefsFromSchema, captureGridViewState, clearGridState, createActionButtonsRenderer, createAggResolver, createBusinessColumnTypes, createColumnHelper, createDictionaryRenderer, createEnterprisePreset, createGrid, createGridViewManager, createLocalGridStateStore, createLocalGridViewStore, createMachTableCommands, createMachTablePreset, createProgressBarRenderer, createRemoteExportRequest, createRowActionsRenderer, createStatusTagRenderer, defineColumns, defineGridOptions, defineMachTablePreset, describeFilter, downloadFile, dragColumn, escapeHtml, getByPath, indexColumn, isSafePath, linkRenderer, loadGridState, normalizeAdvancedFilterModel, normalizeColumnFilter, normalizeFilterModel, normalizeGridState, normalizeGridViewState, normalizeSavedGridView, parseCsv, parseDelimited, parseTsv, resolveGridFeatures, resolveSaveConflict, resolveTagVariant, rowActionsColumn, sanitizeFormulaCell, saveGridState, selectionColumn, setByPath, toTsv, validateGridOptions, version };
|