@odoo/o-spreadsheet 19.1.0-alpha.9 → 19.1.1

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: {
@@ -3623,7 +3680,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
3623
3680
  }
3624
3681
 
3625
3682
  declare class EvaluationPlugin extends CoreViewPlugin {
3626
- static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
3683
+ static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositionInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
3627
3684
  private shouldRebuildDependenciesGraph;
3628
3685
  private evaluator;
3629
3686
  private positionsToUpdate;
@@ -3650,6 +3707,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
3650
3707
  getEvaluatedCells(sheetId: UID): EvaluatedCell[];
3651
3708
  getEvaluatedCellsPositions(sheetId: UID): CellPosition[];
3652
3709
  getEvaluatedCellsInZone(sheetId: UID, zone: Zone): EvaluatedCell[];
3710
+ getEvaluatedCellsPositionInZone(sheetId: UID, zone: Zone): [CellPosition, EvaluatedCell][];
3653
3711
  /**
3654
3712
  * Return the spread zone the position is part of, if any
3655
3713
  */
@@ -3657,6 +3715,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
3657
3715
  ignoreSpillError: boolean;
3658
3716
  }): Zone | undefined;
3659
3717
  getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
3718
+ isArrayFormulaSpillBlocked(position: CellPosition): boolean;
3660
3719
  /**
3661
3720
  * Check if a zone only contains empty cells
3662
3721
  */
@@ -3860,6 +3919,7 @@ declare class HeaderSizeUIPlugin extends CoreViewPlugin<HeaderSizeState> impleme
3860
3919
  getRowSize(sheetId: UID, row: HeaderIndex): Pixel;
3861
3920
  getMaxAnchorOffset(sheetId: UID, height: Pixel, width: Pixel): AnchorOffset;
3862
3921
  getHeaderSize(sheetId: UID, dimension: Dimension, index: HeaderIndex): Pixel;
3922
+ private updateRowSizeForZoneChange;
3863
3923
  private updateRowSizeForCellChange;
3864
3924
  private initializeSheet;
3865
3925
  /**
@@ -4023,7 +4083,7 @@ interface Pivot<T = PivotRuntimeDefinition> {
4023
4083
  declare class PivotUIPlugin extends CoreViewPlugin {
4024
4084
  static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula"];
4025
4085
  private pivots;
4026
- private unusedPivots?;
4086
+ private unusedPivotsInFormulas?;
4027
4087
  private custom;
4028
4088
  constructor(config: CoreViewPluginConfig);
4029
4089
  beforeHandle(cmd: Command): void;
@@ -4063,7 +4123,7 @@ declare class PivotUIPlugin extends CoreViewPlugin {
4063
4123
  setupPivot(pivotId: UID, { recreate }?: {
4064
4124
  recreate: boolean;
4065
4125
  }): void;
4066
- _getUnusedPivots(): UID[];
4126
+ private _getUnusedPivotsInFormulas;
4067
4127
  }
4068
4128
 
4069
4129
  /**
@@ -4119,6 +4179,7 @@ interface AutofillData {
4119
4179
  row: number;
4120
4180
  sheetId: UID;
4121
4181
  border?: Border$1;
4182
+ style?: Style;
4122
4183
  }
4123
4184
  interface AutofillResult {
4124
4185
  cellData: AutofillCellData;
@@ -4232,13 +4293,13 @@ declare class AutofillPlugin extends UIPlugin {
4232
4293
  }
4233
4294
 
4234
4295
  interface AutomaticSum {
4235
- position: Position$1;
4296
+ position: Position;
4236
4297
  zone: Zone;
4237
4298
  }
4238
4299
  declare class AutomaticSumPlugin extends UIPlugin {
4239
4300
  static getters: readonly ["getAutomaticSums"];
4240
4301
  handle(cmd: Command): void;
4241
- getAutomaticSums(sheetId: UID, zone: Zone, anchor: Position$1): AutomaticSum[];
4302
+ getAutomaticSums(sheetId: UID, zone: Zone, anchor: Position): AutomaticSum[];
4242
4303
  private sumData;
4243
4304
  private sumAdjacentData;
4244
4305
  /**
@@ -4337,8 +4398,8 @@ declare class CellComputedStylePlugin extends UIPlugin {
4337
4398
  handle(cmd: Command): void;
4338
4399
  getCellComputedBorder(position: CellPosition, precomputeZone?: Zone): Border$1 | null;
4339
4400
  private precomputeCellBorders;
4340
- getCellComputedStyle(position: CellPosition): Style;
4341
- private computeCellStyle;
4401
+ getCellComputedStyle(position: CellPosition, precomputeZone?: Zone): Style;
4402
+ private precomputeCellStyle;
4342
4403
  }
4343
4404
 
4344
4405
  declare class CheckboxTogglePlugin extends UIPlugin {
@@ -4520,11 +4581,12 @@ declare class SubtotalEvaluationPlugin extends UIPlugin {
4520
4581
  }
4521
4582
 
4522
4583
  declare class TableComputedStylePlugin extends UIPlugin {
4523
- static getters: readonly ["getCellTableStyle", "getCellTableBorder", "getCellTableBorderZone"];
4584
+ static getters: readonly ["getCellTableStyle", "getCellTableBorder", "getCellTableBorderZone", "getCellTableStyleZone"];
4524
4585
  private tableStyles;
4525
4586
  handle(cmd: Command): void;
4526
4587
  finalize(): void;
4527
4588
  getCellTableStyle(position: CellPosition): Style | undefined;
4589
+ getCellTableStyleZone(sheetId: UID, zone: Zone): PositionMap<Style>;
4528
4590
  getCellTableBorder(position: CellPosition): Border$1 | undefined;
4529
4591
  getCellTableBorderZone(sheetId: UID, zone: Zone): PositionMap<Border$1>;
4530
4592
  private computeTableStyle;
@@ -4548,12 +4610,16 @@ declare class UIOptionsPlugin extends UIPlugin {
4548
4610
  }
4549
4611
 
4550
4612
  declare class SheetUIPlugin extends UIPlugin {
4551
- static getters: readonly ["getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getContiguousZone", "computeTextYCoordinate"];
4613
+ static getters: readonly ["getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getMultilineTextSize", "getContiguousZone", "computeTextYCoordinate"];
4552
4614
  private ctx;
4553
4615
  allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
4554
4616
  handle(cmd: Command): void;
4555
4617
  getCellWidth(position: CellPosition): number;
4556
4618
  getTextWidth(text: string, style: Style): Pixel;
4619
+ getMultilineTextSize(text: string[], style: Style): {
4620
+ width: number;
4621
+ height: number;
4622
+ };
4557
4623
  getCellText(position: CellPosition, args?: {
4558
4624
  showFormula?: boolean;
4559
4625
  availableWidth?: number;
@@ -4608,6 +4674,7 @@ declare class CarouselUIPlugin extends UIPlugin {
4608
4674
  private fixWrongCarouselState;
4609
4675
  private addNewChartToCarousel;
4610
4676
  private addFigureChartToCarousel;
4677
+ private duplicateCarouselChart;
4611
4678
  private getCarouselItemId;
4612
4679
  }
4613
4680
 
@@ -4840,7 +4907,7 @@ declare class InternalViewport {
4840
4907
  * the pane that is actually displayed on the client. We therefore adjust the offset of the pane
4841
4908
  * until it contains the cell completely.
4842
4909
  */
4843
- adjustPosition(position: Position$1): void;
4910
+ adjustPosition(position: Position): void;
4844
4911
  private adjustPositionX;
4845
4912
  private adjustPositionY;
4846
4913
  willNewOffsetScrollViewport(offsetX: Pixel, offsetY: Pixel): boolean;
