@odoo/o-spreadsheet 19.5.0-alpha.2 → 19.5.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/dist/material_symbols_outlined.css +9 -0
  2. package/dist/o_spreadsheet.cjs +53040 -49146
  3. package/dist/o_spreadsheet.css +330 -157
  4. package/dist/o_spreadsheet.esm.js +52813 -48924
  5. package/dist/o_spreadsheet.iife.js +49777 -45883
  6. package/dist/o_spreadsheet.min.iife.js +413 -359
  7. package/dist/o_spreadsheet.xml +505 -332
  8. package/dist/types/actions/action.d.ts +1 -7
  9. package/dist/types/actions/data_actions.d.ts +2 -0
  10. package/dist/types/actions/menu_items_actions.d.ts +5 -2
  11. package/dist/types/clipboard_handlers/default_clipboard.d.ts +1 -1
  12. package/dist/types/collaborative/command_squisher.d.ts +1 -1
  13. package/dist/types/collaborative/ot/ot_helpers.d.ts +3 -1
  14. package/dist/types/collaborative/session.d.ts +3 -1
  15. package/dist/types/components/autofill/autofill.d.ts +3 -0
  16. package/dist/types/{plugins/ui_feature/autofill.d.ts → components/autofill/autofill_store.d.ts} +7 -12
  17. package/dist/types/components/autofill/table_autofill_store.d.ts +6 -0
  18. package/dist/types/components/border_editor/border_editor_widget.d.ts +1 -0
  19. package/dist/types/components/bottom_bar/bottom_bar_statistic/bottom_bar_statistic.d.ts +3 -0
  20. package/dist/types/components/clickable_cells_overlay/clickable_cells_overlay.d.ts +20 -0
  21. package/dist/types/components/collaborative_client_tag/collaborative_client_tag.d.ts +2 -0
  22. package/dist/types/components/composer/composer/abstract_composer_store.d.ts +3 -2
  23. package/dist/types/components/composer/composer/composer.d.ts +2 -1
  24. package/dist/types/components/composer/grid_composer/grid_composer.d.ts +1 -0
  25. package/dist/types/components/dashboard/clickable_cell_sort_icon/clickable_cell_sort_icon.d.ts +1 -1
  26. package/dist/types/components/dashboard/clickable_cell_store.d.ts +1 -0
  27. package/dist/types/components/dashboard/dashboard.d.ts +7 -12
  28. package/dist/types/components/error_tooltip/error_tooltip.d.ts +2 -0
  29. package/dist/types/components/figures/chart/chartJs/chartjs_geo_projection_plugin.d.ts +12 -0
  30. package/dist/types/components/figures/chart/chartJs/zoomable_chart/zoomable_chartjs.d.ts +1 -0
  31. package/dist/types/components/figures/chart/gauge/gauge_chart_component.d.ts +1 -0
  32. package/dist/types/components/figures/chart/scorecard/chart_scorecard.d.ts +1 -0
  33. package/dist/types/components/figures/figure/figure.d.ts +10 -9
  34. package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +16 -1
  35. package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -2
  36. package/dist/types/components/figures/figure_container/figure_container.d.ts +9 -4
  37. package/dist/types/components/figures/figure_image/figure_image.d.ts +1 -2
  38. package/dist/types/components/filters/filter_menu/filter_menu.d.ts +1 -0
  39. package/dist/types/components/full_screen_figure/full_screen_figure.d.ts +12 -1
  40. package/dist/types/components/grid/grid.d.ts +10 -0
  41. package/dist/types/components/grid_add_rows_footer/grid_add_rows_footer.d.ts +1 -0
  42. package/dist/types/components/grid_overlay/grid_overlay.d.ts +8 -4
  43. package/dist/types/components/grid_popover/grid_popover.d.ts +1 -0
  44. package/dist/types/components/header_group/header_group_container.d.ts +2 -0
  45. package/dist/types/components/headers_overlay/headers_overlay.d.ts +5 -0
  46. package/dist/types/components/headers_overlay/unhide_headers.d.ts +4 -0
  47. package/dist/types/components/helpers/chart_drag_and_drop.d.ts +15 -0
  48. package/dist/types/components/helpers/dom_helpers.d.ts +5 -2
  49. package/dist/types/components/helpers/draw_grid_hook.d.ts +1 -2
  50. package/dist/types/components/helpers/figure_drag_helper.d.ts +3 -3
  51. package/dist/types/components/helpers/figure_snap_helper.d.ts +9 -4
  52. package/dist/types/components/helpers/wheel_hook.d.ts +1 -1
  53. package/dist/types/components/helpers/zoom.d.ts +0 -14
  54. package/dist/types/components/highlight/border/border.d.ts +2 -0
  55. package/dist/types/components/highlight/corner/corner.d.ts +1 -0
  56. package/dist/types/components/highlight/highlight/highlight.d.ts +3 -0
  57. package/dist/types/components/link/link_display/link_display.d.ts +1 -0
  58. package/dist/types/components/link/link_editor/link_editor.d.ts +3 -1
  59. package/dist/types/components/paint_format_button/paint_format_store.d.ts +1 -1
  60. package/dist/types/components/popover/cell_popover_store.d.ts +2 -1
  61. package/dist/types/components/popover/popover.d.ts +0 -1
  62. package/dist/types/components/popover/popover_container_owl_plugin.d.ts +5 -0
  63. package/dist/types/components/props_validation.d.ts +7 -7
  64. package/dist/types/components/scrollbar/scrollbar_horizontal.d.ts +3 -0
  65. package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +5 -1
  66. package/dist/types/components/selection_input/selection_input_store.d.ts +1 -1
  67. package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +20 -2
  68. package/dist/types/components/side_panel/chart/building_blocks/chart_title/chart_title.d.ts +1 -0
  69. package/dist/types/components/side_panel/chart/building_blocks/color_scale/color_scale_picker.d.ts +1 -1
  70. package/dist/types/components/side_panel/chart/calendar_chart/calendar_chart_config_panel.d.ts +0 -2
  71. package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +5 -18
  72. package/dist/types/components/side_panel/chart/chart_type_picker_popover/chart_type_picker_popover.d.ts +63 -0
  73. package/dist/types/components/side_panel/chart/common.d.ts +1 -1
  74. package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_config_panel.d.ts +6 -10
  75. package/dist/types/components/side_panel/components/radio_selection/radio_selection.d.ts +1 -1
  76. package/dist/types/components/side_panel/conditional_formatting/cf_editor/cell_is_rule_editor.d.ts +1 -1
  77. package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor.d.ts +1 -1
  78. package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor_threshold.d.ts +1 -1
  79. package/dist/types/components/side_panel/conditional_formatting/cf_editor/data_bar_rule_editor.d.ts +1 -1
  80. package/dist/types/components/side_panel/conditional_formatting/cf_editor/icon_set_rule_editor.d.ts +1 -1
  81. package/dist/types/components/side_panel/data_analysis/chart_suggestion_preview.d.ts +19 -0
  82. package/dist/types/components/side_panel/data_analysis/data_analysis_panel.d.ts +17 -0
  83. package/dist/types/components/side_panel/data_analysis/data_analysis_store.d.ts +15 -0
  84. package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup.d.ts +28 -0
  85. package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup_store.d.ts +13 -0
  86. package/dist/types/components/side_panel/find_and_replace/find_and_replace.d.ts +1 -0
  87. package/dist/types/components/side_panel/find_and_replace/find_and_replace_store.d.ts +3 -1
  88. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +1 -8
  89. package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.d.ts +1 -0
  90. package/dist/types/components/side_panel/remove_duplicates/remove_duplicates.d.ts +3 -10
  91. package/dist/types/components/side_panel/side_panel/side_panel_store.d.ts +3 -2
  92. package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +4 -11
  93. package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_store.d.ts +33 -0
  94. package/dist/types/components/side_panel/table_panel/table_panel.d.ts +6 -0
  95. package/dist/types/components/side_panel/table_style_editor_panel/table_style_editor_panel.d.ts +2 -0
  96. package/dist/types/components/small_bottom_bar/small_bottom_bar.d.ts +1 -0
  97. package/dist/types/components/spreadsheet/spreadsheet.d.ts +12 -5
  98. package/dist/types/components/spreadsheet_print/print_iframe.d.ts +15 -0
  99. package/dist/types/components/spreadsheet_print/spreadsheet_print.d.ts +4 -0
  100. package/dist/types/components/standalone_grid_canvas/carousel_data_view_print.d.ts +32 -0
  101. package/dist/types/components/standalone_grid_canvas/standalone_grid_canvas.d.ts +397 -2
  102. package/dist/types/components/standalone_viewport/standalone_viewport.d.ts +59 -0
  103. package/dist/types/components/standalone_viewport/standalone_viewport_store.d.ts +29 -0
  104. package/dist/types/components/tables/hovered_table_store.d.ts +7 -11
  105. package/dist/types/components/tables/table_resizer/table_resizer.d.ts +2 -0
  106. package/dist/types/components/tables/table_styles_popover/table_styles_popover.d.ts +0 -1
  107. package/dist/types/components/top_bar/color_editor/color_editor.d.ts +1 -1
  108. package/dist/types/components/top_bar/zoom_editor/zoom_editor.d.ts +2 -1
  109. package/dist/types/constants.d.ts +17 -2
  110. package/dist/types/formulas/code_builder.d.ts +2 -1
  111. package/dist/types/formulas/compiler.d.ts +8 -1
  112. package/dist/types/functions/create_compute_function.d.ts +4 -3
  113. package/dist/types/functions/function_registry.d.ts +4 -5
  114. package/dist/types/functions/helper_lookup.d.ts +1 -1
  115. package/dist/types/functions/helper_matrices.d.ts +1 -0
  116. package/dist/types/functions/helper_statistical.d.ts +6 -0
  117. package/dist/types/functions/helpers.d.ts +4 -0
  118. package/dist/types/functions/module_array.d.ts +41 -23
  119. package/dist/types/functions/module_database.d.ts +18 -6
  120. package/dist/types/functions/module_date.d.ts +70 -22
  121. package/dist/types/functions/module_engineering.d.ts +3 -1
  122. package/dist/types/functions/module_filter.d.ts +2 -2
  123. package/dist/types/functions/module_financial.d.ts +105 -35
  124. package/dist/types/functions/module_info.d.ts +33 -11
  125. package/dist/types/functions/module_logical.d.ts +16 -8
  126. package/dist/types/functions/module_lookup.d.ts +23 -15
  127. package/dist/types/functions/module_math.d.ts +125 -43
  128. package/dist/types/functions/module_operators.d.ts +7 -3
  129. package/dist/types/functions/module_statistical.d.ts +78 -22
  130. package/dist/types/functions/module_text.d.ts +75 -26
  131. package/dist/types/functions/module_web.d.ts +3 -1
  132. package/dist/types/helpers/carousel_helpers.d.ts +15 -3
  133. package/dist/types/helpers/cells/cell_evaluation.d.ts +1 -1
  134. package/dist/types/helpers/color.d.ts +1 -1
  135. package/dist/types/helpers/color_themes.d.ts +2 -0
  136. package/dist/types/helpers/data_analysis.d.ts +17 -0
  137. package/dist/types/helpers/figures/chart.d.ts +9 -6
  138. package/dist/types/helpers/figures/charts/chart_common.d.ts +3 -5
  139. package/dist/types/helpers/figures/charts/chart_data_source_helpers.d.ts +10 -0
  140. package/dist/types/helpers/figures/charts/chart_data_sources.d.ts +3 -3
  141. package/dist/types/helpers/figures/charts/chart_suggestion_engine.d.ts +8 -0
  142. package/dist/types/helpers/figures/charts/chart_ui_common.d.ts +11 -4
  143. package/dist/types/helpers/figures/charts/charts_suggestions_constants.d.ts +37 -0
  144. package/dist/types/helpers/figures/charts/gauge_chart_rendering.d.ts +6 -2
  145. package/dist/types/helpers/figures/charts/runtime/chart_data_extractor.d.ts +13 -12
  146. package/dist/types/helpers/figures/charts/runtime/chartjs_title.d.ts +2 -2
  147. package/dist/types/helpers/figures/figure/figure.d.ts +3 -2
  148. package/dist/types/helpers/filter_helpers.d.ts +2 -2
  149. package/dist/types/helpers/internal_viewport.d.ts +19 -10
  150. package/dist/types/helpers/links.d.ts +1 -1
  151. package/dist/types/helpers/misc.d.ts +2 -0
  152. package/dist/types/helpers/owl3_helpers.d.ts +4 -0
  153. package/dist/types/helpers/pivot/pivot_composer_helpers.d.ts +1 -1
  154. package/dist/types/helpers/pivot/pivot_highlight.d.ts +2 -2
  155. package/dist/types/helpers/pivot/pivot_presentation.d.ts +2 -2
  156. package/dist/types/helpers/pivot/pivot_registry.d.ts +4 -5
  157. package/dist/types/helpers/pivot/spreadsheet_pivot/runtime_definition_spreadsheet_pivot.d.ts +2 -2
  158. package/dist/types/helpers/range.d.ts +1 -1
  159. package/dist/types/helpers/rectangle.d.ts +4 -0
  160. package/dist/types/helpers/text_helper.d.ts +1 -1
  161. package/dist/types/helpers/ui/split_to_columns_interactive.d.ts +1 -1
  162. package/dist/types/helpers/viewport_collection.d.ts +50 -21
  163. package/dist/types/helpers/zones.d.ts +1 -0
  164. package/dist/types/index.d.ts +39 -9
  165. package/dist/types/model.d.ts +18 -10
  166. package/dist/types/owl3_compatibility_layer.d.ts +1 -14
  167. package/dist/types/plugins/core/carousel.d.ts +8 -4
  168. package/dist/types/plugins/core/cell.d.ts +1 -0
  169. package/dist/types/plugins/core/chart.d.ts +2 -0
  170. package/dist/types/plugins/core/conditional_format.d.ts +2 -0
  171. package/dist/types/plugins/core/data_validation.d.ts +2 -0
  172. package/dist/types/plugins/core/formulas_provider.d.ts +8 -0
  173. package/dist/types/plugins/core/image.d.ts +2 -1
  174. package/dist/types/plugins/core/pivot.d.ts +1 -0
  175. package/dist/types/plugins/core/range.d.ts +4 -2
  176. package/dist/types/plugins/core/squisher.d.ts +7 -2
  177. package/dist/types/plugins/core/tables.d.ts +2 -1
  178. package/dist/types/plugins/core/unsquisher.d.ts +1 -1
  179. package/dist/types/plugins/core_plugin.d.ts +8 -4
  180. package/dist/types/plugins/{ui_feature → evaluation}/cell_computed_style.d.ts +4 -4
  181. package/dist/types/plugins/{ui_core_views/cell_evaluation/evaluation_plugin.d.ts → evaluation/cell_evaluation/cell_evaluation_plugin.d.ts} +14 -7
  182. package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/compilation_parameters.d.ts +2 -2
  183. package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/evaluator.d.ts +2 -2
  184. package/dist/types/plugins/{ui_core_views → evaluation}/custom_colors.d.ts +5 -5
  185. package/dist/types/plugins/{ui_core_views → evaluation}/dynamic_tables.d.ts +4 -4
  186. package/dist/types/plugins/{ui_feature → evaluation}/dynamic_translate.d.ts +2 -2
  187. package/dist/types/plugins/evaluation/evaluation_chart.d.ts +27 -0
  188. package/dist/types/plugins/{ui_core_views → evaluation}/evaluation_conditional_format.d.ts +4 -4
  189. package/dist/types/plugins/{ui_core_views → evaluation}/evaluation_data_validation.d.ts +4 -4
  190. package/dist/types/plugins/{ui_stateful → evaluation}/filter_evaluation.d.ts +7 -8
  191. package/dist/types/plugins/{ui_core_views → evaluation}/fingerprint.d.ts +2 -2
  192. package/dist/types/plugins/evaluation/formula_tracker.d.ts +8 -0
  193. package/dist/types/plugins/evaluation/geo_loader.d.ts +13 -0
  194. package/dist/types/plugins/{ui_core_views → evaluation}/header_sizes_ui.d.ts +5 -5
  195. package/dist/types/plugins/{ui_feature/header_visibility_ui.d.ts → evaluation/header_visibility_evaluation.d.ts} +2 -2
  196. package/dist/types/plugins/evaluation/pivot_presence_plugin.d.ts +12 -0
  197. package/dist/types/plugins/{ui_core_views → evaluation}/pivot_ui.d.ts +9 -6
  198. package/dist/types/plugins/evaluation/subtotal_evaluation.d.ts +5 -0
  199. package/dist/types/plugins/{ui_feature → evaluation}/table_computed_style.d.ts +7 -7
  200. package/dist/types/plugins/evaluation_plugin.d.ts +31 -0
  201. package/dist/types/plugins/plugin_registries.d.ts +11 -5
  202. package/dist/types/plugins/ui_feature/chart_ui.d.ts +6 -0
  203. package/dist/types/plugins/ui_feature/collaborative.d.ts +2 -1
  204. package/dist/types/plugins/ui_feature/color_theme.d.ts +0 -3
  205. package/dist/types/plugins/ui_feature/geo_features.d.ts +1 -6
  206. package/dist/types/plugins/ui_feature/ui_options.d.ts +1 -7
  207. package/dist/types/plugins/ui_feature/ui_sheet.d.ts +2 -1
  208. package/dist/types/plugins/ui_plugin.d.ts +1 -4
  209. package/dist/types/plugins/ui_stateful/carousel_ui.d.ts +2 -2
  210. package/dist/types/plugins/{ui_core_views → ui_stateful}/cell_icon_plugin.d.ts +2 -2
  211. package/dist/types/plugins/{ui_feature → ui_stateful}/figure.d.ts +4 -0
  212. package/dist/types/plugins/ui_stateful/header_positions.d.ts +2 -1
  213. package/dist/types/registries/chart_data_source_registry.d.ts +4 -5
  214. package/dist/types/registries/chart_registry.d.ts +7 -4
  215. package/dist/types/registries/criterion_registry.d.ts +4 -4
  216. package/dist/types/registries/data_source_registry.d.ts +15 -0
  217. package/dist/types/registries/evaluation_registry.d.ts +2 -2
  218. package/dist/types/registries/figures_registry.d.ts +6 -2
  219. package/dist/types/store_engine/dependency_container.d.ts +5 -0
  220. package/dist/types/store_engine/store_hooks.d.ts +6 -0
  221. package/dist/types/store_engine/store_registries.d.ts +4 -0
  222. package/dist/types/stores/array_formula_highlight.d.ts +1 -1
  223. package/dist/types/{plugins/ui_feature/automatic_sum.d.ts → stores/automatic_sum_store.d.ts} +5 -4
  224. package/dist/types/stores/cell_hover_overlay_store.d.ts +15 -0
  225. package/dist/types/stores/chart_drag_store.d.ts +10 -0
  226. package/dist/types/stores/checkbox_toggle.d.ts +9 -0
  227. package/dist/types/stores/client_focus_store.d.ts +1 -0
  228. package/dist/types/{plugins/ui_stateful/clipboard.d.ts → stores/clipboard_store.d.ts} +11 -11
  229. package/dist/types/stores/data_cleanup_store.d.ts +31 -0
  230. package/dist/types/stores/grid_renderer_store.d.ts +3 -2
  231. package/dist/types/stores/main_viewport_store.d.ts +14 -0
  232. package/dist/types/stores/spreadsheet_store.d.ts +1 -1
  233. package/dist/types/stores/table_resize_store.d.ts +6 -0
  234. package/dist/types/stores/trim_whitespace_store.d.ts +9 -0
  235. package/dist/types/stores/viewports_store.d.ts +85 -0
  236. package/dist/types/stores/zoom_store.d.ts +27 -0
  237. package/dist/types/types/chart/chart.d.ts +3 -1
  238. package/dist/types/types/chart/chart_suggestion.d.ts +137 -0
  239. package/dist/types/types/chart/radar_chart.d.ts +1 -1
  240. package/dist/types/types/chart/scorecard_chart.d.ts +3 -4
  241. package/dist/types/types/collaborative/transport_service.d.ts +1 -0
  242. package/dist/types/types/commands.d.ts +55 -68
  243. package/dist/types/types/figure.d.ts +26 -3
  244. package/dist/types/types/functions.d.ts +16 -6
  245. package/dist/types/types/getters.d.ts +126 -28
  246. package/dist/types/types/misc.d.ts +19 -1
  247. package/dist/types/types/model.d.ts +2 -4
  248. package/dist/types/types/range.d.ts +1 -0
  249. package/dist/types/types/rendering.d.ts +21 -1
  250. package/dist/types/types/store_engine.d.ts +10 -3
  251. package/package.json +6 -5
  252. package/dist/types/plugins/core_view_plugin.d.ts +0 -29
  253. package/dist/types/plugins/ui_core_views/evaluation_chart.d.ts +0 -26
  254. package/dist/types/plugins/ui_core_views/formula_tracker.d.ts +0 -8
  255. package/dist/types/plugins/ui_feature/checkbox_toggle.d.ts +0 -9
  256. package/dist/types/plugins/ui_feature/data_cleanup.d.ts +0 -16
  257. package/dist/types/plugins/ui_feature/pivot_presence_plugin.d.ts +0 -11
  258. package/dist/types/plugins/ui_feature/split_to_columns.d.ts +0 -21
  259. package/dist/types/plugins/ui_feature/subtotal_evaluation.d.ts +0 -5
  260. package/dist/types/plugins/ui_feature/table_autofill.d.ts +0 -6
  261. package/dist/types/plugins/ui_feature/table_resize_ui.d.ts +0 -6
  262. package/dist/types/plugins/ui_stateful/sheetview.d.ts +0 -123
  263. package/dist/types/types/core_getters.d.ts +0 -75
  264. /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/binary_grid.d.ts +0 -0
  265. /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/formula_dependency_graph.d.ts +0 -0
  266. /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/interval_tree.d.ts +0 -0
  267. /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/position_set.d.ts +0 -0
  268. /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/r_tree.d.ts +0 -0
  269. /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/range_set.d.ts +0 -0
  270. /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/spreading_relation.d.ts +0 -0
  271. /package/dist/types/plugins/{ui_core_views → evaluation}/cell_evaluation/zone_set.d.ts +0 -0
