@odoo/o-spreadsheet 18.4.23 → 18.4.25

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.
@@ -3837,26 +3837,33 @@ declare const enum DIRECTION {
3837
3837
  RIGHT = "right"
3838
3838
  }
3839
3839
  type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
3840
- type ApplyRangeChangeResult = {
3841
- changeType: Exclude<ChangeType, "NONE">;
3842
- range: Range;
3843
- } | {
3844
- changeType: "NONE";
3840
+ type ApplyRangeChangeResult<T> = {
3841
+ changeType: ChangeType;
3842
+ range: T;
3843
+ };
3844
+ type ApplyFormulaRangeChangeResult = {
3845
+ changeType: ChangeType;
3846
+ formula: string;
3845
3847
  };
3846
- type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult;
3848
+ type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult<Range>;
3847
3849
  type AdaptSheetName = {
3848
3850
  old: string;
3849
3851
  current: string;
3850
3852
  };
3851
- type RangeAdapter$1 = {
3853
+ type RangeAdapter = {
3852
3854
  sheetId: UID;
3853
3855
  sheetName: AdaptSheetName;
3854
3856
  applyChange: ApplyRangeChange;
3855
3857
  };
3858
+ type RangeAdapterFunctions = {
3859
+ applyChange: ApplyRangeChange;
3860
+ adaptRangeString: (defaultSheetId: UID, sheetXC: string) => ApplyRangeChangeResult<string>;
3861
+ adaptFormulaString: (defaultSheetId: UID, formula: string) => string;
3862
+ };
3856
3863
  type Dimension = "COL" | "ROW";
3857
3864
  type ConsecutiveIndexes = HeaderIndex[];
3858
3865
  interface RangeProvider {
3859
- adaptRanges: (applyChange: ApplyRangeChange, sheetId: UID, sheetName: AdaptSheetName) => void;
3866
+ adaptRanges: (adapterFunctions: RangeAdapterFunctions, sheetId: UID, sheetName: AdaptSheetName) => void;
3860
3867
  }
3861
3868
  type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
3862
3869
  type Increment = 1 | -1 | 0;
@@ -4368,12 +4375,12 @@ interface SpreadsheetChildEnv extends NotificationStoreMethods {
4368
4375
  isMobile: () => boolean;
4369
4376
  }
4370
4377
 
4371
- declare class RangeAdapter implements CommandHandler<CoreCommand> {
4378
+ declare class RangeAdapterPlugin implements CommandHandler<CoreCommand> {
4372
4379
  private getters;
4373
4380
  private providers;
4374
4381
  private isAdaptingRanges;
4375
4382
  constructor(getters: CoreGetters);
4376
- static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
4383
+ static getters: readonly ["copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
4377
4384
  allowDispatch(cmd: CoreCommand): CommandResult;
4378
4385
  beforeHandle(command: Command): void;
4379
4386
  handle(cmd: CoreCommand): void;
@@ -4430,7 +4437,6 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
4430
4437
  getRangeFromRangeData(data: RangeData): Range;
4431
4438
  isRangeValid(rangeStr: string): boolean;
4432
4439
  getRangesUnion(ranges: Range[]): Range;
4433
- adaptFormulaStringDependencies(sheetId: UID, formula: string, applyChange: ApplyRangeChange): string;
4434
4440
  /**
4435
4441
  * Copy a formula string to another sheet.
4436
4442
  *
@@ -4444,7 +4450,7 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
4444
4450
  interface CorePluginConfig {
4445
4451
  readonly getters: CoreGetters;
4446
4452
  readonly stateObserver: StateObserver;
4447
- readonly range: RangeAdapter;
4453
+ readonly range: RangeAdapterPlugin;
4448
4454
  readonly dispatch: CoreCommandDispatcher["dispatch"];
4449
4455
  readonly canDispatch: CoreCommandDispatcher["dispatch"];
4450
4456
  readonly custom: ModelConfig["custom"];
@@ -4478,7 +4484,7 @@ declare class CorePlugin<State = any> extends BasePlugin<State, CoreCommand> imp
4478
4484
  * @param sheetId an sheetId to adapt either range of that sheet specifically, or ranges pointing to that sheet
4479
4485
  * @param sheetName couple of old and new sheet names to adapt ranges pointing to that sheet
4480
4486
  */
4481
- adaptRanges(applyChange: ApplyRangeChange, sheetId: UID, sheetName: AdaptSheetName): void;
4487
+ adaptRanges(rangeAdapterFunctions: RangeAdapterFunctions, sheetId: UID, sheetName: AdaptSheetName): void;
4482
4488
  /**
4483
4489
  * Implement this method to clean unused external resources, such as images
4484
4490
  * stored on a server which have been deleted.
@@ -4629,7 +4635,7 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
4629
4635
  [id: string]: Cell;
4630
4636
  };
4631
4637
  };
4632
- adaptRanges(applyChange: ApplyRangeChange, sheetId: UID, sheetName: AdaptSheetName): void;
4638
+ adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID, sheetName: AdaptSheetName): void;
4633
4639
  allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
4634
4640
  handle(cmd: CoreCommand): void;
4635
4641
  private clearZones;
@@ -4653,7 +4659,7 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
4653
4659
  export(data: WorkbookData): void;
4654
4660
  importCell(sheetId: UID, content?: string, style?: Style, format?: Format): Cell;
4655
4661
  exportForExcel(data: ExcelWorkbookData): void;
4656
- private removeDefaultStyleValues;
4662
+ private extractCustomStyle;
4657
4663
  getCells(sheetId: UID): Record<UID, Cell>;
4658
4664
  /**
4659
4665
  * get a cell by ID. Used in evaluation when evaluating an async cell, we need to be able to find it back after
@@ -4728,7 +4734,7 @@ declare abstract class AbstractChart {
4728
4734
  * Get a new chart definition transformed with the executed command. This
4729
4735
  * functions will be called during operational transform process
4730
4736
  */
4731
- static transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyChange: RangeAdapter$1): ChartDefinition;
4737
+ static transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyChange: RangeAdapter): ChartDefinition;
4732
4738
  /**
4733
4739
  * Get an empty definition based on the given context
4734
4740
  */
@@ -4746,7 +4752,7 @@ declare abstract class AbstractChart {
4746
4752
  * This function should be used to update all the ranges of the chart after
4747
4753
  * a grid change (add/remove col/row, rename sheet, ...)
4748
4754
  */
4749
- abstract updateRanges(applyChange: ApplyRangeChange, sheetId: UID, adaptSheetName: AdaptSheetName): AbstractChart;
4755
+ abstract updateRanges(rangeAdapters: RangeAdapterFunctions): AbstractChart;
4750
4756
  /**
4751
4757
  * Duplicate the chart when a sheet is duplicated.
4752
4758
  * The ranges that are in the same sheet as the chart are adapted to the new sheetId.
@@ -4776,7 +4782,7 @@ declare class ChartPlugin extends CorePlugin<ChartState> implements ChartState {
4776
4782
  readonly charts: Record<UID, AbstractChart | undefined>;
4777
4783
  private createChart;
4778
4784
  private validateChartDefinition;
4779
- adaptRanges(applyChange: ApplyRangeChange, sheetId: UID, adaptSheetName: AdaptSheetName): void;
4785
+ adaptRanges(rangeAdapters: RangeAdapterFunctions): void;
4780
4786
  allowDispatch(cmd: Command): CommandResult | CommandResult[];
4781
4787
  handle(cmd: CoreCommand): void;
4782
4788
  getContextCreationChart(figureId: UID): ChartCreationContext | undefined;
@@ -4811,9 +4817,9 @@ declare class ConditionalFormatPlugin extends CorePlugin<ConditionalFormatState>
4811
4817
  readonly cfRules: {
4812
4818
  [sheet: string]: ConditionalFormatInternal[];
4813
4819
  };
4814
- adaptCFFormulas(applyChange: ApplyRangeChange): void;
4815
- adaptCFRanges(sheetId: UID, applyChange: ApplyRangeChange): void;
4816
- adaptRanges(applyChange: ApplyRangeChange, sheetId: UID): void;
4820
+ adaptCFFormulas({ applyChange, adaptFormulaString }: RangeAdapterFunctions): void;
4821
+ adaptCFRanges(sheetId: UID, { applyChange }: RangeAdapterFunctions): void;
4822
+ adaptRanges(rangeAdapters: RangeAdapterFunctions, sheetId: UID): void;
4817
4823
  allowDispatch(cmd: Command): CommandResult | CommandResult[];
4818
4824
  handle(cmd: CoreCommand): void;
4819
4825
  import(data: WorkbookData): void;
@@ -4864,7 +4870,7 @@ declare class DataValidationPlugin extends CorePlugin<DataValidationState> imple
4864
4870
  readonly rules: {
4865
4871
  [sheet: string]: DataValidationRule[];
4866
4872
  };
4867
- adaptRanges(applyChange: ApplyRangeChange, sheetId: UID): void;
4873
+ adaptRanges(rangeAdapters: RangeAdapterFunctions, sheetId: UID): void;
4868
4874
  private adaptDVFormulas;
4869
4875
  private adaptDVRanges;
4870
4876
  allowDispatch(cmd: Command): CommandResult | CommandResult[];
@@ -4899,7 +4905,7 @@ declare class FigurePlugin extends CorePlugin<FigureState> implements FigureStat
4899
4905
  [sheet: string]: Record<UID, Figure | undefined> | undefined;
4900
4906
  };
4901
4907
  readonly insertionOrders: UID[];
4902
- adaptRanges(applyChange: ApplyRangeChange, sheetId: UID): void;
4908
+ adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID): void;
4903
4909
  allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
4904
4910
  beforeHandle(cmd: CoreCommand): void;
4905
4911
  handle(cmd: CoreCommand): void;
@@ -4921,86 +4927,6 @@ declare class FigurePlugin extends CorePlugin<FigureState> implements FigureStat
4921
4927
  exportForExcel(data: ExcelWorkbookData): void;
4922
4928
  }
4923
4929
 
4924
- interface State$6 {
4925
- groups: Record<UID, Record<Dimension, HeaderGroup[]>>;
4926
- }
4927
- declare class HeaderGroupingPlugin extends CorePlugin<State$6> {
4928
- static getters: readonly ["getHeaderGroups", "getGroupsLayers", "getVisibleGroupLayers", "getHeaderGroup", "getHeaderGroupsInZone", "isGroupFolded", "isRowFolded", "isColFolded"];
4929
- private readonly groups;
4930
- allowDispatch(cmd: CoreCommand): CommandResult;
4931
- handle(cmd: CoreCommand): void;
4932
- getHeaderGroups(sheetId: UID, dim: Dimension): HeaderGroup[];
4933
- getHeaderGroup(sheetId: UID, dim: Dimension, start: number, end: number): HeaderGroup | undefined;
4934
- getHeaderGroupsInZone(sheetId: UID, dim: Dimension, zone: Zone): HeaderGroup[];
4935
- /**
4936
- * Get all the groups of a sheet in a dimension, and return an array of layers of those groups.
4937
- *
4938
- * The layering rules are:
4939
- * 1) A group containing another group should be on a layer above the group it contains
4940
- * 2) The widest/highest groups should be on the left/top layer compared to the groups it contains
4941
- * 3) The group should be on the left/top-most layer possible, barring intersections with other groups (see rules 1 and 2)
4942
- */
4943
- getGroupsLayers(sheetId: UID, dimension: Dimension): HeaderGroup[][];
4944
- /**
4945
- * Get all the groups of a sheet in a dimension, and return an array of layers of those groups,
4946
- * excluding the groups that are totally hidden.
4947
- */
4948
- getVisibleGroupLayers(sheetId: UID, dimension: Dimension): HeaderGroup[][];
4949
- isGroupFolded(sheetId: UID, dimension: Dimension, start: number, end: number): boolean;
4950
- isRowFolded(sheetId: UID, row: HeaderIndex): boolean;
4951
- isColFolded(sheetId: UID, col: HeaderIndex): boolean;
4952
- private getGroupId;
4953
- /**
4954
- * To get layers of groups, and to add/remove headers from groups, we can see each header of a group as a brick. Each
4955
- * brick falls down in the pile corresponding to its header, until it hits another brick, or the ground.
4956
- *
4957
- * With this abstraction, we can very simply group/ungroup headers from groups, and get the layers of groups.
4958
- * - grouping headers is done by adding a brick to each header pile
4959
- * - un-grouping headers is done by removing a brick from each header pile
4960
- * - getting the layers of groups is done by simply letting the brick fall and checking the result
4961
- *
4962
- * Example:
4963
- * We have 2 groups ([A=>E] and [C=>D]), and we want to group headers [C=>F]
4964
- *
4965
- * Headers : A B C D E F G A B C D E F G A B C D E F G
4966
- * Headers to group: [C=>D]: _ _ [C=>F]: _ _ _ _
4967
- * | | ==> | | | | ==> ==> Result: 3 groups
4968
- * | | ˅ ˅ | | _ _ - [C=>D]
4969
- * Groups: ˅ ˅ _ _ ˅ | _ _ _ - [C=>E]
4970
- * Groups: _ _ _ _ _ _ _ _ _ _ ˅ _ _ _ _ _ _ - [A=>F]
4971
-
4972
- * @param groups
4973
- * @param start start of the range where to add/remove headers
4974
- * @param end end of the range where to add/remove headers
4975
- * @param delta -1: remove headers, 1: add headers, 0: get layers (don't add/remove anything)
4976
- */
4977
- private bricksFallingAlgorithm;
4978
- private groupHeaders;
4979
- /**
4980
- * Ungroup the given headers. The headers will be taken out of the group they are in. This might split a group into two
4981
- * if the headers were in the middle of a group. If multiple groups contains a header, it will only be taken out of the
4982
- * lowest group in the layering of the groups.
4983
- */
4984
- private unGroupHeaders;
4985
- private moveGroupsOnHeaderInsertion;
4986
- private moveGroupsOnHeaderDeletion;
4987
- private doGroupOverlap;
4988
- private removeDuplicateGroups;
4989
- private findGroupWithStartEnd;
4990
- /**
4991
- * Fold the given group, and all the groups starting at the same index that are contained inside the given group.
4992
- */
4993
- private foldHeaderGroup;
4994
- /**
4995
- * Unfold the given group, and all the groups starting at the same index that contain the given group.
4996
- */
4997
- private unfoldHeaderGroup;
4998
- private getGroupIndex;
4999
- import(data: WorkbookData): void;
5000
- export(data: WorkbookData): void;
5001
- exportForExcel(data: ExcelWorkbookData): void;
5002
- }
5003
-
5004
4930
  interface HeaderSizeState$1 {
5005
4931
  sizes: Record<UID, Record<Dimension, Array<Pixel | undefined>>>;
5006
4932
  }
@@ -5079,7 +5005,7 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
5079
5005
  readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
5080
5006
  allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
5081
5007
  handle(cmd: CoreCommand): void;
5082
- adaptRanges(applyChange: ApplyRangeChange, sheetId: UID): void;
5008
+ adaptRanges(rangeAdapters: RangeAdapterFunctions, sheetId: UID): void;
5083
5009
  getMerges(sheetId: UID): Merge[];
5084
5010
  getMerge({ sheetId, col, row }: CellPosition): Merge | undefined;
5085
5011
  getMergesInZone(sheetId: UID, zone: Zone): Merge[];
@@ -5147,75 +5073,6 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
5147
5073
  exportForExcel(data: ExcelWorkbookData): void;
5148
5074
  }
5149
5075
 
5150
- interface Pivot$1 {
5151
- definition: PivotCoreDefinition;
5152
- formulaId: string;
5153
- }
5154
- interface CoreState {
5155
- nextFormulaId: number;
5156
- pivots: Record<UID, Pivot$1 | undefined>;
5157
- formulaIds: Record<UID, string | undefined>;
5158
- compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula | undefined>>;
5159
- }
5160
- declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
5161
- static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot"];
5162
- readonly nextFormulaId: number;
5163
- readonly pivots: {
5164
- [pivotId: UID]: Pivot$1 | undefined;
5165
- };
5166
- readonly formulaIds: {
5167
- [formulaId: UID]: UID | undefined;
5168
- };
5169
- readonly compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula>>;
5170
- allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
5171
- handle(cmd: CoreCommand): void;
5172
- adaptRanges(applyChange: ApplyRangeChange): void;
5173
- getPivotDisplayName(pivotId: UID): string;
5174
- getPivotName(pivotId: UID): string;
5175
- /**
5176
- * Returns the pivot core definition of the pivot with the given id.
5177
- * Be careful, this is the core definition, this should be used only in a
5178
- * context where the pivot is not loaded yet.
5179
- */
5180
- getPivotCoreDefinition(pivotId: UID): PivotCoreDefinition;
5181
- /**
5182
- * Get the pivot ID (UID) from the formula ID (the one used in the formula)
5183
- */
5184
- getPivotId(formulaId: string): UID | undefined;
5185
- getPivotFormulaId(pivotId: UID): string;
5186
- getPivotIds(): UID[];
5187
- isExistingPivot(pivotId: UID): boolean;
5188
- getMeasureCompiledFormula(measure: PivotCoreMeasure): RangeCompiledFormula;
5189
- private addPivot;
5190
- private compileCalculatedMeasures;
5191
- private insertPivot;
5192
- private resizeSheet;
5193
- private getPivotCore;
5194
- private compileMeasureFormula;
5195
- private replaceMeasureFormula;
5196
- private checkSortedColumnInMeasures;
5197
- private checkDuplicatedMeasureIds;
5198
- /**
5199
- * Import the pivots
5200
- */
5201
- import(data: WorkbookData): void;
5202
- /**
5203
- * Export the pivots
5204
- */
5205
- export(data: WorkbookData): void;
5206
- }
5207
-
5208
- declare class SettingsPlugin extends CorePlugin {
5209
- static getters: readonly ["getLocale"];
5210
- private locale;
5211
- allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.InvalidLocale;
5212
- handle(cmd: CoreCommand): void;
5213
- getLocale(): Locale;
5214
- private changeCellsDateFormatWithLocale;
5215
- import(data: WorkbookData): void;
5216
- export(data: WorkbookData): void;
5217
- }
5218
-
5219
5076
  interface SheetState {
5220
5077
  readonly sheets: Record<UID, Sheet | undefined>;
5221
5078
  readonly orderedSheetIds: UID[];
@@ -5362,26 +5219,6 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
5362
5219
  private checkZonesAreInSheet;
5363
5220
  }
5364
5221
 
5365
- interface TableStylesState {
5366
- readonly styles: {
5367
- [styleId: string]: TableStyle;
5368
- };
5369
- }
5370
- declare class TableStylePlugin extends CorePlugin<TableStylesState> implements TableStylesState {
5371
- static getters: readonly ["getNewCustomTableStyleName", "getTableStyle", "getTableStyles", "isTableStyleEditable"];
5372
- readonly styles: {
5373
- [styleId: string]: TableStyle;
5374
- };
5375
- allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
5376
- handle(cmd: CoreCommand): void;
5377
- getTableStyle(styleId: string): TableStyle;
5378
- getTableStyles(): Record<string, TableStyle>;
5379
- getNewCustomTableStyleName(): string;
5380
- isTableStyleEditable(styleId: string): boolean;
5381
- import(data: WorkbookData): void;
5382
- export(data: WorkbookData): void;
5383
- }
5384
-
5385
5222
  interface TableState {
5386
5223
  tables: Record<UID, Record<TableId, CoreTable | undefined>>;
5387
5224
  nextTableId: number;
@@ -5390,7 +5227,7 @@ declare class TablePlugin extends CorePlugin<TableState> implements TableState {
5390
5227
  static getters: readonly ["getCoreTable", "getCoreTables", "getCoreTableMatchingTopLeft"];
5391
5228
  readonly tables: Record<UID, Record<TableId, CoreTable | undefined>>;
5392
5229
  readonly nextTableId: number;
5393
- adaptRanges(applyChange: ApplyRangeChange, sheetId: UID): void;
5230
+ adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID): void;
5394
5231
  allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
5395
5232
  handle(cmd: CoreCommand): void;
5396
5233
  getCoreTables(sheetId: UID): CoreTable[];
@@ -5437,6 +5274,181 @@ declare class TablePlugin extends CorePlugin<TableState> implements TableState {
5437
5274
  exportForExcel(data: ExcelWorkbookData): void;
5438
5275
  }
5439
5276
 
5277
+ interface State$6 {
5278
+ groups: Record<UID, Record<Dimension, HeaderGroup[]>>;
5279
+ }
5280
+ declare class HeaderGroupingPlugin extends CorePlugin<State$6> {
5281
+ static getters: readonly ["getHeaderGroups", "getGroupsLayers", "getVisibleGroupLayers", "getHeaderGroup", "getHeaderGroupsInZone", "isGroupFolded", "isRowFolded", "isColFolded"];
5282
+ private readonly groups;
5283
+ allowDispatch(cmd: CoreCommand): CommandResult;
5284
+ handle(cmd: CoreCommand): void;
5285
+ getHeaderGroups(sheetId: UID, dim: Dimension): HeaderGroup[];
5286
+ getHeaderGroup(sheetId: UID, dim: Dimension, start: number, end: number): HeaderGroup | undefined;
5287
+ getHeaderGroupsInZone(sheetId: UID, dim: Dimension, zone: Zone): HeaderGroup[];
5288
+ /**
5289
+ * Get all the groups of a sheet in a dimension, and return an array of layers of those groups.
5290
+ *
5291
+ * The layering rules are:
5292
+ * 1) A group containing another group should be on a layer above the group it contains
5293
+ * 2) The widest/highest groups should be on the left/top layer compared to the groups it contains
5294
+ * 3) The group should be on the left/top-most layer possible, barring intersections with other groups (see rules 1 and 2)
5295
+ */
5296
+ getGroupsLayers(sheetId: UID, dimension: Dimension): HeaderGroup[][];
5297
+ /**
5298
+ * Get all the groups of a sheet in a dimension, and return an array of layers of those groups,
5299
+ * excluding the groups that are totally hidden.
5300
+ */
5301
+ getVisibleGroupLayers(sheetId: UID, dimension: Dimension): HeaderGroup[][];
5302
+ isGroupFolded(sheetId: UID, dimension: Dimension, start: number, end: number): boolean;
5303
+ isRowFolded(sheetId: UID, row: HeaderIndex): boolean;
5304
+ isColFolded(sheetId: UID, col: HeaderIndex): boolean;
5305
+ private getGroupId;
5306
+ /**
5307
+ * To get layers of groups, and to add/remove headers from groups, we can see each header of a group as a brick. Each
5308
+ * brick falls down in the pile corresponding to its header, until it hits another brick, or the ground.
5309
+ *
5310
+ * With this abstraction, we can very simply group/ungroup headers from groups, and get the layers of groups.
5311
+ * - grouping headers is done by adding a brick to each header pile
5312
+ * - un-grouping headers is done by removing a brick from each header pile
5313
+ * - getting the layers of groups is done by simply letting the brick fall and checking the result
5314
+ *
5315
+ * Example:
5316
+ * We have 2 groups ([A=>E] and [C=>D]), and we want to group headers [C=>F]
5317
+ *
5318
+ * Headers : A B C D E F G A B C D E F G A B C D E F G
5319
+ * Headers to group: [C=>D]: _ _ [C=>F]: _ _ _ _
5320
+ * | | ==> | | | | ==> ==> Result: 3 groups
5321
+ * | | ˅ ˅ | | _ _ - [C=>D]
5322
+ * Groups: ˅ ˅ _ _ ˅ | _ _ _ - [C=>E]
5323
+ * Groups: _ _ _ _ _ _ _ _ _ _ ˅ _ _ _ _ _ _ - [A=>F]
5324
+
5325
+ * @param groups
5326
+ * @param start start of the range where to add/remove headers
5327
+ * @param end end of the range where to add/remove headers
5328
+ * @param delta -1: remove headers, 1: add headers, 0: get layers (don't add/remove anything)
5329
+ */
5330
+ private bricksFallingAlgorithm;
5331
+ private groupHeaders;
5332
+ /**
5333
+ * Ungroup the given headers. The headers will be taken out of the group they are in. This might split a group into two
5334
+ * if the headers were in the middle of a group. If multiple groups contains a header, it will only be taken out of the
5335
+ * lowest group in the layering of the groups.
5336
+ */
5337
+ private unGroupHeaders;
5338
+ private moveGroupsOnHeaderInsertion;
5339
+ private moveGroupsOnHeaderDeletion;
5340
+ private doGroupOverlap;
5341
+ private removeDuplicateGroups;
5342
+ private findGroupWithStartEnd;
5343
+ /**
5344
+ * Fold the given group, and all the groups starting at the same index that are contained inside the given group.
5345
+ */
5346
+ private foldHeaderGroup;
5347
+ /**
5348
+ * Unfold the given group, and all the groups starting at the same index that contain the given group.
5349
+ */
5350
+ private unfoldHeaderGroup;
5351
+ private getGroupIndex;
5352
+ import(data: WorkbookData): void;
5353
+ export(data: WorkbookData): void;
5354
+ exportForExcel(data: ExcelWorkbookData): void;
5355
+ }
5356
+
5357
+ interface Pivot$1 {
5358
+ definition: PivotCoreDefinition;
5359
+ formulaId: string;
5360
+ }
5361
+ interface MeasureState {
5362
+ formula: RangeCompiledFormula;
5363
+ dependencies: Range[];
5364
+ }
5365
+ interface CoreState {
5366
+ nextFormulaId: number;
5367
+ pivots: Record<UID, Pivot$1 | undefined>;
5368
+ formulaIds: Record<UID, string | undefined>;
5369
+ compiledMeasureFormulas: Record<UID, Record<string, MeasureState | undefined>>;
5370
+ }
5371
+ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
5372
+ static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot", "getMeasureFullDependencies"];
5373
+ readonly nextFormulaId: number;
5374
+ readonly pivots: {
5375
+ [pivotId: UID]: Pivot$1 | undefined;
5376
+ };
5377
+ readonly formulaIds: {
5378
+ [formulaId: UID]: UID | undefined;
5379
+ };
5380
+ readonly compiledMeasureFormulas: Record<UID, Record<string, MeasureState>>;
5381
+ allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
5382
+ handle(cmd: CoreCommand): void;
5383
+ adaptRanges({ applyChange, adaptFormulaString }: RangeAdapterFunctions): void;
5384
+ getPivotDisplayName(pivotId: UID): string;
5385
+ getPivotName(pivotId: UID): string;
5386
+ /**
5387
+ * Returns the pivot core definition of the pivot with the given id.
5388
+ * Be careful, this is the core definition, this should be used only in a
5389
+ * context where the pivot is not loaded yet.
5390
+ */
5391
+ getPivotCoreDefinition(pivotId: UID): PivotCoreDefinition;
5392
+ /**
5393
+ * Get the pivot ID (UID) from the formula ID (the one used in the formula)
5394
+ */
5395
+ getPivotId(formulaId: string): UID | undefined;
5396
+ getPivotFormulaId(pivotId: UID): string;
5397
+ getPivotIds(): UID[];
5398
+ isExistingPivot(pivotId: UID): boolean;
5399
+ getMeasureCompiledFormula(pivotId: UID, measure: PivotCoreMeasure): RangeCompiledFormula;
5400
+ getMeasureFullDependencies(pivotId: UID, measure: PivotCoreMeasure): Range[];
5401
+ private addPivot;
5402
+ private compileCalculatedMeasures;
5403
+ private computeMeasureFullDependencies;
5404
+ private insertPivot;
5405
+ private resizeSheet;
5406
+ private getPivotCore;
5407
+ private compileMeasureFormula;
5408
+ private replaceMeasureFormula;
5409
+ private checkSortedColumnInMeasures;
5410
+ private checkDuplicatedMeasureIds;
5411
+ /**
5412
+ * Import the pivots
5413
+ */
5414
+ import(data: WorkbookData): void;
5415
+ /**
5416
+ * Export the pivots
5417
+ */
5418
+ export(data: WorkbookData): void;
5419
+ }
5420
+
5421
+ declare class SettingsPlugin extends CorePlugin {
5422
+ static getters: readonly ["getLocale"];
5423
+ private locale;
5424
+ allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.InvalidLocale;
5425
+ handle(cmd: CoreCommand): void;
5426
+ getLocale(): Locale;
5427
+ private changeCellsDateFormatWithLocale;
5428
+ import(data: WorkbookData): void;
5429
+ export(data: WorkbookData): void;
5430
+ }
5431
+
5432
+ interface TableStylesState {
5433
+ readonly styles: {
5434
+ [styleId: string]: TableStyle;
5435
+ };
5436
+ }
5437
+ declare class TableStylePlugin extends CorePlugin<TableStylesState> implements TableStylesState {
5438
+ static getters: readonly ["getNewCustomTableStyleName", "getTableStyle", "getTableStyles", "isTableStyleEditable"];
5439
+ readonly styles: {
5440
+ [styleId: string]: TableStyle;
5441
+ };
5442
+ allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
5443
+ handle(cmd: CoreCommand): void;
5444
+ getTableStyle(styleId: string): TableStyle;
5445
+ getTableStyles(): Record<string, TableStyle>;
5446
+ getNewCustomTableStyleName(): string;
5447
+ isTableStyleEditable(styleId: string): boolean;
5448
+ import(data: WorkbookData): void;
5449
+ export(data: WorkbookData): void;
5450
+ }
5451
+
5440
5452
  interface CoreViewPluginConfig {
5441
5453
  readonly getters: Getters;
5442
5454
  readonly stateObserver: StateObserver;
@@ -6385,7 +6397,7 @@ type PluginGetters<Plugin extends {
6385
6397
  new (...args: unknown[]): any;
6386
6398
  getters: readonly string[];
6387
6399
  }> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
6388
- type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
6400
+ type RangeAdapterGetters = Pick<RangeAdapterPlugin, GetterNames<typeof RangeAdapterPlugin>>;
6389
6401
  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 FigurePlugin> & RangeAdapterGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof TablePlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin> & PluginGetters<typeof PivotCorePlugin>;
6390
6402
  type Getters = {
6391
6403
  isReadonly: () => boolean;
@@ -6990,7 +7002,7 @@ interface ChartBuilder {
6990
7002
  createChart: (definition: ChartDefinition, sheetId: UID, getters: CoreGetters) => AbstractChart;
6991
7003
  getChartRuntime: (chart: AbstractChart, getters: Getters) => ChartRuntime;
6992
7004
  validateChartDefinition(validator: Validator, definition: ChartDefinition): CommandResult | CommandResult[];
6993
- transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyRange: RangeAdapter$1): ChartDefinition;
7005
+ transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyRange: RangeAdapter): ChartDefinition;
6994
7006
  getChartDefinitionFromContextCreation(context: ChartCreationContext): ChartDefinition;
6995
7007
  sequence: number;
6996
7008
  dataSeriesLimit?: number;
@@ -11497,7 +11509,7 @@ declare class BarChart extends AbstractChart {
11497
11509
  readonly horizontal?: boolean;
11498
11510
  readonly showValues?: boolean;
11499
11511
  constructor(definition: BarChartDefinition, sheetId: UID, getters: CoreGetters);
11500
- static transformDefinition(chartSheetId: UID, definition: BarChartDefinition, applyChange: RangeAdapter$1): BarChartDefinition;
11512
+ static transformDefinition(chartSheetId: UID, definition: BarChartDefinition, applyChange: RangeAdapter): BarChartDefinition;
11501
11513
  static validateChartDefinition(validator: Validator, definition: BarChartDefinition): CommandResult | CommandResult[];
11502
11514
  static getDefinitionFromContextCreation(context: ChartCreationContext): BarChartDefinition;
11503
11515
  getContextCreation(): ChartCreationContext;
@@ -11506,7 +11518,7 @@ declare class BarChart extends AbstractChart {
11506
11518
  getDefinition(): BarChartDefinition;
11507
11519
  private getDefinitionWithSpecificDataSets;
11508
11520
  getDefinitionForExcel(): ExcelChartDefinition | undefined;
11509
- updateRanges(applyChange: ApplyRangeChange): BarChart;
11521
+ updateRanges({ applyChange }: RangeAdapterFunctions): BarChart;
11510
11522
  }
11511
11523
 
11512
11524
  declare class GaugeChart extends AbstractChart {
@@ -11516,7 +11528,7 @@ declare class GaugeChart extends AbstractChart {
11516
11528
  readonly type = "gauge";
11517
11529
  constructor(definition: GaugeChartDefinition, sheetId: UID, getters: CoreGetters);
11518
11530
  static validateChartDefinition(validator: Validator, definition: GaugeChartDefinition): CommandResult | CommandResult[];
11519
- static transformDefinition(chartSheetId: UID, definition: GaugeChartDefinition, applyChange: RangeAdapter$1): GaugeChartDefinition;
11531
+ static transformDefinition(chartSheetId: UID, definition: GaugeChartDefinition, applyChange: RangeAdapter): GaugeChartDefinition;
11520
11532
  static getDefinitionFromContextCreation(context: ChartCreationContext): GaugeChartDefinition;
11521
11533
  duplicateInDuplicatedSheet(newSheetId: UID): GaugeChart;
11522
11534
  copyInSheetId(sheetId: UID): GaugeChart;
@@ -11524,7 +11536,7 @@ declare class GaugeChart extends AbstractChart {
11524
11536
  private getDefinitionWithSpecificRanges;
11525
11537
  getDefinitionForExcel(): undefined;
11526
11538
  getContextCreation(): ChartCreationContext;
11527
- updateRanges(applyChange: ApplyRangeChange, sheetId: UID, adaptSheetName: AdaptSheetName): GaugeChart;
11539
+ updateRanges({ applyChange, adaptFormulaString }: RangeAdapterFunctions): GaugeChart;
11528
11540
  }
11529
11541
 
11530
11542
  declare class LineChart extends AbstractChart {
@@ -11545,12 +11557,12 @@ declare class LineChart extends AbstractChart {
11545
11557
  readonly hideDataMarkers?: boolean;
11546
11558
  constructor(definition: LineChartDefinition, sheetId: UID, getters: CoreGetters);
11547
11559
  static validateChartDefinition(validator: Validator, definition: LineChartDefinition): CommandResult | CommandResult[];
11548
- static transformDefinition(chartSheetId: UID, definition: LineChartDefinition, applyChange: RangeAdapter$1): LineChartDefinition;
11560
+ static transformDefinition(chartSheetId: UID, definition: LineChartDefinition, applyChange: RangeAdapter): LineChartDefinition;
11549
11561
  static getDefinitionFromContextCreation(context: ChartCreationContext): LineChartDefinition;
11550
11562
  getDefinition(): LineChartDefinition;
11551
11563
  private getDefinitionWithSpecificDataSets;
11552
11564
  getContextCreation(): ChartCreationContext;
11553
- updateRanges(applyChange: ApplyRangeChange): LineChart;
11565
+ updateRanges({ applyChange }: RangeAdapterFunctions): LineChart;
11554
11566
  getDefinitionForExcel(): ExcelChartDefinition | undefined;
11555
11567
  duplicateInDuplicatedSheet(newSheetId: UID): LineChart;
11556
11568
  copyInSheetId(sheetId: UID): LineChart;
@@ -11568,7 +11580,7 @@ declare class PieChart extends AbstractChart {
11568
11580
  readonly showValues?: boolean;
11569
11581
  readonly pieHolePercentage?: number;
11570
11582
  constructor(definition: PieChartDefinition, sheetId: UID, getters: CoreGetters);
11571
- static transformDefinition(chartSheetId: UID, definition: PieChartDefinition, applyChange: RangeAdapter$1): PieChartDefinition;
11583
+ static transformDefinition(chartSheetId: UID, definition: PieChartDefinition, applyChange: RangeAdapter): PieChartDefinition;
11572
11584
  static validateChartDefinition(validator: Validator, definition: PieChartDefinition): CommandResult | CommandResult[];
11573
11585
  static getDefinitionFromContextCreation(context: ChartCreationContext): PieChartDefinition;
11574
11586
  getDefinition(): PieChartDefinition;
@@ -11577,7 +11589,7 @@ declare class PieChart extends AbstractChart {
11577
11589
  duplicateInDuplicatedSheet(newSheetId: UID): PieChart;
11578
11590
  copyInSheetId(sheetId: UID): PieChart;
11579
11591
  getDefinitionForExcel(): ExcelChartDefinition | undefined;
11580
- updateRanges(applyChange: ApplyRangeChange): PieChart;
11592
+ updateRanges({ applyChange }: RangeAdapterFunctions): PieChart;
11581
11593
  }
11582
11594
 
11583
11595
  declare class ScorecardChart extends AbstractChart {
@@ -11596,14 +11608,14 @@ declare class ScorecardChart extends AbstractChart {
11596
11608
  constructor(definition: ScorecardChartDefinition, sheetId: UID, getters: CoreGetters);
11597
11609
  static validateChartDefinition(validator: Validator, definition: ScorecardChartDefinition): CommandResult | CommandResult[];
11598
11610
  static getDefinitionFromContextCreation(context: ChartCreationContext): ScorecardChartDefinition;
11599
- static transformDefinition(chartSheetId: UID, definition: ScorecardChartDefinition, applyChange: RangeAdapter$1): ScorecardChartDefinition;
11611
+ static transformDefinition(chartSheetId: UID, definition: ScorecardChartDefinition, applyChange: RangeAdapter): ScorecardChartDefinition;
11600
11612
  duplicateInDuplicatedSheet(newSheetId: UID): ScorecardChart;
11601
11613
  copyInSheetId(sheetId: UID): ScorecardChart;
11602
11614
  getDefinition(): ScorecardChartDefinition;
11603
11615
  getContextCreation(): ChartCreationContext;
11604
11616
  private getDefinitionWithSpecificRanges;
11605
11617
  getDefinitionForExcel(): undefined;
11606
- updateRanges(applyChange: ApplyRangeChange): ScorecardChart;
11618
+ updateRanges({ applyChange }: RangeAdapterFunctions): ScorecardChart;
11607
11619
  }
11608
11620
 
11609
11621
  declare class WaterfallChart extends AbstractChart {
@@ -11625,7 +11637,7 @@ declare class WaterfallChart extends AbstractChart {
11625
11637
  readonly axesDesign?: AxesDesign;
11626
11638
  readonly showValues?: boolean;
11627
11639
  constructor(definition: WaterfallChartDefinition, sheetId: UID, getters: CoreGetters);
11628
- static transformDefinition(chartSheetId: UID, definition: WaterfallChartDefinition, applyChange: RangeAdapter$1): WaterfallChartDefinition;
11640
+ static transformDefinition(chartSheetId: UID, definition: WaterfallChartDefinition, applyChange: RangeAdapter): WaterfallChartDefinition;
11629
11641
  static validateChartDefinition(validator: Validator, definition: WaterfallChartDefinition): CommandResult | CommandResult[];
11630
11642
  static getDefinitionFromContextCreation(context: ChartCreationContext): WaterfallChartDefinition;
11631
11643
  getContextCreation(): ChartCreationContext;
@@ -11634,7 +11646,7 @@ declare class WaterfallChart extends AbstractChart {
11634
11646
  getDefinition(): WaterfallChartDefinition;
11635
11647
  private getDefinitionWithSpecificDataSets;
11636
11648
  getDefinitionForExcel(): ExcelChartDefinition | undefined;
11637
- updateRanges(applyChange: ApplyRangeChange): WaterfallChart;
11649
+ updateRanges({ applyChange }: RangeAdapterFunctions): WaterfallChart;
11638
11650
  }
11639
11651
 
11640
11652
  declare function getPivotHighlights(getters: Getters, pivotId: UID): Highlight$1[];
@@ -13143,7 +13155,7 @@ declare const chartHelpers: {
13143
13155
  createDataSets(getters: CoreGetters, customizedDataSets: CustomizedDataSet[], sheetId: UID, dataSetsHaveTitle: boolean): DataSet[];
13144
13156
  toExcelDataset(getters: CoreGetters, ds: DataSet): ExcelChartDataset;
13145
13157
  toExcelLabelRange(getters: CoreGetters, labelRange: Range | undefined, shouldRemoveFirstLabel?: boolean): string | undefined;
13146
- transformChartDefinitionWithDataSetsWithZone<T extends ChartWithDataSetDefinition>(chartSheetId: UID, definition: T, applyChange: RangeAdapter$1): T;
13158
+ transformChartDefinitionWithDataSetsWithZone<T extends ChartWithDataSetDefinition>(chartSheetId: UID, definition: T, applyChange: RangeAdapter): T;
13147
13159
  chartFontColor(backgroundColor: Color | undefined): Color;
13148
13160
  chartMutedFontColor(backgroundColor: Color | undefined): Color;
13149
13161
  checkDataset(definition: ChartWithDataSetDefinition): CommandResult;
@@ -13174,7 +13186,7 @@ declare const chartHelpers: {
13174
13186
  chartFactory(getters: CoreGetters): (id: UID, definition: ChartDefinition, sheetId: UID) => AbstractChart;
13175
13187
  chartRuntimeFactory(getters: Getters): (chart: AbstractChart) => ChartRuntime;
13176
13188
  validateChartDefinition(validator: Validator, definition: ChartDefinition): CommandResult | CommandResult[];
13177
- transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyrange: RangeAdapter$1): ChartDefinition;
13189
+ transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyrange: RangeAdapter): ChartDefinition;
13178
13190
  getSmartChartDefinition(zone: Zone, getters: Getters): ChartDefinition;
13179
13191
  chartToImageUrl(runtime: ChartRuntime, figure: Figure, type: ChartType): string | undefined;
13180
13192
  chartToImageFile(runtime: ChartRuntime, figure: Figure, type: ChartType): Promise<File | undefined>;
@@ -13205,4 +13217,4 @@ declare const chartHelpers: {
13205
13217
  WaterfallChart: typeof WaterfallChart;
13206
13218
  };
13207
13219
 
13208
- export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AdaptSheetName, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorOffset, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescrWithOpacity, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelledReason, Cell, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartAxisFormats, ChartCreationContext, ChartDatasetOrientation, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartRuntimeGenerationArgs, ChartStyle, ChartType, ChartWithAxisDefinition, ChartWithDataSetDefinition, CleanClipBoardHighlightCommand, ClearCellCommand, ClearCellsCommand, ClearFormattingCommand, Client, ClientDisconnectedError, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClientWithColor, ClientWithPosition, ClipboardCell, ClipboardCellData, ClipboardCopyOptions, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, ColorSheetCommand, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CommonPivotCoreDefinition, CompiledFormula, ComposerFocusType, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormatRuleInternal, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CoreViewPlugin, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, CreateTableStyleCommand, CriterionFilter, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DataBarRule, DataBarRuleInternal, DataFilterValue, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, DatasetValues, DateCriterionValue, DateIncrementModifier, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, DeleteUnfilteredContentCommand, Dependencies, Dimension, DimensionTree, DimensionTreeNode, Direction$1 as Direction, DispatchResult, DuplicatePivotCommand, DuplicatePivotInNewSheetCommand, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EditionMode, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluateChartsCommand, EvaluatedCell, EvaluatedCriterion, EvaluatedDateCriterion, EvaluationError, ExcelChartDataset, ExcelChartDefinition, ExcelChartTrendConfiguration, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelTrendlineType, ExcelWorkbookData, ExpressionRule, Figure, FigureData, FigureInfo, FigureSize, FigureUI, Filter, FilterCriterionType, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GeneratorCell, GenericCriterion, GenericCriterionType, GenericDateCriterion, GenericDefinition, GetSymbolValue, Getters, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, InsertPivotWithTableCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, LocalTransportService, Locale, LocaleCode, LocaleFormat, LookupCaches, Matrix, Maybe, MenuMouseEvent, Merge, MinimalClipboardData, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, OSClipboardContent, Offset, OperationSequenceNode, OrderedLayers, PaintFormat, PaneDivision, ParsedOSClipboardContent, ParsedOsClipboardContentWithImageData, PasteCommand, PasteFromOSClipboardCommand, Pivot, PivotColRowDomain, PivotCollapsedDomains, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotDimension$1 as PivotDimension, PivotDomain, PivotEmptyCell, PivotField, PivotFields, PivotHeaderCell, PivotMeasure, PivotMeasureDisplay, PivotMeasureDisplayType, PivotMeasureHeaderCell, PivotNode, PivotRuntimeDefinition, PivotSortedColumn, PivotStartPresenceTracking, PivotStopPresenceTracking, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, PivotTimeAdapterNotNull, PivotValueCell, PivotVisibilityOptions, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeAdapter$1 as RangeAdapter, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangeStringOptions, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand, RenderingBorder, RenderingBox, RenderingGridIcon, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection$1 as Selection, SelectionStep, SetBorderCommand, SetBorderTargetCommand, SetContextualFormatCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetEditingCommand, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitPivotFormulaCommand, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableBorder, TableConfig, TableData$1 as TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, TitleDesign, ToggleCheckboxCommand, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrendConfiguration, TrendType, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdatePivotCommand, UpdateTableCommand, Validation, ValuesFilter, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, availableConditionalFormatOperators, availableDataValidationOperators, availableFiltersOperators, borderStyles, canExecuteInReadonly, chartHelpers, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, filterDateCriterionOperators, filterNumberCriterionOperators, filterTextCriterionOperators, findCellInNewZone, functionCache, helpers, hooks, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
13220
+ export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AdaptSheetName, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorOffset, AnchorZone, ApplyFormulaRangeChangeResult, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescrWithOpacity, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelledReason, Cell, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartAxisFormats, ChartCreationContext, ChartDatasetOrientation, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartRuntimeGenerationArgs, ChartStyle, ChartType, ChartWithAxisDefinition, ChartWithDataSetDefinition, CleanClipBoardHighlightCommand, ClearCellCommand, ClearCellsCommand, ClearFormattingCommand, Client, ClientDisconnectedError, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClientWithColor, ClientWithPosition, ClipboardCell, ClipboardCellData, ClipboardCopyOptions, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, ColorSheetCommand, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CommonPivotCoreDefinition, CompiledFormula, ComposerFocusType, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormatRuleInternal, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CoreViewPlugin, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, CreateTableStyleCommand, CriterionFilter, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DataBarRule, DataBarRuleInternal, DataFilterValue, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, DatasetValues, DateCriterionValue, DateIncrementModifier, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, DeleteUnfilteredContentCommand, Dependencies, Dimension, DimensionTree, DimensionTreeNode, Direction$1 as Direction, DispatchResult, DuplicatePivotCommand, DuplicatePivotInNewSheetCommand, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EditionMode, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluateChartsCommand, EvaluatedCell, EvaluatedCriterion, EvaluatedDateCriterion, EvaluationError, ExcelChartDataset, ExcelChartDefinition, ExcelChartTrendConfiguration, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelTrendlineType, ExcelWorkbookData, ExpressionRule, Figure, FigureData, FigureInfo, FigureSize, FigureUI, Filter, FilterCriterionType, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GeneratorCell, GenericCriterion, GenericCriterionType, GenericDateCriterion, GenericDefinition, GetSymbolValue, Getters, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, InsertPivotWithTableCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, LocalTransportService, Locale, LocaleCode, LocaleFormat, LookupCaches, Matrix, Maybe, MenuMouseEvent, Merge, MinimalClipboardData, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, OSClipboardContent, Offset, OperationSequenceNode, OrderedLayers, PaintFormat, PaneDivision, ParsedOSClipboardContent, ParsedOsClipboardContentWithImageData, PasteCommand, PasteFromOSClipboardCommand, Pivot, PivotColRowDomain, PivotCollapsedDomains, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotDimension$1 as PivotDimension, PivotDomain, PivotEmptyCell, PivotField, PivotFields, PivotHeaderCell, PivotMeasure, PivotMeasureDisplay, PivotMeasureDisplayType, PivotMeasureHeaderCell, PivotNode, PivotRuntimeDefinition, PivotSortedColumn, PivotStartPresenceTracking, PivotStopPresenceTracking, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, PivotTimeAdapterNotNull, PivotValueCell, PivotVisibilityOptions, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeAdapter, RangeAdapterFunctions, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangeStringOptions, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand, RenderingBorder, RenderingBox, RenderingGridIcon, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection$1 as Selection, SelectionStep, SetBorderCommand, SetBorderTargetCommand, SetContextualFormatCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetEditingCommand, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitPivotFormulaCommand, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableBorder, TableConfig, TableData$1 as TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, TitleDesign, ToggleCheckboxCommand, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrendConfiguration, TrendType, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdatePivotCommand, UpdateTableCommand, Validation, ValuesFilter, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, availableConditionalFormatOperators, availableDataValidationOperators, availableFiltersOperators, borderStyles, canExecuteInReadonly, chartHelpers, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, filterDateCriterionOperators, filterNumberCriterionOperators, filterTextCriterionOperators, findCellInNewZone, functionCache, helpers, hooks, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };