@odoo/o-spreadsheet 19.0.33 → 19.0.35
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.js +106 -6
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +106 -6
- package/dist/o_spreadsheet.iife.js +106 -6
- package/dist/o_spreadsheet.iife.min.js +18 -18
- package/dist/o_spreadsheet.xml +4 -4
- package/package.json +21 -21
|
@@ -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.0.
|
|
6
|
-
* @date 2026-05-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.35
|
|
6
|
+
* @date 2026-05-15T07:06:09.392Z
|
|
7
|
+
* @hash 5de341b
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { App, Component, blockDom, markRaw, onMounted, onPatched, onWillPatch, onWillStart, onWillUnmount, onWillUpdateProps, status, toRaw, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useRef, useState, useSubEnv, xml } from "@odoo/owl";
|
|
@@ -1430,6 +1430,7 @@ function getAlternatingColorsPalette(quantity) {
|
|
|
1430
1430
|
else return ALTERNATING_COLORS_XL;
|
|
1431
1431
|
}
|
|
1432
1432
|
var ColorGenerator = class {
|
|
1433
|
+
preferredColors;
|
|
1433
1434
|
currentColorIndex = 0;
|
|
1434
1435
|
palette;
|
|
1435
1436
|
constructor(paletteSize, preferredColors = []) {
|
|
@@ -1637,6 +1638,7 @@ const _t = function(s, ...values) {
|
|
|
1637
1638
|
return sprintf(_translate(s), ...values);
|
|
1638
1639
|
};
|
|
1639
1640
|
var LazyTranslatedString = class extends String {
|
|
1641
|
+
values;
|
|
1640
1642
|
constructor(str, values) {
|
|
1641
1643
|
super(str);
|
|
1642
1644
|
this.values = values;
|
|
@@ -2795,6 +2797,8 @@ const CellErrorType = {
|
|
|
2795
2797
|
};
|
|
2796
2798
|
const errorTypes = new Set(Object.values(CellErrorType));
|
|
2797
2799
|
var EvaluationError = class {
|
|
2800
|
+
message;
|
|
2801
|
+
value;
|
|
2798
2802
|
constructor(message = _t("Error"), value = CellErrorType.GenericError) {
|
|
2799
2803
|
this.message = message;
|
|
2800
2804
|
this.value = value;
|
|
@@ -2827,6 +2831,7 @@ var UnknownFunctionError = class extends EvaluationError {
|
|
|
2827
2831
|
}
|
|
2828
2832
|
};
|
|
2829
2833
|
var SplillBlockedError = class extends EvaluationError {
|
|
2834
|
+
errorOriginPosition;
|
|
2830
2835
|
constructor(message = _t("Spill range is not empty"), errorOriginPosition) {
|
|
2831
2836
|
super(message, CellErrorType.SpilledBlocked);
|
|
2832
2837
|
this.errorOriginPosition = errorOriginPosition;
|
|
@@ -6459,6 +6464,8 @@ const selectPastedZone = (selection, sourceZones, pastedZones) => {
|
|
|
6459
6464
|
//#endregion
|
|
6460
6465
|
//#region src/clipboard_handlers/abstract_clipboard_handler.ts
|
|
6461
6466
|
var ClipboardHandler = class {
|
|
6467
|
+
getters;
|
|
6468
|
+
dispatch;
|
|
6462
6469
|
constructor(getters, dispatch) {
|
|
6463
6470
|
this.getters = getters;
|
|
6464
6471
|
this.dispatch = dispatch;
|
|
@@ -8893,6 +8900,7 @@ var DependencyContainer = class extends EventBus {
|
|
|
8893
8900
|
}
|
|
8894
8901
|
};
|
|
8895
8902
|
var StoreFactory = class {
|
|
8903
|
+
get;
|
|
8896
8904
|
pendingBuilds = /* @__PURE__ */ new Set();
|
|
8897
8905
|
constructor(get) {
|
|
8898
8906
|
this.get = get;
|
|
@@ -8937,6 +8945,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
8937
8945
|
return MetaStore;
|
|
8938
8946
|
}
|
|
8939
8947
|
var DisposableStore = class {
|
|
8948
|
+
get;
|
|
8940
8949
|
disposeCallbacks = [];
|
|
8941
8950
|
constructor(get) {
|
|
8942
8951
|
this.get = get;
|
|
@@ -18620,6 +18629,7 @@ function insertTokenAtArgStartingPosition(tokenAtCursor, value) {
|
|
|
18620
18629
|
//#endregion
|
|
18621
18630
|
//#region src/formulas/code_builder.ts
|
|
18622
18631
|
var FunctionCodeBuilder = class {
|
|
18632
|
+
scope;
|
|
18623
18633
|
code = "";
|
|
18624
18634
|
constructor(scope = new Scope()) {
|
|
18625
18635
|
this.scope = scope;
|
|
@@ -18635,6 +18645,8 @@ var FunctionCodeBuilder = class {
|
|
|
18635
18645
|
}
|
|
18636
18646
|
};
|
|
18637
18647
|
var FunctionCodeImpl = class {
|
|
18648
|
+
scope;
|
|
18649
|
+
returnExpression;
|
|
18638
18650
|
code;
|
|
18639
18651
|
constructor(scope, code, returnExpression) {
|
|
18640
18652
|
this.scope = scope;
|
|
@@ -20605,6 +20617,7 @@ function getScorecardConfiguration({ width, height }, runtime) {
|
|
|
20605
20617
|
}, runtime).computeDesign();
|
|
20606
20618
|
}
|
|
20607
20619
|
var ScorecardChartConfigBuilder = class {
|
|
20620
|
+
runtime;
|
|
20608
20621
|
context;
|
|
20609
20622
|
width;
|
|
20610
20623
|
height;
|
|
@@ -24265,6 +24278,10 @@ var GaugeChartComponent = class extends Component {
|
|
|
24265
24278
|
* Animation interpolating values using the ease-out quartic curve function (chartJS default easing)
|
|
24266
24279
|
*/
|
|
24267
24280
|
var Animation = class {
|
|
24281
|
+
startValue;
|
|
24282
|
+
endValue;
|
|
24283
|
+
duration;
|
|
24284
|
+
callback;
|
|
24268
24285
|
startTime = void 0;
|
|
24269
24286
|
animationFrameId = null;
|
|
24270
24287
|
constructor(startValue, endValue, duration, callback) {
|
|
@@ -26591,6 +26608,7 @@ function getMaxFigureSize(getters, figureSize) {
|
|
|
26591
26608
|
* Represent a raw XML string
|
|
26592
26609
|
*/
|
|
26593
26610
|
var XMLString = class {
|
|
26611
|
+
xmlString;
|
|
26594
26612
|
/**
|
|
26595
26613
|
* @param xmlString should be a well formed, properly escaped XML string
|
|
26596
26614
|
*/
|
|
@@ -27426,6 +27444,11 @@ var Popover = class extends Component {
|
|
|
27426
27444
|
}
|
|
27427
27445
|
};
|
|
27428
27446
|
var PopoverPositionContext = class {
|
|
27447
|
+
anchorRect;
|
|
27448
|
+
containerRect;
|
|
27449
|
+
propsMaxSize;
|
|
27450
|
+
spreadsheetOffset;
|
|
27451
|
+
lastPosition;
|
|
27429
27452
|
constructor(anchorRect, containerRect, propsMaxSize, spreadsheetOffset, lastPosition) {
|
|
27430
27453
|
this.anchorRect = anchorRect;
|
|
27431
27454
|
this.containerRect = containerRect;
|
|
@@ -30721,6 +30744,7 @@ var AbstractComposerStore = class extends SpreadsheetStore {
|
|
|
30721
30744
|
//#endregion
|
|
30722
30745
|
//#region src/components/composer/standalone_composer/standalone_composer_store.ts
|
|
30723
30746
|
var StandaloneComposerStore = class extends AbstractComposerStore {
|
|
30747
|
+
args;
|
|
30724
30748
|
constructor(get, args) {
|
|
30725
30749
|
super(get);
|
|
30726
30750
|
this.args = args;
|
|
@@ -31772,6 +31796,7 @@ var DOMDndHelper = class {
|
|
|
31772
31796
|
}
|
|
31773
31797
|
};
|
|
31774
31798
|
var ContainerWrapper = class {
|
|
31799
|
+
el;
|
|
31775
31800
|
constructor(el) {
|
|
31776
31801
|
this.el = el;
|
|
31777
31802
|
}
|
|
@@ -31843,6 +31868,10 @@ var FocusStore = class {
|
|
|
31843
31868
|
* This plugin handles this internal state.
|
|
31844
31869
|
*/
|
|
31845
31870
|
var SelectionInputStore = class extends SpreadsheetStore {
|
|
31871
|
+
initialRanges;
|
|
31872
|
+
inputHasSingleRange;
|
|
31873
|
+
colors;
|
|
31874
|
+
disabledRanges;
|
|
31846
31875
|
mutators = [
|
|
31847
31876
|
"resetWithRanges",
|
|
31848
31877
|
"focusById",
|
|
@@ -40664,13 +40693,30 @@ var PivotRuntimeDefinition = class {
|
|
|
40664
40693
|
break;
|
|
40665
40694
|
}
|
|
40666
40695
|
return {
|
|
40696
|
+
/**
|
|
40697
|
+
* Get the id of the measure, as it is stored in the pivot formula
|
|
40698
|
+
*/
|
|
40667
40699
|
id: measure.id,
|
|
40700
|
+
/**
|
|
40701
|
+
* Display name of the measure
|
|
40702
|
+
* e.g. "__count" -> "Count", "amount_total" -> "Total Amount"
|
|
40703
|
+
*/
|
|
40668
40704
|
get displayName() {
|
|
40669
40705
|
return measure.userDefinedName ?? field?.string ?? measure.fieldName;
|
|
40670
40706
|
},
|
|
40671
40707
|
userDefinedName: measure.userDefinedName,
|
|
40708
|
+
/**
|
|
40709
|
+
* Get the name of the field of the measure
|
|
40710
|
+
*/
|
|
40672
40711
|
fieldName,
|
|
40712
|
+
/**
|
|
40713
|
+
* Get the aggregator of the measure
|
|
40714
|
+
*/
|
|
40673
40715
|
aggregator,
|
|
40716
|
+
/**
|
|
40717
|
+
* Get the type of the measure field
|
|
40718
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
40719
|
+
*/
|
|
40674
40720
|
type: fieldName === "__count" ? "integer" : field?.type ?? "integer",
|
|
40675
40721
|
isValid,
|
|
40676
40722
|
isHidden: measure.isHidden,
|
|
@@ -40684,10 +40730,30 @@ var PivotRuntimeDefinition = class {
|
|
|
40684
40730
|
const type = field?.type ?? "integer";
|
|
40685
40731
|
const granularity = field && isDateOrDatetimeField(field) ? dimension.granularity : void 0;
|
|
40686
40732
|
return {
|
|
40733
|
+
/**
|
|
40734
|
+
* Get the display name of the dimension
|
|
40735
|
+
* e.g. "stage_id" -> "Stage", "create_date:month" -> "Create Date"
|
|
40736
|
+
*/
|
|
40687
40737
|
displayName: field?.string ?? dimension.fieldName,
|
|
40738
|
+
/**
|
|
40739
|
+
* Get the name of the dimension, as it is stored in the pivot formula
|
|
40740
|
+
* e.g. "stage_id", "create_date:month"
|
|
40741
|
+
*/
|
|
40688
40742
|
nameWithGranularity: dimension.fieldName + (granularity ? `:${granularity}` : ""),
|
|
40743
|
+
/**
|
|
40744
|
+
* Get the name of the field of the dimension
|
|
40745
|
+
* e.g. "stage_id" -> "stage_id", "create_date:month" -> "create_date"
|
|
40746
|
+
*/
|
|
40689
40747
|
fieldName: dimension.fieldName,
|
|
40748
|
+
/**
|
|
40749
|
+
* Get the aggregate operator of the dimension
|
|
40750
|
+
* e.g. "stage_id" -> undefined, "create_date:month" -> "month"
|
|
40751
|
+
*/
|
|
40690
40752
|
granularity,
|
|
40753
|
+
/**
|
|
40754
|
+
* Get the type of the field of the dimension
|
|
40755
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
40756
|
+
*/
|
|
40691
40757
|
type: field?.isCustomField ? "custom" : type,
|
|
40692
40758
|
order: dimension.order,
|
|
40693
40759
|
isValid: !!field,
|
|
@@ -51858,6 +51924,8 @@ var MoreFormatsPanel = class extends Component {
|
|
|
51858
51924
|
//#endregion
|
|
51859
51925
|
//#region src/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel_store.ts
|
|
51860
51926
|
var PivotMeasureDisplayPanelStore = class extends SpreadsheetStore {
|
|
51927
|
+
pivotId;
|
|
51928
|
+
initialMeasure;
|
|
51861
51929
|
mutators = [
|
|
51862
51930
|
"cancelMeasureDisplayEdition",
|
|
51863
51931
|
"updateMeasureDisplayType",
|
|
@@ -52954,6 +53022,7 @@ function getNumberOfPivotFunctions(tokens) {
|
|
|
52954
53022
|
//#endregion
|
|
52955
53023
|
//#region src/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.ts
|
|
52956
53024
|
var PivotSidePanelStore = class extends SpreadsheetStore {
|
|
53025
|
+
pivotId;
|
|
52957
53026
|
mutators = [
|
|
52958
53027
|
"reset",
|
|
52959
53028
|
"deferUpdates",
|
|
@@ -56485,6 +56554,11 @@ var CellPlugin = class extends CorePlugin {
|
|
|
56485
56554
|
}
|
|
56486
56555
|
};
|
|
56487
56556
|
var FormulaCellWithDependencies = class {
|
|
56557
|
+
id;
|
|
56558
|
+
format;
|
|
56559
|
+
style;
|
|
56560
|
+
sheetId;
|
|
56561
|
+
getRangeString;
|
|
56488
56562
|
isFormula = true;
|
|
56489
56563
|
compiledFormula;
|
|
56490
56564
|
constructor(id, compiledFormula, format, style, dependencies, sheetId, getRangeString) {
|
|
@@ -56519,6 +56593,10 @@ var FormulaCellWithDependencies = class {
|
|
|
56519
56593
|
}
|
|
56520
56594
|
};
|
|
56521
56595
|
var RangeReferenceToken = class {
|
|
56596
|
+
ranges;
|
|
56597
|
+
rangeIndex;
|
|
56598
|
+
sheetId;
|
|
56599
|
+
getRangeString;
|
|
56522
56600
|
type = "REFERENCE";
|
|
56523
56601
|
constructor(ranges, rangeIndex, sheetId, getRangeString) {
|
|
56524
56602
|
this.ranges = ranges;
|
|
@@ -60504,6 +60582,8 @@ function buildCompilationParameters(context, getters, computeCell) {
|
|
|
60504
60582
|
return new CompilationParametersBuilder(context, getters, computeCell).getParameters();
|
|
60505
60583
|
}
|
|
60506
60584
|
var CompilationParametersBuilder = class {
|
|
60585
|
+
getters;
|
|
60586
|
+
computeCell;
|
|
60507
60587
|
evalContext;
|
|
60508
60588
|
rangeCache = {};
|
|
60509
60589
|
constructor(context, getters, computeCell) {
|
|
@@ -61437,6 +61517,7 @@ const ERROR_CYCLE_CELL = Object.freeze(createEvaluatedCell({
|
|
|
61437
61517
|
}));
|
|
61438
61518
|
const EMPTY_CELL = Object.freeze(createEvaluatedCell({ value: null }));
|
|
61439
61519
|
var Evaluator = class {
|
|
61520
|
+
context;
|
|
61440
61521
|
getters;
|
|
61441
61522
|
compilationParams;
|
|
61442
61523
|
evaluatedCells = new PositionMap();
|
|
@@ -65557,6 +65638,8 @@ function transformPositionWithMerge(toTransform, executed) {
|
|
|
65557
65638
|
//#endregion
|
|
65558
65639
|
//#region src/collaborative/revisions.ts
|
|
65559
65640
|
var Revision = class {
|
|
65641
|
+
rootCommand;
|
|
65642
|
+
timestamp;
|
|
65560
65643
|
id;
|
|
65561
65644
|
clientId;
|
|
65562
65645
|
_commands = [];
|
|
@@ -65593,6 +65676,9 @@ var Revision = class {
|
|
|
65593
65676
|
//#region src/collaborative/session.ts
|
|
65594
65677
|
var ClientDisconnectedError = class extends Error {};
|
|
65595
65678
|
var Session = class extends EventBus {
|
|
65679
|
+
revisions;
|
|
65680
|
+
transportService;
|
|
65681
|
+
serverRevisionId;
|
|
65596
65682
|
/**
|
|
65597
65683
|
* Positions of the others client.
|
|
65598
65684
|
*/
|
|
@@ -69309,6 +69395,9 @@ var GridSelectionPlugin = class extends UIPlugin {
|
|
|
69309
69395
|
//#endregion
|
|
69310
69396
|
//#region src/helpers/internal_viewport.ts
|
|
69311
69397
|
var InternalViewport = class {
|
|
69398
|
+
getters;
|
|
69399
|
+
sheetId;
|
|
69400
|
+
boundaries;
|
|
69312
69401
|
top;
|
|
69313
69402
|
bottom;
|
|
69314
69403
|
left;
|
|
@@ -74444,6 +74533,7 @@ function instantiateClipboard() {
|
|
|
74444
74533
|
return new WebClipboardWrapper(navigator.clipboard);
|
|
74445
74534
|
}
|
|
74446
74535
|
var WebClipboardWrapper = class {
|
|
74536
|
+
clipboard;
|
|
74447
74537
|
constructor(clipboard) {
|
|
74448
74538
|
this.clipboard = clipboard;
|
|
74449
74539
|
}
|
|
@@ -74930,6 +75020,7 @@ var Spreadsheet = class extends Component {
|
|
|
74930
75020
|
//#endregion
|
|
74931
75021
|
//#region src/collaborative/readonly_transport_filter.ts
|
|
74932
75022
|
var ReadonlyTransportFilter = class {
|
|
75023
|
+
transportService;
|
|
74933
75024
|
constructor(transportService) {
|
|
74934
75025
|
this.transportService = transportService;
|
|
74935
75026
|
}
|
|
@@ -74961,6 +75052,8 @@ function inverseCommand(cmd) {
|
|
|
74961
75052
|
* @param operations initial operations
|
|
74962
75053
|
*/
|
|
74963
75054
|
var Branch = class Branch {
|
|
75055
|
+
buildTransformation;
|
|
75056
|
+
operations;
|
|
74964
75057
|
constructor(buildTransformation, operations = []) {
|
|
74965
75058
|
this.buildTransformation = buildTransformation;
|
|
74966
75059
|
this.operations = operations;
|
|
@@ -75077,6 +75170,8 @@ var Branch = class Branch {
|
|
|
75077
75170
|
* to revert it).
|
|
75078
75171
|
*/
|
|
75079
75172
|
var Operation = class {
|
|
75173
|
+
id;
|
|
75174
|
+
data;
|
|
75080
75175
|
constructor(id, data) {
|
|
75081
75176
|
this.id = id;
|
|
75082
75177
|
this.data = data;
|
|
@@ -75086,6 +75181,8 @@ var Operation = class {
|
|
|
75086
75181
|
}
|
|
75087
75182
|
};
|
|
75088
75183
|
var LazyOperation = class LazyOperation {
|
|
75184
|
+
id;
|
|
75185
|
+
lazyData;
|
|
75089
75186
|
constructor(id, lazyData) {
|
|
75090
75187
|
this.id = id;
|
|
75091
75188
|
this.lazyData = lazyData;
|
|
@@ -75111,6 +75208,7 @@ var LazyOperation = class LazyOperation {
|
|
|
75111
75208
|
* ```
|
|
75112
75209
|
*/
|
|
75113
75210
|
var OperationSequence = class OperationSequence {
|
|
75211
|
+
operations;
|
|
75114
75212
|
constructor(operations) {
|
|
75115
75213
|
this.operations = operations;
|
|
75116
75214
|
}
|
|
@@ -75186,6 +75284,7 @@ var OperationSequence = class OperationSequence {
|
|
|
75186
75284
|
*
|
|
75187
75285
|
*/
|
|
75188
75286
|
var Tree = class {
|
|
75287
|
+
buildTransformation;
|
|
75189
75288
|
branches;
|
|
75190
75289
|
branchingOperationIds = /* @__PURE__ */ new Map();
|
|
75191
75290
|
constructor(buildTransformation, initialBranch) {
|
|
@@ -75765,6 +75864,7 @@ var EventStream = class {
|
|
|
75765
75864
|
* with the new selected anchor
|
|
75766
75865
|
*/
|
|
75767
75866
|
var SelectionStreamProcessorImpl = class {
|
|
75867
|
+
getters;
|
|
75768
75868
|
stream;
|
|
75769
75869
|
/**
|
|
75770
75870
|
* "Active" anchor used as a reference to compute new anchors
|
|
@@ -79180,6 +79280,6 @@ const chartHelpers = {
|
|
|
79180
79280
|
//#endregion
|
|
79181
79281
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, ClientDisconnectedError, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, LocalTransportService, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
79182
79282
|
|
|
79183
|
-
__info__.version = "19.0.
|
|
79184
|
-
__info__.date = "2026-05-
|
|
79185
|
-
__info__.hash = "
|
|
79283
|
+
__info__.version = "19.0.35";
|
|
79284
|
+
__info__.date = "2026-05-15T07:06:09.392Z";
|
|
79285
|
+
__info__.hash = "5de341b";
|