@@ -0,0 +1,63 @@
1
+ import { Component } from "../../../../owl3_compatibility_layer";
2
+ import { ChartType } from "../../../../types/chart/chart";
3
+ import { ChartSubtypeProperties } from "../../../../types/chart_subtype_properties";
4
+ import { SpreadsheetChildEnv } from "../../../../types/spreadsheet_env";
5
+ import { Popover } from "../../../popover/popover";
6
+ export declare class ChartTypePickerPopover extends Component<SpreadsheetChildEnv> {
7
+ static template: string;
8
+ static components: {
9
+ Popover: typeof Popover;
10
+ };
11
+ protected props: import("@odoo/owl").Props<{
12
+ onClose: () => void;
13
+ onSelectSubType: (type: string) => void;
14
+ supportedTypes: {
15
+ add: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst") => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
16
+ clear: () => void;
17
+ delete: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst") => boolean;
18
+ forEach: (callbackfn: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst", value2: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst", set: Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">) => void, thisArg?: any) => void;
19
+ has: (value: "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst") => boolean;
20
+ readonly size: number;
21
+ entries: () => SetIterator<["line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst", "line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst"]>;
22
+ keys: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
23
+ values: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
24
+ union: <U>(other: ReadonlySetLike<U>) => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst" | U>;
25
+ intersection: <U>(other: ReadonlySetLike<U>) => Set<("line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst") & U>;
26
+ difference: <U>(other: ReadonlySetLike<U>) => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
27
+ symmetricDifference: <U>(other: ReadonlySetLike<U>) => Set<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst" | U>;
28
+ isSubsetOf: (other: ReadonlySetLike<unknown>) => boolean;
29
+ isSupersetOf: (other: ReadonlySetLike<unknown>) => boolean;
30
+ isDisjointFrom: (other: ReadonlySetLike<unknown>) => boolean;
31
+ [Symbol.iterator]: () => SetIterator<"line" | "calendar" | "bar" | "scatter" | "bubble" | "pie" | "radar" | "treemap" | "funnel" | "geo" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "sunburst">;
32
+ readonly [Symbol.toStringTag]: string;
33
+ };
34
+ popoverProps: {
35
+ maxHeight?: import("../../../..").Pixel | undefined;
36
+ maxWidth?: import("../../../..").Pixel | undefined;
37
+ zIndex?: number | undefined;
38
+ class?: string | undefined;
39
+ anchorRect: import("../../../..").Rect;
40
+ positioning?: "top-right" | "bottom-left" | undefined;
41
+ verticalOffset?: number | undefined;
42
+ onMouseWheel?: (() => void) | undefined;
43
+ onPopoverHidden?: (() => void) | undefined;
44
+ onPopoverMoved?: (() => void) | undefined;
45
+ };
46
+ parentRef?: import("@odoo/owl").ReactiveValue<HTMLElement | null, HTMLElement | null> | undefined;
47
+ selectedChartSubType?: string | undefined;
48
+ }>;
49
+ categories: {
50
+ line: string;
51
+ column: string;
52
+ bar: string;
53
+ area: string;
54
+ pie: string;
55
+ hierarchical: string;
56
+ misc: string;
57
+ };
58
+ chartTypeByCategories: Record<string, ChartSubtypeProperties[]>;
59
+ popoverRef: import("@odoo/owl").Signal<HTMLElement | null>;
60
+ setup(): void;
61
+ onExternalClick(ev: MouseEvent): void;
62
+ onTypeChange(type: ChartType): void;
63
+ }
@@ -10,7 +10,7 @@ export interface ChartSidePanelProps<T extends ChartDefinition<string>> {
10
10
  export type ChartUpdateFunction<T extends ChartDefinition<string> = ChartDefinition<string>> = (chartId: UID, definition: Partial<T>) => DispatchResult;
11
11
  export declare const chartSidePanelPropsDefinition: {
12
12
  chartId: import("@odoo/owl").Type<UID>;
13
- definition: import("@odoo/owl").Type<{}>;
13
+ definition: import("@odoo/owl").ShapeType<{}, {}>;
14
14
  canUpdateChart: import("@odoo/owl").Type<ChartUpdateFunction<ChartDefinition<string>>>;
15
15
  updateChart: import("@odoo/owl").Type<ChartUpdateFunction<ChartDefinition<string>>>;
16
16
  };
@@ -2,32 +2,28 @@ import { Component } from "../../../../owl3_compatibility_layer";
2
2
  import { BaselineMode, ScorecardChartDefinition } from "../../../../types/chart/scorecard_chart";
3
3
  import { ValueAndLabel } from "../../../../types/misc";
4
4
  import { SpreadsheetChildEnv } from "../../../../types/spreadsheet_env";
5
+ import { StandaloneComposer } from "../../../composer/standalone_composer/standalone_composer";
5
6
  import { Select } from "../../../select/select";
6
- import { SelectionInput } from "../../../selection_input/selection_input";
7
7
  import { Section } from "../../components/section/section";
8
8
  import { ChartErrorSection } from "../building_blocks/error_section/error_section";
9
9
  import { ChartSidePanelProps } from "../common";
10
10
  export declare class ScorecardChartConfigPanel extends Component<SpreadsheetChildEnv> {
11
11
  static template: string;
12
12
  static components: {
13
- SelectionInput: typeof SelectionInput;
14
13
  ChartErrorSection: typeof ChartErrorSection;
15
14
  Section: typeof Section;
16
15
  Select: typeof Select;
16
+ StandaloneComposer: typeof StandaloneComposer;
17
17
  };
18
18
  protected props: ChartSidePanelProps<ScorecardChartDefinition>;
19
19
  private state;
20
20
  private keyValue;
21
21
  private baseline;
22
22
  get errorMessages(): string[];
23
- get isKeyValueInvalid(): boolean;
24
- get isBaselineInvalid(): boolean;
25
- onKeyValueRangeChanged(ranges: string[]): void;
26
- updateKeyValueRange(): void;
27
- getKeyValueRange(): string;
28
- onBaselineRangeChanged(ranges: string[]): void;
29
- updateBaselineRange(): void;
30
- getBaselineRange(): string;
23
+ onConfirmKeyValue(keyValue: string): void;
24
+ getKeyValue(): string;
25
+ onConfirmBaseline(baseline: string): void;
26
+ getBaseline(): string;
31
27
  updateBaselineMode(baselineMode: BaselineMode): void;
32
28
  get baselineModeOptions(): ValueAndLabel[];
33
29
  }
@@ -11,7 +11,7 @@ export declare class RadioSelection extends Component<SpreadsheetChildEnv> {
11
11
  onChange: (value: unknown) => void;
12
12
  selectedValue: string;
13
13
  name: string;
14
- direction: "vertical" | "horizontal";
14
+ direction: "horizontal" | "vertical";
15
15
  }, "direction">;
16
16
  }
17
17
  export {};
@@ -11,7 +11,7 @@ export declare class CellIsRuleEditor extends Component<SpreadsheetChildEnv> {
11
11
  Select: typeof Select;
12
12
  };
13
13
  protected props: import("@odoo/owl").Props<{
14
- store: import("../../../../types/store_engine").CQS<Pick<ConditionalFormattingEditorStore, "updateConditionalFormat" | "closeMenus"> & import("../../../../types/store_engine").OmitFunctions<ConditionalFormattingEditorStore>>;
14
+ store: import("../../../../types/store_engine").Store<ConditionalFormattingEditorStore>;
15
15
  }>;
16
16
  getTextDecoration: typeof getTextDecoration;
17
17
  get rule(): import("../../../..").CellIsRule;
@@ -8,6 +8,6 @@ export declare class ColorScaleRuleEditor extends Component<SpreadsheetChildEnv>
8
8
  ColorScaleRuleEditorThreshold: typeof ColorScaleRuleEditorThreshold;
9
9
  };
