@odoo/o-spreadsheet 18.1.0-alpha.5 → 18.1.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/o-spreadsheet.cjs.js +352 -316
- package/dist/o-spreadsheet.d.ts +367 -234
- package/dist/o-spreadsheet.esm.js +352 -316
- package/dist/o-spreadsheet.iife.js +352 -316
- package/dist/o-spreadsheet.iife.min.js +449 -449
- package/dist/o_spreadsheet.xml +33 -20
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -295,6 +295,7 @@ interface TitleDesign {
|
|
|
295
295
|
readonly italic?: boolean;
|
|
296
296
|
readonly align?: Align;
|
|
297
297
|
readonly color?: Color;
|
|
298
|
+
readonly fontSize?: number;
|
|
298
299
|
}
|
|
299
300
|
type TrendType = "polynomial" | "exponential" | "logarithmic" | "trailingMovingAverage";
|
|
300
301
|
interface TrendConfiguration {
|
|
@@ -1318,6 +1319,8 @@ interface SearchOptions {
|
|
|
1318
1319
|
*/
|
|
1319
1320
|
declare function deepCopy<T>(obj: T): T;
|
|
1320
1321
|
declare function unquote(string: string, quoteChar?: "'" | '"'): string;
|
|
1322
|
+
/** Replace the excel-excluded characters of a sheetName */
|
|
1323
|
+
declare function sanitizeSheetName(sheetName: string, replacementChar?: string): string;
|
|
1321
1324
|
declare function isMarkdownLink(str: string): boolean;
|
|
1322
1325
|
/**
|
|
1323
1326
|
* Build a markdown link from a label and an url
|
|
@@ -2992,7 +2995,9 @@ declare const enum CommandResult {
|
|
|
2992
2995
|
MaxInvalidFormula = "MaxInvalidFormula",
|
|
2993
2996
|
ValueUpperInvalidFormula = "ValueUpperInvalidFormula",
|
|
2994
2997
|
ValueLowerInvalidFormula = "ValueLowerInvalidFormula",
|
|
2998
|
+
InvalidSortAnchor = "InvalidSortAnchor",
|
|
2995
2999
|
InvalidSortZone = "InvalidSortZone",
|
|
3000
|
+
SortZoneWithArrayFormulas = "SortZoneWithArrayFormulas",
|
|
2996
3001
|
WaitingSessionConfirmation = "WaitingSessionConfirmation",
|
|
2997
3002
|
MergeOverlap = "MergeOverlap",
|
|
2998
3003
|
TooManyHiddenElements = "TooManyHiddenElements",
|
|
@@ -3047,8 +3052,7 @@ declare const enum CommandResult {
|
|
|
3047
3052
|
EmptyName = "EmptyName",
|
|
3048
3053
|
ValueCellIsInvalidFormula = "ValueCellIsInvalidFormula",
|
|
3049
3054
|
InvalidDefinition = "InvalidDefinition",
|
|
3050
|
-
InvalidColor = "InvalidColor"
|
|
3051
|
-
DataBarRangeValuesMismatch = "DataBarRangeValuesMismatch"
|
|
3055
|
+
InvalidColor = "InvalidColor"
|
|
3052
3056
|
}
|
|
3053
3057
|
interface CommandHandler<T> {
|
|
3054
3058
|
allowDispatch(command: T): CommandResult | CommandResult[];
|
|
@@ -4365,7 +4369,6 @@ declare class ConditionalFormatPlugin extends CorePlugin<ConditionalFormatState>
|
|
|
4365
4369
|
private checkMidBiggerThanMax;
|
|
4366
4370
|
private checkMinBiggerThanMid;
|
|
4367
4371
|
private checkCFValues;
|
|
4368
|
-
private checkDataBarRangeValues;
|
|
4369
4372
|
private removeConditionalFormatting;
|
|
4370
4373
|
private changeCFPriority;
|
|
4371
4374
|
}
|
|
@@ -5074,7 +5077,6 @@ declare class EvaluationConditionalFormatPlugin extends UIPlugin {
|
|
|
5074
5077
|
private applyIcon;
|
|
5075
5078
|
private computeIcon;
|
|
5076
5079
|
private applyDataBar;
|
|
5077
|
-
private getEvaluatedCellInZone;
|
|
5078
5080
|
/** Compute the color scale for the given range and CF rule, and apply in in the given computedStyle object */
|
|
5079
5081
|
private applyColorScale;
|
|
5080
5082
|
private computeColorDiffUnits;
|
|
@@ -5590,6 +5592,7 @@ declare class SortPlugin extends UIPlugin {
|
|
|
5590
5592
|
handle(cmd: Command): void;
|
|
5591
5593
|
private checkMerge;
|
|
5592
5594
|
private checkMergeSizes;
|
|
5595
|
+
private checkArrayFormulaInSortZone;
|
|
5593
5596
|
/**
|
|
5594
5597
|
* This function evaluates if the top row of a provided zone can be considered as a `header`
|
|
5595
5598
|
* by checking the following criteria:
|
|
@@ -6586,7 +6589,7 @@ interface ChartSubtypeProperties {
|
|
|
6586
6589
|
preview: string;
|
|
6587
6590
|
}
|
|
6588
6591
|
|
|
6589
|
-
interface Props$
|
|
6592
|
+
interface Props$1b {
|
|
6590
6593
|
label?: string;
|
|
6591
6594
|
value: boolean;
|
|
6592
6595
|
className?: string;
|
|
@@ -6595,7 +6598,7 @@ interface Props$18 {
|
|
|
6595
6598
|
disabled?: boolean;
|
|
6596
6599
|
onChange: (value: boolean) => void;
|
|
6597
6600
|
}
|
|
6598
|
-
declare class Checkbox extends Component<Props$
|
|
6601
|
+
declare class Checkbox extends Component<Props$1b, SpreadsheetChildEnv> {
|
|
6599
6602
|
static template: string;
|
|
6600
6603
|
static props: {
|
|
6601
6604
|
label: {
|
|
@@ -6630,10 +6633,10 @@ declare class Checkbox extends Component<Props$18, SpreadsheetChildEnv> {
|
|
|
6630
6633
|
onChange(ev: InputEvent): void;
|
|
6631
6634
|
}
|
|
6632
6635
|
|
|
6633
|
-
interface Props$
|
|
6636
|
+
interface Props$1a {
|
|
6634
6637
|
class?: string;
|
|
6635
6638
|
}
|
|
6636
|
-
declare class Section extends Component<Props$
|
|
6639
|
+
declare class Section extends Component<Props$1a, SpreadsheetChildEnv> {
|
|
6637
6640
|
static template: string;
|
|
6638
6641
|
static props: {
|
|
6639
6642
|
class: {
|
|
@@ -6766,7 +6769,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
|
|
|
6766
6769
|
getIndex(rangeId: number | null): number | null;
|
|
6767
6770
|
}
|
|
6768
6771
|
|
|
6769
|
-
interface Props$
|
|
6772
|
+
interface Props$19 {
|
|
6770
6773
|
ranges: string[];
|
|
6771
6774
|
hasSingleRange?: boolean;
|
|
6772
6775
|
required?: boolean;
|
|
@@ -6789,7 +6792,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
|
|
|
6789
6792
|
* onSelectionChanged is called every time the input value
|
|
6790
6793
|
* changes.
|
|
6791
6794
|
*/
|
|
6792
|
-
declare class SelectionInput extends Component<Props$
|
|
6795
|
+
declare class SelectionInput extends Component<Props$19, SpreadsheetChildEnv> {
|
|
6793
6796
|
static template: string;
|
|
6794
6797
|
static props: {
|
|
6795
6798
|
ranges: ArrayConstructor;
|
|
@@ -6844,13 +6847,13 @@ declare class SelectionInput extends Component<Props$16, SpreadsheetChildEnv> {
|
|
|
6844
6847
|
confirm(): void;
|
|
6845
6848
|
}
|
|
6846
6849
|
|
|
6847
|
-
interface Props$
|
|
6850
|
+
interface Props$18 {
|
|
6848
6851
|
ranges: CustomizedDataSet[];
|
|
6849
6852
|
hasSingleRange?: boolean;
|
|
6850
6853
|
onSelectionChanged: (ranges: string[]) => void;
|
|
6851
6854
|
onSelectionConfirmed: () => void;
|
|
6852
6855
|
}
|
|
6853
|
-
declare class ChartDataSeries extends Component<Props$
|
|
6856
|
+
declare class ChartDataSeries extends Component<Props$18, SpreadsheetChildEnv> {
|
|
6854
6857
|
static template: string;
|
|
6855
6858
|
static components: {
|
|
6856
6859
|
SelectionInput: typeof SelectionInput;
|
|
@@ -6870,12 +6873,12 @@ declare class ChartDataSeries extends Component<Props$15, SpreadsheetChildEnv> {
|
|
|
6870
6873
|
get title(): string;
|
|
6871
6874
|
}
|
|
6872
6875
|
|
|
6873
|
-
interface Props$
|
|
6876
|
+
interface Props$17 {
|
|
6874
6877
|
messages: string[];
|
|
6875
6878
|
msgType: "warning" | "error" | "info";
|
|
6876
6879
|
singleBox?: boolean;
|
|
6877
6880
|
}
|
|
6878
|
-
declare class ValidationMessages extends Component<Props$
|
|
6881
|
+
declare class ValidationMessages extends Component<Props$17, SpreadsheetChildEnv> {
|
|
6879
6882
|
static template: string;
|
|
6880
6883
|
static props: {
|
|
6881
6884
|
messages: ArrayConstructor;
|
|
@@ -6889,10 +6892,10 @@ declare class ValidationMessages extends Component<Props$14, SpreadsheetChildEnv
|
|
|
6889
6892
|
get alertBoxes(): string[][];
|
|
6890
6893
|
}
|
|
6891
6894
|
|
|
6892
|
-
interface Props$
|
|
6895
|
+
interface Props$16 {
|
|
6893
6896
|
messages: string[];
|
|
6894
6897
|
}
|
|
6895
|
-
declare class ChartErrorSection extends Component<Props$
|
|
6898
|
+
declare class ChartErrorSection extends Component<Props$16, SpreadsheetChildEnv> {
|
|
6896
6899
|
static template: string;
|
|
6897
6900
|
static components: {
|
|
6898
6901
|
Section: typeof Section;
|
|
@@ -6906,7 +6909,7 @@ declare class ChartErrorSection extends Component<Props$13, SpreadsheetChildEnv>
|
|
|
6906
6909
|
};
|
|
6907
6910
|
}
|
|
6908
6911
|
|
|
6909
|
-
interface Props$
|
|
6912
|
+
interface Props$15 {
|
|
6910
6913
|
title?: string;
|
|
6911
6914
|
range: string;
|
|
6912
6915
|
isInvalid: boolean;
|
|
@@ -6919,7 +6922,7 @@ interface Props$12 {
|
|
|
6919
6922
|
onChange: (value: boolean) => void;
|
|
6920
6923
|
}>;
|
|
6921
6924
|
}
|
|
6922
|
-
declare class ChartLabelRange extends Component<Props$
|
|
6925
|
+
declare class ChartLabelRange extends Component<Props$15, SpreadsheetChildEnv> {
|
|
6923
6926
|
static template: string;
|
|
6924
6927
|
static components: {
|
|
6925
6928
|
SelectionInput: typeof SelectionInput;
|
|
@@ -6940,16 +6943,16 @@ declare class ChartLabelRange extends Component<Props$12, SpreadsheetChildEnv> {
|
|
|
6940
6943
|
optional: boolean;
|
|
6941
6944
|
};
|
|
6942
6945
|
};
|
|
6943
|
-
static defaultProps: Partial<Props$
|
|
6946
|
+
static defaultProps: Partial<Props$15>;
|
|
6944
6947
|
}
|
|
6945
6948
|
|
|
6946
|
-
interface Props$
|
|
6949
|
+
interface Props$14 {
|
|
6947
6950
|
figureId: UID;
|
|
6948
6951
|
definition: ChartWithDataSetDefinition;
|
|
6949
6952
|
canUpdateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
6950
6953
|
updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
6951
6954
|
}
|
|
6952
|
-
declare class GenericChartConfigPanel extends Component<Props$
|
|
6955
|
+
declare class GenericChartConfigPanel extends Component<Props$14, SpreadsheetChildEnv> {
|
|
6953
6956
|
static template: string;
|
|
6954
6957
|
static components: {
|
|
6955
6958
|
ChartDataSeries: typeof ChartDataSeries;
|
|
@@ -6988,10 +6991,7 @@ declare class GenericChartConfigPanel extends Component<Props$11, SpreadsheetChi
|
|
|
6988
6991
|
GaugeRangeMinNaN: string;
|
|
6989
6992
|
EmptyGaugeRangeMax: string;
|
|
6990
6993
|
GaugeRangeMaxNaN: string;
|
|
6991
|
-
GaugeRangeMinBiggerThanRangeMax: string;
|
|
6992
|
-
* Change the local labelRange. The model should be updated when the
|
|
6993
|
-
* button "confirm" is clicked
|
|
6994
|
-
*/
|
|
6994
|
+
GaugeRangeMinBiggerThanRangeMax: string;
|
|
6995
6995
|
GaugeLowerInflectionPointNaN: string;
|
|
6996
6996
|
GaugeUpperInflectionPointNaN: string;
|
|
6997
6997
|
};
|
|
@@ -7056,12 +7056,12 @@ interface Choice$1 {
|
|
|
7056
7056
|
value: string;
|
|
7057
7057
|
label: string;
|
|
7058
7058
|
}
|
|
7059
|
-
interface Props$
|
|
7059
|
+
interface Props$13 {
|
|
7060
7060
|
choices: Choice$1[];
|
|
7061
7061
|
onChange: (value: string) => void;
|
|
7062
7062
|
selectedValue: string;
|
|
7063
7063
|
}
|
|
7064
|
-
declare class BadgeSelection extends Component<Props$
|
|
7064
|
+
declare class BadgeSelection extends Component<Props$13, SpreadsheetChildEnv> {
|
|
7065
7065
|
static template: string;
|
|
7066
7066
|
static props: {
|
|
7067
7067
|
choices: ArrayConstructor;
|
|
@@ -7218,7 +7218,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
|
|
|
7218
7218
|
isSameColor(color1: Color, color2: Color): boolean;
|
|
7219
7219
|
}
|
|
7220
7220
|
|
|
7221
|
-
interface Props
|
|
7221
|
+
interface Props$12 {
|
|
7222
7222
|
currentColor: string | undefined;
|
|
7223
7223
|
toggleColorPicker: () => void;
|
|
7224
7224
|
showColorPicker: boolean;
|
|
@@ -7229,7 +7229,7 @@ interface Props$$ {
|
|
|
7229
7229
|
dropdownMaxHeight?: Pixel;
|
|
7230
7230
|
class?: string;
|
|
7231
7231
|
}
|
|
7232
|
-
declare class ColorPickerWidget extends Component<Props
|
|
7232
|
+
declare class ColorPickerWidget extends Component<Props$12, SpreadsheetChildEnv> {
|
|
7233
7233
|
static template: string;
|
|
7234
7234
|
static props: {
|
|
7235
7235
|
currentColor: {
|
|
@@ -7267,7 +7267,67 @@ declare class ColorPickerWidget extends Component<Props$$, SpreadsheetChildEnv>
|
|
|
7267
7267
|
get colorPickerAnchorRect(): Rect;
|
|
7268
7268
|
}
|
|
7269
7269
|
|
|
7270
|
-
|
|
7270
|
+
declare class CellPopoverStore extends SpreadsheetStore {
|
|
7271
|
+
mutators: readonly ["open", "close"];
|
|
7272
|
+
private persistentPopover?;
|
|
7273
|
+
protected hoveredCell: {
|
|
7274
|
+
readonly clear: () => void;
|
|
7275
|
+
readonly hover: (position: Position$1) => void;
|
|
7276
|
+
readonly mutators: readonly ["clear", "hover"];
|
|
7277
|
+
readonly col: number | undefined;
|
|
7278
|
+
readonly row: number | undefined;
|
|
7279
|
+
readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
|
|
7280
|
+
};
|
|
7281
|
+
handle(cmd: Command): void;
|
|
7282
|
+
open({ col, row }: Position$1, type: CellPopoverType): void;
|
|
7283
|
+
close(): void;
|
|
7284
|
+
get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
|
|
7285
|
+
get isOpen(): boolean;
|
|
7286
|
+
get cellPopover(): ClosedCellPopover | PositionedCellPopoverComponent;
|
|
7287
|
+
private computePopoverAnchorRect;
|
|
7288
|
+
}
|
|
7289
|
+
|
|
7290
|
+
interface State$8 {
|
|
7291
|
+
isOpen: boolean;
|
|
7292
|
+
}
|
|
7293
|
+
interface Props$11 {
|
|
7294
|
+
currentFontSize: number;
|
|
7295
|
+
class: string;
|
|
7296
|
+
onFontSizeChanged: (fontSize: number) => void;
|
|
7297
|
+
onToggle?: () => void;
|
|
7298
|
+
}
|
|
7299
|
+
declare class FontSizeEditor extends Component<Props$11, SpreadsheetChildEnv> {
|
|
7300
|
+
static template: string;
|
|
7301
|
+
static props: {
|
|
7302
|
+
currentFontSize: NumberConstructor;
|
|
7303
|
+
onFontSizeChanged: FunctionConstructor;
|
|
7304
|
+
onToggle: {
|
|
7305
|
+
type: FunctionConstructor;
|
|
7306
|
+
optional: boolean;
|
|
7307
|
+
};
|
|
7308
|
+
class: StringConstructor;
|
|
7309
|
+
};
|
|
7310
|
+
static components: {
|
|
7311
|
+
Popover: typeof Popover;
|
|
7312
|
+
};
|
|
7313
|
+
fontSizes: number[];
|
|
7314
|
+
dropdown: State$8;
|
|
7315
|
+
private inputRef;
|
|
7316
|
+
private rootEditorRef;
|
|
7317
|
+
private fontSizeListRef;
|
|
7318
|
+
setup(): void;
|
|
7319
|
+
get popoverProps(): PopoverProps;
|
|
7320
|
+
onExternalClick(ev: MouseEvent): void;
|
|
7321
|
+
toggleFontList(): void;
|
|
7322
|
+
closeFontList(): void;
|
|
7323
|
+
private setSize;
|
|
7324
|
+
setSizeFromInput(ev: InputEvent): void;
|
|
7325
|
+
setSizeFromList(fontSizeStr: string): void;
|
|
7326
|
+
onInputFocused(ev: InputEvent): void;
|
|
7327
|
+
onInputKeydown(ev: KeyboardEvent): void;
|
|
7328
|
+
}
|
|
7329
|
+
|
|
7330
|
+
interface Props$10 {
|
|
7271
7331
|
title?: string;
|
|
7272
7332
|
updateTitle: (title: string) => void;
|
|
7273
7333
|
name?: string;
|
|
@@ -7276,12 +7336,14 @@ interface Props$_ {
|
|
|
7276
7336
|
updateAlignment?: (string: any) => void;
|
|
7277
7337
|
updateColor?: (Color: any) => void;
|
|
7278
7338
|
style: TitleDesign;
|
|
7339
|
+
onFontSizeChanged: (fontSize: number) => void;
|
|
7279
7340
|
}
|
|
7280
|
-
declare class ChartTitle extends Component<Props$
|
|
7341
|
+
declare class ChartTitle extends Component<Props$10, SpreadsheetChildEnv> {
|
|
7281
7342
|
static template: string;
|
|
7282
7343
|
static components: {
|
|
7283
7344
|
Section: typeof Section;
|
|
7284
7345
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
7346
|
+
FontSizeEditor: typeof FontSizeEditor;
|
|
7285
7347
|
};
|
|
7286
7348
|
static props: {
|
|
7287
7349
|
title: {
|
|
@@ -7309,10 +7371,8 @@ declare class ChartTitle extends Component<Props$_, SpreadsheetChildEnv> {
|
|
|
7309
7371
|
type: FunctionConstructor;
|
|
7310
7372
|
optional: boolean;
|
|
7311
7373
|
};
|
|
7312
|
-
style:
|
|
7313
|
-
|
|
7314
|
-
optional: boolean;
|
|
7315
|
-
};
|
|
7374
|
+
style: ObjectConstructor;
|
|
7375
|
+
onFontSizeChanged: FunctionConstructor;
|
|
7316
7376
|
};
|
|
7317
7377
|
static defaultProps: {
|
|
7318
7378
|
title: string;
|
|
@@ -7323,6 +7383,7 @@ declare class ChartTitle extends Component<Props$_, SpreadsheetChildEnv> {
|
|
|
7323
7383
|
activeTool: string;
|
|
7324
7384
|
};
|
|
7325
7385
|
updateTitle(ev: InputEvent): void;
|
|
7386
|
+
updateFontSize(fontSize: number): void;
|
|
7326
7387
|
toggleDropdownTool(tool: string, ev: MouseEvent): void;
|
|
7327
7388
|
/**
|
|
7328
7389
|
* TODO: This is clearly not a goot way to handle external click, but
|
|
@@ -7340,13 +7401,13 @@ interface AxisDefinition {
|
|
|
7340
7401
|
id: string;
|
|
7341
7402
|
name: string;
|
|
7342
7403
|
}
|
|
7343
|
-
interface Props
|
|
7404
|
+
interface Props$$ {
|
|
7344
7405
|
figureId: UID;
|
|
7345
7406
|
definition: ChartWithDataSetDefinition | WaterfallChartDefinition;
|
|
7346
7407
|
updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition | WaterfallChartDefinition>) => DispatchResult;
|
|
7347
7408
|
axesList: AxisDefinition[];
|
|
7348
7409
|
}
|
|
7349
|
-
declare class AxisDesignEditor extends Component<Props
|
|
7410
|
+
declare class AxisDesignEditor extends Component<Props$$, SpreadsheetChildEnv> {
|
|
7350
7411
|
static template: string;
|
|
7351
7412
|
static components: {
|
|
7352
7413
|
Section: typeof Section;
|
|
@@ -7368,6 +7429,7 @@ declare class AxisDesignEditor extends Component<Props$Z, SpreadsheetChildEnv> {
|
|
|
7368
7429
|
label: string;
|
|
7369
7430
|
}[];
|
|
7370
7431
|
updateAxisTitleColor(color: Color): void;
|
|
7432
|
+
updateAxisTitleFontSize(fontSize: number): void;
|
|
7371
7433
|
toggleBoldAxisTitle(): void;
|
|
7372
7434
|
toggleItalicAxisTitle(): void;
|
|
7373
7435
|
updateAxisTitleAlignment(align: "left" | "center" | "right"): void;
|
|
@@ -7376,13 +7438,13 @@ declare class AxisDesignEditor extends Component<Props$Z, SpreadsheetChildEnv> {
|
|
|
7376
7438
|
updateAxisTitle(text: string): void;
|
|
7377
7439
|
}
|
|
7378
7440
|
|
|
7379
|
-
interface Props$
|
|
7441
|
+
interface Props$_ {
|
|
7380
7442
|
currentColor?: string;
|
|
7381
7443
|
onColorPicked: (color: string) => void;
|
|
7382
7444
|
title?: string;
|
|
7383
7445
|
disableNoColor?: boolean;
|
|
7384
7446
|
}
|
|
7385
|
-
declare class RoundColorPicker extends Component<Props$
|
|
7447
|
+
declare class RoundColorPicker extends Component<Props$_, SpreadsheetChildEnv> {
|
|
7386
7448
|
static template: string;
|
|
7387
7449
|
static components: {
|
|
7388
7450
|
Section: typeof Section;
|
|
@@ -7415,12 +7477,13 @@ declare class RoundColorPicker extends Component<Props$Y, SpreadsheetChildEnv> {
|
|
|
7415
7477
|
get buttonStyle(): string;
|
|
7416
7478
|
}
|
|
7417
7479
|
|
|
7418
|
-
interface Props$
|
|
7480
|
+
interface Props$Z {
|
|
7419
7481
|
figureId: UID;
|
|
7420
7482
|
definition: ChartDefinition;
|
|
7421
7483
|
updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
|
|
7484
|
+
defaultChartTitleFontSize?: number;
|
|
7422
7485
|
}
|
|
7423
|
-
declare class GeneralDesignEditor extends Component<Props$
|
|
7486
|
+
declare class GeneralDesignEditor extends Component<Props$Z, SpreadsheetChildEnv> {
|
|
7424
7487
|
static template: string;
|
|
7425
7488
|
static components: {
|
|
7426
7489
|
RoundColorPicker: typeof RoundColorPicker;
|
|
@@ -7432,11 +7495,18 @@ declare class GeneralDesignEditor extends Component<Props$X, SpreadsheetChildEnv
|
|
|
7432
7495
|
figureId: StringConstructor;
|
|
7433
7496
|
definition: ObjectConstructor;
|
|
7434
7497
|
updateChart: FunctionConstructor;
|
|
7498
|
+
defaultChartTitleFontSize: {
|
|
7499
|
+
type: NumberConstructor;
|
|
7500
|
+
optional: boolean;
|
|
7501
|
+
};
|
|
7435
7502
|
slots: {
|
|
7436
7503
|
type: ObjectConstructor;
|
|
7437
7504
|
optional: boolean;
|
|
7438
7505
|
};
|
|
7439
7506
|
};
|
|
7507
|
+
static defaultProps: {
|
|
7508
|
+
defaultChartTitleFontSize: number;
|
|
7509
|
+
};
|
|
7440
7510
|
private state;
|
|
7441
7511
|
setup(): void;
|
|
7442
7512
|
get title(): TitleDesign;
|
|
@@ -7445,17 +7515,18 @@ declare class GeneralDesignEditor extends Component<Props$X, SpreadsheetChildEnv
|
|
|
7445
7515
|
updateTitle(newTitle: string): void;
|
|
7446
7516
|
get titleStyle(): TitleDesign;
|
|
7447
7517
|
updateChartTitleColor(color: Color): void;
|
|
7518
|
+
updateChartTitleFontSize(fontSize: number): void;
|
|
7448
7519
|
toggleBoldChartTitle(): void;
|
|
7449
7520
|
toggleItalicChartTitle(): void;
|
|
7450
7521
|
updateChartTitleAlignment(align: "left" | "center" | "right"): void;
|
|
7451
7522
|
}
|
|
7452
7523
|
|
|
7453
|
-
interface Props$
|
|
7524
|
+
interface Props$Y {
|
|
7454
7525
|
figureId: UID;
|
|
7455
7526
|
definition: ChartWithDataSetDefinition;
|
|
7456
7527
|
updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7457
7528
|
}
|
|
7458
|
-
declare class ChartLegend extends Component<Props$
|
|
7529
|
+
declare class ChartLegend extends Component<Props$Y, SpreadsheetChildEnv> {
|
|
7459
7530
|
static template: string;
|
|
7460
7531
|
static components: {
|
|
7461
7532
|
Section: typeof Section;
|
|
@@ -7472,14 +7543,14 @@ interface Choice {
|
|
|
7472
7543
|
value: unknown;
|
|
7473
7544
|
label: string;
|
|
7474
7545
|
}
|
|
7475
|
-
interface Props$
|
|
7546
|
+
interface Props$X {
|
|
7476
7547
|
choices: Choice[];
|
|
7477
7548
|
onChange: (value: unknown) => void;
|
|
7478
7549
|
selectedValue: string;
|
|
7479
7550
|
name: string;
|
|
7480
7551
|
direction: "horizontal" | "vertical";
|
|
7481
7552
|
}
|
|
7482
|
-
declare class RadioSelection extends Component<Props$
|
|
7553
|
+
declare class RadioSelection extends Component<Props$X, SpreadsheetChildEnv> {
|
|
7483
7554
|
static template: string;
|
|
7484
7555
|
static props: {
|
|
7485
7556
|
choices: ArrayConstructor;
|
|
@@ -7498,13 +7569,13 @@ declare class RadioSelection extends Component<Props$V, SpreadsheetChildEnv> {
|
|
|
7498
7569
|
};
|
|
7499
7570
|
}
|
|
7500
7571
|
|
|
7501
|
-
interface Props$
|
|
7572
|
+
interface Props$W {
|
|
7502
7573
|
figureId: UID;
|
|
7503
7574
|
definition: ChartWithDataSetDefinition;
|
|
7504
7575
|
canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7505
7576
|
updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7506
7577
|
}
|
|
7507
|
-
declare class SeriesDesignEditor extends Component<Props$
|
|
7578
|
+
declare class SeriesDesignEditor extends Component<Props$W, SpreadsheetChildEnv> {
|
|
7508
7579
|
static template: string;
|
|
7509
7580
|
static components: {
|
|
7510
7581
|
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
@@ -7532,13 +7603,13 @@ declare class SeriesDesignEditor extends Component<Props$U, SpreadsheetChildEnv>
|
|
|
7532
7603
|
getDataSerieLabel(): string | undefined;
|
|
7533
7604
|
}
|
|
7534
7605
|
|
|
7535
|
-
interface Props$
|
|
7606
|
+
interface Props$V {
|
|
7536
7607
|
figureId: UID;
|
|
7537
7608
|
definition: ChartWithDataSetDefinition;
|
|
7538
7609
|
canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7539
7610
|
updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7540
7611
|
}
|
|
7541
|
-
declare class SeriesWithAxisDesignEditor extends Component<Props$
|
|
7612
|
+
declare class SeriesWithAxisDesignEditor extends Component<Props$V, SpreadsheetChildEnv> {
|
|
7542
7613
|
static template: string;
|
|
7543
7614
|
static components: {
|
|
7544
7615
|
SeriesDesignEditor: typeof SeriesDesignEditor;
|
|
@@ -7579,13 +7650,13 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$T, SpreadsheetC
|
|
|
7579
7650
|
updateTrendLineValue(index: number, config: any): void;
|
|
7580
7651
|
}
|
|
7581
7652
|
|
|
7582
|
-
interface Props$
|
|
7653
|
+
interface Props$U {
|
|
7583
7654
|
figureId: UID;
|
|
7584
7655
|
definition: ChartWithDataSetDefinition;
|
|
7585
7656
|
canUpdateChart: (figureID: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7586
7657
|
updateChart: (figureId: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7587
7658
|
}
|
|
7588
|
-
declare class ChartWithAxisDesignPanel<P extends Props$
|
|
7659
|
+
declare class ChartWithAxisDesignPanel<P extends Props$U = Props$U> extends Component<P, SpreadsheetChildEnv> {
|
|
7589
7660
|
static template: string;
|
|
7590
7661
|
static components: {
|
|
7591
7662
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -7605,13 +7676,13 @@ declare class ChartWithAxisDesignPanel<P extends Props$S = Props$S> extends Comp
|
|
|
7605
7676
|
get axesList(): AxisDefinition[];
|
|
7606
7677
|
}
|
|
7607
7678
|
|
|
7608
|
-
interface Props$
|
|
7679
|
+
interface Props$T {
|
|
7609
7680
|
figureId: UID;
|
|
7610
7681
|
definition: GaugeChartDefinition;
|
|
7611
7682
|
canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7612
7683
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7613
7684
|
}
|
|
7614
|
-
declare class GaugeChartConfigPanel extends Component<Props$
|
|
7685
|
+
declare class GaugeChartConfigPanel extends Component<Props$T, SpreadsheetChildEnv> {
|
|
7615
7686
|
static template: string;
|
|
7616
7687
|
static components: {
|
|
7617
7688
|
ChartErrorSection: typeof ChartErrorSection;
|
|
@@ -7636,13 +7707,13 @@ interface PanelState {
|
|
|
7636
7707
|
sectionRuleDispatchResult?: DispatchResult;
|
|
7637
7708
|
sectionRule: SectionRule;
|
|
7638
7709
|
}
|
|
7639
|
-
interface Props$
|
|
7710
|
+
interface Props$S {
|
|
7640
7711
|
figureId: UID;
|
|
7641
7712
|
definition: GaugeChartDefinition;
|
|
7642
7713
|
canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7643
7714
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7644
7715
|
}
|
|
7645
|
-
declare class GaugeChartDesignPanel extends Component<Props$
|
|
7716
|
+
declare class GaugeChartDesignPanel extends Component<Props$S, SpreadsheetChildEnv> {
|
|
7646
7717
|
static template: string;
|
|
7647
7718
|
static components: {
|
|
7648
7719
|
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
@@ -7687,13 +7758,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
|
|
|
7687
7758
|
onUpdateCumulative(cumulative: boolean): void;
|
|
7688
7759
|
}
|
|
7689
7760
|
|
|
7690
|
-
interface Props$
|
|
7761
|
+
interface Props$R {
|
|
7691
7762
|
figureId: UID;
|
|
7692
7763
|
definition: ScorecardChartDefinition;
|
|
7693
7764
|
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7694
7765
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7695
7766
|
}
|
|
7696
|
-
declare class ScorecardChartConfigPanel extends Component<Props$
|
|
7767
|
+
declare class ScorecardChartConfigPanel extends Component<Props$R, SpreadsheetChildEnv> {
|
|
7697
7768
|
static template: string;
|
|
7698
7769
|
static components: {
|
|
7699
7770
|
SelectionInput: typeof SelectionInput;
|
|
@@ -7722,13 +7793,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$P, SpreadsheetCh
|
|
|
7722
7793
|
}
|
|
7723
7794
|
|
|
7724
7795
|
type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
|
|
7725
|
-
interface Props$
|
|
7796
|
+
interface Props$Q {
|
|
7726
7797
|
figureId: UID;
|
|
7727
7798
|
definition: ScorecardChartDefinition;
|
|
7728
7799
|
canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7729
7800
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7730
7801
|
}
|
|
7731
|
-
declare class ScorecardChartDesignPanel extends Component<Props$
|
|
7802
|
+
declare class ScorecardChartDesignPanel extends Component<Props$Q, SpreadsheetChildEnv> {
|
|
7732
7803
|
static template: string;
|
|
7733
7804
|
static components: {
|
|
7734
7805
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -7748,6 +7819,7 @@ declare class ScorecardChartDesignPanel extends Component<Props$O, SpreadsheetCh
|
|
|
7748
7819
|
};
|
|
7749
7820
|
get colorsSectionTitle(): string;
|
|
7750
7821
|
get humanizeNumbersLabel(): string;
|
|
7822
|
+
get defaultScorecardTitleFontSize(): number;
|
|
7751
7823
|
updateHumanizeNumbers(humanize: boolean): void;
|
|
7752
7824
|
translate(term: any): string;
|
|
7753
7825
|
updateBaselineDescr(ev: any): void;
|
|
@@ -7890,13 +7962,13 @@ interface EnrichedToken extends Token {
|
|
|
7890
7962
|
isParenthesisLinkedToCursor?: boolean;
|
|
7891
7963
|
}
|
|
7892
7964
|
|
|
7893
|
-
interface Props$
|
|
7965
|
+
interface Props$P {
|
|
7894
7966
|
proposals: AutoCompleteProposal[];
|
|
7895
7967
|
selectedIndex: number | undefined;
|
|
7896
7968
|
onValueSelected: (value: string) => void;
|
|
7897
7969
|
onValueHovered: (index: string) => void;
|
|
7898
7970
|
}
|
|
7899
|
-
declare class TextValueProvider extends Component<Props$
|
|
7971
|
+
declare class TextValueProvider extends Component<Props$P> {
|
|
7900
7972
|
static template: string;
|
|
7901
7973
|
static props: {
|
|
7902
7974
|
proposals: ArrayConstructor;
|
|
@@ -7982,19 +8054,19 @@ declare class ContentEditableHelper {
|
|
|
7982
8054
|
getText(): string;
|
|
7983
8055
|
}
|
|
7984
8056
|
|
|
7985
|
-
interface Props$
|
|
8057
|
+
interface Props$O {
|
|
7986
8058
|
functionName: string;
|
|
7987
8059
|
functionDescription: FunctionDescription;
|
|
7988
8060
|
argToFocus: number;
|
|
7989
8061
|
}
|
|
7990
|
-
declare class FunctionDescriptionProvider extends Component<Props$
|
|
8062
|
+
declare class FunctionDescriptionProvider extends Component<Props$O, SpreadsheetChildEnv> {
|
|
7991
8063
|
static template: string;
|
|
7992
8064
|
static props: {
|
|
7993
8065
|
functionName: StringConstructor;
|
|
7994
8066
|
functionDescription: ObjectConstructor;
|
|
7995
8067
|
argToFocus: NumberConstructor;
|
|
7996
8068
|
};
|
|
7997
|
-
getContext(): Props$
|
|
8069
|
+
getContext(): Props$O;
|
|
7998
8070
|
get formulaArgSeparator(): string;
|
|
7999
8071
|
}
|
|
8000
8072
|
|
|
@@ -8101,7 +8173,7 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
|
|
|
8101
8173
|
*/
|
|
8102
8174
|
private insertText;
|
|
8103
8175
|
private updateTokenColor;
|
|
8104
|
-
|
|
8176
|
+
protected getTokenColor(token: EnrichedToken): string;
|
|
8105
8177
|
private rangeColor;
|
|
8106
8178
|
/**
|
|
8107
8179
|
* Compute for each token if it is part of the same
|
|
@@ -8372,10 +8444,10 @@ declare class ComposerFocusStore extends SpreadsheetStore {
|
|
|
8372
8444
|
private setComposerContent;
|
|
8373
8445
|
}
|
|
8374
8446
|
|
|
8375
|
-
interface Props$
|
|
8447
|
+
interface Props$N {
|
|
8376
8448
|
figure: Figure;
|
|
8377
8449
|
}
|
|
8378
|
-
declare class ChartJsComponent extends Component<Props$
|
|
8450
|
+
declare class ChartJsComponent extends Component<Props$N, SpreadsheetChildEnv> {
|
|
8379
8451
|
static template: string;
|
|
8380
8452
|
static props: {
|
|
8381
8453
|
figure: ObjectConstructor;
|
|
@@ -8391,10 +8463,10 @@ declare class ChartJsComponent extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
8391
8463
|
private updateChartJs;
|
|
8392
8464
|
}
|
|
8393
8465
|
|
|
8394
|
-
interface Props$
|
|
8466
|
+
interface Props$M {
|
|
8395
8467
|
figure: Figure;
|
|
8396
8468
|
}
|
|
8397
|
-
declare class ScorecardChart$1 extends Component<Props$
|
|
8469
|
+
declare class ScorecardChart$1 extends Component<Props$M, SpreadsheetChildEnv> {
|
|
8398
8470
|
static template: string;
|
|
8399
8471
|
static props: {
|
|
8400
8472
|
figure: ObjectConstructor;
|
|
@@ -8407,7 +8479,7 @@ declare class ScorecardChart$1 extends Component<Props$K, SpreadsheetChildEnv> {
|
|
|
8407
8479
|
}
|
|
8408
8480
|
|
|
8409
8481
|
type MenuItemOrSeparator = Action | "separator";
|
|
8410
|
-
interface Props$
|
|
8482
|
+
interface Props$L {
|
|
8411
8483
|
position: DOMCoordinates;
|
|
8412
8484
|
menuItems: Action[];
|
|
8413
8485
|
depth: number;
|
|
@@ -8426,7 +8498,7 @@ interface MenuState {
|
|
|
8426
8498
|
menuItems: Action[];
|
|
8427
8499
|
isHoveringChild?: boolean;
|
|
8428
8500
|
}
|
|
8429
|
-
declare class Menu extends Component<Props$
|
|
8501
|
+
declare class Menu extends Component<Props$L, SpreadsheetChildEnv> {
|
|
8430
8502
|
static template: string;
|
|
8431
8503
|
static props: {
|
|
8432
8504
|
position: ObjectConstructor;
|
|
@@ -8502,14 +8574,14 @@ declare class Menu extends Component<Props$J, SpreadsheetChildEnv> {
|
|
|
8502
8574
|
}
|
|
8503
8575
|
|
|
8504
8576
|
type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
8505
|
-
interface Props$
|
|
8577
|
+
interface Props$K {
|
|
8506
8578
|
figure: Figure;
|
|
8507
8579
|
style: string;
|
|
8508
8580
|
onFigureDeleted: () => void;
|
|
8509
8581
|
onMouseDown: (ev: MouseEvent) => void;
|
|
8510
8582
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
8511
8583
|
}
|
|
8512
|
-
declare class FigureComponent extends Component<Props$
|
|
8584
|
+
declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
|
|
8513
8585
|
static template: string;
|
|
8514
8586
|
static props: {
|
|
8515
8587
|
figure: ObjectConstructor;
|
|
@@ -8558,11 +8630,11 @@ declare class FigureComponent extends Component<Props$I, SpreadsheetChildEnv> {
|
|
|
8558
8630
|
private openContextMenu;
|
|
8559
8631
|
}
|
|
8560
8632
|
|
|
8561
|
-
interface Props$
|
|
8633
|
+
interface Props$J {
|
|
8562
8634
|
figure: Figure;
|
|
8563
8635
|
onFigureDeleted: () => void;
|
|
8564
8636
|
}
|
|
8565
|
-
declare class ChartFigure extends Component<Props$
|
|
8637
|
+
declare class ChartFigure extends Component<Props$J, SpreadsheetChildEnv> {
|
|
8566
8638
|
static template: string;
|
|
8567
8639
|
static props: {
|
|
8568
8640
|
figure: ObjectConstructor;
|
|
@@ -8574,7 +8646,7 @@ declare class ChartFigure extends Component<Props$H, SpreadsheetChildEnv> {
|
|
|
8574
8646
|
get chartComponent(): new (...args: any) => Component;
|
|
8575
8647
|
}
|
|
8576
8648
|
|
|
8577
|
-
interface Props$
|
|
8649
|
+
interface Props$I {
|
|
8578
8650
|
isVisible: boolean;
|
|
8579
8651
|
position: Position;
|
|
8580
8652
|
}
|
|
@@ -8582,17 +8654,17 @@ interface Position {
|
|
|
8582
8654
|
top: HeaderIndex;
|
|
8583
8655
|
left: HeaderIndex;
|
|
8584
8656
|
}
|
|
8585
|
-
interface State$
|
|
8657
|
+
interface State$7 {
|
|
8586
8658
|
position: Position;
|
|
8587
8659
|
handler: boolean;
|
|
8588
8660
|
}
|
|
8589
|
-
declare class Autofill extends Component<Props$
|
|
8661
|
+
declare class Autofill extends Component<Props$I, SpreadsheetChildEnv> {
|
|
8590
8662
|
static template: string;
|
|
8591
8663
|
static props: {
|
|
8592
8664
|
position: ObjectConstructor;
|
|
8593
8665
|
isVisible: BooleanConstructor;
|
|
8594
8666
|
};
|
|
8595
|
-
state: State$
|
|
8667
|
+
state: State$7;
|
|
8596
8668
|
get style(): string;
|
|
8597
8669
|
get handlerStyle(): string;
|
|
8598
8670
|
get styleNextValue(): string;
|
|
@@ -8620,7 +8692,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
|
|
|
8620
8692
|
get tagStyle(): string;
|
|
8621
8693
|
}
|
|
8622
8694
|
|
|
8623
|
-
interface Props$
|
|
8695
|
+
interface Props$H {
|
|
8624
8696
|
gridDims: DOMDimension;
|
|
8625
8697
|
onInputContextMenu: (event: MouseEvent) => void;
|
|
8626
8698
|
}
|
|
@@ -8628,7 +8700,7 @@ interface Props$F {
|
|
|
8628
8700
|
* This component is a composer which positions itself on the grid at the anchor cell.
|
|
8629
8701
|
* It also applies the style of the cell to the composer input.
|
|
8630
8702
|
*/
|
|
8631
|
-
declare class GridComposer extends Component<Props$
|
|
8703
|
+
declare class GridComposer extends Component<Props$H, SpreadsheetChildEnv> {
|
|
8632
8704
|
static template: string;
|
|
8633
8705
|
static props: {
|
|
8634
8706
|
gridDims: ObjectConstructor;
|
|
@@ -8686,10 +8758,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
|
|
|
8686
8758
|
isPositionVisible(position: CellPosition): boolean;
|
|
8687
8759
|
}
|
|
8688
8760
|
|
|
8689
|
-
interface Props$
|
|
8761
|
+
interface Props$G {
|
|
8690
8762
|
cellPosition: CellPosition;
|
|
8691
8763
|
}
|
|
8692
|
-
declare class DataValidationCheckbox extends Component<Props$
|
|
8764
|
+
declare class DataValidationCheckbox extends Component<Props$G, SpreadsheetChildEnv> {
|
|
8693
8765
|
static template: string;
|
|
8694
8766
|
static components: {
|
|
8695
8767
|
Checkbox: typeof Checkbox;
|
|
@@ -8702,10 +8774,10 @@ declare class DataValidationCheckbox extends Component<Props$E, SpreadsheetChild
|
|
|
8702
8774
|
get isDisabled(): boolean;
|
|
8703
8775
|
}
|
|
8704
8776
|
|
|
8705
|
-
interface Props$
|
|
8777
|
+
interface Props$F {
|
|
8706
8778
|
cellPosition: CellPosition;
|
|
8707
8779
|
}
|
|
8708
|
-
declare class DataValidationListIcon extends Component<Props$
|
|
8780
|
+
declare class DataValidationListIcon extends Component<Props$F, SpreadsheetChildEnv> {
|
|
8709
8781
|
static template: string;
|
|
8710
8782
|
static props: {
|
|
8711
8783
|
cellPosition: ObjectConstructor;
|
|
@@ -8735,7 +8807,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
8735
8807
|
}
|
|
8736
8808
|
|
|
8737
8809
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
8738
|
-
interface Props$
|
|
8810
|
+
interface Props$E {
|
|
8739
8811
|
onFigureDeleted: () => void;
|
|
8740
8812
|
}
|
|
8741
8813
|
interface Container {
|
|
@@ -8814,7 +8886,7 @@ interface DndState {
|
|
|
8814
8886
|
* that occurred during the drag & drop, and to position the figure on the correct pane.
|
|
8815
8887
|
*
|
|
8816
8888
|
*/
|
|
8817
|
-
declare class FiguresContainer extends Component<Props$
|
|
8889
|
+
declare class FiguresContainer extends Component<Props$E, SpreadsheetChildEnv> {
|
|
8818
8890
|
static template: string;
|
|
8819
8891
|
static props: {
|
|
8820
8892
|
onFigureDeleted: FunctionConstructor;
|
|
@@ -8849,30 +8921,10 @@ declare class FiguresContainer extends Component<Props$C, SpreadsheetChildEnv> {
|
|
|
8849
8921
|
private getSnapLineStyle;
|
|
8850
8922
|
}
|
|
8851
8923
|
|
|
8852
|
-
|
|
8853
|
-
mutators: readonly ["open", "close"];
|
|
8854
|
-
private persistentPopover?;
|
|
8855
|
-
protected hoveredCell: {
|
|
8856
|
-
readonly clear: () => void;
|
|
8857
|
-
readonly hover: (position: Position$1) => void;
|
|
8858
|
-
readonly mutators: readonly ["clear", "hover"];
|
|
8859
|
-
readonly col: number | undefined;
|
|
8860
|
-
readonly row: number | undefined;
|
|
8861
|
-
readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
|
|
8862
|
-
};
|
|
8863
|
-
handle(cmd: Command): void;
|
|
8864
|
-
open({ col, row }: Position$1, type: CellPopoverType): void;
|
|
8865
|
-
close(): void;
|
|
8866
|
-
get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
|
|
8867
|
-
get isOpen(): boolean;
|
|
8868
|
-
get cellPopover(): ClosedCellPopover | PositionedCellPopoverComponent;
|
|
8869
|
-
private computePopoverAnchorRect;
|
|
8870
|
-
}
|
|
8871
|
-
|
|
8872
|
-
interface Props$B {
|
|
8924
|
+
interface Props$D {
|
|
8873
8925
|
cellPosition: CellPosition;
|
|
8874
8926
|
}
|
|
8875
|
-
declare class FilterIcon extends Component<Props$
|
|
8927
|
+
declare class FilterIcon extends Component<Props$D, SpreadsheetChildEnv> {
|
|
8876
8928
|
static template: string;
|
|
8877
8929
|
static props: {
|
|
8878
8930
|
cellPosition: ObjectConstructor;
|
|
@@ -8894,10 +8946,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
|
8894
8946
|
getFilterHeadersPositions(): CellPosition[];
|
|
8895
8947
|
}
|
|
8896
8948
|
|
|
8897
|
-
interface Props$
|
|
8949
|
+
interface Props$C {
|
|
8898
8950
|
focusGrid: () => void;
|
|
8899
8951
|
}
|
|
8900
|
-
declare class GridAddRowsFooter extends Component<Props$
|
|
8952
|
+
declare class GridAddRowsFooter extends Component<Props$C, SpreadsheetChildEnv> {
|
|
8901
8953
|
static template: string;
|
|
8902
8954
|
static props: {
|
|
8903
8955
|
focusGrid: FunctionConstructor;
|
|
@@ -8921,7 +8973,7 @@ declare class GridAddRowsFooter extends Component<Props$A, SpreadsheetChildEnv>
|
|
|
8921
8973
|
private onExternalClick;
|
|
8922
8974
|
}
|
|
8923
8975
|
|
|
8924
|
-
interface Props$
|
|
8976
|
+
interface Props$B {
|
|
8925
8977
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
8926
8978
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
8927
8979
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
|
|
@@ -8931,7 +8983,7 @@ interface Props$z {
|
|
|
8931
8983
|
gridOverlayDimensions: string;
|
|
8932
8984
|
onFigureDeleted: () => void;
|
|
8933
8985
|
}
|
|
8934
|
-
declare class GridOverlay extends Component<Props$
|
|
8986
|
+
declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
|
|
8935
8987
|
static template: string;
|
|
8936
8988
|
static props: {
|
|
8937
8989
|
onCellHovered: {
|
|
@@ -8989,12 +9041,12 @@ declare class GridOverlay extends Component<Props$z, SpreadsheetChildEnv> {
|
|
|
8989
9041
|
private getCartesianCoordinates;
|
|
8990
9042
|
}
|
|
8991
9043
|
|
|
8992
|
-
interface Props$
|
|
9044
|
+
interface Props$A {
|
|
8993
9045
|
gridRect: Rect;
|
|
8994
9046
|
onClosePopover: () => void;
|
|
8995
9047
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
8996
9048
|
}
|
|
8997
|
-
declare class GridPopover extends Component<Props$
|
|
9049
|
+
declare class GridPopover extends Component<Props$A, SpreadsheetChildEnv> {
|
|
8998
9050
|
static template: string;
|
|
8999
9051
|
static props: {
|
|
9000
9052
|
onClosePopover: FunctionConstructor;
|
|
@@ -9137,13 +9189,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
|
|
|
9137
9189
|
}
|
|
9138
9190
|
|
|
9139
9191
|
type Orientation$1 = "n" | "s" | "w" | "e";
|
|
9140
|
-
interface Props$
|
|
9192
|
+
interface Props$z {
|
|
9141
9193
|
zone: Zone;
|
|
9142
9194
|
orientation: Orientation$1;
|
|
9143
9195
|
isMoving: boolean;
|
|
9144
9196
|
onMoveHighlight: (x: Pixel, y: Pixel) => void;
|
|
9145
9197
|
}
|
|
9146
|
-
declare class Border extends Component<Props$
|
|
9198
|
+
declare class Border extends Component<Props$z, SpreadsheetChildEnv> {
|
|
9147
9199
|
static template: string;
|
|
9148
9200
|
static props: {
|
|
9149
9201
|
zone: ObjectConstructor;
|
|
@@ -9156,14 +9208,14 @@ declare class Border extends Component<Props$x, SpreadsheetChildEnv> {
|
|
|
9156
9208
|
}
|
|
9157
9209
|
|
|
9158
9210
|
type Orientation = "nw" | "ne" | "sw" | "se";
|
|
9159
|
-
interface Props$
|
|
9211
|
+
interface Props$y {
|
|
9160
9212
|
zone: Zone;
|
|
9161
9213
|
color: Color;
|
|
9162
9214
|
orientation: Orientation;
|
|
9163
9215
|
isResizing: boolean;
|
|
9164
9216
|
onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
|
|
9165
9217
|
}
|
|
9166
|
-
declare class Corner extends Component<Props$
|
|
9218
|
+
declare class Corner extends Component<Props$y, SpreadsheetChildEnv> {
|
|
9167
9219
|
static template: string;
|
|
9168
9220
|
static props: {
|
|
9169
9221
|
zone: ObjectConstructor;
|
|
@@ -9178,14 +9230,14 @@ declare class Corner extends Component<Props$w, SpreadsheetChildEnv> {
|
|
|
9178
9230
|
onMouseDown(ev: MouseEvent): void;
|
|
9179
9231
|
}
|
|
9180
9232
|
|
|
9181
|
-
interface Props$
|
|
9233
|
+
interface Props$x {
|
|
9182
9234
|
zone: Zone;
|
|
9183
9235
|
color: Color;
|
|
9184
9236
|
}
|
|
9185
9237
|
interface HighlightState {
|
|
9186
9238
|
shiftingMode: "isMoving" | "isResizing" | "none";
|
|
9187
9239
|
}
|
|
9188
|
-
declare class Highlight extends Component<Props$
|
|
9240
|
+
declare class Highlight extends Component<Props$x, SpreadsheetChildEnv> {
|
|
9189
9241
|
static template: string;
|
|
9190
9242
|
static props: {
|
|
9191
9243
|
zone: ObjectConstructor;
|
|
@@ -9202,7 +9254,7 @@ declare class Highlight extends Component<Props$v, SpreadsheetChildEnv> {
|
|
|
9202
9254
|
|
|
9203
9255
|
type ScrollDirection = "horizontal" | "vertical";
|
|
9204
9256
|
|
|
9205
|
-
interface Props$
|
|
9257
|
+
interface Props$w {
|
|
9206
9258
|
width: Pixel;
|
|
9207
9259
|
height: Pixel;
|
|
9208
9260
|
direction: ScrollDirection;
|
|
@@ -9210,7 +9262,7 @@ interface Props$u {
|
|
|
9210
9262
|
offset: Pixel;
|
|
9211
9263
|
onScroll: (offset: Pixel) => void;
|
|
9212
9264
|
}
|
|
9213
|
-
declare class ScrollBar extends Component<Props$
|
|
9265
|
+
declare class ScrollBar extends Component<Props$w> {
|
|
9214
9266
|
static props: {
|
|
9215
9267
|
width: {
|
|
9216
9268
|
type: NumberConstructor;
|
|
@@ -9238,10 +9290,10 @@ declare class ScrollBar extends Component<Props$u> {
|
|
|
9238
9290
|
onScroll(ev: any): void;
|
|
9239
9291
|
}
|
|
9240
9292
|
|
|
9241
|
-
interface Props$
|
|
9293
|
+
interface Props$v {
|
|
9242
9294
|
leftOffset: number;
|
|
9243
9295
|
}
|
|
9244
|
-
declare class HorizontalScrollBar extends Component<Props$
|
|
9296
|
+
declare class HorizontalScrollBar extends Component<Props$v, SpreadsheetChildEnv> {
|
|
9245
9297
|
static props: {
|
|
9246
9298
|
leftOffset: {
|
|
9247
9299
|
type: NumberConstructor;
|
|
@@ -9267,10 +9319,10 @@ declare class HorizontalScrollBar extends Component<Props$t, SpreadsheetChildEnv
|
|
|
9267
9319
|
onScroll(offset: any): void;
|
|
9268
9320
|
}
|
|
9269
9321
|
|
|
9270
|
-
interface Props$
|
|
9322
|
+
interface Props$u {
|
|
9271
9323
|
topOffset: number;
|
|
9272
9324
|
}
|
|
9273
|
-
declare class VerticalScrollBar extends Component<Props$
|
|
9325
|
+
declare class VerticalScrollBar extends Component<Props$u, SpreadsheetChildEnv> {
|
|
9274
9326
|
static props: {
|
|
9275
9327
|
topOffset: {
|
|
9276
9328
|
type: NumberConstructor;
|
|
@@ -9296,18 +9348,18 @@ declare class VerticalScrollBar extends Component<Props$s, SpreadsheetChildEnv>
|
|
|
9296
9348
|
onScroll(offset: any): void;
|
|
9297
9349
|
}
|
|
9298
9350
|
|
|
9299
|
-
interface Props$
|
|
9351
|
+
interface Props$t {
|
|
9300
9352
|
table: Table;
|
|
9301
9353
|
}
|
|
9302
|
-
interface State$
|
|
9354
|
+
interface State$6 {
|
|
9303
9355
|
highlightZone: Zone | undefined;
|
|
9304
9356
|
}
|
|
9305
|
-
declare class TableResizer extends Component<Props$
|
|
9357
|
+
declare class TableResizer extends Component<Props$t, SpreadsheetChildEnv> {
|
|
9306
9358
|
static template: string;
|
|
9307
9359
|
static props: {
|
|
9308
9360
|
table: ObjectConstructor;
|
|
9309
9361
|
};
|
|
9310
|
-
state: State$
|
|
9362
|
+
state: State$6;
|
|
9311
9363
|
setup(): void;
|
|
9312
9364
|
get containerStyle(): string;
|
|
9313
9365
|
onMouseDown(ev: MouseEvent): void;
|
|
@@ -9334,10 +9386,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
|
|
|
9334
9386
|
* - a vertical resizer (same, for rows)
|
|
9335
9387
|
*/
|
|
9336
9388
|
type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
|
|
9337
|
-
interface Props$
|
|
9389
|
+
interface Props$s {
|
|
9338
9390
|
exposeFocus: (focus: () => void) => void;
|
|
9339
9391
|
}
|
|
9340
|
-
declare class Grid extends Component<Props$
|
|
9392
|
+
declare class Grid extends Component<Props$s, SpreadsheetChildEnv> {
|
|
9341
9393
|
static template: string;
|
|
9342
9394
|
static props: {
|
|
9343
9395
|
exposeFocus: FunctionConstructor;
|
|
@@ -9426,13 +9478,13 @@ interface DndPartialArgs {
|
|
|
9426
9478
|
onCancel?: () => void;
|
|
9427
9479
|
onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
|
|
9428
9480
|
}
|
|
9429
|
-
interface State$
|
|
9481
|
+
interface State$5 {
|
|
9430
9482
|
itemsStyle: Record<UID, string>;
|
|
9431
9483
|
draggedItemId: UID | undefined;
|
|
9432
9484
|
start: (direction: Direction, args: DndPartialArgs) => void;
|
|
9433
9485
|
cancel: () => void;
|
|
9434
9486
|
}
|
|
9435
|
-
declare function useDragAndDropListItems(): State$
|
|
9487
|
+
declare function useDragAndDropListItems(): State$5;
|
|
9436
9488
|
|
|
9437
9489
|
declare function useHighlightsOnHover(ref: Ref<HTMLElement>, highlightProvider: HighlightProvider): void;
|
|
9438
9490
|
declare function useHighlights(highlightProvider: HighlightProvider): void;
|
|
@@ -9446,7 +9498,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
|
|
|
9446
9498
|
private getChartDefinitionFromContextCreation;
|
|
9447
9499
|
}
|
|
9448
9500
|
|
|
9449
|
-
interface Props$
|
|
9501
|
+
interface Props$r {
|
|
9450
9502
|
figureId: UID;
|
|
9451
9503
|
chartPanelStore: MainChartPanelStore;
|
|
9452
9504
|
}
|
|
@@ -9454,7 +9506,7 @@ interface ChartTypePickerState {
|
|
|
9454
9506
|
popoverProps: PopoverProps | undefined;
|
|
9455
9507
|
popoverStyle: string;
|
|
9456
9508
|
}
|
|
9457
|
-
declare class ChartTypePicker extends Component<Props$
|
|
9509
|
+
declare class ChartTypePicker extends Component<Props$r, SpreadsheetChildEnv> {
|
|
9458
9510
|
static template: string;
|
|
9459
9511
|
static components: {
|
|
9460
9512
|
Section: typeof Section;
|
|
@@ -9489,11 +9541,11 @@ declare class ChartTypePicker extends Component<Props$p, SpreadsheetChildEnv> {
|
|
|
9489
9541
|
private closePopover;
|
|
9490
9542
|
}
|
|
9491
9543
|
|
|
9492
|
-
interface Props$
|
|
9544
|
+
interface Props$q {
|
|
9493
9545
|
onCloseSidePanel: () => void;
|
|
9494
9546
|
figureId: UID;
|
|
9495
9547
|
}
|
|
9496
|
-
declare class ChartPanel extends Component<Props$
|
|
9548
|
+
declare class ChartPanel extends Component<Props$q, SpreadsheetChildEnv> {
|
|
9497
9549
|
static template: string;
|
|
9498
9550
|
static components: {
|
|
9499
9551
|
Section: typeof Section;
|
|
@@ -9513,13 +9565,13 @@ declare class ChartPanel extends Component<Props$o, SpreadsheetChildEnv> {
|
|
|
9513
9565
|
private getChartDefinition;
|
|
9514
9566
|
}
|
|
9515
9567
|
|
|
9516
|
-
interface Props$
|
|
9568
|
+
interface Props$p {
|
|
9517
9569
|
figureId: UID;
|
|
9518
9570
|
definition: PieChartDefinition;
|
|
9519
9571
|
canUpdateChart: (figureID: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
|
|
9520
9572
|
updateChart: (figureId: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
|
|
9521
9573
|
}
|
|
9522
|
-
declare class PieChartDesignPanel extends Component<Props$
|
|
9574
|
+
declare class PieChartDesignPanel extends Component<Props$p, SpreadsheetChildEnv> {
|
|
9523
9575
|
static template: string;
|
|
9524
9576
|
static components: {
|
|
9525
9577
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -9538,10 +9590,10 @@ declare class PieChartDesignPanel extends Component<Props$n, SpreadsheetChildEnv
|
|
|
9538
9590
|
};
|
|
9539
9591
|
}
|
|
9540
9592
|
|
|
9541
|
-
interface Props$
|
|
9593
|
+
interface Props$o {
|
|
9542
9594
|
items: ActionSpec[];
|
|
9543
9595
|
}
|
|
9544
|
-
declare class CogWheelMenu extends Component<Props$
|
|
9596
|
+
declare class CogWheelMenu extends Component<Props$o, SpreadsheetChildEnv> {
|
|
9545
9597
|
static template: string;
|
|
9546
9598
|
static components: {
|
|
9547
9599
|
Menu: typeof Menu;
|
|
@@ -9624,14 +9676,14 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
|
|
|
9624
9676
|
get highlights(): Highlight$1[];
|
|
9625
9677
|
}
|
|
9626
9678
|
|
|
9627
|
-
interface Props$
|
|
9679
|
+
interface Props$n {
|
|
9628
9680
|
deferUpdate: boolean;
|
|
9629
9681
|
isDirty: boolean;
|
|
9630
9682
|
toggleDeferUpdate: (value: boolean) => void;
|
|
9631
9683
|
discard: () => void;
|
|
9632
9684
|
apply: () => void;
|
|
9633
9685
|
}
|
|
9634
|
-
declare class PivotDeferUpdate extends Component<Props$
|
|
9686
|
+
declare class PivotDeferUpdate extends Component<Props$n, SpreadsheetChildEnv> {
|
|
9635
9687
|
static template: string;
|
|
9636
9688
|
static props: {
|
|
9637
9689
|
deferUpdate: BooleanConstructor;
|
|
@@ -9648,11 +9700,11 @@ declare class PivotDeferUpdate extends Component<Props$l, SpreadsheetChildEnv> {
|
|
|
9648
9700
|
get deferUpdatesTooltip(): string;
|
|
9649
9701
|
}
|
|
9650
9702
|
|
|
9651
|
-
interface Props$
|
|
9703
|
+
interface Props$m {
|
|
9652
9704
|
onFieldPicked: (field: string) => void;
|
|
9653
9705
|
fields: PivotField[];
|
|
9654
9706
|
}
|
|
9655
|
-
declare class AddDimensionButton extends Component<Props$
|
|
9707
|
+
declare class AddDimensionButton extends Component<Props$m, SpreadsheetChildEnv> {
|
|
9656
9708
|
static template: string;
|
|
9657
9709
|
static components: {
|
|
9658
9710
|
Popover: typeof Popover;
|
|
@@ -9688,14 +9740,14 @@ declare class AddDimensionButton extends Component<Props$k, SpreadsheetChildEnv>
|
|
|
9688
9740
|
onKeyDown(ev: KeyboardEvent): void;
|
|
9689
9741
|
}
|
|
9690
9742
|
|
|
9691
|
-
interface Props$
|
|
9743
|
+
interface Props$l {
|
|
9692
9744
|
value: string;
|
|
9693
9745
|
onChange: (value: string) => void;
|
|
9694
9746
|
class?: string;
|
|
9695
9747
|
id?: string;
|
|
9696
9748
|
placeholder?: string;
|
|
9697
9749
|
}
|
|
9698
|
-
declare class TextInput extends Component<Props$
|
|
9750
|
+
declare class TextInput extends Component<Props$l, SpreadsheetChildEnv> {
|
|
9699
9751
|
static template: string;
|
|
9700
9752
|
static props: {
|
|
9701
9753
|
value: StringConstructor;
|
|
@@ -9720,13 +9772,13 @@ declare class TextInput extends Component<Props$j, SpreadsheetChildEnv> {
|
|
|
9720
9772
|
focusInputAndSelectContent(): void;
|
|
9721
9773
|
}
|
|
9722
9774
|
|
|
9723
|
-
interface Props$
|
|
9775
|
+
interface Props$k {
|
|
9724
9776
|
dimension: PivotCoreDimension | PivotCoreMeasure;
|
|
9725
9777
|
onRemoved: (dimension: PivotCoreDimension | PivotCoreMeasure) => void;
|
|
9726
9778
|
onNameUpdated?: (dimension: PivotCoreDimension | PivotCoreMeasure, name?: string) => void;
|
|
9727
9779
|
type: "row" | "col" | "measure";
|
|
9728
9780
|
}
|
|
9729
|
-
declare class PivotDimension extends Component<Props$
|
|
9781
|
+
declare class PivotDimension extends Component<Props$k, SpreadsheetChildEnv> {
|
|
9730
9782
|
static template: string;
|
|
9731
9783
|
static props: {
|
|
9732
9784
|
dimension: ObjectConstructor;
|
|
@@ -9750,13 +9802,13 @@ declare class PivotDimension extends Component<Props$i, SpreadsheetChildEnv> {
|
|
|
9750
9802
|
updateName(name: string): void;
|
|
9751
9803
|
}
|
|
9752
9804
|
|
|
9753
|
-
interface Props$
|
|
9805
|
+
interface Props$j {
|
|
9754
9806
|
dimension: PivotDimension$1;
|
|
9755
9807
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
9756
9808
|
availableGranularities: Set<string>;
|
|
9757
9809
|
allGranularities: string[];
|
|
9758
9810
|
}
|
|
9759
|
-
declare class PivotDimensionGranularity extends Component<Props$
|
|
9811
|
+
declare class PivotDimensionGranularity extends Component<Props$j, SpreadsheetChildEnv> {
|
|
9760
9812
|
static template: string;
|
|
9761
9813
|
static props: {
|
|
9762
9814
|
dimension: ObjectConstructor;
|
|
@@ -9781,11 +9833,11 @@ declare class PivotDimensionGranularity extends Component<Props$h, SpreadsheetCh
|
|
|
9781
9833
|
};
|
|
9782
9834
|
}
|
|
9783
9835
|
|
|
9784
|
-
interface Props$
|
|
9836
|
+
interface Props$i {
|
|
9785
9837
|
dimension: PivotDimension$1;
|
|
9786
9838
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
9787
9839
|
}
|
|
9788
|
-
declare class PivotDimensionOrder extends Component<Props$
|
|
9840
|
+
declare class PivotDimensionOrder extends Component<Props$i, SpreadsheetChildEnv> {
|
|
9789
9841
|
static template: string;
|
|
9790
9842
|
static props: {
|
|
9791
9843
|
dimension: ObjectConstructor;
|
|
@@ -9820,7 +9872,7 @@ declare function createPivotFormula(formulaId: string, cell: PivotTableCell): st
|
|
|
9820
9872
|
*/
|
|
9821
9873
|
declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type" | "displayName" | "granularity">, groupValue: any): CellValue;
|
|
9822
9874
|
|
|
9823
|
-
interface Props$
|
|
9875
|
+
interface Props$h {
|
|
9824
9876
|
onConfirm: (content: string) => void;
|
|
9825
9877
|
composerContent: string;
|
|
9826
9878
|
defaultRangeSheetId: UID;
|
|
@@ -9828,8 +9880,9 @@ interface Props$f {
|
|
|
9828
9880
|
placeholder?: string;
|
|
9829
9881
|
class?: string;
|
|
9830
9882
|
invalid?: boolean;
|
|
9883
|
+
getContextualColoredSymbolToken?: (token: Token) => Color;
|
|
9831
9884
|
}
|
|
9832
|
-
declare class StandaloneComposer extends Component<Props$
|
|
9885
|
+
declare class StandaloneComposer extends Component<Props$h, SpreadsheetChildEnv> {
|
|
9833
9886
|
static template: string;
|
|
9834
9887
|
static props: {
|
|
9835
9888
|
composerContent: {
|
|
@@ -9857,6 +9910,10 @@ declare class StandaloneComposer extends Component<Props$f, SpreadsheetChildEnv>
|
|
|
9857
9910
|
type: BooleanConstructor;
|
|
9858
9911
|
optional: boolean;
|
|
9859
9912
|
};
|
|
9913
|
+
getContextualColoredSymbolToken: {
|
|
9914
|
+
type: FunctionConstructor;
|
|
9915
|
+
optional: boolean;
|
|
9916
|
+
};
|
|
9860
9917
|
};
|
|
9861
9918
|
static components: {
|
|
9862
9919
|
Composer: typeof Composer;
|
|
@@ -9875,7 +9932,7 @@ declare class StandaloneComposer extends Component<Props$f, SpreadsheetChildEnv>
|
|
|
9875
9932
|
onFocus(selection: ComposerSelection): void;
|
|
9876
9933
|
}
|
|
9877
9934
|
|
|
9878
|
-
interface Props$
|
|
9935
|
+
interface Props$g {
|
|
9879
9936
|
pivotId: string;
|
|
9880
9937
|
definition: PivotRuntimeDefinition;
|
|
9881
9938
|
measure: PivotMeasure;
|
|
@@ -9883,7 +9940,7 @@ interface Props$e {
|
|
|
9883
9940
|
onRemoved: () => void;
|
|
9884
9941
|
generateMeasureId: (fieldName: string, aggregator?: string) => string;
|
|
9885
9942
|
}
|
|
9886
|
-
declare class PivotMeasureEditor extends Component<Props$
|
|
9943
|
+
declare class PivotMeasureEditor extends Component<Props$g> {
|
|
9887
9944
|
static template: string;
|
|
9888
9945
|
static components: {
|
|
9889
9946
|
PivotDimension: typeof PivotDimension;
|
|
@@ -9904,9 +9961,10 @@ declare class PivotMeasureEditor extends Component<Props$e> {
|
|
|
9904
9961
|
updateName(measure: PivotMeasure, userDefinedName?: string): void;
|
|
9905
9962
|
toggleMeasureVisibility(): void;
|
|
9906
9963
|
openShowValuesAs(): void;
|
|
9964
|
+
getColoredSymbolToken(token: Token): Color | undefined;
|
|
9907
9965
|
}
|
|
9908
9966
|
|
|
9909
|
-
interface Props$
|
|
9967
|
+
interface Props$f {
|
|
9910
9968
|
definition: PivotRuntimeDefinition;
|
|
9911
9969
|
onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
|
|
9912
9970
|
unusedGroupableFields: PivotField[];
|
|
@@ -9916,7 +9974,7 @@ interface Props$d {
|
|
|
9916
9974
|
datetimeGranularities: string[];
|
|
9917
9975
|
pivotId: UID;
|
|
9918
9976
|
}
|
|
9919
|
-
declare class PivotLayoutConfigurator extends Component<Props$
|
|
9977
|
+
declare class PivotLayoutConfigurator extends Component<Props$f, SpreadsheetChildEnv> {
|
|
9920
9978
|
static template: string;
|
|
9921
9979
|
static components: {
|
|
9922
9980
|
AddDimensionButton: typeof AddDimensionButton;
|
|
@@ -9992,11 +10050,11 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
|
|
|
9992
10050
|
private getUnusedGranularities;
|
|
9993
10051
|
}
|
|
9994
10052
|
|
|
9995
|
-
interface Props$
|
|
10053
|
+
interface Props$e {
|
|
9996
10054
|
pivotId: UID;
|
|
9997
10055
|
flipAxis: () => void;
|
|
9998
10056
|
}
|
|
9999
|
-
declare class PivotTitleSection extends Component<Props$
|
|
10057
|
+
declare class PivotTitleSection extends Component<Props$e, SpreadsheetChildEnv> {
|
|
10000
10058
|
static template: string;
|
|
10001
10059
|
static components: {
|
|
10002
10060
|
CogWheelMenu: typeof CogWheelMenu;
|
|
@@ -10037,7 +10095,7 @@ declare class FunctionRegistry extends Registry<FunctionDescription> {
|
|
|
10037
10095
|
}
|
|
10038
10096
|
|
|
10039
10097
|
/**
|
|
10040
|
-
* Create a proposal entry for the
|
|
10098
|
+
* Create a proposal entry for the composer autocomplete
|
|
10041
10099
|
* to insert a field name string in a formula.
|
|
10042
10100
|
*/
|
|
10043
10101
|
declare function makeFieldProposal(field: PivotField, granularity?: Granularity): {
|
|
@@ -10080,6 +10138,97 @@ declare function getFirstPivotFunction(tokens: Token[]): {
|
|
|
10080
10138
|
*/
|
|
10081
10139
|
declare function getNumberOfPivotFunctions(tokens: Token[]): number;
|
|
10082
10140
|
|
|
10141
|
+
interface Props$d {
|
|
10142
|
+
figureId: UID;
|
|
10143
|
+
definition: ComboChartDefinition;
|
|
10144
|
+
canUpdateChart: (figureID: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
|
|
10145
|
+
updateChart: (figureId: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
|
|
10146
|
+
}
|
|
10147
|
+
declare class ComboChartDesignPanel extends ChartWithAxisDesignPanel<Props$d> {
|
|
10148
|
+
static template: string;
|
|
10149
|
+
static components: {
|
|
10150
|
+
RadioSelection: typeof RadioSelection;
|
|
10151
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
10152
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
10153
|
+
Section: typeof Section;
|
|
10154
|
+
AxisDesignEditor: typeof AxisDesignEditor;
|
|
10155
|
+
Checkbox: typeof Checkbox;
|
|
10156
|
+
SeriesWithAxisDesignEditor: typeof SeriesWithAxisDesignEditor;
|
|
10157
|
+
ChartLegend: typeof ChartLegend;
|
|
10158
|
+
};
|
|
10159
|
+
seriesTypeChoices: {
|
|
10160
|
+
value: string;
|
|
10161
|
+
label: string;
|
|
10162
|
+
}[];
|
|
10163
|
+
updateDataSeriesType(index: number, type: "bar" | "line"): void;
|
|
10164
|
+
getDataSeriesType(index: number): "line" | "bar";
|
|
10165
|
+
}
|
|
10166
|
+
|
|
10167
|
+
interface Props$c {
|
|
10168
|
+
figureId: UID;
|
|
10169
|
+
definition: RadarChartDefinition;
|
|
10170
|
+
canUpdateChart: (figureID: UID, definition: GenericDefinition<RadarChartDefinition>) => DispatchResult;
|
|
10171
|
+
updateChart: (figureId: UID, definition: GenericDefinition<RadarChartDefinition>) => DispatchResult;
|
|
10172
|
+
}
|
|
10173
|
+
declare class RadarChartDesignPanel extends Component<Props$c, SpreadsheetChildEnv> {
|
|
10174
|
+
static template: string;
|
|
10175
|
+
static components: {
|
|
10176
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
10177
|
+
SeriesDesignEditor: typeof SeriesDesignEditor;
|
|
10178
|
+
Section: typeof Section;
|
|
10179
|
+
Checkbox: typeof Checkbox;
|
|
10180
|
+
ChartLegend: typeof ChartLegend;
|
|
10181
|
+
};
|
|
10182
|
+
static props: {
|
|
10183
|
+
figureId: StringConstructor;
|
|
10184
|
+
definition: ObjectConstructor;
|
|
10185
|
+
canUpdateChart: FunctionConstructor;
|
|
10186
|
+
updateChart: FunctionConstructor;
|
|
10187
|
+
};
|
|
10188
|
+
}
|
|
10189
|
+
|
|
10190
|
+
interface Props$b {
|
|
10191
|
+
figureId: UID;
|
|
10192
|
+
definition: WaterfallChartDefinition;
|
|
10193
|
+
canUpdateChart: (figureID: UID, definition: GenericDefinition<WaterfallChartDefinition>) => DispatchResult;
|
|
10194
|
+
updateChart: (figureId: UID, definition: GenericDefinition<WaterfallChartDefinition>) => DispatchResult;
|
|
10195
|
+
}
|
|
10196
|
+
declare class WaterfallChartDesignPanel extends Component<Props$b, SpreadsheetChildEnv> {
|
|
10197
|
+
static template: string;
|
|
10198
|
+
static components: {
|
|
10199
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
10200
|
+
Checkbox: typeof Checkbox;
|
|
10201
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
10202
|
+
Section: typeof Section;
|
|
10203
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
10204
|
+
AxisDesignEditor: typeof AxisDesignEditor;
|
|
10205
|
+
RadioSelection: typeof RadioSelection;
|
|
10206
|
+
ChartLegend: typeof ChartLegend;
|
|
10207
|
+
};
|
|
10208
|
+
static props: {
|
|
10209
|
+
figureId: StringConstructor;
|
|
10210
|
+
definition: ObjectConstructor;
|
|
10211
|
+
updateChart: FunctionConstructor;
|
|
10212
|
+
canUpdateChart: {
|
|
10213
|
+
type: FunctionConstructor;
|
|
10214
|
+
optional: boolean;
|
|
10215
|
+
};
|
|
10216
|
+
};
|
|
10217
|
+
axisChoices: {
|
|
10218
|
+
value: string;
|
|
10219
|
+
label: string;
|
|
10220
|
+
}[];
|
|
10221
|
+
onUpdateShowSubTotals(showSubTotals: boolean): void;
|
|
10222
|
+
onUpdateShowConnectorLines(showConnectorLines: boolean): void;
|
|
10223
|
+
onUpdateFirstValueAsSubtotal(firstValueAsSubtotal: boolean): void;
|
|
10224
|
+
updateColor(colorName: string, color: Color): void;
|
|
10225
|
+
get axesList(): AxisDefinition[];
|
|
10226
|
+
get positiveValuesColor(): Color | "#4EA7F2";
|
|
10227
|
+
get negativeValuesColor(): Color | "#EA6175";
|
|
10228
|
+
get subTotalValuesColor(): Color | "#AAAAAA";
|
|
10229
|
+
updateVerticalAxisPosition(value: "left" | "right"): void;
|
|
10230
|
+
}
|
|
10231
|
+
|
|
10083
10232
|
declare class PivotMeasureDisplayPanelStore extends SpreadsheetStore {
|
|
10084
10233
|
private pivotId;
|
|
10085
10234
|
private initialMeasure;
|
|
@@ -10409,13 +10558,13 @@ declare class Ripple extends Component<RippleProps, SpreadsheetChildEnv> {
|
|
|
10409
10558
|
getRippleEffectProps(id: number): RippleEffectProps;
|
|
10410
10559
|
}
|
|
10411
10560
|
|
|
10412
|
-
interface Props$
|
|
10561
|
+
interface Props$a {
|
|
10413
10562
|
sheetId: string;
|
|
10414
10563
|
openContextMenu: (registry: MenuItemRegistry, ev: MouseEvent) => void;
|
|
10415
10564
|
style?: string;
|
|
10416
10565
|
onMouseDown: (ev: MouseEvent) => void;
|
|
10417
10566
|
}
|
|
10418
|
-
declare class BottomBarSheet extends Component<Props$
|
|
10567
|
+
declare class BottomBarSheet extends Component<Props$a, SpreadsheetChildEnv> {
|
|
10419
10568
|
static template: string;
|
|
10420
10569
|
static props: {
|
|
10421
10570
|
sheetId: StringConstructor;
|
|
@@ -10466,11 +10615,11 @@ declare class BottomBarSheet extends Component<Props$b, SpreadsheetChildEnv> {
|
|
|
10466
10615
|
get sheetColorStyle(): string;
|
|
10467
10616
|
}
|
|
10468
10617
|
|
|
10469
|
-
interface Props$
|
|
10618
|
+
interface Props$9 {
|
|
10470
10619
|
openContextMenu: (x: number, y: number, registry: MenuItemRegistry) => void;
|
|
10471
10620
|
closeContextMenu: () => void;
|
|
10472
10621
|
}
|
|
10473
|
-
declare class BottomBarStatistic extends Component<Props$
|
|
10622
|
+
declare class BottomBarStatistic extends Component<Props$9, SpreadsheetChildEnv> {
|
|
10474
10623
|
static template: string;
|
|
10475
10624
|
static props: {
|
|
10476
10625
|
openContextMenu: FunctionConstructor;
|
|
@@ -10491,13 +10640,13 @@ interface BottomBarSheetItem {
|
|
|
10491
10640
|
id: UID;
|
|
10492
10641
|
name: string;
|
|
10493
10642
|
}
|
|
10494
|
-
interface Props$
|
|
10643
|
+
interface Props$8 {
|
|
10495
10644
|
onClick: () => void;
|
|
10496
10645
|
}
|
|
10497
10646
|
interface BottomBarMenuState extends MenuState {
|
|
10498
10647
|
menuId: UID | undefined;
|
|
10499
10648
|
}
|
|
10500
|
-
declare class BottomBar extends Component<Props$
|
|
10649
|
+
declare class BottomBar extends Component<Props$8, SpreadsheetChildEnv> {
|
|
10501
10650
|
static template: string;
|
|
10502
10651
|
static props: {
|
|
10503
10652
|
onClick: FunctionConstructor;
|
|
@@ -10553,9 +10702,9 @@ declare class ClickableCellsStore extends SpreadsheetStore {
|
|
|
10553
10702
|
get clickableCells(): ClickableCell[];
|
|
10554
10703
|
}
|
|
10555
10704
|
|
|
10556
|
-
interface Props$
|
|
10705
|
+
interface Props$7 {
|
|
10557
10706
|
}
|
|
10558
|
-
declare class SpreadsheetDashboard extends Component<Props$
|
|
10707
|
+
declare class SpreadsheetDashboard extends Component<Props$7, SpreadsheetChildEnv> {
|
|
10559
10708
|
static template: string;
|
|
10560
10709
|
static props: {};
|
|
10561
10710
|
static components: {
|
|
@@ -10592,7 +10741,7 @@ declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEn
|
|
|
10592
10741
|
private getGridRect;
|
|
10593
10742
|
}
|
|
10594
10743
|
|
|
10595
|
-
interface Props$
|
|
10744
|
+
interface Props$6 {
|
|
10596
10745
|
group: HeaderGroup;
|
|
10597
10746
|
layerOffset: number;
|
|
10598
10747
|
openContextMenu(position: DOMCoordinates, menuItems: Action[]): void;
|
|
@@ -10602,7 +10751,7 @@ interface GroupBox {
|
|
|
10602
10751
|
headerRect: Rect;
|
|
10603
10752
|
isEndHidden: boolean;
|
|
10604
10753
|
}
|
|
10605
|
-
declare abstract class AbstractHeaderGroup extends Component<Props$
|
|
10754
|
+
declare abstract class AbstractHeaderGroup extends Component<Props$6, SpreadsheetChildEnv> {
|
|
10606
10755
|
static template: string;
|
|
10607
10756
|
static props: {
|
|
10608
10757
|
group: ObjectConstructor;
|
|
@@ -10634,11 +10783,11 @@ declare class ColGroup extends AbstractHeaderGroup {
|
|
|
10634
10783
|
get groupBox(): GroupBox;
|
|
10635
10784
|
}
|
|
10636
10785
|
|
|
10637
|
-
interface Props$
|
|
10786
|
+
interface Props$5 {
|
|
10638
10787
|
dimension: Dimension;
|
|
10639
10788
|
layers: HeaderGroup[][];
|
|
10640
10789
|
}
|
|
10641
|
-
declare class HeaderGroupContainer extends Component<Props$
|
|
10790
|
+
declare class HeaderGroupContainer extends Component<Props$5, SpreadsheetChildEnv> {
|
|
10642
10791
|
static template: string;
|
|
10643
10792
|
static props: {
|
|
10644
10793
|
dimension: StringConstructor;
|
|
@@ -10784,14 +10933,14 @@ declare namespace ACTION_EDIT {
|
|
|
10784
10933
|
};
|
|
10785
10934
|
}
|
|
10786
10935
|
|
|
10787
|
-
interface Props$
|
|
10936
|
+
interface Props$4 {
|
|
10788
10937
|
action: ActionSpec;
|
|
10789
10938
|
hasTriangleDownIcon?: boolean;
|
|
10790
10939
|
selectedColor?: string;
|
|
10791
10940
|
class?: string;
|
|
10792
10941
|
onClick?: (ev: MouseEvent) => void;
|
|
10793
10942
|
}
|
|
10794
|
-
declare class ActionButton extends Component<Props$
|
|
10943
|
+
declare class ActionButton extends Component<Props$4, SpreadsheetChildEnv> {
|
|
10795
10944
|
static template: string;
|
|
10796
10945
|
static props: {
|
|
10797
10946
|
action: ObjectConstructor;
|
|
@@ -10824,7 +10973,7 @@ declare class ActionButton extends Component<Props$5, SpreadsheetChildEnv> {
|
|
|
10824
10973
|
}
|
|
10825
10974
|
|
|
10826
10975
|
type Tool = "borderColorTool" | "borderTypeTool";
|
|
10827
|
-
interface State$
|
|
10976
|
+
interface State$4 {
|
|
10828
10977
|
activeTool: Tool | undefined;
|
|
10829
10978
|
}
|
|
10830
10979
|
interface BorderEditorProps {
|
|
@@ -10875,7 +11024,7 @@ declare class BorderEditor extends Component<BorderEditorProps, SpreadsheetChild
|
|
|
10875
11024
|
el: HTMLElement | null;
|
|
10876
11025
|
};
|
|
10877
11026
|
borderStyles: readonly ["thin", "medium", "thick", "dashed", "dotted"];
|
|
10878
|
-
state: State$
|
|
11027
|
+
state: State$4;
|
|
10879
11028
|
toggleDropdownTool(tool: Tool): void;
|
|
10880
11029
|
closeDropdown(): void;
|
|
10881
11030
|
setBorderPosition(position: BorderPosition): void;
|
|
@@ -10886,19 +11035,19 @@ declare class BorderEditor extends Component<BorderEditorProps, SpreadsheetChild
|
|
|
10886
11035
|
get lineStylePickerAnchorRect(): Rect;
|
|
10887
11036
|
}
|
|
10888
11037
|
|
|
10889
|
-
interface Props$
|
|
11038
|
+
interface Props$3 {
|
|
10890
11039
|
toggleBorderEditor: () => void;
|
|
10891
11040
|
showBorderEditor: boolean;
|
|
10892
11041
|
disabled?: boolean;
|
|
10893
11042
|
dropdownMaxHeight?: Pixel;
|
|
10894
11043
|
class?: string;
|
|
10895
11044
|
}
|
|
10896
|
-
interface State$
|
|
11045
|
+
interface State$3 {
|
|
10897
11046
|
currentColor: Color;
|
|
10898
11047
|
currentStyle: BorderStyle;
|
|
10899
11048
|
currentPosition: BorderPosition | undefined;
|
|
10900
11049
|
}
|
|
10901
|
-
declare class BorderEditorWidget extends Component<Props$
|
|
11050
|
+
declare class BorderEditorWidget extends Component<Props$3, SpreadsheetChildEnv> {
|
|
10902
11051
|
static template: string;
|
|
10903
11052
|
static props: {
|
|
10904
11053
|
toggleBorderEditor: FunctionConstructor;
|
|
@@ -10922,7 +11071,7 @@ declare class BorderEditorWidget extends Component<Props$4, SpreadsheetChildEnv>
|
|
|
10922
11071
|
borderEditorButtonRef: {
|
|
10923
11072
|
el: HTMLElement | null;
|
|
10924
11073
|
};
|
|
10925
|
-
state: State$
|
|
11074
|
+
state: State$3;
|
|
10926
11075
|
get borderEditorAnchorRect(): Rect;
|
|
10927
11076
|
onBorderPositionPicked(position: BorderPosition): void;
|
|
10928
11077
|
onBorderColorPicked(color: Color): void;
|
|
@@ -10946,38 +11095,6 @@ declare class TopBarComposer extends Component<any, SpreadsheetChildEnv> {
|
|
|
10946
11095
|
onFocus(selection: ComposerSelection): void;
|
|
10947
11096
|
}
|
|
10948
11097
|
|
|
10949
|
-
interface State$3 {
|
|
10950
|
-
isOpen: boolean;
|
|
10951
|
-
}
|
|
10952
|
-
interface Props$3 {
|
|
10953
|
-
onToggle: () => void;
|
|
10954
|
-
dropdownStyle: string;
|
|
10955
|
-
class: string;
|
|
10956
|
-
}
|
|
10957
|
-
declare class FontSizeEditor extends Component<Props$3, SpreadsheetChildEnv> {
|
|
10958
|
-
static template: string;
|
|
10959
|
-
static props: {
|
|
10960
|
-
onToggle: FunctionConstructor;
|
|
10961
|
-
dropdownStyle: StringConstructor;
|
|
10962
|
-
class: StringConstructor;
|
|
10963
|
-
};
|
|
10964
|
-
static components: {};
|
|
10965
|
-
fontSizes: number[];
|
|
10966
|
-
dropdown: State$3;
|
|
10967
|
-
private inputRef;
|
|
10968
|
-
private rootEditorRef;
|
|
10969
|
-
setup(): void;
|
|
10970
|
-
onExternalClick(ev: MouseEvent): void;
|
|
10971
|
-
get currentFontSize(): number;
|
|
10972
|
-
toggleFontList(): void;
|
|
10973
|
-
closeFontList(): void;
|
|
10974
|
-
private setSize;
|
|
10975
|
-
setSizeFromInput(ev: InputEvent): void;
|
|
10976
|
-
setSizeFromList(fontSizeStr: string): void;
|
|
10977
|
-
onInputFocused(ev: InputEvent): void;
|
|
10978
|
-
onInputKeydown(ev: KeyboardEvent): void;
|
|
10979
|
-
}
|
|
10980
|
-
|
|
10981
11098
|
interface Props$2 {
|
|
10982
11099
|
tableConfig: TableConfig;
|
|
10983
11100
|
tableStyle: TableStyle;
|
|
@@ -11119,7 +11236,6 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
|
|
|
11119
11236
|
onClick: FunctionConstructor;
|
|
11120
11237
|
dropdownMaxHeight: NumberConstructor;
|
|
11121
11238
|
};
|
|
11122
|
-
get dropdownStyle(): string;
|
|
11123
11239
|
static components: {
|
|
11124
11240
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
11125
11241
|
ColorPicker: typeof ColorPicker;
|
|
@@ -11143,6 +11259,7 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
|
|
|
11143
11259
|
composerFocusStore: Store<ComposerFocusStore>;
|
|
11144
11260
|
setup(): void;
|
|
11145
11261
|
get topbarComponents(): TopbarComponent[];
|
|
11262
|
+
get currentFontSize(): number;
|
|
11146
11263
|
onExternalClick(ev: MouseEvent): void;
|
|
11147
11264
|
onClick(): void;
|
|
11148
11265
|
onMenuMouseOver(menu: Action, ev: MouseEvent): void;
|
|
@@ -11154,6 +11271,7 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
|
|
|
11154
11271
|
updateCellState(): void;
|
|
11155
11272
|
getMenuName(menu: Action): string;
|
|
11156
11273
|
setColor(target: string, color: Color): void;
|
|
11274
|
+
setFontSize(fontSize: number): void;
|
|
11157
11275
|
}
|
|
11158
11276
|
|
|
11159
11277
|
interface SpreadsheetProps extends Partial<NotificationStoreMethods> {
|
|
@@ -12281,6 +12399,7 @@ declare const helpers: {
|
|
|
12281
12399
|
createPivotFormula: typeof createPivotFormula;
|
|
12282
12400
|
areDomainArgsFieldsValid: typeof areDomainArgsFieldsValid;
|
|
12283
12401
|
splitReference: typeof splitReference;
|
|
12402
|
+
sanitizeSheetName: typeof sanitizeSheetName;
|
|
12284
12403
|
};
|
|
12285
12404
|
declare const links: {
|
|
12286
12405
|
isMarkdownLink: typeof isMarkdownLink;
|
|
@@ -12312,6 +12431,9 @@ declare const components: {
|
|
|
12312
12431
|
GaugeChartDesignPanel: typeof GaugeChartDesignPanel;
|
|
12313
12432
|
ScorecardChartConfigPanel: typeof ScorecardChartConfigPanel;
|
|
12314
12433
|
ScorecardChartDesignPanel: typeof ScorecardChartDesignPanel;
|
|
12434
|
+
RadarChartDesignPanel: typeof RadarChartDesignPanel;
|
|
12435
|
+
WaterfallChartDesignPanel: typeof WaterfallChartDesignPanel;
|
|
12436
|
+
ComboChartDesignPanel: typeof ComboChartDesignPanel;
|
|
12315
12437
|
ChartTypePicker: typeof ChartTypePicker;
|
|
12316
12438
|
FigureComponent: typeof FigureComponent;
|
|
12317
12439
|
Menu: typeof Menu;
|
|
@@ -12373,6 +12495,32 @@ declare const constants: {
|
|
|
12373
12495
|
styleId: string;
|
|
12374
12496
|
automaticAutofill: boolean;
|
|
12375
12497
|
};
|
|
12498
|
+
ChartTerms: {
|
|
12499
|
+
Series: string;
|
|
12500
|
+
BackgroundColor: string;
|
|
12501
|
+
StackedBarChart: string;
|
|
12502
|
+
StackedLineChart: string;
|
|
12503
|
+
StackedAreaChart: string;
|
|
12504
|
+
StackedColumnChart: string;
|
|
12505
|
+
CumulativeData: string;
|
|
12506
|
+
TreatLabelsAsText: string;
|
|
12507
|
+
AggregatedChart: string;
|
|
12508
|
+
Errors: {
|
|
12509
|
+
Unexpected: string;
|
|
12510
|
+
InvalidDataSet: string;
|
|
12511
|
+
InvalidLabelRange: string;
|
|
12512
|
+
InvalidScorecardKeyValue: string;
|
|
12513
|
+
InvalidScorecardBaseline: string;
|
|
12514
|
+
InvalidGaugeDataRange: string;
|
|
12515
|
+
EmptyGaugeRangeMin: string;
|
|
12516
|
+
GaugeRangeMinNaN: string;
|
|
12517
|
+
EmptyGaugeRangeMax: string;
|
|
12518
|
+
GaugeRangeMaxNaN: string;
|
|
12519
|
+
GaugeRangeMinBiggerThanRangeMax: string;
|
|
12520
|
+
GaugeLowerInflectionPointNaN: string;
|
|
12521
|
+
GaugeUpperInflectionPointNaN: string;
|
|
12522
|
+
};
|
|
12523
|
+
};
|
|
12376
12524
|
};
|
|
12377
12525
|
declare const chartHelpers: {
|
|
12378
12526
|
getBarChartData(definition: GenericDefinition<BarChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
|
|
@@ -12395,23 +12543,7 @@ declare const chartHelpers: {
|
|
|
12395
12543
|
getPieChartDatasets(definition: GenericDefinition<PieChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"pie">[];
|
|
12396
12544
|
getComboChartDatasets(definition: GenericDefinition<ComboChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"line" | "bar">[];
|
|
12397
12545
|
getRadarChartDatasets(definition: GenericDefinition<RadarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"radar">[];
|
|
12398
|
-
|
|
12399
|
-
autoPadding: boolean;
|
|
12400
|
-
padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
|
|
12401
|
-
}>> | undefined;
|
|
12402
|
-
getBarChartLayout(definition: GenericDefinition<BarChartDefinition>): chart_js_dist_types_utils._DeepPartialObject<Partial<{
|
|
12403
|
-
autoPadding: boolean;
|
|
12404
|
-
padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
|
|
12405
|
-
}>> | undefined;
|
|
12406
|
-
getLineChartLayout(definition: GenericDefinition<LineChartDefinition>): chart_js_dist_types_utils._DeepPartialObject<Partial<{
|
|
12407
|
-
autoPadding: boolean;
|
|
12408
|
-
padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
|
|
12409
|
-
}>> | undefined;
|
|
12410
|
-
getPieChartLayout(definition: PieChartDefinition): chart_js_dist_types_utils._DeepPartialObject<Partial<{
|
|
12411
|
-
autoPadding: boolean;
|
|
12412
|
-
padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
|
|
12413
|
-
}>> | undefined;
|
|
12414
|
-
getWaterfallChartLayout(definition: WaterfallChartDefinition): chart_js_dist_types_utils._DeepPartialObject<Partial<{
|
|
12546
|
+
getChartLayout(definition: GenericDefinition<ChartWithDataSetDefinition>): chart_js_dist_types_utils._DeepPartialObject<Partial<{
|
|
12415
12547
|
autoPadding: boolean;
|
|
12416
12548
|
padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
|
|
12417
12549
|
}>> | undefined;
|
|
@@ -12856,6 +12988,7 @@ declare const chartHelpers: {
|
|
|
12856
12988
|
toExcelLabelRange(getters: CoreGetters, labelRange: Range | undefined, shouldRemoveFirstLabel?: boolean | undefined): string | undefined;
|
|
12857
12989
|
transformChartDefinitionWithDataSetsWithZone<T extends ChartWithDataSetDefinition>(definition: T, executed: AddColumnsRowsCommand | RemoveColumnsRowsCommand): T;
|
|
12858
12990
|
chartFontColor(backgroundColor: Color | undefined): Color;
|
|
12991
|
+
chartMutedFontColor(backgroundColor: Color | undefined): Color;
|
|
12859
12992
|
checkDataset(definition: ChartWithDataSetDefinition): CommandResult;
|
|
12860
12993
|
checkLabelRange(definition: ChartWithDataSetDefinition): CommandResult;
|
|
12861
12994
|
shouldRemoveFirstLabel(labelRange: Range | undefined, dataset: DataSet | undefined, dataSetsHaveTitle: boolean): boolean;
|