@odoo/o-spreadsheet 19.3.3 → 19.3.5
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 +944 -865
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +944 -865
- package/dist/o_spreadsheet.iife.js +946 -867
- package/dist/o_spreadsheet.min.iife.js +387 -387
- package/dist/o_spreadsheet.xml +6 -5
- package/dist/types/components/menu/menu.d.ts +5 -0
- package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +3 -1
- package/dist/types/helpers/figures/chart.d.ts +1 -2
- package/dist/types/helpers/pivot/pivot_composer_helpers.d.ts +4 -0
- package/dist/types/plugins/ui_core_views/pivot_ui.d.ts +17 -8
- package/package.json +17 -17
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.3.
|
|
5
|
-
@date 2026-05-
|
|
6
|
-
@hash
|
|
4
|
+
@version 19.3.5
|
|
5
|
+
@date 2026-05-27T06:08:24.174Z
|
|
6
|
+
@hash 0cf1540
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -5137,6 +5137,7 @@
|
|
|
5137
5137
|
width="props.width"
|
|
5138
5138
|
autoSelectFirstItem="subMenu.autoSelectFirstItem"
|
|
5139
5139
|
onKeyboardNavigation.bind="this.onKeydown"
|
|
5140
|
+
disableKeyboardNavigation="this.props.disableKeyboardNavigation"
|
|
5140
5141
|
/>
|
|
5141
5142
|
</Popover>
|
|
5142
5143
|
</t>
|
|
@@ -7837,7 +7838,7 @@
|
|
|
7837
7838
|
t-on-pointermove="() => this.props.onValueHovered(proposal_index)">
|
|
7838
7839
|
<div class="d-flex align-items-center gap-2">
|
|
7839
7840
|
<div t-if="proposal.icon" t-call="{{proposal.icon}}"/>
|
|
7840
|
-
<div class="o-autocomplete-value text-truncate">
|
|
7841
|
+
<div class="o-autocomplete-value text-truncate flex-grow-1">
|
|
7841
7842
|
<t t-set="htmlContent" t-value="proposal.htmlContent || [{ value: proposal.text}]"/>
|
|
7842
7843
|
<span
|
|
7843
7844
|
t-foreach="htmlContent"
|
|
@@ -7922,7 +7923,7 @@
|
|
|
7922
7923
|
class="o-color-picker-line-item"
|
|
7923
7924
|
t-att-data-color="color"
|
|
7924
7925
|
t-attf-style="background-color:{{color}};"
|
|
7925
|
-
t-on-click="() => this.onColorClick(color)">
|
|
7926
|
+
t-on-click.stop="() => this.onColorClick(color)">
|
|
7926
7927
|
<div
|
|
7927
7928
|
t-if="isSameColor(props.currentColor, color)"
|
|
7928
7929
|
align="center"
|
|
@@ -16,6 +16,7 @@ export interface MenuProps {
|
|
|
16
16
|
isHoveredMenuFocused?: boolean;
|
|
17
17
|
width?: number;
|
|
18
18
|
onKeyDown?: (ev: KeyboardEvent) => void;
|
|
19
|
+
disableKeyboardNavigation?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export interface MenuState {
|
|
21
22
|
isOpen: boolean;
|
|
@@ -61,6 +62,10 @@ export declare class Menu extends Component<MenuProps, SpreadsheetChildEnv> {
|
|
|
61
62
|
type: FunctionConstructor;
|
|
62
63
|
optional: boolean;
|
|
63
64
|
};
|
|
65
|
+
disableKeyboardNavigation: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
optional: boolean;
|
|
68
|
+
};
|
|
64
69
|
};
|
|
65
70
|
static components: {};
|
|
66
71
|
static defaultProps: {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component } from "@odoo/owl";
|
|
2
|
+
import { ChartType } from "../../../../types/chart/chart";
|
|
2
3
|
import { ChartSubtypeProperties } from "../../../../types/chart_subtype_properties";
|
|
3
|
-
import {
|
|
4
|
+
import { UID } from "../../../../types/index";
|
|
4
5
|
import { SpreadsheetChildEnv } from "../../../../types/spreadsheet_env";
|
|
5
6
|
import { Popover, PopoverProps } from "../../../popover";
|
|
6
7
|
import { Section } from "../../components/section/section";
|
|
@@ -41,6 +42,7 @@ export declare class ChartTypePicker extends Component<Props, SpreadsheetChildEn
|
|
|
41
42
|
};
|
|
42
43
|
state: ChartTypePickerState;
|
|
43
44
|
setup(): void;
|
|
45
|
+
private getSupportedChartTypes;
|
|
44
46
|
onExternalClick(ev: MouseEvent): void;
|
|
45
47
|
onTypeChange(type: ChartType): void;
|
|
46
48
|
private getChartDefinition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RangeAdapterFunctions, UID } from "../..";
|
|
2
|
-
import { ChartCreationContext, ChartData, ChartDefinition
|
|
2
|
+
import { ChartCreationContext, ChartData, ChartDefinition } from "../../types/chart";
|
|
3
3
|
import { CoreGetters } from "../../types/core_getters";
|
|
4
4
|
import { Getters } from "../../types/getters";
|
|
5
5
|
import { Range } from "../../types/range";
|
|
@@ -16,7 +16,6 @@ export declare class SpreadsheetChart {
|
|
|
16
16
|
static fromDefinition(getters: CoreGetters, sheetId: UID, definition: ChartDefinition<Range>): SpreadsheetChart;
|
|
17
17
|
static validate(validator: Validator, definition: ChartDefinition<string>): import("../..").CommandResult | import("../..").CommandResult[];
|
|
18
18
|
static transformDefinition(chartSheetId: UID, definition: ChartDefinition<string>, rangeAdapters: RangeAdapterFunctions): import("../../types/chart").LineChartDefinition<string> | import("../../types/chart").PieChartDefinition<string> | import("../../types/chart").BarChartDefinition<string> | import("../../types/chart").ScatterChartDefinition<string> | import("../../types/chart/combo_chart").ComboChartDefinition<string> | import("../../types/chart").WaterfallChartDefinition<string> | import("../../types/chart").PyramidChartDefinition<string> | import("../../types/chart/radar_chart").RadarChartDefinition<string> | import("../../types/chart/geo_chart").GeoChartDefinition<string> | import("../../types/chart").FunnelChartDefinition<string> | import("../../types/chart").SunburstChartDefinition<string> | import("../../types/chart/tree_map_chart").TreeMapChartDefinition<string> | import("../../types/chart/calendar_chart").CalendarChartDefinition<string> | import("../../types/chart").ScorecardChartDefinition<string> | import("../../types/chart").GaugeChartDefinition<string>;
|
|
19
|
-
getSupportedChartTypes(): Set<ChartType>;
|
|
20
19
|
getRangeDefinition(): ChartDefinition<Range>;
|
|
21
20
|
getDefinition(): ChartDefinition<string>;
|
|
22
21
|
updateRanges(rangeAdapters: RangeAdapterFunctions): ChartDefinition<Range>;
|
|
@@ -11,6 +11,10 @@ export declare function getFirstPivotFunction(compiledFormula: CompiledFormula,
|
|
|
11
11
|
functionName: string;
|
|
12
12
|
args: import("../..").AST[];
|
|
13
13
|
};
|
|
14
|
+
export declare function getPivotFunctions(compiledFormula: CompiledFormula, getters: CoreGetters): {
|
|
15
|
+
functionName: string;
|
|
16
|
+
args: import("../..").AST[];
|
|
17
|
+
}[];
|
|
14
18
|
/**
|
|
15
19
|
* Parse a spreadsheet formula and detect the number of PIVOT functions that are
|
|
16
20
|
* present in the given formula.
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { CompiledFormula } from "../../formulas/compiler";
|
|
2
|
+
import { CellValue } from "../../types/cells";
|
|
2
3
|
import { Command } from "../../types/commands";
|
|
3
|
-
import { CellPosition, SortDirection, UID } from "../../types/misc";
|
|
4
|
+
import { CellPosition, Matrix, SortDirection, UID } from "../../types/misc";
|
|
4
5
|
import { PivotCoreMeasure, PivotStyle, PivotTableCell } from "../../types/pivot";
|
|
5
6
|
import { Pivot } from "../../types/pivot_runtime";
|
|
6
7
|
import { CoreViewPlugin, CoreViewPluginConfig } from "../core_view_plugin";
|
|
7
8
|
export declare const UNDO_REDO_PIVOT_COMMANDS: string[];
|
|
9
|
+
interface PivotEvaluatedArgs {
|
|
10
|
+
functionName: string;
|
|
11
|
+
args: (CellValue | Matrix<CellValue> | undefined)[];
|
|
12
|
+
}
|
|
8
13
|
export declare class PivotUIPlugin extends CoreViewPlugin {
|
|
9
|
-
static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula", "getAllPivotArrayFormulas", "getPivotStyleAtPosition"];
|
|
14
|
+
static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotIdsFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula", "getAllPivotArrayFormulas", "getPivotStyleAtPosition"];
|
|
10
15
|
private pivots;
|
|
11
16
|
private unusedPivotsInFormulas?;
|
|
12
17
|
private custom;
|
|
@@ -14,15 +19,18 @@ export declare class PivotUIPlugin extends CoreViewPlugin {
|
|
|
14
19
|
beforeHandle(cmd: Command): void;
|
|
15
20
|
handle(cmd: Command): void;
|
|
16
21
|
/**
|
|
17
|
-
* Get the id of the pivot at the given position. Returns undefined if there
|
|
22
|
+
* Get the id of the first pivot in the formula at the given position. Returns undefined if there
|
|
18
23
|
* is no pivot at this position
|
|
19
24
|
*/
|
|
20
|
-
getPivotIdFromPosition(position: CellPosition):
|
|
25
|
+
getPivotIdFromPosition(position: CellPosition): UID | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Get all of the ids of the pivot present in the formula at the given position.
|
|
28
|
+
*/
|
|
29
|
+
getPivotIdsFromPosition(position: CellPosition): UID[];
|
|
30
|
+
private getPivotIdsFromFormula;
|
|
21
31
|
isSpillPivotFormula(position: CellPosition): boolean;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
args: (import("../..").CellValue | import("../..").Matrix<import("../..").CellValue> | undefined)[];
|
|
25
|
-
} | undefined;
|
|
32
|
+
private getPivotFunctions;
|
|
33
|
+
getFirstPivotFunction(sheetId: UID, formula: CompiledFormula): PivotEvaluatedArgs | undefined;
|
|
26
34
|
/**
|
|
27
35
|
* Returns the domain args of a pivot formula from a position.
|
|
28
36
|
* For all those formulas:
|
|
@@ -60,3 +68,4 @@ export declare class PivotUIPlugin extends CoreViewPlugin {
|
|
|
60
68
|
} | undefined;
|
|
61
69
|
private isMainFunctionPivotSpreadFunction;
|
|
62
70
|
}
|
|
71
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "19.3.
|
|
3
|
+
"version": "19.3.5",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o_spreadsheet.cjs",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"npm-run-all": "^4.1.5",
|
|
98
98
|
"prettier": "^2.8.0",
|
|
99
99
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
100
|
-
"rolldown": "^1.0.0
|
|
100
|
+
"rolldown": "^1.0.0",
|
|
101
101
|
"seedrandom": "^3.0.5",
|
|
102
102
|
"typescript": "^6.0.2",
|
|
103
103
|
"typescript-eslint": "^8.30.1",
|
|
@@ -115,21 +115,21 @@
|
|
|
115
115
|
"@swc/core-win32-arm64-msvc": "1.6.7",
|
|
116
116
|
"@swc/core-win32-ia32-msvc": "1.6.7",
|
|
117
117
|
"@swc/core-win32-x64-msvc": "1.6.7",
|
|
118
|
-
"@rolldown/binding-android-arm64": "1.0.0
|
|
119
|
-
"@rolldown/binding-darwin-arm64": "1.0.0
|
|
120
|
-
"@rolldown/binding-darwin-x64": "1.0.0
|
|
121
|
-
"@rolldown/binding-freebsd-x64": "1.0.0
|
|
122
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0
|
|
123
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0
|
|
124
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0
|
|
125
|
-
"@rolldown/binding-linux-ppc64-gnu": "1.0.0
|
|
126
|
-
"@rolldown/binding-linux-s390x-gnu": "1.0.0
|
|
127
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0
|
|
128
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0
|
|
129
|
-
"@rolldown/binding-openharmony-arm64": "1.0.0
|
|
130
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0
|
|
131
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0
|
|
132
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0
|
|
118
|
+
"@rolldown/binding-android-arm64": "1.0.0",
|
|
119
|
+
"@rolldown/binding-darwin-arm64": "1.0.0",
|
|
120
|
+
"@rolldown/binding-darwin-x64": "1.0.0",
|
|
121
|
+
"@rolldown/binding-freebsd-x64": "1.0.0",
|
|
122
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0",
|
|
123
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0",
|
|
124
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0",
|
|
125
|
+
"@rolldown/binding-linux-ppc64-gnu": "1.0.0",
|
|
126
|
+
"@rolldown/binding-linux-s390x-gnu": "1.0.0",
|
|
127
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0",
|
|
128
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0",
|
|
129
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0",
|
|
130
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0",
|
|
131
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0",
|
|
132
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0"
|
|
133
133
|
},
|
|
134
134
|
"prettier": {
|
|
135
135
|
"printWidth": 100,
|