@kanunilabs/pivotgrid-core 1.10.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -91,6 +91,7 @@ interface PivotDictionary {
91
91
  avg: string;
92
92
  min: string;
93
93
  max: string;
94
+ distinct: string;
94
95
  grandTotal: string;
95
96
  subTotal: string;
96
97
  absoluteValue: string;
@@ -146,20 +147,12 @@ interface PivotDictionary {
146
147
  opNotContains: string;
147
148
  opStartsWith: string;
148
149
  opEndsWith: string;
149
- opIsBlank: string;
150
- opIsNotBlank: string;
151
150
  /** Value filter `between` / `notBetween` (G-PIV-03); `opBetween` is the DataGrid's own string. */
152
151
  opBetween: string;
153
152
  opNotBetween: string;
154
153
  /** The field menu item and dialog title for value / label filters (G-PIV-03). */
155
154
  conditionFilter: string;
156
155
  /** Prefilter builder chrome (#210) — shared with DataGrid. */
157
- builderCombine: string;
158
- builderAddCondition: string;
159
- builderAddGroup: string;
160
- builderRemoveGroup: string;
161
- builderRemoveCondition: string;
162
- builderEmpty: string;
163
156
  builderValuePlaceholder: string;
164
157
  /** PDF export header (#215). */
165
158
  exportGeneratedOn: string;
@@ -1397,6 +1390,13 @@ declare function pivotRowHeight(density?: PivotDensity): number;
1397
1390
  * and unset add nothing, so a grid without `density` keeps its exact markup.
1398
1391
  */
1399
1392
  declare function pivotDensityClass(density?: PivotDensity): string;
1393
+ /**
1394
+ * The theme a grid paints with once `palette` and `dark` are folded in: both
1395
+ * name a stylesheet through the `data-theme` id the renderers already put on
1396
+ * the root and every popup. `palette` (a colour scheme) wins, as it decides its
1397
+ * own mode; `dark` alone picks the built-in `kanuni-dark` (2026-10-16).
1398
+ */
1399
+ declare function pivotSchemeTheme(theme: PivotTheme | undefined, palette?: string, dark?: boolean): PivotTheme | undefined;
1400
1400
  declare const ROW_HEADER_MIN_DATA_STRIP = 160;
1401
1401
  declare const ROW_HEADER_MAX_PINNED_FRACTION = 0.6;
1402
1402
  /** However tight it gets, a row-header column stays wide enough to read. */
@@ -1612,7 +1612,11 @@ declare function resolveConditionalVisual(value: number | undefined, field: Pivo
1612
1612
  type ExportFormat = 'excel-list' | 'excel-pivot' | 'pdf' | 'json' | 'json-pivot' | 'json-snapshot' | 'xml' | 'csv' | 'print' | 'clipboard';
1613
1613
  /** Options passed to the export pipeline — all fields optional for backward compat. */
1614
1614
  interface ExportOptions {
1615
- /** Apply prefilter to raw data before export. */
1615
+ /**
1616
+ * Export only the rows the filters keep (field filters and the prefilter).
1617
+ * Default `true`; `false` writes every source row. Before 2026-10-15 the
1618
+ * default was `false`.
1619
+ */
1616
1620
  applyFilters?: boolean;
1617
1621
  /** Custom file name (without extension). */
1618
1622
  fileName?: string;
@@ -1969,8 +1973,21 @@ interface PivotStateStoringConfig {
1969
1973
  enabled: boolean;
1970
1974
  type?: 'localStorage' | 'sessionStorage' | 'custom';
1971
1975
  storageKey?: string;
1976
+ /** `custom`: called (debounced) with the state to keep — the shape `getPersistedState` returns. */
1972
1977
  onSave?: (state: any) => void;
1978
+ /**
1979
+ * `custom`: the stored state, or a Promise of it (IndexedDB, a server). A
1980
+ * Promise is applied when it resolves; nothing is saved until then, so the
1981
+ * default layout the grid starts on never overwrites the stored one. To
1982
+ * open on the stored layout with no visible switch, read it before mounting
1983
+ * and return it synchronously.
1984
+ */
1973
1985
  onLoad?: () => any;
1986
+ /**
1987
+ * Session state to keep as well — none by default. `'scroll'`: where the
1988
+ * body was scrolled, put back once the restored pivot is drawn.
1989
+ */
1990
+ include?: readonly 'scroll'[];
1974
1991
  }
1975
1992
  interface PivotToolbarConfig {
1976
1993
  showSaveReport?: boolean;
@@ -2371,16 +2388,40 @@ type PivotStateListener = () => void;
2371
2388
  * documented on the features page as "persist to your own backend" was a hook
2372
2389
  * that nothing ever called.
2373
2390
  */
2374
- /** What actually goes in and out of storage. */
2391
+ /**
2392
+ * The version of `PersistedPivotState`. A saved state carrying another one is
2393
+ * not read — the grid opens with its default layout, no error. A state saved
2394
+ * before versions existed has none and is read as version 1.
2395
+ */
2396
+ declare const PIVOT_STATE_VERSION = 1;
2397
+ /**
2398
+ * What goes in and out of storage — and what `getPersistedState` returns and
2399
+ * `applyPersistedState` takes. Plain JSON: store it anywhere.
2400
+ */
2375
2401
  interface PersistedPivotState {
2402
+ version?: number;
2376
2403
  fields?: unknown[];
2377
2404
  layout?: Partial<PivotLayoutState>;
2378
2405
  columnWidths?: Record<string, number>;
2379
2406
  expandedPaths?: string[];
2380
2407
  expandedColPaths?: string[];
2408
+ /**
2409
+ * State kept by layers above the core, by name (`registerReportStatePart`):
2410
+ * the Enterprise chart panel keeps its chart under `chart`, and an app can
2411
+ * register its own chart or panel the same way.
2412
+ */
2413
+ parts?: Record<string, unknown>;
2414
+ /** SESSION state, only when asked for (`include: ['scroll']`): the body's scroll offsets. */
2415
+ scroll?: {
2416
+ top: number;
2417
+ left: number;
2418
+ };
2381
2419
  }
2420
+ /** Session parts a snapshot leaves out unless asked: `'scroll'`. */
2421
+ type PivotStateSession = 'scroll';
2382
2422
  interface PivotStatePersistence {
2383
- load(): PersistedPivotState | null;
2423
+ /** May be a Promise (IndexedDB, a server); the grid applies it when it resolves. */
2424
+ load(): PersistedPivotState | null | Promise<PersistedPivotState | null>;
2384
2425
  save(state: PersistedPivotState): void;
2385
2426
  }
2386
2427
  /** Immutable-snapshot state store with debounced persistence. */
@@ -2390,6 +2431,27 @@ declare class PivotStateStore<TRow> {
2390
2431
  private storageKey;
2391
2432
  private persistScheduled;
2392
2433
  private persistence;
2434
+ /**
2435
+ * The stored state, while an asynchronous `onLoad` is still reading it. No
2436
+ * save happens meanwhile: the grid starts on its default layout, and writing
2437
+ * that would overwrite the very state being loaded.
2438
+ */
2439
+ pendingLoad: Promise<PersistedPivotState | null> | null;
2440
+ private readonly initialFields;
2441
+ /**
2442
+ * What lives outside the store but is saved with it — the controller's
2443
+ * registered parts and the reported scroll. Set by the controller.
2444
+ */
2445
+ extras: {
2446
+ parts?: () => Record<string, unknown> | undefined;
2447
+ scroll?: () => {
2448
+ top: number;
2449
+ left: number;
2450
+ };
2451
+ include?: readonly PivotStateSession[];
2452
+ };
2453
+ /** Parts and scroll read at construction, for the controller to hand on. */
2454
+ loadedExtras: Pick<PersistedPivotState, 'parts' | 'scroll'> | null;
2393
2455
  constructor(gridId: string, initialFields: PivotField<TRow>[], persistence?: PivotStatePersistence);
2394
2456
  getSnapshot: () => PivotControllerState<TRow>;
2395
2457
  subscribe: (listener: PivotStateListener) => (() => void);
@@ -2402,6 +2464,14 @@ declare class PivotStateStore<TRow> {
2402
2464
  setImportStatus(importStatus: PivotImportStatus): void;
2403
2465
  setImportPreview(importPreview: PivotControllerState<TRow>['importPreview']): void;
2404
2466
  private createInitialSnapshot;
2467
+ /** A stored state as snapshot parts, or null when this build cannot read it. */
2468
+ private revive;
2469
+ /** Apply a stored state; its parts and scroll are returned for the controller. Null when it cannot be read. */
2470
+ applyPersisted(state: unknown): Pick<PersistedPivotState, 'parts' | 'scroll'> | null;
2471
+ /** The state as it is stored: JSON-safe, versioned. `include` adds session parts. */
2472
+ serialize(include?: readonly PivotStateSession[]): PersistedPivotState;
2473
+ /** Something saved with the state changed outside the store (a part, the scroll). */
2474
+ requestPersist(): void;
2405
2475
  private schedulePersist;
2406
2476
  /**
2407
2477
  * Write a pending save NOW. The controller calls it on dispose: the write
@@ -2432,6 +2502,11 @@ interface PivotControllerEvents<TRow> {
2432
2502
  chartOpened: PivotChartOpenedEvent;
2433
2503
  chartChanged: PivotChartChangedEvent;
2434
2504
  chartClosed: PivotChartClosedEvent;
2505
+ /** A restored state asks the renderer to scroll its body here (see `getPersistedState`). */
2506
+ scrollRequested: {
2507
+ top: number;
2508
+ left: number;
2509
+ };
2435
2510
  }
2436
2511
  interface PivotImportLabels {
2437
2512
  initializing: string;
@@ -2469,6 +2544,8 @@ declare class PivotController<TRow> {
2469
2544
  /** Full row set of a parsed import awaiting preview commit (kept out of observable state). */
2470
2545
  private pendingImportRows;
2471
2546
  private disposed;
2547
+ /** The body's scroll offsets, as the renderer last reported them. */
2548
+ private lastScroll;
2472
2549
  /** `applyTransactionAsync`: the batch waiting for its window, and who to tell. */
2473
2550
  private asyncQueue;
2474
2551
  private asyncCallbacks;
@@ -2481,6 +2558,36 @@ declare class PivotController<TRow> {
2481
2558
  */
2482
2559
  private externalData;
2483
2560
  constructor(options: PivotControllerOptions<TRow>);
2561
+ /**
2562
+ * Everything the reader arranged, as plain JSON — fields and their areas,
2563
+ * order, sorting, filters, summaries and calculated fields; totals, layout
2564
+ * options and the chart type; open members; column widths — with a
2565
+ * `version`. What `stateStoring` saves; keep it anywhere and hand it back to
2566
+ * `applyPersistedState`.
2567
+ */
2568
+ getPersistedState(options?: {
2569
+ include?: readonly 'scroll'[];
2570
+ }): PersistedPivotState;
2571
+ /**
2572
+ * Where the renderer's body is scrolled — both renderers report it, so a
2573
+ * snapshot with `include: ['scroll']` can carry it.
2574
+ */
2575
+ reportScroll(top: number, left: number): void;
2576
+ /**
2577
+ * A part registered with `registerReportStatePart` changed: save it with the
2578
+ * state (`stateStoring`). The Enterprise chart panel's changes do this by
2579
+ * themselves.
2580
+ */
2581
+ notifyStatePartChanged(): void;
2582
+ /** Hand a restored state's parts to their owners and ask for its scroll. */
2583
+ private takeExtras;
2584
+ /**
2585
+ * Put a `getPersistedState` snapshot back. Fields the app no longer has are
2586
+ * dropped (calculated fields the reader made stay); fields the app added
2587
+ * since join as it defines them. Returns false and changes nothing when the
2588
+ * snapshot cannot be read — another `version`, or not a state at all.
2589
+ */
2590
+ applyPersistedState(state: unknown): boolean;
2484
2591
  subscribe: (listener: PivotStateListener) => (() => void);
2485
2592
  getSnapshot: () => PivotControllerState<TRow>;
2486
2593
  getState(): PivotControllerState<TRow>;
@@ -2705,6 +2812,9 @@ declare class PivotController<TRow> {
2705
2812
  private collectNodePaths;
2706
2813
  }
2707
2814
 
2815
+ /** Wire `root`'s body scroller to `controller`. Returns the unbind function. */
2816
+ declare function bindPivotScrollMemory(root: HTMLElement, controller: PivotController<any>): () => void;
2817
+
2708
2818
  interface PivotEngineServiceConfig<TRow> {
2709
2819
  getOptions: () => PivotControllerOptions<TRow>;
2710
2820
  getState: () => PivotControllerState<TRow>;
@@ -3675,4 +3785,4 @@ declare function rollupInMemory<TRow>(rows: readonly TRow[], request: PivotServe
3675
3785
  /** Every value of a field in rows held in memory — the reference `loadFieldValues`. */
3676
3786
  declare function fieldValuesInMemory<TRow>(rows: readonly TRow[], field: PivotServerField): unknown[];
3677
3787
 
3678
- export { type AdvancedExportRequest, type AdvancedExporter, CHART_LEGEND_POSITIONS, CHART_PALETTE_NAMES, type CalculatedFieldTextKey, type CellClickEvent, type CellPreparedEvent, type CellType, type ChartCategoryKeyAction, type ChartFont, type ChartFormat, type ChartGridLines, type ChartImageRequest, type ChartKeyTextKey, type ChartLabelAngle, type ChartLegendPosition, type ChartMark, type ChartPaletteName, type ChartStacking, type ChartStyle, type ChartStyleDefaults, type ColHeaderCell, type ColumnSlot, type ColumnSlotOptions, type ConditionalVisual, type CsvParseProgress, CsvReader, type CustomSummaryOptions, DEFAULT_DATA_COLUMN_WIDTH, DEFAULT_ROW_HEADER_WIDTH, DataNormalizer, type DateFormatContext, DateFormatter, type DateGranularity, type DimensionFieldInfo, type DrillDownTextKey, type DropIntent, type ExportFormat, type ExportOptions, ExportStreamController, type ExportingEvent, FastTrie, type FieldDistinctEntry, type FieldMoveEvent, type FilterCondition, type FilterGroup, type FilterOperator, type FlatCellMatrix, FlatPivotEngine, type FlatRow, type FloatingFrame, type FrameRect, type FrameSize, type FunnelStage, type HeaderFilterOption, type HeaderFilterState, type HeaderFilterWrite, type HistogramBin, type IFileReader, type ImportFormat, ImportManager, type ImportManagerOptions, type ImportProgress, type ImportResult, type ImportSnapshot, ImportStreamController, type ImportWorkerKind, type ImportWorkerResult, MAX_C, type MarkTone, PIVOT_AI_FEATURES, type ParseFileOptions, type PivotAiApplyResult, type PivotAiCondition, type PivotAiFeature, type PivotAiFieldOptions, type PivotAiFilter, type PivotAiOptions, type PivotAiSort, type PivotAiState, type PivotAiTotals, type PivotAiValue, type PivotArea, type PivotCell, PivotCellAggregator, type PivotCellTemplate, type PivotCellTextAccessor, type PivotCellValueAccessor, type PivotChartChange, type PivotChartChangedEvent, type PivotChartClosedEvent, type PivotChartOpenedEvent, type PivotChartReportPart, type PivotChartState, type PivotChartWindowState, type PivotColumnWidthDefaults, type PivotConditionRule, PivotController, type PivotControllerCallbacks, type PivotControllerEvents, type PivotControllerOptions, type PivotControllerState, type PivotDataSource, type PivotDensity, type PivotDictionary, type PivotDragIntentState, PivotEngineRegistry, type PivotEngineResult, PivotEngineService, type PivotEngineServiceConfig, PivotEventEmitter, type PivotEventHandler, type PivotEventMap, PivotExportService, type PivotField, PivotFieldService, type PivotGridRef, type PivotGroupInterval, type PivotImportField, type PivotImportLabels, type PivotImportPreviewState, type PivotImportStatus, type PivotLabelFilter, type PivotLayoutProfile, type PivotLayoutState, type PivotLocale, type PivotNode, type PivotPlugin, type PivotPrefilter, type PivotReport, PivotReportManager, PivotReportService, type PivotReportState, type PivotRowKey, type PivotRowKeyResolver, type PivotRowSparkline, type PivotRowTransaction, type PivotSelectionMode, PivotSelectionModel, type PivotSelectionRange, type PivotSelectionState, type PivotSelectionStats, type PivotServerCell, type PivotServerField, type PivotServerInput, type PivotServerRequest, type PivotServerResponse, type PivotServerSource, type PivotServerSourceOptions, type PivotServerValue, type PivotStateListener, PivotStateStore, type PivotStateStoringConfig, type PivotSummaryDisplayMode, type PivotSummaryType, type PivotTheme, type PivotToolbarConfig, type PivotTransactionResult, type PivotValue, type PivotValueFilter, type PrefilterConditionSpec, type PrefilterGroupSpec, type ProcessFileStreamingOptions, type ProcessFromUrlOptions, ROW_HEADER_MAX_PINNED_FRACTION, ROW_HEADER_MIN_COL_WIDTH, ROW_HEADER_MIN_DATA_STRIP, type ReportStatePart, type RowHeaderLayout, SHAPE_CHART_TYPES, type ShapeChartInput, type ShapeChartType, type StackedSegment, type TreemapCell, type TrendShape, type ValidationResult, type ValueRange, type WaterfallStep, type WorkerComputeRequest, type WorkerFilterRequest, type WorkerFilterSpec, type WorkerInitRequest, type WorkerResponse, type WorkerTransactionRequest, type XYPair, type XYPairInput, XmlReader, applyPivotAiState, ar, attachFloatingFrame, buildCellLookup, buildColPathsList, buildColumnHeaders, buildEngineResult, buildPivotAOA, buildRowLabelCells, calculatedFieldText, cellHash, cellHashCol, cellHashRow, centredFrame, chartCategoryKey, chartKeyText, chartPalette, chartWindowFrame, classifyValue, clearFormatCache, coerceRecords, coerceValue, collatorFor, compileSafeFormula, computeFieldRanges, computePivotMatrixAsync, computeRowHeaderWidths, conditionRuleToExcelStyle, cssColorToRgb, de, dedupeHeaders, defaultPivotLayout, destroyEngineWorker, detectDelimiter, diffPivotChartState, drillDownText, en, es, escapeXmlText, executePostAggregationPhase, executeSummaryDisplayModesPhase, exportPivotData, extractGroupValue, fieldNeedsRange, fieldValuesInMemory, filterEmptySummaryTree, filterPivotEngineAsync, filterRecords, filterRecordsAsync, flattenExportRows, flattenRowTree, flattenRowTreeTabular, flattenRowTreeTree, formatCellValue, formatCellValueCached, formatDimensionValue, formatHeaderValue, fr, funnelMarks, funnelStages, getAdvancedExporter, getCellVal, getFieldDistinctValues, getPivotAiSchema, getPivotAiState, getVisibleColLeaves, getVisibleColSlots, getVisibleLeafCount, getVisibleMaxDepth, headerFilterShown, headerFilterWrite, heatColor, heatTextColor, heatmapMarks, histogramBins, histogramMarks, inferColumnType, initPivotEngineAsync, intlFormatToExcelNumFmt, invertRowHeaderWidth, it, ja, ko, logAxisTicks, nextChartWindowId, nextLiveText, pairSeriesForXY, parseBoolean, parseColor, parseCsvToRows, parseDelimited, parseFlexibleDate, parseLocaleNumber, percentAxisTicks, percentModeExcelNumFmt, percentModeText, pivotChangeAnnouncement, pivotDensityClass, pivotRowHeight, pivotRowTrend, pivotServerSource, pt, rangeBarMarks, rangeRatio, readChartFormat, readFrameRect, readPivotChartState, reconfigurePivotEngineAsync, registerAdvancedExporter, resolveChartPalette, resolveChartStyle, resolveColPath, resolveColumnWidthDefaults, resolveConditionalVisual, rollupInMemory, ru, safeKey, sanitizeRows, scaleColor, serverRequestFor, setActiveEngineGrid, sortPivotTree, squarify, stackSeries, stripBom, sunburstMarks, testSafeFormula, tr, treemapMarks, trendColumnPaths, trendShape, waterfallDomain, waterfallMarks, waterfallSteps, windowStartFor, zhCN };
3788
+ export { type AdvancedExportRequest, type AdvancedExporter, CHART_LEGEND_POSITIONS, CHART_PALETTE_NAMES, type CalculatedFieldTextKey, type CellClickEvent, type CellPreparedEvent, type CellType, type ChartCategoryKeyAction, type ChartFont, type ChartFormat, type ChartGridLines, type ChartImageRequest, type ChartKeyTextKey, type ChartLabelAngle, type ChartLegendPosition, type ChartMark, type ChartPaletteName, type ChartStacking, type ChartStyle, type ChartStyleDefaults, type ColHeaderCell, type ColumnSlot, type ColumnSlotOptions, type ConditionalVisual, type CsvParseProgress, CsvReader, type CustomSummaryOptions, DEFAULT_DATA_COLUMN_WIDTH, DEFAULT_ROW_HEADER_WIDTH, DataNormalizer, type DateFormatContext, DateFormatter, type DateGranularity, type DimensionFieldInfo, type DrillDownTextKey, type DropIntent, type ExportFormat, type ExportOptions, ExportStreamController, type ExportingEvent, FastTrie, type FieldDistinctEntry, type FieldMoveEvent, type FilterCondition, type FilterGroup, type FilterOperator, type FlatCellMatrix, FlatPivotEngine, type FlatRow, type FloatingFrame, type FrameRect, type FrameSize, type FunnelStage, type HeaderFilterOption, type HeaderFilterState, type HeaderFilterWrite, type HistogramBin, type IFileReader, type ImportFormat, ImportManager, type ImportManagerOptions, type ImportProgress, type ImportResult, type ImportSnapshot, ImportStreamController, type ImportWorkerKind, type ImportWorkerResult, MAX_C, type MarkTone, PIVOT_AI_FEATURES, PIVOT_STATE_VERSION, type ParseFileOptions, type PersistedPivotState, type PivotAiApplyResult, type PivotAiCondition, type PivotAiFeature, type PivotAiFieldOptions, type PivotAiFilter, type PivotAiOptions, type PivotAiSort, type PivotAiState, type PivotAiTotals, type PivotAiValue, type PivotArea, type PivotCell, PivotCellAggregator, type PivotCellTemplate, type PivotCellTextAccessor, type PivotCellValueAccessor, type PivotChartChange, type PivotChartChangedEvent, type PivotChartClosedEvent, type PivotChartOpenedEvent, type PivotChartReportPart, type PivotChartState, type PivotChartWindowState, type PivotColumnWidthDefaults, type PivotConditionRule, PivotController, type PivotControllerCallbacks, type PivotControllerEvents, type PivotControllerOptions, type PivotControllerState, type PivotDataSource, type PivotDensity, type PivotDictionary, type PivotDragIntentState, PivotEngineRegistry, type PivotEngineResult, PivotEngineService, type PivotEngineServiceConfig, PivotEventEmitter, type PivotEventHandler, type PivotEventMap, PivotExportService, type PivotField, PivotFieldService, type PivotGridRef, type PivotGroupInterval, type PivotImportField, type PivotImportLabels, type PivotImportPreviewState, type PivotImportStatus, type PivotLabelFilter, type PivotLayoutProfile, type PivotLayoutState, type PivotLocale, type PivotNode, type PivotPlugin, type PivotPrefilter, type PivotReport, PivotReportManager, PivotReportService, type PivotReportState, type PivotRowKey, type PivotRowKeyResolver, type PivotRowSparkline, type PivotRowTransaction, type PivotSelectionMode, PivotSelectionModel, type PivotSelectionRange, type PivotSelectionState, type PivotSelectionStats, type PivotServerCell, type PivotServerField, type PivotServerInput, type PivotServerRequest, type PivotServerResponse, type PivotServerSource, type PivotServerSourceOptions, type PivotServerValue, type PivotStateListener, type PivotStateSession, PivotStateStore, type PivotStateStoringConfig, type PivotSummaryDisplayMode, type PivotSummaryType, type PivotTheme, type PivotToolbarConfig, type PivotTransactionResult, type PivotValue, type PivotValueFilter, type PrefilterConditionSpec, type PrefilterGroupSpec, type ProcessFileStreamingOptions, type ProcessFromUrlOptions, ROW_HEADER_MAX_PINNED_FRACTION, ROW_HEADER_MIN_COL_WIDTH, ROW_HEADER_MIN_DATA_STRIP, type ReportStatePart, type RowHeaderLayout, SHAPE_CHART_TYPES, type ShapeChartInput, type ShapeChartType, type StackedSegment, type TreemapCell, type TrendShape, type ValidationResult, type ValueRange, type WaterfallStep, type WorkerComputeRequest, type WorkerFilterRequest, type WorkerFilterSpec, type WorkerInitRequest, type WorkerResponse, type WorkerTransactionRequest, type XYPair, type XYPairInput, XmlReader, applyPivotAiState, ar, attachFloatingFrame, bindPivotScrollMemory, buildCellLookup, buildColPathsList, buildColumnHeaders, buildEngineResult, buildPivotAOA, buildRowLabelCells, calculatedFieldText, cellHash, cellHashCol, cellHashRow, centredFrame, chartCategoryKey, chartKeyText, chartPalette, chartWindowFrame, classifyValue, clearFormatCache, coerceRecords, coerceValue, collatorFor, compileSafeFormula, computeFieldRanges, computePivotMatrixAsync, computeRowHeaderWidths, conditionRuleToExcelStyle, cssColorToRgb, de, dedupeHeaders, defaultPivotLayout, destroyEngineWorker, detectDelimiter, diffPivotChartState, drillDownText, en, es, escapeXmlText, executePostAggregationPhase, executeSummaryDisplayModesPhase, exportPivotData, extractGroupValue, fieldNeedsRange, fieldValuesInMemory, filterEmptySummaryTree, filterPivotEngineAsync, filterRecords, filterRecordsAsync, flattenExportRows, flattenRowTree, flattenRowTreeTabular, flattenRowTreeTree, formatCellValue, formatCellValueCached, formatDimensionValue, formatHeaderValue, fr, funnelMarks, funnelStages, getAdvancedExporter, getCellVal, getFieldDistinctValues, getPivotAiSchema, getPivotAiState, getVisibleColLeaves, getVisibleColSlots, getVisibleLeafCount, getVisibleMaxDepth, headerFilterShown, headerFilterWrite, heatColor, heatTextColor, heatmapMarks, histogramBins, histogramMarks, inferColumnType, initPivotEngineAsync, intlFormatToExcelNumFmt, invertRowHeaderWidth, it, ja, ko, logAxisTicks, nextChartWindowId, nextLiveText, pairSeriesForXY, parseBoolean, parseColor, parseCsvToRows, parseDelimited, parseFlexibleDate, parseLocaleNumber, percentAxisTicks, percentModeExcelNumFmt, percentModeText, pivotChangeAnnouncement, pivotDensityClass, pivotRowHeight, pivotRowTrend, pivotSchemeTheme, pivotServerSource, pt, rangeBarMarks, rangeRatio, readChartFormat, readFrameRect, readPivotChartState, reconfigurePivotEngineAsync, registerAdvancedExporter, resolveChartPalette, resolveChartStyle, resolveColPath, resolveColumnWidthDefaults, resolveConditionalVisual, rollupInMemory, ru, safeKey, sanitizeRows, scaleColor, serverRequestFor, setActiveEngineGrid, sortPivotTree, squarify, stackSeries, stripBom, sunburstMarks, testSafeFormula, tr, treemapMarks, trendColumnPaths, trendShape, waterfallDomain, waterfallMarks, waterfallSteps, windowStartFor, zhCN };
package/dist/index.d.ts CHANGED
@@ -91,6 +91,7 @@ interface PivotDictionary {
91
91
  avg: string;
92
92
  min: string;
93
93
  max: string;
94
+ distinct: string;
94
95
  grandTotal: string;
95
96
  subTotal: string;
96
97
  absoluteValue: string;
@@ -146,20 +147,12 @@ interface PivotDictionary {
146
147
  opNotContains: string;
147
148
  opStartsWith: string;
148
149
  opEndsWith: string;
149
- opIsBlank: string;
150
- opIsNotBlank: string;
151
150
  /** Value filter `between` / `notBetween` (G-PIV-03); `opBetween` is the DataGrid's own string. */
152
151
  opBetween: string;
153
152
  opNotBetween: string;
154
153
  /** The field menu item and dialog title for value / label filters (G-PIV-03). */
155
154
  conditionFilter: string;
156
155
  /** Prefilter builder chrome (#210) — shared with DataGrid. */
157
- builderCombine: string;
158
- builderAddCondition: string;
159
- builderAddGroup: string;
160
- builderRemoveGroup: string;
161
- builderRemoveCondition: string;
162
- builderEmpty: string;
163
156
  builderValuePlaceholder: string;
164
157
  /** PDF export header (#215). */
165
158
  exportGeneratedOn: string;
@@ -1397,6 +1390,13 @@ declare function pivotRowHeight(density?: PivotDensity): number;
1397
1390
  * and unset add nothing, so a grid without `density` keeps its exact markup.
1398
1391
  */
1399
1392
  declare function pivotDensityClass(density?: PivotDensity): string;
1393
+ /**
1394
+ * The theme a grid paints with once `palette` and `dark` are folded in: both
1395
+ * name a stylesheet through the `data-theme` id the renderers already put on
1396
+ * the root and every popup. `palette` (a colour scheme) wins, as it decides its
1397
+ * own mode; `dark` alone picks the built-in `kanuni-dark` (2026-10-16).
1398
+ */
1399
+ declare function pivotSchemeTheme(theme: PivotTheme | undefined, palette?: string, dark?: boolean): PivotTheme | undefined;
1400
1400
  declare const ROW_HEADER_MIN_DATA_STRIP = 160;
1401
1401
  declare const ROW_HEADER_MAX_PINNED_FRACTION = 0.6;
1402
1402
  /** However tight it gets, a row-header column stays wide enough to read. */
@@ -1612,7 +1612,11 @@ declare function resolveConditionalVisual(value: number | undefined, field: Pivo
1612
1612
  type ExportFormat = 'excel-list' | 'excel-pivot' | 'pdf' | 'json' | 'json-pivot' | 'json-snapshot' | 'xml' | 'csv' | 'print' | 'clipboard';
1613
1613
  /** Options passed to the export pipeline — all fields optional for backward compat. */
1614
1614
  interface ExportOptions {
1615
- /** Apply prefilter to raw data before export. */
1615
+ /**
1616
+ * Export only the rows the filters keep (field filters and the prefilter).
1617
+ * Default `true`; `false` writes every source row. Before 2026-10-15 the
1618
+ * default was `false`.
1619
+ */
1616
1620
  applyFilters?: boolean;
1617
1621
  /** Custom file name (without extension). */
1618
1622
  fileName?: string;
@@ -1969,8 +1973,21 @@ interface PivotStateStoringConfig {
1969
1973
  enabled: boolean;
1970
1974
  type?: 'localStorage' | 'sessionStorage' | 'custom';
1971
1975
  storageKey?: string;
1976
+ /** `custom`: called (debounced) with the state to keep — the shape `getPersistedState` returns. */
1972
1977
  onSave?: (state: any) => void;
1978
+ /**
1979
+ * `custom`: the stored state, or a Promise of it (IndexedDB, a server). A
1980
+ * Promise is applied when it resolves; nothing is saved until then, so the
1981
+ * default layout the grid starts on never overwrites the stored one. To
1982
+ * open on the stored layout with no visible switch, read it before mounting
1983
+ * and return it synchronously.
1984
+ */
1973
1985
  onLoad?: () => any;
1986
+ /**
1987
+ * Session state to keep as well — none by default. `'scroll'`: where the
1988
+ * body was scrolled, put back once the restored pivot is drawn.
1989
+ */
1990
+ include?: readonly 'scroll'[];
1974
1991
  }
1975
1992
  interface PivotToolbarConfig {
1976
1993
  showSaveReport?: boolean;
@@ -2371,16 +2388,40 @@ type PivotStateListener = () => void;
2371
2388
  * documented on the features page as "persist to your own backend" was a hook
2372
2389
  * that nothing ever called.
2373
2390
  */
2374
- /** What actually goes in and out of storage. */
2391
+ /**
2392
+ * The version of `PersistedPivotState`. A saved state carrying another one is
2393
+ * not read — the grid opens with its default layout, no error. A state saved
2394
+ * before versions existed has none and is read as version 1.
2395
+ */
2396
+ declare const PIVOT_STATE_VERSION = 1;
2397
+ /**
2398
+ * What goes in and out of storage — and what `getPersistedState` returns and
2399
+ * `applyPersistedState` takes. Plain JSON: store it anywhere.
2400
+ */
2375
2401
  interface PersistedPivotState {
2402
+ version?: number;
2376
2403
  fields?: unknown[];
2377
2404
  layout?: Partial<PivotLayoutState>;
2378
2405
  columnWidths?: Record<string, number>;
2379
2406
  expandedPaths?: string[];
2380
2407
  expandedColPaths?: string[];
2408
+ /**
2409
+ * State kept by layers above the core, by name (`registerReportStatePart`):
2410
+ * the Enterprise chart panel keeps its chart under `chart`, and an app can
2411
+ * register its own chart or panel the same way.
2412
+ */
2413
+ parts?: Record<string, unknown>;
2414
+ /** SESSION state, only when asked for (`include: ['scroll']`): the body's scroll offsets. */
2415
+ scroll?: {
2416
+ top: number;
2417
+ left: number;
2418
+ };
2381
2419
  }
2420
+ /** Session parts a snapshot leaves out unless asked: `'scroll'`. */
2421
+ type PivotStateSession = 'scroll';
2382
2422
  interface PivotStatePersistence {
2383
- load(): PersistedPivotState | null;
2423
+ /** May be a Promise (IndexedDB, a server); the grid applies it when it resolves. */
2424
+ load(): PersistedPivotState | null | Promise<PersistedPivotState | null>;
2384
2425
  save(state: PersistedPivotState): void;
2385
2426
  }
2386
2427
  /** Immutable-snapshot state store with debounced persistence. */
@@ -2390,6 +2431,27 @@ declare class PivotStateStore<TRow> {
2390
2431
  private storageKey;
2391
2432
  private persistScheduled;
2392
2433
  private persistence;
2434
+ /**
2435
+ * The stored state, while an asynchronous `onLoad` is still reading it. No
2436
+ * save happens meanwhile: the grid starts on its default layout, and writing
2437
+ * that would overwrite the very state being loaded.
2438
+ */
2439
+ pendingLoad: Promise<PersistedPivotState | null> | null;
2440
+ private readonly initialFields;
2441
+ /**
2442
+ * What lives outside the store but is saved with it — the controller's
2443
+ * registered parts and the reported scroll. Set by the controller.
2444
+ */
2445
+ extras: {
2446
+ parts?: () => Record<string, unknown> | undefined;
2447
+ scroll?: () => {
2448
+ top: number;
2449
+ left: number;
2450
+ };
2451
+ include?: readonly PivotStateSession[];
2452
+ };
2453
+ /** Parts and scroll read at construction, for the controller to hand on. */
2454
+ loadedExtras: Pick<PersistedPivotState, 'parts' | 'scroll'> | null;
2393
2455
  constructor(gridId: string, initialFields: PivotField<TRow>[], persistence?: PivotStatePersistence);
2394
2456
  getSnapshot: () => PivotControllerState<TRow>;
2395
2457
  subscribe: (listener: PivotStateListener) => (() => void);
@@ -2402,6 +2464,14 @@ declare class PivotStateStore<TRow> {
2402
2464
  setImportStatus(importStatus: PivotImportStatus): void;
2403
2465
  setImportPreview(importPreview: PivotControllerState<TRow>['importPreview']): void;
2404
2466
  private createInitialSnapshot;
2467
+ /** A stored state as snapshot parts, or null when this build cannot read it. */
2468
+ private revive;
2469
+ /** Apply a stored state; its parts and scroll are returned for the controller. Null when it cannot be read. */
2470
+ applyPersisted(state: unknown): Pick<PersistedPivotState, 'parts' | 'scroll'> | null;
2471
+ /** The state as it is stored: JSON-safe, versioned. `include` adds session parts. */
2472
+ serialize(include?: readonly PivotStateSession[]): PersistedPivotState;
2473
+ /** Something saved with the state changed outside the store (a part, the scroll). */
2474
+ requestPersist(): void;
2405
2475
  private schedulePersist;
2406
2476
  /**
2407
2477
  * Write a pending save NOW. The controller calls it on dispose: the write
@@ -2432,6 +2502,11 @@ interface PivotControllerEvents<TRow> {
2432
2502
  chartOpened: PivotChartOpenedEvent;
2433
2503
  chartChanged: PivotChartChangedEvent;
2434
2504
  chartClosed: PivotChartClosedEvent;
2505
+ /** A restored state asks the renderer to scroll its body here (see `getPersistedState`). */
2506
+ scrollRequested: {
2507
+ top: number;
2508
+ left: number;
2509
+ };
2435
2510
  }
2436
2511
  interface PivotImportLabels {
2437
2512
  initializing: string;
@@ -2469,6 +2544,8 @@ declare class PivotController<TRow> {
2469
2544
  /** Full row set of a parsed import awaiting preview commit (kept out of observable state). */
2470
2545
  private pendingImportRows;
2471
2546
  private disposed;
2547
+ /** The body's scroll offsets, as the renderer last reported them. */
2548
+ private lastScroll;
2472
2549
  /** `applyTransactionAsync`: the batch waiting for its window, and who to tell. */
2473
2550
  private asyncQueue;
2474
2551
  private asyncCallbacks;
@@ -2481,6 +2558,36 @@ declare class PivotController<TRow> {
2481
2558
  */
2482
2559
  private externalData;
2483
2560
  constructor(options: PivotControllerOptions<TRow>);
2561
+ /**
2562
+ * Everything the reader arranged, as plain JSON — fields and their areas,
2563
+ * order, sorting, filters, summaries and calculated fields; totals, layout
2564
+ * options and the chart type; open members; column widths — with a
2565
+ * `version`. What `stateStoring` saves; keep it anywhere and hand it back to
2566
+ * `applyPersistedState`.
2567
+ */
2568
+ getPersistedState(options?: {
2569
+ include?: readonly 'scroll'[];
2570
+ }): PersistedPivotState;
2571
+ /**
2572
+ * Where the renderer's body is scrolled — both renderers report it, so a
2573
+ * snapshot with `include: ['scroll']` can carry it.
2574
+ */
2575
+ reportScroll(top: number, left: number): void;
2576
+ /**
2577
+ * A part registered with `registerReportStatePart` changed: save it with the
2578
+ * state (`stateStoring`). The Enterprise chart panel's changes do this by
2579
+ * themselves.
2580
+ */
2581
+ notifyStatePartChanged(): void;
2582
+ /** Hand a restored state's parts to their owners and ask for its scroll. */
2583
+ private takeExtras;
2584
+ /**
2585
+ * Put a `getPersistedState` snapshot back. Fields the app no longer has are
2586
+ * dropped (calculated fields the reader made stay); fields the app added
2587
+ * since join as it defines them. Returns false and changes nothing when the
2588
+ * snapshot cannot be read — another `version`, or not a state at all.
2589
+ */
2590
+ applyPersistedState(state: unknown): boolean;
2484
2591
  subscribe: (listener: PivotStateListener) => (() => void);
2485
2592
  getSnapshot: () => PivotControllerState<TRow>;
2486
2593
  getState(): PivotControllerState<TRow>;
@@ -2705,6 +2812,9 @@ declare class PivotController<TRow> {
2705
2812
  private collectNodePaths;
2706
2813
  }
2707
2814
 
2815
+ /** Wire `root`'s body scroller to `controller`. Returns the unbind function. */
2816
+ declare function bindPivotScrollMemory(root: HTMLElement, controller: PivotController<any>): () => void;
2817
+
2708
2818
  interface PivotEngineServiceConfig<TRow> {
2709
2819
  getOptions: () => PivotControllerOptions<TRow>;
2710
2820
  getState: () => PivotControllerState<TRow>;
@@ -3675,4 +3785,4 @@ declare function rollupInMemory<TRow>(rows: readonly TRow[], request: PivotServe
3675
3785
  /** Every value of a field in rows held in memory — the reference `loadFieldValues`. */
3676
3786
  declare function fieldValuesInMemory<TRow>(rows: readonly TRow[], field: PivotServerField): unknown[];
3677
3787
 
3678
- export { type AdvancedExportRequest, type AdvancedExporter, CHART_LEGEND_POSITIONS, CHART_PALETTE_NAMES, type CalculatedFieldTextKey, type CellClickEvent, type CellPreparedEvent, type CellType, type ChartCategoryKeyAction, type ChartFont, type ChartFormat, type ChartGridLines, type ChartImageRequest, type ChartKeyTextKey, type ChartLabelAngle, type ChartLegendPosition, type ChartMark, type ChartPaletteName, type ChartStacking, type ChartStyle, type ChartStyleDefaults, type ColHeaderCell, type ColumnSlot, type ColumnSlotOptions, type ConditionalVisual, type CsvParseProgress, CsvReader, type CustomSummaryOptions, DEFAULT_DATA_COLUMN_WIDTH, DEFAULT_ROW_HEADER_WIDTH, DataNormalizer, type DateFormatContext, DateFormatter, type DateGranularity, type DimensionFieldInfo, type DrillDownTextKey, type DropIntent, type ExportFormat, type ExportOptions, ExportStreamController, type ExportingEvent, FastTrie, type FieldDistinctEntry, type FieldMoveEvent, type FilterCondition, type FilterGroup, type FilterOperator, type FlatCellMatrix, FlatPivotEngine, type FlatRow, type FloatingFrame, type FrameRect, type FrameSize, type FunnelStage, type HeaderFilterOption, type HeaderFilterState, type HeaderFilterWrite, type HistogramBin, type IFileReader, type ImportFormat, ImportManager, type ImportManagerOptions, type ImportProgress, type ImportResult, type ImportSnapshot, ImportStreamController, type ImportWorkerKind, type ImportWorkerResult, MAX_C, type MarkTone, PIVOT_AI_FEATURES, type ParseFileOptions, type PivotAiApplyResult, type PivotAiCondition, type PivotAiFeature, type PivotAiFieldOptions, type PivotAiFilter, type PivotAiOptions, type PivotAiSort, type PivotAiState, type PivotAiTotals, type PivotAiValue, type PivotArea, type PivotCell, PivotCellAggregator, type PivotCellTemplate, type PivotCellTextAccessor, type PivotCellValueAccessor, type PivotChartChange, type PivotChartChangedEvent, type PivotChartClosedEvent, type PivotChartOpenedEvent, type PivotChartReportPart, type PivotChartState, type PivotChartWindowState, type PivotColumnWidthDefaults, type PivotConditionRule, PivotController, type PivotControllerCallbacks, type PivotControllerEvents, type PivotControllerOptions, type PivotControllerState, type PivotDataSource, type PivotDensity, type PivotDictionary, type PivotDragIntentState, PivotEngineRegistry, type PivotEngineResult, PivotEngineService, type PivotEngineServiceConfig, PivotEventEmitter, type PivotEventHandler, type PivotEventMap, PivotExportService, type PivotField, PivotFieldService, type PivotGridRef, type PivotGroupInterval, type PivotImportField, type PivotImportLabels, type PivotImportPreviewState, type PivotImportStatus, type PivotLabelFilter, type PivotLayoutProfile, type PivotLayoutState, type PivotLocale, type PivotNode, type PivotPlugin, type PivotPrefilter, type PivotReport, PivotReportManager, PivotReportService, type PivotReportState, type PivotRowKey, type PivotRowKeyResolver, type PivotRowSparkline, type PivotRowTransaction, type PivotSelectionMode, PivotSelectionModel, type PivotSelectionRange, type PivotSelectionState, type PivotSelectionStats, type PivotServerCell, type PivotServerField, type PivotServerInput, type PivotServerRequest, type PivotServerResponse, type PivotServerSource, type PivotServerSourceOptions, type PivotServerValue, type PivotStateListener, PivotStateStore, type PivotStateStoringConfig, type PivotSummaryDisplayMode, type PivotSummaryType, type PivotTheme, type PivotToolbarConfig, type PivotTransactionResult, type PivotValue, type PivotValueFilter, type PrefilterConditionSpec, type PrefilterGroupSpec, type ProcessFileStreamingOptions, type ProcessFromUrlOptions, ROW_HEADER_MAX_PINNED_FRACTION, ROW_HEADER_MIN_COL_WIDTH, ROW_HEADER_MIN_DATA_STRIP, type ReportStatePart, type RowHeaderLayout, SHAPE_CHART_TYPES, type ShapeChartInput, type ShapeChartType, type StackedSegment, type TreemapCell, type TrendShape, type ValidationResult, type ValueRange, type WaterfallStep, type WorkerComputeRequest, type WorkerFilterRequest, type WorkerFilterSpec, type WorkerInitRequest, type WorkerResponse, type WorkerTransactionRequest, type XYPair, type XYPairInput, XmlReader, applyPivotAiState, ar, attachFloatingFrame, buildCellLookup, buildColPathsList, buildColumnHeaders, buildEngineResult, buildPivotAOA, buildRowLabelCells, calculatedFieldText, cellHash, cellHashCol, cellHashRow, centredFrame, chartCategoryKey, chartKeyText, chartPalette, chartWindowFrame, classifyValue, clearFormatCache, coerceRecords, coerceValue, collatorFor, compileSafeFormula, computeFieldRanges, computePivotMatrixAsync, computeRowHeaderWidths, conditionRuleToExcelStyle, cssColorToRgb, de, dedupeHeaders, defaultPivotLayout, destroyEngineWorker, detectDelimiter, diffPivotChartState, drillDownText, en, es, escapeXmlText, executePostAggregationPhase, executeSummaryDisplayModesPhase, exportPivotData, extractGroupValue, fieldNeedsRange, fieldValuesInMemory, filterEmptySummaryTree, filterPivotEngineAsync, filterRecords, filterRecordsAsync, flattenExportRows, flattenRowTree, flattenRowTreeTabular, flattenRowTreeTree, formatCellValue, formatCellValueCached, formatDimensionValue, formatHeaderValue, fr, funnelMarks, funnelStages, getAdvancedExporter, getCellVal, getFieldDistinctValues, getPivotAiSchema, getPivotAiState, getVisibleColLeaves, getVisibleColSlots, getVisibleLeafCount, getVisibleMaxDepth, headerFilterShown, headerFilterWrite, heatColor, heatTextColor, heatmapMarks, histogramBins, histogramMarks, inferColumnType, initPivotEngineAsync, intlFormatToExcelNumFmt, invertRowHeaderWidth, it, ja, ko, logAxisTicks, nextChartWindowId, nextLiveText, pairSeriesForXY, parseBoolean, parseColor, parseCsvToRows, parseDelimited, parseFlexibleDate, parseLocaleNumber, percentAxisTicks, percentModeExcelNumFmt, percentModeText, pivotChangeAnnouncement, pivotDensityClass, pivotRowHeight, pivotRowTrend, pivotServerSource, pt, rangeBarMarks, rangeRatio, readChartFormat, readFrameRect, readPivotChartState, reconfigurePivotEngineAsync, registerAdvancedExporter, resolveChartPalette, resolveChartStyle, resolveColPath, resolveColumnWidthDefaults, resolveConditionalVisual, rollupInMemory, ru, safeKey, sanitizeRows, scaleColor, serverRequestFor, setActiveEngineGrid, sortPivotTree, squarify, stackSeries, stripBom, sunburstMarks, testSafeFormula, tr, treemapMarks, trendColumnPaths, trendShape, waterfallDomain, waterfallMarks, waterfallSteps, windowStartFor, zhCN };
3788
+ export { type AdvancedExportRequest, type AdvancedExporter, CHART_LEGEND_POSITIONS, CHART_PALETTE_NAMES, type CalculatedFieldTextKey, type CellClickEvent, type CellPreparedEvent, type CellType, type ChartCategoryKeyAction, type ChartFont, type ChartFormat, type ChartGridLines, type ChartImageRequest, type ChartKeyTextKey, type ChartLabelAngle, type ChartLegendPosition, type ChartMark, type ChartPaletteName, type ChartStacking, type ChartStyle, type ChartStyleDefaults, type ColHeaderCell, type ColumnSlot, type ColumnSlotOptions, type ConditionalVisual, type CsvParseProgress, CsvReader, type CustomSummaryOptions, DEFAULT_DATA_COLUMN_WIDTH, DEFAULT_ROW_HEADER_WIDTH, DataNormalizer, type DateFormatContext, DateFormatter, type DateGranularity, type DimensionFieldInfo, type DrillDownTextKey, type DropIntent, type ExportFormat, type ExportOptions, ExportStreamController, type ExportingEvent, FastTrie, type FieldDistinctEntry, type FieldMoveEvent, type FilterCondition, type FilterGroup, type FilterOperator, type FlatCellMatrix, FlatPivotEngine, type FlatRow, type FloatingFrame, type FrameRect, type FrameSize, type FunnelStage, type HeaderFilterOption, type HeaderFilterState, type HeaderFilterWrite, type HistogramBin, type IFileReader, type ImportFormat, ImportManager, type ImportManagerOptions, type ImportProgress, type ImportResult, type ImportSnapshot, ImportStreamController, type ImportWorkerKind, type ImportWorkerResult, MAX_C, type MarkTone, PIVOT_AI_FEATURES, PIVOT_STATE_VERSION, type ParseFileOptions, type PersistedPivotState, type PivotAiApplyResult, type PivotAiCondition, type PivotAiFeature, type PivotAiFieldOptions, type PivotAiFilter, type PivotAiOptions, type PivotAiSort, type PivotAiState, type PivotAiTotals, type PivotAiValue, type PivotArea, type PivotCell, PivotCellAggregator, type PivotCellTemplate, type PivotCellTextAccessor, type PivotCellValueAccessor, type PivotChartChange, type PivotChartChangedEvent, type PivotChartClosedEvent, type PivotChartOpenedEvent, type PivotChartReportPart, type PivotChartState, type PivotChartWindowState, type PivotColumnWidthDefaults, type PivotConditionRule, PivotController, type PivotControllerCallbacks, type PivotControllerEvents, type PivotControllerOptions, type PivotControllerState, type PivotDataSource, type PivotDensity, type PivotDictionary, type PivotDragIntentState, PivotEngineRegistry, type PivotEngineResult, PivotEngineService, type PivotEngineServiceConfig, PivotEventEmitter, type PivotEventHandler, type PivotEventMap, PivotExportService, type PivotField, PivotFieldService, type PivotGridRef, type PivotGroupInterval, type PivotImportField, type PivotImportLabels, type PivotImportPreviewState, type PivotImportStatus, type PivotLabelFilter, type PivotLayoutProfile, type PivotLayoutState, type PivotLocale, type PivotNode, type PivotPlugin, type PivotPrefilter, type PivotReport, PivotReportManager, PivotReportService, type PivotReportState, type PivotRowKey, type PivotRowKeyResolver, type PivotRowSparkline, type PivotRowTransaction, type PivotSelectionMode, PivotSelectionModel, type PivotSelectionRange, type PivotSelectionState, type PivotSelectionStats, type PivotServerCell, type PivotServerField, type PivotServerInput, type PivotServerRequest, type PivotServerResponse, type PivotServerSource, type PivotServerSourceOptions, type PivotServerValue, type PivotStateListener, type PivotStateSession, PivotStateStore, type PivotStateStoringConfig, type PivotSummaryDisplayMode, type PivotSummaryType, type PivotTheme, type PivotToolbarConfig, type PivotTransactionResult, type PivotValue, type PivotValueFilter, type PrefilterConditionSpec, type PrefilterGroupSpec, type ProcessFileStreamingOptions, type ProcessFromUrlOptions, ROW_HEADER_MAX_PINNED_FRACTION, ROW_HEADER_MIN_COL_WIDTH, ROW_HEADER_MIN_DATA_STRIP, type ReportStatePart, type RowHeaderLayout, SHAPE_CHART_TYPES, type ShapeChartInput, type ShapeChartType, type StackedSegment, type TreemapCell, type TrendShape, type ValidationResult, type ValueRange, type WaterfallStep, type WorkerComputeRequest, type WorkerFilterRequest, type WorkerFilterSpec, type WorkerInitRequest, type WorkerResponse, type WorkerTransactionRequest, type XYPair, type XYPairInput, XmlReader, applyPivotAiState, ar, attachFloatingFrame, bindPivotScrollMemory, buildCellLookup, buildColPathsList, buildColumnHeaders, buildEngineResult, buildPivotAOA, buildRowLabelCells, calculatedFieldText, cellHash, cellHashCol, cellHashRow, centredFrame, chartCategoryKey, chartKeyText, chartPalette, chartWindowFrame, classifyValue, clearFormatCache, coerceRecords, coerceValue, collatorFor, compileSafeFormula, computeFieldRanges, computePivotMatrixAsync, computeRowHeaderWidths, conditionRuleToExcelStyle, cssColorToRgb, de, dedupeHeaders, defaultPivotLayout, destroyEngineWorker, detectDelimiter, diffPivotChartState, drillDownText, en, es, escapeXmlText, executePostAggregationPhase, executeSummaryDisplayModesPhase, exportPivotData, extractGroupValue, fieldNeedsRange, fieldValuesInMemory, filterEmptySummaryTree, filterPivotEngineAsync, filterRecords, filterRecordsAsync, flattenExportRows, flattenRowTree, flattenRowTreeTabular, flattenRowTreeTree, formatCellValue, formatCellValueCached, formatDimensionValue, formatHeaderValue, fr, funnelMarks, funnelStages, getAdvancedExporter, getCellVal, getFieldDistinctValues, getPivotAiSchema, getPivotAiState, getVisibleColLeaves, getVisibleColSlots, getVisibleLeafCount, getVisibleMaxDepth, headerFilterShown, headerFilterWrite, heatColor, heatTextColor, heatmapMarks, histogramBins, histogramMarks, inferColumnType, initPivotEngineAsync, intlFormatToExcelNumFmt, invertRowHeaderWidth, it, ja, ko, logAxisTicks, nextChartWindowId, nextLiveText, pairSeriesForXY, parseBoolean, parseColor, parseCsvToRows, parseDelimited, parseFlexibleDate, parseLocaleNumber, percentAxisTicks, percentModeExcelNumFmt, percentModeText, pivotChangeAnnouncement, pivotDensityClass, pivotRowHeight, pivotRowTrend, pivotSchemeTheme, pivotServerSource, pt, rangeBarMarks, rangeRatio, readChartFormat, readFrameRect, readPivotChartState, reconfigurePivotEngineAsync, registerAdvancedExporter, resolveChartPalette, resolveChartStyle, resolveColPath, resolveColumnWidthDefaults, resolveConditionalVisual, rollupInMemory, ru, safeKey, sanitizeRows, scaleColor, serverRequestFor, setActiveEngineGrid, sortPivotTree, squarify, stackSeries, stripBom, sunburstMarks, testSafeFormula, tr, treemapMarks, trendColumnPaths, trendShape, waterfallDomain, waterfallMarks, waterfallSteps, windowStartFor, zhCN };