@odoo/o-spreadsheet 18.4.24 → 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,81 +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 MeasureState {
5155
- formula: RangeCompiledFormula;
5156
- dependencies: Range[];
5157
- }
5158
- interface CoreState {
5159
- nextFormulaId: number;
5160
- pivots: Record<UID, Pivot$1 | undefined>;
5161
- formulaIds: Record<UID, string | undefined>;
5162
- compiledMeasureFormulas: Record<UID, Record<string, MeasureState | undefined>>;
5163
- }
5164
- declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
5165
- static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot", "getMeasureFullDependencies"];
5166
- readonly nextFormulaId: number;
5167
- readonly pivots: {
5168
- [pivotId: UID]: Pivot$1 | undefined;
5169
- };
5170
- readonly formulaIds: {
5171
- [formulaId: UID]: UID | undefined;
5172
- };
5173
- readonly compiledMeasureFormulas: Record<UID, Record<string, MeasureState>>;
5174
- allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
5175
- handle(cmd: CoreCommand): void;
5176
- adaptRanges(applyChange: ApplyRangeChange): void;
5177
- getPivotDisplayName(pivotId: UID): string;
5178
- getPivotName(pivotId: UID): string;
5179
- /**
5180
- * Returns the pivot core definition of the pivot with the given id.
5181
- * Be careful, this is the core definition, this should be used only in a
5182
- * context where the pivot is not loaded yet.
5183
- */
5184
- getPivotCoreDefinition(pivotId: UID): PivotCoreDefinition;
5185
- /**
5186
- * Get the pivot ID (UID) from the formula ID (the one used in the formula)
5187
- */
5188
- getPivotId(formulaId: string): UID | undefined;
5189
- getPivotFormulaId(pivotId: UID): string;
5190
- getPivotIds(): UID[];
5191
- isExistingPivot(pivotId: UID): boolean;
5192
- getMeasureCompiledFormula(pivotId: UID, measure: PivotCoreMeasure): RangeCompiledFormula;
5193
- getMeasureFullDependencies(pivotId: UID, measure: PivotCoreMeasure): Range[];
5194
- private addPivot;
5195
- private compileCalculatedMeasures;
5196
- private computeMeasureFullDependencies;
5197
- private insertPivot;
5198
- private resizeSheet;
5199
- private getPivotCore;
5200
- private compileMeasureFormula;
5201
- private replaceMeasureFormula;
5202
- private checkSortedColumnInMeasures;
5203
- private checkDuplicatedMeasureIds;
5204
- /**
5205
- * Import the pivots
5206
- */
5207
- import(data: WorkbookData): void;
5208
- /**
5209
- * Export the pivots
5210
- */
5211
- export(data: WorkbookData): void;
5212
- }
5213
-
5214
- declare class SettingsPlugin extends CorePlugin {
5215
- static getters: readonly ["getLocale"];
5216
- private locale;
5217
- allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.InvalidLocale;
5218
- handle(cmd: CoreCommand): void;
5219
- getLocale(): Locale;
5220
- private changeCellsDateFormatWithLocale;
5221
- import(data: WorkbookData): void;
5222
- export(data: WorkbookData): void;
5223
- }
5224
-
5225
5076
  interface SheetState {
5226
5077
  readonly sheets: Record<UID, Sheet | undefined>;
5227
5078
  readonly orderedSheetIds: UID[];
@@ -5368,26 +5219,6 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
5368
5219
  private checkZonesAreInSheet;
5369
5220
  }
5370
5221
 
