@odoo/o-spreadsheet 19.4.4 → 19.4.6
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 +89 -34
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +89 -34
- package/dist/o_spreadsheet.iife.js +89 -34
- package/dist/o_spreadsheet.min.iife.js +257 -257
- package/dist/o_spreadsheet.xml +6 -8
- package/dist/types/components/figures/chart/chartJs/chartjs_geo_projection_plugin.d.ts +12 -0
- package/dist/types/components/figures/figure/figure.d.ts +3 -3
- package/dist/types/components/helpers/dom_helpers.d.ts +2 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +0 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
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.
|
|
5
|
-
@date 2026-
|
|
6
|
-
@hash
|
|
4
|
+
@version 19.4.6
|
|
5
|
+
@date 2026-08-10T12:33:33.568Z
|
|
6
|
+
@hash 5c667fe
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -1473,7 +1473,7 @@
|
|
|
1473
1473
|
/>
|
|
1474
1474
|
</t>
|
|
1475
1475
|
<div t-if="measure.computedBy" class="d-flex flex-row small">
|
|
1476
|
-
<div class="d-flex flex-column py-2 px-2 w-100"
|
|
1476
|
+
<div class="d-flex flex-column py-2 px-2 w-100">
|
|
1477
1477
|
<StandaloneComposer
|
|
1478
1478
|
onConfirm.bind="this.updateMeasureFormula"
|
|
1479
1479
|
composerContent="measure.computedBy.formula"
|
|
@@ -1552,7 +1552,7 @@
|
|
|
1552
1552
|
/>
|
|
1553
1553
|
<span t-else="1" class="o-fw-bold text-truncate" t-out="this.dimensionDisplayName"/>
|
|
1554
1554
|
</div>
|
|
1555
|
-
<div class="d-flex flex-rows"
|
|
1555
|
+
<div class="d-flex flex-rows">
|
|
1556
1556
|
<t t-call-slot="upper-right-icons"/>
|
|
1557
1557
|
<i
|
|
1558
1558
|
class="o-button-icon fa fa-trash pe-1 ps-2"
|
|
@@ -1661,9 +1661,7 @@
|
|
|
1661
1661
|
t-as="group"
|
|
1662
1662
|
t-key="group_index"
|
|
1663
1663
|
class="o-pivot-custom-group pb-1">
|
|
1664
|
-
<div
|
|
1665
|
-
class="d-flex align-items-center justify-content-between small"
|
|
1666
|
-
t-on-pointerdown.stop="">
|
|
1664
|
+
<div class="d-flex align-items-center justify-content-between small">
|
|
1667
1665
|
<TextInput
|
|
1668
1666
|
value="group.name"
|
|
1669
1667
|
onChange="(newName) => this.onRenameGroup(group_index, newName)"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plugin } from "chart.js";
|
|
2
|
+
/**
|
|
3
|
+
* ChartJS plugin to apply custom changes to a d3 projection.
|
|
4
|
+
*
|
|
5
|
+
* We pass the projection as a string instead of a customized d3 object so
|
|
6
|
+
* Chart.js creates a fresh projection instance. Custom changes (e.g. rotation)
|
|
7
|
+
* are then applied in `beforeUpdate`.
|
|
8
|
+
*
|
|
9
|
+
* This is important because Chart.js mutates the projection instance at runtime,
|
|
10
|
+
* and a customize d3 projection object would not be copied during deepCopy.
|
|
11
|
+
*/
|
|
12
|
+
export declare const geoProjectionPlugin: Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from "../../../owl3_compatibility_layer";
|
|
2
|
-
import { ResizeDirection } from "../../../types/figure";
|
|
2
|
+
import { FigureUI, ResizeDirection } from "../../../types/figure";
|
|
3
3
|
import { CSSProperties } from "../../../types/misc";
|
|
4
4
|
import { Rect } from "../../../types/rendering";
|
|
5
5
|
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
@@ -11,7 +11,7 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
|
|
|
11
11
|
MenuPopover: typeof MenuPopover;
|
|
12
12
|
};
|
|
13
13
|
protected props: import("@odoo/owl").PropsWithDefaults<{
|
|
14
|
-
figureUI:
|
|
14
|
+
figureUI: FigureUI;
|
|
15
15
|
style: string;
|
|
16
16
|
class: string;
|
|
17
17
|
onMouseDown: (ev: MouseEvent) => void;
|
|
@@ -32,7 +32,7 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
|
|
|
32
32
|
onMouseDown(ev: MouseEvent): void;
|
|
33
33
|
onClick(ev: MouseEvent): void;
|
|
34
34
|
onKeyDown(ev: KeyboardEvent): void;
|
|
35
|
-
private
|
|
35
|
+
private positionInBoundary;
|
|
36
36
|
onContextMenu(ev: MouseEvent): void;
|
|
37
37
|
openContextMenu(anchorRect: Rect): void;
|
|
38
38
|
editWrapperStyle(properties: CSSProperties): void;
|
|
@@ -44,3 +44,5 @@ export declare function isMiddleClickOrCtrlClick(ev: MouseEvent): boolean;
|
|
|
44
44
|
export declare function downloadFile(dataUrl: string, fileName: string): void;
|
|
45
45
|
export declare function isIOS(): boolean;
|
|
46
46
|
export declare function isMobileOS(): boolean;
|
|
47
|
+
/** Check if there is an interactive element (input, select, button, ...) between the event.target and event.currentTarget (inclusive)*/
|
|
48
|
+
export declare function hasInteractiveElementInEventTree(event: Event): boolean;
|
|
@@ -39,9 +39,7 @@ export declare class PivotLayoutConfigurator extends Component<SpreadsheetChildE
|
|
|
39
39
|
private dimensionsRef;
|
|
40
40
|
private dragAndDrop;
|
|
41
41
|
AGGREGATORS: {};
|
|
42
|
-
private composerFocus;
|
|
43
42
|
isDateOrDatetimeField: typeof isDateOrDatetimeField;
|
|
44
|
-
setup(): void;
|
|
45
43
|
startDragAndDrop(dimension: PivotDimensionType, event: MouseEvent): void;
|
|
46
44
|
getGranularitiesFor(field: PivotField): string[];
|
|
47
45
|
startDragAndDropMeasures(measure: PivotMeasure, event: MouseEvent): void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -230,6 +230,7 @@ import "./registries/chart_types";
|
|
|
230
230
|
import "./registries/interactive_icon_on_cell_registry";
|
|
231
231
|
import { Composer } from "./components/composer/composer/composer";
|
|
232
232
|
import { StandaloneComposer } from "./components/composer/standalone_composer/standalone_composer";
|
|
233
|
+
import { CarouselFigure } from "./components/figures/figure_carousel/figure_carousel";
|
|
233
234
|
import { Select } from "./components/select/select";
|
|
234
235
|
import { ChartRangeDataSourceComponent } from "./components/side_panel/chart/building_blocks/range_data_source/range_data_source";
|
|
235
236
|
import { TopBar } from "./components/top_bar/top_bar";
|
|
@@ -385,6 +386,7 @@ export declare const components: {
|
|
|
385
386
|
NumberInput: typeof NumberInput;
|
|
386
387
|
TopBar: typeof TopBar;
|
|
387
388
|
Composer: typeof Composer;
|
|
389
|
+
CarouselFigure: typeof CarouselFigure;
|
|
388
390
|
};
|
|
389
391
|
export declare const hooks: {
|
|
390
392
|
useDragAndDropListItems: typeof useDragAndDropListItems;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "19.4.
|
|
3
|
+
"version": "19.4.6",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o_spreadsheet.cjs",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"xmlSelfClosingSpace": false
|
|
142
142
|
},
|
|
143
143
|
"dependencies": {
|
|
144
|
-
"@odoo/owl": "3.0.0-alpha.
|
|
144
|
+
"@odoo/owl": "3.0.0-alpha.45",
|
|
145
145
|
"bootstrap": "5.3.3",
|
|
146
146
|
"font-awesome": "^4.7.0",
|
|
147
147
|
"rbush": "^3.0.1"
|