@odoo/o-spreadsheet 19.1.0-alpha.9 → 19.1.2
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 +137 -53
- package/dist/o-spreadsheet-engine.esm.js +10580 -9611
- package/dist/o-spreadsheet-engine.iife.js +10580 -9610
- package/dist/o-spreadsheet-engine.min.iife.js +313 -313
- package/dist/o-spreadsheet.d.ts +736 -907
- package/dist/o_spreadsheet.css +3293 -0
- package/dist/o_spreadsheet.esm.js +49539 -39515
- package/dist/o_spreadsheet.iife.js +97946 -87922
- package/dist/o_spreadsheet.min.iife.js +335 -317
- package/dist/o_spreadsheet.xml +911 -520
- package/package.json +14 -14
- package/readme.md +1 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as ChartJs from 'chart.js';
|
|
1
2
|
import { ChartConfiguration, CoreChartOptions, Scriptable, Color as Color$1, ScriptableContext, FontSpec } from 'chart.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -48,7 +49,6 @@ interface CellAttributes {
|
|
|
48
49
|
* Raw cell content
|
|
49
50
|
*/
|
|
50
51
|
readonly content: string;
|
|
51
|
-
readonly style?: Style;
|
|
52
52
|
readonly format?: Format;
|
|
53
53
|
}
|
|
54
54
|
interface LiteralCell extends CellAttributes {
|
|
@@ -121,7 +121,7 @@ declare enum CellValueType {
|
|
|
121
121
|
* formulas.
|
|
122
122
|
*/
|
|
123
123
|
declare const POSTFIX_UNARY_OPERATORS: string[];
|
|
124
|
-
type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "SYMBOL" | "SPACE" | "DEBUGGER" | "ARG_SEPARATOR" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
|
|
124
|
+
type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "SYMBOL" | "SPACE" | "DEBUGGER" | "ARG_SEPARATOR" | "ARRAY_ROW_SEPARATOR" | "LEFT_PAREN" | "RIGHT_PAREN" | "LEFT_BRACE" | "RIGHT_BRACE" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
|
|
125
125
|
interface Token {
|
|
126
126
|
readonly type: TokenType;
|
|
127
127
|
readonly value: string;
|
|
@@ -135,8 +135,8 @@ interface BarChartDefinition extends CommonChartDefinition {
|
|
|
135
135
|
readonly zoomable?: boolean;
|
|
136
136
|
}
|
|
137
137
|
type BarChartRuntime = {
|
|
138
|
-
chartJsConfig: ChartConfiguration
|
|
139
|
-
masterChartConfig?: ChartConfiguration
|
|
138
|
+
chartJsConfig: ChartConfiguration<"bar" | "line">;
|
|
139
|
+
masterChartConfig?: ChartConfiguration<"bar">;
|
|
140
140
|
background: Color;
|
|
141
141
|
};
|
|
142
142
|
|
|
@@ -424,7 +424,7 @@ interface CoreState$1 {
|
|
|
424
424
|
* cell and sheet content.
|
|
425
425
|
*/
|
|
426
426
|
declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1 {
|
|
427
|
-
static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "
|
|
427
|
+
static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellById", "getFormulaString", "getFormulaMovedInSheet"];
|
|
428
428
|
readonly nextId = 1;
|
|
429
429
|
readonly cells: {
|
|
430
430
|
[sheetId: string]: {
|
|
@@ -448,14 +448,13 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
448
448
|
*/
|
|
449
449
|
private clearCells;
|
|
450
450
|
/**
|
|
451
|
-
* Copy the
|
|
451
|
+
* Copy the format of the reference column/row to the new columns/rows.
|
|
452
452
|
*/
|
|
453
453
|
private handleAddColumnsRows;
|
|
454
454
|
import(data: WorkbookData): void;
|
|
455
455
|
export(data: WorkbookData): void;
|
|
456
|
-
importCell(sheetId: UID, content?: string,
|
|
456
|
+
importCell(sheetId: UID, content?: string, format?: Format): Cell;
|
|
457
457
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
458
|
-
private removeDefaultStyleValues;
|
|
459
458
|
getCells(sheetId: UID): Record<UID, Cell>;
|
|
460
459
|
/**
|
|
461
460
|
* get a cell by ID. Used in evaluation when evaluating an async cell, we need to be able to find it back after
|
|
@@ -465,7 +464,6 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
465
464
|
getFormulaString(sheetId: UID, tokens: Token[], dependencies: Range[], useBoundedReference?: boolean): string;
|
|
466
465
|
getTranslatedCellFormula(sheetId: UID, offsetX: number, offsetY: number, tokens: Token[]): string;
|
|
467
466
|
getFormulaMovedInSheet(originSheetId: UID, targetSheetId: UID, tokens: Token[]): string;
|
|
468
|
-
getCellStyle(position: CellPosition): Style;
|
|
469
467
|
/**
|
|
470
468
|
* Converts a zone to a XC coordinate system
|
|
471
469
|
*
|
|
@@ -483,17 +481,16 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
483
481
|
* {top:1,left:0,right:1,bottom:3} ==> A1:A5
|
|
484
482
|
*/
|
|
485
483
|
zoneToXC(sheetId: UID, zone: Zone, fixedParts?: RangePart[]): string;
|
|
486
|
-
private setStyle;
|
|
487
484
|
/**
|
|
488
|
-
* Copy the
|
|
485
|
+
* Copy the format of one column to other columns.
|
|
489
486
|
*/
|
|
490
|
-
private
|
|
487
|
+
private copyColumnFormat;
|
|
491
488
|
/**
|
|
492
|
-
* Copy the
|
|
489
|
+
* Copy the format of one row to other rows.
|
|
493
490
|
*/
|
|
494
|
-
private
|
|
491
|
+
private copyRowFormat;
|
|
495
492
|
/**
|
|
496
|
-
* gets the currently used style
|
|
493
|
+
* gets the currently used style and format of a cell based on it's coordinates
|
|
497
494
|
*/
|
|
498
495
|
private getFormat;
|
|
499
496
|
private getNextUid;
|
|
@@ -648,6 +645,7 @@ interface CellIsRule extends SingleColorRule {
|
|
|
648
645
|
type: "CellIsRule";
|
|
649
646
|
operator: ConditionalFormattingOperatorValues;
|
|
650
647
|
values: string[];
|
|
648
|
+
dateValue?: DateCriterionValue;
|
|
651
649
|
}
|
|
652
650
|
type ThresholdType = "value" | "number" | "percentage" | "percentile" | "formula";
|
|
653
651
|
type ColorScaleThreshold = {
|
|
@@ -690,7 +688,8 @@ interface IconSetRule {
|
|
|
690
688
|
upperInflectionPoint: IconThreshold;
|
|
691
689
|
lowerInflectionPoint: IconThreshold;
|
|
692
690
|
}
|
|
693
|
-
|
|
691
|
+
declare const cfOperators: readonly ["containsText", "notContainsText", "isGreaterThan", "isGreaterOrEqualTo", "isLessThan", "isLessOrEqualTo", "isBetween", "isNotBetween", "beginsWithText", "endsWithText", "isNotEmpty", "isEmpty", "isNotEqual", "isEqual", "customFormula", "dateIs", "dateIsBefore", "dateIsAfter", "dateIsOnOrBefore", "dateIsOnOrAfter"];
|
|
692
|
+
type ConditionalFormattingOperatorValues = (typeof cfOperators)[number];
|
|
694
693
|
|
|
695
694
|
interface ConditionalFormatState {
|
|
696
695
|
readonly cfRules: {
|
|
@@ -1194,7 +1193,7 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
|
|
|
1194
1193
|
}
|
|
1195
1194
|
|
|
1196
1195
|
type Aggregator = "array_agg" | "count" | "count_distinct" | "bool_and" | "bool_or" | "max" | "min" | "avg" | "sum";
|
|
1197
|
-
type Granularity = "day" | "
|
|
1196
|
+
type Granularity = "day" | "month" | "year" | "second_number" | "minute_number" | "hour_number" | "day_of_week" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number";
|
|
1198
1197
|
interface PivotCoreDimension {
|
|
1199
1198
|
fieldName: string;
|
|
1200
1199
|
order?: SortDirection;
|
|
@@ -1412,6 +1411,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
1412
1411
|
declare class RangeAdapter$1 implements CommandHandler<CoreCommand> {
|
|
1413
1412
|
private getters;
|
|
1414
1413
|
private providers;
|
|
1414
|
+
private isAdaptingRanges;
|
|
1415
1415
|
constructor(getters: CoreGetters);
|
|
1416
1416
|
static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
1417
1417
|
allowDispatch(cmd: CoreCommand): CommandResult;
|
|
@@ -1505,6 +1505,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
1505
1505
|
readonly sheets: Record<UID, Sheet | undefined>;
|
|
1506
1506
|
readonly cellPosition: Record<UID, CellPosition | undefined>;
|
|
1507
1507
|
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
1508
|
+
beforeHandle(cmd: CoreCommand): void;
|
|
1508
1509
|
handle(cmd: CoreCommand): void;
|
|
1509
1510
|
import(data: WorkbookData): void;
|
|
1510
1511
|
private exportSheets;
|
|
@@ -1638,6 +1639,37 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
1638
1639
|
private checkZonesAreInSheet;
|
|
1639
1640
|
}
|
|
1640
1641
|
|
|
1642
|
+
type ZoneStyle = {
|
|
1643
|
+
zone: UnboundedZone;
|
|
1644
|
+
style: Style;
|
|
1645
|
+
};
|
|
1646
|
+
interface StylePluginState {
|
|
1647
|
+
readonly styles: Record<UID, ZoneStyle[] | undefined>;
|
|
1648
|
+
}
|
|
1649
|
+
declare class StylePlugin extends CorePlugin<StylePluginState> implements StylePluginState {
|
|
1650
|
+
static getters: readonly ["getCellStyle", "getCellStyleInZone", "getZoneStyles", "getStyleColors"];
|
|
1651
|
+
readonly styles: Record<UID, ZoneStyle[] | undefined>;
|
|
1652
|
+
allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
|
|
1653
|
+
handle(cmd: CoreCommand): void;
|
|
1654
|
+
adaptRanges(applyChange: ApplyRangeChange, sheetId: UID): void;
|
|
1655
|
+
private handleAddColumnn;
|
|
1656
|
+
private handleAddRows;
|
|
1657
|
+
private styleIsDefault;
|
|
1658
|
+
private removeDefaultStyleValues;
|
|
1659
|
+
private onMerge;
|
|
1660
|
+
private setStyles;
|
|
1661
|
+
private setStyle;
|
|
1662
|
+
private clearStyle;
|
|
1663
|
+
getCellStyle(cellPosition: CellPosition): Style | undefined;
|
|
1664
|
+
getCellStyleInZone(sheetId: UID, zone: Zone): PositionMap<Style>;
|
|
1665
|
+
getZoneStyles(sheetId: UID, zone: Zone): ZoneStyle[];
|
|
1666
|
+
getStyleColors(sheetId: UID): Color[];
|
|
1667
|
+
import(data: WorkbookData): void;
|
|
1668
|
+
export(data: WorkbookData): void;
|
|
1669
|
+
exportForExcel(data: ExcelWorkbookData): void;
|
|
1670
|
+
private checkUselessSetFormatting;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1641
1673
|
interface TableState {
|
|
1642
1674
|
tables: Record<UID, Record<TableId, CoreTable | undefined>>;
|
|
1643
1675
|
nextTableId: number;
|
|
@@ -1747,7 +1779,7 @@ type PluginGetters<Plugin extends {
|
|
|
1747
1779
|
getters: readonly string[];
|
|
1748
1780
|
}> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
|
|
1749
1781
|
type RangeAdapterGetters = Pick<RangeAdapter$1, GetterNames<typeof RangeAdapter$1>>;
|
|
1750
|
-
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 CarouselPlugin> & PluginGetters<typeof FigurePlugin> & RangeAdapterGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof TablePlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin> & PluginGetters<typeof PivotCorePlugin>;
|
|
1782
|
+
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>;
|
|
1751
1783
|
|
|
1752
1784
|
type VerticalAxisPosition = "left" | "right";
|
|
1753
1785
|
type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
|
|
@@ -1764,29 +1796,17 @@ interface CommonChartDefinition {
|
|
|
1764
1796
|
readonly humanize?: boolean;
|
|
1765
1797
|
}
|
|
1766
1798
|
|
|
1767
|
-
interface GeoChartDefinition {
|
|
1799
|
+
interface GeoChartDefinition extends CommonChartDefinition {
|
|
1768
1800
|
readonly type: "geo";
|
|
1769
|
-
readonly
|
|
1770
|
-
readonly dataSetsHaveTitle: boolean;
|
|
1771
|
-
readonly labelRange?: string;
|
|
1772
|
-
readonly title: TitleDesign;
|
|
1773
|
-
readonly background?: Color;
|
|
1774
|
-
readonly legendPosition: LegendPosition;
|
|
1775
|
-
readonly colorScale?: GeoChartColorScale;
|
|
1801
|
+
readonly colorScale?: ChartColorScale;
|
|
1776
1802
|
readonly missingValueColor?: Color;
|
|
1777
1803
|
readonly region?: string;
|
|
1778
|
-
readonly
|
|
1804
|
+
readonly showColorBar?: boolean;
|
|
1779
1805
|
}
|
|
1780
1806
|
type GeoChartRuntime = {
|
|
1781
1807
|
chartJsConfig: ChartConfiguration;
|
|
1782
1808
|
background: Color;
|
|
1783
1809
|
};
|
|
1784
|
-
interface GeoChartCustomColorScale {
|
|
1785
|
-
minColor: Color;
|
|
1786
|
-
midColor?: Color;
|
|
1787
|
-
maxColor: Color;
|
|
1788
|
-
}
|
|
1789
|
-
type GeoChartColorScale = GeoChartCustomColorScale | "blues" | "cividis" | "greens" | "greys" | "oranges" | "purples" | "rainbow" | "reds" | "viridis";
|
|
1790
1810
|
type GeoChartProjection = "azimuthalEqualArea" | "azimuthalEquidistant" | "gnomonic" | "orthographic" | "stereographic" | "equalEarth" | "albers" | "albersUsa" | "conicConformal" | "conicEqualArea" | "conicEquidistant" | "equirectangular" | "mercator" | "transverseMercator" | "naturalEarth1";
|
|
1791
1811
|
interface GeoChartRegion {
|
|
1792
1812
|
id: string;
|
|
@@ -2515,6 +2535,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
2515
2535
|
private onClientJoined;
|
|
2516
2536
|
private onClientLeft;
|
|
2517
2537
|
private sendUpdateMessage;
|
|
2538
|
+
private sendToTransport;
|
|
2518
2539
|
/**
|
|
2519
2540
|
* Send the next pending message
|
|
2520
2541
|
*/
|
|
@@ -2544,7 +2565,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
|
|
|
2544
2565
|
}
|
|
2545
2566
|
|
|
2546
2567
|
declare class EvaluationPlugin extends CoreViewPlugin {
|
|
2547
|
-
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
2568
|
+
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositionInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
|
|
2548
2569
|
private shouldRebuildDependenciesGraph;
|
|
2549
2570
|
private evaluator;
|
|
2550
2571
|
private positionsToUpdate;
|
|
@@ -2571,6 +2592,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
|
|
|
2571
2592
|
getEvaluatedCells(sheetId: UID): EvaluatedCell[];
|
|
2572
2593
|
getEvaluatedCellsPositions(sheetId: UID): CellPosition[];
|
|
2573
2594
|
getEvaluatedCellsInZone(sheetId: UID, zone: Zone): EvaluatedCell[];
|
|
2595
|
+
getEvaluatedCellsPositionInZone(sheetId: UID, zone: Zone): [CellPosition, EvaluatedCell][];
|
|
2574
2596
|
/**
|
|
2575
2597
|
* Return the spread zone the position is part of, if any
|
|
2576
2598
|
*/
|
|
@@ -2578,6 +2600,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
|
|
|
2578
2600
|
ignoreSpillError: boolean;
|
|
2579
2601
|
}): Zone | undefined;
|
|
2580
2602
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
2603
|
+
isArrayFormulaSpillBlocked(position: CellPosition): boolean;
|
|
2581
2604
|
/**
|
|
2582
2605
|
* Check if a zone only contains empty cells
|
|
2583
2606
|
*/
|
|
@@ -2781,6 +2804,7 @@ declare class HeaderSizeUIPlugin extends CoreViewPlugin<HeaderSizeState> impleme
|
|
|
2781
2804
|
getRowSize(sheetId: UID, row: HeaderIndex): Pixel;
|
|
2782
2805
|
getMaxAnchorOffset(sheetId: UID, height: Pixel, width: Pixel): AnchorOffset;
|
|
2783
2806
|
getHeaderSize(sheetId: UID, dimension: Dimension, index: HeaderIndex): Pixel;
|
|
2807
|
+
private updateRowSizeForZoneChange;
|
|
2784
2808
|
private updateRowSizeForCellChange;
|
|
2785
2809
|
private initializeSheet;
|
|
2786
2810
|
/**
|
|
@@ -2944,7 +2968,7 @@ interface Pivot<T = PivotRuntimeDefinition> {
|
|
|
2944
2968
|
declare class PivotUIPlugin extends CoreViewPlugin {
|
|
2945
2969
|
static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula"];
|
|
2946
2970
|
private pivots;
|
|
2947
|
-
private
|
|
2971
|
+
private unusedPivotsInFormulas?;
|
|
2948
2972
|
private custom;
|
|
2949
2973
|
constructor(config: CoreViewPluginConfig);
|
|
2950
2974
|
beforeHandle(cmd: Command): void;
|
|
@@ -2984,7 +3008,7 @@ declare class PivotUIPlugin extends CoreViewPlugin {
|
|
|
2984
3008
|
setupPivot(pivotId: UID, { recreate }?: {
|
|
2985
3009
|
recreate: boolean;
|
|
2986
3010
|
}): void;
|
|
2987
|
-
|
|
3011
|
+
private _getUnusedPivotsInFormulas;
|
|
2988
3012
|
}
|
|
2989
3013
|
|
|
2990
3014
|
/**
|
|
@@ -3016,7 +3040,7 @@ type SelectionEventOptions = {
|
|
|
3016
3040
|
interface SelectionEvent {
|
|
3017
3041
|
anchor: AnchorZone;
|
|
3018
3042
|
previousAnchor: AnchorZone;
|
|
3019
|
-
mode: "newAnchor" | "overrideSelection" | "updateAnchor";
|
|
3043
|
+
mode: "newAnchor" | "overrideSelection" | "updateAnchor" | "commitSelection";
|
|
3020
3044
|
options: SelectionEventOptions;
|
|
3021
3045
|
}
|
|
3022
3046
|
|
|
@@ -3026,6 +3050,7 @@ type StatefulStream<Event, State> = {
|
|
|
3026
3050
|
resetDefaultAnchor: (owner: unknown, state: State) => void;
|
|
3027
3051
|
resetAnchor: (owner: unknown, state: State) => void;
|
|
3028
3052
|
observe: (owner: unknown, callbacks: StreamCallbacks<Event>) => void;
|
|
3053
|
+
unobserve: (owner: unknown) => void;
|
|
3029
3054
|
release: (owner: unknown) => void;
|
|
3030
3055
|
getBackToDefault(): void;
|
|
3031
3056
|
};
|
|
@@ -3044,6 +3069,7 @@ interface SelectionProcessor {
|
|
|
3044
3069
|
selectAll(): DispatchResult;
|
|
3045
3070
|
loopSelection(): DispatchResult;
|
|
3046
3071
|
selectTableAroundSelection(): DispatchResult;
|
|
3072
|
+
commitSelection(): DispatchResult;
|
|
3047
3073
|
isListening(owner: unknown): boolean;
|
|
3048
3074
|
}
|
|
3049
3075
|
type SelectionStreamProcessor = SelectionProcessor & StatefulStream<SelectionEvent, AnchorZone>;
|
|
@@ -3244,8 +3270,8 @@ declare class CellComputedStylePlugin extends UIPlugin {
|
|
|
3244
3270
|
handle(cmd: Command): void;
|
|
3245
3271
|
getCellComputedBorder(position: CellPosition, precomputeZone?: Zone): Border | null;
|
|
3246
3272
|
private precomputeCellBorders;
|
|
3247
|
-
getCellComputedStyle(position: CellPosition): Style;
|
|
3248
|
-
private
|
|
3273
|
+
getCellComputedStyle(position: CellPosition, precomputeZone?: Zone): Style;
|
|
3274
|
+
private precomputeCellStyle;
|
|
3249
3275
|
}
|
|
3250
3276
|
|
|
3251
3277
|
declare class CheckboxTogglePlugin extends UIPlugin {
|
|
@@ -3427,11 +3453,12 @@ declare class SubtotalEvaluationPlugin extends UIPlugin {
|
|
|
3427
3453
|
}
|
|
3428
3454
|
|
|
3429
3455
|
declare class TableComputedStylePlugin extends UIPlugin {
|
|
3430
|
-
static getters: readonly ["getCellTableStyle", "getCellTableBorder", "getCellTableBorderZone"];
|
|
3456
|
+
static getters: readonly ["getCellTableStyle", "getCellTableBorder", "getCellTableBorderZone", "getCellTableStyleZone"];
|
|
3431
3457
|
private tableStyles;
|
|
3432
3458
|
handle(cmd: Command): void;
|
|
3433
3459
|
finalize(): void;
|
|
3434
3460
|
getCellTableStyle(position: CellPosition): Style | undefined;
|
|
3461
|
+
getCellTableStyleZone(sheetId: UID, zone: Zone): PositionMap<Style>;
|
|
3435
3462
|
getCellTableBorder(position: CellPosition): Border | undefined;
|
|
3436
3463
|
getCellTableBorderZone(sheetId: UID, zone: Zone): PositionMap<Border>;
|
|
3437
3464
|
private computeTableStyle;
|
|
@@ -3455,12 +3482,16 @@ declare class UIOptionsPlugin extends UIPlugin {
|
|
|
3455
3482
|
}
|
|
3456
3483
|
|
|
3457
3484
|
declare class SheetUIPlugin extends UIPlugin {
|
|
3458
|
-
static getters: readonly ["getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getContiguousZone", "computeTextYCoordinate"];
|
|
3485
|
+
static getters: readonly ["getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getMultilineTextSize", "getContiguousZone", "computeTextYCoordinate"];
|
|
3459
3486
|
private ctx;
|
|
3460
3487
|
allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
|
|
3461
3488
|
handle(cmd: Command): void;
|
|
3462
3489
|
getCellWidth(position: CellPosition): number;
|
|
3463
3490
|
getTextWidth(text: string, style: Style): Pixel;
|
|
3491
|
+
getMultilineTextSize(text: string[], style: Style): {
|
|
3492
|
+
width: number;
|
|
3493
|
+
height: number;
|
|
3494
|
+
};
|
|
3464
3495
|
getCellText(position: CellPosition, args?: {
|
|
3465
3496
|
showFormula?: boolean;
|
|
3466
3497
|
availableWidth?: number;
|
|
@@ -3515,6 +3546,7 @@ declare class CarouselUIPlugin extends UIPlugin {
|
|
|
3515
3546
|
private fixWrongCarouselState;
|
|
3516
3547
|
private addNewChartToCarousel;
|
|
3517
3548
|
private addFigureChartToCarousel;
|
|
3549
|
+
private duplicateCarouselChart;
|
|
3518
3550
|
private getCarouselItemId;
|
|
3519
3551
|
}
|
|
3520
3552
|
|
|
@@ -3863,7 +3895,7 @@ declare class InternalViewport {
|
|
|
3863
3895
|
*
|
|
3864
3896
|
*/
|
|
3865
3897
|
declare class SheetViewPlugin extends UIPlugin {
|
|
3866
|
-
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPixelPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport", "getAllActiveViewportsZonesAndRect", "getRect", "getFigureUI", "getPositionAnchorOffset", "getGridOffset"];
|
|
3898
|
+
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleRectWithZoom", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPixelPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport", "getAllActiveViewportsZonesAndRect", "getRect", "getFigureUI", "getPositionAnchorOffset", "getGridOffset", "getViewportZoomLevel", "getScrollBarWidth", "getMaximumSheetOffset"];
|
|
3867
3899
|
private viewports;
|
|
3868
3900
|
/**
|
|
3869
3901
|
* The viewport dimensions are usually set by one of the components
|
|
@@ -3875,6 +3907,7 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
3875
3907
|
private sheetViewHeight;
|
|
3876
3908
|
private gridOffsetX;
|
|
3877
3909
|
private gridOffsetY;
|
|
3910
|
+
private zoomLevel;
|
|
3878
3911
|
private sheetsWithDirtyViewports;
|
|
3879
3912
|
private shouldAdjustViewports;
|
|
3880
3913
|
allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
|
|
@@ -3914,18 +3947,26 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
3914
3947
|
* Return the main viewport maximum size relative to the client size.
|
|
3915
3948
|
*/
|
|
3916
3949
|
getMainViewportRect(): Rect;
|
|
3917
|
-
|
|
3950
|
+
getMaximumSheetOffset(): {
|
|
3951
|
+
maxOffsetX: Pixel;
|
|
3952
|
+
maxOffsetY: Pixel;
|
|
3953
|
+
};
|
|
3918
3954
|
getColRowOffsetInViewport(dimension: Dimension, referenceHeaderIndex: HeaderIndex, targetHeaderIndex: HeaderIndex): Pixel;
|
|
3919
3955
|
/**
|
|
3920
3956
|
* Check if a given position is visible in the viewport.
|
|
3921
3957
|
*/
|
|
3922
3958
|
isVisibleInViewport({ sheetId, col, row }: CellPosition): boolean;
|
|
3959
|
+
getScrollBarWidth(): Pixel;
|
|
3923
3960
|
getEdgeScrollCol(x: number, previousX: number, startingX: number): EdgeScrollInfo;
|
|
3924
3961
|
getEdgeScrollRow(y: number, previousY: number, startingY: number): EdgeScrollInfo;
|
|
3925
3962
|
/**
|
|
3926
3963
|
* Computes the coordinates and size to draw the zone on the canvas
|
|
3927
3964
|
*/
|
|
3928
3965
|
getVisibleRect(zone: Zone): Rect;
|
|
3966
|
+
/**
|
|
3967
|
+
* Computes the coordinates and size to draw the zone on the canvas after it has been zoomed
|
|
3968
|
+
*/
|
|
3969
|
+
getVisibleRectWithZoom(zone: Zone): Rect;
|
|
3929
3970
|
/**
|
|
3930
3971
|
* Computes the coordinates and size to draw the zone without taking the grid offset into account
|
|
3931
3972
|
*/
|
|
@@ -3960,6 +4001,7 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
3960
4001
|
zone: Zone;
|
|
3961
4002
|
rect: Rect;
|
|
3962
4003
|
}[];
|
|
4004
|
+
getViewportZoomLevel(): number;
|
|
3963
4005
|
private ensureMainViewportExist;
|
|
3964
4006
|
private getSubViewports;
|
|
3965
4007
|
private checkPositiveDimension;
|
|
@@ -4454,7 +4496,7 @@ declare class Model extends EventBus<any> implements CommandDispatcher {
|
|
|
4454
4496
|
drawLayer(context: GridRenderingContext, layer: LayerName): void;
|
|
4455
4497
|
/**
|
|
4456
4498
|
* As the name of this method strongly implies, it is useful when we need to
|
|
4457
|
-
* export
|
|
4499
|
+
* export data out of the model.
|
|
4458
4500
|
*/
|
|
4459
4501
|
exportData(): WorkbookData;
|
|
4460
4502
|
updateMode(mode: Mode): void;
|
|
@@ -4567,6 +4609,8 @@ type Rect = DOMCoordinates & DOMDimension;
|
|
|
4567
4609
|
interface BoxTextContent {
|
|
4568
4610
|
textLines: string[];
|
|
4569
4611
|
width: Pixel;
|
|
4612
|
+
textHeight: Pixel;
|
|
4613
|
+
textWidth: Pixel;
|
|
4570
4614
|
align: Align;
|
|
4571
4615
|
fontSizePx: number;
|
|
4572
4616
|
x: Pixel;
|
|
@@ -4716,6 +4760,16 @@ interface XLSXExport {
|
|
|
4716
4760
|
*/
|
|
4717
4761
|
type XlsxHexColor = string & Alias;
|
|
4718
4762
|
|
|
4763
|
+
declare const CALENDAR_CHART_GRANULARITIES: ("year" | "second_number" | "minute_number" | "hour_number" | "day_of_week" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number")[];
|
|
4764
|
+
type CalendarChartGranularity = (typeof CALENDAR_CHART_GRANULARITIES)[number];
|
|
4765
|
+
interface CalendarChartDefinition extends CommonChartDefinition {
|
|
4766
|
+
readonly type: "calendar";
|
|
4767
|
+
readonly horizontalGroupBy: CalendarChartGranularity;
|
|
4768
|
+
readonly verticalGroupBy: CalendarChartGranularity;
|
|
4769
|
+
readonly colorScale?: ChartColorScale;
|
|
4770
|
+
readonly missingValueColor?: Color;
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4719
4773
|
interface ComboChartDefinition extends CommonChartDefinition {
|
|
4720
4774
|
readonly dataSets: ComboChartDataSet[];
|
|
4721
4775
|
readonly type: "combo";
|
|
@@ -4806,8 +4860,8 @@ interface LineChartDefinition extends CommonChartDefinition {
|
|
|
4806
4860
|
readonly zoomable?: boolean;
|
|
4807
4861
|
}
|
|
4808
4862
|
type LineChartRuntime = {
|
|
4809
|
-
chartJsConfig: ChartConfiguration
|
|
4810
|
-
masterChartConfig?: ChartConfiguration
|
|
4863
|
+
chartJsConfig: ChartConfiguration<"line">;
|
|
4864
|
+
masterChartConfig?: ChartConfiguration<"line">;
|
|
4811
4865
|
background: Color;
|
|
4812
4866
|
};
|
|
4813
4867
|
|
|
@@ -4823,7 +4877,7 @@ type PieChartRuntime = {
|
|
|
4823
4877
|
background: Color;
|
|
4824
4878
|
};
|
|
4825
4879
|
|
|
4826
|
-
interface PyramidChartDefinition extends Omit<BarChartDefinition, "type"> {
|
|
4880
|
+
interface PyramidChartDefinition extends Omit<BarChartDefinition, "type" | "zoomable"> {
|
|
4827
4881
|
readonly type: "pyramid";
|
|
4828
4882
|
}
|
|
4829
4883
|
type PyramidChartRuntime = {
|
|
@@ -5070,9 +5124,9 @@ type WaterfallChartRuntime = {
|
|
|
5070
5124
|
background: Color;
|
|
5071
5125
|
};
|
|
5072
5126
|
|
|
5073
|
-
declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter", "combo", "waterfall", "pyramid", "radar", "geo", "funnel", "sunburst", "treemap"];
|
|
5127
|
+
declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter", "combo", "waterfall", "pyramid", "radar", "geo", "funnel", "sunburst", "treemap", "calendar"];
|
|
5074
5128
|
type ChartType = (typeof CHART_TYPES)[number];
|
|
5075
|
-
type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition | ComboChartDefinition | WaterfallChartDefinition | PyramidChartDefinition | RadarChartDefinition | GeoChartDefinition | FunnelChartDefinition | SunburstChartDefinition | TreeMapChartDefinition;
|
|
5129
|
+
type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition | ComboChartDefinition | WaterfallChartDefinition | PyramidChartDefinition | RadarChartDefinition | GeoChartDefinition | FunnelChartDefinition | SunburstChartDefinition | TreeMapChartDefinition | CalendarChartDefinition;
|
|
5076
5130
|
type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | ComboChartRuntime | ScatterChartRuntime | WaterfallChartRuntime | PyramidChartRuntime | RadarChartRuntime | GeoChartRuntime | FunnelChartRuntime | SunburstChartRuntime | TreeMapChartRuntime;
|
|
5077
5131
|
type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime | GaugeChartRuntime;
|
|
5078
5132
|
interface DatasetDesign {
|
|
@@ -5191,6 +5245,11 @@ interface ChartCreationContext {
|
|
|
5191
5245
|
readonly zoomable?: boolean;
|
|
5192
5246
|
readonly humanize?: boolean;
|
|
5193
5247
|
}
|
|
5248
|
+
interface ChartColorScale {
|
|
5249
|
+
minColor: Color;
|
|
5250
|
+
midColor?: Color;
|
|
5251
|
+
maxColor: Color;
|
|
5252
|
+
}
|
|
5194
5253
|
|
|
5195
5254
|
/**
|
|
5196
5255
|
* There are two kinds of commands: CoreCommands and LocalCommands
|
|
@@ -5438,6 +5497,12 @@ interface AddFigureChartToCarouselCommand extends SheetDependentCommand {
|
|
|
5438
5497
|
carouselFigureId: UID;
|
|
5439
5498
|
chartFigureId: UID;
|
|
5440
5499
|
}
|
|
5500
|
+
interface DuplicateCarouselChartCommand extends SheetDependentCommand {
|
|
5501
|
+
type: "DUPLICATE_CAROUSEL_CHART";
|
|
5502
|
+
carouselId: UID;
|
|
5503
|
+
chartId: UID;
|
|
5504
|
+
duplicatedChartId: UID;
|
|
5505
|
+
}
|
|
5441
5506
|
interface UpdateCarouselActiveItemCommand extends SheetDependentCommand {
|
|
5442
5507
|
type: "UPDATE_CAROUSEL_ACTIVE_ITEM";
|
|
5443
5508
|
figureId: UID;
|
|
@@ -5759,6 +5824,10 @@ interface SetViewportOffsetCommand {
|
|
|
5759
5824
|
offsetX: Pixel;
|
|
5760
5825
|
offsetY: Pixel;
|
|
5761
5826
|
}
|
|
5827
|
+
interface SetZoomCommand {
|
|
5828
|
+
type: "SET_ZOOM";
|
|
5829
|
+
zoom: number;
|
|
5830
|
+
}
|
|
5762
5831
|
/**
|
|
5763
5832
|
* Shift the viewport down by the viewport height
|
|
5764
5833
|
*/
|
|
@@ -5877,7 +5946,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | ClearCellsCom
|
|
|
5877
5946
|
| UpdateLocaleCommand
|
|
5878
5947
|
/** PIVOT */
|
|
5879
5948
|
| AddPivotCommand | UpdatePivotCommand | InsertPivotCommand | RenamePivotCommand | RemovePivotCommand | DuplicatePivotCommand;
|
|
5880
|
-
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | EvaluateChartsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | SetContextualFormatCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | ResizeTableCommand | RefreshPivotCommand | InsertNewPivotCommand | DuplicatePivotInNewSheetCommand | InsertPivotWithTableCommand | SplitPivotFormulaCommand | PaintFormat | DeleteUnfilteredContentCommand | PivotStartPresenceTracking | PivotStopPresenceTracking | ToggleCheckboxCommand | AddNewChartToCarouselCommand | AddFigureChartToCarouselCommand | UpdateCarouselActiveItemCommand | PopOutChartFromCarouselCommand;
|
|
5949
|
+
type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | EvaluateChartsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | SetContextualFormatCommand | ResizeViewportCommand | SetZoomCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | ResizeTableCommand | RefreshPivotCommand | InsertNewPivotCommand | DuplicatePivotInNewSheetCommand | InsertPivotWithTableCommand | SplitPivotFormulaCommand | PaintFormat | DeleteUnfilteredContentCommand | PivotStartPresenceTracking | PivotStopPresenceTracking | ToggleCheckboxCommand | AddNewChartToCarouselCommand | AddFigureChartToCarouselCommand | DuplicateCarouselChartCommand | UpdateCarouselActiveItemCommand | PopOutChartFromCarouselCommand;
|
|
5881
5950
|
type Command = CoreCommand | LocalCommand;
|
|
5882
5951
|
/**
|
|
5883
5952
|
* Holds the result of a command dispatch.
|
|
@@ -6018,6 +6087,7 @@ declare const enum CommandResult {
|
|
|
6018
6087
|
SheetIsHidden = "SheetIsHidden",
|
|
6019
6088
|
InvalidTableResize = "InvalidTableResize",
|
|
6020
6089
|
PivotIdNotFound = "PivotIdNotFound",
|
|
6090
|
+
PivotIdTaken = "PivotIdTaken",
|
|
6021
6091
|
PivotInError = "PivotInError",
|
|
6022
6092
|
EmptyName = "EmptyName",
|
|
6023
6093
|
ValueCellIsInvalidFormula = "ValueCellIsInvalidFormula",
|
|
@@ -6144,6 +6214,7 @@ interface Style {
|
|
|
6144
6214
|
fillColor?: Color;
|
|
6145
6215
|
textColor?: Color;
|
|
6146
6216
|
fontSize?: number;
|
|
6217
|
+
rotation?: number;
|
|
6147
6218
|
}
|
|
6148
6219
|
interface DataBarFill {
|
|
6149
6220
|
color: Color;
|
|
@@ -6435,11 +6506,15 @@ interface ASTSymbol extends ASTBase {
|
|
|
6435
6506
|
type: "SYMBOL";
|
|
6436
6507
|
value: string;
|
|
6437
6508
|
}
|
|
6509
|
+
interface ASTArray extends ASTBase {
|
|
6510
|
+
type: "ARRAY";
|
|
6511
|
+
value: AST[][];
|
|
6512
|
+
}
|
|
6438
6513
|
interface ASTEmpty extends ASTBase {
|
|
6439
6514
|
type: "EMPTY";
|
|
6440
6515
|
value: "";
|
|
6441
6516
|
}
|
|
6442
|
-
type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTSymbol | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
|
|
6517
|
+
type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTSymbol | ASTArray | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
|
|
6443
6518
|
declare const OP_PRIORITY: {
|
|
6444
6519
|
"%": number;
|
|
6445
6520
|
"^": number;
|
|
@@ -6532,7 +6607,7 @@ type FunctionDescription = AddFunctionDescription & {
|
|
|
6532
6607
|
minArgRequired: number;
|
|
6533
6608
|
maxArgPossible: number;
|
|
6534
6609
|
nbrArgRepeating: number;
|
|
6535
|
-
|
|
6610
|
+
nbrOptionalNonRepeatingArgs: number;
|
|
6536
6611
|
};
|
|
6537
6612
|
type EvalContext = {
|
|
6538
6613
|
__originSheetId: UID;
|
|
@@ -6590,6 +6665,11 @@ declare function setTranslationMethod(tfn: TranslationFunction, loaded?: () => b
|
|
|
6590
6665
|
declare function setDefaultTranslationMethod(): void;
|
|
6591
6666
|
declare const _t: TranslationFunction;
|
|
6592
6667
|
|
|
6668
|
+
type GlobalChart = typeof ChartJs & typeof ChartJs.Chart;
|
|
6669
|
+
declare global {
|
|
6670
|
+
var Chart: GlobalChart | undefined;
|
|
6671
|
+
}
|
|
6672
|
+
|
|
6593
6673
|
declare const CellErrorType: {
|
|
6594
6674
|
readonly NotAvailable: "#N/A";
|
|
6595
6675
|
readonly InvalidReference: "#REF";
|
|
@@ -6597,6 +6677,7 @@ declare const CellErrorType: {
|
|
|
6597
6677
|
readonly CircularDependency: "#CYCLE";
|
|
6598
6678
|
readonly UnknownFunction: "#NAME?";
|
|
6599
6679
|
readonly DivisionByZero: "#DIV/0!";
|
|
6680
|
+
readonly InvalidNumber: "#NUM!";
|
|
6600
6681
|
readonly SpilledBlocked: "#SPILL!";
|
|
6601
6682
|
readonly GenericError: "#ERROR";
|
|
6602
6683
|
readonly NullError: "#NULL!";
|
|
@@ -6629,7 +6710,10 @@ declare class SplillBlockedError extends EvaluationError {
|
|
|
6629
6710
|
declare class DivisionByZeroError extends EvaluationError {
|
|
6630
6711
|
constructor(message?: string);
|
|
6631
6712
|
}
|
|
6713
|
+
declare class NumberTooLargeError extends EvaluationError {
|
|
6714
|
+
constructor(message?: string);
|
|
6715
|
+
}
|
|
6632
6716
|
|
|
6633
6717
|
declare const __info__: {};
|
|
6634
6718
|
|
|
6635
|
-
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, GridClickModifiers, GridRenderingContext, HSLA, HeaderDimensions, HeaderGroup, HeaderIndex, Highlight, HistoryChange, Image, Immutable, Increment, InvalidReferenceError, LayerName, Lazy, Link, Locale, LocaleCode, Matrix, Maybe, MenuMouseEvent, Merge, Model, NotAvailableError, OPERATOR_MAP, OP_PRIORITY, Offset, OperationSequenceNode, OrderedLayers, POSTFIX_UNARY_OPERATORS, PaneDivision, Pixel, PixelPosition, PluginGetters, Position, RGBA, RangeAdapter, RangeCompiledFormula, RangeProvider, Rect, Ref, ReferenceDenormalizer, Registry, RenderingBorder, RenderingBox, RenderingGridIcon, Row, Scope, ScrollDirection, Selection, SelectionStep, SetDecimalStep, Sheet, SheetDOMScrollInfo, SortDirection, SortOptions, SplillBlockedError, SpreadsheetClipboardData, StateObserver, Style, TableId, Token, TokenizingChars, Transformation, TransformationFactory, TranslationFunction, UID, UNARY_OPERATOR_MAP, UnboundedZone, UnknownFunctionError, UpdateCellData, UuidGenerator, Validation, Validator, ValueAndLabel, VerticalAlign, Viewport, WorkbookHistory, Wrapping, Zone, ZoneDimension, __info__, _t, addRenderingLayer, batched, borderStyles, buildSheetLink, categories, cellReference, chartStyleToCellStyle, clip, compile, compileTokens, concat, convertAstNodes, createEmptyStructure, debounce, deepCopy, deepEquals, deepEqualsArray, errorTypes, escapeRegExp, findNextDefinedValue, functionCache, getAddHeaderStartIndex, getCanonicalSymbolName, getFormulaNumberRegex, getFullReference, getSearchRegex, getUniqueText, getUnquotedSheetName, groupConsecutive, includesAll, insertItemsAtIndex, isBoolean, isColHeader, isColReference, isConsecutive, isDefined, isFormula, isMarkdownLink, isMatrix, isNotNull, isNumber, isNumberBetween, isObjectEmptyRecursive, isRowHeader, isRowReference, isSheetUrl, isSingleCellReference, isWebLink, iterateAstNodes, largeMax, largeMin, lazy, linkNext, loopThroughReferenceType, mapAst, markdownLink, memoize, parse, parseMarkdownLink, parseNumber, parseSheetUrl, parseTokens, percentile, range, rangeReference, rangeTokenize, removeDuplicates, removeFalsyAttributes, removeIndexesFromArray, replaceItemAtIndex, replaceNewLines, sanitizeSheetName, setDefaultTranslationMethod, setTranslationMethod, setXcToFixedReferenceType, specialWhiteSpaceRegexp, splitReference, tokenize, transpose2dPOJO, trimContent, unquote, whiteSpaceCharacters };
|
|
6719
|
+
export { AST, ASTFuncall, ASTOperation, ASTString, ASTSymbol, ASTUnaryOperation, AdaptSheetName, AdjacentEdge, Alias, Align, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, BadExpressionError, BasePlugin, Border, BorderData, BorderDescr, BorderDescrWithOpacity, BorderPosition, BorderStyle, Box, BoxTextContent, CSSProperties, CellErrorType, CellPosition, CellValue, ChangeType, CircularDependencyError, ClipboardCell, Cloneable, Color, CompiledFormula, ComposerFocusType, ConsecutiveIndexes, CoreGetters, CreateRevisionOptions, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DebouncedFunction, Dimension, Direction, DivisionByZeroError, EdgeScrollInfo, EditionMode, EnsureRange, ErrorValue, EvaluationError, FilterId, Format, FormulaToExecute, FunctionCode, FunctionCodeBuilder, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GetSymbolValue, GlobalChart, GridClickModifiers, GridRenderingContext, HSLA, HeaderDimensions, HeaderGroup, HeaderIndex, Highlight, HistoryChange, Image, Immutable, Increment, InvalidReferenceError, LayerName, Lazy, Link, Locale, LocaleCode, Matrix, Maybe, MenuMouseEvent, Merge, Model, NotAvailableError, NumberTooLargeError, OPERATOR_MAP, OP_PRIORITY, Offset, OperationSequenceNode, OrderedLayers, POSTFIX_UNARY_OPERATORS, PaneDivision, Pixel, PixelPosition, PluginGetters, Position, RGBA, RangeAdapter, RangeCompiledFormula, RangeProvider, Rect, Ref, ReferenceDenormalizer, Registry, RenderingBorder, RenderingBox, RenderingGridIcon, Row, Scope, ScrollDirection, Selection, SelectionStep, SetDecimalStep, Sheet, SheetDOMScrollInfo, SortDirection, SortOptions, SplillBlockedError, SpreadsheetClipboardData, StateObserver, Style, TableId, Token, TokenizingChars, Transformation, TransformationFactory, TranslationFunction, UID, UNARY_OPERATOR_MAP, UnboundedZone, UnknownFunctionError, UpdateCellData, UuidGenerator, Validation, Validator, ValueAndLabel, VerticalAlign, Viewport, WorkbookHistory, Wrapping, Zone, ZoneDimension, __info__, _t, addRenderingLayer, batched, borderStyles, buildSheetLink, categories, cellReference, chartStyleToCellStyle, clip, compile, compileTokens, concat, convertAstNodes, createEmptyStructure, debounce, deepCopy, deepEquals, deepEqualsArray, errorTypes, escapeRegExp, findNextDefinedValue, functionCache, getAddHeaderStartIndex, getCanonicalSymbolName, getFormulaNumberRegex, getFullReference, getSearchRegex, getUniqueText, getUnquotedSheetName, groupConsecutive, includesAll, insertItemsAtIndex, isBoolean, isColHeader, isColReference, isConsecutive, isDefined, isFormula, isMarkdownLink, isMatrix, isNotNull, isNumber, isNumberBetween, isObjectEmptyRecursive, isRowHeader, isRowReference, isSheetUrl, isSingleCellReference, isWebLink, iterateAstNodes, largeMax, largeMin, lazy, linkNext, loopThroughReferenceType, mapAst, markdownLink, memoize, parse, parseMarkdownLink, parseNumber, parseSheetUrl, parseTokens, percentile, range, rangeReference, rangeTokenize, removeDuplicates, removeFalsyAttributes, removeIndexesFromArray, replaceItemAtIndex, replaceNewLines, sanitizeSheetName, setDefaultTranslationMethod, setTranslationMethod, setXcToFixedReferenceType, specialWhiteSpaceRegexp, splitReference, tokenize, transpose2dPOJO, trimContent, unquote, whiteSpaceCharacters };
|