@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.
- package/dist/o_spreadsheet.cjs +1341 -1754
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +1340 -1755
- package/dist/o_spreadsheet.iife.js +1341 -1754
- package/dist/o_spreadsheet.min.iife.js +276 -276
- package/dist/o_spreadsheet.xml +10 -3
- package/dist/types/components/action_button/action_button.d.ts +8 -29
- package/dist/types/components/animation/ripple.d.ts +33 -92
- package/dist/types/components/autofill/autofill.d.ts +5 -9
- package/dist/types/components/border_editor/border_editor.d.ts +18 -43
- package/dist/types/components/border_editor/border_editor_widget.d.ts +6 -20
- package/dist/types/components/bottom_bar/bottom_bar.d.ts +4 -7
- package/dist/types/components/bottom_bar/bottom_bar_sheet/bottom_bar_sheet.d.ts +8 -22
- package/dist/types/components/bottom_bar/bottom_bar_statistic/bottom_bar_statistic.d.ts +5 -10
- package/dist/types/components/collaborative_client_tag/collaborative_client_tag.d.ts +8 -17
- package/dist/types/components/color_picker/color_picker.d.ts +13 -30
- package/dist/types/components/color_picker/color_picker_widget.d.ts +12 -40
- package/dist/types/components/composer/autocomplete_dropdown/autocomplete_dropdown.d.ts +7 -17
- package/dist/types/components/composer/composer/composer.d.ts +18 -63
- package/dist/types/components/composer/formula_assistant/formula_assistant.d.ts +8 -17
- package/dist/types/components/composer/grid_composer/grid_composer.d.ts +8 -13
- package/dist/types/components/composer/speech_bubble/speech_bubble.d.ts +5 -10
- package/dist/types/components/composer/standalone_composer/standalone_composer.d.ts +16 -62
- package/dist/types/components/composer/top_bar_composer/top_bar_composer.d.ts +1 -2
- package/dist/types/components/dashboard/clickable_cell_sort_icon/clickable_cell_sort_icon.d.ts +5 -11
- package/dist/types/components/dashboard/dashboard.d.ts +4 -8
- package/dist/types/components/error_tooltip/error_tooltip.d.ts +5 -14
- package/dist/types/components/figures/chart/chartJs/chartjs.d.ts +5 -14
- package/dist/types/components/figures/chart/chart_dashboard_menu/chart_dashboard_menu.d.ts +7 -15
- package/dist/types/components/figures/chart/gauge/gauge_chart_component.d.ts +5 -13
- package/dist/types/components/figures/chart/scorecard/chart_scorecard.d.ts +5 -14
- package/dist/types/components/figures/figure/figure.d.ts +10 -30
- package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +8 -24
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +7 -24
- package/dist/types/components/figures/figure_container/figure_container.d.ts +1 -4
- package/dist/types/components/figures/figure_image/figure_image.d.ts +6 -19
- package/dist/types/components/filters/filter_menu/filter_menu.d.ts +2 -13
- package/dist/types/components/filters/filter_menu_criterion/filter_menu_criterion.d.ts +6 -13
- package/dist/types/components/filters/filter_menu_item/filter_menu_value_item.d.ts +9 -21
- package/dist/types/components/filters/filter_menu_value_list/filter_menu_value_list.d.ts +12 -11
- package/dist/types/components/filters/pivot_filter_menu/pivot_filter_menu.d.ts +13 -28
- package/dist/types/components/font_size_editor/font_size_editor.d.ts +10 -25
- package/dist/types/components/full_screen_figure/full_screen_figure.d.ts +1 -2
- package/dist/types/components/generic_input/generic_input.d.ts +16 -45
- package/dist/types/components/grid/grid.d.ts +5 -10
- package/dist/types/components/grid_add_rows_footer/grid_add_rows_footer.d.ts +1 -5
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +11 -37
- package/dist/types/components/grid_popover/grid_popover.d.ts +6 -13
- package/dist/types/components/header_group/header_group.d.ts +7 -12
- package/dist/types/components/header_group/header_group_container.d.ts +6 -11
- package/dist/types/components/headers_overlay/headers_overlay.d.ts +10 -16
- package/dist/types/components/headers_overlay/unhide_headers.d.ts +19 -30
- package/dist/types/components/highlight/border/border.d.ts +7 -16
- package/dist/types/components/highlight/corner/corner.d.ts +8 -18
- package/dist/types/components/highlight/highlight/highlight.d.ts +6 -11
- package/dist/types/components/icon_picker/icon_picker.d.ts +4 -8
- package/dist/types/components/link/link_display/link_display.d.ts +6 -13
- package/dist/types/components/link/link_editor/link_editor.d.ts +6 -13
- package/dist/types/components/menu/menu.d.ts +14 -55
- package/dist/types/components/menu_popover/menu_popover.d.ts +22 -69
- package/dist/types/components/named_range_selector/named_range_selector.d.ts +1 -4
- package/dist/types/components/number_editor/number_editor.d.ts +18 -54
- package/dist/types/components/number_input/number_input.d.ts +1 -52
- package/dist/types/components/paint_format_button/paint_format_button.d.ts +4 -11
- package/dist/types/components/pivot_html_renderer/pivot_html_renderer.d.ts +5 -9
- package/dist/types/components/popover/popover.d.ts +18 -69
- package/dist/types/components/props_validation.d.ts +181 -0
- package/dist/types/components/scrollbar/scrollbar.d.ts +13 -11
- package/dist/types/components/scrollbar/scrollbar_horizontal.d.ts +5 -13
- package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +5 -13
- package/dist/types/components/select/select.d.ts +13 -36
- package/dist/types/components/selection/selection.d.ts +4 -4
- package/dist/types/components/selection_input/selection_input.d.ts +20 -74
- package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +5 -10
- package/dist/types/components/side_panel/chart/bar_chart/bar_chart_design_panel.d.ts +2 -10
- package/dist/types/components/side_panel/chart/bubble_chart/bubble_chart_config_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/bubble_chart/bubble_chart_design_panel.d.ts +4 -16
- package/dist/types/components/side_panel/chart/building_blocks/axis_design/axis_design_editor.d.ts +7 -14
- package/dist/types/components/side_panel/chart/building_blocks/chart_title/chart_title.d.ts +11 -33
- package/dist/types/components/side_panel/chart/building_blocks/color_scale/color_scale_picker.d.ts +10 -13
- package/dist/types/components/side_panel/chart/building_blocks/data_series/data_series.d.ts +18 -61
- package/dist/types/components/side_panel/chart/building_blocks/data_source/data_source.d.ts +16 -42
- package/dist/types/components/side_panel/chart/building_blocks/error_section/error_section.d.ts +4 -11
- package/dist/types/components/side_panel/chart/building_blocks/general_design/general_design_editor.d.ts +11 -24
- package/dist/types/components/side_panel/chart/building_blocks/generic_side_panel/config_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/building_blocks/humanize_numbers/humanize_numbers.d.ts +2 -7
- package/dist/types/components/side_panel/chart/building_blocks/label_range/label_range.d.ts +18 -35
- package/dist/types/components/side_panel/chart/building_blocks/legend/legend.d.ts +9 -17
- package/dist/types/components/side_panel/chart/building_blocks/pie_hole_size/pie_hole_size.d.ts +5 -10
- package/dist/types/components/side_panel/chart/building_blocks/range_data_source/range_data_source.d.ts +17 -41
- package/dist/types/components/side_panel/chart/building_blocks/series_design/series_design_editor.d.ts +9 -17
- package/dist/types/components/side_panel/chart/building_blocks/series_design/series_with_axis_design_editor.d.ts +8 -16
- package/dist/types/components/side_panel/chart/building_blocks/show_data_markers/show_data_markers.d.ts +2 -7
- package/dist/types/components/side_panel/chart/building_blocks/show_values/show_values.d.ts +8 -17
- package/dist/types/components/side_panel/chart/building_blocks/text_styler/text_styler.d.ts +10 -38
- package/dist/types/components/side_panel/chart/calendar_chart/calendar_chart_design_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +8 -11
- package/dist/types/components/side_panel/chart/chart_with_axis/design_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/common.d.ts +5 -5
- package/dist/types/components/side_panel/chart/funnel_chart_panel/funnel_chart_design_panel.d.ts +4 -7
- package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_config_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/gauge_chart_panel/gauge_chart_design_panel.d.ts +4 -8
- package/dist/types/components/side_panel/chart/geo_chart_panel/geo_chart_region_select_section.d.ts +6 -12
- package/dist/types/components/side_panel/chart/main_chart_panel/main_chart_panel.d.ts +5 -10
- package/dist/types/components/side_panel/chart/pie_chart/pie_chart_design_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/radar_chart/radar_chart_design_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_config_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/scorecard_chart_panel/scorecard_chart_design_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/sunburst_chart/sunburst_chart_design_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/treemap_chart/treemap_category_color/treemap_category_color.d.ts +8 -14
- package/dist/types/components/side_panel/chart/treemap_chart/treemap_chart_design_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/treemap_chart/treemap_color_scale/treemap_color_scale.d.ts +7 -14
- package/dist/types/components/side_panel/chart/waterfall_chart/waterfall_chart_design_panel.d.ts +2 -7
- package/dist/types/components/side_panel/chart/zoomable_chart/design_panel.d.ts +1 -3
- package/dist/types/components/side_panel/column_stats/column_stats_panel.d.ts +4 -8
- package/dist/types/components/side_panel/components/badge_selection/badge_selection.d.ts +6 -11
- package/dist/types/components/side_panel/components/checkbox/checkbox.d.ts +11 -40
- package/dist/types/components/side_panel/components/cog_wheel_menu/cog_wheel_menu.d.ts +4 -9
- package/dist/types/components/side_panel/components/collapse/collapse.d.ts +4 -10
- package/dist/types/components/side_panel/components/collapsible/side_panel_collapsible.d.ts +6 -16
- package/dist/types/components/side_panel/components/radio_selection/radio_selection.d.ts +9 -22
- package/dist/types/components/side_panel/components/round_color_picker/round_color_picker.d.ts +7 -23
- package/dist/types/components/side_panel/components/section/section.d.ts +6 -16
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/cell_is_rule_editor.d.ts +4 -9
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/cf_editor.d.ts +6 -13
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor.d.ts +4 -9
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor_threshold.d.ts +7 -12
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/data_bar_rule_editor.d.ts +4 -9
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/icon_set_rule_editor.d.ts +6 -10
- package/dist/types/components/side_panel/conditional_formatting/cf_preview/cf_preview.d.ts +6 -13
- package/dist/types/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.d.ts +4 -8
- package/dist/types/components/side_panel/criterion_form/criterion_form.d.ts +7 -20
- package/dist/types/components/side_panel/criterion_form/criterion_input/criterion_input.d.ts +17 -46
- package/dist/types/components/side_panel/data_validation/data_validation_panel.d.ts +4 -8
- package/dist/types/components/side_panel/data_validation/dv_editor/dv_editor.d.ts +6 -14
- package/dist/types/components/side_panel/data_validation/dv_preview/dv_preview.d.ts +4 -9
- package/dist/types/components/side_panel/find_and_replace/find_and_replace.d.ts +4 -8
- package/dist/types/components/side_panel/more_formats/more_formats.d.ts +6 -14
- package/dist/types/components/side_panel/named_ranges_panel/named_range_preview/named_range_preview.d.ts +5 -8
- package/dist/types/components/side_panel/named_ranges_panel/named_ranges_panel.d.ts +4 -8
- package/dist/types/components/side_panel/perf_profile/perf_profile_panel.d.ts +4 -8
- package/dist/types/components/side_panel/pivot/pivot_custom_groups_collapsible/pivot_custom_groups_collapsible.d.ts +7 -13
- package/dist/types/components/side_panel/pivot/pivot_defer_update/pivot_defer_update.d.ts +10 -18
- package/dist/types/components/side_panel/pivot/pivot_filter/pivot_filter.d.ts +8 -15
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/add_dimension_button/add_dimension_button.d.ts +5 -14
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension.d.ts +7 -23
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_granularity/pivot_dimension_granularity.d.ts +9 -16
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_order/pivot_dimension_order.d.ts +7 -12
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +14 -30
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_measure/pivot_measure.d.ts +12 -22
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_sort_section/pivot_sort_section.d.ts +6 -13
- package/dist/types/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel.d.ts +8 -15
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_design_panel/pivot_design_panel.d.ts +5 -10
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_side_panel.d.ts +8 -18
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_spreadsheet_side_panel/pivot_spreadsheet_side_panel.d.ts +5 -11
- package/dist/types/components/side_panel/pivot/pivot_title_section/pivot_title_section.d.ts +6 -12
- package/dist/types/components/side_panel/remove_duplicates/remove_duplicates.d.ts +4 -7
- package/dist/types/components/side_panel/settings/settings_panel.d.ts +4 -8
- package/dist/types/components/side_panel/side_panel/side_panel.d.ts +12 -37
- package/dist/types/components/side_panel/side_panels/side_panels.d.ts +16 -6
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +4 -7
- package/dist/types/components/side_panel/table_panel/table_panel.d.ts +6 -10
- package/dist/types/components/side_panel/table_style_editor_panel/table_style_editor_panel.d.ts +6 -17
- package/dist/types/components/small_bottom_bar/ribbon_menu/ribbon_menu.d.ts +7 -11
- package/dist/types/components/small_bottom_bar/small_bottom_bar.d.ts +7 -10
- package/dist/types/components/spreadsheet/spreadsheet.d.ts +8 -20
- package/dist/types/components/spreadsheet_print/spreadsheet_print.d.ts +4 -8
- package/dist/types/components/standalone_grid_canvas/standalone_grid_canvas.d.ts +6 -13
- package/dist/types/components/tables/table_dropdown_button/table_dropdown_button.d.ts +7 -12
- package/dist/types/components/tables/table_resizer/table_resizer.d.ts +4 -8
- package/dist/types/components/tables/table_style_picker/table_style_picker.d.ts +11 -16
- package/dist/types/components/tables/table_style_preview/table_style_preview.d.ts +9 -28
- package/dist/types/components/tables/table_styles_popover/table_styles_popover.d.ts +23 -26
- package/dist/types/components/text_input/text_input.d.ts +1 -48
- package/dist/types/components/top_bar/color_editor/color_editor.d.ts +7 -14
- package/dist/types/components/top_bar/dropdown_action/dropdown_action.d.ts +10 -17
- package/dist/types/components/top_bar/font_size_editor/font_size_editor.d.ts +4 -8
- package/dist/types/components/top_bar/number_formats_tool/number_formats_tool.d.ts +4 -7
- package/dist/types/components/top_bar/top_bar.d.ts +9 -12
- package/dist/types/components/top_bar/zoom_editor/zoom_editor.d.ts +4 -8
- package/dist/types/components/validation_messages/validation_messages.d.ts +6 -15
- package/dist/types/helpers/formulas.d.ts +1 -0
- package/dist/types/index.d.ts +9 -1
- package/dist/types/owl3_compatibility_layer.d.ts +3 -6
- package/dist/types/plugins/ui_feature/table_computed_style.d.ts +1 -1
- package/dist/types/types/cell_popovers.d.ts +2 -2
- package/dist/types/types/chart/bar_chart.d.ts +1 -0
- package/dist/types/types/chart/chart.d.ts +1 -0
- package/dist/types/types/misc.d.ts +4 -2
- package/dist/types/types/props_of.d.ts +7 -3
- 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
|
|
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<
|
|
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
|
-
|
|
28
|
-
tableConfig:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
7
|
-
|
|
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
|
-
|
|
20
|
-
parentAction:
|
|
21
|
-
childActions:
|
|
22
|
-
class:
|
|
23
|
-
childClass:
|
|
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():
|
|
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
|
-
|
|
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<
|
|
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
|
-
|
|
22
|
-
class:
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
27
|
-
onClick:
|
|
28
|
-
dropdownMaxHeight:
|
|
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():
|
|
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
|
-
|
|
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
|
-
|
|
14
|
-
class:
|
|
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
|
-
|
|
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
|
-
|
|
11
|
-
messages:
|
|
12
|
-
msgType:
|
|
13
|
-
singleBox
|
|
14
|
-
|
|
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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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<
|
|
36
|
+
export interface ComponentConstructor<Env = any> {
|
|
37
37
|
new (...args: any[]): any;
|
|
38
38
|
template: string;
|
|
39
39
|
}
|
|
40
|
-
declare class _Component<
|
|
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<
|
|
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
|
|
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
|
|
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 {
|
|
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
|
|
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];
|