@odoo/o-spreadsheet 19.4.0-alpha.12 → 19.4.0-alpha.14
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 +818 -840
- package/dist/o_spreadsheet.css +29 -6
- package/dist/o_spreadsheet.esm.js +426 -448
- package/dist/o_spreadsheet.iife.js +818 -840
- package/dist/o_spreadsheet.min.iife.js +78 -78
- package/dist/o_spreadsheet.xml +19 -12
- package/dist/types/components/action_button/action_button.d.ts +1 -1
- package/dist/types/components/animation/ripple.d.ts +3 -3
- package/dist/types/components/border_editor/border_editor.d.ts +2 -2
- package/dist/types/components/bottom_bar/bottom_bar.d.ts +1 -1
- package/dist/types/components/color_picker/color_picker.d.ts +2 -0
- package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +2 -1
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -1
- package/dist/types/components/figures/figure_image/figure_image.d.ts +1 -1
- package/dist/types/components/filters/filter_menu_item/filter_menu_value_item.d.ts +2 -2
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +2 -3
- package/dist/types/components/helpers/dom_helpers.d.ts +0 -4
- package/dist/types/components/menu/menu.d.ts +1 -1
- package/dist/types/components/menu_popover/menu_popover.d.ts +1 -1
- package/dist/types/components/props_validation.d.ts +2 -6
- package/dist/types/components/side_panel/chart/building_blocks/axis_design/axis_design_editor.d.ts +5 -6
- package/dist/types/components/side_panel/chart/building_blocks/data_source/data_source.d.ts +5 -4
- package/dist/types/components/side_panel/chart/building_blocks/general_design/general_design_editor.d.ts +7 -7
- package/dist/types/components/side_panel/chart/building_blocks/legend/legend.d.ts +3 -2
- package/dist/types/components/side_panel/chart/building_blocks/range_data_source/range_data_source.d.ts +3 -2
- package/dist/types/components/side_panel/chart/building_blocks/series_design/series_design_editor.d.ts +5 -5
- package/dist/types/components/side_panel/chart/building_blocks/series_design/series_with_axis_design_editor.d.ts +3 -3
- package/dist/types/components/side_panel/chart/building_blocks/show_values/show_values.d.ts +7 -4
- package/dist/types/components/side_panel/chart/common.d.ts +3 -2
- package/dist/types/components/side_panel/chart/geo_chart_panel/geo_chart_region_select_section.d.ts +4 -4
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension.d.ts +2 -2
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_measure/pivot_measure.d.ts +1 -1
- package/dist/types/components/top_bar/font_size_editor/font_size_editor.d.ts +1 -1
- package/package.json +1 -1
package/dist/o_spreadsheet.xml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
3
3
|
@see https://github.com/odoo/o-spreadsheet
|
|
4
|
-
@version 19.4.0-alpha.
|
|
5
|
-
@date 2026-06-
|
|
6
|
-
@hash
|
|
4
|
+
@version 19.4.0-alpha.14
|
|
5
|
+
@date 2026-06-12T09:49:12.332Z
|
|
6
|
+
@hash f92f5e0
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -1543,7 +1543,8 @@
|
|
|
1543
1543
|
t-if="this.popover.isOpen"
|
|
1544
1544
|
t-props="this.popoverProps"
|
|
1545
1545
|
class="'o-pivot-add-dimension-popover'">
|
|
1546
|
-
<div
|
|
1546
|
+
<div
|
|
1547
|
+
class="p-2 border-bottom d-flex sticky-top align-items-baseline pivot-dimension-search bg-white">
|
|
1547
1548
|
<i class="pe-1 pivot-dimension-search-field-icon text-muted">
|
|
1548
1549
|
<t t-call="o-spreadsheet-Icon.SEARCH"/>
|
|
1549
1550
|
</i>
|
|
@@ -7286,7 +7287,6 @@
|
|
|
7286
7287
|
onCellDoubleClicked.bind="this.onCellDoubleClicked"
|
|
7287
7288
|
onCellRightClicked.bind="this.onCellRightClicked"
|
|
7288
7289
|
onGridResized.bind="this.onGridResized"
|
|
7289
|
-
onGridMoved.bind="this.moveCanvas"
|
|
7290
7290
|
gridOverlayDimensions="this.gridOverlayDimensions"
|
|
7291
7291
|
/>
|
|
7292
7292
|
<HeadersOverlay onOpenContextMenu="(type, x, y) => this.toggleContextMenu(type, x, y)"/>
|
|
@@ -7701,7 +7701,9 @@
|
|
|
7701
7701
|
<div
|
|
7702
7702
|
t-elif="selectedItem.type === 'chart'"
|
|
7703
7703
|
class="o-carousel-content w-100 flex-fill position-relative">
|
|
7704
|
-
<div
|
|
7704
|
+
<div
|
|
7705
|
+
class="o-chart-container w-100 h-100"
|
|
7706
|
+
t-on-dblclick.stop="this.onCarouselChartDoubleClick">
|
|
7705
7707
|
<t
|
|
7706
7708
|
t-component="this.chartComponent"
|
|
7707
7709
|
chartId="selectedItem.chartId"
|
|
@@ -7968,7 +7970,6 @@
|
|
|
7968
7970
|
t-att-style="this.gridContainer">
|
|
7969
7971
|
<GridOverlay
|
|
7970
7972
|
onGridResized.bind="this.onGridResized"
|
|
7971
|
-
onGridMoved.bind="this.moveCanvas"
|
|
7972
7973
|
gridOverlayDimensions="this.gridOverlayDimensions">
|
|
7973
7974
|
<div
|
|
7974
7975
|
t-foreach="this.getClickableCells()"
|
|
@@ -8327,11 +8328,6 @@
|
|
|
8327
8328
|
<span>Custom</span>
|
|
8328
8329
|
</div>
|
|
8329
8330
|
<div class="colors-grid o-color-picker-toggler" t-on-click.stop="this.toggleColorPicker">
|
|
8330
|
-
<div class="o-color-picker-line-item bg-white o-color-picker-toggler-button">
|
|
8331
|
-
<div class="o-color-picker-toggler-sign">
|
|
8332
|
-
<t t-call="o-spreadsheet-Icon.PLUS"/>
|
|
8333
|
-
</div>
|
|
8334
|
-
</div>
|
|
8335
8331
|
<div
|
|
8336
8332
|
t-foreach="this.env.model.getters.getCustomColors()"
|
|
8337
8333
|
t-as="color"
|
|
@@ -8347,6 +8343,17 @@
|
|
|
8347
8343
|
✓
|
|
8348
8344
|
</div>
|
|
8349
8345
|
</div>
|
|
8346
|
+
<div class="o-color-picker-line-item bg-white o-color-picker-toggler-button">
|
|
8347
|
+
<div class="o-color-picker-toggler-sign">
|
|
8348
|
+
<t t-call="o-spreadsheet-Icon.PLUS"/>
|
|
8349
|
+
</div>
|
|
8350
|
+
</div>
|
|
8351
|
+
<div
|
|
8352
|
+
class="eyedropper d-flex align-items-center justify-content-center rounded-circle"
|
|
8353
|
+
t-if="this.canUseEyeDropper"
|
|
8354
|
+
t-on-click.stop="this.activateEyedropper">
|
|
8355
|
+
<i class="fa fa-eyedropper"/>
|
|
8356
|
+
</div>
|
|
8350
8357
|
</div>
|
|
8351
8358
|
<div t-if="this.state.showGradient" class="o-custom-selector">
|
|
8352
8359
|
<div
|
|
@@ -7,7 +7,7 @@ export declare class ActionButton extends Component<SpreadsheetChildEnv> {
|
|
|
7
7
|
hasTriangleDownIcon?: boolean | undefined;
|
|
8
8
|
selectedColor?: string | undefined;
|
|
9
9
|
class?: string | undefined;
|
|
10
|
-
onClick?: ((
|
|
10
|
+
onClick?: ((ev: MouseEvent) => void) | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
private actionButton;
|
|
13
13
|
setup(): void;
|
|
@@ -14,7 +14,7 @@ declare class RippleEffect extends Component<SpreadsheetChildEnv> {
|
|
|
14
14
|
offsetY: number;
|
|
15
15
|
offsetX: number;
|
|
16
16
|
allowOverflow: boolean;
|
|
17
|
-
onAnimationEnd: (
|
|
17
|
+
onAnimationEnd: () => void;
|
|
18
18
|
style: string;
|
|
19
19
|
}>;
|
|
20
20
|
private rippleRef;
|
|
@@ -37,14 +37,14 @@ export declare class Ripple extends Component<SpreadsheetChildEnv> {
|
|
|
37
37
|
offsetX?: number | undefined;
|
|
38
38
|
allowOverflow?: boolean | undefined;
|
|
39
39
|
enabled?: boolean | undefined;
|
|
40
|
-
onAnimationEnd?: ((
|
|
40
|
+
onAnimationEnd?: (() => void) | undefined;
|
|
41
41
|
class?: string | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
color: string;
|
|
44
44
|
opacity: number;
|
|
45
45
|
duration: number;
|
|
46
46
|
enabled: boolean;
|
|
47
|
-
onAnimationEnd: () =>
|
|
47
|
+
onAnimationEnd: () => any;
|
|
48
48
|
class: string;
|
|
49
49
|
}>>;
|
|
50
50
|
private childContainerRef;
|
|
@@ -19,8 +19,8 @@ export declare class BorderEditor extends Component<SpreadsheetChildEnv> {
|
|
|
19
19
|
currentBorderColor: Color;
|
|
20
20
|
currentBorderStyle: "medium" | "thin" | "thick" | "dashed" | "dotted";
|
|
21
21
|
onBorderColorPicked: (color: Color) => void;
|
|
22
|
-
onBorderStylePicked: (style:
|
|
23
|
-
onBorderPositionPicked: (position:
|
|
22
|
+
onBorderStylePicked: (style: BorderStyle) => void;
|
|
23
|
+
onBorderPositionPicked: (position: BorderPosition) => void;
|
|
24
24
|
anchorRect: Rect;
|
|
25
25
|
class?: string | undefined;
|
|
26
26
|
currentBorderPosition?: "all" | "clear" | "left" | "top" | "bottom" | "right" | "external" | "h" | "v" | "hv" | undefined;
|
|
@@ -16,7 +16,7 @@ interface BottomBarMenuState extends MenuState {
|
|
|
16
16
|
export declare class BottomBar extends Component<SpreadsheetChildEnv> {
|
|
17
17
|
static template: string;
|
|
18
18
|
protected props: import("@odoo/owl").Props<{
|
|
19
|
-
onClick: () => void;
|
|
19
|
+
onClick: (ev: MouseEvent) => void;
|
|
20
20
|
}>;
|
|
21
21
|
static components: {
|
|
22
22
|
MenuPopover: typeof MenuPopover;
|
|
@@ -38,4 +38,6 @@ export declare class ColorPicker extends Component<SpreadsheetChildEnv> {
|
|
|
38
38
|
setHexColor(ev: InputEvent): void;
|
|
39
39
|
addCustomColor(ev: Event): void;
|
|
40
40
|
isSameColor(color1: Color, color2: Color): boolean;
|
|
41
|
+
get canUseEyeDropper(): boolean;
|
|
42
|
+
activateEyedropper(): Promise<void>;
|
|
41
43
|
}
|
|
@@ -17,7 +17,7 @@ export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
|
17
17
|
figureUI: import("../../..").FigureUI;
|
|
18
18
|
editFigureStyle?: ((properties: CSSProperties) => void) | undefined;
|
|
19
19
|
isFullScreen?: boolean | undefined;
|
|
20
|
-
openContextMenu?: ((anchorRect: Rect, onClose?: (
|
|
20
|
+
openContextMenu?: ((anchorRect: Rect, onClose?: () => void) => void) | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
private carouselTabsRef;
|
|
23
23
|
private carouselTabsDropdownRef;
|
|
@@ -30,6 +30,7 @@ export declare class CarouselFigure extends Component<SpreadsheetChildEnv> {
|
|
|
30
30
|
get selectedCarouselItem(): CarouselItem | undefined;
|
|
31
31
|
get chartComponent(): new (...args: any) => Component;
|
|
32
32
|
onCarouselDoubleClick(): void;
|
|
33
|
+
onCarouselChartDoubleClick(): void;
|
|
33
34
|
isItemSelected(item: CarouselItem): boolean;
|
|
34
35
|
getItemTitle(item: CarouselItem): string;
|
|
35
36
|
onCarouselTabClick(item: CarouselItem): void;
|
|
@@ -13,7 +13,7 @@ export declare class ChartFigure extends Component<SpreadsheetChildEnv> {
|
|
|
13
13
|
figureUI: import("../../..").FigureUI;
|
|
14
14
|
editFigureStyle?: ((properties: CSSProperties) => void) | undefined;
|
|
15
15
|
isFullScreen?: boolean | undefined;
|
|
16
|
-
openContextMenu?: ((anchorRect: Rect, onClose?: (
|
|
16
|
+
openContextMenu?: ((anchorRect: Rect, onClose?: () => void) => void) | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
onDoubleClick(): void;
|
|
19
19
|
get chartType(): ChartType;
|
|
@@ -8,7 +8,7 @@ export declare class ImageFigure extends Component<SpreadsheetChildEnv> {
|
|
|
8
8
|
protected props: import("@odoo/owl").Props<{
|
|
9
9
|
figureUI: import("../../..").FigureUI;
|
|
10
10
|
editFigureStyle?: ((properties: CSSProperties) => void) | undefined;
|
|
11
|
-
openContextMenu?: ((anchorRect: Rect, onClose?: (
|
|
11
|
+
openContextMenu?: ((anchorRect: Rect, onClose?: () => void) => void) | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
get figureId(): UID;
|
|
14
14
|
get getImagePath(): string;
|
|
@@ -10,8 +10,8 @@ export declare class FilterMenuValueItem extends Component<SpreadsheetChildEnv>
|
|
|
10
10
|
value: string;
|
|
11
11
|
isChecked: boolean;
|
|
12
12
|
isSelected: boolean;
|
|
13
|
-
onMouseMove: () => void;
|
|
14
|
-
onClick: () => void;
|
|
13
|
+
onMouseMove: (ev: MouseEvent) => void;
|
|
14
|
+
onClick: (ev: MouseEvent) => void;
|
|
15
15
|
scrolledTo?: "top" | "bottom" | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
itemRef: import("@odoo/owl").Signal<HTMLElement | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from "../../owl3_compatibility_layer";
|
|
2
|
-
import { GridClickModifiers, HeaderIndex
|
|
2
|
+
import { GridClickModifiers, HeaderIndex } from "../../types/misc";
|
|
3
3
|
import { DOMCoordinates } from "../../types/rendering";
|
|
4
4
|
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
5
5
|
import { FiguresContainer } from "../figures/figure_container/figure_container";
|
|
@@ -12,10 +12,9 @@ export declare class GridOverlay extends Component<SpreadsheetChildEnv> {
|
|
|
12
12
|
GridAddRowsFooter: typeof GridAddRowsFooter;
|
|
13
13
|
};
|
|
14
14
|
protected props: import("@odoo/owl").Props<import("@odoo/owl").WithDefaults<{
|
|
15
|
-
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
16
15
|
gridOverlayDimensions: string;
|
|
17
16
|
onCellDoubleClicked?: ((col: HeaderIndex, row: HeaderIndex) => void) | undefined;
|
|
18
|
-
onCellClicked?: ((col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, zoomedMouseEvent: ZoomedMouseEvent<
|
|
17
|
+
onCellClicked?: ((col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, zoomedMouseEvent: ZoomedMouseEvent<MouseEvent | PointerEvent>) => void) | undefined;
|
|
19
18
|
onCellRightClicked?: ((col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void) | undefined;
|
|
20
19
|
onGridResized?: (() => void) | undefined;
|
|
21
20
|
}, {
|
|
@@ -42,9 +42,5 @@ export declare function isCtrlKey(ev: KeyboardEvent | MouseEvent): boolean;
|
|
|
42
42
|
*/
|
|
43
43
|
export declare function isMiddleClickOrCtrlClick(ev: MouseEvent): boolean;
|
|
44
44
|
export declare function downloadFile(dataUrl: string, fileName: string): void;
|
|
45
|
-
/**
|
|
46
|
-
* Detects if the current browser is Firefox
|
|
47
|
-
*/
|
|
48
|
-
export declare function isBrowserFirefox(): boolean;
|
|
49
45
|
export declare function isIOS(): boolean;
|
|
50
46
|
export declare function isMobileOS(): boolean;
|
|
@@ -25,7 +25,7 @@ export declare class Menu extends Component<SpreadsheetChildEnv> {
|
|
|
25
25
|
width?: number | undefined;
|
|
26
26
|
hoveredMenuId?: string | undefined;
|
|
27
27
|
isHoveredMenuFocused?: boolean | undefined;
|
|
28
|
-
onScroll?: ((ev: CustomEvent
|
|
28
|
+
onScroll?: ((ev: CustomEvent) => void) | undefined;
|
|
29
29
|
onKeyDown?: ((ev: KeyboardEvent) => void) | undefined;
|
|
30
30
|
disableKeyboardNavigation?: boolean | undefined;
|
|
31
31
|
}>;
|
|
@@ -29,7 +29,7 @@ export declare class MenuPopover extends Component<SpreadsheetChildEnv> {
|
|
|
29
29
|
popoverPositioning?: "top-right" | "bottom-left" | undefined;
|
|
30
30
|
depth?: number | undefined;
|
|
31
31
|
maxHeight?: Pixel | undefined;
|
|
32
|
-
onMenuClicked?: ((ev: CustomEvent
|
|
32
|
+
onMenuClicked?: ((ev: CustomEvent) => void) | undefined;
|
|
33
33
|
menuId?: UID | undefined;
|
|
34
34
|
onMouseOver?: (() => void) | undefined;
|
|
35
35
|
width?: number | undefined;
|
|
@@ -54,7 +54,9 @@ declare function validateContextMenuType(): ContextMenuType;
|
|
|
54
54
|
* match what `useStore(...)` returns at the call site.
|
|
55
55
|
*/
|
|
56
56
|
declare function validateStore<T>(): Store<T>;
|
|
57
|
+
declare function validateFunction<T = () => void>(): T;
|
|
57
58
|
export declare const types: {
|
|
59
|
+
function: typeof validateFunction;
|
|
58
60
|
ArrayOf: typeof validateArrayOf;
|
|
59
61
|
RecordOf: typeof validateRecordOf;
|
|
60
62
|
SetOf: typeof validateSetOf;
|
|
@@ -141,12 +143,6 @@ export declare const types: {
|
|
|
141
143
|
boolean: () => boolean;
|
|
142
144
|
constructor: <T extends import("@odoo/owl").Constructor>(constructor: T) => T;
|
|
143
145
|
customValidator: <T>(type: T, validator: (value: T) => boolean, errorMessage?: string) => T;
|
|
144
|
-
function: {
|
|
145
|
-
(): (...parameters: any[]) => any;
|
|
146
|
-
<const P extends any[]>(parameters: P): (...parameters: P) => void;
|
|
147
|
-
<const P extends any[], R>(): (...parameters: P) => R;
|
|
148
|
-
<const P extends any[], R>(parameters: P, result: R): (...parameters: P) => R;
|
|
149
|
-
};
|
|
150
146
|
instanceOf: <T extends import("@odoo/owl").Constructor>(constructor: T) => InstanceType<T>;
|
|
151
147
|
literal: <const T extends import("@odoo/owl").LiteralTypes>(literal: T) => T;
|
|
152
148
|
number: <T extends number = number>() => T;
|
package/dist/types/components/side_panel/chart/building_blocks/axis_design/axis_design_editor.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Component } from "../../../../../owl3_compatibility_layer";
|
|
2
|
-
import { AxisId,
|
|
3
|
-
import { DispatchResult } from "../../../../../types/commands";
|
|
4
|
-
import { UID } from "../../../../../types/misc";
|
|
2
|
+
import { AxisId, TitleDesign } from "../../../../../types/chart/chart";
|
|
5
3
|
import { SpreadsheetChildEnv } from "../../../../../types/spreadsheet_env";
|
|
6
4
|
import { DateInput } from "../../../../date_input/date_input";
|
|
7
5
|
import { NumberInput } from "../../../../number_input/number_input";
|
|
8
6
|
import { BadgeSelection } from "../../../components/badge_selection/badge_selection";
|
|
9
7
|
import { Checkbox } from "../../../components/checkbox/checkbox";
|
|
10
8
|
import { Section } from "../../../components/section/section";
|
|
9
|
+
import { ChartUpdateFunction } from "../../common";
|
|
11
10
|
import { ChartTitle } from "../chart_title/chart_title";
|
|
12
11
|
export interface AxisDefinition {
|
|
13
12
|
id: AxisId;
|
|
@@ -24,9 +23,9 @@ export declare class AxisDesignEditor extends Component<SpreadsheetChildEnv> {
|
|
|
24
23
|
DateInput: typeof DateInput;
|
|
25
24
|
};
|
|
26
25
|
protected props: import("@odoo/owl").Props<{
|
|
27
|
-
chartId: UID;
|
|
28
|
-
definition: ChartWithAxisDefinition;
|
|
29
|
-
updateChart:
|
|
26
|
+
chartId: import("../../../../..").UID;
|
|
27
|
+
definition: import("../../../../..").ChartWithAxisDefinition;
|
|
28
|
+
updateChart: ChartUpdateFunction;
|
|
30
29
|
axesList: AxisDefinition[];
|
|
31
30
|
}>;
|
|
32
31
|
state: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Component } from "../../../../../owl3_compatibility_layer";
|
|
2
|
+
import { ChartDefinitionWithDataSource } from "../../../../../types/chart/chart";
|
|
2
3
|
import { SpreadsheetChildEnv } from "../../../../../types/spreadsheet_env";
|
|
4
|
+
import { ChartUpdateFunction } from "../../common";
|
|
3
5
|
import { ChartDataSeries } from "../data_series/data_series";
|
|
4
6
|
import { ChartLabelRange } from "../label_range/label_range";
|
|
5
7
|
export declare class ChartDataSourceComponent extends Component<SpreadsheetChildEnv> {
|
|
@@ -10,10 +12,9 @@ export declare class ChartDataSourceComponent extends Component<SpreadsheetChild
|
|
|
10
12
|
};
|
|
11
13
|
protected props: import("@odoo/owl").Props<{
|
|
12
14
|
chartId: import("../../../../..").UID;
|
|
13
|
-
definition:
|
|
14
|
-
updateChart:
|
|
15
|
-
canUpdateChart:
|
|
16
|
-
onErrorMessagesChanged?: ((errorMessages: string[]) => void) | undefined;
|
|
15
|
+
definition: ChartDefinitionWithDataSource<string>;
|
|
16
|
+
updateChart: ChartUpdateFunction<ChartDefinitionWithDataSource<string>>;
|
|
17
|
+
canUpdateChart: ChartUpdateFunction<ChartDefinitionWithDataSource<string>>;
|
|
17
18
|
dataSeriesTitle?: string | undefined;
|
|
18
19
|
labelRangeTitle?: string | undefined;
|
|
19
20
|
getLabelRangeOptions?: (() => Array<{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component } from "../../../../../owl3_compatibility_layer";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Color, UID } from "../../../../../types/misc";
|
|
2
|
+
import { TitleDesign } from "../../../../../types/chart/chart";
|
|
3
|
+
import { Color } from "../../../../../types/misc";
|
|
5
4
|
import { SpreadsheetChildEnv } from "../../../../../types/spreadsheet_env";
|
|
6
5
|
import { SidePanelCollapsible } from "../../../components/collapsible/side_panel_collapsible";
|
|
7
6
|
import { RadioSelection } from "../../../components/radio_selection/radio_selection";
|
|
8
7
|
import { RoundColorPicker } from "../../../components/round_color_picker/round_color_picker";
|
|
9
8
|
import { Section } from "../../../components/section/section";
|
|
9
|
+
import { ChartUpdateFunction } from "../../common";
|
|
10
10
|
import { ChartTitle } from "../chart_title/chart_title";
|
|
11
11
|
export declare class GeneralDesignEditor extends Component<SpreadsheetChildEnv> {
|
|
12
12
|
static template: string;
|
|
@@ -18,10 +18,10 @@ export declare class GeneralDesignEditor extends Component<SpreadsheetChildEnv>
|
|
|
18
18
|
RadioSelection: typeof RadioSelection;
|
|
19
19
|
};
|
|
20
20
|
protected props: import("@odoo/owl").Props<import("@odoo/owl").WithDefaults<{
|
|
21
|
-
chartId: UID;
|
|
22
|
-
definition: ChartDefinition<string>;
|
|
23
|
-
canUpdateChart:
|
|
24
|
-
updateChart:
|
|
21
|
+
chartId: import("../../../../..").UID;
|
|
22
|
+
definition: import("../../../../..").ChartDefinition<string>;
|
|
23
|
+
canUpdateChart: ChartUpdateFunction;
|
|
24
|
+
updateChart: ChartUpdateFunction;
|
|
25
25
|
defaultChartTitleFontSize?: number | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
defaultChartTitleFontSize: number;
|
|
@@ -4,6 +4,7 @@ import { SpreadsheetChildEnv } from "../../../../../types/spreadsheet_env";
|
|
|
4
4
|
import { Select } from "../../../../select/select";
|
|
5
5
|
import { Section } from "../../../components/section/section";
|
|
6
6
|
import { Component } from "../../../../../owl3_compatibility_layer";
|
|
7
|
+
import { ChartUpdateFunction } from "../../common";
|
|
7
8
|
export declare class ChartLegend extends Component<SpreadsheetChildEnv> {
|
|
8
9
|
static template: string;
|
|
9
10
|
static components: {
|
|
@@ -13,8 +14,8 @@ export declare class ChartLegend extends Component<SpreadsheetChildEnv> {
|
|
|
13
14
|
protected props: import("@odoo/owl").Props<import("@odoo/owl").WithDefaults<{
|
|
14
15
|
chartId: string;
|
|
15
16
|
definition: import("../../../../..").ChartDefinitionWithDataSource<string>;
|
|
16
|
-
canUpdateChart:
|
|
17
|
-
updateChart:
|
|
17
|
+
canUpdateChart: ChartUpdateFunction;
|
|
18
|
+
updateChart: ChartUpdateFunction;
|
|
18
19
|
isDisabled?: boolean | undefined;
|
|
19
20
|
}, {
|
|
20
21
|
isDisabled: boolean;
|
|
@@ -3,6 +3,7 @@ import { ChartDatasetOrientation, ChartDefinitionWithDataSource, ChartRangeDataS
|
|
|
3
3
|
import { DispatchResult } from "../../../../../types/commands";
|
|
4
4
|
import { UID } from "../../../../../types/misc";
|
|
5
5
|
import { SpreadsheetChildEnv } from "../../../../../types/spreadsheet_env";
|
|
6
|
+
import { ChartUpdateFunction } from "../../common";
|
|
6
7
|
import { ChartDataSeries } from "../data_series/data_series";
|
|
7
8
|
import { ChartLabelRange } from "../label_range/label_range";
|
|
8
9
|
interface ChartRangeDataSourceState {
|
|
@@ -19,8 +20,8 @@ export declare class ChartRangeDataSourceComponent extends Component<Spreadsheet
|
|
|
19
20
|
chartId: UID;
|
|
20
21
|
definition: ChartDefinitionWithDataSource<string>;
|
|
21
22
|
dataSource: ChartRangeDataSourceType<string>;
|
|
22
|
-
updateChart:
|
|
23
|
-
canUpdateChart:
|
|
23
|
+
updateChart: ChartUpdateFunction<ChartDefinitionWithDataSource<string>>;
|
|
24
|
+
canUpdateChart: ChartUpdateFunction<ChartDefinitionWithDataSource<string>>;
|
|
24
25
|
onErrorMessagesChanged?: ((errorMessages: string[]) => void) | undefined;
|
|
25
26
|
dataSeriesTitle?: string | undefined;
|
|
26
27
|
labelRangeTitle?: string | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component } from "../../../../../owl3_compatibility_layer";
|
|
2
2
|
import { ChartDefinitionWithDataSource } from "../../../../../types/chart/chart";
|
|
3
|
-
import {
|
|
4
|
-
import { UID, ValueAndLabel } from "../../../../../types/misc";
|
|
3
|
+
import { ValueAndLabel } from "../../../../../types/misc";
|
|
5
4
|
import { SpreadsheetChildEnv } from "../../../../../types/spreadsheet_env";
|
|
6
5
|
import { Select } from "../../../../select/select";
|
|
7
6
|
import { SidePanelCollapsible } from "../../../components/collapsible/side_panel_collapsible";
|
|
8
7
|
import { RoundColorPicker } from "../../../components/round_color_picker/round_color_picker";
|
|
9
8
|
import { Section } from "../../../components/section/section";
|
|
9
|
+
import { ChartUpdateFunction } from "../../common";
|
|
10
10
|
export declare class SeriesDesignEditor extends Component<SpreadsheetChildEnv> {
|
|
11
11
|
static template: string;
|
|
12
12
|
static components: {
|
|
@@ -16,10 +16,10 @@ export declare class SeriesDesignEditor extends Component<SpreadsheetChildEnv> {
|
|
|
16
16
|
Select: typeof Select;
|
|
17
17
|
};
|
|
18
18
|
protected props: import("@odoo/owl").Props<{
|
|
19
|
-
chartId: UID;
|
|
19
|
+
chartId: import("../../../../..").UID;
|
|
20
20
|
definition: ChartDefinitionWithDataSource<string>;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
updateChart: ChartUpdateFunction<ChartDefinitionWithDataSource<string>>;
|
|
22
|
+
canUpdateChart: ChartUpdateFunction<ChartDefinitionWithDataSource<string>>;
|
|
23
23
|
}>;
|
|
24
24
|
protected state: {
|
|
25
25
|
dataSetId: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Component } from "../../../../../owl3_compatibility_layer";
|
|
2
2
|
import { ChartDefinitionWithDataSource, TrendConfiguration } from "../../../../../types/chart/chart";
|
|
3
|
-
import { DispatchResult } from "../../../../../types/commands";
|
|
4
3
|
import { Color, UID, ValueAndLabel } from "../../../../../types/misc";
|
|
5
4
|
import { SpreadsheetChildEnv } from "../../../../../types/spreadsheet_env";
|
|
6
5
|
import { NumberInput } from "../../../../number_input/number_input";
|
|
@@ -9,6 +8,7 @@ import { Checkbox } from "../../../components/checkbox/checkbox";
|
|
|
9
8
|
import { RadioSelection } from "../../../components/radio_selection/radio_selection";
|
|
10
9
|
import { RoundColorPicker } from "../../../components/round_color_picker/round_color_picker";
|
|
11
10
|
import { Section } from "../../../components/section/section";
|
|
11
|
+
import { ChartUpdateFunction } from "../../common";
|
|
12
12
|
import { SeriesDesignEditor } from "./series_design_editor";
|
|
13
13
|
export declare class SeriesWithAxisDesignEditor extends Component<SpreadsheetChildEnv> {
|
|
14
14
|
static template: string;
|
|
@@ -24,8 +24,8 @@ export declare class SeriesWithAxisDesignEditor extends Component<SpreadsheetChi
|
|
|
24
24
|
protected props: import("@odoo/owl").Props<{
|
|
25
25
|
chartId: UID;
|
|
26
26
|
definition: ChartDefinitionWithDataSource<string>;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
updateChart: ChartUpdateFunction<ChartDefinitionWithDataSource<string>>;
|
|
28
|
+
canUpdateChart: ChartUpdateFunction<ChartDefinitionWithDataSource<string>>;
|
|
29
29
|
}>;
|
|
30
30
|
axisChoices: {
|
|
31
31
|
value: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Component } from "../../../../../owl3_compatibility_layer";
|
|
2
|
+
import { ChartDefinitionWithDataSource } from "../../../../../types/chart/chart";
|
|
3
|
+
import { DispatchResult } from "../../../../../types/commands";
|
|
4
|
+
import { UID } from "../../../../../types/misc";
|
|
2
5
|
import { SpreadsheetChildEnv } from "../../../../../types/spreadsheet_env";
|
|
3
6
|
import { Checkbox } from "../../../components/checkbox/checkbox";
|
|
4
7
|
export declare class ChartShowValues extends Component<SpreadsheetChildEnv> {
|
|
@@ -7,10 +10,10 @@ export declare class ChartShowValues extends Component<SpreadsheetChildEnv> {
|
|
|
7
10
|
Checkbox: typeof Checkbox;
|
|
8
11
|
};
|
|
9
12
|
protected props: import("@odoo/owl").Props<{
|
|
10
|
-
chartId:
|
|
11
|
-
definition:
|
|
12
|
-
canUpdateChart: () =>
|
|
13
|
-
updateChart: () =>
|
|
13
|
+
chartId: UID;
|
|
14
|
+
definition: ChartDefinitionWithDataSource<string>;
|
|
15
|
+
canUpdateChart: (chartId: UID, definition: Partial<ChartDefinitionWithDataSource<string>>) => DispatchResult;
|
|
16
|
+
updateChart: (chartId: UID, definition: Partial<ChartDefinitionWithDataSource<string>>) => DispatchResult;
|
|
14
17
|
defaultValue?: boolean | undefined;
|
|
15
18
|
}>;
|
|
16
19
|
}
|
|
@@ -7,9 +7,10 @@ export interface ChartSidePanelProps<T extends ChartDefinition<string>> {
|
|
|
7
7
|
canUpdateChart: (chartId: UID, definition: Partial<T>) => DispatchResult;
|
|
8
8
|
updateChart: (chartId: UID, definition: Partial<T>) => DispatchResult;
|
|
9
9
|
}
|
|
10
|
+
export type ChartUpdateFunction<T extends ChartDefinition<string> = ChartDefinition<string>> = (chartId: UID, definition: Partial<T>) => DispatchResult;
|
|
10
11
|
export declare const chartSidePanelPropsDefinition: {
|
|
11
12
|
chartId: UID;
|
|
12
13
|
definition: {};
|
|
13
|
-
canUpdateChart:
|
|
14
|
-
updateChart:
|
|
14
|
+
canUpdateChart: ChartUpdateFunction<ChartDefinition<string>>;
|
|
15
|
+
updateChart: ChartUpdateFunction<ChartDefinition<string>>;
|
|
15
16
|
};
|
package/dist/types/components/side_panel/chart/geo_chart_panel/geo_chart_region_select_section.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GeoChartDefinition } from "../../../../types/chart/geo_chart";
|
|
2
|
-
import {
|
|
3
|
-
import { UID, ValueAndLabel } from "../../../../types/misc";
|
|
2
|
+
import { ValueAndLabel } from "../../../../types/misc";
|
|
4
3
|
import { SpreadsheetChildEnv } from "../../../../types/spreadsheet_env";
|
|
5
4
|
import { Select } from "../../../select/select";
|
|
6
5
|
import { Section } from "../../components/section/section";
|
|
7
6
|
import { Component } from "../../../../owl3_compatibility_layer";
|
|
7
|
+
import { ChartUpdateFunction } from "../common";
|
|
8
8
|
export declare class GeoChartRegionSelectSection extends Component<SpreadsheetChildEnv> {
|
|
9
9
|
static template: string;
|
|
10
10
|
static components: {
|
|
@@ -12,9 +12,9 @@ export declare class GeoChartRegionSelectSection extends Component<SpreadsheetCh
|
|
|
12
12
|
Select: typeof Select;
|
|
13
13
|
};
|
|
14
14
|
protected props: import("@odoo/owl").Props<{
|
|
15
|
-
chartId: UID;
|
|
15
|
+
chartId: import("../../../..").UID;
|
|
16
16
|
definition: GeoChartDefinition<string>;
|
|
17
|
-
updateChart:
|
|
17
|
+
updateChart: ChartUpdateFunction<GeoChartDefinition<string>>;
|
|
18
18
|
}>;
|
|
19
19
|
updateSelectedRegion(value: string): void;
|
|
20
20
|
get availableRegions(): import("../../../../types/chart/geo_chart").GeoChartRegion[];
|
|
@@ -7,8 +7,8 @@ export declare class PivotDimension extends Component<SpreadsheetChildEnv> {
|
|
|
7
7
|
static template: string;
|
|
8
8
|
protected props: import("@odoo/owl").Props<{
|
|
9
9
|
dimension: PivotFilter | PivotMeasure | PivotDimensionType;
|
|
10
|
-
onRemoved?: ((dimension:
|
|
11
|
-
onNameUpdated?: ((dimension:
|
|
10
|
+
onRemoved?: ((dimension: PivotDimensionType | PivotMeasure | PivotFilter) => void) | undefined;
|
|
11
|
+
onNameUpdated?: ((dimension: PivotDimensionType | PivotMeasure | PivotFilter, name?: string) => void) | undefined;
|
|
12
12
|
type?: "filter" | "col" | "row" | "measure" | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
static components: {
|
|
@@ -19,7 +19,7 @@ export declare class PivotMeasureEditor extends Component<SpreadsheetChildEnv> {
|
|
|
19
19
|
measure: PivotMeasure;
|
|
20
20
|
onMeasureUpdated: (measure: PivotMeasure) => void;
|
|
21
21
|
onRemoved: () => void;
|
|
22
|
-
generateMeasureId: (fieldName: string, aggregator?: string
|
|
22
|
+
generateMeasureId: (fieldName: string, aggregator?: string) => string;
|
|
23
23
|
aggregators: {};
|
|
24
24
|
}>;
|
|
25
25
|
getMeasureAutocomplete(): import("../../../../../registries/auto_completes/auto_complete_registry").AutoCompleteProviderDefinition;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Component } from "../../../owl3_compatibility_layer";
|
|
1
2
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
2
3
|
import { FontSizeEditor } from "../../font_size_editor/font_size_editor";
|
|
3
4
|
import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
|
|
4
|
-
import { Component } from "../../../owl3_compatibility_layer";
|
|
5
5
|
export declare class TopBarFontSizeEditor extends Component<SpreadsheetChildEnv> {
|
|
6
6
|
static components: {
|
|
7
7
|
FontSizeEditor: typeof FontSizeEditor;
|