@odoo/o-spreadsheet 17.0.85 → 17.0.96
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 +45990 -53385
- package/dist/o-spreadsheet.esm.js +45805 -53384
- package/dist/o-spreadsheet.iife.js +50220 -57798
- package/dist/o-spreadsheet.iife.min.js +534 -505
- package/dist/o_spreadsheet.xml +3 -3
- package/dist/types/actions/action.d.ts +73 -0
- package/dist/types/actions/data_actions.d.ts +9 -0
- package/dist/types/actions/edit_actions.d.ts +21 -0
- package/dist/types/actions/format_actions.d.ts +45 -0
- package/dist/types/actions/insert_actions.d.ts +28 -0
- package/dist/types/actions/menu_items_actions.d.ts +32 -0
- package/dist/types/actions/sheet_actions.d.ts +10 -0
- package/dist/types/actions/view_actions.d.ts +28 -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 +100 -0
- package/dist/types/components/action_button/action_button.d.ts +23 -0
- package/dist/types/components/animation/ripple.d.ts +53 -0
- package/dist/types/components/autofill/autofill.d.ts +25 -0
- package/dist/types/components/border_editor/border_editor.d.ts +41 -0
- package/dist/types/components/border_editor/border_editor_widget.d.ts +31 -0
- package/dist/types/components/bottom_bar/bottom_bar.d.ts +56 -0
- package/dist/types/components/bottom_bar_sheet/bottom_bar_sheet.d.ts +44 -0
- package/dist/types/components/bottom_bar_statistic/bottom_bar_statistic.d.ts +21 -0
- package/dist/types/components/collaborative_client_tag/collaborative_client_tag.d.ts +14 -0
- package/dist/types/components/color_picker/color_picker.d.ts +41 -0
- package/dist/types/components/color_picker/color_picker_widget.d.ts +27 -0
- package/dist/types/components/composer/autocomplete_dropdown/autocomplete_dropdown.d.ts +15 -0
- package/dist/types/components/composer/composer/composer.d.ts +135 -0
- package/dist/types/components/composer/content_editable_helper.d.ts +60 -0
- package/dist/types/components/composer/formula_assistant/formula_assistant.d.ts +20 -0
- package/dist/types/components/composer/grid_composer/grid_composer.d.ts +39 -0
- package/dist/types/components/composer/top_bar_composer/top_bar_composer.d.ts +18 -0
- package/dist/types/components/dashboard/dashboard.d.ts +50 -0
- package/dist/types/components/data_validation_overlay/data_validation_overlay.d.ts +15 -0
- package/dist/types/components/data_validation_overlay/dv_checkbox/dv_checkbox.d.ts +12 -0
- package/dist/types/components/data_validation_overlay/dv_list_icon/dv_list_icon.d.ts +10 -0
- package/dist/types/components/error_tooltip/error_tooltip.d.ts +18 -0
- package/dist/types/components/figures/chart/chartJs/chartjs.d.ts +18 -0
- package/dist/types/components/figures/chart/scorecard/chart_scorecard.d.ts +14 -0
- package/dist/types/components/figures/figure/figure.d.ts +41 -0
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +14 -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 +13 -0
- package/dist/types/components/filters/filter_icon/filter_icon.d.ts +12 -0
- package/dist/types/components/filters/filter_icons_overlay/filter_icons_overlay.d.ts +22 -0
- package/dist/types/components/filters/filter_menu/filter_menu.d.ts +43 -0
- package/dist/types/components/filters/filter_menu_item/filter_menu_value_item.d.ts +17 -0
- package/dist/types/components/font_size_editor/font_size_editor.d.ts +29 -0
- package/dist/types/components/grid/grid.d.ts +99 -0
- package/dist/types/components/grid_add_rows_footer/grid_add_rows_footer.d.ts +27 -0
- package/dist/types/components/grid_cell_icon/grid_cell_icon.d.ts +16 -0
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +45 -0
- package/dist/types/components/grid_popover/grid_popover.d.ts +20 -0
- package/dist/types/components/header_group/header_group.d.ts +41 -0
- package/dist/types/components/header_group/header_group_container.d.ts +29 -0
- package/dist/types/components/headers_overlay/headers_overlay.d.ts +117 -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/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 +10 -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 +9 -0
- package/dist/types/components/helpers/wheel_hook.d.ts +1 -0
- package/dist/types/components/highlight/border/border.d.ts +15 -0
- package/dist/types/components/highlight/corner/corner.d.ts +18 -0
- package/dist/types/components/highlight/highlight/highlight.d.ts +22 -0
- package/dist/types/components/icon_picker/icon_picker.d.ts +65 -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 +21 -0
- package/dist/types/components/link/link_editor/link_editor.d.ts +39 -0
- package/dist/types/components/menu/menu.d.ts +58 -0
- package/dist/types/components/paint_format_button/paint_format_button.d.ts +12 -0
- package/dist/types/components/popover/popover.d.ts +40 -0
- package/dist/types/components/scrollbar/index.d.ts +2 -0
- package/dist/types/components/scrollbar/scrollbar.d.ts +25 -0
- package/dist/types/components/scrollbar/scrollbar_horizontal.d.ts +26 -0
- package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +26 -0
- package/dist/types/components/scrollbar.d.ts +9 -0
- package/dist/types/components/selection_input/selection_input.d.ts +54 -0
- package/dist/types/components/side_panel/chart/bar_chart/bar_chart_config_panel.d.ts +6 -0
- package/dist/types/components/side_panel/chart/bar_chart/bar_chart_design_panel.d.ts +4 -0
- package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_config_panel.d.ts +26 -0
- package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_design_panel.d.ts +34 -0
- package/dist/types/components/side_panel/chart/index.d.ts +17 -0
- package/dist/types/components/side_panel/chart/line_bar_pie_panel/config_panel.d.ts +45 -0
- package/dist/types/components/side_panel/chart/line_bar_pie_panel/design_panel.d.ts +26 -0
- package/dist/types/components/side_panel/chart/line_chart/line_chart_config_panel.d.ts +9 -0
- package/dist/types/components/side_panel/chart/line_chart/line_chart_design_panel.d.ts +4 -0
- package/dist/types/components/side_panel/chart/main_chart_panel/main_chart_panel.d.ts +20 -0
- package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_config_panel.d.ts +32 -0
- package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_design_panel.d.ts +26 -0
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/cf_editor.d.ts +137 -0
- package/dist/types/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.d.ts +58 -0
- package/dist/types/components/side_panel/conditional_formatting/conditional_formatting.d.ts +23 -0
- package/dist/types/components/side_panel/custom_currency/custom_currency.d.ts +27 -0
- package/dist/types/components/side_panel/data_validation/data_validation_panel.d.ts +25 -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 +11 -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 +30 -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 +34 -0
- package/dist/types/components/side_panel/data_validation/dv_preview/dv_preview.d.ts +13 -0
- package/dist/types/components/side_panel/find_and_replace/find_and_replace.d.ts +27 -0
- package/dist/types/components/side_panel/more_formats/more_formats.d.ts +10 -0
- package/dist/types/components/side_panel/remove_duplicates/remove_duplicates.d.ts +32 -0
- package/dist/types/components/side_panel/select_menu/select_menu.d.ts +29 -0
- package/dist/types/components/side_panel/settings/settings_panel.d.ts +18 -0
- package/dist/types/components/side_panel/side_panel/side_panel.d.ts +18 -0
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +35 -0
- package/dist/types/components/spreadsheet/spreadsheet.d.ts +64 -0
- package/dist/types/components/top_bar/top_bar.d.ts +65 -0
- package/dist/types/components/translations_terms.d.ts +104 -0
- package/dist/types/components/validation_messages/validation_messages.d.ts +11 -0
- package/dist/types/constants.d.ts +137 -0
- package/dist/types/formulas/code_builder.d.ts +28 -0
- package/dist/types/formulas/compiler.d.ts +7 -0
- package/dist/types/formulas/composer_tokenizer.d.ts +31 -0
- package/dist/types/formulas/helpers.d.ts +2 -0
- package/dist/types/formulas/index.d.ts +16 -0
- package/dist/types/formulas/parser.d.ts +72 -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 +49 -0
- package/dist/types/functions/helper_matrices.d.ts +23 -0
- package/dist/types/functions/helper_statistical.d.ts +3 -0
- package/dist/types/functions/helpers.d.ts +101 -0
- package/dist/types/functions/index.d.ts +10 -0
- package/dist/types/functions/module_array.d.ts +141 -0
- package/dist/types/functions/module_custom.d.ts +8 -0
- package/dist/types/functions/module_database.d.ts +85 -0
- package/dist/types/functions/module_date.d.ts +231 -0
- package/dist/types/functions/module_engineering.d.ts +8 -0
- package/dist/types/functions/module_filter.d.ts +17 -0
- package/dist/types/functions/module_financial.d.ts +358 -0
- package/dist/types/functions/module_info.d.ts +64 -0
- package/dist/types/functions/module_logical.d.ts +59 -0
- package/dist/types/functions/module_lookup.d.ts +72 -0
- package/dist/types/functions/module_math.d.ts +424 -0
- package/dist/types/functions/module_operators.d.ts +98 -0
- package/dist/types/functions/module_statistical.d.ts +296 -0
- package/dist/types/functions/module_text.d.ts +147 -0
- package/dist/types/functions/module_web.d.ts +8 -0
- package/dist/types/helpers/cells/cell_evaluation.d.ts +6 -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_abstract_cell_state.d.ts +26 -0
- package/dist/types/helpers/clipboard/clipboard_cells_state.d.ts +70 -0
- package/dist/types/helpers/clipboard/clipboard_figure_state.d.ts +41 -0
- package/dist/types/helpers/clipboard/clipboard_os_state.d.ts +12 -0
- package/dist/types/helpers/clipboard/navigator_clipboard_wrapper.d.ts +13 -0
- package/dist/types/helpers/color.d.ts +68 -0
- package/dist/types/helpers/coordinates.d.ts +40 -0
- package/dist/types/helpers/data_validation_helpers.d.ts +5 -0
- package/dist/types/helpers/dates.d.ts +90 -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 +29 -0
- package/dist/types/helpers/figures/charts/chart_common.d.ts +62 -0
- package/dist/types/helpers/figures/charts/chart_factory.d.ts +40 -0
- package/dist/types/helpers/figures/charts/chart_js_gauge_controller.d.ts +1 -0
- package/dist/types/helpers/figures/charts/chart_ui_common.d.ts +41 -0
- package/dist/types/helpers/figures/charts/gauge_chart.d.ts +23 -0
- package/dist/types/helpers/figures/charts/index.d.ts +10 -0
- package/dist/types/helpers/figures/charts/line_chart.d.ts +32 -0
- package/dist/types/helpers/figures/charts/pie_chart.d.ts +27 -0
- package/dist/types/helpers/figures/charts/scorecard_chart.d.ts +30 -0
- package/dist/types/helpers/figures/charts/scorecard_chart_config_builder.d.ts +35 -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/filters.d.ts +19 -0
- package/dist/types/helpers/focus_manager.d.ts +5 -0
- package/dist/types/helpers/format.d.ts +32 -0
- package/dist/types/helpers/index.d.ts +15 -0
- package/dist/types/helpers/internal_viewport.d.ts +83 -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 +178 -0
- package/dist/types/helpers/numbers.d.ts +25 -0
- package/dist/types/helpers/range.d.ts +59 -0
- package/dist/types/helpers/recompute_zones.d.ts +136 -0
- package/dist/types/helpers/rectangle.d.ts +7 -0
- package/dist/types/helpers/reference_type.d.ts +9 -0
- package/dist/types/helpers/references.d.ts +23 -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/text_helper.d.ts +28 -0
- package/dist/types/helpers/ui/cut_interactive.d.ts +2 -0
- package/dist/types/helpers/ui/filter_interactive.d.ts +7 -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/stop_edition_interactive.d.ts +2 -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 +173 -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 +6 -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 +81 -0
- package/dist/types/history/tree.d.ts +175 -0
- package/dist/types/index.d.ts +189 -0
- package/dist/types/migrations/data.d.ts +30 -0
- package/dist/types/migrations/legacy_tools.d.ts +15 -0
- package/dist/types/model.d.ts +192 -0
- package/dist/types/plugins/base_plugin.d.ts +63 -0
- package/dist/types/plugins/core/borders.d.ts +127 -0
- package/dist/types/plugins/core/cell.d.ts +103 -0
- package/dist/types/plugins/core/chart.d.ts +41 -0
- package/dist/types/plugins/core/conditional_format.d.ts +52 -0
- package/dist/types/plugins/core/data_validation.d.ts +31 -0
- package/dist/types/plugins/core/figures.d.ts +34 -0
- package/dist/types/plugins/core/filters.d.ts +43 -0
- package/dist/types/plugins/core/header_grouping.d.ts +82 -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 +83 -0
- package/dist/types/plugins/core/range.d.ts +59 -0
- package/dist/types/plugins/core/settings.d.ts +12 -0
- package/dist/types/plugins/core/sheet.d.ts +151 -0
- package/dist/types/plugins/core_plugin.d.ts +49 -0
- package/dist/types/plugins/index.d.ts +7 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/compilation_parameters.d.ts +10 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/evaluation_plugin.d.ts +43 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/evaluator.d.ts +90 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/formula_dependency_graph.d.ts +23 -0
- package/dist/types/plugins/ui_core_views/cell_evaluation/index.d.ts +1 -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 +60 -0
- package/dist/types/plugins/ui_core_views/custom_colors.d.ts +24 -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 +37 -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_feature/autofill.d.ts +60 -0
- package/dist/types/plugins/ui_feature/automatic_sum.d.ts +101 -0
- package/dist/types/plugins/ui_feature/cell_popovers.d.ts +16 -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/find_and_replace.d.ts +76 -0
- package/dist/types/plugins/ui_feature/format.d.ts +23 -0
- package/dist/types/plugins/ui_feature/header_visibility_ui.d.ts +21 -0
- package/dist/types/plugins/ui_feature/highlight.d.ts +12 -0
- package/dist/types/plugins/ui_feature/index.d.ts +15 -0
- package/dist/types/plugins/ui_feature/local_history.d.ts +36 -0
- package/dist/types/plugins/ui_feature/renderer.d.ts +45 -0
- package/dist/types/plugins/ui_feature/selection_input.d.ts +67 -0
- package/dist/types/plugins/ui_feature/selection_inputs_manager.d.ts +33 -0
- package/dist/types/plugins/ui_feature/sort.d.ts +75 -0
- package/dist/types/plugins/ui_feature/split_to_columns.d.ts +21 -0
- package/dist/types/plugins/ui_feature/ui_options.d.ts +8 -0
- package/dist/types/plugins/ui_feature/ui_sheet.d.ts +30 -0
- package/dist/types/plugins/ui_plugin.d.ts +36 -0
- package/dist/types/plugins/ui_stateful/clipboard.d.ts +43 -0
- package/dist/types/plugins/ui_stateful/edition.d.ts +117 -0
- package/dist/types/plugins/ui_stateful/filter_evaluation.d.ts +26 -0
- package/dist/types/plugins/ui_stateful/header_positions.d.ts +28 -0
- package/dist/types/plugins/ui_stateful/index.d.ts +5 -0
- package/dist/types/plugins/ui_stateful/selection.d.ts +78 -0
- package/dist/types/plugins/ui_stateful/sheetview.d.ts +164 -0
- package/dist/types/registries/autofill_modifiers.d.ts +7 -0
- package/dist/types/registries/autofill_rules.d.ts +15 -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 +28 -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/figure_registry.d.ts +18 -0
- package/dist/types/registries/index.d.ts +11 -0
- package/dist/types/registries/inverse_command_registry.d.ts +5 -0
- package/dist/types/registries/menu_items_registry.d.ts +19 -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 +4 -0
- package/dist/types/registries/menus/row_menu_registry.d.ts +2 -0
- package/dist/types/registries/menus/sheet_menu_registry.d.ts +4 -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 +20 -0
- package/dist/types/registries/side_panel_registry.d.ts +8 -0
- package/dist/types/registries/topbar_component_registry.d.ts +18 -0
- package/dist/types/selection_stream/event_stream.d.ts +64 -0
- package/dist/types/selection_stream/selection_stream_processor.d.ts +167 -0
- package/dist/types/state_observer.d.ts +15 -0
- package/dist/types/translation.d.ts +21 -0
- package/dist/types/types/autofill.d.ts +62 -0
- package/dist/types/types/cell_popovers.d.ts +44 -0
- package/dist/types/types/cells.d.ts +64 -0
- package/dist/types/types/chart/bar_chart.d.ts +19 -0
- package/dist/types/types/chart/chart.d.ts +48 -0
- package/dist/types/types/chart/common_chart.d.ts +2 -0
- package/dist/types/types/chart/gauge_chart.d.ts +73 -0
- package/dist/types/types/chart/index.d.ts +7 -0
- package/dist/types/types/chart/line_chart.d.ts +21 -0
- package/dist/types/types/chart/pie_chart.d.ts +17 -0
- package/dist/types/types/chart/scorecard_chart.d.ts +26 -0
- package/dist/types/types/clipboard.d.ts +31 -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 +873 -0
- package/dist/types/types/conditional_formatting.d.ts +103 -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 +33 -0
- package/dist/types/types/errors.d.ts +33 -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 +14 -0
- package/dist/types/types/files.d.ts +27 -0
- package/dist/types/types/format.d.ts +8 -0
- package/dist/types/types/functions.d.ts +49 -0
- package/dist/types/types/getters.d.ts +101 -0
- package/dist/types/types/history.d.ts +43 -0
- package/dist/types/types/image.d.ts +12 -0
- package/dist/types/types/index.d.ts +30 -0
- package/dist/types/types/locale.d.ts +13 -0
- package/dist/types/types/misc.d.ts +276 -0
- package/dist/types/types/range.d.ts +21 -0
- package/dist/types/types/rendering.d.ts +86 -0
- package/dist/types/types/validator.d.ts +16 -0
- package/dist/types/types/workbook_data.d.ts +112 -0
- package/dist/types/types/xlsx.d.ts +441 -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 +24 -0
- package/dist/types/xlsx/conversion/conversion_maps.d.ts +167 -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 +14 -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 +11 -0
- package/dist/types/xlsx/extraction/external_book_extractor.d.ts +6 -0
- package/dist/types/xlsx/extraction/figure_extractor.d.ts +8 -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 +8 -0
- package/dist/types/xlsx/extraction/sheet_extractor.d.ts +23 -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/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 +9 -0
- package/dist/types/xlsx/helpers/colors.d.ts +8 -0
- package/dist/types/xlsx/helpers/content_helpers.d.ts +48 -0
- package/dist/types/xlsx/helpers/misc.d.ts +29 -0
- package/dist/types/xlsx/helpers/xlsx_helper.d.ts +10 -0
- package/dist/types/xlsx/helpers/xlsx_parser_error_manager.d.ts +34 -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 +8 -0
- package/package.json +42 -25
- package/dist/o-spreadsheet.d.ts +0 -8046
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { SpreadsheetChildEnv } from "../../types";
|
|
3
|
+
interface Props {
|
|
4
|
+
class?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class PaintFormatButton extends Component<Props, SpreadsheetChildEnv> {
|
|
7
|
+
static template: string;
|
|
8
|
+
get isActive(): boolean;
|
|
9
|
+
onDblClick(): void;
|
|
10
|
+
togglePaintFormat(): void;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { ComponentsImportance } from "../../constants";
|
|
3
|
+
import { Pixel, Rect, SpreadsheetChildEnv } from "../../types";
|
|
4
|
+
import { PopoverPropsPosition } from "../../types/cell_popovers";
|
|
5
|
+
export interface PopoverProps {
|
|
6
|
+
/**
|
|
7
|
+
* Rectangle around which the popover is displayed.
|
|
8
|
+
* Coordinates are expressed as absolute DOM position.
|
|
9
|
+
*/
|
|
10
|
+
anchorRect: Rect;
|
|
11
|
+
/** The popover can be positioned below the anchor Rectangle, or to the right of the rectangle */
|
|
12
|
+
positioning: PopoverPropsPosition;
|
|
13
|
+
maxWidth?: Pixel;
|
|
14
|
+
maxHeight?: Pixel;
|
|
15
|
+
/** Offset to apply to the vertical position of the popover.*/
|
|
16
|
+
verticalOffset: number;
|
|
17
|
+
onMouseWheel?: () => void;
|
|
18
|
+
onPopoverMoved?: () => void;
|
|
19
|
+
onPopoverHidden?: () => void;
|
|
20
|
+
/** Setting popover to allow dynamic zIndex */
|
|
21
|
+
zIndex?: Number;
|
|
22
|
+
}
|
|
23
|
+
export declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
|
|
24
|
+
static template: string;
|
|
25
|
+
static defaultProps: {
|
|
26
|
+
positioning: string;
|
|
27
|
+
verticalOffset: number;
|
|
28
|
+
onMouseWheel: () => void;
|
|
29
|
+
onPopoverMoved: () => void;
|
|
30
|
+
onPopoverHidden: () => void;
|
|
31
|
+
zIndex: ComponentsImportance;
|
|
32
|
+
};
|
|
33
|
+
private popoverRef;
|
|
34
|
+
private currentPosition;
|
|
35
|
+
private currentDisplayValue;
|
|
36
|
+
private spreadsheetRect;
|
|
37
|
+
private containerRect;
|
|
38
|
+
setup(): void;
|
|
39
|
+
get popoverStyle(): string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { CSSProperties, Pixel } from "../../types";
|
|
3
|
+
import { ScrollDirection } from "../scrollbar";
|
|
4
|
+
interface Props {
|
|
5
|
+
width: Pixel;
|
|
6
|
+
height: Pixel;
|
|
7
|
+
direction: ScrollDirection;
|
|
8
|
+
position: CSSProperties;
|
|
9
|
+
offset: Pixel;
|
|
10
|
+
onScroll: (offset: Pixel) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare class ScrollBar extends Component<Props> {
|
|
13
|
+
static template: string;
|
|
14
|
+
static defaultProps: {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
};
|
|
18
|
+
private scrollbarRef;
|
|
19
|
+
private scrollbar;
|
|
20
|
+
setup(): void;
|
|
21
|
+
get sizeCss(): string;
|
|
22
|
+
get positionCss(): string;
|
|
23
|
+
onScroll(ev: any): void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { SpreadsheetChildEnv } from "../../types";
|
|
3
|
+
import { ScrollBar } from "./scrollbar";
|
|
4
|
+
interface Props {
|
|
5
|
+
leftOffset: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class HorizontalScrollBar extends Component<Props, SpreadsheetChildEnv> {
|
|
8
|
+
static components: {
|
|
9
|
+
ScrollBar: typeof ScrollBar;
|
|
10
|
+
};
|
|
11
|
+
static template: string;
|
|
12
|
+
static defaultProps: {
|
|
13
|
+
leftOffset: number;
|
|
14
|
+
};
|
|
15
|
+
get offset(): import("../../types").Pixel;
|
|
16
|
+
get width(): import("../../types").Pixel;
|
|
17
|
+
get isDisplayed(): boolean;
|
|
18
|
+
get position(): {
|
|
19
|
+
left: string;
|
|
20
|
+
bottom: string;
|
|
21
|
+
height: string;
|
|
22
|
+
right: string;
|
|
23
|
+
};
|
|
24
|
+
onScroll(offset: any): void;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { SpreadsheetChildEnv } from "../../types";
|
|
3
|
+
import { ScrollBar } from "./scrollbar";
|
|
4
|
+
interface Props {
|
|
5
|
+
topOffset: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class VerticalScrollBar extends Component<Props, SpreadsheetChildEnv> {
|
|
8
|
+
static components: {
|
|
9
|
+
ScrollBar: typeof ScrollBar;
|
|
10
|
+
};
|
|
11
|
+
static template: string;
|
|
12
|
+
static defaultProps: {
|
|
13
|
+
topOffset: number;
|
|
14
|
+
};
|
|
15
|
+
get offset(): import("../../types").Pixel;
|
|
16
|
+
get height(): import("../../types").Pixel;
|
|
17
|
+
get isDisplayed(): boolean;
|
|
18
|
+
get position(): {
|
|
19
|
+
top: string;
|
|
20
|
+
right: string;
|
|
21
|
+
width: string;
|
|
22
|
+
bottom: string;
|
|
23
|
+
};
|
|
24
|
+
onScroll(offset: any): void;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Pixel } from "../types";
|
|
2
|
+
export type ScrollDirection = "horizontal" | "vertical";
|
|
3
|
+
export declare class ScrollBar {
|
|
4
|
+
private direction;
|
|
5
|
+
el: HTMLElement;
|
|
6
|
+
constructor(el: HTMLElement | null, direction: ScrollDirection);
|
|
7
|
+
get scroll(): Pixel;
|
|
8
|
+
set scroll(value: Pixel);
|
|
9
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { RangeInputValue } from "../../plugins/ui_feature/selection_input";
|
|
3
|
+
import { Color, SpreadsheetChildEnv } from "../../types";
|
|
4
|
+
interface Props {
|
|
5
|
+
ranges: () => string[];
|
|
6
|
+
hasSingleRange?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
isInvalid?: boolean;
|
|
9
|
+
class?: string;
|
|
10
|
+
onSelectionChanged?: (ranges: string[]) => void;
|
|
11
|
+
onSelectionConfirmed?: () => void;
|
|
12
|
+
}
|
|
13
|
+
interface SelectionRange extends Omit<RangeInputValue, "color"> {
|
|
14
|
+
isFocused: boolean;
|
|
15
|
+
isValidRange: boolean;
|
|
16
|
+
color?: Color;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* This component can be used when the user needs to input some
|
|
20
|
+
* ranges. He can either input the ranges with the regular DOM `<input/>`
|
|
21
|
+
* displayed or by selecting zones on the grid.
|
|
22
|
+
*
|
|
23
|
+
* onSelectionChanged is called every time the input value
|
|
24
|
+
* changes.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SelectionInput extends Component<Props, SpreadsheetChildEnv> {
|
|
27
|
+
static template: string;
|
|
28
|
+
private id;
|
|
29
|
+
private previousRanges;
|
|
30
|
+
private originSheet;
|
|
31
|
+
private state;
|
|
32
|
+
private focusedInput;
|
|
33
|
+
get ranges(): SelectionRange[];
|
|
34
|
+
get hasFocus(): boolean;
|
|
35
|
+
get canAddRange(): boolean;
|
|
36
|
+
get isInvalid(): boolean;
|
|
37
|
+
get isConfirmable(): boolean;
|
|
38
|
+
get isResettable(): boolean;
|
|
39
|
+
setup(): void;
|
|
40
|
+
enableNewSelectionInput(): void;
|
|
41
|
+
disableNewSelectionInput(): void;
|
|
42
|
+
checkChange(): void;
|
|
43
|
+
getColor(range: SelectionRange): string;
|
|
44
|
+
private triggerChange;
|
|
45
|
+
onKeydown(ev: KeyboardEvent): void;
|
|
46
|
+
private extractRanges;
|
|
47
|
+
focus(rangeId: number): void;
|
|
48
|
+
addEmptyInput(): void;
|
|
49
|
+
removeInput(rangeId: number): void;
|
|
50
|
+
onInputChanged(rangeId: number, ev: InputEvent): void;
|
|
51
|
+
reset(): void;
|
|
52
|
+
confirm(): void;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_config_panel.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { GaugeChartDefinition } from "../../../../types/chart/gauge_chart";
|
|
3
|
+
import { DispatchResult, SpreadsheetChildEnv, UID } from "../../../../types/index";
|
|
4
|
+
import { SelectionInput } from "../../../selection_input/selection_input";
|
|
5
|
+
import { ValidationMessages } from "../../../validation_messages/validation_messages";
|
|
6
|
+
interface Props {
|
|
7
|
+
figureId: UID;
|
|
8
|
+
definition: GaugeChartDefinition;
|
|
9
|
+
canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
10
|
+
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
11
|
+
}
|
|
12
|
+
export declare class GaugeChartConfigPanel extends Component<Props, SpreadsheetChildEnv> {
|
|
13
|
+
static template: string;
|
|
14
|
+
static components: {
|
|
15
|
+
SelectionInput: typeof SelectionInput;
|
|
16
|
+
ValidationMessages: typeof ValidationMessages;
|
|
17
|
+
};
|
|
18
|
+
private state;
|
|
19
|
+
private dataRange;
|
|
20
|
+
get configurationErrorMessages(): string[];
|
|
21
|
+
get isDataRangeInvalid(): boolean;
|
|
22
|
+
onDataRangeChanged(ranges: string[]): void;
|
|
23
|
+
updateDataRange(): void;
|
|
24
|
+
getDataRange(): string;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_design_panel.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { GaugeChartDefinition, SectionRule } from "../../../../types/chart/gauge_chart";
|
|
3
|
+
import { Color, DispatchResult, SpreadsheetChildEnv, UID } from "../../../../types/index";
|
|
4
|
+
import { ValidationMessages } from "../../../validation_messages/validation_messages";
|
|
5
|
+
import { ColorPickerWidget } from "./../../../color_picker/color_picker_widget";
|
|
6
|
+
type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
|
|
7
|
+
interface Props {
|
|
8
|
+
figureId: UID;
|
|
9
|
+
definition: GaugeChartDefinition;
|
|
10
|
+
canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
11
|
+
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
12
|
+
}
|
|
13
|
+
export declare class GaugeChartDesignPanel extends Component<Props, SpreadsheetChildEnv> {
|
|
14
|
+
static template: string;
|
|
15
|
+
static components: {
|
|
16
|
+
ColorPickerWidget: typeof ColorPickerWidget;
|
|
17
|
+
ValidationMessages: typeof ValidationMessages;
|
|
18
|
+
};
|
|
19
|
+
private state;
|
|
20
|
+
setup(): void;
|
|
21
|
+
get designErrorMessages(): string[];
|
|
22
|
+
updateBackgroundColor(color: Color): void;
|
|
23
|
+
updateTitle(): void;
|
|
24
|
+
isRangeMinInvalid(): boolean;
|
|
25
|
+
isRangeMaxInvalid(): boolean;
|
|
26
|
+
get isLowerInflectionPointInvalid(): boolean;
|
|
27
|
+
get isUpperInflectionPointInvalid(): boolean;
|
|
28
|
+
updateSectionColor(target: string, color: Color): void;
|
|
29
|
+
toggleMenu(menu: GaugeMenu): void;
|
|
30
|
+
updateSectionRule(sectionRule: SectionRule): void;
|
|
31
|
+
canUpdateSectionRule(sectionRule: SectionRule): void;
|
|
32
|
+
private closeMenus;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { Registry } from "../../../registries/registry";
|
|
3
|
+
export { BarConfigPanel } from "./bar_chart/bar_chart_config_panel";
|
|
4
|
+
export { BarChartDesignPanel } from "./bar_chart/bar_chart_design_panel";
|
|
5
|
+
export { GaugeChartConfigPanel } from "./gauge_chart_panel/gauge_chart_config_panel";
|
|
6
|
+
export { GaugeChartDesignPanel } from "./gauge_chart_panel/gauge_chart_design_panel";
|
|
7
|
+
export { LineBarPieConfigPanel } from "./line_bar_pie_panel/config_panel";
|
|
8
|
+
export { LineBarPieDesignPanel } from "./line_bar_pie_panel/design_panel";
|
|
9
|
+
export { LineConfigPanel } from "./line_chart/line_chart_config_panel";
|
|
10
|
+
export { LineChartDesignPanel } from "./line_chart/line_chart_design_panel";
|
|
11
|
+
export { ScorecardChartConfigPanel } from "./scorecard_chart_panel/scorecard_chart_config_panel";
|
|
12
|
+
export { ScorecardChartDesignPanel } from "./scorecard_chart_panel/scorecard_chart_design_panel";
|
|
13
|
+
export interface ChartSidePanel {
|
|
14
|
+
configuration: new (...args: any) => Component;
|
|
15
|
+
design: new (...args: any) => Component;
|
|
16
|
+
}
|
|
17
|
+
export declare const chartSidePanelComponentRegistry: Registry<ChartSidePanel>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { BarChartDefinition } from "../../../../types/chart/bar_chart";
|
|
3
|
+
import { LineChartDefinition } from "../../../../types/chart/line_chart";
|
|
4
|
+
import { PieChartDefinition } from "../../../../types/chart/pie_chart";
|
|
5
|
+
import { DispatchResult, SpreadsheetChildEnv, UID } from "../../../../types/index";
|
|
6
|
+
import { SelectionInput } from "../../../selection_input/selection_input";
|
|
7
|
+
import { ValidationMessages } from "../../../validation_messages/validation_messages";
|
|
8
|
+
interface Props {
|
|
9
|
+
figureId: UID;
|
|
10
|
+
definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
|
|
11
|
+
canUpdateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
12
|
+
updateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
13
|
+
}
|
|
14
|
+
export declare class LineBarPieConfigPanel extends Component<Props, SpreadsheetChildEnv> {
|
|
15
|
+
static template: string;
|
|
16
|
+
static components: {
|
|
17
|
+
SelectionInput: typeof SelectionInput;
|
|
18
|
+
ValidationMessages: typeof ValidationMessages;
|
|
19
|
+
};
|
|
20
|
+
private state;
|
|
21
|
+
private dataSeriesRanges;
|
|
22
|
+
private labelRange;
|
|
23
|
+
setup(): void;
|
|
24
|
+
get errorMessages(): string[];
|
|
25
|
+
get isDatasetInvalid(): boolean;
|
|
26
|
+
get isLabelInvalid(): boolean;
|
|
27
|
+
onUpdateDataSetsHaveTitle(ev: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Change the local dataSeriesRanges. The model should be updated when the
|
|
30
|
+
* button "confirm" is clicked
|
|
31
|
+
*/
|
|
32
|
+
onDataSeriesRangesChanged(ranges: string[]): void;
|
|
33
|
+
onDataSeriesConfirmed(): void;
|
|
34
|
+
getDataSeriesRanges(): string[];
|
|
35
|
+
/**
|
|
36
|
+
* Change the local labelRange. The model should be updated when the
|
|
37
|
+
* button "confirm" is clicked
|
|
38
|
+
*/
|
|
39
|
+
onLabelRangeChanged(ranges: string[]): void;
|
|
40
|
+
onLabelRangeConfirmed(): void;
|
|
41
|
+
getLabelRange(): string;
|
|
42
|
+
onUpdateAggregated(ev: any): void;
|
|
43
|
+
calculateHeaderPosition(): number | undefined;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { BarChartDefinition } from "../../../../types/chart/bar_chart";
|
|
3
|
+
import { LineChartDefinition } from "../../../../types/chart/line_chart";
|
|
4
|
+
import { PieChartDefinition } from "../../../../types/chart/pie_chart";
|
|
5
|
+
import { Color, DispatchResult, SpreadsheetChildEnv, UID } from "../../../../types/index";
|
|
6
|
+
import { ColorPickerWidget } from "../../../color_picker/color_picker_widget";
|
|
7
|
+
interface Props {
|
|
8
|
+
figureId: UID;
|
|
9
|
+
definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
|
|
10
|
+
canUpdateChart: (definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
11
|
+
updateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
|
|
12
|
+
}
|
|
13
|
+
export declare class LineBarPieDesignPanel extends Component<Props, SpreadsheetChildEnv> {
|
|
14
|
+
static template: string;
|
|
15
|
+
static components: {
|
|
16
|
+
ColorPickerWidget: typeof ColorPickerWidget;
|
|
17
|
+
};
|
|
18
|
+
private state;
|
|
19
|
+
onClick(ev: MouseEvent): void;
|
|
20
|
+
setup(): void;
|
|
21
|
+
toggleColorPicker(): void;
|
|
22
|
+
updateBackgroundColor(color: Color): void;
|
|
23
|
+
updateTitle(): void;
|
|
24
|
+
updateSelect(attr: string, ev: any): void;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LineBarPieConfigPanel } from "../line_bar_pie_panel/config_panel";
|
|
2
|
+
export declare class LineConfigPanel extends LineBarPieConfigPanel {
|
|
3
|
+
static template: string;
|
|
4
|
+
get canTreatLabelsAsText(): boolean;
|
|
5
|
+
onUpdateLabelsAsText(ev: any): void;
|
|
6
|
+
onUpdateStacked(ev: any): void;
|
|
7
|
+
onUpdateAggregated(ev: any): void;
|
|
8
|
+
onUpdateCumulative(ev: any): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { ChartSidePanel } from "..";
|
|
3
|
+
import { ChartDefinition, ChartType, SpreadsheetChildEnv, UID } from "../../../../types/index";
|
|
4
|
+
interface Props {
|
|
5
|
+
onCloseSidePanel: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare class ChartPanel extends Component<Props, SpreadsheetChildEnv> {
|
|
8
|
+
static template: string;
|
|
9
|
+
private state;
|
|
10
|
+
get figureId(): UID;
|
|
11
|
+
setup(): void;
|
|
12
|
+
updateChart<T extends ChartDefinition>(figureId: UID, updateDefinition: Partial<T>): import("../../../..").DispatchResult | undefined;
|
|
13
|
+
canUpdateChart<T extends ChartDefinition>(figureId: UID, updateDefinition: Partial<T>): import("../../../..").DispatchResult | undefined;
|
|
14
|
+
onTypeChange(type: ChartType): void;
|
|
15
|
+
get chartPanel(): ChartSidePanel;
|
|
16
|
+
private getChartDefinition;
|
|
17
|
+
get chartTypes(): Record<string, string>;
|
|
18
|
+
activatePanel(panel: "configuration" | "design"): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { ScorecardChartDefinition } from "../../../../types/chart/scorecard_chart";
|
|
3
|
+
import { DispatchResult, SpreadsheetChildEnv, UID } from "../../../../types/index";
|
|
4
|
+
import { SelectionInput } from "../../../selection_input/selection_input";
|
|
5
|
+
import { ValidationMessages } from "../../../validation_messages/validation_messages";
|
|
6
|
+
interface Props {
|
|
7
|
+
figureId: UID;
|
|
8
|
+
definition: ScorecardChartDefinition;
|
|
9
|
+
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
10
|
+
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
11
|
+
}
|
|
12
|
+
export declare class ScorecardChartConfigPanel extends Component<Props, SpreadsheetChildEnv> {
|
|
13
|
+
static template: string;
|
|
14
|
+
static components: {
|
|
15
|
+
SelectionInput: typeof SelectionInput;
|
|
16
|
+
ValidationMessages: typeof ValidationMessages;
|
|
17
|
+
};
|
|
18
|
+
private state;
|
|
19
|
+
private keyValue;
|
|
20
|
+
private baseline;
|
|
21
|
+
get errorMessages(): string[];
|
|
22
|
+
get isKeyValueInvalid(): boolean;
|
|
23
|
+
get isBaselineInvalid(): boolean;
|
|
24
|
+
onKeyValueRangeChanged(ranges: string[]): void;
|
|
25
|
+
updateKeyValueRange(): void;
|
|
26
|
+
getKeyValueRange(): string;
|
|
27
|
+
onBaselineRangeChanged(ranges: string[]): void;
|
|
28
|
+
updateBaselineRange(): void;
|
|
29
|
+
getBaselineRange(): string;
|
|
30
|
+
updateBaselineMode(ev: any): void;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { ScorecardChartDefinition } from "../../../../types/chart/scorecard_chart";
|
|
3
|
+
import { Color, DispatchResult, SpreadsheetChildEnv, UID } from "../../../../types/index";
|
|
4
|
+
import { ColorPickerWidget } from "../../../color_picker/color_picker_widget";
|
|
5
|
+
type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
|
|
6
|
+
interface Props {
|
|
7
|
+
figureId: UID;
|
|
8
|
+
definition: ScorecardChartDefinition;
|
|
9
|
+
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
10
|
+
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
11
|
+
}
|
|
12
|
+
export declare class ScorecardChartDesignPanel extends Component<Props, SpreadsheetChildEnv> {
|
|
13
|
+
static template: string;
|
|
14
|
+
static components: {
|
|
15
|
+
ColorPickerWidget: typeof ColorPickerWidget;
|
|
16
|
+
};
|
|
17
|
+
private state;
|
|
18
|
+
setup(): void;
|
|
19
|
+
updateTitle(): void;
|
|
20
|
+
translate(term: any): string;
|
|
21
|
+
updateBaselineDescr(ev: any): void;
|
|
22
|
+
toggleColorPicker(colorPickerId: ColorPickerId): void;
|
|
23
|
+
setColor(color: Color, colorPickerId: ColorPickerId): void;
|
|
24
|
+
private closeMenus;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { colorNumberString } from "../../../../helpers";
|
|
3
|
+
import { CancelledReason, Color, ColorScaleThreshold, ConditionalFormat, SpreadsheetChildEnv } from "../../../../types";
|
|
4
|
+
import { ColorPickerWidget } from "../../../color_picker/color_picker_widget";
|
|
5
|
+
import { getTextDecoration } from "../../../helpers";
|
|
6
|
+
import { IconPicker } from "../../../icon_picker/icon_picker";
|
|
7
|
+
import { SelectionInput } from "../../../selection_input/selection_input";
|
|
8
|
+
import { ConditionalFormatPreviewList } from "../cf_preview_list/cf_preview_list";
|
|
9
|
+
interface Props {
|
|
10
|
+
editedCf?: ConditionalFormat;
|
|
11
|
+
onExitEdition: () => void;
|
|
12
|
+
}
|
|
13
|
+
type CFType = "CellIsRule" | "ColorScaleRule" | "IconSetRule";
|
|
14
|
+
type CFMenu = "cellIsRule-textColor" | "cellIsRule-fillColor" | "colorScale-minimumColor" | "colorScale-midpointColor" | "colorScale-maximumColor" | "iconSet-lowerIcon" | "iconSet-middleIcon" | "iconSet-upperIcon";
|
|
15
|
+
export declare class ConditionalFormattingEditor extends Component<Props, SpreadsheetChildEnv> {
|
|
16
|
+
static template: string;
|
|
17
|
+
static components: {
|
|
18
|
+
SelectionInput: typeof SelectionInput;
|
|
19
|
+
IconPicker: typeof IconPicker;
|
|
20
|
+
ColorPickerWidget: typeof ColorPickerWidget;
|
|
21
|
+
ConditionalFormatPreviewList: typeof ConditionalFormatPreviewList;
|
|
22
|
+
};
|
|
23
|
+
icons: {
|
|
24
|
+
arrowGood: {
|
|
25
|
+
template: string;
|
|
26
|
+
img: HTMLImageElement;
|
|
27
|
+
};
|
|
28
|
+
arrowNeutral: {
|
|
29
|
+
template: string;
|
|
30
|
+
img: HTMLImageElement;
|
|
31
|
+
};
|
|
32
|
+
arrowBad: {
|
|
33
|
+
template: string;
|
|
34
|
+
img: HTMLImageElement;
|
|
35
|
+
};
|
|
36
|
+
smileyGood: {
|
|
37
|
+
template: string;
|
|
38
|
+
img: HTMLImageElement;
|
|
39
|
+
};
|
|
40
|
+
smileyNeutral: {
|
|
41
|
+
template: string;
|
|
42
|
+
img: HTMLImageElement;
|
|
43
|
+
};
|
|
44
|
+
smileyBad: {
|
|
45
|
+
template: string;
|
|
46
|
+
img: HTMLImageElement;
|
|
47
|
+
};
|
|
48
|
+
dotGood: {
|
|
49
|
+
template: string;
|
|
50
|
+
img: HTMLImageElement;
|
|
51
|
+
};
|
|
52
|
+
dotNeutral: {
|
|
53
|
+
template: string;
|
|
54
|
+
img: HTMLImageElement;
|
|
55
|
+
};
|
|
56
|
+
dotBad: {
|
|
57
|
+
template: string;
|
|
58
|
+
img: HTMLImageElement;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
cellIsOperators: {
|
|
62
|
+
IsEmpty: string;
|
|
63
|
+
IsNotEmpty: string;
|
|
64
|
+
ContainsText: string;
|
|
65
|
+
NotContains: string;
|
|
66
|
+
BeginsWith: string;
|
|
67
|
+
EndsWith: string;
|
|
68
|
+
Equal: string;
|
|
69
|
+
NotEqual: string;
|
|
70
|
+
GreaterThan: string;
|
|
71
|
+
GreaterThanOrEqual: string;
|
|
72
|
+
LessThan: string;
|
|
73
|
+
LessThanOrEqual: string;
|
|
74
|
+
Between: string;
|
|
75
|
+
NotBetween: string;
|
|
76
|
+
};
|
|
77
|
+
iconSets: {
|
|
78
|
+
arrows: {
|
|
79
|
+
good: string;
|
|
80
|
+
neutral: string;
|
|
81
|
+
bad: string;
|
|
82
|
+
};
|
|
83
|
+
smiley: {
|
|
84
|
+
good: string;
|
|
85
|
+
neutral: string;
|
|
86
|
+
bad: string;
|
|
87
|
+
};
|
|
88
|
+
dots: {
|
|
89
|
+
good: string;
|
|
90
|
+
neutral: string;
|
|
91
|
+
bad: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
getTextDecoration: typeof getTextDecoration;
|
|
95
|
+
colorNumberString: typeof colorNumberString;
|
|
96
|
+
private state;
|
|
97
|
+
setup(): void;
|
|
98
|
+
get isRangeValid(): boolean;
|
|
99
|
+
errorMessage(error: CancelledReason): string;
|
|
100
|
+
saveConditionalFormat(): void;
|
|
101
|
+
/**
|
|
102
|
+
* Get the rule currently edited with the editor
|
|
103
|
+
*/
|
|
104
|
+
private getEditorRule;
|
|
105
|
+
private getDefaultRules;
|
|
106
|
+
changeRuleType(ruleType: CFType): void;
|
|
107
|
+
onRangesChanged(ranges: string[]): void;
|
|
108
|
+
/*****************************************************************************
|
|
109
|
+
* Common
|
|
110
|
+
****************************************************************************/
|
|
111
|
+
toggleMenu(menu: CFMenu): void;
|
|
112
|
+
private closeMenus;
|
|
113
|
+
/*****************************************************************************
|
|
114
|
+
* Cell Is Rule
|
|
115
|
+
****************************************************************************/
|
|
116
|
+
get isValue1Invalid(): boolean;
|
|
117
|
+
get isValue2Invalid(): boolean;
|
|
118
|
+
toggleStyle(tool: string): void;
|
|
119
|
+
onKeydown(event: KeyboardEvent): void;
|
|
120
|
+
setColor(target: string, color: Color): void;
|
|
121
|
+
/*****************************************************************************
|
|
122
|
+
* Color Scale Rule
|
|
123
|
+
****************************************************************************/
|
|
124
|
+
isValueInvalid(threshold: "minimum" | "midpoint" | "maximum"): boolean;
|
|
125
|
+
setColorScaleColor(target: string, color: Color): void;
|
|
126
|
+
getPreviewGradient(): string;
|
|
127
|
+
getThresholdColor(threshold?: ColorScaleThreshold): Color;
|
|
128
|
+
onMidpointChange(ev: any): void;
|
|
129
|
+
/*****************************************************************************
|
|
130
|
+
* Icon Set
|
|
131
|
+
****************************************************************************/
|
|
132
|
+
isInflectionPointInvalid(inflectionPoint: "lowerInflectionPoint" | "upperInflectionPoint"): boolean;
|
|
133
|
+
reverseIcons(): void;
|
|
134
|
+
setIconSet(iconSet: "arrows" | "smiley" | "dots"): void;
|
|
135
|
+
setIcon(target: "upper" | "middle" | "lower", icon: string): void;
|
|
136
|
+
}
|
|
137
|
+
export {};
|
package/dist/types/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Component } from "@odoo/owl";
|
|
2
|
+
import { ColorScaleRule, ConditionalFormat, SingleColorRules, SpreadsheetChildEnv } from "../../../../types";
|
|
3
|
+
interface Props {
|
|
4
|
+
conditionalFormats: ConditionalFormat[];
|
|
5
|
+
onPreviewClick: (cf: ConditionalFormat) => void;
|
|
6
|
+
onAddConditionalFormat: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare class ConditionalFormatPreviewList extends Component<Props, SpreadsheetChildEnv> {
|
|
9
|
+
static template: string;
|
|
10
|
+
icons: {
|
|
11
|
+
arrowGood: {
|
|
12
|
+
template: string;
|
|
13
|
+
img: HTMLImageElement;
|
|
14
|
+
};
|
|
15
|
+
arrowNeutral: {
|
|
16
|
+
template: string;
|
|
17
|
+
img: HTMLImageElement;
|
|
18
|
+
};
|
|
19
|
+
arrowBad: {
|
|
20
|
+
template: string;
|
|
21
|
+
img: HTMLImageElement;
|
|
22
|
+
};
|
|
23
|
+
smileyGood: {
|
|
24
|
+
template: string;
|
|
25
|
+
img: HTMLImageElement;
|
|
26
|
+
};
|
|
27
|
+
smileyNeutral: {
|
|
28
|
+
template: string;
|
|
29
|
+
img: HTMLImageElement;
|
|
30
|
+
};
|
|
31
|
+
smileyBad: {
|
|
32
|
+
template: string;
|
|
33
|
+
img: HTMLImageElement;
|
|
34
|
+
};
|
|
35
|
+
dotGood: {
|
|
36
|
+
template: string;
|
|
37
|
+
img: HTMLImageElement;
|
|
38
|
+
};
|
|
39
|
+
dotNeutral: {
|
|
40
|
+
template: string;
|
|
41
|
+
img: HTMLImageElement;
|
|
42
|
+
};
|
|
43
|
+
dotBad: {
|
|
44
|
+
template: string;
|
|
45
|
+
img: HTMLImageElement;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
private dragAndDrop;
|
|
49
|
+
private cfListRef;
|
|
50
|
+
setup(): void;
|
|
51
|
+
getPreviewDivStyle(cf: ConditionalFormat): string;
|
|
52
|
+
getPreviewImageStyle(rule: SingleColorRules | ColorScaleRule): string;
|
|
53
|
+
getDescription(cf: ConditionalFormat): string;
|
|
54
|
+
deleteConditionalFormat(cf: ConditionalFormat): void;
|
|
55
|
+
onMouseDown(cf: ConditionalFormat, event: MouseEvent): void;
|
|
56
|
+
private onDragEnd;
|
|
57
|
+
}
|
|
58
|
+
export {};
|