@@ -4924,7 +4991,7 @@ declare class InternalViewport {
4924
4991
  *
4925
4992
  */
4926
4993
  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"];
4994
+ 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
4995
  private viewports;
4929
4996
  /**
4930
4997
  * The viewport dimensions are usually set by one of the components
@@ -4936,6 +5003,7 @@ declare class SheetViewPlugin extends UIPlugin {
4936
5003
  private sheetViewHeight;
4937
5004
  private gridOffsetX;
4938
5005
  private gridOffsetY;
5006
+ private zoomLevel;
4939
5007
  private sheetsWithDirtyViewports;
4940
5008
  private shouldAdjustViewports;
4941
5009
  allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
@@ -4975,18 +5043,26 @@ declare class SheetViewPlugin extends UIPlugin {
4975
5043
  * Return the main viewport maximum size relative to the client size.
4976
5044
  */
4977
5045
  getMainViewportRect(): Rect;
4978
- private getMaximumSheetOffset;
5046
+ getMaximumSheetOffset(): {
5047
+ maxOffsetX: Pixel;
5048
+ maxOffsetY: Pixel;
5049
+ };
4979
5050
  getColRowOffsetInViewport(dimension: Dimension, referenceHeaderIndex: HeaderIndex, targetHeaderIndex: HeaderIndex): Pixel;
4980
5051
  /**
4981
5052
  * Check if a given position is visible in the viewport.
4982
5053
  */
4983
5054
  isVisibleInViewport({ sheetId, col, row }: CellPosition): boolean;
5055
+ getScrollBarWidth(): Pixel;
4984
5056
  getEdgeScrollCol(x: number, previousX: number, startingX: number): EdgeScrollInfo;
4985
5057
  getEdgeScrollRow(y: number, previousY: number, startingY: number): EdgeScrollInfo;
4986
5058
  /**
4987
5059
  * Computes the coordinates and size to draw the zone on the canvas
4988
5060
  */
4989
5061
  getVisibleRect(zone: Zone): Rect;
5062
+ /**
5063
+ * Computes the coordinates and size to draw the zone on the canvas after it has been zoomed
5064
+ */
5065
+ getVisibleRectWithZoom(zone: Zone): Rect;
4990
5066
  /**
4991
5067
  * Computes the coordinates and size to draw the zone without taking the grid offset into account
4992
5068
  */
@@ -5021,6 +5097,7 @@ declare class SheetViewPlugin extends UIPlugin {
5021
5097
  zone: Zone;
5022
5098
  rect: Rect;
5023
5099
  }[];
5100
+ getViewportZoomLevel(): number;
5024
5101
  private ensureMainViewportExist;
5025
5102
  private getSubViewports;
5026
5103
  private checkPositiveDimension;
@@ -5241,6 +5318,8 @@ type Rect = DOMCoordinates & DOMDimension;
5241
5318
  interface BoxTextContent {
5242
5319
  textLines: string[];
5243
5320
  width: Pixel;
5321
+ textHeight: Pixel;
5322
+ textWidth: Pixel;
5244
5323
  align: Align;
5245
5324
  fontSizePx: number;
5246
5325
  x: Pixel;
@@ -5500,13 +5579,13 @@ interface ZoneDependentCommand {
5500
5579
  zone: Zone;
5501
5580
  }
5502
5581
  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">;
5582
+ 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">;
5583
+ 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">;
5584
+ 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">;
5585
+ 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">;
5586
+ 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">;
5587
+ 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">;
5588
+ 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
5589
  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
5590
  declare function isCoreCommand(cmd: Command): cmd is CoreCommand;
5512
5591
  declare function canExecuteInReadonly(cmd: Command): boolean;
@@ -5708,6 +5787,12 @@ interface AddFigureChartToCarouselCommand extends SheetDependentCommand {
5708
5787
  carouselFigureId: UID;
5709
5788
  chartFigureId: UID;
5710
5789
  }
5790
+ interface DuplicateCarouselChartCommand extends SheetDependentCommand {
5791
+ type: "DUPLICATE_CAROUSEL_CHART";
5792
+ carouselId: UID;
5793
+ chartId: UID;
5794
+ duplicatedChartId: UID;
5795
+ }
5711
5796
  interface UpdateCarouselActiveItemCommand extends SheetDependentCommand {
5712
5797
  type: "UPDATE_CAROUSEL_ACTIVE_ITEM";
5713
5798
  figureId: UID;
@@ -6029,6 +6114,10 @@ interface SetViewportOffsetCommand {
6029
6114
  offsetX: Pixel;
6030
6115
  offsetY: Pixel;
6031
6116
  }
6117
+ interface SetZoomCommand {
6118
+ type: "SET_ZOOM";
6119
+ zoom: number;
6120
+ }
6032
6121
  /**
6033
6122
  * Shift the viewport down by the viewport height
6034
6123
  */
@@ -6147,7 +6236,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | ClearCellsCom
6147
6236
  | UpdateLocaleCommand
6148
6237
  /** PIVOT */
6149
6238
  | 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;
6239
+ 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
6240
  type Command = CoreCommand | LocalCommand;
6152
6241
  /**
6153
6242
  * Holds the result of a command dispatch.
@@ -6288,6 +6377,7 @@ declare const enum CommandResult {
6288
6377
  SheetIsHidden = "SheetIsHidden",
6289
6378
  InvalidTableResize = "InvalidTableResize",
6290
6379
  PivotIdNotFound = "PivotIdNotFound",
6380
+ PivotIdTaken = "PivotIdTaken",
6291
6381
  PivotInError = "PivotInError",
6292
6382
  EmptyName = "EmptyName",
6293
6383
  ValueCellIsInvalidFormula = "ValueCellIsInvalidFormula",
@@ -6372,7 +6462,7 @@ interface Zone {
6372
6462
  }
6373
6463
  interface AnchorZone {
6374
6464
  zone: Zone;
6375
- cell: Position$1;
6465
+ cell: Position;
6376
6466
  }
6377
6467
  interface Selection$1 {
6378
6468
  anchor: AnchorZone;
@@ -6415,6 +6505,7 @@ interface Style {
6415
6505
  fillColor?: Color;
6416
6506
  textColor?: Color;
6417
6507
  fontSize?: number;
6508
+ rotation?: number;
6418
6509
  }
6419
6510
  interface DataBarFill {
6420
6511
  color: Color;
@@ -6506,7 +6597,7 @@ interface HeaderDimensions {
6506
6597
  interface Row {
6507
6598
  cells: Record<number, UID | undefined>;
6508
6599
  }
6509
- interface Position$1 {
6600
+ interface Position {
6510
6601
  col: HeaderIndex;
6511
6602
  row: HeaderIndex;
6512
6603
  }
@@ -6646,8 +6737,8 @@ interface BarChartDefinition extends CommonChartDefinition {
6646
6737
  readonly zoomable?: boolean;
6647
6738
  }
6648
6739
  type BarChartRuntime = {
6649
- chartJsConfig: ChartConfiguration;
6650
- masterChartConfig?: ChartConfiguration;
6740
+ chartJsConfig: ChartConfiguration<"bar" | "line">;
6741
+ masterChartConfig?: ChartConfiguration<"bar">;
6651
6742
  background: Color;
6652
6743
  };
6653
6744
 
@@ -6703,7 +6794,6 @@ type ScorecardChartConfig = {
6703
6794
 
6704
6795
  declare global {
6705
6796
  interface Window {
6706
- Chart: typeof chart_js & typeof chart_js.Chart;
6707
6797
  ChartGeo: typeof ChartGeo;
6708
6798
  }
6709
6799
  }
@@ -6721,8 +6811,9 @@ declare module "chart.js" {
6721
6811
  }
6722
6812
 
6723
6813
  interface ChartShowValuesPluginOptions {
6814
+ type: ChartType;
6724
6815
  showValues: boolean;
6725
- background?: Color;
6816
+ background: (value: number | string, dataset: ChartMeta, index: number) => Color | undefined;
6726
6817
  horizontal?: boolean;
6727
6818
  callback: (value: number | string, dataset: ChartMeta, index: number) => string;
6728
6819
  }
@@ -6732,6 +6823,20 @@ declare module "chart.js" {
6732
6823
  }
6733
6824
  }
6734
6825
 
6826
+ interface ChartColorScalePluginOptions {
6827
+ position: "left" | "right" | "none";
6828
+ colorScale: Color[];
6829
+ fontColor?: Color;
6830
+ minValue: number;
6831
+ maxValue: number;
6832
+ locale: Locale;
6833
+ }
6834
+ declare module "chart.js" {
6835
+ interface PluginOptionsByType<TType extends ChartType$1> {
6836
+ chartColorScalePlugin?: ChartColorScalePluginOptions;
6837
+ }
6838
+ }
6839
+
6735
6840
  interface MigrationStep {
6736
6841
  migrate: (data: any) => any;
6737
6842
  }
@@ -6749,12 +6854,13 @@ type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields:
6749
6854
  interface PivotRegistryItem {
6750
6855
  ui: PivotUIConstructor;
6751
6856
  definition: PivotDefinitionConstructor;
6752
- externalData: boolean;
6753
6857
  dateGranularities: string[];
6754
6858
  datetimeGranularities: string[];
6755
6859
  isMeasureCandidate: (field: PivotField) => boolean;
6756
6860
  isGroupable: (field: PivotField) => boolean;
6757
6861
  canHaveCustomGroup: (field: PivotField) => boolean;
6862
+ isPivotUnused: (getters: Getters, pivotId: UID) => boolean;
6863
+ adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
6758
6864
  }
6759
6865
 
6760
6866
  declare class ClipboardHandler<T> {
@@ -6978,6 +7084,18 @@ declare class ColorGenerator {
6978
7084
  constructor(paletteSize: number, preferredColors?: (Color | undefined | null)[]);
6979
7085
  next(): string;
6980
7086
  }
7087
+ declare const COLORSCHEMES: {
7088
+ readonly greys: readonly ["#ffffff", "#808080", "#000000"];
7089
+ readonly blues: readonly ["#f7fbff", "#6aaed6", "#08306b"];
7090
+ readonly reds: readonly ["#fff5f0", "#fb694a", "#67000d"];
7091
+ readonly greens: readonly ["#f7fcf5", "#73c476", "#00441b"];
7092
+ readonly oranges: readonly ["#fff5eb", "#fd8c3b", "#7f2704"];
7093
+ readonly purples: readonly ["#fcfbfd", "#9e9ac8", "#3f007d"];
7094
+ readonly viridis: readonly ["#440154", "#21918c", "#fde725"];
7095
+ readonly cividis: readonly ["#00224e", "#7d7c78", "#fee838"];
7096
+ readonly rainbow: readonly ["#B41DB4", "#FFFF00", "#00FFFF"];
7097
+ };
7098
+ type ColorScale = keyof typeof COLORSCHEMES;
6981
7099
 
6982
7100
  /**
6983
7101
  * Convert a (col) number to the corresponding letter.
@@ -6999,7 +7117,7 @@ declare function lettersToNumber(letters: string): number;
6999
7117
  *
7000
7118
  * Note: it also accepts lowercase coordinates, but not fixed references
7001
7119
  */
7002
- declare function toCartesian(xc: string): Position$1;
7120
+ declare function toCartesian(xc: string): Position;
7003
7121
  /**
7004
7122
  * Convert from cartesian coordinate to the "XC" coordinate system.
7005
7123
  *
@@ -7042,6 +7160,8 @@ declare class DateTime {
7042
7160
  setSeconds(seconds: number): number;
7043
7161
  }
7044
7162
  declare function isDateTime(str: string, locale: Locale): boolean;
7163
+ declare function numberToJsDate(value: number): DateTime;
7164
+ declare function jsDateToNumber(date: DateTime): number;
7045
7165
 
7046
7166
  interface FormatWidth {
7047
7167
  availableWidth: number;
@@ -7055,7 +7175,7 @@ declare function formatValue(value: CellValue, { format, locale, formatWidth }:
7055
7175
  }): FormattedValue;
7056
7176
  declare function createCurrencyFormat(currency: Partial<Currency>): Format;
7057
7177
 
7058
- declare function computeTextWidth(context: Canvas2DContext, text: string, style: Style, fontUnit?: "px" | "pt"): number;
7178
+ declare function computeTextWidth(context: Canvas2DContext, text: string, style?: Style, fontUnit?: "px" | "pt"): number;
7059
7179
 
7060
7180
  /**
7061
7181
  * Convert from a cartesian reference to a (possibly unbounded) Zone
@@ -7104,13 +7224,13 @@ declare function union(...zones: Zone[]): Zone;
7104
7224
  * Return true if two zones overlap, false otherwise.
7105
7225
  */
7106
7226
  declare function overlap(z1: UnboundedZone, z2: UnboundedZone): boolean;
7107
- declare function isInside(col: number, row: number, zone: Zone): boolean;
7227
+ declare function isInside(col: number, row: number, zone: UnboundedZone): boolean;
7108
7228
  /**
7109
7229
  * This function will compare the modifications of selection to determine
7110
7230
  * a cell that is part of the new zone and not the previous one.
7111
7231
  */
7112
- declare function findCellInNewZone(oldZone: Zone, currentZone: Zone): Position$1;
7113
- declare function positionToZone(position: Position$1): Zone;
7232
+ declare function findCellInNewZone(oldZone: Zone, currentZone: Zone): Position;
7233
+ declare function positionToZone(position: Position): Zone;
7114
7234
  /**
7115
7235
  * Merge contiguous and overlapping zones that are in the array into bigger zones
7116
7236
  */
@@ -7165,7 +7285,7 @@ interface ChartBuilder {
7165
7285
  dataSeriesLimit?: number;
7166
7286
  }
7167
7287
 
7168
- interface Props$1t {
7288
+ interface Props$1d {
7169
7289
  label?: string;
7170
7290
  value: boolean;
7171
7291
  className?: string;
@@ -7174,7 +7294,7 @@ interface Props$1t {
7174
7294
  disabled?: boolean;
7175
7295
  onChange: (value: boolean) => void;
7176
7296
  }
7177
- declare class Checkbox extends Component<Props$1t, SpreadsheetChildEnv> {
7297
+ declare class Checkbox extends Component<Props$1d, SpreadsheetChildEnv> {
7178
7298
  static template: string;
7179
7299
  static props: {
7180
7300
  label: {
@@ -7209,10 +7329,10 @@ declare class Checkbox extends Component<Props$1t, SpreadsheetChildEnv> {
7209
7329
  onChange(ev: InputEvent): void;
7210
7330
  }
7211
7331
 
7212
- interface Props$1s {
7332
+ interface Props$1c {
7213
7333
  class?: string;
7214
7334
  }
7215
- declare class Section extends Component<Props$1s, SpreadsheetChildEnv> {
7335
+ declare class Section extends Component<Props$1c, SpreadsheetChildEnv> {
7216
7336
  static template: string;
7217
7337
  static props: {
7218
7338
  class: {
@@ -7227,6 +7347,13 @@ declare class Section extends Component<Props$1s, SpreadsheetChildEnv> {
7227
7347
  };
7228
7348
  }
7229
7349
 
7350
+ interface ChartSidePanelProps<T extends ChartDefinition> {
7351
+ chartId: UID;
7352
+ definition: T;
7353
+ canUpdateChart: (chartId: UID, definition: Partial<T>) => DispatchResult;
7354
+ updateChart: (chartId: UID, definition: Partial<T>) => DispatchResult;
7355
+ }
7356
+
7230
7357
  interface StoreUpdateEvent {
7231
7358
  type: "store-updated";
7232
7359
  }
@@ -7406,10 +7533,11 @@ declare class SelectionInputStore extends SpreadsheetStore {
7406
7533
  getIndex(rangeId: number | null): number | null;
7407
7534
  }
7408
7535
 
7409
- interface Props$1r {
7536
+ interface Props$1b {
7410
7537
  ranges: string[];
7411
7538
  hasSingleRange?: boolean;
7412
7539
  required?: boolean;
7540
+ autofocus?: boolean;
7413
7541
  isInvalid?: boolean;
7414
7542
  class?: string;
7415
7543
  onSelectionChanged?: (ranges: string[]) => void;
@@ -7434,7 +7562,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
7434
7562
  * onSelectionChanged is called every time the input value
7435
7563
  * changes.
7436
7564
  */
7437
- declare class SelectionInput extends Component<Props$1r, SpreadsheetChildEnv> {
7565
+ declare class SelectionInput extends Component<Props$1b, SpreadsheetChildEnv> {
7438
7566
  static template: string;
7439
7567
  static props: {
7440
7568
  ranges: ArrayConstructor;
@@ -7446,6 +7574,10 @@ declare class SelectionInput extends Component<Props$1r, SpreadsheetChildEnv> {
7446
7574
  type: BooleanConstructor;
7447
7575
  optional: boolean;
7448
7576
  };
7577
+ autofocus: {
7578
+ type: BooleanConstructor;
7579
+ optional: boolean;
7580
+ };
7449
7581
  isInvalid: {
7450
7582
  type: BooleanConstructor;
7451
7583
  optional: boolean;
@@ -7511,7 +7643,7 @@ declare class SelectionInput extends Component<Props$1r, SpreadsheetChildEnv> {
7511
7643
  confirm(): void;
7512
7644
  }
7513
7645
 
7514
- interface Props$1q {
7646
+ interface Props$1a {
7515
7647
  ranges: CustomizedDataSet[];
7516
7648
  hasSingleRange?: boolean;
7517
7649
  onSelectionChanged: (ranges: string[]) => void;
@@ -7524,7 +7656,7 @@ interface Props$1q {
7524
7656
  canChangeDatasetOrientation?: boolean;
7525
7657
  onFlipAxis?: (structure: string) => void;
7526
7658
  }
7527
- declare class ChartDataSeries extends Component<Props$1q, SpreadsheetChildEnv> {
7659
+ declare class ChartDataSeries extends Component<Props$1a, SpreadsheetChildEnv> {
7528
7660
  static template: string;
7529
7661
  static components: {
7530
7662
  SelectionInput: typeof SelectionInput;
@@ -7573,12 +7705,12 @@ declare class ChartDataSeries extends Component<Props$1q, SpreadsheetChildEnv> {
7573
7705
  get title(): string;
7574
7706
  }
7575
7707
 
7576
- interface Props$1p {
7708
+ interface Props$19 {
7577
7709
  messages: string[];
7578
7710
  msgType: "warning" | "error" | "info";
7579
7711
  singleBox?: boolean;
7580
7712
  }
7581
- declare class ValidationMessages extends Component<Props$1p, SpreadsheetChildEnv> {
7713
+ declare class ValidationMessages extends Component<Props$19, SpreadsheetChildEnv> {
7582
7714
  static template: string;
7583
7715
  static props: {
7584
7716
  messages: ArrayConstructor;
@@ -7592,10 +7724,10 @@ declare class ValidationMessages extends Component<Props$1p, SpreadsheetChildEnv
7592
7724
  get alertBoxes(): string[][];
7593
7725
  }
7594
7726
 
7595
- interface Props$1o {
7727
+ interface Props$18 {
7596
7728
  messages: string[];
7597
7729
  }
7598
- declare class ChartErrorSection extends Component<Props$1o, SpreadsheetChildEnv> {
7730
+ declare class ChartErrorSection extends Component<Props$18, SpreadsheetChildEnv> {
7599
7731
  static template: string;
7600
7732
  static components: {
7601
7733
  Section: typeof Section;
@@ -7609,7 +7741,7 @@ declare class ChartErrorSection extends Component<Props$1o, SpreadsheetChildEnv>
7609
7741
  };
7610
7742
  }
7611
7743
 
7612
- interface Props$1n {
7744
+ interface Props$17 {
7613
7745
  title?: string;
7614
7746
  range: string;
7615
7747
  isInvalid: boolean;
@@ -7622,7 +7754,7 @@ interface Props$1n {
7622
7754
  onChange: (value: boolean) => void;
7623
7755
  }>;
7624
7756
  }
7625
- declare class ChartLabelRange extends Component<Props$1n, SpreadsheetChildEnv> {
7757
+ declare class ChartLabelRange extends Component<Props$17, SpreadsheetChildEnv> {
7626
7758
  static template: string;
7627
7759
  static components: {
7628
7760
  SelectionInput: typeof SelectionInput;
@@ -7643,20 +7775,14 @@ declare class ChartLabelRange extends Component<Props$1n, SpreadsheetChildEnv> {
7643
7775
  optional: boolean;
7644
7776
  };
7645
7777
  };
7646
- static defaultProps: Partial<Props$1n>;
7778
+ static defaultProps: Partial<Props$17>;
7647
7779
  }
7648
7780
 
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
7781
  interface ChartPanelState {
7656
7782
  datasetDispatchResult?: DispatchResult;
7657
7783
  labelsDispatchResult?: DispatchResult;
7658
7784
  }
7659
- declare class GenericChartConfigPanel extends Component<Props$1m, SpreadsheetChildEnv> {
7785
+ declare class GenericChartConfigPanel<P extends ChartSidePanelProps<ChartWithDataSetDefinition> = ChartSidePanelProps<ChartWithDataSetDefinition>> extends Component<P, SpreadsheetChildEnv> {
7660
7786
  static template: string;
7661
7787
  static components: {
7662
7788
  ChartDataSeries: typeof ChartDataSeries;
@@ -7668,8 +7794,8 @@ declare class GenericChartConfigPanel extends Component<Props$1m, SpreadsheetChi
7668
7794
  static props: {
7669
7795
  chartId: StringConstructor;
7670
7796
  definition: ObjectConstructor;
7671
- updateChart: FunctionConstructor;
7672
7797
  canUpdateChart: FunctionConstructor;
7798
+ updateChart: FunctionConstructor;
7673
7799
  };
7674
7800
  protected state: ChartPanelState;
7675
7801
  protected dataSets: CustomizedDataSet[];
@@ -7677,9 +7803,7 @@ declare class GenericChartConfigPanel extends Component<Props$1m, SpreadsheetChi
7677
7803
  private datasetOrientation;
7678
7804
  protected chartTerms: {
7679
7805
  [key: string]: any;
7680
- GeoChart: {
7681
- ColorScales: Record<Extract<GeoChartColorScale, string>, string>;
7682
- };
7806
+ ColorScales: Record<Extract<ChartColorScale, string>, string>;
7683
7807
  };
7684
7808
  setup(): void;
7685
7809
  get errorMessages(): string[];
@@ -7725,11 +7849,11 @@ declare class BarConfigPanel extends GenericChartConfigPanel {
7725
7849
  onUpdateStacked(stacked: boolean): void;
7726
7850
  }
7727
7851
 
7728
- interface Props$1l {
7852
+ interface Props$16 {
7729
7853
  isCollapsed: boolean;
7730
7854
  slots: any;
7731
7855
  }
7732
- declare class Collapse extends Component<Props$1l, SpreadsheetChildEnv> {
7856
+ declare class Collapse extends Component<Props$16, SpreadsheetChildEnv> {
7733
7857
  static template: string;
7734
7858
  static props: {
7735
7859
  isCollapsed: BooleanConstructor;
@@ -7768,12 +7892,12 @@ interface Choice$1 {
7768
7892
  value: string;
7769
7893
  label: string;
7770
7894
  }
7771
- interface Props$1k {
7895
+ interface Props$15 {
7772
7896
  choices: Choice$1[];
7773
7897
  onChange: (value: string) => void;
7774
7898
  selectedValue: string;
7775
7899
  }
7776
- declare class BadgeSelection extends Component<Props$1k, SpreadsheetChildEnv> {
7900
+ declare class BadgeSelection extends Component<Props$15, SpreadsheetChildEnv> {
7777
7901
  static template: string;
7778
7902
  static props: {
7779
7903
  choices: ArrayConstructor;
@@ -7829,14 +7953,19 @@ declare class GenericInput<T extends GenericInputProps> extends Component<T, Spr
7829
7953
  onMouseUp(ev: MouseEvent): void;
7830
7954
  }
7831
7955
 
7832
- interface Props$1j extends GenericInputProps {
7956
+ interface Props$14 extends GenericInputProps {
7833
7957
  alwaysShowBorder?: boolean;
7834
7958
  value: string;
7959
+ errorMessage?: string;
7835
7960
  }
7836
- declare class TextInput extends GenericInput<Props$1j> {
7961
+ declare class TextInput extends GenericInput<Props$14> {
7837
7962
  static template: string;
7838
7963
  static components: {};
7839
7964
  static props: {
7965
+ errorMessage: {
7966
+ type: StringConstructor;
7967
+ optional: boolean;
7968
+ };
7840
7969
  value: (StringConstructor | NumberConstructor)[];
7841
7970
  onChange: FunctionConstructor;
7842
7971
  class: {
@@ -7867,14 +7996,14 @@ declare class TextInput extends GenericInput<Props$1j> {
7867
7996
  get inputClass(): string;
7868
7997
  }
7869
7998
 
7870
- interface Props$1i {
7999
+ interface Props$13 {
7871
8000
  action: ActionSpec;
7872
8001
  hasTriangleDownIcon?: boolean;
7873
8002
  selectedColor?: string;
7874
8003
  class?: string;
7875
8004
  onClick?: (ev: MouseEvent) => void;
7876
8005
  }
7877
- declare class ActionButton extends Component<Props$1i, SpreadsheetChildEnv> {
8006
+ declare class ActionButton extends Component<Props$13, SpreadsheetChildEnv> {
7878
8007
  static template: string;
7879
8008
  static props: {
7880
8009
  action: ObjectConstructor;
@@ -8040,7 +8169,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
8040
8169
  isSameColor(color1: Color, color2: Color): boolean;
8041
8170
  }
8042
8171
 
8043
- interface Props$1h {
8172
+ interface Props$12 {
8044
8173
  currentColor: string | undefined;
8045
8174
  toggleColorPicker: () => void;
8046
8175
  showColorPicker: boolean;
@@ -8051,7 +8180,7 @@ interface Props$1h {
8051
8180
  dropdownMaxHeight?: Pixel;
8052
8181
  class?: string;
8053
8182
  }
8054
- declare class ColorPickerWidget extends Component<Props$1h, SpreadsheetChildEnv> {
8183
+ declare class ColorPickerWidget extends Component<Props$12, SpreadsheetChildEnv> {
8055
8184
  static template: string;
8056
8185
  static props: {
8057
8186
  currentColor: {
@@ -8094,7 +8223,7 @@ declare class DelayedHoveredCellStore extends SpreadsheetStore {
8094
8223
  col: number | undefined;
8095
8224
  row: number | undefined;
8096
8225
  handle(cmd: Command): void;
8097
- hover(position: Partial<Position$1>): "noStateChange" | undefined;
8226
+ hover(position: Partial<Position>): "noStateChange" | undefined;
8098
8227
  clear(): "noStateChange" | undefined;
8099
8228
  }
8100
8229
 
@@ -8103,7 +8232,7 @@ declare class CellPopoverStore extends SpreadsheetStore {
8103
8232
  private persistentPopover?;
8104
8233
  protected hoveredCell: CQS<Pick<DelayedHoveredCellStore, "clear" | "hover"> & OmitFunctions<DelayedHoveredCellStore>>;
8105
8234
  handle(cmd: Command): void;
8106
- open({ col, row }: Position$1, type: CellPopoverType): void;
8235
+ open({ col, row }: Position, type: CellPopoverType): void;
8107
8236
  close(): "noStateChange" | undefined;
8108
8237
  get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
8109
8238
  get isOpen(): boolean;
@@ -8114,18 +8243,23 @@ declare class CellPopoverStore extends SpreadsheetStore {
8114
8243
  interface State$5 {
8115
8244
  isOpen: boolean;
8116
8245
  }
8117
- interface Props$1g {
8118
- currentFontSize: number;
8246
+ interface Props$11 {
8247
+ currentValue: number;
8119
8248
  class: string;
8120
- onFontSizeChanged: (fontSize: number) => void;
8249
+ onValueChange: (fontSize: number) => void;
8121
8250
  onToggle?: () => void;
8122
8251
  onFocusInput?: () => void;
8252
+ valueIcon?: String;
8253
+ min: number;
8254
+ max: number;
8255
+ title: String;
8256
+ valueList: number[];
8123
8257
  }
8124
- declare class FontSizeEditor extends Component<Props$1g, SpreadsheetChildEnv> {
8258
+ declare class NumberEditor extends Component<Props$11, SpreadsheetChildEnv> {
8125
8259
  static template: string;
8126
8260
  static props: {
8127
- currentFontSize: NumberConstructor;
8128
- onFontSizeChanged: FunctionConstructor;
8261
+ currentValue: NumberConstructor;
8262
+ onValueChange: FunctionConstructor;
8129
8263
  onToggle: {
8130
8264
  type: FunctionConstructor;
8131
8265
  optional: boolean;
@@ -8135,6 +8269,29 @@ declare class FontSizeEditor extends Component<Props$1g, SpreadsheetChildEnv> {
8135
8269
  optional: boolean;
8136
8270
  };
8137
8271
  class: StringConstructor;
8272
+ valueIcon: {
8273
+ type: StringConstructor;
8274
+ optional: boolean;
8275
+ };
8276
+ min: NumberConstructor;
8277
+ max: NumberConstructor;
8278
+ title: StringConstructor;
8279
+ valueList: {
8280
+ (arrayLength: number): Number[];
8281
+ (...items: Number[]): Number[];
8282
+ new (arrayLength: number): Number[];
8283
+ new (...items: Number[]): Number[];
8284
+ isArray(arg: any): arg is any[];
8285
+ readonly prototype: any[];
8286
+ from<T>(arrayLike: ArrayLike<T>): T[];
8287
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
8288
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
8289
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
8290
+ of<T>(...items: T[]): T[];
8291
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
8292
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
8293
+ readonly [Symbol.species]: ArrayConstructor;
8294
+ };
8138
8295
  };
8139
8296
  static defaultProps: {
8140
8297
  onFocusInput: () => void;
@@ -8142,24 +8299,56 @@ declare class FontSizeEditor extends Component<Props$1g, SpreadsheetChildEnv> {
8142
8299
  static components: {
8143
8300
  Popover: typeof Popover;
8144
8301
  };
8145
- fontSizes: number[];
8146
8302
  dropdown: State$5;
8147
8303
  private inputRef;
8148
8304
  private rootEditorRef;
8149
- private fontSizeListRef;
8305
+ private valueListRef;
8306
+ private DOMFocusableElementStore;
8150
8307
  setup(): void;
8151
8308
  get popoverProps(): PopoverProps;
8152
8309
  onExternalClick(ev: MouseEvent): void;
8153
- toggleFontList(): void;
8154
- closeFontList(): void;
8155
- private setSize;
8156
- setSizeFromInput(ev: InputEvent): void;
8157
- setSizeFromList(fontSizeStr: string): void;
8310
+ toggleList(): void;
8311
+ closeList(): void;
8312
+ private setValue;
8313
+ setValueFromInput(ev: InputEvent): void;
8314
+ setValueFromList(valueStr: string): void;
8315
+ get currentValue(): string;
8158
8316
  onInputFocused(ev: InputEvent): void;
8159
8317
  onInputKeydown(ev: KeyboardEvent): void;
8160
8318
  }
8161
8319
 
8162
- interface Props$1f {
8320
+ interface Props$10 {
8321
+ currentFontSize: number;
8322
+ class: string;
8323
+ onFontSizeChanged: (fontSize: number) => void;
8324
+ onToggle?: () => void;
8325
+ onFocusInput?: () => void;
8326
+ }
8327
+ declare class FontSizeEditor extends Component<Props$10, SpreadsheetChildEnv> {
8328
+ static template: string;
8329
+ static components: {
8330
+ NumberEditor: typeof NumberEditor;
8331
+ };
8332
+ static props: {
8333
+ currentFontSize: NumberConstructor;
8334
+ onFontSizeChanged: FunctionConstructor;
8335
+ onToggle: {
8336
+ type: FunctionConstructor;
8337
+ optional: boolean;
8338
+ };
8339
+ onFocusInput: {
8340
+ type: FunctionConstructor;
8341
+ optional: boolean;
8342
+ };
8343
+ class: StringConstructor;
8344
+ };
8345
+ static defaultProps: {
8346
+ onFocusInput: () => void;
8347
+ };
8348
+ fontSizes: number[];
8349
+ }
8350
+
8351
+ interface Props$$ {
8163
8352
  class?: string;
8164
8353
  style: ChartStyle;
8165
8354
  updateStyle: (style: ChartStyle) => void;
@@ -8168,7 +8357,7 @@ interface Props$1f {
8168
8357
  hasHorizontalAlign?: boolean;
8169
8358
  hasBackgroundColor?: boolean;
8170
8359
  }
8171
- declare class TextStyler extends Component<Props$1f, SpreadsheetChildEnv> {
8360
+ declare class TextStyler extends Component<Props$$, SpreadsheetChildEnv> {
8172
8361
  static template: string;
8173
8362
  static components: {
8174
8363
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -8236,7 +8425,7 @@ declare class TextStyler extends Component<Props$1f, SpreadsheetChildEnv> {
8236
8425
  get verticalAlignActions(): ActionSpec[];
8237
8426
  }
8238
8427
 
8239
- interface Props$1e {
8428
+ interface Props$_ {
8240
8429
  title?: string;
8241
8430
  placeholder?: string;
8242
8431
  updateTitle: (title: string) => void;
@@ -8245,7 +8434,7 @@ interface Props$1e {
8245
8434
  defaultStyle?: Partial<TitleDesign>;
8246
8435
  updateStyle: (style: TitleDesign) => void;
8247
8436
  }
8248
- declare class ChartTitle extends Component<Props$1e, SpreadsheetChildEnv> {
8437
+ declare class ChartTitle extends Component<Props$_, SpreadsheetChildEnv> {
8249
8438
  static template: string;
8250
8439
  static components: {
8251
8440
  Section: typeof Section;
@@ -8283,13 +8472,13 @@ interface AxisDefinition {
8283
8472
  id: string;
8284
8473
  name: string;
8285
8474
  }
8286
- interface Props$1d {
8475
+ interface Props$Z {
8287
8476
  chartId: UID;
8288
8477
  definition: ChartWithAxisDefinition;
8289
8478
  updateChart: (chartId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
8290
8479
  axesList: AxisDefinition[];
8291
8480
  }
8292
- declare class AxisDesignEditor extends Component<Props$1d, SpreadsheetChildEnv> {
8481
+ declare class AxisDesignEditor extends Component<Props$Z, SpreadsheetChildEnv> {
8293
8482
  static template: string;
8294
8483
  static components: {
8295
8484
  Section: typeof Section;
@@ -8321,14 +8510,14 @@ interface Choice {
8321
8510
  value: unknown;
8322
8511
  label: string;
8323
8512
  }
8324
- interface Props$1c {
8513
+ interface Props$Y {
8325
8514
  choices: Choice[];
8326
8515
  onChange: (value: unknown) => void;
8327
8516
  selectedValue: string;
8328
8517
  name: string;
8329
8518
  direction: "horizontal" | "vertical";
8330
8519
  }
8331
- declare class RadioSelection extends Component<Props$1c, SpreadsheetChildEnv> {
8520
+ declare class RadioSelection extends Component<Props$Y, SpreadsheetChildEnv> {
8332
8521
  static template: string;
8333
8522
  static props: {
8334
8523
  choices: ArrayConstructor;
@@ -8347,13 +8536,13 @@ declare class RadioSelection extends Component<Props$1c, SpreadsheetChildEnv> {
8347
8536
  };
8348
8537
  }
8349
8538
 
8350
- interface Props$1b {
8539
+ interface Props$X {
8351
8540
  currentColor?: string;
8352
8541
  onColorPicked: (color: string) => void;
8353
8542
  title?: string;
8354
8543
  disableNoColor?: boolean;
8355
8544
  }
8356
- declare class RoundColorPicker extends Component<Props$1b, SpreadsheetChildEnv> {
8545
+ declare class RoundColorPicker extends Component<Props$X, SpreadsheetChildEnv> {
8357
8546
  static template: string;
8358
8547
  static components: {
8359
8548
  Section: typeof Section;
@@ -8386,14 +8575,11 @@ declare class RoundColorPicker extends Component<Props$1b, SpreadsheetChildEnv>
8386
8575
  get buttonStyle(): string;
8387
8576
  }
8388
8577
 
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;
8578
+ interface Props$W extends ChartSidePanelProps<ChartDefinition> {
8394
8579
  defaultChartTitleFontSize?: number;
8580
+ slots?: object;
8395
8581
  }
8396
- declare class GeneralDesignEditor extends Component<Props$1a, SpreadsheetChildEnv> {
8582
+ declare class GeneralDesignEditor extends Component<Props$W, SpreadsheetChildEnv> {
8397
8583
  static template: string;
8398
8584
  static components: {
8399
8585
  RoundColorPicker: typeof RoundColorPicker;
@@ -8403,10 +8589,6 @@ declare class GeneralDesignEditor extends Component<Props$1a, SpreadsheetChildEn
8403
8589
  RadioSelection: typeof RadioSelection;
8404
8590
  };
8405
8591
  static props: {
8406
- chartId: StringConstructor;
8407
- definition: ObjectConstructor;
8408
- updateChart: FunctionConstructor;
8409
- canUpdateChart: FunctionConstructor;
8410
8592
  defaultChartTitleFontSize: {
8411
8593
  type: NumberConstructor;
8412
8594
  optional: boolean;
@@ -8415,6 +8597,10 @@ declare class GeneralDesignEditor extends Component<Props$1a, SpreadsheetChildEn
8415
8597
  type: ObjectConstructor;
8416
8598
  optional: boolean;
8417
8599
  };
8600
+ chartId: StringConstructor;
8601
+ definition: ObjectConstructor;
8602
+ canUpdateChart: FunctionConstructor;
8603
+ updateChart: FunctionConstructor;
8418
8604
  };
8419
8605
  static defaultProps: {
8420
8606
  defaultChartTitleFontSize: number;
@@ -8428,13 +8614,7 @@ declare class GeneralDesignEditor extends Component<Props$1a, SpreadsheetChildEn
8428
8614
  updateChartTitleStyle(style: TitleDesign): void;
8429
8615
  }
8430
8616
 
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> {
8617
+ declare class ChartHumanizeNumbers extends Component<ChartSidePanelProps<ChartWithDataSetDefinition>, SpreadsheetChildEnv> {
8438
8618
  static template: string;
8439
8619
  static components: {
8440
8620
  Checkbox: typeof Checkbox;
@@ -8442,18 +8622,13 @@ declare class ChartHumanizeNumbers extends Component<Props$19, SpreadsheetChildE
8442
8622
  static props: {
8443
8623
  chartId: StringConstructor;
8444
8624
  definition: ObjectConstructor;
8445
- updateChart: FunctionConstructor;
8446
8625
  canUpdateChart: FunctionConstructor;
8626
+ updateChart: FunctionConstructor;
8447
8627
  };
8628
+ get title(): string;
8448
8629
  }
8449
8630
 
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> {
8631
+ declare class ChartLegend extends Component<ChartSidePanelProps<ChartWithDataSetDefinition>, SpreadsheetChildEnv> {
8457
8632
  static template: string;
8458
8633
  static components: {
8459
8634
  Section: typeof Section;
@@ -8461,19 +8636,19 @@ declare class ChartLegend extends Component<Props$18, SpreadsheetChildEnv> {
8461
8636
  static props: {
8462
8637
  chartId: StringConstructor;
8463
8638
  definition: ObjectConstructor;
8464
- updateChart: FunctionConstructor;
8465
8639
  canUpdateChart: FunctionConstructor;
8640
+ updateChart: FunctionConstructor;
8466
8641
  };
8467
8642
  updateLegendPosition(ev: any): void;
8468
8643
  }
8469
8644
 
8470
- interface Props$17 extends GenericInputProps {
8645
+ interface Props$V extends GenericInputProps {
8471
8646
  alwaysShowBorder?: boolean;
8472
8647
  min?: number;
8473
8648
  max?: number;
8474
8649
  value: number;
8475
8650
  }
8476
- declare class NumberInput extends GenericInput<Props$17> {
8651
+ declare class NumberInput extends GenericInput<Props$V> {
8477
8652
  static template: string;
8478
8653
  static components: {};
8479
8654
  static props: {
@@ -8517,13 +8692,10 @@ declare class NumberInput extends GenericInput<Props$17> {
8517
8692
  get inputClass(): string;
8518
8693
  }
8519
8694
 
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;
8695
+ interface Props$U extends ChartSidePanelProps<ChartWithDataSetDefinition> {
8696
+ slots?: object;
8525
8697
  }
8526
- declare class SeriesDesignEditor extends Component<Props$16, SpreadsheetChildEnv> {
8698
+ declare class SeriesDesignEditor extends Component<Props$U, SpreadsheetChildEnv> {
8527
8699
  static template: string;
8528
8700
  static components: {
8529
8701
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -8531,14 +8703,14 @@ declare class SeriesDesignEditor extends Component<Props$16, SpreadsheetChildEnv
8531
8703
  RoundColorPicker: typeof RoundColorPicker;
8532
8704
  };
8533
8705
  static props: {
8534
- chartId: StringConstructor;
8535
- definition: ObjectConstructor;
8536
- updateChart: FunctionConstructor;
8537
- canUpdateChart: FunctionConstructor;
8538
8706
  slots: {
8539
8707
  type: ObjectConstructor;
8540
8708
  optional: boolean;
8541
8709
  };
8710
+ chartId: StringConstructor;
8711
+ definition: ObjectConstructor;
8712
+ canUpdateChart: FunctionConstructor;
8713
+ updateChart: FunctionConstructor;
8542
8714
  };
8543
8715
  protected state: {
8544
8716
  index: number;
@@ -8551,13 +8723,10 @@ declare class SeriesDesignEditor extends Component<Props$16, SpreadsheetChildEnv
8551
8723
  getDataSeriesLabel(): string | undefined;
8552
8724
  }
8553
8725
 
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;
8726
+ interface Props$T extends ChartSidePanelProps<ChartWithDataSetDefinition> {
8727
+ slots?: object;
8559
8728
  }
8560
- declare class SeriesWithAxisDesignEditor extends Component<Props$15, SpreadsheetChildEnv> {
8729
+ declare class SeriesWithAxisDesignEditor extends Component<Props$T, SpreadsheetChildEnv> {
8561
8730
  static template: string;
8562
8731
  static components: {
8563
8732
  SeriesDesignEditor: typeof SeriesDesignEditor;
@@ -8568,14 +8737,14 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$15, Spreadsheet
8568
8737
  NumberInput: typeof NumberInput;
8569
8738
  };
8570
8739
  static props: {
8571
- chartId: StringConstructor;
8572
- definition: ObjectConstructor;
8573
- canUpdateChart: FunctionConstructor;
8574
- updateChart: FunctionConstructor;
8575
8740
  slots: {
8576
8741
  type: ObjectConstructor;
8577
8742
  optional: boolean;
8578
8743
  };
8744
+ chartId: StringConstructor;
8745
+ definition: ObjectConstructor;
8746
+ canUpdateChart: FunctionConstructor;
8747
+ updateChart: FunctionConstructor;
8579
8748
  };
8580
8749
  axisChoices: {
8581
8750
  value: string;
@@ -8599,37 +8768,27 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$15, Spreadsheet
8599
8768
  updateTrendLineValue(index: number, config: any): void;
8600
8769
  }
8601
8770
 
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;
8771
+ interface Props$S extends ChartSidePanelProps<ChartWithDataSetDefinition> {
8607
8772
  defaultValue?: boolean;
8608
8773
  }
8609
- declare class ChartShowValues extends Component<Props$14, SpreadsheetChildEnv> {
8774
+ declare class ChartShowValues extends Component<Props$S, SpreadsheetChildEnv> {
8610
8775
  static template: string;
8611
8776
  static components: {
8612
8777
  Checkbox: typeof Checkbox;
8613
8778
  };
8614
8779
  static props: {
8615
- chartId: StringConstructor;
8616
- definition: ObjectConstructor;
8617
- updateChart: FunctionConstructor;
8618
- canUpdateChart: FunctionConstructor;
8619
8780
  defaultValue: {
8620
8781
  type: BooleanConstructor;
8621
8782
  optional: boolean;
8622
8783
  };
8784
+ chartId: StringConstructor;
8785
+ definition: ObjectConstructor;
8786
+ canUpdateChart: FunctionConstructor;
8787
+ updateChart: FunctionConstructor;
8623
8788
  };
8624
8789
  }
8625
8790
 
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> {
8791
+ declare class ChartWithAxisDesignPanel<P extends ChartSidePanelProps<ChartWithDataSetDefinition>> extends Component<P, SpreadsheetChildEnv> {
8633
8792
  static template: string;
8634
8793
  static components: {
8635
8794
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -8650,13 +8809,7 @@ declare class ChartWithAxisDesignPanel<P extends Props$13 = Props$13> extends Co
8650
8809
  get axesList(): AxisDefinition[];
8651
8810
  }
8652
8811
 
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> {
8812
+ declare class GaugeChartConfigPanel extends Component<ChartSidePanelProps<GaugeChartDefinition>, SpreadsheetChildEnv> {
8660
8813
  static template: string;
8661
8814
  static components: {
8662
8815
  ChartErrorSection: typeof ChartErrorSection;
@@ -8665,8 +8818,8 @@ declare class GaugeChartConfigPanel extends Component<Props$12, SpreadsheetChild
8665
8818
  static props: {
8666
8819
  chartId: StringConstructor;
8667
8820
  definition: ObjectConstructor;
8668
- updateChart: FunctionConstructor;
8669
8821
  canUpdateChart: FunctionConstructor;
8822
+ updateChart: FunctionConstructor;
8670
8823
  };
8671
8824
  private state;
8672
8825
  private dataRange;
@@ -8721,13 +8874,13 @@ interface EnrichedToken extends Token {
8721
8874
  isInHoverContext?: boolean;
8722
8875
  }
8723
8876
 
8724
- interface Props$11 {
8877
+ interface Props$R {
8725
8878
  proposals: AutoCompleteProposal[];
8726
8879
  selectedIndex: number | undefined;
8727
8880
  onValueSelected: (value: string) => void;
8728
8881
  onValueHovered: (index: string) => void;
8729
8882
  }
8730
- declare class TextValueProvider extends Component<Props$11> {
8883
+ declare class TextValueProvider extends Component<Props$R> {
8731
8884
  static template: string;
8732
8885
  static props: {
8733
8886
  proposals: ArrayConstructor;
@@ -8784,30 +8937,38 @@ declare class ContentEditableHelper {
8784
8937
  getText(): string;
8785
8938
  }
8786
8939
 
8787
- interface Props$10 {
8940
+ interface Props$Q {
8788
8941
  functionDescription: FunctionDescription;
8789
8942
  argsToFocus: number[];
8943
+ repeatingArgGroupIndex: number | undefined;
8790
8944
  }
8791
- declare class FunctionDescriptionProvider extends Component<Props$10, SpreadsheetChildEnv> {
8945
+ declare class FunctionDescriptionProvider extends Component<Props$Q, SpreadsheetChildEnv> {
8792
8946
  static template: string;
8793
8947
  static props: {
8794
8948
  functionDescription: ObjectConstructor;
8795
8949
  argsToFocus: ArrayConstructor;
8950
+ repeatingArgGroupIndex: {
8951
+ type: NumberConstructor;
8952
+ optional: boolean;
8953
+ };
8796
8954
  };
8797
8955
  static components: {
8798
8956
  Collapse: typeof Collapse;
8799
8957
  };
8800
8958
  private state;
8801
8959
  toggle(): void;
8802
- getContext(): Props$10;
8803
- get formulaArgSeparator(): string;
8960
+ getContext(): Props$Q;
8961
+ get formulaHeaderContent(): {
8962
+ content: string;
8963
+ focused?: boolean;
8964
+ }[];
8804
8965
  }
8805
8966
 
8806
- interface Props$$ {
8967
+ interface Props$P {
8807
8968
  anchorRect: Rect;
8808
8969
  content: string;
8809
8970
  }
8810
- declare class SpeechBubble extends Component<Props$$, SpreadsheetChildEnv> {
8971
+ declare class SpeechBubble extends Component<Props$P, SpreadsheetChildEnv> {
8811
8972
  static template: string;
8812
8973
  static props: {
8813
8974
  content: StringConstructor;
@@ -8880,8 +9041,6 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
8880
9041
  toggleEditionMode(): void;
8881
9042
  hoverToken(tokenIndex: number | undefined): void;
8882
9043
  private getRelatedTokens;
8883
- private evaluationResultToDisplayString;
8884
- private cellValueToDisplayString;
8885
9044
  private captureSelection;
8886
9045
  private isSelectionValid;
8887
9046
  /**
@@ -8952,7 +9111,7 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
8952
9111
  private updateAutoCompleteProvider;
8953
9112
  private findAutocompleteProvider;
8954
9113
  hideHelp(): void;
8955
- autoCompleteOrStop(direction: Direction$1): void;
9114
+ autoCompleteOrStop(direction: Direction$1, assistantForcedClosed?: boolean): void;
8956
9115
  insertAutoCompleteValue(value: string): void;
8957
9116
  selectAutoCompleteIndex(index: number): void;
8958
9117
  moveAutoCompleteSelection(direction: "previous" | "next"): void;
@@ -8993,6 +9152,7 @@ type HtmlContent = {
8993
9152
  onHover?: (rect: Rect) => void;
8994
9153
  onStopHover?: () => void;
8995
9154
  color?: Color;
9155
+ opacity?: number;
8996
9156
  backgroundColor?: Color;
8997
9157
  classes?: string[];
8998
9158
  };
@@ -9019,6 +9179,7 @@ interface FunctionDescriptionState {
9019
9179
  showDescription: boolean;
9020
9180
  functionDescription: FunctionDescription;
9021
9181
  argsToFocus: number[];
9182
+ repeatingArgGroupIndex: number | undefined;
9022
9183
  }
9023
9184
  declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv> {
9024
9185
  static template: string;
@@ -9080,6 +9241,9 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
9080
9241
  composerRef: {
9081
9242
  el: HTMLElement | null;
9082
9243
  };
9244
+ containerRef: {
9245
+ el: HTMLElement | null;
9246
+ };
9083
9247
  contentHelper: ContentEditableHelper;
9084
9248
  composerState: ComposerState;
9085
9249
  functionDescriptionState: FunctionDescriptionState;
@@ -9153,6 +9317,7 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
9153
9317
  * the autocomplete engine otherwise we initialize the formula assistant.
9154
9318
  */
9155
9319
  private processTokenAtCursor;
9320
+ private getRepeatingArgGroupIndex;
9156
9321
  /**
9157
9322
  * Compute the arguments to focus depending on the current value position.
9158
9323
  *
@@ -9218,7 +9383,7 @@ interface AutoCompleteProviderDefinition {
9218
9383
  }, tokenAtCursor: EnrichedToken, text: string): void;
9219
9384
  }
9220
9385
 
9221
- interface Props$_ {
9386
+ interface Props$O {
9222
9387
  onConfirm: (content: string) => void;
9223
9388
  composerContent: string;
9224
9389
  defaultRangeSheetId: UID;
@@ -9228,9 +9393,10 @@ interface Props$_ {
9228
9393
  title?: string;
9229
9394
  class?: string;
9230
9395
  invalid?: boolean;
9396
+ autofocus?: boolean;
9231
9397
  getContextualColoredSymbolToken?: (token: Token) => Color;
9232
9398
  }
9233
- declare class StandaloneComposer extends Component<Props$_, SpreadsheetChildEnv> {
9399
+ declare class StandaloneComposer extends Component<Props$O, SpreadsheetChildEnv> {
9234
9400
  static template: string;
9235
9401
  static props: {
9236
9402
  composerContent: {
@@ -9266,6 +9432,10 @@ declare class StandaloneComposer extends Component<Props$_, SpreadsheetChildEnv>
9266
9432
  type: BooleanConstructor;
9267
9433
  optional: boolean;
9268
9434
  };
9435
+ autofocus: {
9436
+ type: BooleanConstructor;
9437
+ optional: boolean;
9438
+ };
9269
9439
  getContextualColoredSymbolToken: {
9270
9440
  type: FunctionConstructor;
9271
9441
  optional: boolean;
@@ -9293,13 +9463,7 @@ interface PanelState {
9293
9463
  sectionRuleCancelledReasons?: CommandResult[];
9294
9464
  sectionRule: SectionRule;
9295
9465
  }
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> {
9466
+ declare class GaugeChartDesignPanel extends Component<ChartSidePanelProps<GaugeChartDefinition>, SpreadsheetChildEnv> {
9303
9467
  static template: string;
9304
9468
  static components: {
9305
9469
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -9313,11 +9477,8 @@ declare class GaugeChartDesignPanel extends Component<Props$Z, SpreadsheetChildE
9313
9477
  static props: {
9314
9478
  chartId: StringConstructor;
9315
9479
  definition: ObjectConstructor;
9480
+ canUpdateChart: FunctionConstructor;
9316
9481
  updateChart: FunctionConstructor;
9317
- canUpdateChart: {
9318
- type: FunctionConstructor;
9319
- optional: boolean;
9320
- };
9321
9482
  };
9322
9483
  protected state: PanelState;
9323
9484
  setup(): void;
@@ -9350,13 +9511,7 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
9350
9511
  onUpdateCumulative(cumulative: boolean): void;
9351
9512
  }
9352
9513
 
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> {
9514
+ declare class ScorecardChartConfigPanel extends Component<ChartSidePanelProps<ScorecardChartDefinition>, SpreadsheetChildEnv> {
9360
9515
  static template: string;
9361
9516
  static components: {
9362
9517
  SelectionInput: typeof SelectionInput;
@@ -9366,8 +9521,8 @@ declare class ScorecardChartConfigPanel extends Component<Props$Y, SpreadsheetCh
9366
9521
  static props: {
9367
9522
  chartId: StringConstructor;
9368
9523
  definition: ObjectConstructor;
9369
- updateChart: FunctionConstructor;
9370
9524
  canUpdateChart: FunctionConstructor;
9525
+ updateChart: FunctionConstructor;
9371
9526
  };
9372
9527
  private state;
9373
9528
  private keyValue;
@@ -9385,13 +9540,7 @@ declare class ScorecardChartConfigPanel extends Component<Props$Y, SpreadsheetCh
9385
9540
  }
9386
9541
 
9387
9542
  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> {
9543
+ declare class ScorecardChartDesignPanel extends Component<ChartSidePanelProps<ScorecardChartDefinition>, SpreadsheetChildEnv> {
9395
9544
  static template: string;
9396
9545
  static components: {
9397
9546
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -9405,11 +9554,8 @@ declare class ScorecardChartDesignPanel extends Component<Props$X, SpreadsheetCh
9405
9554
  static props: {
9406
9555
  chartId: StringConstructor;
9407
9556
  definition: ObjectConstructor;
9557
+ canUpdateChart: FunctionConstructor;
9408
9558
  updateChart: FunctionConstructor;
9409
- canUpdateChart: {
9410
- type: FunctionConstructor;
9411
- optional: boolean;
9412
- };
9413
9559
  };
9414
9560
  get colorsSectionTitle(): string;
9415
9561
  get defaultScorecardTitleFontSize(): number;
@@ -9436,7 +9582,7 @@ interface ChartSidePanel {
9436
9582
  */
9437
9583
  interface FigureContent {
9438
9584
  Component: any;
9439
- menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
9585
+ menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
9440
9586
  SidePanelComponent?: string;
9441
9587
  keepRatio?: boolean;
9442
9588
  minFigSize?: number;
@@ -9464,7 +9610,7 @@ interface ClosedSidePanel {
9464
9610
  }
9465
9611
  type SidePanelState = OpenSidePanel | ClosedSidePanel;
9466
9612
  interface PanelInfo {
9467
- initialPanelProps: SidePanelComponentProps;
9613
+ currentPanelProps: SidePanelComponentProps;
9468
9614
  componentTag: string;
9469
9615
  size: number;
9470
9616
  isCollapsed?: boolean;
@@ -9487,8 +9633,8 @@ declare class SidePanelStore extends SpreadsheetStore {
9487
9633
  get totalPanelSize(): number;
9488
9634
  private getPanelProps;
9489
9635
  private getPanelKey;
9490
- open(componentTag: string, initialPanelProps?: SidePanelComponentProps): void;
9491
- replace(componentTag: string, currentPanelKey: string, initialPanelProps?: SidePanelComponentProps): void;
9636
+ open(componentTag: string, currentPanelProps?: SidePanelComponentProps): void;
9637
+ replace(componentTag: string, currentPanelKey: string, currentPanelProps?: SidePanelComponentProps): void;
9492
9638
  private _openPanel;
9493
9639
  toggle(componentTag: string, panelProps: SidePanelComponentProps): void;
9494
9640
  close(): void;
@@ -9590,11 +9736,11 @@ declare class ChartAnimationStore extends SpreadsheetStore {
9590
9736
  enableAnimationForChart(chartId: UID): string;
9591
9737
  }
9592
9738
 
9593
- interface Props$W {
9739
+ interface Props$N {
9594
9740
  chartId: UID;
9595
9741
  isFullScreen?: boolean;
9596
9742
  }
9597
- declare class ChartJsComponent extends Component<Props$W, SpreadsheetChildEnv> {
9743
+ declare class ChartJsComponent extends Component<Props$N, SpreadsheetChildEnv> {
9598
9744
  static template: string;
9599
9745
  static props: {
9600
9746
  chartId: StringConstructor;
@@ -9630,11 +9776,11 @@ declare class ChartJsComponent extends Component<Props$W, SpreadsheetChildEnv> {
9630
9776
  get animationChartId(): string;
9631
9777
  }
9632
9778
 
9633
- interface Props$V {
9779
+ interface Props$M {
9634
9780
  chartId: UID;
9635
9781
  isFullScreen?: Boolean;
9636
9782
  }
9637
- declare class ScorecardChart$1 extends Component<Props$V, SpreadsheetChildEnv> {
9783
+ declare class ScorecardChart$1 extends Component<Props$M, SpreadsheetChildEnv> {
9638
9784
  static template: string;
9639
9785
  static props: {
9640
9786
  chartId: StringConstructor;
@@ -9708,14 +9854,14 @@ declare class Menu extends Component<MenuProps, SpreadsheetChildEnv> {
9708
9854
  getName(menu: Action): string;
9709
9855
  isRoot(menu: Action): boolean;
9710
9856
  private hasVisibleChildren;
9711
- isEnabled(menu: Action): boolean;
9857
+ isEnabled(menu: Action): any;
9712
9858
  get menuStyle(): string;
9713
9859
  onMouseEnter(menu: Action, ev: PointerEvent): void;
9714
9860
  onMouseLeave(menu: Action, ev: PointerEvent): void;
9715
9861
  onClickMenu(menu: Action, ev: CustomEvent): void;
9716
9862
  }
9717
9863
 
9718
- interface Props$U {
9864
+ interface Props$L {
9719
9865
  anchorRect: Rect;
9720
9866
  popoverPositioning: PopoverPropsPosition;
9721
9867
  menuItems: Action[];
@@ -9735,7 +9881,7 @@ interface MenuState {
9735
9881
  menuItems: Action[];
9736
9882
  isHoveringChild?: boolean;
9737
9883
  }
9738
- declare class MenuPopover extends Component<Props$U, SpreadsheetChildEnv> {
9884
+ declare class MenuPopover extends Component<Props$L, SpreadsheetChildEnv> {
9739
9885
  static template: string;
9740
9886
  static props: {
9741
9887
  anchorRect: ObjectConstructor;
@@ -9815,15 +9961,14 @@ declare class MenuPopover extends Component<Props$U, SpreadsheetChildEnv> {
9815
9961
  }
9816
9962
 
9817
9963
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
9818
- interface Props$T {
9964
+ interface Props$K {
9819
9965
  figureUI: FigureUI;
9820
9966
  style: string;
9821
9967
  class: string;
9822
- onFigureDeleted: () => void;
9823
9968
  onMouseDown: (ev: MouseEvent) => void;
9824
9969
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
9825
9970
  }
9826
- declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9971
+ declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
9827
9972
  static template: string;
9828
9973
  static props: {
9829
9974
  figureUI: ObjectConstructor;
@@ -9835,10 +9980,6 @@ declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9835
9980
  type: StringConstructor;
9836
9981
  optional: boolean;
9837
9982
  };
9838
- onFigureDeleted: {
9839
- type: FunctionConstructor;
9840
- optional: boolean;
9841
- };
9842
9983
  onMouseDown: {
9843
9984
  type: FunctionConstructor;
9844
9985
  optional: boolean;
@@ -9852,7 +9993,6 @@ declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9852
9993
  MenuPopover: typeof MenuPopover;
9853
9994
  };
9854
9995
  static defaultProps: {
9855
- onFigureDeleted: () => void;
9856
9996
  onMouseDown: () => void;
9857
9997
  onClickAnchor: () => void;
9858
9998
  };
@@ -9879,7 +10019,7 @@ declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9879
10019
  editWrapperStyle(properties: CSSProperties): void;
9880
10020
  }
9881
10021
 
9882
- interface Props$S {
10022
+ interface Props$J {
9883
10023
  chartId: UID;
9884
10024
  hasFullScreenButton: boolean;
9885
10025
  }
@@ -9890,7 +10030,7 @@ interface MenuItem {
9890
10030
  onClick: () => void;
9891
10031
  preview?: string;
9892
10032
  }
9893
- declare class ChartDashboardMenu extends Component<Props$S, SpreadsheetChildEnv> {
10033
+ declare class ChartDashboardMenu extends Component<Props$J, SpreadsheetChildEnv> {
9894
10034
  static template: string;
9895
10035
  static components: {
9896
10036
  MenuPopover: typeof MenuPopover;
@@ -9914,18 +10054,16 @@ declare class ChartDashboardMenu extends Component<Props$S, SpreadsheetChildEnv>
9914
10054
  get fullScreenMenuItem(): MenuItem | undefined;
9915
10055
  }
9916
10056
 
9917
- interface Props$R {
10057
+ interface Props$I {
9918
10058
  figureUI: FigureUI;
9919
- onFigureDeleted: () => void;
9920
10059
  editFigureStyle?: (properties: CSSProperties) => void;
9921
10060
  isFullScreen?: boolean;
9922
10061
  openContextMenu?: (anchorRect: Rect, onClose?: () => void) => void;
9923
10062
  }
9924
- declare class ChartFigure extends Component<Props$R, SpreadsheetChildEnv> {
10063
+ declare class ChartFigure extends Component<Props$I, SpreadsheetChildEnv> {
9925
10064
  static template: string;
9926
10065
  static props: {
9927
10066
  figureUI: ObjectConstructor;
9928
- onFigureDeleted: FunctionConstructor;
9929
10067
  editFigureStyle: {
9930
10068
  type: FunctionConstructor;
9931
10069
  optional: boolean;
@@ -9950,19 +10088,15 @@ declare class ChartFigure extends Component<Props$R, SpreadsheetChildEnv> {
9950
10088
 
9951
10089
  type DnDDirection = "all" | "vertical" | "horizontal";
9952
10090
 
9953
- interface Props$Q {
10091
+ interface Props$H {
9954
10092
  isVisible: boolean;
9955
- position: Position;
9956
- }
9957
- interface Position {
9958
- top: HeaderIndex;
9959
- left: HeaderIndex;
10093
+ position: DOMCoordinates;
9960
10094
  }
9961
10095
  interface State$4 {
9962
- position: Position;
10096
+ position: DOMCoordinates;
9963
10097
  handler: boolean;
9964
10098
  }
9965
- declare class Autofill extends Component<Props$Q, SpreadsheetChildEnv> {
10099
+ declare class Autofill extends Component<Props$H, SpreadsheetChildEnv> {
9966
10100
  static template: string;
9967
10101
  static props: {
9968
10102
  position: ObjectConstructor;
@@ -10002,7 +10136,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
10002
10136
  get tagStyle(): string;
10003
10137
  }
10004
10138
 
10005
- interface Props$P {
10139
+ interface Props$G {
10006
10140
  gridDims: DOMDimension;
10007
10141
  onInputContextMenu: (event: MouseEvent) => void;
10008
10142
  }
@@ -10010,7 +10144,7 @@ interface Props$P {
10010
10144
  * This component is a composer which positions itself on the grid at the anchor cell.
10011
10145
  * It also applies the style of the cell to the composer input.
10012
10146
  */
10013
- declare class GridComposer extends Component<Props$P, SpreadsheetChildEnv> {
10147
+ declare class GridComposer extends Component<Props$G, SpreadsheetChildEnv> {
10014
10148
  static template: string;
10015
10149
  static props: {
10016
10150
  gridDims: ObjectConstructor;
@@ -10054,8 +10188,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
10054
10188
  }
10055
10189
 
10056
10190
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
10057
- interface Props$O {
10058
- onFigureDeleted: () => void;
10191
+ interface Props$F {
10059
10192
  }
10060
10193
  interface Container {
10061
10194
  type: ContainerType;
@@ -10135,11 +10268,9 @@ interface DndState {
10135
10268
  * that occurred during the drag & drop, and to position the figure on the correct pane.
10136
10269
  *
10137
10270
  */
10138
- declare class FiguresContainer extends Component<Props$O, SpreadsheetChildEnv> {
10271
+ declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
10139
10272
  static template: string;
10140
- static props: {
10141
- onFigureDeleted: FunctionConstructor;
10142
- };
10273
+ static props: {};
10143
10274
  static components: {
10144
10275
  FigureComponent: typeof FigureComponent;
10145
10276
  };
@@ -10173,17 +10304,15 @@ declare class FiguresContainer extends Component<Props$O, SpreadsheetChildEnv> {
10173
10304
  private getCarouselOverlappingChart;
10174
10305
  }
10175
10306
 
10176
- interface Props$N {
10177
- focusGrid: () => void;
10307
+ interface Props$E {
10178
10308
  }
10179
- declare class GridAddRowsFooter extends Component<Props$N, SpreadsheetChildEnv> {
10309
+ declare class GridAddRowsFooter extends Component<Props$E, SpreadsheetChildEnv> {
10180
10310
  static template: string;
10181
- static props: {
10182
- focusGrid: FunctionConstructor;
10183
- };
10311
+ static props: {};
10184
10312
  static components: {
10185
10313
  ValidationMessages: typeof ValidationMessages;
10186
10314
  };
10315
+ private DOMFocusableElementStore;
10187
10316
  inputRef: {
10188
10317
  el: HTMLInputElement | null;
10189
10318
  };
@@ -10198,22 +10327,30 @@ declare class GridAddRowsFooter extends Component<Props$N, SpreadsheetChildEnv>
10198
10327
  onInput(ev: InputEvent): void;
10199
10328
  onConfirm(): void;
10200
10329
  private onExternalClick;
10330
+ private focusDefaultElement;
10201
10331
  }
10202
10332
 
10203
- interface Props$M {
10333
+ type ZoomedMouseEvent<T extends MouseEvent | PointerEvent> = {
10334
+ clientX: Pixel;
10335
+ clientY: Pixel;
10336
+ offsetX: Pixel;
10337
+ offsetY: Pixel;
10338
+ ev: T;
10339
+ };
10340
+
10341
+ interface Props$D {
10204
10342
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
10205
- onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: PointerEvent | MouseEvent) => void;
10343
+ onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, zoomedMouseEvent: ZoomedMouseEvent<MouseEvent | PointerEvent>) => void;
10206
10344
  onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
10207
10345
  onGridResized: (dimension: Rect) => void;
10208
10346
  onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
10209
10347
  gridOverlayDimensions: string;
10210
- onFigureDeleted: () => void;
10211
10348
  getGridSize: () => {
10212
10349
  width: number;
10213
10350
  height: number;
10214
10351
  };
10215
10352
  }
10216
- declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10353
+ declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
10217
10354
  static template: string;
10218
10355
  static props: {
10219
10356
  onCellDoubleClicked: {
@@ -10232,10 +10369,6 @@ declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10232
10369
  type: FunctionConstructor;
10233
10370
  optional: boolean;
10234
10371
  };
10235
- onFigureDeleted: {
10236
- type: FunctionConstructor;
10237
- optional: boolean;
10238
- };
10239
10372
  onGridMoved: FunctionConstructor;
10240
10373
  gridOverlayDimensions: StringConstructor;
10241
10374
  slots: {
@@ -10253,7 +10386,6 @@ declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10253
10386
  onCellClicked: () => void;
10254
10387
  onCellRightClicked: () => void;
10255
10388
  onGridResized: () => void;
10256
- onFigureDeleted: () => void;
10257
10389
  };
10258
10390
  private gridOverlay;
10259
10391
  private cellPopovers;
@@ -10266,19 +10398,19 @@ declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10266
10398
  onPointerMove(ev: MouseEvent): void;
10267
10399
  onPointerDown(ev: PointerEvent): void;
10268
10400
  onClick(ev: MouseEvent): void;
10269
- onCellClicked(ev: PointerEvent | MouseEvent): void;
10401
+ onCellClicked(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent | PointerEvent>): void;
10270
10402
  onDoubleClick(ev: MouseEvent): void;
10271
10403
  onContextMenu(ev: MouseEvent): void;
10272
10404
  private getCartesianCoordinates;
10273
10405
  private getInteractiveIconAtEvent;
10274
10406
  }
10275
10407
 
10276
- interface Props$L {
10408
+ interface Props$C {
10277
10409
  gridRect: Rect;
10278
10410
  onClosePopover: () => void;
10279
10411
  onMouseWheel: (ev: WheelEvent) => void;
10280
10412
  }
10281
- declare class GridPopover extends Component<Props$L, SpreadsheetChildEnv> {
10413
+ declare class GridPopover extends Component<Props$C, SpreadsheetChildEnv> {
10282
10414
  static template: string;
10283
10415
  static props: {
10284
10416
  onClosePopover: FunctionConstructor;
@@ -10293,7 +10425,7 @@ declare class GridPopover extends Component<Props$L, SpreadsheetChildEnv> {
10293
10425
  get cellPopover(): PositionedCellPopoverComponent | ClosedCellPopover;
10294
10426
  }
10295
10427
 
10296
- interface Props$K {
10428
+ interface Props$B {
10297
10429
  headersGroups: ConsecutiveIndexes[];
10298
10430
  offset: number;
10299
10431
  headerRange: {
@@ -10301,7 +10433,7 @@ interface Props$K {
10301
10433
  end: HeaderIndex;
10302
10434
  };
10303
10435
  }
10304
- declare class UnhideRowHeaders extends Component<Props$K, SpreadsheetChildEnv> {
10436
+ declare class UnhideRowHeaders extends Component<Props$B, SpreadsheetChildEnv> {
10305
10437
  static template: string;
10306
10438
  static props: {
10307
10439
  headersGroups: ArrayConstructor;
@@ -10320,7 +10452,7 @@ declare class UnhideRowHeaders extends Component<Props$K, SpreadsheetChildEnv> {
10320
10452
  unhide(hiddenElements: HeaderIndex[]): void;
10321
10453
  isVisible(header: HeaderIndex): boolean;
10322
10454
  }
10323
- declare class UnhideColumnHeaders extends Component<Props$K, SpreadsheetChildEnv> {
10455
+ declare class UnhideColumnHeaders extends Component<Props$B, SpreadsheetChildEnv> {
10324
10456
  static template: string;
10325
10457
  static props: {
10326
10458
  headersGroups: ArrayConstructor;
@@ -10373,9 +10505,9 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
10373
10505
  clientY: number;
10374
10506
  }, onPointerMove: (col: HeaderIndex, row: HeaderIndex, ev: MouseEvent) => void, onPointerUp: () => void, startScrollDirection?: DnDDirection) => void;
10375
10507
  };
10376
- abstract _getEvOffset(ev: MouseEvent): Pixel;
10508
+ abstract _getEvOffset(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10377
10509
  abstract _getViewportOffset(): Pixel;
10378
- abstract _getClientPosition(ev: MouseEvent): Pixel;
10510
+ abstract _getClientPosition(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10379
10511
  abstract _getElementIndex(position: Pixel): HeaderIndex;
10380
10512
  abstract _getSelectedZoneStart(): HeaderIndex;
10381
10513
  abstract _getSelectedZoneEnd(): HeaderIndex;
@@ -10392,9 +10524,9 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
10392
10524
  abstract _getActiveElements(): Set<HeaderIndex>;
10393
10525
  abstract _getPreviousVisibleElement(index: HeaderIndex): HeaderIndex;
10394
10526
  setup(): void;
10395
- _computeHandleDisplay(ev: MouseEvent): void;
10396
- _computeGrabDisplay(ev: MouseEvent): void;
10397
- onMouseMove(ev: PointerEvent): void;
10527
+ _computeHandleDisplay(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): void;
10528
+ _computeGrabDisplay(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): void;
10529
+ onMouseMove(ev: MouseEvent): void;
10398
10530
  onMouseLeave(): void;
10399
10531
  onDblClick(ev: MouseEvent): void;
10400
10532
  onMouseDown(ev: MouseEvent): void;
@@ -10402,7 +10534,6 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
10402
10534
  select(ev: PointerEvent): void;
10403
10535
  private startMovement;
10404
10536
  private startSelection;
10405
- onMouseUp(ev: MouseEvent): void;
10406
10537
  onContextMenu(ev: MouseEvent): void;
10407
10538
  }
10408
10539
  declare class ColResizer extends AbstractResizer {
@@ -10416,9 +10547,9 @@ declare class ColResizer extends AbstractResizer {
10416
10547
  private colResizerRef;
10417
10548
  setup(): void;
10418
10549
  get sheetId(): UID;
10419
- _getEvOffset(ev: MouseEvent): Pixel;
10550
+ _getEvOffset(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10420
10551
  _getViewportOffset(): Pixel;
10421
- _getClientPosition(ev: MouseEvent): Pixel;
10552
+ _getClientPosition(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10422
10553
  _getElementIndex(position: Pixel): HeaderIndex;
10423
10554
  _getSelectedZoneStart(): HeaderIndex;
10424
10555
  _getSelectedZoneEnd(): HeaderIndex;
@@ -10464,9 +10595,9 @@ declare class RowResizer extends AbstractResizer {
10464
10595
  setup(): void;
10465
10596
  private rowResizerRef;
10466
10597
  get sheetId(): UID;
10467
- _getEvOffset(ev: MouseEvent): Pixel;
10598
+ _getEvOffset(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10468
10599
  _getViewportOffset(): Pixel;
10469
- _getClientPosition(ev: MouseEvent): Pixel;
10600
+ _getClientPosition(zoomedMouseEvent: ZoomedMouseEvent<MouseEvent>): Pixel;
10470
10601
  _getElementIndex(position: Pixel): HeaderIndex;
10471
10602
  _getSelectedZoneStart(): HeaderIndex;
10472
10603
  _getSelectedZoneEnd(): HeaderIndex;
@@ -10513,13 +10644,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
10513
10644
  }
10514
10645
 
10515
10646
  type Orientation$1 = "n" | "s" | "w" | "e";
10516
- interface Props$J {
10647
+ interface Props$A {
10517
10648
  zone: Zone;
10518
10649
  orientation: Orientation$1;
10519
10650
  isMoving: boolean;
10520
10651
  onMoveHighlight: (ev: PointerEvent) => void;
10521
10652
  }
10522
- declare class Border extends Component<Props$J, SpreadsheetChildEnv> {
10653
+ declare class Border extends Component<Props$A, SpreadsheetChildEnv> {
10523
10654
  static template: string;
10524
10655
  static props: {
10525
10656
  zone: ObjectConstructor;
@@ -10532,14 +10663,14 @@ declare class Border extends Component<Props$J, SpreadsheetChildEnv> {
10532
10663
  }
10533
10664
 
10534
10665
  type Orientation = "nw" | "ne" | "sw" | "se" | "n" | "s" | "e" | "w";
10535
- interface Props$I {
10666
+ interface Props$z {
10536
10667
  zone: Zone;
10537
10668
  color: Color;
10538
10669
  orientation: Orientation;
10539
10670
  isResizing: boolean;
10540
10671
  onResizeHighlight: (ev: PointerEvent, dirX: ResizeDirection, dirY: ResizeDirection) => void;
10541
10672
  }
10542
- declare class Corner extends Component<Props$I, SpreadsheetChildEnv> {
10673
+ declare class Corner extends Component<Props$z, SpreadsheetChildEnv> {
10543
10674
  static template: string;
10544
10675
  static props: {
10545
10676
  zone: ObjectConstructor;
@@ -10588,7 +10719,7 @@ declare class Highlight extends Component<HighlightProps, SpreadsheetChildEnv> {
10588
10719
 
10589
10720
  type ScrollDirection = "horizontal" | "vertical";
10590
10721
 
10591
- interface Props$H {
10722
+ interface Props$y {
10592
10723
  width: Pixel;
10593
10724
  height: Pixel;
10594
10725
  direction: ScrollDirection;
@@ -10596,7 +10727,7 @@ interface Props$H {
10596
10727
  offset: Pixel;
10597
10728
  onScroll: (offset: Pixel) => void;
10598
10729
  }
10599
- declare class ScrollBar extends Component<Props$H> {
10730
+ declare class ScrollBar extends Component<Props$y> {
10600
10731
  static props: {
10601
10732
  width: {
10602
10733
  type: NumberConstructor;
@@ -10624,10 +10755,10 @@ declare class ScrollBar extends Component<Props$H> {
10624
10755
  onScroll(ev: any): void;
10625
10756
  }
10626
10757
 
10627
- interface Props$G {
10758
+ interface Props$x {
10628
10759
  leftOffset: number;
10629
10760
  }
10630
- declare class HorizontalScrollBar extends Component<Props$G, SpreadsheetChildEnv> {
10761
+ declare class HorizontalScrollBar extends Component<Props$x, SpreadsheetChildEnv> {
10631
10762
  static props: {
10632
10763
  leftOffset: {
10633
10764
  type: NumberConstructor;
@@ -10653,10 +10784,10 @@ declare class HorizontalScrollBar extends Component<Props$G, SpreadsheetChildEnv
10653
10784
  onScroll(offset: any): void;
10654
10785
  }
10655
10786
 
10656
- interface Props$F {
10787
+ interface Props$w {
10657
10788
  topOffset: number;
10658
10789
  }
10659
- declare class VerticalScrollBar extends Component<Props$F, SpreadsheetChildEnv> {
10790
+ declare class VerticalScrollBar extends Component<Props$w, SpreadsheetChildEnv> {
10660
10791
  static props: {
10661
10792
  topOffset: {
10662
10793
  type: NumberConstructor;
@@ -10691,13 +10822,13 @@ declare class Selection extends Component<{}, SpreadsheetChildEnv> {
10691
10822
  get highlightProps(): HighlightProps;
10692
10823
  }
10693
10824
 
10694
- interface Props$E {
10825
+ interface Props$v {
10695
10826
  table: Table;
10696
10827
  }
10697
10828
  interface State$3 {
10698
10829
  highlightZone: Zone | undefined;
10699
10830
  }
10700
- declare class TableResizer extends Component<Props$E, SpreadsheetChildEnv> {
10831
+ declare class TableResizer extends Component<Props$v, SpreadsheetChildEnv> {
10701
10832
  static template: string;
10702
10833
  static props: {
10703
10834
  table: ObjectConstructor;
@@ -10726,11 +10857,11 @@ declare class TableResizer extends Component<Props$E, SpreadsheetChildEnv> {
10726
10857
  * - a vertical resizer (same, for rows)
10727
10858
  */
10728
10859
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
10729
- interface Props$D {
10860
+ interface Props$u {
10730
10861
  exposeFocus: (focus: () => void) => void;
10731
10862
  getGridSize: () => DOMDimension;
10732
10863
  }
10733
- declare class Grid extends Component<Props$D, SpreadsheetChildEnv> {
10864
+ declare class Grid extends Component<Props$u, SpreadsheetChildEnv> {
10734
10865
  static template: string;
10735
10866
  static props: {
10736
10867
  exposeFocus: FunctionConstructor;
@@ -10778,8 +10909,8 @@ declare class Grid extends Component<Props$D, SpreadsheetChildEnv> {
10778
10909
  focusDefaultElement(): void;
10779
10910
  get gridEl(): HTMLElement;
10780
10911
  getAutofillPosition(): {
10781
- left: number;
10782
- top: number;
10912
+ x: number;
10913
+ y: number;
10783
10914
  };
10784
10915
  get isAutofillVisible(): boolean;
10785
10916
  onGridResized({ height, width }: DOMDimension): void;
@@ -10789,12 +10920,15 @@ declare class Grid extends Component<Props$D, SpreadsheetChildEnv> {
10789
10920
  isCellHovered(col: HeaderIndex, row: HeaderIndex): boolean;
10790
10921
  get focusedClients(): Set<string>;
10791
10922
  private getGridRect;
10792
- onCellClicked(col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: PointerEvent): void;
10923
+ onCellClicked(col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, zoomedMouseEvent: ZoomedMouseEvent<PointerEvent>): void;
10793
10924
  onCellDoubleClicked(col: HeaderIndex, row: HeaderIndex): void;
10794
10925
  processArrows(ev: KeyboardEvent): void;
10795
10926
  onKeydown(ev: KeyboardEvent): void;
10796
10927
  onInputContextMenu(ev: MouseEvent): void;
10797
10928
  onCellRightClicked(col: HeaderIndex, row: HeaderIndex, { x, y }: DOMCoordinates): void;
10929
+ /**
10930
+ * expects x and y coordinates in true pixels (not zoomed)
10931
+ */
10798
10932
  toggleContextMenu(type: ContextMenuType, x: Pixel, y: Pixel): void;
10799
10933
  copy(cut: boolean, ev: ClipboardEvent): Promise<void>;
10800
10934
  paste(ev: ClipboardEvent): Promise<void>;
@@ -10846,7 +10980,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
10846
10980
  private getChartDefinitionFromContextCreation;
10847
10981
  }
10848
10982
 
10849
- interface Props$C {
10983
+ interface Props$t {
10850
10984
  chartId: UID;
10851
10985
  chartPanelStore: MainChartPanelStore;
10852
10986
  }
@@ -10854,7 +10988,7 @@ interface ChartTypePickerState {
10854
10988
  popoverProps: PopoverProps | undefined;
10855
10989
  popoverStyle: string;
10856
10990
  }
10857
- declare class ChartTypePicker extends Component<Props$C, SpreadsheetChildEnv> {
10991
+ declare class ChartTypePicker extends Component<Props$t, SpreadsheetChildEnv> {
10858
10992
  static template: string;
10859
10993
  static components: {
10860
10994
  Section: typeof Section;
@@ -10890,11 +11024,11 @@ declare class ChartTypePicker extends Component<Props$C, SpreadsheetChildEnv> {
10890
11024
  private closePopover;
10891
11025
  }
10892
11026
 
10893
- interface Props$B {
11027
+ interface Props$s {
10894
11028
  onCloseSidePanel: () => void;
10895
11029
  chartId: UID;
10896
11030
  }
10897
- declare class ChartPanel extends Component<Props$B, SpreadsheetChildEnv> {
11031
+ declare class ChartPanel extends Component<Props$s, SpreadsheetChildEnv> {
10898
11032
  static template: string;
10899
11033
  static components: {
10900
11034
  Section: typeof Section;
@@ -10917,11 +11051,11 @@ declare class ChartPanel extends Component<Props$B, SpreadsheetChildEnv> {
10917
11051
  private getChartDefinition;
10918
11052
  }
10919
11053
 
10920
- interface Props$A {
11054
+ interface Props$r {
10921
11055
  onValueChange: (value: number) => void;
10922
11056
  value: number;
10923
11057
  }
10924
- declare class PieHoleSize extends Component<Props$A, SpreadsheetChildEnv> {
11058
+ declare class PieHoleSize extends Component<Props$r, SpreadsheetChildEnv> {
10925
11059
  static template: string;
10926
11060
  static components: {
10927
11061
  Section: typeof Section;
@@ -10934,13 +11068,7 @@ declare class PieHoleSize extends Component<Props$A, SpreadsheetChildEnv> {
10934
11068
  onChange(value: string): void;
10935
11069
  }
10936
11070
 
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> {
11071
+ declare class PieChartDesignPanel extends Component<ChartSidePanelProps<PieChartDefinition>, SpreadsheetChildEnv> {
10944
11072
  static template: string;
10945
11073
  static components: {
10946
11074
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -10954,20 +11082,17 @@ declare class PieChartDesignPanel extends Component<Props$z, SpreadsheetChildEnv
10954
11082
  static props: {
10955
11083
  chartId: StringConstructor;
10956
11084
  definition: ObjectConstructor;
11085
+ canUpdateChart: FunctionConstructor;
10957
11086
  updateChart: FunctionConstructor;
10958
- canUpdateChart: {
10959
- type: FunctionConstructor;
10960
- optional: boolean;
10961
- };
10962
11087
  };
10963
11088
  onPieHoleSizeChange(pieHolePercentage: number): void;
10964
11089
  get defaultHoleSize(): number;
10965
11090
  }
10966
11091
 
10967
- interface Props$y {
11092
+ interface Props$q {
10968
11093
  items: ActionSpec[];
10969
11094
  }
10970
- declare class CogWheelMenu extends Component<Props$y, SpreadsheetChildEnv> {
11095
+ declare class CogWheelMenu extends Component<Props$q, SpreadsheetChildEnv> {
10971
11096
  static template: string;
10972
11097
  static components: {
10973
11098
  MenuPopover: typeof MenuPopover;
@@ -11050,14 +11175,14 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
11050
11175
  get highlights(): Highlight$1[];
11051
11176
  }
11052
11177
 
11053
- interface Props$x {
11178
+ interface Props$p {
11054
11179
  deferUpdate: boolean;
11055
11180
  isDirty: boolean;
11056
11181
  toggleDeferUpdate: (value: boolean) => void;
11057
11182
  discard: () => void;
11058
11183
  apply: () => void;
11059
11184
  }
11060
- declare class PivotDeferUpdate extends Component<Props$x, SpreadsheetChildEnv> {
11185
+ declare class PivotDeferUpdate extends Component<Props$p, SpreadsheetChildEnv> {
11061
11186
  static template: string;
11062
11187
  static props: {
11063
11188
  deferUpdate: BooleanConstructor;
@@ -11074,11 +11199,11 @@ declare class PivotDeferUpdate extends Component<Props$x, SpreadsheetChildEnv> {
11074
11199
  get deferUpdatesTooltip(): string;
11075
11200
  }
11076
11201
 
11077
- interface Props$w {
11202
+ interface Props$o {
11078
11203
  onFieldPicked: (field: string) => void;
11079
11204
  fields: PivotField[];
11080
11205
  }
11081
- declare class AddDimensionButton extends Component<Props$w, SpreadsheetChildEnv> {
11206
+ declare class AddDimensionButton extends Component<Props$o, SpreadsheetChildEnv> {
11082
11207
  static template: string;
11083
11208
  static components: {
11084
11209
  Popover: typeof Popover;
@@ -11114,13 +11239,13 @@ declare class AddDimensionButton extends Component<Props$w, SpreadsheetChildEnv>
11114
11239
  onKeyDown(ev: KeyboardEvent): void;
11115
11240
  }
11116
11241
 
11117
- interface Props$v {
11242
+ interface Props$n {
11118
11243
  dimension: PivotCoreDimension | PivotCoreMeasure;
11119
11244
  onRemoved: (dimension: PivotCoreDimension | PivotCoreMeasure) => void;
11120
11245
  onNameUpdated?: (dimension: PivotCoreDimension | PivotCoreMeasure, name?: string) => void;
11121
11246
  type: "row" | "col" | "measure";
11122
11247
  }
11123
- declare class PivotDimension extends Component<Props$v, SpreadsheetChildEnv> {
11248
+ declare class PivotDimension extends Component<Props$n, SpreadsheetChildEnv> {
11124
11249
  static template: string;
11125
11250
  static props: {
11126
11251
  dimension: ObjectConstructor;
@@ -11144,13 +11269,13 @@ declare class PivotDimension extends Component<Props$v, SpreadsheetChildEnv> {
11144
11269
  updateName(name: string): void;
11145
11270
  }
11146
11271
 
11147
- interface Props$u {
11272
+ interface Props$m {
11148
11273
  dimension: PivotDimension$1;
11149
11274
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
11150
11275
  availableGranularities: Set<string>;
11151
11276
  allGranularities: string[];
11152
11277
  }
11153
- declare class PivotDimensionGranularity extends Component<Props$u, SpreadsheetChildEnv> {
11278
+ declare class PivotDimensionGranularity extends Component<Props$m, SpreadsheetChildEnv> {
11154
11279
  static template: string;
11155
11280
  static props: {
11156
11281
  dimension: ObjectConstructor;
@@ -11175,11 +11300,11 @@ declare class PivotDimensionGranularity extends Component<Props$u, SpreadsheetCh
11175
11300
  };
11176
11301
  }
11177
11302
 
11178
- interface Props$t {
11303
+ interface Props$l {
11179
11304
  dimension: PivotDimension$1;
11180
11305
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
11181
11306
  }
11182
- declare class PivotDimensionOrder extends Component<Props$t, SpreadsheetChildEnv> {
11307
+ declare class PivotDimensionOrder extends Component<Props$l, SpreadsheetChildEnv> {
11183
11308
  static template: string;
11184
11309
  static props: {
11185
11310
  dimension: ObjectConstructor;
@@ -11216,12 +11341,12 @@ declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type"
11216
11341
  declare function toFunctionPivotValue(value: CellValue, dimension: Pick<PivotDimension$1, "type" | "granularity">): string;
11217
11342
  declare function createCustomFields(definition: PivotCoreDefinition, fields: PivotFields): PivotFields;
11218
11343
 
11219
- interface Props$s {
11344
+ interface Props$k {
11220
11345
  pivotId: UID;
11221
11346
  customField: PivotCustomGroupedField;
11222
11347
  onCustomFieldUpdated: (definition: Partial<PivotCoreDefinition>) => void;
11223
11348
  }
11224
- declare class PivotCustomGroupsCollapsible extends Component<Props$s, SpreadsheetChildEnv> {
11349
+ declare class PivotCustomGroupsCollapsible extends Component<Props$k, SpreadsheetChildEnv> {
11225
11350
  static template: string;
11226
11351
  static props: {
11227
11352
  pivotId: StringConstructor;
@@ -11241,7 +11366,7 @@ declare class PivotCustomGroupsCollapsible extends Component<Props$s, Spreadshee
11241
11366
  private updateCustomField;
11242
11367
  }
11243
11368
 
11244
- interface Props$r {
11369
+ interface Props$j {
11245
11370
  pivotId: string;
11246
11371
  definition: PivotRuntimeDefinition;
11247
11372
  measure: PivotMeasure;
@@ -11249,7 +11374,7 @@ interface Props$r {
11249
11374
  onRemoved: () => void;
11250
11375
  generateMeasureId: (fieldName: string, aggregator?: string) => string;
11251
11376
  }
11252
- declare class PivotMeasureEditor extends Component<Props$r> {
11377
+ declare class PivotMeasureEditor extends Component<Props$j> {
11253
11378
  static template: string;
11254
11379
  static components: {
11255
11380
  PivotDimension: typeof PivotDimension;
@@ -11274,11 +11399,11 @@ declare class PivotMeasureEditor extends Component<Props$r> {
11274
11399
  get isCalculatedMeasureInvalid(): boolean;
11275
11400
  }
11276
11401
 
11277
- interface Props$q {
11402
+ interface Props$i {
11278
11403
  definition: PivotRuntimeDefinition;
11279
11404
  pivotId: UID;
11280
11405
  }
11281
- declare class PivotSortSection extends Component<Props$q, SpreadsheetChildEnv> {
11406
+ declare class PivotSortSection extends Component<Props$i, SpreadsheetChildEnv> {
11282
11407
  static template: string;
11283
11408
  static components: {
11284
11409
  Section: typeof Section;
@@ -11295,7 +11420,7 @@ declare class PivotSortSection extends Component<Props$q, SpreadsheetChildEnv> {
11295
11420
  }[];
11296
11421
  }
11297
11422
 
11298
- interface Props$p {
11423
+ interface Props$h {
11299
11424
  definition: PivotRuntimeDefinition;
11300
11425
  onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
11301
11426
  unusedGroupableFields: PivotField[];
@@ -11306,7 +11431,7 @@ interface Props$p {
11306
11431
  getScrollableContainerEl?: () => HTMLElement;
11307
11432
  pivotId: UID;
11308
11433
  }
11309
- declare class PivotLayoutConfigurator extends Component<Props$p, SpreadsheetChildEnv> {
11434
+ declare class PivotLayoutConfigurator extends Component<Props$h, SpreadsheetChildEnv> {
11310
11435
  static template: string;
11311
11436
  static components: {
11312
11437
  AddDimensionButton: typeof AddDimensionButton;
@@ -11403,11 +11528,11 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
11403
11528
  private areDomainFieldsValid;
11404
11529
  }
11405
11530
 
11406
- interface Props$o {
11531
+ interface Props$g {
11407
11532
  pivotId: UID;
11408
11533
  flipAxis: () => void;
11409
11534
  }
11410
- declare class PivotTitleSection extends Component<Props$o, SpreadsheetChildEnv> {
11535
+ declare class PivotTitleSection extends Component<Props$g, SpreadsheetChildEnv> {
11411
11536
  static template: string;
11412
11537
  static components: {
11413
11538
  CogWheelMenu: typeof CogWheelMenu;
@@ -11474,11 +11599,11 @@ declare function createEmptySheet(sheetId: UID, name: string): SheetData;
11474
11599
  declare function createEmptyWorkbookData(sheetName?: string): WorkbookData;
11475
11600
  declare function createEmptyExcelSheet(sheetId: UID, name: string): ExcelSheetData;
11476
11601
 
11477
- interface Props$n {
11602
+ interface Props$f {
11478
11603
  position: CellPosition;
11479
11604
  sortDirection: SortDirection | "none";
11480
11605
  }
11481
- declare class ClickableCellSortIcon extends Component<Props$n, SpreadsheetChildEnv> {
11606
+ declare class ClickableCellSortIcon extends Component<Props$f, SpreadsheetChildEnv> {
11482
11607
  static template: string;
11483
11608
  static props: {
11484
11609
  position: ObjectConstructor;
@@ -11502,14 +11627,17 @@ declare class ZoomableChartJsComponent extends ChartJsComponent {
11502
11627
  private chartId;
11503
11628
  private datasetBoundaries;
11504
11629
  private removeEventListeners;
11630
+ private isMasterChartAllowed;
11505
11631
  setup(): void;
11506
11632
  protected unmount(): void;
11507
11633
  get containerStyle(): string;
11634
+ get masterChartContainerStyle(): "" | "opacity: 0.3;";
11508
11635
  get sliceable(): boolean;
11509
11636
  get axisOffset(): number;
11510
11637
  private getMasterChartConfiguration;
11511
11638
  private getDetailChartConfiguration;
11512
11639
  private getAxisLimitsFromDataset;
11640
+ private setMasterChartCursor;
11513
11641
  protected createChart(chartRuntime: ChartJSRuntime): void;
11514
11642
  protected updateChartJs(chartRuntime: ChartJSRuntime): void;
11515
11643
  private resetAxesLimits;
@@ -11518,18 +11646,44 @@ declare class ZoomableChartJsComponent extends ChartJsComponent {
11518
11646
  get lowerBound(): number | undefined;
11519
11647
  private computePosition;
11520
11648
  private computeCoordinate;
11649
+ /**
11650
+ * Compute min and max from the store, adjusting them if needed for non linear scales.
11651
+ * Getting the value from the store, we have to ensure that the values are integers for
11652
+ * non linear scales (bar and category). To select a bar in the chart, we have to include
11653
+ * the whole bar, which means that for the i-th bar, the selected min should be <= i and
11654
+ * the selected max should be >= i, so using the Math.floor and Math.ceil functions is
11655
+ * the right way to do it.
11656
+ * Sometimes, we can get a minimal value > the maximal value, which arise when the user
11657
+ * select a very small area in the master chart, and hasn't selected the middle of a bar
11658
+ * or a group of bars (in case of more than one data series).
11659
+ * Assuming we have to select the middle of a bar/a groupe of bars, we will reject the
11660
+ * coming value afterward. In this case, we do not update the chart because it would lead
11661
+ * to an empty chart.
11662
+ */
11663
+ private getStoredBoundaries;
11664
+ /**
11665
+ * Adjust the min and max values of an axis if needed for non linear scales.
11666
+ * Here, after rounding (see docstring of getStoredBoundaries), we adjust the min by
11667
+ * substracting the axis offset, and we add it to the max, because when computing from the
11668
+ * scale, chartJs use integer values as the limits for non linear scales. If we have a min
11669
+ * value of 1, it means we want to start displaying from 0.5, and if we have a max value of
11670
+ * 4, it means we want to display until 4.5.
11671
+ * Here, we don't have to check if min > max because we are computing from the scale, and
11672
+ * chartJs ensures that this won't happen, even after our adjustments.
11673
+ */
11674
+ private adjustBoundaries;
11521
11675
  private updateAxisLimits;
11522
- onPointerDownInMasterChart(ev: PointerEvent): void;
11523
- onPointerMoveInMasterChart(ev: PointerEvent): void;
11524
- onMouseLeaveMasterChart(ev: PointerEvent): void;
11525
- onDoubleClickInMasterChart(ev: PointerEvent): void;
11676
+ onMasterChartPointerDown(ev: PointerEvent): void;
11677
+ onMasterChartPointerMove(ev: PointerEvent): void;
11678
+ onMasterChartMouseLeave(ev: PointerEvent): void;
11679
+ onMasterChartDoubleClick(ev: PointerEvent): void;
11526
11680
  }
11527
11681
 
11528
- interface Props$m {
11682
+ interface Props$e {
11529
11683
  chartId: UID;
11530
11684
  isFullScreen?: boolean;
11531
11685
  }
11532
- declare class GaugeChartComponent extends Component<Props$m, SpreadsheetChildEnv> {
11686
+ declare class GaugeChartComponent extends Component<Props$e, SpreadsheetChildEnv> {
11533
11687
  static template: string;
11534
11688
  static props: {
11535
11689
  chartId: StringConstructor;
@@ -11598,7 +11752,7 @@ interface PivotDialogValue {
11598
11752
  value: string;
11599
11753
  isMissing: boolean;
11600
11754
  }
11601
- interface Props$l {
11755
+ interface Props$d {
11602
11756
  pivotId: UID;
11603
11757
  onCellClicked: (formula: string) => void;
11604
11758
  }
@@ -11607,7 +11761,7 @@ interface TableData {
11607
11761
  rows: PivotDialogRow[];
11608
11762
  values: PivotDialogValue[][];
11609
11763
  }
11610
- declare class PivotHTMLRenderer extends Component<Props$l, SpreadsheetChildEnv> {
11764
+ declare class PivotHTMLRenderer extends Component<Props$d, SpreadsheetChildEnv> {
11611
11765
  static template: string;
11612
11766
  static components: {
11613
11767
  Checkbox: typeof Checkbox;
@@ -11664,13 +11818,7 @@ declare class PivotHTMLRenderer extends Component<Props$l, SpreadsheetChildEnv>
11664
11818
  _buildValues(id: UID, table: SpreadsheetPivotTable): PivotDialogValue[][];
11665
11819
  }
11666
11820
 
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> {
11821
+ declare class ChartShowDataMarkers extends Component<ChartSidePanelProps<ChartWithDataSetDefinition>, SpreadsheetChildEnv> {
11674
11822
  static template: string;
11675
11823
  static components: {
11676
11824
  Checkbox: typeof Checkbox;
@@ -11678,18 +11826,14 @@ declare class ChartShowDataMarkers extends Component<Props$k, SpreadsheetChildEn
11678
11826
  static props: {
11679
11827
  chartId: StringConstructor;
11680
11828
  definition: ObjectConstructor;
11681
- updateChart: FunctionConstructor;
11682
11829
  canUpdateChart: FunctionConstructor;
11830
+ updateChart: FunctionConstructor;
11683
11831
  };
11684
11832
  }
11685
11833
 
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;
11834
+ interface Props$c extends ChartSidePanelProps<ZoomableChartDefinition> {
11691
11835
  }
11692
- declare class GenericZoomableChartDesignPanel<P extends Props$j = Props$j> extends ChartWithAxisDesignPanel<Props$j> {
11836
+ declare class GenericZoomableChartDesignPanel<P extends Props$c = Props$c> extends ChartWithAxisDesignPanel<P> {
11693
11837
  static template: string;
11694
11838
  static components: {
11695
11839
  Checkbox: typeof Checkbox;
@@ -11705,13 +11849,7 @@ declare class GenericZoomableChartDesignPanel<P extends Props$j = Props$j> exten
11705
11849
  onToggleZoom(zoomable: boolean): void;
11706
11850
  }
11707
11851
 
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> {
11852
+ declare class ComboChartDesignPanel extends GenericZoomableChartDesignPanel<ChartSidePanelProps<ComboChartDefinition>> {
11715
11853
  static template: string;
11716
11854
  static components: {
11717
11855
  ChartShowDataMarkers: typeof ChartShowDataMarkers;
@@ -11734,13 +11872,7 @@ declare class ComboChartDesignPanel extends GenericZoomableChartDesignPanel<Prop
11734
11872
  getDataSeriesType(index: number): "line" | "bar";
11735
11873
  }
11736
11874
 
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> {
11875
+ declare class FunnelChartDesignPanel extends Component<ChartSidePanelProps<FunnelChartDefinition>, SpreadsheetChildEnv> {
11744
11876
  static template: string;
11745
11877
  static components: {
11746
11878
  ChartShowValues: typeof ChartShowValues;
@@ -11763,16 +11895,54 @@ declare class FunnelChartDesignPanel extends Component<Props$h, SpreadsheetChild
11763
11895
  updateFunnelItemColor(index: number, color: string): void;
11764
11896
  }
11765
11897
 
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;
11898
+ interface Props$b {
11899
+ definition: {
11900
+ colorScale: ChartColorScale;
11901
+ };
11902
+ onUpdateColorScale: (colorscale: ChartColorScale) => void;
11903
+ }
11904
+ interface ColorScalePickerState {
11905
+ popoverProps: PopoverProps | undefined;
11906
+ popoverStyle: string;
11771
11907
  }
11772
- declare class GeoChartDesignPanel extends ChartWithAxisDesignPanel<Props$g> {
11908
+ declare class ColorScalePicker extends Component<Props$b, SpreadsheetChildEnv> {
11773
11909
  static template: string;
11774
11910
  static components: {
11911
+ Section: typeof Section;
11775
11912
  RoundColorPicker: typeof RoundColorPicker;
11913
+ Popover: typeof Popover;
11914
+ };
11915
+ static props: {
11916
+ definition: ObjectConstructor;
11917
+ onUpdateColorScale: FunctionConstructor;
11918
+ };
11919
+ colorScales: {
11920
+ value: string;
11921
+ label: any;
11922
+ className: string;
11923
+ }[];
11924
+ state: ColorScalePickerState;
11925
+ popoverRef: {
11926
+ el: HTMLElement | null;
11927
+ };
11928
+ setup(): void;
11929
+ get currentColorScale(): ChartColorScale;
11930
+ get currentColorScaleStyle(): string | undefined;
11931
+ colorScalePreviewStyle(colorScale: ColorScale): string;
11932
+ get currentColorScaleLabel(): string;
11933
+ onColorScaleChange(value: string): void;
11934
+ onPointerDown(ev: PointerEvent): void;
11935
+ private closePopover;
11936
+ get selectedColorScale(): string;
11937
+ getCustomColorScaleColor(color: "minColor" | "midColor" | "maxColor"): "" | Color;
11938
+ setCustomColorScaleColor(colorType: "minColor" | "midColor" | "maxColor", color: Color): void;
11939
+ }
11940
+
11941
+ declare class GeoChartDesignPanel extends ChartWithAxisDesignPanel<ChartSidePanelProps<GeoChartDefinition>> {
11942
+ static template: string;
11943
+ static components: {
11944
+ RoundColorPicker: typeof RoundColorPicker;
11945
+ ColorScalePicker: typeof ColorScalePicker;
11776
11946
  GeneralDesignEditor: typeof GeneralDesignEditor;
11777
11947
  SidePanelCollapsible: typeof SidePanelCollapsible;
11778
11948
  Section: typeof Section;
@@ -11782,24 +11952,18 @@ declare class GeoChartDesignPanel extends ChartWithAxisDesignPanel<Props$g> {
11782
11952
  ChartShowValues: typeof ChartShowValues;
11783
11953
  ChartHumanizeNumbers: typeof ChartHumanizeNumbers;
11784
11954
  };
11785
- colorScalesChoices: Record<"blues" | "cividis" | "greens" | "greys" | "oranges" | "purples" | "rainbow" | "reds" | "viridis", string>;
11786
- updateColorScaleType(ev: Event): void;
11787
- updateColorScale(colorScale: GeoChartColorScale): void;
11955
+ updateColorScale(colorScale: ChartColorScale | undefined): void;
11788
11956
  updateMissingValueColor(color: Color): void;
11789
11957
  updateLegendPosition(ev: Event): void;
11790
- get selectedColorScale(): "custom" | "blues" | "cividis" | "greens" | "greys" | "oranges" | "purples" | "rainbow" | "reds" | "viridis";
11791
11958
  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
11959
  }
11796
11960
 
11797
- interface Props$f {
11961
+ interface Props$a {
11798
11962
  chartId: UID;
11799
11963
  definition: GeoChartDefinition;
11800
11964
  updateChart: (chartId: UID, definition: Partial<GeoChartDefinition>) => DispatchResult;
11801
11965
  }
11802
- declare class GeoChartRegionSelectSection extends Component<Props$f, SpreadsheetChildEnv> {
11966
+ declare class GeoChartRegionSelectSection extends Component<Props$a, SpreadsheetChildEnv> {
11803
11967
  static template: string;
11804
11968
  static components: {
11805
11969
  Section: typeof Section;
@@ -11814,13 +11978,7 @@ declare class GeoChartRegionSelectSection extends Component<Props$f, Spreadsheet
11814
11978
  get selectedRegion(): string;
11815
11979
  }
11816
11980
 
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> {
11981
+ declare class LineChartDesignPanel extends GenericZoomableChartDesignPanel<ChartSidePanelProps<LineChartDefinition>> {
11824
11982
  static template: string;
11825
11983
  static components: {
11826
11984
  ChartShowDataMarkers: typeof ChartShowDataMarkers;
@@ -11836,13 +11994,7 @@ declare class LineChartDesignPanel extends GenericZoomableChartDesignPanel<Props
11836
11994
  };
11837
11995
  }
11838
11996
 
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> {
11997
+ declare class RadarChartDesignPanel extends Component<ChartSidePanelProps<RadarChartDefinition>, SpreadsheetChildEnv> {
11846
11998
  static template: string;
11847
11999
  static components: {
11848
12000
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -11862,13 +12014,7 @@ declare class RadarChartDesignPanel extends Component<Props$d, SpreadsheetChildE
11862
12014
  };
11863
12015
  }
11864
12016
 
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> {
12017
+ declare class SunburstChartDesignPanel extends Component<ChartSidePanelProps<SunburstChartDefinition>, SpreadsheetChildEnv> {
11872
12018
  static template: string;
11873
12019
  static components: {
11874
12020
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -11880,15 +12026,13 @@ declare class SunburstChartDesignPanel extends Component<Props$c, SpreadsheetChi
11880
12026
  RoundColorPicker: typeof RoundColorPicker;
11881
12027
  ChartLegend: typeof ChartLegend;
11882
12028
  PieHoleSize: typeof PieHoleSize;
12029
+ ChartHumanizeNumbers: typeof ChartHumanizeNumbers;
11883
12030
  };
11884
12031
  static props: {
11885
12032
  chartId: StringConstructor;
11886
12033
  definition: ObjectConstructor;
12034
+ canUpdateChart: FunctionConstructor;
11887
12035
  updateChart: FunctionConstructor;
11888
- canUpdateChart: {
11889
- type: FunctionConstructor;
11890
- optional: boolean;
11891
- };
11892
12036
  };
11893
12037
  defaults: {
11894
12038
  showValues: boolean;
@@ -11905,12 +12049,12 @@ declare class SunburstChartDesignPanel extends Component<Props$c, SpreadsheetChi
11905
12049
  onPieHoleSizeChange(pieHolePercentage: number): void;
11906
12050
  }
11907
12051
 
11908
- interface Props$b {
12052
+ interface Props$9 {
11909
12053
  chartId: UID;
11910
12054
  definition: TreeMapChartDefinition;
11911
12055
  onColorChanged: (colors: TreeMapCategoryColorOptions) => DispatchResult;
11912
12056
  }
11913
- declare class TreeMapCategoryColors extends Component<Props$b, SpreadsheetChildEnv> {
12057
+ declare class TreeMapCategoryColors extends Component<Props$9, SpreadsheetChildEnv> {
11914
12058
  static template: string;
11915
12059
  static components: {
11916
12060
  Checkbox: typeof Checkbox;
@@ -11927,12 +12071,12 @@ declare class TreeMapCategoryColors extends Component<Props$b, SpreadsheetChildE
11927
12071
  useValueBasedGradient(useValueBasedGradient: boolean): void;
11928
12072
  }
11929
12073
 
11930
- interface Props$a {
12074
+ interface Props$8 {
11931
12075
  chartId: UID;
11932
12076
  definition: TreeMapChartDefinition;
11933
12077
  onColorChanged: (colors: TreeMapColorScaleOptions) => DispatchResult;
11934
12078
  }
11935
- declare class TreeMapColorScale extends Component<Props$a, SpreadsheetChildEnv> {
12079
+ declare class TreeMapColorScale extends Component<Props$8, SpreadsheetChildEnv> {
11936
12080
  static template: string;
11937
12081
  static components: {
11938
12082
  RoundColorPicker: typeof RoundColorPicker;
@@ -11946,13 +12090,7 @@ declare class TreeMapColorScale extends Component<Props$a, SpreadsheetChildEnv>
11946
12090
  setColorScaleColor(point: "minColor" | "midColor" | "maxColor", color: string): void;
11947
12091
  }
11948
12092
 
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> {
12093
+ declare class TreeMapChartDesignPanel extends Component<ChartSidePanelProps<TreeMapChartDefinition>, SpreadsheetChildEnv> {
11956
12094
  static template: string;
11957
12095
  static components: {
11958
12096
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -11965,15 +12103,13 @@ declare class TreeMapChartDesignPanel extends Component<Props$9, SpreadsheetChil
11965
12103
  BadgeSelection: typeof BadgeSelection;
11966
12104
  TreeMapCategoryColors: typeof TreeMapCategoryColors;
11967
12105
  TreeMapColorScale: typeof TreeMapColorScale;
12106
+ ChartHumanizeNumbers: typeof ChartHumanizeNumbers;
11968
12107
  };
11969
12108
  static props: {
11970
12109
  chartId: StringConstructor;
11971
12110
  definition: ObjectConstructor;
12111
+ canUpdateChart: FunctionConstructor;
11972
12112
  updateChart: FunctionConstructor;
11973
- canUpdateChart: {
11974
- type: FunctionConstructor;
11975
- optional: boolean;
11976
- };
11977
12113
  };
11978
12114
  private savedColors;
11979
12115
  defaults: {
@@ -11997,13 +12133,7 @@ declare class TreeMapChartDesignPanel extends Component<Props$9, SpreadsheetChil
11997
12133
  }[];
11998
12134
  }
11999
12135
 
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> {
12136
+ declare class WaterfallChartDesignPanel extends Component<ChartSidePanelProps<WaterfallChartDefinition>, SpreadsheetChildEnv> {
12007
12137
  static template: string;
12008
12138
  static components: {
12009
12139
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -12020,11 +12150,8 @@ declare class WaterfallChartDesignPanel extends Component<Props$8, SpreadsheetCh
12020
12150
  static props: {
12021
12151
  chartId: StringConstructor;
12022
12152
  definition: ObjectConstructor;
12153
+ canUpdateChart: FunctionConstructor;
12023
12154
  updateChart: FunctionConstructor;
12024
- canUpdateChart: {
12025
- type: FunctionConstructor;
12026
- optional: boolean;
12027
- };
12028
12155
  };
12029
12156
  axisChoices: {
12030
12157
  value: string;
@@ -12083,7 +12210,7 @@ declare class HoveredTableStore extends SpreadsheetStore {
12083
12210
  row: number | undefined;
12084
12211
  overlayColors: PositionMap<Color>;
12085
12212
  handle(cmd: Command): void;
12086
- hover(position: Partial<Position$1>): "noStateChange" | undefined;
12213
+ hover(position: Partial<Position>): "noStateChange" | undefined;
12087
12214
  clear(): void;
12088
12215
  private computeOverlay;
12089
12216
  }
@@ -12272,6 +12399,7 @@ declare class GridRenderer extends SpreadsheetStore {
12272
12399
  private animations;
12273
12400
  constructor(get: Get);
12274
12401
  handle(cmd: Command): void;
12402
+ finalize(): void;
12275
12403
  get renderingLayers(): readonly ["Background", "Headers"];
12276
12404
  drawLayer(renderingContext: GridRenderingContext, layer: LayerName, timeStamp: number | undefined): void;
12277
12405
  private drawGlobalBackground;
@@ -12582,6 +12710,7 @@ declare class ClickableCellsStore extends SpreadsheetStore {
12582
12710
  private getClickableItem;
12583
12711
  private findClickableItem;
12584
12712
  get clickableCells(): ClickableCell[];
12713
+ private getClickableCellRect;
12585
12714
  }
12586
12715
 
12587
12716
  interface Props$4 {
@@ -12942,6 +13071,7 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
12942
13071
 
12943
13072
  interface SpreadsheetProps extends Partial<NotificationStoreMethods> {
12944
13073
  model: Model;
13074
+ colorScheme?: "dark" | "light";
12945
13075
  }
12946
13076
  declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEnv> {
12947
13077
  static template: string;
@@ -12959,6 +13089,10 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
12959
13089
  type: FunctionConstructor;
12960
13090
  optional: boolean;
12961
13091
  };
13092
+ colorScheme: {
13093
+ type: StringConstructor;
13094
+ optional: boolean;
13095
+ };
12962
13096
  };
12963
13097
  static components: {
12964
13098
  TopBar: typeof TopBar;
@@ -12994,7 +13128,76 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
12994
13128
  width: number;
12995
13129
  height: number;
12996
13130
  };
13131
+ getSpreadSheetClasses(): string;
13132
+ }
13133
+
13134
+ interface DigitToken {
13135
+ type: "DIGIT";
13136
+ value: "0" | "#";
13137
+ }
13138
+ interface StringToken {
13139
+ type: "STRING";
13140
+ value: string;
13141
+ }
13142
+ interface CharToken {
13143
+ type: "CHAR";
13144
+ value: string;
13145
+ }
13146
+ interface PercentToken {
13147
+ type: "PERCENT";
13148
+ value: "%";
13149
+ }
13150
+ interface ScientificToken {
13151
+ type: "SCIENTIFIC";
13152
+ value: "e";
13153
+ }
13154
+ interface ThousandsSeparatorToken {
13155
+ type: "THOUSANDS_SEPARATOR";
13156
+ value: ",";
12997
13157
  }
13158
+ interface TextPlaceholderToken {
13159
+ type: "TEXT_PLACEHOLDER";
13160
+ value: "@";
13161
+ }
13162
+ interface DatePartToken {
13163
+ type: "DATE_PART";
13164
+ value: string;
13165
+ }
13166
+ interface RepeatCharToken {
13167
+ type: "REPEATED_CHAR";
13168
+ value: string;
13169
+ }
13170
+
13171
+ interface MultiPartInternalFormat {
13172
+ positive: NumberInternalFormat | DateInternalFormat | TextInternalFormat;
13173
+ negative?: NumberInternalFormat | DateInternalFormat;
13174
+ zero?: NumberInternalFormat | DateInternalFormat;
13175
+ text?: TextInternalFormat;
13176
+ }
13177
+ interface DateInternalFormat {
13178
+ type: "date";
13179
+ tokens: (DatePartToken | StringToken | CharToken | RepeatCharToken)[];
13180
+ }
13181
+ interface NumberInternalFormat {
13182
+ type: "number";
13183
+ readonly integerPart: (DigitToken | StringToken | CharToken | PercentToken | ScientificToken | ThousandsSeparatorToken | RepeatCharToken)[];
13184
+ readonly percentSymbols: number;
13185
+ readonly thousandsSeparator: boolean;
13186
+ readonly scientific: boolean;
13187
+ /** A thousand separator after the last digit in the format means that we divide the number by a thousand */
13188
+ readonly magnitude: number;
13189
+ /**
13190
+ * optional because we need to differentiate a number
13191
+ * with a dot but no decimals with a number without any decimals.
13192
+ * i.e. '5.' !=== '5' !=== '5.0'
13193
+ */
13194
+ readonly decimalPart?: (DigitToken | StringToken | CharToken | PercentToken | ScientificToken | ThousandsSeparatorToken | RepeatCharToken)[];
13195
+ }
13196
+ interface TextInternalFormat {
13197
+ type: "text";
13198
+ tokens: (StringToken | CharToken | TextPlaceholderToken | RepeatCharToken)[];
13199
+ }
13200
+ declare function parseFormat(formatString: Format): MultiPartInternalFormat;
12998
13201
 
12999
13202
  /**
13000
13203
  * Get the first Pivot function description of the given formula.
@@ -13090,9 +13293,9 @@ declare const registries: {
13090
13293
  supportedPivotPositionalFormulaRegistry: Registry<boolean>;
13091
13294
  pivotToFunctionValueRegistry: Registry<(value: CellValue, granularity?: string) => string>;
13092
13295
  migrationStepRegistry: Registry$1<MigrationStep>;
13093
- chartJsExtensionRegistry: Registry<{
13094
- register: (chart: typeof window.Chart) => void;
13095
- unregister: (chart: typeof window.Chart) => void;
13296
+ chartJsExtensionRegistry: Registry$1<{
13297
+ register: (chart: GlobalChart) => void;
13298
+ unregister: (chart: GlobalChart) => void;
13096
13299
  }>;
13097
13300
  };
13098
13301
 
@@ -13158,6 +13361,13 @@ declare const helpers: {
13158
13361
  isNumber: typeof isNumber;
13159
13362
  isDateTime: typeof isDateTime;
13160
13363
  createCustomFields: typeof createCustomFields;
13364
+ schemeToColorScale: typeof schemeToColorScale;
13365
+ isDateTimeFormat: (format: Format) => boolean;
13366
+ jsDateToNumber: typeof jsDateToNumber;
13367
+ numberToJsDate: typeof numberToJsDate;
13368
+ DateTime: typeof DateTime;
13369
+ parseFormat: typeof parseFormat;
13370
+ isFormula: typeof isFormula;
13161
13371
  };
13162
13372
  declare const links: {
13163
13373
  isMarkdownLink: typeof isMarkdownLink;
@@ -13223,6 +13433,8 @@ declare const components: {
13223
13433
  ChartDashboardMenu: typeof ChartDashboardMenu;
13224
13434
  FullScreenFigure: typeof FullScreenFigure;
13225
13435
  NumberInput: typeof NumberInput;
13436
+ TopBar: typeof TopBar;
13437
+ Composer: typeof Composer;
13226
13438
  };
13227
13439
  declare const hooks: {
13228
13440
  useDragAndDropListItems: typeof useDragAndDropListItems;
@@ -13272,9 +13484,7 @@ declare const constants: {
13272
13484
  };
13273
13485
  ChartTerms: {
13274
13486
  [key: string]: any;
13275
- GeoChart: {
13276
- ColorScales: Record<Extract<GeoChartColorScale, string>, string>;
13277
- };
13487
+ ColorScales: Record<Extract<ChartColorScale, string>, string>;
13278
13488
  };
13279
13489
  FIGURE_ID_SPLITTER: string;
13280
13490
  GRID_ICON_EDGE_LENGTH: number;
@@ -13282,6 +13492,7 @@ declare const constants: {
13282
13492
  };
13283
13493
  declare const chartHelpers: {
13284
13494
  getBarChartData(definition: GenericDefinition<BarChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
13495
+ getCalendarChartData(definition: GenericDefinition<CalendarChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
13285
13496
  getPyramidChartData(definition: PyramidChartDefinition, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
13286
13497
  getLineChartData(definition: GenericDefinition<LineChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
13287
13498
  getPieChartData(definition: GenericDefinition<PieChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
@@ -13297,6 +13508,10 @@ declare const chartHelpers: {
13297
13508
  makeDatasetsCumulative(datasets: DatasetValues[], order: "asc" | "desc"): DatasetValues[];
13298
13509
  getTopPaddingForDashboard(definition: GenericDefinition<PieChartDefinition | LineChartDefinition | BarChartDefinition>, getters: Getters): 0 | 30;
13299
13510
  getBarChartDatasets(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"bar" | "line">[];
13511
+ getCalendarChartDatasetAndLabels(definition: CalendarChartDefinition, args: ChartRuntimeGenerationArgs): {
13512
+ datasets: chart_js.ChartDataset<"calendar">[];
13513
+ labels: string[];
13514
+ };
13300
13515
  getWaterfallDatasetAndLabels(definition: GenericDefinition<WaterfallChartDefinition>, args: ChartRuntimeGenerationArgs): {
13301
13516
  datasets: chart_js.ChartDataset[];
13302
13517
  labels: string[];
@@ -13317,6 +13532,10 @@ declare const chartHelpers: {
13317
13532
  autoPadding: boolean;
13318
13533
  padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
13319
13534
  }>> | undefined;
13535
+ getCalendarChartLayout(definition: GenericDefinition<ChartWithDataSetDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<Partial<{
13536
+ autoPadding: boolean;
13537
+ padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
13538
+ }>> | undefined;
13320
13539
  getBarChartLegend(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.LegendOptions<any>>;
13321
13540
  getLineChartLegend(definition: GenericDefinition<LineChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.LegendOptions<any>>;
13322
13541
  getPieChartLegend(definition: GenericDefinition<LineChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.LegendOptions<any>>;
@@ -13330,402 +13549,11 @@ declare const chartHelpers: {
13330
13549
  onLeave: (event: any) => void;
13331
13550
  onClick: (event: any, legendItem: any, legend: any) => void;
13332
13551
  };
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
- };
13552
+ getBarChartScales(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils.DeepPartial<chart_js.ScaleChartOptions<"line" | "bar">["scales"]>;
13553
+ getCalendarChartScales(definition: GenericDefinition<BarChartDefinition>, datasets: chart_js.ChartDataset[]): chart_js_dist_types_utils.DeepPartial<chart_js.ScaleChartOptions<"calendar">["scales"]>;
13554
+ getCalendarColorScale(definition: CalendarChartDefinition, args: ChartRuntimeGenerationArgs): ChartColorScalePluginOptions | undefined;
13555
+ getLineChartScales(definition: GenericDefinition<LineChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils.DeepPartial<chart_js.ScaleChartOptions<"line">["scales"]>;
13556
+ getScatterChartScales(definition: GenericDefinition<ScatterChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils.DeepPartial<chart_js.ScaleChartOptions<"line">["scales"]>;
13729
13557
  getWaterfallChartScales(definition: WaterfallChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<{
13730
13558
  [key: string]: chart_js.ScaleOptionsByType<"radialLinear" | keyof chart_js.CartesianScaleTypeRegistry>;
13731
13559
  }>;
@@ -13741,12 +13569,15 @@ declare const chartHelpers: {
13741
13569
  getFunnelChartScales(definition: FunnelChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<{
13742
13570
  [key: string]: chart_js.ScaleOptionsByType<"radialLinear" | keyof chart_js.CartesianScaleTypeRegistry>;
13743
13571
  }>;
13572
+ getRuntimeColorScale(colorScale: ChartColorScale, minValue?: number, maxValue?: number): (value: number) => Color;
13744
13573
  getChartShowValues(definition: ChartWithDataSetDefinition, args: ChartRuntimeGenerationArgs): ChartShowValuesPluginOptions;
13574
+ getCalendarChartShowValues(definition: CalendarChartDefinition, args: ChartRuntimeGenerationArgs): ChartShowValuesPluginOptions;
13745
13575
  getSunburstShowValues(definition: SunburstChartDefinition, args: ChartRuntimeGenerationArgs): ChartSunburstLabelsPluginOptions;
13746
13576
  getPyramidChartShowValues(definition: ChartWithDataSetDefinition, args: ChartRuntimeGenerationArgs): ChartShowValuesPluginOptions;
13747
13577
  getWaterfallChartShowValues(definition: WaterfallChartDefinition, args: ChartRuntimeGenerationArgs): ChartShowValuesPluginOptions;
13748
13578
  getChartTitle(definition: ChartWithDataSetDefinition, getters: Getters): chart_js_dist_types_utils._DeepPartialObject<chart_js.TitleOptions>;
13749
13579
  getBarChartTooltip(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
13580
+ getCalendarChartTooltip(definition: CalendarChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
13750
13581
  getLineChartTooltip(definition: GenericDefinition<LineChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
13751
13582
  getPieChartTooltip(definition: PieChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
13752
13583
  getWaterfallChartTooltip(definition: WaterfallChartDefinition, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<chart_js.TooltipOptions<any>>;
@@ -13831,4 +13662,4 @@ declare const chartHelpers: {
13831
13662
  WaterfallChart: typeof WaterfallChart;
13832
13663
  };
13833
13664
 
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 };
13665
+ 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 };