@odoo/o-spreadsheet 19.5.0-alpha.2 → 19.5.0-alpha.20
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/material_symbols_outlined.css +9 -0
- package/dist/o_spreadsheet.cjs +53040 -49146
- package/dist/o_spreadsheet.css +330 -157
- package/dist/o_spreadsheet.esm.js +52813 -48924
- package/dist/o_spreadsheet.iife.js +49777 -45883
- package/dist/o_spreadsheet.min.iife.js +413 -359
- package/dist/o_spreadsheet.xml +505 -332
- package/dist/types/actions/action.d.ts +1 -7
- package/dist/types/actions/data_actions.d.ts +2 -0
- package/dist/types/actions/menu_items_actions.d.ts +5 -2
- package/dist/types/clipboard_handlers/default_clipboard.d.ts +1 -1
- package/dist/types/collaborative/command_squisher.d.ts +1 -1
- package/dist/types/collaborative/ot/ot_helpers.d.ts +3 -1
- package/dist/types/collaborative/session.d.ts +3 -1
- package/dist/types/components/autofill/autofill.d.ts +3 -0
- package/dist/types/{plugins/ui_feature/autofill.d.ts → components/autofill/autofill_store.d.ts} +7 -12
- package/dist/types/components/autofill/table_autofill_store.d.ts +6 -0
- package/dist/types/components/border_editor/border_editor_widget.d.ts +1 -0
- package/dist/types/components/bottom_bar/bottom_bar_statistic/bottom_bar_statistic.d.ts +3 -0
- package/dist/types/components/clickable_cells_overlay/clickable_cells_overlay.d.ts +20 -0
- package/dist/types/components/collaborative_client_tag/collaborative_client_tag.d.ts +2 -0
- package/dist/types/components/composer/composer/abstract_composer_store.d.ts +3 -2
- package/dist/types/components/composer/composer/composer.d.ts +2 -1
- package/dist/types/components/composer/grid_composer/grid_composer.d.ts +1 -0
- package/dist/types/components/dashboard/clickable_cell_sort_icon/clickable_cell_sort_icon.d.ts +1 -1
- package/dist/types/components/dashboard/clickable_cell_store.d.ts +1 -0
- package/dist/types/components/dashboard/dashboard.d.ts +7 -12
- package/dist/types/components/error_tooltip/error_tooltip.d.ts +2 -0
- package/dist/types/components/figures/chart/chartJs/chartjs_geo_projection_plugin.d.ts +12 -0
- package/dist/types/components/figures/chart/chartJs/zoomable_chart/zoomable_chartjs.d.ts +1 -0
- package/dist/types/components/figures/chart/gauge/gauge_chart_component.d.ts +1 -0
- package/dist/types/components/figures/chart/scorecard/chart_scorecard.d.ts +1 -0
- package/dist/types/components/figures/figure/figure.d.ts +10 -9
- package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +16 -1
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -2
- package/dist/types/components/figures/figure_container/figure_container.d.ts +9 -4
- 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/full_screen_figure/full_screen_figure.d.ts +12 -1
- package/dist/types/components/grid/grid.d.ts +10 -0
- package/dist/types/components/grid_add_rows_footer/grid_add_rows_footer.d.ts +1 -0
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +8 -4
- package/dist/types/components/grid_popover/grid_popover.d.ts +1 -0
- package/dist/types/components/header_group/header_group_container.d.ts +2 -0
- package/dist/types/components/headers_overlay/headers_overlay.d.ts +5 -0
- package/dist/types/components/headers_overlay/unhide_headers.d.ts +4 -0
- package/dist/types/components/helpers/chart_drag_and_drop.d.ts +15 -0
- package/dist/types/components/helpers/dom_helpers.d.ts +5 -2
- package/dist/types/components/helpers/draw_grid_hook.d.ts +1 -2
- package/dist/types/components/helpers/figure_drag_helper.d.ts +3 -3
- package/dist/types/components/helpers/figure_snap_helper.d.ts +9 -4
- package/dist/types/components/helpers/wheel_hook.d.ts +1 -1
- package/dist/types/components/helpers/zoom.d.ts +0 -14
- package/dist/types/components/highlight/border/border.d.ts +2 -0
- package/dist/types/components/highlight/corner/corner.d.ts +1 -0
- package/dist/types/components/highlight/highlight/highlight.d.ts +3 -0
- package/dist/types/components/link/link_display/link_display.d.ts +1 -0
- package/dist/types/components/link/link_editor/link_editor.d.ts +3 -1
- package/dist/types/components/paint_format_button/paint_format_store.d.ts +1 -1
- package/dist/types/components/popover/cell_popover_store.d.ts +2 -1
- package/dist/types/components/popover/popover.d.ts +0 -1
- package/dist/types/components/popover/popover_container_owl_plugin.d.ts +5 -0
- package/dist/types/components/props_validation.d.ts +7 -7
- package/dist/types/components/scrollbar/scrollbar_horizontal.d.ts +3 -0
- package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +5 -1
- package/dist/types/components/selection_input/selection_input_store.d.ts +1 -1
- package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +20 -2
- package/dist/types/components/side_panel/chart/building_blocks/chart_title/chart_title.d.ts +1 -0
- package/dist/types/components/side_panel/chart/building_blocks/color_scale/color_scale_picker.d.ts +1 -1
- package/dist/types/components/side_panel/chart/calendar_chart/calendar_chart_config_panel.d.ts +0 -2
- package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +5 -18
- package/dist/types/components/side_panel/chart/chart_type_picker_popover/chart_type_picker_popover.d.ts +63 -0
- package/dist/types/components/side_panel/chart/common.d.ts +1 -1
- package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_config_panel.d.ts +6 -10
- package/dist/types/components/side_panel/components/radio_selection/radio_selection.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/cell_is_rule_editor.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor_threshold.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/data_bar_rule_editor.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/icon_set_rule_editor.d.ts +1 -1
- package/dist/types/components/side_panel/data_analysis/chart_suggestion_preview.d.ts +19 -0
- package/dist/types/components/side_panel/data_analysis/data_analysis_panel.d.ts +17 -0
- package/dist/types/components/side_panel/data_analysis/data_analysis_store.d.ts +15 -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/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 +3 -1
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +1 -8
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.d.ts +1 -0
- package/dist/types/components/side_panel/remove_duplicates/remove_duplicates.d.ts +3 -10
- package/dist/types/components/side_panel/side_panel/side_panel_store.d.ts +3 -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/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/small_bottom_bar/small_bottom_bar.d.ts +1 -0
- package/dist/types/components/spreadsheet/spreadsheet.d.ts +12 -5
- package/dist/types/components/spreadsheet_print/print_iframe.d.ts +15 -0
- package/dist/types/components/spreadsheet_print/spreadsheet_print.d.ts +4 -0
- package/dist/types/components/standalone_grid_canvas/carousel_data_view_print.d.ts +32 -0
- package/dist/types/components/standalone_grid_canvas/standalone_grid_canvas.d.ts +397 -2
- package/dist/types/components/standalone_viewport/standalone_viewport.d.ts +59 -0
- package/dist/types/components/standalone_viewport/standalone_viewport_store.d.ts +29 -0
- package/dist/types/components/tables/hovered_table_store.d.ts +7 -11
- package/dist/types/components/tables/table_resizer/table_resizer.d.ts +2 -0
- package/dist/types/components/tables/table_styles_popover/table_styles_popover.d.ts +0 -1
- package/dist/types/components/top_bar/color_editor/color_editor.d.ts +1 -1
- package/dist/types/components/top_bar/zoom_editor/zoom_editor.d.ts +2 -1
- package/dist/types/constants.d.ts +17 -2
- package/dist/types/formulas/code_builder.d.ts +2 -1
- package/dist/types/formulas/compiler.d.ts +8 -1
- package/dist/types/functions/create_compute_function.d.ts +4 -3
- package/dist/types/functions/function_registry.d.ts +4 -5
- package/dist/types/functions/helper_lookup.d.ts +1 -1
- package/dist/types/functions/helper_matrices.d.ts +1 -0
- package/dist/types/functions/helper_statistical.d.ts +6 -0
- package/dist/types/functions/helpers.d.ts +4 -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 +75 -26
- package/dist/types/functions/module_web.d.ts +3 -1
- package/dist/types/helpers/carousel_helpers.d.ts +15 -3
- package/dist/types/helpers/cells/cell_evaluation.d.ts +1 -1
- package/dist/types/helpers/color.d.ts +1 -1
- package/dist/types/helpers/color_themes.d.ts +2 -0
- package/dist/types/helpers/data_analysis.d.ts +17 -0
- package/dist/types/helpers/figures/chart.d.ts +9 -6
- package/dist/types/helpers/figures/charts/chart_common.d.ts +3 -5
- package/dist/types/helpers/figures/charts/chart_data_source_helpers.d.ts +10 -0
- package/dist/types/helpers/figures/charts/chart_data_sources.d.ts +3 -3
- package/dist/types/helpers/figures/charts/chart_suggestion_engine.d.ts +8 -0
- package/dist/types/helpers/figures/charts/chart_ui_common.d.ts +11 -4
- package/dist/types/helpers/figures/charts/charts_suggestions_constants.d.ts +37 -0
- package/dist/types/helpers/figures/charts/gauge_chart_rendering.d.ts +6 -2
- 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/figures/figure/figure.d.ts +3 -2
- package/dist/types/helpers/filter_helpers.d.ts +2 -2
- package/dist/types/helpers/internal_viewport.d.ts +19 -10
- package/dist/types/helpers/links.d.ts +1 -1
- package/dist/types/helpers/misc.d.ts +2 -0
- 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_highlight.d.ts +2 -2
- 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/helpers/rectangle.d.ts +4 -0
- package/dist/types/helpers/text_helper.d.ts +1 -1
- package/dist/types/helpers/ui/split_to_columns_interactive.d.ts +1 -1
- package/dist/types/helpers/viewport_collection.d.ts +50 -21
- package/dist/types/helpers/zones.d.ts +1 -0
- package/dist/types/index.d.ts +39 -9
- package/dist/types/model.d.ts +18 -10
- package/dist/types/owl3_compatibility_layer.d.ts +1 -14
- 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/image.d.ts +2 -1
- package/dist/types/plugins/core/pivot.d.ts +1 -0
- package/dist/types/plugins/core/range.d.ts +4 -2
- package/dist/types/plugins/core/squisher.d.ts +7 -2
- 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 +8 -4
- package/dist/types/plugins/{ui_feature → 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} +14 -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 +7 -8
- 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 +13 -0
- package/dist/types/plugins/{ui_core_views → evaluation}/header_sizes_ui.d.ts +5 -5
- package/dist/types/plugins/{ui_feature/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 +9 -6
- package/dist/types/plugins/evaluation/subtotal_evaluation.d.ts +5 -0
- package/dist/types/plugins/{ui_feature → 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/collaborative.d.ts +2 -1
- 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_feature/ui_options.d.ts +1 -7
- package/dist/types/plugins/ui_feature/ui_sheet.d.ts +2 -1
- package/dist/types/plugins/ui_plugin.d.ts +1 -4
- package/dist/types/plugins/ui_stateful/carousel_ui.d.ts +2 -2
- package/dist/types/plugins/{ui_core_views → ui_stateful}/cell_icon_plugin.d.ts +2 -2
- package/dist/types/plugins/{ui_feature → ui_stateful}/figure.d.ts +4 -0
- package/dist/types/plugins/ui_stateful/header_positions.d.ts +2 -1
- package/dist/types/registries/chart_data_source_registry.d.ts +4 -5
- package/dist/types/registries/chart_registry.d.ts +7 -4
- package/dist/types/registries/criterion_registry.d.ts +4 -4
- package/dist/types/registries/data_source_registry.d.ts +15 -0
- package/dist/types/registries/evaluation_registry.d.ts +2 -2
- package/dist/types/registries/figures_registry.d.ts +6 -2
- 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/store_engine/store_registries.d.ts +4 -0
- package/dist/types/stores/array_formula_highlight.d.ts +1 -1
- package/dist/types/{plugins/ui_feature/automatic_sum.d.ts → stores/automatic_sum_store.d.ts} +5 -4
- package/dist/types/stores/cell_hover_overlay_store.d.ts +15 -0
- package/dist/types/stores/chart_drag_store.d.ts +10 -0
- package/dist/types/stores/checkbox_toggle.d.ts +9 -0
- package/dist/types/stores/client_focus_store.d.ts +1 -0
- package/dist/types/{plugins/ui_stateful/clipboard.d.ts → stores/clipboard_store.d.ts} +11 -11
- package/dist/types/stores/data_cleanup_store.d.ts +31 -0
- package/dist/types/stores/grid_renderer_store.d.ts +3 -2
- package/dist/types/stores/main_viewport_store.d.ts +14 -0
- package/dist/types/stores/spreadsheet_store.d.ts +1 -1
- package/dist/types/stores/table_resize_store.d.ts +6 -0
- package/dist/types/stores/trim_whitespace_store.d.ts +9 -0
- package/dist/types/stores/viewports_store.d.ts +85 -0
- package/dist/types/stores/zoom_store.d.ts +27 -0
- package/dist/types/types/chart/chart.d.ts +3 -1
- package/dist/types/types/chart/chart_suggestion.d.ts +137 -0
- package/dist/types/types/chart/radar_chart.d.ts +1 -1
- package/dist/types/types/chart/scorecard_chart.d.ts +3 -4
- package/dist/types/types/collaborative/transport_service.d.ts +1 -0
- package/dist/types/types/commands.d.ts +55 -68
- package/dist/types/types/figure.d.ts +26 -3
- package/dist/types/types/functions.d.ts +16 -6
- package/dist/types/types/getters.d.ts +126 -28
- package/dist/types/types/misc.d.ts +19 -1
- package/dist/types/types/model.d.ts +2 -4
- package/dist/types/types/range.d.ts +1 -0
- package/dist/types/types/rendering.d.ts +21 -1
- package/dist/types/types/store_engine.d.ts +10 -3
- package/package.json +6 -5
- 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/checkbox_toggle.d.ts +0 -9
- package/dist/types/plugins/ui_feature/data_cleanup.d.ts +0 -16
- package/dist/types/plugins/ui_feature/pivot_presence_plugin.d.ts +0 -11
- package/dist/types/plugins/ui_feature/split_to_columns.d.ts +0 -21
- package/dist/types/plugins/ui_feature/subtotal_evaluation.d.ts +0 -5
- package/dist/types/plugins/ui_feature/table_autofill.d.ts +0 -6
- package/dist/types/plugins/ui_feature/table_resize_ui.d.ts +0 -6
- package/dist/types/plugins/ui_stateful/sheetview.d.ts +0 -123
- package/dist/types/types/core_getters.d.ts +0 -75
- /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
|
@@ -34,10 +34,6 @@ export interface ActionSpec {
|
|
|
34
34
|
*/
|
|
35
35
|
icon?: string | ((env: SpreadsheetChildEnv) => string);
|
|
36
36
|
iconColor?: Color;
|
|
37
|
-
/**
|
|
38
|
-
* Can be defined to display another icon on the right of the item.
|
|
39
|
-
*/
|
|
40
|
-
secondaryIcon?: string | ((env: SpreadsheetChildEnv) => string);
|
|
41
37
|
/**
|
|
42
38
|
* is the action allowed when running spreadsheet in readonly mode
|
|
43
39
|
*/
|
|
@@ -77,7 +73,6 @@ export interface Action {
|
|
|
77
73
|
isActive?: (env: SpreadsheetChildEnv) => boolean;
|
|
78
74
|
icon: (env: SpreadsheetChildEnv) => string;
|
|
79
75
|
iconColor?: Color;
|
|
80
|
-
secondaryIcon: (env: SpreadsheetChildEnv) => string;
|
|
81
76
|
isReadonlyAllowed: boolean;
|
|
82
77
|
isEnabledOnLockedSheet: boolean;
|
|
83
78
|
execute?: (env: SpreadsheetChildEnv, isMiddleClick?: boolean) => unknown;
|
|
@@ -87,11 +82,10 @@ export interface Action {
|
|
|
87
82
|
onStartHover?: (env: SpreadsheetChildEnv) => void;
|
|
88
83
|
onStopHover?: (env: SpreadsheetChildEnv) => void;
|
|
89
84
|
}
|
|
90
|
-
export interface ComputedAction extends Omit<Action, "name" | "description" | "icon" | "
|
|
85
|
+
export interface ComputedAction extends Omit<Action, "name" | "description" | "icon" | "children"> {
|
|
91
86
|
name: string;
|
|
92
87
|
description: string;
|
|
93
88
|
icon: string;
|
|
94
|
-
secondaryIcon: string;
|
|
95
89
|
}
|
|
96
90
|
export type ActionBuilder = (env: SpreadsheetChildEnv) => ActionSpec[];
|
|
97
91
|
type ActionChildren = (ActionSpec | ActionBuilder)[];
|
|
@@ -4,10 +4,12 @@ export declare const sortAscending: ActionSpec;
|
|
|
4
4
|
export declare const dataCleanup: ActionSpec;
|
|
5
5
|
export declare const removeDuplicates: ActionSpec;
|
|
6
6
|
export declare const trimWhitespace: ActionSpec;
|
|
7
|
+
export declare const cleanupDataSources: ActionSpec;
|
|
7
8
|
export declare const sortDescending: ActionSpec;
|
|
8
9
|
export declare const createRemoveFilter: ActionSpec;
|
|
9
10
|
export declare const createRemoveFilterTool: ActionSpec;
|
|
10
11
|
export declare const splitToColumns: ActionSpec;
|
|
12
|
+
export declare const dataAnalysis: ActionSpec;
|
|
11
13
|
export declare const columnStatistics: ActionSpec;
|
|
12
14
|
export declare const reinsertDynamicPivotMenu: ActionSpec;
|
|
13
15
|
export declare const reinsertStaticPivotMenu: ActionSpec;
|
|
@@ -1,9 +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";
|
|
5
|
+
import { Table } from "../types/table";
|
|
4
6
|
import { ActionSpec } from "./action";
|
|
5
|
-
export declare function setFormatter(
|
|
6
|
-
export declare function setStyle(
|
|
7
|
+
export declare function setFormatter(model: Model, format: Format): void;
|
|
8
|
+
export declare function setStyle(model: Model, style: Style): void;
|
|
7
9
|
export declare const PASTE_ACTION: (env: SpreadsheetChildEnv) => Promise<void>;
|
|
8
10
|
export declare const PASTE_AS_VALUE_ACTION: (env: SpreadsheetChildEnv) => Promise<void>;
|
|
9
11
|
export declare const PASTE_FORMAT_ACTION: (env: SpreadsheetChildEnv) => Promise<void>;
|
|
@@ -49,6 +51,7 @@ export declare const INSERT_LINK_NAME: (env: SpreadsheetChildEnv) => string;
|
|
|
49
51
|
export declare const SELECTED_TABLE_HAS_FILTERS: (env: SpreadsheetChildEnv) => boolean;
|
|
50
52
|
export declare const SELECTION_CONTAINS_SINGLE_TABLE: (env: SpreadsheetChildEnv) => boolean;
|
|
51
53
|
export declare const IS_SELECTION_CONTINUOUS: (env: SpreadsheetChildEnv) => boolean;
|
|
54
|
+
export declare const FIRST_TABLE_IN_SELECTION: (env: SpreadsheetChildEnv) => Table | undefined;
|
|
52
55
|
export declare const ADD_DATA_FILTER: (env: SpreadsheetChildEnv) => void;
|
|
53
56
|
export declare const REMOVE_DATA_FILTER: (env: SpreadsheetChildEnv) => void;
|
|
54
57
|
export declare const INSERT_TABLE: (env: SpreadsheetChildEnv) => void;
|
|
@@ -15,7 +15,7 @@ type ClipboardContent = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare class DefaultClipboardHandler extends AbstractCellClipboardHandler<ClipboardContent, unknown> {
|
|
17
17
|
copy(data: ClipboardCellData): ClipboardContent | undefined;
|
|
18
|
-
|
|
18
|
+
adaptContentToZone(zone: Zone, content: ClipboardContent): ClipboardContent;
|
|
19
19
|
paste(target: ClipboardPasteTarget, content: ClipboardContent, options: ClipboardOptions): void;
|
|
20
20
|
/**
|
|
21
21
|
* Clear the clipped zones: remove the cells and clear the formatting
|
|
@@ -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:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { CoreCommand } from "../../types/commands";
|
|
1
|
+
import { CoreCommand, SheetDependentCommand } from "../../types/commands";
|
|
2
2
|
import { UnboundedZone, Zone } from "../../types/misc";
|
|
3
3
|
import { RangeData } from "../../types/range";
|
|
4
|
+
export type TransformResult = "SKIP_TRANSFORMATION" | "IGNORE_COMMAND";
|
|
4
5
|
export declare function transformZone<Z extends Zone | UnboundedZone>(zone: Z, executed: CoreCommand): Z | undefined;
|
|
5
6
|
export declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
|
|
7
|
+
export declare function transformSheetId(toTransform: Extract<CoreCommand, SheetDependentCommand>, executed: CoreCommand): CoreCommand | TransformResult;
|
|
@@ -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.
|
|
@@ -19,6 +19,9 @@ export declare class Autofill extends Component<SpreadsheetChildEnv> {
|
|
|
19
19
|
clientY: number;
|
|
20
20
|
}, onPointerMove: (col: HeaderIndex, row: HeaderIndex, ev: MouseEvent) => void, onPointerUp: () => void, startScrollDirection?: import("../helpers/drag_and_drop_grid_hook").DnDDirection) => void;
|
|
21
21
|
};
|
|
22
|
+
private zoomStore;
|
|
23
|
+
private autofillStore;
|
|
24
|
+
setup(): void;
|
|
22
25
|
get style(): string;
|
|
23
26
|
get handlerStyle(): string;
|
|
24
27
|
get styleNextValue(): string;
|
package/dist/types/{plugins/ui_feature/autofill.d.ts → components/autofill/autofill_store.d.ts}
RENAMED
|
@@ -1,22 +1,16 @@
|
|
|
1
|
+
import { SpreadsheetStore } from "../../stores/spreadsheet_store";
|
|
1
2
|
import { Tooltip } from "../../types/autofill";
|
|
2
|
-
import { Command
|
|
3
|
+
import { Command } from "../../types/commands";
|
|
4
|
+
import { HeaderIndex } from "../../types/misc";
|
|
3
5
|
import { GridRenderingContext } from "../../types/rendering";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Autofill Plugin
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
export declare class AutofillPlugin extends UIPlugin {
|
|
10
|
-
static layers: readonly ["Autofill"];
|
|
11
|
-
static getters: readonly ["getAutofillTooltip"];
|
|
6
|
+
export declare class AutofillStore extends SpreadsheetStore {
|
|
12
7
|
private autofillZone;
|
|
13
8
|
private steps;
|
|
14
9
|
private lastCellSelected;
|
|
15
10
|
private direction;
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
tooltip: Tooltip | undefined;
|
|
12
|
+
canAutofillSelect(col: HeaderIndex, row: HeaderIndex): boolean;
|
|
18
13
|
handle(cmd: Command): void;
|
|
19
|
-
getAutofillTooltip(): Tooltip | undefined;
|
|
20
14
|
/**
|
|
21
15
|
* Autofill the autofillZone from the current selection
|
|
22
16
|
* @param apply Flag set to true to apply the autofill in the model. It's
|
|
@@ -59,5 +53,6 @@ export declare class AutofillPlugin extends UIPlugin {
|
|
|
59
53
|
*/
|
|
60
54
|
private getDirection;
|
|
61
55
|
private autofillMerge;
|
|
56
|
+
get renderingLayers(): readonly ["Autofill"];
|
|
62
57
|
drawLayer(renderingContext: GridRenderingContext): void;
|
|
63
58
|
}
|
|
@@ -20,6 +20,7 @@ export declare class BorderEditorWidget extends Component<SpreadsheetChildEnv> {
|
|
|
20
20
|
class?: string | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
topBarToolStore: ToolBarDropdownStore;
|
|
23
|
+
private viewStore;
|
|
23
24
|
borderEditorButtonRef: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
24
25
|
state: State;
|
|
25
26
|
setup(): void;
|
|
@@ -14,8 +14,11 @@ export declare class BottomBarStatistic extends Component<SpreadsheetChildEnv> {
|
|
|
14
14
|
}>;
|
|
15
15
|
private state;
|
|
16
16
|
private store;
|
|
17
|
+
private sidePanelStore;
|
|
17
18
|
setup(): void;
|
|
18
19
|
getSelectedStatistic(): string | undefined;
|
|
19
20
|
listSelectionStatistics(ev: MenuMouseEvent): void;
|
|
20
21
|
private getComposedFnName;
|
|
22
|
+
get isDataAnalysisOpen(): boolean;
|
|
23
|
+
toggleDataAnalysisPanel(): void;
|
|
21
24
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component } from "../../owl3_compatibility_layer";
|
|
2
|
+
import { Rect } from "../../types/rendering";
|
|
3
|
+
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
4
|
+
import { Store } from "../../types/store_engine";
|
|
5
|
+
import { ClickableCell, ClickableCellsStore } from "../dashboard/clickable_cell_store";
|
|
6
|
+
export declare class ClickableCellsOverlay extends Component<SpreadsheetChildEnv> {
|
|
7
|
+
static template: string;
|
|
8
|
+
static components: {};
|
|
9
|
+
clickableCellsStore: Store<ClickableCellsStore>;
|
|
10
|
+
setup(): void;
|
|
11
|
+
getCellClickableStyle(coordinates: Rect): string;
|
|
12
|
+
/**
|
|
13
|
+
* Get all the boxes for the cell in the sheet view that are clickable.
|
|
14
|
+
* This function is used to render an overlay over each clickable cell in
|
|
15
|
+
* order to display a pointer cursor.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
getClickableCells(): ClickableCell[];
|
|
19
|
+
selectClickableCell(ev: MouseEvent, clickableCell: ClickableCell): void;
|
|
20
|
+
}
|
|
@@ -2,6 +2,8 @@ import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
|
2
2
|
import { Component } from "../../owl3_compatibility_layer";
|
|
3
3
|
export declare class ClientTag extends Component<SpreadsheetChildEnv> {
|
|
4
4
|
static template: string;
|
|
5
|
+
private viewStore;
|
|
6
|
+
setup(): void;
|
|
5
7
|
protected props: import("@odoo/owl").Props<{
|
|
6
8
|
active: boolean;
|
|
7
9
|
name: string;
|
|
@@ -4,7 +4,7 @@ import { NotificationStore } from "../../../stores/notification_store";
|
|
|
4
4
|
import { SpreadsheetStore } from "../../../stores/spreadsheet_store";
|
|
5
5
|
import { Command } from "../../../types/commands";
|
|
6
6
|
import { CellPosition, Direction, EditionMode, HeaderIndex, Highlight, UID, UnboundedZone, Zone } from "../../../types/misc";
|
|
7
|
-
import { Get } from "../../../types/store_engine";
|
|
7
|
+
import { Get, Store } from "../../../types/store_engine";
|
|
8
8
|
export interface ComposerSelection {
|
|
9
9
|
start: number;
|
|
10
10
|
end: number;
|
|
@@ -26,8 +26,9 @@ export declare abstract class AbstractComposerStore extends SpreadsheetStore {
|
|
|
26
26
|
hoveredTokens: EnrichedToken[];
|
|
27
27
|
hoveredContentEvaluation: string;
|
|
28
28
|
private autoCompleteKeepLast;
|
|
29
|
-
protected notificationStore:
|
|
29
|
+
protected notificationStore: Store<NotificationStore>;
|
|
30
30
|
private highlightStore;
|
|
31
|
+
private viewStore;
|
|
31
32
|
constructor(get: Get);
|
|
32
33
|
protected abstract confirmEdition(content: string): void;
|
|
33
34
|
protected abstract getComposerContent(position: CellPosition, selection?: ComposerSelection): {
|
|
@@ -5,6 +5,7 @@ import { FunctionDescription } from "../../../types/functions";
|
|
|
5
5
|
import { CSSProperties, Color } from "../../../types/misc";
|
|
6
6
|
import { Rect } from "../../../types/rendering";
|
|
7
7
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
8
|
+
import { Store } from "../../../types/store_engine";
|
|
8
9
|
import { TextValueProvider } from "../autocomplete_dropdown/autocomplete_dropdown";
|
|
9
10
|
import { ContentEditableHelper } from "../content_editable_helper";
|
|
10
11
|
import { FunctionDescriptionProvider } from "../formula_assistant/formula_assistant";
|
|
@@ -41,7 +42,7 @@ export declare class Composer extends Component<SpreadsheetChildEnv> {
|
|
|
41
42
|
inputStyle: string;
|
|
42
43
|
onComposerContentFocused: (selection: ComposerSelection) => void;
|
|
43
44
|
isDefaultFocus: boolean;
|
|
44
|
-
composerStore:
|
|
45
|
+
composerStore: Store<AbstractComposerStore>;
|
|
45
46
|
inputMode: string;
|
|
46
47
|
showAssistant: boolean;
|
|
47
48
|
rect?: Rect | undefined;
|
|
@@ -24,6 +24,7 @@ export declare class GridComposer extends Component<SpreadsheetChildEnv> {
|
|
|
24
24
|
private currentEditedCell;
|
|
25
25
|
private composerStore;
|
|
26
26
|
composerFocusStore: Store<ComposerFocusStore>;
|
|
27
|
+
private viewStore;
|
|
27
28
|
private composerInterface;
|
|
28
29
|
get defaultRect(): {
|
|
29
30
|
x: number;
|
package/dist/types/components/dashboard/clickable_cell_sort_icon/clickable_cell_sort_icon.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class ClickableCellSortIcon extends Component<SpreadsheetChildEnv
|
|
|
6
6
|
position: import("../../..").CellPosition;
|
|
7
7
|
sortDirection: "none" | (() => import("@odoo/owl").Type<import("../../..").SortDirection>);
|
|
8
8
|
}>;
|
|
9
|
-
private
|
|
9
|
+
private hoveredCellOverlayStore;
|
|
10
10
|
setup(): void;
|
|
11
11
|
get style(): string;
|
|
12
12
|
get verticalJustifyClass(): "justify-content-start" | "justify-content-center" | "justify-content-end";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Component } from "../../owl3_compatibility_layer";
|
|
2
|
-
import { DOMCoordinates, DOMDimension
|
|
2
|
+
import { DOMCoordinates, DOMDimension } from "../../types/rendering";
|
|
3
3
|
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
4
4
|
import { Store } from "../../types/store_engine";
|
|
5
|
+
import { ClickableCellsOverlay } from "../clickable_cells_overlay/clickable_cells_overlay";
|
|
6
|
+
import { FiguresContainer } from "../figures/figure_container/figure_container";
|
|
5
7
|
import { DelayedHoveredCellStore } from "../grid/delayed_hovered_cell_store";
|
|
6
8
|
import { GridOverlay } from "../grid_overlay/grid_overlay";
|
|
7
9
|
import { GridPopover } from "../grid_popover/grid_popover";
|
|
@@ -9,7 +11,6 @@ import { CellPopoverStore } from "../popover/cell_popover_store";
|
|
|
9
11
|
import { Popover } from "../popover/popover";
|
|
10
12
|
import { HorizontalScrollBar } from "../scrollbar/scrollbar_horizontal";
|
|
11
13
|
import { VerticalScrollBar } from "../scrollbar/scrollbar_vertical";
|
|
12
|
-
import { ClickableCell, ClickableCellsStore } from "./clickable_cell_store";
|
|
13
14
|
export declare class SpreadsheetDashboard extends Component<SpreadsheetChildEnv> {
|
|
14
15
|
static template: string;
|
|
15
16
|
static components: {
|
|
@@ -18,6 +19,8 @@ export declare class SpreadsheetDashboard extends Component<SpreadsheetChildEnv>
|
|
|
18
19
|
Popover: typeof Popover;
|
|
19
20
|
VerticalScrollBar: typeof VerticalScrollBar;
|
|
20
21
|
HorizontalScrollBar: typeof HorizontalScrollBar;
|
|
22
|
+
ClickableCellsOverlay: typeof ClickableCellsOverlay;
|
|
23
|
+
FiguresContainer: typeof FiguresContainer;
|
|
21
24
|
};
|
|
22
25
|
protected props: import("@odoo/owl").Props<{
|
|
23
26
|
getGridSize: () => DOMDimension;
|
|
@@ -26,21 +29,13 @@ export declare class SpreadsheetDashboard extends Component<SpreadsheetChildEnv>
|
|
|
26
29
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
27
30
|
canvasPosition: DOMCoordinates;
|
|
28
31
|
hoveredCell: Store<DelayedHoveredCellStore>;
|
|
29
|
-
|
|
32
|
+
private viewStore;
|
|
33
|
+
private zoomStore;
|
|
30
34
|
private gridRef;
|
|
31
35
|
private canvasRef;
|
|
32
36
|
setup(): void;
|
|
33
37
|
get gridContainer(): string;
|
|
34
38
|
get gridOverlayDimensions(): string;
|
|
35
|
-
getCellClickableStyle(coordinates: Rect): string;
|
|
36
|
-
/**
|
|
37
|
-
* Get all the boxes for the cell in the sheet view that are clickable.
|
|
38
|
-
* This function is used to render an overlay over each clickable cell in
|
|
39
|
-
* order to display a pointer cursor.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
getClickableCells(): ClickableCell[];
|
|
43
|
-
selectClickableCell(ev: MouseEvent, clickableCell: ClickableCell): void;
|
|
44
39
|
onClosePopover(): void;
|
|
45
40
|
onGridResized(): void;
|
|
46
41
|
private moveCanvas;
|
|
@@ -10,6 +10,8 @@ export declare class ErrorToolTip extends Component<SpreadsheetChildEnv> {
|
|
|
10
10
|
cellPosition: import("../..").CellPosition;
|
|
11
11
|
onClosed?: (() => void) | undefined;
|
|
12
12
|
}>;
|
|
13
|
+
private viewStore;
|
|
14
|
+
setup(): void;
|
|
13
15
|
get dataValidationErrorMessage(): string | undefined;
|
|
14
16
|
get evaluationError(): import("../..").EvaluatedCell | undefined;
|
|
15
17
|
get errorOriginPositionString(): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plugin } from "chart.js";
|
|
2
|
+
/**
|
|
3
|
+
* ChartJS plugin to apply custom changes to a d3 projection.
|
|
4
|
+
*
|
|
5
|
+
* We pass the projection as a string instead of a customized d3 object so
|
|
6
|
+
* Chart.js creates a fresh projection instance. Custom changes (e.g. rotation)
|
|
7
|
+
* are then applied in `beforeUpdate`.
|
|
8
|
+
*
|
|
9
|
+
* This is important because Chart.js mutates the projection instance at runtime,
|
|
10
|
+
* and a customize d3 projection object would not be copied during deepCopy.
|
|
11
|
+
*/
|
|
12
|
+
export declare const geoProjectionPlugin: Plugin;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
-
import { ResizeDirection } from "../../../types/figure";
|
|
3
|
-
import { CSSProperties } from "../../../types/misc";
|
|
2
|
+
import { FigureUI, ResizeDirection } from "../../../types/figure";
|
|
4
3
|
import { Rect } from "../../../types/rendering";
|
|
5
4
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
6
5
|
import { MenuPopover } from "../../menu_popover/menu_popover";
|
|
@@ -11,7 +10,7 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
|
|
|
11
10
|
MenuPopover: typeof MenuPopover;
|
|
12
11
|
};
|
|
13
12
|
protected props: import("@odoo/owl").PropsWithDefaults<{
|
|
14
|
-
figureUI:
|
|
13
|
+
figureUI: FigureUI;
|
|
15
14
|
style: string;
|
|
16
15
|
class: string;
|
|
17
16
|
onMouseDown: (ev: MouseEvent) => void;
|
|
@@ -19,23 +18,25 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
|
|
|
19
18
|
}, "onMouseDown" | "onClickAnchor">;
|
|
20
19
|
private menuState;
|
|
21
20
|
private figureRef;
|
|
22
|
-
private
|
|
23
|
-
private borderWidth;
|
|
21
|
+
private zoomStore;
|
|
24
22
|
get isSelected(): boolean;
|
|
23
|
+
get isThemeDependant(): boolean;
|
|
25
24
|
get figureRegistry(): import("../../..").Registry<import("../../../registries/figures_registry").FigureContent>;
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
get borderWidth(): number;
|
|
26
|
+
get hasShadow(): boolean;
|
|
27
|
+
get isRounded(): boolean;
|
|
28
28
|
get wrapperStyle(): string;
|
|
29
|
+
get figureStyle(): string;
|
|
30
|
+
get figureClass(): string;
|
|
29
31
|
getResizerPosition(resizer: ResizeAnchor): string;
|
|
30
32
|
setup(): void;
|
|
31
33
|
clickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
32
34
|
onMouseDown(ev: MouseEvent): void;
|
|
33
35
|
onClick(ev: MouseEvent): void;
|
|
34
36
|
onKeyDown(ev: KeyboardEvent): void;
|
|
35
|
-
private
|
|
37
|
+
private positionInBoundary;
|
|
36
38
|
onContextMenu(ev: MouseEvent): void;
|
|
37
39
|
openContextMenu(anchorRect: Rect): void;
|
|
38
|
-
editWrapperStyle(properties: CSSProperties): void;
|
|
39
40
|
get isFigureResizable(): boolean;
|
|
40
41
|
}
|
|
41
42
|
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
2
|
import { Carousel, CarouselItem } from "../../../types/figure";
|
|
3
3
|
import { CSSProperties, MenuMouseEvent } from "../../../types/misc";
|
|
4
|
+
import { Range } from "../../../types/range";
|
|
4
5
|
import { Rect } from "../../../types/rendering";
|
|
5
6
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
6
7
|
import { Store } from "../../../types/store_engine";
|
|
7
8
|
import { MenuPopover } from "../../menu_popover/menu_popover";
|
|
9
|
+
import { StandaloneViewport } from "../../standalone_viewport/standalone_viewport";
|
|
8
10
|
import { ChartAnimationStore } from "../chart/chartJs/chartjs_animation_store";
|
|
9
11
|
import { ChartMenu } from "../chart/chart_menu/chart_menu";
|
|
10
12
|
export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
@@ -12,6 +14,7 @@ export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
|
12
14
|
static components: {
|
|
13
15
|
ChartMenu: typeof ChartMenu;
|
|
14
16
|
MenuPopover: typeof MenuPopover;
|
|
17
|
+
StandaloneViewport: typeof StandaloneViewport;
|
|
15
18
|
};
|
|
16
19
|
protected props: import("@odoo/owl").Props<{
|
|
17
20
|
figureUI: import("../../..").FigureUI;
|
|
@@ -34,14 +37,26 @@ export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
|
34
37
|
isItemSelected(item: CarouselItem): boolean;
|
|
35
38
|
getItemTitle(item: CarouselItem): string;
|
|
36
39
|
onCarouselTabClick(item: CarouselItem): void;
|
|
40
|
+
get carouselStyle(): string;
|
|
41
|
+
get contentStyle(): string;
|
|
37
42
|
get headerStyle(): string;
|
|
43
|
+
get separatorStyle(): string;
|
|
38
44
|
get title(): string;
|
|
39
45
|
get titleStyle(): string;
|
|
46
|
+
private rectToCss;
|
|
40
47
|
private updateTabsVisibility;
|
|
41
48
|
get menuId(): string;
|
|
42
49
|
toggleMenu(ev: MenuMouseEvent): void;
|
|
43
50
|
toggleFullScreen(): void;
|
|
44
51
|
get fullScreenButtonTitle(): string;
|
|
45
|
-
get visibleCarouselItems(): CarouselItem[];
|
|
46
52
|
openContextMenu(event: MenuMouseEvent): void;
|
|
53
|
+
removeEmptyHeadersFromRange(range: Range): Range;
|
|
54
|
+
onResizeColumns(columnWeights: number[]): void;
|
|
55
|
+
get canResizeDataViewColumns(): boolean;
|
|
56
|
+
get carouselLayout(): {
|
|
57
|
+
headerRect: Rect;
|
|
58
|
+
separatorRect: Rect | undefined;
|
|
59
|
+
contentRect: Rect;
|
|
60
|
+
headerLineHeight: 1.5;
|
|
61
|
+
};
|
|
47
62
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChartType } from "../../../types/chart/chart";
|
|
2
|
-
import {
|
|
2
|
+
import { UID } from "../../../types/misc";
|
|
3
3
|
import { Rect } from "../../../types/rendering";
|
|
4
4
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
5
5
|
import { ChartMenu } from "../chart/chart_menu/chart_menu";
|
|
@@ -11,7 +11,6 @@ export declare class ChartFigure extends Component<SpreadsheetChildEnv> {
|
|
|
11
11
|
};
|
|
12
12
|
protected props: import("@odoo/owl").Props<{
|
|
13
13
|
figureUI: import("../../..").FigureUI;
|
|
14
|
-
editFigureStyle?: ((properties: CSSProperties) => void) | undefined;
|
|
15
14
|
isFullScreen?: boolean | undefined;
|
|
16
15
|
openContextMenu?: ((anchorRect: Rect, onClose?: () => void) => void) | undefined;
|
|
17
16
|
}>;
|
|
@@ -23,7 +23,6 @@ interface DndState {
|
|
|
23
23
|
horizontalSnap?: Snap<HFigureAxisType>;
|
|
24
24
|
verticalSnap?: Snap<VFigureAxisType>;
|
|
25
25
|
cancelDnd: (() => void) | undefined;
|
|
26
|
-
overlappingChartOrCarousel?: FigureUI;
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
28
|
* Each figure ⭐ is positioned inside a container `div` placed and sized
|
|
@@ -91,6 +90,9 @@ export declare class FiguresContainer extends Component<SpreadsheetChildEnv> {
|
|
|
91
90
|
FigureComponent: typeof FigureComponent;
|
|
92
91
|
};
|
|
93
92
|
dnd: DndState;
|
|
93
|
+
private viewStore;
|
|
94
|
+
private zoomStore;
|
|
95
|
+
private chartDragStore;
|
|
94
96
|
setup(): void;
|
|
95
97
|
private getVisibleFigures;
|
|
96
98
|
get containers(): Container[];
|
|
@@ -98,6 +100,10 @@ export declare class FiguresContainer extends Component<SpreadsheetChildEnv> {
|
|
|
98
100
|
private rectToCss;
|
|
99
101
|
private getContainerRect;
|
|
100
102
|
get selectedRectStyle(): string;
|
|
103
|
+
get maxDimensions(): {
|
|
104
|
+
maxX: import("../../..").Pixel;
|
|
105
|
+
maxY: import("../../..").Pixel;
|
|
106
|
+
};
|
|
101
107
|
private getInverseViewportPositionStyle;
|
|
102
108
|
private getFigureContainer;
|
|
103
109
|
private getDndFigureRect;
|
|
@@ -105,7 +111,7 @@ export declare class FiguresContainer extends Component<SpreadsheetChildEnv> {
|
|
|
105
111
|
private isMenuClick;
|
|
106
112
|
startDraggingFigure(figureUI: FigureUI, ev: MouseEvent): void;
|
|
107
113
|
/**
|
|
108
|
-
* Initialize the resize of
|
|
114
|
+
* Initialize the resize of the selected figures with mouse movements
|
|
109
115
|
*
|
|
110
116
|
* @param dirX X direction of the resize. -1 : resize from the left border of the figure, 0 : no resize in X, 1 :
|
|
111
117
|
* resize from the right border of the figure
|
|
@@ -113,12 +119,11 @@ export declare class FiguresContainer extends Component<SpreadsheetChildEnv> {
|
|
|
113
119
|
* resize from the bottom border of the figure
|
|
114
120
|
* @param ev Mouse Event
|
|
115
121
|
*/
|
|
116
|
-
|
|
122
|
+
resizeAllSelectedFigures(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
117
123
|
private getOtherFigures;
|
|
118
124
|
getFigureStyle(figureUI: FigureUI): string;
|
|
119
125
|
getFigureClass(figureUI: FigureUI): string;
|
|
120
126
|
private getSnap;
|
|
121
127
|
private getSnapLineStyle;
|
|
122
|
-
private getOverlappingFigure;
|
|
123
128
|
}
|
|
124
129
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UID } from "../../../types/misc";
|
|
2
2
|
import { Rect } from "../../../types/rendering";
|
|
3
3
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
4
4
|
import { Component } from "../../../owl3_compatibility_layer";
|
|
@@ -7,7 +7,6 @@ export declare class ImageFigure extends Component<SpreadsheetChildEnv> {
|
|
|
7
7
|
protected props: import("@odoo/owl").Props<{
|
|
8
8
|
figureUI: import("../../..").FigureUI;
|
|
9
9
|
openContextMenu: (anchorRect: Rect, onClose?: () => void) => void;
|
|
10
|
-
editFigureStyle?: ((properties: CSSProperties) => void) | undefined;
|
|
11
10
|
}>;
|
|
12
11
|
private menuButtonRef;
|
|
13
12
|
showMenu(ev: MouseEvent): void;
|
|
@@ -17,6 +17,7 @@ export declare class FilterMenu extends Component<SpreadsheetChildEnv> {
|
|
|
17
17
|
private state;
|
|
18
18
|
private criterionCategory;
|
|
19
19
|
private updatedCriterionValue;
|
|
20
|
+
private viewStore;
|
|
20
21
|
setup(): void;
|
|
21
22
|
get isSortable(): boolean;
|
|
22
23
|
get table(): import("../../..").Table | undefined;
|
|
@@ -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;
|