10
10
  protected props: import("@odoo/owl").Props<{
11
- store: import("../../../../types/store_engine").CQS<Pick<ConditionalFormattingEditorStore, "updateConditionalFormat" | "closeMenus"> & import("../../../../types/store_engine").OmitFunctions<ConditionalFormattingEditorStore>>;
11
+ store: import("../../../../types/store_engine").Store<ConditionalFormattingEditorStore>;
12
12
  }>;
13
13
  }
@@ -15,7 +15,7 @@ export declare class ColorScaleRuleEditorThreshold extends Component<Spreadsheet
15
15
  Select: typeof Select;
16
16
  };
17
17
  protected props: import("@odoo/owl").Props<{
18
- store: import("../../../../types/store_engine").CQS<Pick<ConditionalFormattingEditorStore, "updateConditionalFormat" | "closeMenus"> & import("../../../../types/store_engine").OmitFunctions<ConditionalFormattingEditorStore>>;
18
+ store: import("../../../../types/store_engine").Store<ConditionalFormattingEditorStore>;
19
19
  thresholdType: "minimum" | "maximum" | "midpoint";
20
20
  }>;
21
21
  get rule(): import("../../../..").ColorScaleRule;
@@ -11,7 +11,7 @@ export declare class DataBarRuleEditor extends Component<SpreadsheetChildEnv> {
11
11
  RoundColorPicker: typeof RoundColorPicker;
12
12
  };
