@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component } from "../../owl3_compatibility_layer";
|
|
2
|
+
import { ViewportsStore } from "../../stores/viewports_store";
|
|
2
3
|
import { Client } from "../../types/collaborative/session";
|
|
3
4
|
import { GridClickModifiers, HeaderIndex, Pixel } from "../../types/misc";
|
|
4
5
|
import { DOMCoordinates, DOMDimension } from "../../types/rendering";
|
|
@@ -9,6 +10,7 @@ import { Autofill } from "../autofill/autofill";
|
|
|
9
10
|
import { ClientTag } from "../collaborative_client_tag/collaborative_client_tag";
|
|
10
11
|
import { ComposerSelection } from "../composer/composer/abstract_composer_store";
|
|
11
12
|
import { GridComposer } from "../composer/grid_composer/grid_composer";
|
|
13
|
+
import { FiguresContainer } from "../figures/figure_container/figure_container";
|
|
12
14
|
import { GridOverlay } from "../grid_overlay/grid_overlay";
|
|
13
15
|
import { GridPopover } from "../grid_popover/grid_popover";
|
|
14
16
|
import { HeadersOverlay } from "../headers_overlay/headers_overlay";
|
|
@@ -49,6 +51,7 @@ export declare class Grid extends Component<SpreadsheetChildEnv> {
|
|
|
49
51
|
HorizontalScrollBar: typeof HorizontalScrollBar;
|
|
50
52
|
TableResizer: typeof TableResizer;
|
|
51
53
|
Selection: typeof Selection;
|
|
54
|
+
FiguresContainer: typeof FiguresContainer;
|
|
52
55
|
};
|
|
53
56
|
protected props: import("@odoo/owl").Props<{
|
|
54
57
|
exposeFocus: (focus: () => void) => void;
|
|
@@ -60,11 +63,15 @@ export declare class Grid extends Component<SpreadsheetChildEnv> {
|
|
|
60
63
|
private gridRef;
|
|
61
64
|
private canvasRef;
|
|
62
65
|
private highlightStore;
|
|
66
|
+
viewStore: Store<ViewportsStore>;
|
|
67
|
+
private zoomStore;
|
|
63
68
|
private cellPopovers;
|
|
64
69
|
private composerFocusStore;
|
|
65
70
|
private DOMFocusableElementStore;
|
|
66
71
|
private paintFormatStore;
|
|
67
72
|
private clientFocusStore;
|
|
73
|
+
private checkboxToggleStore;
|
|
74
|
+
private clipboardStore;
|
|
68
75
|
dragNDropGrid: {
|
|
69
76
|
start: (initialPointerCoordinates: {
|
|
70
77
|
clientX: number;
|
|
@@ -74,6 +81,7 @@ export declare class Grid extends Component<SpreadsheetChildEnv> {
|
|
|
74
81
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
75
82
|
hoveredCell: Store<DelayedHoveredCellStore>;
|
|
76
83
|
sidePanel: Store<SidePanelStore>;
|
|
84
|
+
private automaticSumStore;
|
|
77
85
|
setup(): void;
|
|
78
86
|
get highlights(): import("../..").Highlight[];
|
|
79
87
|
get gridOverlayDimensions(): string;
|
|
@@ -120,4 +128,6 @@ export declare class Grid extends Component<SpreadsheetChildEnv> {
|
|
|
120
128
|
onComposerContentFocused(): void;
|
|
121
129
|
get staticTables(): Table[];
|
|
122
130
|
get displaySelectionHandler(): boolean;
|
|
131
|
+
get clientsToDisplay(): Required<Client>[];
|
|
132
|
+
get displayTableResizer(): boolean;
|
|
123
133
|
}
|
|
@@ -7,6 +7,7 @@ export declare class GridAddRowsFooter extends Component<SpreadsheetChildEnv> {
|
|
|
7
7
|
ValidationMessages: typeof ValidationMessages;
|
|
8
8
|
};
|
|
9
9
|
private DOMFocusableElementStore;
|
|
10
|
+
private viewStore;
|
|
10
11
|
inputRef: import("@odoo/owl").Signal<HTMLInputElement | null>;
|
|
11
12
|
state: {
|
|
12
13
|
inputValue: string;
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { Component } from "../../owl3_compatibility_layer";
|
|
2
|
+
import { ViewportsStore } from "../../stores/viewports_store";
|
|
2
3
|
import { GridClickModifiers, HeaderIndex } from "../../types/misc";
|
|
3
4
|
import { DOMCoordinates } from "../../types/rendering";
|
|
4
5
|
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
5
|
-
import {
|
|
6
|
+
import { Store } from "../../types/store_engine";
|
|
6
7
|
import { GridAddRowsFooter } from "../grid_add_rows_footer/grid_add_rows_footer";
|
|
7
8
|
import { ZoomedMouseEvent } from "../helpers/zoom";
|
|
8
9
|
export declare class GridOverlay extends Component<SpreadsheetChildEnv> {
|
|
9
10
|
static template: string;
|
|
10
11
|
static components: {
|
|
11
|
-
FiguresContainer: typeof FiguresContainer;
|
|
12
12
|
GridAddRowsFooter: typeof GridAddRowsFooter;
|
|
13
13
|
};
|
|
14
14
|
protected props: import("@odoo/owl").PropsWithDefaults<{
|
|
15
|
-
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
15
|
+
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex, ev: MouseEvent) => void;
|
|
16
16
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, zoomedMouseEvent: ZoomedMouseEvent<MouseEvent | PointerEvent>) => void;
|
|
17
17
|
onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
|
|
18
18
|
onGridResized: () => void;
|
|
19
19
|
gridOverlayDimensions: string;
|
|
20
|
-
|
|
20
|
+
hasFooter: boolean;
|
|
21
|
+
}, "onCellDoubleClicked" | "onCellClicked" | "onCellRightClicked" | "onGridResized" | "hasFooter">;
|
|
21
22
|
private gridOverlayRef;
|
|
22
23
|
private cellPopovers;
|
|
23
24
|
private paintFormatStore;
|
|
24
25
|
private hoveredIconStore;
|
|
26
|
+
viewStore: Store<ViewportsStore>;
|
|
27
|
+
private zoomStore;
|
|
25
28
|
setup(): void;
|
|
26
29
|
get gridOverlayEl(): HTMLElement;
|
|
27
30
|
get style(): string;
|
|
@@ -34,4 +37,5 @@ export declare class GridOverlay extends Component<SpreadsheetChildEnv> {
|
|
|
34
37
|
onContextMenu(ev: MouseEvent): void;
|
|
35
38
|
private getCartesianCoordinates;
|
|
36
39
|
private getInteractiveIconAtEvent;
|
|
40
|
+
get isFooterVisible(): boolean;
|
|
37
41
|
}
|
|
@@ -15,6 +15,7 @@ export declare class GridPopover extends Component<SpreadsheetChildEnv> {
|
|
|
15
15
|
gridRect: import("../..").Rect;
|
|
16
16
|
}>;
|
|
17
17
|
protected cellPopovers: Store<CellPopoverStore>;
|
|
18
|
+
private zoomStore;
|
|
18
19
|
setup(): void;
|
|
19
20
|
get cellPopover(): PositionedCellPopoverComponent | ClosedCellPopover;
|
|
20
21
|
}
|
|
@@ -17,6 +17,8 @@ export declare class HeaderGroupContainer extends Component<SpreadsheetChildEnv>
|
|
|
17
17
|
layers: any[];
|
|
18
18
|
}>;
|
|
19
19
|
menu: MenuState;
|
|
20
|
+
private viewStore;
|
|
21
|
+
setup(): void;
|
|
20
22
|
getLayerOffset(layerIndex: number): number;
|
|
21
23
|
onContextMenu(event: MouseEvent): void;
|
|
22
24
|
openContextMenu(position: DOMCoordinates, menuItems: Action[]): void;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Component } from "../../owl3_compatibility_layer";
|
|
2
|
+
import { ViewportsStore } from "../../stores/viewports_store";
|
|
3
|
+
import { ZoomStore } from "../../stores/zoom_store";
|
|
2
4
|
import { HeaderDimensions, HeaderIndex, Pixel } from "../../types/misc";
|
|
3
5
|
import { EdgeScrollInfo } from "../../types/rendering";
|
|
4
6
|
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
7
|
+
import { Store } from "../../types/store_engine";
|
|
5
8
|
import { ContextMenuType } from "../grid/grid";
|
|
6
9
|
import { ZoomedMouseEvent } from "../helpers/zoom";
|
|
7
10
|
import { UnhideColumnHeaders, UnhideRowHeaders } from "./unhide_headers";
|
|
@@ -27,6 +30,8 @@ declare abstract class AbstractResizer extends Component<SpreadsheetChildEnv> {
|
|
|
27
30
|
onOpenContextMenu: (type: ContextMenuType, x: Pixel, y: Pixel) => void;
|
|
28
31
|
}>;
|
|
29
32
|
private composerFocusStore;
|
|
33
|
+
protected viewStore: Store<ViewportsStore>;
|
|
34
|
+
protected zoomStore: Store<ZoomStore>;
|
|
30
35
|
PADDING: number;
|
|
31
36
|
MAX_SIZE_MARGIN: number;
|
|
32
37
|
MIN_ELEMENT_SIZE: number;
|
|
@@ -11,6 +11,8 @@ export declare class UnhideRowHeaders extends Component<SpreadsheetChildEnv> {
|
|
|
11
11
|
};
|
|
12
12
|
offset: number;
|
|
13
13
|
}, "offset">;
|
|
14
|
+
private viewStore;
|
|
15
|
+
setup(): void;
|
|
14
16
|
get sheetId(): import("../..").UID;
|
|
15
17
|
getUnhidePreviousButtonStyle(hiddenIndex: HeaderIndex): string;
|
|
16
18
|
getUnhideNextButtonStyle(hiddenIndex: HeaderIndex): string;
|
|
@@ -27,6 +29,8 @@ export declare class UnhideColumnHeaders extends Component<SpreadsheetChildEnv>
|
|
|
27
29
|
};
|
|
28
30
|
offset: number;
|
|
29
31
|
}, "offset">;
|
|
32
|
+
private viewStore;
|
|
33
|
+
setup(): void;
|
|
30
34
|
get sheetId(): import("../..").UID;
|
|
31
35
|
getUnhidePreviousButtonStyle(hiddenIndex: HeaderIndex): string;
|
|
32
36
|
getUnhideNextButtonStyle(hiddenIndex: HeaderIndex): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChartDefinition } from "../../types/chart/chart";
|
|
2
|
+
import { FigureUI } from "../../types/figure";
|
|
3
|
+
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
4
|
+
export declare function getCarouselOverlappingChart(figureUI: {
|
|
5
|
+
tag: string;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}, otherFigures: FigureUI[], matchTags: FigureUI["tag"][]): FigureUI | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Start dragging a floating preview of the given chart definition, following the mouse.
|
|
13
|
+
* On drop, creates the chart on the grid (or inside a carousel if dropped on one).
|
|
14
|
+
*/
|
|
15
|
+
export declare function startChartDragAndDrop(env: SpreadsheetChildEnv, definition: ChartDefinition, ev: MouseEvent): void;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Rect } from "../../types/rendering";
|
|
2
2
|
/**
|
|
3
3
|
* Return true if the event was triggered from
|
|
4
4
|
* a child element.
|
|
5
5
|
*/
|
|
6
6
|
export declare function isChildEvent(parent: HTMLElement | null | undefined, ev: Event): boolean;
|
|
7
|
-
export declare function gridOverlayPosition(zoom?: number):
|
|
7
|
+
export declare function gridOverlayPosition(zoom?: number): Rect;
|
|
8
8
|
export declare function zoomCorrectedElementRect(el: Element, zoomLevel: number): Rect;
|
|
9
9
|
export declare function getElBoundingRect(el: HTMLElement | null): Rect;
|
|
10
10
|
export declare function getBoundingRectAsPOJO(el: Element): Rect;
|
|
11
|
+
export declare function getBoundingRectWithMargins(el: Element): Rect;
|
|
11
12
|
/**
|
|
12
13
|
* Iterate over all the children of `el` in the dom tree starting at `el`, depth first.
|
|
13
14
|
*/
|
|
@@ -44,3 +45,5 @@ export declare function isMiddleClickOrCtrlClick(ev: MouseEvent): boolean;
|
|
|
44
45
|
export declare function downloadFile(dataUrl: string, fileName: string): void;
|
|
45
46
|
export declare function isIOS(): boolean;
|
|
46
47
|
export declare function isMobileOS(): boolean;
|
|
48
|
+
/** Check if there is an interactive element (input, select, button, ...) between the event.target and event.currentTarget (inclusive)*/
|
|
49
|
+
export declare function hasInteractiveElementInEventTree(event: Event): boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { Signal } from "@odoo/owl";
|
|
2
1
|
import { RendererStore } from "../../stores/renderer_store";
|
|
3
2
|
import { GridRenderingContext } from "../../types/rendering";
|
|
4
3
|
import { Store } from "../../types/store_engine";
|
|
5
4
|
interface GridDrawingArgs {
|
|
6
|
-
canvasRef:
|
|
5
|
+
canvasRef: () => HTMLElement | null;
|
|
7
6
|
renderingCtx: () => Omit<GridRenderingContext, "ctx" | "thinLineWidth">;
|
|
8
7
|
rendererStore?: Store<RendererStore>;
|
|
9
8
|
changeCanvasSizeOnZoom?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FigureUI } from "../../types/figure";
|
|
2
2
|
import { PixelPosition } from "../../types/misc";
|
|
3
|
-
import { SheetDOMScrollInfo } from "../../types/rendering";
|
|
3
|
+
import { DOMDimension, Rect, SheetDOMScrollInfo } from "../../types/rendering";
|
|
4
4
|
export declare function dragFigureForMove({ x: mouseX, y: mouseY }: PixelPosition, { x: mouseInitialX, y: mouseInitialY }: PixelPosition, initialFigures: FigureUI[], { maxX, maxY }: {
|
|
5
5
|
maxX: number;
|
|
6
6
|
maxY: number;
|
|
7
7
|
}, { scrollX: initialScrollX, scrollY: initialScrollY }: SheetDOMScrollInfo, { scrollX, scrollY }: SheetDOMScrollInfo): FigureUI[];
|
|
8
|
-
export declare function dragFigureForResize(
|
|
8
|
+
export declare function dragFigureForResize(initialRect: Rect, dirX: -1 | 0 | 1, dirY: -1 | 0 | 1, { x: mouseX, y: mouseY }: PixelPosition, { x: mouseInitialX, y: mouseInitialY }: PixelPosition, keepRatio: boolean, minFigSize: DOMDimension, { scrollX: initialScrollX, scrollY: initialScrollY }: SheetDOMScrollInfo, { scrollX, scrollY }: SheetDOMScrollInfo, { maxX, maxY }: {
|
|
9
9
|
maxX: number;
|
|
10
10
|
maxY: number;
|
|
11
|
-
}):
|
|
11
|
+
}): Rect;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FigureUI } from "../../types/figure";
|
|
2
|
-
import { Getters } from "../../types/getters";
|
|
3
2
|
import { Pixel, UID } from "../../types/misc";
|
|
3
|
+
import { Rect } from "../../types/rendering";
|
|
4
|
+
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
4
5
|
export type HFigureAxisType = "top" | "bottom" | "vCenter";
|
|
5
6
|
export type VFigureAxisType = "right" | "left" | "hCenter";
|
|
6
7
|
export interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
@@ -9,8 +10,10 @@ export interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
9
10
|
snappedAxisType: T;
|
|
10
11
|
position: Pixel;
|
|
11
12
|
}
|
|
12
|
-
interface SnapReturn {
|
|
13
|
+
interface SnapMoveReturn extends SnapReturn {
|
|
13
14
|
snappedFigures: FigureUI[];
|
|
15
|
+
}
|
|
16
|
+
export interface SnapReturn {
|
|
14
17
|
verticalSnapLine?: SnapLine<VFigureAxisType>;
|
|
15
18
|
horizontalSnapLine?: SnapLine<HFigureAxisType>;
|
|
16
19
|
}
|
|
@@ -18,10 +21,12 @@ interface SnapReturn {
|
|
|
18
21
|
* Try to snap the given figure to other figures when moving the figure, and return the snapped
|
|
19
22
|
* figure and the possible snap lines, if any were found
|
|
20
23
|
*/
|
|
21
|
-
export declare function snapForMove(
|
|
24
|
+
export declare function snapForMove(env: SpreadsheetChildEnv, figuresToSnap: FigureUI[], otherFigures: FigureUI[]): SnapMoveReturn;
|
|
22
25
|
/**
|
|
23
26
|
* Try to snap the given figure to the other figures when resizing the figure, and return the snapped
|
|
24
27
|
* figure and the possible snap lines, if any were found
|
|
25
28
|
*/
|
|
26
|
-
export declare function snapForResize(
|
|
29
|
+
export declare function snapForResize(env: SpreadsheetChildEnv, resizeDirX: -1 | 0 | 1, resizeDirY: -1 | 0 | 1, rect: Rect, otherFigures: FigureUI[]): {
|
|
30
|
+
snappedRect: Rect;
|
|
31
|
+
} & SnapReturn;
|
|
27
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useWheelHandler(handler: (deltaX: number, deltaY: number) => void): (ev: WheelEvent) => void;
|
|
1
|
+
export declare function useWheelHandler(handler: (deltaX: number, deltaY: number, ev: WheelEvent) => void): (ev: WheelEvent) => void;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { Pixel } from "../../types/misc";
|
|
2
|
-
import { DOMCoordinates, Rect } 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,15 +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>;
|
|
19
|
-
/**
|
|
20
|
-
* Return a Rect with position and size on the zoomed canvas
|
|
21
|
-
*/
|
|
22
|
-
export declare function getZoomedRect(zoom: number, rect: Rect): Rect;
|
|
@@ -25,6 +25,9 @@ export declare class Highlight extends Component<SpreadsheetChildEnv> {
|
|
|
25
25
|
clientY: number;
|
|
26
26
|
}, onPointerMove: (col: HeaderIndex, row: HeaderIndex, ev: MouseEvent) => void, onPointerUp: () => void, startScrollDirection?: DnDDirection) => void;
|
|
27
27
|
};
|
|
28
|
+
private viewStore;
|
|
29
|
+
private zoomStore;
|
|
30
|
+
setup(): void;
|
|
28
31
|
get cornerOrientations(): Array<"nw" | "ne" | "sw" | "se" | "n" | "s" | "e" | "w">;
|
|
29
32
|
onResizeHighlight(ev: PointerEvent, dirX: ResizeDirection, dirY: ResizeDirection): void;
|
|
30
33
|
onMoveHighlight(ev: PointerEvent): void;
|
|
@@ -12,6 +12,7 @@ export declare class LinkDisplay extends Component<SpreadsheetChildEnv> {
|
|
|
12
12
|
onClosed?: (() => void) | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
protected cellPopovers: Store<CellPopoverStore>;
|
|
15
|
+
private viewStore;
|
|
15
16
|
setup(): void;
|
|
16
17
|
get cell(): EvaluatedCell;
|
|
17
18
|
get link(): Link;
|
|
@@ -29,11 +29,13 @@ export declare class LinkEditor extends Component<SpreadsheetChildEnv> {
|
|
|
29
29
|
static size: {
|
|
30
30
|
maxHeight: number;
|
|
31
31
|
};
|
|
32
|
-
urlInput: import("@odoo/owl").Signal<
|
|
32
|
+
urlInput: import("@odoo/owl").Signal<HTMLInputElement | null>;
|
|
33
33
|
suggestionListRef: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
34
34
|
urlInputContainer: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
35
35
|
private state;
|
|
36
|
+
private viewStore;
|
|
36
37
|
setup(): void;
|
|
38
|
+
onLinkUrlInput(ev: InputEvent): void;
|
|
37
39
|
computeLinks(): void;
|
|
38
40
|
get linkProposalByCategory(): Record<string, LinkProposal>;
|
|
39
41
|
get defaultState(): LinkState;
|
|
@@ -5,7 +5,7 @@ import { Highlight, Zone } from "../../types/misc";
|
|
|
5
5
|
import { Get } from "../../types/store_engine";
|
|
6
6
|
export declare class PaintFormatStore extends SpreadsheetStore {
|
|
7
7
|
mutators: readonly ["activate", "cancel", "pasteFormat"];
|
|
8
|
-
protected highlightStore: import("../../types/store_engine").
|
|
8
|
+
protected highlightStore: import("../../types/store_engine").Store<HighlightStore>;
|
|
9
9
|
private status;
|
|
10
10
|
private copiedData?;
|
|
11
11
|
constructor(get: Get);
|
|
@@ -6,7 +6,8 @@ import { DelayedHoveredCellStore } from "../grid/delayed_hovered_cell_store";
|
|
|
6
6
|
export declare class CellPopoverStore extends SpreadsheetStore {
|
|
7
7
|
mutators: readonly ["open", "close"];
|
|
8
8
|
private persistentPopover?;
|
|
9
|
-
protected hoveredCell: import("../../types/store_engine").
|
|
9
|
+
protected hoveredCell: import("../../types/store_engine").Store<DelayedHoveredCellStore>;
|
|
10
|
+
private viewStore;
|
|
10
11
|
handle(cmd: Command): void;
|
|
11
12
|
open({ col, row }: Position, type: CellPopoverType): void;
|
|
12
13
|
close(): "noStateChange" | undefined;
|
|
@@ -10,7 +10,6 @@ export declare class Popover extends Component<SpreadsheetChildEnv> {
|
|
|
10
10
|
onMouseWheel: () => void;
|
|
11
11
|
onPopoverHidden: () => void;
|
|
12
12
|
onPopoverMoved: () => void;
|
|
13
|
-
containerRect?: {} | undefined;
|
|
14
13
|
maxWidth?: import("../..").Pixel | undefined;
|
|
15
14
|
maxHeight?: import("../..").Pixel | undefined;
|
|
16
15
|
zIndex?: number | undefined;
|
|
@@ -133,7 +133,7 @@ export declare const types: {
|
|
|
133
133
|
DataValidationCriterionType: () => Type<"containsText" | "notContainsText" | "isEqualText" | "isEmail" | "isLink" | "dateIs" | "dateIsBefore" | "dateIsOnOrBefore" | "dateIsAfter" | "dateIsOnOrAfter" | "dateIsBetween" | "dateIsNotBetween" | "dateIsValid" | "isEqual" | "isNotEqual" | "isGreaterThan" | "isGreaterOrEqualTo" | "isLessThan" | "isLessOrEqualTo" | "isBetween" | "isNotBetween" | "isBoolean" | "isValueInList" | "isValueInRange" | "customFormula">;
|
|
134
134
|
Dimension: typeof validateDimension;
|
|
135
135
|
ContextMenuType: typeof validateContextMenuType;
|
|
136
|
-
and: <T extends any[]>(types: T) =>
|
|
136
|
+
and: <T extends any[]>(types: T) => import("@odoo/owl").ShapeType<import("@odoo/owl").MergedShape<T>, import("@odoo/owl").UnionToIntersection<import("@odoo/owl").StripBrands<T[number]>>>;
|
|
137
137
|
any: () => Type<any>;
|
|
138
138
|
array: {
|
|
139
139
|
(): Type<any[]>;
|
|
@@ -147,10 +147,10 @@ export declare const types: {
|
|
|
147
147
|
literal: <const T extends import("@odoo/owl").LiteralTypes>(literal: T) => Type<T>;
|
|
148
148
|
number: <T extends number = number>() => Type<T>;
|
|
149
149
|
object: {
|
|
150
|
-
():
|
|
151
|
-
<const Keys extends string[]>(keys: Keys):
|
|
152
|
-
<Shape extends {}>():
|
|
153
|
-
<Shape extends {}>(shape: Shape):
|
|
150
|
+
(): import("@odoo/owl").ShapeType<Record<string, any>, Record<string, any>>;
|
|
151
|
+
<const Keys extends string[]>(keys: Keys): import("@odoo/owl").ShapeType<Keys, import("@odoo/owl").ResolveOptionalEntries<import("@odoo/owl").KeyedObject<Keys>>>;
|
|
152
|
+
<Shape extends {}>(): import("@odoo/owl").ShapeType<Shape, import("@odoo/owl").ResolveOptionalEntries<Shape>>;
|
|
153
|
+
<Shape extends {}>(shape: Shape): import("@odoo/owl").ShapeType<Shape, import("@odoo/owl").ResolveOptionalEntries<Shape>>;
|
|
154
154
|
};
|
|
155
155
|
or: <T extends unknown[]>(types: T) => Type<import("@odoo/owl").StripBrands<T[number]>>;
|
|
156
156
|
promise: {
|
|
@@ -172,8 +172,8 @@ export declare const types: {
|
|
|
172
172
|
<T>(type: T): Type<import("@odoo/owl").ReactiveValue<import("@odoo/owl").StripBrands<T>>>;
|
|
173
173
|
};
|
|
174
174
|
strictObject: {
|
|
175
|
-
<const Keys extends string[]>(keys: Keys):
|
|
176
|
-
<Shape extends {}>(shape: Shape):
|
|
175
|
+
<const Keys extends string[]>(keys: Keys): import("@odoo/owl").ShapeType<Keys, import("@odoo/owl").ResolveOptionalEntries<import("@odoo/owl").KeyedObject<Keys>>>;
|
|
176
|
+
<Shape extends {}>(shape: Shape): import("@odoo/owl").ShapeType<Shape, import("@odoo/owl").ResolveOptionalEntries<Shape>>;
|
|
177
177
|
};
|
|
178
178
|
string: <T extends string = string>() => Type<T>;
|
|
179
179
|
tuple: <const T extends unknown[]>(types: T) => Type<import("@odoo/owl").StripBrandsAll<T>>;
|
|
@@ -5,7 +5,10 @@ export declare class HorizontalScrollBar extends Component<SpreadsheetChildEnv>
|
|
|
5
5
|
static components: {
|
|
6
6
|
ScrollBar: typeof ScrollBar;
|
|
7
7
|
};
|
|
8
|
+
private viewStore;
|
|
9
|
+
private zoomStore;
|
|
8
10
|
static template: string;
|
|
11
|
+
setup(): void;
|
|
9
12
|
protected props: import("@odoo/owl").PropsWithDefaults<{
|
|
10
13
|
leftOffset: number;
|
|
11
14
|
}, "leftOffset">;
|
|
@@ -5,10 +5,14 @@ export declare class VerticalScrollBar extends Component<SpreadsheetChildEnv> {
|
|
|
5
5
|
static components: {
|
|
6
6
|
ScrollBar: typeof ScrollBar;
|
|
7
7
|
};
|
|
8
|
+
private viewStore;
|
|
9
|
+
private zoomStore;
|
|
8
10
|
static template: string;
|
|
11
|
+
setup(): void;
|
|
9
12
|
protected props: import("@odoo/owl").PropsWithDefaults<{
|
|
10
13
|
topOffset: number;
|
|
11
|
-
|
|
14
|
+
hasFooter: boolean;
|
|
15
|
+
}, "hasFooter" | "topOffset">;
|
|
12
16
|
get offset(): import("../..").Pixel;
|
|
13
17
|
get height(): import("../..").Pixel;
|
|
14
18
|
get isDisplayed(): boolean;
|
|
@@ -28,7 +28,7 @@ export declare class SelectionInputStore extends SpreadsheetStore {
|
|
|
28
28
|
mode: SelectionRangeEditMode;
|
|
29
29
|
private inputSheetId;
|
|
30
30
|
private focusStore;
|
|
31
|
-
protected highlightStore: import("../../types/store_engine").
|
|
31
|
+
protected highlightStore: import("../../types/store_engine").Store<HighlightStore>;
|
|
32
32
|
constructor(get: Get, initialRanges?: string[], inputHasSingleRange?: boolean, colors?: Color[], disabledRanges?: boolean[]);
|
|
33
33
|
handleEvent(event: SelectionEvent): void;
|
|
34
34
|
handle(cmd: Command): void;
|
|
@@ -3,11 +3,19 @@ import { Component } from "../../../owl3_compatibility_layer";
|
|
|
3
3
|
import { TitleDesign } from "../../../types/chart/chart";
|
|
4
4
|
import { CarouselItem } from "../../../types/figure";
|
|
5
5
|
import { UID } from "../../../types/misc";
|
|
6
|
+
import { PropsOf } from "../../../types/props_of";
|
|
6
7
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
8
|
+
import { Popover } from "../../popover/popover";
|
|
9
|
+
import { SelectionInput } from "../../selection_input/selection_input";
|
|
7
10
|
import { TextInput } from "../../text_input/text_input";
|
|
8
11
|
import { TextStyler } from "../chart/building_blocks/text_styler/text_styler";
|
|
12
|
+
import { ChartTypePickerPopover } from "../chart/chart_type_picker_popover/chart_type_picker_popover";
|
|
9
13
|
import { CogWheelMenu } from "../components/cog_wheel_menu/cog_wheel_menu";
|
|
10
14
|
import { Section } from "../components/section/section";
|
|
15
|
+
interface CarouselPanelState {
|
|
16
|
+
popoverProps: PropsOf<Popover> | undefined;
|
|
17
|
+
currentRange?: string;
|
|
18
|
+
}
|
|
11
19
|
export declare class CarouselPanel extends Component<SpreadsheetChildEnv> {
|
|
12
20
|
static template: string;
|
|
13
21
|
static components: {
|
|
@@ -15,6 +23,8 @@ export declare class CarouselPanel extends Component<SpreadsheetChildEnv> {
|
|
|
15
23
|
TextInput: typeof TextInput;
|
|
16
24
|
TextStyler: typeof TextStyler;
|
|
17
25
|
CogWheelMenu: typeof CogWheelMenu;
|
|
26
|
+
ChartTypePickerPopover: typeof ChartTypePickerPopover;
|
|
27
|
+
SelectionInput: typeof SelectionInput;
|
|
18
28
|
};
|
|
19
29
|
protected props: import("@odoo/owl").Props<{
|
|
20
30
|
onCloseSidePanel: () => void;
|
|
@@ -26,13 +36,18 @@ export declare class CarouselPanel extends Component<SpreadsheetChildEnv> {
|
|
|
26
36
|
};
|
|
27
37
|
private dragAndDrop;
|
|
28
38
|
private previewListRef;
|
|
39
|
+
addChartButton: import("@odoo/owl").Signal<HTMLButtonElement | null>;
|
|
40
|
+
state: CarouselPanelState;
|
|
29
41
|
setup(): void;
|
|
30
42
|
get carouselItems(): CarouselItem[];
|
|
31
43
|
get title(): TitleDesign | undefined;
|
|
32
44
|
get carousel(): import("../../..").Carousel;
|
|
33
45
|
getPreviewDivStyle(item: CarouselItem): string;
|
|
34
46
|
getItemId(item: CarouselItem): string;
|
|
35
|
-
addNewChartToCarousel(): void;
|
|
47
|
+
addNewChartToCarousel(ev: MouseEvent): void;
|
|
48
|
+
get supportedChartTypes(): Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
|
|
49
|
+
closePopover(): void;
|
|
50
|
+
onSelectChartType(type: string): void;
|
|
36
51
|
get hasDataView(): boolean;
|
|
37
52
|
isCarouselItemActive(item: CarouselItem): boolean;
|
|
38
53
|
addDataViewToCarousel(): void;
|
|
@@ -52,5 +67,8 @@ export declare class CarouselPanel extends Component<SpreadsheetChildEnv> {
|
|
|
52
67
|
get carouselAddChartInfoMessage(): string;
|
|
53
68
|
getCogWheelMenuItems(item: CarouselItem): ActionSpec[];
|
|
54
69
|
get carouselSheetId(): UID;
|
|
55
|
-
|
|
70
|
+
getItemRangeString(item: CarouselItem): string;
|
|
71
|
+
onSelectionInputChanged(ranges: string[]): void;
|
|
72
|
+
onSelectionInputConfirmed(): void;
|
|
56
73
|
}
|
|
74
|
+
export {};
|
|
@@ -17,6 +17,7 @@ export declare class ChartTitle extends Component<SpreadsheetChildEnv> {
|
|
|
17
17
|
updateTitle: (title: string) => void;
|
|
18
18
|
style: TitleDesign;
|
|
19
19
|
updateStyle: (style: TitleDesign) => void;
|
|
20
|
+
class?: string | undefined;
|
|
20
21
|
name?: string | undefined;
|
|
21
22
|
defaultStyle?: {
|
|
22
23
|
readonly text?: string | undefined;
|
package/dist/types/components/side_panel/chart/building_blocks/color_scale/color_scale_picker.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare class ColorScalePicker extends Component<SpreadsheetChildEnv> {
|
|
|
30
30
|
className: string;
|
|
31
31
|
}[];
|
|
32
32
|
state: ColorScalePickerState;
|
|
33
|
-
popoverRef: import("@odoo/owl").Signal<
|
|
33
|
+
popoverRef: import("@odoo/owl").Signal<HTMLTableElement | null>;
|
|
34
34
|
setup(): void;
|
|
35
35
|
get currentColorScale(): ChartColorScale;
|
|
36
36
|
get currentColorScaleStyle(): string | undefined;
|
package/dist/types/components/side_panel/chart/calendar_chart/calendar_chart_config_panel.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CalendarChartDefinition, CalendarChartGranularity } from "../../../../types/chart/calendar_chart";
|
|
2
|
-
import { ValueAndLabel } from "../../../../types/misc";
|
|
3
2
|
import { Select } from "../../../select/select";
|
|
4
3
|
import { GenericChartConfigPanel } from "../building_blocks/generic_side_panel/config_panel";
|
|
5
4
|
import { ChartSidePanelProps } from "../common";
|
|
@@ -16,7 +15,6 @@ export declare class CalendarChartConfigPanel extends GenericChartConfigPanel<Ch
|
|
|
16
15
|
value: "year" | "second_number" | "minute_number" | "hour_number" | "day_of_week" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number";
|
|
17
16
|
label: string;
|
|
18
17
|
}[];
|
|
19
|
-
getGroupByOptions(): ValueAndLabel[];
|
|
20
18
|
getGroupByType(currentAxis: "horizontal" | "vertical"): CalendarChartGranularity;
|
|
21
19
|
updateGroupBy(currentAxis: "horizontal" | "vertical", value: CalendarChartGranularity): void;
|
|
22
20
|
}
|
|
@@ -6,41 +6,28 @@ import { PropsOf } from "../../../../types/props_of";
|
|
|
6
6
|
import { SpreadsheetChildEnv } from "../../../../types/spreadsheet_env";
|
|
7
7
|
import { Popover } from "../../../popover/popover";
|
|
8
8
|
import { Section } from "../../components/section/section";
|
|
9
|
+
import { ChartTypePickerPopover } from "../chart_type_picker_popover/chart_type_picker_popover";
|
|
9
10
|
import { MainChartPanelStore } from "../main_chart_panel/main_chart_panel_store";
|
|
10
11
|
interface ChartTypePickerState {
|
|
11
12
|
popoverProps: PropsOf<Popover> | undefined;
|
|
12
|
-
popoverStyle: string;
|
|
13
13
|
}
|
|
14
14
|
export declare class ChartTypePicker extends Component<SpreadsheetChildEnv> {
|
|
15
15
|
static template: string;
|
|
16
16
|
static components: {
|
|
17
17
|
Section: typeof Section;
|
|
18
|
-
|
|
18
|
+
ChartTypePickerPopover: typeof ChartTypePickerPopover;
|
|
19
19
|
};
|
|
20
20
|
protected props: import("@odoo/owl").Props<{
|
|
21
21
|
chartId: UID;
|
|
22
|
-
chartPanelStore: import("../../../../types/store_engine").
|
|
22
|
+
chartPanelStore: import("../../../../types/store_engine").Store<MainChartPanelStore>;
|
|
23
23
|
}>;
|
|
24
|
-
categories: {
|
|
25
|
-
line: string;
|
|
26
|
-
column: string;
|
|
27
|
-
bar: string;
|
|
28
|
-
area: string;
|
|
29
|
-
pie: string;
|
|
30
|
-
hierarchical: string;
|
|
31
|
-
misc: string;
|
|
32
|
-
};
|
|
33
|
-
chartTypeByCategories: Record<string, ChartSubtypeProperties[]>;
|
|
34
|
-
popoverRef: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
35
24
|
selectRef: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
36
25
|
state: ChartTypePickerState;
|
|
37
|
-
|
|
38
|
-
private getSupportedChartTypes;
|
|
39
|
-
onExternalClick(ev: MouseEvent): void;
|
|
26
|
+
getSupportedChartTypes(): Set<ChartType>;
|
|
40
27
|
onTypeChange(type: ChartType): void;
|
|
41
28
|
private getChartDefinition;
|
|
42
29
|
getSelectedChartSubtypeProperties(): ChartSubtypeProperties;
|
|
43
30
|
onPointerDown(ev: PointerEvent): void;
|
|
44
|
-
|
|
31
|
+
closePopover(): void;
|
|
45
32
|
}
|
|
46
33
|
export {};
|