@odoo/o-spreadsheet 19.5.0-alpha.13 → 19.5.0-alpha.15
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 +2849 -2625
- package/dist/o_spreadsheet.css +17 -6
- package/dist/o_spreadsheet.esm.js +2845 -2625
- package/dist/o_spreadsheet.iife.js +2848 -2624
- package/dist/o_spreadsheet.min.iife.js +299 -299
- package/dist/o_spreadsheet.xml +21 -13
- package/dist/types/actions/menu_items_actions.d.ts +3 -2
- package/dist/types/collaborative/command_squisher.d.ts +1 -1
- package/dist/types/collaborative/session.d.ts +3 -1
- package/dist/types/components/figures/chart/chartJs/zoomable_chart/zoomable_chartjs.d.ts +1 -0
- package/dist/types/components/figures/figure/figure.d.ts +1 -0
- package/dist/types/components/figures/figure_container/figure_container.d.ts +6 -2
- package/dist/types/components/full_screen_figure/full_screen_figure.d.ts +12 -1
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +1 -0
- package/dist/types/components/headers_overlay/headers_overlay.d.ts +2 -0
- package/dist/types/components/helpers/figure_drag_helper.d.ts +3 -3
- package/dist/types/components/helpers/figure_snap_helper.d.ts +8 -3
- package/dist/types/components/helpers/zoom.d.ts +0 -10
- package/dist/types/components/link/link_editor/link_editor.d.ts +1 -0
- package/dist/types/components/side_panel/components/radio_selection/radio_selection.d.ts +1 -1
- package/dist/types/components/side_panel/find_and_replace/find_and_replace.d.ts +1 -0
- package/dist/types/components/side_panel/find_and_replace/find_and_replace_store.d.ts +2 -1
- package/dist/types/components/side_panel/table_panel/table_panel.d.ts +6 -0
- package/dist/types/components/side_panel/table_style_editor_panel/table_style_editor_panel.d.ts +2 -0
- package/dist/types/components/tables/table_resizer/table_resizer.d.ts +1 -0
- package/dist/types/components/top_bar/color_editor/color_editor.d.ts +1 -1
- package/dist/types/constants.d.ts +2 -2
- package/dist/types/formulas/compiler.d.ts +1 -1
- package/dist/types/functions/helper_lookup.d.ts +1 -1
- package/dist/types/helpers/cells/cell_evaluation.d.ts +1 -1
- package/dist/types/helpers/color_themes.d.ts +2 -0
- package/dist/types/helpers/figures/chart.d.ts +5 -5
- package/dist/types/helpers/figures/charts/chart_common.d.ts +3 -3
- package/dist/types/helpers/figures/charts/chart_data_sources.d.ts +3 -3
- package/dist/types/helpers/figures/charts/chart_ui_common.d.ts +3 -3
- package/dist/types/helpers/figures/charts/runtime/chart_data_extractor.d.ts +13 -12
- package/dist/types/helpers/figures/charts/runtime/chartjs_title.d.ts +2 -2
- package/dist/types/helpers/filter_helpers.d.ts +2 -2
- package/dist/types/helpers/links.d.ts +1 -1
- package/dist/types/helpers/owl3_helpers.d.ts +4 -0
- package/dist/types/helpers/pivot/pivot_composer_helpers.d.ts +1 -1
- package/dist/types/helpers/pivot/pivot_presentation.d.ts +2 -2
- package/dist/types/helpers/pivot/pivot_registry.d.ts +4 -5
- package/dist/types/helpers/pivot/spreadsheet_pivot/runtime_definition_spreadsheet_pivot.d.ts +2 -2
- package/dist/types/helpers/range.d.ts +1 -1
- package/dist/types/index.d.ts +7 -8
- package/dist/types/model.d.ts +17 -10
- package/dist/types/owl3_compatibility_layer.d.ts +1 -14
- package/dist/types/plugins/core/range.d.ts +1 -1
- package/dist/types/plugins/core/squisher.d.ts +4 -1
- package/dist/types/plugins/core/tables.d.ts +2 -1
- package/dist/types/plugins/core/unsquisher.d.ts +1 -1
- package/dist/types/plugins/core_plugin.d.ts +1 -1
- package/dist/types/plugins/{ui_stateful → evaluation}/cell_computed_style.d.ts +4 -4
- package/dist/types/plugins/{ui_core_views/cell_evaluation/evaluation_plugin.d.ts → evaluation/cell_evaluation/cell_evaluation_plugin.d.ts} +7 -7
- package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/compilation_parameters.d.ts +2 -2
- package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/evaluator.d.ts +2 -2
- package/dist/types/plugins/{ui_core_views → evaluation}/custom_colors.d.ts +5 -5
- package/dist/types/plugins/{ui_core_views → evaluation}/dynamic_tables.d.ts +4 -4
- package/dist/types/plugins/{ui_feature → evaluation}/dynamic_translate.d.ts +2 -2
- package/dist/types/plugins/evaluation/evaluation_chart.d.ts +27 -0
- package/dist/types/plugins/{ui_core_views → evaluation}/evaluation_conditional_format.d.ts +4 -4
- package/dist/types/plugins/{ui_core_views → evaluation}/evaluation_data_validation.d.ts +4 -4
- package/dist/types/plugins/{ui_stateful → evaluation}/filter_evaluation.d.ts +5 -5
- package/dist/types/plugins/{ui_core_views → evaluation}/fingerprint.d.ts +2 -2
- package/dist/types/plugins/evaluation/formula_tracker.d.ts +8 -0
- package/dist/types/plugins/evaluation/geo_loader.d.ts +12 -0
- package/dist/types/plugins/{ui_core_views → evaluation}/header_sizes_ui.d.ts +5 -5
- package/dist/types/plugins/{ui_stateful/header_visibility_ui.d.ts → evaluation/header_visibility_evaluation.d.ts} +2 -2
- package/dist/types/plugins/evaluation/pivot_presence_plugin.d.ts +12 -0
- package/dist/types/plugins/{ui_core_views → evaluation}/pivot_ui.d.ts +6 -6
- package/dist/types/plugins/evaluation/subtotal_evaluation.d.ts +5 -0
- package/dist/types/plugins/{ui_stateful → evaluation}/table_computed_style.d.ts +7 -7
- package/dist/types/plugins/evaluation_plugin.d.ts +31 -0
- package/dist/types/plugins/plugin_registries.d.ts +11 -5
- package/dist/types/plugins/ui_feature/chart_ui.d.ts +6 -0
- package/dist/types/plugins/ui_feature/color_theme.d.ts +0 -3
- package/dist/types/plugins/ui_feature/geo_features.d.ts +1 -6
- package/dist/types/plugins/{ui_core_views → ui_stateful}/cell_icon_plugin.d.ts +2 -2
- package/dist/types/registries/chart_data_source_registry.d.ts +4 -5
- package/dist/types/registries/chart_registry.d.ts +4 -5
- package/dist/types/registries/criterion_registry.d.ts +4 -4
- package/dist/types/registries/evaluation_registry.d.ts +2 -2
- package/dist/types/registries/figures_registry.d.ts +1 -1
- package/dist/types/stores/zoom_store.d.ts +15 -2
- package/dist/types/types/collaborative/transport_service.d.ts +1 -0
- package/dist/types/types/commands.d.ts +32 -17
- package/dist/types/types/functions.d.ts +2 -2
- package/dist/types/types/getters.d.ts +102 -20
- package/dist/types/types/model.d.ts +2 -1
- package/dist/types/types/rendering.d.ts +2 -0
- package/package.json +2 -2
- package/dist/types/plugins/core_view_plugin.d.ts +0 -29
- package/dist/types/plugins/ui_core_views/evaluation_chart.d.ts +0 -26
- package/dist/types/plugins/ui_core_views/formula_tracker.d.ts +0 -8
- package/dist/types/plugins/ui_feature/pivot_presence_plugin.d.ts +0 -11
- package/dist/types/plugins/ui_feature/subtotal_evaluation.d.ts +0 -5
- package/dist/types/types/core_getters.d.ts +0 -77
- /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/binary_grid.d.ts +0 -0
- /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/formula_dependency_graph.d.ts +0 -0
- /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/interval_tree.d.ts +0 -0
- /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/position_set.d.ts +0 -0
- /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/r_tree.d.ts +0 -0
- /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/range_set.d.ts +0 -0
- /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/spreading_relation.d.ts +0 -0
- /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/zone_set.d.ts +0 -0
package/dist/o_spreadsheet.xml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
3
3
|
@see https://github.com/odoo/o-spreadsheet
|
|
4
|
-
@version 19.5.0-alpha.
|
|
5
|
-
@date 2026-
|
|
6
|
-
@hash
|
|
4
|
+
@version 19.5.0-alpha.15
|
|
5
|
+
@date 2026-09-01T11:37:12.549Z
|
|
6
|
+
@hash 23c00bb
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<t t-else="" t-call="o-spreadsheet-Icon.TRIANGLE_EXCLAMATION"/>
|
|
17
17
|
</div>
|
|
18
18
|
<div class="d-flex flex-column overflow-hidden">
|
|
19
|
-
<span class="ps-2
|
|
19
|
+
<span class="ps-2" t-out="msg"/>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
@@ -697,7 +697,11 @@
|
|
|
697
697
|
<t t-name="o-spreadsheet-TableStyleEditorPanel">
|
|
698
698
|
<div class="o-table-style-editor-panel">
|
|
699
699
|
<Section title.translate="Style name">
|
|
700
|
-
<
|
|
700
|
+
<TextInput
|
|
701
|
+
value="this.state.styleName"
|
|
702
|
+
onChange="(value) => this.state.styleName = value"
|
|
703
|
+
alwaysShowBorder="true"
|
|
704
|
+
/>
|
|
701
705
|
</Section>
|
|
702
706
|
<Section class="'pt-1'" title.translate="Style color">
|
|
703
707
|
<RoundColorPicker
|
|
@@ -2072,7 +2076,8 @@
|
|
|
2072
2076
|
type="text"
|
|
2073
2077
|
class="o-input o-input-without-count o-replace"
|
|
2074
2078
|
t-on-keydown="this.onKeydownReplace"
|
|
2075
|
-
t-
|
|
2079
|
+
t-att-value="this.store.toReplace"
|
|
2080
|
+
t-on-input="this.onReplaceInput"
|
|
2076
2081
|
placeholder="e.g. 'replace me'"
|
|
2077
2082
|
/>
|
|
2078
2083
|
</div>
|
|
@@ -2219,7 +2224,8 @@
|
|
|
2219
2224
|
</t>
|
|
2220
2225
|
</div>
|
|
2221
2226
|
<div t-else="" class="o-data-analysis-empty text-muted p-3 text-center">
|
|
2222
|
-
No chart suggestions available for the selected data.
|
|
2227
|
+
No chart suggestions available for the selected data. Note that the order of selected
|
|
2228
|
+
columns can impact chart suggestions.
|
|
2223
2229
|
</div>
|
|
2224
2230
|
</div>
|
|
2225
2231
|
<div t-else="" class="o-data-analysis-empty text-muted p-3 text-center">
|
|
@@ -5844,7 +5850,8 @@
|
|
|
5844
5850
|
title="Link label"
|
|
5845
5851
|
placeholder="e.g. 'Link label'"
|
|
5846
5852
|
class="o-input"
|
|
5847
|
-
t-
|
|
5853
|
+
t-att-value="this.state.label"
|
|
5854
|
+
t-on-input="(ev) => this.state.label = ev.target.value"
|
|
5848
5855
|
/>
|
|
5849
5856
|
</div>
|
|
5850
5857
|
|
|
@@ -5861,8 +5868,8 @@
|
|
|
5861
5868
|
placeholder="e.g. 'http://www.odoo.com'"
|
|
5862
5869
|
title="Link URL"
|
|
5863
5870
|
t-ref="this.urlInput"
|
|
5864
|
-
t-
|
|
5865
|
-
t-on-input="this.
|
|
5871
|
+
t-att-value="this.state.url"
|
|
5872
|
+
t-on-input="this.onLinkUrlInput"
|
|
5866
5873
|
/>
|
|
5867
5874
|
</t>
|
|
5868
5875
|
<t t-else="">
|
|
@@ -7718,6 +7725,7 @@
|
|
|
7718
7725
|
t-on-keydown="(ev) => this.onKeyDown(ev)">
|
|
7719
7726
|
<t>
|
|
7720
7727
|
<t
|
|
7728
|
+
t-if="this.figureUI.width and this.figureUI.height"
|
|
7721
7729
|
t-component="this.figureComponent"
|
|
7722
7730
|
figureUI="this.figureUI"
|
|
7723
7731
|
isFullScreen="true"
|
|
@@ -7955,7 +7963,7 @@
|
|
|
7955
7963
|
style="this.getFigureStyle(figureUI)"
|
|
7956
7964
|
class="this.getFigureClass(figureUI)"
|
|
7957
7965
|
onMouseDown="(ev) => this.startDraggingFigure(figureUI, ev)"
|
|
7958
|
-
onClickAnchor="
|
|
7966
|
+
onClickAnchor.bind="this.resizeAllSelectedFigures"
|
|
7959
7967
|
/>
|
|
7960
7968
|
</t>
|
|
7961
7969
|
</div>
|
|
@@ -8209,7 +8217,7 @@
|
|
|
8209
8217
|
</t>
|
|
8210
8218
|
<t t-foreach="this.getMenuItems()" t-as="item" t-key="item.id">
|
|
8211
8219
|
<div
|
|
8212
|
-
class="o-chart-menu-item
|
|
8220
|
+
class="o-chart-menu-item lh-1 p-1 d-flex align-items-center justify-content-center rounded"
|
|
8213
8221
|
t-att-title="item.label"
|
|
8214
8222
|
t-on-click="item.onClick"
|
|
8215
8223
|
t-att-data-id="item.id">
|
|
@@ -8218,7 +8226,7 @@
|
|
|
8218
8226
|
</t>
|
|
8219
8227
|
<t t-if="this.isMenuAvailable()">
|
|
8220
8228
|
<div
|
|
8221
|
-
class="o-chart-menu-item
|
|
8229
|
+
class="o-chart-menu-item lh-1 p-1 d-flex align-items-center justify-content-center rounded"
|
|
8222
8230
|
t-on-click="this.openContextMenu">
|
|
8223
8231
|
<t t-call="o-spreadsheet-Icon.MORE_MENU"/>
|
|
8224
8232
|
</div>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { Model } from "../model";
|
|
1
2
|
import { Format } from "../types/format";
|
|
2
3
|
import { Dimension, Style } from "../types/misc";
|
|
3
4
|
import { SpreadsheetChildEnv } from "../types/spreadsheet_env";
|
|
4
5
|
import { Table } from "../types/table";
|
|
5
6
|
import { ActionSpec } from "./action";
|
|
6
|
-
export declare function setFormatter(
|
|
7
|
-
export declare function setStyle(
|
|
7
|
+
export declare function setFormatter(model: Model, format: Format): void;
|
|
8
|
+
export declare function setStyle(model: Model, style: Style): void;
|
|
8
9
|
export declare const PASTE_ACTION: (env: SpreadsheetChildEnv) => Promise<void>;
|
|
9
10
|
export declare const PASTE_AS_VALUE_ACTION: (env: SpreadsheetChildEnv) => Promise<void>;
|
|
10
11
|
export declare const PASTE_FORMAT_ACTION: (env: SpreadsheetChildEnv) => Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SquishedFormula } from "../plugins/core/squisher";
|
|
2
2
|
import { CoreCommand } from "../types/commands";
|
|
3
|
-
import { CoreGetters } from "../types/
|
|
3
|
+
import { CoreGetters } from "../types/getters";
|
|
4
4
|
import { UpdateCellData } from "../types/misc";
|
|
5
5
|
/**
|
|
6
6
|
When squishing, commands go through 3 stages:
|
|
@@ -15,6 +15,7 @@ export declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
15
15
|
private transportService;
|
|
16
16
|
private serverRevisionId;
|
|
17
17
|
private commandSquisher;
|
|
18
|
+
private shouldVerifySquish;
|
|
18
19
|
/**
|
|
19
20
|
* Positions of the others client.
|
|
20
21
|
*/
|
|
@@ -48,8 +49,9 @@ export declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
48
49
|
* between all connected clients
|
|
49
50
|
* @param serverRevisionId
|
|
50
51
|
* @param commandSquisher used to squish and unsquish commands to reduce the size of messages sent to the server
|
|
52
|
+
* @param shouldVerifySquish either the commands should be unsquished and verified before being sent to the server
|
|
51
53
|
*/
|
|
52
|
-
constructor(revisions: RevisionLog<Revision>, transportService: TransportService<CollaborationMessage>, serverRevisionId: UID | undefined, commandSquisher: ICommandSquisher);
|
|
54
|
+
constructor(revisions: RevisionLog<Revision>, transportService: TransportService<CollaborationMessage>, serverRevisionId: UID | undefined, commandSquisher: ICommandSquisher, shouldVerifySquish?: boolean);
|
|
53
55
|
canApplyOptimisticUpdate(): boolean;
|
|
54
56
|
/**
|
|
55
57
|
* Add a new revision to the collaborative session.
|
|
@@ -18,6 +18,7 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
|
|
|
18
18
|
}, "onMouseDown" | "onClickAnchor">;
|
|
19
19
|
private menuState;
|
|
20
20
|
private figureRef;
|
|
21
|
+
private zoomStore;
|
|
21
22
|
get isSelected(): boolean;
|
|
22
23
|
get isThemeDependant(): boolean;
|
|
23
24
|
get figureRegistry(): import("../../..").Registry<import("../../../registries/figures_registry").FigureContent>;
|
|
@@ -100,6 +100,10 @@ export declare class FiguresContainer extends Component<SpreadsheetChildEnv> {
|
|
|
100
100
|
private rectToCss;
|
|
101
101
|
private getContainerRect;
|
|
102
102
|
get selectedRectStyle(): string;
|
|
103
|
+
get maxDimensions(): {
|
|
104
|
+
maxX: import("../../..").Pixel;
|
|
105
|
+
maxY: import("../../..").Pixel;
|
|
106
|
+
};
|
|
103
107
|
private getInverseViewportPositionStyle;
|
|
104
108
|
private getFigureContainer;
|
|
105
109
|
private getDndFigureRect;
|
|
@@ -107,7 +111,7 @@ export declare class FiguresContainer extends Component<SpreadsheetChildEnv> {
|
|
|
107
111
|
private isMenuClick;
|
|
108
112
|
startDraggingFigure(figureUI: FigureUI, ev: MouseEvent): void;
|
|
109
113
|
/**
|
|
110
|
-
* Initialize the resize of
|
|
114
|
+
* Initialize the resize of the selected figures with mouse movements
|
|
111
115
|
*
|
|
112
116
|
* @param dirX X direction of the resize. -1 : resize from the left border of the figure, 0 : no resize in X, 1 :
|
|
113
117
|
* resize from the right border of the figure
|
|
@@ -115,7 +119,7 @@ export declare class FiguresContainer extends Component<SpreadsheetChildEnv> {
|
|
|
115
119
|
* resize from the bottom border of the figure
|
|
116
120
|
* @param ev Mouse Event
|
|
117
121
|
*/
|
|
118
|
-
|
|
122
|
+
resizeAllSelectedFigures(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
119
123
|
private getOtherFigures;
|
|
120
124
|
getFigureStyle(figureUI: FigureUI): string;
|
|
121
125
|
getFigureClass(figureUI: FigureUI): string;
|
|
@@ -8,10 +8,21 @@ export declare class FullScreenFigure extends Component<SpreadsheetChildEnv> {
|
|
|
8
8
|
};
|
|
9
9
|
private fullScreenFigureStore;
|
|
10
10
|
private fullScreenFigureRef;
|
|
11
|
+
private containerSize;
|
|
11
12
|
spreadsheetRect: import("../..").Rect;
|
|
12
13
|
figureRegistry: import("../..").Registry<import("../../registries/figures_registry").FigureContent>;
|
|
13
14
|
setup(): void;
|
|
14
|
-
get figureUI():
|
|
15
|
+
get figureUI(): {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
x: import("../..").Pixel;
|
|
19
|
+
y: import("../..").Pixel;
|
|
20
|
+
id: import("../..").UID;
|
|
21
|
+
tag: string;
|
|
22
|
+
col: import("../..").HeaderIndex;
|
|
23
|
+
row: import("../..").HeaderIndex;
|
|
24
|
+
offset: import("../..").PixelPosition;
|
|
25
|
+
} | undefined;
|
|
15
26
|
get chartId(): import("../..").UID | undefined;
|
|
16
27
|
exitFullScreen(): void;
|
|
17
28
|
onKeyDown(ev: KeyboardEvent): void;
|
|
@@ -24,6 +24,7 @@ export declare class GridOverlay extends Component<SpreadsheetChildEnv> {
|
|
|
24
24
|
private paintFormatStore;
|
|
25
25
|
private hoveredIconStore;
|
|
26
26
|
viewStore: Store<ViewportsStore>;
|
|
27
|
+
private zoomStore;
|
|
27
28
|
setup(): void;
|
|
28
29
|
get gridOverlayEl(): HTMLElement;
|
|
29
30
|
get style(): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component } from "../../owl3_compatibility_layer";
|
|
2
2
|
import { ViewportsStore } from "../../stores/viewports_store";
|
|
3
|
+
import { ZoomStore } from "../../stores/zoom_store";
|
|
3
4
|
import { HeaderDimensions, HeaderIndex, Pixel } from "../../types/misc";
|
|
4
5
|
import { EdgeScrollInfo } from "../../types/rendering";
|
|
5
6
|
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
@@ -30,6 +31,7 @@ declare abstract class AbstractResizer extends Component<SpreadsheetChildEnv> {
|
|
|
30
31
|
}>;
|
|
31
32
|
private composerFocusStore;
|
|
32
33
|
protected viewStore: Store<ViewportsStore>;
|
|
34
|
+
protected zoomStore: Store<ZoomStore>;
|
|
33
35
|
PADDING: number;
|
|
34
36
|
MAX_SIZE_MARGIN: number;
|
|
35
37
|
MIN_ELEMENT_SIZE: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FigureUI } from "../../types/figure";
|
|
2
2
|
import { PixelPosition } from "../../types/misc";
|
|
3
|
-
import { SheetDOMScrollInfo } from "../../types/rendering";
|
|
3
|
+
import { DOMDimension, Rect, SheetDOMScrollInfo } from "../../types/rendering";
|
|
4
4
|
export declare function dragFigureForMove({ x: mouseX, y: mouseY }: PixelPosition, { x: mouseInitialX, y: mouseInitialY }: PixelPosition, initialFigures: FigureUI[], { maxX, maxY }: {
|
|
5
5
|
maxX: number;
|
|
6
6
|
maxY: number;
|
|
7
7
|
}, { scrollX: initialScrollX, scrollY: initialScrollY }: SheetDOMScrollInfo, { scrollX, scrollY }: SheetDOMScrollInfo): FigureUI[];
|
|
8
|
-
export declare function dragFigureForResize(
|
|
8
|
+
export declare function dragFigureForResize(initialRect: Rect, dirX: -1 | 0 | 1, dirY: -1 | 0 | 1, { x: mouseX, y: mouseY }: PixelPosition, { x: mouseInitialX, y: mouseInitialY }: PixelPosition, keepRatio: boolean, minFigSize: DOMDimension, { scrollX: initialScrollX, scrollY: initialScrollY }: SheetDOMScrollInfo, { scrollX, scrollY }: SheetDOMScrollInfo, { maxX, maxY }: {
|
|
9
9
|
maxX: number;
|
|
10
10
|
maxY: number;
|
|
11
|
-
}):
|
|
11
|
+
}): Rect;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FigureUI } from "../../types/figure";
|
|
2
2
|
import { Pixel, UID } from "../../types/misc";
|
|
3
|
+
import { Rect } from "../../types/rendering";
|
|
3
4
|
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
4
5
|
export type HFigureAxisType = "top" | "bottom" | "vCenter";
|
|
5
6
|
export type VFigureAxisType = "right" | "left" | "hCenter";
|
|
@@ -9,8 +10,10 @@ export interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
9
10
|
snappedAxisType: T;
|
|
10
11
|
position: Pixel;
|
|
11
12
|
}
|
|
12
|
-
interface SnapReturn {
|
|
13
|
+
interface SnapMoveReturn extends SnapReturn {
|
|
13
14
|
snappedFigures: FigureUI[];
|
|
15
|
+
}
|
|
16
|
+
export interface SnapReturn {
|
|
14
17
|
verticalSnapLine?: SnapLine<VFigureAxisType>;
|
|
15
18
|
horizontalSnapLine?: SnapLine<HFigureAxisType>;
|
|
16
19
|
}
|
|
@@ -18,10 +21,12 @@ interface SnapReturn {
|
|
|
18
21
|
* Try to snap the given figure to other figures when moving the figure, and return the snapped
|
|
19
22
|
* figure and the possible snap lines, if any were found
|
|
20
23
|
*/
|
|
21
|
-
export declare function snapForMove(env: SpreadsheetChildEnv, figuresToSnap: FigureUI[], otherFigures: FigureUI[]):
|
|
24
|
+
export declare function snapForMove(env: SpreadsheetChildEnv, figuresToSnap: FigureUI[], otherFigures: FigureUI[]): SnapMoveReturn;
|
|
22
25
|
/**
|
|
23
26
|
* Try to snap the given figure to the other figures when resizing the figure, and return the snapped
|
|
24
27
|
* figure and the possible snap lines, if any were found
|
|
25
28
|
*/
|
|
26
|
-
export declare function snapForResize(env: SpreadsheetChildEnv, resizeDirX: -1 | 0 | 1, resizeDirY: -1 | 0 | 1,
|
|
29
|
+
export declare function snapForResize(env: SpreadsheetChildEnv, resizeDirX: -1 | 0 | 1, resizeDirY: -1 | 0 | 1, rect: Rect, otherFigures: FigureUI[]): {
|
|
30
|
+
snappedRect: Rect;
|
|
31
|
+
} & SnapReturn;
|
|
27
32
|
export {};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { Pixel } from "../../types/misc";
|
|
2
|
-
import { DOMCoordinates } from "../../types/rendering";
|
|
3
|
-
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
4
2
|
export type ZoomedMouseEvent<T extends MouseEvent | PointerEvent> = {
|
|
5
3
|
clientX: Pixel;
|
|
6
4
|
clientY: Pixel;
|
|
@@ -8,11 +6,3 @@ export type ZoomedMouseEvent<T extends MouseEvent | PointerEvent> = {
|
|
|
8
6
|
offsetY: Pixel;
|
|
9
7
|
ev: T;
|
|
10
8
|
};
|
|
11
|
-
/**
|
|
12
|
-
* Return a POJO containing the original event as well as the client position and the client offset
|
|
13
|
-
* where the event would target if the spreadsheet was not zoomed
|
|
14
|
-
* @param ev unzoomed mouse event
|
|
15
|
-
* @param originalTargetPosition The original target bounding rect the resulting ZoomedMouseEvent offset must refer to
|
|
16
|
-
* @returns a ZoomedMouseEvent
|
|
17
|
-
*/
|
|
18
|
-
export declare function withZoom<T extends MouseEvent>(env: SpreadsheetChildEnv, ev: T, originalTargetPosition?: DOMCoordinates | null): ZoomedMouseEvent<T>;
|
|
@@ -35,6 +35,7 @@ export declare class LinkEditor extends Component<SpreadsheetChildEnv> {
|
|
|
35
35
|
private state;
|
|
36
36
|
private viewStore;
|
|
37
37
|
setup(): void;
|
|
38
|
+
onLinkUrlInput(ev: InputEvent): void;
|
|
38
39
|
computeLinks(): void;
|
|
39
40
|
get linkProposalByCategory(): Record<string, LinkProposal>;
|
|
40
41
|
get defaultState(): LinkState;
|
|
@@ -11,7 +11,7 @@ export declare class RadioSelection extends Component<SpreadsheetChildEnv> {
|
|
|
11
11
|
onChange: (value: unknown) => void;
|
|
12
12
|
selectedValue: string;
|
|
13
13
|
name: string;
|
|
14
|
-
direction: "
|
|
14
|
+
direction: "horizontal" | "vertical";
|
|
15
15
|
}, "direction">;
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -34,6 +34,7 @@ export declare class FindAndReplacePanel extends Component<SpreadsheetChildEnv>
|
|
|
34
34
|
setup(): void;
|
|
35
35
|
onFocusSearch(): void;
|
|
36
36
|
onSearchInput(ev: InputEvent): void;
|
|
37
|
+
onReplaceInput(ev: InputEvent): void;
|
|
37
38
|
onKeydownPanel(ev: KeyboardEvent): void;
|
|
38
39
|
onKeydownSearch(ev: KeyboardEvent): void;
|
|
39
40
|
onKeydownReplace(ev: KeyboardEvent): void;
|
|
@@ -5,7 +5,7 @@ import { SpreadsheetStore } from "../../../stores/spreadsheet_store";
|
|
|
5
5
|
import { SearchOptions } from "../../../types/find_and_replace";
|
|
6
6
|
import { Get } from "../../../types/store_engine";
|
|
7
7
|
export declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
|
|
8
|
-
mutators: readonly ["updateSearchOptions", "updateSearchContent", "searchFormulas", "selectPreviousMatch", "selectNextMatch", "replace"];
|
|
8
|
+
mutators: readonly ["updateSearchOptions", "updateSearchContent", "updateReplaceContent", "searchFormulas", "selectPreviousMatch", "selectNextMatch", "replace"];
|
|
9
9
|
private allSheetsMatches;
|
|
10
10
|
private activeSheetMatches;
|
|
11
11
|
private specificRangeMatches;
|
|
@@ -28,6 +28,7 @@ export declare class FindAndReplaceStore extends SpreadsheetStore implements Hig
|
|
|
28
28
|
constructor(get: Get);
|
|
29
29
|
get searchMatches(): CellPosition[];
|
|
30
30
|
updateSearchContent(toSearch: string): void;
|
|
31
|
+
updateReplaceContent(toReplace: string): void;
|
|
31
32
|
updateSearchOptions(searchOptions: Partial<SearchOptions>): void;
|
|
32
33
|
searchFormulas(showFormula: boolean): void;
|
|
33
34
|
selectPreviousMatch(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
2
|
import { CommandResult, DispatchResult } from "../../../types/commands";
|
|
3
|
+
import { Range } from "../../../types/range";
|
|
3
4
|
import { TableConfig } from "../../../types/table";
|
|
4
5
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
5
6
|
import { NumberInput } from "../../number_input/number_input";
|
|
@@ -31,6 +32,11 @@ export declare class TablePanel extends Component<SpreadsheetChildEnv> {
|
|
|
31
32
|
}>;
|
|
32
33
|
state: State;
|
|
33
34
|
setup(): void;
|
|
35
|
+
get highlights(): {
|
|
36
|
+
range: Range;
|
|
37
|
+
noFill: boolean;
|
|
38
|
+
color: string;
|
|
39
|
+
}[];
|
|
34
40
|
updateHasFilters(hasFilters: boolean): void;
|
|
35
41
|
updateTableConfig(attName: keyof TableConfig, value: boolean | string | number): DispatchResult;
|
|
36
42
|
updateHasHeaders(hasHeaders: boolean): void;
|
package/dist/types/components/side_panel/table_style_editor_panel/table_style_editor_panel.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Color } from "../../../types/misc";
|
|
|
3
3
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
4
4
|
import { TableConfig, TableStyle, TableStyleTemplateName } from "../../../types/table";
|
|
5
5
|
import { TableStylePreview } from "../../tables/table_style_preview/table_style_preview";
|
|
6
|
+
import { TextInput } from "../../text_input/text_input";
|
|
6
7
|
import { RoundColorPicker } from "../components/round_color_picker/round_color_picker";
|
|
7
8
|
import { Section } from "../components/section/section";
|
|
8
9
|
interface State {
|
|
@@ -17,6 +18,7 @@ export declare class TableStyleEditorPanel extends Component<SpreadsheetChildEnv
|
|
|
17
18
|
Section: typeof Section;
|
|
18
19
|
RoundColorPicker: typeof RoundColorPicker;
|
|
19
20
|
TableStylePreview: typeof TableStylePreview;
|
|
21
|
+
TextInput: typeof TextInput;
|
|
20
22
|
};
|
|
21
23
|
protected props: import("@odoo/owl").Props<{
|
|
22
24
|
onCloseSidePanel: () => void;
|
|
@@ -17,6 +17,7 @@ export declare class TableResizer extends Component<SpreadsheetChildEnv> {
|
|
|
17
17
|
}, onPointerMove: (col: HeaderIndex, row: HeaderIndex, ev: MouseEvent) => void, onPointerUp: () => void, startScrollDirection?: import("../../helpers/drag_and_drop_grid_hook").DnDDirection) => void;
|
|
18
18
|
};
|
|
19
19
|
private viewStore;
|
|
20
|
+
private zoomStore;
|
|
20
21
|
setup(): void;
|
|
21
22
|
get containerStyle(): string;
|
|
22
23
|
onMouseDown(ev: PointerEvent): void;
|
|
@@ -9,7 +9,7 @@ export declare class TopBarColorEditor extends Component<SpreadsheetChildEnv> {
|
|
|
9
9
|
static template: string;
|
|
10
10
|
protected props: import("@odoo/owl").Props<{
|
|
11
11
|
class: string;
|
|
12
|
-
style: "
|
|
12
|
+
style: "fillColor" | "textColor";
|
|
13
13
|
icon: string;
|
|
14
14
|
title: string;
|
|
15
15
|
}>;
|
|
@@ -12,6 +12,7 @@ export declare const FROZEN_PANE_BORDER_COLOR = "#DADFE8";
|
|
|
12
12
|
export declare const COMPOSER_ASSISTANT_COLOR = "light-dark(#9B359B, #B972A6)";
|
|
13
13
|
export declare const COLOR_TRANSPARENT = "#00000000";
|
|
14
14
|
export declare const TABLE_HOVER_BACKGROUND_COLOR = "#017E8414";
|
|
15
|
+
export declare const DEFAULT_CHART_BACKGROUND_COLOR = "#FFFFFF";
|
|
15
16
|
export declare const CHART_WATERFALL_POSITIVE_COLOR = "#4EA7F2";
|
|
16
17
|
export declare const CHART_WATERFALL_NEGATIVE_COLOR = "#EA6175";
|
|
17
18
|
export declare const CHART_WATERFALL_SUBTOTAL_COLOR = "#AAAAAA";
|
|
@@ -113,7 +114,6 @@ export declare const DEFAULT_SCORECARD_HEIGHT = 101;
|
|
|
113
114
|
export declare const DEFAULT_SCORECARD_WIDTH = 213;
|
|
114
115
|
export declare const FIGURE_BORDER_WIDTH = 1;
|
|
115
116
|
export declare const ACTIVE_BORDER_WIDTH = 2;
|
|
116
|
-
export declare const MIN_FIG_SIZE = 80;
|
|
117
117
|
export declare const MAX_CHAR_LABEL = 20;
|
|
118
118
|
export declare const FIGURE_ID_SPLITTER = "??";
|
|
119
119
|
export declare const DEFAULT_GAUGE_LOWER_COLOR = "#EA6175";
|
|
@@ -127,7 +127,7 @@ export declare const DEFAULT_SCORECARD_BASELINE_FONT_SIZE = 16;
|
|
|
127
127
|
export declare const LINE_FILL_TRANSPARENCY = 0.4;
|
|
128
128
|
export declare const LINE_DATA_POINT_RADIUS = 3;
|
|
129
129
|
export declare const DEFAULT_WINDOW_SIZE = 2;
|
|
130
|
-
export declare const MAX_CHART_PREVIEW_DATA_POINTS =
|
|
130
|
+
export declare const MAX_CHART_PREVIEW_DATA_POINTS = 20;
|
|
131
131
|
export declare const MESSAGE_VERSION = 1;
|
|
132
132
|
export declare const FORBIDDEN_SHEETNAME_CHARS: readonly ["'", "*", "?", "/", "\\", "[", "]"];
|
|
133
133
|
export declare const FORBIDDEN_SHEETNAME_CHARS_IN_EXCEL_REGEX: RegExp;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreGetters } from "../types/core_getters";
|
|
2
1
|
import { ComputeFunction } from "../types/functions";
|
|
2
|
+
import { CoreGetters } from "../types/getters";
|
|
3
3
|
import { ApplyRangeChange, ApplyRenameNamedRange, FormulaToExecute, LiteralValues, NamedRange, UID } from "../types/misc";
|
|
4
4
|
import { Range, RangeStringOptions } from "../types/range";
|
|
5
5
|
import { AST } from "./parser";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreGetters } from "../types/core_getters";
|
|
2
1
|
import { EvalContext } from "../types/functions";
|
|
2
|
+
import { CoreGetters } from "../types/getters";
|
|
3
3
|
import { FunctionResultObject, Maybe, UID } from "../types/misc";
|
|
4
4
|
import { PivotCoreMeasure } from "../types/pivot";
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompiledFormula } from "../../formulas/compiler";
|
|
2
2
|
import { Cell, CellValue, EvaluatedCell, FormulaCell, LiteralCell } from "../../types/cells";
|
|
3
|
-
import { CoreGetters } from "../../types/core_getters";
|
|
4
3
|
import { Format, LocaleFormat } from "../../types/format";
|
|
4
|
+
import { CoreGetters } from "../../types/getters";
|
|
5
5
|
import { Locale } from "../../types/locale";
|
|
6
6
|
import { CellPosition, FunctionResultObject, Style, UID } from "../../types/misc";
|
|
7
7
|
export declare function evaluateLiteral(literalCell: LiteralCell, localeFormat: LocaleFormat, position?: CellPosition): EvaluatedCell;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CompiledFormula } from "../../formulas/compiler";
|
|
2
2
|
import { ChartCreationContext, ChartData, ChartDefinition } from "../../types/chart/chart";
|
|
3
|
-
import { CoreGetters } from "../../types/
|
|
4
|
-
import { Getters } from "../../types/getters";
|
|
3
|
+
import { CoreGetters, EvaluationGetters } from "../../types/getters";
|
|
5
4
|
import { RangeAdapterFunctions, UID } from "../../types/misc";
|
|
6
5
|
import { Range } from "../../types/range";
|
|
6
|
+
import { ColorThemeName } from "../../types/rendering";
|
|
7
7
|
import { Validator } from "../../types/validator";
|
|
8
8
|
export declare class SpreadsheetChart {
|
|
9
9
|
private readonly getters;
|
|
@@ -23,9 +23,9 @@ export declare class SpreadsheetChart {
|
|
|
23
23
|
duplicateInDuplicatedSheet(sheetIdFrom: UID, sheetIdTo: UID): ChartDefinition<string>;
|
|
24
24
|
copyInSheetId(sheetIdTo: UID): ChartDefinition<Range>;
|
|
25
25
|
getContextCreation(): ChartCreationContext;
|
|
26
|
-
getDefinitionForExcel(getters:
|
|
27
|
-
getData(getters:
|
|
26
|
+
getDefinitionForExcel(getters: EvaluationGetters): import("../..").ExcelChartDefinition | undefined;
|
|
27
|
+
getData(getters: EvaluationGetters, chartId: UID): ChartData;
|
|
28
28
|
getFormulas(getters: CoreGetters): CompiledFormula[];
|
|
29
|
-
getRuntime(getters:
|
|
29
|
+
getRuntime(getters: EvaluationGetters, chartId: UID, colorThemeName: ColorThemeName): import("../..").ChartRuntime;
|
|
30
30
|
static deleteInvalidKeys(definition: ChartDefinition<any>): ChartDefinition<any>;
|
|
31
31
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChartAxisFormats, ChartDefinition, ChartRangeDataSource, DataSet, DataSetStyle, DatasetValues, ExcelChartDataset } from "../../../types/chart/chart";
|
|
2
2
|
import { CommandResult } from "../../../types/commands";
|
|
3
|
-
import { CoreGetters } from "../../../types/core_getters";
|
|
4
3
|
import { LocaleFormat } from "../../../types/format";
|
|
5
|
-
import {
|
|
4
|
+
import { CoreGetters } from "../../../types/getters";
|
|
6
5
|
import { Locale } from "../../../types/locale";
|
|
7
6
|
import { Color, RangeAdapterFunctions, UID } from "../../../types/misc";
|
|
8
7
|
import { Range } from "../../../types/range";
|
|
8
|
+
import { ColorThemeName } from "../../../types/rendering";
|
|
9
9
|
import { ColorGenerator } from "../../color";
|
|
10
10
|
export declare const TREND_LINE_XAXIS_ID = "x1";
|
|
11
11
|
export declare const MOVING_AVERAGE_TREND_LINE_XAXIS_ID = "xMovingAverage";
|
|
@@ -61,4 +61,4 @@ export declare function truncateLabel(label: string | undefined, maxLen?: number
|
|
|
61
61
|
export declare function isTrendLineAxis(axisID: string): axisID is "x1" | "xMovingAverage";
|
|
62
62
|
export declare function getChartBackgroundColor({ background }: {
|
|
63
63
|
background?: Color;
|
|
64
|
-
},
|
|
64
|
+
}, colorThemeName: ColorThemeName): Color;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChartDataSourceBuilder } from "../../../registries/chart_data_source_registry";
|
|
2
2
|
import { ChartData, ChartRangeDataSource, DataSet } from "../../../types/chart/chart";
|
|
3
|
-
import {
|
|
3
|
+
import { EvaluationGetters } from "../../../types/getters";
|
|
4
4
|
import { FunctionResultObject } from "../../../types/misc";
|
|
5
5
|
import { Range } from "../../../types/range";
|
|
6
6
|
export declare const ChartRangeDataSourceHandler: ChartDataSourceBuilder<ChartRangeDataSource<string>, ChartRangeDataSource<Range>>;
|
|
7
|
-
export declare function getChartData(getters:
|
|
7
|
+
export declare function getChartData(getters: EvaluationGetters, dataSource: ChartRangeDataSource): ChartData;
|
|
8
8
|
/**
|
|
9
9
|
* Get the data from a dataSet
|
|
10
10
|
*/
|
|
11
|
-
export declare function getData(getters:
|
|
11
|
+
export declare function getData(getters: EvaluationGetters, ds: DataSet): FunctionResultObject[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChartConfiguration } from "chart.js";
|
|
2
2
|
import { ChartRuntime, ChartType } from "../../../types/chart/chart";
|
|
3
3
|
import { Figure } from "../../../types/figure";
|
|
4
|
-
import { DOMDimension } from "../../../types/rendering";
|
|
4
|
+
import { ColorThemeName, DOMDimension } from "../../../types/rendering";
|
|
5
5
|
export declare const CHART_COMMON_OPTIONS: {
|
|
6
6
|
responsive: true;
|
|
7
7
|
maintainAspectRatio: false;
|
|
@@ -22,8 +22,8 @@ export declare const CHART_COMMON_OPTIONS: {
|
|
|
22
22
|
* of a large dataset would make Chart.js slow without any visible benefit on a small canvas.
|
|
23
23
|
*/
|
|
24
24
|
export declare function limitChartConfigDataPoints(config: ChartConfiguration<any>, maxPoints?: number): ChartConfiguration<any>;
|
|
25
|
-
export declare function chartToImageUrl(runtime: ChartRuntime, figure: Figure, type: ChartType): Promise<string | undefined>;
|
|
26
|
-
export declare function chartToImageFile(runtime: ChartRuntime, figure: Figure, type: ChartType): Promise<Blob | null>;
|
|
25
|
+
export declare function chartToImageUrl(runtime: ChartRuntime, figure: Figure, type: ChartType, colorThemeName?: ColorThemeName): Promise<string | undefined>;
|
|
26
|
+
export declare function chartToImageFile(runtime: ChartRuntime, figure: Figure, type: ChartType, colorThemeName?: ColorThemeName): Promise<Blob | null>;
|
|
27
27
|
/**
|
|
28
28
|
* Draw the given chart on the canvas.
|
|
29
29
|
*
|
|
@@ -12,24 +12,25 @@ import { RadarChartDefinition } from "../../../../types/chart/radar_chart";
|
|
|
12
12
|
import { SunburstChartDefinition } from "../../../../types/chart/sunburst_chart";
|
|
13
13
|
import { TreeMapChartDefinition } from "../../../../types/chart/tree_map_chart";
|
|
14
14
|
import { Format } from "../../../../types/format";
|
|
15
|
-
import {
|
|
15
|
+
import { EvaluationGetters } from "../../../../types/getters";
|
|
16
16
|
import { Locale } from "../../../../types/locale";
|
|
17
17
|
import { FunctionResultObject } from "../../../../types/misc";
|
|
18
18
|
import { Range } from "../../../../types/range";
|
|
19
|
+
import { ColorThemeName } from "../../../../types/rendering";
|
|
19
20
|
import { BubbleChartData } from "../bubble_chart";
|
|
20
|
-
export declare function getBarChartData(definition: GenericDefinition<BarChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
21
|
-
export declare function getCalendarChartData(definition: GenericDefinition<CalendarChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
22
|
-
export declare function getPyramidChartData(definition: PyramidChartDefinition, { labelValues, dataSetsValues }: ChartData, getters:
|
|
23
|
-
export declare function getLineChartData(definition: GenericDefinition<LineChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
24
|
-
export declare function getPieChartData(definition: GenericDefinition<PieChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
25
|
-
export declare function getRadarChartData(definition: GenericDefinition<RadarChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
26
|
-
export declare function getGeoChartData(definition: GeoChartDefinition, { labelValues, dataSetsValues }: ChartData, getters:
|
|
27
|
-
export declare function getFunnelChartData(definition: GenericDefinition<FunnelChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
28
|
-
export declare function getHierarchalChartData(definition: SunburstChartDefinition | TreeMapChartDefinition, { labelValues, dataSetsValues }: ChartData, getters:
|
|
29
|
-
export declare function getBubbleChartData(definition: BubbleChartDefinition<Range>, getters:
|
|
21
|
+
export declare function getBarChartData(definition: GenericDefinition<BarChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters: EvaluationGetters, colorThemeName: ColorThemeName): ChartRuntimeGenerationArgs;
|
|
22
|
+
export declare function getCalendarChartData(definition: GenericDefinition<CalendarChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters: EvaluationGetters, colorThemeName: ColorThemeName): ChartRuntimeGenerationArgs;
|
|
23
|
+
export declare function getPyramidChartData(definition: PyramidChartDefinition, { labelValues, dataSetsValues }: ChartData, getters: EvaluationGetters, colorThemeName: ColorThemeName): ChartRuntimeGenerationArgs;
|
|
24
|
+
export declare function getLineChartData(definition: GenericDefinition<LineChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters: EvaluationGetters, colorThemeName: ColorThemeName): ChartRuntimeGenerationArgs;
|
|
25
|
+
export declare function getPieChartData(definition: GenericDefinition<PieChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters: EvaluationGetters, colorThemeName: ColorThemeName): ChartRuntimeGenerationArgs;
|
|
26
|
+
export declare function getRadarChartData(definition: GenericDefinition<RadarChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters: EvaluationGetters, colorThemeName: ColorThemeName): ChartRuntimeGenerationArgs;
|
|
27
|
+
export declare function getGeoChartData(definition: GeoChartDefinition, { labelValues, dataSetsValues }: ChartData, getters: EvaluationGetters, colorThemeName: ColorThemeName): GeoChartRuntimeGenerationArgs;
|
|
28
|
+
export declare function getFunnelChartData(definition: GenericDefinition<FunnelChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters: EvaluationGetters, colorThemeName: ColorThemeName): ChartRuntimeGenerationArgs;
|
|
29
|
+
export declare function getHierarchalChartData(definition: SunburstChartDefinition | TreeMapChartDefinition, { labelValues, dataSetsValues }: ChartData, getters: EvaluationGetters, colorThemeName: ColorThemeName): ChartRuntimeGenerationArgs;
|
|
30
|
+
export declare function getBubbleChartData(definition: BubbleChartDefinition<Range>, getters: EvaluationGetters, colorThemeName: ColorThemeName): BubbleChartData;
|
|
30
31
|
export declare function getTrendDatasetForBarChart(config: TrendConfiguration, data: FunctionResultObject[]): Point[] | undefined;
|
|
31
32
|
export declare function getTrendDatasetForLineChart(config: TrendConfiguration, data: FunctionResultObject[], labels: string[], axisType: AxisType, locale: Locale): Point[] | undefined;
|
|
32
33
|
export declare function canChartParseLabels(chartData: ChartData): boolean;
|
|
33
34
|
export declare function getChartLabelFormat(labelValues: LabelValues): Format | undefined;
|
|
34
35
|
export declare function makeDatasetsCumulative(datasets: DatasetValues[], order: "asc" | "desc"): DatasetValues[];
|
|
35
|
-
export declare function getTopPaddingForDashboard(definition: GenericDefinition<PieChartDefinition | LineChartDefinition | BarChartDefinition>, getters:
|
|
36
|
+
export declare function getTopPaddingForDashboard(definition: GenericDefinition<PieChartDefinition | LineChartDefinition | BarChartDefinition>, getters: EvaluationGetters): 0 | 30;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TitleOptions } from "chart.js";
|
|
2
2
|
import { TitleDesign } from "../../../..";
|
|
3
|
-
import {
|
|
3
|
+
import { EvaluationGetters } from "../../../../types/getters";
|
|
4
4
|
import { DeepPartial } from "../../../../types/misc";
|
|
5
5
|
export declare function getChartTitle({ title, legendPosition, background, }: {
|
|
6
6
|
title: TitleDesign;
|
|
7
7
|
legendPosition: string;
|
|
8
8
|
background?: string;
|
|
9
|
-
}, getters:
|
|
9
|
+
}, getters: EvaluationGetters): DeepPartial<TitleOptions>;
|