@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
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Session } from "../collaborative/session";
|
|
2
|
-
import { StateObserver } from "../state_observer";
|
|
3
|
-
import { Command } from "../types/commands";
|
|
4
|
-
import { Currency } from "../types/currency";
|
|
5
|
-
import { Getters } from "../types/getters";
|
|
6
|
-
import { Color } from "../types/misc";
|
|
7
|
-
import { ModelConfig } from "../types/model";
|
|
8
|
-
import { BasePlugin } from "./base_plugin";
|
|
9
|
-
export interface CoreViewPluginConfig {
|
|
10
|
-
readonly getters: Getters;
|
|
11
|
-
readonly stateObserver: StateObserver;
|
|
12
|
-
readonly custom: ModelConfig["custom"];
|
|
13
|
-
readonly session: Session;
|
|
14
|
-
readonly defaultCurrency?: Partial<Currency>;
|
|
15
|
-
readonly customColors: Color[];
|
|
16
|
-
readonly external: ModelConfig["external"];
|
|
17
|
-
}
|
|
18
|
-
export interface CoreViewPluginConstructor {
|
|
19
|
-
new (config: CoreViewPluginConfig): CoreViewPlugin;
|
|
20
|
-
getters: readonly string[];
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Core view plugins handle any data derived from core date (i.e. evaluation).
|
|
24
|
-
* They cannot impact the model data (i.e. cannot dispatch commands).
|
|
25
|
-
*/
|
|
26
|
-
export declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
|
|
27
|
-
protected getters: Getters;
|
|
28
|
-
constructor({ getters, stateObserver }: CoreViewPluginConfig);
|
|
29
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Command } from "../../types/commands";
|
|
2
|
-
import { CoreViewPlugin } from "../core_view_plugin";
|
|
3
|
-
export declare class FormulaTrackerPlugin extends CoreViewPlugin {
|
|
4
|
-
static getters: readonly ["getCellsWithTrackedFormula"];
|
|
5
|
-
private trackedCells;
|
|
6
|
-
handle(cmd: Command): void;
|
|
7
|
-
getCellsWithTrackedFormula(formula: string): number[];
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PivotPresenceTracker } from "../../helpers/pivot/pivot_presence_tracker";
|
|
2
|
-
import { Command } from "../../types/commands";
|
|
3
|
-
import { UID } from "../../types/misc";
|
|
4
|
-
import { UIPlugin } from "../ui_plugin";
|
|
5
|
-
export declare class PivotPresencePlugin extends UIPlugin {
|
|
6
|
-
static getters: readonly ["getPivotPresenceTracker"];
|
|
7
|
-
private trackPresencePivotId?;
|
|
8
|
-
private tracker?;
|
|
9
|
-
handle(cmd: Command): void;
|
|
10
|
-
getPivotPresenceTracker(pivotId: UID): PivotPresenceTracker | undefined;
|
|
11
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { BordersPlugin } from "../plugins/core/borders";
|
|
2
|
-
import { CarouselPlugin } from "../plugins/core/carousel";
|
|
3
|
-
import { CellPlugin } from "../plugins/core/cell";
|
|
4
|
-
import { ChartPlugin } from "../plugins/core/chart";
|
|
5
|
-
import { ConditionalFormatPlugin } from "../plugins/core/conditional_format";
|
|
6
|
-
import { DataValidationPlugin } from "../plugins/core/data_validation";
|
|
7
|
-
import { DefaultPlugin } from "../plugins/core/default";
|
|
8
|
-
import { FigurePlugin } from "../plugins/core/figures";
|
|
9
|
-
import { FormulaProviderAggregator } from "../plugins/core/formulas_provider";
|
|
10
|
-
import { HeaderGroupingPlugin } from "../plugins/core/header_grouping";
|
|
11
|
-
import { HeaderSizePlugin } from "../plugins/core/header_size";
|
|
12
|
-
import { HeaderVisibilityPlugin } from "../plugins/core/header_visibility";
|
|
13
|
-
import { ImagePlugin } from "../plugins/core/image";
|
|
14
|
-
import { MergePlugin } from "../plugins/core/merge";
|
|
15
|
-
import { NamedRangesPlugin } from "../plugins/core/named_range";
|
|
16
|
-
import { PivotCorePlugin } from "../plugins/core/pivot";
|
|
17
|
-
import { RangeAdapterPlugin } from "../plugins/core/range";
|
|
18
|
-
import { SettingsPlugin } from "../plugins/core/settings";
|
|
19
|
-
import { SheetPlugin } from "../plugins/core/sheet";
|
|
20
|
-
import { TablePlugin } from "../plugins/core/tables";
|
|
21
|
-
/**
|
|
22
|
-
* Union of all getter names of a plugin.
|
|
23
|
-
*
|
|
24
|
-
* e.g. With the following plugin
|
|
25
|
-
* ```ts
|
|
26
|
-
* class MyPlugin {
|
|
27
|
-
* static getters = [
|
|
28
|
-
* "getCell",
|
|
29
|
-
* "getCellValue",
|
|
30
|
-
* ] as const;
|
|
31
|
-
* getCell() { ... }
|
|
32
|
-
* getCellValue() { ... }
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
* `type Names = GetterNames<typeof MyPlugin>` is equivalent to
|
|
36
|
-
* `type Names = "getCell" | "getCellValue"`
|
|
37
|
-
*
|
|
38
|
-
* Some technical comments:
|
|
39
|
-
*
|
|
40
|
-
* - Since the getter names are in a static array, the type of the plugin must
|
|
41
|
-
* be given, not the class itself.
|
|
42
|
-
*
|
|
43
|
-
* - we need to index the getters array with every index:
|
|
44
|
-
* `Plugin["getters"][0] | Plugin["getters"][1] | Plugin["getters"][2] | ...`
|
|
45
|
-
* which is equivalent to `Plugin["getters"][0 | 1 | 2 | ...]`.
|
|
46
|
-
* This can be generalized because the union of all indices `0 | 1 | 2 | 3 | ...`
|
|
47
|
-
* is actually the type `number`.
|
|
48
|
-
*/
|
|
49
|
-
type GetterNames<Plugin extends {
|
|
50
|
-
getters: readonly string[];
|
|
51
|
-
}> = Plugin["getters"][number];
|
|
52
|
-
/**
|
|
53
|
-
* Extract getter methods from a plugin, based on its `getters` static array.
|
|
54
|
-
* @example
|
|
55
|
-
* class MyPlugin {
|
|
56
|
-
* static getters = [
|
|
57
|
-
* "getCell",
|
|
58
|
-
* "getCellValue",
|
|
59
|
-
* ] as const;
|
|
60
|
-
* getCell() { ... }
|
|
61
|
-
* getCellValue() { ... }
|
|
62
|
-
* }
|
|
63
|
-
* type MyPluginGetters = PluginGetters<typeof MyPlugin>;
|
|
64
|
-
* // MyPluginGetters is equivalent to:
|
|
65
|
-
* // {
|
|
66
|
-
* // getCell: () => ...,
|
|
67
|
-
* // getCellValue: () => ...,
|
|
68
|
-
* // }
|
|
69
|
-
*/
|
|
70
|
-
export type PluginGetters<Plugin extends {
|
|
71
|
-
new (...args: unknown[]): any;
|
|
72
|
-
getters: readonly string[];
|
|
73
|
-
}> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
|
|
74
|
-
type RangeAdapterGetters = Pick<RangeAdapterPlugin, GetterNames<typeof RangeAdapterPlugin>>;
|
|
75
|
-
type FormulasGetters = Pick<FormulaProviderAggregator, GetterNames<typeof FormulaProviderAggregator>>;
|
|
76
|
-
export type CoreGetters = PluginGetters<typeof SheetPlugin> & PluginGetters<typeof HeaderSizePlugin> & PluginGetters<typeof HeaderVisibilityPlugin> & PluginGetters<typeof CellPlugin> & PluginGetters<typeof DefaultPlugin> & PluginGetters<typeof MergePlugin> & PluginGetters<typeof BordersPlugin> & PluginGetters<typeof ChartPlugin> & PluginGetters<typeof ImagePlugin> & PluginGetters<typeof CarouselPlugin> & PluginGetters<typeof FigurePlugin> & RangeAdapterGetters & FormulasGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof TablePlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin> & PluginGetters<typeof NamedRangesPlugin> & PluginGetters<typeof PivotCorePlugin>;
|
|
77
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/spreading_relation.d.ts
RENAMED
|
File without changes
|
|
File without changes
|