@odoo/o-spreadsheet 19.5.0-alpha.14 → 19.5.0-alpha.16
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 +9789 -9616
- package/dist/o_spreadsheet.css +16 -15
- package/dist/o_spreadsheet.esm.js +9627 -9458
- package/dist/o_spreadsheet.iife.js +9631 -9458
- package/dist/o_spreadsheet.min.iife.js +295 -295
- package/dist/o_spreadsheet.xml +8 -6
- 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/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/zoom.d.ts +0 -10
- package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +1 -1
- package/dist/types/components/side_panel/chart/chart_type_picker_popover/chart_type_picker_popover.d.ts +12 -12
- package/dist/types/components/side_panel/components/radio_selection/radio_selection.d.ts +1 -1
- package/dist/types/components/side_panel/table_panel/table_panel.d.ts +6 -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 -1
- 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/figures/chart.d.ts +4 -5
- package/dist/types/helpers/figures/charts/chart_common.d.ts +1 -1
- package/dist/types/helpers/figures/charts/chart_data_sources.d.ts +3 -3
- package/dist/types/helpers/figures/charts/runtime/chart_data_extractor.d.ts +12 -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/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 -7
- package/dist/types/model.d.ts +17 -10
- 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/{ui_core_views → evaluation}/evaluation_chart.d.ts +4 -4
- 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/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 +3 -4
- package/dist/types/registries/criterion_registry.d.ts +4 -4
- package/dist/types/registries/evaluation_registry.d.ts +2 -2
- package/dist/types/stores/viewports_store.d.ts +0 -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 +25 -10
- package/dist/types/types/functions.d.ts +2 -2
- package/dist/types/types/getters.d.ts +101 -20
- package/package.json +1 -1
- package/dist/types/plugins/core_view_plugin.d.ts +0 -29
- 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.16
|
|
5
|
+
@date 2026-09-04T07:53:24.976Z
|
|
6
|
+
@hash bb7357a
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -2224,7 +2224,8 @@
|
|
|
2224
2224
|
</t>
|
|
2225
2225
|
</div>
|
|
2226
2226
|
<div t-else="" class="o-data-analysis-empty text-muted p-3 text-center">
|
|
2227
|
-
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.
|
|
2228
2229
|
</div>
|
|
2229
2230
|
</div>
|
|
2230
2231
|
<div t-else="" class="o-data-analysis-empty text-muted p-3 text-center">
|
|
@@ -7724,6 +7725,7 @@
|
|
|
7724
7725
|
t-on-keydown="(ev) => this.onKeyDown(ev)">
|
|
7725
7726
|
<t>
|
|
7726
7727
|
<t
|
|
7728
|
+
t-if="this.figureUI.width and this.figureUI.height"
|
|
7727
7729
|
t-component="this.figureComponent"
|
|
7728
7730
|
figureUI="this.figureUI"
|
|
7729
7731
|
isFullScreen="true"
|
|
@@ -8215,7 +8217,7 @@
|
|
|
8215
8217
|
</t>
|
|
8216
8218
|
<t t-foreach="this.getMenuItems()" t-as="item" t-key="item.id">
|
|
8217
8219
|
<div
|
|
8218
|
-
class="o-chart-menu-item
|
|
8220
|
+
class="o-chart-menu-item lh-1 p-1 d-flex align-items-center justify-content-center rounded"
|
|
8219
8221
|
t-att-title="item.label"
|
|
8220
8222
|
t-on-click="item.onClick"
|
|
8221
8223
|
t-att-data-id="item.id">
|
|
@@ -8224,7 +8226,7 @@
|
|
|
8224
8226
|
</t>
|
|
8225
8227
|
<t t-if="this.isMenuAvailable()">
|
|
8226
8228
|
<div
|
|
8227
|
-
class="o-chart-menu-item
|
|
8229
|
+
class="o-chart-menu-item lh-1 p-1 d-flex align-items-center justify-content-center rounded"
|
|
8228
8230
|
t-on-click="this.openContextMenu">
|
|
8229
8231
|
<t t-call="o-spreadsheet-Icon.MORE_MENU"/>
|
|
8230
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>;
|
|
@@ -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,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>;
|
|
@@ -45,7 +45,7 @@ export declare class CarouselPanel extends Component<SpreadsheetChildEnv> {
|
|
|
45
45
|
getPreviewDivStyle(item: CarouselItem): string;
|
|
46
46
|
getItemId(item: CarouselItem): string;
|
|
47
47
|
addNewChartToCarousel(ev: MouseEvent): void;
|
|
48
|
-
get supportedChartTypes(): Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
48
|
+
get supportedChartTypes(): Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
|
|
49
49
|
closePopover(): void;
|
|
50
50
|
onSelectChartType(type: string): void;
|
|
51
51
|
get hasDataView(): boolean;
|
|
@@ -12,23 +12,23 @@ export declare class ChartTypePickerPopover extends Component<SpreadsheetChildEn
|
|
|
12
12
|
onClose: () => void;
|
|
13
13
|
onSelectSubType: (type: string) => void;
|
|
14
14
|
supportedTypes: {
|
|
15
|
-
add: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
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
16
|
clear: () => void;
|
|
17
|
-
delete: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
18
|
-
forEach: (callbackfn: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
19
|
-
has: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
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
20
|
readonly size: number;
|
|
21
|
-
entries: () => SetIterator<["line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
22
|
-
keys: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
23
|
-
values: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
24
|
-
union: <U>(other: ReadonlySetLike<U>) => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
25
|
-
intersection: <U>(other: ReadonlySetLike<U>) => Set<("line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
26
|
-
difference: <U>(other: ReadonlySetLike<U>) => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
27
|
-
symmetricDifference: <U>(other: ReadonlySetLike<U>) => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
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
28
|
isSubsetOf: (other: ReadonlySetLike<unknown>) => boolean;
|
|
29
29
|
isSupersetOf: (other: ReadonlySetLike<unknown>) => boolean;
|
|
30
30
|
isDisjointFrom: (other: ReadonlySetLike<unknown>) => boolean;
|
|
31
|
-
[Symbol.iterator]: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "
|
|
31
|
+
[Symbol.iterator]: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
|
|
32
32
|
readonly [Symbol.toStringTag]: string;
|
|
33
33
|
};
|
|
34
34
|
popoverProps: {
|
|
@@ -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 {};
|
|
@@ -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;
|
|
@@ -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";
|
|
@@ -126,7 +127,7 @@ export declare const DEFAULT_SCORECARD_BASELINE_FONT_SIZE = 16;
|
|
|
126
127
|
export declare const LINE_FILL_TRANSPARENCY = 0.4;
|
|
127
128
|
export declare const LINE_DATA_POINT_RADIUS = 3;
|
|
128
129
|
export declare const DEFAULT_WINDOW_SIZE = 2;
|
|
129
|
-
export declare const MAX_CHART_PREVIEW_DATA_POINTS =
|
|
130
|
+
export declare const MAX_CHART_PREVIEW_DATA_POINTS = 20;
|
|
130
131
|
export declare const MESSAGE_VERSION = 1;
|
|
131
132
|
export declare const FORBIDDEN_SHEETNAME_CHARS: readonly ["'", "*", "?", "/", "\\", "[", "]"];
|
|
132
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,7 +1,6 @@
|
|
|
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";
|
|
7
6
|
import { ColorThemeName } from "../../types/rendering";
|
|
@@ -24,9 +23,9 @@ export declare class SpreadsheetChart {
|
|
|
24
23
|
duplicateInDuplicatedSheet(sheetIdFrom: UID, sheetIdTo: UID): ChartDefinition<string>;
|
|
25
24
|
copyInSheetId(sheetIdTo: UID): ChartDefinition<Range>;
|
|
26
25
|
getContextCreation(): ChartCreationContext;
|
|
27
|
-
getDefinitionForExcel(getters:
|
|
28
|
-
getData(getters:
|
|
26
|
+
getDefinitionForExcel(getters: EvaluationGetters): import("../..").ExcelChartDefinition | undefined;
|
|
27
|
+
getData(getters: EvaluationGetters, chartId: UID): ChartData;
|
|
29
28
|
getFormulas(getters: CoreGetters): CompiledFormula[];
|
|
30
|
-
getRuntime(getters:
|
|
29
|
+
getRuntime(getters: EvaluationGetters, chartId: UID, colorThemeName: ColorThemeName): import("../..").ChartRuntime;
|
|
31
30
|
static deleteInvalidKeys(definition: ChartDefinition<any>): ChartDefinition<any>;
|
|
32
31
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
4
|
+
import { CoreGetters } from "../../../types/getters";
|
|
5
5
|
import { Locale } from "../../../types/locale";
|
|
6
6
|
import { Color, RangeAdapterFunctions, UID } from "../../../types/misc";
|
|
7
7
|
import { Range } from "../../../types/range";
|
|
@@ -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[];
|
|
@@ -12,25 +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
19
|
import { ColorThemeName } from "../../../../types/rendering";
|
|
20
20
|
import { BubbleChartData } from "../bubble_chart";
|
|
21
|
-
export declare function getBarChartData(definition: GenericDefinition<BarChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
22
|
-
export declare function getCalendarChartData(definition: GenericDefinition<CalendarChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
23
|
-
export declare function getPyramidChartData(definition: PyramidChartDefinition, { labelValues, dataSetsValues }: ChartData, getters:
|
|
24
|
-
export declare function getLineChartData(definition: GenericDefinition<LineChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
25
|
-
export declare function getPieChartData(definition: GenericDefinition<PieChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
26
|
-
export declare function getRadarChartData(definition: GenericDefinition<RadarChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
27
|
-
export declare function getGeoChartData(definition: GeoChartDefinition, { labelValues, dataSetsValues }: ChartData, getters:
|
|
28
|
-
export declare function getFunnelChartData(definition: GenericDefinition<FunnelChartDefinition>, { labelValues, dataSetsValues }: ChartData, getters:
|
|
29
|
-
export declare function getHierarchalChartData(definition: SunburstChartDefinition | TreeMapChartDefinition, { labelValues, dataSetsValues }: ChartData, getters:
|
|
30
|
-
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;
|
|
31
31
|
export declare function getTrendDatasetForBarChart(config: TrendConfiguration, data: FunctionResultObject[]): Point[] | undefined;
|
|
32
32
|
export declare function getTrendDatasetForLineChart(config: TrendConfiguration, data: FunctionResultObject[], labels: string[], axisType: AxisType, locale: Locale): Point[] | undefined;
|
|
33
33
|
export declare function canChartParseLabels(chartData: ChartData): boolean;
|
|
34
34
|
export declare function getChartLabelFormat(labelValues: LabelValues): Format | undefined;
|
|
35
35
|
export declare function makeDatasetsCumulative(datasets: DatasetValues[], order: "asc" | "desc"): DatasetValues[];
|
|
36
|
-
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>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UID } from "..";
|
|
2
|
-
import {
|
|
2
|
+
import { EvaluationGetters } from "../types/getters";
|
|
3
3
|
import { DataFilterValue } from "../types/table";
|
|
4
4
|
import { FieldValue } from "./pivot/spreadsheet_pivot/data_entry_spreadsheet_pivot";
|
|
5
5
|
/**
|
|
6
6
|
*Determines whether a given value should be filtered out (hidden)
|
|
7
7
|
*/
|
|
8
|
-
export declare function isValueFiltered(getters:
|
|
8
|
+
export declare function isValueFiltered(getters: EvaluationGetters, sheetId: UID, data: FieldValue, filter: DataFilterValue, preComputedCriterion?: unknown): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Registry } from "../registries/registry";
|
|
2
2
|
import { CellValue } from "../types/cells";
|
|
3
|
-
import { CoreGetters } from "../types/
|
|
3
|
+
import { CoreGetters } from "../types/getters";
|
|
4
4
|
import { Link } from "../types/misc";
|
|
5
5
|
import { SpreadsheetChildEnv } from "../types/spreadsheet_env";
|
|
6
6
|
/**
|
|
@@ -2,7 +2,7 @@ import { CellComposerStore } from "../../components/composer/composer/cell_compo
|
|
|
2
2
|
import { CompiledFormula } from "../../formulas/compiler";
|
|
3
3
|
import { EnrichedToken } from "../../formulas/composer_tokenizer";
|
|
4
4
|
import { AutoCompleteProposal } from "../../registries/auto_completes/auto_complete_registry";
|
|
5
|
-
import { CoreGetters } from "../../types/
|
|
5
|
+
import { CoreGetters } from "../../types/getters";
|
|
6
6
|
import { Granularity, PivotField, PivotMeasure } from "../../types/pivot";
|
|
7
7
|
/**
|
|
8
8
|
* Get the first Pivot function description of the given formula.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PivotParams, PivotUIConstructor } from "./pivot_registry";
|
|
2
2
|
import { CellValue } from "../../types/cells";
|
|
3
|
-
import {
|
|
3
|
+
import { EvaluationGetters } from "../../types/getters";
|
|
4
4
|
import { FunctionResultObject, SortDirection, UID } from "../../types/misc";
|
|
5
5
|
import { ModelConfig } from "../../types/model";
|
|
6
6
|
import { DimensionTree, NEXT_VALUE, PivotDimension, PivotDomain, PivotMeasure, PivotMeasureDisplay, PivotValueCell, PREVIOUS_VALUE } from "../../types/pivot";
|
|
@@ -24,7 +24,7 @@ type DomainGroups<T> = {
|
|
|
24
24
|
*/
|
|
25
25
|
export default function (PivotClass: PivotUIConstructor): {
|
|
26
26
|
new (pivotId: any, custom: ModelConfig["custom"], params: PivotParams): {
|
|
27
|
-
getters:
|
|
27
|
+
getters: EvaluationGetters;
|
|
28
28
|
pivotId: UID;
|
|
29
29
|
cache: Record<string, FunctionResultObject>;
|
|
30
30
|
rankAsc: CacheForMeasureAndField<DomainGroups<number> | undefined>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Registry } from "../../registries/registry";
|
|
2
|
-
import { CoreGetters } from "../../types/
|
|
3
|
-
import { Getters } from "../../types/getters";
|
|
2
|
+
import { CoreGetters, EvaluationGetters } from "../../types/getters";
|
|
4
3
|
import { ApplyRangeChange, UID } from "../../types/misc";
|
|
5
4
|
import { ModelConfig } from "../../types/model";
|
|
6
5
|
import { PivotCoreDefinition, PivotField, PivotFields } from "../../types/pivot";
|
|
@@ -8,14 +7,14 @@ import { Pivot } from "../../types/pivot_runtime";
|
|
|
8
7
|
import { PivotRuntimeDefinition } from "./pivot_runtime_definition";
|
|
9
8
|
export interface PivotParams {
|
|
10
9
|
definition: PivotCoreDefinition;
|
|
11
|
-
getters:
|
|
10
|
+
getters: EvaluationGetters;
|
|
12
11
|
}
|
|
13
12
|
export interface PivotCoreParams {
|
|
14
13
|
definition: PivotCoreDefinition;
|
|
15
14
|
getters: CoreGetters;
|
|
16
15
|
}
|
|
17
16
|
export type PivotUIConstructor = new (custom: ModelConfig["custom"], params: PivotParams) => Pivot;
|
|
18
|
-
type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields: PivotFields, getters:
|
|
17
|
+
type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields: PivotFields, getters: EvaluationGetters) => PivotRuntimeDefinition;
|
|
19
18
|
export interface PivotRegistryItem {
|
|
20
19
|
ui: PivotUIConstructor;
|
|
21
20
|
definition: PivotDefinitionConstructor;
|
|
@@ -24,7 +23,7 @@ export interface PivotRegistryItem {
|
|
|
24
23
|
isMeasureCandidate: (field: PivotField) => boolean;
|
|
25
24
|
isGroupable: (field: PivotField) => boolean;
|
|
26
25
|
canHaveCustomGroup: (field: PivotField) => boolean;
|
|
27
|
-
isPivotUnused: (getters:
|
|
26
|
+
isPivotUnused: (getters: EvaluationGetters, pivotId: UID) => boolean;
|
|
28
27
|
adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
|
|
29
28
|
}
|
|
30
29
|
export declare const pivotRegistry: Registry<PivotRegistryItem>;
|
package/dist/types/helpers/pivot/spreadsheet_pivot/runtime_definition_spreadsheet_pivot.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EvaluationGetters } from "../../../types/getters";
|
|
2
2
|
import { PivotFields, SpreadsheetPivotCoreDefinition } from "../../../types/pivot";
|
|
3
3
|
import { Range } from "../../../types/range";
|
|
4
4
|
import { PivotRuntimeDefinition } from "../pivot_runtime_definition";
|
|
5
5
|
export declare class SpreadsheetPivotRuntimeDefinition extends PivotRuntimeDefinition {
|
|
6
6
|
readonly range?: Range;
|
|
7
|
-
constructor(definition: SpreadsheetPivotCoreDefinition, fields: PivotFields, getters:
|
|
7
|
+
constructor(definition: SpreadsheetPivotCoreDefinition, fields: PivotFields, getters: EvaluationGetters);
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Registry } from "../registries/registry";
|
|
2
2
|
import { CoreCommand, CoreCommandTypes } from "../types/commands";
|
|
3
|
-
import { CoreGetters } from "../types/
|
|
3
|
+
import { CoreGetters } from "../types/getters";
|
|
4
4
|
import { CellPosition, RangeAdapter, UID, UnboundedZone, ZoneDimension } from "../types/misc";
|
|
5
5
|
import { BoundedRange, Range, RangePart, RangeStringOptions } from "../types/range";
|
|
6
6
|
interface RangeArgs {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -124,13 +124,13 @@ export { findCellInNewZone } from "./helpers/zones";
|
|
|
124
124
|
export { load } from "./migrations/data";
|
|
125
125
|
export { Model } from "./model";
|
|
126
126
|
export { CorePlugin } from "./plugins/core_plugin";
|
|
127
|
-
export {
|
|
127
|
+
export { EvaluationPlugin } from "./plugins/evaluation_plugin";
|
|
128
128
|
export { UIPlugin } from "./plugins/ui_plugin";
|
|
129
129
|
export { Registry } from "./registries/registry";
|
|
130
130
|
export { setTranslationMethod } from "./translation";
|
|
131
131
|
export type { Client } from "./types/collaborative/session";
|
|
132
132
|
export type { ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, CollaborationMessage, RemoteRevisionMessage, RevisionRedoneMessage, RevisionUndoneMessage, TransportService, } from "./types/collaborative/transport_service";
|
|
133
|
-
export { canExecuteInReadonly, CommandResult, coreTypes, DispatchResult, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isSheetDependent, lockedSheetAllowedCommands, readonlyAllowedCommands, } from "./types/commands";
|
|
133
|
+
export { canExecuteInReadonly, CommandResult, coreTypes, dispatcheableEvaluationCommandTypes, DispatchResult, evaluationCommandTypes, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isSheetDependent, lockedSheetAllowedCommands, readonlyAllowedCommands, } from "./types/commands";
|
|
134
134
|
export type { CancelledReason } from "./types/commands";
|
|
135
135
|
export { CellErrorType, EvaluationError } from "./types/errors";
|
|
136
136
|
export { addRenderingLayer } from "./types/rendering";
|
|
@@ -152,11 +152,11 @@ export declare const registries: {
|
|
|
152
152
|
colMenuRegistry: import("./registries/menu_items_registry").MenuItemRegistry;
|
|
153
153
|
errorTypes: Set<string>;
|
|
154
154
|
functionRegistry: import(".").FunctionRegistry;
|
|
155
|
-
featurePluginRegistry: import("
|
|
155
|
+
featurePluginRegistry: import("./plugins/plugin_registries").PluginRegistry<import("./plugins/ui_plugin").UIPluginConstructor>;
|
|
156
156
|
iconsOnCellRegistry: import(".").Registry<(getters: import(".").Getters, position: import(".").CellPosition) => import("./registries/icons_on_cell_registry").GridIcon | undefined>;
|
|
157
|
-
statefulUIPluginRegistry: import("
|
|
158
|
-
|
|
159
|
-
corePluginRegistry: import("
|
|
157
|
+
statefulUIPluginRegistry: import("./plugins/plugin_registries").PluginRegistry<import("./plugins/ui_plugin").UIPluginConstructor>;
|
|
158
|
+
evaluationPluginRegistry: import("./plugins/plugin_registries").PluginRegistry<import("./plugins/evaluation_plugin").EvaluationPluginConstructor>;
|
|
159
|
+
corePluginRegistry: import("./plugins/plugin_registries").PluginRegistry<import("./plugins/core_plugin").CorePluginConstructor>;
|
|
160
160
|
rowMenuRegistry: import("./registries/menu_items_registry").MenuItemRegistry;
|
|
161
161
|
sidePanelRegistry: import(".").Registry<import("./registries/side_panel_registry").SidePanelContent>;
|
|
162
162
|
figureRegistry: import(".").Registry<import("./registries/figures_registry").FigureContent>;
|
|
@@ -207,7 +207,7 @@ export declare const registries: {
|
|
|
207
207
|
register: (chart: import("./types/chart/chartjs").GlobalChart) => void;
|
|
208
208
|
unregister: (chart: import("./types/chart/chartjs").GlobalChart) => void;
|
|
209
209
|
}>;
|
|
210
|
-
onIterationEndEvaluationRegistry: import(".").Registry<(getters: import(".").
|
|
210
|
+
onIterationEndEvaluationRegistry: import(".").Registry<(getters: import(".").EvaluationGetters) => void>;
|
|
211
211
|
specificRangeTransformRegistry: {
|
|
212
212
|
add<C extends import(".").CoreCommand>(cmdType: C["type"], fn: (cmd: C, rangeAdapters: import(".").RangeAdapterFunctions) => C): /*elided*/ any;
|
|
213
213
|
replace<C extends import(".").CoreCommand>(cmdType: C["type"], fn: (cmd: C, rangeAdapters: import(".").RangeAdapterFunctions) => C): /*elided*/ any;
|