13
13
  protected props: import("@odoo/owl").Props<{
14
- store: import("../../../../types/store_engine").CQS<Pick<ConditionalFormattingEditorStore, "updateConditionalFormat" | "closeMenus"> & import("../../../../types/store_engine").OmitFunctions<ConditionalFormattingEditorStore>>;
14
+ store: import("../../../../types/store_engine").Store<ConditionalFormattingEditorStore>;
15
15
  }>;
16
16
  get rule(): import("../../../..").DataBarRule;
17
17
  colorNumberToHex: typeof colorNumberToHex;
@@ -14,7 +14,7 @@ export declare class IconSetRuleEditor extends Component<SpreadsheetChildEnv> {
14
14
  Select: typeof Select;
15
15
  };
16
16
  protected props: import("@odoo/owl").Props<{
17
- store: import("../../../../types/store_engine").CQS<Pick<ConditionalFormattingEditorStore, "updateConditionalFormat" | "closeMenus"> & import("../../../../types/store_engine").OmitFunctions<ConditionalFormattingEditorStore>>;
17
+ store: import("../../../../types/store_engine").Store<ConditionalFormattingEditorStore>;
18
18
  }>;
19
19
  get rule(): import("../../../..").IconSetRule;
20
20
  getIconName(iconSet: "arrows" | "smiley" | "dots", iconType: "good" | "neutral" | "bad"): string;