5371
- interface TableStylesState {
5372
- readonly styles: {
5373
- [styleId: string]: TableStyle;
5374
- };
5375
- }
5376
- declare class TableStylePlugin extends CorePlugin<TableStylesState> implements TableStylesState {
5377
- static getters: readonly ["getNewCustomTableStyleName", "getTableStyle", "getTableStyles", "isTableStyleEditable"];
5378
- readonly styles: {
5379
- [styleId: string]: TableStyle;
5380
- };
5381
- allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
5382
- handle(cmd: CoreCommand): void;
5383
- getTableStyle(styleId: string): TableStyle;
5384
- getTableStyles(): Record<string, TableStyle>;
5385
- getNewCustomTableStyleName(): string;
5386
- isTableStyleEditable(styleId: string): boolean;
5387
- import(data: WorkbookData): void;
5388
- export(data: WorkbookData): void;
5389
- }
5390
-
5391
5222
  interface TableState {
5392
5223
  tables: Record<UID, Record<TableId, CoreTable | undefined>>;
5393
5224
  nextTableId: number;
@@ -5396,7 +5227,7 @@ declare class TablePlugin extends CorePlugin<TableState> implements TableState {
5396
5227
  static getters: readonly ["getCoreTable", "getCoreTables", "getCoreTableMatchingTopLeft"];
5397
5228
  readonly tables: Record<UID, Record<TableId, CoreTable | undefined>>;
5398
5229
  readonly nextTableId: number;
5399
- adaptRanges(applyChange: ApplyRangeChange, sheetId: UID): void;
5230
+ adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID): void;
5400
5231
  allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
5401
5232
  handle(cmd: CoreCommand): void;
5402
5233
  getCoreTables(sheetId: UID): CoreTable[];
@@ -5443,6 +5274,181 @@ declare class TablePlugin extends CorePlugin<TableState> implements TableState {
5443
5274
  exportForExcel(data: ExcelWorkbookData): void;
5444
5275
  }
5445
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
+
5446
5452
  interface CoreViewPluginConfig {
5447
5453
  readonly getters: Getters;
5448
5454
  readonly stateObserver: StateObserver;
@@ -6391,7 +6397,7 @@ type PluginGetters<Plugin extends {
6391
6397
  new (...args: unknown[]): any;
6392
6398
  getters: readonly string[];
6393
6399
  }> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
6394
- type RangeAdapterGetters = Pick<RangeAdapter, GetterNames<typeof RangeAdapter>>;
6400
+ type RangeAdapterGetters = Pick<RangeAdapterPlugin, GetterNames<typeof RangeAdapterPlugin>>;
6395
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>;
6396
6402
  type Getters = {
6397
6403
  isReadonly: () => boolean;
@@ -6996,7 +7002,7 @@ interface ChartBuilder {
6996
7002
  createChart: (definition: ChartDefinition, sheetId: UID, getters: CoreGetters) => AbstractChart;
6997
7003
  getChartRuntime: (chart: AbstractChart, getters: Getters) => ChartRuntime;
6998
7004
  validateChartDefinition(validator: Validator, definition: ChartDefinition): CommandResult | CommandResult[];
6999
- transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyRange: RangeAdapter$1): ChartDefinition;
7005
+ transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyRange: RangeAdapter): ChartDefinition;
7000
7006
  getChartDefinitionFromContextCreation(context: ChartCreationContext): ChartDefinition;
7001
7007
  sequence: number;
7002
7008
  dataSeriesLimit?: number;
@@ -11503,7 +11509,7 @@ declare class BarChart extends AbstractChart {
11503
11509
  readonly horizontal?: boolean;
11504
11510
  readonly showValues?: boolean;
11505
11511
  constructor(definition: BarChartDefinition, sheetId: UID, getters: CoreGetters);
11506
- static transformDefinition(chartSheetId: UID, definition: BarChartDefinition, applyChange: RangeAdapter$1): BarChartDefinition;
11512
+ static transformDefinition(chartSheetId: UID, definition: BarChartDefinition, applyChange: RangeAdapter): BarChartDefinition;
11507
11513
  static validateChartDefinition(validator: Validator, definition: BarChartDefinition): CommandResult | CommandResult[];
11508
11514
  static getDefinitionFromContextCreation(context: ChartCreationContext): BarChartDefinition;
11509
11515
  getContextCreation(): ChartCreationContext;
@@ -11512,7 +11518,7 @@ declare class BarChart extends AbstractChart {
11512
11518
  getDefinition(): BarChartDefinition;
11513
11519
  private getDefinitionWithSpecificDataSets;
11514
11520
  getDefinitionForExcel(): ExcelChartDefinition | undefined;
11515
- updateRanges(applyChange: ApplyRangeChange): BarChart;
11521
+ updateRanges({ applyChange }: RangeAdapterFunctions): BarChart;
11516
11522
  }
11517
11523
 
11518
11524
  declare class GaugeChart extends AbstractChart {
@@ -11522,7 +11528,7 @@ declare class GaugeChart extends AbstractChart {
11522
11528
  readonly type = "gauge";
11523
11529
  constructor(definition: GaugeChartDefinition, sheetId: UID, getters: CoreGetters);
11524
11530
  static validateChartDefinition(validator: Validator, definition: GaugeChartDefinition): CommandResult | CommandResult[];
11525
- static transformDefinition(chartSheetId: UID, definition: GaugeChartDefinition, applyChange: RangeAdapter$1): GaugeChartDefinition;
11531
+ static transformDefinition(chartSheetId: UID, definition: GaugeChartDefinition, applyChange: RangeAdapter): GaugeChartDefinition;
11526
11532
  static getDefinitionFromContextCreation(context: ChartCreationContext): GaugeChartDefinition;
11527
11533
  duplicateInDuplicatedSheet(newSheetId: UID): GaugeChart;
11528
11534
  copyInSheetId(sheetId: UID): GaugeChart;
@@ -11530,7 +11536,7 @@ declare class GaugeChart extends AbstractChart {
11530
11536
  private getDefinitionWithSpecificRanges;
11531
11537
  getDefinitionForExcel(): undefined;
11532
11538
  getContextCreation(): ChartCreationContext;
11533
- updateRanges(applyChange: ApplyRangeChange, sheetId: UID, adaptSheetName: AdaptSheetName): GaugeChart;
11539
+ updateRanges({ applyChange, adaptFormulaString }: RangeAdapterFunctions): GaugeChart;
11534
11540
  }
11535
11541
 
11536
11542
  declare class LineChart extends AbstractChart {
@@ -11551,12 +11557,12 @@ declare class LineChart extends AbstractChart {
11551
11557
  readonly hideDataMarkers?: boolean;
11552
11558
  constructor(definition: LineChartDefinition, sheetId: UID, getters: CoreGetters);
11553
11559
  static validateChartDefinition(validator: Validator, definition: LineChartDefinition): CommandResult | CommandResult[];
11554
- static transformDefinition(chartSheetId: UID, definition: LineChartDefinition, applyChange: RangeAdapter$1): LineChartDefinition;
11560
+ static transformDefinition(chartSheetId: UID, definition: LineChartDefinition, applyChange: RangeAdapter): LineChartDefinition;
11555
11561
  static getDefinitionFromContextCreation(context: ChartCreationContext): LineChartDefinition;
11556
11562
  getDefinition(): LineChartDefinition;
11557
11563
  private getDefinitionWithSpecificDataSets;
11558
11564
  getContextCreation(): ChartCreationContext;
11559
- updateRanges(applyChange: ApplyRangeChange): LineChart;
11565
+ updateRanges({ applyChange }: RangeAdapterFunctions): LineChart;
11560
11566
  getDefinitionForExcel(): ExcelChartDefinition | undefined;
11561
11567
  duplicateInDuplicatedSheet(newSheetId: UID): LineChart;
11562
11568
  copyInSheetId(sheetId: UID): LineChart;
@@ -11574,7 +11580,7 @@ declare class PieChart extends AbstractChart {
11574
11580
  readonly showValues?: boolean;
11575
11581
  readonly pieHolePercentage?: number;
11576
11582
  constructor(definition: PieChartDefinition, sheetId: UID, getters: CoreGetters);
11577
- static transformDefinition(chartSheetId: UID, definition: PieChartDefinition, applyChange: RangeAdapter$1): PieChartDefinition;
11583
+ static transformDefinition(chartSheetId: UID, definition: PieChartDefinition, applyChange: RangeAdapter): PieChartDefinition;
11578
11584
  static validateChartDefinition(validator: Validator, definition: PieChartDefinition): CommandResult | CommandResult[];
11579
11585
  static getDefinitionFromContextCreation(context: ChartCreationContext): PieChartDefinition;
11580
11586
  getDefinition(): PieChartDefinition;
@@ -11583,7 +11589,7 @@ declare class PieChart extends AbstractChart {
11583
11589
  duplicateInDuplicatedSheet(newSheetId: UID): PieChart;
11584
11590
  copyInSheetId(sheetId: UID): PieChart;
11585
11591
  getDefinitionForExcel(): ExcelChartDefinition | undefined;
11586
- updateRanges(applyChange: ApplyRangeChange): PieChart;
11592
+ updateRanges({ applyChange }: RangeAdapterFunctions): PieChart;
11587
11593
  }
11588
11594
 
11589
11595
  declare class ScorecardChart extends AbstractChart {
@@ -11602,14 +11608,14 @@ declare class ScorecardChart extends AbstractChart {
11602
11608
  constructor(definition: ScorecardChartDefinition, sheetId: UID, getters: CoreGetters);
11603
11609
  static validateChartDefinition(validator: Validator, definition: ScorecardChartDefinition): CommandResult | CommandResult[];
11604
11610
  static getDefinitionFromContextCreation(context: ChartCreationContext): ScorecardChartDefinition;
11605
- static transformDefinition(chartSheetId: UID, definition: ScorecardChartDefinition, applyChange: RangeAdapter$1): ScorecardChartDefinition;
11611
+ static transformDefinition(chartSheetId: UID, definition: ScorecardChartDefinition, applyChange: RangeAdapter): ScorecardChartDefinition;
11606
11612
  duplicateInDuplicatedSheet(newSheetId: UID): ScorecardChart;
11607
11613
  copyInSheetId(sheetId: UID): ScorecardChart;
11608
11614
  getDefinition(): ScorecardChartDefinition;
11609
11615
  getContextCreation(): ChartCreationContext;
11610
11616
  private getDefinitionWithSpecificRanges;
11611
11617
  getDefinitionForExcel(): undefined;
11612
- updateRanges(applyChange: ApplyRangeChange): ScorecardChart;
11618
+ updateRanges({ applyChange }: RangeAdapterFunctions): ScorecardChart;
11613
11619
  }
11614
11620
 
11615
11621
  declare class WaterfallChart extends AbstractChart {
@@ -11631,7 +11637,7 @@ declare class WaterfallChart extends AbstractChart {
11631
11637
  readonly axesDesign?: AxesDesign;
11632
11638
  readonly showValues?: boolean;
11633
11639
  constructor(definition: WaterfallChartDefinition, sheetId: UID, getters: CoreGetters);
11634
- static transformDefinition(chartSheetId: UID, definition: WaterfallChartDefinition, applyChange: RangeAdapter$1): WaterfallChartDefinition;
11640
+ static transformDefinition(chartSheetId: UID, definition: WaterfallChartDefinition, applyChange: RangeAdapter): WaterfallChartDefinition;
11635
11641
  static validateChartDefinition(validator: Validator, definition: WaterfallChartDefinition): CommandResult | CommandResult[];
11636
11642
  static getDefinitionFromContextCreation(context: ChartCreationContext): WaterfallChartDefinition;
11637
11643
  getContextCreation(): ChartCreationContext;
@@ -11640,7 +11646,7 @@ declare class WaterfallChart extends AbstractChart {
11640
11646
  getDefinition(): WaterfallChartDefinition;
11641
11647
  private getDefinitionWithSpecificDataSets;
11642
11648
  getDefinitionForExcel(): ExcelChartDefinition | undefined;
11643
- updateRanges(applyChange: ApplyRangeChange): WaterfallChart;
11649
+ updateRanges({ applyChange }: RangeAdapterFunctions): WaterfallChart;
11644
11650
  }
11645
11651
 
11646
11652
  declare function getPivotHighlights(getters: Getters, pivotId: UID): Highlight$1[];
@@ -13149,7 +13155,7 @@ declare const chartHelpers: {
13149
13155
  createDataSets(getters: CoreGetters, customizedDataSets: CustomizedDataSet[], sheetId: UID, dataSetsHaveTitle: boolean): DataSet[];
13150
13156
  toExcelDataset(getters: CoreGetters, ds: DataSet): ExcelChartDataset;
13151
13157
  toExcelLabelRange(getters: CoreGetters, labelRange: Range | undefined, shouldRemoveFirstLabel?: boolean): string | undefined;
13152
- transformChartDefinitionWithDataSetsWithZone<T extends ChartWithDataSetDefinition>(chartSheetId: UID, definition: T, applyChange: RangeAdapter$1): T;
13158
+ transformChartDefinitionWithDataSetsWithZone<T extends ChartWithDataSetDefinition>(chartSheetId: UID, definition: T, applyChange: RangeAdapter): T;
13153
13159
  chartFontColor(backgroundColor: Color | undefined): Color;
13154
13160
  chartMutedFontColor(backgroundColor: Color | undefined): Color;
13155
13161
  checkDataset(definition: ChartWithDataSetDefinition): CommandResult;
@@ -13180,7 +13186,7 @@ declare const chartHelpers: {
13180
13186
  chartFactory(getters: CoreGetters): (id: UID, definition: ChartDefinition, sheetId: UID) => AbstractChart;
13181
13187
  chartRuntimeFactory(getters: Getters): (chart: AbstractChart) => ChartRuntime;
13182
13188
  validateChartDefinition(validator: Validator, definition: ChartDefinition): CommandResult | CommandResult[];
13183
- transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyrange: RangeAdapter$1): ChartDefinition;
13189
+ transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyrange: RangeAdapter): ChartDefinition;
13184
13190
  getSmartChartDefinition(zone: Zone, getters: Getters): ChartDefinition;
13185
13191
  chartToImageUrl(runtime: ChartRuntime, figure: Figure, type: ChartType): string | undefined;
13186
13192
  chartToImageFile(runtime: ChartRuntime, figure: Figure, type: ChartType): Promise<File | undefined>;
@@ -13211,4 +13217,4 @@ declare const chartHelpers: {
13211
13217
  WaterfallChart: typeof WaterfallChart;
13212
13218
  };
13213
13219
 
13214
- 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 };