@odoo/o-spreadsheet 19.2.0-alpha.2 → 19.2.0-alpha.3

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.
@@ -179,6 +179,7 @@ interface Table {
179
179
  readonly range: Range;
180
180
  readonly filters: Filter[];
181
181
  readonly config: TableConfig;
182
+ readonly isPivotTable?: boolean;
182
183
  }
183
184
  interface StaticTable extends Table {
184
185
  readonly type: "static" | "forceStatic";
@@ -213,9 +214,13 @@ interface TableElementStyle {
213
214
  style?: Style;
214
215
  size?: number;
215
216
  }
216
- interface TableBorder extends Border {
217
- horizontal?: BorderDescr;
218
- vertical?: BorderDescr;
217
+ interface TableBorder {
218
+ top?: BorderDescr | null;
219
+ bottom?: BorderDescr | null;
220
+ left?: BorderDescr | null;
221
+ right?: BorderDescr | null;
222
+ horizontal?: BorderDescr | null;
223
+ vertical?: BorderDescr | null;
219
224
  }
220
225
  interface TableStyle {
221
226
  category: string;
@@ -231,8 +236,12 @@ interface TableStyle {
231
236
  lastColumn?: TableElementStyle;
232
237
  headerRow?: TableElementStyle;
233
238
  totalRow?: TableElementStyle;
239
+ measureHeader?: TableElementStyle;
240
+ mainSubHeaderRow?: TableElementStyle;
241
+ firstAlternatingSubHeaderRow?: TableElementStyle;
242
+ secondAlternatingSubHeaderRow?: TableElementStyle;
234
243
  }
235
- type TableStyleTemplateName = "none" | "lightColoredText" | "lightAllBorders" | "mediumAllBorders" | "lightWithHeader" | "mediumBandedBorders" | "mediumMinimalBorders" | "darkNoBorders" | "mediumWhiteBorders" | "dark";
244
+ type TableStyleTemplateName = string;
236
245
  declare const filterCriterions: GenericCriterionType[];
237
246
  type FilterCriterionType = (typeof filterCriterions)[number];
238
247
  interface ValuesFilter {
@@ -1119,7 +1128,7 @@ interface MergeState {
1119
1128
  readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
1120
1129
  }
1121
1130
  declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
1122
- static getters: readonly ["isInMerge", "isInSameMerge", "isMergeHidden", "getMainCellPosition", "expandZone", "doesIntersectMerge", "doesColumnsHaveCommonMerges", "doesRowsHaveCommonMerges", "getMerges", "getMerge", "getMergesInZone", "isSingleCellOrMerge", "getSelectionRangeString", "isMainCellPosition"];
1131
+ static getters: readonly ["isInMerge", "isInSameMerge", "isMergeHidden", "getMainCellPosition", "expandZone", "doesIntersectMerge", "doesColumnsHaveCommonMerges", "doesRowsHaveCommonMerges", "getMerges", "getMerge", "getMergesInZone", "isSingleCellOrMerge", "isMainCellPosition"];
1123
1132
  private nextId;
1124
1133
  readonly merges: Record<UID, Record<number, Range | undefined> | undefined>;
1125
1134
  readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
@@ -1129,10 +1138,6 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
1129
1138
  getMerges(sheetId: UID): Merge[];
1130
1139
  getMerge({ sheetId, col, row }: CellPosition): Merge | undefined;
1131
1140
  getMergesInZone(sheetId: UID, zone: Zone): Merge[];
1132
- /**
1133
- * Same as `getRangeString` but add all necessary merge to the range to make it a valid selection
1134
- */
1135
- getSelectionRangeString(range: Range, forSheetId: UID): string;
1136
1141
  /**
1137
1142
  * Return true if the zone intersects an existing merge:
1138
1143
  * if they have at least a common cell
@@ -1348,20 +1353,28 @@ interface PivotStyle {
1348
1353
  displayTotals?: boolean;
1349
1354
  displayColumnHeaders?: boolean;
1350
1355
  displayMeasuresRow?: boolean;
1356
+ tableStyleId?: string;
1357
+ bandedRows?: boolean;
1358
+ bandedColumns?: boolean;
1359
+ hasFilters?: boolean;
1351
1360
  }
1352
1361
 
1353
1362
  interface Pivot$1 {
1354
1363
  definition: PivotCoreDefinition;
1355
1364
  formulaId: string;
1356
1365
  }
1366
+ interface MeasureState {
1367
+ formula: RangeCompiledFormula;
1368
+ dependencies: Range[];
1369
+ }
1357
1370
  interface CoreState {
1358
1371
  nextFormulaId: number;
1359
1372
  pivots: Record<UID, Pivot$1 | undefined>;
1360
1373
  formulaIds: Record<UID, string | undefined>;
1361
- compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula | undefined>>;
1374
+ compiledMeasureFormulas: Record<UID, Record<string, MeasureState | undefined>>;
1362
1375
  }
1363
1376
  declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
1364
- static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot"];
1377
+ static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot", "getMeasureFullDependencies"];
1365
1378
  readonly nextFormulaId: number;
1366
1379
  readonly pivots: {
1367
1380
  [pivotId: UID]: Pivot$1 | undefined;
@@ -1369,7 +1382,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
1369
1382
  readonly formulaIds: {
1370
1383
  [formulaId: UID]: UID | undefined;
1371
1384
  };
1372
- readonly compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula>>;
1385
+ readonly compiledMeasureFormulas: Record<UID, Record<string, MeasureState>>;
1373
1386
  allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
1374
1387
  handle(cmd: CoreCommand): void;
1375
1388
  adaptRanges(applyChange: ApplyRangeChange): void;
@@ -1388,9 +1401,11 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
1388
1401
  getPivotFormulaId(pivotId: UID): string;
1389
1402
  getPivotIds(): UID[];
1390
1403
  isExistingPivot(pivotId: UID): boolean;
1391
- getMeasureCompiledFormula(measure: PivotCoreMeasure): RangeCompiledFormula;
1404
+ getMeasureCompiledFormula(pivotId: UID, measure: PivotCoreMeasure): RangeCompiledFormula;
1405
+ getMeasureFullDependencies(pivotId: UID, measure: PivotCoreMeasure): Range[];
1392
1406
  private addPivot;
1393
1407
  private compileCalculatedMeasures;
1408
+ private computeMeasureFullDependencies;
1394
1409
  private insertPivot;
1395
1410
  private resizeSheet;
1396
1411
  private getPivotCore;
@@ -1500,7 +1515,7 @@ interface SheetState {
1500
1515
  readonly cellPosition: Record<UID, CellPosition | undefined>;
1501
1516
  }
1502
1517
  declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
1503
- static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders", "getDuplicateSheetName"];
1518
+ static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders", "getDuplicateSheetName", "tryGetCellPosition"];
1504
1519
  readonly sheetIdsMapName: Record<string, UID | undefined>;
1505
1520
  readonly orderedSheetIds: UID[];
1506
1521
  readonly sheets: Record<UID, Sheet | undefined>;
@@ -1534,6 +1549,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
1534
1549
  getRowCells(sheetId: UID, row: HeaderIndex): UID[];
1535
1550
  getRowsZone(sheetId: UID, start: HeaderIndex, end: HeaderIndex): Zone;
1536
1551
  getCellPosition(cellId: UID): CellPosition;
1552
+ tryGetCellPosition(cellId: UID): CellPosition | undefined;
1537
1553
  getNumberCols(sheetId: UID): number;
1538
1554
  getNumberRows(sheetId: UID): number;
1539
1555
  getNumberHeaders(sheetId: UID, dimension: Dimension): HeaderIndex;
@@ -2665,6 +2681,9 @@ declare class DynamicTablesPlugin extends CoreViewPlugin {
2665
2681
  handle(cmd: Command): void;
2666
2682
  finalize(): void;
2667
2683
  private computeTables;
2684
+ private getDynamicTables;
2685
+ private getTablesFromPivots;
2686
+ private getTableConfigFromPivotStyle;
2668
2687
  getFilters(sheetId: UID): Filter[];
2669
2688
  getTables(sheetId: UID): Table[];
2670
2689
  getFilter(position: CellPosition): Filter | undefined;
@@ -2790,6 +2809,13 @@ declare class EvaluationDataValidationPlugin extends CoreViewPlugin {
2790
2809
  private getEvaluatedCriterionValues;
2791
2810
  }
2792
2811
 
2812
+ declare class FormulaTrackerPlugin extends CoreViewPlugin {
2813
+ static getters: readonly ["getCellsWithTrackedFormula"];
2814
+ private trackedCells;
2815
+ handle(cmd: Command): void;
2816
+ getCellsWithTrackedFormula(formula: string): string[];
2817
+ }
2818
+
2793
2819
  type Canvas2DContext = CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D;
2794
2820
 
2795
2821
  interface HeaderSizeState {
@@ -2938,6 +2964,12 @@ declare class SpreadsheetPivotTable {
2938
2964
  field: string;
2939
2965
  value: CellValue;
2940
2966
  }[][];
2967
+ getPivotTableDimensions(pivotStyle: Required<PivotStyle>): {
2968
+ numberOfCols: number;
2969
+ numberOfRows: number;
2970
+ numberOfHeaderRows: number;
2971
+ };
2972
+ getNumberOfRowGroupBys(): number;
2941
2973
  }
2942
2974
 
2943
2975
  interface InitPivotParams {
@@ -2970,7 +3002,7 @@ interface Pivot<T = PivotRuntimeDefinition> {
2970
3002
  }
2971
3003
 
2972
3004
  declare class PivotUIPlugin extends CoreViewPlugin {
2973
- static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula"];
3005
+ static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula", "getAllPivotArrayFormulas", "getPivotStyleAtPosition"];
2974
3006
  private pivots;
2975
3007
  private unusedPivotsInFormulas?;
2976
3008
  private custom;
@@ -3013,6 +3045,16 @@ declare class PivotUIPlugin extends CoreViewPlugin {
3013
3045
  recreate: boolean;
3014
3046
  }): void;
3015
3047
  private _getUnusedPivotsInFormulas;
3048
+ getAllPivotArrayFormulas(): {
3049
+ position: CellPosition;
3050
+ pivotStyle: Required<PivotStyle>;
3051
+ pivotId: UID;
3052
+ }[];
3053
+ getPivotStyleAtPosition(position: CellPosition): {
3054
+ pivotStyle: Required<PivotStyle>;
3055
+ pivotId: UID;
3056
+ } | undefined;
3057
+ private isMainFunctionPivotSpreadFunction;
3016
3058
  }
3017
3059
 
3018
3060
  /**
@@ -3452,7 +3494,6 @@ declare class SplitToColumnsPlugin extends UIPlugin {
3452
3494
  }
3453
3495
 
3454
3496
  declare class SubtotalEvaluationPlugin extends UIPlugin {
3455
- private subtotalCells;
3456
3497
  handle(cmd: Command): void;
3457
3498
  }
3458
3499
 
@@ -3466,6 +3507,7 @@ declare class TableComputedStylePlugin extends UIPlugin {
3466
3507
  getCellTableBorder(position: CellPosition): Border | undefined;
3467
3508
  getCellTableBorderZone(sheetId: UID, zone: Zone): PositionMap<Border>;
3468
3509
  private computeTableStyle;
3510
+ private getTableMetaData;
3469
3511
  /**
3470
3512
  * Get the actual table config that will be used to compute the table style. It is different from
3471
3513
  * the config of the table because of hidden rows and columns in the sheet. For example remove the
@@ -3605,6 +3647,9 @@ declare class ClipboardPlugin extends UIPlugin {
3605
3647
  constructor(config: UIPluginConfig);
3606
3648
  allowDispatch(cmd: LocalCommand): CommandResult;
3607
3649
  handle(cmd: Command): void;
3650
+ private getCopiedDataAbove;
3651
+ private getCopiedDataOnLeft;
3652
+ private getCopiedDataAboveOnLeft;
3608
3653
  private convertTextToClipboardData;
3609
3654
  private selectClipboardHandlers;
3610
3655
  private isCutAllowedOn;
@@ -3700,7 +3745,7 @@ declare class HeaderPositionsUIPlugin extends UIPlugin {
3700
3745
  */
3701
3746
  declare class GridSelectionPlugin extends UIPlugin {
3702
3747
  static layers: readonly ["Selection"];
3703
- static getters: readonly ["getActiveSheet", "getActiveSheetId", "getActiveSheetName", "getActiveCell", "getActiveCols", "getActiveRows", "getCurrentStyle", "getSelectedZones", "getSelectedZone", "getSelectedCells", "getSelectedFigureId", "getSelection", "getActivePosition", "getSheetPosition", "isSingleColSelected", "getElementsFromSelection", "tryGetActiveSheetId", "isGridSelectionActive", "getSelectecUnboundedZone"];
3748
+ static getters: readonly ["getActiveSheet", "getActiveSheetId", "getActiveSheetName", "getActiveCell", "getActiveCols", "getActiveRows", "getCurrentStyle", "getSelectedZones", "getSelectedZone", "getSelectedCells", "getSelectedFigureId", "getSelection", "getActivePosition", "getSheetPosition", "isSingleColSelected", "getElementsFromSelection", "tryGetActiveSheetId", "isGridSelectionActive", "getSelectecUnboundedZone", "getSelectionRangeString"];
3704
3749
  private gridSelection;
3705
3750
  private selectedFigureId;
3706
3751
  private sheetsData;
@@ -3741,6 +3786,12 @@ declare class GridSelectionPlugin extends UIPlugin {
3741
3786
  * if dimension === "ROW" => [2,3,4,5]
3742
3787
  */
3743
3788
  getElementsFromSelection(dimension: Dimension): number[];
3789
+ /**
3790
+ * Same as `getRangeString` but add:
3791
+ * - all necessary merge to the range to make it a valid selection
3792
+ * - the "#" suffix if the range is a spilled reference
3793
+ */
3794
+ getSelectionRangeString(range: Range, forSheetId: UID): string;
3744
3795
  private activateSheet;
3745
3796
  /**
3746
3797
  * Ensure selections are not outside sheet boundaries.
@@ -4057,7 +4108,7 @@ declare class SheetViewPlugin extends UIPlugin {
4057
4108
  type Getters = {
4058
4109
  isReadonly: () => boolean;
4059
4110
  isDashboard: () => boolean;
4060
- } & CoreGetters & PluginGetters<typeof AutofillPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof HistoryPlugin> & PluginGetters<typeof ClipboardPlugin> & PluginGetters<typeof EvaluationPlugin> & PluginGetters<typeof EvaluationChartPlugin> & PluginGetters<typeof EvaluationConditionalFormatPlugin> & PluginGetters<typeof HeaderVisibilityUIPlugin> & PluginGetters<typeof CustomColorsPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof GridSelectionPlugin> & PluginGetters<typeof CollaborativePlugin> & PluginGetters<typeof SortPlugin> & PluginGetters<typeof UIOptionsPlugin> & PluginGetters<typeof SheetUIPlugin> & PluginGetters<typeof SheetViewPlugin> & PluginGetters<typeof FilterEvaluationPlugin> & PluginGetters<typeof SplitToColumnsPlugin> & PluginGetters<typeof SubtotalEvaluationPlugin> & PluginGetters<typeof HeaderSizeUIPlugin> & PluginGetters<typeof EvaluationDataValidationPlugin> & PluginGetters<typeof HeaderPositionsUIPlugin> & PluginGetters<typeof TableStylePlugin> & PluginGetters<typeof CellComputedStylePlugin> & PluginGetters<typeof DynamicTablesPlugin> & PluginGetters<typeof PivotUIPlugin> & PluginGetters<typeof TableComputedStylePlugin> & PluginGetters<typeof GeoFeaturePlugin> & PluginGetters<typeof PivotPresencePlugin> & PluginGetters<typeof TableComputedStylePlugin> & PluginGetters<typeof CheckboxTogglePlugin> & PluginGetters<typeof CellIconPlugin> & PluginGetters<typeof DynamicTranslate> & PluginGetters<typeof CarouselUIPlugin>;
4111
+ } & CoreGetters & PluginGetters<typeof AutofillPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof HistoryPlugin> & PluginGetters<typeof ClipboardPlugin> & PluginGetters<typeof EvaluationPlugin> & PluginGetters<typeof EvaluationChartPlugin> & PluginGetters<typeof EvaluationConditionalFormatPlugin> & PluginGetters<typeof HeaderVisibilityUIPlugin> & PluginGetters<typeof CustomColorsPlugin> & PluginGetters<typeof AutomaticSumPlugin> & PluginGetters<typeof GridSelectionPlugin> & PluginGetters<typeof CollaborativePlugin> & PluginGetters<typeof SortPlugin> & PluginGetters<typeof UIOptionsPlugin> & PluginGetters<typeof SheetUIPlugin> & PluginGetters<typeof SheetViewPlugin> & PluginGetters<typeof FilterEvaluationPlugin> & PluginGetters<typeof SplitToColumnsPlugin> & PluginGetters<typeof SubtotalEvaluationPlugin> & PluginGetters<typeof HeaderSizeUIPlugin> & PluginGetters<typeof EvaluationDataValidationPlugin> & PluginGetters<typeof HeaderPositionsUIPlugin> & PluginGetters<typeof TableStylePlugin> & PluginGetters<typeof CellComputedStylePlugin> & PluginGetters<typeof DynamicTablesPlugin> & PluginGetters<typeof PivotUIPlugin> & PluginGetters<typeof TableComputedStylePlugin> & PluginGetters<typeof GeoFeaturePlugin> & PluginGetters<typeof PivotPresencePlugin> & PluginGetters<typeof TableComputedStylePlugin> & PluginGetters<typeof CheckboxTogglePlugin> & PluginGetters<typeof CellIconPlugin> & PluginGetters<typeof DynamicTranslate> & PluginGetters<typeof FormulaTrackerPlugin> & PluginGetters<typeof CarouselUIPlugin>;
4061
4112
 
4062
4113
  interface SearchOptions {
4063
4114
  matchCase: boolean;
@@ -4282,6 +4333,7 @@ declare function getUniqueText(text: string, texts: string[], options?: {
4282
4333
  }): string;
4283
4334
  declare function isFormula(content: string): boolean;
4284
4335
  declare function chartStyleToCellStyle(style: ChartStyle): Style;
4336
+ declare function doesCellContainFunction(cell: Cell, formula: string): boolean;
4285
4337
 
4286
4338
  /**
4287
4339
  * This function returns a regexp that is supposed to be as close as possible as the numberRegexp,
@@ -4657,7 +4709,6 @@ interface RenderingBox {
4657
4709
  center?: RenderingGridIcon;
4658
4710
  };
4659
4711
  textOpacity?: number;
4660
- skipCellGridLines?: boolean;
4661
4712
  disabledAnimation?: boolean;
4662
4713
  }
4663
4714
  type Box = RenderingBox & Rect;
@@ -5702,6 +5753,9 @@ interface CopyPasteCellsAboveCommand {
5702
5753
  interface CopyPasteCellsOnLeftCommand {
5703
5754
  type: "COPY_PASTE_CELLS_ON_LEFT";
5704
5755
  }
5756
+ interface CopyPasteCellsOnZoneCommand {
5757
+ type: "COPY_PASTE_CELLS_ON_ZONE";
5758
+ }
5705
5759
  interface RepeatPasteCommand {
5706
5760
  type: "REPEAT_PASTE";
5707
5761
  target: Zone[];
@@ -5950,7 +6004,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | ClearCellsCom
5950
6004
  | UpdateLocaleCommand
5951
6005
  /** PIVOT */
5952
6006
  | AddPivotCommand | UpdatePivotCommand | InsertPivotCommand | RenamePivotCommand | RemovePivotCommand | DuplicatePivotCommand;
5953
- 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;
6007
+ type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | CopyPasteCellsOnZoneCommand | 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;
5954
6008
  type Command = CoreCommand | LocalCommand;
5955
6009
  /**
5956
6010
  * Holds the result of a command dispatch.
@@ -6219,6 +6273,7 @@ interface Style {
6219
6273
  textColor?: Color;
6220
6274
  fontSize?: number;
6221
6275
  rotation?: number;
6276
+ hideGridLines?: boolean;
6222
6277
  }
6223
6278
  interface DataBarFill {
6224
6279
  color: Color;
@@ -6461,6 +6516,7 @@ declare const UNARY_OPERATOR_MAP: {
6461
6516
  "-": string;
6462
6517
  "+": string;
6463
6518
  "%": string;
6519
+ "#": string;
6464
6520
  };
6465
6521
  declare const functionCache: {
6466
6522
  [key: string]: FormulaToExecute;
@@ -6520,6 +6576,7 @@ interface ASTEmpty extends ASTBase {
6520
6576
  }
6521
6577
  type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTSymbol | ASTArray | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
6522
6578
  declare const OP_PRIORITY: {
6579
+ "#": number;
6523
6580
  "%": number;
6524
6581
  "^": number;
6525
6582
  "*": number;
@@ -6720,4 +6777,4 @@ declare class NumberTooLargeError extends EvaluationError {
6720
6777
 
6721
6778
  declare const __info__: {};
6722
6779
 
6723
- 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 };
6780
+ 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, doesCellContainFunction, 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 };