@odoo/o-spreadsheet 18.0.54 → 18.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/o-spreadsheet.cjs.js +62603 -70901
- package/dist/o-spreadsheet.esm.js +62418 -70900
- package/dist/o-spreadsheet.iife.js +65385 -73866
- package/dist/o-spreadsheet.iife.min.js +764 -727
- package/dist/o_spreadsheet.xml +9 -6
- package/dist/types/actions/action.d.ts +84 -0
- package/dist/types/actions/data_actions.d.ts +12 -0
- package/dist/types/actions/edit_actions.d.ts +23 -0
- package/dist/types/actions/format_actions.d.ts +63 -0
- package/dist/types/actions/insert_actions.d.ts +32 -0
- package/dist/types/actions/menu_items_actions.d.ts +55 -0
- package/dist/types/actions/sheet_actions.d.ts +13 -0
- package/dist/types/actions/view_actions.d.ts +26 -0
- package/dist/types/clipboard_handlers/abstract_cell_clipboard_handler.d.ts +7 -0
- package/dist/types/clipboard_handlers/abstract_clipboard_handler.d.ts +12 -0
- package/dist/types/clipboard_handlers/abstract_figure_clipboard_handler.d.ts +5 -0
- package/dist/types/clipboard_handlers/borders_clipboard.d.ts +17 -0
- package/dist/types/clipboard_handlers/cell_clipboard.d.ts +29 -0
- package/dist/types/clipboard_handlers/chart_clipboard.d.ts +15 -0
- package/dist/types/clipboard_handlers/conditional_format_clipboard.d.ts +25 -0
- package/dist/types/clipboard_handlers/data_validation_clipboard.d.ts +25 -0
- package/dist/types/clipboard_handlers/image_clipboard.d.ts +16 -0
- package/dist/types/clipboard_handlers/index.d.ts +7 -0
- package/dist/types/clipboard_handlers/merge_clipboard.d.ts +16 -0
- package/dist/types/clipboard_handlers/references_clipboard.d.ts +11 -0
- package/dist/types/clipboard_handlers/sheet_clipboard.d.ts +11 -0
- package/dist/types/clipboard_handlers/tables_clipboard.d.ts +33 -0
- package/dist/types/collaborative/local_transport_service.d.ts +8 -0
- package/dist/types/collaborative/ot/ot.d.ts +22 -0
- package/dist/types/collaborative/ot/ot_helpers.d.ts +3 -0
- package/dist/types/collaborative/ot/ot_specific.d.ts +1 -0
- package/dist/types/collaborative/revisions.d.ts +22 -0
- package/dist/types/collaborative/session.d.ts +101 -0
- package/dist/types/components/action_button/action_button.d.ts +42 -0
- package/dist/types/components/animation/ripple.d.ts +118 -0
- package/dist/types/components/autofill/autofill.d.ts +29 -0
- package/dist/types/components/border_editor/border_editor.d.ts +67 -0
- package/dist/types/components/border_editor/border_editor_widget.d.ts +47 -0
- package/dist/types/components/bottom_bar/bottom_bar.d.ts +59 -0
- package/dist/types/components/bottom_bar/bottom_bar_sheet/bottom_bar_sheet.d.ts +62 -0
- package/dist/types/components/bottom_bar/bottom_bar_statistic/aggregate_statistics_store.d.ts +15 -0
- package/dist/types/components/bottom_bar/bottom_bar_statistic/bottom_bar_statistic.d.ts +25 -0
- package/dist/types/components/collaborative_client_tag/collaborative_client_tag.d.ts +21 -0
- package/dist/types/components/color_picker/color_picker.d.ts +57 -0
- package/dist/types/components/color_picker/color_picker_widget.d.ts +52 -0
- package/dist/types/components/composer/autocomplete_dropdown/autocomplete_dropdown.d.ts +23 -0
- package/dist/types/components/composer/autocomplete_dropdown/autocomplete_dropdown_store.d.ts +12 -0
- package/dist/types/components/composer/composer/abstract_composer_store.d.ts +113 -0
- package/dist/types/components/composer/composer/cell_composer_store.d.ts +18 -0
- package/dist/types/components/composer/composer/composer.d.ts +172 -0
- package/dist/types/components/composer/composer_focus_store.d.ts +28 -0
- package/dist/types/components/composer/content_editable_helper.d.ts +60 -0
- package/dist/types/components/composer/formula_assistant/formula_assistant.d.ts +18 -0
- package/dist/types/components/composer/grid_composer/grid_composer.d.ts +47 -0
- package/dist/types/components/composer/standalone_composer/standalone_composer.d.ts +60 -0
- package/dist/types/components/composer/standalone_composer/standalone_composer_store.d.ts +22 -0
- package/dist/types/components/composer/top_bar_composer/top_bar_composer.d.ts +19 -0
- package/dist/types/components/dashboard/clickable_cell_store.d.ts +15 -0
- package/dist/types/components/dashboard/dashboard.d.ts +49 -0
- package/dist/types/components/data_validation_overlay/data_validation_overlay.d.ts +16 -0
- package/dist/types/components/data_validation_overlay/dv_checkbox/dv_checkbox.d.ts +19 -0
- package/dist/types/components/data_validation_overlay/dv_list_icon/dv_list_icon.d.ts +13 -0
- package/dist/types/components/error_tooltip/error_tooltip.d.ts +25 -0
- package/dist/types/components/figures/chart/chartJs/chartjs.d.ts +23 -0
- package/dist/types/components/figures/chart/chartJs/chartjs_show_values_plugin.d.ts +16 -0
- package/dist/types/components/figures/chart/chartJs/chartjs_waterfall_plugin.d.ts +12 -0
- package/dist/types/components/figures/chart/gauge/gauge_chart_component.d.ts +13 -0
- package/dist/types/components/figures/chart/scorecard/chart_scorecard.d.ts +18 -0
- package/dist/types/components/figures/figure/figure.d.ts +54 -0
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +16 -0
- package/dist/types/components/figures/figure_container/figure_container.d.ts +117 -0
- package/dist/types/components/figures/figure_image/figure_image.d.ts +15 -0
- package/dist/types/components/filters/filter_icon/filter_icon.d.ts +19 -0
- package/dist/types/components/filters/filter_icons_overlay/filter_icons_overlay.d.ts +13 -0
- package/dist/types/components/filters/filter_menu/filter_menu.d.ts +46 -0
- package/dist/types/components/filters/filter_menu_item/filter_menu_value_item.d.ts +28 -0
- package/dist/types/components/focus_store.d.ts +6 -0
- package/dist/types/components/font_size_editor/font_size_editor.d.ts +34 -0
- package/dist/types/components/grid/grid.d.ts +105 -0
- package/dist/types/components/grid/hovered_cell_store.d.ts +10 -0
- package/dist/types/components/grid_add_rows_footer/grid_add_rows_footer.d.ts +29 -0
- package/dist/types/components/grid_cell_icon/grid_cell_icon.d.ts +26 -0
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +68 -0
- package/dist/types/components/grid_popover/grid_popover.d.ts +28 -0
- package/dist/types/components/header_group/header_group.d.ts +46 -0
- package/dist/types/components/header_group/header_group_container.d.ts +33 -0
- package/dist/types/components/headers_overlay/headers_overlay.d.ts +131 -0
- package/dist/types/components/helpers/autofocus_hook.d.ts +3 -0
- package/dist/types/components/helpers/css.d.ts +40 -0
- package/dist/types/components/helpers/dom_helpers.d.ts +34 -0
- package/dist/types/components/helpers/drag_and_drop.d.ts +20 -0
- package/dist/types/components/helpers/drag_and_drop_hook.d.ts +24 -0
- package/dist/types/components/helpers/draw_grid_hook.d.ts +3 -0
- package/dist/types/components/helpers/figure_container_helper.d.ts +14 -0
- package/dist/types/components/helpers/figure_drag_helper.d.ts +6 -0
- package/dist/types/components/helpers/figure_snap_helper.d.ts +25 -0
- package/dist/types/components/helpers/highlight_hook.d.ts +4 -0
- package/dist/types/components/helpers/html_content_helpers.d.ts +2 -0
- package/dist/types/components/helpers/index.d.ts +1 -0
- package/dist/types/components/helpers/listener_hook.d.ts +13 -0
- package/dist/types/components/helpers/position_hook.d.ts +25 -0
- package/dist/types/components/helpers/selection_helpers.d.ts +2 -0
- package/dist/types/components/helpers/time_hooks.d.ts +17 -0
- package/dist/types/components/helpers/touch_scroll_hook.d.ts +3 -0
- package/dist/types/components/helpers/wheel_hook.d.ts +1 -0
- package/dist/types/components/highlight/border/border.d.ts +21 -0
- package/dist/types/components/highlight/corner/corner.d.ts +25 -0
- package/dist/types/components/highlight/highlight/highlight.d.ts +26 -0
- package/dist/types/components/icon_picker/icon_picker.d.ts +68 -0
- package/dist/types/components/icons/icons.d.ts +56 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/link/index.d.ts +2 -0
- package/dist/types/components/link/link_display/link_display.d.ts +28 -0
- package/dist/types/components/link/link_editor/link_editor.d.ts +46 -0
- package/dist/types/components/menu/menu.d.ts +99 -0
- package/dist/types/components/paint_format_button/paint_format_button.d.ts +20 -0
- package/dist/types/components/paint_format_button/paint_format_store.d.ts +27 -0
- package/dist/types/components/pivot_html_renderer/pivot_html_renderer.d.ts +87 -0
- package/dist/types/components/popover/cell_popover_store.d.ts +22 -0
- package/dist/types/components/popover/index.d.ts +3 -0
- package/dist/types/components/popover/popover.d.ts +80 -0
- package/dist/types/components/popover/popover_builders.d.ts +1 -0
- package/dist/types/components/scrollbar/index.d.ts +2 -0
- package/dist/types/components/scrollbar/scrollbar.d.ts +39 -0
- package/dist/types/components/scrollbar/scrollbar_horizontal.d.ts +32 -0
- package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +32 -0
- package/dist/types/components/scrollbar.d.ts +9 -0
- package/dist/types/components/selection_input/selection_input.d.ts +81 -0
- package/dist/types/components/selection_input/selection_input_store.d.ts +96 -0
- package/dist/types/components/side_panel/chart/bar_chart/bar_chart_config_panel.d.ts +7 -0
- package/dist/types/components/side_panel/chart/building_blocks/axis_design/axis_design_editor.d.ts +46 -0
- package/dist/types/components/side_panel/chart/building_blocks/data_series/data_series.d.ts +30 -0
- package/dist/types/components/side_panel/chart/building_blocks/error_section/error_section.d.ts +21 -0
- package/dist/types/components/side_panel/chart/building_blocks/general_design/general_design_editor.d.ts +41 -0
- package/dist/types/components/side_panel/chart/building_blocks/generic_side_panel/config_panel.d.ts +87 -0
- package/dist/types/components/side_panel/chart/building_blocks/label_range/label_range.d.ts +42 -0
- package/dist/types/components/side_panel/chart/building_blocks/title/title.d.ts +76 -0
- package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +49 -0
- package/dist/types/components/side_panel/chart/chart_with_axis/design_panel.d.ts +63 -0
- package/dist/types/components/side_panel/chart/combo_chart/combo_chart_config_panel.d.ts +4 -0
- package/dist/types/components/side_panel/chart/combo_chart/combo_chart_design_panel.d.ts +19 -0
- package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_config_panel.d.ts +32 -0
- package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_design_panel.d.ts +48 -0
- package/dist/types/components/side_panel/chart/index.d.ts +15 -0
- package/dist/types/components/side_panel/chart/line_chart/line_chart_config_panel.d.ts +16 -0
- package/dist/types/components/side_panel/chart/main_chart_panel/main_chart_panel.d.ts +31 -0
- package/dist/types/components/side_panel/chart/main_chart_panel/main_chart_panel_store.d.ts +10 -0
- package/dist/types/components/side_panel/chart/pie_chart/pie_chart_design_panel.d.ts +31 -0
- package/dist/types/components/side_panel/chart/scatter_chart/scatter_chart_config_panel.d.ts +12 -0
- package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_config_panel.d.ts +40 -0
- package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_design_panel.d.ts +41 -0
- package/dist/types/components/side_panel/chart/waterfall_chart/waterfall_chart_design_panel.d.ts +53 -0
- package/dist/types/components/side_panel/components/badge_selection/badge_selection.d.ts +20 -0
- package/dist/types/components/side_panel/components/checkbox/checkbox.d.ts +47 -0
- package/dist/types/components/side_panel/components/cog_wheel_menu/cog_wheel_menu.d.ts +22 -0
- package/dist/types/components/side_panel/components/collapsible/side_panel_collapsible.d.ts +16 -0
- package/dist/types/components/side_panel/components/radio_selection/radio_selection.d.ts +32 -0
- package/dist/types/components/side_panel/components/round_color_picker/round_color_picker.d.ts +45 -0
- package/dist/types/components/side_panel/components/section/section.d.ts +16 -0
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/cf_editor.d.ts +167 -0
- package/dist/types/components/side_panel/conditional_formatting/cf_preview/cf_preview.d.ts +57 -0
- package/dist/types/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.d.ts +64 -0
- package/dist/types/components/side_panel/conditional_formatting/conditional_formatting.d.ts +30 -0
- package/dist/types/components/side_panel/custom_currency/custom_currency.d.ts +43 -0
- package/dist/types/components/side_panel/data_validation/data_validation_panel.d.ts +28 -0
- package/dist/types/components/side_panel/data_validation/data_validation_panel_helper.d.ts +14 -0
- package/dist/types/components/side_panel/data_validation/dv_criterion_form/dv_criterion_form.d.ts +15 -0
- package/dist/types/components/side_panel/data_validation/dv_criterion_form/dv_date_criterion/dv_date_criterion.d.ts +16 -0
- package/dist/types/components/side_panel/data_validation/dv_criterion_form/dv_double_input_criterion/dv_double_input_criterion.d.ts +10 -0
- package/dist/types/components/side_panel/data_validation/dv_criterion_form/dv_input/dv_input.d.ts +54 -0
- package/dist/types/components/side_panel/data_validation/dv_criterion_form/dv_single_input_criterion/dv_single_input_criterion.d.ts +9 -0
- package/dist/types/components/side_panel/data_validation/dv_criterion_form/dv_value_in_list_criterion/dv_value_in_list_criterion.d.ts +23 -0
- package/dist/types/components/side_panel/data_validation/dv_criterion_form/dv_value_in_range_criterion/dv_value_in_range_criterion.d.ts +12 -0
- package/dist/types/components/side_panel/data_validation/dv_editor/dv_editor.d.ts +48 -0
- package/dist/types/components/side_panel/data_validation/dv_preview/dv_preview.d.ts +20 -0
- package/dist/types/components/side_panel/find_and_replace/find_and_replace.d.ts +46 -0
- package/dist/types/components/side_panel/find_and_replace/find_and_replace_store.d.ts +72 -0
- package/dist/types/components/side_panel/more_formats/more_formats.d.ts +13 -0
- package/dist/types/components/side_panel/pivot/editable_name/editable_name.d.ts +21 -0
- package/dist/types/components/side_panel/pivot/pivot_defer_update/pivot_defer_update.d.ts +28 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/add_dimension_button/add_dimension_button.d.ts +46 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension.d.ts +35 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_granularity/pivot_dimension_granularity.d.ts +34 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_order/pivot_dimension_order.d.ts +15 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +73 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_measure/pivot_measure.d.ts +37 -0
- package/dist/types/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel.d.ts +68 -0
- package/dist/types/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel_store.d.ts +34 -0
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_side_panel.d.ts +21 -0
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.d.ts +35 -0
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_spreadsheet_side_panel/pivot_spreadsheet_side_panel.d.ts +49 -0
- package/dist/types/components/side_panel/pivot/pivot_title_section/pivot_title_section.d.ts +29 -0
- package/dist/types/components/side_panel/remove_duplicates/remove_duplicates.d.ts +39 -0
- package/dist/types/components/side_panel/select_menu/select_menu.d.ts +37 -0
- package/dist/types/components/side_panel/settings/settings_panel.d.ts +28 -0
- package/dist/types/components/side_panel/side_panel/side_panel.d.ts +15 -0
- package/dist/types/components/side_panel/side_panel/side_panel_store.d.ts +32 -0
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +42 -0
- package/dist/types/components/side_panel/table_panel/table_panel.d.ts +52 -0
- package/dist/types/components/side_panel/table_style_editor_panel/table_style_editor_panel.d.ts +50 -0
- package/dist/types/components/spreadsheet/spreadsheet.d.ts +63 -0
- package/dist/types/components/tables/table_dropdown_button/table_dropdown_button.d.ts +25 -0
- package/dist/types/components/tables/table_resizer/table_resizer.d.ts +20 -0
- package/dist/types/components/tables/table_style_picker/table_style_picker.d.ts +28 -0
- package/dist/types/components/tables/table_style_preview/table_canvas_helpers.d.ts +2 -0
- package/dist/types/components/tables/table_style_preview/table_style_preview.d.ts +45 -0
- package/dist/types/components/tables/table_styles_popover/table_styles_popover.d.ts +53 -0
- package/dist/types/components/text_input/text_input.d.ts +35 -0
- package/dist/types/components/top_bar/top_bar.d.ts +70 -0
- package/dist/types/components/translations_terms.d.ts +191 -0
- package/dist/types/components/validation_messages/validation_messages.d.ts +21 -0
- package/dist/types/constants.d.ts +179 -0
- package/dist/types/formulas/code_builder.d.ts +24 -0
- package/dist/types/formulas/compiler.d.ts +26 -0
- package/dist/types/formulas/composer_tokenizer.d.ts +48 -0
- package/dist/types/formulas/helpers.d.ts +7 -0
- package/dist/types/formulas/index.d.ts +14 -0
- package/dist/types/formulas/parser.d.ts +76 -0
- package/dist/types/formulas/range_tokenizer.d.ts +8 -0
- package/dist/types/formulas/tokenizer.d.ts +25 -0
- package/dist/types/functions/arguments.d.ts +10 -0
- package/dist/types/functions/helper_assert.d.ts +6 -0
- package/dist/types/functions/helper_financial.d.ts +51 -0
- package/dist/types/functions/helper_logical.d.ts +9 -0
- package/dist/types/functions/helper_lookup.d.ts +9 -0
- package/dist/types/functions/helper_math.d.ts +3 -0
- package/dist/types/functions/helper_matrices.d.ts +24 -0
- package/dist/types/functions/helper_parser.d.ts +95 -0
- package/dist/types/functions/helper_statistical.d.ts +19 -0
- package/dist/types/functions/helpers.d.ts +146 -0
- package/dist/types/functions/index.d.ts +18 -0
- package/dist/types/functions/module_array.d.ts +122 -0
- package/dist/types/functions/module_custom.d.ts +6 -0
- package/dist/types/functions/module_database.d.ts +73 -0
- package/dist/types/functions/module_date.d.ts +185 -0
- package/dist/types/functions/module_engineering.d.ts +7 -0
- package/dist/types/functions/module_filter.d.ts +16 -0
- package/dist/types/functions/module_financial.d.ts +295 -0
- package/dist/types/functions/module_info.d.ts +63 -0
- package/dist/types/functions/module_logical.d.ts +31 -0
- package/dist/types/functions/module_lookup.d.ts +108 -0
- package/dist/types/functions/module_math.d.ts +354 -0
- package/dist/types/functions/module_operators.d.ts +77 -0
- package/dist/types/functions/module_parser.d.ts +7 -0
- package/dist/types/functions/module_statistical.d.ts +244 -0
- package/dist/types/functions/module_text.d.ts +132 -0
- package/dist/types/functions/module_web.d.ts +7 -0
- package/dist/types/helpers/cells/cell_evaluation.d.ts +4 -0
- package/dist/types/helpers/cells/index.d.ts +2 -0
- package/dist/types/helpers/chart_date.d.ts +8 -0
- package/dist/types/helpers/clipboard/clipboard_helpers.d.ts +32 -0
- package/dist/types/helpers/clipboard/navigator_clipboard_wrapper.d.ts +13 -0
- package/dist/types/helpers/color.d.ts +80 -0
- package/dist/types/helpers/coordinates.d.ts +38 -0
- package/dist/types/helpers/data_normalization.d.ts +14 -0
- package/dist/types/helpers/data_validation_helpers.d.ts +6 -0
- package/dist/types/helpers/dates.d.ts +92 -0
- package/dist/types/helpers/edge_scrolling.d.ts +9 -0
- package/dist/types/helpers/event_bus.d.ts +45 -0
- package/dist/types/helpers/figures/charts/abstract_chart.d.ts +56 -0
- package/dist/types/helpers/figures/charts/bar_chart.d.ts +32 -0
- package/dist/types/helpers/figures/charts/chart_common.d.ts +122 -0
- package/dist/types/helpers/figures/charts/chart_common_line_scatter.d.ts +16 -0
- package/dist/types/helpers/figures/charts/chart_factory.d.ts +35 -0
- package/dist/types/helpers/figures/charts/chart_ui_common.d.ts +51 -0
- package/dist/types/helpers/figures/charts/combo_chart.d.ts +29 -0
- package/dist/types/helpers/figures/charts/gauge_chart.d.ts +23 -0
- package/dist/types/helpers/figures/charts/gauge_chart_rendering.d.ts +48 -0
- package/dist/types/helpers/figures/charts/index.d.ts +10 -0
- package/dist/types/helpers/figures/charts/line_chart.d.ts +33 -0
- package/dist/types/helpers/figures/charts/pie_chart.d.ts +29 -0
- package/dist/types/helpers/figures/charts/pyramid_chart.d.ts +32 -0
- package/dist/types/helpers/figures/charts/scatter_chart.d.ts +31 -0
- package/dist/types/helpers/figures/charts/scorecard_chart.d.ts +32 -0
- package/dist/types/helpers/figures/charts/scorecard_chart_config_builder.d.ts +44 -0
- package/dist/types/helpers/figures/charts/waterfall_chart.d.ts +37 -0
- package/dist/types/helpers/figures/figure/figure.d.ts +6 -0
- package/dist/types/helpers/figures/images/image_provider.d.ts +10 -0
- package/dist/types/helpers/format/format.d.ts +45 -0
- package/dist/types/helpers/format/format_parser.d.ts +38 -0
- package/dist/types/helpers/format/format_tokenizer.d.ts +39 -0
- package/dist/types/helpers/index.d.ts +17 -0
- package/dist/types/helpers/internal_viewport.d.ts +82 -0
- package/dist/types/helpers/inverse_commands.d.ts +2 -0
- package/dist/types/helpers/links.d.ts +23 -0
- package/dist/types/helpers/locale.d.ts +58 -0
- package/dist/types/helpers/misc.d.ts +211 -0
- package/dist/types/helpers/numbers.d.ts +25 -0
- package/dist/types/helpers/pivot/pivot_composer_helpers.d.ts +61 -0
- package/dist/types/helpers/pivot/pivot_domain_helpers.d.ts +68 -0
- package/dist/types/helpers/pivot/pivot_helpers.d.ts +55 -0
- package/dist/types/helpers/pivot/pivot_highlight.d.ts +2 -0
- package/dist/types/helpers/pivot/pivot_menu_items.d.ts +3 -0
- package/dist/types/helpers/pivot/pivot_positional_formula_registry.d.ts +7 -0
- package/dist/types/helpers/pivot/pivot_presence_tracker.d.ts +9 -0
- package/dist/types/helpers/pivot/pivot_presentation.d.ts +91 -0
- package/dist/types/helpers/pivot/pivot_registry.d.ts +28 -0
- package/dist/types/helpers/pivot/pivot_runtime_definition.d.ts +14 -0
- package/dist/types/helpers/pivot/pivot_side_panel_registry.d.ts +6 -0
- package/dist/types/helpers/pivot/pivot_time_adapter.d.ts +5 -0
- package/dist/types/helpers/pivot/spreadsheet_pivot/data_entry_spreadsheet_pivot.d.ts +20 -0
- package/dist/types/helpers/pivot/spreadsheet_pivot/date_spreadsheet_pivot.d.ts +7 -0
- package/dist/types/helpers/pivot/spreadsheet_pivot/runtime_definition_spreadsheet_pivot.d.ts +7 -0
- package/dist/types/helpers/pivot/spreadsheet_pivot/spreadsheet_pivot.d.ts +96 -0
- package/dist/types/helpers/pivot/table_spreadsheet_pivot.d.ts +80 -0
- package/dist/types/helpers/range.d.ts +59 -0
- package/dist/types/helpers/recompute_zones.d.ts +130 -0
- package/dist/types/helpers/rectangle.d.ts +7 -0
- package/dist/types/helpers/reference_type.d.ts +29 -0
- package/dist/types/helpers/references.d.ts +25 -0
- package/dist/types/helpers/rendering.d.ts +2 -0
- package/dist/types/helpers/search.d.ts +19 -0
- package/dist/types/helpers/sheet.d.ts +7 -0
- package/dist/types/helpers/sort.d.ts +16 -0
- package/dist/types/helpers/state_manager_helpers.d.ts +6 -0
- package/dist/types/helpers/table_helpers.d.ts +9 -0
- package/dist/types/helpers/table_presets.d.ts +23 -0
- package/dist/types/helpers/text_helper.d.ts +35 -0
- package/dist/types/helpers/ui/cut_interactive.d.ts +2 -0
- package/dist/types/helpers/ui/freeze_interactive.d.ts +2 -0
- package/dist/types/helpers/ui/merge_interactive.d.ts +6 -0
- package/dist/types/helpers/ui/paste_interactive.d.ts +10 -0
- package/dist/types/helpers/ui/sheet_interactive.d.ts +2 -0
- package/dist/types/helpers/ui/split_to_columns_interactive.d.ts +6 -0
- package/dist/types/helpers/ui/table_interactive.d.ts +7 -0
- package/dist/types/helpers/ui/toggle_group_interactive.d.ts +6 -0
- package/dist/types/helpers/uuid.d.ts +20 -0
- package/dist/types/helpers/zones.d.ts +150 -0
- package/dist/types/history/branch.d.ts +62 -0
- package/dist/types/history/factory.d.ts +9 -0
- package/dist/types/history/operation.d.ts +17 -0
- package/dist/types/history/operation_sequence.d.ts +31 -0
- package/dist/types/history/repeat_commands/repeat_commands_generic.d.ts +7 -0
- package/dist/types/history/repeat_commands/repeat_commands_specific.d.ts +13 -0
- package/dist/types/history/repeat_commands/repeat_revision.d.ts +5 -0
- package/dist/types/history/selective_history.d.ts +80 -0
- package/dist/types/history/tree.d.ts +175 -0
- package/dist/types/index.d.ts +364 -0
- package/dist/types/migrations/data.d.ts +30 -0
- package/dist/types/migrations/legacy_tools.d.ts +15 -0
- package/dist/types/migrations/locale.d.ts +94 -0
- package/dist/types/migrations/migration_steps.d.ts +6 -0
- package/dist/types/model.d.ts +193 -0
- package/dist/types/plugins/base_plugin.d.ts +64 -0
- package/dist/types/plugins/core/borders.d.ts +127 -0
- package/dist/types/plugins/core/cell.d.ts +115 -0
- package/dist/types/plugins/core/chart.d.ts +41 -0
- package/dist/types/plugins/core/conditional_format.d.ts +53 -0
- package/dist/types/plugins/core/data_validation.d.ts +33 -0
- package/dist/types/plugins/core/figures.d.ts +34 -0
- package/dist/types/plugins/core/header_grouping.d.ts +83 -0
- package/dist/types/plugins/core/header_size.d.ts +23 -0
- package/dist/types/plugins/core/header_visibility.d.ts +20 -0
- package/dist/types/plugins/core/image.d.ts +32 -0
- package/dist/types/plugins/core/index.d.ts +13 -0
- package/dist/types/plugins/core/merge.d.ts +82 -0
- package/dist/types/plugins/core/pivot.d.ts +66 -0
- package/dist/types/plugins/core/range.d.ts +75 -0
- package/dist/types/plugins/core/settings.d.ts +12 -0
- package/dist/types/plugins/core/sheet.d.ts +148 -0
- package/dist/types/plugins/core/spreadsheet_pivot.d.ts +6 -0
- package/dist/types/plugins/core/table_style.d.ts +22 -0
- package/dist/types/plugins/core/tables.d.ts +56 -0
- package/dist/types/plugins/core_plugin.d.ts +50 -0
- package/dist/types/plugins/index.d.ts +7 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/binary_grid.d.ts +36 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/compilation_parameters.d.ts +14 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/evaluation_plugin.d.ts +58 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/evaluator.d.ts +59 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/formula_dependency_graph.d.ts +24 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/index.d.ts +1 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/position_map.d.ts +11 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/position_set.d.ts +28 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/r_tree.d.ts +108 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/spreading_relation.d.ts +63 -0
- package/dist/types/plugins/ui_core_views/custom_colors.d.ts +28 -0
- package/dist/types/plugins/ui_core_views/dynamic_tables.d.ts +32 -0
- package/dist/types/plugins/ui_core_views/evaluation_chart.d.ts +24 -0
- package/dist/types/plugins/ui_core_views/evaluation_conditional_format.d.ts +41 -0
- package/dist/types/plugins/ui_core_views/evaluation_data_validation.d.ts +38 -0
- package/dist/types/plugins/ui_core_views/header_sizes_ui.d.ts +32 -0
- package/dist/types/plugins/ui_core_views/index.d.ts +5 -0
- package/dist/types/plugins/ui_core_views/pivot_ui.d.ts +49 -0
- package/dist/types/plugins/ui_feature/autofill.d.ts +61 -0
- package/dist/types/plugins/ui_feature/automatic_sum.d.ts +101 -0
- package/dist/types/plugins/ui_feature/cell_computed_style.d.ts +13 -0
- package/dist/types/plugins/ui_feature/collaborative.d.ts +25 -0
- package/dist/types/plugins/ui_feature/data_cleanup.d.ts +16 -0
- package/dist/types/plugins/ui_feature/datavalidation_insertion.d.ts +5 -0
- package/dist/types/plugins/ui_feature/format.d.ts +25 -0
- package/dist/types/plugins/ui_feature/header_visibility_ui.d.ts +21 -0
- package/dist/types/plugins/ui_feature/index.d.ts +10 -0
- package/dist/types/plugins/ui_feature/insert_pivot.d.ts +14 -0
- package/dist/types/plugins/ui_feature/local_history.d.ts +36 -0
- package/dist/types/plugins/ui_feature/pivot_presence_plugin.d.ts +10 -0
- package/dist/types/plugins/ui_feature/sort.d.ts +29 -0
- package/dist/types/plugins/ui_feature/split_to_columns.d.ts +21 -0
- package/dist/types/plugins/ui_feature/table_autofill.d.ts +6 -0
- package/dist/types/plugins/ui_feature/table_computed_style.d.ts +26 -0
- package/dist/types/plugins/ui_feature/table_resize_ui.d.ts +6 -0
- package/dist/types/plugins/ui_feature/ui_options.d.ts +8 -0
- package/dist/types/plugins/ui_feature/ui_sheet.d.ts +48 -0
- package/dist/types/plugins/ui_plugin.d.ts +38 -0
- package/dist/types/plugins/ui_stateful/clipboard.d.ts +58 -0
- package/dist/types/plugins/ui_stateful/filter_evaluation.d.ts +25 -0
- package/dist/types/plugins/ui_stateful/header_positions.d.ts +28 -0
- package/dist/types/plugins/ui_stateful/index.d.ts +4 -0
- package/dist/types/plugins/ui_stateful/selection.d.ts +74 -0
- package/dist/types/plugins/ui_stateful/sheetview.d.ts +175 -0
- package/dist/types/registries/auto_completes/auto_complete_registry.d.ts +56 -0
- package/dist/types/registries/auto_completes/data_validation_auto_complete.d.ts +1 -0
- package/dist/types/registries/auto_completes/function_auto_complete.d.ts +1 -0
- package/dist/types/registries/auto_completes/index.d.ts +5 -0
- package/dist/types/registries/auto_completes/pivot_auto_complete.d.ts +1 -0
- package/dist/types/registries/auto_completes/pivot_dimension_auto_complete.d.ts +4 -0
- package/dist/types/registries/auto_completes/sheet_name_auto_complete.d.ts +1 -0
- package/dist/types/registries/autofill_modifiers.d.ts +7 -0
- package/dist/types/registries/autofill_rules.d.ts +20 -0
- package/dist/types/registries/cell_clickable_registry.d.ts +8 -0
- package/dist/types/registries/cell_popovers_registry.d.ts +3 -0
- package/dist/types/registries/chart_types.d.ts +52 -0
- package/dist/types/registries/currencies_registry.d.ts +7 -0
- package/dist/types/registries/data_validation_registry.d.ts +32 -0
- package/dist/types/registries/evaluation_registry.d.ts +9 -0
- package/dist/types/registries/figure_registry.d.ts +18 -0
- package/dist/types/registries/icons_on_cell_registry.d.ts +9 -0
- package/dist/types/registries/index.d.ts +12 -0
- package/dist/types/registries/inverse_command_registry.d.ts +5 -0
- package/dist/types/registries/menu_items_registry.d.ts +21 -0
- package/dist/types/registries/menus/cell_menu_registry.d.ts +2 -0
- package/dist/types/registries/menus/col_menu_registry.d.ts +2 -0
- package/dist/types/registries/menus/header_group_registry.d.ts +7 -0
- package/dist/types/registries/menus/index.d.ts +7 -0
- package/dist/types/registries/menus/link_menu_registry.d.ts +2 -0
- package/dist/types/registries/menus/number_format_menu_registry.d.ts +7 -0
- package/dist/types/registries/menus/row_menu_registry.d.ts +2 -0
- package/dist/types/registries/menus/sheet_menu_registry.d.ts +5 -0
- package/dist/types/registries/menus/table_style_menu_registry.d.ts +3 -0
- package/dist/types/registries/menus/topbar_menu_registry.d.ts +2 -0
- package/dist/types/registries/ot_registry.d.ts +21 -0
- package/dist/types/registries/registry.d.ts +44 -0
- package/dist/types/registries/repeat_commands_registry.d.ts +19 -0
- package/dist/types/registries/side_panel_registry.d.ts +14 -0
- package/dist/types/registries/side_panel_registry_entries.d.ts +1 -0
- package/dist/types/registries/topbar_component_registry.d.ts +20 -0
- package/dist/types/selection_stream/event_stream.d.ts +65 -0
- package/dist/types/selection_stream/selection_stream_processor.d.ts +154 -0
- package/dist/types/state_observer.d.ts +17 -0
- package/dist/types/store_engine/dependency_container.d.ts +25 -0
- package/dist/types/store_engine/index.d.ts +3 -0
- package/dist/types/store_engine/store.d.ts +72 -0
- package/dist/types/store_engine/store_hooks.d.ts +18 -0
- package/dist/types/stores/DOM_focus_store.d.ts +6 -0
- package/dist/types/stores/array_formula_highlight.d.ts +14 -0
- package/dist/types/stores/grid_renderer_store.d.ts +36 -0
- package/dist/types/stores/highlight_store.d.ts +16 -0
- package/dist/types/stores/index.d.ts +2 -0
- package/dist/types/stores/model_store.d.ts +2 -0
- package/dist/types/stores/notification_store.d.ts +13 -0
- package/dist/types/stores/renderer_store.d.ts +12 -0
- package/dist/types/stores/spreadsheet_store.d.ts +13 -0
- package/dist/types/translation.d.ts +21 -0
- package/dist/types/types/autofill.d.ts +71 -0
- package/dist/types/types/cell_popovers.d.ts +50 -0
- package/dist/types/types/cells.d.ts +64 -0
- package/dist/types/types/chart/bar_chart.d.ts +12 -0
- package/dist/types/types/chart/chart.d.ts +114 -0
- package/dist/types/types/chart/combo_chart.d.ts +15 -0
- package/dist/types/types/chart/common_bar_combo.d.ts +14 -0
- package/dist/types/types/chart/common_chart.d.ts +2 -0
- package/dist/types/types/chart/gauge_chart.d.ts +83 -0
- package/dist/types/types/chart/index.d.ts +7 -0
- package/dist/types/types/chart/line_chart.d.ts +24 -0
- package/dist/types/types/chart/pie_chart.d.ts +21 -0
- package/dist/types/types/chart/pyramid_chart.d.ts +10 -0
- package/dist/types/types/chart/scatter_chart.d.ts +5 -0
- package/dist/types/types/chart/scorecard_chart.d.ts +33 -0
- package/dist/types/types/chart/waterfall_chart.d.ts +27 -0
- package/dist/types/types/clipboard.d.ts +45 -0
- package/dist/types/types/collaborative/revisions.d.ts +7 -0
- package/dist/types/types/collaborative/session.d.ts +46 -0
- package/dist/types/types/collaborative/transport_service.d.ts +91 -0
- package/dist/types/types/commands.d.ts +833 -0
- package/dist/types/types/conditional_formatting.d.ts +113 -0
- package/dist/types/types/currency.d.ts +7 -0
- package/dist/types/types/data_validation.d.ts +121 -0
- package/dist/types/types/env.d.ts +29 -0
- package/dist/types/types/errors.d.ts +36 -0
- package/dist/types/types/event_stream/index.d.ts +1 -0
- package/dist/types/types/event_stream/selection_events.d.ts +11 -0
- package/dist/types/types/figure.d.ts +18 -0
- package/dist/types/types/files.d.ts +27 -0
- package/dist/types/types/find_and_replace.d.ts +8 -0
- package/dist/types/types/format.d.ts +8 -0
- package/dist/types/types/functions.d.ts +50 -0
- package/dist/types/types/getters.d.ts +102 -0
- package/dist/types/types/history.d.ts +43 -0
- package/dist/types/types/image.d.ts +16 -0
- package/dist/types/types/index.d.ts +39 -0
- package/dist/types/types/locale.d.ts +14 -0
- package/dist/types/types/misc.d.ts +312 -0
- package/dist/types/types/pivot.d.ts +136 -0
- package/dist/types/types/pivot_runtime.d.ts +31 -0
- package/dist/types/types/range.d.ts +21 -0
- package/dist/types/types/rendering.d.ts +95 -0
- package/dist/types/types/table.d.ts +65 -0
- package/dist/types/types/validator.d.ts +16 -0
- package/dist/types/types/workbook_data.d.ts +147 -0
- package/dist/types/types/xlsx.d.ts +502 -0
- package/dist/types/xlsx/constants.d.ts +74 -0
- package/dist/types/xlsx/conversion/cf_conversion.d.ts +4 -0
- package/dist/types/xlsx/conversion/color_conversion.d.ts +31 -0
- package/dist/types/xlsx/conversion/conversion_maps.d.ts +186 -0
- package/dist/types/xlsx/conversion/data_validation_conversion.d.ts +4 -0
- package/dist/types/xlsx/conversion/figure_conversion.d.ts +3 -0
- package/dist/types/xlsx/conversion/format_conversion.d.ts +8 -0
- package/dist/types/xlsx/conversion/formula_conversion.d.ts +9 -0
- package/dist/types/xlsx/conversion/index.d.ts +7 -0
- package/dist/types/xlsx/conversion/sheet_conversion.d.ts +4 -0
- package/dist/types/xlsx/conversion/style_conversion.d.ts +19 -0
- package/dist/types/xlsx/conversion/table_conversion.d.ts +8 -0
- package/dist/types/xlsx/extraction/base_extractor.d.ts +142 -0
- package/dist/types/xlsx/extraction/cf_extractor.d.ts +14 -0
- package/dist/types/xlsx/extraction/chart_extractor.d.ts +14 -0
- package/dist/types/xlsx/extraction/data_validation_extractor.d.ts +9 -0
- package/dist/types/xlsx/extraction/external_book_extractor.d.ts +6 -0
- package/dist/types/xlsx/extraction/figure_extractor.d.ts +10 -0
- package/dist/types/xlsx/extraction/index.d.ts +3 -0
- package/dist/types/xlsx/extraction/misc_extractor.d.ts +18 -0
- package/dist/types/xlsx/extraction/pivot_extractor.d.ts +10 -0
- package/dist/types/xlsx/extraction/sheet_extractor.d.ts +26 -0
- package/dist/types/xlsx/extraction/style_extractor.d.ts +19 -0
- package/dist/types/xlsx/extraction/table_extractor.d.ts +10 -0
- package/dist/types/xlsx/functions/cells.d.ts +11 -0
- package/dist/types/xlsx/functions/charts.d.ts +3 -0
- package/dist/types/xlsx/functions/conditional_formatting.d.ts +3 -0
- package/dist/types/xlsx/functions/data_validation.d.ts +3 -0
- package/dist/types/xlsx/functions/drawings.d.ts +5 -0
- package/dist/types/xlsx/functions/styles.d.ts +10 -0
- package/dist/types/xlsx/functions/table.d.ts +2 -0
- package/dist/types/xlsx/functions/worksheet.d.ts +10 -0
- package/dist/types/xlsx/helpers/colors.d.ts +8 -0
- package/dist/types/xlsx/helpers/content_helpers.d.ts +58 -0
- package/dist/types/xlsx/helpers/misc.d.ts +34 -0
- package/dist/types/xlsx/helpers/xlsx_helper.d.ts +10 -0
- package/dist/types/xlsx/helpers/xlsx_parser_error_manager.d.ts +38 -0
- package/dist/types/xlsx/helpers/xml_helpers.d.ts +36 -0
- package/dist/types/xlsx/xlsx_reader.d.ts +13 -0
- package/dist/types/xlsx/xlsx_writer.d.ts +19 -0
- package/package.json +43 -23
- package/dist/o-spreadsheet.d.ts +0 -12439
|
@@ -0,0 +1,833 @@
|
|
|
1
|
+
import { ConditionalFormat, DOMCoordinates, DataValidationRule, Figure, Format, Locale, Style, Zone } from "./index";
|
|
2
|
+
import { Border, BorderData, CellPosition, Color, Dimension, HeaderIndex, Pixel, SetDecimalStep, SortOptions, UID } from "./misc";
|
|
3
|
+
import { ChartDefinition } from "./chart/chart";
|
|
4
|
+
import { ClipboardPasteOptions, ParsedOSClipboardContent } from "./clipboard";
|
|
5
|
+
import { FigureSize } from "./figure";
|
|
6
|
+
import { SearchOptions } from "./find_and_replace";
|
|
7
|
+
import { Image } from "./image";
|
|
8
|
+
import { PivotCoreDefinition, PivotTableData } from "./pivot";
|
|
9
|
+
import { RangeData } from "./range";
|
|
10
|
+
import { CoreTableType, TableConfig, TableStyleTemplateName } from "./table";
|
|
11
|
+
/**
|
|
12
|
+
* There are two kinds of commands: CoreCommands and LocalCommands
|
|
13
|
+
*
|
|
14
|
+
* - CoreCommands are commands that
|
|
15
|
+
* 1. manipulate the imported/exported spreadsheet state
|
|
16
|
+
* 2. are shared in collaborative environment
|
|
17
|
+
*
|
|
18
|
+
* - LocalCommands: every other command
|
|
19
|
+
* 1. manipulate the local state
|
|
20
|
+
* 2. can be converted into CoreCommands
|
|
21
|
+
* 3. are not shared in collaborative environment
|
|
22
|
+
*
|
|
23
|
+
* For example, "RESIZE_COLUMNS_ROWS" is a CoreCommand. "AUTORESIZE_COLUMNS"
|
|
24
|
+
* can be (locally) converted into a "RESIZE_COLUMNS_ROWS", and therefore, is not a
|
|
25
|
+
* CoreCommand.
|
|
26
|
+
*
|
|
27
|
+
* CoreCommands should be "device agnostic". This means that they should
|
|
28
|
+
* contain all the information necessary to perform their job. Local commands
|
|
29
|
+
* can use inferred information from the local internal state, such as the
|
|
30
|
+
* active sheet.
|
|
31
|
+
*/
|
|
32
|
+
export interface SheetDependentCommand {
|
|
33
|
+
sheetId: UID;
|
|
34
|
+
}
|
|
35
|
+
export declare function isSheetDependent(cmd: CoreCommand): cmd is Extract<CoreCommand, SheetDependentCommand>;
|
|
36
|
+
export interface HeadersDependentCommand {
|
|
37
|
+
sheetId: UID;
|
|
38
|
+
dimension: Dimension;
|
|
39
|
+
elements: HeaderIndex[];
|
|
40
|
+
}
|
|
41
|
+
export declare function isHeadersDependant(cmd: CoreCommand): cmd is Extract<CoreCommand, HeadersDependentCommand>;
|
|
42
|
+
export interface TargetDependentCommand {
|
|
43
|
+
sheetId: UID;
|
|
44
|
+
target: Zone[];
|
|
45
|
+
}
|
|
46
|
+
export declare function isTargetDependent(cmd: CoreCommand): cmd is Extract<CoreCommand, TargetDependentCommand>;
|
|
47
|
+
export interface RangesDependentCommand {
|
|
48
|
+
ranges: RangeData[];
|
|
49
|
+
}
|
|
50
|
+
export declare function isRangeDependant(cmd: CoreCommand): cmd is Extract<CoreCommand, RangesDependentCommand>;
|
|
51
|
+
export interface PositionDependentCommand {
|
|
52
|
+
sheetId: UID;
|
|
53
|
+
col: number;
|
|
54
|
+
row: number;
|
|
55
|
+
}
|
|
56
|
+
export declare function isPositionDependent(cmd: CoreCommand): cmd is Extract<CoreCommand, PositionDependentCommand>;
|
|
57
|
+
export interface ZoneDependentCommand {
|
|
58
|
+
sheetId: UID;
|
|
59
|
+
zone: Zone;
|
|
60
|
+
}
|
|
61
|
+
export declare function isZoneDependent(cmd: CoreCommand): cmd is Extract<CoreCommand, ZoneDependentCommand>;
|
|
62
|
+
export declare const invalidateEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "PASTE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING">;
|
|
63
|
+
export declare const invalidateChartEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "PASTE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING">;
|
|
64
|
+
export declare const invalidateDependenciesCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "PASTE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING">;
|
|
65
|
+
export declare const invalidateCFEvaluationCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "PASTE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING">;
|
|
66
|
+
export declare const invalidateBordersCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "PASTE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING">;
|
|
67
|
+
export declare const readonlyAllowedCommands: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "SORT_CELLS" | "SET_DECIMAL" | "PASTE" | "REQUEST_UNDO" | "REQUEST_REDO" | "UNDO" | "REDO" | "COPY" | "CUT" | "COPY_PASTE_CELLS_ABOVE" | "COPY_PASTE_CELLS_ON_LEFT" | "REPEAT_PASTE" | "CLEAN_CLIPBOARD_HIGHLIGHT" | "AUTOFILL_CELL" | "PASTE_FROM_OS_CLIPBOARD" | "AUTORESIZE_COLUMNS" | "AUTORESIZE_ROWS" | "MOVE_COLUMNS_ROWS" | "ACTIVATE_SHEET" | "EVALUATE_CELLS" | "START_CHANGE_HIGHLIGHT" | "START" | "AUTOFILL" | "AUTOFILL_SELECT" | "AUTOFILL_TABLE_COLUMN" | "SET_FORMULA_VISIBILITY" | "AUTOFILL_AUTO" | "SELECT_FIGURE" | "REPLACE_SEARCH" | "SET_FORMATTING_WITH_PIVOT" | "RESIZE_SHEETVIEW" | "SUM_SELECTION" | "DELETE_CELL" | "INSERT_CELL" | "SET_VIEWPORT_OFFSET" | "SHIFT_VIEWPORT_DOWN" | "SHIFT_VIEWPORT_UP" | "SCROLL_TO_CELL" | "ACTIVATE_NEXT_SHEET" | "ACTIVATE_PREVIOUS_SHEET" | "UPDATE_FILTER" | "SPLIT_TEXT_INTO_COLUMNS" | "REMOVE_DUPLICATES" | "TRIM_WHITESPACE" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT" | "DUPLICATE_PIVOT_IN_NEW_SHEET" | "INSERT_PIVOT_WITH_TABLE" | "SPLIT_PIVOT_FORMULA" | "PAINT_FORMAT" | "PIVOT_START_PRESENCE_TRACKING" | "PIVOT_STOP_PRESENCE_TRACKING">;
|
|
68
|
+
export declare const coreTypes: Set<"UPDATE_CELL" | "UPDATE_CELL_POSITION" | "CLEAR_CELL" | "CLEAR_CELLS" | "DELETE_CONTENT" | "ADD_COLUMNS_ROWS" | "REMOVE_COLUMNS_ROWS" | "RESIZE_COLUMNS_ROWS" | "HIDE_COLUMNS_ROWS" | "UNHIDE_COLUMNS_ROWS" | "SET_GRID_LINES_VISIBILITY" | "FREEZE_COLUMNS" | "FREEZE_ROWS" | "UNFREEZE_COLUMNS_ROWS" | "UNFREEZE_COLUMNS" | "UNFREEZE_ROWS" | "ADD_MERGE" | "REMOVE_MERGE" | "CREATE_SHEET" | "DELETE_SHEET" | "DUPLICATE_SHEET" | "MOVE_SHEET" | "RENAME_SHEET" | "COLOR_SHEET" | "HIDE_SHEET" | "SHOW_SHEET" | "MOVE_RANGES" | "ADD_CONDITIONAL_FORMAT" | "REMOVE_CONDITIONAL_FORMAT" | "CHANGE_CONDITIONAL_FORMAT_PRIORITY" | "CREATE_FIGURE" | "DELETE_FIGURE" | "UPDATE_FIGURE" | "SET_FORMATTING" | "CLEAR_FORMATTING" | "SET_ZONE_BORDERS" | "SET_BORDER" | "SET_BORDERS_ON_TARGET" | "CREATE_CHART" | "UPDATE_CHART" | "CREATE_IMAGE" | "CREATE_TABLE" | "REMOVE_TABLE" | "UPDATE_TABLE" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "GROUP_HEADERS" | "UNGROUP_HEADERS" | "UNFOLD_HEADER_GROUP" | "FOLD_HEADER_GROUP" | "FOLD_ALL_HEADER_GROUPS" | "UNFOLD_ALL_HEADER_GROUPS" | "UNFOLD_HEADER_GROUPS_IN_ZONE" | "FOLD_HEADER_GROUPS_IN_ZONE" | "ADD_DATA_VALIDATION_RULE" | "REMOVE_DATA_VALIDATION_RULE" | "UPDATE_LOCALE" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT">;
|
|
69
|
+
export declare function isCoreCommand(cmd: Command): cmd is CoreCommand;
|
|
70
|
+
export declare function canExecuteInReadonly(cmd: Command): boolean;
|
|
71
|
+
export interface UpdateCellCommand extends PositionDependentCommand {
|
|
72
|
+
type: "UPDATE_CELL";
|
|
73
|
+
content?: string;
|
|
74
|
+
style?: Style | null;
|
|
75
|
+
format?: Format;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Move a cell to a given position or clear the position.
|
|
79
|
+
*/
|
|
80
|
+
export interface UpdateCellPositionCommand extends PositionDependentCommand {
|
|
81
|
+
type: "UPDATE_CELL_POSITION";
|
|
82
|
+
cellId?: UID;
|
|
83
|
+
}
|
|
84
|
+
export interface AddColumnsRowsCommand extends SheetDependentCommand {
|
|
85
|
+
type: "ADD_COLUMNS_ROWS";
|
|
86
|
+
dimension: Dimension;
|
|
87
|
+
base: HeaderIndex;
|
|
88
|
+
quantity: number;
|
|
89
|
+
position: "before" | "after";
|
|
90
|
+
}
|
|
91
|
+
export interface RemoveColumnsRowsCommand extends HeadersDependentCommand {
|
|
92
|
+
type: "REMOVE_COLUMNS_ROWS";
|
|
93
|
+
elements: HeaderIndex[];
|
|
94
|
+
}
|
|
95
|
+
export interface MoveColumnsRowsCommand extends HeadersDependentCommand {
|
|
96
|
+
type: "MOVE_COLUMNS_ROWS";
|
|
97
|
+
base: HeaderIndex;
|
|
98
|
+
elements: HeaderIndex[];
|
|
99
|
+
position: "before" | "after";
|
|
100
|
+
}
|
|
101
|
+
export interface ResizeColumnsRowsCommand extends HeadersDependentCommand {
|
|
102
|
+
type: "RESIZE_COLUMNS_ROWS";
|
|
103
|
+
elements: number[];
|
|
104
|
+
size: number | null;
|
|
105
|
+
}
|
|
106
|
+
export interface HideColumnsRowsCommand extends HeadersDependentCommand {
|
|
107
|
+
type: "HIDE_COLUMNS_ROWS";
|
|
108
|
+
elements: HeaderIndex[];
|
|
109
|
+
}
|
|
110
|
+
export interface UnhideColumnsRowsCommand extends HeadersDependentCommand {
|
|
111
|
+
type: "UNHIDE_COLUMNS_ROWS";
|
|
112
|
+
elements: HeaderIndex[];
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Freeze a given number of columns on top of the sheet
|
|
116
|
+
*/
|
|
117
|
+
export interface FreezeColumnsCommand extends SheetDependentCommand {
|
|
118
|
+
type: "FREEZE_COLUMNS";
|
|
119
|
+
/** number of columns frozen */
|
|
120
|
+
quantity: number;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Freeze a given number of rows on top of the sheet
|
|
124
|
+
*/
|
|
125
|
+
export interface FreezeRowsCommand extends SheetDependentCommand {
|
|
126
|
+
type: "FREEZE_ROWS";
|
|
127
|
+
/** number of frozen rows */
|
|
128
|
+
quantity: number;
|
|
129
|
+
}
|
|
130
|
+
export interface UnfreezeColumnsRowsCommand {
|
|
131
|
+
type: "UNFREEZE_COLUMNS_ROWS";
|
|
132
|
+
sheetId: UID;
|
|
133
|
+
}
|
|
134
|
+
export interface UnfreezeColumnsCommand {
|
|
135
|
+
type: "UNFREEZE_COLUMNS";
|
|
136
|
+
sheetId: UID;
|
|
137
|
+
}
|
|
138
|
+
export interface UnfreezeRowsCommand {
|
|
139
|
+
type: "UNFREEZE_ROWS";
|
|
140
|
+
sheetId: UID;
|
|
141
|
+
}
|
|
142
|
+
export interface SetGridLinesVisibilityCommand extends SheetDependentCommand {
|
|
143
|
+
type: "SET_GRID_LINES_VISIBILITY";
|
|
144
|
+
areGridLinesVisible: boolean;
|
|
145
|
+
}
|
|
146
|
+
export interface AddMergeCommand extends TargetDependentCommand {
|
|
147
|
+
type: "ADD_MERGE";
|
|
148
|
+
force?: boolean;
|
|
149
|
+
}
|
|
150
|
+
export interface RemoveMergeCommand extends TargetDependentCommand {
|
|
151
|
+
type: "REMOVE_MERGE";
|
|
152
|
+
}
|
|
153
|
+
export interface CreateSheetCommand extends SheetDependentCommand {
|
|
154
|
+
type: "CREATE_SHEET";
|
|
155
|
+
position: number;
|
|
156
|
+
name?: string;
|
|
157
|
+
cols?: number;
|
|
158
|
+
rows?: number;
|
|
159
|
+
}
|
|
160
|
+
export interface DeleteSheetCommand extends SheetDependentCommand {
|
|
161
|
+
type: "DELETE_SHEET";
|
|
162
|
+
}
|
|
163
|
+
export interface DuplicateSheetCommand extends SheetDependentCommand {
|
|
164
|
+
type: "DUPLICATE_SHEET";
|
|
165
|
+
sheetIdTo: UID;
|
|
166
|
+
sheetNameTo: string;
|
|
167
|
+
}
|
|
168
|
+
export interface MoveSheetCommand extends SheetDependentCommand {
|
|
169
|
+
type: "MOVE_SHEET";
|
|
170
|
+
delta: number;
|
|
171
|
+
}
|
|
172
|
+
export interface RenameSheetCommand extends SheetDependentCommand {
|
|
173
|
+
type: "RENAME_SHEET";
|
|
174
|
+
name?: string;
|
|
175
|
+
}
|
|
176
|
+
export interface ColorSheetCommand extends SheetDependentCommand {
|
|
177
|
+
type: "COLOR_SHEET";
|
|
178
|
+
color?: Color;
|
|
179
|
+
}
|
|
180
|
+
export interface HideSheetCommand extends SheetDependentCommand {
|
|
181
|
+
type: "HIDE_SHEET";
|
|
182
|
+
}
|
|
183
|
+
export interface ShowSheetCommand extends SheetDependentCommand {
|
|
184
|
+
type: "SHOW_SHEET";
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Command created in order to apply a translational movement for all references
|
|
188
|
+
* to cells/ranges within a specific zone.
|
|
189
|
+
* Command particularly useful during CUT / PATE.
|
|
190
|
+
*/
|
|
191
|
+
export interface MoveRangeCommand extends PositionDependentCommand, TargetDependentCommand {
|
|
192
|
+
type: "MOVE_RANGES";
|
|
193
|
+
targetSheetId: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* todo: use id instead of a list. this is not safe to serialize and send to
|
|
197
|
+
* another user
|
|
198
|
+
*/
|
|
199
|
+
export interface AddConditionalFormatCommand extends SheetDependentCommand, RangesDependentCommand {
|
|
200
|
+
type: "ADD_CONDITIONAL_FORMAT";
|
|
201
|
+
cf: Omit<ConditionalFormat, "ranges">;
|
|
202
|
+
}
|
|
203
|
+
export interface RemoveConditionalFormatCommand extends SheetDependentCommand {
|
|
204
|
+
type: "REMOVE_CONDITIONAL_FORMAT";
|
|
205
|
+
id: string;
|
|
206
|
+
}
|
|
207
|
+
export interface MoveConditionalFormatCommand extends SheetDependentCommand {
|
|
208
|
+
type: "CHANGE_CONDITIONAL_FORMAT_PRIORITY";
|
|
209
|
+
cfId: UID;
|
|
210
|
+
delta: number;
|
|
211
|
+
}
|
|
212
|
+
export interface CreateFigureCommand extends SheetDependentCommand {
|
|
213
|
+
type: "CREATE_FIGURE";
|
|
214
|
+
figure: Figure;
|
|
215
|
+
}
|
|
216
|
+
export interface UpdateFigureCommand extends Partial<Figure>, SheetDependentCommand {
|
|
217
|
+
type: "UPDATE_FIGURE";
|
|
218
|
+
id: UID;
|
|
219
|
+
}
|
|
220
|
+
export interface DeleteFigureCommand extends SheetDependentCommand {
|
|
221
|
+
type: "DELETE_FIGURE";
|
|
222
|
+
id: UID;
|
|
223
|
+
}
|
|
224
|
+
export interface CreateChartCommand extends SheetDependentCommand {
|
|
225
|
+
type: "CREATE_CHART";
|
|
226
|
+
id: UID;
|
|
227
|
+
position?: DOMCoordinates;
|
|
228
|
+
size?: FigureSize;
|
|
229
|
+
definition: ChartDefinition;
|
|
230
|
+
}
|
|
231
|
+
export interface UpdateChartCommand extends SheetDependentCommand {
|
|
232
|
+
type: "UPDATE_CHART";
|
|
233
|
+
id: UID;
|
|
234
|
+
definition: ChartDefinition;
|
|
235
|
+
}
|
|
236
|
+
export interface CreateImageOverCommand extends SheetDependentCommand {
|
|
237
|
+
type: "CREATE_IMAGE";
|
|
238
|
+
figureId: UID;
|
|
239
|
+
position: DOMCoordinates;
|
|
240
|
+
size: FigureSize;
|
|
241
|
+
definition: Image;
|
|
242
|
+
}
|
|
243
|
+
export interface CreateTableCommand extends RangesDependentCommand {
|
|
244
|
+
type: "CREATE_TABLE";
|
|
245
|
+
sheetId: UID;
|
|
246
|
+
config?: TableConfig;
|
|
247
|
+
tableType: CoreTableType;
|
|
248
|
+
}
|
|
249
|
+
export interface RemoveTableCommand extends TargetDependentCommand {
|
|
250
|
+
type: "REMOVE_TABLE";
|
|
251
|
+
}
|
|
252
|
+
export interface UpdateTableCommand {
|
|
253
|
+
type: "UPDATE_TABLE";
|
|
254
|
+
zone: Zone;
|
|
255
|
+
sheetId: UID;
|
|
256
|
+
newTableRange?: RangeData;
|
|
257
|
+
tableType?: CoreTableType;
|
|
258
|
+
config?: Partial<TableConfig>;
|
|
259
|
+
}
|
|
260
|
+
export interface ResizeTableCommand {
|
|
261
|
+
type: "RESIZE_TABLE";
|
|
262
|
+
zone: Zone;
|
|
263
|
+
sheetId: UID;
|
|
264
|
+
newTableRange: RangeData;
|
|
265
|
+
tableType?: CoreTableType;
|
|
266
|
+
}
|
|
267
|
+
export interface AutofillTableCommand extends PositionDependentCommand {
|
|
268
|
+
type: "AUTOFILL_TABLE_COLUMN";
|
|
269
|
+
/** The row to start the autofill in. If undefined, it will autofill from the top of the table column */
|
|
270
|
+
autofillRowStart?: number;
|
|
271
|
+
/** The row to end the autofill in. If undefined, it will autofill to the bottom of the table column */
|
|
272
|
+
autofillRowEnd?: number;
|
|
273
|
+
}
|
|
274
|
+
export interface CreateTableStyleCommand {
|
|
275
|
+
type: "CREATE_TABLE_STYLE";
|
|
276
|
+
tableStyleId: string;
|
|
277
|
+
tableStyleName: string;
|
|
278
|
+
templateName: TableStyleTemplateName;
|
|
279
|
+
primaryColor: Color;
|
|
280
|
+
}
|
|
281
|
+
export interface RemoveTableStyleCommand {
|
|
282
|
+
type: "REMOVE_TABLE_STYLE";
|
|
283
|
+
tableStyleId: string;
|
|
284
|
+
}
|
|
285
|
+
export interface UpdateFilterCommand extends PositionDependentCommand {
|
|
286
|
+
type: "UPDATE_FILTER";
|
|
287
|
+
hiddenValues: string[];
|
|
288
|
+
}
|
|
289
|
+
export interface SetFormattingCommand extends TargetDependentCommand {
|
|
290
|
+
type: "SET_FORMATTING";
|
|
291
|
+
style?: Style;
|
|
292
|
+
format?: Format;
|
|
293
|
+
}
|
|
294
|
+
export interface SetZoneBordersCommand extends TargetDependentCommand {
|
|
295
|
+
type: "SET_ZONE_BORDERS";
|
|
296
|
+
border: BorderData;
|
|
297
|
+
}
|
|
298
|
+
export interface SetBorderCommand extends PositionDependentCommand {
|
|
299
|
+
type: "SET_BORDER";
|
|
300
|
+
border: Border | undefined;
|
|
301
|
+
}
|
|
302
|
+
export interface SetBorderTargetCommand extends TargetDependentCommand {
|
|
303
|
+
type: "SET_BORDERS_ON_TARGET";
|
|
304
|
+
border: Border | undefined;
|
|
305
|
+
}
|
|
306
|
+
export interface ClearFormattingCommand extends TargetDependentCommand {
|
|
307
|
+
type: "CLEAR_FORMATTING";
|
|
308
|
+
}
|
|
309
|
+
export interface SetDecimalCommand extends TargetDependentCommand {
|
|
310
|
+
type: "SET_DECIMAL";
|
|
311
|
+
step: SetDecimalStep;
|
|
312
|
+
}
|
|
313
|
+
export interface SetContextualFormatCommand extends TargetDependentCommand {
|
|
314
|
+
type: "SET_FORMATTING_WITH_PIVOT";
|
|
315
|
+
format: Format;
|
|
316
|
+
}
|
|
317
|
+
export interface UpdateLocaleCommand {
|
|
318
|
+
type: "UPDATE_LOCALE";
|
|
319
|
+
locale: Locale;
|
|
320
|
+
}
|
|
321
|
+
export interface AddPivotCommand {
|
|
322
|
+
type: "ADD_PIVOT";
|
|
323
|
+
pivotId: UID;
|
|
324
|
+
pivot: PivotCoreDefinition;
|
|
325
|
+
}
|
|
326
|
+
export interface UpdatePivotCommand {
|
|
327
|
+
type: "UPDATE_PIVOT";
|
|
328
|
+
pivotId: UID;
|
|
329
|
+
pivot: PivotCoreDefinition;
|
|
330
|
+
}
|
|
331
|
+
export interface InsertPivotCommand extends PositionDependentCommand {
|
|
332
|
+
type: "INSERT_PIVOT";
|
|
333
|
+
pivotId: UID;
|
|
334
|
+
table: PivotTableData;
|
|
335
|
+
}
|
|
336
|
+
export interface RenamePivotCommand {
|
|
337
|
+
type: "RENAME_PIVOT";
|
|
338
|
+
pivotId: UID;
|
|
339
|
+
name: string;
|
|
340
|
+
}
|
|
341
|
+
export interface RemovePivotCommand {
|
|
342
|
+
type: "REMOVE_PIVOT";
|
|
343
|
+
pivotId: UID;
|
|
344
|
+
}
|
|
345
|
+
export interface DuplicatePivotCommand {
|
|
346
|
+
type: "DUPLICATE_PIVOT";
|
|
347
|
+
pivotId: UID;
|
|
348
|
+
newPivotId: string;
|
|
349
|
+
duplicatedPivotName?: string;
|
|
350
|
+
}
|
|
351
|
+
export interface RemoveDuplicatesCommand {
|
|
352
|
+
type: "REMOVE_DUPLICATES";
|
|
353
|
+
columns: HeaderIndex[];
|
|
354
|
+
hasHeader: boolean;
|
|
355
|
+
}
|
|
356
|
+
export interface TrimWhitespaceCommand {
|
|
357
|
+
type: "TRIM_WHITESPACE";
|
|
358
|
+
}
|
|
359
|
+
export interface GroupHeadersCommand extends SheetDependentCommand {
|
|
360
|
+
type: "GROUP_HEADERS";
|
|
361
|
+
dimension: Dimension;
|
|
362
|
+
start: HeaderIndex;
|
|
363
|
+
end: HeaderIndex;
|
|
364
|
+
}
|
|
365
|
+
export interface UnGroupHeadersCommand extends SheetDependentCommand {
|
|
366
|
+
type: "UNGROUP_HEADERS";
|
|
367
|
+
dimension: Dimension;
|
|
368
|
+
start: HeaderIndex;
|
|
369
|
+
end: HeaderIndex;
|
|
370
|
+
}
|
|
371
|
+
export interface FoldHeaderGroupCommand extends SheetDependentCommand {
|
|
372
|
+
type: "FOLD_HEADER_GROUP";
|
|
373
|
+
dimension: Dimension;
|
|
374
|
+
start: HeaderIndex;
|
|
375
|
+
end: HeaderIndex;
|
|
376
|
+
}
|
|
377
|
+
export interface UnfoldHeaderGroupCommand extends SheetDependentCommand {
|
|
378
|
+
type: "UNFOLD_HEADER_GROUP";
|
|
379
|
+
dimension: Dimension;
|
|
380
|
+
start: HeaderIndex;
|
|
381
|
+
end: HeaderIndex;
|
|
382
|
+
}
|
|
383
|
+
export interface FoldAllHeaderGroupsCommand extends SheetDependentCommand {
|
|
384
|
+
type: "FOLD_ALL_HEADER_GROUPS";
|
|
385
|
+
dimension: Dimension;
|
|
386
|
+
}
|
|
387
|
+
export interface UnfoldAllHeaderGroupsCommand extends SheetDependentCommand {
|
|
388
|
+
type: "UNFOLD_ALL_HEADER_GROUPS";
|
|
389
|
+
dimension: Dimension;
|
|
390
|
+
}
|
|
391
|
+
export interface UnfoldHeaderGroupsInZoneCommand extends ZoneDependentCommand {
|
|
392
|
+
type: "UNFOLD_HEADER_GROUPS_IN_ZONE";
|
|
393
|
+
dimension: Dimension;
|
|
394
|
+
}
|
|
395
|
+
export interface FoldHeaderGroupsInZoneCommand extends ZoneDependentCommand {
|
|
396
|
+
type: "FOLD_HEADER_GROUPS_IN_ZONE";
|
|
397
|
+
dimension: Dimension;
|
|
398
|
+
}
|
|
399
|
+
export interface AddDataValidationCommand extends SheetDependentCommand, RangesDependentCommand {
|
|
400
|
+
type: "ADD_DATA_VALIDATION_RULE";
|
|
401
|
+
rule: Omit<DataValidationRule, "ranges">;
|
|
402
|
+
}
|
|
403
|
+
export interface RemoveDataValidationCommand extends SheetDependentCommand {
|
|
404
|
+
type: "REMOVE_DATA_VALIDATION_RULE";
|
|
405
|
+
id: string;
|
|
406
|
+
}
|
|
407
|
+
export interface CopyCommand {
|
|
408
|
+
type: "COPY";
|
|
409
|
+
}
|
|
410
|
+
export interface CutCommand {
|
|
411
|
+
type: "CUT";
|
|
412
|
+
}
|
|
413
|
+
export interface PasteCommand {
|
|
414
|
+
type: "PASTE";
|
|
415
|
+
target: Zone[];
|
|
416
|
+
pasteOption?: ClipboardPasteOptions;
|
|
417
|
+
}
|
|
418
|
+
export interface CopyPasteCellsAboveCommand {
|
|
419
|
+
type: "COPY_PASTE_CELLS_ABOVE";
|
|
420
|
+
}
|
|
421
|
+
export interface CopyPasteCellsOnLeftCommand {
|
|
422
|
+
type: "COPY_PASTE_CELLS_ON_LEFT";
|
|
423
|
+
}
|
|
424
|
+
export interface RepeatPasteCommand {
|
|
425
|
+
type: "REPEAT_PASTE";
|
|
426
|
+
target: Zone[];
|
|
427
|
+
pasteOption?: ClipboardPasteOptions;
|
|
428
|
+
}
|
|
429
|
+
export interface CleanClipBoardHighlightCommand {
|
|
430
|
+
type: "CLEAN_CLIPBOARD_HIGHLIGHT";
|
|
431
|
+
}
|
|
432
|
+
export interface AutoFillCellCommand {
|
|
433
|
+
type: "AUTOFILL_CELL";
|
|
434
|
+
originCol: number;
|
|
435
|
+
originRow: number;
|
|
436
|
+
col: HeaderIndex;
|
|
437
|
+
row: HeaderIndex;
|
|
438
|
+
content?: string;
|
|
439
|
+
style?: Style | null;
|
|
440
|
+
border?: Border;
|
|
441
|
+
format?: Format;
|
|
442
|
+
}
|
|
443
|
+
export interface PasteFromOSClipboardCommand {
|
|
444
|
+
type: "PASTE_FROM_OS_CLIPBOARD";
|
|
445
|
+
target: Zone[];
|
|
446
|
+
clipboardContent: ParsedOSClipboardContent;
|
|
447
|
+
pasteOption?: ClipboardPasteOptions;
|
|
448
|
+
}
|
|
449
|
+
export interface AutoresizeColumnsCommand {
|
|
450
|
+
type: "AUTORESIZE_COLUMNS";
|
|
451
|
+
sheetId: UID;
|
|
452
|
+
cols: HeaderIndex[];
|
|
453
|
+
}
|
|
454
|
+
export interface AutoresizeRowsCommand {
|
|
455
|
+
type: "AUTORESIZE_ROWS";
|
|
456
|
+
sheetId: UID;
|
|
457
|
+
rows: HeaderIndex[];
|
|
458
|
+
}
|
|
459
|
+
export interface ActivateSheetCommand {
|
|
460
|
+
type: "ACTIVATE_SHEET";
|
|
461
|
+
sheetIdFrom: UID;
|
|
462
|
+
sheetIdTo: UID;
|
|
463
|
+
}
|
|
464
|
+
export interface EvaluateCellsCommand {
|
|
465
|
+
type: "EVALUATE_CELLS";
|
|
466
|
+
}
|
|
467
|
+
export interface StartChangeHighlightCommand {
|
|
468
|
+
type: "START_CHANGE_HIGHLIGHT";
|
|
469
|
+
zone: Zone;
|
|
470
|
+
}
|
|
471
|
+
export interface ShowFormulaCommand {
|
|
472
|
+
type: "SET_FORMULA_VISIBILITY";
|
|
473
|
+
show: boolean;
|
|
474
|
+
}
|
|
475
|
+
export interface DeleteContentCommand {
|
|
476
|
+
type: "DELETE_CONTENT";
|
|
477
|
+
sheetId: UID;
|
|
478
|
+
target: Zone[];
|
|
479
|
+
}
|
|
480
|
+
export interface ClearCellCommand extends PositionDependentCommand {
|
|
481
|
+
type: "CLEAR_CELL";
|
|
482
|
+
}
|
|
483
|
+
export interface ClearCellsCommand extends TargetDependentCommand {
|
|
484
|
+
type: "CLEAR_CELLS";
|
|
485
|
+
}
|
|
486
|
+
export interface UndoCommand {
|
|
487
|
+
type: "UNDO";
|
|
488
|
+
commands: readonly CoreCommand[];
|
|
489
|
+
}
|
|
490
|
+
export interface RedoCommand {
|
|
491
|
+
type: "REDO";
|
|
492
|
+
commands: readonly CoreCommand[];
|
|
493
|
+
}
|
|
494
|
+
export interface RequestUndoCommand {
|
|
495
|
+
type: "REQUEST_UNDO";
|
|
496
|
+
}
|
|
497
|
+
export interface RequestRedoCommand {
|
|
498
|
+
type: "REQUEST_REDO";
|
|
499
|
+
}
|
|
500
|
+
export interface StartCommand {
|
|
501
|
+
type: "START";
|
|
502
|
+
}
|
|
503
|
+
export interface AutofillCommand {
|
|
504
|
+
type: "AUTOFILL";
|
|
505
|
+
}
|
|
506
|
+
export interface AutofillSelectCommand {
|
|
507
|
+
type: "AUTOFILL_SELECT";
|
|
508
|
+
col: HeaderIndex;
|
|
509
|
+
row: HeaderIndex;
|
|
510
|
+
}
|
|
511
|
+
export interface AutofillAutoCommand {
|
|
512
|
+
type: "AUTOFILL_AUTO";
|
|
513
|
+
}
|
|
514
|
+
export interface SelectFigureCommand {
|
|
515
|
+
type: "SELECT_FIGURE";
|
|
516
|
+
id: UID | null;
|
|
517
|
+
}
|
|
518
|
+
export interface ReplaceSearchCommand {
|
|
519
|
+
type: "REPLACE_SEARCH";
|
|
520
|
+
searchString: string;
|
|
521
|
+
replaceWith: string;
|
|
522
|
+
searchOptions: SearchOptions;
|
|
523
|
+
matches: CellPosition[];
|
|
524
|
+
}
|
|
525
|
+
export interface SortCommand {
|
|
526
|
+
type: "SORT_CELLS";
|
|
527
|
+
sheetId: UID;
|
|
528
|
+
col: number;
|
|
529
|
+
row: number;
|
|
530
|
+
zone: Zone;
|
|
531
|
+
sortDirection: SortDirection;
|
|
532
|
+
sortOptions?: SortOptions;
|
|
533
|
+
}
|
|
534
|
+
export type SortDirection = "ascending" | "descending";
|
|
535
|
+
export interface ResizeViewportCommand {
|
|
536
|
+
type: "RESIZE_SHEETVIEW";
|
|
537
|
+
width: Pixel;
|
|
538
|
+
height: Pixel;
|
|
539
|
+
gridOffsetX?: Pixel;
|
|
540
|
+
gridOffsetY?: Pixel;
|
|
541
|
+
}
|
|
542
|
+
export interface SetViewportOffsetCommand {
|
|
543
|
+
type: "SET_VIEWPORT_OFFSET";
|
|
544
|
+
offsetX: Pixel;
|
|
545
|
+
offsetY: Pixel;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Shift the viewport down by the viewport height
|
|
549
|
+
*/
|
|
550
|
+
export interface MoveViewportDownCommand {
|
|
551
|
+
type: "SHIFT_VIEWPORT_DOWN";
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Shift the viewport up by the viewport height
|
|
555
|
+
*/
|
|
556
|
+
export interface MoveViewportUpCommand {
|
|
557
|
+
type: "SHIFT_VIEWPORT_UP";
|
|
558
|
+
}
|
|
559
|
+
export interface MoveViewportToCellCommand {
|
|
560
|
+
type: "SCROLL_TO_CELL";
|
|
561
|
+
col: HeaderIndex;
|
|
562
|
+
row: HeaderIndex;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Sum data according to the selected zone(s) in the appropriated
|
|
566
|
+
* cells.
|
|
567
|
+
*/
|
|
568
|
+
export interface SumSelectionCommand {
|
|
569
|
+
type: "SUM_SELECTION";
|
|
570
|
+
}
|
|
571
|
+
export interface DeleteCellCommand {
|
|
572
|
+
type: "DELETE_CELL";
|
|
573
|
+
shiftDimension: Dimension;
|
|
574
|
+
zone: Zone;
|
|
575
|
+
}
|
|
576
|
+
export interface InsertCellCommand {
|
|
577
|
+
type: "INSERT_CELL";
|
|
578
|
+
shiftDimension: Dimension;
|
|
579
|
+
zone: Zone;
|
|
580
|
+
}
|
|
581
|
+
export interface ActivateNextSheetCommand {
|
|
582
|
+
type: "ACTIVATE_NEXT_SHEET";
|
|
583
|
+
}
|
|
584
|
+
export interface ActivatePreviousSheetCommand {
|
|
585
|
+
type: "ACTIVATE_PREVIOUS_SHEET";
|
|
586
|
+
}
|
|
587
|
+
export interface SplitTextIntoColumnsCommand {
|
|
588
|
+
type: "SPLIT_TEXT_INTO_COLUMNS";
|
|
589
|
+
separator: string;
|
|
590
|
+
addNewColumns: boolean;
|
|
591
|
+
force?: boolean;
|
|
592
|
+
}
|
|
593
|
+
export interface RefreshPivotCommand {
|
|
594
|
+
type: "REFRESH_PIVOT";
|
|
595
|
+
id: UID;
|
|
596
|
+
}
|
|
597
|
+
export interface InsertNewPivotCommand {
|
|
598
|
+
type: "INSERT_NEW_PIVOT";
|
|
599
|
+
pivotId: UID;
|
|
600
|
+
newSheetId: UID;
|
|
601
|
+
}
|
|
602
|
+
export interface DuplicatePivotInNewSheetCommand {
|
|
603
|
+
type: "DUPLICATE_PIVOT_IN_NEW_SHEET";
|
|
604
|
+
pivotId: UID;
|
|
605
|
+
newPivotId: UID;
|
|
606
|
+
newSheetId: UID;
|
|
607
|
+
}
|
|
608
|
+
export interface InsertPivotWithTableCommand extends PositionDependentCommand {
|
|
609
|
+
type: "INSERT_PIVOT_WITH_TABLE";
|
|
610
|
+
pivotId: UID;
|
|
611
|
+
table: PivotTableData;
|
|
612
|
+
pivotMode: "static" | "dynamic";
|
|
613
|
+
}
|
|
614
|
+
export interface SplitPivotFormulaCommand extends PositionDependentCommand {
|
|
615
|
+
type: "SPLIT_PIVOT_FORMULA";
|
|
616
|
+
pivotId: UID;
|
|
617
|
+
}
|
|
618
|
+
export interface PaintFormat extends TargetDependentCommand {
|
|
619
|
+
type: "PAINT_FORMAT";
|
|
620
|
+
}
|
|
621
|
+
export interface PivotStartPresenceTracking {
|
|
622
|
+
type: "PIVOT_START_PRESENCE_TRACKING";
|
|
623
|
+
pivotId: UID;
|
|
624
|
+
}
|
|
625
|
+
export interface PivotStopPresenceTracking {
|
|
626
|
+
type: "PIVOT_STOP_PRESENCE_TRACKING";
|
|
627
|
+
}
|
|
628
|
+
export type CoreCommand =
|
|
629
|
+
/** CELLS */
|
|
630
|
+
UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | ClearCellsCommand | DeleteContentCommand
|
|
631
|
+
/** GRID SHAPE */
|
|
632
|
+
| AddColumnsRowsCommand | RemoveColumnsRowsCommand | ResizeColumnsRowsCommand | HideColumnsRowsCommand | UnhideColumnsRowsCommand | SetGridLinesVisibilityCommand | FreezeColumnsCommand | FreezeRowsCommand | UnfreezeColumnsRowsCommand | UnfreezeColumnsCommand | UnfreezeRowsCommand
|
|
633
|
+
/** MERGE */
|
|
634
|
+
| AddMergeCommand | RemoveMergeCommand
|
|
635
|
+
/** SHEETS MANIPULATION */
|
|
636
|
+
| CreateSheetCommand | DeleteSheetCommand | DuplicateSheetCommand | MoveSheetCommand | RenameSheetCommand | ColorSheetCommand | HideSheetCommand | ShowSheetCommand
|
|
637
|
+
/** RANGES MANIPULATION */
|
|
638
|
+
| MoveRangeCommand
|
|
639
|
+
/** CONDITIONAL FORMAT */
|
|
640
|
+
| AddConditionalFormatCommand | RemoveConditionalFormatCommand | MoveConditionalFormatCommand
|
|
641
|
+
/** FIGURES */
|
|
642
|
+
| CreateFigureCommand | DeleteFigureCommand | UpdateFigureCommand
|
|
643
|
+
/** FORMATTING */
|
|
644
|
+
| SetFormattingCommand | ClearFormattingCommand | SetZoneBordersCommand | SetBorderCommand | SetBorderTargetCommand
|
|
645
|
+
/** CHART */
|
|
646
|
+
| CreateChartCommand | UpdateChartCommand
|
|
647
|
+
/** IMAGE */
|
|
648
|
+
| CreateImageOverCommand
|
|
649
|
+
/** FILTERS */
|
|
650
|
+
| CreateTableCommand | RemoveTableCommand | UpdateTableCommand | CreateTableStyleCommand | RemoveTableStyleCommand
|
|
651
|
+
/** HEADER GROUP */
|
|
652
|
+
| GroupHeadersCommand | UnGroupHeadersCommand | UnfoldHeaderGroupCommand | FoldHeaderGroupCommand | FoldAllHeaderGroupsCommand | UnfoldAllHeaderGroupsCommand | UnfoldHeaderGroupsInZoneCommand | FoldHeaderGroupsInZoneCommand
|
|
653
|
+
/** DATA VALIDATION */
|
|
654
|
+
| AddDataValidationCommand | RemoveDataValidationCommand
|
|
655
|
+
/** MISC */
|
|
656
|
+
| UpdateLocaleCommand
|
|
657
|
+
/** PIVOT */
|
|
658
|
+
| AddPivotCommand | UpdatePivotCommand | InsertPivotCommand | RenamePivotCommand | RemovePivotCommand | DuplicatePivotCommand;
|
|
659
|
+
export type LocalCommand = RequestUndoCommand | RequestRedoCommand | UndoCommand | RedoCommand | CopyCommand | CutCommand | PasteCommand | CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | RepeatPasteCommand | CleanClipBoardHighlightCommand | AutoFillCellCommand | PasteFromOSClipboardCommand | AutoresizeColumnsCommand | AutoresizeRowsCommand | MoveColumnsRowsCommand | ActivateSheetCommand | EvaluateCellsCommand | StartChangeHighlightCommand | StartCommand | AutofillCommand | AutofillSelectCommand | AutofillTableCommand | ShowFormulaCommand | AutofillAutoCommand | SelectFigureCommand | ReplaceSearchCommand | SortCommand | SetDecimalCommand | SetContextualFormatCommand | ResizeViewportCommand | SumSelectionCommand | DeleteCellCommand | InsertCellCommand | SetViewportOffsetCommand | MoveViewportDownCommand | MoveViewportUpCommand | MoveViewportToCellCommand | ActivateNextSheetCommand | ActivatePreviousSheetCommand | UpdateFilterCommand | SplitTextIntoColumnsCommand | RemoveDuplicatesCommand | TrimWhitespaceCommand | ResizeTableCommand | RefreshPivotCommand | InsertNewPivotCommand | DuplicatePivotInNewSheetCommand | InsertPivotWithTableCommand | SplitPivotFormulaCommand | PaintFormat | PivotStartPresenceTracking | PivotStopPresenceTracking;
|
|
660
|
+
export type Command = CoreCommand | LocalCommand;
|
|
661
|
+
/**
|
|
662
|
+
* Holds the result of a command dispatch.
|
|
663
|
+
* The command may have been successfully dispatched or cancelled
|
|
664
|
+
* for one or more reasons.
|
|
665
|
+
*/
|
|
666
|
+
export declare class DispatchResult {
|
|
667
|
+
readonly reasons: CancelledReason[];
|
|
668
|
+
constructor(results?: CommandResult | CommandResult[]);
|
|
669
|
+
/**
|
|
670
|
+
* Static helper which returns a successful DispatchResult
|
|
671
|
+
*/
|
|
672
|
+
static get Success(): DispatchResult;
|
|
673
|
+
get isSuccessful(): boolean;
|
|
674
|
+
/**
|
|
675
|
+
* Check if the dispatch has been cancelled because of
|
|
676
|
+
* the given reason.
|
|
677
|
+
*/
|
|
678
|
+
isCancelledBecause(reason: CancelledReason): boolean;
|
|
679
|
+
}
|
|
680
|
+
export type CancelledReason = Exclude<CommandResult, CommandResult.Success>;
|
|
681
|
+
export declare const enum CommandResult {
|
|
682
|
+
Success = "Success",
|
|
683
|
+
CancelledForUnknownReason = "CancelledForUnknownReason",
|
|
684
|
+
WillRemoveExistingMerge = "WillRemoveExistingMerge",
|
|
685
|
+
CannotMoveTableHeader = "CannotMoveTableHeader",
|
|
686
|
+
MergeIsDestructive = "MergeIsDestructive",
|
|
687
|
+
CellIsMerged = "CellIsMerged",
|
|
688
|
+
InvalidTarget = "InvalidTarget",
|
|
689
|
+
EmptyUndoStack = "EmptyUndoStack",
|
|
690
|
+
EmptyRedoStack = "EmptyRedoStack",
|
|
691
|
+
NotEnoughElements = "NotEnoughElements",
|
|
692
|
+
NotEnoughSheets = "NotEnoughSheets",
|
|
693
|
+
MissingSheetName = "MissingSheetName",
|
|
694
|
+
UnchangedSheetName = "UnchangedSheetName",
|
|
695
|
+
DuplicatedSheetName = "DuplicatedSheetName",
|
|
696
|
+
DuplicatedSheetId = "DuplicatedSheetId",
|
|
697
|
+
ForbiddenCharactersInSheetName = "ForbiddenCharactersInSheetName",
|
|
698
|
+
WrongSheetMove = "WrongSheetMove",
|
|
699
|
+
WrongSheetPosition = "WrongSheetPosition",
|
|
700
|
+
InvalidAnchorZone = "InvalidAnchorZone",
|
|
701
|
+
SelectionOutOfBound = "SelectionOutOfBound",
|
|
702
|
+
TargetOutOfSheet = "TargetOutOfSheet",
|
|
703
|
+
WrongCutSelection = "WrongCutSelection",
|
|
704
|
+
WrongPasteSelection = "WrongPasteSelection",
|
|
705
|
+
WrongPasteOption = "WrongPasteOption",
|
|
706
|
+
WrongFigurePasteOption = "WrongFigurePasteOption",
|
|
707
|
+
EmptyClipboard = "EmptyClipboard",
|
|
708
|
+
EmptyRange = "EmptyRange",
|
|
709
|
+
InvalidRange = "InvalidRange",
|
|
710
|
+
InvalidZones = "InvalidZones",
|
|
711
|
+
InvalidSheetId = "InvalidSheetId",
|
|
712
|
+
InvalidCellId = "InvalidCellId",
|
|
713
|
+
InvalidFigureId = "InvalidFigureId",
|
|
714
|
+
InputAlreadyFocused = "InputAlreadyFocused",
|
|
715
|
+
MaximumRangesReached = "MaximumRangesReached",
|
|
716
|
+
MinimumRangesReached = "MinimumRangesReached",
|
|
717
|
+
InvalidChartDefinition = "InvalidChartDefinition",
|
|
718
|
+
InvalidDataSet = "InvalidDataSet",
|
|
719
|
+
InvalidLabelRange = "InvalidLabelRange",
|
|
720
|
+
InvalidScorecardKeyValue = "InvalidScorecardKeyValue",
|
|
721
|
+
InvalidScorecardBaseline = "InvalidScorecardBaseline",
|
|
722
|
+
InvalidGaugeDataRange = "InvalidGaugeDataRange",
|
|
723
|
+
EmptyGaugeRangeMin = "EmptyGaugeRangeMin",
|
|
724
|
+
GaugeRangeMinNaN = "GaugeRangeMinNaN",
|
|
725
|
+
EmptyGaugeRangeMax = "EmptyGaugeRangeMax",
|
|
726
|
+
GaugeRangeMaxNaN = "GaugeRangeMaxNaN",
|
|
727
|
+
GaugeRangeMinBiggerThanRangeMax = "GaugeRangeMinBiggerThanRangeMax",
|
|
728
|
+
GaugeLowerInflectionPointNaN = "GaugeLowerInflectionPointNaN",
|
|
729
|
+
GaugeUpperInflectionPointNaN = "GaugeUpperInflectionPointNaN",
|
|
730
|
+
GaugeLowerBiggerThanUpper = "GaugeLowerBiggerThanUpper",
|
|
731
|
+
InvalidAutofillSelection = "InvalidAutofillSelection",
|
|
732
|
+
MinBiggerThanMax = "MinBiggerThanMax",
|
|
733
|
+
LowerBiggerThanUpper = "LowerBiggerThanUpper",
|
|
734
|
+
MidBiggerThanMax = "MidBiggerThanMax",
|
|
735
|
+
MinBiggerThanMid = "MinBiggerThanMid",
|
|
736
|
+
FirstArgMissing = "FirstArgMissing",
|
|
737
|
+
SecondArgMissing = "SecondArgMissing",
|
|
738
|
+
MinNaN = "MinNaN",
|
|
739
|
+
MidNaN = "MidNaN",
|
|
740
|
+
MaxNaN = "MaxNaN",
|
|
741
|
+
ValueUpperInflectionNaN = "ValueUpperInflectionNaN",
|
|
742
|
+
ValueLowerInflectionNaN = "ValueLowerInflectionNaN",
|
|
743
|
+
MinInvalidFormula = "MinInvalidFormula",
|
|
744
|
+
MidInvalidFormula = "MidInvalidFormula",
|
|
745
|
+
MaxInvalidFormula = "MaxInvalidFormula",
|
|
746
|
+
ValueUpperInvalidFormula = "ValueUpperInvalidFormula",
|
|
747
|
+
ValueLowerInvalidFormula = "ValueLowerInvalidFormula",
|
|
748
|
+
InvalidSortZone = "InvalidSortZone",
|
|
749
|
+
WaitingSessionConfirmation = "WaitingSessionConfirmation",
|
|
750
|
+
MergeOverlap = "MergeOverlap",
|
|
751
|
+
TooManyHiddenElements = "TooManyHiddenElements",
|
|
752
|
+
Readonly = "Readonly",
|
|
753
|
+
InvalidViewportSize = "InvalidViewportSize",
|
|
754
|
+
InvalidScrollingDirection = "InvalidScrollingDirection",
|
|
755
|
+
ViewportScrollLimitsReached = "ViewportScrollLimitsReached",
|
|
756
|
+
FigureDoesNotExist = "FigureDoesNotExist",
|
|
757
|
+
InvalidConditionalFormatId = "InvalidConditionalFormatId",
|
|
758
|
+
InvalidConditionalFormatType = "InvalidConditionalFormatType",
|
|
759
|
+
InvalidCellPopover = "InvalidCellPopover",
|
|
760
|
+
EmptyTarget = "EmptyTarget",
|
|
761
|
+
InvalidFreezeQuantity = "InvalidFreezeQuantity",
|
|
762
|
+
FrozenPaneOverlap = "FrozenPaneOverlap",
|
|
763
|
+
ValuesNotChanged = "ValuesNotChanged",
|
|
764
|
+
InvalidFilterZone = "InvalidFilterZone",
|
|
765
|
+
TableNotFound = "TableNotFound",
|
|
766
|
+
TableOverlap = "TableOverlap",
|
|
767
|
+
InvalidTableConfig = "InvalidTableConfig",
|
|
768
|
+
InvalidTableStyle = "InvalidTableStyle",
|
|
769
|
+
FilterNotFound = "FilterNotFound",
|
|
770
|
+
MergeInTable = "MergeInTable",
|
|
771
|
+
NonContinuousTargets = "NonContinuousTargets",
|
|
772
|
+
DuplicatedFigureId = "DuplicatedFigureId",
|
|
773
|
+
InvalidSelectionStep = "InvalidSelectionStep",
|
|
774
|
+
DuplicatedChartId = "DuplicatedChartId",
|
|
775
|
+
ChartDoesNotExist = "ChartDoesNotExist",
|
|
776
|
+
InvalidHeaderIndex = "InvalidHeaderIndex",
|
|
777
|
+
InvalidQuantity = "InvalidQuantity",
|
|
778
|
+
MoreThanOneColumnSelected = "MoreThanOneColumnSelected",
|
|
779
|
+
EmptySplitSeparator = "EmptySplitSeparator",
|
|
780
|
+
SplitWillOverwriteContent = "SplitWillOverwriteContent",
|
|
781
|
+
NoSplitSeparatorInSelection = "NoSplitSeparatorInSelection",
|
|
782
|
+
NoActiveSheet = "NoActiveSheet",
|
|
783
|
+
InvalidLocale = "InvalidLocale",
|
|
784
|
+
MoreThanOneRangeSelected = "MoreThanOneRangeSelected",
|
|
785
|
+
NoColumnsProvided = "NoColumnsProvided",
|
|
786
|
+
ColumnsNotIncludedInZone = "ColumnsNotIncludedInZone",
|
|
787
|
+
DuplicatesColumnsSelected = "DuplicatesColumnsSelected",
|
|
788
|
+
InvalidHeaderGroupStartEnd = "InvalidHeaderGroupStartEnd",
|
|
789
|
+
HeaderGroupAlreadyExists = "HeaderGroupAlreadyExists",
|
|
790
|
+
UnknownHeaderGroup = "UnknownHeaderGroup",
|
|
791
|
+
UnknownDataValidationRule = "UnknownDataValidationRule",
|
|
792
|
+
UnknownDataValidationCriterionType = "UnknownDataValidationCriterionType",
|
|
793
|
+
InvalidDataValidationCriterionValue = "InvalidDataValidationCriterionValue",
|
|
794
|
+
InvalidNumberOfCriterionValues = "InvalidNumberOfCriterionValues",
|
|
795
|
+
InvalidCopyPasteSelection = "InvalidCopyPasteSelection",
|
|
796
|
+
NoChanges = "NoChanges",
|
|
797
|
+
InvalidInputId = "InvalidInputId",
|
|
798
|
+
SheetIsHidden = "SheetIsHidden",
|
|
799
|
+
InvalidTableResize = "InvalidTableResize",
|
|
800
|
+
PivotIdNotFound = "PivotIdNotFound",
|
|
801
|
+
PivotInError = "PivotInError",
|
|
802
|
+
EmptyName = "EmptyName",
|
|
803
|
+
ValueCellIsInvalidFormula = "ValueCellIsInvalidFormula",
|
|
804
|
+
InvalidDefinition = "InvalidDefinition",
|
|
805
|
+
InvalidColor = "InvalidColor",
|
|
806
|
+
InvalidPivotDataSet = "InvalidPivotDataSet"
|
|
807
|
+
}
|
|
808
|
+
export interface CommandHandler<T> {
|
|
809
|
+
allowDispatch(command: T): CommandResult | CommandResult[];
|
|
810
|
+
beforeHandle(command: T): void;
|
|
811
|
+
handle(command: T): void;
|
|
812
|
+
finalize(): void;
|
|
813
|
+
}
|
|
814
|
+
export interface CommandDispatcher {
|
|
815
|
+
dispatch<T extends CommandTypes, C extends Extract<Command, {
|
|
816
|
+
type: T;
|
|
817
|
+
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
818
|
+
dispatch<T extends CommandTypes, C extends Extract<Command, {
|
|
819
|
+
type: T;
|
|
820
|
+
}>>(type: T, r: Omit<C, "type">): DispatchResult;
|
|
821
|
+
}
|
|
822
|
+
export interface CoreCommandDispatcher {
|
|
823
|
+
dispatch<T extends CoreCommandTypes, C extends Extract<CoreCommand, {
|
|
824
|
+
type: T;
|
|
825
|
+
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
826
|
+
dispatch<T extends CoreCommandTypes, C extends Extract<CoreCommand, {
|
|
827
|
+
type: T;
|
|
828
|
+
}>>(type: T, r: Omit<C, "type">): DispatchResult;
|
|
829
|
+
}
|
|
830
|
+
export type CommandTypes = Command["type"];
|
|
831
|
+
export type CoreCommandTypes = CoreCommand["type"];
|
|
832
|
+
export type CoreViewCommand = CoreCommand | EvaluateCellsCommand | UndoCommand | RedoCommand;
|
|
833
|
+
export type CoreViewCommandTypes = CoreViewCommand["type"];
|