@kanunilabs/pivotgrid-core 1.11.4 → 1.11.5

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
@@ -1387,6 +1387,14 @@ declare const ROW_HEADER_MIN_DATA_STRIP = 160;
1387
1387
  declare const ROW_HEADER_MAX_PINNED_FRACTION = 0.6;
1388
1388
  /** However tight it gets, a row-header column stays wide enough to read. */
1389
1389
  declare const ROW_HEADER_MIN_COL_WIDTH = 56;
1390
+ /**
1391
+ * Whether the row-header block stops being pinned (B.64 addendum): the whole
1392
+ * table then scrolls sideways as one. `'unpin'` always; otherwise whenever the
1393
+ * columns, each at its floor, cannot leave the data its minimum strip. Then no
1394
+ * squeeze can help: the block would fill the viewport and the data would be
1395
+ * out of reach. `viewport <= 0` is "not measured" and never unpins.
1396
+ */
1397
+ declare function rowHeadersUnpinned(columnCount: number, viewport: number, mode?: string): boolean;
1390
1398
  interface RowHeaderLayout {
1391
1399
  /** Widths as PAINTED, one per row-header column. */
1392
1400
  widths: number[];
@@ -1519,7 +1527,13 @@ interface ColHeaderCell {
1519
1527
  declare function buildColumnHeaders(colTree: PivotNode[], dataFields: PivotField[], layout: PivotLayoutState, expandedColPaths: Set<string>, allExpanded?: boolean, labels?: {
1520
1528
  grandTotal?: string;
1521
1529
  subTotal?: string;
1522
- }): ColHeaderCell[][];
1530
+ }, colFieldCount?: number): ColHeaderCell[][];
1531
+ /**
1532
+ * Whether the pivot has the "Grand Total" row over its measure headers
1533
+ * (`layout.showGrandTotalHeader`, B.69): only while no field is in the column
1534
+ * area, since with one the grand-total column carries its own heading.
1535
+ */
1536
+ declare function grandTotalHeaderShown(layout: Pick<PivotLayoutState, 'showGrandTotalHeader'>, colCount: number, dataFieldCount: number): boolean;
1523
1537
  /**
1524
1538
  * A flattened row for rendering. Each row represents either:
1525
1539
  * - A leaf data row (values at each depth level column)
@@ -1648,6 +1662,14 @@ interface ExportOptions {
1648
1662
  * when the call gives none.
1649
1663
  */
1650
1664
  onLargeExport?: (info: LargeExportInfo) => boolean | void | Promise<boolean | void>;
1665
+ /**
1666
+ * The words the document contains (the grand-total and subtotal labels, the
1667
+ * sheet names). The grid hands in its own dictionary, locale and the app's
1668
+ * overrides together, so a file says what the screen says (B.68). Omitted
1669
+ * (a controller used without a renderer), the built-in dictionary of
1670
+ * `locale` is used, and English for print and clipboard.
1671
+ */
1672
+ dictionary?: Partial<PivotDictionary>;
1651
1673
  }
1652
1674
  /** What {@link ExportOptions.onLargeExport} is told. */
