@odoo/o-spreadsheet 18.3.2 → 18.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/o-spreadsheet.cjs.js +42272 -41398
- package/dist/o-spreadsheet.d.ts +319 -203
- package/dist/o-spreadsheet.esm.js +42273 -41399
- package/dist/o-spreadsheet.iife.js +42355 -41481
- package/dist/o-spreadsheet.iife.min.js +1743 -1718
- package/dist/o_spreadsheet.xml +80 -14
- package/package.json +11 -6
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -231,9 +231,10 @@ interface PieChartDefinition {
|
|
|
231
231
|
readonly aggregated?: boolean;
|
|
232
232
|
readonly isDoughnut?: boolean;
|
|
233
233
|
readonly showValues?: boolean;
|
|
234
|
+
readonly pieHolePercentage?: number;
|
|
234
235
|
}
|
|
235
236
|
type PieChartRuntime = {
|
|
236
|
-
chartJsConfig: ChartConfiguration
|
|
237
|
+
chartJsConfig: ChartConfiguration<"pie" | "doughnut">;
|
|
237
238
|
background: Color;
|
|
238
239
|
};
|
|
239
240
|
|
|
@@ -313,6 +314,7 @@ interface SunburstChartDefinition {
|
|
|
313
314
|
readonly showLabels?: boolean;
|
|
314
315
|
readonly valuesDesign?: ChartStyle;
|
|
315
316
|
readonly groupColors?: (Color | undefined | null)[];
|
|
317
|
+
readonly pieHolePercentage?: number;
|
|
316
318
|
}
|
|
317
319
|
type SunburstChartRuntime = {
|
|
318
320
|
chartJsConfig: ChartConfiguration<"doughnut">;
|
|
@@ -561,6 +563,7 @@ interface DataSet {
|
|
|
561
563
|
readonly rightYAxis?: boolean;
|
|
562
564
|
readonly backgroundColor?: Color;
|
|
563
565
|
readonly customLabel?: string;
|
|
566
|
+
readonly trend?: TrendConfiguration;
|
|
564
567
|
}
|
|
565
568
|
interface ExcelChartDataset {
|
|
566
569
|
readonly label?: {
|
|
@@ -571,7 +574,15 @@ interface ExcelChartDataset {
|
|
|
571
574
|
readonly range: string;
|
|
572
575
|
readonly backgroundColor?: Color;
|
|
573
576
|
readonly rightYAxis?: boolean;
|
|
577
|
+
readonly trend?: ExcelChartTrendConfiguration;
|
|
574
578
|
}
|
|
579
|
+
interface ExcelChartTrendConfiguration {
|
|
580
|
+
readonly type?: ExcelTrendlineType;
|
|
581
|
+
readonly order?: number;
|
|
582
|
+
readonly color?: Color;
|
|
583
|
+
readonly window?: number;
|
|
584
|
+
}
|
|
585
|
+
type ExcelTrendlineType = "poly" | "exp" | "log" | "movingAvg" | "linear";
|
|
575
586
|
type ExcelChartType = "line" | "bar" | "pie" | "combo" | "scatter" | "radar";
|
|
576
587
|
interface ExcelChartDefinition {
|
|
577
588
|
readonly title?: TitleDesign;
|
|
@@ -625,6 +636,7 @@ interface ChartRuntimeGenerationArgs {
|
|
|
625
636
|
locale: Locale;
|
|
626
637
|
trendDataSetsValues?: (Point[] | undefined)[];
|
|
627
638
|
axisType?: AxisType;
|
|
639
|
+
topPadding?: number;
|
|
628
640
|
}
|
|
629
641
|
/** Generic definition of chart to create a runtime: omit the chart type and the dataRange of the dataSets*/
|
|
630
642
|
type GenericDefinition<T extends ChartWithDataSetDefinition> = Partial<Omit<T, "dataSets" | "type">> & {
|
|
@@ -1397,6 +1409,11 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
1397
1409
|
*/
|
|
1398
1410
|
private debouncedMove;
|
|
1399
1411
|
private pendingMessages;
|
|
1412
|
+
/**
|
|
1413
|
+
* Stored position of the client, if session.move is called while the client is not in a session.
|
|
1414
|
+
* Will be used to send the position to the server when the client joins.
|
|
1415
|
+
*/
|
|
1416
|
+
private awaitingClientPosition;
|
|
1400
1417
|
private waitingAck;
|
|
1401
1418
|
/**
|
|
1402
1419
|
* Flag used to block all commands when an undo or redo is triggered, until
|
|
@@ -1730,7 +1747,6 @@ type StatefulStream<Event, State> = {
|
|
|
1730
1747
|
resetDefaultAnchor: (owner: unknown, state: State) => void;
|
|
1731
1748
|
resetAnchor: (owner: unknown, state: State) => void;
|
|
1732
1749
|
observe: (owner: unknown, callbacks: StreamCallbacks<Event>) => void;
|
|
1733
|
-
detachObserver: (owner: unknown) => void;
|
|
1734
1750
|
release: (owner: unknown) => void;
|
|
1735
1751
|
getBackToDefault(): void;
|
|
1736
1752
|
};
|
|
@@ -3632,7 +3648,7 @@ interface Border$1 {
|
|
|
3632
3648
|
type ReferenceDenormalizer = (range: Range, isMeta: boolean, functionName: string, paramNumber: number) => FunctionResultObject;
|
|
3633
3649
|
type EnsureRange = (range: Range) => Matrix<FunctionResultObject>;
|
|
3634
3650
|
type GetSymbolValue = (symbolName: string) => Arg;
|
|
3635
|
-
type FormulaToExecute = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, getSymbolValue: GetSymbolValue, ctx:
|
|
3651
|
+
type FormulaToExecute = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, getSymbolValue: GetSymbolValue, ctx: object) => Matrix<FunctionResultObject> | FunctionResultObject;
|
|
3636
3652
|
interface CompiledFormula {
|
|
3637
3653
|
execute: FormulaToExecute;
|
|
3638
3654
|
tokens: Token[];
|
|
@@ -6532,12 +6548,20 @@ declare class Registry<T> {
|
|
|
6532
6548
|
[key: string]: T;
|
|
6533
6549
|
};
|
|
6534
6550
|
/**
|
|
6535
|
-
* Add an item to the registry
|
|
6551
|
+
* Add an item to the registry, you can only add if there is no item
|
|
6552
|
+
* already present in the registery with the given key
|
|
6536
6553
|
*
|
|
6537
6554
|
* Note that this also returns the registry, so another add method call can
|
|
6538
6555
|
* be chained
|
|
6539
6556
|
*/
|
|
6540
|
-
add(key: string, value: T):
|
|
6557
|
+
add(key: string, value: T): this;
|
|
6558
|
+
/**
|
|
6559
|
+
* Replace (or add) an item to the registry
|
|
6560
|
+
*
|
|
6561
|
+
* Note that this also returns the registry, so another add method call can
|
|
6562
|
+
* be chained
|
|
6563
|
+
*/
|
|
6564
|
+
replace(key: string, value: T): this;
|
|
6541
6565
|
/**
|
|
6542
6566
|
* Get an item from the registry
|
|
6543
6567
|
*/
|
|
@@ -6803,6 +6827,7 @@ interface ChartBuilder {
|
|
|
6803
6827
|
transformDefinition(definition: ChartDefinition, executed: AddColumnsRowsCommand | RemoveColumnsRowsCommand): ChartDefinition;
|
|
6804
6828
|
getChartDefinitionFromContextCreation(context: ChartCreationContext): ChartDefinition;
|
|
6805
6829
|
sequence: number;
|
|
6830
|
+
dataSeriesLimit?: number;
|
|
6806
6831
|
}
|
|
6807
6832
|
type ChartUICategory = keyof typeof chartCategories;
|
|
6808
6833
|
declare const chartCategories: {
|
|
@@ -6829,7 +6854,7 @@ interface ChartSubtypeProperties {
|
|
|
6829
6854
|
preview: string;
|
|
6830
6855
|
}
|
|
6831
6856
|
|
|
6832
|
-
interface Props$
|
|
6857
|
+
interface Props$1i {
|
|
6833
6858
|
label?: string;
|
|
6834
6859
|
value: boolean;
|
|
6835
6860
|
className?: string;
|
|
@@ -6838,7 +6863,7 @@ interface Props$1g {
|
|
|
6838
6863
|
disabled?: boolean;
|
|
6839
6864
|
onChange: (value: boolean) => void;
|
|
6840
6865
|
}
|
|
6841
|
-
declare class Checkbox extends Component<Props$
|
|
6866
|
+
declare class Checkbox extends Component<Props$1i, SpreadsheetChildEnv> {
|
|
6842
6867
|
static template: string;
|
|
6843
6868
|
static props: {
|
|
6844
6869
|
label: {
|
|
@@ -6873,10 +6898,10 @@ declare class Checkbox extends Component<Props$1g, SpreadsheetChildEnv> {
|
|
|
6873
6898
|
onChange(ev: InputEvent): void;
|
|
6874
6899
|
}
|
|
6875
6900
|
|
|
6876
|
-
interface Props$
|
|
6901
|
+
interface Props$1h {
|
|
6877
6902
|
class?: string;
|
|
6878
6903
|
}
|
|
6879
|
-
declare class Section extends Component<Props$
|
|
6904
|
+
declare class Section extends Component<Props$1h, SpreadsheetChildEnv> {
|
|
6880
6905
|
static template: string;
|
|
6881
6906
|
static props: {
|
|
6882
6907
|
class: {
|
|
@@ -6932,7 +6957,8 @@ declare class SelectionInputStore extends SpreadsheetStore {
|
|
|
6932
6957
|
private initialRanges;
|
|
6933
6958
|
private readonly inputHasSingleRange;
|
|
6934
6959
|
colors: Color[];
|
|
6935
|
-
|
|
6960
|
+
disabledRanges: boolean[];
|
|
6961
|
+
mutators: readonly ["resetWithRanges", "focusById", "unfocus", "addEmptyRange", "removeRange", "changeRange", "reset", "confirm", "updateColors", "updateDisabledRanges"];
|
|
6936
6962
|
private ranges;
|
|
6937
6963
|
focusedRangeIndex: number | null;
|
|
6938
6964
|
private inputSheetId;
|
|
@@ -6944,13 +6970,14 @@ declare class SelectionInputStore extends SpreadsheetStore {
|
|
|
6944
6970
|
readonly renderingLayers: readonly ["Highlights"];
|
|
6945
6971
|
readonly highlights: Highlight$1[];
|
|
6946
6972
|
};
|
|
6947
|
-
constructor(get: Get, initialRanges?: string[], inputHasSingleRange?: boolean, colors?: Color[]);
|
|
6973
|
+
constructor(get: Get, initialRanges?: string[], inputHasSingleRange?: boolean, colors?: Color[], disabledRanges?: boolean[]);
|
|
6948
6974
|
handleEvent(event: SelectionEvent): void;
|
|
6949
6975
|
handle(cmd: Command): void;
|
|
6950
6976
|
changeRange(rangeId: number, value: string): void;
|
|
6951
6977
|
addEmptyRange(): void;
|
|
6952
6978
|
removeRange(rangeId: number): void;
|
|
6953
6979
|
updateColors(colors: Color[]): void;
|
|
6980
|
+
updateDisabledRanges(disabledRanges: boolean[]): void;
|
|
6954
6981
|
confirm(): void;
|
|
6955
6982
|
reset(): void;
|
|
6956
6983
|
get selectionInputValues(): string[];
|
|
@@ -6961,6 +6988,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
|
|
|
6961
6988
|
get selectionInputs(): (RangeInputValue & {
|
|
6962
6989
|
isFocused: boolean;
|
|
6963
6990
|
isValidRange: boolean;
|
|
6991
|
+
disabled?: boolean;
|
|
6964
6992
|
})[];
|
|
6965
6993
|
get isResettable(): boolean;
|
|
6966
6994
|
get isConfirmable(): boolean;
|
|
@@ -7010,7 +7038,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
|
|
|
7010
7038
|
getIndex(rangeId: number | null): number | null;
|
|
7011
7039
|
}
|
|
7012
7040
|
|
|
7013
|
-
interface Props$
|
|
7041
|
+
interface Props$1g {
|
|
7014
7042
|
ranges: string[];
|
|
7015
7043
|
hasSingleRange?: boolean;
|
|
7016
7044
|
required?: boolean;
|
|
@@ -7021,11 +7049,14 @@ interface Props$1e {
|
|
|
7021
7049
|
onSelectionRemoved?: (index: number) => void;
|
|
7022
7050
|
onSelectionConfirmed?: () => void;
|
|
7023
7051
|
colors?: Color[];
|
|
7052
|
+
disabledRanges?: boolean[];
|
|
7053
|
+
disabledRangeTitle?: string;
|
|
7024
7054
|
}
|
|
7025
7055
|
interface SelectionRange extends Omit<RangeInputValue, "color"> {
|
|
7026
7056
|
isFocused: boolean;
|
|
7027
7057
|
isValidRange: boolean;
|
|
7028
7058
|
color?: Color;
|
|
7059
|
+
disabled?: boolean;
|
|
7029
7060
|
}
|
|
7030
7061
|
/**
|
|
7031
7062
|
* This component can be used when the user needs to input some
|
|
@@ -7035,7 +7066,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
|
|
|
7035
7066
|
* onSelectionChanged is called every time the input value
|
|
7036
7067
|
* changes.
|
|
7037
7068
|
*/
|
|
7038
|
-
declare class SelectionInput extends Component<Props$
|
|
7069
|
+
declare class SelectionInput extends Component<Props$1g, SpreadsheetChildEnv> {
|
|
7039
7070
|
static template: string;
|
|
7040
7071
|
static props: {
|
|
7041
7072
|
ranges: ArrayConstructor;
|
|
@@ -7076,6 +7107,15 @@ declare class SelectionInput extends Component<Props$1e, SpreadsheetChildEnv> {
|
|
|
7076
7107
|
optional: boolean;
|
|
7077
7108
|
default: never[];
|
|
7078
7109
|
};
|
|
7110
|
+
disabledRanges: {
|
|
7111
|
+
type: ArrayConstructor;
|
|
7112
|
+
optional: boolean;
|
|
7113
|
+
default: never[];
|
|
7114
|
+
};
|
|
7115
|
+
disabledRangeTitle: {
|
|
7116
|
+
type: StringConstructor;
|
|
7117
|
+
optional: boolean;
|
|
7118
|
+
};
|
|
7079
7119
|
};
|
|
7080
7120
|
private state;
|
|
7081
7121
|
private dragAndDrop;
|
|
@@ -7087,6 +7127,7 @@ declare class SelectionInput extends Component<Props$1e, SpreadsheetChildEnv> {
|
|
|
7087
7127
|
get isInvalid(): boolean;
|
|
7088
7128
|
get isConfirmable(): boolean;
|
|
7089
7129
|
get isResettable(): boolean;
|
|
7130
|
+
get hasDisabledRanges(): boolean;
|
|
7090
7131
|
setup(): void;
|
|
7091
7132
|
startDragAndDrop(rangeId: number, event: MouseEvent): void;
|
|
7092
7133
|
getRangeElementsRects(): DOMRect[];
|
|
@@ -7102,16 +7143,17 @@ declare class SelectionInput extends Component<Props$1e, SpreadsheetChildEnv> {
|
|
|
7102
7143
|
confirm(): void;
|
|
7103
7144
|
}
|
|
7104
7145
|
|
|
7105
|
-
interface Props$
|
|
7146
|
+
interface Props$1f {
|
|
7106
7147
|
ranges: CustomizedDataSet[];
|
|
7107
7148
|
hasSingleRange?: boolean;
|
|
7108
7149
|
onSelectionChanged: (ranges: string[]) => void;
|
|
7109
7150
|
onSelectionReordered?: (indexes: number[]) => void;
|
|
7110
7151
|
onSelectionRemoved?: (index: number) => void;
|
|
7111
7152
|
onSelectionConfirmed: () => void;
|
|
7153
|
+
maxNumberOfUsedRanges?: number;
|
|
7112
7154
|
title?: string;
|
|
7113
7155
|
}
|
|
7114
|
-
declare class ChartDataSeries extends Component<Props$
|
|
7156
|
+
declare class ChartDataSeries extends Component<Props$1f, SpreadsheetChildEnv> {
|
|
7115
7157
|
static template: string;
|
|
7116
7158
|
static components: {
|
|
7117
7159
|
SelectionInput: typeof SelectionInput;
|
|
@@ -7137,18 +7179,23 @@ declare class ChartDataSeries extends Component<Props$1d, SpreadsheetChildEnv> {
|
|
|
7137
7179
|
type: StringConstructor;
|
|
7138
7180
|
optional: boolean;
|
|
7139
7181
|
};
|
|
7182
|
+
maxNumberOfUsedRanges: {
|
|
7183
|
+
type: NumberConstructor;
|
|
7184
|
+
optional: boolean;
|
|
7185
|
+
};
|
|
7140
7186
|
};
|
|
7141
7187
|
get ranges(): string[];
|
|
7188
|
+
get disabledRanges(): boolean[];
|
|
7142
7189
|
get colors(): (Color | undefined)[];
|
|
7143
7190
|
get title(): string;
|
|
7144
7191
|
}
|
|
7145
7192
|
|
|
7146
|
-
interface Props$
|
|
7193
|
+
interface Props$1e {
|
|
7147
7194
|
messages: string[];
|
|
7148
7195
|
msgType: "warning" | "error" | "info";
|
|
7149
7196
|
singleBox?: boolean;
|
|
7150
7197
|
}
|
|
7151
|
-
declare class ValidationMessages extends Component<Props$
|
|
7198
|
+
declare class ValidationMessages extends Component<Props$1e, SpreadsheetChildEnv> {
|
|
7152
7199
|
static template: string;
|
|
7153
7200
|
static props: {
|
|
7154
7201
|
messages: ArrayConstructor;
|
|
@@ -7162,10 +7209,10 @@ declare class ValidationMessages extends Component<Props$1c, SpreadsheetChildEnv
|
|
|
7162
7209
|
get alertBoxes(): string[][];
|
|
7163
7210
|
}
|
|
7164
7211
|
|
|
7165
|
-
interface Props$
|
|
7212
|
+
interface Props$1d {
|
|
7166
7213
|
messages: string[];
|
|
7167
7214
|
}
|
|
7168
|
-
declare class ChartErrorSection extends Component<Props$
|
|
7215
|
+
declare class ChartErrorSection extends Component<Props$1d, SpreadsheetChildEnv> {
|
|
7169
7216
|
static template: string;
|
|
7170
7217
|
static components: {
|
|
7171
7218
|
Section: typeof Section;
|
|
@@ -7179,7 +7226,7 @@ declare class ChartErrorSection extends Component<Props$1b, SpreadsheetChildEnv>
|
|
|
7179
7226
|
};
|
|
7180
7227
|
}
|
|
7181
7228
|
|
|
7182
|
-
interface Props$
|
|
7229
|
+
interface Props$1c {
|
|
7183
7230
|
title?: string;
|
|
7184
7231
|
range: string;
|
|
7185
7232
|
isInvalid: boolean;
|
|
@@ -7192,7 +7239,7 @@ interface Props$1a {
|
|
|
7192
7239
|
onChange: (value: boolean) => void;
|
|
7193
7240
|
}>;
|
|
7194
7241
|
}
|
|
7195
|
-
declare class ChartLabelRange extends Component<Props$
|
|
7242
|
+
declare class ChartLabelRange extends Component<Props$1c, SpreadsheetChildEnv> {
|
|
7196
7243
|
static template: string;
|
|
7197
7244
|
static components: {
|
|
7198
7245
|
SelectionInput: typeof SelectionInput;
|
|
@@ -7213,10 +7260,10 @@ declare class ChartLabelRange extends Component<Props$1a, SpreadsheetChildEnv> {
|
|
|
7213
7260
|
optional: boolean;
|
|
7214
7261
|
};
|
|
7215
7262
|
};
|
|
7216
|
-
static defaultProps: Partial<Props$
|
|
7263
|
+
static defaultProps: Partial<Props$1c>;
|
|
7217
7264
|
}
|
|
7218
7265
|
|
|
7219
|
-
interface Props$
|
|
7266
|
+
interface Props$1b {
|
|
7220
7267
|
figureId: UID;
|
|
7221
7268
|
definition: ChartWithDataSetDefinition;
|
|
7222
7269
|
canUpdateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
@@ -7226,7 +7273,7 @@ interface ChartPanelState {
|
|
|
7226
7273
|
datasetDispatchResult?: DispatchResult;
|
|
7227
7274
|
labelsDispatchResult?: DispatchResult;
|
|
7228
7275
|
}
|
|
7229
|
-
declare class GenericChartConfigPanel extends Component<Props$
|
|
7276
|
+
declare class GenericChartConfigPanel extends Component<Props$1b, SpreadsheetChildEnv> {
|
|
7230
7277
|
static template: string;
|
|
7231
7278
|
static components: {
|
|
7232
7279
|
ChartDataSeries: typeof ChartDataSeries;
|
|
@@ -7280,6 +7327,7 @@ declare class GenericChartConfigPanel extends Component<Props$19, SpreadsheetChi
|
|
|
7280
7327
|
getLabelRange(): string;
|
|
7281
7328
|
onUpdateAggregated(aggregated: boolean): void;
|
|
7282
7329
|
calculateHeaderPosition(): number | undefined;
|
|
7330
|
+
get maxNumberOfUsedRanges(): number | undefined;
|
|
7283
7331
|
}
|
|
7284
7332
|
|
|
7285
7333
|
declare class BarConfigPanel extends GenericChartConfigPanel {
|
|
@@ -7288,11 +7336,11 @@ declare class BarConfigPanel extends GenericChartConfigPanel {
|
|
|
7288
7336
|
onUpdateStacked(stacked: boolean): void;
|
|
7289
7337
|
}
|
|
7290
7338
|
|
|
7291
|
-
interface Props$
|
|
7339
|
+
interface Props$1a {
|
|
7292
7340
|
isCollapsed: boolean;
|
|
7293
7341
|
slots: any;
|
|
7294
7342
|
}
|
|
7295
|
-
declare class Collapse extends Component<Props$
|
|
7343
|
+
declare class Collapse extends Component<Props$1a, SpreadsheetChildEnv> {
|
|
7296
7344
|
static template: string;
|
|
7297
7345
|
static props: {
|
|
7298
7346
|
isCollapsed: BooleanConstructor;
|
|
@@ -7331,12 +7379,12 @@ interface Choice$1 {
|
|
|
7331
7379
|
value: string;
|
|
7332
7380
|
label: string;
|
|
7333
7381
|
}
|
|
7334
|
-
interface Props$
|
|
7382
|
+
interface Props$19 {
|
|
7335
7383
|
choices: Choice$1[];
|
|
7336
7384
|
onChange: (value: string) => void;
|
|
7337
7385
|
selectedValue: string;
|
|
7338
7386
|
}
|
|
7339
|
-
declare class BadgeSelection extends Component<Props$
|
|
7387
|
+
declare class BadgeSelection extends Component<Props$19, SpreadsheetChildEnv> {
|
|
7340
7388
|
static template: string;
|
|
7341
7389
|
static props: {
|
|
7342
7390
|
choices: ArrayConstructor;
|
|
@@ -7345,14 +7393,14 @@ declare class BadgeSelection extends Component<Props$17, SpreadsheetChildEnv> {
|
|
|
7345
7393
|
};
|
|
7346
7394
|
}
|
|
7347
7395
|
|
|
7348
|
-
interface Props$
|
|
7396
|
+
interface Props$18 {
|
|
7349
7397
|
action: ActionSpec;
|
|
7350
7398
|
hasTriangleDownIcon?: boolean;
|
|
7351
7399
|
selectedColor?: string;
|
|
7352
7400
|
class?: string;
|
|
7353
7401
|
onClick?: (ev: MouseEvent) => void;
|
|
7354
7402
|
}
|
|
7355
|
-
declare class ActionButton extends Component<Props$
|
|
7403
|
+
declare class ActionButton extends Component<Props$18, SpreadsheetChildEnv> {
|
|
7356
7404
|
static template: string;
|
|
7357
7405
|
static props: {
|
|
7358
7406
|
action: ObjectConstructor;
|
|
@@ -7537,7 +7585,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
|
|
|
7537
7585
|
isSameColor(color1: Color, color2: Color): boolean;
|
|
7538
7586
|
}
|
|
7539
7587
|
|
|
7540
|
-
interface Props$
|
|
7588
|
+
interface Props$17 {
|
|
7541
7589
|
currentColor: string | undefined;
|
|
7542
7590
|
toggleColorPicker: () => void;
|
|
7543
7591
|
showColorPicker: boolean;
|
|
@@ -7548,7 +7596,7 @@ interface Props$15 {
|
|
|
7548
7596
|
dropdownMaxHeight?: Pixel;
|
|
7549
7597
|
class?: string;
|
|
7550
7598
|
}
|
|
7551
|
-
declare class ColorPickerWidget extends Component<Props$
|
|
7599
|
+
declare class ColorPickerWidget extends Component<Props$17, SpreadsheetChildEnv> {
|
|
7552
7600
|
static template: string;
|
|
7553
7601
|
static props: {
|
|
7554
7602
|
currentColor: {
|
|
@@ -7609,14 +7657,14 @@ declare class CellPopoverStore extends SpreadsheetStore {
|
|
|
7609
7657
|
interface State$4 {
|
|
7610
7658
|
isOpen: boolean;
|
|
7611
7659
|
}
|
|
7612
|
-
interface Props$
|
|
7660
|
+
interface Props$16 {
|
|
7613
7661
|
currentFontSize: number;
|
|
7614
7662
|
class: string;
|
|
7615
7663
|
onFontSizeChanged: (fontSize: number) => void;
|
|
7616
7664
|
onToggle?: () => void;
|
|
7617
7665
|
onFocusInput?: () => void;
|
|
7618
7666
|
}
|
|
7619
|
-
declare class FontSizeEditor extends Component<Props$
|
|
7667
|
+
declare class FontSizeEditor extends Component<Props$16, SpreadsheetChildEnv> {
|
|
7620
7668
|
static template: string;
|
|
7621
7669
|
static props: {
|
|
7622
7670
|
currentFontSize: NumberConstructor;
|
|
@@ -7654,7 +7702,7 @@ declare class FontSizeEditor extends Component<Props$14, SpreadsheetChildEnv> {
|
|
|
7654
7702
|
onInputKeydown(ev: KeyboardEvent): void;
|
|
7655
7703
|
}
|
|
7656
7704
|
|
|
7657
|
-
interface Props$
|
|
7705
|
+
interface Props$15 {
|
|
7658
7706
|
class?: string;
|
|
7659
7707
|
style: ChartStyle;
|
|
7660
7708
|
updateStyle: (style: ChartStyle) => void;
|
|
@@ -7663,7 +7711,7 @@ interface Props$13 {
|
|
|
7663
7711
|
hasHorizontalAlign?: boolean;
|
|
7664
7712
|
hasBackgroundColor?: boolean;
|
|
7665
7713
|
}
|
|
7666
|
-
declare class TextStyler extends Component<Props$
|
|
7714
|
+
declare class TextStyler extends Component<Props$15, SpreadsheetChildEnv> {
|
|
7667
7715
|
static template: string;
|
|
7668
7716
|
static components: {
|
|
7669
7717
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
@@ -7731,7 +7779,7 @@ declare class TextStyler extends Component<Props$13, SpreadsheetChildEnv> {
|
|
|
7731
7779
|
get verticalAlignActions(): ActionSpec[];
|
|
7732
7780
|
}
|
|
7733
7781
|
|
|
7734
|
-
interface Props$
|
|
7782
|
+
interface Props$14 {
|
|
7735
7783
|
title?: string;
|
|
7736
7784
|
updateTitle: (title: string) => void;
|
|
7737
7785
|
name?: string;
|
|
@@ -7739,7 +7787,7 @@ interface Props$12 {
|
|
|
7739
7787
|
defaultStyle?: Partial<TitleDesign>;
|
|
7740
7788
|
updateStyle: (style: TitleDesign) => void;
|
|
7741
7789
|
}
|
|
7742
|
-
declare class ChartTitle extends Component<Props$
|
|
7790
|
+
declare class ChartTitle extends Component<Props$14, SpreadsheetChildEnv> {
|
|
7743
7791
|
static template: string;
|
|
7744
7792
|
static components: {
|
|
7745
7793
|
Section: typeof Section;
|
|
@@ -7772,13 +7820,13 @@ interface AxisDefinition {
|
|
|
7772
7820
|
id: string;
|
|
7773
7821
|
name: string;
|
|
7774
7822
|
}
|
|
7775
|
-
interface Props$
|
|
7823
|
+
interface Props$13 {
|
|
7776
7824
|
figureId: UID;
|
|
7777
7825
|
definition: ChartWithAxisDefinition;
|
|
7778
7826
|
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
7779
7827
|
axesList: AxisDefinition[];
|
|
7780
7828
|
}
|
|
7781
|
-
declare class AxisDesignEditor extends Component<Props$
|
|
7829
|
+
declare class AxisDesignEditor extends Component<Props$13, SpreadsheetChildEnv> {
|
|
7782
7830
|
static template: string;
|
|
7783
7831
|
static components: {
|
|
7784
7832
|
Section: typeof Section;
|
|
@@ -7810,14 +7858,14 @@ interface Choice {
|
|
|
7810
7858
|
value: unknown;
|
|
7811
7859
|
label: string;
|
|
7812
7860
|
}
|
|
7813
|
-
interface Props$
|
|
7861
|
+
interface Props$12 {
|
|
7814
7862
|
choices: Choice[];
|
|
7815
7863
|
onChange: (value: unknown) => void;
|
|
7816
7864
|
selectedValue: string;
|
|
7817
7865
|
name: string;
|
|
7818
7866
|
direction: "horizontal" | "vertical";
|
|
7819
7867
|
}
|
|
7820
|
-
declare class RadioSelection extends Component<Props$
|
|
7868
|
+
declare class RadioSelection extends Component<Props$12, SpreadsheetChildEnv> {
|
|
7821
7869
|
static template: string;
|
|
7822
7870
|
static props: {
|
|
7823
7871
|
choices: ArrayConstructor;
|
|
@@ -7836,13 +7884,13 @@ declare class RadioSelection extends Component<Props$10, SpreadsheetChildEnv> {
|
|
|
7836
7884
|
};
|
|
7837
7885
|
}
|
|
7838
7886
|
|
|
7839
|
-
interface Props
|
|
7887
|
+
interface Props$11 {
|
|
7840
7888
|
currentColor?: string;
|
|
7841
7889
|
onColorPicked: (color: string) => void;
|
|
7842
7890
|
title?: string;
|
|
7843
7891
|
disableNoColor?: boolean;
|
|
7844
7892
|
}
|
|
7845
|
-
declare class RoundColorPicker extends Component<Props
|
|
7893
|
+
declare class RoundColorPicker extends Component<Props$11, SpreadsheetChildEnv> {
|
|
7846
7894
|
static template: string;
|
|
7847
7895
|
static components: {
|
|
7848
7896
|
Section: typeof Section;
|
|
@@ -7875,13 +7923,13 @@ declare class RoundColorPicker extends Component<Props$$, SpreadsheetChildEnv> {
|
|
|
7875
7923
|
get buttonStyle(): string;
|
|
7876
7924
|
}
|
|
7877
7925
|
|
|
7878
|
-
interface Props$
|
|
7926
|
+
interface Props$10 {
|
|
7879
7927
|
figureId: UID;
|
|
7880
7928
|
definition: ChartDefinition;
|
|
7881
7929
|
updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
|
|
7882
7930
|
defaultChartTitleFontSize?: number;
|
|
7883
7931
|
}
|
|
7884
|
-
declare class GeneralDesignEditor extends Component<Props$
|
|
7932
|
+
declare class GeneralDesignEditor extends Component<Props$10, SpreadsheetChildEnv> {
|
|
7885
7933
|
static template: string;
|
|
7886
7934
|
static components: {
|
|
7887
7935
|
RoundColorPicker: typeof RoundColorPicker;
|
|
@@ -7915,12 +7963,12 @@ declare class GeneralDesignEditor extends Component<Props$_, SpreadsheetChildEnv
|
|
|
7915
7963
|
updateChartTitleStyle(style: TitleDesign): void;
|
|
7916
7964
|
}
|
|
7917
7965
|
|
|
7918
|
-
interface Props
|
|
7966
|
+
interface Props$$ {
|
|
7919
7967
|
figureId: UID;
|
|
7920
7968
|
definition: ChartWithDataSetDefinition;
|
|
7921
7969
|
updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7922
7970
|
}
|
|
7923
|
-
declare class ChartLegend extends Component<Props
|
|
7971
|
+
declare class ChartLegend extends Component<Props$$, SpreadsheetChildEnv> {
|
|
7924
7972
|
static template: string;
|
|
7925
7973
|
static components: {
|
|
7926
7974
|
Section: typeof Section;
|
|
@@ -7933,13 +7981,13 @@ declare class ChartLegend extends Component<Props$Z, SpreadsheetChildEnv> {
|
|
|
7933
7981
|
updateLegendPosition(ev: any): void;
|
|
7934
7982
|
}
|
|
7935
7983
|
|
|
7936
|
-
interface Props$
|
|
7984
|
+
interface Props$_ {
|
|
7937
7985
|
figureId: UID;
|
|
7938
7986
|
definition: ChartWithDataSetDefinition;
|
|
7939
7987
|
canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7940
7988
|
updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7941
7989
|
}
|
|
7942
|
-
declare class SeriesDesignEditor extends Component<Props$
|
|
7990
|
+
declare class SeriesDesignEditor extends Component<Props$_, SpreadsheetChildEnv> {
|
|
7943
7991
|
static template: string;
|
|
7944
7992
|
static components: {
|
|
7945
7993
|
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
@@ -7967,13 +8015,13 @@ declare class SeriesDesignEditor extends Component<Props$Y, SpreadsheetChildEnv>
|
|
|
7967
8015
|
getDataSeriesLabel(): string | undefined;
|
|
7968
8016
|
}
|
|
7969
8017
|
|
|
7970
|
-
interface Props$
|
|
8018
|
+
interface Props$Z {
|
|
7971
8019
|
figureId: UID;
|
|
7972
8020
|
definition: ChartWithDataSetDefinition;
|
|
7973
8021
|
canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7974
8022
|
updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
|
|
7975
8023
|
}
|
|
7976
|
-
declare class SeriesWithAxisDesignEditor extends Component<Props$
|
|
8024
|
+
declare class SeriesWithAxisDesignEditor extends Component<Props$Z, SpreadsheetChildEnv> {
|
|
7977
8025
|
static template: string;
|
|
7978
8026
|
static components: {
|
|
7979
8027
|
SeriesDesignEditor: typeof SeriesDesignEditor;
|
|
@@ -8014,13 +8062,13 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$X, SpreadsheetC
|
|
|
8014
8062
|
updateTrendLineValue(index: number, config: any): void;
|
|
8015
8063
|
}
|
|
8016
8064
|
|
|
8017
|
-
interface Props$
|
|
8065
|
+
interface Props$Y {
|
|
8018
8066
|
figureId: UID;
|
|
8019
8067
|
definition: ChartWithDataSetDefinition;
|
|
8020
8068
|
canUpdateChart: (figureID: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
|
|
8021
8069
|
updateChart: (figureId: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
|
|
8022
8070
|
}
|
|
8023
|
-
declare class ChartWithAxisDesignPanel<P extends Props$
|
|
8071
|
+
declare class ChartWithAxisDesignPanel<P extends Props$Y = Props$Y> extends Component<P, SpreadsheetChildEnv> {
|
|
8024
8072
|
static template: string;
|
|
8025
8073
|
static components: {
|
|
8026
8074
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -8040,13 +8088,13 @@ declare class ChartWithAxisDesignPanel<P extends Props$W = Props$W> extends Comp
|
|
|
8040
8088
|
get axesList(): AxisDefinition[];
|
|
8041
8089
|
}
|
|
8042
8090
|
|
|
8043
|
-
interface Props$
|
|
8091
|
+
interface Props$X {
|
|
8044
8092
|
figureId: UID;
|
|
8045
8093
|
definition: GaugeChartDefinition;
|
|
8046
8094
|
canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
8047
8095
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
8048
8096
|
}
|
|
8049
|
-
declare class GaugeChartConfigPanel extends Component<Props$
|
|
8097
|
+
declare class GaugeChartConfigPanel extends Component<Props$X, SpreadsheetChildEnv> {
|
|
8050
8098
|
static template: string;
|
|
8051
8099
|
static components: {
|
|
8052
8100
|
ChartErrorSection: typeof ChartErrorSection;
|
|
@@ -8111,13 +8159,13 @@ interface EnrichedToken extends Token {
|
|
|
8111
8159
|
isInHoverContext?: boolean;
|
|
8112
8160
|
}
|
|
8113
8161
|
|
|
8114
|
-
interface Props$
|
|
8162
|
+
interface Props$W {
|
|
8115
8163
|
proposals: AutoCompleteProposal[];
|
|
8116
8164
|
selectedIndex: number | undefined;
|
|
8117
8165
|
onValueSelected: (value: string) => void;
|
|
8118
8166
|
onValueHovered: (index: string) => void;
|
|
8119
8167
|
}
|
|
8120
|
-
declare class TextValueProvider extends Component<Props$
|
|
8168
|
+
declare class TextValueProvider extends Component<Props$W> {
|
|
8121
8169
|
static template: string;
|
|
8122
8170
|
static props: {
|
|
8123
8171
|
proposals: ArrayConstructor;
|
|
@@ -8132,17 +8180,6 @@ declare class TextValueProvider extends Component<Props$U> {
|
|
|
8132
8180
|
setup(): void;
|
|
8133
8181
|
}
|
|
8134
8182
|
|
|
8135
|
-
declare class AutoCompleteStore extends SpreadsheetStore {
|
|
8136
|
-
mutators: readonly ["useProvider", "moveSelection", "hide", "selectIndex"];
|
|
8137
|
-
selectedIndex: number | undefined;
|
|
8138
|
-
provider: AutoCompleteProvider | undefined;
|
|
8139
|
-
get selectedProposal(): AutoCompleteProposal | undefined;
|
|
8140
|
-
useProvider(provider: AutoCompleteProvider): void;
|
|
8141
|
-
hide(): void;
|
|
8142
|
-
selectIndex(index: number): void;
|
|
8143
|
-
moveSelection(direction: "previous" | "next"): void;
|
|
8144
|
-
}
|
|
8145
|
-
|
|
8146
8183
|
declare class ContentEditableHelper {
|
|
8147
8184
|
el: HTMLElement;
|
|
8148
8185
|
constructor(el: HTMLElement);
|
|
@@ -8184,11 +8221,11 @@ declare class ContentEditableHelper {
|
|
|
8184
8221
|
getText(): string;
|
|
8185
8222
|
}
|
|
8186
8223
|
|
|
8187
|
-
interface Props$
|
|
8224
|
+
interface Props$V {
|
|
8188
8225
|
functionDescription: FunctionDescription;
|
|
8189
8226
|
argsToFocus: number[];
|
|
8190
8227
|
}
|
|
8191
|
-
declare class FunctionDescriptionProvider extends Component<Props$
|
|
8228
|
+
declare class FunctionDescriptionProvider extends Component<Props$V, SpreadsheetChildEnv> {
|
|
8192
8229
|
static template: string;
|
|
8193
8230
|
static props: {
|
|
8194
8231
|
functionDescription: ObjectConstructor;
|
|
@@ -8199,15 +8236,15 @@ declare class FunctionDescriptionProvider extends Component<Props$T, Spreadsheet
|
|
|
8199
8236
|
};
|
|
8200
8237
|
private state;
|
|
8201
8238
|
toggle(): void;
|
|
8202
|
-
getContext(): Props$
|
|
8239
|
+
getContext(): Props$V;
|
|
8203
8240
|
get formulaArgSeparator(): string;
|
|
8204
8241
|
}
|
|
8205
8242
|
|
|
8206
|
-
interface Props$
|
|
8243
|
+
interface Props$U {
|
|
8207
8244
|
anchorRect: Rect;
|
|
8208
8245
|
content: string;
|
|
8209
8246
|
}
|
|
8210
|
-
declare class SpeechBubble extends Component<Props$
|
|
8247
|
+
declare class SpeechBubble extends Component<Props$U, SpreadsheetChildEnv> {
|
|
8211
8248
|
static template: string;
|
|
8212
8249
|
static props: {
|
|
8213
8250
|
content: StringConstructor;
|
|
@@ -8237,7 +8274,7 @@ interface ComposerSelection {
|
|
|
8237
8274
|
end: number;
|
|
8238
8275
|
}
|
|
8239
8276
|
declare abstract class AbstractComposerStore extends SpreadsheetStore {
|
|
8240
|
-
mutators: readonly ["startEdition", "setCurrentContent", "stopEdition", "stopComposerRangeSelection", "cancelEdition", "cycleReferences", "toggleEditionMode", "changeComposerCursorSelection", "replaceComposerCursorSelection", "hoverToken"];
|
|
8277
|
+
mutators: readonly ["startEdition", "setCurrentContent", "stopEdition", "stopComposerRangeSelection", "cancelEdition", "cycleReferences", "hideHelp", "autoCompleteOrStop", "insertAutoCompleteValue", "moveAutoCompleteSelection", "selectAutoCompleteIndex", "toggleEditionMode", "changeComposerCursorSelection", "replaceComposerCursorSelection", "hoverToken"];
|
|
8241
8278
|
protected col: HeaderIndex;
|
|
8242
8279
|
protected row: HeaderIndex;
|
|
8243
8280
|
editionMode: EditionMode;
|
|
@@ -8248,12 +8285,14 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
|
|
|
8248
8285
|
protected selectionEnd: number;
|
|
8249
8286
|
protected initialContent: string | undefined;
|
|
8250
8287
|
private colorIndexByRange;
|
|
8288
|
+
private autoComplete;
|
|
8251
8289
|
hoveredTokens: EnrichedToken[];
|
|
8252
8290
|
hoveredContentEvaluation: string;
|
|
8291
|
+
private autoCompleteKeepLast;
|
|
8253
8292
|
protected notificationStore: {
|
|
8254
8293
|
readonly notifyUser: (notification: InformationNotification) => void;
|
|
8255
|
-
readonly raiseError: (text: string, callback?: (() => void) | undefined) => void;
|
|
8256
8294
|
readonly askConfirmation: (content: string, confirm: () => void, cancel?: (() => void) | undefined) => void;
|
|
8295
|
+
readonly raiseError: (text: string, callback?: (() => void) | undefined) => void;
|
|
8257
8296
|
readonly updateNotificationCallbacks: (methods: Partial<NotificationStoreMethods>) => void;
|
|
8258
8297
|
readonly mutators: readonly ["notifyUser", "raiseError", "askConfirmation", "updateNotificationCallbacks"];
|
|
8259
8298
|
};
|
|
@@ -8278,6 +8317,9 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
|
|
|
8278
8317
|
* Return the (enriched) token just before the cursor.
|
|
8279
8318
|
*/
|
|
8280
8319
|
get tokenAtCursor(): EnrichedToken | undefined;
|
|
8320
|
+
get autoCompleteProposals(): AutoCompleteProposal[];
|
|
8321
|
+
get autoCompleteSelectedIndex(): number | undefined;
|
|
8322
|
+
get isAutoCompleteDisplayed(): boolean;
|
|
8281
8323
|
cycleReferences(): void;
|
|
8282
8324
|
toggleEditionMode(): void;
|
|
8283
8325
|
hoverToken(tokenIndex: number | undefined): void;
|
|
@@ -8351,7 +8393,13 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
|
|
|
8351
8393
|
* Return ranges currently referenced in the composer
|
|
8352
8394
|
*/
|
|
8353
8395
|
private getReferencedRanges;
|
|
8354
|
-
|
|
8396
|
+
private updateAutoCompleteProvider;
|
|
8397
|
+
private findAutocompleteProvider;
|
|
8398
|
+
hideHelp(): void;
|
|
8399
|
+
autoCompleteOrStop(direction: Direction$1): void;
|
|
8400
|
+
insertAutoCompleteValue(value: string): void;
|
|
8401
|
+
selectAutoCompleteIndex(index: number): void;
|
|
8402
|
+
moveAutoCompleteSelection(direction: "previous" | "next"): void;
|
|
8355
8403
|
/**
|
|
8356
8404
|
* Function used to determine when composer selection can start.
|
|
8357
8405
|
* Three conditions are necessary:
|
|
@@ -8461,7 +8509,6 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
|
|
|
8461
8509
|
};
|
|
8462
8510
|
contentHelper: ContentEditableHelper;
|
|
8463
8511
|
composerState: ComposerState;
|
|
8464
|
-
autoCompleteState: Store<AutoCompleteStore>;
|
|
8465
8512
|
functionDescriptionState: FunctionDescriptionState;
|
|
8466
8513
|
assistant: {
|
|
8467
8514
|
forcedClosed: boolean;
|
|
@@ -8498,7 +8545,6 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
|
|
|
8498
8545
|
onInput(ev: InputEvent): void;
|
|
8499
8546
|
onKeyup(ev: KeyboardEvent): void;
|
|
8500
8547
|
onBlur(ev: FocusEvent): void;
|
|
8501
|
-
updateAutoCompleteIndex(index: number): void;
|
|
8502
8548
|
/**
|
|
8503
8549
|
* This is required to ensure the content helper selection is
|
|
8504
8550
|
* properly updated on "onclick" events. Depending on the browser,
|
|
@@ -8543,7 +8589,7 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
|
|
|
8543
8589
|
* This function computes all the possible arguments to focus for different numbers of arguments supplied.
|
|
8544
8590
|
*/
|
|
8545
8591
|
private getArgsToFocus;
|
|
8546
|
-
|
|
8592
|
+
autoComplete(value: string): void;
|
|
8547
8593
|
get displaySpeechBubble(): boolean;
|
|
8548
8594
|
}
|
|
8549
8595
|
|
|
@@ -8591,61 +8637,13 @@ interface AutoCompleteProviderDefinition {
|
|
|
8591
8637
|
getProposals(this: {
|
|
8592
8638
|
composer: ComposerStoreInterface;
|
|
8593
8639
|
getters: Getters;
|
|
8594
|
-
}, tokenAtCursor: EnrichedToken, content: string): AutoCompleteProposal[] | undefined;
|
|
8640
|
+
}, tokenAtCursor: EnrichedToken, content: string): AutoCompleteProposal[] | Promise<AutoCompleteProposal[]> | undefined;
|
|
8595
8641
|
selectProposal(this: {
|
|
8596
8642
|
composer: ComposerStoreInterface;
|
|
8597
8643
|
}, tokenAtCursor: EnrichedToken, text: string): void;
|
|
8598
8644
|
}
|
|
8599
8645
|
|
|
8600
|
-
|
|
8601
|
-
* An AutofillRule is used to generate what to do when we need to autofill
|
|
8602
|
-
* a cell. (In a AutofillGenerator, see plugins/autofill.ts)
|
|
8603
|
-
*
|
|
8604
|
-
* When we generate the rules to autofill, we take the first matching rule
|
|
8605
|
-
* (ordered by sequence), and we generate the AutofillModifier with generateRule
|
|
8606
|
-
*/
|
|
8607
|
-
interface AutofillRule {
|
|
8608
|
-
condition: (cell: Cell, cells: (Cell | undefined)[]) => boolean;
|
|
8609
|
-
generateRule: (cell: Cell, cells: (Cell | undefined)[], direction: DIRECTION) => AutofillModifier;
|
|
8610
|
-
sequence: number;
|
|
8611
|
-
}
|
|
8612
|
-
|
|
8613
|
-
/**
|
|
8614
|
-
* This registry is intended to map a type of figure (tag) to a class of
|
|
8615
|
-
* component, that will be used in the UI to represent the figure.
|
|
8616
|
-
*
|
|
8617
|
-
* The most important type of figure will be the Chart
|
|
8618
|
-
*/
|
|
8619
|
-
interface FigureContent {
|
|
8620
|
-
Component: any;
|
|
8621
|
-
menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
|
|
8622
|
-
SidePanelComponent?: string;
|
|
8623
|
-
keepRatio?: boolean;
|
|
8624
|
-
minFigSize?: number;
|
|
8625
|
-
borderWidth?: number;
|
|
8626
|
-
}
|
|
8627
|
-
|
|
8628
|
-
/**
|
|
8629
|
-
* The class Registry is extended in order to add the function addChild
|
|
8630
|
-
*
|
|
8631
|
-
*/
|
|
8632
|
-
declare class MenuItemRegistry extends Registry<ActionSpec> {
|
|
8633
|
-
/**
|
|
8634
|
-
* @override
|
|
8635
|
-
*/
|
|
8636
|
-
add(key: string, value: ActionSpec): MenuItemRegistry;
|
|
8637
|
-
/**
|
|
8638
|
-
* Add a subitem to an existing item
|
|
8639
|
-
* @param path Path of items to add this subitem
|
|
8640
|
-
* @param value Subitem to add
|
|
8641
|
-
*/
|
|
8642
|
-
addChild(key: string, path: string[], value: ActionSpec | ActionBuilder, options?: {
|
|
8643
|
-
force: boolean;
|
|
8644
|
-
}): MenuItemRegistry;
|
|
8645
|
-
getMenuItems(): Action[];
|
|
8646
|
-
}
|
|
8647
|
-
|
|
8648
|
-
interface Props$R {
|
|
8646
|
+
interface Props$T {
|
|
8649
8647
|
onConfirm: (content: string) => void;
|
|
8650
8648
|
composerContent: string;
|
|
8651
8649
|
defaultRangeSheetId: UID;
|
|
@@ -8657,7 +8655,7 @@ interface Props$R {
|
|
|
8657
8655
|
invalid?: boolean;
|
|
8658
8656
|
getContextualColoredSymbolToken?: (token: Token) => Color;
|
|
8659
8657
|
}
|
|
8660
|
-
declare class StandaloneComposer extends Component<Props$
|
|
8658
|
+
declare class StandaloneComposer extends Component<Props$T, SpreadsheetChildEnv> {
|
|
8661
8659
|
static template: string;
|
|
8662
8660
|
static props: {
|
|
8663
8661
|
composerContent: {
|
|
@@ -8720,13 +8718,13 @@ interface PanelState {
|
|
|
8720
8718
|
sectionRuleCancelledReasons?: CommandResult[];
|
|
8721
8719
|
sectionRule: SectionRule;
|
|
8722
8720
|
}
|
|
8723
|
-
interface Props$
|
|
8721
|
+
interface Props$S {
|
|
8724
8722
|
figureId: UID;
|
|
8725
8723
|
definition: GaugeChartDefinition;
|
|
8726
8724
|
canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
8727
8725
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
8728
8726
|
}
|
|
8729
|
-
declare class GaugeChartDesignPanel extends Component<Props$
|
|
8727
|
+
declare class GaugeChartDesignPanel extends Component<Props$S, SpreadsheetChildEnv> {
|
|
8730
8728
|
static template: string;
|
|
8731
8729
|
static components: {
|
|
8732
8730
|
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
@@ -8776,13 +8774,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
|
|
|
8776
8774
|
onUpdateCumulative(cumulative: boolean): void;
|
|
8777
8775
|
}
|
|
8778
8776
|
|
|
8779
|
-
interface Props$
|
|
8777
|
+
interface Props$R {
|
|
8780
8778
|
figureId: UID;
|
|
8781
8779
|
definition: ScorecardChartDefinition;
|
|
8782
8780
|
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8783
8781
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8784
8782
|
}
|
|
8785
|
-
declare class ScorecardChartConfigPanel extends Component<Props$
|
|
8783
|
+
declare class ScorecardChartConfigPanel extends Component<Props$R, SpreadsheetChildEnv> {
|
|
8786
8784
|
static template: string;
|
|
8787
8785
|
static components: {
|
|
8788
8786
|
SelectionInput: typeof SelectionInput;
|
|
@@ -8811,13 +8809,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$P, SpreadsheetCh
|
|
|
8811
8809
|
}
|
|
8812
8810
|
|
|
8813
8811
|
type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
|
|
8814
|
-
interface Props$
|
|
8812
|
+
interface Props$Q {
|
|
8815
8813
|
figureId: UID;
|
|
8816
8814
|
definition: ScorecardChartDefinition;
|
|
8817
8815
|
canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8818
8816
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8819
8817
|
}
|
|
8820
|
-
declare class ScorecardChartDesignPanel extends Component<Props$
|
|
8818
|
+
declare class ScorecardChartDesignPanel extends Component<Props$Q, SpreadsheetChildEnv> {
|
|
8821
8819
|
static template: string;
|
|
8822
8820
|
static components: {
|
|
8823
8821
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -8849,6 +8847,21 @@ interface ChartSidePanel {
|
|
|
8849
8847
|
design: new (...args: any) => Component;
|
|
8850
8848
|
}
|
|
8851
8849
|
|
|
8850
|
+
/**
|
|
8851
|
+
* This registry is intended to map a type of figure (tag) to a class of
|
|
8852
|
+
* component, that will be used in the UI to represent the figure.
|
|
8853
|
+
*
|
|
8854
|
+
* The most important type of figure will be the Chart
|
|
8855
|
+
*/
|
|
8856
|
+
interface FigureContent {
|
|
8857
|
+
Component: any;
|
|
8858
|
+
menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
|
|
8859
|
+
SidePanelComponent?: string;
|
|
8860
|
+
keepRatio?: boolean;
|
|
8861
|
+
minFigSize?: number;
|
|
8862
|
+
borderWidth?: number;
|
|
8863
|
+
}
|
|
8864
|
+
|
|
8852
8865
|
interface SidePanelProps {
|
|
8853
8866
|
onCloseSidePanel?: () => void;
|
|
8854
8867
|
[key: string]: any;
|
|
@@ -8889,6 +8902,39 @@ interface SidePanelContent {
|
|
|
8889
8902
|
computeState?: (getters: Getters, initialProps: object) => SidePanelState;
|
|
8890
8903
|
}
|
|
8891
8904
|
|
|
8905
|
+
/**
|
|
8906
|
+
* The class Registry is extended in order to add the function addChild
|
|
8907
|
+
*
|
|
8908
|
+
*/
|
|
8909
|
+
declare class MenuItemRegistry extends Registry<ActionSpec> {
|
|
8910
|
+
/**
|
|
8911
|
+
* @override
|
|
8912
|
+
*/
|
|
8913
|
+
replace(key: string, value: ActionSpec): this;
|
|
8914
|
+
/**
|
|
8915
|
+
* Add a subitem to an existing item
|
|
8916
|
+
* @param path Path of items to add this subitem
|
|
8917
|
+
* @param value Subitem to add
|
|
8918
|
+
*/
|
|
8919
|
+
addChild(key: string, path: string[], value: ActionSpec | ActionBuilder): this;
|
|
8920
|
+
replaceChild(key: string, path: string[], value: ActionSpec | ActionBuilder): this;
|
|
8921
|
+
private _replaceChild;
|
|
8922
|
+
getMenuItems(): Action[];
|
|
8923
|
+
}
|
|
8924
|
+
|
|
8925
|
+
/**
|
|
8926
|
+
* An AutofillRule is used to generate what to do when we need to autofill
|
|
8927
|
+
* a cell. (In a AutofillGenerator, see plugins/autofill.ts)
|
|
8928
|
+
*
|
|
8929
|
+
* When we generate the rules to autofill, we take the first matching rule
|
|
8930
|
+
* (ordered by sequence), and we generate the AutofillModifier with generateRule
|
|
8931
|
+
*/
|
|
8932
|
+
interface AutofillRule {
|
|
8933
|
+
condition: (cell: Cell, cells: (Cell | undefined)[]) => boolean;
|
|
8934
|
+
generateRule: (cell: Cell, cells: (Cell | undefined)[], direction: DIRECTION) => AutofillModifier;
|
|
8935
|
+
sequence: number;
|
|
8936
|
+
}
|
|
8937
|
+
|
|
8892
8938
|
declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
|
|
8893
8939
|
|
|
8894
8940
|
interface ComposerInterface {
|
|
@@ -8916,10 +8962,10 @@ declare class ComposerFocusStore extends SpreadsheetStore {
|
|
|
8916
8962
|
private setComposerContent;
|
|
8917
8963
|
}
|
|
8918
8964
|
|
|
8919
|
-
interface Props$
|
|
8965
|
+
interface Props$P {
|
|
8920
8966
|
figureUI: FigureUI;
|
|
8921
8967
|
}
|
|
8922
|
-
declare class ChartJsComponent extends Component<Props$
|
|
8968
|
+
declare class ChartJsComponent extends Component<Props$P, SpreadsheetChildEnv> {
|
|
8923
8969
|
static template: string;
|
|
8924
8970
|
static props: {
|
|
8925
8971
|
figureUI: ObjectConstructor;
|
|
@@ -8936,10 +8982,10 @@ declare class ChartJsComponent extends Component<Props$N, SpreadsheetChildEnv> {
|
|
|
8936
8982
|
private updateChartJs;
|
|
8937
8983
|
}
|
|
8938
8984
|
|
|
8939
|
-
interface Props$
|
|
8985
|
+
interface Props$O {
|
|
8940
8986
|
figureUI: FigureUI;
|
|
8941
8987
|
}
|
|
8942
|
-
declare class ScorecardChart$1 extends Component<Props$
|
|
8988
|
+
declare class ScorecardChart$1 extends Component<Props$O, SpreadsheetChildEnv> {
|
|
8943
8989
|
static template: string;
|
|
8944
8990
|
static props: {
|
|
8945
8991
|
figureUI: ObjectConstructor;
|
|
@@ -8952,7 +8998,7 @@ declare class ScorecardChart$1 extends Component<Props$M, SpreadsheetChildEnv> {
|
|
|
8952
8998
|
}
|
|
8953
8999
|
|
|
8954
9000
|
type MenuItemOrSeparator = Action | "separator";
|
|
8955
|
-
interface Props$
|
|
9001
|
+
interface Props$N {
|
|
8956
9002
|
anchorRect: Rect;
|
|
8957
9003
|
popoverPositioning: PopoverPropsPosition;
|
|
8958
9004
|
menuItems: Action[];
|
|
@@ -8972,7 +9018,7 @@ interface MenuState {
|
|
|
8972
9018
|
menuItems: Action[];
|
|
8973
9019
|
isHoveringChild?: boolean;
|
|
8974
9020
|
}
|
|
8975
|
-
declare class Menu extends Component<Props$
|
|
9021
|
+
declare class Menu extends Component<Props$N, SpreadsheetChildEnv> {
|
|
8976
9022
|
static template: string;
|
|
8977
9023
|
static props: {
|
|
8978
9024
|
anchorRect: ObjectConstructor;
|
|
@@ -9053,14 +9099,14 @@ declare class Menu extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
9053
9099
|
}
|
|
9054
9100
|
|
|
9055
9101
|
type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
9056
|
-
interface Props$
|
|
9102
|
+
interface Props$M {
|
|
9057
9103
|
figureUI: FigureUI;
|
|
9058
9104
|
style: string;
|
|
9059
9105
|
onFigureDeleted: () => void;
|
|
9060
9106
|
onMouseDown: (ev: MouseEvent) => void;
|
|
9061
9107
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
9062
9108
|
}
|
|
9063
|
-
declare class FigureComponent extends Component<Props$
|
|
9109
|
+
declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
|
|
9064
9110
|
static template: string;
|
|
9065
9111
|
static props: {
|
|
9066
9112
|
figureUI: ObjectConstructor;
|
|
@@ -9110,17 +9156,50 @@ declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
|
|
|
9110
9156
|
private openContextMenu;
|
|
9111
9157
|
}
|
|
9112
9158
|
|
|
9113
|
-
interface Props$
|
|
9159
|
+
interface Props$L {
|
|
9160
|
+
figureUI: FigureUI;
|
|
9161
|
+
}
|
|
9162
|
+
declare class ChartDashboardMenu extends Component<Props$L, SpreadsheetChildEnv> {
|
|
9163
|
+
static template: string;
|
|
9164
|
+
static components: {
|
|
9165
|
+
Menu: typeof Menu;
|
|
9166
|
+
};
|
|
9167
|
+
static props: {
|
|
9168
|
+
figureUI: ObjectConstructor;
|
|
9169
|
+
};
|
|
9170
|
+
private originalChartDefinition;
|
|
9171
|
+
private menuState;
|
|
9172
|
+
setup(): void;
|
|
9173
|
+
getAvailableTypes(): {
|
|
9174
|
+
icon: string;
|
|
9175
|
+
chartSubtype: string;
|
|
9176
|
+
displayName: string;
|
|
9177
|
+
chartType: ChartType;
|
|
9178
|
+
matcher?: (definition: ChartDefinition) => boolean;
|
|
9179
|
+
subtypeDefinition?: Partial<ChartDefinition>;
|
|
9180
|
+
category: "area" | "line" | "bar" | "pie" | "column" | "hierarchical" | "misc";
|
|
9181
|
+
preview: string;
|
|
9182
|
+
}[];
|
|
9183
|
+
getIconClasses(type: ChartType): "" | "fa fa-bar-chart" | "fa fa-line-chart" | "fa fa-pie-chart";
|
|
9184
|
+
onTypeChange(type: ChartType): void;
|
|
9185
|
+
get selectedChartType(): "line" | "bar" | "scatter" | "pie" | "radar" | "treemap" | "funnel" | "combo" | "gauge" | "geo" | "pyramid" | "scorecard" | "sunburst" | "waterfall";
|
|
9186
|
+
get backgroundColor(): string;
|
|
9187
|
+
openContextMenu(ev: MouseEvent): void;
|
|
9188
|
+
}
|
|
9189
|
+
|
|
9190
|
+
interface Props$K {
|
|
9114
9191
|
figureUI: FigureUI;
|
|
9115
9192
|
onFigureDeleted: () => void;
|
|
9116
9193
|
}
|
|
9117
|
-
declare class ChartFigure extends Component<Props$
|
|
9194
|
+
declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
|
|
9118
9195
|
static template: string;
|
|
9119
9196
|
static props: {
|
|
9120
9197
|
figureUI: ObjectConstructor;
|
|
9121
9198
|
onFigureDeleted: FunctionConstructor;
|
|
9122
9199
|
};
|
|
9123
|
-
static components: {
|
|
9200
|
+
static components: {
|
|
9201
|
+
ChartDashboardMenu: typeof ChartDashboardMenu;
|
|
9202
|
+
};
|
|
9124
9203
|
onDoubleClick(): void;
|
|
9125
9204
|
get chartType(): ChartType;
|
|
9126
9205
|
get chartComponent(): new (...args: any) => Component;
|
|
@@ -9135,7 +9214,7 @@ declare class DelayedHoveredCellStore extends SpreadsheetStore {
|
|
|
9135
9214
|
clear(): void;
|
|
9136
9215
|
}
|
|
9137
9216
|
|
|
9138
|
-
interface Props$
|
|
9217
|
+
interface Props$J {
|
|
9139
9218
|
isVisible: boolean;
|
|
9140
9219
|
position: Position;
|
|
9141
9220
|
}
|
|
@@ -9147,7 +9226,7 @@ interface State$3 {
|
|
|
9147
9226
|
position: Position;
|
|
9148
9227
|
handler: boolean;
|
|
9149
9228
|
}
|
|
9150
|
-
declare class Autofill extends Component<Props$
|
|
9229
|
+
declare class Autofill extends Component<Props$J, SpreadsheetChildEnv> {
|
|
9151
9230
|
static template: string;
|
|
9152
9231
|
static props: {
|
|
9153
9232
|
position: ObjectConstructor;
|
|
@@ -9187,7 +9266,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
|
|
|
9187
9266
|
get tagStyle(): string;
|
|
9188
9267
|
}
|
|
9189
9268
|
|
|
9190
|
-
interface Props$
|
|
9269
|
+
interface Props$I {
|
|
9191
9270
|
gridDims: DOMDimension;
|
|
9192
9271
|
onInputContextMenu: (event: MouseEvent) => void;
|
|
9193
9272
|
}
|
|
@@ -9195,7 +9274,7 @@ interface Props$H {
|
|
|
9195
9274
|
* This component is a composer which positions itself on the grid at the anchor cell.
|
|
9196
9275
|
* It also applies the style of the cell to the composer input.
|
|
9197
9276
|
*/
|
|
9198
|
-
declare class GridComposer extends Component<Props$
|
|
9277
|
+
declare class GridComposer extends Component<Props$I, SpreadsheetChildEnv> {
|
|
9199
9278
|
static template: string;
|
|
9200
9279
|
static props: {
|
|
9201
9280
|
gridDims: ObjectConstructor;
|
|
@@ -9253,10 +9332,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
|
|
|
9253
9332
|
isPositionVisible(position: CellPosition): boolean;
|
|
9254
9333
|
}
|
|
9255
9334
|
|
|
9256
|
-
interface Props$
|
|
9335
|
+
interface Props$H {
|
|
9257
9336
|
cellPosition: CellPosition;
|
|
9258
9337
|
}
|
|
9259
|
-
declare class DataValidationCheckbox extends Component<Props$
|
|
9338
|
+
declare class DataValidationCheckbox extends Component<Props$H, SpreadsheetChildEnv> {
|
|
9260
9339
|
static template: string;
|
|
9261
9340
|
static components: {
|
|
9262
9341
|
Checkbox: typeof Checkbox;
|
|
@@ -9269,10 +9348,10 @@ declare class DataValidationCheckbox extends Component<Props$G, SpreadsheetChild
|
|
|
9269
9348
|
get isDisabled(): boolean;
|
|
9270
9349
|
}
|
|
9271
9350
|
|
|
9272
|
-
interface Props$
|
|
9351
|
+
interface Props$G {
|
|
9273
9352
|
cellPosition: CellPosition;
|
|
9274
9353
|
}
|
|
9275
|
-
declare class DataValidationListIcon extends Component<Props$
|
|
9354
|
+
declare class DataValidationListIcon extends Component<Props$G, SpreadsheetChildEnv> {
|
|
9276
9355
|
static template: string;
|
|
9277
9356
|
static props: {
|
|
9278
9357
|
cellPosition: ObjectConstructor;
|
|
@@ -9302,7 +9381,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
9302
9381
|
}
|
|
9303
9382
|
|
|
9304
9383
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
9305
|
-
interface Props$
|
|
9384
|
+
interface Props$F {
|
|
9306
9385
|
onFigureDeleted: () => void;
|
|
9307
9386
|
}
|
|
9308
9387
|
interface Container {
|
|
@@ -9382,7 +9461,7 @@ interface DndState {
|
|
|
9382
9461
|
* that occurred during the drag & drop, and to position the figure on the correct pane.
|
|
9383
9462
|
*
|
|
9384
9463
|
*/
|
|
9385
|
-
declare class FiguresContainer extends Component<Props$
|
|
9464
|
+
declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
|
|
9386
9465
|
static template: string;
|
|
9387
9466
|
static props: {
|
|
9388
9467
|
onFigureDeleted: FunctionConstructor;
|
|
@@ -9418,10 +9497,10 @@ declare class FiguresContainer extends Component<Props$E, SpreadsheetChildEnv> {
|
|
|
9418
9497
|
private getSnapLineStyle;
|
|
9419
9498
|
}
|
|
9420
9499
|
|
|
9421
|
-
interface Props$
|
|
9500
|
+
interface Props$E {
|
|
9422
9501
|
cellPosition: CellPosition;
|
|
9423
9502
|
}
|
|
9424
|
-
declare class FilterIcon extends Component<Props$
|
|
9503
|
+
declare class FilterIcon extends Component<Props$E, SpreadsheetChildEnv> {
|
|
9425
9504
|
static template: string;
|
|
9426
9505
|
static props: {
|
|
9427
9506
|
cellPosition: ObjectConstructor;
|
|
@@ -9443,10 +9522,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
|
9443
9522
|
getFilterHeadersPositions(): CellPosition[];
|
|
9444
9523
|
}
|
|
9445
9524
|
|
|
9446
|
-
interface Props$
|
|
9525
|
+
interface Props$D {
|
|
9447
9526
|
focusGrid: () => void;
|
|
9448
9527
|
}
|
|
9449
|
-
declare class GridAddRowsFooter extends Component<Props$
|
|
9528
|
+
declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv> {
|
|
9450
9529
|
static template: string;
|
|
9451
9530
|
static props: {
|
|
9452
9531
|
focusGrid: FunctionConstructor;
|
|
@@ -9470,7 +9549,7 @@ declare class GridAddRowsFooter extends Component<Props$C, SpreadsheetChildEnv>
|
|
|
9470
9549
|
private onExternalClick;
|
|
9471
9550
|
}
|
|
9472
9551
|
|
|
9473
|
-
interface Props$
|
|
9552
|
+
interface Props$C {
|
|
9474
9553
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
9475
9554
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: MouseEvent) => void;
|
|
9476
9555
|
onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
|
|
@@ -9479,7 +9558,7 @@ interface Props$B {
|
|
|
9479
9558
|
gridOverlayDimensions: string;
|
|
9480
9559
|
onFigureDeleted: () => void;
|
|
9481
9560
|
}
|
|
9482
|
-
declare class GridOverlay extends Component<Props$
|
|
9561
|
+
declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
|
|
9483
9562
|
static template: string;
|
|
9484
9563
|
static props: {
|
|
9485
9564
|
onCellDoubleClicked: {
|
|
@@ -9536,12 +9615,12 @@ declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
|
|
|
9536
9615
|
private getCartesianCoordinates;
|
|
9537
9616
|
}
|
|
9538
9617
|
|
|
9539
|
-
interface Props$
|
|
9618
|
+
interface Props$B {
|
|
9540
9619
|
gridRect: Rect;
|
|
9541
9620
|
onClosePopover: () => void;
|
|
9542
9621
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
9543
9622
|
}
|
|
9544
|
-
declare class GridPopover extends Component<Props$
|
|
9623
|
+
declare class GridPopover extends Component<Props$B, SpreadsheetChildEnv> {
|
|
9545
9624
|
static template: string;
|
|
9546
9625
|
static props: {
|
|
9547
9626
|
onClosePopover: FunctionConstructor;
|
|
@@ -9557,7 +9636,7 @@ declare class GridPopover extends Component<Props$A, SpreadsheetChildEnv> {
|
|
|
9557
9636
|
get cellPopover(): PositionedCellPopoverComponent | ClosedCellPopover;
|
|
9558
9637
|
}
|
|
9559
9638
|
|
|
9560
|
-
interface Props$
|
|
9639
|
+
interface Props$A {
|
|
9561
9640
|
headersGroups: ConsecutiveIndexes[];
|
|
9562
9641
|
offset: number;
|
|
9563
9642
|
headerRange: {
|
|
@@ -9565,7 +9644,7 @@ interface Props$z {
|
|
|
9565
9644
|
end: HeaderIndex;
|
|
9566
9645
|
};
|
|
9567
9646
|
}
|
|
9568
|
-
declare class UnhideRowHeaders extends Component<Props$
|
|
9647
|
+
declare class UnhideRowHeaders extends Component<Props$A, SpreadsheetChildEnv> {
|
|
9569
9648
|
static template: string;
|
|
9570
9649
|
static props: {
|
|
9571
9650
|
headersGroups: ArrayConstructor;
|
|
@@ -9584,7 +9663,7 @@ declare class UnhideRowHeaders extends Component<Props$z, SpreadsheetChildEnv> {
|
|
|
9584
9663
|
unhide(hiddenElements: HeaderIndex[]): void;
|
|
9585
9664
|
isVisible(header: HeaderIndex): boolean;
|
|
9586
9665
|
}
|
|
9587
|
-
declare class UnhideColumnHeaders extends Component<Props$
|
|
9666
|
+
declare class UnhideColumnHeaders extends Component<Props$A, SpreadsheetChildEnv> {
|
|
9588
9667
|
static template: string;
|
|
9589
9668
|
static props: {
|
|
9590
9669
|
headersGroups: ArrayConstructor;
|
|
@@ -9776,13 +9855,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
|
|
|
9776
9855
|
}
|
|
9777
9856
|
|
|
9778
9857
|
type Orientation$1 = "n" | "s" | "w" | "e";
|
|
9779
|
-
interface Props$
|
|
9858
|
+
interface Props$z {
|
|
9780
9859
|
zone: Zone;
|
|
9781
9860
|
orientation: Orientation$1;
|
|
9782
9861
|
isMoving: boolean;
|
|
9783
9862
|
onMoveHighlight: (ev: PointerEvent) => void;
|
|
9784
9863
|
}
|
|
9785
|
-
declare class Border extends Component<Props$
|
|
9864
|
+
declare class Border extends Component<Props$z, SpreadsheetChildEnv> {
|
|
9786
9865
|
static template: string;
|
|
9787
9866
|
static props: {
|
|
9788
9867
|
zone: ObjectConstructor;
|
|
@@ -9795,14 +9874,14 @@ declare class Border extends Component<Props$y, SpreadsheetChildEnv> {
|
|
|
9795
9874
|
}
|
|
9796
9875
|
|
|
9797
9876
|
type Orientation = "nw" | "ne" | "sw" | "se";
|
|
9798
|
-
interface Props$
|
|
9877
|
+
interface Props$y {
|
|
9799
9878
|
zone: Zone;
|
|
9800
9879
|
color: Color;
|
|
9801
9880
|
orientation: Orientation;
|
|
9802
9881
|
isResizing: boolean;
|
|
9803
9882
|
onResizeHighlight: (ev: PointerEvent, isLeft: boolean, isTop: boolean) => void;
|
|
9804
9883
|
}
|
|
9805
|
-
declare class Corner extends Component<Props$
|
|
9884
|
+
declare class Corner extends Component<Props$y, SpreadsheetChildEnv> {
|
|
9806
9885
|
static template: string;
|
|
9807
9886
|
static props: {
|
|
9808
9887
|
zone: ObjectConstructor;
|
|
@@ -9817,14 +9896,14 @@ declare class Corner extends Component<Props$x, SpreadsheetChildEnv> {
|
|
|
9817
9896
|
onMouseDown(ev: PointerEvent): void;
|
|
9818
9897
|
}
|
|
9819
9898
|
|
|
9820
|
-
interface Props$
|
|
9899
|
+
interface Props$x {
|
|
9821
9900
|
zone: Zone;
|
|
9822
9901
|
color: Color;
|
|
9823
9902
|
}
|
|
9824
9903
|
interface HighlightState {
|
|
9825
9904
|
shiftingMode: "isMoving" | "isResizing" | "none";
|
|
9826
9905
|
}
|
|
9827
|
-
declare class Highlight extends Component<Props$
|
|
9906
|
+
declare class Highlight extends Component<Props$x, SpreadsheetChildEnv> {
|
|
9828
9907
|
static template: string;
|
|
9829
9908
|
static props: {
|
|
9830
9909
|
zone: ObjectConstructor;
|
|
@@ -9847,7 +9926,7 @@ declare class Highlight extends Component<Props$w, SpreadsheetChildEnv> {
|
|
|
9847
9926
|
|
|
9848
9927
|
type ScrollDirection = "horizontal" | "vertical";
|
|
9849
9928
|
|
|
9850
|
-
interface Props$
|
|
9929
|
+
interface Props$w {
|
|
9851
9930
|
width: Pixel;
|
|
9852
9931
|
height: Pixel;
|
|
9853
9932
|
direction: ScrollDirection;
|
|
@@ -9855,7 +9934,7 @@ interface Props$v {
|
|
|
9855
9934
|
offset: Pixel;
|
|
9856
9935
|
onScroll: (offset: Pixel) => void;
|
|
9857
9936
|
}
|
|
9858
|
-
declare class ScrollBar extends Component<Props$
|
|
9937
|
+
declare class ScrollBar extends Component<Props$w> {
|
|
9859
9938
|
static props: {
|
|
9860
9939
|
width: {
|
|
9861
9940
|
type: NumberConstructor;
|
|
@@ -9883,10 +9962,10 @@ declare class ScrollBar extends Component<Props$v> {
|
|
|
9883
9962
|
onScroll(ev: any): void;
|
|
9884
9963
|
}
|
|
9885
9964
|
|
|
9886
|
-
interface Props$
|
|
9965
|
+
interface Props$v {
|
|
9887
9966
|
leftOffset: number;
|
|
9888
9967
|
}
|
|
9889
|
-
declare class HorizontalScrollBar extends Component<Props$
|
|
9968
|
+
declare class HorizontalScrollBar extends Component<Props$v, SpreadsheetChildEnv> {
|
|
9890
9969
|
static props: {
|
|
9891
9970
|
leftOffset: {
|
|
9892
9971
|
type: NumberConstructor;
|
|
@@ -9912,10 +9991,10 @@ declare class HorizontalScrollBar extends Component<Props$u, SpreadsheetChildEnv
|
|
|
9912
9991
|
onScroll(offset: any): void;
|
|
9913
9992
|
}
|
|
9914
9993
|
|
|
9915
|
-
interface Props$
|
|
9994
|
+
interface Props$u {
|
|
9916
9995
|
topOffset: number;
|
|
9917
9996
|
}
|
|
9918
|
-
declare class VerticalScrollBar extends Component<Props$
|
|
9997
|
+
declare class VerticalScrollBar extends Component<Props$u, SpreadsheetChildEnv> {
|
|
9919
9998
|
static props: {
|
|
9920
9999
|
topOffset: {
|
|
9921
10000
|
type: NumberConstructor;
|
|
@@ -9941,13 +10020,13 @@ declare class VerticalScrollBar extends Component<Props$t, SpreadsheetChildEnv>
|
|
|
9941
10020
|
onScroll(offset: any): void;
|
|
9942
10021
|
}
|
|
9943
10022
|
|
|
9944
|
-
interface Props$
|
|
10023
|
+
interface Props$t {
|
|
9945
10024
|
table: Table;
|
|
9946
10025
|
}
|
|
9947
10026
|
interface State$2 {
|
|
9948
10027
|
highlightZone: Zone | undefined;
|
|
9949
10028
|
}
|
|
9950
|
-
declare class TableResizer extends Component<Props$
|
|
10029
|
+
declare class TableResizer extends Component<Props$t, SpreadsheetChildEnv> {
|
|
9951
10030
|
static template: string;
|
|
9952
10031
|
static props: {
|
|
9953
10032
|
table: ObjectConstructor;
|
|
@@ -9976,10 +10055,10 @@ declare class TableResizer extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
9976
10055
|
* - a vertical resizer (same, for rows)
|
|
9977
10056
|
*/
|
|
9978
10057
|
type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
|
|
9979
|
-
interface Props$
|
|
10058
|
+
interface Props$s {
|
|
9980
10059
|
exposeFocus: (focus: () => void) => void;
|
|
9981
10060
|
}
|
|
9982
|
-
declare class Grid extends Component<Props$
|
|
10061
|
+
declare class Grid extends Component<Props$s, SpreadsheetChildEnv> {
|
|
9983
10062
|
static template: string;
|
|
9984
10063
|
static props: {
|
|
9985
10064
|
exposeFocus: FunctionConstructor;
|
|
@@ -10090,7 +10169,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
|
|
|
10090
10169
|
private getChartDefinitionFromContextCreation;
|
|
10091
10170
|
}
|
|
10092
10171
|
|
|
10093
|
-
interface Props$
|
|
10172
|
+
interface Props$r {
|
|
10094
10173
|
figureId: UID;
|
|
10095
10174
|
chartPanelStore: MainChartPanelStore;
|
|
10096
10175
|
}
|
|
@@ -10098,7 +10177,7 @@ interface ChartTypePickerState {
|
|
|
10098
10177
|
popoverProps: PopoverProps | undefined;
|
|
10099
10178
|
popoverStyle: string;
|
|
10100
10179
|
}
|
|
10101
|
-
declare class ChartTypePicker extends Component<Props$
|
|
10180
|
+
declare class ChartTypePicker extends Component<Props$r, SpreadsheetChildEnv> {
|
|
10102
10181
|
static template: string;
|
|
10103
10182
|
static components: {
|
|
10104
10183
|
Section: typeof Section;
|
|
@@ -10134,11 +10213,11 @@ declare class ChartTypePicker extends Component<Props$q, SpreadsheetChildEnv> {
|
|
|
10134
10213
|
private closePopover;
|
|
10135
10214
|
}
|
|
10136
10215
|
|
|
10137
|
-
interface Props$
|
|
10216
|
+
interface Props$q {
|
|
10138
10217
|
onCloseSidePanel: () => void;
|
|
10139
10218
|
figureId: UID;
|
|
10140
10219
|
}
|
|
10141
|
-
declare class ChartPanel extends Component<Props$
|
|
10220
|
+
declare class ChartPanel extends Component<Props$q, SpreadsheetChildEnv> {
|
|
10142
10221
|
static template: string;
|
|
10143
10222
|
static components: {
|
|
10144
10223
|
Section: typeof Section;
|
|
@@ -10158,6 +10237,23 @@ declare class ChartPanel extends Component<Props$p, SpreadsheetChildEnv> {
|
|
|
10158
10237
|
private getChartDefinition;
|
|
10159
10238
|
}
|
|
10160
10239
|
|
|
10240
|
+
interface Props$p {
|
|
10241
|
+
onValueChange: (value: number) => void;
|
|
10242
|
+
value: number;
|
|
10243
|
+
}
|
|
10244
|
+
declare class PieHoleSize extends Component<Props$p, SpreadsheetChildEnv> {
|
|
10245
|
+
static template: string;
|
|
10246
|
+
static components: {
|
|
10247
|
+
Section: typeof Section;
|
|
10248
|
+
};
|
|
10249
|
+
static props: {
|
|
10250
|
+
onValueChange: FunctionConstructor;
|
|
10251
|
+
value: NumberConstructor;
|
|
10252
|
+
};
|
|
10253
|
+
debouncedOnChange: DebouncedFunction<(value: string) => void>;
|
|
10254
|
+
onChange(value: string): void;
|
|
10255
|
+
}
|
|
10256
|
+
|
|
10161
10257
|
interface Props$o {
|
|
10162
10258
|
figureId: UID;
|
|
10163
10259
|
definition: PieChartDefinition;
|
|
@@ -10171,6 +10267,7 @@ declare class PieChartDesignPanel extends Component<Props$o, SpreadsheetChildEnv
|
|
|
10171
10267
|
Section: typeof Section;
|
|
10172
10268
|
Checkbox: typeof Checkbox;
|
|
10173
10269
|
ChartLegend: typeof ChartLegend;
|
|
10270
|
+
PieHoleSize: typeof PieHoleSize;
|
|
10174
10271
|
};
|
|
10175
10272
|
static props: {
|
|
10176
10273
|
figureId: StringConstructor;
|
|
@@ -10181,6 +10278,7 @@ declare class PieChartDesignPanel extends Component<Props$o, SpreadsheetChildEnv
|
|
|
10181
10278
|
optional: boolean;
|
|
10182
10279
|
};
|
|
10183
10280
|
};
|
|
10281
|
+
onPieHoleSizeChange(pieHolePercentage: number): void;
|
|
10184
10282
|
}
|
|
10185
10283
|
|
|
10186
10284
|
interface Props$n {
|
|
@@ -10675,17 +10773,12 @@ declare function toJsDate(data: FunctionResultObject | CellValue | undefined, lo
|
|
|
10675
10773
|
|
|
10676
10774
|
declare function arg(definition: string, description?: string): ArgDefinition;
|
|
10677
10775
|
|
|
10678
|
-
interface FunctionRegistry extends Registry<FunctionDescription> {
|
|
10679
|
-
add(functionName: string, addDescr: AddFunctionDescription): FunctionRegistry;
|
|
10680
|
-
get(functionName: string): FunctionDescription;
|
|
10681
|
-
mapping: {
|
|
10682
|
-
[functionName: string]: ComputeFunction<Matrix<FunctionResultObject> | FunctionResultObject>;
|
|
10683
|
-
};
|
|
10684
|
-
}
|
|
10685
10776
|
declare class FunctionRegistry extends Registry<FunctionDescription> {
|
|
10686
10777
|
mapping: {
|
|
10687
10778
|
[key: string]: ComputeFunction<Matrix<FunctionResultObject> | FunctionResultObject>;
|
|
10688
10779
|
};
|
|
10780
|
+
add(name: string, addDescr: AddFunctionDescription): this;
|
|
10781
|
+
replace(name: string, addDescr: AddFunctionDescription): this;
|
|
10689
10782
|
}
|
|
10690
10783
|
|
|
10691
10784
|
/**
|
|
@@ -11039,6 +11132,7 @@ declare class PieChart extends AbstractChart {
|
|
|
11039
11132
|
readonly dataSetsHaveTitle: boolean;
|
|
11040
11133
|
readonly isDoughnut?: boolean;
|
|
11041
11134
|
readonly showValues?: boolean;
|
|
11135
|
+
readonly pieHolePercentage?: number;
|
|
11042
11136
|
constructor(definition: PieChartDefinition, sheetId: UID, getters: CoreGetters);
|
|
11043
11137
|
static transformDefinition(definition: PieChartDefinition, executed: AddColumnsRowsCommand | RemoveColumnsRowsCommand): PieChartDefinition;
|
|
11044
11138
|
static validateChartDefinition(validator: Validator, definition: PieChartDefinition): CommandResult | CommandResult[];
|
|
@@ -11524,8 +11618,8 @@ declare class ToolBarRegistry {
|
|
|
11524
11618
|
content: {
|
|
11525
11619
|
[key: string]: ToolBarItem[];
|
|
11526
11620
|
};
|
|
11527
|
-
add(key: string):
|
|
11528
|
-
addChild(key: string, value: ToolBarItem):
|
|
11621
|
+
add(key: string): this;
|
|
11622
|
+
addChild(key: string, value: ToolBarItem): this;
|
|
11529
11623
|
getEntries(id: string): ToolBarItem[];
|
|
11530
11624
|
getCategories(): string[];
|
|
11531
11625
|
}
|
|
@@ -11750,11 +11844,12 @@ declare const registries: {
|
|
|
11750
11844
|
[key: string]: Function;
|
|
11751
11845
|
};
|
|
11752
11846
|
uuidGenerator: UuidGenerator;
|
|
11753
|
-
|
|
11847
|
+
replace(name: string, value: Omit<TopbarComponent, "id">): /*elided*/ any;
|
|
11754
11848
|
getAllOrdered(): TopbarComponent[];
|
|
11755
11849
|
content: {
|
|
11756
11850
|
[key: string]: TopbarComponent;
|
|
11757
11851
|
};
|
|
11852
|
+
add(key: string, value: TopbarComponent): /*elided*/ any;
|
|
11758
11853
|
get(key: string): TopbarComponent;
|
|
11759
11854
|
contains(key: string): boolean;
|
|
11760
11855
|
getAll(): TopbarComponent[];
|
|
@@ -11900,6 +11995,7 @@ declare const components: {
|
|
|
11900
11995
|
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
11901
11996
|
RadioSelection: typeof RadioSelection;
|
|
11902
11997
|
GeoChartRegionSelectSection: typeof GeoChartRegionSelectSection;
|
|
11998
|
+
ChartDashboardMenu: typeof ChartDashboardMenu;
|
|
11903
11999
|
};
|
|
11904
12000
|
declare const hooks: {
|
|
11905
12001
|
useDragAndDropListItems: typeof useDragAndDropListItems;
|
|
@@ -11958,7 +12054,7 @@ declare const chartHelpers: {
|
|
|
11958
12054
|
getLineChartData(definition: GenericDefinition<LineChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
|
|
11959
12055
|
getPieChartData(definition: GenericDefinition<PieChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
|
|
11960
12056
|
getRadarChartData(definition: GenericDefinition<RadarChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
|
|
11961
|
-
getGeoChartData(definition: GeoChartDefinition,
|
|
12057
|
+
getGeoChartData(definition: GeoChartDefinition, fullDataSets: DataSet[], labelRange: Range | undefined, getters: Getters): GeoChartRuntimeGenerationArgs;
|
|
11962
12058
|
getFunnelChartData(definition: GenericDefinition<FunnelChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
|
|
11963
12059
|
getHierarchalChartData(definition: SunburstChartDefinition | TreeMapChartDefinition, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
|
|
11964
12060
|
getTrendDatasetForBarChart(config: TrendConfiguration, data: any[]): chart_js.Point[] | undefined;
|
|
@@ -11967,6 +12063,7 @@ declare const chartHelpers: {
|
|
|
11967
12063
|
getData(getters: Getters, ds: DataSet): (CellValue | undefined)[];
|
|
11968
12064
|
getChartLabelFormat(getters: Getters, range: Range | undefined, shouldRemoveFirstLabel: boolean): Format | undefined;
|
|
11969
12065
|
makeDatasetsCumulative(datasets: DatasetValues[], order: "asc" | "desc"): DatasetValues[];
|
|
12066
|
+
getTopPaddingForDashboard(definition: GenericDefinition<PieChartDefinition | LineChartDefinition | BarChartDefinition>, getters: Getters): 0 | 30;
|
|
11970
12067
|
getBarChartDatasets(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"bar" | "line">[];
|
|
11971
12068
|
getWaterfallDatasetAndLabels(definition: GenericDefinition<WaterfallChartDefinition>, args: ChartRuntimeGenerationArgs): {
|
|
11972
12069
|
datasets: chart_js.ChartDataset[];
|
|
@@ -11984,7 +12081,7 @@ declare const chartHelpers: {
|
|
|
11984
12081
|
getTreeMapChartDatasets(definition: TreeMapChartDefinition, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"treemap">[];
|
|
11985
12082
|
getChartColorsGenerator(definition: GenericDefinition<ChartWithDataSetDefinition>, dataSetsSize: number): ColorGenerator;
|
|
11986
12083
|
GHOST_SUNBURST_VALUE: "nullValue";
|
|
11987
|
-
getChartLayout(definition: GenericDefinition<ChartWithDataSetDefinition
|
|
12084
|
+
getChartLayout(definition: GenericDefinition<ChartWithDataSetDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<Partial<{
|
|
11988
12085
|
autoPadding: boolean;
|
|
11989
12086
|
padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
|
|
11990
12087
|
}>> | undefined;
|
|
@@ -12457,6 +12554,12 @@ declare const chartHelpers: {
|
|
|
12457
12554
|
isTrendLineAxis(axisID: string): axisID is "x1" | "xMovingAverage";
|
|
12458
12555
|
TREND_LINE_XAXIS_ID: "x1";
|
|
12459
12556
|
MOVING_AVERAGE_TREND_LINE_XAXIS_ID: "xMovingAverage";
|
|
12557
|
+
SPREADSHEET_TO_EXCEL_TRENDLINE_TYPE_MAPPING: {
|
|
12558
|
+
readonly exponential: "exp";
|
|
12559
|
+
readonly logarithmic: "log";
|
|
12560
|
+
readonly polynomial: "poly";
|
|
12561
|
+
readonly trailingMovingAverage: "movingAvg";
|
|
12562
|
+
};
|
|
12460
12563
|
CHART_AXIS_CHOICES: {
|
|
12461
12564
|
value: string;
|
|
12462
12565
|
label: string;
|
|
@@ -12468,7 +12571,20 @@ declare const chartHelpers: {
|
|
|
12468
12571
|
getSmartChartDefinition(zone: Zone, getters: Getters): ChartDefinition;
|
|
12469
12572
|
chartToImageUrl(runtime: ChartRuntime, figure: Figure, type: ChartType): string | undefined;
|
|
12470
12573
|
chartToImageFile(runtime: ChartRuntime, figure: Figure, type: ChartType): Promise<File | undefined>;
|
|
12471
|
-
CHART_COMMON_OPTIONS:
|
|
12574
|
+
CHART_COMMON_OPTIONS: {
|
|
12575
|
+
responsive: true;
|
|
12576
|
+
maintainAspectRatio: false;
|
|
12577
|
+
elements: {
|
|
12578
|
+
line: {
|
|
12579
|
+
fill: false;
|
|
12580
|
+
};
|
|
12581
|
+
point: {
|
|
12582
|
+
hitRadius: number;
|
|
12583
|
+
};
|
|
12584
|
+
};
|
|
12585
|
+
animation: false;
|
|
12586
|
+
events: ("click" | "mousemove" | "mouseout" | "mouseup" | "touchmove" | "touchstart")[];
|
|
12587
|
+
};
|
|
12472
12588
|
createGaugeChartRuntime(chart: GaugeChart, getters: Getters): GaugeChartRuntime;
|
|
12473
12589
|
GaugeChart: typeof GaugeChart;
|
|
12474
12590
|
createLineChartRuntime(chart: LineChart, getters: Getters): ChartJSRuntime;
|
|
@@ -12482,4 +12598,4 @@ declare const chartHelpers: {
|
|
|
12482
12598
|
WaterfallChart: typeof WaterfallChart;
|
|
12483
12599
|
};
|
|
12484
12600
|
|
|
12485
|
-
export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorOffset, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelledReason, Cell, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartAxisFormats, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartRuntimeGenerationArgs, ChartStyle, ChartType, ChartWithAxisDefinition, ChartWithDataSetDefinition, CleanClipBoardHighlightCommand, ClearCellCommand, ClearCellsCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, 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, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CoreViewPlugin, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, CreateTableStyleCommand, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DataBarRule, DataBarRuleInternal, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, DatasetValues, DateCriterionValue, DateIncrementModifier, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, DeleteUnfilteredContentCommand, Dependencies, Dimension, DimensionTree, DimensionTreeNode, Direction$1 as Direction, DispatchResult, DuplicatePivotCommand, DuplicatePivotInNewSheetCommand, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EditionMode, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluateChartsCommand, EvaluatedCell, EvaluationError, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, Figure, FigureData, FigureInfo, FigureSize, FigureUI, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GeneratorCell, GenericDefinition, GetSymbolValue, Getters, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, InsertPivotWithTableCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, LookupCaches, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, OSClipboardContent, Offset, OperationSequenceNode, OrderedLayers, PaintFormat, PaneDivision, ParsedOSClipboardContent, ParsedOsClipboardContentWithImageData, PasteCommand, PasteFromOSClipboardCommand, Pivot, PivotColRowDomain, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotDimension$1 as PivotDimension, PivotDomain, PivotEmptyCell, PivotField, PivotFields, PivotHeaderCell, PivotMeasure, PivotMeasureDisplay, PivotMeasureDisplayType, PivotMeasureHeaderCell, PivotNode, PivotRuntimeDefinition, PivotSortedColumn, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, PivotTimeAdapterNotNull, PivotValueCell, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeAdapter$1 as 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, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetBorderTargetCommand, SetContextualFormatCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetEditingCommand, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitPivotFormulaCommand, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableBorder, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, TitleDesign, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrendConfiguration, TrendType, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdatePivotCommand, UpdateTableCommand, Validation, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, chartHelpers, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, 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 };
|
|
12601
|
+
export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorOffset, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelledReason, Cell, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartAxisFormats, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartRuntimeGenerationArgs, ChartStyle, ChartType, ChartWithAxisDefinition, ChartWithDataSetDefinition, CleanClipBoardHighlightCommand, ClearCellCommand, ClearCellsCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, 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, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CoreViewPlugin, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, CreateTableStyleCommand, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataBarFill, DataBarRule, DataBarRuleInternal, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, DatasetValues, DateCriterionValue, DateIncrementModifier, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, DeleteUnfilteredContentCommand, Dependencies, Dimension, DimensionTree, DimensionTreeNode, Direction$1 as Direction, DispatchResult, DuplicatePivotCommand, DuplicatePivotInNewSheetCommand, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EditionMode, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluateChartsCommand, EvaluatedCell, EvaluationError, ExcelChartDataset, ExcelChartDefinition, ExcelChartTrendConfiguration, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelTrendlineType, ExcelWorkbookData, ExpressionRule, Figure, FigureData, FigureInfo, FigureSize, FigureUI, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, FunctionResultNumber, FunctionResultObject, GeneratorCell, GenericDefinition, GetSymbolValue, Getters, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, InsertPivotWithTableCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, LookupCaches, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, OSClipboardContent, Offset, OperationSequenceNode, OrderedLayers, PaintFormat, PaneDivision, ParsedOSClipboardContent, ParsedOsClipboardContentWithImageData, PasteCommand, PasteFromOSClipboardCommand, Pivot, PivotColRowDomain, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotDimension$1 as PivotDimension, PivotDomain, PivotEmptyCell, PivotField, PivotFields, PivotHeaderCell, PivotMeasure, PivotMeasureDisplay, PivotMeasureDisplayType, PivotMeasureHeaderCell, PivotNode, PivotRuntimeDefinition, PivotSortedColumn, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, PivotTimeAdapterNotNull, PivotValueCell, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeAdapter$1 as 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, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetBorderTargetCommand, SetContextualFormatCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetEditingCommand, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitPivotFormulaCommand, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableBorder, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, TitleDesign, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrendConfiguration, TrendType, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdatePivotCommand, UpdateTableCommand, Validation, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, chartHelpers, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, 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 };
|