@odoo/o-spreadsheet
Version:
A spreadsheet component
413 lines (412 loc) • 26.7 kB
TypeScript
import "./dom_mock";
import { createAction, createActions } from "./actions/action";
import { transformRangeData } from "./collaborative/ot/ot_helpers";
import { ComposerFocusStore } from "./components/composer/composer_focus_store";
import { ChartJsComponent } from "./components/figures/chart/chartJs/chartjs";
import { ScorecardChart } from "./components/figures/chart/scorecard/chart_scorecard";
import { FigureComponent } from "./components/figures/figure/figure";
import { ChartFigure } from "./components/figures/figure_chart/figure_chart";
import { DelayedHoveredCellStore } from "./components/grid/delayed_hovered_cell_store";
import { Grid } from "./components/grid/grid";
import { GridOverlay } from "./components/grid_overlay/grid_overlay";
import { useDragAndDropListItems } from "./components/helpers/drag_and_drop_dom_items_hook";
import { useHighlights, useHighlightsOnHover } from "./components/helpers/highlight_hook";
import { MenuPopover } from "./components/menu_popover/menu_popover";
import { Popover } from "./components/popover";
import { CellPopoverStore } from "./components/popover/cell_popover_store";
import { SelectionInput } from "./components/selection_input/selection_input";
import { SelectionInputStore } from "./components/selection_input/selection_input_store";
import { BarConfigPanel, ChartWithAxisDesignPanel, GaugeChartConfigPanel, GaugeChartDesignPanel, GenericChartConfigPanel, LineConfigPanel, ScorecardChartConfigPanel, ScorecardChartDesignPanel } from "./components/side_panel/chart";
import { ChartTitle } from "./components/side_panel/chart/building_blocks/chart_title/chart_title";
import { ChartDataSeries } from "./components/side_panel/chart/building_blocks/data_series/data_series";
import { ChartErrorSection } from "./components/side_panel/chart/building_blocks/error_section/error_section";
import { ChartLabelRange } from "./components/side_panel/chart/building_blocks/label_range/label_range";
import { ChartTypePicker } from "./components/side_panel/chart/chart_type_picker/chart_type_picker";
import { ChartPanel } from "./components/side_panel/chart/main_chart_panel/main_chart_panel";
import { PieChartDesignPanel } from "./components/side_panel/chart/pie_chart/pie_chart_design_panel";
import { Checkbox } from "./components/side_panel/components/checkbox/checkbox";
import { CogWheelMenu } from "./components/side_panel/components/cog_wheel_menu/cog_wheel_menu";
import { RoundColorPicker } from "./components/side_panel/components/round_color_picker/round_color_picker";
import { Section } from "./components/side_panel/components/section/section";
import { FindAndReplaceStore } from "./components/side_panel/find_and_replace/find_and_replace_store";
import { PivotDeferUpdate } from "./components/side_panel/pivot/pivot_defer_update/pivot_defer_update";
import { AddDimensionButton } from "./components/side_panel/pivot/pivot_layout_configurator/add_dimension_button/add_dimension_button";
import { PivotDimension } from "./components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension";
import { PivotDimensionGranularity } from "./components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_granularity/pivot_dimension_granularity";
import { PivotDimensionOrder } from "./components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_order/pivot_dimension_order";
import { PivotLayoutConfigurator } from "./components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator";
import { PivotSidePanelStore } from "./components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store";
import { PivotTitleSection } from "./components/side_panel/pivot/pivot_title_section/pivot_title_section";
import { SidePanelStore } from "./components/side_panel/side_panel/side_panel_store";
import { ValidationMessages } from "./components/validation_messages/validation_messages";
import { isEvaluationError, toBoolean, toJsDate, toNumber, toString } from "./functions/helpers";
import { ColorGenerator, DateTime, UuidGenerator, colorToRGBA, computeTextWidth, createCurrencyFormat, deepCopy, deepEquals, expandZoneOnInsertion, formatValue, getUniqueText, isDateTime, isDefined, isFormula, isInside, isMarkdownLink, isNumber, jsDateToNumber, lazy, lettersToNumber, markdownLink, mergeContiguousZones, numberToJsDate, numberToLetters, overlap, parseMarkdownLink, positionToZone, reduceZoneOnDeletion, rgbaToHex, sanitizeSheetName, splitReference, toCartesian, toUnboundedZone, toXC, toZone, union, unquote } from "./helpers/index";
import { openLink, urlRepresentation } from "./helpers/links";
import { insertTokenAfterArgSeparator, insertTokenAfterLeftParenthesis, makeFieldProposal } from "./helpers/pivot/pivot_composer_helpers";
import { CellComposerStore } from "./components/composer/composer/cell_composer_store";
import { ClickableCellSortIcon } from "./components/dashboard/clickable_cell_sort_icon/clickable_cell_sort_icon";
import { ZoomableChartJsComponent } from "./components/figures/chart/chartJs/zoomable_chart/zoomable_chartjs";
import { ChartDashboardMenu } from "./components/figures/chart/chart_dashboard_menu/chart_dashboard_menu";
import { GaugeChartComponent } from "./components/figures/chart/gauge/gauge_chart_component";
import { FullScreenFigure } from "./components/full_screen_figure/full_screen_figure";
import { NumberInput } from "./components/number_input/number_input";
import { PivotHTMLRenderer } from "./components/pivot_html_renderer/pivot_html_renderer";
import { ComboChartDesignPanel } from "./components/side_panel/chart/combo_chart/combo_chart_design_panel";
import { FunnelChartDesignPanel } from "./components/side_panel/chart/funnel_chart_panel/funnel_chart_design_panel";
import { GeoChartDesignPanel } from "./components/side_panel/chart/geo_chart_panel/geo_chart_design_panel";
import { GeoChartRegionSelectSection } from "./components/side_panel/chart/geo_chart_panel/geo_chart_region_select_section";
import { LineChartDesignPanel } from "./components/side_panel/chart/line_chart/line_chart_design_panel";
import { RadarChartDesignPanel } from "./components/side_panel/chart/radar_chart/radar_chart_design_panel";
import { SunburstChartDesignPanel } from "./components/side_panel/chart/sunburst_chart/sunburst_chart_design_panel";
import { TreeMapChartDesignPanel } from "./components/side_panel/chart/treemap_chart/treemap_chart_design_panel";
import { WaterfallChartDesignPanel } from "./components/side_panel/chart/waterfall_chart/waterfall_chart_design_panel";
import { GenericZoomableChartDesignPanel } from "./components/side_panel/chart/zoomable_chart/design_panel";
import { SidePanelCollapsible } from "./components/side_panel/components/collapsible/side_panel_collapsible";
import { RadioSelection } from "./components/side_panel/components/radio_selection/radio_selection";
import { PivotMeasureDisplayPanelStore } from "./components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel_store";
import { HoveredTableStore } from "./components/tables/hovered_table_store";
import { TextInput } from "./components/text_input/text_input";
import { arg } from "./functions/arguments";
import * as CHART_HELPERS from "./helpers/figures/charts";
import * as CHART_RUNTIME_HELPERS from "./helpers/figures/charts/runtime";
import { areDomainArgsFieldsValid, collapseHierarchicalDisplayName, createCustomFields, createPivotFormula, getMaxObjectId, isDateOrDatetimeField, parseDimension, toFunctionPivotValue, toNormalizedPivotValue } from "./helpers/pivot/pivot_helpers";
import { getPivotHighlights } from "./helpers/pivot/pivot_highlight";
import { periodYearToComparable, pivotTimeAdapter } from "./helpers/pivot/pivot_time_adapter";
import { createEmptyExcelSheet, createEmptySheet, createEmptyWorkbookData } from "./migrations/data";
import "./plugins";
import "./registries/interactive_icon_on_cell_registry";
import { genericRepeat } from "./registries/repeat_commands_registry";
import { useLocalStore, useStore, useStoreProvider } from "./store_engine";
import { DependencyContainer } from "./store_engine/dependency_container";
import { SpreadsheetStore } from "./stores";
import { ClientFocusStore } from "./stores/client_focus_store";
import { GridRenderer } from "./stores/grid_renderer_store";
import { HighlightStore } from "./stores/highlight_store";
import { NotificationStore } from "./stores/notification_store";
import { RendererStore } from "./stores/renderer_store";
import { AddFunctionDescription, isMatrix, schemeToColorScale } from "./types";
/**
* We export here all entities that needs to be accessed publicly by Odoo.
*
* Note that the __info__ key is actually completed by the build process (see
* the rollup.config.js file)
*/
export declare const __info__: {};
export { LocalTransportService } from "./collaborative/local_transport_service";
export { Revision } from "./collaborative/revisions";
export { ClientDisconnectedError } from "./collaborative/session";
export { Spreadsheet } from "./components/index";
export { setDefaultSheetViewSize, tokenColors } from "./constants";
export { CompiledFormula, functionCache } from "./formulas/compiler";
export { astToFormula } from "./formulas/formula_formatter";
export { convertAstNodes, iterateAstNodes, parse, parseTokens } from "./formulas/parser";
export { tokenize } from "./formulas/tokenizer";
export { AbstractChart } from "./helpers/figures/charts";
export { findCellInNewZone } from "./helpers/zones";
export { load } from "./migrations/data";
export { Model } from "./model";
export { CorePlugin } from "./plugins/core_plugin";
export { CoreViewPlugin } from "./plugins/core_view_plugin";
export { UIPlugin } from "./plugins/ui_plugin";
export { Registry } from "./registries/registry";
export { setTranslationMethod } from "./translation";
export { CommandResult, DispatchResult, addRenderingLayer } from "./types";
export type { CancelledReason } from "./types";
export type { Client } from "./types/collaborative/session";
export type { ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, CollaborationMessage, RemoteRevisionMessage, RevisionRedoneMessage, RevisionUndoneMessage, TransportService, } from "./types/collaborative/transport_service";
export { canExecuteInReadonly, coreTypes, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isSheetDependent, lockedSheetAllowedCommands, readonlyAllowedCommands, } from "./types/commands";
export { CellErrorType, EvaluationError } from "./types/errors";
export declare const SPREADSHEET_DIMENSIONS: {
MIN_ROW_HEIGHT: number;
MIN_COL_WIDTH: number;
HEADER_HEIGHT: number;
HEADER_WIDTH: number;
DESKTOP_BOTTOMBAR_HEIGHT: number;
DEFAULT_CELL_WIDTH: number;
DEFAULT_CELL_HEIGHT: number;
SCROLLBAR_WIDTH: number;
};
export declare const registries: {
autoCompleteProviders: import(".").Registry<import("./registries/auto_completes").AutoCompleteProviderDefinition>;
autofillModifiersRegistry: import(".").Registry<import(".").AutofillModifierImplementation>;
autofillRulesRegistry: import(".").Registry<import("./registries/autofill_rules").AutofillRule>;
cellMenuRegistry: import("./registries/menu_items_registry").MenuItemRegistry;
colMenuRegistry: import("./registries/menu_items_registry").MenuItemRegistry;
errorTypes: Set<string>;
functionRegistry: import(".").FunctionRegistry;
featurePluginRegistry: import("./registry").Registry<import("./plugins/ui_plugin").UIPluginConstructor>;
iconsOnCellRegistry: import(".").Registry<(getters: import(".").Getters, position: import(".").CellPosition) => import("./registries/icons_on_cell_registry").GridIcon | undefined>;
statefulUIPluginRegistry: import("./registry").Registry<import("./plugins/ui_plugin").UIPluginConstructor>;
coreViewsPluginRegistry: import("./registry").Registry<import("./plugins/core_view_plugin").CoreViewPluginConstructor>;
corePluginRegistry: import("./registry").Registry<import("./plugins/core_plugin").CorePluginConstructor>;
rowMenuRegistry: import("./registries/menu_items_registry").MenuItemRegistry;
sidePanelRegistry: import(".").Registry<import("./registries/side_panel_registry").SidePanelContent>;
figureRegistry: import(".").Registry<import("./registries/figures_registry").FigureContent>;
chartSidePanelComponentRegistry: import(".").Registry<import("./components/side_panel/chart").ChartSidePanel>;
chartDataSourceSidePanelComponentRegistry: import(".").Registry<import("@odoo/owl").ComponentConstructor>;
chartComponentRegistry: import(".").Registry<new (...args: any) => import("@odoo/owl").Component>;
chartTypeRegistry: import("./registries/chart_registry").ChartTypeRegistry;
chartSubtypeRegistry: import(".").Registry<import("./types/chart_subtype_properties").ChartSubtypeProperties>;
chartDataSourceRegistry: import("./registries/chart_data_source_registry").ChartDataSourceRegistry;
topbarMenuRegistry: import("./registries/menu_items_registry").MenuItemRegistry;
topbarComponentRegistry: {
mapping: {
[key: string]: Function;
};
uuidGenerator: UuidGenerator;
replace(name: string, value: Omit<import("./registries/topbar_component_registry").TopbarComponent, "id">): /*elided*/ any;
getAllOrdered(): import("./registries/topbar_component_registry").TopbarComponent[];
content: {
[key: string]: import("./registries/topbar_component_registry").TopbarComponent;
};
add(key: string, value: import("./registries/topbar_component_registry").TopbarComponent): /*elided*/ any;
get(key: string): import("./registries/topbar_component_registry").TopbarComponent;
contains(key: string): boolean;
getAll(): import("./registries/topbar_component_registry").TopbarComponent[];
getKeys(): string[];
remove(key: string): void;
};
clickableCellRegistry: import(".").Registry<import("./registries/cell_clickable_registry").CellClickableItem>;
otRegistry: import("./registries/ot_registry").OTRegistry;
inverseCommandRegistry: import(".").Registry<(cmd: import(".").CoreCommand) => import(".").CoreCommand[]>;
urlRegistry: import(".").Registry<import("./helpers/links").LinkSpec>;
cellPopoverRegistry: import(".").Registry<import("./types/cell_popovers").PopoverBuilders>;
numberFormatMenuRegistry: import(".").Registry<import("./actions/format_actions").NumberFormatActionSpec>;
repeatLocalCommandTransformRegistry: import(".").Registry<(getters: import(".").Getters, cmd: import(".").LocalCommand, childCommands: readonly import(".").CoreCommand[]) => import(".").CoreCommand[] | import(".").LocalCommand | undefined>;
repeatCommandTransformRegistry: import(".").Registry<(getters: import(".").Getters, cmd: import(".").CoreCommand) => import(".").CoreCommand | undefined>;
clipboardHandlersRegistries: {
figureHandlers: import(".").Registry<typeof import(".").AbstractFigureClipboardHandler>;
cellHandlers: import(".").Registry<typeof import(".").AbstractCellClipboardHandler>;
};
pivotRegistry: import("./registry").Registry<import("./helpers/pivot/pivot_registry").PivotRegistryItem>;
pivotTimeAdapterRegistry: import(".").Registry<import(".").PivotTimeAdapter<import(".").CellValue>>;
pivotSidePanelRegistry: import(".").Registry<import("./helpers/pivot/pivot_side_panel_registry").PivotRegistryItem>;
pivotNormalizationValueRegistry: import(".").Registry<(value: string, granularity?: import(".").Granularity | string) => import(".").CellValue>;
supportedPivotPositionalFormulaRegistry: import(".").Registry<boolean>;
pivotToFunctionValueRegistry: import(".").Registry<(value: import(".").CellValue, granularity?: string) => string>;
migrationStepRegistry: import("./registry").Registry<import("./migrations/migration_steps").MigrationStep>;
chartJsExtensionRegistry: import("./registry").Registry<{
register: (chart: import("./types/chart/chartjs").GlobalChart) => void;
unregister: (chart: import("./types/chart/chartjs").GlobalChart) => void;
}>;
};
import "./helpers/figures/charts/chart_data_sources";
import "./registries/chart_types";
import "./clipboard_handlers";
import { Composer } from "./components/composer/composer/composer";
import { Select } from "./components/select/select";
import { ChartRangeDataSourceComponent } from "./components/side_panel/chart/building_blocks/range_data_source/range_data_source";
import { TopBar } from "./components/top_bar/top_bar";
import { parseFormat } from "./helpers/format/format_parser";
import { getFirstPivotFunction, getNumberOfPivotFunctions } from "./helpers/pivot/pivot_composer_helpers";
import { domainToColRowDomain } from "./helpers/pivot/pivot_domain_helpers";
export declare const helpers: {
arg: typeof arg;
isEvaluationError: typeof isEvaluationError;
toBoolean: typeof toBoolean;
toJsDate: typeof toJsDate;
toNumber: typeof toNumber;
toString: typeof toString;
toNormalizedPivotValue: typeof toNormalizedPivotValue;
toFunctionPivotValue: typeof toFunctionPivotValue;
toXC: typeof toXC;
toZone: typeof toZone;
toUnboundedZone: typeof toUnboundedZone;
toCartesian: typeof toCartesian;
numberToLetters: typeof numberToLetters;
lettersToNumber: typeof lettersToNumber;
UuidGenerator: typeof UuidGenerator;
formatValue: typeof formatValue;
createCurrencyFormat: typeof createCurrencyFormat;
ColorGenerator: typeof ColorGenerator;
computeTextWidth: typeof computeTextWidth;
createEmptyWorkbookData: typeof createEmptyWorkbookData;
createEmptySheet: typeof createEmptySheet;
createEmptyExcelSheet: typeof createEmptyExcelSheet;
rgbaToHex: typeof rgbaToHex;
colorToRGBA: typeof colorToRGBA;
positionToZone: typeof positionToZone;
isDefined: typeof isDefined;
isMatrix: typeof isMatrix;
lazy: typeof lazy;
genericRepeat: typeof genericRepeat;
createAction: typeof createAction;
createActions: typeof createActions;
transformRangeData: typeof transformRangeData;
deepEquals: typeof deepEquals;
overlap: typeof overlap;
union: typeof union;
isInside: typeof isInside;
deepCopy: typeof deepCopy;
expandZoneOnInsertion: typeof expandZoneOnInsertion;
reduceZoneOnDeletion: typeof reduceZoneOnDeletion;
unquote: typeof unquote;
getMaxObjectId: typeof getMaxObjectId;
getFirstPivotFunction: typeof getFirstPivotFunction;
getNumberOfPivotFunctions: typeof getNumberOfPivotFunctions;
parseDimension: typeof parseDimension;
isDateOrDatetimeField: typeof isDateOrDatetimeField;
makeFieldProposal: typeof makeFieldProposal;
periodYearToComparable: typeof periodYearToComparable;
insertTokenAfterArgSeparator: typeof insertTokenAfterArgSeparator;
insertTokenAfterLeftParenthesis: typeof insertTokenAfterLeftParenthesis;
mergeContiguousZones: typeof mergeContiguousZones;
getPivotHighlights: typeof getPivotHighlights;
pivotTimeAdapter: typeof pivotTimeAdapter;
UNDO_REDO_PIVOT_COMMANDS: string[];
createPivotFormula: typeof createPivotFormula;
areDomainArgsFieldsValid: typeof areDomainArgsFieldsValid;
splitReference: typeof splitReference;
sanitizeSheetName: typeof sanitizeSheetName;
getUniqueText: typeof getUniqueText;
isNumber: typeof isNumber;
isDateTime: typeof isDateTime;
createCustomFields: typeof createCustomFields;
schemeToColorScale: typeof schemeToColorScale;
isDateTimeFormat: (format: import(".").Format) => boolean;
jsDateToNumber: typeof jsDateToNumber;
numberToJsDate: typeof numberToJsDate;
DateTime: typeof DateTime;
parseFormat: typeof parseFormat;
isFormula: typeof isFormula;
domainToColRowDomain: typeof domainToColRowDomain;
collapseHierarchicalDisplayName: typeof collapseHierarchicalDisplayName;
};
export declare const links: {
isMarkdownLink: typeof isMarkdownLink;
parseMarkdownLink: typeof parseMarkdownLink;
markdownLink: typeof markdownLink;
openLink: typeof openLink;
urlRepresentation: typeof urlRepresentation;
};
export declare const components: {
Checkbox: typeof Checkbox;
Section: typeof Section;
Select: typeof Select;
RoundColorPicker: typeof RoundColorPicker;
ChartDataSeries: typeof ChartDataSeries;
ChartErrorSection: typeof ChartErrorSection;
ChartLabelRange: typeof ChartLabelRange;
ChartRangeDataSourceComponent: typeof ChartRangeDataSourceComponent;
ChartTitle: typeof ChartTitle;
ChartPanel: typeof ChartPanel;
ChartFigure: typeof ChartFigure;
ChartJsComponent: typeof ChartJsComponent;
ClickableCellSortIcon: typeof ClickableCellSortIcon;
ZoomableChartJsComponent: typeof ZoomableChartJsComponent;
Grid: typeof Grid;
GridOverlay: typeof GridOverlay;
ScorecardChart: typeof ScorecardChart;
GaugeChartComponent: typeof GaugeChartComponent;
LineConfigPanel: typeof LineConfigPanel;
BarConfigPanel: typeof BarConfigPanel;
PieChartDesignPanel: typeof PieChartDesignPanel;
GenericChartConfigPanel: typeof GenericChartConfigPanel;
ChartWithAxisDesignPanel: typeof ChartWithAxisDesignPanel;
GenericZoomableChartDesignPanel: typeof GenericZoomableChartDesignPanel;
LineChartDesignPanel: typeof LineChartDesignPanel;
GaugeChartConfigPanel: typeof GaugeChartConfigPanel;
GaugeChartDesignPanel: typeof GaugeChartDesignPanel;
ScorecardChartConfigPanel: typeof ScorecardChartConfigPanel;
ScorecardChartDesignPanel: typeof ScorecardChartDesignPanel;
GeoChartDesignPanel: typeof GeoChartDesignPanel;
RadarChartDesignPanel: typeof RadarChartDesignPanel;
WaterfallChartDesignPanel: typeof WaterfallChartDesignPanel;
ComboChartDesignPanel: typeof ComboChartDesignPanel;
FunnelChartDesignPanel: typeof FunnelChartDesignPanel;
SunburstChartDesignPanel: typeof SunburstChartDesignPanel;
TreeMapChartDesignPanel: typeof TreeMapChartDesignPanel;
ChartTypePicker: typeof ChartTypePicker;
FigureComponent: typeof FigureComponent;
MenuPopover: typeof MenuPopover;
Popover: typeof Popover;
SelectionInput: typeof SelectionInput;
ValidationMessages: typeof ValidationMessages;
AddDimensionButton: typeof AddDimensionButton;
PivotDimensionGranularity: typeof PivotDimensionGranularity;
PivotDimensionOrder: typeof PivotDimensionOrder;
PivotDimension: typeof PivotDimension;
PivotLayoutConfigurator: typeof PivotLayoutConfigurator;
PivotHTMLRenderer: typeof PivotHTMLRenderer;
PivotDeferUpdate: typeof PivotDeferUpdate;
PivotTitleSection: typeof PivotTitleSection;
CogWheelMenu: typeof CogWheelMenu;
TextInput: typeof TextInput;
SidePanelCollapsible: typeof SidePanelCollapsible;
RadioSelection: typeof RadioSelection;
GeoChartRegionSelectSection: typeof GeoChartRegionSelectSection;
ChartDashboardMenu: typeof ChartDashboardMenu;
FullScreenFigure: typeof FullScreenFigure;
NumberInput: typeof NumberInput;
TopBar: typeof TopBar;
Composer: typeof Composer;
};
export declare const hooks: {
useDragAndDropListItems: typeof useDragAndDropListItems;
useHighlights: typeof useHighlights;
useHighlightsOnHover: typeof useHighlightsOnHover;
};
export declare const stores: {
useStoreProvider: typeof useStoreProvider;
DependencyContainer: typeof DependencyContainer;
CellPopoverStore: typeof CellPopoverStore;
ComposerFocusStore: typeof ComposerFocusStore;
CellComposerStore: typeof CellComposerStore;
FindAndReplaceStore: typeof FindAndReplaceStore;
HighlightStore: typeof HighlightStore;
DelayedHoveredCellStore: typeof DelayedHoveredCellStore;
HoveredTableStore: typeof HoveredTableStore;
ModelStore: import("./store_engine").StoreConstructor<import("./model").Model, any[]>;
NotificationStore: typeof NotificationStore;
RendererStore: typeof RendererStore;
SelectionInputStore: typeof SelectionInputStore;
SpreadsheetStore: typeof SpreadsheetStore;
useStore: typeof useStore;
useLocalStore: typeof useLocalStore;
SidePanelStore: typeof SidePanelStore;
PivotSidePanelStore: typeof PivotSidePanelStore;
PivotMeasureDisplayPanelStore: typeof PivotMeasureDisplayPanelStore;
ClientFocusStore: typeof ClientFocusStore;
GridRenderer: typeof GridRenderer;
};
export { getCaretDownSvg, getCaretUpSvg } from "./components/icons/icons";
export { createAutocompleteArgumentsProvider } from "./functions/autocomplete_arguments_provider";
export type { FunctionRegistry } from "./functions/function_registry";
export { categories } from "./functions/function_registry_population";
export type { StoreConstructor, StoreParams } from "./store_engine";
export declare function addFunction(functionName: string, functionDescription: AddFunctionDescription): {
addFunction: (fName: string, fDescription: AddFunctionDescription) => /*elided*/ any;
};
export declare const constants: {
DEFAULT_LOCALE: import(".").Locale;
HIGHLIGHT_COLOR: string;
PIVOT_STATIC_TABLE_CONFIG: {
hasFilters: boolean;
totalRow: boolean;
firstColumn: boolean;
lastColumn: boolean;
numberOfHeaders: number;
bandedRows: boolean;
bandedColumns: boolean;
styleId: string;
automaticAutofill: boolean;
};
PIVOT_INSERT_TABLE_STYLE_ID: string;
ChartTerms: {
[key: string]: any;
ColorScales: Record<Extract<import(".").ChartColorScale, string>, string>;
};
FIGURE_ID_SPLITTER: string;
GRID_ICON_EDGE_LENGTH: number;
GRID_ICON_MARGIN: number;
CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter", "combo", "waterfall", "pyramid", "radar", "geo", "funnel", "sunburst", "treemap", "calendar"];
};
export declare const chartHelpers: typeof CHART_HELPERS & typeof CHART_RUNTIME_HELPERS;
export { SpreadsheetPivotTable } from "./helpers/pivot/table_spreadsheet_pivot";
export type { EnrichedToken } from "./formulas/composer_tokenizer";
export type { AST, ASTFuncall } from "./formulas/parser";
export type * from "./types";
export { DEFAULT_LOCALE, DEFAULT_LOCALES } from "./types";
export { AbstractCellClipboardHandler } from "./clipboard_handlers/abstract_cell_clipboard_handler";
export { AbstractFigureClipboardHandler } from "./clipboard_handlers/abstract_figure_clipboard_handler";
export { PivotRuntimeDefinition } from "./helpers/pivot/pivot_runtime_definition";