@@ -0,0 +1,19 @@
1
+ import { Component } from "../../../owl3_compatibility_layer";
2
+ import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
3
+ export declare class ChartSuggestionPreview extends Component<SpreadsheetChildEnv> {
4
+ static template: string;
5
+ protected props: import("@odoo/owl").Props<{
6
+ definition: import("../../..").ChartDefinition<string>;
7
+ description: string;
8
+ onPointerDown: () => void;
9
+ }>;
10
+ private chartCanvasRef;
11
+ private chart?;
12
+ setup(): void;
13
+ private getChartConfiguration;
14
+ private getScalesCongif;
15
+ private scaleBubblePointRadius;
16
+ private updateChart;
17
+ private drawNativeChart;
18
+ private destroyChart;
19
+ }
@@ -0,0 +1,17 @@
1
+ import { Component } from "../../../owl3_compatibility_layer";
2
+ import { ChartDefinition } from "../../../types/chart/chart";
3
+ import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
4
+ import { Store } from "../../../types/store_engine";
5
+ import { Section } from "../components/section/section";
6
+ import { ChartSuggestionPreview } from "./chart_suggestion_preview";
7
+ import { DataAnalysisStore } from "./data_analysis_store";
8
+ export declare class DataAnalysisPanel extends Component<SpreadsheetChildEnv> {
9
+ static template: string;
10
+ static components: {
11
+ Section: typeof Section;
12
+ ChartSuggestionPreview: typeof ChartSuggestionPreview;
13
+ };
14
+ store: Store<DataAnalysisStore>;
15
+ setup(): void;
16
+ onStartChartSuggestionDrag(definition: ChartDefinition, ev: MouseEvent): void;
17
+ }
@@ -0,0 +1,15 @@
1
+ import { ChartSuggestion } from "../../../helpers/figures/charts/chart_suggestion_engine";
2
+ import { SpreadsheetStore } from "../../../stores/spreadsheet_store";
3
+ import { Command } from "../../../types/commands";
4
+ import { Get } from "../../../types/store_engine";
5
+ export declare class DataAnalysisStore extends SpreadsheetStore {
6
+ mutators: readonly [];
7
+ hasData: boolean;
8
+ chartSuggestions: ChartSuggestion[];
9
+ private isDirty;
10
+ ranges?: string[];
11
+ constructor(get: Get);
12
+ handle(cmd: Command): void;
13
+ finalize(): void;
14
+ private refresh;
15
+ }
@@ -0,0 +1,28 @@
1
+ import { Component } from "../../../owl3_compatibility_layer";
2
+ import { UID } from "../../../types/misc";
3
+ import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
4
+ import { Store } from "../../../types/store_engine";
5
+ import { Checkbox } from "../components/checkbox/checkbox";
6
+ import { Section } from "../components/section/section";
7
+ import { DataSourcesCleanupStore } from "./data_sources_cleanup_store";
8
+ interface State {
9
+ uncheckedDataSources: Record<UID, boolean>;
10
+ }
11
+ export declare class DataSourcesCleanup extends Component<SpreadsheetChildEnv> {
12
+ static template: string;
13
+ static components: {
14
+ Section: typeof Section;
15
+ Checkbox: typeof Checkbox;
16
+ };
17
+ state: State;
18
+ store: Store<DataSourcesCleanupStore>;
19
+ setup(): void;
20
+ onToggleDataSource(type: string, id: UID, checked: boolean): void;
21
+ isDataSourceChecked(type: string, id: UID): boolean;
22
+ get dataSourcesToDelete(): {
23
+ type: string;
24
+ id: UID;
25
+ }[];
26
+ onRemoveUnusedDataSources(): void;
27
+ }
28
+ export {};
@@ -0,0 +1,13 @@
1
+ import { UnusedDataSource } from "../../../registries/data_source_registry";
2
+ import { SpreadsheetStore } from "../../../stores/spreadsheet_store";
3
+ import { Command } from "../../../types/commands";
4
+ interface UnusedDataSourceCategory {
5
+ type: string;
6
+ label: string;
7
+ dataSources: UnusedDataSource[];
8
+ }
9
+ export declare class DataSourcesCleanupStore extends SpreadsheetStore {
10
+ protected handle(cmd: Command): void;
11
+ get unusedDataSourcesCategories(): UnusedDataSourceCategory[];
12
+ }
13
+ export {};
@@ -34,6 +34,7 @@ export declare class FindAndReplacePanel extends Component<SpreadsheetChildEnv>
34
34
  setup(): void;
