@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.
@@ -36,7 +36,6 @@ interface CellAttributes {
36
36
  * Raw cell content
37
37
  */
38
38
  readonly content: string;
39
- readonly style?: Style;
40
39
  readonly format?: Format;
41
40
  }
42
41
  interface LiteralCell extends CellAttributes {
@@ -92,13 +91,27 @@ declare enum CellValueType {
92
91
  error = "error"
93
92
  }
94
93
 
95
- type TokenType = "OPERATOR" | "NUMBER" | "STRING" | "SYMBOL" | "SPACE" | "DEBUGGER" | "ARG_SEPARATOR" | "LEFT_PAREN" | "RIGHT_PAREN" | "REFERENCE" | "INVALID_REFERENCE" | "UNKNOWN";
94
+ 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";
96
95
  interface Token {
97
96
  readonly type: TokenType;
98
97
  readonly value: string;
99
98
  }
100
99
  declare function tokenize(str: string, locale?: Locale): Token[];
101
100
 
101
+ interface GenericCriterion {
102
+ type: GenericCriterionType;
103
+ values: string[];
104
+ }
105
+ type GenericDateCriterion = GenericCriterion & {
106
+ dateValue: DateCriterionValue;
107
+ };
108
+ type GenericCriterionType = "containsText" | "notContainsText" | "isEqualText" | "isEmail" | "isLink" | "dateIs" | "dateIsBefore" | "dateIsOnOrBefore" | "dateIsAfter" | "dateIsOnOrAfter" | "dateIsBetween" | "dateIsNotBetween" | "dateIsValid" | "isEqual" | "isNotEqual" | "isGreaterThan" | "isGreaterOrEqualTo" | "isLessThan" | "isLessOrEqualTo" | "isBetween" | "isNotBetween" | "isBoolean" | "isValueInList" | "isValueInRange" | "customFormula" | "beginsWithText" | "endsWithText" | "isNotEmpty" | "isEmpty";
109
+ type DateCriterionValue = "today" | "tomorrow" | "yesterday" | "lastWeek" | "lastMonth" | "lastYear" | "exactDate";
110
+ type EvaluatedCriterion<T extends GenericCriterion = GenericCriterion> = Omit<T, "values"> & {
111
+ values: CellValue[];
112
+ };
113
+ type EvaluatedDateCriterion = EvaluatedCriterion<GenericDateCriterion>;
114
+
102
115
  interface RangePart {
103
116
  readonly colFixed: boolean;
104
117
  readonly rowFixed: boolean;
@@ -154,6 +167,7 @@ interface CellIsRule extends SingleColorRule {
154
167
  type: "CellIsRule";
155
168
  operator: ConditionalFormattingOperatorValues;
156
169
  values: string[];
170
+ dateValue?: DateCriterionValue;
157
171
  }
158
172
  interface ExpressionRule extends SingleColorRule {
159
173
  type: "ExpressionRule";
@@ -238,7 +252,8 @@ interface Top10Rule extends SingleColorRule {
238
252
  bottom: boolean;
239
253
  rank: number;
240
254
  }
241
- type ConditionalFormattingOperatorValues = "beginsWithText" | "isBetween" | "containsText" | "isEmpty" | "isNotEmpty" | "endsWithText" | "isEqual" | "isGreaterThan" | "isGreaterOrEqualTo" | "isLessThan" | "isLessOrEqualTo" | "isNotBetween" | "notContainsText" | "isNotEqual" | "customFormula";
255
+ declare const cfOperators: readonly ["containsText", "notContainsText", "isGreaterThan", "isGreaterOrEqualTo", "isLessThan", "isLessOrEqualTo", "isBetween", "isNotBetween", "beginsWithText", "endsWithText", "isNotEmpty", "isEmpty", "isNotEqual", "isEqual", "customFormula", "dateIs", "dateIsBefore", "dateIsAfter", "dateIsOnOrBefore", "dateIsOnOrAfter"];
256
+ type ConditionalFormattingOperatorValues = (typeof cfOperators)[number];
242
257
  declare const availableConditionalFormatOperators: Set<ConditionalFormattingOperatorValues>;
243
258
 
244
259
  declare const functionCache: {
@@ -289,11 +304,15 @@ interface ASTSymbol extends ASTBase {
289
304
  type: "SYMBOL";
290
305
  value: string;
291
306
  }
307
+ interface ASTArray extends ASTBase {
308
+ type: "ARRAY";
309
+ value: AST[][];
310
+ }
292
311
  interface ASTEmpty extends ASTBase {
293
312
  type: "EMPTY";
294
313
  value: "";
295
314
  }
296
- type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTSymbol | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
315
+ type AST = ASTOperation | ASTUnaryOperation | ASTFuncall | ASTSymbol | ASTArray | ASTNumber | ASTBoolean | ASTString | ASTReference | ASTEmpty;
297
316
  /**
298
317
  * Parse an expression (as a string) into an AST.
299
318
  */
@@ -360,7 +379,7 @@ type FunctionDescription = AddFunctionDescription & {
360
379
  minArgRequired: number;
361
380
  maxArgPossible: number;
362
381
  nbrArgRepeating: number;
363
- nbrArgOptional: number;
382
+ nbrOptionalNonRepeatingArgs: number;
364
383
  };
365
384
  type EvalContext = {
366
385
  __originSheetId: UID;
@@ -444,6 +463,7 @@ declare function getUniqueText(text: string, texts: string[], options?: {
444
463
  start?: number;
445
464
  computeFirstOne?: boolean;
446
465
  }): string;
466
+ declare function isFormula(content: string): boolean;
447
467
 
448
468
  /**
449
469
  * Return true if the argument is a "number string".
@@ -697,7 +717,7 @@ interface CoreState$1 {
697
717
  * cell and sheet content.
698
718
  */
699
719
  declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1 {
700
- static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellStyle", "getCellById", "getFormulaString", "getFormulaMovedInSheet"];
720
+ static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellById", "getFormulaString", "getFormulaMovedInSheet"];
701
721
  readonly nextId = 1;
702
722
  readonly cells: {
703
723
  [sheetId: string]: {
@@ -721,14 +741,13 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
721
741
  */
722
742
  private clearCells;
723
743
  /**
724
- * Copy the style of the reference column/row to the new columns/rows.
744
+ * Copy the format of the reference column/row to the new columns/rows.
725
745
  */
726
746
  private handleAddColumnsRows;
727
747
  import(data: WorkbookData): void;
728
748
  export(data: WorkbookData): void;
729
- importCell(sheetId: UID, content?: string, style?: Style, format?: Format): Cell;
749
+ importCell(sheetId: UID, content?: string, format?: Format): Cell;
730
750
  exportForExcel(data: ExcelWorkbookData): void;
731
- private removeDefaultStyleValues;
732
751
  getCells(sheetId: UID): Record<UID, Cell>;
733
752
  /**
734
753
  * get a cell by ID. Used in evaluation when evaluating an async cell, we need to be able to find it back after
@@ -738,7 +757,6 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
738
757
  getFormulaString(sheetId: UID, tokens: Token[], dependencies: Range[], useBoundedReference?: boolean): string;
739
758
  getTranslatedCellFormula(sheetId: UID, offsetX: number, offsetY: number, tokens: Token[]): string;
740
759
  getFormulaMovedInSheet(originSheetId: UID, targetSheetId: UID, tokens: Token[]): string;
741
- getCellStyle(position: CellPosition): Style;
742
760
  /**
743
761
  * Converts a zone to a XC coordinate system
744
762
  *
@@ -756,17 +774,16 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
756
774
  * {top:1,left:0,right:1,bottom:3} ==> A1:A5
757
775
  */
758
776
  zoneToXC(sheetId: UID, zone: Zone, fixedParts?: RangePart[]): string;
759
- private setStyle;
760
777
  /**
761
- * Copy the style of one column to other columns.
778
+ * Copy the format of one column to other columns.
762
779
  */
763
- private copyColumnStyle;
780
+ private copyColumnFormat;
764
781
  /**
765
- * Copy the style of one row to other rows.
782
+ * Copy the format of one row to other rows.
766
783
  */
767
- private copyRowStyle;
784
+ private copyRowFormat;
768
785
  /**
769
- * gets the currently used style/border of a cell based on it's coordinates
786
+ * gets the currently used style and format of a cell based on it's coordinates
770
787
  */
771
788
  private getFormat;
772
789
  private getNextUid;
@@ -951,20 +968,6 @@ declare class ConditionalFormatPlugin extends CorePlugin<ConditionalFormatState>
951
968
  private changeCFPriority;
952
969
  }
953
970
 
954
- interface GenericCriterion {
955
- type: GenericCriterionType;
956
- values: string[];
957
- }
958
- type GenericDateCriterion = GenericCriterion & {
959
- dateValue: DateCriterionValue;
960
- };
961
- type GenericCriterionType = "containsText" | "notContainsText" | "isEqualText" | "isEmail" | "isLink" | "dateIs" | "dateIsBefore" | "dateIsOnOrBefore" | "dateIsAfter" | "dateIsOnOrAfter" | "dateIsBetween" | "dateIsNotBetween" | "dateIsValid" | "isEqual" | "isNotEqual" | "isGreaterThan" | "isGreaterOrEqualTo" | "isLessThan" | "isLessOrEqualTo" | "isBetween" | "isNotBetween" | "isBoolean" | "isValueInList" | "isValueInRange" | "customFormula" | "beginsWithText" | "endsWithText" | "isNotEmpty" | "isEmpty";
962
- type DateCriterionValue = "today" | "tomorrow" | "yesterday" | "lastWeek" | "lastMonth" | "lastYear" | "exactDate";
963
- type EvaluatedCriterion<T extends GenericCriterion = GenericCriterion> = Omit<T, "values"> & {
964
- values: CellValue[];
965
- };
966
- type EvaluatedDateCriterion = EvaluatedCriterion<GenericDateCriterion>;
967
-
968
971
  interface DataValidationRule {
969
972
  id: UID;
970
973
  criterion: DataValidationCriterion;
@@ -1402,7 +1405,7 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
1402
1405
  }
1403
1406
 
1404
1407
  type Aggregator = "array_agg" | "count" | "count_distinct" | "bool_and" | "bool_or" | "max" | "min" | "avg" | "sum";
1405
- type Granularity = "day" | "week" | "month" | "quarter" | "year" | "second_number" | "minute_number" | "hour_number" | "day_of_week" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number";
1408
+ type Granularity = "day" | "month" | "year" | "second_number" | "minute_number" | "hour_number" | "day_of_week" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number";
1406
1409
  interface PivotCoreDimension {
1407
1410
  fieldName: string;
1408
1411
  order?: SortDirection;
@@ -1635,6 +1638,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
1635
1638
  declare class RangeAdapter$1 implements CommandHandler<CoreCommand> {
1636
1639
  private getters;
1637
1640
  private providers;
1641
+ private isAdaptingRanges;
1638
1642
  constructor(getters: CoreGetters);
1639
1643
  static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
1640
1644
  allowDispatch(cmd: CoreCommand): CommandResult;
@@ -1728,6 +1732,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
1728
1732
  readonly sheets: Record<UID, Sheet | undefined>;
1729
1733
  readonly cellPosition: Record<UID, CellPosition | undefined>;
1730
1734
  allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
1735
+ beforeHandle(cmd: CoreCommand): void;
1731
1736
  handle(cmd: CoreCommand): void;
1732
1737
  import(data: WorkbookData): void;
1733
1738
  private exportSheets;
@@ -1861,6 +1866,37 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
1861
1866
  private checkZonesAreInSheet;
1862
1867
  }
1863
1868
 
1869
+ type ZoneStyle = {
1870
+ zone: UnboundedZone;
1871
+ style: Style;
1872
+ };
1873
+ interface StylePluginState {
1874
+ readonly styles: Record<UID, ZoneStyle[] | undefined>;
1875
+ }
1876
+ declare class StylePlugin extends CorePlugin<StylePluginState> implements StylePluginState {
1877
+ static getters: readonly ["getCellStyle", "getCellStyleInZone", "getZoneStyles", "getStyleColors"];
1878
+ readonly styles: Record<UID, ZoneStyle[] | undefined>;
1879
+ allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
1880
+ handle(cmd: CoreCommand): void;
1881
+ adaptRanges(applyChange: ApplyRangeChange, sheetId: UID): void;
1882
+ private handleAddColumnn;
1883
+ private handleAddRows;
1884
+ private styleIsDefault;
1885
+ private removeDefaultStyleValues;
1886
+ private onMerge;
1887
+ private setStyles;
1888
+ private setStyle;
1889
+ private clearStyle;
1890
+ getCellStyle(cellPosition: CellPosition): Style | undefined;
1891
+ getCellStyleInZone(sheetId: UID, zone: Zone): PositionMap<Style>;
1892
+ getZoneStyles(sheetId: UID, zone: Zone): ZoneStyle[];
1893
+ getStyleColors(sheetId: UID): Color[];
1894
+ import(data: WorkbookData): void;
1895
+ export(data: WorkbookData): void;
1896
+ exportForExcel(data: ExcelWorkbookData): void;
1897
+ private checkUselessSetFormatting;
1898
+ }
1899
+
1864
1900
  interface Table {
1865
1901
  readonly id: TableId;
1866
1902
  readonly range: Range;
@@ -2051,7 +2087,7 @@ type PluginGetters<Plugin extends {
2051
2087
  getters: readonly string[];
2052
2088
  }> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
2053
2089
  type RangeAdapterGetters = Pick<RangeAdapter$1, GetterNames<typeof RangeAdapter$1>>;
2054
- 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>;
2090
+ 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>;
2055
2091
 
2056
2092
  type XLSXExportFile = XLSXExportImageFile | XLSXExportXMLFile;
2057
2093
  interface XLSXExportXMLFile {
@@ -2074,6 +2110,16 @@ interface XLSXExport {
2074
2110
  */
2075
2111
  type XlsxHexColor = string & Alias;
2076
2112
 
2113
+ 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")[];
2114
+ type CalendarChartGranularity = (typeof CALENDAR_CHART_GRANULARITIES)[number];
2115
+ interface CalendarChartDefinition extends CommonChartDefinition {
2116
+ readonly type: "calendar";
2117
+ readonly horizontalGroupBy: CalendarChartGranularity;
2118
+ readonly verticalGroupBy: CalendarChartGranularity;
2119
+ readonly colorScale?: ChartColorScale;
2120
+ readonly missingValueColor?: Color;
2121
+ }
2122
+
2077
2123
  type VerticalAxisPosition = "left" | "right";
2078
2124
  type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
2079
2125
  interface CommonChartDefinition {
@@ -2179,8 +2225,8 @@ interface LineChartDefinition extends CommonChartDefinition {
2179
2225
  readonly zoomable?: boolean;
2180
2226
  }
2181
2227
  type LineChartRuntime = {
2182
- chartJsConfig: ChartConfiguration;
2183
- masterChartConfig?: ChartConfiguration;
2228
+ chartJsConfig: ChartConfiguration<"line">;
2229
+ masterChartConfig?: ChartConfiguration<"line">;
2184
2230
  background: Color;
2185
2231
  };
2186
2232
 
@@ -2196,7 +2242,7 @@ type PieChartRuntime = {
2196
2242
  background: Color;
2197
2243
  };
2198
2244
 
2199
- interface PyramidChartDefinition extends Omit<BarChartDefinition, "type"> {
2245
+ interface PyramidChartDefinition extends Omit<BarChartDefinition, "type" | "zoomable"> {
2200
2246
  readonly type: "pyramid";
2201
2247
  }
2202
2248
  type PyramidChartRuntime = {
@@ -2449,14 +2495,20 @@ type WaterfallChartRuntime = {
2449
2495
  background: Color;
2450
2496
  };
2451
2497
 
2452
- declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter", "combo", "waterfall", "pyramid", "radar", "geo", "funnel", "sunburst", "treemap"];
2498
+ declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter", "combo", "waterfall", "pyramid", "radar", "geo", "funnel", "sunburst", "treemap", "calendar"];
2453
2499
  type ChartType = (typeof CHART_TYPES)[number];
2454
- type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition | ComboChartDefinition | WaterfallChartDefinition | PyramidChartDefinition | RadarChartDefinition | GeoChartDefinition | FunnelChartDefinition | SunburstChartDefinition | TreeMapChartDefinition;
2500
+ type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition | ComboChartDefinition | WaterfallChartDefinition | PyramidChartDefinition | RadarChartDefinition | GeoChartDefinition | FunnelChartDefinition | SunburstChartDefinition | TreeMapChartDefinition | CalendarChartDefinition;
2455
2501
  type ChartWithDataSetDefinition = Extract<ChartDefinition, {
2456
2502
  dataSets: CustomizedDataSet[];
2457
2503
  labelRange?: string;
2458
2504
  humanize?: boolean;
2459
2505
  }>;
2506
+ type ChartWithColorScaleDefinition = Extract<ChartDefinition, {
2507
+ colorScale?: ChartColorScale;
2508
+ }>;
2509
+ type ChartWithTitleDefinition = Extract<ChartDefinition, {
2510
+ title?: TitleDesign;
2511
+ }>;
2460
2512
  type ChartWithAxisDefinition = Extract<ChartWithDataSetDefinition, {
2461
2513
  axesDesign?: AxesDesign;
2462
2514
  }>;
@@ -2608,30 +2660,24 @@ interface ChartRuntimeGenerationArgs {
2608
2660
  type GenericDefinition<T extends ChartWithDataSetDefinition> = Partial<Omit<T, "dataSets" | "type">> & {
2609
2661
  dataSets?: Omit<T["dataSets"][number], "dataRange">[];
2610
2662
  };
2663
+ interface ChartColorScale {
2664
+ minColor: Color;
2665
+ midColor?: Color;
2666
+ maxColor: Color;
2667
+ }
2668
+ declare function schemeToColorScale(scheme: string): ChartColorScale | undefined;
2611
2669
 
2612
- interface GeoChartDefinition {
2670
+ interface GeoChartDefinition extends CommonChartDefinition {
2613
2671
  readonly type: "geo";
2614
- readonly dataSets: CustomizedDataSet[];
2615
- readonly dataSetsHaveTitle: boolean;
2616
- readonly labelRange?: string;
2617
- readonly title: TitleDesign;
2618
- readonly background?: Color;
2619
- readonly legendPosition: LegendPosition;
2620
- readonly colorScale?: GeoChartColorScale;
2672
+ readonly colorScale?: ChartColorScale;
2621
2673
  readonly missingValueColor?: Color;
2622
2674
  readonly region?: string;
2623
- readonly humanize?: boolean;
2675
+ readonly showColorBar?: boolean;
2624
2676
  }
2625
2677
  type GeoChartRuntime = {
2626
2678
  chartJsConfig: ChartConfiguration;
2627
2679
  background: Color;
2628
2680
  };
2629
- interface GeoChartCustomColorScale {
2630
- minColor: Color;
2631
- midColor?: Color;
2632
- maxColor: Color;
2633
- }
2634
- type GeoChartColorScale = GeoChartCustomColorScale | "blues" | "cividis" | "greens" | "greys" | "oranges" | "purples" | "rainbow" | "reds" | "viridis";
2635
2681
  type GeoChartProjection = "azimuthalEqualArea" | "azimuthalEquidistant" | "gnomonic" | "orthographic" | "stereographic" | "equalEarth" | "albers" | "albersUsa" | "conicConformal" | "conicEqualArea" | "conicEquidistant" | "equirectangular" | "mercator" | "transverseMercator" | "naturalEarth1";
2636
2682
  interface GeoChartRegion {
2637
2683
  id: string;
@@ -3131,7 +3177,7 @@ type SelectionEventOptions = {
3131
3177
  interface SelectionEvent {
3132
3178
  anchor: AnchorZone;
3133
3179
  previousAnchor: AnchorZone;
3134
- mode: "newAnchor" | "overrideSelection" | "updateAnchor";
3180
+ mode: "newAnchor" | "overrideSelection" | "updateAnchor" | "commitSelection";
3135
3181
  options: SelectionEventOptions;
3136
3182
  }
3137
3183
 
@@ -3141,6 +3187,7 @@ type StatefulStream<Event, State> = {
3141
3187
  resetDefaultAnchor: (owner: unknown, state: State) => void;
3142
3188
  resetAnchor: (owner: unknown, state: State) => void;
3143
3189
  observe: (owner: unknown, callbacks: StreamCallbacks<Event>) => void;
3190
+ unobserve: (owner: unknown) => void;
3144
3191
  release: (owner: unknown) => void;
3145
3192
  getBackToDefault(): void;
3146
3193
  };
@@ -3159,6 +3206,7 @@ interface SelectionProcessor {
3159
3206
  selectAll(): DispatchResult;
3160
3207
  loopSelection(): DispatchResult;
3161
3208
  selectTableAroundSelection(): DispatchResult;
3209
+ commitSelection(): DispatchResult;
3162
3210
  isListening(owner: unknown): boolean;
3163
3211
  }
3164
3212
  type SelectionStreamProcessor = SelectionProcessor & StatefulStream<SelectionEvent, AnchorZone>;
@@ -3303,7 +3351,7 @@ declare class Model extends EventBus<any> implements CommandDispatcher {
3303
3351
  drawLayer(context: GridRenderingContext, layer: LayerName): void;
3304
3352
  /**
3305
3353
  * As the name of this method strongly implies, it is useful when we need to
3306
- * export date out of the model.
3354
+ * export data out of the model.
3307
3355
  */
3308
3356
  exportData(): WorkbookData;
3309
3357
  updateMode(mode: Mode): void;
@@ -3331,6 +3379,11 @@ type TranslationFunction = (string: string, ...values: SprintfValues) => string;
3331
3379
  */
3332
3380
  declare function setTranslationMethod(tfn: TranslationFunction, loaded?: () => boolean): void;
3333
3381
 
3382
+ type GlobalChart = typeof chart_js & typeof chart_js.Chart;
3383
+ declare global {
3384
+ var Chart: GlobalChart | undefined;
3385
+ }
3386
+
3334
3387
  declare const CellErrorType: {
3335
3388
  readonly NotAvailable: "#N/A";
3336
3389
  readonly InvalidReference: "#REF";
@@ -3338,6 +3391,7 @@ declare const CellErrorType: {
3338
3391
  readonly CircularDependency: "#CYCLE";
3339
3392
  readonly UnknownFunction: "#NAME?";
3340
3393
  readonly DivisionByZero: "#DIV/0!";
3394
+ readonly InvalidNumber: "#NUM!";
3341
3395
  readonly SpilledBlocked: "#SPILL!";
3342
3396
  readonly GenericError: "#ERROR";
3343
3397
  readonly NullError: "#NULL!";
@@ -3370,6 +3424,9 @@ declare class SplillBlockedError extends EvaluationError {
3370
3424
  declare class DivisionByZeroError extends EvaluationError {
3371
3425
  constructor(message?: string);
3372
3426
  }
3427
+ declare class NumberTooLargeError extends EvaluationError {
3428
+ constructor(message?: string);
3429
+ }
3373
3430
 
3374
3431
  interface TableStylesState {
3375
3432
  readonly styles: {
@@ -3590,6 +3647,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
3590
3647
  private onClientJoined;
3591
3648
  private onClientLeft;
3592
3649
  private sendUpdateMessage;
3650
+ private sendToTransport;
3593
3651
  /**
3594
3652
  * Send the next pending message
3595
3653
  */
@@ -3623,7 +3681,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
3623
3681
  }
3624
3682
 
3625
3683
  declare class EvaluationPlugin extends CoreViewPlugin {
3626
- static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
3684
+ static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositionInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
3627
3685
  private shouldRebuildDependenciesGraph;
3628
3686
  private evaluator;
3629
3687
  private positionsToUpdate;
@@ -3650,6 +3708,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
3650
3708
  getEvaluatedCells(sheetId: UID): EvaluatedCell[];
3651
3709
  getEvaluatedCellsPositions(sheetId: UID): CellPosition[];
3652
3710
  getEvaluatedCellsInZone(sheetId: UID, zone: Zone): EvaluatedCell[];
3711
+ getEvaluatedCellsPositionInZone(sheetId: UID, zone: Zone): [CellPosition, EvaluatedCell][];
3653
3712
  /**
3654
3713
  * Return the spread zone the position is part of, if any
3655
3714
  */
@@ -3657,6 +3716,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
3657
3716
  ignoreSpillError: boolean;
3658
3717
  }): Zone | undefined;
3659
3718
  getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
3719
+ isArrayFormulaSpillBlocked(position: CellPosition): boolean;
3660
3720
  /**
3661
3721
  * Check if a zone only contains empty cells
3662
3722
  */
@@ -3860,6 +3920,7 @@ declare class HeaderSizeUIPlugin extends CoreViewPlugin<HeaderSizeState> impleme
3860
3920
  getRowSize(sheetId: UID, row: HeaderIndex): Pixel;
3861
3921
  getMaxAnchorOffset(sheetId: UID, height: Pixel, width: Pixel): AnchorOffset;
3862
3922
  getHeaderSize(sheetId: UID, dimension: Dimension, index: HeaderIndex): Pixel;
3923
+ private updateRowSizeForZoneChange;
3863
3924
  private updateRowSizeForCellChange;
3864
3925
  private initializeSheet;
3865
3926
  /**
@@ -4023,7 +4084,7 @@ interface Pivot<T = PivotRuntimeDefinition> {
4023
4084
  declare class PivotUIPlugin extends CoreViewPlugin {
4024
4085
  static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula"];
4025
4086
  private pivots;
4026
- private unusedPivots?;
4087
+ private unusedPivotsInFormulas?;
4027
4088
  private custom;
4028
4089
  constructor(config: CoreViewPluginConfig);
4029
4090
  beforeHandle(cmd: Command): void;
@@ -4063,7 +4124,7 @@ declare class PivotUIPlugin extends CoreViewPlugin {
4063
4124
  setupPivot(pivotId: UID, { recreate }?: {
4064
4125
  recreate: boolean;
4065
4126
  }): void;
4066
- _getUnusedPivots(): UID[];
4127
+ private _getUnusedPivotsInFormulas;
4067
4128
  }
4068
4129
 
4069
4130
  /**
@@ -4119,6 +4180,7 @@ interface AutofillData {
4119
4180
  row: number;
4120
4181
  sheetId: UID;
4121
4182
  border?: Border$1;
4183
+ style?: Style;
4122
4184
  }
4123
4185
  interface AutofillResult {
4124
4186
  cellData: AutofillCellData;
@@ -4232,13 +4294,13 @@ declare class AutofillPlugin extends UIPlugin {
4232
4294
  }
4233
4295
 
4234
4296
  interface AutomaticSum {
4235
- position: Position$1;
4297
+ position: Position;
4236
4298
  zone: Zone;
4237
4299
  }
4238
4300
  declare class AutomaticSumPlugin extends UIPlugin {
4239
4301
  static getters: readonly ["getAutomaticSums"];
4240
4302
  handle(cmd: Command): void;
4241
- getAutomaticSums(sheetId: UID, zone: Zone, anchor: Position$1): AutomaticSum[];
4303
+ getAutomaticSums(sheetId: UID, zone: Zone, anchor: Position): AutomaticSum[];
4242
4304
  private sumData;
4243
4305
  private sumAdjacentData;
4244
4306
  /**
@@ -4337,8 +4399,8 @@ declare class CellComputedStylePlugin extends UIPlugin {
4337
4399
  handle(cmd: Command): void;
4338
4400
  getCellComputedBorder(position: CellPosition, precomputeZone?: Zone): Border$1 | null;
4339
4401
  private precomputeCellBorders;
4340
- getCellComputedStyle(position: CellPosition): Style;
4341
- private computeCellStyle;
4402
+ getCellComputedStyle(position: CellPosition, precomputeZone?: Zone): Style;
4403
+ private precomputeCellStyle;
4342
4404
  }
4343
4405
 
4344
4406
  declare class CheckboxTogglePlugin extends UIPlugin {
@@ -4520,11 +4582,12 @@ declare class SubtotalEvaluationPlugin extends UIPlugin {
4520
4582
  }
4521
4583
 
4522
4584
  declare class TableComputedStylePlugin extends UIPlugin {
4523
- static getters: readonly ["getCellTableStyle", "getCellTableBorder", "getCellTableBorderZone"];
4585
+ static getters: readonly ["getCellTableStyle", "getCellTableBorder", "getCellTableBorderZone", "getCellTableStyleZone"];
4524
4586
  private tableStyles;
4525
4587
  handle(cmd: Command): void;
4526
4588
  finalize(): void;
4527
4589
  getCellTableStyle(position: CellPosition): Style | undefined;
4590
+ getCellTableStyleZone(sheetId: UID, zone: Zone): PositionMap<Style>;
4528
4591
  getCellTableBorder(position: CellPosition): Border$1 | undefined;
4529
4592
  getCellTableBorderZone(sheetId: UID, zone: Zone): PositionMap<Border$1>;
4530
4593
  private computeTableStyle;
@@ -4548,12 +4611,16 @@ declare class UIOptionsPlugin extends UIPlugin {
4548
4611
  }
4549
4612
 
4550
4613
  declare class SheetUIPlugin extends UIPlugin {
4551
- static getters: readonly ["getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getContiguousZone", "computeTextYCoordinate"];
4614
+ static getters: readonly ["getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getMultilineTextSize", "getContiguousZone", "computeTextYCoordinate"];
4552
4615
  private ctx;
4553
4616
  allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
4554
4617
  handle(cmd: Command): void;
4555
4618
  getCellWidth(position: CellPosition): number;
4556
4619
  getTextWidth(text: string, style: Style): Pixel;
4620
+ getMultilineTextSize(text: string[], style: Style): {
4621
+ width: number;
4622
+ height: number;
4623
+ };
4557
4624
  getCellText(position: CellPosition, args?: {
4558
4625
  showFormula?: boolean;
4559
4626
  availableWidth?: number;
@@ -4608,6 +4675,7 @@ declare class CarouselUIPlugin extends UIPlugin {
4608
4675
  private fixWrongCarouselState;
4609
4676
  private addNewChartToCarousel;
4610
4677
  private addFigureChartToCarousel;
4678
+ private duplicateCarouselChart;
4611
4679
  private getCarouselItemId;
4612
4680
  }
4613
4681
 
@@ -4840,7 +4908,7 @@ declare class InternalViewport {
4840
4908
  * the pane that is actually displayed on the client. We therefore adjust the offset of the pane
4841
4909
  * until it contains the cell completely.
4842
4910
  */
4843
- adjustPosition(position: Position$1): void;
4911
+ adjustPosition(position: Position): void;
4844
4912
  private adjustPositionX;
4845
4913
  private adjustPositionY;
4846
4914
  willNewOffsetScrollViewport(offsetX: Pixel, offsetY: Pixel): boolean;
@@ -4924,7 +4992,7 @@ declare class InternalViewport {
4924
4992
  *
4925
4993
  */
4926
4994
  declare class SheetViewPlugin extends UIPlugin {
4927
- 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"];
4995
+ 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"];
4928
4996
  private viewports;
4929
4997
  /**
4930
4998
  * The viewport dimensions are usually set by one of the components
@@ -4936,6 +5004,7 @@ declare class SheetViewPlugin extends UIPlugin {
4936
5004
  private sheetViewHeight;
4937
5005
  private gridOffsetX;
4938
5006
  private gridOffsetY;
5007
+ private zoomLevel;
4939
5008
  private sheetsWithDirtyViewports;
4940
5009
  private shouldAdjustViewports;
4941
5010
  allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
@@ -4975,18 +5044,26 @@ declare class SheetViewPlugin extends UIPlugin {
4975
5044
  * Return the main viewport maximum size relative to the client size.
4976
5045
  */
4977
5046
  getMainViewportRect(): Rect;
4978
- private getMaximumSheetOffset;
5047
+ getMaximumSheetOffset(): {
5048
+ maxOffsetX: Pixel;
5049
+ maxOffsetY: Pixel;
5050
+ };
4979
5051
  getColRowOffsetInViewport(dimension: Dimension, referenceHeaderIndex: HeaderIndex, targetHeaderIndex: HeaderIndex): Pixel;
4980
5052
  /**
4981
5053
  * Check if a given position is visible in the viewport.
4982
5054
  */
4983
5055
  isVisibleInViewport({ sheetId, col, row }: CellPosition): boolean;
5056
+ getScrollBarWidth(): Pixel;
4984
5057
  getEdgeScrollCol(x: number, previousX: number, startingX: number): EdgeScrollInfo;
4985
5058
  getEdgeScrollRow(y: number, previousY: number, startingY: number): EdgeScrollInfo;
4986
5059
  /**
4987
5060
  * Computes the coordinates and size to draw the zone on the canvas
4988
5061
  */
4989
5062
  getVisibleRect(zone: Zone): Rect;
5063
+ /**
5064
+ * Computes the coordinates and size to draw the zone on the canvas after it has been zoomed
5065
+ */
5066
+ getVisibleRectWithZoom(zone: Zone): Rect;
4990
5067
  /**
4991
5068
  * Computes the coordinates and size to draw the zone without taking the grid offset into account
4992
5069
  */
@@ -5021,6 +5098,7 @@ declare class SheetViewPlugin extends UIPlugin {
5021
5098
  zone: Zone;
5022
5099
  rect: Rect;
5023
5100
  }[];
5101
+ getViewportZoomLevel(): number;
5024
5102
  private ensureMainViewportExist;
5025
5103
  private getSubViewports;
5026
5104
  private checkPositiveDimension;
@@ -5241,6 +5319,8 @@ type Rect = DOMCoordinates & DOMDimension;
5241
5319
  interface BoxTextContent {
5242
5320
  textLines: string[];
5243
5321
  width: Pixel;
5322
+ textHeight: Pixel;
5323
+ textWidth: Pixel;
5244
5324
  align: Align;
5245
5325
  fontSizePx: number;
5246
5326
  x: Pixel;
@@ -5500,13 +5580,13 @@ interface ZoneDependentCommand {
5500
5580
  zone: Zone;
5501
5581
  }
5502
5582
  declare function isZoneDependent(cmd: CoreCommand): cmd is Extract<CoreCommand, ZoneDependentCommand>;
5503
- declare const invalidateEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5504
- declare const invalidateChartEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5505
- declare const invalidateDependenciesCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5506
- declare const invalidateCFEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5507
- declare const invalidateBordersCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5508
- declare const invalidSubtotalFormulasCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5509
- declare const readonlyAllowedCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5583
+ declare const invalidateEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SET_ZOOM" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "DUPLICATE_CAROUSEL_CHART" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5584
+ declare const invalidateChartEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SET_ZOOM" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "DUPLICATE_CAROUSEL_CHART" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5585
+ declare const invalidateDependenciesCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SET_ZOOM" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "DUPLICATE_CAROUSEL_CHART" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5586
+ declare const invalidateCFEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SET_ZOOM" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "DUPLICATE_CAROUSEL_CHART" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5587
+ declare const invalidateBordersCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SET_ZOOM" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "DUPLICATE_CAROUSEL_CHART" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5588
+ declare const invalidSubtotalFormulasCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SET_ZOOM" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "DUPLICATE_CAROUSEL_CHART" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5589
+ declare const readonlyAllowedCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "PASTE" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "EVALUATE_CHARTS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SET_ZOOM" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "DELETE_UNFILTERED_CONTENT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING" | "TOGGLE_CHECKBOX" | "ADD_NEW_CHART_TO_CAROUSEL" | "ADD_FIGURE_CHART_TO_CAROUSEL" | "DUPLICATE_CAROUSEL_CHART" | "UPDATE_CAROUSEL_ACTIVE_ITEM" | "POPOUT_CHART_FROM_CAROUSEL">;
5510
5590
  declare const coreTypes: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "CREATE_CAROUSEL" | "UPDATE_CAROUSEL" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "DELETE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT">;
5511
5591
  declare function isCoreCommand(cmd: Command): cmd is CoreCommand;
5512
5592
  declare function canExecuteInReadonly(cmd: Command): boolean;
@@ -5708,6 +5788,12 @@ interface AddFigureChartToCarouselCommand extends SheetDependentCommand {
5708
5788
  carouselFigureId: UID;
5709
5789
  chartFigureId: UID;
5710
5790
  }
5791
+ interface DuplicateCarouselChartCommand extends SheetDependentCommand {
5792
+ type: "DUPLICATE_CAROUSEL_CHART";
5793
+ carouselId: UID;
5794
+ chartId: UID;
5795
+ duplicatedChartId: UID;
5796
+ }
5711
5797
  interface UpdateCarouselActiveItemCommand extends SheetDependentCommand {
5712
5798
  type: "UPDATE_CAROUSEL_ACTIVE_ITEM";
5713
5799
  figureId: UID;
@@ -6029,6 +6115,10 @@ interface SetViewportOffsetCommand {
6029
6115
  offsetX: Pixel;
6030
6116
  offsetY: Pixel;
6031
6117
  }
6118
+ interface SetZoomCommand {
6119
+ type: "SET_ZOOM";
6120
+ zoom: number;
6121
+ }
6032
6122
  /**
6033
6123
  * Shift the viewport down by the viewport height
6034
6124
  */
@@ -6147,7 +6237,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | ClearCellsCom
6147
6237
  | UpdateLocaleCommand
6148
6238
  /** PIVOT */
6149
6239
  | AddPivotCommand | UpdatePivotCommand | InsertPivotCommand | RenamePivotCommand | RemovePivotCommand | DuplicatePivotCommand;
6150
- 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;
6240
+ 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;
6151
6241
  type Command = CoreCommand | LocalCommand;
6152
6242
  /**
6153
6243
  * Holds the result of a command dispatch.
@@ -6288,6 +6378,7 @@ declare const enum CommandResult {
6288
6378
  SheetIsHidden = "SheetIsHidden",
6289
6379
  InvalidTableResize = "InvalidTableResize",
6290
6380
  PivotIdNotFound = "PivotIdNotFound",
6381
+ PivotIdTaken = "PivotIdTaken",
6291
6382
  PivotInError = "PivotInError",
6292
6383
  EmptyName = "EmptyName",
6293
6384
  ValueCellIsInvalidFormula = "ValueCellIsInvalidFormula",
@@ -6372,7 +6463,7 @@ interface Zone {
6372
6463
  }
6373
6464
  interface AnchorZone {
6374
6465
  zone: Zone;
6375
- cell: Position$1;
6466
+ cell: Position;
6376
6467
  }
6377
6468
  interface Selection$1 {
6378
6469
  anchor: AnchorZone;
@@ -6415,6 +6506,7 @@ interface Style {
6415
6506
  fillColor?: Color;
6416
6507
  textColor?: Color;
6417
6508
  fontSize?: number;
6509
+ rotation?: number;
6418
6510
  }
6419
6511
  interface DataBarFill {
6420
6512
  color: Color;
@@ -6506,7 +6598,7 @@ interface HeaderDimensions {
6506
6598
  interface Row {
6507
6599
  cells: Record<number, UID | undefined>;
6508
6600
  }
6509
- interface Position$1 {
6601
+ interface Position {
6510
6602
  col: HeaderIndex;
6511
6603
  row: HeaderIndex;
6512
6604
  }
@@ -6646,8 +6738,8 @@ interface BarChartDefinition extends CommonChartDefinition {
6646
6738
  readonly zoomable?: boolean;
6647
6739
  }
6648
6740
  type BarChartRuntime = {
6649
- chartJsConfig: ChartConfiguration;
6650
- masterChartConfig?: ChartConfiguration;
6741
+ chartJsConfig: ChartConfiguration<"bar" | "line">;
6742
+ masterChartConfig?: ChartConfiguration<"bar">;
6651
6743
  background: Color;
6652
6744
  };
6653
6745
 
@@ -6703,7 +6795,6 @@ type ScorecardChartConfig = {
6703
6795
 
6704
6796
  declare global {
6705
6797
  interface Window {
6706
- Chart: typeof chart_js & typeof chart_js.Chart;
6707
6798
  ChartGeo: typeof ChartGeo;
6708
6799
  }
6709
6800
  }
@@ -6721,8 +6812,9 @@ declare module "chart.js" {
6721
6812
  }
6722
6813
 
6723
6814
  interface ChartShowValuesPluginOptions {
6815
+ type: ChartType;
6724
6816
  showValues: boolean;
6725
- background?: Color;
6817
+ background: (value: number | string, dataset: ChartMeta, index: number) => Color | undefined;
6726
6818
  horizontal?: boolean;
6727
6819
  callback: (value: number | string, dataset: ChartMeta, index: number) => string;
6728
6820
  }
@@ -6732,6 +6824,20 @@ declare module "chart.js" {
6732
6824
  }
6733
6825
  }
6734
6826
 
6827
+ interface ChartColorScalePluginOptions {
6828
+ position: "left" | "right" | "none";
6829
+ colorScale: Color[];
6830
+ fontColor?: Color;
6831
+ minValue: number;
6832
+ maxValue: number;
6833
+ locale: Locale;
6834
+ }
6835
+ declare module "chart.js" {
6836
+ interface PluginOptionsByType<TType extends ChartType$1> {
6837
+ chartColorScalePlugin?: ChartColorScalePluginOptions;
6838
+ }
6839
+ }
6840
+
6735
6841
  interface MigrationStep {
6736
6842
  migrate: (data: any) => any;
6737
6843
  }
@@ -6749,12 +6855,13 @@ type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields:
6749
6855
  interface PivotRegistryItem {
6750
6856
  ui: PivotUIConstructor;
6751
6857
  definition: PivotDefinitionConstructor;
6752
- externalData: boolean;
6753
6858
  dateGranularities: string[];
6754
6859
  datetimeGranularities: string[];
6755
6860
  isMeasureCandidate: (field: PivotField) => boolean;
6756
6861
  isGroupable: (field: PivotField) => boolean;
6757
6862
  canHaveCustomGroup: (field: PivotField) => boolean;
6863
+ isPivotUnused: (getters: Getters, pivotId: UID) => boolean;
6864
+ adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
6758
6865
  }
6759
6866
 
6760
6867
  declare class ClipboardHandler<T> {
@@ -6978,6 +7085,18 @@ declare class ColorGenerator {
6978
7085
  constructor(paletteSize: number, preferredColors?: (Color | undefined | null)[]);
6979
7086
  next(): string;
6980
7087
  }
7088
+ declare const COLORSCHEMES: {
7089
+ readonly greys: readonly ["#ffffff", "#808080", "#000000"];
7090
+ readonly blues: readonly ["#f7fbff", "#6aaed6", "#08306b"];
7091
+ readonly reds: readonly ["#fff5f0", "#fb694a", "#67000d"];
7092
+ readonly greens: readonly ["#f7fcf5", "#73c476", "#00441b"];
7093
+ readonly oranges: readonly ["#fff5eb", "#fd8c3b", "#7f2704"];
7094
+ readonly purples: readonly ["#fcfbfd", "#9e9ac8", "#3f007d"];
7095
+ readonly viridis: readonly ["#440154", "#21918c", "#fde725"];
7096
+ readonly cividis: readonly ["#00224e", "#7d7c78", "#fee838"];
7097
+ readonly rainbow: readonly ["#B41DB4", "#FFFF00", "#00FFFF"];
7098
+ };
7099
+ type ColorScale = keyof typeof COLORSCHEMES;
6981
7100
 
6982
7101
  /**
6983
7102
  * Convert a (col) number to the corresponding letter.
@@ -6999,7 +7118,7 @@ declare function lettersToNumber(letters: string): number;
6999
7118
  *
7000
7119
  * Note: it also accepts lowercase coordinates, but not fixed references
7001
7120
  */
7002
- declare function toCartesian(xc: string): Position$1;
7121
+ declare function toCartesian(xc: string): Position;
7003
7122
  /**
7004
7123
  * Convert from cartesian coordinate to the "XC" coordinate system.
7005
7124
  *
@@ -7042,6 +7161,8 @@ declare class DateTime {
7042
7161
  setSeconds(seconds: number): number;
7043
7162
  }
7044
7163
  declare function isDateTime(str: string, locale: Locale): boolean;
7164
+ declare function numberToJsDate(value: number): DateTime;
7165
+ declare function jsDateToNumber(date: DateTime): number;
7045
7166
 
7046
7167
  interface FormatWidth {
7047
7168
  availableWidth: number;
@@ -7055,7 +7176,7 @@ declare function formatValue(value: CellValue, { format, locale, formatWidth }:
7055
7176
  }): FormattedValue;
7056
7177
  declare function createCurrencyFormat(currency: Partial<Currency>): Format;
7057
7178
 
7058
- declare function computeTextWidth(context: Canvas2DContext, text: string, style: Style, fontUnit?: "px" | "pt"): number;
7179
+ declare function computeTextWidth(context: Canvas2DContext, text: string, style?: Style, fontUnit?: "px" | "pt"): number;
7059
7180
 
7060
7181
  /**
7061
7182
  * Convert from a cartesian reference to a (possibly unbounded) Zone
@@ -7104,13 +7225,13 @@ declare function union(...zones: Zone[]): Zone;
7104
7225
  * Return true if two zones overlap, false otherwise.
7105
7226
  */
7106
7227
  declare function overlap(z1: UnboundedZone, z2: UnboundedZone): boolean;
7107
- declare function isInside(col: number, row: number, zone: Zone): boolean;
7228
+ declare function isInside(col: number, row: number, zone: UnboundedZone): boolean;
7108
7229
  /**
7109
7230
  * This function will compare the modifications of selection to determine
7110
7231
  * a cell that is part of the new zone and not the previous one.
7111
7232
  */
7112
- declare function findCellInNewZone(oldZone: Zone, currentZone: Zone): Position$1;
7113
- declare function positionToZone(position: Position$1): Zone;
7233
+ declare function findCellInNewZone(oldZone: Zone, currentZone: Zone): Position;
7234
+ declare function positionToZone(position: Position): Zone;
7114
7235
  /**
7115
7236
  * Merge contiguous and overlapping zones that are in the array into bigger zones
7116
7237
  */
@@ -7165,7 +7286,7 @@ interface ChartBuilder {
7165
7286
  dataSeriesLimit?: number;
7166
7287
  }
7167
7288
 
7168
- interface Props$1t {
7289
+ interface Props$1d {
7169
7290
  label?: string;
7170
7291
  value: boolean;
7171
7292
  className?: string;
@@ -7174,7 +7295,7 @@ interface Props$1t {
7174
7295
  disabled?: boolean;
7175
7296
  onChange: (value: boolean) => void;
7176
7297
  }
7177
- declare class Checkbox extends Component<Props$1t, SpreadsheetChildEnv> {
7298
+ declare class Checkbox extends Component<Props$1d, SpreadsheetChildEnv> {
7178
7299
  static template: string;
7179
7300
  static props: {
7180
7301
  label: {
@@ -7209,10 +7330,10 @@ declare class Checkbox extends Component<Props$1t, SpreadsheetChildEnv> {
7209
7330
  onChange(ev: InputEvent): void;
7210
7331
  }
7211
7332
 
7212
- interface Props$1s {
7333
+ interface Props$1c {
7213
7334
  class?: string;
7214
7335
  }
7215
- declare class Section extends Component<Props$1s, SpreadsheetChildEnv> {
7336
+ declare class Section extends Component<Props$1c, SpreadsheetChildEnv> {
7216
7337
  static template: string;
7217
7338
  static props: {
7218
7339
  class: {
@@ -7227,6 +7348,13 @@ declare class Section extends Component<Props$1s, SpreadsheetChildEnv> {
7227
7348
  };
7228
7349
  }
7229
7350
 
7351
+ interface ChartSidePanelProps<T extends ChartDefinition> {
7352
+ chartId: UID;
7353
+ definition: T;
7354
+ canUpdateChart: (chartId: UID, definition: Partial<T>) => DispatchResult;
7355
+ updateChart: (chartId: UID, definition: Partial<T>) => DispatchResult;
7356
+ }
7357
+
7230
7358
  interface StoreUpdateEvent {
7231
7359
  type: "store-updated";
7232
7360
  }
@@ -7406,10 +7534,11 @@ declare class SelectionInputStore extends SpreadsheetStore {
7406
7534
  getIndex(rangeId: number | null): number | null;
7407
7535
  }
7408
7536
 
7409
- interface Props$1r {
7537
+ interface Props$1b {
7410
7538
  ranges: string[];
7411
7539
  hasSingleRange?: boolean;
7412
7540
  required?: boolean;
7541
+ autofocus?: boolean;
7413
7542
  isInvalid?: boolean;
7414
7543
  class?: string;
7415
7544
  onSelectionChanged?: (ranges: string[]) => void;
@@ -7434,7 +7563,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
7434
7563
  * onSelectionChanged is called every time the input value
7435
7564
  * changes.
7436
7565
  */
7437
- declare class SelectionInput extends Component<Props$1r, SpreadsheetChildEnv> {
7566
+ declare class SelectionInput extends Component<Props$1b, SpreadsheetChildEnv> {
7438
7567
  static template: string;
7439
7568
  static props: {
7440
7569
  ranges: ArrayConstructor;
@@ -7446,6 +7575,10 @@ declare class SelectionInput extends Component<Props$1r, SpreadsheetChildEnv> {
7446
7575
  type: BooleanConstructor;
7447
7576
  optional: boolean;
7448
7577
  };
7578
+ autofocus: {
7579
+ type: BooleanConstructor;
7580
+ optional: boolean;
7581
+ };
7449
7582
  isInvalid: {
7450
7583
  type: BooleanConstructor;
7451
7584
  optional: boolean;
@@ -7511,7 +7644,7 @@ declare class SelectionInput extends Component<Props$1r, SpreadsheetChildEnv> {
7511
7644
  confirm(): void;
7512
7645
  }
7513
7646
 
7514
- interface Props$1q {
7647
+ interface Props$1a {
7515
7648
  ranges: CustomizedDataSet[];
7516
7649
  hasSingleRange?: boolean;
7517
7650
  onSelectionChanged: (ranges: string[]) => void;
@@ -7524,7 +7657,7 @@ interface Props$1q {
7524
7657
  canChangeDatasetOrientation?: boolean;
7525
7658
  onFlipAxis?: (structure: string) => void;
7526
7659
  }
7527
- declare class ChartDataSeries extends Component<Props$1q, SpreadsheetChildEnv> {
7660
+ declare class ChartDataSeries extends Component<Props$1a, SpreadsheetChildEnv> {
7528
7661
  static template: string;
7529
7662
  static components: {
7530
7663
  SelectionInput: typeof SelectionInput;
@@ -7573,12 +7706,12 @@ declare class ChartDataSeries extends Component<Props$1q, SpreadsheetChildEnv> {
7573
7706
  get title(): string;
7574
7707
  }
7575
7708
 
7576
- interface Props$1p {
7709
+ interface Props$19 {
7577
7710
  messages: string[];
7578
7711
  msgType: "warning" | "error" | "info";
7579
7712
  singleBox?: boolean;
7580
7713
  }
7581
- declare class ValidationMessages extends Component<Props$1p, SpreadsheetChildEnv> {
7714
+ declare class ValidationMessages extends Component<Props$19, SpreadsheetChildEnv> {
7582
7715
  static template: string;
7583
7716
  static props: {
7584
7717
  messages: ArrayConstructor;
@@ -7592,10 +7725,10 @@ declare class ValidationMessages extends Component<Props$1p, SpreadsheetChildEnv
7592
7725
  get alertBoxes(): string[][];
7593
7726
  }
7594
7727
 
7595
- interface Props$1o {
7728
+ interface Props$18 {
7596
7729
  messages: string[];
7597
7730
  }
7598
- declare class ChartErrorSection extends Component<Props$1o, SpreadsheetChildEnv> {
7731
+ declare class ChartErrorSection extends Component<Props$18, SpreadsheetChildEnv> {
7599
7732
  static template: string;
7600
7733
  static components: {
7601
7734
  Section: typeof Section;
@@ -7609,7 +7742,7 @@ declare class ChartErrorSection extends Component<Props$1o, SpreadsheetChildEnv>
7609
7742
  };
7610
7743
  }
7611
7744
 
7612
- interface Props$1n {
7745
+ interface Props$17 {
7613
7746
  title?: string;
7614
7747
  range: string;
7615
7748
  isInvalid: boolean;
@@ -7622,7 +7755,7 @@ interface Props$1n {
7622
7755
  onChange: (value: boolean) => void;
7623
7756
  }>;
7624
7757
  }
7625
- declare class ChartLabelRange extends Component<Props$1n, SpreadsheetChildEnv> {
7758
+ declare class ChartLabelRange extends Component<Props$17, SpreadsheetChildEnv> {
7626
7759
  static template: string;
7627
7760
  static components: {
7628
7761
  SelectionInput: typeof SelectionInput;
@@ -7643,20 +7776,14 @@ declare class ChartLabelRange extends Component<Props$1n, SpreadsheetChildEnv> {
7643
7776
  optional: boolean;
7644
7777
  };
7645
7778
  };
7646
- static defaultProps: Partial<Props$1n>;
7779
+ static defaultProps: Partial<Props$17>;
7647
7780
  }
7648
7781
 
7649
- interface Props$1m {
7650
- chartId: UID;
7651
- definition: ChartWithDataSetDefinition;
7652
- canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7653
- updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7654
- }
7655
7782
  interface ChartPanelState {
7656
7783
  datasetDispatchResult?: DispatchResult;
7657
7784
  labelsDispatchResult?: DispatchResult;
7658
7785
  }
7659
- declare class GenericChartConfigPanel extends Component<Props$1m, SpreadsheetChildEnv> {
7786
+ declare class GenericChartConfigPanel<P extends ChartSidePanelProps<ChartWithDataSetDefinition> = ChartSidePanelProps<ChartWithDataSetDefinition>> extends Component<P, SpreadsheetChildEnv> {
7660
7787
  static template: string;
7661
7788
  static components: {
7662
7789
  ChartDataSeries: typeof ChartDataSeries;
@@ -7668,8 +7795,8 @@ declare class GenericChartConfigPanel extends Component<Props$1m, SpreadsheetChi
7668
7795
  static props: {
7669
7796
  chartId: StringConstructor;
7670
7797
  definition: ObjectConstructor;
7671
- updateChart: FunctionConstructor;
7672
7798
  canUpdateChart: FunctionConstructor;
7799
+ updateChart: FunctionConstructor;
7673
7800
  };
7674
7801
  protected state: ChartPanelState;
7675
7802
  protected dataSets: CustomizedDataSet[];
@@ -7677,9 +7804,7 @@ declare class GenericChartConfigPanel extends Component<Props$1m, SpreadsheetChi
7677
7804
  private datasetOrientation;
7678
7805
  protected chartTerms: {
7679
7806
  [key: string]: any;
7680
- GeoChart: {
7681
- ColorScales: Record<Extract<GeoChartColorScale, string>, string>;
7682
- };
7807
+ ColorScales: Record<Extract<ChartColorScale, string>, string>;
7683
7808
  };
7684
7809
  setup(): void;
7685
7810
  get errorMessages(): string[];
@@ -7725,11 +7850,11 @@ declare class BarConfigPanel extends GenericChartConfigPanel {
7725
7850
  onUpdateStacked(stacked: boolean): void;
7726
7851
  }
7727
7852
 
7728
- interface Props$1l {
7853
+ interface Props$16 {
7729
7854
  isCollapsed: boolean;
7730
7855
  slots: any;
7731
7856
  }
7732
- declare class Collapse extends Component<Props$1l, SpreadsheetChildEnv> {
7857
+ declare class Collapse extends Component<Props$16, SpreadsheetChildEnv> {
7733
7858
  static template: string;
7734
7859
  static props: {
7735
7860
  isCollapsed: BooleanConstructor;
@@ -7768,12 +7893,12 @@ interface Choice$1 {
7768
7893
  value: string;
7769
7894
  label: string;
7770
7895
  }
7771
- interface Props$1k {
7896
+ interface Props$15 {
7772
7897
  choices: Choice$1[];
7773
7898
  onChange: (value: string) => void;
7774
7899
  selectedValue: string;
7775
7900
  }
7776
- declare class BadgeSelection extends Component<Props$1k, SpreadsheetChildEnv> {
7901
+ declare class BadgeSelection extends Component<Props$15, SpreadsheetChildEnv> {
7777
7902
  static template: string;
7778
7903
  static props: {
7779
7904
  choices: ArrayConstructor;
@@ -7829,14 +7954,19 @@ declare class GenericInput<T extends GenericInputProps> extends Component<T, Spr
7829
7954
  onMouseUp(ev: MouseEvent): void;
7830
7955
  }
7831
7956
 
7832
- interface Props$1j extends GenericInputProps {
7957
+ interface Props$14 extends GenericInputProps {
7833
7958
  alwaysShowBorder?: boolean;
7834
7959
  value: string;
7960
+ errorMessage?: string;
7835
7961
  }
7836
- declare class TextInput extends GenericInput<Props$1j> {
7962
+ declare class TextInput extends GenericInput<Props$14> {
7837
7963
  static template: string;
7838
7964
  static components: {};
7839
7965
  static props: {
7966
+ errorMessage: {
7967
+ type: StringConstructor;
7968
+ optional: boolean;
7969
+ };
7840
7970
  value: (StringConstructor | NumberConstructor)[];
7841
7971
  onChange: FunctionConstructor;
7842
7972
  class: {
@@ -7867,14 +7997,14 @@ declare class TextInput extends GenericInput<Props$1j> {
7867
7997
  get inputClass(): string;
7868
7998
  }
7869
7999
 
7870
- interface Props$1i {
8000
+ interface Props$13 {
7871
8001
  action: ActionSpec;
7872
8002
  hasTriangleDownIcon?: boolean;
7873
8003
  selectedColor?: string;
7874
8004
  class?: string;
7875
8005
  onClick?: (ev: MouseEvent) => void;
7876
8006
  }
7877
- declare class ActionButton extends Component<Props$1i, SpreadsheetChildEnv> {
8007
+ declare class ActionButton extends Component<Props$13, SpreadsheetChildEnv> {
7878
8008
  static template: string;
7879
8009
  static props: {
7880
8010
  action: ObjectConstructor;
@@ -8040,7 +8170,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
8040
8170
  isSameColor(color1: Color, color2: Color): boolean;
8041
8171
  }
8042
8172
 
8043
- interface Props$1h {
8173
+ interface Props$12 {
8044
8174
  currentColor: string | undefined;
8045
8175
  toggleColorPicker: () => void;
8046
8176
  showColorPicker: boolean;
@@ -8051,7 +8181,7 @@ interface Props$1h {
8051
8181
  dropdownMaxHeight?: Pixel;
8052
8182
  class?: string;
8053
8183
  }
8054
- declare class ColorPickerWidget extends Component<Props$1h, SpreadsheetChildEnv> {
8184
+ declare class ColorPickerWidget extends Component<Props$12, SpreadsheetChildEnv> {
8055
8185
  static template: string;
8056
8186
  static props: {
8057
8187
  currentColor: {
@@ -8094,7 +8224,7 @@ declare class DelayedHoveredCellStore extends SpreadsheetStore {
8094
8224
  col: number | undefined;
8095
8225
  row: number | undefined;
8096
8226
  handle(cmd: Command): void;
8097
- hover(position: Partial<Position$1>): "noStateChange" | undefined;
8227
+ hover(position: Partial<Position>): "noStateChange" | undefined;
8098
8228
  clear(): "noStateChange" | undefined;
8099
8229
  }
8100
8230
 
@@ -8103,7 +8233,7 @@ declare class CellPopoverStore extends SpreadsheetStore {
8103
8233
  private persistentPopover?;
8104
8234
  protected hoveredCell: CQS<Pick<DelayedHoveredCellStore, "clear" | "hover"> & OmitFunctions<DelayedHoveredCellStore>>;
8105
8235
  handle(cmd: Command): void;
8106
- open({ col, row }: Position$1, type: CellPopoverType): void;
8236
+ open({ col, row }: Position, type: CellPopoverType): void;
8107
8237
  close(): "noStateChange" | undefined;
8108
8238
  get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
8109
8239
  get isOpen(): boolean;
@@ -8114,18 +8244,23 @@ declare class CellPopoverStore extends SpreadsheetStore {
8114
8244
  interface State$5 {
8115
8245
  isOpen: boolean;
8116
8246
  }
8117
- interface Props$1g {
8118
- currentFontSize: number;
8247
+ interface Props$11 {
8248
+ currentValue: number;
8119
8249
  class: string;
8120
- onFontSizeChanged: (fontSize: number) => void;
8250
+ onValueChange: (fontSize: number) => void;
8121
8251
  onToggle?: () => void;
8122
8252
  onFocusInput?: () => void;
8253
+ valueIcon?: String;
8254
+ min: number;
8255
+ max: number;
8256
+ title: String;
8257
+ valueList: number[];
8123
8258
  }
8124
- declare class FontSizeEditor extends Component<Props$1g, SpreadsheetChildEnv> {
8259
+ declare class NumberEditor extends Component<Props$11, SpreadsheetChildEnv> {
8125
8260
  static template: string;
8126
8261
  static props: {
8127
- currentFontSize: NumberConstructor;
8128
- onFontSizeChanged: FunctionConstructor;
8262
+ currentValue: NumberConstructor;
8263
+ onValueChange: FunctionConstructor;
8129
8264
  onToggle: {
8130
8265
  type: FunctionConstructor;
8131
8266
  optional: boolean;
@@ -8135,6 +8270,29 @@ declare class FontSizeEditor extends Component<Props$1g, SpreadsheetChildEnv> {
8135
8270
  optional: boolean;
8136
8271
  };
8137
8272
  class: StringConstructor;
8273
+ valueIcon: {
8274
+ type: StringConstructor;
8275
+ optional: boolean;
8276
+ };
8277
+ min: NumberConstructor;
8278
+ max: NumberConstructor;
8279
+ title: StringConstructor;
8280
+ valueList: {
8281
+ (arrayLength: number): Number[];
8282
+ (...items: Number[]): Number[];
8283
+ new (arrayLength: number): Number[];
8284
+ new (...items: Number[]): Number[];
8285
+ isArray(arg: any): arg is any[];
8286
+ readonly prototype: any[];
8287
+ from<T>(arrayLike: ArrayLike<T>): T[];
8288
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
8289
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
8290
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
8291
+ of<T>(...items: T[]): T[];
8292
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
8293
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
8294
+ readonly [Symbol.species]: ArrayConstructor;
8295
+ };
8138
8296
  };
8139
8297
  static defaultProps: {
8140
8298
  onFocusInput: () => void;
@@ -8142,24 +8300,56 @@ declare class FontSizeEditor extends Component<Props$1g, SpreadsheetChildEnv> {
8142
8300
  static components: {
8143
8301
  Popover: typeof Popover;
8144
8302
  };
8145
- fontSizes: number[];
8146
8303
  dropdown: State$5;
8147
8304
  private inputRef;
8148
8305
  private rootEditorRef;
8149
- private fontSizeListRef;
8306
+ private valueListRef;
8307
+ private DOMFocusableElementStore;
8150
8308
  setup(): void;
8151
8309
  get popoverProps(): PopoverProps;
8152
8310
  onExternalClick(ev: MouseEvent): void;
8153
- toggleFontList(): void;
8154
- closeFontList(): void;
8155
- private setSize;
8156
- setSizeFromInput(ev: InputEvent): void;
8157
- setSizeFromList(fontSizeStr: string): void;
8311
+ toggleList(): void;
8312
+ closeList(): void;
8313
+ private setValue;
8314
+ setValueFromInput(ev: InputEvent): void;
8315
+ setValueFromList(valueStr: string): void;
8316
+ get currentValue(): string;
8158
8317
  onInputFocused(ev: InputEvent): void;
8159
8318
  onInputKeydown(ev: KeyboardEvent): void;
8160
8319
  }
8161
8320
 
8162
- interface Props$1f {
8321
+ interface Props$10 {
8322
+ currentFontSize: number;
8323
+ class: string;
8324
+ onFontSizeChanged: (fontSize: number) => void;
8325
+ onToggle?: () => void;
8326
+ onFocusInput?: () => void;
8327
+ }
8328
+ declare class FontSizeEditor extends Component<Props$10, SpreadsheetChildEnv> {
8329
+ static template: string;
8330
+ static components: {
8331
+ NumberEditor: typeof NumberEditor;
8332
+ };
8333
+ static props: {
8334
+ currentFontSize: NumberConstructor;
8335
+ onFontSizeChanged: FunctionConstructor;
8336
+ onToggle: {
8337
+ type: FunctionConstructor;
8338
+ optional: boolean;
8339
+ };
8340
+ onFocusInput: {
8341
+ type: FunctionConstructor;
8342
+ optional: boolean;
8343
+ };
8344
+ class: StringConstructor;
8345
+ };
8346
+ static defaultProps: {
8347
+ onFocusInput: () => void;
8348
+ };
8349
+ fontSizes: number[];
8350
+ }
8351
+
8352
+ interface Props$$ {
8163
8353
  class?: string;
8164
8354
  style: ChartStyle;
8165
8355
  updateStyle: (style: ChartStyle) => void;
@@ -8168,7 +8358,7 @@ interface Props$1f {
8168
8358
  hasHorizontalAlign?: boolean;
8169
8359
  hasBackgroundColor?: boolean;
8170
8360
  }
8171
- declare class TextStyler extends Component<Props$1f, SpreadsheetChildEnv> {
8361
+ declare class TextStyler extends Component<Props$$, SpreadsheetChildEnv> {
8172
8362
  static template: string;
8173
8363
  static components: {
8174
8364
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -8236,7 +8426,7 @@ declare class TextStyler extends Component<Props$1f, SpreadsheetChildEnv> {
8236
8426
  get verticalAlignActions(): ActionSpec[];
8237
8427
  }
8238
8428
 
8239
- interface Props$1e {
8429
+ interface Props$_ {
8240
8430
  title?: string;
8241
8431
  placeholder?: string;
8242
8432
  updateTitle: (title: string) => void;
@@ -8245,7 +8435,7 @@ interface Props$1e {
8245
8435
  defaultStyle?: Partial<TitleDesign>;
8246
8436
  updateStyle: (style: TitleDesign) => void;
8247
8437
  }
8248
- declare class ChartTitle extends Component<Props$1e, SpreadsheetChildEnv> {
8438
+ declare class ChartTitle extends Component<Props$_, SpreadsheetChildEnv> {
8249
8439
  static template: string;
8250
8440
  static components: {
8251
8441
  Section: typeof Section;
@@ -8283,13 +8473,13 @@ interface AxisDefinition {
8283
8473
  id: string;
8284
8474
  name: string;
8285
8475
  }
8286
- interface Props$1d {
8476
+ interface Props$Z {
8287
8477
  chartId: UID;
8288
8478
  definition: ChartWithAxisDefinition;
8289
8479
  updateChart: (chartId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
8290
8480
  axesList: AxisDefinition[];
8291
8481
  }
8292
- declare class AxisDesignEditor extends Component<Props$1d, SpreadsheetChildEnv> {
8482
+ declare class AxisDesignEditor extends Component<Props$Z, SpreadsheetChildEnv> {
8293
8483
  static template: string;
8294
8484
  static components: {
8295
8485
  Section: typeof Section;
@@ -8321,14 +8511,14 @@ interface Choice {
8321
8511
  value: unknown;
8322
8512
  label: string;
8323
8513
  }
8324
- interface Props$1c {
8514
+ interface Props$Y {
8325
8515
  choices: Choice[];
8326
8516
  onChange: (value: unknown) => void;
8327
8517
  selectedValue: string;
8328
8518
  name: string;
8329
8519
  direction: "horizontal" | "vertical";
8330
8520
  }
8331
- declare class RadioSelection extends Component<Props$1c, SpreadsheetChildEnv> {
8521
+ declare class RadioSelection extends Component<Props$Y, SpreadsheetChildEnv> {
8332
8522
  static template: string;
8333
8523
  static props: {
8334
8524
  choices: ArrayConstructor;
@@ -8347,13 +8537,13 @@ declare class RadioSelection extends Component<Props$1c, SpreadsheetChildEnv> {
8347
8537
  };
8348
8538
  }
8349
8539
 
8350
- interface Props$1b {
8540
+ interface Props$X {
8351
8541
  currentColor?: string;
8352
8542
  onColorPicked: (color: string) => void;
8353
8543
  title?: string;
8354
8544
  disableNoColor?: boolean;
8355
8545
  }
8356
- declare class RoundColorPicker extends Component<Props$1b, SpreadsheetChildEnv> {
8546
+ declare class RoundColorPicker extends Component<Props$X, SpreadsheetChildEnv> {
8357
8547
  static template: string;
8358
8548
  static components: {
8359
8549
  Section: typeof Section;
@@ -8386,14 +8576,11 @@ declare class RoundColorPicker extends Component<Props$1b, SpreadsheetChildEnv>
8386
8576
  get buttonStyle(): string;
8387
8577
  }
8388
8578
 
8389
- interface Props$1a {
8390
- chartId: UID;
8391
- definition: ChartDefinition;
8392
- updateChart: (chartId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
8393
- canUpdateChart: (chartId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
8579
+ interface Props$W extends ChartSidePanelProps<ChartDefinition> {
8394
8580
  defaultChartTitleFontSize?: number;
8581
+ slots?: object;
8395
8582
  }
8396
- declare class GeneralDesignEditor extends Component<Props$1a, SpreadsheetChildEnv> {
8583
+ declare class GeneralDesignEditor extends Component<Props$W, SpreadsheetChildEnv> {
8397
8584
  static template: string;
8398
8585
  static components: {
8399
8586
  RoundColorPicker: typeof RoundColorPicker;
@@ -8403,10 +8590,6 @@ declare class GeneralDesignEditor extends Component<Props$1a, SpreadsheetChildEn
8403
8590
  RadioSelection: typeof RadioSelection;
8404
8591
  };
8405
8592
  static props: {
8406
- chartId: StringConstructor;
8407
- definition: ObjectConstructor;
8408
- updateChart: FunctionConstructor;
8409
- canUpdateChart: FunctionConstructor;
8410
8593
  defaultChartTitleFontSize: {
8411
8594
  type: NumberConstructor;
8412
8595
  optional: boolean;
@@ -8415,6 +8598,10 @@ declare class GeneralDesignEditor extends Component<Props$1a, SpreadsheetChildEn
8415
8598
  type: ObjectConstructor;
8416
8599
  optional: boolean;
8417
8600
  };
8601
+ chartId: StringConstructor;
8602
+ definition: ObjectConstructor;
8603
+ canUpdateChart: FunctionConstructor;
8604
+ updateChart: FunctionConstructor;
8418
8605
  };
8419
8606
  static defaultProps: {
8420
8607
  defaultChartTitleFontSize: number;
@@ -8428,13 +8615,7 @@ declare class GeneralDesignEditor extends Component<Props$1a, SpreadsheetChildEn
8428
8615
  updateChartTitleStyle(style: TitleDesign): void;
8429
8616
  }
8430
8617
 
8431
- interface Props$19 {
8432
- chartId: UID;
8433
- definition: ChartWithDataSetDefinition;
8434
- updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8435
- canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8436
- }
8437
- declare class ChartHumanizeNumbers extends Component<Props$19, SpreadsheetChildEnv> {
8618
+ declare class ChartHumanizeNumbers extends Component<ChartSidePanelProps<ChartWithDataSetDefinition>, SpreadsheetChildEnv> {
8438
8619
  static template: string;
8439
8620
  static components: {
8440
8621
  Checkbox: typeof Checkbox;
@@ -8442,18 +8623,13 @@ declare class ChartHumanizeNumbers extends Component<Props$19, SpreadsheetChildE
8442
8623
  static props: {
8443
8624
  chartId: StringConstructor;
8444
8625
  definition: ObjectConstructor;
8445
- updateChart: FunctionConstructor;
8446
8626
  canUpdateChart: FunctionConstructor;
8627
+ updateChart: FunctionConstructor;
8447
8628
  };
8629
+ get title(): string;
8448
8630
  }
8449
8631
 
8450
- interface Props$18 {
8451
- chartId: UID;
8452
- definition: ChartWithDataSetDefinition;
8453
- updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8454
- canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8455
- }
8456
- declare class ChartLegend extends Component<Props$18, SpreadsheetChildEnv> {
8632
+ declare class ChartLegend extends Component<ChartSidePanelProps<ChartWithDataSetDefinition>, SpreadsheetChildEnv> {
8457
8633
  static template: string;
8458
8634
  static components: {
8459
8635
  Section: typeof Section;
@@ -8461,19 +8637,19 @@ declare class ChartLegend extends Component<Props$18, SpreadsheetChildEnv> {
8461
8637
  static props: {
8462
8638
  chartId: StringConstructor;
8463
8639
  definition: ObjectConstructor;
8464
- updateChart: FunctionConstructor;
8465
8640
  canUpdateChart: FunctionConstructor;
8641
+ updateChart: FunctionConstructor;
8466
8642
  };
8467
8643
  updateLegendPosition(ev: any): void;
8468
8644
  }
8469
8645
 
8470
- interface Props$17 extends GenericInputProps {
8646
+ interface Props$V extends GenericInputProps {
8471
8647
  alwaysShowBorder?: boolean;
8472
8648
  min?: number;
8473
8649
  max?: number;
8474
8650
  value: number;
8475
8651
  }
8476
- declare class NumberInput extends GenericInput<Props$17> {
8652
+ declare class NumberInput extends GenericInput<Props$V> {
8477
8653
  static template: string;
8478
8654
  static components: {};
8479
8655
  static props: {
@@ -8517,13 +8693,10 @@ declare class NumberInput extends GenericInput<Props$17> {
8517
8693
  get inputClass(): string;
8518
8694
  }
8519
8695
 
8520
- interface Props$16 {
8521
- chartId: UID;
8522
- definition: ChartWithDataSetDefinition;
8523
- canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8524
- updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8696
+ interface Props$U extends ChartSidePanelProps<ChartWithDataSetDefinition> {
8697
+ slots?: object;
8525
8698
  }
8526
- declare class SeriesDesignEditor extends Component<Props$16, SpreadsheetChildEnv> {
8699
+ declare class SeriesDesignEditor extends Component<Props$U, SpreadsheetChildEnv> {
8527
8700
  static template: string;
8528
8701
  static components: {
8529
8702
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -8531,14 +8704,14 @@ declare class SeriesDesignEditor extends Component<Props$16, SpreadsheetChildEnv
8531
8704
  RoundColorPicker: typeof RoundColorPicker;
8532
8705
  };
8533
8706
  static props: {
8534
- chartId: StringConstructor;
8535
- definition: ObjectConstructor;
8536
- updateChart: FunctionConstructor;
8537
- canUpdateChart: FunctionConstructor;
8538
8707
  slots: {
8539
8708
  type: ObjectConstructor;
8540
8709
  optional: boolean;
8541
8710
  };
8711
+ chartId: StringConstructor;
8712
+ definition: ObjectConstructor;
8713
+ canUpdateChart: FunctionConstructor;
8714
+ updateChart: FunctionConstructor;
8542
8715
  };
8543
8716
  protected state: {
8544
8717
  index: number;
@@ -8551,13 +8724,10 @@ declare class SeriesDesignEditor extends Component<Props$16, SpreadsheetChildEnv
8551
8724
  getDataSeriesLabel(): string | undefined;
8552
8725
  }
8553
8726
 
8554
- interface Props$15 {
8555
- chartId: UID;
8556
- definition: ChartWithDataSetDefinition;
8557
- canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8558
- updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8727
+ interface Props$T extends ChartSidePanelProps<ChartWithDataSetDefinition> {
8728
+ slots?: object;
8559
8729
  }
8560
- declare class SeriesWithAxisDesignEditor extends Component<Props$15, SpreadsheetChildEnv> {
8730
+ declare class SeriesWithAxisDesignEditor extends Component<Props$T, SpreadsheetChildEnv> {
8561
8731
  static template: string;
8562
8732
  static components: {
8563
8733
  SeriesDesignEditor: typeof SeriesDesignEditor;
@@ -8568,14 +8738,14 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$15, Spreadsheet
8568
8738
  NumberInput: typeof NumberInput;
8569
8739
  };
8570
8740
  static props: {
8571
- chartId: StringConstructor;
8572
- definition: ObjectConstructor;
8573
- canUpdateChart: FunctionConstructor;
8574
- updateChart: FunctionConstructor;
8575
8741
  slots: {
8576
8742
  type: ObjectConstructor;
8577
8743
  optional: boolean;
8578
8744
  };
8745
+ chartId: StringConstructor;
8746
+ definition: ObjectConstructor;
8747
+ canUpdateChart: FunctionConstructor;
8748
+ updateChart: FunctionConstructor;
8579
8749
  };
8580
8750
  axisChoices: {
8581
8751
  value: string;
@@ -8599,37 +8769,27 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$15, Spreadsheet
8599
8769
  updateTrendLineValue(index: number, config: any): void;
8600
8770
  }
8601
8771
 
8602
- interface Props$14 {
8603
- chartId: UID;
8604
- definition: ChartWithDataSetDefinition;
8605
- updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8606
- canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8772
+ interface Props$S extends ChartSidePanelProps<ChartWithDataSetDefinition> {
8607
8773
  defaultValue?: boolean;
8608
8774
  }
8609
- declare class ChartShowValues extends Component<Props$14, SpreadsheetChildEnv> {
8775
+ declare class ChartShowValues extends Component<Props$S, SpreadsheetChildEnv> {
8610
8776
  static template: string;
8611
8777
  static components: {
8612
8778
  Checkbox: typeof Checkbox;
8613
8779
  };
8614
8780
  static props: {
8615
- chartId: StringConstructor;
8616
- definition: ObjectConstructor;
8617
- updateChart: FunctionConstructor;
8618
- canUpdateChart: FunctionConstructor;
8619
8781
  defaultValue: {
8620
8782
  type: BooleanConstructor;
8621
8783
  optional: boolean;
8622
8784
  };
8785
+ chartId: StringConstructor;
8786
+ definition: ObjectConstructor;
8787
+ canUpdateChart: FunctionConstructor;
8788
+ updateChart: FunctionConstructor;
8623
8789
  };
8624
8790
  }
8625
8791
 
8626
- interface Props$13 {
8627
- chartId: UID;
8628
- definition: ChartWithDataSetDefinition;
8629
- canUpdateChart: (chartId: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
8630
- updateChart: (chartId: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
8631
- }
8632
- declare class ChartWithAxisDesignPanel<P extends Props$13 = Props$13> extends Component<P, SpreadsheetChildEnv> {
8792
+ declare class ChartWithAxisDesignPanel<P extends ChartSidePanelProps<ChartWithDataSetDefinition>> extends Component<P, SpreadsheetChildEnv> {
8633
8793
  static template: string;
8634
8794
  static components: {
8635
8795
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -8650,13 +8810,7 @@ declare class ChartWithAxisDesignPanel<P extends Props$13 = Props$13> extends Co
8650
8810
  get axesList(): AxisDefinition[];
8651
8811
  }
8652
8812
 
8653
- interface Props$12 {
8654
- chartId: UID;
8655
- definition: GaugeChartDefinition;
8656
- canUpdateChart: (chartId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8657
- updateChart: (chartId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8658
- }
8659
- declare class GaugeChartConfigPanel extends Component<Props$12, SpreadsheetChildEnv> {
8813
+ declare class GaugeChartConfigPanel extends Component<ChartSidePanelProps<GaugeChartDefinition>, SpreadsheetChildEnv> {
8660
8814
  static template: string;
8661
8815
  static components: {
8662
8816
  ChartErrorSection: typeof ChartErrorSection;
@@ -8665,8 +8819,8 @@ declare class GaugeChartConfigPanel extends Component<Props$12, SpreadsheetChild
8665
8819
  static props: {
8666
8820
  chartId: StringConstructor;
8667
8821
  definition: ObjectConstructor;
8668
- updateChart: FunctionConstructor;
8669
8822
  canUpdateChart: FunctionConstructor;
8823
+ updateChart: FunctionConstructor;
8670
8824
  };
8671
8825
  private state;
8672
8826
  private dataRange;
@@ -8721,13 +8875,13 @@ interface EnrichedToken extends Token {
8721
8875
  isInHoverContext?: boolean;
8722
8876
  }
8723
8877
 
8724
- interface Props$11 {
8878
+ interface Props$R {
8725
8879
  proposals: AutoCompleteProposal[];
8726
8880
  selectedIndex: number | undefined;
8727
8881
  onValueSelected: (value: string) => void;
8728
8882
  onValueHovered: (index: string) => void;
8729
8883
  }
8730
- declare class TextValueProvider extends Component<Props$11> {
8884
+ declare class TextValueProvider extends Component<Props$R> {
8731
8885
  static template: string;
8732
8886
  static props: {
8733
8887
  proposals: ArrayConstructor;
@@ -8784,30 +8938,38 @@ declare class ContentEditableHelper {
8784
8938
  getText(): string;
8785
8939
  }
8786
8940
 
8787
- interface Props$10 {
8941
+ interface Props$Q {
8788
8942
  functionDescription: FunctionDescription;
8789
8943
  argsToFocus: number[];
8944
+ repeatingArgGroupIndex: number | undefined;
8790
8945
  }
8791
- declare class FunctionDescriptionProvider extends Component<Props$10, SpreadsheetChildEnv> {
8946
+ declare class FunctionDescriptionProvider extends Component<Props$Q, SpreadsheetChildEnv> {
8792
8947
  static template: string;
8793
8948
  static props: {
8794
8949
  functionDescription: ObjectConstructor;
8795
8950
  argsToFocus: ArrayConstructor;
8951
+ repeatingArgGroupIndex: {
8952
+ type: NumberConstructor;
8953
+ optional: boolean;
8954
+ };
8796
8955
  };
8797
8956
  static components: {
8798
8957
  Collapse: typeof Collapse;
8799
8958
  };
8800
8959
  private state;
8801
8960
  toggle(): void;
8802
- getContext(): Props$10;
8803
- get formulaArgSeparator(): string;
8961
+ getContext(): Props$Q;
8962
+ get formulaHeaderContent(): {
8963
+ content: string;
8964
+ focused?: boolean;
8965
+ }[];
8804
8966
  }
8805
8967
 
8806
- interface Props$$ {
8968
+ interface Props$P {
8807
8969
  anchorRect: Rect;
8808
8970
  content: string;
8809
8971
  }
8810
- declare class SpeechBubble extends Component<Props$$, SpreadsheetChildEnv> {
8972
+ declare class SpeechBubble extends Component<Props$P, SpreadsheetChildEnv> {
8811
8973
  static template: string;
8812
8974
  static props: {
8813
8975
  content: StringConstructor;
@@ -8880,8 +9042,6 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
8880
9042
  toggleEditionMode(): void;
8881
9043
  hoverToken(tokenIndex: number | undefined): void;
8882
9044
  private getRelatedTokens;
8883
- private evaluationResultToDisplayString;
8884
- private cellValueToDisplayString;
8885
9045
  private captureSelection;
8886
9046
  private isSelectionValid;
8887
9047
  /**
@@ -8952,7 +9112,7 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
8952
9112
  private updateAutoCompleteProvider;
8953
9113
  private findAutocompleteProvider;
8954
9114
  hideHelp(): void;
8955
- autoCompleteOrStop(direction: Direction$1): void;
9115
+ autoCompleteOrStop(direction: Direction$1, assistantForcedClosed?: boolean): void;
8956
9116
  insertAutoCompleteValue(value: string): void;
8957
9117
  selectAutoCompleteIndex(index: number): void;
8958
9118
  moveAutoCompleteSelection(direction: "previous" | "next"): void;
@@ -8993,6 +9153,7 @@ type HtmlContent = {
8993
9153
  onHover?: (rect: Rect) => void;
8994
9154
  onStopHover?: () => void;
8995
9155
  color?: Color;
9156
+ opacity?: number;
8996
9157
  backgroundColor?: Color;
8997
9158
  classes?: string[];
8998
9159
  };
@@ -9019,6 +9180,7 @@ interface FunctionDescriptionState {
9019
9180
  showDescription: boolean;
9020
9181
  functionDescription: FunctionDescription;
9021
9182
  argsToFocus: number[];
9183
+ repeatingArgGroupIndex: number | undefined;
9022
9184
  }
9023
9185
  declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv> {
9024
9186
  static template: string;
@@ -9080,6 +9242,9 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
9080
9242
  composerRef: {
9081
9243
  el: HTMLElement | null;
9082
9244
  };
9245
+ containerRef: {
9246
+ el: HTMLElement | null;
9247
+ };
9083
9248
  contentHelper: ContentEditableHelper;
9084
9249
  composerState: ComposerState;
9085
9250
  functionDescriptionState: FunctionDescriptionState;
@@ -9153,6 +9318,7 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
9153
9318
  * the autocomplete engine otherwise we initialize the formula assistant.
9154
9319
  */
9155
9320
  private processTokenAtCursor;
9321
+ private getRepeatingArgGroupIndex;
9156
9322
  /**
9157
9323
  * Compute the arguments to focus depending on the current value position.
9158
9324
  *
@@ -9218,7 +9384,7 @@ interface AutoCompleteProviderDefinition {
9218
9384
  }, tokenAtCursor: EnrichedToken, text: string): void;
9219
9385
  }
9220
9386
 
9221
- interface Props$_ {
9387
+ interface Props$O {
9222
9388
  onConfirm: (content: string) => void;
9223
9389
  composerContent: string;
9224
9390
  defaultRangeSheetId: UID;
@@ -9228,9 +9394,10 @@ interface Props$_ {
9228
9394
  title?: string;
9229
9395
  class?: string;
9230
9396
  invalid?: boolean;
9397
+ autofocus?: boolean;
9231
9398
  getContextualColoredSymbolToken?: (token: Token) => Color;
9232
9399
  }
9233
- declare class StandaloneComposer extends Component<Props$_, SpreadsheetChildEnv> {
9400
+ declare class StandaloneComposer extends Component<Props$O, SpreadsheetChildEnv> {
9234
9401
  static template: string;
9235
9402
  static props: {
9236
9403
  composerContent: {
@@ -9266,6 +9433,10 @@ declare class StandaloneComposer extends Component<Props$_, SpreadsheetChildEnv>
9266
9433
  type: BooleanConstructor;
9267
9434
  optional: boolean;
9268
9435
  };
9436
+ autofocus: {
9437
+ type: BooleanConstructor;
9438
+ optional: boolean;
9439
+ };
9269
9440
  getContextualColoredSymbolToken: {
9270
9441
  type: FunctionConstructor;
9271
9442
  optional: boolean;
@@ -9293,13 +9464,7 @@ interface PanelState {
9293
9464
  sectionRuleCancelledReasons?: CommandResult[];
9294
9465
  sectionRule: SectionRule;
9295
9466
  }
9296
- interface Props$Z {
9297
- chartId: UID;
9298
- definition: GaugeChartDefinition;
9299
- canUpdateChart: (chartId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
9300
- updateChart: (chartId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
9301
- }
9302
- declare class GaugeChartDesignPanel extends Component<Props$Z, SpreadsheetChildEnv> {
9467
+ declare class GaugeChartDesignPanel extends Component<ChartSidePanelProps<GaugeChartDefinition>, SpreadsheetChildEnv> {
9303
9468
  static template: string;
9304
9469
  static components: {
9305
9470
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -9313,11 +9478,8 @@ declare class GaugeChartDesignPanel extends Component<Props$Z, SpreadsheetChildE
9313
9478
  static props: {
9314
9479
  chartId: StringConstructor;
9315
9480
  definition: ObjectConstructor;
9481
+ canUpdateChart: FunctionConstructor;
9316
9482
  updateChart: FunctionConstructor;
9317
- canUpdateChart: {
9318
- type: FunctionConstructor;
9319
- optional: boolean;
9320
- };
9321
9483
  };
9322
9484
  protected state: PanelState;
9323
9485
  setup(): void;
@@ -9350,13 +9512,7 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
9350
9512
  onUpdateCumulative(cumulative: boolean): void;
9351
9513
  }
9352
9514
 
9353
- interface Props$Y {
9354
- chartId: UID;
9355
- definition: ScorecardChartDefinition;
9356
- canUpdateChart: (chartId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9357
- updateChart: (chartId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9358
- }
9359
- declare class ScorecardChartConfigPanel extends Component<Props$Y, SpreadsheetChildEnv> {
9515
+ declare class ScorecardChartConfigPanel extends Component<ChartSidePanelProps<ScorecardChartDefinition>, SpreadsheetChildEnv> {
9360
9516
  static template: string;
9361
9517
  static components: {
9362
9518
  SelectionInput: typeof SelectionInput;
@@ -9366,8 +9522,8 @@ declare class ScorecardChartConfigPanel extends Component<Props$Y, SpreadsheetCh
9366
9522
  static props: {
9367
9523
  chartId: StringConstructor;
9368
9524
  definition: ObjectConstructor;
9369
- updateChart: FunctionConstructor;
9370
9525
  canUpdateChart: FunctionConstructor;
9526
+ updateChart: FunctionConstructor;
9371
9527
  };
9372
9528
  private state;
9373
9529
  private keyValue;
@@ -9385,13 +9541,7 @@ declare class ScorecardChartConfigPanel extends Component<Props$Y, SpreadsheetCh
9385
9541
  }
9386
9542
 
9387
9543
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
9388
- interface Props$X {
9389
- chartId: UID;
9390
- definition: ScorecardChartDefinition;
9391
- canUpdateChart: (chartId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9392
- updateChart: (chartId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9393
- }
9394
- declare class ScorecardChartDesignPanel extends Component<Props$X, SpreadsheetChildEnv> {
9544
+ declare class ScorecardChartDesignPanel extends Component<ChartSidePanelProps<ScorecardChartDefinition>, SpreadsheetChildEnv> {
9395
9545
  static template: string;
9396
9546
  static components: {
9397
9547
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -9405,11 +9555,8 @@ declare class ScorecardChartDesignPanel extends Component<Props$X, SpreadsheetCh
9405
9555
  static props: {
9406
9556
  chartId: StringConstructor;
9407
9557
  definition: ObjectConstructor;
9558
+ canUpdateChart: FunctionConstructor;
9408
9559
  updateChart: FunctionConstructor;
9409
- canUpdateChart: {
9410
- type: FunctionConstructor;
9411
- optional: boolean;
9412
- };
9413
9560
  };
9414
9561
  get colorsSectionTitle(): string;
9415
9562
  get defaultScorecardTitleFontSize(): number;
@@ -9436,7 +9583,7 @@ interface ChartSidePanel {
9436
9583
  */
9437
9584
  interface FigureContent {
9438
9585
  Component: any;
9439
- menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
9586
+ menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
9440
9587
  SidePanelComponent?: string;
9441
9588
  keepRatio?: boolean;
9442
9589
  minFigSize?: number;
@@ -9464,7 +9611,7 @@ interface ClosedSidePanel {
9464
9611
  }
9465
9612
  type SidePanelState = OpenSidePanel | ClosedSidePanel;
9466
9613
  interface PanelInfo {
9467
- initialPanelProps: SidePanelComponentProps;
9614
+ currentPanelProps: SidePanelComponentProps;
9468
9615
  componentTag: string;
9469
9616
  size: number;
9470
9617
  isCollapsed?: boolean;
@@ -9487,8 +9634,8 @@ declare class SidePanelStore extends SpreadsheetStore {
9487
9634
  get totalPanelSize(): number;
9488
9635
  private getPanelProps;
9489
9636
  private getPanelKey;
9490
- open(componentTag: string, initialPanelProps?: SidePanelComponentProps): void;
9491
- replace(componentTag: string, currentPanelKey: string, initialPanelProps?: SidePanelComponentProps): void;
9637
+ open(componentTag: string, currentPanelProps?: SidePanelComponentProps): void;
9638
+ replace(componentTag: string, currentPanelKey: string, currentPanelProps?: SidePanelComponentProps): void;
9492
9639
  private _openPanel;
9493
9640
  toggle(componentTag: string, panelProps: SidePanelComponentProps): void;
9494
9641
  close(): void;
@@ -9590,11 +9737,11 @@ declare class ChartAnimationStore extends SpreadsheetStore {
9590
9737
  enableAnimationForChart(chartId: UID): string;
9591
9738
  }
9592
9739
 
9593
- interface Props$W {
9740
+ interface Props$N {
9594
9741
  chartId: UID;
9595
9742
  isFullScreen?: boolean;
9596
9743
  }
9597
- declare class ChartJsComponent extends Component<Props$W, SpreadsheetChildEnv> {
9744
+ declare class ChartJsComponent extends Component<Props$N, SpreadsheetChildEnv> {
9598
9745
  static template: string;
9599
9746
  static props: {
9600
9747
  chartId: StringConstructor;
@@ -9630,11 +9777,11 @@ declare class ChartJsComponent extends Component<Props$W, SpreadsheetChildEnv> {
9630
9777
  get animationChartId(): string;
9631
9778
  }
9632
9779
 
9633
- interface Props$V {
9780
+ interface Props$M {
9634
9781
  chartId: UID;
9635
9782
  isFullScreen?: Boolean;
9636
9783
  }
9637
- declare class ScorecardChart$1 extends Component<Props$V, SpreadsheetChildEnv> {
9784
+ declare class ScorecardChart$1 extends Component<Props$M, SpreadsheetChildEnv> {
9638
9785
  static template: string;
9639
9786
  static props: {
9640
9787
  chartId: StringConstructor;
@@ -9708,14 +9855,14 @@ declare class Menu extends Component<MenuProps, SpreadsheetChildEnv> {
9708
9855
  getName(menu: Action): string;
9709
9856
  isRoot(menu: Action): boolean;
9710
9857
  private hasVisibleChildren;
9711
- isEnabled(menu: Action): boolean;
9858
+ isEnabled(menu: Action): any;
9712
9859
  get menuStyle(): string;
9713
9860
  onMouseEnter(menu: Action, ev: PointerEvent): void;
9714
9861
  onMouseLeave(menu: Action, ev: PointerEvent): void;
9715
9862
  onClickMenu(menu: Action, ev: CustomEvent): void;
9716
9863
  }
9717
9864
 
9718
- interface Props$U {
9865
+ interface Props$L {
9719
9866
  anchorRect: Rect;
9720
9867
  popoverPositioning: PopoverPropsPosition;
9721
9868
  menuItems: Action[];
@@ -9735,7 +9882,7 @@ interface MenuState {
9735
9882
  menuItems: Action[];
9736
9883
  isHoveringChild?: boolean;
9737
9884
  }
9738
- declare class MenuPopover extends Component<Props$U, SpreadsheetChildEnv> {
9885
+ declare class MenuPopover extends Component<Props$L, SpreadsheetChildEnv> {
9739
9886
  static template: string;
9740
9887
  static props: {
9741
9888
  anchorRect: ObjectConstructor;
@@ -9815,15 +9962,14 @@ declare class MenuPopover extends Component<Props$U, SpreadsheetChildEnv> {
9815
9962
  }
9816
9963
 
9817
9964
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
9818
- interface Props$T {
9965
+ interface Props$K {
9819
9966
  figureUI: FigureUI;
9820
9967
  style: string;
9821
9968
  class: string;
9822
- onFigureDeleted: () => void;
9823
9969
  onMouseDown: (ev: MouseEvent) => void;
9824
9970
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
9825
9971
  }
9826
- declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9972
+ declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
9827
9973
  static template: string;
9828
9974
  static props: {
9829
9975
  figureUI: ObjectConstructor;
@@ -9835,10 +9981,6 @@ declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9835
9981
  type: StringConstructor;
9836
9982
  optional: boolean;
9837
9983
  };
9838
- onFigureDeleted: {
9839
- type: FunctionConstructor;
9840
- optional: boolean;
9841
- };
9842
9984
  onMouseDown: {
9843
9985
  type: FunctionConstructor;
9844
9986
  optional: boolean;
@@ -9852,7 +9994,6 @@ declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9852
9994
  MenuPopover: typeof MenuPopover;
9853
9995
  };
9854
9996
  static defaultProps: {
9855
- onFigureDeleted: () => void;
9856
9997
  onMouseDown: () => void;
9857
9998
  onClickAnchor: () => void;
9858
9999
  };
@@ -9879,7 +10020,7 @@ declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9879
10020
  editWrapperStyle(properties: CSSProperties): void;
9880
10021
  }
9881
10022
 
9882
- interface Props$S {
10023
+ interface Props$J {
9883
10024
  chartId: UID;
9884
10025
  hasFullScreenButton: boolean;
9885
10026
  }
@@ -9890,7 +10031,7 @@ interface MenuItem {
9890
10031
  onClick: () => void;
9891
10032
  preview?: string;
9892
10033
  }
9893
- declare class ChartDashboardMenu extends Component<Props$S, SpreadsheetChildEnv> {
10034
+ declare class ChartDashboardMenu extends Component<Props$J, SpreadsheetChildEnv> {
9894
10035
  static template: string;
9895
10036
  static components: {
9896
10037
  MenuPopover: typeof MenuPopover;
@@ -9914,18 +10055,16 @@ declare class ChartDashboardMenu extends Component<Props$S, SpreadsheetChildEnv>
9914
10055
  get fullScreenMenuItem(): MenuItem | undefined;
9915
10056
  }
9916
10057
 
9917
- interface Props$R {
10058
+ interface Props$I {
9918
10059
  figureUI: FigureUI;
9919
- onFigureDeleted: () => void;
9920
10060
  editFigureStyle?: (properties: CSSProperties) => void;
9921
10061
  isFullScreen?: boolean;
9922
10062
  openContextMenu?: (anchorRect: Rect, onClose?: () => void) => void;
9923
10063
  }
9924
- declare class ChartFigure extends Component<Props$R, SpreadsheetChildEnv> {
10064
+ declare class ChartFigure extends Component<Props$I, SpreadsheetChildEnv> {
9925
10065
  static template: string;
9926
10066
  static props: {
9927
10067
  figureUI: ObjectConstructor;
9928
- onFigureDeleted: FunctionConstructor;
9929
10068
  editFigureStyle: {
9930
10069
  type: FunctionConstructor;
9931
10070
  optional: boolean;
@@ -9950,19 +10089,15 @@ declare class ChartFigure extends Component<Props$R, SpreadsheetChildEnv> {
9950
10089
 
9951
10090
  type DnDDirection = "all" | "vertical" | "horizontal";
9952
10091
 
9953
- interface Props$Q {
10092
+ interface Props$H {
9954
10093
  isVisible: boolean;
9955
- position: Position;
9956
- }
9957
- interface Position {
9958
- top: HeaderIndex;
9959
- left: HeaderIndex;
10094
+ position: DOMCoordinates;
9960
10095
  }
9961
10096
  interface State$4 {
9962
- position: Position;
10097
+ position: DOMCoordinates;
9963
10098
  handler: boolean;
9964
10099
  }
9965
- declare class Autofill extends Component<Props$Q, SpreadsheetChildEnv> {
10100
+ declare class Autofill extends Component<Props$H, SpreadsheetChildEnv> {
9966
10101
  static template: string;
9967
10102
  static props: {
9968
10103
  position: ObjectConstructor;
@@ -10002,7 +10137,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
10002
10137
  get tagStyle(): string;
10003
10138
  }
10004
10139
 
10005
- interface Props$P {
10140
+ interface Props$G {
10006
10141
  gridDims: DOMDimension;
10007
10142
  onInputContextMenu: (event: MouseEvent) => void;
10008
10143
  }
@@ -10010,7 +10145,7 @@ interface Props$P {
10010
10145
  * This component is a composer which positions itself on the grid at the anchor cell.
10011
10146
  * It also applies the style of the cell to the composer input.
10012
10147
  */
10013
- declare class GridComposer extends Component<Props$P, SpreadsheetChildEnv> {
10148
+ declare class GridComposer extends Component<Props$G, SpreadsheetChildEnv> {
10014
10149
  static template: string;
10015
10150
  static props: {
10016
10151
  gridDims: ObjectConstructor;
@@ -10054,8 +10189,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
10054
10189
  }
10055
10190
 
10056
10191
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
10057
- interface Props$O {
10058
- onFigureDeleted: () => void;
10192
+ interface Props$F {
10059
10193
  }
10060
10194
  interface Container {
10061
10195
  type: ContainerType;
@@ -10135,11 +10269,9 @@ interface DndState {
10135
10269
  * that occurred during the drag & drop, and to position the figure on the correct pane.
10136
10270
  *
10137
10271
  */
10138
- declare class FiguresContainer extends Component<Props$O, SpreadsheetChildEnv> {
10272
+ declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
10139
10273
  static template: string;
10140
- static props: {
10141
- onFigureDeleted: FunctionConstructor;
10142
- };
10274
+ static props: {};
10143
10275
  static components: {
10144
10276
  FigureComponent: typeof FigureComponent;
10145
10277
  };
@@ -10173,17 +10305,15 @@ declare class FiguresContainer extends Component<Props$O, SpreadsheetChildEnv> {
10173
10305
  private getCarouselOverlappingChart;
10174
10306
  }
10175
10307
 
10176
- interface Props$N {
10177
- focusGrid: () => void;
10308
+ interface Props$E {
10178
10309
  }
10179
- declare class GridAddRowsFooter extends Component<Props$N, SpreadsheetChildEnv> {
10310
+ declare class GridAddRowsFooter extends Component<Props$E, SpreadsheetChildEnv> {
10180
10311
  static template: string;
10181
- static props: {
10182
- focusGrid: FunctionConstructor;
10183
- };
10312
+ static props: {};
10184
10313
  static components: {
10185
10314
  ValidationMessages: typeof ValidationMessages;
10186
10315
  };
10316
+ private DOMFocusableElementStore;
10187
10317
  inputRef: {
10188
10318
  el: HTMLInputElement | null;
10189
10319
  };
@@ -10198,22 +10328,26 @@ declare class GridAddRowsFooter extends Component<Props$N, SpreadsheetChildEnv>
10198
10328
  onInput(ev: InputEvent): void;
10199
10329
  onConfirm(): void;
10200
10330
  private onExternalClick;
10331
+ private focusDefaultElement;
10201
10332
  }
10202
10333
 
10203
- interface Props$M {
10334
+ type ZoomedMouseEvent<T extends MouseEvent | PointerEvent> = {
10335
+ clientX: Pixel;
10336
+ clientY: Pixel;
10337
+ offsetX: Pixel;
10338
+ offsetY: Pixel;
10339
+ ev: T;
10340
+ };
10341
+
10342
+ interface Props$D {
10204
10343
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
10205
- onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: PointerEvent | MouseEvent) => void;
10344
+ onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, zoomedMouseEvent: ZoomedMouseEvent<MouseEvent | PointerEvent>) => void;
10206
10345
  onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
10207
- onGridResized: (dimension: Rect) => void;
10346
+ onGridResized: () => void;
10208
10347
  onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
10209
10348
  gridOverlayDimensions: string;
10210
- onFigureDeleted: () => void;
10211
- getGridSize: () => {
10212
- width: number;
10213
- height: number;
10214
- };
10215
10349
  }
10216
- declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10350
+ declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
10217
10351
  static template: string;
10218
10352
  static props: {
10219
10353
  onCellDoubleClicked: {
@@ -10232,17 +10366,12 @@ declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10232
10366
  type: FunctionConstructor;
10233
10367
  optional: boolean;
10234
10368
  };
10235
- onFigureDeleted: {
10236
- type: FunctionConstructor;
10237
- optional: boolean;
10238
- };
10239
10369
  onGridMoved: FunctionConstructor;
10240
10370
  gridOverlayDimensions: StringConstructor;
10241
10371
  slots: {
10242
10372
  type: ObjectConstructor;
10243
10373
  optional: boolean;
10244
10374
  };
10245
- getGridSize: FunctionConstructor;
10246
10375
  };
10247
10376
  static components: {
10248
10377
  FiguresContainer: typeof FiguresContainer;
@@ -10253,7 +10382,6 @@ declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10253
10382
  onCellClicked: () => void;
10254
10383
  onCellRightClicked: () => void;
10255
10384
  onGridResized: () => void;
10256
- onFigureDeleted: () => void;
10257
10385
  };
10258
10386
  private gridOverlay;
10259
10387
  private cellPopovers;
@@ -10266,19 +10394,19 @@ declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10266
10394
  onPointerMove(ev: MouseEvent): void;
10267
10395
  onPointerDown(ev: PointerEvent): void;
10268
10396
  onClick(ev: MouseEvent): void;
10269
- onCellClicked(ev: PointerEvent | MouseEvent): void;
10397
+ onCellClicked(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent | PointerEvent>): void;
10270
10398
  onDoubleClick(ev: MouseEvent): void;
10271
10399
  onContextMenu(ev: MouseEvent): void;
10272
10400
  private getCartesianCoordinates;
10273
10401
  private getInteractiveIconAtEvent;
10274
10402
  }
10275
10403
 
10276
- interface Props$L {
10404
+ interface Props$C {
10277
10405
  gridRect: Rect;
10278
10406
  onClosePopover: () => void;
10279
10407
  onMouseWheel: (ev: WheelEvent) => void;
10280
10408
  }
10281
- declare class GridPopover extends Component<Props$L, SpreadsheetChildEnv> {
10409
+ declare class GridPopover extends Component<Props$C, SpreadsheetChildEnv> {
10282
10410
  static template: string;
10283
10411
  static props: {
10284
10412
  onClosePopover: FunctionConstructor;
@@ -10293,7 +10421,7 @@ declare class GridPopover extends Component<Props$L, SpreadsheetChildEnv> {
10293
10421
  get cellPopover(): PositionedCellPopoverComponent | ClosedCellPopover;
10294
10422
  }
10295
10423
 
10296
- interface Props$K {
10424
+ interface Props$B {
10297
10425
  headersGroups: ConsecutiveIndexes[];
10298
10426
  offset: number;
10299
10427
  headerRange: {
@@ -10301,7 +10429,7 @@ interface Props$K {
10301
10429
  end: HeaderIndex;
10302
10430
  };
10303
10431
  }
10304
- declare class UnhideRowHeaders extends Component<Props$K, SpreadsheetChildEnv> {
10432
+ declare class UnhideRowHeaders extends Component<Props$B, SpreadsheetChildEnv> {
10305
10433
  static template: string;
10306
10434
  static props: {
10307
10435
  headersGroups: ArrayConstructor;
@@ -10320,7 +10448,7 @@ declare class UnhideRowHeaders extends Component<Props$K, SpreadsheetChildEnv> {
10320
10448
  unhide(hiddenElements: HeaderIndex[]): void;
10321
10449
  isVisible(header: HeaderIndex): boolean;
10322
10450
  }
10323
- declare class UnhideColumnHeaders extends Component<Props$K, SpreadsheetChildEnv> {
10451
+ declare class UnhideColumnHeaders extends Component<Props$B, SpreadsheetChildEnv> {
10324
10452
  static template: string;
10325
10453
  static props: {
10326
10454
  headersGroups: ArrayConstructor;
@@ -10373,9 +10501,9 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
10373
10501
  clientY: number;
10374
10502
  }, onPointerMove: (col: HeaderIndex, row: HeaderIndex, ev: MouseEvent) => void, onPointerUp: () => void, startScrollDirection?: DnDDirection) => void;
10375
10503
  };
10376
- abstract _getEvOffset(ev: MouseEvent): Pixel;
10504
+ abstract _getEvOffset(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10377
10505
  abstract _getViewportOffset(): Pixel;
10378
- abstract _getClientPosition(ev: MouseEvent): Pixel;
10506
+ abstract _getClientPosition(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10379
10507
  abstract _getElementIndex(position: Pixel): HeaderIndex;
10380
10508
  abstract _getSelectedZoneStart(): HeaderIndex;
10381
10509
  abstract _getSelectedZoneEnd(): HeaderIndex;
@@ -10392,9 +10520,9 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
10392
10520
  abstract _getActiveElements(): Set<HeaderIndex>;
10393
10521
  abstract _getPreviousVisibleElement(index: HeaderIndex): HeaderIndex;
10394
10522
  setup(): void;
10395
- _computeHandleDisplay(ev: MouseEvent): void;
10396
- _computeGrabDisplay(ev: MouseEvent): void;
10397
- onMouseMove(ev: PointerEvent): void;
10523
+ _computeHandleDisplay(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): void;
10524
+ _computeGrabDisplay(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): void;
10525
+ onMouseMove(ev: MouseEvent): void;
10398
10526
  onMouseLeave(): void;
10399
10527
  onDblClick(ev: MouseEvent): void;
10400
10528
  onMouseDown(ev: MouseEvent): void;
@@ -10402,7 +10530,6 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
10402
10530
  select(ev: PointerEvent): void;
10403
10531
  private startMovement;
10404
10532
  private startSelection;
10405
- onMouseUp(ev: MouseEvent): void;
10406
10533
  onContextMenu(ev: MouseEvent): void;
10407
10534
  }
10408
10535
  declare class ColResizer extends AbstractResizer {
@@ -10416,9 +10543,9 @@ declare class ColResizer extends AbstractResizer {
10416
10543
  private colResizerRef;
10417
10544
  setup(): void;
10418
10545
  get sheetId(): UID;
10419
- _getEvOffset(ev: MouseEvent): Pixel;
10546
+ _getEvOffset(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10420
10547
  _getViewportOffset(): Pixel;
10421
- _getClientPosition(ev: MouseEvent): Pixel;
10548
+ _getClientPosition(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10422
10549
  _getElementIndex(position: Pixel): HeaderIndex;
10423
10550
  _getSelectedZoneStart(): HeaderIndex;
10424
10551
  _getSelectedZoneEnd(): HeaderIndex;
@@ -10464,9 +10591,9 @@ declare class RowResizer extends AbstractResizer {
10464
10591
  setup(): void;
10465
10592
  private rowResizerRef;
10466
10593
  get sheetId(): UID;
10467
- _getEvOffset(ev: MouseEvent): Pixel;
10594
+ _getEvOffset(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10468
10595
  _getViewportOffset(): Pixel;
10469
- _getClientPosition(ev: MouseEvent): Pixel;
10596
+ _getClientPosition(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10470
10597
  _getElementIndex(position: Pixel): HeaderIndex;
10471
10598
  _getSelectedZoneStart(): HeaderIndex;
10472
10599
  _getSelectedZoneEnd(): HeaderIndex;
@@ -10513,13 +10640,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
10513
10640
  }
10514
10641
 
10515
10642
  type Orientation$1 = "n" | "s" | "w" | "e";
10516
- interface Props$J {
10643
+ interface Props$A {
10517
10644
  zone: Zone;
10518
10645
  orientation: Orientation$1;
10519
10646
  isMoving: boolean;
10520
10647
  onMoveHighlight: (ev: PointerEvent) => void;
10521
10648
  }
10522
- declare class Border extends Component<Props$J, SpreadsheetChildEnv> {
10649
+ declare class Border extends Component<Props$A, SpreadsheetChildEnv> {
10523
10650
  static template: string;
10524
10651
  static props: {
10525
10652
  zone: ObjectConstructor;
@@ -10532,14 +10659,14 @@ declare class Border extends Component<Props$J, SpreadsheetChildEnv> {
10532
10659
  }
10533
10660
 
10534
10661
  type Orientation = "nw" | "ne" | "sw" | "se" | "n" | "s" | "e" | "w";
10535
- interface Props$I {
10662
+ interface Props$z {
10536
10663
  zone: Zone;
10537
10664
  color: Color;
10538
10665
  orientation: Orientation;
10539
10666
  isResizing: boolean;
10540
10667
  onResizeHighlight: (ev: PointerEvent, dirX: ResizeDirection, dirY: ResizeDirection) => void;
10541
10668
  }
10542
- declare class Corner extends Component<Props$I, SpreadsheetChildEnv> {
10669
+ declare class Corner extends Component<Props$z, SpreadsheetChildEnv> {
10543
10670
  static template: string;
10544
10671
  static props: {
10545
10672
  zone: ObjectConstructor;
@@ -10588,7 +10715,7 @@ declare class Highlight extends Component<HighlightProps, SpreadsheetChildEnv> {
10588
10715
 
10589
10716
  type ScrollDirection = "horizontal" | "vertical";
10590
10717
 
10591
- interface Props$H {
10718
+ interface Props$y {
10592
10719
  width: Pixel;
10593
10720
  height: Pixel;
10594
10721
  direction: ScrollDirection;
@@ -10596,7 +10723,7 @@ interface Props$H {
10596
10723
  offset: Pixel;
10597
10724
  onScroll: (offset: Pixel) => void;
10598
10725
  }
10599
- declare class ScrollBar extends Component<Props$H> {
10726
+ declare class ScrollBar extends Component<Props$y> {
10600
10727
  static props: {
10601
10728
  width: {
10602
10729
  type: NumberConstructor;
@@ -10624,10 +10751,10 @@ declare class ScrollBar extends Component<Props$H> {
10624
10751
  onScroll(ev: any): void;
10625
10752
  }
10626
10753
 
10627
- interface Props$G {
10754
+ interface Props$x {
10628
10755
  leftOffset: number;
10629
10756
  }
10630
- declare class HorizontalScrollBar extends Component<Props$G, SpreadsheetChildEnv> {
10757
+ declare class HorizontalScrollBar extends Component<Props$x, SpreadsheetChildEnv> {
10631
10758
  static props: {
10632
10759
  leftOffset: {
10633
10760
  type: NumberConstructor;
@@ -10653,10 +10780,10 @@ declare class HorizontalScrollBar extends Component<Props$G, SpreadsheetChildEnv
10653
10780
  onScroll(offset: any): void;
10654
10781
  }
10655
10782
 
10656
- interface Props$F {
10783
+ interface Props$w {
10657
10784
  topOffset: number;
10658
10785
  }
10659
- declare class VerticalScrollBar extends Component<Props$F, SpreadsheetChildEnv> {
10786
+ declare class VerticalScrollBar extends Component<Props$w, SpreadsheetChildEnv> {
10660
10787
  static props: {
10661
10788
  topOffset: {
10662
10789
  type: NumberConstructor;
@@ -10691,13 +10818,13 @@ declare class Selection extends Component<{}, SpreadsheetChildEnv> {
10691
10818
  get highlightProps(): HighlightProps;
10692
10819
  }
10693
10820
 
10694
- interface Props$E {
10821
+ interface Props$v {
10695
10822
  table: Table;
10696
10823
  }
10697
10824
  interface State$3 {
10698
10825
  highlightZone: Zone | undefined;
10699
10826
  }
10700
- declare class TableResizer extends Component<Props$E, SpreadsheetChildEnv> {
10827
+ declare class TableResizer extends Component<Props$v, SpreadsheetChildEnv> {
10701
10828
  static template: string;
10702
10829
  static props: {
10703
10830
  table: ObjectConstructor;
@@ -10726,11 +10853,11 @@ declare class TableResizer extends Component<Props$E, SpreadsheetChildEnv> {
10726
10853
  * - a vertical resizer (same, for rows)
10727
10854
  */
10728
10855
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
10729
- interface Props$D {
10856
+ interface Props$u {
10730
10857
  exposeFocus: (focus: () => void) => void;
10731
10858
  getGridSize: () => DOMDimension;
10732
10859
  }
10733
- declare class Grid extends Component<Props$D, SpreadsheetChildEnv> {
10860
+ declare class Grid extends Component<Props$u, SpreadsheetChildEnv> {
10734
10861
  static template: string;
10735
10862
  static props: {
10736
10863
  exposeFocus: FunctionConstructor;
@@ -10778,23 +10905,26 @@ declare class Grid extends Component<Props$D, SpreadsheetChildEnv> {
10778
10905
  focusDefaultElement(): void;
10779
10906
  get gridEl(): HTMLElement;
10780
10907
  getAutofillPosition(): {
10781
- left: number;
10782
- top: number;
10908
+ x: number;
10909
+ y: number;
10783
10910
  };
10784
10911
  get isAutofillVisible(): boolean;
10785
- onGridResized({ height, width }: DOMDimension): void;
10912
+ onGridResized(): void;
10786
10913
  private moveCanvas;
10787
10914
  private processSpaceKey;
10788
10915
  getClientPositionKey(client: Client): string;
10789
10916
  isCellHovered(col: HeaderIndex, row: HeaderIndex): boolean;
10790
10917
  get focusedClients(): Set<string>;
10791
10918
  private getGridRect;
10792
- onCellClicked(col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: PointerEvent): void;
10919
+ onCellClicked(col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, zoomedMouseEvent: ZoomedMouseEvent<PointerEvent>): void;
10793
10920
  onCellDoubleClicked(col: HeaderIndex, row: HeaderIndex): void;
10794
10921
  processArrows(ev: KeyboardEvent): void;
10795
10922
  onKeydown(ev: KeyboardEvent): void;
10796
10923
  onInputContextMenu(ev: MouseEvent): void;
10797
10924
  onCellRightClicked(col: HeaderIndex, row: HeaderIndex, { x, y }: DOMCoordinates): void;
10925
+ /**
10926
+ * expects x and y coordinates in true pixels (not zoomed)
10927
+ */
10798
10928
  toggleContextMenu(type: ContextMenuType, x: Pixel, y: Pixel): void;
10799
10929
  copy(cut: boolean, ev: ClipboardEvent): Promise<void>;
10800
10930
  paste(ev: ClipboardEvent): Promise<void>;
@@ -10846,7 +10976,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
10846
10976
  private getChartDefinitionFromContextCreation;
10847
10977
  }
10848
10978
 
10849
- interface Props$C {
10979
+ interface Props$t {
10850
10980
  chartId: UID;
10851
10981
  chartPanelStore: MainChartPanelStore;
10852
10982
  }
@@ -10854,7 +10984,7 @@ interface ChartTypePickerState {
10854
10984
  popoverProps: PopoverProps | undefined;
10855
10985
  popoverStyle: string;
10856
10986
  }
10857
- declare class ChartTypePicker extends Component<Props$C, SpreadsheetChildEnv> {
10987
+ declare class ChartTypePicker extends Component<Props$t, SpreadsheetChildEnv> {
10858
10988
  static template: string;
10859
10989
  static components: {
10860
10990
  Section: typeof Section;
@@ -10890,11 +11020,11 @@ declare class ChartTypePicker extends Component<Props$C, SpreadsheetChildEnv> {
10890
11020
  private closePopover;
10891
11021
  }
10892
11022
 
10893
- interface Props$B {
11023
+ interface Props$s {
10894
11024
  onCloseSidePanel: () => void;
10895
11025
  chartId: UID;
10896
11026
  }
10897
- declare class ChartPanel extends Component<Props$B, SpreadsheetChildEnv> {
11027
+ declare class ChartPanel extends Component<Props$s, SpreadsheetChildEnv> {
10898
11028
  static template: string;
10899
11029
  static components: {
10900
11030
  Section: typeof Section;
@@ -10917,11 +11047,11 @@ declare class ChartPanel extends Component<Props$B, SpreadsheetChildEnv> {
10917
11047
  private getChartDefinition;
10918
11048
  }
10919
11049
 
10920
- interface Props$A {
11050
+ interface Props$r {
10921
11051
  onValueChange: (value: number) => void;
10922
11052
  value: number;
10923
11053
  }
10924
- declare class PieHoleSize extends Component<Props$A, SpreadsheetChildEnv> {
11054
+ declare class PieHoleSize extends Component<Props$r, SpreadsheetChildEnv> {
10925
11055
  static template: string;
10926
11056
  static components: {
10927
11057
  Section: typeof Section;
@@ -10934,13 +11064,7 @@ declare class PieHoleSize extends Component<Props$A, SpreadsheetChildEnv> {
10934
11064
  onChange(value: string): void;
10935
11065
  }
10936
11066
 
10937
- interface Props$z {
10938
- chartId: UID;
10939
- definition: PieChartDefinition;
10940
- canUpdateChart: (chartId: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
10941
- updateChart: (chartId: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
10942
- }
10943
- declare class PieChartDesignPanel extends Component<Props$z, SpreadsheetChildEnv> {
11067
+ declare class PieChartDesignPanel extends Component<ChartSidePanelProps<PieChartDefinition>, SpreadsheetChildEnv> {
10944
11068
  static template: string;
10945
11069
  static components: {
10946
11070
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -10954,20 +11078,17 @@ declare class PieChartDesignPanel extends Component<Props$z, SpreadsheetChildEnv
10954
11078
  static props: {
10955
11079
  chartId: StringConstructor;
10956
11080
  definition: ObjectConstructor;
11081
+ canUpdateChart: FunctionConstructor;
10957
11082
  updateChart: FunctionConstructor;
10958
- canUpdateChart: {
10959
- type: FunctionConstructor;
10960
- optional: boolean;
10961
- };
10962
11083
  };
10963
11084
  onPieHoleSizeChange(pieHolePercentage: number): void;
10964
11085
  get defaultHoleSize(): number;
10965
11086
  }
10966
11087
 
10967
- interface Props$y {
11088
+ interface Props$q {
10968
11089
  items: ActionSpec[];
10969
11090
  }
10970
- declare class CogWheelMenu extends Component<Props$y, SpreadsheetChildEnv> {
11091
+ declare class CogWheelMenu extends Component<Props$q, SpreadsheetChildEnv> {
10971
11092
  static template: string;
10972
11093
  static components: {
10973
11094
  MenuPopover: typeof MenuPopover;
@@ -11050,14 +11171,14 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
11050
11171
  get highlights(): Highlight$1[];
11051
11172
  }
11052
11173
 
11053
- interface Props$x {
11174
+ interface Props$p {
11054
11175
  deferUpdate: boolean;
11055
11176
  isDirty: boolean;
11056
11177
  toggleDeferUpdate: (value: boolean) => void;
11057
11178
  discard: () => void;
11058
11179
  apply: () => void;
11059
11180
  }
11060
- declare class PivotDeferUpdate extends Component<Props$x, SpreadsheetChildEnv> {
11181
+ declare class PivotDeferUpdate extends Component<Props$p, SpreadsheetChildEnv> {
11061
11182
  static template: string;
11062
11183
  static props: {
11063
11184
  deferUpdate: BooleanConstructor;
@@ -11074,11 +11195,11 @@ declare class PivotDeferUpdate extends Component<Props$x, SpreadsheetChildEnv> {
11074
11195
  get deferUpdatesTooltip(): string;
11075
11196
  }
11076
11197
 
11077
- interface Props$w {
11198
+ interface Props$o {
11078
11199
  onFieldPicked: (field: string) => void;
11079
11200
  fields: PivotField[];
11080
11201
  }
11081
- declare class AddDimensionButton extends Component<Props$w, SpreadsheetChildEnv> {
11202
+ declare class AddDimensionButton extends Component<Props$o, SpreadsheetChildEnv> {
11082
11203
  static template: string;
11083
11204
  static components: {
11084
11205
  Popover: typeof Popover;
@@ -11114,13 +11235,13 @@ declare class AddDimensionButton extends Component<Props$w, SpreadsheetChildEnv>
11114
11235
  onKeyDown(ev: KeyboardEvent): void;
11115
11236
  }
11116
11237
 
11117
- interface Props$v {
11238
+ interface Props$n {
11118
11239
  dimension: PivotCoreDimension | PivotCoreMeasure;
11119
11240
  onRemoved: (dimension: PivotCoreDimension | PivotCoreMeasure) => void;
11120
11241
  onNameUpdated?: (dimension: PivotCoreDimension | PivotCoreMeasure, name?: string) => void;
11121
11242
  type: "row" | "col" | "measure";
11122
11243
  }
11123
- declare class PivotDimension extends Component<Props$v, SpreadsheetChildEnv> {
11244
+ declare class PivotDimension extends Component<Props$n, SpreadsheetChildEnv> {
11124
11245
  static template: string;
11125
11246
  static props: {
11126
11247
  dimension: ObjectConstructor;
@@ -11144,13 +11265,13 @@ declare class PivotDimension extends Component<Props$v, SpreadsheetChildEnv> {
11144
11265
  updateName(name: string): void;
11145
11266
  }
11146
11267
 
11147
- interface Props$u {
11268
+ interface Props$m {
11148
11269
  dimension: PivotDimension$1;
11149
11270
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
11150
11271
  availableGranularities: Set<string>;
11151
11272
  allGranularities: string[];
11152
11273
  }
11153
- declare class PivotDimensionGranularity extends Component<Props$u, SpreadsheetChildEnv> {
11274
+ declare class PivotDimensionGranularity extends Component<Props$m, SpreadsheetChildEnv> {
11154
11275
  static template: string;
11155
11276
  static props: {
11156
11277
  dimension: ObjectConstructor;
@@ -11175,11 +11296,11 @@ declare class PivotDimensionGranularity extends Component<Props$u, SpreadsheetCh
11175
11296
  };
11176
11297
  }
11177
11298
 
11178
- interface Props$t {
11299
+ interface Props$l {
11179
11300
  dimension: PivotDimension$1;
11180
11301
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
11181
11302
  }
11182
- declare class PivotDimensionOrder extends Component<Props$t, SpreadsheetChildEnv> {
11303
+ declare class PivotDimensionOrder extends Component<Props$l, SpreadsheetChildEnv> {
11183
11304
  static template: string;
11184
11305
  static props: {
11185
11306
  dimension: ObjectConstructor;
@@ -11216,12 +11337,12 @@ declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type"
11216
11337
  declare function toFunctionPivotValue(value: CellValue, dimension: Pick<PivotDimension$1, "type" | "granularity">): string;
11217
11338
  declare function createCustomFields(definition: PivotCoreDefinition, fields: PivotFields): PivotFields;
11218
11339
 
11219
- interface Props$s {
11340
+ interface Props$k {
11220
11341
  pivotId: UID;
11221
11342
  customField: PivotCustomGroupedField;
11222
11343
  onCustomFieldUpdated: (definition: Partial<PivotCoreDefinition>) => void;
11223
11344
  }
11224
- declare class PivotCustomGroupsCollapsible extends Component<Props$s, SpreadsheetChildEnv> {
11345
+ declare class PivotCustomGroupsCollapsible extends Component<Props$k, SpreadsheetChildEnv> {
11225
11346
  static template: string;
11226
11347
  static props: {
11227
11348
  pivotId: StringConstructor;
@@ -11241,7 +11362,7 @@ declare class PivotCustomGroupsCollapsible extends Component<Props$s, Spreadshee
11241
11362
  private updateCustomField;
11242
11363
  }
11243
11364
 
11244
- interface Props$r {
11365
+ interface Props$j {
11245
11366
  pivotId: string;
11246
11367
  definition: PivotRuntimeDefinition;
11247
11368
  measure: PivotMeasure;
@@ -11249,7 +11370,7 @@ interface Props$r {
11249
11370
  onRemoved: () => void;
11250
11371
  generateMeasureId: (fieldName: string, aggregator?: string) => string;
11251
11372
  }
11252
- declare class PivotMeasureEditor extends Component<Props$r> {
11373
+ declare class PivotMeasureEditor extends Component<Props$j> {
11253
11374
  static template: string;
11254
11375
  static components: {
11255
11376
  PivotDimension: typeof PivotDimension;
@@ -11274,11 +11395,11 @@ declare class PivotMeasureEditor extends Component<Props$r> {
11274
11395
  get isCalculatedMeasureInvalid(): boolean;
11275
11396
  }
11276
11397
 
11277
- interface Props$q {
11398
+ interface Props$i {
11278
11399
  definition: PivotRuntimeDefinition;
11279
11400
  pivotId: UID;
11280
11401
  }
11281
- declare class PivotSortSection extends Component<Props$q, SpreadsheetChildEnv> {
11402
+ declare class PivotSortSection extends Component<Props$i, SpreadsheetChildEnv> {
11282
11403
  static template: string;
11283
11404
  static components: {
11284
11405
  Section: typeof Section;
@@ -11295,7 +11416,7 @@ declare class PivotSortSection extends Component<Props$q, SpreadsheetChildEnv> {
11295
11416
  }[];
11296
11417
  }
11297
11418
 
11298
- interface Props$p {
11419
+ interface Props$h {
11299
11420
  definition: PivotRuntimeDefinition;
11300
11421
  onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
11301
11422
  unusedGroupableFields: PivotField[];
@@ -11306,7 +11427,7 @@ interface Props$p {
11306
11427
  getScrollableContainerEl?: () => HTMLElement;
11307
11428
  pivotId: UID;
11308
11429
  }
11309
- declare class PivotLayoutConfigurator extends Component<Props$p, SpreadsheetChildEnv> {
11430
+ declare class PivotLayoutConfigurator extends Component<Props$h, SpreadsheetChildEnv> {
11310
11431
  static template: string;
11311
11432
  static components: {
11312
11433
  AddDimensionButton: typeof AddDimensionButton;
@@ -11403,11 +11524,11 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
11403
11524
  private areDomainFieldsValid;
11404
11525
  }
11405
11526
 
11406
- interface Props$o {
11527
+ interface Props$g {
11407
11528
  pivotId: UID;
11408
11529
  flipAxis: () => void;
11409
11530
  }
11410
- declare class PivotTitleSection extends Component<Props$o, SpreadsheetChildEnv> {
11531
+ declare class PivotTitleSection extends Component<Props$g, SpreadsheetChildEnv> {
11411
11532
  static template: string;
11412
11533
  static components: {
11413
11534
  CogWheelMenu: typeof CogWheelMenu;
@@ -11474,11 +11595,11 @@ declare function createEmptySheet(sheetId: UID, name: string): SheetData;
11474
11595
  declare function createEmptyWorkbookData(sheetName?: string): WorkbookData;
11475
11596
  declare function createEmptyExcelSheet(sheetId: UID, name: string): ExcelSheetData;
11476
11597
 
11477
- interface Props$n {
11598
+ interface Props$f {
11478
11599
  position: CellPosition;
11479
11600
  sortDirection: SortDirection | "none";
11480
11601
  }
11481
- declare class ClickableCellSortIcon extends Component<Props$n, SpreadsheetChildEnv> {
11602
+ declare class ClickableCellSortIcon extends Component<Props$f, SpreadsheetChildEnv> {
11482
11603
  static template: string;
11483
11604
  static props: {
11484
11605
  position: ObjectConstructor;
@@ -11502,14 +11623,17 @@ declare class ZoomableChartJsComponent extends ChartJsComponent {
11502
11623
  private chartId;
11503
11624
  private datasetBoundaries;
11504
11625
  private removeEventListeners;
11626
+ private isMasterChartAllowed;
11505
11627
  setup(): void;
11506
11628
  protected unmount(): void;
11507
11629
  get containerStyle(): string;
11630
+ get masterChartContainerStyle(): "" | "opacity: 0.3;";
11508
11631
  get sliceable(): boolean;
11509
11632
  get axisOffset(): number;
11510
11633
  private getMasterChartConfiguration;
11511
11634
  private getDetailChartConfiguration;
11512
11635
  private getAxisLimitsFromDataset;
11636
+ private setMasterChartCursor;
11513
11637
  protected createChart(chartRuntime: ChartJSRuntime): void;
11514
11638
  protected updateChartJs(chartRuntime: ChartJSRuntime): void;
11515
11639
  private resetAxesLimits;
@@ -11518,18 +11642,44 @@ declare class ZoomableChartJsComponent extends ChartJsComponent {
11518
11642
  get lowerBound(): number | undefined;
11519
11643
  private computePosition;
11520
11644
  private computeCoordinate;
11645
+ /**
11646
+ * Compute min and max from the store, adjusting them if needed for non linear scales.
11647
+ * Getting the value from the store, we have to ensure that the values are integers for
11648
+ * non linear scales (bar and category). To select a bar in the chart, we have to include
11649
+ * the whole bar, which means that for the i-th bar, the selected min should be <= i and
11650
+ * the selected max should be >= i, so using the Math.floor and Math.ceil functions is
11651
+ * the right way to do it.
11652
+ * Sometimes, we can get a minimal value > the maximal value, which arise when the user
11653
+ * select a very small area in the master chart, and hasn't selected the middle of a bar
11654
+ * or a group of bars (in case of more than one data series).
11655
+ * Assuming we have to select the middle of a bar/a groupe of bars, we will reject the
11656
+ * coming value afterward. In this case, we do not update the chart because it would lead
11657
+ * to an empty chart.
11658
+ */
11659
+ private getStoredBoundaries;
11660
+ /**
11661
+ * Adjust the min and max values of an axis if needed for non linear scales.
11662
+ * Here, after rounding (see docstring of getStoredBoundaries), we adjust the min by
11663
+ * substracting the axis offset, and we add it to the max, because when computing from the
11664
+ * scale, chartJs use integer values as the limits for non linear scales. If we have a min
11665
+ * value of 1, it means we want to start displaying from 0.5, and if we have a max value of
11666
+ * 4, it means we want to display until 4.5.
11667
+ * Here, we don't have to check if min > max because we are computing from the scale, and
11668
+ * chartJs ensures that this won't happen, even after our adjustments.
11669
+ */
11670
+ private adjustBoundaries;
11521
11671
  private updateAxisLimits;
11522
- onPointerDownInMasterChart(ev: PointerEvent): void;
11523
- onPointerMoveInMasterChart(ev: PointerEvent): void;
11524
- onMouseLeaveMasterChart(ev: PointerEvent): void;
11525
- onDoubleClickInMasterChart(ev: PointerEvent): void;
11672
+ onMasterChartPointerDown(ev: PointerEvent): void;
11673
+ onMasterChartPointerMove(ev: PointerEvent): void;
11674
+ onMasterChartMouseLeave(ev: PointerEvent): void;
11675
+ onMasterChartDoubleClick(ev: PointerEvent): void;
11526
11676
  }
11527
11677
 
11528
- interface Props$m {
11678
+ interface Props$e {
11529
11679
  chartId: UID;
11530
11680
  isFullScreen?: boolean;
11531
11681
  }
11532
- declare class GaugeChartComponent extends Component<Props$m, SpreadsheetChildEnv> {
11682
+ declare class GaugeChartComponent extends Component<Props$e, SpreadsheetChildEnv> {
11533
11683
  static template: string;
11534
11684
  static props: {
11535
11685
  chartId: StringConstructor;
@@ -11598,7 +11748,7 @@ interface PivotDialogValue {
11598
11748
  value: string;
11599
11749
  isMissing: boolean;
11600
11750
  }
11601
- interface Props$l {
11751
+ interface Props$d {
11602
11752
  pivotId: UID;
11603
11753
  onCellClicked: (formula: string) => void;
11604
11754
  }
@@ -11607,7 +11757,7 @@ interface TableData {
11607
11757
  rows: PivotDialogRow[];
11608
11758
  values: PivotDialogValue[][];
11609
11759
  }
11610
- declare class PivotHTMLRenderer extends Component<Props$l, SpreadsheetChildEnv> {
11760
+ declare class PivotHTMLRenderer extends Component<Props$d, SpreadsheetChildEnv> {
11611
11761
  static template: string;
11612
11762
  static components: {
11613
11763
  Checkbox: typeof Checkbox;
@@ -11664,13 +11814,7 @@ declare class PivotHTMLRenderer extends Component<Props$l, SpreadsheetChildEnv>
11664
11814
  _buildValues(id: UID, table: SpreadsheetPivotTable): PivotDialogValue[][];
11665
11815
  }
11666
11816
 
11667
- interface Props$k {
11668
- chartId: UID;
11669
- definition: ChartWithDataSetDefinition;
11670
- updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
11671
- canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
11672
- }
11673
- declare class ChartShowDataMarkers extends Component<Props$k, SpreadsheetChildEnv> {
11817
+ declare class ChartShowDataMarkers extends Component<ChartSidePanelProps<ChartWithDataSetDefinition>, SpreadsheetChildEnv> {
11674
11818
  static template: string;
11675
11819
  static components: {
11676
11820
  Checkbox: typeof Checkbox;
@@ -11678,18 +11822,14 @@ declare class ChartShowDataMarkers extends Component<Props$k, SpreadsheetChildEn
11678
11822
  static props: {
11679
11823
  chartId: StringConstructor;
11680
11824
  definition: ObjectConstructor;
11681
- updateChart: FunctionConstructor;
11682
11825
  canUpdateChart: FunctionConstructor;
11826
+ updateChart: FunctionConstructor;
11683
11827
  };
11684
11828
  }
11685
11829
 
11686
- interface Props$j {
11687
- chartId: UID;
11688
- definition: ZoomableChartDefinition;
11689
- canUpdateChart: (chartId: UID, definition: GenericDefinition<ZoomableChartDefinition>) => DispatchResult;
11690
- updateChart: (chartId: UID, definition: GenericDefinition<ZoomableChartDefinition>) => DispatchResult;
11830
+ interface Props$c extends ChartSidePanelProps<ZoomableChartDefinition> {
11691
11831
  }
11692
- declare class GenericZoomableChartDesignPanel<P extends Props$j = Props$j> extends ChartWithAxisDesignPanel<Props$j> {
11832
+ declare class GenericZoomableChartDesignPanel<P extends Props$c = Props$c> extends ChartWithAxisDesignPanel<P> {
11693
11833
  static template: string;
11694
11834
  static components: {
11695
11835
  Checkbox: typeof Checkbox;
@@ -11705,13 +11845,7 @@ declare class GenericZoomableChartDesignPanel<P extends Props$j = Props$j> exten
11705
11845
  onToggleZoom(zoomable: boolean): void;
11706
11846
  }
11707
11847
 
11708
- interface Props$i {
11709
- chartId: UID;
11710
- definition: ComboChartDefinition;
11711
- canUpdateChart: (chartId: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
11712
- updateChart: (chartId: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
11713
- }
11714
- declare class ComboChartDesignPanel extends GenericZoomableChartDesignPanel<Props$i> {
11848
+ declare class ComboChartDesignPanel extends GenericZoomableChartDesignPanel<ChartSidePanelProps<ComboChartDefinition>> {
11715
11849
  static template: string;
11716
11850
  static components: {
11717
11851
  ChartShowDataMarkers: typeof ChartShowDataMarkers;
@@ -11734,13 +11868,7 @@ declare class ComboChartDesignPanel extends GenericZoomableChartDesignPanel<Prop
11734
11868
  getDataSeriesType(index: number): "line" | "bar";
11735
11869
  }
11736
11870
 
11737
- interface Props$h {
11738
- chartId: UID;
11739
- definition: FunnelChartDefinition;
11740
- canUpdateChart: (chartId: UID, definition: Partial<FunnelChartDefinition>) => DispatchResult;
11741
- updateChart: (chartId: UID, definition: Partial<FunnelChartDefinition>) => DispatchResult;
11742
- }
11743
- declare class FunnelChartDesignPanel extends Component<Props$h, SpreadsheetChildEnv> {
11871
+ declare class FunnelChartDesignPanel extends Component<ChartSidePanelProps<FunnelChartDefinition>, SpreadsheetChildEnv> {
11744
11872
  static template: string;
11745
11873
  static components: {
11746
11874
  ChartShowValues: typeof ChartShowValues;
@@ -11763,16 +11891,54 @@ declare class FunnelChartDesignPanel extends Component<Props$h, SpreadsheetChild
11763
11891
  updateFunnelItemColor(index: number, color: string): void;
11764
11892
  }
11765
11893
 
11766
- interface Props$g {
11767
- chartId: UID;
11768
- definition: GeoChartDefinition;
11769
- canUpdateChart: (chartId: UID, definition: Partial<GeoChartDefinition>) => DispatchResult;
11770
- updateChart: (chartId: UID, definition: Partial<GeoChartDefinition>) => DispatchResult;
11894
+ interface Props$b {
11895
+ definition: {
11896
+ colorScale: ChartColorScale;
11897
+ };
11898
+ onUpdateColorScale: (colorscale: ChartColorScale) => void;
11899
+ }
11900
+ interface ColorScalePickerState {
11901
+ popoverProps: PopoverProps | undefined;
11902
+ popoverStyle: string;
11903
+ }
11904
+ declare class ColorScalePicker extends Component<Props$b, SpreadsheetChildEnv> {
11905
+ static template: string;
11906
+ static components: {
11907
+ Section: typeof Section;
11908
+ RoundColorPicker: typeof RoundColorPicker;
11909
+ Popover: typeof Popover;
11910
+ };
11911
+ static props: {
11912
+ definition: ObjectConstructor;
11913
+ onUpdateColorScale: FunctionConstructor;
11914
+ };
11915
+ colorScales: {
11916
+ value: string;
11917
+ label: any;
11918
+ className: string;
11919
+ }[];
11920
+ state: ColorScalePickerState;
11921
+ popoverRef: {
11922
+ el: HTMLElement | null;
11923
+ };
11924
+ setup(): void;
11925
+ get currentColorScale(): ChartColorScale;
11926
+ get currentColorScaleStyle(): string | undefined;
11927
+ colorScalePreviewStyle(colorScale: ColorScale): string;
11928
+ get currentColorScaleLabel(): string;
11929
+ onColorScaleChange(value: string): void;
11930
+ onPointerDown(ev: PointerEvent): void;
11931
+ private closePopover;
11932
+ get selectedColorScale(): string;
11933
+ getCustomColorScaleColor(color: "minColor" | "midColor" | "maxColor"): "" | Color;
11934
+ setCustomColorScaleColor(colorType: "minColor" | "midColor" | "maxColor", color: Color): void;
11771
11935
  }
11772
- declare class GeoChartDesignPanel extends ChartWithAxisDesignPanel<Props$g> {
11936
+
11937
+ declare class GeoChartDesignPanel extends ChartWithAxisDesignPanel<ChartSidePanelProps<GeoChartDefinition>> {
11773
11938
  static template: string;
11774
11939
  static components: {
11775
11940
  RoundColorPicker: typeof RoundColorPicker;
11941
+ ColorScalePicker: typeof ColorScalePicker;
11776
11942
  GeneralDesignEditor: typeof GeneralDesignEditor;
11777
11943
  SidePanelCollapsible: typeof SidePanelCollapsible;
11778
11944
  Section: typeof Section;
@@ -11782,24 +11948,18 @@ declare class GeoChartDesignPanel extends ChartWithAxisDesignPanel<Props$g> {
11782
11948
  ChartShowValues: typeof ChartShowValues;
11783
11949
  ChartHumanizeNumbers: typeof ChartHumanizeNumbers;
11784
11950
  };
11785
- colorScalesChoices: Record<"blues" | "cividis" | "greens" | "greys" | "oranges" | "purples" | "rainbow" | "reds" | "viridis", string>;
11786
- updateColorScaleType(ev: Event): void;
11787
- updateColorScale(colorScale: GeoChartColorScale): void;
11951
+ updateColorScale(colorScale: ChartColorScale | undefined): void;
11788
11952
  updateMissingValueColor(color: Color): void;
11789
11953
  updateLegendPosition(ev: Event): void;
11790
- get selectedColorScale(): "custom" | "blues" | "cividis" | "greens" | "greys" | "oranges" | "purples" | "rainbow" | "reds" | "viridis";
11791
11954
  get selectedMissingValueColor(): Color | "#ffffff";
11792
- get customColorScale(): GeoChartCustomColorScale | undefined;
11793
- getCustomColorScaleColor(color: "minColor" | "midColor" | "maxColor"): "" | Color;
11794
- setCustomColorScaleColor(colorType: "minColor" | "midColor" | "maxColor", color: Color): void;
11795
11955
  }
11796
11956
 
11797
- interface Props$f {
11957
+ interface Props$a {
11798
11958
  chartId: UID;
11799
11959
  definition: GeoChartDefinition;
11800
11960
  updateChart: (chartId: UID, definition: Partial<GeoChartDefinition>) => DispatchResult;
11801
11961
  }
11802
- declare class GeoChartRegionSelectSection extends Component<Props$f, SpreadsheetChildEnv> {
11962
+ declare class GeoChartRegionSelectSection extends Component<Props$a, SpreadsheetChildEnv> {
11803
11963
  static template: string;
11804
11964
  static components: {
11805
11965
  Section: typeof Section;
@@ -11814,13 +11974,7 @@ declare class GeoChartRegionSelectSection extends Component<Props$f, Spreadsheet
11814
11974
  get selectedRegion(): string;
11815
11975
  }
11816
11976
 
11817
- interface Props$e {
11818
- chartId: UID;
11819
- definition: LineChartDefinition;
11820
- canUpdateChart: (chartId: UID, definition: LineChartDefinition) => DispatchResult;
11821
- updateChart: (chartId: UID, definition: LineChartDefinition) => DispatchResult;
11822
- }
11823
- declare class LineChartDesignPanel extends GenericZoomableChartDesignPanel<Props$e> {
11977
+ declare class LineChartDesignPanel extends GenericZoomableChartDesignPanel<ChartSidePanelProps<LineChartDefinition>> {
11824
11978
  static template: string;
11825
11979
  static components: {
11826
11980
  ChartShowDataMarkers: typeof ChartShowDataMarkers;
@@ -11836,13 +11990,7 @@ declare class LineChartDesignPanel extends GenericZoomableChartDesignPanel<Props
11836
11990
  };
11837
11991
  }
11838
11992
 
11839
- interface Props$d {
11840
- chartId: UID;
11841
- definition: RadarChartDefinition;
11842
- canUpdateChart: (chartId: UID, definition: GenericDefinition<RadarChartDefinition>) => DispatchResult;
11843
- updateChart: (chartId: UID, definition: GenericDefinition<RadarChartDefinition>) => DispatchResult;
11844
- }
11845
- declare class RadarChartDesignPanel extends Component<Props$d, SpreadsheetChildEnv> {
11993
+ declare class RadarChartDesignPanel extends Component<ChartSidePanelProps<RadarChartDefinition>, SpreadsheetChildEnv> {
11846
11994
  static template: string;
11847
11995
  static components: {
11848
11996
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -11862,13 +12010,7 @@ declare class RadarChartDesignPanel extends Component<Props$d, SpreadsheetChildE
11862
12010
  };
11863
12011
  }
11864
12012
 
11865
- interface Props$c {
11866
- chartId: UID;
11867
- definition: SunburstChartDefinition;
11868
- canUpdateChart: (chartId: UID, definition: Partial<SunburstChartDefinition>) => DispatchResult;
11869
- updateChart: (chartId: UID, definition: Partial<SunburstChartDefinition>) => DispatchResult;
11870
- }
11871
- declare class SunburstChartDesignPanel extends Component<Props$c, SpreadsheetChildEnv> {
12013
+ declare class SunburstChartDesignPanel extends Component<ChartSidePanelProps<SunburstChartDefinition>, SpreadsheetChildEnv> {
11872
12014
  static template: string;
11873
12015
  static components: {
11874
12016
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -11880,15 +12022,13 @@ declare class SunburstChartDesignPanel extends Component<Props$c, SpreadsheetChi
11880
12022
  RoundColorPicker: typeof RoundColorPicker;
11881
12023
  ChartLegend: typeof ChartLegend;
11882
12024
  PieHoleSize: typeof PieHoleSize;
12025
+ ChartHumanizeNumbers: typeof ChartHumanizeNumbers;
11883
12026
  };
11884
12027
  static props: {
11885
12028
  chartId: StringConstructor;
11886
12029
  definition: ObjectConstructor;
12030
+ canUpdateChart: FunctionConstructor;
11887
12031
  updateChart: FunctionConstructor;
11888
- canUpdateChart: {
11889
- type: FunctionConstructor;
11890
- optional: boolean;
11891
- };
11892
12032
  };
11893
12033
  defaults: {
11894
12034
  showValues: boolean;
@@ -11905,12 +12045,12 @@ declare class SunburstChartDesignPanel extends Component<Props$c, SpreadsheetChi
11905
12045
  onPieHoleSizeChange(pieHolePercentage: number): void;
11906
12046
  }
11907
12047
 
11908
- interface Props$b {
12048
+ interface Props$9 {
11909
12049
  chartId: UID;
11910
12050
  definition: TreeMapChartDefinition;
11911
12051
  onColorChanged: (colors: TreeMapCategoryColorOptions) => DispatchResult;
11912
12052
  }
11913
- declare class TreeMapCategoryColors extends Component<Props$b, SpreadsheetChildEnv> {
12053
+ declare class TreeMapCategoryColors extends Component<Props$9, SpreadsheetChildEnv> {
11914
12054
  static template: string;
11915
12055
  static components: {
11916
12056
  Checkbox: typeof Checkbox;
@@ -11927,12 +12067,12 @@ declare class TreeMapCategoryColors extends Component<Props$b, SpreadsheetChildE
11927
12067
  useValueBasedGradient(useValueBasedGradient: boolean): void;
11928
12068
  }
11929
12069
 
11930
- interface Props$a {
12070
+ interface Props$8 {
11931
12071
  chartId: UID;
11932
12072
  definition: TreeMapChartDefinition;
11933
12073
  onColorChanged: (colors: TreeMapColorScaleOptions) => DispatchResult;
11934
12074
  }
11935
- declare class TreeMapColorScale extends Component<Props$a, SpreadsheetChildEnv> {
12075
+ declare class TreeMapColorScale extends Component<Props$8, SpreadsheetChildEnv> {
11936
12076
  static template: string;
11937
12077
  static components: {
11938
12078
  RoundColorPicker: typeof RoundColorPicker;
@@ -11946,13 +12086,7 @@ declare class TreeMapColorScale extends Component<Props$a, SpreadsheetChildEnv>
11946
12086
  setColorScaleColor(point: "minColor" | "midColor" | "maxColor", color: string): void;
11947
12087
  }
11948
12088
 
11949
- interface Props$9 {
11950
- chartId: UID;
11951
- definition: TreeMapChartDefinition;
11952
- canUpdateChart: (chartId: UID, definition: Partial<TreeMapChartDefinition>) => DispatchResult;
11953
- updateChart: (chartId: UID, definition: Partial<TreeMapChartDefinition>) => DispatchResult;
11954
- }
11955
- declare class TreeMapChartDesignPanel extends Component<Props$9, SpreadsheetChildEnv> {
12089
+ declare class TreeMapChartDesignPanel extends Component<ChartSidePanelProps<TreeMapChartDefinition>, SpreadsheetChildEnv> {
11956
12090
  static template: string;
11957
12091
  static components: {
11958
12092
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -11965,15 +12099,13 @@ declare class TreeMapChartDesignPanel extends Component<Props$9, SpreadsheetChil
11965
12099
  BadgeSelection: typeof BadgeSelection;
11966
12100
  TreeMapCategoryColors: typeof TreeMapCategoryColors;
11967
12101
  TreeMapColorScale: typeof TreeMapColorScale;
12102
+ ChartHumanizeNumbers: typeof ChartHumanizeNumbers;
11968
12103
  };
11969
12104
  static props: {
11970
12105
  chartId: StringConstructor;
11971
12106
  definition: ObjectConstructor;
12107
+ canUpdateChart: FunctionConstructor;
11972
12108
  updateChart: FunctionConstructor;
11973
- canUpdateChart: {
11974
- type: FunctionConstructor;
11975
- optional: boolean;
11976
- };
11977
12109
  };
11978
12110
  private savedColors;
11979
12111
  defaults: {
@@ -11997,13 +12129,7 @@ declare class TreeMapChartDesignPanel extends Component<Props$9, SpreadsheetChil
11997
12129
  }[];
11998
12130
  }
11999
12131
 
12000
- interface Props$8 {
12001
- chartId: UID;
12002
- definition: WaterfallChartDefinition;
12003
- canUpdateChart: (chartId: UID, definition: GenericDefinition<WaterfallChartDefinition>) => DispatchResult;
12004
- updateChart: (chartId: UID, definition: GenericDefinition<WaterfallChartDefinition>) => DispatchResult;
12005
- }
12006
- declare class WaterfallChartDesignPanel extends Component<Props$8, SpreadsheetChildEnv> {
12132
+ declare class WaterfallChartDesignPanel extends Component<ChartSidePanelProps<WaterfallChartDefinition>, SpreadsheetChildEnv> {
12007
12133
  static template: string;
12008
12134
  static components: {
12009
12135
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -12020,11 +12146,8 @@ declare class WaterfallChartDesignPanel extends Component<Props$8, SpreadsheetCh
12020
12146
  static props: {
12021
12147
  chartId: StringConstructor;
12022
12148
  definition: ObjectConstructor;
12149
+ canUpdateChart: FunctionConstructor;
12023
12150
  updateChart: FunctionConstructor;
12024
- canUpdateChart: {
12025
- type: FunctionConstructor;
12026
- optional: boolean;
12027
- };
12028
12151
  };
12029
12152
  axisChoices: {
12030
12153
  value: string;
@@ -12083,7 +12206,7 @@ declare class HoveredTableStore extends SpreadsheetStore {
12083
12206
  row: number | undefined;
12084
12207
  overlayColors: PositionMap<Color>;
12085
12208
  handle(cmd: Command): void;
12086
- hover(position: Partial<Position$1>): "noStateChange" | undefined;
12209
+ hover(position: Partial<Position>): "noStateChange" | undefined;
12087
12210
  clear(): void;
12088
12211
  private computeOverlay;
12089
12212
  }
@@ -12272,6 +12395,7 @@ declare class GridRenderer extends SpreadsheetStore {
12272
12395
  private animations;
12273
12396
  constructor(get: Get);
12274
12397
  handle(cmd: Command): void;
12398
+ finalize(): void;
12275
12399
  get renderingLayers(): readonly ["Background", "Headers"];
12276
12400
  drawLayer(renderingContext: GridRenderingContext, layer: LayerName, timeStamp: number | undefined): void;
12277
12401
  private drawGlobalBackground;
@@ -12582,9 +12706,11 @@ declare class ClickableCellsStore extends SpreadsheetStore {
12582
12706
  private getClickableItem;
12583
12707
  private findClickableItem;
12584
12708
  get clickableCells(): ClickableCell[];
12709
+ private getClickableCellRect;
12585
12710
  }
12586
12711
 
12587
12712
  interface Props$4 {
12713
+ getGridSize: () => DOMDimension;
12588
12714
  }
12589
12715
  declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEnv> {
12590
12716
  static template: string;
@@ -12617,9 +12743,10 @@ declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEn
12617
12743
  getClickableCells(): ClickableCell[];
12618
12744
  selectClickableCell(ev: MouseEvent, clickableCell: ClickableCell): void;
12619
12745
  onClosePopover(): void;
12620
- onGridResized({ height, width }: DOMDimension): void;
12746
+ onGridResized(): void;
12621
12747
  private moveCanvas;
12622
12748
  private getGridRect;
12749
+ private getMaxSheetWidth;
12623
12750
  }
12624
12751
 
12625
12752
  interface Props$3 {
@@ -12942,6 +13069,7 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
12942
13069
 
12943
13070
  interface SpreadsheetProps extends Partial<NotificationStoreMethods> {
12944
13071
  model: Model;
13072
+ colorScheme?: "dark" | "light";
12945
13073
  }
12946
13074
  declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEnv> {
12947
13075
  static template: string;
@@ -12959,6 +13087,10 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
12959
13087
  type: FunctionConstructor;
12960
13088
  optional: boolean;
12961
13089
  };
13090
+ colorScheme: {
13091
+ type: StringConstructor;
13092
+ optional: boolean;
13093
+ };
12962
13094
  };
12963
13095
  static components: {
12964
13096
  TopBar: typeof TopBar;
@@ -12994,8 +13126,77 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
12994
13126
  width: number;
12995
13127
  height: number;
12996
13128
  };
13129
+ getSpreadSheetClasses(): string;
12997
13130
  }
12998
13131
 
13132
+ interface DigitToken {
13133
+ type: "DIGIT";
13134
+ value: "0" | "#";
13135
+ }
13136
+ interface StringToken {
13137
+ type: "STRING";
13138
+ value: string;
13139
+ }
13140
+ interface CharToken {
13141
+ type: "CHAR";
13142
+ value: string;
13143
+ }
13144
+ interface PercentToken {
13145
+ type: "PERCENT";
13146
+ value: "%";
13147
+ }
13148
+ interface ScientificToken {
13149
+ type: "SCIENTIFIC";
13150
+ value: "e";
13151
+ }
13152
+ interface ThousandsSeparatorToken {
13153
+ type: "THOUSANDS_SEPARATOR";
13154
+ value: ",";
13155
+ }
13156
+ interface TextPlaceholderToken {
13157
+ type: "TEXT_PLACEHOLDER";
13158
+ value: "@";
13159
+ }
13160
+ interface DatePartToken {
13161
+ type: "DATE_PART";
13162
+ value: string;
13163
+ }
13164
+ interface RepeatCharToken {
13165
+ type: "REPEATED_CHAR";
13166
+ value: string;
13167
+ }
13168
+
13169
+ interface MultiPartInternalFormat {
13170
+ positive: NumberInternalFormat | DateInternalFormat | TextInternalFormat;
13171
+ negative?: NumberInternalFormat | DateInternalFormat;
13172
+ zero?: NumberInternalFormat | DateInternalFormat;
13173
+ text?: TextInternalFormat;
13174
+ }
13175
+ interface DateInternalFormat {
13176
+ type: "date";
13177
+ tokens: (DatePartToken | StringToken | CharToken | RepeatCharToken)[];
13178
+ }
13179
+ interface NumberInternalFormat {
13180
+ type: "number";
13181
+ readonly integerPart: (DigitToken | StringToken | CharToken | PercentToken | ScientificToken | ThousandsSeparatorToken | RepeatCharToken)[];
13182
+ readonly percentSymbols: number;
13183
+ readonly thousandsSeparator: boolean;
13184
+ readonly scientific: boolean;
13185
+ /** A thousand separator after the last digit in the format means that we divide the number by a thousand */
13186
+ readonly magnitude: number;
13187
+ /**
13188
+ * optional because we need to differentiate a number
13189
+ * with a dot but no decimals with a number without any decimals.
13190
+ * i.e. '5.' !=== '5' !=== '5.0'
13191
+ */
13192
+ readonly decimalPart?: (DigitToken | StringToken | CharToken | PercentToken | ScientificToken | ThousandsSeparatorToken | RepeatCharToken)[];
13193
+ }
13194
+ interface TextInternalFormat {
13195
+ type: "text";
13196
+ tokens: (StringToken | CharToken | TextPlaceholderToken | RepeatCharToken)[];
13197
+ }
13198
+ declare function parseFormat(formatString: Format): MultiPartInternalFormat;
13199
+
12999
13200
  /**
13000
13201
  * Get the first Pivot function description of the given formula.
13001
13202
  */
@@ -13090,9 +13291,9 @@ declare const registries: {
13090
13291
  supportedPivotPositionalFormulaRegistry: Registry<boolean>;
13091
13292
  pivotToFunctionValueRegistry: Registry<(value: CellValue, granularity?: string) => string>;
13092
13293
  migrationStepRegistry: Registry$1<MigrationStep>;
13093
- chartJsExtensionRegistry: Registry<{
13094
- register: (chart: typeof window.Chart) => void;
13095
- unregister: (chart: typeof window.Chart) => void;
13294
+ chartJsExtensionRegistry: Registry$1<{
13295
+ register: (chart: GlobalChart) => void;
13296
+ unregister: (chart: GlobalChart) => void;
13096
13297
  }>;
13097
13298
  };
13098
13299
 
@@ -13158,6 +13359,13 @@ declare const helpers: {
13158
13359
  isNumber: typeof isNumber;
13159
13360
  isDateTime: typeof isDateTime;
13160
13361
  createCustomFields: typeof createCustomFields;
13362
+ schemeToColorScale: typeof schemeToColorScale;
13363
+ isDateTimeFormat: (format: Format) => boolean;
13364
+ jsDateToNumber: typeof jsDateToNumber;
13365
+ numberToJsDate: typeof numberToJsDate;
13366
+ DateTime: typeof DateTime;
13367
+ parseFormat: typeof parseFormat;
13368
+ isFormula: typeof isFormula;
13161
13369
  };
13162
13370
  declare const links: {
13163
13371
  isMarkdownLink: typeof isMarkdownLink;
@@ -13223,6 +13431,8 @@ declare const components: {
13223
13431
  ChartDashboardMenu: typeof ChartDashboardMenu;
13224
13432
  FullScreenFigure: typeof FullScreenFigure;
13225
13433
  NumberInput: typeof NumberInput;
13434
+ TopBar: typeof TopBar;
13435
+ Composer: typeof Composer;
13226
13436
  };
13227
13437
  declare const hooks: {
13228
13438
  useDragAndDropListItems: typeof useDragAndDropListItems;
@@ -13272,9 +13482,7 @@ declare const constants: {
13272
13482
  };
13273
13483
  ChartTerms: {
13274
13484
  [key: string]: any;
13275
- GeoChart: {
13276
- ColorScales: Record<Extract<GeoChartColorScale, string>, string>;
13277
- };
13485
+ ColorScales: Record<Extract<ChartColorScale, string>, string>;
13278
13486
  };
13279
13487
  FIGURE_ID_SPLITTER: string;
13280
13488
  GRID_ICON_EDGE_LENGTH: number;
@@ -13282,6 +13490,7 @@ declare const constants: {
13282
13490
  };
13283
13491
  declare const chartHelpers: {
13284
13492
  getBarChartData(definition: GenericDefinition<BarChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
13493
+ getCalendarChartData(definition: GenericDefinition<CalendarChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
13285
13494
  getPyramidChartData(definition: PyramidChartDefinition, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
13286
13495
  getLineChartData(definition: GenericDefinition<LineChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
13287
13496
  getPieChartData(definition: GenericDefinition<PieChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
@@ -13297,6 +13506,10 @@ declare const chartHelpers: {
13297
13506
  makeDatasetsCumulative(datasets: DatasetValues[], order: "asc" | "desc"): DatasetValues[];
13298
13507
  getTopPaddingForDashboard(definition: GenericDefinition<PieChartDefinition | LineChartDefinition | BarChartDefinition>, getters: Getters): 0 | 30;
13299
13508
  getBarChartDatasets(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"bar" | "line">[];
13509
+ getCalendarChartDatasetAndLabels(definition: CalendarChartDefinition, args: ChartRuntimeGenerationArgs): {
13510
+ datasets: chart_js.ChartDataset<"calendar">[];
13511
+ labels: string[];
13512
+ };
13300
13513
  getWaterfallDatasetAndLabels(definition: GenericDefinition<WaterfallChartDefinition>, args: ChartRuntimeGenerationArgs): {
13301
13514
  datasets: chart_js.ChartDataset[];
13302
13515
  labels: string[];
@@ -13317,6 +13530,10 @@ declare const chartHelpers: {
13317
13530
  autoPadding: boolean;
13318
13531
  padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
13319
13532
  }>> | undefined;
13533
+ getCalendarChartLayout(definition: GenericDefinition<ChartWithDataSetDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<Partial<{
13534
+ autoPadding: boolean;
13535
+ padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
13536
+ }>> | undefined;
13320
13537
  getBarChartLegend(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.LegendOptions<any>>;
13321
13538
  getLineChartLegend(definition: GenericDefinition<LineChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.LegendOptions<any>>;
13322
13539
  getPieChartLegend(definition: GenericDefinition<LineChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.LegendOptions<any>>;
@@ -13330,402 +13547,11 @@ declare const chartHelpers: {
13330
13547
  onLeave: (event: any) => void;
13331
13548
  onClick: (event: any, legendItem: any, legend: any) => void;
13332
13549
  };
13333
- getBarChartScales(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<{
13334
- [key: string]: chart_js.ScaleOptionsByType<"radialLinear" | keyof chart_js.CartesianScaleTypeRegistry>;
13335
- }>;
13336
- getLineChartScales(definition: GenericDefinition<LineChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<{
13337
- [key: string]: chart_js.ScaleOptionsByType<"radialLinear" | keyof chart_js.CartesianScaleTypeRegistry>;
13338
- }>;
13339
- getScatterChartScales(definition: GenericDefinition<ScatterChartDefinition>, args: ChartRuntimeGenerationArgs): {
13340
- x: {
13341
- grid: {
13342
- display: boolean;
13343
- };
13344
- } | {
13345
- grid: {
13346
- display: boolean;
13347
- };
13348
- type?: "time" | undefined;
13349
- reverse?: boolean | undefined;
13350
- offset?: boolean | undefined;
13351
- backgroundColor?: string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined;
13352
- border?: chart_js_dist_types_utils._DeepPartialObject<chart_js.BorderOptions> | undefined;
13353
- clip?: boolean | undefined;
13354
- display?: boolean | "auto" | undefined;
13355
- position?: "center" | "left" | "top" | "bottom" | "right" | chart_js_dist_types_utils._DeepPartialObject<{
13356
- [scale: string]: number;
13357
- }> | undefined;
13358
- title?: chart_js_dist_types_utils._DeepPartialObject<{
13359
- display: boolean;
13360
- align: chart_js.Align;
13361
- text: string | string[];
13362
- color: chart_js.Color;
13363
- font: chart_js.ScriptableAndScriptableOptions<Partial<chart_js.FontSpec>, chart_js.ScriptableCartesianScaleContext>;
13364
- padding: number | {
13365
- top: number;
13366
- bottom: number;
13367
- y: number;
13368
- };
13369
- }> | undefined;
13370
- stack?: string | undefined;
13371
- weight?: number | undefined;
13372
- bounds?: "data" | "ticks" | undefined;
13373
- stackWeight?: number | undefined;
13374
- axis?: "r" | "x" | "y" | undefined;
13375
- stacked?: boolean | "single" | undefined;
13376
- ticks?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TickOptions & {
13377
- sampleSize: number;
13378
- align: chart_js.Align | "inner";
13379
- autoSkip: boolean;
13380
- autoSkipPadding: number;
13381
- crossAlign: "near" | "center" | "far";
13382
- includeBounds: boolean;
13383
- labelOffset: number;
13384
- minRotation: number;
13385
- maxRotation: number;
13386
- mirror: boolean;
13387
- padding: number;
13388
- maxTicksLimit: number;
13389
- } & chart_js.TimeScaleTickOptions> | undefined;
13390
- alignToPixels?: boolean | undefined;
13391
- suggestedMin?: string | number | undefined;
13392
- suggestedMax?: string | number | undefined;
13393
- beforeUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13394
- beforeSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13395
- afterSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13396
- beforeDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13397
- afterDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13398
- beforeBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13399
- afterBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13400
- beforeTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13401
- afterTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13402
- beforeCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13403
- afterCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13404
- beforeFit?: ((axis: chart_js.Scale) => void) | undefined;
13405
- afterFit?: ((axis: chart_js.Scale) => void) | undefined;
13406
- afterUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13407
- min?: string | number | undefined;
13408
- max?: string | number | undefined;
13409
- offsetAfterAutoskip?: boolean | undefined;
13410
- adapters?: chart_js_dist_types_utils._DeepPartialObject<{
13411
- date: unknown;
13412
- }> | undefined;
13413
- time?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TimeScaleTimeOptions> | undefined;
13414
- } | {
13415
- grid: {
13416
- display: boolean;
13417
- };
13418
- type?: "linear" | undefined;
13419
- bounds?: "data" | "ticks" | undefined;
13420
- position?: "center" | "left" | "top" | "bottom" | "right" | chart_js_dist_types_utils._DeepPartialObject<{
13421
- [scale: string]: number;
13422
- }> | undefined;
13423
- stack?: string | undefined;
13424
- stackWeight?: number | undefined;
13425
- axis?: "r" | "x" | "y" | undefined;
13426
- min?: number | undefined;
13427
- max?: number | undefined;
13428
- offset?: boolean | undefined;
13429
- border?: chart_js_dist_types_utils._DeepPartialObject<chart_js.BorderOptions> | undefined;
13430
- title?: chart_js_dist_types_utils._DeepPartialObject<{
13431
- display: boolean;
13432
- align: chart_js.Align;
13433
- text: string | string[];
13434
- color: chart_js.Color;
13435
- font: chart_js.ScriptableAndScriptableOptions<Partial<chart_js.FontSpec>, chart_js.ScriptableCartesianScaleContext>;
13436
- padding: number | {
13437
- top: number;
13438
- bottom: number;
13439
- y: number;
13440
- };
13441
- }> | undefined;
13442
- stacked?: boolean | "single" | undefined;
13443
- ticks?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TickOptions & {
13444
- sampleSize: number;
13445
- align: chart_js.Align | "inner";
13446
- autoSkip: boolean;
13447
- autoSkipPadding: number;
13448
- crossAlign: "near" | "center" | "far";
13449
- includeBounds: boolean;
13450
- labelOffset: number;
13451
- minRotation: number;
13452
- maxRotation: number;
13453
- mirror: boolean;
13454
- padding: number;
13455
- maxTicksLimit: number;
13456
- } & {
13457
- format: Intl.NumberFormatOptions;
13458
- precision: number;
13459
- stepSize: number;
13460
- count: number;
13461
- }> | undefined;
13462
- display?: boolean | "auto" | undefined;
13463
- alignToPixels?: boolean | undefined;
13464
- backgroundColor?: string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined;
13465
- reverse?: boolean | undefined;
13466
- clip?: boolean | undefined;
13467
- weight?: number | undefined;
13468
- suggestedMin?: number | undefined;
13469
- suggestedMax?: number | undefined;
13470
- beforeUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13471
- beforeSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13472
- afterSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13473
- beforeDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13474
- afterDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13475
- beforeBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13476
- afterBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13477
- beforeTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13478
- afterTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13479
- beforeCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13480
- afterCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13481
- beforeFit?: ((axis: chart_js.Scale) => void) | undefined;
13482
- afterFit?: ((axis: chart_js.Scale) => void) | undefined;
13483
- afterUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13484
- beginAtZero?: boolean | undefined;
13485
- grace?: string | number | undefined;
13486
- } | {
13487
- grid: {
13488
- display: boolean;
13489
- };
13490
- type?: "logarithmic" | undefined;
13491
- bounds?: "data" | "ticks" | undefined;
13492
- position?: "center" | "left" | "top" | "bottom" | "right" | chart_js_dist_types_utils._DeepPartialObject<{
13493
- [scale: string]: number;
13494
- }> | undefined;
13495
- stack?: string | undefined;
13496
- stackWeight?: number | undefined;
13497
- axis?: "r" | "x" | "y" | undefined;
13498
- min?: number | undefined;
13499
- max?: number | undefined;
13500
- offset?: boolean | undefined;
13501
- border?: chart_js_dist_types_utils._DeepPartialObject<chart_js.BorderOptions> | undefined;
13502
- title?: chart_js_dist_types_utils._DeepPartialObject<{
13503
- display: boolean;
13504
- align: chart_js.Align;
13505
- text: string | string[];
13506
- color: chart_js.Color;
13507
- font: chart_js.ScriptableAndScriptableOptions<Partial<chart_js.FontSpec>, chart_js.ScriptableCartesianScaleContext>;
13508
- padding: number | {
13509
- top: number;
13510
- bottom: number;
13511
- y: number;
13512
- };
13513
- }> | undefined;
13514
- stacked?: boolean | "single" | undefined;
13515
- ticks?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TickOptions & {
13516
- sampleSize: number;
13517
- align: chart_js.Align | "inner";
13518
- autoSkip: boolean;
13519
- autoSkipPadding: number;
13520
- crossAlign: "near" | "center" | "far";
13521
- includeBounds: boolean;
13522
- labelOffset: number;
13523
- minRotation: number;
13524
- maxRotation: number;
13525
- mirror: boolean;
13526
- padding: number;
13527
- maxTicksLimit: number;
13528
- } & {
13529
- format: Intl.NumberFormatOptions;
13530
- }> | undefined;
13531
- display?: boolean | "auto" | undefined;
13532
- alignToPixels?: boolean | undefined;
13533
- backgroundColor?: string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined;
13534
- reverse?: boolean | undefined;
13535
- clip?: boolean | undefined;
13536
- weight?: number | undefined;
13537
- suggestedMin?: number | undefined;
13538
- suggestedMax?: number | undefined;
13539
- beforeUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13540
- beforeSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13541
- afterSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13542
- beforeDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13543
- afterDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13544
- beforeBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13545
- afterBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13546
- beforeTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13547
- afterTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13548
- beforeCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13549
- afterCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13550
- beforeFit?: ((axis: chart_js.Scale) => void) | undefined;
13551
- afterFit?: ((axis: chart_js.Scale) => void) | undefined;
13552
- afterUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13553
- } | {
13554
- grid: {
13555
- display: boolean;
13556
- };
13557
- type?: "category" | undefined;
13558
- reverse?: boolean | undefined;
13559
- offset?: boolean | undefined;
13560
- backgroundColor?: string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined;
13561
- border?: chart_js_dist_types_utils._DeepPartialObject<chart_js.BorderOptions> | undefined;
13562
- clip?: boolean | undefined;
13563
- display?: boolean | "auto" | undefined;
13564
- position?: "center" | "left" | "top" | "bottom" | "right" | chart_js_dist_types_utils._DeepPartialObject<{
13565
- [scale: string]: number;
13566
- }> | undefined;
13567
- title?: chart_js_dist_types_utils._DeepPartialObject<{
13568
- display: boolean;
13569
- align: chart_js.Align;
13570
- text: string | string[];
13571
- color: chart_js.Color;
13572
- font: chart_js.ScriptableAndScriptableOptions<Partial<chart_js.FontSpec>, chart_js.ScriptableCartesianScaleContext>;
13573
- padding: number | {
13574
- top: number;
13575
- bottom: number;
13576
- y: number;
13577
- };
13578
- }> | undefined;
13579
- stack?: string | undefined;
13580
- weight?: number | undefined;
13581
- bounds?: "data" | "ticks" | undefined;
13582
- stackWeight?: number | undefined;
13583
- axis?: "r" | "x" | "y" | undefined;
13584
- stacked?: boolean | "single" | undefined;
13585
- ticks?: chart_js_dist_types_utils._DeepPartialObject<chart_js.CartesianTickOptions> | undefined;
13586
- alignToPixels?: boolean | undefined;
13587
- suggestedMin?: unknown;
13588
- suggestedMax?: unknown;
13589
- beforeUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13590
- beforeSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13591
- afterSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13592
- beforeDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13593
- afterDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13594
- beforeBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13595
- afterBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13596
- beforeTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13597
- afterTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13598
- beforeCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13599
- afterCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13600
- beforeFit?: ((axis: chart_js.Scale) => void) | undefined;
13601
- afterFit?: ((axis: chart_js.Scale) => void) | undefined;
13602
- afterUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13603
- min?: string | number | undefined;
13604
- max?: string | number | undefined;
13605
- labels?: chart_js_dist_types_utils._DeepPartialArray<string> | chart_js_dist_types_utils._DeepPartialArray<string[]> | undefined;
13606
- } | {
13607
- grid: {
13608
- display: boolean;
13609
- };
13610
- type?: "timeseries" | undefined;
13611
- reverse?: boolean | undefined;
13612
- offset?: boolean | undefined;
13613
- backgroundColor?: string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined;
13614
- border?: chart_js_dist_types_utils._DeepPartialObject<chart_js.BorderOptions> | undefined;
13615
- clip?: boolean | undefined;
13616
- display?: boolean | "auto" | undefined;
13617
- position?: "center" | "left" | "top" | "bottom" | "right" | chart_js_dist_types_utils._DeepPartialObject<{
13618
- [scale: string]: number;
13619
- }> | undefined;
13620
- title?: chart_js_dist_types_utils._DeepPartialObject<{
13621
- display: boolean;
13622
- align: chart_js.Align;
13623
- text: string | string[];
13624
- color: chart_js.Color;
13625
- font: chart_js.ScriptableAndScriptableOptions<Partial<chart_js.FontSpec>, chart_js.ScriptableCartesianScaleContext>;
13626
- padding: number | {
13627
- top: number;
13628
- bottom: number;
13629
- y: number;
13630
- };
13631
- }> | undefined;
13632
- stack?: string | undefined;
13633
- weight?: number | undefined;
13634
- bounds?: "data" | "ticks" | undefined;
13635
- stackWeight?: number | undefined;
13636
- axis?: "r" | "x" | "y" | undefined;
13637
- stacked?: boolean | "single" | undefined;
13638
- ticks?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TickOptions & {
13639
- sampleSize: number;
13640
- align: chart_js.Align | "inner";
13641
- autoSkip: boolean;
13642
- autoSkipPadding: number;
13643
- crossAlign: "near" | "center" | "far";
13644
- includeBounds: boolean;
13645
- labelOffset: number;
13646
- minRotation: number;
13647
- maxRotation: number;
13648
- mirror: boolean;
13649
- padding: number;
13650
- maxTicksLimit: number;
13651
- } & chart_js.TimeScaleTickOptions> | undefined;
13652
- alignToPixels?: boolean | undefined;
13653
- suggestedMin?: string | number | undefined;
13654
- suggestedMax?: string | number | undefined;
13655
- beforeUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13656
- beforeSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13657
- afterSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13658
- beforeDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13659
- afterDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13660
- beforeBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13661
- afterBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13662
- beforeTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13663
- afterTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13664
- beforeCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13665
- afterCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13666
- beforeFit?: ((axis: chart_js.Scale) => void) | undefined;
13667
- afterFit?: ((axis: chart_js.Scale) => void) | undefined;
13668
- afterUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13669
- min?: string | number | undefined;
13670
- max?: string | number | undefined;
13671
- offsetAfterAutoskip?: boolean | undefined;
13672
- adapters?: chart_js_dist_types_utils._DeepPartialObject<{
13673
- date: unknown;
13674
- }> | undefined;
13675
- time?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TimeScaleTimeOptions> | undefined;
13676
- } | {
13677
- grid: {
13678
- display: boolean;
13679
- };
13680
- type?: "radialLinear" | undefined;
13681
- display?: boolean | "auto" | undefined;
13682
- alignToPixels?: boolean | undefined;
13683
- backgroundColor?: string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined;
13684
- reverse?: boolean | undefined;
13685
- clip?: boolean | undefined;
13686
- weight?: number | undefined;
13687
- min?: number | undefined;
13688
- max?: number | undefined;
13689
- suggestedMin?: number | undefined;
13690
- suggestedMax?: number | undefined;
13691
- beforeUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13692
- beforeSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13693
- afterSetDimensions?: ((axis: chart_js.Scale) => void) | undefined;
13694
- beforeDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13695
- afterDataLimits?: ((axis: chart_js.Scale) => void) | undefined;
13696
- beforeBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13697
- afterBuildTicks?: ((axis: chart_js.Scale) => void) | undefined;
13698
- beforeTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13699
- afterTickToLabelConversion?: ((axis: chart_js.Scale) => void) | undefined;
13700
- beforeCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13701
- afterCalculateLabelRotation?: ((axis: chart_js.Scale) => void) | undefined;
13702
- beforeFit?: ((axis: chart_js.Scale) => void) | undefined;
13703
- afterFit?: ((axis: chart_js.Scale) => void) | undefined;
13704
- afterUpdate?: ((axis: chart_js.Scale) => void) | undefined;
13705
- animate?: boolean | undefined;
13706
- startAngle?: number | undefined;
13707
- angleLines?: chart_js_dist_types_utils._DeepPartialObject<{
13708
- display: boolean;
13709
- color: chart_js.Scriptable<chart_js.Color, chart_js.ScriptableScaleContext>;
13710
- lineWidth: chart_js.Scriptable<number, chart_js.ScriptableScaleContext>;
13711
- borderDash: chart_js.Scriptable<number[], chart_js.ScriptableScaleContext>;
13712
- borderDashOffset: chart_js.Scriptable<number, chart_js.ScriptableScaleContext>;
13713
- }> | undefined;
13714
- beginAtZero?: boolean | undefined;
13715
- pointLabels?: chart_js_dist_types_utils._DeepPartialObject<{
13716
- backdropColor: chart_js.Scriptable<chart_js.Color, chart_js.ScriptableScalePointLabelContext>;
13717
- backdropPadding: chart_js.Scriptable<number | chart_js.ChartArea, chart_js.ScriptableScalePointLabelContext>;
13718
- borderRadius: chart_js.Scriptable<number | chart_js.BorderRadius, chart_js.ScriptableScalePointLabelContext>;
13719
- display: boolean | "auto";
13720
- color: chart_js.Scriptable<chart_js.Color, chart_js.ScriptableScalePointLabelContext>;
13721
- font: chart_js.ScriptableAndScriptableOptions<Partial<chart_js.FontSpec>, chart_js.ScriptableScalePointLabelContext>;
13722
- callback: (label: string, index: number) => string | string[] | number | number[];
13723
- padding: chart_js.Scriptable<number, chart_js.ScriptableScalePointLabelContext>;
13724
- centerPointLabels: boolean;
13725
- }> | undefined;
13726
- ticks?: chart_js_dist_types_utils._DeepPartialObject<chart_js.RadialTickOptions> | undefined;
13727
- };
13728
- };
13550
+ getBarChartScales(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils.DeepPartial<chart_js.ScaleChartOptions<"line" | "bar">["scales"]>;
13551
+ getCalendarChartScales(definition: GenericDefinition<BarChartDefinition>, datasets: chart_js.ChartDataset[]): chart_js_dist_types_utils.DeepPartial<chart_js.ScaleChartOptions<"calendar">["scales"]>;
13552
+ getCalendarColorScale(definition: CalendarChartDefinition, args: ChartRuntimeGenerationArgs): ChartColorScalePluginOptions | undefined;
13553
+ getLineChartScales(definition: GenericDefinition<LineChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils.DeepPartial<chart_js.ScaleChartOptions<"line">["scales"]>;
13554
+ getScatterChartScales(definition: GenericDefinition<ScatterChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils.DeepPartial<chart_js.ScaleChartOptions<"line">["scales"]>;
13729
13555
  getWaterfallChartScales(definition: WaterfallChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<{
13730
13556
  [key: string]: chart_js.ScaleOptionsByType<"radialLinear" | keyof chart_js.CartesianScaleTypeRegistry>;
13731
13557
  }>;
@@ -13741,12 +13567,15 @@ declare const chartHelpers: {
13741
13567
  getFunnelChartScales(definition: FunnelChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<{
13742
13568
  [key: string]: chart_js.ScaleOptionsByType<"radialLinear" | keyof chart_js.CartesianScaleTypeRegistry>;
13743
13569
  }>;
13570
+ getRuntimeColorScale(colorScale: ChartColorScale, minValue?: number, maxValue?: number): (value: number) => Color;
13744
13571
  getChartShowValues(definition: ChartWithDataSetDefinition, args: ChartRuntimeGenerationArgs): ChartShowValuesPluginOptions;
13572
+ getCalendarChartShowValues(definition: CalendarChartDefinition, args: ChartRuntimeGenerationArgs): ChartShowValuesPluginOptions;
13745
13573
  getSunburstShowValues(definition: SunburstChartDefinition, args: ChartRuntimeGenerationArgs): ChartSunburstLabelsPluginOptions;
13746
13574
  getPyramidChartShowValues(definition: ChartWithDataSetDefinition, args: ChartRuntimeGenerationArgs): ChartShowValuesPluginOptions;
13747
13575
  getWaterfallChartShowValues(definition: WaterfallChartDefinition, args: ChartRuntimeGenerationArgs): ChartShowValuesPluginOptions;
13748
13576
  getChartTitle(definition: ChartWithDataSetDefinition, getters: Getters): chart_js_dist_types_utils._DeepPartialObject<chart_js.TitleOptions>;
13749
13577
  getBarChartTooltip(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
13578
+ getCalendarChartTooltip(definition: CalendarChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
13750
13579
  getLineChartTooltip(definition: GenericDefinition<LineChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
13751
13580
  getPieChartTooltip(definition: PieChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
13752
13581
  getWaterfallChartTooltip(definition: WaterfallChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
@@ -13831,4 +13660,4 @@ declare const chartHelpers: {
13831
13660
  WaterfallChart: typeof WaterfallChart;
13832
13661
  };
13833
13662
 
13834
- export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AdaptSheetName, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFigureChartToCarouselCommand, AddFunctionDescription, AddMergeCommand, AddNewChartToCarouselCommand, AddPivotCommand, AdjacentEdge, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorOffset, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgProposal, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BadExpressionError, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescrWithOpacity, BorderPosition, BorderStyle, BoundedRange, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelledReason, Carousel, CarouselItem, Cell, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartAxisFormats, ChartCreationContext, ChartDatasetOrientation, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartRuntimeGenerationArgs, ChartStyle, ChartType, ChartWithAxisDefinition, ChartWithDataSetDefinition, CircularDependencyError, CleanClipBoardHighlightCommand, ClearCellCommand, ClearCellsCommand, ClearFormattingCommand, Client, ClientDisconnectedError, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClientWithColor, ClientWithPosition, ClipboardCell, ClipboardCellData, ClipboardCopyOptions, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, ColorSheetCommand, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CommonPivotCoreDefinition, CompiledFormula, ComposerFocusType, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormatRuleInternal, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CoreViewPlugin, CreateCarouselCommand, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, CreateTableStyleCommand, CriterionFilter, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DataBarRule, DataBarRuleInternal, DataFilterValue, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, DatasetValues, DateCriterionValue, DateIncrementModifier, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteChartCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, DeleteUnfilteredContentCommand, Dependencies, Dimension, DimensionTree, DimensionTreeNode, Direction$1 as Direction, DispatchResult, DivisionByZeroError, DuplicatePivotCommand, DuplicatePivotInNewSheetCommand, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EditionMode, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, ErrorValue, EvalContext, EvaluateCellsCommand, EvaluateChartsCommand, EvaluatedCell, EvaluatedCriterion, EvaluatedDateCriterion, EvaluationError, ExcelChartDataset, ExcelChartDefinition, ExcelChartTrendConfiguration, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelTrendlineType, ExcelWorkbookData, ExpressionRule, Figure, FigureData, FigureInfo, FigureSize, FigureUI, Filter, FilterCriterionType, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GeneratorCell, GenericCriterion, GenericCriterionType, GenericDateCriterion, GenericDefinition, GetSymbolValue, Getters, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image$1 as Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, InsertPivotWithTableCommand, InvalidReferenceError, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, LocalTransportService, Locale, LocaleCode, LocaleFormat, LookupCaches, Matrix, Maybe, MenuMouseEvent, Merge, MinimalClipboardData, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NEXT_VALUE, NewLocalStateUpdateEvent, NotAvailableError, NotContainsTextRule, NotificationType, NumberCell, OSClipboardContent, Offset, OperationSequenceNode, OrderedLayers, PREVIOUS_VALUE, PaintFormat, PaneDivision, ParsedOSClipboardContent, ParsedOsClipboardContentWithImageData, PasteCommand, PasteFromOSClipboardCommand, Pivot, PivotColRowDomain, PivotCollapsedDomains, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotCustomGroup, PivotCustomGroupedField, PivotDimension$1 as PivotDimension, PivotDomain, PivotEmptyCell, PivotField, PivotFields, PivotHeaderCell, PivotMeasure, PivotMeasureDisplay, PivotMeasureDisplayType, PivotMeasureHeaderCell, PivotNode, PivotRuntimeDefinition, PivotSortedColumn, PivotStartPresenceTracking, PivotStopPresenceTracking, PivotStyle, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, PivotTimeAdapterNotNull, PivotValueCell, Pixel, PixelPosition, PopOutChartFromCarouselCommand, Position$1 as Position, PositionDependentCommand, RGBA, Range, RangeAdapter, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangeStringOptions, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand, RenderingBorder, RenderingBox, RenderingGridIcon, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection$1 as Selection, SelectionStep, SetBorderCommand, SetBorderTargetCommand, SetContextualFormatCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetEditingCommand, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplillBlockedError, SplitPivotFormulaCommand, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetClipboardData, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableBorder, TableConfig, TableData$1 as TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, TitleDesign, ToggleCheckboxCommand, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrendConfiguration, TrendType, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UnknownFunctionError, UpdateCarouselActiveItemCommand, UpdateCarouselCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdatePivotCommand, UpdateTableCommand, Validation, ValueAndLabel, ValuesFilter, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, ZoomableChartDefinition, __info__, addFunction, addRenderingLayer, astToFormula, availableConditionalFormatOperators, availableDataValidationOperators, availableFiltersOperators, borderStyles, canExecuteInReadonly, categories, chartHelpers, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, createAutocompleteArgumentsProvider, errorTypes, filterDateCriterionOperators, filterNumberCriterionOperators, filterTextCriterionOperators, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidSubtotalFormulasCommands, 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 };
13663
+ export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AdaptSheetName, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFigureChartToCarouselCommand, AddFunctionDescription, AddMergeCommand, AddNewChartToCarouselCommand, AddPivotCommand, AdjacentEdge, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorOffset, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgProposal, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BadExpressionError, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescrWithOpacity, BorderPosition, BorderStyle, BoundedRange, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelledReason, Carousel, CarouselItem, Cell, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartAxisFormats, ChartColorScale, ChartCreationContext, ChartDatasetOrientation, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartRuntimeGenerationArgs, ChartStyle, ChartType, ChartWithAxisDefinition, ChartWithColorScaleDefinition, ChartWithDataSetDefinition, ChartWithTitleDefinition, CircularDependencyError, CleanClipBoardHighlightCommand, ClearCellCommand, ClearCellsCommand, ClearFormattingCommand, Client, ClientDisconnectedError, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClientWithColor, ClientWithPosition, ClipboardCell, ClipboardCellData, ClipboardCopyOptions, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, ColorSheetCommand, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CommonPivotCoreDefinition, CompiledFormula, ComposerFocusType, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormatRuleInternal, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CoreViewPlugin, CreateCarouselCommand, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, CreateTableStyleCommand, CriterionFilter, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DataBarRule, DataBarRuleInternal, DataFilterValue, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, DatasetValues, DateCriterionValue, DateIncrementModifier, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteChartCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, DeleteUnfilteredContentCommand, Dependencies, Dimension, DimensionTree, DimensionTreeNode, Direction$1 as Direction, DispatchResult, DivisionByZeroError, DuplicateCarouselChartCommand, DuplicatePivotCommand, DuplicatePivotInNewSheetCommand, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EditionMode, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, ErrorValue, EvalContext, EvaluateCellsCommand, EvaluateChartsCommand, EvaluatedCell, EvaluatedCriterion, EvaluatedDateCriterion, EvaluationError, ExcelChartDataset, ExcelChartDefinition, ExcelChartTrendConfiguration, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelTrendlineType, ExcelWorkbookData, ExpressionRule, Figure, FigureData, FigureInfo, FigureSize, FigureUI, Filter, FilterCriterionType, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GeneratorCell, GenericCriterion, GenericCriterionType, GenericDateCriterion, GenericDefinition, GetSymbolValue, Getters, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image$1 as Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, InsertPivotWithTableCommand, InvalidReferenceError, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, LocalTransportService, Locale, LocaleCode, LocaleFormat, LookupCaches, Matrix, Maybe, MenuMouseEvent, Merge, MinimalClipboardData, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NEXT_VALUE, NewLocalStateUpdateEvent, NotAvailableError, NotContainsTextRule, NotificationType, NumberCell, NumberTooLargeError, OSClipboardContent, Offset, OperationSequenceNode, OrderedLayers, PREVIOUS_VALUE, PaintFormat, PaneDivision, ParsedOSClipboardContent, ParsedOsClipboardContentWithImageData, PasteCommand, PasteFromOSClipboardCommand, Pivot, PivotColRowDomain, PivotCollapsedDomains, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotCustomGroup, PivotCustomGroupedField, PivotDimension$1 as PivotDimension, PivotDomain, PivotEmptyCell, PivotField, PivotFields, PivotHeaderCell, PivotMeasure, PivotMeasureDisplay, PivotMeasureDisplayType, PivotMeasureHeaderCell, PivotNode, PivotRuntimeDefinition, PivotSortedColumn, PivotStartPresenceTracking, PivotStopPresenceTracking, PivotStyle, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, PivotTimeAdapterNotNull, PivotValueCell, Pixel, PixelPosition, PopOutChartFromCarouselCommand, Position, PositionDependentCommand, RGBA, Range, RangeAdapter, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangeStringOptions, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand, RenderingBorder, RenderingBox, RenderingGridIcon, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection$1 as Selection, SelectionStep, SetBorderCommand, SetBorderTargetCommand, SetContextualFormatCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, SetZoomCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetEditingCommand, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplillBlockedError, SplitPivotFormulaCommand, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetClipboardData, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableBorder, TableConfig, TableData$1 as TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, TitleDesign, ToggleCheckboxCommand, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrendConfiguration, TrendType, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UnknownFunctionError, UpdateCarouselActiveItemCommand, UpdateCarouselCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdatePivotCommand, UpdateTableCommand, Validation, ValueAndLabel, ValuesFilter, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, ZoomableChartDefinition, __info__, addFunction, addRenderingLayer, astToFormula, availableConditionalFormatOperators, availableDataValidationOperators, availableFiltersOperators, borderStyles, canExecuteInReadonly, categories, chartHelpers, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, createAutocompleteArgumentsProvider, errorTypes, filterDateCriterionOperators, filterNumberCriterionOperators, filterTextCriterionOperators, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidSubtotalFormulasCommands, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, schemeToColorScale, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };