@odoo/o-spreadsheet 18.2.0-alpha.6 → 18.2.0-alpha.8
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 +2028 -1874
- package/dist/o-spreadsheet.d.ts +407 -367
- package/dist/o-spreadsheet.esm.js +2028 -1874
- package/dist/o-spreadsheet.iife.js +2037 -1883
- package/dist/o-spreadsheet.iife.min.js +404 -452
- package/dist/o_spreadsheet.xml +29 -29
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1247,6 +1247,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
1247
1247
|
private onClientJoined;
|
|
1248
1248
|
private onClientLeft;
|
|
1249
1249
|
private sendUpdateMessage;
|
|
1250
|
+
private dropPendingRevision;
|
|
1250
1251
|
/**
|
|
1251
1252
|
* Send the next pending message
|
|
1252
1253
|
*/
|
|
@@ -1451,6 +1452,20 @@ declare function splitReference(ref: string): {
|
|
|
1451
1452
|
declare function computeTextWidth(context: CanvasRenderingContext2D, text: string, style: Style, fontUnit?: "px" | "pt"): number;
|
|
1452
1453
|
|
|
1453
1454
|
declare class UuidGenerator {
|
|
1455
|
+
/**
|
|
1456
|
+
* Generates a custom UUID using a simple 36^12 method (8-character alphanumeric string with lowercase letters)
|
|
1457
|
+
* This has a higher chance of collision than a UUIDv4, but not only faster to generate than an UUIDV4,
|
|
1458
|
+
* it also has a smaller size, which is preferable to alleviate the overall data size.
|
|
1459
|
+
*
|
|
1460
|
+
* This method is preferable when generating uuids for the core data (sheetId, figureId, etc)
|
|
1461
|
+
* as they will appear several times in the revisions and local history.
|
|
1462
|
+
*
|
|
1463
|
+
*/
|
|
1464
|
+
smallUuid(): string;
|
|
1465
|
+
/**
|
|
1466
|
+
* Generates an UUIDV4, has astronomically low chance of collision, but is larger in size than the smallUuid.
|
|
1467
|
+
* This method should be used when you need to avoid collisions at all costs, like the id of a revision.
|
|
1468
|
+
*/
|
|
1454
1469
|
uuidv4(): string;
|
|
1455
1470
|
}
|
|
1456
1471
|
|
|
@@ -2054,6 +2069,7 @@ declare class GridSelectionPlugin extends UIPlugin {
|
|
|
2054
2069
|
private onAddElements;
|
|
2055
2070
|
private onMoveElements;
|
|
2056
2071
|
private isMoveElementAllowed;
|
|
2072
|
+
private fallbackToVisibleSheet;
|
|
2057
2073
|
/**
|
|
2058
2074
|
* Clip the selection if it spans outside the sheet
|
|
2059
2075
|
*/
|
|
@@ -3052,10 +3068,8 @@ declare const enum CommandResult {
|
|
|
3052
3068
|
GaugeRangeMinNaN = "GaugeRangeMinNaN",
|
|
3053
3069
|
EmptyGaugeRangeMax = "EmptyGaugeRangeMax",
|
|
3054
3070
|
GaugeRangeMaxNaN = "GaugeRangeMaxNaN",
|
|
3055
|
-
GaugeRangeMinBiggerThanRangeMax = "GaugeRangeMinBiggerThanRangeMax",
|
|
3056
3071
|
GaugeLowerInflectionPointNaN = "GaugeLowerInflectionPointNaN",
|
|
3057
3072
|
GaugeUpperInflectionPointNaN = "GaugeUpperInflectionPointNaN",
|
|
3058
|
-
GaugeLowerBiggerThanUpper = "GaugeLowerBiggerThanUpper",
|
|
3059
3073
|
InvalidAutofillSelection = "InvalidAutofillSelection",
|
|
3060
3074
|
MinBiggerThanMax = "MinBiggerThanMax",
|
|
3061
3075
|
LowerBiggerThanUpper = "LowerBiggerThanUpper",
|
|
@@ -3986,7 +4000,7 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
3986
4000
|
private getters;
|
|
3987
4001
|
private providers;
|
|
3988
4002
|
constructor(getters: CoreGetters);
|
|
3989
|
-
static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
4003
|
+
static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
3990
4004
|
allowDispatch(cmd: Command): CommandResult;
|
|
3991
4005
|
beforeHandle(command: Command): void;
|
|
3992
4006
|
handle(cmd: Command): void;
|
|
@@ -4043,6 +4057,15 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
4043
4057
|
getRangeFromRangeData(data: RangeData): Range;
|
|
4044
4058
|
isRangeValid(rangeStr: string): boolean;
|
|
4045
4059
|
getRangesUnion(ranges: Range[]): Range;
|
|
4060
|
+
adaptFormulaStringDependencies(sheetId: UID, formula: string, applyChange: ApplyRangeChange): string;
|
|
4061
|
+
/**
|
|
4062
|
+
* Copy a formula string to another sheet.
|
|
4063
|
+
*
|
|
4064
|
+
* @param mode
|
|
4065
|
+
* `keepSameReference` will make the formula reference the exact same ranges,
|
|
4066
|
+
* `moveReference` will change all the references to `sheetIdFrom` into references to `sheetIdTo`.
|
|
4067
|
+
*/
|
|
4068
|
+
copyFormulaStringForSheet(sheetIdFrom: UID, sheetIdTo: UID, formula: string, mode: "keepSameReference" | "moveReference"): string;
|
|
4046
4069
|
/**
|
|
4047
4070
|
* Get a Xc string that represent a part of a range
|
|
4048
4071
|
*/
|
|
@@ -6651,6 +6674,7 @@ declare class OTRegistry extends Registry<Map<CoreCommandTypes, TransformationFu
|
|
|
6651
6674
|
interface CellClickableItem {
|
|
6652
6675
|
condition: (position: CellPosition, getters: Getters) => boolean;
|
|
6653
6676
|
execute: (position: CellPosition, env: SpreadsheetChildEnv) => void;
|
|
6677
|
+
title?: string;
|
|
6654
6678
|
sequence: number;
|
|
6655
6679
|
}
|
|
6656
6680
|
|
|
@@ -7826,222 +7850,6 @@ declare class GaugeChartConfigPanel extends Component<Props$U, SpreadsheetChildE
|
|
|
7826
7850
|
getDataRange(): CustomizedDataSet;
|
|
7827
7851
|
}
|
|
7828
7852
|
|
|
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
7853
|
interface FunctionContext {
|
|
8046
7854
|
/**
|
|
8047
7855
|
* The parent function name of the token.
|
|
@@ -8085,13 +7893,13 @@ interface EnrichedToken extends Token {
|
|
|
8085
7893
|
isParenthesisLinkedToCursor?: boolean;
|
|
8086
7894
|
}
|
|
8087
7895
|
|
|
8088
|
-
interface Props$
|
|
7896
|
+
interface Props$T {
|
|
8089
7897
|
proposals: AutoCompleteProposal[];
|
|
8090
7898
|
selectedIndex: number | undefined;
|
|
8091
7899
|
onValueSelected: (value: string) => void;
|
|
8092
7900
|
onValueHovered: (index: string) => void;
|
|
8093
7901
|
}
|
|
8094
|
-
declare class TextValueProvider extends Component<Props$
|
|
7902
|
+
declare class TextValueProvider extends Component<Props$T> {
|
|
8095
7903
|
static template: string;
|
|
8096
7904
|
static props: {
|
|
8097
7905
|
proposals: ArrayConstructor;
|
|
@@ -8158,19 +7966,19 @@ declare class ContentEditableHelper {
|
|
|
8158
7966
|
getText(): string;
|
|
8159
7967
|
}
|
|
8160
7968
|
|
|
8161
|
-
interface Props$
|
|
7969
|
+
interface Props$S {
|
|
8162
7970
|
functionName: string;
|
|
8163
7971
|
functionDescription: FunctionDescription;
|
|
8164
7972
|
argToFocus: number;
|
|
8165
7973
|
}
|
|
8166
|
-
declare class FunctionDescriptionProvider extends Component<Props$
|
|
7974
|
+
declare class FunctionDescriptionProvider extends Component<Props$S, SpreadsheetChildEnv> {
|
|
8167
7975
|
static template: string;
|
|
8168
7976
|
static props: {
|
|
8169
7977
|
functionName: StringConstructor;
|
|
8170
7978
|
functionDescription: ObjectConstructor;
|
|
8171
7979
|
argToFocus: NumberConstructor;
|
|
8172
7980
|
};
|
|
8173
|
-
getContext(): Props$
|
|
7981
|
+
getContext(): Props$S;
|
|
8174
7982
|
get formulaArgSeparator(): string;
|
|
8175
7983
|
}
|
|
8176
7984
|
|
|
@@ -8522,16 +8330,308 @@ interface AutoCompleteProviderDefinition {
|
|
|
8522
8330
|
}, tokenAtCursor: EnrichedToken, text: string): void;
|
|
8523
8331
|
}
|
|
8524
8332
|
|
|
8525
|
-
|
|
8333
|
+
/**
|
|
8334
|
+
* An AutofillRule is used to generate what to do when we need to autofill
|
|
8335
|
+
* a cell. (In a AutofillGenerator, see plugins/autofill.ts)
|
|
8336
|
+
*
|
|
8337
|
+
* When we generate the rules to autofill, we take the first matching rule
|
|
8338
|
+
* (ordered by sequence), and we generate the AutofillModifier with generateRule
|
|
8339
|
+
*/
|
|
8340
|
+
interface AutofillRule {
|
|
8341
|
+
condition: (cell: Cell, cells: (Cell | undefined)[]) => boolean;
|
|
8342
|
+
generateRule: (cell: Cell, cells: (Cell | undefined)[]) => AutofillModifier;
|
|
8343
|
+
sequence: number;
|
|
8344
|
+
}
|
|
8526
8345
|
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8346
|
+
/**
|
|
8347
|
+
* This registry is intended to map a type of figure (tag) to a class of
|
|
8348
|
+
* component, that will be used in the UI to represent the figure.
|
|
8349
|
+
*
|
|
8350
|
+
* The most important type of figure will be the Chart
|
|
8351
|
+
*/
|
|
8352
|
+
interface FigureContent {
|
|
8353
|
+
Component: any;
|
|
8354
|
+
menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
|
|
8355
|
+
SidePanelComponent?: string;
|
|
8356
|
+
keepRatio?: boolean;
|
|
8357
|
+
minFigSize?: number;
|
|
8358
|
+
borderWidth?: number;
|
|
8533
8359
|
}
|
|
8534
|
-
|
|
8360
|
+
|
|
8361
|
+
/**
|
|
8362
|
+
* The class Registry is extended in order to add the function addChild
|
|
8363
|
+
*
|
|
8364
|
+
*/
|
|
8365
|
+
declare class MenuItemRegistry extends Registry<ActionSpec> {
|
|
8366
|
+
/**
|
|
8367
|
+
* @override
|
|
8368
|
+
*/
|
|
8369
|
+
add(key: string, value: ActionSpec): MenuItemRegistry;
|
|
8370
|
+
/**
|
|
8371
|
+
* Add a subitem to an existing item
|
|
8372
|
+
* @param path Path of items to add this subitem
|
|
8373
|
+
* @param value Subitem to add
|
|
8374
|
+
*/
|
|
8375
|
+
addChild(key: string, path: string[], value: ActionSpec | ActionBuilder, options?: {
|
|
8376
|
+
force: boolean;
|
|
8377
|
+
}): MenuItemRegistry;
|
|
8378
|
+
getMenuItems(): Action[];
|
|
8379
|
+
}
|
|
8380
|
+
|
|
8381
|
+
interface Props$R {
|
|
8382
|
+
onConfirm: (content: string) => void;
|
|
8383
|
+
composerContent: string;
|
|
8384
|
+
defaultRangeSheetId: UID;
|
|
8385
|
+
defaultStatic?: boolean;
|
|
8386
|
+
contextualAutocomplete?: AutoCompleteProviderDefinition;
|
|
8387
|
+
placeholder?: string;
|
|
8388
|
+
title?: string;
|
|
8389
|
+
class?: string;
|
|
8390
|
+
invalid?: boolean;
|
|
8391
|
+
getContextualColoredSymbolToken?: (token: Token) => Color;
|
|
8392
|
+
}
|
|
8393
|
+
declare class StandaloneComposer extends Component<Props$R, SpreadsheetChildEnv> {
|
|
8394
|
+
static template: string;
|
|
8395
|
+
static props: {
|
|
8396
|
+
composerContent: {
|
|
8397
|
+
type: StringConstructor;
|
|
8398
|
+
optional: boolean;
|
|
8399
|
+
};
|
|
8400
|
+
defaultRangeSheetId: {
|
|
8401
|
+
type: StringConstructor;
|
|
8402
|
+
optional: boolean;
|
|
8403
|
+
};
|
|
8404
|
+
defaultStatic: {
|
|
8405
|
+
type: BooleanConstructor;
|
|
8406
|
+
optional: boolean;
|
|
8407
|
+
};
|
|
8408
|
+
onConfirm: FunctionConstructor;
|
|
8409
|
+
contextualAutocomplete: {
|
|
8410
|
+
type: ObjectConstructor;
|
|
8411
|
+
optional: boolean;
|
|
8412
|
+
};
|
|
8413
|
+
placeholder: {
|
|
8414
|
+
type: StringConstructor;
|
|
8415
|
+
optional: boolean;
|
|
8416
|
+
};
|
|
8417
|
+
title: {
|
|
8418
|
+
type: StringConstructor;
|
|
8419
|
+
optional: boolean;
|
|
8420
|
+
};
|
|
8421
|
+
class: {
|
|
8422
|
+
type: StringConstructor;
|
|
8423
|
+
optional: boolean;
|
|
8424
|
+
};
|
|
8425
|
+
invalid: {
|
|
8426
|
+
type: BooleanConstructor;
|
|
8427
|
+
optional: boolean;
|
|
8428
|
+
};
|
|
8429
|
+
getContextualColoredSymbolToken: {
|
|
8430
|
+
type: FunctionConstructor;
|
|
8431
|
+
optional: boolean;
|
|
8432
|
+
};
|
|
8433
|
+
};
|
|
8434
|
+
static components: {
|
|
8435
|
+
Composer: typeof Composer;
|
|
8436
|
+
};
|
|
8437
|
+
static defaultProps: {
|
|
8438
|
+
composerContent: string;
|
|
8439
|
+
defaultStatic: boolean;
|
|
8440
|
+
};
|
|
8441
|
+
private composerFocusStore;
|
|
8442
|
+
private standaloneComposerStore;
|
|
8443
|
+
private composerInterface;
|
|
8444
|
+
readonly spreadsheetRect: Rect;
|
|
8445
|
+
setup(): void;
|
|
8446
|
+
get focus(): ComposerFocusType;
|
|
8447
|
+
get composerStyle(): string;
|
|
8448
|
+
get containerClass(): string;
|
|
8449
|
+
onFocus(selection: ComposerSelection): void;
|
|
8450
|
+
}
|
|
8451
|
+
|
|
8452
|
+
interface PanelState {
|
|
8453
|
+
sectionRuleCancelledReasons?: CommandResult[];
|
|
8454
|
+
sectionRule: SectionRule;
|
|
8455
|
+
}
|
|
8456
|
+
interface Props$Q {
|
|
8457
|
+
figureId: UID;
|
|
8458
|
+
definition: GaugeChartDefinition;
|
|
8459
|
+
canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
8460
|
+
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
8461
|
+
}
|
|
8462
|
+
declare class GaugeChartDesignPanel extends Component<Props$Q, SpreadsheetChildEnv> {
|
|
8463
|
+
static template: string;
|
|
8464
|
+
static components: {
|
|
8465
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
8466
|
+
Section: typeof Section;
|
|
8467
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
8468
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
8469
|
+
ChartErrorSection: typeof ChartErrorSection;
|
|
8470
|
+
StandaloneComposer: typeof StandaloneComposer;
|
|
8471
|
+
};
|
|
8472
|
+
static props: {
|
|
8473
|
+
figureId: StringConstructor;
|
|
8474
|
+
definition: ObjectConstructor;
|
|
8475
|
+
updateChart: FunctionConstructor;
|
|
8476
|
+
canUpdateChart: {
|
|
8477
|
+
type: FunctionConstructor;
|
|
8478
|
+
optional: boolean;
|
|
8479
|
+
};
|
|
8480
|
+
};
|
|
8481
|
+
protected state: PanelState;
|
|
8482
|
+
setup(): void;
|
|
8483
|
+
get designErrorMessages(): string[];
|
|
8484
|
+
get isRangeMinInvalid(): boolean;
|
|
8485
|
+
get isRangeMaxInvalid(): boolean;
|
|
8486
|
+
get isLowerInflectionPointInvalid(): boolean;
|
|
8487
|
+
get isUpperInflectionPointInvalid(): boolean;
|
|
8488
|
+
updateSectionColor(target: string, color: Color): void;
|
|
8489
|
+
updateSectionRule(sectionRule: SectionRule): void;
|
|
8490
|
+
onConfirmGaugeRange(editedRange: "rangeMin" | "rangeMax", content: string): void;
|
|
8491
|
+
getGaugeInflectionComposerProps(sectionType: "lowerColor" | "middleColor"): StandaloneComposer["props"];
|
|
8492
|
+
private checkSectionRuleFormulasAreValid;
|
|
8493
|
+
private valueIsValidNumber;
|
|
8494
|
+
get sheetId(): UID;
|
|
8495
|
+
}
|
|
8496
|
+
|
|
8497
|
+
declare class LineConfigPanel extends GenericChartConfigPanel {
|
|
8498
|
+
static template: string;
|
|
8499
|
+
get canTreatLabelsAsText(): boolean;
|
|
8500
|
+
get stackedLabel(): string;
|
|
8501
|
+
getLabelRangeOptions(): {
|
|
8502
|
+
name: string;
|
|
8503
|
+
label: any;
|
|
8504
|
+
value: boolean;
|
|
8505
|
+
onChange: (aggregated: boolean) => void;
|
|
8506
|
+
}[];
|
|
8507
|
+
onUpdateLabelsAsText(labelsAsText: boolean): void;
|
|
8508
|
+
onUpdateStacked(stacked: boolean): void;
|
|
8509
|
+
onUpdateCumulative(cumulative: boolean): void;
|
|
8510
|
+
}
|
|
8511
|
+
|
|
8512
|
+
interface Props$P {
|
|
8513
|
+
figureId: UID;
|
|
8514
|
+
definition: ScorecardChartDefinition;
|
|
8515
|
+
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8516
|
+
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8517
|
+
}
|
|
8518
|
+
declare class ScorecardChartConfigPanel extends Component<Props$P, SpreadsheetChildEnv> {
|
|
8519
|
+
static template: string;
|
|
8520
|
+
static components: {
|
|
8521
|
+
SelectionInput: typeof SelectionInput;
|
|
8522
|
+
ChartErrorSection: typeof ChartErrorSection;
|
|
8523
|
+
Section: typeof Section;
|
|
8524
|
+
};
|
|
8525
|
+
static props: {
|
|
8526
|
+
figureId: StringConstructor;
|
|
8527
|
+
definition: ObjectConstructor;
|
|
8528
|
+
updateChart: FunctionConstructor;
|
|
8529
|
+
canUpdateChart: FunctionConstructor;
|
|
8530
|
+
};
|
|
8531
|
+
private state;
|
|
8532
|
+
private keyValue;
|
|
8533
|
+
private baseline;
|
|
8534
|
+
get errorMessages(): string[];
|
|
8535
|
+
get isKeyValueInvalid(): boolean;
|
|
8536
|
+
get isBaselineInvalid(): boolean;
|
|
8537
|
+
onKeyValueRangeChanged(ranges: string[]): void;
|
|
8538
|
+
updateKeyValueRange(): void;
|
|
8539
|
+
getKeyValueRange(): string;
|
|
8540
|
+
onBaselineRangeChanged(ranges: string[]): void;
|
|
8541
|
+
updateBaselineRange(): void;
|
|
8542
|
+
getBaselineRange(): string;
|
|
8543
|
+
updateBaselineMode(ev: any): void;
|
|
8544
|
+
}
|
|
8545
|
+
|
|
8546
|
+
type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
|
|
8547
|
+
interface Props$O {
|
|
8548
|
+
figureId: UID;
|
|
8549
|
+
definition: ScorecardChartDefinition;
|
|
8550
|
+
canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8551
|
+
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
8552
|
+
}
|
|
8553
|
+
declare class ScorecardChartDesignPanel extends Component<Props$O, SpreadsheetChildEnv> {
|
|
8554
|
+
static template: string;
|
|
8555
|
+
static components: {
|
|
8556
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
8557
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
8558
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
8559
|
+
Section: typeof Section;
|
|
8560
|
+
Checkbox: typeof Checkbox;
|
|
8561
|
+
};
|
|
8562
|
+
static props: {
|
|
8563
|
+
figureId: StringConstructor;
|
|
8564
|
+
definition: ObjectConstructor;
|
|
8565
|
+
updateChart: FunctionConstructor;
|
|
8566
|
+
canUpdateChart: {
|
|
8567
|
+
type: FunctionConstructor;
|
|
8568
|
+
optional: boolean;
|
|
8569
|
+
};
|
|
8570
|
+
};
|
|
8571
|
+
get colorsSectionTitle(): string;
|
|
8572
|
+
get humanizeNumbersLabel(): string;
|
|
8573
|
+
get defaultScorecardTitleFontSize(): number;
|
|
8574
|
+
updateHumanizeNumbers(humanize: boolean): void;
|
|
8575
|
+
translate(term: any): string;
|
|
8576
|
+
updateBaselineDescr(ev: any): void;
|
|
8577
|
+
setColor(color: Color, colorPickerId: ColorPickerId): void;
|
|
8578
|
+
}
|
|
8579
|
+
|
|
8580
|
+
interface ChartSidePanel {
|
|
8581
|
+
configuration: new (...args: any) => Component;
|
|
8582
|
+
design: new (...args: any) => Component;
|
|
8583
|
+
}
|
|
8584
|
+
|
|
8585
|
+
interface SidePanelProps {
|
|
8586
|
+
onCloseSidePanel?: () => void;
|
|
8587
|
+
[key: string]: any;
|
|
8588
|
+
}
|
|
8589
|
+
interface OpenSidePanel {
|
|
8590
|
+
isOpen: true;
|
|
8591
|
+
props?: SidePanelProps;
|
|
8592
|
+
key?: string;
|
|
8593
|
+
}
|
|
8594
|
+
interface ClosedSidePanel {
|
|
8595
|
+
isOpen: false;
|
|
8596
|
+
}
|
|
8597
|
+
type SidePanelState = OpenSidePanel | ClosedSidePanel;
|
|
8598
|
+
declare class SidePanelStore extends SpreadsheetStore {
|
|
8599
|
+
mutators: readonly ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
|
|
8600
|
+
initialPanelProps: SidePanelProps;
|
|
8601
|
+
componentTag: string;
|
|
8602
|
+
panelSize: number;
|
|
8603
|
+
get isOpen(): boolean;
|
|
8604
|
+
get panelProps(): SidePanelProps;
|
|
8605
|
+
get panelKey(): string | undefined;
|
|
8606
|
+
open(componentTag: string, panelProps?: SidePanelProps): void;
|
|
8607
|
+
toggle(componentTag: string, panelProps: SidePanelProps): void;
|
|
8608
|
+
close(): void;
|
|
8609
|
+
changePanelSize(size: number, spreadsheetElWidth: number): void;
|
|
8610
|
+
resetPanelSize(): void;
|
|
8611
|
+
private computeState;
|
|
8612
|
+
}
|
|
8613
|
+
|
|
8614
|
+
interface SidePanelContent {
|
|
8615
|
+
title: string | ((env: SpreadsheetChildEnv, props: object) => string);
|
|
8616
|
+
Body: any;
|
|
8617
|
+
Footer?: any;
|
|
8618
|
+
/**
|
|
8619
|
+
* A callback used to validate the props or generate new props
|
|
8620
|
+
* based on the current state of the spreadsheet model, using the getters.
|
|
8621
|
+
*/
|
|
8622
|
+
computeState?: (getters: Getters, initialProps: object) => SidePanelState;
|
|
8623
|
+
}
|
|
8624
|
+
|
|
8625
|
+
declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
|
|
8626
|
+
|
|
8627
|
+
interface ComposerInterface {
|
|
8628
|
+
id: string;
|
|
8629
|
+
editionMode: EditionMode;
|
|
8630
|
+
startEdition(content?: string, selection?: ComposerSelection): void;
|
|
8631
|
+
stopEdition(): void;
|
|
8632
|
+
setCurrentContent(content: string, selection?: ComposerSelection): void;
|
|
8633
|
+
}
|
|
8634
|
+
interface Args {
|
|
8535
8635
|
focusMode?: ComposerFocusType;
|
|
8536
8636
|
content?: string;
|
|
8537
8637
|
selection?: ComposerSelection;
|
|
@@ -8549,10 +8649,10 @@ declare class ComposerFocusStore extends SpreadsheetStore {
|
|
|
8549
8649
|
private setComposerContent;
|
|
8550
8650
|
}
|
|
8551
8651
|
|
|
8552
|
-
interface Props$
|
|
8652
|
+
interface Props$N {
|
|
8553
8653
|
figure: Figure;
|
|
8554
8654
|
}
|
|
8555
|
-
declare class ChartJsComponent extends Component<Props$
|
|
8655
|
+
declare class ChartJsComponent extends Component<Props$N, SpreadsheetChildEnv> {
|
|
8556
8656
|
static template: string;
|
|
8557
8657
|
static props: {
|
|
8558
8658
|
figure: ObjectConstructor;
|
|
@@ -8568,10 +8668,10 @@ declare class ChartJsComponent extends Component<Props$O, SpreadsheetChildEnv> {
|
|
|
8568
8668
|
private updateChartJs;
|
|
8569
8669
|
}
|
|
8570
8670
|
|
|
8571
|
-
interface Props$
|
|
8671
|
+
interface Props$M {
|
|
8572
8672
|
figure: Figure;
|
|
8573
8673
|
}
|
|
8574
|
-
declare class ScorecardChart$1 extends Component<Props$
|
|
8674
|
+
declare class ScorecardChart$1 extends Component<Props$M, SpreadsheetChildEnv> {
|
|
8575
8675
|
static template: string;
|
|
8576
8676
|
static props: {
|
|
8577
8677
|
figure: ObjectConstructor;
|
|
@@ -8584,7 +8684,7 @@ declare class ScorecardChart$1 extends Component<Props$N, SpreadsheetChildEnv> {
|
|
|
8584
8684
|
}
|
|
8585
8685
|
|
|
8586
8686
|
type MenuItemOrSeparator = Action | "separator";
|
|
8587
|
-
interface Props$
|
|
8687
|
+
interface Props$L {
|
|
8588
8688
|
position: DOMCoordinates;
|
|
8589
8689
|
menuItems: Action[];
|
|
8590
8690
|
depth: number;
|
|
@@ -8603,7 +8703,7 @@ interface MenuState {
|
|
|
8603
8703
|
menuItems: Action[];
|
|
8604
8704
|
isHoveringChild?: boolean;
|
|
8605
8705
|
}
|
|
8606
|
-
declare class Menu extends Component<Props$
|
|
8706
|
+
declare class Menu extends Component<Props$L, SpreadsheetChildEnv> {
|
|
8607
8707
|
static template: string;
|
|
8608
8708
|
static props: {
|
|
8609
8709
|
position: ObjectConstructor;
|
|
@@ -8679,14 +8779,14 @@ declare class Menu extends Component<Props$M, SpreadsheetChildEnv> {
|
|
|
8679
8779
|
}
|
|
8680
8780
|
|
|
8681
8781
|
type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
8682
|
-
interface Props$
|
|
8782
|
+
interface Props$K {
|
|
8683
8783
|
figure: Figure;
|
|
8684
8784
|
style: string;
|
|
8685
8785
|
onFigureDeleted: () => void;
|
|
8686
8786
|
onMouseDown: (ev: MouseEvent) => void;
|
|
8687
8787
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
8688
8788
|
}
|
|
8689
|
-
declare class FigureComponent extends Component<Props$
|
|
8789
|
+
declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
|
|
8690
8790
|
static template: string;
|
|
8691
8791
|
static props: {
|
|
8692
8792
|
figure: ObjectConstructor;
|
|
@@ -8735,11 +8835,11 @@ declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
8735
8835
|
private openContextMenu;
|
|
8736
8836
|
}
|
|
8737
8837
|
|
|
8738
|
-
interface Props$
|
|
8838
|
+
interface Props$J {
|
|
8739
8839
|
figure: Figure;
|
|
8740
8840
|
onFigureDeleted: () => void;
|
|
8741
8841
|
}
|
|
8742
|
-
declare class ChartFigure extends Component<Props$
|
|
8842
|
+
declare class ChartFigure extends Component<Props$J, SpreadsheetChildEnv> {
|
|
8743
8843
|
static template: string;
|
|
8744
8844
|
static props: {
|
|
8745
8845
|
figure: ObjectConstructor;
|
|
@@ -8751,7 +8851,7 @@ declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
|
|
|
8751
8851
|
get chartComponent(): new (...args: any) => Component;
|
|
8752
8852
|
}
|
|
8753
8853
|
|
|
8754
|
-
interface Props$
|
|
8854
|
+
interface Props$I {
|
|
8755
8855
|
isVisible: boolean;
|
|
8756
8856
|
position: Position;
|
|
8757
8857
|
}
|
|
@@ -8763,7 +8863,7 @@ interface State$7 {
|
|
|
8763
8863
|
position: Position;
|
|
8764
8864
|
handler: boolean;
|
|
8765
8865
|
}
|
|
8766
|
-
declare class Autofill extends Component<Props$
|
|
8866
|
+
declare class Autofill extends Component<Props$I, SpreadsheetChildEnv> {
|
|
8767
8867
|
static template: string;
|
|
8768
8868
|
static props: {
|
|
8769
8869
|
position: ObjectConstructor;
|
|
@@ -8797,7 +8897,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
|
|
|
8797
8897
|
get tagStyle(): string;
|
|
8798
8898
|
}
|
|
8799
8899
|
|
|
8800
|
-
interface Props$
|
|
8900
|
+
interface Props$H {
|
|
8801
8901
|
gridDims: DOMDimension;
|
|
8802
8902
|
onInputContextMenu: (event: MouseEvent) => void;
|
|
8803
8903
|
}
|
|
@@ -8805,7 +8905,7 @@ interface Props$I {
|
|
|
8805
8905
|
* This component is a composer which positions itself on the grid at the anchor cell.
|
|
8806
8906
|
* It also applies the style of the cell to the composer input.
|
|
8807
8907
|
*/
|
|
8808
|
-
declare class GridComposer extends Component<Props$
|
|
8908
|
+
declare class GridComposer extends Component<Props$H, SpreadsheetChildEnv> {
|
|
8809
8909
|
static template: string;
|
|
8810
8910
|
static props: {
|
|
8811
8911
|
gridDims: ObjectConstructor;
|
|
@@ -8863,10 +8963,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
|
|
|
8863
8963
|
isPositionVisible(position: CellPosition): boolean;
|
|
8864
8964
|
}
|
|
8865
8965
|
|
|
8866
|
-
interface Props$
|
|
8966
|
+
interface Props$G {
|
|
8867
8967
|
cellPosition: CellPosition;
|
|
8868
8968
|
}
|
|
8869
|
-
declare class DataValidationCheckbox extends Component<Props$
|
|
8969
|
+
declare class DataValidationCheckbox extends Component<Props$G, SpreadsheetChildEnv> {
|
|
8870
8970
|
static template: string;
|
|
8871
8971
|
static components: {
|
|
8872
8972
|
Checkbox: typeof Checkbox;
|
|
@@ -8879,10 +8979,10 @@ declare class DataValidationCheckbox extends Component<Props$H, SpreadsheetChild
|
|
|
8879
8979
|
get isDisabled(): boolean;
|
|
8880
8980
|
}
|
|
8881
8981
|
|
|
8882
|
-
interface Props$
|
|
8982
|
+
interface Props$F {
|
|
8883
8983
|
cellPosition: CellPosition;
|
|
8884
8984
|
}
|
|
8885
|
-
declare class DataValidationListIcon extends Component<Props$
|
|
8985
|
+
declare class DataValidationListIcon extends Component<Props$F, SpreadsheetChildEnv> {
|
|
8886
8986
|
static template: string;
|
|
8887
8987
|
static props: {
|
|
8888
8988
|
cellPosition: ObjectConstructor;
|
|
@@ -8912,7 +9012,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
8912
9012
|
}
|
|
8913
9013
|
|
|
8914
9014
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
8915
|
-
interface Props$
|
|
9015
|
+
interface Props$E {
|
|
8916
9016
|
onFigureDeleted: () => void;
|
|
8917
9017
|
}
|
|
8918
9018
|
interface Container {
|
|
@@ -8992,7 +9092,7 @@ interface DndState {
|
|
|
8992
9092
|
* that occurred during the drag & drop, and to position the figure on the correct pane.
|
|
8993
9093
|
*
|
|
8994
9094
|
*/
|
|
8995
|
-
declare class FiguresContainer extends Component<Props$
|
|
9095
|
+
declare class FiguresContainer extends Component<Props$E, SpreadsheetChildEnv> {
|
|
8996
9096
|
static template: string;
|
|
8997
9097
|
static props: {
|
|
8998
9098
|
onFigureDeleted: FunctionConstructor;
|
|
@@ -9027,10 +9127,10 @@ declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
9027
9127
|
private getSnapLineStyle;
|
|
9028
9128
|
}
|
|
9029
9129
|
|
|
9030
|
-
interface Props$
|
|
9130
|
+
interface Props$D {
|
|
9031
9131
|
cellPosition: CellPosition;
|
|
9032
9132
|
}
|
|
9033
|
-
declare class FilterIcon extends Component<Props$
|
|
9133
|
+
declare class FilterIcon extends Component<Props$D, SpreadsheetChildEnv> {
|
|
9034
9134
|
static template: string;
|
|
9035
9135
|
static props: {
|
|
9036
9136
|
cellPosition: ObjectConstructor;
|
|
@@ -9052,10 +9152,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
|
9052
9152
|
getFilterHeadersPositions(): CellPosition[];
|
|
9053
9153
|
}
|
|
9054
9154
|
|
|
9055
|
-
interface Props$
|
|
9155
|
+
interface Props$C {
|
|
9056
9156
|
focusGrid: () => void;
|
|
9057
9157
|
}
|
|
9058
|
-
declare class GridAddRowsFooter extends Component<Props$
|
|
9158
|
+
declare class GridAddRowsFooter extends Component<Props$C, SpreadsheetChildEnv> {
|
|
9059
9159
|
static template: string;
|
|
9060
9160
|
static props: {
|
|
9061
9161
|
focusGrid: FunctionConstructor;
|
|
@@ -9079,7 +9179,7 @@ declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv>
|
|
|
9079
9179
|
private onExternalClick;
|
|
9080
9180
|
}
|
|
9081
9181
|
|
|
9082
|
-
interface Props$
|
|
9182
|
+
interface Props$B {
|
|
9083
9183
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
9084
9184
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
9085
9185
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
|
|
@@ -9089,7 +9189,7 @@ interface Props$C {
|
|
|
9089
9189
|
gridOverlayDimensions: string;
|
|
9090
9190
|
onFigureDeleted: () => void;
|
|
9091
9191
|
}
|
|
9092
|
-
declare class GridOverlay extends Component<Props$
|
|
9192
|
+
declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
|
|
9093
9193
|
static template: string;
|
|
9094
9194
|
static props: {
|
|
9095
9195
|
onCellHovered: {
|
|
@@ -9147,12 +9247,12 @@ declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
|
|
|
9147
9247
|
private getCartesianCoordinates;
|
|
9148
9248
|
}
|
|
9149
9249
|
|
|
9150
|
-
interface Props$
|
|
9250
|
+
interface Props$A {
|
|
9151
9251
|
gridRect: Rect;
|
|
9152
9252
|
onClosePopover: () => void;
|
|
9153
9253
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
9154
9254
|
}
|
|
9155
|
-
declare class GridPopover extends Component<Props$
|
|
9255
|
+
declare class GridPopover extends Component<Props$A, SpreadsheetChildEnv> {
|
|
9156
9256
|
static template: string;
|
|
9157
9257
|
static props: {
|
|
9158
9258
|
onClosePopover: FunctionConstructor;
|
|
@@ -9295,13 +9395,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
|
|
|
9295
9395
|
}
|
|
9296
9396
|
|
|
9297
9397
|
type Orientation$1 = "n" | "s" | "w" | "e";
|
|
9298
|
-
interface Props$
|
|
9398
|
+
interface Props$z {
|
|
9299
9399
|
zone: Zone;
|
|
9300
9400
|
orientation: Orientation$1;
|
|
9301
9401
|
isMoving: boolean;
|
|
9302
9402
|
onMoveHighlight: (x: Pixel, y: Pixel) => void;
|
|
9303
9403
|
}
|
|
9304
|
-
declare class Border extends Component<Props$
|
|
9404
|
+
declare class Border extends Component<Props$z, SpreadsheetChildEnv> {
|
|
9305
9405
|
static template: string;
|
|
9306
9406
|
static props: {
|
|
9307
9407
|
zone: ObjectConstructor;
|
|
@@ -9314,14 +9414,14 @@ declare class Border extends Component<Props$A, SpreadsheetChildEnv> {
|
|
|
9314
9414
|
}
|
|
9315
9415
|
|
|
9316
9416
|
type Orientation = "nw" | "ne" | "sw" | "se";
|
|
9317
|
-
interface Props$
|
|
9417
|
+
interface Props$y {
|
|
9318
9418
|
zone: Zone;
|
|
9319
9419
|
color: Color;
|
|
9320
9420
|
orientation: Orientation;
|
|
9321
9421
|
isResizing: boolean;
|
|
9322
9422
|
onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
|
|
9323
9423
|
}
|
|
9324
|
-
declare class Corner extends Component<Props$
|
|
9424
|
+
declare class Corner extends Component<Props$y, SpreadsheetChildEnv> {
|
|
9325
9425
|
static template: string;
|
|
9326
9426
|
static props: {
|
|
9327
9427
|
zone: ObjectConstructor;
|
|
@@ -9336,14 +9436,14 @@ declare class Corner extends Component<Props$z, SpreadsheetChildEnv> {
|
|
|
9336
9436
|
onMouseDown(ev: MouseEvent): void;
|
|
9337
9437
|
}
|
|
9338
9438
|
|
|
9339
|
-
interface Props$
|
|
9439
|
+
interface Props$x {
|
|
9340
9440
|
zone: Zone;
|
|
9341
9441
|
color: Color;
|
|
9342
9442
|
}
|
|
9343
9443
|
interface HighlightState {
|
|
9344
9444
|
shiftingMode: "isMoving" | "isResizing" | "none";
|
|
9345
9445
|
}
|
|
9346
|
-
declare class Highlight extends Component<Props$
|
|
9446
|
+
declare class Highlight extends Component<Props$x, SpreadsheetChildEnv> {
|
|
9347
9447
|
static template: string;
|
|
9348
9448
|
static props: {
|
|
9349
9449
|
zone: ObjectConstructor;
|
|
@@ -9360,7 +9460,7 @@ declare class Highlight extends Component<Props$y, SpreadsheetChildEnv> {
|
|
|
9360
9460
|
|
|
9361
9461
|
type ScrollDirection = "horizontal" | "vertical";
|
|
9362
9462
|
|
|
9363
|
-
interface Props$
|
|
9463
|
+
interface Props$w {
|
|
9364
9464
|
width: Pixel;
|
|
9365
9465
|
height: Pixel;
|
|
9366
9466
|
direction: ScrollDirection;
|
|
@@ -9368,7 +9468,7 @@ interface Props$x {
|
|
|
9368
9468
|
offset: Pixel;
|
|
9369
9469
|
onScroll: (offset: Pixel) => void;
|
|
9370
9470
|
}
|
|
9371
|
-
declare class ScrollBar extends Component<Props$
|
|
9471
|
+
declare class ScrollBar extends Component<Props$w> {
|
|
9372
9472
|
static props: {
|
|
9373
9473
|
width: {
|
|
9374
9474
|
type: NumberConstructor;
|
|
@@ -9396,10 +9496,10 @@ declare class ScrollBar extends Component<Props$x> {
|
|
|
9396
9496
|
onScroll(ev: any): void;
|
|
9397
9497
|
}
|
|
9398
9498
|
|
|
9399
|
-
interface Props$
|
|
9499
|
+
interface Props$v {
|
|
9400
9500
|
leftOffset: number;
|
|
9401
9501
|
}
|
|
9402
|
-
declare class HorizontalScrollBar extends Component<Props$
|
|
9502
|
+
declare class HorizontalScrollBar extends Component<Props$v, SpreadsheetChildEnv> {
|
|
9403
9503
|
static props: {
|
|
9404
9504
|
leftOffset: {
|
|
9405
9505
|
type: NumberConstructor;
|
|
@@ -9425,10 +9525,10 @@ declare class HorizontalScrollBar extends Component<Props$w, SpreadsheetChildEnv
|
|
|
9425
9525
|
onScroll(offset: any): void;
|
|
9426
9526
|
}
|
|
9427
9527
|
|
|
9428
|
-
interface Props$
|
|
9528
|
+
interface Props$u {
|
|
9429
9529
|
topOffset: number;
|
|
9430
9530
|
}
|
|
9431
|
-
declare class VerticalScrollBar extends Component<Props$
|
|
9531
|
+
declare class VerticalScrollBar extends Component<Props$u, SpreadsheetChildEnv> {
|
|
9432
9532
|
static props: {
|
|
9433
9533
|
topOffset: {
|
|
9434
9534
|
type: NumberConstructor;
|
|
@@ -9454,13 +9554,13 @@ declare class VerticalScrollBar extends Component<Props$v, SpreadsheetChildEnv>
|
|
|
9454
9554
|
onScroll(offset: any): void;
|
|
9455
9555
|
}
|
|
9456
9556
|
|
|
9457
|
-
interface Props$
|
|
9557
|
+
interface Props$t {
|
|
9458
9558
|
table: Table;
|
|
9459
9559
|
}
|
|
9460
9560
|
interface State$6 {
|
|
9461
9561
|
highlightZone: Zone | undefined;
|
|
9462
9562
|
}
|
|
9463
|
-
declare class TableResizer extends Component<Props$
|
|
9563
|
+
declare class TableResizer extends Component<Props$t, SpreadsheetChildEnv> {
|
|
9464
9564
|
static template: string;
|
|
9465
9565
|
static props: {
|
|
9466
9566
|
table: ObjectConstructor;
|
|
@@ -9492,10 +9592,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
|
|
|
9492
9592
|
* - a vertical resizer (same, for rows)
|
|
9493
9593
|
*/
|
|
9494
9594
|
type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
|
|
9495
|
-
interface Props$
|
|
9595
|
+
interface Props$s {
|
|
9496
9596
|
exposeFocus: (focus: () => void) => void;
|
|
9497
9597
|
}
|
|
9498
|
-
declare class Grid extends Component<Props$
|
|
9598
|
+
declare class Grid extends Component<Props$s, SpreadsheetChildEnv> {
|
|
9499
9599
|
static template: string;
|
|
9500
9600
|
static props: {
|
|
9501
9601
|
exposeFocus: FunctionConstructor;
|
|
@@ -9579,7 +9679,7 @@ interface DndPartialArgs {
|
|
|
9579
9679
|
draggedItemId: UID;
|
|
9580
9680
|
initialMousePosition: Pixel;
|
|
9581
9681
|
items: DragAndDropItemsPartial[];
|
|
9582
|
-
|
|
9682
|
+
scrollableContainerEl: HTMLElement;
|
|
9583
9683
|
onChange?: () => void;
|
|
9584
9684
|
onCancel?: () => void;
|
|
9585
9685
|
onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
|
|
@@ -9604,7 +9704,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
|
|
|
9604
9704
|
private getChartDefinitionFromContextCreation;
|
|
9605
9705
|
}
|
|
9606
9706
|
|
|
9607
|
-
interface Props$
|
|
9707
|
+
interface Props$r {
|
|
9608
9708
|
figureId: UID;
|
|
9609
9709
|
chartPanelStore: MainChartPanelStore;
|
|
9610
9710
|
}
|
|
@@ -9612,7 +9712,7 @@ interface ChartTypePickerState {
|
|
|
9612
9712
|
popoverProps: PopoverProps | undefined;
|
|
9613
9713
|
popoverStyle: string;
|
|
9614
9714
|
}
|
|
9615
|
-
declare class ChartTypePicker extends Component<Props$
|
|
9715
|
+
declare class ChartTypePicker extends Component<Props$r, SpreadsheetChildEnv> {
|
|
9616
9716
|
static template: string;
|
|
9617
9717
|
static components: {
|
|
9618
9718
|
Section: typeof Section;
|
|
@@ -9647,11 +9747,11 @@ declare class ChartTypePicker extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
9647
9747
|
private closePopover;
|
|
9648
9748
|
}
|
|
9649
9749
|
|
|
9650
|
-
interface Props$
|
|
9750
|
+
interface Props$q {
|
|
9651
9751
|
onCloseSidePanel: () => void;
|
|
9652
9752
|
figureId: UID;
|
|
9653
9753
|
}
|
|
9654
|
-
declare class ChartPanel extends Component<Props$
|
|
9754
|
+
declare class ChartPanel extends Component<Props$q, SpreadsheetChildEnv> {
|
|
9655
9755
|
static template: string;
|
|
9656
9756
|
static components: {
|
|
9657
9757
|
Section: typeof Section;
|
|
@@ -9671,13 +9771,13 @@ declare class ChartPanel extends Component<Props$r, SpreadsheetChildEnv> {
|
|
|
9671
9771
|
private getChartDefinition;
|
|
9672
9772
|
}
|
|
9673
9773
|
|
|
9674
|
-
interface Props$
|
|
9774
|
+
interface Props$p {
|
|
9675
9775
|
figureId: UID;
|
|
9676
9776
|
definition: PieChartDefinition;
|
|
9677
9777
|
canUpdateChart: (figureID: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
|
|
9678
9778
|
updateChart: (figureId: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
|
|
9679
9779
|
}
|
|
9680
|
-
declare class PieChartDesignPanel extends Component<Props$
|
|
9780
|
+
declare class PieChartDesignPanel extends Component<Props$p, SpreadsheetChildEnv> {
|
|
9681
9781
|
static template: string;
|
|
9682
9782
|
static components: {
|
|
9683
9783
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -9696,10 +9796,10 @@ declare class PieChartDesignPanel extends Component<Props$q, SpreadsheetChildEnv
|
|
|
9696
9796
|
};
|
|
9697
9797
|
}
|
|
9698
9798
|
|
|
9699
|
-
interface Props$
|
|
9799
|
+
interface Props$o {
|
|
9700
9800
|
items: ActionSpec[];
|
|
9701
9801
|
}
|
|
9702
|
-
declare class CogWheelMenu extends Component<Props$
|
|
9802
|
+
declare class CogWheelMenu extends Component<Props$o, SpreadsheetChildEnv> {
|
|
9703
9803
|
static template: string;
|
|
9704
9804
|
static components: {
|
|
9705
9805
|
Menu: typeof Menu;
|
|
@@ -9782,14 +9882,14 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
|
|
|
9782
9882
|
get highlights(): Highlight$1[];
|
|
9783
9883
|
}
|
|
9784
9884
|
|
|
9785
|
-
interface Props$
|
|
9885
|
+
interface Props$n {
|
|
9786
9886
|
deferUpdate: boolean;
|
|
9787
9887
|
isDirty: boolean;
|
|
9788
9888
|
toggleDeferUpdate: (value: boolean) => void;
|
|
9789
9889
|
discard: () => void;
|
|
9790
9890
|
apply: () => void;
|
|
9791
9891
|
}
|
|
9792
|
-
declare class PivotDeferUpdate extends Component<Props$
|
|
9892
|
+
declare class PivotDeferUpdate extends Component<Props$n, SpreadsheetChildEnv> {
|
|
9793
9893
|
static template: string;
|
|
9794
9894
|
static props: {
|
|
9795
9895
|
deferUpdate: BooleanConstructor;
|
|
@@ -9806,11 +9906,11 @@ declare class PivotDeferUpdate extends Component<Props$o, SpreadsheetChildEnv> {
|
|
|
9806
9906
|
get deferUpdatesTooltip(): string;
|
|
9807
9907
|
}
|
|
9808
9908
|
|
|
9809
|
-
interface Props$
|
|
9909
|
+
interface Props$m {
|
|
9810
9910
|
onFieldPicked: (field: string) => void;
|
|
9811
9911
|
fields: PivotField[];
|
|
9812
9912
|
}
|
|
9813
|
-
declare class AddDimensionButton extends Component<Props$
|
|
9913
|
+
declare class AddDimensionButton extends Component<Props$m, SpreadsheetChildEnv> {
|
|
9814
9914
|
static template: string;
|
|
9815
9915
|
static components: {
|
|
9816
9916
|
Popover: typeof Popover;
|
|
@@ -9846,14 +9946,14 @@ declare class AddDimensionButton extends Component<Props$n, SpreadsheetChildEnv>
|
|
|
9846
9946
|
onKeyDown(ev: KeyboardEvent): void;
|
|
9847
9947
|
}
|
|
9848
9948
|
|
|
9849
|
-
interface Props$
|
|
9949
|
+
interface Props$l {
|
|
9850
9950
|
value: string;
|
|
9851
9951
|
onChange: (value: string) => void;
|
|
9852
9952
|
class?: string;
|
|
9853
9953
|
id?: string;
|
|
9854
9954
|
placeholder?: string;
|
|
9855
9955
|
}
|
|
9856
|
-
declare class TextInput extends Component<Props$
|
|
9956
|
+
declare class TextInput extends Component<Props$l, SpreadsheetChildEnv> {
|
|
9857
9957
|
static template: string;
|
|
9858
9958
|
static props: {
|
|
9859
9959
|
value: StringConstructor;
|
|
@@ -9879,13 +9979,13 @@ declare class TextInput extends Component<Props$m, SpreadsheetChildEnv> {
|
|
|
9879
9979
|
onMouseUp(ev: MouseEvent): void;
|
|
9880
9980
|
}
|
|
9881
9981
|
|
|
9882
|
-
interface Props$
|
|
9982
|
+
interface Props$k {
|
|
9883
9983
|
dimension: PivotCoreDimension | PivotCoreMeasure;
|
|
9884
9984
|
onRemoved: (dimension: PivotCoreDimension | PivotCoreMeasure) => void;
|
|
9885
9985
|
onNameUpdated?: (dimension: PivotCoreDimension | PivotCoreMeasure, name?: string) => void;
|
|
9886
9986
|
type: "row" | "col" | "measure";
|
|
9887
9987
|
}
|
|
9888
|
-
declare class PivotDimension extends Component<Props$
|
|
9988
|
+
declare class PivotDimension extends Component<Props$k, SpreadsheetChildEnv> {
|
|
9889
9989
|
static template: string;
|
|
9890
9990
|
static props: {
|
|
9891
9991
|
dimension: ObjectConstructor;
|
|
@@ -9909,13 +10009,13 @@ declare class PivotDimension extends Component<Props$l, SpreadsheetChildEnv> {
|
|
|
9909
10009
|
updateName(name: string): void;
|
|
9910
10010
|
}
|
|
9911
10011
|
|
|
9912
|
-
interface Props$
|
|
10012
|
+
interface Props$j {
|
|
9913
10013
|
dimension: PivotDimension$1;
|
|
9914
10014
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
9915
10015
|
availableGranularities: Set<string>;
|
|
9916
10016
|
allGranularities: string[];
|
|
9917
10017
|
}
|
|
9918
|
-
declare class PivotDimensionGranularity extends Component<Props$
|
|
10018
|
+
declare class PivotDimensionGranularity extends Component<Props$j, SpreadsheetChildEnv> {
|
|
9919
10019
|
static template: string;
|
|
9920
10020
|
static props: {
|
|
9921
10021
|
dimension: ObjectConstructor;
|
|
@@ -9940,11 +10040,11 @@ declare class PivotDimensionGranularity extends Component<Props$k, SpreadsheetCh
|
|
|
9940
10040
|
};
|
|
9941
10041
|
}
|
|
9942
10042
|
|
|
9943
|
-
interface Props$
|
|
10043
|
+
interface Props$i {
|
|
9944
10044
|
dimension: PivotDimension$1;
|
|
9945
10045
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
9946
10046
|
}
|
|
9947
|
-
declare class PivotDimensionOrder extends Component<Props$
|
|
10047
|
+
declare class PivotDimensionOrder extends Component<Props$i, SpreadsheetChildEnv> {
|
|
9948
10048
|
static template: string;
|
|
9949
10049
|
static props: {
|
|
9950
10050
|
dimension: ObjectConstructor;
|
|
@@ -9979,72 +10079,6 @@ declare function createPivotFormula(formulaId: string, cell: PivotTableCell): st
|
|
|
9979
10079
|
*/
|
|
9980
10080
|
declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type" | "displayName" | "granularity">, groupValue: any): CellValue;
|
|
9981
10081
|
|
|
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
10082
|
interface Props$h {
|
|
10049
10083
|
pivotId: string;
|
|
10050
10084
|
definition: PivotRuntimeDefinition;
|
|
@@ -10106,6 +10140,7 @@ interface Props$f {
|
|
|
10106
10140
|
unusedGranularities: Record<string, Set<string>>;
|
|
10107
10141
|
dateGranularities: string[];
|
|
10108
10142
|
datetimeGranularities: string[];
|
|
10143
|
+
getScrollableContainerEl?: () => HTMLElement;
|
|
10109
10144
|
pivotId: UID;
|
|
10110
10145
|
}
|
|
10111
10146
|
declare class PivotLayoutConfigurator extends Component<Props$f, SpreadsheetChildEnv> {
|
|
@@ -10126,6 +10161,10 @@ declare class PivotLayoutConfigurator extends Component<Props$f, SpreadsheetChil
|
|
|
10126
10161
|
unusedGranularities: ObjectConstructor;
|
|
10127
10162
|
dateGranularities: ArrayConstructor;
|
|
10128
10163
|
datetimeGranularities: ArrayConstructor;
|
|
10164
|
+
getScrollableContainerEl: {
|
|
10165
|
+
type: FunctionConstructor;
|
|
10166
|
+
optional: boolean;
|
|
10167
|
+
};
|
|
10129
10168
|
pivotId: StringConstructor;
|
|
10130
10169
|
};
|
|
10131
10170
|
private dimensionsRef;
|
|
@@ -10832,14 +10871,15 @@ declare class BottomBar extends Component<Props$8, SpreadsheetChildEnv> {
|
|
|
10832
10871
|
interface ClickableCell {
|
|
10833
10872
|
coordinates: Rect;
|
|
10834
10873
|
position: CellPosition;
|
|
10874
|
+
title: string;
|
|
10835
10875
|
action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
|
|
10836
10876
|
}
|
|
10837
10877
|
declare class ClickableCellsStore extends SpreadsheetStore {
|
|
10838
10878
|
private _clickableCells;
|
|
10839
10879
|
private _registryItems;
|
|
10840
10880
|
handle(cmd: Command): void;
|
|
10841
|
-
private
|
|
10842
|
-
private
|
|
10881
|
+
private getClickableItem;
|
|
10882
|
+
private findClickableItem;
|
|
10843
10883
|
get clickableCells(): ClickableCell[];
|
|
10844
10884
|
}
|
|
10845
10885
|
|
|
@@ -12695,9 +12735,9 @@ declare const chartHelpers: {
|
|
|
12695
12735
|
getGeoChartData(definition: GeoChartDefinition, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): GeoChartRuntimeGenerationArgs;
|
|
12696
12736
|
getTrendDatasetForBarChart(config: TrendConfiguration, data: any[]): chart_js.Point[] | undefined;
|
|
12697
12737
|
getTrendDatasetForLineChart(config: TrendConfiguration, data: any[], labels: string[], axisType: AxisType, locale: Locale): chart_js.Point[] | undefined;
|
|
12698
|
-
canChartParseLabels(labelRange: Range | undefined, getters: Getters): boolean;
|
|
12738
|
+
canChartParseLabels(definition: GenericDefinition<LineChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): boolean;
|
|
12699
12739
|
getData(getters: Getters, ds: DataSet): (CellValue | undefined)[];
|
|
12700
|
-
getChartLabelFormat(getters: Getters, range: Range | undefined): Format | undefined;
|
|
12740
|
+
getChartLabelFormat(getters: Getters, range: Range | undefined, shouldRemoveFirstLabel: boolean): Format | undefined;
|
|
12701
12741
|
getBarChartDatasets(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"line" | "bar">[];
|
|
12702
12742
|
getWaterfallDatasetAndLabels(definition: GenericDefinition<WaterfallChartDefinition>, args: ChartRuntimeGenerationArgs): {
|
|
12703
12743
|
datasets: chart_js.ChartDataset[];
|