@odoo/o-spreadsheet 17.0.84 → 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 +46071 -53455
- package/dist/o-spreadsheet.esm.js +45886 -53454
- package/dist/o-spreadsheet.iife.js +50220 -57787
- 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,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the relative path between two files
|
|
3
|
+
*
|
|
4
|
+
* Eg.:
|
|
5
|
+
* from "folder1/file1.txt" to "folder2/file2.txt" => "../folder2/file2.txt"
|
|
6
|
+
*/
|
|
7
|
+
export declare function getRelativePath(from: string, to: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Convert an array of element into an object where the objects keys were the elements position in the array.
|
|
10
|
+
* Can give an offset as argument, and all the array indexes will we shifted by this offset in the returned object.
|
|
11
|
+
*
|
|
12
|
+
* eg. : ["a", "b"] => {0:"a", 1:"b"}
|
|
13
|
+
*/
|
|
14
|
+
export declare function arrayToObject<T>(array: T[], indexOffset?: number): {
|
|
15
|
+
[key: number]: T;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Convert an object whose keys are numbers to an array were the element index was their key in the object.
|
|
19
|
+
*
|
|
20
|
+
* eg. : {0:"a", 2:"b"} => ["a", undefined, "b"]
|
|
21
|
+
*/
|
|
22
|
+
export declare function objectToArray<T>(obj: {
|
|
23
|
+
[key: number]: T;
|
|
24
|
+
}): T[];
|
|
25
|
+
/**
|
|
26
|
+
* In xlsx we can have string with unicode characters with the format _x00fa_.
|
|
27
|
+
* Replace with characters understandable by JS
|
|
28
|
+
*/
|
|
29
|
+
export declare function fixXlsxUnicode(str: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { XLSXImportFile, XLSXXmlDocuments } from "../../types/xlsx";
|
|
2
|
+
import { XLSXExportFile, XLSXExportXMLFile } from "./../../types/xlsx";
|
|
3
|
+
/**
|
|
4
|
+
* Return all the xmls converted to XLSXImportFile corresponding to the given content type.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getXLSXFilesOfType(contentType: string, xmls: XLSXXmlDocuments): XLSXImportFile[];
|
|
7
|
+
/**
|
|
8
|
+
* Return whether an exported file is an XML file or other kinds of file (e.g. image)
|
|
9
|
+
*/
|
|
10
|
+
export declare function isXLSXExportXMLFile(file: XLSXExportFile): file is XLSXExportXMLFile;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map of the different types of conversions warnings and their name in error messages
|
|
3
|
+
*/
|
|
4
|
+
export declare enum WarningTypes {
|
|
5
|
+
DiagonalBorderNotSupported = "Diagonal Borders",
|
|
6
|
+
BorderStyleNotSupported = "Border style",
|
|
7
|
+
FillStyleNotSupported = "Fill Style",
|
|
8
|
+
FontNotSupported = "Font",
|
|
9
|
+
HorizontalAlignmentNotSupported = "Horizontal Alignment",
|
|
10
|
+
VerticalAlignmentNotSupported = "Vertical Alignments",
|
|
11
|
+
MultipleRulesCfNotSupported = "Multiple rules conditional formats",
|
|
12
|
+
CfTypeNotSupported = "Conditional format type",
|
|
13
|
+
CfFormatBorderNotSupported = "Borders in conditional formats",
|
|
14
|
+
CfFormatAlignmentNotSupported = "Alignment in conditional formats",
|
|
15
|
+
CfFormatNumFmtNotSupported = "Num formats in conditional formats",
|
|
16
|
+
CfIconSetEmptyIconNotSupported = "IconSets with empty icons",
|
|
17
|
+
BadlyFormattedHyperlink = "Badly formatted hyperlink",
|
|
18
|
+
NumFmtIdNotSupported = "Number format"
|
|
19
|
+
}
|
|
20
|
+
export declare class XLSXImportWarningManager {
|
|
21
|
+
_parsingWarnings: Set<string>;
|
|
22
|
+
_conversionWarnings: Set<string>;
|
|
23
|
+
addParsingWarning(warning: string): void;
|
|
24
|
+
addConversionWarning(warning: string): void;
|
|
25
|
+
get warnings(): string[];
|
|
26
|
+
/**
|
|
27
|
+
* Add a warning "... is not supported" to the manager.
|
|
28
|
+
*
|
|
29
|
+
* @param type the type of the warning to add
|
|
30
|
+
* @param name optional, name of the element that was not supported
|
|
31
|
+
* @param supported optional, list of the supported elements
|
|
32
|
+
*/
|
|
33
|
+
generateNotSupportedWarning(type: WarningTypes, name?: string, supported?: string[]): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ExcelWorkbookData } from "../../types";
|
|
2
|
+
import { XLSXStructure, XMLAttributeValue, XMLAttributes, XMLString } from "../../types/xlsx";
|
|
3
|
+
import { XLSXExportXMLFile } from "./../../types/xlsx";
|
|
4
|
+
export declare function createXMLFile(doc: XMLDocument, path: string, contentType?: string): XLSXExportXMLFile;
|
|
5
|
+
export declare function xmlEscape(str: XMLAttributeValue): string;
|
|
6
|
+
export declare function formatAttributes(attrs: XMLAttributes): XMLString;
|
|
7
|
+
export declare function parseXML(xmlString: XMLString, mimeType?: DOMParserSupportedType): XMLDocument;
|
|
8
|
+
export declare function getDefaultXLSXStructure(data: ExcelWorkbookData): XLSXStructure;
|
|
9
|
+
export declare function createOverride(partName: string, contentType: string): XMLString;
|
|
10
|
+
export declare function createDefaultXMLElement(extension: string, contentType: string): XMLString;
|
|
11
|
+
export declare function joinXmlNodes(xmlNodes: XMLString[]): XMLString;
|
|
12
|
+
/**
|
|
13
|
+
* Escape interpolated values except if the value is already
|
|
14
|
+
* a properly escaped XML string.
|
|
15
|
+
*
|
|
16
|
+
* ```
|
|
17
|
+
* escapeXml`<t>${"This will be escaped"}</t>`
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function escapeXml(strings: TemplateStringsArray, ...expressions: any[]): XMLString;
|
|
21
|
+
/**
|
|
22
|
+
* Removes the escaped namespace of all the xml tags in the string.
|
|
23
|
+
*
|
|
24
|
+
* Eg. : "NAMESPACEnsNAMESPACEtest a" => "test a"
|
|
25
|
+
*/
|
|
26
|
+
export declare function removeTagEscapedNamespaces(tag: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Encase the namespaces in the element's tags with NAMESPACE string
|
|
29
|
+
*
|
|
30
|
+
* e.g. <x:foo> becomes <NAMESPACExNAMESPACEFoo>
|
|
31
|
+
*
|
|
32
|
+
* That's useful because namespaces aren't supported by the HTML specification, so it's arbitrary whether a HTML parser/querySelector
|
|
33
|
+
* implementation will support namespaces in the tags or not.
|
|
34
|
+
*/
|
|
35
|
+
export declare function escapeTagNamespaces(str: string): string;
|
|
36
|
+
export declare function escapeQueryNameSpaces(query: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ImportedFiles, XLSXImageFile, XLSXImportData, XLSXXmlDocuments } from "../types/xlsx";
|
|
2
|
+
import { WorkbookData } from "./../types/workbook_data";
|
|
3
|
+
import { XLSXImportWarningManager } from "./helpers/xlsx_parser_error_manager";
|
|
4
|
+
export declare class XlsxReader {
|
|
5
|
+
warningManager: XLSXImportWarningManager;
|
|
6
|
+
xmls: XLSXXmlDocuments;
|
|
7
|
+
images: XLSXImageFile[];
|
|
8
|
+
constructor(files: ImportedFiles);
|
|
9
|
+
convertXlsx(): WorkbookData;
|
|
10
|
+
private getXlsxData;
|
|
11
|
+
private buildXlsxFileStructure;
|
|
12
|
+
convertImportedData(data: XLSXImportData): WorkbookData;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExcelWorkbookData } from "../types";
|
|
2
|
+
import { XLSXExport } from "../types/xlsx";
|
|
3
|
+
/**
|
|
4
|
+
* Return the spreadsheet data in the Office Open XML file format.
|
|
5
|
+
* See ECMA-376 standard.
|
|
6
|
+
* https://www.ecma-international.org/publications-and-standards/standards/ecma-376/
|
|
7
|
+
*/
|
|
8
|
+
export declare function getXLSX(data: ExcelWorkbookData): XLSXExport;
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.96",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o-spreadsheet.cjs.js",
|
|
7
7
|
"browser": "dist/o-spreadsheet.iife.js",
|
|
8
8
|
"module": "dist/o-spreadsheet.esm.js",
|
|
9
|
-
"types": "dist/
|
|
9
|
+
"types": "dist/types/index.d.ts",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/*.js",
|
|
12
|
-
"dist
|
|
12
|
+
"dist/types",
|
|
13
13
|
"dist/*.xml"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"serve-static": "live-server --open=demo --watch=build/
|
|
16
|
+
"serve-static": "live-server --host=127.0.0.1 --open=demo --watch=build/o-spreadsheet.iife.js,build/o_spreadsheet.xml,demo",
|
|
17
17
|
"dev": "npm-run-all --print-label build --parallel server serve-static watch:*",
|
|
18
18
|
"server": "node tools/server/main.cjs",
|
|
19
19
|
"build:js": "tsc --module es6 --incremental",
|
|
20
|
-
"build:bundleJs": "
|
|
20
|
+
"build:bundleJs": "rolldown -c --format iife",
|
|
21
21
|
"build:bundleXml": "node tools/bundle_xml/main.cjs",
|
|
22
22
|
"build": "npm-run-all build:js build:bundleJs \"build:bundleXml -- --outDir build\"",
|
|
23
|
-
"doc": "typedoc",
|
|
24
23
|
"precommit": "npm run prettier && npm run doc",
|
|
25
24
|
"monkey": "SPREADSHEET_MONKEY_COUNT=$npm_config_monkey_count jest 'tests/collaborative/collaborative_monkey_party.test.ts'",
|
|
26
|
-
"test": "tsc --noEmit --project tsconfig.
|
|
25
|
+
"test": "tsc --noEmit --project tests/tsconfig.json && jest",
|
|
27
26
|
"test:watch": "jest --watch",
|
|
28
27
|
"prettier": "prettier . --write",
|
|
29
|
-
"check-formatting": "prettier . --check",
|
|
30
|
-
"dist": "tsc --module es6 --declaration --declarationDir dist/types &&
|
|
31
|
-
"
|
|
28
|
+
"check-formatting": "prettier . --check && eslint",
|
|
29
|
+
"dist": "tsc --module es6 --declaration --declarationDir dist/types && rolldown -c && npm run build:bundleXml -- --outDir dist",
|
|
30
|
+
"postinstall": "husky install",
|
|
32
31
|
"watch:bundle": "npm run build:bundleJs -- --watch",
|
|
33
32
|
"watch:ts": "npm run build:js -- --watch",
|
|
34
33
|
"watch:xml": "node tools/bundle_xml/watch_xml_templates.cjs",
|
|
35
34
|
"unzipXlsx": "node tools/bundle_xlsx/unzip_xlsx_demo.cjs",
|
|
36
|
-
"zipXlsx": "node tools/bundle_xlsx/zip_xlsx_demo.cjs"
|
|
35
|
+
"zipXlsx": "node tools/bundle_xlsx/zip_xlsx_demo.cjs",
|
|
36
|
+
"lint": "eslint --fix"
|
|
37
37
|
},
|
|
38
38
|
"browserslist": [
|
|
39
39
|
"last 1 Chrome versions"
|
|
@@ -56,14 +56,15 @@
|
|
|
56
56
|
"homepage": "https://github.com/odoo/o-spreadsheet#readme",
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@prettier/plugin-xml": "^2.2.0",
|
|
59
|
-
"@rollup/plugin-node-resolve": "^15.2.0",
|
|
60
|
-
"@rollup/plugin-terser": "^0.4.3",
|
|
61
59
|
"@swc/jest": "0.2.36",
|
|
62
60
|
"@swc/core": "1.6.7",
|
|
63
|
-
"@types/jest": "^
|
|
64
|
-
"@types/
|
|
61
|
+
"@types/jest": "^30.0.0",
|
|
62
|
+
"@types/jest-image-snapshot": "^6.4.1",
|
|
63
|
+
"@types/node": "^20.17.24",
|
|
65
64
|
"@types/rbush": "^3.0.3",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^8.30.1",
|
|
66
66
|
"body-parser": "^1.19.0",
|
|
67
|
+
"canvas": "^3.0.0",
|
|
67
68
|
"chart.js": "4.3.0",
|
|
68
69
|
"chartjs-adapter-luxon": "^1.3.1",
|
|
69
70
|
"cors": "^2.8.5",
|
|
@@ -73,8 +74,9 @@
|
|
|
73
74
|
"file-saver": "^2.0.5",
|
|
74
75
|
"fs": "^0.0.1-security",
|
|
75
76
|
"husky": "^7.0.4",
|
|
76
|
-
"jest": "^
|
|
77
|
-
"jest-environment-jsdom": "^
|
|
77
|
+
"jest": "^30.2.0",
|
|
78
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
79
|
+
"jest-image-snapshot": "^6.5.2",
|
|
78
80
|
"jszip": "^3.6.0",
|
|
79
81
|
"lint-staged": "^12.1.2",
|
|
80
82
|
"live-server": "^1.2.1",
|
|
@@ -85,13 +87,10 @@
|
|
|
85
87
|
"npm-run-all": "^4.1.5",
|
|
86
88
|
"prettier": "^2.8.0",
|
|
87
89
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
88
|
-
"
|
|
89
|
-
"rollup-plugin-dts": "^5.3.1",
|
|
90
|
-
"rollup-plugin-typescript2": "^0.35.0",
|
|
90
|
+
"rolldown": "^1.0.0-rc.15",
|
|
91
91
|
"seedrandom": "^3.0.5",
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"typescript": "^5.4.3",
|
|
92
|
+
"typescript": "^6.0.2",
|
|
93
|
+
"typescript-eslint": "^8.30.1",
|
|
95
94
|
"xml-formatter": "^2.4.0"
|
|
96
95
|
},
|
|
97
96
|
"optionalDependencies": {
|
|
@@ -104,7 +103,22 @@
|
|
|
104
103
|
"@swc/core-linux-x64-musl": "1.6.7",
|
|
105
104
|
"@swc/core-win32-arm64-msvc": "1.6.7",
|
|
106
105
|
"@swc/core-win32-ia32-msvc": "1.6.7",
|
|
107
|
-
"@swc/core-win32-x64-msvc": "1.6.7"
|
|
106
|
+
"@swc/core-win32-x64-msvc": "1.6.7",
|
|
107
|
+
"@rolldown/binding-android-arm64": "1.0.0-rc.15",
|
|
108
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-rc.15",
|
|
109
|
+
"@rolldown/binding-darwin-x64": "1.0.0-rc.15",
|
|
110
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-rc.15",
|
|
111
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.15",
|
|
112
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.15",
|
|
113
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-rc.15",
|
|
114
|
+
"@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.15",
|
|
115
|
+
"@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.15",
|
|
116
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-rc.15",
|
|
117
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-rc.15",
|
|
118
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-rc.15",
|
|
119
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-rc.15",
|
|
120
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.15",
|
|
121
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-rc.15"
|
|
108
122
|
},
|
|
109
123
|
"prettier": {
|
|
110
124
|
"printWidth": 100,
|
|
@@ -146,7 +160,10 @@
|
|
|
146
160
|
]
|
|
147
161
|
},
|
|
148
162
|
"lint-staged": {
|
|
149
|
-
"*":
|
|
163
|
+
"*": [
|
|
164
|
+
"eslint --fix",
|
|
165
|
+
"prettier --write"
|
|
166
|
+
]
|
|
150
167
|
},
|
|
151
168
|
"publishConfig": {
|
|
152
169
|
"tag": "17-0"
|