@odoo/o-spreadsheet 19.4.0-alpha.10 → 19.4.0-alpha.11

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 (191) hide show
  1. package/dist/o_spreadsheet.cjs +1341 -1754
  2. package/dist/o_spreadsheet.css +3 -3
  3. package/dist/o_spreadsheet.esm.js +1340 -1755
  4. package/dist/o_spreadsheet.iife.js +1341 -1754
  5. package/dist/o_spreadsheet.min.iife.js +276 -276
  6. package/dist/o_spreadsheet.xml +10 -3
  7. package/dist/types/components/action_button/action_button.d.ts +8 -29
  8. package/dist/types/components/animation/ripple.d.ts +33 -92
  9. package/dist/types/components/autofill/autofill.d.ts +5 -9
  10. package/dist/types/components/border_editor/border_editor.d.ts +18 -43
  11. package/dist/types/components/border_editor/border_editor_widget.d.ts +6 -20
  12. package/dist/types/components/bottom_bar/bottom_bar.d.ts +4 -7
  13. package/dist/types/components/bottom_bar/bottom_bar_sheet/bottom_bar_sheet.d.ts +8 -22
  14. package/dist/types/components/bottom_bar/bottom_bar_statistic/bottom_bar_statistic.d.ts +5 -10
  15. package/dist/types/components/collaborative_client_tag/collaborative_client_tag.d.ts +8 -17
  16. package/dist/types/components/color_picker/color_picker.d.ts +13 -30
  17. package/dist/types/components/color_picker/color_picker_widget.d.ts +12 -40
  18. package/dist/types/components/composer/autocomplete_dropdown/autocomplete_dropdown.d.ts +7 -17
  19. package/dist/types/components/composer/composer/composer.d.ts +18 -63
  20. package/dist/types/components/composer/formula_assistant/formula_assistant.d.ts +8 -17
  21. package/dist/types/components/composer/grid_composer/grid_composer.d.ts +8 -13
  22. package/dist/types/components/composer/speech_bubble/speech_bubble.d.ts +5 -10
  23. package/dist/types/components/composer/standalone_composer/standalone_composer.d.ts +16 -62
  24. package/dist/types/components/composer/top_bar_composer/top_bar_composer.d.ts +1 -2
  25. package/dist/types/components/dashboard/clickable_cell_sort_icon/clickable_cell_sort_icon.d.ts +5 -11
  26. package/dist/types/components/dashboard/dashboard.d.ts +4 -8
  27. package/dist/types/components/error_tooltip/error_tooltip.d.ts +5 -14
  28. package/dist/types/components/figures/chart/chartJs/chartjs.d.ts +5 -14
  29. package/dist/types/components/figures/chart/chart_dashboard_menu/chart_dashboard_menu.d.ts +7 -15
  30. package/dist/types/components/figures/chart/gauge/gauge_chart_component.d.ts +5 -13
  31. package/dist/types/components/figures/chart/scorecard/chart_scorecard.d.ts +5 -14
  32. package/dist/types/components/figures/figure/figure.d.ts +10 -30
  33. package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +8 -24
  34. package/dist/types/components/figures/figure_chart/figure_chart.d.ts +7 -24
  35. package/dist/types/components/figures/figure_container/figure_container.d.ts +1 -4
  36. package/dist/types/components/figures/figure_image/figure_image.d.ts +6 -19
  37. package/dist/types/components/filters/filter_menu/filter_menu.d.ts +2 -13
  38. package/dist/types/components/filters/filter_menu_criterion/filter_menu_criterion.d.ts +6 -13
  39. package/dist/types/components/filters/filter_menu_item/filter_menu_value_item.d.ts +9 -21
  40. package/dist/types/components/filters/filter_menu_value_list/filter_menu_value_list.d.ts +12 -11
  41. package/dist/types/components/filters/pivot_filter_menu/pivot_filter_menu.d.ts +13 -28
  42. package/dist/types/components/font_size_editor/font_size_editor.d.ts +10 -25
  43. package/dist/types/components/full_screen_figure/full_screen_figure.d.ts +1 -2
  44. package/dist/types/components/generic_input/generic_input.d.ts +16 -45
  45. package/dist/types/components/grid/grid.d.ts +5 -10
  46. package/dist/types/components/grid_add_rows_footer/grid_add_rows_footer.d.ts +1 -5
  47. package/dist/types/components/grid_overlay/grid_overlay.d.ts +11 -37
  48. package/dist/types/components/grid_popover/grid_popover.d.ts +6 -13
  49. package/dist/types/components/header_group/header_group.d.ts +7 -12
  50. package/dist/types/components/header_group/header_group_container.d.ts +6 -11
  51. package/dist/types/components/headers_overlay/headers_overlay.d.ts +10 -16
  52. package/dist/types/components/headers_overlay/unhide_headers.d.ts +19 -30
  53. package/dist/types/components/highlight/border/border.d.ts +7 -16
  54. package/dist/types/components/highlight/corner/corner.d.ts +8 -18
  55. package/dist/types/components/highlight/highlight/highlight.d.ts +6 -11
  56. package/dist/types/components/icon_picker/icon_picker.d.ts +4 -8
  57. package/dist/types/components/link/link_display/link_display.d.ts +6 -13
  58. package/dist/types/components/link/link_editor/link_editor.d.ts +6 -13
  59. package/dist/types/components/menu/menu.d.ts +14 -55
  60. package/dist/types/components/menu_popover/menu_popover.d.ts +22 -69
  61. package/dist/types/components/named_range_selector/named_range_selector.d.ts +1 -4
  62. package/dist/types/components/number_editor/number_editor.d.ts +18 -54
  63. package/dist/types/components/number_input/number_input.d.ts +1 -52
  64. package/dist/types/components/paint_format_button/paint_format_button.d.ts +4 -11
  65. package/dist/types/components/pivot_html_renderer/pivot_html_renderer.d.ts +5 -9
  66. package/dist/types/components/popover/popover.d.ts +18 -69
  67. package/dist/types/components/props_validation.d.ts +181 -0
  68. package/dist/types/components/scrollbar/scrollbar.d.ts +13 -11
  69. package/dist/types/components/scrollbar/scrollbar_horizontal.d.ts +5 -13
  70. package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +5 -13
  71. package/dist/types/components/select/select.d.ts +13 -36
  72. package/dist/types/components/selection/selection.d.ts +4 -4
  73. package/dist/types/components/selection_input/selection_input.d.ts +20 -74
  74. package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +5 -10
  75. package/dist/types/components/side_panel/chart/bar_chart/bar_chart_design_panel.d.ts +2 -10
  76. package/dist/types/components/side_panel/chart/bubble_chart/bubble_chart_config_panel.d.ts +2 -7
  77. package/dist/types/components/side_panel/chart/bubble_chart/bubble_chart_design_panel.d.ts +4 -16
  78. package/dist/types/components/side_panel/chart/building_blocks/axis_design/axis_design_editor.d.ts +7 -14
  79. package/dist/types/components/side_panel/chart/building_blocks/chart_title/chart_title.d.ts +11 -33
  80. package/dist/types/components/side_panel/chart/building_blocks/color_scale/color_scale_picker.d.ts +10 -13
  81. package/dist/types/components/side_panel/chart/building_blocks/data_series/data_series.d.ts +18 -61
  82. package/dist/types/components/side_panel/chart/building_blocks/data_source/data_source.d.ts +16 -42
  83. package/dist/types/components/side_panel/chart/building_blocks/error_section/error_section.d.ts +4 -11
  84. package/dist/types/components/side_panel/chart/building_blocks/general_design/general_design_editor.d.ts +11 -24
  85. package/dist/types/components/side_panel/chart/building_blocks/generic_side_panel/config_panel.d.ts +2 -7
  86. package/dist/types/components/side_panel/chart/building_blocks/humanize_numbers/humanize_numbers.d.ts +2 -7
  87. package/dist/types/components/side_panel/chart/building_blocks/label_range/label_range.d.ts +18 -35
  88. package/dist/types/components/side_panel/chart/building_blocks/legend/legend.d.ts +9 -17
  89. package/dist/types/components/side_panel/chart/building_blocks/pie_hole_size/pie_hole_size.d.ts +5 -10
  90. package/dist/types/components/side_panel/chart/building_blocks/range_data_source/range_data_source.d.ts +17 -41
  91. package/dist/types/components/side_panel/chart/building_blocks/series_design/series_design_editor.d.ts +9 -17
  92. package/dist/types/components/side_panel/chart/building_blocks/series_design/series_with_axis_design_editor.d.ts +8 -16
  93. package/dist/types/components/side_panel/chart/building_blocks/show_data_markers/show_data_markers.d.ts +2 -7
  94. package/dist/types/components/side_panel/chart/building_blocks/show_values/show_values.d.ts +8 -17
  95. package/dist/types/components/side_panel/chart/building_blocks/text_styler/text_styler.d.ts +10 -38
  96. package/dist/types/components/side_panel/chart/calendar_chart/calendar_chart_design_panel.d.ts +2 -7
  97. package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +8 -11
  98. package/dist/types/components/side_panel/chart/chart_with_axis/design_panel.d.ts +2 -7
  99. package/dist/types/components/side_panel/chart/common.d.ts +5 -5
  100. package/dist/types/components/side_panel/chart/funnel_chart_panel/funnel_chart_design_panel.d.ts +4 -7
  101. package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_config_panel.d.ts +2 -7
  102. package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_design_panel.d.ts +4 -8
  103. package/dist/types/components/side_panel/chart/geo_chart_panel/geo_chart_region_select_section.d.ts +6 -12
  104. package/dist/types/components/side_panel/chart/main_chart_panel/main_chart_panel.d.ts +5 -10
  105. package/dist/types/components/side_panel/chart/pie_chart/pie_chart_design_panel.d.ts +2 -7
  106. package/dist/types/components/side_panel/chart/radar_chart/radar_chart_design_panel.d.ts +2 -7
  107. package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_config_panel.d.ts +2 -7
  108. package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_design_panel.d.ts +2 -7
  109. package/dist/types/components/side_panel/chart/sunburst_chart/sunburst_chart_design_panel.d.ts +2 -7
  110. package/dist/types/components/side_panel/chart/treemap_chart/treemap_category_color/treemap_category_color.d.ts +8 -14
  111. package/dist/types/components/side_panel/chart/treemap_chart/treemap_chart_design_panel.d.ts +2 -7
  112. package/dist/types/components/side_panel/chart/treemap_chart/treemap_color_scale/treemap_color_scale.d.ts +7 -14
  113. package/dist/types/components/side_panel/chart/waterfall_chart/waterfall_chart_design_panel.d.ts +2 -7
  114. package/dist/types/components/side_panel/chart/zoomable_chart/design_panel.d.ts +1 -3
  115. package/dist/types/components/side_panel/column_stats/column_stats_panel.d.ts +4 -8
  116. package/dist/types/components/side_panel/components/badge_selection/badge_selection.d.ts +6 -11
  117. package/dist/types/components/side_panel/components/checkbox/checkbox.d.ts +11 -40
  118. package/dist/types/components/side_panel/components/cog_wheel_menu/cog_wheel_menu.d.ts +4 -9
  119. package/dist/types/components/side_panel/components/collapse/collapse.d.ts +4 -10
  120. package/dist/types/components/side_panel/components/collapsible/side_panel_collapsible.d.ts +6 -16
  121. package/dist/types/components/side_panel/components/radio_selection/radio_selection.d.ts +9 -22
  122. package/dist/types/components/side_panel/components/round_color_picker/round_color_picker.d.ts +7 -23
  123. package/dist/types/components/side_panel/components/section/section.d.ts +6 -16
  124. package/dist/types/components/side_panel/conditional_formatting/cf_editor/cell_is_rule_editor.d.ts +4 -9
  125. package/dist/types/components/side_panel/conditional_formatting/cf_editor/cf_editor.d.ts +6 -13
  126. package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor.d.ts +4 -9
  127. package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor_threshold.d.ts +7 -12
  128. package/dist/types/components/side_panel/conditional_formatting/cf_editor/data_bar_rule_editor.d.ts +4 -9
  129. package/dist/types/components/side_panel/conditional_formatting/cf_editor/icon_set_rule_editor.d.ts +6 -10
  130. package/dist/types/components/side_panel/conditional_formatting/cf_preview/cf_preview.d.ts +6 -13
  131. package/dist/types/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.d.ts +4 -8
  132. package/dist/types/components/side_panel/criterion_form/criterion_form.d.ts +7 -20
  133. package/dist/types/components/side_panel/criterion_form/criterion_input/criterion_input.d.ts +17 -46
  134. package/dist/types/components/side_panel/data_validation/data_validation_panel.d.ts +4 -8
  135. package/dist/types/components/side_panel/data_validation/dv_editor/dv_editor.d.ts +6 -14
  136. package/dist/types/components/side_panel/data_validation/dv_preview/dv_preview.d.ts +4 -9
  137. package/dist/types/components/side_panel/find_and_replace/find_and_replace.d.ts +4 -8
  138. package/dist/types/components/side_panel/more_formats/more_formats.d.ts +6 -14
  139. package/dist/types/components/side_panel/named_ranges_panel/named_range_preview/named_range_preview.d.ts +5 -8
  140. package/dist/types/components/side_panel/named_ranges_panel/named_ranges_panel.d.ts +4 -8
  141. package/dist/types/components/side_panel/perf_profile/perf_profile_panel.d.ts +4 -8
  142. package/dist/types/components/side_panel/pivot/pivot_custom_groups_collapsible/pivot_custom_groups_collapsible.d.ts +7 -13
  143. package/dist/types/components/side_panel/pivot/pivot_defer_update/pivot_defer_update.d.ts +10 -18
  144. package/dist/types/components/side_panel/pivot/pivot_filter/pivot_filter.d.ts +8 -15
  145. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/add_dimension_button/add_dimension_button.d.ts +5 -14
  146. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension.d.ts +7 -23
  147. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_granularity/pivot_dimension_granularity.d.ts +9 -16
  148. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_order/pivot_dimension_order.d.ts +7 -12
  149. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +14 -30
  150. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_measure/pivot_measure.d.ts +12 -22
  151. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_sort_section/pivot_sort_section.d.ts +6 -13
  152. package/dist/types/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel.d.ts +8 -15
  153. package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_design_panel/pivot_design_panel.d.ts +5 -10
  154. package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_side_panel.d.ts +8 -18
  155. package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_spreadsheet_side_panel/pivot_spreadsheet_side_panel.d.ts +5 -11
  156. package/dist/types/components/side_panel/pivot/pivot_title_section/pivot_title_section.d.ts +6 -12
  157. package/dist/types/components/side_panel/remove_duplicates/remove_duplicates.d.ts +4 -7
  158. package/dist/types/components/side_panel/settings/settings_panel.d.ts +4 -8
  159. package/dist/types/components/side_panel/side_panel/side_panel.d.ts +12 -37
  160. package/dist/types/components/side_panel/side_panels/side_panels.d.ts +16 -6
  161. package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +4 -7
  162. package/dist/types/components/side_panel/table_panel/table_panel.d.ts +6 -10
  163. package/dist/types/components/side_panel/table_style_editor_panel/table_style_editor_panel.d.ts +6 -17
  164. package/dist/types/components/small_bottom_bar/ribbon_menu/ribbon_menu.d.ts +7 -11
  165. package/dist/types/components/small_bottom_bar/small_bottom_bar.d.ts +7 -10
  166. package/dist/types/components/spreadsheet/spreadsheet.d.ts +8 -20
  167. package/dist/types/components/spreadsheet_print/spreadsheet_print.d.ts +4 -8
  168. package/dist/types/components/standalone_grid_canvas/standalone_grid_canvas.d.ts +6 -13
  169. package/dist/types/components/tables/table_dropdown_button/table_dropdown_button.d.ts +7 -12
  170. package/dist/types/components/tables/table_resizer/table_resizer.d.ts +4 -8
  171. package/dist/types/components/tables/table_style_picker/table_style_picker.d.ts +11 -16
  172. package/dist/types/components/tables/table_style_preview/table_style_preview.d.ts +9 -28
  173. package/dist/types/components/tables/table_styles_popover/table_styles_popover.d.ts +23 -26
  174. package/dist/types/components/text_input/text_input.d.ts +1 -48
  175. package/dist/types/components/top_bar/color_editor/color_editor.d.ts +7 -14
  176. package/dist/types/components/top_bar/dropdown_action/dropdown_action.d.ts +10 -17
  177. package/dist/types/components/top_bar/font_size_editor/font_size_editor.d.ts +4 -8
  178. package/dist/types/components/top_bar/number_formats_tool/number_formats_tool.d.ts +4 -7
  179. package/dist/types/components/top_bar/top_bar.d.ts +9 -12
  180. package/dist/types/components/top_bar/zoom_editor/zoom_editor.d.ts +4 -8
  181. package/dist/types/components/validation_messages/validation_messages.d.ts +6 -15
  182. package/dist/types/helpers/formulas.d.ts +1 -0
  183. package/dist/types/index.d.ts +9 -1
  184. package/dist/types/owl3_compatibility_layer.d.ts +3 -6
  185. package/dist/types/plugins/ui_feature/table_computed_style.d.ts +1 -1
  186. package/dist/types/types/cell_popovers.d.ts +2 -2
  187. package/dist/types/types/chart/bar_chart.d.ts +1 -0
  188. package/dist/types/types/chart/chart.d.ts +1 -0
  189. package/dist/types/types/misc.d.ts +4 -2
  190. package/dist/types/types/props_of.d.ts +7 -3
  191. package/package.json +1 -1