35
35
  onFocusSearch(): void;
36
36
  onSearchInput(ev: InputEvent): void;
37
+ onReplaceInput(ev: InputEvent): void;
37
38
  onKeydownPanel(ev: KeyboardEvent): void;
38
39
  onKeydownSearch(ev: KeyboardEvent): void;
39
40
  onKeydownReplace(ev: KeyboardEvent): void;
@@ -5,7 +5,7 @@ import { SpreadsheetStore } from "../../../stores/spreadsheet_store";
5
5
  import { SearchOptions } from "../../../types/find_and_replace";
6
6
  import { Get } from "../../../types/store_engine";
7
7
  export declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
8
- mutators: readonly ["updateSearchOptions", "updateSearchContent", "searchFormulas", "selectPreviousMatch", "selectNextMatch", "replace"];
8
+ mutators: readonly ["updateSearchOptions", "updateSearchContent", "updateReplaceContent", "searchFormulas", "selectPreviousMatch", "selectNextMatch", "replace"];
9
9
  private allSheetsMatches;
10
10
  private activeSheetMatches;
11
11
  private specificRangeMatches;
@@ -20,6 +20,7 @@ export declare class FindAndReplaceStore extends SpreadsheetStore implements Hig
20
20
  private isSearchDirty;
21
21
  private shouldFinalizeUpdateSelection;
22
22
  private notificationStore;
23
+ private viewStore;
23
24
  selectedMatchIndex: number | null;
24
25
  toSearch: string;
25
26
  toReplace: string;
@@ -27,6 +28,7 @@ export declare class FindAndReplaceStore extends SpreadsheetStore implements Hig
27
28
  constructor(get: Get);
28
29
  get searchMatches(): CellPosition[];
29
30
  updateSearchContent(toSearch: string): void;
31
+ updateReplaceContent(toReplace: string): void;
30
32
  updateSearchOptions(searchOptions: Partial<SearchOptions>): void;
31
33
  searchFormulas(showFormula: boolean): void;
32
34
  selectPreviousMatch(): void;
@@ -39,18 +39,11 @@ export declare class PivotLayoutConfigurator extends Component<SpreadsheetChildE
39
39
  private dimensionsRef;
40
40
  private dragAndDrop;
41
41
  AGGREGATORS: {};
42
- private composerFocus;
43
42
  isDateOrDatetimeField: typeof isDateOrDatetimeField;
44
- setup(): void;
45
43
  startDragAndDrop(dimension: PivotDimensionType, event: MouseEvent): void;
46
44
  getGranularitiesFor(field: PivotField): string[];
47
45
  startDragAndDropMeasures(measure: PivotMeasure, event: MouseEvent): void;
48
- getDimensionElementsRects(): {
49
- x: number;
50
- y: number;
51
- width: number;
52
- height: number;
53
- }[];
46
+ getDimensionElementsRects(): import("../../../..").Rect[];
54
47
  removeDimension(dimension: PivotDimensionType): void;
55
48
  removeMeasureDimension(measure: PivotMeasure): void;
56
49
  addColumnDimension(fieldName: string): void;
