@odoo/o-spreadsheet 17.0.85 → 17.0.97
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 +41 -24
- package/dist/o-spreadsheet.d.ts +0 -8046
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { Alias, ExcelChartDefinition, Format, PaneDivision } from ".";
|
|
2
|
+
import { ExcelImage } from "../types/image";
|
|
3
|
+
/**
|
|
4
|
+
* Most of the times we tried to create Objects that matched quite closely with the data in the XLSX files.
|
|
5
|
+
* The most notable exceptions are graphs and charts, as their definition are complex and we won't use most of it.
|
|
6
|
+
*
|
|
7
|
+
* Used the specification of the OpenXML file formats
|
|
8
|
+
* https://www.ecma-international.org/publications-and-standards/standards/ecma-376/
|
|
9
|
+
*
|
|
10
|
+
* Or XLSX extension of OpenXml
|
|
11
|
+
* https://docs.microsoft.com/en-us/openspecs/office_standards/ms-xlsx/2c5dee00-eff2-4b22-92b6-0738acd4475e
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* Quick reference :
|
|
15
|
+
* [OpenXml] :
|
|
16
|
+
* - border (XLSXBorder): §18.8.4 (border)
|
|
17
|
+
* - cells (XLSXCell): §18.3.1.4 (c)
|
|
18
|
+
* - color (XLSXColor): §18.3.1.15 (color)
|
|
19
|
+
* - columns (XLSXColumn): §18.3.1.13 (col)
|
|
20
|
+
* - conditional format (XLSXConditionalFormat): §18.3.1.18 (conditionalFormatting)
|
|
21
|
+
* - chart (ExcelChartDefinition): §21.2.2.27 (chart)
|
|
22
|
+
* - cf rule (XLSXCfRule): §18.3.1.10 (cfRule)
|
|
23
|
+
* - cf rule icon set (XLSXIconSet) : §18.3.1.49 (iconSet)
|
|
24
|
+
* - cf value object (XLSXCfValueObject): §18.3.1.11 (cfvo)
|
|
25
|
+
* - data filter (XLSXSimpleFilter): §18.3.2.6 (filter)
|
|
26
|
+
* - data filter column (XLSXFilterColumn): §18.3.2.7 (filterColumns)
|
|
27
|
+
* - data filter zone (XLSXAutoFilter): §18.3.1.2 (autoFilter)
|
|
28
|
+
* - external workbook (XLSXExternalBook): $18.14.7 (externalBook)
|
|
29
|
+
* - fills (XLSXFill): §18.8.20 (fill)
|
|
30
|
+
* - figure (XLSXFigure): §20.5.2.35 (wsDr (Worksheet Drawing))
|
|
31
|
+
* - fonts (XLSXFont): §18.8.22 (font)
|
|
32
|
+
* - images (XLSXImageFile): §20.2.2.5 (pic)
|
|
33
|
+
* - merge (string): §18.3.1.55 (mergeCell)
|
|
34
|
+
* - number format (XLSXNumFormat) : §18.8.30 (numFmt)
|
|
35
|
+
* - rows (XLSXRow): §18.3.1.73 (row)
|
|
36
|
+
* - sheet (XLSXWorksheet): §18.3.1.99 (worksheet)
|
|
37
|
+
* - sheet format (XLSXSheetFormat): §18.3.1.81 (sheetFormatPr)
|
|
38
|
+
* - sheet view (XLSXSheetView): §18.3.1.87 (sheetFormatPr)
|
|
39
|
+
* - sheet workbook info (XLSXSheetWorkbookInfo): §18.2.19 (sheet)
|
|
40
|
+
* - style, for cell (XLSXStyle): §18.8.45 (xf)
|
|
41
|
+
* - style, for non-cell (eg. conditional format) (XLSXDxf): §18.8.14 (dxf)
|
|
42
|
+
* - table (XLSXTable) : §18.5.1.2 (table)
|
|
43
|
+
* - table column (XLSXTableCol) : §18.5.1.3 (tableColumn)
|
|
44
|
+
* - table style (XLSXTableStyleInfo) : §18.5.1.5 (tableStyleInfo)
|
|
45
|
+
* - theme color : §20.1.2.3.32 (srgbClr/sysClr)
|
|
46
|
+
*
|
|
47
|
+
* [XLSX]: :
|
|
48
|
+
* - cf rule (XLSXCfRule): §2.6.2 (CT_ConditionalFormatting)
|
|
49
|
+
* - cf rule icon set (XLSXIconSet): §2.6.28 (CT_IconSet)
|
|
50
|
+
* - cf icon (XLSXCfIcon): §2.6.36 (CT_CfIcon)
|
|
51
|
+
*
|
|
52
|
+
* Simple Types :
|
|
53
|
+
* [OpenXml] :
|
|
54
|
+
* - border style (XLSXBorderStyle): §18.18.3 (Border Line Styles)
|
|
55
|
+
* - cell type (XLSXCellType): §18.18.11 (Cell Type) (mapped with xlsxCellTypeMap to be human readable)
|
|
56
|
+
* - cf type (XLSXCfType): §18.18.12 (Conditional Format Type)
|
|
57
|
+
* - cf value object type (XLSXCfValueObjectType): §18.18.13 (Conditional Format Value Object Type)
|
|
58
|
+
* - cf operator type (XLSXCfOperatorType): §18.18.15 (Conditional Format Operators)
|
|
59
|
+
* - fill pattern types (XLSXFillPatternType): §18.18.55 (Pattern Type)
|
|
60
|
+
* - horizontal alignment (XLSXHorizontalAlignment): §18.18.40 (Horizontal Alignment Type)
|
|
61
|
+
* - vertical alignment (XLSXVerticalAlignment): §18.18.88 (Horizontal Alignment Type)
|
|
62
|
+
*
|
|
63
|
+
* [XLSX] :
|
|
64
|
+
* - icon set types (ExcelIconSet): §2.7.10 (ST_IconSetType)
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* This structure covers all the necessary "assets" to generate an XLSX file.
|
|
68
|
+
* Those assets consist of:
|
|
69
|
+
* - a rel file including metadata specifying how the others files form the final document
|
|
70
|
+
* (this currently includes sheets, styles, shared content (string))
|
|
71
|
+
* - a sharedStrings file that regroups all static string values found in the cells
|
|
72
|
+
* - a style file including all the normalized style elements for cells,
|
|
73
|
+
* including cell-specific conditional formatting
|
|
74
|
+
*
|
|
75
|
+
* @param rels: a list of files and their specific type/role in the final document
|
|
76
|
+
* @param sharedStrings: regroups all static string values found in the cells.
|
|
77
|
+
* @param fonts: All normalized fonts
|
|
78
|
+
* @param fills: " normalized fills
|
|
79
|
+
* @param borders: " normalized borders
|
|
80
|
+
* @param NumFmts: " normalized number formats
|
|
81
|
+
* @param styles: " combinations of font-fill-border, number format found in the cells
|
|
82
|
+
* @param dxf: " Conditional Formatting of type "CellIsRule"
|
|
83
|
+
*/
|
|
84
|
+
export interface XLSXStructure {
|
|
85
|
+
relsFiles: XLSXRelFile[];
|
|
86
|
+
sharedStrings: string[];
|
|
87
|
+
fonts: XLSXFont[];
|
|
88
|
+
fills: XLSXFill[];
|
|
89
|
+
borders: XLSXBorder[];
|
|
90
|
+
numFmts: XLSXNumFormat[];
|
|
91
|
+
styles: XLSXStyle[];
|
|
92
|
+
dxfs: XLSXDxf[];
|
|
93
|
+
}
|
|
94
|
+
export interface XLSXImportData extends Omit<XLSXStructure, "relsFiles"> {
|
|
95
|
+
sheets: XLSXWorksheet[];
|
|
96
|
+
externalBooks: XLSXExternalBook[];
|
|
97
|
+
}
|
|
98
|
+
export interface XLSXFileStructure {
|
|
99
|
+
sheets: XLSXImportFile[];
|
|
100
|
+
workbook: XLSXImportFile;
|
|
101
|
+
styles: XLSXImportFile;
|
|
102
|
+
sharedStrings: XLSXImportFile;
|
|
103
|
+
theme?: XLSXImportFile;
|
|
104
|
+
charts: XLSXImportFile[];
|
|
105
|
+
figures: XLSXImportFile[];
|
|
106
|
+
tables: XLSXImportFile[];
|
|
107
|
+
externalLinks: XLSXImportFile[];
|
|
108
|
+
images: XLSXImageFile[];
|
|
109
|
+
}
|
|
110
|
+
export type XMLAttributeValue = string | number | boolean;
|
|
111
|
+
type XMLAttribute = [string, XMLAttributeValue];
|
|
112
|
+
export type XMLAttributes = XMLAttribute[];
|
|
113
|
+
/**
|
|
114
|
+
* Represent a raw XML string
|
|
115
|
+
*/
|
|
116
|
+
export declare class XMLString {
|
|
117
|
+
private xmlString;
|
|
118
|
+
/**
|
|
119
|
+
* @param xmlString should be a well formed, properly escaped XML string
|
|
120
|
+
*/
|
|
121
|
+
constructor(xmlString: string);
|
|
122
|
+
toString(): string;
|
|
123
|
+
}
|
|
124
|
+
export interface XLSXDxf {
|
|
125
|
+
font?: XLSXFont;
|
|
126
|
+
fill?: XLSXFill;
|
|
127
|
+
numFmt?: XLSXNumFormat;
|
|
128
|
+
alignment?: XLSXCellAlignment;
|
|
129
|
+
border?: XLSXBorder;
|
|
130
|
+
}
|
|
131
|
+
export interface XLSXRel {
|
|
132
|
+
id: string;
|
|
133
|
+
type: string;
|
|
134
|
+
target: string;
|
|
135
|
+
targetMode?: "External";
|
|
136
|
+
}
|
|
137
|
+
export interface XLSXRelFile {
|
|
138
|
+
path: string;
|
|
139
|
+
rels: XLSXRel[];
|
|
140
|
+
}
|
|
141
|
+
export type XLSXExportFile = XLSXExportImageFile | XLSXExportXMLFile;
|
|
142
|
+
export interface XLSXExportXMLFile {
|
|
143
|
+
path: string;
|
|
144
|
+
content: string;
|
|
145
|
+
contentType?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface XLSXExportImageFile {
|
|
148
|
+
path: string;
|
|
149
|
+
imageSrc: string;
|
|
150
|
+
}
|
|
151
|
+
export interface XLSXExport {
|
|
152
|
+
name: string;
|
|
153
|
+
files: XLSXExportFile[];
|
|
154
|
+
}
|
|
155
|
+
export interface XLSXFont {
|
|
156
|
+
size?: number;
|
|
157
|
+
family?: number;
|
|
158
|
+
color?: XLSXColor;
|
|
159
|
+
name?: string;
|
|
160
|
+
bold?: boolean;
|
|
161
|
+
italic?: boolean;
|
|
162
|
+
underline?: boolean;
|
|
163
|
+
strike?: boolean;
|
|
164
|
+
}
|
|
165
|
+
export interface XLSXCellAlignment {
|
|
166
|
+
horizontal?: XLSXHorizontalAlignment;
|
|
167
|
+
vertical?: XLSXVerticalAlignment;
|
|
168
|
+
textRotation?: number;
|
|
169
|
+
wrapText?: boolean;
|
|
170
|
+
indent?: number;
|
|
171
|
+
relativeIndent?: number;
|
|
172
|
+
justifyLastLine?: boolean;
|
|
173
|
+
shrinkToFit?: boolean;
|
|
174
|
+
readingOrder?: number;
|
|
175
|
+
}
|
|
176
|
+
export interface XLSXFill {
|
|
177
|
+
patternType?: XLSXFillPatternType;
|
|
178
|
+
reservedAttribute?: string;
|
|
179
|
+
fgColor?: XLSXColor;
|
|
180
|
+
bgColor?: XLSXColor;
|
|
181
|
+
}
|
|
182
|
+
export interface XLSXStyle {
|
|
183
|
+
fontId: number;
|
|
184
|
+
fillId: number;
|
|
185
|
+
borderId: number;
|
|
186
|
+
numFmtId: number;
|
|
187
|
+
alignment?: XLSXCellAlignment;
|
|
188
|
+
}
|
|
189
|
+
export interface ExtractedStyle {
|
|
190
|
+
font: XLSXFont;
|
|
191
|
+
fill: XLSXFill;
|
|
192
|
+
border: number;
|
|
193
|
+
numFmt: XLSXNumFormat | undefined;
|
|
194
|
+
alignment: XLSXCellAlignment;
|
|
195
|
+
}
|
|
196
|
+
export interface XLSXWorksheet {
|
|
197
|
+
sheetName: string;
|
|
198
|
+
isVisible: boolean;
|
|
199
|
+
sheetViews: XLSXSheetView[];
|
|
200
|
+
sheetFormat?: XLSXSheetFormat;
|
|
201
|
+
cols: XLSXColumn[];
|
|
202
|
+
rows: XLSXRow[];
|
|
203
|
+
cfs: XLSXConditionalFormat[];
|
|
204
|
+
sharedFormulas: string[];
|
|
205
|
+
merges: string[];
|
|
206
|
+
figures: XLSXFigure[];
|
|
207
|
+
hyperlinks: XLSXHyperLink[];
|
|
208
|
+
tables: XLSXTable[];
|
|
209
|
+
}
|
|
210
|
+
export interface XLSXSheetView {
|
|
211
|
+
/** True if this is the sheet currently selected */
|
|
212
|
+
tabSelected: boolean;
|
|
213
|
+
showFormulas: boolean;
|
|
214
|
+
showGridLines: boolean;
|
|
215
|
+
showRowColHeaders: boolean;
|
|
216
|
+
pane: PaneDivision;
|
|
217
|
+
}
|
|
218
|
+
export interface XLSXSheetFormat {
|
|
219
|
+
defaultColWidth: number;
|
|
220
|
+
defaultRowHeight: number;
|
|
221
|
+
}
|
|
222
|
+
export interface XLSXColumn {
|
|
223
|
+
min: number;
|
|
224
|
+
max: number;
|
|
225
|
+
width?: number;
|
|
226
|
+
customWidth?: boolean;
|
|
227
|
+
bestFit?: boolean;
|
|
228
|
+
hidden?: boolean;
|
|
229
|
+
styleIndex?: number;
|
|
230
|
+
}
|
|
231
|
+
export interface XLSXRow {
|
|
232
|
+
index: number;
|
|
233
|
+
height?: number;
|
|
234
|
+
customHeight?: boolean;
|
|
235
|
+
hidden?: boolean;
|
|
236
|
+
cells: XLSXCell[];
|
|
237
|
+
styleIndex?: number;
|
|
238
|
+
}
|
|
239
|
+
export interface XLSXFormula {
|
|
240
|
+
content?: string;
|
|
241
|
+
sharedIndex?: number;
|
|
242
|
+
ref?: string;
|
|
243
|
+
}
|
|
244
|
+
export interface XLSXCell {
|
|
245
|
+
xc: string;
|
|
246
|
+
styleIndex?: number;
|
|
247
|
+
type: XLSXCellType;
|
|
248
|
+
value?: string;
|
|
249
|
+
formula?: XLSXFormula;
|
|
250
|
+
}
|
|
251
|
+
export interface XLSXTheme {
|
|
252
|
+
clrScheme?: XLSXColorScheme[];
|
|
253
|
+
}
|
|
254
|
+
export interface XLSXColorScheme {
|
|
255
|
+
name: string;
|
|
256
|
+
value: string;
|
|
257
|
+
lastClr?: string;
|
|
258
|
+
}
|
|
259
|
+
export interface XLSXNumFormat {
|
|
260
|
+
id: number;
|
|
261
|
+
format: Format;
|
|
262
|
+
}
|
|
263
|
+
export interface XLSXBorder {
|
|
264
|
+
top?: XLSXBorderDescr;
|
|
265
|
+
left?: XLSXBorderDescr;
|
|
266
|
+
bottom?: XLSXBorderDescr;
|
|
267
|
+
right?: XLSXBorderDescr;
|
|
268
|
+
diagonal?: XLSXBorderDescr;
|
|
269
|
+
diagonalUp?: boolean;
|
|
270
|
+
diagonalDown?: boolean;
|
|
271
|
+
}
|
|
272
|
+
export interface XLSXBorderDescr {
|
|
273
|
+
style: XLSXBorderStyle;
|
|
274
|
+
color: XLSXColor;
|
|
275
|
+
}
|
|
276
|
+
export type ExcelIconSet = "NoIcons" | "3Arrows" | "3ArrowsGray" | "3Symbols" | "3Symbols2" | "3Signs" | "3Flags" | "3TrafficLights1" | "3TrafficLights2" | "4Arrows" | "4ArrowsGray" | "4RedToBlack" | "4Rating" | "4TrafficLights" | "5Arrows" | "5ArrowsGray" | "5Rating" | "5Quarters" | "3Stars" | "3Triangles" | "5Boxes";
|
|
277
|
+
/**
|
|
278
|
+
* Standardized XLSX hexadecimal color (with or without alpha channel).
|
|
279
|
+
* Note that the alpha channel goes first! AARRGGBB
|
|
280
|
+
* e.g. "1E5010" or "331E5010"
|
|
281
|
+
*/
|
|
282
|
+
export type XlsxHexColor = string & Alias;
|
|
283
|
+
export interface ImportedFiles {
|
|
284
|
+
[path: string]: string | {
|
|
285
|
+
imageSrc: string;
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
export interface XLSXXmlDocuments {
|
|
289
|
+
[path: string]: XMLDocument;
|
|
290
|
+
}
|
|
291
|
+
export interface XLSXImageFile {
|
|
292
|
+
fileName: string;
|
|
293
|
+
imageSrc: string;
|
|
294
|
+
}
|
|
295
|
+
type XLSXFillPatternType = "none" | "solid" | "gray0625" | "gray125" | "lightGray" | "mediumGray" | "darkGray" | "darkHorizontal" | "darkVertical" | "darkUp" | "darkDown" | "darkGrid" | "darkTrellis" | "lightHorizontal" | "lightVertical" | "lightDown" | "lightUp" | "lightGrid" | "lightTrellis";
|
|
296
|
+
export type XLSXBorderStyle = "dashDot" | "dashDotDot" | "dashed" | "dotted" | "double" | "hair" | "medium" | "mediumDashDot" | "mediumDashDotDot" | "mediumDashed" | "none" | "slantDashDot" | "thick" | "thin";
|
|
297
|
+
export type XLSXCellType = "boolean" | "date" | "error" | "inlineStr" | "number" | "sharedString" | "str";
|
|
298
|
+
export type XLSXCfType = "aboveAverage" | "expression" | "cellIs" | "colorScale" | "dataBar" | "iconSet" | "top10" | "uniqueValues" | "duplicateValues" | "containsText" | "notContainsText" | "beginsWith" | "endsWith" | "containsBlanks" | "notContainsBlanks" | "containsErrors" | "notContainsErrors" | "timePeriod";
|
|
299
|
+
export type XLSXCfOperatorType = "beginsWith" | "between" | "containsText" | "endsWith" | "equal" | "greaterThan" | "greaterThanOrEqual" | "lessThan" | "lessThanOrEqual" | "notBetween" | "notContains" | "notEqual";
|
|
300
|
+
export type XLSXHorizontalAlignment = "general" | "left" | "center" | "right" | "fill" | "justify" | "centerContinuous" | "distributed";
|
|
301
|
+
export type XLSXVerticalAlignment = "top" | "center" | "bottom" | "justify" | "distributed";
|
|
302
|
+
export type XLSXCfValueObjectType = "num" | "percent" | "max" | "min" | "percentile" | "formula";
|
|
303
|
+
export interface XLSXCfValueObject {
|
|
304
|
+
type: XLSXCfValueObjectType;
|
|
305
|
+
gte?: boolean;
|
|
306
|
+
value?: string;
|
|
307
|
+
}
|
|
308
|
+
export interface XLSXColorScale {
|
|
309
|
+
colors: XLSXColor[];
|
|
310
|
+
cfvos: XLSXCfValueObject[];
|
|
311
|
+
}
|
|
312
|
+
export interface XLSXIconSet {
|
|
313
|
+
iconSet: ExcelIconSet;
|
|
314
|
+
cfvos: XLSXCfValueObject[];
|
|
315
|
+
cfIcons?: XLSXCfIcon[];
|
|
316
|
+
showValue?: boolean;
|
|
317
|
+
percent?: boolean;
|
|
318
|
+
reverse?: boolean;
|
|
319
|
+
custom?: boolean;
|
|
320
|
+
}
|
|
321
|
+
export interface XLSXCfIcon {
|
|
322
|
+
iconSet: ExcelIconSet;
|
|
323
|
+
iconId: number;
|
|
324
|
+
}
|
|
325
|
+
export interface XLSXConditionalFormat {
|
|
326
|
+
cfRules: XLSXCfRule[];
|
|
327
|
+
sqref: string[];
|
|
328
|
+
pivot?: boolean;
|
|
329
|
+
}
|
|
330
|
+
export interface XLSXCfRule {
|
|
331
|
+
type: XLSXCfType;
|
|
332
|
+
priority: number;
|
|
333
|
+
formula?: string[];
|
|
334
|
+
colorScale?: XLSXColorScale;
|
|
335
|
+
dataBar?: any;
|
|
336
|
+
iconSet?: XLSXIconSet;
|
|
337
|
+
dxfId?: number;
|
|
338
|
+
stopIfTrue?: boolean;
|
|
339
|
+
aboveAverage?: boolean;
|
|
340
|
+
percent?: boolean;
|
|
341
|
+
bottom?: boolean;
|
|
342
|
+
operator?: XLSXCfOperatorType;
|
|
343
|
+
text?: string;
|
|
344
|
+
timePeriod?: any;
|
|
345
|
+
rank?: number;
|
|
346
|
+
stdDev?: number;
|
|
347
|
+
equalAverage?: boolean;
|
|
348
|
+
}
|
|
349
|
+
export interface XLSXSharedFormula {
|
|
350
|
+
formula: string;
|
|
351
|
+
refCellXc: string;
|
|
352
|
+
}
|
|
353
|
+
export interface XLSXColor {
|
|
354
|
+
auto?: boolean;
|
|
355
|
+
indexed?: number;
|
|
356
|
+
rgb?: string;
|
|
357
|
+
tint?: number;
|
|
358
|
+
}
|
|
359
|
+
export interface XLSXFigureAnchor {
|
|
360
|
+
col: number;
|
|
361
|
+
colOffset: number;
|
|
362
|
+
row: number;
|
|
363
|
+
rowOffset: number;
|
|
364
|
+
}
|
|
365
|
+
export interface XLSXFigureSize {
|
|
366
|
+
cx: number;
|
|
367
|
+
cy: number;
|
|
368
|
+
}
|
|
369
|
+
export interface XLSXFigure {
|
|
370
|
+
anchors: XLSXFigureAnchor[];
|
|
371
|
+
data: ExcelChartDefinition | ExcelImage;
|
|
372
|
+
}
|
|
373
|
+
export declare const XLSX_CHART_TYPES: readonly ["areaChart", "area3DChart", "lineChart", "line3DChart", "stockChart", "radarChart", "scatterChart", "pieChart", "pie3DChart", "doughnutChart", "barChart", "bar3DChart", "ofPieChart", "surfaceChart", "surface3DChart", "bubbleChart"];
|
|
374
|
+
export type XLSXChartType = (typeof XLSX_CHART_TYPES)[number];
|
|
375
|
+
/** An XLSX File is a main XML file and optionally a corresponding rel file */
|
|
376
|
+
export interface XLSXImportFile {
|
|
377
|
+
file: XMLFile;
|
|
378
|
+
rels?: XMLFile;
|
|
379
|
+
}
|
|
380
|
+
export interface XMLFile {
|
|
381
|
+
fileName: string;
|
|
382
|
+
xml: XMLDocument;
|
|
383
|
+
}
|
|
384
|
+
export interface XLSXHyperLink {
|
|
385
|
+
xc: string;
|
|
386
|
+
location?: string;
|
|
387
|
+
display?: string;
|
|
388
|
+
relTarget?: string;
|
|
389
|
+
}
|
|
390
|
+
export interface XLSXTableStyleInfo {
|
|
391
|
+
name?: string;
|
|
392
|
+
showFirstColumn?: boolean;
|
|
393
|
+
showLastColumn?: boolean;
|
|
394
|
+
showRowStripes?: boolean;
|
|
395
|
+
showColumnStripes?: boolean;
|
|
396
|
+
}
|
|
397
|
+
export interface XLSXTableCol {
|
|
398
|
+
name: string;
|
|
399
|
+
id: string;
|
|
400
|
+
colFormula?: string;
|
|
401
|
+
}
|
|
402
|
+
export interface XLSXTable {
|
|
403
|
+
displayName: string;
|
|
404
|
+
name?: string;
|
|
405
|
+
id: string;
|
|
406
|
+
ref: string;
|
|
407
|
+
headerRowCount: number;
|
|
408
|
+
totalsRowCount: number;
|
|
409
|
+
cols: XLSXTableCol[];
|
|
410
|
+
style?: XLSXTableStyleInfo;
|
|
411
|
+
autoFilter?: XLSXAutoFilter;
|
|
412
|
+
}
|
|
413
|
+
export interface XLSXAutoFilter {
|
|
414
|
+
zone: string;
|
|
415
|
+
columns: XLSXFilterColumn[];
|
|
416
|
+
}
|
|
417
|
+
export interface XLSXFilterColumn {
|
|
418
|
+
colId: number;
|
|
419
|
+
hiddenButton?: boolean;
|
|
420
|
+
filters: XLSXSimpleFilter[];
|
|
421
|
+
}
|
|
422
|
+
export interface XLSXSimpleFilter {
|
|
423
|
+
val: string;
|
|
424
|
+
}
|
|
425
|
+
export interface XLSXExternalBook {
|
|
426
|
+
rId: string;
|
|
427
|
+
sheetNames: string[];
|
|
428
|
+
datasets: XLSXExternalSheetData[];
|
|
429
|
+
}
|
|
430
|
+
export interface XLSXExternalSheetData {
|
|
431
|
+
sheetId: number;
|
|
432
|
+
data: Record<string, string>;
|
|
433
|
+
}
|
|
434
|
+
export type XLSXSheetState = "visible" | "hidden" | "veryHidden";
|
|
435
|
+
export interface XLSXSheetWorkbookInfo {
|
|
436
|
+
relationshipId: string;
|
|
437
|
+
sheetId: string;
|
|
438
|
+
sheetName: string;
|
|
439
|
+
state: XLSXSheetState;
|
|
440
|
+
}
|
|
441
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { IconSetType } from "../components/icons/icons";
|
|
2
|
+
import { ExcelIconSet } from "../types/xlsx";
|
|
3
|
+
/** In XLSX color format (no #) */
|
|
4
|
+
export declare const AUTO_COLOR = "000000";
|
|
5
|
+
export declare const XLSX_ICONSET_MAP: Record<IconSetType, ExcelIconSet>;
|
|
6
|
+
export declare const NAMESPACE: {
|
|
7
|
+
styleSheet: string;
|
|
8
|
+
sst: string;
|
|
9
|
+
Relationships: string;
|
|
10
|
+
Types: string;
|
|
11
|
+
worksheet: string;
|
|
12
|
+
workbook: string;
|
|
13
|
+
drawing: string;
|
|
14
|
+
table: string;
|
|
15
|
+
revision: string;
|
|
16
|
+
revision3: string;
|
|
17
|
+
markupCompatibility: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const DRAWING_NS_A = "http://schemas.openxmlformats.org/drawingml/2006/main";
|
|
20
|
+
export declare const DRAWING_NS_C = "http://schemas.openxmlformats.org/drawingml/2006/chart";
|
|
21
|
+
export declare const CONTENT_TYPES: {
|
|
22
|
+
readonly workbook: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml";
|
|
23
|
+
readonly sheet: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml";
|
|
24
|
+
readonly metadata: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml";
|
|
25
|
+
readonly sharedStrings: "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml";
|
|
26
|
+
readonly styles: "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml";
|
|
27
|
+
readonly drawing: "application/vnd.openxmlformats-officedocument.drawing+xml";
|
|
28
|
+
readonly chart: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml";
|
|
29
|
+
readonly themes: "application/vnd.openxmlformats-officedocument.theme+xml";
|
|
30
|
+
readonly table: "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml";
|
|
31
|
+
readonly pivot: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml";
|
|
32
|
+
readonly externalLink: "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml";
|
|
33
|
+
};
|
|
34
|
+
export declare const XLSX_RELATION_TYPE: {
|
|
35
|
+
readonly document: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
36
|
+
readonly sheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet";
|
|
37
|
+
readonly metadata: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata";
|
|
38
|
+
readonly sharedStrings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";
|
|
39
|
+
readonly styles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";
|
|
40
|
+
readonly drawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";
|
|
41
|
+
readonly chart: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart";
|
|
42
|
+
readonly theme: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";
|
|
43
|
+
readonly table: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table";
|
|
44
|
+
readonly hyperlink: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
45
|
+
readonly image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
|
|
46
|
+
};
|
|
47
|
+
export declare const ARRAY_FORMULA_URI = "bdbb8cdc-fa1e-496e-a857-3c3f30c029c3";
|
|
48
|
+
export declare const RELATIONSHIP_NSR = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
|
|
49
|
+
export declare const HEIGHT_FACTOR = 0.75;
|
|
50
|
+
/**
|
|
51
|
+
* Excel says its default column width is 8.43 characters (64px)
|
|
52
|
+
* which makes WIDTH_FACTOR = 0.1317, but it doesn't work well
|
|
53
|
+
* 0.143 is a value from dev's experiments.
|
|
54
|
+
*/
|
|
55
|
+
export declare const WIDTH_FACTOR = 0.143;
|
|
56
|
+
/** unit : maximum number of characters a column can hold at the standard font size. What. */
|
|
57
|
+
export declare const EXCEL_DEFAULT_COL_WIDTH = 8.43;
|
|
58
|
+
/** unit : points */
|
|
59
|
+
export declare const EXCEL_DEFAULT_ROW_HEIGHT = 12.75;
|
|
60
|
+
export declare const EXCEL_IMPORT_DEFAULT_NUMBER_OF_COLS = 30;
|
|
61
|
+
export declare const EXCEL_IMPORT_DEFAULT_NUMBER_OF_ROWS = 100;
|
|
62
|
+
export declare const FIRST_NUMFMT_ID = 164;
|
|
63
|
+
interface functionDefaultArg {
|
|
64
|
+
type: "NUMBER";
|
|
65
|
+
value: number;
|
|
66
|
+
}
|
|
67
|
+
export declare const FORCE_DEFAULT_ARGS_FUNCTIONS: Record<string, functionDefaultArg[]>;
|
|
68
|
+
/**
|
|
69
|
+
* This list contains all "future" functions that are not compatible with older versions of Excel
|
|
70
|
+
* For more information, see https://docs.microsoft.com/en-us/openspecs/office_standards/ms-xlsx/5d1b6d44-6fc1-4ecd-8fef-0b27406cc2bf
|
|
71
|
+
*/
|
|
72
|
+
export declare const NON_RETROCOMPATIBLE_FUNCTIONS: string[];
|
|
73
|
+
export declare const CONTENT_TYPES_FILE = "[Content_Types].xml";
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ConditionalFormat } from "../../types";
|
|
2
|
+
import { XLSXConditionalFormat, XLSXDxf } from "../../types/xlsx";
|
|
3
|
+
import { XLSXImportWarningManager } from "../helpers/xlsx_parser_error_manager";
|
|
4
|
+
export declare function convertConditionalFormats(xlsxCfs: XLSXConditionalFormat[], dxfs: XLSXDxf[], warningManager: XLSXImportWarningManager): ConditionalFormat[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Color } from "../../types";
|
|
2
|
+
import { XLSXColor } from "../../types/xlsx";
|
|
3
|
+
/**
|
|
4
|
+
* Most of the functions could stay private, but are exported for testing purposes
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* Extract the color referenced inside of an XML element and return it as an hex string #RRGGBBAA (or #RRGGBB
|
|
9
|
+
* if alpha = FF)
|
|
10
|
+
*
|
|
11
|
+
* The color is an attribute of the element that can be :
|
|
12
|
+
* - rgb : an rgb string
|
|
13
|
+
* - theme : a reference to a theme element
|
|
14
|
+
* - auto : automatic coloring. Return const AUTO_COLOR in constants.ts.
|
|
15
|
+
* - indexed : a legacy indexing scheme for colors. The only value that should be present in a xlsx is
|
|
16
|
+
* 64 = System Foreground, that we can replace with AUTO_COLOR.
|
|
17
|
+
*/
|
|
18
|
+
export declare function convertColor(xlsxColor: XLSXColor | undefined): Color | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Convert a hex + alpha color string to an integer representation. Also remove the alpha.
|
|
21
|
+
*
|
|
22
|
+
* eg. #FF0000FF => 4278190335
|
|
23
|
+
*/
|
|
24
|
+
export declare function hexaToInt(hex: Color): number;
|