@odoo/o-spreadsheet 19.2.0-alpha.3 → 19.2.0-alpha.4
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-engine.d.ts +50 -42
- package/dist/o-spreadsheet-engine.esm.js +597 -514
- package/dist/o-spreadsheet-engine.iife.js +597 -514
- package/dist/o-spreadsheet-engine.min.iife.js +326 -307
- package/dist/o-spreadsheet.d.ts +145 -59
- package/dist/o_spreadsheet.css +35 -9
- package/dist/o_spreadsheet.esm.js +12714 -12328
- package/dist/o_spreadsheet.iife.js +12714 -12328
- package/dist/o_spreadsheet.min.iife.js +333 -314
- package/dist/o_spreadsheet.xml +247 -360
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@ type Format = string & Alias;
|
|
|
44
44
|
type FormattedValue = string & Alias;
|
|
45
45
|
|
|
46
46
|
interface CellAttributes {
|
|
47
|
-
readonly id:
|
|
47
|
+
readonly id: number;
|
|
48
48
|
/**
|
|
49
49
|
* Raw cell content
|
|
50
50
|
*/
|
|
@@ -422,7 +422,7 @@ declare class CarouselPlugin extends CorePlugin<CarouselState> implements Carous
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
interface CoreState$1 {
|
|
425
|
-
cells: Record<UID, Record<
|
|
425
|
+
cells: Record<UID, Record<number, Cell | undefined> | undefined>;
|
|
426
426
|
nextId: number;
|
|
427
427
|
}
|
|
428
428
|
/**
|
|
@@ -439,7 +439,7 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
439
439
|
[id: string]: Cell;
|
|
440
440
|
};
|
|
441
441
|
};
|
|
442
|
-
adaptRanges(applyChange:
|
|
442
|
+
adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID, sheetName: AdaptSheetName): void;
|
|
443
443
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
444
444
|
handle(cmd: CoreCommand): void;
|
|
445
445
|
private clearZones;
|
|
@@ -463,12 +463,12 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
463
463
|
export(data: WorkbookData): void;
|
|
464
464
|
importCell(sheetId: UID, content?: string, format?: Format): Cell;
|
|
465
465
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
466
|
-
getCells(sheetId: UID):
|
|
466
|
+
getCells(sheetId: UID): Cell[];
|
|
467
467
|
/**
|
|
468
468
|
* get a cell by ID. Used in evaluation when evaluating an async cell, we need to be able to find it back after
|
|
469
469
|
* starting an async evaluation even if it has been moved or re-allocated
|
|
470
470
|
*/
|
|
471
|
-
getCellById(cellId:
|
|
471
|
+
getCellById(cellId: number): Cell | undefined;
|
|
472
472
|
getFormulaString(sheetId: UID, tokens: Token[], dependencies: Range[], useBoundedReference?: boolean): string;
|
|
473
473
|
getTranslatedCellFormula(sheetId: UID, offsetX: number, offsetY: number, tokens: Token[]): string;
|
|
474
474
|
getFormulaMovedInSheet(originSheetId: UID, targetSheetId: UID, tokens: Token[]): string;
|
|
@@ -501,7 +501,7 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
501
501
|
* gets the currently used style and format of a cell based on it's coordinates
|
|
502
502
|
*/
|
|
503
503
|
private getFormat;
|
|
504
|
-
private
|
|
504
|
+
private getNextCellId;
|
|
505
505
|
private updateCell;
|
|
506
506
|
private createCell;
|
|
507
507
|
private createLiteralCell;
|
|
@@ -569,7 +569,7 @@ declare abstract class AbstractChart {
|
|
|
569
569
|
* This function should be used to update all the ranges of the chart after
|
|
570
570
|
* a grid change (add/remove col/row, rename sheet, ...)
|
|
571
571
|
*/
|
|
572
|
-
abstract updateRanges(
|
|
572
|
+
abstract updateRanges(rangeAdapters: RangeAdapterFunctions): AbstractChart;
|
|
573
573
|
/**
|
|
574
574
|
* Duplicate the chart when a sheet is duplicated.
|
|
575
575
|
* The ranges that are in the same sheet as the chart are adapted to the new sheetId.
|
|
@@ -602,7 +602,7 @@ declare class ChartPlugin extends CorePlugin<ChartState> implements ChartState {
|
|
|
602
602
|
readonly charts: Record<UID, FigureChart | undefined>;
|
|
603
603
|
private createChart;
|
|
604
604
|
private validateChartDefinition;
|
|
605
|
-
adaptRanges(
|
|
605
|
+
adaptRanges(rangeAdapters: RangeAdapterFunctions): void;
|
|
606
606
|
allowDispatch(cmd: Command): CommandResult | CommandResult[];
|
|
607
607
|
handle(cmd: CoreCommand): void;
|
|
608
608
|
getContextCreationChart(chartId: UID): ChartCreationContext | undefined;
|
|
@@ -711,9 +711,9 @@ declare class ConditionalFormatPlugin extends CorePlugin<ConditionalFormatState>
|
|
|
711
711
|
readonly cfRules: {
|
|
712
712
|
[sheet: string]: ConditionalFormatInternal[];
|
|
713
713
|
};
|
|
714
|
-
adaptCFFormulas(applyChange:
|
|
715
|
-
adaptCFRanges(sheetId: UID, applyChange:
|
|
716
|
-
adaptRanges(
|
|
714
|
+
adaptCFFormulas({ applyChange, adaptFormulaString }: RangeAdapterFunctions): void;
|
|
715
|
+
adaptCFRanges(sheetId: UID, { applyChange }: RangeAdapterFunctions): void;
|
|
716
|
+
adaptRanges(rangeAdapters: RangeAdapterFunctions, sheetId: UID): void;
|
|
717
717
|
allowDispatch(cmd: Command): CommandResult | CommandResult[];
|
|
718
718
|
handle(cmd: CoreCommand): void;
|
|
719
719
|
import(data: WorkbookData): void;
|
|
@@ -882,7 +882,7 @@ declare class DataValidationPlugin extends CorePlugin<DataValidationState> imple
|
|
|
882
882
|
readonly rules: {
|
|
883
883
|
[sheet: string]: DataValidationRule[];
|
|
884
884
|
};
|
|
885
|
-
adaptRanges(
|
|
885
|
+
adaptRanges(rangeAdapters: RangeAdapterFunctions, sheetId: UID): void;
|
|
886
886
|
private adaptDVFormulas;
|
|
887
887
|
private adaptDVRanges;
|
|
888
888
|
allowDispatch(cmd: Command): CommandResult | CommandResult[];
|
|
@@ -917,7 +917,7 @@ declare class FigurePlugin extends CorePlugin<FigureState> implements FigureStat
|
|
|
917
917
|
[sheet: string]: Record<UID, Figure | undefined> | undefined;
|
|
918
918
|
};
|
|
919
919
|
readonly insertionOrders: UID[];
|
|
920
|
-
adaptRanges(applyChange:
|
|
920
|
+
adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID): void;
|
|
921
921
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
922
922
|
beforeHandle(cmd: CoreCommand): void;
|
|
923
923
|
handle(cmd: CoreCommand): void;
|
|
@@ -1134,7 +1134,7 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
|
|
|
1134
1134
|
readonly mergeCellMap: Record<UID, SheetMergeCellMap | undefined>;
|
|
1135
1135
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
1136
1136
|
handle(cmd: CoreCommand): void;
|
|
1137
|
-
adaptRanges(
|
|
1137
|
+
adaptRanges(rangeAdapters: RangeAdapterFunctions, sheetId: UID): void;
|
|
1138
1138
|
getMerges(sheetId: UID): Merge[];
|
|
1139
1139
|
getMerge({ sheetId, col, row }: CellPosition): Merge | undefined;
|
|
1140
1140
|
getMergesInZone(sheetId: UID, zone: Zone): Merge[];
|
|
@@ -1385,7 +1385,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
1385
1385
|
readonly compiledMeasureFormulas: Record<UID, Record<string, MeasureState>>;
|
|
1386
1386
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
1387
1387
|
handle(cmd: CoreCommand): void;
|
|
1388
|
-
adaptRanges(applyChange:
|
|
1388
|
+
adaptRanges({ applyChange, adaptFormulaString }: RangeAdapterFunctions): void;
|
|
1389
1389
|
getPivotDisplayName(pivotId: UID): string;
|
|
1390
1390
|
getPivotName(pivotId: UID): string;
|
|
1391
1391
|
/**
|
|
@@ -1424,12 +1424,12 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
1424
1424
|
export(data: WorkbookData): void;
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
declare class
|
|
1427
|
+
declare class RangeAdapterPlugin implements CommandHandler<CoreCommand> {
|
|
1428
1428
|
private getters;
|
|
1429
1429
|
private providers;
|
|
1430
1430
|
private isAdaptingRanges;
|
|
1431
1431
|
constructor(getters: CoreGetters);
|
|
1432
|
-
static getters: readonly ["
|
|
1432
|
+
static getters: readonly ["copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
1433
1433
|
allowDispatch(cmd: CoreCommand): CommandResult;
|
|
1434
1434
|
beforeHandle(command: Command): void;
|
|
1435
1435
|
handle(cmd: CoreCommand): void;
|
|
@@ -1486,7 +1486,6 @@ declare class RangeAdapter$1 implements CommandHandler<CoreCommand> {
|
|
|
1486
1486
|
getRangeFromRangeData(data: RangeData): Range;
|
|
1487
1487
|
isRangeValid(rangeStr: string): boolean;
|
|
1488
1488
|
getRangesUnion(ranges: Range[]): Range;
|
|
1489
|
-
adaptFormulaStringDependencies(sheetId: UID, formula: string, applyChange: ApplyRangeChange): string;
|
|
1490
1489
|
/**
|
|
1491
1490
|
* Copy a formula string to another sheet.
|
|
1492
1491
|
*
|
|
@@ -1512,14 +1511,14 @@ interface SheetState {
|
|
|
1512
1511
|
readonly sheets: Record<UID, Sheet | undefined>;
|
|
1513
1512
|
readonly orderedSheetIds: UID[];
|
|
1514
1513
|
readonly sheetIdsMapName: Record<string, UID | undefined>;
|
|
1515
|
-
readonly cellPosition: Record<
|
|
1514
|
+
readonly cellPosition: Record<number, CellPosition | undefined>;
|
|
1516
1515
|
}
|
|
1517
1516
|
declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
1518
|
-
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "
|
|
1517
|
+
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCellIds", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders", "getDuplicateSheetName", "tryGetCellPosition"];
|
|
1519
1518
|
readonly sheetIdsMapName: Record<string, UID | undefined>;
|
|
1520
1519
|
readonly orderedSheetIds: UID[];
|
|
1521
1520
|
readonly sheets: Record<UID, Sheet | undefined>;
|
|
1522
|
-
readonly cellPosition: Record<
|
|
1521
|
+
readonly cellPosition: Record<number, CellPosition | undefined>;
|
|
1523
1522
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
1524
1523
|
beforeHandle(cmd: CoreCommand): void;
|
|
1525
1524
|
handle(cmd: CoreCommand): void;
|
|
@@ -1546,10 +1545,10 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
1546
1545
|
doesHeadersExist(sheetId: UID, dimension: Dimension, headerIndexes: HeaderIndex[]): boolean;
|
|
1547
1546
|
getCell({ sheetId, col, row }: CellPosition): Cell | undefined;
|
|
1548
1547
|
getColsZone(sheetId: UID, start: HeaderIndex, end: HeaderIndex): Zone;
|
|
1549
|
-
|
|
1548
|
+
getRowCellIds(sheetId: UID, row: HeaderIndex): number[];
|
|
1550
1549
|
getRowsZone(sheetId: UID, start: HeaderIndex, end: HeaderIndex): Zone;
|
|
1551
|
-
getCellPosition(cellId:
|
|
1552
|
-
tryGetCellPosition(cellId:
|
|
1550
|
+
getCellPosition(cellId: number): CellPosition;
|
|
1551
|
+
tryGetCellPosition(cellId: number): CellPosition | undefined;
|
|
1553
1552
|
getNumberCols(sheetId: UID): number;
|
|
1554
1553
|
getNumberRows(sheetId: UID): number;
|
|
1555
1554
|
getNumberHeaders(sheetId: UID, dimension: Dimension): HeaderIndex;
|
|
@@ -1668,7 +1667,7 @@ declare class StylePlugin extends CorePlugin<StylePluginState> implements StyleP
|
|
|
1668
1667
|
readonly styles: Record<UID, ZoneStyle[] | undefined>;
|
|
1669
1668
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
1670
1669
|
handle(cmd: CoreCommand): void;
|
|
1671
|
-
adaptRanges(applyChange:
|
|
1670
|
+
adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID): void;
|
|
1672
1671
|
private handleAddColumnn;
|
|
1673
1672
|
private handleAddRows;
|
|
1674
1673
|
private styleIsDefault;
|
|
@@ -1695,7 +1694,7 @@ declare class TablePlugin extends CorePlugin<TableState> implements TableState {
|
|
|
1695
1694
|
static getters: readonly ["getCoreTable", "getCoreTables", "getCoreTableMatchingTopLeft"];
|
|
1696
1695
|
readonly tables: Record<UID, Record<TableId, CoreTable | undefined>>;
|
|
1697
1696
|
readonly nextTableId: number;
|
|
1698
|
-
adaptRanges(applyChange:
|
|
1697
|
+
adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID): void;
|
|
1699
1698
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
1700
1699
|
handle(cmd: CoreCommand): void;
|
|
1701
1700
|
getCoreTables(sheetId: UID): CoreTable[];
|
|
@@ -1795,7 +1794,7 @@ type PluginGetters<Plugin extends {
|
|
|
1795
1794
|
new (...args: unknown[]): any;
|
|
1796
1795
|
getters: readonly string[];
|
|
1797
1796
|
}> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
|
|
1798
|
-
type RangeAdapterGetters = Pick<
|
|
1797
|
+
type RangeAdapterGetters = Pick<RangeAdapterPlugin, GetterNames<typeof RangeAdapterPlugin>>;
|
|
1799
1798
|
type CoreGetters = PluginGetters<typeof SheetPlugin> & PluginGetters<typeof HeaderSizePlugin> & PluginGetters<typeof HeaderVisibilityPlugin> & PluginGetters<typeof CellPlugin> & PluginGetters<typeof StylePlugin> & PluginGetters<typeof MergePlugin> & PluginGetters<typeof BordersPlugin> & PluginGetters<typeof ChartPlugin> & PluginGetters<typeof ImagePlugin> & PluginGetters<typeof CarouselPlugin> & PluginGetters<typeof FigurePlugin> & RangeAdapterGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof TablePlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin> & PluginGetters<typeof PivotCorePlugin>;
|
|
1800
1799
|
|
|
1801
1800
|
type VerticalAxisPosition = "left" | "right";
|
|
@@ -2084,7 +2083,7 @@ declare class BasePlugin<State = any, C = any> implements CommandHandler<C>, Val
|
|
|
2084
2083
|
interface CorePluginConfig {
|
|
2085
2084
|
readonly getters: CoreGetters;
|
|
2086
2085
|
readonly stateObserver: StateObserver;
|
|
2087
|
-
readonly range:
|
|
2086
|
+
readonly range: RangeAdapterPlugin;
|
|
2088
2087
|
readonly dispatch: CoreCommandDispatcher["dispatch"];
|
|
2089
2088
|
readonly canDispatch: CoreCommandDispatcher["dispatch"];
|
|
2090
2089
|
readonly custom: ModelConfig["custom"];
|
|
@@ -2114,7 +2113,7 @@ declare class CorePlugin<State = any> extends BasePlugin<State, CoreCommand> imp
|
|
|
2114
2113
|
* @param sheetId an sheetId to adapt either range of that sheet specifically, or ranges pointing to that sheet
|
|
2115
2114
|
* @param sheetName couple of old and new sheet names to adapt ranges pointing to that sheet
|
|
2116
2115
|
*/
|
|
2117
|
-
adaptRanges(
|
|
2116
|
+
adaptRanges(rangeAdapterFunctions: RangeAdapterFunctions, sheetId: UID, sheetName: AdaptSheetName): void;
|
|
2118
2117
|
}
|
|
2119
2118
|
|
|
2120
2119
|
type ZoneBorderData = {
|
|
@@ -2138,7 +2137,7 @@ declare class BordersPlugin extends CorePlugin<BordersPluginState> implements Bo
|
|
|
2138
2137
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
2139
2138
|
handle(cmd: CoreCommand): void;
|
|
2140
2139
|
beforeHandle(cmd: CoreCommand): void;
|
|
2141
|
-
adaptRanges(applyChange:
|
|
2140
|
+
adaptRanges({ applyChange }: RangeAdapterFunctions, sheetId: UID): void;
|
|
2142
2141
|
private onRowRemove;
|
|
2143
2142
|
private onColRemove;
|
|
2144
2143
|
getCellBorder(position: CellPosition): Border;
|
|
@@ -2813,7 +2812,7 @@ declare class FormulaTrackerPlugin extends CoreViewPlugin {
|
|
|
2813
2812
|
static getters: readonly ["getCellsWithTrackedFormula"];
|
|
2814
2813
|
private trackedCells;
|
|
2815
2814
|
handle(cmd: Command): void;
|
|
2816
|
-
getCellsWithTrackedFormula(formula: string):
|
|
2815
|
+
getCellsWithTrackedFormula(formula: string): number[];
|
|
2817
2816
|
}
|
|
2818
2817
|
|
|
2819
2818
|
type Canvas2DContext = CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D;
|
|
@@ -5263,6 +5262,7 @@ interface ExcelChartDefinition {
|
|
|
5263
5262
|
useRightAxis?: boolean;
|
|
5264
5263
|
};
|
|
5265
5264
|
readonly axesDesign?: AxesDesign;
|
|
5265
|
+
readonly showValues?: boolean;
|
|
5266
5266
|
readonly horizontal?: boolean;
|
|
5267
5267
|
readonly isDoughnut?: boolean;
|
|
5268
5268
|
readonly pieHolePercentage?: number;
|
|
@@ -5365,7 +5365,7 @@ interface UpdateCellCommand extends PositionDependentCommand {
|
|
|
5365
5365
|
*/
|
|
5366
5366
|
interface UpdateCellPositionCommand extends PositionDependentCommand {
|
|
5367
5367
|
type: "UPDATE_CELL_POSITION";
|
|
5368
|
-
cellId?:
|
|
5368
|
+
cellId?: number;
|
|
5369
5369
|
}
|
|
5370
5370
|
interface AddColumnsRowsCommand extends SheetDependentCommand, SheetEditingCommand {
|
|
5371
5371
|
type: "ADD_COLUMNS_ROWS";
|
|
@@ -5798,7 +5798,7 @@ interface ActivateSheetCommand {
|
|
|
5798
5798
|
}
|
|
5799
5799
|
interface EvaluateCellsCommand {
|
|
5800
5800
|
type: "EVALUATE_CELLS";
|
|
5801
|
-
cellIds?:
|
|
5801
|
+
cellIds?: number[];
|
|
5802
5802
|
}
|
|
5803
5803
|
interface EvaluateChartsCommand {
|
|
5804
5804
|
type: "EVALUATE_CHARTS";
|
|
@@ -6363,7 +6363,7 @@ interface HeaderDimensions {
|
|
|
6363
6363
|
end: Pixel;
|
|
6364
6364
|
}
|
|
6365
6365
|
interface Row {
|
|
6366
|
-
cells: Record<number,
|
|
6366
|
+
cells: Record<number, number | undefined>;
|
|
6367
6367
|
}
|
|
6368
6368
|
interface Position {
|
|
6369
6369
|
col: HeaderIndex;
|
|
@@ -6401,13 +6401,15 @@ declare const enum DIRECTION {
|
|
|
6401
6401
|
RIGHT = "right"
|
|
6402
6402
|
}
|
|
6403
6403
|
type ChangeType = "REMOVE" | "RESIZE" | "MOVE" | "CHANGE" | "NONE";
|
|
6404
|
-
type ApplyRangeChangeResult = {
|
|
6405
|
-
changeType:
|
|
6406
|
-
range:
|
|
6407
|
-
} | {
|
|
6408
|
-
changeType: "NONE";
|
|
6404
|
+
type ApplyRangeChangeResult<T> = {
|
|
6405
|
+
changeType: ChangeType;
|
|
6406
|
+
range: T;
|
|
6409
6407
|
};
|
|
6410
|
-
type
|
|
6408
|
+
type ApplyFormulaRangeChangeResult = {
|
|
6409
|
+
changeType: ChangeType;
|
|
6410
|
+
formula: string;
|
|
6411
|
+
};
|
|
6412
|
+
type ApplyRangeChange = (range: Range) => ApplyRangeChangeResult<Range>;
|
|
6411
6413
|
type AdaptSheetName = {
|
|
6412
6414
|
old: string;
|
|
6413
6415
|
current: string;
|
|
@@ -6417,10 +6419,15 @@ type RangeAdapter = {
|
|
|
6417
6419
|
sheetName: AdaptSheetName;
|
|
6418
6420
|
applyChange: ApplyRangeChange;
|
|
6419
6421
|
};
|
|
6422
|
+
type RangeAdapterFunctions = {
|
|
6423
|
+
applyChange: ApplyRangeChange;
|
|
6424
|
+
adaptRangeString: (defaultSheetId: UID, sheetXC: string) => ApplyRangeChangeResult<string>;
|
|
6425
|
+
adaptFormulaString: (defaultSheetId: UID, formula: string) => string;
|
|
6426
|
+
};
|
|
6420
6427
|
type Dimension = "COL" | "ROW";
|
|
6421
6428
|
type ConsecutiveIndexes = HeaderIndex[];
|
|
6422
6429
|
interface RangeProvider {
|
|
6423
|
-
adaptRanges: (
|
|
6430
|
+
adaptRanges: (adapterFunctions: RangeAdapterFunctions, sheetId: UID, sheetName: AdaptSheetName) => void;
|
|
6424
6431
|
}
|
|
6425
6432
|
type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
|
|
6426
6433
|
type Increment = 1 | -1 | 0;
|
|
@@ -6496,6 +6503,7 @@ type SortDirection = "asc" | "desc";
|
|
|
6496
6503
|
interface ValueAndLabel<T = string> {
|
|
6497
6504
|
value: T;
|
|
6498
6505
|
label: string;
|
|
6506
|
+
separator?: boolean;
|
|
6499
6507
|
}
|
|
6500
6508
|
|
|
6501
6509
|
declare const OPERATOR_MAP: {
|
|
@@ -6777,4 +6785,4 @@ declare class NumberTooLargeError extends EvaluationError {
|
|
|
6777
6785
|
|
|
6778
6786
|
declare const __info__: {};
|
|
6779
6787
|
|
|
6780
|
-
export { AST, ASTFuncall, ASTOperation, ASTString, ASTSymbol, ASTUnaryOperation, AdaptSheetName, AdjacentEdge, Alias, Align, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, BadExpressionError, BasePlugin, Border, BorderData, BorderDescr, BorderDescrWithOpacity, BorderPosition, BorderStyle, Box, BoxTextContent, CSSProperties, CellErrorType, CellPosition, CellValue, ChangeType, CircularDependencyError, ClipboardCell, Cloneable, Color, CompiledFormula, ComposerFocusType, ConsecutiveIndexes, CoreGetters, CreateRevisionOptions, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DebouncedFunction, Dimension, Direction, DivisionByZeroError, EdgeScrollInfo, EditionMode, EnsureRange, ErrorValue, EvaluationError, FilterId, Format, FormulaToExecute, FunctionCode, FunctionCodeBuilder, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GetSymbolValue, GlobalChart, GridClickModifiers, GridRenderingContext, HSLA, HeaderDimensions, HeaderGroup, HeaderIndex, Highlight, HistoryChange, Image, Immutable, Increment, InvalidReferenceError, LayerName, Lazy, Link, Locale, LocaleCode, Matrix, Maybe, MenuMouseEvent, Merge, Model, NotAvailableError, NumberTooLargeError, OPERATOR_MAP, OP_PRIORITY, Offset, OperationSequenceNode, OrderedLayers, POSTFIX_UNARY_OPERATORS, PaneDivision, Pixel, PixelPosition, PluginGetters, Position, RGBA, RangeAdapter, RangeCompiledFormula, RangeProvider, Rect, Ref, ReferenceDenormalizer, Registry, RenderingBorder, RenderingBox, RenderingGridIcon, Row, Scope, ScrollDirection, Selection, SelectionStep, SetDecimalStep, Sheet, SheetDOMScrollInfo, SortDirection, SortOptions, SplillBlockedError, SpreadsheetClipboardData, StateObserver, Style, TableId, Token, TokenizingChars, Transformation, TransformationFactory, TranslationFunction, UID, UNARY_OPERATOR_MAP, UnboundedZone, UnknownFunctionError, UpdateCellData, UuidGenerator, Validation, Validator, ValueAndLabel, VerticalAlign, Viewport, WorkbookHistory, Wrapping, Zone, ZoneDimension, __info__, _t, addRenderingLayer, batched, borderStyles, buildSheetLink, categories, cellReference, chartStyleToCellStyle, clip, compile, compileTokens, concat, convertAstNodes, createEmptyStructure, debounce, deepCopy, deepEquals, deepEqualsArray, doesCellContainFunction, errorTypes, escapeRegExp, findNextDefinedValue, functionCache, getAddHeaderStartIndex, getCanonicalSymbolName, getFormulaNumberRegex, getFullReference, getSearchRegex, getUniqueText, getUnquotedSheetName, groupConsecutive, includesAll, insertItemsAtIndex, isBoolean, isColHeader, isColReference, isConsecutive, isDefined, isFormula, isMarkdownLink, isMatrix, isNotNull, isNumber, isNumberBetween, isObjectEmptyRecursive, isRowHeader, isRowReference, isSheetUrl, isSingleCellReference, isWebLink, iterateAstNodes, largeMax, largeMin, lazy, linkNext, loopThroughReferenceType, mapAst, markdownLink, memoize, parse, parseMarkdownLink, parseNumber, parseSheetUrl, parseTokens, percentile, range, rangeReference, rangeTokenize, removeDuplicates, removeFalsyAttributes, removeIndexesFromArray, replaceItemAtIndex, replaceNewLines, sanitizeSheetName, setDefaultTranslationMethod, setTranslationMethod, setXcToFixedReferenceType, specialWhiteSpaceRegexp, splitReference, tokenize, transpose2dPOJO, trimContent, unquote, whiteSpaceCharacters };
|
|
6788
|
+
export { AST, ASTFuncall, ASTOperation, ASTString, ASTSymbol, ASTUnaryOperation, AdaptSheetName, AdjacentEdge, Alias, Align, AnchorZone, ApplyFormulaRangeChangeResult, ApplyRangeChange, ApplyRangeChangeResult, Arg, BadExpressionError, BasePlugin, Border, BorderData, BorderDescr, BorderDescrWithOpacity, BorderPosition, BorderStyle, Box, BoxTextContent, CSSProperties, CellErrorType, CellPosition, CellValue, ChangeType, CircularDependencyError, ClipboardCell, Cloneable, Color, CompiledFormula, ComposerFocusType, ConsecutiveIndexes, CoreGetters, CreateRevisionOptions, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DebouncedFunction, Dimension, Direction, DivisionByZeroError, EdgeScrollInfo, EditionMode, EnsureRange, ErrorValue, EvaluationError, FilterId, Format, FormulaToExecute, FunctionCode, FunctionCodeBuilder, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GetSymbolValue, GlobalChart, GridClickModifiers, GridRenderingContext, HSLA, HeaderDimensions, HeaderGroup, HeaderIndex, Highlight, HistoryChange, Image, Immutable, Increment, InvalidReferenceError, LayerName, Lazy, Link, Locale, LocaleCode, Matrix, Maybe, MenuMouseEvent, Merge, Model, NotAvailableError, NumberTooLargeError, OPERATOR_MAP, OP_PRIORITY, Offset, OperationSequenceNode, OrderedLayers, POSTFIX_UNARY_OPERATORS, PaneDivision, Pixel, PixelPosition, PluginGetters, Position, RGBA, RangeAdapter, RangeAdapterFunctions, RangeCompiledFormula, RangeProvider, Rect, Ref, ReferenceDenormalizer, Registry, RenderingBorder, RenderingBox, RenderingGridIcon, Row, Scope, ScrollDirection, Selection, SelectionStep, SetDecimalStep, Sheet, SheetDOMScrollInfo, SortDirection, SortOptions, SplillBlockedError, SpreadsheetClipboardData, StateObserver, Style, TableId, Token, TokenizingChars, Transformation, TransformationFactory, TranslationFunction, UID, UNARY_OPERATOR_MAP, UnboundedZone, UnknownFunctionError, UpdateCellData, UuidGenerator, Validation, Validator, ValueAndLabel, VerticalAlign, Viewport, WorkbookHistory, Wrapping, Zone, ZoneDimension, __info__, _t, addRenderingLayer, batched, borderStyles, buildSheetLink, categories, cellReference, chartStyleToCellStyle, clip, compile, compileTokens, concat, convertAstNodes, createEmptyStructure, debounce, deepCopy, deepEquals, deepEqualsArray, doesCellContainFunction, errorTypes, escapeRegExp, findNextDefinedValue, functionCache, getAddHeaderStartIndex, getCanonicalSymbolName, getFormulaNumberRegex, getFullReference, getSearchRegex, getUniqueText, getUnquotedSheetName, groupConsecutive, includesAll, insertItemsAtIndex, isBoolean, isColHeader, isColReference, isConsecutive, isDefined, isFormula, isMarkdownLink, isMatrix, isNotNull, isNumber, isNumberBetween, isObjectEmptyRecursive, isRowHeader, isRowReference, isSheetUrl, isSingleCellReference, isWebLink, iterateAstNodes, largeMax, largeMin, lazy, linkNext, loopThroughReferenceType, mapAst, markdownLink, memoize, parse, parseMarkdownLink, parseNumber, parseSheetUrl, parseTokens, percentile, range, rangeReference, rangeTokenize, removeDuplicates, removeFalsyAttributes, removeIndexesFromArray, replaceItemAtIndex, replaceNewLines, sanitizeSheetName, setDefaultTranslationMethod, setTranslationMethod, setXcToFixedReferenceType, specialWhiteSpaceRegexp, splitReference, tokenize, transpose2dPOJO, trimContent, unquote, whiteSpaceCharacters };
|