@odoo/o-spreadsheet 18.2.0-alpha.6 → 18.2.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/o-spreadsheet.cjs.js +1855 -1712
- package/dist/o-spreadsheet.d.ts +408 -384
- package/dist/o-spreadsheet.esm.js +1855 -1712
- package/dist/o-spreadsheet.iife.js +1852 -1709
- package/dist/o-spreadsheet.iife.min.js +328 -328
- package/dist/o_spreadsheet.xml +28 -28
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -3052,10 +3052,8 @@ declare const enum CommandResult {
|
|
|
3052
3052
|
GaugeRangeMinNaN = "GaugeRangeMinNaN",
|
|
3053
3053
|
EmptyGaugeRangeMax = "EmptyGaugeRangeMax",
|
|
3054
3054
|
GaugeRangeMaxNaN = "GaugeRangeMaxNaN",
|
|
3055
|
-
GaugeRangeMinBiggerThanRangeMax = "GaugeRangeMinBiggerThanRangeMax",
|
|
3056
3055
|
GaugeLowerInflectionPointNaN = "GaugeLowerInflectionPointNaN",
|
|
3057
3056
|
GaugeUpperInflectionPointNaN = "GaugeUpperInflectionPointNaN",
|
|
3058
|
-
GaugeLowerBiggerThanUpper = "GaugeLowerBiggerThanUpper",
|
|
3059
3057
|
InvalidAutofillSelection = "InvalidAutofillSelection",
|
|
3060
3058
|
MinBiggerThanMax = "MinBiggerThanMax",
|
|
3061
3059
|
LowerBiggerThanUpper = "LowerBiggerThanUpper",
|
|
@@ -3986,7 +3984,7 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
3986
3984
|
private getters;
|
|
3987
3985
|
private providers;
|
|
3988
3986
|
constructor(getters: CoreGetters);
|
|
3989
|
-
static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
3987
|
+
static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
3990
3988
|
allowDispatch(cmd: Command): CommandResult;
|
|
3991
3989
|
beforeHandle(command: Command): void;
|
|
3992
3990
|
handle(cmd: Command): void;
|
|
@@ -4043,6 +4041,15 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
4043
4041
|
getRangeFromRangeData(data: RangeData): Range;
|
|
4044
4042
|
isRangeValid(rangeStr: string): boolean;
|
|
4045
4043
|
getRangesUnion(ranges: Range[]): Range;
|
|
4044
|
+
adaptFormulaStringDependencies(sheetId: UID, formula: string, applyChange: ApplyRangeChange): string;
|
|
4045
|
+
/**
|
|
4046
|
+
* Copy a formula string to another sheet.
|
|
4047
|
+
*
|
|
4048
|
+
* @param mode
|
|
4049
|
+
* `keepSameReference` will make the formula reference the exact same ranges,
|
|
4050
|
+
* `moveReference` will change all the references to `sheetIdFrom` into references to `sheetIdTo`.
|
|
4051
|
+
*/
|
|
4052
|
+
copyFormulaStringForSheet(sheetIdFrom: UID, sheetIdTo: UID, formula: string, mode: "keepSameReference" | "moveReference"): string;
|
|
4046
4053
|
/**
|
|
4047
4054
|
* Get a Xc string that represent a part of a range
|
|
4048
4055
|
*/
|
|
@@ -6651,6 +6658,7 @@ declare class OTRegistry extends Registry<Map<CoreCommandTypes, TransformationFu
|
|
|
6651
6658
|
interface CellClickableItem {
|
|
6652
6659
|
condition: (position: CellPosition, getters: Getters) => boolean;
|
|
6653
6660
|
execute: (position: CellPosition, env: SpreadsheetChildEnv) => void;
|
|
6661
|
+
title?: string;
|
|
6654
6662
|
sequence: number;
|
|
6655
6663
|
}
|
|
6656
6664
|
|
|
@@ -7826,222 +7834,6 @@ declare class GaugeChartConfigPanel extends Component<Props$U, SpreadsheetChildE
|
|
|
7826
7834
|
getDataRange(): CustomizedDataSet;
|
|
7827
7835
|
}
|
|
7828
7836
|
|
|
7829
|
-
interface PanelState {
|
|
7830
|
-
sectionRuleDispatchResult?: DispatchResult;
|
|
7831
|
-
sectionRule: SectionRule;
|
|
7832
|
-
}
|
|
7833
|
-
interface Props$T {
|
|
7834
|
-
figureId: UID;
|
|
7835
|
-
definition: GaugeChartDefinition;
|
|
7836
|
-
canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7837
|
-
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7838
|
-
}
|
|
7839
|
-
declare class GaugeChartDesignPanel extends Component<Props$T, SpreadsheetChildEnv> {
|
|
7840
|
-
static template: string;
|
|
7841
|
-
static components: {
|
|
7842
|
-
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
7843
|
-
Section: typeof Section;
|
|
7844
|
-
RoundColorPicker: typeof RoundColorPicker;
|
|
7845
|
-
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
7846
|
-
ChartErrorSection: typeof ChartErrorSection;
|
|
7847
|
-
};
|
|
7848
|
-
static props: {
|
|
7849
|
-
figureId: StringConstructor;
|
|
7850
|
-
definition: ObjectConstructor;
|
|
7851
|
-
updateChart: FunctionConstructor;
|
|
7852
|
-
canUpdateChart: {
|
|
7853
|
-
type: FunctionConstructor;
|
|
7854
|
-
optional: boolean;
|
|
7855
|
-
};
|
|
7856
|
-
};
|
|
7857
|
-
protected state: PanelState;
|
|
7858
|
-
setup(): void;
|
|
7859
|
-
get designErrorMessages(): string[];
|
|
7860
|
-
isRangeMinInvalid(): boolean;
|
|
7861
|
-
isRangeMaxInvalid(): boolean;
|
|
7862
|
-
get isLowerInflectionPointInvalid(): boolean;
|
|
7863
|
-
get isUpperInflectionPointInvalid(): boolean;
|
|
7864
|
-
updateSectionColor(target: string, color: Color): void;
|
|
7865
|
-
updateSectionRule(sectionRule: SectionRule): void;
|
|
7866
|
-
canUpdateSectionRule(sectionRule: SectionRule): void;
|
|
7867
|
-
}
|
|
7868
|
-
|
|
7869
|
-
declare class LineConfigPanel extends GenericChartConfigPanel {
|
|
7870
|
-
static template: string;
|
|
7871
|
-
get canTreatLabelsAsText(): boolean;
|
|
7872
|
-
get stackedLabel(): string;
|
|
7873
|
-
getLabelRangeOptions(): {
|
|
7874
|
-
name: string;
|
|
7875
|
-
label: any;
|
|
7876
|
-
value: boolean;
|
|
7877
|
-
onChange: (aggregated: boolean) => void;
|
|
7878
|
-
}[];
|
|
7879
|
-
onUpdateLabelsAsText(labelsAsText: boolean): void;
|
|
7880
|
-
onUpdateStacked(stacked: boolean): void;
|
|
7881
|
-
onUpdateCumulative(cumulative: boolean): void;
|
|
7882
|
-
}
|
|
7883
|
-
|
|
7884
|
-
interface Props$S {
|
|
7885
|
-
figureId: UID;
|
|
7886
|
-
definition: ScorecardChartDefinition;
|
|
7887
|
-
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7888
|
-
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7889
|
-
}
|
|
7890
|
-
declare class ScorecardChartConfigPanel extends Component<Props$S, SpreadsheetChildEnv> {
|
|
7891
|
-
static template: string;
|
|
7892
|
-
static components: {
|
|
7893
|
-
SelectionInput: typeof SelectionInput;
|
|
7894
|
-
ChartErrorSection: typeof ChartErrorSection;
|
|
7895
|
-
Section: typeof Section;
|
|
7896
|
-
};
|
|
7897
|
-
static props: {
|
|
7898
|
-
figureId: StringConstructor;
|
|
7899
|
-
definition: ObjectConstructor;
|
|
7900
|
-
updateChart: FunctionConstructor;
|
|
7901
|
-
canUpdateChart: FunctionConstructor;
|
|
7902
|
-
};
|
|
7903
|
-
private state;
|
|
7904
|
-
private keyValue;
|
|
7905
|
-
private baseline;
|
|
7906
|
-
get errorMessages(): string[];
|
|
7907
|
-
get isKeyValueInvalid(): boolean;
|
|
7908
|
-
get isBaselineInvalid(): boolean;
|
|
7909
|
-
onKeyValueRangeChanged(ranges: string[]): void;
|
|
7910
|
-
updateKeyValueRange(): void;
|
|
7911
|
-
getKeyValueRange(): string;
|
|
7912
|
-
onBaselineRangeChanged(ranges: string[]): void;
|
|
7913
|
-
updateBaselineRange(): void;
|
|
7914
|
-
getBaselineRange(): string;
|
|
7915
|
-
updateBaselineMode(ev: any): void;
|
|
7916
|
-
}
|
|
7917
|
-
|
|
7918
|
-
type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
|
|
7919
|
-
interface Props$R {
|
|
7920
|
-
figureId: UID;
|
|
7921
|
-
definition: ScorecardChartDefinition;
|
|
7922
|
-
canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7923
|
-
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7924
|
-
}
|
|
7925
|
-
declare class ScorecardChartDesignPanel extends Component<Props$R, SpreadsheetChildEnv> {
|
|
7926
|
-
static template: string;
|
|
7927
|
-
static components: {
|
|
7928
|
-
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
7929
|
-
RoundColorPicker: typeof RoundColorPicker;
|
|
7930
|
-
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
7931
|
-
Section: typeof Section;
|
|
7932
|
-
Checkbox: typeof Checkbox;
|
|
7933
|
-
};
|
|
7934
|
-
static props: {
|
|
7935
|
-
figureId: StringConstructor;
|
|
7936
|
-
definition: ObjectConstructor;
|
|
7937
|
-
updateChart: FunctionConstructor;
|
|
7938
|
-
canUpdateChart: {
|
|
7939
|
-
type: FunctionConstructor;
|
|
7940
|
-
optional: boolean;
|
|
7941
|
-
};
|
|
7942
|
-
};
|
|
7943
|
-
get colorsSectionTitle(): string;
|
|
7944
|
-
get humanizeNumbersLabel(): string;
|
|
7945
|
-
get defaultScorecardTitleFontSize(): number;
|
|
7946
|
-
updateHumanizeNumbers(humanize: boolean): void;
|
|
7947
|
-
translate(term: any): string;
|
|
7948
|
-
updateBaselineDescr(ev: any): void;
|
|
7949
|
-
setColor(color: Color, colorPickerId: ColorPickerId): void;
|
|
7950
|
-
}
|
|
7951
|
-
|
|
7952
|
-
interface ChartSidePanel {
|
|
7953
|
-
configuration: new (...args: any) => Component;
|
|
7954
|
-
design: new (...args: any) => Component;
|
|
7955
|
-
}
|
|
7956
|
-
|
|
7957
|
-
/**
|
|
7958
|
-
* This registry is intended to map a type of figure (tag) to a class of
|
|
7959
|
-
* component, that will be used in the UI to represent the figure.
|
|
7960
|
-
*
|
|
7961
|
-
* The most important type of figure will be the Chart
|
|
7962
|
-
*/
|
|
7963
|
-
interface FigureContent {
|
|
7964
|
-
Component: any;
|
|
7965
|
-
menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
|
|
7966
|
-
SidePanelComponent?: string;
|
|
7967
|
-
keepRatio?: boolean;
|
|
7968
|
-
minFigSize?: number;
|
|
7969
|
-
borderWidth?: number;
|
|
7970
|
-
}
|
|
7971
|
-
|
|
7972
|
-
interface SidePanelProps {
|
|
7973
|
-
onCloseSidePanel?: () => void;
|
|
7974
|
-
[key: string]: any;
|
|
7975
|
-
}
|
|
7976
|
-
interface OpenSidePanel {
|
|
7977
|
-
isOpen: true;
|
|
7978
|
-
props?: SidePanelProps;
|
|
7979
|
-
key?: string;
|
|
7980
|
-
}
|
|
7981
|
-
interface ClosedSidePanel {
|
|
7982
|
-
isOpen: false;
|
|
7983
|
-
}
|
|
7984
|
-
type SidePanelState = OpenSidePanel | ClosedSidePanel;
|
|
7985
|
-
declare class SidePanelStore extends SpreadsheetStore {
|
|
7986
|
-
mutators: readonly ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
7987
|
-
initialPanelProps: SidePanelProps;
|
|
7988
|
-
componentTag: string;
|
|
7989
|
-
panelSize: number;
|
|
7990
|
-
get isOpen(): boolean;
|
|
7991
|
-
get panelProps(): SidePanelProps;
|
|
7992
|
-
get panelKey(): string | undefined;
|
|
7993
|
-
open(componentTag: string, panelProps?: SidePanelProps): void;
|
|
7994
|
-
toggle(componentTag: string, panelProps: SidePanelProps): void;
|
|
7995
|
-
close(): void;
|
|
7996
|
-
changePanelSize(size: number, spreadsheetElWidth: number): void;
|
|
7997
|
-
resetPanelSize(): void;
|
|
7998
|
-
private computeState;
|
|
7999
|
-
}
|
|
8000
|
-
|
|
8001
|
-
interface SidePanelContent {
|
|
8002
|
-
title: string | ((env: SpreadsheetChildEnv, props: object) => string);
|
|
8003
|
-
Body: any;
|
|
8004
|
-
Footer?: any;
|
|
8005
|
-
/**
|
|
8006
|
-
* A callback used to validate the props or generate new props
|
|
8007
|
-
* based on the current state of the spreadsheet model, using the getters.
|
|
8008
|
-
*/
|
|
8009
|
-
computeState?: (getters: Getters, initialProps: object) => SidePanelState;
|
|
8010
|
-
}
|
|
8011
|
-
|
|
8012
|
-
/**
|
|
8013
|
-
* The class Registry is extended in order to add the function addChild
|
|
8014
|
-
*
|
|
8015
|
-
*/
|
|
8016
|
-
declare class MenuItemRegistry extends Registry<ActionSpec> {
|
|
8017
|
-
/**
|
|
8018
|
-
* @override
|
|
8019
|
-
*/
|
|
8020
|
-
add(key: string, value: ActionSpec): MenuItemRegistry;
|
|
8021
|
-
/**
|
|
8022
|
-
* Add a subitem to an existing item
|
|
8023
|
-
* @param path Path of items to add this subitem
|
|
8024
|
-
* @param value Subitem to add
|
|
8025
|
-
*/
|
|
8026
|
-
addChild(key: string, path: string[], value: ActionSpec | ActionBuilder, options?: {
|
|
8027
|
-
force: boolean;
|
|
8028
|
-
}): MenuItemRegistry;
|
|
8029
|
-
getMenuItems(): Action[];
|
|
8030
|
-
}
|
|
8031
|
-
|
|
8032
|
-
/**
|
|
8033
|
-
* An AutofillRule is used to generate what to do when we need to autofill
|
|
8034
|
-
* a cell. (In a AutofillGenerator, see plugins/autofill.ts)
|
|
8035
|
-
*
|
|
8036
|
-
* When we generate the rules to autofill, we take the first matching rule
|
|
8037
|
-
* (ordered by sequence), and we generate the AutofillModifier with generateRule
|
|
8038
|
-
*/
|
|
8039
|
-
interface AutofillRule {
|
|
8040
|
-
condition: (cell: Cell, cells: (Cell | undefined)[]) => boolean;
|
|
8041
|
-
generateRule: (cell: Cell, cells: (Cell | undefined)[]) => AutofillModifier;
|
|
8042
|
-
sequence: number;
|
|
8043
|
-
}
|
|
8044
|
-
|
|
8045
7837
|
interface FunctionContext {
|
|
8046
7838
|
/**
|
|
8047
7839
|
* The parent function name of the token.
|
|
@@ -8085,13 +7877,13 @@ interface EnrichedToken extends Token {
|
|
|
8085
7877
|
isParenthesisLinkedToCursor?: boolean;
|
|
8086
7878
|
}
|
|
8087
7879
|
|
|
8088
|
-
interface Props$
|
|
7880
|
+
interface Props$T {
|
|
8089
7881
|
proposals: AutoCompleteProposal[];
|
|
8090
7882
|
selectedIndex: number | undefined;
|
|
8091
7883
|
onValueSelected: (value: string) => void;
|
|
8092
7884
|
onValueHovered: (index: string) => void;
|
|
8093
7885
|
}
|
|
8094
|
-
declare class TextValueProvider extends Component<Props$
|
|
7886
|
+
declare class TextValueProvider extends Component<Props$T> {
|
|
8095
7887
|
static template: string;
|
|
8096
7888
|
static props: {
|
|
8097
7889
|
proposals: ArrayConstructor;
|
|
@@ -8158,19 +7950,19 @@ declare class ContentEditableHelper {
|
|
|
8158
7950
|
getText(): string;
|
|
8159
7951
|
}
|
|
8160
7952
|
|
|
8161
|
-
interface Props$
|
|
7953
|
+
interface Props$S {
|
|
8162
7954
|
functionName: string;
|
|
8163
7955
|
functionDescription: FunctionDescription;
|
|
8164
7956
|
argToFocus: number;
|
|
8165
7957
|
}
|
|
8166
|
-
declare class FunctionDescriptionProvider extends Component<Props$
|
|
7958
|
+
declare class FunctionDescriptionProvider extends Component<Props$S, SpreadsheetChildEnv> {
|
|
8167
7959
|
static template: string;
|
|
8168
7960
|
static props: {
|
|
8169
7961
|
functionName: StringConstructor;
|
|
8170
7962
|
functionDescription: ObjectConstructor;
|
|
8171
7963
|
argToFocus: NumberConstructor;
|
|
8172
7964
|
};
|
|
8173
|
-
getContext(): Props$
|
|
7965
|
+
getContext(): Props$S;
|
|
8174
7966
|
get formulaArgSeparator(): string;
|
|
8175
7967
|
}
|
|
8176
7968
|
|
|
@@ -8522,37 +8314,329 @@ interface AutoCompleteProviderDefinition {
|
|
|
8522
8314
|
}, tokenAtCursor: EnrichedToken, text: string): void;
|
|
8523
8315
|
}
|
|
8524
8316
|
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
content?: string;
|
|
8537
|
-
selection?: ComposerSelection;
|
|
8538
|
-
}
|
|
8539
|
-
declare class ComposerFocusStore extends SpreadsheetStore {
|
|
8540
|
-
mutators: readonly ["focusComposer", "focusActiveComposer"];
|
|
8541
|
-
activeComposer: ComposerInterface;
|
|
8542
|
-
private _focusMode;
|
|
8543
|
-
get focusMode(): ComposerFocusType;
|
|
8544
|
-
focusComposer(listener: ComposerInterface, args: Args): void;
|
|
8545
|
-
focusActiveComposer(args: Args): void;
|
|
8546
|
-
/**
|
|
8547
|
-
* Start the edition or update the content if it's already started.
|
|
8548
|
-
*/
|
|
8549
|
-
private setComposerContent;
|
|
8317
|
+
/**
|
|
8318
|
+
* An AutofillRule is used to generate what to do when we need to autofill
|
|
8319
|
+
* a cell. (In a AutofillGenerator, see plugins/autofill.ts)
|
|
8320
|
+
*
|
|
8321
|
+
* When we generate the rules to autofill, we take the first matching rule
|
|
8322
|
+
* (ordered by sequence), and we generate the AutofillModifier with generateRule
|
|
8323
|
+
*/
|
|
8324
|
+
interface AutofillRule {
|
|
8325
|
+
condition: (cell: Cell, cells: (Cell | undefined)[]) => boolean;
|
|
8326
|
+
generateRule: (cell: Cell, cells: (Cell | undefined)[]) => AutofillModifier;
|
|
8327
|
+
sequence: number;
|
|
8550
8328
|
}
|
|
8551
8329
|
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8330
|
+
/**
|
|
8331
|
+
* This registry is intended to map a type of figure (tag) to a class of
|
|
8332
|
+
* component, that will be used in the UI to represent the figure.
|
|
8333
|
+
*
|
|
8334
|
+
* The most important type of figure will be the Chart
|
|
8335
|
+
*/
|
|
8336
|
+
interface FigureContent {
|
|
8337
|
+
Component: any;
|
|
8338
|
+
menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
|
|
8339
|
+
SidePanelComponent?: string;
|
|
8340
|
+
keepRatio?: boolean;
|
|
8341
|
+
minFigSize?: number;
|
|
8342
|
+
borderWidth?: number;
|
|
8343
|
+
}
|
|
8344
|
+
|
|
8345
|
+
/**
|
|
8346
|
+
* The class Registry is extended in order to add the function addChild
|
|
8347
|
+
*
|
|
8348
|
+
*/
|
|
8349
|
+
declare class MenuItemRegistry extends Registry<ActionSpec> {
|
|
8350
|
+
/**
|
|
8351
|
+
* @override
|
|
8352
|
+
*/
|
|
8353
|
+
add(key: string, value: ActionSpec): MenuItemRegistry;
|
|
8354
|
+
/**
|
|
8355
|
+
* Add a subitem to an existing item
|
|
8356
|
+
* @param path Path of items to add this subitem
|
|
8357
|
+
* @param value Subitem to add
|
|
8358
|
+
*/
|
|
8359
|
+
addChild(key: string, path: string[], value: ActionSpec | ActionBuilder, options?: {
|
|
8360
|
+
force: boolean;
|
|
8361
|
+
}): MenuItemRegistry;
|
|
8362
|
+
getMenuItems(): Action[];
|
|
8363
|
+
}
|
|
8364
|
+
|
|
8365
|
+
interface Props$R {
|
|
8366
|
+
onConfirm: (content: string) => void;
|
|
8367
|
+
composerContent: string;
|
|
8368
|
+
defaultRangeSheetId: UID;
|
|
8369
|
+
defaultStatic?: boolean;
|
|
8370
|
+
contextualAutocomplete?: AutoCompleteProviderDefinition;
|
|
8371
|
+
placeholder?: string;
|
|
8372
|
+
title?: string;
|
|
8373
|
+
class?: string;
|
|
8374
|
+
invalid?: boolean;
|
|
8375
|
+
getContextualColoredSymbolToken?: (token: Token) => Color;
|
|
8376
|
+
}
|
|
8377
|
+
declare class StandaloneComposer extends Component<Props$R, SpreadsheetChildEnv> {
|
|
8378
|
+
static template: string;
|
|
8379
|
+
static props: {
|
|
8380
|
+
composerContent: {
|
|
8381
|
+
type: StringConstructor;
|
|
8382
|
+
optional: boolean;
|
|
8383
|
+
};
|
|
8384
|
+
defaultRangeSheetId: {
|
|
8385
|
+
type: StringConstructor;
|
|
8386
|
+
optional: boolean;
|
|
8387
|
+
};
|
|
8388
|
+
defaultStatic: {
|
|
8389
|
+
type: BooleanConstructor;
|
|
8390
|
+
optional: boolean;
|
|
8391
|
+
};
|
|
8392
|
+
onConfirm: FunctionConstructor;
|
|
8393
|
+
contextualAutocomplete: {
|
|
8394
|
+
type: ObjectConstructor;
|
|
8395
|
+
optional: boolean;
|
|
8396
|
+
};
|
|
8397
|
+
placeholder: {
|
|
8398
|
+
type: StringConstructor;
|
|
8399
|
+
optional: boolean;
|
|
8400
|
+
};
|
|
8401
|
+
title: {
|
|
8402
|
+
type: StringConstructor;
|
|
8403
|
+
optional: boolean;
|
|
8404
|
+
};
|
|
8405
|
+
class: {
|
|
8406
|
+
type: StringConstructor;
|
|
8407
|
+
optional: boolean;
|
|
8408
|
+
};
|
|
8409
|
+
invalid: {
|
|
8410
|
+
type: BooleanConstructor;
|
|
8411
|
+
optional: boolean;
|
|
8412
|
+
};
|
|
8413
|
+
getContextualColoredSymbolToken: {
|
|
8414
|
+
type: FunctionConstructor;
|
|
8415
|
+
optional: boolean;
|
|
8416
|
+
};
|
|
8417
|
+
};
|
|
8418
|
+
static components: {
|
|
8419
|
+
Composer: typeof Composer;
|
|
8420
|
+
};
|
|
8421
|
+
static defaultProps: {
|
|
8422
|
+
composerContent: string;
|
|
8423
|
+
defaultStatic: boolean;
|
|
8424
|
+
};
|
|
8425
|
+
private composerFocusStore;
|
|
8426
|
+
private standaloneComposerStore;
|
|
8427
|
+
private composerInterface;
|
|
8428
|
+
readonly spreadsheetRect: Rect;
|
|
8429
|
+
setup(): void;
|
|
8430
|
+
get focus(): ComposerFocusType;
|
|
8431
|
+
get composerStyle(): string;
|
|
8432
|
+
get containerClass(): string;
|
|
8433
|
+
onFocus(selection: ComposerSelection): void;
|
|
8434
|
+
}
|
|
8435
|
+
|
|
8436
|
+
interface PanelState {
|
|
8437
|
+
sectionRuleCancelledReasons?: CommandResult[];
|
|
8438
|
+
sectionRule: SectionRule;
|
|
8439
|
+
}
|
|
8440
|
+
interface Props$Q {
|
|
8441
|
+
figureId: UID;
|
|
8442
|
+
definition: GaugeChartDefinition;
|
|
8443
|
+
canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
8444
|
+
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
8445
|
+
}
|
|
8446
|
+
declare class GaugeChartDesignPanel extends Component<Props$Q, SpreadsheetChildEnv> {
|
|
8447
|
+
static template: string;
|
|
8448
|
+
static components: {
|
|
8449
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
8450
|
+
Section: typeof Section;
|
|
8451
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
8452
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
8453
|
+
ChartErrorSection: typeof ChartErrorSection;
|
|
8454
|
+
StandaloneComposer: typeof StandaloneComposer;
|
|
8455
|
+
};
|
|
8456
|
+
static props: {
|
|
8457
|
+
figureId: StringConstructor;
|
|
8458
|
+
definition: ObjectConstructor;
|
|
8459
|
+
updateChart: FunctionConstructor;
|
|
8460
|
+
canUpdateChart: {
|
|
8461
|
+
type: FunctionConstructor;
|
|
8462
|
+
optional: boolean;
|
|
8463
|
+
};
|
|
8464
|
+
};
|
|
8465
|
+
protected state: PanelState;
|
|
8466
|
+
setup(): void;
|
|
8467
|
+
get designErrorMessages(): string[];
|
|
8468
|
+
get isRangeMinInvalid(): boolean;
|
|
8469
|
+
get isRangeMaxInvalid(): boolean;
|
|
8470
|
+
get isLowerInflectionPointInvalid(): boolean;
|
|
8471
|
+
get isUpperInflectionPointInvalid(): boolean;
|
|
8472
|
+
updateSectionColor(target: string, color: Color): void;
|
|
8473
|
+
updateSectionRule(sectionRule: SectionRule): void;
|
|
8474
|
+
onConfirmGaugeRange(editedRange: "rangeMin" | "rangeMax", content: string): void;
|
|
8475
|
+
getGaugeInflectionComposerProps(sectionType: "lowerColor" | "middleColor"): StandaloneComposer["props"];
|
|
8476
|
+
private checkSectionRuleFormulasAreValid;
|
|
8477
|
+
private valueIsValidNumber;
|
|
8478
|
+
get sheetId(): UID;
|
|
8479
|
+
}
|
|
8480
|
+
|
|
8481
|
+
declare class LineConfigPanel extends GenericChartConfigPanel {
|
|
8482
|
+
static template: string;
|
|
8483
|
+
get canTreatLabelsAsText(): boolean;
|
|
8484
|
+
get stackedLabel(): string;
|
|
8485
|
+
getLabelRangeOptions(): {
|
|
8486
|
+
name: string;
|
|
8487
|
+
label: any;
|
|
8488
|
+
value: boolean;
|
|
8489
|
+
onChange: (aggregated: boolean) => void;
|
|
8490
|
+
}[];
|
|
8491
|
+
onUpdateLabelsAsText(labelsAsText: boolean): void;
|
|
8492
|
+
onUpdateStacked(stacked: boolean): void;
|
|
8493
|
+
onUpdateCumulative(cumulative: boolean): void;
|
|
8494
|
+
}
|
|
8495
|
+
|
|
8496
|
+
interface Props$P {
|
|
8497
|
+
figureId: UID;
|
|
8498
|
+
definition: ScorecardChartDefinition;
|
|
8499
|
+
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8500
|
+
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8501
|
+
}
|
|
8502
|
+
declare class ScorecardChartConfigPanel extends Component<Props$P, SpreadsheetChildEnv> {
|
|
8503
|
+
static template: string;
|
|
8504
|
+
static components: {
|
|
8505
|
+
SelectionInput: typeof SelectionInput;
|
|
8506
|
+
ChartErrorSection: typeof ChartErrorSection;
|
|
8507
|
+
Section: typeof Section;
|
|
8508
|
+
};
|
|
8509
|
+
static props: {
|
|
8510
|
+
figureId: StringConstructor;
|
|
8511
|
+
definition: ObjectConstructor;
|
|
8512
|
+
updateChart: FunctionConstructor;
|
|
8513
|
+
canUpdateChart: FunctionConstructor;
|
|
8514
|
+
};
|
|
8515
|
+
private state;
|
|
8516
|
+
private keyValue;
|
|
8517
|
+
private baseline;
|
|
8518
|
+
get errorMessages(): string[];
|
|
8519
|
+
get isKeyValueInvalid(): boolean;
|
|
8520
|
+
get isBaselineInvalid(): boolean;
|
|
8521
|
+
onKeyValueRangeChanged(ranges: string[]): void;
|
|
8522
|
+
updateKeyValueRange(): void;
|
|
8523
|
+
getKeyValueRange(): string;
|
|
8524
|
+
onBaselineRangeChanged(ranges: string[]): void;
|
|
8525
|
+
updateBaselineRange(): void;
|
|
8526
|
+
getBaselineRange(): string;
|
|
8527
|
+
updateBaselineMode(ev: any): void;
|
|
8528
|
+
}
|
|
8529
|
+
|
|
8530
|
+
type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
|
|
8531
|
+
interface Props$O {
|
|
8532
|
+
figureId: UID;
|
|
8533
|
+
definition: ScorecardChartDefinition;
|
|
8534
|
+
canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8535
|
+
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8536
|
+
}
|
|
8537
|
+
declare class ScorecardChartDesignPanel extends Component<Props$O, SpreadsheetChildEnv> {
|
|
8538
|
+
static template: string;
|
|
8539
|
+
static components: {
|
|
8540
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
8541
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
8542
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
8543
|
+
Section: typeof Section;
|
|
8544
|
+
Checkbox: typeof Checkbox;
|
|
8545
|
+
};
|
|
8546
|
+
static props: {
|
|
8547
|
+
figureId: StringConstructor;
|
|
8548
|
+
definition: ObjectConstructor;
|
|
8549
|
+
updateChart: FunctionConstructor;
|
|
8550
|
+
canUpdateChart: {
|
|
8551
|
+
type: FunctionConstructor;
|
|
8552
|
+
optional: boolean;
|
|
8553
|
+
};
|
|
8554
|
+
};
|
|
8555
|
+
get colorsSectionTitle(): string;
|
|
8556
|
+
get humanizeNumbersLabel(): string;
|
|
8557
|
+
get defaultScorecardTitleFontSize(): number;
|
|
8558
|
+
updateHumanizeNumbers(humanize: boolean): void;
|
|
8559
|
+
translate(term: any): string;
|
|
8560
|
+
updateBaselineDescr(ev: any): void;
|
|
8561
|
+
setColor(color: Color, colorPickerId: ColorPickerId): void;
|
|
8562
|
+
}
|
|
8563
|
+
|
|
8564
|
+
interface ChartSidePanel {
|
|
8565
|
+
configuration: new (...args: any) => Component;
|
|
8566
|
+
design: new (...args: any) => Component;
|
|
8567
|
+
}
|
|
8568
|
+
|
|
8569
|
+
interface SidePanelProps {
|
|
8570
|
+
onCloseSidePanel?: () => void;
|
|
8571
|
+
[key: string]: any;
|
|
8572
|
+
}
|
|
8573
|
+
interface OpenSidePanel {
|
|
8574
|
+
isOpen: true;
|
|
8575
|
+
props?: SidePanelProps;
|
|
8576
|
+
key?: string;
|
|
8577
|
+
}
|
|
8578
|
+
interface ClosedSidePanel {
|
|
8579
|
+
isOpen: false;
|
|
8580
|
+
}
|
|
8581
|
+
type SidePanelState = OpenSidePanel | ClosedSidePanel;
|
|
8582
|
+
declare class SidePanelStore extends SpreadsheetStore {
|
|
8583
|
+
mutators: readonly ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
8584
|
+
initialPanelProps: SidePanelProps;
|
|
8585
|
+
componentTag: string;
|
|
8586
|
+
panelSize: number;
|
|
8587
|
+
get isOpen(): boolean;
|
|
8588
|
+
get panelProps(): SidePanelProps;
|
|
8589
|
+
get panelKey(): string | undefined;
|
|
8590
|
+
open(componentTag: string, panelProps?: SidePanelProps): void;
|
|
8591
|
+
toggle(componentTag: string, panelProps: SidePanelProps): void;
|
|
8592
|
+
close(): void;
|
|
8593
|
+
changePanelSize(size: number, spreadsheetElWidth: number): void;
|
|
8594
|
+
resetPanelSize(): void;
|
|
8595
|
+
private computeState;
|
|
8596
|
+
}
|
|
8597
|
+
|
|
8598
|
+
interface SidePanelContent {
|
|
8599
|
+
title: string | ((env: SpreadsheetChildEnv, props: object) => string);
|
|
8600
|
+
Body: any;
|
|
8601
|
+
Footer?: any;
|
|
8602
|
+
/**
|
|
8603
|
+
* A callback used to validate the props or generate new props
|
|
8604
|
+
* based on the current state of the spreadsheet model, using the getters.
|
|
8605
|
+
*/
|
|
8606
|
+
computeState?: (getters: Getters, initialProps: object) => SidePanelState;
|
|
8607
|
+
}
|
|
8608
|
+
|
|
8609
|
+
declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
|
|
8610
|
+
|
|
8611
|
+
interface ComposerInterface {
|
|
8612
|
+
id: string;
|
|
8613
|
+
editionMode: EditionMode;
|
|
8614
|
+
startEdition(content?: string, selection?: ComposerSelection): void;
|
|
8615
|
+
stopEdition(): void;
|
|
8616
|
+
setCurrentContent(content: string, selection?: ComposerSelection): void;
|
|
8617
|
+
}
|
|
8618
|
+
interface Args {
|
|
8619
|
+
focusMode?: ComposerFocusType;
|
|
8620
|
+
content?: string;
|
|
8621
|
+
selection?: ComposerSelection;
|
|
8622
|
+
}
|
|
8623
|
+
declare class ComposerFocusStore extends SpreadsheetStore {
|
|
8624
|
+
mutators: readonly ["focusComposer", "focusActiveComposer"];
|
|
8625
|
+
activeComposer: ComposerInterface;
|
|
8626
|
+
private _focusMode;
|
|
8627
|
+
get focusMode(): ComposerFocusType;
|
|
8628
|
+
focusComposer(listener: ComposerInterface, args: Args): void;
|
|
8629
|
+
focusActiveComposer(args: Args): void;
|
|
8630
|
+
/**
|
|
8631
|
+
* Start the edition or update the content if it's already started.
|
|
8632
|
+
*/
|
|
8633
|
+
private setComposerContent;
|
|
8634
|
+
}
|
|
8635
|
+
|
|
8636
|
+
interface Props$N {
|
|
8637
|
+
figure: Figure;
|
|
8638
|
+
}
|
|
8639
|
+
declare class ChartJsComponent extends Component<Props$N, SpreadsheetChildEnv> {
|
|
8556
8640
|
static template: string;
|
|
8557
8641
|
static props: {
|
|
8558
8642
|
figure: ObjectConstructor;
|
|
@@ -8568,10 +8652,10 @@ declare class ChartJsComponent extends Component<Props$O, SpreadsheetChildEnv> {
|
|
|
8568
8652
|
private updateChartJs;
|
|
8569
8653
|
}
|
|
8570
8654
|
|
|
8571
|
-
interface Props$
|
|
8655
|
+
interface Props$M {
|
|
8572
8656
|
figure: Figure;
|
|
8573
8657
|
}
|
|
8574
|
-
declare class ScorecardChart$1 extends Component<Props$
|
|
8658
|
+
declare class ScorecardChart$1 extends Component<Props$M, SpreadsheetChildEnv> {
|
|
8575
8659
|
static template: string;
|
|
8576
8660
|
static props: {
|
|
8577
8661
|
figure: ObjectConstructor;
|
|
@@ -8584,7 +8668,7 @@ declare class ScorecardChart$1 extends Component<Props$N, SpreadsheetChildEnv> {
|
|
|
8584
8668
|
}
|
|
8585
8669
|
|
|
8586
8670
|
type MenuItemOrSeparator = Action | "separator";
|
|
8587
|
-
interface Props$
|
|
8671
|
+
interface Props$L {
|
|
8588
8672
|
position: DOMCoordinates;
|
|
8589
8673
|
menuItems: Action[];
|
|
8590
8674
|
depth: number;
|
|
@@ -8603,7 +8687,7 @@ interface MenuState {
|
|
|
8603
8687
|
menuItems: Action[];
|
|
8604
8688
|
isHoveringChild?: boolean;
|
|
8605
8689
|
}
|
|
8606
|
-
declare class Menu extends Component<Props$
|
|
8690
|
+
declare class Menu extends Component<Props$L, SpreadsheetChildEnv> {
|
|
8607
8691
|
static template: string;
|
|
8608
8692
|
static props: {
|
|
8609
8693
|
position: ObjectConstructor;
|
|
@@ -8679,14 +8763,14 @@ declare class Menu extends Component<Props$M, SpreadsheetChildEnv> {
|
|
|
8679
8763
|
}
|
|
8680
8764
|
|
|
8681
8765
|
type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
8682
|
-
interface Props$
|
|
8766
|
+
interface Props$K {
|
|
8683
8767
|
figure: Figure;
|
|
8684
8768
|
style: string;
|
|
8685
8769
|
onFigureDeleted: () => void;
|
|
8686
8770
|
onMouseDown: (ev: MouseEvent) => void;
|
|
8687
8771
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
8688
8772
|
}
|
|
8689
|
-
declare class FigureComponent extends Component<Props$
|
|
8773
|
+
declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
|
|
8690
8774
|
static template: string;
|
|
8691
8775
|
static props: {
|
|
8692
8776
|
figure: ObjectConstructor;
|
|
@@ -8735,11 +8819,11 @@ declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
8735
8819
|
private openContextMenu;
|
|
8736
8820
|
}
|
|
8737
8821
|
|
|
8738
|
-
interface Props$
|
|
8822
|
+
interface Props$J {
|
|
8739
8823
|
figure: Figure;
|
|
8740
8824
|
onFigureDeleted: () => void;
|
|
8741
8825
|
}
|
|
8742
|
-
declare class ChartFigure extends Component<Props$
|
|
8826
|
+
declare class ChartFigure extends Component<Props$J, SpreadsheetChildEnv> {
|
|
8743
8827
|
static template: string;
|
|
8744
8828
|
static props: {
|
|
8745
8829
|
figure: ObjectConstructor;
|
|
@@ -8751,7 +8835,7 @@ declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
|
|
|
8751
8835
|
get chartComponent(): new (...args: any) => Component;
|
|
8752
8836
|
}
|
|
8753
8837
|
|
|
8754
|
-
interface Props$
|
|
8838
|
+
interface Props$I {
|
|
8755
8839
|
isVisible: boolean;
|
|
8756
8840
|
position: Position;
|
|
8757
8841
|
}
|
|
@@ -8763,7 +8847,7 @@ interface State$7 {
|
|
|
8763
8847
|
position: Position;
|
|
8764
8848
|
handler: boolean;
|
|
8765
8849
|
}
|
|
8766
|
-
declare class Autofill extends Component<Props$
|
|
8850
|
+
declare class Autofill extends Component<Props$I, SpreadsheetChildEnv> {
|
|
8767
8851
|
static template: string;
|
|
8768
8852
|
static props: {
|
|
8769
8853
|
position: ObjectConstructor;
|
|
@@ -8797,7 +8881,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
|
|
|
8797
8881
|
get tagStyle(): string;
|
|
8798
8882
|
}
|
|
8799
8883
|
|
|
8800
|
-
interface Props$
|
|
8884
|
+
interface Props$H {
|
|
8801
8885
|
gridDims: DOMDimension;
|
|
8802
8886
|
onInputContextMenu: (event: MouseEvent) => void;
|
|
8803
8887
|
}
|
|
@@ -8805,7 +8889,7 @@ interface Props$I {
|
|
|
8805
8889
|
* This component is a composer which positions itself on the grid at the anchor cell.
|
|
8806
8890
|
* It also applies the style of the cell to the composer input.
|
|
8807
8891
|
*/
|
|
8808
|
-
declare class GridComposer extends Component<Props$
|
|
8892
|
+
declare class GridComposer extends Component<Props$H, SpreadsheetChildEnv> {
|
|
8809
8893
|
static template: string;
|
|
8810
8894
|
static props: {
|
|
8811
8895
|
gridDims: ObjectConstructor;
|
|
@@ -8863,10 +8947,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
|
|
|
8863
8947
|
isPositionVisible(position: CellPosition): boolean;
|
|
8864
8948
|
}
|
|
8865
8949
|
|
|
8866
|
-
interface Props$
|
|
8950
|
+
interface Props$G {
|
|
8867
8951
|
cellPosition: CellPosition;
|
|
8868
8952
|
}
|
|
8869
|
-
declare class DataValidationCheckbox extends Component<Props$
|
|
8953
|
+
declare class DataValidationCheckbox extends Component<Props$G, SpreadsheetChildEnv> {
|
|
8870
8954
|
static template: string;
|
|
8871
8955
|
static components: {
|
|
8872
8956
|
Checkbox: typeof Checkbox;
|
|
@@ -8879,10 +8963,10 @@ declare class DataValidationCheckbox extends Component<Props$H, SpreadsheetChild
|
|
|
8879
8963
|
get isDisabled(): boolean;
|
|
8880
8964
|
}
|
|
8881
8965
|
|
|
8882
|
-
interface Props$
|
|
8966
|
+
interface Props$F {
|
|
8883
8967
|
cellPosition: CellPosition;
|
|
8884
8968
|
}
|
|
8885
|
-
declare class DataValidationListIcon extends Component<Props$
|
|
8969
|
+
declare class DataValidationListIcon extends Component<Props$F, SpreadsheetChildEnv> {
|
|
8886
8970
|
static template: string;
|
|
8887
8971
|
static props: {
|
|
8888
8972
|
cellPosition: ObjectConstructor;
|
|
@@ -8912,7 +8996,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
8912
8996
|
}
|
|
8913
8997
|
|
|
8914
8998
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
8915
|
-
interface Props$
|
|
8999
|
+
interface Props$E {
|
|
8916
9000
|
onFigureDeleted: () => void;
|
|
8917
9001
|
}
|
|
8918
9002
|
interface Container {
|
|
@@ -8992,7 +9076,7 @@ interface DndState {
|
|
|
8992
9076
|
* that occurred during the drag & drop, and to position the figure on the correct pane.
|
|
8993
9077
|
*
|
|
8994
9078
|
*/
|
|
8995
|
-
declare class FiguresContainer extends Component<Props$
|
|
9079
|
+
declare class FiguresContainer extends Component<Props$E, SpreadsheetChildEnv> {
|
|
8996
9080
|
static template: string;
|
|
8997
9081
|
static props: {
|
|
8998
9082
|
onFigureDeleted: FunctionConstructor;
|
|
@@ -9027,10 +9111,10 @@ declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
9027
9111
|
private getSnapLineStyle;
|
|
9028
9112
|
}
|
|
9029
9113
|
|
|
9030
|
-
interface Props$
|
|
9114
|
+
interface Props$D {
|
|
9031
9115
|
cellPosition: CellPosition;
|
|
9032
9116
|
}
|
|
9033
|
-
declare class FilterIcon extends Component<Props$
|
|
9117
|
+
declare class FilterIcon extends Component<Props$D, SpreadsheetChildEnv> {
|
|
9034
9118
|
static template: string;
|
|
9035
9119
|
static props: {
|
|
9036
9120
|
cellPosition: ObjectConstructor;
|
|
@@ -9052,10 +9136,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
|
9052
9136
|
getFilterHeadersPositions(): CellPosition[];
|
|
9053
9137
|
}
|
|
9054
9138
|
|
|
9055
|
-
interface Props$
|
|
9139
|
+
interface Props$C {
|
|
9056
9140
|
focusGrid: () => void;
|
|
9057
9141
|
}
|
|
9058
|
-
declare class GridAddRowsFooter extends Component<Props$
|
|
9142
|
+
declare class GridAddRowsFooter extends Component<Props$C, SpreadsheetChildEnv> {
|
|
9059
9143
|
static template: string;
|
|
9060
9144
|
static props: {
|
|
9061
9145
|
focusGrid: FunctionConstructor;
|
|
@@ -9079,7 +9163,7 @@ declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv>
|
|
|
9079
9163
|
private onExternalClick;
|
|
9080
9164
|
}
|
|
9081
9165
|
|
|
9082
|
-
interface Props$
|
|
9166
|
+
interface Props$B {
|
|
9083
9167
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
9084
9168
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
9085
9169
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
|
|
@@ -9089,7 +9173,7 @@ interface Props$C {
|
|
|
9089
9173
|
gridOverlayDimensions: string;
|
|
9090
9174
|
onFigureDeleted: () => void;
|
|
9091
9175
|
}
|
|
9092
|
-
declare class GridOverlay extends Component<Props$
|
|
9176
|
+
declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
|
|
9093
9177
|
static template: string;
|
|
9094
9178
|
static props: {
|
|
9095
9179
|
onCellHovered: {
|
|
@@ -9147,12 +9231,12 @@ declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
|
|
|
9147
9231
|
private getCartesianCoordinates;
|
|
9148
9232
|
}
|
|
9149
9233
|
|
|
9150
|
-
interface Props$
|
|
9234
|
+
interface Props$A {
|
|
9151
9235
|
gridRect: Rect;
|
|
9152
9236
|
onClosePopover: () => void;
|
|
9153
9237
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
9154
9238
|
}
|
|
9155
|
-
declare class GridPopover extends Component<Props$
|
|
9239
|
+
declare class GridPopover extends Component<Props$A, SpreadsheetChildEnv> {
|
|
9156
9240
|
static template: string;
|
|
9157
9241
|
static props: {
|
|
9158
9242
|
onClosePopover: FunctionConstructor;
|
|
@@ -9295,13 +9379,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
|
|
|
9295
9379
|
}
|
|
9296
9380
|
|
|
9297
9381
|
type Orientation$1 = "n" | "s" | "w" | "e";
|
|
9298
|
-
interface Props$
|
|
9382
|
+
interface Props$z {
|
|
9299
9383
|
zone: Zone;
|
|
9300
9384
|
orientation: Orientation$1;
|
|
9301
9385
|
isMoving: boolean;
|
|
9302
9386
|
onMoveHighlight: (x: Pixel, y: Pixel) => void;
|
|
9303
9387
|
}
|
|
9304
|
-
declare class Border extends Component<Props$
|
|
9388
|
+
declare class Border extends Component<Props$z, SpreadsheetChildEnv> {
|
|
9305
9389
|
static template: string;
|
|
9306
9390
|
static props: {
|
|
9307
9391
|
zone: ObjectConstructor;
|
|
@@ -9314,14 +9398,14 @@ declare class Border extends Component<Props$A, SpreadsheetChildEnv> {
|
|
|
9314
9398
|
}
|
|
9315
9399
|
|
|
9316
9400
|
type Orientation = "nw" | "ne" | "sw" | "se";
|
|
9317
|
-
interface Props$
|
|
9401
|
+
interface Props$y {
|
|
9318
9402
|
zone: Zone;
|
|
9319
9403
|
color: Color;
|
|
9320
9404
|
orientation: Orientation;
|
|
9321
9405
|
isResizing: boolean;
|
|
9322
9406
|
onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
|
|
9323
9407
|
}
|
|
9324
|
-
declare class Corner extends Component<Props$
|
|
9408
|
+
declare class Corner extends Component<Props$y, SpreadsheetChildEnv> {
|
|
9325
9409
|
static template: string;
|
|
9326
9410
|
static props: {
|
|
9327
9411
|
zone: ObjectConstructor;
|
|
@@ -9336,14 +9420,14 @@ declare class Corner extends Component<Props$z, SpreadsheetChildEnv> {
|
|
|
9336
9420
|
onMouseDown(ev: MouseEvent): void;
|
|
9337
9421
|
}
|
|
9338
9422
|
|
|
9339
|
-
interface Props$
|
|
9423
|
+
interface Props$x {
|
|
9340
9424
|
zone: Zone;
|
|
9341
9425
|
color: Color;
|
|
9342
9426
|
}
|
|
9343
9427
|
interface HighlightState {
|
|
9344
9428
|
shiftingMode: "isMoving" | "isResizing" | "none";
|
|
9345
9429
|
}
|
|
9346
|
-
declare class Highlight extends Component<Props$
|
|
9430
|
+
declare class Highlight extends Component<Props$x, SpreadsheetChildEnv> {
|
|
9347
9431
|
static template: string;
|
|
9348
9432
|
static props: {
|
|
9349
9433
|
zone: ObjectConstructor;
|
|
@@ -9360,7 +9444,7 @@ declare class Highlight extends Component<Props$y, SpreadsheetChildEnv> {
|
|
|
9360
9444
|
|
|
9361
9445
|
type ScrollDirection = "horizontal" | "vertical";
|
|
9362
9446
|
|
|
9363
|
-
interface Props$
|
|
9447
|
+
interface Props$w {
|
|
9364
9448
|
width: Pixel;
|
|
9365
9449
|
height: Pixel;
|
|
9366
9450
|
direction: ScrollDirection;
|
|
@@ -9368,7 +9452,7 @@ interface Props$x {
|
|
|
9368
9452
|
offset: Pixel;
|
|
9369
9453
|
onScroll: (offset: Pixel) => void;
|
|
9370
9454
|
}
|
|
9371
|
-
declare class ScrollBar extends Component<Props$
|
|
9455
|
+
declare class ScrollBar extends Component<Props$w> {
|
|
9372
9456
|
static props: {
|
|
9373
9457
|
width: {
|
|
9374
9458
|
type: NumberConstructor;
|
|
@@ -9396,10 +9480,10 @@ declare class ScrollBar extends Component<Props$x> {
|
|
|
9396
9480
|
onScroll(ev: any): void;
|
|
9397
9481
|
}
|
|
9398
9482
|
|
|
9399
|
-
interface Props$
|
|
9483
|
+
interface Props$v {
|
|
9400
9484
|
leftOffset: number;
|
|
9401
9485
|
}
|
|
9402
|
-
declare class HorizontalScrollBar extends Component<Props$
|
|
9486
|
+
declare class HorizontalScrollBar extends Component<Props$v, SpreadsheetChildEnv> {
|
|
9403
9487
|
static props: {
|
|
9404
9488
|
leftOffset: {
|
|
9405
9489
|
type: NumberConstructor;
|
|
@@ -9425,10 +9509,10 @@ declare class HorizontalScrollBar extends Component<Props$w, SpreadsheetChildEnv
|
|
|
9425
9509
|
onScroll(offset: any): void;
|
|
9426
9510
|
}
|
|
9427
9511
|
|
|
9428
|
-
interface Props$
|
|
9512
|
+
interface Props$u {
|
|
9429
9513
|
topOffset: number;
|
|
9430
9514
|
}
|
|
9431
|
-
declare class VerticalScrollBar extends Component<Props$
|
|
9515
|
+
declare class VerticalScrollBar extends Component<Props$u, SpreadsheetChildEnv> {
|
|
9432
9516
|
static props: {
|
|
9433
9517
|
topOffset: {
|
|
9434
9518
|
type: NumberConstructor;
|
|
@@ -9454,13 +9538,13 @@ declare class VerticalScrollBar extends Component<Props$v, SpreadsheetChildEnv>
|
|
|
9454
9538
|
onScroll(offset: any): void;
|
|
9455
9539
|
}
|
|
9456
9540
|
|
|
9457
|
-
interface Props$
|
|
9541
|
+
interface Props$t {
|
|
9458
9542
|
table: Table;
|
|
9459
9543
|
}
|
|
9460
9544
|
interface State$6 {
|
|
9461
9545
|
highlightZone: Zone | undefined;
|
|
9462
9546
|
}
|
|
9463
|
-
declare class TableResizer extends Component<Props$
|
|
9547
|
+
declare class TableResizer extends Component<Props$t, SpreadsheetChildEnv> {
|
|
9464
9548
|
static template: string;
|
|
9465
9549
|
static props: {
|
|
9466
9550
|
table: ObjectConstructor;
|
|
@@ -9492,10 +9576,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
|
|
|
9492
9576
|
* - a vertical resizer (same, for rows)
|
|
9493
9577
|
*/
|
|
9494
9578
|
type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
|
|
9495
|
-
interface Props$
|
|
9579
|
+
interface Props$s {
|
|
9496
9580
|
exposeFocus: (focus: () => void) => void;
|
|
9497
9581
|
}
|
|
9498
|
-
declare class Grid extends Component<Props$
|
|
9582
|
+
declare class Grid extends Component<Props$s, SpreadsheetChildEnv> {
|
|
9499
9583
|
static template: string;
|
|
9500
9584
|
static props: {
|
|
9501
9585
|
exposeFocus: FunctionConstructor;
|
|
@@ -9579,7 +9663,7 @@ interface DndPartialArgs {
|
|
|
9579
9663
|
draggedItemId: UID;
|
|
9580
9664
|
initialMousePosition: Pixel;
|
|
9581
9665
|
items: DragAndDropItemsPartial[];
|
|
9582
|
-
|
|
9666
|
+
scrollableContainerEl: HTMLElement;
|
|
9583
9667
|
onChange?: () => void;
|
|
9584
9668
|
onCancel?: () => void;
|
|
9585
9669
|
onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
|
|
@@ -9604,7 +9688,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
|
|
|
9604
9688
|
private getChartDefinitionFromContextCreation;
|
|
9605
9689
|
}
|
|
9606
9690
|
|
|
9607
|
-
interface Props$
|
|
9691
|
+
interface Props$r {
|
|
9608
9692
|
figureId: UID;
|
|
9609
9693
|
chartPanelStore: MainChartPanelStore;
|
|
9610
9694
|
}
|
|
@@ -9612,7 +9696,7 @@ interface ChartTypePickerState {
|
|
|
9612
9696
|
popoverProps: PopoverProps | undefined;
|
|
9613
9697
|
popoverStyle: string;
|
|
9614
9698
|
}
|
|
9615
|
-
declare class ChartTypePicker extends Component<Props$
|
|
9699
|
+
declare class ChartTypePicker extends Component<Props$r, SpreadsheetChildEnv> {
|
|
9616
9700
|
static template: string;
|
|
9617
9701
|
static components: {
|
|
9618
9702
|
Section: typeof Section;
|
|
@@ -9647,11 +9731,11 @@ declare class ChartTypePicker extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
9647
9731
|
private closePopover;
|
|
9648
9732
|
}
|
|
9649
9733
|
|
|
9650
|
-
interface Props$
|
|
9734
|
+
interface Props$q {
|
|
9651
9735
|
onCloseSidePanel: () => void;
|
|
9652
9736
|
figureId: UID;
|
|
9653
9737
|
}
|
|
9654
|
-
declare class ChartPanel extends Component<Props$
|
|
9738
|
+
declare class ChartPanel extends Component<Props$q, SpreadsheetChildEnv> {
|
|
9655
9739
|
static template: string;
|
|
9656
9740
|
static components: {
|
|
9657
9741
|
Section: typeof Section;
|
|
@@ -9671,13 +9755,13 @@ declare class ChartPanel extends Component<Props$r, SpreadsheetChildEnv> {
|
|
|
9671
9755
|
private getChartDefinition;
|
|
9672
9756
|
}
|
|
9673
9757
|
|
|
9674
|
-
interface Props$
|
|
9758
|
+
interface Props$p {
|
|
9675
9759
|
figureId: UID;
|
|
9676
9760
|
definition: PieChartDefinition;
|
|
9677
9761
|
canUpdateChart: (figureID: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
|
|
9678
9762
|
updateChart: (figureId: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
|
|
9679
9763
|
}
|
|
9680
|
-
declare class PieChartDesignPanel extends Component<Props$
|
|
9764
|
+
declare class PieChartDesignPanel extends Component<Props$p, SpreadsheetChildEnv> {
|
|
9681
9765
|
static template: string;
|
|
9682
9766
|
static components: {
|
|
9683
9767
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -9696,10 +9780,10 @@ declare class PieChartDesignPanel extends Component<Props$q, SpreadsheetChildEnv
|
|
|
9696
9780
|
};
|
|
9697
9781
|
}
|
|
9698
9782
|
|
|
9699
|
-
interface Props$
|
|
9783
|
+
interface Props$o {
|
|
9700
9784
|
items: ActionSpec[];
|
|
9701
9785
|
}
|
|
9702
|
-
declare class CogWheelMenu extends Component<Props$
|
|
9786
|
+
declare class CogWheelMenu extends Component<Props$o, SpreadsheetChildEnv> {
|
|
9703
9787
|
static template: string;
|
|
9704
9788
|
static components: {
|
|
9705
9789
|
Menu: typeof Menu;
|
|
@@ -9782,14 +9866,14 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
|
|
|
9782
9866
|
get highlights(): Highlight$1[];
|
|
9783
9867
|
}
|
|
9784
9868
|
|
|
9785
|
-
interface Props$
|
|
9869
|
+
interface Props$n {
|
|
9786
9870
|
deferUpdate: boolean;
|
|
9787
9871
|
isDirty: boolean;
|
|
9788
9872
|
toggleDeferUpdate: (value: boolean) => void;
|
|
9789
9873
|
discard: () => void;
|
|
9790
9874
|
apply: () => void;
|
|
9791
9875
|
}
|
|
9792
|
-
declare class PivotDeferUpdate extends Component<Props$
|
|
9876
|
+
declare class PivotDeferUpdate extends Component<Props$n, SpreadsheetChildEnv> {
|
|
9793
9877
|
static template: string;
|
|
9794
9878
|
static props: {
|
|
9795
9879
|
deferUpdate: BooleanConstructor;
|
|
@@ -9806,11 +9890,11 @@ declare class PivotDeferUpdate extends Component<Props$o, SpreadsheetChildEnv> {
|
|
|
9806
9890
|
get deferUpdatesTooltip(): string;
|
|
9807
9891
|
}
|
|
9808
9892
|
|
|
9809
|
-
interface Props$
|
|
9893
|
+
interface Props$m {
|
|
9810
9894
|
onFieldPicked: (field: string) => void;
|
|
9811
9895
|
fields: PivotField[];
|
|
9812
9896
|
}
|
|
9813
|
-
declare class AddDimensionButton extends Component<Props$
|
|
9897
|
+
declare class AddDimensionButton extends Component<Props$m, SpreadsheetChildEnv> {
|
|
9814
9898
|
static template: string;
|
|
9815
9899
|
static components: {
|
|
9816
9900
|
Popover: typeof Popover;
|
|
@@ -9846,14 +9930,14 @@ declare class AddDimensionButton extends Component<Props$n, SpreadsheetChildEnv>
|
|
|
9846
9930
|
onKeyDown(ev: KeyboardEvent): void;
|
|
9847
9931
|
}
|
|
9848
9932
|
|
|
9849
|
-
interface Props$
|
|
9933
|
+
interface Props$l {
|
|
9850
9934
|
value: string;
|
|
9851
9935
|
onChange: (value: string) => void;
|
|
9852
9936
|
class?: string;
|
|
9853
9937
|
id?: string;
|
|
9854
9938
|
placeholder?: string;
|
|
9855
9939
|
}
|
|
9856
|
-
declare class TextInput extends Component<Props$
|
|
9940
|
+
declare class TextInput extends Component<Props$l, SpreadsheetChildEnv> {
|
|
9857
9941
|
static template: string;
|
|
9858
9942
|
static props: {
|
|
9859
9943
|
value: StringConstructor;
|
|
@@ -9879,13 +9963,13 @@ declare class TextInput extends Component<Props$m, SpreadsheetChildEnv> {
|
|
|
9879
9963
|
onMouseUp(ev: MouseEvent): void;
|
|
9880
9964
|
}
|
|
9881
9965
|
|
|
9882
|
-
interface Props$
|
|
9966
|
+
interface Props$k {
|
|
9883
9967
|
dimension: PivotCoreDimension | PivotCoreMeasure;
|
|
9884
9968
|
onRemoved: (dimension: PivotCoreDimension | PivotCoreMeasure) => void;
|
|
9885
9969
|
onNameUpdated?: (dimension: PivotCoreDimension | PivotCoreMeasure, name?: string) => void;
|
|
9886
9970
|
type: "row" | "col" | "measure";
|
|
9887
9971
|
}
|
|
9888
|
-
declare class PivotDimension extends Component<Props$
|
|
9972
|
+
declare class PivotDimension extends Component<Props$k, SpreadsheetChildEnv> {
|
|
9889
9973
|
static template: string;
|
|
9890
9974
|
static props: {
|
|
9891
9975
|
dimension: ObjectConstructor;
|
|
@@ -9909,13 +9993,13 @@ declare class PivotDimension extends Component<Props$l, SpreadsheetChildEnv> {
|
|
|
9909
9993
|
updateName(name: string): void;
|
|
9910
9994
|
}
|
|
9911
9995
|
|
|
9912
|
-
interface Props$
|
|
9996
|
+
interface Props$j {
|
|
9913
9997
|
dimension: PivotDimension$1;
|
|
9914
9998
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
9915
9999
|
availableGranularities: Set<string>;
|
|
9916
10000
|
allGranularities: string[];
|
|
9917
10001
|
}
|
|
9918
|
-
declare class PivotDimensionGranularity extends Component<Props$
|
|
10002
|
+
declare class PivotDimensionGranularity extends Component<Props$j, SpreadsheetChildEnv> {
|
|
9919
10003
|
static template: string;
|
|
9920
10004
|
static props: {
|
|
9921
10005
|
dimension: ObjectConstructor;
|
|
@@ -9940,11 +10024,11 @@ declare class PivotDimensionGranularity extends Component<Props$k, SpreadsheetCh
|
|
|
9940
10024
|
};
|
|
9941
10025
|
}
|
|
9942
10026
|
|
|
9943
|
-
interface Props$
|
|
10027
|
+
interface Props$i {
|
|
9944
10028
|
dimension: PivotDimension$1;
|
|
9945
10029
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
9946
10030
|
}
|
|
9947
|
-
declare class PivotDimensionOrder extends Component<Props$
|
|
10031
|
+
declare class PivotDimensionOrder extends Component<Props$i, SpreadsheetChildEnv> {
|
|
9948
10032
|
static template: string;
|
|
9949
10033
|
static props: {
|
|
9950
10034
|
dimension: ObjectConstructor;
|
|
@@ -9979,72 +10063,6 @@ declare function createPivotFormula(formulaId: string, cell: PivotTableCell): st
|
|
|
9979
10063
|
*/
|
|
9980
10064
|
declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type" | "displayName" | "granularity">, groupValue: any): CellValue;
|
|
9981
10065
|
|
|
9982
|
-
interface Props$i {
|
|
9983
|
-
onConfirm: (content: string) => void;
|
|
9984
|
-
composerContent: string;
|
|
9985
|
-
defaultRangeSheetId: UID;
|
|
9986
|
-
defaultStatic?: boolean;
|
|
9987
|
-
contextualAutocomplete?: AutoCompleteProviderDefinition;
|
|
9988
|
-
placeholder?: string;
|
|
9989
|
-
class?: string;
|
|
9990
|
-
invalid?: boolean;
|
|
9991
|
-
getContextualColoredSymbolToken?: (token: Token) => Color;
|
|
9992
|
-
}
|
|
9993
|
-
declare class StandaloneComposer extends Component<Props$i, SpreadsheetChildEnv> {
|
|
9994
|
-
static template: string;
|
|
9995
|
-
static props: {
|
|
9996
|
-
composerContent: {
|
|
9997
|
-
type: StringConstructor;
|
|
9998
|
-
optional: boolean;
|
|
9999
|
-
};
|
|
10000
|
-
defaultRangeSheetId: {
|
|
10001
|
-
type: StringConstructor;
|
|
10002
|
-
optional: boolean;
|
|
10003
|
-
};
|
|
10004
|
-
defaultStatic: {
|
|
10005
|
-
type: BooleanConstructor;
|
|
10006
|
-
optional: boolean;
|
|
10007
|
-
};
|
|
10008
|
-
onConfirm: FunctionConstructor;
|
|
10009
|
-
contextualAutocomplete: {
|
|
10010
|
-
type: ObjectConstructor;
|
|
10011
|
-
optional: boolean;
|
|
10012
|
-
};
|
|
10013
|
-
placeholder: {
|
|
10014
|
-
type: StringConstructor;
|
|
10015
|
-
optional: boolean;
|
|
10016
|
-
};
|
|
10017
|
-
class: {
|
|
10018
|
-
type: StringConstructor;
|
|
10019
|
-
optional: boolean;
|
|
10020
|
-
};
|
|
10021
|
-
invalid: {
|
|
10022
|
-
type: BooleanConstructor;
|
|
10023
|
-
optional: boolean;
|
|
10024
|
-
};
|
|
10025
|
-
getContextualColoredSymbolToken: {
|
|
10026
|
-
type: FunctionConstructor;
|
|
10027
|
-
optional: boolean;
|
|
10028
|
-
};
|
|
10029
|
-
};
|
|
10030
|
-
static components: {
|
|
10031
|
-
Composer: typeof Composer;
|
|
10032
|
-
};
|
|
10033
|
-
static defaultProps: {
|
|
10034
|
-
composerContent: string;
|
|
10035
|
-
defaultStatic: boolean;
|
|
10036
|
-
};
|
|
10037
|
-
private composerFocusStore;
|
|
10038
|
-
private standaloneComposerStore;
|
|
10039
|
-
private composerInterface;
|
|
10040
|
-
readonly spreadsheetRect: Rect;
|
|
10041
|
-
setup(): void;
|
|
10042
|
-
get focus(): ComposerFocusType;
|
|
10043
|
-
get composerStyle(): string;
|
|
10044
|
-
get containerClass(): string;
|
|
10045
|
-
onFocus(selection: ComposerSelection): void;
|
|
10046
|
-
}
|
|
10047
|
-
|
|
10048
10066
|
interface Props$h {
|
|
10049
10067
|
pivotId: string;
|
|
10050
10068
|
definition: PivotRuntimeDefinition;
|
|
@@ -10106,6 +10124,7 @@ interface Props$f {
|
|
|
10106
10124
|
unusedGranularities: Record<string, Set<string>>;
|
|
10107
10125
|
dateGranularities: string[];
|
|
10108
10126
|
datetimeGranularities: string[];
|
|
10127
|
+
getScrollableContainerEl?: () => HTMLElement;
|
|
10109
10128
|
pivotId: UID;
|
|
10110
10129
|
}
|
|
10111
10130
|
declare class PivotLayoutConfigurator extends Component<Props$f, SpreadsheetChildEnv> {
|
|
@@ -10126,6 +10145,10 @@ declare class PivotLayoutConfigurator extends Component<Props$f, SpreadsheetChil
|
|
|
10126
10145
|
unusedGranularities: ObjectConstructor;
|
|
10127
10146
|
dateGranularities: ArrayConstructor;
|
|
10128
10147
|
datetimeGranularities: ArrayConstructor;
|
|
10148
|
+
getScrollableContainerEl: {
|
|
10149
|
+
type: FunctionConstructor;
|
|
10150
|
+
optional: boolean;
|
|
10151
|
+
};
|
|
10129
10152
|
pivotId: StringConstructor;
|
|
10130
10153
|
};
|
|
10131
10154
|
private dimensionsRef;
|
|
@@ -10832,14 +10855,15 @@ declare class BottomBar extends Component<Props$8, SpreadsheetChildEnv> {
|
|
|
10832
10855
|
interface ClickableCell {
|
|
10833
10856
|
coordinates: Rect;
|
|
10834
10857
|
position: CellPosition;
|
|
10858
|
+
title: string;
|
|
10835
10859
|
action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
|
|
10836
10860
|
}
|
|
10837
10861
|
declare class ClickableCellsStore extends SpreadsheetStore {
|
|
10838
10862
|
private _clickableCells;
|
|
10839
10863
|
private _registryItems;
|
|
10840
10864
|
handle(cmd: Command): void;
|
|
10841
|
-
private
|
|
10842
|
-
private
|
|
10865
|
+
private getClickableItem;
|
|
10866
|
+
private findClickableItem;
|
|
10843
10867
|
get clickableCells(): ClickableCell[];
|
|
10844
10868
|
}
|
|
10845
10869
|
|