@@ -10,6 +10,7 @@ export declare class PivotSidePanelStore extends SpreadsheetStore {
10
10
  private _updatesAreDeferred;
11
11
  private draft;
12
12
  private notification;
13
+ private viewStore;
13
14
  private alreadyNotified;
14
15
  private alreadyNotifiedForPivotSize;
15
16
  constructor(get: Get, pivotId: UID, updateMode?: "neverDefer" | "canDefer");
@@ -1,14 +1,10 @@
1
1
  import { Component } from "../../../owl3_compatibility_layer";
2
+ import { DataCleanupStore } from "../../../stores/data_cleanup_store";
2
3
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
4
+ import { Store } from "../../../types/store_engine";
3
5
  import { ValidationMessages } from "../../validation_messages/validation_messages";
4
6
  import { Checkbox } from "../components/checkbox/checkbox";
5
7
  import { Section } from "../components/section/section";
6
- interface RemoveDuplicatesState {
7
- hasHeader: boolean;
8
- columns: {
9
- [colIndex: number]: boolean;
10
- };
11
- }
12
8
  export declare class RemoveDuplicatesPanel extends Component<SpreadsheetChildEnv> {
13
9
  static template: string;
14
10
  static components: {
@@ -19,7 +15,7 @@ export declare class RemoveDuplicatesPanel extends Component<SpreadsheetChildEnv
19
15
  protected props: import("@odoo/owl").Props<{
20
16
  onCloseSidePanel: () => void;
21
17
  }>;
22
- state: RemoveDuplicatesState;
18
+ dataCleanupSore: Store<DataCleanupStore>;
23
19
  setup(): void;
24
20
  toggleHasHeader(): void;
25
21
  toggleAllColumns(): void;
@@ -30,7 +26,4 @@ export declare class RemoveDuplicatesPanel extends Component<SpreadsheetChildEnv
30
26
  get errorMessages(): string[];
31
27
  get selectionStatisticalInformation(): string;
32
28
  get canConfirm(): boolean;
33
- private updateColumns;
34
- private getColsToAnalyze;
35
29
  }
36
- export {};
@@ -23,14 +23,14 @@ interface PanelInfo {
23
23
  isCollapsed?: boolean;
24
24
  }
25
25
  export declare class SidePanelStore extends SpreadsheetStore {
26
- mutators: readonly ["open", "replace", "toggle", "close", "changePanelSize", "resetPanelSize", "togglePinPanel", "closeMainPanel", "changeSpreadsheetWidth", "toggleCollapsePanel"];
26
+ mutators: readonly ["open", "replace", "toggle", "close", "changePanelSize", "resetPanelSize", "togglePinPanel", "togglePinnedSidePanel", "closeMainPanel", "changeSpreadsheetWidth", "toggleCollapsePanel"];
27
27
  mainPanel: (PanelInfo & {
28
28
  isCollapsed?: boolean;
29
29
  isPinned?: boolean;
30
30
  }) | undefined;
31
31
  secondaryPanel: PanelInfo | undefined;
32
32
  availableWidth: number;
33
- screenWidthStore: import("../../../types/store_engine").CQS<Pick<ScreenWidthStore, "setSmallThreshhold"> & import("../../../types/store_engine").OmitFunctions<ScreenWidthStore>>;
33
+ screenWidthStore: import("../../../types/store_engine").Store<ScreenWidthStore>;
34
34
  get isMainPanelOpen(): boolean;
35
35
  get isSecondaryPanelOpen(): boolean;
36
36
  get mainPanelProps(): SidePanelComponentProps | undefined;
@@ -49,6 +49,7 @@ export declare class SidePanelStore extends SpreadsheetStore {
49
49
  changePanelSize(panel: "mainPanel" | "secondaryPanel", size: number): void;
50
50
  resetPanelSize(panel: "mainPanel" | "secondaryPanel"): void;
51
51
  togglePinPanel(): void;
52
+ togglePinnedSidePanel(componentTag: string, panelProps?: SidePanelComponentProps): void;
52
53
  toggleCollapsePanel(panel: "mainPanel" | "secondaryPanel"): void;
53
54
  private computeState;
54
55
  changeSpreadsheetWidth(width: number): void;
@@ -1,17 +1,12 @@
1
- import { NEWLINE } from "../../../constants";
2
1
  import { Component } from "../../../owl3_compatibility_layer";
3
2
  import { ValueAndLabel } from "../../../types/misc";
4
3
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
4
+ import { Store } from "../../../types/store_engine";
5
5
  import { Select } from "../../select/select";
6
6
  import { ValidationMessages } from "../../validation_messages/validation_messages";
7
7
  import { Checkbox } from "../components/checkbox/checkbox";
8
8
  import { Section } from "../components/section/section";
9
- type SeparatorValue = "auto" | "custom" | " " | "," | ";" | typeof NEWLINE;
10
- interface State {
11
- separatorValue: SeparatorValue;
12
- customSeparator: string;
13
- addNewColumns: boolean;
14
- }
9
+ import { SplitToColumnsSeparatorValue, SplitToColumnsStore } from "./split_to_columns_store";
15
10
  export declare class SplitIntoColumnsPanel extends Component<SpreadsheetChildEnv> {
16
11
  static template: string;
17
12
  static components: {
@@ -23,16 +18,14 @@ export declare class SplitIntoColumnsPanel extends Component<SpreadsheetChildEnv
23
18
  protected props: import("@odoo/owl").Props<{
24
19
  onCloseSidePanel: () => void;
25
20
  }>;
26
- state: State;
21
+ store: Store<SplitToColumnsStore>;
27
22
  setup(): void;
28
- onSeparatorChange(value: SeparatorValue): void;
23
+ onSeparatorChange(value: SplitToColumnsSeparatorValue): void;
29
24
  updateCustomSeparator(ev: InputEvent): void;
30
25
  updateAddNewColumnsCheckbox(addNewColumns: boolean): void;
31
26
  confirm(): void;
32
27
  get errorMessages(): string[];
33
28
  get warningMessages(): string[];
34
- get separatorValue(): string;
35
29
  get separators(): ValueAndLabel[];
36
30
  get isConfirmDisabled(): boolean;
37
31
  }
38
- export {};
@@ -0,0 +1,33 @@
1
+ import { NEWLINE } from "../../../constants";
2
+ import { SpreadsheetStore } from "../../../stores/spreadsheet_store";
3
+ import { Command, DispatchResult } from "../../../types/commands";
4
+ export type SplitToColumnsSeparatorValue = "auto" | "custom" | " " | "," | ";" | typeof NEWLINE;
5
+ export declare class SplitToColumnsStore extends SpreadsheetStore {
6
+ mutators: readonly ["setSeparatorValue", "setCustomSeparator", "setShouldAddNewColumns"];
7
+ storeGetters: readonly ["canSplitIntoColumns"];
8
+ separatorValue: SplitToColumnsSeparatorValue;
9
+ customSeparator: string;
10
+ addNewColumns: boolean;
11
+ setSeparatorValue(separatorValue: SplitToColumnsSeparatorValue): void;
12
+ setCustomSeparator(customSeparator: string): void;
13
+ setShouldAddNewColumns(addNewColumns: boolean): void;
14
+ canSplitIntoColumns(args: {
15
+ force: boolean;
16
+ }): DispatchResult;
17
+ handle(cmd: Command): void;
18
+ get automaticSeparatorOfSelection(): string;
19
+ private getAutoSeparatorForString;
20
+ private splitIntoColumns;
21
+ private getSplittedCols;
22
+ private splitAndRemoveTrailingEmpty;
23
+ private willSplittedColsOverwriteContent;
24
+ private removeMergesInSplitZone;
25
+ private addColsToAvoidCollisions;
26
+ private getColsToAddToAvoidCollision;
27
+ private addColumnsToNotOverflowSheet;
28
+ private checkSingleColSelected;
29
+ private checkNonEmptySelector;
30
+ private checkNotOverwritingContent;
31
+ private checkSeparatorInSelection;
32
+ get separatorString(): string;
33
+ }
@@ -1,5 +1,6 @@
1
1
  import { Component } from "../../../owl3_compatibility_layer";
2
2
  import { CommandResult, DispatchResult } from "../../../types/commands";
3
+ import { Range } from "../../../types/range";
3
4
  import { TableConfig } from "../../../types/table";
4
5
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
5
6
  import { NumberInput } from "../../number_input/number_input";
@@ -31,6 +32,11 @@ export declare class TablePanel extends Component<SpreadsheetChildEnv> {
31
32
  }>;
32
33
  state: State;
33
34
  setup(): void;
35
+ get highlights(): {
36
+ range: Range;
37
+ noFill: boolean;
38
+ color: string;
39
+ }[];
34
40
  updateHasFilters(hasFilters: boolean): void;
35
41
  updateTableConfig(attName: keyof TableConfig, value: boolean | string | number): DispatchResult;
36
42
  updateHasHeaders(hasHeaders: boolean): void;
@@ -3,6 +3,7 @@ import { Color } from "../../../types/misc";
3
3
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
4
4
  import { TableConfig, TableStyle, TableStyleTemplateName } from "../../../types/table";
5
5
  import { TableStylePreview } from "../../tables/table_style_preview/table_style_preview";
6
+ import { TextInput } from "../../text_input/text_input";
6
7
  import { RoundColorPicker } from "../components/round_color_picker/round_color_picker";
7
8
  import { Section } from "../components/section/section";
8
9
  interface State {
@@ -17,6 +18,7 @@ export declare class TableStyleEditorPanel extends Component<SpreadsheetChildEnv
17
18
  Section: typeof Section;
18
19
  RoundColorPicker: typeof RoundColorPicker;
19
20
  TableStylePreview: typeof TableStylePreview;
21
+ TextInput: typeof TextInput;
20
22
  };
21
23
  protected props: import("@odoo/owl").Props<{
22
24
  onCloseSidePanel: () => void;
@@ -20,6 +20,7 @@ export declare class SmallBottomBar extends Component<SpreadsheetChildEnv> {
20
20
  }>;
21
21
  private composerFocusStore;
22
22
  private composerStore;
23
+ private viewStore;
23
24
  private composerInterface;
24
25
  private composerRef;
25
26
  private menuState;
@@ -1,7 +1,7 @@
1
1
  import { Model } from "../../model";
2
2
  import { Component } from "../../owl3_compatibility_layer";
3
- import { InformationNotification } from "../../types/env";
4
3
  import { HeaderGroup, Pixel } from "../../types/misc";
4
+ import { ColorThemeName } from "../../types/rendering";
5
5
  import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
6
6
  import { Store } from "../../types/store_engine";
7
7
  import { BottomBar } from "../bottom_bar/bottom_bar";
@@ -14,11 +14,15 @@ import { SidePanels } from "../side_panel/side_panels/side_panels";
14
14
  import { SmallBottomBar } from "../small_bottom_bar/small_bottom_bar";
15
15
  import { SpreadsheetPrint } from "../spreadsheet_print/spreadsheet_print";
16
16
  import { TopBar } from "../top_bar/top_bar";
17
+ interface State {
18
+ printModeEnabled: boolean;
19
+ colorThemeBeforePrint: ColorThemeName;
20
+ }
17
21
  export declare class Spreadsheet extends Component<SpreadsheetChildEnv> {
18
22
  static template: string;
19
23
  protected props: import("@odoo/owl").Props<{
20
24
  model: Model;
21
- notifyUser?: ((notification: InformationNotification) => void) | undefined;
25
+ notifyUser?: ((notification: import("../..").InformationNotification) => void) | undefined;
22
26
  raiseError?: ((text: string, callback?: () => void) => void) | undefined;
23
27
  askConfirmation?: ((content: string, confirm: () => void, cancel?: () => void) => void) | undefined;
24
28
  }>;
@@ -36,13 +40,13 @@ export declare class Spreadsheet extends Component<SpreadsheetChildEnv> {
36
40
  sidePanel: Store<SidePanelStore>;
37
41
  spreadsheetRef: import("@odoo/owl").Signal<HTMLElement | null>;
38
42
  spreadsheetRect: import("../..").Rect;
39
- state: {
40
- printModeEnabled: boolean;
41
- };
43
+ state: State;
42
44
  private _focusGrid?;
43
45
  private isViewportTooSmall;
44
46
  private notificationStore;
45
47
  private composerFocusStore;
48
+ private viewStore;
49
+ private zoomStore;
46
50
  get model(): Model;
47
51
  getStyle(): string;
48
52
  setup(): void;
@@ -59,5 +63,8 @@ export declare class Spreadsheet extends Component<SpreadsheetChildEnv> {
59
63
  height: number;
60
64
  };
61
65
  getSpreadSheetClasses(): string;
66
+ enterPrintMode(): void;
62
67
  exitPrintMode(): void;
68
+ get colorScheme(): ColorThemeName;
63
69
  }
70
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Signal } from "@odoo/owl";
2
+ interface PrintIframeArgs {
3
+ iframeRef: () => HTMLIFrameElement | null;
4
+ pageCount: () => number;
5
+ /** Dimensions/padding of a page */
6
+ pageStyle: () => string;
7
+ /** `@page` css rules */
8
+ pageRule: () => string;
9
+ }
10
+ export interface PrintIframe {
11
+ canvases: Signal<HTMLCanvasElement[]>;
12
+ print: () => void;
13
+ }
14
+ export declare function usePrintIframe(args: PrintIframeArgs): PrintIframe;
15
+ export {};
@@ -6,6 +6,7 @@ import { BadgeSelection } from "../side_panel/components/badge_selection/badge_s
6
6
  import { Checkbox } from "../side_panel/components/checkbox/checkbox";
7
7
  import { Section } from "../side_panel/components/section/section";
8
8
  import { StandaloneGridCanvas } from "../standalone_grid_canvas/standalone_grid_canvas";
9
+ import { PrintIframe } from "./print_iframe";
9
10
  import { Orientation, PrintPageLayout, PrintScale, PrintSelection, SpreadsheetPrintStore } from "./spreadsheet_print_store";
10
11
  export declare class SpreadsheetPrint extends Component<SpreadsheetChildEnv> {
11
12
  static template: string;
@@ -20,7 +21,10 @@ export declare class SpreadsheetPrint extends Component<SpreadsheetChildEnv> {
20
21
  Checkbox: typeof Checkbox;
21
22
  };
22
23
  printStore: Store<SpreadsheetPrintStore>;
24
+ printIframe: PrintIframe;
25
+ private iframeRef;
23
26
  setup(): void;
27
+ get pageRule(): string;
24
28
  get pageStyle(): string;
25
29
  onLayoutChange(value: PrintPageLayout): void;
26
30
  onPrintSelectionChange(value: PrintSelection): void;