@@ -1,44 +1,41 @@
1
1
  import { Component } from "../../../owl3_compatibility_layer";
2
2
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
3
3
  import { TableConfig, TableStyle } from "../../../types/table";
4
- import { Popover, PopoverProps } from "../../popover/popover";
4
+ import { Popover } from "../../popover/popover";
5
5
  import { TableStylePreview } from "../table_style_preview/table_style_preview";
6
- export interface TableStylesPopoverProps {
7
- selectedStyleId?: string;
8
- tableConfig: Omit<TableConfig, "styleId">;
9
- closePopover: () => void;
10
- onStylePicked: (styleId: string) => void;
11
- popoverProps?: PopoverProps;
12
- tableStyles: Record<string, TableStyle>;
13
- type: "table" | "pivot";
14
- }
15
6
  export type CustomTablePopoverMouseEvent = MouseEvent & {
16
7
  hasClosedTableStylesPopover?: boolean;
17
8
  };
18
9
  export interface State {
19
10
  selectedCategory: string;
20
11
  }
21
- export declare class TableStylesPopover extends Component<TableStylesPopoverProps, SpreadsheetChildEnv> {
12
+ export declare class TableStylesPopover extends Component<SpreadsheetChildEnv> {
22
13
  static template: string;
23
14
  static components: {
24
15
  Popover: typeof Popover;
25
16
  TableStylePreview: typeof TableStylePreview;
26
17
  };
27
- static props: {
28
- tableConfig: ObjectConstructor;
29
- popoverProps: {
30
- type: ObjectConstructor;
31
- optional: boolean;
32
- };
33
- closePopover: FunctionConstructor;
34
- onStylePicked: FunctionConstructor;
35
- selectedStyleId: {
36
- type: StringConstructor;
37
- optional: boolean;
38
- };
39
- tableStyles: ObjectConstructor;
40
- type: StringConstructor;
41
- };
18
+ protected props: import("@odoo/owl").Props<{
19
+ tableConfig: Omit<TableConfig, "styleId">;
20
+ closePopover: () => void;
21
+ onStylePicked: (styleId: string) => void;
22
+ tableStyles: Record<string, TableStyle>;
23
+ type: "table" | "pivot";
24
+ popoverProps?: {
25
+ anchorRect: import("../../..").Rect;
26
+ containerRect?: {} | undefined;
27
+ positioning?: "top-right" | "bottom-left" | undefined;
28
+ maxWidth?: import("../../..").Pixel | undefined;
29
+ maxHeight?: import("../../..").Pixel | undefined;
30
+ verticalOffset?: number | undefined;
31
+ onMouseWheel?: (() => void) | undefined;
32
+ onPopoverHidden?: (() => void) | undefined;
33
+ onPopoverMoved?: (() => void) | undefined;
34
+ zIndex?: number | undefined;
35
+ class?: string | undefined;
36
+ } | undefined;
37
+ selectedStyleId?: string | undefined;
38
+ }>;
42
39
  private tableStyleListRef;
43
40
  state: State;
44
41
  setup(): void;
@@ -7,54 +7,7 @@ interface Props extends GenericInputProps {
7
7
  export declare class TextInput extends GenericInput<Props> {
8
8
  static template: string;
9
9
  static components: {};
10
- static props: {
11
- errorMessage: {
12
- type: StringConstructor;
13
- optional: boolean;
14
- };
15
- value: (StringConstructor | NumberConstructor)[];
16
- onChange: FunctionConstructor;
17
- onFocused: {
18
- type: FunctionConstructor;
19
- optional: boolean;
20
- };
21
- onBlur: {
22
- type: FunctionConstructor;
23
- optional: boolean;
24
- };
25
- onInput: {
26
- type: FunctionConstructor;
27
- optional: boolean;
28
- };
29
- class: {
30
- type: StringConstructor;
31
- optional: boolean;
32
- };
33
- id: {
34
- type: StringConstructor;
35
- optional: boolean;
36
- };
37
- placeholder: {
38
- type: StringConstructor;
39
- optional: boolean;
40
- };
41
- autofocus: {
42
- type: BooleanConstructor;
43
- optional: boolean;
44
- };
45
- alwaysShowBorder: {
46
- type: BooleanConstructor;
47
- optional: boolean;
48
- };
49
- selectContentOnFocus: {
50
- type: BooleanConstructor;
51
- optional: boolean;
52
- };
53
- resetOnBlur: {
54
- type: BooleanConstructor;
55
- optional: boolean;
56
- };
57
- };
10
+ protected props: Props;
58
11
  get inputClass(): string;
59
12
  }
60
13
  export {};
@@ -2,23 +2,17 @@ import { Component } from "../../../owl3_compatibility_layer";
2
2
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
3
3
  import { ColorPickerWidget } from "../../color_picker/color_picker_widget";
4
4
  import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
5
- type Props = {
6
- style: "textColor" | "fillColor";
7
- icon: string;
8
- class: string;
9
- title: string;
10
- };
11
- export declare class TopBarColorEditor extends Component<Props, SpreadsheetChildEnv> {
5
+ export declare class TopBarColorEditor extends Component<SpreadsheetChildEnv> {
12
6
  static components: {
13
7
  ColorPickerWidget: typeof ColorPickerWidget;
14
8
  };
15
- static props: {
16
- class: StringConstructor;
17
- style: StringConstructor;
18
- icon: StringConstructor;
19
- title: StringConstructor;
20
- };
21
9
  static template: string;
10
+ protected props: import("@odoo/owl").Props<{
11
+ class: string;
12
+ style: "textColor" | "fillColor";
13
+ icon: string;
14
+ title: string;
15
+ }>;
22
16
  topBarToolStore: ToolBarDropdownStore;
23
17
  state: {
24
18
  isOpen: boolean;
@@ -29,4 +23,3 @@ export declare class TopBarColorEditor extends Component<Props, SpreadsheetChild
29
23
  get isMenuOpen(): boolean;
30
24
  onClick(): void;
31
25
  }
32
- export {};
@@ -1,32 +1,25 @@
1
- import { ActionSpec } from "../../../actions/action";
2
1
  import { Component } from "../../../owl3_compatibility_layer";
2
+ import { PropsOf } from "../../../types/props_of";
3
3
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
4
4
  import { ActionButton } from "../../action_button/action_button";
5
5
  import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
6
- import { Popover, PopoverProps } from "../../popover/popover";
7
- interface Props {
8
- parentAction: ActionSpec;
9
- childActions: ActionSpec[];
10
- class: string;
11
- childClass: String;
12
- }
13
- export declare class DropdownAction extends Component<Props, SpreadsheetChildEnv> {
6
+ import { Popover } from "../../popover/popover";
7
+ export declare class DropdownAction extends Component<SpreadsheetChildEnv> {
14
8
  static template: string;
15
9
  static components: {
16
10
  ActionButton: typeof ActionButton;
17
11
  Popover: typeof Popover;
18
12
  };
19
- static props: {
20
- parentAction: ObjectConstructor;
21
- childActions: ArrayConstructor;
22
- class: StringConstructor;
23
- childClass: StringConstructor;
24
- };
13
+ protected props: import("@odoo/owl").Props<{
14
+ parentAction: import("../../../actions/action").ActionSpec;
15
+ childActions: import("../../../actions/action").ActionSpec[];
16
+ class: string;
17
+ childClass: string;
18
+ }>;
25
19
  topBarToolStore: ToolBarDropdownStore;
26
20
  actionRef: import("@odoo/owl").Signal<HTMLElement | null>;
27
21
  setup(): void;
28
22
  toggleDropdown(): void;
29
23
  get isActive(): boolean;
30
- get popoverProps(): PopoverProps;
24
+ get popoverProps(): PropsOf<Popover>;
31
25
  }
32
- export {};
@@ -2,17 +2,14 @@ import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
2
2
  import { FontSizeEditor } from "../../font_size_editor/font_size_editor";
3
3
  import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
4
4
  import { Component } from "../../../owl3_compatibility_layer";
5
- type Props = {
6
- class: string;
7
- };
8
- export declare class TopBarFontSizeEditor extends Component<Props, SpreadsheetChildEnv> {
5
+ export declare class TopBarFontSizeEditor extends Component<SpreadsheetChildEnv> {
9
6
  static components: {
10
7
  FontSizeEditor: typeof FontSizeEditor;
11
8
  };
12
- static props: {
13
- class: StringConstructor;
14
- };
15
9
  static template: string;
10
+ protected props: import("@odoo/owl").Props<{
11
+ class: string;
12
+ }>;
16
13
  topBarToolStore: ToolBarDropdownStore;
17
14
  setup(): void;
18
15
  get currentFontSize(): number;
@@ -22,4 +19,3 @@ export declare class TopBarFontSizeEditor extends Component<Props, SpreadsheetCh
22
19
  get isActive(): boolean;
23
20
  get class(): string;
24
21
  }
25
- export {};
@@ -5,22 +5,19 @@ import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
5
5
  import { ActionButton } from "../../action_button/action_button";
6
6
  import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
7
7
  import { MenuPopover } from "../../menu_popover/menu_popover";
8
- interface Props {
9
- class: string;
10
- }
11
8
  interface State {
12
9
  menuItems: Action[];
13
10
  anchorRect: Rect;
14
11
  }
15
- export declare class NumberFormatsTool extends Component<Props, SpreadsheetChildEnv> {
12
+ export declare class NumberFormatsTool extends Component<SpreadsheetChildEnv> {
16
13
  static template: string;
17
14
  static components: {
18
15
  MenuPopover: typeof MenuPopover;
19
16
  ActionButton: typeof ActionButton;
20
17
  };
21
- static props: {
22
- class: StringConstructor;
23
- };
18
+ protected props: import("@odoo/owl").Props<{
19
+ class: string;
20
+ }>;
24
21
  formatNumberMenuItemSpec: import("../../../actions/action").ActionSpec;
25
22
  topBarToolStore: ToolBarDropdownStore;
26
23
  buttonRef: import("@odoo/owl").Signal<HTMLElement | null>;
@@ -1,14 +1,15 @@
1
1
  import { Action } from "../../actions/action";
2
2
  import { Component } from "../../owl3_compatibility_layer";
3
3
  import { FormulaFingerprintStore } from "../../stores/formula_fingerprints_store";
4
- import { Color, Pixel } from "../../types/misc";
4
+ import { Color } from "../../types/misc";
5
+ import { PropsOf } from "../../types/props_of";
5
6
  import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
6
7
  import { Store } from "../../types/store_engine";
7
8
  import { ComposerFocusStore } from "../composer/composer_focus_store";
8
9
  import { TopBarComposer } from "../composer/top_bar_composer/top_bar_composer";
9
10
  import { MenuPopover, MenuState } from "../menu_popover/menu_popover";
10
11
  import { NamedRangeSelector } from "../named_range_selector/named_range_selector";
11
- import { Popover, PopoverProps } from "../popover/popover";
12
+ import { Popover } from "../popover/popover";
12
13
  import { TopBarToolStore } from "./top_bar_tool_store";
13
14
  interface State {
14
15
  menuState: MenuState;
@@ -17,16 +18,12 @@ interface State {
17
18
  isOpen: boolean;
18
19
  };
19
20
  }
20
- interface Props {
21
- onClick: () => void;
22
- dropdownMaxHeight: Pixel;
23
- }
24
- export declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
21
+ export declare class TopBar extends Component<SpreadsheetChildEnv> {
25
22
  static template: string;
26
- static props: {
27
- onClick: FunctionConstructor;
28
- dropdownMaxHeight: NumberConstructor;
29
- };
23
+ protected props: import("@odoo/owl").Props<{
24
+ onClick: () => void;
25
+ dropdownMaxHeight: import("../..").Pixel;
26
+ }>;
30
27
  static components: {
31
28
  MenuPopover: typeof MenuPopover;
32
29
  TopBarComposer: typeof TopBarComposer;
@@ -67,7 +64,7 @@ export declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
67
64
  setColor(target: string, color: Color): void;
68
65
  setFontSize(fontSize: number): void;
69
66
  toggleMoreTools(): void;
70
- get toolsPopoverProps(): PopoverProps;
67
+ get toolsPopoverProps(): PropsOf<Popover>;
71
68
  showDivider(categoryIndex: number): boolean;
72
69
  onKeyboardNavigation(ev: KeyboardEvent): void;
73
70
  private getMenuItemEl;
@@ -2,17 +2,14 @@ import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
2
2
  import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
3
3
  import { NumberEditor } from "../../number_editor/number_editor";
4
4
  import { Component } from "../../../owl3_compatibility_layer";
5
- interface Props {
6
- class: string;
7
- }
8
- export declare class ToolBarZoom extends Component<Props, SpreadsheetChildEnv> {
5
+ export declare class ToolBarZoom extends Component<SpreadsheetChildEnv> {
9
6
  static template: string;
10
7
  static components: {
11
8
  NumberEditor: typeof NumberEditor;
12
9
  };
13
- static props: {
14
- class: StringConstructor;
15
- };
10
+ protected props: import("@odoo/owl").Props<{
11
+ class: string;
12
+ }>;
16
13
  topBarToolStore: ToolBarDropdownStore;
17
14
  valueList: number[];
18
15
  setup(): void;
@@ -21,4 +18,3 @@ export declare class ToolBarZoom extends Component<Props, SpreadsheetChildEnv> {
21
18
  toggle(): void;
22
19
  onFocusInput(): void;
23
20
  }
24
- export {};
@@ -1,21 +1,12 @@
1
1
  import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
2
2
  import { Component } from "../../owl3_compatibility_layer";
3
- interface Props {
4
- messages: string[];
5
- msgType: "warning" | "error" | "info";
6
- singleBox?: boolean;
7
- }
8
- export declare class ValidationMessages extends Component<Props, SpreadsheetChildEnv> {
3
+ export declare class ValidationMessages extends Component<SpreadsheetChildEnv> {
9
4
  static template: string;
10
- static props: {
11
- messages: ArrayConstructor;
12
- msgType: StringConstructor;
13
- singleBox: {
14
- type: BooleanConstructor;
15
- optional: boolean;
16
- };
17
- };
5
+ protected props: import("@odoo/owl").Props<{
6
+ messages: string[];
7
+ msgType: "error" | "info" | "warning";
8
+ singleBox?: boolean | undefined;
9
+ }>;
18
10
  get divClasses(): "o-validation-warning" | "o-validation-info" | "o-validation-error";
19
11
  get alertBoxes(): string[][];
20
12
  }
21
- export {};
@@ -3,3 +3,4 @@ import { ApplyRangeChangeResult, ApplyRenameNamedRange, RangeAdapter, UID } from
3
3
  export declare function adaptFormulaString(defaultSheetId: string, formula: string, applyChange: RangeAdapter, namedRangeAdapter: ApplyRenameNamedRange): string;
4
4
  export declare function canBeNamedRangeToken(tokens: Token[], tokenIndex: number): boolean;
5
5
  export declare function adaptStringRange(defaultSheetId: UID, sheetXC: string, rangeAdapter: RangeAdapter): ApplyRangeChangeResult<string>;
6
+ export declare function replaceSymbolInFormula(formula: string, oldSymbol: string, newSymbol: string): string;
@@ -52,7 +52,7 @@ import { lettersToNumber, numberToLetters, toCartesian, toXC } from "./helpers/c
52
52
  import { DateTime, isDateTime, jsDateToNumber, numberToJsDate } from "./helpers/dates";
53
53
  import { createCurrencyFormat, formatValue } from "./helpers/format/format";
54
54
  import { openLink, urlRepresentation } from "./helpers/links";
55
- import { deepCopy, deepEquals, doesCellContainFunction, getUniqueText, isDefined, isFormula, isMarkdownLink, lazy, markdownLink, parseMarkdownLink, sanitizeSheetName, unquote } from "./helpers/misc";
55
+ import { deepCopy, deepEquals, doesCellContainFunction, getCanonicalSymbolName, getUniqueText, isDefined, isFormula, isMarkdownLink, lazy, markdownLink, parseMarkdownLink, sanitizeSheetName, unquote } from "./helpers/misc";
56
56
  import { isNumber } from "./helpers/numbers";
57
57
  import { insertTokenAfterArgSeparator, insertTokenAfterLeftParenthesis, makeFieldProposal } from "./helpers/pivot/pivot_composer_helpers";
58
58
  import { splitReference } from "./helpers/references";
@@ -206,6 +206,7 @@ export declare const registries: {
206
206
  register: (chart: import("./types/chart/chartjs").GlobalChart) => void;
207
207
  unregister: (chart: import("./types/chart/chartjs").GlobalChart) => void;
208
208
  }>;
209
+ onIterationEndEvaluationRegistry: import(".").Registry<(getters: import(".").Getters) => void>;
209
210
  };
210
211
  /** Registries Population */
211
212
  import "./clipboard_handlers/clipboard_handler_registrations";
@@ -216,12 +217,15 @@ import "./registries/auto_completes/autocompelete_registration";
216
217
  import "./registries/chart_types";
217
218
  import "./registries/interactive_icon_on_cell_registry";
218
219
  import { Composer } from "./components/composer/composer/composer";
220
+ import { StandaloneComposer } from "./components/composer/standalone_composer/standalone_composer";
219
221
  import { Select } from "./components/select/select";
220
222
  import { ChartRangeDataSourceComponent } from "./components/side_panel/chart/building_blocks/range_data_source/range_data_source";
221
223
  import { TopBar } from "./components/top_bar/top_bar";
222
224
  import { parseFormat } from "./helpers/format/format_parser";
225
+ import { replaceSymbolInFormula } from "./helpers/formulas";
223
226
  import { getFirstPivotFunction, getNumberOfPivotFunctions } from "./helpers/pivot/pivot_composer_helpers";
224
227
  import { domainToColRowDomain } from "./helpers/pivot/pivot_domain_helpers";
228
+ import { fuzzyLookup } from "./helpers/search";
225
229
  export declare const helpers: {
226
230
  arg: typeof arg;
227
231
  isEvaluationError: typeof isEvaluationError;
@@ -294,6 +298,9 @@ export declare const helpers: {
294
298
  isFormula: typeof isFormula;
295
299
  domainToColRowDomain: typeof domainToColRowDomain;
296
300
  collapseHierarchicalDisplayName: typeof collapseHierarchicalDisplayName;
301
+ getCanonicalSymbolName: typeof getCanonicalSymbolName;
302
+ fuzzyLookup: typeof fuzzyLookup;
303
+ replaceSymbolInFormula: typeof replaceSymbolInFormula;
297
304
  };
298
305
  export declare const links: {
299
306
  isMarkdownLink: typeof isMarkdownLink;
@@ -344,6 +351,7 @@ export declare const components: {
344
351
  MenuPopover: typeof MenuPopover;
345
352
  Popover: typeof Popover;
346
353
  SelectionInput: typeof SelectionInput;
354
+ StandaloneComposer: typeof StandaloneComposer;
347
355
  ValidationMessages: typeof ValidationMessages;
348
356
  AddDimensionButton: typeof AddDimensionButton;
349
357
  PivotDimensionGranularity: typeof PivotDimensionGranularity;
@@ -33,15 +33,12 @@
33
33
  */
34
34
  import { App as OwlApp, Component as OwlComponent, // Exported by Odoo compat layer
35
35
  Plugin } from "@odoo/owl";
36
- export interface ComponentConstructor<Props = any, Env = any> {
36
+ export interface ComponentConstructor<Env = any> {
37
37
  new (...args: any[]): any;
38
38
  template: string;
39
39
  }
40
- declare class _Component<Props = any, Env = any> extends OwlComponent {
40
+ declare class _Component<Env = any> extends OwlComponent {
41
41
  static template: string;
42
- static props: {};
43
- static defaultProps: {};
44
- props: Props;
45
42
  env: Env;
46
43
  constructor(node: any);
47
44
  setup(): void;
@@ -76,7 +73,7 @@ declare const useChildEnv: typeof _useChildEnv;
76
73
  declare const useChildSubEnv: typeof _useChildSubEnv;
77
74
  declare const App: typeof _App;
78
75
  export { App, Component, EnvPlugin, useChildEnv, useChildSubEnv, useComponent, useEnv, useExternalListener, useLayoutEffect, useSubEnv, };
79
- export type Component<Props = any, Env = any> = _Component<Props, Env>;
76
+ export type Component<Env = any> = _Component<Env>;
80
77
  export type useComponent = () => any;
81
78
  export type useExternalListener = (target: any, eventName: any, handler: any, eventParams?: any) => void;
82
79
  export type useLayoutEffect = (effect: any, computeDependencies: () => any) => void;
@@ -21,7 +21,7 @@ export declare class TableComputedStylePlugin extends UIPlugin {
21
21
  */
22
22
  private getTableMapping;
23
23
  }
24
- declare const invalidateTableStyleCommands: readonly ["HIDE_COLUMNS_ROWS", "UNHIDE_COLUMNS_ROWS", "UNFOLD_HEADER_GROUP", "UNGROUP_HEADERS", "FOLD_HEADER_GROUP", "FOLD_ALL_HEADER_GROUPS", "UNFOLD_ALL_HEADER_GROUPS", "FOLD_HEADER_GROUPS_IN_ZONE", "UNFOLD_HEADER_GROUPS_IN_ZONE", "CREATE_TABLE", "UPDATE_TABLE", "UPDATE_FILTER", "REMOVE_TABLE", "RESIZE_TABLE", "CREATE_TABLE_STYLE", "REMOVE_TABLE_STYLE"];
24
+ declare const invalidateTableStyleCommands: readonly ["HIDE_COLUMNS_ROWS", "UNHIDE_COLUMNS_ROWS", "UNFOLD_HEADER_GROUP", "UNGROUP_HEADERS", "FOLD_HEADER_GROUP", "FOLD_ALL_HEADER_GROUPS", "UNFOLD_ALL_HEADER_GROUPS", "FOLD_HEADER_GROUPS_IN_ZONE", "UNFOLD_HEADER_GROUPS_IN_ZONE", "CREATE_TABLE", "UPDATE_TABLE", "UPDATE_FILTER", "REMOVE_TABLE", "RESIZE_TABLE", "CREATE_TABLE_STYLE", "REMOVE_TABLE_STYLE", "DELETE_CONTENT"];
25
25
  export declare function doesCommandInvalidatesTableStyle(cmd: Command): cmd is {
26
26
  type: (typeof invalidateTableStyleCommands)[number];
27
27
  } & Command;
@@ -37,14 +37,14 @@ export interface OpenCellPopover {
37
37
  type OpenCellPopoverComponent<C extends ComponentConstructor> = {
38
38
  isOpen: true;
39
39
  Component: C;
40
- props: PropsOf<C>;
40
+ props: PropsOf<InstanceType<C>>;
41
41
  cellCorner: PopoverPropsPosition;
42
42
  };
43
43
  export type CellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = ClosedCellPopover | OpenCellPopoverComponent<C>;
44
44
  export type PositionedCellPopoverComponent<C extends MaxSizedComponentConstructor = MaxSizedComponentConstructor> = {
45
45
  isOpen: true;
46
46
  Component: C;
47
- props: PropsOf<C>;
47
+ props: PropsOf<InstanceType<C>>;
48
48
  anchorRect: Rect;
49
49
  cellCorner: PopoverPropsPosition;
50
50
  };
@@ -6,6 +6,7 @@ export interface BarChartDefinition<T extends string | Range = Range> extends Co
6
6
  readonly stacked: boolean;
7
7
  readonly horizontal?: boolean;
8
8
  readonly zoomable?: boolean;
9
+ readonly showTotalLine?: boolean;
9
10
  }
10
11
  export type BarChartRuntime = {
11
12
  chartJsConfig: ChartConfiguration<"bar" | "line">;
@@ -182,6 +182,7 @@ export interface ChartCreationContext {
182
182
  readonly axesDesign?: AxesDesign;
183
183
  readonly fillArea?: boolean;
184
184
  readonly showValues?: boolean;
185
+ readonly showTotalLine?: boolean;
185
186
  readonly funnelColors?: FunnelChartColors;
186
187
  readonly showLabels?: boolean;
187
188
  readonly hideDataMarkers?: boolean;
@@ -218,7 +218,8 @@ export interface PaneDivision {
218
218
  /** Represents the number of frozen rows */
219
219
  ySplit: number;
220
220
  }
221
- export type BorderPosition = "all" | "hv" | "h" | "v" | "external" | "left" | "top" | "right" | "bottom" | "clear";
221
+ export declare const borderPositions: readonly ["all", "hv", "h", "v", "external", "left", "top", "right", "bottom", "clear"];
222
+ export type BorderPosition = (typeof borderPositions)[number];
222
223
  export declare const enum DIRECTION {
223
224
  UP = "up",
224
225
  DOWN = "down",
@@ -329,7 +330,8 @@ export interface GridClickModifiers {
329
330
  addZone: boolean;
330
331
  expandZone: boolean;
331
332
  }
332
- export type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
333
+ export declare const composerFocusTypes: readonly ["inactive", "cellFocus", "contentFocus"];
334
+ export type ComposerFocusType = (typeof composerFocusTypes)[number];
333
335
  export type EditionMode = "editing" | "selecting" | "inactive";
334
336
  export type SortDirection = "asc" | "desc";
335
337
  export interface ValueAndLabel<T = string> {
@@ -1,5 +1,9 @@
1
- import { ComponentConstructor } from "../owl3_compatibility_layer";
1
+ import { Props, WithDefaults } from "@odoo/owl";
2
2
  /**
3
- * Return the prop's type of a component
3
+ * Return the prop's type of a component as seen from the caller (pre-default
4
+ * shape). Strips the owl3 `Props<...>` brand and unwraps `WithDefaults<R, D>`
5
+ * so that props with a default value stay optional for the caller.
4
6
  */
5
- export type PropsOf<C> = C extends ComponentConstructor<infer Props> ? Props : never;
7
+ export type PropsOf<C extends {
8
+ [key: string]: any;
9
+ }, Key extends string = "props"> = C[Key] extends Props<infer P> ? (P extends WithDefaults<infer R, any> ? R : P) : C[Key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.4.0-alpha.10",
3
+ "version": "19.4.0-alpha.11",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o_spreadsheet.cjs",