1653
1675
  interface LargeExportInfo {
@@ -2044,6 +2066,68 @@ interface PivotLayoutState {
2044
2066
  * like every other member. A view setting, as above.
2045
2067
  */
2046
2068
  filterAreaCollapsed?: boolean;
2069
+ /**
2070
+ * What the row-header block does when its columns do not fit (B.64).
2071
+ * `'shrink'` (default): the block is held to 60% of the width and every
2072
+ * column is squeezed to fit, down to 56px each. `'scroll'`: each column
2073
+ * keeps its width. React: the block stays pinned, is held to 60% of the
2074
+ * width, and scrolls sideways inside itself (touch, trackpad or Shift+wheel;
2075
+ * its scrollbar is hidden so the rows stay aligned with the data). Plain JS:
2076
+ * the row headers are not pinned; the whole table scrolls sideways. A view
2077
+ * setting.
2078
+ *
2079
+ * `'unpin'`: the row headers are never pinned; the whole table (headers and
2080
+ * data) scrolls sideways as one, each column at its width. Plain JS already
2081
+ * scrolls the whole table, so there `'scroll'` and `'unpin'` behave alike.
2082
+ *
2083
+ * Whatever the value, the block lets go of its pin by itself when its
2084
+ * columns, each at the 56px floor, cannot leave the data 160px (columns x 56
2085
+ * + 160 > the pivot's width): squeezing cannot help then, and the data would
2086
+ * be out of reach. Otherwise `'shrink'` and `'scroll'` act as described.
2087
+ */
2088
+ rowHeaderOverflow?: 'shrink' | 'scroll' | 'unpin';
2089
+ /**
2090
+ * How many rows of chips the COLLAPSED filter strip shows (B.63). Default 1.
2091
+ * 0 leaves only the strip's header: its name, how many of its fields filter,
2092
+ * and the button that opens it. A view setting; the app's, not saved by the
2093
+ * collapse button.
2094
+ */
2095
+ filterAreaCollapsedRows?: number;
2096
+ /**
2097
+ * Show the summary-type badge ("Sum") on the chips of the data area (B.62).
2098
+ * Default `true`; `false` hides it (the chip's accessible name still says it).
2099
+ * A view setting.
2100
+ */
2101
+ showSummaryBadge?: boolean;
2102
+ /**
2103
+ * The widest a field chip's caption grows, in px (B.62). Default 120. `'none'`
2104
+ * lets the caption keep its whole text; `'auto'` sizes the chip to its caption,
2105
+ * up to 280px. A cut caption shows its whole text as a tooltip. A view setting.
2106
+ */
2107
+ chipMaxWidth?: number | 'none' | 'auto';
2108
+ /**
2109
+ * Show the remove (x) button on a field chip (B.62 addendum). Default `true`;
2110
+ * `false` hides it (a field still leaves by dragging it to the field list, by
2111
+ * Delete on the focused chip, or from the chip's menu). A view setting. The
2112
+ * gap between a chip's caption and its filter icon is the CSS variable
2113
+ * `--pivot-chip-filter-gap` (default 4px), set on the pivot or above it.
2114
+ */
2115
+ showChipRemove?: boolean;
2116
+ /**
2117
+ * With no field in the column area, put a "Grand Total" heading (the
2118
+ * dictionary's `grandTotal`) over the measure headers (B.69). Default `false`.
2119
+ * Ignored while a column field exists: the grand-total column has its own
2120
+ * heading then. The Excel, PDF, print and clipboard exports carry the row too.
2121
+ * A view setting.
2122
+ */
2123
+ showGrandTotalHeader?: boolean;
2124
+ /**
2125
+ * The scrollbars inside the pivot (B.70). `'thin'` (default) is the
2126
+ * stylesheet's slim, rounded bar. `'native'` leaves them to the browser: on
2127
+ * Windows the classic wide bar with arrows. Needs the stylesheet of this
2128
+ * release or later. A view setting.
2129
+ */
2130
+ scrollbarStyle?: 'thin' | 'native';
2047
2131
  /** Chart integration type when rendering in chart mode. */
2048
2132
  chartType?: string;
2049
2133
  }
@@ -2231,6 +2315,11 @@ interface PivotControllerCallbacks<TRow = any> {
2231
2315
  onExporting?: (e: ExportingEvent) => void;
2232
2316
  /** Before a styled Excel export gives way to the plain one; `false` cancels (B.23). See `ExportOptions.onLargeExport`. */
2233
2317
  onLargeExport?: ExportOptions['onLargeExport'];
2318
+ /**
2319
+ * The grid's resolved dictionary (the locale's words and the app's overrides).
2320
+ * The renderers set it; exports take the words of the file from it (B.68).
2321
+ */
2322
+ dictionary?: Partial<PivotDictionary>;
2234
2323
  /**
2235
2324
  * `isComputing` changed: true when a change starts computing, false when its
2236
2325
  * result is shown (B.31). `exportData` waits for false before it writes.
@@ -2842,8 +2931,8 @@ declare class PivotController<TRow> {
2842
2931
  * The open paths are sent to the worker on every computation and saved with
2843
2932
  * the state, so above `EXPAND_ALL_PATH_CAP` (5,000) groups — or when that
2844
2933
  * computation fails (reported to `onError`) — the grid opens everything
2845
- * with the `'*'` sentinel instead. Then a single branch cannot be closed:
2846
- * "Collapse all" closes everything.
2934
+ * with the `'*'` sentinel instead. A single branch can still be closed then:
2935
+ * the closed ones are saved as entries beside the `'*'` (B.65).
2847
2936
  */
2848
2937
  expandAll(options?: {
2849
2938
  allLevels?: boolean;
@@ -2912,6 +3001,8 @@ declare class PivotController<TRow> {
2912
3001
  * is asking; the controller can.
2913
3002
  */
2914
3003
  private static readonly ENTERPRISE_FORMATS;
3004
+ /** The formats the free core writes itself. */
3005
+ private static readonly BUILT_IN_FORMATS;
2915
3006
  /**
2916
3007
  * Write the pivot in `format`. A change still computing (and any queued
2917
3008
  * `applyTransactionAsync` batch) is waited for first, so the file holds the
@@ -3398,6 +3489,30 @@ declare function extractGroupValue<TRow>(row: TRow, field: PivotField<TRow>): Pi
3398
3489
  declare function pathKey(parts: readonly unknown[]): string;
3399
3490
  /** The member path a `pathKey` names (the root, "", is `[]`). Assumes no member value starts with or contains `|`. */
3400
3491
  declare function pathParts(key: string): string[];
3492
+ /** Marks a closed branch inside a set that has `'*'`. Built, not written, so no editor turns it into text. */
3493
+ declare const COLLAPSED_PREFIX: string;
3494
+ /** The entry that says the branch `key` is closed. */
3495
+ declare function collapsedKey(key: string): string;
3496
+ /** Is `entry` a closed-branch entry (rather than an open path or `'*'`)? */
3497
+ declare function isCollapsedKey(entry: string): boolean;
3498
+ /** The branch a closed-branch entry names. */
3499
+ declare function collapsedKeyPath(entry: string): string;
3500
+ /** Is the node `key` open? `all` is "the set has '*'". */
3501
+ declare function isKeyExpanded(set: ReadonlySet<string>, all: boolean, key: string): boolean;
3502
+ /**
3503
+ * The set after one branch is flipped: with `'*'` it adds or removes the
3504
+ * branch's closed entry, otherwise it adds or removes its open path. A copy.
3505
+ */
3506
+ declare function toggleKeyIn(set: ReadonlySet<string>, key: string): Set<string>;
3507
+ /** `keys` opened (true) or closed (false) in `set`, by the same rule. A copy. */
3508
+ declare function setKeysIn(set: ReadonlySet<string>, keys: readonly string[], open: boolean): Set<string>;
3509
+ /**
3510
+ * `set` without its closed-branch entries (the set itself when it has none).
3511
+ * For readers that take the members as paths: a server source, a custom
3512
+ * exporter, a snapshot. Under '*' they get "everything open" and the closing
3513
+ * is the grid's own, on screen and in its own exports.
3514
+ */
3515
+ declare function withoutCollapsed(set: ReadonlySet<string>): Set<string>;
3401
3516
 
3402
3517
  interface DimensionFieldInfo {
3403
3518
  dataType?: string;
@@ -3446,8 +3561,12 @@ declare function computedFields<T extends {
3446
3561
  /** The strip content's gap between chip rows and its vertical padding (CSS `.kanuni-pivot-area-content`). */
3447
3562
  declare const FILTER_AREA_ROW_GAP = 4;
3448
3563
  declare const FILTER_AREA_PADDING = 8;
3449
- /** The rows the strip may show, or null for no limit. */
3450
- declare function filterAreaRows(layout: Pick<PivotLayoutState, 'filterAreaMaxRows' | 'filterAreaCollapsed'>): number | null;
3564
+ /**
3565
+ * The rows the strip may show, or null for no limit. 0 (only when collapsed,
3566
+ * `layout.filterAreaCollapsedRows: 0`, B.63) means no chips at all: the strip's
3567
+ * header alone.
3568
+ */
3569
+ declare function filterAreaRows(layout: Pick<PivotLayoutState, 'filterAreaMaxRows' | 'filterAreaCollapsed' | 'filterAreaCollapsedRows'>): number | null;
3451
3570
  /** The strip content's max height in px for `rows` rows of `chipHeight` px chips. */
3452
3571
  declare function filterAreaMaxHeight(rows: number, chipHeight: number): number;
3453
3572
  /** How many filter-area fields filter something (shown on the collapsed strip). */
@@ -3459,6 +3578,46 @@ declare function countFilteredFields(fields: readonly {
3459
3578
  labelFilter?: unknown;
3460
3579
  }[]): number;
3461
3580
 
3581
+ /** The narrowest and the widest a column is made, in Excel's character units. */
3582
+ declare const EXCEL_MIN_COLUMN_WIDTH = 8;
3583
+ declare const EXCEL_MAX_COLUMN_WIDTH = 60;
3584
+ /** How many rows are measured. */
3585
+ declare const EXCEL_WIDTH_SAMPLE_ROWS = 1000;
3586
+ /** The width of a text in character units: full-width letters count twice. */
3587
+ declare function excelTextLength(text: string): number;
3588
+ /**
3589
+ * How long a value looks once Excel has formatted it, given the cell's number
3590
+ * format when known. A number is measured with the format's own decimals
3591
+ * (grouped, two by default), a date by its format (`dd/mm/yyyy` by default,
3592
+ * at least 18 when the format shows the time). A custom format is otherwise
3593
+ * not parsed, which can be a few characters off and is why the result carries
3594
+ * padding. A text is measured by its FIRST line: a wrapped cell shows that much
3595
+ * per row.
3596
+ */
3597
+ declare function excelValueLength(value: unknown, numFmt?: string): number;
3598
+ /** Measures columns row by row; `widths()` gives the Excel width of each. */
3599
+ declare class ExcelWidthTracker {
3600
+ private readonly headers;
3601
+ private readonly numFmts;
3602
+ private readonly longest;
3603
+ private seen;
3604
+ /** `numFmts[i]` is column i's Excel number format, when the writer sets one. */
3605
+ constructor(headers: readonly string[], numFmts?: readonly (string | undefined)[]);
3606
+ /** Feed one data row; rows past the sample are ignored. */
3607
+ add(values: readonly unknown[]): void;
3608
+ widths(): number[];
3609
+ }
3610
+
3611
+ /** What `chipMaxWidth: 'auto'` stops at. */
3612
+ declare const CHIP_AUTO_MAX_WIDTH = 280;
3613
+ interface PivotChipView {
3614
+ /** Classes (space separated) to add to the pivot's root, or '' for none. */
3615
+ className: string;
3616
+ /** CSS variables for the pivot's root; empty when everything is at its default. */
3617
+ style: Record<string, string>;
3618
+ }
3619
+ declare function pivotChipView(layout: Pick<PivotLayoutState, 'showSummaryBadge' | 'chipMaxWidth' | 'showChipRemove' | 'scrollbarStyle'>): PivotChipView;
3620
+
3462
3621
  /** What the helper needs of the controller. */
3463
3622
  interface FocusKeeperController {
3464
3623
  subscribe(listener: () => void): () => void;
@@ -3479,6 +3638,13 @@ interface PopupPlacement {
3479
3638
  }
3480
3639
  /** The part of the layout viewport the user sees, in `position: fixed` coordinates. */
3481
3640
  declare function popupViewport(win?: Window): PopupViewport;
3641
+ /**
3642
+ * How many times the page's CSS `zoom` paints this element's lengths (B.71). A
3643
+ * zoomed subtree multiplies every length in it, `vw` and `vh` too, so a window
3644
+ * sized in viewport pixels runs off the screen. Painted width / layout width of
3645
+ * a box with no transform of its own; 1 when there is none (or no layout).
3646
+ */
3647
+ declare function cssZoomOf(el: Element | null | undefined): number;
3482
3648
  /**
3483
3649
  * `anchor` is where the popup would start (its top-left in LTR). `size` its
3484
3650
  * natural size (offsetWidth/offsetHeight: a transform does not count). `altX`
@@ -3632,6 +3798,8 @@ interface AdvancedExportRequest {
3632
3798
  onProgress?: (percent: number) => void;
3633
3799
  /** Asked before the plain-file fallback (B.23); `false` cancels. */
3634
3800
  onLargeExport?: ExportOptions['onLargeExport'];
3801
+ /** The grid's own dictionary (B.68): the words of the file come from it, over the built-in ones of `locale`. */
3802
+ dictionary?: Partial<PivotDictionary>;
3635
3803
  }
3636
3804
  type AdvancedExporter = (req: AdvancedExportRequest) => Promise<void>;
3637
3805
  /** Called by the Enterprise package to enable Excel/PDF export. */
@@ -3904,4 +4072,4 @@ declare function rollupInMemory<TRow>(rows: readonly TRow[], request: PivotServe
3904
4072
  /** Every value of a field in rows held in memory — the reference `loadFieldValues`. */
3905
4073
  declare function fieldValuesInMemory<TRow>(rows: readonly TRow[], field: PivotServerField): unknown[];
3906
4074
 
3907
- export { type AdvancedExportRequest, type AdvancedExporter, CHART_LEGEND_POSITIONS, CHART_PALETTE_NAMES, type CalculatedFieldTextKey, type CellClickEvent, type CellPath, type CellPreparedEvent, 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 CustomSummaryOptions, DEFAULT_DATA_COLUMN_WIDTH, DEFAULT_ROW_HEADER_WIDTH, type DateFormatContext, DateFormatter, type DateGranularity, type DimensionFieldInfo, type DrillDownTextKey, type DropIntent, type ExportFormat, type ExportOptions, ExportStreamController, type ExportingEvent, FILTER_AREA_PADDING, FILTER_AREA_ROW_GAP, 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 LargeExportInfo, MAX_C, type MarkTone, PIVOT_AI_FEATURES, PIVOT_LICENSE_TEXT, PIVOT_STATE_VERSION, type PersistedPivotFilters, 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 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 PivotSummaryColumn, type PivotSummaryDisplayMode, type PivotSummaryTable, type PivotSummaryTableOptions, type PivotSummaryType, type PivotTheme, type PivotToolbarConfig, type PivotTransactionResult, type PivotValue, type PivotValueFilter, type PopupPlacement, type PopupViewport, type PrefilterConditionSpec, type PrefilterGroupSpec, 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 ValueRange, type WaterfallStep, type WorkerComputeRequest, type WorkerFilterRequest, type WorkerFilterSpec, type WorkerInitRequest, type WorkerResponse, type WorkerTransactionRequest, type XYPair, type XYPairInput, applyPivotAiState, ar, attachFloatingFrame, bindPivotScrollMemory, buildCellLookup, buildColPathsList, buildColumnHeaders, buildEngineResult, buildPivotAOA, buildRowLabelCells, calculatedFieldText, cellHash, cellHashCol, cellHashRow, centredFrame, chartCategoryKey, chartKeyText, chartPalette, chartWindowFrame, clearFormatCache, collatorFor, columnSlotOptions, compileSafeFormula, computeFieldRanges, computePivotMatrixAsync, computeRowHeaderWidths, computedFields, conditionRuleToExcelStyle, countFilteredFields, cssColorToRgb, de, defaultPivotLayout, destroyEngineWorker, diffPivotChartState, drillDownText, en, es, escapeXmlText, executePostAggregationPhase, executeSummaryDisplayModesPhase, exportPivotData, extractGroupValue, fieldNeedsRange, fieldValuesInMemory, filterAreaMaxHeight, filterAreaRows, filterEmptySummaryTree, filterPivotEngineAsync, filterRecords, filterRecordsAsync, flattenExportRows, flattenRowTree, flattenRowTreeTabular, flattenRowTreeTree, formatCellValue, formatCellValueCached, formatDimensionValue, formatHeaderValue, fr, funnelMarks, funnelStages, getAdvancedExporter, getCellVal, getFieldDistinctValues, getPivotAiSchema, getPivotAiState, getRecordsForCells, getSummaryTable, getVisibleColLeaves, getVisibleColSlots, getVisibleLeafCount, getVisibleMaxDepth, grandTotalShown, headerFilterShown, headerFilterWrite, heatColor, heatTextColor, heatmapMarks, histogramBins, histogramMarks, initPivotEngineAsync, intlFormatToExcelNumFmt, invertRowHeaderWidth, it, ja, keepFieldGroups, keepFocusAcross, ko, logAxisTicks, mergePersistedState, nextChartWindowId, nextLiveText, pairSeriesForXY, parseColor, pathKey, pathParts, percentAxisTicks, percentModeExcelNumFmt, percentModeText, pivotChangeAnnouncement, pivotDensityClass, pivotLicenseText, pivotRowHeight, pivotRowTrend, pivotSchemeTheme, pivotServerSource, placePopup, popupViewport, pt, rangeBarMarks, rangeRatio, readChartFormat, readFrameRect, readPivotChartState, reconfigurePivotEngineAsync, registerAdvancedExporter, resolveChartPalette, resolveChartStyle, resolveColPath, resolveColumnWidthDefaults, resolveConditionalVisual, rollupInMemory, ru, scaleColor, serverRequestFor, setActiveEngineGrid, shownFields, sortPivotTree, splitPersistedState, squarify, stackSeries, subtotalFor, summaryTypeLabel, sunburstMarks, testSafeFormula, tr, treemapMarks, trendColumnPaths, trendShape, waterfallDomain, waterfallMarks, waterfallSteps, windowStartFor, zhCN };
4075
+ export { type AdvancedExportRequest, type AdvancedExporter, CHART_LEGEND_POSITIONS, CHART_PALETTE_NAMES, CHIP_AUTO_MAX_WIDTH, COLLAPSED_PREFIX, type CalculatedFieldTextKey, type CellClickEvent, type CellPath, type CellPreparedEvent, 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 CustomSummaryOptions, DEFAULT_DATA_COLUMN_WIDTH, DEFAULT_ROW_HEADER_WIDTH, type DateFormatContext, DateFormatter, type DateGranularity, type DimensionFieldInfo, type DrillDownTextKey, type DropIntent, EXCEL_MAX_COLUMN_WIDTH, EXCEL_MIN_COLUMN_WIDTH, EXCEL_WIDTH_SAMPLE_ROWS, ExcelWidthTracker, type ExportFormat, type ExportOptions, ExportStreamController, type ExportingEvent, FILTER_AREA_PADDING, FILTER_AREA_ROW_GAP, 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 LargeExportInfo, MAX_C, type MarkTone, PIVOT_AI_FEATURES, PIVOT_LICENSE_TEXT, PIVOT_STATE_VERSION, type PersistedPivotFilters, 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 PivotChipView, 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 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 PivotSummaryColumn, type PivotSummaryDisplayMode, type PivotSummaryTable, type PivotSummaryTableOptions, type PivotSummaryType, type PivotTheme, type PivotToolbarConfig, type PivotTransactionResult, type PivotValue, type PivotValueFilter, type PopupPlacement, type PopupViewport, type PrefilterConditionSpec, type PrefilterGroupSpec, 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 ValueRange, type WaterfallStep, type WorkerComputeRequest, type WorkerFilterRequest, type WorkerFilterSpec, type WorkerInitRequest, type WorkerResponse, type WorkerTransactionRequest, type XYPair, type XYPairInput, applyPivotAiState, ar, attachFloatingFrame, bindPivotScrollMemory, buildCellLookup, buildColPathsList, buildColumnHeaders, buildEngineResult, buildPivotAOA, buildRowLabelCells, calculatedFieldText, cellHash, cellHashCol, cellHashRow, centredFrame, chartCategoryKey, chartKeyText, chartPalette, chartWindowFrame, clearFormatCache, collapsedKey, collapsedKeyPath, collatorFor, columnSlotOptions, compileSafeFormula, computeFieldRanges, computePivotMatrixAsync, computeRowHeaderWidths, computedFields, conditionRuleToExcelStyle, countFilteredFields, cssColorToRgb, cssZoomOf, de, defaultPivotLayout, destroyEngineWorker, diffPivotChartState, drillDownText, en, es, escapeXmlText, excelTextLength, excelValueLength, executePostAggregationPhase, executeSummaryDisplayModesPhase, exportPivotData, extractGroupValue, fieldNeedsRange, fieldValuesInMemory, filterAreaMaxHeight, filterAreaRows, filterEmptySummaryTree, filterPivotEngineAsync, filterRecords, filterRecordsAsync, flattenExportRows, flattenRowTree, flattenRowTreeTabular, flattenRowTreeTree, formatCellValue, formatCellValueCached, formatDimensionValue, formatHeaderValue, fr, funnelMarks, funnelStages, getAdvancedExporter, getCellVal, getFieldDistinctValues, getPivotAiSchema, getPivotAiState, getRecordsForCells, getSummaryTable, getVisibleColLeaves, getVisibleColSlots, getVisibleLeafCount, getVisibleMaxDepth, grandTotalHeaderShown, grandTotalShown, headerFilterShown, headerFilterWrite, heatColor, heatTextColor, heatmapMarks, histogramBins, histogramMarks, initPivotEngineAsync, intlFormatToExcelNumFmt, invertRowHeaderWidth, isCollapsedKey, isKeyExpanded, it, ja, keepFieldGroups, keepFocusAcross, ko, logAxisTicks, mergePersistedState, nextChartWindowId, nextLiveText, pairSeriesForXY, parseColor, pathKey, pathParts, percentAxisTicks, percentModeExcelNumFmt, percentModeText, pivotChangeAnnouncement, pivotChipView, pivotDensityClass, pivotLicenseText, pivotRowHeight, pivotRowTrend, pivotSchemeTheme, pivotServerSource, placePopup, popupViewport, pt, rangeBarMarks, rangeRatio, readChartFormat, readFrameRect, readPivotChartState, reconfigurePivotEngineAsync, registerAdvancedExporter, resolveChartPalette, resolveChartStyle, resolveColPath, resolveColumnWidthDefaults, resolveConditionalVisual, rollupInMemory, rowHeadersUnpinned, ru, scaleColor, serverRequestFor, setActiveEngineGrid, setKeysIn, shownFields, sortPivotTree, splitPersistedState, squarify, stackSeries, subtotalFor, summaryTypeLabel, sunburstMarks, testSafeFormula, toggleKeyIn, tr, treemapMarks, trendColumnPaths, trendShape, waterfallDomain, waterfallMarks, waterfallSteps, windowStartFor, withoutCollapsed, zhCN };
package/dist/index.d.ts CHANGED
@@ -1387,6 +1387,14 @@ declare const ROW_HEADER_MIN_DATA_STRIP = 160;
1387
1387
  declare const ROW_HEADER_MAX_PINNED_FRACTION = 0.6;
1388
1388
  /** However tight it gets, a row-header column stays wide enough to read. */
1389
1389
  declare const ROW_HEADER_MIN_COL_WIDTH = 56;
1390
+ /**
1391
+ * Whether the row-header block stops being pinned (B.64 addendum): the whole
1392
+ * table then scrolls sideways as one. `'unpin'` always; otherwise whenever the
1393
+ * columns, each at its floor, cannot leave the data its minimum strip. Then no
1394
+ * squeeze can help: the block would fill the viewport and the data would be
1395
+ * out of reach. `viewport <= 0` is "not measured" and never unpins.
1396
+ */
1397
+ declare function rowHeadersUnpinned(columnCount: number, viewport: number, mode?: string): boolean;
1390
1398
  interface RowHeaderLayout {
1391
1399
  /** Widths as PAINTED, one per row-header column. */
1392
1400
  widths: number[];
@@ -1519,7 +1527,13 @@ interface ColHeaderCell {
1519
1527
  declare function buildColumnHeaders(colTree: PivotNode[], dataFields: PivotField[], layout: PivotLayoutState, expandedColPaths: Set<string>, allExpanded?: boolean, labels?: {
1520
1528
  grandTotal?: string;
1521
1529
  subTotal?: string;
1522
- }): ColHeaderCell[][];
1530
+ }, colFieldCount?: number): ColHeaderCell[][];
1531
+ /**
1532
+ * Whether the pivot has the "Grand Total" row over its measure headers
1533
+ * (`layout.showGrandTotalHeader`, B.69): only while no field is in the column
1534
+ * area, since with one the grand-total column carries its own heading.
1535
+ */
1536
+ declare function grandTotalHeaderShown(layout: Pick<PivotLayoutState, 'showGrandTotalHeader'>, colCount: number, dataFieldCount: number): boolean;
1523
1537
  /**
1524
1538
  * A flattened row for rendering. Each row represents either:
1525
1539
  * - A leaf data row (values at each depth level column)
@@ -1648,6 +1662,14 @@ interface ExportOptions {
1648
1662
  * when the call gives none.
1649
1663
  */
1650
1664
  onLargeExport?: (info: LargeExportInfo) => boolean | void | Promise<boolean | void>;
1665
+ /**
1666
+ * The words the document contains (the grand-total and subtotal labels, the
1667
+ * sheet names). The grid hands in its own dictionary, locale and the app's
1668
+ * overrides together, so a file says what the screen says (B.68). Omitted
1669
+ * (a controller used without a renderer), the built-in dictionary of
1670
+ * `locale` is used, and English for print and clipboard.
1671
+ */
1672
+ dictionary?: Partial<PivotDictionary>;
1651
1673
  }
1652
1674
  /** What {@link ExportOptions.onLargeExport} is told. */
1653
1675
  interface LargeExportInfo {
@@ -2044,6 +2066,68 @@ interface PivotLayoutState {
2044
2066
  * like every other member. A view setting, as above.
2045
2067
  */
2046
2068
  filterAreaCollapsed?: boolean;
2069
+ /**
2070
+ * What the row-header block does when its columns do not fit (B.64).
2071
+ * `'shrink'` (default): the block is held to 60% of the width and every
2072
+ * column is squeezed to fit, down to 56px each. `'scroll'`: each column
2073
+ * keeps its width. React: the block stays pinned, is held to 60% of the
2074
+ * width, and scrolls sideways inside itself (touch, trackpad or Shift+wheel;
2075
+ * its scrollbar is hidden so the rows stay aligned with the data). Plain JS:
2076
+ * the row headers are not pinned; the whole table scrolls sideways. A view
2077
+ * setting.
2078
+ *
2079
+ * `'unpin'`: the row headers are never pinned; the whole table (headers and
2080
+ * data) scrolls sideways as one, each column at its width. Plain JS already
2081
+ * scrolls the whole table, so there `'scroll'` and `'unpin'` behave alike.
2082
+ *
2083
+ * Whatever the value, the block lets go of its pin by itself when its
2084
+ * columns, each at the 56px floor, cannot leave the data 160px (columns x 56
2085
+ * + 160 > the pivot's width): squeezing cannot help then, and the data would
2086
+ * be out of reach. Otherwise `'shrink'` and `'scroll'` act as described.
2087
+ */
2088
+ rowHeaderOverflow?: 'shrink' | 'scroll' | 'unpin';
2089
+ /**
2090
+ * How many rows of chips the COLLAPSED filter strip shows (B.63). Default 1.
2091
+ * 0 leaves only the strip's header: its name, how many of its fields filter,
2092
+ * and the button that opens it. A view setting; the app's, not saved by the
2093
+ * collapse button.
2094
+ */
2095
+ filterAreaCollapsedRows?: number;
2096
+ /**
2097
+ * Show the summary-type badge ("Sum") on the chips of the data area (B.62).
2098
+ * Default `true`; `false` hides it (the chip's accessible name still says it).
2099
+ * A view setting.
2100
+ */
2101
+ showSummaryBadge?: boolean;
2102
+ /**
2103
+ * The widest a field chip's caption grows, in px (B.62). Default 120. `'none'`
2104
+ * lets the caption keep its whole text; `'auto'` sizes the chip to its caption,
2105
+ * up to 280px. A cut caption shows its whole text as a tooltip. A view setting.
2106
+ */
2107
+ chipMaxWidth?: number | 'none' | 'auto';
2108
+ /**
2109
+ * Show the remove (x) button on a field chip (B.62 addendum). Default `true`;
2110
+ * `false` hides it (a field still leaves by dragging it to the field list, by
2111
+ * Delete on the focused chip, or from the chip's menu). A view setting. The
2112
+ * gap between a chip's caption and its filter icon is the CSS variable
2113
+ * `--pivot-chip-filter-gap` (default 4px), set on the pivot or above it.
2114
+ */
2115
+ showChipRemove?: boolean;
2116
+ /**
2117
+ * With no field in the column area, put a "Grand Total" heading (the
2118
+ * dictionary's `grandTotal`) over the measure headers (B.69). Default `false`.
2119
+ * Ignored while a column field exists: the grand-total column has its own
2120
+ * heading then. The Excel, PDF, print and clipboard exports carry the row too.
2121
+ * A view setting.
2122
+ */
2123
+ showGrandTotalHeader?: boolean;
2124
+ /**
2125
+ * The scrollbars inside the pivot (B.70). `'thin'` (default) is the
2126
+ * stylesheet's slim, rounded bar. `'native'` leaves them to the browser: on
2127
+ * Windows the classic wide bar with arrows. Needs the stylesheet of this
2128
+ * release or later. A view setting.
2129
+ */
2130
+ scrollbarStyle?: 'thin' | 'native';
2047
2131
  /** Chart integration type when rendering in chart mode. */
2048
2132
  chartType?: string;
2049
2133
  }
@@ -2231,6 +2315,11 @@ interface PivotControllerCallbacks<TRow = any> {
2231
2315
  onExporting?: (e: ExportingEvent) => void;
2232
2316
  /** Before a styled Excel export gives way to the plain one; `false` cancels (B.23). See `ExportOptions.onLargeExport`. */
2233
2317
  onLargeExport?: ExportOptions['onLargeExport'];
2318
+ /**
2319
+ * The grid's resolved dictionary (the locale's words and the app's overrides).
2320
+ * The renderers set it; exports take the words of the file from it (B.68).
2321
+ */
2322
+ dictionary?: Partial<PivotDictionary>;
2234
2323
  /**
2235
2324
  * `isComputing` changed: true when a change starts computing, false when its
2236
2325
  * result is shown (B.31). `exportData` waits for false before it writes.
@@ -2842,8 +2931,8 @@ declare class PivotController<TRow> {
2842
2931
  * The open paths are sent to the worker on every computation and saved with
2843
2932
  * the state, so above `EXPAND_ALL_PATH_CAP` (5,000) groups — or when that
2844
2933
  * computation fails (reported to `onError`) — the grid opens everything
2845
- * with the `'*'` sentinel instead. Then a single branch cannot be closed:
2846
- * "Collapse all" closes everything.
2934
+ * with the `'*'` sentinel instead. A single branch can still be closed then:
2935
+ * the closed ones are saved as entries beside the `'*'` (B.65).
2847
2936
  */
2848
2937
  expandAll(options?: {
2849
2938
  allLevels?: boolean;
@@ -2912,6 +3001,8 @@ declare class PivotController<TRow> {
2912
3001
  * is asking; the controller can.
2913
3002
  */
2914
3003
  private static readonly ENTERPRISE_FORMATS;
3004
+ /** The formats the free core writes itself. */
3005
+ private static readonly BUILT_IN_FORMATS;
2915
3006
  /**
2916
3007
  * Write the pivot in `format`. A change still computing (and any queued
2917
3008
  * `applyTransactionAsync` batch) is waited for first, so the file holds the
@@ -3398,6 +3489,30 @@ declare function extractGroupValue<TRow>(row: TRow, field: PivotField<TRow>): Pi
3398
3489
  declare function pathKey(parts: readonly unknown[]): string;
3399
3490
  /** The member path a `pathKey` names (the root, "", is `[]`). Assumes no member value starts with or contains `|`. */
3400
3491
  declare function pathParts(key: string): string[];
3492
+ /** Marks a closed branch inside a set that has `'*'`. Built, not written, so no editor turns it into text. */
3493
+ declare const COLLAPSED_PREFIX: string;
3494
+ /** The entry that says the branch `key` is closed. */
3495
+ declare function collapsedKey(key: string): string;
3496
+ /** Is `entry` a closed-branch entry (rather than an open path or `'*'`)? */
3497
+ declare function isCollapsedKey(entry: string): boolean;
3498
+ /** The branch a closed-branch entry names. */
3499
+ declare function collapsedKeyPath(entry: string): string;
3500
+ /** Is the node `key` open? `all` is "the set has '*'". */
3501
+ declare function isKeyExpanded(set: ReadonlySet<string>, all: boolean, key: string): boolean;
3502
+ /**
3503
+ * The set after one branch is flipped: with `'*'` it adds or removes the
3504
+ * branch's closed entry, otherwise it adds or removes its open path. A copy.
3505
+ */
3506
+ declare function toggleKeyIn(set: ReadonlySet<string>, key: string): Set<string>;
3507
+ /** `keys` opened (true) or closed (false) in `set`, by the same rule. A copy. */
3508
+ declare function setKeysIn(set: ReadonlySet<string>, keys: readonly string[], open: boolean): Set<string>;
3509
+ /**
3510
+ * `set` without its closed-branch entries (the set itself when it has none).
3511
+ * For readers that take the members as paths: a server source, a custom
3512
+ * exporter, a snapshot. Under '*' they get "everything open" and the closing
3513
+ * is the grid's own, on screen and in its own exports.
3514
+ */
3515
+ declare function withoutCollapsed(set: ReadonlySet<string>): Set<string>;
3401
3516
 
3402
3517
  interface DimensionFieldInfo {
3403
3518
  dataType?: string;
@@ -3446,8 +3561,12 @@ declare function computedFields<T extends {
3446
3561
  /** The strip content's gap between chip rows and its vertical padding (CSS `.kanuni-pivot-area-content`). */
3447
3562
  declare const FILTER_AREA_ROW_GAP = 4;
3448
3563
  declare const FILTER_AREA_PADDING = 8;
3449
- /** The rows the strip may show, or null for no limit. */
3450
- declare function filterAreaRows(layout: Pick<PivotLayoutState, 'filterAreaMaxRows' | 'filterAreaCollapsed'>): number | null;
3564
+ /**
3565
+ * The rows the strip may show, or null for no limit. 0 (only when collapsed,
3566
+ * `layout.filterAreaCollapsedRows: 0`, B.63) means no chips at all: the strip's
3567
+ * header alone.
3568
+ */
3569
+ declare function filterAreaRows(layout: Pick<PivotLayoutState, 'filterAreaMaxRows' | 'filterAreaCollapsed' | 'filterAreaCollapsedRows'>): number | null;
3451
3570
  /** The strip content's max height in px for `rows` rows of `chipHeight` px chips. */
3452
3571
  declare function filterAreaMaxHeight(rows: number, chipHeight: number): number;
3453
3572
  /** How many filter-area fields filter something (shown on the collapsed strip). */
@@ -3459,6 +3578,46 @@ declare function countFilteredFields(fields: readonly {
3459
3578
  labelFilter?: unknown;
3460
3579
  }[]): number;
3461
3580
 
3581
+ /** The narrowest and the widest a column is made, in Excel's character units. */
3582
+ declare const EXCEL_MIN_COLUMN_WIDTH = 8;
3583
+ declare const EXCEL_MAX_COLUMN_WIDTH = 60;
3584
+ /** How many rows are measured. */
3585
+ declare const EXCEL_WIDTH_SAMPLE_ROWS = 1000;
3586
+ /** The width of a text in character units: full-width letters count twice. */
3587
+ declare function excelTextLength(text: string): number;
3588
+ /**
3589
+ * How long a value looks once Excel has formatted it, given the cell's number
3590
+ * format when known. A number is measured with the format's own decimals
3591
+ * (grouped, two by default), a date by its format (`dd/mm/yyyy` by default,
3592
+ * at least 18 when the format shows the time). A custom format is otherwise
3593
+ * not parsed, which can be a few characters off and is why the result carries
3594
+ * padding. A text is measured by its FIRST line: a wrapped cell shows that much
3595
+ * per row.
3596
+ */
3597
+ declare function excelValueLength(value: unknown, numFmt?: string): number;
3598
+ /** Measures columns row by row; `widths()` gives the Excel width of each. */
3599
+ declare class ExcelWidthTracker {
3600
+ private readonly headers;
3601
+ private readonly numFmts;
3602
+ private readonly longest;
3603
+ private seen;
3604
+ /** `numFmts[i]` is column i's Excel number format, when the writer sets one. */
3605
+ constructor(headers: readonly string[], numFmts?: readonly (string | undefined)[]);
3606
+ /** Feed one data row; rows past the sample are ignored. */
3607
+ add(values: readonly unknown[]): void;
3608
+ widths(): number[];
3609
+ }
3610
+
3611
+ /** What `chipMaxWidth: 'auto'` stops at. */
3612
+ declare const CHIP_AUTO_MAX_WIDTH = 280;
3613
+ interface PivotChipView {
3614
+ /** Classes (space separated) to add to the pivot's root, or '' for none. */
3615
+ className: string;
3616
+ /** CSS variables for the pivot's root; empty when everything is at its default. */
3617
+ style: Record<string, string>;
3618
+ }
3619
+ declare function pivotChipView(layout: Pick<PivotLayoutState, 'showSummaryBadge' | 'chipMaxWidth' | 'showChipRemove' | 'scrollbarStyle'>): PivotChipView;
3620
+
3462
3621
  /** What the helper needs of the controller. */
3463
3622
  interface FocusKeeperController {
3464
3623
  subscribe(listener: () => void): () => void;
@@ -3479,6 +3638,13 @@ interface PopupPlacement {
3479
3638
  }
3480
3639
  /** The part of the layout viewport the user sees, in `position: fixed` coordinates. */
3481
3640
  declare function popupViewport(win?: Window): PopupViewport;
3641
+ /**
3642
+ * How many times the page's CSS `zoom` paints this element's lengths (B.71). A
3643
+ * zoomed subtree multiplies every length in it, `vw` and `vh` too, so a window
3644
+ * sized in viewport pixels runs off the screen. Painted width / layout width of
3645
+ * a box with no transform of its own; 1 when there is none (or no layout).
3646
+ */
3647
+ declare function cssZoomOf(el: Element | null | undefined): number;
3482
3648
  /**
3483
3649
  * `anchor` is where the popup would start (its top-left in LTR). `size` its
3484
3650
  * natural size (offsetWidth/offsetHeight: a transform does not count). `altX`
@@ -3632,6 +3798,8 @@ interface AdvancedExportRequest {
3632
3798
  onProgress?: (percent: number) => void;
3633
3799
  /** Asked before the plain-file fallback (B.23); `false` cancels. */
3634
3800
  onLargeExport?: ExportOptions['onLargeExport'];
3801
+ /** The grid's own dictionary (B.68): the words of the file come from it, over the built-in ones of `locale`. */
3802
+ dictionary?: Partial<PivotDictionary>;
3635
3803
  }
3636
3804
  type AdvancedExporter = (req: AdvancedExportRequest) => Promise<void>;
3637
3805
  /** Called by the Enterprise package to enable Excel/PDF export. */
@@ -3904,4 +4072,4 @@ declare function rollupInMemory<TRow>(rows: readonly TRow[], request: PivotServe
3904
4072
  /** Every value of a field in rows held in memory — the reference `loadFieldValues`. */
3905
4073
  declare function fieldValuesInMemory<TRow>(rows: readonly TRow[], field: PivotServerField): unknown[];
3906
4074
 
3907
- export { type AdvancedExportRequest, type AdvancedExporter, CHART_LEGEND_POSITIONS, CHART_PALETTE_NAMES, type CalculatedFieldTextKey, type CellClickEvent, type CellPath, type CellPreparedEvent, 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 CustomSummaryOptions, DEFAULT_DATA_COLUMN_WIDTH, DEFAULT_ROW_HEADER_WIDTH, type DateFormatContext, DateFormatter, type DateGranularity, type DimensionFieldInfo, type DrillDownTextKey, type DropIntent, type ExportFormat, type ExportOptions, ExportStreamController, type ExportingEvent, FILTER_AREA_PADDING, FILTER_AREA_ROW_GAP, 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 LargeExportInfo, MAX_C, type MarkTone, PIVOT_AI_FEATURES, PIVOT_LICENSE_TEXT, PIVOT_STATE_VERSION, type PersistedPivotFilters, 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 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 PivotSummaryColumn, type PivotSummaryDisplayMode, type PivotSummaryTable, type PivotSummaryTableOptions, type PivotSummaryType, type PivotTheme, type PivotToolbarConfig, type PivotTransactionResult, type PivotValue, type PivotValueFilter, type PopupPlacement, type PopupViewport, type PrefilterConditionSpec, type PrefilterGroupSpec, 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 ValueRange, type WaterfallStep, type WorkerComputeRequest, type WorkerFilterRequest, type WorkerFilterSpec, type WorkerInitRequest, type WorkerResponse, type WorkerTransactionRequest, type XYPair, type XYPairInput, applyPivotAiState, ar, attachFloatingFrame, bindPivotScrollMemory, buildCellLookup, buildColPathsList, buildColumnHeaders, buildEngineResult, buildPivotAOA, buildRowLabelCells, calculatedFieldText, cellHash, cellHashCol, cellHashRow, centredFrame, chartCategoryKey, chartKeyText, chartPalette, chartWindowFrame, clearFormatCache, collatorFor, columnSlotOptions, compileSafeFormula, computeFieldRanges, computePivotMatrixAsync, computeRowHeaderWidths, computedFields, conditionRuleToExcelStyle, countFilteredFields, cssColorToRgb, de, defaultPivotLayout, destroyEngineWorker, diffPivotChartState, drillDownText, en, es, escapeXmlText, executePostAggregationPhase, executeSummaryDisplayModesPhase, exportPivotData, extractGroupValue, fieldNeedsRange, fieldValuesInMemory, filterAreaMaxHeight, filterAreaRows, filterEmptySummaryTree, filterPivotEngineAsync, filterRecords, filterRecordsAsync, flattenExportRows, flattenRowTree, flattenRowTreeTabular, flattenRowTreeTree, formatCellValue, formatCellValueCached, formatDimensionValue, formatHeaderValue, fr, funnelMarks, funnelStages, getAdvancedExporter, getCellVal, getFieldDistinctValues, getPivotAiSchema, getPivotAiState, getRecordsForCells, getSummaryTable, getVisibleColLeaves, getVisibleColSlots, getVisibleLeafCount, getVisibleMaxDepth, grandTotalShown, headerFilterShown, headerFilterWrite, heatColor, heatTextColor, heatmapMarks, histogramBins, histogramMarks, initPivotEngineAsync, intlFormatToExcelNumFmt, invertRowHeaderWidth, it, ja, keepFieldGroups, keepFocusAcross, ko, logAxisTicks, mergePersistedState, nextChartWindowId, nextLiveText, pairSeriesForXY, parseColor, pathKey, pathParts, percentAxisTicks, percentModeExcelNumFmt, percentModeText, pivotChangeAnnouncement, pivotDensityClass, pivotLicenseText, pivotRowHeight, pivotRowTrend, pivotSchemeTheme, pivotServerSource, placePopup, popupViewport, pt, rangeBarMarks, rangeRatio, readChartFormat, readFrameRect, readPivotChartState, reconfigurePivotEngineAsync, registerAdvancedExporter, resolveChartPalette, resolveChartStyle, resolveColPath, resolveColumnWidthDefaults, resolveConditionalVisual, rollupInMemory, ru, scaleColor, serverRequestFor, setActiveEngineGrid, shownFields, sortPivotTree, splitPersistedState, squarify, stackSeries, subtotalFor, summaryTypeLabel, sunburstMarks, testSafeFormula, tr, treemapMarks, trendColumnPaths, trendShape, waterfallDomain, waterfallMarks, waterfallSteps, windowStartFor, zhCN };
4075
+ export { type AdvancedExportRequest, type AdvancedExporter, CHART_LEGEND_POSITIONS, CHART_PALETTE_NAMES, CHIP_AUTO_MAX_WIDTH, COLLAPSED_PREFIX, type CalculatedFieldTextKey, type CellClickEvent, type CellPath, type CellPreparedEvent, 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 CustomSummaryOptions, DEFAULT_DATA_COLUMN_WIDTH, DEFAULT_ROW_HEADER_WIDTH, type DateFormatContext, DateFormatter, type DateGranularity, type DimensionFieldInfo, type DrillDownTextKey, type DropIntent, EXCEL_MAX_COLUMN_WIDTH, EXCEL_MIN_COLUMN_WIDTH, EXCEL_WIDTH_SAMPLE_ROWS, ExcelWidthTracker, type ExportFormat, type ExportOptions, ExportStreamController, type ExportingEvent, FILTER_AREA_PADDING, FILTER_AREA_ROW_GAP, 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 LargeExportInfo, MAX_C, type MarkTone, PIVOT_AI_FEATURES, PIVOT_LICENSE_TEXT, PIVOT_STATE_VERSION, type PersistedPivotFilters, 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 PivotChipView, 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 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 PivotSummaryColumn, type PivotSummaryDisplayMode, type PivotSummaryTable, type PivotSummaryTableOptions, type PivotSummaryType, type PivotTheme, type PivotToolbarConfig, type PivotTransactionResult, type PivotValue, type PivotValueFilter, type PopupPlacement, type PopupViewport, type PrefilterConditionSpec, type PrefilterGroupSpec, 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 ValueRange, type WaterfallStep, type WorkerComputeRequest, type WorkerFilterRequest, type WorkerFilterSpec, type WorkerInitRequest, type WorkerResponse, type WorkerTransactionRequest, type XYPair, type XYPairInput, applyPivotAiState, ar, attachFloatingFrame, bindPivotScrollMemory, buildCellLookup, buildColPathsList, buildColumnHeaders, buildEngineResult, buildPivotAOA, buildRowLabelCells, calculatedFieldText, cellHash, cellHashCol, cellHashRow, centredFrame, chartCategoryKey, chartKeyText, chartPalette, chartWindowFrame, clearFormatCache, collapsedKey, collapsedKeyPath, collatorFor, columnSlotOptions, compileSafeFormula, computeFieldRanges, computePivotMatrixAsync, computeRowHeaderWidths, computedFields, conditionRuleToExcelStyle, countFilteredFields, cssColorToRgb, cssZoomOf, de, defaultPivotLayout, destroyEngineWorker, diffPivotChartState, drillDownText, en, es, escapeXmlText, excelTextLength, excelValueLength, executePostAggregationPhase, executeSummaryDisplayModesPhase, exportPivotData, extractGroupValue, fieldNeedsRange, fieldValuesInMemory, filterAreaMaxHeight, filterAreaRows, filterEmptySummaryTree, filterPivotEngineAsync, filterRecords, filterRecordsAsync, flattenExportRows, flattenRowTree, flattenRowTreeTabular, flattenRowTreeTree, formatCellValue, formatCellValueCached, formatDimensionValue, formatHeaderValue, fr, funnelMarks, funnelStages, getAdvancedExporter, getCellVal, getFieldDistinctValues, getPivotAiSchema, getPivotAiState, getRecordsForCells, getSummaryTable, getVisibleColLeaves, getVisibleColSlots, getVisibleLeafCount, getVisibleMaxDepth, grandTotalHeaderShown, grandTotalShown, headerFilterShown, headerFilterWrite, heatColor, heatTextColor, heatmapMarks, histogramBins, histogramMarks, initPivotEngineAsync, intlFormatToExcelNumFmt, invertRowHeaderWidth, isCollapsedKey, isKeyExpanded, it, ja, keepFieldGroups, keepFocusAcross, ko, logAxisTicks, mergePersistedState, nextChartWindowId, nextLiveText, pairSeriesForXY, parseColor, pathKey, pathParts, percentAxisTicks, percentModeExcelNumFmt, percentModeText, pivotChangeAnnouncement, pivotChipView, pivotDensityClass, pivotLicenseText, pivotRowHeight, pivotRowTrend, pivotSchemeTheme, pivotServerSource, placePopup, popupViewport, pt, rangeBarMarks, rangeRatio, readChartFormat, readFrameRect, readPivotChartState, reconfigurePivotEngineAsync, registerAdvancedExporter, resolveChartPalette, resolveChartStyle, resolveColPath, resolveColumnWidthDefaults, resolveConditionalVisual, rollupInMemory, rowHeadersUnpinned, ru, scaleColor, serverRequestFor, setActiveEngineGrid, setKeysIn, shownFields, sortPivotTree, splitPersistedState, squarify, stackSeries, subtotalFor, summaryTypeLabel, sunburstMarks, testSafeFormula, toggleKeyIn, tr, treemapMarks, trendColumnPaths, trendShape, waterfallDomain, waterfallMarks, waterfallSteps, windowStartFor, withoutCollapsed, zhCN };