@odoo/o-spreadsheet 19.5.0-alpha.6 → 19.5.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/o_spreadsheet.cjs +35670 -34225
- package/dist/o_spreadsheet.css +65 -32
- package/dist/o_spreadsheet.esm.js +35670 -34225
- package/dist/o_spreadsheet.iife.js +35729 -34284
- package/dist/o_spreadsheet.min.iife.js +403 -403
- package/dist/o_spreadsheet.xml +210 -98
- package/dist/types/actions/action.d.ts +1 -7
- package/dist/types/actions/data_actions.d.ts +1 -0
- package/dist/types/actions/menu_items_actions.d.ts +2 -0
- package/dist/types/collaborative/ot/ot_helpers.d.ts +3 -1
- package/dist/types/components/clickable_cells_overlay/clickable_cells_overlay.d.ts +20 -0
- package/dist/types/components/dashboard/dashboard.d.ts +5 -12
- package/dist/types/components/error_tooltip/error_tooltip.d.ts +2 -0
- package/dist/types/components/figures/figure/figure.d.ts +3 -6
- package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +9 -2
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -2
- package/dist/types/components/figures/figure_image/figure_image.d.ts +1 -2
- package/dist/types/components/filters/filter_menu/filter_menu.d.ts +1 -0
- package/dist/types/components/grid/grid.d.ts +2 -0
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +6 -5
- package/dist/types/components/helpers/dom_helpers.d.ts +2 -0
- package/dist/types/components/helpers/wheel_hook.d.ts +1 -1
- package/dist/types/components/link/link_display/link_display.d.ts +1 -0
- package/dist/types/components/link/link_editor/link_editor.d.ts +1 -0
- package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +2 -1
- package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +20 -2
- package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +4 -17
- package/dist/types/components/side_panel/chart/chart_type_picker_popover/chart_type_picker_popover.d.ts +64 -0
- package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup.d.ts +28 -0
- package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup_store.d.ts +13 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +0 -2
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +4 -11
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_store.d.ts +33 -0
- package/dist/types/components/standalone_viewport/standalone_viewport.d.ts +55 -0
- package/dist/types/components/standalone_viewport/standalone_viewport_store.d.ts +28 -0
- package/dist/types/components/tables/hovered_table_store.d.ts +3 -6
- package/dist/types/formulas/code_builder.d.ts +2 -1
- package/dist/types/formulas/compiler.d.ts +6 -0
- package/dist/types/functions/create_compute_function.d.ts +4 -3
- package/dist/types/functions/function_registry.d.ts +1 -5
- package/dist/types/functions/helper_matrices.d.ts +1 -0
- package/dist/types/functions/helper_statistical.d.ts +6 -0
- package/dist/types/functions/module_array.d.ts +41 -23
- package/dist/types/functions/module_database.d.ts +18 -6
- package/dist/types/functions/module_date.d.ts +70 -22
- package/dist/types/functions/module_engineering.d.ts +3 -1
- package/dist/types/functions/module_filter.d.ts +2 -2
- package/dist/types/functions/module_financial.d.ts +105 -35
- package/dist/types/functions/module_info.d.ts +33 -11
- package/dist/types/functions/module_logical.d.ts +16 -8
- package/dist/types/functions/module_lookup.d.ts +23 -15
- package/dist/types/functions/module_math.d.ts +125 -43
- package/dist/types/functions/module_operators.d.ts +7 -3
- package/dist/types/functions/module_statistical.d.ts +78 -22
- package/dist/types/functions/module_text.d.ts +70 -24
- package/dist/types/functions/module_web.d.ts +3 -1
- package/dist/types/helpers/carousel_helpers.d.ts +0 -2
- package/dist/types/helpers/figures/chart.d.ts +2 -0
- package/dist/types/helpers/internal_viewport.d.ts +19 -10
- package/dist/types/helpers/misc.d.ts +1 -0
- package/dist/types/helpers/ui/split_to_columns_interactive.d.ts +1 -1
- package/dist/types/helpers/viewport_collection.d.ts +40 -9
- package/dist/types/helpers/zones.d.ts +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/model.d.ts +1 -0
- package/dist/types/plugins/core/carousel.d.ts +8 -4
- package/dist/types/plugins/core/cell.d.ts +1 -0
- package/dist/types/plugins/core/chart.d.ts +2 -0
- package/dist/types/plugins/core/conditional_format.d.ts +2 -0
- package/dist/types/plugins/core/data_validation.d.ts +2 -0
- package/dist/types/plugins/core/formulas_provider.d.ts +8 -0
- package/dist/types/plugins/core/pivot.d.ts +1 -0
- package/dist/types/plugins/core_plugin.d.ts +7 -3
- package/dist/types/plugins/ui_core_views/cell_evaluation/evaluation_plugin.d.ts +10 -3
- package/dist/types/plugins/ui_feature/ui_options.d.ts +1 -7
- package/dist/types/plugins/ui_feature/ui_sheet.d.ts +2 -1
- package/dist/types/plugins/ui_stateful/filter_evaluation.d.ts +2 -3
- package/dist/types/plugins/ui_stateful/header_positions.d.ts +2 -1
- package/dist/types/registries/chart_registry.d.ts +3 -0
- package/dist/types/registries/data_source_registry.d.ts +15 -0
- package/dist/types/store_engine/dependency_container.d.ts +5 -0
- package/dist/types/store_engine/store_hooks.d.ts +6 -0
- package/dist/types/stores/main_viewport_store.d.ts +11 -0
- package/dist/types/stores/table_resize_store.d.ts +6 -0
- package/dist/types/stores/viewports_store.d.ts +18 -3
- package/dist/types/types/commands.d.ts +23 -15
- package/dist/types/types/core_getters.d.ts +3 -1
- package/dist/types/types/figure.d.ts +26 -3
- package/dist/types/types/functions.d.ts +14 -4
- package/dist/types/types/getters.d.ts +27 -6
- package/dist/types/types/misc.d.ts +9 -1
- package/package.json +2 -2
- package/dist/types/plugins/ui_feature/split_to_columns.d.ts +0 -21
- package/dist/types/plugins/ui_feature/table_resize_ui.d.ts +0 -6
- /package/dist/types/plugins/{ui_feature → ui_stateful}/cell_computed_style.d.ts +0 -0
- /package/dist/types/plugins/{ui_feature → ui_stateful}/figure.d.ts +0 -0
- /package/dist/types/plugins/{ui_feature → ui_stateful}/header_visibility_ui.d.ts +0 -0
- /package/dist/types/plugins/{ui_feature → ui_stateful}/table_computed_style.d.ts +0 -0
|
@@ -10,27 +10,26 @@ import { FingerprintPlugin } from "../plugins/ui_core_views/fingerprint";
|
|
|
10
10
|
import { FormulaTrackerPlugin } from "../plugins/ui_core_views/formula_tracker";
|
|
11
11
|
import { HeaderSizeUIPlugin } from "../plugins/ui_core_views/header_sizes_ui";
|
|
12
12
|
import { PivotUIPlugin } from "../plugins/ui_core_views/pivot_ui";
|
|
13
|
-
import { CellComputedStylePlugin } from "../plugins/ui_feature/cell_computed_style";
|
|
14
13
|
import { CollaborativePlugin } from "../plugins/ui_feature/collaborative";
|
|
15
14
|
import { ColorThemeUIPlugin } from "../plugins/ui_feature/color_theme";
|
|
16
15
|
import { DynamicTranslate } from "../plugins/ui_feature/dynamic_translate";
|
|
17
|
-
import { FigureUIPlugin } from "../plugins/ui_feature/figure";
|
|
18
16
|
import { GeoFeaturePlugin } from "../plugins/ui_feature/geo_features";
|
|
19
|
-
import { HeaderVisibilityUIPlugin } from "../plugins/ui_feature/header_visibility_ui";
|
|
20
17
|
import { HistoryPlugin } from "../plugins/ui_feature/local_history";
|
|
21
18
|
import { LockSheetPlugin } from "../plugins/ui_feature/lock_sheet";
|
|
22
19
|
import { PivotPresencePlugin } from "../plugins/ui_feature/pivot_presence_plugin";
|
|
23
20
|
import { SortPlugin } from "../plugins/ui_feature/sort";
|
|
24
|
-
import { SplitToColumnsPlugin } from "../plugins/ui_feature/split_to_columns";
|
|
25
21
|
import { SubtotalEvaluationPlugin } from "../plugins/ui_feature/subtotal_evaluation";
|
|
26
|
-
import { TableComputedStylePlugin } from "../plugins/ui_feature/table_computed_style";
|
|
27
22
|
import { UIOptionsPlugin } from "../plugins/ui_feature/ui_options";
|
|
28
23
|
import { SheetUIPlugin } from "../plugins/ui_feature/ui_sheet";
|
|
29
24
|
import { CarouselUIPlugin } from "../plugins/ui_stateful/carousel_ui";
|
|
25
|
+
import { CellComputedStylePlugin } from "../plugins/ui_stateful/cell_computed_style";
|
|
30
26
|
import { ClipboardPlugin } from "../plugins/ui_stateful/clipboard";
|
|
27
|
+
import { FigureUIPlugin } from "../plugins/ui_stateful/figure";
|
|
31
28
|
import { FilterEvaluationPlugin } from "../plugins/ui_stateful/filter_evaluation";
|
|
32
29
|
import { HeaderPositionsUIPlugin } from "../plugins/ui_stateful/header_positions";
|
|
30
|
+
import { HeaderVisibilityUIPlugin } from "../plugins/ui_stateful/header_visibility_ui";
|
|
33
31
|
import { GridSelectionPlugin } from "../plugins/ui_stateful/selection";
|
|
32
|
+
import { TableComputedStylePlugin } from "../plugins/ui_stateful/table_computed_style";
|
|
34
33
|
import { CoreGetters, PluginGetters } from "./core_getters";
|
|
35
34
|
/**
|
|
36
35
|
* The getters that can be used in the rendering-related stores and helpers. The SheetView and Selection getters should
|
|
@@ -39,5 +38,27 @@ import { CoreGetters, PluginGetters } from "./core_getters";
|
|
|
39
38
|
export type RenderingGetters = {
|
|
40
39
|
isReadonly: () => boolean;
|
|
41
40
|
isDashboard: () => boolean;
|
|
42
|
-
} & CoreGetters & PluginGetters<typeof HistoryPlugin> & PluginGetters<typeof ClipboardPlugin> & PluginGetters<typeof EvaluationPlugin> & PluginGetters<typeof EvaluationChartPlugin> & PluginGetters<typeof EvaluationConditionalFormatPlugin> & PluginGetters<typeof HeaderVisibilityUIPlugin> & PluginGetters<typeof CustomColorsPlugin> & PluginGetters<typeof CollaborativePlugin> & PluginGetters<typeof SortPlugin> & PluginGetters<typeof UIOptionsPlugin> & PluginGetters<typeof SheetUIPlugin> & PluginGetters<typeof FilterEvaluationPlugin> & PluginGetters<typeof FingerprintPlugin> & PluginGetters<typeof
|
|
41
|
+
} & CoreGetters & PluginGetters<typeof HistoryPlugin> & PluginGetters<typeof ClipboardPlugin> & PluginGetters<typeof EvaluationPlugin> & PluginGetters<typeof EvaluationChartPlugin> & PluginGetters<typeof EvaluationConditionalFormatPlugin> & PluginGetters<typeof HeaderVisibilityUIPlugin> & PluginGetters<typeof CustomColorsPlugin> & PluginGetters<typeof CollaborativePlugin> & PluginGetters<typeof SortPlugin> & PluginGetters<typeof UIOptionsPlugin> & PluginGetters<typeof SheetUIPlugin> & PluginGetters<typeof FilterEvaluationPlugin> & PluginGetters<typeof FingerprintPlugin> & PluginGetters<typeof SubtotalEvaluationPlugin> & PluginGetters<typeof HeaderSizeUIPlugin> & PluginGetters<typeof EvaluationDataValidationPlugin> & PluginGetters<typeof HeaderPositionsUIPlugin> & PluginGetters<typeof TableStylePlugin> & PluginGetters<typeof CellComputedStylePlugin> & PluginGetters<typeof DynamicTablesPlugin> & PluginGetters<typeof PivotUIPlugin> & PluginGetters<typeof TableComputedStylePlugin> & PluginGetters<typeof GeoFeaturePlugin> & PluginGetters<typeof PivotPresencePlugin> & PluginGetters<typeof TableComputedStylePlugin> & PluginGetters<typeof CellIconPlugin> & PluginGetters<typeof DynamicTranslate> & PluginGetters<typeof FormulaTrackerPlugin> & PluginGetters<typeof LockSheetPlugin> & PluginGetters<typeof CarouselUIPlugin> & PluginGetters<typeof ColorThemeUIPlugin> & PluginGetters<typeof FigureUIPlugin>;
|
|
43
42
|
export type Getters = RenderingGetters & PluginGetters<typeof GridSelectionPlugin>;
|
|
43
|
+
export interface ViewportsGetters {
|
|
44
|
+
getColDimensions: Getters["getColDimensions"];
|
|
45
|
+
getRowDimensions: Getters["getRowDimensions"];
|
|
46
|
+
findLastVisibleColRowIndex: Getters["findLastVisibleColRowIndex"];
|
|
47
|
+
isReadonly: Getters["isReadonly"];
|
|
48
|
+
getMainCellPosition: Getters["getMainCellPosition"];
|
|
49
|
+
getNextVisibleCellPosition: Getters["getNextVisibleCellPosition"];
|
|
50
|
+
getColRowOffset: Getters["getColRowOffset"];
|
|
51
|
+
isColHidden: Getters["isColHidden"];
|
|
52
|
+
isRowHidden: Getters["isRowHidden"];
|
|
53
|
+
isHeaderHidden: Getters["isHeaderHidden"];
|
|
54
|
+
getNumberHeaders: Getters["getNumberHeaders"];
|
|
55
|
+
getHeaderSize: Getters["getHeaderSize"];
|
|
56
|
+
getColSize: Getters["getColSize"];
|
|
57
|
+
getRowSize: Getters["getRowSize"];
|
|
58
|
+
getSheetIds: Getters["getSheetIds"];
|
|
59
|
+
tryGetSheet: Getters["tryGetSheet"];
|
|
60
|
+
getNumberCols: Getters["getNumberCols"];
|
|
61
|
+
getNumberRows: Getters["getNumberRows"];
|
|
62
|
+
getSheetZone: Getters["getSheetZone"];
|
|
63
|
+
getFigures: Getters["getFigures"];
|
|
64
|
+
}
|
|
@@ -2,6 +2,7 @@ import { CellValue, EvaluatedCell } from "./cells";
|
|
|
2
2
|
import { CompiledFormula } from "../formulas/compiler";
|
|
3
3
|
import { CommandResult } from "./commands";
|
|
4
4
|
import { Format } from "./format";
|
|
5
|
+
import { ComputeFunction } from "./functions";
|
|
5
6
|
import { Range } from "./range";
|
|
6
7
|
/**
|
|
7
8
|
* The following type is meant to be used in union with other aliases to prevent
|
|
@@ -142,7 +143,7 @@ export interface Border {
|
|
|
142
143
|
export type ReferenceDenormalizer = (range: Range) => FunctionResultObject;
|
|
143
144
|
export type EnsureRange = (range: Range) => Matrix<FunctionResultObject>;
|
|
144
145
|
export type GetSymbolValue = (symbolName: string, isRange: boolean) => Arg;
|
|
145
|
-
export type FormulaToExecute = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, getSymbolValue: GetSymbolValue, ctx: object) => Matrix<FunctionResultObject> | FunctionResultObject;
|
|
146
|
+
export type FormulaToExecute = (deps: Range[], refFn: ReferenceDenormalizer, range: EnsureRange, getSymbolValue: GetSymbolValue, ctx: object, functions: ComputeFunction[]) => Matrix<FunctionResultObject> | FunctionResultObject;
|
|
146
147
|
export interface LiteralValues {
|
|
147
148
|
numbers: {
|
|
148
149
|
value: number;
|
|
@@ -263,6 +264,9 @@ export type ConsecutiveIndexes = HeaderIndex[];
|
|
|
263
264
|
export interface RangeProvider {
|
|
264
265
|
adaptRanges: (adapterFunctions: RangeAdapterFunctions) => void;
|
|
265
266
|
}
|
|
267
|
+
export interface FormulaProvider {
|
|
268
|
+
getFormulas: () => CompiledFormula[];
|
|
269
|
+
}
|
|
266
270
|
export type Validation<T> = (toValidate: T) => CommandResult | CommandResult[];
|
|
267
271
|
export type Increment = 1 | -1 | 0;
|
|
268
272
|
export interface Ref<T> {
|
|
@@ -328,6 +332,10 @@ export interface Offset {
|
|
|
328
332
|
col: number;
|
|
329
333
|
row: number;
|
|
330
334
|
}
|
|
335
|
+
export interface PixelOffset {
|
|
336
|
+
offsetX: Pixel;
|
|
337
|
+
offsetY: Pixel;
|
|
338
|
+
}
|
|
331
339
|
export type DebouncedFunction<T> = T & {
|
|
332
340
|
stopDebounce: () => void;
|
|
333
341
|
isDebouncePending: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "19.5.0-alpha.
|
|
3
|
+
"version": "19.5.0-alpha.8",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o_spreadsheet.cjs",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"xmlSelfClosingSpace": false
|
|
142
142
|
},
|
|
143
143
|
"dependencies": {
|
|
144
|
-
"@odoo/owl": "3.0.0-alpha.
|
|
144
|
+
"@odoo/owl": "3.0.0-alpha.45",
|
|
145
145
|
"bootstrap": "5.3.3",
|
|
146
146
|
"font-awesome": "^4.7.0",
|
|
147
147
|
"rbush": "^3.0.1"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Command, CommandResult } from "../../types/commands";
|
|
2
|
-
import { UIPlugin } from "../ui_plugin";
|
|
3
|
-
export declare class SplitToColumnsPlugin extends UIPlugin {
|
|
4
|
-
static getters: readonly ["getAutomaticSeparator"];
|
|
5
|
-
allowDispatch(cmd: Command): CommandResult | CommandResult[];
|
|
6
|
-
handle(cmd: Command): void;
|
|
7
|
-
getAutomaticSeparator(): string;
|
|
8
|
-
private getAutoSeparatorForString;
|
|
9
|
-
private splitIntoColumns;
|
|
10
|
-
private getSplittedCols;
|
|
11
|
-
private splitAndRemoveTrailingEmpty;
|
|
12
|
-
private willSplittedColsOverwriteContent;
|
|
13
|
-
private removeMergesInSplitZone;
|
|
14
|
-
private addColsToAvoidCollisions;
|
|
15
|
-
private getColsToAddToAvoidCollision;
|
|
16
|
-
private addColumnsToNotOverflowSheet;
|
|
17
|
-
private checkSingleColSelected;
|
|
18
|
-
private checkNonEmptySelector;
|
|
19
|
-
private checkNotOverwritingContent;
|
|
20
|
-
private checkSeparatorInSelection;
|
|
21
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|