@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,123 +0,0 @@
|
|
|
1
|
-
import { ViewportCollection } from "../../helpers/viewport_collection";
|
|
2
|
-
import { Command, CommandResult, LocalCommand } from "../../types/commands";
|
|
3
|
-
import { AnchorOffset, Figure, FigureUI } from "../../types/figure";
|
|
4
|
-
import { CellPosition, Dimension, HeaderDimensions, HeaderIndex, Pixel, PixelPosition, UID, Zone } from "../../types/misc";
|
|
5
|
-
import { DOMCoordinates, DOMDimension, EdgeScrollInfo, Rect, SheetDOMScrollInfo, Viewport } from "../../types/rendering";
|
|
6
|
-
import { UIPlugin } from "../ui_plugin";
|
|
7
|
-
/**
|
|
8
|
-
* Viewport plugin.
|
|
9
|
-
*
|
|
10
|
-
* This plugin manages all things related to all viewport states.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export declare class SheetViewPlugin extends UIPlugin {
|
|
14
|
-
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleRectWithZoom", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPixelPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport", "getRect", "getFigureUI", "getPositionAnchorOffset", "getGridOffset", "getViewportZoomLevel", "getScrollBarWidth", "getMaximumSheetOffset", "getViewportCollection"];
|
|
15
|
-
private viewports;
|
|
16
|
-
private sheetsWithDirtyViewports;
|
|
17
|
-
private shouldRepositionViewports;
|
|
18
|
-
allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
|
|
19
|
-
private handleEvent;
|
|
20
|
-
handle(cmd: Command): void;
|
|
21
|
-
finalize(): void;
|
|
22
|
-
private setViewports;
|
|
23
|
-
private syncPaneDivision;
|
|
24
|
-
/**
|
|
25
|
-
* Return the index of a column given an offset x, based on the viewport left
|
|
26
|
-
* visible cell.
|
|
27
|
-
* It returns -1 if no column is found.
|
|
28
|
-
*/
|
|
29
|
-
getColIndex(x: Pixel): HeaderIndex;
|
|
30
|
-
/**
|
|
31
|
-
* Return the index of a row given an offset y, based on the viewport top
|
|
32
|
-
* visible cell.
|
|
33
|
-
* It returns -1 if no row is found.
|
|
34
|
-
*/
|
|
35
|
-
getRowIndex(y: Pixel): HeaderIndex;
|
|
36
|
-
getSheetViewDimensionWithHeaders(): DOMDimension;
|
|
37
|
-
getSheetViewDimension(): DOMDimension;
|
|
38
|
-
getGridOffset(): DOMCoordinates;
|
|
39
|
-
/** type as pane, not viewport but basically pane extends viewport */
|
|
40
|
-
getActiveMainViewport(): Viewport;
|
|
41
|
-
/**
|
|
42
|
-
* Return the DOM scroll info of the active sheet, ie. the offset between the viewport left/top side and
|
|
43
|
-
* the grid left/top side, corresponding to the scroll of the scrollbars and not snapped to the grid.
|
|
44
|
-
*/
|
|
45
|
-
getActiveSheetScrollInfo(): SheetDOMScrollInfo;
|
|
46
|
-
getSheetViewVisibleCols(): HeaderIndex[];
|
|
47
|
-
getSheetViewVisibleRows(): HeaderIndex[];
|
|
48
|
-
/**
|
|
49
|
-
* Get the positions of all the cells that are visible in the viewport, taking merges into account.
|
|
50
|
-
*/
|
|
51
|
-
getVisibleCellPositions(): CellPosition[];
|
|
52
|
-
/**
|
|
53
|
-
* Return the main viewport maximum size relative to the client size.
|
|
54
|
-
*/
|
|
55
|
-
getMainViewportRect(): Rect;
|
|
56
|
-
getMaximumSheetOffset(): {
|
|
57
|
-
maxOffsetX: Pixel;
|
|
58
|
-
maxOffsetY: Pixel;
|
|
59
|
-
};
|
|
60
|
-
getColRowOffsetInViewport(dimension: Dimension, referenceHeaderIndex: HeaderIndex, targetHeaderIndex: HeaderIndex): Pixel;
|
|
61
|
-
/**
|
|
62
|
-
* Check if a given position is visible in the viewport.
|
|
63
|
-
*/
|
|
64
|
-
isVisibleInViewport(cellPosition: CellPosition): boolean;
|
|
65
|
-
getScrollBarWidth(): Pixel;
|
|
66
|
-
getEdgeScrollCol(x: number, previousX: number, startingX: number): EdgeScrollInfo;
|
|
67
|
-
getEdgeScrollRow(y: number, previousY: number, startingY: number): EdgeScrollInfo;
|
|
68
|
-
/**
|
|
69
|
-
* Computes the coordinates and size to draw the zone on the canvas
|
|
70
|
-
*/
|
|
71
|
-
getVisibleRect(zone: Zone): Rect;
|
|
72
|
-
/**
|
|
73
|
-
* Computes the coordinates and size to draw the zone on the canvas after it has been zoomed
|
|
74
|
-
*/
|
|
75
|
-
getVisibleRectWithZoom(zone: Zone): Rect;
|
|
76
|
-
/**
|
|
77
|
-
* Computes the coordinates and size to draw the zone without taking the grid offset into account
|
|
78
|
-
*/
|
|
79
|
-
getVisibleRectWithoutHeaders(zone: Zone): Rect;
|
|
80
|
-
/**
|
|
81
|
-
* Computes the actual size and position (:Rect) of the zone on the canvas
|
|
82
|
-
* regardless of the viewport dimensions.
|
|
83
|
-
*/
|
|
84
|
-
getRect(zone: Zone): Rect;
|
|
85
|
-
/**
|
|
86
|
-
* Computes the actual size and position (:Rect) of the zone on the canvas
|
|
87
|
-
* regardless of the viewport dimensions.
|
|
88
|
-
*/
|
|
89
|
-
getRectWithoutHeaders(zone: Zone): Rect;
|
|
90
|
-
/**
|
|
91
|
-
* Returns the position of the MainViewport relatively to the start of the grid (without headers)
|
|
92
|
-
* It corresponds to the summed dimensions of the visible cols/rows (in x/y respectively)
|
|
93
|
-
* situated before the pane divisions.
|
|
94
|
-
*/
|
|
95
|
-
getMainViewportCoordinates(): DOMCoordinates;
|
|
96
|
-
/**
|
|
97
|
-
* Returns the size, start and end coordinates of a column relative to the left
|
|
98
|
-
* column of the current viewport
|
|
99
|
-
*/
|
|
100
|
-
getColDimensionsInViewport(sheetId: UID, col: HeaderIndex): HeaderDimensions;
|
|
101
|
-
/**
|
|
102
|
-
* Returns the size, start and end coordinates of a row relative to the top row
|
|
103
|
-
* of the current viewport
|
|
104
|
-
*/
|
|
105
|
-
getRowDimensionsInViewport(sheetId: UID, row: HeaderIndex): HeaderDimensions;
|
|
106
|
-
getViewportZoomLevel(): number;
|
|
107
|
-
/**
|
|
108
|
-
* Shift the viewport vertically and move the selection anchor
|
|
109
|
-
* such that it remains at the same place relative to the
|
|
110
|
-
* viewport top.
|
|
111
|
-
*/
|
|
112
|
-
private shiftVertically;
|
|
113
|
-
getVisibleFigures(): FigureUI[];
|
|
114
|
-
getFigureUI(sheetId: UID, figure: Figure): FigureUI;
|
|
115
|
-
getPositionAnchorOffset(position: PixelPosition): AnchorOffset;
|
|
116
|
-
isPixelPositionVisible(position: PixelPosition): boolean;
|
|
117
|
-
getFrozenSheetViewRatio(sheetId: UID): {
|
|
118
|
-
xRatio: number;
|
|
119
|
-
yRatio: number;
|
|
120
|
-
};
|
|
121
|
-
getViewportCollection(): ViewportCollection;
|
|
122
|
-
private getPaneDivisions;
|
|
123
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { BordersPlugin } from "../plugins/core/borders";
|
|
2
|
-
import { CarouselPlugin } from "../plugins/core/carousel";
|
|
3
|
-
import { CellPlugin } from "../plugins/core/cell";
|
|
4
|
-
import { ChartPlugin } from "../plugins/core/chart";
|
|
5
|
-
import { ConditionalFormatPlugin } from "../plugins/core/conditional_format";
|
|
6
|
-
import { DataValidationPlugin } from "../plugins/core/data_validation";
|
|
7
|
-
import { DefaultPlugin } from "../plugins/core/default";
|
|
8
|
-
import { FigurePlugin } from "../plugins/core/figures";
|
|
9
|
-
import { HeaderGroupingPlugin } from "../plugins/core/header_grouping";
|
|
10
|
-
import { HeaderSizePlugin } from "../plugins/core/header_size";
|
|
11
|
-
import { HeaderVisibilityPlugin } from "../plugins/core/header_visibility";
|
|
12
|
-
import { ImagePlugin } from "../plugins/core/image";
|
|
13
|
-
import { MergePlugin } from "../plugins/core/merge";
|
|
14
|
-
import { NamedRangesPlugin } from "../plugins/core/named_range";
|
|
15
|
-
import { PivotCorePlugin } from "../plugins/core/pivot";
|
|
16
|
-
import { RangeAdapterPlugin } from "../plugins/core/range";
|
|
17
|
-
import { SettingsPlugin } from "../plugins/core/settings";
|
|
18
|
-
import { SheetPlugin } from "../plugins/core/sheet";
|
|
19
|
-
import { TablePlugin } from "../plugins/core/tables";
|
|
20
|
-
/**
|
|
21
|
-
* Union of all getter names of a plugin.
|
|
22
|
-
*
|
|
23
|
-
* e.g. With the following plugin
|
|
24
|
-
* ```ts
|
|
25
|
-
* class MyPlugin {
|
|
26
|
-
* static getters = [
|
|
27
|
-
* "getCell",
|
|
28
|
-
* "getCellValue",
|
|
29
|
-
* ] as const;
|
|
30
|
-
* getCell() { ... }
|
|
31
|
-
* getCellValue() { ... }
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
* `type Names = GetterNames<typeof MyPlugin>` is equivalent to
|
|
35
|
-
* `type Names = "getCell" | "getCellValue"`
|
|
36
|
-
*
|
|
37
|
-
* Some technical comments:
|
|
38
|
-
*
|
|
39
|
-
* - Since the getter names are in a static array, the type of the plugin must
|
|
40
|
-
* be given, not the class itself.
|
|
41
|
-
*
|
|
42
|
-
* - we need to index the getters array with every index:
|
|
43
|
-
* `Plugin["getters"][0] | Plugin["getters"][1] | Plugin["getters"][2] | ...`
|
|
44
|
-
* which is equivalent to `Plugin["getters"][0 | 1 | 2 | ...]`.
|
|
45
|
-
* This can be generalized because the union of all indices `0 | 1 | 2 | 3 | ...`
|
|
46
|
-
* is actually the type `number`.
|
|
47
|
-
*/
|
|
48
|
-
type GetterNames<Plugin extends {
|
|
49
|
-
getters: readonly string[];
|
|
50
|
-
}> = Plugin["getters"][number];
|
|
51
|
-
/**
|
|
52
|
-
* Extract getter methods from a plugin, based on its `getters` static array.
|
|
53
|
-
* @example
|
|
54
|
-
* class MyPlugin {
|
|
55
|
-
* static getters = [
|
|
56
|
-
* "getCell",
|
|
57
|
-
* "getCellValue",
|
|
58
|
-
* ] as const;
|
|
59
|
-
* getCell() { ... }
|
|
60
|
-
* getCellValue() { ... }
|
|
61
|
-
* }
|
|
62
|
-
* type MyPluginGetters = PluginGetters<typeof MyPlugin>;
|
|
63
|
-
* // MyPluginGetters is equivalent to:
|
|
64
|
-
* // {
|
|
65
|
-
* // getCell: () => ...,
|
|
66
|
-
* // getCellValue: () => ...,
|
|
67
|
-
* // }
|
|
68
|
-
*/
|
|
69
|
-
export type PluginGetters<Plugin extends {
|
|
70
|
-
new (...args: unknown[]): any;
|
|
71
|
-
getters: readonly string[];
|
|
72
|
-
}> = Pick<InstanceType<Plugin>, GetterNames<Plugin>>;
|
|
73
|
-
type RangeAdapterGetters = Pick<RangeAdapterPlugin, GetterNames<typeof RangeAdapterPlugin>>;
|
|
74
|
-
export type CoreGetters = PluginGetters<typeof SheetPlugin> & PluginGetters<typeof HeaderSizePlugin> & PluginGetters<typeof HeaderVisibilityPlugin> & PluginGetters<typeof CellPlugin> & PluginGetters<typeof DefaultPlugin> & PluginGetters<typeof MergePlugin> & PluginGetters<typeof BordersPlugin> & PluginGetters<typeof ChartPlugin> & PluginGetters<typeof ImagePlugin> & PluginGetters<typeof CarouselPlugin> & PluginGetters<typeof FigurePlugin> & RangeAdapterGetters & PluginGetters<typeof ConditionalFormatPlugin> & PluginGetters<typeof TablePlugin> & PluginGetters<typeof SettingsPlugin> & PluginGetters<typeof HeaderGroupingPlugin> & PluginGetters<typeof DataValidationPlugin> & PluginGetters<typeof NamedRangesPlugin> & PluginGetters<typeof PivotCorePlugin>;
|
|
75
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/spreading_relation.d.ts
RENAMED
|
File without changes
|
|
File without changes
|