@odoo/o-spreadsheet 20.1.0-alpha.2 → 20.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/o_spreadsheet.cjs +809 -705
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +806 -702
- package/dist/o_spreadsheet.iife.js +809 -705
- package/dist/o_spreadsheet.min.iife.js +303 -303
- package/dist/o_spreadsheet.xml +3 -3
- package/dist/types/actions/action.d.ts +24 -24
- package/dist/types/actions/figure_menu_actions.d.ts +4 -4
- package/dist/types/actions/format_actions.d.ts +3 -3
- package/dist/types/actions/menu_items_actions.d.ts +45 -45
- package/dist/types/actions/view_actions.d.ts +2 -2
- package/dist/types/components/action_button/action_button.d.ts +2 -3
- package/dist/types/components/animation/ripple.d.ts +3 -4
- package/dist/types/components/autofill/autofill.d.ts +2 -3
- package/dist/types/components/border_editor/border_editor.d.ts +2 -3
- package/dist/types/components/border_editor/border_editor_widget.d.ts +2 -3
- package/dist/types/components/bottom_bar/bottom_bar.d.ts +2 -3
- package/dist/types/components/bottom_bar/bottom_bar_sheet/bottom_bar_sheet.d.ts +2 -3
- package/dist/types/components/bottom_bar/bottom_bar_statistic/bottom_bar_statistic.d.ts +2 -3
- package/dist/types/components/clickable_cells_overlay/clickable_cells_overlay.d.ts +2 -3
- package/dist/types/components/collaborative_client_tag/collaborative_client_tag.d.ts +2 -3
- package/dist/types/components/color_picker/color_picker.d.ts +2 -3
- package/dist/types/components/color_picker/color_picker_widget.d.ts +2 -3
- package/dist/types/components/composer/composer/abstract_composer_store.d.ts +3 -3
- package/dist/types/components/composer/composer/composer.d.ts +2 -3
- package/dist/types/components/composer/formula_assistant/formula_assistant.d.ts +2 -3
- package/dist/types/components/composer/grid_composer/grid_composer.d.ts +2 -3
- package/dist/types/components/composer/speech_bubble/speech_bubble.d.ts +2 -3
- package/dist/types/components/composer/standalone_composer/standalone_composer.d.ts +2 -3
- package/dist/types/components/composer/top_bar_composer/top_bar_composer.d.ts +2 -3
- package/dist/types/components/dashboard/clickable_cell_sort_icon/clickable_cell_sort_icon.d.ts +2 -3
- package/dist/types/components/dashboard/dashboard.d.ts +2 -3
- package/dist/types/components/error_tooltip/error_tooltip.d.ts +2 -3
- package/dist/types/components/figures/chart/chartJs/chartjs.d.ts +2 -3
- package/dist/types/components/figures/chart/chart_menu/chart_menu.d.ts +2 -3
- package/dist/types/components/figures/chart/gauge/gauge_chart_component.d.ts +2 -3
- package/dist/types/components/figures/chart/scorecard/chart_scorecard.d.ts +2 -3
- package/dist/types/components/figures/figure/figure.d.ts +2 -3
- package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +2 -2
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +2 -2
- package/dist/types/components/figures/figure_container/figure_container.d.ts +2 -3
- package/dist/types/components/figures/figure_image/figure_image.d.ts +2 -3
- package/dist/types/components/filters/filter_menu/filter_menu.d.ts +2 -3
- package/dist/types/components/filters/filter_menu_criterion/filter_menu_criterion.d.ts +3 -3
- package/dist/types/components/filters/filter_menu_item/filter_menu_value_item.d.ts +2 -3
- package/dist/types/components/filters/filter_menu_value_list/filter_menu_value_list.d.ts +2 -3
- package/dist/types/components/filters/pivot_filter_menu/pivot_filter_menu.d.ts +2 -3
- package/dist/types/components/font_size_editor/font_size_editor.d.ts +2 -3
- package/dist/types/components/full_screen_figure/full_screen_figure.d.ts +2 -2
- package/dist/types/components/generic_input/generic_input.d.ts +2 -3
- package/dist/types/components/grid/grid.d.ts +2 -3
- package/dist/types/components/grid_add_rows_footer/grid_add_rows_footer.d.ts +2 -3
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +2 -3
- package/dist/types/components/grid_popover/grid_popover.d.ts +2 -3
- package/dist/types/components/header_group/header_group.d.ts +2 -3
- package/dist/types/components/header_group/header_group_container.d.ts +2 -3
- package/dist/types/components/headers_overlay/headers_overlay.d.ts +5 -4
- package/dist/types/components/headers_overlay/unhide_headers.d.ts +3 -4
- package/dist/types/components/highlight/border/border.d.ts +2 -3
- package/dist/types/components/highlight/corner/corner.d.ts +2 -3
- package/dist/types/components/highlight/highlight/highlight.d.ts +2 -3
- package/dist/types/components/icon_picker/icon_picker.d.ts +2 -3
- package/dist/types/components/info_popover/info_popover.d.ts +2 -3
- package/dist/types/components/link/link_display/link_display.d.ts +2 -3
- package/dist/types/components/link/link_editor/link_editor.d.ts +2 -3
- package/dist/types/components/menu/menu.d.ts +2 -3
- package/dist/types/components/menu_popover/menu_popover.d.ts +2 -3
- package/dist/types/components/named_range_selector/named_range_selector.d.ts +3 -3
- package/dist/types/components/number_editor/number_editor.d.ts +2 -3
- package/dist/types/components/os_component.d.ts +12 -0
- package/dist/types/components/paint_format_button/paint_format_button.d.ts +2 -3
- package/dist/types/components/pivot_html_renderer/pivot_html_renderer.d.ts +2 -3
- package/dist/types/components/popover/popover.d.ts +2 -3
- package/dist/types/components/props_validation.d.ts +0 -2
- package/dist/types/components/scrollbar/scrollbar_horizontal.d.ts +2 -3
- package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +2 -3
- package/dist/types/components/select/select.d.ts +2 -3
- package/dist/types/components/selection/selection.d.ts +2 -3
- package/dist/types/components/selection_input/selection_input.d.ts +2 -3
- package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/bubble_chart/bubble_chart_config_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/bubble_chart/bubble_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/annotation/annotation.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/axis_design/axis_design_editor.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/chart_title/chart_title.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/color_scale/color_scale_picker.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/data_series/data_series.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/data_source/data_source.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/error_section/error_section.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/general_design/general_design_editor.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/generic_side_panel/config_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/humanize_numbers/humanize_numbers.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/label_range/label_range.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/legend/legend.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/pie_hole_size/pie_hole_size.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/range_data_source/range_data_source.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/series_design/series_design_editor.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/series_design/series_with_axis_design_editor.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/show_data_markers/show_data_markers.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/show_values/show_values.d.ts +2 -3
- package/dist/types/components/side_panel/chart/building_blocks/text_styler/text_styler.d.ts +2 -3
- package/dist/types/components/side_panel/chart/calendar_chart/calendar_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +2 -3
- package/dist/types/components/side_panel/chart/chart_type_picker_popover/chart_type_picker_popover.d.ts +2 -3
- package/dist/types/components/side_panel/chart/chart_with_axis/design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/funnel_chart_panel/funnel_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_config_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/geo_chart_panel/geo_chart_region_select_section.d.ts +2 -3
- package/dist/types/components/side_panel/chart/main_chart_panel/main_chart_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/pie_chart/pie_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/radar_chart/radar_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_config_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/sunburst_chart/sunburst_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/treemap_chart/treemap_category_color/treemap_category_color.d.ts +2 -3
- package/dist/types/components/side_panel/chart/treemap_chart/treemap_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/chart/treemap_chart/treemap_color_scale/treemap_color_scale.d.ts +2 -3
- package/dist/types/components/side_panel/chart/waterfall_chart/waterfall_chart_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/column_stats/column_stats_panel.d.ts +2 -3
- package/dist/types/components/side_panel/components/badge_selection/badge_selection.d.ts +2 -3
- package/dist/types/components/side_panel/components/checkbox/checkbox.d.ts +2 -3
- package/dist/types/components/side_panel/components/cog_wheel_menu/cog_wheel_menu.d.ts +2 -3
- package/dist/types/components/side_panel/components/collapse/collapse.d.ts +2 -3
- package/dist/types/components/side_panel/components/radio_selection/radio_selection.d.ts +2 -3
- package/dist/types/components/side_panel/components/round_color_picker/round_color_picker.d.ts +2 -3
- package/dist/types/components/side_panel/components/section/section.d.ts +2 -3
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/cell_is_rule_editor.d.ts +2 -3
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/cf_editor.d.ts +2 -3
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor.d.ts +2 -3
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor_threshold.d.ts +2 -3
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/data_bar_rule_editor.d.ts +2 -3
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/icon_set_rule_editor.d.ts +2 -3
- package/dist/types/components/side_panel/conditional_formatting/cf_preview/cf_preview.d.ts +2 -3
- package/dist/types/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.d.ts +2 -3
- package/dist/types/components/side_panel/criterion_form/calendar_button/calendar_button.d.ts +2 -3
- package/dist/types/components/side_panel/criterion_form/criterion_form.d.ts +2 -3
- package/dist/types/components/side_panel/criterion_form/criterion_input/criterion_input.d.ts +2 -3
- package/dist/types/components/side_panel/data_analysis/chart_suggestion_preview.d.ts +2 -3
- package/dist/types/components/side_panel/data_analysis/data_analysis_panel.d.ts +2 -3
- package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup.d.ts +2 -3
- package/dist/types/components/side_panel/data_validation/data_validation_panel.d.ts +2 -3
- package/dist/types/components/side_panel/data_validation/dv_editor/dv_editor.d.ts +3 -3
- package/dist/types/components/side_panel/data_validation/dv_preview/dv_preview.d.ts +2 -3
- package/dist/types/components/side_panel/find_and_replace/find_and_replace.d.ts +2 -3
- package/dist/types/components/side_panel/find_and_replace/find_and_replace_store.d.ts +1 -1
- package/dist/types/components/side_panel/more_formats/more_formats.d.ts +2 -3
- package/dist/types/components/side_panel/named_ranges_panel/named_range_preview/named_range_preview.d.ts +2 -3
- package/dist/types/components/side_panel/named_ranges_panel/named_ranges_panel.d.ts +2 -3
- package/dist/types/components/side_panel/perf_profile/perf_profile_panel.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_custom_groups_collapsible/pivot_custom_groups_collapsible.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_defer_update/pivot_defer_update.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_filter/pivot_filter.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/add_dimension_button/add_dimension_button.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_granularity/pivot_dimension_granularity.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_order/pivot_dimension_order.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_measure/pivot_measure.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_sort_section/pivot_sort_section.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_design_panel/pivot_design_panel.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_side_panel.d.ts +4 -4
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_spreadsheet_side_panel/pivot_spreadsheet_side_panel.d.ts +2 -3
- package/dist/types/components/side_panel/pivot/pivot_title_section/pivot_title_section.d.ts +3 -3
- package/dist/types/components/side_panel/remove_duplicates/remove_duplicates.d.ts +2 -3
- package/dist/types/components/side_panel/settings/settings_panel.d.ts +2 -3
- package/dist/types/components/side_panel/side_panel/side_panel.d.ts +2 -3
- package/dist/types/components/side_panel/side_panel/side_panel_store.d.ts +2 -0
- package/dist/types/components/side_panel/side_panels/side_panels.d.ts +2 -3
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +2 -3
- package/dist/types/components/side_panel/table_panel/table_panel.d.ts +2 -3
- package/dist/types/components/side_panel/table_style_editor_panel/table_style_editor_panel.d.ts +2 -3
- package/dist/types/components/small_bottom_bar/ribbon_menu/ribbon_menu.d.ts +2 -3
- package/dist/types/components/small_bottom_bar/small_bottom_bar.d.ts +2 -3
- package/dist/types/components/spreadsheet/spreadsheet.d.ts +3 -4
- package/dist/types/components/spreadsheet_print/spreadsheet_print.d.ts +2 -3
- package/dist/types/components/standalone_grid_canvas/carousel_data_view_print.d.ts +2 -3
- package/dist/types/components/standalone_grid_canvas/standalone_grid_canvas.d.ts +2 -3
- package/dist/types/components/standalone_viewport/standalone_viewport.d.ts +2 -3
- package/dist/types/components/tables/table_dropdown_button/table_dropdown_button.d.ts +2 -3
- package/dist/types/components/tables/table_resizer/table_resizer.d.ts +2 -3
- package/dist/types/components/tables/table_style_picker/table_style_picker.d.ts +2 -3
- package/dist/types/components/tables/table_style_preview/table_style_preview.d.ts +2 -3
- package/dist/types/components/tables/table_styles_popover/table_styles_popover.d.ts +2 -3
- package/dist/types/components/top_bar/color_editor/color_editor.d.ts +2 -3
- package/dist/types/components/top_bar/dropdown_action/dropdown_action.d.ts +2 -3
- package/dist/types/components/top_bar/font_size_editor/font_size_editor.d.ts +2 -3
- package/dist/types/components/top_bar/number_formats_tool/number_formats_tool.d.ts +2 -3
- package/dist/types/components/top_bar/top_bar.d.ts +2 -3
- package/dist/types/components/top_bar/zoom_editor/zoom_editor.d.ts +2 -3
- package/dist/types/components/validation_messages/validation_messages.d.ts +2 -3
- package/dist/types/helpers/links.d.ts +4 -4
- package/dist/types/helpers/owl3_helpers.d.ts +2 -0
- package/dist/types/helpers/pivot/pivot_side_panel_registry.d.ts +2 -2
- package/dist/types/helpers/sort_interactive.d.ts +3 -3
- package/dist/types/helpers/ui/cut_interactive.d.ts +2 -2
- package/dist/types/helpers/ui/freeze_interactive.d.ts +2 -2
- package/dist/types/helpers/ui/merge_interactive.d.ts +2 -2
- package/dist/types/helpers/ui/named_range_interactive.d.ts +3 -3
- package/dist/types/helpers/ui/paste_interactive.d.ts +5 -5
- package/dist/types/helpers/ui/sheet_interactive.d.ts +2 -2
- package/dist/types/helpers/ui/split_to_columns_interactive.d.ts +2 -2
- package/dist/types/helpers/ui/table_interactive.d.ts +2 -2
- package/dist/types/helpers/ui/toggle_group_interactive.d.ts +2 -2
- package/dist/types/index.d.ts +5 -2
- package/dist/types/owl_plugins/notification_owl_plugin.d.ts +8 -0
- package/dist/types/registries/cell_clickable_registry.d.ts +2 -2
- package/dist/types/registries/figures_registry.d.ts +2 -2
- package/dist/types/registries/menus/number_format_menu_registry.d.ts +2 -2
- package/dist/types/stores/clipboard_store.d.ts +1 -1
- package/dist/types/stores/data_cleanup_store.d.ts +1 -1
- package/dist/types/stores/trim_whitespace_store.d.ts +1 -1
- package/dist/types/types/spreadsheet_env.d.ts +6 -2
- package/dist/types/types/stores/notification_store_methods.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/stores/notification_store.d.ts +0 -8
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
-
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
3
1
|
import { MenuPopover, MenuState } from "../../menu_popover/menu_popover";
|
|
4
|
-
|
|
2
|
+
import { OSComponent } from "../../os_component";
|
|
3
|
+
export declare class TableStylePreview extends OSComponent {
|
|
5
4
|
static template: string;
|
|
6
5
|
static components: {
|
|
7
6
|
MenuPopover: typeof MenuPopover;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
-
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
3
1
|
import { TableStyle } from "../../../types/table";
|
|
2
|
+
import { OSComponent } from "../../os_component";
|
|
4
3
|
import { Popover } from "../../popover/popover";
|
|
5
4
|
import { TableStylePreview } from "../table_style_preview/table_style_preview";
|
|
6
5
|
export type CustomTablePopoverMouseEvent = MouseEvent & {
|
|
@@ -9,7 +8,7 @@ export type CustomTablePopoverMouseEvent = MouseEvent & {
|
|
|
9
8
|
export interface State {
|
|
10
9
|
selectedCategory: string;
|
|
11
10
|
}
|
|
12
|
-
export declare class TableStylesPopover extends
|
|
11
|
+
export declare class TableStylesPopover extends OSComponent {
|
|
13
12
|
static template: string;
|
|
14
13
|
static components: {
|
|
15
14
|
Popover: typeof Popover;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
-
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
3
1
|
import { ColorPickerWidget } from "../../color_picker/color_picker_widget";
|
|
4
2
|
import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
|
|
5
|
-
|
|
3
|
+
import { OSComponent } from "../../os_component";
|
|
4
|
+
export declare class TopBarColorEditor extends OSComponent {
|
|
6
5
|
static components: {
|
|
7
6
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
8
7
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
1
|
import { PropsOf } from "../../../types/props_of";
|
|
3
|
-
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
4
2
|
import { ActionButton } from "../../action_button/action_button";
|
|
5
3
|
import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
|
|
4
|
+
import { OSComponent } from "../../os_component";
|
|
6
5
|
import { Popover } from "../../popover/popover";
|
|
7
|
-
export declare class DropdownAction extends
|
|
6
|
+
export declare class DropdownAction extends OSComponent {
|
|
8
7
|
static template: string;
|
|
9
8
|
static components: {
|
|
10
9
|
ActionButton: typeof ActionButton;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
-
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
3
1
|
import { FontSizeEditor } from "../../font_size_editor/font_size_editor";
|
|
4
2
|
import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
|
|
5
|
-
|
|
3
|
+
import { OSComponent } from "../../os_component";
|
|
4
|
+
export declare class TopBarFontSizeEditor extends OSComponent {
|
|
6
5
|
static components: {
|
|
7
6
|
FontSizeEditor: typeof FontSizeEditor;
|
|
8
7
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Action } from "../../../actions/action";
|
|
2
|
-
import { Component } from "../../../owl3_compatibility_layer";
|
|
3
2
|
import { Rect } from "../../../types/rendering";
|
|
4
|
-
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
5
3
|
import { ActionButton } from "../../action_button/action_button";
|
|
6
4
|
import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
|
|
7
5
|
import { MenuPopover } from "../../menu_popover/menu_popover";
|
|
6
|
+
import { OSComponent } from "../../os_component";
|
|
8
7
|
interface State {
|
|
9
8
|
menuItems: Action[];
|
|
10
9
|
anchorRect: Rect;
|
|
11
10
|
}
|
|
12
|
-
export declare class NumberFormatsTool extends
|
|
11
|
+
export declare class NumberFormatsTool extends OSComponent {
|
|
13
12
|
static template: string;
|
|
14
13
|
static components: {
|
|
15
14
|
MenuPopover: typeof MenuPopover;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Action } from "../../actions/action";
|
|
2
|
-
import { Component } from "../../owl3_compatibility_layer";
|
|
3
2
|
import { FormulaFingerprintStore } from "../../stores/formula_fingerprints_store";
|
|
4
3
|
import { Color } from "../../types/misc";
|
|
5
4
|
import { PropsOf } from "../../types/props_of";
|
|
6
|
-
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
7
5
|
import { Store } from "../../types/store_engine";
|
|
8
6
|
import { ComposerFocusStore } from "../composer/composer_focus_store";
|
|
9
7
|
import { TopBarComposer } from "../composer/top_bar_composer/top_bar_composer";
|
|
10
8
|
import { MenuPopover, MenuState } from "../menu_popover/menu_popover";
|
|
11
9
|
import { NamedRangeSelector } from "../named_range_selector/named_range_selector";
|
|
10
|
+
import { OSComponent } from "../os_component";
|
|
12
11
|
import { Popover } from "../popover/popover";
|
|
13
12
|
import { TopBarToolStore } from "./top_bar_tool_store";
|
|
14
13
|
interface State {
|
|
@@ -18,7 +17,7 @@ interface State {
|
|
|
18
17
|
isOpen: boolean;
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
|
-
export declare class TopBar extends
|
|
20
|
+
export declare class TopBar extends OSComponent {
|
|
22
21
|
static template: string;
|
|
23
22
|
protected props: import("@odoo/owl").Props<{
|
|
24
23
|
onClick: () => void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
-
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
3
1
|
import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
|
|
4
2
|
import { NumberEditor } from "../../number_editor/number_editor";
|
|
5
|
-
|
|
3
|
+
import { OSComponent } from "../../os_component";
|
|
4
|
+
export declare class ToolBarZoom extends OSComponent {
|
|
6
5
|
static template: string;
|
|
7
6
|
static components: {
|
|
8
7
|
NumberEditor: typeof NumberEditor;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare class ValidationMessages extends Component<SpreadsheetChildEnv> {
|
|
1
|
+
import { OSComponent } from "../os_component";
|
|
2
|
+
export declare class ValidationMessages extends OSComponent {
|
|
4
3
|
static template: string;
|
|
5
4
|
protected props: import("@odoo/owl").Props<{
|
|
6
5
|
msgType: "error" | "info" | "warning";
|
|
@@ -2,7 +2,7 @@ import { Registry } from "../registries/registry";
|
|
|
2
2
|
import { CellValue } from "../types/cells";
|
|
3
3
|
import { CoreGetters } from "../types/getters";
|
|
4
4
|
import { Link } from "../types/misc";
|
|
5
|
-
import {
|
|
5
|
+
import { SpreadsheetActionEnv } from "../types/spreadsheet_env";
|
|
6
6
|
/**
|
|
7
7
|
* Add the `https` prefix to the url if it's missing
|
|
8
8
|
*/
|
|
@@ -17,15 +17,15 @@ export interface LinkSpec {
|
|
|
17
17
|
* - a link to a sheet displays the sheet name
|
|
18
18
|
*/
|
|
19
19
|
readonly urlRepresentation: (url: string, getters: CoreGetters) => string;
|
|
20
|
-
readonly open: (url: string, env:
|
|
20
|
+
readonly open: (url: string, env: SpreadsheetActionEnv, isMiddleClick?: boolean) => void;
|
|
21
21
|
readonly sequence: number;
|
|
22
22
|
readonly title: string;
|
|
23
23
|
readonly icon?: string;
|
|
24
|
-
readonly getLinkProposals?: (env:
|
|
24
|
+
readonly getLinkProposals?: (env: SpreadsheetActionEnv) => (Link & {
|
|
25
25
|
icon: string;
|
|
26
26
|
})[];
|
|
27
27
|
}
|
|
28
28
|
export declare const urlRegistry: Registry<LinkSpec>;
|
|
29
29
|
export declare function urlRepresentation(link: Link, getters: CoreGetters): string;
|
|
30
|
-
export declare function openLink(link: Link, env:
|
|
30
|
+
export declare function openLink(link: Link, env: SpreadsheetActionEnv, isMiddleClick?: boolean): void;
|
|
31
31
|
export declare function detectLink(value: CellValue | null): Link | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { PluginConstructor } from "@odoo/owl";
|
|
1
2
|
/**
|
|
2
3
|
* Comes from https://github.com/odoo/odoo/blob/master/addons/web/static/src/owl2/utils.js
|
|
3
4
|
*/
|
|
4
5
|
export declare function render(component: any, deep?: boolean): void;
|
|
6
|
+
export declare function providePluginsIfNotPresent(pluginConstructors: PluginConstructor[], config?: Object): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Registry } from "../../registries/registry";
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentConstructor } from "@odoo/owl";
|
|
3
3
|
export interface PivotRegistryItem {
|
|
4
|
-
editor:
|
|
4
|
+
editor: ComponentConstructor;
|
|
5
5
|
}
|
|
6
6
|
export declare const pivotSidePanelRegistry: Registry<PivotRegistryItem>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Position, SortDirection, SortOptions, UID, Zone } from "../types/misc";
|
|
2
|
-
import {
|
|
3
|
-
export declare function interactiveSortSelection(env:
|
|
4
|
-
export declare function interactiveSort(env:
|
|
2
|
+
import { SpreadsheetActionEnv } from "../types/spreadsheet_env";
|
|
3
|
+
export declare function interactiveSortSelection(env: SpreadsheetActionEnv, sheetId: UID, anchor: Position, zone: Zone, sortDirection: SortDirection): void;
|
|
4
|
+
export declare function interactiveSort(env: SpreadsheetActionEnv, sheetId: UID, anchor: Position, zone: Zone, sortDirection: SortDirection, sortOptions?: SortOptions): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function interactiveCut(env:
|
|
1
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
2
|
+
export declare function interactiveCut(env: SpreadsheetActionEnv): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Dimension, HeaderIndex } from "../../types/misc";
|
|
2
|
-
import {
|
|
3
|
-
export declare function interactiveFreezeColumnsRows(env:
|
|
2
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
3
|
+
export declare function interactiveFreezeColumnsRows(env: SpreadsheetActionEnv, dimension: Dimension, base: HeaderIndex): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UID, Zone } from "../../types/misc";
|
|
2
|
-
import {
|
|
2
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
3
3
|
export declare const AddMergeInteractiveContent: {
|
|
4
4
|
MergeIsDestructive: string;
|
|
5
5
|
MergeInFilter: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function interactiveAddMerge(env:
|
|
7
|
+
export declare function interactiveAddMerge(env: SpreadsheetActionEnv, sheetId: UID, target: Zone[]): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CreateNamedRangeCommand, UpdateNamedRangeCommand } from "../../types/commands";
|
|
2
|
-
import {
|
|
3
|
-
export declare function interactiveCreateNamedRange(env:
|
|
4
|
-
export declare function interactiveUpdateNamedRange(env:
|
|
2
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
3
|
+
export declare function interactiveCreateNamedRange(env: SpreadsheetActionEnv, payload: Omit<CreateNamedRangeCommand, "type">): void;
|
|
4
|
+
export declare function interactiveUpdateNamedRange(env: SpreadsheetActionEnv, payload: Omit<UpdateNamedRangeCommand, "type">): void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ClipboardPasteOptions, ParsedOSClipboardContent } from "../../types/clipboard";
|
|
2
2
|
import { CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CopyPasteCellsOnZoneCommand, DispatchResult } from "../../types/commands";
|
|
3
3
|
import { Zone } from "../../types/misc";
|
|
4
|
-
import {
|
|
5
|
-
export declare const handleCopyPasteResult: (env:
|
|
4
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
5
|
+
export declare const handleCopyPasteResult: (env: SpreadsheetActionEnv, command: CopyPasteCellsAboveCommand | CopyPasteCellsOnLeftCommand | CopyPasteCellsOnZoneCommand) => void;
|
|
6
6
|
export declare const PasteInteractiveContent: {
|
|
7
7
|
wrongPasteSelection: string;
|
|
8
8
|
willRemoveExistingMerge: string;
|
|
9
9
|
wrongFigurePasteOption: string;
|
|
10
10
|
frozenPaneOverlap: string;
|
|
11
11
|
};
|
|
12
|
-
export declare function handlePasteResult(env:
|
|
13
|
-
export declare function interactivePaste(env:
|
|
14
|
-
export declare function interactivePasteFromOS(env:
|
|
12
|
+
export declare function handlePasteResult(env: SpreadsheetActionEnv, result: DispatchResult): void;
|
|
13
|
+
export declare function interactivePaste(env: SpreadsheetActionEnv, target: Zone[], pasteOption?: ClipboardPasteOptions): void;
|
|
14
|
+
export declare function interactivePasteFromOS(env: SpreadsheetActionEnv, target: Zone[], parsedClipboardContent: ParsedOSClipboardContent, pasteOption?: ClipboardPasteOptions): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { UID } from "../../types/misc";
|
|
2
|
-
import {
|
|
3
|
-
export declare function interactiveRenameSheet(env:
|
|
2
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
3
|
+
export declare function interactiveRenameSheet(env: SpreadsheetActionEnv, sheetId: UID, name: string, errorCallback: () => void): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DispatchResult } from "../../types/commands";
|
|
2
|
-
import {
|
|
2
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
3
3
|
export declare const SplitToColumnsInteractiveContent: {
|
|
4
4
|
SplitIsDestructive: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function interactiveSplitToColumns(env:
|
|
6
|
+
export declare function interactiveSplitToColumns(env: SpreadsheetActionEnv): DispatchResult;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DispatchResult } from "../../types/commands";
|
|
2
2
|
import { UID } from "../../types/misc";
|
|
3
|
-
import {
|
|
3
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
4
4
|
import { TableConfig } from "../../types/table";
|
|
5
5
|
/**
|
|
6
6
|
* Create a table on the selected zone, with UI warnings to the user if the creation fails.
|
|
7
7
|
* If a single cell is selected, expand the selection to non-empty adjacent cells to create a table.
|
|
8
8
|
*/
|
|
9
|
-
export declare function interactiveCreateTable(env:
|
|
9
|
+
export declare function interactiveCreateTable(env: SpreadsheetActionEnv, sheetId: UID, tableConfig?: TableConfig): DispatchResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dimension, HeaderIndex, UID } from "../../types/misc";
|
|
2
|
-
import {
|
|
2
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
3
3
|
export declare const ToggleGroupInteractiveContent: {
|
|
4
4
|
CannotHideAllRows: string;
|
|
5
5
|
CannotHideAllColumns: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function interactiveToggleGroup(env:
|
|
7
|
+
export declare function interactiveToggleGroup(env: SpreadsheetActionEnv, sheetId: UID, dimension: Dimension, start: HeaderIndex, end: HeaderIndex): void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -96,7 +96,6 @@ import { proxifyStoreMutation, useLocalStore, useStore, useStoreProvider } from
|
|
|
96
96
|
import { ClientFocusStore } from "./stores/client_focus_store";
|
|
97
97
|
import { GridRenderer } from "./stores/grid_renderer_store";
|
|
98
98
|
import { HighlightStore } from "./stores/highlight_store";
|
|
99
|
-
import { NotificationStore } from "./stores/notification_store";
|
|
100
99
|
import { RendererStore } from "./stores/renderer_store";
|
|
101
100
|
import { SpreadsheetStore } from "./stores/spreadsheet_store";
|
|
102
101
|
import { ZoomStore } from "./stores/zoom_store";
|
|
@@ -237,6 +236,7 @@ import { Composer } from "./components/composer/composer/composer";
|
|
|
237
236
|
import { StandaloneComposer } from "./components/composer/standalone_composer/standalone_composer";
|
|
238
237
|
import { CarouselFigure } from "./components/figures/figure_carousel/figure_carousel";
|
|
239
238
|
import { getBoundingRectWithMargins, hasInteractiveElementInEventTree, isMobileOS } from "./components/helpers/dom_helpers";
|
|
239
|
+
import { createGetPluginFunctionFromScope, OSComponent } from "./components/os_component";
|
|
240
240
|
import { PopoverContainerPlugin } from "./components/popover/popover_container_owl_plugin";
|
|
241
241
|
import { Select } from "./components/select/select";
|
|
242
242
|
import { ChartRangeDataSourceComponent } from "./components/side_panel/chart/building_blocks/range_data_source/range_data_source";
|
|
@@ -251,6 +251,7 @@ import { getFirstPivotFunction, getNumberOfPivotFunctions } from "./helpers/pivo
|
|
|
251
251
|
import { domainToColRowDomain } from "./helpers/pivot/pivot_domain_helpers";
|
|
252
252
|
import { drawHighlight } from "./helpers/rendering";
|
|
253
253
|
import { fuzzyLookup } from "./helpers/search";
|
|
254
|
+
import { NotificationPlugin } from "./owl_plugins/notification_owl_plugin";
|
|
254
255
|
import { ClipboardStore } from "./stores/clipboard_store";
|
|
255
256
|
import { ViewportsStore } from "./stores/viewports_store";
|
|
256
257
|
export declare const helpers: {
|
|
@@ -333,6 +334,7 @@ export declare const helpers: {
|
|
|
333
334
|
computeCachedTextDimension: typeof computeCachedTextDimension;
|
|
334
335
|
createComputeFunction: typeof createComputeFunction;
|
|
335
336
|
isMobileOS: typeof isMobileOS;
|
|
337
|
+
createGetPluginFunctionFromScope: typeof createGetPluginFunctionFromScope;
|
|
336
338
|
drawHighlight: typeof drawHighlight;
|
|
337
339
|
getBoundingRectWithMargins: typeof getBoundingRectWithMargins;
|
|
338
340
|
hasInteractiveElementInEventTree: typeof hasInteractiveElementInEventTree;
|
|
@@ -408,6 +410,7 @@ export declare const components: {
|
|
|
408
410
|
Composer: typeof Composer;
|
|
409
411
|
CalendarButton: typeof CalendarButton;
|
|
410
412
|
Spreadsheet: typeof Spreadsheet;
|
|
413
|
+
OSComponent: typeof OSComponent;
|
|
411
414
|
CarouselFigure: typeof CarouselFigure;
|
|
412
415
|
};
|
|
413
416
|
export declare const hooks: {
|
|
@@ -432,7 +435,6 @@ export declare const stores: {
|
|
|
432
435
|
DelayedHoveredCellStore: typeof DelayedHoveredCellStore;
|
|
433
436
|
HoveredTableStore: typeof HoveredTableStore;
|
|
434
437
|
ModelStore: import(".").StoreConstructor<import("./model").Model, any[]>;
|
|
435
|
-
NotificationStore: typeof NotificationStore;
|
|
436
438
|
RendererStore: typeof RendererStore;
|
|
437
439
|
SelectionInputStore: typeof SelectionInputStore;
|
|
438
440
|
SpreadsheetStore: typeof SpreadsheetStore;
|
|
@@ -452,6 +454,7 @@ export declare const stores: {
|
|
|
452
454
|
};
|
|
453
455
|
export declare const owlPlugins: {
|
|
454
456
|
PopoverContainerPlugin: typeof PopoverContainerPlugin;
|
|
457
|
+
NotificationPlugin: typeof NotificationPlugin;
|
|
455
458
|
};
|
|
456
459
|
export { getCaretDownSvg, getCaretUpSvg } from "./components/icons/icons";
|
|
457
460
|
export { createAutocompleteArgumentsProvider } from "./functions/autocomplete_arguments_provider";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from "@odoo/owl";
|
|
2
|
+
import { NotificationCallbacks } from "../types/stores/notification_store_methods";
|
|
3
|
+
export declare class NotificationPlugin extends Plugin {
|
|
4
|
+
notifyUser: NotificationCallbacks["notifyUser"];
|
|
5
|
+
askConfirmation: NotificationCallbacks["askConfirmation"];
|
|
6
|
+
raiseError: NotificationCallbacks["raiseError"];
|
|
7
|
+
updateNotificationCallbacks(methods: Partial<NotificationCallbacks>): void;
|
|
8
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Getters } from "../types/getters";
|
|
2
2
|
import { CellPosition } from "../types/misc";
|
|
3
|
-
import {
|
|
3
|
+
import { SpreadsheetActionEnv } from "../types/spreadsheet_env";
|
|
4
4
|
import { Registry } from "./registry";
|
|
5
5
|
import { ComponentConstructor } from "../owl3_compatibility_layer";
|
|
6
6
|
export interface CellClickableItem {
|
|
7
7
|
condition: (position: CellPosition, getters: Getters) => boolean;
|
|
8
|
-
execute: (position: CellPosition, env:
|
|
8
|
+
execute: (position: CellPosition, env: SpreadsheetActionEnv, isMiddleClick?: boolean) => void;
|
|
9
9
|
title?: string | ((position: CellPosition, getters: Getters) => string);
|
|
10
10
|
sequence: number;
|
|
11
11
|
component?: ComponentConstructor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Action } from "../actions/action";
|
|
2
2
|
import { Getters } from "../types/getters";
|
|
3
3
|
import { UID } from "../types/misc";
|
|
4
|
-
import {
|
|
4
|
+
import { SpreadsheetActionEnv } from "../types/spreadsheet_env";
|
|
5
5
|
import { Registry } from "./registry";
|
|
6
6
|
/**
|
|
7
7
|
* This registry is intended to map a type of figure (tag) to a class of
|
|
@@ -11,7 +11,7 @@ import { Registry } from "./registry";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface FigureContent {
|
|
13
13
|
Component: any;
|
|
14
|
-
menuBuilder: (figureId: UID, env:
|
|
14
|
+
menuBuilder: (figureId: UID, env: SpreadsheetActionEnv) => Action[];
|
|
15
15
|
isThemeDependant: boolean;
|
|
16
16
|
SidePanelComponent?: string;
|
|
17
17
|
keepRatio?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionSpec } from "../../actions/action";
|
|
2
2
|
import * as ACTION_FORMAT from "../../actions/format_actions";
|
|
3
|
-
import {
|
|
3
|
+
import { SpreadsheetActionEnv } from "../../types/spreadsheet_env";
|
|
4
4
|
import { Registry } from "../registry";
|
|
5
5
|
export declare const numberFormatMenuRegistry: Registry<ACTION_FORMAT.NumberFormatActionSpec>;
|
|
6
|
-
export declare function getCustomNumberFormats(env:
|
|
6
|
+
export declare function getCustomNumberFormats(env: SpreadsheetActionEnv): ACTION_FORMAT.NumberFormatActionSpec[];
|
|
7
7
|
export declare const formatNumberMenuItemSpec: ActionSpec;
|
|
@@ -16,7 +16,7 @@ export declare class ClipboardStore extends SpreadsheetStore {
|
|
|
16
16
|
private copiedData?;
|
|
17
17
|
private _isCutOperation;
|
|
18
18
|
private clipboardId;
|
|
19
|
-
private
|
|
19
|
+
private notificationPlugin;
|
|
20
20
|
get renderingLayers(): readonly ["Clipboard"];
|
|
21
21
|
isCommandValid(cmd: Command): DispatchResult;
|
|
22
22
|
private getCommandResult;
|
|
@@ -3,7 +3,7 @@ import { Get } from "../types/store_engine";
|
|
|
3
3
|
import { SpreadsheetStore } from "./spreadsheet_store";
|
|
4
4
|
export declare class DataCleanupStore extends SpreadsheetStore {
|
|
5
5
|
mutators: readonly ["setHasHeader", "setColumns", "toggleAllColumns", "toggleColumn"];
|
|
6
|
-
private
|
|
6
|
+
private notificationPlugin;
|
|
7
7
|
hasHeader: boolean;
|
|
8
8
|
columns: {
|
|
9
9
|
[colIndex: number]: boolean;
|
|
@@ -2,7 +2,7 @@ import { Command } from "../types/commands";
|
|
|
2
2
|
import { SpreadsheetStore } from "./spreadsheet_store";
|
|
3
3
|
export declare class TrimWhitespaceStore extends SpreadsheetStore {
|
|
4
4
|
mutators: readonly ["trimWhitespace"];
|
|
5
|
-
private
|
|
5
|
+
private notificationPlugin;
|
|
6
6
|
trimWhitespace(): void;
|
|
7
7
|
handle(cmd: Command): void;
|
|
8
8
|
private _trimWhitespace;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { PluginConstructor, PluginInstance } from "@odoo/owl";
|
|
1
2
|
import { Model } from "../model";
|
|
2
3
|
import { ClipboardInterface } from "./clipboard/clipboard_interface";
|
|
3
4
|
import { Currency } from "./currency";
|
|
4
5
|
import { ImageProviderInterface } from "./files";
|
|
5
6
|
import { Locale } from "./locale";
|
|
6
7
|
import { Get } from "./store_engine";
|
|
7
|
-
|
|
8
|
-
export interface SpreadsheetChildEnv extends NotificationStoreMethods {
|
|
8
|
+
export interface SpreadsheetChildEnv {
|
|
9
9
|
model: Model;
|
|
10
10
|
imageProvider?: ImageProviderInterface;
|
|
11
11
|
clipboard: ClipboardInterface;
|
|
@@ -17,3 +17,7 @@ export interface SpreadsheetChildEnv extends NotificationStoreMethods {
|
|
|
17
17
|
isMobile: () => boolean;
|
|
18
18
|
printSpreadsheet: () => void;
|
|
19
19
|
}
|
|
20
|
+
export type OwlPluginGetter = <T extends PluginConstructor>(plugin: T) => PluginInstance<T>;
|
|
21
|
+
export interface SpreadsheetActionEnv extends SpreadsheetChildEnv {
|
|
22
|
+
getPlugin: OwlPluginGetter;
|
|
23
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InformationNotification } from "../env";
|
|
2
|
-
export interface
|
|
2
|
+
export interface NotificationCallbacks {
|
|
3
3
|
notifyUser: (notification: InformationNotification) => void;
|
|
4
4
|
raiseError: (text: string, callback?: () => void) => void;
|
|
5
5
|
askConfirmation: (content: string, confirm: () => void, cancel?: () => void) => void;
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { NotificationStoreMethods } from "../types/stores/notification_store_methods";
|
|
2
|
-
export declare class NotificationStore {
|
|
3
|
-
mutators: readonly ["notifyUser", "raiseError", "askConfirmation", "updateNotificationCallbacks"];
|
|
4
|
-
notifyUser: NotificationStoreMethods["notifyUser"];
|
|
5
|
-
askConfirmation: NotificationStoreMethods["askConfirmation"];
|
|
6
|
-
raiseError: NotificationStoreMethods["raiseError"];
|
|
7
|
-
updateNotificationCallbacks(methods: Partial<NotificationStoreMethods>): void;
|
|
8
|
-
}
|