@odoo/o-spreadsheet 18.3.31 → 18.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/o-spreadsheet.cjs.js +299 -233
- package/dist/o-spreadsheet.d.ts +224 -212
- package/dist/o-spreadsheet.esm.js +299 -233
- package/dist/o-spreadsheet.iife.js +299 -233
- package/dist/o-spreadsheet.iife.min.js +399 -399
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.xml +5 -4
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -3765,26 +3765,33 @@ declare const enum DIRECTION {
|
|
|
3765
3765
|
RIGHT = "right"
|
|
3766
3766
|
}
|
|
3767
3767
|
type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
|
|
3768
|
-
type ApplyRangeChangeResult = {
|
|
3769
|
-
changeType:
|
|
3770
|
-
range:
|
|
3771
|
-
}
|
|
3772
|
-
|
|
3768
|
+
type ApplyRangeChangeResult<T> = {
|
|
3769
|
+
changeType: ChangeType;
|
|
3770
|
+
range: T;
|
|
3771
|
+
};
|
|
3772
|
+
type ApplyFormulaRangeChangeResult = {
|
|
3773
|
+
changeType: ChangeType;
|
|
3774
|
+
formula: string;
|
|
3773
3775
|
};
|
|
3774
|
-
type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult
|
|
3776
|
+
type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult<Range>;
|
|
3775
3777
|
type AdaptSheetName = {
|
|
3776
3778
|
old: string;
|
|
3777
3779
|
current: string;
|
|
3778
3780
|
};
|
|
3779
|
-
type RangeAdapter
|
|
3781
|
+
type RangeAdapter = {
|
|
3780
3782
|
sheetId: UID;
|
|
3781
3783
|
sheetName: AdaptSheetName;
|
|
3782
3784
|
applyChange: ApplyRangeChange;
|
|
3783
3785
|
};
|
|
3786
|
+
type RangeAdapterFunctions = {
|
|
3787
|
+
applyChange: ApplyRangeChange;
|
|
3788
|
+
adaptRangeString: (defaultSheetId: UID, sheetXC: string) => ApplyRangeChangeResult<string>;
|
|
3789
|
+
adaptFormulaString: (defaultSheetId: UID, formula: string) => string;
|
|
3790
|
+
};
|
|
3784
3791
|
type Dimension = "COL" | "ROW";
|
|
3785
3792
|
type ConsecutiveIndexes = HeaderIndex[];
|
|
3786
3793
|
interface RangeProvider {
|
|
3787
|
-
adaptRanges: (
|
|
3794
|
+
adaptRanges: (adapterFunctions: RangeAdapterFunctions, sheetId: UID, sheetName: AdaptSheetName) => void;
|
|
3788
3795
|
}
|
|
3789
3796
|
type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
|
|
3790
3797
|
type Increment = 1 | -1 | 0;
|
|
@@ -4291,12 +4298,12 @@ interface SpreadsheetChildEnv extends NotificationStoreMethods {
|
|
|
4291
4298
|
isSmall: boolean;
|
|
4292
4299
|
}
|
|
4293
4300
|
|
|
4294
|
-
declare class
|
|
4301
|
+
declare class RangeAdapterPlugin implements CommandHandler<CoreCommand> {
|
|
4295
4302
|
private getters;
|
|
4296
4303
|
private providers;
|
|
4297
4304
|
private isAdaptingRanges;
|
|
4298
4305
|
constructor(getters: CoreGetters);
|
|
4299
|
-
static getters: readonly ["
|
|
4306
|
+
static getters: readonly ["copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
4300
4307
|
allowDispatch(cmd: CoreCommand): CommandResult;
|
|
4301
4308
|
beforeHandle(command: Command): void;
|
|
4302
4309
|
handle(cmd: CoreCommand): void;
|
|
@@ -4353,7 +4360,6 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
4353
4360
|
getRangeFromRangeData(data: RangeData): Range;
|
|
4354
4361
|
isRangeValid(rangeStr: string): boolean;
|
|
4355
4362
|
getRangesUnion(ranges: Range[]): Range;
|
|
4356
|
-
adaptFormulaStringDependencies(sheetId: UID, formula: string, applyChange: ApplyRangeChange): string;
|
|
4357
4363
|
/**
|
|
4358
4364
|
* Copy a formula string to another sheet.
|
|
4359
4365
|
*
|
|
@@ -4367,7 +4373,7 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
4367
4373
|
interface CorePluginConfig {
|
|
4368
4374
|
readonly getters: CoreGetters;
|
|
4369
4375
|
readonly stateObserver: StateObserver;
|
|
4370
|
-
readonly range:
|
|
4376
|
+
readonly range: RangeAdapterPlugin;
|
|
4371
4377
|
readonly dispatch: CoreCommandDispatcher["dispatch"];
|
|
4372
4378
|
readonly canDispatch: CoreCommandDispatcher["dispatch"];
|
|
4373
4379
|
readonly custom: ModelConfig["custom"];
|
|
@@ -4401,7 +4407,7 @@ declare class CorePlugin<State = any> extends BasePlugin<State, CoreCommand> imp
|
|
|
4401
4407
|
* @param sheetId an sheetId to adapt either range of that sheet specifically, or ranges pointing to that sheet
|
|
4402
4408
|
* @param sheetName couple of old and new sheet names to adapt ranges pointing to that sheet
|
|
4403
4409
|
*/
|
|
4404
|
-
adaptRanges(
|
|
4410
|
+
adaptRanges(rangeAdapterFunctions: RangeAdapterFunctions, sheetId: UID, sheetName: AdaptSheetName): void;
|
|
4405
4411
|
/**
|
|
4406
4412
|
* Implement this method to clean unused external resources, such as images
|
|
4407
4413
|
* stored on a server which have been deleted.
|
|
@@ -4552,7 +4558,7 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
4552
4558
|
[id: string]: Cell;
|
|
4553
4559
|
};
|
|
4554
4560
|
};
|
|
4555
|
-
adaptRanges(applyChange:
|
|
4561
|
+
adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID, sheetName: AdaptSheetName): void;
|
|
4556
4562
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
4557
4563
|
handle(cmd: CoreCommand): void;
|
|
4558
4564
|
private clearZones;
|
|
@@ -4576,7 +4582,7 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
4576
4582
|
export(data: WorkbookData): void;
|
|
4577
4583
|
importCell(sheetId: UID, content?: string, style?: Style, format?: Format): Cell;
|
|
4578
4584
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
4579
|
-
private
|
|
4585
|
+
private extractCustomStyle;
|
|
4580
4586
|
getCells(sheetId: UID): Record<UID, Cell>;
|
|
4581
4587
|
/**
|
|
4582
4588
|
* get a cell by ID. Used in evaluation when evaluating an async cell, we need to be able to find it back after
|
|
@@ -4651,7 +4657,7 @@ declare abstract class AbstractChart {
|
|
|
4651
4657
|
* Get a new chart definition transformed with the executed command. This
|
|
4652
4658
|
* functions will be called during operational transform process
|
|
4653
4659
|
*/
|
|
4654
|
-
static transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyChange: RangeAdapter
|
|
4660
|
+
static transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyChange: RangeAdapter): ChartDefinition;
|
|
4655
4661
|
/**
|
|
4656
4662
|
* Get an empty definition based on the given context
|
|
4657
4663
|
*/
|
|
@@ -4669,7 +4675,7 @@ declare abstract class AbstractChart {
|
|
|
4669
4675
|
* This function should be used to update all the ranges of the chart after
|
|
4670
4676
|
* a grid change (add/remove col/row, rename sheet, ...)
|
|
4671
4677
|
*/
|
|
4672
|
-
abstract updateRanges(
|
|
4678
|
+
abstract updateRanges(rangeAdapters: RangeAdapterFunctions): AbstractChart;
|
|
4673
4679
|
/**
|
|
4674
4680
|
* Duplicate the chart when a sheet is duplicated.
|
|
4675
4681
|
* The ranges that are in the same sheet as the chart are adapted to the new sheetId.
|
|
@@ -4699,7 +4705,7 @@ declare class ChartPlugin extends CorePlugin<ChartState> implements ChartState {
|
|
|
4699
4705
|
readonly charts: Record<UID, AbstractChart | undefined>;
|
|
4700
4706
|
private createChart;
|
|
4701
4707
|
private validateChartDefinition;
|
|
4702
|
-
adaptRanges(
|
|
4708
|
+
adaptRanges(rangeAdapters: RangeAdapterFunctions): void;
|
|
4703
4709
|
allowDispatch(cmd: Command): CommandResult | CommandResult[];
|
|
4704
4710
|
handle(cmd: CoreCommand): void;
|
|
4705
4711
|
getContextCreationChart(figureId: UID): ChartCreationContext | undefined;
|
|
@@ -4734,9 +4740,9 @@ declare class ConditionalFormatPlugin extends CorePlugin<ConditionalFormatState>
|
|
|
4734
4740
|
readonly cfRules: {
|
|
4735
4741
|
[sheet: string]: ConditionalFormatInternal[];
|
|
4736
4742
|
};
|
|
4737
|
-
adaptCFFormulas(applyChange:
|
|
4738
|
-
adaptCFRanges(sheetId: UID, applyChange:
|
|
4739
|
-
adaptRanges(
|
|
4743
|
+
adaptCFFormulas({ applyChange, adaptFormulaString }: RangeAdapterFunctions): void;
|
|
4744
|
+
adaptCFRanges(sheetId: UID, { applyChange }: RangeAdapterFunctions): void;
|
|
4745
|
+
adaptRanges(rangeAdapters: RangeAdapterFunctions, sheetId: UID): void;
|
|
4740
4746
|
allowDispatch(cmd: Command): CommandResult | CommandResult[];
|
|
4741
4747
|
handle(cmd: CoreCommand): void;
|
|
4742
4748
|
import(data: WorkbookData): void;
|
|
@@ -4787,7 +4793,7 @@ declare class DataValidationPlugin extends CorePlugin<DataValidationState> imple
|
|
|
4787
4793
|
readonly rules: {
|
|
4788
4794
|
[sheet: string]: DataValidationRule[];
|
|
4789
4795
|
};
|
|
4790
|
-
adaptRanges(
|
|
4796
|
+
adaptRanges(rangeAdapters: RangeAdapterFunctions, sheetId: UID): void;
|
|
4791
4797
|
private adaptDVFormulas;
|
|
4792
4798
|
private adaptDVRanges;
|
|
4793
4799
|
allowDispatch(cmd: Command): CommandResult | CommandResult[];
|
|
@@ -4822,7 +4828,7 @@ declare class FigurePlugin extends CorePlugin<FigureState> implements FigureStat
|
|
|
4822
4828
|
[sheet: string]: Record<UID, Figure | undefined> | undefined;
|
|
4823
4829
|
};
|
|
4824
4830
|
readonly insertionOrders: UID[];
|
|
4825
|
-
adaptRanges(applyChange:
|
|
4831
|
+
adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID): void;
|
|
4826
4832
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
4827
4833
|
beforeHandle(cmd: CoreCommand): void;
|
|
4828
4834
|
handle(cmd: CoreCommand): void;
|
|
@@ -4844,86 +4850,6 @@ declare class FigurePlugin extends CorePlugin<FigureState> implements FigureStat
|
|
|
4844
4850
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
4845
4851
|
}
|
|
4846
4852
|
|
|
4847
|
-
interface State$5 {
|
|
4848
|
-
groups: Record<UID, Record<Dimension, HeaderGroup[]>>;
|
|
4849
|
-
}
|
|
4850
|
-
declare class HeaderGroupingPlugin extends CorePlugin<State$5> {
|
|
4851
|
-
static getters: readonly ["getHeaderGroups", "getGroupsLayers", "getVisibleGroupLayers", "getHeaderGroup", "getHeaderGroupsInZone", "isGroupFolded", "isRowFolded", "isColFolded"];
|
|
4852
|
-
private readonly groups;
|
|
4853
|
-
allowDispatch(cmd: CoreCommand): CommandResult;
|
|
4854
|
-
handle(cmd: CoreCommand): void;
|
|
4855
|
-
getHeaderGroups(sheetId: UID, dim: Dimension): HeaderGroup[];
|
|
4856
|
-
getHeaderGroup(sheetId: UID, dim: Dimension, start: number, end: number): HeaderGroup | undefined;
|
|
4857
|
-
getHeaderGroupsInZone(sheetId: UID, dim: Dimension, zone: Zone): HeaderGroup[];
|
|
4858
|
-
/**
|
|
4859
|
-
* Get all the groups of a sheet in a dimension, and return an array of layers of those groups.
|
|
4860
|
-
*
|
|
4861
|
-
* The layering rules are:
|
|
4862
|
-
* 1) A group containing another group should be on a layer above the group it contains
|
|
4863
|
-
* 2) The widest/highest groups should be on the left/top layer compared to the groups it contains
|
|
4864
|
-
* 3) The group should be on the left/top-most layer possible, barring intersections with other groups (see rules 1 and 2)
|
|
4865
|
-
*/
|
|
4866
|
-
getGroupsLayers(sheetId: UID, dimension: Dimension): HeaderGroup[][];
|
|
4867
|
-
/**
|
|
4868
|
-
* Get all the groups of a sheet in a dimension, and return an array of layers of those groups,
|
|
4869
|
-
* excluding the groups that are totally hidden.
|
|
4870
|
-
*/
|
|
4871
|
-
getVisibleGroupLayers(sheetId: UID, dimension: Dimension): HeaderGroup[][];
|
|
4872
|
-
isGroupFolded(sheetId: UID, dimension: Dimension, start: number, end: number): boolean;
|
|
4873
|
-
isRowFolded(sheetId: UID, row: HeaderIndex): boolean;
|
|
4874
|
-
isColFolded(sheetId: UID, col: HeaderIndex): boolean;
|
|
4875
|
-
private getGroupId;
|
|
4876
|
-
/**
|
|
4877
|
-
* To get layers of groups, and to add/remove headers from groups, we can see each header of a group as a brick. Each
|
|
4878
|
-
* brick falls down in the pile corresponding to its header, until it hits another brick, or the ground.
|
|
4879
|
-
*
|
|
4880
|
-
* With this abstraction, we can very simply group/ungroup headers from groups, and get the layers of groups.
|
|
4881
|
-
* - grouping headers is done by adding a brick to each header pile
|
|
4882
|
-
* - un-grouping headers is done by removing a brick from each header pile
|
|
4883
|
-
* - getting the layers of groups is done by simply letting the brick fall and checking the result
|
|
4884
|
-
*
|
|
4885
|
-
* Example:
|
|
4886
|
-
* We have 2 groups ([A=>E] and [C=>D]), and we want to group headers [C=>F]
|
|
4887
|
-
*
|
|
4888
|
-
* Headers : A B C D E F G A B C D E F G A B C D E F G
|
|
4889
|
-
* Headers to group: [C=>D]: _ _ [C=>F]: _ _ _ _
|
|
4890
|
-
* | | ==> | | | | ==> ==> Result: 3 groups
|
|
4891
|
-
* | | ˅ ˅ | | _ _ - [C=>D]
|
|
4892
|
-
* Groups: ˅ ˅ _ _ ˅ | _ _ _ - [C=>E]
|
|
4893
|
-
* Groups: _ _ _ _ _ _ _ _ _ _ ˅ _ _ _ _ _ _ - [A=>F]
|
|
4894
|
-
|
|
4895
|
-
* @param groups
|
|
4896
|
-
* @param start start of the range where to add/remove headers
|
|
4897
|
-
* @param end end of the range where to add/remove headers
|
|
4898
|
-
* @param delta -1: remove headers, 1: add headers, 0: get layers (don't add/remove anything)
|
|
4899
|
-
*/
|
|
4900
|
-
private bricksFallingAlgorithm;
|
|
4901
|
-
private groupHeaders;
|
|
4902
|
-
/**
|
|
4903
|
-
* Ungroup the given headers. The headers will be taken out of the group they are in. This might split a group into two
|
|
4904
|
-
* if the headers were in the middle of a group. If multiple groups contains a header, it will only be taken out of the
|
|
4905
|
-
* lowest group in the layering of the groups.
|
|
4906
|
-
*/
|
|
4907
|
-
private unGroupHeaders;
|
|
4908
|
-
private moveGroupsOnHeaderInsertion;
|
|
4909
|
-
private moveGroupsOnHeaderDeletion;
|
|
4910
|
-
private doGroupOverlap;
|
|
4911
|
-
private removeDuplicateGroups;
|
|
4912
|
-
private findGroupWithStartEnd;
|
|
4913
|
-
/**
|
|
4914
|
-
* Fold the given group, and all the groups starting at the same index that are contained inside the given group.
|
|
4915
|
-
*/
|
|
4916
|
-
private foldHeaderGroup;
|
|
4917
|
-
/**
|
|
4918
|
-
* Unfold the given group, and all the groups starting at the same index that contain the given group.
|
|
4919
|
-
*/
|
|
4920
|
-
private unfoldHeaderGroup;
|
|
4921
|
-
private getGroupIndex;
|
|
4922
|
-
import(data: WorkbookData): void;
|
|
4923
|
-
export(data: WorkbookData): void;
|
|
4924
|
-
exportForExcel(data: ExcelWorkbookData): void;
|
|
4925
|
-
}
|
|
4926
|
-
|
|
4927
4853
|
interface HeaderSizeState$1 {
|
|
4928
4854
|
sizes: Record<UID, Record<Dimension, Array<Pixel | undefined>>>;
|
|
4929
4855
|
}
|
|
@@ -5002,7 +4928,7 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
|
|
|
5002
4928
|
readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
|
|
5003
4929
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
5004
4930
|
handle(cmd: CoreCommand): void;
|
|
5005
|
-
adaptRanges(
|
|
4931
|
+
adaptRanges(rangeAdapters: RangeAdapterFunctions, sheetId: UID): void;
|
|
5006
4932
|
getMerges(sheetId: UID): Merge[];
|
|
5007
4933
|
getMerge({ sheetId, col, row }: CellPosition): Merge | undefined;
|
|
5008
4934
|
getMergesInZone(sheetId: UID, zone: Zone): Merge[];
|
|
@@ -5070,76 +4996,6 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
|
|
|
5070
4996
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
5071
4997
|
}
|
|
5072
4998
|
|
|
5073
|
-
interface Pivot$1 {
|
|
5074
|
-
definition: PivotCoreDefinition;
|
|
5075
|
-
formulaId: string;
|
|
5076
|
-
}
|
|
5077
|
-
interface CoreState {
|
|
5078
|
-
nextFormulaId: number;
|
|
5079
|
-
pivots: Record<UID, Pivot$1 | undefined>;
|
|
5080
|
-
formulaIds: Record<UID, string | undefined>;
|
|
5081
|
-
compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula | undefined>>;
|
|
5082
|
-
}
|
|
5083
|
-
declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
|
|
5084
|
-
static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot"];
|
|
5085
|
-
readonly nextFormulaId: number;
|
|
5086
|
-
readonly pivots: {
|
|
5087
|
-
[pivotId: UID]: Pivot$1 | undefined;
|
|
5088
|
-
};
|
|
5089
|
-
readonly formulaIds: {
|
|
5090
|
-
[formulaId: UID]: UID | undefined;
|
|
5091
|
-
};
|
|
5092
|
-
readonly compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula>>;
|
|
5093
|
-
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
5094
|
-
handle(cmd: CoreCommand): void;
|
|
5095
|
-
adaptRanges(applyChange: ApplyRangeChange): void;
|
|
5096
|
-
getPivotDisplayName(pivotId: UID): string;
|
|
5097
|
-
getPivotName(pivotId: UID): string;
|
|
5098
|
-
/**
|
|
5099
|
-
* Returns the pivot core definition of the pivot with the given id.
|
|
5100
|
-
* Be careful, this is the core definition, this should be used only in a
|
|
5101
|
-
* context where the pivot is not loaded yet.
|
|
5102
|
-
*/
|
|
5103
|
-
getPivotCoreDefinition(pivotId: UID): PivotCoreDefinition;
|
|
5104
|
-
/**
|
|
5105
|
-
* Get the pivot ID (UID) from the formula ID (the one used in the formula)
|
|
5106
|
-
*/
|
|
5107
|
-
getPivotId(formulaId: string): UID | undefined;
|
|
5108
|
-
getPivotFormulaId(pivotId: UID): string;
|
|
5109
|
-
getPivotIds(): UID[];
|
|
5110
|
-
isExistingPivot(pivotId: UID): boolean;
|
|
5111
|
-
getMeasureCompiledFormula(measure: PivotCoreMeasure): RangeCompiledFormula;
|
|
5112
|
-
private addPivot;
|
|
5113
|
-
private compileCalculatedMeasures;
|
|
5114
|
-
private insertPivot;
|
|
5115
|
-
private resizeSheet;
|
|
5116
|
-
private getPivotCore;
|
|
5117
|
-
private compileMeasureFormula;
|
|
5118
|
-
private replaceMeasureFormula;
|
|
5119
|
-
private checkSortedColumnInMeasures;
|
|
5120
|
-
private checkDuplicatedMeasureIds;
|
|
5121
|
-
private repairSortedColumn;
|
|
5122
|
-
/**
|
|
5123
|
-
* Import the pivots
|
|
5124
|
-
*/
|
|
5125
|
-
import(data: WorkbookData): void;
|
|
5126
|
-
/**
|
|
5127
|
-
* Export the pivots
|
|
5128
|
-
*/
|
|
5129
|
-
export(data: WorkbookData): void;
|
|
5130
|
-
}
|
|
5131
|
-
|
|
5132
|
-
declare class SettingsPlugin extends CorePlugin {
|
|
5133
|
-
static getters: readonly ["getLocale"];
|
|
5134
|
-
private locale;
|
|
5135
|
-
allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.InvalidLocale;
|
|
5136
|
-
handle(cmd: CoreCommand): void;
|
|
5137
|
-
getLocale(): Locale;
|
|
5138
|
-
private changeCellsDateFormatWithLocale;
|
|
5139
|
-
import(data: WorkbookData): void;
|
|
5140
|
-
export(data: WorkbookData): void;
|
|
5141
|
-
}
|
|
5142
|
-
|
|
5143
4999
|
interface SheetState {
|
|
5144
5000
|
readonly sheets: Record<UID, Sheet | undefined>;
|
|
5145
5001
|
readonly orderedSheetIds: UID[];
|
|
@@ -5286,26 +5142,6 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
5286
5142
|
private checkZonesAreInSheet;
|
|
5287
5143
|
}
|
|
5288
5144
|
|
|
5289
|
-
interface TableStylesState {
|
|
5290
|
-
readonly styles: {
|
|
5291
|
-
[styleId: string]: TableStyle;
|
|
5292
|
-
};
|
|
5293
|
-
}
|
|
5294
|
-
declare class TableStylePlugin extends CorePlugin<TableStylesState> implements TableStylesState {
|
|
5295
|
-
static getters: readonly ["getNewCustomTableStyleName", "getTableStyle", "getTableStyles", "isTableStyleEditable"];
|
|
5296
|
-
readonly styles: {
|
|
5297
|
-
[styleId: string]: TableStyle;
|
|
5298
|
-
};
|
|
5299
|
-
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
5300
|
-
handle(cmd: CoreCommand): void;
|
|
5301
|
-
getTableStyle(styleId: string): TableStyle;
|
|
5302
|
-
getTableStyles(): Record<string, TableStyle>;
|
|
5303
|
-
getNewCustomTableStyleName(): string;
|
|
5304
|
-
isTableStyleEditable(styleId: string): boolean;
|
|
5305
|
-
import(data: WorkbookData): void;
|
|
5306
|
-
export(data: WorkbookData): void;
|
|
5307
|
-
}
|
|
5308
|
-
|
|
5309
5145
|
interface TableState {
|
|
5310
5146
|
tables: Record<UID, Record<TableId, CoreTable | undefined>>;
|
|
5311
5147
|
nextTableId: number;
|
|
@@ -5314,7 +5150,7 @@ declare class TablePlugin extends CorePlugin<TableState> implements TableState {
|
|
|
5314
5150
|
static getters: readonly ["getCoreTable", "getCoreTables", "getCoreTableMatchingTopLeft"];
|
|
5315
5151
|
readonly tables: Record<UID, Record<TableId, CoreTable | undefined>>;
|
|
5316
5152
|
readonly nextTableId: number;
|
|
5317
|
-
adaptRanges(applyChange:
|
|
5153
|
+
adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID): void;
|
|
5318
5154
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
5319
5155
|
handle(cmd: CoreCommand): void;
|
|
5320
5156
|
getCoreTables(sheetId: UID): CoreTable[];
|
|
@@ -5361,6 +5197,182 @@ declare class TablePlugin extends CorePlugin<TableState> implements TableState {
|
|
|
5361
5197
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
5362
5198
|
}
|
|
5363
5199
|
|
|
5200
|
+
interface State$5 {
|
|
5201
|
+
groups: Record<UID, Record<Dimension, HeaderGroup[]>>;
|
|
5202
|
+
}
|
|
5203
|
+
declare class HeaderGroupingPlugin extends CorePlugin<State$5> {
|
|
5204
|
+
static getters: readonly ["getHeaderGroups", "getGroupsLayers", "getVisibleGroupLayers", "getHeaderGroup", "getHeaderGroupsInZone", "isGroupFolded", "isRowFolded", "isColFolded"];
|
|
5205
|
+
private readonly groups;
|
|
5206
|
+
allowDispatch(cmd: CoreCommand): CommandResult;
|
|
5207
|
+
handle(cmd: CoreCommand): void;
|
|
5208
|
+
getHeaderGroups(sheetId: UID, dim: Dimension): HeaderGroup[];
|
|
5209
|
+
getHeaderGroup(sheetId: UID, dim: Dimension, start: number, end: number): HeaderGroup | undefined;
|
|
5210
|
+
getHeaderGroupsInZone(sheetId: UID, dim: Dimension, zone: Zone): HeaderGroup[];
|
|
5211
|
+
/**
|
|
5212
|
+
* Get all the groups of a sheet in a dimension, and return an array of layers of those groups.
|
|
5213
|
+
*
|
|
5214
|
+
* The layering rules are:
|
|
5215
|
+
* 1) A group containing another group should be on a layer above the group it contains
|
|
5216
|
+
* 2) The widest/highest groups should be on the left/top layer compared to the groups it contains
|
|
5217
|
+
* 3) The group should be on the left/top-most layer possible, barring intersections with other groups (see rules 1 and 2)
|
|
5218
|
+
*/
|
|
5219
|
+
getGroupsLayers(sheetId: UID, dimension: Dimension): HeaderGroup[][];
|
|
5220
|
+
/**
|
|
5221
|
+
* Get all the groups of a sheet in a dimension, and return an array of layers of those groups,
|
|
5222
|
+
* excluding the groups that are totally hidden.
|
|
5223
|
+
*/
|
|
5224
|
+
getVisibleGroupLayers(sheetId: UID, dimension: Dimension): HeaderGroup[][];
|
|
5225
|
+
isGroupFolded(sheetId: UID, dimension: Dimension, start: number, end: number): boolean;
|
|
5226
|
+
isRowFolded(sheetId: UID, row: HeaderIndex): boolean;
|
|
5227
|
+
isColFolded(sheetId: UID, col: HeaderIndex): boolean;
|
|
5228
|
+
private getGroupId;
|
|
5229
|
+
/**
|
|
5230
|
+
* To get layers of groups, and to add/remove headers from groups, we can see each header of a group as a brick. Each
|
|
5231
|
+
* brick falls down in the pile corresponding to its header, until it hits another brick, or the ground.
|
|
5232
|
+
*
|
|
5233
|
+
* With this abstraction, we can very simply group/ungroup headers from groups, and get the layers of groups.
|
|
5234
|
+
* - grouping headers is done by adding a brick to each header pile
|
|
5235
|
+
* - un-grouping headers is done by removing a brick from each header pile
|
|
5236
|
+
* - getting the layers of groups is done by simply letting the brick fall and checking the result
|
|
5237
|
+
*
|
|
5238
|
+
* Example:
|
|
5239
|
+
* We have 2 groups ([A=>E] and [C=>D]), and we want to group headers [C=>F]
|
|
5240
|
+
*
|
|
5241
|
+
* Headers : A B C D E F G A B C D E F G A B C D E F G
|
|
5242
|
+
* Headers to group: [C=>D]: _ _ [C=>F]: _ _ _ _
|
|
5243
|
+
* | | ==> | | | | ==> ==> Result: 3 groups
|
|
5244
|
+
* | | ˅ ˅ | | _ _ - [C=>D]
|
|
5245
|
+
* Groups: ˅ ˅ _ _ ˅ | _ _ _ - [C=>E]
|
|
5246
|
+
* Groups: _ _ _ _ _ _ _ _ _ _ ˅ _ _ _ _ _ _ - [A=>F]
|
|
5247
|
+
|
|
5248
|
+
* @param groups
|
|
5249
|
+
* @param start start of the range where to add/remove headers
|
|
5250
|
+
* @param end end of the range where to add/remove headers
|
|
5251
|
+
* @param delta -1: remove headers, 1: add headers, 0: get layers (don't add/remove anything)
|
|
5252
|
+
*/
|
|
5253
|
+
private bricksFallingAlgorithm;
|
|
5254
|
+
private groupHeaders;
|
|
5255
|
+
/**
|
|
5256
|
+
* Ungroup the given headers. The headers will be taken out of the group they are in. This might split a group into two
|
|
5257
|
+
* if the headers were in the middle of a group. If multiple groups contains a header, it will only be taken out of the
|
|
5258
|
+
* lowest group in the layering of the groups.
|
|
5259
|
+
*/
|
|
5260
|
+
private unGroupHeaders;
|
|
5261
|
+
private moveGroupsOnHeaderInsertion;
|
|
5262
|
+
private moveGroupsOnHeaderDeletion;
|
|
5263
|
+
private doGroupOverlap;
|
|
5264
|
+
private removeDuplicateGroups;
|
|
5265
|
+
private findGroupWithStartEnd;
|
|
5266
|
+
/**
|
|
5267
|
+
* Fold the given group, and all the groups starting at the same index that are contained inside the given group.
|
|
5268
|
+
*/
|
|
5269
|
+
private foldHeaderGroup;
|
|
5270
|
+
/**
|
|
5271
|
+
* Unfold the given group, and all the groups starting at the same index that contain the given group.
|
|
5272
|
+
*/
|
|
5273
|
+
private unfoldHeaderGroup;
|
|
5274
|
+
private getGroupIndex;
|
|
5275
|
+
import(data: WorkbookData): void;
|
|
5276
|
+
export(data: WorkbookData): void;
|
|
5277
|
+
exportForExcel(data: ExcelWorkbookData): void;
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
interface Pivot$1 {
|
|
5281
|
+
definition: PivotCoreDefinition;
|
|
5282
|
+
formulaId: string;
|
|
5283
|
+
}
|
|
5284
|
+
interface MeasureState {
|
|
5285
|
+
formula: RangeCompiledFormula;
|
|
5286
|
+
dependencies: Range[];
|
|
5287
|
+
}
|
|
5288
|
+
interface CoreState {
|
|
5289
|
+
nextFormulaId: number;
|
|
5290
|
+
pivots: Record<UID, Pivot$1 | undefined>;
|
|
5291
|
+
formulaIds: Record<UID, string | undefined>;
|
|
5292
|
+
compiledMeasureFormulas: Record<UID, Record<string, MeasureState | undefined>>;
|
|
5293
|
+
}
|
|
5294
|
+
declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
|
|
5295
|
+
static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot", "getMeasureFullDependencies"];
|
|
5296
|
+
readonly nextFormulaId: number;
|
|
5297
|
+
readonly pivots: {
|
|
5298
|
+
[pivotId: UID]: Pivot$1 | undefined;
|
|
5299
|
+
};
|
|
5300
|
+
readonly formulaIds: {
|
|
5301
|
+
[formulaId: UID]: UID | undefined;
|
|
5302
|
+
};
|
|
5303
|
+
readonly compiledMeasureFormulas: Record<UID, Record<string, MeasureState>>;
|
|
5304
|
+
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
5305
|
+
handle(cmd: CoreCommand): void;
|
|
5306
|
+
adaptRanges({ applyChange, adaptFormulaString }: RangeAdapterFunctions): void;
|
|
5307
|
+
getPivotDisplayName(pivotId: UID): string;
|
|
5308
|
+
getPivotName(pivotId: UID): string;
|
|
5309
|
+
/**
|
|
5310
|
+
* Returns the pivot core definition of the pivot with the given id.
|
|
5311
|
+
* Be careful, this is the core definition, this should be used only in a
|
|
5312
|
+
* context where the pivot is not loaded yet.
|
|
5313
|
+
*/
|
|
5314
|
+
getPivotCoreDefinition(pivotId: UID): PivotCoreDefinition;
|
|
5315
|
+
/**
|
|
5316
|
+
* Get the pivot ID (UID) from the formula ID (the one used in the formula)
|
|
5317
|
+
*/
|
|
5318
|
+
getPivotId(formulaId: string): UID | undefined;
|
|
5319
|
+
getPivotFormulaId(pivotId: UID): string;
|
|
5320
|
+
getPivotIds(): UID[];
|
|
5321
|
+
isExistingPivot(pivotId: UID): boolean;
|
|
5322
|
+
getMeasureCompiledFormula(pivotId: UID, measure: PivotCoreMeasure): RangeCompiledFormula;
|
|
5323
|
+
getMeasureFullDependencies(pivotId: UID, measure: PivotCoreMeasure): Range[];
|
|
5324
|
+
private addPivot;
|
|
5325
|
+
private compileCalculatedMeasures;
|
|
5326
|
+
private computeMeasureFullDependencies;
|
|
5327
|
+
private insertPivot;
|
|
5328
|
+
private resizeSheet;
|
|
5329
|
+
private getPivotCore;
|
|
5330
|
+
private compileMeasureFormula;
|
|
5331
|
+
private replaceMeasureFormula;
|
|
5332
|
+
private checkSortedColumnInMeasures;
|
|
5333
|
+
private checkDuplicatedMeasureIds;
|
|
5334
|
+
private repairSortedColumn;
|
|
5335
|
+
/**
|
|
5336
|
+
* Import the pivots
|
|
5337
|
+
*/
|
|
5338
|
+
import(data: WorkbookData): void;
|
|
5339
|
+
/**
|
|
5340
|
+
* Export the pivots
|
|
5341
|
+
*/
|
|
5342
|
+
export(data: WorkbookData): void;
|
|
5343
|
+
}
|
|
5344
|
+
|
|
5345
|
+
declare class SettingsPlugin extends CorePlugin {
|
|
5346
|
+
static getters: readonly ["getLocale"];
|
|
5347
|
+
private locale;
|
|
5348
|
+
allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.InvalidLocale;
|
|
5349
|
+
handle(cmd: CoreCommand): void;
|
|
5350
|
+
getLocale(): Locale;
|
|
5351
|
+
private changeCellsDateFormatWithLocale;
|
|
5352
|
+
import(data: WorkbookData): void;
|
|
5353
|
+
export(data: WorkbookData): void;
|
|
5354
|
+
}
|
|
5355
|
+
|
|
5356
|
+
interface TableStylesState {
|
|
5357
|
+
readonly styles: {
|
|
5358
|
+
[styleId: string]: TableStyle;
|
|
5359
|
+
};
|
|
5360
|
+
}
|
|
5361
|
+
declare class TableStylePlugin extends CorePlugin<TableStylesState> implements TableStylesState {
|
|
5362
|
+
static getters: readonly ["getNewCustomTableStyleName", "getTableStyle", "getTableStyles", "isTableStyleEditable"];
|
|
5363
|
+
readonly styles: {
|
|
5364
|
+
[styleId: string]: TableStyle;
|
|
5365
|
+
};
|
|
5366
|
+
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
5367
|
+
handle(cmd: CoreCommand): void;
|
|
5368
|
+
getTableStyle(styleId: string): TableStyle;
|
|
5369
|
+
getTableStyles(): Record<string, TableStyle>;
|
|
5370
|
+
getNewCustomTableStyleName(): string;
|
|
5371
|
+
isTableStyleEditable(styleId: string): boolean;
|
|
5372
|
+
import(data: WorkbookData): void;
|
|
5373
|
+
export(data: WorkbookData): void;
|
|
5374
|
+
}
|
|
5375
|
+
|
|
5364
5376
|
interface CoreViewPluginConfig {
|
|
5365
5377
|
readonly getters: Getters;
|
|
5366
5378
|
readonly stateObserver: StateObserver;
|
|
@@ -6262,7 +6274,7 @@ type PluginGetters<Plugin extends {
|
|
|
6262
6274
|
new (...args: unknown[]): any;
|
|
6263
6275
|
getters: readonly string[];
|
|
6264
6276
|
}> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
|
|
6265
|
-
type RangeAdapterGetters = Pick<
|
|
6277
|
+
type RangeAdapterGetters = Pick<RangeAdapterPlugin, GetterNames<typeof RangeAdapterPlugin>>;
|
|
6266
6278
|
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>;
|
|
6267
6279
|
type Getters = {
|
|
6268
6280
|
isReadonly: () => boolean;
|
|
@@ -6836,7 +6848,7 @@ interface ChartBuilder {
|
|
|
6836
6848
|
createChart: (definition: ChartDefinition, sheetId: UID, getters: CoreGetters) => AbstractChart;
|
|
6837
6849
|
getChartRuntime: (chart: AbstractChart, getters: Getters) => ChartRuntime;
|
|
6838
6850
|
validateChartDefinition(validator: Validator, definition: ChartDefinition): CommandResult | CommandResult[];
|
|
6839
|
-
transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyRange: RangeAdapter
|
|
6851
|
+
transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyRange: RangeAdapter): ChartDefinition;
|
|
6840
6852
|
getChartDefinitionFromContextCreation(context: ChartCreationContext): ChartDefinition;
|
|
6841
6853
|
sequence: number;
|
|
6842
6854
|
}
|
|
@@ -11078,7 +11090,7 @@ declare class BarChart extends AbstractChart {
|
|
|
11078
11090
|
readonly horizontal?: boolean;
|
|
11079
11091
|
readonly showValues?: boolean;
|
|
11080
11092
|
constructor(definition: BarChartDefinition, sheetId: UID, getters: CoreGetters);
|
|
11081
|
-
static transformDefinition(chartSheetId: UID, definition: BarChartDefinition, applyChange: RangeAdapter
|
|
11093
|
+
static transformDefinition(chartSheetId: UID, definition: BarChartDefinition, applyChange: RangeAdapter): BarChartDefinition;
|
|
11082
11094
|
static validateChartDefinition(validator: Validator, definition: BarChartDefinition): CommandResult | CommandResult[];
|
|
11083
11095
|
static getDefinitionFromContextCreation(context: ChartCreationContext): BarChartDefinition;
|
|
11084
11096
|
getContextCreation(): ChartCreationContext;
|
|
@@ -11087,7 +11099,7 @@ declare class BarChart extends AbstractChart {
|
|
|
11087
11099
|
getDefinition(): BarChartDefinition;
|
|
11088
11100
|
private getDefinitionWithSpecificDataSets;
|
|
11089
11101
|
getDefinitionForExcel(): ExcelChartDefinition | undefined;
|
|
11090
|
-
updateRanges(applyChange:
|
|
11102
|
+
updateRanges({ applyChange }: RangeAdapterFunctions): BarChart;
|
|
11091
11103
|
}
|
|
11092
11104
|
|
|
11093
11105
|
declare class GaugeChart extends AbstractChart {
|
|
@@ -11097,7 +11109,7 @@ declare class GaugeChart extends AbstractChart {
|
|
|
11097
11109
|
readonly type = "gauge";
|
|
11098
11110
|
constructor(definition: GaugeChartDefinition, sheetId: UID, getters: CoreGetters);
|
|
11099
11111
|
static validateChartDefinition(validator: Validator, definition: GaugeChartDefinition): CommandResult | CommandResult[];
|
|
11100
|
-
static transformDefinition(chartSheetId: UID, definition: GaugeChartDefinition, applyChange: RangeAdapter
|
|
11112
|
+
static transformDefinition(chartSheetId: UID, definition: GaugeChartDefinition, applyChange: RangeAdapter): GaugeChartDefinition;
|
|
11101
11113
|
static getDefinitionFromContextCreation(context: ChartCreationContext): GaugeChartDefinition;
|
|
11102
11114
|
duplicateInDuplicatedSheet(newSheetId: UID): GaugeChart;
|
|
11103
11115
|
copyInSheetId(sheetId: UID): GaugeChart;
|
|
@@ -11105,7 +11117,7 @@ declare class GaugeChart extends AbstractChart {
|
|
|
11105
11117
|
private getDefinitionWithSpecificRanges;
|
|
11106
11118
|
getDefinitionForExcel(): undefined;
|
|
11107
11119
|
getContextCreation(): ChartCreationContext;
|
|
11108
|
-
updateRanges(applyChange
|
|
11120
|
+
updateRanges({ applyChange, adaptFormulaString }: RangeAdapterFunctions): GaugeChart;
|
|
11109
11121
|
}
|
|
11110
11122
|
|
|
11111
11123
|
declare class LineChart extends AbstractChart {
|
|
@@ -11125,12 +11137,12 @@ declare class LineChart extends AbstractChart {
|
|
|
11125
11137
|
readonly showValues?: boolean;
|
|
11126
11138
|
constructor(definition: LineChartDefinition, sheetId: UID, getters: CoreGetters);
|
|
11127
11139
|
static validateChartDefinition(validator: Validator, definition: LineChartDefinition): CommandResult | CommandResult[];
|
|
11128
|
-
static transformDefinition(chartSheetId: UID, definition: LineChartDefinition, applyChange: RangeAdapter
|
|
11140
|
+
static transformDefinition(chartSheetId: UID, definition: LineChartDefinition, applyChange: RangeAdapter): LineChartDefinition;
|
|
11129
11141
|
static getDefinitionFromContextCreation(context: ChartCreationContext): LineChartDefinition;
|
|
11130
11142
|
getDefinition(): LineChartDefinition;
|
|
11131
11143
|
private getDefinitionWithSpecificDataSets;
|
|
11132
11144
|
getContextCreation(): ChartCreationContext;
|
|
11133
|
-
updateRanges(applyChange:
|
|
11145
|
+
updateRanges({ applyChange }: RangeAdapterFunctions): LineChart;
|
|
11134
11146
|
getDefinitionForExcel(): ExcelChartDefinition | undefined;
|
|
11135
11147
|
duplicateInDuplicatedSheet(newSheetId: UID): LineChart;
|
|
11136
11148
|
copyInSheetId(sheetId: UID): LineChart;
|
|
@@ -11147,7 +11159,7 @@ declare class PieChart extends AbstractChart {
|
|
|
11147
11159
|
readonly isDoughnut?: boolean;
|
|
11148
11160
|
readonly showValues?: boolean;
|
|
11149
11161
|
constructor(definition: PieChartDefinition, sheetId: UID, getters: CoreGetters);
|
|
11150
|
-
static transformDefinition(chartSheetId: UID, definition: PieChartDefinition, applyChange: RangeAdapter
|
|
11162
|
+
static transformDefinition(chartSheetId: UID, definition: PieChartDefinition, applyChange: RangeAdapter): PieChartDefinition;
|
|
11151
11163
|
static validateChartDefinition(validator: Validator, definition: PieChartDefinition): CommandResult | CommandResult[];
|
|
11152
11164
|
static getDefinitionFromContextCreation(context: ChartCreationContext): PieChartDefinition;
|
|
11153
11165
|
getDefinition(): PieChartDefinition;
|
|
@@ -11156,7 +11168,7 @@ declare class PieChart extends AbstractChart {
|
|
|
11156
11168
|
duplicateInDuplicatedSheet(newSheetId: UID): PieChart;
|
|
11157
11169
|
copyInSheetId(sheetId: UID): PieChart;
|
|
11158
11170
|
getDefinitionForExcel(): ExcelChartDefinition | undefined;
|
|
11159
|
-
updateRanges(applyChange:
|
|
11171
|
+
updateRanges({ applyChange }: RangeAdapterFunctions): PieChart;
|
|
11160
11172
|
}
|
|
11161
11173
|
|
|
11162
11174
|
declare class ScorecardChart extends AbstractChart {
|
|
@@ -11174,14 +11186,14 @@ declare class ScorecardChart extends AbstractChart {
|
|
|
11174
11186
|
constructor(definition: ScorecardChartDefinition, sheetId: UID, getters: CoreGetters);
|
|
11175
11187
|
static validateChartDefinition(validator: Validator, definition: ScorecardChartDefinition): CommandResult | CommandResult[];
|
|
11176
11188
|
static getDefinitionFromContextCreation(context: ChartCreationContext): ScorecardChartDefinition;
|
|
11177
|
-
static transformDefinition(chartSheetId: UID, definition: ScorecardChartDefinition, applyChange: RangeAdapter
|
|
11189
|
+
static transformDefinition(chartSheetId: UID, definition: ScorecardChartDefinition, applyChange: RangeAdapter): ScorecardChartDefinition;
|
|
11178
11190
|
duplicateInDuplicatedSheet(newSheetId: UID): ScorecardChart;
|
|
11179
11191
|
copyInSheetId(sheetId: UID): ScorecardChart;
|
|
11180
11192
|
getDefinition(): ScorecardChartDefinition;
|
|
11181
11193
|
getContextCreation(): ChartCreationContext;
|
|
11182
11194
|
private getDefinitionWithSpecificRanges;
|
|
11183
11195
|
getDefinitionForExcel(): undefined;
|
|
11184
|
-
updateRanges(applyChange:
|
|
11196
|
+
updateRanges({ applyChange }: RangeAdapterFunctions): ScorecardChart;
|
|
11185
11197
|
}
|
|
11186
11198
|
|
|
11187
11199
|
declare class WaterfallChart extends AbstractChart {
|
|
@@ -11203,7 +11215,7 @@ declare class WaterfallChart extends AbstractChart {
|
|
|
11203
11215
|
readonly axesDesign?: AxesDesign;
|
|
11204
11216
|
readonly showValues?: boolean;
|
|
11205
11217
|
constructor(definition: WaterfallChartDefinition, sheetId: UID, getters: CoreGetters);
|
|
11206
|
-
static transformDefinition(chartSheetId: UID, definition: WaterfallChartDefinition, applyChange: RangeAdapter
|
|
11218
|
+
static transformDefinition(chartSheetId: UID, definition: WaterfallChartDefinition, applyChange: RangeAdapter): WaterfallChartDefinition;
|
|
11207
11219
|
static validateChartDefinition(validator: Validator, definition: WaterfallChartDefinition): CommandResult | CommandResult[];
|
|
11208
11220
|
static getDefinitionFromContextCreation(context: ChartCreationContext): WaterfallChartDefinition;
|
|
11209
11221
|
getContextCreation(): ChartCreationContext;
|
|
@@ -11212,7 +11224,7 @@ declare class WaterfallChart extends AbstractChart {
|
|
|
11212
11224
|
getDefinition(): WaterfallChartDefinition;
|
|
11213
11225
|
private getDefinitionWithSpecificDataSets;
|
|
11214
11226
|
getDefinitionForExcel(): ExcelChartDefinition | undefined;
|
|
11215
|
-
updateRanges(applyChange:
|
|
11227
|
+
updateRanges({ applyChange }: RangeAdapterFunctions): WaterfallChart;
|
|
11216
11228
|
}
|
|
11217
11229
|
|
|
11218
11230
|
declare function getPivotHighlights(getters: Getters, pivotId: UID): Highlight$1[];
|
|
@@ -12549,7 +12561,7 @@ declare const chartHelpers: {
|
|
|
12549
12561
|
createDataSets(getters: CoreGetters, customizedDataSets: CustomizedDataSet[], sheetId: UID, dataSetsHaveTitle: boolean): DataSet[];
|
|
12550
12562
|
toExcelDataset(getters: CoreGetters, ds: DataSet): ExcelChartDataset;
|
|
12551
12563
|
toExcelLabelRange(getters: CoreGetters, labelRange: Range | undefined, shouldRemoveFirstLabel?: boolean): string | undefined;
|
|
12552
|
-
transformChartDefinitionWithDataSetsWithZone<T extends ChartWithDataSetDefinition>(chartSheetId: UID, definition: T, applyChange: RangeAdapter
|
|
12564
|
+
transformChartDefinitionWithDataSetsWithZone<T extends ChartWithDataSetDefinition>(chartSheetId: UID, definition: T, applyChange: RangeAdapter): T;
|
|
12553
12565
|
chartFontColor(backgroundColor: Color | undefined): Color;
|
|
12554
12566
|
chartMutedFontColor(backgroundColor: Color | undefined): Color;
|
|
12555
12567
|
checkDataset(definition: ChartWithDataSetDefinition): CommandResult;
|
|
@@ -12574,7 +12586,7 @@ declare const chartHelpers: {
|
|
|
12574
12586
|
chartFactory(getters: CoreGetters): (id: UID, definition: ChartDefinition, sheetId: UID) => AbstractChart;
|
|
12575
12587
|
chartRuntimeFactory(getters: Getters): (chart: AbstractChart) => ChartRuntime;
|
|
12576
12588
|
validateChartDefinition(validator: Validator, definition: ChartDefinition): CommandResult | CommandResult[];
|
|
12577
|
-
transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyrange: RangeAdapter
|
|
12589
|
+
transformDefinition(chartSheetId: UID, definition: ChartDefinition, applyrange: RangeAdapter): ChartDefinition;
|
|
12578
12590
|
getSmartChartDefinition(zone: Zone, getters: Getters): ChartDefinition;
|
|
12579
12591
|
chartToImageUrl(runtime: ChartRuntime, figure: Figure, type: ChartType): string | undefined;
|
|
12580
12592
|
chartToImageFile(runtime: ChartRuntime, figure: Figure, type: ChartType): Promise<File | undefined>;
|
|
@@ -12592,4 +12604,4 @@ declare const chartHelpers: {
|
|
|
12592
12604
|
WaterfallChart: typeof WaterfallChart;
|
|
12593
12605
|
};
|
|
12594
12606
|
|
|
12595
|
-
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, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelledReason, Cell, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartAxisFormats, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartRuntimeGenerationArgs, ChartStyle, ChartType, ChartWithAxisDefinition, ChartWithDataSetDefinition, CleanClipBoardHighlightCommand, ClearCellCommand, ClearCellsCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, 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, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DataBarRule, DataBarRuleInternal, 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, EvaluationError, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, Figure, FigureData, FigureInfo, FigureSize, FigureUI, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GeneratorCell, 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, 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, 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, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeAdapter
|
|
12607
|
+
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, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelledReason, Cell, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartAxisFormats, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartRuntimeGenerationArgs, ChartStyle, ChartType, ChartWithAxisDefinition, ChartWithDataSetDefinition, CleanClipBoardHighlightCommand, ClearCellCommand, ClearCellsCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, 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, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DataBarRule, DataBarRuleInternal, 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, EvaluationError, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, Figure, FigureData, FigureInfo, FigureSize, FigureUI, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GeneratorCell, 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, 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, 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, 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, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, 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, 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, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, chartHelpers, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, 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 };
|