@odoo/o-spreadsheet 19.5.0-alpha.6 → 19.5.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 +35670 -34225
- package/dist/o_spreadsheet.css +65 -32
- package/dist/o_spreadsheet.esm.js +35670 -34225
- package/dist/o_spreadsheet.iife.js +35729 -34284
- package/dist/o_spreadsheet.min.iife.js +403 -403
- package/dist/o_spreadsheet.xml +210 -98
- package/dist/types/actions/action.d.ts +1 -7
- package/dist/types/actions/data_actions.d.ts +1 -0
- package/dist/types/actions/menu_items_actions.d.ts +2 -0
- package/dist/types/collaborative/ot/ot_helpers.d.ts +3 -1
- package/dist/types/components/clickable_cells_overlay/clickable_cells_overlay.d.ts +20 -0
- package/dist/types/components/dashboard/dashboard.d.ts +5 -12
- package/dist/types/components/error_tooltip/error_tooltip.d.ts +2 -0
- package/dist/types/components/figures/figure/figure.d.ts +3 -6
- package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +9 -2
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -2
- package/dist/types/components/figures/figure_image/figure_image.d.ts +1 -2
- package/dist/types/components/filters/filter_menu/filter_menu.d.ts +1 -0
- package/dist/types/components/grid/grid.d.ts +2 -0
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +6 -5
- package/dist/types/components/helpers/dom_helpers.d.ts +2 -0
- package/dist/types/components/helpers/wheel_hook.d.ts +1 -1
- package/dist/types/components/link/link_display/link_display.d.ts +1 -0
- package/dist/types/components/link/link_editor/link_editor.d.ts +1 -0
- package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +2 -1
- package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +20 -2
- package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +4 -17
- package/dist/types/components/side_panel/chart/chart_type_picker_popover/chart_type_picker_popover.d.ts +64 -0
- package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup.d.ts +28 -0
- package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup_store.d.ts +13 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +0 -2
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +4 -11
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_store.d.ts +33 -0
- package/dist/types/components/standalone_viewport/standalone_viewport.d.ts +55 -0
- package/dist/types/components/standalone_viewport/standalone_viewport_store.d.ts +28 -0
- package/dist/types/components/tables/hovered_table_store.d.ts +3 -6
- package/dist/types/formulas/code_builder.d.ts +2 -1
- package/dist/types/formulas/compiler.d.ts +6 -0
- package/dist/types/functions/create_compute_function.d.ts +4 -3
- package/dist/types/functions/function_registry.d.ts +1 -5
- package/dist/types/functions/helper_matrices.d.ts +1 -0
- package/dist/types/functions/helper_statistical.d.ts +6 -0
- package/dist/types/functions/module_array.d.ts +41 -23
- package/dist/types/functions/module_database.d.ts +18 -6
- package/dist/types/functions/module_date.d.ts +70 -22
- package/dist/types/functions/module_engineering.d.ts +3 -1
- package/dist/types/functions/module_filter.d.ts +2 -2
- package/dist/types/functions/module_financial.d.ts +105 -35
- package/dist/types/functions/module_info.d.ts +33 -11
- package/dist/types/functions/module_logical.d.ts +16 -8
- package/dist/types/functions/module_lookup.d.ts +23 -15
- package/dist/types/functions/module_math.d.ts +125 -43
- package/dist/types/functions/module_operators.d.ts +7 -3
- package/dist/types/functions/module_statistical.d.ts +78 -22
- package/dist/types/functions/module_text.d.ts +70 -24
- package/dist/types/functions/module_web.d.ts +3 -1
- package/dist/types/helpers/carousel_helpers.d.ts +0 -2
- package/dist/types/helpers/figures/chart.d.ts +2 -0
- package/dist/types/helpers/internal_viewport.d.ts +19 -10
- package/dist/types/helpers/misc.d.ts +1 -0
- package/dist/types/helpers/ui/split_to_columns_interactive.d.ts +1 -1
- package/dist/types/helpers/viewport_collection.d.ts +40 -9
- package/dist/types/helpers/zones.d.ts +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/model.d.ts +1 -0
- package/dist/types/plugins/core/carousel.d.ts +8 -4
- package/dist/types/plugins/core/cell.d.ts +1 -0
- package/dist/types/plugins/core/chart.d.ts +2 -0
- package/dist/types/plugins/core/conditional_format.d.ts +2 -0
- package/dist/types/plugins/core/data_validation.d.ts +2 -0
- package/dist/types/plugins/core/formulas_provider.d.ts +8 -0
- package/dist/types/plugins/core/pivot.d.ts +1 -0
- package/dist/types/plugins/core_plugin.d.ts +7 -3
- package/dist/types/plugins/ui_core_views/cell_evaluation/evaluation_plugin.d.ts +10 -3
- package/dist/types/plugins/ui_feature/ui_options.d.ts +1 -7
- package/dist/types/plugins/ui_feature/ui_sheet.d.ts +2 -1
- package/dist/types/plugins/ui_stateful/filter_evaluation.d.ts +2 -3
- package/dist/types/plugins/ui_stateful/header_positions.d.ts +2 -1
- package/dist/types/registries/chart_registry.d.ts +3 -0
- package/dist/types/registries/data_source_registry.d.ts +15 -0
- package/dist/types/store_engine/dependency_container.d.ts +5 -0
- package/dist/types/store_engine/store_hooks.d.ts +6 -0
- package/dist/types/stores/main_viewport_store.d.ts +11 -0
- package/dist/types/stores/table_resize_store.d.ts +6 -0
- package/dist/types/stores/viewports_store.d.ts +18 -3
- package/dist/types/types/commands.d.ts +23 -15
- package/dist/types/types/core_getters.d.ts +3 -1
- package/dist/types/types/figure.d.ts +26 -3
- package/dist/types/types/functions.d.ts +14 -4
- package/dist/types/types/getters.d.ts +27 -6
- package/dist/types/types/misc.d.ts +9 -1
- package/package.json +2 -2
- package/dist/types/plugins/ui_feature/split_to_columns.d.ts +0 -21
- package/dist/types/plugins/ui_feature/table_resize_ui.d.ts +0 -6
- /package/dist/types/plugins/{ui_feature → ui_stateful}/cell_computed_style.d.ts +0 -0
- /package/dist/types/plugins/{ui_feature → ui_stateful}/figure.d.ts +0 -0
- /package/dist/types/plugins/{ui_feature → ui_stateful}/header_visibility_ui.d.ts +0 -0
- /package/dist/types/plugins/{ui_feature → ui_stateful}/table_computed_style.d.ts +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
-
import { ResizeDirection } from "../../../types/figure";
|
|
3
|
-
import { CSSProperties } from "../../../types/misc";
|
|
2
|
+
import { FigureUI, ResizeDirection } from "../../../types/figure";
|
|
4
3
|
import { Rect } from "../../../types/rendering";
|
|
5
4
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
6
5
|
import { MenuPopover } from "../../menu_popover/menu_popover";
|
|
@@ -11,7 +10,7 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
|
|
|
11
10
|
MenuPopover: typeof MenuPopover;
|
|
12
11
|
};
|
|
13
12
|
protected props: import("@odoo/owl").PropsWithDefaults<{
|
|
14
|
-
figureUI:
|
|
13
|
+
figureUI: FigureUI;
|
|
15
14
|
style: string;
|
|
16
15
|
class: string;
|
|
17
16
|
onMouseDown: (ev: MouseEvent) => void;
|
|
@@ -19,7 +18,6 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
|
|
|
19
18
|
}, "onMouseDown" | "onClickAnchor">;
|
|
20
19
|
private menuState;
|
|
21
20
|
private figureRef;
|
|
22
|
-
private figureWrapperRef;
|
|
23
21
|
private borderWidth;
|
|
24
22
|
get isSelected(): boolean;
|
|
25
23
|
get figureRegistry(): import("../../..").Registry<import("../../../registries/figures_registry").FigureContent>;
|
|
@@ -32,10 +30,9 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
|
|
|
32
30
|
onMouseDown(ev: MouseEvent): void;
|
|
33
31
|
onClick(ev: MouseEvent): void;
|
|
34
32
|
onKeyDown(ev: KeyboardEvent): void;
|
|
35
|
-
private
|
|
33
|
+
private positionInBoundary;
|
|
36
34
|
onContextMenu(ev: MouseEvent): void;
|
|
37
35
|
openContextMenu(anchorRect: Rect): void;
|
|
38
|
-
editWrapperStyle(properties: CSSProperties): void;
|
|
39
36
|
get isFigureResizable(): boolean;
|
|
40
37
|
}
|
|
41
38
|
export {};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
+
import { ViewportsStore } from "../../../stores/viewports_store";
|
|
2
3
|
import { Carousel, CarouselItem } from "../../../types/figure";
|
|
3
4
|
import { CSSProperties, MenuMouseEvent } from "../../../types/misc";
|
|
5
|
+
import { Range } from "../../../types/range";
|
|
4
6
|
import { Rect } from "../../../types/rendering";
|
|
5
7
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
6
8
|
import { Store } from "../../../types/store_engine";
|
|
7
9
|
import { MenuPopover } from "../../menu_popover/menu_popover";
|
|
10
|
+
import { StandaloneViewport } from "../../standalone_viewport/standalone_viewport";
|
|
8
11
|
import { ChartAnimationStore } from "../chart/chartJs/chartjs_animation_store";
|
|
9
12
|
import { ChartMenu } from "../chart/chart_menu/chart_menu";
|
|
10
13
|
export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
@@ -12,6 +15,7 @@ export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
|
12
15
|
static components: {
|
|
13
16
|
ChartMenu: typeof ChartMenu;
|
|
14
17
|
MenuPopover: typeof MenuPopover;
|
|
18
|
+
StandaloneViewport: typeof StandaloneViewport;
|
|
15
19
|
};
|
|
16
20
|
protected props: import("@odoo/owl").Props<{
|
|
17
21
|
figureUI: import("../../..").FigureUI;
|
|
@@ -25,6 +29,7 @@ export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
|
25
29
|
private hiddenItems;
|
|
26
30
|
protected animationStore: Store<ChartAnimationStore> | undefined;
|
|
27
31
|
private fullScreenFigureStore;
|
|
32
|
+
viewStore: Store<ViewportsStore>;
|
|
28
33
|
setup(): void;
|
|
29
34
|
get carousel(): Carousel;
|
|
30
35
|
get selectedCarouselItem(): CarouselItem | undefined;
|
|
@@ -34,7 +39,7 @@ export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
|
34
39
|
isItemSelected(item: CarouselItem): boolean;
|
|
35
40
|
getItemTitle(item: CarouselItem): string;
|
|
36
41
|
onCarouselTabClick(item: CarouselItem): void;
|
|
37
|
-
get
|
|
42
|
+
get carouselStyle(): string;
|
|
38
43
|
get title(): string;
|
|
39
44
|
get titleStyle(): string;
|
|
40
45
|
private updateTabsVisibility;
|
|
@@ -42,6 +47,8 @@ export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
|
42
47
|
toggleMenu(ev: MenuMouseEvent): void;
|
|
43
48
|
toggleFullScreen(): void;
|
|
44
49
|
get fullScreenButtonTitle(): string;
|
|
45
|
-
get visibleCarouselItems(): CarouselItem[];
|
|
46
50
|
openContextMenu(event: MenuMouseEvent): void;
|
|
51
|
+
removeEmptyHeadersFromRange(range: Range): Range;
|
|
52
|
+
onResizeColumns(columnWeights: number[]): void;
|
|
53
|
+
get canResizeDataViewColumns(): boolean;
|
|
47
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChartType } from "../../../types/chart/chart";
|
|
2
|
-
import {
|
|
2
|
+
import { UID } from "../../../types/misc";
|
|
3
3
|
import { Rect } from "../../../types/rendering";
|
|
4
4
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
5
5
|
import { ChartMenu } from "../chart/chart_menu/chart_menu";
|
|
@@ -11,7 +11,6 @@ export declare class ChartFigure extends Component<SpreadsheetChildEnv> {
|
|
|
11
11
|
};
|
|
12
12
|
protected props: import("@odoo/owl").Props<{
|
|
13
13
|
figureUI: import("../../..").FigureUI;
|
|
14
|
-
editFigureStyle?: ((properties: CSSProperties) => void) | undefined;
|
|
15
14
|
isFullScreen?: boolean | undefined;
|
|
16
15
|
openContextMenu?: ((anchorRect: Rect, onClose?: () => void) => void) | undefined;
|
|
17
16
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UID } from "../../../types/misc";
|
|
2
2
|
import { Rect } from "../../../types/rendering";
|
|
3
3
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
4
4
|
import { Component } from "../../../owl3_compatibility_layer";
|
|
@@ -7,7 +7,6 @@ export declare class ImageFigure extends Component<SpreadsheetChildEnv> {
|
|
|
7
7
|
protected props: import("@odoo/owl").Props<{
|
|
8
8
|
figureUI: import("../../..").FigureUI;
|
|
9
9
|
openContextMenu: (anchorRect: Rect, onClose?: () => void) => void;
|
|
10
|
-
editFigureStyle?: ((properties: CSSProperties) => void) | undefined;
|
|
11
10
|
}>;
|
|
12
11
|
private menuButtonRef;
|
|
13
12
|
showMenu(ev: MouseEvent): void;
|
|
@@ -17,6 +17,7 @@ export declare class FilterMenu extends Component<SpreadsheetChildEnv> {
|
|
|
17
17
|
private state;
|
|
18
18
|
private criterionCategory;
|
|
19
19
|
private updatedCriterionValue;
|
|
20
|
+
private viewStore;
|
|
20
21
|
setup(): void;
|
|
21
22
|
get isSortable(): boolean;
|
|
22
23
|
get table(): import("../../..").Table | undefined;
|
|
@@ -10,6 +10,7 @@ import { Autofill } from "../autofill/autofill";
|
|
|
10
10
|
import { ClientTag } from "../collaborative_client_tag/collaborative_client_tag";
|
|
11
11
|
import { ComposerSelection } from "../composer/composer/abstract_composer_store";
|
|
12
12
|
import { GridComposer } from "../composer/grid_composer/grid_composer";
|
|
13
|
+
import { FiguresContainer } from "../figures/figure_container/figure_container";
|
|
13
14
|
import { GridOverlay } from "../grid_overlay/grid_overlay";
|
|
14
15
|
import { GridPopover } from "../grid_popover/grid_popover";
|
|
15
16
|
import { HeadersOverlay } from "../headers_overlay/headers_overlay";
|
|
@@ -50,6 +51,7 @@ export declare class Grid extends Component<SpreadsheetChildEnv> {
|
|
|
50
51
|
HorizontalScrollBar: typeof HorizontalScrollBar;
|
|
51
52
|
TableResizer: typeof TableResizer;
|
|
52
53
|
Selection: typeof Selection;
|
|
54
|
+
FiguresContainer: typeof FiguresContainer;
|
|
53
55
|
};
|
|
54
56
|
protected props: import("@odoo/owl").Props<{
|
|
55
57
|
exposeFocus: (focus: () => void) => void;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { Component } from "../../owl3_compatibility_layer";
|
|
2
|
+
import { ViewportsStore } from "../../stores/viewports_store";
|
|
2
3
|
import { GridClickModifiers, HeaderIndex } from "../../types/misc";
|
|
3
4
|
import { DOMCoordinates } from "../../types/rendering";
|
|
4
5
|
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
5
|
-
import {
|
|
6
|
+
import { Store } from "../../types/store_engine";
|
|
6
7
|
import { GridAddRowsFooter } from "../grid_add_rows_footer/grid_add_rows_footer";
|
|
7
8
|
import { ZoomedMouseEvent } from "../helpers/zoom";
|
|
8
9
|
export declare class GridOverlay extends Component<SpreadsheetChildEnv> {
|
|
9
10
|
static template: string;
|
|
10
11
|
static components: {
|
|
11
|
-
FiguresContainer: typeof FiguresContainer;
|
|
12
12
|
GridAddRowsFooter: typeof GridAddRowsFooter;
|
|
13
13
|
};
|
|
14
14
|
protected props: import("@odoo/owl").PropsWithDefaults<{
|
|
15
|
-
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
15
|
+
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex, ev: MouseEvent) => void;
|
|
16
16
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, zoomedMouseEvent: ZoomedMouseEvent<MouseEvent | PointerEvent>) => void;
|
|
17
17
|
onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
|
|
18
18
|
onGridResized: () => void;
|
|
19
19
|
gridOverlayDimensions: string;
|
|
20
|
-
|
|
20
|
+
hasFooter: boolean;
|
|
21
|
+
}, "onCellDoubleClicked" | "onCellClicked" | "onCellRightClicked" | "onGridResized" | "hasFooter">;
|
|
21
22
|
private gridOverlayRef;
|
|
22
23
|
private cellPopovers;
|
|
23
24
|
private paintFormatStore;
|
|
24
25
|
private hoveredIconStore;
|
|
25
|
-
|
|
26
|
+
viewStore: Store<ViewportsStore>;
|
|
26
27
|
setup(): void;
|
|
27
28
|
get gridOverlayEl(): HTMLElement;
|
|
28
29
|
get style(): string;
|
|
@@ -44,3 +44,5 @@ export declare function isMiddleClickOrCtrlClick(ev: MouseEvent): boolean;
|
|
|
44
44
|
export declare function downloadFile(dataUrl: string, fileName: string): void;
|
|
45
45
|
export declare function isIOS(): boolean;
|
|
46
46
|
export declare function isMobileOS(): boolean;
|
|
47
|
+
/** Check if there is an interactive element (input, select, button, ...) between the event.target and event.currentTarget (inclusive)*/
|
|
48
|
+
export declare function hasInteractiveElementInEventTree(event: Event): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useWheelHandler(handler: (deltaX: number, deltaY: number) => void): (ev: WheelEvent) => void;
|
|
1
|
+
export declare function useWheelHandler(handler: (deltaX: number, deltaY: number, ev: WheelEvent) => void): (ev: WheelEvent) => void;
|
|
@@ -12,6 +12,7 @@ export declare class LinkDisplay extends Component<SpreadsheetChildEnv> {
|
|
|
12
12
|
onClosed?: (() => void) | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
protected cellPopovers: Store<CellPopoverStore>;
|
|
15
|
+
private viewStore;
|
|
15
16
|
setup(): void;
|
|
16
17
|
get cell(): EvaluatedCell;
|
|
17
18
|
get link(): Link;
|
|
@@ -33,6 +33,7 @@ export declare class LinkEditor extends Component<SpreadsheetChildEnv> {
|
|
|
33
33
|
suggestionListRef: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
34
34
|
urlInputContainer: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
35
35
|
private state;
|
|
36
|
+
private viewStore;
|
|
36
37
|
setup(): void;
|
|
37
38
|
computeLinks(): void;
|
|
38
39
|
get linkProposalByCategory(): Record<string, LinkProposal>;
|
|
@@ -10,7 +10,8 @@ export declare class VerticalScrollBar extends Component<SpreadsheetChildEnv> {
|
|
|
10
10
|
setup(): void;
|
|
11
11
|
protected props: import("@odoo/owl").PropsWithDefaults<{
|
|
12
12
|
topOffset: number;
|
|
13
|
-
|
|
13
|
+
hasFooter: boolean;
|
|
14
|
+
}, "hasFooter" | "topOffset">;
|
|
14
15
|
get offset(): import("../..").Pixel;
|
|
15
16
|
get height(): import("../..").Pixel;
|
|
16
17
|
get isDisplayed(): boolean;
|
|
@@ -3,11 +3,19 @@ import { Component } from "../../../owl3_compatibility_layer";
|
|
|
3
3
|
import { TitleDesign } from "../../../types/chart/chart";
|
|
4
4
|
import { CarouselItem } from "../../../types/figure";
|
|
5
5
|
import { UID } from "../../../types/misc";
|
|
6
|
+
import { PropsOf } from "../../../types/props_of";
|
|
6
7
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
8
|
+
import { Popover } from "../../popover/popover";
|
|
9
|
+
import { SelectionInput } from "../../selection_input/selection_input";
|
|
7
10
|
import { TextInput } from "../../text_input/text_input";
|
|
8
11
|
import { TextStyler } from "../chart/building_blocks/text_styler/text_styler";
|
|
12
|
+
import { ChartTypePickerPopover } from "../chart/chart_type_picker_popover/chart_type_picker_popover";
|
|
9
13
|
import { CogWheelMenu } from "../components/cog_wheel_menu/cog_wheel_menu";
|
|
10
14
|
import { Section } from "../components/section/section";
|
|
15
|
+
interface CarouselPanelState {
|
|
16
|
+
popoverProps: PropsOf<Popover> | undefined;
|
|
17
|
+
currentRange?: string;
|
|
18
|
+
}
|
|
11
19
|
export declare class CarouselPanel extends Component<SpreadsheetChildEnv> {
|
|
12
20
|
static template: string;
|
|
13
21
|
static components: {
|
|
@@ -15,6 +23,8 @@ export declare class CarouselPanel extends Component<SpreadsheetChildEnv> {
|
|
|
15
23
|
TextInput: typeof TextInput;
|
|
16
24
|
TextStyler: typeof TextStyler;
|
|
17
25
|
CogWheelMenu: typeof CogWheelMenu;
|
|
26
|
+
ChartTypePickerPopover: typeof ChartTypePickerPopover;
|
|
27
|
+
SelectionInput: typeof SelectionInput;
|
|
18
28
|
};
|
|
19
29
|
protected props: import("@odoo/owl").Props<{
|
|
20
30
|
onCloseSidePanel: () => void;
|
|
@@ -26,13 +36,18 @@ export declare class CarouselPanel extends Component<SpreadsheetChildEnv> {
|
|
|
26
36
|
};
|
|
27
37
|
private dragAndDrop;
|
|
28
38
|
private previewListRef;
|
|
39
|
+
addChartButton: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
40
|
+
state: CarouselPanelState;
|
|
29
41
|
setup(): void;
|
|
30
42
|
get carouselItems(): CarouselItem[];
|
|
31
43
|
get title(): TitleDesign | undefined;
|
|
32
44
|
get carousel(): import("../../..").Carousel;
|
|
33
45
|
getPreviewDivStyle(item: CarouselItem): string;
|
|
34
46
|
getItemId(item: CarouselItem): string;
|
|
35
|
-
addNewChartToCarousel(): void;
|
|
47
|
+
addNewChartToCarousel(ev: MouseEvent): void;
|
|
48
|
+
get supportedChartTypes(): Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
|
|
49
|
+
closePopover(): void;
|
|
50
|
+
onSelectChartType(type: string): void;
|
|
36
51
|
get hasDataView(): boolean;
|
|
37
52
|
isCarouselItemActive(item: CarouselItem): boolean;
|
|
38
53
|
addDataViewToCarousel(): void;
|
|
@@ -52,5 +67,8 @@ export declare class CarouselPanel extends Component<SpreadsheetChildEnv> {
|
|
|
52
67
|
get carouselAddChartInfoMessage(): string;
|
|
53
68
|
getCogWheelMenuItems(item: CarouselItem): ActionSpec[];
|
|
54
69
|
get carouselSheetId(): UID;
|
|
55
|
-
|
|
70
|
+
getItemRangeString(item: CarouselItem): string;
|
|
71
|
+
onSelectionInputChanged(ranges: string[]): void;
|
|
72
|
+
onSelectionInputConfirmed(): void;
|
|
56
73
|
}
|
|
74
|
+
export {};
|
|
@@ -6,41 +6,28 @@ import { PropsOf } from "../../../../types/props_of";
|
|
|
6
6
|
import { SpreadsheetChildEnv } from "../../../../types/spreadsheet_env";
|
|
7
7
|
import { Popover } from "../../../popover/popover";
|
|
8
8
|
import { Section } from "../../components/section/section";
|
|
9
|
+
import { ChartTypePickerPopover } from "../chart_type_picker_popover/chart_type_picker_popover";
|
|
9
10
|
import { MainChartPanelStore } from "../main_chart_panel/main_chart_panel_store";
|
|
10
11
|
interface ChartTypePickerState {
|
|
11
12
|
popoverProps: PropsOf<Popover> | undefined;
|
|
12
|
-
popoverStyle: string;
|
|
13
13
|
}
|
|
14
14
|
export declare class ChartTypePicker extends Component<SpreadsheetChildEnv> {
|
|
15
15
|
static template: string;
|
|
16
16
|
static components: {
|
|
17
17
|
Section: typeof Section;
|
|
18
|
-
|
|
18
|
+
ChartTypePickerPopover: typeof ChartTypePickerPopover;
|
|
19
19
|
};
|
|
20
20
|
protected props: import("@odoo/owl").Props<{
|
|
21
21
|
chartId: UID;
|
|
22
22
|
chartPanelStore: import("../../../../types/store_engine").Store<MainChartPanelStore>;
|
|
23
23
|
}>;
|
|
24
|
-
categories: {
|
|
25
|
-
line: string;
|
|
26
|
-
column: string;
|
|
27
|
-
bar: string;
|
|
28
|
-
area: string;
|
|
29
|
-
pie: string;
|
|
30
|
-
hierarchical: string;
|
|
31
|
-
misc: string;
|
|
32
|
-
};
|
|
33
|
-
chartTypeByCategories: Record<string, ChartSubtypeProperties[]>;
|
|
34
|
-
popoverRef: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
35
24
|
selectRef: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
36
25
|
state: ChartTypePickerState;
|
|
37
|
-
|
|
38
|
-
private getSupportedChartTypes;
|
|
39
|
-
onExternalClick(ev: MouseEvent): void;
|
|
26
|
+
getSupportedChartTypes(): Set<ChartType>;
|
|
40
27
|
onTypeChange(type: ChartType): void;
|
|
41
28
|
private getChartDefinition;
|
|
42
29
|
getSelectedChartSubtypeProperties(): ChartSubtypeProperties;
|
|
43
30
|
onPointerDown(ev: PointerEvent): void;
|
|
44
|
-
|
|
31
|
+
closePopover(): void;
|
|
45
32
|
}
|
|
46
33
|
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Component } from "../../../../owl3_compatibility_layer";
|
|
2
|
+
import { ChartType } from "../../../../types/chart/chart";
|
|
3
|
+
import { ChartSubtypeProperties } from "../../../../types/chart_subtype_properties";
|
|
4
|
+
import { SpreadsheetChildEnv } from "../../../../types/spreadsheet_env";
|
|
5
|
+
import { Popover } from "../../../popover/popover";
|
|
6
|
+
export declare class ChartTypePickerPopover extends Component<SpreadsheetChildEnv> {
|
|
7
|
+
static template: string;
|
|
8
|
+
static components: {
|
|
9
|
+
Popover: typeof Popover;
|
|
10
|
+
};
|
|
11
|
+
protected props: import("@odoo/owl").Props<{
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onSelectSubType: (type: string) => void;
|
|
14
|
+
supportedTypes: {
|
|
15
|
+
add: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst") => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
|
|
16
|
+
clear: () => void;
|
|
17
|
+
delete: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst") => boolean;
|
|
18
|
+
forEach: (callbackfn: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst", value2: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst", set: Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">) => void, thisArg?: any) => void;
|
|
19
|
+
has: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst") => boolean;
|
|
20
|
+
readonly size: number;
|
|
21
|
+
entries: () => SetIterator<["line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst", "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst"]>;
|
|
22
|
+
keys: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
|
|
23
|
+
values: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
|
|
24
|
+
union: <U>(other: ReadonlySetLike<U>) => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst" | U>;
|
|
25
|
+
intersection: <U>(other: ReadonlySetLike<U>) => Set<("line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst") & U>;
|
|
26
|
+
difference: <U>(other: ReadonlySetLike<U>) => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
|
|
27
|
+
symmetricDifference: <U>(other: ReadonlySetLike<U>) => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst" | U>;
|
|
28
|
+
isSubsetOf: (other: ReadonlySetLike<unknown>) => boolean;
|
|
29
|
+
isSupersetOf: (other: ReadonlySetLike<unknown>) => boolean;
|
|
30
|
+
isDisjointFrom: (other: ReadonlySetLike<unknown>) => boolean;
|
|
31
|
+
[Symbol.iterator]: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
|
|
32
|
+
readonly [Symbol.toStringTag]: string;
|
|
33
|
+
};
|
|
34
|
+
popoverProps: {
|
|
35
|
+
maxHeight?: import("../../../..").Pixel | undefined;
|
|
36
|
+
maxWidth?: import("../../../..").Pixel | undefined;
|
|
37
|
+
zIndex?: number | undefined;
|
|
38
|
+
class?: string | undefined;
|
|
39
|
+
anchorRect: import("../../../..").Rect;
|
|
40
|
+
containerRect?: {} | undefined;
|
|
41
|
+
positioning?: "top-right" | "bottom-left" | undefined;
|
|
42
|
+
verticalOffset?: number | undefined;
|
|
43
|
+
onMouseWheel?: (() => void) | undefined;
|
|
44
|
+
onPopoverHidden?: (() => void) | undefined;
|
|
45
|
+
onPopoverMoved?: (() => void) | undefined;
|
|
46
|
+
};
|
|
47
|
+
parentRef?: import("@odoo/owl").ReactiveValue<HTMLElement | null, HTMLElement | null> | undefined;
|
|
48
|
+
selectedChartSubType?: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
categories: {
|
|
51
|
+
line: string;
|
|
52
|
+
column: string;
|
|
53
|
+
bar: string;
|
|
54
|
+
area: string;
|
|
55
|
+
pie: string;
|
|
56
|
+
hierarchical: string;
|
|
57
|
+
misc: string;
|
|
58
|
+
};
|
|
59
|
+
chartTypeByCategories: Record<string, ChartSubtypeProperties[]>;
|
|
60
|
+
popoverRef: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
61
|
+
setup(): void;
|
|
62
|
+
onExternalClick(ev: MouseEvent): void;
|
|
63
|
+
onTypeChange(type: ChartType): void;
|
|
64
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
+
import { UID } from "../../../types/misc";
|
|
3
|
+
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
4
|
+
import { Store } from "../../../types/store_engine";
|
|
5
|
+
import { Checkbox } from "../components/checkbox/checkbox";
|
|
6
|
+
import { Section } from "../components/section/section";
|
|
7
|
+
import { DataSourcesCleanupStore } from "./data_sources_cleanup_store";
|
|
8
|
+
interface State {
|
|
9
|
+
uncheckedDataSources: Record<UID, boolean>;
|
|
10
|
+
}
|
|
11
|
+
export declare class DataSourcesCleanup extends Component<SpreadsheetChildEnv> {
|
|
12
|
+
static template: string;
|
|
13
|
+
static components: {
|
|
14
|
+
Section: typeof Section;
|
|
15
|
+
Checkbox: typeof Checkbox;
|
|
16
|
+
};
|
|
17
|
+
state: State;
|
|
18
|
+
store: Store<DataSourcesCleanupStore>;
|
|
19
|
+
setup(): void;
|
|
20
|
+
onToggleDataSource(type: string, id: UID, checked: boolean): void;
|
|
21
|
+
isDataSourceChecked(type: string, id: UID): boolean;
|
|
22
|
+
get dataSourcesToDelete(): {
|
|
23
|
+
type: string;
|
|
24
|
+
id: UID;
|
|
25
|
+
}[];
|
|
26
|
+
onRemoveUnusedDataSources(): void;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UnusedDataSource } from "../../../registries/data_source_registry";
|
|
2
|
+
import { SpreadsheetStore } from "../../../stores/spreadsheet_store";
|
|
3
|
+
import { Command } from "../../../types/commands";
|
|
4
|
+
interface UnusedDataSourceCategory {
|
|
5
|
+
type: string;
|
|
6
|
+
label: string;
|
|
7
|
+
dataSources: UnusedDataSource[];
|
|
8
|
+
}
|
|
9
|
+
export declare class DataSourcesCleanupStore extends SpreadsheetStore {
|
|
10
|
+
protected handle(cmd: Command): void;
|
|
11
|
+
get unusedDataSourcesCategories(): UnusedDataSourceCategory[];
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -39,9 +39,7 @@ export declare class PivotLayoutConfigurator extends Component<SpreadsheetChildE
|
|
|
39
39
|
private dimensionsRef;
|
|
40
40
|
private dragAndDrop;
|
|
41
41
|
AGGREGATORS: {};
|
|
42
|
-
private composerFocus;
|
|
43
42
|
isDateOrDatetimeField: typeof isDateOrDatetimeField;
|
|
44
|
-
setup(): void;
|
|
45
43
|
startDragAndDrop(dimension: PivotDimensionType, event: MouseEvent): void;
|
|
46
44
|
getGranularitiesFor(field: PivotField): string[];
|
|
47
45
|
startDragAndDropMeasures(measure: PivotMeasure, event: MouseEvent): void;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { NEWLINE } from "../../../constants";
|
|
2
1
|
import { Component } from "../../../owl3_compatibility_layer";
|
|
3
2
|
import { ValueAndLabel } from "../../../types/misc";
|
|
4
3
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
4
|
+
import { Store } from "../../../types/store_engine";
|
|
5
5
|
import { Select } from "../../select/select";
|
|
6
6
|
import { ValidationMessages } from "../../validation_messages/validation_messages";
|
|
7
7
|
import { Checkbox } from "../components/checkbox/checkbox";
|
|
8
8
|
import { Section } from "../components/section/section";
|
|
9
|
-
|
|
10
|
-
interface State {
|
|
11
|
-
separatorValue: SeparatorValue;
|
|
12
|
-
customSeparator: string;
|
|
13
|
-
addNewColumns: boolean;
|
|
14
|
-
}
|
|
9
|
+
import { SplitToColumnsSeparatorValue, SplitToColumnsStore } from "./split_to_columns_store";
|
|
15
10
|
export declare class SplitIntoColumnsPanel extends Component<SpreadsheetChildEnv> {
|
|
16
11
|
static template: string;
|
|
17
12
|
static components: {
|
|
@@ -23,16 +18,14 @@ export declare class SplitIntoColumnsPanel extends Component<SpreadsheetChildEnv
|
|
|
23
18
|
protected props: import("@odoo/owl").Props<{
|
|
24
19
|
onCloseSidePanel: () => void;
|
|
25
20
|
}>;
|
|
26
|
-
|
|
21
|
+
store: Store<SplitToColumnsStore>;
|
|
27
22
|
setup(): void;
|
|
28
|
-
onSeparatorChange(value:
|
|
23
|
+
onSeparatorChange(value: SplitToColumnsSeparatorValue): void;
|
|
29
24
|
updateCustomSeparator(ev: InputEvent): void;
|
|
30
25
|
updateAddNewColumnsCheckbox(addNewColumns: boolean): void;
|
|
31
26
|
confirm(): void;
|
|
32
27
|
get errorMessages(): string[];
|
|
33
28
|
get warningMessages(): string[];
|
|
34
|
-
get separatorValue(): string;
|
|
35
29
|
get separators(): ValueAndLabel[];
|
|
36
30
|
get isConfirmDisabled(): boolean;
|
|
37
31
|
}
|
|
38
|
-
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NEWLINE } from "../../../constants";
|
|
2
|
+
import { SpreadsheetStore } from "../../../stores/spreadsheet_store";
|
|
3
|
+
import { Command, DispatchResult } from "../../../types/commands";
|
|
4
|
+
export type SplitToColumnsSeparatorValue = "auto" | "custom" | " " | "," | ";" | typeof NEWLINE;
|
|
5
|
+
export declare class SplitToColumnsStore extends SpreadsheetStore {
|
|
6
|
+
mutators: readonly ["setSeparatorValue", "setCustomSeparator", "setShouldAddNewColumns"];
|
|
7
|
+
storeGetters: readonly ["canSplitIntoColumns"];
|
|
8
|
+
separatorValue: SplitToColumnsSeparatorValue;
|
|
9
|
+
customSeparator: string;
|
|
10
|
+
addNewColumns: boolean;
|
|
11
|
+
setSeparatorValue(separatorValue: SplitToColumnsSeparatorValue): void;
|
|
12
|
+
setCustomSeparator(customSeparator: string): void;
|
|
13
|
+
setShouldAddNewColumns(addNewColumns: boolean): void;
|
|
14
|
+
canSplitIntoColumns(args: {
|
|
15
|
+
force: boolean;
|
|
16
|
+
}): DispatchResult;
|
|
17
|
+
handle(cmd: Command): void;
|
|
18
|
+
get automaticSeparatorOfSelection(): string;
|
|
19
|
+
private getAutoSeparatorForString;
|
|
20
|
+
private splitIntoColumns;
|
|
21
|
+
private getSplittedCols;
|
|
22
|
+
private splitAndRemoveTrailingEmpty;
|
|
23
|
+
private willSplittedColsOverwriteContent;
|
|
24
|
+
private removeMergesInSplitZone;
|
|
25
|
+
private addColsToAvoidCollisions;
|
|
26
|
+
private getColsToAddToAvoidCollision;
|
|
27
|
+
private addColumnsToNotOverflowSheet;
|
|
28
|
+
private checkSingleColSelected;
|
|
29
|
+
private checkNonEmptySelector;
|
|
30
|
+
private checkNotOverwritingContent;
|
|
31
|
+
private checkSeparatorInSelection;
|
|
32
|
+
get separatorString(): string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Component } from "../../owl3_compatibility_layer";
|
|
2
|
+
import { RendererStore } from "../../stores/renderer_store";
|
|
3
|
+
import { ViewportsStore } from "../../stores/viewports_store";
|
|
4
|
+
import { HeaderIndex } from "../../types/misc";
|
|
5
|
+
import { Rect } from "../../types/rendering";
|
|
6
|
+
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
7
|
+
import { Store } from "../../types/store_engine";
|
|
8
|
+
import { ClickableCellsOverlay } from "../clickable_cells_overlay/clickable_cells_overlay";
|
|
9
|
+
import { GridOverlay } from "../grid_overlay/grid_overlay";
|
|
10
|
+
import { GridPopover } from "../grid_popover/grid_popover";
|
|
11
|
+
import { CellPopoverStore } from "../popover/cell_popover_store";
|
|
12
|
+
import { VerticalScrollBar } from "../scrollbar/scrollbar_vertical";
|
|
13
|
+
interface ColResizer {
|
|
14
|
+
col: HeaderIndex;
|
|
15
|
+
style: string;
|
|
16
|
+
}
|
|
17
|
+
interface DnDResizeState {
|
|
18
|
+
col: HeaderIndex | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare class StandaloneViewport extends Component<SpreadsheetChildEnv> {
|
|
21
|
+
static template: string;
|
|
22
|
+
static components: {
|
|
23
|
+
VerticalScrollBar: typeof VerticalScrollBar;
|
|
24
|
+
GridOverlay: typeof GridOverlay;
|
|
25
|
+
ClickableCellsOverlay: typeof ClickableCellsOverlay;
|
|
26
|
+
GridPopover: typeof GridPopover;
|
|
27
|
+
};
|
|
28
|
+
protected props: import("@odoo/owl").PropsWithDefaults<{
|
|
29
|
+
range: import("../..").Range;
|
|
30
|
+
canResizeColumns: boolean;
|
|
31
|
+
zoomLevel: number;
|
|
32
|
+
onResizeColumns?: ((columnWeights: number[] | undefined) => void) | undefined;
|
|
33
|
+
columnWeights?: number[] | undefined;
|
|
34
|
+
}, "canResizeColumns">;
|
|
35
|
+
private canvasRef;
|
|
36
|
+
private containerRef;
|
|
37
|
+
private store;
|
|
38
|
+
dndState: DnDResizeState;
|
|
39
|
+
onMouseWheel: (ev: WheelEvent) => void;
|
|
40
|
+
rendererStore: Store<RendererStore>;
|
|
41
|
+
viewStore: Store<ViewportsStore>;
|
|
42
|
+
cellPopoverStore: Store<CellPopoverStore>;
|
|
43
|
+
setup(): void;
|
|
44
|
+
get containerWidth(): number;
|
|
45
|
+
get containerHeight(): number;
|
|
46
|
+
get hasVerticalScrollBar(): boolean | 0;
|
|
47
|
+
get scrollBarContainerStyle(): string;
|
|
48
|
+
onCellDoubleClicked(col: HeaderIndex, row: HeaderIndex, ev: MouseEvent): void;
|
|
49
|
+
get gridOverlayDimensions(): string;
|
|
50
|
+
get colResizers(): ColResizer[];
|
|
51
|
+
onResizerPointerDown(ev: MouseEvent, resizer: ColResizer): void;
|
|
52
|
+
onResizerDoubleClick(): void;
|
|
53
|
+
getGridRect(): Rect;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SpreadsheetStore } from "../../stores/spreadsheet_store";
|
|
2
|
+
import { Command } from "../../types/commands";
|
|
3
|
+
import { HeaderDimensions, HeaderIndex, UID } from "../../types/misc";
|
|
4
|
+
import { Range } from "../../types/range";
|
|
5
|
+
import { GridRenderingContext } from "../../types/rendering";
|
|
6
|
+
import { Get } from "../../types/store_engine";
|
|
7
|
+
export declare class StandaloneViewportStore extends SpreadsheetStore {
|
|
8
|
+
mutators: readonly ["setContainerSize", "setRange", "resizeColumn", "setCustomColWeights"];
|
|
9
|
+
cachedColDimensions: Record<HeaderIndex, HeaderDimensions> | undefined;
|
|
10
|
+
private containerWidth;
|
|
11
|
+
private containerHeight;
|
|
12
|
+
private range;
|
|
13
|
+
private customColWeights;
|
|
14
|
+
private viewStore;
|
|
15
|
+
constructor(get: Get, range: Range, customColWeights?: number[]);
|
|
16
|
+
handle(cmd: Command): void;
|
|
17
|
+
setContainerSize(width: number, height: number): "noStateChange" | undefined;
|
|
18
|
+
setRange(range: Range): "noStateChange" | undefined;
|
|
19
|
+
setCustomColWeights(weights: number[] | undefined): "noStateChange" | undefined;
|
|
20
|
+
resizeColumn(resizedCol: HeaderIndex, weightDelta: number, weightsAtStartOfDrag: number[]): void;
|
|
21
|
+
private changeColumnWeights;
|
|
22
|
+
get renderingContext(): Omit<GridRenderingContext, "ctx" | "thinLineWidth">;
|
|
23
|
+
get headerDimensionsCallback(): (sheetId: UID, dimension: "COL" | "ROW", index: number) => HeaderDimensions;
|
|
24
|
+
getHeaderDimensions(sheetId: UID, dimension: "COL" | "ROW", index: number): HeaderDimensions;
|
|
25
|
+
get columnWeights(): number[];
|
|
26
|
+
private computeColDimensions;
|
|
27
|
+
private normalizeWeights;
|
|
28
|
+
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { PositionMap } from "../../helpers/cells/position_map";
|
|
2
2
|
import { SpreadsheetStore } from "../../stores/spreadsheet_store";
|
|
3
|
-
import {
|
|
4
|
-
import { Color, Position } from "../../types/misc";
|
|
3
|
+
import { CellPosition, Color } from "../../types/misc";
|
|
5
4
|
export declare class HoveredTableStore extends SpreadsheetStore {
|
|
6
5
|
mutators: readonly ["clear", "hover"];
|
|
7
|
-
|
|
8
|
-
row: number | undefined;
|
|
6
|
+
position: CellPosition | undefined;
|
|
9
7
|
overlayColors: PositionMap<Color>;
|
|
10
|
-
|
|
11
|
-
hover(position: Partial<Position>): "noStateChange" | undefined;
|
|
8
|
+
hover(position: CellPosition | undefined): "noStateChange" | undefined;
|
|
12
9
|
clear(): void;
|
|
13
10
|
private computeOverlay;
|
|
14
11
|
}
|