@odoo/o-spreadsheet 19.4.2 → 19.4.4
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 +322 -227
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +323 -228
- package/dist/o_spreadsheet.iife.js +322 -227
- package/dist/o_spreadsheet.min.iife.js +262 -262
- package/dist/o_spreadsheet.xml +4 -7
- package/dist/types/clipboard_handlers/default_clipboard.d.ts +1 -1
- package/dist/types/components/grid/grid.d.ts +1 -0
- package/dist/types/components/props_validation.d.ts +7 -7
- package/dist/types/components/side_panel/chart/common.d.ts +1 -1
- package/dist/types/formulas/compiler.d.ts +1 -0
- package/dist/types/helpers/misc.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/plugins/core/squisher.d.ts +1 -0
- package/dist/types/plugins/ui_core_views/pivot_ui.d.ts +3 -0
- package/dist/types/plugins/ui_feature/collaborative.d.ts +2 -1
- package/dist/types/types/range.d.ts +1 -0
- package/package.json +2 -2
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 19.4.
|
|
6
|
-
* @date 2026-07-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.4.4
|
|
6
|
+
* @date 2026-07-23T07:49:22.265Z
|
|
7
|
+
* @hash 6b3c312
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function(exports, _odoo_owl) {
|
|
@@ -1248,6 +1248,12 @@ _odoo_owl = __toESM(_odoo_owl, 1);
|
|
|
1248
1248
|
}
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
|
+
function repeat(array, times) {
|
|
1252
|
+
const len = array.length;
|
|
1253
|
+
const result = new Array(len * times);
|
|
1254
|
+
for (let t = 0; t < times; t++) for (let i = 0; i < len; i++) result[t * len + i] = array[i];
|
|
1255
|
+
return result;
|
|
1256
|
+
}
|
|
1251
1257
|
|
|
1252
1258
|
//#endregion
|
|
1253
1259
|
//#region src/helpers/coordinates.ts
|
|
@@ -2601,7 +2607,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
2601
2607
|
*
|
|
2602
2608
|
* The end goal is to eliminate all compatibility shims.
|
|
2603
2609
|
*/
|
|
2604
|
-
const { __ODOO_COMPATIBILITY_LAYER_ADDED__, blockDom: blockDom$1, config, onMounted: onMounted$24, onPatched: onPatched$5, onWillUnmount: onWillUnmount$18, App: OwlApp, Component: OwlComponent, EnvPlugin: OwlEnvPlugin, useChildEnv: OwlUseChildEnv, useChildSubEnv: OwlUseChildSubEnv, useComponent: OwlUseComponent, useEnv: OwlUseEnv, useExternalListener: OwlUseExternalListener, useLayoutEffect: OwlUseLayoutEffect, useSubEnv: OwlUseSubEnv, Plugin,
|
|
2610
|
+
const { __ODOO_COMPATIBILITY_LAYER_ADDED__, blockDom: blockDom$1, config, onMounted: onMounted$24, onPatched: onPatched$5, onWillUnmount: onWillUnmount$18, App: OwlApp, Component: OwlComponent, EnvPlugin: OwlEnvPlugin, useChildEnv: OwlUseChildEnv, useChildSubEnv: OwlUseChildSubEnv, useComponent: OwlUseComponent, useEnv: OwlUseEnv, useExternalListener: OwlUseExternalListener, useLayoutEffect: OwlUseLayoutEffect, useSubEnv: OwlUseSubEnv, Plugin, usePlugin, useProps: useProps$166, providePlugins, useScope, xml: xml$4 } = _odoo_owl;
|
|
2605
2611
|
const isOdooCompatLoaded = __ODOO_COMPATIBILITY_LAYER_ADDED__ === true;
|
|
2606
2612
|
var _Component = class extends OwlComponent {
|
|
2607
2613
|
static template = "";
|
|
@@ -2682,7 +2688,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
2682
2688
|
extendEnv(extension);
|
|
2683
2689
|
}
|
|
2684
2690
|
function _useChildEnv() {
|
|
2685
|
-
return
|
|
2691
|
+
return usePlugin(_EnvPlugin).env;
|
|
2686
2692
|
}
|
|
2687
2693
|
var VPortal = class extends blockDom$1.text("").constructor {
|
|
2688
2694
|
/**
|
|
@@ -2731,7 +2737,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
2731
2737
|
static template = xml$4`<t t-call-slot="default"/>`;
|
|
2732
2738
|
constructor(node) {
|
|
2733
2739
|
super(node);
|
|
2734
|
-
this.props =
|
|
2740
|
+
this.props = useProps$166();
|
|
2735
2741
|
this.__owl__ = node;
|
|
2736
2742
|
}
|
|
2737
2743
|
setup() {
|
|
@@ -6767,7 +6773,7 @@ set(value) {
|
|
|
6767
6773
|
if (prefixSheet && !sheetName) return CellErrorType.InvalidReference;
|
|
6768
6774
|
let rangeString = getRangePartString(range, 0, options);
|
|
6769
6775
|
if (range.parts && range.parts.length === 2) {
|
|
6770
|
-
if (range.zone.top !== range.zone.bottom || range.zone.left !== range.zone.right || range.parts[0].rowFixed || range.parts[0].colFixed || range.parts[1].rowFixed || range.parts[1].colFixed) {
|
|
6776
|
+
if (range.zone.top !== range.zone.bottom || range.zone.left !== range.zone.right || range.parts[0].rowFixed || range.parts[0].colFixed || range.parts[1].rowFixed || range.parts[1].colFixed || options.doNotSimplifyRange) {
|
|
6771
6777
|
rangeString += ":";
|
|
6772
6778
|
rangeString += getRangePartString(range, 1, options);
|
|
6773
6779
|
}
|
|
@@ -7519,6 +7525,11 @@ set(value) {
|
|
|
7519
7525
|
const params = compileTokens(rangeTokenize(formula));
|
|
7520
7526
|
return new CompiledFormula(sheetId, params.tokens, params.literalValues, params.symbols, params.dependencies.map((xc) => getters.getRangeFromSheetXC(sheetId, xc)), params.isBadExpression, params.normalizedFormula, params.execute);
|
|
7521
7527
|
}
|
|
7528
|
+
areRangeShapesInLineWithNormalizedFormula() {
|
|
7529
|
+
return Array.from(this.normalizedFormula.matchAll(/\|C\||\|R\|/g)).every((value, index) => {
|
|
7530
|
+
return this.rangeDependencies[index].parts.length === 1 && value[0] === "|C|" || this.rangeDependencies[index].parts.length === 2 && value[0] === "|R|" || this.rangeDependencies[index].invalidXc || this.rangeDependencies[index].invalidSheetName;
|
|
7531
|
+
});
|
|
7532
|
+
}
|
|
7522
7533
|
};
|
|
7523
7534
|
function compileTokens(tokens) {
|
|
7524
7535
|
try {
|
|
@@ -11714,7 +11725,7 @@ set(value) {
|
|
|
11714
11725
|
});
|
|
11715
11726
|
var ChartJsComponent = class extends Component {
|
|
11716
11727
|
static template = "o-spreadsheet-ChartJsComponent";
|
|
11717
|
-
props = (0, _odoo_owl.
|
|
11728
|
+
props = (0, _odoo_owl.useProps)({
|
|
11718
11729
|
chartId: types.string(),
|
|
11719
11730
|
isFullScreen: types.boolean().optional()
|
|
11720
11731
|
});
|
|
@@ -12417,7 +12428,7 @@ set(value) {
|
|
|
12417
12428
|
//#region src/components/figures/chart/scorecard/chart_scorecard.ts
|
|
12418
12429
|
var ScorecardChart = class extends Component {
|
|
12419
12430
|
static template = "o-spreadsheet-ScorecardChart";
|
|
12420
|
-
props = (0, _odoo_owl.
|
|
12431
|
+
props = (0, _odoo_owl.useProps)({
|
|
12421
12432
|
chartId: types.string(),
|
|
12422
12433
|
isFullScreen: types.boolean().optional()
|
|
12423
12434
|
});
|
|
@@ -14157,7 +14168,7 @@ set(value) {
|
|
|
14157
14168
|
const ANIMATION_DURATION = 1e3;
|
|
14158
14169
|
var GaugeChartComponent = class extends Component {
|
|
14159
14170
|
static template = "o-spreadsheet-GaugeChartComponent";
|
|
14160
|
-
props = (0, _odoo_owl.
|
|
14171
|
+
props = (0, _odoo_owl.useProps)({
|
|
14161
14172
|
chartId: types.string(),
|
|
14162
14173
|
isFullScreen: types.boolean().optional()
|
|
14163
14174
|
});
|
|
@@ -14383,7 +14394,7 @@ set(value) {
|
|
|
14383
14394
|
var Menu = class extends Component {
|
|
14384
14395
|
static template = "o-spreadsheet-Menu";
|
|
14385
14396
|
static components = {};
|
|
14386
|
-
props = (0, _odoo_owl.
|
|
14397
|
+
props = (0, _odoo_owl.useProps)({
|
|
14387
14398
|
menuItems: types.ArrayOf(),
|
|
14388
14399
|
onClose: types.function(),
|
|
14389
14400
|
onClickMenu: types.function().optional(),
|
|
@@ -14536,7 +14547,7 @@ set(value) {
|
|
|
14536
14547
|
//#region src/components/popover/popover.ts
|
|
14537
14548
|
var Popover = class extends Component {
|
|
14538
14549
|
static template = "o-spreadsheet-Popover";
|
|
14539
|
-
props = (0, _odoo_owl.
|
|
14550
|
+
props = (0, _odoo_owl.useProps)({
|
|
14540
14551
|
anchorRect: types.Rect(),
|
|
14541
14552
|
containerRect: types.object({}).optional(),
|
|
14542
14553
|
positioning: types.or([types.literal("top-right"), types.literal("bottom-left")]).optional("bottom-left"),
|
|
@@ -14715,7 +14726,7 @@ set(value) {
|
|
|
14715
14726
|
Menu,
|
|
14716
14727
|
Popover
|
|
14717
14728
|
};
|
|
14718
|
-
props = (0, _odoo_owl.
|
|
14729
|
+
props = (0, _odoo_owl.useProps)({
|
|
14719
14730
|
anchorRect: types.Rect(),
|
|
14720
14731
|
popoverPositioning: types.or([types.literal("top-right"), types.literal("bottom-left")]).optional("top-right"),
|
|
14721
14732
|
menuItems: types.ArrayOf(),
|
|
@@ -14970,7 +14981,7 @@ set(value) {
|
|
|
14970
14981
|
var Select = class extends Component {
|
|
14971
14982
|
static template = "o-spreadsheet-Select";
|
|
14972
14983
|
static components = { Popover };
|
|
14973
|
-
props = (0, _odoo_owl.
|
|
14984
|
+
props = (0, _odoo_owl.useProps)({
|
|
14974
14985
|
onChange: types.function(),
|
|
14975
14986
|
values: types.array(),
|
|
14976
14987
|
selectedValue: types.string().optional(),
|
|
@@ -15080,7 +15091,7 @@ set(value) {
|
|
|
15080
15091
|
//#region src/components/info_popover/info_popover.ts
|
|
15081
15092
|
var InfoPopover = class extends Component {
|
|
15082
15093
|
static template = "o-spreadsheet-Info-Popover";
|
|
15083
|
-
props = (0, _odoo_owl.
|
|
15094
|
+
props = (0, _odoo_owl.useProps)({
|
|
15084
15095
|
anchorRect: types.Rect(),
|
|
15085
15096
|
onClose: types.function(),
|
|
15086
15097
|
annotationText: types.string().optional(),
|
|
@@ -15120,7 +15131,7 @@ set(value) {
|
|
|
15120
15131
|
InfoPopover,
|
|
15121
15132
|
Select
|
|
15122
15133
|
};
|
|
15123
|
-
props = (0, _odoo_owl.
|
|
15134
|
+
props = (0, _odoo_owl.useProps)({
|
|
15124
15135
|
chartId: types.UID(),
|
|
15125
15136
|
hasFullScreenButton: types.boolean().optional(true),
|
|
15126
15137
|
displayEllipsisButton: types.boolean().optional(true)
|
|
@@ -15228,7 +15239,7 @@ set(value) {
|
|
|
15228
15239
|
ChartMenu,
|
|
15229
15240
|
MenuPopover
|
|
15230
15241
|
};
|
|
15231
|
-
props = (0, _odoo_owl.
|
|
15242
|
+
props = (0, _odoo_owl.useProps)({
|
|
15232
15243
|
figureUI: types.FigureUI(),
|
|
15233
15244
|
editFigureStyle: types.function().optional(),
|
|
15234
15245
|
isFullScreen: types.boolean().optional(),
|
|
@@ -15374,7 +15385,7 @@ set(value) {
|
|
|
15374
15385
|
var ChartFigure = class extends Component {
|
|
15375
15386
|
static template = "o-spreadsheet-ChartFigure";
|
|
15376
15387
|
static components = { ChartMenu };
|
|
15377
|
-
props = (0, _odoo_owl.
|
|
15388
|
+
props = (0, _odoo_owl.useProps)({
|
|
15378
15389
|
figureUI: types.FigureUI(),
|
|
15379
15390
|
editFigureStyle: types.function().optional(),
|
|
15380
15391
|
isFullScreen: types.boolean().optional(),
|
|
@@ -15404,7 +15415,7 @@ set(value) {
|
|
|
15404
15415
|
//#region src/components/figures/figure_image/figure_image.ts
|
|
15405
15416
|
var ImageFigure = class extends Component {
|
|
15406
15417
|
static template = "o-spreadsheet-ImageFigure";
|
|
15407
|
-
props = (0, _odoo_owl.
|
|
15418
|
+
props = (0, _odoo_owl.useProps)({
|
|
15408
15419
|
figureUI: types.FigureUI(),
|
|
15409
15420
|
editFigureStyle: types.function().optional(),
|
|
15410
15421
|
openContextMenu: types.function()
|
|
@@ -15456,7 +15467,7 @@ set(value) {
|
|
|
15456
15467
|
var FigureComponent = class extends Component {
|
|
15457
15468
|
static template = "o-spreadsheet-FigureComponent";
|
|
15458
15469
|
static components = { MenuPopover };
|
|
15459
|
-
props = (0, _odoo_owl.
|
|
15470
|
+
props = (0, _odoo_owl.useProps)({
|
|
15460
15471
|
figureUI: types.FigureUI(),
|
|
15461
15472
|
style: types.string(),
|
|
15462
15473
|
class: types.string(),
|
|
@@ -24594,7 +24605,7 @@ set(value) {
|
|
|
24594
24605
|
resetOnBlur: types.boolean().optional()
|
|
24595
24606
|
};
|
|
24596
24607
|
var GenericInput = class extends Component {
|
|
24597
|
-
props = (0, _odoo_owl.
|
|
24608
|
+
props = (0, _odoo_owl.useProps)(genericInputPropsDefinition);
|
|
24598
24609
|
genericInputRef = _odoo_owl.signal.ref(HTMLInputElement);
|
|
24599
24610
|
lastOnChangeValue = this.props.value.toString();
|
|
24600
24611
|
setup() {
|
|
@@ -24677,7 +24688,7 @@ set(value) {
|
|
|
24677
24688
|
var TextInput = class extends GenericInput {
|
|
24678
24689
|
static template = "o-spreadsheet-TextInput";
|
|
24679
24690
|
static components = {};
|
|
24680
|
-
props = (0, _odoo_owl.
|
|
24691
|
+
props = (0, _odoo_owl.useProps)({
|
|
24681
24692
|
...genericInputPropsDefinition,
|
|
24682
24693
|
value: types.string(),
|
|
24683
24694
|
errorMessage: types.string().optional(),
|
|
@@ -24697,7 +24708,7 @@ set(value) {
|
|
|
24697
24708
|
//#region src/components/action_button/action_button.ts
|
|
24698
24709
|
var ActionButton = class extends Component {
|
|
24699
24710
|
static template = "o-spreadsheet-ActionButton";
|
|
24700
|
-
props = (0, _odoo_owl.
|
|
24711
|
+
props = (0, _odoo_owl.useProps)({
|
|
24701
24712
|
action: types.ActionSpec(),
|
|
24702
24713
|
hasTriangleDownIcon: types.boolean().optional(),
|
|
24703
24714
|
selectedColor: types.string().optional(),
|
|
@@ -24753,7 +24764,7 @@ set(value) {
|
|
|
24753
24764
|
var ColorPicker = class extends Component {
|
|
24754
24765
|
static template = "o-spreadsheet-ColorPicker";
|
|
24755
24766
|
static components = { Popover };
|
|
24756
|
-
props = (0, _odoo_owl.
|
|
24767
|
+
props = (0, _odoo_owl.useProps)({
|
|
24757
24768
|
onColorPicked: types.function(),
|
|
24758
24769
|
currentColor: types.string().optional(""),
|
|
24759
24770
|
maxHeight: types.Pixel().optional(),
|
|
@@ -24916,7 +24927,7 @@ set(value) {
|
|
|
24916
24927
|
var ColorPickerWidget = class extends Component {
|
|
24917
24928
|
static template = "o-spreadsheet-ColorPickerWidget";
|
|
24918
24929
|
static components = { ColorPicker };
|
|
24919
|
-
props = (0, _odoo_owl.
|
|
24930
|
+
props = (0, _odoo_owl.useProps)({
|
|
24920
24931
|
currentColor: types.string().optional(),
|
|
24921
24932
|
toggleColorPicker: types.function(),
|
|
24922
24933
|
showColorPicker: types.boolean(),
|
|
@@ -24941,7 +24952,7 @@ set(value) {
|
|
|
24941
24952
|
var NumberEditor = class extends Component {
|
|
24942
24953
|
static template = "o-spreadsheet-NumberEditor";
|
|
24943
24954
|
static components = { Popover };
|
|
24944
|
-
props = (0, _odoo_owl.
|
|
24955
|
+
props = (0, _odoo_owl.useProps)({
|
|
24945
24956
|
currentValue: types.number(),
|
|
24946
24957
|
onValueChange: types.function(),
|
|
24947
24958
|
onToggle: types.function().optional(),
|
|
@@ -25031,7 +25042,7 @@ set(value) {
|
|
|
25031
25042
|
var FontSizeEditor = class extends Component {
|
|
25032
25043
|
static template = "o-spreadsheet-FontSizeEditor";
|
|
25033
25044
|
static components = { NumberEditor };
|
|
25034
|
-
props = (0, _odoo_owl.
|
|
25045
|
+
props = (0, _odoo_owl.useProps)({
|
|
25035
25046
|
currentFontSize: types.number(),
|
|
25036
25047
|
onFontSizeChanged: types.function(),
|
|
25037
25048
|
onToggle: types.function().optional(),
|
|
@@ -25050,7 +25061,7 @@ set(value) {
|
|
|
25050
25061
|
ActionButton,
|
|
25051
25062
|
FontSizeEditor
|
|
25052
25063
|
};
|
|
25053
|
-
props = (0, _odoo_owl.
|
|
25064
|
+
props = (0, _odoo_owl.useProps)({
|
|
25054
25065
|
style: types.ChartStyle(),
|
|
25055
25066
|
updateStyle: types.function(),
|
|
25056
25067
|
defaultStyle: types.object().optional(),
|
|
@@ -25240,7 +25251,7 @@ set(value) {
|
|
|
25240
25251
|
var CogWheelMenu = class extends Component {
|
|
25241
25252
|
static template = "o-spreadsheet-CogWheelMenu";
|
|
25242
25253
|
static components = { MenuPopover };
|
|
25243
|
-
props = (0, _odoo_owl.
|
|
25254
|
+
props = (0, _odoo_owl.useProps)({ items: types.array(types.ActionSpec()) });
|
|
25244
25255
|
buttonRef = (0, _odoo_owl.signal)(null);
|
|
25245
25256
|
menuState = (0, _odoo_owl.proxy)({
|
|
25246
25257
|
isOpen: false,
|
|
@@ -25260,7 +25271,7 @@ set(value) {
|
|
|
25260
25271
|
//#region src/components/side_panel/components/section/section.ts
|
|
25261
25272
|
var Section = class extends Component {
|
|
25262
25273
|
static template = "o_spreadsheet.Section";
|
|
25263
|
-
props = (0, _odoo_owl.
|
|
25274
|
+
props = (0, _odoo_owl.useProps)({
|
|
25264
25275
|
class: types.string().optional(),
|
|
25265
25276
|
title: types.string().optional(),
|
|
25266
25277
|
slots: types.object()
|
|
@@ -25277,7 +25288,7 @@ set(value) {
|
|
|
25277
25288
|
TextStyler,
|
|
25278
25289
|
CogWheelMenu
|
|
25279
25290
|
};
|
|
25280
|
-
props = (0, _odoo_owl.
|
|
25291
|
+
props = (0, _odoo_owl.useProps)({
|
|
25281
25292
|
onCloseSidePanel: types.function(),
|
|
25282
25293
|
figureId: types.UID()
|
|
25283
25294
|
});
|
|
@@ -25487,7 +25498,7 @@ set(value) {
|
|
|
25487
25498
|
//#region src/components/side_panel/components/checkbox/checkbox.ts
|
|
25488
25499
|
var Checkbox = class extends Component {
|
|
25489
25500
|
static template = "o-spreadsheet.Checkbox";
|
|
25490
|
-
props = (0, _odoo_owl.
|
|
25501
|
+
props = (0, _odoo_owl.useProps)({
|
|
25491
25502
|
label: types.string().optional(),
|
|
25492
25503
|
value: types.boolean().optional(false),
|
|
25493
25504
|
className: types.string().optional(),
|
|
@@ -25996,7 +26007,7 @@ set(value) {
|
|
|
25996
26007
|
*/
|
|
25997
26008
|
var SelectionInput = class extends Component {
|
|
25998
26009
|
static template = "o-spreadsheet-SelectionInput";
|
|
25999
|
-
props = (0, _odoo_owl.
|
|
26010
|
+
props = (0, _odoo_owl.useProps)({
|
|
26000
26011
|
ranges: types.array(types.string()),
|
|
26001
26012
|
hasSingleRange: types.boolean().optional(),
|
|
26002
26013
|
required: types.boolean().optional(),
|
|
@@ -26175,7 +26186,7 @@ set(value) {
|
|
|
26175
26186
|
SelectionInput,
|
|
26176
26187
|
Section
|
|
26177
26188
|
};
|
|
26178
|
-
props = (0, _odoo_owl.
|
|
26189
|
+
props = (0, _odoo_owl.useProps)({
|
|
26179
26190
|
ranges: types.ArrayOf(),
|
|
26180
26191
|
dataSetStyles: types.DataSetStyle().optional(),
|
|
26181
26192
|
hasSingleRange: types.boolean().optional(),
|
|
@@ -26216,7 +26227,7 @@ set(value) {
|
|
|
26216
26227
|
Checkbox,
|
|
26217
26228
|
Section
|
|
26218
26229
|
};
|
|
26219
|
-
props = (0, _odoo_owl.
|
|
26230
|
+
props = (0, _odoo_owl.useProps)({
|
|
26220
26231
|
title: types.string().optional(_t("Categories / Labels")),
|
|
26221
26232
|
range: types.string(),
|
|
26222
26233
|
class: types.string().optional(),
|
|
@@ -26238,7 +26249,7 @@ set(value) {
|
|
|
26238
26249
|
ChartDataSeries,
|
|
26239
26250
|
ChartLabelRange
|
|
26240
26251
|
};
|
|
26241
|
-
props = (0, _odoo_owl.
|
|
26252
|
+
props = (0, _odoo_owl.useProps)({
|
|
26242
26253
|
chartId: types.UID(),
|
|
26243
26254
|
definition: types.ChartDefinitionWithDataSource(),
|
|
26244
26255
|
updateChart: types.function(),
|
|
@@ -26257,7 +26268,7 @@ set(value) {
|
|
|
26257
26268
|
//#region src/components/validation_messages/validation_messages.ts
|
|
26258
26269
|
var ValidationMessages = class extends Component {
|
|
26259
26270
|
static template = "o-spreadsheet-ValidationMessages";
|
|
26260
|
-
props = (0, _odoo_owl.
|
|
26271
|
+
props = (0, _odoo_owl.useProps)({
|
|
26261
26272
|
messages: types.array(types.string()).optional(),
|
|
26262
26273
|
msgType: types.or([
|
|
26263
26274
|
types.literal("warning"),
|
|
@@ -26281,7 +26292,7 @@ set(value) {
|
|
|
26281
26292
|
Section,
|
|
26282
26293
|
ValidationMessages
|
|
26283
26294
|
};
|
|
26284
|
-
props = (0, _odoo_owl.
|
|
26295
|
+
props = (0, _odoo_owl.useProps)({ messages: types.array(types.string()) });
|
|
26285
26296
|
};
|
|
26286
26297
|
|
|
26287
26298
|
//#endregion
|
|
@@ -26294,7 +26305,7 @@ set(value) {
|
|
|
26294
26305
|
Checkbox,
|
|
26295
26306
|
ChartErrorSection
|
|
26296
26307
|
};
|
|
26297
|
-
props = (0, _odoo_owl.
|
|
26308
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
26298
26309
|
chartTerms = ChartTerms;
|
|
26299
26310
|
state = (0, _odoo_owl.proxy)({ errorMessages: [] });
|
|
26300
26311
|
onErrorMessagesChanged(errorMessages) {
|
|
@@ -26341,7 +26352,7 @@ set(value) {
|
|
|
26341
26352
|
//#region src/components/side_panel/components/collapse/collapse.ts
|
|
26342
26353
|
var Collapse = class extends Component {
|
|
26343
26354
|
static template = "o-spreadsheet-Collapse";
|
|
26344
|
-
props = (0, _odoo_owl.
|
|
26355
|
+
props = (0, _odoo_owl.useProps)({ isCollapsed: types.boolean() });
|
|
26345
26356
|
contentRef = (0, _odoo_owl.signal)(null);
|
|
26346
26357
|
setup() {
|
|
26347
26358
|
(0, _odoo_owl.onMounted)(() => {
|
|
@@ -26374,7 +26385,7 @@ set(value) {
|
|
|
26374
26385
|
var SidePanelCollapsible = class extends Component {
|
|
26375
26386
|
static template = "o-spreadsheet-SidePanelCollapsible";
|
|
26376
26387
|
static components = { Collapse };
|
|
26377
|
-
props = (0, _odoo_owl.
|
|
26388
|
+
props = (0, _odoo_owl.useProps)({
|
|
26378
26389
|
title: types.string().optional(),
|
|
26379
26390
|
isInitiallyCollapsed: types.boolean().optional(),
|
|
26380
26391
|
class: types.string().optional()
|
|
@@ -26394,7 +26405,7 @@ set(value) {
|
|
|
26394
26405
|
Section,
|
|
26395
26406
|
TextInput
|
|
26396
26407
|
};
|
|
26397
|
-
props = (0, _odoo_owl.
|
|
26408
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
26398
26409
|
editorRef = (0, _odoo_owl.signal)(null);
|
|
26399
26410
|
state = (0, _odoo_owl.proxy)({
|
|
26400
26411
|
annotationTextInput: this.props.definition.annotationText || "",
|
|
@@ -26451,7 +26462,7 @@ set(value) {
|
|
|
26451
26462
|
var NumberInput = class extends GenericInput {
|
|
26452
26463
|
static template = "o-spreadsheet-NumberInput";
|
|
26453
26464
|
static components = {};
|
|
26454
|
-
props = (0, _odoo_owl.
|
|
26465
|
+
props = (0, _odoo_owl.useProps)({
|
|
26455
26466
|
...genericInputPropsDefinition,
|
|
26456
26467
|
min: types.number().optional(),
|
|
26457
26468
|
max: types.number().optional()
|
|
@@ -26476,7 +26487,7 @@ set(value) {
|
|
|
26476
26487
|
//#region src/components/side_panel/components/badge_selection/badge_selection.ts
|
|
26477
26488
|
var BadgeSelection = class extends Component {
|
|
26478
26489
|
static template = "o-spreadsheet.BadgeSelection";
|
|
26479
|
-
props = (0, _odoo_owl.
|
|
26490
|
+
props = (0, _odoo_owl.useProps)({
|
|
26480
26491
|
choices: types.ArrayOf(),
|
|
26481
26492
|
onChange: types.function(),
|
|
26482
26493
|
selectedValue: types.string()
|
|
@@ -26492,7 +26503,7 @@ set(value) {
|
|
|
26492
26503
|
TextStyler,
|
|
26493
26504
|
TextInput
|
|
26494
26505
|
};
|
|
26495
|
-
props = (0, _odoo_owl.
|
|
26506
|
+
props = (0, _odoo_owl.useProps)({
|
|
26496
26507
|
title: types.string().optional(""),
|
|
26497
26508
|
placeholder: types.string().optional(""),
|
|
26498
26509
|
updateTitle: types.function(),
|
|
@@ -26518,7 +26529,7 @@ set(value) {
|
|
|
26518
26529
|
NumberInput,
|
|
26519
26530
|
DateInput
|
|
26520
26531
|
};
|
|
26521
|
-
props = (0, _odoo_owl.
|
|
26532
|
+
props = (0, _odoo_owl.useProps)({
|
|
26522
26533
|
chartId: types.UID(),
|
|
26523
26534
|
definition: types.ChartWithAxisDefinition(),
|
|
26524
26535
|
updateChart: types.function(),
|
|
@@ -26693,7 +26704,7 @@ set(value) {
|
|
|
26693
26704
|
//#region src/components/side_panel/components/radio_selection/radio_selection.ts
|
|
26694
26705
|
var RadioSelection = class extends Component {
|
|
26695
26706
|
static template = "o-spreadsheet.RadioSelection";
|
|
26696
|
-
props = (0, _odoo_owl.
|
|
26707
|
+
props = (0, _odoo_owl.useProps)({
|
|
26697
26708
|
choices: types.ArrayOf(),
|
|
26698
26709
|
onChange: types.function(),
|
|
26699
26710
|
selectedValue: types.string(),
|
|
@@ -26710,7 +26721,7 @@ set(value) {
|
|
|
26710
26721
|
Section,
|
|
26711
26722
|
ColorPicker
|
|
26712
26723
|
};
|
|
26713
|
-
props = (0, _odoo_owl.
|
|
26724
|
+
props = (0, _odoo_owl.useProps)({
|
|
26714
26725
|
currentColor: types.string().optional(),
|
|
26715
26726
|
title: types.string().optional(),
|
|
26716
26727
|
onColorPicked: types.function(),
|
|
@@ -26751,7 +26762,7 @@ set(value) {
|
|
|
26751
26762
|
SidePanelCollapsible,
|
|
26752
26763
|
RadioSelection
|
|
26753
26764
|
};
|
|
26754
|
-
props = (0, _odoo_owl.
|
|
26765
|
+
props = (0, _odoo_owl.useProps)({
|
|
26755
26766
|
chartId: types.UID(),
|
|
26756
26767
|
definition: types.ChartDefinition(),
|
|
26757
26768
|
canUpdateChart: types.function(),
|
|
@@ -26794,7 +26805,7 @@ set(value) {
|
|
|
26794
26805
|
var ChartHumanizeNumbers = class extends Component {
|
|
26795
26806
|
static template = "o-spreadsheet-ChartHumanizeNumbers";
|
|
26796
26807
|
static components = { Checkbox };
|
|
26797
|
-
props = (0, _odoo_owl.
|
|
26808
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
26798
26809
|
get title() {
|
|
26799
26810
|
const locale = this.env.model.getters.getLocale();
|
|
26800
26811
|
return _t("E.g. 1234567 -> %(value)s", { value: formatValue(1234567, {
|
|
@@ -26812,7 +26823,7 @@ set(value) {
|
|
|
26812
26823
|
Section,
|
|
26813
26824
|
Select
|
|
26814
26825
|
};
|
|
26815
|
-
props = (0, _odoo_owl.
|
|
26826
|
+
props = (0, _odoo_owl.useProps)({
|
|
26816
26827
|
chartId: types.string(),
|
|
26817
26828
|
definition: types.ChartDefinitionWithDataSource(),
|
|
26818
26829
|
canUpdateChart: types.function(),
|
|
@@ -26858,7 +26869,7 @@ set(value) {
|
|
|
26858
26869
|
RoundColorPicker,
|
|
26859
26870
|
Select
|
|
26860
26871
|
};
|
|
26861
|
-
props = (0, _odoo_owl.
|
|
26872
|
+
props = (0, _odoo_owl.useProps)({
|
|
26862
26873
|
chartId: types.UID(),
|
|
26863
26874
|
definition: types.ChartDefinitionWithDataSource(),
|
|
26864
26875
|
updateChart: types.function(),
|
|
@@ -26923,7 +26934,7 @@ set(value) {
|
|
|
26923
26934
|
NumberInput,
|
|
26924
26935
|
Select
|
|
26925
26936
|
};
|
|
26926
|
-
props = (0, _odoo_owl.
|
|
26937
|
+
props = (0, _odoo_owl.useProps)({
|
|
26927
26938
|
chartId: types.UID(),
|
|
26928
26939
|
definition: types.ChartDefinitionWithDataSource(),
|
|
26929
26940
|
updateChart: types.function(),
|
|
@@ -27063,7 +27074,7 @@ set(value) {
|
|
|
27063
27074
|
var ChartShowValues = class extends Component {
|
|
27064
27075
|
static template = "o-spreadsheet-ChartShowValues";
|
|
27065
27076
|
static components = { Checkbox };
|
|
27066
|
-
props = (0, _odoo_owl.
|
|
27077
|
+
props = (0, _odoo_owl.useProps)({
|
|
27067
27078
|
chartId: types.UID(),
|
|
27068
27079
|
definition: types.ChartDefinitionWithDataSource(),
|
|
27069
27080
|
canUpdateChart: types.function(),
|
|
@@ -27087,7 +27098,7 @@ set(value) {
|
|
|
27087
27098
|
ChartShowValues,
|
|
27088
27099
|
ChartHumanizeNumbers
|
|
27089
27100
|
};
|
|
27090
|
-
props = (0, _odoo_owl.
|
|
27101
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
27091
27102
|
get axesList() {
|
|
27092
27103
|
const { useLeftAxis, useRightAxis } = getDefinedAxis(this.props.definition);
|
|
27093
27104
|
const axes = [{
|
|
@@ -27137,7 +27148,7 @@ set(value) {
|
|
|
27137
27148
|
ChartLabelRange,
|
|
27138
27149
|
ChartErrorSection
|
|
27139
27150
|
};
|
|
27140
|
-
props = (0, _odoo_owl.
|
|
27151
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
27141
27152
|
state = (0, _odoo_owl.proxy)({
|
|
27142
27153
|
datasetDispatchResult: void 0,
|
|
27143
27154
|
labelsDispatchResult: void 0,
|
|
@@ -27274,7 +27285,7 @@ set(value) {
|
|
|
27274
27285
|
Checkbox,
|
|
27275
27286
|
ChartAnnotation
|
|
27276
27287
|
};
|
|
27277
|
-
props = (0, _odoo_owl.
|
|
27288
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
27278
27289
|
get axesList() {
|
|
27279
27290
|
return [{
|
|
27280
27291
|
id: "x",
|
|
@@ -29729,7 +29740,7 @@ set(value) {
|
|
|
29729
29740
|
ChartDataSeries,
|
|
29730
29741
|
ChartLabelRange
|
|
29731
29742
|
};
|
|
29732
|
-
props = (0, _odoo_owl.
|
|
29743
|
+
props = (0, _odoo_owl.useProps)({
|
|
29733
29744
|
chartId: types.UID(),
|
|
29734
29745
|
definition: types.ChartDefinitionWithDataSource(),
|
|
29735
29746
|
dataSource: types.ChartRangeDataSource(),
|
|
@@ -30592,7 +30603,7 @@ set(value) {
|
|
|
30592
30603
|
RoundColorPicker,
|
|
30593
30604
|
Popover
|
|
30594
30605
|
};
|
|
30595
|
-
props = (0, _odoo_owl.
|
|
30606
|
+
props = (0, _odoo_owl.useProps)({
|
|
30596
30607
|
definition: types.object({ colorScale: types.ChartColorScale().optional() }),
|
|
30597
30608
|
onUpdateColorScale: types.function()
|
|
30598
30609
|
});
|
|
@@ -30687,7 +30698,7 @@ set(value) {
|
|
|
30687
30698
|
RoundColorPicker,
|
|
30688
30699
|
Select
|
|
30689
30700
|
};
|
|
30690
|
-
props = (0, _odoo_owl.
|
|
30701
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
30691
30702
|
get axesList() {
|
|
30692
30703
|
return [{
|
|
30693
30704
|
id: "x",
|
|
@@ -30732,7 +30743,7 @@ set(value) {
|
|
|
30732
30743
|
var ChartShowDataMarkers = class extends Component {
|
|
30733
30744
|
static template = "o-spreadsheet-ChartShowDataMarkers";
|
|
30734
30745
|
static components = { Checkbox };
|
|
30735
|
-
props = (0, _odoo_owl.
|
|
30746
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
30736
30747
|
};
|
|
30737
30748
|
|
|
30738
30749
|
//#endregion
|
|
@@ -30797,7 +30808,7 @@ set(value) {
|
|
|
30797
30808
|
Section,
|
|
30798
30809
|
ChartHumanizeNumbers
|
|
30799
30810
|
};
|
|
30800
|
-
props = (0, _odoo_owl.
|
|
30811
|
+
props = (0, _odoo_owl.useProps)({
|
|
30801
30812
|
...chartSidePanelPropsDefinition,
|
|
30802
30813
|
definition: types.FunnelChartDefinition()
|
|
30803
30814
|
});
|
|
@@ -30823,7 +30834,7 @@ set(value) {
|
|
|
30823
30834
|
ChartErrorSection,
|
|
30824
30835
|
ChartDataSeries
|
|
30825
30836
|
};
|
|
30826
|
-
props = (0, _odoo_owl.
|
|
30837
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
30827
30838
|
state = (0, _odoo_owl.proxy)({ dataRangeDispatchResult: void 0 });
|
|
30828
30839
|
dataRange = this.props.definition.dataRange;
|
|
30829
30840
|
get configurationErrorMessages() {
|
|
@@ -30848,7 +30859,7 @@ set(value) {
|
|
|
30848
30859
|
//#region src/components/composer/autocomplete_dropdown/autocomplete_dropdown.ts
|
|
30849
30860
|
var TextValueProvider = class extends Component {
|
|
30850
30861
|
static template = "o-spreadsheet-TextValueProvider";
|
|
30851
|
-
props = (0, _odoo_owl.
|
|
30862
|
+
props = (0, _odoo_owl.useProps)({
|
|
30852
30863
|
proposals: types.array(types.AutoCompleteProposal()),
|
|
30853
30864
|
selectedIndex: types.number().optional(),
|
|
30854
30865
|
onValueSelected: types.function(),
|
|
@@ -31071,7 +31082,7 @@ set(value) {
|
|
|
31071
31082
|
var FunctionDescriptionProvider = class extends Component {
|
|
31072
31083
|
static template = "o-spreadsheet-FunctionDescriptionProvider";
|
|
31073
31084
|
static components = { Collapse };
|
|
31074
|
-
props = (0, _odoo_owl.
|
|
31085
|
+
props = (0, _odoo_owl.useProps)({
|
|
31075
31086
|
functionDescription: types.FunctionDescription(),
|
|
31076
31087
|
argsToFocus: types.array(types.number()),
|
|
31077
31088
|
repeatingArgGroupIndex: types.number().optional()
|
|
@@ -31140,7 +31151,7 @@ set(value) {
|
|
|
31140
31151
|
var SpeechBubble = class extends Component {
|
|
31141
31152
|
static template = "o-spreadsheet-SpeechBubble";
|
|
31142
31153
|
static components = {};
|
|
31143
|
-
props = (0, _odoo_owl.
|
|
31154
|
+
props = (0, _odoo_owl.useProps)({
|
|
31144
31155
|
content: types.string(),
|
|
31145
31156
|
anchorRect: types.Rect()
|
|
31146
31157
|
});
|
|
@@ -31175,7 +31186,7 @@ set(value) {
|
|
|
31175
31186
|
FunctionDescriptionProvider,
|
|
31176
31187
|
SpeechBubble
|
|
31177
31188
|
};
|
|
31178
|
-
props = (0, _odoo_owl.
|
|
31189
|
+
props = (0, _odoo_owl.useProps)({
|
|
31179
31190
|
focus: types.ComposerFocusType(),
|
|
31180
31191
|
inputStyle: types.string().optional(""),
|
|
31181
31192
|
rect: types.Rect().optional(),
|
|
@@ -32763,7 +32774,7 @@ set(value) {
|
|
|
32763
32774
|
var StandaloneComposer = class extends Component {
|
|
32764
32775
|
static template = "o-spreadsheet-StandaloneComposer";
|
|
32765
32776
|
static components = { Composer };
|
|
32766
|
-
props = (0, _odoo_owl.
|
|
32777
|
+
props = (0, _odoo_owl.useProps)({
|
|
32767
32778
|
onConfirm: types.function(),
|
|
32768
32779
|
composerContent: types.string().optional(""),
|
|
32769
32780
|
defaultRangeSheetId: types.UID(),
|
|
@@ -32840,7 +32851,7 @@ set(value) {
|
|
|
32840
32851
|
ChartHumanizeNumbers,
|
|
32841
32852
|
Select
|
|
32842
32853
|
};
|
|
32843
|
-
props = (0, _odoo_owl.
|
|
32854
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
32844
32855
|
state;
|
|
32845
32856
|
setup() {
|
|
32846
32857
|
this.state = (0, _odoo_owl.proxy)({
|
|
@@ -32971,7 +32982,7 @@ set(value) {
|
|
|
32971
32982
|
Section,
|
|
32972
32983
|
Select
|
|
32973
32984
|
};
|
|
32974
|
-
props = (0, _odoo_owl.
|
|
32985
|
+
props = (0, _odoo_owl.useProps)({
|
|
32975
32986
|
chartId: types.UID(),
|
|
32976
32987
|
definition: types.GeoChartDefinition(),
|
|
32977
32988
|
updateChart: types.function()
|
|
@@ -33125,7 +33136,7 @@ set(value) {
|
|
|
33125
33136
|
Section,
|
|
33126
33137
|
NumberInput
|
|
33127
33138
|
};
|
|
33128
|
-
props = (0, _odoo_owl.
|
|
33139
|
+
props = (0, _odoo_owl.useProps)({
|
|
33129
33140
|
onValueChange: types.function(),
|
|
33130
33141
|
value: types.number()
|
|
33131
33142
|
});
|
|
@@ -33151,7 +33162,7 @@ set(value) {
|
|
|
33151
33162
|
RoundColorPicker,
|
|
33152
33163
|
Select
|
|
33153
33164
|
};
|
|
33154
|
-
props = (0, _odoo_owl.
|
|
33165
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
33155
33166
|
state = (0, _odoo_owl.proxy)({ index: 0 });
|
|
33156
33167
|
get runtime() {
|
|
33157
33168
|
return this.env.model.getters.getChartRuntime(this.props.chartId);
|
|
@@ -33212,7 +33223,7 @@ set(value) {
|
|
|
33212
33223
|
Checkbox,
|
|
33213
33224
|
ChartHumanizeNumbers
|
|
33214
33225
|
};
|
|
33215
|
-
props = (0, _odoo_owl.
|
|
33226
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
33216
33227
|
};
|
|
33217
33228
|
|
|
33218
33229
|
//#endregion
|
|
@@ -33262,7 +33273,7 @@ set(value) {
|
|
|
33262
33273
|
Section,
|
|
33263
33274
|
Select
|
|
33264
33275
|
};
|
|
33265
|
-
props = (0, _odoo_owl.
|
|
33276
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
33266
33277
|
state = (0, _odoo_owl.proxy)({
|
|
33267
33278
|
keyValueDispatchResult: void 0,
|
|
33268
33279
|
baselineDispatchResult: void 0
|
|
@@ -33276,7 +33287,7 @@ set(value) {
|
|
|
33276
33287
|
return !!this.state.keyValueDispatchResult?.isCancelledBecause("InvalidScorecardKeyValue");
|
|
33277
33288
|
}
|
|
33278
33289
|
get isBaselineInvalid() {
|
|
33279
|
-
return !!this.state.
|
|
33290
|
+
return !!this.state.baselineDispatchResult?.isCancelledBecause("InvalidScorecardBaseline");
|
|
33280
33291
|
}
|
|
33281
33292
|
onKeyValueRangeChanged(ranges) {
|
|
33282
33293
|
this.keyValue = ranges[0];
|
|
@@ -33337,7 +33348,7 @@ set(value) {
|
|
|
33337
33348
|
ChartTitle,
|
|
33338
33349
|
ChartHumanizeNumbers
|
|
33339
33350
|
};
|
|
33340
|
-
props = (0, _odoo_owl.
|
|
33351
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
33341
33352
|
get colorsSectionTitle() {
|
|
33342
33353
|
return this.props.definition.baselineMode === "progress" ? _t("Progress bar colors") : _t("Baseline colors");
|
|
33343
33354
|
}
|
|
@@ -33419,7 +33430,7 @@ set(value) {
|
|
|
33419
33430
|
PieHoleSize,
|
|
33420
33431
|
ChartHumanizeNumbers
|
|
33421
33432
|
};
|
|
33422
|
-
props = (0, _odoo_owl.
|
|
33433
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
33423
33434
|
defaults = SunburstChartDefaults;
|
|
33424
33435
|
get showValues() {
|
|
33425
33436
|
return this.props.definition.showValues ?? SunburstChartDefaults.showValues;
|
|
@@ -33452,7 +33463,7 @@ set(value) {
|
|
|
33452
33463
|
Checkbox,
|
|
33453
33464
|
RoundColorPicker
|
|
33454
33465
|
};
|
|
33455
|
-
props = (0, _odoo_owl.
|
|
33466
|
+
props = (0, _odoo_owl.useProps)({
|
|
33456
33467
|
chartId: types.UID(),
|
|
33457
33468
|
definition: types.TreeMapChartDefinition(),
|
|
33458
33469
|
onColorChanged: types.function()
|
|
@@ -33484,7 +33495,7 @@ set(value) {
|
|
|
33484
33495
|
var TreeMapColorScale = class extends Component {
|
|
33485
33496
|
static template = "o-spreadsheet-TreeMapColorScale";
|
|
33486
33497
|
static components = { RoundColorPicker };
|
|
33487
|
-
props = (0, _odoo_owl.
|
|
33498
|
+
props = (0, _odoo_owl.useProps)({
|
|
33488
33499
|
chartId: types.UID(),
|
|
33489
33500
|
definition: types.TreeMapChartDefinition(),
|
|
33490
33501
|
onColorChanged: types.function()
|
|
@@ -33531,7 +33542,7 @@ set(value) {
|
|
|
33531
33542
|
TreeMapColorScale,
|
|
33532
33543
|
ChartHumanizeNumbers
|
|
33533
33544
|
};
|
|
33534
|
-
props = (0, _odoo_owl.
|
|
33545
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
33535
33546
|
savedColors = {
|
|
33536
33547
|
categoryColors: DEFAULT_SOLID_COLOR,
|
|
33537
33548
|
colorScale: DEFAULT_COLOR_SCALE
|
|
@@ -33589,7 +33600,7 @@ set(value) {
|
|
|
33589
33600
|
ChartLegend,
|
|
33590
33601
|
ChartHumanizeNumbers
|
|
33591
33602
|
};
|
|
33592
|
-
props = (0, _odoo_owl.
|
|
33603
|
+
props = (0, _odoo_owl.useProps)(chartSidePanelPropsDefinition);
|
|
33593
33604
|
axisChoices = CHART_AXIS_CHOICES;
|
|
33594
33605
|
onUpdateShowSubTotals(showSubTotals) {
|
|
33595
33606
|
this.props.updateChart(this.props.chartId, { showSubTotals });
|
|
@@ -33703,7 +33714,7 @@ set(value) {
|
|
|
33703
33714
|
Section,
|
|
33704
33715
|
Popover
|
|
33705
33716
|
};
|
|
33706
|
-
props = (0, _odoo_owl.
|
|
33717
|
+
props = (0, _odoo_owl.useProps)({
|
|
33707
33718
|
chartId: types.UID(),
|
|
33708
33719
|
chartPanelStore: types.Store()
|
|
33709
33720
|
});
|
|
@@ -33881,7 +33892,7 @@ set(value) {
|
|
|
33881
33892
|
Section,
|
|
33882
33893
|
ChartTypePicker
|
|
33883
33894
|
};
|
|
33884
|
-
props = (0, _odoo_owl.
|
|
33895
|
+
props = (0, _odoo_owl.useProps)({
|
|
33885
33896
|
onCloseSidePanel: types.function(),
|
|
33886
33897
|
chartId: types.UID()
|
|
33887
33898
|
});
|
|
@@ -34288,7 +34299,7 @@ set(value) {
|
|
|
34288
34299
|
BadgeSelection,
|
|
34289
34300
|
Section
|
|
34290
34301
|
};
|
|
34291
|
-
props = (0, _odoo_owl.
|
|
34302
|
+
props = (0, _odoo_owl.useProps)({ onCloseSidePanel: types.function() });
|
|
34292
34303
|
state = (0, _odoo_owl.proxy)({
|
|
34293
34304
|
currentChart: "count",
|
|
34294
34305
|
currentFrequencyOrder: "descending",
|
|
@@ -34531,7 +34542,7 @@ set(value) {
|
|
|
34531
34542
|
ColorPickerWidget,
|
|
34532
34543
|
Select
|
|
34533
34544
|
};
|
|
34534
|
-
props = (0, _odoo_owl.
|
|
34545
|
+
props = (0, _odoo_owl.useProps)({ store: types.Store() });
|
|
34535
34546
|
getTextDecoration = getTextDecoration;
|
|
34536
34547
|
get rule() {
|
|
34537
34548
|
return this.props.store.state.rules.cellIs;
|
|
@@ -34541,7 +34552,7 @@ set(value) {
|
|
|
34541
34552
|
//#endregion
|
|
34542
34553
|
//#region src/components/side_panel/criterion_form/criterion_form.ts
|
|
34543
34554
|
var CriterionForm = class extends Component {
|
|
34544
|
-
props = (0, _odoo_owl.
|
|
34555
|
+
props = (0, _odoo_owl.useProps)({
|
|
34545
34556
|
criterion: types.object(),
|
|
34546
34557
|
onCriterionChanged: types.function(),
|
|
34547
34558
|
disableFormulas: types.boolean().optional(),
|
|
@@ -35146,7 +35157,7 @@ set(value) {
|
|
|
35146
35157
|
var CriterionInput = class extends Component {
|
|
35147
35158
|
static template = "o-spreadsheet-CriterionInput";
|
|
35148
35159
|
static components = { StandaloneComposer };
|
|
35149
|
-
props = (0, _odoo_owl.
|
|
35160
|
+
props = (0, _odoo_owl.useProps)({
|
|
35150
35161
|
value: types.string().optional(""),
|
|
35151
35162
|
criterionType: types.DataValidationCriterionType(),
|
|
35152
35163
|
onValueChanged: types.function(),
|
|
@@ -35994,7 +36005,7 @@ set(value) {
|
|
|
35994
36005
|
StandaloneComposer,
|
|
35995
36006
|
Select
|
|
35996
36007
|
};
|
|
35997
|
-
props = (0, _odoo_owl.
|
|
36008
|
+
props = (0, _odoo_owl.useProps)({
|
|
35998
36009
|
store: types.Store(),
|
|
35999
36010
|
thresholdType: types.or([
|
|
36000
36011
|
types.literal("minimum"),
|
|
@@ -36076,7 +36087,7 @@ set(value) {
|
|
|
36076
36087
|
var ColorScaleRuleEditor = class extends Component {
|
|
36077
36088
|
static template = "o-spreadsheet-ColorScaleRuleEditor";
|
|
36078
36089
|
static components = { ColorScaleRuleEditorThreshold };
|
|
36079
|
-
props = (0, _odoo_owl.
|
|
36090
|
+
props = (0, _odoo_owl.useProps)({ store: types.Store() });
|
|
36080
36091
|
};
|
|
36081
36092
|
|
|
36082
36093
|
//#endregion
|
|
@@ -36087,7 +36098,7 @@ set(value) {
|
|
|
36087
36098
|
SelectionInput,
|
|
36088
36099
|
RoundColorPicker
|
|
36089
36100
|
};
|
|
36090
|
-
props = (0, _odoo_owl.
|
|
36101
|
+
props = (0, _odoo_owl.useProps)({ store: types.Store() });
|
|
36091
36102
|
get rule() {
|
|
36092
36103
|
return this.props.store.state.rules.dataBar;
|
|
36093
36104
|
}
|
|
@@ -36098,7 +36109,7 @@ set(value) {
|
|
|
36098
36109
|
//#region src/components/icon_picker/icon_picker.ts
|
|
36099
36110
|
var IconPicker = class extends Component {
|
|
36100
36111
|
static template = "o-spreadsheet-IconPicker";
|
|
36101
|
-
props = (0, _odoo_owl.
|
|
36112
|
+
props = (0, _odoo_owl.useProps)({ onIconPicked: types.function() });
|
|
36102
36113
|
onIconClick(icon) {
|
|
36103
36114
|
if (icon) this.props.onIconPicked(icon);
|
|
36104
36115
|
}
|
|
@@ -36119,7 +36130,7 @@ set(value) {
|
|
|
36119
36130
|
StandaloneComposer,
|
|
36120
36131
|
Select
|
|
36121
36132
|
};
|
|
36122
|
-
props = (0, _odoo_owl.
|
|
36133
|
+
props = (0, _odoo_owl.useProps)({ store: types.Store() });
|
|
36123
36134
|
get rule() {
|
|
36124
36135
|
return this.props.store.state.rules.iconSet;
|
|
36125
36136
|
}
|
|
@@ -36202,7 +36213,7 @@ set(value) {
|
|
|
36202
36213
|
IconSetRuleEditor,
|
|
36203
36214
|
DataBarRuleEditor
|
|
36204
36215
|
};
|
|
36205
|
-
props = (0, _odoo_owl.
|
|
36216
|
+
props = (0, _odoo_owl.useProps)({
|
|
36206
36217
|
cf: types.ConditionalFormat(),
|
|
36207
36218
|
isNewCf: types.boolean(),
|
|
36208
36219
|
onCloseSidePanel: types.function()
|
|
@@ -36262,7 +36273,7 @@ set(value) {
|
|
|
36262
36273
|
//#region src/components/side_panel/conditional_formatting/cf_preview/cf_preview.ts
|
|
36263
36274
|
var ConditionalFormatPreview = class extends Component {
|
|
36264
36275
|
static template = "o-spreadsheet-ConditionalFormatPreview";
|
|
36265
|
-
props = (0, _odoo_owl.
|
|
36276
|
+
props = (0, _odoo_owl.useProps)({
|
|
36266
36277
|
conditionalFormat: types.ConditionalFormat(),
|
|
36267
36278
|
onMouseDown: types.function(),
|
|
36268
36279
|
class: types.string()
|
|
@@ -36323,7 +36334,7 @@ set(value) {
|
|
|
36323
36334
|
var ConditionalFormatPreviewList = class extends Component {
|
|
36324
36335
|
static template = "o-spreadsheet-ConditionalFormatPreviewList";
|
|
36325
36336
|
static components = { ConditionalFormatPreview };
|
|
36326
|
-
props = (0, _odoo_owl.
|
|
36337
|
+
props = (0, _odoo_owl.useProps)({ onCloseSidePanel: types.function() });
|
|
36327
36338
|
dragAndDrop = useDragAndDropListItems();
|
|
36328
36339
|
cfListRef = (0, _odoo_owl.signal)(null);
|
|
36329
36340
|
get conditionalFormats() {
|
|
@@ -36389,7 +36400,7 @@ set(value) {
|
|
|
36389
36400
|
//#region src/components/side_panel/data_validation/dv_preview/dv_preview.ts
|
|
36390
36401
|
var DataValidationPreview = class extends Component {
|
|
36391
36402
|
static template = "o-spreadsheet-DataValidationPreview";
|
|
36392
|
-
props = (0, _odoo_owl.
|
|
36403
|
+
props = (0, _odoo_owl.useProps)({ rule: types.DataValidationRule() });
|
|
36393
36404
|
dvPreviewRef = (0, _odoo_owl.signal)(null);
|
|
36394
36405
|
setup() {
|
|
36395
36406
|
useHighlightsOnHover(this.dvPreviewRef, this);
|
|
@@ -36425,7 +36436,7 @@ set(value) {
|
|
|
36425
36436
|
var DataValidationPanel = class extends Component {
|
|
36426
36437
|
static template = "o-spreadsheet-DataValidationPanel";
|
|
36427
36438
|
static components = { DataValidationPreview };
|
|
36428
|
-
props = (0, _odoo_owl.
|
|
36439
|
+
props = (0, _odoo_owl.useProps)({ onCloseSidePanel: types.function() });
|
|
36429
36440
|
addDataValidationRule() {
|
|
36430
36441
|
this.env.replaceSidePanel("DataValidationEditor", "DataValidation", { ruleId: UuidGenerator.smallUuid() });
|
|
36431
36442
|
}
|
|
@@ -36475,7 +36486,7 @@ set(value) {
|
|
|
36475
36486
|
Section,
|
|
36476
36487
|
ValidationMessages
|
|
36477
36488
|
};
|
|
36478
|
-
props = (0, _odoo_owl.
|
|
36489
|
+
props = (0, _odoo_owl.useProps)({
|
|
36479
36490
|
ruleId: types.UID(),
|
|
36480
36491
|
onCancel: types.function().optional(),
|
|
36481
36492
|
onCloseSidePanel: types.function()
|
|
@@ -36964,7 +36975,7 @@ set(value) {
|
|
|
36964
36975
|
ValidationMessages,
|
|
36965
36976
|
Select
|
|
36966
36977
|
};
|
|
36967
|
-
props = (0, _odoo_owl.
|
|
36978
|
+
props = (0, _odoo_owl.useProps)({ onCloseSidePanel: types.function() });
|
|
36968
36979
|
searchInputRef = _odoo_owl.signal.ref(HTMLInputElement);
|
|
36969
36980
|
store;
|
|
36970
36981
|
state;
|
|
@@ -37819,7 +37830,7 @@ set(value) {
|
|
|
37819
37830
|
Checkbox,
|
|
37820
37831
|
Select
|
|
37821
37832
|
};
|
|
37822
|
-
props = (0, _odoo_owl.
|
|
37833
|
+
props = (0, _odoo_owl.useProps)({
|
|
37823
37834
|
onCloseSidePanel: types.function(),
|
|
37824
37835
|
category: types.or([
|
|
37825
37836
|
types.literal("number"),
|
|
@@ -37886,7 +37897,7 @@ set(value) {
|
|
|
37886
37897
|
SelectionInput,
|
|
37887
37898
|
TextInput
|
|
37888
37899
|
};
|
|
37889
|
-
props = (0, _odoo_owl.
|
|
37900
|
+
props = (0, _odoo_owl.useProps)({ namedRange: types.NamedRange() });
|
|
37890
37901
|
state = (0, _odoo_owl.proxy)({});
|
|
37891
37902
|
namedRangePreviewRef = (0, _odoo_owl.signal)(null);
|
|
37892
37903
|
setup() {
|
|
@@ -37943,7 +37954,7 @@ set(value) {
|
|
|
37943
37954
|
SelectionInput,
|
|
37944
37955
|
TextInput
|
|
37945
37956
|
};
|
|
37946
|
-
props = (0, _odoo_owl.
|
|
37957
|
+
props = (0, _odoo_owl.useProps)({ onCloseSidePanel: types.function() });
|
|
37947
37958
|
get namedRanges() {
|
|
37948
37959
|
return this.env.model.getters.getNamedRanges();
|
|
37949
37960
|
}
|
|
@@ -37964,7 +37975,7 @@ set(value) {
|
|
|
37964
37975
|
var PerfProfilePanel = class extends Component {
|
|
37965
37976
|
static template = "o-spreadsheet-PerfProfilePanel";
|
|
37966
37977
|
static components = { Section };
|
|
37967
|
-
props = (0, _odoo_owl.
|
|
37978
|
+
props = (0, _odoo_owl.useProps)({ onCloseSidePanel: types.function() });
|
|
37968
37979
|
state = (0, _odoo_owl.proxy)({
|
|
37969
37980
|
selectedIndex: void 0,
|
|
37970
37981
|
lastProfiledTime: 0
|
|
@@ -38180,7 +38191,7 @@ set(value) {
|
|
|
38180
38191
|
//#region src/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel.ts
|
|
38181
38192
|
var PivotMeasureDisplayPanel = class extends Component {
|
|
38182
38193
|
static template = "o-spreadsheet-PivotMeasureDisplayPanel";
|
|
38183
|
-
props = (0, _odoo_owl.
|
|
38194
|
+
props = (0, _odoo_owl.useProps)({
|
|
38184
38195
|
onCloseSidePanel: types.function(),
|
|
38185
38196
|
pivotId: types.UID(),
|
|
38186
38197
|
measure: types.PivotCoreMeasure()
|
|
@@ -38246,7 +38257,7 @@ set(value) {
|
|
|
38246
38257
|
//#region src/components/side_panel/pivot/pivot_defer_update/pivot_defer_update.ts
|
|
38247
38258
|
var PivotDeferUpdate = class extends Component {
|
|
38248
38259
|
static template = "o-spreadsheet-PivotDeferUpdate";
|
|
38249
|
-
props = (0, _odoo_owl.
|
|
38260
|
+
props = (0, _odoo_owl.useProps)({
|
|
38250
38261
|
deferUpdate: types.boolean(),
|
|
38251
38262
|
isDirty: types.boolean(),
|
|
38252
38263
|
toggleDeferUpdate: types.function(),
|
|
@@ -38475,7 +38486,7 @@ set(value) {
|
|
|
38475
38486
|
var FilterMenuCriterion = class extends Component {
|
|
38476
38487
|
static template = "o-spreadsheet-FilterMenuCriterion";
|
|
38477
38488
|
static components = { Select };
|
|
38478
|
-
props = (0, _odoo_owl.
|
|
38489
|
+
props = (0, _odoo_owl.useProps)({
|
|
38479
38490
|
criterion: types.CriterionFilter(),
|
|
38480
38491
|
criterionOperators: types.array(types.GenericCriterionType()),
|
|
38481
38492
|
onCriterionChanged: types.function()
|
|
@@ -38512,7 +38523,7 @@ set(value) {
|
|
|
38512
38523
|
var FilterMenuValueItem = class extends Component {
|
|
38513
38524
|
static template = "o-spreadsheet-FilterMenuValueItem";
|
|
38514
38525
|
static components = { Checkbox };
|
|
38515
|
-
props = (0, _odoo_owl.
|
|
38526
|
+
props = (0, _odoo_owl.useProps)({
|
|
38516
38527
|
value: types.string(),
|
|
38517
38528
|
isChecked: types.boolean(),
|
|
38518
38529
|
isSelected: types.boolean(),
|
|
@@ -38538,7 +38549,7 @@ set(value) {
|
|
|
38538
38549
|
var FilterMenuValueList = class extends Component {
|
|
38539
38550
|
static template = "o-spreadsheet-FilterMenuValueList";
|
|
38540
38551
|
static components = { FilterMenuValueItem };
|
|
38541
|
-
props = (0, _odoo_owl.
|
|
38552
|
+
props = (0, _odoo_owl.useProps)({
|
|
38542
38553
|
values: types.array(types.object({
|
|
38543
38554
|
checked: types.boolean(),
|
|
38544
38555
|
string: types.string(),
|
|
@@ -38653,7 +38664,7 @@ set(value) {
|
|
|
38653
38664
|
};
|
|
38654
38665
|
criterionCategory = "char";
|
|
38655
38666
|
updatedCriterionValue;
|
|
38656
|
-
props = (0, _odoo_owl.
|
|
38667
|
+
props = (0, _odoo_owl.useProps)({
|
|
38657
38668
|
pivotId: types.UID(),
|
|
38658
38669
|
definition: types.instanceOf(SpreadsheetPivotRuntimeDefinition),
|
|
38659
38670
|
filter: types.PivotFilter(),
|
|
@@ -38716,7 +38727,7 @@ set(value) {
|
|
|
38716
38727
|
//#region src/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension/pivot_dimension.ts
|
|
38717
38728
|
var PivotDimension = class extends Component {
|
|
38718
38729
|
static template = "o-spreadsheet-PivotDimension";
|
|
38719
|
-
props = (0, _odoo_owl.
|
|
38730
|
+
props = (0, _odoo_owl.useProps)({
|
|
38720
38731
|
dimension: types.or([
|
|
38721
38732
|
types.PivotDimension(),
|
|
38722
38733
|
types.PivotMeasure(),
|
|
@@ -38753,7 +38764,7 @@ set(value) {
|
|
|
38753
38764
|
Popover,
|
|
38754
38765
|
PivotFilterMenu
|
|
38755
38766
|
};
|
|
38756
|
-
props = (0, _odoo_owl.
|
|
38767
|
+
props = (0, _odoo_owl.useProps)({
|
|
38757
38768
|
pivotId: types.UID(),
|
|
38758
38769
|
definition: types.instanceOf(SpreadsheetPivotRuntimeDefinition),
|
|
38759
38770
|
filter: types.PivotFilter(),
|
|
@@ -38885,7 +38896,7 @@ set(value) {
|
|
|
38885
38896
|
Popover,
|
|
38886
38897
|
TextValueProvider
|
|
38887
38898
|
};
|
|
38888
|
-
props = (0, _odoo_owl.
|
|
38899
|
+
props = (0, _odoo_owl.useProps)({
|
|
38889
38900
|
onFieldPicked: types.function(),
|
|
38890
38901
|
fields: types.array()
|
|
38891
38902
|
});
|
|
@@ -38980,7 +38991,7 @@ set(value) {
|
|
|
38980
38991
|
//#region src/components/side_panel/pivot/pivot_custom_groups_collapsible/pivot_custom_groups_collapsible.ts
|
|
38981
38992
|
var PivotCustomGroupsCollapsible = class extends Component {
|
|
38982
38993
|
static template = "o-spreadsheet-PivotCustomGroupsCollapsible";
|
|
38983
|
-
props = (0, _odoo_owl.
|
|
38994
|
+
props = (0, _odoo_owl.useProps)({
|
|
38984
38995
|
pivotId: types.UID(),
|
|
38985
38996
|
customField: types.PivotCustomGroupedField(),
|
|
38986
38997
|
onCustomFieldUpdated: types.function()
|
|
@@ -39044,7 +39055,7 @@ set(value) {
|
|
|
39044
39055
|
//#region src/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_granularity/pivot_dimension_granularity.ts
|
|
39045
39056
|
var PivotDimensionGranularity = class extends Component {
|
|
39046
39057
|
static template = "o-spreadsheet-PivotDimensionGranularity";
|
|
39047
|
-
props = (0, _odoo_owl.
|
|
39058
|
+
props = (0, _odoo_owl.useProps)({
|
|
39048
39059
|
dimension: types.PivotDimension(),
|
|
39049
39060
|
onUpdated: types.function(),
|
|
39050
39061
|
availableGranularities: types.SetOf(),
|
|
@@ -39065,7 +39076,7 @@ set(value) {
|
|
|
39065
39076
|
//#region src/components/side_panel/pivot/pivot_layout_configurator/pivot_dimension_order/pivot_dimension_order.ts
|
|
39066
39077
|
var PivotDimensionOrder = class extends Component {
|
|
39067
39078
|
static template = "o-spreadsheet-PivotDimensionOrder";
|
|
39068
|
-
props = (0, _odoo_owl.
|
|
39079
|
+
props = (0, _odoo_owl.useProps)({
|
|
39069
39080
|
dimension: types.PivotDimension(),
|
|
39070
39081
|
onUpdated: types.function(),
|
|
39071
39082
|
isMeasureSorted: types.boolean().optional()
|
|
@@ -39147,7 +39158,7 @@ set(value) {
|
|
|
39147
39158
|
StandaloneComposer,
|
|
39148
39159
|
Select
|
|
39149
39160
|
};
|
|
39150
|
-
props = (0, _odoo_owl.
|
|
39161
|
+
props = (0, _odoo_owl.useProps)({
|
|
39151
39162
|
pivotId: types.string(),
|
|
39152
39163
|
definition: types.PivotRuntimeDefinition(),
|
|
39153
39164
|
measure: types.PivotMeasure(),
|
|
@@ -39235,7 +39246,7 @@ set(value) {
|
|
|
39235
39246
|
var PivotSortSection = class extends Component {
|
|
39236
39247
|
static template = "o-spreadsheet-PivotSortSection";
|
|
39237
39248
|
static components = { Section };
|
|
39238
|
-
props = (0, _odoo_owl.
|
|
39249
|
+
props = (0, _odoo_owl.useProps)({
|
|
39239
39250
|
definition: types.PivotRuntimeDefinition(),
|
|
39240
39251
|
pivotId: types.UID()
|
|
39241
39252
|
});
|
|
@@ -39290,7 +39301,7 @@ set(value) {
|
|
|
39290
39301
|
PivotCustomGroupsCollapsible,
|
|
39291
39302
|
SidePanelCollapsible
|
|
39292
39303
|
};
|
|
39293
|
-
props = (0, _odoo_owl.
|
|
39304
|
+
props = (0, _odoo_owl.useProps)({
|
|
39294
39305
|
definition: types.instanceOf(PivotRuntimeDefinition),
|
|
39295
39306
|
onDimensionsUpdated: types.function(),
|
|
39296
39307
|
onFiltersUpdated: types.function(),
|
|
@@ -39520,7 +39531,7 @@ set(value) {
|
|
|
39520
39531
|
Section,
|
|
39521
39532
|
TextInput
|
|
39522
39533
|
};
|
|
39523
|
-
props = (0, _odoo_owl.
|
|
39534
|
+
props = (0, _odoo_owl.useProps)({
|
|
39524
39535
|
pivotId: types.UID(),
|
|
39525
39536
|
flipAxis: types.function()
|
|
39526
39537
|
});
|
|
@@ -41156,7 +41167,7 @@ set(value) {
|
|
|
41156
41167
|
AddDimensionButton,
|
|
41157
41168
|
PivotFilterEditor
|
|
41158
41169
|
};
|
|
41159
|
-
props = (0, _odoo_owl.
|
|
41170
|
+
props = (0, _odoo_owl.useProps)({
|
|
41160
41171
|
pivotId: types.UID(),
|
|
41161
41172
|
onCloseSidePanel: types.function()
|
|
41162
41173
|
});
|
|
@@ -42394,7 +42405,7 @@ set(value) {
|
|
|
42394
42405
|
var TableStylePreview = class extends Component {
|
|
42395
42406
|
static template = "o-spreadsheet-TableStylePreview";
|
|
42396
42407
|
static components = { MenuPopover };
|
|
42397
|
-
props = (0, _odoo_owl.
|
|
42408
|
+
props = (0, _odoo_owl.useProps)({
|
|
42398
42409
|
tableConfig: types.TableConfig(),
|
|
42399
42410
|
tableStyle: types.TableStyle(),
|
|
42400
42411
|
type: types.or([types.literal("table"), types.literal("pivot")]),
|
|
@@ -42487,7 +42498,7 @@ set(value) {
|
|
|
42487
42498
|
Popover,
|
|
42488
42499
|
TableStylePreview
|
|
42489
42500
|
};
|
|
42490
|
-
props = (0, _odoo_owl.
|
|
42501
|
+
props = (0, _odoo_owl.useProps)({
|
|
42491
42502
|
tableConfig: types.object(),
|
|
42492
42503
|
popoverProps: types.object().optional(),
|
|
42493
42504
|
closePopover: types.function(),
|
|
@@ -42535,7 +42546,7 @@ set(value) {
|
|
|
42535
42546
|
TableStylesPopover,
|
|
42536
42547
|
TableStylePreview
|
|
42537
42548
|
};
|
|
42538
|
-
props = (0, _odoo_owl.
|
|
42549
|
+
props = (0, _odoo_owl.useProps)({
|
|
42539
42550
|
tableConfig: types.TableConfig(),
|
|
42540
42551
|
onStylePicked: types.function(),
|
|
42541
42552
|
tableStyles: types.RecordOf(),
|
|
@@ -42587,7 +42598,7 @@ set(value) {
|
|
|
42587
42598
|
NumberInput,
|
|
42588
42599
|
TableStylePicker
|
|
42589
42600
|
};
|
|
42590
|
-
props = (0, _odoo_owl.
|
|
42601
|
+
props = (0, _odoo_owl.useProps)({ pivotId: types.UID() });
|
|
42591
42602
|
store;
|
|
42592
42603
|
setup() {
|
|
42593
42604
|
this.store = useLocalStore(PivotSidePanelStore, this.props.pivotId, "neverDefer");
|
|
@@ -42641,7 +42652,7 @@ set(value) {
|
|
|
42641
42652
|
Section,
|
|
42642
42653
|
PivotDesignPanel
|
|
42643
42654
|
};
|
|
42644
|
-
props = (0, _odoo_owl.
|
|
42655
|
+
props = (0, _odoo_owl.useProps)({
|
|
42645
42656
|
pivotId: types.UID(),
|
|
42646
42657
|
onCloseSidePanel: types.function(),
|
|
42647
42658
|
openTab: types.or([types.literal("configuration"), types.literal("design")]).optional("configuration")
|
|
@@ -42675,7 +42686,7 @@ set(value) {
|
|
|
42675
42686
|
Section,
|
|
42676
42687
|
Checkbox
|
|
42677
42688
|
};
|
|
42678
|
-
props = (0, _odoo_owl.
|
|
42689
|
+
props = (0, _odoo_owl.useProps)({ onCloseSidePanel: types.function() });
|
|
42679
42690
|
state = (0, _odoo_owl.proxy)({
|
|
42680
42691
|
hasHeader: false,
|
|
42681
42692
|
columns: {}
|
|
@@ -42759,7 +42770,7 @@ set(value) {
|
|
|
42759
42770
|
BadgeSelection,
|
|
42760
42771
|
Select
|
|
42761
42772
|
};
|
|
42762
|
-
props = (0, _odoo_owl.
|
|
42773
|
+
props = (0, _odoo_owl.useProps)({ onCloseSidePanel: types.function() });
|
|
42763
42774
|
loadedLocales = [];
|
|
42764
42775
|
setup() {
|
|
42765
42776
|
(0, _odoo_owl.onWillStart)(() => this.loadLocales());
|
|
@@ -42877,7 +42888,7 @@ set(value) {
|
|
|
42877
42888
|
Checkbox,
|
|
42878
42889
|
Select
|
|
42879
42890
|
};
|
|
42880
|
-
props = (0, _odoo_owl.
|
|
42891
|
+
props = (0, _odoo_owl.useProps)({ onCloseSidePanel: types.function() });
|
|
42881
42892
|
state = (0, _odoo_owl.proxy)({
|
|
42882
42893
|
separatorValue: "auto",
|
|
42883
42894
|
addNewColumns: false,
|
|
@@ -42953,7 +42964,7 @@ set(value) {
|
|
|
42953
42964
|
Section,
|
|
42954
42965
|
NumberInput
|
|
42955
42966
|
};
|
|
42956
|
-
props = (0, _odoo_owl.
|
|
42967
|
+
props = (0, _odoo_owl.useProps)({
|
|
42957
42968
|
onCloseSidePanel: types.function(),
|
|
42958
42969
|
table: types.CoreTable()
|
|
42959
42970
|
});
|
|
@@ -43113,7 +43124,7 @@ set(value) {
|
|
|
43113
43124
|
RoundColorPicker,
|
|
43114
43125
|
TableStylePreview
|
|
43115
43126
|
};
|
|
43116
|
-
props = (0, _odoo_owl.
|
|
43127
|
+
props = (0, _odoo_owl.useProps)({
|
|
43117
43128
|
onCloseSidePanel: types.function(),
|
|
43118
43129
|
onStylePicked: types.function().optional(),
|
|
43119
43130
|
styleId: types.string().optional()
|
|
@@ -45460,7 +45471,7 @@ set(value) {
|
|
|
45460
45471
|
//#region src/components/autofill/autofill.ts
|
|
45461
45472
|
var Autofill = class extends Component {
|
|
45462
45473
|
static template = "o-spreadsheet-Autofill";
|
|
45463
|
-
props = (0, _odoo_owl.
|
|
45474
|
+
props = (0, _odoo_owl.useProps)({
|
|
45464
45475
|
position: types.DOMCoordinates(),
|
|
45465
45476
|
isVisible: types.boolean()
|
|
45466
45477
|
});
|
|
@@ -45484,7 +45495,8 @@ set(value) {
|
|
|
45484
45495
|
const { x, y } = this.state.handler ? this.state.position : this.props.position;
|
|
45485
45496
|
return cssPropertiesToCss({
|
|
45486
45497
|
top: `${y}px`,
|
|
45487
|
-
left: `${x}px
|
|
45498
|
+
left: `${x}px`,
|
|
45499
|
+
visibility: this.props.isVisible ? "visible" : "hidden"
|
|
45488
45500
|
});
|
|
45489
45501
|
}
|
|
45490
45502
|
get styleNextValue() {
|
|
@@ -45538,7 +45550,7 @@ set(value) {
|
|
|
45538
45550
|
}
|
|
45539
45551
|
};
|
|
45540
45552
|
var TooltipComponent = class extends Component {
|
|
45541
|
-
props = (0, _odoo_owl.
|
|
45553
|
+
props = (0, _odoo_owl.useProps)({ content: types.string() });
|
|
45542
45554
|
static template = _odoo_owl.xml`
|
|
45543
45555
|
<div t-out="this.props.content"/>
|
|
45544
45556
|
`;
|
|
@@ -45548,7 +45560,7 @@ set(value) {
|
|
|
45548
45560
|
//#region src/components/collaborative_client_tag/collaborative_client_tag.ts
|
|
45549
45561
|
var ClientTag = class extends Component {
|
|
45550
45562
|
static template = "o-spreadsheet-ClientTag";
|
|
45551
|
-
props = (0, _odoo_owl.
|
|
45563
|
+
props = (0, _odoo_owl.useProps)({
|
|
45552
45564
|
active: types.boolean(),
|
|
45553
45565
|
name: types.string(),
|
|
45554
45566
|
color: types.Color(),
|
|
@@ -45905,7 +45917,7 @@ set(value) {
|
|
|
45905
45917
|
this._cancelEdition();
|
|
45906
45918
|
this.resetContent();
|
|
45907
45919
|
}
|
|
45908
|
-
if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
|
|
45920
|
+
if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
|
|
45909
45921
|
const activePosition = this.getters.getActivePosition();
|
|
45910
45922
|
const { col, row } = this.getters.getNextVisibleCellPosition({
|
|
45911
45923
|
sheetId: cmd.sheetIdTo,
|
|
@@ -46135,7 +46147,7 @@ set(value) {
|
|
|
46135
46147
|
var GridComposer = class extends Component {
|
|
46136
46148
|
static template = "o-spreadsheet-GridComposer";
|
|
46137
46149
|
static components = { Composer };
|
|
46138
|
-
props = (0, _odoo_owl.
|
|
46150
|
+
props = (0, _odoo_owl.useProps)({
|
|
46139
46151
|
gridDims: types.DOMDimension(),
|
|
46140
46152
|
onInputContextMenu: types.function()
|
|
46141
46153
|
});
|
|
@@ -47262,7 +47274,7 @@ set(value) {
|
|
|
47262
47274
|
FiguresContainer,
|
|
47263
47275
|
GridAddRowsFooter
|
|
47264
47276
|
};
|
|
47265
|
-
props = (0, _odoo_owl.
|
|
47277
|
+
props = (0, _odoo_owl.useProps)({
|
|
47266
47278
|
onCellDoubleClicked: types.function().optional(() => () => {}),
|
|
47267
47279
|
onCellClicked: types.function().optional(() => () => {}),
|
|
47268
47280
|
onCellRightClicked: types.function().optional(() => () => {}),
|
|
@@ -47379,7 +47391,7 @@ set(value) {
|
|
|
47379
47391
|
var GridPopover = class extends Component {
|
|
47380
47392
|
static template = "o-spreadsheet-GridPopover";
|
|
47381
47393
|
static components = { Popover };
|
|
47382
|
-
props = (0, _odoo_owl.
|
|
47394
|
+
props = (0, _odoo_owl.useProps)({
|
|
47383
47395
|
onClosePopover: types.function(),
|
|
47384
47396
|
onMouseWheel: types.function(),
|
|
47385
47397
|
gridRect: types.Rect()
|
|
@@ -47407,7 +47419,7 @@ set(value) {
|
|
|
47407
47419
|
//#region src/components/headers_overlay/unhide_headers.ts
|
|
47408
47420
|
var UnhideRowHeaders = class extends Component {
|
|
47409
47421
|
static template = "o-spreadsheet-UnhideRowHeaders";
|
|
47410
|
-
props = (0, _odoo_owl.
|
|
47422
|
+
props = (0, _odoo_owl.useProps)({
|
|
47411
47423
|
headersGroups: types.array(),
|
|
47412
47424
|
headerRange: types.object({
|
|
47413
47425
|
start: types.HeaderIndex(),
|
|
@@ -47450,7 +47462,7 @@ set(value) {
|
|
|
47450
47462
|
};
|
|
47451
47463
|
var UnhideColumnHeaders = class extends Component {
|
|
47452
47464
|
static template = "o-spreadsheet-UnhideColumnHeaders";
|
|
47453
|
-
props = (0, _odoo_owl.
|
|
47465
|
+
props = (0, _odoo_owl.useProps)({
|
|
47454
47466
|
headersGroups: types.array(),
|
|
47455
47467
|
headerRange: types.object({
|
|
47456
47468
|
start: types.HeaderIndex(),
|
|
@@ -47490,7 +47502,7 @@ set(value) {
|
|
|
47490
47502
|
//#region src/components/headers_overlay/headers_overlay.ts
|
|
47491
47503
|
const resizerPropsDefinition = { onOpenContextMenu: types.function() };
|
|
47492
47504
|
var AbstractResizer = class extends Component {
|
|
47493
|
-
props = (0, _odoo_owl.
|
|
47505
|
+
props = (0, _odoo_owl.useProps)(resizerPropsDefinition);
|
|
47494
47506
|
composerFocusStore;
|
|
47495
47507
|
PADDING = 0;
|
|
47496
47508
|
MAX_SIZE_MARGIN = 0;
|
|
@@ -47953,7 +47965,7 @@ set(value) {
|
|
|
47953
47965
|
};
|
|
47954
47966
|
var HeadersOverlay = class extends Component {
|
|
47955
47967
|
static template = "o-spreadsheet-HeadersOverlay";
|
|
47956
|
-
props = (0, _odoo_owl.
|
|
47968
|
+
props = (0, _odoo_owl.useProps)(resizerPropsDefinition);
|
|
47957
47969
|
static components = {
|
|
47958
47970
|
ColResizer,
|
|
47959
47971
|
RowResizer
|
|
@@ -48949,7 +48961,7 @@ set(value) {
|
|
|
48949
48961
|
//#region src/components/highlight/border/border.ts
|
|
48950
48962
|
var Border = class extends Component {
|
|
48951
48963
|
static template = "o-spreadsheet-Border";
|
|
48952
|
-
props = (0, _odoo_owl.
|
|
48964
|
+
props = (0, _odoo_owl.useProps)({
|
|
48953
48965
|
zone: types.Zone(),
|
|
48954
48966
|
orientation: types.or([
|
|
48955
48967
|
types.literal("n"),
|
|
@@ -49002,7 +49014,7 @@ set(value) {
|
|
|
49002
49014
|
const MOBILE_HANDLER_WIDTH = 40;
|
|
49003
49015
|
var Corner = class extends Component {
|
|
49004
49016
|
static template = "o-spreadsheet-Corner";
|
|
49005
|
-
props = (0, _odoo_owl.
|
|
49017
|
+
props = (0, _odoo_owl.useProps)({
|
|
49006
49018
|
zone: types.Zone(),
|
|
49007
49019
|
color: types.Color(),
|
|
49008
49020
|
orientation: types.or([
|
|
@@ -49076,7 +49088,7 @@ set(value) {
|
|
|
49076
49088
|
Corner,
|
|
49077
49089
|
Border
|
|
49078
49090
|
};
|
|
49079
|
-
props = (0, _odoo_owl.
|
|
49091
|
+
props = (0, _odoo_owl.useProps)({
|
|
49080
49092
|
range: types.Range(),
|
|
49081
49093
|
color: types.Color()
|
|
49082
49094
|
});
|
|
@@ -49220,7 +49232,7 @@ set(value) {
|
|
|
49220
49232
|
<div t-att-style="this.sizeCss"/>
|
|
49221
49233
|
</div>
|
|
49222
49234
|
`;
|
|
49223
|
-
props = (0, _odoo_owl.
|
|
49235
|
+
props = (0, _odoo_owl.useProps)({
|
|
49224
49236
|
width: types.Pixel().optional(1),
|
|
49225
49237
|
height: types.Pixel().optional(1),
|
|
49226
49238
|
direction: types.customValidator(types.string(), (direction) => ["horizontal", "vertical"].includes(direction)),
|
|
@@ -49266,7 +49278,7 @@ set(value) {
|
|
|
49266
49278
|
direction="'horizontal'"
|
|
49267
49279
|
onScroll.bind="this.onScroll"
|
|
49268
49280
|
/>`;
|
|
49269
|
-
props = (0, _odoo_owl.
|
|
49281
|
+
props = (0, _odoo_owl.useProps)({ leftOffset: types.number().optional(0) });
|
|
49270
49282
|
get offset() {
|
|
49271
49283
|
return this.env.model.getters.getActiveSheetScrollInfo().scrollX;
|
|
49272
49284
|
}
|
|
@@ -49309,7 +49321,7 @@ set(value) {
|
|
|
49309
49321
|
direction="'vertical'"
|
|
49310
49322
|
onScroll.bind="(offset) => this.onScroll(offset)"
|
|
49311
49323
|
/>`;
|
|
49312
|
-
props = (0, _odoo_owl.
|
|
49324
|
+
props = (0, _odoo_owl.useProps)({ topOffset: types.number().optional(0) });
|
|
49313
49325
|
get offset() {
|
|
49314
49326
|
return this.env.model.getters.getActiveSheetScrollInfo().scrollY;
|
|
49315
49327
|
}
|
|
@@ -49360,7 +49372,7 @@ set(value) {
|
|
|
49360
49372
|
const COLOR = "#777";
|
|
49361
49373
|
var TableResizer = class extends Component {
|
|
49362
49374
|
static template = "o-spreadsheet-TableResizer";
|
|
49363
|
-
props = (0, _odoo_owl.
|
|
49375
|
+
props = (0, _odoo_owl.useProps)({ table: types.Table() });
|
|
49364
49376
|
state = (0, _odoo_owl.proxy)({ highlightZone: void 0 });
|
|
49365
49377
|
dragNDropGrid = useDragAndDropBeyondTheViewport(this.env);
|
|
49366
49378
|
setup() {
|
|
@@ -49448,7 +49460,7 @@ set(value) {
|
|
|
49448
49460
|
TableResizer,
|
|
49449
49461
|
Selection
|
|
49450
49462
|
};
|
|
49451
|
-
props = (0, _odoo_owl.
|
|
49463
|
+
props = (0, _odoo_owl.useProps)({
|
|
49452
49464
|
exposeFocus: types.function(),
|
|
49453
49465
|
getGridSize: types.function()
|
|
49454
49466
|
});
|
|
@@ -50076,6 +50088,10 @@ set(value) {
|
|
|
50076
50088
|
get displaySelectionHandler() {
|
|
50077
50089
|
return this.env.isMobile() && this.composerFocusStore.activeComposer.editionMode === "inactive";
|
|
50078
50090
|
}
|
|
50091
|
+
get clientsToDisplay() {
|
|
50092
|
+
const sheetId = this.env.model.getters.getActiveSheetId();
|
|
50093
|
+
return this.env.model.getters.getClientsToDisplay(sheetId);
|
|
50094
|
+
}
|
|
50079
50095
|
};
|
|
50080
50096
|
|
|
50081
50097
|
//#endregion
|
|
@@ -50092,7 +50108,7 @@ set(value) {
|
|
|
50092
50108
|
//#region src/components/dashboard/clickable_cell_sort_icon/clickable_cell_sort_icon.ts
|
|
50093
50109
|
var ClickableCellSortIcon = class extends Component {
|
|
50094
50110
|
static template = "o-spreadsheet-ClickableCellSortIcon";
|
|
50095
|
-
props = (0, _odoo_owl.
|
|
50111
|
+
props = (0, _odoo_owl.useProps)({
|
|
50096
50112
|
position: types.CellPosition(),
|
|
50097
50113
|
sortDirection: types.or([types.SortDirection, types.literal("none")])
|
|
50098
50114
|
});
|
|
@@ -50167,7 +50183,7 @@ set(value) {
|
|
|
50167
50183
|
var PivotHTMLRenderer = class extends Component {
|
|
50168
50184
|
static template = "o_spreadsheet.PivotHTMLRenderer";
|
|
50169
50185
|
static components = { Checkbox };
|
|
50170
|
-
props = (0, _odoo_owl.
|
|
50186
|
+
props = (0, _odoo_owl.useProps)({
|
|
50171
50187
|
pivotId: types.UID(),
|
|
50172
50188
|
onCellClicked: types.function()
|
|
50173
50189
|
});
|
|
@@ -51040,6 +51056,7 @@ set(value) {
|
|
|
51040
51056
|
alreadyAppliedNumberOffsets = [];
|
|
51041
51057
|
previousStrings = [];
|
|
51042
51058
|
baseFormulaWasTransformed = false;
|
|
51059
|
+
rangeToStringOptions = { doNotSimplifyRange: true };
|
|
51043
51060
|
baseNumber = void 0;
|
|
51044
51061
|
constructor(getters) {
|
|
51045
51062
|
this.getters = getters;
|
|
@@ -51095,9 +51112,9 @@ set(value) {
|
|
|
51095
51112
|
let references = [];
|
|
51096
51113
|
if (!this.baseFormula || this.baseFormula.normalizedFormula !== cell.compiledFormula.normalizedFormula) {
|
|
51097
51114
|
this.resetBaseTo(cell.compiledFormula);
|
|
51098
|
-
return cell.compiledFormula.toFormulaString(this.getters);
|
|
51115
|
+
return cell.compiledFormula.toFormulaString(this.getters, this.rangeToStringOptions);
|
|
51099
51116
|
} else {
|
|
51100
|
-
if (!this.baseFormulaWasTransformed && deepEquals(cell.compiledFormula.literalValues, this.baseFormula.literalValues) && deepEquals(cell.compiledFormula.rangeDependencies, this.baseFormula.rangeDependencies)) return cell.compiledFormula.toFormulaString(this.getters);
|
|
51117
|
+
if (!this.baseFormulaWasTransformed && deepEquals(cell.compiledFormula.literalValues, this.baseFormula.literalValues) && deepEquals(cell.compiledFormula.rangeDependencies, this.baseFormula.rangeDependencies)) return cell.compiledFormula.toFormulaString(this.getters, this.rangeToStringOptions);
|
|
51101
51118
|
numbers = this.squishNumbers(cell.compiledFormula.literalValues.numbers);
|
|
51102
51119
|
strings = this.squishStrings(cell.compiledFormula.literalValues.strings);
|
|
51103
51120
|
references = this.squishReferences(cell.compiledFormula.rangeDependencies, forSheetId);
|
|
@@ -51174,23 +51191,23 @@ set(value) {
|
|
|
51174
51191
|
squishOneReference(reference, previousReferences, index, forSheetId) {
|
|
51175
51192
|
const previousReference = previousReferences[index];
|
|
51176
51193
|
if (deepEquals(previousReference, reference)) return "=";
|
|
51177
|
-
if (previousReference.sheetId !== reference.sheetId || previousReference.prefixSheet !== reference.prefixSheet || previousReference.invalidSheetName !== reference.invalidSheetName || previousReference.invalidXc !== reference.invalidXc) {
|
|
51194
|
+
if (previousReference.sheetId !== reference.sheetId || previousReference.prefixSheet !== reference.prefixSheet || previousReference.invalidSheetName !== reference.invalidSheetName || previousReference.invalidXc !== reference.invalidXc || previousReference.parts.length !== reference.parts.length) {
|
|
51178
51195
|
previousReferences[index] = deepCopy(reference);
|
|
51179
|
-
return getRangeString(reference, forSheetId, this.getters.getSheetName);
|
|
51196
|
+
return getRangeString(reference, forSheetId, this.getters.getSheetName, this.rangeToStringOptions);
|
|
51180
51197
|
}
|
|
51181
51198
|
if (previousReference.unboundedZone.bottom === void 0 || previousReference.unboundedZone.right === void 0 || reference.unboundedZone.bottom === void 0 || reference.unboundedZone.right === void 0) {
|
|
51182
51199
|
previousReferences[index] = deepCopy(reference);
|
|
51183
|
-
return getRangeString(reference, forSheetId, this.getters.getSheetName);
|
|
51200
|
+
return getRangeString(reference, forSheetId, this.getters.getSheetName, this.rangeToStringOptions);
|
|
51184
51201
|
}
|
|
51185
51202
|
for (let i = 0; i < reference.parts.length; i++) if (previousReference.parts[i].colFixed !== reference.parts[i].colFixed || previousReference.parts[i].rowFixed !== reference.parts[i].rowFixed) {
|
|
51186
51203
|
previousReferences[index] = deepCopy(reference);
|
|
51187
|
-
return getRangeString(reference, forSheetId, this.getters.getSheetName);
|
|
51204
|
+
return getRangeString(reference, forSheetId, this.getters.getSheetName, this.rangeToStringOptions);
|
|
51188
51205
|
}
|
|
51189
51206
|
const currentZone = reference.zone;
|
|
51190
51207
|
const previousZone = previousReference.zone;
|
|
51191
51208
|
if (currentZone.top !== currentZone.bottom || currentZone.left !== currentZone.right || previousZone.top !== previousZone.bottom || previousZone.left !== previousZone.right) {
|
|
51192
51209
|
previousReferences[index] = deepCopy(reference);
|
|
51193
|
-
return getRangeString(reference, forSheetId, this.getters.getSheetName);
|
|
51210
|
+
return getRangeString(reference, forSheetId, this.getters.getSheetName, this.rangeToStringOptions);
|
|
51194
51211
|
}
|
|
51195
51212
|
const diffCol = reference.zone.left - previousReference.zone.left;
|
|
51196
51213
|
const diffRow = reference.zone.top - previousReference.zone.top;
|
|
@@ -51198,7 +51215,7 @@ set(value) {
|
|
|
51198
51215
|
previousReference.unboundedZone = deepCopy(reference.unboundedZone);
|
|
51199
51216
|
if (diffCol !== 0 && diffRow === 0) return `${diffCol > 0 ? "+" : "-"}C${Math.abs(diffCol)}`;
|
|
51200
51217
|
else if (diffRow !== 0 && diffCol === 0) return `${diffRow > 0 ? "+" : "-"}R${Math.abs(diffRow)}`;
|
|
51201
|
-
return getRangeString(reference, forSheetId, this.getters.getSheetName);
|
|
51218
|
+
return getRangeString(reference, forSheetId, this.getters.getSheetName, this.rangeToStringOptions);
|
|
51202
51219
|
}
|
|
51203
51220
|
/**
|
|
51204
51221
|
* Squish the number parameters. Result for each parameter should be compared the previous formula.
|
|
@@ -51407,10 +51424,19 @@ set(value) {
|
|
|
51407
51424
|
case "FIRST_OFFSET": {
|
|
51408
51425
|
const currentOffset = current;
|
|
51409
51426
|
this.previousOffset = currentOffset;
|
|
51410
|
-
for (const position of targetPositions)
|
|
51411
|
-
|
|
51412
|
-
|
|
51413
|
-
|
|
51427
|
+
for (const position of targetPositions) {
|
|
51428
|
+
const result = this.unsquishFormula(currentOffset, sheetId, getters);
|
|
51429
|
+
if (!result.areRangeShapesInLineWithNormalizedFormula()) {
|
|
51430
|
+
const formulaString = result.toFormulaString(getters);
|
|
51431
|
+
yield {
|
|
51432
|
+
position,
|
|
51433
|
+
compiled: CompiledFormula.Compile(formulaString, sheetId, getters)
|
|
51434
|
+
};
|
|
51435
|
+
} else yield {
|
|
51436
|
+
position,
|
|
51437
|
+
compiled: result
|
|
51438
|
+
};
|
|
51439
|
+
}
|
|
51414
51440
|
break;
|
|
51415
51441
|
}
|
|
51416
51442
|
case "COMBINE_OFFSET": {
|
|
@@ -51419,10 +51445,19 @@ set(value) {
|
|
|
51419
51445
|
this.previousOffset.N = currentOffset.N ?? this.previousOffset.N;
|
|
51420
51446
|
this.previousOffset.S = currentOffset.S ?? this.previousOffset.S;
|
|
51421
51447
|
this.previousOffset.R = currentOffset.R ?? this.previousOffset.R;
|
|
51422
|
-
for (const position of targetPositions)
|
|
51423
|
-
|
|
51424
|
-
|
|
51425
|
-
|
|
51448
|
+
for (const position of targetPositions) {
|
|
51449
|
+
const result = this.unsquishFormula(this.previousOffset, sheetId, getters);
|
|
51450
|
+
if (!result.areRangeShapesInLineWithNormalizedFormula()) {
|
|
51451
|
+
const formulaString = result.toFormulaString(getters);
|
|
51452
|
+
yield {
|
|
51453
|
+
position,
|
|
51454
|
+
compiled: CompiledFormula.Compile(formulaString, sheetId, getters)
|
|
51455
|
+
};
|
|
51456
|
+
} else yield {
|
|
51457
|
+
position,
|
|
51458
|
+
compiled: result
|
|
51459
|
+
};
|
|
51460
|
+
}
|
|
51426
51461
|
break;
|
|
51427
51462
|
}
|
|
51428
51463
|
case "NEW_NUMBER":
|
|
@@ -53027,11 +53062,16 @@ set(value) {
|
|
|
53027
53062
|
const deltaStyle = {};
|
|
53028
53063
|
let hasDelta = false;
|
|
53029
53064
|
const styleSheet = this.style[position.sheetId];
|
|
53030
|
-
if (!styleSheet) continue;
|
|
53031
53065
|
for (const key in newDefaultStyle) {
|
|
53032
53066
|
if (key in cellStyle) continue;
|
|
53033
|
-
const defaults = styleSheet[key];
|
|
53034
|
-
if (!defaults)
|
|
53067
|
+
const defaults = styleSheet?.[key];
|
|
53068
|
+
if (!defaults) {
|
|
53069
|
+
if (newDefaultStyle[key] !== DEFAULT_STYLE[key]) {
|
|
53070
|
+
deltaStyle[key] = DEFAULT_STYLE[key];
|
|
53071
|
+
hasDelta = true;
|
|
53072
|
+
}
|
|
53073
|
+
continue;
|
|
53074
|
+
}
|
|
53035
53075
|
const rowDefault = defaults.rowDefault?.[position.row];
|
|
53036
53076
|
if (rowDefault !== void 0) {
|
|
53037
53077
|
if (priorities.shouldUseDefaultRow) {
|
|
@@ -53073,7 +53113,8 @@ set(value) {
|
|
|
53073
53113
|
for (const key in styleSheet) if (!(key in style)) {
|
|
53074
53114
|
const defaults = styleSheet[key];
|
|
53075
53115
|
if (!defaults) continue;
|
|
53076
|
-
|
|
53116
|
+
const styleValue = defaults.rowDefault?.[position.row] ?? defaults.colDefault?.[position.col] ?? defaults.sheetDefault;
|
|
53117
|
+
if (styleValue !== void 0) style[key] = styleValue;
|
|
53077
53118
|
}
|
|
53078
53119
|
return style;
|
|
53079
53120
|
}
|
|
@@ -59639,6 +59680,8 @@ set(value) {
|
|
|
59639
59680
|
pivots = {};
|
|
59640
59681
|
unusedPivotsInFormulas;
|
|
59641
59682
|
custom;
|
|
59683
|
+
pivotPositionCache = new PositionMap();
|
|
59684
|
+
shouldInvalidateCache = false;
|
|
59642
59685
|
constructor(config) {
|
|
59643
59686
|
super(config);
|
|
59644
59687
|
this.custom = config.custom;
|
|
@@ -59649,7 +59692,11 @@ set(value) {
|
|
|
59649
59692
|
}
|
|
59650
59693
|
}
|
|
59651
59694
|
handle(cmd) {
|
|
59652
|
-
if (invalidateEvaluationCommands.has(cmd.type))
|
|
59695
|
+
if (invalidateEvaluationCommands.has(cmd.type)) {
|
|
59696
|
+
this.shouldInvalidateCache = true;
|
|
59697
|
+
for (const pivotId of this.getters.getPivotIds()) this.setupPivot(pivotId, { recreate: true });
|
|
59698
|
+
}
|
|
59699
|
+
if (cmd.type === "UPDATE_CELL") this.shouldInvalidateCache = true;
|
|
59653
59700
|
switch (cmd.type) {
|
|
59654
59701
|
case "REFRESH_PIVOT":
|
|
59655
59702
|
this.refreshPivot(cmd.id);
|
|
@@ -59689,6 +59736,12 @@ set(value) {
|
|
|
59689
59736
|
break;
|
|
59690
59737
|
}
|
|
59691
59738
|
}
|
|
59739
|
+
finalize() {
|
|
59740
|
+
if (this.shouldInvalidateCache) {
|
|
59741
|
+
this.pivotPositionCache = new PositionMap();
|
|
59742
|
+
this.shouldInvalidateCache = false;
|
|
59743
|
+
}
|
|
59744
|
+
}
|
|
59692
59745
|
/**
|
|
59693
59746
|
* Get the id of the first pivot in the formula at the given position. Returns undefined if there
|
|
59694
59747
|
* is no pivot at this position
|
|
@@ -59700,9 +59753,14 @@ set(value) {
|
|
|
59700
59753
|
* Get all of the ids of the pivot present in the formula at the given position.
|
|
59701
59754
|
*/
|
|
59702
59755
|
getPivotIdsFromPosition(position) {
|
|
59703
|
-
|
|
59704
|
-
|
|
59705
|
-
|
|
59756
|
+
if (!this.pivotPositionCache.has(position)) {
|
|
59757
|
+
const cell = this.getters.getCorrespondingFormulaCell(position);
|
|
59758
|
+
if (cell && cell.isFormula) {
|
|
59759
|
+
const pivotIds = this.getPivotIdsFromFormula(position.sheetId, cell.compiledFormula);
|
|
59760
|
+
this.pivotPositionCache.set(position, pivotIds);
|
|
59761
|
+
}
|
|
59762
|
+
}
|
|
59763
|
+
return this.pivotPositionCache.get(position) || [];
|
|
59706
59764
|
}
|
|
59707
59765
|
getPivotIdsFromFormula(sheetId, formula) {
|
|
59708
59766
|
return this.getPivotFunctions(sheetId, formula).map((pivotFunction) => {
|
|
@@ -61067,17 +61125,32 @@ set(value) {
|
|
|
61067
61125
|
getCellTableStyle(position) {
|
|
61068
61126
|
const table = this.getters.getTable(position);
|
|
61069
61127
|
if (!table) return;
|
|
61070
|
-
|
|
61128
|
+
try {
|
|
61129
|
+
return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
|
|
61130
|
+
} catch (e) {
|
|
61131
|
+
if (isEvaluationError(e) || e instanceof EvaluationError) return;
|
|
61132
|
+
throw e;
|
|
61133
|
+
}
|
|
61071
61134
|
}
|
|
61072
61135
|
getCellTableBorder(position) {
|
|
61073
61136
|
const table = this.getters.getTable(position);
|
|
61074
61137
|
if (!table) return;
|
|
61075
|
-
|
|
61138
|
+
try {
|
|
61139
|
+
return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
|
|
61140
|
+
} catch (e) {
|
|
61141
|
+
if (isEvaluationError(e) || e instanceof EvaluationError) return;
|
|
61142
|
+
throw e;
|
|
61143
|
+
}
|
|
61076
61144
|
}
|
|
61077
61145
|
computeTableStyle(sheetId, table) {
|
|
61078
61146
|
return lazy(() => {
|
|
61079
61147
|
const style = this.getters.getTableStyle(table.config.styleId);
|
|
61080
|
-
const
|
|
61148
|
+
const tableMetaDataAndConfig = this.getTableMetaData(sheetId, table);
|
|
61149
|
+
if (!tableMetaDataAndConfig) return {
|
|
61150
|
+
borders: {},
|
|
61151
|
+
styles: {}
|
|
61152
|
+
};
|
|
61153
|
+
const { tableMetaData, config } = tableMetaDataAndConfig;
|
|
61081
61154
|
const relativeTableStyle = getComputedTableStyle(config, style, tableMetaData);
|
|
61082
61155
|
const mapping = this.getTableMapping(sheetId, table);
|
|
61083
61156
|
const absoluteTableStyle = {
|
|
@@ -61115,6 +61188,7 @@ set(value) {
|
|
|
61115
61188
|
const pivotInfo = this.getters.getPivotStyleAtPosition(mainPosition);
|
|
61116
61189
|
if (!pivotInfo) throw new Error("No dynamic pivot info found at pivot table position");
|
|
61117
61190
|
const pivot = this.getters.getPivot(pivotInfo.pivotId);
|
|
61191
|
+
if (!pivot.isValid()) return;
|
|
61118
61192
|
const pivotStyle = pivotInfo.pivotStyle;
|
|
61119
61193
|
const maxRowDepth = pivot.getExpandedTableStructure().getNumberOfRowGroupBys();
|
|
61120
61194
|
const pivotTable = pivot.getCollapsedTableStructure();
|
|
@@ -62409,14 +62483,13 @@ set(value) {
|
|
|
62409
62483
|
* Get the list of others connected clients which are present in the same sheet
|
|
62410
62484
|
* and with a valid position
|
|
62411
62485
|
*/
|
|
62412
|
-
getClientsToDisplay() {
|
|
62486
|
+
getClientsToDisplay(sheetId) {
|
|
62413
62487
|
try {
|
|
62414
62488
|
this.getters.getCurrentClient();
|
|
62415
62489
|
} catch (e) {
|
|
62416
62490
|
if (e instanceof ClientDisconnectedError) return [];
|
|
62417
62491
|
else throw e;
|
|
62418
62492
|
}
|
|
62419
|
-
const sheetId = this.getters.getActiveSheetId();
|
|
62420
62493
|
const clients = [];
|
|
62421
62494
|
for (const client of this.getters.getConnectedClients()) if (client.id !== this.getters.getCurrentClient().id && client.position && client.position.sheetId === sheetId && this.isPositionValid(client.position)) clients.push({
|
|
62422
62495
|
...client,
|
|
@@ -62427,7 +62500,7 @@ set(value) {
|
|
|
62427
62500
|
drawLayer(renderingContext) {
|
|
62428
62501
|
if (this.getters.isDashboard()) return;
|
|
62429
62502
|
const { ctx, thinLineWidth, viewports, sheetId } = renderingContext;
|
|
62430
|
-
for (const client of this.getClientsToDisplay()) {
|
|
62503
|
+
for (const client of this.getClientsToDisplay(sheetId)) {
|
|
62431
62504
|
const { row, col } = client.position;
|
|
62432
62505
|
const zone = this.getters.expandZone(sheetId, {
|
|
62433
62506
|
top: row,
|
|
@@ -63235,8 +63308,8 @@ set(value) {
|
|
|
63235
63308
|
getNextVisibleCellPosition({ sheetId, col, row }) {
|
|
63236
63309
|
return {
|
|
63237
63310
|
sheetId,
|
|
63238
|
-
col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
|
|
63239
|
-
row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
|
|
63311
|
+
col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
|
|
63312
|
+
row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
|
|
63240
63313
|
};
|
|
63241
63314
|
}
|
|
63242
63315
|
/**
|
|
@@ -68463,7 +68536,7 @@ set(value) {
|
|
|
68463
68536
|
];
|
|
68464
68537
|
var RippleEffect = class extends Component {
|
|
68465
68538
|
static template = "o-spreadsheet-RippleEffect";
|
|
68466
|
-
props = (0, _odoo_owl.
|
|
68539
|
+
props = (0, _odoo_owl.useProps)({
|
|
68467
68540
|
x: types.string(),
|
|
68468
68541
|
y: types.string(),
|
|
68469
68542
|
color: types.string(),
|
|
@@ -68516,7 +68589,7 @@ set(value) {
|
|
|
68516
68589
|
var Ripple = class extends Component {
|
|
68517
68590
|
static template = "o-spreadsheet-Ripple";
|
|
68518
68591
|
static components = { RippleEffect };
|
|
68519
|
-
props = (0, _odoo_owl.
|
|
68592
|
+
props = (0, _odoo_owl.useProps)({
|
|
68520
68593
|
color: types.string().optional("#aaaaaa"),
|
|
68521
68594
|
opacity: types.number().optional(.4),
|
|
68522
68595
|
duration: types.number().optional(800),
|
|
@@ -68794,7 +68867,7 @@ set(value) {
|
|
|
68794
68867
|
Ripple,
|
|
68795
68868
|
ColorPicker
|
|
68796
68869
|
};
|
|
68797
|
-
props = (0, _odoo_owl.
|
|
68870
|
+
props = (0, _odoo_owl.useProps)({
|
|
68798
68871
|
sheetId: types.string(),
|
|
68799
68872
|
openContextMenu: types.function(),
|
|
68800
68873
|
style: types.string().optional(""),
|
|
@@ -69084,7 +69157,7 @@ set(value) {
|
|
|
69084
69157
|
var BottomBarStatistic = class extends Component {
|
|
69085
69158
|
static template = "o-spreadsheet-BottomBarStatistic";
|
|
69086
69159
|
static components = { Ripple };
|
|
69087
|
-
props = (0, _odoo_owl.
|
|
69160
|
+
props = (0, _odoo_owl.useProps)({
|
|
69088
69161
|
openContextMenu: types.function(),
|
|
69089
69162
|
closeContextMenu: types.function()
|
|
69090
69163
|
});
|
|
@@ -69138,7 +69211,7 @@ set(value) {
|
|
|
69138
69211
|
const SHEET_LIST_MENU_MAX_HEIGHT = 250;
|
|
69139
69212
|
var BottomBar = class extends Component {
|
|
69140
69213
|
static template = "o-spreadsheet-BottomBar";
|
|
69141
|
-
props = (0, _odoo_owl.
|
|
69214
|
+
props = (0, _odoo_owl.useProps)({ onClick: types.function() });
|
|
69142
69215
|
static components = {
|
|
69143
69216
|
MenuPopover,
|
|
69144
69217
|
Ripple,
|
|
@@ -69421,7 +69494,7 @@ set(value) {
|
|
|
69421
69494
|
VerticalScrollBar,
|
|
69422
69495
|
HorizontalScrollBar
|
|
69423
69496
|
};
|
|
69424
|
-
props = (0, _odoo_owl.
|
|
69497
|
+
props = (0, _odoo_owl.useProps)({ getGridSize: types.function() });
|
|
69425
69498
|
cellPopovers;
|
|
69426
69499
|
onMouseWheel;
|
|
69427
69500
|
canvasPosition;
|
|
@@ -69540,7 +69613,7 @@ set(value) {
|
|
|
69540
69613
|
//#region src/components/header_group/header_group.ts
|
|
69541
69614
|
var AbstractHeaderGroup = class extends Component {
|
|
69542
69615
|
static template = "o-spreadsheet-HeaderGroup";
|
|
69543
|
-
props = (0, _odoo_owl.
|
|
69616
|
+
props = (0, _odoo_owl.useProps)({
|
|
69544
69617
|
group: types.HeaderGroup(),
|
|
69545
69618
|
layerOffset: types.number(),
|
|
69546
69619
|
openContextMenu: types.function()
|
|
@@ -69694,7 +69767,7 @@ set(value) {
|
|
|
69694
69767
|
ColGroup,
|
|
69695
69768
|
MenuPopover
|
|
69696
69769
|
};
|
|
69697
|
-
props = (0, _odoo_owl.
|
|
69770
|
+
props = (0, _odoo_owl.useProps)({
|
|
69698
69771
|
dimension: types.Dimension(),
|
|
69699
69772
|
layers: types.array()
|
|
69700
69773
|
});
|
|
@@ -69770,7 +69843,7 @@ set(value) {
|
|
|
69770
69843
|
//#region src/components/side_panel/side_panel/side_panel.ts
|
|
69771
69844
|
var SidePanel = class extends Component {
|
|
69772
69845
|
static template = "o-spreadsheet-SidePanel";
|
|
69773
|
-
props = (0, _odoo_owl.
|
|
69846
|
+
props = (0, _odoo_owl.useProps)({
|
|
69774
69847
|
panelContent: types.SidePanelContent(),
|
|
69775
69848
|
panelProps: types.SidePanelComponentProps(),
|
|
69776
69849
|
onCloseSidePanel: types.function(),
|
|
@@ -69864,7 +69937,7 @@ set(value) {
|
|
|
69864
69937
|
var RibbonMenu = class extends Component {
|
|
69865
69938
|
static template = "o-spreadsheet-RibbonMenu";
|
|
69866
69939
|
static components = { Menu };
|
|
69867
|
-
props = (0, _odoo_owl.
|
|
69940
|
+
props = (0, _odoo_owl.useProps)({ onClose: types.function() });
|
|
69868
69941
|
rootItems = topbarMenuRegistry.getMenuItems();
|
|
69869
69942
|
menuRef = (0, _odoo_owl.signal)(null);
|
|
69870
69943
|
containerRef = (0, _odoo_owl.signal)(null);
|
|
@@ -69935,7 +70008,7 @@ set(value) {
|
|
|
69935
70008
|
RibbonMenu
|
|
69936
70009
|
};
|
|
69937
70010
|
static template = "o-spreadsheet-SmallBottomBar";
|
|
69938
|
-
props = (0, _odoo_owl.
|
|
70011
|
+
props = (0, _odoo_owl.useProps)({ onClick: types.function() });
|
|
69939
70012
|
composerFocusStore;
|
|
69940
70013
|
composerStore;
|
|
69941
70014
|
composerInterface;
|
|
@@ -70136,7 +70209,7 @@ set(value) {
|
|
|
70136
70209
|
//#region src/components/standalone_grid_canvas/standalone_grid_canvas.ts
|
|
70137
70210
|
var StandaloneGridCanvas = class extends Component {
|
|
70138
70211
|
static template = "o-spreadsheet-StandaloneGridCanvas";
|
|
70139
|
-
props = (0, _odoo_owl.
|
|
70212
|
+
props = (0, _odoo_owl.useProps)({
|
|
70140
70213
|
sheetId: types.UID(),
|
|
70141
70214
|
zone: types.Zone(),
|
|
70142
70215
|
renderingCtx: types.object()
|
|
@@ -70461,7 +70534,7 @@ set(value) {
|
|
|
70461
70534
|
//#region src/components/spreadsheet_print/spreadsheet_print.ts
|
|
70462
70535
|
var SpreadsheetPrint = class extends Component {
|
|
70463
70536
|
static template = "o-spreadsheet-SpreadsheetPrint";
|
|
70464
|
-
props = (0, _odoo_owl.
|
|
70537
|
+
props = (0, _odoo_owl.useProps)({ onExitPrintMode: types.function() });
|
|
70465
70538
|
static components = {
|
|
70466
70539
|
StandaloneGridCanvas,
|
|
70467
70540
|
Section,
|
|
@@ -70803,7 +70876,7 @@ set(value) {
|
|
|
70803
70876
|
ColorPickerWidget,
|
|
70804
70877
|
Popover
|
|
70805
70878
|
};
|
|
70806
|
-
props = (0, _odoo_owl.
|
|
70879
|
+
props = (0, _odoo_owl.useProps)({
|
|
70807
70880
|
class: types.string().optional(),
|
|
70808
70881
|
currentBorderColor: types.Color(),
|
|
70809
70882
|
currentBorderStyle: types.BorderStyle(),
|
|
@@ -70875,7 +70948,7 @@ set(value) {
|
|
|
70875
70948
|
var BorderEditorWidget = class extends Component {
|
|
70876
70949
|
static template = "o-spreadsheet-BorderEditorWidget";
|
|
70877
70950
|
static components = { BorderEditor };
|
|
70878
|
-
props = (0, _odoo_owl.
|
|
70951
|
+
props = (0, _odoo_owl.useProps)({
|
|
70879
70952
|
disabled: types.boolean().optional(),
|
|
70880
70953
|
dropdownMaxHeight: types.Pixel().optional(),
|
|
70881
70954
|
class: types.string().optional()
|
|
@@ -70936,7 +71009,7 @@ set(value) {
|
|
|
70936
71009
|
//#region src/components/paint_format_button/paint_format_button.ts
|
|
70937
71010
|
var PaintFormatButton = class extends Component {
|
|
70938
71011
|
static template = "o-spreadsheet-PaintFormatButton";
|
|
70939
|
-
props = (0, _odoo_owl.
|
|
71012
|
+
props = (0, _odoo_owl.useProps)({ class: types.string().optional() });
|
|
70940
71013
|
paintFormatStore;
|
|
70941
71014
|
setup() {
|
|
70942
71015
|
this.paintFormatStore = useStore(PaintFormatStore);
|
|
@@ -70961,7 +71034,7 @@ set(value) {
|
|
|
70961
71034
|
TableStylesPopover,
|
|
70962
71035
|
ActionButton
|
|
70963
71036
|
};
|
|
70964
|
-
props = (0, _odoo_owl.
|
|
71037
|
+
props = (0, _odoo_owl.useProps)({ class: types.string().optional() });
|
|
70965
71038
|
topBarToolStore;
|
|
70966
71039
|
state = (0, _odoo_owl.proxy)({ popoverProps: void 0 });
|
|
70967
71040
|
setup() {
|
|
@@ -71055,7 +71128,7 @@ set(value) {
|
|
|
71055
71128
|
var TopBarColorEditor = class extends Component {
|
|
71056
71129
|
static components = { ColorPickerWidget };
|
|
71057
71130
|
static template = "o-spreadsheet-ColorEditor";
|
|
71058
|
-
props = (0, _odoo_owl.
|
|
71131
|
+
props = (0, _odoo_owl.useProps)({
|
|
71059
71132
|
class: types.string(),
|
|
71060
71133
|
style: types.or([types.literal("textColor"), types.literal("fillColor")]),
|
|
71061
71134
|
icon: types.string(),
|
|
@@ -71103,7 +71176,7 @@ set(value) {
|
|
|
71103
71176
|
ActionButton,
|
|
71104
71177
|
Popover
|
|
71105
71178
|
};
|
|
71106
|
-
props = (0, _odoo_owl.
|
|
71179
|
+
props = (0, _odoo_owl.useProps)({
|
|
71107
71180
|
parentAction: types.ActionSpec(),
|
|
71108
71181
|
childActions: types.array(types.ActionSpec()),
|
|
71109
71182
|
class: types.string(),
|
|
@@ -71136,7 +71209,7 @@ set(value) {
|
|
|
71136
71209
|
var TopBarFontSizeEditor = class extends Component {
|
|
71137
71210
|
static components = { FontSizeEditor };
|
|
71138
71211
|
static template = "o-spreadsheet-TopBarFontSizeEditor";
|
|
71139
|
-
props = (0, _odoo_owl.
|
|
71212
|
+
props = (0, _odoo_owl.useProps)({ class: types.string() });
|
|
71140
71213
|
topBarToolStore;
|
|
71141
71214
|
setup() {
|
|
71142
71215
|
this.topBarToolStore = useToolBarDropdownStore();
|
|
@@ -71170,7 +71243,7 @@ set(value) {
|
|
|
71170
71243
|
MenuPopover,
|
|
71171
71244
|
ActionButton
|
|
71172
71245
|
};
|
|
71173
|
-
props = (0, _odoo_owl.
|
|
71246
|
+
props = (0, _odoo_owl.useProps)({ class: types.string() });
|
|
71174
71247
|
formatNumberMenuItemSpec = formatNumberMenuItemSpec;
|
|
71175
71248
|
topBarToolStore;
|
|
71176
71249
|
buttonRef = (0, _odoo_owl.signal)(null);
|
|
@@ -71205,7 +71278,7 @@ set(value) {
|
|
|
71205
71278
|
var ToolBarZoom = class extends Component {
|
|
71206
71279
|
static template = "o-spreadsheet-TopBarZoom";
|
|
71207
71280
|
static components = { NumberEditor };
|
|
71208
|
-
props = (0, _odoo_owl.
|
|
71281
|
+
props = (0, _odoo_owl.useProps)({ class: types.string() });
|
|
71209
71282
|
topBarToolStore;
|
|
71210
71283
|
valueList = ZOOM_VALUES;
|
|
71211
71284
|
setup() {
|
|
@@ -71431,7 +71504,7 @@ set(value) {
|
|
|
71431
71504
|
//#region src/components/top_bar/top_bar.ts
|
|
71432
71505
|
var TopBar = class extends Component {
|
|
71433
71506
|
static template = "o-spreadsheet-TopBar";
|
|
71434
|
-
props = (0, _odoo_owl.
|
|
71507
|
+
props = (0, _odoo_owl.useProps)({
|
|
71435
71508
|
onClick: types.function(),
|
|
71436
71509
|
dropdownMaxHeight: types.Pixel()
|
|
71437
71510
|
});
|
|
@@ -71709,7 +71782,7 @@ set(value) {
|
|
|
71709
71782
|
//#region src/components/spreadsheet/spreadsheet.ts
|
|
71710
71783
|
var Spreadsheet = class extends Component {
|
|
71711
71784
|
static template = "o-spreadsheet-Spreadsheet";
|
|
71712
|
-
props = (0, _odoo_owl.
|
|
71785
|
+
props = (0, _odoo_owl.useProps)({
|
|
71713
71786
|
model: types.Model(),
|
|
71714
71787
|
notifyUser: types.function().optional(),
|
|
71715
71788
|
raiseError: types.function().optional(),
|
|
@@ -77011,8 +77084,8 @@ set(value) {
|
|
|
77011
77084
|
for (const key in DEFAULT_STYLE) {
|
|
77012
77085
|
content.style[key] = {
|
|
77013
77086
|
sheetDefault: this.getters.getDefaultStyle(data.sheetId, key, "SHEET", void 0) ?? DEFAULT_STYLE[key],
|
|
77014
|
-
colDefault:
|
|
77015
|
-
rowDefault:
|
|
77087
|
+
colDefault: [],
|
|
77088
|
+
rowDefault: []
|
|
77016
77089
|
};
|
|
77017
77090
|
let colIndex = 0;
|
|
77018
77091
|
for (const col of data.columnsIndexes) {
|
|
@@ -77029,20 +77102,41 @@ set(value) {
|
|
|
77029
77102
|
}
|
|
77030
77103
|
return content;
|
|
77031
77104
|
}
|
|
77032
|
-
|
|
77033
|
-
|
|
77034
|
-
|
|
77035
|
-
|
|
77036
|
-
|
|
77037
|
-
|
|
77105
|
+
adaptContentToZone(zone, content) {
|
|
77106
|
+
const colRepetition = Math.max(Math.floor((zone.right - zone.left + 1) / content.width), 1);
|
|
77107
|
+
const rowRepetition = Math.max(Math.floor((zone.bottom - zone.top + 1) / content.height), 1);
|
|
77108
|
+
if (colRepetition === 1 && rowRepetition === 1) return content;
|
|
77109
|
+
const newContent = deepCopy(content);
|
|
77110
|
+
newContent.height *= rowRepetition;
|
|
77111
|
+
newContent.width *= colRepetition;
|
|
77112
|
+
if (rowRepetition > 1 && newContent.format.rowDefault) {
|
|
77113
|
+
newContent.format.rowDefault.length = content.height;
|
|
77114
|
+
newContent.format.rowDefault = repeat(newContent.format.rowDefault, rowRepetition);
|
|
77115
|
+
}
|
|
77116
|
+
if (colRepetition > 1 && newContent.format.colDefault) {
|
|
77117
|
+
newContent.format.colDefault.length = content.width;
|
|
77118
|
+
newContent.format.colDefault = repeat(newContent.format.colDefault, colRepetition);
|
|
77119
|
+
}
|
|
77120
|
+
for (const key in content.style) {
|
|
77121
|
+
if (rowRepetition > 1 && newContent.style[key].rowDefault) {
|
|
77122
|
+
newContent.style[key].rowDefault.length = content.height;
|
|
77123
|
+
newContent.style[key].rowDefault = repeat(newContent.style[key].rowDefault, rowRepetition);
|
|
77124
|
+
}
|
|
77125
|
+
if (colRepetition > 1 && newContent.style[key].colDefault) {
|
|
77126
|
+
newContent.style[key].colDefault.length = content.width;
|
|
77127
|
+
newContent.style[key].colDefault = repeat(newContent.style[key].colDefault, colRepetition);
|
|
77128
|
+
}
|
|
77129
|
+
}
|
|
77130
|
+
return newContent;
|
|
77038
77131
|
}
|
|
77039
77132
|
paste(target, content, options) {
|
|
77040
77133
|
const sheetId = target.sheetId;
|
|
77041
77134
|
if (options.pasteOption === "asValue") return;
|
|
77042
77135
|
const zones = target.zones;
|
|
77043
|
-
if (!options.isCutOperation) for (const zone of zones)
|
|
77044
|
-
|
|
77045
|
-
this.
|
|
77136
|
+
if (!options.isCutOperation) for (const zone of zones) {
|
|
77137
|
+
const newContent = this.adaptContentToZone(zone, content);
|
|
77138
|
+
this.pasteStyle(sheetId, zone.left, zone.top, newContent.width, newContent.height, newContent.style);
|
|
77139
|
+
this.pasteFormat(sheetId, zone.left, zone.top, newContent.width, newContent.height, newContent.format);
|
|
77046
77140
|
}
|
|
77047
77141
|
else {
|
|
77048
77142
|
this.clearClippedZones(content);
|
|
@@ -77155,7 +77249,7 @@ set(value) {
|
|
|
77155
77249
|
const commands = [];
|
|
77156
77250
|
for (const [zoneStr, [zone, priority]] of Object.entries(zones)) {
|
|
77157
77251
|
const format = updateCells[zoneStr];
|
|
77158
|
-
commands.push([
|
|
77252
|
+
if (format !== void 0) commands.push([
|
|
77159
77253
|
priority,
|
|
77160
77254
|
zone,
|
|
77161
77255
|
format
|
|
@@ -77505,7 +77599,7 @@ set(value) {
|
|
|
77505
77599
|
var ErrorToolTip = class extends Component {
|
|
77506
77600
|
static maxSize = { maxHeight: ERROR_TOOLTIP_MAX_HEIGHT };
|
|
77507
77601
|
static template = "o-spreadsheet-ErrorToolTip";
|
|
77508
|
-
props = (0, _odoo_owl.
|
|
77602
|
+
props = (0, _odoo_owl.useProps)({
|
|
77509
77603
|
cellPosition: types.CellPosition(),
|
|
77510
77604
|
onClosed: types.function().optional()
|
|
77511
77605
|
});
|
|
@@ -77589,7 +77683,7 @@ set(value) {
|
|
|
77589
77683
|
SidePanelCollapsible,
|
|
77590
77684
|
FilterMenuCriterion
|
|
77591
77685
|
};
|
|
77592
|
-
props = (0, _odoo_owl.
|
|
77686
|
+
props = (0, _odoo_owl.useProps)({
|
|
77593
77687
|
filterPosition: types.Position(),
|
|
77594
77688
|
onClosed: types.function().optional()
|
|
77595
77689
|
});
|
|
@@ -77769,7 +77863,7 @@ set(value) {
|
|
|
77769
77863
|
//#region src/components/link/link_display/link_display.ts
|
|
77770
77864
|
var LinkDisplay = class extends Component {
|
|
77771
77865
|
static template = "o-spreadsheet-LinkDisplay";
|
|
77772
|
-
props = (0, _odoo_owl.
|
|
77866
|
+
props = (0, _odoo_owl.useProps)({
|
|
77773
77867
|
cellPosition: types.CellPosition(),
|
|
77774
77868
|
onClosed: types.function().optional()
|
|
77775
77869
|
});
|
|
@@ -77843,7 +77937,7 @@ set(value) {
|
|
|
77843
77937
|
var LinkEditor = class extends Component {
|
|
77844
77938
|
static template = "o-spreadsheet-LinkEditor";
|
|
77845
77939
|
static components = { MenuPopover };
|
|
77846
|
-
props = (0, _odoo_owl.
|
|
77940
|
+
props = (0, _odoo_owl.useProps)({
|
|
77847
77941
|
cellPosition: types.CellPosition(),
|
|
77848
77942
|
onClosed: types.function().optional()
|
|
77849
77943
|
});
|
|
@@ -87357,6 +87451,7 @@ set(value) {
|
|
|
87357
87451
|
collapseHierarchicalDisplayName,
|
|
87358
87452
|
getCanonicalSymbolName,
|
|
87359
87453
|
fuzzyLookup,
|
|
87454
|
+
PositionMap,
|
|
87360
87455
|
replaceSymbolInFormula
|
|
87361
87456
|
};
|
|
87362
87457
|
const links = {
|
|
@@ -87581,8 +87676,8 @@ exports.stores = stores;
|
|
|
87581
87676
|
exports.tokenColors = tokenColors;
|
|
87582
87677
|
exports.tokenize = tokenize;
|
|
87583
87678
|
|
|
87584
|
-
__info__.version = "19.4.
|
|
87585
|
-
__info__.date = "2026-07-
|
|
87586
|
-
__info__.hash = "
|
|
87679
|
+
__info__.version = "19.4.4";
|
|
87680
|
+
__info__.date = "2026-07-23T07:49:22.265Z";
|
|
87681
|
+
__info__.hash = "6b3c312";
|
|
87587
87682
|
|
|
87588
87683
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|