@odoo/o-spreadsheet 19.1.0-alpha.8 → 19.1.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.
@@ -1,3 +1,4 @@
1
+ import * as ChartJs from 'chart.js';
1
2
  import { ChartConfiguration, CoreChartOptions, Scriptable, Color as Color$1, ScriptableContext, FontSpec } from 'chart.js';
2
3
 
3
4
  /**
@@ -48,7 +49,6 @@ interface CellAttributes {
48
49
  * Raw cell content
49
50
  */
50
51
  readonly content: string;
51
- readonly style?: Style;
52
52
  readonly format?: Format;
53
53
  }
54
54
  interface LiteralCell extends CellAttributes {
@@ -121,7 +121,7 @@ declare enum CellValueType {
121
121
  * formulas.
122
122
  */
123
123
  declare const POSTFIX_UNARY_OPERATORS: string[];
124
- type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "SYMBOL" | "SPACE" | "DEBUGGER" | "ARG_SEPARATOR" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
124
+ type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "SYMBOL" | "SPACE" | "DEBUGGER" | "ARG_SEPARATOR" | "ARRAY_ROW_SEPARATOR" | "LEFT_PAREN" | "RIGHT_PAREN" | "LEFT_BRACE" | "RIGHT_BRACE" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
125
125
  interface Token {
126
126
  readonly type: TokenType;
127
127
  readonly value: string;
@@ -135,8 +135,8 @@ interface BarChartDefinition extends CommonChartDefinition {
135
135
  readonly zoomable?: boolean;
136
136
  }
137
137
  type BarChartRuntime = {
138
- chartJsConfig: ChartConfiguration;
139
- masterChartConfig?: ChartConfiguration;
138
+ chartJsConfig: ChartConfiguration<"bar" | "line">;
139
+ masterChartConfig?: ChartConfiguration<"bar">;
140
140
  background: Color;
141
141
  };
142
142
 
@@ -424,7 +424,7 @@ interface CoreState$1 {
424
424
  * cell and sheet content.
425
425
  */
426
426
  declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1 {
427
- static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellStyle", "getCellById", "getFormulaString", "getFormulaMovedInSheet"];
427
+ static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellById", "getFormulaString", "getFormulaMovedInSheet"];
428
428
  readonly nextId = 1;
429
429
  readonly cells: {
430
430
  [sheetId: string]: {
@@ -448,14 +448,13 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
448
448
  */
449
449
  private clearCells;
450
450
  /**
451
- * Copy the style of the reference column/row to the new columns/rows.
451
+ * Copy the format of the reference column/row to the new columns/rows.
452
452
  */
453
453
  private handleAddColumnsRows;
454
454
  import(data: WorkbookData): void;
455
455
  export(data: WorkbookData): void;
456
- importCell(sheetId: UID, content?: string, style?: Style, format?: Format): Cell;
456
+ importCell(sheetId: UID, content?: string, format?: Format): Cell;
457
457
  exportForExcel(data: ExcelWorkbookData): void;
458
- private removeDefaultStyleValues;
459
458
  getCells(sheetId: UID): Record<UID, Cell>;
460
459
  /**
461
460
  * get a cell by ID. Used in evaluation when evaluating an async cell, we need to be able to find it back after
@@ -465,7 +464,6 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
465
464
  getFormulaString(sheetId: UID, tokens: Token[], dependencies: Range[], useBoundedReference?: boolean): string;
466
465
  getTranslatedCellFormula(sheetId: UID, offsetX: number, offsetY: number, tokens: Token[]): string;
467
466
  getFormulaMovedInSheet(originSheetId: UID, targetSheetId: UID, tokens: Token[]): string;
468
- getCellStyle(position: CellPosition): Style;
469
467
  /**
470
468
  * Converts a zone to a XC coordinate system
471
469
  *
@@ -483,17 +481,16 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
483
481
  * {top:1,left:0,right:1,bottom:3} ==> A1:A5
484
482
  */
485
483
  zoneToXC(sheetId: UID, zone: Zone, fixedParts?: RangePart[]): string;
486
- private setStyle;
487
484
  /**
488
- * Copy the style of one column to other columns.
485
+ * Copy the format of one column to other columns.
489
486
  */
490
- private copyColumnStyle;
487
+ private copyColumnFormat;
491
488
  /**
492
- * Copy the style of one row to other rows.
489
+ * Copy the format of one row to other rows.
493
490
  */
494
- private copyRowStyle;
491
+ private copyRowFormat;
495
492
  /**
496
- * gets the currently used style/border of a cell based on it's coordinates
493
+ * gets the currently used style and format of a cell based on it's coordinates
497
494
  */
498
495
  private getFormat;
499
496
  private getNextUid;
@@ -648,6 +645,7 @@ interface CellIsRule extends SingleColorRule {
648
645
  type: "CellIsRule";
649
646
  operator: ConditionalFormattingOperatorValues;
650
647
  values: string[];
648
+ dateValue?: DateCriterionValue;
651
649
  }
652
650
  type ThresholdType = "value" | "number" | "percentage" | "percentile" | "formula";
653
651
  type ColorScaleThreshold = {
@@ -690,7 +688,8 @@ interface IconSetRule {
690
688
  upperInflectionPoint: IconThreshold;
691
689
  lowerInflectionPoint: IconThreshold;
692
690
  }
693
- type ConditionalFormattingOperatorValues = "beginsWithText" | "isBetween" | "containsText" | "isEmpty" | "isNotEmpty" | "endsWithText" | "isEqual" | "isGreaterThan" | "isGreaterOrEqualTo" | "isLessThan" | "isLessOrEqualTo" | "isNotBetween" | "notContainsText" | "isNotEqual" | "customFormula";
691
+ declare const cfOperators: readonly ["containsText", "notContainsText", "isGreaterThan", "isGreaterOrEqualTo", "isLessThan", "isLessOrEqualTo", "isBetween", "isNotBetween", "beginsWithText", "endsWithText", "isNotEmpty", "isEmpty", "isNotEqual", "isEqual", "customFormula", "dateIs", "dateIsBefore", "dateIsAfter", "dateIsOnOrBefore", "dateIsOnOrAfter"];
692
+ type ConditionalFormattingOperatorValues = (typeof cfOperators)[number];
694
693
 
695
694
  interface ConditionalFormatState {
696
695
  readonly cfRules: {
@@ -1194,7 +1193,7 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
1194
1193
  }
1195
1194
 
1196
1195
  type Aggregator = "array_agg" | "count" | "count_distinct" | "bool_and" | "bool_or" | "max" | "min" | "avg" | "sum";
1197
- type Granularity = "day" | "week" | "month" | "quarter" | "year" | "second_number" | "minute_number" | "hour_number" | "day_of_week" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number";
1196
+ type Granularity = "day" | "month" | "year" | "second_number" | "minute_number" | "hour_number" | "day_of_week" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number";
1198
1197
  interface PivotCoreDimension {
1199
1198
  fieldName: string;
1200
1199
  order?: SortDirection;
@@ -1412,6 +1411,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
1412
1411
  declare class RangeAdapter$1 implements CommandHandler<CoreCommand> {
1413
1412
  private getters;
1414
1413
  private providers;
1414
+ private isAdaptingRanges;
1415
1415
  constructor(getters: CoreGetters);
1416
1416
  static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
1417
1417
  allowDispatch(cmd: CoreCommand): CommandResult;
@@ -1505,6 +1505,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
1505
1505
  readonly sheets: Record<UID, Sheet | undefined>;
1506
1506
  readonly cellPosition: Record<UID, CellPosition | undefined>;
1507
1507
  allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
1508
+ beforeHandle(cmd: CoreCommand): void;
1508
1509
  handle(cmd: CoreCommand): void;
1509
1510
  import(data: WorkbookData): void;
1510
1511
  private exportSheets;
@@ -1638,6 +1639,37 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
1638
1639
  private checkZonesAreInSheet;
1639
1640
  }
1640
1641
 
1642
+ type ZoneStyle = {
1643
+ zone: UnboundedZone;
1644
+ style: Style;
1645
+ };
1646
+ interface StylePluginState {
1647
+ readonly styles: Record<UID, ZoneStyle[] | undefined>;
1648
+ }
1649
+ declare class StylePlugin extends CorePlugin<StylePluginState> implements StylePluginState {
1650
+ static getters: readonly ["getCellStyle", "getCellStyleInZone", "getZoneStyles", "getStyleColors"];
1651
+ readonly styles: Record<UID, ZoneStyle[] | undefined>;
1652
+ allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
1653
+ handle(cmd: CoreCommand): void;
1654
+ adaptRanges(applyChange: ApplyRangeChange, sheetId: UID): void;
1655
+ private handleAddColumnn;
1656
+ private handleAddRows;
1657
+ private styleIsDefault;
1658
+ private removeDefaultStyleValues;
1659
+ private onMerge;
1660
+ private setStyles;
1661
+ private setStyle;
1662
+ private clearStyle;
1663
+ getCellStyle(cellPosition: CellPosition): Style | undefined;
1664
+ getCellStyleInZone(sheetId: UID, zone: Zone): PositionMap<Style>;
1665
+ getZoneStyles(sheetId: UID, zone: Zone): ZoneStyle[];
1666
+ getStyleColors(sheetId: UID): Color[];
1667
+ import(data: WorkbookData): void;
1668
+ export(data: WorkbookData): void;
1669
+ exportForExcel(data: ExcelWorkbookData): void;
1670
+ private checkUselessSetFormatting;
1671
+ }
1672
+
1641
1673
  interface TableState {
1642
1674
  tables: Record<UID, Record<TableId, CoreTable | undefined>>;
1643
1675
  nextTableId: number;
@@ -1747,7 +1779,7 @@ type PluginGetters<Plugin extends {
1747
1779
  getters: readonly string[];
1748
1780
  }> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
1749
1781
  type RangeAdapterGetters = Pick<RangeAdapter$1, GetterNames<typeof RangeAdapter$1>>;
1750
- type CoreGetters = PluginGetters<typeof SheetPlugin> & PluginGetters<typeof HeaderSizePlugin> & PluginGetters<typeof HeaderVisibilityPlugin> & PluginGetters<typeof CellPlugin> & PluginGetters<typeof MergePlugin> & PluginGetters<typeof BordersPlugin> & PluginGetters<typeof ChartPlugin> & PluginGetters<typeof ImagePlugin> & PluginGetters<typeof CarouselPlugin> & PluginGetters<typeof FigurePlugin> & RangeAdapterGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof TablePlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin> & PluginGetters<typeof PivotCorePlugin>;
1782
+ type CoreGetters = PluginGetters<typeof SheetPlugin> & PluginGetters<typeof HeaderSizePlugin> & PluginGetters<typeof HeaderVisibilityPlugin> & PluginGetters<typeof CellPlugin> & PluginGetters<typeof StylePlugin> & PluginGetters<typeof MergePlugin> & PluginGetters<typeof BordersPlugin> & PluginGetters<typeof ChartPlugin> & PluginGetters<typeof ImagePlugin> & PluginGetters<typeof CarouselPlugin> & PluginGetters<typeof FigurePlugin> & RangeAdapterGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof TablePlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin> & PluginGetters<typeof PivotCorePlugin>;
1751
1783
 
1752
1784
  type VerticalAxisPosition = "left" | "right";
1753
1785
  type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
@@ -1764,29 +1796,17 @@ interface CommonChartDefinition {
1764
1796
  readonly humanize?: boolean;
1765
1797
  }
1766
1798
 
1767
- interface GeoChartDefinition {
1799
+ interface GeoChartDefinition extends CommonChartDefinition {
1768
1800
  readonly type: "geo";
1769
- readonly dataSets: CustomizedDataSet[];
1770
- readonly dataSetsHaveTitle: boolean;
1771
- readonly labelRange?: string;
1772
- readonly title: TitleDesign;
1773
- readonly background?: Color;
1774
- readonly legendPosition: LegendPosition;
1775
- readonly colorScale?: GeoChartColorScale;
1801
+ readonly colorScale?: ChartColorScale;
1776
1802
  readonly missingValueColor?: Color;
1777
1803
  readonly region?: string;
1778
- readonly humanize?: boolean;
1804
+ readonly showColorBar?: boolean;
1779
1805
  }
1780
1806
  type GeoChartRuntime = {
1781
1807
  chartJsConfig: ChartConfiguration;
1782
1808
  background: Color;
1783
1809
  };
1784
- interface GeoChartCustomColorScale {
1785
- minColor: Color;
1786
- midColor?: Color;
1787
- maxColor: Color;
1788
- }
1789
- type GeoChartColorScale = GeoChartCustomColorScale | "blues" | "cividis" | "greens" | "greys" | "oranges" | "purples" | "rainbow" | "reds" | "viridis";
1790
1810
  type GeoChartProjection = "azimuthalEqualArea" | "azimuthalEquidistant" | "gnomonic" | "orthographic" | "stereographic" | "equalEarth" | "albers" | "albersUsa" | "conicConformal" | "conicEqualArea" | "conicEquidistant" | "equirectangular" | "mercator" | "transverseMercator" | "naturalEarth1";
1791
1811
  interface GeoChartRegion {
1792
1812
  id: string;
@@ -2544,7 +2564,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
2544
2564
  }
2545
2565
 
2546
2566
  declare class EvaluationPlugin extends CoreViewPlugin {
2547
- static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
2567
+ static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositionInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
2548
2568
  private shouldRebuildDependenciesGraph;
2549
2569
  private evaluator;
2550
2570
  private positionsToUpdate;
@@ -2571,6 +2591,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
2571
2591
  getEvaluatedCells(sheetId: UID): EvaluatedCell[];
2572
2592
  getEvaluatedCellsPositions(sheetId: UID): CellPosition[];
2573
2593
  getEvaluatedCellsInZone(sheetId: UID, zone: Zone): EvaluatedCell[];
2594
+ getEvaluatedCellsPositionInZone(sheetId: UID, zone: Zone): [CellPosition, EvaluatedCell][];
2574
2595
  /**
2575
2596
  * Return the spread zone the position is part of, if any
2576
2597
  */
@@ -2578,6 +2599,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
2578
2599
  ignoreSpillError: boolean;
2579
2600
  }): Zone | undefined;
2580
2601
  getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
2602
+ isArrayFormulaSpillBlocked(position: CellPosition): boolean;
2581
2603
  /**
2582
2604
  * Check if a zone only contains empty cells
2583
2605
  */
@@ -2781,6 +2803,7 @@ declare class HeaderSizeUIPlugin extends CoreViewPlugin<HeaderSizeState> impleme
2781
2803
  getRowSize(sheetId: UID, row: HeaderIndex): Pixel;
2782
2804
  getMaxAnchorOffset(sheetId: UID, height: Pixel, width: Pixel): AnchorOffset;
2783
2805
  getHeaderSize(sheetId: UID, dimension: Dimension, index: HeaderIndex): Pixel;
2806
+ private updateRowSizeForZoneChange;
2784
2807
  private updateRowSizeForCellChange;
2785
2808
  private initializeSheet;
2786
2809
  /**
@@ -2944,7 +2967,7 @@ interface Pivot<T = PivotRuntimeDefinition> {
2944
2967
  declare class PivotUIPlugin extends CoreViewPlugin {
2945
2968
  static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula"];
2946
2969
  private pivots;
2947
- private unusedPivots?;
2970
+ private unusedPivotsInFormulas?;
2948
2971
  private custom;
2949
2972
  constructor(config: CoreViewPluginConfig);
2950
2973
  beforeHandle(cmd: Command): void;
@@ -2984,7 +3007,7 @@ declare class PivotUIPlugin extends CoreViewPlugin {
2984
3007
  setupPivot(pivotId: UID, { recreate }?: {
2985
3008
  recreate: boolean;
2986
3009
  }): void;
2987
- _getUnusedPivots(): UID[];
3010
+ private _getUnusedPivotsInFormulas;
2988
3011
  }
2989
3012
 
2990
3013
  /**
@@ -3016,7 +3039,7 @@ type SelectionEventOptions = {
3016
3039
  interface SelectionEvent {
3017
3040
  anchor: AnchorZone;
3018
3041
  previousAnchor: AnchorZone;
3019
- mode: "newAnchor" | "overrideSelection" | "updateAnchor";
3042
+ mode: "newAnchor" | "overrideSelection" | "updateAnchor" | "commitSelection";
3020
3043
  options: SelectionEventOptions;
3021
3044
  }
3022
3045
 
@@ -3026,6 +3049,7 @@ type StatefulStream<Event, State> = {
3026
3049
  resetDefaultAnchor: (owner: unknown, state: State) => void;
3027
3050
  resetAnchor: (owner: unknown, state: State) => void;
3028
3051
  observe: (owner: unknown, callbacks: StreamCallbacks<Event>) => void;
3052
+ unobserve: (owner: unknown) => void;
3029
3053
  release: (owner: unknown) => void;
3030
3054
  getBackToDefault(): void;
3031
3055
  };
@@ -3044,6 +3068,7 @@ interface SelectionProcessor {
3044
3068
  selectAll(): DispatchResult;
3045
3069
  loopSelection(): DispatchResult;
3046
3070
  selectTableAroundSelection(): DispatchResult;
3071
+ commitSelection(): DispatchResult;
3047
3072
  isListening(owner: unknown): boolean;
3048
3073
  }
3049
3074
  type SelectionStreamProcessor = SelectionProcessor & StatefulStream<SelectionEvent, AnchorZone>;
@@ -3244,8 +3269,8 @@ declare class CellComputedStylePlugin extends UIPlugin {
3244
3269
  handle(cmd: Command): void;
3245
3270
  getCellComputedBorder(position: CellPosition, precomputeZone?: Zone): Border | null;
3246
3271
  private precomputeCellBorders;
3247
- getCellComputedStyle(position: CellPosition): Style;
3248
- private computeCellStyle;
3272
+ getCellComputedStyle(position: CellPosition, precomputeZone?: Zone): Style;
3273
+ private precomputeCellStyle;
3249
3274
  }
3250
3275
 
3251
3276
  declare class CheckboxTogglePlugin extends UIPlugin {
@@ -3427,11 +3452,12 @@ declare class SubtotalEvaluationPlugin extends UIPlugin {
3427
3452
  }
3428
3453
 
3429
3454
  declare class TableComputedStylePlugin extends UIPlugin {
3430
- static getters: readonly ["getCellTableStyle", "getCellTableBorder", "getCellTableBorderZone"];
3455
+ static getters: readonly ["getCellTableStyle", "getCellTableBorder", "getCellTableBorderZone", "getCellTableStyleZone"];
3431
3456
  private tableStyles;
3432
3457
  handle(cmd: Command): void;
3433
3458
  finalize(): void;
3434
3459
  getCellTableStyle(position: CellPosition): Style | undefined;
3460
+ getCellTableStyleZone(sheetId: UID, zone: Zone): PositionMap<Style>;
3435
3461
  getCellTableBorder(position: CellPosition): Border | undefined;
3436
3462
  getCellTableBorderZone(sheetId: UID, zone: Zone): PositionMap<Border>;
3437
3463
  private computeTableStyle;
@@ -3455,12 +3481,16 @@ declare class UIOptionsPlugin extends UIPlugin {
3455
3481
  }
3456
3482
 
3457
3483
  declare class SheetUIPlugin extends UIPlugin {
3458
- static getters: readonly ["getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getContiguousZone", "computeTextYCoordinate"];
3484
+ static getters: readonly ["getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getMultilineTextSize", "getContiguousZone", "computeTextYCoordinate"];
3459
3485
  private ctx;
3460
3486
  allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
3461
3487
  handle(cmd: Command): void;
3462
3488
  getCellWidth(position: CellPosition): number;
3463
3489
  getTextWidth(text: string, style: Style): Pixel;
3490
+ getMultilineTextSize(text: string[], style: Style): {
3491
+ width: number;
3492
+ height: number;
3493
+ };
3464
3494
  getCellText(position: CellPosition, args?: {
3465
3495
  showFormula?: boolean;
3466
3496
  availableWidth?: number;
@@ -3515,6 +3545,7 @@ declare class CarouselUIPlugin extends UIPlugin {
3515
3545
  private fixWrongCarouselState;
3516
3546
  private addNewChartToCarousel;
3517
3547
  private addFigureChartToCarousel;
3548
+ private duplicateCarouselChart;
3518
3549
  private getCarouselItemId;
3519
3550
  }
3520
3551
 
@@ -3863,7 +3894,7 @@ declare class InternalViewport {
3863
3894
  *
3864
3895
  */
3865
3896
  declare class SheetViewPlugin extends UIPlugin {
3866
- static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPixelPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport", "getAllActiveViewportsZonesAndRect", "getRect", "getFigureUI", "getPositionAnchorOffset", "getGridOffset"];
3897
+ static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleRectWithZoom", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPixelPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport", "getAllActiveViewportsZonesAndRect", "getRect", "getFigureUI", "getPositionAnchorOffset", "getGridOffset", "getViewportZoomLevel", "getScrollBarWidth", "getMaximumSheetOffset"];
3867
3898
  private viewports;
3868
3899
  /**
3869
3900
  * The viewport dimensions are usually set by one of the components
@@ -3875,6 +3906,7 @@ declare class SheetViewPlugin extends UIPlugin {
3875
3906
  private sheetViewHeight;
3876
3907
  private gridOffsetX;
3877
3908
  private gridOffsetY;
3909
+ private zoomLevel;
3878
3910
  private sheetsWithDirtyViewports;
3879
3911
  private shouldAdjustViewports;
3880
3912
  allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
@@ -3914,18 +3946,26 @@ declare class SheetViewPlugin extends UIPlugin {
3914
3946
  * Return the main viewport maximum size relative to the client size.
3915
3947
  */
3916
3948
  getMainViewportRect(): Rect;
3917
- private getMaximumSheetOffset;
3949
+ getMaximumSheetOffset(): {
3950
+ maxOffsetX: Pixel;
3951
+ maxOffsetY: Pixel;
3952
+ };
3918
3953
  getColRowOffsetInViewport(dimension: Dimension, referenceHeaderIndex: HeaderIndex, targetHeaderIndex: HeaderIndex): Pixel;
3919
3954
  /**
3920
3955
  * Check if a given position is visible in the viewport.
3921
3956
  */
3922
3957
  isVisibleInViewport({ sheetId, col, row }: CellPosition): boolean;
3958
+ getScrollBarWidth(): Pixel;
3923
3959
  getEdgeScrollCol(x: number, previousX: number, startingX: number): EdgeScrollInfo;
3924
3960
  getEdgeScrollRow(y: number, previousY: number, startingY: number): EdgeScrollInfo;
3925
3961
  /**
3926
3962
  * Computes the coordinates and size to draw the zone on the canvas
3927
3963
  */
3928
3964
  getVisibleRect(zone: Zone): Rect;
3965
+ /**
3966
+ * Computes the coordinates and size to draw the zone on the canvas after it has been zoomed
3967
+ */
3968
+ getVisibleRectWithZoom(zone: Zone): Rect;
3929
3969
  /**
3930
3970
  * Computes the coordinates and size to draw the zone without taking the grid offset into account
3931
3971
  */
@@ -3960,6 +4000,7 @@ declare class SheetViewPlugin extends UIPlugin {
3960
4000
  zone: Zone;
3961
4001
  rect: Rect;
3962
4002
  }[];
4003
+ getViewportZoomLevel(): number;
3963
4004
  private ensureMainViewportExist;
3964
4005
  private getSubViewports;
3965
4006
  private checkPositiveDimension;
@@ -4107,8 +4148,17 @@ declare function isObjectEmptyRecursive<T extends object>(argument: T | undefine
4107
4148
  /**
4108
4149
  * Returns a function, that, as long as it continues to be invoked, will not
4109
4150
  * be triggered. The function will be called after it stops being called for
4110
- * N milliseconds. If `immediate` is passed, trigger the function on the
4111
- * leading edge, instead of the trailing.
4151
+ * N milliseconds. If `immediate` is passed, the function is called is called
4152
+ * immediately on the first call and the debouncing is triggered starting the second
4153
+ * call in the defined time window.
4154
+ *
4155
+ * Example:
4156
+ * debouncedFunction = debounce(() => console.log('Hello!'), 250);
4157
+ * debouncedFunction(); debouncedFunction(); // Will log 'Hello!' after 250ms
4158
+ *
4159
+ * debouncedFunction = debounce(() => console.log('Hello!'), 250, true);
4160
+ * debouncedFunction(); debouncedFunction(); // Will log 'Hello!' and relog it after 250ms
4161
+ *
4112
4162
  *
4113
4163
  * Also decorate the argument function with two methods: stopDebounce and isDebouncePending.
4114
4164
  *
@@ -4445,7 +4495,7 @@ declare class Model extends EventBus<any> implements CommandDispatcher {
4445
4495
  drawLayer(context: GridRenderingContext, layer: LayerName): void;
4446
4496
  /**
4447
4497
  * As the name of this method strongly implies, it is useful when we need to
4448
- * export date out of the model.
4498
+ * export data out of the model.
4449
4499
  */
4450
4500
  exportData(): WorkbookData;
4451
4501
  updateMode(mode: Mode): void;
@@ -4558,6 +4608,8 @@ type Rect = DOMCoordinates & DOMDimension;
4558
4608
  interface BoxTextContent {
4559
4609
  textLines: string[];
4560
4610
  width: Pixel;
4611
+ textHeight: Pixel;
4612
+ textWidth: Pixel;
4561
4613
  align: Align;
4562
4614
  fontSizePx: number;
4563
4615
  x: Pixel;
@@ -4707,6 +4759,16 @@ interface XLSXExport {
4707
4759
  */
4708
4760
  type XlsxHexColor = string & Alias;
4709
4761
 
4762
+ declare const CALENDAR_CHART_GRANULARITIES: ("year" | "second_number" | "minute_number" | "hour_number" | "day_of_week" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number")[];
4763
+ type CalendarChartGranularity = (typeof CALENDAR_CHART_GRANULARITIES)[number];
4764
+ interface CalendarChartDefinition extends CommonChartDefinition {
4765
+ readonly type: "calendar";
4766
+ readonly horizontalGroupBy: CalendarChartGranularity;
4767
+ readonly verticalGroupBy: CalendarChartGranularity;
4768
+ readonly colorScale?: ChartColorScale;
4769
+ readonly missingValueColor?: Color;
4770
+ }
4771
+
4710
4772
  interface ComboChartDefinition extends CommonChartDefinition {
4711
4773
  readonly dataSets: ComboChartDataSet[];
4712
4774
  readonly type: "combo";
@@ -4797,8 +4859,8 @@ interface LineChartDefinition extends CommonChartDefinition {
4797
4859
  readonly zoomable?: boolean;
4798
4860
  }
4799
4861
  type LineChartRuntime = {
4800
- chartJsConfig: ChartConfiguration;
4801
- masterChartConfig?: ChartConfiguration;
4862
+ chartJsConfig: ChartConfiguration<"line">;
4863
+ masterChartConfig?: ChartConfiguration<"line">;
4802
4864
  background: Color;
4803
4865
  };
4804
4866
 
@@ -4814,7 +4876,7 @@ type PieChartRuntime = {
4814
4876
  background: Color;
4815
4877
  };
4816
4878
 
4817
- interface PyramidChartDefinition extends Omit<BarChartDefinition, "type"> {
4879
+ interface PyramidChartDefinition extends Omit<BarChartDefinition, "type" | "zoomable"> {
4818
4880
  readonly type: "pyramid";
4819
4881
  }
4820
4882
  type PyramidChartRuntime = {
@@ -5061,9 +5123,9 @@ type WaterfallChartRuntime = {
5061
5123
  background: Color;
5062
5124
  };
5063
5125
 
5064
- declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter", "combo", "waterfall", "pyramid", "radar", "geo", "funnel", "sunburst", "treemap"];
5126
+ declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter", "combo", "waterfall", "pyramid", "radar", "geo", "funnel", "sunburst", "treemap", "calendar"];
5065
5127
  type ChartType = (typeof CHART_TYPES)[number];
5066
- type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition | ComboChartDefinition | WaterfallChartDefinition | PyramidChartDefinition | RadarChartDefinition | GeoChartDefinition | FunnelChartDefinition | SunburstChartDefinition | TreeMapChartDefinition;
5128
+ type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition | ComboChartDefinition | WaterfallChartDefinition | PyramidChartDefinition | RadarChartDefinition | GeoChartDefinition | FunnelChartDefinition | SunburstChartDefinition | TreeMapChartDefinition | CalendarChartDefinition;
5067
5129
  type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | ComboChartRuntime | ScatterChartRuntime | WaterfallChartRuntime | PyramidChartRuntime | RadarChartRuntime | GeoChartRuntime | FunnelChartRuntime | SunburstChartRuntime | TreeMapChartRuntime;
5068
5130
  type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime | GaugeChartRuntime;
5069
5131
  interface DatasetDesign {
@@ -5182,6 +5244,11 @@ interface ChartCreationContext {
5182
5244
  readonly zoomable?: boolean;
5183
5245
  readonly humanize?: boolean;
5184
5246
  }
5247
+ interface ChartColorScale {
5248
+ minColor: Color;
5249
+ midColor?: Color;
5250
+ maxColor: Color;
5251
+ }
5185
5252
 
5186
5253
  /**
5187
5254
  * There are two kinds of commands: CoreCommands and LocalCommands
@@ -5429,6 +5496,12 @@ interface AddFigureChartToCarouselCommand extends SheetDependentCommand {
5429
5496
  carouselFigureId: UID;
5430
5497
  chartFigureId: UID;
5431
5498
  }
5499
+ interface DuplicateCarouselChartCommand extends SheetDependentCommand {
5500
+ type: "DUPLICATE_CAROUSEL_CHART";
5501
+ carouselId: UID;
5502
+ chartId: UID;
5503
+ duplicatedChartId: UID;
5504
+ }
5432
5505
  interface UpdateCarouselActiveItemCommand extends SheetDependentCommand {
5433
5506
  type: "UPDATE_CAROUSEL_ACTIVE_ITEM";
5434
5507
  figureId: UID;
@@ -5750,6 +5823,10 @@ interface SetViewportOffsetCommand {
5750
5823
  offsetX: Pixel;
5751
5824
  offsetY: Pixel;
5752
5825
  }
5826
+ interface SetZoomCommand {
5827
+ type: "SET_ZOOM";
5828
+ zoom: number;
5829
+ }
5753
5830
  /**
5754
5831
  * Shift the viewport down by the viewport height
5755
5832
  */
@@ -5868,7 +5945,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | ClearCellsCom
5868
5945
  | UpdateLocaleCommand
5869
5946
  /** PIVOT */
5870
5947
  | AddPivotCommand | UpdatePivotCommand | InsertPivotCommand | RenamePivotCommand | RemovePivotCommand | DuplicatePivotCommand;
5871
- type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | EvaluateChartsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | SetContextualFormatCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | ResizeTableCommand | RefreshPivotCommand | InsertNewPivotCommand | DuplicatePivotInNewSheetCommand | InsertPivotWithTableCommand | SplitPivotFormulaCommand | PaintFormat | DeleteUnfilteredContentCommand | PivotStartPresenceTracking | PivotStopPresenceTracking | ToggleCheckboxCommand | AddNewChartToCarouselCommand | AddFigureChartToCarouselCommand | UpdateCarouselActiveItemCommand | PopOutChartFromCarouselCommand;
5948
+ type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | EvaluateChartsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | SetContextualFormatCommand | ResizeViewportCommand | SetZoomCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | ResizeTableCommand | RefreshPivotCommand | InsertNewPivotCommand | DuplicatePivotInNewSheetCommand | InsertPivotWithTableCommand | SplitPivotFormulaCommand | PaintFormat | DeleteUnfilteredContentCommand | PivotStartPresenceTracking | PivotStopPresenceTracking | ToggleCheckboxCommand | AddNewChartToCarouselCommand | AddFigureChartToCarouselCommand | DuplicateCarouselChartCommand | UpdateCarouselActiveItemCommand | PopOutChartFromCarouselCommand;
5872
5949
  type Command = CoreCommand | LocalCommand;
5873
5950
  /**
5874
5951
  * Holds the result of a command dispatch.
@@ -6009,6 +6086,7 @@ declare const enum CommandResult {
6009
6086
  SheetIsHidden = "SheetIsHidden",
6010
6087
  InvalidTableResize = "InvalidTableResize",
6011
6088
  PivotIdNotFound = "PivotIdNotFound",
6089
+ PivotIdTaken = "PivotIdTaken",
6012
6090
  PivotInError = "PivotInError",
6013
6091
  EmptyName = "EmptyName",
6014
6092
  ValueCellIsInvalidFormula = "ValueCellIsInvalidFormula",
@@ -6135,6 +6213,7 @@ interface Style {
6135
6213
  fillColor?: Color;
6136
6214
  textColor?: Color;
6137
6215
  fontSize?: number;
6216
+ rotation?: number;
6138
6217
  }
6139
6218
  interface DataBarFill {
6140
6219
  color: Color;
@@ -6426,11 +6505,15 @@ interface ASTSymbol extends ASTBase {
6426
6505
  type: "SYMBOL";
6427
6506
  value: string;
6428
6507
  }
6508
+ interface ASTArray extends ASTBase {
6509
+ type: "ARRAY";
6510
+ value: AST[][];
6511
+ }
6429
6512
  interface ASTEmpty extends ASTBase {
6430
6513
  type: "EMPTY";
6431
6514
  value: "";
6432
6515
  }
6433
- type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTSymbol | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
6516
+ type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTSymbol | ASTArray | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
6434
6517
  declare const OP_PRIORITY: {
6435
6518
  "%": number;
6436
6519
  "^": number;
@@ -6523,7 +6606,7 @@ type FunctionDescription = AddFunctionDescription & {
6523
6606
  minArgRequired: number;
6524
6607
  maxArgPossible: number;
6525
6608
  nbrArgRepeating: number;
6526
- nbrArgOptional: number;
6609
+ nbrOptionalNonRepeatingArgs: number;
6527
6610
  };
6528
6611
  type EvalContext = {
6529
6612
  __originSheetId: UID;
@@ -6581,6 +6664,11 @@ declare function setTranslationMethod(tfn: TranslationFunction, loaded?: () => b
6581
6664
  declare function setDefaultTranslationMethod(): void;
6582
6665
  declare const _t: TranslationFunction;
6583
6666
 
6667
+ type GlobalChart = typeof ChartJs & typeof ChartJs.Chart;
6668
+ declare global {
6669
+ var Chart: GlobalChart | undefined;
6670
+ }
6671
+
6584
6672
  declare const CellErrorType: {
6585
6673
  readonly NotAvailable: "#N/A";
6586
6674
  readonly InvalidReference: "#REF";
@@ -6588,6 +6676,7 @@ declare const CellErrorType: {
6588
6676
  readonly CircularDependency: "#CYCLE";
6589
6677
  readonly UnknownFunction: "#NAME?";
6590
6678
  readonly DivisionByZero: "#DIV/0!";
6679
+ readonly InvalidNumber: "#NUM!";
6591
6680
  readonly SpilledBlocked: "#SPILL!";
6592
6681
  readonly GenericError: "#ERROR";
6593
6682
  readonly NullError: "#NULL!";
@@ -6620,7 +6709,10 @@ declare class SplillBlockedError extends EvaluationError {
6620
6709
  declare class DivisionByZeroError extends EvaluationError {
6621
6710
  constructor(message?: string);
6622
6711
  }
6712
+ declare class NumberTooLargeError extends EvaluationError {
6713
+ constructor(message?: string);
6714
+ }
6623
6715
 
6624
6716
  declare const __info__: {};
6625
6717
 
6626
- export { AST, ASTFuncall, ASTOperation, ASTString, ASTSymbol, ASTUnaryOperation, AdaptSheetName, AdjacentEdge, Alias, Align, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, BadExpressionError, BasePlugin, Border, BorderData, BorderDescr, BorderDescrWithOpacity, BorderPosition, BorderStyle, Box, BoxTextContent, CSSProperties, CellErrorType, CellPosition, CellValue, ChangeType, CircularDependencyError, ClipboardCell, Cloneable, Color, CompiledFormula, ComposerFocusType, ConsecutiveIndexes, CoreGetters, CreateRevisionOptions, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DebouncedFunction, Dimension, Direction, DivisionByZeroError, EdgeScrollInfo, EditionMode, EnsureRange, ErrorValue, EvaluationError, FilterId, Format, FormulaToExecute, FunctionCode, FunctionCodeBuilder, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GetSymbolValue, GridClickModifiers, GridRenderingContext, HSLA, HeaderDimensions, HeaderGroup, HeaderIndex, Highlight, HistoryChange, Image, Immutable, Increment, InvalidReferenceError, LayerName, Lazy, Link, Locale, LocaleCode, Matrix, Maybe, MenuMouseEvent, Merge, Model, NotAvailableError, OPERATOR_MAP, OP_PRIORITY, Offset, OperationSequenceNode, OrderedLayers, POSTFIX_UNARY_OPERATORS, PaneDivision, Pixel, PixelPosition, PluginGetters, Position, RGBA, RangeAdapter, RangeCompiledFormula, RangeProvider, Rect, Ref, ReferenceDenormalizer, Registry, RenderingBorder, RenderingBox, RenderingGridIcon, Row, Scope, ScrollDirection, Selection, SelectionStep, SetDecimalStep, Sheet, SheetDOMScrollInfo, SortDirection, SortOptions, SplillBlockedError, SpreadsheetClipboardData, StateObserver, Style, TableId, Token, TokenizingChars, Transformation, TransformationFactory, TranslationFunction, UID, UNARY_OPERATOR_MAP, UnboundedZone, UnknownFunctionError, UpdateCellData, UuidGenerator, Validation, Validator, ValueAndLabel, VerticalAlign, Viewport, WorkbookHistory, Wrapping, Zone, ZoneDimension, __info__, _t, addRenderingLayer, batched, borderStyles, buildSheetLink, categories, cellReference, chartStyleToCellStyle, clip, compile, compileTokens, concat, convertAstNodes, createEmptyStructure, debounce, deepCopy, deepEquals, deepEqualsArray, errorTypes, escapeRegExp, findNextDefinedValue, functionCache, getAddHeaderStartIndex, getCanonicalSymbolName, getFormulaNumberRegex, getFullReference, getSearchRegex, getUniqueText, getUnquotedSheetName, groupConsecutive, includesAll, insertItemsAtIndex, isBoolean, isColHeader, isColReference, isConsecutive, isDefined, isFormula, isMarkdownLink, isMatrix, isNotNull, isNumber, isNumberBetween, isObjectEmptyRecursive, isRowHeader, isRowReference, isSheetUrl, isSingleCellReference, isWebLink, iterateAstNodes, largeMax, largeMin, lazy, linkNext, loopThroughReferenceType, mapAst, markdownLink, memoize, parse, parseMarkdownLink, parseNumber, parseSheetUrl, parseTokens, percentile, range, rangeReference, rangeTokenize, removeDuplicates, removeFalsyAttributes, removeIndexesFromArray, replaceItemAtIndex, replaceNewLines, sanitizeSheetName, setDefaultTranslationMethod, setTranslationMethod, setXcToFixedReferenceType, specialWhiteSpaceRegexp, splitReference, tokenize, transpose2dPOJO, trimContent, unquote, whiteSpaceCharacters };
6718
+ export { AST, ASTFuncall, ASTOperation, ASTString, ASTSymbol, ASTUnaryOperation, AdaptSheetName, AdjacentEdge, Alias, Align, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, BadExpressionError, BasePlugin, Border, BorderData, BorderDescr, BorderDescrWithOpacity, BorderPosition, BorderStyle, Box, BoxTextContent, CSSProperties, CellErrorType, CellPosition, CellValue, ChangeType, CircularDependencyError, ClipboardCell, Cloneable, Color, CompiledFormula, ComposerFocusType, ConsecutiveIndexes, CoreGetters, CreateRevisionOptions, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DebouncedFunction, Dimension, Direction, DivisionByZeroError, EdgeScrollInfo, EditionMode, EnsureRange, ErrorValue, EvaluationError, FilterId, Format, FormulaToExecute, FunctionCode, FunctionCodeBuilder, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GetSymbolValue, GlobalChart, GridClickModifiers, GridRenderingContext, HSLA, HeaderDimensions, HeaderGroup, HeaderIndex, Highlight, HistoryChange, Image, Immutable, Increment, InvalidReferenceError, LayerName, Lazy, Link, Locale, LocaleCode, Matrix, Maybe, MenuMouseEvent, Merge, Model, NotAvailableError, NumberTooLargeError, OPERATOR_MAP, OP_PRIORITY, Offset, OperationSequenceNode, OrderedLayers, POSTFIX_UNARY_OPERATORS, PaneDivision, Pixel, PixelPosition, PluginGetters, Position, RGBA, RangeAdapter, RangeCompiledFormula, RangeProvider, Rect, Ref, ReferenceDenormalizer, Registry, RenderingBorder, RenderingBox, RenderingGridIcon, Row, Scope, ScrollDirection, Selection, SelectionStep, SetDecimalStep, Sheet, SheetDOMScrollInfo, SortDirection, SortOptions, SplillBlockedError, SpreadsheetClipboardData, StateObserver, Style, TableId, Token, TokenizingChars, Transformation, TransformationFactory, TranslationFunction, UID, UNARY_OPERATOR_MAP, UnboundedZone, UnknownFunctionError, UpdateCellData, UuidGenerator, Validation, Validator, ValueAndLabel, VerticalAlign, Viewport, WorkbookHistory, Wrapping, Zone, ZoneDimension, __info__, _t, addRenderingLayer, batched, borderStyles, buildSheetLink, categories, cellReference, chartStyleToCellStyle, clip, compile, compileTokens, concat, convertAstNodes, createEmptyStructure, debounce, deepCopy, deepEquals, deepEqualsArray, errorTypes, escapeRegExp, findNextDefinedValue, functionCache, getAddHeaderStartIndex, getCanonicalSymbolName, getFormulaNumberRegex, getFullReference, getSearchRegex, getUniqueText, getUnquotedSheetName, groupConsecutive, includesAll, insertItemsAtIndex, isBoolean, isColHeader, isColReference, isConsecutive, isDefined, isFormula, isMarkdownLink, isMatrix, isNotNull, isNumber, isNumberBetween, isObjectEmptyRecursive, isRowHeader, isRowReference, isSheetUrl, isSingleCellReference, isWebLink, iterateAstNodes, largeMax, largeMin, lazy, linkNext, loopThroughReferenceType, mapAst, markdownLink, memoize, parse, parseMarkdownLink, parseNumber, parseSheetUrl, parseTokens, percentile, range, rangeReference, rangeTokenize, removeDuplicates, removeFalsyAttributes, removeIndexesFromArray, replaceItemAtIndex, replaceNewLines, sanitizeSheetName, setDefaultTranslationMethod, setTranslationMethod, setXcToFixedReferenceType, specialWhiteSpaceRegexp, splitReference, tokenize, transpose2dPOJO, trimContent, unquote, whiteSpaceCharacters };